diff --git a/.gitignore b/.gitignore index fb310786..3428366c 100644 --- a/.gitignore +++ b/.gitignore @@ -40,4 +40,7 @@ coverage .*.swp package-lock.json demo/.DS_Store -demo/demolist/.DS_Store \ No newline at end of file +demo/demolist/.DS_Store + +# vsCode +.history \ No newline at end of file diff --git a/build/Table.js b/build/Table.js index 709e6056..84453564 100644 --- a/build/Table.js +++ b/build/Table.js @@ -638,7 +638,8 @@ var Table = function (_Component) { bordered = _props2.bordered, onDropBorder = _props2.onDropBorder, onDraggingBorder = _props2.onDraggingBorder, - bodyDisplayInRow = _props2.bodyDisplayInRow; + bodyDisplayInRow = _props2.bodyDisplayInRow, + headerEventNoStop = _props2.headerEventNoStop; this.columnsChildrenList = []; //复杂表头拖拽,重新render表头前,将其置空 var rows = this.getHeaderRows(columns); @@ -686,7 +687,8 @@ var Table = function (_Component) { bordered: bordered, leftFixedWidth: leftFixedWidth, rightFixedWidth: rightFixedWidth, - bodyDisplayInRow: bodyDisplayInRow + bodyDisplayInRow: bodyDisplayInRow, + eventNoStop: headerEventNoStop })) : null; }; @@ -972,7 +974,7 @@ var Table = function (_Component) { indent: indent, indentSize: props.indentSize, needIndentSpaced: needIndentSpaced, - className: className + ' ' + (props.rowDraggAble && !props.useDragHandle ? 'row-dragg-able ' : ''), + className: '' + className, record: record, expandIconAsCell: expandIconAsCell, onDestroy: this.onRowDestroy, diff --git a/build/TableCell.js b/build/TableCell.js index 9620ed8e..39d289f7 100644 --- a/build/TableCell.js +++ b/build/TableCell.js @@ -271,6 +271,12 @@ var TableCell = function (_Component) { onPaste(e, position); }; + _this.onCellMouseOver = function (e) { + var column = _this.props.column; + + _this.props.stopRowDrag(column.notRowDrag); + }; + _this.isInvalidRenderCellText = _this.isInvalidRenderCellText.bind(_this); _this.handleClick = _this.handleClick.bind(_this); _this.state = { @@ -461,6 +467,7 @@ var TableCell = function (_Component) { onClick: this.handleClick, title: title, onPaste: this.onPaste, + onMouseOver: this.onCellMouseOver, style: _extends({ maxWidth: column.width, color: fontColor, backgroundColor: bgColor }, column.style) }, indentText, expandIcon, diff --git a/build/TableHeader.js b/build/TableHeader.js index 73f49b4f..681c7cc7 100644 --- a/build/TableHeader.js +++ b/build/TableHeader.js @@ -569,7 +569,9 @@ var _initialiseProps = function _initialiseProps() { }; this.onTrMouseDown = function (e) { - _utils.Event.stopPropagation(e); + var eventNoStop = _this8.props.eventNoStop; + + !eventNoStop && _utils.Event.stopPropagation(e); var event = _utils.Event.getEvent(e), targetEvent = _utils.Event.getTarget(event); var _props3 = _this8.props, @@ -668,9 +670,10 @@ var _initialiseProps = function _initialiseProps() { onDraggingBorder = _props4.onDraggingBorder, leftFixedWidth = _props4.leftFixedWidth, rightFixedWidth = _props4.rightFixedWidth, - bodyDisplayInRow = _props4.bodyDisplayInRow; + bodyDisplayInRow = _props4.bodyDisplayInRow, + eventNoStop = _props4.eventNoStop; - _utils.Event.stopPropagation(e); + !eventNoStop && _utils.Event.stopPropagation(e); var event = _utils.Event.getEvent(e); if (_this8.props.dragborder && _this8.drag.option == "border") { //移动改变宽度 diff --git a/build/TableRow.js b/build/TableRow.js index 26281f19..07caeeb6 100644 --- a/build/TableRow.js +++ b/build/TableRow.js @@ -115,7 +115,7 @@ var TableRow = function (_Component) { _this.onDragStart = function (e) { var onDragRowStart = _this.props.onDragRowStart; - if (!_this.props.rowDraggAble) return; + if (!_this.props.rowDraggAble || _this.notRowDrag) return; var event = _utils.Event.getEvent(e), target = _utils.Event.getTarget(event); if (target.tagName === 'TD') { @@ -305,6 +305,17 @@ var TableRow = function (_Component) { } }; + _this.stopRowDrag = function (isStop) { + var rowDraggAble = _this.props.rowDraggAble; + var notRowDrag = _this.state.notRowDrag; + + if (rowDraggAble && isStop !== notRowDrag) { + _this.setState({ + notRowDrag: isStop + }); + } + }; + _this.set = function (fn) { _this.clear(); _this._timeout = window.setTimeout(fn, 300); @@ -576,6 +587,7 @@ var TableRow = function (_Component) { lazyStartIndex = _props10.lazyStartIndex, lazyEndIndex = _props10.lazyEndIndex, expandIconCellWidth = _props10.expandIconCellWidth; + var notRowDrag = this.state.notRowDrag; var showSum = false; var className = this.props.className; @@ -636,6 +648,7 @@ var TableRow = function (_Component) { lazyStartIndex: lazyStartIndex, lazyEndIndex: lazyEndIndex, onPaste: onPaste, + stopRowDrag: this.stopRowDrag, col: i })); } @@ -646,10 +659,15 @@ var TableRow = function (_Component) { if (record && record._checked) { className += ' selected'; } + + if (rowDraggAble && !useDragHandle && !notRowDrag) { + className += ' row-dragg-able'; + } + return _react2["default"].createElement( 'tr', { - draggable: rowDraggAble && !useDragHandle, + draggable: rowDraggAble && !useDragHandle && !notRowDrag, onClick: this.onRowClick, onDoubleClick: this.onRowDoubleClick, onMouseEnter: this.onMouseEnter, diff --git a/dist/demo.css.map b/dist/demo.css.map index a1afeaec..b8b3ab90 100644 --- a/dist/demo.css.map +++ b/dist/demo.css.map @@ -1 +1 @@ -{"version":3,"sources":["demo.css","../node_modules/tinper-bee-core/scss/minxin-variables.scss","../node_modules/bee-loading/src/Loading.scss","../node_modules/tinper-bee-core/scss/minxin-themeColors.scss","../src/Table.scss","TableDemo.scss","demolist/Demo0104.scss","demolist/Demo0302.scss","demolist/Demo0402.scss","demolist/Demo0501.scss","demolist/Demo0502.scss","demolist/Demo0503.scss","demolist/Demo0505.scss","demolist/Demo0603.scss","demolist/Demo1101.scss","demolist/Demo1601.scss"],"names":[],"mappings":"AAAA,iBAAiB;ACuXjB,eAAe;AAWf,iBAAiB;AAXjB,eAAe;AAWf,iBAAiB;AC5XjB;;IAEI;AAcJ;;IAEI;AACJ;EACE,mBAAkB;EAClB,UAAS;EACT,QAAO;EACP,SAAQ;EACR,gBCfmB;EDgBnB,eDauB;ECZvB,mBAAkB,EACnB;;AAGD;;IAEI;AAEJ;EAGM,mBAAkB;EAClB,oBAAmB;EACnB,YAAW;EAEX,0BAAyB;EAGzB,YDkwCmB;ECjwCnB,aDiwCmB;EChwCnB,SD2wCiB;EC1wCjB,UD2wCkB;EC1wClB,mBD6wCsB;EC5wCtB,kBD4wCsB;EC3wCtB,mCAAkC;EAClC,sBAAqB;EAErB,wCAAuC;EACvC,mBAAkB;EAClB,kBDuvCmB,EC9uCpB;EA9BL;IAuBQ,YDqvCiB,ECpvClB;EAxBP;IA0BQ,eA9DoB;IA+DpB,gBAAe;IACf,WAAU,EACX;;AA7BP;EAiCQ,mBD2vCuB;EC1vCvB,kBD0vCuB;ECzvCvB,YD0uCoB;ECzuCpB,aDyuCoB;ECxuCpB,kBDwuCoB,ECjuCrB;EA5CP;IAuCU,YDsuCkB,ECruCnB;EAxCT;IA0CU,gBAAe,EAChB;;AA3CT;EAgDQ,mBD0uCwB;ECzuCxB,kBDyuCwB;ECxuCxB,YDytCqB;ECxtCrB,aDwtCqB;ECvtCrB,kBDutCqB,EChtCtB;EA3DP;IAsDU,YDqtCmB,ECptCpB;EAvDT;IAyDU,gBAAe,EAChB;;AA1DT;EA+DQ,eDorC8B,ECjrC/B;;AAlEP;EAsEQ,eD8qCqB,EC3qCtB;;AAzEP;EA6EQ,eDwqC2B,ECrqC5B;;AAMP;EACE,mBAAkB;EAClB,OAAM;EACN,SAAQ;EACR,UAAS;EACT,QAAO;EACP,cAAa;EAGb,2CAAsC,EAIvC;EAbD;IAWI,gBAAe,EAChB;;AAGH;EACE;IAEE,iCAAgC,EAAA;EAGlC;IAEE,mCAAkC,EAAA;EAGpC;IAEE,mCAAkC,EAAA,EAAA;;AAItC;EAEI,mBAAkB;EAClB,SD8pCmB;EC7pCnB,UD8pCoB;EC7pCpB,kBDqqC0B;ECpqC1B,mBDqqC2B,ECnnC5B;EAxDH;IAQM,0BAAyB;IACzB,WDkpCiB;ICjpCjB,aDkpCmB;ICjpCnB,mBAAkB;IAClB,YAAW;IAEX,0BAAyB;IACzB,sBAAqB,EACtB;EAhBL;IAkBM,kBD0pC2B;ICzpC3B,mBD0pC4B,ECrpC7B;IAxBL;MAqBQ,WDwoCkB;MCvoClB,aDwoCoB,ECvoCrB;EAvBP;IA0BM,kBD8oC4B;IC7oC5B,mBD8oC4B,ECzoC7B;IAhCL;MA6BQ,WD4nCmB;MC3nCnB,aD4nCoB,EC3nCrB;EA/BP;IAoCQ,2ED6lC8D;IC5lC9D,0BDmmCU,EClmCX;EAtCP;IAoCQ,2ED8lC8D;IC7lC9D,0BDomCU,ECnmCX;EAtCP;IAoCQ,2ED+lC8D;IC9lC9D,0BDqmCU,ECpmCX;EAtCP;IAoCQ,2EDgmC8D;IC/lC9D,0BDsmCU,ECrmCX;EAtCP;IAoCQ,2EDimC8D;IChmC9D,0BDumCU,ECtmCX;EAtCP;IA2CQ,0BDklC8B,ECjlC/B;EA5CP;IAgDQ,0BD8kCqB,EC7kCtB;EAjDP;IAqDQ,0BD0kC2B,ECzkC5B;;AAIP;EAGM,mBAAkB;EAClB,UAAS;EACT,SAAQ;EAER,iCAA+B,EAChC;;AAGL;EACE;IAEE,qBAAoB,EAAA;EAGtB;IAEE,uBAAsB,EAAA;EAGxB;IAEE,qBAAoB,EAAA,EAAA;;AExNxB;EACE,gBApBmB;EAqBnB,eHkBuB;EGhBvB,mBAAkB;EAClB,kBAvBgB;EAwBhB,iBAAgB,EA8tBjB;EA7tBC;IAEE,mBAAkB,EAKnB;IAPA;MAIG,cAAa;MACb,qBAAoB,EACrB;EAEH;IACE,mBAAkB,EAOnB;IANC;MACE,mBAAkB;MAClB,SAAQ;MACR,UAAS,EAEV;EAtBL;IAyBI,YAAW;IACX,0BAAyB;IACzB,iBAAgB,EACjB;EA5BH;IAgCI,kBAlCyB;IAmCzB,iBAAgB;IAEhB,kBAAiB,EAOlB;IA1CH;MAqCM,mBAAkB,EACnB;IAtCL;MAwCM,iBAAgB,EACjB;EAzCL;IA6CI,4CA7D4D;IA8D5D,kBAhEc,EA6Ef;IA3DH;MAgDM,eAAc,EAOf;MAvDL;QAkDQ,eAAc,EACf;MAnDP;QAqDQ,eAAc,EACf;IAtDP;MAyDM,sBACF,EAAC;EA1DL;IA8DM,iCAnEyB,EAoE1B;EA/DL;IA0EU,+BAA8B,EAC/B;EA3ET;IA+EM,eAAc,EAOf;IAtFL;MAiFQ,eAAc,EACf;IAlFP;MAoFQ,eAAc,EACf;EArFP;IAwFM,qBAAa;IAAb,cAAa;IACb,gCAA2B;IAA3B,4BAA2B,EAgB5B;IAzGL;MA2FQ,mBAAkB,EACnB;IA5FP;MA8FQ,aAAY,EAOb;MArGP;QAgGU,WAAU,EACX;MAjGT;QAmGU,WAAU,EACX;IApGT;MAuGQ,UAAS,EACV;EAxGP;IA2GM,mBAAkB;IAClB,oBAAmB,EAYpB;IAxHL;MA8GQ,mBAAkB;MAClB,SAAQ,EAKT;MApHP;QAiHU,eAAc;QACd,oBAAmB,EACpB;IAnHT;MAsHQ,mBAAkB,EACnB;EAvHP;IA6HQ,oBAAmB,EACpB;EA9HP;IAkII,mBAAkB,EACnB;EAnIH;IAqII,+BHwD8D,EGvD/D;EAtIH;;IA0II,kBAtJoB;IAuJpB,sBAAqB,EA0BtB;IArKH;;MA8IQ,gBAAe;MACf,kBAAiB,EAClB;IAhJP;;MAkJQ,WAAU,EACX;IAnJP;;MAsJM,mBAAkB,EACnB;IAvJL;;MAyJM,kBAAiB,EAClB;IA1JL;;MA4JM,gBAAe;MACf,sBAAqB;MACrB,gBAAe;MACf,kBAAiB,EAKlB;MApKL;;QAiKQ,WAAU;QACV,gBAAe,EAChB;EAGJ;IAEG,iBApLkB,EAqLnB;EAEF;IAEG,kBAzLkB,EA0LnB;EA9KL;IAoLQ,4BAA2B;IAC3B,+BAA8B,EAO/B;IA5LP;MAuLU,aAAY,EACb;IAxLT;MA0LU,aAAY,EACb;EAIP;IACE,+BAAuD,EACxD;EAED;IACE,eAAc,EACf;EACA;IAEG,qCAxN0D;IAyN1D,uBAAsB;IACtB,oBAAmB,EAEpB;EANF;IASK,iBAAgB,EACnB;EAVF;IAaK,gBAAgB,EACjB;EAdJ;IAkBG,4CAxO0D;IAyO1D,uBAAsB,EACvB;EApBF;;IAuBG,2CA7O0D;IA8O1D,uBAAsB,EACvB;EAEF;IAGK,iBAAgB,EAIjB;IAPJ;MAKO,cAAa,EACd;EAIP;IACE,iBAAgB;IAChB,+BHmtC2E;IGltC3E,uBHmtC+D,EGltChE;EA/OH;IAkPI,iBA9PoB,EA+PrB;EAED;IACE,iBAAgB;IAChB,mBAAkB,EACnB;EACD;IACE,oBAAmB;IACnB,oBAAmB,EACpB;EAEA;IACC,mBAAkB,EACnB;EAED;IACE,aAAY;IACZ,iBAAgB,EACjB;EAGD;IACE,mBAAkB;IAClB,qBAAoB;IACpB,qBAAoB;IACpB,mBAAkB;IAClB,uBAAsB,EACvB;EAED;IACE,kBA7RoB;IA8RpB,yCAlS4D,EAmS7D;EAED;IACE,mBAAkB,EACnB;EAED;IACE,kBAtSoB;IAuSpB,4CA3S4D,EA+S7D;IANA;MAIG,mBAAkB,EACnB;EAEH;IACE,mBA7SoB,EA8SrB;EAED;IACE,kBAA8B;IAC9B,iBAAgB;IAChB,4CAvT4D;IAwT5D,mBAAkB;IAClB,mBAAkB,EAUnB;IAfA;MAOG,gBAAe;MACf,kBAAiB,EAMlB;MAdF;QAUK,gBAAe;QACf,kBAAiB;QACjB,eAAc,EACf;EAIL;IACE,YAAW,EACZ;EACA;IAIK,iBAAgB,EACjB;EALJ;IAOK,+BAAuD,EAExD;EAEH;IACE,gBAAe;IACf,sBAAqB;IACrB,kBAAiB;IACjB,YAAW;IACX,aAAY;IACZ,mBAAkB;IAClB,kBAAiB;IACjB,0BAAiB;IAAjB,sBAAiB;IAAjB,kBAAiB,EAKlB;IAbA;MAUG,gBAAe;MACf,WAAU,EACX;EAEH;IACE,mBAAkB,EACnB;EACD;IACE,aAAY,EACb;EACA;IAEG,iBAAgB;IAChB,kBAAiB,EAClB;EAEF;IAEG,iBAAgB;IAChB,kBAAiB,EAClB;EAGJ;IAEG,oBAAmB,EACpB;EAvWL;IA0WI,oBAAmB,EAQpB;IAlXH;MA4WM,oBAAmB,EACpB;IA7WL;MAgXM,WAAU,EACX;EAEH;IACE,cAAa,EACd;EACD;IAEE,gBAAe;IACf,YAAW;IACX,WAAU,EAWX;IAfA;MAMG,eAAc,EACf;IACD;MACE,oBAAmB;MACnB,YAAW,EAIZ;MANA;QAIG,YAAW,EACZ;EAGL;IACE,kBAAiB,EAIlB;IALA;MAGG,aAAY,EACb;EAEH;IACE,aAAY,EAIb;IALA;MAGG,aAAY,EACb;EAGH;IAEE,mBAAkB;IAClB,OAAM;IACN,iBAAgB;IAChB,WAAU,EAKX;IAVA;MAOG,YAAW;MACX,iBAAgB,EACjB;EAGH;IACE,QAAO;IACP,+CAA8C,EAQ/C;IAPC;MACE,oBAAmB;MACnB,oBAAmB,EACpB;IACD;MACE,iBAAgB,EACjB;EAGH;IACE,SAAQ;IACR,gDAA+C,EAShD;IALC;MACE,mBAAkB;MAClB,qBAAoB,EACrB;EAIH;IACE,iBAAgB,EACjB;EAED;IACE,iBAAgB,EACjB;EAEA;IAEG,oBAAmB,EACpB;EAHF;IAKG,qBAAa;IAAb,cAAa;IACb,sBAAuB;IAAvB,wBAAuB;IACvB,uBAAmB;IAAnB,oBAAmB,EAIpB;IAXF;MASK,gBAAe,EAChB;EAVJ;IAaG,+BHm/ByE;IGl/BzE,uBHm/B6D;IGl/B7D,6BAA2B;IAI3B,0BAAyB;IACzB;;QAEE;IACA,sBAAqB;IACrB,kBAAiB,EAmEpB;IA3FF;MA8BK,eAAc,EACf;IA/BJ;MAiCK,mBAAkB;MAClB,iBAAgB;MAChB,aAAY;MACZ,uBAAsB;MACtB,mBAAkB;MAClB,sBAAqB;MACrB,iBAAgB,EAgBjB;MAvDJ;QAyCO,aAAY;QACZ,iBAAgB;QAChB,eA5eS,EA6eV;MA5CN;;QAgDO,kBAAiB;QACjB,eAAc;QACd,YAAW;QACX,gBAAe,EAChB;IApDN;;;;MA6DK,eAAc,EACf;IA9DJ;;MAkEK,aAAY;MACZ,gBAAe,EAChB;IApEJ;;MAuEK,sBAAqB;MACrB,WAAU;MACV,gBAAe;MACf,iBAAgB;MAGhB,uCAAyC;MACzC,+GAA8G;MAC9G,QAAO;MACP,iBAAgB;MAChB,YAAW;MACX,YAAW,EAGZ;IArFJ;MAwFS,sBAAqB,EACxB;EAzFN;IA6FG,aAAY,EACb;EA9FF;IAgGG,+BHnW4D,EGqW7D;EAlGF;IAwGG,iBAAgB,EACjB;EACD;IACE,mBAAkB,EAmCnB;IAjCC;MACE,aAAY;MACZ,mBAAkB;MAClB,aAAY;MACZ,OAAM;MAIN,YAAW;MAEX,uBAAsB;MACtB,WAAU,EAeX;MA1BA;QAcG,aAAY;QACZ,WAAU;QAEV,eAAc,EACf;MAlBF;QAoBG,oBAAkB,EACnB;MArBF;QAuBG,oBAAkB,EACnB;IAGH;MACE,mBAAkB,EAInB;MALA;QAGG,oBACF,EAAC;EAGJ;IAEG,aAAY,EACb;EAOH;IACE,YAAW;IACX,kBAAiB;IACjB,iBAAgB;IAChB,eAAa,EACd;EACD;IAEE,gBAAe;IACf,mBAAkB,EACnB;EACD;IACE,mBAAkB,EACnB;EACD;IACE,mBAAkB;IAClB,YAAW;IACX,aAAa;IACb,kBAAiB;IACjB,WAAW;IACX,SAAQ;IACR,WAAU;IACV,+BHi1ByE;IGh1BzE,mBAAkB;IAClB,gBAAe,EAKhB;IAfA;MAYG,aAAY;MACZ,eArnBW,EAsnBZ;EAEH;IACE,gBAAe;IACf,gBAAe;IAEf,gBAAe,EAKhB;IATA;MAMG,YAAW,EAEZ;EAEH;IACE,kBAAiB;IACjB,iBAAgB;IAChB,uBAAsB;IACtB,gBAAe;IACf,iBAAgB;IAChB,wBAAuB;IACvB,oBAAmB;IACnB,sBAAqB;IACrB,uBAAsB,EACvB;EACD;IACE,uBAAsB;IACtB,iBAAgB,EACjB;EAGH;IAEE,cAAY;IACZ,qBAAoB,EACrB;EAtpBH;IAypBI,aA/pBiB;IAgqBjB,kBAhqBiB;IAiqBjB,YAAU;IACV,eAAc;IACd,iBAAgB,EASjB;IAtqBH;MA+pBM,kBArqBe;MAsqBf,mBAAkB,EAKnB;MArqBL;QAkqBQ,YAxqBa;QAyqBb,aAzqBa,EA0qBd;EApqBP;IA0qBQ,mBArrBuB,EAsrBxB;EA3qBP;IAkrBU,kBA9rBc,EA+rBf;EAnrBT;IAyrBI,WAAU;IACV,YAAW,EACZ;EA3rBH;IA6rBI,cAAa,EACd;EA9rBH;IAgsBI,+BAA8B;IAC9B,mBAAkB,EACnB;EAlsBH;IAosBI,mBAAkB;IAClB,0BAAyB;IACzB,mBAAkB,EACnB;EAvsBH;IA0sBI,cAAa,EACd;EA3sBH;IA8sBI,cAAa,EACd;EA/sBH;IAktBI,aAAW,EACZ;EAntBH;IAqtBI,aAAY;IACZ,aAAY,EACb;EAvtBH;IA0tBI,gBAAe;IACf,eAAc,EACf;EA5tBH;IA8tBI,2BAAyB,EAC1B;EA/tBH;IAiuBI,sBAAqB;IACrB,kBAAiB,EAClB;;AAGH;EACE,cAAa;EAGb,kBAAiB,EAClB;;AAEC;EAEI,oBAAkB,EACnB;;AAEL;EAEI,0BAAyB,EAC1B;;AAHH;;EAMI,qCAxwB4D,EAywB7D;;AAGH;;EAEE,WAAU;EACV,+DAA8D;EAC9D,yBAAwB;EACxB,0BAAyB;EACzB,6BAA4B,EAC7B;;AAED;EACE,kEAAiE;EACjE,yBAAwB;EACxB,0BAAyB;EACzB,6BAA4B,EAC7B;;AAED;;EAEE,2BAA0B;EAC1B,8BAA6B,EAC9B;;AAED;EACE,6BAA4B;EAC5B,8BAA6B,EAC9B;;AAED;EACE;IACE,sBAAqB;IACrB,4BAA2B;IAC3B,WAAU;IACV,6BHrvB+C,EAAA;EGuvBjD;IACE,sBAAqB;IACrB,yBAAwB;IACxB,WAAU,EAAA;EAEZ;IACE,6BH7vB+C,EAAA;EG+vBjD;IACE,wBAAuB;IACvB,WAAU,EAAA,EAAA;;AAId;EACE;IACE,sBAAqB;IACrB,yBAAwB;IACxB,WAAU,EAAA;EAEZ;IACE,sBAAqB;IACrB,6BAA4B;IAC5B,WAAU,EAAA,EAAA;;AAId;EACE,cAAa;EACb,kBAAiB;EACjB,WAAU,EACX;;AACD;EACE,cAAa;EACb,aAAY;EACZ,sBAAsB;EACtB,yBAAyB;EACzB,wBAAuB;EACvB,eAAc;EACd,yBAAyB;EACzB,0BAA0B;EAC1B,UAAS;EACT,mBAAkB;EAClB,WAAU;EACV,SAAQ;EACR,SAAQ,EACT;;AAED;EACE,mBAAkB,EACnB;;AAED;;EAEE,oBAAmB,EACpB;;AACD;EAEI,cAAa,EACd;;AAHH;EAKI,aAAY;EACZ,gBAAe,EAChB;;AAGH;EACE,0BAAyB;EACzB,aAAY,EACb;;AAED;;EAEE,mBAAkB;EAClB,OAAM;EACN,SAAQ;EACR,YAAW;EACX,gBAAe,EAChB;;AAED;EACE,kBAAiB;EACjB,cAAa,EACd;;AAED;EACE,kBAAiB,EAClB;;AAED;EACE,sBAAqB,EACtB;;AAED;;EAEE,eAAc,EACf;;AAED;EACE,mBAAkB,EACnB;;AAED;EACE,oBAAmB,EAuBpB;EAxBD;IAGI,mBAAkB;IAClB,YAAW;IACX,YAAW;IACX,SAAQ;IACR,eAAc;IACd,gBAAe,EAChB;EATH;IAWI,aAAY,EACb;EAZH;IAcI,aAAY;IACZ,oBAAmB;IACnB,sBAAqB;IACrB,oBAAmB,EACpB;EAlBH;IAoBI,SAAQ;IACR,YAAW;IACX,mBAAkB,EACnB;;AAIH;EACE,YAAW;EACX,mBAAkB,EAyDnB;EA3DD;IAKI,oBAAmB,EACpB;EANH;IASI,oBAAmB,EACpB;EAVH;IAaI,cAAa,EACd;EAdH;IAiBI,kBAAiB;IACjB,mBAAkB;IAClB,WAAU;IACV,YAAW;IACX,mBAAkB,EAqCnB;IA1DH;MAwBM,eAAc;MACd,UAAS;MACT,mBAAkB;MAClB,mBAAkB,EAQnB;MAnCL;QA8BQ,WACF,EAAC;MA/BP;QAiCQ,UACF,EAAC;IAlCP;MAuCQ,oBAAmB,EACpB;IAxCP;MA0CQ,kBAAiB,EAClB;IA3CP;MA+CM,gBAAe;MACf,cAAa,EACd;IAjDL;MAoDM,mBAAkB;MAClB,WAAU;MACV,aAAY;MACZ,SAAQ;MACR,UAAS,EACV;;AAIL;EACI,cAAa,EAShB;EAVD;IAIY,kBAn+BoB;IAo+BpB,aAp+BoB;IAq+BpB,yBAAwB;IACxB,gBAAe,EAClB;;AAGT;EAEI,aA5+B4B,EA6+B7B;;AAHH;EAKI,aA/+B4B,EAg/B7B;;AANH;EASM,kBAAiB,EAClB;;AAVL;EAaI,kBAAiB,EAClB;;AAEH;EACE,mBAAkB;EAClB,YAAW;EACX,cAAa;EACb,uBAAmB;EAAnB,oBAAmB;EACnB,sBAAuB;EAAvB,wBAAuB;EACvB,wBAAuB,EACxB;;AAED;EACE,mBAAkB;EAClB,UAAS,EACV;;AAKD;EAGM,oBAAmB,EACpB;;AAJL;EAOI,wBAAuB;EACvB,oBAAmB;EACnB,uBAAsB;EACtB,iBAAgB,EACjB;;AAEH;EAGM,oBAAmB,EACpB;;AAJL;EAQI,wBAAuB;EACvB,oBAAmB;EACnB,uBAAsB;EACtB,iBAAgB,EACjB;;AAZH;EAcI,wBAAuB;EACvB,oBAAmB;EACnB,uBAAsB;EACtB,iBAAgB,EACjB;;AAEH;EACE,mBAAkB;EAClB,aAAW,EACZ;;AAED;EAGM,kBAAiB;EACjB,0BAAyB,EAC1B;;AALL;EAUM,kBAAiB;EACjB,0BAAyB,EAC1B;;AAZL;EAiBM,cAAa,EACd;;AAIL;EAEI,oBAAmB;EACnB,wCAAuC,EACxC;;AAJH;EAOI,iCAAgC,EACjC;;AAEH;EAGM,uBAAsB;EACtB,aAAY;EACZ,kBAAiB,EAIlB;EATL;IAOQ,gBAAe,EAChB;;ACxlCP;EACE,oBAAmB,EACpB;;AAED;EACE,aAAY,EAMb;EAPD;IAII,YAAW,EACZ;;AAGH;EACE,cAAa;EACb,YAAW;EACX,oBAAmB;EACnB,sBAAqB,EAKtB;EATD;IAMI,oBAAmB;IACnB,sBAAqB,EACtB;;AC1CH;EAEQ,oBAAmB,EACtB;;AAHL;EAKQ,oBAAmB,EACtB;;ACNL;EAEQ,mBAAkB,EACrB;;ACHL;EAEQ,iBAAgB;EAChB,oBAAmB,EACtB;;ACJL;EAIQ,UAAS,EAIV;EARP;IAMU,kBAAiB,EAClB;;AAPT;EAcM,iBAAgB,EAMjB;EApBL;IAiBQ,gBAAe;IACf,kBAAiB,EAClB;;AAnBP;;EAwBM,aAAY,EACb;;AAzBL;EA6BI,uBAAsB;EACtB,kBAAiB;EACjB,mBAAkB,EACnB;;AAhCH;EAmCI,kBAAiB;EACjB,mBAAkB,EAenB;EAnDH;IAuCM,aAAY;IACZ,0BAAyB;IACzB,SAAQ;IACR,aAAY;IACZ,mBAAkB;IAClB,SAAQ;IACR,WAAU,EACX;EA9CL;IAiDM,eACF,EAAC;;AAlDL;EAqDI,+BAA8B,EAC/B;;AAtDH;EAyDI,mBAAkB;EAClB,SAAQ;EACR,eAAc;EACd,gBAAe,EAChB;;AA7DH;EAgEI,wBAAuB,EACxB;;AAGH;EAEI,eAAc,EACf;;ACvEH;EAGM,iBAAgB,EAUjB;EAbL;IAMQ,kBAAiB;IACjB,gBAAe,EAKhB;IAZP;MAUU,sBAAqB,EACtB;;AAXT;EAgBM,aAAY,EACb;;AAjBL;EAqBQ,kBAAiB,EAClB;;AAtBP;;EA2BM,aAAY,EACb;;AA5BL;EAgCI,uBAAsB;EACtB,kBAAiB;EACjB,mBAAkB,EACnB;;AAnCH;EAsCI,iBAAgB,EAQjB;EA9CH;IAwCM,uBAAsB;IACtB,aAAY,EAIb;IA7CL;MA2CQ,sBAAqB,EACtB;;AA5CP;EAiDI,+BAA8B,EAC/B;;AAlDH;EAqDI,mBAAkB;EAClB,SAAQ;EACR,eAAc;EACd,gBAAe,EAChB;;AAGH;EAEI,eAAc,EACf;;AC/DH;EAGI,gBAAe;EACf,oBAAmB,EACpB;;AALH;EAQI,iBAAgB,EACjB;;AATH;EAYI,gBAAe,EAChB;;AAbH;EAgBI,eAAc;EACd,YAAW;EACX,aAAY;EACZ,oBAAmB,EACpB;;AApBH;EAuBI,wBAAuB,EACxB;;AAxBH;EA2BI,eAAc;EACd,YAAW;EACX,kBAAiB;EACjB,aAAY;EACZ,uBAAsB;EACtB,oBAAmB;EACnB,gBAAe;EACf,aAAY;EACZ,kBAAiB,EAKlB;EAxCH;IAqCM,WAAU;IACV,WAAU,EACX;;AAvCL;EA2CI,mBAAkB;EAClB,SAAQ;EACR,eAAc;EACd,gBAAe,EAChB;;AAGH;EACE,yBAAwB,EAKzB;EAND;IAII,eAAc,EACf;;AAEH;EACE,kBAAiB,EAClB;;AC3DD;EAGI,mBAAkB,EAOnB;EAVH;IAOQ,kBAAiB,EAClB;;AARP;EAcM,0BAAyB,EAC1B;;AAfL;EAkBQ,iBAAgB,EAMjB;EAxBP;IAqBU,gBAAe;IACf,kBAAiB,EAClB;;AAvBT;;EA4BQ,aAAY,EACb;;AA7BP;EAiCM,uBAAsB;EACtB,kBAAiB;EACjB,mBAAkB,EACnB;;AApCL;EAuCM,kBAAiB;EACjB,mBAAkB,EAenB;EAvDL;IA2CQ,aAAY;IACZ,0BAAyB;IACzB,SAAQ;IACR,aAAY;IACZ,mBAAkB;IAClB,SAAQ;IACR,WAAU,EACX;EAlDP;IAqDQ,eACF,EAAC;;AAtDP;EA0DM,+BAA8B,EAC/B;;AA3DL;EA8DM,aAAY;EACZ,mBAAkB;EAClB,aAAY;EACZ,OAAM;EACN,QAAO;EACP,kBAAiB;EACjB,oBAAmB;EACnB,sDAAqD,EACtD;;AAtEL;EAyEM,mBAAkB;EAClB,SAAQ;EACR,eAAc;EACd,gBAAe,EAChB;;AA7EL;EAgFM,wBAAuB,EACxB;;AAIL;EAEI,eAAc,EACf;;ACxFH;EAGY,gBAAe;EACf,mBAAkB;EAClB,kBAAiB,EACpB;;AANT;EAYgB,oBAAmB,EAC1B;;ACbT;EAEQ,gBAAe,EAClB;;;ACHL;EAEQ,oBAAmB,EACtB;;AAHL;EAKQ,qBAAa;EAAb,cAAa;EACb,uBAAmB;EAAnB,oBAAmB;EACnB,sBAAuB;EAAvB,wBAAuB,EAC1B","file":"demo.css","sourcesContent":["@charset \"UTF-8\";\n/* FormGroup */\n/* Navlayout */\n/* FormGroup */\n/* Navlayout */\n/**\r\n * 加载背景\r\n */\n/**\r\n * 文字\r\n */\n.u-loading-desc {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n font-size: 14px;\n color: #212121;\n text-align: center; }\n\n/**\r\n * default样式 单个圆圈加载\r\n */\n.u-loading.u-loading-rotate > div {\n position: absolute;\n border-radius: 100%;\n margin: 2px;\n -webkit-animation-fill-mode: both;\n animation-fill-mode: both;\n width: 40px;\n height: 40px;\n top: 50%;\n left: 50%;\n margin-left: -22px;\n margin-top: -22px;\n background: transparent !important;\n display: inline-block;\n -webkit-animation: rotate 1s 0s linear infinite;\n animation: rotate 1s 0s linear infinite;\n text-align: center;\n line-height: 40px; }\n .u-loading.u-loading-rotate > div > img {\n width: 40px; }\n .u-loading.u-loading-rotate > div > .uf {\n color: #0084ff;\n font-size: 40px;\n padding: 0; }\n\n.u-loading.u-loading-rotate.u-loading-rotate-lg > div {\n margin-left: -35px;\n margin-top: -35px;\n width: 60px;\n height: 60px;\n line-height: 60px; }\n .u-loading.u-loading-rotate.u-loading-rotate-lg > div > img {\n width: 60px; }\n .u-loading.u-loading-rotate.u-loading-rotate-lg > div > .uf {\n font-size: 60px; }\n\n.u-loading.u-loading-rotate.u-loading-rotate-sm > div {\n margin-left: -15px;\n margin-top: -15px;\n width: 25px;\n height: 25px;\n line-height: 25px; }\n .u-loading.u-loading-rotate.u-loading-rotate-sm > div > img {\n width: 25px; }\n .u-loading.u-loading-rotate.u-loading-rotate-sm > div > .uf {\n font-size: 25px; }\n\n.u-loading.u-loading-rotate.u-loading-rotate-primary > div > .uf {\n color: #3f51b5; }\n\n.u-loading.u-loading-rotate.u-loading-rotate-success > div > .uf {\n color: #4caf50; }\n\n.u-loading.u-loading-rotate.u-loading-rotate-warning > div > .uf {\n color: #ff9800; }\n\n.u-loading-backdrop {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1900;\n background-color: rgba(255, 255, 255, 0.4); }\n .u-loading-backdrop.full-screen {\n position: fixed; }\n\n@keyframes rotate {\n 0% {\n -webkit-transform: rotate(0deg) scale(1);\n transform: rotate(0deg) scale(1); }\n 50% {\n -webkit-transform: rotate(180deg) scale(1);\n transform: rotate(180deg) scale(1); }\n 100% {\n -webkit-transform: rotate(360deg) scale(1);\n transform: rotate(360deg) scale(1); } }\n\n.u-loading.u-loading-line {\n position: absolute;\n top: 50%;\n left: 50%;\n margin-top: -30px;\n margin-left: -25px; }\n .u-loading.u-loading-line > div {\n background-color: #C2C3C5;\n width: 6px;\n height: 50px;\n border-radius: 2px;\n margin: 2px;\n -webkit-animation-fill-mode: both;\n animation-fill-mode: both;\n display: inline-block; }\n .u-loading.u-loading-line.u-loading-line-lg {\n margin-top: -50px;\n margin-left: -30px; }\n .u-loading.u-loading-line.u-loading-line-lg > div {\n width: 8px;\n height: 90px; }\n .u-loading.u-loading-line.u-loading-line-sm {\n margin-top: -22px;\n margin-left: -20px; }\n .u-loading.u-loading-line.u-loading-line-sm > div {\n width: 4px;\n height: 35px; }\n .u-loading.u-loading-line div:nth-child(1) {\n -webkit-animation: line-scale 1s 0.1s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08);\n animation: line-scale 1s 0.1s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08);\n background-color: #F44336; }\n .u-loading.u-loading-line div:nth-child(2) {\n -webkit-animation: line-scale 1s 0.2s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08);\n animation: line-scale 1s 0.2s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08);\n background-color: #7ED321; }\n .u-loading.u-loading-line div:nth-child(3) {\n -webkit-animation: line-scale 1s 0.3s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08);\n animation: line-scale 1s 0.3s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08);\n background-color: #0084FF; }\n .u-loading.u-loading-line div:nth-child(4) {\n -webkit-animation: line-scale 1s 0.4s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08);\n animation: line-scale 1s 0.4s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08);\n background-color: #FF9800; }\n .u-loading.u-loading-line div:nth-child(5) {\n -webkit-animation: line-scale 1s 0.5s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08);\n animation: line-scale 1s 0.5s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08);\n background-color: #D0021B; }\n .u-loading.u-loading-line.u-loading-line-primary > div {\n background-color: #3f51b5; }\n .u-loading.u-loading-line.u-loading-line-success > div {\n background-color: #4caf50; }\n .u-loading.u-loading-line.u-loading-line-warning > div {\n background-color: #ff9800; }\n\n.u-loading.u-loading-custom > div {\n position: absolute;\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%); }\n\n@keyframes line-scale {\n 0% {\n -webkit-transform: scaley(1);\n transform: scaley(1); }\n 50% {\n -webkit-transform: scaley(0.4);\n transform: scaley(0.4); }\n 100% {\n -webkit-transform: scaley(1);\n transform: scaley(1); } }\n\n.u-table {\n font-size: 12px;\n color: #212121;\n position: relative;\n line-height: 1.33;\n overflow: hidden; }\n .u-table-body {\n position: relative; }\n .u-table-body .u-table-row-expand-columns-in-body .expand-icon-con {\n display: none;\n pointer-events: none; }\n .u-table-hiden-drag {\n position: relative; }\n .u-table-hiden-drag-li {\n position: absolute;\n top: 0px;\n left: 0px; }\n .u-table table {\n width: 100%;\n border-collapse: collapse;\n text-align: left; }\n .u-table th {\n font-weight: bold;\n text-align: left;\n line-height: 16px; }\n .u-table th[colspan] {\n text-align: center; }\n .u-table th ::last-child {\n overflow: hidden; }\n .u-table td {\n border-bottom: 1px solid rgb(193, 199, 208);\n line-height: 1.33; }\n .u-table td a {\n color: #2196F3; }\n .u-table td a:hover {\n color: #1565c0; }\n .u-table td a:active {\n color: #1565c0; }\n .u-table td .u-switch-span {\n display: inline-block; }\n .u-table thead tr:last-child {\n border-bottom: 1px solid #C1C7D0; }\n .u-table tr:hover td .uf-eye {\n visibility: visible !important; }\n .u-table tr tr a {\n color: #2196F3; }\n .u-table tr tr a:hover {\n color: #1565c0; }\n .u-table tr tr a:active {\n color: #1565c0; }\n .u-table tr td.u-table-multiSelect-column.u-table-row-has-expandIcon:not(.u-table-row-fixed-columns-in-body) {\n display: flex;\n flex-direction: row-reverse; }\n .u-table tr td.u-table-multiSelect-column.u-table-row-has-expandIcon:not(.u-table-row-fixed-columns-in-body):nth-last-child(1):last-child {\n border-right: none; }\n .u-table tr td.u-table-multiSelect-column.u-table-row-has-expandIcon:not(.u-table-row-fixed-columns-in-body) .expand-icon-con {\n height: 14px; }\n .u-table tr td.u-table-multiSelect-column.u-table-row-has-expandIcon:not(.u-table-row-fixed-columns-in-body) .expand-icon-con .uf {\n padding: 0; }\n .u-table tr td.u-table-multiSelect-column.u-table-row-has-expandIcon:not(.u-table-row-fixed-columns-in-body) .expand-icon-con .u-table-row-expand-icon {\n width: 2px; }\n .u-table tr td.u-table-multiSelect-column.u-table-row-has-expandIcon:not(.u-table-row-fixed-columns-in-body) .u-checkbox {\n margin: 0; }\n .u-table tr td.u-table-inline-icon {\n position: relative;\n padding-right: 24px; }\n .u-table tr td.u-table-inline-icon span.u-table-inline-op-icon {\n position: absolute;\n right: 0; }\n .u-table tr td.u-table-inline-icon span.u-table-inline-op-icon .uf {\n display: block;\n vertical-align: top; }\n .u-table tr td.u-table-inline-icon span.u-table-inline-op-icon-hover {\n visibility: hidden; }\n .u-table tr.u-table-row-hover td.u-table-inline-icon span.u-table-inline-op-icon-hover {\n visibility: visible; }\n .u-table .u-table-inline-op-icon-hidden {\n visibility: hidden; }\n .u-table tr.tr-row-hover {\n background: rgb(235, 236, 240); }\n .u-table th,\n .u-table td {\n padding: 12px 8px;\n word-break: break-all; }\n .u-table th.drag-handle-column .uf,\n .u-table td.drag-handle-column .uf {\n font-size: 12px;\n line-height: 12px; }\n .u-table th.drag-handle-column.u-table-row-has-expandIcon .uf,\n .u-table td.drag-handle-column.u-table-row-has-expandIcon .uf {\n padding: 0; }\n .u-table th.text-center,\n .u-table td.text-center {\n text-align: center; }\n .u-table th.text-right,\n .u-table td.text-right {\n text-align: right; }\n .u-table th .expand-icon-con,\n .u-table td .expand-icon-con {\n cursor: pointer;\n display: inline-block;\n font-size: 12px;\n line-height: 12px; }\n .u-table th .expand-icon-con .uf,\n .u-table td .expand-icon-con .uf {\n padding: 0;\n font-size: 12px; }\n .u-table-sm td {\n padding: 8px 8px; }\n .u-table-lg td {\n padding: 16px 8px; }\n .u-table tr.filterable th {\n padding-top: 5px !important;\n padding-bottom: 5px !important; }\n .u-table tr.filterable th .filterContext {\n height: 35px; }\n .u-table tr.filterable th .u-select-selection--single {\n height: 26px; }\n .u-table-row-hover {\n background: rgb(235, 236, 240); }\n .u-table-scroll {\n overflow: auto; }\n .u-table-bordered table {\n border: 1px solid rgb(193, 199, 208);\n box-sizing: border-box;\n table-layout: fixed; }\n .u-table-bordered .u-table-header > table {\n border-bottom: 0; }\n .u-table-bordered .u-table-header ~ .u-table-body table, .u-table-bordered .u-table-header ~ .u-table-body-outer table {\n border-top: 0px; }\n .u-table-bordered th {\n border-bottom: 1px solid rgb(193, 199, 208);\n box-sizing: border-box; }\n .u-table-bordered th,\n .u-table-bordered td {\n border-right: 1px solid rgb(193, 199, 208);\n box-sizing: border-box; }\n .u-table-drag-border tr th.th-can-not-drag {\n overflow: hidden; }\n .u-table-drag-border tr th.th-can-not-drag .u-table-thead-th-drag-gap {\n display: none; }\n .u-table-header {\n overflow: hidden;\n background: rgb(241, 242, 245);\n color: rgb(33, 33, 33); }\n .u-table.fixed-height td {\n padding: 0px 8px; }\n .u-table-fixed-header .u-table-body {\n background: #fff;\n position: relative; }\n .u-table-fixed-left .u-table-body-inner {\n margin-right: -20px;\n padding-right: 20px; }\n .u-table-fixed-header:not(.u-table-hide-header) .u-table-fixed-left .u-table-body-inner {\n padding-right: 0px; }\n .u-table-fixed-header .u-table-body-inner {\n height: 100%;\n overflow: scroll; }\n .u-table-fixed-header .u-table-scroll .u-table-header {\n overflow-x: scroll;\n padding-bottom: 20px;\n margin-bottom: -20px;\n overflow-y: scroll;\n box-sizing: border-box; }\n .u-table-title {\n padding: 12px 8px;\n border-top: 1px solid rgb(193, 199, 208); }\n .u-table-content {\n position: relative; }\n .u-table-footer {\n padding: 12px 8px;\n border-bottom: 1px solid rgb(193, 199, 208); }\n .u-table-footer .u-table-scroll {\n overflow-x: hidden; }\n .u-table-footer .u-table {\n margin: -12px -8px; }\n .u-table-placeholder {\n padding: 12px 8px;\n background: #fff;\n border-bottom: 1px solid rgb(193, 199, 208);\n text-align: center;\n position: relative; }\n .u-table-placeholder .table-nodata {\n font-size: 40px;\n line-height: 44px; }\n .u-table-placeholder .table-nodata + span {\n font-size: 12px;\n line-height: 12px;\n display: block; }\n .u-table-expand-icon-col {\n width: 10px; }\n .u-table-row .u-table tr, .u-table-expanded-row .u-table tr {\n background: #fff; }\n .u-table-row .u-table tr.u-table-row-hover, .u-table-expanded-row .u-table tr.u-table-row-hover {\n background: rgb(235, 236, 240); }\n .u-table-row-expand-icon, .u-table-expanded-row-expand-icon {\n cursor: pointer;\n display: inline-block;\n margin-right: 8px;\n width: 14px;\n height: 14px;\n text-align: center;\n line-height: 14px;\n user-select: none; }\n .u-table-row-expand-icon.uf, .u-table-expanded-row-expand-icon.uf {\n font-size: 12px;\n padding: 0; }\n .u-table-row-spaced, .u-table-expanded-row-spaced {\n visibility: hidden; }\n .u-table-row-spaced:after, .u-table-expanded-row-spaced:after {\n content: \".\"; }\n .u-table-row-expanded:after, .u-table-expanded-row-expanded:after {\n content: \"\\e639\";\n font-family: \"uf\"; }\n .u-table-row-collapsed:after, .u-table-expanded-row-collapsed:after {\n content: \"\\e61c\";\n font-family: \"uf\"; }\n .u-table-row.selected {\n background: #FFF7E7; }\n .u-table tr.u-table-expanded-row {\n background: #DFE1E6; }\n .u-table tr.u-table-expanded-row:hover {\n background: #DFE1E6; }\n .u-table tr.u-table-expanded-row .u-table {\n z-index: 1; }\n .u-table-column-hidden {\n display: none; }\n .u-table-prev-columns-page, .u-table-next-columns-page {\n cursor: pointer;\n color: #666;\n z-index: 1; }\n .u-table-prev-columns-page:hover, .u-table-next-columns-page:hover {\n color: #2db7f5; }\n .u-table-prev-columns-page-disabled, .u-table-next-columns-page-disabled {\n cursor: not-allowed;\n color: #999; }\n .u-table-prev-columns-page-disabled:hover, .u-table-next-columns-page-disabled:hover {\n color: #999; }\n .u-table-prev-columns-page {\n margin-right: 8px; }\n .u-table-prev-columns-page:before {\n content: \"<\"; }\n .u-table-next-columns-page {\n float: right; }\n .u-table-next-columns-page:before {\n content: \">\"; }\n .u-table-fixed-left, .u-table-fixed-right {\n position: absolute;\n top: 0;\n overflow: hidden;\n z-index: 1; }\n .u-table-fixed-left table, .u-table-fixed-right table {\n width: auto;\n background: #fff; }\n .u-table-fixed-left {\n left: 0;\n box-shadow: 4px 0 4px rgba(100, 100, 100, 0.1); }\n .u-table-fixed-left-body-inner {\n margin-right: -20px;\n padding-right: 20px; }\n .u-table-fixed-left-fixed-header .u-table-fixed-left .u-table-fixed-left-body-inner {\n padding-right: 0; }\n .u-table-fixed-right {\n right: 0;\n box-shadow: -4px 0 4px rgba(100, 100, 100, 0.1); }\n .u-table-fixed-right-expanded-row {\n color: transparent;\n pointer-events: none; }\n .u-table-scroll-position-left .u-table-fixed-left {\n box-shadow: none; }\n .u-table-scroll-position-right .u-table-fixed-right {\n box-shadow: none; }\n .u-table-thead .filter-text, .u-table-thead .filter-dropdown, .u-table-thead .filter-date {\n font-weight: normal; }\n .u-table-thead .filter-wrap {\n display: flex;\n justify-content: center;\n align-items: center; }\n .u-table-thead .filter-wrap .filter-btns {\n min-width: 58px; }\n .u-table-thead th {\n background: rgb(241, 242, 245);\n color: rgb(33, 33, 33);\n background-clip: padding-box;\n -moz-user-select: -moz-none;\n -khtml-user-select: none;\n -webkit-user-select: none;\n /*\n Introduced in IE 10. \n */\n -ms-user-select: none;\n user-select: none; }\n .u-table-thead th .required {\n color: #F22C1D; }\n .u-table-thead th .bee-table-column-sorter {\n position: relative;\n margin-left: 4px;\n height: 16px;\n vertical-align: middle;\n text-align: center;\n display: inline-block;\n margin-top: -3px; }\n .u-table-thead th .bee-table-column-sorter i {\n padding: 0px;\n font-weight: 600;\n color: #505F79; }\n .u-table-thead th .bee-table-column-sorter > .bee-table-column-sorter-down,\n .u-table-thead th .bee-table-column-sorter > .bee-table-column-sorter-up, .u-table-thead th .bee-table-column-sorter > .bee-table-column-sorter-flat {\n line-height: 16px;\n display: block;\n width: 34px;\n cursor: pointer; }\n .u-table-thead th .bee-table-column-sorter-down.on .uf-triangle-down,\n .u-table-thead th .bee-table-column-sorter-down.on .uf-triangle-up,\n .u-table-thead th .bee-table-column-sorter-up.on .uf-triangle-down,\n .u-table-thead th .bee-table-column-sorter-up.on .uf-triangle-up {\n color: #108ee9; }\n .u-table-thead th .bee-table-column-sorter .uf-triangle-down,\n .u-table-thead th .bee-table-column-sorter .uf-triangle-up {\n -webkit-filter: none;\n filter: none;\n font-size: 12px; }\n .u-table-thead th .bee-table-column-sorter .uf-triangle-down,\n .u-table-thead th .bee-table-column-sorter .uf-triangle-up {\n display: inline-block;\n padding: 0;\n font-size: 12px;\n font-size: 8px\\9;\n -webkit-transform: scale(0.66667) rotate(0deg);\n -ms-transform: scale(0.66667) rotate(0deg);\n transform: scale(0.66667) rotate(0deg);\n -ms-filter: \"progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=1, M12=0, M21=0, M22=1)\";\n zoom: 1;\n line-height: 4px;\n height: 4px;\n color: #999; }\n .u-table-thead th:hover .bee-table-column-sorter {\n display: inline-block; }\n .u-table-thead .th-drag {\n cursor: move; }\n .u-table-thead .th-drag:hover {\n background: rgb(235, 236, 240); }\n .u-table-thead .th-drag-hover {\n background: #ccc; }\n .u-table-thead-th {\n position: relative; }\n .u-table-thead-th-drag-gap {\n height: 100%;\n position: absolute;\n right: -10px;\n top: 0;\n width: 20px;\n box-sizing: border-box;\n z-index: 1; }\n .u-table-thead-th-drag-gap .online {\n height: 100%;\n width: 4px;\n margin: 0 auto; }\n .u-table-thead-th-drag-gap .online:hover {\n background: #000000; }\n .u-table-thead-th-drag-gap .online-hover {\n background: #000000; }\n .u-table-thead-th-drag-gap:hover {\n cursor: col-resize; }\n .u-table-thead-th-drag-gap:hover .online {\n background: #000000; }\n .u-table-thead-th:last-child-drag-gap {\n border: none; }\n .u-table-filter-column-pop-cont {\n margin: 0px;\n max-height: 300px;\n overflow-y: auto;\n color: #212121; }\n .u-table-filter-column-clear-setting {\n cursor: pointer;\n margin-bottom: 4px; }\n .u-table-filter-column-cont {\n position: relative; }\n .u-table-filter-column-filter-icon {\n position: absolute;\n width: 30px;\n height: 39px;\n line-height: 39px;\n right: 0px;\n top: 1px;\n z-index: 2;\n background: rgb(241, 242, 245);\n text-align: center;\n cursor: pointer; }\n .u-table-filter-column-filter-icon i.uf {\n padding: 0px;\n color: #505F79; }\n .u-table-filter-column-pop-cont-item {\n margin-top: 8px;\n font-size: 12px;\n cursor: pointer; }\n .u-table-filter-column-pop-cont-item .u-checkbox {\n margin: 0px; }\n .u-table-filter-column-pop-cont-item span.drop-menu-title {\n margin-left: -3px;\n max-width: 132px;\n width: auto !important;\n min-width: 56px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n display: inline-block;\n vertical-align: middle; }\n .u-table-filter-column-pop .u-modal-dialog {\n border: 1px solid #ccc;\n background: #fff; }\n .u-table-row-fixed-columns-in-body {\n display: none;\n pointer-events: none; }\n .u-table .u-checkbox {\n height: 14px;\n line-height: 14px;\n margin: 0px;\n display: block;\n margin-left: 5px; }\n .u-table .u-checkbox .u-checkbox-label {\n line-height: 14px;\n padding-left: 16px; }\n .u-table .u-checkbox .u-checkbox-label:before, .u-table .u-checkbox .u-checkbox-label:after {\n width: 14px;\n height: 14px; }\n .u-table .u-table-scroll tr td:first-child, .u-table .u-table-scroll tr th:first-child, .u-table .u-table-fixed-left tr td:first-child, .u-table .u-table-fixed-left tr th:first-child {\n padding-left: 12px; }\n .u-table.has-fixed-left .u-table-scroll tr td:first-child, .u-table.has-fixed-left .u-table-scroll tr th:first-child {\n padding-left: 8px; }\n .u-table ::-webkit-scrollbar {\n width: 8px;\n height: 8px; }\n .u-table ::-webkit-scrollbar-button {\n display: none; }\n .u-table ::-webkit-scrollbar-thumb {\n background: #d5d5d5 !important;\n border-radius: 5px; }\n .u-table ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: #d5d5d5;\n position: absolute; }\n .u-table ::-webkit-scrollbar-track {\n display: none; }\n .u-table ::-webkit-scrollbar-track-piece {\n display: none; }\n .u-table .drag-handle-column, .u-table .row-dragg-able {\n cursor: move; }\n .u-table .u-table-drag-hidden-cont {\n width: 100px;\n height: 40px; }\n .u-table .u-table-link {\n cursor: pointer;\n color: #0073E1; }\n .u-table .u-table-link-underline:hover {\n text-decoration: underline; }\n .u-table .u-table-currency {\n display: inline-block;\n text-align: right; }\n\n.u-table:focus {\n outline: none;\n box-shadow: 0 0 0; }\n\n.u-table-bordered .u-table-drag-gap {\n background: #e9e9e9; }\n\n.u-table.bordered table {\n border-collapse: collapse; }\n\n.u-table.bordered th,\n.u-table.bordered td {\n border: 1px solid rgb(193, 199, 208); }\n\n.move-enter,\n.move-appear {\n opacity: 0;\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n animation-duration: 2.5s;\n animation-fill-mode: both;\n animation-play-state: paused; }\n\n.move-leave {\n animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);\n animation-duration: 0.5s;\n animation-fill-mode: both;\n animation-play-state: paused; }\n\n.move-enter.move-enter-active,\n.move-appear.move-enter-active {\n animation-name: moveLeftIn;\n animation-play-state: running; }\n\n.move-leave.move-leave-active {\n animation-name: moveRightOut;\n animation-play-state: running; }\n\n@keyframes moveLeftIn {\n 0% {\n transform-origin: 0 0;\n transform: translateX(30px);\n opacity: 0;\n background: rgb(238,238,238); }\n 20% {\n transform-origin: 0 0;\n transform: translateX(0);\n opacity: 1; }\n 80% {\n background: rgb(238,238,238); }\n 100% {\n background: transparent;\n opacity: 1; } }\n\n@keyframes moveRightOut {\n 0% {\n transform-origin: 0 0;\n transform: translateX(0);\n opacity: 1; }\n 100% {\n transform-origin: 0 0;\n transform: translateX(-30px);\n opacity: 0; } }\n\n.formItem-style {\n height: unset;\n min-height: unset;\n padding: 0; }\n\n.errMessage-style {\n display: none;\n border: none;\n /* margin-top: 5px; */\n /* margin-bottom: 5px; */\n background: transparent;\n color: #f22c1d;\n /* padding-left: 12px; */\n /* padding-right: 12px; */\n margin: 0;\n position: absolute;\n padding: 0;\n top: 3px;\n right: 0; }\n\n.editable-cell {\n position: relative; }\n\n.editable-cell-input-wrapper,\n.editable-cell-text-wrapper {\n padding-right: 24px; }\n\n.editable-cell-input-wrapper .u-form-item.formItem-style .u-label {\n display: none; }\n\n.editable-cell-input-wrapper .u-input-group .u-form-control {\n height: 26px;\n font-size: 12px; }\n\n.editable-cell-text-wrapper {\n padding: 5px 24px 5px 5px;\n height: 30px; }\n\n.editable-cell-icon,\n.editable-cell-icon-check {\n position: absolute;\n top: 0;\n right: 0;\n width: 20px;\n cursor: pointer; }\n\n.editable-cell-icon {\n line-height: 28px;\n display: none; }\n\n.editable-cell-icon-check {\n line-height: 28px; }\n\n.editable-cell:hover .editable-cell-icon {\n display: inline-block; }\n\n.editable-cell-icon:hover,\n.editable-cell-icon-check:hover {\n color: #2db7f5; }\n\n.editable-add-btn {\n margin-bottom: 8px; }\n\n.search-component {\n margin-bottom: 20px; }\n .search-component .empty-search {\n position: absolute;\n right: 45px;\n z-index: 20;\n top: 5px;\n color: #524e4e;\n cursor: pointer; }\n .search-component.u-input-group.simple {\n float: right; }\n .search-component.u-input-group.simple .u-form-control {\n width: 251px;\n background: #f5f5f5;\n border-color: #f5f5f5;\n border-radius: 20px; }\n .search-component.u-input-group.simple .u-input-group-btn {\n top: 3px;\n right: 20px;\n position: absolute; }\n\n.col-resize-container {\n height: 0px;\n position: relative; }\n .col-resize-container + .table-col-resizer:first-of-type {\n table-layout: fixed; }\n .col-resize-container .active-drag .icon {\n visibility: visible; }\n .col-resize-container .last-handle {\n display: none; }\n .col-resize-container .drag-handle {\n margin-left: -5px;\n position: absolute;\n z-index: 5;\n width: 10px;\n cursor: col-resize; }\n .col-resize-container .drag-handle .icon {\n color: #40b0dc;\n top: -1px;\n position: absolute;\n visibility: hidden; }\n .col-resize-container .drag-handle .icon:first-child {\n left: -2px; }\n .col-resize-container .drag-handle .icon:last-child {\n left: 6px; }\n .col-resize-container .drag-handle:hover .icon {\n visibility: visible; }\n .col-resize-container .drag-handle:hover .col-resizer {\n border: 1px solid; }\n .col-resize-container .drag-handle.disabled-drag {\n cursor: default;\n display: none; }\n .col-resize-container .drag-handle .col-resizer {\n position: absolute;\n width: 1px;\n height: 100%;\n top: 0px;\n left: 3px; }\n\n.u-filter-dropdown-menu-wrap {\n z-index: 1800; }\n .u-filter-dropdown-menu-wrap .u-dropdown-menu li.u-dropdown-menu-item {\n line-height: 26px;\n height: 26px;\n padding: 0px 16px 0 16px;\n cursor: pointer; }\n\n.filter-wrap .u-form-control {\n height: 26px; }\n\n.filter-wrap .u-input-number.u-input-group.simple .u-input-group-btn .icon-group {\n height: 26px; }\n\n.filter-wrap .calendar-picker .u-input-group-btn {\n line-height: 20px; }\n\n.filter-wrap .u-input-number.u-input-group.simple .u-input-group-btn .icon-group .uf {\n line-height: 12px; }\n\n.u-row-hover {\n position: absolute;\n right: 24px;\n display: none;\n align-items: center;\n justify-content: center;\n background: transparent; }\n\n.u-row-hover2 {\n position: absolute;\n left: 100; }\n\n.header-dispaly-in-row.u-table table {\n table-layout: fixed; }\n\n.header-dispaly-in-row th {\n text-overflow: ellipsis;\n white-space: nowrap;\n vertical-align: middle;\n overflow: hidden; }\n\n.body-dispaly-in-row.u-table table {\n table-layout: fixed; }\n\n.body-dispaly-in-row td {\n text-overflow: ellipsis;\n white-space: nowrap;\n vertical-align: middle;\n overflow: hidden; }\n\n.body-dispaly-in-row .u-table-fieldtype {\n text-overflow: ellipsis;\n white-space: nowrap;\n vertical-align: middle;\n overflow: hidden; }\n\n.u-table-drag-hidden-cont {\n position: absolute;\n top: -1000px; }\n\n.u-editable-table .u-table .u-table-row-hover .editable-cell-text-wrapper {\n padding-left: 4px;\n border: 1px solid #c1c7d0; }\n\n.u-editable-table .u-table .editable-cell-text-wrapper:hover {\n padding-left: 4px;\n border: 1px solid #a5adba; }\n\n.u-editable-table .u-table .editable-cell-input-wrapper:focus {\n outline: none; }\n\n.u-editable-table-tp .tooltip-arrow {\n top: 1px !important;\n border-bottom-color: #F44336 !important; }\n\n.u-editable-table-tp .tooltip-inner {\n border-color: #F44336 !important; }\n\n.u-dropdown ul.u-table-inline-op-dropdowm li.u-dropdown-menu-item {\n padding: 0 20px 0 10px;\n height: 30px;\n line-height: 30px; }\n .u-dropdown ul.u-table-inline-op-dropdowm li.u-dropdown-menu-item i.uf {\n font-size: 12px; }\n\n.selected {\n background: #FFF7E7; }\n\n.demo25 {\n height: 100%; }\n .demo25 .u-table-filter-column-filter-icon {\n right: 15px; }\n\n.opt-btns .u-button {\n margin: 0 4px;\n color: #fff;\n background: #505F79;\n border-color: #505F79; }\n .opt-btns .u-button:hover, .opt-btns .u-button:active {\n background: #344563;\n border-color: #505F79; }\n\n.demo04.u-table tr:nth-child(2n) {\n background: #f7f9fb; }\n\n.demo04.u-table tr.u-table-row-hover, .demo04 .u-table tr:hover {\n background: #ebecf0; }\n\n.demo22 .opt-btns {\n margin-bottom: 8px; }\n\n.demo32 .u-table-thead th {\n padding-top: 0px;\n padding-bottom: 0px; }\n\n.demo0501 .u-table .u-row-hover .opt-btns button, .demo0501 .u-table .u-row-hover .cancel-btns button {\n margin: 0; }\n .demo0501 .u-table .u-row-hover .opt-btns button:first-child, .demo0501 .u-table .u-row-hover .cancel-btns button:first-child {\n margin-right: 8px; }\n\n.demo0501 .u-table .u-table-row td {\n padding: 5px 8px; }\n .demo0501 .u-table .u-table-row td input {\n font-size: 12px;\n padding-left: 5px; }\n\n.demo0501 .u-table .u-table-row .u-form-control,\n.demo0501 .u-table .u-table-row .u-select-selection {\n height: 30px; }\n\n.demo0501 .u-table .editable-cell-text-wrapper {\n box-sizing: border-box;\n line-height: 20px;\n border-radius: 3px; }\n\n.demo0501 .u-table .required {\n margin-left: 10px;\n position: relative; }\n .demo0501 .u-table .required::before {\n content: \" \";\n border: 1px solid #F44336;\n width: 0;\n height: 12px;\n position: absolute;\n top: 9px;\n left: -8px; }\n .demo0501 .u-table .required span.u-input-group {\n display: block; }\n\n.demo0501 .u-table .verify-cell {\n padding-right: 25px !important; }\n\n.demo0501 .u-table .required-icon {\n position: absolute;\n top: 2px;\n color: #F44336;\n font-size: 20px; }\n\n.demo0501 .u-table .ref-input-wrap {\n width: 160px !important; }\n\n.u-editable-table-tp .tp-content {\n color: #F44336; }\n\n.u-editable-table .u-table .u-table-row td {\n padding: 5px 8px; }\n .u-editable-table .u-table .u-table-row td input {\n padding-left: 5px;\n font-size: 12px; }\n .u-editable-table .u-table .u-table-row td input.error {\n border-color: #F44336; }\n\n.u-editable-table .u-table .u-table-row .editable-cell {\n height: 30px; }\n\n.u-editable-table .u-table .u-table-row-hover .editable-cell-text-wrapper {\n line-height: 19px; }\n\n.u-editable-table .u-table .u-table-row .u-form-control,\n.u-editable-table .u-table .u-table-row .u-select-selection {\n height: 30px; }\n\n.u-editable-table .u-table .editable-cell-text-wrapper {\n box-sizing: border-box;\n line-height: 20px;\n border-radius: 3px; }\n\n.u-editable-table .u-table .editable-cell-input-wrapper {\n padding-right: 0; }\n .u-editable-table .u-table .editable-cell-input-wrapper .ref-input-wrap {\n width: auto !important;\n height: 30px; }\n .u-editable-table .u-table .editable-cell-input-wrapper .ref-input-wrap .u-input-group {\n display: inline-block; }\n\n.u-editable-table .u-table .verify-cell {\n padding-right: 25px !important; }\n\n.u-editable-table .u-table .require {\n position: absolute;\n top: 2px;\n color: #F44336;\n font-size: 20px; }\n\n.u-editable-table-tp .tp-content {\n color: #F44336; }\n\n.demo0503-m-b.u-modal .u-modal-body {\n padding: 16px 0;\n background: #f7f9fb; }\n\n.demo0503-m-b .u-form-group {\n overflow: hidden; }\n\n.demo0503-m-b .u-form-control {\n font-size: 12px; }\n\n.demo0503-m-b .editable-cell {\n display: block;\n float: left;\n width: 265px;\n padding-right: 25px; }\n\n.demo0503-m-b .ref-input-wrap {\n width: 240px !important; }\n\n.demo0503-m-b .u-label {\n display: block;\n float: left;\n text-align: right;\n width: 110px;\n box-sizing: border-box;\n padding-right: 10px;\n font-size: 12px;\n height: 32px;\n line-height: 32px; }\n .demo0503-m-b .u-label .mast {\n padding: 0;\n color: red; }\n\n.demo0503-m-b .required-icon {\n position: absolute;\n top: 2px;\n color: #F44336;\n font-size: 20px; }\n\n.u-editable-table-tp {\n z-index: 9999 !important; }\n .u-editable-table-tp .tp-content {\n color: #F44336; }\n\n.ref-core-button .u-button:first-child {\n margin-right: 8px; }\n\n.demo0505 .toolbar-btns {\n margin-bottom: 8px; }\n .demo0505 .toolbar-btns .u-button:first-child {\n margin-right: 8px; }\n\n.demo0505 .u-table .u-row-select {\n background-color: #FFF7E7; }\n\n.demo0505 .u-table .u-table-row td {\n padding: 5px 8px; }\n .demo0505 .u-table .u-table-row td input {\n font-size: 12px;\n padding-left: 5px; }\n\n.demo0505 .u-table .u-table-row .u-form-control,\n.demo0505 .u-table .u-table-row .u-select-selection {\n height: 30px; }\n\n.demo0505 .u-table .editable-cell-text-wrapper {\n box-sizing: border-box;\n line-height: 20px;\n border-radius: 3px; }\n\n.demo0505 .u-table .required {\n margin-left: 10px;\n position: relative; }\n .demo0505 .u-table .required::before {\n content: \" \";\n border: 1px solid #F44336;\n width: 0;\n height: 12px;\n position: absolute;\n top: 9px;\n left: -8px; }\n .demo0505 .u-table .required span.u-input-group {\n display: block; }\n\n.demo0505 .u-table .verify-cell {\n padding-right: 25px !important; }\n\n.demo0505 .u-table .edited::after {\n content: \" \";\n position: absolute;\n z-index: 999;\n top: 0;\n left: 0;\n border-width: 5px;\n border-style: solid;\n border-color: #f44336 transparent transparent #f44336; }\n\n.demo0505 .u-table .required-icon {\n position: absolute;\n top: 2px;\n color: #F44336;\n font-size: 20px; }\n\n.demo0505 .u-table .ref-input-wrap {\n width: 160px !important; }\n\n.u-editable-table-tp .tp-content {\n color: #F44336; }\n\nth .drop-menu .uf {\n font-size: 12px;\n visibility: hidden;\n margin-left: 15px; }\n\nth:hover .uf {\n visibility: visible; }\n\n.expanded-table .expand-icon-con .uf {\n font-size: 12px; }\n\n\n.demo8 .u-table {\n margin-bottom: 11px; }\n\n.demo8 .u-pagination {\n display: flex;\n align-items: center;\n justify-content: center; }\n","\n\n// $performance_font: 'Helvetica', 'Arial', sans-serif !default;\n\n@import \"minxin-colors\";\n\n\n\n@function strip-units($number) {\n @return $number / ($number * 0 + 1);\n}\n$unit: 10px !default;\n// IMAGES\n$image_path: '/images' !default;\n\n\n\n//默认颜色\n$trim-color-classes: false !default;\n\n@import \"minxin-themeColors\";\n\n//对比色\n$color-primary-contrast: $color-dark-contrast !default;\n$color-accent-contrast: $color-dark-contrast !default;\n//字体颜色\n$color-text: $palette-grey-900 !default;\n\n//不明所以 $primary-color: unquote(\"rgba(#{$palette-grey-500}, 0.20)\") !default;\n\n// -- Fonts 字体大小权重预定义\n$preferred-font: 'Open Sans','Helvetica Neue',Arial,'Hiragino Sans GB','Microsoft YaHei',sans-serif !default;\n$font-size: 1.6 * $unit !default;\n$font-size-tiny: 1.2 * $unit !default;\n$font-size-small: 1.4 * $unit !default;\n$font-size-normal: $font-size !default;\n$font-size-big: 1.8 * $unit !default;\n$font-size-base: 12px !default;\n$font-weight-thin: 300 !default;\n$font-weight-normal: 400 !default;\n$font-weight-semi-bold: 500 !default;\n$font-weight-bold: 700 !default;\n$font-color:unquote(\"rgb(#{$palette-u-gray-800})\") !default;\n// 白色背景下的文字颜色\n$font-color-base: #212121 !default;\n\n$font-weight-override: false;\n$font-weight-light: 300;\n$font-weight-normal: 400;\n$font-weight-medium: 500;\n$font-weight-bold: 700;\n$font-weight-base: $font-weight-normal;\n\n\n\n\n$gray-base: unquote(\"rgb(#{$palette-grey-900})\") !default;\n$gray-darkest: unquote(\"rgb(#{$palette-grey-800})\") !default;\n$gray-darker: unquote(\"rgb(#{$palette-grey-700})\") !default;\n$gray-dark: unquote(\"rgb(#{$palette-grey-600})\") !default;\n$gray: unquote(\"rgb(#{$palette-grey-500})\") !default;\n$gray-light: unquote(\"rgb(#{$palette-grey-400})\") !default;\n$gray-lighter: unquote(\"rgb(#{$palette-grey-300})\") !default;\n$gray-lightest:unquote(\"rgb(#{$palette-grey-200})\") !default;\n$inverse: unquote(\"rgb(#{$color-white})\") !default;\n// $border-color-base: $gray-lighter;\n$border-color-base: unquote(\"rgb(#{$border-color})\") !default;\n$line-height-base: 1.57142857;\n\n// 边框圆角\n$border-radius-base: $border-radius;\n\n// 阴影\n\n$shadow-key-umbra-opacity: 0.2 !default;\n$shadow-key-penumbra-opacity: 0.14 !default;\n$shadow-ambient-shadow-opacity: 0.12 !default;\n\n$shadow-base: 0 1px 5px $gray-lighter;\n\n\n\n//-- Indexes\n$z-index-highest: 300;\n$z-index-higher: 200;\n$z-index-high: 100;\n$z-index-normal: 1;\n$z-index-low: -100;\n$z-index-lower: -200;\n\n$zindex-modal: 1700;\n$zindex-modal-background: 1600;\n$zIndex-notification: 1560;\n$zIndex-message: 1550;\n$zIndex-popconfirm: 1540;\n$zIndex-popover: 1540;\n$zIndex-tooltip: 1530;\n$zIndex-alert: 1510;\n$zindex-navbar-fixed: 1500;\n$zindex-menubar: 1400;\n$zindex-overlay: 1300;\n$zindex-dropdown: 1200;\n$zindex-navbar: 1200;\n$zindex-header: 1100;\n$zindex-footer: 1000;\n$zindex-backtop:2000;\n\n// 文本字体\n\n//todo\n$text-color-primary: unquote(\"rgba(#{$color-black}, 0.87)\") !default;\n$text-link-color: unquote(\"rgb(#{$color-accent})\") !default;\n\n$target-elements-directly: true !default;\n\n\n$global-selected-color: unquote(\"rgb(#{$palette-blue-100})\") !default;\n\n\n// 控件\n$cursor-disabled: not-allowed;\n\n\n$title-color: $gray-darkest;\n//todo\n$subtitle-color: $gray-darker;\n$text-color: $gray-dark;\n\n$prompt-color: $gray;\n//全局不同状态颜色\n//todo\n$active-color-base: unquote(\"rgb(#{$palette-blue-800})\") !default;\n$normal-color-base: unquote(\"rgb(#{$palette-blue-600})\") !default;\n$hover-color-base: unquote(\"rgb(#{$palette-blue-400})\") !default;\n\n$bg-color-base: $gray-lightest;\n\n//disable颜色\n$disabled-color-base: #909090;\n$disabled-border-color: $gray-lighter;\n$disabled-bg-color: $gray-lightest;\n\n// 全局链接颜色\n$link-color: $normal-color-base;\n$link-hover-color: $hover-color-base;\n$link-active-color: $active-color-base;\n\n// 品牌色\n$brand-default: $gray-lighter;\n$brand-default-hover: $gray-lightest;\n$brand-default-active: $gray-light;\n// $brand-default: unquote(\"rgb(#{$color-primary})\");\n// $brand-default-hover: unquote(\"rgb(#{$color-primary-light})\");\n// $brand-default-active: unquote(\"rgb(#{$color-primary-dark})\");\n\n$brand-primary : unquote(\"rgb(#{$primary-color})\") !default;\n$brand-primary-hover: unquote(\"rgb(#{$primary-color-light})\") !default;\n$brand-primary-active: unquote(\"rgb(#{$primary-color-dark})\") !default;\n\n$brand-secondary : unquote(\"rgb(#{$secondary-color})\") !default;\n$brand-secondary-hover: unquote(\"rgb(#{$secondary-color-light})\") !default;\n$brand-secondary-active: unquote(\"rgb(#{$secondary-color-dark})\") !default;\n\n$brand-success: unquote(\"rgb(#{$palette-green-500})\") !default;\n$brand-success-hover: unquote(\"rgb(#{$palette-green-300})\") !default;\n$brand-success-active: unquote(\"rgb(#{$palette-green-700})\") !default;\n\n$brand-info: unquote(\"rgb(#{$palette-cyan-500})\") !default;\n$brand-info-hover: unquote(\"rgb(#{$palette-cyan-300})\") !default;\n$brand-info-active: unquote(\"rgb(#{$palette-cyan-700})\") !default;\n\n$brand-warning: unquote(\"rgb(#{$palette-orange-500})\") !default;\n$brand-warning-hover: unquote(\"rgb(#{$palette-orange-300})\") !default;\n$brand-warning-active: unquote(\"rgb(#{$palette-orange-700})\") !default;\n\n\n$brand-news: unquote(\"rgb(#{$palette-blue-500})\") !default;\n$brand-news-hover: unquote(\"rgb(#{$palette-blue-300})\") !default;\n$brand-news-active: unquote(\"rgb(#{$palette-blue-700})\") !default;\n\n$brand-danger: unquote(\"rgb(#{$palette-red-500})\") !default;\n$brand-danger-hover: unquote(\"rgb(#{$palette-red-300})\") !default;\n$brand-danger-active: unquote(\"rgb(#{$palette-red-700})\") !default;\n\n$brand-dark: $gray-darker;\n$brand-dark-hover: $gray-dark;\n$brand-dark-active: $gray-darkest;\n\n$brand-light : unquote(\"rgb(#{$color-dark-contrast})\") !default;\n$brand-light-hover: unquote(\"rgb(#{$palette-grey-200})\") !default;\n$brand-light-active: unquote(\"rgb(#{$palette-grey-400})\") !default;\n\n$brand-light-primary : unquote(\"rgb(#{$palette-blue-50})\") !default;\n$brand-light-success: unquote(\"rgb(#{$palette-green-50})\") !default;\n$brand-light-info: unquote(\"rgb(#{$palette-cyan-50})\") !default;\n$brand-light-warning: unquote(\"rgb(#{$palette-orange-50})\") !default;\n$brand-light-news: unquote(\"rgb(#{$palette-blue-50})\") !default;\n$brand-light-danger: unquote(\"rgb(#{$palette-red-50})\") !default;\n\n//不同背景下对应的文字颜色\n\n$color-news: unquote(\"rgb(#{$palette-blue-500})\") !default;\n$color-success: unquote(\"rgb(#{$palette-green-500})\") !default;\n$color-info: unquote(\"rgb(#{$palette-cyan-500})\") !default;\n$color-warning: unquote(\"rgb(#{$palette-orange-500})\") !default;\n$color-danger: unquote(\"rgb(#{$palette-red-500})\") !default;\n$color-light: $gray-darker !default;\n\n//redius\n\n$default-border-radius: $border-radius;\n\n// hover时的背景色,包括select、dropdown、table、datepicker、tree、menu等组件\n$hover-bg-color-base: unquote(\"rgb(#{$item-hover-bg-color-base})\") !default;\n// // selected背景色,包括:select、menu等\n$selected-bg-color-base: unquote(\"rgb(#{$item-selected-bg-color-base})\") !default;\n\n// UButton\n\n// Button 基础背景色.\n// 默认按钮()\n$button-default-color: unquote(\"rgb(#{$default-color})\");\n$button-default-color-IE8: unquote(\"rgb(#{$default-color})\");\n\n// 边框按钮(shape:'border')\n$button-border-bg-color: unquote(\"rgb(#{$color-dark-contrast})\");\n\n// Button 不同状态下的背景色 :hover、active、focus状态.\n$button-hover-color: unquote(\"rgb(#{$default-color-light})\");\n$button-active-color: unquote(\"rgb(#{$default-color-dark})\");\n$button-focus-color: unquote(\"rgb(#{$default-color-light})\");\n\n// Button 配置不同colors属性时的背景色.\n$button-primary-color: $brand-primary;\n$button-primary-active-color: $brand-primary-active;\n$button-primary-hover-color: $brand-primary-hover;\n$button-secondary-color: $brand-secondary;\n$button-secondary-active-color: $brand-secondary-active;\n$button-secondary-hover-color: $brand-secondary-hover;\n$button-success-color: $brand-success;\n$button-success-active-color: $brand-success-active;\n$button-success-hover-color: $brand-success-hover;\n$button-info-color: $brand-info;\n$button-info-active-color: $brand-info-active;\n$button-info-hover-color: $brand-info-hover;\n$button-warning-color: $brand-warning;\n$button-warning-active-color: $brand-warning-active;\n$button-warning-hover-color: $brand-warning-hover;\n$button-danger-color: $brand-danger;\n$button-danger-active-color: $brand-danger-active;\n$button-danger-hover-color: $brand-danger-hover;\n$button-dark-color: $brand-dark;\n$button-dark-active-color: $brand-dark-active;\n$button-dark-hover-color: $brand-dark-hover;\n$button-light-color: $brand-light;\n$button-light-active-color: $brand-light-active;\n$button-light-hover-color: $brand-light-hover;\n\n// Button 文字颜色.\n// 主按钮(colors:'primary')\n$button-primary-text-color: $color-primary-contrast !default;\n$button-text-color: $button-primary-text-color;\n// 次按钮(colors:'secondary')\n$button-second-text-color: unquote(\"rgb(#{$button-secondary-text-color})\") !default;\n// 默认按钮()\n$button-default-text-color: unquote(\"rgb(#{$palette-grey-900})\") !default;\n// 边框按钮(shape:'border')\n// $button-border-text-color: unquote(\"rgb(#{$primary-color})\") !default;\n\n// Button 边框样式及颜色.\n$button-border-style: unquote(\"solid\") !default;\n$button-border-color: $border-color-base;\n$button-default-border-color: $button-default-color !default;\n\n// Button 不同状态下的边框颜色 :hover、active、focus状态.\n$button-hover-border-color: $brand-default-hover;\n$button-active-border-color: $brand-default-active;\n$button-focus-border-color: $brand-default-active;\n\n// FAB colors and sizes.\n$button-fab-color-alt: unquote(\"rgb(#{$color-accent})\") !default;\n$button-fab-hover-color-alt: unquote(\"rgb(#{$color-accent-light})\") !default;\n$button-fab-active-color-alt: unquote(\"rgb(#{$color-accent})\") !default;\n$button-fab-text-color-alt: unquote(\"rgb(#{$color-accent-contrast})\") !default;\n$button-fab-ripple-color-alt: unquote(\"rgb(#{$color-accent-contrast})\") !default;\n\n// Icon button colors and sizes.\n$button-icon-color: unquote(\"rgb(#{$palette-grey-700})\") !default;\n$button-icon-focus-color: $button-focus-color !default;\n\n// Button 最小宽度、高度、内边距、外边距、行高、边框粗细、圆角.\n$button-min-width: 72/10 * $unit !default;\n$button-height: 36/10 * $unit !default;\n$button-padding: 4/10* $unit 13/10 * $unit !default;\n$button-padding-IE8: 4px 13px !default;\n$button-top-padding: 1310 * $unit !default;\n$button-left-padding: 6/10* $unit !default;\n$button-line-height:1.57142857;\n$button-margin: 4/10 * $unit !default;\n$button-border-radius: 3/10 * $unit !default;\n$button-border-width: 1/10 * $unit !default;\n\n$button-fab-size: 38/10 * $unit !default;\n$button-fab-size-mini: 30/10 * $unit !default;\n$button-fab-font-size: 14/10 * $unit !default;\n\n$button-icon-size: 32/10 * $unit !default;\n$button-icon-size-mini: 13/10 * $unit !default;\n\n$button-raised-font-size: 14/10 * $unit !default;\n\n// Button 大按钮\n$button-padding-y-lg:8px;\n$button-padding-x-lg:15px;\n$font-size-lg:1.4 * $unit;\n\n\n// Button 特大型按钮\n$button-padding-y-xg:10.5px;\n$button-padding-x-xg:18px;\n$font-size-xg:1.6 * $unit;\n\n\n// Button 小型按钮\n$button-padding-y-sm:3px;\n$button-padding-x-sm:5px;\n$font-size-sm:1.2 * $unit;\n\n\n\n// UText\n\n\n$form-control-border-radius: $border-radius-base;\n$form-control-default-font-size: 14px;\n$form-control-lg-font-size: 14px;\n$form-control-sm-font-size: 12px;\n$form-control-default-height: 32px;\n$form-control-lg-height: 40px;\n$form-control-sm-height: 26px;\n$form-control-color: #424242;\n$form-control-bg-color: #fff;\n$form-control-border-color: $border-color-base;\n$form-control-disable-bg-color: #F7F9FB;\n$form-control-disable-color: $disabled-color-base;\n$form-control-disable-border-color: #DFE1E6;\n\n$input-text-background-color: transparent !default;\n$input-text-label-color: unquote(\"rgba(#{$color-black}, 0.26)\") !default;\n$input-text-bottom-border-color: unquote(\"rgba(#{$color-black}, 0.12)\") !default;\n$input-text-bottom-border-color-IE8: unquote(\"rgb(#{$color-black})\") !default;\n$input-text-highlight-color: unquote(\"rgb(#{$primary-color})\") !default;\n$input-text-disabled-color: $input-text-bottom-border-color !default;\n$input-text-disabled-text-color: $input-text-label-color !default;\n$input-text-error-color: unquote(\"rgb(222, 50, 38)\") !default;\n$input-text-must-color:unquote(\"rgb(#{$palette-red-A700})\") !default;\n\n\n$input-text-font-size: 14px !default;\n$input-text-width: 100% !default;\n$input-text-padding: 4px !default;\n$input-text-vertical-spacing: 20px !default;\n\n$input-text-button-size: 32px !default;\n$input-text-floating-label-fontsize: 12px !default;\n$input-text-expandable-icon-top: 16px !default;\n$input-text-height:36px !default;\n$input-text-normal-width:360px !default;\n$input-text-short-width:180px !default;\n$input-text-normal-border-color:unquote(\"rgb(#{$palette-u-gray-400})\") !default;\n$input-text-color:unquote(\"rgb(#{$palette-u-gray-A200})\") !default;\n$input-text-focus-border-color:unquote(\"rgb(#{$palette-u-blue-400})\") !default;\n$input-lable-color:unquote(\"rgb(#{$palette-u-gray-900})\") !default;\n\n\n/* FormGroup */\n\n$error-input-border:$brand-danger;\n$warning-input-border:$brand-warning;\n$success-input-border:$brand-success;\n$success-addon-bg: $brand-light-success;\n$warning-addon-bg: $brand-light-warning;\n$error-addon-bg: $brand-light-danger;\n$form-group-margin-top: 15px;\n$form-group-margin-bottom: 15px;\n\n/* Navlayout */\n\n$layout-nav-color: unquote(\"rgb(#{$palette-grey-100})\") !default;\n\n// Drawer\n$layout-drawer-bg-color: unquote(\"rgb(#{$palette-grey-50})\") !default;\n$layout-drawer-border-color: unquote(\"rgb(#{$palette-grey-300})\") !default;\n$layout-text-color: unquote(\"rgb(#{$palette-grey-800})\") !default;\n$layout-drawer-navigation-color: #757575 !default;\n$layout-drawer-navigation-link-active-background: unquote(\"rgb(#{$palette-grey-200})\") !default;\n$layout-drawer-navigation-link-active-color: $layout-text-color !default;\n\n// Header\n$layout-header-bg-color: unquote(\"rgb(#{$primary-color})\") !default;\n$layout-header-text-color: unquote(\"rgb(#{$color-primary-contrast})\") !default;\n$layout-header-nav-hover-color: unquote(\"rgba(#{$palette-grey-700}, 0.6)\") !default;\n$layout-header-tab-text-color: unquote(\"rgba(#{$color-primary-contrast}, 0.6)\") !default;\n\n// Tabs\n$layout-header-tab-highlight: unquote(\"rgb(#{$color-accent})\") !default;\n\n$layout-nav-link-font-size: 13px !default;\n\n$layout-drawer-narrow: 240px !default;\n$layout-drawer-wide: 456px !default;\n$layout-drawer-width: $layout-drawer-narrow !default;\n\n$layout-header-icon-size: 32px !default;\n$layout-screen-size-threshold: 1024px !default;\n$layout-header-icon-margin: 24px !default;\n$layout-drawer-button-mobile-size: 44px !default;\n$layout-drawer-button-desktop-size: 34px !default;\n$layout-drawer-button-desktop-margin-top: 5px !default;\n$layout-drawer-button-mobile-margin-top: 10px !default;\n\n$layout-header-mobile-row-height: 56px !default;\n$layout-mobile-header-height: $layout-header-mobile-row-height;\n$layout-header-desktop-row-height: 44px !default;\n$layout-desktop-header-height: $layout-header-desktop-row-height;\n\n$layout-header-desktop-baseline: 80px !default;\n$layout-header-mobile-baseline: 72px !default;\n$layout-header-mobile-indent: 16px !default;\n$layout-header-desktop-indent: 40px !default;\n\n$layout-tab-font-size: 14px !default;\n$layout-tab-bar-height: 48px !default;\n$layout-tab-mobile-padding: 12px !default;\n$layout-tab-desktop-padding: 24px !default;\n$layout-tab-highlight-thickness: 2px !default;\n\n// gridlayout\n\n// Extra small screen / phone\n//$screen-xs: 480px;\n\n$screen-xs-min: 480px;\n// Deprecated `@screen-phone` as of v3.0.1\n//@screen-phone: @screen-xs-min;\n\n// Small screen / tablet\n// Deprecated `@screen-sm` as of v3.0.1\n//@screen-sm: 768px;\n$screen-sm-min: 768px;\n// Deprecated `@screen-tablet` as of v3.0.1\n//@screen-tablet: @screen-sm-min;\n\n// Medium screen / desktop\n// Deprecated `@screen-md` as of v3.0.1\n//@screen-md: 992px;\n$screen-md-min: 992px;\n// Deprecated `@screen-desktop` as of v3.0.1\n//@screen-desktop: @screen-md-min;\n\n// Large screen / wide desktop\n// Deprecated `@screen-lg` as of v3.0.1\n//@screen-lg: 1200px;\n$screen-lg-min: 1200px;\n// Deprecated `@screen-lg-desktop` as of v3.0.1\n//@screen-lg-desktop: @screen-lg-min;\n$screen-xs-max: ($screen-sm-min - 1 );\n\n$screen-sm-max: ($screen-sm-min - 1 );\n\n$screen-md-max: ($screen-lg-min - 1 );\n\n\n\n\n// Number of columns in the grid.\n$grid-columns: 12;\n// Padding between columns. Gets divided in half for the left and right.\n$grid-gutter-width: 30px;\n// Navbar collapse\n// Point at which the navbar becomes uncollapsed.\n$grid-float-breakpoint: 768px;\n// Point at which the navbar begins collapsing.\n$grid-float-breakpoint-max: ($grid-float-breakpoint - 1);\n\n\n// Small screen / tablet\n$container-tablet: (720px + $grid-gutter-width);\n// For `@screen-sm-min` and up.\n$container-sm: $container-tablet;\n\n// Medium screen / desktop\n$container-desktop: (940px + $grid-gutter-width);\n// For `@screen-md-min` and up.\n$container-md: $container-desktop;\n\n// Large screen / wide desktop\n$container-large-desktop: (1140px + $grid-gutter-width);\n// For `@screen-lg-min` and up.\n$container-lg: $container-large-desktop;\n\n\n\n// menu\n\n$default-dropdown-bg-color: unquote(\"rgb(#{$color-white})\") !default;\n$menu-expand-duration: 0.3s !default;\n$menu-fade-duration: 0.2s !default;\n\n// Default Item Colors\n$default-item-text-color: unquote(\"rgba(#{$color-black}, 0.87)\") !default;\n$default-item-text-color-IE8: unquote(\"rgb(#{$color-black})\") !default;\n$default-item-outline-color: unquote(\"rgb(#{$palette-u-blue-400})\") !default;\n$default-item-hover-bg-color: unquote(\"rgb(#{$palette-u-blue-100})\") !default;\n$default-item-focus-bg-color: unquote(\"rgb(#{$palette-u-blue-200})\") !default;\n$default-item-active-bg-color: unquote(\"rgb(#{$palette-u-blue-200})\") !default;\n$default-item-divider-color: unquote(\"rgba(#{$color-black}, 0.12)\") !default;\n\n// Disabled Button Colors\n$disabled-item-text-color: unquote(\"rgb(#{$palette-grey-400})\") !default;\n\n// Tile\n$tile-width: 100%;\n\n$tile-default-border-color: #e9e9e9;\n$tile-default-hover-shadow-color: rgba(0, 0, 0, 0.2);\n\n$tile-primary-border-color: $button-primary-color;\n$tile-primary-hover-shadow-color: $button-primary-hover-color;\n\n$tile-danger-border-color: $button-danger-color;\n$tile-danger-hover-shadow-color: $button-danger-hover-color;\n\n$tile-warning-border-color: $button-warning-color;\n$tile-warning-hover-shadow-color: $button-warning-hover-color;\n\n$tile-success-border-color: $button-success-color;\n$tile-success-hover-shadow-color: $button-success-hover-color;\n\n$tile-info-border-color: $button-info-color;\n$tile-info-hover-shadow-color: $button-info-hover-color;\n\n// Alert\n$alert-news-bg: $brand-light-news;\n$alert-success-bg: $brand-light-success;\n$alert-info-bg: $brand-light-info;\n$alert-warning-bg: $brand-light-warning;\n$alert-danger-bg: $brand-light-danger;\n\n\n$alert-dark-news-bg: $brand-news;\n$alert-dark-success-bg: $brand-success;\n$alert-dark-info-bg: $brand-info;\n$alert-dark-warning-bg: $brand-warning;\n$alert-dark-danger-bg: $brand-danger;\n\n$alert-news-color: $color-news;\n$alert-success-color: $color-success;\n$alert-info-color: $color-info;\n$alert-warning-color: $color-warning;\n$alert-danger-color: $color-danger;\n\n$timeline-primary-color: $brand-primary;\n$timeline-news-color: $color-news;\n$timeline-success-color: $color-success;\n$timeline-info-color: $color-info;\n$timeline-warning-color: $color-warning;\n$timeline-danger-color: $color-danger;\n\n$alert-padding:10px;\n$alert-font-size:12px;\n$alert-border-radius: $border-radius;\n$alert-text-padding-left: 15px;\n$alert-text-padding-right: 15px;\n$alert-close-font-size: 21px;\n$alert-close-opacity: .2;\n$alert-close-font-weight: 700;\n\n//Checkbox\n\n$checkbox-color: unquote(\"rgb(#{$primary-color})\") !default;\n$checkbox-off-color: unquote(\"rgb(#{$palette-u-gray-600})\") !default;\n$checkbox-off-color-IE8: unquote(\"rgb(#{$palette-u-gray-600})\") !default;\n$checkbox-disabled-color: unquote(\"rgb(#{$palette-u-gray-600})\") !default;\n$checkbox-focus-color: unquote(\"rgba(#{$palette-u-blue-500}, 0.26)\") !default;\n$checkbox-image-path: $image_path;\n\n$checkbox-label-font-size: 13px !default;\n$checkbox-label-height: 24px !default;\n$checkbox-button-size: 16px !default;\n$checkbox-inner-margin: 2px !default;\n$checkbox-padding: 8px !default;\n$checkbox-top-offset:\n ($checkbox-label-height - $checkbox-button-size - $checkbox-inner-margin) / 2;\n$checkbox-ripple-size: $checkbox-label-height * 1.5;\n\n$checkbox-primary-bg: $brand-primary;\n$checkbox-success-bg: $brand-success;\n$checkbox-info-bg: $brand-info;\n$checkbox-warning-bg: $brand-warning;\n$checkbox-danger-bg: $brand-danger;\n$checkbox-dark-bg: $brand-dark;\n\n$progress-primary-bg: $brand-primary;\n$progress-success-bg: $brand-success;\n$progress-info-bg: $brand-info;\n$progress-warning-bg: $brand-warning;\n$progress-danger-bg: $brand-danger;\n$progress-dark-bg: $brand-dark;\n\n$primary-color-opacity:unquote(\"rgba(#{$primary-color}, 0.7)\") !default;\n$color-success-opacity:unquote(\"rgba(#{$palette-green-500}, 0.7)\") !default;\n$color-info-opacity:unquote(\"rgba(#{$palette-cyan-500}, 0.7)\") !default;\n$color-warning-opacity:unquote(\"rgba(#{$palette-orange-500}, 0.7)\") !default;\n$color-danger-opacity:unquote(\"rgba(#{$palette-red-500}, 0.7)\") !default;\n$color-dark-opacity:unquote(\"rgba(#{$palette-grey-700}, 0.7)\") !default;\n\n\n$progress-sm-height: 10px;\n$progress-xs-height: 5px;\n$progress-xs-width: 170px;\n$progress-default-height: 20px;\n$progress-sm-lable-font-size: 10px;\n$progress-sm-lable-line-height: 10px;\n$progress-xs-lable-line-height: 8px;\n$progress-xs-lable-margin-left: 140px;\n$progress-xs-lable-font-size: 10px;\n$progress-xs-lable-color: #000;\n\n// Radio\n\n$radio-color: unquote(\"rgb(#{$primary-color})\") !default;\n$radio-off-color: unquote(\"rgb(#{$palette-u-gray-600})\") !default;\n$radio-off-color-IE8: unquote(\"rgb(#{$palette-u-gray-600})\") !default;\n$radio-disabled-color: $disabled-color-base !default;\n\n$radio-label-font-size: 13px !default;\n$radio-label-height: 32px !default;\n$radio-button-size: 16px !default;\n$radio-inner-margin: $radio-button-size / 4;\n$radio-padding: 8px !default;\n$radio-top-offset: ($radio-label-height - $radio-button-size) / 2;\n$radio-ripple-size: 42px !default;\n\n$radio-primary-bg: $brand-primary;\n$radio-success-bg: $brand-success;\n$radio-info-bg: $brand-info;\n$radio-warning-bg: $brand-warning;\n$radio-danger-bg: $brand-danger;\n$radio-dark-bg: $brand-dark;\n\n$radio-disabled-bg: #f7f7f7;\n$radio-diabled-border-color: #d9d9d9;\n\n$radio-border-color: #d9d9d9;\n$radio-bg-color: #fff;\n$radio-color:$font-color-base;\n\n$radio-checked-bg-color: #fff;\n$radio-checked-color: $brand-primary;\n$radio-checked-border-color: $radio-checked-color;\n\n$radio-icon-height: 18px;\n$radio-icon-width: 18px;\n$radio-icon-checked-height: 8px;\n$radio-icon-checked-width: 8px;\n\n$radio-button-lg-height:42px;\n$radio-button-lg-line-height:26px;\n\n$radio-button-sm-height:22px;\n$radio-button-sm-line-height:20px;\n\n$radio-button-height: 28px;\n$radio-button-line-height: 26px;\n\n\n\n\n\n//loading\n\n$loading-color-1: unquote(\"rgb(#{$palette-blue-400})\") !default;\n$loading-color-2: unquote(\"rgb(#{$palette-red-500})\") !default;\n$loading-color-3: unquote(\"rgb(#{$palette-yellow-600})\") !default;\n$loading-color-4: unquote(\"rgb(#{$palette-green-500})\") !default;\n\n$loading-single-color: unquote(\"rgb(#{$primary-color})\") !default;\n\n$loading-size: 28px !default;\n$loading-stroke-width: 3px !default;\n\n// Amount of circle the arc takes up.\n$loading-arc-size: 270deg !default;\n// Time it takes to expand and contract arc.\n$loading-arc-time: 1333ms !default;\n// How much the start location of the arc should rotate each time.\n$loading-arc-start-rot: 216deg !default;\n\n$loading-duration: 360 * $loading-arc-time / (\n strip-units($loading-arc-start-rot + (360deg - $loading-arc-size)));\n\n// datetimepicker\n$timepicker-border-gap-color:#ccc;\n$timepicker-font-size:14px;\n\n$date-bg-color: unquote(\"rgb(#{$primary-color})\") !default;\n\n// message\n$snackbar-color: unquote(\"rgb(#{$color-white})\") !default;\n$snackbar-background-color: unquote(\"rgb(#{$primary-color})\") !default;\n$snackbar-color-cancel: unquote(\"rgb(#{$palette-red-500})\") !default;\n$snackbar-color-accept: unquote(\"rgb(#{$palette-green-500})\") !default;\n$snackbar-color-warning: unquote(\"rgb(#{$palette-lime-200})\") !default;\n\n// DATA TABLE\n\n$data-table-font-size: 13px !default;\n$data-table-header-font-size: 12px !default;\n$data-table-header-sort-icon-size: 16px !default;\n\n$data-table-header-color: rgba(#000, 0.54) !default;\n$data-table-header-sorted-color: rgba(#000, 0.87) !default;\n$data-table-divider-color: rgba(#000, 0.12) !default;\n$data-table-divider-color-IE8: rgb(0,0,0) !default;\n\n//$data-table-hover-color: #eeeeee !default;\n$data-table-hover-color: #E9F7FC !default;\n$data-table-selection-color: #C4EAF6 !default;\n\n$data-table-dividers: 1px solid $data-table-divider-color !default;\n$data-table-dividers-IE8: 1px solid $data-table-divider-color-IE8 !default;\n\n$data-table-row-height: 48px !default;\n$data-table-last-row-height: 56px !default;\n$data-table-header-height: 56px !default;\n\n$data-table-column-spacing: 36px !default;\n$data-table-column-padding: $data-table-column-spacing / 2;\n\n$data-table-card-header-height: 64px !default;\n$data-table-card-title-top: 20px !default;\n$data-table-card-padding: 24px !default;\n$data-table-button-padding-right: 16px !default;\n$data-table-cell-top: $data-table-card-padding / 2;\n\n// $line-height-computed: round(($font-size-small * $line-height-base));\n$line-height-computed: round((14px * $line-height-base));\n$table-bg: transparent;\n$table-cell-padding: 8px;\n$table-border-color: $border-color-base;\n$table-bg-hover: $bg-color-base;\n$table-bg-active: $table-bg-hover;\n$table-bg-accent: unquote(\"rgba(#{$palette-grey-200},.3)\") !default;\n\n\n\n\n// tooltip\n$tooltip-max-width: 200px;\n$tooltip-color: #fff;\n$tooltip-bg: #42526E;\n$tooltip-inverse-border-color: #d9d9d9;\n$tooltip-inverse-color: rgb(51,51,51);\n$tooltip-arrow-color: $tooltip-bg;\n$tooltip-opacity: 1;\n\n\n// 进度条\n$bar-height: 4px !default;\n$progress-main-color: unquote(\"rgb(#{$primary-color})\") !default;\n$progress-secondary-color: unquote(\"rgba(#{$color-primary-contrast}, 0.7)\") !default;\n$progress-fallback-buffer-color: unquote(\"rgba(#{$color-primary-contrast}, 0.9)\") !default;\n$progress-image-path: $image_path;\n$progress-buffer-bar-border:unquote(\"rgb(#{$palette-u-gray-600})\") !default;\n\n// Tabs\n$layout-header-tab-highlight: unquote(\"rgb(#{$color-accent})\") !default;\n\n\n\n$tab-highlight-color: unquote(\"rgb(#{$primary-color})\") !default;\n$tab-text-color: unquote(\"rgba(#{$color-black}, 0.54)\") !default;\n$tab-active-text-color: unquote(\"rgba(#{$color-black}, 0.87)\") !default;\n$tab-border-color: unquote(\"rgb(#{$palette-grey-300})\") !default;\n\n\n\n//CARD\n\n$card-width: 330px !default;\n$card-height: 200px !default;\n$card-font-size: 13px !default;\n$card-title-font-size: 24px !default;\n$card-subtitle-font-size: 10px !default;\n$card-horizontal-padding: 16px !default;\n$card-vertical-padding: 16px !default;\n\n$card-title-perspective-origin-x: 165px !default;\n$card-title-perspective-origin-y: 56px !default;\n\n$card-title-transform-origin-x: 165px !default;\n$card-title-transform-origin-y: 56px !default;\n\n$card-title-text-transform-origin-x: 149px !default;\n$card-title-text-transform-origin-y: 48px !default;\n\n$card-supporting-text-font-size: 1.4 * $unit !default;\n$card-supporting-text-line-height: 18px !default;\n\n$card-actions-font-size: 13px !default;\n\n$card-title-text-font-weight: 300 !default;\n$card-z-index: 1 !default;\n\n// Cover image\n$card-cover-image-height: 186px !default;\n$card-background-image-url: '' !default;\n\n\n\n$card-background-color: unquote(\"rgb(#{$color-white})\") !default;\n$card-text-color: unquote(\"rgb(#{$color-black})\") !default;\n$card-image-placeholder-color: unquote(\"rgb(#{$color-accent})\") !default;\n$card-supporting-text-text-color: unquote(\"rgba(#{$color-black}, 0.54)\") !default;\n$card-border-color: rgba(0,0,0,0.1) !default;\n$card-subtitle-color: unquote(\"rgba(#{$color-black}, 0.54)\") !default;\n\n\n$input-border:unquote(\"rgb(#{$palette-u-gray-500})\");\n$input-border-focus:unquote(\"rgb(#{$primary-color})\");\n$input-border-disabled:unquote(\"rgb(#{$palette-u-gray-100})\");\n$input-bg-disabled:unquote(\"rgb(#{$palette-u-gray-100})\");\n$input-color:unquote(\"rgb(#{$palette-u-gray-A100})\");\n$form-input-height:36px;\n$form-input-height-sm:28px;\n$form-input-padding-left:12px;\n$form-label-color:unquote(\"rgb(#{$palette-u-gray-900})\");\n$form-control-feedback-color:unquote(\"rgb(#{$palette-u-gray-700})\");\n$form-validate-error-color:unquote(\"rgb(#{$palette-u-red-600})\");\n\n\n// BADGE\n$badge-font-size: 12px !default;\n$badge-color: unquote(\"rgb(#{$color-accent-contrast})\") !default;\n$badge-color-inverse: unquote(\"rgb(#{$color-accent})\") !default;\n$badge-background: unquote(\"rgb(#{$color-accent})\") !default;\n$badge-background-inverse: unquote(\"rgba(#{$color-accent-contrast},0.2)\") !default;\n$badge-size : 22px !default;\n$badge-padding: 2px !default;\n$badge-overlap: 12px !default;\n\n$badge-primary-color:#FFFFFF;\n$badge-primary-bg:$brand-primary;\n\n$badge-success-color:#FFFFFF;\n$badge-success-bg: $brand-success;\n\n$badge-info-color:#FFFFFF;\n$badge-info-bg:$brand-info;\n\n$badge-warning-color:#FFFFFF;\n$badge-warning-bg:$brand-warning;\n\n$badge-danger-color:#FFFFFF;\n$badge-danger-bg:$brand-danger;\n\n$badge-dark-color:#FFFFFF;\n$badge-dark-bg:$brand-dark;\n\n$badge-font-size: 12px;\n$badge-font-dataicon-size: 10px;\n$badge-default-dataicon-fontcolor: #757575;\n$badge-default-dataicon-bgcolor: #fff;\n$badge-default-dataicon-bordercolor: $border-color-base;\n\n// labels\n$tag-padding: .25em .6em .25em;\n$tag-border-radius: 0.3em;\n$tag-bg: #eeeeee;\n$tag-round-border-radius: 1em;\n$tag-default-color: #757575;\n$tag-default-bg:#e0e0e0;\n$tag-lg-font-size: 16px;\n$tag-sm-font-size: 10px;\n$tag-sm-padding: .1em .5em .1em;\n$tag-default-hover-bg: $brand-default-hover;\n$tag-primary-hover-bg: $brand-primary-hover;\n$tag-success-hover-bg: $brand-success-hover;\n$tag-info-hover-bg: $brand-info-hover;\n$tag-warning-hover-bg: $brand-warning-hover;\n$tag-danger-hover-bg: $brand-danger-hover;\n$tag-dark-hover-bg: $brand-dark-hover;\n$tag-default-bg: $brand-default;\n$tag-primary-bg: $brand-primary;\n$tag-success-bg: $brand-success;\n$tag-info-bg: $brand-info;\n$tag-warning-bg: $brand-warning;\n$tag-danger-bg: $brand-danger;\n$tag-dark-bg: $brand-dark;\n$tag-default-hover-color:unquote(\"rgb(#{$palette-u-gray-500})\");\n\n\n// pagination\n$pagination-gap-hover-border:#7A869A;\n\n$pagination-link-padding: 7px 13px;\n$pagination-lg-font-size: 16px;\n$pagination-lg-padding-vertical: 9.5px;\n$pagination-lg-padding-horizontal: 15.5px;\n\n$pagination-small-font-size: 12px;\n$pagination-small-padding-vertical: 4px;\n$pagination-small-padding-horizontal: 9.5px;\n\n$pag-color: #666666;\n$pag-bg-color: #fff;\n$pag-border-color:#d7d7d7;\n$pag-hover-color: #666;\n$pag-hover-bg-color:$hover-bg-color-base;\n$pag-hover-border-color:#d7d7d7;\n$pag-active-color: #fff;\n$pag-active-bg-color:#7A869A;\n$pag-active-border-color:#7A869A;\n$pag-disabled-color: #777;\n$pag-disabled-bg-color:#fff;\n$pag-disabled-border-color:#ddd;\n\n$border-radius-base: $border-radius;\n$border-radius-large: 4px;\n$border-radius-small: 2px;\n\n$line-height-large: 1.3333333; // extra decimals for Win 8.1 Chrome\n$line-height-small: 1.5;\n// widget\n\n$widget-padding-left:30px;\n$widget-padding-top:10px;\n\n//tooltips\n\n$tooltip-default-bg: $brand-default;\n$tooltip-primary-bg: $brand-primary;\n$tooltip-success-bg: $brand-success;\n$tooltip-info-bg: $brand-info;\n$tooltip-warning-bg: $brand-warning;\n$tooltip-danger-bg: $brand-danger;\n$tooltip-dark-bg: $brand-dark;\n\n//menu Button\n\n$menu-default-bg: $brand-default;\n$menu-primary-bg: $brand-primary;\n$menu-success-bg: $brand-success;\n$menu-info-bg: $brand-info;\n$menu-warning-bg: $brand-warning;\n$menu-danger-bg: $brand-danger;\n$menu-dark-bg: $brand-dark;\n$menu-default-bg-hover: $brand-default-hover;\n$menu-primary-bg-hover: $brand-primary-hover;\n$menu-success-bg-hover: $brand-success-hover;\n$menu-info-bg-hover: $brand-info-hover;\n$menu-warning-bg-hover: $brand-warning-hover;\n$menu-danger-bg-hover: $brand-danger-hover;\n$menu-dark-bg-hover: $brand-dark-hover;\n\n\n// breadcrumbs\n\n$breadcrumb-padding-vertical: 8px;\n$breadcrumb-padding-horizontal: 10px;\n$breadcrumb-separator: \"/\\00a0\";\n$breadcrumb-bg: transparent;\n$breadcrumb-margin-bottom: 10px;\n\n$breadcrumb-color: $brand-primary;\n$breadcrumb-active-color: $text-color;\n\n$breadcrumb-icon-margin-right: 10px;\n$breadcrumb-arrow-separator: \"\\00bb\\00a0\";\n\n$breadcrumb-bg-color: #f5f5f5;\n$breadcrumb-active-color: #777;\n$breadcrumb-separate-color: #ccc;\n\n// list-group\n$list-group-media-heading-font-size : $font-size-small;//14px\n$list-group-link-disabled-color : $disabled-color-base;\n\n$list-group-link-disabled-bg : $gray-lightest;\n\n$list-group-active-color : $brand-primary;\n$list-group-link-active-color : unquote(\"rgb(#{$color-white})\") !default;\n$list-group-link-active-bg : $brand-primary;\n\n\n$list-group-item-icon-margin-right : 10px;\n\n$list-group-bg-inherit-item-border : rgba(0, 0, 0, 0.075);\n$list-group-bg-inherit-item-hover-bg : rgba(0, 0, 0, 0.075);\n\n\n$list-group-border-radius: $border-radius-base;\n\n\n\n$list-group-link-color: $text-color;\n$list-group-link-hover-color: $text-color;\n$list-group-link-heading-color: $title-color;\n\n$list-group-hover-bg: $bg-color-base;\n\n$list-group-disabled-bg: transparent;\n\n$list-group-disabled-color: $disabled-color-base;\n\n\n$list-group-disabled-text-color: $list-group-disabled-color;\n$list-group-active-bg: transparent;\n$list-group-active-border: $list-group-active-bg;\n// $list-group-active-text-color: lighten($list-group-active-color, 40%);\n$list-group-active-text-color: $list-group-active-color;\n\n$list-group-bg: #fff;\n$list-group-border: transparent;\n// $list-group-bordered-border : $border-color-base;\n// $list-group-bordered-active-color : $component-active-color;\n// $list-group-bordered-active-bg : $component-active-bg;\n// $list-group-bordered-active-border : $list-group-bordered-active-bg;\n\n// $list-group-gap-item-margin-bottom : 2px;\n\n//step\n$steps-margin-bottom: $line-height-computed;\n$step-padding-horizontal:20px;\n$step-padding-vertical: 12px;\n\n$step-vertical-padding-horizontal: 20px;\n$step-vertical-padding-vertical:18px;\n\n$step-color: $gray;\n$step-bg: $bg-color-base;\n$step-number-bg: $gray-lighter;\n$step-number-color: $inverse;\n\n$step-current-color: $inverse;\n$step-current-bg: $brand-primary;\n\n$step-done-color: $inverse;\n$step-done-bg:$brand-success;\n\n$step-error-color: $inverse;\n$step-error-bg: $brand-danger;\n\n$step-disabled-color:$gray-light;\n\n$step-font-size: inherit;\n$step-title-font-size: 20px;\n$step-icon-font-size:27px;\n$step-number-font-size:24px;\n$step-number-size: 40px;\n\n$step-lg-padding-horizontal:20px;\n$step-lg-padding-vertical:20px;\n$step-lg-font-size: 16px;\n$step-lg-title-font-size:22px;\n$step-lg-icon-font-size: 32px;\n$step-lg-number-font-size:28px;\n$step-lg-number-size:46px;\n\n$step-sm-font-size: 12px;\n$step-sm-title-font-size: 18px;\n$step-sm-icon-font-size: 24px;\n$step-sm-number-font-size: 24px;\n$step-sm-number-size: 30px;\n\n$step-xs-font-size: 10px;\n$step-xs-title-font-size: 16px;\n$step-xs-icon-font-size: 22px;\n$step-xs-number-font-size: 20px;\n$step-xs-number-size: 24px;\n\n// blog nav\n$blognav-active-color:unquote(\"rgb(#{$primary-color})\");\n// widget\n$widget-padding-left:30px;\n$widget-padding-top:10px;\n\n\n// couter 数据统计\n\n$counter-number-color: $gray-darkest;\n$counter-number-font-size: 20px;\n$counter-icon-font-size: $counter-number-font-size;\n\n$counter-lg-number-font-size: 40px;\n$counter-md-number-font-size: 30px;\n$counter-sm-number-font-size: 14px;\n\n$counter-lg-icon-font-size: $counter-lg-number-font-size;\n$counter-md-icon-font-size: $counter-md-number-font-size;\n$counter-sm-icon-font-size: $counter-sm-number-font-size;\n\n$counter-inverse-color: $inverse;\n\n\n// navbar\n\n\n$menu-active-color: #108ee9;\n$menu-border-active-color: #108ee9;\n$menu-selected-bg-color: #eaf8fe;\n$menu-group-titil-color: #999;\n$menu-group-title-padding-left: 32px;\n$menu-color: #666;\n$menu-border-color: #d9d9d9;\n\n$navbar-default-bg-color: #f8f8f8;\n$navbar-default-border-color: #e7e7e7;\n$navbar-default-color: #777;\n$navbar-default-hover-color: #333;\n$navbar-inverse-hover-color: #fff;\n$navbar-inverse-color: #9d9d9d;\n$navbar-inverse-bg-color: #222;\n$navbar-inverse-border-color: #080808;\n$navbar-border-radius: 4px;\n\n$navbar-side-container-border-color: #d9d9d9;\n$navbar-side-container-width: 242px;\n$navbar-side-container-border-shadow: #d9d9d9;\n\n// Basics of a navbar\n$navbar-height: 50px;\n$navbar-margin-bottom: $line-height-computed;\n$navbar-border-radius: $border-radius-base;\n$navbar-padding-horizontal: floor(($grid-gutter-width / 2));\n$navbar-padding-vertical: (($navbar-height - $line-height-computed) / 2);\n$navbar-collapse-max-height: 340px;\n\n$navbar-avatar-margin-horizontal: (($navbar-height - 32px) / 2);\n\n$navbar-brand-padding-horizontal: 20px;\n$navbar-brand-logo-height: 32px;\n\n$navbar-default-color: $text-color;\n$navbar-default-bg: $inverse;\n$navbar-default-border: $border-color-base;\n\n// Navbar links\n$navbar-default-link-color: $text-color;\n$navbar-default-link-hover-color: $gray-darker;\n$navbar-default-link-hover-bg: rgba(238,238,238, 30%);\n$navbar-default-link-active-color: $navbar-default-link-hover-color;\n$navbar-default-link-active-bg: rgba(238,238,238, 60%);\n$navbar-default-link-disabled-color: $disabled-color-base;\n$navbar-default-link-disabled-bg: transparent;\n\n// Navbar brand label\n$navbar-default-brand-color: $title-color;\n$navbar-default-brand-hover-color: $navbar-default-brand-color;\n$navbar-default-brand-hover-bg: none;\n\n// Navbar toggle\n$navbar-default-toggle-hover-bg: $navbar-default-link-hover-bg;\n$navbar-default-toggle-icon-bar-bg: $navbar-default-color;\n$navbar-default-toggle-border-color: transparent;\n\n\n// Inverted navbar\n// Reset inverted navbar basics\n$navbar-inverse-bg: $brand-primary;\n$navbar-inverse-border: rgba(0, 0, 0, .1);\n\n// Inverted navbar links\n$navbar-inverse-link-color: $inverse;\n$navbar-inverse-link-hover-color: $inverse;\n$navbar-inverse-link-hover-bg: rgba(0, 0, 0, .1);\n$navbar-inverse-link-active-color: $navbar-inverse-link-hover-color;\n$navbar-inverse-link-active-bg: $navbar-inverse-link-hover-bg;\n$navbar-inverse-link-disabled-color: $inverse;\n$navbar-inverse-link-disabled-bg: transparent;\n\n// Inverted navbar brand label\n$navbar-inverse-brand-color: $navbar-inverse-link-color;\n$navbar-inverse-brand-hover-color: $inverse;\n$navbar-inverse-brand-hover-bg: none;\n\n// Inverted navbar toggle\n$navbar-inverse-toggle-hover-bg: $navbar-inverse-link-hover-bg;\n$navbar-inverse-toggle-icon-bar-bg: $inverse;\n$navbar-inverse-toggle-border-color: transparent;\n\n//hamburger\n$hamburger-size: 17px;\n\n\n//panel\n$panel-header-padding : 10px 15px;\n$panel-footer-padding : 10px 15px;\n$panel-body-padding : 15px 15px;\n$panel-header-bg-color : #f5f5f5;\n$panel-footer-bg-color : #f5f5f5;\n$panel-bg-color : #fff;\n$panel-default-color : #757575;\n$panel-inner-border-color: #ddd;\n\n\n//modal\n$modal-header-padding : 15px;\n$modal-body-padding : 15px;\n$modal-footer-padding : 15px;\n$modal-content-bg-color: #fff;\n$modal-backdrop-bg: #000;\n$modal-backdrop-opacity: .6;\n$modal-header-border-color: transparent;\n$modal-footer-border-color: transparent;\n$modal-xlg: 976px;\n$modal-lg: 800px;\n$modal-sm: 400px;\n$modal-default: 600px;\n$modal-border-radius: $border-radius-base;\n\n//notification\n\n$zIndex-notification: $zIndex-notification;\n$notification-top: 30px;\n$notification-bottom: 30px;\n$notification-right: 30px;\n$notification-width: 300px;\n$notification-text-margin-right: 15px;\n$notice-padding: 15px;\n$notice-background: $gray-darkest;\n$notice-bottom: 15px;\n\n//message\n\n$message-font-size: 12px;\n\n$message-right: 30px;\n$message-width: 300px;\n$message-text-margin-right: 15px;\n$message-padding: 0;\n$message-content-padding: 15px;\n$message-background: $gray-darkest;\n\n//popconfirm\n\n$popconfirm-max-width: 300px;\n\n$popconfirm-dark-bg: $gray-darkest;\n$popconfirm-fallback-dark-border-color: $gray-darkest;\n$popconfirm-margin: 10px;\n$popconfirm-title-bg: #fff;\n$popconfirm-border-color:$border-color-base;\n$popconfirm-arrow-width: 10px;\n$popconfirm-arrow-color: $border-color-base;\n$popconfirm-arrow-outer-width: 0;\n$popconfirm-arrow-outer-color: $border-color-base;\n$popconfirm-border-right-color: $border-color-base;\n$popconfirm-fallback-border-color: #fff;\n\n//select\n\n$select-bg-color: #fff;\n$select-border-color: $border-color-base;\n$select-border-radius: $border-radius-base;\n$select-color: $font-color-base;\n$select-font-size: 12px;\n$select-dropdown-color: #666;\n$select-dropdown-bg-color: #fff;\n$select-dropdown-hover-bg: $hover-bg-color-base;\n$select-dropdown-selected-bg: $selected-bg-color-base;\n$select-dropdown-selected-color: rgb(134, 119, 119);\n$select-dropwdown-item-padding: 7px 16px;\n$select-disabled-color: $disabled-color-base;\n$select-disabled-bg: #f7f7f7;\n$select-disabled-border-color: #d9d9d9;\n//dropdown\n\n$dropdown-item-hover-bg-color: unquote(\"rgb(#{$palette-grey-100})\");\n$dropdown-item-divier-bg-color: $gray-lighter;\n$dropdown-border-color: $border-color-base;\n$dropdown-border-radius:3px;\n$dropdown-shadow: 0 1px 5px $dropdown-border-color;\n$dropdown-margin: 5px 0 0 0;\n$dropdown-menu-item-padding: 0px 16px 0 16px;\n$dropdown-menu-font-size: 12px;\n$dropdown-menu-item-height: 42px;\n$dropdown-menu-item-light-height: 42px;\n$dropdown-menu-title-font-size: 12px;\n$dropdown-menu-title-color: $disabled-color-base;\n$dropdown-menu-title-padding:8px 16px;\n$dropdown-menu-title-line-height: 1.5;\n\n//upload\n\n$upload-list-color: #108ee9;\n$upload-list-bg : #fff;\n$upload-list-hover-bg: #e7f4fd;\n$upload-list-error-color: #f50;\n$upload-thumbnail-height: 48px;\n$upload-thumbnail-width: 48px;\n$upload-thumbnail-img-height: 48px;\n$upload-thumbnail-img-width: 48px;\n\n//loading\n\n$loading-loadprimary: rgb(63, 81, 181);\n$loading-loadsuccess: #4caf50;\n$loading-loadwarn: rgb(255, 152, 0);\n$loading-lineanimating: (\n 1:line-scale 1s 0.1s infinite cubic-bezier(.2, .68, .18, 1.08),\n 2:line-scale 1s 0.2s infinite cubic-bezier(.2, .68, .18, 1.08),\n 3:line-scale 1s 0.3s infinite cubic-bezier(.2, .68, .18, 1.08),\n 4:line-scale 1s 0.4s infinite cubic-bezier(.2, .68, .18, 1.08),\n 5:line-scale 1s 0.5s infinite cubic-bezier(.2, .68, .18, 1.08)\n);\n$loading-linebackcolor: (\n 1: #F44336,\n 2: #7ED321,\n 3: #0084FF,\n 4: #FF9800,\n 5: #D0021B\n);\n$loading-back-width: 120px;\n$loading-back-height:110px;\n$loading-desc-font-size: 16px;\n$loading-desc-color: #cecece;\n$loading-rotate-bor:#c2c3c5;\n\n//两种加载的尺寸 width height\n$loading-rotate-sm-size: 25px;\n$loading-rotate-size:40px;\n$loading-rotate-lg-size:60px;\n\n$loading-line-sm-width: 4px;\n$loading-line-sm-height:35px;\n$loading-line-width:6px;\n$loading-line-height:50px;\n$loading-line-lg-width:8px;\n$loading-line-lg-height:90px ;\n\n//居中位置top left\n$loading-center-top:50%;\n$loading-center-left:50%;\n\n$loading-rotate-center-sm: -15px ;\n$loading-rotate-center:-22px;\n$loading-rotate-center-lg:-35px ;\n\n$loading-line-center-sm-top: -22px;\n$loading-line-center-sm-left:-20px;\n$loading-line-center-top:-30px;\n$loading-line-center-left:-25px;\n$loading-line-center-lg-top:-50px;\n$loading-line-center-lg-left:-30px;\n\n\n//switch\n\n\n//color\n$switch-border-color: $gray-lighter;\n$switch-back-color: $gray-lighter;\n$switch-checked-borColor: $brand-primary;\n$switch-checked-backColor: $brand-primary;\n\n// border-radius of different state switch\n$switch-border-radius: 20px;\n$switch-border-radius-after: 18px;\n\n// width height line-height of the three switches\n$switch-width: (default:44px, small:32px, large:60px);\n$switch-height: (default:22px, small:16px, large:30px);\n$switch-lineHeight: (default:20px, small:12px, large:12px);\n\n// style of u-switch-inner\n$switch-inner-fontSize: (default:12px, small:10px, large:18px);\n$switch-inner-left: (default:22px, small:16px, large:30px);\n$switch-inner-largeTop: 8px;\n\n// style of u-switch:active:after\n$switch-active-width: (default:24px, small:16px, large:32px);\n\n// style of u-switch:after\n$switch-after-widthHeight: 18px;\n$switch-after-widthHeight-sm: 14px;\n$switch-after-widthHeight-lg: 26px;\n$switch-after-top: 1px;\n$switch-after-top-sm: 0;\n$switch-after-top-lg: 1px;\n$switch-after-left: 0;\n$switch-after-left-sm: 0;\n$switch-after-left-lg: 0;\n\n// style of u-switch.is-checked\n$switch-checked-innerLeft: (default:8px, small:4px, large:8px);\n$switch-checked-afterLeft: (default:24px, small:16px, large:32px);\n$switch-checked-activeLeft: (default:16px, small:10px, large:26px);\n\n$switch-primary-bg: $brand-primary;\n$switch-dark-bg: $brand-dark;\n$switch-success-bg: $brand-success;\n$switch-warning-bg: $brand-warning;\n$switch-danger-bg: $brand-danger;\n$switch-info-bg: $brand-info;\n\n//tabs\n\n$tabs-basic-back: #f5f5f5;\n$tabs-cls-color: #666;\n$tabs-cls-width: 900px;\n$tabs-simple-conHeight: 120px;\n$tabs-simple-conPad: 16px;\n$tabs-simple-conWidth: 100%;\n\n$tabs-fontSize: (simple:14px, fill:14px, turn:14px, slide:14px, fade:14px, fadeup:14px);\n$tabs-lineHeight: (simple:2.3, fill:2.3, turn:2.3, slide:2.3, fade:2.3, fadeup:2.3);\n$tabs-marginBottom: -1px;\n\n$tabs-simple-tab: (padding:0 16px, margin:5px 0 5px 5px, radius:0 0 0 0, back:#fff);\n$tabs-simple-tabBorder: 1px solid #fff;\n$tabs-simple-activeBorder: 1px solid $brand-primary;\n$tabs-simple-activeColor: #fff;\n$tabs-simple-activeBorBottom: 1px solid $brand-primary;\n$tabs-simple-activeTopRadius: 5px;\n$tabs-simple-fontWeight: bold;\n\n$tabs-fill-tab: (padding: 0 16px, color:#666, back:#fff, afterBack:#d2d8d6, activeBack:$brand-primary);\n$tabs-fill-tab-maright: 5px;\n$tabs-fill-after-top: 0;\n$tabs-fill-after-left: 0;\n$tabs-fill-after-width: 100%;\n$tabs-fill-after-height: 100%;\n$tabs-fill-fontWeight: bold;\n\n$tabs-turn-tab: (padding: 0 16px, color:#fff, back:#f5f5f5, afterBack:$brand-primary, activeBack:$brand-primary);\n$tabs-turn-after-top: 0;\n$tabs-turn-after-left: 0;\n$tabs-turn-after-width: 100%;\n$tabs-turn-after-height: 100%;\n$tabs-turn-beforeBot: 32px;\n$tabs-turn-beforeRight: 15px;\n$tabs-turn-fontWeight: bold;\n$tabs-moveleft-conHeight: 120px;\n$tabs-moveleft-conPad: 16px;\n\n$tabs-slide-tabs: (width:25%, padding: 0 16px, back:#f5f5f5);\n$tabs-slide-child-bottom: 0;\n$tabs-slide-child-left: 0;\n$tabs-slide-child-height: 4px;\n$tabs-slide-child-back: $brand-primary;\n$tabs-slide-fontWeight: bold;\n\n$tabs-fade-tab: (marLeft:5px, marTop:5px, color:#666, padding:0 16px, radius:0 0 0 0);\n$tabs-fade-conPad: 16px;\n$tabs-fade-conBor: 5px;\n\n$tabs-fadeup-tab: (marTop:5px, color:#666, padding:0 16px, radius:0 0 0 0);\n$tabs-fadeup-top: -5px;\n$tabs-fadeup-left: 0;\n$tabs-fadeup-width: 100%;\n$tabs-fadeup-height: 100%;\n$tabs-fadeup-color: #666;\n$tabs-fadeup-conHeight: 120px;\n$tabs-fadeup-conPad: 16px;\n\n\n//rate\n$rate-star-default-color:$gray-lightest;\n$rate-star-active-color:$brand-primary;\n$rate-star-marginRight:8px;\n//backtop\n$back-top-padding:5px;\n$backtop-background:unquote(\"rgb(#{$palette-u-gray-600})\") !default;\n$backtop-color:unquote(\"rgb(#{$color-white})\") !default;\n$backtop-right:10px;\n$backtop-bottom:10px;\n$backtop-dom-right:40px;\n\n\n//dnd\n$dnd-list-background:unquote(\"rgb(#{$palette-grey-400})\")!default;\n$dnd-list-padding:8px;\n$dnd-list-dragging-background:unquote(\"rgb(#{$palette-light-blue-A200})\")!default;\n$dnd-item-color:unquote(\"rgb(#{$color-black})\")!default;\n$dnd-item-padding:16px;\n$dnd-item-margin:4px;\n$dnd-item-background:unquote(\"rgb(#{$palette-grey-500})\")!default;\n$dnd-item-dragging-background:unquote(\"rgb(#{$palette-blue-300})\")!default;\n\n// bee-tree\n$tree-checkbox-color: unquote(\"rgb(#{$primary-color})\") !default;\n$tree-node-bg-color: $hover-bg-color-base !default;\n\n// bee-table\n$table-head-background-color: unquote(\"rgb(#{$table-header-background-color})\") !default;\n$table-head-text-color: unquote(\"rgb(#{$table-header-text-color})\") !default;\n\n// bee-transfer\n$transfer-border-gap-color:#d9d9d9;\n\n// bee-transfer\n$cascader-border-gap-color:#ccc;","@import \"../node_modules/tinper-bee-core/scss/minxin-variables\";\r\n@import \"../node_modules/tinper-bee-core/scss/minxin-mixins\";\r\n\r\n\r\n$loading-icon-color: #0084ff;\r\n\r\n/**\r\n * 加载背景\r\n */\r\n//.u-loading-back{\r\n// position:relative;\r\n// text-align: center;\r\n// width:$loading-back-width;\r\n// height:$loading-back-height;\r\n// margin:0 auto;\r\n// &.light{\r\n// background: #fff;\r\n// }\r\n// &.dark{\r\n// background: #000;\r\n// }\r\n//}\r\n/**\r\n * 文字\r\n */\r\n.u-loading-desc {\r\n position: absolute;\r\n bottom: 0;\r\n left: 0;\r\n right: 0;\r\n font-size: $font-size-base;\r\n color: $font-color-base;\r\n text-align: center;\r\n}\r\n\r\n\r\n/**\r\n * default样式 单个圆圈加载\r\n */\r\n\r\n.u-loading {\r\n &.u-loading-rotate {\r\n & > div {\r\n position: absolute;\r\n border-radius: 100%;\r\n margin: 2px;\r\n -webkit-animation-fill-mode: both;\r\n animation-fill-mode: both;\r\n // border: 2px solid #0084ff;\r\n // border-bottom-color: transparent;\r\n width: $loading-rotate-size;\r\n height: $loading-rotate-size;\r\n top: $loading-center-top;\r\n left: $loading-center-left;\r\n margin-left: $loading-rotate-center;\r\n margin-top: $loading-rotate-center;\r\n background: transparent !important;\r\n display: inline-block;\r\n -webkit-animation: rotate 1s 0s linear infinite;\r\n animation: rotate 1s 0s linear infinite;\r\n text-align: center;\r\n line-height: $loading-rotate-size;\r\n & > img{\r\n width: $loading-rotate-size;\r\n }\r\n & > .uf{\r\n color: $loading-icon-color;\r\n font-size: 40px;\r\n padding: 0;\r\n }\r\n }\r\n &.u-loading-rotate-lg {\r\n & > div {\r\n margin-left: $loading-rotate-center-lg;\r\n margin-top: $loading-rotate-center-lg;\r\n width: $loading-rotate-lg-size;\r\n height: $loading-rotate-lg-size;\r\n line-height: $loading-rotate-lg-size;\r\n & > img{\r\n width: $loading-rotate-lg-size;\r\n }\r\n & > .uf{\r\n font-size: 60px;\r\n }\r\n }\r\n }\r\n &.u-loading-rotate-sm {\r\n & > div {\r\n margin-left:$loading-rotate-center-sm;\r\n margin-top: $loading-rotate-center-sm;\r\n width: $loading-rotate-sm-size;\r\n height:$loading-rotate-sm-size;\r\n line-height: $loading-rotate-sm-size;\r\n & > img{\r\n width: $loading-rotate-sm-size;\r\n }\r\n & > .uf{\r\n font-size: 25px;\r\n }\r\n }\r\n }\r\n &.u-loading-rotate-primary {\r\n & > div > .uf{\r\n color: $loading-loadprimary;\r\n // border: 2px solid $loading-loadprimary;\r\n // border-bottom-color: transparent;\r\n }\r\n }\r\n &.u-loading-rotate-success {\r\n & > div > .uf{\r\n color: $loading-loadsuccess;\r\n // border: 2px solid $loading-loadsuccess;\r\n // border-bottom-color: transparent;\r\n }\r\n }\r\n &.u-loading-rotate-warning {\r\n & > div > .uf{\r\n color: $loading-loadwarn;\r\n // border: 2px solid $loading-loadwarn;\r\n // border-bottom-color: transparent;\r\n }\r\n }\r\n }\r\n\r\n}\r\n\r\n.u-loading-backdrop{\r\n position: absolute;\r\n top: 0;\r\n right: 0;\r\n bottom: 0;\r\n left: 0;\r\n z-index: 1900;\r\n // opacity: .4;\r\n // filter: blur(.5px);\r\n background-color:rgba(255,255,255,0.4);\r\n &.full-screen{\r\n position: fixed;\r\n }\r\n}\r\n\r\n@keyframes rotate {\r\n 0% {\r\n -webkit-transform: rotate(0deg) scale(1);\r\n transform: rotate(0deg) scale(1);\r\n }\r\n\r\n 50% {\r\n -webkit-transform: rotate(180deg) scale(1);\r\n transform: rotate(180deg) scale(1);\r\n }\r\n\r\n 100% {\r\n -webkit-transform: rotate(360deg) scale(1);\r\n transform: rotate(360deg) scale(1);\r\n }\r\n}\r\n\r\n.u-loading {\r\n &.u-loading-line {\r\n position: absolute;\r\n top:$loading-center-top;\r\n left: $loading-center-left;\r\n margin-top: $loading-line-center-top;\r\n margin-left: $loading-line-center-left;\r\n & > div {\r\n background-color: #C2C3C5;\r\n width: $loading-line-width;\r\n height: $loading-line-height;\r\n border-radius: 2px;\r\n margin: 2px;\r\n -webkit-animation-fill-mode: both;\r\n animation-fill-mode: both;\r\n display: inline-block;\r\n }\r\n &.u-loading-line-lg {\r\n margin-top: $loading-line-center-lg-top;\r\n margin-left: $loading-line-center-lg-left;\r\n & > div {\r\n width: $loading-line-lg-width;\r\n height: $loading-line-lg-height;\r\n }\r\n }\r\n &.u-loading-line-sm {\r\n margin-top: $loading-line-center-sm-top;\r\n margin-left: $loading-line-center-sm-left;\r\n & > div {\r\n width:$loading-line-sm-width;\r\n height: $loading-line-sm-height;\r\n }\r\n }\r\n @each $index, $anima in $loading-lineanimating {\r\n div:nth-child( #{$index} ) {\r\n -webkit-animation: $anima;\r\n animation: $anima;\r\n background-color: map_get($loading-linebackcolor, $index);\r\n }\r\n }\r\n\r\n &.u-loading-line-primary {\r\n & > div {\r\n background-color: $loading-loadprimary;\r\n }\r\n }\r\n &.u-loading-line-success {\r\n & > div {\r\n background-color: $loading-loadsuccess;\r\n }\r\n }\r\n &.u-loading-line-warning {\r\n & > div {\r\n background-color: $loading-loadwarn;\r\n }\r\n }\r\n }\r\n}\r\n.u-loading {\r\n &.u-loading-custom {\r\n & > div {\r\n position: absolute;\r\n left: 50%;\r\n top: 50%;\r\n -webkit-transform: translate(-50%,-50%);\r\n transform: translate(-50%,-50%);\r\n }\r\n }\r\n}\r\n@keyframes line-scale {\r\n 0% {\r\n -webkit-transform: scaley(1);\r\n transform: scaley(1);\r\n }\r\n\r\n 50% {\r\n -webkit-transform: scaley(0.4);\r\n transform: scaley(0.4);\r\n }\r\n\r\n 100% {\r\n -webkit-transform: scaley(1);\r\n transform: scaley(1);\r\n\r\n }\r\n}\r\n","@import \"minxin-colors\";\n\n// 默认色\n$default-color: $palette-blue-grey-50;\n$default-color-dark: \"223,225,230\";\n$default-color-light: \"223,225,230\";\n\n// 主题色\n$primary-color: \"245, 60, 50\" !default;\n$primary-color-dark: \"230, 0, 18\" !default;\n$primary-color-light: \"230, 0, 18\" !default;\n\n// 字体\n$font-family-primary: \"Open Sans\", \"Helvetica Neue\", Arial, \"Hiragino Sans GB\", \"Microsoft YaHei\", sans-serif !default;\n// 主字号\n$font-size-base: 14px !default;\n// 主按钮文本色\n$text-color-base: $color-dark-contrast !default; \n\n// 圆角,包括:button、select等\n$border-radius: 3px !default;\n// 边框色,包括按钮、输入框、分页\n$border-color: \"165, 173, 186\" !default;\n// 条目hover背景色,包括:select、dropdown、table、datepicker、tree、menu、calendar\n$item-hover-bg-color-base: \"235, 236, 240\" !default;\n// 条目selected背景色,包括:select、menu等\n$item-selected-bg-color-base: \"255, 247, 231\" !default;\n\n// Button 细化样式变量:\n// 次按钮背景色\n$secondary-color: $palette-blue-grey-50 !default;\n$secondary-color-dark: \"223,225,230\" !default;\n$secondary-color-light: \"223,225,230\" !default;\n// 次按钮文本色\n$button-secondary-text-color: $palette-grey-900 !default;\n\n// Table 细化样式变量:\n// 表头背景色\n$table-header-background-color: \"241, 242, 245\";\n// 表头文字颜色\n$table-header-text-color: \"33, 33, 33\";\n// 表格分割线颜色\n$table-border-color-base: \"193, 199, 208\";\n// 表格行hover背景色\n$table-row-hover-bg-color: \"235, 236, 240\";\n\n// 向下兼容\n$color-primary: $palette-blue-600 !default;\n$color-primary-dark: $palette-blue-800 !default;\n$color-primary-light: $palette-blue-400 !default;\n\n// 辅色\n$color-accent: $palette-green-600 !default;\n$color-accent-dark: $palette-green-800 !default;\n$color-accent-light: $palette-green-400 !default;\n\n\n// cyan主题\n//$color-primary: $palette-cyan-500 !default;\n//$color-primary-dark: $palette-cyan-700 !default;\n//$color-accent: $palette-light-blue-500 !default;\n\n// orange主题\n//$color-primary: $palette-orange-500 !default;\n//$color-primary-dark: $palette-orange-700 !default;\n//$color-accent: $palette-deep-orange-500 !default;\n","@import \"../node_modules/tinper-bee-core/scss/minxin-variables\";\n@import \"../node_modules/tinper-bee-core/scss/minxin-mixins\";\n@import \"../node_modules/bee-loading/src/Loading\";\n\n$text-color: $font-color-base;\n$font-size-base: 12px;\n$line-height: 1.33;\n// 主题定制border:\n$table-border-color: unquote(\"rgb(#{$table-border-color-base})\");\n// $table-head-background-color: #f7f7f7;\n// $table-head-text-color: #666;\n$vertical-padding: 12px;\n$horizontal-padding: 8px;\n$first-horizontal-padding: 12px;\n// $table-border-color: #e9e9e9;\n\n$table-hover-color: #E7F2FC;\n$table-move-in-color: $bg-color-base;\n$checkbox-height:14px;\n$table-th-bottom-border:#C1C7D0;\n\n$filter-form-control-height:26px;\n$table-head-font-weight: bold;\n$icon-color:#505F79;\n.u-table {\n font-size: $font-size-base;\n color: $text-color;\n // transition: opacity 0.3s ease;\n position: relative;\n line-height: $line-height;\n overflow: hidden;\n &-body{\n // overflow: hidden!important;\n position: relative;\n .u-table-row-expand-columns-in-body .expand-icon-con {\n display: none;\n pointer-events: none;\n }\n }\n &-hiden-drag{\n position: relative;\n &-li{\n position: absolute;\n top: 0px;\n left: 0px;\n // height: 10px;//这个高度先注释掉了,加上后,在火狐浏览器上会站位置。滚动条拉到最右边有错行\n }\n }\n table {\n width: 100%;\n border-collapse: collapse;\n text-align: left;\n }\n\n th {\n // background: $table-head-background-color;\n font-weight: $table-head-font-weight;\n text-align: left;\n // transition: background 0.3s ease;\n line-height: 16px;\n &[colspan] {\n text-align: center;\n }\n ::last-child{\n overflow: hidden;\n }\n }\n\n td {\n border-bottom: 1px solid $table-border-color;\n line-height: $line-height;\n a{\n color: #2196F3;\n &:hover{\n color: #1565c0;\n }\n &:active{\n color: #1565c0;\n }\n }\n .u-switch-span{\n display: inline-block\n }\n }\n thead{\n tr:last-child{\n border-bottom: 1px solid $table-th-bottom-border;\n }\n tr>th:last-child{\n // border-right: none; \n }\n }\n tr {\n // transition: all 0.3s ease;\n &:hover {\n // background: $hover-bg-color-base;\n td {\n .uf-eye{\n visibility: visible !important;\n }\n }\n }\n tr a{\n color: #2196F3;\n &:hover{\n color: #1565c0;\n }\n &:active{\n color: #1565c0;\n }\n }\n td.u-table-multiSelect-column.u-table-row-has-expandIcon:not(.u-table-row-fixed-columns-in-body){\n display: flex;\n flex-direction: row-reverse;\n &:nth-last-child(1):last-child {\n border-right: none;\n }\n .expand-icon-con {\n height: 14px;\n .uf{\n padding: 0;\n }\n .u-table-row-expand-icon {\n width: 2px;\n }\n }\n .u-checkbox {\n margin: 0;\n }\n }\n td.u-table-inline-icon{\n position: relative;\n padding-right: 24px;\n span.u-table-inline-op-icon{\n position: absolute;\n right: 0;\n .uf{\n display: block;\n vertical-align: top;\n }\n }\n span.u-table-inline-op-icon-hover{\n visibility: hidden;\n }\n } \n }\n tr.u-table-row-hover{\n td.u-table-inline-icon{\n span.u-table-inline-op-icon-hover{\n visibility: visible;\n }\n }\n }\n .u-table-inline-op-icon-hidden{\n visibility: hidden;\n }\n tr.tr-row-hover {\n background: $hover-bg-color-base;\n }\n\n th,\n td {\n padding: $vertical-padding $horizontal-padding;\n word-break: break-all;\n &.drag-handle-column {\n .uf {\n font-size: 12px;\n line-height: 12px;\n }\n &.u-table-row-has-expandIcon .uf {\n padding: 0;\n }\n }\n &.text-center{\n text-align: center;\n }\n &.text-right{\n text-align: right;\n }\n .expand-icon-con{\n cursor: pointer;\n display: inline-block;\n font-size: 12px;\n line-height: 12px;\n .uf{\n padding: 0;\n font-size: 12px;\n }\n }\n }\n &-sm {\n td {\n padding: 8px $horizontal-padding;\n }\n }\n &-lg {\n td {\n padding: 16px $horizontal-padding;\n }\n }\n tr {\n \n &.filterable{\n th{\n padding-top: 5px !important;\n padding-bottom: 5px !important;\n .filterContext{\n height: 35px;\n }\n .u-select-selection--single{\n height: 26px;\n }\n }\n }\n }\n &-row-hover {\n background:unquote(\"rgb(#{$table-row-hover-bg-color})\");\n }\n \n &-scroll {\n overflow: auto;\n }\n &-bordered {\n table {\n border: 1px solid $table-border-color;\n box-sizing: border-box;\n table-layout: fixed;\n // width:auto;\n }\n \n .u-table-header>table {\n border-bottom: 0;\n }\n .u-table-header~.u-table-body,.u-table-header~.u-table-body-outer{\n table{\n border-top: 0px ;\n }\n }\n\n th {\n border-bottom: 1px solid $table-border-color;\n box-sizing: border-box;\n }\n th,\n td {\n border-right: 1px solid $table-border-color;\n box-sizing: border-box;\n }\n }\n &-drag-border{\n tr {\n th.th-can-not-drag{ //拖拽tag影响了表格整体宽度\n overflow: hidden;\n .u-table-thead-th-drag-gap{//最后一个非固定列不可以拖拽\n display: none;\n }\n }\n }\n }\n &-header {\n overflow: hidden;\n background: $table-head-background-color;\n color: $table-head-text-color;\n }\n\n &.fixed-height td {\n padding: 0px $horizontal-padding;\n }\n\n &-fixed-header &-body {\n background: #fff;\n position: relative;\n }\n &-fixed-left &-body-inner {\n margin-right: -20px;\n padding-right: 20px;\n }\n\n &-fixed-header:not(.u-table-hide-header) &-fixed-left &-body-inner {\n padding-right: 0px;\n }\n\n &-fixed-header &-body-inner {\n height: 100%;\n overflow: scroll;\n }\n\n\n &-fixed-header &-scroll &-header {\n overflow-x: scroll;\n padding-bottom: 20px;\n margin-bottom: -20px;\n overflow-y: scroll;\n box-sizing: border-box;\n }\n\n &-title {\n padding: $vertical-padding $horizontal-padding;\n border-top: 1px solid $table-border-color;\n }\n\n &-content {\n position: relative;\n }\n\n &-footer {\n padding: $vertical-padding $horizontal-padding;\n border-bottom: 1px solid $table-border-color;\n .u-table-scroll{\n overflow-x: hidden;\n }\n }\n &-footer & {\n margin: (-$vertical-padding) (-$horizontal-padding);\n }\n\n &-placeholder {\n padding: $vertical-padding 8px;\n background: #fff;\n border-bottom: 1px solid $table-border-color;\n text-align: center;\n position: relative;\n .table-nodata{ \n font-size: 40px; \n line-height: 44px;\n + span{\n font-size: 12px;\n line-height: 12px;\n display: block;\n }\n }\n }\n\n &-expand-icon-col {\n width: 10px;\n }\n &-row,\n &-expanded-row {\n .u-table{\n tr{\n background: #fff;\n }\n tr.u-table-row-hover{\n background:unquote(\"rgb(#{$table-row-hover-bg-color})\");\n \n }\n }\n &-expand-icon {\n cursor: pointer;\n display: inline-block;\n margin-right: 8px;\n width: 14px;\n height: 14px;\n text-align: center;\n line-height: 14px;\n user-select: none;\n &.uf{\n font-size: 12px;\n padding: 0;\n }\n }\n &-spaced {\n visibility: hidden;\n }\n &-spaced:after {\n content: \".\";\n }\n &-expanded {\n &:after {\n content: \"\\e639\";\n font-family: \"uf\";\n }\n }\n &-collapsed {\n &:after {\n content: \"\\e61c\";\n font-family: \"uf\";\n }\n }\n }\n &-row{\n &.selected{\n background: #FFF7E7;\n }\n }\n tr.u-table-expanded-row {\n background: #DFE1E6;\n &:hover {\n background: #DFE1E6;\n }\n .u-table {\n // padding: 0 40px 0 20px;\n z-index: 1;\n }\n }\n &-column-hidden {\n display: none;\n }\n &-prev-columns-page,\n &-next-columns-page {\n cursor: pointer;\n color: #666;\n z-index: 1;\n &:hover {\n color: #2db7f5;\n }\n &-disabled {\n cursor: not-allowed;\n color: #999;\n &:hover {\n color: #999;\n }\n }\n }\n &-prev-columns-page {\n margin-right: 8px;\n &:before {\n content: \"<\";\n }\n }\n &-next-columns-page {\n float: right;\n &:before {\n content: \">\";\n }\n }\n\n &-fixed-left,\n &-fixed-right {\n position: absolute;\n top: 0;\n overflow: hidden;\n z-index: 1;\n table {\n width: auto;\n background: #fff;\n }\n }\n\n &-fixed-left {\n left: 0;\n box-shadow: 4px 0 4px rgba(100, 100, 100, 0.1);\n &-body-inner {\n margin-right: -20px;\n padding-right: 20px;\n }\n &-fixed-header & &-body-inner {\n padding-right: 0;\n }\n }\n\n &-fixed-right {\n right: 0;\n box-shadow: -4px 0 4px rgba(100, 100, 100, 0.1);\n\n // hide expand row content in right fixed Table\n // https://github.com/ant-design/ant-design/issues/1898\n &-expanded-row {\n color: transparent;\n pointer-events: none;\n }\n \n }\n \n &-scroll-position-left &-fixed-left {\n box-shadow: none;\n }\n\n &-scroll-position-right &-fixed-right {\n box-shadow: none;\n }\n\n &-thead{\n .filter-text,.filter-dropdown,.filter-date {\n font-weight: normal;\n }\n .filter-wrap{\n display: flex;\n justify-content: center;\n align-items: center;\n .filter-btns{\n min-width: 58px;\n }\n }\n th{\n background: $table-head-background-color;\n color: $table-head-text-color;\n background-clip:padding-box;\n //禁止选中文字\n -moz-user-select: -moz-none;\n -khtml-user-select: none;\n -webkit-user-select: none; \n /*\n Introduced in IE 10. \n */\n -ms-user-select: none;\n user-select: none;\n\n // overflow: hidden;\n // white-space: nowrap;\n // text-overflow: ellipsis;\n .required {\n color: #F22C1D;\n }\n .bee-table-column-sorter {\n position: relative;\n margin-left: 4px;\n height: 16px;\n vertical-align: middle;\n text-align: center;\n display: inline-block;\n margin-top: -3px;\n i{\n padding: 0px;\n font-weight: 600;\n color: $icon-color;\n }\n \n & > .bee-table-column-sorter-down,\n & > .bee-table-column-sorter-up, & > .bee-table-column-sorter-flat {\n line-height: 16px;\n display: block;\n width: 34px;\n cursor: pointer;\n }\n \n \n }\n\n .bee-table-column-sorter-down.on .uf-triangle-down,\n .bee-table-column-sorter-down.on .uf-triangle-up,\n .bee-table-column-sorter-up.on .uf-triangle-down,\n .bee-table-column-sorter-up.on .uf-triangle-up {\n color: #108ee9;\n }\n .bee-table-column-sorter .uf-triangle-down,\n .bee-table-column-sorter .uf-triangle-up {\n -webkit-filter: none;\n filter: none;\n font-size: 12px;\n }\n .bee-table-column-sorter .uf-triangle-down,\n .bee-table-column-sorter .uf-triangle-up {\n display: inline-block;\n padding: 0;\n font-size: 12px;\n font-size: 8px\\9;\n -webkit-transform: scale(0.66666667) rotate(0deg);\n -ms-transform: scale(0.66666667) rotate(0deg);\n transform: scale(0.66666667) rotate(0deg);\n -ms-filter: \"progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=1, M12=0, M21=0, M22=1)\";\n zoom: 1;\n line-height: 4px;\n height: 4px;\n color: #999;\n // -webkit-transition: all 0.3s;\n // transition: all 0.3s;\n }\n &:hover{\n .bee-table-column-sorter {\n display: inline-block;\n }\n }\n }\n .th-drag{\n cursor: move;\n }\n .th-drag:hover{\n background: $hover-bg-color-base;\n\n }\n //为了区分是拖拽宽度还是交换列,先注释上面了\n // .th-drag:hover{\n // background:#ccc;\n // }\n .th-drag-hover{ \n background: #ccc;\n }\n &-th{\n position: relative;\n\n &-drag-gap{\n height: 100%;\n position: absolute;\n right: -10px;\n top: 0;\n // background:transparent;\n // width: 1px;\n // background:#ccc;\n width: 20px;\n \n box-sizing: border-box;\n z-index: 1;\n\n .online{\n height: 100%;\n width: 4px;\n // background:transparent;//兼容火狐浏览器,如果table设置border,\n margin: 0 auto;\n }\n .online:hover{\n background:#000000;\n }\n .online-hover{\n background:#000000;\n }\n \n }\n &-drag-gap:hover{\n cursor: col-resize;\n .online{\n background: #000000\n }\n }\n }\n &-th:last-child {\n &-drag-gap{\n border: none;\n }\n }\n }\n\n\n &-filter-column{\n \n &-pop-cont{\n margin: 0px;\n max-height: 300px;\n overflow-y: auto;\n color:#212121;\n }\n &-clear-setting{ \n // border-bottom: 1px solid #ccc;\n cursor: pointer;\n margin-bottom: 4px;\n }\n &-cont{\n position: relative;\n }\n &-filter-icon{\n position: absolute;\n width: 30px;\n height: 39px ;\n line-height: 39px;\n right: 0px ;\n top:1px ;\n z-index: 2;\n background: $table-head-background-color;\n text-align: center;\n cursor: pointer;\n i.uf{\n padding: 0px;\n color: $icon-color;\n }\n }\n &-pop-cont-item{\n margin-top: 8px;\n font-size: 12px;\n // line-height: 30px;\n cursor: pointer;\n .u-checkbox {\n margin: 0px;\n\n }\n }\n &-pop-cont-item span.drop-menu-title{\n margin-left: -3px;\n max-width: 132px;\n width: auto !important;\n min-width: 56px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n display: inline-block;\n vertical-align: middle;\n }\n &-pop .u-modal-dialog{\n border: 1px solid #ccc;\n background: #fff;\n }\n }\n //拖拽宽度代码\n &-row-fixed-columns-in-body{\n // visibility: hidden;\n display:none;\n pointer-events: none;\n }\n //固定列含有checkbox 样式复写\n .u-checkbox {\n height: $checkbox-height;\n line-height: $checkbox-height;\n margin:0px;\n display: block;\n margin-left: 5px;\n .u-checkbox-label{\n line-height: $checkbox-height;\n padding-left: 16px;\n &:before,&:after {\n width: $checkbox-height;\n height: $checkbox-height;\n }\n }\n }\n .u-table-scroll,.u-table-fixed-left{\n tr{\n td:first-child, th:first-child{\n padding-left: $first-horizontal-padding\n }\n }\n }\n &.has-fixed-left{\n .u-table-scroll{\n tr{\n td:first-child, th:first-child{\n padding-left: $horizontal-padding\n }\n }\n }\n }\n // 滚动条样式复写\n ::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n }\n ::-webkit-scrollbar-button {\n display: none;\n }\n ::-webkit-scrollbar-thumb {\n background: #d5d5d5 !important;\n border-radius: 5px;\n }\n ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: #d5d5d5;\n position: absolute;\n }\n\n ::-webkit-scrollbar-track {\n display: none;\n }\n\n ::-webkit-scrollbar-track-piece {\n display: none;\n }\n\n .drag-handle-column, .row-dragg-able{\n cursor:move;\n }\n .u-table-drag-hidden-cont{\n width: 100px;\n height: 40px;\n }\n\n .u-table-link{\n cursor: pointer;\n color: #0073E1;\n }\n .u-table-link-underline:hover{\n text-decoration:underline;\n }\n .u-table-currency{\n display: inline-block;\n text-align: right;\n }\n}\n\n.u-table:focus{\n outline: none;\n // border-color: #9ecaed;\n // box-shadow: 0 0 10px #9ecaed;\n box-shadow: 0 0 0;\n}\n\n .u-table-bordered {\n .u-table-drag-gap{\n background:#e9e9e9;\n }\n }\n.u-table.bordered {\n table {\n border-collapse: collapse;\n }\n th,\n td {\n border: 1px solid $table-border-color;\n }\n}\n\n.move-enter,\n.move-appear {\n opacity: 0;\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n animation-duration: 2.5s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n\n.move-leave {\n animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);\n animation-duration: 0.5s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n\n.move-enter.move-enter-active,\n.move-appear.move-enter-active {\n animation-name: moveLeftIn;\n animation-play-state: running;\n}\n\n.move-leave.move-leave-active {\n animation-name: moveRightOut;\n animation-play-state: running;\n}\n\n@keyframes moveLeftIn {\n 0% {\n transform-origin: 0 0;\n transform: translateX(30px);\n opacity: 0;\n background: $table-move-in-color;\n }\n 20% {\n transform-origin: 0 0;\n transform: translateX(0);\n opacity: 1;\n }\n 80% {\n background: $table-move-in-color;\n }\n 100% {\n background: transparent;\n opacity: 1;\n }\n}\n\n@keyframes moveRightOut {\n 0% {\n transform-origin: 0 0;\n transform: translateX(0);\n opacity: 1;\n }\n 100% {\n transform-origin: 0 0;\n transform: translateX(-30px);\n opacity: 0;\n }\n}\n\n.formItem-style {\n height: unset;\n min-height: unset;\n padding: 0;\n}\n.errMessage-style {\n display: none;\n border: none;\n /* margin-top: 5px; */\n /* margin-bottom: 5px; */\n background: transparent;\n color: #f22c1d;\n /* padding-left: 12px; */\n /* padding-right: 12px; */\n margin: 0;\n position: absolute;\n padding: 0;\n top: 3px;\n right: 0;\n}\n\n.editable-cell {\n position: relative;\n}\n\n.editable-cell-input-wrapper,\n.editable-cell-text-wrapper {\n padding-right: 24px;\n}\n.editable-cell-input-wrapper {\n .u-form-item.formItem-style .u-label{\n display: none;\n }\n .u-input-group .u-form-control{\n height: 26px;\n font-size: 12px;\n }\n}\n\n.editable-cell-text-wrapper {\n padding: 5px 24px 5px 5px;\n height: 30px;\n}\n\n.editable-cell-icon,\n.editable-cell-icon-check {\n position: absolute;\n top: 0;\n right: 0;\n width: 20px;\n cursor: pointer;\n}\n\n.editable-cell-icon {\n line-height: 28px;\n display: none;\n}\n\n.editable-cell-icon-check {\n line-height: 28px;\n}\n\n.editable-cell:hover .editable-cell-icon {\n display: inline-block;\n}\n\n.editable-cell-icon:hover,\n.editable-cell-icon-check:hover {\n color: #2db7f5;\n}\n\n.editable-add-btn {\n margin-bottom: 8px;\n}\n\n.search-component {\n margin-bottom: 20px;\n .empty-search {\n position: absolute;\n right: 45px;\n z-index: 20;\n top: 5px;\n color: #524e4e;\n cursor: pointer;\n }\n &.u-input-group.simple {\n float: right;\n }\n &.u-input-group.simple .u-form-control {\n width: 251px;\n background: #f5f5f5;\n border-color: #f5f5f5;\n border-radius: 20px;\n }\n &.u-input-group.simple .u-input-group-btn {\n top: 3px;\n right: 20px;\n position: absolute;\n }\n}\n\n\n.col-resize-container {\n height: 0px;\n position: relative;\n\n & + .table-col-resizer:first-of-type {\n table-layout: fixed;\n }\n\n .active-drag .icon{\n visibility: visible;\n }\n\n .last-handle {\n display: none;\n }\n\n .drag-handle {\n margin-left: -5px;\n position: absolute;\n z-index: 5;\n width: 10px;\n cursor: col-resize;\n\n .icon {\n color: #40b0dc;\n top: -1px;\n position: absolute;\n visibility: hidden;\n\n &:first-child {\n left: -2px\n }\n &:last-child {\n left: 6px\n }\n }\n\n &:hover{\n .icon{\n visibility: visible;\n }\n .col-resizer {\n border: 1px solid;\n }\n }\n\n &.disabled-drag {\n cursor: default;\n display: none;\n }\n\n .col-resizer {\n position: absolute;\n width: 1px;\n height: 100%;\n top: 0px;\n left: 3px;\n }\n }\n}\n\n.u-filter-dropdown-menu-wrap {\n z-index: 1800;\n .u-dropdown-menu {\n li.u-dropdown-menu-item {\n line-height: $filter-form-control-height;\n height: $filter-form-control-height;\n padding: 0px 16px 0 16px;\n cursor: pointer;\n }\n }\n}\n.filter-wrap {\n .u-form-control{\n height: $filter-form-control-height;\n }\n .u-input-number.u-input-group.simple .u-input-group-btn .icon-group {\n height: $filter-form-control-height;\n }\n .calendar-picker {\n .u-input-group-btn{\n line-height: 20px;\n }\n }\n .u-input-number.u-input-group.simple .u-input-group-btn .icon-group .uf{\n line-height: 12px;\n }\n}\n.u-row-hover{\n position: absolute;\n right: 24px;\n display: none;\n align-items: center;\n justify-content: center;\n background: transparent;\n}\n\n.u-row-hover2{\n position: absolute;\n left: 100;\n}\n\n\n\n// 表格显示里面的内容显示在一行\n.header-dispaly-in-row{\n &.u-table{\n table{\n table-layout: fixed;\n }\n }\n th{\n text-overflow: ellipsis;\n white-space: nowrap;\n vertical-align: middle;\n overflow: hidden;\n }\n}\n.body-dispaly-in-row{\n &.u-table{\n table{\n table-layout: fixed;\n }\n \n }\n td{\n text-overflow: ellipsis;\n white-space: nowrap;\n vertical-align: middle;\n overflow: hidden;\n }\n .u-table-fieldtype{\n text-overflow: ellipsis;\n white-space: nowrap;\n vertical-align: middle;\n overflow: hidden;\n }\n}\n.u-table-drag-hidden-cont{\n position: absolute;\n top:-1000px;\n}\n\n.u-editable-table .u-table {\n .u-table-row-hover {\n .editable-cell-text-wrapper {\n padding-left: 4px;\n border: 1px solid #c1c7d0;\n }\n }\n\n .editable-cell-text-wrapper {\n &:hover {\n padding-left: 4px;\n border: 1px solid #a5adba;\n }\n }\n\n .editable-cell-input-wrapper {\n &:focus {\n outline: none;\n }\n }\n}\n\n.u-editable-table-tp {\n .tooltip-arrow {\n top: 1px !important;\n border-bottom-color: #F44336 !important;\n }\n\n .tooltip-inner {\n border-color: #F44336 !important;\n }\n}\n.u-dropdown{\n ul.u-table-inline-op-dropdowm{\n li.u-dropdown-menu-item{\n padding: 0 20px 0 10px;\n height: 30px;\n line-height: 30px;\n i.uf{\n font-size: 12px;\n }\n }\n }\n}\n","// @import \"../node_modules/tinper-bee-core/scss/index.scss\";\n// @import \"../node_modules/bee-panel/src/Panel.scss\";\n// @import \"../node_modules/bee-layout/src/Layout.scss\";\n// @import \"../node_modules/bee-button/src/Button.scss\";\n// @import \"../node_modules/bee-transition/src/Transition.scss\";\n// @import \"../node_modules/bee-popconfirm/src/Popconfirm.scss\";\n// @import \"../node_modules/bee-form-control/src/FormControl.scss\";\n// @import \"../node_modules/bee-pagination/src/Pagination.scss\";\n// @import \"../node_modules/bee-checkbox/src/Checkbox.scss\";\n// @import \"../node_modules/bee-select/src/Select.scss\";\n// @import \"../node_modules/bee-popover/src/Popover.scss\";\n// @import \"../node_modules/bee-tooltip/src/Tooltip.scss\";\n// @import \"../node_modules/bee-message/build/Message.css\";\n// @import \"../node_modules/bee-dropdown/build/Dropdown.css\";\n// @import \"../node_modules/bee-input-number/build/InputNumber.css\";\n// @import \"../node_modules/bee-modal/build/Modal.css\";\n@import \"../src/Table.scss\";\n\n\n//引入日期控件样式文件\n// @import \"../node_modules/bee-datepicker/src/datepicker.scss\";\n\n.selected{\n background: #FFF7E7;\n}\n\n.demo25{\n height: 100%;\n\n .u-table-filter-column-filter-icon{\n right: 15px;\n }\n\n}\n.opt-btns .u-button{\n margin: 0 4px;\n color: #fff;\n background: #505F79;\n border-color: #505F79;\n &:hover, &:active{\n background: #344563;\n border-color: #505F79;\n }\n}",".demo04 {\n &.u-table tr:nth-child(2n){\n background: #f7f9fb;\n }\n &.u-table tr.u-table-row-hover, .u-table tr:hover{\n background: #ebecf0;\n }\n}",".demo22{\n .opt-btns{\n margin-bottom: 8px;\n }\n}",".demo32{\n .u-table-thead th {\n padding-top: 0px;\n padding-bottom: 0px;\n }\n}",".demo0501 .u-table {\n .u-row-hover {\n .opt-btns,.cancel-btns {\n button {\n margin: 0;\n &:first-child {\n margin-right: 8px;\n }\n }\n }\n }\n\n .u-table-row {\n td {\n padding: 5px 8px;\n\n input {\n font-size: 12px;\n padding-left: 5px;\n }\n }\n\n .u-form-control,\n .u-select-selection {\n height: 30px;\n }\n }\n\n .editable-cell-text-wrapper {\n box-sizing: border-box;\n line-height: 20px;\n border-radius: 3px;\n }\n\n .required {\n margin-left: 10px;\n position: relative;\n\n &::before {\n content: \" \";\n border: 1px solid #F44336;\n width: 0;\n height: 12px;\n position: absolute;\n top: 9px;\n left: -8px;\n }\n\n span.u-input-group {\n display: block\n }\n }\n .verify-cell {\n padding-right: 25px !important;\n }\n\n .required-icon {\n position: absolute;\n top: 2px;\n color: #F44336;\n font-size: 20px;\n }\n\n .ref-input-wrap {\n width: 160px !important;\n }\n}\n\n.u-editable-table-tp {\n .tp-content {\n color: #F44336;\n }\n}",".u-editable-table .u-table {\n .u-table-row {\n td {\n padding: 5px 8px;\n\n input {\n padding-left: 5px;\n font-size: 12px;\n\n &.error {\n border-color: #F44336;\n }\n }\n }\n\n .editable-cell {\n height: 30px;\n }\n\n &-hover {\n .editable-cell-text-wrapper {\n line-height: 19px;\n }\n }\n\n .u-form-control,\n .u-select-selection {\n height: 30px;\n }\n }\n\n .editable-cell-text-wrapper {\n box-sizing: border-box;\n line-height: 20px;\n border-radius: 3px;\n }\n\n .editable-cell-input-wrapper {\n padding-right: 0;\n .ref-input-wrap {\n width: auto !important;\n height: 30px;\n .u-input-group{\n display: inline-block;\n }\n }\n }\n\n .verify-cell {\n padding-right: 25px !important;\n }\n\n .require {\n position: absolute;\n top: 2px;\n color: #F44336;\n font-size: 20px;\n }\n}\n\n.u-editable-table-tp {\n .tp-content {\n color: #F44336;\n }\n}",".demo0503-m-b {\n\n &.u-modal .u-modal-body {\n padding: 16px 0;\n background: #f7f9fb;\n }\n\n .u-form-group {\n overflow: hidden;\n }\n\n .u-form-control {\n font-size: 12px;\n }\n\n .editable-cell {\n display: block;\n float: left;\n width: 265px;\n padding-right: 25px;\n }\n\n .ref-input-wrap {\n width: 240px !important;\n }\n\n .u-label {\n display: block;\n float: left;\n text-align: right;\n width: 110px;\n box-sizing: border-box;\n padding-right: 10px;\n font-size: 12px;\n height: 32px;\n line-height: 32px;\n .mast {\n padding: 0;\n color: red;\n }\n }\n\n .required-icon {\n position: absolute;\n top: 2px;\n color: #F44336;\n font-size: 20px;\n }\n}\n\n.u-editable-table-tp {\n z-index: 9999 !important;\n\n .tp-content {\n color: #F44336;\n }\n}\n.ref-core-button .u-button:first-child{\n margin-right: 8px;\n}",".demo0505 {\n\n .toolbar-btns {\n margin-bottom: 8px;\n\n .u-button {\n &:first-child {\n margin-right: 8px;\n }\n }\n }\n\n .u-table {\n .u-row-select {\n background-color: #FFF7E7;\n }\n .u-table-row {\n td {\n padding: 5px 8px;\n\n input {\n font-size: 12px;\n padding-left: 5px;\n }\n }\n\n .u-form-control,\n .u-select-selection {\n height: 30px;\n }\n }\n\n .editable-cell-text-wrapper {\n box-sizing: border-box;\n line-height: 20px;\n border-radius: 3px;\n }\n\n .required {\n margin-left: 10px;\n position: relative;\n\n &::before {\n content: \" \";\n border: 1px solid #F44336;\n width: 0;\n height: 12px;\n position: absolute;\n top: 9px;\n left: -8px;\n }\n\n span.u-input-group {\n display: block\n }\n }\n\n .verify-cell {\n padding-right: 25px !important;\n }\n\n .edited::after {\n content: \" \";\n position: absolute;\n z-index: 999;\n top: 0;\n left: 0;\n border-width: 5px;\n border-style: solid;\n border-color: #f44336 transparent transparent #f44336;\n }\n\n .required-icon {\n position: absolute;\n top: 2px;\n color: #F44336;\n font-size: 20px;\n }\n\n .ref-input-wrap {\n width: 160px !important;\n }\n }\n}\n\n.u-editable-table-tp {\n .tp-content {\n color: #F44336;\n }\n}","th{\n .drop-menu{\n .uf{\n font-size: 12px;\n visibility: hidden;\n margin-left: 15px;\n }\n \n \n }\n &:hover{\n .uf{\n visibility: visible;\n }\n }\n\n}\n\n",".expanded-table{\r\n .expand-icon-con .uf{\r\n font-size: 12px;\r\n }\r\n}",".demo8{\n .u-table {\n margin-bottom: 11px;\n }\n .u-pagination{\n display: flex;\n align-items: center;\n justify-content: center;\n }\n}"],"sourceRoot":"/source/"} \ No newline at end of file +{"version":3,"sources":["demo.css","../node_modules/tinper-bee-core/scss/minxin-variables.scss","../node_modules/bee-loading/src/Loading.scss","../node_modules/tinper-bee-core/scss/minxin-themeColors.scss","../src/Table.scss","TableDemo.scss","demolist/Demo0104.scss","demolist/Demo0302.scss","demolist/Demo0402.scss","demolist/Demo0501.scss","demolist/Demo0502.scss","demolist/Demo0503.scss","demolist/Demo0505.scss","demolist/Demo0603.scss","demolist/Demo1101.scss","demolist/Demo1601.scss"],"names":[],"mappings":"AAAA,iBAAiB;ACuXjB,eAAe;AAWf,iBAAiB;AAXjB,eAAe;AAWf,iBAAiB;AC5XjB;;IAEI;AAcJ;;IAEI;AACJ;EACE,mBAAkB;EAClB,UAAS;EACT,QAAO;EACP,SAAQ;EACR,gBCfmB;EDgBnB,eDauB;ECZvB,mBAAkB,EACnB;;AAGD;;IAEI;AAEJ;EAGM,mBAAkB;EAClB,oBAAmB;EACnB,YAAW;EAEX,0BAAyB;EAGzB,YDkwCmB;ECjwCnB,aDiwCmB;EChwCnB,SD2wCiB;EC1wCjB,UD2wCkB;EC1wClB,mBD6wCsB;EC5wCtB,kBD4wCsB;EC3wCtB,mCAAkC;EAClC,sBAAqB;EAErB,wCAAuC;EACvC,mBAAkB;EAClB,kBDuvCmB,EC9uCpB;EA9BL;IAuBQ,YDqvCiB,ECpvClB;EAxBP;IA0BQ,eA9DoB;IA+DpB,gBAAe;IACf,WAAU,EACX;;AA7BP;EAiCQ,mBD2vCuB;EC1vCvB,kBD0vCuB;ECzvCvB,YD0uCoB;ECzuCpB,aDyuCoB;ECxuCpB,kBDwuCoB,ECjuCrB;EA5CP;IAuCU,YDsuCkB,ECruCnB;EAxCT;IA0CU,gBAAe,EAChB;;AA3CT;EAgDQ,mBD0uCwB;ECzuCxB,kBDyuCwB;ECxuCxB,YDytCqB;ECxtCrB,aDwtCqB;ECvtCrB,kBDutCqB,EChtCtB;EA3DP;IAsDU,YDqtCmB,ECptCpB;EAvDT;IAyDU,gBAAe,EAChB;;AA1DT;EA+DQ,eDorC8B,ECjrC/B;;AAlEP;EAsEQ,eD8qCqB,EC3qCtB;;AAzEP;EA6EQ,eDwqC2B,ECrqC5B;;AAMP;EACE,mBAAkB;EAClB,OAAM;EACN,SAAQ;EACR,UAAS;EACT,QAAO;EACP,cAAa;EAGb,2CAAsC,EAIvC;EAbD;IAWI,gBAAe,EAChB;;AAGH;EACE;IAEE,iCAAgC,EAAA;EAGlC;IAEE,mCAAkC,EAAA;EAGpC;IAEE,mCAAkC,EAAA,EAAA;;AAItC;EAEI,mBAAkB;EAClB,SD8pCmB;EC7pCnB,UD8pCoB;EC7pCpB,kBDqqC0B;ECpqC1B,mBDqqC2B,ECnnC5B;EAxDH;IAQM,0BAAyB;IACzB,WDkpCiB;ICjpCjB,aDkpCmB;ICjpCnB,mBAAkB;IAClB,YAAW;IAEX,0BAAyB;IACzB,sBAAqB,EACtB;EAhBL;IAkBM,kBD0pC2B;ICzpC3B,mBD0pC4B,ECrpC7B;IAxBL;MAqBQ,WDwoCkB;MCvoClB,aDwoCoB,ECvoCrB;EAvBP;IA0BM,kBD8oC4B;IC7oC5B,mBD8oC4B,ECzoC7B;IAhCL;MA6BQ,WD4nCmB;MC3nCnB,aD4nCoB,EC3nCrB;EA/BP;IAoCQ,2ED6lC8D;IC5lC9D,0BDmmCU,EClmCX;EAtCP;IAoCQ,2ED8lC8D;IC7lC9D,0BDomCU,ECnmCX;EAtCP;IAoCQ,2ED+lC8D;IC9lC9D,0BDqmCU,ECpmCX;EAtCP;IAoCQ,2EDgmC8D;IC/lC9D,0BDsmCU,ECrmCX;EAtCP;IAoCQ,2EDimC8D;IChmC9D,0BDumCU,ECtmCX;EAtCP;IA2CQ,0BDklC8B,ECjlC/B;EA5CP;IAgDQ,0BD8kCqB,EC7kCtB;EAjDP;IAqDQ,0BD0kC2B,ECzkC5B;;AAIP;EAGM,mBAAkB;EAClB,UAAS;EACT,SAAQ;EAER,iCAA+B,EAChC;;AAGL;EACE;IAEE,qBAAoB,EAAA;EAGtB;IAEE,uBAAsB,EAAA;EAGxB;IAEE,qBAAoB,EAAA,EAAA;;AExNxB;EACE,gBApBmB;EAqBnB,eHkBuB;EGhBvB,mBAAkB;EAClB,kBAvBgB;EAwBhB,iBAAgB,EA8tBjB;EA7tBC;IAEE,mBAAkB,EAKnB;IAPA;MAIG,cAAa;MACb,qBAAoB,EACrB;EAEH;IACE,mBAAkB,EAOnB;IANC;MACE,mBAAkB;MAClB,SAAQ;MACR,UAAS,EAEV;EAtBL;IAyBI,YAAW;IACX,0BAAyB;IACzB,iBAAgB,EACjB;EA5BH;IAgCI,kBAlCyB;IAmCzB,iBAAgB;IAEhB,kBAAiB,EAOlB;IA1CH;MAqCM,mBAAkB,EACnB;IAtCL;MAwCM,iBAAgB,EACjB;EAzCL;IA6CI,4CA7D4D;IA8D5D,kBAhEc,EA6Ef;IA3DH;MAgDM,eAAc,EAOf;MAvDL;QAkDQ,eAAc,EACf;MAnDP;QAqDQ,eAAc,EACf;IAtDP;MAyDM,sBACF,EAAC;EA1DL;IA8DM,iCAnEyB,EAoE1B;EA/DL;IA0EU,+BAA8B,EAC/B;EA3ET;IA+EM,eAAc,EAOf;IAtFL;MAiFQ,eAAc,EACf;IAlFP;MAoFQ,eAAc,EACf;EArFP;IAwFM,qBAAa;IAAb,cAAa;IACb,gCAA2B;IAA3B,4BAA2B,EAgB5B;IAzGL;MA2FQ,mBAAkB,EACnB;IA5FP;MA8FQ,aAAY,EAOb;MArGP;QAgGU,WAAU,EACX;MAjGT;QAmGU,WAAU,EACX;IApGT;MAuGQ,UAAS,EACV;EAxGP;IA2GM,mBAAkB;IAClB,oBAAmB,EAYpB;IAxHL;MA8GQ,mBAAkB;MAClB,SAAQ,EAKT;MApHP;QAiHU,eAAc;QACd,oBAAmB,EACpB;IAnHT;MAsHQ,mBAAkB,EACnB;EAvHP;IA6HQ,oBAAmB,EACpB;EA9HP;IAkII,mBAAkB,EACnB;EAnIH;IAqII,+BHwD8D,EGvD/D;EAtIH;;IA0II,kBAtJoB;IAuJpB,sBAAqB,EA0BtB;IArKH;;MA8IQ,gBAAe;MACf,kBAAiB,EAClB;IAhJP;;MAkJQ,WAAU,EACX;IAnJP;;MAsJM,mBAAkB,EACnB;IAvJL;;MAyJM,kBAAiB,EAClB;IA1JL;;MA4JM,gBAAe;MACf,sBAAqB;MACrB,gBAAe;MACf,kBAAiB,EAKlB;MApKL;;QAiKQ,WAAU;QACV,gBAAe,EAChB;EAGJ;IAEG,iBApLkB,EAqLnB;EAEF;IAEG,kBAzLkB,EA0LnB;EA9KL;IAoLQ,4BAA2B;IAC3B,+BAA8B,EAO/B;IA5LP;MAuLU,aAAY,EACb;IAxLT;MA0LU,aAAY,EACb;EAIP;IACE,+BAAuD,EACxD;EAED;IACE,eAAc,EACf;EACA;IAEG,qCAxN0D;IAyN1D,uBAAsB;IACtB,oBAAmB,EAEpB;EANF;IASK,iBAAgB,EACnB;EAVF;IAaK,gBAAgB,EACjB;EAdJ;IAkBG,4CAxO0D;IAyO1D,uBAAsB,EACvB;EApBF;;IAuBG,2CA7O0D;IA8O1D,uBAAsB,EACvB;EAEF;IAGK,iBAAgB,EAIjB;IAPJ;MAKO,cAAa,EACd;EAIP;IACE,iBAAgB;IAChB,+BHmtC2E;IGltC3E,uBHmtC+D,EGltChE;EA/OH;IAkPI,iBA9PoB,EA+PrB;EAED;IACE,iBAAgB;IAChB,mBAAkB,EACnB;EACD;IACE,oBAAmB;IACnB,oBAAmB,EACpB;EAEA;IACC,mBAAkB,EACnB;EAED;IACE,aAAY;IACZ,iBAAgB,EACjB;EAGD;IACE,mBAAkB;IAClB,qBAAoB;IACpB,qBAAoB;IACpB,mBAAkB;IAClB,uBAAsB,EACvB;EAED;IACE,kBA7RoB;IA8RpB,yCAlS4D,EAmS7D;EAED;IACE,mBAAkB,EACnB;EAED;IACE,kBAtSoB;IAuSpB,4CA3S4D,EA+S7D;IANA;MAIG,mBAAkB,EACnB;EAEH;IACE,mBA7SoB,EA8SrB;EAED;IACE,kBAA8B;IAC9B,iBAAgB;IAChB,4CAvT4D;IAwT5D,mBAAkB;IAClB,mBAAkB,EAUnB;IAfA;MAOG,gBAAe;MACf,kBAAiB,EAMlB;MAdF;QAUK,gBAAe;QACf,kBAAiB;QACjB,eAAc,EACf;EAIL;IACE,YAAW,EACZ;EACA;IAIK,iBAAgB,EACjB;EALJ;IAOK,+BAAuD,EAExD;EAEH;IACE,gBAAe;IACf,sBAAqB;IACrB,kBAAiB;IACjB,YAAW;IACX,aAAY;IACZ,mBAAkB;IAClB,kBAAiB;IACjB,0BAAiB;IAAjB,sBAAiB;IAAjB,kBAAiB,EAKlB;IAbA;MAUG,gBAAe;MACf,WAAU,EACX;EAEH;IACE,mBAAkB,EACnB;EACD;IACE,aAAY,EACb;EACA;IAEG,iBAAgB;IAChB,kBAAiB,EAClB;EAEF;IAEG,iBAAgB;IAChB,kBAAiB,EAClB;EAGJ;IAEG,oBAAmB,EACpB;EAvWL;IA0WI,oBAAmB,EAQpB;IAlXH;MA4WM,oBAAmB,EACpB;IA7WL;MAgXM,WAAU,EACX;EAEH;IACE,cAAa,EACd;EACD;IAEE,gBAAe;IACf,YAAW;IACX,WAAU,EAWX;IAfA;MAMG,eAAc,EACf;IACD;MACE,oBAAmB;MACnB,YAAW,EAIZ;MANA;QAIG,YAAW,EACZ;EAGL;IACE,kBAAiB,EAIlB;IALA;MAGG,aAAY,EACb;EAEH;IACE,aAAY,EAIb;IALA;MAGG,aAAY,EACb;EAGH;IAEE,mBAAkB;IAClB,OAAM;IACN,iBAAgB;IAChB,WAAU,EAKX;IAVA;MAOG,YAAW;MACX,iBAAgB,EACjB;EAGH;IACE,QAAO;IACP,+CAA8C,EAQ/C;IAPC;MACE,oBAAmB;MACnB,oBAAmB,EACpB;IACD;MACE,iBAAgB,EACjB;EAGH;IACE,SAAQ;IACR,gDAA+C,EAShD;IALC;MACE,mBAAkB;MAClB,qBAAoB,EACrB;EAIH;IACE,iBAAgB,EACjB;EAED;IACE,iBAAgB,EACjB;EAEA;IAEG,oBAAmB,EACpB;EAHF;IAKG,qBAAa;IAAb,cAAa;IACb,sBAAuB;IAAvB,wBAAuB;IACvB,uBAAmB;IAAnB,oBAAmB,EAIpB;IAXF;MASK,gBAAe,EAChB;EAVJ;IAaG,+BHm/ByE;IGl/BzE,uBHm/B6D;IGl/B7D,6BAA2B;IAI3B,0BAAyB;IACzB;;QAEE;IACA,sBAAqB;IACrB,kBAAiB,EAmEpB;IA3FF;MA8BK,eAAc,EACf;IA/BJ;MAiCK,mBAAkB;MAClB,iBAAgB;MAChB,aAAY;MACZ,uBAAsB;MACtB,mBAAkB;MAClB,sBAAqB;MACrB,iBAAgB,EAgBjB;MAvDJ;QAyCO,aAAY;QACZ,iBAAgB;QAChB,eA5eS,EA6eV;MA5CN;;QAgDO,kBAAiB;QACjB,eAAc;QACd,YAAW;QACX,gBAAe,EAChB;IApDN;;;;MA6DK,eAAc,EACf;IA9DJ;;MAkEK,aAAY;MACZ,gBAAe,EAChB;IApEJ;;MAuEK,sBAAqB;MACrB,WAAU;MACV,gBAAe;MACf,iBAAgB;MAGhB,uCAAyC;MACzC,+GAA8G;MAC9G,QAAO;MACP,iBAAgB;MAChB,YAAW;MACX,YAAW,EAGZ;IArFJ;MAwFS,sBAAqB,EACxB;EAzFN;IA6FG,aAAY,EACb;EA9FF;IAgGG,+BHnW4D,EGqW7D;EAlGF;IAwGG,iBAAgB,EACjB;EACD;IACE,mBAAkB,EAmCnB;IAjCC;MACE,aAAY;MACZ,mBAAkB;MAClB,aAAY;MACZ,OAAM;MAIN,YAAW;MAEX,uBAAsB;MACtB,WAAU,EAeX;MA1BA;QAcG,aAAY;QACZ,WAAU;QAEV,eAAc,EACf;MAlBF;QAoBG,oBAAkB,EACnB;MArBF;QAuBG,oBAAkB,EACnB;IAGH;MACE,mBAAkB,EAInB;MALA;QAGG,oBACF,EAAC;EAGJ;IAEG,aAAY,EACb;EAOH;IACE,YAAW;IACX,kBAAiB;IACjB,iBAAgB;IAChB,eAAa,EACd;EACD;IAEE,gBAAe;IACf,mBAAkB,EACnB;EACD;IACE,mBAAkB,EACnB;EACD;IACE,mBAAkB;IAClB,YAAW;IACX,aAAa;IACb,kBAAiB;IACjB,WAAW;IACX,SAAQ;IACR,WAAU;IACV,+BHi1ByE;IGh1BzE,mBAAkB;IAClB,gBAAe,EAKhB;IAfA;MAYG,aAAY;MACZ,eArnBW,EAsnBZ;EAEH;IACE,gBAAe;IACf,gBAAe;IAEf,gBAAe,EAKhB;IATA;MAMG,YAAW,EAEZ;EAEH;IACE,kBAAiB;IACjB,iBAAgB;IAChB,uBAAsB;IACtB,gBAAe;IACf,iBAAgB;IAChB,wBAAuB;IACvB,oBAAmB;IACnB,sBAAqB;IACrB,uBAAsB,EACvB;EACD;IACE,uBAAsB;IACtB,iBAAgB,EACjB;EAGH;IAEE,cAAY;IACZ,qBAAoB,EACrB;EAtpBH;IAypBI,aA/pBiB;IAgqBjB,kBAhqBiB;IAiqBjB,YAAU;IACV,eAAc;IACd,iBAAgB,EASjB;IAtqBH;MA+pBM,kBArqBe;MAsqBf,mBAAkB,EAKnB;MArqBL;QAkqBQ,YAxqBa;QAyqBb,aAzqBa,EA0qBd;EApqBP;IA0qBQ,mBArrBuB,EAsrBxB;EA3qBP;IAkrBU,kBA9rBc,EA+rBf;EAnrBT;IAyrBI,WAAU;IACV,YAAW,EACZ;EA3rBH;IA6rBI,cAAa,EACd;EA9rBH;IAgsBI,+BAA8B;IAC9B,mBAAkB,EACnB;EAlsBH;IAosBI,mBAAkB;IAClB,0BAAyB;IACzB,mBAAkB,EACnB;EAvsBH;IA0sBI,cAAa,EACd;EA3sBH;IA8sBI,cAAa,EACd;EA/sBH;IAktBI,aAAW,EACZ;EAntBH;IAqtBI,aAAY;IACZ,aAAY,EACb;EAvtBH;IA0tBI,gBAAe;IACf,eAAc,EACf;EA5tBH;IA8tBI,2BAAyB,EAC1B;EA/tBH;IAiuBI,sBAAqB;IACrB,kBAAiB,EAClB;;AAGH;EACE,cAAa;EAGb,kBAAiB,EAClB;;AAEC;EAEI,oBAAkB,EACnB;;AAEL;EAEI,0BAAyB,EAC1B;;AAHH;;EAMI,qCAxwB4D,EAywB7D;;AAGH;;EAEE,WAAU;EACV,+DAA8D;EAC9D,yBAAwB;EACxB,0BAAyB;EACzB,6BAA4B,EAC7B;;AAED;EACE,kEAAiE;EACjE,yBAAwB;EACxB,0BAAyB;EACzB,6BAA4B,EAC7B;;AAED;;EAEE,2BAA0B;EAC1B,8BAA6B,EAC9B;;AAED;EACE,6BAA4B;EAC5B,8BAA6B,EAC9B;;AAED;EACE;IACE,sBAAqB;IACrB,4BAA2B;IAC3B,WAAU;IACV,6BHrvB+C,EAAA;EGuvBjD;IACE,sBAAqB;IACrB,yBAAwB;IACxB,WAAU,EAAA;EAEZ;IACE,6BH7vB+C,EAAA;EG+vBjD;IACE,wBAAuB;IACvB,WAAU,EAAA,EAAA;;AAId;EACE;IACE,sBAAqB;IACrB,yBAAwB;IACxB,WAAU,EAAA;EAEZ;IACE,sBAAqB;IACrB,6BAA4B;IAC5B,WAAU,EAAA,EAAA;;AAId;EACE,cAAa;EACb,kBAAiB;EACjB,WAAU,EACX;;AACD;EACE,cAAa;EACb,aAAY;EACZ,sBAAsB;EACtB,yBAAyB;EACzB,wBAAuB;EACvB,eAAc;EACd,yBAAyB;EACzB,0BAA0B;EAC1B,UAAS;EACT,mBAAkB;EAClB,WAAU;EACV,SAAQ;EACR,SAAQ,EACT;;AAED;EACE,mBAAkB,EACnB;;AAED;;EAEE,oBAAmB,EACpB;;AACD;EAEI,cAAa,EACd;;AAHH;EAKI,aAAY;EACZ,gBAAe,EAChB;;AAGH;EACE,0BAAyB;EACzB,aAAY,EACb;;AAED;;EAEE,mBAAkB;EAClB,OAAM;EACN,SAAQ;EACR,YAAW;EACX,gBAAe,EAChB;;AAED;EACE,kBAAiB;EACjB,cAAa,EACd;;AAED;EACE,kBAAiB,EAClB;;AAED;EACE,sBAAqB,EACtB;;AAED;;EAEE,eAAc,EACf;;AAED;EACE,mBAAkB,EACnB;;AAED;EACE,oBAAmB,EAuBpB;EAxBD;IAGI,mBAAkB;IAClB,YAAW;IACX,YAAW;IACX,SAAQ;IACR,eAAc;IACd,gBAAe,EAChB;EATH;IAWI,aAAY,EACb;EAZH;IAcI,aAAY;IACZ,oBAAmB;IACnB,sBAAqB;IACrB,oBAAmB,EACpB;EAlBH;IAoBI,SAAQ;IACR,YAAW;IACX,mBAAkB,EACnB;;AAIH;EACE,YAAW;EACX,mBAAkB,EAyDnB;EA3DD;IAKI,oBAAmB,EACpB;EANH;IASI,oBAAmB,EACpB;EAVH;IAaI,cAAa,EACd;EAdH;IAiBI,kBAAiB;IACjB,mBAAkB;IAClB,WAAU;IACV,YAAW;IACX,mBAAkB,EAqCnB;IA1DH;MAwBM,eAAc;MACd,UAAS;MACT,mBAAkB;MAClB,mBAAkB,EAQnB;MAnCL;QA8BQ,WACF,EAAC;MA/BP;QAiCQ,UACF,EAAC;IAlCP;MAuCQ,oBAAmB,EACpB;IAxCP;MA0CQ,kBAAiB,EAClB;IA3CP;MA+CM,gBAAe;MACf,cAAa,EACd;IAjDL;MAoDM,mBAAkB;MAClB,WAAU;MACV,aAAY;MACZ,SAAQ;MACR,UAAS,EACV;;AAIL;EACI,cAAa,EAShB;EAVD;IAIY,kBAn+BoB;IAo+BpB,aAp+BoB;IAq+BpB,yBAAwB;IACxB,gBAAe,EAClB;;AAGT;EAEI,aA5+B4B,EA6+B7B;;AAHH;EAKI,aA/+B4B,EAg/B7B;;AANH;EASM,kBAAiB,EAClB;;AAVL;EAaI,kBAAiB,EAClB;;AAEH;EACE,mBAAkB;EAClB,YAAW;EACX,cAAa;EACb,uBAAmB;EAAnB,oBAAmB;EACnB,sBAAuB;EAAvB,wBAAuB;EACvB,wBAAuB,EACxB;;AAED;EACE,mBAAkB;EAClB,UAAS,EACV;;AAKD;EAGM,oBAAmB,EACpB;;AAJL;EAOI,wBAAuB;EACvB,oBAAmB;EACnB,uBAAsB;EACtB,iBAAgB,EACjB;;AAEH;EAGM,oBAAmB,EACpB;;AAJL;EAQI,wBAAuB;EACvB,oBAAmB;EACnB,uBAAsB;EACtB,iBAAgB,EACjB;;AAZH;EAcI,wBAAuB;EACvB,oBAAmB;EACnB,uBAAsB;EACtB,iBAAgB,EACjB;;AAEH;EACE,mBAAkB;EAClB,aAAW,EACZ;;AAED;EAGM,kBAAiB;EACjB,0BAAyB,EAC1B;;AALL;EAUM,kBAAiB;EACjB,0BAAyB,EAC1B;;AAZL;EAiBM,cAAa,EACd;;AAIL;EAEI,oBAAmB;EACnB,wCAAuC,EACxC;;AAJH;EAOI,iCAAgC,EACjC;;AAEH;EAGM,uBAAsB;EACtB,aAAY;EACZ,kBAAiB,EAIlB;EATL;IAOQ,gBAAe,EAChB;;ACxlCP;EACE,oBAAmB,EACpB;;AAED;EACE,aAAY,EAMb;EAPD;IAII,YAAW,EACZ;;AAGH;EACE,cAAa;EACb,YAAW;EACX,oBAAmB;EACnB,sBAAqB,EAKtB;EATD;IAMI,oBAAmB;IACnB,sBAAqB,EACtB;;AC1CH;EAEQ,oBAAmB,EACtB;;AAHL;EAKQ,oBAAmB,EACtB;;ACNL;EAEQ,mBAAkB,EACrB;;ACHL;EAEQ,iBAAgB;EAChB,oBAAmB,EACtB;;ACJL;EAIQ,UAAS,EAIV;EARP;IAMU,kBAAiB,EAClB;;AAPT;EAcM,iBAAgB,EAMjB;EApBL;IAiBQ,gBAAe;IACf,kBAAiB,EAClB;;AAnBP;;EAwBM,aAAY,EACb;;AAzBL;EA6BI,uBAAsB;EACtB,kBAAiB;EACjB,mBAAkB,EACnB;;AAhCH;EAmCI,kBAAiB;EACjB,mBAAkB,EAenB;EAnDH;IAuCM,aAAY;IACZ,0BAAyB;IACzB,SAAQ;IACR,aAAY;IACZ,mBAAkB;IAClB,SAAQ;IACR,WAAU,EACX;EA9CL;IAiDM,eACF,EAAC;;AAlDL;EAqDI,+BAA8B,EAC/B;;AAtDH;EAyDI,mBAAkB;EAClB,SAAQ;EACR,eAAc;EACd,gBAAe,EAChB;;AA7DH;EAgEI,wBAAuB,EACxB;;AAGH;EAEI,eAAc,EACf;;ACvEH;EAGM,iBAAgB,EAUjB;EAbL;IAMQ,kBAAiB;IACjB,gBAAe,EAKhB;IAZP;MAUU,sBAAqB,EACtB;;AAXT;EAgBM,aAAY,EACb;;AAjBL;EAqBQ,kBAAiB,EAClB;;AAtBP;;EA2BM,aAAY,EACb;;AA5BL;EAgCI,uBAAsB;EACtB,kBAAiB;EACjB,mBAAkB,EACnB;;AAnCH;EAsCI,iBAAgB,EAQjB;EA9CH;IAwCM,uBAAsB;IACtB,aAAY,EAIb;IA7CL;MA2CQ,sBAAqB,EACtB;;AA5CP;EAiDI,+BAA8B,EAC/B;;AAlDH;EAqDI,mBAAkB;EAClB,SAAQ;EACR,eAAc;EACd,gBAAe,EAChB;;AAGH;EAEI,eAAc,EACf;;AC/DH;EAGI,gBAAe;EACf,oBAAmB,EACpB;;AALH;EAQI,iBAAgB,EACjB;;AATH;EAYI,gBAAe,EAChB;;AAbH;EAgBI,eAAc;EACd,YAAW;EACX,aAAY;EACZ,oBAAmB,EACpB;;AApBH;EAuBI,wBAAuB,EACxB;;AAxBH;EA2BI,eAAc;EACd,YAAW;EACX,kBAAiB;EACjB,aAAY;EACZ,uBAAsB;EACtB,oBAAmB;EACnB,gBAAe;EACf,aAAY;EACZ,kBAAiB,EAKlB;EAxCH;IAqCM,WAAU;IACV,WAAU,EACX;;AAvCL;EA2CI,mBAAkB;EAClB,SAAQ;EACR,eAAc;EACd,gBAAe,EAChB;;AAGH;EACE,yBAAwB,EAKzB;EAND;IAII,eAAc,EACf;;AAEH;EACE,kBAAiB,EAClB;;AC3DD;EAGI,mBAAkB,EAOnB;EAVH;IAOQ,kBAAiB,EAClB;;AARP;EAcM,0BAAyB,EAC1B;;AAfL;EAkBQ,iBAAgB,EAMjB;EAxBP;IAqBU,gBAAe;IACf,kBAAiB,EAClB;;AAvBT;;EA4BQ,aAAY,EACb;;AA7BP;EAiCM,uBAAsB;EACtB,kBAAiB;EACjB,mBAAkB,EACnB;;AApCL;EAuCM,kBAAiB;EACjB,mBAAkB,EAenB;EAvDL;IA2CQ,aAAY;IACZ,0BAAyB;IACzB,SAAQ;IACR,aAAY;IACZ,mBAAkB;IAClB,SAAQ;IACR,WAAU,EACX;EAlDP;IAqDQ,eACF,EAAC;;AAtDP;EA0DM,+BAA8B,EAC/B;;AA3DL;EA8DM,aAAY;EACZ,mBAAkB;EAClB,aAAY;EACZ,OAAM;EACN,QAAO;EACP,kBAAiB;EACjB,oBAAmB;EACnB,sDAAqD,EACtD;;AAtEL;EAyEM,mBAAkB;EAClB,SAAQ;EACR,eAAc;EACd,gBAAe,EAChB;;AA7EL;EAgFM,wBAAuB,EACxB;;AAIL;EAEI,eAAc,EACf;;ACxFH;EAGY,gBAAe;EACf,mBAAkB;EAClB,kBAAiB,EACpB;;AANT;EAYgB,oBAAmB,EAC1B;;ACbT;EAEQ,gBAAe,EAClB;;;ACHL;EAEQ,oBAAmB,EACtB;;AAHL;EAKQ,qBAAa;EAAb,cAAa;EACb,uBAAmB;EAAnB,oBAAmB;EACnB,sBAAuB;EAAvB,wBAAuB,EAC1B","file":"demo.css","sourcesContent":["@charset \"UTF-8\";\n/* FormGroup */\n/* Navlayout */\n/* FormGroup */\n/* Navlayout */\n/**\r\n * 加载背景\r\n */\n/**\r\n * 文字\r\n */\n.u-loading-desc {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n font-size: 14px;\n color: #212121;\n text-align: center; }\n\n/**\r\n * default样式 单个圆圈加载\r\n */\n.u-loading.u-loading-rotate > div {\n position: absolute;\n border-radius: 100%;\n margin: 2px;\n -webkit-animation-fill-mode: both;\n animation-fill-mode: both;\n width: 40px;\n height: 40px;\n top: 50%;\n left: 50%;\n margin-left: -22px;\n margin-top: -22px;\n background: transparent !important;\n display: inline-block;\n -webkit-animation: rotate 1s 0s linear infinite;\n animation: rotate 1s 0s linear infinite;\n text-align: center;\n line-height: 40px; }\n .u-loading.u-loading-rotate > div > img {\n width: 40px; }\n .u-loading.u-loading-rotate > div > .uf {\n color: #0084ff;\n font-size: 40px;\n padding: 0; }\n\n.u-loading.u-loading-rotate.u-loading-rotate-lg > div {\n margin-left: -35px;\n margin-top: -35px;\n width: 60px;\n height: 60px;\n line-height: 60px; }\n .u-loading.u-loading-rotate.u-loading-rotate-lg > div > img {\n width: 60px; }\n .u-loading.u-loading-rotate.u-loading-rotate-lg > div > .uf {\n font-size: 60px; }\n\n.u-loading.u-loading-rotate.u-loading-rotate-sm > div {\n margin-left: -15px;\n margin-top: -15px;\n width: 25px;\n height: 25px;\n line-height: 25px; }\n .u-loading.u-loading-rotate.u-loading-rotate-sm > div > img {\n width: 25px; }\n .u-loading.u-loading-rotate.u-loading-rotate-sm > div > .uf {\n font-size: 25px; }\n\n.u-loading.u-loading-rotate.u-loading-rotate-primary > div > .uf {\n color: #3f51b5; }\n\n.u-loading.u-loading-rotate.u-loading-rotate-success > div > .uf {\n color: #4caf50; }\n\n.u-loading.u-loading-rotate.u-loading-rotate-warning > div > .uf {\n color: #ff9800; }\n\n.u-loading-backdrop {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1900;\n background-color: rgba(255, 255, 255, 0.4); }\n .u-loading-backdrop.full-screen {\n position: fixed; }\n\n@keyframes rotate {\n 0% {\n -webkit-transform: rotate(0deg) scale(1);\n transform: rotate(0deg) scale(1); }\n 50% {\n -webkit-transform: rotate(180deg) scale(1);\n transform: rotate(180deg) scale(1); }\n 100% {\n -webkit-transform: rotate(360deg) scale(1);\n transform: rotate(360deg) scale(1); } }\n\n.u-loading.u-loading-line {\n position: absolute;\n top: 50%;\n left: 50%;\n margin-top: -30px;\n margin-left: -25px; }\n .u-loading.u-loading-line > div {\n background-color: #C2C3C5;\n width: 6px;\n height: 50px;\n border-radius: 2px;\n margin: 2px;\n -webkit-animation-fill-mode: both;\n animation-fill-mode: both;\n display: inline-block; }\n .u-loading.u-loading-line.u-loading-line-lg {\n margin-top: -50px;\n margin-left: -30px; }\n .u-loading.u-loading-line.u-loading-line-lg > div {\n width: 8px;\n height: 90px; }\n .u-loading.u-loading-line.u-loading-line-sm {\n margin-top: -22px;\n margin-left: -20px; }\n .u-loading.u-loading-line.u-loading-line-sm > div {\n width: 4px;\n height: 35px; }\n .u-loading.u-loading-line div:nth-child(1) {\n -webkit-animation: line-scale 1s 0.1s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08);\n animation: line-scale 1s 0.1s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08);\n background-color: #F44336; }\n .u-loading.u-loading-line div:nth-child(2) {\n -webkit-animation: line-scale 1s 0.2s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08);\n animation: line-scale 1s 0.2s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08);\n background-color: #7ED321; }\n .u-loading.u-loading-line div:nth-child(3) {\n -webkit-animation: line-scale 1s 0.3s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08);\n animation: line-scale 1s 0.3s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08);\n background-color: #0084FF; }\n .u-loading.u-loading-line div:nth-child(4) {\n -webkit-animation: line-scale 1s 0.4s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08);\n animation: line-scale 1s 0.4s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08);\n background-color: #FF9800; }\n .u-loading.u-loading-line div:nth-child(5) {\n -webkit-animation: line-scale 1s 0.5s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08);\n animation: line-scale 1s 0.5s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08);\n background-color: #D0021B; }\n .u-loading.u-loading-line.u-loading-line-primary > div {\n background-color: #3f51b5; }\n .u-loading.u-loading-line.u-loading-line-success > div {\n background-color: #4caf50; }\n .u-loading.u-loading-line.u-loading-line-warning > div {\n background-color: #ff9800; }\n\n.u-loading.u-loading-custom > div {\n position: absolute;\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%); }\n\n@keyframes line-scale {\n 0% {\n -webkit-transform: scaley(1);\n transform: scaley(1); }\n 50% {\n -webkit-transform: scaley(0.4);\n transform: scaley(0.4); }\n 100% {\n -webkit-transform: scaley(1);\n transform: scaley(1); } }\n\n.u-table {\n font-size: 12px;\n color: #212121;\n position: relative;\n line-height: 1.33;\n overflow: hidden; }\n .u-table-body {\n position: relative; }\n .u-table-body .u-table-row-expand-columns-in-body .expand-icon-con {\n display: none;\n pointer-events: none; }\n .u-table-hiden-drag {\n position: relative; }\n .u-table-hiden-drag-li {\n position: absolute;\n top: 0px;\n left: 0px; }\n .u-table table {\n width: 100%;\n border-collapse: collapse;\n text-align: left; }\n .u-table th {\n font-weight: bold;\n text-align: left;\n line-height: 16px; }\n .u-table th[colspan] {\n text-align: center; }\n .u-table th ::last-child {\n overflow: hidden; }\n .u-table td {\n border-bottom: 1px solid rgb(193, 199, 208);\n line-height: 1.33; }\n .u-table td a {\n color: #2196F3; }\n .u-table td a:hover {\n color: #1565c0; }\n .u-table td a:active {\n color: #1565c0; }\n .u-table td .u-switch-span {\n display: inline-block; }\n .u-table thead tr:last-child {\n border-bottom: 1px solid #C1C7D0; }\n .u-table tr:hover td .uf-eye {\n visibility: visible !important; }\n .u-table tr tr a {\n color: #2196F3; }\n .u-table tr tr a:hover {\n color: #1565c0; }\n .u-table tr tr a:active {\n color: #1565c0; }\n .u-table tr td.u-table-multiSelect-column.u-table-row-has-expandIcon:not(.u-table-row-fixed-columns-in-body) {\n display: flex;\n flex-direction: row-reverse; }\n .u-table tr td.u-table-multiSelect-column.u-table-row-has-expandIcon:not(.u-table-row-fixed-columns-in-body):nth-last-child(1):last-child {\n border-right: none; }\n .u-table tr td.u-table-multiSelect-column.u-table-row-has-expandIcon:not(.u-table-row-fixed-columns-in-body) .expand-icon-con {\n height: 14px; }\n .u-table tr td.u-table-multiSelect-column.u-table-row-has-expandIcon:not(.u-table-row-fixed-columns-in-body) .expand-icon-con .uf {\n padding: 0; }\n .u-table tr td.u-table-multiSelect-column.u-table-row-has-expandIcon:not(.u-table-row-fixed-columns-in-body) .expand-icon-con .u-table-row-expand-icon {\n width: 2px; }\n .u-table tr td.u-table-multiSelect-column.u-table-row-has-expandIcon:not(.u-table-row-fixed-columns-in-body) .u-checkbox {\n margin: 0; }\n .u-table tr td.u-table-inline-icon {\n position: relative;\n padding-right: 24px; }\n .u-table tr td.u-table-inline-icon span.u-table-inline-op-icon {\n position: absolute;\n right: 0; }\n .u-table tr td.u-table-inline-icon span.u-table-inline-op-icon .uf {\n display: block;\n vertical-align: top; }\n .u-table tr td.u-table-inline-icon span.u-table-inline-op-icon-hover {\n visibility: hidden; }\n .u-table tr.u-table-row-hover td.u-table-inline-icon span.u-table-inline-op-icon-hover {\n visibility: visible; }\n .u-table .u-table-inline-op-icon-hidden {\n visibility: hidden; }\n .u-table tr.tr-row-hover {\n background: rgb(235, 236, 240); }\n .u-table th,\n .u-table td {\n padding: 12px 8px;\n word-break: break-all; }\n .u-table th.drag-handle-column .uf,\n .u-table td.drag-handle-column .uf {\n font-size: 12px;\n line-height: 12px; }\n .u-table th.drag-handle-column.u-table-row-has-expandIcon .uf,\n .u-table td.drag-handle-column.u-table-row-has-expandIcon .uf {\n padding: 0; }\n .u-table th.text-center,\n .u-table td.text-center {\n text-align: center; }\n .u-table th.text-right,\n .u-table td.text-right {\n text-align: right; }\n .u-table th .expand-icon-con,\n .u-table td .expand-icon-con {\n cursor: pointer;\n display: inline-block;\n font-size: 12px;\n line-height: 12px; }\n .u-table th .expand-icon-con .uf,\n .u-table td .expand-icon-con .uf {\n padding: 0;\n font-size: 12px; }\n .u-table-sm td {\n padding: 8px 8px; }\n .u-table-lg td {\n padding: 16px 8px; }\n .u-table tr.filterable th {\n padding-top: 5px !important;\n padding-bottom: 5px !important; }\n .u-table tr.filterable th .filterContext {\n height: 35px; }\n .u-table tr.filterable th .u-select-selection--single {\n height: 26px; }\n .u-table-row-hover {\n background: rgb(235, 236, 240); }\n .u-table-scroll {\n overflow: auto; }\n .u-table-bordered table {\n border: 1px solid rgb(193, 199, 208);\n box-sizing: border-box;\n table-layout: fixed; }\n .u-table-bordered .u-table-header > table {\n border-bottom: 0; }\n .u-table-bordered .u-table-header ~ .u-table-body table, .u-table-bordered .u-table-header ~ .u-table-body-outer table {\n border-top: 0px; }\n .u-table-bordered th {\n border-bottom: 1px solid rgb(193, 199, 208);\n box-sizing: border-box; }\n .u-table-bordered th,\n .u-table-bordered td {\n border-right: 1px solid rgb(193, 199, 208);\n box-sizing: border-box; }\n .u-table-drag-border tr th.th-can-not-drag {\n overflow: hidden; }\n .u-table-drag-border tr th.th-can-not-drag .u-table-thead-th-drag-gap {\n display: none; }\n .u-table-header {\n overflow: hidden;\n background: rgb(241, 242, 245);\n color: rgb(33, 33, 33); }\n .u-table.fixed-height td {\n padding: 0px 8px; }\n .u-table-fixed-header .u-table-body {\n background: #fff;\n position: relative; }\n .u-table-fixed-left .u-table-body-inner {\n margin-right: -20px;\n padding-right: 20px; }\n .u-table-fixed-header:not(.u-table-hide-header) .u-table-fixed-left .u-table-body-inner {\n padding-right: 0px; }\n .u-table-fixed-header .u-table-body-inner {\n height: 100%;\n overflow: scroll; }\n .u-table-fixed-header .u-table-scroll .u-table-header {\n overflow-x: scroll;\n padding-bottom: 20px;\n margin-bottom: -20px;\n overflow-y: scroll;\n box-sizing: border-box; }\n .u-table-title {\n padding: 12px 8px;\n border-top: 1px solid rgb(193, 199, 208); }\n .u-table-content {\n position: relative; }\n .u-table-footer {\n padding: 12px 8px;\n border-bottom: 1px solid rgb(193, 199, 208); }\n .u-table-footer .u-table-scroll {\n overflow-x: hidden; }\n .u-table-footer .u-table {\n margin: -12px -8px; }\n .u-table-placeholder {\n padding: 12px 8px;\n background: #fff;\n border-bottom: 1px solid rgb(193, 199, 208);\n text-align: center;\n position: relative; }\n .u-table-placeholder .table-nodata {\n font-size: 40px;\n line-height: 44px; }\n .u-table-placeholder .table-nodata + span {\n font-size: 12px;\n line-height: 12px;\n display: block; }\n .u-table-expand-icon-col {\n width: 10px; }\n .u-table-row .u-table tr, .u-table-expanded-row .u-table tr {\n background: #fff; }\n .u-table-row .u-table tr.u-table-row-hover, .u-table-expanded-row .u-table tr.u-table-row-hover {\n background: rgb(235, 236, 240); }\n .u-table-row-expand-icon, .u-table-expanded-row-expand-icon {\n cursor: pointer;\n display: inline-block;\n margin-right: 8px;\n width: 14px;\n height: 14px;\n text-align: center;\n line-height: 14px;\n user-select: none; }\n .u-table-row-expand-icon.uf, .u-table-expanded-row-expand-icon.uf {\n font-size: 12px;\n padding: 0; }\n .u-table-row-spaced, .u-table-expanded-row-spaced {\n visibility: hidden; }\n .u-table-row-spaced:after, .u-table-expanded-row-spaced:after {\n content: \".\"; }\n .u-table-row-expanded:after, .u-table-expanded-row-expanded:after {\n content: \"\\e639\";\n font-family: \"uf\"; }\n .u-table-row-collapsed:after, .u-table-expanded-row-collapsed:after {\n content: \"\\e61c\";\n font-family: \"uf\"; }\n .u-table-row.selected {\n background: #FFF7E7; }\n .u-table tr.u-table-expanded-row {\n background: #DFE1E6; }\n .u-table tr.u-table-expanded-row:hover {\n background: #DFE1E6; }\n .u-table tr.u-table-expanded-row .u-table {\n z-index: 1; }\n .u-table-column-hidden {\n display: none; }\n .u-table-prev-columns-page, .u-table-next-columns-page {\n cursor: pointer;\n color: #666;\n z-index: 1; }\n .u-table-prev-columns-page:hover, .u-table-next-columns-page:hover {\n color: #2db7f5; }\n .u-table-prev-columns-page-disabled, .u-table-next-columns-page-disabled {\n cursor: not-allowed;\n color: #999; }\n .u-table-prev-columns-page-disabled:hover, .u-table-next-columns-page-disabled:hover {\n color: #999; }\n .u-table-prev-columns-page {\n margin-right: 8px; }\n .u-table-prev-columns-page:before {\n content: \"<\"; }\n .u-table-next-columns-page {\n float: right; }\n .u-table-next-columns-page:before {\n content: \">\"; }\n .u-table-fixed-left, .u-table-fixed-right {\n position: absolute;\n top: 0;\n overflow: hidden;\n z-index: 1; }\n .u-table-fixed-left table, .u-table-fixed-right table {\n width: auto;\n background: #fff; }\n .u-table-fixed-left {\n left: 0;\n box-shadow: 4px 0 4px rgba(100, 100, 100, 0.1); }\n .u-table-fixed-left-body-inner {\n margin-right: -20px;\n padding-right: 20px; }\n .u-table-fixed-left-fixed-header .u-table-fixed-left .u-table-fixed-left-body-inner {\n padding-right: 0; }\n .u-table-fixed-right {\n right: 0;\n box-shadow: -4px 0 4px rgba(100, 100, 100, 0.1); }\n .u-table-fixed-right-expanded-row {\n color: transparent;\n pointer-events: none; }\n .u-table-scroll-position-left .u-table-fixed-left {\n box-shadow: none; }\n .u-table-scroll-position-right .u-table-fixed-right {\n box-shadow: none; }\n .u-table-thead .filter-text, .u-table-thead .filter-dropdown, .u-table-thead .filter-date {\n font-weight: normal; }\n .u-table-thead .filter-wrap {\n display: flex;\n justify-content: center;\n align-items: center; }\n .u-table-thead .filter-wrap .filter-btns {\n min-width: 58px; }\n .u-table-thead th {\n background: rgb(241, 242, 245);\n color: rgb(33, 33, 33);\n background-clip: padding-box;\n -moz-user-select: -moz-none;\n -khtml-user-select: none;\n -webkit-user-select: none;\n /*\n Introduced in IE 10. \n */\n -ms-user-select: none;\n user-select: none; }\n .u-table-thead th .required {\n color: #F22C1D; }\n .u-table-thead th .bee-table-column-sorter {\n position: relative;\n margin-left: 4px;\n height: 16px;\n vertical-align: middle;\n text-align: center;\n display: inline-block;\n margin-top: -3px; }\n .u-table-thead th .bee-table-column-sorter i {\n padding: 0px;\n font-weight: 600;\n color: #505F79; }\n .u-table-thead th .bee-table-column-sorter > .bee-table-column-sorter-down,\n .u-table-thead th .bee-table-column-sorter > .bee-table-column-sorter-up, .u-table-thead th .bee-table-column-sorter > .bee-table-column-sorter-flat {\n line-height: 16px;\n display: block;\n width: 34px;\n cursor: pointer; }\n .u-table-thead th .bee-table-column-sorter-down.on .uf-triangle-down,\n .u-table-thead th .bee-table-column-sorter-down.on .uf-triangle-up,\n .u-table-thead th .bee-table-column-sorter-up.on .uf-triangle-down,\n .u-table-thead th .bee-table-column-sorter-up.on .uf-triangle-up {\n color: #108ee9; }\n .u-table-thead th .bee-table-column-sorter .uf-triangle-down,\n .u-table-thead th .bee-table-column-sorter .uf-triangle-up {\n -webkit-filter: none;\n filter: none;\n font-size: 12px; }\n .u-table-thead th .bee-table-column-sorter .uf-triangle-down,\n .u-table-thead th .bee-table-column-sorter .uf-triangle-up {\n display: inline-block;\n padding: 0;\n font-size: 12px;\n font-size: 8px\\9;\n -webkit-transform: scale(0.66667) rotate(0deg);\n -ms-transform: scale(0.66667) rotate(0deg);\n transform: scale(0.66667) rotate(0deg);\n -ms-filter: \"progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=1, M12=0, M21=0, M22=1)\";\n zoom: 1;\n line-height: 4px;\n height: 4px;\n color: #999; }\n .u-table-thead th:hover .bee-table-column-sorter {\n display: inline-block; }\n .u-table-thead .th-drag {\n cursor: move; }\n .u-table-thead .th-drag:hover {\n background: rgb(235, 236, 240); }\n .u-table-thead .th-drag-hover {\n background: #ccc; }\n .u-table-thead-th {\n position: relative; }\n .u-table-thead-th-drag-gap {\n height: 100%;\n position: absolute;\n right: -10px;\n top: 0;\n width: 20px;\n box-sizing: border-box;\n z-index: 1; }\n .u-table-thead-th-drag-gap .online {\n height: 100%;\n width: 4px;\n margin: 0 auto; }\n .u-table-thead-th-drag-gap .online:hover {\n background: #000000; }\n .u-table-thead-th-drag-gap .online-hover {\n background: #000000; }\n .u-table-thead-th-drag-gap:hover {\n cursor: col-resize; }\n .u-table-thead-th-drag-gap:hover .online {\n background: #000000; }\n .u-table-thead-th:last-child-drag-gap {\n border: none; }\n .u-table-filter-column-pop-cont {\n margin: 0px;\n max-height: 300px;\n overflow-y: auto;\n color: #212121; }\n .u-table-filter-column-clear-setting {\n cursor: pointer;\n margin-bottom: 4px; }\n .u-table-filter-column-cont {\n position: relative; }\n .u-table-filter-column-filter-icon {\n position: absolute;\n width: 30px;\n height: 39px;\n line-height: 39px;\n right: 0px;\n top: 1px;\n z-index: 2;\n background: rgb(241, 242, 245);\n text-align: center;\n cursor: pointer; }\n .u-table-filter-column-filter-icon i.uf {\n padding: 0px;\n color: #505F79; }\n .u-table-filter-column-pop-cont-item {\n margin-top: 8px;\n font-size: 12px;\n cursor: pointer; }\n .u-table-filter-column-pop-cont-item .u-checkbox {\n margin: 0px; }\n .u-table-filter-column-pop-cont-item span.drop-menu-title {\n margin-left: -3px;\n max-width: 132px;\n width: auto !important;\n min-width: 56px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n display: inline-block;\n vertical-align: middle; }\n .u-table-filter-column-pop .u-modal-dialog {\n border: 1px solid #ccc;\n background: #fff; }\n .u-table-row-fixed-columns-in-body {\n display: none;\n pointer-events: none; }\n .u-table .u-checkbox {\n height: 14px;\n line-height: 14px;\n margin: 0px;\n display: block;\n margin-left: 5px; }\n .u-table .u-checkbox .u-checkbox-label {\n line-height: 14px;\n padding-left: 16px; }\n .u-table .u-checkbox .u-checkbox-label:before, .u-table .u-checkbox .u-checkbox-label:after {\n width: 14px;\n height: 14px; }\n .u-table .u-table-scroll tr td:first-child, .u-table .u-table-scroll tr th:first-child, .u-table .u-table-fixed-left tr td:first-child, .u-table .u-table-fixed-left tr th:first-child {\n padding-left: 12px; }\n .u-table.has-fixed-left .u-table-scroll tr td:first-child, .u-table.has-fixed-left .u-table-scroll tr th:first-child {\n padding-left: 8px; }\n .u-table ::-webkit-scrollbar {\n width: 8px;\n height: 8px; }\n .u-table ::-webkit-scrollbar-button {\n display: none; }\n .u-table ::-webkit-scrollbar-thumb {\n background: #d5d5d5 !important;\n border-radius: 5px; }\n .u-table ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: #d5d5d5;\n position: absolute; }\n .u-table ::-webkit-scrollbar-track {\n display: none; }\n .u-table ::-webkit-scrollbar-track-piece {\n display: none; }\n .u-table .drag-handle-column, .u-table .row-dragg-able {\n cursor: move; }\n .u-table .u-table-drag-hidden-cont {\n width: 100px;\n height: 40px; }\n .u-table .u-table-link {\n cursor: pointer;\n color: #0073E1; }\n .u-table .u-table-link-underline:hover {\n text-decoration: underline; }\n .u-table .u-table-currency {\n display: inline-block;\n text-align: right; }\n\n.u-table:focus {\n outline: none;\n box-shadow: 0 0 0; }\n\n.u-table-bordered .u-table-drag-gap {\n background: #e9e9e9; }\n\n.u-table.bordered table {\n border-collapse: collapse; }\n\n.u-table.bordered th,\n.u-table.bordered td {\n border: 1px solid rgb(193, 199, 208); }\n\n.move-enter,\n.move-appear {\n opacity: 0;\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n animation-duration: 2.5s;\n animation-fill-mode: both;\n animation-play-state: paused; }\n\n.move-leave {\n animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);\n animation-duration: 0.5s;\n animation-fill-mode: both;\n animation-play-state: paused; }\n\n.move-enter.move-enter-active,\n.move-appear.move-enter-active {\n animation-name: moveLeftIn;\n animation-play-state: running; }\n\n.move-leave.move-leave-active {\n animation-name: moveRightOut;\n animation-play-state: running; }\n\n@keyframes moveLeftIn {\n 0% {\n transform-origin: 0 0;\n transform: translateX(30px);\n opacity: 0;\n background: rgb(238,238,238); }\n 20% {\n transform-origin: 0 0;\n transform: translateX(0);\n opacity: 1; }\n 80% {\n background: rgb(238,238,238); }\n 100% {\n background: transparent;\n opacity: 1; } }\n\n@keyframes moveRightOut {\n 0% {\n transform-origin: 0 0;\n transform: translateX(0);\n opacity: 1; }\n 100% {\n transform-origin: 0 0;\n transform: translateX(-30px);\n opacity: 0; } }\n\n.formItem-style {\n height: unset;\n min-height: unset;\n padding: 0; }\n\n.errMessage-style {\n display: none;\n border: none;\n /* margin-top: 5px; */\n /* margin-bottom: 5px; */\n background: transparent;\n color: #f22c1d;\n /* padding-left: 12px; */\n /* padding-right: 12px; */\n margin: 0;\n position: absolute;\n padding: 0;\n top: 3px;\n right: 0; }\n\n.editable-cell {\n position: relative; }\n\n.editable-cell-input-wrapper,\n.editable-cell-text-wrapper {\n padding-right: 24px; }\n\n.editable-cell-input-wrapper .u-form-item.formItem-style .u-label {\n display: none; }\n\n.editable-cell-input-wrapper .u-input-group .u-form-control {\n height: 26px;\n font-size: 12px; }\n\n.editable-cell-text-wrapper {\n padding: 5px 24px 5px 5px;\n height: 30px; }\n\n.editable-cell-icon,\n.editable-cell-icon-check {\n position: absolute;\n top: 0;\n right: 0;\n width: 20px;\n cursor: pointer; }\n\n.editable-cell-icon {\n line-height: 28px;\n display: none; }\n\n.editable-cell-icon-check {\n line-height: 28px; }\n\n.editable-cell:hover .editable-cell-icon {\n display: inline-block; }\n\n.editable-cell-icon:hover,\n.editable-cell-icon-check:hover {\n color: #2db7f5; }\n\n.editable-add-btn {\n margin-bottom: 8px; }\n\n.search-component {\n margin-bottom: 20px; }\n .search-component .empty-search {\n position: absolute;\n right: 45px;\n z-index: 20;\n top: 5px;\n color: #524e4e;\n cursor: pointer; }\n .search-component.u-input-group.simple {\n float: right; }\n .search-component.u-input-group.simple .u-form-control {\n width: 251px;\n background: #f5f5f5;\n border-color: #f5f5f5;\n border-radius: 20px; }\n .search-component.u-input-group.simple .u-input-group-btn {\n top: 3px;\n right: 20px;\n position: absolute; }\n\n.col-resize-container {\n height: 0px;\n position: relative; }\n .col-resize-container + .table-col-resizer:first-of-type {\n table-layout: fixed; }\n .col-resize-container .active-drag .icon {\n visibility: visible; }\n .col-resize-container .last-handle {\n display: none; }\n .col-resize-container .drag-handle {\n margin-left: -5px;\n position: absolute;\n z-index: 5;\n width: 10px;\n cursor: col-resize; }\n .col-resize-container .drag-handle .icon {\n color: #40b0dc;\n top: -1px;\n position: absolute;\n visibility: hidden; }\n .col-resize-container .drag-handle .icon:first-child {\n left: -2px; }\n .col-resize-container .drag-handle .icon:last-child {\n left: 6px; }\n .col-resize-container .drag-handle:hover .icon {\n visibility: visible; }\n .col-resize-container .drag-handle:hover .col-resizer {\n border: 1px solid; }\n .col-resize-container .drag-handle.disabled-drag {\n cursor: default;\n display: none; }\n .col-resize-container .drag-handle .col-resizer {\n position: absolute;\n width: 1px;\n height: 100%;\n top: 0px;\n left: 3px; }\n\n.u-filter-dropdown-menu-wrap {\n z-index: 1800; }\n .u-filter-dropdown-menu-wrap .u-dropdown-menu li.u-dropdown-menu-item {\n line-height: 26px;\n height: 26px;\n padding: 0px 16px 0 16px;\n cursor: pointer; }\n\n.filter-wrap .u-form-control {\n height: 26px; }\n\n.filter-wrap .u-input-number.u-input-group.simple .u-input-group-btn .icon-group {\n height: 26px; }\n\n.filter-wrap .calendar-picker .u-input-group-btn {\n line-height: 20px; }\n\n.filter-wrap .u-input-number.u-input-group.simple .u-input-group-btn .icon-group .uf {\n line-height: 12px; }\n\n.u-row-hover {\n position: absolute;\n right: 24px;\n display: none;\n align-items: center;\n justify-content: center;\n background: transparent; }\n\n.u-row-hover2 {\n position: absolute;\n left: 100; }\n\n.header-dispaly-in-row.u-table table {\n table-layout: fixed; }\n\n.header-dispaly-in-row th {\n text-overflow: ellipsis;\n white-space: nowrap;\n vertical-align: middle;\n overflow: hidden; }\n\n.body-dispaly-in-row.u-table table {\n table-layout: fixed; }\n\n.body-dispaly-in-row td {\n text-overflow: ellipsis;\n white-space: nowrap;\n vertical-align: middle;\n overflow: hidden; }\n\n.body-dispaly-in-row .u-table-fieldtype {\n text-overflow: ellipsis;\n white-space: nowrap;\n vertical-align: middle;\n overflow: hidden; }\n\n.u-table-drag-hidden-cont {\n position: absolute;\n top: -1000px; }\n\n.u-editable-table .u-table .u-table-row-hover .editable-cell-text-wrapper {\n padding-left: 4px;\n border: 1px solid #c1c7d0; }\n\n.u-editable-table .u-table .editable-cell-text-wrapper:hover {\n padding-left: 4px;\n border: 1px solid #a5adba; }\n\n.u-editable-table .u-table .editable-cell-input-wrapper:focus {\n outline: none; }\n\n.u-editable-table-tp .tooltip-arrow {\n top: 1px !important;\n border-bottom-color: #F44336 !important; }\n\n.u-editable-table-tp .tooltip-inner {\n border-color: #F44336 !important; }\n\n.u-dropdown ul.u-table-inline-op-dropdowm li.u-dropdown-menu-item {\n padding: 0 20px 0 10px;\n height: 30px;\n line-height: 30px; }\n .u-dropdown ul.u-table-inline-op-dropdowm li.u-dropdown-menu-item i.uf {\n font-size: 12px; }\n\n.selected {\n background: #FFF7E7; }\n\n.demo25 {\n height: 100%; }\n .demo25 .u-table-filter-column-filter-icon {\n right: 15px; }\n\n.opt-btns .u-button {\n margin: 0 4px;\n color: #fff;\n background: #505F79;\n border-color: #505F79; }\n .opt-btns .u-button:hover, .opt-btns .u-button:active {\n background: #344563;\n border-color: #505F79; }\n\n.demo04.u-table tr:nth-child(2n) {\n background: #f7f9fb; }\n\n.demo04.u-table tr.u-table-row-hover, .demo04 .u-table tr:hover {\n background: #ebecf0; }\n\n.demo22 .opt-btns {\n margin-bottom: 8px; }\n\n.demo32 .u-table-thead th {\n padding-top: 0px;\n padding-bottom: 0px; }\n\n.demo0501 .u-table .u-row-hover .opt-btns button, .demo0501 .u-table .u-row-hover .cancel-btns button {\n margin: 0; }\n .demo0501 .u-table .u-row-hover .opt-btns button:first-child, .demo0501 .u-table .u-row-hover .cancel-btns button:first-child {\n margin-right: 8px; }\n\n.demo0501 .u-table .u-table-row td {\n padding: 5px 8px; }\n .demo0501 .u-table .u-table-row td input {\n font-size: 12px;\n padding-left: 5px; }\n\n.demo0501 .u-table .u-table-row .u-form-control,\n.demo0501 .u-table .u-table-row .u-select-selection {\n height: 30px; }\n\n.demo0501 .u-table .editable-cell-text-wrapper {\n box-sizing: border-box;\n line-height: 20px;\n border-radius: 3px; }\n\n.demo0501 .u-table .required {\n margin-left: 10px;\n position: relative; }\n .demo0501 .u-table .required::before {\n content: \" \";\n border: 1px solid #F44336;\n width: 0;\n height: 12px;\n position: absolute;\n top: 9px;\n left: -8px; }\n .demo0501 .u-table .required span.u-input-group {\n display: block; }\n\n.demo0501 .u-table .verify-cell {\n padding-right: 25px !important; }\n\n.demo0501 .u-table .required-icon {\n position: absolute;\n top: 2px;\n color: #F44336;\n font-size: 20px; }\n\n.demo0501 .u-table .ref-input-wrap {\n width: 160px !important; }\n\n.u-editable-table-tp .tp-content {\n color: #F44336; }\n\n.u-editable-table .u-table .u-table-row td {\n padding: 5px 8px; }\n .u-editable-table .u-table .u-table-row td input {\n padding-left: 5px;\n font-size: 12px; }\n .u-editable-table .u-table .u-table-row td input.error {\n border-color: #F44336; }\n\n.u-editable-table .u-table .u-table-row .editable-cell {\n height: 30px; }\n\n.u-editable-table .u-table .u-table-row-hover .editable-cell-text-wrapper {\n line-height: 19px; }\n\n.u-editable-table .u-table .u-table-row .u-form-control,\n.u-editable-table .u-table .u-table-row .u-select-selection {\n height: 30px; }\n\n.u-editable-table .u-table .editable-cell-text-wrapper {\n box-sizing: border-box;\n line-height: 20px;\n border-radius: 3px; }\n\n.u-editable-table .u-table .editable-cell-input-wrapper {\n padding-right: 0; }\n .u-editable-table .u-table .editable-cell-input-wrapper .ref-input-wrap {\n width: auto !important;\n height: 30px; }\n .u-editable-table .u-table .editable-cell-input-wrapper .ref-input-wrap .u-input-group {\n display: inline-block; }\n\n.u-editable-table .u-table .verify-cell {\n padding-right: 25px !important; }\n\n.u-editable-table .u-table .require {\n position: absolute;\n top: 2px;\n color: #F44336;\n font-size: 20px; }\n\n.u-editable-table-tp .tp-content {\n color: #F44336; }\n\n.demo0503-m-b.u-modal .u-modal-body {\n padding: 16px 0;\n background: #f7f9fb; }\n\n.demo0503-m-b .u-form-group {\n overflow: hidden; }\n\n.demo0503-m-b .u-form-control {\n font-size: 12px; }\n\n.demo0503-m-b .editable-cell {\n display: block;\n float: left;\n width: 265px;\n padding-right: 25px; }\n\n.demo0503-m-b .ref-input-wrap {\n width: 240px !important; }\n\n.demo0503-m-b .u-label {\n display: block;\n float: left;\n text-align: right;\n width: 110px;\n box-sizing: border-box;\n padding-right: 10px;\n font-size: 12px;\n height: 32px;\n line-height: 32px; }\n .demo0503-m-b .u-label .mast {\n padding: 0;\n color: red; }\n\n.demo0503-m-b .required-icon {\n position: absolute;\n top: 2px;\n color: #F44336;\n font-size: 20px; }\n\n.u-editable-table-tp {\n z-index: 9999 !important; }\n .u-editable-table-tp .tp-content {\n color: #F44336; }\n\n.ref-core-button .u-button:first-child {\n margin-right: 8px; }\n\n.demo0505 .toolbar-btns {\n margin-bottom: 8px; }\n .demo0505 .toolbar-btns .u-button:first-child {\n margin-right: 8px; }\n\n.demo0505 .u-table .u-row-select {\n background-color: #FFF7E7; }\n\n.demo0505 .u-table .u-table-row td {\n padding: 5px 8px; }\n .demo0505 .u-table .u-table-row td input {\n font-size: 12px;\n padding-left: 5px; }\n\n.demo0505 .u-table .u-table-row .u-form-control,\n.demo0505 .u-table .u-table-row .u-select-selection {\n height: 30px; }\n\n.demo0505 .u-table .editable-cell-text-wrapper {\n box-sizing: border-box;\n line-height: 20px;\n border-radius: 3px; }\n\n.demo0505 .u-table .required {\n margin-left: 10px;\n position: relative; }\n .demo0505 .u-table .required::before {\n content: \" \";\n border: 1px solid #F44336;\n width: 0;\n height: 12px;\n position: absolute;\n top: 9px;\n left: -8px; }\n .demo0505 .u-table .required span.u-input-group {\n display: block; }\n\n.demo0505 .u-table .verify-cell {\n padding-right: 25px !important; }\n\n.demo0505 .u-table .edited::after {\n content: \" \";\n position: absolute;\n z-index: 999;\n top: 0;\n left: 0;\n border-width: 5px;\n border-style: solid;\n border-color: #f44336 transparent transparent #f44336; }\n\n.demo0505 .u-table .required-icon {\n position: absolute;\n top: 2px;\n color: #F44336;\n font-size: 20px; }\n\n.demo0505 .u-table .ref-input-wrap {\n width: 160px !important; }\n\n.u-editable-table-tp .tp-content {\n color: #F44336; }\n\nth .drop-menu .uf {\n font-size: 12px;\n visibility: hidden;\n margin-left: 15px; }\n\nth:hover .uf {\n visibility: visible; }\n\n.expanded-table .expand-icon-con .uf {\n font-size: 12px; }\n\n\n.demo8 .u-table {\n margin-bottom: 11px; }\n\n.demo8 .u-pagination {\n display: flex;\n align-items: center;\n justify-content: center; }\n","\n\n// $performance_font: 'Helvetica', 'Arial', sans-serif !default;\n\n@import \"minxin-colors\";\n\n\n\n@function strip-units($number) {\n @return $number / ($number * 0 + 1);\n}\n$unit: 10px !default;\n// IMAGES\n$image_path: '/images' !default;\n\n\n\n//默认颜色\n$trim-color-classes: false !default;\n\n@import \"minxin-themeColors\";\n\n//对比色\n$color-primary-contrast: $color-dark-contrast !default;\n$color-accent-contrast: $color-dark-contrast !default;\n//字体颜色\n$color-text: $palette-grey-900 !default;\n\n//不明所以 $primary-color: unquote(\"rgba(#{$palette-grey-500}, 0.20)\") !default;\n\n// -- Fonts 字体大小权重预定义\n$preferred-font: 'Open Sans','Helvetica Neue',Arial,'Hiragino Sans GB','Microsoft YaHei',sans-serif !default;\n$font-size: 1.6 * $unit !default;\n$font-size-tiny: 1.2 * $unit !default;\n$font-size-small: 1.4 * $unit !default;\n$font-size-normal: $font-size !default;\n$font-size-big: 1.8 * $unit !default;\n$font-size-base: 12px !default;\n$font-weight-thin: 300 !default;\n$font-weight-normal: 400 !default;\n$font-weight-semi-bold: 500 !default;\n$font-weight-bold: 700 !default;\n$font-color:unquote(\"rgb(#{$palette-u-gray-800})\") !default;\n// 白色背景下的文字颜色\n$font-color-base: #212121 !default;\n\n$font-weight-override: false;\n$font-weight-light: 300;\n$font-weight-normal: 400;\n$font-weight-medium: 500;\n$font-weight-bold: 700;\n$font-weight-base: $font-weight-normal;\n\n\n\n\n$gray-base: unquote(\"rgb(#{$palette-grey-900})\") !default;\n$gray-darkest: unquote(\"rgb(#{$palette-grey-800})\") !default;\n$gray-darker: unquote(\"rgb(#{$palette-grey-700})\") !default;\n$gray-dark: unquote(\"rgb(#{$palette-grey-600})\") !default;\n$gray: unquote(\"rgb(#{$palette-grey-500})\") !default;\n$gray-light: unquote(\"rgb(#{$palette-grey-400})\") !default;\n$gray-lighter: unquote(\"rgb(#{$palette-grey-300})\") !default;\n$gray-lightest:unquote(\"rgb(#{$palette-grey-200})\") !default;\n$inverse: unquote(\"rgb(#{$color-white})\") !default;\n// $border-color-base: $gray-lighter;\n$border-color-base: unquote(\"rgb(#{$border-color})\") !default;\n$line-height-base: 1.57142857;\n\n// 边框圆角\n$border-radius-base: $border-radius;\n\n// 阴影\n\n$shadow-key-umbra-opacity: 0.2 !default;\n$shadow-key-penumbra-opacity: 0.14 !default;\n$shadow-ambient-shadow-opacity: 0.12 !default;\n\n$shadow-base: 0 1px 5px $gray-lighter;\n\n\n\n//-- Indexes\n$z-index-highest: 300;\n$z-index-higher: 200;\n$z-index-high: 100;\n$z-index-normal: 1;\n$z-index-low: -100;\n$z-index-lower: -200;\n\n$zindex-modal: 1700;\n$zindex-modal-background: 1600;\n$zIndex-notification: 1560;\n$zIndex-message: 1550;\n$zIndex-popconfirm: 1540;\n$zIndex-popover: 1540;\n$zIndex-tooltip: 1530;\n$zIndex-alert: 1510;\n$zindex-navbar-fixed: 1500;\n$zindex-menubar: 1400;\n$zindex-overlay: 1300;\n$zindex-dropdown: 1200;\n$zindex-navbar: 1200;\n$zindex-header: 1100;\n$zindex-footer: 1000;\n$zindex-backtop:2000;\n\n// 文本字体\n\n//todo\n$text-color-primary: unquote(\"rgba(#{$color-black}, 0.87)\") !default;\n$text-link-color: unquote(\"rgb(#{$color-accent})\") !default;\n\n$target-elements-directly: true !default;\n\n\n$global-selected-color: unquote(\"rgb(#{$palette-blue-100})\") !default;\n\n\n// 控件\n$cursor-disabled: not-allowed;\n\n\n$title-color: $gray-darkest;\n//todo\n$subtitle-color: $gray-darker;\n$text-color: $gray-dark;\n\n$prompt-color: $gray;\n//全局不同状态颜色\n//todo\n$active-color-base: unquote(\"rgb(#{$palette-blue-800})\") !default;\n$normal-color-base: unquote(\"rgb(#{$palette-blue-600})\") !default;\n$hover-color-base: unquote(\"rgb(#{$palette-blue-400})\") !default;\n\n$bg-color-base: $gray-lightest;\n\n//disable颜色\n$disabled-color-base: #909090;\n$disabled-border-color: $gray-lighter;\n$disabled-bg-color: $gray-lightest;\n\n// 全局链接颜色\n$link-color: $normal-color-base;\n$link-hover-color: $hover-color-base;\n$link-active-color: $active-color-base;\n\n// 品牌色\n$brand-default: $gray-lighter;\n$brand-default-hover: $gray-lightest;\n$brand-default-active: $gray-light;\n// $brand-default: unquote(\"rgb(#{$color-primary})\");\n// $brand-default-hover: unquote(\"rgb(#{$color-primary-light})\");\n// $brand-default-active: unquote(\"rgb(#{$color-primary-dark})\");\n\n$brand-primary : unquote(\"rgb(#{$primary-color})\") !default;\n$brand-primary-hover: unquote(\"rgb(#{$primary-color-light})\") !default;\n$brand-primary-active: unquote(\"rgb(#{$primary-color-dark})\") !default;\n\n$brand-secondary : unquote(\"rgb(#{$secondary-color})\") !default;\n$brand-secondary-hover: unquote(\"rgb(#{$secondary-color-light})\") !default;\n$brand-secondary-active: unquote(\"rgb(#{$secondary-color-dark})\") !default;\n\n$brand-success: unquote(\"rgb(#{$palette-green-500})\") !default;\n$brand-success-hover: unquote(\"rgb(#{$palette-green-300})\") !default;\n$brand-success-active: unquote(\"rgb(#{$palette-green-700})\") !default;\n\n$brand-info: unquote(\"rgb(#{$palette-cyan-500})\") !default;\n$brand-info-hover: unquote(\"rgb(#{$palette-cyan-300})\") !default;\n$brand-info-active: unquote(\"rgb(#{$palette-cyan-700})\") !default;\n\n$brand-warning: unquote(\"rgb(#{$palette-orange-500})\") !default;\n$brand-warning-hover: unquote(\"rgb(#{$palette-orange-300})\") !default;\n$brand-warning-active: unquote(\"rgb(#{$palette-orange-700})\") !default;\n\n\n$brand-news: unquote(\"rgb(#{$palette-blue-500})\") !default;\n$brand-news-hover: unquote(\"rgb(#{$palette-blue-300})\") !default;\n$brand-news-active: unquote(\"rgb(#{$palette-blue-700})\") !default;\n\n$brand-danger: unquote(\"rgb(#{$palette-red-500})\") !default;\n$brand-danger-hover: unquote(\"rgb(#{$palette-red-300})\") !default;\n$brand-danger-active: unquote(\"rgb(#{$palette-red-700})\") !default;\n\n$brand-dark: $gray-darker;\n$brand-dark-hover: $gray-dark;\n$brand-dark-active: $gray-darkest;\n\n$brand-light : unquote(\"rgb(#{$color-dark-contrast})\") !default;\n$brand-light-hover: unquote(\"rgb(#{$palette-grey-200})\") !default;\n$brand-light-active: unquote(\"rgb(#{$palette-grey-400})\") !default;\n\n$brand-light-primary : unquote(\"rgb(#{$palette-blue-50})\") !default;\n$brand-light-success: unquote(\"rgb(#{$palette-green-50})\") !default;\n$brand-light-info: unquote(\"rgb(#{$palette-cyan-50})\") !default;\n$brand-light-warning: unquote(\"rgb(#{$palette-orange-50})\") !default;\n$brand-light-news: unquote(\"rgb(#{$palette-blue-50})\") !default;\n$brand-light-danger: unquote(\"rgb(#{$palette-red-50})\") !default;\n\n//不同背景下对应的文字颜色\n\n$color-news: unquote(\"rgb(#{$palette-blue-500})\") !default;\n$color-success: unquote(\"rgb(#{$palette-green-500})\") !default;\n$color-info: unquote(\"rgb(#{$palette-cyan-500})\") !default;\n$color-warning: unquote(\"rgb(#{$palette-orange-500})\") !default;\n$color-danger: unquote(\"rgb(#{$palette-red-500})\") !default;\n$color-light: $gray-darker !default;\n\n//redius\n\n$default-border-radius: $border-radius;\n\n// hover时的背景色,包括select、dropdown、table、datepicker、tree、menu等组件\n$hover-bg-color-base: unquote(\"rgb(#{$item-hover-bg-color-base})\") !default;\n// // selected背景色,包括:select、menu等\n$selected-bg-color-base: unquote(\"rgb(#{$item-selected-bg-color-base})\") !default;\n\n// UButton\n\n// Button 基础背景色.\n// 默认按钮()\n$button-default-color: unquote(\"rgb(#{$default-color})\");\n$button-default-color-IE8: unquote(\"rgb(#{$default-color})\");\n\n// 边框按钮(shape:'border')\n$button-border-bg-color: unquote(\"rgb(#{$color-dark-contrast})\");\n\n// Button 不同状态下的背景色 :hover、active、focus状态.\n$button-hover-color: unquote(\"rgb(#{$default-color-light})\");\n$button-active-color: unquote(\"rgb(#{$default-color-dark})\");\n$button-focus-color: unquote(\"rgb(#{$default-color-light})\");\n\n// Button 配置不同colors属性时的背景色.\n$button-primary-color: $brand-primary;\n$button-primary-active-color: $brand-primary-active;\n$button-primary-hover-color: $brand-primary-hover;\n$button-secondary-color: $brand-secondary;\n$button-secondary-active-color: $brand-secondary-active;\n$button-secondary-hover-color: $brand-secondary-hover;\n$button-success-color: $brand-success;\n$button-success-active-color: $brand-success-active;\n$button-success-hover-color: $brand-success-hover;\n$button-info-color: $brand-info;\n$button-info-active-color: $brand-info-active;\n$button-info-hover-color: $brand-info-hover;\n$button-warning-color: $brand-warning;\n$button-warning-active-color: $brand-warning-active;\n$button-warning-hover-color: $brand-warning-hover;\n$button-danger-color: $brand-danger;\n$button-danger-active-color: $brand-danger-active;\n$button-danger-hover-color: $brand-danger-hover;\n$button-dark-color: $brand-dark;\n$button-dark-active-color: $brand-dark-active;\n$button-dark-hover-color: $brand-dark-hover;\n$button-light-color: $brand-light;\n$button-light-active-color: $brand-light-active;\n$button-light-hover-color: $brand-light-hover;\n\n// Button 文字颜色.\n// 主按钮(colors:'primary')\n$button-primary-text-color: $color-primary-contrast !default;\n$button-text-color: $button-primary-text-color;\n// 次按钮(colors:'secondary')\n$button-second-text-color: unquote(\"rgb(#{$button-secondary-text-color})\") !default;\n// 默认按钮()\n$button-default-text-color: unquote(\"rgb(#{$palette-grey-900})\") !default;\n// 边框按钮(shape:'border')\n// $button-border-text-color: unquote(\"rgb(#{$primary-color})\") !default;\n\n// Button 边框样式及颜色.\n$button-border-style: unquote(\"solid\") !default;\n$button-border-color: $border-color-base;\n$button-default-border-color: $button-default-color !default;\n\n// Button 不同状态下的边框颜色 :hover、active、focus状态.\n$button-hover-border-color: $brand-default-hover;\n$button-active-border-color: $brand-default-active;\n$button-focus-border-color: $brand-default-active;\n\n// FAB colors and sizes.\n$button-fab-color-alt: unquote(\"rgb(#{$color-accent})\") !default;\n$button-fab-hover-color-alt: unquote(\"rgb(#{$color-accent-light})\") !default;\n$button-fab-active-color-alt: unquote(\"rgb(#{$color-accent})\") !default;\n$button-fab-text-color-alt: unquote(\"rgb(#{$color-accent-contrast})\") !default;\n$button-fab-ripple-color-alt: unquote(\"rgb(#{$color-accent-contrast})\") !default;\n\n// Icon button colors and sizes.\n$button-icon-color: unquote(\"rgb(#{$palette-grey-700})\") !default;\n$button-icon-focus-color: $button-focus-color !default;\n\n// Button 最小宽度、高度、内边距、外边距、行高、边框粗细、圆角.\n$button-min-width: 72/10 * $unit !default;\n$button-height: 36/10 * $unit !default;\n$button-padding: 4/10* $unit 13/10 * $unit !default;\n$button-padding-IE8: 4px 13px !default;\n$button-top-padding: 1310 * $unit !default;\n$button-left-padding: 6/10* $unit !default;\n$button-line-height:1.57142857;\n$button-margin: 4/10 * $unit !default;\n$button-border-radius: 3/10 * $unit !default;\n$button-border-width: 1/10 * $unit !default;\n\n$button-fab-size: 38/10 * $unit !default;\n$button-fab-size-mini: 30/10 * $unit !default;\n$button-fab-font-size: 14/10 * $unit !default;\n\n$button-icon-size: 32/10 * $unit !default;\n$button-icon-size-mini: 13/10 * $unit !default;\n\n$button-raised-font-size: 14/10 * $unit !default;\n\n// Button 大按钮\n$button-padding-y-lg:8px;\n$button-padding-x-lg:15px;\n$font-size-lg:1.4 * $unit;\n\n\n// Button 特大型按钮\n$button-padding-y-xg:10.5px;\n$button-padding-x-xg:18px;\n$font-size-xg:1.6 * $unit;\n\n\n// Button 小型按钮\n$button-padding-y-sm:3px;\n$button-padding-x-sm:5px;\n$font-size-sm:1.2 * $unit;\n\n\n\n// UText\n\n\n$form-control-border-radius: $border-radius-base;\n$form-control-default-font-size: 14px;\n$form-control-lg-font-size: 14px;\n$form-control-sm-font-size: 12px;\n$form-control-default-height: 32px;\n$form-control-lg-height: 40px;\n$form-control-sm-height: 26px;\n$form-control-color: #424242;\n$form-control-bg-color: #fff;\n$form-control-border-color: $border-color-base;\n$form-control-disable-bg-color: #F7F9FB;\n$form-control-disable-color: $disabled-color-base;\n$form-control-disable-border-color: #DFE1E6;\n\n$input-text-background-color: transparent !default;\n$input-text-label-color: unquote(\"rgba(#{$color-black}, 0.26)\") !default;\n$input-text-bottom-border-color: unquote(\"rgba(#{$color-black}, 0.12)\") !default;\n$input-text-bottom-border-color-IE8: unquote(\"rgb(#{$color-black})\") !default;\n$input-text-highlight-color: unquote(\"rgb(#{$primary-color})\") !default;\n$input-text-disabled-color: $input-text-bottom-border-color !default;\n$input-text-disabled-text-color: $input-text-label-color !default;\n$input-text-error-color: unquote(\"rgb(222, 50, 38)\") !default;\n$input-text-must-color:unquote(\"rgb(#{$palette-red-A700})\") !default;\n\n\n$input-text-font-size: 14px !default;\n$input-text-width: 100% !default;\n$input-text-padding: 4px !default;\n$input-text-vertical-spacing: 20px !default;\n\n$input-text-button-size: 32px !default;\n$input-text-floating-label-fontsize: 12px !default;\n$input-text-expandable-icon-top: 16px !default;\n$input-text-height:36px !default;\n$input-text-normal-width:360px !default;\n$input-text-short-width:180px !default;\n$input-text-normal-border-color:unquote(\"rgb(#{$palette-u-gray-400})\") !default;\n$input-text-color:unquote(\"rgb(#{$palette-u-gray-A200})\") !default;\n$input-text-focus-border-color:unquote(\"rgb(#{$palette-u-blue-400})\") !default;\n$input-lable-color:unquote(\"rgb(#{$palette-u-gray-900})\") !default;\n\n\n/* FormGroup */\n\n$error-input-border:$brand-danger;\n$warning-input-border:$brand-warning;\n$success-input-border:$brand-success;\n$success-addon-bg: $brand-light-success;\n$warning-addon-bg: $brand-light-warning;\n$error-addon-bg: $brand-light-danger;\n$form-group-margin-top: 15px;\n$form-group-margin-bottom: 15px;\n\n/* Navlayout */\n\n$layout-nav-color: unquote(\"rgb(#{$palette-grey-100})\") !default;\n\n// Drawer\n$layout-drawer-bg-color: unquote(\"rgb(#{$palette-grey-50})\") !default;\n$layout-drawer-border-color: unquote(\"rgb(#{$palette-grey-300})\") !default;\n$layout-text-color: unquote(\"rgb(#{$palette-grey-800})\") !default;\n$layout-drawer-navigation-color: #757575 !default;\n$layout-drawer-navigation-link-active-background: unquote(\"rgb(#{$palette-grey-200})\") !default;\n$layout-drawer-navigation-link-active-color: $layout-text-color !default;\n\n// Header\n$layout-header-bg-color: unquote(\"rgb(#{$primary-color})\") !default;\n$layout-header-text-color: unquote(\"rgb(#{$color-primary-contrast})\") !default;\n$layout-header-nav-hover-color: unquote(\"rgba(#{$palette-grey-700}, 0.6)\") !default;\n$layout-header-tab-text-color: unquote(\"rgba(#{$color-primary-contrast}, 0.6)\") !default;\n\n// Tabs\n$layout-header-tab-highlight: unquote(\"rgb(#{$color-accent})\") !default;\n\n$layout-nav-link-font-size: 13px !default;\n\n$layout-drawer-narrow: 240px !default;\n$layout-drawer-wide: 456px !default;\n$layout-drawer-width: $layout-drawer-narrow !default;\n\n$layout-header-icon-size: 32px !default;\n$layout-screen-size-threshold: 1024px !default;\n$layout-header-icon-margin: 24px !default;\n$layout-drawer-button-mobile-size: 44px !default;\n$layout-drawer-button-desktop-size: 34px !default;\n$layout-drawer-button-desktop-margin-top: 5px !default;\n$layout-drawer-button-mobile-margin-top: 10px !default;\n\n$layout-header-mobile-row-height: 56px !default;\n$layout-mobile-header-height: $layout-header-mobile-row-height;\n$layout-header-desktop-row-height: 44px !default;\n$layout-desktop-header-height: $layout-header-desktop-row-height;\n\n$layout-header-desktop-baseline: 80px !default;\n$layout-header-mobile-baseline: 72px !default;\n$layout-header-mobile-indent: 16px !default;\n$layout-header-desktop-indent: 40px !default;\n\n$layout-tab-font-size: 14px !default;\n$layout-tab-bar-height: 48px !default;\n$layout-tab-mobile-padding: 12px !default;\n$layout-tab-desktop-padding: 24px !default;\n$layout-tab-highlight-thickness: 2px !default;\n\n// gridlayout\n\n// Extra small screen / phone\n//$screen-xs: 480px;\n\n$screen-xs-min: 480px;\n// Deprecated `@screen-phone` as of v3.0.1\n//@screen-phone: @screen-xs-min;\n\n// Small screen / tablet\n// Deprecated `@screen-sm` as of v3.0.1\n//@screen-sm: 768px;\n$screen-sm-min: 768px;\n// Deprecated `@screen-tablet` as of v3.0.1\n//@screen-tablet: @screen-sm-min;\n\n// Medium screen / desktop\n// Deprecated `@screen-md` as of v3.0.1\n//@screen-md: 992px;\n$screen-md-min: 992px;\n// Deprecated `@screen-desktop` as of v3.0.1\n//@screen-desktop: @screen-md-min;\n\n// Large screen / wide desktop\n// Deprecated `@screen-lg` as of v3.0.1\n//@screen-lg: 1200px;\n$screen-lg-min: 1200px;\n// Deprecated `@screen-lg-desktop` as of v3.0.1\n//@screen-lg-desktop: @screen-lg-min;\n$screen-xs-max: ($screen-sm-min - 1 );\n\n$screen-sm-max: ($screen-sm-min - 1 );\n\n$screen-md-max: ($screen-lg-min - 1 );\n\n\n\n\n// Number of columns in the grid.\n$grid-columns: 12;\n// Padding between columns. Gets divided in half for the left and right.\n$grid-gutter-width: 30px;\n// Navbar collapse\n// Point at which the navbar becomes uncollapsed.\n$grid-float-breakpoint: 768px;\n// Point at which the navbar begins collapsing.\n$grid-float-breakpoint-max: ($grid-float-breakpoint - 1);\n\n\n// Small screen / tablet\n$container-tablet: (720px + $grid-gutter-width);\n// For `@screen-sm-min` and up.\n$container-sm: $container-tablet;\n\n// Medium screen / desktop\n$container-desktop: (940px + $grid-gutter-width);\n// For `@screen-md-min` and up.\n$container-md: $container-desktop;\n\n// Large screen / wide desktop\n$container-large-desktop: (1140px + $grid-gutter-width);\n// For `@screen-lg-min` and up.\n$container-lg: $container-large-desktop;\n\n\n\n// menu\n\n$default-dropdown-bg-color: unquote(\"rgb(#{$color-white})\") !default;\n$menu-expand-duration: 0.3s !default;\n$menu-fade-duration: 0.2s !default;\n\n// Default Item Colors\n$default-item-text-color: unquote(\"rgba(#{$color-black}, 0.87)\") !default;\n$default-item-text-color-IE8: unquote(\"rgb(#{$color-black})\") !default;\n$default-item-outline-color: unquote(\"rgb(#{$palette-u-blue-400})\") !default;\n$default-item-hover-bg-color: unquote(\"rgb(#{$palette-u-blue-100})\") !default;\n$default-item-focus-bg-color: unquote(\"rgb(#{$palette-u-blue-200})\") !default;\n$default-item-active-bg-color: unquote(\"rgb(#{$palette-u-blue-200})\") !default;\n$default-item-divider-color: unquote(\"rgba(#{$color-black}, 0.12)\") !default;\n\n// Disabled Button Colors\n$disabled-item-text-color: unquote(\"rgb(#{$palette-grey-400})\") !default;\n\n// Tile\n$tile-width: 100%;\n\n$tile-default-border-color: #e9e9e9;\n$tile-default-hover-shadow-color: rgba(0, 0, 0, 0.2);\n\n$tile-primary-border-color: $button-primary-color;\n$tile-primary-hover-shadow-color: $button-primary-hover-color;\n\n$tile-danger-border-color: $button-danger-color;\n$tile-danger-hover-shadow-color: $button-danger-hover-color;\n\n$tile-warning-border-color: $button-warning-color;\n$tile-warning-hover-shadow-color: $button-warning-hover-color;\n\n$tile-success-border-color: $button-success-color;\n$tile-success-hover-shadow-color: $button-success-hover-color;\n\n$tile-info-border-color: $button-info-color;\n$tile-info-hover-shadow-color: $button-info-hover-color;\n\n// Alert\n$alert-news-bg: $brand-light-news;\n$alert-success-bg: $brand-light-success;\n$alert-info-bg: $brand-light-info;\n$alert-warning-bg: $brand-light-warning;\n$alert-danger-bg: $brand-light-danger;\n\n\n$alert-dark-news-bg: $brand-news;\n$alert-dark-success-bg: $brand-success;\n$alert-dark-info-bg: $brand-info;\n$alert-dark-warning-bg: $brand-warning;\n$alert-dark-danger-bg: $brand-danger;\n\n$alert-news-color: $color-news;\n$alert-success-color: $color-success;\n$alert-info-color: $color-info;\n$alert-warning-color: $color-warning;\n$alert-danger-color: $color-danger;\n\n$timeline-primary-color: $brand-primary;\n$timeline-news-color: $color-news;\n$timeline-success-color: $color-success;\n$timeline-info-color: $color-info;\n$timeline-warning-color: $color-warning;\n$timeline-danger-color: $color-danger;\n\n$alert-padding:10px;\n$alert-font-size:12px;\n$alert-border-radius: $border-radius;\n$alert-text-padding-left: 15px;\n$alert-text-padding-right: 15px;\n$alert-close-font-size: 21px;\n$alert-close-opacity: .2;\n$alert-close-font-weight: 700;\n\n//Checkbox\n\n$checkbox-color: unquote(\"rgb(#{$primary-color})\") !default;\n$checkbox-off-color: unquote(\"rgb(#{$palette-u-gray-600})\") !default;\n$checkbox-off-color-IE8: unquote(\"rgb(#{$palette-u-gray-600})\") !default;\n$checkbox-disabled-color: unquote(\"rgb(#{$palette-u-gray-600})\") !default;\n$checkbox-focus-color: unquote(\"rgba(#{$palette-u-blue-500}, 0.26)\") !default;\n$checkbox-image-path: $image_path;\n\n$checkbox-label-font-size: 13px !default;\n$checkbox-label-height: 24px !default;\n$checkbox-button-size: 16px !default;\n$checkbox-inner-margin: 2px !default;\n$checkbox-padding: 8px !default;\n$checkbox-top-offset:\n ($checkbox-label-height - $checkbox-button-size - $checkbox-inner-margin) / 2;\n$checkbox-ripple-size: $checkbox-label-height * 1.5;\n\n$checkbox-primary-bg: $brand-primary;\n$checkbox-success-bg: $brand-success;\n$checkbox-info-bg: $brand-info;\n$checkbox-warning-bg: $brand-warning;\n$checkbox-danger-bg: $brand-danger;\n$checkbox-dark-bg: $brand-dark;\n\n$progress-primary-bg: $brand-primary;\n$progress-success-bg: $brand-success;\n$progress-info-bg: $brand-info;\n$progress-warning-bg: $brand-warning;\n$progress-danger-bg: $brand-danger;\n$progress-dark-bg: $brand-dark;\n\n$primary-color-opacity:unquote(\"rgba(#{$primary-color}, 0.7)\") !default;\n$color-success-opacity:unquote(\"rgba(#{$palette-green-500}, 0.7)\") !default;\n$color-info-opacity:unquote(\"rgba(#{$palette-cyan-500}, 0.7)\") !default;\n$color-warning-opacity:unquote(\"rgba(#{$palette-orange-500}, 0.7)\") !default;\n$color-danger-opacity:unquote(\"rgba(#{$palette-red-500}, 0.7)\") !default;\n$color-dark-opacity:unquote(\"rgba(#{$palette-grey-700}, 0.7)\") !default;\n\n\n$progress-sm-height: 10px;\n$progress-xs-height: 5px;\n$progress-xs-width: 170px;\n$progress-default-height: 20px;\n$progress-sm-lable-font-size: 10px;\n$progress-sm-lable-line-height: 10px;\n$progress-xs-lable-line-height: 8px;\n$progress-xs-lable-margin-left: 140px;\n$progress-xs-lable-font-size: 10px;\n$progress-xs-lable-color: #000;\n\n// Radio\n\n$radio-color: unquote(\"rgb(#{$primary-color})\") !default;\n$radio-off-color: unquote(\"rgb(#{$palette-u-gray-600})\") !default;\n$radio-off-color-IE8: unquote(\"rgb(#{$palette-u-gray-600})\") !default;\n$radio-disabled-color: $disabled-color-base !default;\n\n$radio-label-font-size: 13px !default;\n$radio-label-height: 32px !default;\n$radio-button-size: 16px !default;\n$radio-inner-margin: $radio-button-size / 4;\n$radio-padding: 8px !default;\n$radio-top-offset: ($radio-label-height - $radio-button-size) / 2;\n$radio-ripple-size: 42px !default;\n\n$radio-primary-bg: $brand-primary;\n$radio-success-bg: $brand-success;\n$radio-info-bg: $brand-info;\n$radio-warning-bg: $brand-warning;\n$radio-danger-bg: $brand-danger;\n$radio-dark-bg: $brand-dark;\n\n$radio-disabled-bg: #f7f7f7;\n$radio-diabled-border-color: #d9d9d9;\n\n$radio-border-color: #d9d9d9;\n$radio-bg-color: #fff;\n$radio-color:$font-color-base;\n\n$radio-checked-bg-color: #fff;\n$radio-checked-color: $brand-primary;\n$radio-checked-border-color: $radio-checked-color;\n\n$radio-icon-height: 18px;\n$radio-icon-width: 18px;\n$radio-icon-checked-height: 8px;\n$radio-icon-checked-width: 8px;\n\n$radio-button-lg-height:42px;\n$radio-button-lg-line-height:26px;\n\n$radio-button-sm-height:22px;\n$radio-button-sm-line-height:20px;\n\n$radio-button-height: 28px;\n$radio-button-line-height: 26px;\n\n\n\n\n\n//loading\n\n$loading-color-1: unquote(\"rgb(#{$palette-blue-400})\") !default;\n$loading-color-2: unquote(\"rgb(#{$palette-red-500})\") !default;\n$loading-color-3: unquote(\"rgb(#{$palette-yellow-600})\") !default;\n$loading-color-4: unquote(\"rgb(#{$palette-green-500})\") !default;\n\n$loading-single-color: unquote(\"rgb(#{$primary-color})\") !default;\n\n$loading-size: 28px !default;\n$loading-stroke-width: 3px !default;\n\n// Amount of circle the arc takes up.\n$loading-arc-size: 270deg !default;\n// Time it takes to expand and contract arc.\n$loading-arc-time: 1333ms !default;\n// How much the start location of the arc should rotate each time.\n$loading-arc-start-rot: 216deg !default;\n\n$loading-duration: 360 * $loading-arc-time / (\n strip-units($loading-arc-start-rot + (360deg - $loading-arc-size)));\n\n// datetimepicker\n$timepicker-border-gap-color:#ccc;\n$timepicker-font-size:$font-size-base;\n\n$date-bg-color: unquote(\"rgb(#{$primary-color})\") !default;\n\n// message\n$snackbar-color: unquote(\"rgb(#{$color-white})\") !default;\n$snackbar-background-color: unquote(\"rgb(#{$primary-color})\") !default;\n$snackbar-color-cancel: unquote(\"rgb(#{$palette-red-500})\") !default;\n$snackbar-color-accept: unquote(\"rgb(#{$palette-green-500})\") !default;\n$snackbar-color-warning: unquote(\"rgb(#{$palette-lime-200})\") !default;\n\n// DATA TABLE\n\n$data-table-font-size: 13px !default;\n$data-table-header-font-size: 12px !default;\n$data-table-header-sort-icon-size: 16px !default;\n\n$data-table-header-color: rgba(#000, 0.54) !default;\n$data-table-header-sorted-color: rgba(#000, 0.87) !default;\n$data-table-divider-color: rgba(#000, 0.12) !default;\n$data-table-divider-color-IE8: rgb(0,0,0) !default;\n\n//$data-table-hover-color: #eeeeee !default;\n$data-table-hover-color: #E9F7FC !default;\n$data-table-selection-color: #C4EAF6 !default;\n\n$data-table-dividers: 1px solid $data-table-divider-color !default;\n$data-table-dividers-IE8: 1px solid $data-table-divider-color-IE8 !default;\n\n$data-table-row-height: 48px !default;\n$data-table-last-row-height: 56px !default;\n$data-table-header-height: 56px !default;\n\n$data-table-column-spacing: 36px !default;\n$data-table-column-padding: $data-table-column-spacing / 2;\n\n$data-table-card-header-height: 64px !default;\n$data-table-card-title-top: 20px !default;\n$data-table-card-padding: 24px !default;\n$data-table-button-padding-right: 16px !default;\n$data-table-cell-top: $data-table-card-padding / 2;\n\n// $line-height-computed: round(($font-size-small * $line-height-base));\n$line-height-computed: round((14px * $line-height-base));\n$table-bg: transparent;\n$table-cell-padding: 8px;\n$table-border-color: $border-color-base;\n$table-bg-hover: $bg-color-base;\n$table-bg-active: $table-bg-hover;\n$table-bg-accent: unquote(\"rgba(#{$palette-grey-200},.3)\") !default;\n\n\n\n\n// tooltip\n$tooltip-max-width: 200px;\n$tooltip-color: #fff;\n$tooltip-bg: #42526E;\n$tooltip-inverse-border-color: #d9d9d9;\n$tooltip-inverse-color: rgb(51,51,51);\n$tooltip-arrow-color: $tooltip-bg;\n$tooltip-opacity: 1;\n\n\n// 进度条\n$bar-height: 4px !default;\n$progress-main-color: unquote(\"rgb(#{$primary-color})\") !default;\n$progress-secondary-color: unquote(\"rgba(#{$color-primary-contrast}, 0.7)\") !default;\n$progress-fallback-buffer-color: unquote(\"rgba(#{$color-primary-contrast}, 0.9)\") !default;\n$progress-image-path: $image_path;\n$progress-buffer-bar-border:unquote(\"rgb(#{$palette-u-gray-600})\") !default;\n\n// Tabs\n$layout-header-tab-highlight: unquote(\"rgb(#{$color-accent})\") !default;\n\n\n\n$tab-highlight-color: unquote(\"rgb(#{$primary-color})\") !default;\n$tab-text-color: unquote(\"rgba(#{$color-black}, 0.54)\") !default;\n$tab-active-text-color: unquote(\"rgba(#{$color-black}, 0.87)\") !default;\n$tab-border-color: unquote(\"rgb(#{$palette-grey-300})\") !default;\n\n\n\n//CARD\n\n$card-width: 330px !default;\n$card-height: 200px !default;\n$card-font-size: 13px !default;\n$card-title-font-size: 24px !default;\n$card-subtitle-font-size: 10px !default;\n$card-horizontal-padding: 16px !default;\n$card-vertical-padding: 16px !default;\n\n$card-title-perspective-origin-x: 165px !default;\n$card-title-perspective-origin-y: 56px !default;\n\n$card-title-transform-origin-x: 165px !default;\n$card-title-transform-origin-y: 56px !default;\n\n$card-title-text-transform-origin-x: 149px !default;\n$card-title-text-transform-origin-y: 48px !default;\n\n$card-supporting-text-font-size: 1.4 * $unit !default;\n$card-supporting-text-line-height: 18px !default;\n\n$card-actions-font-size: 13px !default;\n\n$card-title-text-font-weight: 300 !default;\n$card-z-index: 1 !default;\n\n// Cover image\n$card-cover-image-height: 186px !default;\n$card-background-image-url: '' !default;\n\n\n\n$card-background-color: unquote(\"rgb(#{$color-white})\") !default;\n$card-text-color: unquote(\"rgb(#{$color-black})\") !default;\n$card-image-placeholder-color: unquote(\"rgb(#{$color-accent})\") !default;\n$card-supporting-text-text-color: unquote(\"rgba(#{$color-black}, 0.54)\") !default;\n$card-border-color: rgba(0,0,0,0.1) !default;\n$card-subtitle-color: unquote(\"rgba(#{$color-black}, 0.54)\") !default;\n\n\n$input-border:unquote(\"rgb(#{$palette-u-gray-500})\");\n$input-border-focus:unquote(\"rgb(#{$primary-color})\");\n$input-border-disabled:unquote(\"rgb(#{$palette-u-gray-100})\");\n$input-bg-disabled:unquote(\"rgb(#{$palette-u-gray-100})\");\n$input-color:unquote(\"rgb(#{$palette-u-gray-A100})\");\n$form-input-height:36px;\n$form-input-height-sm:28px;\n$form-input-padding-left:12px;\n$form-label-color:unquote(\"rgb(#{$palette-u-gray-900})\");\n$form-control-feedback-color:unquote(\"rgb(#{$palette-u-gray-700})\");\n$form-validate-error-color:unquote(\"rgb(#{$palette-u-red-600})\");\n\n\n// BADGE\n$badge-font-size: 12px !default;\n$badge-color: unquote(\"rgb(#{$color-accent-contrast})\") !default;\n$badge-color-inverse: unquote(\"rgb(#{$color-accent})\") !default;\n$badge-background: unquote(\"rgb(#{$color-accent})\") !default;\n$badge-background-inverse: unquote(\"rgba(#{$color-accent-contrast},0.2)\") !default;\n$badge-size : 22px !default;\n$badge-padding: 2px !default;\n$badge-overlap: 12px !default;\n\n$badge-primary-color:#FFFFFF;\n$badge-primary-bg:$brand-primary;\n\n$badge-success-color:#FFFFFF;\n$badge-success-bg: $brand-success;\n\n$badge-info-color:#FFFFFF;\n$badge-info-bg:$brand-info;\n\n$badge-warning-color:#FFFFFF;\n$badge-warning-bg:$brand-warning;\n\n$badge-danger-color:#FFFFFF;\n$badge-danger-bg:$brand-danger;\n\n$badge-dark-color:#FFFFFF;\n$badge-dark-bg:$brand-dark;\n\n$badge-font-size: 12px;\n$badge-font-dataicon-size: 10px;\n$badge-default-dataicon-fontcolor: #757575;\n$badge-default-dataicon-bgcolor: #fff;\n$badge-default-dataicon-bordercolor: $border-color-base;\n\n// labels\n$tag-padding: .25em .6em .25em;\n$tag-border-radius: 0.3em;\n$tag-bg: #eeeeee;\n$tag-round-border-radius: 1em;\n$tag-default-color: #757575;\n$tag-default-bg:#e0e0e0;\n$tag-lg-font-size: 16px;\n$tag-sm-font-size: 10px;\n$tag-sm-padding: .1em .5em .1em;\n$tag-default-hover-bg: $brand-default-hover;\n$tag-primary-hover-bg: $brand-primary-hover;\n$tag-success-hover-bg: $brand-success-hover;\n$tag-info-hover-bg: $brand-info-hover;\n$tag-warning-hover-bg: $brand-warning-hover;\n$tag-danger-hover-bg: $brand-danger-hover;\n$tag-dark-hover-bg: $brand-dark-hover;\n$tag-default-bg: $brand-default;\n$tag-primary-bg: $brand-primary;\n$tag-success-bg: $brand-success;\n$tag-info-bg: $brand-info;\n$tag-warning-bg: $brand-warning;\n$tag-danger-bg: $brand-danger;\n$tag-dark-bg: $brand-dark;\n$tag-default-hover-color:unquote(\"rgb(#{$palette-u-gray-500})\");\n\n\n// pagination\n$pagination-gap-hover-border:#7A869A;\n\n$pagination-link-padding: 7px 13px;\n$pagination-lg-font-size: 16px;\n$pagination-lg-padding-vertical: 9.5px;\n$pagination-lg-padding-horizontal: 15.5px;\n\n$pagination-small-font-size: 12px;\n$pagination-small-padding-vertical: 4px;\n$pagination-small-padding-horizontal: 9.5px;\n\n$pag-color: #666666;\n$pag-bg-color: #fff;\n$pag-border-color:#d7d7d7;\n$pag-hover-color: #666;\n$pag-hover-bg-color:$hover-bg-color-base;\n$pag-hover-border-color:#d7d7d7;\n$pag-active-color: #fff;\n$pag-active-bg-color:#7A869A;\n$pag-active-border-color:#7A869A;\n$pag-disabled-color: #777;\n$pag-disabled-bg-color:#fff;\n$pag-disabled-border-color:#ddd;\n\n$border-radius-base: $border-radius;\n$border-radius-large: 4px;\n$border-radius-small: 2px;\n\n$line-height-large: 1.3333333; // extra decimals for Win 8.1 Chrome\n$line-height-small: 1.5;\n// widget\n\n$widget-padding-left:30px;\n$widget-padding-top:10px;\n\n//tooltips\n\n$tooltip-default-bg: $brand-default;\n$tooltip-primary-bg: $brand-primary;\n$tooltip-success-bg: $brand-success;\n$tooltip-info-bg: $brand-info;\n$tooltip-warning-bg: $brand-warning;\n$tooltip-danger-bg: $brand-danger;\n$tooltip-dark-bg: $brand-dark;\n\n//menu Button\n\n$menu-default-bg: $brand-default;\n$menu-primary-bg: $brand-primary;\n$menu-success-bg: $brand-success;\n$menu-info-bg: $brand-info;\n$menu-warning-bg: $brand-warning;\n$menu-danger-bg: $brand-danger;\n$menu-dark-bg: $brand-dark;\n$menu-default-bg-hover: $brand-default-hover;\n$menu-primary-bg-hover: $brand-primary-hover;\n$menu-success-bg-hover: $brand-success-hover;\n$menu-info-bg-hover: $brand-info-hover;\n$menu-warning-bg-hover: $brand-warning-hover;\n$menu-danger-bg-hover: $brand-danger-hover;\n$menu-dark-bg-hover: $brand-dark-hover;\n\n\n// breadcrumbs\n\n$breadcrumb-padding-vertical: 8px;\n$breadcrumb-padding-horizontal: 10px;\n$breadcrumb-separator: \"/\\00a0\";\n$breadcrumb-bg: transparent;\n$breadcrumb-margin-bottom: 10px;\n\n$breadcrumb-color: $brand-primary;\n$breadcrumb-active-color: $text-color;\n\n$breadcrumb-icon-margin-right: 10px;\n$breadcrumb-arrow-separator: \"\\00bb\\00a0\";\n\n$breadcrumb-bg-color: #f5f5f5;\n$breadcrumb-active-color: #777;\n$breadcrumb-separate-color: #ccc;\n\n// list-group\n$list-group-media-heading-font-size : $font-size-small;//14px\n$list-group-link-disabled-color : $disabled-color-base;\n\n$list-group-link-disabled-bg : $gray-lightest;\n\n$list-group-active-color : $brand-primary;\n$list-group-link-active-color : unquote(\"rgb(#{$color-white})\") !default;\n$list-group-link-active-bg : $brand-primary;\n\n\n$list-group-item-icon-margin-right : 10px;\n\n$list-group-bg-inherit-item-border : rgba(0, 0, 0, 0.075);\n$list-group-bg-inherit-item-hover-bg : rgba(0, 0, 0, 0.075);\n\n\n$list-group-border-radius: $border-radius-base;\n\n\n\n$list-group-link-color: $text-color;\n$list-group-link-hover-color: $text-color;\n$list-group-link-heading-color: $title-color;\n\n$list-group-hover-bg: $bg-color-base;\n\n$list-group-disabled-bg: transparent;\n\n$list-group-disabled-color: $disabled-color-base;\n\n\n$list-group-disabled-text-color: $list-group-disabled-color;\n$list-group-active-bg: transparent;\n$list-group-active-border: $list-group-active-bg;\n// $list-group-active-text-color: lighten($list-group-active-color, 40%);\n$list-group-active-text-color: $list-group-active-color;\n\n$list-group-bg: #fff;\n$list-group-border: transparent;\n// $list-group-bordered-border : $border-color-base;\n// $list-group-bordered-active-color : $component-active-color;\n// $list-group-bordered-active-bg : $component-active-bg;\n// $list-group-bordered-active-border : $list-group-bordered-active-bg;\n\n// $list-group-gap-item-margin-bottom : 2px;\n\n//step\n$steps-margin-bottom: $line-height-computed;\n$step-padding-horizontal:20px;\n$step-padding-vertical: 12px;\n\n$step-vertical-padding-horizontal: 20px;\n$step-vertical-padding-vertical:18px;\n\n$step-color: $gray;\n$step-bg: $bg-color-base;\n$step-number-bg: $gray-lighter;\n$step-number-color: $inverse;\n\n$step-current-color: $inverse;\n$step-current-bg: $brand-primary;\n\n$step-done-color: $inverse;\n$step-done-bg:$brand-success;\n\n$step-error-color: $inverse;\n$step-error-bg: $brand-danger;\n\n$step-disabled-color:$gray-light;\n\n$step-font-size: inherit;\n$step-title-font-size: 20px;\n$step-icon-font-size:27px;\n$step-number-font-size:24px;\n$step-number-size: 40px;\n\n$step-lg-padding-horizontal:20px;\n$step-lg-padding-vertical:20px;\n$step-lg-font-size: 16px;\n$step-lg-title-font-size:22px;\n$step-lg-icon-font-size: 32px;\n$step-lg-number-font-size:28px;\n$step-lg-number-size:46px;\n\n$step-sm-font-size: 12px;\n$step-sm-title-font-size: 18px;\n$step-sm-icon-font-size: 24px;\n$step-sm-number-font-size: 24px;\n$step-sm-number-size: 30px;\n\n$step-xs-font-size: 10px;\n$step-xs-title-font-size: 16px;\n$step-xs-icon-font-size: 22px;\n$step-xs-number-font-size: 20px;\n$step-xs-number-size: 24px;\n\n// blog nav\n$blognav-active-color:unquote(\"rgb(#{$primary-color})\");\n// widget\n$widget-padding-left:30px;\n$widget-padding-top:10px;\n\n\n// couter 数据统计\n\n$counter-number-color: $gray-darkest;\n$counter-number-font-size: 20px;\n$counter-icon-font-size: $counter-number-font-size;\n\n$counter-lg-number-font-size: 40px;\n$counter-md-number-font-size: 30px;\n$counter-sm-number-font-size: 14px;\n\n$counter-lg-icon-font-size: $counter-lg-number-font-size;\n$counter-md-icon-font-size: $counter-md-number-font-size;\n$counter-sm-icon-font-size: $counter-sm-number-font-size;\n\n$counter-inverse-color: $inverse;\n\n\n// navbar\n\n\n$menu-active-color: #108ee9;\n$menu-border-active-color: #108ee9;\n$menu-selected-bg-color: #eaf8fe;\n$menu-group-titil-color: #999;\n$menu-group-title-padding-left: 32px;\n$menu-color: #666;\n$menu-border-color: #d9d9d9;\n\n$navbar-default-bg-color: #f8f8f8;\n$navbar-default-border-color: #e7e7e7;\n$navbar-default-color: #777;\n$navbar-default-hover-color: #333;\n$navbar-inverse-hover-color: #fff;\n$navbar-inverse-color: #9d9d9d;\n$navbar-inverse-bg-color: #222;\n$navbar-inverse-border-color: #080808;\n$navbar-border-radius: 4px;\n\n$navbar-side-container-border-color: #d9d9d9;\n$navbar-side-container-width: 242px;\n$navbar-side-container-border-shadow: #d9d9d9;\n\n// Basics of a navbar\n$navbar-height: 50px;\n$navbar-margin-bottom: $line-height-computed;\n$navbar-border-radius: $border-radius-base;\n$navbar-padding-horizontal: floor(($grid-gutter-width / 2));\n$navbar-padding-vertical: (($navbar-height - $line-height-computed) / 2);\n$navbar-collapse-max-height: 340px;\n\n$navbar-avatar-margin-horizontal: (($navbar-height - 32px) / 2);\n\n$navbar-brand-padding-horizontal: 20px;\n$navbar-brand-logo-height: 32px;\n\n$navbar-default-color: $text-color;\n$navbar-default-bg: $inverse;\n$navbar-default-border: $border-color-base;\n\n// Navbar links\n$navbar-default-link-color: $text-color;\n$navbar-default-link-hover-color: $gray-darker;\n$navbar-default-link-hover-bg: rgba(238,238,238, 30%);\n$navbar-default-link-active-color: $navbar-default-link-hover-color;\n$navbar-default-link-active-bg: rgba(238,238,238, 60%);\n$navbar-default-link-disabled-color: $disabled-color-base;\n$navbar-default-link-disabled-bg: transparent;\n\n// Navbar brand label\n$navbar-default-brand-color: $title-color;\n$navbar-default-brand-hover-color: $navbar-default-brand-color;\n$navbar-default-brand-hover-bg: none;\n\n// Navbar toggle\n$navbar-default-toggle-hover-bg: $navbar-default-link-hover-bg;\n$navbar-default-toggle-icon-bar-bg: $navbar-default-color;\n$navbar-default-toggle-border-color: transparent;\n\n\n// Inverted navbar\n// Reset inverted navbar basics\n$navbar-inverse-bg: $brand-primary;\n$navbar-inverse-border: rgba(0, 0, 0, .1);\n\n// Inverted navbar links\n$navbar-inverse-link-color: $inverse;\n$navbar-inverse-link-hover-color: $inverse;\n$navbar-inverse-link-hover-bg: rgba(0, 0, 0, .1);\n$navbar-inverse-link-active-color: $navbar-inverse-link-hover-color;\n$navbar-inverse-link-active-bg: $navbar-inverse-link-hover-bg;\n$navbar-inverse-link-disabled-color: $inverse;\n$navbar-inverse-link-disabled-bg: transparent;\n\n// Inverted navbar brand label\n$navbar-inverse-brand-color: $navbar-inverse-link-color;\n$navbar-inverse-brand-hover-color: $inverse;\n$navbar-inverse-brand-hover-bg: none;\n\n// Inverted navbar toggle\n$navbar-inverse-toggle-hover-bg: $navbar-inverse-link-hover-bg;\n$navbar-inverse-toggle-icon-bar-bg: $inverse;\n$navbar-inverse-toggle-border-color: transparent;\n\n//hamburger\n$hamburger-size: 17px;\n\n\n//panel\n$panel-header-padding : 10px 15px;\n$panel-footer-padding : 10px 15px;\n$panel-body-padding : 15px 15px;\n$panel-header-bg-color : #f5f5f5;\n$panel-footer-bg-color : #f5f5f5;\n$panel-bg-color : #fff;\n$panel-default-color : #757575;\n$panel-inner-border-color: #ddd;\n\n\n//modal\n$modal-header-padding : 15px;\n$modal-body-padding : 15px;\n$modal-footer-padding : 15px;\n$modal-content-bg-color: #fff;\n$modal-backdrop-bg: #000;\n$modal-backdrop-opacity: .6;\n$modal-header-border-color: transparent;\n$modal-footer-border-color: transparent;\n$modal-xlg: 976px;\n$modal-lg: 800px;\n$modal-sm: 400px;\n$modal-default: 600px;\n$modal-border-radius: $border-radius-base;\n\n//notification\n\n$zIndex-notification: $zIndex-notification;\n$notification-top: 30px;\n$notification-bottom: 30px;\n$notification-right: 30px;\n$notification-width: 300px;\n$notification-text-margin-right: 15px;\n$notice-padding: 15px;\n$notice-background: $gray-darkest;\n$notice-bottom: 15px;\n\n//message\n\n$message-font-size: 12px;\n\n$message-right: 30px;\n$message-width: 300px;\n$message-text-margin-right: 15px;\n$message-padding: 0;\n$message-content-padding: 15px;\n$message-background: $gray-darkest;\n\n//popconfirm\n\n$popconfirm-max-width: 300px;\n\n$popconfirm-dark-bg: $gray-darkest;\n$popconfirm-fallback-dark-border-color: $gray-darkest;\n$popconfirm-margin: 10px;\n$popconfirm-title-bg: #fff;\n$popconfirm-border-color:$border-color-base;\n$popconfirm-arrow-width: 10px;\n$popconfirm-arrow-color: $border-color-base;\n$popconfirm-arrow-outer-width: 0;\n$popconfirm-arrow-outer-color: $border-color-base;\n$popconfirm-border-right-color: $border-color-base;\n$popconfirm-fallback-border-color: #fff;\n\n//select\n\n$select-bg-color: #fff;\n$select-border-color: $border-color-base;\n$select-border-radius: $border-radius-base;\n$select-color: $font-color-base;\n$select-font-size: 12px;\n$select-dropdown-color: #666;\n$select-dropdown-bg-color: #fff;\n$select-dropdown-hover-bg: $hover-bg-color-base;\n$select-dropdown-selected-bg: $selected-bg-color-base;\n$select-dropdown-selected-color: rgb(134, 119, 119);\n$select-dropwdown-item-padding: 7px 16px;\n$select-disabled-color: $disabled-color-base;\n$select-disabled-bg: #f7f7f7;\n$select-disabled-border-color: #d9d9d9;\n//dropdown\n\n$dropdown-item-hover-bg-color: unquote(\"rgb(#{$palette-grey-100})\");\n$dropdown-item-divier-bg-color: $gray-lighter;\n$dropdown-border-color: $border-color-base;\n$dropdown-border-radius:3px;\n$dropdown-shadow: 0 1px 5px $dropdown-border-color;\n$dropdown-margin: 5px 0 0 0;\n$dropdown-menu-item-padding: 0px 16px 0 16px;\n$dropdown-menu-font-size: 12px;\n$dropdown-menu-item-height: 42px;\n$dropdown-menu-item-light-height: 42px;\n$dropdown-menu-title-font-size: 12px;\n$dropdown-menu-title-color: $disabled-color-base;\n$dropdown-menu-title-padding:8px 16px;\n$dropdown-menu-title-line-height: 1.5;\n\n//upload\n\n$upload-list-color: #108ee9;\n$upload-list-bg : #fff;\n$upload-list-hover-bg: #e7f4fd;\n$upload-list-error-color: #f50;\n$upload-thumbnail-height: 48px;\n$upload-thumbnail-width: 48px;\n$upload-thumbnail-img-height: 48px;\n$upload-thumbnail-img-width: 48px;\n\n//loading\n\n$loading-loadprimary: rgb(63, 81, 181);\n$loading-loadsuccess: #4caf50;\n$loading-loadwarn: rgb(255, 152, 0);\n$loading-lineanimating: (\n 1:line-scale 1s 0.1s infinite cubic-bezier(.2, .68, .18, 1.08),\n 2:line-scale 1s 0.2s infinite cubic-bezier(.2, .68, .18, 1.08),\n 3:line-scale 1s 0.3s infinite cubic-bezier(.2, .68, .18, 1.08),\n 4:line-scale 1s 0.4s infinite cubic-bezier(.2, .68, .18, 1.08),\n 5:line-scale 1s 0.5s infinite cubic-bezier(.2, .68, .18, 1.08)\n);\n$loading-linebackcolor: (\n 1: #F44336,\n 2: #7ED321,\n 3: #0084FF,\n 4: #FF9800,\n 5: #D0021B\n);\n$loading-back-width: 120px;\n$loading-back-height:110px;\n$loading-desc-font-size: 16px;\n$loading-desc-color: #cecece;\n$loading-rotate-bor:#c2c3c5;\n\n//两种加载的尺寸 width height\n$loading-rotate-sm-size: 25px;\n$loading-rotate-size:40px;\n$loading-rotate-lg-size:60px;\n\n$loading-line-sm-width: 4px;\n$loading-line-sm-height:35px;\n$loading-line-width:6px;\n$loading-line-height:50px;\n$loading-line-lg-width:8px;\n$loading-line-lg-height:90px ;\n\n//居中位置top left\n$loading-center-top:50%;\n$loading-center-left:50%;\n\n$loading-rotate-center-sm: -15px ;\n$loading-rotate-center:-22px;\n$loading-rotate-center-lg:-35px ;\n\n$loading-line-center-sm-top: -22px;\n$loading-line-center-sm-left:-20px;\n$loading-line-center-top:-30px;\n$loading-line-center-left:-25px;\n$loading-line-center-lg-top:-50px;\n$loading-line-center-lg-left:-30px;\n\n\n//switch\n\n\n//color\n$switch-border-color: $gray-lighter;\n$switch-back-color: $gray-lighter;\n$switch-checked-borColor: $brand-primary;\n$switch-checked-backColor: $brand-primary;\n\n// border-radius of different state switch\n$switch-border-radius: 20px;\n$switch-border-radius-after: 18px;\n\n// width height line-height of the three switches\n$switch-width: (default:44px, small:32px, large:60px);\n$switch-height: (default:22px, small:16px, large:30px);\n$switch-lineHeight: (default:20px, small:12px, large:12px);\n\n// style of u-switch-inner\n$switch-inner-fontSize: (default:12px, small:10px, large:18px);\n$switch-inner-left: (default:22px, small:16px, large:30px);\n$switch-inner-largeTop: 8px;\n\n// style of u-switch:active:after\n$switch-active-width: (default:24px, small:16px, large:32px);\n\n// style of u-switch:after\n$switch-after-widthHeight: 18px;\n$switch-after-widthHeight-sm: 14px;\n$switch-after-widthHeight-lg: 26px;\n$switch-after-top: 1px;\n$switch-after-top-sm: 0;\n$switch-after-top-lg: 1px;\n$switch-after-left: 0;\n$switch-after-left-sm: 0;\n$switch-after-left-lg: 0;\n\n// style of u-switch.is-checked\n$switch-checked-innerLeft: (default:8px, small:4px, large:8px);\n$switch-checked-afterLeft: (default:24px, small:16px, large:32px);\n$switch-checked-activeLeft: (default:16px, small:10px, large:26px);\n\n$switch-primary-bg: $brand-primary;\n$switch-dark-bg: $brand-dark;\n$switch-success-bg: $brand-success;\n$switch-warning-bg: $brand-warning;\n$switch-danger-bg: $brand-danger;\n$switch-info-bg: $brand-info;\n\n//tabs\n\n$tabs-basic-back: #f5f5f5;\n$tabs-cls-color: #666;\n$tabs-cls-width: 900px;\n$tabs-simple-conHeight: 120px;\n$tabs-simple-conPad: 16px;\n$tabs-simple-conWidth: 100%;\n\n$tabs-fontSize: (simple:14px, fill:14px, turn:14px, slide:14px, fade:14px, fadeup:14px);\n$tabs-lineHeight: (simple:2.3, fill:2.3, turn:2.3, slide:2.3, fade:2.3, fadeup:2.3);\n$tabs-marginBottom: -1px;\n\n$tabs-simple-tab: (padding:0 16px, margin:5px 0 5px 5px, radius:0 0 0 0, back:#fff);\n$tabs-simple-tabBorder: 1px solid #fff;\n$tabs-simple-activeBorder: 1px solid $brand-primary;\n$tabs-simple-activeColor: #fff;\n$tabs-simple-activeBorBottom: 1px solid $brand-primary;\n$tabs-simple-activeTopRadius: 5px;\n$tabs-simple-fontWeight: bold;\n\n$tabs-fill-tab: (padding: 0 16px, color:#666, back:#fff, afterBack:#d2d8d6, activeBack:$brand-primary);\n$tabs-fill-tab-maright: 5px;\n$tabs-fill-after-top: 0;\n$tabs-fill-after-left: 0;\n$tabs-fill-after-width: 100%;\n$tabs-fill-after-height: 100%;\n$tabs-fill-fontWeight: bold;\n\n$tabs-turn-tab: (padding: 0 16px, color:#fff, back:#f5f5f5, afterBack:$brand-primary, activeBack:$brand-primary);\n$tabs-turn-after-top: 0;\n$tabs-turn-after-left: 0;\n$tabs-turn-after-width: 100%;\n$tabs-turn-after-height: 100%;\n$tabs-turn-beforeBot: 32px;\n$tabs-turn-beforeRight: 15px;\n$tabs-turn-fontWeight: bold;\n$tabs-moveleft-conHeight: 120px;\n$tabs-moveleft-conPad: 16px;\n\n$tabs-slide-tabs: (width:25%, padding: 0 16px, back:#f5f5f5);\n$tabs-slide-child-bottom: 0;\n$tabs-slide-child-left: 0;\n$tabs-slide-child-height: 4px;\n$tabs-slide-child-back: $brand-primary;\n$tabs-slide-fontWeight: bold;\n\n$tabs-fade-tab: (marLeft:5px, marTop:5px, color:#666, padding:0 16px, radius:0 0 0 0);\n$tabs-fade-conPad: 16px;\n$tabs-fade-conBor: 5px;\n\n$tabs-fadeup-tab: (marTop:5px, color:#666, padding:0 16px, radius:0 0 0 0);\n$tabs-fadeup-top: -5px;\n$tabs-fadeup-left: 0;\n$tabs-fadeup-width: 100%;\n$tabs-fadeup-height: 100%;\n$tabs-fadeup-color: #666;\n$tabs-fadeup-conHeight: 120px;\n$tabs-fadeup-conPad: 16px;\n\n\n//rate\n$rate-star-default-color:$gray-lightest;\n$rate-star-active-color:$brand-primary;\n$rate-star-marginRight:8px;\n//backtop\n$back-top-padding:5px;\n$backtop-background:unquote(\"rgb(#{$palette-u-gray-600})\") !default;\n$backtop-color:unquote(\"rgb(#{$color-white})\") !default;\n$backtop-right:10px;\n$backtop-bottom:10px;\n$backtop-dom-right:40px;\n\n\n//dnd\n$dnd-list-background:unquote(\"rgb(#{$palette-grey-400})\")!default;\n$dnd-list-padding:8px;\n$dnd-list-dragging-background:unquote(\"rgb(#{$palette-light-blue-A200})\")!default;\n$dnd-item-color:unquote(\"rgb(#{$color-black})\")!default;\n$dnd-item-padding:16px;\n$dnd-item-margin:4px;\n$dnd-item-background:unquote(\"rgb(#{$palette-grey-500})\")!default;\n$dnd-item-dragging-background:unquote(\"rgb(#{$palette-blue-300})\")!default;\n\n// bee-tree\n$tree-checkbox-color: unquote(\"rgb(#{$primary-color})\") !default;\n$tree-node-bg-color: $hover-bg-color-base !default;\n\n// bee-table\n$table-head-background-color: unquote(\"rgb(#{$table-header-background-color})\") !default;\n$table-head-text-color: unquote(\"rgb(#{$table-header-text-color})\") !default;\n\n// bee-transfer\n$transfer-border-gap-color:#d9d9d9;\n\n// bee-transfer\n$cascader-border-gap-color:#ccc;","@import \"../node_modules/tinper-bee-core/scss/minxin-variables\";\r\n@import \"../node_modules/tinper-bee-core/scss/minxin-mixins\";\r\n\r\n\r\n$loading-icon-color: #0084ff;\r\n\r\n/**\r\n * 加载背景\r\n */\r\n//.u-loading-back{\r\n// position:relative;\r\n// text-align: center;\r\n// width:$loading-back-width;\r\n// height:$loading-back-height;\r\n// margin:0 auto;\r\n// &.light{\r\n// background: #fff;\r\n// }\r\n// &.dark{\r\n// background: #000;\r\n// }\r\n//}\r\n/**\r\n * 文字\r\n */\r\n.u-loading-desc {\r\n position: absolute;\r\n bottom: 0;\r\n left: 0;\r\n right: 0;\r\n font-size: $font-size-base;\r\n color: $font-color-base;\r\n text-align: center;\r\n}\r\n\r\n\r\n/**\r\n * default样式 单个圆圈加载\r\n */\r\n\r\n.u-loading {\r\n &.u-loading-rotate {\r\n & > div {\r\n position: absolute;\r\n border-radius: 100%;\r\n margin: 2px;\r\n -webkit-animation-fill-mode: both;\r\n animation-fill-mode: both;\r\n // border: 2px solid #0084ff;\r\n // border-bottom-color: transparent;\r\n width: $loading-rotate-size;\r\n height: $loading-rotate-size;\r\n top: $loading-center-top;\r\n left: $loading-center-left;\r\n margin-left: $loading-rotate-center;\r\n margin-top: $loading-rotate-center;\r\n background: transparent !important;\r\n display: inline-block;\r\n -webkit-animation: rotate 1s 0s linear infinite;\r\n animation: rotate 1s 0s linear infinite;\r\n text-align: center;\r\n line-height: $loading-rotate-size;\r\n & > img{\r\n width: $loading-rotate-size;\r\n }\r\n & > .uf{\r\n color: $loading-icon-color;\r\n font-size: 40px;\r\n padding: 0;\r\n }\r\n }\r\n &.u-loading-rotate-lg {\r\n & > div {\r\n margin-left: $loading-rotate-center-lg;\r\n margin-top: $loading-rotate-center-lg;\r\n width: $loading-rotate-lg-size;\r\n height: $loading-rotate-lg-size;\r\n line-height: $loading-rotate-lg-size;\r\n & > img{\r\n width: $loading-rotate-lg-size;\r\n }\r\n & > .uf{\r\n font-size: 60px;\r\n }\r\n }\r\n }\r\n &.u-loading-rotate-sm {\r\n & > div {\r\n margin-left:$loading-rotate-center-sm;\r\n margin-top: $loading-rotate-center-sm;\r\n width: $loading-rotate-sm-size;\r\n height:$loading-rotate-sm-size;\r\n line-height: $loading-rotate-sm-size;\r\n & > img{\r\n width: $loading-rotate-sm-size;\r\n }\r\n & > .uf{\r\n font-size: 25px;\r\n }\r\n }\r\n }\r\n &.u-loading-rotate-primary {\r\n & > div > .uf{\r\n color: $loading-loadprimary;\r\n // border: 2px solid $loading-loadprimary;\r\n // border-bottom-color: transparent;\r\n }\r\n }\r\n &.u-loading-rotate-success {\r\n & > div > .uf{\r\n color: $loading-loadsuccess;\r\n // border: 2px solid $loading-loadsuccess;\r\n // border-bottom-color: transparent;\r\n }\r\n }\r\n &.u-loading-rotate-warning {\r\n & > div > .uf{\r\n color: $loading-loadwarn;\r\n // border: 2px solid $loading-loadwarn;\r\n // border-bottom-color: transparent;\r\n }\r\n }\r\n }\r\n\r\n}\r\n\r\n.u-loading-backdrop{\r\n position: absolute;\r\n top: 0;\r\n right: 0;\r\n bottom: 0;\r\n left: 0;\r\n z-index: 1900;\r\n // opacity: .4;\r\n // filter: blur(.5px);\r\n background-color:rgba(255,255,255,0.4);\r\n &.full-screen{\r\n position: fixed;\r\n }\r\n}\r\n\r\n@keyframes rotate {\r\n 0% {\r\n -webkit-transform: rotate(0deg) scale(1);\r\n transform: rotate(0deg) scale(1);\r\n }\r\n\r\n 50% {\r\n -webkit-transform: rotate(180deg) scale(1);\r\n transform: rotate(180deg) scale(1);\r\n }\r\n\r\n 100% {\r\n -webkit-transform: rotate(360deg) scale(1);\r\n transform: rotate(360deg) scale(1);\r\n }\r\n}\r\n\r\n.u-loading {\r\n &.u-loading-line {\r\n position: absolute;\r\n top:$loading-center-top;\r\n left: $loading-center-left;\r\n margin-top: $loading-line-center-top;\r\n margin-left: $loading-line-center-left;\r\n & > div {\r\n background-color: #C2C3C5;\r\n width: $loading-line-width;\r\n height: $loading-line-height;\r\n border-radius: 2px;\r\n margin: 2px;\r\n -webkit-animation-fill-mode: both;\r\n animation-fill-mode: both;\r\n display: inline-block;\r\n }\r\n &.u-loading-line-lg {\r\n margin-top: $loading-line-center-lg-top;\r\n margin-left: $loading-line-center-lg-left;\r\n & > div {\r\n width: $loading-line-lg-width;\r\n height: $loading-line-lg-height;\r\n }\r\n }\r\n &.u-loading-line-sm {\r\n margin-top: $loading-line-center-sm-top;\r\n margin-left: $loading-line-center-sm-left;\r\n & > div {\r\n width:$loading-line-sm-width;\r\n height: $loading-line-sm-height;\r\n }\r\n }\r\n @each $index, $anima in $loading-lineanimating {\r\n div:nth-child( #{$index} ) {\r\n -webkit-animation: $anima;\r\n animation: $anima;\r\n background-color: map_get($loading-linebackcolor, $index);\r\n }\r\n }\r\n\r\n &.u-loading-line-primary {\r\n & > div {\r\n background-color: $loading-loadprimary;\r\n }\r\n }\r\n &.u-loading-line-success {\r\n & > div {\r\n background-color: $loading-loadsuccess;\r\n }\r\n }\r\n &.u-loading-line-warning {\r\n & > div {\r\n background-color: $loading-loadwarn;\r\n }\r\n }\r\n }\r\n}\r\n.u-loading {\r\n &.u-loading-custom {\r\n & > div {\r\n position: absolute;\r\n left: 50%;\r\n top: 50%;\r\n -webkit-transform: translate(-50%,-50%);\r\n transform: translate(-50%,-50%);\r\n }\r\n }\r\n}\r\n@keyframes line-scale {\r\n 0% {\r\n -webkit-transform: scaley(1);\r\n transform: scaley(1);\r\n }\r\n\r\n 50% {\r\n -webkit-transform: scaley(0.4);\r\n transform: scaley(0.4);\r\n }\r\n\r\n 100% {\r\n -webkit-transform: scaley(1);\r\n transform: scaley(1);\r\n\r\n }\r\n}\r\n","@import \"minxin-colors\";\n\n// 默认色\n$default-color: $palette-blue-grey-50;\n$default-color-dark: \"223,225,230\";\n$default-color-light: \"223,225,230\";\n\n// 主题色\n$primary-color: \"245, 60, 50\" !default;\n$primary-color-dark: \"230, 0, 18\" !default;\n$primary-color-light: \"230, 0, 18\" !default;\n\n// 字体\n$font-family-primary: \"Open Sans\", \"Helvetica Neue\", Arial, \"Hiragino Sans GB\", \"Microsoft YaHei\", sans-serif !default;\n// 主字号\n$font-size-base: 14px !default;\n// 主按钮文本色\n$text-color-base: $color-dark-contrast !default; \n\n// 圆角,包括:button、select等\n$border-radius: 3px !default;\n// 边框色,包括按钮、输入框、分页\n$border-color: \"165, 173, 186\" !default;\n// 条目hover背景色,包括:select、dropdown、table、datepicker、tree、menu、calendar\n$item-hover-bg-color-base: \"235, 236, 240\" !default;\n// 条目selected背景色,包括:select、menu等\n$item-selected-bg-color-base: \"255, 247, 231\" !default;\n\n// Button 细化样式变量:\n// 次按钮背景色\n$secondary-color: $palette-blue-grey-50 !default;\n$secondary-color-dark: \"223,225,230\" !default;\n$secondary-color-light: \"223,225,230\" !default;\n// 次按钮文本色\n$button-secondary-text-color: $palette-grey-900 !default;\n\n// Table 细化样式变量:\n// 表头背景色\n$table-header-background-color: \"241, 242, 245\";\n// 表头文字颜色\n$table-header-text-color: \"33, 33, 33\";\n// 表格分割线颜色\n$table-border-color-base: \"193, 199, 208\";\n// 表格行hover背景色\n$table-row-hover-bg-color: \"235, 236, 240\";\n\n// 向下兼容\n$color-primary: $palette-blue-600 !default;\n$color-primary-dark: $palette-blue-800 !default;\n$color-primary-light: $palette-blue-400 !default;\n\n// 辅色\n$color-accent: $palette-green-600 !default;\n$color-accent-dark: $palette-green-800 !default;\n$color-accent-light: $palette-green-400 !default;\n\n\n// cyan主题\n//$color-primary: $palette-cyan-500 !default;\n//$color-primary-dark: $palette-cyan-700 !default;\n//$color-accent: $palette-light-blue-500 !default;\n\n// orange主题\n//$color-primary: $palette-orange-500 !default;\n//$color-primary-dark: $palette-orange-700 !default;\n//$color-accent: $palette-deep-orange-500 !default;\n","@import \"../node_modules/tinper-bee-core/scss/minxin-variables\";\n@import \"../node_modules/tinper-bee-core/scss/minxin-mixins\";\n@import \"../node_modules/bee-loading/src/Loading\";\n\n$text-color: $font-color-base;\n$font-size-base: 12px;\n$line-height: 1.33;\n// 主题定制border:\n$table-border-color: unquote(\"rgb(#{$table-border-color-base})\");\n// $table-head-background-color: #f7f7f7;\n// $table-head-text-color: #666;\n$vertical-padding: 12px;\n$horizontal-padding: 8px;\n$first-horizontal-padding: 12px;\n// $table-border-color: #e9e9e9;\n\n$table-hover-color: #E7F2FC;\n$table-move-in-color: $bg-color-base;\n$checkbox-height:14px;\n$table-th-bottom-border:#C1C7D0;\n\n$filter-form-control-height:26px;\n$table-head-font-weight: bold;\n$icon-color:#505F79;\n.u-table {\n font-size: $font-size-base;\n color: $text-color;\n // transition: opacity 0.3s ease;\n position: relative;\n line-height: $line-height;\n overflow: hidden;\n &-body{\n // overflow: hidden!important;\n position: relative;\n .u-table-row-expand-columns-in-body .expand-icon-con {\n display: none;\n pointer-events: none;\n }\n }\n &-hiden-drag{\n position: relative;\n &-li{\n position: absolute;\n top: 0px;\n left: 0px;\n // height: 10px;//这个高度先注释掉了,加上后,在火狐浏览器上会站位置。滚动条拉到最右边有错行\n }\n }\n table {\n width: 100%;\n border-collapse: collapse;\n text-align: left;\n }\n\n th {\n // background: $table-head-background-color;\n font-weight: $table-head-font-weight;\n text-align: left;\n // transition: background 0.3s ease;\n line-height: 16px;\n &[colspan] {\n text-align: center;\n }\n ::last-child{\n overflow: hidden;\n }\n }\n\n td {\n border-bottom: 1px solid $table-border-color;\n line-height: $line-height;\n a{\n color: #2196F3;\n &:hover{\n color: #1565c0;\n }\n &:active{\n color: #1565c0;\n }\n }\n .u-switch-span{\n display: inline-block\n }\n }\n thead{\n tr:last-child{\n border-bottom: 1px solid $table-th-bottom-border;\n }\n tr>th:last-child{\n // border-right: none; \n }\n }\n tr {\n // transition: all 0.3s ease;\n &:hover {\n // background: $hover-bg-color-base;\n td {\n .uf-eye{\n visibility: visible !important;\n }\n }\n }\n tr a{\n color: #2196F3;\n &:hover{\n color: #1565c0;\n }\n &:active{\n color: #1565c0;\n }\n }\n td.u-table-multiSelect-column.u-table-row-has-expandIcon:not(.u-table-row-fixed-columns-in-body){\n display: flex;\n flex-direction: row-reverse;\n &:nth-last-child(1):last-child {\n border-right: none;\n }\n .expand-icon-con {\n height: 14px;\n .uf{\n padding: 0;\n }\n .u-table-row-expand-icon {\n width: 2px;\n }\n }\n .u-checkbox {\n margin: 0;\n }\n }\n td.u-table-inline-icon{\n position: relative;\n padding-right: 24px;\n span.u-table-inline-op-icon{\n position: absolute;\n right: 0;\n .uf{\n display: block;\n vertical-align: top;\n }\n }\n span.u-table-inline-op-icon-hover{\n visibility: hidden;\n }\n } \n }\n tr.u-table-row-hover{\n td.u-table-inline-icon{\n span.u-table-inline-op-icon-hover{\n visibility: visible;\n }\n }\n }\n .u-table-inline-op-icon-hidden{\n visibility: hidden;\n }\n tr.tr-row-hover {\n background: $hover-bg-color-base;\n }\n\n th,\n td {\n padding: $vertical-padding $horizontal-padding;\n word-break: break-all;\n &.drag-handle-column {\n .uf {\n font-size: 12px;\n line-height: 12px;\n }\n &.u-table-row-has-expandIcon .uf {\n padding: 0;\n }\n }\n &.text-center{\n text-align: center;\n }\n &.text-right{\n text-align: right;\n }\n .expand-icon-con{\n cursor: pointer;\n display: inline-block;\n font-size: 12px;\n line-height: 12px;\n .uf{\n padding: 0;\n font-size: 12px;\n }\n }\n }\n &-sm {\n td {\n padding: 8px $horizontal-padding;\n }\n }\n &-lg {\n td {\n padding: 16px $horizontal-padding;\n }\n }\n tr {\n \n &.filterable{\n th{\n padding-top: 5px !important;\n padding-bottom: 5px !important;\n .filterContext{\n height: 35px;\n }\n .u-select-selection--single{\n height: 26px;\n }\n }\n }\n }\n &-row-hover {\n background:unquote(\"rgb(#{$table-row-hover-bg-color})\");\n }\n \n &-scroll {\n overflow: auto;\n }\n &-bordered {\n table {\n border: 1px solid $table-border-color;\n box-sizing: border-box;\n table-layout: fixed;\n // width:auto;\n }\n \n .u-table-header>table {\n border-bottom: 0;\n }\n .u-table-header~.u-table-body,.u-table-header~.u-table-body-outer{\n table{\n border-top: 0px ;\n }\n }\n\n th {\n border-bottom: 1px solid $table-border-color;\n box-sizing: border-box;\n }\n th,\n td {\n border-right: 1px solid $table-border-color;\n box-sizing: border-box;\n }\n }\n &-drag-border{\n tr {\n th.th-can-not-drag{ //拖拽tag影响了表格整体宽度\n overflow: hidden;\n .u-table-thead-th-drag-gap{//最后一个非固定列不可以拖拽\n display: none;\n }\n }\n }\n }\n &-header {\n overflow: hidden;\n background: $table-head-background-color;\n color: $table-head-text-color;\n }\n\n &.fixed-height td {\n padding: 0px $horizontal-padding;\n }\n\n &-fixed-header &-body {\n background: #fff;\n position: relative;\n }\n &-fixed-left &-body-inner {\n margin-right: -20px;\n padding-right: 20px;\n }\n\n &-fixed-header:not(.u-table-hide-header) &-fixed-left &-body-inner {\n padding-right: 0px;\n }\n\n &-fixed-header &-body-inner {\n height: 100%;\n overflow: scroll;\n }\n\n\n &-fixed-header &-scroll &-header {\n overflow-x: scroll;\n padding-bottom: 20px;\n margin-bottom: -20px;\n overflow-y: scroll;\n box-sizing: border-box;\n }\n\n &-title {\n padding: $vertical-padding $horizontal-padding;\n border-top: 1px solid $table-border-color;\n }\n\n &-content {\n position: relative;\n }\n\n &-footer {\n padding: $vertical-padding $horizontal-padding;\n border-bottom: 1px solid $table-border-color;\n .u-table-scroll{\n overflow-x: hidden;\n }\n }\n &-footer & {\n margin: (-$vertical-padding) (-$horizontal-padding);\n }\n\n &-placeholder {\n padding: $vertical-padding 8px;\n background: #fff;\n border-bottom: 1px solid $table-border-color;\n text-align: center;\n position: relative;\n .table-nodata{ \n font-size: 40px; \n line-height: 44px;\n + span{\n font-size: 12px;\n line-height: 12px;\n display: block;\n }\n }\n }\n\n &-expand-icon-col {\n width: 10px;\n }\n &-row,\n &-expanded-row {\n .u-table{\n tr{\n background: #fff;\n }\n tr.u-table-row-hover{\n background:unquote(\"rgb(#{$table-row-hover-bg-color})\");\n \n }\n }\n &-expand-icon {\n cursor: pointer;\n display: inline-block;\n margin-right: 8px;\n width: 14px;\n height: 14px;\n text-align: center;\n line-height: 14px;\n user-select: none;\n &.uf{\n font-size: 12px;\n padding: 0;\n }\n }\n &-spaced {\n visibility: hidden;\n }\n &-spaced:after {\n content: \".\";\n }\n &-expanded {\n &:after {\n content: \"\\e639\";\n font-family: \"uf\";\n }\n }\n &-collapsed {\n &:after {\n content: \"\\e61c\";\n font-family: \"uf\";\n }\n }\n }\n &-row{\n &.selected{\n background: #FFF7E7;\n }\n }\n tr.u-table-expanded-row {\n background: #DFE1E6;\n &:hover {\n background: #DFE1E6;\n }\n .u-table {\n // padding: 0 40px 0 20px;\n z-index: 1;\n }\n }\n &-column-hidden {\n display: none;\n }\n &-prev-columns-page,\n &-next-columns-page {\n cursor: pointer;\n color: #666;\n z-index: 1;\n &:hover {\n color: #2db7f5;\n }\n &-disabled {\n cursor: not-allowed;\n color: #999;\n &:hover {\n color: #999;\n }\n }\n }\n &-prev-columns-page {\n margin-right: 8px;\n &:before {\n content: \"<\";\n }\n }\n &-next-columns-page {\n float: right;\n &:before {\n content: \">\";\n }\n }\n\n &-fixed-left,\n &-fixed-right {\n position: absolute;\n top: 0;\n overflow: hidden;\n z-index: 1;\n table {\n width: auto;\n background: #fff;\n }\n }\n\n &-fixed-left {\n left: 0;\n box-shadow: 4px 0 4px rgba(100, 100, 100, 0.1);\n &-body-inner {\n margin-right: -20px;\n padding-right: 20px;\n }\n &-fixed-header & &-body-inner {\n padding-right: 0;\n }\n }\n\n &-fixed-right {\n right: 0;\n box-shadow: -4px 0 4px rgba(100, 100, 100, 0.1);\n\n // hide expand row content in right fixed Table\n // https://github.com/ant-design/ant-design/issues/1898\n &-expanded-row {\n color: transparent;\n pointer-events: none;\n }\n \n }\n \n &-scroll-position-left &-fixed-left {\n box-shadow: none;\n }\n\n &-scroll-position-right &-fixed-right {\n box-shadow: none;\n }\n\n &-thead{\n .filter-text,.filter-dropdown,.filter-date {\n font-weight: normal;\n }\n .filter-wrap{\n display: flex;\n justify-content: center;\n align-items: center;\n .filter-btns{\n min-width: 58px;\n }\n }\n th{\n background: $table-head-background-color;\n color: $table-head-text-color;\n background-clip:padding-box;\n //禁止选中文字\n -moz-user-select: -moz-none;\n -khtml-user-select: none;\n -webkit-user-select: none; \n /*\n Introduced in IE 10. \n */\n -ms-user-select: none;\n user-select: none;\n\n // overflow: hidden;\n // white-space: nowrap;\n // text-overflow: ellipsis;\n .required {\n color: #F22C1D;\n }\n .bee-table-column-sorter {\n position: relative;\n margin-left: 4px;\n height: 16px;\n vertical-align: middle;\n text-align: center;\n display: inline-block;\n margin-top: -3px;\n i{\n padding: 0px;\n font-weight: 600;\n color: $icon-color;\n }\n \n & > .bee-table-column-sorter-down,\n & > .bee-table-column-sorter-up, & > .bee-table-column-sorter-flat {\n line-height: 16px;\n display: block;\n width: 34px;\n cursor: pointer;\n }\n \n \n }\n\n .bee-table-column-sorter-down.on .uf-triangle-down,\n .bee-table-column-sorter-down.on .uf-triangle-up,\n .bee-table-column-sorter-up.on .uf-triangle-down,\n .bee-table-column-sorter-up.on .uf-triangle-up {\n color: #108ee9;\n }\n .bee-table-column-sorter .uf-triangle-down,\n .bee-table-column-sorter .uf-triangle-up {\n -webkit-filter: none;\n filter: none;\n font-size: 12px;\n }\n .bee-table-column-sorter .uf-triangle-down,\n .bee-table-column-sorter .uf-triangle-up {\n display: inline-block;\n padding: 0;\n font-size: 12px;\n font-size: 8px\\9;\n -webkit-transform: scale(0.66666667) rotate(0deg);\n -ms-transform: scale(0.66666667) rotate(0deg);\n transform: scale(0.66666667) rotate(0deg);\n -ms-filter: \"progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=1, M12=0, M21=0, M22=1)\";\n zoom: 1;\n line-height: 4px;\n height: 4px;\n color: #999;\n // -webkit-transition: all 0.3s;\n // transition: all 0.3s;\n }\n &:hover{\n .bee-table-column-sorter {\n display: inline-block;\n }\n }\n }\n .th-drag{\n cursor: move;\n }\n .th-drag:hover{\n background: $hover-bg-color-base;\n\n }\n //为了区分是拖拽宽度还是交换列,先注释上面了\n // .th-drag:hover{\n // background:#ccc;\n // }\n .th-drag-hover{ \n background: #ccc;\n }\n &-th{\n position: relative;\n\n &-drag-gap{\n height: 100%;\n position: absolute;\n right: -10px;\n top: 0;\n // background:transparent;\n // width: 1px;\n // background:#ccc;\n width: 20px;\n \n box-sizing: border-box;\n z-index: 1;\n\n .online{\n height: 100%;\n width: 4px;\n // background:transparent;//兼容火狐浏览器,如果table设置border,\n margin: 0 auto;\n }\n .online:hover{\n background:#000000;\n }\n .online-hover{\n background:#000000;\n }\n \n }\n &-drag-gap:hover{\n cursor: col-resize;\n .online{\n background: #000000\n }\n }\n }\n &-th:last-child {\n &-drag-gap{\n border: none;\n }\n }\n }\n\n\n &-filter-column{\n \n &-pop-cont{\n margin: 0px;\n max-height: 300px;\n overflow-y: auto;\n color:#212121;\n }\n &-clear-setting{ \n // border-bottom: 1px solid #ccc;\n cursor: pointer;\n margin-bottom: 4px;\n }\n &-cont{\n position: relative;\n }\n &-filter-icon{\n position: absolute;\n width: 30px;\n height: 39px ;\n line-height: 39px;\n right: 0px ;\n top:1px ;\n z-index: 2;\n background: $table-head-background-color;\n text-align: center;\n cursor: pointer;\n i.uf{\n padding: 0px;\n color: $icon-color;\n }\n }\n &-pop-cont-item{\n margin-top: 8px;\n font-size: 12px;\n // line-height: 30px;\n cursor: pointer;\n .u-checkbox {\n margin: 0px;\n\n }\n }\n &-pop-cont-item span.drop-menu-title{\n margin-left: -3px;\n max-width: 132px;\n width: auto !important;\n min-width: 56px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n display: inline-block;\n vertical-align: middle;\n }\n &-pop .u-modal-dialog{\n border: 1px solid #ccc;\n background: #fff;\n }\n }\n //拖拽宽度代码\n &-row-fixed-columns-in-body{\n // visibility: hidden;\n display:none;\n pointer-events: none;\n }\n //固定列含有checkbox 样式复写\n .u-checkbox {\n height: $checkbox-height;\n line-height: $checkbox-height;\n margin:0px;\n display: block;\n margin-left: 5px;\n .u-checkbox-label{\n line-height: $checkbox-height;\n padding-left: 16px;\n &:before,&:after {\n width: $checkbox-height;\n height: $checkbox-height;\n }\n }\n }\n .u-table-scroll,.u-table-fixed-left{\n tr{\n td:first-child, th:first-child{\n padding-left: $first-horizontal-padding\n }\n }\n }\n &.has-fixed-left{\n .u-table-scroll{\n tr{\n td:first-child, th:first-child{\n padding-left: $horizontal-padding\n }\n }\n }\n }\n // 滚动条样式复写\n ::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n }\n ::-webkit-scrollbar-button {\n display: none;\n }\n ::-webkit-scrollbar-thumb {\n background: #d5d5d5 !important;\n border-radius: 5px;\n }\n ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: #d5d5d5;\n position: absolute;\n }\n\n ::-webkit-scrollbar-track {\n display: none;\n }\n\n ::-webkit-scrollbar-track-piece {\n display: none;\n }\n\n .drag-handle-column, .row-dragg-able{\n cursor:move;\n }\n .u-table-drag-hidden-cont{\n width: 100px;\n height: 40px;\n }\n\n .u-table-link{\n cursor: pointer;\n color: #0073E1;\n }\n .u-table-link-underline:hover{\n text-decoration:underline;\n }\n .u-table-currency{\n display: inline-block;\n text-align: right;\n }\n}\n\n.u-table:focus{\n outline: none;\n // border-color: #9ecaed;\n // box-shadow: 0 0 10px #9ecaed;\n box-shadow: 0 0 0;\n}\n\n .u-table-bordered {\n .u-table-drag-gap{\n background:#e9e9e9;\n }\n }\n.u-table.bordered {\n table {\n border-collapse: collapse;\n }\n th,\n td {\n border: 1px solid $table-border-color;\n }\n}\n\n.move-enter,\n.move-appear {\n opacity: 0;\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n animation-duration: 2.5s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n\n.move-leave {\n animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);\n animation-duration: 0.5s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n\n.move-enter.move-enter-active,\n.move-appear.move-enter-active {\n animation-name: moveLeftIn;\n animation-play-state: running;\n}\n\n.move-leave.move-leave-active {\n animation-name: moveRightOut;\n animation-play-state: running;\n}\n\n@keyframes moveLeftIn {\n 0% {\n transform-origin: 0 0;\n transform: translateX(30px);\n opacity: 0;\n background: $table-move-in-color;\n }\n 20% {\n transform-origin: 0 0;\n transform: translateX(0);\n opacity: 1;\n }\n 80% {\n background: $table-move-in-color;\n }\n 100% {\n background: transparent;\n opacity: 1;\n }\n}\n\n@keyframes moveRightOut {\n 0% {\n transform-origin: 0 0;\n transform: translateX(0);\n opacity: 1;\n }\n 100% {\n transform-origin: 0 0;\n transform: translateX(-30px);\n opacity: 0;\n }\n}\n\n.formItem-style {\n height: unset;\n min-height: unset;\n padding: 0;\n}\n.errMessage-style {\n display: none;\n border: none;\n /* margin-top: 5px; */\n /* margin-bottom: 5px; */\n background: transparent;\n color: #f22c1d;\n /* padding-left: 12px; */\n /* padding-right: 12px; */\n margin: 0;\n position: absolute;\n padding: 0;\n top: 3px;\n right: 0;\n}\n\n.editable-cell {\n position: relative;\n}\n\n.editable-cell-input-wrapper,\n.editable-cell-text-wrapper {\n padding-right: 24px;\n}\n.editable-cell-input-wrapper {\n .u-form-item.formItem-style .u-label{\n display: none;\n }\n .u-input-group .u-form-control{\n height: 26px;\n font-size: 12px;\n }\n}\n\n.editable-cell-text-wrapper {\n padding: 5px 24px 5px 5px;\n height: 30px;\n}\n\n.editable-cell-icon,\n.editable-cell-icon-check {\n position: absolute;\n top: 0;\n right: 0;\n width: 20px;\n cursor: pointer;\n}\n\n.editable-cell-icon {\n line-height: 28px;\n display: none;\n}\n\n.editable-cell-icon-check {\n line-height: 28px;\n}\n\n.editable-cell:hover .editable-cell-icon {\n display: inline-block;\n}\n\n.editable-cell-icon:hover,\n.editable-cell-icon-check:hover {\n color: #2db7f5;\n}\n\n.editable-add-btn {\n margin-bottom: 8px;\n}\n\n.search-component {\n margin-bottom: 20px;\n .empty-search {\n position: absolute;\n right: 45px;\n z-index: 20;\n top: 5px;\n color: #524e4e;\n cursor: pointer;\n }\n &.u-input-group.simple {\n float: right;\n }\n &.u-input-group.simple .u-form-control {\n width: 251px;\n background: #f5f5f5;\n border-color: #f5f5f5;\n border-radius: 20px;\n }\n &.u-input-group.simple .u-input-group-btn {\n top: 3px;\n right: 20px;\n position: absolute;\n }\n}\n\n\n.col-resize-container {\n height: 0px;\n position: relative;\n\n & + .table-col-resizer:first-of-type {\n table-layout: fixed;\n }\n\n .active-drag .icon{\n visibility: visible;\n }\n\n .last-handle {\n display: none;\n }\n\n .drag-handle {\n margin-left: -5px;\n position: absolute;\n z-index: 5;\n width: 10px;\n cursor: col-resize;\n\n .icon {\n color: #40b0dc;\n top: -1px;\n position: absolute;\n visibility: hidden;\n\n &:first-child {\n left: -2px\n }\n &:last-child {\n left: 6px\n }\n }\n\n &:hover{\n .icon{\n visibility: visible;\n }\n .col-resizer {\n border: 1px solid;\n }\n }\n\n &.disabled-drag {\n cursor: default;\n display: none;\n }\n\n .col-resizer {\n position: absolute;\n width: 1px;\n height: 100%;\n top: 0px;\n left: 3px;\n }\n }\n}\n\n.u-filter-dropdown-menu-wrap {\n z-index: 1800;\n .u-dropdown-menu {\n li.u-dropdown-menu-item {\n line-height: $filter-form-control-height;\n height: $filter-form-control-height;\n padding: 0px 16px 0 16px;\n cursor: pointer;\n }\n }\n}\n.filter-wrap {\n .u-form-control{\n height: $filter-form-control-height;\n }\n .u-input-number.u-input-group.simple .u-input-group-btn .icon-group {\n height: $filter-form-control-height;\n }\n .calendar-picker {\n .u-input-group-btn{\n line-height: 20px;\n }\n }\n .u-input-number.u-input-group.simple .u-input-group-btn .icon-group .uf{\n line-height: 12px;\n }\n}\n.u-row-hover{\n position: absolute;\n right: 24px;\n display: none;\n align-items: center;\n justify-content: center;\n background: transparent;\n}\n\n.u-row-hover2{\n position: absolute;\n left: 100;\n}\n\n\n\n// 表格显示里面的内容显示在一行\n.header-dispaly-in-row{\n &.u-table{\n table{\n table-layout: fixed;\n }\n }\n th{\n text-overflow: ellipsis;\n white-space: nowrap;\n vertical-align: middle;\n overflow: hidden;\n }\n}\n.body-dispaly-in-row{\n &.u-table{\n table{\n table-layout: fixed;\n }\n \n }\n td{\n text-overflow: ellipsis;\n white-space: nowrap;\n vertical-align: middle;\n overflow: hidden;\n }\n .u-table-fieldtype{\n text-overflow: ellipsis;\n white-space: nowrap;\n vertical-align: middle;\n overflow: hidden;\n }\n}\n.u-table-drag-hidden-cont{\n position: absolute;\n top:-1000px;\n}\n\n.u-editable-table .u-table {\n .u-table-row-hover {\n .editable-cell-text-wrapper {\n padding-left: 4px;\n border: 1px solid #c1c7d0;\n }\n }\n\n .editable-cell-text-wrapper {\n &:hover {\n padding-left: 4px;\n border: 1px solid #a5adba;\n }\n }\n\n .editable-cell-input-wrapper {\n &:focus {\n outline: none;\n }\n }\n}\n\n.u-editable-table-tp {\n .tooltip-arrow {\n top: 1px !important;\n border-bottom-color: #F44336 !important;\n }\n\n .tooltip-inner {\n border-color: #F44336 !important;\n }\n}\n.u-dropdown{\n ul.u-table-inline-op-dropdowm{\n li.u-dropdown-menu-item{\n padding: 0 20px 0 10px;\n height: 30px;\n line-height: 30px;\n i.uf{\n font-size: 12px;\n }\n }\n }\n}\n","// @import \"../node_modules/tinper-bee-core/scss/index.scss\";\n// @import \"../node_modules/bee-panel/src/Panel.scss\";\n// @import \"../node_modules/bee-layout/src/Layout.scss\";\n// @import \"../node_modules/bee-button/src/Button.scss\";\n// @import \"../node_modules/bee-transition/src/Transition.scss\";\n// @import \"../node_modules/bee-popconfirm/src/Popconfirm.scss\";\n// @import \"../node_modules/bee-form-control/src/FormControl.scss\";\n// @import \"../node_modules/bee-pagination/src/Pagination.scss\";\n// @import \"../node_modules/bee-checkbox/src/Checkbox.scss\";\n// @import \"../node_modules/bee-select/src/Select.scss\";\n// @import \"../node_modules/bee-popover/src/Popover.scss\";\n// @import \"../node_modules/bee-tooltip/src/Tooltip.scss\";\n// @import \"../node_modules/bee-message/build/Message.css\";\n// @import \"../node_modules/bee-dropdown/build/Dropdown.css\";\n// @import \"../node_modules/bee-input-number/build/InputNumber.css\";\n// @import \"../node_modules/bee-modal/build/Modal.css\";\n@import \"../src/Table.scss\";\n\n\n//引入日期控件样式文件\n// @import \"../node_modules/bee-datepicker/src/datepicker.scss\";\n\n.selected{\n background: #FFF7E7;\n}\n\n.demo25{\n height: 100%;\n\n .u-table-filter-column-filter-icon{\n right: 15px;\n }\n\n}\n.opt-btns .u-button{\n margin: 0 4px;\n color: #fff;\n background: #505F79;\n border-color: #505F79;\n &:hover, &:active{\n background: #344563;\n border-color: #505F79;\n }\n}",".demo04 {\n &.u-table tr:nth-child(2n){\n background: #f7f9fb;\n }\n &.u-table tr.u-table-row-hover, .u-table tr:hover{\n background: #ebecf0;\n }\n}",".demo22{\n .opt-btns{\n margin-bottom: 8px;\n }\n}",".demo32{\n .u-table-thead th {\n padding-top: 0px;\n padding-bottom: 0px;\n }\n}",".demo0501 .u-table {\n .u-row-hover {\n .opt-btns,.cancel-btns {\n button {\n margin: 0;\n &:first-child {\n margin-right: 8px;\n }\n }\n }\n }\n\n .u-table-row {\n td {\n padding: 5px 8px;\n\n input {\n font-size: 12px;\n padding-left: 5px;\n }\n }\n\n .u-form-control,\n .u-select-selection {\n height: 30px;\n }\n }\n\n .editable-cell-text-wrapper {\n box-sizing: border-box;\n line-height: 20px;\n border-radius: 3px;\n }\n\n .required {\n margin-left: 10px;\n position: relative;\n\n &::before {\n content: \" \";\n border: 1px solid #F44336;\n width: 0;\n height: 12px;\n position: absolute;\n top: 9px;\n left: -8px;\n }\n\n span.u-input-group {\n display: block\n }\n }\n .verify-cell {\n padding-right: 25px !important;\n }\n\n .required-icon {\n position: absolute;\n top: 2px;\n color: #F44336;\n font-size: 20px;\n }\n\n .ref-input-wrap {\n width: 160px !important;\n }\n}\n\n.u-editable-table-tp {\n .tp-content {\n color: #F44336;\n }\n}",".u-editable-table .u-table {\n .u-table-row {\n td {\n padding: 5px 8px;\n\n input {\n padding-left: 5px;\n font-size: 12px;\n\n &.error {\n border-color: #F44336;\n }\n }\n }\n\n .editable-cell {\n height: 30px;\n }\n\n &-hover {\n .editable-cell-text-wrapper {\n line-height: 19px;\n }\n }\n\n .u-form-control,\n .u-select-selection {\n height: 30px;\n }\n }\n\n .editable-cell-text-wrapper {\n box-sizing: border-box;\n line-height: 20px;\n border-radius: 3px;\n }\n\n .editable-cell-input-wrapper {\n padding-right: 0;\n .ref-input-wrap {\n width: auto !important;\n height: 30px;\n .u-input-group{\n display: inline-block;\n }\n }\n }\n\n .verify-cell {\n padding-right: 25px !important;\n }\n\n .require {\n position: absolute;\n top: 2px;\n color: #F44336;\n font-size: 20px;\n }\n}\n\n.u-editable-table-tp {\n .tp-content {\n color: #F44336;\n }\n}",".demo0503-m-b {\n\n &.u-modal .u-modal-body {\n padding: 16px 0;\n background: #f7f9fb;\n }\n\n .u-form-group {\n overflow: hidden;\n }\n\n .u-form-control {\n font-size: 12px;\n }\n\n .editable-cell {\n display: block;\n float: left;\n width: 265px;\n padding-right: 25px;\n }\n\n .ref-input-wrap {\n width: 240px !important;\n }\n\n .u-label {\n display: block;\n float: left;\n text-align: right;\n width: 110px;\n box-sizing: border-box;\n padding-right: 10px;\n font-size: 12px;\n height: 32px;\n line-height: 32px;\n .mast {\n padding: 0;\n color: red;\n }\n }\n\n .required-icon {\n position: absolute;\n top: 2px;\n color: #F44336;\n font-size: 20px;\n }\n}\n\n.u-editable-table-tp {\n z-index: 9999 !important;\n\n .tp-content {\n color: #F44336;\n }\n}\n.ref-core-button .u-button:first-child{\n margin-right: 8px;\n}",".demo0505 {\n\n .toolbar-btns {\n margin-bottom: 8px;\n\n .u-button {\n &:first-child {\n margin-right: 8px;\n }\n }\n }\n\n .u-table {\n .u-row-select {\n background-color: #FFF7E7;\n }\n .u-table-row {\n td {\n padding: 5px 8px;\n\n input {\n font-size: 12px;\n padding-left: 5px;\n }\n }\n\n .u-form-control,\n .u-select-selection {\n height: 30px;\n }\n }\n\n .editable-cell-text-wrapper {\n box-sizing: border-box;\n line-height: 20px;\n border-radius: 3px;\n }\n\n .required {\n margin-left: 10px;\n position: relative;\n\n &::before {\n content: \" \";\n border: 1px solid #F44336;\n width: 0;\n height: 12px;\n position: absolute;\n top: 9px;\n left: -8px;\n }\n\n span.u-input-group {\n display: block\n }\n }\n\n .verify-cell {\n padding-right: 25px !important;\n }\n\n .edited::after {\n content: \" \";\n position: absolute;\n z-index: 999;\n top: 0;\n left: 0;\n border-width: 5px;\n border-style: solid;\n border-color: #f44336 transparent transparent #f44336;\n }\n\n .required-icon {\n position: absolute;\n top: 2px;\n color: #F44336;\n font-size: 20px;\n }\n\n .ref-input-wrap {\n width: 160px !important;\n }\n }\n}\n\n.u-editable-table-tp {\n .tp-content {\n color: #F44336;\n }\n}","th{\n .drop-menu{\n .uf{\n font-size: 12px;\n visibility: hidden;\n margin-left: 15px;\n }\n \n \n }\n &:hover{\n .uf{\n visibility: visible;\n }\n }\n\n}\n\n",".expanded-table{\r\n .expand-icon-con .uf{\r\n font-size: 12px;\r\n }\r\n}",".demo8{\n .u-table {\n margin-bottom: 11px;\n }\n .u-pagination{\n display: flex;\n align-items: center;\n justify-content: center;\n }\n}"],"sourceRoot":"/source/"} \ No newline at end of file diff --git a/dist/demo.js b/dist/demo.js index 7cbe6d71..e85cd2a9 100644 --- a/dist/demo.js +++ b/dist/demo.js @@ -66,7 +66,7 @@ var _beeClipboard2 = _interopRequireDefault(_beeClipboard); - var _src = __webpack_require__(270); + var _src = __webpack_require__(292); var _src2 = _interopRequireDefault(_src); @@ -80,7 +80,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - var Demo0101 = __webpack_require__(606);var Demo0102 = __webpack_require__(607);var Demo0103 = __webpack_require__(608);var Demo0104 = __webpack_require__(609);var Demo0105 = __webpack_require__(610);var Demo0106 = __webpack_require__(613);var Demo0107 = __webpack_require__(614);var Demo0201 = __webpack_require__(615);var Demo0202 = __webpack_require__(616);var Demo0301 = __webpack_require__(617);var Demo0302 = __webpack_require__(618);var Demo0401 = __webpack_require__(621);var Demo0402 = __webpack_require__(622);var Demo0404 = __webpack_require__(625);var Demo0405 = __webpack_require__(629);var Demo0406 = __webpack_require__(631);var Demo0501 = __webpack_require__(632);var Demo0502 = __webpack_require__(634);var Demo0503 = __webpack_require__(635);var Demo0505 = __webpack_require__(636);var Demo0601 = __webpack_require__(637);var Demo0602 = __webpack_require__(638);var Demo0603 = __webpack_require__(639);var Demo0701 = __webpack_require__(640);var Demo0702 = __webpack_require__(641);var Demo0802 = __webpack_require__(642);var Demo0901 = __webpack_require__(647);var Demo0902 = __webpack_require__(648);var Demo0903 = __webpack_require__(649);var Demo1001 = __webpack_require__(650);var Demo1002 = __webpack_require__(651);var Demo1101 = __webpack_require__(652);var Demo1102 = __webpack_require__(653);var Demo1103 = __webpack_require__(654);var Demo1105 = __webpack_require__(655);var Demo1106 = __webpack_require__(656);var Demo1107 = __webpack_require__(657);var Demo1108 = __webpack_require__(658);var Demo1201 = __webpack_require__(659);var Demo1301 = __webpack_require__(662);var Demo1302 = __webpack_require__(663);var Demo1401 = __webpack_require__(669);var Demo1402 = __webpack_require__(671);var Demo1403 = __webpack_require__(672);var Demo1404 = __webpack_require__(673);var Demo1601 = __webpack_require__(674);var DemoArray = [{ "example": _react2['default'].createElement(Demo0101, null), "title": " 基本表格", "code": "/**\n*\n* @title 基本表格\n* @parent 基础 Basic\n* @description 当单元格内容过多时,会自动显示省略号,鼠标hover有提示。showRowNum 设置是否显示序号列。\n* demo0101\n*/\n\nimport React, { Component } from \"react\";\nimport { Table } from 'tinper-bee';\n\n\nconst columns = [\n { title: \"员工编号\", dataIndex: \"a\", key: \"a\", width: 150 },\n { title: \"员工姓名\", dataIndex: \"b\", key: \"b\", width:100},\n { title: \"性别\", dataIndex: \"c\", key: \"c\", width: 100},\n { title: \"部门\", dataIndex: \"d\", key: \"d\", width: 100 },\n { title: \"职级\", dataIndex: \"e\", key: \"e\", width: 100 }\n];\n\nconst data = [\n { a: \"ASVAL_20190328\", b: \"小张\", c: \"男\", d: \"财务二科\", e: \"M1\", key: \"1\" },\n { a: \"ASVAL_20190320\", b: \"小明\", c: \"男\", d: \"财务一科\", e: \"T1\", key: \"2\" },\n { a: \"ASVAL_20190312\", b: \"小红\", c: \"女\", d: \"财务一科\", e: \"T2\", key: \"3\" }\n];\n\nclass Demo0101 extends Component {\n render() {\n return (\n \n );\n }\n}\n\nexport default Demo0101;\n", "desc": " 当单元格内容过多时,会自动显示省略号,鼠标hover有提示。showRowNum 设置是否显示序号列。" }, { "example": _react2['default'].createElement(Demo0102, null), "title": " 默认无数据展示", "code": "/**\r\n*\r\n* @title 默认无数据展示\r\n* @parent 基础 Basic\r\n* @description 无数据时默认展示图标,可在`emptyText`方法中自定义展示内容。\r\n* demo0102\r\n*/\r\n\r\n\r\nimport React, { Component } from 'react';\nimport { Table } from 'tinper-bee';\r\n\r\n\r\nconst columns = [\r\n {\r\n title: \"员工编号\",\r\n dataIndex: \"num\",\r\n key: \"num\",\r\n width: \"40%\"\r\n },\r\n {\r\n title: \"员工姓名\",\r\n dataIndex: \"name\",\r\n key: \"name\",\r\n width: \"30%\"\r\n },\r\n {\r\n title: \"部门\",\r\n dataIndex: \"department\",\r\n key: \"department\"\r\n }\r\n];\r\n \r\nconst data = [];\r\n\r\n// 在此自定义无数据时的展示内容\r\nconst emptyFunc = () => 'No Data';\r\n \r\nclass Demo02 extends Component {\r\n render() {\r\n return (\r\n \r\n )\r\n }\r\n}\r\n\r\nexport default Demo02;", "desc": " 无数据时默认展示图标,可在`emptyText`方法中自定义展示内容。" }, { "example": _react2['default'].createElement(Demo0103, null), "title": " 固定表头", "code": "/**\r\n*\r\n* @title 固定表头\r\n* @parent 基础 Basic\r\n* @description 设置`scroll.y`指定滚动区域的高度,达到固定表头效果。\r\n* demo0103\r\n*/\r\n\r\nimport React, { Component } from 'react';\nimport { Table } from 'tinper-bee';\r\n\r\n\r\nconst columns03 = [\r\n {\r\n title: \"序号\",\r\n dataIndex: \"index\",\r\n key: \"index\",\r\n width: 80, \r\n render(text, record, index) {\r\n return index + 1;\r\n }\r\n },\r\n {\r\n title: \"订单编号\",\r\n dataIndex: \"orderCode\",\r\n key: \"orderCode\",\r\n width: 200, \r\n },\r\n {\r\n title: \"供应商名称\",\r\n dataIndex: \"supplierName\",\r\n key: \"supplierName\",\r\n width: 200\r\n },\r\n {\r\n title: \"类型\",\r\n dataIndex: \"type_name\",\r\n key: \"type_name\",\r\n width: 200\r\n },\r\n {\r\n title: \"采购组织\",\r\n dataIndex: \"purchasing\",\r\n key: \"purchasing\",\r\n width: 200\r\n },\r\n {\r\n title: \"采购组\",\r\n dataIndex: \"purchasingGroup\",\r\n key: \"purchasingGroup\",\r\n width: 200\r\n },\r\n {\r\n title: \"凭证日期\",\r\n dataIndex: \"voucherDate\",\r\n key: \"voucherDate\",\r\n width: 200,\r\n }\r\n];\r\n\r\nconst data03 = [\r\n { \r\n orderCode:\"NU0391025\", \r\n supplierName: \"xx供应商\",\r\n type_name: \"1\",\r\n purchasing:'组织c', \r\n purchasingGroup:\"aa\",\r\n voucherDate:\"2018年03月18日\",\r\n key: \"1\"\r\n }, \r\n { \r\n orderCode:\"NU0391026\", \r\n supplierName: \"xx供应商\",\r\n type_name: \"2\",\r\n purchasing:'组织a', \r\n purchasingGroup:\"bb\",\r\n voucherDate:\"2018年02月05日\",\r\n key: \"2\"\r\n },\r\n { \r\n orderCode:\"NU0391027\", \r\n supplierName: \"xx供应商\",\r\n type_name: \"3\",\r\n purchasing:'组织b', \r\n purchasingGroup:\"aa\",\r\n voucherDate:\"2018年07月01日\",\r\n key: \"3\"\r\n },\r\n { \r\n orderCode:\"NU0391028\", \r\n supplierName: \"xx供应商\",\r\n type_name: \"4\",\r\n purchasing:'组织c', \r\n purchasingGroup:\"cc\",\r\n voucherDate:\"2019年03月01日\",\r\n key: \"4\"\r\n },\r\n { \r\n orderCode:\"NU0391029\", \r\n supplierName: \"xx供应商\",\r\n type_name: \"5\",\r\n purchasing:'组织d', \r\n purchasingGroup:\"ss\",\r\n voucherDate:\"2019年02月14日\",\r\n key: \"5\"\r\n },\r\n { \r\n orderCode:\"NU0391030\", \r\n supplierName: \"xx供应商\",\r\n type_name: \"1\",\r\n purchasing:'组织e', \r\n purchasingGroup:\"zz\",\r\n voucherDate:\"2019年02月18日\",\r\n key: \"6\"\r\n },\r\n { \r\n orderCode:\"NU0391031\", \r\n supplierName: \"xx供应商\",\r\n type_name: \"2\",\r\n purchasing:'组织f', \r\n purchasingGroup:\"qq\",\r\n voucherDate:\"2019年01月01日\",\r\n key: \"7\"\r\n },\r\n { \r\n orderCode:\"NU0391032\", \r\n supplierName: \"xx供应商\",\r\n type_name: \"3\",\r\n purchasing:'组织g', \r\n purchasingGroup:\"pp\",\r\n voucherDate:\"2019年01月31日\",\r\n key: \"8\"\r\n },\r\n];\r\n\r\nclass Demo03 extends Component {\r\n render() {\r\n return
;\r\n }\r\n}\r\n\r\nexport default Demo03; ", "desc": " 设置`scroll.y`指定滚动区域的高度,达到固定表头效果。" }, { "example": _react2['default'].createElement(Demo0104, null), "title": " 隔行换色", "code": "/**\n*\n* @title 隔行换色\n* @parent 基础 Basic\n* @description 可自定义斑马线颜色\n* demo0104\n*/\n\n\nimport React, { Component } from 'react';\nimport { Table } from 'tinper-bee';\n\n\nconst columns04 = [\n {title: \"序号\",dataIndex: \"index\",key: \"index\",width: 80, \n render(text, record, index) {\n return index + 1;\n }\n },\n {title: \"订单编号\",dataIndex: \"orderCode\",key: \"orderCode\",width: 200},\n {title: \"供应商名称\",dataIndex: \"supplierName\",key: \"supplierName\",width: 200},\n {title: \"类型\",dataIndex: \"type_name\",key: \"type_name\",width: 200},\n {title: \"采购组织\",dataIndex: \"purchasing\",key: \"purchasing\",width: 200},\n {title: \"采购组\",dataIndex: \"purchasingGroup\",key: \"purchasingGroup\",width: 200},\n {title: \"凭证日期\",dataIndex: \"voucherDate\",key: \"voucherDate\",width: 200}\n];\n\nconst data04 = [\n { \n orderCode:\"NU0391025\", \n supplierName: \"xx供应商\",\n type_name: \"1\",\n purchasing:'组织c', \n purchasingGroup:\"aa\",\n voucherDate:\"2018年03月18日\",\n key: \"1\"\n }, \n { \n orderCode:\"NU0391026\", \n supplierName: \"xx供应商\",\n type_name: \"2\",\n purchasing:'组织a', \n purchasingGroup:\"bb\",\n voucherDate:\"2018年02月05日\",\n key: \"2\"\n },\n { \n orderCode:\"NU0391027\", \n supplierName: \"xx供应商\",\n type_name: \"3\",\n purchasing:'组织b', \n purchasingGroup:\"aa\",\n voucherDate:\"2018年07月01日\",\n key: \"3\"\n },\n { \n orderCode:\"NU0391028\", \n supplierName: \"xx供应商\",\n type_name: \"4\",\n purchasing:'组织c', \n purchasingGroup:\"cc\",\n voucherDate:\"2019年03月01日\",\n key: \"4\"\n },\n { \n orderCode:\"NU0391029\", \n supplierName: \"xx供应商\",\n type_name: \"5\",\n purchasing:'组织d', \n purchasingGroup:\"ss\",\n voucherDate:\"2019年02月14日\",\n key: \"5\"\n },\n { \n orderCode:\"NU0391030\", \n supplierName: \"xx供应商\",\n type_name: \"1\",\n purchasing:'组织e', \n purchasingGroup:\"zz\",\n voucherDate:\"2019年02月18日\",\n key: \"6\"\n },\n { \n orderCode:\"NU0391031\", \n supplierName: \"xx供应商\",\n type_name: \"2\",\n purchasing:'组织f', \n purchasingGroup:\"qq\",\n voucherDate:\"2019年01月01日\",\n key: \"7\"\n },\n { \n orderCode:\"NU0391032\", \n supplierName: \"xx供应商\",\n type_name: \"3\",\n purchasing:'组织g', \n purchasingGroup:\"pp\",\n voucherDate:\"2019年01月31日\",\n key: \"8\"\n },\n];\n\nclass Demo04 extends Component {\n render() {\n return
\n }\n}\n\nexport default Demo04; ", "desc": " 可自定义斑马线颜色", "scss_code": ".demo04 {\n &.u-table tr:nth-child(2n){\n background: #f7f9fb;\n }\n &.u-table tr.u-table-row-hover, .u-table tr:hover{\n background: #ebecf0;\n }\n}" }, { "example": _react2['default'].createElement(Demo0105, null), "title": " 表格 Loading 加载", "code": "/**\r\n*\r\n* @title 表格 Loading 加载\r\n* @parent 基础 Basic\r\n* @description loading可以传boolean或者object对象,object为bee-loading组件的参数类型\r\n* demo0105\r\n*/\r\n\r\nimport React, { Component } from \"react\";\nimport { Table, Button,Tooltip } from 'tinper-bee';\r\n\r\n\r\n\r\nconst columns05 = [\r\n { title: \"员工编号\", dataIndex: \"a\", key: \"a\", width: 300, className: \"rowClassName\",fixed:'left'},\r\n { title: \"员工姓名\", dataIndex: \"b\", key: \"b\", width: 500 },\r\n { title: \"性别\", dataIndex: \"c\", key: \"c\", width: 500 },\r\n { title: \"部门\", dataIndex: \"d\", key: \"d\", width: 200 }\r\n];\r\n\r\nconst data05 = [\r\n { a: \"ASVAL_201903280005\", b: \"小张\", c: \"男\", d: \"财务二科\", key: \"1\" },\r\n { a: \"ASVAL_201903200004\", b: \"小明\", c: \"男\", d: \"财务一科\", key: \"2\" },\r\n { a: \"ASVAL_201903120002\", b: \"小红\", c: \"女\", d: \"财务一科\", key: \"3\" }\r\n];\r\n\r\nclass Demo05 extends Component {\r\n constructor(props){\r\n super(props);\r\n this.state = {\r\n loading : true\r\n }\r\n }\r\n changeLoading = () => {\r\n this.setState({\r\n loading : !this.state.loading\r\n })\r\n }\r\n render() {\r\n return (\r\n
\r\n \r\n 切换loading\r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nexport default Demo05;\r\n", "desc": " loading可以传boolean或者object对象,object为bee-loading组件的参数类型" }, { "example": _react2['default'].createElement(Demo0106, null), "title": " 单元格内容居中", "code": "/**\n*\n* @title 单元格内容居中\n* @parent 基础 Basic\n* @description 在columns数据中设置`textAlign:'center'`,可实现单元格内容居中展示的效果。默认是居左显示。\n* demo0106\n*/\n\nimport React, { Component } from \"react\";\nimport { Table, Button,Tooltip } from 'tinper-bee';\n\n\n\nconst columns = [\n {\n title: \"员工编号\", dataIndex: \"a\", key: \"a\", width: 120, className: \"rowClassName\",\n fixed:'left',\n textAlign:'center',\n render: (text, record, index) => {\n return (\n \n {text}\n \n );\n }\n },\n { title: \"员工姓名\", dataIndex: \"b\", key: \"b\", width:100,textAlign:'center'},\n { title: \"性别\", dataIndex: \"c\", key: \"c\", width: 100,textAlign:'center'},\n { title: \"部门\", dataIndex: \"d\", key: \"d\", width: 100,textAlign:'center' },\n { title: \"职级\", dataIndex: \"e\", key: \"e\", width: 100,textAlign:'center' }\n];\n\nconst data = [\n { a: \"ASVAL_201903280005\", b: \"小张\", c: \"男\", d: \"财务二科\", e: \"M1\", key: \"1\" },\n { a: \"ASVAL_201903200004\", b: \"小明\", c: \"男\", d: \"财务一科\", e: \"T1\", key: \"2\" },\n { a: \"ASVAL_201903120002\", b: \"小红\", c: \"女\", d: \"财务一科\", e: \"T2\", key: \"3\" }\n];\n\nclass Demo06 extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n data: data\n }\n }\n handleClick = () => {\n console.log('这是第' , this.currentIndex , '行');\n console.log('内容:' , this.currentRecord);\n }\n\n render() {\n return (\n \n );\n }\n}\n\nexport default Demo06;\n", "desc": " 在columns数据中设置`textAlign:'center'`,可实现单元格内容居中展示的效果。默认是居左显示。" }, { "example": _react2['default'].createElement(Demo0107, null), "title": " 带边框", "code": "/**\n*\n* @title 带边框\n* @parent 基础 Basic\n* @description 设置 `bordered` 属性可添加表格边框线。\n* demo0107\n*/\n\nimport React, { Component } from \"react\";\nimport { Table, Button,Tooltip } from 'tinper-bee';\n\n\n\nconst columns = [\n { title: \"员工编号\", dataIndex: \"a\", key: \"a\", width: 150 },\n { title: \"员工姓名\", dataIndex: \"b\", key: \"b\", width:100},\n { title: \"性别\", dataIndex: \"c\", key: \"c\", width: 100},\n { title: \"部门\", dataIndex: \"d\", key: \"d\", width: 100 },\n { title: \"职级\", dataIndex: \"e\", key: \"e\", width: 100 }\n];\n\nconst data = [\n { a: \"ASVAL_20190328\", b: \"小张\", c: \"男\", d: \"财务二科\", e: \"M1\", key: \"1\" },\n { a: \"ASVAL_20190320\", b: \"小明\", c: \"男\", d: \"财务一科\", e: \"T1\", key: \"2\" },\n { a: \"ASVAL_20190312\", b: \"小红\", c: \"女\", d: \"财务一科\", e: \"T2\", key: \"3\" }\n];\n\nclass Demo06 extends Component {\n render() {\n return (\n \n );\n }\n}\n\nexport default Demo06;\n", "desc": " 设置 `bordered` 属性可添加表格边框线。" }, { "example": _react2['default'].createElement(Demo0201, null), "title": " 横向滚动条", "code": "/**\n*\n* @title 横向滚动条\n* @parent 滚动 Scroll View\n* @description `scroll.x`的值代表表体内容的实际宽度,默认情况下是根据各列宽度合计出来的。其值超过父元素的宽度时会自动出现滚动条。如设置 `scroll={{ x:1000 }}`,可以手动添加横向滚动条,也可以设置`scroll={{ x:\"110%\" }}`。\n* demo0201\n*/\n\nimport React, { Component } from \"react\";\nimport { Table } from 'tinper-bee';\n\n\nconst columns = [\n {\n title: \"序号\",\n dataIndex: \"index\",\n key: \"index\",\n width: 100, \n render(text, record, index) {\n return index + 1;\n }\n },\n {\n title: \"订单编号\",\n dataIndex: \"orderCode\",\n key: \"orderCode\",\n width: 300, \n },\n {\n title: \"供应商名称\",\n dataIndex: \"supplierName\",\n key: \"supplierName\",\n width: 200\n },\n {\n title: \"类型\",\n dataIndex: \"type_name\",\n key: \"type_name\",\n width: 200\n },\n {\n title: \"采购组织\",\n dataIndex: \"purchasing\",\n key: \"purchasing\",\n width: 200\n },\n {\n title: \"采购组\",\n dataIndex: \"purchasingGroup\",\n key: \"purchasingGroup\",\n width: 200\n },\n {\n title: \"凭证日期\",\n dataIndex: \"voucherDate\",\n key: \"voucherDate\",\n width: 300,\n },\n {\n title: \"审批状态\",\n dataIndex: \"approvalState_name\",\n key: \"approvalState_name\",\n width: 200\n },\n {\n title: \"确认状态\",\n dataIndex: \"confirmState_name\",\n key: \"confirmState_name\",\n width: 200\n }, \n {\n title: \"关闭状态\",\n dataIndex: \"closeState_name\",\n key: \"closeState_name\",\n width: 100\n }\n];\n \nconst data = [\n { \n orderCode:\"NU0391025\", \n supplierName: \"xx供应商\",\n type_name: \"1\",\n purchasing:'组织c', \n purchasingGroup:\"aa\",\n voucherDate:\"2018年03月18日\",\n approvalState_name:\"已审批\",\n confirmState_name:\"执行中\",\n closeState_name:\"未关闭\",\n key: \"1\"\n }, \n { \n orderCode:\"NU0391026\", \n supplierName: \"xx供应商\",\n type_name: \"2\",\n purchasing:'组织a', \n purchasingGroup:\"bb\",\n voucherDate:\"2018年02月05日\",\n approvalState_name:\"已审批\",\n confirmState_name:\"待确认\",\n closeState_name:\"未关闭\",\n key: \"2\"\n },\n { \n orderCode:\"NU0391027\", \n supplierName: \"xx供应商\",\n type_name: \"3\",\n purchasing:'组织b', \n purchasingGroup:\"aa\",\n voucherDate:\"2018年07月01日\",\n approvalState_name:\"已审批\",\n confirmState_name:\"终止\",\n closeState_name:\"已关闭\",\n key: \"3\"\n },\n { \n orderCode:\"NU0391028\", \n supplierName: \"xx供应商\",\n type_name: \"4\",\n purchasing:'组织c', \n purchasingGroup:\"cc\",\n voucherDate:\"2019年03月01日\",\n approvalState_name:\"未审批\",\n confirmState_name:\"待确认\",\n closeState_name:\"未关闭\",\n key: \"4\"\n },\n { \n orderCode:\"NU0391029\", \n supplierName: \"xx供应商\",\n type_name: \"5\",\n purchasing:'组织d', \n purchasingGroup:\"ss\",\n voucherDate:\"2019年02月14日\",\n approvalState_name:\"未审批\",\n confirmState_name:\"待确认\",\n closeState_name:\"未关闭\",\n key: \"5\"\n }\n];\n\nclass Demo11 extends Component {\n render() {\n return (\n
\n );\n }\n}\n\nexport default Demo11;\n", "desc": " `scroll.x`的值代表表体内容的实际宽度,默认情况下是根据各列宽度合计出来的。其值超过父元素的宽度时会自动出现滚动条。如设置 `scroll={{ x:1000 }}`,可以手动添加横向滚动条,也可以设置`scroll={{ x:\"110%\" }}`。" }, { "example": _react2['default'].createElement(Demo0202, null), "title": " 纵向滚动条", "code": "/**\n*\n* @title 纵向滚动条\n* @parent 滚动 Scroll View\n* @description 通过设置 `scroll.y` 可达到固定表头的效果。如设置 `scroll={{ y:200 }}` 表示表体高度超出 200px 后会显示滚动条。\n* demo0202\n*/\n\nimport React, { Component } from \"react\";\nimport { Table } from 'tinper-bee';\n\n\nconst columns = [\n {title: \"序号\",dataIndex: \"index\",key: \"index\",width: 80, \n render(text, record, index) {\n return index + 1;\n }\n },\n {title: \"订单编号\",dataIndex: \"orderCode\",key: \"orderCode\",width: 200},\n {title: \"供应商名称\",dataIndex: \"supplierName\",key: \"supplierName\",width: 200},\n {title: \"类型\",dataIndex: \"type_name\",key: \"type_name\",width: 200},\n {title: \"采购组织\",dataIndex: \"purchasing\",key: \"purchasing\",width: 200},\n {title: \"采购组\",dataIndex: \"purchasingGroup\",key: \"purchasingGroup\",width: 200},\n {title: \"凭证日期\",dataIndex: \"voucherDate\",key: \"voucherDate\",width: 200}\n];\n \nconst data = [\n { \n orderCode:\"NU0391025\", \n supplierName: \"xx供应商\",\n type_name: \"1\",\n purchasing:'组织c', \n purchasingGroup:\"aa\",\n voucherDate:\"2018年03月18日\",\n key: \"1\"\n }, \n { \n orderCode:\"NU0391026\", \n supplierName: \"xx供应商\",\n type_name: \"2\",\n purchasing:'组织a', \n purchasingGroup:\"bb\",\n voucherDate:\"2018年02月05日\",\n key: \"2\"\n },\n { \n orderCode:\"NU0391027\", \n supplierName: \"xx供应商\",\n type_name: \"3\",\n purchasing:'组织b', \n purchasingGroup:\"aa\",\n voucherDate:\"2018年07月01日\",\n key: \"3\"\n },\n { \n orderCode:\"NU0391028\", \n supplierName: \"xx供应商\",\n type_name: \"4\",\n purchasing:'组织c', \n purchasingGroup:\"cc\",\n voucherDate:\"2019年03月01日\",\n key: \"4\"\n },\n { \n orderCode:\"NU0391029\", \n supplierName: \"xx供应商\",\n type_name: \"5\",\n purchasing:'组织d', \n purchasingGroup:\"ss\",\n voucherDate:\"2019年02月14日\",\n key: \"5\"\n },\n { \n orderCode:\"NU0391030\", \n supplierName: \"xx供应商\",\n type_name: \"1\",\n purchasing:'组织e', \n purchasingGroup:\"zz\",\n voucherDate:\"2019年02月18日\",\n key: \"6\"\n },\n { \n orderCode:\"NU0391031\", \n supplierName: \"xx供应商\",\n type_name: \"2\",\n purchasing:'组织f', \n purchasingGroup:\"qq\",\n voucherDate:\"2019年01月01日\",\n key: \"7\"\n },\n { \n orderCode:\"NU0391032\", \n supplierName: \"xx供应商\",\n type_name: \"3\",\n purchasing:'组织g', \n purchasingGroup:\"pp\",\n voucherDate:\"2019年01月31日\",\n key: \"8\"\n },\n];\nclass Demo12 extends Component {\n render() {\n return (\n
\n );\n }\n}\n\nexport default Demo12;\n", "desc": " 通过设置 `scroll.y` 可达到固定表头的效果。如设置 `scroll={{ y:200 }}` 表示表体高度超出 200px 后会显示滚动条。" }, { "example": _react2['default'].createElement(Demo0301, null), "title": " 渲染本地数据", "code": "/**\n*\n* @title 渲染本地数据\n* @parent 数据操作 Data Opetation\n* @description 可自定义页头和页脚。\n* demo0301\n*/\n\nimport React, { Component } from \"react\";\nimport { Table, Button,Tooltip } from 'tinper-bee';\n\n\n\nconst columns = [\n {\n title: \"员工编号\", dataIndex: \"a\", key: \"a\", width: 300, className: \"rowClassName\",\n fixed:'left',\n render: (text, record, index) => {\n return (\n \n {text}\n \n );\n }\n },\n { title: \"员工姓名\", dataIndex: \"b\", key: \"b\", width: 500 },\n { title: \"性别\", dataIndex: \"c\", key: \"c\", width: 500 },\n { title: \"部门\", dataIndex: \"d\", key: \"d\", width: 200 }\n];\n\nconst data = [\n { a: \"ASVAL_201903280005\", b: \"小张\", c: \"男\", d: \"财务二科\", key: \"1\" },\n { a: \"ASVAL_201903200004\", b: \"小明\", c: \"男\", d: \"财务一科\", key: \"2\" },\n { a: \"ASVAL_201903120002\", b: \"小红\", c: \"女\", d: \"财务一科\", key: \"3\" }\n];\nclass Demo21 extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n data: data\n }\n }\n\n render() {\n return (\n
员工信息统计表
}\n footer={currentData =>
合计: 共{data.length}条数据
}\n />\n );\n }\n}\n\nexport default Demo21;\n", "desc": " 可自定义页头和页脚。" }, { "example": _react2['default'].createElement(Demo0302, null), "title": " 渲染远程数据", "code": "/**\n*\n* @title 渲染远程数据\n* @parent 数据操作 Data Opetation\n* @description 可通过 ajax 请求方式,从服务端读取并展现数据。也可自行接入其他数据处理方式。\n* demo0302\n*/\n\nimport React, { Component } from \"react\";\nimport { Table, Button } from 'tinper-bee';\n\nimport reqwest from 'reqwest';\n\n\nconst columns = [{\n title: 'Name',\n dataIndex: 'name',\n sorter: true,\n render: name => `${name.first} ${name.last}`,\n width: '20%',\n}, {\n title: 'Gender',\n dataIndex: 'gender',\n filters: [\n { text: 'Male', value: 'male' },\n { text: 'Female', value: 'female' },\n ],\n width: '20%',\n}, {\n title: 'Email',\n dataIndex: 'email',\n}];\n\nclass Demo22 extends Component {\n constructor(props) {\n super(props);\n this.state = {\n data: [],\n loading: false,\n }\n }\n\n fetch = (params = {}) => {\n console.log('params:', params);\n this.setState({ loading: true });\n reqwest({\n url: 'https://randomuser.me/api',\n method: 'get',\n data: {\n results: 10,\n ...params,\n },\n type: 'json',\n }).then((data) => {\n this.setState({\n loading: false,\n data: data.results,\n });\n });\n }\n\n render() {\n return (\n
\n \n \n
\n );\n }\n}\n\nexport default Demo22;\n", "desc": " 可通过 ajax 请求方式,从服务端读取并展现数据。也可自行接入其他数据处理方式。", "scss_code": ".demo22{\n .opt-btns{\n margin-bottom: 8px;\n }\n}" }, { "example": _react2['default'].createElement(Demo0401, null), "title": " 悬浮列", "code": "/**\n*\n* @title 悬浮列\n* @parent 列渲染 Custom Render\n* @description 鼠标hover行时呼出操作按钮。\n* demo0401\n*/\n\nimport React, { Component } from \"react\";\nimport { Table, Button,Popconfirm } from 'tinper-bee';\n\n\n\nconst columns = [\n { title: \"员工编号\", dataIndex: \"a\", key: \"a\", width: 150 },\n { title: \"员工姓名\", dataIndex: \"b\", key: \"b\", width: 100 },\n { title: \"性别\", dataIndex: \"c\", key: \"c\", width: 100 },\n { title: \"部门\", dataIndex: \"d\", key: \"d\", width: 100 }\n];\n\nconst data = [\n { a: \"ASVAL_201903280005\", b: \"小张\", c: \"男\", d: \"财务二科\", key: \"1\" },\n { a: \"ASVAL_201903200004\", b: \"小明\", c: \"男\", d: \"财务一科\", key: \"2\" },\n { a: \"ASVAL_201903120002\", b: \"小红\", c: \"女\", d: \"财务一科\", key: \"3\" }\n];\n\nclass Demo11 extends Component {\n constructor(props) {\n super(props);\n }\n\n deleteRow=()=>{\n console.log('删除第' , this.currentIndex , '行');\n }\n\n onRowHover=(index,record)=>{\n this.currentIndex = index;\n this.currentRecord = record;\n }\n\n getHoverContent=(record, index)=>{\n return (\n
\n \n \n \n
\n )\n }\n\n render() {\n return (\n \n );\n }\n}\n\nexport default Demo11;\n", "desc": " 鼠标hover行时呼出操作按钮。" }, { "example": _react2['default'].createElement(Demo0402, null), "title": " 多列表头", "code": "/**\r\n *\r\n * @title 多列表头\r\n * @parent 列渲染 Custom Render\r\n * @description columns[n] 可以内嵌 children,以渲染分组表头。\r\n * 自定义表头高度需要传headerHeight,注:修改th的padding top和bottom置为0,否则会有影响\r\n * 多列表头拖拽的时候,原则只拖拽叶子节点的表头。\r\n * demo0402\r\n */\r\n\r\nimport React, { Component } from \"react\";\nimport { Table } from 'tinper-bee';\r\n\r\n\r\nimport dragColumn from 'bee-table/bulid/lib/dragColumn';\r\n\r\nconst columns = [\r\n {\r\n title: \"姓名\",\r\n dataIndex: \"name\",\r\n key: \"name\",\r\n width: 100,\r\n fixed: \"left\"\r\n },\r\n {\r\n title: \"个人信息\",\r\n width:600,\r\n children: [\r\n {\r\n title: \"年龄\",\r\n dataIndex: \"age\",\r\n key: \"age\",\r\n width: 200\r\n },\r\n {\r\n title: \"地址\",\r\n children: [\r\n {\r\n title: \"街道\",\r\n dataIndex: \"street\",\r\n key: \"street\",\r\n width: 200\r\n },\r\n {\r\n title: \"单元\",\r\n children: [\r\n {\r\n title: \"楼号\",\r\n dataIndex: \"building\",\r\n key: \"building\",\r\n width: 100\r\n },\r\n {\r\n title: \"门户\",\r\n dataIndex: \"number\",\r\n key: \"number\",\r\n width: 100\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n title: \"公司信息\",\r\n width:400,\r\n children: [\r\n {\r\n title: \"公司地址\",\r\n dataIndex: \"companyAddress\",\r\n key: \"companyAddress\",\r\n width:200,\r\n },\r\n {\r\n title: \"公司名称\",\r\n dataIndex: \"companyName\",\r\n key: \"companyName\",\r\n width:200,\r\n }\r\n ]\r\n },\r\n {\r\n title: \"性别\",\r\n dataIndex: \"gender\",\r\n key: \"gender\",\r\n width: 60,\r\n fixed: \"right\"\r\n }\r\n];\r\n\r\nconst data = [];\r\nfor (let i = 0; i < 20; i++) {\r\n data.push({\r\n key: i,\r\n name: \"John Brown\",\r\n age: i + 1,\r\n street: \"Lake Park\",\r\n building: \"C\",\r\n number: 2035,\r\n companyAddress: \"北清路 68 号\",\r\n companyName: \"用友\",\r\n gender: \"男\"\r\n });\r\n}\r\n\r\nconst DragColumnTable = dragColumn(Table);\r\n\r\nclass Demo12 extends Component {\r\n render() {\r\n return (\r\n {\r\n console.log(width+\"--调整列宽后触发事件\",e.target);\r\n }}\r\n scroll={{ y: 240 }}\r\n />\r\n );\r\n }\r\n}\r\n\r\nexport default Demo12;\r\n", "desc": " columns[n] 可以内嵌 children,以渲染分组表头。", "scss_code": ".demo32{\n .u-table-thead th {\n padding-top: 0px;\n padding-bottom: 0px;\n }\n}" }, { "example": _react2['default'].createElement(Demo0404, null), "title": " 数据关联", "code": "/**\n*\n* @title 数据关联\n* @parent 列渲染 Custom Render\n* @description 数据行关联自定义菜单显示\n* demo0404\n*/\n\nimport React, { Component } from 'react';\nimport { Table, Icon,Checkbox,Dropdown,Menu } from 'tinper-bee';\n\n\nimport multiSelect from \"bee-table/bulid/lib/newMultiSelect\";\nimport sort from \"bee-table/bulid/lib/sort\";\n\nconst { Item } = Menu;\n\nconst data = [\n { \n num:\"NU0391025\", \n name: \"aa\",\n sex: \"男\",\n dept:'财务二科', \n rank:\"T1\",\n year:\"1\",\n seniority:\"1\",\n key: \"1\"\n }, \n { \n num:\"NU0391026\", \n name: \"bb\",\n sex: \"女\",\n dept:'财务一科', \n rank:\"M1\",\n year:\"1\",\n seniority:\"1\",\n key: \"2\"\n },\n { \n num:\"NU0391027\", \n name: \"dd\",\n sex: \"女\",\n dept:'财务一科', \n rank:\"T2\",\n year:\"2\",\n seniority:\"2\",\n key: \"3\"\n }\n];\n\nconst MultiSelectTable = multiSelect(Table, Checkbox);\nconst ComplexTable = sort(MultiSelectTable, Icon);\n\nclass Demo13 extends Component {\n constructor(props) {\n super(props);\n }\n getSelectedDataFunc = data => {\n console.log(data);\n }\n onSelect = (item) => {\n console.log(item);\n }\n render() {\n const menu1 = (\n \n 模态弹出\n 链接跳转\n 打开新页\n );\n let columns = [\n { title: \"关联\",dataIndex: \"link\",key: \"link\",width: 80, \n render: (text, record, index) => {\n return (\n \n \n \n )\n }\n },\n { title: \"员工编号\",dataIndex: \"num\",key: \"num\",width: 200 },\n { title: \"员工姓名\",dataIndex: \"name\",key: \"name\", width: 200},\n { title: \"员工性别\",dataIndex: \"sex\",key: \"sex\",width: 200 },\n { title: \"部门\",dataIndex: \"dept\",key: \"dept\",width: 200},\n { title: \"职级\",dataIndex: \"rank\",key: \"rank\",width: 200},\n { title: \"工龄\",dataIndex: \"year\",key: \"year\",width: 200},\n { title: \"司龄\",dataIndex: \"seniority\",key: \"seniority\",width: 200}\n ];\n return \n }\n}\n\nexport default Demo13; ", "desc": " 数据行关联自定义菜单显示" }, { "example": _react2['default'].createElement(Demo0405, null), "title": " 列合计(总计)", "code": "/**\n *\n * @title 列合计(总计)\n * @parent 列渲染 Custom Render\n * @description 给需要计算合计的列(columns),设置sumCol值为true即可,支持动态设置数据源。\n * demo0405\n */\n\nimport React, { Component } from \"react\";\nimport { Table, Checkbox } from 'tinper-bee';\n\n \nimport sum from \"bee-table/bulid/lib/sum.js\";\nimport multiSelect from \"bee-table/bulid/lib/multiSelect.js\";\n \nlet ComplexTable = multiSelect(sum(Table), Checkbox);\n//sum第二个参数可以设置精度,例如 sum(Table,4); 设计精度为4\nlet _sum = 0;\nconst columns = [\n {\n title: \"单据编号\",\n dataIndex: \"num\",\n key: \"num\",\n width: 120,\n fixed: \"left\"\n },\n {\n title: \"单据日期\",\n dataIndex: \"date\",\n key: \"date\",\n width: 200,\n },\n {\n title: \"业务类型\",\n dataIndex: \"type\",\n key: \"type\",\n width: 200\n },\n {\n title: \"供应商\",\n dataIndex: \"supplier\",\n key: \"supplier\",\n width: 100\n },\n {\n title: \"联系人\",\n dataIndex: \"contact\",\n key: \"contact\",\n },\n {\n title: \"仓库\",\n dataIndex: \"warehouse\",\n key: \"warehouse\",\n width: 80,\n },\n {\n title: \"整单数量\",\n dataIndex: \"total\",\n key: \"total\",\n width: 100,\n sumCol: true\n },\n {\n title: \"金额\",\n dataIndex: \"money\",\n key: \"money\",\n width: 100,\n sumCol: true\n }\n];\n\nfunction getData(){\n const data = [];\n for (let i = 0; i < 5; i++) {\n data.push({\n key: i,\n num: \"NU039100\"+i,\n date: \"2019-03-01\",\n type: \"普通采购\",\n supplier: \"gys\"+i,\n contact: \"Tom\",\n warehouse: \"普通仓\",\n total: i + Math.floor(Math.random()*10),\n money: 20 * Math.floor(Math.random()*10)\n });\n _sum += data[i].total;\n _sum += data[i].money;\n }\n return data;\n}\n\nclass Demo35 extends Component {\n \n constructor(props) {\n super(props);\n this.state = {\n data: getData(),\n sum:_sum\n };\n }\n\n render() {\n const {data} = this.state;\n return (\n
\n
总计: {_sum}
}\n />\n
\n );\n }\n}\nexport default Demo35;\n", "desc": " 给需要计算合计的列(columns),设置sumCol值为true即可,支持动态设置数据源。" }, { "example": _react2['default'].createElement(Demo0406, null), "title": " 自定义整行和整列样式表格", "code": "/**\n *\n * @title 自定义整行和整列样式表格\n * @parent 列渲染 Custom Render\n * @description 某行或某列的样式,严格按照react的样式书写规则,即对象内每一个属性的键为小写驼峰式,值为字符串。此demo展示自定义整行或整列的背景色和字体内容颜色。\n * demo0406\n */\n\nimport React, { Component } from \"react\";\nimport { Table } from 'tinper-bee';\n\n\nconst columns = [\n { title: \"员工编号\", dataIndex: \"a\", key: \"a\", width: 150 },\n { title: \"员工姓名\", dataIndex: \"b\", key: \"b\", width:100},\n { title: \"性别\", dataIndex: \"c\", key: \"c\", width: 100,style: {backgroundColor:'#e3f2fd',color:'#505F79'}},\n { title: \"部门\", dataIndex: \"d\", key: \"d\", width: 100 },\n { title: \"职级\", dataIndex: \"e\", key: \"e\", width: 100 }\n];\n\nconst data = [\n { a: \"ASVAL_20190328\", b: \"小张\", c: \"男\", d: \"财务二科\", e: \"M1\", key: \"1\" ,style:{backgroundColor:'#ffebee',color:'#000'}},\n { a: \"ASVAL_20190320\", b: \"小明\", c: \"男\", d: \"财务一科\", e: \"T1\", key: \"2\" },\n { a: \"ASVAL_20190312\", b: \"小红\", c: \"女\", d: \"财务一科\", e: \"T2\", key: \"3\" }\n];\n\nclass Demo0406 extends Component {\n render() {\n return (\n \n );\n }\n}\nexport default Demo0406\n", "desc": " 某行或某列的样式,严格按照react的样式书写规则,即对象内每一个属性的键为小写驼峰式,值为字符串。此demo展示自定义整行或整列的背景色和字体内容颜色。" }, { "example": _react2['default'].createElement(Demo0501, null), "title": " 行内编辑", "code": "/**\n *\n * @title 行内编辑\n * @parent 编辑 Editor\n * @description 可以对行进行编辑的表格\n * demo0501\n */\nimport React, { Component } from \"react\";\nimport { Table, Select, Form, FormControl, Button, Icon, Tooltip } from 'tinper-bee';\n\n\nconst Option = Select.Option;\nimport { RefTreeWithInput } from \"ref-tree\";\n\nclass StringEditCell extends Component {\n constructor(props, context) {\n super(props);\n this.state = {\n value: props.value\n };\n }\n\n componentWillReceiveProps(nextProps) {\n if (!nextProps.editable) {\n this.setState({ value: nextProps.value });\n }\n }\n\n handleChange = value => {\n const { onChange, throwError } = this.props;\n if (value === \"\") {\n throwError && throwError(true);\n } else {\n throwError && throwError(false);\n }\n this.setState({ value });\n onChange && onChange(value);\n };\n\n render() {\n const { editable, required, colName } = this.props;\n const { value } = this.state;\n let cls = \"editable-cell-input-wrapper\";\n if (required) cls += \" required\";\n if (value === \"\") cls += \" verify-cell\";\n return editable ? (\n
\n
\n \n \n {value === \"\" ? (\n {\"请输入\" + colName}
}\n >\n \n \n ) : null}\n \n
\n \n ) : (\n value || \" \"\n );\n }\n}\n\nconst SELECT_SOURCE = [\"男\", \"女\"];\n\nclass SelectEditCell extends Component {\n constructor(props, context) {\n super(props);\n this.state = {\n value: props.value\n };\n }\n\n componentWillReceiveProps(nextProps) {\n if (!nextProps.editable) {\n this.setState({ value: nextProps.value });\n }\n }\n\n handleSelect = value => {\n this.setState({ value });\n this.props.onChange && this.props.onChange(value);\n };\n\n render() {\n const { editable } = this.props;\n const { value } = this.state;\n let cls = \"editable-cell-input-wrapper\";\n return editable ? (\n
\n
\n \n
\n
\n ) : (\n value || \" \"\n );\n }\n}\n\nconst option = {\n title: \"树\",\n searchable: true,\n multiple: false,\n param: {\n refCode: \"neworganizition_tree\"\n },\n checkStrictly: true,\n disabled: false,\n nodeDisplay: record => {\n return record.refname;\n },\n displayField: record => {\n return record.refname;\n }, //显示内容的键\n valueField: \"refpk\", //真实 value 的键\n refModelUrl: {\n treeUrl: \"https://mock.yonyoucloud.com/mock/358/blobRefTree\",\n treeUrl: \"/pap_basedoc/common-ref/blobRefTree\"\n },\n matchUrl: \"/pap_basedoc/common-ref/matchPKRefJSON\",\n filterUrl: \"/pap_basedoc/common-ref/filterRefJSON\",\n lazyModal: false,\n strictMode: true,\n lang: \"zh_CN\",\n treeData: [\n {\n code: \"org1\",\n children: [\n {\n code: \"bj\",\n entityType: \"mainEntity\",\n name: \"北京总部-简\",\n pid: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refcode: \"bj\",\n refpk: \"5305416e-e7b4-4051-90bd-12d12942295b\",\n id: \"5305416e-e7b4-4051-90bd-12d12942295b\",\n isLeaf: \"true\",\n refname: \"北京总部-简\"\n },\n {\n code: \"xd\",\n entityType: \"mainEntity\",\n name: \"新道-简\",\n pid: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refcode: \"xd\",\n refpk: \"b691afff-ea83-4a3f-affa-beb2be9cba52\",\n id: \"b691afff-ea83-4a3f-affa-beb2be9cba52\",\n isLeaf: \"true\",\n refname: \"新道-简\"\n },\n {\n code: \"yy3\",\n entityType: \"mainEntity\",\n name: \"test3\",\n pid: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refcode: \"yy3\",\n refpk: \"e75694d9-7c00-4e9e-9573-d29465ae79a9\",\n id: \"e75694d9-7c00-4e9e-9573-d29465ae79a9\",\n isLeaf: \"true\",\n refname: \"test3\"\n },\n {\n code: \"yy1\",\n entityType: \"mainEntity\",\n name: \"test1\",\n pid: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refcode: \"yy1\",\n refpk: \"fd32ceeb-57a8-4f44-816e-fa660f5715ab\",\n id: \"fd32ceeb-57a8-4f44-816e-fa660f5715ab\",\n isLeaf: \"true\",\n refname: \"test1\"\n },\n {\n code: \"dept2\",\n children: [\n {\n code: \"cs\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"测试部-简\",\n pid: \"0ebbb6d8-250a-4d1d-a019-7ae951629a2c\",\n refcode: \"cs\",\n refpk: \"cc43a66a-438d-4106-937f-bec44406f771\",\n id: \"cc43a66a-438d-4106-937f-bec44406f771\",\n isLeaf: \"true\",\n refname: \"测试部-简\"\n },\n {\n code: \"qd\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"前端部-简\",\n pid: \"0ebbb6d8-250a-4d1d-a019-7ae951629a2c\",\n refcode: \"qd\",\n refpk: \"73a10edd-aae8-4f31-af25-1f48f0a3b344\",\n id: \"73a10edd-aae8-4f31-af25-1f48f0a3b344\",\n isLeaf: \"true\",\n refname: \"前端部-简\"\n }\n ],\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"生产处\",\n refcode: \"dept2\",\n refpk: \"0ebbb6d8-250a-4d1d-a019-7ae951629a2c\",\n id: \"0ebbb6d8-250a-4d1d-a019-7ae951629a2c\",\n refname: \"生产处\"\n },\n {\n code: \"dept1\",\n children: [\n {\n code: \"dept1_2\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务二科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_2\",\n refpk: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n id: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n isLeaf: \"true\",\n refname: \"财务二科\"\n },\n {\n code: \"dept1_1\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务一科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_1\",\n refpk: \"9711d912-3184-4063-90c5-1facc727813c\",\n id: \"9711d912-3184-4063-90c5-1facc727813c\",\n isLeaf: \"true\",\n refname: \"财务一科\"\n }\n ],\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务处\",\n refcode: \"dept1\",\n refpk: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n id: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refname: \"财务处\"\n }\n ],\n entityType: \"mainEntity\",\n name: \"用友集团\",\n refcode: \"org1\",\n refpk: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refname: \"用友集团\"\n }\n ]\n};\n\nconst RefEditCell = Form.createForm()(\n class RefComponentWarpper extends Component {\n constructor(props, context) {\n super(props);\n this.state = {\n value: props.value\n };\n }\n\n componentWillReceiveProps(nextProps) {\n if (!nextProps.editable) {\n this.setState({ value: nextProps.value });\n }\n }\n\n handleSelect = values => {\n this.setState({ value: values[0] });\n this.props.onChange && this.props.onChange(values[0]);\n };\n\n render() {\n const { getFieldProps, getFieldError } = this.props.form;\n const { editable, required } = this.props;\n const { value } = this.state;\n let cls = \"editable-cell-input-wrapper\";\n if (required) cls += \" required\";\n if (getFieldError(\"refValue\")) cls += \" verify-cell\";\n return editable ? (\n
\n \n {\"请输入\" + this.props.colName}\n
\n }\n >\n \n \n ),\n pattern: /[^{\"refname\":\"\",\"refpk\":\"\"}|{\"refpk\":\"\",\"refname\":\"\"}]/\n }\n ]\n })}\n />\n {getFieldError(\"refValue\")}\n \n ) : (\n value.name || \" \"\n );\n }\n }\n);\n\nlet dataSource = [\n {\n a: \"ASVAL_201903280005\",\n b: \"小张\",\n c: \"男\",\n d: {\n code: \"dept1_2\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务二科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_2\",\n refpk: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n id: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n isLeaf: \"true\",\n refname: \"财务二科\"\n },\n key: \"1\"\n },\n {\n a: \"ASVAL_201903200004\",\n b: \"小明\",\n c: \"男\",\n d: {\n code: \"dept1_2\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务二科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_2\",\n refpk: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n id: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n isLeaf: \"true\",\n refname: \"财务二科\"\n },\n key: \"2\"\n },\n {\n a: \"ASVAL_201903120002\",\n b: \"小红\",\n c: \"女\",\n d: {\n code: \"dept1_1\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务一科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_1\",\n refpk: \"9711d912-3184-4063-90c5-1facc727813c\",\n id: \"9711d912-3184-4063-90c5-1facc727813c\",\n isLeaf: \"true\",\n refname: \"财务一科\"\n },\n key: \"3\"\n }\n];\n\nclass Demo0501 extends Component {\n constructor(props, context) {\n super(props);\n this.state = {\n dataSource: dataSource,\n editingRowsMap: {},\n currentIndex: null,\n errorEditFlag: false\n };\n\n this.columns = [\n {\n title: \"员工编号\",\n dataIndex: \"a\",\n key: \"a\"\n },\n {\n title: \"名字\",\n dataIndex: \"b\",\n key: \"b\",\n render: (text, record, index) => (\n \n )\n },\n {\n title: \"性别\",\n dataIndex: \"c\",\n key: \"c\",\n width: 100,\n render: (text, record, index) => (\n \n )\n },\n {\n title: \"部门\",\n dataIndex: \"d\",\n key: \"d\",\n width: 215,\n render: (text, record, index) => (\n \n )\n },\n // 只是用来占位占宽度的\n {\n key: \"placeholder\"\n }\n ];\n\n this.state = {\n dataSource: dataSource,\n editingRowsMap: {},\n currentIndex: null,\n errorEditFlag: false\n };\n\n this.dataBuffer = {};\n }\n\n edit = index => () => {\n if (index === null) return;\n let editingRowsMap = { ...this.state.editingRowsMap };\n editingRowsMap[index] = index.toString();\n // 最好使用深复制\n this.dataBuffer[index] = { ...this.state.dataSource[index] };\n this.setState({ editingRowsMap });\n };\n\n abortEdit = index => () => {\n let editingRowsMap = { ...this.state.editingRowsMap };\n delete editingRowsMap[index];\n delete this.dataBuffer[index];\n this.setState({ editingRowsMap });\n };\n\n delete = index => () => {\n if (index === null) return;\n let { dataSource } = this.state;\n dataSource.splice(index,1);\n this.setState({\n dataSource:dataSource\n });\n }\n\n commitChange = index => () => {\n if (this.state.errorEditFlag) return;\n let editingRowsMap = { ...this.state.editingRowsMap };\n delete editingRowsMap[index];\n let dataSource = [...this.state.dataSource];\n dataSource[index] = { ...this.dataBuffer[index] };\n this.setState({ editingRowsMap, dataSource });\n };\n\n onCellChange = (index, key) => value => {\n this.dataBuffer[index][key] = value;\n };\n\n throwError = isError => {\n if (isError !== this.state.errorEditFlag)\n this.setState({ errorEditFlag: isError });\n };\n\n handleRowHover = (index, record) => {\n this.currentRecord = record;\n this.setState({ currentIndex: index });\n };\n\n renderRowHover = () => {\n const { currentIndex } = this.state;\n return this.state.editingRowsMap[currentIndex] ? (\n
\n \n 取消\n \n \n
\n ) : (\n
\n \n \n
\n );\n };\n\n render() {\n const { dataSource } = this.state;\n const columns = this.columns;\n return (\n
\n \n
\n );\n }\n}\n\nexport default Demo0501;\n", "desc": " 可以对行进行编辑的表格", "scss_code": ".demo0501 .u-table {\n .u-row-hover {\n .opt-btns,.cancel-btns {\n button {\n margin: 0;\n &:first-child {\n margin-right: 8px;\n }\n }\n }\n }\n\n .u-table-row {\n td {\n padding: 5px 8px;\n\n input {\n font-size: 12px;\n padding-left: 5px;\n }\n }\n\n .u-form-control,\n .u-select-selection {\n height: 30px;\n }\n }\n\n .editable-cell-text-wrapper {\n box-sizing: border-box;\n line-height: 20px;\n border-radius: 3px;\n }\n\n .required {\n margin-left: 10px;\n position: relative;\n\n &::before {\n content: \" \";\n border: 1px solid #F44336;\n width: 0;\n height: 12px;\n position: absolute;\n top: 9px;\n left: -8px;\n }\n\n span.u-input-group {\n display: block\n }\n }\n .verify-cell {\n padding-right: 25px !important;\n }\n\n .required-icon {\n position: absolute;\n top: 2px;\n color: #F44336;\n font-size: 20px;\n }\n\n .ref-input-wrap {\n width: 160px !important;\n }\n}\n\n.u-editable-table-tp {\n .tp-content {\n color: #F44336;\n }\n}" }, { "example": _react2['default'].createElement(Demo0502, null), "title": " 单元格编辑", "code": "/**\n *\n * @title 单元格编辑\n * @parent 编辑 Editor\n * @description 可以对单元格进行编辑的表格,示例中给出输入框、下拉框、参照的编辑模式,以及两类校验。(通过对 coloums 配置 render 属性实现渲染不同格式的编辑态单元格)\n * demo0502\n */\nimport React, { Component } from \"react\";\nimport { Table, Icon, Select, Tooltip, Form } from 'tinper-bee';\n\n\nconst Option = Select.Option;\nimport { RefTreeWithInput } from \"ref-tree\";\n\nclass StringEditCell extends Component {\n constructor(props, context) {\n super(props);\n this.state = {\n value: this.props.value,\n editable: false\n };\n this.editWarp = React.createRef();\n }\n\n commitChange = () => {\n if (this.state.value === \"\") return;\n this.setState({ editable: false });\n if (this.props.onChange) {\n this.props.onChange(this.state.value);\n }\n };\n\n edit = () => {\n this.setState({ editable: true });\n };\n\n handleKeydown = event => {\n if (event.keyCode == 13) {\n this.commitChange();\n }\n };\n\n handleChange = e => {\n if (e.target.value === \"\") this.editWarp.className += \" verify-cell\";\n this.setState({ value: e.target.value });\n };\n\n render() {\n const { value, editable } = this.state;\n return (\n
\n {editable ? (\n
this.editWarp = el} className=\"editable-cell-input-wrapper\">\n \n {value === \"\" ? (\n \n {\"请输入\" + this.props.colName}\n
\n }\n >\n \n \n ) : null}\n
\n ) : (\n
\n {value || \" \"}\n
\n )}\n \n );\n }\n}\n\nconst SELECT_SOURCE = [\"男\", \"女\"];\n\nclass SelectEditCell extends Component {\n constructor(props, context) {\n super(props);\n this.state = {\n value: this.props.value,\n editable: false\n };\n }\n\n handleSelect = value => {\n this.setState({ value });\n };\n\n commitChange = () => {\n this.setState({ editable: false });\n if (this.props.onChange) {\n this.props.onChange(this.state.value);\n }\n };\n\n edit = () => {\n this.setState({ editable: true });\n };\n\n render() {\n const { value, editable } = this.state;\n return (\n
\n {editable ? (\n
\n \n {SELECT_SOURCE.map((item, index) => (\n \n ))}\n \n
\n ) : (\n
\n {value || \" \"}\n
\n )}\n
\n );\n }\n}\n\nconst option = {\n title: \"树\",\n searchable: true,\n multiple: false,\n param: {\n refCode: \"neworganizition_tree\"\n },\n checkStrictly: true,\n disabled: false,\n nodeDisplay: record => {\n return record.refname;\n },\n displayField: record => {\n return record.refname;\n }, //显示内容的键\n valueField: \"refpk\", //真实 value 的键\n refModelUrl: {\n treeUrl: \"https://mock.yonyoucloud.com/mock/358/blobRefTree\",\n treeUrl: \"/pap_basedoc/common-ref/blobRefTree\"\n },\n matchUrl: \"/pap_basedoc/common-ref/matchPKRefJSON\",\n filterUrl: \"/pap_basedoc/common-ref/filterRefJSON\",\n lazyModal: false,\n strictMode: true,\n lang: \"zh_CN\",\n treeData: [\n {\n code: \"org1\",\n children: [\n {\n code: \"bj\",\n entityType: \"mainEntity\",\n name: \"北京总部-简\",\n pid: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refcode: \"bj\",\n refpk: \"5305416e-e7b4-4051-90bd-12d12942295b\",\n id: \"5305416e-e7b4-4051-90bd-12d12942295b\",\n isLeaf: \"true\",\n refname: \"北京总部-简\"\n },\n {\n code: \"xd\",\n entityType: \"mainEntity\",\n name: \"新道-简\",\n pid: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refcode: \"xd\",\n refpk: \"b691afff-ea83-4a3f-affa-beb2be9cba52\",\n id: \"b691afff-ea83-4a3f-affa-beb2be9cba52\",\n isLeaf: \"true\",\n refname: \"新道-简\"\n },\n {\n code: \"yy3\",\n entityType: \"mainEntity\",\n name: \"test3\",\n pid: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refcode: \"yy3\",\n refpk: \"e75694d9-7c00-4e9e-9573-d29465ae79a9\",\n id: \"e75694d9-7c00-4e9e-9573-d29465ae79a9\",\n isLeaf: \"true\",\n refname: \"test3\"\n },\n {\n code: \"yy1\",\n entityType: \"mainEntity\",\n name: \"test1\",\n pid: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refcode: \"yy1\",\n refpk: \"fd32ceeb-57a8-4f44-816e-fa660f5715ab\",\n id: \"fd32ceeb-57a8-4f44-816e-fa660f5715ab\",\n isLeaf: \"true\",\n refname: \"test1\"\n },\n {\n code: \"dept2\",\n children: [\n {\n code: \"cs\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"测试部-简\",\n pid: \"0ebbb6d8-250a-4d1d-a019-7ae951629a2c\",\n refcode: \"cs\",\n refpk: \"cc43a66a-438d-4106-937f-bec44406f771\",\n id: \"cc43a66a-438d-4106-937f-bec44406f771\",\n isLeaf: \"true\",\n refname: \"测试部-简\"\n },\n {\n code: \"qd\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"前端部-简\",\n pid: \"0ebbb6d8-250a-4d1d-a019-7ae951629a2c\",\n refcode: \"qd\",\n refpk: \"73a10edd-aae8-4f31-af25-1f48f0a3b344\",\n id: \"73a10edd-aae8-4f31-af25-1f48f0a3b344\",\n isLeaf: \"true\",\n refname: \"前端部-简\"\n }\n ],\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"生产处\",\n refcode: \"dept2\",\n refpk: \"0ebbb6d8-250a-4d1d-a019-7ae951629a2c\",\n id: \"0ebbb6d8-250a-4d1d-a019-7ae951629a2c\",\n refname: \"生产处\"\n },\n {\n code: \"dept1\",\n children: [\n {\n code: \"dept1_2\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务二科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_2\",\n refpk: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n id: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n isLeaf: \"true\",\n refname: \"财务二科\"\n },\n {\n code: \"dept1_1\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务一科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_1\",\n refpk: \"9711d912-3184-4063-90c5-1facc727813c\",\n id: \"9711d912-3184-4063-90c5-1facc727813c\",\n isLeaf: \"true\",\n refname: \"财务一科\"\n }\n ],\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务处\",\n refcode: \"dept1\",\n refpk: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n id: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refname: \"财务处\"\n }\n ],\n entityType: \"mainEntity\",\n name: \"用友集团\",\n refcode: \"org1\",\n refpk: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refname: \"用友集团\"\n }\n ]\n};\n\nconst RefEditCell = Form.createForm()(\n class RefComponentWarpper extends Component {\n constructor(props, context) {\n super(props, context);\n this.state = {\n value: this.props.value.d,\n editable: false\n };\n this.refWarp = React.createRef();\n }\n\n edit = () => {\n this.setState({ editable: true }, () => this.refWarp.focus());\n };\n\n handleSelect = values => {\n this.setState({ value: values[0] });\n };\n\n commitChange = () => {\n this.setState({ editable: false });\n if (this.props.onChange) {\n this.props.onChange(this.state.value);\n }\n };\n\n onRefBlur = e => {\n // 消除点击子组件,父组件先失焦再聚焦的事件触发过程带来的副作用\n const __REF_CONTENT__ = document.querySelector(\"div.ref-core-modal\");\n if (!__REF_CONTENT__ && e.target === this.refWarp) {\n this.commitChange();\n }\n };\n\n render() {\n const { getFieldProps, getFieldError } = this.props.form;\n const { value, editable } = this.state;\n return editable ? (\n (this.refWarp = el)}\n className=\"editable-cell-input-wrapper\"\n tabIndex={-1}\n onBlur={this.onRefBlur}\n >\n \n \n {getFieldError(\"code1\")}\n \n \n ) : (\n
\n {value.name || \" \"}\n
\n );\n }\n }\n);\n\nconst dataSource = [\n {\n a: \"ASVAL_201903280005\",\n b: \"小张\",\n c: \"男\",\n d: {\n code: \"dept1_2\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务二科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_2\",\n refpk: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n id: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n isLeaf: \"true\",\n refname: \"财务二科\"\n },\n key: \"1\"\n },\n {\n a: \"ASVAL_201903200004\",\n b: \"小明\",\n c: \"男\",\n d: {\n code: \"dept1_2\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务二科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_2\",\n refpk: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n id: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n isLeaf: \"true\",\n refname: \"财务二科\"\n },\n key: \"2\"\n },\n {\n a: \"ASVAL_201903120002\",\n b: \"小红\",\n c: \"女\",\n d: {\n code: \"dept1_1\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务一科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_1\",\n refpk: \"9711d912-3184-4063-90c5-1facc727813c\",\n id: \"9711d912-3184-4063-90c5-1facc727813c\",\n isLeaf: \"true\",\n refname: \"财务一科\"\n },\n key: \"3\"\n }\n];\n\nclass Demo0502 extends Component {\n constructor(props, context) {\n super(props);\n this.columns = [\n {\n title: \"员工编号\",\n dataIndex: \"a\",\n key: \"a\"\n },\n {\n title: \"名字\",\n dataIndex: \"b\",\n key: \"b\",\n render: (text, record, index) => (\n \n )\n },\n {\n title: \"性别\",\n dataIndex: \"c\",\n key: \"c\",\n width: 100,\n render: (text, record, index) => (\n \n )\n },\n {\n title: \"部门\",\n dataIndex: \"d\",\n key: \"d\",\n width: 215,\n render: (text, record, index) => (\n \n )\n },\n {\n key: \"placeholder\"\n }\n ];\n\n this.state = {\n dataSource: dataSource\n };\n }\n\n onCellChange = (index, key) => {\n return value => {\n const { dataSource } = this.state;\n dataSource[index][key] = value;\n this.setState({ dataSource }, () => console.dir(this.state.dataSource));\n };\n };\n\n render() {\n return (\n
\n
\n \n );\n }\n}\n\nexport default Demo0502;\n", "desc": " 可以对单元格进行编辑的表格,示例中给出输入框、下拉框、参照的编辑模式,以及两类校验。(通过对 coloums 配置 render 属性实现渲染不同格式的编辑态单元格)", "scss_code": ".u-editable-table .u-table {\n .u-table-row {\n td {\n padding: 5px 8px;\n\n input {\n padding-left: 5px;\n font-size: 12px;\n\n &.error {\n border-color: #F44336;\n }\n }\n }\n\n .editable-cell {\n height: 30px;\n }\n\n &-hover {\n .editable-cell-text-wrapper {\n line-height: 19px;\n }\n }\n\n .u-form-control,\n .u-select-selection {\n height: 30px;\n }\n }\n\n .editable-cell-text-wrapper {\n box-sizing: border-box;\n line-height: 20px;\n border-radius: 3px;\n }\n\n .editable-cell-input-wrapper {\n padding-right: 0;\n .ref-input-wrap {\n width: auto !important;\n height: 30px;\n .u-input-group{\n display: inline-block;\n }\n }\n }\n\n .verify-cell {\n padding-right: 25px !important;\n }\n\n .require {\n position: absolute;\n top: 2px;\n color: #F44336;\n font-size: 20px;\n }\n}\n\n.u-editable-table-tp {\n .tp-content {\n color: #F44336;\n }\n}" }, { "example": _react2['default'].createElement(Demo0503, null), "title": " 弹框(表单)编辑", "code": "/**\n *\n * @title 弹框(表单)编辑\n * @parent 编辑 Editor\n * @description 以弹框形式以对行进行编辑的表格\n * demo0503\n */\n\nimport React, { Component, PureComponent } from \"react\";\nimport { Table } from 'tinper-bee';\n\nimport {\n Select, Form, FormControl, Button, Icon,\n Tooltip, Modal, FormGroup, Label, Row, Col\n} from \"tinper-bee\";\nconst Option = Select.Option;\nimport { RefTreeWithInput } from \"ref-tree\";\n\nfunction handleFormValueChange(WarpCompProps, field, allFields) {\n const { onChange, throwError } = WarpCompProps;\n if (field.value === \"\") return throwError && throwError(true);\n throwError && throwError(false);\n onChange && onChange(field.value);\n}\n\nconst StringEditCell = Form.createForm({\n onValuesChange: handleFormValueChange\n})(PureStringEditCell);\n\nfunction PureStringEditCell(props) {\n const { getFieldProps, getFieldError } = props.form;\n const { value, required } = props;\n let cls = \"editable-cell\";\n if (required) cls += \" required\";\n return (\n
\n \n {\"请输入\" + props.colName}\n
\n }\n >\n \n \n )\n }\n ]\n })}\n />\n {getFieldError(\"value\")}\n \n );\n}\n\nconst SELECT_SOURCE = [\"男\", \"女\"];\n\nclass SelectEditCell extends PureComponent {\n constructor(props, context) {\n super(props);\n }\n\n handleSelect = value => {\n this.props.onChange && this.props.onChange(value);\n };\n\n render() {\n return (\n
\n \n
\n );\n }\n}\n\nconst option = {\n title: \"树\",\n searchable: true,\n multiple: false,\n param: {\n refCode: \"neworganizition_tree\"\n },\n checkStrictly: true,\n disabled: false,\n nodeDisplay: record => {\n return record.refname;\n },\n displayField: record => {\n return record.refname;\n }, //显示内容的键\n valueField: \"refpk\", //真实 value 的键\n refModelUrl: {\n treeUrl: \"https://mock.yonyoucloud.com/mock/358/blobRefTree\",\n treeUrl: \"/pap_basedoc/common-ref/blobRefTree\"\n },\n matchUrl: \"/pap_basedoc/common-ref/matchPKRefJSON\",\n filterUrl: \"/pap_basedoc/common-ref/filterRefJSON\",\n lazyModal: false,\n strictMode: true,\n lang: \"zh_CN\",\n treeData: [\n {\n code: \"org1\",\n children: [\n {\n code: \"bj\",\n entityType: \"mainEntity\",\n name: \"北京总部-简\",\n pid: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refcode: \"bj\",\n refpk: \"5305416e-e7b4-4051-90bd-12d12942295b\",\n id: \"5305416e-e7b4-4051-90bd-12d12942295b\",\n isLeaf: \"true\",\n refname: \"北京总部-简\"\n },\n {\n code: \"xd\",\n entityType: \"mainEntity\",\n name: \"新道-简\",\n pid: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refcode: \"xd\",\n refpk: \"b691afff-ea83-4a3f-affa-beb2be9cba52\",\n id: \"b691afff-ea83-4a3f-affa-beb2be9cba52\",\n isLeaf: \"true\",\n refname: \"新道-简\"\n },\n {\n code: \"yy3\",\n entityType: \"mainEntity\",\n name: \"test3\",\n pid: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refcode: \"yy3\",\n refpk: \"e75694d9-7c00-4e9e-9573-d29465ae79a9\",\n id: \"e75694d9-7c00-4e9e-9573-d29465ae79a9\",\n isLeaf: \"true\",\n refname: \"test3\"\n },\n {\n code: \"yy1\",\n entityType: \"mainEntity\",\n name: \"test1\",\n pid: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refcode: \"yy1\",\n refpk: \"fd32ceeb-57a8-4f44-816e-fa660f5715ab\",\n id: \"fd32ceeb-57a8-4f44-816e-fa660f5715ab\",\n isLeaf: \"true\",\n refname: \"test1\"\n },\n {\n code: \"dept2\",\n children: [\n {\n code: \"cs\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"测试部-简\",\n pid: \"0ebbb6d8-250a-4d1d-a019-7ae951629a2c\",\n refcode: \"cs\",\n refpk: \"cc43a66a-438d-4106-937f-bec44406f771\",\n id: \"cc43a66a-438d-4106-937f-bec44406f771\",\n isLeaf: \"true\",\n refname: \"测试部-简\"\n },\n {\n code: \"qd\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"前端部-简\",\n pid: \"0ebbb6d8-250a-4d1d-a019-7ae951629a2c\",\n refcode: \"qd\",\n refpk: \"73a10edd-aae8-4f31-af25-1f48f0a3b344\",\n id: \"73a10edd-aae8-4f31-af25-1f48f0a3b344\",\n isLeaf: \"true\",\n refname: \"前端部-简\"\n }\n ],\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"生产处\",\n refcode: \"dept2\",\n refpk: \"0ebbb6d8-250a-4d1d-a019-7ae951629a2c\",\n id: \"0ebbb6d8-250a-4d1d-a019-7ae951629a2c\",\n refname: \"生产处\"\n },\n {\n code: \"dept1\",\n children: [\n {\n code: \"dept1_2\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务二科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_2\",\n refpk: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n id: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n isLeaf: \"true\",\n refname: \"财务二科\"\n },\n {\n code: \"dept1_1\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务一科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_1\",\n refpk: \"9711d912-3184-4063-90c5-1facc727813c\",\n id: \"9711d912-3184-4063-90c5-1facc727813c\",\n isLeaf: \"true\",\n refname: \"财务一科\"\n }\n ],\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务处\",\n refcode: \"dept1\",\n refpk: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n id: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refname: \"财务处\"\n }\n ],\n entityType: \"mainEntity\",\n name: \"用友集团\",\n refcode: \"org1\",\n refpk: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refname: \"用友集团\"\n }\n ]\n};\n\nconst RefEditCell = Form.createForm()(\n class RefComponentWarpper extends PureComponent {\n constructor(props, context) {\n super(props);\n }\n\n handleSelect = values => {\n const { form, throwError, onChange } = this.props\n if (form.getFieldError(\"refValue\")) return throwError && throwError(true);\n throwError && throwError(false);\n onChange && onChange(values[0]);\n };\n\n render() {\n const { getFieldProps, getFieldError } = this.props.form;\n const { value, required } = this.props;\n let cls = \"editable-cell\";\n if (required) cls += \" required\";\n return (\n
\n \n {\"请输入\" + this.props.colName}\n
\n }\n >\n \n \n ),\n pattern: /[^{\"refname\":\"\",\"refpk\":\"\"}|{\"refpk\":\"\",\"refname\":\"\"}]/\n }\n ]\n })}\n />\n {getFieldError(\"refValue\")}\n \n );\n }\n }\n);\n\nclass EditModal extends Component {\n constructor(props, context) {\n super(props);\n this.state = {\n data: this.props.data,\n errorEditFlag: false\n };\n\n // 属性名对应 columns 属性中的 key 值\n this.renderElm = {\n b: (record, index) => (\n \n ),\n\n c: (record, index) => (\n \n ),\n d: (record, index) => (\n \n )\n }\n }\n\n onFieldChange = field => value => {\n let data = { ...this.state.data };\n data[field] = value;\n this.setState({ data });\n }\n\n submitChange = () => {\n if (this.state.errorEditFlag) return;\n const { onSubmit, onHide, currentIndex } = this.props;\n onSubmit && onSubmit(this.state.data, currentIndex);\n onHide && onHide();\n }\n\n throwError = isError => {\n if (isError !== this.state.errorEditFlag)\n this.setState({ errorEditFlag: isError });\n };\n\n render() {\n const { show, onHide, columns, currentIndex } = this.props;\n const { data } = this.state;\n return (\n \n \n 编辑行\n \n \n
\n \n {\n columns.map((item, index) => {\n return (\n
\n \n \n {this.renderElm[item.key] &&\n this.renderElm[item.key](\n data,\n currentIndex\n )}\n {!this.renderElm[item.key] && (\n
\n \n
\n )}\n
\n \n );\n })\n }\n \n \n \n \n \n 取消\n \n \n \n \n );\n }\n}\n\nlet dataSource = [\n {\n a: \"ASVAL_201903280005\",\n b: \"小张\",\n c: \"男\",\n d: {\n code: \"dept1_2\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务二科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_2\",\n refpk: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n id: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n isLeaf: \"true\",\n refname: \"财务二科\"\n },\n key: \"1\"\n },\n {\n a: \"ASVAL_201903200004\",\n b: \"小明\",\n c: \"男\",\n d: {\n code: \"dept1_2\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务二科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_2\",\n refpk: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n id: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n isLeaf: \"true\",\n refname: \"财务二科\"\n },\n key: \"2\"\n },\n {\n a: \"ASVAL_201903120002\",\n b: \"小红\",\n c: \"女\",\n d: {\n code: \"dept1_1\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务一科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_1\",\n refpk: \"9711d912-3184-4063-90c5-1facc727813c\",\n id: \"9711d912-3184-4063-90c5-1facc727813c\",\n isLeaf: \"true\",\n refname: \"财务一科\"\n },\n key: \"3\"\n }\n];\n\nclass Demo0503 extends Component {\n constructor(props, context) {\n super(props);\n // 编辑态下每个单元格对应的编辑模式组件写在 EditModal 组件中,以 key 值对应\n this.columns = [\n {\n title: \"员工编号\",\n dataIndex: \"a\",\n key: \"a\"\n },\n {\n title: \"名字\",\n dataIndex: \"b\",\n key: \"b\"\n },\n {\n title: \"性别\",\n dataIndex: \"c\",\n key: \"c\",\n width: 100\n },\n {\n title: \"部门\",\n dataIndex: \"d\",\n key: \"d\",\n width: 215,\n render: (text, record, index) => record.d.name\n }\n ];\n\n this.state = {\n dataSource: dataSource,\n isEditing: false,\n currentIndex: null\n };\n }\n\n edit = () => {\n if (this.state.currentIndex === null) return;\n this.setState({ isEditing: true });\n };\n\n abortEdit = () => {\n this.setState({ isEditing: false });\n };\n\n commitChange = (editedRowData, rowIndex) => {\n console.log(editedRowData)\n console.log(rowIndex)\n let dataSource = [...this.state.dataSource];\n dataSource[rowIndex] = editedRowData;\n this.setState({ dataSource });\n };\n\n handleRowHover = (index, record) => {\n this.setState({ currentIndex: index });\n };\n\n hideEditModal = () => {\n this.setState({ isEditing: false });\n }\n\n renderRowHover = () => {\n return (\n
\n \n
\n );\n };\n\n\n render() {\n const { dataSource, isEditing, currentIndex } = this.state;\n const columns = this.columns;\n return (\n
\n \n {\n isEditing ? (\n \n ) : null\n }\n
\n );\n }\n}\n\nexport default Demo0503;\n", "desc": " 以弹框形式以对行进行编辑的表格", "scss_code": ".demo0503-m-b {\n\n &.u-modal .u-modal-body {\n padding: 16px 0;\n background: #f7f9fb;\n }\n\n .u-form-group {\n overflow: hidden;\n }\n\n .u-form-control {\n font-size: 12px;\n }\n\n .editable-cell {\n display: block;\n float: left;\n width: 265px;\n padding-right: 25px;\n }\n\n .ref-input-wrap {\n width: 240px !important;\n }\n\n .u-label {\n display: block;\n float: left;\n text-align: right;\n width: 110px;\n box-sizing: border-box;\n padding-right: 10px;\n font-size: 12px;\n height: 32px;\n line-height: 32px;\n .mast {\n padding: 0;\n color: red;\n }\n }\n\n .required-icon {\n position: absolute;\n top: 2px;\n color: #F44336;\n font-size: 20px;\n }\n}\n\n.u-editable-table-tp {\n z-index: 9999 !important;\n\n .tp-content {\n color: #F44336;\n }\n}\n.ref-core-button .u-button:first-child{\n margin-right: 8px;\n}" }, { "example": _react2['default'].createElement(Demo0505, null), "title": " 全表格编辑", "code": "/**\n *\n * @title 全表格编辑\n * @parent 编辑 Editor\n * @description 以行内编辑形式对全表数据进行编辑\n * demo0505\n */\nimport React, { Component } from \"react\";\nimport { Table, Select, Form, FormControl, Button, Icon, Tooltip } from 'tinper-bee';\n\n\nconst Option = Select.Option;\nimport { RefTreeWithInput } from \"ref-tree\";\n\nclass StringEditCell extends Component {\n constructor(props, context) {\n super(props);\n this.state = {\n value: props.value\n };\n }\n\n componentWillReceiveProps(nextProps) {\n if (!nextProps.editable) {\n this.setState({ value: nextProps.value });\n }\n }\n\n handleChange = value => {\n const { onChange, throwError } = this.props;\n if (value === \"\") {\n throwError && throwError(true);\n } else {\n throwError && throwError(false);\n }\n this.setState({ value });\n onChange && onChange(value);\n };\n\n render() {\n const { editable, required, colName, isEdited } = this.props;\n const { value } = this.state;\n let cls = \"editable-cell-input-wrapper\";\n if (required) cls += \" required\";\n if (value === \"\") cls += \" verify-cell\";\n if (isEdited) cls += \" edited\";\n return editable ? (\n
\n
\n \n \n {value === \"\" ? (\n {\"请输入\" + colName}
}\n >\n \n \n ) : null}\n \n
\n \n ) : (\n value || \" \"\n );\n }\n}\n\nconst SELECT_SOURCE = [\"男\", \"女\"];\n\nclass SelectEditCell extends Component {\n constructor(props, context) {\n super(props);\n this.state = {\n value: props.value\n };\n }\n\n componentWillReceiveProps(nextProps) {\n if (!nextProps.editable) {\n this.setState({ value: nextProps.value });\n }\n }\n\n handleSelect = value => {\n this.setState({ value });\n this.props.onChange && this.props.onChange(value);\n };\n\n render() {\n const { editable, isEdited } = this.props;\n const { value } = this.state;\n let cls = \"editable-cell-input-wrapper\";\n if (isEdited) cls += \" edited\";\n return editable ? (\n
\n
\n \n
\n
\n ) : (\n value || \" \"\n );\n }\n}\n\nconst option = {\n title: \"树\",\n searchable: true,\n multiple: false,\n param: {\n refCode: \"neworganizition_tree\"\n },\n checkStrictly: true,\n disabled: false,\n nodeDisplay: record => {\n return record.refname;\n },\n displayField: record => {\n return record.refname;\n }, //显示内容的键\n valueField: \"refpk\", //真实 value 的键\n refModelUrl: {\n treeUrl: \"https://mock.yonyoucloud.com/mock/358/blobRefTree\",\n treeUrl: \"/pap_basedoc/common-ref/blobRefTree\"\n },\n matchUrl: \"/pap_basedoc/common-ref/matchPKRefJSON\",\n filterUrl: \"/pap_basedoc/common-ref/filterRefJSON\",\n lazyModal: false,\n strictMode: true,\n lang: \"zh_CN\",\n treeData: [\n {\n code: \"org1\",\n children: [\n {\n code: \"bj\",\n entityType: \"mainEntity\",\n name: \"北京总部-简\",\n pid: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refcode: \"bj\",\n refpk: \"5305416e-e7b4-4051-90bd-12d12942295b\",\n id: \"5305416e-e7b4-4051-90bd-12d12942295b\",\n isLeaf: \"true\",\n refname: \"北京总部-简\"\n },\n {\n code: \"xd\",\n entityType: \"mainEntity\",\n name: \"新道-简\",\n pid: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refcode: \"xd\",\n refpk: \"b691afff-ea83-4a3f-affa-beb2be9cba52\",\n id: \"b691afff-ea83-4a3f-affa-beb2be9cba52\",\n isLeaf: \"true\",\n refname: \"新道-简\"\n },\n {\n code: \"yy3\",\n entityType: \"mainEntity\",\n name: \"test3\",\n pid: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refcode: \"yy3\",\n refpk: \"e75694d9-7c00-4e9e-9573-d29465ae79a9\",\n id: \"e75694d9-7c00-4e9e-9573-d29465ae79a9\",\n isLeaf: \"true\",\n refname: \"test3\"\n },\n {\n code: \"yy1\",\n entityType: \"mainEntity\",\n name: \"test1\",\n pid: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refcode: \"yy1\",\n refpk: \"fd32ceeb-57a8-4f44-816e-fa660f5715ab\",\n id: \"fd32ceeb-57a8-4f44-816e-fa660f5715ab\",\n isLeaf: \"true\",\n refname: \"test1\"\n },\n {\n code: \"dept2\",\n children: [\n {\n code: \"cs\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"测试部-简\",\n pid: \"0ebbb6d8-250a-4d1d-a019-7ae951629a2c\",\n refcode: \"cs\",\n refpk: \"cc43a66a-438d-4106-937f-bec44406f771\",\n id: \"cc43a66a-438d-4106-937f-bec44406f771\",\n isLeaf: \"true\",\n refname: \"测试部-简\"\n },\n {\n code: \"qd\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"前端部-简\",\n pid: \"0ebbb6d8-250a-4d1d-a019-7ae951629a2c\",\n refcode: \"qd\",\n refpk: \"73a10edd-aae8-4f31-af25-1f48f0a3b344\",\n id: \"73a10edd-aae8-4f31-af25-1f48f0a3b344\",\n isLeaf: \"true\",\n refname: \"前端部-简\"\n }\n ],\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"生产处\",\n refcode: \"dept2\",\n refpk: \"0ebbb6d8-250a-4d1d-a019-7ae951629a2c\",\n id: \"0ebbb6d8-250a-4d1d-a019-7ae951629a2c\",\n refname: \"生产处\"\n },\n {\n code: \"dept1\",\n children: [\n {\n code: \"dept1_2\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务二科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_2\",\n refpk: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n id: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n isLeaf: \"true\",\n refname: \"财务二科\"\n },\n {\n code: \"dept1_1\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务一科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_1\",\n refpk: \"9711d912-3184-4063-90c5-1facc727813c\",\n id: \"9711d912-3184-4063-90c5-1facc727813c\",\n isLeaf: \"true\",\n refname: \"财务一科\"\n }\n ],\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务处\",\n refcode: \"dept1\",\n refpk: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n id: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refname: \"财务处\"\n }\n ],\n entityType: \"mainEntity\",\n name: \"用友集团\",\n refcode: \"org1\",\n refpk: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refname: \"用友集团\"\n }\n ]\n};\n\nconst RefEditCell = Form.createForm()(\n class RefComponentWarpper extends Component {\n constructor(props, context) {\n super(props);\n this.state = {\n value: props.value\n };\n }\n\n componentWillReceiveProps(nextProps) {\n if (!nextProps.editable) {\n this.setState({ value: nextProps.value });\n }\n }\n\n handleSelect = values => {\n this.setState({ value: values[0] });\n this.props.onChange && this.props.onChange(values[0]);\n };\n\n render() {\n const { getFieldProps, getFieldError } = this.props.form;\n const { editable, required, isEdited } = this.props;\n const { value } = this.state;\n let cls = \"editable-cell-input-wrapper\";\n if (required) cls += \" required\";\n if (getFieldError(\"refValue\")) cls += \" verify-cell\";\n if (isEdited) cls += \" edited\";\n return editable ? (\n
\n \n {\"请输入\" + this.props.colName}\n
\n }\n >\n \n \n ),\n pattern: /[^{\"refname\":\"\",\"refpk\":\"\"}|{\"refpk\":\"\",\"refname\":\"\"}]/\n }\n ]\n })}\n />\n {getFieldError(\"refValue\")}\n \n ) : (\n value.name || \" \"\n );\n }\n }\n);\n\nlet dataSource = [\n {\n a: \"ASVAL_201903280005\",\n b: \"小张\",\n c: \"男\",\n d: {\n code: \"dept1_2\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务二科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_2\",\n refpk: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n id: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n isLeaf: \"true\",\n refname: \"财务二科\"\n },\n key: \"1\"\n },\n {\n a: \"ASVAL_201903200004\",\n b: \"小明\",\n c: \"男\",\n d: {\n code: \"dept1_2\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务二科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_2\",\n refpk: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n id: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n isLeaf: \"true\",\n refname: \"财务二科\"\n },\n key: \"2\"\n },\n {\n a: \"ASVAL_201903120002\",\n b: \"小红\",\n c: \"女\",\n d: {\n code: \"dept1_1\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务一科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_1\",\n refpk: \"9711d912-3184-4063-90c5-1facc727813c\",\n id: \"9711d912-3184-4063-90c5-1facc727813c\",\n isLeaf: \"true\",\n refname: \"财务一科\"\n },\n key: \"3\"\n }\n];\n\nclass Demo0505 extends Component {\n constructor(props, context) {\n super(props);\n this.columns = [\n {\n title: \"员工编号\",\n dataIndex: \"a\",\n key: \"a\"\n },\n {\n title: \"名字\",\n dataIndex: \"b\",\n key: \"b\",\n render: (text, record, index) => (\n \n )\n },\n {\n title: \"性别\",\n dataIndex: \"c\",\n key: \"c\",\n width: 100,\n render: (text, record, index) => (\n \n )\n },\n {\n title: \"部门\",\n dataIndex: \"d\",\n key: \"d\",\n width: 215,\n render: (text, record, index) => (\n \n )\n },\n // 只是用来占位占宽度的\n {\n key: \"placeholder\"\n }\n ];\n\n // 用于记录数据是否被修改\n dataSource.forEach(item => (item.isEdited = {}));\n this.state = {\n dataSource: dataSource,\n isEditingAll: false,\n currentIndex: null,\n errorEditFlag: false\n };\n\n // 用于记录编辑前数据\n this.dataBuffer = [];\n }\n\n edit = () => {\n this.dataBuffer = [];\n // 最好使用深复制\n this.state.dataSource.forEach((item, index) => {\n this.dataBuffer.push({ ...item });\n });\n this.setState({ isEditingAll: true });\n };\n\n abortEdit = () => {\n let originData = [...this.state.dataSource];\n originData.forEach(item => (item.isEdited = {}));\n this.setState({\n isEditingAll: false,\n dataSource: originData\n });\n };\n\n commitChange = () => {\n if (this.state.errorEditFlag) return;\n const newData = this.dataBuffer.map(item => {\n return Object.assign({}, item, { isEdited: {} });\n });\n this.setState({ isEditingAll: false, dataSource: newData });\n };\n\n onCellChange = (index, key) => value => {\n this.dataBuffer[index][key] = value;\n this.dataBuffer[index].isEdited[key] = true;\n };\n\n throwError = isError => {\n if (isError !== this.state.errorEditFlag)\n this.setState({ errorEditFlag: isError });\n };\n\n render() {\n const { dataSource, isEditingAll } = this.state;\n const columns = this.columns;\n return (\n
\n
\n {isEditingAll ? (\n \n \n \n 取消\n \n \n ) : (\n \n )}\n
\n
\n \n );\n }\n}\n\nexport default Demo0505;\n", "desc": " 以行内编辑形式对全表数据进行编辑", "scss_code": ".demo0505 {\n\n .toolbar-btns {\n margin-bottom: 8px;\n\n .u-button {\n &:first-child {\n margin-right: 8px;\n }\n }\n }\n\n .u-table {\n .u-row-select {\n background-color: #FFF7E7;\n }\n .u-table-row {\n td {\n padding: 5px 8px;\n\n input {\n font-size: 12px;\n padding-left: 5px;\n }\n }\n\n .u-form-control,\n .u-select-selection {\n height: 30px;\n }\n }\n\n .editable-cell-text-wrapper {\n box-sizing: border-box;\n line-height: 20px;\n border-radius: 3px;\n }\n\n .required {\n margin-left: 10px;\n position: relative;\n\n &::before {\n content: \" \";\n border: 1px solid #F44336;\n width: 0;\n height: 12px;\n position: absolute;\n top: 9px;\n left: -8px;\n }\n\n span.u-input-group {\n display: block\n }\n }\n\n .verify-cell {\n padding-right: 25px !important;\n }\n\n .edited::after {\n content: \" \";\n position: absolute;\n z-index: 999;\n top: 0;\n left: 0;\n border-width: 5px;\n border-style: solid;\n border-color: #f44336 transparent transparent #f44336;\n }\n\n .required-icon {\n position: absolute;\n top: 2px;\n color: #F44336;\n font-size: 20px;\n }\n\n .ref-input-wrap {\n width: 160px !important;\n }\n }\n}\n\n.u-editable-table-tp {\n .tp-content {\n color: #F44336;\n }\n}" }, { "example": _react2['default'].createElement(Demo0601, null), "title": " 左侧固定列", "code": "/**\n*\n* @title 左侧固定列\n* @parent 列操作-锁定 Fixed\n* @description 固定列到表格的左侧\n* demo0601\n*/\n\n\n\nimport React, { Component } from 'react';\nimport { Table } from 'tinper-bee';\n\n\nconst columns = [\n {\n title: \"序号\",\n dataIndex: \"index\",\n key: \"index\",\n width: 80, \n fixed: 'left',\n render(text, record, index){return index + 1}\n },\n {\n title: \"订单编号\",\n dataIndex: \"orderCode\",\n key: \"orderCode\",\n width: 100, \n fixed: 'left',\n },\n {\n title: \"供应商名称\",\n dataIndex: \"supplierName\",\n key: \"supplierName\",\n width: 100\n },\n {\n title: \"类型\",\n dataIndex: \"type_name\",\n key: \"type_name\",\n width: 100\n },\n {\n title: \"采购组织\",\n dataIndex: \"purchasing\",\n key: \"purchasing\",\n width: 100\n },\n {\n title: \"采购组\",\n dataIndex: \"purchasingGroup\",\n key: \"purchasingGroup\",\n width: 100\n },\n {\n title: \"凭证日期\",\n dataIndex: \"voucherDate\",\n key: \"voucherDate\",\n width: 200,\n \n },\n {\n title: \"审批状态\",\n dataIndex: \"approvalState_name\",\n key: \"approvalState_name\",\n width: 100\n },\n {\n title: \"确认状态\",\n dataIndex: \"confirmState_name\",\n key: \"confirmState_name\",\n width: 100\n }, \n {\n title: \"关闭状态\",\n dataIndex: \"closeState_name\",\n key: \"closeState_name\",\n width: 100\n }\n];\n\nconst data = [\n { \n orderCode:\"NU0391025\", \n supplierName: \"xx供应商\",\n type_name: \"1\",\n purchasing:'组织c', \n purchasingGroup:\"aa\",\n voucherDate:\"2018年03月18日\",\n approvalState_name:\"已审批\",\n confirmState_name:\"执行中\",\n closeState_name:\"未关闭\",\n key: \"1\"\n }, \n { \n orderCode:\"NU0391026\", \n supplierName: \"xx供应商\",\n type_name: \"2\",\n purchasing:'组织a', \n purchasingGroup:\"bb\",\n voucherDate:\"2018年02月05日\",\n approvalState_name:\"已审批\",\n confirmState_name:\"待确认\",\n closeState_name:\"未关闭\",\n key: \"2\"\n },\n { \n orderCode:\"NU0391027\", \n supplierName: \"xx供应商\",\n type_name: \"3\",\n purchasing:'组织b', \n purchasingGroup:\"aa\",\n voucherDate:\"2018年07月01日\",\n approvalState_name:\"已审批\",\n confirmState_name:\"终止\",\n closeState_name:\"已关闭\",\n key: \"3\"\n }\n];\n\nclass Demo51 extends Component {\n render() {\n return
;\n }\n}\n\nexport default Demo51;", "desc": " 固定列到表格的左侧" }, { "example": _react2['default'].createElement(Demo0602, null), "title": " 右侧固定列", "code": "/**\n*\n* @title 右侧固定列\n* @parent 列操作-锁定 Fixed\n* @description 固定列到表格的右侧\n* demo0602\n*/\n\n\n\nimport React, { Component } from 'react';\nimport { Table, Popconfirm } from 'tinper-bee';\n\n\n\nconst columns = [\n {\n title: \"序号\",\n dataIndex: \"index\",\n key: \"index\",\n width: 80, \n fixed: 'left',\n render(text, record, index){return index + 1}\n },\n {\n title: \"订单编号\",\n dataIndex: \"orderCode\",\n key: \"orderCode\",\n width: 100, \n },\n {\n title: \"供应商名称\",\n dataIndex: \"supplierName\",\n key: \"supplierName\",\n width: 100\n },\n {\n title: \"类型\",\n dataIndex: \"type_name\",\n key: \"type_name\",\n width: 100\n },\n {\n title: \"采购组织\",\n dataIndex: \"purchasing\",\n key: \"purchasing\",\n width: 100\n },\n {\n title: \"采购组\",\n dataIndex: \"purchasingGroup\",\n key: \"purchasingGroup\",\n width: 100\n },\n {\n title: \"凭证日期\",\n dataIndex: \"voucherDate\",\n key: \"voucherDate\",\n width: 200,\n \n },\n {\n title: \"审批状态\",\n dataIndex: \"approvalState_name\",\n key: \"approvalState_name\",\n width: 100\n },\n {\n title: \"确认状态\",\n dataIndex: \"confirmState_name\",\n key: \"confirmState_name\",\n width: 100\n }, \n {\n title: \"关闭状态\",\n dataIndex: \"closeState_name\",\n key: \"closeState_name\",\n width: 100\n },\n {\n title: \"操作\",\n dataIndex: \"d\",\n key: \"d\",\n width:100,\n fixed: \"right\",\n render(text, record, index) {\n return (\n
\n \n \n 一些操作\n \n \n
\n )\n }\n }\n];\n\nconst data = [\n { \n orderCode:\"NU0391025\", \n supplierName: \"xx供应商\",\n type_name: \"1\",\n purchasing:'组织c', \n purchasingGroup:\"aa\",\n voucherDate:\"2018年03月18日\",\n approvalState_name:\"已审批\",\n confirmState_name:\"执行中\",\n closeState_name:\"未关闭\",\n key: \"1\"\n }, \n { \n orderCode:\"NU0391026\", \n supplierName: \"xx供应商\",\n type_name: \"2\",\n purchasing:'组织a', \n purchasingGroup:\"bb\",\n voucherDate:\"2018年02月05日\",\n approvalState_name:\"已审批\",\n confirmState_name:\"待确认\",\n closeState_name:\"未关闭\",\n key: \"2\"\n },\n { \n orderCode:\"NU0391027\", \n supplierName: \"xx供应商\",\n type_name: \"3\",\n purchasing:'组织b', \n purchasingGroup:\"aa\",\n voucherDate:\"2018年07月01日\",\n approvalState_name:\"已审批\",\n confirmState_name:\"终止\",\n closeState_name:\"已关闭\",\n key: \"3\"\n },\n { \n orderCode:\"NU0391025\", \n supplierName: \"xx供应商\",\n type_name: \"1\",\n purchasing:'组织c', \n purchasingGroup:\"aa\",\n voucherDate:\"2018年03月18日\",\n approvalState_name:\"已审批\",\n confirmState_name:\"执行中\",\n closeState_name:\"未关闭\",\n key: \"4\"\n }, \n { \n orderCode:\"NU0391026\", \n supplierName: \"xx供应商\",\n type_name: \"2\",\n purchasing:'组织a', \n purchasingGroup:\"bb\",\n voucherDate:\"2018年02月05日\",\n approvalState_name:\"已审批\",\n confirmState_name:\"待确认\",\n closeState_name:\"未关闭\",\n key: \"5\"\n },\n { \n orderCode:\"NU0391027\", \n supplierName: \"xx供应商\",\n type_name: \"3\",\n purchasing:'组织b', \n purchasingGroup:\"aa\",\n voucherDate:\"2018年07月01日\",\n approvalState_name:\"已审批\",\n confirmState_name:\"终止\",\n closeState_name:\"已关闭\",\n key: \"6\"\n }\n];\n\nclass Demo52 extends Component {\n render() {\n return
;\n }\n}\n\nexport default Demo52;", "desc": " 固定列到表格的右侧" }, { "example": _react2['default'].createElement(Demo0603, null), "title": " 动态设置列锁定、解除锁定", "code": "/**\n*\n* @title 动态设置列锁定、解除锁定\n* @parent 列操作-锁定 Fixed\n* @description 动态设置columns中数据的fixed属性值【fixed: \"left\",fixed: \"right\"】。\n* demo0603\n*/\nimport React, { Component } from 'react';\nimport { Table, Icon,Menu,Dropdown } from 'tinper-bee';\n\n\n\n\nconst { Item } = Menu;\n\nconst columns = [\n {\n title: \"序号\",\n dataIndex: \"index\",\n key: \"index\",\n width: 85, \n fixed: 'left',\n render(text, record, index){return index + 1}\n },\n {\n title: \"订单编号\",\n dataIndex: \"orderCode\",\n key: \"orderCode\",\n width: 120, \n fixed: 'left',\n },\n {\n title: \"供应商名称\",\n dataIndex: \"supplierName\",\n key: \"supplierName\",\n width: 150\n },\n {\n title: \"类型\",\n dataIndex: \"type_name\",\n key: \"type_name\",\n width: 100\n },\n {\n title: \"采购组织\",\n dataIndex: \"purchasing\",\n key: \"purchasing\",\n width: 100\n },\n {\n title: \"采购组\",\n dataIndex: \"purchasingGroup\",\n key: \"purchasingGroup\",\n width: 100\n },\n {\n title: \"凭证日期\",\n dataIndex: \"voucherDate\",\n key: \"voucherDate\",\n width: 200,\n \n },\n {\n title: \"审批状态\",\n dataIndex: \"approvalState_name\",\n key: \"approvalState_name\",\n width: 100\n },\n {\n title: \"确认状态\",\n dataIndex: \"confirmState_name\",\n key: \"confirmState_name\",\n width: 100\n }, \n {\n title: \"关闭状态\",\n dataIndex: \"closeState_name\",\n key: \"closeState_name\",\n width: 100\n }\n];\n\nconst data = [\n { \n orderCode:\"NU0391025\", \n supplierName: \"xx供应商\",\n type_name: \"1\",\n purchasing:'组织c', \n purchasingGroup:\"aa\",\n voucherDate:\"2018年03月18日\",\n approvalState_name:\"已审批\",\n confirmState_name:\"执行中\",\n closeState_name:\"未关闭\",\n key: \"1\"\n }, \n { \n orderCode:\"NU0391026\", \n supplierName: \"xx供应商\",\n type_name: \"2\",\n purchasing:'组织a', \n purchasingGroup:\"bb\",\n voucherDate:\"2018年02月05日\",\n approvalState_name:\"已审批\",\n confirmState_name:\"待确认\",\n closeState_name:\"未关闭\",\n key: \"2\"\n },\n { \n orderCode:\"NU0391027\", \n supplierName: \"xx供应商\",\n type_name: \"3\",\n purchasing:'组织b', \n purchasingGroup:\"aa\",\n voucherDate:\"2018年07月01日\",\n approvalState_name:\"已审批\",\n confirmState_name:\"终止\",\n closeState_name:\"已关闭\",\n key: \"3\"\n }\n];\n \nclass Demo24 extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n columns:columns\n }\n }\n \n onSelect = ({key,item})=>{ \n console.log(`${key} selected`); //获取key\n let currentObject = item.props.data; //获取选中对象的数据\n let {columns} = this.state;\n let fixedCols = [];\n let nonColums = [];\n columns.find(da=>{\n if(da.key == key){\n da.fixed?delete da.fixed:da.fixed = 'left';\n }\n da.fixed?fixedCols.push(da):nonColums.push(da);\n });\n \n columns = [...fixedCols,...nonColums]\n\n this.setState({\n columns\n });\n }\n //表头增加下拉菜单\n renderColumnsDropdown(columns) {\n const icon ='uf-arrow-down';\n \n return columns.map((originColumn,index) => {\n let column = Object.assign({}, originColumn);\n let menuInfo = [], title='锁定';\n if(originColumn.fixed){\n title = '解锁'\n }\n menuInfo.push({\n info:title,\n key:originColumn.key,\n index:index\n });\n const menu = (\n {\n menuInfo.map(da=>{ return {da.info} })\n }\n )\n column.title = (\n \n {column.title}\n \n \n \n \n \n );\n return column;\n });\n \n }\n\n render() {\n let {columns} = this.state;\n columns = this.renderColumnsDropdown(columns);\n return(\n
\n
\n \n )\n }\n}\n\nexport default Demo24;", "desc": " 动态设置columns中数据的fixed属性值【fixed: \"left\",fixed: \"right\"】。", "scss_code": "th{\n .drop-menu{\n .uf{\n font-size: 12px;\n visibility: hidden;\n margin-left: 15px;\n }\n \n \n }\n &:hover{\n .uf{\n visibility: visible;\n }\n }\n\n}\n\n" }, { "example": _react2['default'].createElement(Demo0701, null), "title": " 按条件、值过滤", "code": "/**\n*\n* @title 按条件、值过滤\n* @parent 列操作-过滤 Filter\n* @description 可以根据输入项目以及判断条件对表格内的数据进行过滤。可在控制台查看序列化后的参数字符串。\n* demo0701\n*/\n\nimport React, { Component } from 'react';\nimport { Table } from 'tinper-bee';\n\n\nconst columns = [\n { title: \"姓名\", width: 180, dataIndex: \"name\", key: \"name\", filterType: \"text\", filterDropdown: \"show\" },\n { title: \"年龄\", width: 150, dataIndex: \"age\", key: \"age\", filterType: \"dropdown\", filterDropdown: \"show\" },\n { title: \"日期\", width: 200, dataIndex: \"date\", key: \"date\", filterType: \"date\", filterDropdown: \"show\", format: \"YYYY-MM-DD\" },\n { title: \"居住地址\", width: 150, dataIndex: \"address\", key: \"address\", filterType: \"dropdown\", filterDropdown: \"show\" },\n { title: \"备注\", dataIndex: \"mark\", key: \"mark\" }\n];\n\nconst data = [\n {\n key: \"1\",\n name: \"John Brown\",\n age: 32,\n date: \"2018-09-19\",\n address: \"朝阳区\",\n mark: \"无\"\n },\n {\n key: \"2\",\n name: \"Jim Green\",\n age: 40,\n date: \"2018-09-18\",\n address: \"朝阳区\",\n mark: \"无\"\n },\n {\n key: \"3\",\n name: \"Jim Green\",\n age: 40,\n date: \"2018-09-18\",\n address: \"东城区\",\n mark: \"无\"\n },\n {\n key: \"4\",\n name: \"Jim Green\",\n age: 40,\n date: \"2018-09-18\",\n address: \"东城区\",\n mark: \"无\"\n }, {\n key: \"5\",\n name: \"John Brown\",\n age: 32,\n date: \"2018-09-18\",\n address: \"海淀区\",\n mark: \"无\"\n },\n {\n key: \"6\",\n name: \"Jim Green\",\n age: 48,\n date: \"2018-09-18\",\n address: \"海淀区\",\n mark: \"无\"\n },\n {\n key: \"7\",\n name: \"Jim Green\",\n age: 40,\n date: \"2018-09-18\",\n address: \"海淀区\",\n mark: \"无\"\n },\n {\n key: \"8\",\n name: \"Jim Green\",\n age: 38,\n date: \"2018-09-18\",\n address: \"海淀区\",\n mark: \"无\"\n }\n];\n\nclass Demo23 extends Component {\n handlerFilterChange = (key, val, condition) => {\n console.log('参数:key=', key, ' value=', val, 'condition=', condition);\n }\n\n handlerFilterClear = (key) => {\n console.log('清除条件', key);\n }\n render() {\n return ()\n onFilterClear={this.handlerFilterClear}//触发输入操作以及其他的回调(key,val)=>()\n filterDelay={500}//输入文本多少ms触发回调函数,默认300ms\n filterable={true}//是否开启过滤数据功能\n bordered\n columns={columns}\n data={data} />;\n }\n}\n\nexport default Demo23;", "desc": " 可以根据输入项目以及判断条件对表格内的数据进行过滤。可在控制台查看序列化后的参数字符串。" }, { "example": _react2['default'].createElement(Demo0702, null), "title": " 复杂表格中行过滤", "code": "/**\n*\n* @title 复杂表格中行过滤\n* @parent 列操作-过滤 Filter\n* @description 在过滤数据行的基础上增加列拖拽、动态菜单显示、下拉条件动态传入自定义等\n* demo0702\n*/\n\nimport React, { Component } from 'react';\nimport { Table, Icon,Checkbox } from 'tinper-bee';\n\n\n\nimport multiSelect from 'bee-table/bulid/lib/multiSelect';\nimport sort from 'bee-table/bulid/lib/sort';\n\nconst data = [\n {\n key: \"1\",\n name: \"John Brown\",\n age: 32,\n date: \"2018-09-19\",\n address: \"朝阳区\",\n mark: \"无\"\n },\n {\n key: \"2\",\n name: \"Jim Green\",\n age: 40,\n date: \"2018-09-18\",\n address: \"朝阳区\",\n mark: \"无\"\n },\n {\n key: \"3\",\n name: \"Jim Green\",\n age: 40,\n date: \"2018-09-18\",\n address: \"东城区\",\n mark: \"无\"\n },\n {\n key: \"4\",\n name: \"Jim Green\",\n age: 40,\n date: \"2018-09-18\",\n address: \"东城区\",\n mark: \"无\"\n }, {\n key: \"5\",\n name: \"John Brown\",\n age: 32,\n date: \"2018-09-18\",\n address: \"海淀区\",\n mark: \"无\"\n },\n {\n key: \"6\",\n name: \"Jim Green\",\n age: 48,\n date: \"2018-09-18\",\n address: \"海淀区\",\n mark: \"无\"\n },\n {\n key: \"7\",\n name: \"Jim Green\",\n age: 40,\n date: \"2018-09-18\",\n address: \"海淀区\",\n mark: \"无\"\n },\n {\n key: \"8\",\n name: \"Jim Green\",\n age: 38,\n date: \"2018-09-18\",\n address: \"海淀区\",\n mark: \"无\"\n }\n];\n\n\nconst MultiSelectTable = multiSelect(Table, Checkbox);\nconst ComplexTable = sort(MultiSelectTable, Icon);\nclass Demo24 extends Component {\n constructor(props) {\n super(props);\n this.state = {\n dropdownvalue: []\n }\n }\n handlerFilterChange = (key, val, condition) => {\n console.log('参数:key=', key, ' value=', val, 'condition=', condition);\n }\n\n handlerFilterClear = (key) => {\n console.log('清除条件', key);\n }\n getSelectedDataFunc = data => {\n console.log(data);\n }\n onSelect = (item) => {\n console.log(item);\n }\n\n render() {\n let multiObj = {\n type: \"checkbox\"\n };\n let columns = [\n {\n title: \"姓名\",\n width: 180,\n dataIndex: \"name\",\n key: \"name\",\n filterType: \"text\",//输入框类型\n filterDropdown: \"show\",//显示条件\n filterDropdownType: \"string\"//字符条件\n },\n {\n title: \"年龄\",\n width: 180,\n dataIndex: \"age\",\n key: \"age\",\n filterType: \"number\",//输入框类型\n filterDropdown: \"show\",//显示条件\n filterDropdownType: \"number\"//字符条件\n },\n {\n title: \"日期\",\n width: 190,\n dataIndex: \"date\",\n key: \"date\",\n filterType: \"date\",//输入框类型\n filterDropdown: \"show\",//显示条件\n filterDropdownType: \"string\"//字符条件\n },\n {\n title: \"时间范围\",\n width: 290,\n dataIndex: \"mark\",\n key: \"mark\",\n filterType: \"daterange\",//输入框类型\n filterDropdown: \"show\",//显示条件\n filterDropdownType: \"number\"//字符条件\n },\n {\n title: \"地址\",\n width: 100,\n dataIndex: \"address\",\n key: \"address\",\n filterType: \"dropdown\",//输入框类型\n filterDropdown: \"show\",//显示条件\n filterDropdownType: \"number\"//字符条件\n }\n ];\n return ()\n onFilterClear={this.handlerFilterClear}//触发输入操作以及其他的回调(key,val)=>()\n filterDelay={500}//输入文本多少ms触发回调函数,默认500ms\n filterable={true}//是否开启过滤数据功能\n getSelectedDataFunc={this.getSelectedDataFunc}\n bordered\n multiSelect={multiObj}\n columns={columns}\n data={data} />;\n }\n}\n\nexport default Demo24;", "desc": " 在过滤数据行的基础上增加列拖拽、动态菜单显示、下拉条件动态传入自定义等" }, { "example": _react2['default'].createElement(Demo0802, null), "title": " 列过滤面板", "code": "/**\n*\n* @title 列过滤面板\n* @parent 列操作-隐藏 Hide\n* @description 点击表头右侧按钮,设置显示或隐藏表格列。可以自定义设置显示某列,通过ifshow属性控制,默认值为true(显示表格所有列)。afterFilter方法为列过滤后触发的回调函数。\n* demo0802\n*/\n\n\nimport React, { Component } from 'react';\nimport { Table, Icon,Popover } from 'tinper-bee';\n\n\nimport filterColumn from 'bee-table/bulid/lib/filterColumn';\nimport sum from 'bee-table/bulid/lib/sum';\n\nconst data = [\n { \n orderCode:\"NU0391025\", \n supplierName: \"xx供应商\",\n type_name: \"1\",\n purchasing:'组织c', \n purchasingGroup:\"aa\",\n voucherDate:\"2018年03月18日\",\n approvalState_name:\"已审批\",\n confirmState_name:\"执行中\",\n closeState_name:\"未关闭\",\n key: \"1\"\n }, \n { \n orderCode:\"NU0391026\", \n supplierName: \"xx供应商\",\n type_name: \"2\",\n purchasing:'组织a', \n purchasingGroup:\"bb\",\n voucherDate:\"2018年02月05日\",\n approvalState_name:\"已审批\",\n confirmState_name:\"待确认\",\n closeState_name:\"未关闭\",\n key: \"2\"\n },\n { \n orderCode:\"NU0391027\", \n supplierName: \"xx供应商\",\n type_name: \"3\",\n purchasing:'组织b', \n purchasingGroup:\"aa\",\n voucherDate:\"2018年07月01日\",\n approvalState_name:\"已审批\",\n confirmState_name:\"终止\",\n closeState_name:\"已关闭\",\n key: \"3\"\n }\n];\n\nconst FilterColumnTable = filterColumn(Table, Popover, Icon);\n\nconst defaultProps21 = {\n prefixCls: \"bee-table\"\n};\n\nclass Demo21 extends Component {\n constructor(props) {\n super(props);\n this.state ={\n columns: [\n {\n title: \"序号\",\n dataIndex: \"index\",\n key: \"index\",\n width: 80, \n fixed: 'left',\n render(text, record, index){return index + 1}\n },\n {\n title: \"订单编号\",\n dataIndex: \"orderCode\",\n key: \"orderCode\",\n width: 100, \n fixed: 'left',\n required: true\n },\n {\n title: \"供应商名称\",\n dataIndex: \"supplierName\",\n key: \"supplierName\",\n width: 150,\n required: true\n },\n {\n title: \"类型\",\n dataIndex: \"type_name\",\n key: \"type_name\",\n width: 100\n },\n {\n title: \"采购组织\",\n dataIndex: \"purchasing\",\n key: \"purchasing\",\n width: 100\n },\n {\n title: \"单据日期\",\n dataIndex: \"voucherDate\",\n key: \"voucherDate\",\n width: 150\n },\n {\n title: \"审批状态\",\n dataIndex: \"approvalState_name\",\n key: \"approvalState_name\",\n width: 150\n }\n ]};\n }\n afterFilter = (optData,columns)=>{\n if(optData.key == 'b'){\n if(optData.ifshow){\n columns[2].ifshow = false;\n }else{\n columns[2].ifshow = true;\n }\n this.setState({\n columns21 :columns,\n showFilterPopover:true\n });\n }\n \n }\n \n render() {\n return ;\n }\n}\n\nDemo21.defaultProps = defaultProps21;\nexport default Demo21;", "desc": " 点击表头右侧按钮,设置显示或隐藏表格列。可以自定义设置显示某列,通过ifshow属性控制,默认值为true(显示表格所有列)。afterFilter方法为列过滤后触发的回调函数。" }, { "example": _react2['default'].createElement(Demo0901, null), "title": " 列排序", "code": "/**\n* @title 列排序\n* @parent 列操作-排序 Sort\n* @description column中增加sorter: (a, b) => a.c - b.c 这里的a,b代表前后两个数据,c代表比较当前对象的字段名称\n* demo0901\n*/\n\n\nimport React, { Component } from 'react';\nimport { Table, Icon } from 'tinper-bee';\n\n\nimport sort from \"bee-table/bulid/lib/sort.js\";\n\nlet ComplexTable = sort(Table, Icon);\nconst columns11 = [\n {\n title: \"单据编号\",\n dataIndex: \"num\",\n key: \"num\",\n width: 120,\n fixed: \"left\"\n },\n {\n title: \"单据日期\",\n dataIndex: \"date\",\n key: \"date\",\n width: 200,\n },\n {\n title: \"供应商\",\n dataIndex: \"supplier\",\n key: \"supplier\",\n width: 100\n },\n {\n title: \"联系人\",\n dataIndex: \"contact\",\n key: \"contact\",\n },\n {\n title: \"整单数量\",\n dataIndex: \"total\",\n key: \"total\",\n width: 150,\n sorter: (a, b) => a.total - b.total\n }\n];\n\nconst data11 = [\n { num: \"NU0391001\", date: \"2019-03-01\", supplier: 'xx供应商',contact:'Tom', total:30 ,key: \"1\" },\n { num: \"NU0391002\", date: \"2018-11-02\", supplier: 'yy供应商',contact:'Jack', total:41 ,key: \"2\" },\n { num: \"NU0391003\", date: \"2019-05-03\", supplier: 'zz供应商',contact:'Jane', total:25 ,key: \"3\" }\n];\n\nconst defaultProps11 = {\n prefixCls: \"bee-table\"\n};\nclass Demo11 extends Component {\n constructor(props) {\n super(props);\n this.state = {\n sortOrder: \"\",\n data: data11\n };\n }\n render() {\n\n return ;\n }\n}\nDemo11.defaultProps = defaultProps11;\n\n\nexport default Demo11;", "desc": " column中增加sorter: (a, b) => a.c - b.c 这里的a,b代表前后两个数据,c代表比较当前对象的字段名称" }, { "example": _react2['default'].createElement(Demo0902, null), "title": " 后端列排序", "code": "/**\n* @title 后端列排序\n* @parent 列操作-排序 Sort\n* @description 可在控制台中查看序列化后的参数字符串,将参数传递给后端即可进行列排序\n* demo0902\n*/\n\n\nimport React, { Component } from 'react';\nimport { Table, Icon } from 'tinper-bee';\n\n\nimport sort from \"bee-table/bulid/lib/sort.js\";\nlet ComplexTable = sort(Table, Icon);\n\n// const columns11 = [\n// {\n// title: \"名字\",\n// dataIndex: \"a\",\n// key: \"a\",\n// width: 100\n// },\n// {\n// title: \"性别\",\n// dataIndex: \"b\",\n// key: \"b\",\n// width: 100\n// },\n// {\n// title: \"年龄\",\n// dataIndex: \"c\",\n// key: \"c\",\n// width: 200,\n// sorter: (a, b) => a.c - b.c\n// },\n// {\n// title: \"武功级别\",\n// dataIndex: \"d\",\n// key: \"d\"\n// },\n// {\n// title: \"分数\",\n// dataIndex: \"e\",\n// key: \"e\",\n// sorter: (a, b) => a.c - b.c\n// },\n// ];\n\n// const data11 = [\n// { a: \"杨过\", b: \"男\", c: 30,d:'内行', e:139,key: \"2\" },\n// { a: \"令狐冲\", b: \"男\", c: 41,d:'大侠', e:109, key: \"1\" },\n// { a: \"郭靖\", b: \"男\", c: 25,d:'大侠', e:159, key: \"3\" }\n// ];\nconst columns11 = [\n {\n title: \"单据编号\",\n dataIndex: \"num\",\n key: \"num\",\n width: 120,\n fixed: \"left\"\n },\n {\n title: \"单据日期\",\n dataIndex: \"date\",\n key: \"date\",\n width: 200,\n },\n {\n title: \"供应商\",\n dataIndex: \"supplier\",\n key: \"supplier\",\n width: 100\n },\n {\n title: \"联系人\",\n dataIndex: \"contact\",\n key: \"contact\",\n },\n {\n title: \"整单数量\",\n dataIndex: \"total\",\n key: \"total\",\n width: 150,\n sorter: (a, b) => a.total - b.total\n },\n {\n title: \"金额\",\n dataIndex: \"money\",\n key: \"money\",\n width: 100,\n sorter: (a, b) => a.money - b.money\n }\n];\n\nconst data11 = [\n { num: \"NU0391001\", date: \"2019-03-01\", supplier: 'xx供应商',contact:'Tom', total:30 ,money: 100,key: \"1\" },\n { num: \"NU0391002\", date: \"2018-11-02\", supplier: 'yy供应商',contact:'Jack', total:41 ,money: 50,key: \"2\" },\n { num: \"NU0391003\", date: \"2019-05-03\", supplier: 'zz供应商',contact:'Jane', total:25 ,money: 200,key: \"3\" }\n];\n\nconst defaultProps = {\n prefixCls: \"bee-table\"\n};\nclass Demo28 extends Component {\n constructor(props) {\n super(props);\n this.state = {\n sortOrder: \"\",\n data: data11\n };\n }\n /**\n * 后端获取数据\n */\n sortFun = (sortParam)=>{\n console.info(sortParam);\n //将参数传递给后端排序\n }\n render() {\n let sortObj = {\n mode:'multiple',\n backSource:true,\n sortFun:this.sortFun\n }\n return ;\n }\n}\nDemo28.defaultProps = defaultProps;\n\n\nexport default Demo28;", "desc": " 可在控制台中查看序列化后的参数字符串,将参数传递给后端即可进行列排序" }, { "example": _react2['default'].createElement(Demo0903, null), "title": " 多列排序", "code": "/**\n *\n * @title 多列排序\n * @parent 列操作-排序 Sort\n * @description 结合多列排序、全选功能、合计功能的表格示例。新增排序后触发的回调函数sorterClick。\n * demo0903\n */\n\nimport React, { Component } from \"react\";\nimport { Table, Checkbox,Button,Icon } from 'tinper-bee';\n\n\nimport multiSelect from \"bee-table/bulid/lib/multiSelect.js\";\nimport sort from \"bee-table/bulid/lib/sort.js\";\nimport sum from \"bee-table/bulid/lib/sum.js\";\n\nconst columns13 = [\n {\n title: \"订单编号\",\n dataIndex: \"a\",\n key: \"a\",\n className:'dfasd',\n width: 200,\n sorter: (pre, after) => {return pre.a.localeCompare(after.a)},\n sorterClick:(data,type)=>{//排序的回调函数\n //type value is up or down\n console.log(\"data\",data);\n }\n },\n {\n title: \"金额\",\n dataIndex: \"b\",\n key: \"b\",\n width: 200,\n sumCol: true,\n sorter: (pre, after) => pre.b - after.b,\n sorterClick:(data,type)=>{//排序的回调函数\n //type value is up or down\n console.log(\"data\",data);\n }\n },\n {\n title: \"整单数量\",\n dataIndex: \"c\",\n key: \"c\",\n width: 200,\n sumCol: true,\n sorter: (pre, after) => pre.c - after.c,\n sorterClick:(data,type)=>{//排序的回调函数\n //type value is up or down\n console.log(\"data\",data);\n }\n },\n {\n title: \"日销售量\",\n dataIndex: \"e\",\n key: \"e\",\n width: 200,\n sumCol: true,\n sorter: (pre, after) => pre.e - after.e,\n },\n {\n title: \"供应商\",\n dataIndex: \"d\",\n key: \"d\",\n width: 200\n }\n];\n\nconst data13 = [\n { a: \"NU0391001\", b: 675, c: 30, d: \"xx供应商\",e:100, key: \"2\" },\n { a: \"NU0391002\", b: 43, c: 41, d: \"yy供应商\",e:90, key: \"1\" },\n { a: \"NU0391003\", b: 43, c: 81, d: \"zz供应商\", e:120,key: \"4\" },\n { a: \"NU0391004\", b: 43, c: 81, d: \"aa供应商\", e:130,key: \"5\" },\n { a: \"NU0391005\", b: 153, c: 25, d: \"bb供应商\",e:90, key: \"3\" }\n];\n\n\n//拼接成复杂功能的table组件不能在render中定义,需要像此例子声明在组件的外侧,不然操作state会导致功能出现异常\nlet ComplexTable = multiSelect(sort(sum(Table, Icon)), Checkbox);\n\nclass Demo13 extends Component {\n constructor(props) {\n super(props);\n this.state = {\n data13: data13,\n selectedRow: this.selectedRow,\n selectDisabled: this.selectDisabled\n };\n }\n getSelectedDataFunc = data => {\n console.log(data);\n };\n selectDisabled = (record, index) => {\n // console.log(record);\n if (index === 1) {\n return true;\n }\n return false;\n };\n selectedRow = (record, index) => {\n // console.log(record);\n if (index === 0) {\n return true;\n }\n return false;\n };\n onClick = () => {\n this.setState({\n selectedRow: function() {}\n });\n };\n\n render() {\n let multiObj = {\n type: \"checkbox\"\n };\n let sortObj = {\n mode:'multiple'\n }\n \n return (\n
\n \n \n
\n );\n }\n}\nexport default Demo13;", "desc": " 结合多列排序、全选功能、合计功能的表格示例。新增排序后触发的回调函数sorterClick。" }, { "example": _react2['default'].createElement(Demo1001, null), "title": " 拖拽改变列顺序", "code": "/**\n*\n* @title 拖拽改变列顺序\n* @parent 列操作-拖拽 Drag\n* @description 点击选择表头并左右拖拽,可以改变表格列顺序。 onDragEnd 方法是拖拽交换列后触发的回调函数。注意:固定列不可以交换。\n* demo1001\n*/\nimport React, { Component } from 'react';\nimport { Table } from 'tinper-bee';\n \nimport dragColumn from 'bee-table/bulid/lib/dragColumn';\n\nconst columns = [\n {\n title: \"订单编号\",\n dataIndex: \"a\",\n key: \"a\",\n width: 100\n },\n {\n title: \"单据日期\",\n dataIndex: \"b\",\n key: \"b\",\n width: 200\n },\n {\n title: \"供应商\",\n dataIndex: \"c\",\n key: \"c\",\n width: 200,\n sumCol: true,\n sorter: (a, b) => a.c - b.c\n },\n {\n title: \"联系人\",\n dataIndex: \"d\",\n key: \"d\",\n width: 500,\n },\n {\n title: \"操作\",\n dataIndex: \"e\",\n key: \"e\",\n width: 200,\n fixed: 'right',\n }\n];\n\nconst data = [\n { a: \"NU0391001\", b: \"2019-03-01\", c: 'xx供应商',d:'Tom',e:'...', key: \"2\" },\n { a: \"NU0391002\", b: \"2018-11-02\", c: 'yy供应商',d:'Jack',e:'...', key: \"1\" },\n { a: \"NU0391003\", b: \"2019-05-03\", c: 'zz供应商',d:'Jane',e:'...', key: \"3\" }\n];\n\nconst DragColumnTable = dragColumn(Table);\n\nconst defaultProps29 = {\n prefixCls: \"bee-table\"\n};\n\nclass Demo29 extends Component {\n constructor(props) {\n super(props); \n }\n \n render() {\n return {\n console.log(\"--拖拽交换列onDrop触发事件\");\n console.log(\"event.target:\",event.target);\n console.log(\"data:\",data);\n console.log(\"拖拽完成后的columns:\",columns);\n }}\n\n onDragEnd ={(event,data,columns)=>{\n console.log(\"--拖拽交换列后触发事件\");\n console.log(\"event.target:\",event.target);\n console.log(\"data:\",data);\n console.log(\"拖拽完成后的columns:\",columns);\n }}\n />;\n }\n}\n\nDemo29.defaultProps = defaultProps29;\nexport default Demo29;", "desc": " 点击选择表头并左右拖拽,可以改变表格列顺序。 onDragEnd 方法是拖拽交换列后触发的回调函数。注意:固定列不可以交换。" }, { "example": _react2['default'].createElement(Demo1002, null), "title": " 拖拽改变列宽度", "code": "/**\n*\n* @title 拖拽改变列宽度\n* @parent 列操作-拖拽 Drag\n* @description onDropBorder方法为调整列宽后触发的回调函数。注:不支持tree结构的表头。\n* demo1002\n*/\nimport React, { Component } from 'react';\nimport { Table } from 'tinper-bee';\n\n \nimport dragColumn from 'bee-table/bulid/lib/dragColumn';\n\nconst columns = [\n {\n title: \"订单编号\",\n dataIndex: \"a\",\n key: \"a\",\n width: '200',\n fixed:'left'\n },\n {\n title: \"单据日期\",\n dataIndex: \"b\",\n key: \"b\",\n width: '600'\n },\n {\n title: \"供应商\",\n dataIndex: \"c\",\n key: \"c\",\n width: '200',\n }, \n {\n title: \"联系人\",\n dataIndex: \"d\",\n key: \"d\",\n width: 500,\n }\n];\n\nconst data = [\n { a: \"NU0391001\", b: \"2019-03-01\", c: \"xx供应商\",d:'Tom', key: \"2\" },\n { a: \"NU0391002\", b: \"2018-11-02\", c: \"yy供应商\",d:'Jack', key: \"1\" },\n { a: \"NU0391003\", b: \"2019-05-03\", c: \"zz供应商\",d:'Jane', key: \"3\" }\n];\n\nconst DragColumnTable = dragColumn(Table);\n\nclass Demo30 extends Component {\n constructor(props) {\n super(props); \n }\n\n render() {\n return {\n console.log(width+\"--调整列宽后触发事件\",e.target);\n }}\n />;\n }\n}\n\nexport default Demo30;", "desc": " onDropBorder方法为调整列宽后触发的回调函数。注:不支持tree结构的表头。" }, { "example": _react2['default'].createElement(Demo1101, null), "title": " 嵌套子表格", "code": "/**\n*\n* @title 嵌套子表格\n* @parent 扩展行 Expanded Row\n* @description 通过expandedRowRender参数来实现子表格。收起和展开的图标可自定义传入。注意:多选功能和嵌套表格一起使用时,需要设置 expandIconAsCell={true},把展开按钮放在单元格中展示。\n* demo1101\n*/\n\nimport React, { Component } from \"react\";\nimport { Table, Popconfirm,Icon,Checkbox } from 'tinper-bee';\n\n\nimport multiSelect from \"bee-table/bulid/lib/multiSelect\";\n\nconst columns16 = [\n {\n title: \"操作\",\n dataIndex: \"d\",\n key: \"d\", \n width:100,\n render(text, record, index) {\n return (\n \n \n 一些操作\n \n \n );\n }\n },\n { title: \"订单编号\", dataIndex: \"a\", key: \"a\", width: 250 },\n { id: \"123\", title: \"单据日期\", dataIndex: \"b\", key: \"b\", width: 100 },\n { title: \"供应商\", dataIndex: \"c\", key: \"c\", width: 200, fixed:'right' },\n \n];\nconst columns17 = [\n { title: \"订单编号\", dataIndex: \"a\", key: \"a\", width: 100 },\n { id: \"123\", title: \"单据日期\", dataIndex: \"b\", key: \"b\", width: 100 },\n { title: \"供应商\", dataIndex: \"c\", key: \"c\", width: 200 }\n];\n\nconst data16 = [\n { a: \"NU0391001\", b: \"2019-03-01\", c: \"xx供应商\", d: \"操作\", key: \"1\" },\n { a: \"NU0391002\", b: \"2018-11-02\", c: \"yy供应商\", d: \"操作\", key: \"2\" },\n { a: \"NU0391003\", b: \"2019-05-03\", c: \"zz供应商\", d: \"操作\", key: \"3\" }\n];\nconst MultiSelectTable = multiSelect(Table,Checkbox);\nclass Demo16 extends Component {\n constructor(props){\n super(props);\n this.state={\n data_obj:{}\n }\n }\n expandedRowRender = (record, index, indent) => {\n return (\n \n );\n };\n getData=(expanded, record)=>{\n //当点击展开的时候才去请求数据\n let new_obj = Object.assign({},this.state.data_obj);\n if(expanded){\n if(record.key==='1'){\n new_obj[record.key] = [\n { a: \"NU0391056\", b: \"2019-03-01\", c: \"gys1\", d: \"操作\", key: \"1\" },\n { a: \"NU0391057\", b: \"2018-11-02\", c: \"gys2\", d: \"操作\", key: \"2\" },\n ]\n this.setState({\n data_obj:new_obj\n })\n }else{\n new_obj[record.key] = [\n { a: \"NU0391079\", b: \"2019-04-17\", c: \"gys5\", d: \"操作\", key: \"3\" },\n ]\n this.setState({\n data_obj:new_obj\n })\n }\n }\n }\n\n haveExpandIcon=(record, index)=>{\n //控制是否显示行展开icon,该参数只有在和expandedRowRender同时使用才生效\n if(index == 0){\n return true;\n }\n return false;\n }\n\n render() {\n return (\n }\n expandedIcon={}\n />\n );\n }\n}\n\nexport default Demo16;\n", "desc": " 通过expandedRowRender参数来实现子表格。收起和展开的图标可自定义传入。注意:多选功能和嵌套表格一起使用时,需要设置 expandIconAsCell={true},把展开按钮放在单元格中展示。", "scss_code": ".expanded-table{\r\n .expand-icon-con .uf{\r\n font-size: 12px;\r\n }\r\n}" }, { "example": _react2['default'].createElement(Demo1102, null), "title": " 树型表格数据展示", "code": "/**\n*\n* @title 树型表格数据展示\n* @parent 扩展行 Expanded Row\n* @description 通过在data中配置children数据,来自动生成树形表格\n* demo1102\n*/\n\n\nimport React, { Component } from 'react';\nimport { Table } from 'tinper-bee';\n\n\n\nconst columns4 = [\n {\n title: \"订单编号\",\n dataIndex: \"name\",\n key: \"name\",\n width: \"40%\"\n },\n {\n title: \"单据日期\",\n dataIndex: \"age\",\n key: \"age\",\n width: \"30%\"\n },\n {\n title: \"供应商\",\n dataIndex: \"address\",\n key: \"address\"\n }\n];\n\nconst data4 = [\n {\n key: 1,\n name: \"NU0391001\",\n age: \"2019-03-01\",\n address: \"供应商1\",\n children: [\n {\n key: 11,\n name: \"NU0391002\",\n age: \"2019-03-02\",\n address: \"供应商2\"\n },\n {\n key: 12,\n name: \"NU0391003\",\n age: \"2019-03-03\",\n address: \"供应商3\",\n children: [\n {\n key: 121,\n name: \"NU0391004\",\n age: \"2019-03-04\",\n address: \"供应商4\"\n }\n ]\n },\n {\n key: 13,\n name: \"NU0391005\",\n age: \"2019-03-05\",\n address: \"供应商5\",\n children: [\n {\n key: 131,\n name: \"NU0391006\",\n age: \"2019-03-06\",\n address: \"供应商6\",\n children: [\n {\n key: 1311,\n name: \"NU0391007\",\n age: \"2019-03-07\",\n address: \"供应商7\"\n },\n {\n key: 1312,\n name: \"NU0391008\",\n age: \"2019-03-08\",\n address: \"供应商8\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n key: 2,\n name: \"NU0391009\",\n age: \"2019-03-09\",\n address: \"供应商9\"\n }\n];\nclass Demo4 extends Component {\n\n constructor(props){\n super(props);\n this.state = {\n data: data4,\n factoryValue: 0,\n selectedRow: new Array(data4.length)//状态同步\n }\n }\n\n render() {\n return
{\n if (this.state.selectedRow[index]) {\n return 'selected';\n } else {\n return '';\n }\n }}\n onRowClick={(record,index,indent)=>{\n let selectedRow = new Array(this.state.data.length);\n selectedRow[index] = true;\n this.setState({\n factoryValue: record,\n selectedRow: selectedRow\n });\n }}\n rowKey=\"key\"//每条数据的唯一标示,默认为key,如果不是key,必须传\n columns={columns4} data={data4} />;\n }\n}\n\n\nexport default Demo4;", "desc": " 通过在data中配置children数据,来自动生成树形表格" }, { "example": _react2['default'].createElement(Demo1103, null), "title": " 自定义表格标题、表尾、选中行颜色", "code": "/**\r\n*\r\n* @title 自定义表格标题、表尾、选中行颜色\r\n* @parent 扩展行 Expanded Row\r\n* @description 可根据业务场景设置不同的`title`和`footer`。选中行颜色可用rowClassName作为选择器自定义css样式。\r\n* demo1103\r\n*/\r\n\r\nimport React, { Component } from \"react\";\nimport { Table, Button,Tooltip, } from 'tinper-bee';\r\n\r\n\r\n\r\n\r\nconst columns = [\r\n { title: \"员工编号\", dataIndex: \"a\", key: \"a\", width: 150, className: \"rowClassName\"},\r\n { title: \"员工姓名\", dataIndex: \"b\", key: \"b\", width: 100 },\r\n { title: \"性别\", dataIndex: \"c\", key: \"c\", width: 100 },\r\n { title: \"部门\", dataIndex: \"d\", key: \"d\", width: 100 }\r\n];\r\n\r\nconst data = [\r\n { a: \"ASVAL_201903280005\", b: \"小张\", c: \"男\", d: \"财务二科\", key: \"1\" },\r\n { a: \"ASVAL_201903200004\", b: \"小明\", c: \"男\", d: \"财务一科\", key: \"2\" },\r\n { a: \"ASVAL_201903120002\", b: \"小红\", c: \"女\", d: \"财务一科\", key: \"3\" }\r\n];\r\n\r\nclass Demo26 extends Component {\r\n\r\n constructor(props){\r\n super(props);\r\n this.state = {\r\n data: data,\r\n selectedRowIndex: 0\r\n }\r\n }\r\n\r\n render() {\r\n return (\r\n {\r\n if (this.state.selectedRowIndex == index) {\r\n return 'selected';\r\n } else {\r\n return '';\r\n }\r\n }}\r\n onRowClick={(record,index,indent)=>{\r\n this.setState({ \r\n selectedRowIndex: index\r\n });\r\n }}\r\n title={currentData =>
员工信息统计表
}\r\n footer={currentData =>
合计: 共{data.length}条数据
}\r\n /> \r\n );\r\n }\r\n}\r\n\r\nexport default Demo26;\r\n", "desc": " 可根据业务场景设置不同的`title`和`footer`。选中行颜色可用rowClassName作为选择器自定义css样式。" }, { "example": _react2['default'].createElement(Demo1105, null), "title": " 紧凑型、宽松型", "code": "/**\n*\n* @title 紧凑型、宽松型\n* @parent 扩展行 Expanded Row\n* @description 设置`size`属性使用紧凑型表格(`sm`)或宽松型表格(`lg`)。\n* demo1105\n*/\n\nimport React, { Component } from \"react\";\nimport { Table, Button,Tooltip,Tag } from 'tinper-bee';\n\n\n\nconst columns = [\n { title: \"订单编号\", dataIndex: \"orderNum\", key: \"orderNum\", width: 100 },\n { title: \"采购组织\", dataIndex: \"org\", key: \"org\", width: 200 },\n { title: \"供应商\", dataIndex: \"supplier\", key: \"supplier\", width: 100 },\n { title: \"订单日期\", dataIndex: \"orderDate\", key: \"orderDate\", width: 150 },\n { title: \"总数量\", dataIndex: \"quantity\", key: \"quantity\", width: 100 },\n { title: \"单据状态\", dataIndex: \"status\", key: \"status\", width: 100, \n render: (text, record, index) => {\n return (\n {text.desc}\n );\n }},\n { title: \"提交人\", dataIndex: \"submitter\", key: \"submitter\", width: 100 },\n { title: \"单位\", dataIndex: \"unit\", key: \"unit\", width: 100 },\n { title: \"总税价合计\", dataIndex: \"sum\", key: \"sum\", width: 100 },\n];\n\nconst data = [\n { \n orderNum: \"NU0391025\", \n org: \"用友网络科技股份有限公司\", \n supplier: \"xx供应商\", \n orderDate: '2018年03月18日', \n quantity: '100.00', \n status: {type:'success' ,desc:'正常'}, \n submitter: '小张', \n unit: 'pc', \n sum:'8,487.00', \n key: \"1\" \n },\n { \n orderNum: \"NU0391026\", \n org: \"用友网络科技股份有限公司\", \n supplier: \"xx供应商\", \n orderDate: '2018年02月05日', \n quantity: '91.00', \n status: {type:'danger' ,desc:'异常'}, \n submitter: '小红', \n unit: 'pc', \n sum:'675.00', \n key: \"2\" \n },\n { \n orderNum: \"NU0391027\", \n org: \"用友网络科技股份有限公司\", \n supplier: \"xx供应商\", \n orderDate: '2018年07月01日', \n quantity: '98.00', \n status: {type:'success' ,desc:'正常'}, \n submitter: '小李', \n unit: 'pc', \n sum:'1,531.00', \n key: \"3\" \n }\n];\n\nclass Demo1 extends Component {\n render() {\n return (\n
\n
紧凑型表格
\n
\n
宽松型表格
\n
\n \n );\n }\n}\n\nexport default Demo1;\n", "desc": " 设置`size`属性使用紧凑型表格(`sm`)或宽松型表格(`lg`)。" }, { "example": _react2['default'].createElement(Demo1106, null), "title": " 自定义行高", "code": "/**\n*\n* @title 自定义行高\n* @parent 扩展行 Expanded Row\n* @description 设置`height`属性自定义表体行高,设置`headerHeight`属性自定义表头高度。鼠标hover行时呼出操作按钮。\n* demo1106\n*/\n\nimport React, { Component } from \"react\";\nimport { Table, Button,Tooltip } from 'tinper-bee';\n\n\n\nconst columns = [\n { title: \"员工编号\", dataIndex: \"a\", key: \"a\", width: 150, className: \"rowClassName\"},\n { title: \"员工姓名\", dataIndex: \"b\", key: \"b\", width: 100 },\n { title: \"性别\", dataIndex: \"c\", key: \"c\", width: 100 },\n { title: \"部门\", dataIndex: \"d\", key: \"d\", width: 100 }\n];\n\nconst data = [\n { a: \"ASVAL_201903280005\", b: \"小张\", c: \"男\", d: \"财务二科\", key: \"1\" },\n { a: \"ASVAL_201903200004\", b: \"小明\", c: \"男\", d: \"财务一科\", key: \"2\" },\n { a: \"ASVAL_201903120002\", b: \"小红\", c: \"女\", d: \"财务一科\", key: \"3\" }\n];\n\nclass Demo1 extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n data: data,\n selectedRowIndex: 0\n }\n }\n handleClick = () => {\n console.log('这是第' , this.currentIndex , '行');\n console.log('内容:' , this.currentRecord);\n }\n\n onRowHover=(index,record)=>{\n this.currentIndex = index;\n this.currentRecord = record;\n }\n\n getHoverContent=()=>{\n return
\n }\n\n render() {\n return (\n {\n this.setState({\n selectedRowIndex: index\n });\n }}\n />\n\n \n );\n }\n}\n\nexport default Demo1;\n", "desc": " 设置`height`属性自定义表体行高,设置`headerHeight`属性自定义表头高度。鼠标hover行时呼出操作按钮。" }, { "example": _react2['default'].createElement(Demo1107, null), "title": " 图片在表格中的展示", "code": "/**\n*\n* @title 图片在表格中的展示\n* @parent 扩展行 Expanded Row\n* @description 根据图片高度自动撑开行高,可结合图片查看器使用 http://design.yonyoucloud.com/tinper-bee/bee-viewer, 注:如果图片在固定列中,可以使用heightConsistent属性,当此属性为true,就不会出现错行问题\n* demo1107\n*/\n\nimport React, { Component } from \"react\";\nimport { Table, Button,Tooltip } from 'tinper-bee';\n\n\n\nconst columns = [\n {\n title: \"序号\",\n dataIndex: \"index\",\n key: \"index\",\n width: 80,\n render(text, record, index) {\n return index + 1;\n }\n },\n {\n title: \"图样\",\n dataIndex: \"picture\",\n key: \"picture\",\n render(text, record, index) {\n return \"Picture\"/\n }\n },\n {\n title: \"组织部门\",\n dataIndex: \"orgDept\",\n key: \"orgDept\",\n width: 100,\n },\n {\n title: \"设施管理部门\",\n dataIndex: \"facilityManageUnit\",\n key: \"facilityManageUnit\",\n width: 150,\n },\n {\n title: \"案卷编号\",\n dataIndex: \"docketnum\",\n key: \"docketnum\",\n width: 100,\n },\n {\n title: \"数量\",\n dataIndex: \"num\",\n key: \"num\",\n width: 100,\n },\n {\n title: \"首次发现时间\",\n dataIndex: \"discoveryTime\",\n key: \"discoveryTime\",\n width: 150,\n },\n {\n title: \"实际修复时间\",\n dataIndex: \"repairTime\",\n key: \"repairTime\",\n width: 150,\n }\n];\n\nconst data = [\n { key: \"1\", orgDept: \"组织1\", facilityManageUnit: \"部门1\", docketnum: 41, num: \"1\", discoveryTime: \"2018-10-17\", repairTime: \"2018-10-30\", picture: \"http://design.yonyoucloud.com/static/bee.tinper.org-demo/swiper-demo-1-min.jpg\"},\n { key: \"2\", orgDept: \"组织2\", facilityManageUnit: \"部门2\", docketnum: 30, num: \"2\", discoveryTime: \"2019-01-15\", repairTime: \"2019-01-20\", picture: \"http://design.yonyoucloud.com/static/bee.tinper.org-demo/swiper-demo-2-min.jpg\"},\n { key: \"3\", orgDept: \"组织3\", facilityManageUnit: \"部门3\", docketnum: 35, num: \"3\", discoveryTime: \"2019-04-10\", repairTime: \"2019-04-17\", picture: \"http://design.yonyoucloud.com/static/bee.tinper.org-demo/swiper-demo-3-min.jpg\"}\n];\n\nclass Demo1107 extends Component {\n render() {\n return (\n \n );\n }\n}\n\nexport default Demo1107;\n", "desc": " 根据图片高度自动撑开行高,可结合图片查看器使用 http://design.yonyoucloud.com/tinper-bee/bee-viewer, 注:如果图片在固定列中,可以使用heightConsistent属性,当此属性为true,就不会出现错行问题" }, { "example": _react2['default'].createElement(Demo1108, null), "title": " 自定义行、列合并", "code": "/**\n*\n* @title 自定义行、列合并\n* @parent 扩展行 Expanded Row\n* @description 表头只支持列合并,使用 column 里的 colSpan 进行设置。表格支持行/列合并,使用 render 里的单元格属性 colSpan 或者 rowSpan 设值为 0 时,设置的表格不会渲染。\n* demo1108\n*/\n\nimport React, { Component } from \"react\";\nimport { Button, Table } from 'tinper-bee';\n\n\nconst renderContent = (value, row, index) => {\n const obj = {\n children: value,\n props: {},\n };\n if (index === 4) {\n obj.props.colSpan = 0;\n }\n return obj;\n};\n\nconst columns = [{\n title: '姓名',\n key: \"name\",\n dataIndex: 'name',\n render: (text, row, index) => {\n if (index < 4) {\n return {text};\n }\n return {\n children: {text},\n props: {\n colSpan: 5,\n },\n };\n },\n}, {\n title: '年龄',\n key: \"age\",\n dataIndex: 'age',\n render: renderContent,\n}, {\n title: '联系方式',\n colSpan: 2,\n key: \"tel\",\n dataIndex: 'tel',\n render: (value, row, index) => {\n const obj = {\n children: value,\n props: {},\n };\n if (index === 2) {\n obj.props.rowSpan = 2;\n }\n if (index === 3) {\n obj.props.rowSpan = 0;\n }\n if (index === 4) {\n obj.props.colSpan = 0;\n }\n return obj;\n },\n}, {\n title: '手机号',\n colSpan: 0,\n key: \"phone\",\n dataIndex: 'phone',\n render: renderContent,\n}, {\n title: '家庭住址',\n key: \"address\",\n dataIndex: 'address',\n render: renderContent,\n}];\n\n\nconst columns1 = [{\n title: '姓名',\n key: \"name\",\n dataIndex: 'name',\n render: (text, row, index) => {\n if (index < 4) {\n return {text};\n }\n return {\n children: {text},\n props: {\n colSpan: 5,\n },\n };\n },\n}, {\n title: '年龄',\n key: \"age\",\n dataIndex: 'age',\n render: renderContent,\n}, {\n title: '联系方式',\n colSpan: 2,\n key: \"tel\",\n dataIndex: 'tel',\n render: renderContent\n}, {\n title: '手机号',\n colSpan: 0,\n key: \"phone\",\n dataIndex: 'phone',\n render: renderContent,\n}, {\n title: '家庭住址',\n key: \"address\",\n dataIndex: 'address',\n render: renderContent,\n}];\nconst data = [{\n key: '1',\n name: '小红',\n age: 32,\n tel: '0571-22098909',\n phone: 18889898989,\n address: '北京海淀',\n}, {\n key: '2',\n name: '小明',\n tel: '0571-22098333',\n phone: 18889898888,\n age: 42,\n address: '河北张家口',\n}, {\n key: '3',\n name: '张三',\n age: 32,\n tel: '0575-22098909',\n phone: 18900010002,\n address: '浙江杭州',\n}, {\n key: '4',\n name: '李四',\n age: 18,\n tel: '0575-22098909',\n phone: 18900010002,\n address: '广州深圳',\n}, {\n key: '5',\n name: '王五',\n age: 18,\n tel: '0575-22098909',\n phone: 18900010002,\n address: '北京昌平',\n}];\n\nclass Demo15 extends Component {\n constructor(props){\n super(props);\n this.state={\n colFlag:false\n }\n }\n onChange=()=>{\n const colFlag = this.state.colFlag;\n this.setState({\n colFlag:!colFlag\n })\n }\n render() {\n let cols = this.state.colFlag?columns:columns1;\n return (\n
\n \n
\n \n \n );\n }\n}\n\n\nexport default Demo15;\n", "desc": " 表头只支持列合并,使用 column 里的 colSpan 进行设置。表格支持行/列合并,使用 render 里的单元格属性 colSpan 或者 rowSpan 设值为 0 时,设置的表格不会渲染。" }, { "example": _react2['default'].createElement(Demo1201, null), "title": " 拖拽改变行顺序", "code": "/**\n*\n* @title 拖拽改变行顺序\n* @parent 行操作-拖拽\n* @description `rowDraggAble`参数设置是否使用行交换顺序功能,`useDragHandle`设置拖拽把手,`onDropRow` 是拖拽行后的回调函数。注意:表格行数据必须有唯一标识,可以通过 `data.key` 或 `rowKey` 两种方式传入。\n* Demo1201\n*/\n\nimport React, { Component } from \"react\";\nimport { Switch, Table } from 'tinper-bee';\n\n\nconst columns = [\n { title: \"员工编号\", dataIndex: \"a\", key: \"a\", width: 150 },\n { title: \"员工姓名\", dataIndex: \"b\", key: \"b\", width:200 },\n { title: \"系统权限\", dataIndex: \"c\", key: \"c\", width: 200,render:()=>{return()}},\n { title: \"部门\", dataIndex: \"d\", key: \"d\", width: 100 },\n { title: \"职级\", dataIndex: \"e\", key: \"e\", width: 100 }\n];\n\nconst data = [\n { a: \"ASVAL_201903280005\", b: \"小张\", c: \"男\", d: \"财务二科\", e: \"M1\", key: \"1001\" },\n { a: \"ASVAL_201903200004\", b: \"小明\", c: \"男\", d: \"财务一科\", e: \"T1\", key: \"1002\" },\n { a: \"ASVAL_201903120001\", b: \"小红\", c: \"女\", d: \"财务四科\", e: \"T3\", key: \"1003\" },\n { a: \"ASVAL_201903120002\", b: \"小姚\", c: \"女\", d: \"财务一科\", e: \"T2\", key: \"1004\" },\n { a: \"ASVAL_201903120003\", b: \"小岳\", c: \"男\", d: \"财务五科\", e: \"T2\", key: \"1005\" },\n { a: \"ASVAL_201903120004\", b: \"小王\", c: \"男\", d: \"财务一科\", e: \"T5\", key: \"1006\" },\n { a: \"ASVAL_201903120005\", b: \"小绍\", c: \"男\", d: \"财务七科\", e: \"T2\", key: \"1007\" },\n { a: \"ASVAL_201903120006\", b: \"小郭\", c: \"男\", d: \"财务一科\", e: \"T3\", key: \"1008\" },\n { a: \"ASVAL_201903120007\", b: \"小杨\", c: \"女\", d: \"财务四科\", e: \"T2\", key: \"1009\" }\n];\n\nclass Demo38 extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n data: data\n }\n }\n handleClick = () => {\n console.log('这是第' , this.currentIndex , '行');\n console.log('内容:' , this.currentRecord);\n }\n\n /**\n * 行拖拽开始时触发\n * @param record 拖拽行的数据\n * @param index 拖拽行的下标序号\n */\n onDragRowStart = (record,index) => {\n console.log('拖拽的行数据:', record);\n console.log('拖拽的行序号:', index);\n }\n\n /**\n * 行拖拽结束时触发\n * @param data 拖拽改变顺序后的新data数组\n * @param record 拖拽行的数据\n */\n onDropRow = (data, record) => {\n console.log('重排序后的data: ', data);\n console.log('拖拽的行数据: ', record);\n }\n\n render() {\n return (\n \n );\n }\n}\n\nexport default Demo38;\n", "desc": " `rowDraggAble`参数设置是否使用行交换顺序功能,`useDragHandle`设置拖拽把手,`onDropRow` 是拖拽行后的回调函数。注意:表格行数据必须有唯一标识,可以通过 `data.key` 或 `rowKey` 两种方式传入。" }, { "example": _react2['default'].createElement(Demo1301, null), "title": " 多选功能", "code": "/**\r\n*\r\n* @title 多选功能\r\n* @parent 行操作-选择\r\n* @description 支持多选、全选和禁止选择。getSelectedDataFunc方法是选中行的回调函数,返回当前选中的数据数组。给data数据添加_checked参数可设置当前数据是否选中,添加_disabled参数可禁止选择当前数据。\r\n* demo1301\r\n*/\r\n\r\n\r\nimport React, { Component } from 'react';\nimport { Table, Checkbox } from 'tinper-bee';\r\n\r\n\r\n\r\nimport multiSelect from \"bee-table/bulid/lib/multiSelect.js\";\r\n\r\nconst columns = [\r\n { title: \"员工编号\", dataIndex: \"a\", key: \"a\", width: 300, className: \"rowClassName\"},\r\n { title: \"员工姓名\", dataIndex: \"b\", key: \"b\", width: 500 },\r\n { title: \"性别\", dataIndex: \"c\", key: \"c\", width: 500 },\r\n { title: \"部门\", dataIndex: \"d\", key: \"d\", width: 200 }\r\n];\r\n\r\nconst data = [\r\n { a: \"ASVAL_201903280005\", b: \"小张\", c: \"男\", d: \"财务二科\", key: \"1\",_checked:true },\r\n { a: \"ASVAL_201903200004\", b: \"小明\", c: \"男\", d: \"财务一科\", key: \"2\",_checked:false },\r\n { a: \"ASVAL_201903120002\", b: \"小红\", c: \"女\", d: \"财务一科\", key: \"3\",_checked:false },\r\n { a: \"ASVAL_201903280010\", b: \"小王\", c: \"女\", d: \"财务二科\", key: \"4\",_disabled:true },\r\n { a: \"ASVAL_201903200021\", b: \"小李\", c: \"男\", d: \"财务一科\", key: \"5\",_checked:false}\r\n];\r\n//拼接成复杂功能的table组件不能在render中定义,需要像此例子声明在组件的外侧,不然操作state会导致功能出现异常\r\nlet MultiSelectTable = multiSelect(Table, Checkbox);\r\n\r\nclass Demo12 extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n data: data\r\n };\r\n }\r\n /**\r\n *@param selectedList:当前选中的行数据\r\n *@param record 当前操作行数据\r\n *@param index 当前操作行索引\r\n *@param newData 进行多选操作之后的新数据 data\r\n * @memberof Demo12\r\n */\r\n getSelectedDataFunc = (selectedList,record,index,newData) => {\r\n console.log(\"selectedList\", selectedList,\"index\",index);\r\n // 注意:需要用回调中提供的参数 newData,去更新 state 或 store 中的 data 属性值,否则当表格重新render的时候,已选数据会被冲刷掉。\r\n };\r\n \r\n render() {\r\n let multiObj = {\r\n inverse: true, //设置选中为红色填充\r\n };\r\n return (\r\n \r\n );\r\n }\r\n}\r\n\r\nexport default Demo12;", "desc": " 支持多选、全选和禁止选择。getSelectedDataFunc方法是选中行的回调函数,返回当前选中的数据数组。给data数据添加_checked参数可设置当前数据是否选中,添加_disabled参数可禁止选择当前数据。" }, { "example": _react2['default'].createElement(Demo1302, null), "title": " 单选功能", "code": "/**\r\n*\r\n* @title 单选功能\r\n* @parent 行操作-选择\r\n* @description 表格支持单选行操作,可自定义选中行背景色。getSelectedDataFunc方法是选中行的回调函数。\r\n* Demo1302\r\n*/\r\n\r\nimport React, { Component } from \"react\";\nimport { Radio, Table } from 'tinper-bee';\r\n\n\r\n\r\nimport singleSelect from \"bee-table/bulid/lib/singleSelect.js\";\r\n\r\nconst columns = [\r\n { title: \"员工编号\", dataIndex: \"a\", key: \"a\", width: 300 },\r\n { title: \"员工姓名\", dataIndex: \"b\", key: \"b\", width: 500 },\r\n { title: \"性别\", dataIndex: \"c\", key: \"c\", width: 500 },\r\n { title: \"部门\", dataIndex: \"d\", key: \"d\", width: 200 }\r\n ];\r\n \r\n const data = [\r\n { a: \"ASVAL_201903280005\", b: \"小张\", c: \"男\", d: \"财务二科\", key: \"1\" },\r\n { a: \"ASVAL_201903200004\", b: \"小明\", c: \"男\", d: \"财务一科\", key: \"2\" },\r\n { a: \"ASVAL_201903120002\", b: \"小红\", c: \"女\", d: \"财务一科\", key: \"3\" },\r\n { a: \"ASVAL_201903280010\", b: \"小王\", c: \"女\", d: \"财务二科\", key: \"4\" },\r\n { a: \"ASVAL_201903200021\", b: \"小李\", c: \"男\", d: \"财务一科\", key: \"5\" }\r\n ];\r\n\r\n//拼接成复杂功能的table组件不能在render中定义,需要像此例子声明在组件的外侧,不然操作state会导致功能出现异常\r\nlet SingleSelectTable = singleSelect(Table, Radio);\r\n\r\nclass Demo1302 extends Component {\r\n\r\n constructor(props){\r\n super(props);\r\n this.state = {\r\n data: data,\r\n selectedRowIndex: 0,\r\n }\r\n }\r\n\r\n /**\r\n *@param selected 当前选中的行数据(当前操作行数据)\r\n *@param index 当前操作行索引\r\n * @memberof Demo12\r\n */\r\n getSelectedDataFunc = (record,index) => {\r\n console.log(\"record\", record, \"index\",index);\r\n\r\n this.setState({\r\n selectedRowIndex:index\r\n })\r\n };\r\n\r\n render() {\r\n let {selectedRowIndex} = this.state;\r\n\r\n return (\r\n \r\n );\r\n }\r\n}\r\n\r\nexport default Demo1302;\r\n", "desc": " 表格支持单选行操作,可自定义选中行背景色。getSelectedDataFunc方法是选中行的回调函数。" }, { "example": _react2['default'].createElement(Demo1401, null), "title": " 万行以上数据渲染", "code": "/**\n*\n* @title 万行以上数据渲染\n* @parent 无限滚动 Infinite-scroll\n* @description 万行数据渲染\n* demo1401\n*/\n\nimport React, { Component } from \"react\";\nimport { Table, Tooltip } from 'tinper-bee';\n\n\nimport BigData from \"bee-table/bulid/lib/bigData\";\nconst BigDataTable = BigData(Table);\nconst columns = [\n {\n title:'序号',\n dataIndex:'index',\n width:'60',\n key:'index',\n render:(text,record,index)=>{\n return index\n }\n },\n {\n title: \"用户名\", dataIndex: \"a\", key: \"a\", width: 580, className: \"rowClassName\",\n render: (text, record, index) => {\n return (\n \n {text}\n \n );\n }\n },\n { id: \"123\", title: \"性别\", dataIndex: \"b\", key: \"b\", width: 80},\n { title: \"年龄\", dataIndex: \"c\", key: \"c\", width: 200 }\n\n];\n\nconst data = [ ...new Array(10000) ].map((e, i) => {\n const rs = { a: i + 'a', b: i + 'b', c: i + 'c', d: i + 'd', key: i };\n if(i%3==0){\n rs.b = '女';\n }\n return rs;\n })\n\n\nclass Demo30 extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n data: data,\n selectedRowIndex: 0\n }\n }\n\n /**\n * 表体滚动加载时触发的回调函数\n * @param endIndex 可视区最后一条数据的 index 序号\n */\n handleBodyScroll = endIndex => {\n console.log('endIndex:', endIndex);\n }\n\n render() {\n return (\n
\n {\n console.log('currentIndex--'+index);\n }}\n onBodyScroll={this.handleBodyScroll}\n />\n
\n );\n }\n}\n\nexport default Demo30;", "desc": " 万行数据渲染", "scss_code": ".big-data tr td {\n // height: 48px;\n}" }, { "example": _react2['default'].createElement(Demo1402, null), "title": " 嵌套子表格滚动加载", "code": "/**\n*\n* @title 嵌套子表格滚动加载\n* @parent 无限滚动 Infinite-scroll\n* @description 通过expandedRowRender参数来实现子表格。注意:表格行数据必须有唯一标识,可以通过 `data.key` 或 `rowKey` 两种方式传入。\n* demo1402\n*/\n\nimport React, { Component } from \"react\";\nimport { Table, Popconfirm } from 'tinper-bee';\n\n\nimport BigData from \"bee-table/bulid/lib/bigData\";\nconst BigDataTable = BigData(Table);\nconst outColumns = [\n {\n title: \"操作\",\n dataIndex: \"d\",\n key: \"d\", \n width:200,\n render(text, record, index) {\n return (\n \n \n 一些操作\n \n \n );\n }\n },\n { title: \"用户名\", dataIndex: \"a\", key: \"a\", width: 250 },\n { id: \"123\", title: \"性别\", dataIndex: \"b\", key: \"b\", width: 100 },\n { title: \"年龄\", dataIndex: \"c\", key: \"c\", width: 200 },\n \n];\nconst innerColumns = [\n {\n title: \"操作\",\n dataIndex: \"d\",\n key: \"d\",\n width:200,\n render(text, record, index) {\n return (\n \n \n 一些操作\n \n \n );\n }\n },\n { title: \"用户名\", dataIndex: \"a\", key: \"a\", width: 100 },\n { id: \"123\", title: \"性别\", dataIndex: \"b\", key: \"b\", width: 100 },\n { title: \"年龄\", dataIndex: \"c\", key: \"c\", width: 200 },\n \n];\n\nconst data16 = [ ...new Array(10000) ].map((e, i) => {\n return { a: i + 'a', b: i + 'b', c: i + 'c', d: i + 'd', key: i };\n })\n\n\n\n\n\nclass Demo31 extends Component {\n constructor(props){\n super(props);\n this.state={\n data_obj:{\n 0:[\n { a: \"令狐冲\", b: \"男\", c: 41, d: \"操作\", key: \"1\" },\n { a: \"杨过\", b: \"男\", c: 67, d: \"操作\", key: \"2\" }\n ],\n 1: [\n { a: \"令狐冲\", b: \"男\", c: 41, d: \"操作\", key: \"1\" },\n { a: \"菲菲\", b: \"nv\", c: 67, d: \"操作\", key: \"2\" }\n ],\n }\n }\n }\n expandedRowRender = (record, index, indent) => {\n let height = 200;\n let innderData = [ ...new Array(100) ].map((e, i) => {\n return { a: index+\"-\"+ i + 'a', b: i + 'b', c: i + 'c', d: i + 'd', key: index+\"-\"+ i };\n })\n return (\n \n );\n };\n getData=(expanded, record)=>{\n //当点击展开的时候才去请求数据\n let new_obj = Object.assign({},this.state.data_obj);\n if(expanded){\n if(record.key==='1'){\n new_obj[record.key] = [\n { a: \"令狐冲\", b: \"男\", c: 41, d: \"操作\", key: \"1\" },\n { a: \"杨过\", b: \"男\", c: 67, d: \"操作\", key: \"2\" }\n ]\n this.setState({\n data_obj:new_obj\n })\n }else{\n new_obj[record.key] = [\n { a: \"令狐冲\", b: \"男\", c: 41, d: \"操作\", key: \"1\" },\n { a: \"菲菲\", b: \"nv\", c: 67, d: \"操作\", key: \"2\" }\n ]\n this.setState({\n data_obj:new_obj\n })\n }\n }\n }\n haveExpandIcon=(record, index)=>{\n //控制是否显示行展开icon,该参数只有在和expandedRowRender同时使用才生效\n if(index == 0){\n return true;\n }\n return false;\n }\n render() {\n return (\n \n );\n }\n}\n\nexport default Demo31;\n", "desc": " 通过expandedRowRender参数来实现子表格。注意:表格行数据必须有唯一标识,可以通过 `data.key` 或 `rowKey` 两种方式传入。" }, { "example": _react2['default'].createElement(Demo1403, null), "title": " 多功能表格滚动加载", "code": "/**\n*\n* @title 多功能表格滚动加载\n* @parent 无限滚动 Infinite-scroll\n* @description\n* demo1403\n*/\n\nimport React, { Component } from \"react\";\nimport { Table, Tooltip,Checkbox,Icon,Popover } from 'tinper-bee';\n\n\nimport BigData from \"bee-table/bulid/lib/bigData\";\nimport multiSelect from 'bee-table/bulid/lib/multiSelect';\nimport filterColumn from 'bee-table/bulid/lib/filterColumn';\n\nlet ComplexTable = filterColumn(multiSelect(BigData(Table), Checkbox), Popover, Icon);\n\nconst columns = [\n {\n title:'序号',\n dataIndex:'index',\n width:'80',\n key:'index',\n render:(text,record,index)=>{\n return index\n }\n },\n {\n title: \"用户名\", dataIndex: \"a\", key: \"a\", width: 580, className: \"rowClassName\",\n render: (text, record, index) => {\n return (\n \n {text}\n \n );\n }\n },\n { id: \"123\", title: \"性别\", dataIndex: \"b\", key: \"b\", width: 80},\n { title: \"年龄\", dataIndex: \"c\", key: \"c\", width: 200 }\n];\n\nconst data = [ ...new Array(10000) ].map((e, i) => {\n const rs = { a: i + 'a', b: i + 'b', c: i + 'c', d: i + 'd', key: i };\n if(i%3==0){\n rs.b = '女';\n }\n return rs;\n })\n\n\nclass Demo43 extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n data: data,\n selectedRowIndex: 0\n }\n }\n getSelectedDataFunc = data => {\n console.log(data);\n };\n\n render() {\n return (\n {\n this.setState({\n selectedRowIndex: index\n });\n }}\n getSelectedDataFunc={this.getSelectedDataFunc}/>\n\n );\n }\n}\n\nexport default Demo43;\n", "desc": "" }, { "example": _react2['default'].createElement(Demo1404, null), "title": " 层级树大数据场景", "code": "/**\n* @title 层级树大数据场景\n* @parent 无限滚动 Infinite-scroll\n* @description\n* demo1404\n*/\nimport React, { Component } from \"react\";\nimport { Table, Button } from 'tinper-bee';\n\n\n\nimport BigData from \"bee-table/bulid/lib/bigData\";\nconst BigDataTable = BigData(Table);\nconst columns = [\n {\n title: '序号',\n dataIndex: 'index',\n width: '150',\n key: 'index',\n render: (text, record, index) => {\n return record.index ? record.index : index\n }\n },\n { title: \"用户名\", dataIndex: \"a\", key: \"a\", width: 580, className: \"rowClassName\" },\n { id: \"123\", title: \"性别\", dataIndex: \"b\", key: \"b\", width: 80 },\n { title: \"年龄\", dataIndex: \"c\", key: \"c\", width: 200 }\n];\n\nconst data = [...new Array(10)].map((e, i) => {\n const rs = { a: i + 'a', b: i + 'b', c: i + 'c', d: i + 'd', key: i };\n if (i % 3 == 0) {\n rs.b = '女';\n rs.children = [];\n for (let subi = 0; subi < 3; subi++) {\n rs.children.push({ a: i + subi + 'asub', b: i + subi + 'bsub', c: i + subi + 'csub', d: i + subi + 'dsub', key: i + `${subi} sub` });\n rs.children[subi].children = []\n for (let subj = 0; subj < 100; subj++) {\n rs.children[subi].children.push({ a: 333 + ' ' + subj, b: 333 + ' ' + subj, c: 333 + ' ' + subj, d: 333 + ' ' + subj, key: i + `${subj} sub1` });\n }\n }\n } else {\n rs.children = [];\n for (let subi = 0; subi < 3; subi++) {\n rs.children.push({ a: i + subi + 'asub', b: i + subi + 'bsub', c: i + subi + 'csub', d: i + subi + 'dsub', key: i + `${subi} sub` });\n }\n }\n return rs;\n})\n\nconst data2 = [...new Array(10000)].map((e, i) => {\n const rs = { a: i + 'a', b: i + 'b', c: i + 'c', d: i + 'd', key: i };\n if (i % 3 == 0) {\n rs.b = '女';\n }\n return rs;\n})\n\nclass Demo34 extends Component {\n constructor(props) {\n super(props);\n this.state = {\n data: data\n }\n }\n\n /**\n * expanded : 当前的状态\n * record : 当前行的数据\n */\n onExpand = (expanded, record) => {\n console.log('当前的状态---' + expanded, ' 当前行的数据---' , record);\n }\n handleClick = () => {\n this.setState({\n data: data2\n })\n }\n render () {\n return (\n
\n \n {\n console.log('currentIndex--' + index);\n }}\n rowKey=\"key\"//每条数据的唯一标示,默认为key,如果不是key,必须传\n />\n
\n\n );\n }\n}\n\nexport default Demo34;", "desc": "" }, { "example": _react2['default'].createElement(Demo1601, null), "title": " 表格+分页", "code": "/**\n * @title 表格+分页\n * @parent 分页 Pagination\n * @description 点击分页联动表格\n * demo1601\n */\n\nimport React, { Component } from \"react\";\nimport { Table, Pagination } from 'tinper-bee';\n\n\n\n\nconst columns = [\n { title: \"员工编号\", dataIndex: \"a\", key: \"a\", width: 300, className: \"rowClassName\"},\n { title: \"员工姓名\", dataIndex: \"b\", key: \"b\", width: 500 },\n { title: \"性别\", dataIndex: \"c\", key: \"c\", width: 500 },\n { title: \"部门\", dataIndex: \"d\", key: \"d\", width: 200 }\n];\n\nconst pageData = {\n 1: [\n { a: \"ASVAL_201903280005\", b: \"小张\", c: \"男\", d: \"财务二科\", key: \"1\" },\n { a: \"ASVAL_201903200004\", b: \"小明\", c: \"男\", d: \"财务一科\", key: \"2\" },\n { a: \"ASVAL_201903120002\", b: \"小红\", c: \"女\", d: \"财务一科\", key: \"3\" }\n ],\n 2: [\n { a: \"ASVAL_201903280010\", b: \"小王\", c: \"女\", d: \"财务二科\", key: \"4\" },\n { a: \"ASVAL_201903200021\", b: \"小李\", c: \"男\", d: \"财务一科\", key: \"5\" },\n ]\n};\n\nclass Demo8 extends Component {\n constructor(props) {\n super(props);\n this.state = {\n data: pageData[1],\n activePage: 1\n };\n }\n\n handleSelect(eventKey) {\n this.setState({\n data: pageData[eventKey],\n activePage: eventKey\n });\n }\n\n render() {\n return (\n
\n
\n \n \n );\n }\n}\nexport default Demo8;\n", "desc": " 点击分页联动表格", "scss_code": ".demo8{\n .u-table {\n margin-bottom: 11px;\n }\n .u-pagination{\n display: flex;\n align-items: center;\n justify-content: center;\n }\n}" }]; + var Demo0101 = __webpack_require__(624);var Demo0102 = __webpack_require__(625);var Demo0103 = __webpack_require__(626);var Demo0104 = __webpack_require__(627);var Demo0105 = __webpack_require__(628);var Demo0106 = __webpack_require__(631);var Demo0107 = __webpack_require__(632);var Demo0201 = __webpack_require__(633);var Demo0202 = __webpack_require__(634);var Demo0301 = __webpack_require__(635);var Demo0302 = __webpack_require__(636);var Demo0401 = __webpack_require__(639);var Demo0402 = __webpack_require__(640);var Demo0404 = __webpack_require__(643);var Demo0405 = __webpack_require__(647);var Demo0406 = __webpack_require__(649);var Demo0501 = __webpack_require__(650);var Demo0502 = __webpack_require__(652);var Demo0503 = __webpack_require__(653);var Demo0505 = __webpack_require__(654);var Demo0601 = __webpack_require__(655);var Demo0602 = __webpack_require__(656);var Demo0603 = __webpack_require__(657);var Demo0701 = __webpack_require__(658);var Demo0702 = __webpack_require__(659);var Demo0802 = __webpack_require__(660);var Demo0901 = __webpack_require__(665);var Demo0902 = __webpack_require__(666);var Demo0903 = __webpack_require__(667);var Demo1001 = __webpack_require__(668);var Demo1002 = __webpack_require__(669);var Demo1101 = __webpack_require__(670);var Demo1102 = __webpack_require__(671);var Demo1103 = __webpack_require__(672);var Demo1105 = __webpack_require__(673);var Demo1106 = __webpack_require__(674);var Demo1107 = __webpack_require__(675);var Demo1108 = __webpack_require__(676);var Demo1201 = __webpack_require__(677);var Demo1301 = __webpack_require__(680);var Demo1302 = __webpack_require__(681);var Demo1401 = __webpack_require__(687);var Demo1402 = __webpack_require__(689);var Demo1403 = __webpack_require__(690);var Demo1404 = __webpack_require__(691);var Demo1601 = __webpack_require__(692);var DemoArray = [{ "example": _react2['default'].createElement(Demo0101, null), "title": " 基本表格", "code": "/**\n*\n* @title 基本表格\n* @parent 基础 Basic\n* @description 当单元格内容过多时,会自动显示省略号,鼠标hover有提示。showRowNum 设置是否显示序号列。\n* demo0101\n*/\n\nimport React, { Component } from \"react\";\nimport { Table } from 'tinper-bee';\n\n\nconst columns = [\n { title: \"员工编号\", dataIndex: \"a\", key: \"a\", width: 150 },\n { title: \"员工姓名\", dataIndex: \"b\", key: \"b\", width:100},\n { title: \"性别\", dataIndex: \"c\", key: \"c\", width: 100},\n { title: \"部门\", dataIndex: \"d\", key: \"d\", width: 100 },\n { title: \"职级\", dataIndex: \"e\", key: \"e\", width: 100 }\n];\n\nconst data = [\n { a: \"ASVAL_20190328\", b: \"小张\", c: \"男\", d: \"财务二科\", e: \"M1\", key: \"1\" },\n { a: \"ASVAL_20190320\", b: \"小明\", c: \"男\", d: \"财务一科\", e: \"T1\", key: \"2\" },\n { a: \"ASVAL_20190312\", b: \"小红\", c: \"女\", d: \"财务一科\", e: \"T2\", key: \"3\" }\n];\n\nclass Demo0101 extends Component {\n render() {\n return (\n \n );\n }\n}\n\nexport default Demo0101;\n", "desc": " 当单元格内容过多时,会自动显示省略号,鼠标hover有提示。showRowNum 设置是否显示序号列。" }, { "example": _react2['default'].createElement(Demo0102, null), "title": " 默认无数据展示", "code": "/**\r\n*\r\n* @title 默认无数据展示\r\n* @parent 基础 Basic\r\n* @description 无数据时默认展示图标,可在`emptyText`方法中自定义展示内容。\r\n* demo0102\r\n*/\r\n\r\n\r\nimport React, { Component } from 'react';\nimport { Table } from 'tinper-bee';\r\n\r\n\r\nconst columns = [\r\n {\r\n title: \"员工编号\",\r\n dataIndex: \"num\",\r\n key: \"num\",\r\n width: \"40%\"\r\n },\r\n {\r\n title: \"员工姓名\",\r\n dataIndex: \"name\",\r\n key: \"name\",\r\n width: \"30%\"\r\n },\r\n {\r\n title: \"部门\",\r\n dataIndex: \"department\",\r\n key: \"department\"\r\n }\r\n];\r\n \r\nconst data = [];\r\n\r\n// 在此自定义无数据时的展示内容\r\nconst emptyFunc = () => 'No Data';\r\n \r\nclass Demo02 extends Component {\r\n render() {\r\n return (\r\n
\r\n )\r\n }\r\n}\r\n\r\nexport default Demo02;", "desc": " 无数据时默认展示图标,可在`emptyText`方法中自定义展示内容。" }, { "example": _react2['default'].createElement(Demo0103, null), "title": " 固定表头", "code": "/**\r\n*\r\n* @title 固定表头\r\n* @parent 基础 Basic\r\n* @description 设置`scroll.y`指定滚动区域的高度,达到固定表头效果。\r\n* demo0103\r\n*/\r\n\r\nimport React, { Component } from 'react';\nimport { Table } from 'tinper-bee';\r\n\r\n\r\nconst columns03 = [\r\n {\r\n title: \"序号\",\r\n dataIndex: \"index\",\r\n key: \"index\",\r\n width: 80, \r\n render(text, record, index) {\r\n return index + 1;\r\n }\r\n },\r\n {\r\n title: \"订单编号\",\r\n dataIndex: \"orderCode\",\r\n key: \"orderCode\",\r\n width: 200, \r\n },\r\n {\r\n title: \"供应商名称\",\r\n dataIndex: \"supplierName\",\r\n key: \"supplierName\",\r\n width: 200\r\n },\r\n {\r\n title: \"类型\",\r\n dataIndex: \"type_name\",\r\n key: \"type_name\",\r\n width: 200\r\n },\r\n {\r\n title: \"采购组织\",\r\n dataIndex: \"purchasing\",\r\n key: \"purchasing\",\r\n width: 200\r\n },\r\n {\r\n title: \"采购组\",\r\n dataIndex: \"purchasingGroup\",\r\n key: \"purchasingGroup\",\r\n width: 200\r\n },\r\n {\r\n title: \"凭证日期\",\r\n dataIndex: \"voucherDate\",\r\n key: \"voucherDate\",\r\n width: 200,\r\n }\r\n];\r\n\r\nconst data03 = [\r\n { \r\n orderCode:\"NU0391025\", \r\n supplierName: \"xx供应商\",\r\n type_name: \"1\",\r\n purchasing:'组织c', \r\n purchasingGroup:\"aa\",\r\n voucherDate:\"2018年03月18日\",\r\n key: \"1\"\r\n }, \r\n { \r\n orderCode:\"NU0391026\", \r\n supplierName: \"xx供应商\",\r\n type_name: \"2\",\r\n purchasing:'组织a', \r\n purchasingGroup:\"bb\",\r\n voucherDate:\"2018年02月05日\",\r\n key: \"2\"\r\n },\r\n { \r\n orderCode:\"NU0391027\", \r\n supplierName: \"xx供应商\",\r\n type_name: \"3\",\r\n purchasing:'组织b', \r\n purchasingGroup:\"aa\",\r\n voucherDate:\"2018年07月01日\",\r\n key: \"3\"\r\n },\r\n { \r\n orderCode:\"NU0391028\", \r\n supplierName: \"xx供应商\",\r\n type_name: \"4\",\r\n purchasing:'组织c', \r\n purchasingGroup:\"cc\",\r\n voucherDate:\"2019年03月01日\",\r\n key: \"4\"\r\n },\r\n { \r\n orderCode:\"NU0391029\", \r\n supplierName: \"xx供应商\",\r\n type_name: \"5\",\r\n purchasing:'组织d', \r\n purchasingGroup:\"ss\",\r\n voucherDate:\"2019年02月14日\",\r\n key: \"5\"\r\n },\r\n { \r\n orderCode:\"NU0391030\", \r\n supplierName: \"xx供应商\",\r\n type_name: \"1\",\r\n purchasing:'组织e', \r\n purchasingGroup:\"zz\",\r\n voucherDate:\"2019年02月18日\",\r\n key: \"6\"\r\n },\r\n { \r\n orderCode:\"NU0391031\", \r\n supplierName: \"xx供应商\",\r\n type_name: \"2\",\r\n purchasing:'组织f', \r\n purchasingGroup:\"qq\",\r\n voucherDate:\"2019年01月01日\",\r\n key: \"7\"\r\n },\r\n { \r\n orderCode:\"NU0391032\", \r\n supplierName: \"xx供应商\",\r\n type_name: \"3\",\r\n purchasing:'组织g', \r\n purchasingGroup:\"pp\",\r\n voucherDate:\"2019年01月31日\",\r\n key: \"8\"\r\n },\r\n];\r\n\r\nclass Demo03 extends Component {\r\n render() {\r\n return
;\r\n }\r\n}\r\n\r\nexport default Demo03; ", "desc": " 设置`scroll.y`指定滚动区域的高度,达到固定表头效果。" }, { "example": _react2['default'].createElement(Demo0104, null), "title": " 隔行换色", "code": "/**\n*\n* @title 隔行换色\n* @parent 基础 Basic\n* @description 可自定义斑马线颜色\n* demo0104\n*/\n\n\nimport React, { Component } from 'react';\nimport { Table } from 'tinper-bee';\n\n\nconst columns04 = [\n {title: \"序号\",dataIndex: \"index\",key: \"index\",width: 80, \n render(text, record, index) {\n return index + 1;\n }\n },\n {title: \"订单编号\",dataIndex: \"orderCode\",key: \"orderCode\",width: 200},\n {title: \"供应商名称\",dataIndex: \"supplierName\",key: \"supplierName\",width: 200},\n {title: \"类型\",dataIndex: \"type_name\",key: \"type_name\",width: 200},\n {title: \"采购组织\",dataIndex: \"purchasing\",key: \"purchasing\",width: 200},\n {title: \"采购组\",dataIndex: \"purchasingGroup\",key: \"purchasingGroup\",width: 200},\n {title: \"凭证日期\",dataIndex: \"voucherDate\",key: \"voucherDate\",width: 200}\n];\n\nconst data04 = [\n { \n orderCode:\"NU0391025\", \n supplierName: \"xx供应商\",\n type_name: \"1\",\n purchasing:'组织c', \n purchasingGroup:\"aa\",\n voucherDate:\"2018年03月18日\",\n key: \"1\"\n }, \n { \n orderCode:\"NU0391026\", \n supplierName: \"xx供应商\",\n type_name: \"2\",\n purchasing:'组织a', \n purchasingGroup:\"bb\",\n voucherDate:\"2018年02月05日\",\n key: \"2\"\n },\n { \n orderCode:\"NU0391027\", \n supplierName: \"xx供应商\",\n type_name: \"3\",\n purchasing:'组织b', \n purchasingGroup:\"aa\",\n voucherDate:\"2018年07月01日\",\n key: \"3\"\n },\n { \n orderCode:\"NU0391028\", \n supplierName: \"xx供应商\",\n type_name: \"4\",\n purchasing:'组织c', \n purchasingGroup:\"cc\",\n voucherDate:\"2019年03月01日\",\n key: \"4\"\n },\n { \n orderCode:\"NU0391029\", \n supplierName: \"xx供应商\",\n type_name: \"5\",\n purchasing:'组织d', \n purchasingGroup:\"ss\",\n voucherDate:\"2019年02月14日\",\n key: \"5\"\n },\n { \n orderCode:\"NU0391030\", \n supplierName: \"xx供应商\",\n type_name: \"1\",\n purchasing:'组织e', \n purchasingGroup:\"zz\",\n voucherDate:\"2019年02月18日\",\n key: \"6\"\n },\n { \n orderCode:\"NU0391031\", \n supplierName: \"xx供应商\",\n type_name: \"2\",\n purchasing:'组织f', \n purchasingGroup:\"qq\",\n voucherDate:\"2019年01月01日\",\n key: \"7\"\n },\n { \n orderCode:\"NU0391032\", \n supplierName: \"xx供应商\",\n type_name: \"3\",\n purchasing:'组织g', \n purchasingGroup:\"pp\",\n voucherDate:\"2019年01月31日\",\n key: \"8\"\n },\n];\n\nclass Demo04 extends Component {\n render() {\n return
\n }\n}\n\nexport default Demo04; ", "desc": " 可自定义斑马线颜色", "scss_code": ".demo04 {\n &.u-table tr:nth-child(2n){\n background: #f7f9fb;\n }\n &.u-table tr.u-table-row-hover, .u-table tr:hover{\n background: #ebecf0;\n }\n}" }, { "example": _react2['default'].createElement(Demo0105, null), "title": " 表格 Loading 加载", "code": "/**\r\n*\r\n* @title 表格 Loading 加载\r\n* @parent 基础 Basic\r\n* @description loading可以传boolean或者object对象,object为bee-loading组件的参数类型\r\n* demo0105\r\n*/\r\n\r\nimport React, { Component } from \"react\";\nimport { Table, Button,Tooltip } from 'tinper-bee';\r\n\r\n\r\n\r\nconst columns05 = [\r\n { title: \"员工编号\", dataIndex: \"a\", key: \"a\", width: 300, className: \"rowClassName\",fixed:'left'},\r\n { title: \"员工姓名\", dataIndex: \"b\", key: \"b\", width: 500 },\r\n { title: \"性别\", dataIndex: \"c\", key: \"c\", width: 500 },\r\n { title: \"部门\", dataIndex: \"d\", key: \"d\", width: 200 }\r\n];\r\n\r\nconst data05 = [\r\n { a: \"ASVAL_201903280005\", b: \"小张\", c: \"男\", d: \"财务二科\", key: \"1\" },\r\n { a: \"ASVAL_201903200004\", b: \"小明\", c: \"男\", d: \"财务一科\", key: \"2\" },\r\n { a: \"ASVAL_201903120002\", b: \"小红\", c: \"女\", d: \"财务一科\", key: \"3\" }\r\n];\r\n\r\nclass Demo05 extends Component {\r\n constructor(props){\r\n super(props);\r\n this.state = {\r\n loading : true\r\n }\r\n }\r\n changeLoading = () => {\r\n this.setState({\r\n loading : !this.state.loading\r\n })\r\n }\r\n render() {\r\n return (\r\n
\r\n \r\n 切换loading\r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nexport default Demo05;\r\n", "desc": " loading可以传boolean或者object对象,object为bee-loading组件的参数类型" }, { "example": _react2['default'].createElement(Demo0106, null), "title": " 单元格内容居中", "code": "/**\n*\n* @title 单元格内容居中\n* @parent 基础 Basic\n* @description 在columns数据中设置`textAlign:'center'`,可实现单元格内容居中展示的效果。默认是居左显示。\n* demo0106\n*/\n\nimport React, { Component } from \"react\";\nimport { Table, Button,Tooltip } from 'tinper-bee';\n\n\n\nconst columns = [\n {\n title: \"员工编号\", dataIndex: \"a\", key: \"a\", width: 120, className: \"rowClassName\",\n fixed:'left',\n textAlign:'center',\n render: (text, record, index) => {\n return (\n \n {text}\n \n );\n }\n },\n { title: \"员工姓名\", dataIndex: \"b\", key: \"b\", width:100,textAlign:'center'},\n { title: \"性别\", dataIndex: \"c\", key: \"c\", width: 100,textAlign:'center'},\n { title: \"部门\", dataIndex: \"d\", key: \"d\", width: 100,textAlign:'center' },\n { title: \"职级\", dataIndex: \"e\", key: \"e\", width: 100,textAlign:'center' }\n];\n\nconst data = [\n { a: \"ASVAL_201903280005\", b: \"小张\", c: \"男\", d: \"财务二科\", e: \"M1\", key: \"1\" },\n { a: \"ASVAL_201903200004\", b: \"小明\", c: \"男\", d: \"财务一科\", e: \"T1\", key: \"2\" },\n { a: \"ASVAL_201903120002\", b: \"小红\", c: \"女\", d: \"财务一科\", e: \"T2\", key: \"3\" }\n];\n\nclass Demo06 extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n data: data\n }\n }\n handleClick = () => {\n console.log('这是第' , this.currentIndex , '行');\n console.log('内容:' , this.currentRecord);\n }\n\n render() {\n return (\n \n );\n }\n}\n\nexport default Demo06;\n", "desc": " 在columns数据中设置`textAlign:'center'`,可实现单元格内容居中展示的效果。默认是居左显示。" }, { "example": _react2['default'].createElement(Demo0107, null), "title": " 带边框", "code": "/**\n*\n* @title 带边框\n* @parent 基础 Basic\n* @description 设置 `bordered` 属性可添加表格边框线。\n* demo0107\n*/\n\nimport React, { Component } from \"react\";\nimport { Table, Button,Tooltip } from 'tinper-bee';\n\n\n\nconst columns = [\n { title: \"员工编号\", dataIndex: \"a\", key: \"a\", width: 150 },\n { title: \"员工姓名\", dataIndex: \"b\", key: \"b\", width:100},\n { title: \"性别\", dataIndex: \"c\", key: \"c\", width: 100},\n { title: \"部门\", dataIndex: \"d\", key: \"d\", width: 100 },\n { title: \"职级\", dataIndex: \"e\", key: \"e\", width: 100 }\n];\n\nconst data = [\n { a: \"ASVAL_20190328\", b: \"小张\", c: \"男\", d: \"财务二科\", e: \"M1\", key: \"1\" },\n { a: \"ASVAL_20190320\", b: \"小明\", c: \"男\", d: \"财务一科\", e: \"T1\", key: \"2\" },\n { a: \"ASVAL_20190312\", b: \"小红\", c: \"女\", d: \"财务一科\", e: \"T2\", key: \"3\" }\n];\n\nclass Demo06 extends Component {\n render() {\n return (\n \n );\n }\n}\n\nexport default Demo06;\n", "desc": " 设置 `bordered` 属性可添加表格边框线。" }, { "example": _react2['default'].createElement(Demo0201, null), "title": " 横向滚动条", "code": "/**\n*\n* @title 横向滚动条\n* @parent 滚动 Scroll View\n* @description `scroll.x`的值代表表体内容的实际宽度,默认情况下是根据各列宽度合计出来的。其值超过父元素的宽度时会自动出现滚动条。如设置 `scroll={{ x:1000 }}`,可以手动添加横向滚动条,也可以设置`scroll={{ x:\"110%\" }}`。\n* demo0201\n*/\n\nimport React, { Component } from \"react\";\nimport { Table } from 'tinper-bee';\n\n\nconst columns = [\n {\n title: \"序号\",\n dataIndex: \"index\",\n key: \"index\",\n width: 100, \n render(text, record, index) {\n return index + 1;\n }\n },\n {\n title: \"订单编号\",\n dataIndex: \"orderCode\",\n key: \"orderCode\",\n width: 300, \n },\n {\n title: \"供应商名称\",\n dataIndex: \"supplierName\",\n key: \"supplierName\",\n width: 200\n },\n {\n title: \"类型\",\n dataIndex: \"type_name\",\n key: \"type_name\",\n width: 200\n },\n {\n title: \"采购组织\",\n dataIndex: \"purchasing\",\n key: \"purchasing\",\n width: 200\n },\n {\n title: \"采购组\",\n dataIndex: \"purchasingGroup\",\n key: \"purchasingGroup\",\n width: 200\n },\n {\n title: \"凭证日期\",\n dataIndex: \"voucherDate\",\n key: \"voucherDate\",\n width: 300,\n },\n {\n title: \"审批状态\",\n dataIndex: \"approvalState_name\",\n key: \"approvalState_name\",\n width: 200\n },\n {\n title: \"确认状态\",\n dataIndex: \"confirmState_name\",\n key: \"confirmState_name\",\n width: 200\n }, \n {\n title: \"关闭状态\",\n dataIndex: \"closeState_name\",\n key: \"closeState_name\",\n width: 100\n }\n];\n \nconst data = [\n { \n orderCode:\"NU0391025\", \n supplierName: \"xx供应商\",\n type_name: \"1\",\n purchasing:'组织c', \n purchasingGroup:\"aa\",\n voucherDate:\"2018年03月18日\",\n approvalState_name:\"已审批\",\n confirmState_name:\"执行中\",\n closeState_name:\"未关闭\",\n key: \"1\"\n }, \n { \n orderCode:\"NU0391026\", \n supplierName: \"xx供应商\",\n type_name: \"2\",\n purchasing:'组织a', \n purchasingGroup:\"bb\",\n voucherDate:\"2018年02月05日\",\n approvalState_name:\"已审批\",\n confirmState_name:\"待确认\",\n closeState_name:\"未关闭\",\n key: \"2\"\n },\n { \n orderCode:\"NU0391027\", \n supplierName: \"xx供应商\",\n type_name: \"3\",\n purchasing:'组织b', \n purchasingGroup:\"aa\",\n voucherDate:\"2018年07月01日\",\n approvalState_name:\"已审批\",\n confirmState_name:\"终止\",\n closeState_name:\"已关闭\",\n key: \"3\"\n },\n { \n orderCode:\"NU0391028\", \n supplierName: \"xx供应商\",\n type_name: \"4\",\n purchasing:'组织c', \n purchasingGroup:\"cc\",\n voucherDate:\"2019年03月01日\",\n approvalState_name:\"未审批\",\n confirmState_name:\"待确认\",\n closeState_name:\"未关闭\",\n key: \"4\"\n },\n { \n orderCode:\"NU0391029\", \n supplierName: \"xx供应商\",\n type_name: \"5\",\n purchasing:'组织d', \n purchasingGroup:\"ss\",\n voucherDate:\"2019年02月14日\",\n approvalState_name:\"未审批\",\n confirmState_name:\"待确认\",\n closeState_name:\"未关闭\",\n key: \"5\"\n }\n];\n\nclass Demo11 extends Component {\n render() {\n return (\n
\n );\n }\n}\n\nexport default Demo11;\n", "desc": " `scroll.x`的值代表表体内容的实际宽度,默认情况下是根据各列宽度合计出来的。其值超过父元素的宽度时会自动出现滚动条。如设置 `scroll={{ x:1000 }}`,可以手动添加横向滚动条,也可以设置`scroll={{ x:\"110%\" }}`。" }, { "example": _react2['default'].createElement(Demo0202, null), "title": " 纵向滚动条", "code": "/**\n*\n* @title 纵向滚动条\n* @parent 滚动 Scroll View\n* @description 通过设置 `scroll.y` 可达到固定表头的效果。如设置 `scroll={{ y:200 }}` 表示表体高度超出 200px 后会显示滚动条。\n* demo0202\n*/\n\nimport React, { Component } from \"react\";\nimport { Table } from 'tinper-bee';\n\n\nconst columns = [\n {title: \"序号\",dataIndex: \"index\",key: \"index\",width: 80, \n render(text, record, index) {\n return index + 1;\n }\n },\n {title: \"订单编号\",dataIndex: \"orderCode\",key: \"orderCode\",width: 200},\n {title: \"供应商名称\",dataIndex: \"supplierName\",key: \"supplierName\",width: 200},\n {title: \"类型\",dataIndex: \"type_name\",key: \"type_name\",width: 200},\n {title: \"采购组织\",dataIndex: \"purchasing\",key: \"purchasing\",width: 200},\n {title: \"采购组\",dataIndex: \"purchasingGroup\",key: \"purchasingGroup\",width: 200},\n {title: \"凭证日期\",dataIndex: \"voucherDate\",key: \"voucherDate\",width: 200}\n];\n \nconst data = [\n { \n orderCode:\"NU0391025\", \n supplierName: \"xx供应商\",\n type_name: \"1\",\n purchasing:'组织c', \n purchasingGroup:\"aa\",\n voucherDate:\"2018年03月18日\",\n key: \"1\"\n }, \n { \n orderCode:\"NU0391026\", \n supplierName: \"xx供应商\",\n type_name: \"2\",\n purchasing:'组织a', \n purchasingGroup:\"bb\",\n voucherDate:\"2018年02月05日\",\n key: \"2\"\n },\n { \n orderCode:\"NU0391027\", \n supplierName: \"xx供应商\",\n type_name: \"3\",\n purchasing:'组织b', \n purchasingGroup:\"aa\",\n voucherDate:\"2018年07月01日\",\n key: \"3\"\n },\n { \n orderCode:\"NU0391028\", \n supplierName: \"xx供应商\",\n type_name: \"4\",\n purchasing:'组织c', \n purchasingGroup:\"cc\",\n voucherDate:\"2019年03月01日\",\n key: \"4\"\n },\n { \n orderCode:\"NU0391029\", \n supplierName: \"xx供应商\",\n type_name: \"5\",\n purchasing:'组织d', \n purchasingGroup:\"ss\",\n voucherDate:\"2019年02月14日\",\n key: \"5\"\n },\n { \n orderCode:\"NU0391030\", \n supplierName: \"xx供应商\",\n type_name: \"1\",\n purchasing:'组织e', \n purchasingGroup:\"zz\",\n voucherDate:\"2019年02月18日\",\n key: \"6\"\n },\n { \n orderCode:\"NU0391031\", \n supplierName: \"xx供应商\",\n type_name: \"2\",\n purchasing:'组织f', \n purchasingGroup:\"qq\",\n voucherDate:\"2019年01月01日\",\n key: \"7\"\n },\n { \n orderCode:\"NU0391032\", \n supplierName: \"xx供应商\",\n type_name: \"3\",\n purchasing:'组织g', \n purchasingGroup:\"pp\",\n voucherDate:\"2019年01月31日\",\n key: \"8\"\n },\n];\nclass Demo12 extends Component {\n render() {\n return (\n
\n );\n }\n}\n\nexport default Demo12;\n", "desc": " 通过设置 `scroll.y` 可达到固定表头的效果。如设置 `scroll={{ y:200 }}` 表示表体高度超出 200px 后会显示滚动条。" }, { "example": _react2['default'].createElement(Demo0301, null), "title": " 渲染本地数据", "code": "/**\n*\n* @title 渲染本地数据\n* @parent 数据操作 Data Opetation\n* @description 可自定义页头和页脚。\n* demo0301\n*/\n\nimport React, { Component } from \"react\";\nimport { Table, Button,Tooltip } from 'tinper-bee';\n\n\n\nconst columns = [\n {\n title: \"员工编号\", dataIndex: \"a\", key: \"a\", width: 300, className: \"rowClassName\",\n fixed:'left',\n render: (text, record, index) => {\n return (\n \n {text}\n \n );\n }\n },\n { title: \"员工姓名\", dataIndex: \"b\", key: \"b\", width: 500 },\n { title: \"性别\", dataIndex: \"c\", key: \"c\", width: 500 },\n { title: \"部门\", dataIndex: \"d\", key: \"d\", width: 200 }\n];\n\nconst data = [\n { a: \"ASVAL_201903280005\", b: \"小张\", c: \"男\", d: \"财务二科\", key: \"1\" },\n { a: \"ASVAL_201903200004\", b: \"小明\", c: \"男\", d: \"财务一科\", key: \"2\" },\n { a: \"ASVAL_201903120002\", b: \"小红\", c: \"女\", d: \"财务一科\", key: \"3\" }\n];\nclass Demo21 extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n data: data\n }\n }\n\n render() {\n return (\n
员工信息统计表
}\n footer={currentData =>
合计: 共{data.length}条数据
}\n />\n );\n }\n}\n\nexport default Demo21;\n", "desc": " 可自定义页头和页脚。" }, { "example": _react2['default'].createElement(Demo0302, null), "title": " 渲染远程数据", "code": "/**\n*\n* @title 渲染远程数据\n* @parent 数据操作 Data Opetation\n* @description 可通过 ajax 请求方式,从服务端读取并展现数据。也可自行接入其他数据处理方式。\n* demo0302\n*/\n\nimport React, { Component } from \"react\";\nimport { Table, Button } from 'tinper-bee';\n\nimport reqwest from 'reqwest';\n\n\nconst columns = [{\n title: 'Name',\n dataIndex: 'name',\n sorter: true,\n render: name => `${name.first} ${name.last}`,\n width: '20%',\n}, {\n title: 'Gender',\n dataIndex: 'gender',\n filters: [\n { text: 'Male', value: 'male' },\n { text: 'Female', value: 'female' },\n ],\n width: '20%',\n}, {\n title: 'Email',\n dataIndex: 'email',\n}];\n\nclass Demo22 extends Component {\n constructor(props) {\n super(props);\n this.state = {\n data: [],\n loading: false,\n }\n }\n\n fetch = (params = {}) => {\n console.log('params:', params);\n this.setState({ loading: true });\n reqwest({\n url: 'https://randomuser.me/api',\n method: 'get',\n data: {\n results: 10,\n ...params,\n },\n type: 'json',\n }).then((data) => {\n this.setState({\n loading: false,\n data: data.results,\n });\n });\n }\n\n render() {\n return (\n
\n \n \n
\n );\n }\n}\n\nexport default Demo22;\n", "desc": " 可通过 ajax 请求方式,从服务端读取并展现数据。也可自行接入其他数据处理方式。", "scss_code": ".demo22{\n .opt-btns{\n margin-bottom: 8px;\n }\n}" }, { "example": _react2['default'].createElement(Demo0401, null), "title": " 悬浮列", "code": "/**\n*\n* @title 悬浮列\n* @parent 列渲染 Custom Render\n* @description 鼠标hover行时呼出操作按钮。\n* demo0401\n*/\n\nimport React, { Component } from \"react\";\nimport { Table, Button,Popconfirm } from 'tinper-bee';\n\n\n\nconst columns = [\n { title: \"员工编号\", dataIndex: \"a\", key: \"a\", width: 150 },\n { title: \"员工姓名\", dataIndex: \"b\", key: \"b\", width: 100 },\n { title: \"性别\", dataIndex: \"c\", key: \"c\", width: 100 },\n { title: \"部门\", dataIndex: \"d\", key: \"d\", width: 100 }\n];\n\nconst data = [\n { a: \"ASVAL_201903280005\", b: \"小张\", c: \"男\", d: \"财务二科\", key: \"1\" },\n { a: \"ASVAL_201903200004\", b: \"小明\", c: \"男\", d: \"财务一科\", key: \"2\" },\n { a: \"ASVAL_201903120002\", b: \"小红\", c: \"女\", d: \"财务一科\", key: \"3\" }\n];\n\nclass Demo11 extends Component {\n constructor(props) {\n super(props);\n }\n\n deleteRow=()=>{\n console.log('删除第' , this.currentIndex , '行');\n }\n\n onRowHover=(index,record)=>{\n this.currentIndex = index;\n this.currentRecord = record;\n }\n\n getHoverContent=(record, index)=>{\n return (\n
\n \n \n \n
\n )\n }\n\n render() {\n return (\n \n );\n }\n}\n\nexport default Demo11;\n", "desc": " 鼠标hover行时呼出操作按钮。" }, { "example": _react2['default'].createElement(Demo0402, null), "title": " 多列表头", "code": "/**\r\n *\r\n * @title 多列表头\r\n * @parent 列渲染 Custom Render\r\n * @description columns[n] 可以内嵌 children,以渲染分组表头。\r\n * 自定义表头高度需要传headerHeight,注:修改th的padding top和bottom置为0,否则会有影响\r\n * 多列表头拖拽的时候,原则只拖拽叶子节点的表头。\r\n * demo0402\r\n */\r\n\r\nimport React, { Component } from \"react\";\nimport { Table } from 'tinper-bee';\r\n\r\n\r\nimport dragColumn from 'bee-table/build/lib/dragColumn';\r\n\r\nconst columns = [\r\n {\r\n title: \"姓名\",\r\n dataIndex: \"name\",\r\n key: \"name\",\r\n width: 100,\r\n fixed: \"left\"\r\n },\r\n {\r\n title: \"个人信息\",\r\n width:600,\r\n children: [\r\n {\r\n title: \"年龄\",\r\n dataIndex: \"age\",\r\n key: \"age\",\r\n width: 200\r\n },\r\n {\r\n title: \"地址\",\r\n children: [\r\n {\r\n title: \"街道\",\r\n dataIndex: \"street\",\r\n key: \"street\",\r\n width: 200\r\n },\r\n {\r\n title: \"单元\",\r\n children: [\r\n {\r\n title: \"楼号\",\r\n dataIndex: \"building\",\r\n key: \"building\",\r\n width: 100\r\n },\r\n {\r\n title: \"门户\",\r\n dataIndex: \"number\",\r\n key: \"number\",\r\n width: 100\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n title: \"公司信息\",\r\n width:400,\r\n children: [\r\n {\r\n title: \"公司地址\",\r\n dataIndex: \"companyAddress\",\r\n key: \"companyAddress\",\r\n width:200,\r\n },\r\n {\r\n title: \"公司名称\",\r\n dataIndex: \"companyName\",\r\n key: \"companyName\",\r\n width:200,\r\n }\r\n ]\r\n },\r\n {\r\n title: \"性别\",\r\n dataIndex: \"gender\",\r\n key: \"gender\",\r\n width: 60,\r\n fixed: \"right\"\r\n }\r\n];\r\n\r\nconst data = [];\r\nfor (let i = 0; i < 20; i++) {\r\n data.push({\r\n key: i,\r\n name: \"John Brown\",\r\n age: i + 1,\r\n street: \"Lake Park\",\r\n building: \"C\",\r\n number: 2035,\r\n companyAddress: \"北清路 68 号\",\r\n companyName: \"用友\",\r\n gender: \"男\"\r\n });\r\n}\r\n\r\nconst DragColumnTable = dragColumn(Table);\r\n\r\nclass Demo12 extends Component {\r\n render() {\r\n return (\r\n {\r\n console.log(width+\"--调整列宽后触发事件\",e.target);\r\n }}\r\n scroll={{ y: 240 }}\r\n />\r\n );\r\n }\r\n}\r\n\r\nexport default Demo12;\r\n", "desc": " columns[n] 可以内嵌 children,以渲染分组表头。", "scss_code": ".demo32{\n .u-table-thead th {\n padding-top: 0px;\n padding-bottom: 0px;\n }\n}" }, { "example": _react2['default'].createElement(Demo0404, null), "title": " 数据关联", "code": "/**\n*\n* @title 数据关联\n* @parent 列渲染 Custom Render\n* @description 数据行关联自定义菜单显示\n* demo0404\n*/\n\nimport React, { Component } from 'react';\nimport { Table, Icon,Checkbox,Dropdown,Menu } from 'tinper-bee';\n\n\nimport multiSelect from \"bee-table/build/lib/newMultiSelect\";\nimport sort from \"bee-table/build/lib/sort\";\n\nconst { Item } = Menu;\n\nconst data = [\n { \n num:\"NU0391025\", \n name: \"aa\",\n sex: \"男\",\n dept:'财务二科', \n rank:\"T1\",\n year:\"1\",\n seniority:\"1\",\n key: \"1\"\n }, \n { \n num:\"NU0391026\", \n name: \"bb\",\n sex: \"女\",\n dept:'财务一科', \n rank:\"M1\",\n year:\"1\",\n seniority:\"1\",\n key: \"2\"\n },\n { \n num:\"NU0391027\", \n name: \"dd\",\n sex: \"女\",\n dept:'财务一科', \n rank:\"T2\",\n year:\"2\",\n seniority:\"2\",\n key: \"3\"\n }\n];\n\nconst MultiSelectTable = multiSelect(Table, Checkbox);\nconst ComplexTable = sort(MultiSelectTable, Icon);\n\nclass Demo13 extends Component {\n constructor(props) {\n super(props);\n }\n getSelectedDataFunc = data => {\n console.log(data);\n }\n onSelect = (item) => {\n console.log(item);\n }\n render() {\n const menu1 = (\n \n 模态弹出\n 链接跳转\n 打开新页\n );\n let columns = [\n { title: \"关联\",dataIndex: \"link\",key: \"link\",width: 80, \n render: (text, record, index) => {\n return (\n \n \n \n )\n }\n },\n { title: \"员工编号\",dataIndex: \"num\",key: \"num\",width: 200 },\n { title: \"员工姓名\",dataIndex: \"name\",key: \"name\", width: 200},\n { title: \"员工性别\",dataIndex: \"sex\",key: \"sex\",width: 200 },\n { title: \"部门\",dataIndex: \"dept\",key: \"dept\",width: 200},\n { title: \"职级\",dataIndex: \"rank\",key: \"rank\",width: 200},\n { title: \"工龄\",dataIndex: \"year\",key: \"year\",width: 200},\n { title: \"司龄\",dataIndex: \"seniority\",key: \"seniority\",width: 200}\n ];\n return \n }\n}\n\nexport default Demo13; ", "desc": " 数据行关联自定义菜单显示" }, { "example": _react2['default'].createElement(Demo0405, null), "title": " 列合计(总计)", "code": "/**\n *\n * @title 列合计(总计)\n * @parent 列渲染 Custom Render\n * @description 给需要计算合计的列(columns),设置sumCol值为true即可,支持动态设置数据源。\n * demo0405\n */\n\nimport React, { Component } from \"react\";\nimport { Table, Checkbox } from 'tinper-bee';\n\n \nimport sum from \"bee-table/build/lib/sum.js\";\nimport multiSelect from \"bee-table/build/lib/multiSelect.js\";\n \nlet ComplexTable = multiSelect(sum(Table), Checkbox);\n//sum第二个参数可以设置精度,例如 sum(Table,4); 设计精度为4\nlet _sum = 0;\nconst columns = [\n {\n title: \"单据编号\",\n dataIndex: \"num\",\n key: \"num\",\n width: 120,\n fixed: \"left\"\n },\n {\n title: \"单据日期\",\n dataIndex: \"date\",\n key: \"date\",\n width: 200,\n },\n {\n title: \"业务类型\",\n dataIndex: \"type\",\n key: \"type\",\n width: 200\n },\n {\n title: \"供应商\",\n dataIndex: \"supplier\",\n key: \"supplier\",\n width: 100\n },\n {\n title: \"联系人\",\n dataIndex: \"contact\",\n key: \"contact\",\n },\n {\n title: \"仓库\",\n dataIndex: \"warehouse\",\n key: \"warehouse\",\n width: 80,\n },\n {\n title: \"整单数量\",\n dataIndex: \"total\",\n key: \"total\",\n width: 100,\n sumCol: true\n },\n {\n title: \"金额\",\n dataIndex: \"money\",\n key: \"money\",\n width: 100,\n sumCol: true\n }\n];\n\nfunction getData(){\n const data = [];\n for (let i = 0; i < 5; i++) {\n data.push({\n key: i,\n num: \"NU039100\"+i,\n date: \"2019-03-01\",\n type: \"普通采购\",\n supplier: \"gys\"+i,\n contact: \"Tom\",\n warehouse: \"普通仓\",\n total: i + Math.floor(Math.random()*10),\n money: 20 * Math.floor(Math.random()*10)\n });\n _sum += data[i].total;\n _sum += data[i].money;\n }\n return data;\n}\n\nclass Demo35 extends Component {\n \n constructor(props) {\n super(props);\n this.state = {\n data: getData(),\n sum:_sum\n };\n }\n\n render() {\n const {data} = this.state;\n return (\n
\n
总计: {_sum}
}\n />\n
\n );\n }\n}\nexport default Demo35;\n", "desc": " 给需要计算合计的列(columns),设置sumCol值为true即可,支持动态设置数据源。" }, { "example": _react2['default'].createElement(Demo0406, null), "title": " 自定义整行和整列样式表格", "code": "/**\n *\n * @title 自定义整行和整列样式表格\n * @parent 列渲染 Custom Render\n * @description 某行或某列的样式,严格按照react的样式书写规则,即对象内每一个属性的键为小写驼峰式,值为字符串。此demo展示自定义整行或整列的背景色和字体内容颜色。\n * demo0406\n */\n\nimport React, { Component } from \"react\";\nimport { Table } from 'tinper-bee';\n\n\nconst columns = [\n { title: \"员工编号\", dataIndex: \"a\", key: \"a\", width: 150 },\n { title: \"员工姓名\", dataIndex: \"b\", key: \"b\", width:100},\n { title: \"性别\", dataIndex: \"c\", key: \"c\", width: 100,style: {backgroundColor:'#e3f2fd',color:'#505F79'}},\n { title: \"部门\", dataIndex: \"d\", key: \"d\", width: 100 },\n { title: \"职级\", dataIndex: \"e\", key: \"e\", width: 100 }\n];\n\nconst data = [\n { a: \"ASVAL_20190328\", b: \"小张\", c: \"男\", d: \"财务二科\", e: \"M1\", key: \"1\" ,style:{backgroundColor:'#ffebee',color:'#000'}},\n { a: \"ASVAL_20190320\", b: \"小明\", c: \"男\", d: \"财务一科\", e: \"T1\", key: \"2\" },\n { a: \"ASVAL_20190312\", b: \"小红\", c: \"女\", d: \"财务一科\", e: \"T2\", key: \"3\" }\n];\n\nclass Demo0406 extends Component {\n render() {\n return (\n \n );\n }\n}\nexport default Demo0406\n", "desc": " 某行或某列的样式,严格按照react的样式书写规则,即对象内每一个属性的键为小写驼峰式,值为字符串。此demo展示自定义整行或整列的背景色和字体内容颜色。" }, { "example": _react2['default'].createElement(Demo0501, null), "title": " 行内编辑", "code": "/**\n *\n * @title 行内编辑\n * @parent 编辑 Editor\n * @description 可以对行进行编辑的表格\n * demo0501\n */\nimport React, { Component } from \"react\";\nimport { Table, Select, Form, FormControl, Button, Icon, Tooltip } from 'tinper-bee';\n\n\nconst Option = Select.Option;\nimport { RefTreeWithInput } from \"ref-tree\";\n\nclass StringEditCell extends Component {\n constructor(props, context) {\n super(props);\n this.state = {\n value: props.value\n };\n }\n\n componentWillReceiveProps(nextProps) {\n if (!nextProps.editable) {\n this.setState({ value: nextProps.value });\n }\n }\n\n handleChange = value => {\n const { onChange, throwError } = this.props;\n if (value === \"\") {\n throwError && throwError(true);\n } else {\n throwError && throwError(false);\n }\n this.setState({ value });\n onChange && onChange(value);\n };\n\n render() {\n const { editable, required, colName } = this.props;\n const { value } = this.state;\n let cls = \"editable-cell-input-wrapper\";\n if (required) cls += \" required\";\n if (value === \"\") cls += \" verify-cell\";\n return editable ? (\n
\n
\n \n \n {value === \"\" ? (\n {\"请输入\" + colName}
}\n >\n \n \n ) : null}\n \n
\n \n ) : (\n value || \" \"\n );\n }\n}\n\nconst SELECT_SOURCE = [\"男\", \"女\"];\n\nclass SelectEditCell extends Component {\n constructor(props, context) {\n super(props);\n this.state = {\n value: props.value\n };\n }\n\n componentWillReceiveProps(nextProps) {\n if (!nextProps.editable) {\n this.setState({ value: nextProps.value });\n }\n }\n\n handleSelect = value => {\n this.setState({ value });\n this.props.onChange && this.props.onChange(value);\n };\n\n render() {\n const { editable } = this.props;\n const { value } = this.state;\n let cls = \"editable-cell-input-wrapper\";\n return editable ? (\n
\n
\n \n
\n
\n ) : (\n value || \" \"\n );\n }\n}\n\nconst option = {\n title: \"树\",\n searchable: true,\n multiple: false,\n param: {\n refCode: \"neworganizition_tree\"\n },\n checkStrictly: true,\n disabled: false,\n nodeDisplay: record => {\n return record.refname;\n },\n displayField: record => {\n return record.refname;\n }, //显示内容的键\n valueField: \"refpk\", //真实 value 的键\n refModelUrl: {\n treeUrl: \"https://mock.yonyoucloud.com/mock/358/blobRefTree\",\n treeUrl: \"/pap_basedoc/common-ref/blobRefTree\"\n },\n matchUrl: \"/pap_basedoc/common-ref/matchPKRefJSON\",\n filterUrl: \"/pap_basedoc/common-ref/filterRefJSON\",\n lazyModal: false,\n strictMode: true,\n lang: \"zh_CN\",\n treeData: [\n {\n code: \"org1\",\n children: [\n {\n code: \"bj\",\n entityType: \"mainEntity\",\n name: \"北京总部-简\",\n pid: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refcode: \"bj\",\n refpk: \"5305416e-e7b4-4051-90bd-12d12942295b\",\n id: \"5305416e-e7b4-4051-90bd-12d12942295b\",\n isLeaf: \"true\",\n refname: \"北京总部-简\"\n },\n {\n code: \"xd\",\n entityType: \"mainEntity\",\n name: \"新道-简\",\n pid: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refcode: \"xd\",\n refpk: \"b691afff-ea83-4a3f-affa-beb2be9cba52\",\n id: \"b691afff-ea83-4a3f-affa-beb2be9cba52\",\n isLeaf: \"true\",\n refname: \"新道-简\"\n },\n {\n code: \"yy3\",\n entityType: \"mainEntity\",\n name: \"test3\",\n pid: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refcode: \"yy3\",\n refpk: \"e75694d9-7c00-4e9e-9573-d29465ae79a9\",\n id: \"e75694d9-7c00-4e9e-9573-d29465ae79a9\",\n isLeaf: \"true\",\n refname: \"test3\"\n },\n {\n code: \"yy1\",\n entityType: \"mainEntity\",\n name: \"test1\",\n pid: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refcode: \"yy1\",\n refpk: \"fd32ceeb-57a8-4f44-816e-fa660f5715ab\",\n id: \"fd32ceeb-57a8-4f44-816e-fa660f5715ab\",\n isLeaf: \"true\",\n refname: \"test1\"\n },\n {\n code: \"dept2\",\n children: [\n {\n code: \"cs\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"测试部-简\",\n pid: \"0ebbb6d8-250a-4d1d-a019-7ae951629a2c\",\n refcode: \"cs\",\n refpk: \"cc43a66a-438d-4106-937f-bec44406f771\",\n id: \"cc43a66a-438d-4106-937f-bec44406f771\",\n isLeaf: \"true\",\n refname: \"测试部-简\"\n },\n {\n code: \"qd\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"前端部-简\",\n pid: \"0ebbb6d8-250a-4d1d-a019-7ae951629a2c\",\n refcode: \"qd\",\n refpk: \"73a10edd-aae8-4f31-af25-1f48f0a3b344\",\n id: \"73a10edd-aae8-4f31-af25-1f48f0a3b344\",\n isLeaf: \"true\",\n refname: \"前端部-简\"\n }\n ],\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"生产处\",\n refcode: \"dept2\",\n refpk: \"0ebbb6d8-250a-4d1d-a019-7ae951629a2c\",\n id: \"0ebbb6d8-250a-4d1d-a019-7ae951629a2c\",\n refname: \"生产处\"\n },\n {\n code: \"dept1\",\n children: [\n {\n code: \"dept1_2\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务二科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_2\",\n refpk: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n id: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n isLeaf: \"true\",\n refname: \"财务二科\"\n },\n {\n code: \"dept1_1\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务一科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_1\",\n refpk: \"9711d912-3184-4063-90c5-1facc727813c\",\n id: \"9711d912-3184-4063-90c5-1facc727813c\",\n isLeaf: \"true\",\n refname: \"财务一科\"\n }\n ],\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务处\",\n refcode: \"dept1\",\n refpk: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n id: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refname: \"财务处\"\n }\n ],\n entityType: \"mainEntity\",\n name: \"用友集团\",\n refcode: \"org1\",\n refpk: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refname: \"用友集团\"\n }\n ]\n};\n\nconst RefEditCell = Form.createForm()(\n class RefComponentWarpper extends Component {\n constructor(props, context) {\n super(props);\n this.state = {\n value: props.value\n };\n }\n\n componentWillReceiveProps(nextProps) {\n if (!nextProps.editable) {\n this.setState({ value: nextProps.value });\n }\n }\n\n handleSelect = values => {\n this.setState({ value: values[0] });\n this.props.onChange && this.props.onChange(values[0]);\n };\n\n render() {\n const { getFieldProps, getFieldError } = this.props.form;\n const { editable, required } = this.props;\n const { value } = this.state;\n let cls = \"editable-cell-input-wrapper\";\n if (required) cls += \" required\";\n if (getFieldError(\"refValue\")) cls += \" verify-cell\";\n return editable ? (\n
\n \n {\"请输入\" + this.props.colName}\n
\n }\n >\n \n \n ),\n pattern: /[^{\"refname\":\"\",\"refpk\":\"\"}|{\"refpk\":\"\",\"refname\":\"\"}]/\n }\n ]\n })}\n />\n {getFieldError(\"refValue\")}\n \n ) : (\n value.name || \" \"\n );\n }\n }\n);\n\nlet dataSource = [\n {\n a: \"ASVAL_201903280005\",\n b: \"小张\",\n c: \"男\",\n d: {\n code: \"dept1_2\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务二科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_2\",\n refpk: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n id: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n isLeaf: \"true\",\n refname: \"财务二科\"\n },\n key: \"1\"\n },\n {\n a: \"ASVAL_201903200004\",\n b: \"小明\",\n c: \"男\",\n d: {\n code: \"dept1_2\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务二科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_2\",\n refpk: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n id: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n isLeaf: \"true\",\n refname: \"财务二科\"\n },\n key: \"2\"\n },\n {\n a: \"ASVAL_201903120002\",\n b: \"小红\",\n c: \"女\",\n d: {\n code: \"dept1_1\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务一科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_1\",\n refpk: \"9711d912-3184-4063-90c5-1facc727813c\",\n id: \"9711d912-3184-4063-90c5-1facc727813c\",\n isLeaf: \"true\",\n refname: \"财务一科\"\n },\n key: \"3\"\n }\n];\n\nclass Demo0501 extends Component {\n constructor(props, context) {\n super(props);\n this.state = {\n dataSource: dataSource,\n editingRowsMap: {},\n currentIndex: null,\n errorEditFlag: false\n };\n\n this.columns = [\n {\n title: \"员工编号\",\n dataIndex: \"a\",\n key: \"a\"\n },\n {\n title: \"名字\",\n dataIndex: \"b\",\n key: \"b\",\n render: (text, record, index) => (\n \n )\n },\n {\n title: \"性别\",\n dataIndex: \"c\",\n key: \"c\",\n width: 100,\n render: (text, record, index) => (\n \n )\n },\n {\n title: \"部门\",\n dataIndex: \"d\",\n key: \"d\",\n width: 215,\n render: (text, record, index) => (\n \n )\n },\n // 只是用来占位占宽度的\n {\n key: \"placeholder\"\n }\n ];\n\n this.state = {\n dataSource: dataSource,\n editingRowsMap: {},\n currentIndex: null,\n errorEditFlag: false\n };\n\n this.dataBuffer = {};\n }\n\n edit = index => () => {\n if (index === null) return;\n let editingRowsMap = { ...this.state.editingRowsMap };\n editingRowsMap[index] = index.toString();\n // 最好使用深复制\n this.dataBuffer[index] = { ...this.state.dataSource[index] };\n this.setState({ editingRowsMap });\n };\n\n abortEdit = index => () => {\n let editingRowsMap = { ...this.state.editingRowsMap };\n delete editingRowsMap[index];\n delete this.dataBuffer[index];\n this.setState({ editingRowsMap });\n };\n\n delete = index => () => {\n if (index === null) return;\n let { dataSource } = this.state;\n dataSource.splice(index,1);\n this.setState({\n dataSource:dataSource\n });\n }\n\n commitChange = index => () => {\n if (this.state.errorEditFlag) return;\n let editingRowsMap = { ...this.state.editingRowsMap };\n delete editingRowsMap[index];\n let dataSource = [...this.state.dataSource];\n dataSource[index] = { ...this.dataBuffer[index] };\n this.setState({ editingRowsMap, dataSource });\n };\n\n onCellChange = (index, key) => value => {\n this.dataBuffer[index][key] = value;\n };\n\n throwError = isError => {\n if (isError !== this.state.errorEditFlag)\n this.setState({ errorEditFlag: isError });\n };\n\n handleRowHover = (index, record) => {\n this.currentRecord = record;\n this.setState({ currentIndex: index });\n };\n\n renderRowHover = () => {\n const { currentIndex } = this.state;\n return this.state.editingRowsMap[currentIndex] ? (\n
\n \n 取消\n \n \n
\n ) : (\n
\n \n \n
\n );\n };\n\n render() {\n const { dataSource } = this.state;\n const columns = this.columns;\n return (\n
\n \n
\n );\n }\n}\n\nexport default Demo0501;\n", "desc": " 可以对行进行编辑的表格", "scss_code": ".demo0501 .u-table {\n .u-row-hover {\n .opt-btns,.cancel-btns {\n button {\n margin: 0;\n &:first-child {\n margin-right: 8px;\n }\n }\n }\n }\n\n .u-table-row {\n td {\n padding: 5px 8px;\n\n input {\n font-size: 12px;\n padding-left: 5px;\n }\n }\n\n .u-form-control,\n .u-select-selection {\n height: 30px;\n }\n }\n\n .editable-cell-text-wrapper {\n box-sizing: border-box;\n line-height: 20px;\n border-radius: 3px;\n }\n\n .required {\n margin-left: 10px;\n position: relative;\n\n &::before {\n content: \" \";\n border: 1px solid #F44336;\n width: 0;\n height: 12px;\n position: absolute;\n top: 9px;\n left: -8px;\n }\n\n span.u-input-group {\n display: block\n }\n }\n .verify-cell {\n padding-right: 25px !important;\n }\n\n .required-icon {\n position: absolute;\n top: 2px;\n color: #F44336;\n font-size: 20px;\n }\n\n .ref-input-wrap {\n width: 160px !important;\n }\n}\n\n.u-editable-table-tp {\n .tp-content {\n color: #F44336;\n }\n}" }, { "example": _react2['default'].createElement(Demo0502, null), "title": " 单元格编辑", "code": "/**\n *\n * @title 单元格编辑\n * @parent 编辑 Editor\n * @description 可以对单元格进行编辑的表格,示例中给出输入框、下拉框、参照的编辑模式,以及两类校验。(通过对 coloums 配置 render 属性实现渲染不同格式的编辑态单元格)\n * demo0502\n */\nimport React, { Component } from \"react\";\nimport { Table, Icon, Select, Tooltip, Form } from 'tinper-bee';\n\n\nconst Option = Select.Option;\nimport { RefTreeWithInput } from \"ref-tree\";\n\nclass StringEditCell extends Component {\n constructor(props, context) {\n super(props);\n this.state = {\n value: this.props.value,\n editable: false\n };\n this.editWarp = React.createRef();\n }\n\n commitChange = () => {\n if (this.state.value === \"\") return;\n this.setState({ editable: false });\n if (this.props.onChange) {\n this.props.onChange(this.state.value);\n }\n };\n\n edit = () => {\n this.setState({ editable: true });\n };\n\n handleKeydown = event => {\n if (event.keyCode == 13) {\n this.commitChange();\n }\n };\n\n handleChange = e => {\n if (e.target.value === \"\") this.editWarp.className += \" verify-cell\";\n this.setState({ value: e.target.value });\n };\n\n render() {\n const { value, editable } = this.state;\n return (\n
\n {editable ? (\n
this.editWarp = el} className=\"editable-cell-input-wrapper\">\n \n {value === \"\" ? (\n \n {\"请输入\" + this.props.colName}\n
\n }\n >\n \n \n ) : null}\n
\n ) : (\n
\n {value || \" \"}\n
\n )}\n \n );\n }\n}\n\nconst SELECT_SOURCE = [\"男\", \"女\"];\n\nclass SelectEditCell extends Component {\n constructor(props, context) {\n super(props);\n this.state = {\n value: this.props.value,\n editable: false\n };\n }\n\n handleSelect = value => {\n this.setState({ value });\n };\n\n commitChange = () => {\n this.setState({ editable: false });\n if (this.props.onChange) {\n this.props.onChange(this.state.value);\n }\n };\n\n edit = () => {\n this.setState({ editable: true });\n };\n\n render() {\n const { value, editable } = this.state;\n return (\n
\n {editable ? (\n
\n \n {SELECT_SOURCE.map((item, index) => (\n \n ))}\n \n
\n ) : (\n
\n {value || \" \"}\n
\n )}\n
\n );\n }\n}\n\nconst option = {\n title: \"树\",\n searchable: true,\n multiple: false,\n param: {\n refCode: \"neworganizition_tree\"\n },\n checkStrictly: true,\n disabled: false,\n nodeDisplay: record => {\n return record.refname;\n },\n displayField: record => {\n return record.refname;\n }, //显示内容的键\n valueField: \"refpk\", //真实 value 的键\n refModelUrl: {\n treeUrl: \"https://mock.yonyoucloud.com/mock/358/blobRefTree\",\n treeUrl: \"/pap_basedoc/common-ref/blobRefTree\"\n },\n matchUrl: \"/pap_basedoc/common-ref/matchPKRefJSON\",\n filterUrl: \"/pap_basedoc/common-ref/filterRefJSON\",\n lazyModal: false,\n strictMode: true,\n lang: \"zh_CN\",\n treeData: [\n {\n code: \"org1\",\n children: [\n {\n code: \"bj\",\n entityType: \"mainEntity\",\n name: \"北京总部-简\",\n pid: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refcode: \"bj\",\n refpk: \"5305416e-e7b4-4051-90bd-12d12942295b\",\n id: \"5305416e-e7b4-4051-90bd-12d12942295b\",\n isLeaf: \"true\",\n refname: \"北京总部-简\"\n },\n {\n code: \"xd\",\n entityType: \"mainEntity\",\n name: \"新道-简\",\n pid: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refcode: \"xd\",\n refpk: \"b691afff-ea83-4a3f-affa-beb2be9cba52\",\n id: \"b691afff-ea83-4a3f-affa-beb2be9cba52\",\n isLeaf: \"true\",\n refname: \"新道-简\"\n },\n {\n code: \"yy3\",\n entityType: \"mainEntity\",\n name: \"test3\",\n pid: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refcode: \"yy3\",\n refpk: \"e75694d9-7c00-4e9e-9573-d29465ae79a9\",\n id: \"e75694d9-7c00-4e9e-9573-d29465ae79a9\",\n isLeaf: \"true\",\n refname: \"test3\"\n },\n {\n code: \"yy1\",\n entityType: \"mainEntity\",\n name: \"test1\",\n pid: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refcode: \"yy1\",\n refpk: \"fd32ceeb-57a8-4f44-816e-fa660f5715ab\",\n id: \"fd32ceeb-57a8-4f44-816e-fa660f5715ab\",\n isLeaf: \"true\",\n refname: \"test1\"\n },\n {\n code: \"dept2\",\n children: [\n {\n code: \"cs\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"测试部-简\",\n pid: \"0ebbb6d8-250a-4d1d-a019-7ae951629a2c\",\n refcode: \"cs\",\n refpk: \"cc43a66a-438d-4106-937f-bec44406f771\",\n id: \"cc43a66a-438d-4106-937f-bec44406f771\",\n isLeaf: \"true\",\n refname: \"测试部-简\"\n },\n {\n code: \"qd\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"前端部-简\",\n pid: \"0ebbb6d8-250a-4d1d-a019-7ae951629a2c\",\n refcode: \"qd\",\n refpk: \"73a10edd-aae8-4f31-af25-1f48f0a3b344\",\n id: \"73a10edd-aae8-4f31-af25-1f48f0a3b344\",\n isLeaf: \"true\",\n refname: \"前端部-简\"\n }\n ],\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"生产处\",\n refcode: \"dept2\",\n refpk: \"0ebbb6d8-250a-4d1d-a019-7ae951629a2c\",\n id: \"0ebbb6d8-250a-4d1d-a019-7ae951629a2c\",\n refname: \"生产处\"\n },\n {\n code: \"dept1\",\n children: [\n {\n code: \"dept1_2\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务二科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_2\",\n refpk: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n id: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n isLeaf: \"true\",\n refname: \"财务二科\"\n },\n {\n code: \"dept1_1\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务一科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_1\",\n refpk: \"9711d912-3184-4063-90c5-1facc727813c\",\n id: \"9711d912-3184-4063-90c5-1facc727813c\",\n isLeaf: \"true\",\n refname: \"财务一科\"\n }\n ],\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务处\",\n refcode: \"dept1\",\n refpk: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n id: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refname: \"财务处\"\n }\n ],\n entityType: \"mainEntity\",\n name: \"用友集团\",\n refcode: \"org1\",\n refpk: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refname: \"用友集团\"\n }\n ]\n};\n\nconst RefEditCell = Form.createForm()(\n class RefComponentWarpper extends Component {\n constructor(props, context) {\n super(props, context);\n this.state = {\n value: this.props.value.d,\n editable: false\n };\n this.refWarp = React.createRef();\n }\n\n edit = () => {\n this.setState({ editable: true }, () => this.refWarp.focus());\n };\n\n handleSelect = values => {\n this.setState({ value: values[0] });\n };\n\n commitChange = () => {\n this.setState({ editable: false });\n if (this.props.onChange) {\n this.props.onChange(this.state.value);\n }\n };\n\n onRefBlur = e => {\n // 消除点击子组件,父组件先失焦再聚焦的事件触发过程带来的副作用\n const __REF_CONTENT__ = document.querySelector(\"div.ref-core-modal\");\n if (!__REF_CONTENT__ && e.target === this.refWarp) {\n this.commitChange();\n }\n };\n\n render() {\n const { getFieldProps, getFieldError } = this.props.form;\n const { value, editable } = this.state;\n return editable ? (\n (this.refWarp = el)}\n className=\"editable-cell-input-wrapper\"\n tabIndex={-1}\n onBlur={this.onRefBlur}\n >\n \n \n {getFieldError(\"code1\")}\n \n \n ) : (\n
\n {value.name || \" \"}\n
\n );\n }\n }\n);\n\nconst dataSource = [\n {\n a: \"ASVAL_201903280005\",\n b: \"小张\",\n c: \"男\",\n d: {\n code: \"dept1_2\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务二科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_2\",\n refpk: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n id: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n isLeaf: \"true\",\n refname: \"财务二科\"\n },\n key: \"1\"\n },\n {\n a: \"ASVAL_201903200004\",\n b: \"小明\",\n c: \"男\",\n d: {\n code: \"dept1_2\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务二科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_2\",\n refpk: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n id: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n isLeaf: \"true\",\n refname: \"财务二科\"\n },\n key: \"2\"\n },\n {\n a: \"ASVAL_201903120002\",\n b: \"小红\",\n c: \"女\",\n d: {\n code: \"dept1_1\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务一科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_1\",\n refpk: \"9711d912-3184-4063-90c5-1facc727813c\",\n id: \"9711d912-3184-4063-90c5-1facc727813c\",\n isLeaf: \"true\",\n refname: \"财务一科\"\n },\n key: \"3\"\n }\n];\n\nclass Demo0502 extends Component {\n constructor(props, context) {\n super(props);\n this.columns = [\n {\n title: \"员工编号\",\n dataIndex: \"a\",\n key: \"a\"\n },\n {\n title: \"名字\",\n dataIndex: \"b\",\n key: \"b\",\n render: (text, record, index) => (\n \n )\n },\n {\n title: \"性别\",\n dataIndex: \"c\",\n key: \"c\",\n width: 100,\n render: (text, record, index) => (\n \n )\n },\n {\n title: \"部门\",\n dataIndex: \"d\",\n key: \"d\",\n width: 215,\n render: (text, record, index) => (\n \n )\n },\n {\n key: \"placeholder\"\n }\n ];\n\n this.state = {\n dataSource: dataSource\n };\n }\n\n onCellChange = (index, key) => {\n return value => {\n const { dataSource } = this.state;\n dataSource[index][key] = value;\n this.setState({ dataSource }, () => console.dir(this.state.dataSource));\n };\n };\n\n render() {\n return (\n
\n
\n \n );\n }\n}\n\nexport default Demo0502;\n", "desc": " 可以对单元格进行编辑的表格,示例中给出输入框、下拉框、参照的编辑模式,以及两类校验。(通过对 coloums 配置 render 属性实现渲染不同格式的编辑态单元格)", "scss_code": ".u-editable-table .u-table {\n .u-table-row {\n td {\n padding: 5px 8px;\n\n input {\n padding-left: 5px;\n font-size: 12px;\n\n &.error {\n border-color: #F44336;\n }\n }\n }\n\n .editable-cell {\n height: 30px;\n }\n\n &-hover {\n .editable-cell-text-wrapper {\n line-height: 19px;\n }\n }\n\n .u-form-control,\n .u-select-selection {\n height: 30px;\n }\n }\n\n .editable-cell-text-wrapper {\n box-sizing: border-box;\n line-height: 20px;\n border-radius: 3px;\n }\n\n .editable-cell-input-wrapper {\n padding-right: 0;\n .ref-input-wrap {\n width: auto !important;\n height: 30px;\n .u-input-group{\n display: inline-block;\n }\n }\n }\n\n .verify-cell {\n padding-right: 25px !important;\n }\n\n .require {\n position: absolute;\n top: 2px;\n color: #F44336;\n font-size: 20px;\n }\n}\n\n.u-editable-table-tp {\n .tp-content {\n color: #F44336;\n }\n}" }, { "example": _react2['default'].createElement(Demo0503, null), "title": " 弹框(表单)编辑", "code": "/**\n *\n * @title 弹框(表单)编辑\n * @parent 编辑 Editor\n * @description 以弹框形式以对行进行编辑的表格\n * demo0503\n */\n\nimport React, { Component, PureComponent } from \"react\";\nimport { Table } from 'tinper-bee';\n\nimport {\n Select, Form, FormControl, Button, Icon,\n Tooltip, Modal, FormGroup, Label, Row, Col\n} from \"tinper-bee\";\nconst Option = Select.Option;\nimport { RefTreeWithInput } from \"ref-tree\";\n\nfunction handleFormValueChange(WarpCompProps, field, allFields) {\n const { onChange, throwError } = WarpCompProps;\n if (field.value === \"\") return throwError && throwError(true);\n throwError && throwError(false);\n onChange && onChange(field.value);\n}\n\nconst StringEditCell = Form.createForm({\n onValuesChange: handleFormValueChange\n})(PureStringEditCell);\n\nfunction PureStringEditCell(props) {\n const { getFieldProps, getFieldError } = props.form;\n const { value, required } = props;\n let cls = \"editable-cell\";\n if (required) cls += \" required\";\n return (\n
\n \n {\"请输入\" + props.colName}\n
\n }\n >\n \n \n )\n }\n ]\n })}\n />\n {getFieldError(\"value\")}\n \n );\n}\n\nconst SELECT_SOURCE = [\"男\", \"女\"];\n\nclass SelectEditCell extends PureComponent {\n constructor(props, context) {\n super(props);\n }\n\n handleSelect = value => {\n this.props.onChange && this.props.onChange(value);\n };\n\n render() {\n return (\n
\n \n
\n );\n }\n}\n\nconst option = {\n title: \"树\",\n searchable: true,\n multiple: false,\n param: {\n refCode: \"neworganizition_tree\"\n },\n checkStrictly: true,\n disabled: false,\n nodeDisplay: record => {\n return record.refname;\n },\n displayField: record => {\n return record.refname;\n }, //显示内容的键\n valueField: \"refpk\", //真实 value 的键\n refModelUrl: {\n treeUrl: \"https://mock.yonyoucloud.com/mock/358/blobRefTree\",\n treeUrl: \"/pap_basedoc/common-ref/blobRefTree\"\n },\n matchUrl: \"/pap_basedoc/common-ref/matchPKRefJSON\",\n filterUrl: \"/pap_basedoc/common-ref/filterRefJSON\",\n lazyModal: false,\n strictMode: true,\n lang: \"zh_CN\",\n treeData: [\n {\n code: \"org1\",\n children: [\n {\n code: \"bj\",\n entityType: \"mainEntity\",\n name: \"北京总部-简\",\n pid: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refcode: \"bj\",\n refpk: \"5305416e-e7b4-4051-90bd-12d12942295b\",\n id: \"5305416e-e7b4-4051-90bd-12d12942295b\",\n isLeaf: \"true\",\n refname: \"北京总部-简\"\n },\n {\n code: \"xd\",\n entityType: \"mainEntity\",\n name: \"新道-简\",\n pid: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refcode: \"xd\",\n refpk: \"b691afff-ea83-4a3f-affa-beb2be9cba52\",\n id: \"b691afff-ea83-4a3f-affa-beb2be9cba52\",\n isLeaf: \"true\",\n refname: \"新道-简\"\n },\n {\n code: \"yy3\",\n entityType: \"mainEntity\",\n name: \"test3\",\n pid: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refcode: \"yy3\",\n refpk: \"e75694d9-7c00-4e9e-9573-d29465ae79a9\",\n id: \"e75694d9-7c00-4e9e-9573-d29465ae79a9\",\n isLeaf: \"true\",\n refname: \"test3\"\n },\n {\n code: \"yy1\",\n entityType: \"mainEntity\",\n name: \"test1\",\n pid: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refcode: \"yy1\",\n refpk: \"fd32ceeb-57a8-4f44-816e-fa660f5715ab\",\n id: \"fd32ceeb-57a8-4f44-816e-fa660f5715ab\",\n isLeaf: \"true\",\n refname: \"test1\"\n },\n {\n code: \"dept2\",\n children: [\n {\n code: \"cs\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"测试部-简\",\n pid: \"0ebbb6d8-250a-4d1d-a019-7ae951629a2c\",\n refcode: \"cs\",\n refpk: \"cc43a66a-438d-4106-937f-bec44406f771\",\n id: \"cc43a66a-438d-4106-937f-bec44406f771\",\n isLeaf: \"true\",\n refname: \"测试部-简\"\n },\n {\n code: \"qd\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"前端部-简\",\n pid: \"0ebbb6d8-250a-4d1d-a019-7ae951629a2c\",\n refcode: \"qd\",\n refpk: \"73a10edd-aae8-4f31-af25-1f48f0a3b344\",\n id: \"73a10edd-aae8-4f31-af25-1f48f0a3b344\",\n isLeaf: \"true\",\n refname: \"前端部-简\"\n }\n ],\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"生产处\",\n refcode: \"dept2\",\n refpk: \"0ebbb6d8-250a-4d1d-a019-7ae951629a2c\",\n id: \"0ebbb6d8-250a-4d1d-a019-7ae951629a2c\",\n refname: \"生产处\"\n },\n {\n code: \"dept1\",\n children: [\n {\n code: \"dept1_2\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务二科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_2\",\n refpk: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n id: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n isLeaf: \"true\",\n refname: \"财务二科\"\n },\n {\n code: \"dept1_1\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务一科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_1\",\n refpk: \"9711d912-3184-4063-90c5-1facc727813c\",\n id: \"9711d912-3184-4063-90c5-1facc727813c\",\n isLeaf: \"true\",\n refname: \"财务一科\"\n }\n ],\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务处\",\n refcode: \"dept1\",\n refpk: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n id: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refname: \"财务处\"\n }\n ],\n entityType: \"mainEntity\",\n name: \"用友集团\",\n refcode: \"org1\",\n refpk: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refname: \"用友集团\"\n }\n ]\n};\n\nconst RefEditCell = Form.createForm()(\n class RefComponentWarpper extends PureComponent {\n constructor(props, context) {\n super(props);\n }\n\n handleSelect = values => {\n const { form, throwError, onChange } = this.props\n if (form.getFieldError(\"refValue\")) return throwError && throwError(true);\n throwError && throwError(false);\n onChange && onChange(values[0]);\n };\n\n render() {\n const { getFieldProps, getFieldError } = this.props.form;\n const { value, required } = this.props;\n let cls = \"editable-cell\";\n if (required) cls += \" required\";\n return (\n
\n \n {\"请输入\" + this.props.colName}\n
\n }\n >\n \n \n ),\n pattern: /[^{\"refname\":\"\",\"refpk\":\"\"}|{\"refpk\":\"\",\"refname\":\"\"}]/\n }\n ]\n })}\n />\n {getFieldError(\"refValue\")}\n \n );\n }\n }\n);\n\nclass EditModal extends Component {\n constructor(props, context) {\n super(props);\n this.state = {\n data: this.props.data,\n errorEditFlag: false\n };\n\n // 属性名对应 columns 属性中的 key 值\n this.renderElm = {\n b: (record, index) => (\n \n ),\n\n c: (record, index) => (\n \n ),\n d: (record, index) => (\n \n )\n }\n }\n\n onFieldChange = field => value => {\n let data = { ...this.state.data };\n data[field] = value;\n this.setState({ data });\n }\n\n submitChange = () => {\n if (this.state.errorEditFlag) return;\n const { onSubmit, onHide, currentIndex } = this.props;\n onSubmit && onSubmit(this.state.data, currentIndex);\n onHide && onHide();\n }\n\n throwError = isError => {\n if (isError !== this.state.errorEditFlag)\n this.setState({ errorEditFlag: isError });\n };\n\n render() {\n const { show, onHide, columns, currentIndex } = this.props;\n const { data } = this.state;\n return (\n \n \n 编辑行\n \n \n
\n \n {\n columns.map((item, index) => {\n return (\n
\n \n \n {this.renderElm[item.key] &&\n this.renderElm[item.key](\n data,\n currentIndex\n )}\n {!this.renderElm[item.key] && (\n
\n \n
\n )}\n
\n \n );\n })\n }\n \n \n \n \n \n 取消\n \n \n \n \n );\n }\n}\n\nlet dataSource = [\n {\n a: \"ASVAL_201903280005\",\n b: \"小张\",\n c: \"男\",\n d: {\n code: \"dept1_2\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务二科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_2\",\n refpk: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n id: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n isLeaf: \"true\",\n refname: \"财务二科\"\n },\n key: \"1\"\n },\n {\n a: \"ASVAL_201903200004\",\n b: \"小明\",\n c: \"男\",\n d: {\n code: \"dept1_2\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务二科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_2\",\n refpk: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n id: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n isLeaf: \"true\",\n refname: \"财务二科\"\n },\n key: \"2\"\n },\n {\n a: \"ASVAL_201903120002\",\n b: \"小红\",\n c: \"女\",\n d: {\n code: \"dept1_1\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务一科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_1\",\n refpk: \"9711d912-3184-4063-90c5-1facc727813c\",\n id: \"9711d912-3184-4063-90c5-1facc727813c\",\n isLeaf: \"true\",\n refname: \"财务一科\"\n },\n key: \"3\"\n }\n];\n\nclass Demo0503 extends Component {\n constructor(props, context) {\n super(props);\n // 编辑态下每个单元格对应的编辑模式组件写在 EditModal 组件中,以 key 值对应\n this.columns = [\n {\n title: \"员工编号\",\n dataIndex: \"a\",\n key: \"a\"\n },\n {\n title: \"名字\",\n dataIndex: \"b\",\n key: \"b\"\n },\n {\n title: \"性别\",\n dataIndex: \"c\",\n key: \"c\",\n width: 100\n },\n {\n title: \"部门\",\n dataIndex: \"d\",\n key: \"d\",\n width: 215,\n render: (text, record, index) => record.d.name\n }\n ];\n\n this.state = {\n dataSource: dataSource,\n isEditing: false,\n currentIndex: null\n };\n }\n\n edit = () => {\n if (this.state.currentIndex === null) return;\n this.setState({ isEditing: true });\n };\n\n abortEdit = () => {\n this.setState({ isEditing: false });\n };\n\n commitChange = (editedRowData, rowIndex) => {\n console.log(editedRowData)\n console.log(rowIndex)\n let dataSource = [...this.state.dataSource];\n dataSource[rowIndex] = editedRowData;\n this.setState({ dataSource });\n };\n\n handleRowHover = (index, record) => {\n this.setState({ currentIndex: index });\n };\n\n hideEditModal = () => {\n this.setState({ isEditing: false });\n }\n\n renderRowHover = () => {\n return (\n
\n \n
\n );\n };\n\n\n render() {\n const { dataSource, isEditing, currentIndex } = this.state;\n const columns = this.columns;\n return (\n
\n \n {\n isEditing ? (\n \n ) : null\n }\n
\n );\n }\n}\n\nexport default Demo0503;\n", "desc": " 以弹框形式以对行进行编辑的表格", "scss_code": ".demo0503-m-b {\n\n &.u-modal .u-modal-body {\n padding: 16px 0;\n background: #f7f9fb;\n }\n\n .u-form-group {\n overflow: hidden;\n }\n\n .u-form-control {\n font-size: 12px;\n }\n\n .editable-cell {\n display: block;\n float: left;\n width: 265px;\n padding-right: 25px;\n }\n\n .ref-input-wrap {\n width: 240px !important;\n }\n\n .u-label {\n display: block;\n float: left;\n text-align: right;\n width: 110px;\n box-sizing: border-box;\n padding-right: 10px;\n font-size: 12px;\n height: 32px;\n line-height: 32px;\n .mast {\n padding: 0;\n color: red;\n }\n }\n\n .required-icon {\n position: absolute;\n top: 2px;\n color: #F44336;\n font-size: 20px;\n }\n}\n\n.u-editable-table-tp {\n z-index: 9999 !important;\n\n .tp-content {\n color: #F44336;\n }\n}\n.ref-core-button .u-button:first-child{\n margin-right: 8px;\n}" }, { "example": _react2['default'].createElement(Demo0505, null), "title": " 全表格编辑", "code": "/**\n *\n * @title 全表格编辑\n * @parent 编辑 Editor\n * @description 以行内编辑形式对全表数据进行编辑\n * demo0505\n */\nimport React, { Component } from \"react\";\nimport { Table, Select, Form, FormControl, Button, Icon, Tooltip } from 'tinper-bee';\n\n\nconst Option = Select.Option;\nimport { RefTreeWithInput } from \"ref-tree\";\n\nclass StringEditCell extends Component {\n constructor(props, context) {\n super(props);\n this.state = {\n value: props.value\n };\n }\n\n componentWillReceiveProps(nextProps) {\n if (!nextProps.editable) {\n this.setState({ value: nextProps.value });\n }\n }\n\n handleChange = value => {\n const { onChange, throwError } = this.props;\n if (value === \"\") {\n throwError && throwError(true);\n } else {\n throwError && throwError(false);\n }\n this.setState({ value });\n onChange && onChange(value);\n };\n\n render() {\n const { editable, required, colName, isEdited } = this.props;\n const { value } = this.state;\n let cls = \"editable-cell-input-wrapper\";\n if (required) cls += \" required\";\n if (value === \"\") cls += \" verify-cell\";\n if (isEdited) cls += \" edited\";\n return editable ? (\n
\n
\n \n \n {value === \"\" ? (\n {\"请输入\" + colName}
}\n >\n \n \n ) : null}\n \n
\n \n ) : (\n value || \" \"\n );\n }\n}\n\nconst SELECT_SOURCE = [\"男\", \"女\"];\n\nclass SelectEditCell extends Component {\n constructor(props, context) {\n super(props);\n this.state = {\n value: props.value\n };\n }\n\n componentWillReceiveProps(nextProps) {\n if (!nextProps.editable) {\n this.setState({ value: nextProps.value });\n }\n }\n\n handleSelect = value => {\n this.setState({ value });\n this.props.onChange && this.props.onChange(value);\n };\n\n render() {\n const { editable, isEdited } = this.props;\n const { value } = this.state;\n let cls = \"editable-cell-input-wrapper\";\n if (isEdited) cls += \" edited\";\n return editable ? (\n
\n
\n \n
\n
\n ) : (\n value || \" \"\n );\n }\n}\n\nconst option = {\n title: \"树\",\n searchable: true,\n multiple: false,\n param: {\n refCode: \"neworganizition_tree\"\n },\n checkStrictly: true,\n disabled: false,\n nodeDisplay: record => {\n return record.refname;\n },\n displayField: record => {\n return record.refname;\n }, //显示内容的键\n valueField: \"refpk\", //真实 value 的键\n refModelUrl: {\n treeUrl: \"https://mock.yonyoucloud.com/mock/358/blobRefTree\",\n treeUrl: \"/pap_basedoc/common-ref/blobRefTree\"\n },\n matchUrl: \"/pap_basedoc/common-ref/matchPKRefJSON\",\n filterUrl: \"/pap_basedoc/common-ref/filterRefJSON\",\n lazyModal: false,\n strictMode: true,\n lang: \"zh_CN\",\n treeData: [\n {\n code: \"org1\",\n children: [\n {\n code: \"bj\",\n entityType: \"mainEntity\",\n name: \"北京总部-简\",\n pid: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refcode: \"bj\",\n refpk: \"5305416e-e7b4-4051-90bd-12d12942295b\",\n id: \"5305416e-e7b4-4051-90bd-12d12942295b\",\n isLeaf: \"true\",\n refname: \"北京总部-简\"\n },\n {\n code: \"xd\",\n entityType: \"mainEntity\",\n name: \"新道-简\",\n pid: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refcode: \"xd\",\n refpk: \"b691afff-ea83-4a3f-affa-beb2be9cba52\",\n id: \"b691afff-ea83-4a3f-affa-beb2be9cba52\",\n isLeaf: \"true\",\n refname: \"新道-简\"\n },\n {\n code: \"yy3\",\n entityType: \"mainEntity\",\n name: \"test3\",\n pid: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refcode: \"yy3\",\n refpk: \"e75694d9-7c00-4e9e-9573-d29465ae79a9\",\n id: \"e75694d9-7c00-4e9e-9573-d29465ae79a9\",\n isLeaf: \"true\",\n refname: \"test3\"\n },\n {\n code: \"yy1\",\n entityType: \"mainEntity\",\n name: \"test1\",\n pid: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refcode: \"yy1\",\n refpk: \"fd32ceeb-57a8-4f44-816e-fa660f5715ab\",\n id: \"fd32ceeb-57a8-4f44-816e-fa660f5715ab\",\n isLeaf: \"true\",\n refname: \"test1\"\n },\n {\n code: \"dept2\",\n children: [\n {\n code: \"cs\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"测试部-简\",\n pid: \"0ebbb6d8-250a-4d1d-a019-7ae951629a2c\",\n refcode: \"cs\",\n refpk: \"cc43a66a-438d-4106-937f-bec44406f771\",\n id: \"cc43a66a-438d-4106-937f-bec44406f771\",\n isLeaf: \"true\",\n refname: \"测试部-简\"\n },\n {\n code: \"qd\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"前端部-简\",\n pid: \"0ebbb6d8-250a-4d1d-a019-7ae951629a2c\",\n refcode: \"qd\",\n refpk: \"73a10edd-aae8-4f31-af25-1f48f0a3b344\",\n id: \"73a10edd-aae8-4f31-af25-1f48f0a3b344\",\n isLeaf: \"true\",\n refname: \"前端部-简\"\n }\n ],\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"生产处\",\n refcode: \"dept2\",\n refpk: \"0ebbb6d8-250a-4d1d-a019-7ae951629a2c\",\n id: \"0ebbb6d8-250a-4d1d-a019-7ae951629a2c\",\n refname: \"生产处\"\n },\n {\n code: \"dept1\",\n children: [\n {\n code: \"dept1_2\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务二科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_2\",\n refpk: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n id: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n isLeaf: \"true\",\n refname: \"财务二科\"\n },\n {\n code: \"dept1_1\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务一科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_1\",\n refpk: \"9711d912-3184-4063-90c5-1facc727813c\",\n id: \"9711d912-3184-4063-90c5-1facc727813c\",\n isLeaf: \"true\",\n refname: \"财务一科\"\n }\n ],\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务处\",\n refcode: \"dept1\",\n refpk: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n id: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refname: \"财务处\"\n }\n ],\n entityType: \"mainEntity\",\n name: \"用友集团\",\n refcode: \"org1\",\n refpk: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refname: \"用友集团\"\n }\n ]\n};\n\nconst RefEditCell = Form.createForm()(\n class RefComponentWarpper extends Component {\n constructor(props, context) {\n super(props);\n this.state = {\n value: props.value\n };\n }\n\n componentWillReceiveProps(nextProps) {\n if (!nextProps.editable) {\n this.setState({ value: nextProps.value });\n }\n }\n\n handleSelect = values => {\n this.setState({ value: values[0] });\n this.props.onChange && this.props.onChange(values[0]);\n };\n\n render() {\n const { getFieldProps, getFieldError } = this.props.form;\n const { editable, required, isEdited } = this.props;\n const { value } = this.state;\n let cls = \"editable-cell-input-wrapper\";\n if (required) cls += \" required\";\n if (getFieldError(\"refValue\")) cls += \" verify-cell\";\n if (isEdited) cls += \" edited\";\n return editable ? (\n
\n \n {\"请输入\" + this.props.colName}\n
\n }\n >\n \n \n ),\n pattern: /[^{\"refname\":\"\",\"refpk\":\"\"}|{\"refpk\":\"\",\"refname\":\"\"}]/\n }\n ]\n })}\n />\n {getFieldError(\"refValue\")}\n \n ) : (\n value.name || \" \"\n );\n }\n }\n);\n\nlet dataSource = [\n {\n a: \"ASVAL_201903280005\",\n b: \"小张\",\n c: \"男\",\n d: {\n code: \"dept1_2\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务二科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_2\",\n refpk: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n id: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n isLeaf: \"true\",\n refname: \"财务二科\"\n },\n key: \"1\"\n },\n {\n a: \"ASVAL_201903200004\",\n b: \"小明\",\n c: \"男\",\n d: {\n code: \"dept1_2\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务二科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_2\",\n refpk: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n id: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n isLeaf: \"true\",\n refname: \"财务二科\"\n },\n key: \"2\"\n },\n {\n a: \"ASVAL_201903120002\",\n b: \"小红\",\n c: \"女\",\n d: {\n code: \"dept1_1\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务一科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_1\",\n refpk: \"9711d912-3184-4063-90c5-1facc727813c\",\n id: \"9711d912-3184-4063-90c5-1facc727813c\",\n isLeaf: \"true\",\n refname: \"财务一科\"\n },\n key: \"3\"\n }\n];\n\nclass Demo0505 extends Component {\n constructor(props, context) {\n super(props);\n this.columns = [\n {\n title: \"员工编号\",\n dataIndex: \"a\",\n key: \"a\"\n },\n {\n title: \"名字\",\n dataIndex: \"b\",\n key: \"b\",\n render: (text, record, index) => (\n \n )\n },\n {\n title: \"性别\",\n dataIndex: \"c\",\n key: \"c\",\n width: 100,\n render: (text, record, index) => (\n \n )\n },\n {\n title: \"部门\",\n dataIndex: \"d\",\n key: \"d\",\n width: 215,\n render: (text, record, index) => (\n \n )\n },\n // 只是用来占位占宽度的\n {\n key: \"placeholder\"\n }\n ];\n\n // 用于记录数据是否被修改\n dataSource.forEach(item => (item.isEdited = {}));\n this.state = {\n dataSource: dataSource,\n isEditingAll: false,\n currentIndex: null,\n errorEditFlag: false\n };\n\n // 用于记录编辑前数据\n this.dataBuffer = [];\n }\n\n edit = () => {\n this.dataBuffer = [];\n // 最好使用深复制\n this.state.dataSource.forEach((item, index) => {\n this.dataBuffer.push({ ...item });\n });\n this.setState({ isEditingAll: true });\n };\n\n abortEdit = () => {\n let originData = [...this.state.dataSource];\n originData.forEach(item => (item.isEdited = {}));\n this.setState({\n isEditingAll: false,\n dataSource: originData\n });\n };\n\n commitChange = () => {\n if (this.state.errorEditFlag) return;\n const newData = this.dataBuffer.map(item => {\n return Object.assign({}, item, { isEdited: {} });\n });\n this.setState({ isEditingAll: false, dataSource: newData });\n };\n\n onCellChange = (index, key) => value => {\n this.dataBuffer[index][key] = value;\n this.dataBuffer[index].isEdited[key] = true;\n };\n\n throwError = isError => {\n if (isError !== this.state.errorEditFlag)\n this.setState({ errorEditFlag: isError });\n };\n\n render() {\n const { dataSource, isEditingAll } = this.state;\n const columns = this.columns;\n return (\n
\n
\n {isEditingAll ? (\n \n \n \n 取消\n \n \n ) : (\n \n )}\n
\n
\n \n );\n }\n}\n\nexport default Demo0505;\n", "desc": " 以行内编辑形式对全表数据进行编辑", "scss_code": ".demo0505 {\n\n .toolbar-btns {\n margin-bottom: 8px;\n\n .u-button {\n &:first-child {\n margin-right: 8px;\n }\n }\n }\n\n .u-table {\n .u-row-select {\n background-color: #FFF7E7;\n }\n .u-table-row {\n td {\n padding: 5px 8px;\n\n input {\n font-size: 12px;\n padding-left: 5px;\n }\n }\n\n .u-form-control,\n .u-select-selection {\n height: 30px;\n }\n }\n\n .editable-cell-text-wrapper {\n box-sizing: border-box;\n line-height: 20px;\n border-radius: 3px;\n }\n\n .required {\n margin-left: 10px;\n position: relative;\n\n &::before {\n content: \" \";\n border: 1px solid #F44336;\n width: 0;\n height: 12px;\n position: absolute;\n top: 9px;\n left: -8px;\n }\n\n span.u-input-group {\n display: block\n }\n }\n\n .verify-cell {\n padding-right: 25px !important;\n }\n\n .edited::after {\n content: \" \";\n position: absolute;\n z-index: 999;\n top: 0;\n left: 0;\n border-width: 5px;\n border-style: solid;\n border-color: #f44336 transparent transparent #f44336;\n }\n\n .required-icon {\n position: absolute;\n top: 2px;\n color: #F44336;\n font-size: 20px;\n }\n\n .ref-input-wrap {\n width: 160px !important;\n }\n }\n}\n\n.u-editable-table-tp {\n .tp-content {\n color: #F44336;\n }\n}" }, { "example": _react2['default'].createElement(Demo0601, null), "title": " 左侧固定列", "code": "/**\n*\n* @title 左侧固定列\n* @parent 列操作-锁定 Fixed\n* @description 固定列到表格的左侧\n* demo0601\n*/\n\n\n\nimport React, { Component } from 'react';\nimport { Table } from 'tinper-bee';\n\n\nconst columns = [\n {\n title: \"序号\",\n dataIndex: \"index\",\n key: \"index\",\n width: 80, \n fixed: 'left',\n render(text, record, index){return index + 1}\n },\n {\n title: \"订单编号\",\n dataIndex: \"orderCode\",\n key: \"orderCode\",\n width: 100, \n fixed: 'left',\n },\n {\n title: \"供应商名称\",\n dataIndex: \"supplierName\",\n key: \"supplierName\",\n width: 100\n },\n {\n title: \"类型\",\n dataIndex: \"type_name\",\n key: \"type_name\",\n width: 100\n },\n {\n title: \"采购组织\",\n dataIndex: \"purchasing\",\n key: \"purchasing\",\n width: 100\n },\n {\n title: \"采购组\",\n dataIndex: \"purchasingGroup\",\n key: \"purchasingGroup\",\n width: 100\n },\n {\n title: \"凭证日期\",\n dataIndex: \"voucherDate\",\n key: \"voucherDate\",\n width: 200,\n \n },\n {\n title: \"审批状态\",\n dataIndex: \"approvalState_name\",\n key: \"approvalState_name\",\n width: 100\n },\n {\n title: \"确认状态\",\n dataIndex: \"confirmState_name\",\n key: \"confirmState_name\",\n width: 100\n }, \n {\n title: \"关闭状态\",\n dataIndex: \"closeState_name\",\n key: \"closeState_name\",\n width: 100\n }\n];\n\nconst data = [\n { \n orderCode:\"NU0391025\", \n supplierName: \"xx供应商\",\n type_name: \"1\",\n purchasing:'组织c', \n purchasingGroup:\"aa\",\n voucherDate:\"2018年03月18日\",\n approvalState_name:\"已审批\",\n confirmState_name:\"执行中\",\n closeState_name:\"未关闭\",\n key: \"1\"\n }, \n { \n orderCode:\"NU0391026\", \n supplierName: \"xx供应商\",\n type_name: \"2\",\n purchasing:'组织a', \n purchasingGroup:\"bb\",\n voucherDate:\"2018年02月05日\",\n approvalState_name:\"已审批\",\n confirmState_name:\"待确认\",\n closeState_name:\"未关闭\",\n key: \"2\"\n },\n { \n orderCode:\"NU0391027\", \n supplierName: \"xx供应商\",\n type_name: \"3\",\n purchasing:'组织b', \n purchasingGroup:\"aa\",\n voucherDate:\"2018年07月01日\",\n approvalState_name:\"已审批\",\n confirmState_name:\"终止\",\n closeState_name:\"已关闭\",\n key: \"3\"\n }\n];\n\nclass Demo51 extends Component {\n render() {\n return
;\n }\n}\n\nexport default Demo51;", "desc": " 固定列到表格的左侧" }, { "example": _react2['default'].createElement(Demo0602, null), "title": " 右侧固定列", "code": "/**\n*\n* @title 右侧固定列\n* @parent 列操作-锁定 Fixed\n* @description 固定列到表格的右侧\n* demo0602\n*/\n\n\n\nimport React, { Component } from 'react';\nimport { Table, Popconfirm } from 'tinper-bee';\n\n\n\nconst columns = [\n {\n title: \"序号\",\n dataIndex: \"index\",\n key: \"index\",\n width: 80, \n fixed: 'left',\n render(text, record, index){return index + 1}\n },\n {\n title: \"订单编号\",\n dataIndex: \"orderCode\",\n key: \"orderCode\",\n width: 100, \n },\n {\n title: \"供应商名称\",\n dataIndex: \"supplierName\",\n key: \"supplierName\",\n width: 100\n },\n {\n title: \"类型\",\n dataIndex: \"type_name\",\n key: \"type_name\",\n width: 100\n },\n {\n title: \"采购组织\",\n dataIndex: \"purchasing\",\n key: \"purchasing\",\n width: 100\n },\n {\n title: \"采购组\",\n dataIndex: \"purchasingGroup\",\n key: \"purchasingGroup\",\n width: 100\n },\n {\n title: \"凭证日期\",\n dataIndex: \"voucherDate\",\n key: \"voucherDate\",\n width: 200,\n \n },\n {\n title: \"审批状态\",\n dataIndex: \"approvalState_name\",\n key: \"approvalState_name\",\n width: 100\n },\n {\n title: \"确认状态\",\n dataIndex: \"confirmState_name\",\n key: \"confirmState_name\",\n width: 100\n }, \n {\n title: \"关闭状态\",\n dataIndex: \"closeState_name\",\n key: \"closeState_name\",\n width: 100\n },\n {\n title: \"操作\",\n dataIndex: \"d\",\n key: \"d\",\n width:100,\n fixed: \"right\",\n render(text, record, index) {\n return (\n
\n \n \n 一些操作\n \n \n
\n )\n }\n }\n];\n\nconst data = [\n { \n orderCode:\"NU0391025\", \n supplierName: \"xx供应商\",\n type_name: \"1\",\n purchasing:'组织c', \n purchasingGroup:\"aa\",\n voucherDate:\"2018年03月18日\",\n approvalState_name:\"已审批\",\n confirmState_name:\"执行中\",\n closeState_name:\"未关闭\",\n key: \"1\"\n }, \n { \n orderCode:\"NU0391026\", \n supplierName: \"xx供应商\",\n type_name: \"2\",\n purchasing:'组织a', \n purchasingGroup:\"bb\",\n voucherDate:\"2018年02月05日\",\n approvalState_name:\"已审批\",\n confirmState_name:\"待确认\",\n closeState_name:\"未关闭\",\n key: \"2\"\n },\n { \n orderCode:\"NU0391027\", \n supplierName: \"xx供应商\",\n type_name: \"3\",\n purchasing:'组织b', \n purchasingGroup:\"aa\",\n voucherDate:\"2018年07月01日\",\n approvalState_name:\"已审批\",\n confirmState_name:\"终止\",\n closeState_name:\"已关闭\",\n key: \"3\"\n },\n { \n orderCode:\"NU0391025\", \n supplierName: \"xx供应商\",\n type_name: \"1\",\n purchasing:'组织c', \n purchasingGroup:\"aa\",\n voucherDate:\"2018年03月18日\",\n approvalState_name:\"已审批\",\n confirmState_name:\"执行中\",\n closeState_name:\"未关闭\",\n key: \"4\"\n }, \n { \n orderCode:\"NU0391026\", \n supplierName: \"xx供应商\",\n type_name: \"2\",\n purchasing:'组织a', \n purchasingGroup:\"bb\",\n voucherDate:\"2018年02月05日\",\n approvalState_name:\"已审批\",\n confirmState_name:\"待确认\",\n closeState_name:\"未关闭\",\n key: \"5\"\n },\n { \n orderCode:\"NU0391027\", \n supplierName: \"xx供应商\",\n type_name: \"3\",\n purchasing:'组织b', \n purchasingGroup:\"aa\",\n voucherDate:\"2018年07月01日\",\n approvalState_name:\"已审批\",\n confirmState_name:\"终止\",\n closeState_name:\"已关闭\",\n key: \"6\"\n }\n];\n\nclass Demo52 extends Component {\n render() {\n return
;\n }\n}\n\nexport default Demo52;", "desc": " 固定列到表格的右侧" }, { "example": _react2['default'].createElement(Demo0603, null), "title": " 动态设置列锁定、解除锁定", "code": "/**\n*\n* @title 动态设置列锁定、解除锁定\n* @parent 列操作-锁定 Fixed\n* @description 动态设置columns中数据的fixed属性值【fixed: \"left\",fixed: \"right\"】。\n* demo0603\n*/\nimport React, { Component } from 'react';\nimport { Table, Icon,Menu,Dropdown } from 'tinper-bee';\n\n\n\n\nconst { Item } = Menu;\n\nconst columns = [\n {\n title: \"序号\",\n dataIndex: \"index\",\n key: \"index\",\n width: 85, \n fixed: 'left',\n render(text, record, index){return index + 1}\n },\n {\n title: \"订单编号\",\n dataIndex: \"orderCode\",\n key: \"orderCode\",\n width: 120, \n fixed: 'left',\n },\n {\n title: \"供应商名称\",\n dataIndex: \"supplierName\",\n key: \"supplierName\",\n width: 150\n },\n {\n title: \"类型\",\n dataIndex: \"type_name\",\n key: \"type_name\",\n width: 100\n },\n {\n title: \"采购组织\",\n dataIndex: \"purchasing\",\n key: \"purchasing\",\n width: 100\n },\n {\n title: \"采购组\",\n dataIndex: \"purchasingGroup\",\n key: \"purchasingGroup\",\n width: 100\n },\n {\n title: \"凭证日期\",\n dataIndex: \"voucherDate\",\n key: \"voucherDate\",\n width: 200,\n \n },\n {\n title: \"审批状态\",\n dataIndex: \"approvalState_name\",\n key: \"approvalState_name\",\n width: 100\n },\n {\n title: \"确认状态\",\n dataIndex: \"confirmState_name\",\n key: \"confirmState_name\",\n width: 100\n }, \n {\n title: \"关闭状态\",\n dataIndex: \"closeState_name\",\n key: \"closeState_name\",\n width: 100\n }\n];\n\nconst data = [\n { \n orderCode:\"NU0391025\", \n supplierName: \"xx供应商\",\n type_name: \"1\",\n purchasing:'组织c', \n purchasingGroup:\"aa\",\n voucherDate:\"2018年03月18日\",\n approvalState_name:\"已审批\",\n confirmState_name:\"执行中\",\n closeState_name:\"未关闭\",\n key: \"1\"\n }, \n { \n orderCode:\"NU0391026\", \n supplierName: \"xx供应商\",\n type_name: \"2\",\n purchasing:'组织a', \n purchasingGroup:\"bb\",\n voucherDate:\"2018年02月05日\",\n approvalState_name:\"已审批\",\n confirmState_name:\"待确认\",\n closeState_name:\"未关闭\",\n key: \"2\"\n },\n { \n orderCode:\"NU0391027\", \n supplierName: \"xx供应商\",\n type_name: \"3\",\n purchasing:'组织b', \n purchasingGroup:\"aa\",\n voucherDate:\"2018年07月01日\",\n approvalState_name:\"已审批\",\n confirmState_name:\"终止\",\n closeState_name:\"已关闭\",\n key: \"3\"\n }\n];\n \nclass Demo24 extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n columns:columns\n }\n }\n \n onSelect = ({key,item})=>{ \n console.log(`${key} selected`); //获取key\n let currentObject = item.props.data; //获取选中对象的数据\n let {columns} = this.state;\n let fixedCols = [];\n let nonColums = [];\n columns.find(da=>{\n if(da.key == key){\n da.fixed?delete da.fixed:da.fixed = 'left';\n }\n da.fixed?fixedCols.push(da):nonColums.push(da);\n });\n \n columns = [...fixedCols,...nonColums]\n\n this.setState({\n columns\n });\n }\n //表头增加下拉菜单\n renderColumnsDropdown(columns) {\n const icon ='uf-arrow-down';\n \n return columns.map((originColumn,index) => {\n let column = Object.assign({}, originColumn);\n let menuInfo = [], title='锁定';\n if(originColumn.fixed){\n title = '解锁'\n }\n menuInfo.push({\n info:title,\n key:originColumn.key,\n index:index\n });\n const menu = (\n {\n menuInfo.map(da=>{ return {da.info} })\n }\n )\n column.title = (\n \n {column.title}\n \n \n \n \n \n );\n return column;\n });\n \n }\n\n render() {\n let {columns} = this.state;\n columns = this.renderColumnsDropdown(columns);\n return(\n
\n
\n \n )\n }\n}\n\nexport default Demo24;", "desc": " 动态设置columns中数据的fixed属性值【fixed: \"left\",fixed: \"right\"】。", "scss_code": "th{\n .drop-menu{\n .uf{\n font-size: 12px;\n visibility: hidden;\n margin-left: 15px;\n }\n \n \n }\n &:hover{\n .uf{\n visibility: visible;\n }\n }\n\n}\n\n" }, { "example": _react2['default'].createElement(Demo0701, null), "title": " 按条件、值过滤", "code": "/**\n*\n* @title 按条件、值过滤\n* @parent 列操作-过滤 Filter\n* @description 可以根据输入项目以及判断条件对表格内的数据进行过滤。可在控制台查看序列化后的参数字符串。\n* demo0701\n*/\n\nimport React, { Component } from 'react';\nimport { Table } from 'tinper-bee';\n\n\nconst columns = [\n { title: \"姓名\", width: 180, dataIndex: \"name\", key: \"name\", filterType: \"text\", filterDropdown: \"show\" },\n { title: \"年龄\", width: 150, dataIndex: \"age\", key: \"age\", filterType: \"dropdown\", filterDropdown: \"show\" },\n { title: \"日期\", width: 200, dataIndex: \"date\", key: \"date\", filterType: \"date\", filterDropdown: \"show\", format: \"YYYY-MM-DD\" },\n { title: \"居住地址\", width: 150, dataIndex: \"address\", key: \"address\", filterType: \"dropdown\", filterDropdown: \"show\" },\n { title: \"备注\", dataIndex: \"mark\", key: \"mark\" }\n];\n\nconst data = [\n {\n key: \"1\",\n name: \"John Brown\",\n age: 32,\n date: \"2018-09-19\",\n address: \"朝阳区\",\n mark: \"无\"\n },\n {\n key: \"2\",\n name: \"Jim Green\",\n age: 40,\n date: \"2018-09-18\",\n address: \"朝阳区\",\n mark: \"无\"\n },\n {\n key: \"3\",\n name: \"Jim Green\",\n age: 40,\n date: \"2018-09-18\",\n address: \"东城区\",\n mark: \"无\"\n },\n {\n key: \"4\",\n name: \"Jim Green\",\n age: 40,\n date: \"2018-09-18\",\n address: \"东城区\",\n mark: \"无\"\n }, {\n key: \"5\",\n name: \"John Brown\",\n age: 32,\n date: \"2018-09-18\",\n address: \"海淀区\",\n mark: \"无\"\n },\n {\n key: \"6\",\n name: \"Jim Green\",\n age: 48,\n date: \"2018-09-18\",\n address: \"海淀区\",\n mark: \"无\"\n },\n {\n key: \"7\",\n name: \"Jim Green\",\n age: 40,\n date: \"2018-09-18\",\n address: \"海淀区\",\n mark: \"无\"\n },\n {\n key: \"8\",\n name: \"Jim Green\",\n age: 38,\n date: \"2018-09-18\",\n address: \"海淀区\",\n mark: \"无\"\n }\n];\n\nclass Demo23 extends Component {\n handlerFilterChange = (key, val, condition) => {\n console.log('参数:key=', key, ' value=', val, 'condition=', condition);\n }\n\n handlerFilterClear = (key) => {\n console.log('清除条件', key);\n }\n render() {\n return ()\n onFilterClear={this.handlerFilterClear}//触发输入操作以及其他的回调(key,val)=>()\n filterDelay={500}//输入文本多少ms触发回调函数,默认300ms\n filterable={true}//是否开启过滤数据功能\n bordered\n columns={columns}\n data={data} />;\n }\n}\n\nexport default Demo23;", "desc": " 可以根据输入项目以及判断条件对表格内的数据进行过滤。可在控制台查看序列化后的参数字符串。" }, { "example": _react2['default'].createElement(Demo0702, null), "title": " 复杂表格中行过滤", "code": "/**\n*\n* @title 复杂表格中行过滤\n* @parent 列操作-过滤 Filter\n* @description 在过滤数据行的基础上增加列拖拽、动态菜单显示、下拉条件动态传入自定义等\n* demo0702\n*/\n\nimport React, { Component } from 'react';\nimport { Table, Icon,Checkbox } from 'tinper-bee';\n\n\n\nimport multiSelect from 'bee-table/build/lib/multiSelect';\nimport sort from 'bee-table/build/lib/sort';\n\nconst data = [\n {\n key: \"1\",\n name: \"John Brown\",\n age: 32,\n date: \"2018-09-19\",\n address: \"朝阳区\",\n mark: \"无\"\n },\n {\n key: \"2\",\n name: \"Jim Green\",\n age: 40,\n date: \"2018-09-18\",\n address: \"朝阳区\",\n mark: \"无\"\n },\n {\n key: \"3\",\n name: \"Jim Green\",\n age: 40,\n date: \"2018-09-18\",\n address: \"东城区\",\n mark: \"无\"\n },\n {\n key: \"4\",\n name: \"Jim Green\",\n age: 40,\n date: \"2018-09-18\",\n address: \"东城区\",\n mark: \"无\"\n }, {\n key: \"5\",\n name: \"John Brown\",\n age: 32,\n date: \"2018-09-18\",\n address: \"海淀区\",\n mark: \"无\"\n },\n {\n key: \"6\",\n name: \"Jim Green\",\n age: 48,\n date: \"2018-09-18\",\n address: \"海淀区\",\n mark: \"无\"\n },\n {\n key: \"7\",\n name: \"Jim Green\",\n age: 40,\n date: \"2018-09-18\",\n address: \"海淀区\",\n mark: \"无\"\n },\n {\n key: \"8\",\n name: \"Jim Green\",\n age: 38,\n date: \"2018-09-18\",\n address: \"海淀区\",\n mark: \"无\"\n }\n];\n\n\nconst MultiSelectTable = multiSelect(Table, Checkbox);\nconst ComplexTable = sort(MultiSelectTable, Icon);\nclass Demo24 extends Component {\n constructor(props) {\n super(props);\n this.state = {\n dropdownvalue: []\n }\n }\n handlerFilterChange = (key, val, condition) => {\n console.log('参数:key=', key, ' value=', val, 'condition=', condition);\n }\n\n handlerFilterClear = (key) => {\n console.log('清除条件', key);\n }\n getSelectedDataFunc = data => {\n console.log(data);\n }\n onSelect = (item) => {\n console.log(item);\n }\n\n render() {\n let multiObj = {\n type: \"checkbox\"\n };\n let columns = [\n {\n title: \"姓名\",\n width: 180,\n dataIndex: \"name\",\n key: \"name\",\n filterType: \"text\",//输入框类型\n filterDropdown: \"show\",//显示条件\n filterDropdownType: \"string\"//字符条件\n },\n {\n title: \"年龄\",\n width: 180,\n dataIndex: \"age\",\n key: \"age\",\n filterType: \"number\",//输入框类型\n filterDropdown: \"show\",//显示条件\n filterDropdownType: \"number\"//字符条件\n },\n {\n title: \"日期\",\n width: 190,\n dataIndex: \"date\",\n key: \"date\",\n filterType: \"date\",//输入框类型\n filterDropdown: \"show\",//显示条件\n filterDropdownType: \"string\"//字符条件\n },\n {\n title: \"时间范围\",\n width: 290,\n dataIndex: \"mark\",\n key: \"mark\",\n filterType: \"daterange\",//输入框类型\n filterDropdown: \"show\",//显示条件\n filterDropdownType: \"number\"//字符条件\n },\n {\n title: \"地址\",\n width: 100,\n dataIndex: \"address\",\n key: \"address\",\n filterType: \"dropdown\",//输入框类型\n filterDropdown: \"show\",//显示条件\n filterDropdownType: \"number\"//字符条件\n }\n ];\n return ()\n onFilterClear={this.handlerFilterClear}//触发输入操作以及其他的回调(key,val)=>()\n filterDelay={500}//输入文本多少ms触发回调函数,默认500ms\n filterable={true}//是否开启过滤数据功能\n getSelectedDataFunc={this.getSelectedDataFunc}\n bordered\n multiSelect={multiObj}\n columns={columns}\n data={data} />;\n }\n}\n\nexport default Demo24;", "desc": " 在过滤数据行的基础上增加列拖拽、动态菜单显示、下拉条件动态传入自定义等" }, { "example": _react2['default'].createElement(Demo0802, null), "title": " 列过滤面板", "code": "/**\n*\n* @title 列过滤面板\n* @parent 列操作-隐藏 Hide\n* @description 点击表头右侧按钮,设置显示或隐藏表格列。可以自定义设置显示某列,通过ifshow属性控制,默认值为true(显示表格所有列)。afterFilter方法为列过滤后触发的回调函数。\n* demo0802\n*/\n\n\nimport React, { Component } from 'react';\nimport { Table, Icon,Popover } from 'tinper-bee';\n\n\nimport filterColumn from 'bee-table/build/lib/filterColumn';\nimport sum from 'bee-table/build/lib/sum';\n\nconst data = [\n { \n orderCode:\"NU0391025\", \n supplierName: \"xx供应商\",\n type_name: \"1\",\n purchasing:'组织c', \n purchasingGroup:\"aa\",\n voucherDate:\"2018年03月18日\",\n approvalState_name:\"已审批\",\n confirmState_name:\"执行中\",\n closeState_name:\"未关闭\",\n key: \"1\"\n }, \n { \n orderCode:\"NU0391026\", \n supplierName: \"xx供应商\",\n type_name: \"2\",\n purchasing:'组织a', \n purchasingGroup:\"bb\",\n voucherDate:\"2018年02月05日\",\n approvalState_name:\"已审批\",\n confirmState_name:\"待确认\",\n closeState_name:\"未关闭\",\n key: \"2\"\n },\n { \n orderCode:\"NU0391027\", \n supplierName: \"xx供应商\",\n type_name: \"3\",\n purchasing:'组织b', \n purchasingGroup:\"aa\",\n voucherDate:\"2018年07月01日\",\n approvalState_name:\"已审批\",\n confirmState_name:\"终止\",\n closeState_name:\"已关闭\",\n key: \"3\"\n }\n];\n\nconst FilterColumnTable = filterColumn(Table, Popover, Icon);\n\nconst defaultProps21 = {\n prefixCls: \"bee-table\"\n};\n\nclass Demo21 extends Component {\n constructor(props) {\n super(props);\n this.state ={\n columns: [\n {\n title: \"序号\",\n dataIndex: \"index\",\n key: \"index\",\n width: 80, \n fixed: 'left',\n render(text, record, index){return index + 1}\n },\n {\n title: \"订单编号\",\n dataIndex: \"orderCode\",\n key: \"orderCode\",\n width: 100, \n fixed: 'left',\n required: true\n },\n {\n title: \"供应商名称\",\n dataIndex: \"supplierName\",\n key: \"supplierName\",\n width: 150,\n required: true\n },\n {\n title: \"类型\",\n dataIndex: \"type_name\",\n key: \"type_name\",\n width: 100\n },\n {\n title: \"采购组织\",\n dataIndex: \"purchasing\",\n key: \"purchasing\",\n width: 100\n },\n {\n title: \"单据日期\",\n dataIndex: \"voucherDate\",\n key: \"voucherDate\",\n width: 150\n },\n {\n title: \"审批状态\",\n dataIndex: \"approvalState_name\",\n key: \"approvalState_name\",\n width: 150\n }\n ]};\n }\n afterFilter = (optData,columns)=>{\n if(optData.key == 'b'){\n if(optData.ifshow){\n columns[2].ifshow = false;\n }else{\n columns[2].ifshow = true;\n }\n this.setState({\n columns21 :columns,\n showFilterPopover:true\n });\n }\n \n }\n \n render() {\n return ;\n }\n}\n\nDemo21.defaultProps = defaultProps21;\nexport default Demo21;", "desc": " 点击表头右侧按钮,设置显示或隐藏表格列。可以自定义设置显示某列,通过ifshow属性控制,默认值为true(显示表格所有列)。afterFilter方法为列过滤后触发的回调函数。" }, { "example": _react2['default'].createElement(Demo0901, null), "title": " 列排序", "code": "/**\n* @title 列排序\n* @parent 列操作-排序 Sort\n* @description column中增加sorter: (a, b) => a.c - b.c 这里的a,b代表前后两个数据,c代表比较当前对象的字段名称\n* demo0901\n*/\n\n\nimport React, { Component } from 'react';\nimport { Table, Icon } from 'tinper-bee';\n\n\nimport sort from \"bee-table/build/lib/sort.js\";\n\nlet ComplexTable = sort(Table, Icon);\nconst columns11 = [\n {\n title: \"单据编号\",\n dataIndex: \"num\",\n key: \"num\",\n width: 120,\n fixed: \"left\"\n },\n {\n title: \"单据日期\",\n dataIndex: \"date\",\n key: \"date\",\n width: 200,\n },\n {\n title: \"供应商\",\n dataIndex: \"supplier\",\n key: \"supplier\",\n width: 100\n },\n {\n title: \"联系人\",\n dataIndex: \"contact\",\n key: \"contact\",\n },\n {\n title: \"整单数量\",\n dataIndex: \"total\",\n key: \"total\",\n width: 150,\n sorter: (a, b) => a.total - b.total\n }\n];\n\nconst data11 = [\n { num: \"NU0391001\", date: \"2019-03-01\", supplier: 'xx供应商',contact:'Tom', total:30 ,key: \"1\" },\n { num: \"NU0391002\", date: \"2018-11-02\", supplier: 'yy供应商',contact:'Jack', total:41 ,key: \"2\" },\n { num: \"NU0391003\", date: \"2019-05-03\", supplier: 'zz供应商',contact:'Jane', total:25 ,key: \"3\" }\n];\n\nconst defaultProps11 = {\n prefixCls: \"bee-table\"\n};\nclass Demo11 extends Component {\n constructor(props) {\n super(props);\n this.state = {\n sortOrder: \"\",\n data: data11\n };\n }\n render() {\n\n return ;\n }\n}\nDemo11.defaultProps = defaultProps11;\n\n\nexport default Demo11;", "desc": " column中增加sorter: (a, b) => a.c - b.c 这里的a,b代表前后两个数据,c代表比较当前对象的字段名称" }, { "example": _react2['default'].createElement(Demo0902, null), "title": " 后端列排序", "code": "/**\n* @title 后端列排序\n* @parent 列操作-排序 Sort\n* @description 可在控制台中查看序列化后的参数字符串,将参数传递给后端即可进行列排序\n* demo0902\n*/\n\n\nimport React, { Component } from 'react';\nimport { Table, Icon } from 'tinper-bee';\n\n\nimport sort from \"bee-table/build/lib/sort.js\";\nlet ComplexTable = sort(Table, Icon);\n\n// const columns11 = [\n// {\n// title: \"名字\",\n// dataIndex: \"a\",\n// key: \"a\",\n// width: 100\n// },\n// {\n// title: \"性别\",\n// dataIndex: \"b\",\n// key: \"b\",\n// width: 100\n// },\n// {\n// title: \"年龄\",\n// dataIndex: \"c\",\n// key: \"c\",\n// width: 200,\n// sorter: (a, b) => a.c - b.c\n// },\n// {\n// title: \"武功级别\",\n// dataIndex: \"d\",\n// key: \"d\"\n// },\n// {\n// title: \"分数\",\n// dataIndex: \"e\",\n// key: \"e\",\n// sorter: (a, b) => a.c - b.c\n// },\n// ];\n\n// const data11 = [\n// { a: \"杨过\", b: \"男\", c: 30,d:'内行', e:139,key: \"2\" },\n// { a: \"令狐冲\", b: \"男\", c: 41,d:'大侠', e:109, key: \"1\" },\n// { a: \"郭靖\", b: \"男\", c: 25,d:'大侠', e:159, key: \"3\" }\n// ];\nconst columns11 = [\n {\n title: \"单据编号\",\n dataIndex: \"num\",\n key: \"num\",\n width: 120,\n fixed: \"left\"\n },\n {\n title: \"单据日期\",\n dataIndex: \"date\",\n key: \"date\",\n width: 200,\n },\n {\n title: \"供应商\",\n dataIndex: \"supplier\",\n key: \"supplier\",\n width: 100\n },\n {\n title: \"联系人\",\n dataIndex: \"contact\",\n key: \"contact\",\n },\n {\n title: \"整单数量\",\n dataIndex: \"total\",\n key: \"total\",\n width: 150,\n sorter: (a, b) => a.total - b.total\n },\n {\n title: \"金额\",\n dataIndex: \"money\",\n key: \"money\",\n width: 100,\n sorter: (a, b) => a.money - b.money\n }\n];\n\nconst data11 = [\n { num: \"NU0391001\", date: \"2019-03-01\", supplier: 'xx供应商',contact:'Tom', total:30 ,money: 100,key: \"1\" },\n { num: \"NU0391002\", date: \"2018-11-02\", supplier: 'yy供应商',contact:'Jack', total:41 ,money: 50,key: \"2\" },\n { num: \"NU0391003\", date: \"2019-05-03\", supplier: 'zz供应商',contact:'Jane', total:25 ,money: 200,key: \"3\" }\n];\n\nconst defaultProps = {\n prefixCls: \"bee-table\"\n};\nclass Demo28 extends Component {\n constructor(props) {\n super(props);\n this.state = {\n sortOrder: \"\",\n data: data11\n };\n }\n /**\n * 后端获取数据\n */\n sortFun = (sortParam)=>{\n console.info(sortParam);\n //将参数传递给后端排序\n }\n render() {\n let sortObj = {\n mode:'multiple',\n backSource:true,\n sortFun:this.sortFun\n }\n return ;\n }\n}\nDemo28.defaultProps = defaultProps;\n\n\nexport default Demo28;", "desc": " 可在控制台中查看序列化后的参数字符串,将参数传递给后端即可进行列排序" }, { "example": _react2['default'].createElement(Demo0903, null), "title": " 多列排序", "code": "/**\n *\n * @title 多列排序\n * @parent 列操作-排序 Sort\n * @description 结合多列排序、全选功能、合计功能的表格示例。新增排序后触发的回调函数sorterClick。\n * demo0903\n */\n\nimport React, { Component } from \"react\";\nimport { Table, Checkbox,Button,Icon } from 'tinper-bee';\n\n\nimport multiSelect from \"bee-table/build/lib/multiSelect.js\";\nimport sort from \"bee-table/build/lib/sort.js\";\nimport sum from \"bee-table/build/lib/sum.js\";\n\nconst columns13 = [\n {\n title: \"订单编号\",\n dataIndex: \"a\",\n key: \"a\",\n className:'dfasd',\n width: 200,\n sorter: (pre, after) => {return pre.a.localeCompare(after.a)},\n sorterClick:(data,type)=>{//排序的回调函数\n //type value is up or down\n console.log(\"data\",data);\n }\n },\n {\n title: \"金额\",\n dataIndex: \"b\",\n key: \"b\",\n width: 200,\n sumCol: true,\n sorter: (pre, after) => pre.b - after.b,\n sorterClick:(data,type)=>{//排序的回调函数\n //type value is up or down\n console.log(\"data\",data);\n }\n },\n {\n title: \"整单数量\",\n dataIndex: \"c\",\n key: \"c\",\n width: 200,\n sumCol: true,\n sorter: (pre, after) => pre.c - after.c,\n sorterClick:(data,type)=>{//排序的回调函数\n //type value is up or down\n console.log(\"data\",data);\n }\n },\n {\n title: \"日销售量\",\n dataIndex: \"e\",\n key: \"e\",\n width: 200,\n sumCol: true,\n sorter: (pre, after) => pre.e - after.e,\n },\n {\n title: \"供应商\",\n dataIndex: \"d\",\n key: \"d\",\n width: 200\n }\n];\n\nconst data13 = [\n { a: \"NU0391001\", b: 675, c: 30, d: \"xx供应商\",e:100, key: \"2\" },\n { a: \"NU0391002\", b: 43, c: 41, d: \"yy供应商\",e:90, key: \"1\" },\n { a: \"NU0391003\", b: 43, c: 81, d: \"zz供应商\", e:120,key: \"4\" },\n { a: \"NU0391004\", b: 43, c: 81, d: \"aa供应商\", e:130,key: \"5\" },\n { a: \"NU0391005\", b: 153, c: 25, d: \"bb供应商\",e:90, key: \"3\" }\n];\n\n\n//拼接成复杂功能的table组件不能在render中定义,需要像此例子声明在组件的外侧,不然操作state会导致功能出现异常\nlet ComplexTable = multiSelect(sort(sum(Table, Icon)), Checkbox);\n\nclass Demo13 extends Component {\n constructor(props) {\n super(props);\n this.state = {\n data13: data13,\n selectedRow: this.selectedRow,\n selectDisabled: this.selectDisabled\n };\n }\n getSelectedDataFunc = data => {\n console.log(data);\n };\n selectDisabled = (record, index) => {\n // console.log(record);\n if (index === 1) {\n return true;\n }\n return false;\n };\n selectedRow = (record, index) => {\n // console.log(record);\n if (index === 0) {\n return true;\n }\n return false;\n };\n onClick = () => {\n this.setState({\n selectedRow: function() {}\n });\n };\n\n render() {\n let multiObj = {\n type: \"checkbox\"\n };\n let sortObj = {\n mode:'multiple'\n }\n \n return (\n
\n \n \n
\n );\n }\n}\nexport default Demo13;", "desc": " 结合多列排序、全选功能、合计功能的表格示例。新增排序后触发的回调函数sorterClick。" }, { "example": _react2['default'].createElement(Demo1001, null), "title": " 拖拽改变列顺序", "code": "/**\n*\n* @title 拖拽改变列顺序\n* @parent 列操作-拖拽 Drag\n* @description 点击选择表头并左右拖拽,可以改变表格列顺序。 onDragEnd 方法是拖拽交换列后触发的回调函数。注意:固定列不可以交换。\n* demo1001\n*/\nimport React, { Component } from 'react';\nimport { Table } from 'tinper-bee';\n \nimport dragColumn from 'bee-table/build/lib/dragColumn';\n\nconst columns = [\n {\n title: \"订单编号\",\n dataIndex: \"a\",\n key: \"a\",\n width: 100\n },\n {\n title: \"单据日期\",\n dataIndex: \"b\",\n key: \"b\",\n width: 200\n },\n {\n title: \"供应商\",\n dataIndex: \"c\",\n key: \"c\",\n width: 200,\n sumCol: true,\n sorter: (a, b) => a.c - b.c\n },\n {\n title: \"联系人\",\n dataIndex: \"d\",\n key: \"d\",\n width: 500,\n },\n {\n title: \"操作\",\n dataIndex: \"e\",\n key: \"e\",\n width: 200,\n fixed: 'right',\n }\n];\n\nconst data = [\n { a: \"NU0391001\", b: \"2019-03-01\", c: 'xx供应商',d:'Tom',e:'...', key: \"2\" },\n { a: \"NU0391002\", b: \"2018-11-02\", c: 'yy供应商',d:'Jack',e:'...', key: \"1\" },\n { a: \"NU0391003\", b: \"2019-05-03\", c: 'zz供应商',d:'Jane',e:'...', key: \"3\" }\n];\n\nconst DragColumnTable = dragColumn(Table);\n\nconst defaultProps29 = {\n prefixCls: \"bee-table\"\n};\n\nclass Demo29 extends Component {\n constructor(props) {\n super(props); \n }\n \n render() {\n return {\n console.log(\"--拖拽交换列onDrop触发事件\");\n console.log(\"event.target:\",event.target);\n console.log(\"data:\",data);\n console.log(\"拖拽完成后的columns:\",columns);\n }}\n\n onDragEnd ={(event,data,columns)=>{\n console.log(\"--拖拽交换列后触发事件\");\n console.log(\"event.target:\",event.target);\n console.log(\"data:\",data);\n console.log(\"拖拽完成后的columns:\",columns);\n }}\n />;\n }\n}\n\nDemo29.defaultProps = defaultProps29;\nexport default Demo29;", "desc": " 点击选择表头并左右拖拽,可以改变表格列顺序。 onDragEnd 方法是拖拽交换列后触发的回调函数。注意:固定列不可以交换。" }, { "example": _react2['default'].createElement(Demo1002, null), "title": " 拖拽改变列宽度", "code": "/**\n*\n* @title 拖拽改变列宽度\n* @parent 列操作-拖拽 Drag\n* @description onDropBorder方法为调整列宽后触发的回调函数。注:不支持tree结构的表头。\n* demo1002\n*/\nimport React, { Component } from 'react';\nimport { Table } from 'tinper-bee';\n\n \nimport dragColumn from 'bee-table/build/lib/dragColumn';\n\nconst columns = [\n {\n title: \"订单编号\",\n dataIndex: \"a\",\n key: \"a\",\n width: '200',\n fixed:'left'\n },\n {\n title: \"单据日期\",\n dataIndex: \"b\",\n key: \"b\",\n width: '600'\n },\n {\n title: \"供应商\",\n dataIndex: \"c\",\n key: \"c\",\n width: '200',\n }, \n {\n title: \"联系人\",\n dataIndex: \"d\",\n key: \"d\",\n width: 500,\n }\n];\n\nconst data = [\n { a: \"NU0391001\", b: \"2019-03-01\", c: \"xx供应商\",d:'Tom', key: \"2\" },\n { a: \"NU0391002\", b: \"2018-11-02\", c: \"yy供应商\",d:'Jack', key: \"1\" },\n { a: \"NU0391003\", b: \"2019-05-03\", c: \"zz供应商\",d:'Jane', key: \"3\" }\n];\n\nconst DragColumnTable = dragColumn(Table);\n\nclass Demo30 extends Component {\n constructor(props) {\n super(props); \n }\n\n render() {\n return {\n console.log(width+\"--调整列宽后触发事件\",e.target);\n }}\n />;\n }\n}\n\nexport default Demo30;", "desc": " onDropBorder方法为调整列宽后触发的回调函数。注:不支持tree结构的表头。" }, { "example": _react2['default'].createElement(Demo1101, null), "title": " 嵌套子表格", "code": "/**\n*\n* @title 嵌套子表格\n* @parent 扩展行 Expanded Row\n* @description 通过expandedRowRender参数来实现子表格。收起和展开的图标可自定义传入。注意:多选功能和嵌套表格一起使用时,需要设置 expandIconAsCell={true},把展开按钮放在单元格中展示。\n* demo1101\n*/\n\nimport React, { Component } from \"react\";\nimport { Table, Popconfirm,Icon,Checkbox } from 'tinper-bee';\n\n\nimport multiSelect from \"bee-table/build/lib/multiSelect\";\n\nconst columns16 = [\n {\n title: \"操作\",\n dataIndex: \"d\",\n key: \"d\", \n width:100,\n render(text, record, index) {\n return (\n \n \n 一些操作\n \n \n );\n }\n },\n { title: \"订单编号\", dataIndex: \"a\", key: \"a\", width: 250 },\n { id: \"123\", title: \"单据日期\", dataIndex: \"b\", key: \"b\", width: 100 },\n { title: \"供应商\", dataIndex: \"c\", key: \"c\", width: 200, fixed:'right' },\n \n];\nconst columns17 = [\n { title: \"订单编号\", dataIndex: \"a\", key: \"a\", width: 100 },\n { id: \"123\", title: \"单据日期\", dataIndex: \"b\", key: \"b\", width: 100 },\n { title: \"供应商\", dataIndex: \"c\", key: \"c\", width: 200 }\n];\n\nconst data16 = [\n { a: \"NU0391001\", b: \"2019-03-01\", c: \"xx供应商\", d: \"操作\", key: \"1\" },\n { a: \"NU0391002\", b: \"2018-11-02\", c: \"yy供应商\", d: \"操作\", key: \"2\" },\n { a: \"NU0391003\", b: \"2019-05-03\", c: \"zz供应商\", d: \"操作\", key: \"3\" }\n];\nconst MultiSelectTable = multiSelect(Table,Checkbox);\nclass Demo16 extends Component {\n constructor(props){\n super(props);\n this.state={\n data_obj:{}\n }\n }\n expandedRowRender = (record, index, indent) => {\n return (\n \n );\n };\n getData=(expanded, record)=>{\n //当点击展开的时候才去请求数据\n let new_obj = Object.assign({},this.state.data_obj);\n if(expanded){\n if(record.key==='1'){\n new_obj[record.key] = [\n { a: \"NU0391056\", b: \"2019-03-01\", c: \"gys1\", d: \"操作\", key: \"1\" },\n { a: \"NU0391057\", b: \"2018-11-02\", c: \"gys2\", d: \"操作\", key: \"2\" },\n ]\n this.setState({\n data_obj:new_obj\n })\n }else{\n new_obj[record.key] = [\n { a: \"NU0391079\", b: \"2019-04-17\", c: \"gys5\", d: \"操作\", key: \"3\" },\n ]\n this.setState({\n data_obj:new_obj\n })\n }\n }\n }\n\n haveExpandIcon=(record, index)=>{\n //控制是否显示行展开icon,该参数只有在和expandedRowRender同时使用才生效\n if(index == 0){\n return true;\n }\n return false;\n }\n\n render() {\n return (\n }\n expandedIcon={}\n />\n );\n }\n}\n\nexport default Demo16;\n", "desc": " 通过expandedRowRender参数来实现子表格。收起和展开的图标可自定义传入。注意:多选功能和嵌套表格一起使用时,需要设置 expandIconAsCell={true},把展开按钮放在单元格中展示。", "scss_code": ".expanded-table{\r\n .expand-icon-con .uf{\r\n font-size: 12px;\r\n }\r\n}" }, { "example": _react2['default'].createElement(Demo1102, null), "title": " 树型表格数据展示", "code": "/**\n*\n* @title 树型表格数据展示\n* @parent 扩展行 Expanded Row\n* @description 通过在data中配置children数据,来自动生成树形表格\n* demo1102\n*/\n\n\nimport React, { Component } from 'react';\nimport { Table } from 'tinper-bee';\n\n\n\nconst columns4 = [\n {\n title: \"订单编号\",\n dataIndex: \"name\",\n key: \"name\",\n width: \"40%\"\n },\n {\n title: \"单据日期\",\n dataIndex: \"age\",\n key: \"age\",\n width: \"30%\"\n },\n {\n title: \"供应商\",\n dataIndex: \"address\",\n key: \"address\"\n }\n];\n\nconst data4 = [\n {\n key: 1,\n name: \"NU0391001\",\n age: \"2019-03-01\",\n address: \"供应商1\",\n children: [\n {\n key: 11,\n name: \"NU0391002\",\n age: \"2019-03-02\",\n address: \"供应商2\"\n },\n {\n key: 12,\n name: \"NU0391003\",\n age: \"2019-03-03\",\n address: \"供应商3\",\n children: [\n {\n key: 121,\n name: \"NU0391004\",\n age: \"2019-03-04\",\n address: \"供应商4\"\n }\n ]\n },\n {\n key: 13,\n name: \"NU0391005\",\n age: \"2019-03-05\",\n address: \"供应商5\",\n children: [\n {\n key: 131,\n name: \"NU0391006\",\n age: \"2019-03-06\",\n address: \"供应商6\",\n children: [\n {\n key: 1311,\n name: \"NU0391007\",\n age: \"2019-03-07\",\n address: \"供应商7\"\n },\n {\n key: 1312,\n name: \"NU0391008\",\n age: \"2019-03-08\",\n address: \"供应商8\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n key: 2,\n name: \"NU0391009\",\n age: \"2019-03-09\",\n address: \"供应商9\"\n }\n];\nclass Demo4 extends Component {\n\n constructor(props){\n super(props);\n this.state = {\n data: data4,\n factoryValue: 0,\n selectedRow: new Array(data4.length)//状态同步\n }\n }\n\n render() {\n return
{\n if (this.state.selectedRow[index]) {\n return 'selected';\n } else {\n return '';\n }\n }}\n onRowClick={(record,index,indent)=>{\n let selectedRow = new Array(this.state.data.length);\n selectedRow[index] = true;\n this.setState({\n factoryValue: record,\n selectedRow: selectedRow\n });\n }}\n rowKey=\"key\"//每条数据的唯一标示,默认为key,如果不是key,必须传\n columns={columns4} data={data4} />;\n }\n}\n\n\nexport default Demo4;", "desc": " 通过在data中配置children数据,来自动生成树形表格" }, { "example": _react2['default'].createElement(Demo1103, null), "title": " 自定义表格标题、表尾、选中行颜色", "code": "/**\r\n*\r\n* @title 自定义表格标题、表尾、选中行颜色\r\n* @parent 扩展行 Expanded Row\r\n* @description 可根据业务场景设置不同的`title`和`footer`。选中行颜色可用rowClassName作为选择器自定义css样式。\r\n* demo1103\r\n*/\r\n\r\nimport React, { Component } from \"react\";\nimport { Table, Button,Tooltip, } from 'tinper-bee';\r\n\r\n\r\n\r\n\r\nconst columns = [\r\n { title: \"员工编号\", dataIndex: \"a\", key: \"a\", width: 150, className: \"rowClassName\"},\r\n { title: \"员工姓名\", dataIndex: \"b\", key: \"b\", width: 100 },\r\n { title: \"性别\", dataIndex: \"c\", key: \"c\", width: 100 },\r\n { title: \"部门\", dataIndex: \"d\", key: \"d\", width: 100 }\r\n];\r\n\r\nconst data = [\r\n { a: \"ASVAL_201903280005\", b: \"小张\", c: \"男\", d: \"财务二科\", key: \"1\" },\r\n { a: \"ASVAL_201903200004\", b: \"小明\", c: \"男\", d: \"财务一科\", key: \"2\" },\r\n { a: \"ASVAL_201903120002\", b: \"小红\", c: \"女\", d: \"财务一科\", key: \"3\" }\r\n];\r\n\r\nclass Demo26 extends Component {\r\n\r\n constructor(props){\r\n super(props);\r\n this.state = {\r\n data: data,\r\n selectedRowIndex: 0\r\n }\r\n }\r\n\r\n render() {\r\n return (\r\n {\r\n if (this.state.selectedRowIndex == index) {\r\n return 'selected';\r\n } else {\r\n return '';\r\n }\r\n }}\r\n onRowClick={(record,index,indent)=>{\r\n this.setState({ \r\n selectedRowIndex: index\r\n });\r\n }}\r\n title={currentData =>
员工信息统计表
}\r\n footer={currentData =>
合计: 共{data.length}条数据
}\r\n /> \r\n );\r\n }\r\n}\r\n\r\nexport default Demo26;\r\n", "desc": " 可根据业务场景设置不同的`title`和`footer`。选中行颜色可用rowClassName作为选择器自定义css样式。" }, { "example": _react2['default'].createElement(Demo1105, null), "title": " 紧凑型、宽松型", "code": "/**\n*\n* @title 紧凑型、宽松型\n* @parent 扩展行 Expanded Row\n* @description 设置`size`属性使用紧凑型表格(`sm`)或宽松型表格(`lg`)。\n* demo1105\n*/\n\nimport React, { Component } from \"react\";\nimport { Table, Button,Tooltip,Tag } from 'tinper-bee';\n\n\n\nconst columns = [\n { title: \"订单编号\", dataIndex: \"orderNum\", key: \"orderNum\", width: 100 },\n { title: \"采购组织\", dataIndex: \"org\", key: \"org\", width: 200 },\n { title: \"供应商\", dataIndex: \"supplier\", key: \"supplier\", width: 100 },\n { title: \"订单日期\", dataIndex: \"orderDate\", key: \"orderDate\", width: 150 },\n { title: \"总数量\", dataIndex: \"quantity\", key: \"quantity\", width: 100 },\n { title: \"单据状态\", dataIndex: \"status\", key: \"status\", width: 100, \n render: (text, record, index) => {\n return (\n {text.desc}\n );\n }},\n { title: \"提交人\", dataIndex: \"submitter\", key: \"submitter\", width: 100 },\n { title: \"单位\", dataIndex: \"unit\", key: \"unit\", width: 100 },\n { title: \"总税价合计\", dataIndex: \"sum\", key: \"sum\", width: 100 },\n];\n\nconst data = [\n { \n orderNum: \"NU0391025\", \n org: \"用友网络科技股份有限公司\", \n supplier: \"xx供应商\", \n orderDate: '2018年03月18日', \n quantity: '100.00', \n status: {type:'success' ,desc:'正常'}, \n submitter: '小张', \n unit: 'pc', \n sum:'8,487.00', \n key: \"1\" \n },\n { \n orderNum: \"NU0391026\", \n org: \"用友网络科技股份有限公司\", \n supplier: \"xx供应商\", \n orderDate: '2018年02月05日', \n quantity: '91.00', \n status: {type:'danger' ,desc:'异常'}, \n submitter: '小红', \n unit: 'pc', \n sum:'675.00', \n key: \"2\" \n },\n { \n orderNum: \"NU0391027\", \n org: \"用友网络科技股份有限公司\", \n supplier: \"xx供应商\", \n orderDate: '2018年07月01日', \n quantity: '98.00', \n status: {type:'success' ,desc:'正常'}, \n submitter: '小李', \n unit: 'pc', \n sum:'1,531.00', \n key: \"3\" \n }\n];\n\nclass Demo1 extends Component {\n render() {\n return (\n
\n
紧凑型表格
\n
\n
宽松型表格
\n
\n \n );\n }\n}\n\nexport default Demo1;\n", "desc": " 设置`size`属性使用紧凑型表格(`sm`)或宽松型表格(`lg`)。" }, { "example": _react2['default'].createElement(Demo1106, null), "title": " 自定义行高", "code": "/**\n*\n* @title 自定义行高\n* @parent 扩展行 Expanded Row\n* @description 设置`height`属性自定义表体行高,设置`headerHeight`属性自定义表头高度。鼠标hover行时呼出操作按钮。\n* demo1106\n*/\n\nimport React, { Component } from \"react\";\nimport { Table, Button,Tooltip } from 'tinper-bee';\n\n\n\nconst columns = [\n { title: \"员工编号\", dataIndex: \"a\", key: \"a\", width: 150, className: \"rowClassName\"},\n { title: \"员工姓名\", dataIndex: \"b\", key: \"b\", width: 100 },\n { title: \"性别\", dataIndex: \"c\", key: \"c\", width: 100 },\n { title: \"部门\", dataIndex: \"d\", key: \"d\", width: 100 }\n];\n\nconst data = [\n { a: \"ASVAL_201903280005\", b: \"小张\", c: \"男\", d: \"财务二科\", key: \"1\" },\n { a: \"ASVAL_201903200004\", b: \"小明\", c: \"男\", d: \"财务一科\", key: \"2\" },\n { a: \"ASVAL_201903120002\", b: \"小红\", c: \"女\", d: \"财务一科\", key: \"3\" }\n];\n\nclass Demo1 extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n data: data,\n selectedRowIndex: 0\n }\n }\n handleClick = () => {\n console.log('这是第' , this.currentIndex , '行');\n console.log('内容:' , this.currentRecord);\n }\n\n onRowHover=(index,record)=>{\n this.currentIndex = index;\n this.currentRecord = record;\n }\n\n getHoverContent=()=>{\n return
\n }\n\n render() {\n return (\n {\n this.setState({\n selectedRowIndex: index\n });\n }}\n />\n\n \n );\n }\n}\n\nexport default Demo1;\n", "desc": " 设置`height`属性自定义表体行高,设置`headerHeight`属性自定义表头高度。鼠标hover行时呼出操作按钮。" }, { "example": _react2['default'].createElement(Demo1107, null), "title": " 图片在表格中的展示", "code": "/**\n*\n* @title 图片在表格中的展示\n* @parent 扩展行 Expanded Row\n* @description 根据图片高度自动撑开行高,可结合图片查看器使用 http://design.yonyoucloud.com/tinper-bee/bee-viewer, 注:如果图片在固定列中,可以使用heightConsistent属性,当此属性为true,就不会出现错行问题\n* demo1107\n*/\n\nimport React, { Component } from \"react\";\nimport { Table, Button,Tooltip } from 'tinper-bee';\n\n\n\nconst columns = [\n {\n title: \"序号\",\n dataIndex: \"index\",\n key: \"index\",\n width: 80,\n render(text, record, index) {\n return index + 1;\n }\n },\n {\n title: \"图样\",\n dataIndex: \"picture\",\n key: \"picture\",\n render(text, record, index) {\n return \"Picture\"/\n }\n },\n {\n title: \"组织部门\",\n dataIndex: \"orgDept\",\n key: \"orgDept\",\n width: 100,\n },\n {\n title: \"设施管理部门\",\n dataIndex: \"facilityManageUnit\",\n key: \"facilityManageUnit\",\n width: 150,\n },\n {\n title: \"案卷编号\",\n dataIndex: \"docketnum\",\n key: \"docketnum\",\n width: 100,\n },\n {\n title: \"数量\",\n dataIndex: \"num\",\n key: \"num\",\n width: 100,\n },\n {\n title: \"首次发现时间\",\n dataIndex: \"discoveryTime\",\n key: \"discoveryTime\",\n width: 150,\n },\n {\n title: \"实际修复时间\",\n dataIndex: \"repairTime\",\n key: \"repairTime\",\n width: 150,\n }\n];\n\nconst data = [\n { key: \"1\", orgDept: \"组织1\", facilityManageUnit: \"部门1\", docketnum: 41, num: \"1\", discoveryTime: \"2018-10-17\", repairTime: \"2018-10-30\", picture: \"http://design.yonyoucloud.com/static/bee.tinper.org-demo/swiper-demo-1-min.jpg\"},\n { key: \"2\", orgDept: \"组织2\", facilityManageUnit: \"部门2\", docketnum: 30, num: \"2\", discoveryTime: \"2019-01-15\", repairTime: \"2019-01-20\", picture: \"http://design.yonyoucloud.com/static/bee.tinper.org-demo/swiper-demo-2-min.jpg\"},\n { key: \"3\", orgDept: \"组织3\", facilityManageUnit: \"部门3\", docketnum: 35, num: \"3\", discoveryTime: \"2019-04-10\", repairTime: \"2019-04-17\", picture: \"http://design.yonyoucloud.com/static/bee.tinper.org-demo/swiper-demo-3-min.jpg\"}\n];\n\nclass Demo1107 extends Component {\n render() {\n return (\n \n );\n }\n}\n\nexport default Demo1107;\n", "desc": " 根据图片高度自动撑开行高,可结合图片查看器使用 http://design.yonyoucloud.com/tinper-bee/bee-viewer, 注:如果图片在固定列中,可以使用heightConsistent属性,当此属性为true,就不会出现错行问题" }, { "example": _react2['default'].createElement(Demo1108, null), "title": " 自定义行、列合并", "code": "/**\n*\n* @title 自定义行、列合并\n* @parent 扩展行 Expanded Row\n* @description 表头只支持列合并,使用 column 里的 colSpan 进行设置。表格支持行/列合并,使用 render 里的单元格属性 colSpan 或者 rowSpan 设值为 0 时,设置的表格不会渲染。\n* demo1108\n*/\n\nimport React, { Component } from \"react\";\nimport { Button, Table } from 'tinper-bee';\n\n\nconst renderContent = (value, row, index) => {\n const obj = {\n children: value,\n props: {},\n };\n if (index === 4) {\n obj.props.colSpan = 0;\n }\n return obj;\n};\n\nconst columns = [{\n title: '姓名',\n key: \"name\",\n dataIndex: 'name',\n render: (text, row, index) => {\n if (index < 4) {\n return {text};\n }\n return {\n children: {text},\n props: {\n colSpan: 5,\n },\n };\n },\n}, {\n title: '年龄',\n key: \"age\",\n dataIndex: 'age',\n render: renderContent,\n}, {\n title: '联系方式',\n colSpan: 2,\n key: \"tel\",\n dataIndex: 'tel',\n render: (value, row, index) => {\n const obj = {\n children: value,\n props: {},\n };\n if (index === 2) {\n obj.props.rowSpan = 2;\n }\n if (index === 3) {\n obj.props.rowSpan = 0;\n }\n if (index === 4) {\n obj.props.colSpan = 0;\n }\n return obj;\n },\n}, {\n title: '手机号',\n colSpan: 0,\n key: \"phone\",\n dataIndex: 'phone',\n render: renderContent,\n}, {\n title: '家庭住址',\n key: \"address\",\n dataIndex: 'address',\n render: renderContent,\n}];\n\n\nconst columns1 = [{\n title: '姓名',\n key: \"name\",\n dataIndex: 'name',\n render: (text, row, index) => {\n if (index < 4) {\n return {text};\n }\n return {\n children: {text},\n props: {\n colSpan: 5,\n },\n };\n },\n}, {\n title: '年龄',\n key: \"age\",\n dataIndex: 'age',\n render: renderContent,\n}, {\n title: '联系方式',\n colSpan: 2,\n key: \"tel\",\n dataIndex: 'tel',\n render: renderContent\n}, {\n title: '手机号',\n colSpan: 0,\n key: \"phone\",\n dataIndex: 'phone',\n render: renderContent,\n}, {\n title: '家庭住址',\n key: \"address\",\n dataIndex: 'address',\n render: renderContent,\n}];\nconst data = [{\n key: '1',\n name: '小红',\n age: 32,\n tel: '0571-22098909',\n phone: 18889898989,\n address: '北京海淀',\n}, {\n key: '2',\n name: '小明',\n tel: '0571-22098333',\n phone: 18889898888,\n age: 42,\n address: '河北张家口',\n}, {\n key: '3',\n name: '张三',\n age: 32,\n tel: '0575-22098909',\n phone: 18900010002,\n address: '浙江杭州',\n}, {\n key: '4',\n name: '李四',\n age: 18,\n tel: '0575-22098909',\n phone: 18900010002,\n address: '广州深圳',\n}, {\n key: '5',\n name: '王五',\n age: 18,\n tel: '0575-22098909',\n phone: 18900010002,\n address: '北京昌平',\n}];\n\nclass Demo15 extends Component {\n constructor(props){\n super(props);\n this.state={\n colFlag:false\n }\n }\n onChange=()=>{\n const colFlag = this.state.colFlag;\n this.setState({\n colFlag:!colFlag\n })\n }\n render() {\n let cols = this.state.colFlag?columns:columns1;\n return (\n
\n \n
\n \n \n );\n }\n}\n\n\nexport default Demo15;\n", "desc": " 表头只支持列合并,使用 column 里的 colSpan 进行设置。表格支持行/列合并,使用 render 里的单元格属性 colSpan 或者 rowSpan 设值为 0 时,设置的表格不会渲染。" }, { "example": _react2['default'].createElement(Demo1201, null), "title": " 拖拽改变行顺序", "code": "/**\n*\n* @title 拖拽改变行顺序\n* @parent 行操作-拖拽\n* @description `rowDraggAble`参数设置是否使用行交换顺序功能,`useDragHandle`设置拖拽把手,`onDropRow` 是拖拽行后的回调函数。注意:表格行数据必须有唯一标识,可以通过 `data.key` 或 `rowKey` 两种方式传入。\n* Demo1201\n*/\n\nimport React, { Component } from \"react\";\nimport { Switch, Table } from 'tinper-bee';\n\n\nconst columns = [\n { title: \"员工编号\", dataIndex: \"a\", key: \"a\", width: 150 },\n { title: \"员工姓名\", dataIndex: \"b\", key: \"b\", width:200 },\n { title: \"系统权限\", dataIndex: \"c\", key: \"c\", width: 200,render:()=>{return()}},\n { title: \"部门\", dataIndex: \"d\", key: \"d\", width: 100 },\n { title: \"职级\", dataIndex: \"e\", key: \"e\", width: 100 }\n];\n\nconst data = [\n { a: \"ASVAL_201903280005\", b: \"小张\", c: \"男\", d: \"财务二科\", e: \"M1\", key: \"1001\" },\n { a: \"ASVAL_201903200004\", b: \"小明\", c: \"男\", d: \"财务一科\", e: \"T1\", key: \"1002\" },\n { a: \"ASVAL_201903120001\", b: \"小红\", c: \"女\", d: \"财务四科\", e: \"T3\", key: \"1003\" },\n { a: \"ASVAL_201903120002\", b: \"小姚\", c: \"女\", d: \"财务一科\", e: \"T2\", key: \"1004\" },\n { a: \"ASVAL_201903120003\", b: \"小岳\", c: \"男\", d: \"财务五科\", e: \"T2\", key: \"1005\" },\n { a: \"ASVAL_201903120004\", b: \"小王\", c: \"男\", d: \"财务一科\", e: \"T5\", key: \"1006\" },\n { a: \"ASVAL_201903120005\", b: \"小绍\", c: \"男\", d: \"财务七科\", e: \"T2\", key: \"1007\" },\n { a: \"ASVAL_201903120006\", b: \"小郭\", c: \"男\", d: \"财务一科\", e: \"T3\", key: \"1008\" },\n { a: \"ASVAL_201903120007\", b: \"小杨\", c: \"女\", d: \"财务四科\", e: \"T2\", key: \"1009\" }\n];\n\nclass Demo38 extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n data: data\n }\n }\n handleClick = () => {\n console.log('这是第' , this.currentIndex , '行');\n console.log('内容:' , this.currentRecord);\n }\n\n /**\n * 行拖拽开始时触发\n * @param record 拖拽行的数据\n * @param index 拖拽行的下标序号\n */\n onDragRowStart = (record,index) => {\n console.log('拖拽的行数据:', record);\n console.log('拖拽的行序号:', index);\n }\n\n /**\n * 行拖拽结束时触发\n * @param data 拖拽改变顺序后的新data数组\n * @param record 拖拽行的数据\n */\n onDropRow = (data, record) => {\n console.log('重排序后的data: ', data);\n console.log('拖拽的行数据: ', record);\n }\n\n render() {\n return (\n \n );\n }\n}\n\nexport default Demo38;\n", "desc": " `rowDraggAble`参数设置是否使用行交换顺序功能,`useDragHandle`设置拖拽把手,`onDropRow` 是拖拽行后的回调函数。注意:表格行数据必须有唯一标识,可以通过 `data.key` 或 `rowKey` 两种方式传入。" }, { "example": _react2['default'].createElement(Demo1301, null), "title": " 多选功能", "code": "/**\r\n*\r\n* @title 多选功能\r\n* @parent 行操作-选择\r\n* @description 支持多选、全选和禁止选择。getSelectedDataFunc方法是选中行的回调函数,返回当前选中的数据数组。给data数据添加_checked参数可设置当前数据是否选中,添加_disabled参数可禁止选择当前数据。\r\n* demo1301\r\n*/\r\n\r\n\r\nimport React, { Component } from 'react';\nimport { Table, Checkbox } from 'tinper-bee';\r\n\r\n\r\n\r\nimport multiSelect from \"bee-table/build/lib/multiSelect.js\";\r\n\r\nconst columns = [\r\n { title: \"员工编号\", dataIndex: \"a\", key: \"a\", width: 300, className: \"rowClassName\"},\r\n { title: \"员工姓名\", dataIndex: \"b\", key: \"b\", width: 500 },\r\n { title: \"性别\", dataIndex: \"c\", key: \"c\", width: 500 },\r\n { title: \"部门\", dataIndex: \"d\", key: \"d\", width: 200 }\r\n];\r\n\r\nconst data = [\r\n { a: \"ASVAL_201903280005\", b: \"小张\", c: \"男\", d: \"财务二科\", key: \"1\",_checked:true },\r\n { a: \"ASVAL_201903200004\", b: \"小明\", c: \"男\", d: \"财务一科\", key: \"2\",_checked:false },\r\n { a: \"ASVAL_201903120002\", b: \"小红\", c: \"女\", d: \"财务一科\", key: \"3\",_checked:false },\r\n { a: \"ASVAL_201903280010\", b: \"小王\", c: \"女\", d: \"财务二科\", key: \"4\",_disabled:true },\r\n { a: \"ASVAL_201903200021\", b: \"小李\", c: \"男\", d: \"财务一科\", key: \"5\",_checked:false}\r\n];\r\n//拼接成复杂功能的table组件不能在render中定义,需要像此例子声明在组件的外侧,不然操作state会导致功能出现异常\r\nlet MultiSelectTable = multiSelect(Table, Checkbox);\r\n\r\nclass Demo12 extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n data: data\r\n };\r\n }\r\n /**\r\n *@param selectedList:当前选中的行数据\r\n *@param record 当前操作行数据\r\n *@param index 当前操作行索引\r\n *@param newData 进行多选操作之后的新数据 data\r\n * @memberof Demo12\r\n */\r\n getSelectedDataFunc = (selectedList,record,index,newData) => {\r\n console.log(\"selectedList\", selectedList,\"index\",index);\r\n // 注意:需要用回调中提供的参数 newData,去更新 state 或 store 中的 data 属性值,否则当表格重新render的时候,已选数据会被冲刷掉。\r\n };\r\n \r\n render() {\r\n let multiObj = {\r\n inverse: true, //设置选中为红色填充\r\n };\r\n return (\r\n \r\n );\r\n }\r\n}\r\n\r\nexport default Demo12;", "desc": " 支持多选、全选和禁止选择。getSelectedDataFunc方法是选中行的回调函数,返回当前选中的数据数组。给data数据添加_checked参数可设置当前数据是否选中,添加_disabled参数可禁止选择当前数据。" }, { "example": _react2['default'].createElement(Demo1302, null), "title": " 单选功能", "code": "/**\r\n*\r\n* @title 单选功能\r\n* @parent 行操作-选择\r\n* @description 表格支持单选行操作,可自定义选中行背景色。getSelectedDataFunc方法是选中行的回调函数。\r\n* Demo1302\r\n*/\r\n\r\nimport React, { Component } from \"react\";\nimport { Radio, Table } from 'tinper-bee';\r\n\n\r\n\r\nimport singleSelect from \"bee-table/build/lib/singleSelect.js\";\r\n\r\nconst columns = [\r\n { title: \"员工编号\", dataIndex: \"a\", key: \"a\", width: 300 },\r\n { title: \"员工姓名\", dataIndex: \"b\", key: \"b\", width: 500 },\r\n { title: \"性别\", dataIndex: \"c\", key: \"c\", width: 500 },\r\n { title: \"部门\", dataIndex: \"d\", key: \"d\", width: 200 }\r\n ];\r\n \r\n const data = [\r\n { a: \"ASVAL_201903280005\", b: \"小张\", c: \"男\", d: \"财务二科\", key: \"1\" },\r\n { a: \"ASVAL_201903200004\", b: \"小明\", c: \"男\", d: \"财务一科\", key: \"2\" },\r\n { a: \"ASVAL_201903120002\", b: \"小红\", c: \"女\", d: \"财务一科\", key: \"3\" },\r\n { a: \"ASVAL_201903280010\", b: \"小王\", c: \"女\", d: \"财务二科\", key: \"4\" },\r\n { a: \"ASVAL_201903200021\", b: \"小李\", c: \"男\", d: \"财务一科\", key: \"5\" }\r\n ];\r\n\r\n//拼接成复杂功能的table组件不能在render中定义,需要像此例子声明在组件的外侧,不然操作state会导致功能出现异常\r\nlet SingleSelectTable = singleSelect(Table, Radio);\r\n\r\nclass Demo1302 extends Component {\r\n\r\n constructor(props){\r\n super(props);\r\n this.state = {\r\n data: data,\r\n selectedRowIndex: 0,\r\n }\r\n }\r\n\r\n /**\r\n *@param selected 当前选中的行数据(当前操作行数据)\r\n *@param index 当前操作行索引\r\n * @memberof Demo12\r\n */\r\n getSelectedDataFunc = (record,index) => {\r\n console.log(\"record\", record, \"index\",index);\r\n\r\n this.setState({\r\n selectedRowIndex:index\r\n })\r\n };\r\n\r\n render() {\r\n let {selectedRowIndex} = this.state;\r\n\r\n return (\r\n \r\n );\r\n }\r\n}\r\n\r\nexport default Demo1302;\r\n", "desc": " 表格支持单选行操作,可自定义选中行背景色。getSelectedDataFunc方法是选中行的回调函数。" }, { "example": _react2['default'].createElement(Demo1401, null), "title": " 万行以上数据渲染", "code": "/**\n*\n* @title 万行以上数据渲染\n* @parent 无限滚动 Infinite-scroll\n* @description 万行数据渲染\n* demo1401\n*/\n\nimport React, { Component } from \"react\";\nimport { Table, Tooltip } from 'tinper-bee';\n\n\nimport BigData from \"bee-table/build/lib/bigData\";\nconst BigDataTable = BigData(Table);\nconst columns = [\n {\n title:'序号',\n dataIndex:'index',\n width:'60',\n key:'index',\n render:(text,record,index)=>{\n return index\n }\n },\n {\n title: \"用户名\", dataIndex: \"a\", key: \"a\", width: 580, className: \"rowClassName\",\n render: (text, record, index) => {\n return (\n \n {text}\n \n );\n }\n },\n { id: \"123\", title: \"性别\", dataIndex: \"b\", key: \"b\", width: 80},\n { title: \"年龄\", dataIndex: \"c\", key: \"c\", width: 200 }\n\n];\n\nconst data = [ ...new Array(10000) ].map((e, i) => {\n const rs = { a: i + 'a', b: i + 'b', c: i + 'c', d: i + 'd', key: i };\n if(i%3==0){\n rs.b = '女';\n }\n return rs;\n })\n\n\nclass Demo30 extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n data: data,\n selectedRowIndex: 0\n }\n }\n\n /**\n * 表体滚动加载时触发的回调函数\n * @param endIndex 可视区最后一条数据的 index 序号\n */\n handleBodyScroll = endIndex => {\n console.log('endIndex:', endIndex);\n }\n\n render() {\n return (\n
\n {\n console.log('currentIndex--'+index);\n }}\n onBodyScroll={this.handleBodyScroll}\n />\n
\n );\n }\n}\n\nexport default Demo30;", "desc": " 万行数据渲染", "scss_code": ".big-data tr td {\n // height: 48px;\n}" }, { "example": _react2['default'].createElement(Demo1402, null), "title": " 嵌套子表格滚动加载", "code": "/**\n*\n* @title 嵌套子表格滚动加载\n* @parent 无限滚动 Infinite-scroll\n* @description 通过expandedRowRender参数来实现子表格。注意:表格行数据必须有唯一标识,可以通过 `data.key` 或 `rowKey` 两种方式传入。\n* demo1402\n*/\n\nimport React, { Component } from \"react\";\nimport { Table, Popconfirm } from 'tinper-bee';\n\n\nimport BigData from \"bee-table/build/lib/bigData\";\nconst BigDataTable = BigData(Table);\nconst outColumns = [\n {\n title: \"操作\",\n dataIndex: \"d\",\n key: \"d\", \n width:200,\n render(text, record, index) {\n return (\n \n \n 一些操作\n \n \n );\n }\n },\n { title: \"用户名\", dataIndex: \"a\", key: \"a\", width: 250 },\n { id: \"123\", title: \"性别\", dataIndex: \"b\", key: \"b\", width: 100 },\n { title: \"年龄\", dataIndex: \"c\", key: \"c\", width: 200 },\n \n];\nconst innerColumns = [\n {\n title: \"操作\",\n dataIndex: \"d\",\n key: \"d\",\n width:200,\n render(text, record, index) {\n return (\n \n \n 一些操作\n \n \n );\n }\n },\n { title: \"用户名\", dataIndex: \"a\", key: \"a\", width: 100 },\n { id: \"123\", title: \"性别\", dataIndex: \"b\", key: \"b\", width: 100 },\n { title: \"年龄\", dataIndex: \"c\", key: \"c\", width: 200 },\n \n];\n\nconst data16 = [ ...new Array(10000) ].map((e, i) => {\n return { a: i + 'a', b: i + 'b', c: i + 'c', d: i + 'd', key: i };\n })\n\n\n\n\n\nclass Demo31 extends Component {\n constructor(props){\n super(props);\n this.state={\n data_obj:{\n 0:[\n { a: \"令狐冲\", b: \"男\", c: 41, d: \"操作\", key: \"1\" },\n { a: \"杨过\", b: \"男\", c: 67, d: \"操作\", key: \"2\" }\n ],\n 1: [\n { a: \"令狐冲\", b: \"男\", c: 41, d: \"操作\", key: \"1\" },\n { a: \"菲菲\", b: \"nv\", c: 67, d: \"操作\", key: \"2\" }\n ],\n }\n }\n }\n expandedRowRender = (record, index, indent) => {\n let height = 200;\n let innderData = [ ...new Array(100) ].map((e, i) => {\n return { a: index+\"-\"+ i + 'a', b: i + 'b', c: i + 'c', d: i + 'd', key: index+\"-\"+ i };\n })\n return (\n \n );\n };\n getData=(expanded, record)=>{\n //当点击展开的时候才去请求数据\n let new_obj = Object.assign({},this.state.data_obj);\n if(expanded){\n if(record.key==='1'){\n new_obj[record.key] = [\n { a: \"令狐冲\", b: \"男\", c: 41, d: \"操作\", key: \"1\" },\n { a: \"杨过\", b: \"男\", c: 67, d: \"操作\", key: \"2\" }\n ]\n this.setState({\n data_obj:new_obj\n })\n }else{\n new_obj[record.key] = [\n { a: \"令狐冲\", b: \"男\", c: 41, d: \"操作\", key: \"1\" },\n { a: \"菲菲\", b: \"nv\", c: 67, d: \"操作\", key: \"2\" }\n ]\n this.setState({\n data_obj:new_obj\n })\n }\n }\n }\n haveExpandIcon=(record, index)=>{\n //控制是否显示行展开icon,该参数只有在和expandedRowRender同时使用才生效\n if(index == 0){\n return true;\n }\n return false;\n }\n render() {\n return (\n \n );\n }\n}\n\nexport default Demo31;\n", "desc": " 通过expandedRowRender参数来实现子表格。注意:表格行数据必须有唯一标识,可以通过 `data.key` 或 `rowKey` 两种方式传入。" }, { "example": _react2['default'].createElement(Demo1403, null), "title": " 多功能表格滚动加载", "code": "/**\n*\n* @title 多功能表格滚动加载\n* @parent 无限滚动 Infinite-scroll\n* @description\n* demo1403\n*/\n\nimport React, { Component } from \"react\";\nimport { Table, Tooltip,Checkbox,Icon,Popover } from 'tinper-bee';\n\n\nimport BigData from \"bee-table/build/lib/bigData\";\nimport multiSelect from 'bee-table/build/lib/multiSelect';\nimport filterColumn from 'bee-table/build/lib/filterColumn';\n\nlet ComplexTable = filterColumn(multiSelect(BigData(Table), Checkbox), Popover, Icon);\n\nconst columns = [\n {\n title:'序号',\n dataIndex:'index',\n width:'80',\n key:'index',\n render:(text,record,index)=>{\n return index\n }\n },\n {\n title: \"用户名\", dataIndex: \"a\", key: \"a\", width: 580, className: \"rowClassName\",\n render: (text, record, index) => {\n return (\n \n {text}\n \n );\n }\n },\n { id: \"123\", title: \"性别\", dataIndex: \"b\", key: \"b\", width: 80},\n { title: \"年龄\", dataIndex: \"c\", key: \"c\", width: 200 }\n];\n\nconst data = [ ...new Array(10000) ].map((e, i) => {\n const rs = { a: i + 'a', b: i + 'b', c: i + 'c', d: i + 'd', key: i };\n if(i%3==0){\n rs.b = '女';\n }\n return rs;\n })\n\n\nclass Demo43 extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n data: data,\n selectedRowIndex: 0\n }\n }\n getSelectedDataFunc = data => {\n console.log(data);\n };\n\n render() {\n return (\n {\n this.setState({\n selectedRowIndex: index\n });\n }}\n getSelectedDataFunc={this.getSelectedDataFunc}/>\n\n );\n }\n}\n\nexport default Demo43;\n", "desc": "" }, { "example": _react2['default'].createElement(Demo1404, null), "title": " 层级树大数据场景", "code": "/**\n* @title 层级树大数据场景\n* @parent 无限滚动 Infinite-scroll\n* @description\n* demo1404\n*/\nimport React, { Component } from \"react\";\nimport { Table, Button } from 'tinper-bee';\n\n\n\nimport BigData from \"bee-table/build/lib/bigData\";\nconst BigDataTable = BigData(Table);\nconst columns = [\n {\n title: '序号',\n dataIndex: 'index',\n width: '150',\n key: 'index',\n render: (text, record, index) => {\n return record.index ? record.index : index\n }\n },\n { title: \"用户名\", dataIndex: \"a\", key: \"a\", width: 580, className: \"rowClassName\" },\n { id: \"123\", title: \"性别\", dataIndex: \"b\", key: \"b\", width: 80 },\n { title: \"年龄\", dataIndex: \"c\", key: \"c\", width: 200 }\n];\n\nconst data = [...new Array(10)].map((e, i) => {\n const rs = { a: i + 'a', b: i + 'b', c: i + 'c', d: i + 'd', key: i };\n if (i % 3 == 0) {\n rs.b = '女';\n rs.children = [];\n for (let subi = 0; subi < 3; subi++) {\n rs.children.push({ a: i + subi + 'asub', b: i + subi + 'bsub', c: i + subi + 'csub', d: i + subi + 'dsub', key: i + `${subi} sub` });\n rs.children[subi].children = []\n for (let subj = 0; subj < 100; subj++) {\n rs.children[subi].children.push({ a: 333 + ' ' + subj, b: 333 + ' ' + subj, c: 333 + ' ' + subj, d: 333 + ' ' + subj, key: i + `${subj} sub1` });\n }\n }\n } else {\n rs.children = [];\n for (let subi = 0; subi < 3; subi++) {\n rs.children.push({ a: i + subi + 'asub', b: i + subi + 'bsub', c: i + subi + 'csub', d: i + subi + 'dsub', key: i + `${subi} sub` });\n }\n }\n return rs;\n})\n\nconst data2 = [...new Array(10000)].map((e, i) => {\n const rs = { a: i + 'a', b: i + 'b', c: i + 'c', d: i + 'd', key: i };\n if (i % 3 == 0) {\n rs.b = '女';\n }\n return rs;\n})\n\nclass Demo34 extends Component {\n constructor(props) {\n super(props);\n this.state = {\n data: data\n }\n }\n\n /**\n * expanded : 当前的状态\n * record : 当前行的数据\n */\n onExpand = (expanded, record) => {\n console.log('当前的状态---' + expanded, ' 当前行的数据---' , record);\n }\n handleClick = () => {\n this.setState({\n data: data2\n })\n }\n render () {\n return (\n
\n \n {\n console.log('currentIndex--' + index);\n }}\n rowKey=\"key\"//每条数据的唯一标示,默认为key,如果不是key,必须传\n />\n
\n\n );\n }\n}\n\nexport default Demo34;", "desc": "" }, { "example": _react2['default'].createElement(Demo1601, null), "title": " 表格+分页", "code": "/**\n * @title 表格+分页\n * @parent 分页 Pagination\n * @description 点击分页联动表格\n * demo1601\n */\n\nimport React, { Component } from \"react\";\nimport { Table, Pagination } from 'tinper-bee';\n\n\n\n\nconst columns = [\n { title: \"员工编号\", dataIndex: \"a\", key: \"a\", width: 300, className: \"rowClassName\"},\n { title: \"员工姓名\", dataIndex: \"b\", key: \"b\", width: 500 },\n { title: \"性别\", dataIndex: \"c\", key: \"c\", width: 500 },\n { title: \"部门\", dataIndex: \"d\", key: \"d\", width: 200 }\n];\n\nconst pageData = {\n 1: [\n { a: \"ASVAL_201903280005\", b: \"小张\", c: \"男\", d: \"财务二科\", key: \"1\" },\n { a: \"ASVAL_201903200004\", b: \"小明\", c: \"男\", d: \"财务一科\", key: \"2\" },\n { a: \"ASVAL_201903120002\", b: \"小红\", c: \"女\", d: \"财务一科\", key: \"3\" }\n ],\n 2: [\n { a: \"ASVAL_201903280010\", b: \"小王\", c: \"女\", d: \"财务二科\", key: \"4\" },\n { a: \"ASVAL_201903200021\", b: \"小李\", c: \"男\", d: \"财务一科\", key: \"5\" },\n ]\n};\n\nclass Demo8 extends Component {\n constructor(props) {\n super(props);\n this.state = {\n data: pageData[1],\n activePage: 1\n };\n }\n\n handleSelect(eventKey) {\n this.setState({\n data: pageData[eventKey],\n activePage: eventKey\n });\n }\n\n render() {\n return (\n
\n
\n \n \n );\n }\n}\nexport default Demo8;\n", "desc": " 点击分页联动表格", "scss_code": ".demo8{\n .u-table {\n margin-bottom: 11px;\n }\n .u-pagination{\n display: flex;\n align-items: center;\n justify-content: center;\n }\n}" }]; var Demo = function (_Component) { _inherits(Demo, _Component); @@ -10222,7 +10222,6 @@ return _react2["default"].createElement( _beeTooltip2["default"], { className: 'u-clipboard-tooltip', - positionTop: '20px', overlay: tootipContent, placement: 'top' }, _react2["default"].createElement( @@ -36820,7 +36819,7 @@ }; var defaultProps = { - title: "提示信息", + // title: "提示信息", onOk: function onOk() {}, onCancel: function onCancel() {}, content: "确认要删除吗 ?", @@ -36873,7 +36872,7 @@ resizable: true, width: 400 }, - _react2["default"].createElement( + title ? _react2["default"].createElement( _Modal2["default"].Header, { closeButton: true, className: 'ac-confirm-header' }, _react2["default"].createElement( @@ -36881,7 +36880,7 @@ { className: 'ac-confirm-header-title' }, title ) - ), + ) : null, _react2["default"].createElement( _Modal2["default"].Body, { className: 'ac-confirm-body' }, @@ -36906,23 +36905,23 @@ { className: 'ac-confirm-footer' }, _react2["default"].createElement( _beeButton2["default"], - { colors: 'primary', onClick: function onClick() { + { colors: 'secondary', onClick: function onClick() { _this2.setState({ show: false }); - onOk(); + onCancel(); } }, - locale.ok + locale.cancel ), _react2["default"].createElement( _beeButton2["default"], - { bordered: true, onClick: function onClick() { + { colors: 'primary', onClick: function onClick() { _this2.setState({ show: false }); - onCancel(); + onOk(); } }, - locale.cancel + locale.ok ) ) ) @@ -36984,6 +36983,10 @@ var _propTypes2 = _interopRequireDefault(_propTypes); + var _rcTextarea = __webpack_require__(270); + + var _rcTextarea2 = _interopRequireDefault(_rcTextarea); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } @@ -37097,7 +37100,7 @@ var onChange = _this2.props.onChange; - var value = _this2.input.value; + var value = _this2.input.value || e.target.value; if (!('value' in _this2.props)) { _this2.setState({ value: value }); } @@ -37181,8 +37184,9 @@ }; this.renderInput = function () { + var Component = _this2.props.componentClass; + var _props4 = _this2.props, - Component = _props4.componentClass, type = _props4.type, className = _props4.className, size = _props4.size, @@ -37194,7 +37198,7 @@ focusSelect = _props4.focusSelect, prefix = _props4.prefix, suffix = _props4.suffix, - others = _objectWithoutProperties(_props4, ['componentClass', 'type', 'className', 'size', 'clsPrefix', 'onChange', 'onSearch', 'onBlur', 'showClose', 'focusSelect', 'prefix', 'suffix']); + others = _objectWithoutProperties(_props4, ['type', 'className', 'size', 'clsPrefix', 'onChange', 'onSearch', 'onBlur', 'showClose', 'focusSelect', 'prefix', 'suffix']); // input[type="file"] 不应该有类名 .form-control. @@ -37204,6 +37208,9 @@ if (size) { classes['' + size] = true; } + if (Component === 'textarea') { + Component = _rcTextarea2["default"]; + } var classNames = void 0; if (type !== 'file') { @@ -37319,17426 +37326,1940 @@ /* 270 */ /***/ (function(module, exports, __webpack_require__) { - 'use strict'; - - var Table = __webpack_require__(271); - var Column = __webpack_require__(601); - var ColumnGroup = __webpack_require__(602); + "use strict"; - Table.Column = Column; - Table.ColumnGroup = ColumnGroup; + var _interopRequireWildcard = __webpack_require__(204); - module.exports = Table; - -/***/ }), -/* 271 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; + var _interopRequireDefault = __webpack_require__(14); Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports, "ResizableTextArea", { + enumerable: true, + get: function get() { + return _ResizableTextArea.default; + } + }); + exports.default = void 0; - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + var _classCallCheck2 = _interopRequireDefault(__webpack_require__(271)); - var _react = __webpack_require__(1); + var _createClass2 = _interopRequireDefault(__webpack_require__(272)); - var _react2 = _interopRequireDefault(_react); + var _inherits2 = _interopRequireDefault(__webpack_require__(273)); - var _propTypes = __webpack_require__(6); + var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(275)); - var _propTypes2 = _interopRequireDefault(_propTypes); + var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(276)); - var _componentClasses = __webpack_require__(47); + var React = _interopRequireWildcard(__webpack_require__(1)); - var _componentClasses2 = _interopRequireDefault(_componentClasses); + var _ResizableTextArea = _interopRequireDefault(__webpack_require__(277)); - var _TableRow = __webpack_require__(272); + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } - var _TableRow2 = _interopRequireDefault(_TableRow); + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } - var _TableHeader = __webpack_require__(393); + var TextArea = /*#__PURE__*/function (_React$Component) { + (0, _inherits2.default)(TextArea, _React$Component); - var _TableHeader2 = _interopRequireDefault(_TableHeader); + var _super = _createSuper(TextArea); - var _utils = __webpack_require__(273); + function TextArea(props) { + var _this; - var _shallowequal = __webpack_require__(307); + (0, _classCallCheck2.default)(this, TextArea); + _this = _super.call(this, props); - var _shallowequal2 = _interopRequireDefault(_shallowequal); + _this.focus = function () { + _this.resizableTextArea.textArea.focus(); + }; - var _addEventListener = __webpack_require__(40); + _this.saveTextArea = function (resizableTextArea) { + _this.resizableTextArea = resizableTextArea; + }; - var _addEventListener2 = _interopRequireDefault(_addEventListener); + _this.handleChange = function (e) { + var onChange = _this.props.onChange; - var _ColumnManager = __webpack_require__(600); + _this.setValue(e.target.value, function () { + _this.resizableTextArea.resizeTextarea(); + }); - var _ColumnManager2 = _interopRequireDefault(_ColumnManager); + if (onChange) { + onChange(e); + } + }; - var _createStore = __webpack_require__(603); + _this.handleKeyDown = function (e) { + var _this$props = _this.props, + onPressEnter = _this$props.onPressEnter, + onKeyDown = _this$props.onKeyDown; - var _createStore2 = _interopRequireDefault(_createStore); + if (e.keyCode === 13 && onPressEnter) { + onPressEnter(e); + } - var _beeLoading = __webpack_require__(604); + if (onKeyDown) { + onKeyDown(e); + } + }; - var _beeLoading2 = _interopRequireDefault(_beeLoading); + var value = typeof props.value === 'undefined' || props.value === null ? props.defaultValue : props.value; + _this.state = { + value: value + }; + return _this; + } - var _beeIcon = __webpack_require__(67); + (0, _createClass2.default)(TextArea, [{ + key: "setValue", + value: function setValue(value, callback) { + if (!('value' in this.props)) { + this.setState({ + value: value + }, callback); + } + } + }, { + key: "blur", + value: function blur() { + this.resizableTextArea.textArea.blur(); + } + }, { + key: "render", + value: function render() { + return React.createElement(_ResizableTextArea.default, Object.assign({}, this.props, { + value: this.state.value, + onKeyDown: this.handleKeyDown, + onChange: this.handleChange, + ref: this.saveTextArea + })); + } + }], [{ + key: "getDerivedStateFromProps", + value: function getDerivedStateFromProps(nextProps) { + if ('value' in nextProps) { + return { + value: nextProps.value + }; + } - var _beeIcon2 = _interopRequireDefault(_beeIcon); + return null; + } + }]); + return TextArea; + }(React.Component); - var _i18n = __webpack_require__(289); + var _default = TextArea; + exports.default = _default; + +/***/ }), +/* 271 */ +/***/ (function(module, exports) { + + function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } + } - var _i18n2 = _interopRequireDefault(_i18n); + module.exports = _classCallCheck; + +/***/ }), +/* 272 */ +/***/ (function(module, exports) { + + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } + } - var _tool = __webpack_require__(120); + function _createClass(Constructor, protoProps, staticProps) { + if (protoProps) _defineProperties(Constructor.prototype, protoProps); + if (staticProps) _defineProperties(Constructor, staticProps); + return Constructor; + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + module.exports = _createClass; + +/***/ }), +/* 273 */ +/***/ (function(module, exports, __webpack_require__) { + + var setPrototypeOf = __webpack_require__(274); - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + function _inherits(subClass, superClass) { + if (typeof superClass !== "function" && superClass !== null) { + throw new TypeError("Super expression must either be null or a function"); + } - function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } + subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { + value: subClass, + writable: true, + configurable: true + } + }); + if (superClass) setPrototypeOf(subClass, superClass); + } - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + module.exports = _inherits; + +/***/ }), +/* 274 */ +/***/ (function(module, exports) { + + function _setPrototypeOf(o, p) { + module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + return _setPrototypeOf(o, p); + } - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + module.exports = _setPrototypeOf; + +/***/ }), +/* 275 */ +/***/ (function(module, exports, __webpack_require__) { + + var _typeof = __webpack_require__(205); - var propTypes = { - data: _propTypes2['default'].array, - expandIconAsCell: _propTypes2['default'].bool, - defaultExpandAllRows: _propTypes2['default'].bool, - expandedRowKeys: _propTypes2['default'].array, - defaultExpandedRowKeys: _propTypes2['default'].array, - useFixedHeader: _propTypes2['default'].bool, - columns: _propTypes2['default'].array, - clsPrefix: _propTypes2['default'].string, - bodyStyle: _propTypes2['default'].object, - style: _propTypes2['default'].object, - //特殊的渲染规则的key值 - rowKey: _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].func]), - rowClassName: _propTypes2['default'].func, - //column的主键,和 column.key 作用相同 - columnKey: _propTypes2['default'].string, - expandedRowClassName: _propTypes2['default'].func, - childrenColumnName: _propTypes2['default'].string, - onExpand: _propTypes2['default'].func, - onRowHover: _propTypes2['default'].func, - onExpandedRowsChange: _propTypes2['default'].func, - indentSize: _propTypes2['default'].number, - onRowClick: _propTypes2['default'].func, - onRowDoubleClick: _propTypes2['default'].func, - expandIconColumnIndex: _propTypes2['default'].number, - //是否显示表头 - showHeader: _propTypes2['default'].bool, - title: _propTypes2['default'].func, - footer: _propTypes2['default'].func, - emptyText: _propTypes2['default'].func, - scroll: _propTypes2['default'].object, - rowRef: _propTypes2['default'].func, - getBodyWrapper: _propTypes2['default'].func, - children: _propTypes2['default'].node, - draggable: _propTypes2['default'].bool, - minColumnWidth: _propTypes2['default'].number, - filterable: _propTypes2['default'].bool, - filterDelay: _propTypes2['default'].number, - onFilterChange: _propTypes2['default'].func, - onFilterClear: _propTypes2['default'].func, - syncHover: _propTypes2['default'].bool, - tabIndex: _propTypes2['default'].string, - hoverContent: _propTypes2['default'].func, - size: _propTypes2['default'].oneOf(['sm', 'md', 'lg']), - rowDraggAble: _propTypes2['default'].bool, - hideDragHandle: _propTypes2['default'].bool, // 隐藏行拖拽把手 - onDropRow: _propTypes2['default'].func, - onDragRowStart: _propTypes2['default'].func, - onBodyScroll: _propTypes2['default'].func, - bodyDisplayInRow: _propTypes2['default'].bool, // 表格内容超出列宽度时进行换行 or 以...形式展现 - headerDisplayInRow: _propTypes2['default'].bool, // 表头内容超出列宽度时进行换行 or 以...形式展现 - showRowNum: _propTypes2['default'].oneOfType([_propTypes2['default'].bool, _propTypes2['default'].object]), // 表格是否自动生成序号,格式为{base:number || 0,defaultKey:string || '_index',defaultName:string || '序号'} - onPaste: _propTypes2['default'].func - }; + var assertThisInitialized = __webpack_require__(211); - var defaultProps = { - data: [], - useFixedHeader: false, - expandIconAsCell: false, - defaultExpandAllRows: false, - defaultExpandedRowKeys: [], - columnKey: 'key', - rowKey: 'key', - rowClassName: function rowClassName() { - return ''; - }, - expandedRowClassName: function expandedRowClassName() { - return ''; - }, - onExpand: function onExpand() {}, - onExpandedRowsChange: function onExpandedRowsChange() {}, - onRowClick: function onRowClick() {}, + function _possibleConstructorReturn(self, call) { + if (call && (_typeof(call) === "object" || typeof call === "function")) { + return call; + } - // onRowDoubleClick() { }, - clsPrefix: 'u-table', - bodyStyle: {}, - style: {}, - childrenColumnName: 'children', - indentSize: 15, - expandIconColumnIndex: 0, - showHeader: true, - scroll: {}, - rowRef: function rowRef() { - return null; - }, - getBodyWrapper: function getBodyWrapper(body) { - return body; - }, - // emptyText: () =>
{locale["no_data"]}
, - columns: [], - minColumnWidth: 80, - locale: {}, - syncHover: true, - // setRowHeight:()=>{}, - setRowParentIndex: function setRowParentIndex() {}, - tabIndex: '0', - heightConsistent: false, - size: 'md', - rowDraggAble: false, - hideDragHandle: false, - onDropRow: function onDropRow() {}, - onDragRowStart: function onDragRowStart() {}, - onBodyScroll: function onBodyScroll() {}, - bodyDisplayInRow: true, - headerDisplayInRow: true, - showRowNum: false, - onPaste: function onPaste() {} - }; + return assertThisInitialized(self); + } - var expandIconCellWidth = Number(43); + module.exports = _possibleConstructorReturn; + +/***/ }), +/* 276 */ +/***/ (function(module, exports) { + + function _getPrototypeOf(o) { + module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }; + return _getPrototypeOf(o); + } - var Table = function (_Component) { - _inherits(Table, _Component); + module.exports = _getPrototypeOf; + +/***/ }), +/* 277 */ +/***/ (function(module, exports, __webpack_require__) { + + "use strict"; - function Table(props) { - _classCallCheck(this, Table); + var _interopRequireWildcard = __webpack_require__(204); - var _this = _possibleConstructorReturn(this, _Component.call(this, props)); + var _interopRequireDefault = __webpack_require__(14); - _this.resize = function () { - (0, _utils.debounce)(_this.syncFixedTableRowHeight, 150); - _this.computeTableWidth(); - var renderFlag = _this.state.renderFlag; - _this.setState({ - renderFlag: !renderFlag - }); - }; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; - _this.getTableUID = function () { - var uid = "_table_uid_" + new Date().getTime(); - _this.tableUid = uid; - var div = document.createElement("div"); - // div.className = "u-table-drag-hidden-cont"; - div.className = "u-table-drag-hidden-cont"; - div.id = uid; - _this.contentTable.appendChild(div); - }; + var _defineProperty2 = _interopRequireDefault(__webpack_require__(278)); - _this.onDragRowStart = function (currentKey) { - var data = _this.state.data, - currentIndex = void 0, - record = void 0; - data.forEach(function (da, i) { - // tr 的唯一标识通过 data.key 或 rowKey 两种方式传进来 - var trKey = da.key ? da.key : _this.getRowKey(da, i); - if (trKey == currentKey) { - currentIndex = i; - record = da; - } - }); - _this.props.onDragRowStart && _this.props.onDragRowStart(record, currentIndex); - }; + var _classCallCheck2 = _interopRequireDefault(__webpack_require__(271)); - _this.onDragRow = function (currentKey, targetKey) { - var data = _this.state.data, - currentIndex = void 0, - targetIndex = void 0, - record = void 0; - data.forEach(function (da, i) { - // tr 的唯一标识通过 data.key 或 rowKey 两种方式传进来 - var trKey = da.key ? da.key : _this.getRowKey(da, i); - if (trKey == currentKey) { - currentIndex = i; - record = da; - } - if (trKey == targetKey) { - targetIndex = i; - } - }); - if (currentIndex > -1) { - data = _this.swapArray(data, currentIndex, targetIndex); - _this.props.onDropRow && _this.props.onDropRow(data, record, targetIndex); - _this.setState({ - data: data - }); - } else { - _this.props.onDropRow && _this.props.onDropRow(data, record, targetIndex); - } - }; + var _createClass2 = _interopRequireDefault(__webpack_require__(272)); - _this.swapArray = function (arr, index1, index2) { - var value1 = arr[index1]; - arr.splice(index1, 1); - if (index1 < index2) { - arr.splice(index2, 0, value1); - } else { - arr.splice(index2 + 1, 0, value1); - } + var _inherits2 = _interopRequireDefault(__webpack_require__(273)); - return arr; + var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(275)); + + var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(276)); + + var React = _interopRequireWildcard(__webpack_require__(1)); + + var _rcResizeObserver = _interopRequireDefault(__webpack_require__(279)); + + var _omit = _interopRequireDefault(__webpack_require__(288)); + + var _classnames = _interopRequireDefault(__webpack_require__(5)); + + var _calculateNodeHeight = _interopRequireDefault(__webpack_require__(291)); + + function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } + + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + + // eslint-disable-next-line @typescript-eslint/naming-convention + var RESIZE_STATUS; + + (function (RESIZE_STATUS) { + RESIZE_STATUS[RESIZE_STATUS["NONE"] = 0] = "NONE"; + RESIZE_STATUS[RESIZE_STATUS["RESIZING"] = 1] = "RESIZING"; + RESIZE_STATUS[RESIZE_STATUS["RESIZED"] = 2] = "RESIZED"; + })(RESIZE_STATUS || (RESIZE_STATUS = {})); + + var ResizableTextArea = /*#__PURE__*/function (_React$Component) { + (0, _inherits2.default)(ResizableTextArea, _React$Component); + + var _super = _createSuper(ResizableTextArea); + + function ResizableTextArea(props) { + var _this; + + (0, _classCallCheck2.default)(this, ResizableTextArea); + _this = _super.call(this, props); + + _this.saveTextArea = function (textArea) { + _this.textArea = textArea; }; - _this.renderDragHideTable = function () { + _this.handleResize = function (size) { + var resizeStatus = _this.state.resizeStatus; var _this$props = _this.props, - columns = _this$props.columns, - dragborder = _this$props.dragborder, - dragborderKey = _this$props.dragborderKey; + autoSize = _this$props.autoSize, + onResize = _this$props.onResize; - if (!dragborder) return null; - var sum = 0; - return _react2['default'].createElement( - 'div', - { id: 'u-table-drag-hide-table-' + dragborderKey, className: _this.props.clsPrefix + '-hiden-drag' }, - columns.map(function (da, i) { - sum += da.width ? da.width : 0; - return _react2['default'].createElement('div', { className: _this.props.clsPrefix + '-hiden-drag-li', key: da + "_hiden_" + i, style: { left: sum + "px" } }); - }) - ); + if (resizeStatus !== RESIZE_STATUS.NONE) { + return; + } + + if (typeof onResize === 'function') { + onResize(size); + } + + if (autoSize) { + _this.resizeOnNextFrame(); + } }; - _this.getTdPadding = function (td) { - var tdPaddingTop = _this.getStyle(td, 'paddingTop'), - tdPaddingBottom = _this.getStyle(td, 'paddingBottom'), - tdBorderTop = _this.getStyle(td, 'borderTopWidth'), - tdBorderBottom = _this.getStyle(td, 'borderBottomWidth'); - return Number(tdPaddingTop.replace('px', '')) + Number(tdPaddingBottom.replace('px', '')) + Number(tdBorderTop.replace('px', '')) + Number(tdBorderBottom.replace('px', '')); + _this.resizeOnNextFrame = function () { + cancelAnimationFrame(_this.nextFrameActionId); + _this.nextFrameActionId = requestAnimationFrame(_this.resizeTextarea); }; - _this.onRowHoverMouseEnter = function () { + _this.resizeTextarea = function () { + var autoSize = _this.props.autoSize; - _this.store.setState({ - currentHoverKey: _this.currentHoverKey - }); - _this.hoverDom.style.display = 'block'; - }; + if (!autoSize || !_this.textArea) { + return; + } - _this.onRowHoverMouseLeave = function () {}; + var minRows = autoSize.minRows, + maxRows = autoSize.maxRows; + var textareaStyles = (0, _calculateNodeHeight.default)(_this.textArea, false, minRows, maxRows); - _this.onFocus = function (e) { - _this.props.onKeyTab && _this.props.onKeyTab(); - }; + _this.setState({ + textareaStyles: textareaStyles, + resizeStatus: RESIZE_STATUS.RESIZING + }, function () { + cancelAnimationFrame(_this.resizeFrameId); + _this.resizeFrameId = requestAnimationFrame(function () { + _this.setState({ + resizeStatus: RESIZE_STATUS.RESIZED + }, function () { + _this.resizeFrameId = requestAnimationFrame(function () { + _this.setState({ + resizeStatus: RESIZE_STATUS.NONE + }); - _this.onKeyDown = function (e) { - var event = _utils.Event.getEvent(e); - // event.preventDefault?event.preventDefault():event.returnValue = false; - if (event.keyCode === 38) { - //up - event.preventDefault && event.preventDefault(); - _this.props.onKeyUp && _this.props.onKeyUp(); - } else if (event.keyCode === 40) { - //down - event.preventDefault && event.preventDefault(); - _this.props.onKeyDown && _this.props.onKeyDown(); - } - _this.props.onTableKeyDown && _this.props.onTableKeyDown(); + _this.fixFirefoxAutoScroll(); + }); + }); + }); + }); }; - var expandedRowKeys = []; - var rows = [].concat(_toConsumableArray(props.data)); - var showDragHandle = !props.hideDragHandle && props.rowDraggAble; - _this.columnManager = new _ColumnManager2['default'](props.columns, props.children, props.originWidth, showDragHandle, props.showRowNum); // 加入props.showRowNum参数 - _this.store = (0, _createStore2['default'])({ currentHoverKey: null }); - _this.firstDid = true; - if (props.defaultExpandAllRows) { - for (var i = 0; i < rows.length; i++) { - var row = rows[i]; - expandedRowKeys.push(_this.getRowKey(row, i)); - rows = rows.concat(row[props.childrenColumnName] || []); + _this.renderTextArea = function () { + var _this$props2 = _this.props, + _this$props2$prefixCl = _this$props2.prefixCls, + prefixCls = _this$props2$prefixCl === void 0 ? 'rc-textarea' : _this$props2$prefixCl, + autoSize = _this$props2.autoSize, + onResize = _this$props2.onResize, + className = _this$props2.className, + disabled = _this$props2.disabled; + var _this$state = _this.state, + textareaStyles = _this$state.textareaStyles, + resizeStatus = _this$state.resizeStatus; + var otherProps = (0, _omit.default)(_this.props, ['prefixCls', 'onPressEnter', 'autoSize', 'defaultValue', 'onResize']); + var cls = (0, _classnames.default)(prefixCls, className, (0, _defineProperty2.default)({}, "".concat(prefixCls, "-disabled"), disabled)); // Fix https://github.com/ant-design/ant-design/issues/6776 + // Make sure it could be reset when using form.getFieldDecorator + + if ('value' in otherProps) { + otherProps.value = otherProps.value || ''; } - } else { - expandedRowKeys = props.expandedRowKeys || props.defaultExpandedRowKeys; - } - _this.state = { - expandedRowKeys: expandedRowKeys, - data: props.data, - currentHoverKey: null, - scrollPosition: 'left', - fixedColumnsHeadRowsHeight: [], - fixedColumnsBodyRowsHeight: [], - fixedColumnsExpandedRowsHeight: {} //扩展行的高度 + var style = _objectSpread(_objectSpread(_objectSpread({}, _this.props.style), textareaStyles), resizeStatus === RESIZE_STATUS.RESIZING ? // React will warning when mix `overflow` & `overflowY`. + // We need to define this separately. + { + overflowX: 'hidden', + overflowY: 'hidden' + } : null); + + return React.createElement(_rcResizeObserver.default, { + onResize: _this.handleResize, + disabled: !(autoSize || onResize) + }, React.createElement("textarea", Object.assign({}, otherProps, { + className: cls, + style: style, + ref: _this.saveTextArea + }))); }; - _this.onExpandedRowsChange = _this.onExpandedRowsChange.bind(_this); - _this.onExpanded = _this.onExpanded.bind(_this); - _this.onRowDestroy = _this.onRowDestroy.bind(_this); - _this.getRowKey = _this.getRowKey.bind(_this); - _this.getExpandedRows = _this.getExpandedRows.bind(_this); - _this.getHeader = _this.getHeader.bind(_this); - _this.getHeaderRows = _this.getHeaderRows.bind(_this); - _this.getExpandedRow = _this.getExpandedRow.bind(_this); - _this.getRowsByData = _this.getRowsByData.bind(_this); - _this.getRows = _this.getRows.bind(_this); - _this.getColGroup = _this.getColGroup.bind(_this); - _this.getLeftFixedTable = _this.getLeftFixedTable.bind(_this); - _this.getRightFixedTable = _this.getRightFixedTable.bind(_this); - _this.getTable = _this.getTable.bind(_this); - _this.getTitle = _this.getTitle.bind(_this); - _this.getFooter = _this.getFooter.bind(_this); - _this.getEmptyText = _this.getEmptyText.bind(_this); - _this.getHeaderRowStyle = _this.getHeaderRowStyle.bind(_this); - _this.syncFixedTableRowHeight = _this.syncFixedTableRowHeight.bind(_this); - _this.resetScrollX = _this.resetScrollX.bind(_this); - _this.findExpandedRow = _this.findExpandedRow.bind(_this); - _this.isRowExpanded = _this.isRowExpanded.bind(_this); - _this.detectScrollTarget = _this.detectScrollTarget.bind(_this); - _this.handleBodyScroll = _this.handleBodyScroll.bind(_this); - _this.handleRowHover = _this.handleRowHover.bind(_this); - _this.computeTableWidth = _this.computeTableWidth.bind(_this); - _this.onBodyMouseLeave = _this.onBodyMouseLeave.bind(_this); - _this.tableUid = null; - _this.contentTable = null; - _this.leftColumnsLength; //左侧固定列的长度 - _this.centerColumnsLength; //非固定列的长度 - _this.columnsChildrenList = []; //复杂表头、所有叶子节点 + _this.state = { + textareaStyles: {}, + resizeStatus: RESIZE_STATUS.NONE + }; return _this; } - Table.prototype.componentWillMount = function componentWillMount() { - this.centerColumnsLength = this.columnManager.centerColumns().length; - this.leftColumnsLength = this.columnManager.leftColumns().length; - }; - - Table.prototype.componentDidMount = function componentDidMount() { - this.getTableUID(); - _utils.EventUtil.addHandler(this.contentTable, 'keydown', this.onKeyDown); - _utils.EventUtil.addHandler(this.contentTable, 'focus', this.onFocus); - setTimeout(this.resetScrollX, 300); - //含有纵向滚动条 - // if(this.props.scroll.y){ - this.scrollbarWidth = (0, _utils.measureScrollbar)(); - // } - //后续也放在recevice里面 - if (!this.props.originWidth) { - this.computeTableWidth(); + (0, _createClass2.default)(ResizableTextArea, [{ + key: "componentDidMount", + value: function componentDidMount() { + this.resizeTextarea(); } - if (this.columnManager.isAnyColumnsFixed()) { - this.syncFixedTableRowHeight(); - this.resizeEvent = (0, _addEventListener2['default'])(window, 'resize', this.resize); + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + // Re-render with the new content then recalculate the height as required. + if (prevProps.value !== this.props.value) { + this.resizeTextarea(); + } } - }; - - Table.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - var _props = this.props, - hideDragHandle = _props.hideDragHandle, - rowDraggAble = _props.rowDraggAble, - showRowNum = _props.showRowNum; + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + cancelAnimationFrame(this.nextFrameActionId); + cancelAnimationFrame(this.resizeFrameId); + } // https://github.com/ant-design/ant-design/issues/21870 - if ('data' in nextProps) { - this.setState({ - data: nextProps.data - }); - } - if ('expandedRowKeys' in nextProps) { - this.setState({ - expandedRowKeys: nextProps.expandedRowKeys - }); - } - if (nextProps.columns && nextProps.columns !== this.props.columns) { - this.columnManager.reset(nextProps.columns, null, showRowNum, !hideDragHandle && rowDraggAble); // 加入this.props.showRowNum参数 - if (nextProps.columns.length !== this.props.columns.length && this.refs && this.bodyTable) { - this.scrollTop = this.bodyTable.scrollTop; + }, { + key: "fixFirefoxAutoScroll", + value: function fixFirefoxAutoScroll() { + try { + if (document.activeElement === this.textArea) { + var currentStart = this.textArea.selectionStart; + var currentEnd = this.textArea.selectionEnd; + this.textArea.setSelectionRange(currentStart, currentEnd); + } + } catch (e) {// Fix error in Chrome: + // Failed to read the 'selectionStart' property from 'HTMLInputElement' + // http://stackoverflow.com/q/21177489/3040605 } - } else if (nextProps.children !== this.props.children) { - this.columnManager.reset(null, nextProps.children, showRowNum, !hideDragHandle && rowDraggAble); // 加入this.props.showRowNum参数 - } - //适配lazyload - if (nextProps.scrollTop > -1) { - // this.bodyTable.scrollTop = nextProps.scrollTop; - this.scrollTop = nextProps.scrollTop; - } - // fix:模态框中使用table,计算的滚动条宽度为0的bug - // fix:表格首次渲染时 display:none,再显示时,未重新计算,导致表行出现错位的bug - if (this.scrollbarWidth <= 0 && this.props.scroll.y) { - this.scrollbarWidth = (0, _utils.measureScrollbar)(); - } - if (!nextProps.originWidth) { - this.computeTableWidth(); - this.firstDid = true; //避免重复update } - if (nextProps.resetScroll) { - this.resetScrollX(); + }, { + key: "render", + value: function render() { + return this.renderTextArea(); } + }]); + return ResizableTextArea; + }(React.Component); - // console.log('this.scrollTop**********',this.scrollTop); - }; + var _default = ResizableTextArea; + exports.default = _default; + +/***/ }), +/* 278 */ +/***/ (function(module, exports) { + + function _defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } - Table.prototype.componentDidUpdate = function componentDidUpdate(prevProps, prevState) { - // todo: IE 大数据渲染,行高不固定,且设置了 heightConsistent={true} 时,滚动加载操作会导致 ie11 浏览器崩溃 - // https://github.com/tinper-bee/bee-table/commit/bd2092cdbaad236ff89477304e58dea93325bf09 - if (this.columnManager.isAnyColumnsFixed()) { - this.syncFixedTableRowHeight(); - } + return obj; + } - //适应模态框中表格、以及父容器宽度变化的情况 - if (typeof this.props.scroll.x !== 'number' && this.contentTable.getBoundingClientRect().width !== this.contentDomWidth && this.firstDid) { - this.computeTableWidth(); - this.firstDid = false; //避免重复update - } - if (this.scrollTop > -1) { - this.refs.fixedColumnsBodyLeft && (this.refs.fixedColumnsBodyLeft.scrollTop = this.scrollTop); - this.refs.fixedColumnsBodyRight && (this.refs.fixedColumnsBodyRight.scrollTop = this.scrollTop); - this.bodyTable.scrollTop = this.scrollTop; - this.scrollTop = -1; - } - if (prevProps.data.length === 0 || this.props.data.length === 0) { - this.resetScrollX(); - } + module.exports = _defineProperty; + +/***/ }), +/* 279 */ +/***/ (function(module, exports, __webpack_require__) { + + "use strict"; - // 是否传入 scroll中的y属性,如果传入判断是否是整数,如果是则进行比较 。bodyTable 的clientHeight进行判断 - this.isShowScrollY(); - }; + var _interopRequireWildcard = __webpack_require__(204); - Table.prototype.componentWillUnmount = function componentWillUnmount() { - // 移除绑定事件,避免内存泄漏 - this.contentTable = null; - _utils.EventUtil.removeHandler(this.contentTable, 'keydown', this.onKeyDown); - _utils.EventUtil.removeHandler(this.contentTable, 'focus', this.onFocus); - if (this.resizeEvent) { - this.resizeEvent.remove(); - } - }; + var _interopRequireDefault = __webpack_require__(14); - Table.prototype.computeTableWidth = function computeTableWidth() { - var expandIconAsCell = this.props.expandIconAsCell; - //如果用户传了scroll.x按用户传的为主 + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; - var setWidthParam = this.props.scroll.x; + var _objectSpread2 = _interopRequireDefault(__webpack_require__(280)); - if (typeof setWidthParam == 'number') { - var numSetWidthParam = parseInt(setWidthParam); - this.contentWidth = numSetWidthParam; - } else { - // this.preContentDomWidth = this.contentDomWidth; - //计算总表格宽度、根据表格宽度和各列的宽度和比较,重置最后一列 - this.contentDomWidth = this.contentTable.getBoundingClientRect().width; //表格容器宽度 + var _classCallCheck2 = _interopRequireDefault(__webpack_require__(271)); - this.contentWidth = this.contentDomWidth; //默认与容器宽度一样 - } - var computeObj = this.columnManager.getColumnWidth(this.contentWidth); - var expandColWidth = expandIconAsCell ? expandIconCellWidth : 0; - var lastShowIndex = computeObj.lastShowIndex; - this.computeWidth = computeObj.computeWidth + expandColWidth; + var _createClass2 = _interopRequireDefault(__webpack_require__(272)); - this.domWidthDiff = this.contentDomWidth - this.computeWidth; - if (typeof setWidthParam == 'string' && setWidthParam.indexOf('%')) { - this.contentWidth = this.contentWidth * parseInt(setWidthParam) / 100; - this.domWidthDiff = this.contentDomWidth - this.contentWidth; - } + var _inherits2 = _interopRequireDefault(__webpack_require__(273)); - if (this.computeWidth < this.contentWidth) { - var contentWidthDiff = this.scrollbarWidth ? this.contentWidth - this.computeWidth - this.scrollbarWidth : this.contentWidth - this.computeWidth; - //bordered的表格需要减去边框的差值1 - if (this.props.bordered) { - contentWidthDiff = contentWidthDiff - 1; - } - this.setState({ contentWidthDiff: contentWidthDiff, lastShowIndex: lastShowIndex }); - } else { - this.contentWidth = this.computeWidth; - this.setState({ contentWidthDiff: 0, lastShowIndex: lastShowIndex }); //重新渲染,为了显示滚动条 - } - }; - //根据内容动态的判断是否显示纵向滚动条 + var _createSuper2 = _interopRequireDefault(__webpack_require__(281)); + var React = _interopRequireWildcard(__webpack_require__(1)); - Table.prototype.isShowScrollY = function isShowScrollY() { - var props = this.props; - var y = props.scroll && props.scroll.y; - if (y) { - var bodyH = this.bodyTable.clientHeight; - var bodyContentH = this.bodyTable.querySelector('table').clientHeight; - var rightBodyTable = this.refs.fixedColumnsBodyRight; - // const leftBodyTable = this.refs.fixedColumnsBodyLeft; - var overflowy = bodyContentH <= bodyH ? 'auto' : 'scroll'; - this.bodyTable.style.overflowY = overflowy; + var _findDOMNode = _interopRequireDefault(__webpack_require__(283)); - this.headTable.style.overflowY = overflowy; - rightBodyTable && (rightBodyTable.style.overflowY = overflowy); - // 没有纵向滚动条时,表头横向滚动条根据内容动态显示 待验证 - // if(overflowy == 'auto'){ - // this.fixedHeadTable && (this.fixedHeadTable.style.overflowX = 'auto'); - // rightBodyTable && (rightBodyTable.style.overflowX = 'auto'); - // leftBodyTable && (leftBodyTable.style.overflowX = 'auto'); - // } + var _toArray = _interopRequireDefault(__webpack_require__(284)); - } - }; + var _warning = _interopRequireDefault(__webpack_require__(285)); - Table.prototype.onExpandedRowsChange = function onExpandedRowsChange(expandedRowKeys) { - if (!this.props.expandedRowKeys) { - this.setState({ expandedRowKeys: expandedRowKeys }); - } - this.props.onExpandedRowsChange(expandedRowKeys); - }; + var _ref = __webpack_require__(286); - Table.prototype.onExpanded = function onExpanded(expanded, record, index, e) { - if (e) { - e.preventDefault(); - e.stopPropagation(); - } - var info = this.findExpandedRow(record); - if (typeof info !== 'undefined' && !expanded) { - this.onRowDestroy(record, index, true); - } else if (!info && expanded) { - var expandedRows = this.getExpandedRows().concat(); - expandedRows.push(this.getRowKey(record, index)); - this.onExpandedRowsChange(expandedRows); - } - this.props.onExpand(expanded, record, index); - }; + var _resizeObserverPolyfill = _interopRequireDefault(__webpack_require__(287)); - Table.prototype.onRowDestroy = function onRowDestroy(record, rowIndex, isExpandOperation) { - var expandedRows = this.getExpandedRows().concat(); - var rowKey = this.getRowKey(record, rowIndex); - var index = -1; - expandedRows.forEach(function (r, i) { - if (r === rowKey) { - index = i; - } - }); - if (index !== -1) { - expandedRows.splice(index, 1); - } - // - if (this.currentHoverKey == rowKey && this.hoverDom) { - this.hoverDom.style.display = 'none'; - } - // todo:如果是TableRow组件卸载触发的该方法,需要加判断,解决懒加载时,持续触发onExpandedRowsChange的问题 - if (isExpandOperation) { - this.onExpandedRowsChange(expandedRows); - } else { - var info = this.findExpandedRow(record); - if (typeof info === 'undefined') { - this.onExpandedRowsChange(expandedRows); - } - } - }; + var INTERNAL_PREFIX_KEY = 'rc-observer-key'; // Still need to be compatible with React 15, we use class component here - Table.prototype.getRowKey = function getRowKey(record, index) { - var rowKey = this.props.rowKey; - var key = typeof rowKey === 'function' ? rowKey(record, index) : record[rowKey]; - (0, _utils.warningOnce)(key !== undefined, 'Each record in table should have a unique `key` prop,' + 'or set `rowKey` to an unique primary key.'); - return key; - }; + var ReactResizeObserver = /*#__PURE__*/function (_React$Component) { + (0, _inherits2.default)(ReactResizeObserver, _React$Component); - Table.prototype.getExpandedRows = function getExpandedRows() { - return this.props.expandedRowKeys || this.state.expandedRowKeys; - }; + var _super = (0, _createSuper2.default)(ReactResizeObserver); - Table.prototype.getHeader = function getHeader(columns, fixed, leftFixedWidth, rightFixedWidth) { - var lastShowIndex = this.state.lastShowIndex; - var _props2 = this.props, - filterDelay = _props2.filterDelay, - onFilterChange = _props2.onFilterChange, - onFilterClear = _props2.onFilterClear, - filterable = _props2.filterable, - showHeader = _props2.showHeader, - expandIconAsCell = _props2.expandIconAsCell, - clsPrefix = _props2.clsPrefix, - onDragStart = _props2.onDragStart, - onDragEnter = _props2.onDragEnter, - onDragOver = _props2.onDragOver, - onDrop = _props2.onDrop, - onDragEnd = _props2.onDragEnd, - draggable = _props2.draggable, - onMouseDown = _props2.onMouseDown, - onMouseMove = _props2.onMouseMove, - onMouseUp = _props2.onMouseUp, - dragborder = _props2.dragborder, - onThMouseMove = _props2.onThMouseMove, - dragborderKey = _props2.dragborderKey, - minColumnWidth = _props2.minColumnWidth, - headerHeight = _props2.headerHeight, - afterDragColWidth = _props2.afterDragColWidth, - headerScroll = _props2.headerScroll, - bordered = _props2.bordered, - onDropBorder = _props2.onDropBorder, - onDraggingBorder = _props2.onDraggingBorder; + function ReactResizeObserver() { + var _this; - this.columnsChildrenList = []; //复杂表头拖拽,重新render表头前,将其置空 - var rows = this.getHeaderRows(columns); - if (expandIconAsCell && fixed !== 'right') { - rows[0].unshift({ - key: 'u-table-expandIconAsCell', - className: clsPrefix + '-expand-icon-th', - title: '', - rowSpan: rows.length, - width: expandIconCellWidth - }); - this.columnsChildrenList.unshift({ - className: "u-table-expand-icon-column", - key: "expand-icon" - }); - } - var trStyle = headerHeight && !fixed ? { height: headerHeight } : fixed ? this.getHeaderRowStyle(columns, rows) : null; - var drop = draggable ? { onDragStart: onDragStart, onDragOver: onDragOver, onDrop: onDrop, onDragEnd: onDragEnd, onDragEnter: onDragEnter, draggable: draggable } : {}; - var dragBorder = dragborder ? { onMouseDown: onMouseDown, onMouseMove: onMouseMove, onMouseUp: onMouseUp, dragborder: dragborder, onThMouseMove: onThMouseMove, dragborderKey: dragborderKey, onDropBorder: onDropBorder, onDraggingBorder: onDraggingBorder } : {}; - var contentWidthDiff = 0; - //非固定表格,宽度不够时自动扩充 - if (!fixed) { - contentWidthDiff = this.state.contentWidthDiff; - } - return showHeader ? _react2['default'].createElement(_TableHeader2['default'], _extends({}, drop, dragBorder, { - columnsChildrenList: this.columnsChildrenList, - locale: this.props.locale, - minColumnWidth: minColumnWidth, - contentWidthDiff: contentWidthDiff, - contentWidth: this.contentWidth, - lastShowIndex: expandIconAsCell ? parseInt(lastShowIndex) + 1 : lastShowIndex, - clsPrefix: clsPrefix, - rows: rows, - contentTable: this.contentTable, - rowStyle: trStyle, - fixed: fixed, - filterable: filterable, - onFilterChange: onFilterChange, - onFilterClear: onFilterClear, - filterDelay: filterDelay, - afterDragColWidth: afterDragColWidth, - contentDomWidth: this.contentDomWidth, - scrollbarWidth: this.scrollbarWidth, - headerScroll: headerScroll, - bordered: bordered, - leftFixedWidth: leftFixedWidth, - rightFixedWidth: rightFixedWidth - })) : null; - }; + (0, _classCallCheck2.default)(this, ReactResizeObserver); + _this = _super.apply(this, arguments); + _this.resizeObserver = null; + _this.childNode = null; + _this.currentElement = null; + _this.state = { + width: 0, + height: 0, + offsetHeight: 0, + offsetWidth: 0 + }; - Table.prototype.getHeaderRows = function getHeaderRows(columns) { - var _this2 = this; + _this.onResize = function (entries) { + var onResize = _this.props.onResize; + var target = entries[0].target; - var currentRow = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; - var rows = arguments[2]; - var columnKey = this.props.columnKey; - var _state = this.state, - _state$contentWidthDi = _state.contentWidthDiff, - contentWidthDiff = _state$contentWidthDi === undefined ? 0 : _state$contentWidthDi, - _state$lastShowIndex = _state.lastShowIndex, - lastShowIndex = _state$lastShowIndex === undefined ? -1 : _state$lastShowIndex; + var _target$getBoundingCl = target.getBoundingClientRect(), + width = _target$getBoundingCl.width, + height = _target$getBoundingCl.height; - var filterCol = []; - rows = rows || []; - rows[currentRow] = rows[currentRow] || []; + var offsetWidth = target.offsetWidth, + offsetHeight = target.offsetHeight; + /** + * Resize observer trigger when content size changed. + * In most case we just care about element size, + * let's use `boundary` instead of `contentRect` here to avoid shaking. + */ - columns.forEach(function (column, i) { - if (!column.key) { - column.key = column[columnKey]; - } - if (column.rowSpan && rows.length < column.rowSpan) { - while (rows.length < column.rowSpan) { - rows.push([]); + var fixedWidth = Math.floor(width); + var fixedHeight = Math.floor(height); + + if (_this.state.width !== fixedWidth || _this.state.height !== fixedHeight || _this.state.offsetWidth !== offsetWidth || _this.state.offsetHeight !== offsetHeight) { + var size = { + width: fixedWidth, + height: fixedHeight, + offsetWidth: offsetWidth, + offsetHeight: offsetHeight + }; + + _this.setState(size); + + if (onResize) { + // defer the callback but not defer to next frame + Promise.resolve().then(function () { + onResize((0, _objectSpread2.default)((0, _objectSpread2.default)({}, size), {}, { + offsetWidth: offsetWidth, + offsetHeight: offsetHeight + })); + }); } } - var width = column.width; - if (typeof width == 'string' && width.indexOf('%') > -1 && _this2.contentWidth) { - width = parseInt(_this2.contentWidth * parseInt(width) / 100); - } else if (width) { - width = parseInt(width); - } - if (!column.fixed && lastShowIndex == i && width) { - width = width + contentWidthDiff; - } - var cell = { - key: column.key, - className: column.className || '', - children: column.title, - drgHover: column.drgHover, - fixed: column.fixed, - width: width, - dataindex: column.dataIndex, - textAlign: column.textAlign, - titleAlign: column.titleAlign, // 标题水平对齐方式 - required: column.required // 标题是否展示必填标志 - }; - if (column.onHeadCellClick) { - cell.onClick = column.onHeadCellClick; - } - if (column.children) { - _this2.getHeaderRows(column.children, currentRow + 1, rows); - } else { - _this2.columnsChildrenList.push(column); //复杂表头拖拽,所有叶子节点 + }; + + _this.setChildNode = function (node) { + _this.childNode = node; + }; + + return _this; + } + + (0, _createClass2.default)(ReactResizeObserver, [{ + key: "componentDidMount", + value: function componentDidMount() { + this.onComponentUpdated(); + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate() { + this.onComponentUpdated(); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + this.destroyObserver(); + } + }, { + key: "onComponentUpdated", + value: function onComponentUpdated() { + var disabled = this.props.disabled; // Unregister if disabled + + if (disabled) { + this.destroyObserver(); + return; + } // Unregister if element changed + + + var element = (0, _findDOMNode.default)(this.childNode || this); + var elementChanged = element !== this.currentElement; + + if (elementChanged) { + this.destroyObserver(); + this.currentElement = element; } - if ('colSpan' in column) { - cell.colSpan = column.colSpan; + + if (!this.resizeObserver && element) { + this.resizeObserver = new _resizeObserverPolyfill.default(this.onResize); + this.resizeObserver.observe(element); } - if ('rowSpan' in column) { - cell.rowSpan = column.rowSpan; + } + }, { + key: "destroyObserver", + value: function destroyObserver() { + if (this.resizeObserver) { + this.resizeObserver.disconnect(); + this.resizeObserver = null; } - if (cell.colSpan !== 0) { - rows[currentRow].push(cell); + } + }, { + key: "render", + value: function render() { + var children = this.props.children; + var childNodes = (0, _toArray.default)(children); + + if (childNodes.length > 1) { + (0, _warning.default)(false, 'Find more than one child node with `children` in ResizeObserver. Will only observe first one.'); + } else if (childNodes.length === 0) { + (0, _warning.default)(false, '`children` of ResizeObserver is empty. Nothing is in observe.'); + return null; } - //判断是否启用过滤 - if (_this2.props.filterable) { - //组装Filter需要的Col - filterCol.push({ - key: column.key, - children: "过滤渲染", - width: column.width, - filtertype: column.filterType, //下拉的类型 包括['text','dropdown','date','daterange','number'] - dataindex: column.dataIndex, //field - datasource: _this2.props.data, //需要单独拿到数据处理 - format: column.format, //设置日期的格式 - filterdropdown: column.filterDropdown, //是否显示 show hide - filterdropdownauto: column.filterDropdownAuto, //是否自定义数据 - filterdropdowndata: column.filterDropdownData, //自定义数据格式 - filterdropdownfocus: column.filterDropdownFocus, //焦点触发函数回调 - filterdropdowntype: column.filterDropdownType, //下拉的类型分为 String,Number 默认是String - filterdropdownincludekeys: column.filterDropdownIncludeKeys, //下拉条件按照指定的keys去显示 - filterinputnumberoptions: column.filterInputNumberOptions //设置数值框内的详细属性 + + var childNode = childNodes[0]; + + if (React.isValidElement(childNode) && (0, _ref.supportRef)(childNode)) { + var ref = childNode.ref; + childNodes[0] = React.cloneElement(childNode, { + ref: (0, _ref.composeRef)(ref, this.setChildNode) }); } - }); - if (this.props.filterable) { - rows.push(filterCol); + + return childNodes.length === 1 ? childNodes[0] : childNodes.map(function (node, index) { + if (!React.isValidElement(node) || 'key' in node && node.key !== null) { + return node; + } + + return React.cloneElement(node, { + key: "".concat(INTERNAL_PREFIX_KEY, "-").concat(index) + }); + }); } - return rows.filter(function (row) { - return row.length > 0; + }]); + return ReactResizeObserver; + }(React.Component); + + ReactResizeObserver.displayName = 'ResizeObserver'; + var _default = ReactResizeObserver; + exports.default = _default; + +/***/ }), +/* 280 */ +/***/ (function(module, exports, __webpack_require__) { + + var defineProperty = __webpack_require__(278); + + function ownKeys(object, enumerableOnly) { + var keys = Object.keys(object); + + if (Object.getOwnPropertySymbols) { + var symbols = Object.getOwnPropertySymbols(object); + if (enumerableOnly) symbols = symbols.filter(function (sym) { + return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); - }; + keys.push.apply(keys, symbols); + } - Table.prototype.getExpandedRow = function getExpandedRow(key, content, visible, className, fixed) { - var _props3 = this.props, - clsPrefix = _props3.clsPrefix, - expandIconAsCell = _props3.expandIconAsCell, - onPaste = _props3.onPaste; + return keys; + } - var colCount = void 0; - if (fixed === 'left') { - colCount = this.columnManager.leftLeafColumns().length; - } else if (fixed === 'right') { - colCount = this.columnManager.rightLeafColumns().length; + function _objectSpread2(target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i] != null ? arguments[i] : {}; + + if (i % 2) { + ownKeys(Object(source), true).forEach(function (key) { + defineProperty(target, key, source[key]); + }); + } else if (Object.getOwnPropertyDescriptors) { + Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { - colCount = this.columnManager.centerColumns().length; //计算非固定列的个数,fix: 嵌套表格场景,右侧列断开的问题 + ownKeys(Object(source)).forEach(function (key) { + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); + }); } + } - var expandedRowHeight = this.state.fixedColumnsExpandedRowsHeight[key] || 'auto'; - function contentContainer() { - if (content && content.props && content.props.style) { - return _react2['default'].createElement('div', { style: { height: content.props.style.height } }); - } else { - return ' '; - } - } + return target; + } - var columns = [{ - key: 'extra-row', - render: function render() { - return { - props: { - colSpan: colCount - }, - children: !fixed ? content : contentContainer() - }; - } - }]; - if (expandIconAsCell && fixed !== 'right') { - columns.unshift({ - key: 'expand-icon-placeholder', - render: function render() { - return null; - } - }); - } - return _react2['default'].createElement(_TableRow2['default'], { - onPaste: onPaste, - columns: columns, - visible: visible, - className: className, - key: key + '-extra-row', - clsPrefix: clsPrefix + '-expanded-row', - indent: 1, - expandable: false, - store: this.store, - dragborderKey: this.props.dragborderKey, - rowDraggAble: this.props.rowDraggAble, - useDragHandle: this.props.useDragHandle, - onDragRow: this.onDragRow, - onDragRowStart: this.onDragRowStart, - height: expandedRowHeight - }); - }; - - /** - * 行拖拽开始时触发 - * @param currentKey 当前拖拽目标的key - */ - - - /** - * 行拖拽结束时触发 - * @param currentKey 当前拖拽目标的key - * @param targetKey 拖拽结束时,目标位置的key - */ - - /** - * 数组元素交换位置 - * @param {array} arr 数组 - * @param {number} index1 添加项目的位置 - * @param {number} index2 删除项目的位置 - */ - - - /** - * - * - * @param {*} data - * @param {*} visible - * @param {*} indent 层级 - * @param {*} columns - * @param {*} fixed - * @param {number} [rootIndex=-1] 祖级节点 - * @returns - * @memberof Table - */ - Table.prototype.getRowsByData = function getRowsByData(data, visible, indent, columns, fixed) { - var rootIndex = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : -1; - - var props = this.props; - var childrenColumnName = props.childrenColumnName; - var expandedRowRender = props.expandedRowRender; - var expandRowByClick = props.expandRowByClick; - var onPaste = props.onPaste; - var fixedColumnsBodyRowsHeight = this.state.fixedColumnsBodyRowsHeight; - - var rst = []; - var height = void 0; - var rowClassName = props.rowClassName; - var rowRef = props.rowRef; - var expandedRowClassName = props.expandedRowClassName; - var needIndentSpaced = props.data.some(function (record) { - return record[childrenColumnName]; - }); - var onRowClick = props.onRowClick; - var onRowDoubleClick = props.onRowDoubleClick; - - var expandIconAsCell = fixed !== 'right' ? props.expandIconAsCell : false; - var expandIconColumnIndex = props.expandIconColumnIndex; - if (props.lazyLoad && props.lazyLoad.preHeight && indent == 0) { - rst.push(_react2['default'].createElement(_TableRow2['default'], { onPaste: onPaste, height: props.lazyLoad.preHeight, columns: [], className: '', key: 'table_row_first', store: this.store, visible: true })); - } - var lazyCurrentIndex = props.lazyLoad && props.lazyLoad.startIndex ? props.lazyLoad.startIndex : 0; - var lazyParentIndex = props.lazyLoad && props.lazyLoad.startParentIndex ? props.lazyLoad.startParentIndex : 0; - var lazyEndIndex = props.lazyLoad && props.lazyLoad.endIndex ? props.lazyLoad.endIndex : -1; - for (var i = 0; i < data.length; i++) { - var isHiddenExpandIcon = void 0; - var record = data[i]; - var key = this.getRowKey(record, i); - // 兼容 NCC 以前的业务逻辑,支持外部通过 record 中的 isleaf 字段,判断是否为叶子节点 - record['_isLeaf'] = typeof record['isleaf'] === 'boolean' ? record['isleaf'] : record['_isLeaf']; - // _isLeaf 字段是在 bigData 里添加的,只有层级树大数据场景需要该字段 - // _isLeaf 有三种取值情况:true / false / null。(Table内部字段) - var _isLeaf = typeof record['_isLeaf'] === 'boolean' ? record['_isLeaf'] : null; - var childrenColumn = _isLeaf ? false : record[childrenColumnName]; - var isRowExpanded = this.isRowExpanded(record, i); - var expandedRowContent = void 0; - var expandedContentHeight = 0; - //fixedIndex一般是跟index是一个值的,只有是树结构时,会讲子节点的值也累计上 - var fixedIndex = i; - //判断是否是tree结构 - if (this.treeType) { - fixedIndex = this.treeRowIndex; - } - if (expandedRowRender && isRowExpanded) { - expandedRowContent = expandedRowRender(record, fixedIndex + lazyCurrentIndex, indent); - expandedContentHeight = parseInt(expandedRowContent.props && expandedRowContent.props.style && expandedRowContent.props.style.height ? expandedRowContent.props.style.height : 0); - } - //只有当使用expandedRowRender参数的时候才去识别isHiddenExpandIcon(隐藏行展开的icon) - if (expandedRowRender && typeof props.haveExpandIcon == 'function') { - isHiddenExpandIcon = props.haveExpandIcon(record, i); - } - - var onHoverProps = {}; - - onHoverProps.onHover = this.handleRowHover; - - if (props.bodyDisplayInRow && props.height) { - height = props.height; - } else if (fixed || props.heightConsistent) { - height = fixedColumnsBodyRowsHeight[fixedIndex]; - } - - var leafColumns = void 0; - if (fixed === 'left') { - leafColumns = this.columnManager.leftLeafColumns(); - } else if (fixed === 'right') { - leafColumns = this.columnManager.rightLeafColumns(); - } else { - leafColumns = this.columnManager.leafColumns(); - } - var className = rowClassName(record, fixedIndex + lazyCurrentIndex, indent); - - //合计代码如果是最后一行并且有合计功能时,最后一行为合计列 - if (i == data.length - 1 && props.showSum) { - className = className + ' sumrow'; - } - - var paramRootIndex = rootIndex; - //小于0说明为第一层节点,她的子孙节点要保存自己的根节点 - if (paramRootIndex < 0) { - paramRootIndex = i + lazyParentIndex; - } - var index = i; - if (rootIndex == -1) { - index = i + lazyParentIndex; - } - rst.push(_react2['default'].createElement(_TableRow2['default'], _extends({ - onPaste: onPaste, - indent: indent, - indentSize: props.indentSize, - needIndentSpaced: needIndentSpaced, - className: className + ' ' + (props.rowDraggAble && !props.useDragHandle ? 'row-dragg-able ' : ''), - record: record, - expandIconAsCell: expandIconAsCell, - onDestroy: this.onRowDestroy, - index: index, - visible: visible, - expandRowByClick: expandRowByClick, - onExpand: this.onExpanded, - expandable: expandedRowRender || (childrenColumn && childrenColumn.length > 0 ? true : _isLeaf === false), - expanded: isRowExpanded, - clsPrefix: props.clsPrefix + '-row', - childrenColumnName: childrenColumnName, - columns: leafColumns, - expandIconColumnIndex: expandIconColumnIndex, - onRowClick: onRowClick, - onRowDoubleClick: onRowDoubleClick, - height: height, - isHiddenExpandIcon: isHiddenExpandIcon - }, onHoverProps, { - key: "table_row_" + key + "_" + index, - hoverKey: key, - ref: rowRef, - store: this.store, - fixed: fixed, - expandedContentHeight: expandedContentHeight, - setRowHeight: props.setRowHeight, - setRowParentIndex: props.setRowParentIndex, - treeType: childrenColumn || this.treeType ? true : false, - fixedIndex: fixedIndex + lazyCurrentIndex, - rootIndex: rootIndex, - syncHover: props.syncHover, - bodyDisplayInRow: props.bodyDisplayInRow, - rowDraggAble: props.rowDraggAble, - useDragHandle: props.useDragHandle, - onDragRow: this.onDragRow, - onDragRowStart: this.onDragRowStart, - contentTable: this.contentTable, - tableUid: this.tableUid, - expandedIcon: props.expandedIcon, - collapsedIcon: props.collapsedIcon, - lazyStartIndex: lazyCurrentIndex, - lazyEndIndex: lazyEndIndex, - centerColumnsLength: this.centerColumnsLength, - leftColumnsLength: this.leftColumnsLength, - expandIconCellWidth: expandIconCellWidth - }))); - this.treeRowIndex++; - var subVisible = visible && isRowExpanded; - - if (expandedRowContent && isRowExpanded) { - rst.push(this.getExpandedRow(key, expandedRowContent, subVisible, expandedRowClassName(record, i, indent), fixed)); - } - if (childrenColumn) { - this.isTreeType = true; //增加该标志位,为了兼容老版本,不修改以前的 `this.treeType` 的相关逻辑 - this.treeType = true; //证明是tree表形式visible = {true} - rst = rst.concat(this.getRowsByData(childrenColumn, subVisible, indent + 1, columns, fixed, paramRootIndex)); - } - } - - if (props.lazyLoad && props.lazyLoad.sufHeight && indent == 0) { - rst.push(_react2['default'].createElement(_TableRow2['default'], { onPaste: onPaste, height: props.lazyLoad.sufHeight, key: 'table_row_end', columns: [], className: '', store: this.store, visible: true })); - } - if (!this.isTreeType) { - this.treeType = false; - } - return rst; - }; - - Table.prototype.getRows = function getRows(columns, fixed) { - //统计index,只有含有树表结构才有用,因为树表结构时,固定列的索引取值有问题 - this.treeRowIndex = 0; - //每次遍历 data 前,将this.isTreeType置为 false,若遍历完 data,此变量仍为 false,说明是普通表格 - this.isTreeType = false; - var rs = this.getRowsByData(this.state.data, true, 0, columns, fixed); - return rs; - }; + module.exports = _objectSpread2; + +/***/ }), +/* 281 */ +/***/ (function(module, exports, __webpack_require__) { + + var getPrototypeOf = __webpack_require__(276); - Table.prototype.getColGroup = function getColGroup(columns, fixed) { - var _this3 = this; + var isNativeReflectConstruct = __webpack_require__(282); - var cols = []; - var self = this; + var possibleConstructorReturn = __webpack_require__(275); - var _state2 = this.state, - _state2$contentWidthD = _state2.contentWidthDiff, - contentWidthDiff = _state2$contentWidthD === undefined ? 0 : _state2$contentWidthD, - _state2$lastShowIndex = _state2.lastShowIndex, - lastShowIndex = _state2$lastShowIndex === undefined ? 0 : _state2$lastShowIndex; + function _createSuper(Derived) { + var hasNativeReflectConstruct = isNativeReflectConstruct(); + return function _createSuperInternal() { + var Super = getPrototypeOf(Derived), + result; - if (this.props.expandIconAsCell && fixed !== 'right') { - cols.push(_react2['default'].createElement('col', { - className: this.props.clsPrefix + '-expand-icon-col', - key: 'u-table-expand-icon-col' - })); - } - var leafColumns = void 0; - if (fixed === 'left') { - contentWidthDiff = 0; - leafColumns = this.columnManager.leftLeafColumns(); - } else if (fixed === 'right') { - contentWidthDiff = 0; - leafColumns = this.columnManager.rightLeafColumns(); + if (hasNativeReflectConstruct) { + var NewTarget = getPrototypeOf(this).constructor; + result = Reflect.construct(Super, arguments, NewTarget); } else { - leafColumns = this.columnManager.leafColumns(); - } - cols = cols.concat(leafColumns.map(function (c, i, arr) { - var fixedClass = ''; - var width = c.width; - if (typeof width == 'string' && width.indexOf('%') > -1 && self.contentWidth) { - width = parseInt(self.contentWidth * parseInt(width) / 100); - } else if (width) { - width = parseInt(width); - } - if (lastShowIndex == i && width) { - width = width + contentWidthDiff; - } - if (!fixed && c.fixed) { - fixedClass = ' ' + _this3.props.clsPrefix + '-row-fixed-columns-in-body'; - } - return _react2['default'].createElement('col', { key: c.key, style: { width: width, minWidth: c.width }, className: fixedClass }); - })); - return _react2['default'].createElement( - 'colgroup', - { id: 'bee-table-colgroup' }, - cols - ); - }; - - Table.prototype.getLeftFixedTable = function getLeftFixedTable() { - return this.getTable({ - columns: this.columnManager.leftColumns(), - fixed: 'left' - }); - }; - - Table.prototype.getRightFixedTable = function getRightFixedTable() { - return this.getTable({ - columns: this.columnManager.rightColumns(), - fixed: 'right' - }); - }; - - Table.prototype.getTable = function getTable() { - var _this4 = this; - - var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var columns = options.columns, - fixed = options.fixed; - var _props4 = this.props, - clsPrefix = _props4.clsPrefix, - _props4$scroll = _props4.scroll, - scroll = _props4$scroll === undefined ? {} : _props4$scroll, - getBodyWrapper = _props4.getBodyWrapper, - footerScroll = _props4.footerScroll, - headerScroll = _props4.headerScroll, - _props4$hideHeaderScr = _props4.hideHeaderScroll, - hideHeaderScroll = _props4$hideHeaderScr === undefined ? false : _props4$hideHeaderScr, - expandIconAsCell = _props4.expandIconAsCell; - var _props5 = this.props, - useFixedHeader = _props5.useFixedHeader, - data = _props5.data; - - var bodyStyle = _extends({}, this.props.bodyStyle); // 这里为什么不写在上面? - var headStyle = {}; - var innerBodyStyle = {}; - var leftFixedWidth = this.columnManager.getLeftColumnsWidth(this.contentWidth); - var rightFixedWidth = this.columnManager.getRightColumnsWidth(this.contentWidth); - - var tableClassName = ''; - //表格元素的宽度大于容器的宽度也显示滚动条 - if (scroll.x || fixed || this.contentDomWidth < this.contentWidth) { - tableClassName = clsPrefix + '-fixed'; - //没有数据并且含有顶部菜单时 - if (this.props.data.length == 0 && this.props.headerScroll) { - bodyStyle.overflowX = 'hidden'; - } - if (!footerScroll) { - bodyStyle.overflowX = bodyStyle.overflowX || 'auto'; - } - } - - if (scroll.y) { - // maxHeight will make fixed-Table scrolling not working - // so we only set maxHeight to body-Table here - if (fixed) { - // bodyStyle.height = bodyStyle.height || scroll.y; - innerBodyStyle.maxHeight = bodyStyle.maxHeight || scroll.y; - innerBodyStyle.overflowY = bodyStyle.overflowY || 'scroll'; - } else { - bodyStyle.maxHeight = bodyStyle.maxHeight || scroll.y; - } - bodyStyle.overflowY = bodyStyle.overflowY || 'scroll'; - useFixedHeader = true; - - // Add negative margin bottom for scroll bar overflow bug - var scrollbarWidth = this.scrollbarWidth; - if (scrollbarWidth >= 0) { - (fixed ? bodyStyle : headStyle).paddingBottom = '0px'; - //显示表头滚动条 - if (headerScroll) { - if (fixed) { - - if (this.domWidthDiff <= 0) { - headStyle.marginBottom = scrollbarWidth + 'px'; - bodyStyle.marginBottom = '-' + scrollbarWidth + 'px'; - } else { - innerBodyStyle.overflowX = 'auto'; - } - } else { - //内容少,不用显示滚动条 - if (this.domWidthDiff > 0) { - headStyle.overflowX = 'hidden'; - } - headStyle.marginBottom = '0px'; - } - } else { - if (fixed) { - if (this.domWidthDiff > 0) { - headStyle.overflow = 'hidden'; - innerBodyStyle.overflowX = 'auto'; //兼容expand场景、子表格含有固定列的场景 - } else { - bodyStyle.marginBottom = '-' + scrollbarWidth + 'px'; - } - } else { - // 没有数据时,表头滚动条隐藏问题 - if (data.length == 0 && this.domWidthDiff < 0) { - headStyle.marginBottom = '0px'; - } else { - headStyle.marginBottom = '-' + scrollbarWidth + 'px'; - } - } - } - } - } - - if (data.length == 0 && hideHeaderScroll) { - //支持 NCC 需求:表格无数据时,去掉表头滚动条 (https://github.com/iuap-design/tinper-bee/issues/207) - headStyle.marginBottom = '-' + this.scrollbarWidth + 'px'; - } - - var renderTable = function renderTable() { - var hasHead = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; - var hasBody = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - - var tableStyle = {}; - if (!fixed && scroll.x) { - // not set width, then use content fixed width - if (scroll.x === true) { - tableStyle.tableLayout = 'fixed'; - } else { - tableStyle.width = _this4.contentWidth - _this4.columnManager.getLeftColumnsWidth(_this4.contentWidth) - _this4.columnManager.getRightColumnsWidth(_this4.contentWidth); - } - } - // 自动出现滚动条 - if (!fixed && _this4.contentDomWidth < _this4.contentWidth) { - tableStyle.width = _this4.contentWidth - _this4.columnManager.getLeftColumnsWidth(_this4.contentWidth) - _this4.columnManager.getRightColumnsWidth(_this4.contentWidth); - } - var tableBody = hasBody ? getBodyWrapper(_react2['default'].createElement( - 'tbody', - { className: clsPrefix + '-tbody', onMouseLeave: _this4.onBodyMouseLeave }, - _this4.getRows(columns, fixed) - )) : null; - var _drag_class = _this4.props.dragborder ? "table-drag-bordered" : ""; - return _react2['default'].createElement( - 'table', - { className: ' ' + tableClassName + ' table-bordered ' + _drag_class + ' ', style: tableStyle }, - _this4.getColGroup(columns, fixed), - hasHead ? _this4.getHeader(columns, fixed, leftFixedWidth, rightFixedWidth) : null, - tableBody - ); - }; - - var headTable = void 0; - - if (useFixedHeader) { - headTable = _react2['default'].createElement( - 'div', - { - className: clsPrefix + '-header', - ref: function ref(el) { - fixed ? _this4.fixedHeadTable = el : _this4.headTable = el; - }, - style: headStyle, - onMouseOver: this.detectScrollTarget, - onTouchStart: this.detectScrollTarget, - onScroll: this.handleBodyScroll - }, - renderTable(true, false) - ); + result = Super.apply(this, arguments); } - var BodyTable = _react2['default'].createElement( - 'div', - { - className: clsPrefix + '-body', - style: bodyStyle, - ref: function ref(el) { - _this4.bodyTable = el; - }, - onMouseOver: this.detectScrollTarget, - onTouchStart: this.detectScrollTarget, - onScroll: this.handleBodyScroll, - onMouseLeave: this.onBodyMouseLeave - }, - this.renderDragHideTable(), - renderTable(!useFixedHeader) - ); - if (fixed && columns.length) { - var refName = void 0; - if (columns[0].fixed === 'left' || columns[0].fixed === true) { - refName = 'fixedColumnsBodyLeft'; - } else if (columns[0].fixed === 'right') { - refName = 'fixedColumnsBodyRight'; - } - delete bodyStyle.overflowX; - delete bodyStyle.overflowY; - BodyTable = _react2['default'].createElement( - 'div', - { - className: clsPrefix + '-body-outer', - style: _extends({}, bodyStyle) - }, - _react2['default'].createElement( - 'div', - { - style: _extends({}, innerBodyStyle), - className: clsPrefix + '-body-inner', - ref: refName, - onMouseOver: this.detectScrollTarget, - onTouchStart: this.detectScrollTarget, - onScroll: this.handleBodyScroll - }, - renderTable(!useFixedHeader) - ) - ); - } - // const leftFixedWidth = this.columnManager.getLeftColumnsWidth(this.contentWidth); - // const rightFixedWidth = this.columnManager.getRightColumnsWidth(this.contentWidth); - var expandIconWidth = expandIconAsCell ? 32 : 0; - var parStyle = {}; - if (!fixed) { - parStyle = { 'marginLeft': leftFixedWidth + expandIconWidth, 'marginRight': rightFixedWidth }; - } - return _react2['default'].createElement( - 'div', - { style: parStyle }, - headTable, - BodyTable - ); + return possibleConstructorReturn(this, result); }; + } - Table.prototype.getTitle = function getTitle() { - var _props6 = this.props, - title = _props6.title, - clsPrefix = _props6.clsPrefix; + module.exports = _createSuper; + +/***/ }), +/* 282 */ +/***/ (function(module, exports) { + + function _isNativeReflectConstruct() { + if (typeof Reflect === "undefined" || !Reflect.construct) return false; + if (Reflect.construct.sham) return false; + if (typeof Proxy === "function") return true; - return title ? _react2['default'].createElement( - 'div', - { className: clsPrefix + '-title' }, - title(this.state.data) - ) : null; - }; + try { + Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); + return true; + } catch (e) { + return false; + } + } - Table.prototype.getFooter = function getFooter() { - var _props7 = this.props, - footer = _props7.footer, - clsPrefix = _props7.clsPrefix; + module.exports = _isNativeReflectConstruct; + +/***/ }), +/* 283 */ +/***/ (function(module, exports, __webpack_require__) { + + "use strict"; - return footer ? _react2['default'].createElement( - 'div', - { className: clsPrefix + '-footer' }, - footer(this.state.data) - ) : null; - }; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = findDOMNode; - Table.prototype.getEmptyText = function getEmptyText() { - var _props8 = this.props, - defaultEmptyText = _props8.emptyText, - clsPrefix = _props8.clsPrefix, - data = _props8.data; + var _reactDom = _interopRequireDefault(__webpack_require__(2)); - var locale = (0, _tool.getComponentLocale)(this.props, this.context, 'Table', function () { - return _i18n2['default']; - }); - var emptyText = defaultEmptyText !== undefined ? defaultEmptyText : function () { - return _react2['default'].createElement( - 'div', - null, - _react2['default'].createElement(_beeIcon2['default'], { type: 'uf-nodata', className: 'table-nodata' }), - _react2['default'].createElement( - 'span', - null, - locale["no_data"] - ) - ); - }; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - return !data.length ? _react2['default'].createElement( - 'div', - { className: clsPrefix + '-placeholder' }, - emptyText() - ) : null; - }; + /** + * Return if a node is a DOM node. Else will return by `findDOMNode` + */ + function findDOMNode(node) { + if (node instanceof HTMLElement) { + return node; + } - Table.prototype.getHeaderRowStyle = function getHeaderRowStyle(columns, rows) { - var fixedColumnsHeadRowsHeight = this.state.fixedColumnsHeadRowsHeight; + return _reactDom.default.findDOMNode(node); + } + +/***/ }), +/* 284 */ +/***/ (function(module, exports, __webpack_require__) { + + "use strict"; - var headerHeight = fixedColumnsHeadRowsHeight[0]; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = toArray; - if (headerHeight && columns) { - if (headerHeight === 'auto') { - return { height: 'auto' }; - } - return { height: headerHeight / rows.length }; - } - return null; - }; + var _react = _interopRequireDefault(__webpack_require__(1)); - Table.prototype.getStyle = function getStyle(obj, attr) { - if (obj.currentStyle) { - return obj.currentStyle[attr]; - } else { - return document.defaultView.getComputedStyle(obj, null)[attr]; - } - }; + var _reactIs = __webpack_require__(215); - Table.prototype.syncFixedTableRowHeight = function syncFixedTableRowHeight() { - var _this5 = this; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - //this.props.height、headerHeight分别为用户传入的行高和表头高度,如果有值,所有行的高度都是固定的,主要为了避免在千行数据中有固定列时获取行高度有问题 - var _props9 = this.props, - clsPrefix = _props9.clsPrefix, - height = _props9.height, - headerHeight = _props9.headerHeight, - columns = _props9.columns, - heightConsistent = _props9.heightConsistent, - bodyDisplayInRow = _props9.bodyDisplayInRow; + function toArray(children) { + var ret = []; - var headRows = this.headTable ? this.headTable.querySelectorAll('thead') : this.bodyTable.querySelectorAll('thead'); - var expandedRows = this.bodyTable.querySelectorAll('.' + clsPrefix + '-expanded-row') || []; - var bodyRows = this.bodyTable.querySelectorAll('.' + clsPrefix + '-row') || []; - var leftBodyRows = this.refs.fixedColumnsBodyLeft && this.refs.fixedColumnsBodyLeft.querySelectorAll('.' + clsPrefix + '-row') || []; - var rightBodyRows = this.refs.fixedColumnsBodyRight && this.refs.fixedColumnsBodyRight.querySelectorAll('.' + clsPrefix + '-row') || []; - var fixedColumnsHeadRowsHeight = [].map.call(headRows, function (row) { - var height = headerHeight; - if (headerHeight) { - height = ((0, _utils.getMaxColChildrenLength)(columns) + 1) * headerHeight; - } - return headerHeight ? height : row.getBoundingClientRect().height || 'auto'; - }); - var fixedColumnsBodyRowsHeight = [].map.call(bodyRows, function (row, index) { - var rsHeight = height; - if (bodyDisplayInRow && rsHeight) { - return rsHeight; - } else { - // 为了提高性能,默认获取主表的高度,但是有的场景中固定列的高度比主表的高度高,所以提供此属性,会统计所有列的高度取最大的,设置 - // 内容折行显示,并又设置了 height 的情况下,也要获取主表高度 - if (heightConsistent || !bodyDisplayInRow && rsHeight) { - var leftHeight = void 0, - rightHeight = void 0, - currentHeight = void 0, - maxHeight = void 0; - leftHeight = leftBodyRows[index] ? leftBodyRows[index].getBoundingClientRect().height : 0; - rightHeight = rightBodyRows[index] ? rightBodyRows[index].getBoundingClientRect().height : 0; - currentHeight = row.getBoundingClientRect().height; - maxHeight = Math.max(leftHeight, rightHeight, currentHeight); - return maxHeight || 'auto'; - } else { - return row.getBoundingClientRect().height || 'auto'; - } - } - }); - var fixedColumnsExpandedRowsHeight = {}; - // expandedRows为NodeList Array.prototype.forEach ie 下报错 对象不支持 “forEach” 方法 - expandedRows.length > 0 && Array.prototype.forEach.call(expandedRows, function (row) { - var parentRowKey = row && row.previousSibling && row.previousSibling.getAttribute("data-row-key"), - height = row && row.getBoundingClientRect().height || 'auto'; - try { - //子表数据减少时,动态计算高度 - var td = row.querySelector('td'); - var tdPadding = _this5.getTdPadding(td); - var trueheight = row.querySelectorAll('.u-table')[0].getBoundingClientRect().height; - height = trueheight + tdPadding; - } catch (error) {} - fixedColumnsExpandedRowsHeight[parentRowKey] = height; - }); - if ((0, _shallowequal2['default'])(this.state.fixedColumnsHeadRowsHeight, fixedColumnsHeadRowsHeight) && (0, _shallowequal2['default'])(this.state.fixedColumnsBodyRowsHeight, fixedColumnsBodyRowsHeight) && (0, _shallowequal2['default'])(this.state.fixedColumnsExpandedRowsHeight, fixedColumnsExpandedRowsHeight)) { + _react.default.Children.forEach(children, function (child) { + if (child === undefined || child === null) { return; } - this.setState({ - fixedColumnsHeadRowsHeight: fixedColumnsHeadRowsHeight, - fixedColumnsBodyRowsHeight: fixedColumnsBodyRowsHeight, - fixedColumnsExpandedRowsHeight: fixedColumnsExpandedRowsHeight - }); - }; - - Table.prototype.resetScrollX = function resetScrollX() { - if (this.headTable) { - this.headTable.scrollLeft = 0; - } - if (this.bodyTable) { - this.bodyTable.scrollLeft = 0; - } - }; - - Table.prototype.findExpandedRow = function findExpandedRow(record, index) { - var _this6 = this; - - var rows = this.getExpandedRows().filter(function (i) { - return i === _this6.getRowKey(record, index); - }); - return rows[0]; - }; - - Table.prototype.isRowExpanded = function isRowExpanded(record, index) { - return typeof this.findExpandedRow(record, index) !== 'undefined'; - }; - - Table.prototype.onBodyMouseLeave = function onBodyMouseLeave(e) { - this.hideHoverDom(e); - }; - - Table.prototype.detectScrollTarget = function detectScrollTarget(e) { - if (this.scrollTarget !== e.currentTarget) { - this.scrollTarget = e.currentTarget; - } - }; - - Table.prototype.hideHoverDom = function hideHoverDom(e) { - if (this.hoverDom) { - this.hoverDom.style.display = 'none'; - } - }; - - Table.prototype.handleBodyScroll = function handleBodyScroll(e) { - var headTable = this.headTable; - var _props10 = this.props, - _props10$scroll = _props10.scroll, - scroll = _props10$scroll === undefined ? {} : _props10$scroll, - clsPrefix = _props10.clsPrefix, - handleScrollY = _props10.handleScrollY, - handleScrollX = _props10.handleScrollX, - onBodyScroll = _props10.onBodyScroll; - var _refs = this.refs, - fixedColumnsBodyLeft = _refs.fixedColumnsBodyLeft, - fixedColumnsBodyRight = _refs.fixedColumnsBodyRight; - // Prevent scrollTop setter trigger onScroll event - // http://stackoverflow.com/q/1386696 - if (e.currentTarget !== e.target) { - return; - } - if (e.target.scrollLeft !== this.lastScrollLeft) { - var position = ''; - if (e.target === this.bodyTable && headTable) { - headTable.scrollLeft = e.target.scrollLeft; - } else if (e.target === headTable && this.bodyTable) { - this.bodyTable.scrollLeft = e.target.scrollLeft; - } - if (e.target.scrollLeft === 0) { - position = 'left'; - } else if (e.target.scrollLeft + 1 >= e.target.children[0].getBoundingClientRect().width - e.target.getBoundingClientRect().width) { - position = 'right'; - } else if (this.state.scrollPosition !== 'middle') { - position = 'middle'; - } - if (position) { - (0, _componentClasses2['default'])(this.contentTable).remove(new RegExp('^' + clsPrefix + '-scroll-position-.+$')).add(clsPrefix + '-scroll-position-' + position); - } - if (handleScrollX) { - (0, _utils.debounce)(handleScrollX(e.target.scrollLeft, this.treeType), 300); - } - } - // console.log('lastScrollTop--'+this.lastScrollTop+'--eventScrollTop--'+ e.target.scrollTop); - if (scroll.y && this.lastScrollTop != e.target.scrollTop && e.target !== headTable) { - if (fixedColumnsBodyLeft && e.target !== fixedColumnsBodyLeft) { - fixedColumnsBodyLeft.scrollTop = e.target.scrollTop; - } - if (fixedColumnsBodyRight && e.target !== fixedColumnsBodyRight) { - fixedColumnsBodyRight.scrollTop = e.target.scrollTop; - } - if (this.bodyTable && e.target !== this.bodyTable) { - this.bodyTable.scrollTop = e.target.scrollTop; - } - if (this.hoverDom) { - this.hoverDom.style.display = 'none'; - } - this.lastScrollTop = e.target.scrollTop; - if (handleScrollY) { - (0, _utils.debounce)(handleScrollY(this.lastScrollTop, this.treeType, onBodyScroll), 300); - } else { - //滚动回调 - onBodyScroll(this.lastScrollTop); - } + if (Array.isArray(child)) { + ret = ret.concat(toArray(child)); + } else if ((0, _reactIs.isFragment)(child) && child.props) { + ret = ret.concat(toArray(child.props.children)); + } else { + ret.push(child); } + }); - // Remember last scrollLeft for scroll direction detecting. - this.lastScrollLeft = e.target.scrollLeft; - }; - - Table.prototype.handleRowHover = function handleRowHover(isHover, key, event, currentIndex, propsRecord) { - //增加新的API,设置是否同步Hover状态,提高性能,避免无关的渲染 - var _props11 = this.props, - syncHover = _props11.syncHover, - onRowHover = _props11.onRowHover, - data = _props11.data; - //fix:树形表,onRowHover返回参数异常 - - var isTreeType = this.isTreeType; + return ret; + } + +/***/ }), +/* 285 */ +/***/ (function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(process) {"use strict"; - var record = isTreeType ? propsRecord : data[currentIndex]; - // 固定列、或者含有hoverdom时情况下同步hover状态 - if (this.columnManager.isAnyColumnsFixed() && syncHover) { - this.hoverKey = key; - this.store.setState({ - currentHoverKey: isHover ? key : null - }); - } - if (this.hoverDom) { - if (isHover) { - this.currentHoverKey = key; - var td = (0, _utils.closest)(event.target, 'td'); - if (td) { - var scrollTop = this.lastScrollTop ? this.lastScrollTop : 0; - var top = td.offsetTop - scrollTop; - if (this.headTable) { - top = top + this.headTable.clientHeight; - } - this.hoverDom.style.top = top + 'px'; - this.hoverDom.style.height = td.offsetHeight + 'px'; - this.hoverDom.style.lineHeight = td.offsetHeight + 'px'; - this.hoverDom.style.display = 'block'; - } - this.setState({ - currentHoverIndex: currentIndex, - currentHoverRecord: record - }); - } - } + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.warning = warning; + exports.note = note; + exports.resetWarned = resetWarned; + exports.call = call; + exports.warningOnce = warningOnce; + exports.noteOnce = noteOnce; + exports.default = void 0; - onRowHover && onRowHover(currentIndex, record); - }; + /* eslint-disable no-console */ + var warned = {}; - Table.prototype.render = function render() { - var _this7 = this; + function warning(valid, message) { + // Support uglify + if (process.env.NODE_ENV !== 'production' && !valid && console !== undefined) { + console.error("Warning: ".concat(message)); + } + } - var _state3 = this.state, - currentHoverRecord = _state3.currentHoverRecord, - currentHoverIndex = _state3.currentHoverIndex; + function note(valid, message) { + // Support uglify + if (process.env.NODE_ENV !== 'production' && !valid && console !== undefined) { + console.warn("Note: ".concat(message)); + } + } - var props = this.props; - var clsPrefix = props.clsPrefix; - var hasFixedLeft = this.columnManager.isAnyColumnsLeftFixed(); - var className = props.clsPrefix; - if (props.className) { - className += ' ' + props.className; - } - if (props.useFixedHeader || props.scroll && props.scroll.y) { - className += ' ' + clsPrefix + '-fixed-header'; - } - if (!props.showHeader) { - className += ' ' + clsPrefix + '-hide-header'; - } - if (props.bordered) { - className += ' ' + clsPrefix + '-bordered'; - } - className += ' ' + clsPrefix + '-scroll-position-' + this.state.scrollPosition; - //如果传入height说明是固定高度 - //内容过多折行显示时,height 属性会失效,为了避免产生错行 - if (props.bodyDisplayInRow && props.height) { - className += ' fixed-height'; - } - if (props.bodyDisplayInRow) { - className += ' body-dispaly-in-row'; - } - if (props.headerDisplayInRow) { - className += ' header-dispaly-in-row'; - } - var isTableScroll = this.columnManager.isAnyColumnsFixed() || props.scroll.x || props.scroll.y; - var loading = props.loading; - if (typeof loading === 'boolean') { - loading = { - show: loading - }; - } - if (props.size) { - className += ' ' + clsPrefix + '-' + props.size; - } - if (hasFixedLeft) { - className += ' has-fixed-left'; - } + function resetWarned() { + warned = {}; + } - return _react2['default'].createElement( - 'div', - { className: className, style: props.style, ref: function ref(el) { - return _this7.contentTable = el; - }, - tabIndex: props.focusable && (props.tabIndex ? props.tabIndex : '0') }, - this.getTitle(), - _react2['default'].createElement( - 'div', - { className: clsPrefix + '-content' }, - _react2['default'].createElement( - 'div', - { className: isTableScroll ? clsPrefix + '-scroll' : '' }, - this.getTable({ columns: this.columnManager.groupedColumns() }), - this.getEmptyText(), - this.getFooter() - ), - hasFixedLeft && _react2['default'].createElement( - 'div', - { className: clsPrefix + '-fixed-left' }, - this.getLeftFixedTable() - ), - this.columnManager.isAnyColumnsRightFixed() && _react2['default'].createElement( - 'div', - { className: clsPrefix + '-fixed-right' }, - this.getRightFixedTable() - ) - ), - _react2['default'].createElement(_beeLoading2['default'], _extends({ - container: this - }, loading)), - props.hoverContent && _react2['default'].createElement( - 'div', - { className: 'u-row-hover', - onMouseEnter: this.onRowHoverMouseEnter, onMouseLeave: this.onRowHoverMouseLeave, ref: function ref(el) { - return _this7.hoverDom = el; - } }, - props.hoverContent(currentHoverRecord, currentHoverIndex) - ) - ); - }; + function call(method, valid, message) { + if (!valid && !warned[message]) { + method(false, message); + warned[message] = true; + } + } - return Table; - }(_react.Component); + function warningOnce(valid, message) { + call(warning, valid, message); + } - ; + function noteOnce(valid, message) { + call(note, valid, message); + } - Table.propTypes = propTypes; - Table.defaultProps = defaultProps; - Table.contextTypes = { - beeLocale: _propTypes2['default'].object - }; + var _default = warningOnce; + /* eslint-enable */ - exports['default'] = Table; - module.exports = exports['default']; + exports.default = _default; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(33))) /***/ }), -/* 272 */ -/***/ (function(module, exports, __webpack_require__) { +/* 286 */ +/***/ (function(module, exports) { - 'use strict'; + "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.fillRef = fillRef; + exports.composeRef = composeRef; + exports.supportRef = supportRef; - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _propTypes = __webpack_require__(6); - - var _propTypes2 = _interopRequireDefault(_propTypes); - - var _utils = __webpack_require__(273); - - var _TableCell = __webpack_require__(287); + function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - var _TableCell2 = _interopRequireDefault(_TableCell); + function fillRef(ref, node) { + if (typeof ref === 'function') { + ref(node); + } else if (_typeof(ref) === 'object' && ref && 'current' in ref) { + ref.current = node; + } + } + /** + * Merge refs into one ref function to support ref passing. + */ - var _ExpandIcon = __webpack_require__(392); - var _ExpandIcon2 = _interopRequireDefault(_ExpandIcon); + function composeRef() { + for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) { + refs[_key] = arguments[_key]; + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + return function (node) { + refs.forEach(function (ref) { + fillRef(ref, node); + }); + }; + } - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + function supportRef(nodeOrComponent) { + // Function component node + if (nodeOrComponent.type && nodeOrComponent.type.prototype && !nodeOrComponent.type.prototype.render) { + return false; + } // Class component - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + if (typeof nodeOrComponent === 'function' && nodeOrComponent.prototype && !nodeOrComponent.prototype.render) { + return false; + } - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + return true; + } + /* eslint-enable */ + +/***/ }), +/* 287 */ +/***/ (function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(global) {(function (global, factory) { + true ? module.exports = factory() : + typeof define === 'function' && define.amd ? define(factory) : + (global.ResizeObserver = factory()); + }(this, (function () { 'use strict'; - var propTypes = { - onDestroy: _propTypes2['default'].func, - onRowClick: _propTypes2['default'].func, - onRowDoubleClick: _propTypes2['default'].func, - record: _propTypes2['default'].object, - clsPrefix: _propTypes2['default'].string, - expandIconColumnIndex: _propTypes2['default'].number, - onHover: _propTypes2['default'].func, - columns: _propTypes2['default'].array, - height: _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].number]), - visible: _propTypes2['default'].bool, - index: _propTypes2['default'].number, - hoverKey: _propTypes2['default'].any, - expanded: _propTypes2['default'].bool, - expandable: _propTypes2['default'].any, - onExpand: _propTypes2['default'].func, - needIndentSpaced: _propTypes2['default'].bool, - className: _propTypes2['default'].string, - indent: _propTypes2['default'].number, - indentSize: _propTypes2['default'].number, - expandIconAsCell: _propTypes2['default'].bool, - expandRowByClick: _propTypes2['default'].bool, - store: _propTypes2['default'].object.isRequired, - rowDraggAble: _propTypes2['default'].bool, - onDragRow: _propTypes2['default'].func, - onDragRowStart: _propTypes2['default'].func, - syncRowHeight: _propTypes2['default'].bool - }; - - var defaultProps = { - onRowClick: function onRowClick() {}, - - // onRowDoubleClick() {}, - onDestroy: function onDestroy() {}, - - expandIconColumnIndex: 0, - expandRowByClick: false, - onHover: function onHover() {}, - - className: '', - setRowParentIndex: function setRowParentIndex() {}, - rowDraggAble: false, - // onDragRow:()=>{} - syncRowHeight: false - }; - - var TableRow = function (_Component) { - _inherits(TableRow, _Component); - - function TableRow(props) { - _classCallCheck(this, TableRow); - - var _this = _possibleConstructorReturn(this, _Component.call(this, props)); - - _this.initEvent = function () { - var events = [{ key: 'touchstart', fun: _this.onTouchStart }, //手指触摸到一个 DOM 元素时触发 - { key: 'touchmove', fun: _this.onTouchMove }, //手指在一个 DOM 元素上滑动时触发 - { key: 'touchend', fun: _this.onTouchEnd }, //手指从一个 DOM 元素上移开时触发 - - { key: 'dragstart', fun: _this.onDragStart }, //用户开始拖动元素时触发 - { key: 'dragover', fun: _this.onDragOver }, //当某被拖动的对象在另一对象容器范围内拖动时触发此事件 - { key: 'drop', fun: _this.onDrop }, //在一个拖动过程中,释放鼠标键时触发此事件 - { key: 'dragenter', fun: _this.onDragEnter }, { key: 'dragleave', fun: _this.onDragLeave }]; - _this.eventListen(events, '', _this.element); - }; - - _this.removeDragAbleEvent = function () { - var events = [{ key: 'touchstart', fun: _this.onTouchStart }, //手指触摸到一个 DOM 元素时触发 - { key: 'touchmove', fun: _this.onTouchMove }, //手指在一个 DOM 元素上滑动时触发 - { key: 'touchend', fun: _this.onTouchEnd }, //手指从一个 DOM 元素上移开时触发 - - { key: 'dragstart', fun: _this.onDragStart }, //用户开始拖动元素时触发 - { key: 'dragover', fun: _this.onDragOver }, //当某被拖动的对象在另一对象容器范围内拖动时触发此事件 - { key: 'drop', fun: _this.onDrop }, //在一个拖动过程中,释放鼠标键时触发此事件 - { key: 'dragenter', fun: _this.onDragEnter }, { key: 'dragleave', fun: _this.onDragLeave }]; - _this.eventListen(events, 'remove', _this.element); - }; - - _this.onDragStart = function (e) { - var onDragRowStart = _this.props.onDragRowStart; - - if (!_this.props.rowDraggAble) return; - var event = _utils.Event.getEvent(e), - target = _utils.Event.getTarget(event); - if (target.tagName === 'TD') { - target = target.parentNode; - } - _this.currentIndex = target.getAttribute("data-row-key"); - _this._dragCurrent = target; - event.dataTransfer.effectAllowed = "move"; - event.dataTransfer.setData("Text", _this.currentIndex); - onDragRowStart && onDragRowStart(_this.currentIndex); - }; - - _this.onDragOver = function (e) { - var event = _utils.Event.getEvent(e); - event.preventDefault(); - }; - - _this.onDrop = function (e) { - var onDragRow = _this.props.onDragRow; - - var event = _utils.Event.getEvent(e), - _target = _utils.Event.getTarget(event), - target = _target.parentNode; - - var currentKey = event.dataTransfer.getData("text"); - var targetKey = target.getAttribute("data-row-key"); - - if (!targetKey || targetKey === currentKey) return; - if (target.nodeName.toUpperCase() === "TR") { - _this.synchronizeTableTr(currentKey, null); - _this.synchronizeTableTr(targetKey, null); - } - onDragRow && onDragRow(currentKey, targetKey); - }; - - _this.getTouchDom = function (event) { - var currentLocation = event.changedTouches[0]; - var realTarget = document.elementFromPoint(currentLocation.clientX, currentLocation.clientY); - return realTarget; - }; - - _this.onTouchStart = function (e) { - e.stopPropagation(); - var onDragRowStart = _this.props.onDragRowStart; - - var event = _utils.Event.getEvent(e), - _target = _utils.Event.getTarget(event), - target = _target.parentNode; - - if (target.tagName === 'TR') { - - _this.currentIndex = target.getAttribute("data-row-key"); - - onDragRowStart && onDragRowStart(_this.currentIndex); - } else { - - _this.canBeTouch = false; - } - }; - - _this.onTouchMove = function (e) { - - if (!_this.canBeTouch) return; - e.stopPropagation(); - var event = _utils.Event.getEvent(e); - event.preventDefault(); - var touchTarget = _this.getTouchDom(event), - target = touchTarget.parentNode, - targetKey = target.getAttribute("data-row-key"); - if (!targetKey || targetKey === _this.currentIndex) return; - if (target.nodeName.toUpperCase() === "TR") { - if (_this.cacheCurrentIndex !== targetKey) { - //模拟 touchenter toucheleave 事件 - _this.cacheCurrentIndex && _this.synchronizeTableTr(_this.cacheCurrentIndex, null); //去掉虚线 - _this.synchronizeTableTr(targetKey, true); //添加虚线 - } - } - }; - - _this.onTouchEnd = function (e) { - - if (!_this.canBeTouch) { - _this.canBeTouch = true; - return; - } - - e.stopPropagation(); - var onDragRow = _this.props.onDragRow; - - var event = _utils.Event.getEvent(e), - currentKey = _this.currentIndex, - //拖拽行的key - touchTarget = _this.getTouchDom(event), - //当前触摸的DOM节点 - target = touchTarget.parentNode, - //目标位置的行 - targetKey = target.getAttribute("data-row-key"); //目标位置的行key - if (!targetKey || targetKey === currentKey) return; - if (target.nodeName.toUpperCase() === "TR") { - _this.synchronizeTableTr(currentKey, null); - _this.synchronizeTableTr(targetKey, null); - } - - onDragRow && onDragRow(currentKey, targetKey); - }; - - _this.synchronizeTableTrShadow = function () { - var _this$props = _this.props, - contentTable = _this$props.contentTable, - index = _this$props.index; - - - var cont = contentTable.querySelector('.u-table-scroll table tbody').getElementsByTagName("tr")[index], - trs = cont.getBoundingClientRect(), - fixed_left_trs = contentTable.querySelector('.u-table-fixed-left table tbody'), - fixed_right_trs = contentTable.querySelector('.u-table-fixed-right table tbody'); - fixed_left_trs = fixed_left_trs && fixed_left_trs.getElementsByTagName("tr")[index].getBoundingClientRect(); - fixed_right_trs = fixed_right_trs && fixed_right_trs.getElementsByTagName("tr")[index].getBoundingClientRect(); - - var div = document.createElement("div"); - var style = "wdith:" + (trs.width + (fixed_left_trs ? fixed_left_trs.width : 0) + (fixed_right_trs ? fixed_right_trs.width : 0)) + "px"; - style += ";height:" + trs.height + "px"; - style += ";classname:" + cont.className; - div.setAttribute("style", style); - return div; - }; - - _this.synchronizeTableTr = function (currentIndex, type) { - if (type) { - //同步 this.cacheCurrentIndex - _this.cacheCurrentIndex = currentIndex; - } - var contentTable = _this.props.contentTable; - - var _table_trs = contentTable.querySelector('.u-table-scroll table tbody'), - _table_fixed_left_trs = contentTable.querySelector('.u-table-fixed-left table tbody'), - _table_fixed_right_trs = contentTable.querySelector('.u-table-fixed-right table tbody'); - - _table_trs = _table_trs ? _table_trs : contentTable.querySelector('.u-table table tbody'); - - _this.synchronizeTrStyle(_table_trs, currentIndex, type); - if (_table_fixed_left_trs) { - _this.synchronizeTrStyle(_table_fixed_left_trs, currentIndex, type); - } - if (_table_fixed_right_trs) { - _this.synchronizeTrStyle(_table_fixed_right_trs, currentIndex, type); - } - }; - - _this.synchronizeTrStyle = function (_elementBody, id, type) { - var contentTable = _this.props.contentTable, - trs = _elementBody.getElementsByTagName("tr"), - currentObj = void 0; - - for (var index = 0; index < trs.length; index++) { - var element = trs[index]; - if (element.getAttribute("data-row-key") == id) { - currentObj = element; - } - } - if (type) { - currentObj && currentObj.setAttribute("style", "border-bottom:2px solid #02B1FD"); - } else { - currentObj && currentObj.setAttribute("style", ""); - } - }; - - _this.onDragEnter = function (e) { - var event = _utils.Event.getEvent(e), - _target = _utils.Event.getTarget(event), - target = _target.parentNode; - var currentIndex = target.getAttribute("data-row-key"); - if (!currentIndex || currentIndex === _this.currentIndex) return; - if (target.nodeName.toUpperCase() === "TR") { - _this.synchronizeTableTr(currentIndex, true); - } - }; - - _this.onDragLeave = function (e) { - var event = _utils.Event.getEvent(e), - _target = _utils.Event.getTarget(event), - target = _target.parentNode; - var currentIndex = target.getAttribute("data-row-key"); - if (!currentIndex || currentIndex === _this.currentIndex) return; - if (target.nodeName.toUpperCase() === "TR") { - _this.synchronizeTableTr(currentIndex, null); - } - }; - - _this.set = function (fn) { - _this.clear(); - _this._timeout = window.setTimeout(fn, 300); - }; - - _this.clear = function (event) { - if (_this._timeout) { - window.clearTimeout(_this._timeout); - } - }; - - _this.bindElement = function (el) { - _this.element = el; - }; - - _this._timeout = null; - _this.state = { - hovered: false - }; - _this.onRowClick = _this.onRowClick.bind(_this); - _this.onRowDoubleClick = _this.onRowDoubleClick.bind(_this); - _this.onMouseEnter = _this.onMouseEnter.bind(_this); - _this.onMouseLeave = _this.onMouseLeave.bind(_this); - _this.expandHeight = 0; - _this.event = false; - _this.cacheCurrentIndex = null; - _this.canBeTouch = true; //受否允许拖动该行 - return _this; - } - - TableRow.prototype.componentDidMount = function componentDidMount() { - var _this2 = this; - - var _props = this.props, - store = _props.store, - hoverKey = _props.hoverKey, - treeType = _props.treeType, - rowDraggAble = _props.rowDraggAble; - - this.unsubscribe = store.subscribe(function () { - if (store.getState().currentHoverKey === hoverKey) { - _this2.setState({ hovered: true }); - } else if (_this2.state.hovered === true) { - _this2.setState({ hovered: false }); - } - }); - - this.setRowHeight(); - if (treeType) { - this.setRowParentIndex(); - } - }; - - /** - * 事件初始化 - */ - - - /** - * 事件移除,提供性能以及内存泄漏等问题。 - */ - - - /** - * 事件绑定和移除函数 - */ - TableRow.prototype.eventListen = function eventListen(events, type, eventSource) { - for (var i = 0; i < events.length; i++) { - var _event = events[i]; - if (type === "remove") { - _utils.EventUtil.removeHandler(eventSource, _event.key, _event.fun); - } else { - _utils.EventUtil.addHandler(eventSource, _event.key, _event.fun); - } - } - }; - - /** - * 开始调整交换列的事件 - */ - - - /** - * 在一个拖动过程中,释放鼠标键时触发此事件。【目标事件】 - * @memberof TableHeader - */ - - - /** - * 获取当前触摸的Dom节点 - */ - - - /** - * 开始调整交换行的事件 - */ - - - /** - * 手指移开时触发 - */ - - - /** - *同步当前拖拽到阴影 - * @memberof TableRow - */ - - - /** - * 同步自己,也需要同步当前行的行显示 - */ - - - /** - * 设置同步的style - */ - - - TableRow.prototype.componentDidUpdate = function componentDidUpdate(prevProps) { - var _props2 = this.props, - rowDraggAble = _props2.rowDraggAble, - syncRowHeight = _props2.syncRowHeight; - - if (!this.event) { - this.event = true; - if (rowDraggAble) { - this.initEvent(); - } - } - if (this.props.treeType) { - this.setRowParentIndex(); - } - if (syncRowHeight) { - this.setRowHeight(); - } - }; - - TableRow.prototype.componentWillUnmount = function componentWillUnmount() { - var _props3 = this.props, - record = _props3.record, - onDestroy = _props3.onDestroy, - index = _props3.index, - rowDraggAble = _props3.rowDraggAble; - - onDestroy(record, index); - if (this.unsubscribe) { - this.unsubscribe(); - } - if (rowDraggAble) { - this.removeDragAbleEvent(); - } - }; - - TableRow.prototype.setRowHeight = function setRowHeight() { - var _props4 = this.props, - setRowHeight = _props4.setRowHeight, - _props4$expandedConte = _props4.expandedContentHeight, - expandedContentHeight = _props4$expandedConte === undefined ? 0 : _props4$expandedConte, - fixed = _props4.fixed, - fixedIndex = _props4.fixedIndex; - - if (!setRowHeight || !this.element || fixed) return; - setRowHeight(this.element.clientHeight + expandedContentHeight, fixedIndex); - }; - - TableRow.prototype.setRowParentIndex = function setRowParentIndex() { - var _props5 = this.props, - index = _props5.index, - setRowParentIndex = _props5.setRowParentIndex, - fixedIndex = _props5.fixedIndex, - rootIndex = _props5.rootIndex; - - setRowParentIndex(rootIndex < 0 ? index : rootIndex, fixedIndex); - }; - - TableRow.prototype.onRowClick = function onRowClick(event) { - // fix: 解决 onRowClick 回调函数中,事件对象属性均为 null 的问题 - // 异步访问事件属性 - // 调用 event.persist() 会从事件池中移除该合成函数并允许对该合成事件的引用被保留下来。 - event.persist(); - var _props6 = this.props, - record = _props6.record, - index = _props6.index, - onRowClick = _props6.onRowClick, - expandable = _props6.expandable, - expandRowByClick = _props6.expandRowByClick, - expanded = _props6.expanded, - onExpand = _props6.onExpand, - fixedIndex = _props6.fixedIndex, - onRowDoubleClick = _props6.onRowDoubleClick; - - if (expandable && expandRowByClick) { - onExpand(!expanded, record, fixedIndex, event); - } - if (!onRowDoubleClick) { - onRowClick(record, fixedIndex, event); - return; - } - this.set(function (e) { - onRowClick(record, fixedIndex, event); - }); - }; - - TableRow.prototype.onRowDoubleClick = function onRowDoubleClick(event) { - var _props7 = this.props, - record = _props7.record, - index = _props7.index, - onRowDoubleClick = _props7.onRowDoubleClick, - fixedIndex = _props7.fixedIndex; - - this.clear(); - onRowDoubleClick && onRowDoubleClick(record, fixedIndex, event); - }; - - TableRow.prototype.onMouseEnter = function onMouseEnter(e) { - var _props8 = this.props, - onHover = _props8.onHover, - hoverKey = _props8.hoverKey, - fixedIndex = _props8.fixedIndex, - syncHover = _props8.syncHover, - record = _props8.record; - - if (syncHover) { - this.setState({ hovered: true }); - } - onHover(true, hoverKey, e, fixedIndex, record); - }; - - TableRow.prototype.onMouseLeave = function onMouseLeave(e) { - var _props9 = this.props, - onHover = _props9.onHover, - hoverKey = _props9.hoverKey, - fixedIndex = _props9.fixedIndex, - syncHover = _props9.syncHover, - record = _props9.record; - - if (syncHover) { - this.setState({ hovered: false }); - } - onHover(false, hoverKey, e, fixedIndex, record); - }; - - TableRow.prototype.render = function render() { - var _props10 = this.props, - clsPrefix = _props10.clsPrefix, - columns = _props10.columns, - record = _props10.record, - height = _props10.height, - visible = _props10.visible, - index = _props10.index, - onPaste = _props10.onPaste, - expandIconColumnIndex = _props10.expandIconColumnIndex, - expandIconAsCell = _props10.expandIconAsCell, - expanded = _props10.expanded, - useDragHandle = _props10.useDragHandle, - rowDraggAble = _props10.rowDraggAble, - expandable = _props10.expandable, - onExpand = _props10.onExpand, - needIndentSpaced = _props10.needIndentSpaced, - indent = _props10.indent, - indentSize = _props10.indentSize, - isHiddenExpandIcon = _props10.isHiddenExpandIcon, - fixed = _props10.fixed, - bodyDisplayInRow = _props10.bodyDisplayInRow, - expandedIcon = _props10.expandedIcon, - collapsedIcon = _props10.collapsedIcon, - hoverKey = _props10.hoverKey, - lazyStartIndex = _props10.lazyStartIndex, - lazyEndIndex = _props10.lazyEndIndex, - expandIconCellWidth = _props10.expandIconCellWidth; - - var showSum = false; - var className = this.props.className; - - if (this.state.hovered) { - className += ' ' + clsPrefix + '-hover'; - } - //判断是否为合计行 - if (className.indexOf('sumrow') > -1) { - showSum = true; - } - var cells = []; - - var expandIcon = _react2['default'].createElement(_ExpandIcon2['default'], { - expandable: expandable, - clsPrefix: clsPrefix, - onExpand: onExpand, - needIndentSpaced: needIndentSpaced, - expanded: expanded, - record: record, - expandedIcon: expandedIcon, - collapsedIcon: collapsedIcon, - isHiddenExpandIcon: isHiddenExpandIcon - }); - var isExpandIconAsCell = expandIconAsCell ? clsPrefix + '-expand-columns-in-body' : ''; - var expandIndexInThisTable; - if (this.props.fixed === 'right') { - expandIndexInThisTable = expandIconColumnIndex - this.props.leftColumnsLength - this.props.centerColumnsLength; - } else { - expandIndexInThisTable = expandIconColumnIndex; - } - for (var i = 0; i < columns.length; i++) { - if (expandIconAsCell && i === 0) { - showSum ? cells.push(_react2['default'].createElement('td', { width: expandIconCellWidth })) : cells.push(_react2['default'].createElement( - 'td', - { - className: clsPrefix + '-expand-icon-cell ' + isExpandIconAsCell, - key: 'rc-table-expand-icon-cell-' + i, - width: expandIconCellWidth - }, - expandIcon - )); - } - // bugfix 设置expandRowByClick,无法显示箭头,去掉 expandRowByClick 判断 - var isColumnHaveExpandIcon = expandIconAsCell || showSum ? false : i === expandIndexInThisTable; - cells.push(_react2['default'].createElement(_TableCell2['default'], { - clsPrefix: clsPrefix, - record: record, - indentSize: indentSize, - indent: indent, - index: index, - column: columns[i], - key: index + "_" + (columns[i].key || columns[i].dataIndex || i), - fixed: fixed, - showSum: showSum, - expandIcon: isColumnHaveExpandIcon ? expandIcon : null, - bodyDisplayInRow: bodyDisplayInRow, - lazyStartIndex: lazyStartIndex, - lazyEndIndex: lazyEndIndex, - onPaste: onPaste, - col: i - })); - } - var style = _extends({ height: height }, record ? record.style : undefined); - if (!visible) { - style.display = 'none'; - } - if (record && record._checked) { - className += ' selected'; - } - return _react2['default'].createElement( - 'tr', - { - draggable: rowDraggAble && !useDragHandle, - onClick: this.onRowClick, - onDoubleClick: this.onRowDoubleClick, - onMouseEnter: this.onMouseEnter, - onMouseLeave: this.onMouseLeave, - className: clsPrefix + ' ' + className + ' ' + clsPrefix + '-level-' + indent, - style: style, - 'data-row-key': record && record.key ? record.key : hoverKey - // key={hoverKey} - , ref: this.bindElement - }, - cells.length > 0 ? cells : _react2['default'].createElement('td', { style: { width: 0, padding: 0 } }) - ); - }; - - return TableRow; - }(_react.Component); - - ; - - TableRow.propTypes = propTypes; - TableRow.defaultProps = defaultProps; - - exports['default'] = TableRow; - module.exports = exports['default']; - -/***/ }), -/* 273 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.Event = exports.EventUtil = exports.tryParseInt = undefined; - - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - - exports.measureScrollbar = measureScrollbar; - exports.debounce = debounce; - exports.warningOnce = warningOnce; - exports.getOffset = getOffset; - exports.addClass = addClass; - exports.removeClass = removeClass; - exports.ObjectAssign = ObjectAssign; - exports.closest = closest; - exports.getMaxColChildrenLength = getMaxColChildrenLength; - exports.getColChildrenLength = getColChildrenLength; - exports.DicimalFormater = DicimalFormater; - exports.checkDicimalInvalid = checkDicimalInvalid; - exports.formatMoney = formatMoney; - exports.convertListToTree = convertListToTree; - - var _warning = __webpack_require__(32); - - var _warning2 = _interopRequireDefault(_warning); - - var _parseInt = __webpack_require__(274); - - var _parseInt2 = _interopRequireDefault(_parseInt); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - - var scrollbarSize = void 0; - - // Measure scrollbar width for padding body during modal show/hide - var scrollbarMeasure = { - position: 'absolute', - top: '-9999px', - width: '50px', - height: '50px', - overflow: 'scroll' - }; - - function measureScrollbar() { - var direction = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'vertical'; - - - if (typeof document === 'undefined' || typeof window === 'undefined') { - return 0; - } - var tableDom = document.querySelector('.u-table'); - var currentDom = tableDom ? tableDom : document.body; - - if (scrollbarSize) { - return scrollbarSize; - } - var scrollDiv = document.createElement('div'); - Object.keys(scrollbarMeasure).forEach(function (scrollProp) { - scrollDiv.style[scrollProp] = scrollbarMeasure[scrollProp]; - }); - currentDom.appendChild(scrollDiv); - var size = 0; - if (direction === 'vertical') { - size = scrollDiv.offsetWidth - scrollDiv.clientWidth; - } else if (direction === 'horizontal') { - size = scrollDiv.offsetHeight - scrollDiv.clientHeight; - } - - currentDom.removeChild(scrollDiv); - scrollbarSize = size; - return scrollbarSize; - } - - function debounce(func, wait, immediate) { - var timeout = void 0; - return function debounceFunc() { - var context = this; - var args = arguments; - // https://fb.me/react-event-pooling - if (args[0] && args[0].persist) { - args[0].persist(); - } - var later = function later() { - timeout = null; - if (!immediate) { - func.apply(context, args); - } - }; - var callNow = immediate && !timeout; - clearTimeout(timeout); - timeout = setTimeout(later, wait); - if (callNow) { - func.apply(context, args); - } - }; - } - - var warned = {}; - function warningOnce(condition, format, args) { - if (!warned[format]) { - (0, _warning2['default'])(condition, format, args); - warned[format] = true; - } - } - function getOffset(Node, offset) { - if (!offset) { - offset = {}; - offset.top = 0; - offset.left = 0; - } - if (Node == document.body) { - return offset; - } - offset.top += Node.offsetTop; - offset.left += Node.offsetLeft; - if (Node.offsetParent) return getOffset(Node.offsetParent, offset);else return offset; - }; - - var tryParseInt = exports.tryParseInt = function tryParseInt(value) { - var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; - - var resultValue = (0, _parseInt2['default'])(value); - - if (isNaN(resultValue)) { - return defaultValue; - } - return resultValue; - }; - - function addClass(elm, className) { - if (!className) return; - - var els = Array.isArray(elm) ? elm : [elm]; - - els.forEach(function (el) { - if (el.classList) { - el.classList.add(className.split(' ')); - } else { - el.className += ' ' + className; - } - }); - } - - function removeClass(elm, className) { - if (!className) return; - - var els = Array.isArray(elm) ? elm : [elm]; - - els.forEach(function (el) { - if (el.classList) { - el.classList.remove(className.split(' ')); - } else { - el.className = el.className.replace(new RegExp('(^|\\b)' + className.split(' ').join('|') + '(\\b|$)', 'gi'), ' '); - } - }); - } - - /** - * 简单数组数据对象拷贝 - * @param {*} obj 要拷贝的对象 - */ - function ObjectAssign(obj) { - var b = obj instanceof Array; - var tagObj = b ? [] : {}; - if (b) { - //数组 - obj.forEach(function (da) { - var _da = {}; - _extends(_da, da); - tagObj.push(_da); - }); - } else { - _extends(tagObj, obj); - } - return tagObj; - } - /** - * 获取某个父元素 - * */ - - function closest(ele, selector) { - var matches = ele.matches || ele.webkitMatchesSelector || ele.mozMatchesSelector || ele.msMatchesSelector; - if (matches) { - while (ele) { - if (matches.call(ele, selector)) { - return ele; - } else { - ele = ele.parentElement; - } - } - } - return null; - } - - function getMaxColChildrenLength(columns) { - var arr = []; - arr = columns.map(function (item, index) { - var chilrenLen = 0; - if (item.children) { - chilrenLen = getColChildrenLength(item.children, chilrenLen + 1); - } - return chilrenLen; - }); - var max = Math.max.apply(null, arr); - return max; - } - - function getColChildrenLength(columns, chilrenLen) { - columns.forEach(function (item, index) { - if (item.children) { - chilrenLen = getColChildrenLength(item.children, chilrenLen + 1); - } - }); - return chilrenLen; - } - - function addHandler(element, type, handler) { - var event = null; - if (element.addEventListener) { - //检测是否为DOM2级方法 - event = element.addEventListener(type, handler, false); - } else if (element.attachEvent) { - //检测是否为IE级方法 - event = element.attachEvent("on" + type, handler); - } else { - //检测是否为DOM0级方法 - event = element["on" + type] = handler; - } - return event; - } - - function removeHandler(element, type, handler) { - if (element && element.removeEventListener) { - //element&& ie11报错兼容 - element.removeEventListener(type, handler, false); - } else if (element && element.detachEvent) { - element.detachEvent("on" + type, handler); - } else if (element) { - element["on" + type] = null; - } - } - - //获取事件对象的兼容性写法 - function getEvent(event) { - return event ? event : window.event; - } - - //获取事件对象目标的兼容性写法 - function getTarget(event) { - return event.target || event.srcElement; - } - - function preventDefault(event) { - if (event.preventDefault) { - event.preventDefault(); - } else { - event.returnValue = false; - } - } - - function stopPropagation(event) { - if (event.stopPropagation) { - event.stopPropagation(); - } else { - event.cancelBubble = true; - } - } - - //用事件冒泡方式,如果想兼容事件捕获只需要添加个bool参数 - var EventUtil = exports.EventUtil = { - addHandler: function addHandler(element, type, handler) { - if (element.addEventListener) { - element.addEventListener(type, handler, false); - } else if (element.attachEvent) { - element.attachEvent('on' + type, handler); - } else { - element['on' + type] = handler; - } - }, - - removeHandler: function removeHandler(element, type, handler) { - //element&& ie11报错兼容 - if (element && element.removeEventListener) { - element.removeEventListener(type, handler, false); - } else if (element && element.detachEvent) { - element.detachEvent('on' + type, handler); - } else if (element) { - element['on' + type] = null; - } - } - - /* - * 处理精度 - */ - };function DicimalFormater(value, precision) { - var value = value + '', - precision = precision ? precision : 0; - for (var i = 0; i < value.length; i++) { - if ("-0123456789.".indexOf(value.charAt(i)) == -1) return ""; - } - return checkDicimalInvalid(value, precision); - }; - function checkDicimalInvalid(value, precision) { - if (value == null || isNaN(value)) return ""; - // 浮点数总位数不能超过10位 - var digit = parseFloat(value); - var result = (digit * Math.pow(10, precision) / Math.pow(10, precision)).toFixed(precision); - if (result == "NaN") return ""; - return result; - }; - - /** - * 将数值转化为货币类型 - * @param {*} number 数值 - * @param {*} places 精度 - * @param {*} thousand 是否展示千分位 - */ - function formatMoney(number, places, thousand) { - number = number || 0; - places = !isNaN(places = Math.abs(places)) ? places : 2; - var thousandSymbol = thousand ? "," : ''; - var negative = number < 0 ? "-" : ""; - var i = (0, _parseInt2['default'])(number = Math.abs(+number || 0).toFixed(places), 10) + ""; - var j = (j = i.length) > 3 ? j % 3 : 0; - return negative + (j ? i.substr(0, j) + thousandSymbol : "") + i.substr(j).replace(/(\d{3})(?=\d)/g, "$1" + thousandSymbol) + (places ? '.' + Math.abs(number - i).toFixed(places).slice(2) : ""); - } - - var Event = exports.Event = { - addHandler: addHandler, - removeHandler: removeHandler, - getEvent: getEvent, - getTarget: getTarget, - preventDefault: preventDefault, - stopPropagation: stopPropagation - - /** - * 将一维数组转换为树结构 - * @param {*} treeData 扁平结构的 List 数组 - * @param {*} attr 属性配置设置 - * @param {*} flatTreeKeysMap 存储所有 key-value 的映射,方便获取各节点信息 - */ - };function convertListToTree(treeData, attr, flatTreeKeysMap) { - var tree = []; //存储所有一级节点 - var resData = treeData, - //resData 存储截取的节点 + 父节点(除一级节点外) - resKeysMap = {}, - //resData 的Map映射 - treeKeysMap = {}; //tree 的Map映射 - resData.map(function (element) { - var key = attr.id; - resKeysMap[element[key]] = element; - }); - // 查找父节点,为了补充不完整的数据结构 - var findParentNode = function findParentNode(node) { - var parentKey = node[attr.parendId]; - if (parentKey !== attr.rootId) { - //如果不是根节点,则继续递归 - var item = flatTreeKeysMap[parentKey]; - // 用 resKeysMap 判断,避免重复计算某节点的父节点 - if (resKeysMap.hasOwnProperty(item[attr.id])) return; - resData.unshift(item); - resKeysMap[item[attr.id]] = item; - findParentNode(item); - } else { - // 用 treeKeysMap 判断,避免重复累加 - if (!treeKeysMap.hasOwnProperty(node[attr.id])) { - var key = node.key, - title = node.title, - children = node.children, - _isLeaf = node._isLeaf, - otherProps = _objectWithoutProperties(node, ['key', 'title', 'children', '_isLeaf']); - - var obj = { - key: key, - title: title, - _isLeaf: _isLeaf, - children: [] - }; - tree.push(_extends(obj, _extends({}, otherProps))); - treeKeysMap[key] = node; - } - } - }; - // 遍历 resData ,找到所有的一级节点 - for (var i = 0; i < resData.length; i++) { - var item = resData[i]; - if (item[attr.parendId] === attr.rootId && !treeKeysMap.hasOwnProperty(item[attr.id])) { - //如果是根节点,就存放进 tree 对象中 - var key = item.key, - title = item.title, - children = item.children, - otherProps = _objectWithoutProperties(item, ['key', 'title', 'children']); - - var obj = { - key: item[attr.id], - _isLeaf: item[attr._isLeaf], - children: [] - }; - tree.push(_extends(obj, _extends({}, otherProps))); - treeKeysMap[key] = item; - resData.splice(i, 1); - i--; - } else { - //递归查找根节点信息 - findParentNode(item); - } - } - // console.log('resData',resKeysMap); - var run = function run(treeArrs) { - if (resData.length > 0) { - for (var _i = 0; _i < treeArrs.length; _i++) { - for (var j = 0; j < resData.length; j++) { - var _item = resData[j]; - if (treeArrs[_i].key === _item[attr.parendId]) { - var _key = _item.key, - _title = _item.title, - _children = _item.children, - _otherProps = _objectWithoutProperties(_item, ['key', 'title', 'children']); - - var _obj = { - key: _item[attr.id], - _isLeaf: _item[attr._isLeaf], - children: [] - }; - treeArrs[_i].children.push(_extends(_obj, _extends({}, _otherProps))); - resData.splice(j, 1); - j--; - } - } - run(treeArrs[_i].children); - } - } - }; - run(tree); - return tree; - } - -/***/ }), -/* 274 */ -/***/ (function(module, exports, __webpack_require__) { - - var root = __webpack_require__(275), - toString = __webpack_require__(277); - - /** Used to match leading and trailing whitespace. */ - var reTrimStart = /^\s+/; - - /* Built-in method references for those with the same name as other `lodash` methods. */ - var nativeParseInt = root.parseInt; - - /** - * Converts `string` to an integer of the specified radix. If `radix` is - * `undefined` or `0`, a `radix` of `10` is used unless `value` is a - * hexadecimal, in which case a `radix` of `16` is used. - * - * **Note:** This method aligns with the - * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`. - * - * @static - * @memberOf _ - * @since 1.1.0 - * @category String - * @param {string} string The string to convert. - * @param {number} [radix=10] The radix to interpret `value` by. - * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. - * @returns {number} Returns the converted integer. - * @example - * - * _.parseInt('08'); - * // => 8 - * - * _.map(['6', '08', '10'], _.parseInt); - * // => [6, 8, 10] - */ - function parseInt(string, radix, guard) { - if (guard || radix == null) { - radix = 0; - } else if (radix) { - radix = +radix; - } - return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0); - } - - module.exports = parseInt; - - -/***/ }), -/* 275 */ -/***/ (function(module, exports, __webpack_require__) { - - var freeGlobal = __webpack_require__(276); - - /** Detect free variable `self`. */ - var freeSelf = typeof self == 'object' && self && self.Object === Object && self; - - /** Used as a reference to the global object. */ - var root = freeGlobal || freeSelf || Function('return this')(); - - module.exports = root; - - -/***/ }), -/* 276 */ -/***/ (function(module, exports) { - - /* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */ - var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; - - module.exports = freeGlobal; - - /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) - -/***/ }), -/* 277 */ -/***/ (function(module, exports, __webpack_require__) { - - var baseToString = __webpack_require__(278); - - /** - * Converts `value` to a string. An empty string is returned for `null` - * and `undefined` values. The sign of `-0` is preserved. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to convert. - * @returns {string} Returns the converted string. - * @example - * - * _.toString(null); - * // => '' - * - * _.toString(-0); - * // => '-0' - * - * _.toString([1, 2, 3]); - * // => '1,2,3' - */ - function toString(value) { - return value == null ? '' : baseToString(value); - } - - module.exports = toString; - - -/***/ }), -/* 278 */ -/***/ (function(module, exports, __webpack_require__) { - - var Symbol = __webpack_require__(279), - arrayMap = __webpack_require__(280), - isArray = __webpack_require__(281), - isSymbol = __webpack_require__(282); - - /** Used as references for various `Number` constants. */ - var INFINITY = 1 / 0; - - /** Used to convert symbols to primitives and strings. */ - var symbolProto = Symbol ? Symbol.prototype : undefined, - symbolToString = symbolProto ? symbolProto.toString : undefined; - - /** - * The base implementation of `_.toString` which doesn't convert nullish - * values to empty strings. - * - * @private - * @param {*} value The value to process. - * @returns {string} Returns the string. - */ - function baseToString(value) { - // Exit early for strings to avoid a performance hit in some environments. - if (typeof value == 'string') { - return value; - } - if (isArray(value)) { - // Recursively convert values (susceptible to call stack limits). - return arrayMap(value, baseToString) + ''; - } - if (isSymbol(value)) { - return symbolToString ? symbolToString.call(value) : ''; - } - var result = (value + ''); - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; - } - - module.exports = baseToString; - - -/***/ }), -/* 279 */ -/***/ (function(module, exports, __webpack_require__) { - - var root = __webpack_require__(275); - - /** Built-in value references. */ - var Symbol = root.Symbol; - - module.exports = Symbol; - - -/***/ }), -/* 280 */ -/***/ (function(module, exports) { - - /** - * A specialized version of `_.map` for arrays without support for iteratee - * shorthands. - * - * @private - * @param {Array} [array] The array to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @returns {Array} Returns the new mapped array. - */ - function arrayMap(array, iteratee) { - var index = -1, - length = array == null ? 0 : array.length, - result = Array(length); - - while (++index < length) { - result[index] = iteratee(array[index], index, array); - } - return result; - } - - module.exports = arrayMap; - - -/***/ }), -/* 281 */ -/***/ (function(module, exports) { - - /** - * Checks if `value` is classified as an `Array` object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an array, else `false`. - * @example - * - * _.isArray([1, 2, 3]); - * // => true - * - * _.isArray(document.body.children); - * // => false - * - * _.isArray('abc'); - * // => false - * - * _.isArray(_.noop); - * // => false - */ - var isArray = Array.isArray; - - module.exports = isArray; - - -/***/ }), -/* 282 */ -/***/ (function(module, exports, __webpack_require__) { - - var baseGetTag = __webpack_require__(283), - isObjectLike = __webpack_require__(286); - - /** `Object#toString` result references. */ - var symbolTag = '[object Symbol]'; - - /** - * Checks if `value` is classified as a `Symbol` primitive or object. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. - * @example - * - * _.isSymbol(Symbol.iterator); - * // => true - * - * _.isSymbol('abc'); - * // => false - */ - function isSymbol(value) { - return typeof value == 'symbol' || - (isObjectLike(value) && baseGetTag(value) == symbolTag); - } - - module.exports = isSymbol; - - -/***/ }), -/* 283 */ -/***/ (function(module, exports, __webpack_require__) { - - var Symbol = __webpack_require__(279), - getRawTag = __webpack_require__(284), - objectToString = __webpack_require__(285); - - /** `Object#toString` result references. */ - var nullTag = '[object Null]', - undefinedTag = '[object Undefined]'; - - /** Built-in value references. */ - var symToStringTag = Symbol ? Symbol.toStringTag : undefined; - - /** - * The base implementation of `getTag` without fallbacks for buggy environments. - * - * @private - * @param {*} value The value to query. - * @returns {string} Returns the `toStringTag`. - */ - function baseGetTag(value) { - if (value == null) { - return value === undefined ? undefinedTag : nullTag; - } - return (symToStringTag && symToStringTag in Object(value)) - ? getRawTag(value) - : objectToString(value); - } - - module.exports = baseGetTag; - - -/***/ }), -/* 284 */ -/***/ (function(module, exports, __webpack_require__) { - - var Symbol = __webpack_require__(279); - - /** Used for built-in method references. */ - var objectProto = Object.prototype; - - /** Used to check objects for own properties. */ - var hasOwnProperty = objectProto.hasOwnProperty; - - /** - * Used to resolve the - * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) - * of values. - */ - var nativeObjectToString = objectProto.toString; - - /** Built-in value references. */ - var symToStringTag = Symbol ? Symbol.toStringTag : undefined; - - /** - * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values. - * - * @private - * @param {*} value The value to query. - * @returns {string} Returns the raw `toStringTag`. - */ - function getRawTag(value) { - var isOwn = hasOwnProperty.call(value, symToStringTag), - tag = value[symToStringTag]; - - try { - value[symToStringTag] = undefined; - var unmasked = true; - } catch (e) {} - - var result = nativeObjectToString.call(value); - if (unmasked) { - if (isOwn) { - value[symToStringTag] = tag; - } else { - delete value[symToStringTag]; - } - } - return result; - } - - module.exports = getRawTag; - - -/***/ }), -/* 285 */ -/***/ (function(module, exports) { - - /** Used for built-in method references. */ - var objectProto = Object.prototype; - - /** - * Used to resolve the - * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) - * of values. - */ - var nativeObjectToString = objectProto.toString; - - /** - * Converts `value` to a string using `Object.prototype.toString`. - * - * @private - * @param {*} value The value to convert. - * @returns {string} Returns the converted string. - */ - function objectToString(value) { - return nativeObjectToString.call(value); - } - - module.exports = objectToString; - - -/***/ }), -/* 286 */ -/***/ (function(module, exports) { - - /** - * Checks if `value` is object-like. A value is object-like if it's not `null` - * and has a `typeof` result of "object". - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - * @example - * - * _.isObjectLike({}); - * // => true - * - * _.isObjectLike([1, 2, 3]); - * // => true - * - * _.isObjectLike(_.noop); - * // => false - * - * _.isObjectLike(null); - * // => false - */ - function isObjectLike(value) { - return value != null && typeof value == 'object'; - } - - module.exports = isObjectLike; - - -/***/ }), -/* 287 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _propTypes = __webpack_require__(6); - - var _propTypes2 = _interopRequireDefault(_propTypes); - - var _objectPath = __webpack_require__(288); - - var _objectPath2 = _interopRequireDefault(_objectPath); - - var _i18n = __webpack_require__(289); - - var _i18n2 = _interopRequireDefault(_i18n); - - var _tool = __webpack_require__(120); - - var _utils = __webpack_require__(273); - - var _beeDropdown = __webpack_require__(290); - - var _beeDropdown2 = _interopRequireDefault(_beeDropdown); - - var _beeMenus = __webpack_require__(299); - - var _beeMenus2 = _interopRequireDefault(_beeMenus); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - - var Item = _beeMenus2['default'].Item; - - var propTypes = { - record: _propTypes2['default'].object, - clsPrefix: _propTypes2['default'].string, - index: _propTypes2['default'].number, - indent: _propTypes2['default'].number, - indentSize: _propTypes2['default'].number, - column: _propTypes2['default'].object, - expandIcon: _propTypes2['default'].node, - onPaste: _propTypes2['default'].func - }; - - var TableCell = function (_Component) { - _inherits(TableCell, _Component); - - function TableCell(props) { - _classCallCheck(this, TableCell); - - var _this = _possibleConstructorReturn(this, _Component.call(this, props)); - - _this.renderLinkType = function (data, record, index) { - var config = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; - var url = config.url, - urlIndex = config.urlIndex, - linkType = config.linkType, - className = config.className, - underline = config.underline, - descIndex = config.descIndex, - desc = config.desc, - linkColor = config.linkColor; - - var linkUrl = ''; - if (url) { - linkUrl = url(data, record, index); - } else if (urlIndex) { - linkUrl = record[urlIndex]; - } - if (linkUrl) { - var link = function link() { - window.open(linkUrl, linkType || '_blank'); - }; - var cls = 'u-table-link u-table-fieldtype '; - if (className) { - cls += className + ' '; - } - if (underline) { - cls += 'u-table-link-underline '; - } - var title = ''; - - if (desc === true) { - title = linkUrl; - } else if (typeof desc === 'string') { - title = desc; - } else if (typeof desc === 'function') { - title = desc(data, record, index); - } else if (descIndex) { - title = record[descIndex]; - } - return _react2['default'].createElement( - 'span', - { onClick: link, className: cls, style: { color: linkColor || '' }, title: title }, - data - ); - } - return data; - }; - - _this.renderBoolType = function (data) { - var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - var locale = (0, _tool.getComponentLocale)(_this.props, _this.context, 'Table', function () { - return _i18n2['default']; - }); - var boolConfig = _extends({ trueText: locale['bool_true'], falseText: locale['bool_false'] }, config); - if (typeof data === 'string') { - if (data === 'false' || data === '0') { - return boolConfig.falseText; - } - } else if (!data) { - return boolConfig.falseText; - } - return boolConfig.trueText; - }; - - _this.renderNumber = function (data) { - var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - var width = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 200; - var precision = config.precision, - thousand = config.thousand, - makeUp = config.makeUp, - preSymbol = config.preSymbol, - nextSymbol = config.nextSymbol; - - var number = (0, _utils.formatMoney)(data, precision, thousand); - if (makeUp === false && number.indexOf('.') !== -1) { - number = number.replace(/0*$/, '').replace(/\.$/, ''); - } - var numberWidth = parseInt(width) - 16; // 减去默认的左右padding共计16px - var res = _react2['default'].createElement( - 'span', - { className: 'u-table-currency-number' }, - number - ); - var pre = preSymbol ? _react2['default'].createElement( - 'span', - { className: 'u-table-currency-pre' }, - preSymbol - ) : null; - var next = nextSymbol ? _react2['default'].createElement( - 'span', - { className: 'u-table-currency-next' }, - nextSymbol - ) : null; - var title = ''; - title += typeof preSymbol === 'string' ? preSymbol : ''; - title += number; - title += typeof nextSymbol === 'string' ? nextSymbol : ''; - return _react2['default'].createElement( - 'span', - { className: 'u-table-currency u-table-fieldtype', style: { width: numberWidth }, title: title }, - pre, - res, - next - ); - }; - - _this.renderDate = function (data) { - var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - var moment = config.moment, - format = config.format; - - if (!moment) return data; - return moment(data).format(format || 'YYYY-MM-DD'); - }; - - _this.renderSelect = function (data) { - var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - if (config.options) { - data = config.options[data] || config.defaultShow; - } - return data; - }; - - _this.renderColumnMenu = function (colMenu, text, record, index) { - if (!colMenu) return null; - var menu = colMenu.menu, - _colMenu$trigger = colMenu.trigger, - trigger = _colMenu$trigger === undefined ? 'hover' : _colMenu$trigger, - _colMenu$className = colMenu.className, - className = _colMenu$className === undefined ? '' : _colMenu$className, - _colMenu$icon = colMenu.icon, - icon = _colMenu$icon === undefined ? _react2['default'].createElement('i', { className: 'uf uf-3dot-h' }) : _colMenu$icon, - _colMenu$iconSize = colMenu.iconSize, - iconSize = _colMenu$iconSize === undefined ? 21 : _colMenu$iconSize; - - var items = []; - items = menu.map(function (item) { - return _react2['default'].createElement( - Item, - { key: item.key, onClick: function onClick() { - _this.onClickColMenu(item.callback, text, record, index); - } }, - item.icon, - item.text - ); - }); - if (items.length === 0) return null; - className += ' u-table-inline-op-dropdowm'; - var menus = _react2['default'].createElement( - _beeMenus2['default'], - { className: className }, - items - ); - var top = 'calc(50% - ' + iconSize / 2 + 'px)'; - var visibility = _this.state.showDropdowm ? 'visible' : ''; - var iconClassName = 'u-table-inline-op-icon u-table-inline-op-icon-hover'; - return _react2['default'].createElement( - _beeDropdown2['default'], - { - trigger: [trigger], - overlay: menus, - animation: 'slide-up', - onVisibleChange: _this.changeShowDropdowm - }, - _react2['default'].createElement( - 'span', - { className: iconClassName, style: { fontSize: iconSize, top: top, visibility: visibility } }, - icon - ) - ); - }; - - _this.changeShowDropdowm = function (val) { - _this.setState({ - showDropdowm: val - }); - }; - - _this.onClickColMenu = function (callback, text, record, index) { - if (callback) { - callback(text, record, index); - } - _this.setState({ - showDropdowm: false - }); - }; - - _this.onPaste = function (e) { - var _this$props = _this.props, - row = _this$props.index, - onPaste = _this$props.onPaste, - fixed = _this$props.fixed, - col = _this$props.col; - - var position = { - row: row, - col: col, - fixed: !!fixed - }; - onPaste(e, position); - }; - - _this.isInvalidRenderCellText = _this.isInvalidRenderCellText.bind(_this); - _this.handleClick = _this.handleClick.bind(_this); - _this.state = { - showDropdowm: false - }; - return _this; - } - - TableCell.prototype.isInvalidRenderCellText = function isInvalidRenderCellText(text) { - return text && !_react2['default'].isValidElement(text) && Object.prototype.toString.call(text) === '[object Object]'; - }; - - TableCell.prototype.handleClick = function handleClick(e) { - var _props = this.props, - record = _props.record, - onCellClick = _props.column.onCellClick; - - if (onCellClick) { - onCellClick(record, e); - } - }; - - // 渲染链接类型 - - - // 渲染布尔类型 - - - // 渲染整数/货币类型 - - - // 渲染时间类型-l - - - // 渲染下拉类型,主要为编辑表格铺垫 - - - // 渲染行内菜单 - - - // 下拉按钮状态改变,点击后保持图标常驻 - - - // 菜单点击事件 - - - TableCell.prototype.render = function render() { - var _props2 = this.props, - record = _props2.record, - indentSize = _props2.indentSize, - clsPrefix = _props2.clsPrefix, - indent = _props2.indent, - index = _props2.index, - expandIcon = _props2.expandIcon, - column = _props2.column, - fixed = _props2.fixed, - showSum = _props2.showSum, - bodyDisplayInRow = _props2.bodyDisplayInRow, - lazyStartIndex = _props2.lazyStartIndex, - lazyEndIndex = _props2.lazyEndIndex; - - var dataIndex = column.dataIndex, - render = column.render, - fieldType = column.fieldType, - linkConfig = column.linkConfig, - fontColor = column.fontColor, - bgColor = column.bgColor, - other = _objectWithoutProperties(column, ['dataIndex', 'render', 'fieldType', 'linkConfig', 'fontColor', 'bgColor']); - - var _column$className = column.className, - className = _column$className === undefined ? '' : _column$className; - - - var text = _objectPath2['default'].get(record, dataIndex); - var tdProps = void 0; - var colSpan = void 0; - var rowSpan = void 0, - title = void 0; - - if (render && !showSum) { - text = render(text, record, index, _extends({ - dataIndex: dataIndex, render: render, fieldType: fieldType, linkConfig: linkConfig, fontColor: fontColor, bgColor: bgColor }, other)); - if (this.isInvalidRenderCellText(text)) { - tdProps = text.props || {}; - rowSpan = tdProps.rowSpan > lazyEndIndex && lazyEndIndex > 5 ? lazyEndIndex - index : tdProps.rowSpan; - colSpan = tdProps.colSpan; - text = text.children; - } - } - - var colMenu = this.renderColumnMenu(column.cellMenu, text, record, index); - // 根据 fieldType 来渲染数据 - if (!render) { - switch (column.fieldType) { - case 'link': - { - text = this.renderLinkType(text, record, index, column.linkConfig); - break; - } - case 'bool': - { - text = this.renderBoolType(text, column.boolConfig); - break; - } - case 'currency': - { - var config = { - precision: 2, // 精度值,需要大于0 - thousand: true, // 是否显示千分符号 - makeUp: true, // 末位是否补零 - preSymbol: '', // 前置符号 - nextSymbol: '' // 后置符号 - }; - text = this.renderNumber(text, _extends({}, config, column.currencyConfig), column.width); - break; - } - case 'number': - { - var _config = { - precision: 0, // 精度值,需要大于0 - thousand: true, // 是否显示千分符号 - makeUp: false, // 末位是否补零 - preSymbol: '', // 前置符号 - nextSymbol: '' // 后置符号 - }; - text = this.renderNumber(text, _extends({}, _config, column.numberConfig), column.width); - break; - } - case 'date': - { - text = this.renderDate(text, column.dateConfig); - break; - } - case 'select': - { - text = this.renderSelect(text, column.selectConfig); - break; - } - default: - { - break; - } - } - } - - if (this.isInvalidRenderCellText(text)) { - text = null; - } - - var indentText = expandIcon ? _react2['default'].createElement('span', { - style: { paddingLeft: indentSize * indent + 'px' }, - className: clsPrefix + '-indent indent-level-' + indent - }) : null; - - if (lazyStartIndex !== index && (rowSpan === 0 || colSpan === 0)) { - return null; - } - if (tdProps && tdProps.mergeEndIndex && index < tdProps.mergeEndIndex && rowSpan === 0) { - rowSpan = tdProps.mergeEndIndex - index; - text = ''; - } - //不是固定表格并且当前列是固定,则隐藏当前列 - if (column.fixed && !fixed) { - className = className + (' ' + clsPrefix + '-fixed-columns-in-body'); - } - if (column.contentAlign) { - className = className + (' text-' + column.contentAlign); - } else if (column.textAlign) { - className = className + (' text-' + column.textAlign); - } - if ((typeof text == 'string' || typeof text === 'number') && bodyDisplayInRow) { - title = text; - } - if (expandIcon && expandIcon.props.expandable) { - className = className + (' ' + clsPrefix + '-has-expandIcon'); - } - if (colMenu) { - className += ' u-table-inline-icon'; - } - if (colSpan == 0) return null; - return _react2['default'].createElement( - 'td', - { - draggable: column.draggable, - colSpan: colSpan, - rowSpan: rowSpan, - className: className, - onClick: this.handleClick, - title: title, - onPaste: this.onPaste, - style: _extends({ maxWidth: column.width, color: fontColor, backgroundColor: bgColor }, column.style) }, - indentText, - expandIcon, - text, - colMenu - ); - }; - - return TableCell; - }(_react.Component); - - ; - - TableCell.propTypes = propTypes; - - exports['default'] = TableCell; - module.exports = exports['default']; - -/***/ }), -/* 288 */ -/***/ (function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (root, factory){ - 'use strict'; - - /*istanbul ignore next:cant test*/ - if (typeof module === 'object' && typeof module.exports === 'object') { - module.exports = factory(); - } else if (true) { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else { - // Browser globals - root.objectPath = factory(); - } - })(this, function(){ - 'use strict'; - - var toStr = Object.prototype.toString; - function hasOwnProperty(obj, prop) { - if(obj == null) { - return false - } - //to handle objects with null prototypes (too edge case?) - return Object.prototype.hasOwnProperty.call(obj, prop) - } - - function isEmpty(value){ - if (!value) { - return true; - } - if (isArray(value) && value.length === 0) { - return true; - } else if (typeof value !== 'string') { - for (var i in value) { - if (hasOwnProperty(value, i)) { - return false; - } - } - return true; - } - return false; - } - - function toString(type){ - return toStr.call(type); - } - - function isObject(obj){ - return typeof obj === 'object' && toString(obj) === "[object Object]"; - } - - var isArray = Array.isArray || function(obj){ - /*istanbul ignore next:cant test*/ - return toStr.call(obj) === '[object Array]'; - } - - function isBoolean(obj){ - return typeof obj === 'boolean' || toString(obj) === '[object Boolean]'; - } - - function getKey(key){ - var intKey = parseInt(key); - if (intKey.toString() === key) { - return intKey; - } - return key; - } - - function factory(options) { - options = options || {} - - var objectPath = function(obj) { - return Object.keys(objectPath).reduce(function(proxy, prop) { - if(prop === 'create') { - return proxy; - } - - /*istanbul ignore else*/ - if (typeof objectPath[prop] === 'function') { - proxy[prop] = objectPath[prop].bind(objectPath, obj); - } - - return proxy; - }, {}); - }; - - function hasShallowProperty(obj, prop) { - return (options.includeInheritedProps || (typeof prop === 'number' && Array.isArray(obj)) || hasOwnProperty(obj, prop)) - } - - function getShallowProperty(obj, prop) { - if (hasShallowProperty(obj, prop)) { - return obj[prop]; - } - } - - function set(obj, path, value, doNotReplace){ - if (typeof path === 'number') { - path = [path]; - } - if (!path || path.length === 0) { - return obj; - } - if (typeof path === 'string') { - return set(obj, path.split('.').map(getKey), value, doNotReplace); - } - var currentPath = path[0]; - var currentValue = getShallowProperty(obj, currentPath); - if (path.length === 1) { - if (currentValue === void 0 || !doNotReplace) { - obj[currentPath] = value; - } - return currentValue; - } - - if (currentValue === void 0) { - //check if we assume an array - if(typeof path[1] === 'number') { - obj[currentPath] = []; - } else { - obj[currentPath] = {}; - } - } - - return set(obj[currentPath], path.slice(1), value, doNotReplace); - } - - objectPath.has = function (obj, path) { - if (typeof path === 'number') { - path = [path]; - } else if (typeof path === 'string') { - path = path.split('.'); - } - - if (!path || path.length === 0) { - return !!obj; - } - - for (var i = 0; i < path.length; i++) { - var j = getKey(path[i]); - - if((typeof j === 'number' && isArray(obj) && j < obj.length) || - (options.includeInheritedProps ? (j in Object(obj)) : hasOwnProperty(obj, j))) { - obj = obj[j]; - } else { - return false; - } - } - - return true; - }; - - objectPath.ensureExists = function (obj, path, value){ - return set(obj, path, value, true); - }; - - objectPath.set = function (obj, path, value, doNotReplace){ - return set(obj, path, value, doNotReplace); - }; - - objectPath.insert = function (obj, path, value, at){ - var arr = objectPath.get(obj, path); - at = ~~at; - if (!isArray(arr)) { - arr = []; - objectPath.set(obj, path, arr); - } - arr.splice(at, 0, value); - }; - - objectPath.empty = function(obj, path) { - if (isEmpty(path)) { - return void 0; - } - if (obj == null) { - return void 0; - } - - var value, i; - if (!(value = objectPath.get(obj, path))) { - return void 0; - } - - if (typeof value === 'string') { - return objectPath.set(obj, path, ''); - } else if (isBoolean(value)) { - return objectPath.set(obj, path, false); - } else if (typeof value === 'number') { - return objectPath.set(obj, path, 0); - } else if (isArray(value)) { - value.length = 0; - } else if (isObject(value)) { - for (i in value) { - if (hasShallowProperty(value, i)) { - delete value[i]; - } - } - } else { - return objectPath.set(obj, path, null); - } - }; - - objectPath.push = function (obj, path /*, values */){ - var arr = objectPath.get(obj, path); - if (!isArray(arr)) { - arr = []; - objectPath.set(obj, path, arr); - } - - arr.push.apply(arr, Array.prototype.slice.call(arguments, 2)); - }; - - objectPath.coalesce = function (obj, paths, defaultValue) { - var value; - - for (var i = 0, len = paths.length; i < len; i++) { - if ((value = objectPath.get(obj, paths[i])) !== void 0) { - return value; - } - } - - return defaultValue; - }; - - objectPath.get = function (obj, path, defaultValue){ - if (typeof path === 'number') { - path = [path]; - } - if (!path || path.length === 0) { - return obj; - } - if (obj == null) { - return defaultValue; - } - if (typeof path === 'string') { - return objectPath.get(obj, path.split('.'), defaultValue); - } - - var currentPath = getKey(path[0]); - var nextObj = getShallowProperty(obj, currentPath) - if (nextObj === void 0) { - return defaultValue; - } - - if (path.length === 1) { - return nextObj; - } - - return objectPath.get(obj[currentPath], path.slice(1), defaultValue); - }; - - objectPath.del = function del(obj, path) { - if (typeof path === 'number') { - path = [path]; - } - - if (obj == null) { - return obj; - } - - if (isEmpty(path)) { - return obj; - } - if(typeof path === 'string') { - return objectPath.del(obj, path.split('.')); - } - - var currentPath = getKey(path[0]); - if (!hasShallowProperty(obj, currentPath)) { - return obj; - } - - if(path.length === 1) { - if (isArray(obj)) { - obj.splice(currentPath, 1); - } else { - delete obj[currentPath]; - } - } else { - return objectPath.del(obj[currentPath], path.slice(1)); - } - - return obj; - } - - return objectPath; - } - - var mod = factory(); - mod.create = factory; - mod.withInheritedProps = factory({includeInheritedProps: true}) - return mod; - }); - - -/***/ }), -/* 289 */ -/***/ (function(module, exports) { - - 'use strict'; - - module.exports = { - 'lang': 'zh-cn', - 'resetSettings': '还原设置', - 'include': '包含', - 'exclusive': '不包含', - 'equal': '等于', - 'unequal': '不等于', - 'begin': '以开始', - 'end': '以结尾', - 'greater_than': '大于', - 'great_than_equal_to': '大于等于', - 'less_than': '小于', - 'less_than_equal_to': '小于等于', - 'be_equal_to': '等于', - 'not_equal_to': '不等于', - "no_data": '暂无数据', - "bool_true": "是", - "bool_false": "否", - 'en-us': { - 'resetSettings': 'Reset', - 'include': 'Include', - 'exclusive': 'Not include', - 'equal': 'Equal to', - 'unequal': 'Not equal to', - 'begin': 'Begin with', - 'end': 'End with', - 'greater_than': 'Greater than', - 'great_than_equal_to': 'Greater than or equal to', - 'less_than': 'Less than', - 'less_than_equal_to': 'Less than or equal to', - 'be_equal_to': 'Equal to', - 'not_equal_to': 'Not equal to', - "no_data": 'No data', - "bool_true": "true", - "bool_false": "false" - }, - 'zh-tw': { - 'resetSettings': '還原設置', - 'include': '包含', - 'exclusive': '不包含', - 'equal': '等於', - 'unequal': '不等於', - 'begin': '以開始', - 'end': '以結尾', - 'greater_than': '大於', - 'great_than_equal_to': '大於等於', - 'less_than': '小於', - 'less_than_equal to': '小於等於', - 'be_equal_to': '等於', - 'not_equal_to': '不等於', - "no_data": '暫無數據', - "bool_true": "是", - "bool_false": "否" - } - }; - -/***/ }), -/* 290 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _Dropdown = __webpack_require__(291); - - var _Dropdown2 = _interopRequireDefault(_Dropdown); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - - exports["default"] = _Dropdown2["default"]; - module.exports = exports['default']; - -/***/ }), -/* 291 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _reactDom = __webpack_require__(2); - - var _reactDom2 = _interopRequireDefault(_reactDom); - - var _trigger = __webpack_require__(292); - - var _trigger2 = _interopRequireDefault(_trigger); - - var _placement = __webpack_require__(298); - - var _placement2 = _interopRequireDefault(_placement); - - var _propTypes = __webpack_require__(6); - - var _propTypes2 = _interopRequireDefault(_propTypes); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** - * This source code is quoted from rc-dropdown. - * homepage: https://github.com/react-component/dropdown - */ - - - var propTypes = { - minOverlayWidthMatchTrigger: _propTypes2["default"].bool, - onVisibleChange: _propTypes2["default"].func, - clsPrefix: _propTypes2["default"].string, - children: _propTypes2["default"].any, - transitionName: _propTypes2["default"].string, - overlayClassName: _propTypes2["default"].string, - animation: _propTypes2["default"].any, - align: _propTypes2["default"].object, - overlayStyle: _propTypes2["default"].object, - placement: _propTypes2["default"].string, - trigger: _propTypes2["default"].array, - showAction: _propTypes2["default"].array, - hideAction: _propTypes2["default"].array, - getPopupContainer: _propTypes2["default"].func - }; - - var defaultProps = { - minOverlayWidthMatchTrigger: true, - clsPrefix: 'u-dropdown', - trigger: ['hover'], - showAction: [], - hideAction: [], - overlayClassName: '', - overlayStyle: {}, - defaultVisible: false, - onVisibleChange: function onVisibleChange() {}, - - placement: 'bottomLeft' - }; - - var jadgeState = function jadgeState(props) { - if ('visible' in props) { - return props.visible; - } - return props.defaultVisible; - }; - - var Dropdown = function (_React$Component) { - _inherits(Dropdown, _React$Component); - - function Dropdown(props) { - _classCallCheck(this, Dropdown); - - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); - - _this.state = { - visible: jadgeState(_this.props) - }; - _this.onClick = _this.onClick.bind(_this); - _this.onVisibleChange = _this.onVisibleChange.bind(_this); - _this.getMenuElement = _this.getMenuElement.bind(_this); - _this.getPopupDomNode = _this.getPopupDomNode.bind(_this); - _this.afterVisibleChange = _this.afterVisibleChange.bind(_this); - - return _this; - } - - Dropdown.prototype.componentWillReceiveProps = function componentWillReceiveProps(_ref) { - var visible = _ref.visible; - - if (visible !== undefined) { - this.setState({ - visible: visible - }); - } - }; - - Dropdown.prototype.onClick = function onClick(e) { - var props = this.props; - var overlayProps = props.overlay.props; - // do no call onVisibleChange, if you need click to hide, use onClick and control visible - if (!('visible' in props)) { - this.setState({ - visible: false - }); - } - if (overlayProps.onClick) { - overlayProps.onClick(e); - } - }; - - Dropdown.prototype.onVisibleChange = function onVisibleChange(visible) { - var props = this.props; - if (!('visible' in props)) { - this.setState({ - visible: visible - }); - } - props.onVisibleChange(visible); - }; - - Dropdown.prototype.getMenuElement = function getMenuElement() { - var _props = this.props, - overlay = _props.overlay, - clsPrefix = _props.clsPrefix; - - - return _react2["default"].cloneElement(overlay, { - prefixCls: clsPrefix + '-menu', - onClick: this.onClick - }); - }; - - Dropdown.prototype.getPopupDomNode = function getPopupDomNode() { - return this.refs.trigger.getPopupDomNode(); - }; - - Dropdown.prototype.afterVisibleChange = function afterVisibleChange(visible) { - if (visible && this.props.minOverlayWidthMatchTrigger) { - var overlayNode = this.getPopupDomNode(); - var rootNode = _reactDom2["default"].findDOMNode(this); - if (rootNode.offsetWidth > overlayNode.offsetWidth) { - overlayNode.style['min-width'] = rootNode.offsetWidth + 'px'; - } - } - }; - - Dropdown.prototype.render = function render() { - var _props2 = this.props, - clsPrefix = _props2.clsPrefix, - children = _props2.children, - transitionName = _props2.transitionName, - animation = _props2.animation, - align = _props2.align, - placement = _props2.placement, - getPopupContainer = _props2.getPopupContainer, - showAction = _props2.showAction, - hideAction = _props2.hideAction, - overlayClassName = _props2.overlayClassName, - overlayStyle = _props2.overlayStyle, - trigger = _props2.trigger, - getDocument = _props2.getDocument, - disabled = _props2.disabled, - delay = _props2.delay, - delayShow = _props2.delayShow, - delayHide = _props2.delayHide, - props = _objectWithoutProperties(_props2, ['clsPrefix', 'children', 'transitionName', 'animation', 'align', 'placement', 'getPopupContainer', 'showAction', 'hideAction', 'overlayClassName', 'overlayStyle', 'trigger', 'getDocument', 'disabled', 'delay', 'delayShow', 'delayHide']); - - return _react2["default"].createElement( - _trigger2["default"], - _extends({}, props, { - clsPrefix: clsPrefix, - ref: 'trigger', - popupClassName: overlayClassName, - popupStyle: overlayStyle, - builtinPlacements: _placement2["default"], - action: trigger, - showAction: showAction, - hideAction: hideAction, - popupPlacement: placement, - popupAlign: align, - popupTransitionName: transitionName, - popupAnimation: animation, - popupVisible: disabled ? false : this.state.visible, - afterPopupVisibleChange: this.afterVisibleChange, - popup: this.getMenuElement(), - onPopupVisibleChange: this.onVisibleChange, - getPopupContainer: getPopupContainer, - getDocument: getDocument, - mouseEnterDelay: delayShow && delayShow / 1000 || delay && delay / 1000, - mouseLeaveDelay: delayHide && delayHide / 1000 || delay && delay / 1000 - }), - children - ); - }; - - return Dropdown; - }(_react2["default"].Component); - - ; - - Dropdown.propTypes = propTypes; - Dropdown.defaultProps = defaultProps; - - exports["default"] = Dropdown; - module.exports = exports['default']; - -/***/ }), -/* 292 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - module.exports = __webpack_require__(293); - -/***/ }), -/* 293 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _propTypes = __webpack_require__(6); - - var _propTypes2 = _interopRequireDefault(_propTypes); - - var _reactDom = __webpack_require__(2); - - var _reactDom2 = _interopRequireDefault(_reactDom); - - var _contains = __webpack_require__(99); - - var _contains2 = _interopRequireDefault(_contains); - - var _tinperBeeCore = __webpack_require__(27); - - var _Popup = __webpack_require__(294); - - var _Popup2 = _interopRequireDefault(_Popup); - - var _utils = __webpack_require__(297); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** - * This source code is quoted from rc-trigger. - * homepage: https://github.com/react-component/trigger - */ - - - //import getContainerRenderMixin from './getContainerRenderMixin'; - - function noop() {} - - function returnEmptyString() { - return ''; - } - - var ALL_HANDLERS = ['onClick', 'onMouseDown', 'onTouchStart', 'onMouseEnter', 'onMouseLeave', 'onFocus', 'onBlur']; - - var propTypes = { - children: _propTypes2["default"].any, - action: _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].arrayOf(_propTypes2["default"].string)]), - showAction: _propTypes2["default"].any, - hideAction: _propTypes2["default"].any, - getPopupClassNameFromAlign: _propTypes2["default"].any, - onPopupVisibleChange: _propTypes2["default"].func, - afterPopupVisibleChange: _propTypes2["default"].func, - popup: _propTypes2["default"].oneOfType([_propTypes2["default"].node, _propTypes2["default"].func]).isRequired, - popupStyle: _propTypes2["default"].object, - clsPrefix: _propTypes2["default"].string, - popupClassName: _propTypes2["default"].string, - popupPlacement: _propTypes2["default"].string, - builtinPlacements: _propTypes2["default"].object, - popupTransitionName: _propTypes2["default"].string, - popupAnimation: _propTypes2["default"].any, - mouseEnterDelay: _propTypes2["default"].number, - mouseLeaveDelay: _propTypes2["default"].number, - zIndex: _propTypes2["default"].number, - focusDelay: _propTypes2["default"].number, - blurDelay: _propTypes2["default"].number, - getPopupContainer: _propTypes2["default"].func, - destroyPopupOnHide: _propTypes2["default"].bool, - mask: _propTypes2["default"].bool, - maskClosable: _propTypes2["default"].bool, - onPopupAlign: _propTypes2["default"].func, - popupAlign: _propTypes2["default"].object, - popupVisible: _propTypes2["default"].bool, - maskTransitionName: _propTypes2["default"].string, - maskAnimation: _propTypes2["default"].string, - getDocument: _propTypes2["default"].func, //获得点击消失的document对象,适用于getPopupContainer渲染到非当前document情况,例如iframe - popData: _propTypes2["default"].object //弹窗层自定义属性 - }; - - var defaultProps = { - clsPrefix: 'rc-trigger-popup', - getPopupClassNameFromAlign: returnEmptyString, - onPopupVisibleChange: noop, - afterPopupVisibleChange: noop, - onPopupAlign: noop, - popupClassName: '', - mouseEnterDelay: 0, - mouseLeaveDelay: 0.1, - focusDelay: 0, - blurDelay: 0.15, - popupStyle: {}, - destroyPopupOnHide: false, - popupAlign: {}, - defaultPopupVisible: false, - mask: false, - maskClosable: true, - action: [], - showAction: [], - hideAction: [], - getDocument: function getDocument() { - return document; - }, - popData: {} - }; - - var Trigger = function (_Component) { - _inherits(Trigger, _Component); - - function Trigger(props) { - _classCallCheck(this, Trigger); - - var _this = _possibleConstructorReturn(this, _Component.call(this, props)); - - _this.getDocument = function () { - var doc = document; - if (_this.props.getDocument) doc = _this.props.getDocument(); - return doc; - }; - - _this.bindDocument = function () { - var doc = document; - if (_this.props.getDocument) { - doc = _this.props.getDocument(); - } - if (Array.isArray(doc)) { - var doc1 = doc[0]; - var doc2 = doc[1]; - _this.clickOutsideHandler = (0, _tinperBeeCore.addEventListener)(doc1, 'mousedown', _this.onDocumentClick); - _this.touchOutsideHandler = (0, _tinperBeeCore.addEventListener)(doc1, 'touchstart', _this.onDocumentClick); - _this.mouseWheelOutsideHandler = (0, _tinperBeeCore.addEventListener)(doc1, 'mousewheel', _this.onDocumentClick); - _this.clickOutsideHandlerIframe = (0, _tinperBeeCore.addEventListener)(doc2, 'mousedown', _this.onDocumentClick); - _this.touchOutsideHandlerIframe = (0, _tinperBeeCore.addEventListener)(doc2, 'touchstart', _this.onDocumentClick); - _this.mouseWheelOutsideHandlerIframe = (0, _tinperBeeCore.addEventListener)(doc2, 'mousewheel', _this.onDocumentClick); - } else { - _this.clickOutsideHandler = (0, _tinperBeeCore.addEventListener)(doc, 'mousedown', _this.onDocumentClick); - _this.touchOutsideHandler = (0, _tinperBeeCore.addEventListener)(doc, 'touchstart', _this.onDocumentClick); - _this.mouseWheelOutsideHandler = (0, _tinperBeeCore.addEventListener)(doc, 'mousewheel', _this.onDocumentClick); - } - }; - - _this.removeDocument = function () { - var doc = document; - if (_this.props.getDocument) { - doc = _this.props.getDocument(); - } - if (Array.isArray(doc)) { - _this.clickOutsideHandler.remove(); - _this.touchOutsideHandler.remove(); - _this.mouseWheelOutsideHandler.remove(); - _this.clickOutsideHandlerIframe.remove(); - _this.touchOutsideHandlerIframe.remove(); - _this.mouseWheelOutsideHandlerIframe.remove(); - _this.clickOutsideHandler = null; - _this.touchOutsideHandler = null; - _this.mouseWheelOutsideHandler = null; - _this.clickOutsideHandlerIframe = null; - _this.touchOutsideHandlerIframe = null; - _this.mouseWheelOutsideHandlerIframe = null; - } else { - _this.clickOutsideHandler.remove(); - _this.touchOutsideHandler.remove(); - _this.mouseWheelOutsideHandler.remove(); - _this.clickOutsideHandler = null; - _this.touchOutsideHandler = null; - _this.mouseWheelOutsideHandler = null; - } - }; - - _this.state = { - popupVisible: !!_this.props.popupVisible || _this.props.defaultPopupVisible - //this.removeContainer = this.removeContainer.bind(this); - };_this.getContainer = _this.getContainer.bind(_this); - _this.renderComponent = _this.renderComponent.bind(_this); - _this.isVisible = _this.isVisible.bind(_this); - - _this.onMouseEnter = _this.onMouseEnter.bind(_this); - _this.onMouseLeave = _this.onMouseLeave.bind(_this); - _this.onPopupMouseEnter = _this.onPopupMouseEnter.bind(_this); - _this.onPopupMouseLeave = _this.onPopupMouseLeave.bind(_this); - _this.onFocus = _this.onFocus.bind(_this); - - _this.onMouseDown = _this.onMouseDown.bind(_this); - _this.onTouchStart = _this.onTouchStart.bind(_this); - _this.onBlur = _this.onBlur.bind(_this); - _this.onDocumentClick = _this.onDocumentClick.bind(_this); - _this.getPopupDomNode = _this.getPopupDomNode.bind(_this); - - _this.getRootDomNode = _this.getRootDomNode.bind(_this); - _this.getPopupClassNameFromAlign = _this.getPopupClassNameFromAlign.bind(_this); - _this.getPopupAlign = _this.getPopupAlign.bind(_this); - _this.getComponent = _this.getComponent.bind(_this); - _this.setPopupVisible = _this.setPopupVisible.bind(_this); - - _this.delaySetPopupVisible = _this.delaySetPopupVisible.bind(_this); - _this.clearDelayTimer = _this.clearDelayTimer.bind(_this); - _this.createTwoChains = _this.createTwoChains.bind(_this); - _this.isClickToShow = _this.isClickToShow.bind(_this); - _this.isClickToHide = _this.isClickToHide.bind(_this); - - _this.isMouseEnterToShow = _this.isMouseEnterToShow.bind(_this); - _this.isMouseLeaveToHide = _this.isMouseLeaveToHide.bind(_this); - _this.isFocusToShow = _this.isFocusToShow.bind(_this); - _this.isBlurToHide = _this.isBlurToHide.bind(_this); - _this.forcePopupAlign = _this.forcePopupAlign.bind(_this); - - _this.fireEvents = _this.fireEvents.bind(_this); - _this.close = _this.close.bind(_this); - _this.onClick = _this.onClick.bind(_this); - return _this; - } - - Trigger.prototype.isVisible = function isVisible(instance) { - return instance.state.popupVisible; - }; - - Trigger.prototype.getContainer = function getContainer(instance) { - var popupContainer = document.createElement('div'); - var mountNode = instance.props.getPopupContainer ? instance.props.getPopupContainer((0, _reactDom.findDOMNode)(instance)) : document.body; - mountNode.appendChild(popupContainer); - return popupContainer; - }; - - Trigger.prototype.renderComponent = function renderComponent(instance, componentArg, ready) { - if (instance._component || this.isVisible(instance)) { - if (!instance._container) { - instance._container = this.getContainer(instance); - } - var component = instance.getComponent(componentArg); - _reactDom2["default"].unstable_renderSubtreeIntoContainer(instance, component, instance._container, function callback() { - instance._component = this; - if (ready) { - ready.call(this); - } - }); - } - }; - - Trigger.prototype.componentWillMount = function componentWillMount() { - var _this2 = this; - - this.mounted = false; - ALL_HANDLERS.forEach(function (h) { - _this2['fire' + h] = function (e) { - _this2.fireEvents(h, e); - }; - }); - }; - - Trigger.prototype.componentDidMount = function componentDidMount() { - this.mounted = true; - this.componentDidUpdate({}, { - popupVisible: this.state.popupVisible - }); - }; - - Trigger.prototype.componentWillReceiveProps = function componentWillReceiveProps(_ref) { - var popupVisible = _ref.popupVisible; - - if (popupVisible !== undefined) { - this.setState({ - popupVisible: popupVisible - }); - } - }; - - Trigger.prototype.componentDidUpdate = function componentDidUpdate(_, prevState) { - var props = this.props; - var state = this.state; - this.renderComponent(this, null, function () { - if (prevState.popupVisible !== state.popupVisible) { - props.afterPopupVisibleChange(state.popupVisible); - } - }); - if (this.isClickToHide()) { - if (state.popupVisible) { - if (!this.clickOutsideHandler) { - this.bindDocument(); - } - return; - } - } - if (this.clickOutsideHandler) { - this.removeDocument(); - } - }; - - Trigger.prototype.componentWillUnmount = function componentWillUnmount() { - this.clearDelayTimer(); - if (this.clickOutsideHandler) { - this.removeDocument(); - } - if (this._container) { - _reactDom2["default"].unmountComponentAtNode(this._container); - } - - //this.removeContainer(); - }; - - Trigger.prototype.onMouseEnter = function onMouseEnter(e) { - this.fireEvents('onMouseEnter', e); - this.delaySetPopupVisible(true, this.props.mouseEnterDelay); - }; - - Trigger.prototype.onMouseLeave = function onMouseLeave(e) { - this.fireEvents('onMouseLeave', e); - this.delaySetPopupVisible(false, this.props.mouseLeaveDelay); - }; - - Trigger.prototype.onPopupMouseEnter = function onPopupMouseEnter() { - this.clearDelayTimer(); - }; - - Trigger.prototype.onPopupMouseLeave = function onPopupMouseLeave(e) { - // https://github.com/react-component/trigger/pull/13 - // react bug? - if (e.relatedTarget && !e.relatedTarget.setTimeout && this._component && (0, _contains2["default"])(this._component.getPopupDomNode(), e.relatedTarget)) { - return; - } - this.delaySetPopupVisible(false, this.props.mouseLeaveDelay); - }; - - Trigger.prototype.onFocus = function onFocus(e) { - this.fireEvents('onFocus', e); - // incase focusin and focusout - this.clearDelayTimer(); - if (this.isFocusToShow()) { - this.focusTime = Date.now(); - this.delaySetPopupVisible(true, this.props.focusDelay); - } - }; - - Trigger.prototype.onMouseDown = function onMouseDown(e) { - this.fireEvents('onMouseDown', e); - this.preClickTime = Date.now(); - }; - - Trigger.prototype.onTouchStart = function onTouchStart(e) { - this.fireEvents('onTouchStart', e); - this.preTouchTime = Date.now(); - }; - - Trigger.prototype.onBlur = function onBlur(e) { - this.fireEvents('onBlur', e); - this.clearDelayTimer(); - if (this.isBlurToHide()) { - this.delaySetPopupVisible(false, this.props.blurDelay); - } - }; - - Trigger.prototype.onClick = function onClick(event) { - this.fireEvents('onClick', event); - // focus will trigger click - if (this.focusTime) { - var preTime = void 0; - if (this.preClickTime && this.preTouchTime) { - preTime = Math.min(this.preClickTime, this.preTouchTime); - } else if (this.preClickTime) { - preTime = this.preClickTime; - } else if (this.preTouchTime) { - preTime = this.preTouchTime; - } - if (Math.abs(preTime - this.focusTime) < 20) { - return; - } - this.focusTime = 0; - } - this.preClickTime = 0; - this.preTouchTime = 0; - event.preventDefault(); - var nextVisible = !this.state.popupVisible; - if (this.isClickToHide() && !nextVisible || nextVisible && this.isClickToShow()) { - this.setPopupVisible(!this.state.popupVisible); - } - }; - - Trigger.prototype.onDocumentClick = function onDocumentClick(event) { - if (this.props.mask && !this.props.maskClosable) { - return; - } - var target = event.target; - var root = (0, _reactDom.findDOMNode)(this); - var popupNode = this.getPopupDomNode(); - if (!(0, _contains2["default"])(root, target) && !(0, _contains2["default"])(popupNode, target)) { - this.close(); - } - }; - - Trigger.prototype.getPopupDomNode = function getPopupDomNode() { - // for test - if (this._component) { - return this.mounted ? this._component.getPopupDomNode() : null; - } - return null; - }; - - Trigger.prototype.getRootDomNode = function getRootDomNode() { - return _reactDom2["default"].findDOMNode(this); - }; - - Trigger.prototype.getPopupClassNameFromAlign = function getPopupClassNameFromAlign(align) { - var className = []; - var props = this.props; - var popupPlacement = props.popupPlacement, - builtinPlacements = props.builtinPlacements, - clsPrefix = props.clsPrefix; - - if (popupPlacement && builtinPlacements) { - className.push((0, _utils.getPopupClassNameFromAlign)(builtinPlacements, clsPrefix, align)); - } - if (props.getPopupClassNameFromAlign) { - className.push(props.getPopupClassNameFromAlign(align)); - } - return className.join(' '); - }; - - Trigger.prototype.getPopupAlign = function getPopupAlign() { - var props = this.props; - var popupPlacement = props.popupPlacement, - popupAlign = props.popupAlign, - builtinPlacements = props.builtinPlacements; - - if (popupPlacement && builtinPlacements) { - return (0, _utils.getAlignFromPlacement)(builtinPlacements, popupPlacement, popupAlign); - } - return popupAlign; - }; - - Trigger.prototype.getComponent = function getComponent() { - var props = this.props, - state = this.state; - - var mouseProps = {}; - if (this.isMouseEnterToShow()) { - mouseProps.onMouseEnter = this.onPopupMouseEnter; - } - if (this.isMouseLeaveToHide()) { - mouseProps.onMouseLeave = this.onPopupMouseLeave; - } - return _react2["default"].createElement( - _Popup2["default"], - _extends({ - clsPrefix: props.clsPrefix, - destroyPopupOnHide: props.destroyPopupOnHide, - visible: state.popupVisible, - className: props.popupClassName, - action: props.action, - align: this.getPopupAlign(), - onAlign: props.onPopupAlign, - animation: props.popupAnimation, - getClassNameFromAlign: this.getPopupClassNameFromAlign - }, mouseProps, { - getRootDomNode: this.getRootDomNode, - style: props.popupStyle, - mask: props.mask, - zIndex: props.zIndex, - transitionName: props.popupTransitionName, - maskAnimation: props.maskAnimation, - maskTransitionName: props.maskTransitionName, - popData: props.popData - }), - typeof props.popup === 'function' ? props.popup() : props.popup - ); - }; - - Trigger.prototype.setPopupVisible = function setPopupVisible(popupVisible) { - this.clearDelayTimer(); - if (this.state.popupVisible !== popupVisible) { - if (!('popupVisible' in this.props)) { - this.setState({ - popupVisible: popupVisible - }); - } - this.props.onPopupVisibleChange(popupVisible); - } - }; - - Trigger.prototype.delaySetPopupVisible = function delaySetPopupVisible(visible, delayS) { - var _this3 = this; - - var delay = delayS * 1000; - this.clearDelayTimer(); - if (delay) { - this.delayTimer = setTimeout(function () { - _this3.setPopupVisible(visible); - _this3.clearDelayTimer(); - }, delay); - } else { - this.setPopupVisible(visible); - } - }; - - Trigger.prototype.clearDelayTimer = function clearDelayTimer() { - if (this.delayTimer) { - clearTimeout(this.delayTimer); - this.delayTimer = null; - } - }; - - Trigger.prototype.createTwoChains = function createTwoChains(event) { - var childPros = this.props.children.props; - var props = this.props; - if (childPros[event] && props[event]) { - return this['fire' + event]; - } - return childPros[event] || props[event]; - }; - - Trigger.prototype.isClickToShow = function isClickToShow() { - var _props = this.props, - action = _props.action, - showAction = _props.showAction; - - return action.indexOf('click') !== -1 || showAction.indexOf('click') !== -1; - }; - - Trigger.prototype.isClickToHide = function isClickToHide() { - var _props2 = this.props, - action = _props2.action, - hideAction = _props2.hideAction; - - return action.indexOf('click') !== -1 || hideAction.indexOf('click') !== -1; - }; - - Trigger.prototype.isMouseEnterToShow = function isMouseEnterToShow() { - var _props3 = this.props, - action = _props3.action, - showAction = _props3.showAction; - - return action.indexOf('hover') !== -1 || showAction.indexOf('mouseEnter') !== -1; - }; - - Trigger.prototype.isMouseLeaveToHide = function isMouseLeaveToHide() { - var _props4 = this.props, - action = _props4.action, - hideAction = _props4.hideAction; - - return action.indexOf('hover') !== -1 || hideAction.indexOf('mouseLeave') !== -1; - }; - - Trigger.prototype.isFocusToShow = function isFocusToShow() { - var _props5 = this.props, - action = _props5.action, - showAction = _props5.showAction; - - return action.indexOf('focus') !== -1 || showAction.indexOf('focus') !== -1; - }; - - Trigger.prototype.isBlurToHide = function isBlurToHide() { - var _props6 = this.props, - action = _props6.action, - hideAction = _props6.hideAction; - - return action.indexOf('focus') !== -1 || hideAction.indexOf('blur') !== -1; - }; - - Trigger.prototype.forcePopupAlign = function forcePopupAlign() { - if (this.state.popupVisible && this.popupInstance && this.popupInstance.alignInstance) { - this.popupInstance.alignInstance.forceAlign(); - } - }; - - Trigger.prototype.fireEvents = function fireEvents(type, e) { - var childCallback = this.props.children.props[type]; - if (childCallback) { - childCallback(e); - } - var callback = this.props[type]; - if (callback) { - callback(e); - } - }; - - Trigger.prototype.close = function close() { - this.setPopupVisible(false); - }; - - Trigger.prototype.render = function render() { - var props = this.props; - var children = props.children; - var child = _react2["default"].Children.only(children); - var newChildProps = {}; - - if (this.isClickToHide() || this.isClickToShow()) { - newChildProps.onClick = this.onClick; - newChildProps.onMouseDown = this.onMouseDown; - newChildProps.onTouchStart = this.onTouchStart; - } else { - newChildProps.onClick = this.createTwoChains('onClick'); - newChildProps.onMouseDown = this.createTwoChains('onMouseDown'); - newChildProps.onTouchStart = this.createTwoChains('onTouchStart'); - } - if (this.isMouseEnterToShow()) { - newChildProps.onMouseEnter = this.onMouseEnter; - } else { - newChildProps.onMouseEnter = this.createTwoChains('onMouseEnter'); - } - if (this.isMouseLeaveToHide()) { - newChildProps.onMouseLeave = this.onMouseLeave; - } else { - newChildProps.onMouseLeave = this.createTwoChains('onMouseLeave'); - } - if (this.isFocusToShow() || this.isBlurToHide()) { - newChildProps.onFocus = this.onFocus; - newChildProps.onBlur = this.onBlur; - } else { - newChildProps.onFocus = this.createTwoChains('onFocus'); - newChildProps.onBlur = this.createTwoChains('onBlur'); - } - return _react2["default"].cloneElement(child, newChildProps); - }; - - return Trigger; - }(_react.Component); - - ; - - Trigger.propTypes = propTypes; - Trigger.defaultProps = defaultProps; - exports["default"] = Trigger; - module.exports = exports['default']; - -/***/ }), -/* 294 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _propTypes = __webpack_require__(6); - - var _propTypes2 = _interopRequireDefault(_propTypes); - - var _reactDom = __webpack_require__(2); - - var _reactDom2 = _interopRequireDefault(_reactDom); - - var _Align = __webpack_require__(50); - - var _Align2 = _interopRequireDefault(_Align); - - var _beeAnimate = __webpack_require__(57); - - var _beeAnimate2 = _interopRequireDefault(_beeAnimate); - - var _PopupInner = __webpack_require__(295); - - var _PopupInner2 = _interopRequireDefault(_PopupInner); - - var _LazyRenderBox = __webpack_require__(296); - - var _LazyRenderBox2 = _interopRequireDefault(_LazyRenderBox); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** - * This source code is quoted from rc-trigger. - * homepage: https://github.com/react-component/trigger - */ - - - var propTypes = { - visible: _propTypes2["default"].bool, - style: _propTypes2["default"].object, - getClassNameFromAlign: _propTypes2["default"].func, - onAlign: _propTypes2["default"].func, - getRootDomNode: _propTypes2["default"].func, - onMouseEnter: _propTypes2["default"].func, - align: _propTypes2["default"].any, - destroyPopupOnHide: _propTypes2["default"].bool, - className: _propTypes2["default"].string, - clsPrefix: _propTypes2["default"].string, - onMouseLeave: _propTypes2["default"].func - }; - - var Popup = function (_Component) { - _inherits(Popup, _Component); - - function Popup() { - _classCallCheck(this, Popup); - - var _this = _possibleConstructorReturn(this, _Component.call(this)); - - _this.onAlign = _this.onAlign.bind(_this); - _this.getPopupDomNode = _this.getPopupDomNode.bind(_this); - _this.getTarget = _this.getTarget.bind(_this); - _this.getMaskTransitionName = _this.getMaskTransitionName.bind(_this); - _this.getTransitionName = _this.getTransitionName.bind(_this); - _this.getClassName = _this.getClassName.bind(_this); - _this.getPopupElement = _this.getPopupElement.bind(_this); - _this.getZIndexStyle = _this.getZIndexStyle.bind(_this); - _this.getMaskElement = _this.getMaskElement.bind(_this); - _this.saveAlign = _this.saveAlign.bind(_this); - return _this; - } - - Popup.prototype.componentDidMount = function componentDidMount() { - this.rootNode = this.getPopupDomNode(); - }; - - Popup.prototype.onAlign = function onAlign(popupDomNode, align) { - var props = this.props; - var alignClassName = props.getClassNameFromAlign(props.align); - var currentAlignClassName = props.getClassNameFromAlign(align); - if (alignClassName !== currentAlignClassName) { - this.currentAlignClassName = currentAlignClassName; - popupDomNode.className = this.getClassName(currentAlignClassName); - } - props.onAlign(popupDomNode, align); - }; - - Popup.prototype.getPopupDomNode = function getPopupDomNode() { - return _reactDom2["default"].findDOMNode(this.refs.popup); - }; - - Popup.prototype.getTarget = function getTarget() { - return this.props.getRootDomNode(); - }; - - Popup.prototype.getMaskTransitionName = function getMaskTransitionName() { - var props = this.props; - var transitionName = props.maskTransitionName; - var animation = props.maskAnimation; - if (!transitionName && animation) { - transitionName = props.clsPrefix + '-' + animation; - } - return transitionName; - }; - - Popup.prototype.getTransitionName = function getTransitionName() { - var props = this.props; - var transitionName = props.transitionName; - if (!transitionName && props.animation) { - transitionName = props.clsPrefix + '-' + props.animation; - } - return transitionName; - }; - - Popup.prototype.getClassName = function getClassName(currentAlignClassName) { - return this.props.clsPrefix + ' ' + this.props.className + ' ' + currentAlignClassName; - }; - - Popup.prototype.getPopupElement = function getPopupElement() { - var props = this.props; - var align = props.align, - style = props.style, - visible = props.visible, - clsPrefix = props.clsPrefix, - destroyPopupOnHide = props.destroyPopupOnHide; - - var className = this.getClassName(this.currentAlignClassName || props.getClassNameFromAlign(align)); - var hiddenClassName = clsPrefix + '-hidden'; - if (!visible) { - this.currentAlignClassName = null; - } - var newStyle = _extends({}, style, this.getZIndexStyle()); - var popupInnerProps = { - className: className, - clsPrefix: clsPrefix, - ref: 'popup', - onMouseEnter: props.onMouseEnter, - onMouseLeave: props.onMouseLeave, - style: newStyle, - popData: props.popData - }; - if (destroyPopupOnHide) { - return _react2["default"].createElement( - _beeAnimate2["default"], - { - component: '', - exclusive: true, - transitionAppear: true, - transitionName: this.getTransitionName() - }, - visible ? _react2["default"].createElement( - _Align2["default"], - { - target: this.getTarget, - key: 'popup', - ref: this.saveAlign, - monitorWindowResize: true, - align: align, - onAlign: this.onAlign - }, - _react2["default"].createElement( - _PopupInner2["default"], - _extends({ - visible: true - }, popupInnerProps), - props.children - ) - ) : null - ); - } - return _react2["default"].createElement( - _beeAnimate2["default"], - { - component: '', - exclusive: true, - transitionAppear: true, - transitionName: this.getTransitionName(), - showProp: 'xVisible' - }, - _react2["default"].createElement( - _Align2["default"], - { - target: this.getTarget, - key: 'popup', - ref: this.saveAlign, - monitorWindowResize: true, - xVisible: visible, - childrenProps: { visible: 'xVisible' }, - disabled: !visible, - align: align, - onAlign: this.onAlign - }, - _react2["default"].createElement( - _PopupInner2["default"], - _extends({ - hiddenClassName: hiddenClassName - }, popupInnerProps), - props.children - ) - ) - ); - }; - - Popup.prototype.getZIndexStyle = function getZIndexStyle() { - var style = {}; - var props = this.props; - if (props.zIndex !== undefined) { - style.zIndex = props.zIndex; - } - return style; - }; - - Popup.prototype.getMaskElement = function getMaskElement() { - var props = this.props; - var maskElement = void 0; - if (props.mask) { - var maskTransition = this.getMaskTransitionName(); - maskElement = _react2["default"].createElement(_LazyRenderBox2["default"], { - style: this.getZIndexStyle(), - key: 'mask', - className: props.clsPrefix + '-mask', - hiddenClassName: props.clsPrefix + '-mask-hidden', - visible: props.visible - }); - if (maskTransition) { - maskElement = _react2["default"].createElement( - _beeAnimate2["default"], - { - key: 'mask', - showProp: 'visible', - transitionAppear: true, - component: '', - transitionName: maskTransition - }, - maskElement - ); - } - } - return maskElement; - }; - - Popup.prototype.saveAlign = function saveAlign(align) { - this.alignInstance = align; - }; - - Popup.prototype.render = function render() { - return _react2["default"].createElement( - 'div', - null, - this.getMaskElement(), - this.getPopupElement() - ); - }; - - return Popup; - }(_react.Component); - - ; - - Popup.propTypes = propTypes; - exports["default"] = Popup; - module.exports = exports['default']; - -/***/ }), -/* 295 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _propTypes = __webpack_require__(6); - - var _propTypes2 = _interopRequireDefault(_propTypes); - - var _LazyRenderBox = __webpack_require__(296); - - var _LazyRenderBox2 = _interopRequireDefault(_LazyRenderBox); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** - * This source code is quoted from rc-trigger. - * homepage: https://github.com/react-component/trigger - */ - - - var propTypes = { - hiddenClassName: _propTypes2["default"].string, - className: _propTypes2["default"].string, - clsPrefix: _propTypes2["default"].string, - onMouseEnter: _propTypes2["default"].func, - onMouseLeave: _propTypes2["default"].func, - children: _propTypes2["default"].any - }; - - var PopupInner = function (_Component) { - _inherits(PopupInner, _Component); - - function PopupInner() { - _classCallCheck(this, PopupInner); - - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } - - PopupInner.prototype.render = function render() { - var props = this.props; - var className = props.className; - if (!props.visible) { - className += ' ' + props.hiddenClassName; - } - return _react2["default"].createElement( - 'div', - _extends({}, props.popData, { - className: className, - onMouseEnter: props.onMouseEnter, - onMouseLeave: props.onMouseLeave, - style: props.style - }), - _react2["default"].createElement( - _LazyRenderBox2["default"], - { className: props.clsPrefix + '-content', visible: props.visible }, - props.children - ) - ); - }; - - return PopupInner; - }(_react.Component); - - ; - - PopupInner.propTypes = propTypes; - exports["default"] = PopupInner; - module.exports = exports['default']; - -/***/ }), -/* 296 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _propTypes = __webpack_require__(6); - - var _propTypes2 = _interopRequireDefault(_propTypes); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** - * This source code is quoted from rc-trigger. - * homepage: https://github.com/react-component/trigger - */ - - - var propTypes = { - children: _propTypes2["default"].any, - className: _propTypes2["default"].string, - visible: _propTypes2["default"].bool, - hiddenClassName: _propTypes2["default"].string - }; - - var LazyRenderBox = function (_Component) { - _inherits(LazyRenderBox, _Component); - - function LazyRenderBox() { - _classCallCheck(this, LazyRenderBox); - - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } - - LazyRenderBox.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) { - return nextProps.hiddenClassName || nextProps.visible; - }; - - LazyRenderBox.prototype.render = function render() { - var _props = this.props, - hiddenClassName = _props.hiddenClassName, - visible = _props.visible, - props = _objectWithoutProperties(_props, ['hiddenClassName', 'visible']); - - if (hiddenClassName || _react2["default"].Children.count(props.children) > 1) { - if (!visible && hiddenClassName) { - props.className += ' ' + hiddenClassName; - } - return _react2["default"].createElement('div', props); - } - - return _react2["default"].Children.only(props.children); - }; - - return LazyRenderBox; - }(_react.Component); - - ; - LazyRenderBox.propTypes = propTypes; - - exports["default"] = LazyRenderBox; - module.exports = exports['default']; - -/***/ }), -/* 297 */ -/***/ (function(module, exports) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - - exports.getAlignFromPlacement = getAlignFromPlacement; - exports.getPopupClassNameFromAlign = getPopupClassNameFromAlign; - function isPointsEq(a1, a2) { - return a1[0] === a2[0] && a1[1] === a2[1]; - } - - function getAlignFromPlacement(builtinPlacements, placementStr, align) { - var baseAlign = builtinPlacements[placementStr] || {}; - return _extends({}, baseAlign, align); - } - - function getPopupClassNameFromAlign(builtinPlacements, clsPrefix, align) { - var points = align.points; - for (var placement in builtinPlacements) { - if (builtinPlacements.hasOwnProperty(placement)) { - if (isPointsEq(builtinPlacements[placement].points, points)) { - return clsPrefix + '-placement-' + placement; - } - } - } - return ''; - } - -/***/ }), -/* 298 */ -/***/ (function(module, exports) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - var autoAdjustOverflow = { - adjustX: 1, - adjustY: 1 - }; - - var targetOffset = [0, 0]; - - var placements = exports.placements = { - topLeft: { - points: ['bl', 'tl'], - overflow: autoAdjustOverflow, - offset: [0, -4], - targetOffset: targetOffset - }, - topCenter: { - points: ['bc', 'tc'], - overflow: autoAdjustOverflow, - offset: [0, -4], - targetOffset: targetOffset - }, - topRight: { - points: ['br', 'tr'], - overflow: autoAdjustOverflow, - offset: [0, -4], - targetOffset: targetOffset - }, - bottomLeft: { - points: ['tl', 'bl'], - overflow: autoAdjustOverflow, - offset: [0, 4], - targetOffset: targetOffset - }, - bottomCenter: { - points: ['tc', 'bc'], - overflow: autoAdjustOverflow, - offset: [0, 4], - targetOffset: targetOffset - }, - bottomRight: { - points: ['tr', 'br'], - overflow: autoAdjustOverflow, - offset: [0, 4], - targetOffset: targetOffset - } - }; - - exports["default"] = placements; - -/***/ }), -/* 299 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _VerticalMenu = __webpack_require__(300); - - var _VerticalMenu2 = _interopRequireDefault(_VerticalMenu); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - - exports["default"] = _VerticalMenu2["default"]; - module.exports = exports['default']; - -/***/ }), -/* 300 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _ExportMenu = __webpack_require__(301); - - var _ExportMenu2 = _interopRequireDefault(_ExportMenu); - - var _openAnimation = __webpack_require__(390); - - var _openAnimation2 = _interopRequireDefault(_openAnimation); - - var _warning = __webpack_require__(391); - - var _warning2 = _interopRequireDefault(_warning); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - - var Menu = function (_React$Component) { - _inherits(Menu, _React$Component); - - function Menu(props) { - _classCallCheck(this, Menu); - - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); - - _this.handleClick = function (e) { - _this.setOpenKeys([]); - - var onClick = _this.props.onClick; - if (onClick) { - onClick(e); - } - }; - - _this.handleOpenChange = function (openKeys) { - _this.setOpenKeys(openKeys); - - var onOpenChange = _this.props.onOpenChange; - if (onOpenChange) { - onOpenChange(openKeys); - } - }; - - (0, _warning2["default"])(!('onOpen' in props || 'onClose' in props), '`onOpen` and `onClose` are removed, please use `onOpenChange` instead.'); - - _this.state = { - openKeys: [] - }; - _this.rcMenu = {}; - return _this; - } - - Menu.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - if (this.props.mode === 'inline' && nextProps.mode !== 'inline') { - this.switchModeFromInline = true; - } - if ('openKeys' in nextProps) { - this.setOpenKeys(nextProps.openKeys); - } - }; - - Menu.prototype.setOpenKeys = function setOpenKeys(openKeys) { - if (!('openKeys' in this.props)) { - this.setState({ openKeys: openKeys }); - } - }; - - Menu.prototype.render = function render() { - var _this2 = this; - - var openAnimation = this.props.openAnimation || this.props.openTransitionName; - if (!openAnimation) { - switch (this.props.mode) { - case 'horizontal': - openAnimation = ''; - break; - case 'vertical': - // When mode switch from inline - // submenu should hide without animation - if (this.switchModeFromInline) { - openAnimation = _openAnimation2["default"]; - this.switchModeFromInline = false; - } else { - openAnimation = 'zoom-big'; - } - break; - case 'inline': - openAnimation = _openAnimation2["default"]; - break; - default: - } - } - - var props = {}; - var className = this.props.className + ' ' + this.props.prefixCls + '-' + this.props.theme; - if (this.props.mode !== 'inline') { - // 这组属性的目的是 - // 弹出型的菜单需要点击后立即关闭 - // 另外,弹出型的菜单的受控模式没有使用场景 - props = { - openKeys: this.state.openKeys, - onClick: this.handleClick, - onOpenChange: this.handleOpenChange, - openTransitionName: openAnimation, - className: className - }; - } else { - props = { - openAnimation: openAnimation, - className: className - }; - } - return _react2["default"].createElement(_ExportMenu2["default"], _extends({ ref: function ref(el) { - return _this2.rcMenu = el; - } }, this.props, props)); - }; - - return Menu; - }(_react2["default"].Component); - - Menu.defaultProps = { - prefixCls: 'u-menu', - className: '', - theme: 'light' // or dark - }; - - Menu.Divider = _ExportMenu.Divider; - Menu.Item = _ExportMenu.Item; - Menu.SubMenu = _ExportMenu.SubMenu; - Menu.ItemGroup = _ExportMenu.ItemGroup; - Menu.MenuToggle = _ExportMenu.MenuToggle; - Menu.SideContainer = _ExportMenu.SideContainer; - exports["default"] = Menu; - module.exports = exports['default']; - -/***/ }), -/* 301 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.MenuToggle = exports.SideContainer = exports.Divider = exports.ItemGroup = exports.MenuItemGroup = exports.MenuItem = exports.Item = exports.SubMenu = undefined; - - var _Menu = __webpack_require__(302); - - var _Menu2 = _interopRequireDefault(_Menu); - - var _SubMenu = __webpack_require__(314); - - var _SubMenu2 = _interopRequireDefault(_SubMenu); - - var _MenuItem = __webpack_require__(382); - - var _MenuItem2 = _interopRequireDefault(_MenuItem); - - var _MenuItemGroup = __webpack_require__(386); - - var _MenuItemGroup2 = _interopRequireDefault(_MenuItemGroup); - - var _Divider = __webpack_require__(387); - - var _Divider2 = _interopRequireDefault(_Divider); - - var _SideContainer = __webpack_require__(388); - - var _SideContainer2 = _interopRequireDefault(_SideContainer); - - var _MenuToggle = __webpack_require__(389); - - var _MenuToggle2 = _interopRequireDefault(_MenuToggle); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - - exports.SubMenu = _SubMenu2["default"]; - exports.Item = _MenuItem2["default"]; - exports.MenuItem = _MenuItem2["default"]; - exports.MenuItemGroup = _MenuItemGroup2["default"]; - exports.ItemGroup = _MenuItemGroup2["default"]; - exports.Divider = _Divider2["default"]; - exports.SideContainer = _SideContainer2["default"]; - exports.MenuToggle = _MenuToggle2["default"]; /** - * This source code is quoted from rc-menu. - * homepage: https://github.com/react-component/menu - */ - - exports["default"] = _Menu2["default"]; - -/***/ }), -/* 302 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _reactDom = __webpack_require__(2); - - var _reactDom2 = _interopRequireDefault(_reactDom); - - var _propTypes = __webpack_require__(6); - - var _propTypes2 = _interopRequireDefault(_propTypes); - - var _miniStore = __webpack_require__(303); - - var _SubPopupMenu = __webpack_require__(309); - - var _SubPopupMenu2 = _interopRequireDefault(_SubPopupMenu); - - var _util = __webpack_require__(311); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** - * This source code is quoted from rc-menu. - * homepage: https://github.com/react-component/menu - */ - - - var Menu = function (_React$Component) { - _inherits(Menu, _React$Component); - - function Menu(props) { - _classCallCheck(this, Menu); - - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); - - _initialiseProps.call(_this); - - _this.isRootMenu = true; - - var selectedKeys = props.defaultSelectedKeys; - var openKeys = props.defaultOpenKeys; - if ('selectedKeys' in props) { - selectedKeys = props.selectedKeys || []; - } - if ('openKeys' in props) { - openKeys = props.openKeys || []; - } - - _this.store = (0, _miniStore.create)({ - selectedKeys: selectedKeys, - openKeys: openKeys, - activeKey: { '0-menu-': (0, _SubPopupMenu.getActiveKey)(props, props.activeKey) } - }); - return _this; - } - - Menu.prototype.componentDidMount = function componentDidMount() { - this.updateMiniStore(); - }; - - Menu.prototype.componentDidUpdate = function componentDidUpdate() { - this.updateMiniStore(); - }; - - // onKeyDown needs to be exposed as a instance method - // e.g., in rc-select, we need to navigate menu item while - // current active item is rc-select input box rather than the menu itself - - - Menu.prototype.updateMiniStore = function updateMiniStore() { - if ('selectedKeys' in this.props) { - this.store.setState({ - selectedKeys: this.props.selectedKeys || [], - keyboard: this.props.keyboard || false - }); - } - if ('openKeys' in this.props) { - this.store.setState({ - openKeys: this.props.openKeys || [], - keyboard: this.props.keyboard || false - }); - } - }; - - Menu.prototype.render = function render() { - var _this2 = this; - - var props = _objectWithoutProperties(this.props, []); - - props.className += ' ' + props.prefixCls + '-root'; - props = _extends({}, props, { - onClick: this.onClick, - onOpenChange: this.onOpenChange, - onDeselect: this.onDeselect, - onSelect: this.onSelect, - openTransitionName: this.getOpenTransitionName(), - parentMenu: this - }); - return _react2["default"].createElement( - _miniStore.Provider, - { store: this.store }, - _react2["default"].createElement( - _SubPopupMenu2["default"], - _extends({}, props, { onFocus: this.focus, ref: function ref(c) { - return _this2.innerMenu = c; - } }), - this.props.children - ) - ); - }; - - return Menu; - }(_react2["default"].Component); - - Menu.propTypes = { - defaultSelectedKeys: _propTypes2["default"].arrayOf(_propTypes2["default"].string), - defaultActiveFirst: _propTypes2["default"].bool, - selectedKeys: _propTypes2["default"].arrayOf(_propTypes2["default"].string), - defaultOpenKeys: _propTypes2["default"].arrayOf(_propTypes2["default"].string), - openKeys: _propTypes2["default"].arrayOf(_propTypes2["default"].string), - mode: _propTypes2["default"].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']), - getPopupContainer: _propTypes2["default"].func, - onClick: _propTypes2["default"].func, - onSelect: _propTypes2["default"].func, - onDeselect: _propTypes2["default"].func, - onDestroy: _propTypes2["default"].func, - openTransitionName: _propTypes2["default"].string, - openAnimation: _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].object]), - subMenuOpenDelay: _propTypes2["default"].number, - subMenuCloseDelay: _propTypes2["default"].number, - forceSubMenuRender: _propTypes2["default"].bool, - triggerSubMenuAction: _propTypes2["default"].string, - level: _propTypes2["default"].number, - selectable: _propTypes2["default"].bool, - multiple: _propTypes2["default"].bool, - children: _propTypes2["default"].any, - className: _propTypes2["default"].string, - style: _propTypes2["default"].object, - activeKey: _propTypes2["default"].string, - prefixCls: _propTypes2["default"].string, - builtinPlacements: _propTypes2["default"].object, - itemIcon: _propTypes2["default"].oneOfType([_propTypes2["default"].func, _propTypes2["default"].node]), - expandIcon: _propTypes2["default"].oneOfType([_propTypes2["default"].func, _propTypes2["default"].node]), - overflowedIndicator: _propTypes2["default"].node, - keyboard: _propTypes2["default"].bool - }; - Menu.defaultProps = { - selectable: true, - onClick: _util.noop, - onSelect: _util.noop, - onOpenChange: _util.noop, - onDeselect: _util.noop, - defaultSelectedKeys: [], - defaultOpenKeys: [], - subMenuOpenDelay: 0.1, - subMenuCloseDelay: 0.1, - triggerSubMenuAction: 'hover', - prefixCls: 'rc-menu', - className: '', - mode: 'vertical', - style: {}, - builtinPlacements: {}, - overflowedIndicator: _react2["default"].createElement( - 'span', - null, - '\xB7\xB7\xB7' - ), - keyboard: false, - tabIndex: '0' - }; - - var _initialiseProps = function _initialiseProps() { - var _this3 = this; - - this.onSelect = function (selectInfo) { - var props = _this3.props; - if (props.selectable) { - // root menu - var selectedKeys = _this3.store.getState().selectedKeys; - var selectedKey = selectInfo.key; - if (props.multiple) { - selectedKeys = selectedKeys.concat([selectedKey]); - } else { - selectedKeys = [selectedKey]; - } - if (!('selectedKeys' in props)) { - _this3.store.setState({ - selectedKeys: selectedKeys - }); - } - props.onSelect(_extends({}, selectInfo, { - selectedKeys: selectedKeys - })); - } - }; - - this.onClick = function (e) { - _this3.props.onClick(e); - }; - - this.onKeyDown = function (e, callback) { - _this3.innerMenu.getWrappedInstance().onKeyDown(e, callback); - }; - - this.onOpenChange = function (event) { - var props = _this3.props; - var openKeys = _this3.store.getState().openKeys.concat(); - var changed = false; - var processSingle = function processSingle(e) { - var oneChanged = false; - if (e.open) { - oneChanged = openKeys.indexOf(e.key) === -1; - if (oneChanged) { - openKeys.push(e.key); - } - } else { - var index = openKeys.indexOf(e.key); - oneChanged = index !== -1; - if (oneChanged) { - openKeys.splice(index, 1); - } - } - changed = changed || oneChanged; - }; - if (Array.isArray(event)) { - // batch change call - event.forEach(processSingle); - } else { - processSingle(event); - } - if (changed) { - if (!('openKeys' in _this3.props)) { - _this3.store.setState({ openKeys: openKeys }); - } - props.onOpenChange(openKeys); - } - }; - - this.onDeselect = function (selectInfo) { - var props = _this3.props; - if (props.selectable) { - var selectedKeys = _this3.store.getState().selectedKeys.concat(); - var selectedKey = selectInfo.key; - var index = selectedKeys.indexOf(selectedKey); - if (index !== -1) { - selectedKeys.splice(index, 1); - } - if (!('selectedKeys' in props)) { - _this3.store.setState({ - selectedKeys: selectedKeys - }); - } - props.onDeselect(_extends({}, selectInfo, { - selectedKeys: selectedKeys - })); - } - }; - - this.getOpenTransitionName = function () { - var props = _this3.props; - var transitionName = props.openTransitionName; - var animationName = props.openAnimation; - if (!transitionName && typeof animationName === 'string') { - transitionName = props.prefixCls + '-open-' + animationName; - } - return transitionName; - }; - - this.focus = function () { - // fireKeyEvent(ReactDOM.findDOMNode(this.innerMenu),'keydown',40); - _this3.props.onFocus && _this3.props.onFocus(); - }; - }; - - exports["default"] = Menu; - module.exports = exports['default']; - -/***/ }), -/* 303 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.create = exports.connect = exports.Provider = undefined; - - var _Provider2 = __webpack_require__(304); - - var _Provider3 = _interopRequireDefault(_Provider2); - - var _connect2 = __webpack_require__(306); - - var _connect3 = _interopRequireDefault(_connect2); - - var _create2 = __webpack_require__(308); - - var _create3 = _interopRequireDefault(_create2); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - exports.Provider = _Provider3.default; - exports.connect = _connect3.default; - exports.create = _create3.default; - -/***/ }), -/* 304 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _PropTypes = __webpack_require__(305); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - - var Provider = function (_Component) { - _inherits(Provider, _Component); - - function Provider() { - _classCallCheck(this, Provider); - - return _possibleConstructorReturn(this, (Provider.__proto__ || Object.getPrototypeOf(Provider)).apply(this, arguments)); - } - - _createClass(Provider, [{ - key: 'getChildContext', - value: function getChildContext() { - return { - miniStore: this.props.store - }; - } - }, { - key: 'render', - value: function render() { - return _react.Children.only(this.props.children); - } - }]); - - return Provider; - }(_react.Component); - - Provider.propTypes = { - store: _PropTypes.storeShape.isRequired - }; - Provider.childContextTypes = { - miniStore: _PropTypes.storeShape.isRequired - }; - exports.default = Provider; - -/***/ }), -/* 305 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.storeShape = undefined; - - var _propTypes = __webpack_require__(6); - - var _propTypes2 = _interopRequireDefault(_propTypes); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var storeShape = exports.storeShape = _propTypes2.default.shape({ - subscribe: _propTypes2.default.func.isRequired, - setState: _propTypes2.default.func.isRequired, - getState: _propTypes2.default.func.isRequired - }); - -/***/ }), -/* 306 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - - var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - - exports.default = connect; - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _shallowequal = __webpack_require__(307); - - var _shallowequal2 = _interopRequireDefault(_shallowequal); - - var _hoistNonReactStatics = __webpack_require__(213); - - var _hoistNonReactStatics2 = _interopRequireDefault(_hoistNonReactStatics); - - var _reactLifecyclesCompat = __webpack_require__(81); - - var _PropTypes = __webpack_require__(305); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - - function getDisplayName(WrappedComponent) { - return WrappedComponent.displayName || WrappedComponent.name || 'Component'; - } - - function isStateless(Component) { - return !Component.prototype.render; - } - - var defaultMapStateToProps = function defaultMapStateToProps() { - return {}; - }; - - function connect(mapStateToProps) { - var shouldSubscribe = !!mapStateToProps; - var finnalMapStateToProps = mapStateToProps || defaultMapStateToProps; - - return function wrapWithConnect(WrappedComponent) { - var Connect = function (_Component) { - _inherits(Connect, _Component); - - _createClass(Connect, null, [{ - key: 'getDerivedStateFromProps', - value: function getDerivedStateFromProps(props, prevState) { - // using ownProps - if (mapStateToProps && mapStateToProps.length === 2 && props !== prevState.props) { - return { - subscribed: finnalMapStateToProps(prevState.store.getState(), props), - props: props - }; - } - return { props: props }; - } - }]); - - function Connect(props, context) { - _classCallCheck(this, Connect); - - var _this = _possibleConstructorReturn(this, (Connect.__proto__ || Object.getPrototypeOf(Connect)).call(this, props, context)); - - _this.handleChange = function () { - if (!_this.unsubscribe) { - return; - } - var nextState = finnalMapStateToProps(_this.store.getState(), _this.props); - _this.setState({ subscribed: nextState }); - }; - - _this.store = context.miniStore; - _this.state = { - subscribed: finnalMapStateToProps(_this.store.getState(), props), - store: _this.store, - props: props - }; - return _this; - } - - _createClass(Connect, [{ - key: 'componentDidMount', - value: function componentDidMount() { - this.trySubscribe(); - } - }, { - key: 'componentWillUnmount', - value: function componentWillUnmount() { - this.tryUnsubscribe(); - } - }, { - key: 'shouldComponentUpdate', - value: function shouldComponentUpdate(nextProps, nextState) { - return !(0, _shallowequal2.default)(this.props, nextProps) || !(0, _shallowequal2.default)(this.state.subscribed, nextState.subscribed); - } - }, { - key: 'trySubscribe', - value: function trySubscribe() { - if (shouldSubscribe) { - this.unsubscribe = this.store.subscribe(this.handleChange); - this.handleChange(); - } - } - }, { - key: 'tryUnsubscribe', - value: function tryUnsubscribe() { - if (this.unsubscribe) { - this.unsubscribe(); - this.unsubscribe = null; - } - } - }, { - key: 'getWrappedInstance', - value: function getWrappedInstance() { - return this.wrappedInstance; - } - }, { - key: 'render', - value: function render() { - var _this2 = this; - - var props = _extends({}, this.props, this.state.subscribed, { - store: this.store - }); - - if (!isStateless(WrappedComponent)) { - props = _extends({}, props, { - ref: function ref(c) { - return _this2.wrappedInstance = c; - } - }); - } - - return _react2.default.createElement(WrappedComponent, props); - } - }]); - - return Connect; - }(_react.Component); - - Connect.displayName = 'Connect(' + getDisplayName(WrappedComponent) + ')'; - Connect.contextTypes = { - miniStore: _PropTypes.storeShape.isRequired - }; - - - (0, _reactLifecyclesCompat.polyfill)(Connect); - - return (0, _hoistNonReactStatics2.default)(Connect, WrappedComponent); - }; - } - -/***/ }), -/* 307 */ -/***/ (function(module, exports) { - - // - - module.exports = function shallowEqual(objA, objB, compare, compareContext) { - var ret = compare ? compare.call(compareContext, objA, objB) : void 0; - - if (ret !== void 0) { - return !!ret; - } - - if (objA === objB) { - return true; - } - - if (typeof objA !== "object" || !objA || typeof objB !== "object" || !objB) { - return false; - } - - var keysA = Object.keys(objA); - var keysB = Object.keys(objB); - - if (keysA.length !== keysB.length) { - return false; - } - - var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB); - - // Test for A's keys different from B. - for (var idx = 0; idx < keysA.length; idx++) { - var key = keysA[idx]; - - if (!bHasOwnProperty(key)) { - return false; - } - - var valueA = objA[key]; - var valueB = objB[key]; - - ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0; - - if (ret === false || (ret === void 0 && valueA !== valueB)) { - return false; - } - } - - return true; - }; - - -/***/ }), -/* 308 */ -/***/ (function(module, exports) { - - "use strict"; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - - exports.default = create; - function create(initialState) { - var state = initialState; - var listeners = []; - - function setState(partial) { - state = _extends({}, state, partial); - for (var i = 0; i < listeners.length; i++) { - listeners[i](); - } - } - - function getState() { - return state; - } - - function subscribe(listener) { - listeners.push(listener); - - return function unsubscribe() { - var index = listeners.indexOf(listener); - listeners.splice(index, 1); - }; - } - - return { - setState: setState, - getState: getState, - subscribe: subscribe - }; - } - -/***/ }), -/* 309 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.SubPopupMenu = undefined; - - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; /** - * This source code is quoted from rc-menu. - * homepage: https://github.com/react-component/menu - */ - - - exports.getActiveKey = getActiveKey; - exports.saveRef = saveRef; - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _propTypes = __webpack_require__(6); - - var _propTypes2 = _interopRequireDefault(_propTypes); - - var _miniStore = __webpack_require__(303); - - var _tinperBeeCore = __webpack_require__(27); - - var _createChainedFunction = __webpack_require__(310); - - var _createChainedFunction2 = _interopRequireDefault(_createChainedFunction); - - var _classnames = __webpack_require__(5); - - var _classnames2 = _interopRequireDefault(_classnames); - - var _util = __webpack_require__(311); - - var _DOMWrap = __webpack_require__(312); - - var _DOMWrap2 = _interopRequireDefault(_DOMWrap); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function allDisabled(arr) { - if (!arr.length) { - return true; - } - return arr.every(function (c) { - return !!c.props.disabled; - }); - } - - function updateActiveKey(store, menuId, activeKey) { - var state = store.getState(); - store.setState({ - activeKey: _extends({}, state.activeKey, _defineProperty({}, menuId, activeKey)) - }); - } - - function getEventKey(props) { - // when eventKey not available ,it's menu and return menu id '0-menu-' - return props.eventKey || '0-menu-'; - } - - function getActiveKey(props, originalActiveKey) { - var activeKey = originalActiveKey; - var children = props.children, - eventKey = props.eventKey; - - if (activeKey) { - var found = void 0; - (0, _util.loopMenuItem)(children, function (c, i) { - if (c && !c.props.disabled && activeKey === (0, _util.getKeyFromChildrenIndex)(c, eventKey, i)) { - found = true; - } - }); - if (found) { - return activeKey; - } - } - activeKey = null; - if (props.defaultActiveFirst) { - (0, _util.loopMenuItem)(children, function (c, i) { - if (!activeKey && c && !c.props.disabled) { - activeKey = (0, _util.getKeyFromChildrenIndex)(c, eventKey, i); - } - }); - return activeKey; - } - return activeKey; - } - - function saveRef(c) { - if (c) { - var index = this.instanceArray.indexOf(c); - if (index !== -1) { - // update component if it's already inside instanceArray - this.instanceArray[index] = c; - } else { - // add component if it's not in instanceArray yet; - this.instanceArray.push(c); - } - } - } - - var SubPopupMenu = exports.SubPopupMenu = function (_React$Component) { - _inherits(SubPopupMenu, _React$Component); - - function SubPopupMenu(props) { - _classCallCheck(this, SubPopupMenu); - - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); - - _initialiseProps.call(_this); - - props.store.setState({ - activeKey: _extends({}, props.store.getState().activeKey, _defineProperty({}, props.eventKey, getActiveKey(props, props.activeKey))) - }); - - _this.instanceArray = []; - return _this; - } - - SubPopupMenu.prototype.componentDidMount = function componentDidMount() { - // invoke customized ref to expose component to mixin - if (this.props.manualRef) { - this.props.manualRef(this); - } - }; - - SubPopupMenu.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) { - return this.props.visible || nextProps.visible; - }; - - SubPopupMenu.prototype.componentDidUpdate = function componentDidUpdate(prevProps) { - var props = this.props; - var originalActiveKey = 'activeKey' in props ? props.activeKey : props.store.getState().activeKey[getEventKey(props)]; - var activeKey = getActiveKey(props, originalActiveKey); - if (activeKey !== originalActiveKey) { - updateActiveKey(props.store, getEventKey(props), activeKey); - } else if ('activeKey' in prevProps) { - // If prev activeKey is not same as current activeKey, - // we should set it. - var prevActiveKey = getActiveKey(prevProps, prevProps.activeKey); - if (activeKey !== prevActiveKey) { - updateActiveKey(props.store, getEventKey(props), activeKey); - } - } - }; - - // all keyboard events callbacks run from here at first - - - SubPopupMenu.prototype.render = function render() { - var _this2 = this; - - var props = _objectWithoutProperties(this.props, []); - - this.instanceArray = []; - var className = (0, _classnames2["default"])(props.prefixCls, props.className, props.prefixCls + '-' + props.mode); - var domProps = { - className: className, - // role could be 'select' and by default set to menu - role: props.role || 'menu' - }; - if (props.id) { - domProps.id = props.id; - } - if (props.focusable) { - domProps.tabIndex = this.props.tabIndex; - domProps.onKeyDown = props.keyboard && this.onKeyDown; - } - var prefixCls = props.prefixCls, - eventKey = props.eventKey, - visible = props.visible, - level = props.level, - mode = props.mode, - overflowedIndicator = props.overflowedIndicator, - theme = props.theme; - - _util.menuAllProps.forEach(function (key) { - return delete props[key]; - }); - - // Otherwise, the propagated click event will trigger another onClick - delete props.onClick; - delete props.keyboard; - - return ( - // ESLint is not smart enough to know that the type of `children` was checked. - /* eslint-disable */ - _react2["default"].createElement( - _DOMWrap2["default"], - _extends({}, props, { - prefixCls: prefixCls, - mode: mode, - tag: 'ul', - level: level, - theme: theme, - hiddenClassName: prefixCls + '-hidden', - visible: visible, - overflowedIndicator: overflowedIndicator - }, domProps), - _react2["default"].Children.map(props.children, function (c, i) { - return _this2.renderMenuItem(c, i, eventKey || '0-menu-'); - }) - ) - /*eslint-enable */ - - ); - }; - - return SubPopupMenu; - }(_react2["default"].Component); - - SubPopupMenu.propTypes = { - onSelect: _propTypes2["default"].func, - onClick: _propTypes2["default"].func, - onDeselect: _propTypes2["default"].func, - onOpenChange: _propTypes2["default"].func, - onDestroy: _propTypes2["default"].func, - openTransitionName: _propTypes2["default"].string, - openAnimation: _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].object]), - openKeys: _propTypes2["default"].arrayOf(_propTypes2["default"].string), - visible: _propTypes2["default"].bool, - children: _propTypes2["default"].any, - parentMenu: _propTypes2["default"].object, - eventKey: _propTypes2["default"].string, - store: _propTypes2["default"].shape({ - getState: _propTypes2["default"].func, - setState: _propTypes2["default"].func - }), - - // adding in refactor - focusable: _propTypes2["default"].bool, - multiple: _propTypes2["default"].bool, - style: _propTypes2["default"].object, - defaultActiveFirst: _propTypes2["default"].bool, - activeKey: _propTypes2["default"].string, - selectedKeys: _propTypes2["default"].arrayOf(_propTypes2["default"].string), - defaultSelectedKeys: _propTypes2["default"].arrayOf(_propTypes2["default"].string), - defaultOpenKeys: _propTypes2["default"].arrayOf(_propTypes2["default"].string), - level: _propTypes2["default"].number, - mode: _propTypes2["default"].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']), - triggerSubMenuAction: _propTypes2["default"].oneOf(['click', 'hover']), - inlineIndent: _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string]), - manualRef: _propTypes2["default"].func, - itemIcon: _propTypes2["default"].oneOfType([_propTypes2["default"].func, _propTypes2["default"].node]), - expandIcon: _propTypes2["default"].oneOfType([_propTypes2["default"].func, _propTypes2["default"].node]) - }; - SubPopupMenu.defaultProps = { - prefixCls: 'rc-menu', - className: '', - mode: 'vertical', - level: 1, - inlineIndent: 24, - visible: true, - focusable: true, - style: {}, - manualRef: _util.noop - }; - - var _initialiseProps = function _initialiseProps() { - var _this3 = this; - - this.onKeyDown = function (e, callback) { - var keyCode = e.keyCode; - var handled = void 0; - _this3.getFlatInstanceArray().forEach(function (obj) { - if (obj && obj.props.active && obj.onKeyDown) { - handled = obj.onKeyDown(e); - } - }); - if (handled) { - return 1; - } - var activeItem = null; - if (keyCode === _tinperBeeCore.KeyCode.UP || keyCode === _tinperBeeCore.KeyCode.DOWN) { - if (_this3.props.store.getState().keyboard) { - //是否启用键盘操作 - activeItem = _this3.step(keyCode === _tinperBeeCore.KeyCode.UP ? -2 : 2); - } - } - - if (activeItem) { - e.preventDefault(); - updateActiveKey(_this3.props.store, getEventKey(_this3.props), activeItem.props.eventKey); - - if (typeof callback === 'function') { - callback(activeItem); - } - - return 1; - } - }; - - this.onItemHover = function (e) { - var key = e.key, - hover = e.hover; - - updateActiveKey(_this3.props.store, getEventKey(_this3.props), hover ? key : null); - }; - - this.onDeselect = function (selectInfo) { - _this3.props.onDeselect(selectInfo); - }; - - this.onSelect = function (selectInfo) { - _this3.props.onSelect(selectInfo); - }; - - this.onClick = function (e) { - _this3.props.onClick(e); - }; - - this.onOpenChange = function (e) { - _this3.props.onOpenChange(e); - }; - - this.onDestroy = function (key) { - /* istanbul ignore next */ - _this3.props.onDestroy(key); - }; - - this.getFlatInstanceArray = function () { - return _this3.instanceArray; - }; - - this.getOpenTransitionName = function () { - return _this3.props.openTransitionName; - }; - - this.step = function (direction) { - var children = _this3.getFlatInstanceArray(); - var activeKey = _this3.props.store.getState().activeKey[getEventKey(_this3.props)]; - var len = children.length; - if (!len) { - return null; - } - if (direction < 0) { - children = children.concat().reverse(); - } - // find current activeIndex - var activeIndex = -1; - children.every(function (c, ci) { - if (c && c.props.eventKey === activeKey) { - activeIndex = ci; - return false; - } - return true; - }); - if (!_this3.props.defaultActiveFirst && activeIndex !== -1 && allDisabled(children.slice(activeIndex, len - 1))) { - return undefined; - } - var start = (activeIndex + 1) % len; - var i = start; - - do { - var child = children[i]; - if (!child || child.props.disabled) { - i = (i + 1) % len; - } else { - return child; - } - } while (i !== start); - - return null; - }; - - this.renderCommonMenuItem = function (child, i, extraProps) { - var state = _this3.props.store.getState(); - var props = _this3.props; - var key = (0, _util.getKeyFromChildrenIndex)(child, props.eventKey, i); - var childProps = child.props; - var isActive = key === state.activeKey; - var newChildProps = _extends({ - mode: childProps.mode || props.mode, - level: props.level, - inlineIndent: props.inlineIndent, - renderMenuItem: _this3.renderMenuItem, - rootPrefixCls: props.prefixCls, - index: i, - parentMenu: props.parentMenu, - // customized ref function, need to be invoked manually in child's componentDidMount - manualRef: childProps.disabled ? undefined : (0, _createChainedFunction2["default"])(child.ref, saveRef.bind(_this3)), - eventKey: key, - active: !childProps.disabled && isActive, - multiple: props.multiple, - onClick: function onClick(e) { - (childProps.onClick || _util.noop)(e); - _this3.onClick(e); - }, - onItemHover: _this3.onItemHover, - openTransitionName: _this3.getOpenTransitionName(), - openAnimation: props.openAnimation, - subMenuOpenDelay: props.subMenuOpenDelay, - subMenuCloseDelay: props.subMenuCloseDelay, - forceSubMenuRender: props.forceSubMenuRender, - onOpenChange: _this3.onOpenChange, - onDeselect: _this3.onDeselect, - onSelect: _this3.onSelect, - builtinPlacements: props.builtinPlacements, - itemIcon: childProps.itemIcon || _this3.props.itemIcon, - expandIcon: childProps.expandIcon || _this3.props.expandIcon - }, extraProps); - if (props.mode === 'inline') { - newChildProps.triggerSubMenuAction = 'click'; - } - return _react2["default"].cloneElement(child, newChildProps); - }; - - this.renderMenuItem = function (c, i, subMenuKey) { - /* istanbul ignore if */ - - if (!c) { - return null; - } - var state = _this3.props.store.getState(); - var extraProps = { - openKeys: state.openKeys, - selectedKeys: state.selectedKeys, - triggerSubMenuAction: _this3.props.triggerSubMenuAction, - subMenuKey: subMenuKey - }; - return _this3.renderCommonMenuItem(c, i, extraProps); - }; - }; - - var connected = (0, _miniStore.connect)()(SubPopupMenu); - - exports["default"] = connected; - -/***/ }), -/* 310 */ -/***/ (function(module, exports) { - - "use strict"; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = createChainedFunction; - - /** - * Safe chained function - * - * Will only create a new function if needed, - * otherwise will pass back existing functions or null. - * - * @returns {function|null} - */ - function createChainedFunction() { - var args = [].slice.call(arguments, 0); - - if (args.length === 1) { - return args[0]; - } - - return function chainedFunction() { - for (var i = 0; i < args.length; i++) { - if (args[i] && args[i].apply) { - args[i].apply(this, arguments); - } - } - }; - } - -/***/ }), -/* 311 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.setStyle = exports.getWidth = exports.menuAllProps = undefined; - - var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; /** - * This source code is quoted from rc-menu. - * homepage: https://github.com/react-component/menu - */ - - - exports.noop = noop; - exports.getKeyFromChildrenIndex = getKeyFromChildrenIndex; - exports.getMenuIdFromSubMenuEventKey = getMenuIdFromSubMenuEventKey; - exports.loopMenuItem = loopMenuItem; - exports.loopMenuItemRecursively = loopMenuItemRecursively; - exports.fireKeyEvent = fireKeyEvent; - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - - function noop() {} - - function getKeyFromChildrenIndex(child, menuEventKey, index) { - var prefix = menuEventKey || ''; - return child.key || prefix + 'item_' + index; - } - - function getMenuIdFromSubMenuEventKey(eventKey) { - return eventKey + '-menu-'; - } - - function loopMenuItem(children, cb) { - var index = -1; - _react2["default"].Children.forEach(children, function (c) { - index++; - if (c && c.type && c.type.isMenuItemGroup) { - _react2["default"].Children.forEach(c.props.children, function (c2) { - index++; - cb(c2, index); - }); - } else { - cb(c, index); - } - }); - } - - function loopMenuItemRecursively(children, keys, ret) { - /* istanbul ignore if */ - if (!children || ret.find) { - return; - } - _react2["default"].Children.forEach(children, function (c) { - if (c) { - var construct = c.type; - if (!construct || !(construct.isSubMenu || construct.isMenuItem || construct.isMenuItemGroup)) { - return; - } - if (keys.indexOf(c.key) !== -1) { - ret.find = true; - } else if (c.props.children) { - loopMenuItemRecursively(c.props.children, keys, ret); - } - } - }); - } - - var menuAllProps = exports.menuAllProps = ['defaultSelectedKeys', 'selectedKeys', 'defaultOpenKeys', 'openKeys', 'mode', 'getPopupContainer', 'onSelect', 'onDeselect', 'onDestroy', 'openTransitionName', 'openAnimation', 'subMenuOpenDelay', 'subMenuCloseDelay', 'forceSubMenuRender', 'triggerSubMenuAction', 'level', 'selectable', 'multiple', 'onOpenChange', 'visible', 'focusable', 'defaultActiveFirst', 'prefixCls', 'inlineIndent', 'parentMenu', 'title', 'rootPrefixCls', 'eventKey', 'active', 'onItemHover', 'onTitleMouseEnter', 'onTitleMouseLeave', 'onTitleClick', 'popupAlign', 'popupOffset', 'isOpen', 'renderMenuItem', 'manualRef', 'subMenuKey', 'disabled', 'index', 'isSelected', 'store', 'activeKey', 'builtinPlacements', 'overflowedIndicator', - - // the following keys found need to be removed from test regression - 'attribute', 'value', 'popupClassName', 'inlineCollapsed', 'menu', 'theme', 'itemIcon', 'expandIcon']; - - var getWidth = exports.getWidth = function getWidth(elem) { - return elem && typeof elem.getBoundingClientRect === 'function' && elem.getBoundingClientRect().width || 0; - }; - - var setStyle = exports.setStyle = function setStyle(elem, styleProperty, value) { - if (elem && _typeof(elem.style) === 'object') { - elem.style[styleProperty] = value; - } - }; - - function fireKeyEvent(el, evtType, keyCode) { - var evtObj; - if (document.createEvent) { - if (window.KeyEvent) { - //firefox 浏览器下模拟事件 - evtObj = document.createEvent('KeyEvents'); - evtObj.initKeyEvent(evtType, true, true, window, true, false, false, false, keyCode, 0); - } else { - //chrome 浏览器下模拟事件 - evtObj = document.createEvent('UIEvents'); - evtObj.initUIEvent(evtType, true, true, window, 1); - - delete evtObj.keyCode; - if (typeof evtObj.keyCode === "undefined") { - //为了模拟keycode - Object.defineProperty(evtObj, "keyCode", { value: keyCode }); - } else { - evtObj.key = String.fromCharCode(keyCode); - } - - if (typeof evtObj.ctrlKey === 'undefined') { - //为了模拟ctrl键 - Object.defineProperty(evtObj, "ctrlKey", { value: true }); - } else { - evtObj.ctrlKey = true; - } - } - el.dispatchEvent(evtObj); - } else if (document.createEventObject) { - //IE 浏览器下模拟事件 - evtObj = document.createEventObject(); - evtObj.keyCode = keyCode; - el.fireEvent('on' + evtType, evtObj); - } - } - -/***/ }), -/* 312 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _reactDom = __webpack_require__(2); - - var _reactDom2 = _interopRequireDefault(_reactDom); - - var _propTypes = __webpack_require__(6); - - var _propTypes2 = _interopRequireDefault(_propTypes); - - var _resizeObserverPolyfill = __webpack_require__(313); - - var _resizeObserverPolyfill2 = _interopRequireDefault(_resizeObserverPolyfill); - - var _SubMenu = __webpack_require__(314); - - var _SubMenu2 = _interopRequireDefault(_SubMenu); - - var _util = __webpack_require__(311); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - - function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } - - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** - * This source code is quoted from rc-menu. - * homepage: https://github.com/react-component/menu - */ - - - var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement); - - var MENUITEM_OVERFLOWED_CLASSNAME = 'menuitem-overflowed'; - - // Fix ssr - if (canUseDOM) { - __webpack_require__(381); - } - - var DOMWrap = function (_React$Component) { - _inherits(DOMWrap, _React$Component); - - function DOMWrap() { - var _temp, _this, _ret; - - _classCallCheck(this, DOMWrap); - - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.state = { - lastVisibleIndex: undefined - }, _this.getMenuItemNodes = function () { - var prefixCls = _this.props.prefixCls; - - var ul = _reactDom2["default"].findDOMNode(_this); - if (!ul) { - return []; - } - - // filter out all overflowed indicator placeholder - return [].slice.call(ul.children).filter(function (node) { - return node.className.split(' ').indexOf(prefixCls + '-overflowed-submenu') < 0; - }); - }, _this.getOverflowedSubMenuItem = function (keyPrefix, overflowedItems, renderPlaceholder) { - var _this$props = _this.props, - overflowedIndicator = _this$props.overflowedIndicator, - level = _this$props.level, - mode = _this$props.mode, - prefixCls = _this$props.prefixCls, - theme = _this$props.theme, - propStyle = _this$props.style; - - if (level !== 1 || mode !== 'horizontal') { - return null; - } - // put all the overflowed item inside a submenu - // with a title of overflow indicator ('...') - var copy = _this.props.children[0]; - - var _copy$props = copy.props, - throwAway = _copy$props.children, - title = _copy$props.title, - eventKey = _copy$props.eventKey, - rest = _objectWithoutProperties(_copy$props, ['children', 'title', 'eventKey']); - - var style = _extends({}, propStyle); - var key = keyPrefix + '-overflowed-indicator'; - - if (overflowedItems.length === 0 && renderPlaceholder !== true) { - style = _extends({}, style, { - display: 'none' - }); - } else if (renderPlaceholder) { - style = _extends({}, style, { - visibility: 'hidden', - // prevent from taking normal dom space - position: 'absolute' - }); - key = key + '-placeholder'; - } - - var popupClassName = theme ? prefixCls + '-' + theme : ''; - var props = {}; - _util.menuAllProps.forEach(function (k) { - if (rest[k] !== undefined) { - props[k] = rest[k]; - } - }); - - return _react2["default"].createElement( - _SubMenu2["default"], - _extends({ - title: overflowedIndicator, - className: prefixCls + '-overflowed-submenu', - popupClassName: popupClassName - }, props, { - key: key, - eventKey: keyPrefix + '-overflowed-indicator', - disabled: false, - style: style - }), - overflowedItems - ); - }, _this.setChildrenWidthAndResize = function () { - if (_this.props.mode !== 'horizontal') { - return; - } - var ul = _reactDom2["default"].findDOMNode(_this); - - if (!ul) { - return; - } - - var ulChildrenNodes = ul.children; - - if (!ulChildrenNodes || ulChildrenNodes.length === 0) { - return; - } - - var lastOverflowedIndicatorPlaceholder = ul.children[ulChildrenNodes.length - 1]; - - // need last overflowed indicator for calculating length; - (0, _util.setStyle)(lastOverflowedIndicatorPlaceholder, 'display', 'inline-block'); - - var menuItemNodes = _this.getMenuItemNodes(); - - // reset display attribute for all hidden elements caused by overflow to calculate updated width - // and then reset to original state after width calculation - - var overflowedItems = menuItemNodes.filter(function (c) { - return c.className.split(' ').indexOf(MENUITEM_OVERFLOWED_CLASSNAME) >= 0; - }); - - overflowedItems.forEach(function (c) { - (0, _util.setStyle)(c, 'display', 'inline-block'); - }); - - _this.menuItemSizes = menuItemNodes.map(function (c) { - return (0, _util.getWidth)(c); - }); - - overflowedItems.forEach(function (c) { - (0, _util.setStyle)(c, 'display', 'none'); - }); - _this.overflowedIndicatorWidth = (0, _util.getWidth)(ul.children[ul.children.length - 1]); - _this.originalTotalWidth = _this.menuItemSizes.reduce(function (acc, cur) { - return acc + cur; - }, 0); - _this.handleResize(); - // prevent the overflowed indicator from taking space; - (0, _util.setStyle)(lastOverflowedIndicatorPlaceholder, 'display', 'none'); - }, _this.resizeObserver = null, _this.mutationObserver = null, _this.originalTotalWidth = 0, _this.overflowedItems = [], _this.menuItemSizes = [], _this.handleResize = function () { - if (_this.props.mode !== 'horizontal') { - return; - } - - var ul = _reactDom2["default"].findDOMNode(_this); - if (!ul) { - return; - } - var width = (0, _util.getWidth)(ul); - - _this.overflowedItems = []; - var currentSumWidth = 0; - - // index for last visible child in horizontal mode - var lastVisibleIndex = undefined; - - if (_this.originalTotalWidth > width) { - lastVisibleIndex = -1; - - _this.menuItemSizes.forEach(function (liWidth) { - currentSumWidth += liWidth; - if (currentSumWidth + _this.overflowedIndicatorWidth <= width) { - lastVisibleIndex++; - } - }); - } - - _this.setState({ lastVisibleIndex: lastVisibleIndex }); - }, _temp), _possibleConstructorReturn(_this, _ret); - } - - DOMWrap.prototype.componentDidMount = function componentDidMount() { - var _this2 = this; - - this.setChildrenWidthAndResize(); - if (this.props.level === 1 && this.props.mode === 'horizontal') { - var menuUl = _reactDom2["default"].findDOMNode(this); - if (!menuUl) { - return; - } - this.resizeObserver = new _resizeObserverPolyfill2["default"](function (entries) { - entries.forEach(_this2.setChildrenWidthAndResize); - }); - - [].slice.call(menuUl.children).concat(menuUl).forEach(function (el) { - _this2.resizeObserver.observe(el); - }); - - if (typeof MutationObserver !== 'undefined') { - this.mutationObserver = new MutationObserver(function () { - _this2.resizeObserver.disconnect(); - [].slice.call(menuUl.children).concat(menuUl).forEach(function (el) { - _this2.resizeObserver.observe(el); - }); - _this2.setChildrenWidthAndResize(); - }); - this.mutationObserver.observe(menuUl, { attributes: false, childList: true, subTree: false }); - } - } - }; - - DOMWrap.prototype.componentWillUnmount = function componentWillUnmount() { - if (this.resizeObserver) { - this.resizeObserver.disconnect(); - } - if (this.mutationObserver) { - this.resizeObserver.disconnect(); - } - }; - - // get all valid menuItem nodes - - - // memorize rendered menuSize - - - // original scroll size of the list - - - // copy of overflowed items - - - // cache item of the original items (so we can track the size and order) - - - DOMWrap.prototype.renderChildren = function renderChildren(children) { - var _this3 = this; - - // need to take care of overflowed items in horizontal mode - var lastVisibleIndex = this.state.lastVisibleIndex; - - return (children || []).reduce(function (acc, childNode, index) { - var item = childNode; - if (_this3.props.mode === 'horizontal') { - var overflowed = _this3.getOverflowedSubMenuItem(childNode.props.eventKey, []); - if (lastVisibleIndex !== undefined && _this3.props.className.indexOf(_this3.props.prefixCls + '-root') !== -1) { - if (index > lastVisibleIndex) { - item = _react2["default"].cloneElement(childNode, - // 这里修改 eventKey 是为了防止隐藏状态下还会触发 openkeys 事件 - { - style: { display: 'none' }, - eventKey: childNode.props.eventKey + '-hidden', - className: childNode.className + ' ' + MENUITEM_OVERFLOWED_CLASSNAME - }); - } - if (index === lastVisibleIndex + 1) { - _this3.overflowedItems = children.slice(lastVisibleIndex + 1).map(function (c) { - return _react2["default"].cloneElement(c, - // children[index].key will become '.$key' in clone by default, - // we have to overwrite with the correct key explicitly - { key: c.props.eventKey, mode: 'vertical-left' }); - }); - - overflowed = _this3.getOverflowedSubMenuItem(childNode.props.eventKey, _this3.overflowedItems); - } - } - - // const ret = [...acc, overflowed, item];//更改 - var ret = [].concat(_toConsumableArray(acc), [item]); - - if (index === children.length - 1) { - // need a placeholder for calculating overflowed indicator width - ret.push(_this3.getOverflowedSubMenuItem(childNode.props.eventKey, [], true)); - } - return ret; - } - return [].concat(_toConsumableArray(acc), [item]); - }, []); - }; - - DOMWrap.prototype.render = function render() { - var _props = this.props, - hiddenClassName = _props.hiddenClassName, - visible = _props.visible, - prefixCls = _props.prefixCls, - overflowedIndicator = _props.overflowedIndicator, - mode = _props.mode, - level = _props.level, - Tag = _props.tag, - children = _props.children, - theme = _props.theme, - rest = _objectWithoutProperties(_props, ['hiddenClassName', 'visible', 'prefixCls', 'overflowedIndicator', 'mode', 'level', 'tag', 'children', 'theme']); - - if (!visible) { - rest.className += ' ' + hiddenClassName; - } - - return _react2["default"].createElement( - Tag, - rest, - this.renderChildren(this.props.children) - ); - }; - - return DOMWrap; - }(_react2["default"].Component); - - DOMWrap.propTypes = { - className: _propTypes2["default"].string, - children: _propTypes2["default"].node, - mode: _propTypes2["default"].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']), - prefixCls: _propTypes2["default"].string, - level: _propTypes2["default"].number, - theme: _propTypes2["default"].string, - overflowedIndicator: _propTypes2["default"].node, - visible: _propTypes2["default"].bool, - hiddenClassName: _propTypes2["default"].string, - tag: _propTypes2["default"].string, - style: _propTypes2["default"].object - }; - - DOMWrap.defaultProps = { - tag: 'div', - className: '' - }; - - exports["default"] = DOMWrap; - module.exports = exports['default']; - -/***/ }), -/* 313 */ -/***/ (function(module, exports, __webpack_require__) { - - /* WEBPACK VAR INJECTION */(function(global) {(function (global, factory) { - true ? module.exports = factory() : - typeof define === 'function' && define.amd ? define(factory) : - (global.ResizeObserver = factory()); - }(this, (function () { 'use strict'; - - /** - * A collection of shims that provide minimal functionality of the ES6 collections. - * - * These implementations are not meant to be used outside of the ResizeObserver - * modules as they cover only a limited range of use cases. - */ - /* eslint-disable require-jsdoc, valid-jsdoc */ - var MapShim = (function () { - if (typeof Map !== 'undefined') { - return Map; - } - /** - * Returns index in provided array that matches the specified key. - * - * @param {Array} arr - * @param {*} key - * @returns {number} - */ - function getIndex(arr, key) { - var result = -1; - arr.some(function (entry, index) { - if (entry[0] === key) { - result = index; - return true; - } - return false; - }); - return result; - } - return /** @class */ (function () { - function class_1() { - this.__entries__ = []; - } - Object.defineProperty(class_1.prototype, "size", { - /** - * @returns {boolean} - */ - get: function () { - return this.__entries__.length; - }, - enumerable: true, - configurable: true - }); - /** - * @param {*} key - * @returns {*} - */ - class_1.prototype.get = function (key) { - var index = getIndex(this.__entries__, key); - var entry = this.__entries__[index]; - return entry && entry[1]; - }; - /** - * @param {*} key - * @param {*} value - * @returns {void} - */ - class_1.prototype.set = function (key, value) { - var index = getIndex(this.__entries__, key); - if (~index) { - this.__entries__[index][1] = value; - } - else { - this.__entries__.push([key, value]); - } - }; - /** - * @param {*} key - * @returns {void} - */ - class_1.prototype.delete = function (key) { - var entries = this.__entries__; - var index = getIndex(entries, key); - if (~index) { - entries.splice(index, 1); - } - }; - /** - * @param {*} key - * @returns {void} - */ - class_1.prototype.has = function (key) { - return !!~getIndex(this.__entries__, key); - }; - /** - * @returns {void} - */ - class_1.prototype.clear = function () { - this.__entries__.splice(0); - }; - /** - * @param {Function} callback - * @param {*} [ctx=null] - * @returns {void} - */ - class_1.prototype.forEach = function (callback, ctx) { - if (ctx === void 0) { ctx = null; } - for (var _i = 0, _a = this.__entries__; _i < _a.length; _i++) { - var entry = _a[_i]; - callback.call(ctx, entry[1], entry[0]); - } - }; - return class_1; - }()); - })(); - - /** - * Detects whether window and document objects are available in current environment. - */ - var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && window.document === document; - - // Returns global object of a current environment. - var global$1 = (function () { - if (typeof global !== 'undefined' && global.Math === Math) { - return global; - } - if (typeof self !== 'undefined' && self.Math === Math) { - return self; - } - if (typeof window !== 'undefined' && window.Math === Math) { - return window; - } - // eslint-disable-next-line no-new-func - return Function('return this')(); - })(); - - /** - * A shim for the requestAnimationFrame which falls back to the setTimeout if - * first one is not supported. - * - * @returns {number} Requests' identifier. - */ - var requestAnimationFrame$1 = (function () { - if (typeof requestAnimationFrame === 'function') { - // It's required to use a bounded function because IE sometimes throws - // an "Invalid calling object" error if rAF is invoked without the global - // object on the left hand side. - return requestAnimationFrame.bind(global$1); - } - return function (callback) { return setTimeout(function () { return callback(Date.now()); }, 1000 / 60); }; - })(); - - // Defines minimum timeout before adding a trailing call. - var trailingTimeout = 2; - /** - * Creates a wrapper function which ensures that provided callback will be - * invoked only once during the specified delay period. - * - * @param {Function} callback - Function to be invoked after the delay period. - * @param {number} delay - Delay after which to invoke callback. - * @returns {Function} - */ - function throttle (callback, delay) { - var leadingCall = false, trailingCall = false, lastCallTime = 0; - /** - * Invokes the original callback function and schedules new invocation if - * the "proxy" was called during current request. - * - * @returns {void} - */ - function resolvePending() { - if (leadingCall) { - leadingCall = false; - callback(); - } - if (trailingCall) { - proxy(); - } - } - /** - * Callback invoked after the specified delay. It will further postpone - * invocation of the original function delegating it to the - * requestAnimationFrame. - * - * @returns {void} - */ - function timeoutCallback() { - requestAnimationFrame$1(resolvePending); - } - /** - * Schedules invocation of the original function. - * - * @returns {void} - */ - function proxy() { - var timeStamp = Date.now(); - if (leadingCall) { - // Reject immediately following calls. - if (timeStamp - lastCallTime < trailingTimeout) { - return; - } - // Schedule new call to be in invoked when the pending one is resolved. - // This is important for "transitions" which never actually start - // immediately so there is a chance that we might miss one if change - // happens amids the pending invocation. - trailingCall = true; - } - else { - leadingCall = true; - trailingCall = false; - setTimeout(timeoutCallback, delay); - } - lastCallTime = timeStamp; - } - return proxy; - } - - // Minimum delay before invoking the update of observers. - var REFRESH_DELAY = 20; - // A list of substrings of CSS properties used to find transition events that - // might affect dimensions of observed elements. - var transitionKeys = ['top', 'right', 'bottom', 'left', 'width', 'height', 'size', 'weight']; - // Check if MutationObserver is available. - var mutationObserverSupported = typeof MutationObserver !== 'undefined'; - /** - * Singleton controller class which handles updates of ResizeObserver instances. - */ - var ResizeObserverController = /** @class */ (function () { - /** - * Creates a new instance of ResizeObserverController. - * - * @private - */ - function ResizeObserverController() { - /** - * Indicates whether DOM listeners have been added. - * - * @private {boolean} - */ - this.connected_ = false; - /** - * Tells that controller has subscribed for Mutation Events. - * - * @private {boolean} - */ - this.mutationEventsAdded_ = false; - /** - * Keeps reference to the instance of MutationObserver. - * - * @private {MutationObserver} - */ - this.mutationsObserver_ = null; - /** - * A list of connected observers. - * - * @private {Array} - */ - this.observers_ = []; - this.onTransitionEnd_ = this.onTransitionEnd_.bind(this); - this.refresh = throttle(this.refresh.bind(this), REFRESH_DELAY); - } - /** - * Adds observer to observers list. - * - * @param {ResizeObserverSPI} observer - Observer to be added. - * @returns {void} - */ - ResizeObserverController.prototype.addObserver = function (observer) { - if (!~this.observers_.indexOf(observer)) { - this.observers_.push(observer); - } - // Add listeners if they haven't been added yet. - if (!this.connected_) { - this.connect_(); - } - }; - /** - * Removes observer from observers list. - * - * @param {ResizeObserverSPI} observer - Observer to be removed. - * @returns {void} - */ - ResizeObserverController.prototype.removeObserver = function (observer) { - var observers = this.observers_; - var index = observers.indexOf(observer); - // Remove observer if it's present in registry. - if (~index) { - observers.splice(index, 1); - } - // Remove listeners if controller has no connected observers. - if (!observers.length && this.connected_) { - this.disconnect_(); - } - }; - /** - * Invokes the update of observers. It will continue running updates insofar - * it detects changes. - * - * @returns {void} - */ - ResizeObserverController.prototype.refresh = function () { - var changesDetected = this.updateObservers_(); - // Continue running updates if changes have been detected as there might - // be future ones caused by CSS transitions. - if (changesDetected) { - this.refresh(); - } - }; - /** - * Updates every observer from observers list and notifies them of queued - * entries. - * - * @private - * @returns {boolean} Returns "true" if any observer has detected changes in - * dimensions of it's elements. - */ - ResizeObserverController.prototype.updateObservers_ = function () { - // Collect observers that have active observations. - var activeObservers = this.observers_.filter(function (observer) { - return observer.gatherActive(), observer.hasActive(); - }); - // Deliver notifications in a separate cycle in order to avoid any - // collisions between observers, e.g. when multiple instances of - // ResizeObserver are tracking the same element and the callback of one - // of them changes content dimensions of the observed target. Sometimes - // this may result in notifications being blocked for the rest of observers. - activeObservers.forEach(function (observer) { return observer.broadcastActive(); }); - return activeObservers.length > 0; - }; - /** - * Initializes DOM listeners. - * - * @private - * @returns {void} - */ - ResizeObserverController.prototype.connect_ = function () { - // Do nothing if running in a non-browser environment or if listeners - // have been already added. - if (!isBrowser || this.connected_) { - return; - } - // Subscription to the "Transitionend" event is used as a workaround for - // delayed transitions. This way it's possible to capture at least the - // final state of an element. - document.addEventListener('transitionend', this.onTransitionEnd_); - window.addEventListener('resize', this.refresh); - if (mutationObserverSupported) { - this.mutationsObserver_ = new MutationObserver(this.refresh); - this.mutationsObserver_.observe(document, { - attributes: true, - childList: true, - characterData: true, - subtree: true - }); - } - else { - document.addEventListener('DOMSubtreeModified', this.refresh); - this.mutationEventsAdded_ = true; - } - this.connected_ = true; - }; - /** - * Removes DOM listeners. - * - * @private - * @returns {void} - */ - ResizeObserverController.prototype.disconnect_ = function () { - // Do nothing if running in a non-browser environment or if listeners - // have been already removed. - if (!isBrowser || !this.connected_) { - return; - } - document.removeEventListener('transitionend', this.onTransitionEnd_); - window.removeEventListener('resize', this.refresh); - if (this.mutationsObserver_) { - this.mutationsObserver_.disconnect(); - } - if (this.mutationEventsAdded_) { - document.removeEventListener('DOMSubtreeModified', this.refresh); - } - this.mutationsObserver_ = null; - this.mutationEventsAdded_ = false; - this.connected_ = false; - }; - /** - * "Transitionend" event handler. - * - * @private - * @param {TransitionEvent} event - * @returns {void} - */ - ResizeObserverController.prototype.onTransitionEnd_ = function (_a) { - var _b = _a.propertyName, propertyName = _b === void 0 ? '' : _b; - // Detect whether transition may affect dimensions of an element. - var isReflowProperty = transitionKeys.some(function (key) { - return !!~propertyName.indexOf(key); - }); - if (isReflowProperty) { - this.refresh(); - } - }; - /** - * Returns instance of the ResizeObserverController. - * - * @returns {ResizeObserverController} - */ - ResizeObserverController.getInstance = function () { - if (!this.instance_) { - this.instance_ = new ResizeObserverController(); - } - return this.instance_; - }; - /** - * Holds reference to the controller's instance. - * - * @private {ResizeObserverController} - */ - ResizeObserverController.instance_ = null; - return ResizeObserverController; - }()); - - /** - * Defines non-writable/enumerable properties of the provided target object. - * - * @param {Object} target - Object for which to define properties. - * @param {Object} props - Properties to be defined. - * @returns {Object} Target object. - */ - var defineConfigurable = (function (target, props) { - for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) { - var key = _a[_i]; - Object.defineProperty(target, key, { - value: props[key], - enumerable: false, - writable: false, - configurable: true - }); - } - return target; - }); - - /** - * Returns the global object associated with provided element. - * - * @param {Object} target - * @returns {Object} - */ - var getWindowOf = (function (target) { - // Assume that the element is an instance of Node, which means that it - // has the "ownerDocument" property from which we can retrieve a - // corresponding global object. - var ownerGlobal = target && target.ownerDocument && target.ownerDocument.defaultView; - // Return the local global object if it's not possible extract one from - // provided element. - return ownerGlobal || global$1; - }); - - // Placeholder of an empty content rectangle. - var emptyRect = createRectInit(0, 0, 0, 0); - /** - * Converts provided string to a number. - * - * @param {number|string} value - * @returns {number} - */ - function toFloat(value) { - return parseFloat(value) || 0; - } - /** - * Extracts borders size from provided styles. - * - * @param {CSSStyleDeclaration} styles - * @param {...string} positions - Borders positions (top, right, ...) - * @returns {number} - */ - function getBordersSize(styles) { - var positions = []; - for (var _i = 1; _i < arguments.length; _i++) { - positions[_i - 1] = arguments[_i]; - } - return positions.reduce(function (size, position) { - var value = styles['border-' + position + '-width']; - return size + toFloat(value); - }, 0); - } - /** - * Extracts paddings sizes from provided styles. - * - * @param {CSSStyleDeclaration} styles - * @returns {Object} Paddings box. - */ - function getPaddings(styles) { - var positions = ['top', 'right', 'bottom', 'left']; - var paddings = {}; - for (var _i = 0, positions_1 = positions; _i < positions_1.length; _i++) { - var position = positions_1[_i]; - var value = styles['padding-' + position]; - paddings[position] = toFloat(value); - } - return paddings; - } - /** - * Calculates content rectangle of provided SVG element. - * - * @param {SVGGraphicsElement} target - Element content rectangle of which needs - * to be calculated. - * @returns {DOMRectInit} - */ - function getSVGContentRect(target) { - var bbox = target.getBBox(); - return createRectInit(0, 0, bbox.width, bbox.height); - } - /** - * Calculates content rectangle of provided HTMLElement. - * - * @param {HTMLElement} target - Element for which to calculate the content rectangle. - * @returns {DOMRectInit} - */ - function getHTMLElementContentRect(target) { - // Client width & height properties can't be - // used exclusively as they provide rounded values. - var clientWidth = target.clientWidth, clientHeight = target.clientHeight; - // By this condition we can catch all non-replaced inline, hidden and - // detached elements. Though elements with width & height properties less - // than 0.5 will be discarded as well. - // - // Without it we would need to implement separate methods for each of - // those cases and it's not possible to perform a precise and performance - // effective test for hidden elements. E.g. even jQuery's ':visible' filter - // gives wrong results for elements with width & height less than 0.5. - if (!clientWidth && !clientHeight) { - return emptyRect; - } - var styles = getWindowOf(target).getComputedStyle(target); - var paddings = getPaddings(styles); - var horizPad = paddings.left + paddings.right; - var vertPad = paddings.top + paddings.bottom; - // Computed styles of width & height are being used because they are the - // only dimensions available to JS that contain non-rounded values. It could - // be possible to utilize the getBoundingClientRect if only it's data wasn't - // affected by CSS transformations let alone paddings, borders and scroll bars. - var width = toFloat(styles.width), height = toFloat(styles.height); - // Width & height include paddings and borders when the 'border-box' box - // model is applied (except for IE). - if (styles.boxSizing === 'border-box') { - // Following conditions are required to handle Internet Explorer which - // doesn't include paddings and borders to computed CSS dimensions. - // - // We can say that if CSS dimensions + paddings are equal to the "client" - // properties then it's either IE, and thus we don't need to subtract - // anything, or an element merely doesn't have paddings/borders styles. - if (Math.round(width + horizPad) !== clientWidth) { - width -= getBordersSize(styles, 'left', 'right') + horizPad; - } - if (Math.round(height + vertPad) !== clientHeight) { - height -= getBordersSize(styles, 'top', 'bottom') + vertPad; - } - } - // Following steps can't be applied to the document's root element as its - // client[Width/Height] properties represent viewport area of the window. - // Besides, it's as well not necessary as the itself neither has - // rendered scroll bars nor it can be clipped. - if (!isDocumentElement(target)) { - // In some browsers (only in Firefox, actually) CSS width & height - // include scroll bars size which can be removed at this step as scroll - // bars are the only difference between rounded dimensions + paddings - // and "client" properties, though that is not always true in Chrome. - var vertScrollbar = Math.round(width + horizPad) - clientWidth; - var horizScrollbar = Math.round(height + vertPad) - clientHeight; - // Chrome has a rather weird rounding of "client" properties. - // E.g. for an element with content width of 314.2px it sometimes gives - // the client width of 315px and for the width of 314.7px it may give - // 314px. And it doesn't happen all the time. So just ignore this delta - // as a non-relevant. - if (Math.abs(vertScrollbar) !== 1) { - width -= vertScrollbar; - } - if (Math.abs(horizScrollbar) !== 1) { - height -= horizScrollbar; - } - } - return createRectInit(paddings.left, paddings.top, width, height); - } - /** - * Checks whether provided element is an instance of the SVGGraphicsElement. - * - * @param {Element} target - Element to be checked. - * @returns {boolean} - */ - var isSVGGraphicsElement = (function () { - // Some browsers, namely IE and Edge, don't have the SVGGraphicsElement - // interface. - if (typeof SVGGraphicsElement !== 'undefined') { - return function (target) { return target instanceof getWindowOf(target).SVGGraphicsElement; }; - } - // If it's so, then check that element is at least an instance of the - // SVGElement and that it has the "getBBox" method. - // eslint-disable-next-line no-extra-parens - return function (target) { return (target instanceof getWindowOf(target).SVGElement && - typeof target.getBBox === 'function'); }; - })(); - /** - * Checks whether provided element is a document element (). - * - * @param {Element} target - Element to be checked. - * @returns {boolean} - */ - function isDocumentElement(target) { - return target === getWindowOf(target).document.documentElement; - } - /** - * Calculates an appropriate content rectangle for provided html or svg element. - * - * @param {Element} target - Element content rectangle of which needs to be calculated. - * @returns {DOMRectInit} - */ - function getContentRect(target) { - if (!isBrowser) { - return emptyRect; - } - if (isSVGGraphicsElement(target)) { - return getSVGContentRect(target); - } - return getHTMLElementContentRect(target); - } - /** - * Creates rectangle with an interface of the DOMRectReadOnly. - * Spec: https://drafts.fxtf.org/geometry/#domrectreadonly - * - * @param {DOMRectInit} rectInit - Object with rectangle's x/y coordinates and dimensions. - * @returns {DOMRectReadOnly} - */ - function createReadOnlyRect(_a) { - var x = _a.x, y = _a.y, width = _a.width, height = _a.height; - // If DOMRectReadOnly is available use it as a prototype for the rectangle. - var Constr = typeof DOMRectReadOnly !== 'undefined' ? DOMRectReadOnly : Object; - var rect = Object.create(Constr.prototype); - // Rectangle's properties are not writable and non-enumerable. - defineConfigurable(rect, { - x: x, y: y, width: width, height: height, - top: y, - right: x + width, - bottom: height + y, - left: x - }); - return rect; - } - /** - * Creates DOMRectInit object based on the provided dimensions and the x/y coordinates. - * Spec: https://drafts.fxtf.org/geometry/#dictdef-domrectinit - * - * @param {number} x - X coordinate. - * @param {number} y - Y coordinate. - * @param {number} width - Rectangle's width. - * @param {number} height - Rectangle's height. - * @returns {DOMRectInit} - */ - function createRectInit(x, y, width, height) { - return { x: x, y: y, width: width, height: height }; - } - - /** - * Class that is responsible for computations of the content rectangle of - * provided DOM element and for keeping track of it's changes. - */ - var ResizeObservation = /** @class */ (function () { - /** - * Creates an instance of ResizeObservation. - * - * @param {Element} target - Element to be observed. - */ - function ResizeObservation(target) { - /** - * Broadcasted width of content rectangle. - * - * @type {number} - */ - this.broadcastWidth = 0; - /** - * Broadcasted height of content rectangle. - * - * @type {number} - */ - this.broadcastHeight = 0; - /** - * Reference to the last observed content rectangle. - * - * @private {DOMRectInit} - */ - this.contentRect_ = createRectInit(0, 0, 0, 0); - this.target = target; - } - /** - * Updates content rectangle and tells whether it's width or height properties - * have changed since the last broadcast. - * - * @returns {boolean} - */ - ResizeObservation.prototype.isActive = function () { - var rect = getContentRect(this.target); - this.contentRect_ = rect; - return (rect.width !== this.broadcastWidth || - rect.height !== this.broadcastHeight); - }; - /** - * Updates 'broadcastWidth' and 'broadcastHeight' properties with a data - * from the corresponding properties of the last observed content rectangle. - * - * @returns {DOMRectInit} Last observed content rectangle. - */ - ResizeObservation.prototype.broadcastRect = function () { - var rect = this.contentRect_; - this.broadcastWidth = rect.width; - this.broadcastHeight = rect.height; - return rect; - }; - return ResizeObservation; - }()); - - var ResizeObserverEntry = /** @class */ (function () { - /** - * Creates an instance of ResizeObserverEntry. - * - * @param {Element} target - Element that is being observed. - * @param {DOMRectInit} rectInit - Data of the element's content rectangle. - */ - function ResizeObserverEntry(target, rectInit) { - var contentRect = createReadOnlyRect(rectInit); - // According to the specification following properties are not writable - // and are also not enumerable in the native implementation. - // - // Property accessors are not being used as they'd require to define a - // private WeakMap storage which may cause memory leaks in browsers that - // don't support this type of collections. - defineConfigurable(this, { target: target, contentRect: contentRect }); - } - return ResizeObserverEntry; - }()); - - var ResizeObserverSPI = /** @class */ (function () { - /** - * Creates a new instance of ResizeObserver. - * - * @param {ResizeObserverCallback} callback - Callback function that is invoked - * when one of the observed elements changes it's content dimensions. - * @param {ResizeObserverController} controller - Controller instance which - * is responsible for the updates of observer. - * @param {ResizeObserver} callbackCtx - Reference to the public - * ResizeObserver instance which will be passed to callback function. - */ - function ResizeObserverSPI(callback, controller, callbackCtx) { - /** - * Collection of resize observations that have detected changes in dimensions - * of elements. - * - * @private {Array} - */ - this.activeObservations_ = []; - /** - * Registry of the ResizeObservation instances. - * - * @private {Map} - */ - this.observations_ = new MapShim(); - if (typeof callback !== 'function') { - throw new TypeError('The callback provided as parameter 1 is not a function.'); - } - this.callback_ = callback; - this.controller_ = controller; - this.callbackCtx_ = callbackCtx; - } - /** - * Starts observing provided element. - * - * @param {Element} target - Element to be observed. - * @returns {void} - */ - ResizeObserverSPI.prototype.observe = function (target) { - if (!arguments.length) { - throw new TypeError('1 argument required, but only 0 present.'); - } - // Do nothing if current environment doesn't have the Element interface. - if (typeof Element === 'undefined' || !(Element instanceof Object)) { - return; - } - if (!(target instanceof getWindowOf(target).Element)) { - throw new TypeError('parameter 1 is not of type "Element".'); - } - var observations = this.observations_; - // Do nothing if element is already being observed. - if (observations.has(target)) { - return; - } - observations.set(target, new ResizeObservation(target)); - this.controller_.addObserver(this); - // Force the update of observations. - this.controller_.refresh(); - }; - /** - * Stops observing provided element. - * - * @param {Element} target - Element to stop observing. - * @returns {void} - */ - ResizeObserverSPI.prototype.unobserve = function (target) { - if (!arguments.length) { - throw new TypeError('1 argument required, but only 0 present.'); - } - // Do nothing if current environment doesn't have the Element interface. - if (typeof Element === 'undefined' || !(Element instanceof Object)) { - return; - } - if (!(target instanceof getWindowOf(target).Element)) { - throw new TypeError('parameter 1 is not of type "Element".'); - } - var observations = this.observations_; - // Do nothing if element is not being observed. - if (!observations.has(target)) { - return; - } - observations.delete(target); - if (!observations.size) { - this.controller_.removeObserver(this); - } - }; - /** - * Stops observing all elements. - * - * @returns {void} - */ - ResizeObserverSPI.prototype.disconnect = function () { - this.clearActive(); - this.observations_.clear(); - this.controller_.removeObserver(this); - }; - /** - * Collects observation instances the associated element of which has changed - * it's content rectangle. - * - * @returns {void} - */ - ResizeObserverSPI.prototype.gatherActive = function () { - var _this = this; - this.clearActive(); - this.observations_.forEach(function (observation) { - if (observation.isActive()) { - _this.activeObservations_.push(observation); - } - }); - }; - /** - * Invokes initial callback function with a list of ResizeObserverEntry - * instances collected from active resize observations. - * - * @returns {void} - */ - ResizeObserverSPI.prototype.broadcastActive = function () { - // Do nothing if observer doesn't have active observations. - if (!this.hasActive()) { - return; - } - var ctx = this.callbackCtx_; - // Create ResizeObserverEntry instance for every active observation. - var entries = this.activeObservations_.map(function (observation) { - return new ResizeObserverEntry(observation.target, observation.broadcastRect()); - }); - this.callback_.call(ctx, entries, ctx); - this.clearActive(); - }; - /** - * Clears the collection of active observations. - * - * @returns {void} - */ - ResizeObserverSPI.prototype.clearActive = function () { - this.activeObservations_.splice(0); - }; - /** - * Tells whether observer has active observations. - * - * @returns {boolean} - */ - ResizeObserverSPI.prototype.hasActive = function () { - return this.activeObservations_.length > 0; - }; - return ResizeObserverSPI; - }()); - - // Registry of internal observers. If WeakMap is not available use current shim - // for the Map collection as it has all required methods and because WeakMap - // can't be fully polyfilled anyway. - var observers = typeof WeakMap !== 'undefined' ? new WeakMap() : new MapShim(); - /** - * ResizeObserver API. Encapsulates the ResizeObserver SPI implementation - * exposing only those methods and properties that are defined in the spec. - */ - var ResizeObserver = /** @class */ (function () { - /** - * Creates a new instance of ResizeObserver. - * - * @param {ResizeObserverCallback} callback - Callback that is invoked when - * dimensions of the observed elements change. - */ - function ResizeObserver(callback) { - if (!(this instanceof ResizeObserver)) { - throw new TypeError('Cannot call a class as a function.'); - } - if (!arguments.length) { - throw new TypeError('1 argument required, but only 0 present.'); - } - var controller = ResizeObserverController.getInstance(); - var observer = new ResizeObserverSPI(callback, controller, this); - observers.set(this, observer); - } - return ResizeObserver; - }()); - // Expose public methods of ResizeObserver. - [ - 'observe', - 'unobserve', - 'disconnect' - ].forEach(function (method) { - ResizeObserver.prototype[method] = function () { - var _a; - return (_a = observers.get(this))[method].apply(_a, arguments); - }; - }); - - var index = (function () { - // Export existing implementation if available. - if (typeof global$1.ResizeObserver !== 'undefined') { - return global$1.ResizeObserver; - } - return ResizeObserver; - })(); - - return index; - - }))); - - /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) - -/***/ }), -/* 314 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.SubMenu = undefined; - - var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; /** - * This source code is quoted from rc-menu. - * homepage: https://github.com/react-component/menu - */ - - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _reactDom = __webpack_require__(2); - - var _reactDom2 = _interopRequireDefault(_reactDom); - - var _propTypes = __webpack_require__(6); - - var _propTypes2 = _interopRequireDefault(_propTypes); - - var _rcTrigger = __webpack_require__(315); - - var _rcTrigger2 = _interopRequireDefault(_rcTrigger); - - var _tinperBeeCore = __webpack_require__(27); - - var _classnames = __webpack_require__(5); - - var _classnames2 = _interopRequireDefault(_classnames); - - var _miniStore = __webpack_require__(303); - - var _SubPopupMenu = __webpack_require__(309); - - var _SubPopupMenu2 = _interopRequireDefault(_SubPopupMenu); - - var _placements = __webpack_require__(380); - - var _placements2 = _interopRequireDefault(_placements); - - var _rcAnimate = __webpack_require__(369); - - var _rcAnimate2 = _interopRequireDefault(_rcAnimate); - - var _util = __webpack_require__(311); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var guid = 0; - - var popupPlacementMap = { - horizontal: 'bottomLeft', - vertical: 'rightTop', - 'vertical-left': 'rightTop', - 'vertical-right': 'leftTop' - }; - - var updateDefaultActiveFirst = function updateDefaultActiveFirst(store, eventKey, defaultActiveFirst) { - var menuId = (0, _util.getMenuIdFromSubMenuEventKey)(eventKey); - var state = store.getState(); - store.setState({ - defaultActiveFirst: _extends({}, state.defaultActiveFirst, _defineProperty({}, menuId, defaultActiveFirst)) - }); - }; - - var SubMenu = exports.SubMenu = function (_React$Component) { - _inherits(SubMenu, _React$Component); - - function SubMenu(props) { - _classCallCheck(this, SubMenu); - - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); - - _initialiseProps.call(_this); - - var store = props.store; - var eventKey = props.eventKey; - var defaultActiveFirst = store.getState().defaultActiveFirst; - - _this.isRootMenu = false; - - var value = false; - - if (defaultActiveFirst) { - value = defaultActiveFirst[eventKey]; - } - - updateDefaultActiveFirst(store, eventKey, value); - return _this; - } - - SubMenu.prototype.componentDidMount = function componentDidMount() { - this.componentDidUpdate(); - }; - - SubMenu.prototype.componentDidUpdate = function componentDidUpdate() { - var _props = this.props, - mode = _props.mode, - parentMenu = _props.parentMenu, - manualRef = _props.manualRef; - - // invoke customized ref to expose component to mixin - - if (manualRef) { - manualRef(this); - } - - if (mode !== 'horizontal' || !parentMenu.isRootMenu || !this.props.isOpen) { - return; - } - - // this.minWidthTimeout = setTimeout(() => this.adjustWidth(), 0); - this.adjustWidth(); - }; - - SubMenu.prototype.componentWillUnmount = function componentWillUnmount() { - var _props2 = this.props, - onDestroy = _props2.onDestroy, - eventKey = _props2.eventKey; - - if (onDestroy) { - onDestroy(eventKey); - } - - /* istanbul ignore if */ - /* if (this.minWidthTimeout) { - clearTimeout(this.minWidthTimeout); - }*/ - - /* istanbul ignore if */ - if (this.mouseenterTimeout) { - clearTimeout(this.mouseenterTimeout); - } - }; - - SubMenu.prototype.renderChildren = function renderChildren(children) { - var props = this.props; - var baseProps = { - mode: props.mode === 'horizontal' ? 'vertical' : props.mode, - visible: this.props.isOpen, - level: props.level + 1, - inlineIndent: props.inlineIndent, - focusable: false, - onClick: this.onSubMenuClick, - onSelect: this.onSelect, - onDeselect: this.onDeselect, - onDestroy: this.onDestroy, - selectedKeys: props.selectedKeys, - eventKey: props.eventKey + '-menu-', - openKeys: props.openKeys, - openTransitionName: props.openTransitionName, - openAnimation: props.openAnimation, - onOpenChange: this.onOpenChange, - subMenuOpenDelay: props.subMenuOpenDelay, - parentMenu: this, - subMenuCloseDelay: props.subMenuCloseDelay, - forceSubMenuRender: props.forceSubMenuRender, - triggerSubMenuAction: props.triggerSubMenuAction, - builtinPlacements: props.builtinPlacements, - defaultActiveFirst: props.store.getState().defaultActiveFirst[(0, _util.getMenuIdFromSubMenuEventKey)(props.eventKey)], - multiple: props.multiple, - prefixCls: props.rootPrefixCls, - id: this._menuId, - manualRef: this.saveMenuInstance, - itemIcon: props.itemIcon, - expandIcon: props.expandIcon - }; - - var haveRendered = this.haveRendered; - this.haveRendered = true; - - this.haveOpened = this.haveOpened || baseProps.visible || baseProps.forceSubMenuRender; - // never rendered not planning to, don't render - if (!this.haveOpened) { - return _react2["default"].createElement('div', null); - } - - // don't show transition on first rendering (no animation for opened menu) - // show appear transition if it's not visible (not sure why) - // show appear transition if it's not inline mode - var transitionAppear = haveRendered || !baseProps.visible || !baseProps.mode === 'inline'; - - baseProps.className = ' ' + baseProps.prefixCls + '-sub'; - var animProps = {}; - - if (baseProps.openTransitionName) { - animProps.transitionName = baseProps.openTransitionName; - } else if (_typeof(baseProps.openAnimation) === 'object') { - animProps.animation = _extends({}, baseProps.openAnimation); - if (!transitionAppear) { - delete animProps.animation.appear; - } - } - - return _react2["default"].createElement( - _rcAnimate2["default"], - _extends({}, animProps, { - showProp: 'visible', - component: '', - transitionAppear: transitionAppear - }), - _react2["default"].createElement( - _SubPopupMenu2["default"], - _extends({}, baseProps, { id: this._menuId }), - children - ) - ); - }; - - SubMenu.prototype.render = function render() { - var _classNames; - - var props = _extends({}, this.props); - var isOpen = props.isOpen; - var prefixCls = this.getPrefixCls(); - var isInlineMode = props.mode === 'inline'; - var className = (0, _classnames2["default"])(prefixCls, prefixCls + '-' + props.mode, (_classNames = {}, _defineProperty(_classNames, props.className, !!props.className), _defineProperty(_classNames, this.getOpenClassName(), isOpen), _defineProperty(_classNames, this.getActiveClassName(), props.active || isOpen && !isInlineMode), _defineProperty(_classNames, this.getDisabledClassName(), props.disabled), _defineProperty(_classNames, this.getSelectedClassName(), this.isChildrenSelected()), _classNames)); - - if (!this._menuId) { - if (props.eventKey) { - this._menuId = props.eventKey + '$Menu'; - } else { - this._menuId = '$__$' + ++guid + '$Menu'; - } - } - - var mouseEvents = {}; - var titleClickEvents = {}; - var titleMouseEvents = {}; - if (!props.disabled) { - mouseEvents = { - onMouseLeave: this.onMouseLeave, - onMouseEnter: this.onMouseEnter - }; - - // only works in title, not outer li - titleClickEvents = { - onClick: this.onTitleClick - }; - titleMouseEvents = { - onMouseEnter: this.onTitleMouseEnter, - onMouseLeave: this.onTitleMouseLeave - }; - } - - var style = {}; - if (isInlineMode) { - style.paddingLeft = props.inlineIndent * props.level; - } - - var ariaOwns = {}; - // only set aria-owns when menu is open - // otherwise it would be an invalid aria-owns value - // since corresponding node cannot be found - if (this.props.isOpen) { - ariaOwns = { - 'aria-owns': this._menuId - }; - } - - // expand custom icon should NOT be displayed in menu with horizontal mode. - var icon = null; - if (props.mode !== 'horizontal') { - icon = this.props.expandIcon; // ReactNode - if (typeof this.props.expandIcon === 'function') { - icon = _react2["default"].createElement(this.props.expandIcon, _extends({}, this.props)); - } - } - - var title = _react2["default"].createElement( - 'div', - _extends({ - ref: this.saveSubMenuTitle, - style: style, - className: prefixCls + '-title' - }, titleMouseEvents, titleClickEvents, { - 'aria-expanded': isOpen - }, ariaOwns, { - 'aria-haspopup': 'true', - title: typeof props.title === 'string' ? props.title : undefined - }), - props.title, - icon || _react2["default"].createElement('i', { className: prefixCls + '-arrow' }) - ); - var children = this.renderChildren(props.children); - - var getPopupContainer = function getPopupContainer(triggerNode) { - return triggerNode.parentNode; - }; - var popupPlacement = popupPlacementMap[props.mode]; - var popupAlign = props.popupOffset ? { offset: props.popupOffset } : {}; - var popupClassName = props.mode === 'inline' ? '' : props.popupClassName; - var disabled = props.disabled, - triggerSubMenuAction = props.triggerSubMenuAction, - subMenuOpenDelay = props.subMenuOpenDelay, - forceSubMenuRender = props.forceSubMenuRender, - subMenuCloseDelay = props.subMenuCloseDelay, - builtinPlacements = props.builtinPlacements; - - _util.menuAllProps.forEach(function (key) { - return delete props[key]; - }); - // Set onClick to null, to ignore propagated onClick event - delete props.onClick; - return _react2["default"].createElement( - 'li', - _extends({}, props, mouseEvents, { - className: className, - role: 'menuitem' - }), - isInlineMode && title, - isInlineMode && children, - !isInlineMode && _react2["default"].createElement( - _rcTrigger2["default"], - { - prefixCls: prefixCls, - popupClassName: prefixCls + '-popup ' + popupClassName, - getPopupContainer: getPopupContainer, - builtinPlacements: _extends({}, _placements2["default"], builtinPlacements), - popupPlacement: this.props.mode == 'vertical' ? this.props.position || popupPlacement : popupPlacement, - popupVisible: isOpen, - popupAlign: popupAlign, - popup: children, - action: disabled ? [] : [triggerSubMenuAction], - mouseEnterDelay: subMenuOpenDelay, - mouseLeaveDelay: subMenuCloseDelay, - onPopupVisibleChange: this.onPopupVisibleChange, - forceRender: forceSubMenuRender - }, - title - ) - ); - }; - - return SubMenu; - }(_react2["default"].Component); - - SubMenu.propTypes = { - parentMenu: _propTypes2["default"].object, - title: _propTypes2["default"].node, - children: _propTypes2["default"].any, - selectedKeys: _propTypes2["default"].array, - openKeys: _propTypes2["default"].array, - onClick: _propTypes2["default"].func, - onOpenChange: _propTypes2["default"].func, - rootPrefixCls: _propTypes2["default"].string, - eventKey: _propTypes2["default"].string, - multiple: _propTypes2["default"].bool, - active: _propTypes2["default"].bool, // TODO: remove - onItemHover: _propTypes2["default"].func, - onSelect: _propTypes2["default"].func, - triggerSubMenuAction: _propTypes2["default"].string, - onDeselect: _propTypes2["default"].func, - onDestroy: _propTypes2["default"].func, - onMouseEnter: _propTypes2["default"].func, - onMouseLeave: _propTypes2["default"].func, - onTitleMouseEnter: _propTypes2["default"].func, - onTitleMouseLeave: _propTypes2["default"].func, - onTitleClick: _propTypes2["default"].func, - popupOffset: _propTypes2["default"].array, - isOpen: _propTypes2["default"].bool, - store: _propTypes2["default"].object, - mode: _propTypes2["default"].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']), - manualRef: _propTypes2["default"].func, - itemIcon: _propTypes2["default"].oneOfType([_propTypes2["default"].func, _propTypes2["default"].node]), - expandIcon: _propTypes2["default"].oneOfType([_propTypes2["default"].func, _propTypes2["default"].node]), - position: _propTypes2["default"].oneOf(['bottomLeft', 'topLeft', 'leftTop', 'rightTop']) - }; - SubMenu.defaultProps = { - onMouseEnter: _util.noop, - onMouseLeave: _util.noop, - onTitleMouseEnter: _util.noop, - onTitleMouseLeave: _util.noop, - onTitleClick: _util.noop, - manualRef: _util.noop, - mode: 'vertical', - title: '' - }; - - var _initialiseProps = function _initialiseProps() { - var _this2 = this; - - this.onDestroy = function (key) { - _this2.props.onDestroy(key); - }; - - this.onKeyDown = function (e) { - var keyCode = e.keyCode; - var menu = _this2.menuInstance; - var _props3 = _this2.props, - isOpen = _props3.isOpen, - store = _props3.store; - - if (_this2.props.store.getState().keyboard) { - //是否启用键盘操作 - if (keyCode === _tinperBeeCore.KeyCode.ENTER) { - // this.onTitleClick(e); - menu && menu.onKeyDown && menu.onKeyDown(e); - updateDefaultActiveFirst(store, _this2.props.eventKey, true); - return true; - } - - if (keyCode === _tinperBeeCore.KeyCode.RIGHT) { - if (isOpen) { - menu.onKeyDown(e); - } else { - _this2.triggerOpenChange(true); - // need to update current menu's defaultActiveFirst value - updateDefaultActiveFirst(store, _this2.props.eventKey, true); - } - return true; - } - if (keyCode === _tinperBeeCore.KeyCode.LEFT) { - var handled = void 0; - if (isOpen) { - handled = menu.onKeyDown(e); - } else { - return undefined; - } - if (!handled) { - _this2.triggerOpenChange(false); - handled = true; - } - return handled; - } - if (isOpen && (keyCode === _tinperBeeCore.KeyCode.UP || keyCode === _tinperBeeCore.KeyCode.DOWN)) { - return menu.onKeyDown(e); - } - } - }; - - this.onOpenChange = function (e) { - _this2.props.onOpenChange(e); - }; - - this.onPopupVisibleChange = function (visible) { - _this2.triggerOpenChange(visible, visible ? 'mouseenter' : 'mouseleave'); - }; - - this.onMouseEnter = function (e) { - var _props4 = _this2.props, - key = _props4.eventKey, - onMouseEnter = _props4.onMouseEnter, - store = _props4.store; - - updateDefaultActiveFirst(store, _this2.props.eventKey, false); - onMouseEnter({ - key: key, - domEvent: e - }); - }; - - this.onMouseLeave = function (e) { - var _props5 = _this2.props, - parentMenu = _props5.parentMenu, - eventKey = _props5.eventKey, - onMouseLeave = _props5.onMouseLeave; - - parentMenu.subMenuInstance = _this2; - onMouseLeave({ - key: eventKey, - domEvent: e - }); - }; - - this.onTitleMouseEnter = function (domEvent) { - var _props6 = _this2.props, - key = _props6.eventKey, - onItemHover = _props6.onItemHover, - onTitleMouseEnter = _props6.onTitleMouseEnter; - - onItemHover({ - key: key, - hover: true - }); - onTitleMouseEnter({ - key: key, - domEvent: domEvent - }); - }; - - this.onTitleMouseLeave = function (e) { - var _props7 = _this2.props, - parentMenu = _props7.parentMenu, - eventKey = _props7.eventKey, - onItemHover = _props7.onItemHover, - onTitleMouseLeave = _props7.onTitleMouseLeave; - - parentMenu.subMenuInstance = _this2; - onItemHover({ - key: eventKey, - hover: false - }); - onTitleMouseLeave({ - key: eventKey, - domEvent: e - }); - }; - - this.onTitleClick = function (e) { - var props = _this2.props; - - props.onTitleClick({ - key: props.eventKey, - domEvent: e - }); - if (props.triggerSubMenuAction === 'hover') { - return; - } - _this2.triggerOpenChange(!props.isOpen, 'click'); - updateDefaultActiveFirst(props.store, _this2.props.eventKey, false); - }; - - this.onSubMenuClick = function (info) { - // in the case of overflowed submenu - // onClick is not copied over - if (typeof _this2.props.onClick === 'function') { - _this2.props.onClick(_this2.addKeyPath(info)); - } - }; - - this.onSelect = function (info) { - _this2.props.onSelect(info); - }; - - this.onDeselect = function (info) { - _this2.props.onDeselect(info); - }; - - this.getPrefixCls = function () { - return _this2.props.rootPrefixCls + '-submenu'; - }; - - this.getActiveClassName = function () { - return _this2.getPrefixCls() + '-active'; - }; - - this.getDisabledClassName = function () { - return _this2.getPrefixCls() + '-disabled'; - }; - - this.getSelectedClassName = function () { - return _this2.getPrefixCls() + '-selected'; - }; - - this.getOpenClassName = function () { - return _this2.props.rootPrefixCls + '-submenu-open'; - }; - - this.saveMenuInstance = function (c) { - // children menu instance - _this2.menuInstance = c; - }; - - this.addKeyPath = function (info) { - return _extends({}, info, { - keyPath: (info.keyPath || []).concat(_this2.props.eventKey) - }); - }; - - this.triggerOpenChange = function (open, type) { - var key = _this2.props.eventKey; - var openChange = function openChange() { - _this2.onOpenChange({ - key: key, - item: _this2, - trigger: type, - open: open - }); - }; - if (type === 'mouseenter') { - // make sure mouseenter happen after other menu item's mouseleave - _this2.mouseenterTimeout = setTimeout(function () { - openChange(); - }, 0); - } else { - openChange(); - } - }; - - this.isChildrenSelected = function () { - var ret = { find: false }; - (0, _util.loopMenuItemRecursively)(_this2.props.children, _this2.props.selectedKeys, ret); - return ret.find; - }; - - this.isOpen = function () { - return _this2.props.openKeys.indexOf(_this2.props.eventKey) !== -1; - }; - - this.adjustWidth = function () { - /* istanbul ignore if */ - if (!_this2.subMenuTitle || !_this2.menuInstance) { - return; - } - var popupMenu = _reactDom2["default"].findDOMNode(_this2.menuInstance); - if (popupMenu.offsetWidth >= _this2.subMenuTitle.offsetWidth) { - return; - } - - /* istanbul ignore next */ - popupMenu.style.minWidth = _this2.subMenuTitle.offsetWidth + 'px'; //bug是因为在这里加了一个minWidth - }; - - this.saveSubMenuTitle = function (subMenuTitle) { - _this2.subMenuTitle = subMenuTitle; - }; - }; - - var connected = (0, _miniStore.connect)(function (_ref, _ref2) { - var openKeys = _ref.openKeys, - activeKey = _ref.activeKey, - selectedKeys = _ref.selectedKeys; - var eventKey = _ref2.eventKey, - subMenuKey = _ref2.subMenuKey; - return { - isOpen: openKeys.indexOf(eventKey) > -1, - active: activeKey[subMenuKey] === eventKey, - selectedKeys: selectedKeys - }; - })(SubMenu); - - connected.isSubMenu = true; - - exports["default"] = connected; - -/***/ }), -/* 315 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - exports.__esModule = true; - - var _extends2 = __webpack_require__(316); - - var _extends3 = _interopRequireDefault(_extends2); - - var _classCallCheck2 = __webpack_require__(318); - - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - - var _possibleConstructorReturn2 = __webpack_require__(319); - - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - - var _inherits2 = __webpack_require__(350); - - var _inherits3 = _interopRequireDefault(_inherits2); - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _propTypes = __webpack_require__(6); - - var _propTypes2 = _interopRequireDefault(_propTypes); - - var _reactDom = __webpack_require__(2); - - var _reactLifecyclesCompat = __webpack_require__(81); - - var _contains = __webpack_require__(356); - - var _contains2 = _interopRequireDefault(_contains); - - var _addEventListener = __webpack_require__(357); - - var _addEventListener2 = _interopRequireDefault(_addEventListener); - - var _ContainerRender = __webpack_require__(358); - - var _ContainerRender2 = _interopRequireDefault(_ContainerRender); - - var _Portal = __webpack_require__(359); - - var _Portal2 = _interopRequireDefault(_Portal); - - var _classnames = __webpack_require__(5); - - var _classnames2 = _interopRequireDefault(_classnames); - - var _utils = __webpack_require__(360); - - var _Popup = __webpack_require__(361); - - var _Popup2 = _interopRequireDefault(_Popup); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - function noop() {} - - function returnEmptyString() { - return ''; - } - - function returnDocument() { - return window.document; - } - - var ALL_HANDLERS = ['onClick', 'onMouseDown', 'onTouchStart', 'onMouseEnter', 'onMouseLeave', 'onFocus', 'onBlur', 'onContextMenu']; - - var IS_REACT_16 = !!_reactDom.createPortal; - - var contextTypes = { - rcTrigger: _propTypes2['default'].shape({ - onPopupMouseDown: _propTypes2['default'].func - }) - }; - - var Trigger = function (_React$Component) { - (0, _inherits3['default'])(Trigger, _React$Component); - - function Trigger(props) { - (0, _classCallCheck3['default'])(this, Trigger); - - var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props)); - - _initialiseProps.call(_this); - - var popupVisible = void 0; - if ('popupVisible' in props) { - popupVisible = !!props.popupVisible; - } else { - popupVisible = !!props.defaultPopupVisible; - } - - _this.state = { - prevPopupVisible: popupVisible, - popupVisible: popupVisible - }; - - ALL_HANDLERS.forEach(function (h) { - _this['fire' + h] = function (e) { - _this.fireEvents(h, e); - }; - }); - return _this; - } - - Trigger.prototype.getChildContext = function getChildContext() { - return { - rcTrigger: { - onPopupMouseDown: this.onPopupMouseDown - } - }; - }; - - Trigger.prototype.componentDidMount = function componentDidMount() { - this.componentDidUpdate({}, { - popupVisible: this.state.popupVisible - }); - }; - - Trigger.prototype.componentDidUpdate = function componentDidUpdate(_, prevState) { - var props = this.props; - var state = this.state; - var triggerAfterPopupVisibleChange = function triggerAfterPopupVisibleChange() { - if (prevState.popupVisible !== state.popupVisible) { - props.afterPopupVisibleChange(state.popupVisible); - } - }; - if (!IS_REACT_16) { - this.renderComponent(null, triggerAfterPopupVisibleChange); - } - - // We must listen to `mousedown` or `touchstart`, edge case: - // https://github.com/ant-design/ant-design/issues/5804 - // https://github.com/react-component/calendar/issues/250 - // https://github.com/react-component/trigger/issues/50 - if (state.popupVisible) { - var currentDocument = void 0; - if (!this.clickOutsideHandler && (this.isClickToHide() || this.isContextMenuToShow())) { - currentDocument = props.getDocument(); - this.clickOutsideHandler = (0, _addEventListener2['default'])(currentDocument, 'mousedown', this.onDocumentClick); - } - // always hide on mobile - if (!this.touchOutsideHandler) { - currentDocument = currentDocument || props.getDocument(); - this.touchOutsideHandler = (0, _addEventListener2['default'])(currentDocument, 'touchstart', this.onDocumentClick); - } - // close popup when trigger type contains 'onContextMenu' and document is scrolling. - if (!this.contextMenuOutsideHandler1 && this.isContextMenuToShow()) { - currentDocument = currentDocument || props.getDocument(); - this.contextMenuOutsideHandler1 = (0, _addEventListener2['default'])(currentDocument, 'scroll', this.onContextMenuClose); - } - // close popup when trigger type contains 'onContextMenu' and window is blur. - if (!this.contextMenuOutsideHandler2 && this.isContextMenuToShow()) { - this.contextMenuOutsideHandler2 = (0, _addEventListener2['default'])(window, 'blur', this.onContextMenuClose); - } - return; - } - - this.clearOutsideHandler(); - }; - - Trigger.prototype.componentWillUnmount = function componentWillUnmount() { - this.clearDelayTimer(); - this.clearOutsideHandler(); - clearTimeout(this.mouseDownTimeout); - }; - - Trigger.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) { - var popupVisible = _ref.popupVisible; - - var newState = {}; - - if (popupVisible !== undefined && prevState.popupVisible !== popupVisible) { - newState.popupVisible = popupVisible; - newState.prevPopupVisible = prevState.popupVisible; - } - - return newState; - }; - - Trigger.prototype.getPopupDomNode = function getPopupDomNode() { - // for test - if (this._component && this._component.getPopupDomNode) { - return this._component.getPopupDomNode(); - } - return null; - }; - - Trigger.prototype.getPopupAlign = function getPopupAlign() { - var props = this.props; - var popupPlacement = props.popupPlacement, - popupAlign = props.popupAlign, - builtinPlacements = props.builtinPlacements; - - if (popupPlacement && builtinPlacements) { - return (0, _utils.getAlignFromPlacement)(builtinPlacements, popupPlacement, popupAlign); - } - return popupAlign; - }; - - /** - * @param popupVisible Show or not the popup element - * @param event SyntheticEvent, used for `pointAlign` - */ - Trigger.prototype.setPopupVisible = function setPopupVisible(popupVisible, event) { - var alignPoint = this.props.alignPoint; - var prevPopupVisible = this.state.popupVisible; - - - this.clearDelayTimer(); - - if (prevPopupVisible !== popupVisible) { - if (!('popupVisible' in this.props)) { - this.setState({ popupVisible: popupVisible, prevPopupVisible: prevPopupVisible }); - } - this.props.onPopupVisibleChange(popupVisible); - } - - // Always record the point position since mouseEnterDelay will delay the show - if (alignPoint && event) { - this.setPoint(event); - } - }; - - Trigger.prototype.delaySetPopupVisible = function delaySetPopupVisible(visible, delayS, event) { - var _this2 = this; - - var delay = delayS * 1000; - this.clearDelayTimer(); - if (delay) { - var point = event ? { pageX: event.pageX, pageY: event.pageY } : null; - this.delayTimer = setTimeout(function () { - _this2.setPopupVisible(visible, point); - _this2.clearDelayTimer(); - }, delay); - } else { - this.setPopupVisible(visible, event); - } - }; - - Trigger.prototype.clearDelayTimer = function clearDelayTimer() { - if (this.delayTimer) { - clearTimeout(this.delayTimer); - this.delayTimer = null; - } - }; - - Trigger.prototype.clearOutsideHandler = function clearOutsideHandler() { - if (this.clickOutsideHandler) { - this.clickOutsideHandler.remove(); - this.clickOutsideHandler = null; - } - - if (this.contextMenuOutsideHandler1) { - this.contextMenuOutsideHandler1.remove(); - this.contextMenuOutsideHandler1 = null; - } - - if (this.contextMenuOutsideHandler2) { - this.contextMenuOutsideHandler2.remove(); - this.contextMenuOutsideHandler2 = null; - } - - if (this.touchOutsideHandler) { - this.touchOutsideHandler.remove(); - this.touchOutsideHandler = null; - } - }; - - Trigger.prototype.createTwoChains = function createTwoChains(event) { - var childPros = this.props.children.props; - var props = this.props; - if (childPros[event] && props[event]) { - return this['fire' + event]; - } - return childPros[event] || props[event]; - }; - - Trigger.prototype.isClickToShow = function isClickToShow() { - var _props = this.props, - action = _props.action, - showAction = _props.showAction; - - return action.indexOf('click') !== -1 || showAction.indexOf('click') !== -1; - }; - - Trigger.prototype.isContextMenuToShow = function isContextMenuToShow() { - var _props2 = this.props, - action = _props2.action, - showAction = _props2.showAction; - - return action.indexOf('contextMenu') !== -1 || showAction.indexOf('contextMenu') !== -1; - }; - - Trigger.prototype.isClickToHide = function isClickToHide() { - var _props3 = this.props, - action = _props3.action, - hideAction = _props3.hideAction; - - return action.indexOf('click') !== -1 || hideAction.indexOf('click') !== -1; - }; - - Trigger.prototype.isMouseEnterToShow = function isMouseEnterToShow() { - var _props4 = this.props, - action = _props4.action, - showAction = _props4.showAction; - - return action.indexOf('hover') !== -1 || showAction.indexOf('mouseEnter') !== -1; - }; - - Trigger.prototype.isMouseLeaveToHide = function isMouseLeaveToHide() { - var _props5 = this.props, - action = _props5.action, - hideAction = _props5.hideAction; - - return action.indexOf('hover') !== -1 || hideAction.indexOf('mouseLeave') !== -1; - }; - - Trigger.prototype.isFocusToShow = function isFocusToShow() { - var _props6 = this.props, - action = _props6.action, - showAction = _props6.showAction; - - return action.indexOf('focus') !== -1 || showAction.indexOf('focus') !== -1; - }; - - Trigger.prototype.isBlurToHide = function isBlurToHide() { - var _props7 = this.props, - action = _props7.action, - hideAction = _props7.hideAction; - - return action.indexOf('focus') !== -1 || hideAction.indexOf('blur') !== -1; - }; - - Trigger.prototype.forcePopupAlign = function forcePopupAlign() { - if (this.state.popupVisible && this._component && this._component.alignInstance) { - this._component.alignInstance.forceAlign(); - } - }; - - Trigger.prototype.fireEvents = function fireEvents(type, e) { - var childCallback = this.props.children.props[type]; - if (childCallback) { - childCallback(e); - } - var callback = this.props[type]; - if (callback) { - callback(e); - } - }; - - Trigger.prototype.close = function close() { - this.setPopupVisible(false); - }; - - Trigger.prototype.render = function render() { - var _this3 = this; - - var popupVisible = this.state.popupVisible; - var _props8 = this.props, - children = _props8.children, - forceRender = _props8.forceRender, - alignPoint = _props8.alignPoint, - className = _props8.className; - - var child = _react2['default'].Children.only(children); - var newChildProps = { key: 'trigger' }; - - if (this.isContextMenuToShow()) { - newChildProps.onContextMenu = this.onContextMenu; - } else { - newChildProps.onContextMenu = this.createTwoChains('onContextMenu'); - } - - if (this.isClickToHide() || this.isClickToShow()) { - newChildProps.onClick = this.onClick; - newChildProps.onMouseDown = this.onMouseDown; - newChildProps.onTouchStart = this.onTouchStart; - } else { - newChildProps.onClick = this.createTwoChains('onClick'); - newChildProps.onMouseDown = this.createTwoChains('onMouseDown'); - newChildProps.onTouchStart = this.createTwoChains('onTouchStart'); - } - if (this.isMouseEnterToShow()) { - newChildProps.onMouseEnter = this.onMouseEnter; - if (alignPoint) { - newChildProps.onMouseMove = this.onMouseMove; - } - } else { - newChildProps.onMouseEnter = this.createTwoChains('onMouseEnter'); - } - if (this.isMouseLeaveToHide()) { - newChildProps.onMouseLeave = this.onMouseLeave; - } else { - newChildProps.onMouseLeave = this.createTwoChains('onMouseLeave'); - } - if (this.isFocusToShow() || this.isBlurToHide()) { - newChildProps.onFocus = this.onFocus; - newChildProps.onBlur = this.onBlur; - } else { - newChildProps.onFocus = this.createTwoChains('onFocus'); - newChildProps.onBlur = this.createTwoChains('onBlur'); - } - - var childrenClassName = (0, _classnames2['default'])(child && child.props && child.props.className, className); - if (childrenClassName) { - newChildProps.className = childrenClassName; - } - var trigger = _react2['default'].cloneElement(child, newChildProps); - - if (!IS_REACT_16) { - return _react2['default'].createElement( - _ContainerRender2['default'], - { - parent: this, - visible: popupVisible, - autoMount: false, - forceRender: forceRender, - getComponent: this.getComponent, - getContainer: this.getContainer - }, - function (_ref2) { - var renderComponent = _ref2.renderComponent; - - _this3.renderComponent = renderComponent; - return trigger; - } - ); - } - - var portal = void 0; - // prevent unmounting after it's rendered - if (popupVisible || this._component || forceRender) { - portal = _react2['default'].createElement( - _Portal2['default'], - { key: 'portal', getContainer: this.getContainer, didUpdate: this.handlePortalUpdate }, - this.getComponent() - ); - } - - return [trigger, portal]; - }; - - return Trigger; - }(_react2['default'].Component); - - Trigger.propTypes = { - children: _propTypes2['default'].any, - action: _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].arrayOf(_propTypes2['default'].string)]), - showAction: _propTypes2['default'].any, - hideAction: _propTypes2['default'].any, - getPopupClassNameFromAlign: _propTypes2['default'].any, - onPopupVisibleChange: _propTypes2['default'].func, - afterPopupVisibleChange: _propTypes2['default'].func, - popup: _propTypes2['default'].oneOfType([_propTypes2['default'].node, _propTypes2['default'].func]).isRequired, - popupStyle: _propTypes2['default'].object, - prefixCls: _propTypes2['default'].string, - popupClassName: _propTypes2['default'].string, - className: _propTypes2['default'].string, - popupPlacement: _propTypes2['default'].string, - builtinPlacements: _propTypes2['default'].object, - popupTransitionName: _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].object]), - popupAnimation: _propTypes2['default'].any, - mouseEnterDelay: _propTypes2['default'].number, - mouseLeaveDelay: _propTypes2['default'].number, - zIndex: _propTypes2['default'].number, - focusDelay: _propTypes2['default'].number, - blurDelay: _propTypes2['default'].number, - getPopupContainer: _propTypes2['default'].func, - getDocument: _propTypes2['default'].func, - forceRender: _propTypes2['default'].bool, - destroyPopupOnHide: _propTypes2['default'].bool, - mask: _propTypes2['default'].bool, - maskClosable: _propTypes2['default'].bool, - onPopupAlign: _propTypes2['default'].func, - popupAlign: _propTypes2['default'].object, - popupVisible: _propTypes2['default'].bool, - defaultPopupVisible: _propTypes2['default'].bool, - maskTransitionName: _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].object]), - maskAnimation: _propTypes2['default'].string, - stretch: _propTypes2['default'].string, - alignPoint: _propTypes2['default'].bool // Maybe we can support user pass position in the future - }; - Trigger.contextTypes = contextTypes; - Trigger.childContextTypes = contextTypes; - Trigger.defaultProps = { - prefixCls: 'rc-trigger-popup', - getPopupClassNameFromAlign: returnEmptyString, - getDocument: returnDocument, - onPopupVisibleChange: noop, - afterPopupVisibleChange: noop, - onPopupAlign: noop, - popupClassName: '', - mouseEnterDelay: 0, - mouseLeaveDelay: 0.1, - focusDelay: 0, - blurDelay: 0.15, - popupStyle: {}, - destroyPopupOnHide: false, - popupAlign: {}, - defaultPopupVisible: false, - mask: false, - maskClosable: true, - action: [], - showAction: [], - hideAction: [] - }; - - var _initialiseProps = function _initialiseProps() { - var _this4 = this; - - this.onMouseEnter = function (e) { - var mouseEnterDelay = _this4.props.mouseEnterDelay; - - _this4.fireEvents('onMouseEnter', e); - _this4.delaySetPopupVisible(true, mouseEnterDelay, mouseEnterDelay ? null : e); - }; - - this.onMouseMove = function (e) { - _this4.fireEvents('onMouseMove', e); - _this4.setPoint(e); - }; - - this.onMouseLeave = function (e) { - _this4.fireEvents('onMouseLeave', e); - _this4.delaySetPopupVisible(false, _this4.props.mouseLeaveDelay); - }; - - this.onPopupMouseEnter = function () { - _this4.clearDelayTimer(); - }; - - this.onPopupMouseLeave = function (e) { - // https://github.com/react-component/trigger/pull/13 - // react bug? - if (e.relatedTarget && !e.relatedTarget.setTimeout && _this4._component && _this4._component.getPopupDomNode && (0, _contains2['default'])(_this4._component.getPopupDomNode(), e.relatedTarget)) { - return; - } - _this4.delaySetPopupVisible(false, _this4.props.mouseLeaveDelay); - }; - - this.onFocus = function (e) { - _this4.fireEvents('onFocus', e); - // incase focusin and focusout - _this4.clearDelayTimer(); - if (_this4.isFocusToShow()) { - _this4.focusTime = Date.now(); - _this4.delaySetPopupVisible(true, _this4.props.focusDelay); - } - }; - - this.onMouseDown = function (e) { - _this4.fireEvents('onMouseDown', e); - _this4.preClickTime = Date.now(); - }; - - this.onTouchStart = function (e) { - _this4.fireEvents('onTouchStart', e); - _this4.preTouchTime = Date.now(); - }; - - this.onBlur = function (e) { - _this4.fireEvents('onBlur', e); - _this4.clearDelayTimer(); - if (_this4.isBlurToHide()) { - _this4.delaySetPopupVisible(false, _this4.props.blurDelay); - } - }; - - this.onContextMenu = function (e) { - e.preventDefault(); - _this4.fireEvents('onContextMenu', e); - _this4.setPopupVisible(true, e); - }; - - this.onContextMenuClose = function () { - if (_this4.isContextMenuToShow()) { - _this4.close(); - } - }; - - this.onClick = function (event) { - _this4.fireEvents('onClick', event); - // focus will trigger click - if (_this4.focusTime) { - var preTime = void 0; - if (_this4.preClickTime && _this4.preTouchTime) { - preTime = Math.min(_this4.preClickTime, _this4.preTouchTime); - } else if (_this4.preClickTime) { - preTime = _this4.preClickTime; - } else if (_this4.preTouchTime) { - preTime = _this4.preTouchTime; - } - if (Math.abs(preTime - _this4.focusTime) < 20) { - return; - } - _this4.focusTime = 0; - } - _this4.preClickTime = 0; - _this4.preTouchTime = 0; - - // Only prevent default when all the action is click. - // https://github.com/ant-design/ant-design/issues/17043 - // https://github.com/ant-design/ant-design/issues/17291 - if (_this4.isClickToShow() && (_this4.isClickToHide() || _this4.isBlurToHide()) && event && event.preventDefault) { - event.preventDefault(); - } - var nextVisible = !_this4.state.popupVisible; - if (_this4.isClickToHide() && !nextVisible || nextVisible && _this4.isClickToShow()) { - _this4.setPopupVisible(!_this4.state.popupVisible, event); - } - }; - - this.onPopupMouseDown = function () { - var _context$rcTrigger = _this4.context.rcTrigger, - rcTrigger = _context$rcTrigger === undefined ? {} : _context$rcTrigger; - - _this4.hasPopupMouseDown = true; - - clearTimeout(_this4.mouseDownTimeout); - _this4.mouseDownTimeout = setTimeout(function () { - _this4.hasPopupMouseDown = false; - }, 0); - - if (rcTrigger.onPopupMouseDown) { - rcTrigger.onPopupMouseDown.apply(rcTrigger, arguments); - } - }; - - this.onDocumentClick = function (event) { - if (_this4.props.mask && !_this4.props.maskClosable) { - return; - } - - var target = event.target; - var root = (0, _reactDom.findDOMNode)(_this4); - if (!(0, _contains2['default'])(root, target) && !_this4.hasPopupMouseDown) { - _this4.close(); - } - }; - - this.getRootDomNode = function () { - return (0, _reactDom.findDOMNode)(_this4); - }; - - this.getPopupClassNameFromAlign = function (align) { - var className = []; - var _props9 = _this4.props, - popupPlacement = _props9.popupPlacement, - builtinPlacements = _props9.builtinPlacements, - prefixCls = _props9.prefixCls, - alignPoint = _props9.alignPoint, - getPopupClassNameFromAlign = _props9.getPopupClassNameFromAlign; - - if (popupPlacement && builtinPlacements) { - className.push((0, _utils.getAlignPopupClassName)(builtinPlacements, prefixCls, align, alignPoint)); - } - if (getPopupClassNameFromAlign) { - className.push(getPopupClassNameFromAlign(align)); - } - return className.join(' '); - }; - - this.getComponent = function () { - var _props10 = _this4.props, - prefixCls = _props10.prefixCls, - destroyPopupOnHide = _props10.destroyPopupOnHide, - popupClassName = _props10.popupClassName, - action = _props10.action, - onPopupAlign = _props10.onPopupAlign, - popupAnimation = _props10.popupAnimation, - popupTransitionName = _props10.popupTransitionName, - popupStyle = _props10.popupStyle, - mask = _props10.mask, - maskAnimation = _props10.maskAnimation, - maskTransitionName = _props10.maskTransitionName, - zIndex = _props10.zIndex, - popup = _props10.popup, - stretch = _props10.stretch, - alignPoint = _props10.alignPoint; - var _state = _this4.state, - popupVisible = _state.popupVisible, - point = _state.point; - - - var align = _this4.getPopupAlign(); - - var mouseProps = {}; - if (_this4.isMouseEnterToShow()) { - mouseProps.onMouseEnter = _this4.onPopupMouseEnter; - } - if (_this4.isMouseLeaveToHide()) { - mouseProps.onMouseLeave = _this4.onPopupMouseLeave; - } - - mouseProps.onMouseDown = _this4.onPopupMouseDown; - mouseProps.onTouchStart = _this4.onPopupMouseDown; - - return _react2['default'].createElement( - _Popup2['default'], - (0, _extends3['default'])({ - prefixCls: prefixCls, - destroyPopupOnHide: destroyPopupOnHide, - visible: popupVisible, - point: alignPoint && point, - className: popupClassName, - action: action, - align: align, - onAlign: onPopupAlign, - animation: popupAnimation, - getClassNameFromAlign: _this4.getPopupClassNameFromAlign - }, mouseProps, { - stretch: stretch, - getRootDomNode: _this4.getRootDomNode, - style: popupStyle, - mask: mask, - zIndex: zIndex, - transitionName: popupTransitionName, - maskAnimation: maskAnimation, - maskTransitionName: maskTransitionName, - ref: _this4.savePopup - }), - typeof popup === 'function' ? popup() : popup - ); - }; - - this.getContainer = function () { - var props = _this4.props; - - var popupContainer = document.createElement('div'); - // Make sure default popup container will never cause scrollbar appearing - // https://github.com/react-component/trigger/issues/41 - popupContainer.style.position = 'absolute'; - popupContainer.style.top = '0'; - popupContainer.style.left = '0'; - popupContainer.style.width = '100%'; - var mountNode = props.getPopupContainer ? props.getPopupContainer((0, _reactDom.findDOMNode)(_this4)) : props.getDocument().body; - mountNode.appendChild(popupContainer); - return popupContainer; - }; - - this.setPoint = function (point) { - var alignPoint = _this4.props.alignPoint; - - if (!alignPoint || !point) return; - - _this4.setState({ - point: { - pageX: point.pageX, - pageY: point.pageY - } - }); - }; - - this.handlePortalUpdate = function () { - if (_this4.state.prevPopupVisible !== _this4.state.popupVisible) { - _this4.props.afterPopupVisibleChange(_this4.state.popupVisible); - } - }; - - this.savePopup = function (node) { - _this4._component = node; - }; - }; - - (0, _reactLifecyclesCompat.polyfill)(Trigger); - - exports['default'] = Trigger; - module.exports = exports['default']; - -/***/ }), -/* 316 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - - exports.__esModule = true; - - var _assign = __webpack_require__(317); - - var _assign2 = _interopRequireDefault(_assign); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - exports.default = _assign2.default || function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } - - return target; - }; - -/***/ }), -/* 317 */ -/***/ (function(module, exports, __webpack_require__) { - - module.exports = { "default": __webpack_require__(147), __esModule: true }; - -/***/ }), -/* 318 */ -/***/ (function(module, exports) { - - "use strict"; - - exports.__esModule = true; - - exports.default = function (instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } - }; - -/***/ }), -/* 319 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - - exports.__esModule = true; - - var _typeof2 = __webpack_require__(320); - - var _typeof3 = _interopRequireDefault(_typeof2); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - exports.default = function (self, call) { - if (!self) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - - return call && ((typeof call === "undefined" ? "undefined" : (0, _typeof3.default)(call)) === "object" || typeof call === "function") ? call : self; - }; - -/***/ }), -/* 320 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - - exports.__esModule = true; - - var _iterator = __webpack_require__(321); - - var _iterator2 = _interopRequireDefault(_iterator); - - var _symbol = __webpack_require__(337); - - var _symbol2 = _interopRequireDefault(_symbol); - - var _typeof = typeof _symbol2.default === "function" && typeof _iterator2.default === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj; }; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) { - return typeof obj === "undefined" ? "undefined" : _typeof(obj); - } : function (obj) { - return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj); - }; - -/***/ }), -/* 321 */ -/***/ (function(module, exports, __webpack_require__) { - - module.exports = { "default": __webpack_require__(322), __esModule: true }; - -/***/ }), -/* 322 */ -/***/ (function(module, exports, __webpack_require__) { - - __webpack_require__(323); - __webpack_require__(332); - module.exports = __webpack_require__(336).f('iterator'); - - -/***/ }), -/* 323 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - var $at = __webpack_require__(324)(true); - - // 21.1.3.27 String.prototype[@@iterator]() - __webpack_require__(325)(String, 'String', function (iterated) { - this._t = String(iterated); // target - this._i = 0; // next index - // 21.1.5.2.1 %StringIteratorPrototype%.next() - }, function () { - var O = this._t; - var index = this._i; - var point; - if (index >= O.length) return { value: undefined, done: true }; - point = $at(O, index); - this._i += point.length; - return { value: point, done: false }; - }); - - -/***/ }), -/* 324 */ -/***/ (function(module, exports, __webpack_require__) { - - var toInteger = __webpack_require__(174); - var defined = __webpack_require__(171); - // true -> String#at - // false -> String#codePointAt - module.exports = function (TO_STRING) { - return function (that, pos) { - var s = String(defined(that)); - var i = toInteger(pos); - var l = s.length; - var a, b; - if (i < 0 || i >= l) return TO_STRING ? '' : undefined; - a = s.charCodeAt(i); - return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff - ? TO_STRING ? s.charAt(i) : a - : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000; - }; - }; - - -/***/ }), -/* 325 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - var LIBRARY = __webpack_require__(178); - var $export = __webpack_require__(149); - var redefine = __webpack_require__(326); - var hide = __webpack_require__(154); - var Iterators = __webpack_require__(327); - var $iterCreate = __webpack_require__(328); - var setToStringTag = __webpack_require__(329); - var getPrototypeOf = __webpack_require__(331); - var ITERATOR = __webpack_require__(330)('iterator'); - var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` - var FF_ITERATOR = '@@iterator'; - var KEYS = 'keys'; - var VALUES = 'values'; - - var returnThis = function () { return this; }; - - module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { - $iterCreate(Constructor, NAME, next); - var getMethod = function (kind) { - if (!BUGGY && kind in proto) return proto[kind]; - switch (kind) { - case KEYS: return function keys() { return new Constructor(this, kind); }; - case VALUES: return function values() { return new Constructor(this, kind); }; - } return function entries() { return new Constructor(this, kind); }; - }; - var TAG = NAME + ' Iterator'; - var DEF_VALUES = DEFAULT == VALUES; - var VALUES_BUG = false; - var proto = Base.prototype; - var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]; - var $default = $native || getMethod(DEFAULT); - var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined; - var $anyNative = NAME == 'Array' ? proto.entries || $native : $native; - var methods, key, IteratorPrototype; - // Fix native - if ($anyNative) { - IteratorPrototype = getPrototypeOf($anyNative.call(new Base())); - if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) { - // Set @@toStringTag to native iterators - setToStringTag(IteratorPrototype, TAG, true); - // fix for some old engines - if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis); - } - } - // fix Array#{values, @@iterator}.name in V8 / FF - if (DEF_VALUES && $native && $native.name !== VALUES) { - VALUES_BUG = true; - $default = function values() { return $native.call(this); }; - } - // Define iterator - if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) { - hide(proto, ITERATOR, $default); - } - // Plug for library - Iterators[NAME] = $default; - Iterators[TAG] = returnThis; - if (DEFAULT) { - methods = { - values: DEF_VALUES ? $default : getMethod(VALUES), - keys: IS_SET ? $default : getMethod(KEYS), - entries: $entries - }; - if (FORCED) for (key in methods) { - if (!(key in proto)) redefine(proto, key, methods[key]); - } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); - } - return methods; - }; - - -/***/ }), -/* 326 */ -/***/ (function(module, exports, __webpack_require__) { - - module.exports = __webpack_require__(154); - - -/***/ }), -/* 327 */ -/***/ (function(module, exports) { - - module.exports = {}; - - -/***/ }), -/* 328 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - var create = __webpack_require__(200); - var descriptor = __webpack_require__(163); - var setToStringTag = __webpack_require__(329); - var IteratorPrototype = {}; - - // 25.1.2.1.1 %IteratorPrototype%[@@iterator]() - __webpack_require__(154)(IteratorPrototype, __webpack_require__(330)('iterator'), function () { return this; }); - - module.exports = function (Constructor, NAME, next) { - Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) }); - setToStringTag(Constructor, NAME + ' Iterator'); - }; - - -/***/ }), -/* 329 */ -/***/ (function(module, exports, __webpack_require__) { - - var def = __webpack_require__(155).f; - var has = __webpack_require__(164); - var TAG = __webpack_require__(330)('toStringTag'); - - module.exports = function (it, tag, stat) { - if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag }); - }; - - -/***/ }), -/* 330 */ -/***/ (function(module, exports, __webpack_require__) { - - var store = __webpack_require__(177)('wks'); - var uid = __webpack_require__(179); - var Symbol = __webpack_require__(150).Symbol; - var USE_SYMBOL = typeof Symbol == 'function'; - - var $exports = module.exports = function (name) { - return store[name] || (store[name] = - USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); - }; - - $exports.store = store; - - -/***/ }), -/* 331 */ -/***/ (function(module, exports, __webpack_require__) { - - // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) - var has = __webpack_require__(164); - var toObject = __webpack_require__(183); - var IE_PROTO = __webpack_require__(176)('IE_PROTO'); - var ObjectProto = Object.prototype; - - module.exports = Object.getPrototypeOf || function (O) { - O = toObject(O); - if (has(O, IE_PROTO)) return O[IE_PROTO]; - if (typeof O.constructor == 'function' && O instanceof O.constructor) { - return O.constructor.prototype; - } return O instanceof Object ? ObjectProto : null; - }; - - -/***/ }), -/* 332 */ -/***/ (function(module, exports, __webpack_require__) { - - __webpack_require__(333); - var global = __webpack_require__(150); - var hide = __webpack_require__(154); - var Iterators = __webpack_require__(327); - var TO_STRING_TAG = __webpack_require__(330)('toStringTag'); - - var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' + - 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' + - 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' + - 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' + - 'TextTrackList,TouchList').split(','); - - for (var i = 0; i < DOMIterables.length; i++) { - var NAME = DOMIterables[i]; - var Collection = global[NAME]; - var proto = Collection && Collection.prototype; - if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME); - Iterators[NAME] = Iterators.Array; - } - - -/***/ }), -/* 333 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - var addToUnscopables = __webpack_require__(334); - var step = __webpack_require__(335); - var Iterators = __webpack_require__(327); - var toIObject = __webpack_require__(168); - - // 22.1.3.4 Array.prototype.entries() - // 22.1.3.13 Array.prototype.keys() - // 22.1.3.29 Array.prototype.values() - // 22.1.3.30 Array.prototype[@@iterator]() - module.exports = __webpack_require__(325)(Array, 'Array', function (iterated, kind) { - this._t = toIObject(iterated); // target - this._i = 0; // next index - this._k = kind; // kind - // 22.1.5.2.1 %ArrayIteratorPrototype%.next() - }, function () { - var O = this._t; - var kind = this._k; - var index = this._i++; - if (!O || index >= O.length) { - this._t = undefined; - return step(1); - } - if (kind == 'keys') return step(0, index); - if (kind == 'values') return step(0, O[index]); - return step(0, [index, O[index]]); - }, 'values'); - - // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7) - Iterators.Arguments = Iterators.Array; - - addToUnscopables('keys'); - addToUnscopables('values'); - addToUnscopables('entries'); - - -/***/ }), -/* 334 */ -/***/ (function(module, exports) { - - module.exports = function () { /* empty */ }; - - -/***/ }), -/* 335 */ -/***/ (function(module, exports) { - - module.exports = function (done, value) { - return { value: value, done: !!done }; - }; - - -/***/ }), -/* 336 */ -/***/ (function(module, exports, __webpack_require__) { - - exports.f = __webpack_require__(330); - - -/***/ }), -/* 337 */ -/***/ (function(module, exports, __webpack_require__) { - - module.exports = { "default": __webpack_require__(338), __esModule: true }; - -/***/ }), -/* 338 */ -/***/ (function(module, exports, __webpack_require__) { - - __webpack_require__(339); - __webpack_require__(347); - __webpack_require__(348); - __webpack_require__(349); - module.exports = __webpack_require__(151).Symbol; - - -/***/ }), -/* 339 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - // ECMAScript 6 symbols shim - var global = __webpack_require__(150); - var has = __webpack_require__(164); - var DESCRIPTORS = __webpack_require__(159); - var $export = __webpack_require__(149); - var redefine = __webpack_require__(326); - var META = __webpack_require__(340).KEY; - var $fails = __webpack_require__(160); - var shared = __webpack_require__(177); - var setToStringTag = __webpack_require__(329); - var uid = __webpack_require__(179); - var wks = __webpack_require__(330); - var wksExt = __webpack_require__(336); - var wksDefine = __webpack_require__(341); - var enumKeys = __webpack_require__(342); - var isArray = __webpack_require__(343); - var anObject = __webpack_require__(156); - var isObject = __webpack_require__(157); - var toObject = __webpack_require__(183); - var toIObject = __webpack_require__(168); - var toPrimitive = __webpack_require__(162); - var createDesc = __webpack_require__(163); - var _create = __webpack_require__(200); - var gOPNExt = __webpack_require__(344); - var $GOPD = __webpack_require__(346); - var $GOPS = __webpack_require__(181); - var $DP = __webpack_require__(155); - var $keys = __webpack_require__(166); - var gOPD = $GOPD.f; - var dP = $DP.f; - var gOPN = gOPNExt.f; - var $Symbol = global.Symbol; - var $JSON = global.JSON; - var _stringify = $JSON && $JSON.stringify; - var PROTOTYPE = 'prototype'; - var HIDDEN = wks('_hidden'); - var TO_PRIMITIVE = wks('toPrimitive'); - var isEnum = {}.propertyIsEnumerable; - var SymbolRegistry = shared('symbol-registry'); - var AllSymbols = shared('symbols'); - var OPSymbols = shared('op-symbols'); - var ObjectProto = Object[PROTOTYPE]; - var USE_NATIVE = typeof $Symbol == 'function' && !!$GOPS.f; - var QObject = global.QObject; - // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173 - var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild; - - // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687 - var setSymbolDesc = DESCRIPTORS && $fails(function () { - return _create(dP({}, 'a', { - get: function () { return dP(this, 'a', { value: 7 }).a; } - })).a != 7; - }) ? function (it, key, D) { - var protoDesc = gOPD(ObjectProto, key); - if (protoDesc) delete ObjectProto[key]; - dP(it, key, D); - if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc); - } : dP; - - var wrap = function (tag) { - var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]); - sym._k = tag; - return sym; - }; - - var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) { - return typeof it == 'symbol'; - } : function (it) { - return it instanceof $Symbol; - }; - - var $defineProperty = function defineProperty(it, key, D) { - if (it === ObjectProto) $defineProperty(OPSymbols, key, D); - anObject(it); - key = toPrimitive(key, true); - anObject(D); - if (has(AllSymbols, key)) { - if (!D.enumerable) { - if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {})); - it[HIDDEN][key] = true; - } else { - if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false; - D = _create(D, { enumerable: createDesc(0, false) }); - } return setSymbolDesc(it, key, D); - } return dP(it, key, D); - }; - var $defineProperties = function defineProperties(it, P) { - anObject(it); - var keys = enumKeys(P = toIObject(P)); - var i = 0; - var l = keys.length; - var key; - while (l > i) $defineProperty(it, key = keys[i++], P[key]); - return it; - }; - var $create = function create(it, P) { - return P === undefined ? _create(it) : $defineProperties(_create(it), P); - }; - var $propertyIsEnumerable = function propertyIsEnumerable(key) { - var E = isEnum.call(this, key = toPrimitive(key, true)); - if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false; - return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true; - }; - var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) { - it = toIObject(it); - key = toPrimitive(key, true); - if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return; - var D = gOPD(it, key); - if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true; - return D; - }; - var $getOwnPropertyNames = function getOwnPropertyNames(it) { - var names = gOPN(toIObject(it)); - var result = []; - var i = 0; - var key; - while (names.length > i) { - if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key); - } return result; - }; - var $getOwnPropertySymbols = function getOwnPropertySymbols(it) { - var IS_OP = it === ObjectProto; - var names = gOPN(IS_OP ? OPSymbols : toIObject(it)); - var result = []; - var i = 0; - var key; - while (names.length > i) { - if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]); - } return result; - }; - - // 19.4.1.1 Symbol([description]) - if (!USE_NATIVE) { - $Symbol = function Symbol() { - if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!'); - var tag = uid(arguments.length > 0 ? arguments[0] : undefined); - var $set = function (value) { - if (this === ObjectProto) $set.call(OPSymbols, value); - if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false; - setSymbolDesc(this, tag, createDesc(1, value)); - }; - if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set }); - return wrap(tag); - }; - redefine($Symbol[PROTOTYPE], 'toString', function toString() { - return this._k; - }); - - $GOPD.f = $getOwnPropertyDescriptor; - $DP.f = $defineProperty; - __webpack_require__(345).f = gOPNExt.f = $getOwnPropertyNames; - __webpack_require__(182).f = $propertyIsEnumerable; - $GOPS.f = $getOwnPropertySymbols; - - if (DESCRIPTORS && !__webpack_require__(178)) { - redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true); - } - - wksExt.f = function (name) { - return wrap(wks(name)); - }; - } - - $export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol }); - - for (var es6Symbols = ( - // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14 - 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables' - ).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]); - - for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]); - - $export($export.S + $export.F * !USE_NATIVE, 'Symbol', { - // 19.4.2.1 Symbol.for(key) - 'for': function (key) { - return has(SymbolRegistry, key += '') - ? SymbolRegistry[key] - : SymbolRegistry[key] = $Symbol(key); - }, - // 19.4.2.5 Symbol.keyFor(sym) - keyFor: function keyFor(sym) { - if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!'); - for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key; - }, - useSetter: function () { setter = true; }, - useSimple: function () { setter = false; } - }); - - $export($export.S + $export.F * !USE_NATIVE, 'Object', { - // 19.1.2.2 Object.create(O [, Properties]) - create: $create, - // 19.1.2.4 Object.defineProperty(O, P, Attributes) - defineProperty: $defineProperty, - // 19.1.2.3 Object.defineProperties(O, Properties) - defineProperties: $defineProperties, - // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P) - getOwnPropertyDescriptor: $getOwnPropertyDescriptor, - // 19.1.2.7 Object.getOwnPropertyNames(O) - getOwnPropertyNames: $getOwnPropertyNames, - // 19.1.2.8 Object.getOwnPropertySymbols(O) - getOwnPropertySymbols: $getOwnPropertySymbols - }); - - // Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives - // https://bugs.chromium.org/p/v8/issues/detail?id=3443 - var FAILS_ON_PRIMITIVES = $fails(function () { $GOPS.f(1); }); - - $export($export.S + $export.F * FAILS_ON_PRIMITIVES, 'Object', { - getOwnPropertySymbols: function getOwnPropertySymbols(it) { - return $GOPS.f(toObject(it)); - } - }); - - // 24.3.2 JSON.stringify(value [, replacer [, space]]) - $JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () { - var S = $Symbol(); - // MS Edge converts symbol values to JSON as {} - // WebKit converts symbol values to JSON as null - // V8 throws on boxed symbols - return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}'; - })), 'JSON', { - stringify: function stringify(it) { - var args = [it]; - var i = 1; - var replacer, $replacer; - while (arguments.length > i) args.push(arguments[i++]); - $replacer = replacer = args[1]; - if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined - if (!isArray(replacer)) replacer = function (key, value) { - if (typeof $replacer == 'function') value = $replacer.call(this, key, value); - if (!isSymbol(value)) return value; - }; - args[1] = replacer; - return _stringify.apply($JSON, args); - } - }); - - // 19.4.3.4 Symbol.prototype[@@toPrimitive](hint) - $Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(154)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf); - // 19.4.3.5 Symbol.prototype[@@toStringTag] - setToStringTag($Symbol, 'Symbol'); - // 20.2.1.9 Math[@@toStringTag] - setToStringTag(Math, 'Math', true); - // 24.3.3 JSON[@@toStringTag] - setToStringTag(global.JSON, 'JSON', true); - - -/***/ }), -/* 340 */ -/***/ (function(module, exports, __webpack_require__) { - - var META = __webpack_require__(179)('meta'); - var isObject = __webpack_require__(157); - var has = __webpack_require__(164); - var setDesc = __webpack_require__(155).f; - var id = 0; - var isExtensible = Object.isExtensible || function () { - return true; - }; - var FREEZE = !__webpack_require__(160)(function () { - return isExtensible(Object.preventExtensions({})); - }); - var setMeta = function (it) { - setDesc(it, META, { value: { - i: 'O' + ++id, // object ID - w: {} // weak collections IDs - } }); - }; - var fastKey = function (it, create) { - // return primitive with prefix - if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; - if (!has(it, META)) { - // can't set metadata to uncaught frozen object - if (!isExtensible(it)) return 'F'; - // not necessary to add metadata - if (!create) return 'E'; - // add missing metadata - setMeta(it); - // return object ID - } return it[META].i; - }; - var getWeak = function (it, create) { - if (!has(it, META)) { - // can't set metadata to uncaught frozen object - if (!isExtensible(it)) return true; - // not necessary to add metadata - if (!create) return false; - // add missing metadata - setMeta(it); - // return hash weak collections IDs - } return it[META].w; - }; - // add metadata on freeze-family methods calling - var onFreeze = function (it) { - if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it); - return it; - }; - var meta = module.exports = { - KEY: META, - NEED: false, - fastKey: fastKey, - getWeak: getWeak, - onFreeze: onFreeze - }; - - -/***/ }), -/* 341 */ -/***/ (function(module, exports, __webpack_require__) { - - var global = __webpack_require__(150); - var core = __webpack_require__(151); - var LIBRARY = __webpack_require__(178); - var wksExt = __webpack_require__(336); - var defineProperty = __webpack_require__(155).f; - module.exports = function (name) { - var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {}); - if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) }); - }; - - -/***/ }), -/* 342 */ -/***/ (function(module, exports, __webpack_require__) { - - // all enumerable object keys, includes symbols - var getKeys = __webpack_require__(166); - var gOPS = __webpack_require__(181); - var pIE = __webpack_require__(182); - module.exports = function (it) { - var result = getKeys(it); - var getSymbols = gOPS.f; - if (getSymbols) { - var symbols = getSymbols(it); - var isEnum = pIE.f; - var i = 0; - var key; - while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key); - } return result; - }; - - -/***/ }), -/* 343 */ -/***/ (function(module, exports, __webpack_require__) { - - // 7.2.2 IsArray(argument) - var cof = __webpack_require__(170); - module.exports = Array.isArray || function isArray(arg) { - return cof(arg) == 'Array'; - }; - - -/***/ }), -/* 344 */ -/***/ (function(module, exports, __webpack_require__) { - - // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window - var toIObject = __webpack_require__(168); - var gOPN = __webpack_require__(345).f; - var toString = {}.toString; - - var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames - ? Object.getOwnPropertyNames(window) : []; - - var getWindowNames = function (it) { - try { - return gOPN(it); - } catch (e) { - return windowNames.slice(); - } - }; - - module.exports.f = function getOwnPropertyNames(it) { - return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it)); - }; - - -/***/ }), -/* 345 */ -/***/ (function(module, exports, __webpack_require__) { - - // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) - var $keys = __webpack_require__(167); - var hiddenKeys = __webpack_require__(180).concat('length', 'prototype'); - - exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { - return $keys(O, hiddenKeys); - }; - - -/***/ }), -/* 346 */ -/***/ (function(module, exports, __webpack_require__) { - - var pIE = __webpack_require__(182); - var createDesc = __webpack_require__(163); - var toIObject = __webpack_require__(168); - var toPrimitive = __webpack_require__(162); - var has = __webpack_require__(164); - var IE8_DOM_DEFINE = __webpack_require__(158); - var gOPD = Object.getOwnPropertyDescriptor; - - exports.f = __webpack_require__(159) ? gOPD : function getOwnPropertyDescriptor(O, P) { - O = toIObject(O); - P = toPrimitive(P, true); - if (IE8_DOM_DEFINE) try { - return gOPD(O, P); - } catch (e) { /* empty */ } - if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); - }; - - -/***/ }), -/* 347 */ -/***/ (function(module, exports) { - - - -/***/ }), -/* 348 */ -/***/ (function(module, exports, __webpack_require__) { - - __webpack_require__(341)('asyncIterator'); - - -/***/ }), -/* 349 */ -/***/ (function(module, exports, __webpack_require__) { - - __webpack_require__(341)('observable'); - - -/***/ }), -/* 350 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - - exports.__esModule = true; - - var _setPrototypeOf = __webpack_require__(351); - - var _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf); - - var _create = __webpack_require__(355); - - var _create2 = _interopRequireDefault(_create); - - var _typeof2 = __webpack_require__(320); - - var _typeof3 = _interopRequireDefault(_typeof2); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - exports.default = function (subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function, not " + (typeof superClass === "undefined" ? "undefined" : (0, _typeof3.default)(superClass))); - } - - subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, { - constructor: { - value: subClass, - enumerable: false, - writable: true, - configurable: true - } - }); - if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass; - }; - -/***/ }), -/* 351 */ -/***/ (function(module, exports, __webpack_require__) { - - module.exports = { "default": __webpack_require__(352), __esModule: true }; - -/***/ }), -/* 352 */ -/***/ (function(module, exports, __webpack_require__) { - - __webpack_require__(353); - module.exports = __webpack_require__(151).Object.setPrototypeOf; - - -/***/ }), -/* 353 */ -/***/ (function(module, exports, __webpack_require__) { - - // 19.1.3.19 Object.setPrototypeOf(O, proto) - var $export = __webpack_require__(149); - $export($export.S, 'Object', { setPrototypeOf: __webpack_require__(354).set }); - - -/***/ }), -/* 354 */ -/***/ (function(module, exports, __webpack_require__) { - - // Works with __proto__ only. Old v8 can't work with null proto objects. - /* eslint-disable no-proto */ - var isObject = __webpack_require__(157); - var anObject = __webpack_require__(156); - var check = function (O, proto) { - anObject(O); - if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!"); - }; - module.exports = { - set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line - function (test, buggy, set) { - try { - set = __webpack_require__(152)(Function.call, __webpack_require__(346).f(Object.prototype, '__proto__').set, 2); - set(test, []); - buggy = !(test instanceof Array); - } catch (e) { buggy = true; } - return function setPrototypeOf(O, proto) { - check(O, proto); - if (buggy) O.__proto__ = proto; - else set(O, proto); - return O; - }; - }({}, false) : undefined), - check: check - }; - - -/***/ }), -/* 355 */ -/***/ (function(module, exports, __webpack_require__) { - - module.exports = { "default": __webpack_require__(198), __esModule: true }; - -/***/ }), -/* 356 */ -/***/ (function(module, exports) { - - "use strict"; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = contains; - - function contains(root, n) { - var node = n; - - while (node) { - if (node === root) { - return true; - } - - node = node.parentNode; - } - - return false; - } - -/***/ }), -/* 357 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = addEventListenerWrap; - - var _addDomEventListener = _interopRequireDefault(__webpack_require__(41)); - - var _reactDom = _interopRequireDefault(__webpack_require__(2)); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function addEventListenerWrap(target, eventType, cb, option) { - /* eslint camelcase: 2 */ - var callback = _reactDom.default.unstable_batchedUpdates ? function run(e) { - _reactDom.default.unstable_batchedUpdates(cb, e); - } : cb; - return (0, _addDomEventListener.default)(target, eventType, callback, option); - } - -/***/ }), -/* 358 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(__webpack_require__(1)); - - var _reactDom = _interopRequireDefault(__webpack_require__(2)); - - var _propTypes = _interopRequireDefault(__webpack_require__(6)); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } - - function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } - - var ContainerRender = /*#__PURE__*/function (_React$Component) { - _inherits(ContainerRender, _React$Component); - - var _super = _createSuper(ContainerRender); - - function ContainerRender() { - var _this; - - _classCallCheck(this, ContainerRender); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = _super.call.apply(_super, [this].concat(args)); - - _this.removeContainer = function () { - if (_this.container) { - _reactDom.default.unmountComponentAtNode(_this.container); - - _this.container.parentNode.removeChild(_this.container); - - _this.container = null; - } - }; - - _this.renderComponent = function (props, ready) { - var _this$props = _this.props, - visible = _this$props.visible, - getComponent = _this$props.getComponent, - forceRender = _this$props.forceRender, - getContainer = _this$props.getContainer, - parent = _this$props.parent; - - if (visible || parent._component || forceRender) { - if (!_this.container) { - _this.container = getContainer(); - } - - _reactDom.default.unstable_renderSubtreeIntoContainer(parent, getComponent(props), _this.container, function callback() { - if (ready) { - ready.call(this); - } - }); - } - }; - - return _this; - } - - _createClass(ContainerRender, [{ - key: "componentDidMount", - value: function componentDidMount() { - if (this.props.autoMount) { - this.renderComponent(); - } - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate() { - if (this.props.autoMount) { - this.renderComponent(); - } - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - if (this.props.autoDestroy) { - this.removeContainer(); - } - } - }, { - key: "render", - value: function render() { - return this.props.children({ - renderComponent: this.renderComponent, - removeContainer: this.removeContainer - }); - } - }]); - - return ContainerRender; - }(_react.default.Component); - - exports.default = ContainerRender; - ContainerRender.propTypes = { - autoMount: _propTypes.default.bool, - autoDestroy: _propTypes.default.bool, - visible: _propTypes.default.bool, - forceRender: _propTypes.default.bool, - parent: _propTypes.default.any, - getComponent: _propTypes.default.func.isRequired, - getContainer: _propTypes.default.func.isRequired, - children: _propTypes.default.func.isRequired - }; - ContainerRender.defaultProps = { - autoMount: true, - autoDestroy: true, - forceRender: false - }; - -/***/ }), -/* 359 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(__webpack_require__(1)); - - var _reactDom = _interopRequireDefault(__webpack_require__(2)); - - var _propTypes = _interopRequireDefault(__webpack_require__(6)); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } - - function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } - - var Portal = /*#__PURE__*/function (_React$Component) { - _inherits(Portal, _React$Component); - - var _super = _createSuper(Portal); - - function Portal() { - _classCallCheck(this, Portal); - - return _super.apply(this, arguments); - } - - _createClass(Portal, [{ - key: "componentDidMount", - value: function componentDidMount() { - this.createContainer(); - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - var didUpdate = this.props.didUpdate; - - if (didUpdate) { - didUpdate(prevProps); - } - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - this.removeContainer(); - } - }, { - key: "createContainer", - value: function createContainer() { - this._container = this.props.getContainer(); - this.forceUpdate(); - } - }, { - key: "removeContainer", - value: function removeContainer() { - if (this._container) { - this._container.parentNode.removeChild(this._container); - } - } - }, { - key: "render", - value: function render() { - if (this._container) { - return _reactDom.default.createPortal(this.props.children, this._container); - } - - return null; - } - }]); - - return Portal; - }(_react.default.Component); - - exports.default = Portal; - Portal.propTypes = { - getContainer: _propTypes.default.func.isRequired, - children: _propTypes.default.node.isRequired, - didUpdate: _propTypes.default.func - }; - -/***/ }), -/* 360 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - exports.__esModule = true; - - var _extends2 = __webpack_require__(316); - - var _extends3 = _interopRequireDefault(_extends2); - - exports.getAlignFromPlacement = getAlignFromPlacement; - exports.getAlignPopupClassName = getAlignPopupClassName; - exports.saveRef = saveRef; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - function isPointsEq(a1, a2, isAlignPoint) { - if (isAlignPoint) { - return a1[0] === a2[0]; - } - return a1[0] === a2[0] && a1[1] === a2[1]; - } - - function getAlignFromPlacement(builtinPlacements, placementStr, align) { - var baseAlign = builtinPlacements[placementStr] || {}; - return (0, _extends3['default'])({}, baseAlign, align); - } - - function getAlignPopupClassName(builtinPlacements, prefixCls, align, isAlignPoint) { - var points = align.points; - for (var placement in builtinPlacements) { - if (builtinPlacements.hasOwnProperty(placement)) { - if (isPointsEq(builtinPlacements[placement].points, points, isAlignPoint)) { - return prefixCls + '-placement-' + placement; - } - } - } - return ''; - } - - function saveRef(name, component) { - this[name] = component; - } - -/***/ }), -/* 361 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - exports.__esModule = true; - - var _extends2 = __webpack_require__(316); - - var _extends3 = _interopRequireDefault(_extends2); - - var _classCallCheck2 = __webpack_require__(318); - - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - - var _possibleConstructorReturn2 = __webpack_require__(319); - - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - - var _inherits2 = __webpack_require__(350); - - var _inherits3 = _interopRequireDefault(_inherits2); - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _propTypes = __webpack_require__(6); - - var _propTypes2 = _interopRequireDefault(_propTypes); - - var _reactDom = __webpack_require__(2); - - var _reactDom2 = _interopRequireDefault(_reactDom); - - var _rcAlign = __webpack_require__(362); - - var _rcAlign2 = _interopRequireDefault(_rcAlign); - - var _rcAnimate = __webpack_require__(369); - - var _rcAnimate2 = _interopRequireDefault(_rcAnimate); - - var _PopupInner = __webpack_require__(377); - - var _PopupInner2 = _interopRequireDefault(_PopupInner); - - var _LazyRenderBox = __webpack_require__(378); - - var _LazyRenderBox2 = _interopRequireDefault(_LazyRenderBox); - - var _utils = __webpack_require__(360); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - var Popup = function (_Component) { - (0, _inherits3['default'])(Popup, _Component); - - function Popup(props) { - (0, _classCallCheck3['default'])(this, Popup); - - var _this = (0, _possibleConstructorReturn3['default'])(this, _Component.call(this, props)); - - _initialiseProps.call(_this); - - _this.state = { - // Used for stretch - stretchChecked: false, - targetWidth: undefined, - targetHeight: undefined - }; - - _this.savePopupRef = _utils.saveRef.bind(_this, 'popupInstance'); - _this.saveAlignRef = _utils.saveRef.bind(_this, 'alignInstance'); - return _this; - } - - Popup.prototype.componentDidMount = function componentDidMount() { - this.rootNode = this.getPopupDomNode(); - this.setStretchSize(); - }; - - Popup.prototype.componentDidUpdate = function componentDidUpdate() { - this.setStretchSize(); - }; - - // Record size if stretch needed - - - Popup.prototype.getPopupDomNode = function getPopupDomNode() { - return _reactDom2['default'].findDOMNode(this.popupInstance); - }; - - // `target` on `rc-align` can accept as a function to get the bind element or a point. - // ref: https://www.npmjs.com/package/rc-align - - - Popup.prototype.getMaskTransitionName = function getMaskTransitionName() { - var props = this.props; - var transitionName = props.maskTransitionName; - var animation = props.maskAnimation; - if (!transitionName && animation) { - transitionName = props.prefixCls + '-' + animation; - } - return transitionName; - }; - - Popup.prototype.getTransitionName = function getTransitionName() { - var props = this.props; - var transitionName = props.transitionName; - if (!transitionName && props.animation) { - transitionName = props.prefixCls + '-' + props.animation; - } - return transitionName; - }; - - Popup.prototype.getClassName = function getClassName(currentAlignClassName) { - return this.props.prefixCls + ' ' + this.props.className + ' ' + currentAlignClassName; - }; - - Popup.prototype.getPopupElement = function getPopupElement() { - var _this2 = this; - - var savePopupRef = this.savePopupRef; - var _state = this.state, - stretchChecked = _state.stretchChecked, - targetHeight = _state.targetHeight, - targetWidth = _state.targetWidth; - var _props = this.props, - align = _props.align, - visible = _props.visible, - prefixCls = _props.prefixCls, - style = _props.style, - getClassNameFromAlign = _props.getClassNameFromAlign, - destroyPopupOnHide = _props.destroyPopupOnHide, - stretch = _props.stretch, - children = _props.children, - onMouseEnter = _props.onMouseEnter, - onMouseLeave = _props.onMouseLeave, - onMouseDown = _props.onMouseDown, - onTouchStart = _props.onTouchStart; - - var className = this.getClassName(this.currentAlignClassName || getClassNameFromAlign(align)); - var hiddenClassName = prefixCls + '-hidden'; - - if (!visible) { - this.currentAlignClassName = null; - } - - var sizeStyle = {}; - if (stretch) { - // Stretch with target - if (stretch.indexOf('height') !== -1) { - sizeStyle.height = targetHeight; - } else if (stretch.indexOf('minHeight') !== -1) { - sizeStyle.minHeight = targetHeight; - } - if (stretch.indexOf('width') !== -1) { - sizeStyle.width = targetWidth; - } else if (stretch.indexOf('minWidth') !== -1) { - sizeStyle.minWidth = targetWidth; - } - - // Delay force align to makes ui smooth - if (!stretchChecked) { - sizeStyle.visibility = 'hidden'; - setTimeout(function () { - if (_this2.alignInstance) { - _this2.alignInstance.forceAlign(); - } - }, 0); - } - } - - var newStyle = (0, _extends3['default'])({}, sizeStyle, style, this.getZIndexStyle()); - - var popupInnerProps = { - className: className, - prefixCls: prefixCls, - ref: savePopupRef, - onMouseEnter: onMouseEnter, - onMouseLeave: onMouseLeave, - onMouseDown: onMouseDown, - onTouchStart: onTouchStart, - style: newStyle - }; - if (destroyPopupOnHide) { - return _react2['default'].createElement( - _rcAnimate2['default'], - { - component: '', - exclusive: true, - transitionAppear: true, - transitionName: this.getTransitionName() - }, - visible ? _react2['default'].createElement( - _rcAlign2['default'], - { - target: this.getAlignTarget(), - key: 'popup', - ref: this.saveAlignRef, - monitorWindowResize: true, - align: align, - onAlign: this.onAlign - }, - _react2['default'].createElement( - _PopupInner2['default'], - (0, _extends3['default'])({ - visible: true - }, popupInnerProps), - children - ) - ) : null - ); - } - - return _react2['default'].createElement( - _rcAnimate2['default'], - { - component: '', - exclusive: true, - transitionAppear: true, - transitionName: this.getTransitionName(), - showProp: 'xVisible' - }, - _react2['default'].createElement( - _rcAlign2['default'], - { - target: this.getAlignTarget(), - key: 'popup', - ref: this.saveAlignRef, - monitorWindowResize: true, - xVisible: visible, - childrenProps: { visible: 'xVisible' }, - disabled: !visible, - align: align, - onAlign: this.onAlign - }, - _react2['default'].createElement( - _PopupInner2['default'], - (0, _extends3['default'])({ - hiddenClassName: hiddenClassName - }, popupInnerProps), - children - ) - ) - ); - }; - - Popup.prototype.getZIndexStyle = function getZIndexStyle() { - var style = {}; - var props = this.props; - if (props.zIndex !== undefined) { - style.zIndex = props.zIndex; - } - return style; - }; - - Popup.prototype.getMaskElement = function getMaskElement() { - var props = this.props; - var maskElement = void 0; - if (props.mask) { - var maskTransition = this.getMaskTransitionName(); - maskElement = _react2['default'].createElement(_LazyRenderBox2['default'], { - style: this.getZIndexStyle(), - key: 'mask', - className: props.prefixCls + '-mask', - hiddenClassName: props.prefixCls + '-mask-hidden', - visible: props.visible - }); - if (maskTransition) { - maskElement = _react2['default'].createElement( - _rcAnimate2['default'], - { - key: 'mask', - showProp: 'visible', - transitionAppear: true, - component: '', - transitionName: maskTransition - }, - maskElement - ); - } - } - return maskElement; - }; - - Popup.prototype.render = function render() { - return _react2['default'].createElement( - 'div', - null, - this.getMaskElement(), - this.getPopupElement() - ); - }; - - return Popup; - }(_react.Component); - - Popup.propTypes = { - visible: _propTypes2['default'].bool, - style: _propTypes2['default'].object, - getClassNameFromAlign: _propTypes2['default'].func, - onAlign: _propTypes2['default'].func, - getRootDomNode: _propTypes2['default'].func, - align: _propTypes2['default'].any, - destroyPopupOnHide: _propTypes2['default'].bool, - className: _propTypes2['default'].string, - prefixCls: _propTypes2['default'].string, - onMouseEnter: _propTypes2['default'].func, - onMouseLeave: _propTypes2['default'].func, - onMouseDown: _propTypes2['default'].func, - onTouchStart: _propTypes2['default'].func, - stretch: _propTypes2['default'].string, - children: _propTypes2['default'].node, - point: _propTypes2['default'].shape({ - pageX: _propTypes2['default'].number, - pageY: _propTypes2['default'].number - }) - }; - - var _initialiseProps = function _initialiseProps() { - var _this3 = this; - - this.onAlign = function (popupDomNode, align) { - var props = _this3.props; - var currentAlignClassName = props.getClassNameFromAlign(align); - // FIX: https://github.com/react-component/trigger/issues/56 - // FIX: https://github.com/react-component/tooltip/issues/79 - if (_this3.currentAlignClassName !== currentAlignClassName) { - _this3.currentAlignClassName = currentAlignClassName; - popupDomNode.className = _this3.getClassName(currentAlignClassName); - } - props.onAlign(popupDomNode, align); - }; - - this.setStretchSize = function () { - var _props2 = _this3.props, - stretch = _props2.stretch, - getRootDomNode = _props2.getRootDomNode, - visible = _props2.visible; - var _state2 = _this3.state, - stretchChecked = _state2.stretchChecked, - targetHeight = _state2.targetHeight, - targetWidth = _state2.targetWidth; - - - if (!stretch || !visible) { - if (stretchChecked) { - _this3.setState({ stretchChecked: false }); - } - return; - } - - var $ele = getRootDomNode(); - if (!$ele) return; - - var height = $ele.offsetHeight; - var width = $ele.offsetWidth; - - if (targetHeight !== height || targetWidth !== width || !stretchChecked) { - _this3.setState({ - stretchChecked: true, - targetHeight: height, - targetWidth: width - }); - } - }; - - this.getTargetElement = function () { - return _this3.props.getRootDomNode(); - }; - - this.getAlignTarget = function () { - var point = _this3.props.point; - - if (point) { - return point; - } - return _this3.getTargetElement; - }; - }; - - exports['default'] = Popup; - module.exports = exports['default']; - -/***/ }), -/* 362 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _Align = __webpack_require__(363); - - var _Align2 = _interopRequireDefault(_Align); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - exports['default'] = _Align2['default']; // export this package's api - - module.exports = exports['default']; - -/***/ }), -/* 363 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _classCallCheck2 = __webpack_require__(318); - - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - - var _createClass2 = __webpack_require__(364); - - var _createClass3 = _interopRequireDefault(_createClass2); - - var _possibleConstructorReturn2 = __webpack_require__(319); - - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - - var _inherits2 = __webpack_require__(350); - - var _inherits3 = _interopRequireDefault(_inherits2); - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _propTypes = __webpack_require__(6); - - var _propTypes2 = _interopRequireDefault(_propTypes); - - var _reactDom = __webpack_require__(2); - - var _reactDom2 = _interopRequireDefault(_reactDom); - - var _domAlign = __webpack_require__(51); - - var _addEventListener = __webpack_require__(357); - - var _addEventListener2 = _interopRequireDefault(_addEventListener); - - var _util = __webpack_require__(368); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - function getElement(func) { - if (typeof func !== 'function' || !func) return null; - return func(); - } - - function getPoint(point) { - if (typeof point !== 'object' || !point) return null; - return point; - } - - var Align = function (_Component) { - (0, _inherits3['default'])(Align, _Component); - - function Align() { - var _ref; - - var _temp, _this, _ret; - - (0, _classCallCheck3['default'])(this, Align); - - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _ret = (_temp = (_this = (0, _possibleConstructorReturn3['default'])(this, (_ref = Align.__proto__ || Object.getPrototypeOf(Align)).call.apply(_ref, [this].concat(args))), _this), _this.forceAlign = function () { - var _this$props = _this.props, - disabled = _this$props.disabled, - target = _this$props.target, - align = _this$props.align, - onAlign = _this$props.onAlign; - - if (!disabled && target) { - var source = _reactDom2['default'].findDOMNode(_this); - - var result = void 0; - var element = getElement(target); - var point = getPoint(target); - - // IE lose focus after element realign - // We should record activeElement and restore later - var activeElement = document.activeElement; - - if (element) { - result = (0, _domAlign.alignElement)(source, element, align); - } else if (point) { - result = (0, _domAlign.alignPoint)(source, point, align); - } - - (0, _util.restoreFocus)(activeElement, source); - - if (onAlign) { - onAlign(source, result); - } - } - }, _temp), (0, _possibleConstructorReturn3['default'])(_this, _ret); - } - - (0, _createClass3['default'])(Align, [{ - key: 'componentDidMount', - value: function componentDidMount() { - var props = this.props; - // if parent ref not attached .... use document.getElementById - this.forceAlign(); - if (!props.disabled && props.monitorWindowResize) { - this.startMonitorWindowResize(); - } - } - }, { - key: 'componentDidUpdate', - value: function componentDidUpdate(prevProps) { - var reAlign = false; - var props = this.props; - - if (!props.disabled) { - var source = _reactDom2['default'].findDOMNode(this); - var sourceRect = source ? source.getBoundingClientRect() : null; - - if (prevProps.disabled) { - reAlign = true; - } else { - var lastElement = getElement(prevProps.target); - var currentElement = getElement(props.target); - var lastPoint = getPoint(prevProps.target); - var currentPoint = getPoint(props.target); - - if ((0, _util.isWindow)(lastElement) && (0, _util.isWindow)(currentElement)) { - // Skip if is window - reAlign = false; - } else if (lastElement !== currentElement || // Element change - lastElement && !currentElement && currentPoint || // Change from element to point - lastPoint && currentPoint && currentElement || // Change from point to element - currentPoint && !(0, _util.isSamePoint)(lastPoint, currentPoint)) { - reAlign = true; - } - - // If source element size changed - var preRect = this.sourceRect || {}; - if (!reAlign && source && (!(0, _util.isSimilarValue)(preRect.width, sourceRect.width) || !(0, _util.isSimilarValue)(preRect.height, sourceRect.height))) { - reAlign = true; - } - } - - this.sourceRect = sourceRect; - } - - if (reAlign) { - this.forceAlign(); - } - - if (props.monitorWindowResize && !props.disabled) { - this.startMonitorWindowResize(); - } else { - this.stopMonitorWindowResize(); - } - } - }, { - key: 'componentWillUnmount', - value: function componentWillUnmount() { - this.stopMonitorWindowResize(); - } - }, { - key: 'startMonitorWindowResize', - value: function startMonitorWindowResize() { - if (!this.resizeHandler) { - this.bufferMonitor = (0, _util.buffer)(this.forceAlign, this.props.monitorBufferTime); - this.resizeHandler = (0, _addEventListener2['default'])(window, 'resize', this.bufferMonitor); - } - } - }, { - key: 'stopMonitorWindowResize', - value: function stopMonitorWindowResize() { - if (this.resizeHandler) { - this.bufferMonitor.clear(); - this.resizeHandler.remove(); - this.resizeHandler = null; - } - } - }, { - key: 'render', - value: function render() { - var _this2 = this; - - var _props = this.props, - childrenProps = _props.childrenProps, - children = _props.children; - - var child = _react2['default'].Children.only(children); - if (childrenProps) { - var newProps = {}; - var propList = Object.keys(childrenProps); - propList.forEach(function (prop) { - newProps[prop] = _this2.props[childrenProps[prop]]; - }); - - return _react2['default'].cloneElement(child, newProps); - } - return child; - } - }]); - return Align; - }(_react.Component); - - Align.propTypes = { - childrenProps: _propTypes2['default'].object, - align: _propTypes2['default'].object.isRequired, - target: _propTypes2['default'].oneOfType([_propTypes2['default'].func, _propTypes2['default'].shape({ - clientX: _propTypes2['default'].number, - clientY: _propTypes2['default'].number, - pageX: _propTypes2['default'].number, - pageY: _propTypes2['default'].number - })]), - onAlign: _propTypes2['default'].func, - monitorBufferTime: _propTypes2['default'].number, - monitorWindowResize: _propTypes2['default'].bool, - disabled: _propTypes2['default'].bool, - children: _propTypes2['default'].any - }; - Align.defaultProps = { - target: function target() { - return window; - }, - monitorBufferTime: 50, - monitorWindowResize: false, - disabled: false - }; - exports['default'] = Align; - module.exports = exports['default']; - -/***/ }), -/* 364 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - - exports.__esModule = true; - - var _defineProperty = __webpack_require__(365); - - var _defineProperty2 = _interopRequireDefault(_defineProperty); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - exports.default = function () { - function defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - (0, _defineProperty2.default)(target, descriptor.key, descriptor); - } - } - - return function (Constructor, protoProps, staticProps) { - if (protoProps) defineProperties(Constructor.prototype, protoProps); - if (staticProps) defineProperties(Constructor, staticProps); - return Constructor; - }; - }(); - -/***/ }), -/* 365 */ -/***/ (function(module, exports, __webpack_require__) { - - module.exports = { "default": __webpack_require__(366), __esModule: true }; - -/***/ }), -/* 366 */ -/***/ (function(module, exports, __webpack_require__) { - - __webpack_require__(367); - var $Object = __webpack_require__(151).Object; - module.exports = function defineProperty(it, key, desc) { - return $Object.defineProperty(it, key, desc); - }; - - -/***/ }), -/* 367 */ -/***/ (function(module, exports, __webpack_require__) { - - var $export = __webpack_require__(149); - // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes) - $export($export.S + $export.F * !__webpack_require__(159), 'Object', { defineProperty: __webpack_require__(155).f }); - - -/***/ }), -/* 368 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.buffer = buffer; - exports.isSamePoint = isSamePoint; - exports.isWindow = isWindow; - exports.isSimilarValue = isSimilarValue; - exports.restoreFocus = restoreFocus; - - var _contains = __webpack_require__(356); - - var _contains2 = _interopRequireDefault(_contains); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - function buffer(fn, ms) { - var timer = void 0; - - function clear() { - if (timer) { - clearTimeout(timer); - timer = null; - } - } - - function bufferFn() { - clear(); - timer = setTimeout(fn, ms); - } - - bufferFn.clear = clear; - - return bufferFn; - } - - function isSamePoint(prev, next) { - if (prev === next) return true; - if (!prev || !next) return false; - - if ('pageX' in next && 'pageY' in next) { - return prev.pageX === next.pageX && prev.pageY === next.pageY; - } - - if ('clientX' in next && 'clientY' in next) { - return prev.clientX === next.clientX && prev.clientY === next.clientY; - } - - return false; - } - - function isWindow(obj) { - return obj && typeof obj === 'object' && obj.window === obj; - } - - function isSimilarValue(val1, val2) { - var int1 = Math.floor(val1); - var int2 = Math.floor(val2); - return Math.abs(int1 - int2) <= 1; - } - - function restoreFocus(activeElement, container) { - // Focus back if is in the container - if (activeElement !== document.activeElement && (0, _contains2['default'])(container, activeElement)) { - activeElement.focus(); - } - } - -/***/ }), -/* 369 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _extends2 = __webpack_require__(316); - - var _extends3 = _interopRequireDefault(_extends2); - - var _defineProperty2 = __webpack_require__(370); - - var _defineProperty3 = _interopRequireDefault(_defineProperty2); - - var _classCallCheck2 = __webpack_require__(318); - - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - - var _createClass2 = __webpack_require__(364); - - var _createClass3 = _interopRequireDefault(_createClass2); - - var _possibleConstructorReturn2 = __webpack_require__(319); - - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - - var _inherits2 = __webpack_require__(350); - - var _inherits3 = _interopRequireDefault(_inherits2); - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _propTypes = __webpack_require__(6); - - var _propTypes2 = _interopRequireDefault(_propTypes); - - var _unsafeLifecyclesPolyfill = __webpack_require__(371); - - var _unsafeLifecyclesPolyfill2 = _interopRequireDefault(_unsafeLifecyclesPolyfill); - - var _ChildrenUtils = __webpack_require__(372); - - var _AnimateChild = __webpack_require__(373); - - var _AnimateChild2 = _interopRequireDefault(_AnimateChild); - - var _animate = __webpack_require__(376); - - var _animate2 = _interopRequireDefault(_animate); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - var defaultKey = 'rc_animate_' + Date.now(); - - function getChildrenFromProps(props) { - var children = props.children; - if (_react2['default'].isValidElement(children)) { - if (!children.key) { - return _react2['default'].cloneElement(children, { - key: defaultKey - }); - } - } - return children; - } - - function noop() {} - - var Animate = function (_React$Component) { - (0, _inherits3['default'])(Animate, _React$Component); - - // eslint-disable-line - - function Animate(props) { - (0, _classCallCheck3['default'])(this, Animate); - - var _this = (0, _possibleConstructorReturn3['default'])(this, (Animate.__proto__ || Object.getPrototypeOf(Animate)).call(this, props)); - - _initialiseProps.call(_this); - - _this.currentlyAnimatingKeys = {}; - _this.keysToEnter = []; - _this.keysToLeave = []; - - _this.state = { - children: (0, _ChildrenUtils.toArrayChildren)(getChildrenFromProps(props)) - }; - - _this.childrenRefs = {}; - return _this; - } - - (0, _createClass3['default'])(Animate, [{ - key: 'componentDidMount', - value: function componentDidMount() { - var _this2 = this; - - var showProp = this.props.showProp; - var children = this.state.children; - if (showProp) { - children = children.filter(function (child) { - return !!child.props[showProp]; - }); - } - children.forEach(function (child) { - if (child) { - _this2.performAppear(child.key); - } - }); - } - }, { - key: 'componentWillReceiveProps', - value: function componentWillReceiveProps(nextProps) { - var _this3 = this; - - this.nextProps = nextProps; - var nextChildren = (0, _ChildrenUtils.toArrayChildren)(getChildrenFromProps(nextProps)); - var props = this.props; - // exclusive needs immediate response - if (props.exclusive) { - Object.keys(this.currentlyAnimatingKeys).forEach(function (key) { - _this3.stop(key); - }); - } - var showProp = props.showProp; - var currentlyAnimatingKeys = this.currentlyAnimatingKeys; - // last props children if exclusive - var currentChildren = props.exclusive ? (0, _ChildrenUtils.toArrayChildren)(getChildrenFromProps(props)) : this.state.children; - // in case destroy in showProp mode - var newChildren = []; - if (showProp) { - currentChildren.forEach(function (currentChild) { - var nextChild = currentChild && (0, _ChildrenUtils.findChildInChildrenByKey)(nextChildren, currentChild.key); - var newChild = void 0; - if ((!nextChild || !nextChild.props[showProp]) && currentChild.props[showProp]) { - newChild = _react2['default'].cloneElement(nextChild || currentChild, (0, _defineProperty3['default'])({}, showProp, true)); - } else { - newChild = nextChild; - } - if (newChild) { - newChildren.push(newChild); - } - }); - nextChildren.forEach(function (nextChild) { - if (!nextChild || !(0, _ChildrenUtils.findChildInChildrenByKey)(currentChildren, nextChild.key)) { - newChildren.push(nextChild); - } - }); - } else { - newChildren = (0, _ChildrenUtils.mergeChildren)(currentChildren, nextChildren); - } - - // need render to avoid update - this.setState({ - children: newChildren - }); - - nextChildren.forEach(function (child) { - var key = child && child.key; - if (child && currentlyAnimatingKeys[key]) { - return; - } - var hasPrev = child && (0, _ChildrenUtils.findChildInChildrenByKey)(currentChildren, key); - if (showProp) { - var showInNext = child.props[showProp]; - if (hasPrev) { - var showInNow = (0, _ChildrenUtils.findShownChildInChildrenByKey)(currentChildren, key, showProp); - if (!showInNow && showInNext) { - _this3.keysToEnter.push(key); - } - } else if (showInNext) { - _this3.keysToEnter.push(key); - } - } else if (!hasPrev) { - _this3.keysToEnter.push(key); - } - }); - - currentChildren.forEach(function (child) { - var key = child && child.key; - if (child && currentlyAnimatingKeys[key]) { - return; - } - var hasNext = child && (0, _ChildrenUtils.findChildInChildrenByKey)(nextChildren, key); - if (showProp) { - var showInNow = child.props[showProp]; - if (hasNext) { - var showInNext = (0, _ChildrenUtils.findShownChildInChildrenByKey)(nextChildren, key, showProp); - if (!showInNext && showInNow) { - _this3.keysToLeave.push(key); - } - } else if (showInNow) { - _this3.keysToLeave.push(key); - } - } else if (!hasNext) { - _this3.keysToLeave.push(key); - } - }); - } - }, { - key: 'componentDidUpdate', - value: function componentDidUpdate() { - var keysToEnter = this.keysToEnter; - this.keysToEnter = []; - keysToEnter.forEach(this.performEnter); - var keysToLeave = this.keysToLeave; - this.keysToLeave = []; - keysToLeave.forEach(this.performLeave); - } - }, { - key: 'isValidChildByKey', - value: function isValidChildByKey(currentChildren, key) { - var showProp = this.props.showProp; - if (showProp) { - return (0, _ChildrenUtils.findShownChildInChildrenByKey)(currentChildren, key, showProp); - } - return (0, _ChildrenUtils.findChildInChildrenByKey)(currentChildren, key); - } - }, { - key: 'stop', - value: function stop(key) { - delete this.currentlyAnimatingKeys[key]; - var component = this.childrenRefs[key]; - if (component) { - component.stop(); - } - } - }, { - key: 'render', - value: function render() { - var _this4 = this; - - var props = this.props; - this.nextProps = props; - var stateChildren = this.state.children; - var children = null; - if (stateChildren) { - children = stateChildren.map(function (child) { - if (child === null || child === undefined) { - return child; - } - if (!child.key) { - throw new Error('must set key for children'); - } - return _react2['default'].createElement( - _AnimateChild2['default'], - { - key: child.key, - ref: function ref(node) { - _this4.childrenRefs[child.key] = node; - }, - animation: props.animation, - transitionName: props.transitionName, - transitionEnter: props.transitionEnter, - transitionAppear: props.transitionAppear, - transitionLeave: props.transitionLeave - }, - child - ); - }); - } - var Component = props.component; - if (Component) { - var passedProps = props; - if (typeof Component === 'string') { - passedProps = (0, _extends3['default'])({ - className: props.className, - style: props.style - }, props.componentProps); - } - return _react2['default'].createElement( - Component, - passedProps, - children - ); - } - return children[0] || null; - } - }]); - return Animate; - }(_react2['default'].Component); - - Animate.isAnimate = true; - Animate.propTypes = { - className: _propTypes2['default'].string, - style: _propTypes2['default'].object, - component: _propTypes2['default'].any, - componentProps: _propTypes2['default'].object, - animation: _propTypes2['default'].object, - transitionName: _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].object]), - transitionEnter: _propTypes2['default'].bool, - transitionAppear: _propTypes2['default'].bool, - exclusive: _propTypes2['default'].bool, - transitionLeave: _propTypes2['default'].bool, - onEnd: _propTypes2['default'].func, - onEnter: _propTypes2['default'].func, - onLeave: _propTypes2['default'].func, - onAppear: _propTypes2['default'].func, - showProp: _propTypes2['default'].string, - children: _propTypes2['default'].node - }; - Animate.defaultProps = { - animation: {}, - component: 'span', - componentProps: {}, - transitionEnter: true, - transitionLeave: true, - transitionAppear: false, - onEnd: noop, - onEnter: noop, - onLeave: noop, - onAppear: noop - }; - - var _initialiseProps = function _initialiseProps() { - var _this5 = this; - - this.performEnter = function (key) { - // may already remove by exclusive - if (_this5.childrenRefs[key]) { - _this5.currentlyAnimatingKeys[key] = true; - _this5.childrenRefs[key].componentWillEnter(_this5.handleDoneAdding.bind(_this5, key, 'enter')); - } - }; - - this.performAppear = function (key) { - if (_this5.childrenRefs[key]) { - _this5.currentlyAnimatingKeys[key] = true; - _this5.childrenRefs[key].componentWillAppear(_this5.handleDoneAdding.bind(_this5, key, 'appear')); - } - }; - - this.handleDoneAdding = function (key, type) { - var props = _this5.props; - delete _this5.currentlyAnimatingKeys[key]; - // if update on exclusive mode, skip check - if (props.exclusive && props !== _this5.nextProps) { - return; - } - var currentChildren = (0, _ChildrenUtils.toArrayChildren)(getChildrenFromProps(props)); - if (!_this5.isValidChildByKey(currentChildren, key)) { - // exclusive will not need this - _this5.performLeave(key); - } else if (type === 'appear') { - if (_animate2['default'].allowAppearCallback(props)) { - props.onAppear(key); - props.onEnd(key, true); - } - } else if (_animate2['default'].allowEnterCallback(props)) { - props.onEnter(key); - props.onEnd(key, true); - } - }; - - this.performLeave = function (key) { - // may already remove by exclusive - if (_this5.childrenRefs[key]) { - _this5.currentlyAnimatingKeys[key] = true; - _this5.childrenRefs[key].componentWillLeave(_this5.handleDoneLeaving.bind(_this5, key)); - } - }; - - this.handleDoneLeaving = function (key) { - var props = _this5.props; - delete _this5.currentlyAnimatingKeys[key]; - // if update on exclusive mode, skip check - if (props.exclusive && props !== _this5.nextProps) { - return; - } - var currentChildren = (0, _ChildrenUtils.toArrayChildren)(getChildrenFromProps(props)); - // in case state change is too fast - if (_this5.isValidChildByKey(currentChildren, key)) { - _this5.performEnter(key); - } else { - var end = function end() { - if (_animate2['default'].allowLeaveCallback(props)) { - props.onLeave(key); - props.onEnd(key, false); - } - }; - if (!(0, _ChildrenUtils.isSameChildren)(_this5.state.children, currentChildren, props.showProp)) { - _this5.setState({ - children: currentChildren - }, end); - } else { - end(); - } - } - }; - }; - - exports['default'] = (0, _unsafeLifecyclesPolyfill2['default'])(Animate); - module.exports = exports['default']; - -/***/ }), -/* 370 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - - exports.__esModule = true; - - var _defineProperty = __webpack_require__(365); - - var _defineProperty2 = _interopRequireDefault(_defineProperty); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - exports.default = function (obj, key, value) { - if (key in obj) { - (0, _defineProperty2.default)(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - - return obj; - }; - -/***/ }), -/* 371 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(__webpack_require__(1)); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var unsafeLifecyclesPolyfill = function unsafeLifecyclesPolyfill(Component) { - var prototype = Component.prototype; - - if (!prototype || !prototype.isReactComponent) { - throw new Error('Can only polyfill class components'); - } // only handle componentWillReceiveProps - - - if (typeof prototype.componentWillReceiveProps !== 'function') { - return Component; - } // In React 16.9, React.Profiler was introduced together with UNSAFE_componentWillReceiveProps - // https://reactjs.org/blog/2019/08/08/react-v16.9.0.html#performance-measurements-with-reactprofiler - - - if (!_react.default.Profiler) { - return Component; - } // Here polyfill get started - - - prototype.UNSAFE_componentWillReceiveProps = prototype.componentWillReceiveProps; - delete prototype.componentWillReceiveProps; - return Component; - }; - - var _default = unsafeLifecyclesPolyfill; - exports.default = _default; - -/***/ }), -/* 372 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.toArrayChildren = toArrayChildren; - exports.findChildInChildrenByKey = findChildInChildrenByKey; - exports.findShownChildInChildrenByKey = findShownChildInChildrenByKey; - exports.findHiddenChildInChildrenByKey = findHiddenChildInChildrenByKey; - exports.isSameChildren = isSameChildren; - exports.mergeChildren = mergeChildren; - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - function toArrayChildren(children) { - var ret = []; - _react2['default'].Children.forEach(children, function (child) { - ret.push(child); - }); - return ret; - } - - function findChildInChildrenByKey(children, key) { - var ret = null; - if (children) { - children.forEach(function (child) { - if (ret) { - return; - } - if (child && child.key === key) { - ret = child; - } - }); - } - return ret; - } - - function findShownChildInChildrenByKey(children, key, showProp) { - var ret = null; - if (children) { - children.forEach(function (child) { - if (child && child.key === key && child.props[showProp]) { - if (ret) { - throw new Error('two child with same key for children'); - } - ret = child; - } - }); - } - return ret; - } - - function findHiddenChildInChildrenByKey(children, key, showProp) { - var found = 0; - if (children) { - children.forEach(function (child) { - if (found) { - return; - } - found = child && child.key === key && !child.props[showProp]; - }); - } - return found; - } - - function isSameChildren(c1, c2, showProp) { - var same = c1.length === c2.length; - if (same) { - c1.forEach(function (child, index) { - var child2 = c2[index]; - if (child && child2) { - if (child && !child2 || !child && child2) { - same = false; - } else if (child.key !== child2.key) { - same = false; - } else if (showProp && child.props[showProp] !== child2.props[showProp]) { - same = false; - } - } - }); - } - return same; - } - - function mergeChildren(prev, next) { - var ret = []; - - // For each key of `next`, the list of keys to insert before that key in - // the combined list - var nextChildrenPending = {}; - var pendingChildren = []; - prev.forEach(function (child) { - if (child && findChildInChildrenByKey(next, child.key)) { - if (pendingChildren.length) { - nextChildrenPending[child.key] = pendingChildren; - pendingChildren = []; - } - } else { - pendingChildren.push(child); - } - }); - - next.forEach(function (child) { - if (child && Object.prototype.hasOwnProperty.call(nextChildrenPending, child.key)) { - ret = ret.concat(nextChildrenPending[child.key]); - } - ret.push(child); - }); - - ret = ret.concat(pendingChildren); - - return ret; - } - -/***/ }), -/* 373 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _classCallCheck2 = __webpack_require__(318); - - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - - var _createClass2 = __webpack_require__(364); - - var _createClass3 = _interopRequireDefault(_createClass2); - - var _possibleConstructorReturn2 = __webpack_require__(319); - - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - - var _inherits2 = __webpack_require__(350); - - var _inherits3 = _interopRequireDefault(_inherits2); - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _reactDom = __webpack_require__(2); - - var _reactDom2 = _interopRequireDefault(_reactDom); - - var _propTypes = __webpack_require__(6); - - var _propTypes2 = _interopRequireDefault(_propTypes); - - var _cssAnimation = __webpack_require__(374); - - var _cssAnimation2 = _interopRequireDefault(_cssAnimation); - - var _animate = __webpack_require__(376); - - var _animate2 = _interopRequireDefault(_animate); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - var transitionMap = { - enter: 'transitionEnter', - appear: 'transitionAppear', - leave: 'transitionLeave' - }; - - var AnimateChild = function (_React$Component) { - (0, _inherits3['default'])(AnimateChild, _React$Component); - - function AnimateChild() { - (0, _classCallCheck3['default'])(this, AnimateChild); - return (0, _possibleConstructorReturn3['default'])(this, (AnimateChild.__proto__ || Object.getPrototypeOf(AnimateChild)).apply(this, arguments)); - } - - (0, _createClass3['default'])(AnimateChild, [{ - key: 'componentWillUnmount', - value: function componentWillUnmount() { - this.stop(); - } - }, { - key: 'componentWillEnter', - value: function componentWillEnter(done) { - if (_animate2['default'].isEnterSupported(this.props)) { - this.transition('enter', done); - } else { - done(); - } - } - }, { - key: 'componentWillAppear', - value: function componentWillAppear(done) { - if (_animate2['default'].isAppearSupported(this.props)) { - this.transition('appear', done); - } else { - done(); - } - } - }, { - key: 'componentWillLeave', - value: function componentWillLeave(done) { - if (_animate2['default'].isLeaveSupported(this.props)) { - this.transition('leave', done); - } else { - // always sync, do not interupt with react component life cycle - // update hidden -> animate hidden -> - // didUpdate -> animate leave -> unmount (if animate is none) - done(); - } - } - }, { - key: 'transition', - value: function transition(animationType, finishCallback) { - var _this2 = this; - - var node = _reactDom2['default'].findDOMNode(this); - var props = this.props; - var transitionName = props.transitionName; - var nameIsObj = typeof transitionName === 'object'; - this.stop(); - var end = function end() { - _this2.stopper = null; - finishCallback(); - }; - if ((_cssAnimation.isCssAnimationSupported || !props.animation[animationType]) && transitionName && props[transitionMap[animationType]]) { - var name = nameIsObj ? transitionName[animationType] : transitionName + '-' + animationType; - var activeName = name + '-active'; - if (nameIsObj && transitionName[animationType + 'Active']) { - activeName = transitionName[animationType + 'Active']; - } - this.stopper = (0, _cssAnimation2['default'])(node, { - name: name, - active: activeName - }, end); - } else { - this.stopper = props.animation[animationType](node, end); - } - } - }, { - key: 'stop', - value: function stop() { - var stopper = this.stopper; - if (stopper) { - this.stopper = null; - stopper.stop(); - } - } - }, { - key: 'render', - value: function render() { - return this.props.children; - } - }]); - return AnimateChild; - }(_react2['default'].Component); - - AnimateChild.propTypes = { - children: _propTypes2['default'].any, - animation: _propTypes2['default'].any, - transitionName: _propTypes2['default'].any - }; - exports['default'] = AnimateChild; - module.exports = exports['default']; - -/***/ }), -/* 374 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.isCssAnimationSupported = undefined; - - var _typeof2 = __webpack_require__(320); - - var _typeof3 = _interopRequireDefault(_typeof2); - - var _Event = __webpack_require__(375); - - var _Event2 = _interopRequireDefault(_Event); - - var _componentClasses = __webpack_require__(47); - - var _componentClasses2 = _interopRequireDefault(_componentClasses); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - var isCssAnimationSupported = _Event2['default'].endEvents.length !== 0; - var capitalPrefixes = ['Webkit', 'Moz', 'O', - // ms is special .... ! - 'ms']; - var prefixes = ['-webkit-', '-moz-', '-o-', 'ms-', '']; - - function getStyleProperty(node, name) { - // old ff need null, https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle - var style = window.getComputedStyle(node, null); - var ret = ''; - for (var i = 0; i < prefixes.length; i++) { - ret = style.getPropertyValue(prefixes[i] + name); - if (ret) { - break; - } - } - return ret; - } - - function fixBrowserByTimeout(node) { - if (isCssAnimationSupported) { - var transitionDelay = parseFloat(getStyleProperty(node, 'transition-delay')) || 0; - var transitionDuration = parseFloat(getStyleProperty(node, 'transition-duration')) || 0; - var animationDelay = parseFloat(getStyleProperty(node, 'animation-delay')) || 0; - var animationDuration = parseFloat(getStyleProperty(node, 'animation-duration')) || 0; - var time = Math.max(transitionDuration + transitionDelay, animationDuration + animationDelay); - // sometimes, browser bug - node.rcEndAnimTimeout = setTimeout(function () { - node.rcEndAnimTimeout = null; - if (node.rcEndListener) { - node.rcEndListener(); - } - }, time * 1000 + 200); - } - } - - function clearBrowserBugTimeout(node) { - if (node.rcEndAnimTimeout) { - clearTimeout(node.rcEndAnimTimeout); - node.rcEndAnimTimeout = null; - } - } - - var cssAnimation = function cssAnimation(node, transitionName, endCallback) { - var nameIsObj = (typeof transitionName === 'undefined' ? 'undefined' : (0, _typeof3['default'])(transitionName)) === 'object'; - var className = nameIsObj ? transitionName.name : transitionName; - var activeClassName = nameIsObj ? transitionName.active : transitionName + '-active'; - var end = endCallback; - var start = void 0; - var active = void 0; - var nodeClasses = (0, _componentClasses2['default'])(node); - - if (endCallback && Object.prototype.toString.call(endCallback) === '[object Object]') { - end = endCallback.end; - start = endCallback.start; - active = endCallback.active; - } - - if (node.rcEndListener) { - node.rcEndListener(); - } - - node.rcEndListener = function (e) { - if (e && e.target !== node) { - return; - } - - if (node.rcAnimTimeout) { - clearTimeout(node.rcAnimTimeout); - node.rcAnimTimeout = null; - } - - clearBrowserBugTimeout(node); - - nodeClasses.remove(className); - nodeClasses.remove(activeClassName); - - _Event2['default'].removeEndEventListener(node, node.rcEndListener); - node.rcEndListener = null; - - // Usually this optional end is used for informing an owner of - // a leave animation and telling it to remove the child. - if (end) { - end(); - } - }; - - _Event2['default'].addEndEventListener(node, node.rcEndListener); - - if (start) { - start(); - } - nodeClasses.add(className); - - node.rcAnimTimeout = setTimeout(function () { - node.rcAnimTimeout = null; - nodeClasses.add(activeClassName); - if (active) { - setTimeout(active, 0); - } - fixBrowserByTimeout(node); - // 30ms for firefox - }, 30); - - return { - stop: function stop() { - if (node.rcEndListener) { - node.rcEndListener(); - } - } - }; - }; - - cssAnimation.style = function (node, style, callback) { - if (node.rcEndListener) { - node.rcEndListener(); - } - - node.rcEndListener = function (e) { - if (e && e.target !== node) { - return; - } - - if (node.rcAnimTimeout) { - clearTimeout(node.rcAnimTimeout); - node.rcAnimTimeout = null; - } - - clearBrowserBugTimeout(node); - - _Event2['default'].removeEndEventListener(node, node.rcEndListener); - node.rcEndListener = null; - - // Usually this optional callback is used for informing an owner of - // a leave animation and telling it to remove the child. - if (callback) { - callback(); - } - }; - - _Event2['default'].addEndEventListener(node, node.rcEndListener); - - node.rcAnimTimeout = setTimeout(function () { - for (var s in style) { - if (style.hasOwnProperty(s)) { - node.style[s] = style[s]; - } - } - node.rcAnimTimeout = null; - fixBrowserByTimeout(node); - }, 0); - }; - - cssAnimation.setTransition = function (node, p, value) { - var property = p; - var v = value; - if (value === undefined) { - v = property; - property = ''; - } - property = property || ''; - capitalPrefixes.forEach(function (prefix) { - node.style[prefix + 'Transition' + property] = v; - }); - }; - - cssAnimation.isCssAnimationSupported = isCssAnimationSupported; - - exports.isCssAnimationSupported = isCssAnimationSupported; - exports['default'] = cssAnimation; - -/***/ }), -/* 375 */ -/***/ (function(module, exports) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - var START_EVENT_NAME_MAP = { - transitionstart: { - transition: 'transitionstart', - WebkitTransition: 'webkitTransitionStart', - MozTransition: 'mozTransitionStart', - OTransition: 'oTransitionStart', - msTransition: 'MSTransitionStart' - }, - - animationstart: { - animation: 'animationstart', - WebkitAnimation: 'webkitAnimationStart', - MozAnimation: 'mozAnimationStart', - OAnimation: 'oAnimationStart', - msAnimation: 'MSAnimationStart' - } - }; - - var END_EVENT_NAME_MAP = { - transitionend: { - transition: 'transitionend', - WebkitTransition: 'webkitTransitionEnd', - MozTransition: 'mozTransitionEnd', - OTransition: 'oTransitionEnd', - msTransition: 'MSTransitionEnd' - }, - - animationend: { - animation: 'animationend', - WebkitAnimation: 'webkitAnimationEnd', - MozAnimation: 'mozAnimationEnd', - OAnimation: 'oAnimationEnd', - msAnimation: 'MSAnimationEnd' - } - }; - - var startEvents = []; - var endEvents = []; - - function detectEvents() { - var testEl = document.createElement('div'); - var style = testEl.style; - - if (!('AnimationEvent' in window)) { - delete START_EVENT_NAME_MAP.animationstart.animation; - delete END_EVENT_NAME_MAP.animationend.animation; - } - - if (!('TransitionEvent' in window)) { - delete START_EVENT_NAME_MAP.transitionstart.transition; - delete END_EVENT_NAME_MAP.transitionend.transition; - } - - function process(EVENT_NAME_MAP, events) { - for (var baseEventName in EVENT_NAME_MAP) { - if (EVENT_NAME_MAP.hasOwnProperty(baseEventName)) { - var baseEvents = EVENT_NAME_MAP[baseEventName]; - for (var styleName in baseEvents) { - if (styleName in style) { - events.push(baseEvents[styleName]); - break; - } - } - } - } - } - - process(START_EVENT_NAME_MAP, startEvents); - process(END_EVENT_NAME_MAP, endEvents); - } - - if (typeof window !== 'undefined' && typeof document !== 'undefined') { - detectEvents(); - } - - function addEventListener(node, eventName, eventListener) { - node.addEventListener(eventName, eventListener, false); - } - - function removeEventListener(node, eventName, eventListener) { - node.removeEventListener(eventName, eventListener, false); - } - - var TransitionEvents = { - // Start events - startEvents: startEvents, - - addStartEventListener: function addStartEventListener(node, eventListener) { - if (startEvents.length === 0) { - window.setTimeout(eventListener, 0); - return; - } - startEvents.forEach(function (startEvent) { - addEventListener(node, startEvent, eventListener); - }); - }, - removeStartEventListener: function removeStartEventListener(node, eventListener) { - if (startEvents.length === 0) { - return; - } - startEvents.forEach(function (startEvent) { - removeEventListener(node, startEvent, eventListener); - }); - }, - - - // End events - endEvents: endEvents, - - addEndEventListener: function addEndEventListener(node, eventListener) { - if (endEvents.length === 0) { - window.setTimeout(eventListener, 0); - return; - } - endEvents.forEach(function (endEvent) { - addEventListener(node, endEvent, eventListener); - }); - }, - removeEndEventListener: function removeEndEventListener(node, eventListener) { - if (endEvents.length === 0) { - return; - } - endEvents.forEach(function (endEvent) { - removeEventListener(node, endEvent, eventListener); - }); - } - }; - - exports['default'] = TransitionEvents; - module.exports = exports['default']; - -/***/ }), -/* 376 */ -/***/ (function(module, exports) { - - "use strict"; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - var util = { - isAppearSupported: function isAppearSupported(props) { - return props.transitionName && props.transitionAppear || props.animation.appear; - }, - isEnterSupported: function isEnterSupported(props) { - return props.transitionName && props.transitionEnter || props.animation.enter; - }, - isLeaveSupported: function isLeaveSupported(props) { - return props.transitionName && props.transitionLeave || props.animation.leave; - }, - allowAppearCallback: function allowAppearCallback(props) { - return props.transitionAppear || props.animation.appear; - }, - allowEnterCallback: function allowEnterCallback(props) { - return props.transitionEnter || props.animation.enter; - }, - allowLeaveCallback: function allowLeaveCallback(props) { - return props.transitionLeave || props.animation.leave; - } - }; - exports["default"] = util; - module.exports = exports['default']; - -/***/ }), -/* 377 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - exports.__esModule = true; - - var _classCallCheck2 = __webpack_require__(318); - - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - - var _possibleConstructorReturn2 = __webpack_require__(319); - - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - - var _inherits2 = __webpack_require__(350); - - var _inherits3 = _interopRequireDefault(_inherits2); - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _propTypes = __webpack_require__(6); - - var _propTypes2 = _interopRequireDefault(_propTypes); - - var _LazyRenderBox = __webpack_require__(378); - - var _LazyRenderBox2 = _interopRequireDefault(_LazyRenderBox); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - var PopupInner = function (_Component) { - (0, _inherits3['default'])(PopupInner, _Component); - - function PopupInner() { - (0, _classCallCheck3['default'])(this, PopupInner); - return (0, _possibleConstructorReturn3['default'])(this, _Component.apply(this, arguments)); - } - - PopupInner.prototype.render = function render() { - var props = this.props; - var className = props.className; - if (!props.visible) { - className += ' ' + props.hiddenClassName; - } - return _react2['default'].createElement( - 'div', - { - className: className, - onMouseEnter: props.onMouseEnter, - onMouseLeave: props.onMouseLeave, - onMouseDown: props.onMouseDown, - onTouchStart: props.onTouchStart, - style: props.style - }, - _react2['default'].createElement( - _LazyRenderBox2['default'], - { className: props.prefixCls + '-content', visible: props.visible }, - props.children - ) - ); - }; - - return PopupInner; - }(_react.Component); - - PopupInner.propTypes = { - hiddenClassName: _propTypes2['default'].string, - className: _propTypes2['default'].string, - prefixCls: _propTypes2['default'].string, - onMouseEnter: _propTypes2['default'].func, - onMouseLeave: _propTypes2['default'].func, - onMouseDown: _propTypes2['default'].func, - onTouchStart: _propTypes2['default'].func, - children: _propTypes2['default'].any - }; - exports['default'] = PopupInner; - module.exports = exports['default']; - -/***/ }), -/* 378 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - exports.__esModule = true; - - var _objectWithoutProperties2 = __webpack_require__(379); - - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); - - var _classCallCheck2 = __webpack_require__(318); - - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - - var _possibleConstructorReturn2 = __webpack_require__(319); - - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - - var _inherits2 = __webpack_require__(350); - - var _inherits3 = _interopRequireDefault(_inherits2); - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _propTypes = __webpack_require__(6); - - var _propTypes2 = _interopRequireDefault(_propTypes); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - var LazyRenderBox = function (_Component) { - (0, _inherits3['default'])(LazyRenderBox, _Component); - - function LazyRenderBox() { - (0, _classCallCheck3['default'])(this, LazyRenderBox); - return (0, _possibleConstructorReturn3['default'])(this, _Component.apply(this, arguments)); - } - - LazyRenderBox.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) { - return nextProps.hiddenClassName || nextProps.visible; - }; - - LazyRenderBox.prototype.render = function render() { - var _props = this.props, - hiddenClassName = _props.hiddenClassName, - visible = _props.visible, - props = (0, _objectWithoutProperties3['default'])(_props, ['hiddenClassName', 'visible']); - - - if (hiddenClassName || _react2['default'].Children.count(props.children) > 1) { - if (!visible && hiddenClassName) { - props.className += ' ' + hiddenClassName; - } - return _react2['default'].createElement('div', props); - } - - return _react2['default'].Children.only(props.children); - }; - - return LazyRenderBox; - }(_react.Component); - - LazyRenderBox.propTypes = { - children: _propTypes2['default'].any, - className: _propTypes2['default'].string, - visible: _propTypes2['default'].bool, - hiddenClassName: _propTypes2['default'].string - }; - exports['default'] = LazyRenderBox; - module.exports = exports['default']; - -/***/ }), -/* 379 */ -/***/ (function(module, exports) { - - "use strict"; - - exports.__esModule = true; - - exports.default = function (obj, keys) { - var target = {}; - - for (var i in obj) { - if (keys.indexOf(i) >= 0) continue; - if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; - target[i] = obj[i]; - } - - return target; - }; - -/***/ }), -/* 380 */ -/***/ (function(module, exports) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - /** - * This source code is quoted from rc-menu. - * homepage: https://github.com/react-component/menu - */ - var autoAdjustOverflow = { - adjustX: 1, - adjustY: 1 - }; - - var placements = exports.placements = { - topLeft: { - points: ['bl', 'tl'], - overflow: autoAdjustOverflow, - offset: [0, -7] - }, - bottomLeft: { - points: ['tl', 'bl'], - overflow: autoAdjustOverflow, - offset: [0, 7] - }, - leftTop: { - points: ['tr', 'tl'], - overflow: autoAdjustOverflow, - offset: [-4, 0] - }, - rightTop: { - points: ['tl', 'tr'], - overflow: autoAdjustOverflow, - offset: [4, 0] - } - }; - - exports["default"] = placements; - -/***/ }), -/* 381 */ -/***/ (function(module, exports) { - - // mutationobserver-shim v0.3.3 (github.com/megawac/MutationObserver.js) - // Authors: Graeme Yeates (github.com/megawac) - /* - Shim for MutationObserver interface - Author: Graeme Yeates (github.com/megawac) - Repository: https://github.com/megawac/MutationObserver.js - License: WTFPL V2, 2004 (wtfpl.net). - Though credit and staring the repo will make me feel pretty, you can modify and redistribute as you please. - Attempts to follow spec (https://www.w3.org/TR/dom/#mutation-observers) as closely as possible for native javascript - See https://github.com/WebKit/webkit/blob/master/Source/WebCore/dom/MutationObserver.cpp for current webkit source c++ implementation - */ - window.MutationObserver||(window.MutationObserver=function(y){function z(a){this.i=[];this.m=a}function K(a){(function c(){var d=a.takeRecords();d.length&&a.m(d,a);a.h=setTimeout(c,z._period)})()}function r(a){var b={type:null,target:null,addedNodes:[],removedNodes:[],previousSibling:null,nextSibling:null,attributeName:null,attributeNamespace:null,oldValue:null},c;for(c in a)b[c]!==y&&a[c]!==y&&(b[c]=a[c]);return b}function L(a,b){var c=E(a,b);return function(d){var f=d.length;b.a&&3===a.nodeType&& - a.nodeValue!==c.a&&d.push(new r({type:"characterData",target:a,oldValue:c.a}));b.b&&c.b&&C(d,a,c.b,b.f);if(b.c||b.g)var m=M(d,a,c,b);if(m||d.length!==f)c=E(a,b)}}function N(a,b){return b.value}function O(a,b){return"style"!==b.name?b.value:a.style.cssText}function C(a,b,c,d){for(var f={},m=b.attributes,k,g,p=m.length;p--;)k=m[p],g=k.name,d&&d[g]===y||(F(b,k)!==c[g]&&a.push(r({type:"attributes",target:b,attributeName:g,oldValue:c[g],attributeNamespace:k.namespaceURI})),f[g]=!0);for(g in c)f[g]||a.push(r({target:b, - type:"attributes",attributeName:g,oldValue:c[g]}))}function M(a,b,c,d){function f(g,p,t,q,x){var A=g.length-1;x=-~((A-x)/2);for(var h,l,e;e=g.pop();)h=t[e.j],l=q[e.l],d.c&&x&&Math.abs(e.j-e.l)>=A&&(a.push(r({type:"childList",target:p,addedNodes:[h],removedNodes:[h],nextSibling:h.nextSibling,previousSibling:h.previousSibling})),x--),d.b&&l.b&&C(a,h,l.b,d.f),d.a&&3===h.nodeType&&h.nodeValue!==l.a&&a.push(r({type:"characterData",target:h,oldValue:l.a})),d.g&&m(h,l)}function m(g,p){for(var t=g.childNodes, - q=p.c,x=t.length,A=q?q.length:0,h,l,e,n,v,B=0,w=0,u=0;w element - //
  • Link
  • would be a good example - // in this case the role on
  • should be "none" to - // remove the implied listitem role. - // https://www.w3.org/TR/wai-aria-practices-1.1/examples/menubar/menubar-1/menubar-1.html - attrs.role = 'none'; - } - // In case that onClick/onMouseLeave/onMouseEnter is passed down from owner - var mouseEvent = { - onClick: props.disabled ? null : this.onClick, - onMouseLeave: props.disabled ? null : this.onMouseLeave, - onMouseEnter: props.disabled ? null : this.onMouseEnter - }; - var style = _extends({}, props.style); - if (props.mode === 'inline') { - style.paddingLeft = props.inlineIndent * props.level; - } - _util.menuAllProps.forEach(function (key) { - return delete props[key]; - }); - var icon = this.props.itemIcon; - if (typeof this.props.itemIcon === 'function') { - icon = _react2["default"].createElement(this.props.itemIcon, this.props); - } - return _react2["default"].createElement( - 'li', - _extends({}, props, attrs, mouseEvent, { - style: style - }), - props.children, - icon - ); - }; - - return MenuItem; - }(_react2["default"].Component); - - MenuItem.propTypes = { - attribute: _propTypes2["default"].object, - rootPrefixCls: _propTypes2["default"].string, - eventKey: _propTypes2["default"].string, - active: _propTypes2["default"].bool, - children: _propTypes2["default"].any, - selectedKeys: _propTypes2["default"].array, - disabled: _propTypes2["default"].bool, - title: _propTypes2["default"].string, - onItemHover: _propTypes2["default"].func, - onSelect: _propTypes2["default"].func, - onClick: _propTypes2["default"].func, - onDeselect: _propTypes2["default"].func, - parentMenu: _propTypes2["default"].object, - onDestroy: _propTypes2["default"].func, - onMouseEnter: _propTypes2["default"].func, - onMouseLeave: _propTypes2["default"].func, - multiple: _propTypes2["default"].bool, - isSelected: _propTypes2["default"].bool, - manualRef: _propTypes2["default"].func, - itemIcon: _propTypes2["default"].oneOfType([_propTypes2["default"].func, _propTypes2["default"].node]) - }; - MenuItem.defaultProps = { - onSelect: _util.noop, - onMouseEnter: _util.noop, - onMouseLeave: _util.noop, - manualRef: _util.noop - }; - - - MenuItem.isMenuItem = true; - - var connected = (0, _miniStore.connect)(function (_ref, _ref2) { - var activeKey = _ref.activeKey, - selectedKeys = _ref.selectedKeys; - var eventKey = _ref2.eventKey, - subMenuKey = _ref2.subMenuKey; - return { - active: activeKey[subMenuKey] === eventKey, - isSelected: selectedKeys.indexOf(eventKey) !== -1 - }; - })(MenuItem); - - exports["default"] = connected; - -/***/ }), -/* 383 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - module.exports = __webpack_require__(384); - -/***/ }), -/* 384 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - var util = __webpack_require__(385); - - function scrollIntoView(elem, container, config) { - config = config || {}; - // document 归一化到 window - if (container.nodeType === 9) { - container = util.getWindow(container); - } - - var allowHorizontalScroll = config.allowHorizontalScroll; - var onlyScrollIfNeeded = config.onlyScrollIfNeeded; - var alignWithTop = config.alignWithTop; - var alignWithLeft = config.alignWithLeft; - var offsetTop = config.offsetTop || 0; - var offsetLeft = config.offsetLeft || 0; - var offsetBottom = config.offsetBottom || 0; - var offsetRight = config.offsetRight || 0; - - allowHorizontalScroll = allowHorizontalScroll === undefined ? true : allowHorizontalScroll; - - var isWin = util.isWindow(container); - var elemOffset = util.offset(elem); - var eh = util.outerHeight(elem); - var ew = util.outerWidth(elem); - var containerOffset = undefined; - var ch = undefined; - var cw = undefined; - var containerScroll = undefined; - var diffTop = undefined; - var diffBottom = undefined; - var win = undefined; - var winScroll = undefined; - var ww = undefined; - var wh = undefined; - - if (isWin) { - win = container; - wh = util.height(win); - ww = util.width(win); - winScroll = { - left: util.scrollLeft(win), - top: util.scrollTop(win) - }; - // elem 相对 container 可视视窗的距离 - diffTop = { - left: elemOffset.left - winScroll.left - offsetLeft, - top: elemOffset.top - winScroll.top - offsetTop - }; - diffBottom = { - left: elemOffset.left + ew - (winScroll.left + ww) + offsetRight, - top: elemOffset.top + eh - (winScroll.top + wh) + offsetBottom - }; - containerScroll = winScroll; - } else { - containerOffset = util.offset(container); - ch = container.clientHeight; - cw = container.clientWidth; - containerScroll = { - left: container.scrollLeft, - top: container.scrollTop - }; - // elem 相对 container 可视视窗的距离 - // 注意边框, offset 是边框到根节点 - diffTop = { - left: elemOffset.left - (containerOffset.left + (parseFloat(util.css(container, 'borderLeftWidth')) || 0)) - offsetLeft, - top: elemOffset.top - (containerOffset.top + (parseFloat(util.css(container, 'borderTopWidth')) || 0)) - offsetTop - }; - diffBottom = { - left: elemOffset.left + ew - (containerOffset.left + cw + (parseFloat(util.css(container, 'borderRightWidth')) || 0)) + offsetRight, - top: elemOffset.top + eh - (containerOffset.top + ch + (parseFloat(util.css(container, 'borderBottomWidth')) || 0)) + offsetBottom - }; - } - - if (diffTop.top < 0 || diffBottom.top > 0) { - // 强制向上 - if (alignWithTop === true) { - util.scrollTop(container, containerScroll.top + diffTop.top); - } else if (alignWithTop === false) { - util.scrollTop(container, containerScroll.top + diffBottom.top); - } else { - // 自动调整 - if (diffTop.top < 0) { - util.scrollTop(container, containerScroll.top + diffTop.top); - } else { - util.scrollTop(container, containerScroll.top + diffBottom.top); - } - } - } else { - if (!onlyScrollIfNeeded) { - alignWithTop = alignWithTop === undefined ? true : !!alignWithTop; - if (alignWithTop) { - util.scrollTop(container, containerScroll.top + diffTop.top); - } else { - util.scrollTop(container, containerScroll.top + diffBottom.top); - } - } - } - - if (allowHorizontalScroll) { - if (diffTop.left < 0 || diffBottom.left > 0) { - // 强制向上 - if (alignWithLeft === true) { - util.scrollLeft(container, containerScroll.left + diffTop.left); - } else if (alignWithLeft === false) { - util.scrollLeft(container, containerScroll.left + diffBottom.left); - } else { - // 自动调整 - if (diffTop.left < 0) { - util.scrollLeft(container, containerScroll.left + diffTop.left); - } else { - util.scrollLeft(container, containerScroll.left + diffBottom.left); - } - } - } else { - if (!onlyScrollIfNeeded) { - alignWithLeft = alignWithLeft === undefined ? true : !!alignWithLeft; - if (alignWithLeft) { - util.scrollLeft(container, containerScroll.left + diffTop.left); - } else { - util.scrollLeft(container, containerScroll.left + diffBottom.left); - } - } - } - } - } - - module.exports = scrollIntoView; - -/***/ }), -/* 385 */ -/***/ (function(module, exports) { - - 'use strict'; - - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - - var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; - - var RE_NUM = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source; - - function getClientPosition(elem) { - var box = undefined; - var x = undefined; - var y = undefined; - var doc = elem.ownerDocument; - var body = doc.body; - var docElem = doc && doc.documentElement; - // 根据 GBS 最新数据,A-Grade Browsers 都已支持 getBoundingClientRect 方法,不用再考虑传统的实现方式 - box = elem.getBoundingClientRect(); - - // 注:jQuery 还考虑减去 docElem.clientLeft/clientTop - // 但测试发现,这样反而会导致当 html 和 body 有边距/边框样式时,获取的值不正确 - // 此外,ie6 会忽略 html 的 margin 值,幸运地是没有谁会去设置 html 的 margin - - x = box.left; - y = box.top; - - // In IE, most of the time, 2 extra pixels are added to the top and left - // due to the implicit 2-pixel inset border. In IE6/7 quirks mode and - // IE6 standards mode, this border can be overridden by setting the - // document element's border to zero -- thus, we cannot rely on the - // offset always being 2 pixels. - - // In quirks mode, the offset can be determined by querying the body's - // clientLeft/clientTop, but in standards mode, it is found by querying - // the document element's clientLeft/clientTop. Since we already called - // getClientBoundingRect we have already forced a reflow, so it is not - // too expensive just to query them all. - - // ie 下应该减去窗口的边框吧,毕竟默认 absolute 都是相对窗口定位的 - // 窗口边框标准是设 documentElement ,quirks 时设置 body - // 最好禁止在 body 和 html 上边框 ,但 ie < 9 html 默认有 2px ,减去 - // 但是非 ie 不可能设置窗口边框,body html 也不是窗口 ,ie 可以通过 html,body 设置 - // 标准 ie 下 docElem.clientTop 就是 border-top - // ie7 html 即窗口边框改变不了。永远为 2 - // 但标准 firefox/chrome/ie9 下 docElem.clientTop 是窗口边框,即使设了 border-top 也为 0 - - x -= docElem.clientLeft || body.clientLeft || 0; - y -= docElem.clientTop || body.clientTop || 0; - - return { - left: x, - top: y - }; - } - - function getScroll(w, top) { - var ret = w['page' + (top ? 'Y' : 'X') + 'Offset']; - var method = 'scroll' + (top ? 'Top' : 'Left'); - if (typeof ret !== 'number') { - var d = w.document; - // ie6,7,8 standard mode - ret = d.documentElement[method]; - if (typeof ret !== 'number') { - // quirks mode - ret = d.body[method]; - } - } - return ret; - } - - function getScrollLeft(w) { - return getScroll(w); - } - - function getScrollTop(w) { - return getScroll(w, true); - } - - function getOffset(el) { - var pos = getClientPosition(el); - var doc = el.ownerDocument; - var w = doc.defaultView || doc.parentWindow; - pos.left += getScrollLeft(w); - pos.top += getScrollTop(w); - return pos; - } - function _getComputedStyle(elem, name, computedStyle_) { - var val = ''; - var d = elem.ownerDocument; - var computedStyle = computedStyle_ || d.defaultView.getComputedStyle(elem, null); - - // https://github.com/kissyteam/kissy/issues/61 - if (computedStyle) { - val = computedStyle.getPropertyValue(name) || computedStyle[name]; - } - - return val; - } - - var _RE_NUM_NO_PX = new RegExp('^(' + RE_NUM + ')(?!px)[a-z%]+$', 'i'); - var RE_POS = /^(top|right|bottom|left)$/; - var CURRENT_STYLE = 'currentStyle'; - var RUNTIME_STYLE = 'runtimeStyle'; - var LEFT = 'left'; - var PX = 'px'; - - function _getComputedStyleIE(elem, name) { - // currentStyle maybe null - // http://msdn.microsoft.com/en-us/library/ms535231.aspx - var ret = elem[CURRENT_STYLE] && elem[CURRENT_STYLE][name]; - - // 当 width/height 设置为百分比时,通过 pixelLeft 方式转换的 width/height 值 - // 一开始就处理了! CUSTOM_STYLE.height,CUSTOM_STYLE.width ,cssHook 解决@2011-08-19 - // 在 ie 下不对,需要直接用 offset 方式 - // borderWidth 等值也有问题,但考虑到 borderWidth 设为百分比的概率很小,这里就不考虑了 - - // From the awesome hack by Dean Edwards - // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 - // If we're not dealing with a regular pixel number - // but a number that has a weird ending, we need to convert it to pixels - // exclude left right for relativity - if (_RE_NUM_NO_PX.test(ret) && !RE_POS.test(name)) { - // Remember the original values - var style = elem.style; - var left = style[LEFT]; - var rsLeft = elem[RUNTIME_STYLE][LEFT]; - - // prevent flashing of content - elem[RUNTIME_STYLE][LEFT] = elem[CURRENT_STYLE][LEFT]; - - // Put in the new values to get a computed value out - style[LEFT] = name === 'fontSize' ? '1em' : ret || 0; - ret = style.pixelLeft + PX; - - // Revert the changed values - style[LEFT] = left; - - elem[RUNTIME_STYLE][LEFT] = rsLeft; - } - return ret === '' ? 'auto' : ret; - } - - var getComputedStyleX = undefined; - if (typeof window !== 'undefined') { - getComputedStyleX = window.getComputedStyle ? _getComputedStyle : _getComputedStyleIE; - } - - function each(arr, fn) { - for (var i = 0; i < arr.length; i++) { - fn(arr[i]); - } - } - - function isBorderBoxFn(elem) { - return getComputedStyleX(elem, 'boxSizing') === 'border-box'; - } - - var BOX_MODELS = ['margin', 'border', 'padding']; - var CONTENT_INDEX = -1; - var PADDING_INDEX = 2; - var BORDER_INDEX = 1; - var MARGIN_INDEX = 0; - - function swap(elem, options, callback) { - var old = {}; - var style = elem.style; - var name = undefined; - - // Remember the old values, and insert the new ones - for (name in options) { - if (options.hasOwnProperty(name)) { - old[name] = style[name]; - style[name] = options[name]; - } - } - - callback.call(elem); - - // Revert the old values - for (name in options) { - if (options.hasOwnProperty(name)) { - style[name] = old[name]; - } - } - } - - function getPBMWidth(elem, props, which) { - var value = 0; - var prop = undefined; - var j = undefined; - var i = undefined; - for (j = 0; j < props.length; j++) { - prop = props[j]; - if (prop) { - for (i = 0; i < which.length; i++) { - var cssProp = undefined; - if (prop === 'border') { - cssProp = prop + which[i] + 'Width'; - } else { - cssProp = prop + which[i]; - } - value += parseFloat(getComputedStyleX(elem, cssProp)) || 0; - } - } - } - return value; - } - - /** - * A crude way of determining if an object is a window - * @member util - */ - function isWindow(obj) { - // must use == for ie8 - /* eslint eqeqeq:0 */ - return obj != null && obj == obj.window; - } - - var domUtils = {}; - - each(['Width', 'Height'], function (name) { - domUtils['doc' + name] = function (refWin) { - var d = refWin.document; - return Math.max( - // firefox chrome documentElement.scrollHeight< body.scrollHeight - // ie standard mode : documentElement.scrollHeight> body.scrollHeight - d.documentElement['scroll' + name], - // quirks : documentElement.scrollHeight 最大等于可视窗口多一点? - d.body['scroll' + name], domUtils['viewport' + name](d)); - }; - - domUtils['viewport' + name] = function (win) { - // pc browser includes scrollbar in window.innerWidth - var prop = 'client' + name; - var doc = win.document; - var body = doc.body; - var documentElement = doc.documentElement; - var documentElementProp = documentElement[prop]; - // 标准模式取 documentElement - // backcompat 取 body - return doc.compatMode === 'CSS1Compat' && documentElementProp || body && body[prop] || documentElementProp; - }; - }); - - /* - 得到元素的大小信息 - @param elem - @param name - @param {String} [extra] 'padding' : (css width) + padding - 'border' : (css width) + padding + border - 'margin' : (css width) + padding + border + margin - */ - function getWH(elem, name, extra) { - if (isWindow(elem)) { - return name === 'width' ? domUtils.viewportWidth(elem) : domUtils.viewportHeight(elem); - } else if (elem.nodeType === 9) { - return name === 'width' ? domUtils.docWidth(elem) : domUtils.docHeight(elem); - } - var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom']; - var borderBoxValue = name === 'width' ? elem.offsetWidth : elem.offsetHeight; - var computedStyle = getComputedStyleX(elem); - var isBorderBox = isBorderBoxFn(elem, computedStyle); - var cssBoxValue = 0; - if (borderBoxValue == null || borderBoxValue <= 0) { - borderBoxValue = undefined; - // Fall back to computed then un computed css if necessary - cssBoxValue = getComputedStyleX(elem, name); - if (cssBoxValue == null || Number(cssBoxValue) < 0) { - cssBoxValue = elem.style[name] || 0; - } - // Normalize '', auto, and prepare for extra - cssBoxValue = parseFloat(cssBoxValue) || 0; - } - if (extra === undefined) { - extra = isBorderBox ? BORDER_INDEX : CONTENT_INDEX; - } - var borderBoxValueOrIsBorderBox = borderBoxValue !== undefined || isBorderBox; - var val = borderBoxValue || cssBoxValue; - if (extra === CONTENT_INDEX) { - if (borderBoxValueOrIsBorderBox) { - return val - getPBMWidth(elem, ['border', 'padding'], which, computedStyle); - } - return cssBoxValue; - } - if (borderBoxValueOrIsBorderBox) { - var padding = extra === PADDING_INDEX ? -getPBMWidth(elem, ['border'], which, computedStyle) : getPBMWidth(elem, ['margin'], which, computedStyle); - return val + (extra === BORDER_INDEX ? 0 : padding); - } - return cssBoxValue + getPBMWidth(elem, BOX_MODELS.slice(extra), which, computedStyle); - } - - var cssShow = { - position: 'absolute', - visibility: 'hidden', - display: 'block' - }; - - // fix #119 : https://github.com/kissyteam/kissy/issues/119 - function getWHIgnoreDisplay(elem) { - var val = undefined; - var args = arguments; - // in case elem is window - // elem.offsetWidth === undefined - if (elem.offsetWidth !== 0) { - val = getWH.apply(undefined, args); - } else { - swap(elem, cssShow, function () { - val = getWH.apply(undefined, args); - }); - } - return val; - } - - function css(el, name, v) { - var value = v; - if ((typeof name === 'undefined' ? 'undefined' : _typeof(name)) === 'object') { - for (var i in name) { - if (name.hasOwnProperty(i)) { - css(el, i, name[i]); - } - } - return undefined; - } - if (typeof value !== 'undefined') { - if (typeof value === 'number') { - value += 'px'; - } - el.style[name] = value; - return undefined; - } - return getComputedStyleX(el, name); - } - - each(['width', 'height'], function (name) { - var first = name.charAt(0).toUpperCase() + name.slice(1); - domUtils['outer' + first] = function (el, includeMargin) { - return el && getWHIgnoreDisplay(el, name, includeMargin ? MARGIN_INDEX : BORDER_INDEX); - }; - var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom']; - - domUtils[name] = function (elem, val) { - if (val !== undefined) { - if (elem) { - var computedStyle = getComputedStyleX(elem); - var isBorderBox = isBorderBoxFn(elem); - if (isBorderBox) { - val += getPBMWidth(elem, ['padding', 'border'], which, computedStyle); - } - return css(elem, name, val); - } - return undefined; - } - return elem && getWHIgnoreDisplay(elem, name, CONTENT_INDEX); - }; - }); - - // 设置 elem 相对 elem.ownerDocument 的坐标 - function setOffset(elem, offset) { - // set position first, in-case top/left are set even on static elem - if (css(elem, 'position') === 'static') { - elem.style.position = 'relative'; - } - - var old = getOffset(elem); - var ret = {}; - var current = undefined; - var key = undefined; - - for (key in offset) { - if (offset.hasOwnProperty(key)) { - current = parseFloat(css(elem, key)) || 0; - ret[key] = current + offset[key] - old[key]; - } - } - css(elem, ret); - } - - module.exports = _extends({ - getWindow: function getWindow(node) { - var doc = node.ownerDocument || node; - return doc.defaultView || doc.parentWindow; - }, - offset: function offset(el, value) { - if (typeof value !== 'undefined') { - setOffset(el, value); - } else { - return getOffset(el); - } - }, - - isWindow: isWindow, - each: each, - css: css, - clone: function clone(obj) { - var ret = {}; - for (var i in obj) { - if (obj.hasOwnProperty(i)) { - ret[i] = obj[i]; - } - } - var overflow = obj.overflow; - if (overflow) { - for (var i in obj) { - if (obj.hasOwnProperty(i)) { - ret.overflow[i] = obj.overflow[i]; - } - } - } - return ret; - }, - scrollLeft: function scrollLeft(w, v) { - if (isWindow(w)) { - if (v === undefined) { - return getScrollLeft(w); - } - window.scrollTo(v, getScrollTop(w)); - } else { - if (v === undefined) { - return w.scrollLeft; - } - w.scrollLeft = v; - } - }, - scrollTop: function scrollTop(w, v) { - if (isWindow(w)) { - if (v === undefined) { - return getScrollTop(w); - } - window.scrollTo(getScrollLeft(w), v); - } else { - if (v === undefined) { - return w.scrollTop; - } - w.scrollTop = v; - } - }, - - viewportWidth: 0, - viewportHeight: 0 - }, domUtils); - -/***/ }), -/* 386 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _propTypes = __webpack_require__(6); - - var _propTypes2 = _interopRequireDefault(_propTypes); - - var _util = __webpack_require__(311); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** - * This source code is quoted from rc-menu. - * homepage: https://github.com/react-component/menu - */ - - - var MenuItemGroup = function (_React$Component) { - _inherits(MenuItemGroup, _React$Component); - - function MenuItemGroup() { - var _temp, _this, _ret; - - _classCallCheck(this, MenuItemGroup); - - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.renderInnerMenuItem = function (item) { - var _this$props = _this.props, - renderMenuItem = _this$props.renderMenuItem, - index = _this$props.index; - - return renderMenuItem(item, index, _this.props.subMenuKey); - }, _temp), _possibleConstructorReturn(_this, _ret); - } - - MenuItemGroup.prototype.render = function render() { - var props = _objectWithoutProperties(this.props, []); - - var _props$className = props.className, - className = _props$className === undefined ? '' : _props$className, - rootPrefixCls = props.rootPrefixCls; - - var titleClassName = rootPrefixCls + '-item-group-title'; - var listClassName = rootPrefixCls + '-item-group-list'; - var title = props.title, - children = props.children; - - _util.menuAllProps.forEach(function (key) { - return delete props[key]; - }); - - // Set onClick to null, to ignore propagated onClick event - delete props.onClick; - - return _react2["default"].createElement( - 'li', - _extends({}, props, { className: className + ' ' + rootPrefixCls + '-item-group' }), - _react2["default"].createElement( - 'div', - { - className: titleClassName, - title: typeof title === 'string' ? title : undefined - }, - title - ), - _react2["default"].createElement( - 'ul', - { className: listClassName }, - _react2["default"].Children.map(children, this.renderInnerMenuItem) - ) - ); - }; - - return MenuItemGroup; - }(_react2["default"].Component); - - MenuItemGroup.propTypes = { - renderMenuItem: _propTypes2["default"].func, - index: _propTypes2["default"].number, - className: _propTypes2["default"].string, - subMenuKey: _propTypes2["default"].string, - rootPrefixCls: _propTypes2["default"].string - }; - MenuItemGroup.defaultProps = { - disabled: true - }; - - - MenuItemGroup.isMenuItemGroup = true; - - exports["default"] = MenuItemGroup; - module.exports = exports['default']; - -/***/ }), -/* 387 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _propTypes = __webpack_require__(6); - - var _propTypes2 = _interopRequireDefault(_propTypes); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** - * This source code is quoted from rc-menu. - * homepage: https://github.com/react-component/menu - */ - - - var Divider = function (_React$Component) { - _inherits(Divider, _React$Component); - - function Divider() { - _classCallCheck(this, Divider); - - return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); - } - - Divider.prototype.render = function render() { - var _props = this.props, - className = _props.className, - rootPrefixCls = _props.rootPrefixCls, - style = _props.style; - - return _react2["default"].createElement('li', { - className: className + ' ' + rootPrefixCls + '-item-divider', - style: style - }); - }; - - return Divider; - }(_react2["default"].Component); - - Divider.propTypes = { - className: _propTypes2["default"].string, - rootPrefixCls: _propTypes2["default"].string, - style: _propTypes2["default"].object - }; - Divider.defaultProps = { - // To fix keyboard UX. - disabled: true, - className: '', - style: {} - }; - exports["default"] = Divider; - module.exports = exports['default']; - -/***/ }), -/* 388 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _classnames = __webpack_require__(5); - - var _classnames2 = _interopRequireDefault(_classnames); - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _propTypes = __webpack_require__(6); - - var _propTypes2 = _interopRequireDefault(_propTypes); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - - var defaultProps = { - clsPrefix: "u-navbar-side-container", - sideActive: false - }; - - var NavSideContainer = function (_React$Component) { - _inherits(NavSideContainer, _React$Component); - - function NavSideContainer() { - _classCallCheck(this, NavSideContainer); - - return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); - } - - NavSideContainer.prototype.render = function render() { - var _props = this.props, - className = _props.className, - children = _props.children, - clsPrefix = _props.clsPrefix, - sideActive = _props.sideActive, - expanded = _props.expanded, - props = _objectWithoutProperties(_props, ['className', 'children', 'clsPrefix', 'sideActive', 'expanded']); - - //const navbarProps = this.context.u_navbar; - - return _react2["default"].createElement( - 'div', - { className: (0, _classnames2["default"])(className, clsPrefix, expanded && 'expanded') }, - children - ); - }; - - return NavSideContainer; - }(_react2["default"].Component); - - NavSideContainer.defaultProps = defaultProps; - - exports["default"] = NavSideContainer; - module.exports = exports['default']; - -/***/ }), -/* 389 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - - var _classnames = __webpack_require__(5); - - var _classnames2 = _interopRequireDefault(_classnames); - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _propTypes = __webpack_require__(6); - - var _propTypes2 = _interopRequireDefault(_propTypes); - - var _createChainedFunction = __webpack_require__(37); - - var _createChainedFunction2 = _interopRequireDefault(_createChainedFunction); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - - var propTypes = { - onClick: _propTypes2["default"].func, - /** - * The toggle content, if left empty it will render the default toggle (seen above). - */ - show: _propTypes2["default"].bool, - children: _propTypes2["default"].node - }; - - var contextTypes = { - u_navbar: _propTypes2["default"].shape({ - expanded: _propTypes2["default"].bool, - onToggle: _propTypes2["default"].func - }) - }; - - var defaultProps = { - clsPrefix: 'u-navbar-toggle', - show: false - }; - - var MenuToggle = function (_React$Component) { - _inherits(MenuToggle, _React$Component); - - function MenuToggle(props) { - _classCallCheck(this, MenuToggle); - - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); - - _this.state = { - toggleState: false - //this.handleRender = this.handleRender.bind(this); - };return _this; - } - - MenuToggle.prototype.handleClick = function handleClick() { - var _context$u_navbar = this.context.u_navbar, - expanded = _context$u_navbar.expanded, - onToggle = _context$u_navbar.onToggle; - - this.setState({ toggleState: !this.state.toggleState }); - if (onToggle) { - onToggle(!expanded); - } - }; - - MenuToggle.prototype.render = function render() { - var _props = this.props, - onClick = _props.onClick, - className = _props.className, - children = _props.children, - clsPrefix = _props.clsPrefix, - show = _props.show, - props = _objectWithoutProperties(_props, ['onClick', 'className', 'children', 'clsPrefix', 'show']); - //const navbarProps = this.context.u_navbar || { bsClass: 'navbar' }; - //console.log(navbarProps.onToggle, navbarProps.expanded); - - var buttonProps = _extends({ - type: 'button' - }, props, { - onClick: (0, _createChainedFunction2["default"])(onClick, this.handleClick.bind(this)), - className: (0, _classnames2["default"])(className, clsPrefix, show && 'show') - //!this.context.u_navbar.expanded && 'collapsed', - }); - - if (children) { - return _react2["default"].createElement( - 'button', - buttonProps, - children - ); - } - //当show存在时,渲染左侧静态面包按钮 - return _react2["default"].createElement( - 'div', - null, - show && this.state.toggleState && _react2["default"].createElement( - 'button', - buttonProps, - _react2["default"].createElement( - 'span', - { className: 'sr-only' }, - 'Toggle navigation' - ), - _react2["default"].createElement('span', { className: 'icon-bar' }), - _react2["default"].createElement('span', { className: 'icon-bar' }), - _react2["default"].createElement('span', { className: 'icon-bar' }) - ), - show && !this.state.toggleState && _react2["default"].createElement( - 'button', - buttonProps, - _react2["default"].createElement('span', { className: 'uf uf-arrow-left' }) - ), - !show && !this.state.toggleState && _react2["default"].createElement( - 'button', - buttonProps, - _react2["default"].createElement( - 'span', - { className: 'sr-only' }, - 'Toggle navigation' - ), - _react2["default"].createElement('span', { className: 'icon-bar' }), - _react2["default"].createElement('span', { className: 'icon-bar' }), - _react2["default"].createElement('span', { className: 'icon-bar' }) - ) - ); - }; - - return MenuToggle; - }(_react2["default"].Component); - - MenuToggle.propTypes = propTypes; - MenuToggle.defaultProps = defaultProps; - MenuToggle.contextTypes = contextTypes; - - exports["default"] = MenuToggle; - module.exports = exports['default']; - -/***/ }), -/* 390 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _tinperBeeCore = __webpack_require__(27); - - function animate(node, show, done) { - var height = void 0; - return (0, _tinperBeeCore.cssAnimation)(node, 'u-motion-collapse', { - start: function start() { - if (!show) { - node.style.height = node.offsetHeight + 'px'; - } else { - height = node.offsetHeight; - node.style.height = 0; - } - }, - active: function active() { - node.style.height = (show ? height : 0) + 'px'; - }, - end: function end() { - node.style.height = ''; - done(); - } - }); - } - - var animation = { - enter: function enter(node, done) { - return animate(node, true, done); - }, - leave: function leave(node, done) { - return animate(node, false, done); - }, - appear: function appear(node, done) { - return animate(node, true, done); - } - }; - - exports["default"] = animation; - module.exports = exports['default']; - -/***/ }), -/* 391 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _warning = __webpack_require__(32); - - var _warning2 = _interopRequireDefault(_warning); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - - var warned = {}; - - exports["default"] = function (valid, message) { - if (!valid && !warned[message]) { - (0, _warning2["default"])(false, message); - warned[message] = true; - } - }; - - module.exports = exports['default']; - -/***/ }), -/* 392 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _propTypes = __webpack_require__(6); - - var _propTypes2 = _interopRequireDefault(_propTypes); - - var _shallowequal = __webpack_require__(307); - - var _shallowequal2 = _interopRequireDefault(_shallowequal); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - - var propTypes = { - record: _propTypes2['default'].object, - clsPrefix: _propTypes2['default'].string, - expandable: _propTypes2['default'].any, - expanded: _propTypes2['default'].bool, - needIndentSpaced: _propTypes2['default'].bool, - onExpand: _propTypes2['default'].func - }; - - var ExpandIcon = function (_Component) { - _inherits(ExpandIcon, _Component); - - function ExpandIcon(props) { - _classCallCheck(this, ExpandIcon); - - var _this = _possibleConstructorReturn(this, _Component.call(this, props)); - - _this.onExpand = function (status, record, e) { - var onExpand = _this.props.onExpand; - - e.stopPropagation(); - onExpand(status, record, e); - }; - - return _this; - } - - ExpandIcon.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) { - return !(0, _shallowequal2['default'])(nextProps, this.props); - }; - - ExpandIcon.prototype.render = function render() { - var _this2 = this; - - var _props = this.props, - expandable = _props.expandable, - clsPrefix = _props.clsPrefix, - onExpand = _props.onExpand, - needIndentSpaced = _props.needIndentSpaced, - expanded = _props.expanded, - record = _props.record, - isHiddenExpandIcon = _props.isHiddenExpandIcon, - expandedIcon = _props.expandedIcon, - collapsedIcon = _props.collapsedIcon; - - if (expandable && !isHiddenExpandIcon) { - var expandClassName = expanded ? 'expanded' : 'collapsed'; - var currentIcon = _react2['default'].createElement('span', { - className: clsPrefix + '-expand-icon ' + clsPrefix + '-' + expandClassName - }); - if (expanded && expandedIcon) { - currentIcon = expandedIcon; - } else if (!expanded && collapsedIcon) { - currentIcon = collapsedIcon; - } - return _react2['default'].createElement( - 'span', - { onClick: function onClick(e) { - return _this2.onExpand(!expanded, record, e); - }, className: 'expand-icon-con' }, - currentIcon - ); - } else if (needIndentSpaced || isHiddenExpandIcon) { - return _react2['default'].createElement('span', { className: clsPrefix + '-expand-icon ' + clsPrefix + '-spaced' }); - } - return null; - }; - - return ExpandIcon; - }(_react.Component); - - ; - - ExpandIcon.propTypes = propTypes; - - exports['default'] = ExpandIcon; - module.exports = exports['default']; - -/***/ }), -/* 393 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _reactDom = __webpack_require__(2); - - var _reactDom2 = _interopRequireDefault(_reactDom); - - var _propTypes = __webpack_require__(6); - - var _propTypes2 = _interopRequireDefault(_propTypes); - - var _throttleDebounce = __webpack_require__(394); - - var _utils = __webpack_require__(273); - - var _FilterType = __webpack_require__(395); - - var _FilterType2 = _interopRequireDefault(_FilterType); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - - var propTypes = { - clsPrefix: _propTypes2["default"].string, - rowStyle: _propTypes2["default"].object, - rows: _propTypes2["default"].array - }; - - function getDiv(id) { - var div = document.createElement("div"); - div.className = "u-table-drag-hidden-cont"; - div.id = id; - return div; - } - - var TableHeader = function (_Component) { - _inherits(TableHeader, _Component); - - function TableHeader(props) { - _classCallCheck(this, TableHeader); - - var _this = _possibleConstructorReturn(this, _Component.call(this, props)); - - _initialiseProps.call(_this); - - _this.currentObj = null; - _this.theadKey = new Date().getTime(); - _this.drag = { - option: '' - }; - _this.minWidth = parseInt(props.minColumnWidth); - _this.table = null; - _this._thead = null; //当前对象 - _this.event = false; //避免多次绑定问题 - _this.lastColumWidth = null; //非固定列最后一列的初始化宽度 - _this.fixedTable = {}; - return _this; - } - - TableHeader.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - var _this2 = this; - - // 表格column改变时,要重新绑定拖拽事件,否则拖拽不生效 - var oldCols = this.props.columnsChildrenList; - var newCols = nextProps.columnsChildrenList; - - if (this._thead) { - if (newCols.length !== oldCols.length) { - this.event = false; - return; - } - oldCols.some(function (item, index) { - if (newCols[index] && newCols[index].dataIndex !== item.dataIndex) { - _this2.event = false; - return true; - } - }); - } - }; - - TableHeader.prototype.componentDidUpdate = function componentDidUpdate() { - this.initTable(); - this.initEvent(); - }; - - TableHeader.prototype.componentDidMount = function componentDidMount() { - var uid = "_table_uid_" + new Date().getTime(); - this._table_none_cont_id = uid; - var div = getDiv(uid); - document.querySelector("body").appendChild(div); - }; - - TableHeader.prototype.componentWillUnmount = function componentWillUnmount() { - var _this3 = this; - - this.fixedTable = null; - if (!this.table) return; - if (this.props.draggable) { - this.removeDragAbleEvent(); - } - if (this.props.dragborder) { - this.removeDragBorderEvent(); - } - this.doEventList(this.table.tr, function (tr) { - _this3.eventListen([{ key: 'mousedown', fun: _this3.onTrMouseDown }], 'remove', tr); - }); - // this.eventListen([{key:'mousedown',fun:this.onTrMouseDown}],'remove',this.table.tr[0]); - this.eventListen([{ key: 'mouseup', fun: this.bodyonLineMouseUp }], 'remove', document.body); - }; - - /** - * 获取table的属性存放在this.table 中。(公用方法) - * @returns - * @memberof TableHeader - */ - - - TableHeader.prototype.initTable = function initTable() { - var contentTable = this.props.contentTable; - - if (!this.props.dragborder && !this.props.draggable) return; - var tableDome = this._thead.parentNode; - var table = {}; - if (tableDome && tableDome.nodeName && tableDome.nodeName.toUpperCase() == "TABLE") { - table.table = tableDome; - table.cols = tableDome.getElementsByTagName("col"); - table.ths = tableDome.getElementsByTagName("th"); - table.tr = tableDome.getElementsByTagName("tr"); - table.tableBody = contentTable.querySelector('.u-table-scroll .u-table-body') && contentTable.querySelector('.u-table-scroll .u-table-body'); - table.tableBodyCols = contentTable.querySelector('.u-table-scroll .u-table-body') && contentTable.querySelector('.u-table-scroll .u-table-body').getElementsByTagName("col"); - } - - table.fixedLeftHeaderTable = contentTable.querySelector('.u-table-fixed-left .u-table-header'); - table.fixedRighHeadertTable = contentTable.querySelector('.u-table-fixed-right .u-table-header'); - table.contentTableHeader = contentTable.querySelector('.u-table-scroll .u-table-header'); - table.fixedLeftBodyTable = contentTable.querySelector('.u-table-fixed-left .u-table-body-outer'); - table.fixedRightBodyTable = contentTable.querySelector('.u-table-fixed-right .u-table-body-outer'); - table.innerTableBody = contentTable.querySelector('.u-table-scroll .u-table-body table'); - - this.table = table; - - if (!this.props.dragborder) return; - if (document.getElementById("u-table-drag-thead-" + this.theadKey)) { - this.fixedTable = {}; - var _fixedParentContext = document.getElementById("u-table-drag-thead-" + this.theadKey).parentNode; - var siblingDom = _fixedParentContext.parentNode.nextElementSibling; - if (siblingDom) { - var fixedTable = siblingDom.querySelector("table"); - this.fixedTable.table = fixedTable; - this.fixedTable.cols = fixedTable.getElementsByTagName("col"); - // this.fixedTable.ths = fixedTable.tableDome.getElementsByTagName("th"); - } - } - }; - - /** - * 事件初始化 - */ - - - TableHeader.prototype.initEvent = function initEvent() { - var _this4 = this; - - var _props = this.props, - dragborder = _props.dragborder, - draggable = _props.draggable, - rows = _props.rows; - // 当传入的 columns 为空时,不绑定拖拽事件 - - if (Object.prototype.toString.call(rows) === '[object Array]' && rows.length === 0) { - return; - } - if (!this.event) { - //避免多次绑定问题。 - this.event = true; - if (dragborder) { - this.dragBorderEventInit(); //列宽 - } - if (draggable) { - this.dragAbleEventInit(); //交换列 - } - if (this.table && this.table.tr) { - // this.eventListen([{key:'mousedown',fun:this.onTrMouseDown}],'',this.table.tr[0]);//body mouseup - this.doEventList(this.table.tr, function (tr) { - _this4.eventListen([{ key: 'mousedown', fun: _this4.onTrMouseDown }], '', tr); //body mouseup - }); - } - this.eventListen([{ key: 'mouseup', fun: this.bodyonLineMouseUp }], '', document.body); //body mouseup - } - }; - - TableHeader.prototype.doEventList = function doEventList(trs, action) { - for (var index = 0; index < trs.length; index++) { - action(trs[index]); - } - }; - - /** - * 拖拽列宽事件的监听 - */ - - - TableHeader.prototype.dragBorderEventInit = function dragBorderEventInit() { - var _this5 = this; - - if (!this.props.dragborder) return; - var events = [{ key: 'mouseup', fun: this.onTrMouseUp }, { key: 'mousemove', fun: this.onTrMouseMove }]; - this.doEventList(this.table.tr, function (tr) { - _this5.eventListen(events, '', tr); //表示把事件添加到th元素上 - }); - // this.eventListen(events,'',this.table.tr[0]);//表示把事件添加到th元素上 - }; - - /** - * 删除拖动改变列宽的事件监听 - */ - - - TableHeader.prototype.removeDragBorderEvent = function removeDragBorderEvent() { - var _this6 = this; - - var events = [{ key: 'mouseup', fun: this.onTrMouseUp }, { key: 'mousemove', fun: this.onTrMouseMove }]; - // this.eventListen(events,'remove',this.table.tr[0]); - this.doEventList(this.table.tr, function (tr) { - _this6.eventListen(events, 'remove', _this6.table.tr); - }); - }; - - TableHeader.prototype.eventListen = function eventListen(events, type, eventSource) { - if (!this.table) return; - if (!eventSource) { - console.log("Please set the attributes of column !"); - return; - } - var tr = this.table.tr; - - for (var i = 0; i < events.length; i++) { - var _event = events[i]; - if (type === "remove") { - _utils.EventUtil.removeHandler(eventSource, _event.key, _event.fun); - } else { - _utils.EventUtil.addHandler(eventSource, _event.key, _event.fun); - } - } - }; - - /** - * - *根据 data-type 来获取当前拖拽的对象的Object,如果为null表示拖动的对象并非是online - * @memberof TableHeader - */ - - - /** - * 调整列宽的down事件 - * @memberof TableHeader - */ - - - /** - * 根据当前节点查找到有data-type类型的容器返回。 - * @memberof TableHeader - */ - - - /** - * 判断当前的target 是否是 th,如果不是,直接递归查找。 - * @memberof TableHeader - */ - - /** - * 调整列宽的move事件 - * @memberof TableHeader - */ - - - /** - * 调整列宽的up事件 - * @memberof TableHeader - */ - - - TableHeader.prototype.mouseClear = function mouseClear() { - if (!this.drag || !this.drag.option) return; - var rows = this.props.rows; - - var data = { rows: rows[0], cols: this.table.cols, currIndex: this.drag.currIndex }; - this.props.afterDragColWidth && this.props.afterDragColWidth(data); - this.drag = { - option: "" - }; - this.clearThsDr(); - }; - - /** - * 当前对象上绑定全局事件,用于拖拽区域以外时的事件处理 - * @param {*} events - * @param {*} type - * @memberof TableHeader - */ - - - /** - *相关滚动条联动操作 - * - * @memberof TableHeader - */ - - - //---拖拽交换列代码----start----- - /** - * 添加换列的事件监听 - */ - TableHeader.prototype.dragAbleEventInit = function dragAbleEventInit() { - if (!this.props.draggable) return; - var events = [{ key: 'dragstart', fun: this.onDragStart }, //用户开始拖动元素时触发 - { key: 'dragover', fun: this.onDragOver }, //当某被拖动的对象在另一对象容器范围内拖动时触发此事件 - { key: 'drop', fun: this.onDrop }, //在一个拖动过程中,释放鼠标键时触发此事件 - - { key: 'dragenter', fun: this.onDragEnter }, { key: 'dragend', fun: this.onDragEnd }, { key: 'dragleave', fun: this.onDragLeave }]; - this.eventListen(events, '', this.table.tr[0]); //表示把事件添加到th元素上 - }; - - /** - * 删除换列的事件监听 - */ - - - TableHeader.prototype.removeDragAbleEvent = function removeDragAbleEvent() { - var events = [{ key: 'dragstart', fun: this.onDragStart }, { key: 'dragover', fun: this.onDragOver }, { key: 'drop', fun: this.onDrop }, { key: 'dragenter', fun: this.onDragEnter }, { key: 'dragend', fun: this.onDragEnd }, { key: 'dragleave', fun: this.onDragLeave }]; - this.eventListen(events, 'remove', this.table.tr[0]); - }; - - /** - * 开始调整交换列的事件 - */ - - - /** - * 在一个拖动过程中,释放鼠标键时触发此事件。【目标事件】 - * @memberof TableHeader - */ - - - /** - * 获取当前th上的对象数据 - * @param {*} e - * @returns - * @memberof TableHeader - */ - TableHeader.prototype.getCurrentEventData = function getCurrentEventData(th) { - if (!th) { - console.log(" event target is not th ! "); - return null; - } - var key = th.getAttribute('data-line-key'); - var data = this.props.rows[0].find(function (da) { - return da.key == key; - }); - if (data) { - return data; - } else { - console.log(" getCurrentEventData data is null "); - return null; - } - }; - - /** - * 根据当前鼠标点击的节点,进行递归遍历,最终找到th - * @param {*} element - * @returns
  • ) :\n cells.push(\n \n {expandIcon}\n \n );\n }\n // bugfix 设置expandRowByClick,无法显示箭头,去掉 expandRowByClick 判断\n const isColumnHaveExpandIcon = (expandIconAsCell || showSum) \n ? false : (i === expandIndexInThisTable);\n cells.push(\n \n );\n }\n const style = { height ,...record?record.style:undefined};\n if (!visible) {\n style.display = 'none';\n }\n if(record && record._checked){\n className += ' selected';\n }\n return (\n \n {cells.length>0?cells:}\n \n );\n }\n};\n\nTableRow.propTypes = propTypes;\nTableRow.defaultProps = defaultProps;\n\nexport default TableRow;\n\n\n\n// WEBPACK FOOTER //\n// ./src/TableRow.js","import warning from 'warning';\r\nimport parseInt from 'lodash/parseInt';\r\n\r\n\r\nlet scrollbarSize;\r\n\r\n// Measure scrollbar width for padding body during modal show/hide\r\nconst scrollbarMeasure = {\r\n position: 'absolute',\r\n top: '-9999px',\r\n width: '50px',\r\n height: '50px',\r\n overflow: 'scroll',\r\n};\r\n\r\nexport function measureScrollbar(direction = 'vertical') {\r\n \r\n if (typeof document === 'undefined' || typeof window === 'undefined') {\r\n return 0;\r\n }\r\n const tableDom =document.querySelector('.u-table');\r\n let currentDom = tableDom?tableDom:document.body;\r\n\r\n if (scrollbarSize) {\r\n return scrollbarSize;\r\n }\r\n const scrollDiv = document.createElement('div');\r\n Object.keys(scrollbarMeasure).forEach(scrollProp => {\r\n scrollDiv.style[scrollProp] = scrollbarMeasure[scrollProp];\r\n });\r\n currentDom.appendChild(scrollDiv);\r\n let size = 0;\r\n if (direction === 'vertical') {\r\n size = scrollDiv.offsetWidth - scrollDiv.clientWidth;\r\n } else if (direction === 'horizontal') {\r\n size = scrollDiv.offsetHeight - scrollDiv.clientHeight;\r\n }\r\n\r\n currentDom.removeChild(scrollDiv);\r\n scrollbarSize = size;\r\n return scrollbarSize;\r\n}\r\n\r\n\r\nexport function debounce(func, wait, immediate) {\r\n let timeout;\r\n return function debounceFunc() {\r\n const context = this;\r\n const args = arguments;\r\n // https://fb.me/react-event-pooling\r\n if (args[0] && args[0].persist) {\r\n args[0].persist();\r\n }\r\n const later = () => {\r\n timeout = null;\r\n if (!immediate) {\r\n func.apply(context, args);\r\n }\r\n };\r\n const callNow = immediate && !timeout;\r\n clearTimeout(timeout);\r\n timeout = setTimeout(later, wait);\r\n if (callNow) {\r\n func.apply(context, args);\r\n }\r\n };\r\n}\r\n\r\nconst warned = {};\r\nexport function warningOnce(condition, format, args) {\r\n if (!warned[format]) {\r\n warning(condition, format, args);\r\n warned[format] = true;\r\n }\r\n}\r\n export function getOffset (Node, offset ) {\r\n\tif(!offset) {\r\n\t\toffset = {};\r\n\t\toffset.top = 0;\r\n\t\toffset.left = 0;\r\n\t}\r\n\tif(Node == document.body) {\r\n\t\treturn offset;\r\n\t}\r\n\toffset.top += Node.offsetTop;\r\n\toffset.left += Node.offsetLeft;\r\n\tif(Node.offsetParent)\r\n\t\treturn getOffset(Node.offsetParent, offset);\r\n\telse\r\n\t\treturn offset;\r\n};\r\n\r\n\r\n\r\n\r\n\r\nexport const tryParseInt = (value, defaultValue = 0) => {\r\n const resultValue = parseInt(value);\r\n\r\n if (isNaN(resultValue)) {\r\n return defaultValue;\r\n }\r\n return resultValue;\r\n};\r\n\r\n\r\nexport function addClass(elm, className) {\r\n if (!className) return;\r\n\r\n const els = Array.isArray(elm) ? elm : [elm];\r\n\r\n els.forEach((el) => {\r\n if (el.classList) {\r\n el.classList.add(className.split(' '));\r\n } else {\r\n el.className += ` ${className}`;\r\n }\r\n });\r\n}\r\n\r\nexport function removeClass(elm, className) {\r\n if (!className) return;\r\n\r\n const els = Array.isArray(elm) ? elm : [elm];\r\n\r\n els.forEach((el) => {\r\n if (el.classList) {\r\n el.classList.remove(className.split(' '));\r\n } else {\r\n el.className = el.className.replace(new RegExp(`(^|\\\\b)${className.split(' ').join('|')}(\\\\b|$)`, 'gi'), ' ');\r\n }\r\n });\r\n}\r\n\r\n/**\r\n * 简单数组数据对象拷贝\r\n * @param {*} obj 要拷贝的对象 \r\n */\r\nexport function ObjectAssign(obj){\r\n let b = obj instanceof Array;\r\n let tagObj = b?[]:{};\r\n if(b){//数组\r\n obj.forEach(da => {\r\n let _da = {};\r\n Object.assign(_da,da);\r\n tagObj.push(_da);\r\n });\r\n }else{\r\n Object.assign(tagObj,obj);\r\n }\r\n return tagObj;\r\n}\r\n/**\r\n * 获取某个父元素\r\n * */\r\n\r\nexport function closest(ele, selector) {\r\n const matches = ele.matches || ele.webkitMatchesSelector || ele.mozMatchesSelector || ele.msMatchesSelector;\r\n if (matches) {\r\n while (ele) {\r\n if (matches.call(ele, selector)) {\r\n return ele;\r\n } else {\r\n ele = ele.parentElement;\r\n }\r\n }\r\n }\r\n return null;\r\n}\r\n\r\n\r\nexport function getMaxColChildrenLength(columns){\r\n let arr=[];\r\n arr = columns.map((item,index)=>{\r\n let chilrenLen = 0;\r\n if(item.children){\r\n chilrenLen = getColChildrenLength(item.children,chilrenLen+1)\r\n }\r\n return chilrenLen\r\n })\r\n var max = Math.max.apply(null,arr);\r\n return max;\r\n} \r\n\r\nexport function getColChildrenLength(columns,chilrenLen){\r\n columns.forEach((item,index)=>{\r\n if(item.children){\r\n chilrenLen = getColChildrenLength(item.children,chilrenLen+1);\r\n }\r\n })\r\n return chilrenLen;\r\n}\r\n\r\n\r\n function addHandler(element,type,handler){\r\n let event = null;\r\n if(element.addEventListener){//检测是否为DOM2级方法\r\n event = element.addEventListener(type, handler, false);\r\n }else if (element.attachEvent){//检测是否为IE级方法\r\n event = element.attachEvent(\"on\" + type, handler);\r\n } else {//检测是否为DOM0级方法\r\n event = element[\"on\" + type] = handler;\r\n }\r\n return event;\r\n}\r\n\r\n function removeHandler(element, type, handler){\r\n if (element&&element.removeEventListener){//element&& ie11报错兼容\r\n element.removeEventListener(type, handler, false);\r\n } else if (element&&element.detachEvent){\r\n element.detachEvent(\"on\" + type, handler);\r\n } else if(element) {\r\n element[\"on\" + type] = null;\r\n }\r\n}\r\n\r\n//获取事件对象的兼容性写法\r\nfunction getEvent(event){\r\n return event ? event : window.event;\r\n}\r\n\r\n//获取事件对象目标的兼容性写法\r\nfunction getTarget(event){\r\n return event.target || event.srcElement;\r\n}\r\n\r\nfunction preventDefault(event){\r\n if (event.preventDefault){\r\n event.preventDefault();\r\n } else {\r\n event.returnValue = false;\r\n }\r\n}\r\n\r\nfunction stopPropagation(event){\r\n if (event.stopPropagation){\r\n event.stopPropagation();\r\n } else {\r\n event.cancelBubble = true;\r\n }\r\n}\r\n\r\n\r\n//用事件冒泡方式,如果想兼容事件捕获只需要添加个bool参数\r\nexport const EventUtil = {\r\n addHandler: function(element,type,handler) {\r\n if (element.addEventListener) {\r\n element.addEventListener(type,handler,false);\r\n }\r\n else if (element.attachEvent) {\r\n element.attachEvent('on'+type,handler);\r\n }\r\n else {\r\n element['on'+type] = handler;\r\n }\r\n },\r\n\r\n removeHandler: function(element,type,handler) {//element&& ie11报错兼容\r\n if (element&&element.removeEventListener)\r\n {\r\n element.removeEventListener(type,handler,false);\r\n }\r\n else if(element&&element.detachEvent) {\r\n element.detachEvent('on' +type,handler);\r\n }\r\n else if(element){\r\n element['on'+type] = null;\r\n }\r\n }\r\n}\r\n\r\n/*\r\n * 处理精度\r\n */\r\nexport function DicimalFormater(value,precision) {\r\n var value = value + '',\r\n precision = precision?precision:0;\r\n for (var i = 0; i < value.length; i++) {\r\n if (\"-0123456789.\".indexOf(value.charAt(i)) == -1)\r\n return \"\";\r\n }\r\n return checkDicimalInvalid(value, precision);\r\n};\r\nexport function checkDicimalInvalid(value, precision) {\r\n if (value == null || isNaN(value))\r\n return \"\";\r\n // 浮点数总位数不能超过10位\r\n var digit = parseFloat(value);\r\n var result = (digit * Math.pow(10, precision) / Math.pow(10, precision))\r\n .toFixed(precision);\r\n if (result == \"NaN\")\r\n return \"\";\r\n return result;\r\n};\r\n\r\n\r\n/**\r\n * 将数值转化为货币类型\r\n * @param {*} number 数值\r\n * @param {*} places 精度\r\n * @param {*} thousand 是否展示千分位\r\n */\r\nexport function formatMoney(number, places, thousand) {\r\n number = number || 0;\r\n places = !isNaN(places = Math.abs(places)) ? places : 2;\r\n let thousandSymbol = thousand ? \",\" : '';\r\n let negative = number < 0 ? \"-\" : \"\";\r\n let i = parseInt(number = Math.abs(+number || 0).toFixed(places), 10) + \"\";\r\n let j = (j = i.length) > 3 ? j % 3 : 0;\r\n return negative + (j ? i.substr(0, j) + thousandSymbol : \"\") + i.substr(j).replace(/(\\d{3})(?=\\d)/g, \"$1\" + thousandSymbol) + (places ? '.' + Math.abs(number - i).toFixed(places).slice(2) : \"\");\r\n}\r\n\r\nexport const Event = {\r\n addHandler,\r\n removeHandler,\r\n getEvent,\r\n getTarget,\r\n preventDefault,\r\n stopPropagation\r\n}\r\n\r\n/**\r\n * 将一维数组转换为树结构\r\n * @param {*} treeData 扁平结构的 List 数组\r\n * @param {*} attr 属性配置设置\r\n * @param {*} flatTreeKeysMap 存储所有 key-value 的映射,方便获取各节点信息\r\n */\r\nexport function convertListToTree(treeData, attr, flatTreeKeysMap) {\r\n let tree = []; //存储所有一级节点\r\n let resData = treeData, //resData 存储截取的节点 + 父节点(除一级节点外)\r\n resKeysMap = {}, //resData 的Map映射\r\n treeKeysMap = {}; //tree 的Map映射\r\n resData.map((element) => {\r\n let key = attr.id;\r\n resKeysMap[element[key]] = element;\r\n });\r\n // 查找父节点,为了补充不完整的数据结构\r\n let findParentNode = (node) => {\r\n let parentKey = node[attr.parendId];\r\n if(parentKey !== attr.rootId) { //如果不是根节点,则继续递归\r\n let item = flatTreeKeysMap[parentKey];\r\n // 用 resKeysMap 判断,避免重复计算某节点的父节点\r\n if(resKeysMap.hasOwnProperty(item[attr.id])) return;\r\n resData.unshift(item);\r\n resKeysMap[item[attr.id]] = item;\r\n findParentNode(item);\r\n }else{\r\n // 用 treeKeysMap 判断,避免重复累加\r\n if (!treeKeysMap.hasOwnProperty(node[attr.id]) ) {\r\n let { key, title, children, _isLeaf, ...otherProps } = node;\r\n let obj = {\r\n key,\r\n title,\r\n _isLeaf,\r\n children: []\r\n }\r\n tree.push(Object.assign(obj, {...otherProps}));\r\n treeKeysMap[key] = node;\r\n }\r\n }\r\n }\r\n // 遍历 resData ,找到所有的一级节点\r\n for (let i = 0; i < resData.length; i++) {\r\n let item = resData[i];\r\n if (item[attr.parendId] === attr.rootId && !treeKeysMap.hasOwnProperty(item[attr.id])) { //如果是根节点,就存放进 tree 对象中\r\n let { key, title, children, ...otherProps } = item;\r\n let obj = {\r\n key: item[attr.id],\r\n _isLeaf: item[attr._isLeaf],\r\n children: []\r\n };\r\n tree.push(Object.assign(obj, {...otherProps}));\r\n treeKeysMap[key] = item;\r\n resData.splice(i, 1);\r\n i--;\r\n }else { //递归查找根节点信息\r\n findParentNode(item);\r\n }\r\n }\r\n // console.log('resData',resKeysMap);\r\n var run = function(treeArrs) {\r\n if (resData.length > 0) {\r\n for (let i = 0; i < treeArrs.length; i++) {\r\n for (let j = 0; j < resData.length; j++) {\r\n let item = resData[j];\r\n if (treeArrs[i].key === item[attr.parendId]) {\r\n let { key, title, children, ...otherProps } = item;\r\n let obj = {\r\n key: item[attr.id],\r\n _isLeaf: item[attr._isLeaf],\r\n children: []\r\n };\r\n treeArrs[i].children.push(Object.assign(obj, {...otherProps}));\r\n resData.splice(j, 1);\r\n j--;\r\n }\r\n }\r\n run(treeArrs[i].children);\r\n }\r\n }\r\n };\r\n run(tree);\r\n return tree;\r\n}\n\n\n// WEBPACK FOOTER //\n// ./src/lib/utils.js","var root = require('./_root'),\n toString = require('./toString');\n\n/** Used to match leading and trailing whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeParseInt = root.parseInt;\n\n/**\n * Converts `string` to an integer of the specified radix. If `radix` is\n * `undefined` or `0`, a `radix` of `10` is used unless `value` is a\n * hexadecimal, in which case a `radix` of `16` is used.\n *\n * **Note:** This method aligns with the\n * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category String\n * @param {string} string The string to convert.\n * @param {number} [radix=10] The radix to interpret `value` by.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.parseInt('08');\n * // => 8\n *\n * _.map(['6', '08', '10'], _.parseInt);\n * // => [6, 8, 10]\n */\nfunction parseInt(string, radix, guard) {\n if (guard || radix == null) {\n radix = 0;\n } else if (radix) {\n radix = +radix;\n }\n return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0);\n}\n\nmodule.exports = parseInt;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/lodash/parseInt.js\n// module id = 274\n// module chunks = 0","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/lodash/_root.js\n// module id = 275\n// module chunks = 0","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/lodash/_freeGlobal.js\n// module id = 276\n// module chunks = 0","var baseToString = require('./_baseToString');\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n return value == null ? '' : baseToString(value);\n}\n\nmodule.exports = toString;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/lodash/toString.js\n// module id = 277\n// module chunks = 0","var Symbol = require('./_Symbol'),\n arrayMap = require('./_arrayMap'),\n isArray = require('./isArray'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = baseToString;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/lodash/_baseToString.js\n// module id = 278\n// module chunks = 0","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/lodash/_Symbol.js\n// module id = 279\n// module chunks = 0","/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n}\n\nmodule.exports = arrayMap;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/lodash/_arrayMap.js\n// module id = 280\n// module chunks = 0","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nmodule.exports = isArray;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/lodash/isArray.js\n// module id = 281\n// module chunks = 0","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/lodash/isSymbol.js\n// module id = 282\n// module chunks = 0","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/lodash/_baseGetTag.js\n// module id = 283\n// module chunks = 0","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/lodash/_getRawTag.js\n// module id = 284\n// module chunks = 0","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/lodash/_objectToString.js\n// module id = 285\n// module chunks = 0","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/lodash/isObjectLike.js\n// module id = 286\n// module chunks = 0","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport objectPath from 'object-path';\nimport i18n from './lib/i18n';\nimport { getComponentLocale } from 'bee-locale/build/tool';\nimport { formatMoney } from './lib/utils';\nimport Dropdown from 'bee-dropdown';\nimport Menu from 'bee-menus';\nconst { Item } = Menu;\nconst propTypes = {\n record: PropTypes.object,\n clsPrefix: PropTypes.string,\n index: PropTypes.number,\n indent: PropTypes.number,\n indentSize: PropTypes.number,\n column: PropTypes.object,\n expandIcon: PropTypes.node,\n onPaste:PropTypes.func\n};\n\nclass TableCell extends Component{\n constructor(props){\n super(props);\n this.isInvalidRenderCellText = this.isInvalidRenderCellText.bind(this);\n this.handleClick = this.handleClick.bind(this);\n this.state = {\n showDropdowm: false\n }\n }\n isInvalidRenderCellText(text) {\n return text && !React.isValidElement(text) &&\n Object.prototype.toString.call(text) === '[object Object]';\n }\n handleClick(e) {\n const { record, column: { onCellClick } } = this.props;\n if (onCellClick) {\n onCellClick(record, e);\n }\n }\n\n // 渲染链接类型\n renderLinkType = ( data, record, index, config={}) => {\n const { url, urlIndex, linkType, className, underline, descIndex, desc, linkColor } = config;\n let linkUrl = '';\n if(url){\n linkUrl = url(data, record, index);\n }\n else if(urlIndex){\n linkUrl = record[urlIndex];\n }\n if(linkUrl){\n let link = () => {\n window.open(linkUrl,linkType || '_blank');\n }\n let cls = 'u-table-link u-table-fieldtype ';\n if(className){\n cls += `${className} `;\n }\n if(underline){\n cls += 'u-table-link-underline ';\n }\n let title = '';\n\n if(desc === true){\n title = linkUrl;\n }\n else if( typeof desc === 'string'){\n title = desc;\n }\n else if( typeof desc === 'function'){\n title = desc(data, record, index);\n }\n else if(descIndex){\n title = record[descIndex];\n }\n return {data}\n }\n return data;\n }\n\n // 渲染布尔类型\n renderBoolType = ( data, config={} ) => {\n let locale = getComponentLocale(this.props, this.context, 'Table', () => i18n);\n let boolConfig = {...{ trueText: locale['bool_true'], falseText: locale['bool_false']},...config};\n if(typeof data === 'string'){\n if(data === 'false' || data === '0'){\n return boolConfig.falseText;\n }\n }\n else if(!data){\n return boolConfig.falseText;\n }\n return boolConfig.trueText;\n }\n\n // 渲染整数/货币类型\n renderNumber = (data, config={}, width=200) => {\n const { precision, thousand, makeUp, preSymbol, nextSymbol } = config;\n let number = formatMoney(data, precision, thousand);\n if(makeUp === false && number.indexOf('.') !== -1) {\n number = number.replace(/0*$/,'').replace(/\\.$/,'');\n }\n let numberWidth = parseInt(width) - 16; // 减去默认的左右padding共计16px\n let res = {number};\n let pre = preSymbol ? {preSymbol} : null;\n let next = nextSymbol ? {nextSymbol} : null;\n let title = '';\n title += typeof preSymbol === 'string' ? preSymbol : '';\n title += number;\n title += typeof nextSymbol === 'string' ? nextSymbol : '';\n return \n {pre}\n {res}\n {next}\n ;\n }\n\n // 渲染时间类型-l\n renderDate = ( data, config={}) => {\n const { moment, format } = config;\n if(!moment)return data;\n return moment(data).format(format || 'YYYY-MM-DD');\n }\n\n // 渲染下拉类型,主要为编辑表格铺垫\n renderSelect = ( data, config={}) => {\n if(config.options){\n data = config.options[data] || config.defaultShow;\n }\n return data;\n }\n\n\n // 渲染行内菜单\n renderColumnMenu = (colMenu, text, record, index) => {\n if (!colMenu) return null;\n let { menu, trigger = 'hover', className = '', icon = , iconSize = 21 } = colMenu;\n let items = [];\n items = menu.map((item) => {\n return { this.onClickColMenu(item.callback, text, record, index) }}>\n {item.icon}\n {item.text}\n \n })\n if (items.length === 0) return null;\n className += ' u-table-inline-op-dropdowm'\n let menus = {items};\n let top = `calc(50% - ${iconSize / 2}px)`;\n let visibility = this.state.showDropdowm ? 'visible' : '';\n let iconClassName = `u-table-inline-op-icon u-table-inline-op-icon-hover`;\n return \n {{icon}}\n \n }\n\n // 下拉按钮状态改变,点击后保持图标常驻\n changeShowDropdowm = (val) => {\n this.setState({\n showDropdowm: val\n })\n }\n\n // 菜单点击事件\n onClickColMenu = (callback, text, record, index) => {\n if (callback) {\n callback(text, record, index);\n }\n this.setState({\n showDropdowm: false,\n })\n }\n onPaste=(e)=>{\n let { index:row,onPaste,fixed,col } = this.props\n let position = {\n row,\n col,\n fixed:!!fixed\n }\n onPaste(e,position)\n }\n\n render() {\n const { record, indentSize, clsPrefix, indent,\n index, expandIcon, column ,fixed,showSum, bodyDisplayInRow,lazyStartIndex,lazyEndIndex} = this.props;\n const { dataIndex, render, fieldType, linkConfig, fontColor, bgColor,...other } = column;\n let {className = ''} = column;\n\n let text = objectPath.get(record, dataIndex);\n let tdProps;\n let colSpan;\n let rowSpan,title;\n\n if (render && !showSum) {\n text = render(text, record, index,{\n dataIndex, render, fieldType, linkConfig, fontColor, bgColor,...other\n });\n if (this.isInvalidRenderCellText(text)) {\n tdProps = text.props || {};\n rowSpan = (tdProps.rowSpan>lazyEndIndex && lazyEndIndex>5)?lazyEndIndex-index:tdProps.rowSpan;\n colSpan = tdProps.colSpan;\n text = text.children;\n }\n }\n\n let colMenu = this.renderColumnMenu(column.cellMenu, text, record, index);\n // 根据 fieldType 来渲染数据\n if(!render){\n switch(column.fieldType){\n case 'link':{\n text = this.renderLinkType(text, record, index, column.linkConfig);\n break;\n }\n case 'bool':{\n text = this.renderBoolType(text, column.boolConfig);\n break;\n }\n case 'currency':{\n let config = {\n precision: 2, // 精度值,需要大于0\n thousand: true, // 是否显示千分符号\n makeUp: true, // 末位是否补零\n preSymbol: '', // 前置符号\n nextSymbol: '', // 后置符号\n }\n text = this.renderNumber(text, {...config,...column.currencyConfig}, column.width);\n break;\n }\n case 'number':{\n let config = {\n precision: 0, // 精度值,需要大于0\n thousand: true, // 是否显示千分符号\n makeUp: false, // 末位是否补零\n preSymbol: '', // 前置符号\n nextSymbol: '', // 后置符号\n }\n text = this.renderNumber(text, {...config,...column.numberConfig}, column.width);\n break;\n }\n case 'date':{\n text = this.renderDate(text, column.dateConfig);\n break;\n }\n case 'select':{\n text = this.renderSelect(text, column.selectConfig);\n break;\n }\n default : {\n break;\n }\n }\n }\n\n if (this.isInvalidRenderCellText(text)) {\n text = null;\n }\n\n const indentText = expandIcon ? (\n \n ) : null;\n\n if ((lazyStartIndex !==index) &&(rowSpan === 0 || colSpan === 0) ) {\n return null;\n }\n if(tdProps && tdProps.mergeEndIndex && index\n {indentText}\n {expandIcon}\n {text}\n {colMenu}\n \n }\n};\n\nTableCell.propTypes = propTypes;\n\nexport default TableCell;\n\n\n\n// WEBPACK FOOTER //\n// ./src/TableCell.js","(function (root, factory){\n 'use strict';\n\n /*istanbul ignore next:cant test*/\n if (typeof module === 'object' && typeof module.exports === 'object') {\n module.exports = factory();\n } else if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define([], factory);\n } else {\n // Browser globals\n root.objectPath = factory();\n }\n})(this, function(){\n 'use strict';\n\n var toStr = Object.prototype.toString;\n function hasOwnProperty(obj, prop) {\n if(obj == null) {\n return false\n }\n //to handle objects with null prototypes (too edge case?)\n return Object.prototype.hasOwnProperty.call(obj, prop)\n }\n\n function isEmpty(value){\n if (!value) {\n return true;\n }\n if (isArray(value) && value.length === 0) {\n return true;\n } else if (typeof value !== 'string') {\n for (var i in value) {\n if (hasOwnProperty(value, i)) {\n return false;\n }\n }\n return true;\n }\n return false;\n }\n\n function toString(type){\n return toStr.call(type);\n }\n\n function isObject(obj){\n return typeof obj === 'object' && toString(obj) === \"[object Object]\";\n }\n\n var isArray = Array.isArray || function(obj){\n /*istanbul ignore next:cant test*/\n return toStr.call(obj) === '[object Array]';\n }\n\n function isBoolean(obj){\n return typeof obj === 'boolean' || toString(obj) === '[object Boolean]';\n }\n\n function getKey(key){\n var intKey = parseInt(key);\n if (intKey.toString() === key) {\n return intKey;\n }\n return key;\n }\n\n function factory(options) {\n options = options || {}\n\n var objectPath = function(obj) {\n return Object.keys(objectPath).reduce(function(proxy, prop) {\n if(prop === 'create') {\n return proxy;\n }\n\n /*istanbul ignore else*/\n if (typeof objectPath[prop] === 'function') {\n proxy[prop] = objectPath[prop].bind(objectPath, obj);\n }\n\n return proxy;\n }, {});\n };\n\n function hasShallowProperty(obj, prop) {\n return (options.includeInheritedProps || (typeof prop === 'number' && Array.isArray(obj)) || hasOwnProperty(obj, prop))\n }\n\n function getShallowProperty(obj, prop) {\n if (hasShallowProperty(obj, prop)) {\n return obj[prop];\n }\n }\n\n function set(obj, path, value, doNotReplace){\n if (typeof path === 'number') {\n path = [path];\n }\n if (!path || path.length === 0) {\n return obj;\n }\n if (typeof path === 'string') {\n return set(obj, path.split('.').map(getKey), value, doNotReplace);\n }\n var currentPath = path[0];\n var currentValue = getShallowProperty(obj, currentPath);\n if (path.length === 1) {\n if (currentValue === void 0 || !doNotReplace) {\n obj[currentPath] = value;\n }\n return currentValue;\n }\n\n if (currentValue === void 0) {\n //check if we assume an array\n if(typeof path[1] === 'number') {\n obj[currentPath] = [];\n } else {\n obj[currentPath] = {};\n }\n }\n\n return set(obj[currentPath], path.slice(1), value, doNotReplace);\n }\n\n objectPath.has = function (obj, path) {\n if (typeof path === 'number') {\n path = [path];\n } else if (typeof path === 'string') {\n path = path.split('.');\n }\n\n if (!path || path.length === 0) {\n return !!obj;\n }\n\n for (var i = 0; i < path.length; i++) {\n var j = getKey(path[i]);\n\n if((typeof j === 'number' && isArray(obj) && j < obj.length) ||\n (options.includeInheritedProps ? (j in Object(obj)) : hasOwnProperty(obj, j))) {\n obj = obj[j];\n } else {\n return false;\n }\n }\n\n return true;\n };\n\n objectPath.ensureExists = function (obj, path, value){\n return set(obj, path, value, true);\n };\n\n objectPath.set = function (obj, path, value, doNotReplace){\n return set(obj, path, value, doNotReplace);\n };\n\n objectPath.insert = function (obj, path, value, at){\n var arr = objectPath.get(obj, path);\n at = ~~at;\n if (!isArray(arr)) {\n arr = [];\n objectPath.set(obj, path, arr);\n }\n arr.splice(at, 0, value);\n };\n\n objectPath.empty = function(obj, path) {\n if (isEmpty(path)) {\n return void 0;\n }\n if (obj == null) {\n return void 0;\n }\n\n var value, i;\n if (!(value = objectPath.get(obj, path))) {\n return void 0;\n }\n\n if (typeof value === 'string') {\n return objectPath.set(obj, path, '');\n } else if (isBoolean(value)) {\n return objectPath.set(obj, path, false);\n } else if (typeof value === 'number') {\n return objectPath.set(obj, path, 0);\n } else if (isArray(value)) {\n value.length = 0;\n } else if (isObject(value)) {\n for (i in value) {\n if (hasShallowProperty(value, i)) {\n delete value[i];\n }\n }\n } else {\n return objectPath.set(obj, path, null);\n }\n };\n\n objectPath.push = function (obj, path /*, values */){\n var arr = objectPath.get(obj, path);\n if (!isArray(arr)) {\n arr = [];\n objectPath.set(obj, path, arr);\n }\n\n arr.push.apply(arr, Array.prototype.slice.call(arguments, 2));\n };\n\n objectPath.coalesce = function (obj, paths, defaultValue) {\n var value;\n\n for (var i = 0, len = paths.length; i < len; i++) {\n if ((value = objectPath.get(obj, paths[i])) !== void 0) {\n return value;\n }\n }\n\n return defaultValue;\n };\n\n objectPath.get = function (obj, path, defaultValue){\n if (typeof path === 'number') {\n path = [path];\n }\n if (!path || path.length === 0) {\n return obj;\n }\n if (obj == null) {\n return defaultValue;\n }\n if (typeof path === 'string') {\n return objectPath.get(obj, path.split('.'), defaultValue);\n }\n\n var currentPath = getKey(path[0]);\n var nextObj = getShallowProperty(obj, currentPath)\n if (nextObj === void 0) {\n return defaultValue;\n }\n\n if (path.length === 1) {\n return nextObj;\n }\n\n return objectPath.get(obj[currentPath], path.slice(1), defaultValue);\n };\n\n objectPath.del = function del(obj, path) {\n if (typeof path === 'number') {\n path = [path];\n }\n\n if (obj == null) {\n return obj;\n }\n\n if (isEmpty(path)) {\n return obj;\n }\n if(typeof path === 'string') {\n return objectPath.del(obj, path.split('.'));\n }\n\n var currentPath = getKey(path[0]);\n if (!hasShallowProperty(obj, currentPath)) {\n return obj;\n }\n\n if(path.length === 1) {\n if (isArray(obj)) {\n obj.splice(currentPath, 1);\n } else {\n delete obj[currentPath];\n }\n } else {\n return objectPath.del(obj[currentPath], path.slice(1));\n }\n\n return obj;\n }\n\n return objectPath;\n }\n\n var mod = factory();\n mod.create = factory;\n mod.withInheritedProps = factory({includeInheritedProps: true})\n return mod;\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/object-path/index.js\n// module id = 288\n// module chunks = 0","module.exports = {\n 'lang': 'zh-cn',\n 'resetSettings': '还原设置',\n 'include': '包含',\n 'exclusive': '不包含',\n 'equal': '等于',\n 'unequal':'不等于',\n 'begin':'以开始',\n 'end':'以结尾',\n 'greater_than':'大于',\n 'great_than_equal_to':'大于等于',\n 'less_than':'小于',\n 'less_than_equal_to':'小于等于',\n 'be_equal_to':'等于',\n 'not_equal_to':'不等于',\n \"no_data\":'暂无数据',\n \"bool_true\":\"是\",\n \"bool_false\":\"否\",\n 'en-us': {\n 'resetSettings': 'Reset',\n 'include': 'Include',\n 'exclusive': 'Not include',\n 'equal': 'Equal to',\n 'unequal':'Not equal to',\n 'begin':'Begin with',\n 'end':'End with',\n 'greater_than':'Greater than',\n 'great_than_equal_to':'Greater than or equal to',\n 'less_than':'Less than',\n 'less_than_equal_to':'Less than or equal to',\n 'be_equal_to':'Equal to',\n 'not_equal_to':'Not equal to',\n \"no_data\":'No data',\n \"bool_true\":\"true\",\n \"bool_false\":\"false\",\n },\n 'zh-tw': {\n 'resetSettings': '還原設置',\n 'include': '包含',\n 'exclusive': '不包含',\n 'equal': '等於',\n 'unequal':'不等於',\n 'begin':'以開始',\n 'end':'以結尾',\n 'greater_than':'大於',\n 'great_than_equal_to':'大於等於',\n 'less_than':'小於',\n 'less_than_equal to':'小於等於',\n 'be_equal_to':'等於',\n 'not_equal_to':'不等於',\n \"no_data\":'暫無數據',\n \"bool_true\":\"是\",\n \"bool_false\":\"否\",\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/lib/i18n.js","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _Dropdown = require('./Dropdown');\n\nvar _Dropdown2 = _interopRequireDefault(_Dropdown);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nexports[\"default\"] = _Dropdown2[\"default\"];\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-dropdown/build/index.js\n// module id = 290\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = require('react-dom');\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _trigger = require('bee-overlay/build/trigger');\n\nvar _trigger2 = _interopRequireDefault(_trigger);\n\nvar _placement = require('./placement');\n\nvar _placement2 = _interopRequireDefault(_placement);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**\n * This source code is quoted from rc-dropdown.\n * homepage: https://github.com/react-component/dropdown\n */\n\n\nvar propTypes = {\n minOverlayWidthMatchTrigger: _propTypes2[\"default\"].bool,\n onVisibleChange: _propTypes2[\"default\"].func,\n clsPrefix: _propTypes2[\"default\"].string,\n children: _propTypes2[\"default\"].any,\n transitionName: _propTypes2[\"default\"].string,\n overlayClassName: _propTypes2[\"default\"].string,\n animation: _propTypes2[\"default\"].any,\n align: _propTypes2[\"default\"].object,\n overlayStyle: _propTypes2[\"default\"].object,\n placement: _propTypes2[\"default\"].string,\n trigger: _propTypes2[\"default\"].array,\n showAction: _propTypes2[\"default\"].array,\n hideAction: _propTypes2[\"default\"].array,\n getPopupContainer: _propTypes2[\"default\"].func\n};\n\nvar defaultProps = {\n minOverlayWidthMatchTrigger: true,\n clsPrefix: 'u-dropdown',\n trigger: ['hover'],\n showAction: [],\n hideAction: [],\n overlayClassName: '',\n overlayStyle: {},\n defaultVisible: false,\n onVisibleChange: function onVisibleChange() {},\n\n placement: 'bottomLeft'\n};\n\nvar jadgeState = function jadgeState(props) {\n if ('visible' in props) {\n return props.visible;\n }\n return props.defaultVisible;\n};\n\nvar Dropdown = function (_React$Component) {\n _inherits(Dropdown, _React$Component);\n\n function Dropdown(props) {\n _classCallCheck(this, Dropdown);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));\n\n _this.state = {\n visible: jadgeState(_this.props)\n };\n _this.onClick = _this.onClick.bind(_this);\n _this.onVisibleChange = _this.onVisibleChange.bind(_this);\n _this.getMenuElement = _this.getMenuElement.bind(_this);\n _this.getPopupDomNode = _this.getPopupDomNode.bind(_this);\n _this.afterVisibleChange = _this.afterVisibleChange.bind(_this);\n\n return _this;\n }\n\n Dropdown.prototype.componentWillReceiveProps = function componentWillReceiveProps(_ref) {\n var visible = _ref.visible;\n\n if (visible !== undefined) {\n this.setState({\n visible: visible\n });\n }\n };\n\n Dropdown.prototype.onClick = function onClick(e) {\n var props = this.props;\n var overlayProps = props.overlay.props;\n // do no call onVisibleChange, if you need click to hide, use onClick and control visible\n if (!('visible' in props)) {\n this.setState({\n visible: false\n });\n }\n if (overlayProps.onClick) {\n overlayProps.onClick(e);\n }\n };\n\n Dropdown.prototype.onVisibleChange = function onVisibleChange(visible) {\n var props = this.props;\n if (!('visible' in props)) {\n this.setState({\n visible: visible\n });\n }\n props.onVisibleChange(visible);\n };\n\n Dropdown.prototype.getMenuElement = function getMenuElement() {\n var _props = this.props,\n overlay = _props.overlay,\n clsPrefix = _props.clsPrefix;\n\n\n return _react2[\"default\"].cloneElement(overlay, {\n prefixCls: clsPrefix + '-menu',\n onClick: this.onClick\n });\n };\n\n Dropdown.prototype.getPopupDomNode = function getPopupDomNode() {\n return this.refs.trigger.getPopupDomNode();\n };\n\n Dropdown.prototype.afterVisibleChange = function afterVisibleChange(visible) {\n if (visible && this.props.minOverlayWidthMatchTrigger) {\n var overlayNode = this.getPopupDomNode();\n var rootNode = _reactDom2[\"default\"].findDOMNode(this);\n if (rootNode.offsetWidth > overlayNode.offsetWidth) {\n overlayNode.style['min-width'] = rootNode.offsetWidth + 'px';\n }\n }\n };\n\n Dropdown.prototype.render = function render() {\n var _props2 = this.props,\n clsPrefix = _props2.clsPrefix,\n children = _props2.children,\n transitionName = _props2.transitionName,\n animation = _props2.animation,\n align = _props2.align,\n placement = _props2.placement,\n getPopupContainer = _props2.getPopupContainer,\n showAction = _props2.showAction,\n hideAction = _props2.hideAction,\n overlayClassName = _props2.overlayClassName,\n overlayStyle = _props2.overlayStyle,\n trigger = _props2.trigger,\n getDocument = _props2.getDocument,\n disabled = _props2.disabled,\n delay = _props2.delay,\n delayShow = _props2.delayShow,\n delayHide = _props2.delayHide,\n props = _objectWithoutProperties(_props2, ['clsPrefix', 'children', 'transitionName', 'animation', 'align', 'placement', 'getPopupContainer', 'showAction', 'hideAction', 'overlayClassName', 'overlayStyle', 'trigger', 'getDocument', 'disabled', 'delay', 'delayShow', 'delayHide']);\n\n return _react2[\"default\"].createElement(\n _trigger2[\"default\"],\n _extends({}, props, {\n clsPrefix: clsPrefix,\n ref: 'trigger',\n popupClassName: overlayClassName,\n popupStyle: overlayStyle,\n builtinPlacements: _placement2[\"default\"],\n action: trigger,\n showAction: showAction,\n hideAction: hideAction,\n popupPlacement: placement,\n popupAlign: align,\n popupTransitionName: transitionName,\n popupAnimation: animation,\n popupVisible: disabled ? false : this.state.visible,\n afterPopupVisibleChange: this.afterVisibleChange,\n popup: this.getMenuElement(),\n onPopupVisibleChange: this.onVisibleChange,\n getPopupContainer: getPopupContainer,\n getDocument: getDocument,\n mouseEnterDelay: delayShow && delayShow / 1000 || delay && delay / 1000,\n mouseLeaveDelay: delayHide && delayHide / 1000 || delay && delay / 1000\n }),\n children\n );\n };\n\n return Dropdown;\n}(_react2[\"default\"].Component);\n\n;\n\nDropdown.propTypes = propTypes;\nDropdown.defaultProps = defaultProps;\n\nexports[\"default\"] = Dropdown;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-dropdown/build/Dropdown.js\n// module id = 291\n// module chunks = 0","'use strict';\n\nmodule.exports = require('./Trigger');\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-overlay/build/trigger/index.js\n// module id = 292\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _reactDom = require('react-dom');\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _contains = require('dom-helpers/query/contains');\n\nvar _contains2 = _interopRequireDefault(_contains);\n\nvar _tinperBeeCore = require('tinper-bee-core');\n\nvar _Popup = require('./Popup');\n\nvar _Popup2 = _interopRequireDefault(_Popup);\n\nvar _utils = require('./utils');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**\n * This source code is quoted from rc-trigger.\n * homepage: https://github.com/react-component/trigger\n */\n\n\n//import getContainerRenderMixin from './getContainerRenderMixin';\n\nfunction noop() {}\n\nfunction returnEmptyString() {\n return '';\n}\n\nvar ALL_HANDLERS = ['onClick', 'onMouseDown', 'onTouchStart', 'onMouseEnter', 'onMouseLeave', 'onFocus', 'onBlur'];\n\nvar propTypes = {\n children: _propTypes2[\"default\"].any,\n action: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].string, _propTypes2[\"default\"].arrayOf(_propTypes2[\"default\"].string)]),\n showAction: _propTypes2[\"default\"].any,\n hideAction: _propTypes2[\"default\"].any,\n getPopupClassNameFromAlign: _propTypes2[\"default\"].any,\n onPopupVisibleChange: _propTypes2[\"default\"].func,\n afterPopupVisibleChange: _propTypes2[\"default\"].func,\n popup: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].node, _propTypes2[\"default\"].func]).isRequired,\n popupStyle: _propTypes2[\"default\"].object,\n clsPrefix: _propTypes2[\"default\"].string,\n popupClassName: _propTypes2[\"default\"].string,\n popupPlacement: _propTypes2[\"default\"].string,\n builtinPlacements: _propTypes2[\"default\"].object,\n popupTransitionName: _propTypes2[\"default\"].string,\n popupAnimation: _propTypes2[\"default\"].any,\n mouseEnterDelay: _propTypes2[\"default\"].number,\n mouseLeaveDelay: _propTypes2[\"default\"].number,\n zIndex: _propTypes2[\"default\"].number,\n focusDelay: _propTypes2[\"default\"].number,\n blurDelay: _propTypes2[\"default\"].number,\n getPopupContainer: _propTypes2[\"default\"].func,\n destroyPopupOnHide: _propTypes2[\"default\"].bool,\n mask: _propTypes2[\"default\"].bool,\n maskClosable: _propTypes2[\"default\"].bool,\n onPopupAlign: _propTypes2[\"default\"].func,\n popupAlign: _propTypes2[\"default\"].object,\n popupVisible: _propTypes2[\"default\"].bool,\n maskTransitionName: _propTypes2[\"default\"].string,\n maskAnimation: _propTypes2[\"default\"].string,\n getDocument: _propTypes2[\"default\"].func, //获得点击消失的document对象,适用于getPopupContainer渲染到非当前document情况,例如iframe\n popData: _propTypes2[\"default\"].object //弹窗层自定义属性\n};\n\nvar defaultProps = {\n clsPrefix: 'rc-trigger-popup',\n getPopupClassNameFromAlign: returnEmptyString,\n onPopupVisibleChange: noop,\n afterPopupVisibleChange: noop,\n onPopupAlign: noop,\n popupClassName: '',\n mouseEnterDelay: 0,\n mouseLeaveDelay: 0.1,\n focusDelay: 0,\n blurDelay: 0.15,\n popupStyle: {},\n destroyPopupOnHide: false,\n popupAlign: {},\n defaultPopupVisible: false,\n mask: false,\n maskClosable: true,\n action: [],\n showAction: [],\n hideAction: [],\n getDocument: function getDocument() {\n return document;\n },\n popData: {}\n};\n\nvar Trigger = function (_Component) {\n _inherits(Trigger, _Component);\n\n function Trigger(props) {\n _classCallCheck(this, Trigger);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props));\n\n _this.getDocument = function () {\n var doc = document;\n if (_this.props.getDocument) doc = _this.props.getDocument();\n return doc;\n };\n\n _this.bindDocument = function () {\n var doc = document;\n if (_this.props.getDocument) {\n doc = _this.props.getDocument();\n }\n if (Array.isArray(doc)) {\n var doc1 = doc[0];\n var doc2 = doc[1];\n _this.clickOutsideHandler = (0, _tinperBeeCore.addEventListener)(doc1, 'mousedown', _this.onDocumentClick);\n _this.touchOutsideHandler = (0, _tinperBeeCore.addEventListener)(doc1, 'touchstart', _this.onDocumentClick);\n _this.mouseWheelOutsideHandler = (0, _tinperBeeCore.addEventListener)(doc1, 'mousewheel', _this.onDocumentClick);\n _this.clickOutsideHandlerIframe = (0, _tinperBeeCore.addEventListener)(doc2, 'mousedown', _this.onDocumentClick);\n _this.touchOutsideHandlerIframe = (0, _tinperBeeCore.addEventListener)(doc2, 'touchstart', _this.onDocumentClick);\n _this.mouseWheelOutsideHandlerIframe = (0, _tinperBeeCore.addEventListener)(doc2, 'mousewheel', _this.onDocumentClick);\n } else {\n _this.clickOutsideHandler = (0, _tinperBeeCore.addEventListener)(doc, 'mousedown', _this.onDocumentClick);\n _this.touchOutsideHandler = (0, _tinperBeeCore.addEventListener)(doc, 'touchstart', _this.onDocumentClick);\n _this.mouseWheelOutsideHandler = (0, _tinperBeeCore.addEventListener)(doc, 'mousewheel', _this.onDocumentClick);\n }\n };\n\n _this.removeDocument = function () {\n var doc = document;\n if (_this.props.getDocument) {\n doc = _this.props.getDocument();\n }\n if (Array.isArray(doc)) {\n _this.clickOutsideHandler.remove();\n _this.touchOutsideHandler.remove();\n _this.mouseWheelOutsideHandler.remove();\n _this.clickOutsideHandlerIframe.remove();\n _this.touchOutsideHandlerIframe.remove();\n _this.mouseWheelOutsideHandlerIframe.remove();\n _this.clickOutsideHandler = null;\n _this.touchOutsideHandler = null;\n _this.mouseWheelOutsideHandler = null;\n _this.clickOutsideHandlerIframe = null;\n _this.touchOutsideHandlerIframe = null;\n _this.mouseWheelOutsideHandlerIframe = null;\n } else {\n _this.clickOutsideHandler.remove();\n _this.touchOutsideHandler.remove();\n _this.mouseWheelOutsideHandler.remove();\n _this.clickOutsideHandler = null;\n _this.touchOutsideHandler = null;\n _this.mouseWheelOutsideHandler = null;\n }\n };\n\n _this.state = {\n popupVisible: !!_this.props.popupVisible || _this.props.defaultPopupVisible\n //this.removeContainer = this.removeContainer.bind(this);\n };_this.getContainer = _this.getContainer.bind(_this);\n _this.renderComponent = _this.renderComponent.bind(_this);\n _this.isVisible = _this.isVisible.bind(_this);\n\n _this.onMouseEnter = _this.onMouseEnter.bind(_this);\n _this.onMouseLeave = _this.onMouseLeave.bind(_this);\n _this.onPopupMouseEnter = _this.onPopupMouseEnter.bind(_this);\n _this.onPopupMouseLeave = _this.onPopupMouseLeave.bind(_this);\n _this.onFocus = _this.onFocus.bind(_this);\n\n _this.onMouseDown = _this.onMouseDown.bind(_this);\n _this.onTouchStart = _this.onTouchStart.bind(_this);\n _this.onBlur = _this.onBlur.bind(_this);\n _this.onDocumentClick = _this.onDocumentClick.bind(_this);\n _this.getPopupDomNode = _this.getPopupDomNode.bind(_this);\n\n _this.getRootDomNode = _this.getRootDomNode.bind(_this);\n _this.getPopupClassNameFromAlign = _this.getPopupClassNameFromAlign.bind(_this);\n _this.getPopupAlign = _this.getPopupAlign.bind(_this);\n _this.getComponent = _this.getComponent.bind(_this);\n _this.setPopupVisible = _this.setPopupVisible.bind(_this);\n\n _this.delaySetPopupVisible = _this.delaySetPopupVisible.bind(_this);\n _this.clearDelayTimer = _this.clearDelayTimer.bind(_this);\n _this.createTwoChains = _this.createTwoChains.bind(_this);\n _this.isClickToShow = _this.isClickToShow.bind(_this);\n _this.isClickToHide = _this.isClickToHide.bind(_this);\n\n _this.isMouseEnterToShow = _this.isMouseEnterToShow.bind(_this);\n _this.isMouseLeaveToHide = _this.isMouseLeaveToHide.bind(_this);\n _this.isFocusToShow = _this.isFocusToShow.bind(_this);\n _this.isBlurToHide = _this.isBlurToHide.bind(_this);\n _this.forcePopupAlign = _this.forcePopupAlign.bind(_this);\n\n _this.fireEvents = _this.fireEvents.bind(_this);\n _this.close = _this.close.bind(_this);\n _this.onClick = _this.onClick.bind(_this);\n return _this;\n }\n\n Trigger.prototype.isVisible = function isVisible(instance) {\n return instance.state.popupVisible;\n };\n\n Trigger.prototype.getContainer = function getContainer(instance) {\n var popupContainer = document.createElement('div');\n var mountNode = instance.props.getPopupContainer ? instance.props.getPopupContainer((0, _reactDom.findDOMNode)(instance)) : document.body;\n mountNode.appendChild(popupContainer);\n return popupContainer;\n };\n\n Trigger.prototype.renderComponent = function renderComponent(instance, componentArg, ready) {\n if (instance._component || this.isVisible(instance)) {\n if (!instance._container) {\n instance._container = this.getContainer(instance);\n }\n var component = instance.getComponent(componentArg);\n _reactDom2[\"default\"].unstable_renderSubtreeIntoContainer(instance, component, instance._container, function callback() {\n instance._component = this;\n if (ready) {\n ready.call(this);\n }\n });\n }\n };\n\n Trigger.prototype.componentWillMount = function componentWillMount() {\n var _this2 = this;\n\n this.mounted = false;\n ALL_HANDLERS.forEach(function (h) {\n _this2['fire' + h] = function (e) {\n _this2.fireEvents(h, e);\n };\n });\n };\n\n Trigger.prototype.componentDidMount = function componentDidMount() {\n this.mounted = true;\n this.componentDidUpdate({}, {\n popupVisible: this.state.popupVisible\n });\n };\n\n Trigger.prototype.componentWillReceiveProps = function componentWillReceiveProps(_ref) {\n var popupVisible = _ref.popupVisible;\n\n if (popupVisible !== undefined) {\n this.setState({\n popupVisible: popupVisible\n });\n }\n };\n\n Trigger.prototype.componentDidUpdate = function componentDidUpdate(_, prevState) {\n var props = this.props;\n var state = this.state;\n this.renderComponent(this, null, function () {\n if (prevState.popupVisible !== state.popupVisible) {\n props.afterPopupVisibleChange(state.popupVisible);\n }\n });\n if (this.isClickToHide()) {\n if (state.popupVisible) {\n if (!this.clickOutsideHandler) {\n this.bindDocument();\n }\n return;\n }\n }\n if (this.clickOutsideHandler) {\n this.removeDocument();\n }\n };\n\n Trigger.prototype.componentWillUnmount = function componentWillUnmount() {\n this.clearDelayTimer();\n if (this.clickOutsideHandler) {\n this.removeDocument();\n }\n if (this._container) {\n _reactDom2[\"default\"].unmountComponentAtNode(this._container);\n }\n\n //this.removeContainer();\n };\n\n Trigger.prototype.onMouseEnter = function onMouseEnter(e) {\n this.fireEvents('onMouseEnter', e);\n this.delaySetPopupVisible(true, this.props.mouseEnterDelay);\n };\n\n Trigger.prototype.onMouseLeave = function onMouseLeave(e) {\n this.fireEvents('onMouseLeave', e);\n this.delaySetPopupVisible(false, this.props.mouseLeaveDelay);\n };\n\n Trigger.prototype.onPopupMouseEnter = function onPopupMouseEnter() {\n this.clearDelayTimer();\n };\n\n Trigger.prototype.onPopupMouseLeave = function onPopupMouseLeave(e) {\n // https://github.com/react-component/trigger/pull/13\n // react bug?\n if (e.relatedTarget && !e.relatedTarget.setTimeout && this._component && (0, _contains2[\"default\"])(this._component.getPopupDomNode(), e.relatedTarget)) {\n return;\n }\n this.delaySetPopupVisible(false, this.props.mouseLeaveDelay);\n };\n\n Trigger.prototype.onFocus = function onFocus(e) {\n this.fireEvents('onFocus', e);\n // incase focusin and focusout\n this.clearDelayTimer();\n if (this.isFocusToShow()) {\n this.focusTime = Date.now();\n this.delaySetPopupVisible(true, this.props.focusDelay);\n }\n };\n\n Trigger.prototype.onMouseDown = function onMouseDown(e) {\n this.fireEvents('onMouseDown', e);\n this.preClickTime = Date.now();\n };\n\n Trigger.prototype.onTouchStart = function onTouchStart(e) {\n this.fireEvents('onTouchStart', e);\n this.preTouchTime = Date.now();\n };\n\n Trigger.prototype.onBlur = function onBlur(e) {\n this.fireEvents('onBlur', e);\n this.clearDelayTimer();\n if (this.isBlurToHide()) {\n this.delaySetPopupVisible(false, this.props.blurDelay);\n }\n };\n\n Trigger.prototype.onClick = function onClick(event) {\n this.fireEvents('onClick', event);\n // focus will trigger click\n if (this.focusTime) {\n var preTime = void 0;\n if (this.preClickTime && this.preTouchTime) {\n preTime = Math.min(this.preClickTime, this.preTouchTime);\n } else if (this.preClickTime) {\n preTime = this.preClickTime;\n } else if (this.preTouchTime) {\n preTime = this.preTouchTime;\n }\n if (Math.abs(preTime - this.focusTime) < 20) {\n return;\n }\n this.focusTime = 0;\n }\n this.preClickTime = 0;\n this.preTouchTime = 0;\n event.preventDefault();\n var nextVisible = !this.state.popupVisible;\n if (this.isClickToHide() && !nextVisible || nextVisible && this.isClickToShow()) {\n this.setPopupVisible(!this.state.popupVisible);\n }\n };\n\n Trigger.prototype.onDocumentClick = function onDocumentClick(event) {\n if (this.props.mask && !this.props.maskClosable) {\n return;\n }\n var target = event.target;\n var root = (0, _reactDom.findDOMNode)(this);\n var popupNode = this.getPopupDomNode();\n if (!(0, _contains2[\"default\"])(root, target) && !(0, _contains2[\"default\"])(popupNode, target)) {\n this.close();\n }\n };\n\n Trigger.prototype.getPopupDomNode = function getPopupDomNode() {\n // for test\n if (this._component) {\n return this.mounted ? this._component.getPopupDomNode() : null;\n }\n return null;\n };\n\n Trigger.prototype.getRootDomNode = function getRootDomNode() {\n return _reactDom2[\"default\"].findDOMNode(this);\n };\n\n Trigger.prototype.getPopupClassNameFromAlign = function getPopupClassNameFromAlign(align) {\n var className = [];\n var props = this.props;\n var popupPlacement = props.popupPlacement,\n builtinPlacements = props.builtinPlacements,\n clsPrefix = props.clsPrefix;\n\n if (popupPlacement && builtinPlacements) {\n className.push((0, _utils.getPopupClassNameFromAlign)(builtinPlacements, clsPrefix, align));\n }\n if (props.getPopupClassNameFromAlign) {\n className.push(props.getPopupClassNameFromAlign(align));\n }\n return className.join(' ');\n };\n\n Trigger.prototype.getPopupAlign = function getPopupAlign() {\n var props = this.props;\n var popupPlacement = props.popupPlacement,\n popupAlign = props.popupAlign,\n builtinPlacements = props.builtinPlacements;\n\n if (popupPlacement && builtinPlacements) {\n return (0, _utils.getAlignFromPlacement)(builtinPlacements, popupPlacement, popupAlign);\n }\n return popupAlign;\n };\n\n Trigger.prototype.getComponent = function getComponent() {\n var props = this.props,\n state = this.state;\n\n var mouseProps = {};\n if (this.isMouseEnterToShow()) {\n mouseProps.onMouseEnter = this.onPopupMouseEnter;\n }\n if (this.isMouseLeaveToHide()) {\n mouseProps.onMouseLeave = this.onPopupMouseLeave;\n }\n return _react2[\"default\"].createElement(\n _Popup2[\"default\"],\n _extends({\n clsPrefix: props.clsPrefix,\n destroyPopupOnHide: props.destroyPopupOnHide,\n visible: state.popupVisible,\n className: props.popupClassName,\n action: props.action,\n align: this.getPopupAlign(),\n onAlign: props.onPopupAlign,\n animation: props.popupAnimation,\n getClassNameFromAlign: this.getPopupClassNameFromAlign\n }, mouseProps, {\n getRootDomNode: this.getRootDomNode,\n style: props.popupStyle,\n mask: props.mask,\n zIndex: props.zIndex,\n transitionName: props.popupTransitionName,\n maskAnimation: props.maskAnimation,\n maskTransitionName: props.maskTransitionName,\n popData: props.popData\n }),\n typeof props.popup === 'function' ? props.popup() : props.popup\n );\n };\n\n Trigger.prototype.setPopupVisible = function setPopupVisible(popupVisible) {\n this.clearDelayTimer();\n if (this.state.popupVisible !== popupVisible) {\n if (!('popupVisible' in this.props)) {\n this.setState({\n popupVisible: popupVisible\n });\n }\n this.props.onPopupVisibleChange(popupVisible);\n }\n };\n\n Trigger.prototype.delaySetPopupVisible = function delaySetPopupVisible(visible, delayS) {\n var _this3 = this;\n\n var delay = delayS * 1000;\n this.clearDelayTimer();\n if (delay) {\n this.delayTimer = setTimeout(function () {\n _this3.setPopupVisible(visible);\n _this3.clearDelayTimer();\n }, delay);\n } else {\n this.setPopupVisible(visible);\n }\n };\n\n Trigger.prototype.clearDelayTimer = function clearDelayTimer() {\n if (this.delayTimer) {\n clearTimeout(this.delayTimer);\n this.delayTimer = null;\n }\n };\n\n Trigger.prototype.createTwoChains = function createTwoChains(event) {\n var childPros = this.props.children.props;\n var props = this.props;\n if (childPros[event] && props[event]) {\n return this['fire' + event];\n }\n return childPros[event] || props[event];\n };\n\n Trigger.prototype.isClickToShow = function isClickToShow() {\n var _props = this.props,\n action = _props.action,\n showAction = _props.showAction;\n\n return action.indexOf('click') !== -1 || showAction.indexOf('click') !== -1;\n };\n\n Trigger.prototype.isClickToHide = function isClickToHide() {\n var _props2 = this.props,\n action = _props2.action,\n hideAction = _props2.hideAction;\n\n return action.indexOf('click') !== -1 || hideAction.indexOf('click') !== -1;\n };\n\n Trigger.prototype.isMouseEnterToShow = function isMouseEnterToShow() {\n var _props3 = this.props,\n action = _props3.action,\n showAction = _props3.showAction;\n\n return action.indexOf('hover') !== -1 || showAction.indexOf('mouseEnter') !== -1;\n };\n\n Trigger.prototype.isMouseLeaveToHide = function isMouseLeaveToHide() {\n var _props4 = this.props,\n action = _props4.action,\n hideAction = _props4.hideAction;\n\n return action.indexOf('hover') !== -1 || hideAction.indexOf('mouseLeave') !== -1;\n };\n\n Trigger.prototype.isFocusToShow = function isFocusToShow() {\n var _props5 = this.props,\n action = _props5.action,\n showAction = _props5.showAction;\n\n return action.indexOf('focus') !== -1 || showAction.indexOf('focus') !== -1;\n };\n\n Trigger.prototype.isBlurToHide = function isBlurToHide() {\n var _props6 = this.props,\n action = _props6.action,\n hideAction = _props6.hideAction;\n\n return action.indexOf('focus') !== -1 || hideAction.indexOf('blur') !== -1;\n };\n\n Trigger.prototype.forcePopupAlign = function forcePopupAlign() {\n if (this.state.popupVisible && this.popupInstance && this.popupInstance.alignInstance) {\n this.popupInstance.alignInstance.forceAlign();\n }\n };\n\n Trigger.prototype.fireEvents = function fireEvents(type, e) {\n var childCallback = this.props.children.props[type];\n if (childCallback) {\n childCallback(e);\n }\n var callback = this.props[type];\n if (callback) {\n callback(e);\n }\n };\n\n Trigger.prototype.close = function close() {\n this.setPopupVisible(false);\n };\n\n Trigger.prototype.render = function render() {\n var props = this.props;\n var children = props.children;\n var child = _react2[\"default\"].Children.only(children);\n var newChildProps = {};\n\n if (this.isClickToHide() || this.isClickToShow()) {\n newChildProps.onClick = this.onClick;\n newChildProps.onMouseDown = this.onMouseDown;\n newChildProps.onTouchStart = this.onTouchStart;\n } else {\n newChildProps.onClick = this.createTwoChains('onClick');\n newChildProps.onMouseDown = this.createTwoChains('onMouseDown');\n newChildProps.onTouchStart = this.createTwoChains('onTouchStart');\n }\n if (this.isMouseEnterToShow()) {\n newChildProps.onMouseEnter = this.onMouseEnter;\n } else {\n newChildProps.onMouseEnter = this.createTwoChains('onMouseEnter');\n }\n if (this.isMouseLeaveToHide()) {\n newChildProps.onMouseLeave = this.onMouseLeave;\n } else {\n newChildProps.onMouseLeave = this.createTwoChains('onMouseLeave');\n }\n if (this.isFocusToShow() || this.isBlurToHide()) {\n newChildProps.onFocus = this.onFocus;\n newChildProps.onBlur = this.onBlur;\n } else {\n newChildProps.onFocus = this.createTwoChains('onFocus');\n newChildProps.onBlur = this.createTwoChains('onBlur');\n }\n return _react2[\"default\"].cloneElement(child, newChildProps);\n };\n\n return Trigger;\n}(_react.Component);\n\n;\n\nTrigger.propTypes = propTypes;\nTrigger.defaultProps = defaultProps;\nexports[\"default\"] = Trigger;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-overlay/build/trigger/Trigger.js\n// module id = 293\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _reactDom = require('react-dom');\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _Align = require('tinper-bee-core/lib/Align');\n\nvar _Align2 = _interopRequireDefault(_Align);\n\nvar _beeAnimate = require('bee-animate');\n\nvar _beeAnimate2 = _interopRequireDefault(_beeAnimate);\n\nvar _PopupInner = require('./PopupInner');\n\nvar _PopupInner2 = _interopRequireDefault(_PopupInner);\n\nvar _LazyRenderBox = require('./LazyRenderBox');\n\nvar _LazyRenderBox2 = _interopRequireDefault(_LazyRenderBox);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**\n * This source code is quoted from rc-trigger.\n * homepage: https://github.com/react-component/trigger\n */\n\n\nvar propTypes = {\n visible: _propTypes2[\"default\"].bool,\n style: _propTypes2[\"default\"].object,\n getClassNameFromAlign: _propTypes2[\"default\"].func,\n onAlign: _propTypes2[\"default\"].func,\n getRootDomNode: _propTypes2[\"default\"].func,\n onMouseEnter: _propTypes2[\"default\"].func,\n align: _propTypes2[\"default\"].any,\n destroyPopupOnHide: _propTypes2[\"default\"].bool,\n className: _propTypes2[\"default\"].string,\n clsPrefix: _propTypes2[\"default\"].string,\n onMouseLeave: _propTypes2[\"default\"].func\n};\n\nvar Popup = function (_Component) {\n _inherits(Popup, _Component);\n\n function Popup() {\n _classCallCheck(this, Popup);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this));\n\n _this.onAlign = _this.onAlign.bind(_this);\n _this.getPopupDomNode = _this.getPopupDomNode.bind(_this);\n _this.getTarget = _this.getTarget.bind(_this);\n _this.getMaskTransitionName = _this.getMaskTransitionName.bind(_this);\n _this.getTransitionName = _this.getTransitionName.bind(_this);\n _this.getClassName = _this.getClassName.bind(_this);\n _this.getPopupElement = _this.getPopupElement.bind(_this);\n _this.getZIndexStyle = _this.getZIndexStyle.bind(_this);\n _this.getMaskElement = _this.getMaskElement.bind(_this);\n _this.saveAlign = _this.saveAlign.bind(_this);\n return _this;\n }\n\n Popup.prototype.componentDidMount = function componentDidMount() {\n this.rootNode = this.getPopupDomNode();\n };\n\n Popup.prototype.onAlign = function onAlign(popupDomNode, align) {\n var props = this.props;\n var alignClassName = props.getClassNameFromAlign(props.align);\n var currentAlignClassName = props.getClassNameFromAlign(align);\n if (alignClassName !== currentAlignClassName) {\n this.currentAlignClassName = currentAlignClassName;\n popupDomNode.className = this.getClassName(currentAlignClassName);\n }\n props.onAlign(popupDomNode, align);\n };\n\n Popup.prototype.getPopupDomNode = function getPopupDomNode() {\n return _reactDom2[\"default\"].findDOMNode(this.refs.popup);\n };\n\n Popup.prototype.getTarget = function getTarget() {\n return this.props.getRootDomNode();\n };\n\n Popup.prototype.getMaskTransitionName = function getMaskTransitionName() {\n var props = this.props;\n var transitionName = props.maskTransitionName;\n var animation = props.maskAnimation;\n if (!transitionName && animation) {\n transitionName = props.clsPrefix + '-' + animation;\n }\n return transitionName;\n };\n\n Popup.prototype.getTransitionName = function getTransitionName() {\n var props = this.props;\n var transitionName = props.transitionName;\n if (!transitionName && props.animation) {\n transitionName = props.clsPrefix + '-' + props.animation;\n }\n return transitionName;\n };\n\n Popup.prototype.getClassName = function getClassName(currentAlignClassName) {\n return this.props.clsPrefix + ' ' + this.props.className + ' ' + currentAlignClassName;\n };\n\n Popup.prototype.getPopupElement = function getPopupElement() {\n var props = this.props;\n var align = props.align,\n style = props.style,\n visible = props.visible,\n clsPrefix = props.clsPrefix,\n destroyPopupOnHide = props.destroyPopupOnHide;\n\n var className = this.getClassName(this.currentAlignClassName || props.getClassNameFromAlign(align));\n var hiddenClassName = clsPrefix + '-hidden';\n if (!visible) {\n this.currentAlignClassName = null;\n }\n var newStyle = _extends({}, style, this.getZIndexStyle());\n var popupInnerProps = {\n className: className,\n clsPrefix: clsPrefix,\n ref: 'popup',\n onMouseEnter: props.onMouseEnter,\n onMouseLeave: props.onMouseLeave,\n style: newStyle,\n popData: props.popData\n };\n if (destroyPopupOnHide) {\n return _react2[\"default\"].createElement(\n _beeAnimate2[\"default\"],\n {\n component: '',\n exclusive: true,\n transitionAppear: true,\n transitionName: this.getTransitionName()\n },\n visible ? _react2[\"default\"].createElement(\n _Align2[\"default\"],\n {\n target: this.getTarget,\n key: 'popup',\n ref: this.saveAlign,\n monitorWindowResize: true,\n align: align,\n onAlign: this.onAlign\n },\n _react2[\"default\"].createElement(\n _PopupInner2[\"default\"],\n _extends({\n visible: true\n }, popupInnerProps),\n props.children\n )\n ) : null\n );\n }\n return _react2[\"default\"].createElement(\n _beeAnimate2[\"default\"],\n {\n component: '',\n exclusive: true,\n transitionAppear: true,\n transitionName: this.getTransitionName(),\n showProp: 'xVisible'\n },\n _react2[\"default\"].createElement(\n _Align2[\"default\"],\n {\n target: this.getTarget,\n key: 'popup',\n ref: this.saveAlign,\n monitorWindowResize: true,\n xVisible: visible,\n childrenProps: { visible: 'xVisible' },\n disabled: !visible,\n align: align,\n onAlign: this.onAlign\n },\n _react2[\"default\"].createElement(\n _PopupInner2[\"default\"],\n _extends({\n hiddenClassName: hiddenClassName\n }, popupInnerProps),\n props.children\n )\n )\n );\n };\n\n Popup.prototype.getZIndexStyle = function getZIndexStyle() {\n var style = {};\n var props = this.props;\n if (props.zIndex !== undefined) {\n style.zIndex = props.zIndex;\n }\n return style;\n };\n\n Popup.prototype.getMaskElement = function getMaskElement() {\n var props = this.props;\n var maskElement = void 0;\n if (props.mask) {\n var maskTransition = this.getMaskTransitionName();\n maskElement = _react2[\"default\"].createElement(_LazyRenderBox2[\"default\"], {\n style: this.getZIndexStyle(),\n key: 'mask',\n className: props.clsPrefix + '-mask',\n hiddenClassName: props.clsPrefix + '-mask-hidden',\n visible: props.visible\n });\n if (maskTransition) {\n maskElement = _react2[\"default\"].createElement(\n _beeAnimate2[\"default\"],\n {\n key: 'mask',\n showProp: 'visible',\n transitionAppear: true,\n component: '',\n transitionName: maskTransition\n },\n maskElement\n );\n }\n }\n return maskElement;\n };\n\n Popup.prototype.saveAlign = function saveAlign(align) {\n this.alignInstance = align;\n };\n\n Popup.prototype.render = function render() {\n return _react2[\"default\"].createElement(\n 'div',\n null,\n this.getMaskElement(),\n this.getPopupElement()\n );\n };\n\n return Popup;\n}(_react.Component);\n\n;\n\nPopup.propTypes = propTypes;\nexports[\"default\"] = Popup;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-overlay/build/trigger/Popup.js\n// module id = 294\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _LazyRenderBox = require('./LazyRenderBox');\n\nvar _LazyRenderBox2 = _interopRequireDefault(_LazyRenderBox);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**\n * This source code is quoted from rc-trigger.\n * homepage: https://github.com/react-component/trigger\n */\n\n\nvar propTypes = {\n hiddenClassName: _propTypes2[\"default\"].string,\n className: _propTypes2[\"default\"].string,\n clsPrefix: _propTypes2[\"default\"].string,\n onMouseEnter: _propTypes2[\"default\"].func,\n onMouseLeave: _propTypes2[\"default\"].func,\n children: _propTypes2[\"default\"].any\n};\n\nvar PopupInner = function (_Component) {\n _inherits(PopupInner, _Component);\n\n function PopupInner() {\n _classCallCheck(this, PopupInner);\n\n return _possibleConstructorReturn(this, _Component.apply(this, arguments));\n }\n\n PopupInner.prototype.render = function render() {\n var props = this.props;\n var className = props.className;\n if (!props.visible) {\n className += ' ' + props.hiddenClassName;\n }\n return _react2[\"default\"].createElement(\n 'div',\n _extends({}, props.popData, {\n className: className,\n onMouseEnter: props.onMouseEnter,\n onMouseLeave: props.onMouseLeave,\n style: props.style\n }),\n _react2[\"default\"].createElement(\n _LazyRenderBox2[\"default\"],\n { className: props.clsPrefix + '-content', visible: props.visible },\n props.children\n )\n );\n };\n\n return PopupInner;\n}(_react.Component);\n\n;\n\nPopupInner.propTypes = propTypes;\nexports[\"default\"] = PopupInner;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-overlay/build/trigger/PopupInner.js\n// module id = 295\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**\n * This source code is quoted from rc-trigger.\n * homepage: https://github.com/react-component/trigger\n */\n\n\nvar propTypes = {\n children: _propTypes2[\"default\"].any,\n className: _propTypes2[\"default\"].string,\n visible: _propTypes2[\"default\"].bool,\n hiddenClassName: _propTypes2[\"default\"].string\n};\n\nvar LazyRenderBox = function (_Component) {\n _inherits(LazyRenderBox, _Component);\n\n function LazyRenderBox() {\n _classCallCheck(this, LazyRenderBox);\n\n return _possibleConstructorReturn(this, _Component.apply(this, arguments));\n }\n\n LazyRenderBox.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {\n return nextProps.hiddenClassName || nextProps.visible;\n };\n\n LazyRenderBox.prototype.render = function render() {\n var _props = this.props,\n hiddenClassName = _props.hiddenClassName,\n visible = _props.visible,\n props = _objectWithoutProperties(_props, ['hiddenClassName', 'visible']);\n\n if (hiddenClassName || _react2[\"default\"].Children.count(props.children) > 1) {\n if (!visible && hiddenClassName) {\n props.className += ' ' + hiddenClassName;\n }\n return _react2[\"default\"].createElement('div', props);\n }\n\n return _react2[\"default\"].Children.only(props.children);\n };\n\n return LazyRenderBox;\n}(_react.Component);\n\n;\nLazyRenderBox.propTypes = propTypes;\n\nexports[\"default\"] = LazyRenderBox;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-overlay/build/trigger/LazyRenderBox.js\n// module id = 296\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nexports.getAlignFromPlacement = getAlignFromPlacement;\nexports.getPopupClassNameFromAlign = getPopupClassNameFromAlign;\nfunction isPointsEq(a1, a2) {\n return a1[0] === a2[0] && a1[1] === a2[1];\n}\n\nfunction getAlignFromPlacement(builtinPlacements, placementStr, align) {\n var baseAlign = builtinPlacements[placementStr] || {};\n return _extends({}, baseAlign, align);\n}\n\nfunction getPopupClassNameFromAlign(builtinPlacements, clsPrefix, align) {\n var points = align.points;\n for (var placement in builtinPlacements) {\n if (builtinPlacements.hasOwnProperty(placement)) {\n if (isPointsEq(builtinPlacements[placement].points, points)) {\n return clsPrefix + '-placement-' + placement;\n }\n }\n }\n return '';\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-overlay/build/trigger/utils.js\n// module id = 297\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar autoAdjustOverflow = {\n adjustX: 1,\n adjustY: 1\n};\n\nvar targetOffset = [0, 0];\n\nvar placements = exports.placements = {\n topLeft: {\n points: ['bl', 'tl'],\n overflow: autoAdjustOverflow,\n offset: [0, -4],\n targetOffset: targetOffset\n },\n topCenter: {\n points: ['bc', 'tc'],\n overflow: autoAdjustOverflow,\n offset: [0, -4],\n targetOffset: targetOffset\n },\n topRight: {\n points: ['br', 'tr'],\n overflow: autoAdjustOverflow,\n offset: [0, -4],\n targetOffset: targetOffset\n },\n bottomLeft: {\n points: ['tl', 'bl'],\n overflow: autoAdjustOverflow,\n offset: [0, 4],\n targetOffset: targetOffset\n },\n bottomCenter: {\n points: ['tc', 'bc'],\n overflow: autoAdjustOverflow,\n offset: [0, 4],\n targetOffset: targetOffset\n },\n bottomRight: {\n points: ['tr', 'br'],\n overflow: autoAdjustOverflow,\n offset: [0, 4],\n targetOffset: targetOffset\n }\n};\n\nexports[\"default\"] = placements;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-dropdown/build/placement.js\n// module id = 298\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _VerticalMenu = require('./VerticalMenu');\n\nvar _VerticalMenu2 = _interopRequireDefault(_VerticalMenu);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nexports[\"default\"] = _VerticalMenu2[\"default\"];\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-menus/build/index.js\n// module id = 299\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _ExportMenu = require('./ExportMenu.js');\n\nvar _ExportMenu2 = _interopRequireDefault(_ExportMenu);\n\nvar _openAnimation = require('./_util/openAnimation');\n\nvar _openAnimation2 = _interopRequireDefault(_openAnimation);\n\nvar _warning = require('./_util/warning');\n\nvar _warning2 = _interopRequireDefault(_warning);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar Menu = function (_React$Component) {\n _inherits(Menu, _React$Component);\n\n function Menu(props) {\n _classCallCheck(this, Menu);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));\n\n _this.handleClick = function (e) {\n _this.setOpenKeys([]);\n\n var onClick = _this.props.onClick;\n if (onClick) {\n onClick(e);\n }\n };\n\n _this.handleOpenChange = function (openKeys) {\n _this.setOpenKeys(openKeys);\n\n var onOpenChange = _this.props.onOpenChange;\n if (onOpenChange) {\n onOpenChange(openKeys);\n }\n };\n\n (0, _warning2[\"default\"])(!('onOpen' in props || 'onClose' in props), '`onOpen` and `onClose` are removed, please use `onOpenChange` instead.');\n\n _this.state = {\n openKeys: []\n };\n _this.rcMenu = {};\n return _this;\n }\n\n Menu.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n if (this.props.mode === 'inline' && nextProps.mode !== 'inline') {\n this.switchModeFromInline = true;\n }\n if ('openKeys' in nextProps) {\n this.setOpenKeys(nextProps.openKeys);\n }\n };\n\n Menu.prototype.setOpenKeys = function setOpenKeys(openKeys) {\n if (!('openKeys' in this.props)) {\n this.setState({ openKeys: openKeys });\n }\n };\n\n Menu.prototype.render = function render() {\n var _this2 = this;\n\n var openAnimation = this.props.openAnimation || this.props.openTransitionName;\n if (!openAnimation) {\n switch (this.props.mode) {\n case 'horizontal':\n openAnimation = '';\n break;\n case 'vertical':\n // When mode switch from inline\n // submenu should hide without animation\n if (this.switchModeFromInline) {\n openAnimation = _openAnimation2[\"default\"];\n this.switchModeFromInline = false;\n } else {\n openAnimation = 'zoom-big';\n }\n break;\n case 'inline':\n openAnimation = _openAnimation2[\"default\"];\n break;\n default:\n }\n }\n\n var props = {};\n var className = this.props.className + ' ' + this.props.prefixCls + '-' + this.props.theme;\n if (this.props.mode !== 'inline') {\n // 这组属性的目的是\n // 弹出型的菜单需要点击后立即关闭\n // 另外,弹出型的菜单的受控模式没有使用场景\n props = {\n openKeys: this.state.openKeys,\n onClick: this.handleClick,\n onOpenChange: this.handleOpenChange,\n openTransitionName: openAnimation,\n className: className\n };\n } else {\n props = {\n openAnimation: openAnimation,\n className: className\n };\n }\n return _react2[\"default\"].createElement(_ExportMenu2[\"default\"], _extends({ ref: function ref(el) {\n return _this2.rcMenu = el;\n } }, this.props, props));\n };\n\n return Menu;\n}(_react2[\"default\"].Component);\n\nMenu.defaultProps = {\n prefixCls: 'u-menu',\n className: '',\n theme: 'light' // or dark\n};\n\nMenu.Divider = _ExportMenu.Divider;\nMenu.Item = _ExportMenu.Item;\nMenu.SubMenu = _ExportMenu.SubMenu;\nMenu.ItemGroup = _ExportMenu.ItemGroup;\nMenu.MenuToggle = _ExportMenu.MenuToggle;\nMenu.SideContainer = _ExportMenu.SideContainer;\nexports[\"default\"] = Menu;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-menus/build/VerticalMenu.js\n// module id = 300\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.MenuToggle = exports.SideContainer = exports.Divider = exports.ItemGroup = exports.MenuItemGroup = exports.MenuItem = exports.Item = exports.SubMenu = undefined;\n\nvar _Menu = require('./Menu');\n\nvar _Menu2 = _interopRequireDefault(_Menu);\n\nvar _SubMenu = require('./SubMenu');\n\nvar _SubMenu2 = _interopRequireDefault(_SubMenu);\n\nvar _MenuItem = require('./MenuItem');\n\nvar _MenuItem2 = _interopRequireDefault(_MenuItem);\n\nvar _MenuItemGroup = require('./MenuItemGroup');\n\nvar _MenuItemGroup2 = _interopRequireDefault(_MenuItemGroup);\n\nvar _Divider = require('./Divider');\n\nvar _Divider2 = _interopRequireDefault(_Divider);\n\nvar _SideContainer = require('./SideContainer');\n\nvar _SideContainer2 = _interopRequireDefault(_SideContainer);\n\nvar _MenuToggle = require('./MenuToggle');\n\nvar _MenuToggle2 = _interopRequireDefault(_MenuToggle);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nexports.SubMenu = _SubMenu2[\"default\"];\nexports.Item = _MenuItem2[\"default\"];\nexports.MenuItem = _MenuItem2[\"default\"];\nexports.MenuItemGroup = _MenuItemGroup2[\"default\"];\nexports.ItemGroup = _MenuItemGroup2[\"default\"];\nexports.Divider = _Divider2[\"default\"];\nexports.SideContainer = _SideContainer2[\"default\"];\nexports.MenuToggle = _MenuToggle2[\"default\"]; /**\r\n * This source code is quoted from rc-menu.\r\n * homepage: https://github.com/react-component/menu\r\n */\n\nexports[\"default\"] = _Menu2[\"default\"];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-menus/build/ExportMenu.js\n// module id = 301\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = require('react-dom');\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _miniStore = require('mini-store');\n\nvar _SubPopupMenu = require('./SubPopupMenu');\n\nvar _SubPopupMenu2 = _interopRequireDefault(_SubPopupMenu);\n\nvar _util = require('./util');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**\n * This source code is quoted from rc-menu.\n * homepage: https://github.com/react-component/menu\n */\n\n\nvar Menu = function (_React$Component) {\n _inherits(Menu, _React$Component);\n\n function Menu(props) {\n _classCallCheck(this, Menu);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));\n\n _initialiseProps.call(_this);\n\n _this.isRootMenu = true;\n\n var selectedKeys = props.defaultSelectedKeys;\n var openKeys = props.defaultOpenKeys;\n if ('selectedKeys' in props) {\n selectedKeys = props.selectedKeys || [];\n }\n if ('openKeys' in props) {\n openKeys = props.openKeys || [];\n }\n\n _this.store = (0, _miniStore.create)({\n selectedKeys: selectedKeys,\n openKeys: openKeys,\n activeKey: { '0-menu-': (0, _SubPopupMenu.getActiveKey)(props, props.activeKey) }\n });\n return _this;\n }\n\n Menu.prototype.componentDidMount = function componentDidMount() {\n this.updateMiniStore();\n };\n\n Menu.prototype.componentDidUpdate = function componentDidUpdate() {\n this.updateMiniStore();\n };\n\n // onKeyDown needs to be exposed as a instance method\n // e.g., in rc-select, we need to navigate menu item while\n // current active item is rc-select input box rather than the menu itself\n\n\n Menu.prototype.updateMiniStore = function updateMiniStore() {\n if ('selectedKeys' in this.props) {\n this.store.setState({\n selectedKeys: this.props.selectedKeys || [],\n keyboard: this.props.keyboard || false\n });\n }\n if ('openKeys' in this.props) {\n this.store.setState({\n openKeys: this.props.openKeys || [],\n keyboard: this.props.keyboard || false\n });\n }\n };\n\n Menu.prototype.render = function render() {\n var _this2 = this;\n\n var props = _objectWithoutProperties(this.props, []);\n\n props.className += ' ' + props.prefixCls + '-root';\n props = _extends({}, props, {\n onClick: this.onClick,\n onOpenChange: this.onOpenChange,\n onDeselect: this.onDeselect,\n onSelect: this.onSelect,\n openTransitionName: this.getOpenTransitionName(),\n parentMenu: this\n });\n return _react2[\"default\"].createElement(\n _miniStore.Provider,\n { store: this.store },\n _react2[\"default\"].createElement(\n _SubPopupMenu2[\"default\"],\n _extends({}, props, { onFocus: this.focus, ref: function ref(c) {\n return _this2.innerMenu = c;\n } }),\n this.props.children\n )\n );\n };\n\n return Menu;\n}(_react2[\"default\"].Component);\n\nMenu.propTypes = {\n defaultSelectedKeys: _propTypes2[\"default\"].arrayOf(_propTypes2[\"default\"].string),\n defaultActiveFirst: _propTypes2[\"default\"].bool,\n selectedKeys: _propTypes2[\"default\"].arrayOf(_propTypes2[\"default\"].string),\n defaultOpenKeys: _propTypes2[\"default\"].arrayOf(_propTypes2[\"default\"].string),\n openKeys: _propTypes2[\"default\"].arrayOf(_propTypes2[\"default\"].string),\n mode: _propTypes2[\"default\"].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']),\n getPopupContainer: _propTypes2[\"default\"].func,\n onClick: _propTypes2[\"default\"].func,\n onSelect: _propTypes2[\"default\"].func,\n onDeselect: _propTypes2[\"default\"].func,\n onDestroy: _propTypes2[\"default\"].func,\n openTransitionName: _propTypes2[\"default\"].string,\n openAnimation: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].string, _propTypes2[\"default\"].object]),\n subMenuOpenDelay: _propTypes2[\"default\"].number,\n subMenuCloseDelay: _propTypes2[\"default\"].number,\n forceSubMenuRender: _propTypes2[\"default\"].bool,\n triggerSubMenuAction: _propTypes2[\"default\"].string,\n level: _propTypes2[\"default\"].number,\n selectable: _propTypes2[\"default\"].bool,\n multiple: _propTypes2[\"default\"].bool,\n children: _propTypes2[\"default\"].any,\n className: _propTypes2[\"default\"].string,\n style: _propTypes2[\"default\"].object,\n activeKey: _propTypes2[\"default\"].string,\n prefixCls: _propTypes2[\"default\"].string,\n builtinPlacements: _propTypes2[\"default\"].object,\n itemIcon: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].func, _propTypes2[\"default\"].node]),\n expandIcon: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].func, _propTypes2[\"default\"].node]),\n overflowedIndicator: _propTypes2[\"default\"].node,\n keyboard: _propTypes2[\"default\"].bool\n};\nMenu.defaultProps = {\n selectable: true,\n onClick: _util.noop,\n onSelect: _util.noop,\n onOpenChange: _util.noop,\n onDeselect: _util.noop,\n defaultSelectedKeys: [],\n defaultOpenKeys: [],\n subMenuOpenDelay: 0.1,\n subMenuCloseDelay: 0.1,\n triggerSubMenuAction: 'hover',\n prefixCls: 'rc-menu',\n className: '',\n mode: 'vertical',\n style: {},\n builtinPlacements: {},\n overflowedIndicator: _react2[\"default\"].createElement(\n 'span',\n null,\n '\\xB7\\xB7\\xB7'\n ),\n keyboard: false,\n tabIndex: '0'\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this3 = this;\n\n this.onSelect = function (selectInfo) {\n var props = _this3.props;\n if (props.selectable) {\n // root menu\n var selectedKeys = _this3.store.getState().selectedKeys;\n var selectedKey = selectInfo.key;\n if (props.multiple) {\n selectedKeys = selectedKeys.concat([selectedKey]);\n } else {\n selectedKeys = [selectedKey];\n }\n if (!('selectedKeys' in props)) {\n _this3.store.setState({\n selectedKeys: selectedKeys\n });\n }\n props.onSelect(_extends({}, selectInfo, {\n selectedKeys: selectedKeys\n }));\n }\n };\n\n this.onClick = function (e) {\n _this3.props.onClick(e);\n };\n\n this.onKeyDown = function (e, callback) {\n _this3.innerMenu.getWrappedInstance().onKeyDown(e, callback);\n };\n\n this.onOpenChange = function (event) {\n var props = _this3.props;\n var openKeys = _this3.store.getState().openKeys.concat();\n var changed = false;\n var processSingle = function processSingle(e) {\n var oneChanged = false;\n if (e.open) {\n oneChanged = openKeys.indexOf(e.key) === -1;\n if (oneChanged) {\n openKeys.push(e.key);\n }\n } else {\n var index = openKeys.indexOf(e.key);\n oneChanged = index !== -1;\n if (oneChanged) {\n openKeys.splice(index, 1);\n }\n }\n changed = changed || oneChanged;\n };\n if (Array.isArray(event)) {\n // batch change call\n event.forEach(processSingle);\n } else {\n processSingle(event);\n }\n if (changed) {\n if (!('openKeys' in _this3.props)) {\n _this3.store.setState({ openKeys: openKeys });\n }\n props.onOpenChange(openKeys);\n }\n };\n\n this.onDeselect = function (selectInfo) {\n var props = _this3.props;\n if (props.selectable) {\n var selectedKeys = _this3.store.getState().selectedKeys.concat();\n var selectedKey = selectInfo.key;\n var index = selectedKeys.indexOf(selectedKey);\n if (index !== -1) {\n selectedKeys.splice(index, 1);\n }\n if (!('selectedKeys' in props)) {\n _this3.store.setState({\n selectedKeys: selectedKeys\n });\n }\n props.onDeselect(_extends({}, selectInfo, {\n selectedKeys: selectedKeys\n }));\n }\n };\n\n this.getOpenTransitionName = function () {\n var props = _this3.props;\n var transitionName = props.openTransitionName;\n var animationName = props.openAnimation;\n if (!transitionName && typeof animationName === 'string') {\n transitionName = props.prefixCls + '-open-' + animationName;\n }\n return transitionName;\n };\n\n this.focus = function () {\n // fireKeyEvent(ReactDOM.findDOMNode(this.innerMenu),'keydown',40);\n _this3.props.onFocus && _this3.props.onFocus();\n };\n};\n\nexports[\"default\"] = Menu;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-menus/build/Menu.js\n// module id = 302\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.create = exports.connect = exports.Provider = undefined;\n\nvar _Provider2 = require('./Provider');\n\nvar _Provider3 = _interopRequireDefault(_Provider2);\n\nvar _connect2 = require('./connect');\n\nvar _connect3 = _interopRequireDefault(_connect2);\n\nvar _create2 = require('./create');\n\nvar _create3 = _interopRequireDefault(_create2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.Provider = _Provider3.default;\nexports.connect = _connect3.default;\nexports.create = _create3.default;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/mini-store/lib/index.js\n// module id = 303\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _PropTypes = require('./PropTypes');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar Provider = function (_Component) {\n _inherits(Provider, _Component);\n\n function Provider() {\n _classCallCheck(this, Provider);\n\n return _possibleConstructorReturn(this, (Provider.__proto__ || Object.getPrototypeOf(Provider)).apply(this, arguments));\n }\n\n _createClass(Provider, [{\n key: 'getChildContext',\n value: function getChildContext() {\n return {\n miniStore: this.props.store\n };\n }\n }, {\n key: 'render',\n value: function render() {\n return _react.Children.only(this.props.children);\n }\n }]);\n\n return Provider;\n}(_react.Component);\n\nProvider.propTypes = {\n store: _PropTypes.storeShape.isRequired\n};\nProvider.childContextTypes = {\n miniStore: _PropTypes.storeShape.isRequired\n};\nexports.default = Provider;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/mini-store/lib/Provider.js\n// module id = 304\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.storeShape = undefined;\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar storeShape = exports.storeShape = _propTypes2.default.shape({\n subscribe: _propTypes2.default.func.isRequired,\n setState: _propTypes2.default.func.isRequired,\n getState: _propTypes2.default.func.isRequired\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/mini-store/lib/PropTypes.js\n// module id = 305\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nexports.default = connect;\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _shallowequal = require('shallowequal');\n\nvar _shallowequal2 = _interopRequireDefault(_shallowequal);\n\nvar _hoistNonReactStatics = require('hoist-non-react-statics');\n\nvar _hoistNonReactStatics2 = _interopRequireDefault(_hoistNonReactStatics);\n\nvar _reactLifecyclesCompat = require('react-lifecycles-compat');\n\nvar _PropTypes = require('./PropTypes');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nfunction getDisplayName(WrappedComponent) {\n return WrappedComponent.displayName || WrappedComponent.name || 'Component';\n}\n\nfunction isStateless(Component) {\n return !Component.prototype.render;\n}\n\nvar defaultMapStateToProps = function defaultMapStateToProps() {\n return {};\n};\n\nfunction connect(mapStateToProps) {\n var shouldSubscribe = !!mapStateToProps;\n var finnalMapStateToProps = mapStateToProps || defaultMapStateToProps;\n\n return function wrapWithConnect(WrappedComponent) {\n var Connect = function (_Component) {\n _inherits(Connect, _Component);\n\n _createClass(Connect, null, [{\n key: 'getDerivedStateFromProps',\n value: function getDerivedStateFromProps(props, prevState) {\n // using ownProps\n if (mapStateToProps && mapStateToProps.length === 2 && props !== prevState.props) {\n return {\n subscribed: finnalMapStateToProps(prevState.store.getState(), props),\n props: props\n };\n }\n return { props: props };\n }\n }]);\n\n function Connect(props, context) {\n _classCallCheck(this, Connect);\n\n var _this = _possibleConstructorReturn(this, (Connect.__proto__ || Object.getPrototypeOf(Connect)).call(this, props, context));\n\n _this.handleChange = function () {\n if (!_this.unsubscribe) {\n return;\n }\n var nextState = finnalMapStateToProps(_this.store.getState(), _this.props);\n _this.setState({ subscribed: nextState });\n };\n\n _this.store = context.miniStore;\n _this.state = {\n subscribed: finnalMapStateToProps(_this.store.getState(), props),\n store: _this.store,\n props: props\n };\n return _this;\n }\n\n _createClass(Connect, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n this.trySubscribe();\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n this.tryUnsubscribe();\n }\n }, {\n key: 'shouldComponentUpdate',\n value: function shouldComponentUpdate(nextProps, nextState) {\n return !(0, _shallowequal2.default)(this.props, nextProps) || !(0, _shallowequal2.default)(this.state.subscribed, nextState.subscribed);\n }\n }, {\n key: 'trySubscribe',\n value: function trySubscribe() {\n if (shouldSubscribe) {\n this.unsubscribe = this.store.subscribe(this.handleChange);\n this.handleChange();\n }\n }\n }, {\n key: 'tryUnsubscribe',\n value: function tryUnsubscribe() {\n if (this.unsubscribe) {\n this.unsubscribe();\n this.unsubscribe = null;\n }\n }\n }, {\n key: 'getWrappedInstance',\n value: function getWrappedInstance() {\n return this.wrappedInstance;\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var props = _extends({}, this.props, this.state.subscribed, {\n store: this.store\n });\n\n if (!isStateless(WrappedComponent)) {\n props = _extends({}, props, {\n ref: function ref(c) {\n return _this2.wrappedInstance = c;\n }\n });\n }\n\n return _react2.default.createElement(WrappedComponent, props);\n }\n }]);\n\n return Connect;\n }(_react.Component);\n\n Connect.displayName = 'Connect(' + getDisplayName(WrappedComponent) + ')';\n Connect.contextTypes = {\n miniStore: _PropTypes.storeShape.isRequired\n };\n\n\n (0, _reactLifecyclesCompat.polyfill)(Connect);\n\n return (0, _hoistNonReactStatics2.default)(Connect, WrappedComponent);\n };\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/mini-store/lib/connect.js\n// module id = 306\n// module chunks = 0","//\n\nmodule.exports = function shallowEqual(objA, objB, compare, compareContext) {\n var ret = compare ? compare.call(compareContext, objA, objB) : void 0;\n\n if (ret !== void 0) {\n return !!ret;\n }\n\n if (objA === objB) {\n return true;\n }\n\n if (typeof objA !== \"object\" || !objA || typeof objB !== \"object\" || !objB) {\n return false;\n }\n\n var keysA = Object.keys(objA);\n var keysB = Object.keys(objB);\n\n if (keysA.length !== keysB.length) {\n return false;\n }\n\n var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB);\n\n // Test for A's keys different from B.\n for (var idx = 0; idx < keysA.length; idx++) {\n var key = keysA[idx];\n\n if (!bHasOwnProperty(key)) {\n return false;\n }\n\n var valueA = objA[key];\n var valueB = objB[key];\n\n ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0;\n\n if (ret === false || (ret === void 0 && valueA !== valueB)) {\n return false;\n }\n }\n\n return true;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/shallowequal/index.js\n// module id = 307\n// module chunks = 0","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nexports.default = create;\nfunction create(initialState) {\n var state = initialState;\n var listeners = [];\n\n function setState(partial) {\n state = _extends({}, state, partial);\n for (var i = 0; i < listeners.length; i++) {\n listeners[i]();\n }\n }\n\n function getState() {\n return state;\n }\n\n function subscribe(listener) {\n listeners.push(listener);\n\n return function unsubscribe() {\n var index = listeners.indexOf(listener);\n listeners.splice(index, 1);\n };\n }\n\n return {\n setState: setState,\n getState: getState,\n subscribe: subscribe\n };\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/mini-store/lib/create.js\n// module id = 308\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.SubPopupMenu = undefined;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; /**\n * This source code is quoted from rc-menu.\n * homepage: https://github.com/react-component/menu\n */\n\n\nexports.getActiveKey = getActiveKey;\nexports.saveRef = saveRef;\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _miniStore = require('mini-store');\n\nvar _tinperBeeCore = require('tinper-bee-core');\n\nvar _createChainedFunction = require('rc-util/lib/createChainedFunction');\n\nvar _createChainedFunction2 = _interopRequireDefault(_createChainedFunction);\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _util = require('./util');\n\nvar _DOMWrap = require('./DOMWrap');\n\nvar _DOMWrap2 = _interopRequireDefault(_DOMWrap);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction allDisabled(arr) {\n if (!arr.length) {\n return true;\n }\n return arr.every(function (c) {\n return !!c.props.disabled;\n });\n}\n\nfunction updateActiveKey(store, menuId, activeKey) {\n var state = store.getState();\n store.setState({\n activeKey: _extends({}, state.activeKey, _defineProperty({}, menuId, activeKey))\n });\n}\n\nfunction getEventKey(props) {\n // when eventKey not available ,it's menu and return menu id '0-menu-'\n return props.eventKey || '0-menu-';\n}\n\nfunction getActiveKey(props, originalActiveKey) {\n var activeKey = originalActiveKey;\n var children = props.children,\n eventKey = props.eventKey;\n\n if (activeKey) {\n var found = void 0;\n (0, _util.loopMenuItem)(children, function (c, i) {\n if (c && !c.props.disabled && activeKey === (0, _util.getKeyFromChildrenIndex)(c, eventKey, i)) {\n found = true;\n }\n });\n if (found) {\n return activeKey;\n }\n }\n activeKey = null;\n if (props.defaultActiveFirst) {\n (0, _util.loopMenuItem)(children, function (c, i) {\n if (!activeKey && c && !c.props.disabled) {\n activeKey = (0, _util.getKeyFromChildrenIndex)(c, eventKey, i);\n }\n });\n return activeKey;\n }\n return activeKey;\n}\n\nfunction saveRef(c) {\n if (c) {\n var index = this.instanceArray.indexOf(c);\n if (index !== -1) {\n // update component if it's already inside instanceArray\n this.instanceArray[index] = c;\n } else {\n // add component if it's not in instanceArray yet;\n this.instanceArray.push(c);\n }\n }\n}\n\nvar SubPopupMenu = exports.SubPopupMenu = function (_React$Component) {\n _inherits(SubPopupMenu, _React$Component);\n\n function SubPopupMenu(props) {\n _classCallCheck(this, SubPopupMenu);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));\n\n _initialiseProps.call(_this);\n\n props.store.setState({\n activeKey: _extends({}, props.store.getState().activeKey, _defineProperty({}, props.eventKey, getActiveKey(props, props.activeKey)))\n });\n\n _this.instanceArray = [];\n return _this;\n }\n\n SubPopupMenu.prototype.componentDidMount = function componentDidMount() {\n // invoke customized ref to expose component to mixin\n if (this.props.manualRef) {\n this.props.manualRef(this);\n }\n };\n\n SubPopupMenu.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {\n return this.props.visible || nextProps.visible;\n };\n\n SubPopupMenu.prototype.componentDidUpdate = function componentDidUpdate(prevProps) {\n var props = this.props;\n var originalActiveKey = 'activeKey' in props ? props.activeKey : props.store.getState().activeKey[getEventKey(props)];\n var activeKey = getActiveKey(props, originalActiveKey);\n if (activeKey !== originalActiveKey) {\n updateActiveKey(props.store, getEventKey(props), activeKey);\n } else if ('activeKey' in prevProps) {\n // If prev activeKey is not same as current activeKey,\n // we should set it.\n var prevActiveKey = getActiveKey(prevProps, prevProps.activeKey);\n if (activeKey !== prevActiveKey) {\n updateActiveKey(props.store, getEventKey(props), activeKey);\n }\n }\n };\n\n // all keyboard events callbacks run from here at first\n\n\n SubPopupMenu.prototype.render = function render() {\n var _this2 = this;\n\n var props = _objectWithoutProperties(this.props, []);\n\n this.instanceArray = [];\n var className = (0, _classnames2[\"default\"])(props.prefixCls, props.className, props.prefixCls + '-' + props.mode);\n var domProps = {\n className: className,\n // role could be 'select' and by default set to menu\n role: props.role || 'menu'\n };\n if (props.id) {\n domProps.id = props.id;\n }\n if (props.focusable) {\n domProps.tabIndex = this.props.tabIndex;\n domProps.onKeyDown = props.keyboard && this.onKeyDown;\n }\n var prefixCls = props.prefixCls,\n eventKey = props.eventKey,\n visible = props.visible,\n level = props.level,\n mode = props.mode,\n overflowedIndicator = props.overflowedIndicator,\n theme = props.theme;\n\n _util.menuAllProps.forEach(function (key) {\n return delete props[key];\n });\n\n // Otherwise, the propagated click event will trigger another onClick\n delete props.onClick;\n delete props.keyboard;\n\n return (\n // ESLint is not smart enough to know that the type of `children` was checked.\n /* eslint-disable */\n _react2[\"default\"].createElement(\n _DOMWrap2[\"default\"],\n _extends({}, props, {\n prefixCls: prefixCls,\n mode: mode,\n tag: 'ul',\n level: level,\n theme: theme,\n hiddenClassName: prefixCls + '-hidden',\n visible: visible,\n overflowedIndicator: overflowedIndicator\n }, domProps),\n _react2[\"default\"].Children.map(props.children, function (c, i) {\n return _this2.renderMenuItem(c, i, eventKey || '0-menu-');\n })\n )\n /*eslint-enable */\n\n );\n };\n\n return SubPopupMenu;\n}(_react2[\"default\"].Component);\n\nSubPopupMenu.propTypes = {\n onSelect: _propTypes2[\"default\"].func,\n onClick: _propTypes2[\"default\"].func,\n onDeselect: _propTypes2[\"default\"].func,\n onOpenChange: _propTypes2[\"default\"].func,\n onDestroy: _propTypes2[\"default\"].func,\n openTransitionName: _propTypes2[\"default\"].string,\n openAnimation: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].string, _propTypes2[\"default\"].object]),\n openKeys: _propTypes2[\"default\"].arrayOf(_propTypes2[\"default\"].string),\n visible: _propTypes2[\"default\"].bool,\n children: _propTypes2[\"default\"].any,\n parentMenu: _propTypes2[\"default\"].object,\n eventKey: _propTypes2[\"default\"].string,\n store: _propTypes2[\"default\"].shape({\n getState: _propTypes2[\"default\"].func,\n setState: _propTypes2[\"default\"].func\n }),\n\n // adding in refactor\n focusable: _propTypes2[\"default\"].bool,\n multiple: _propTypes2[\"default\"].bool,\n style: _propTypes2[\"default\"].object,\n defaultActiveFirst: _propTypes2[\"default\"].bool,\n activeKey: _propTypes2[\"default\"].string,\n selectedKeys: _propTypes2[\"default\"].arrayOf(_propTypes2[\"default\"].string),\n defaultSelectedKeys: _propTypes2[\"default\"].arrayOf(_propTypes2[\"default\"].string),\n defaultOpenKeys: _propTypes2[\"default\"].arrayOf(_propTypes2[\"default\"].string),\n level: _propTypes2[\"default\"].number,\n mode: _propTypes2[\"default\"].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']),\n triggerSubMenuAction: _propTypes2[\"default\"].oneOf(['click', 'hover']),\n inlineIndent: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].number, _propTypes2[\"default\"].string]),\n manualRef: _propTypes2[\"default\"].func,\n itemIcon: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].func, _propTypes2[\"default\"].node]),\n expandIcon: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].func, _propTypes2[\"default\"].node])\n};\nSubPopupMenu.defaultProps = {\n prefixCls: 'rc-menu',\n className: '',\n mode: 'vertical',\n level: 1,\n inlineIndent: 24,\n visible: true,\n focusable: true,\n style: {},\n manualRef: _util.noop\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this3 = this;\n\n this.onKeyDown = function (e, callback) {\n var keyCode = e.keyCode;\n var handled = void 0;\n _this3.getFlatInstanceArray().forEach(function (obj) {\n if (obj && obj.props.active && obj.onKeyDown) {\n handled = obj.onKeyDown(e);\n }\n });\n if (handled) {\n return 1;\n }\n var activeItem = null;\n if (keyCode === _tinperBeeCore.KeyCode.UP || keyCode === _tinperBeeCore.KeyCode.DOWN) {\n if (_this3.props.store.getState().keyboard) {\n //是否启用键盘操作\n activeItem = _this3.step(keyCode === _tinperBeeCore.KeyCode.UP ? -2 : 2);\n }\n }\n\n if (activeItem) {\n e.preventDefault();\n updateActiveKey(_this3.props.store, getEventKey(_this3.props), activeItem.props.eventKey);\n\n if (typeof callback === 'function') {\n callback(activeItem);\n }\n\n return 1;\n }\n };\n\n this.onItemHover = function (e) {\n var key = e.key,\n hover = e.hover;\n\n updateActiveKey(_this3.props.store, getEventKey(_this3.props), hover ? key : null);\n };\n\n this.onDeselect = function (selectInfo) {\n _this3.props.onDeselect(selectInfo);\n };\n\n this.onSelect = function (selectInfo) {\n _this3.props.onSelect(selectInfo);\n };\n\n this.onClick = function (e) {\n _this3.props.onClick(e);\n };\n\n this.onOpenChange = function (e) {\n _this3.props.onOpenChange(e);\n };\n\n this.onDestroy = function (key) {\n /* istanbul ignore next */\n _this3.props.onDestroy(key);\n };\n\n this.getFlatInstanceArray = function () {\n return _this3.instanceArray;\n };\n\n this.getOpenTransitionName = function () {\n return _this3.props.openTransitionName;\n };\n\n this.step = function (direction) {\n var children = _this3.getFlatInstanceArray();\n var activeKey = _this3.props.store.getState().activeKey[getEventKey(_this3.props)];\n var len = children.length;\n if (!len) {\n return null;\n }\n if (direction < 0) {\n children = children.concat().reverse();\n }\n // find current activeIndex\n var activeIndex = -1;\n children.every(function (c, ci) {\n if (c && c.props.eventKey === activeKey) {\n activeIndex = ci;\n return false;\n }\n return true;\n });\n if (!_this3.props.defaultActiveFirst && activeIndex !== -1 && allDisabled(children.slice(activeIndex, len - 1))) {\n return undefined;\n }\n var start = (activeIndex + 1) % len;\n var i = start;\n\n do {\n var child = children[i];\n if (!child || child.props.disabled) {\n i = (i + 1) % len;\n } else {\n return child;\n }\n } while (i !== start);\n\n return null;\n };\n\n this.renderCommonMenuItem = function (child, i, extraProps) {\n var state = _this3.props.store.getState();\n var props = _this3.props;\n var key = (0, _util.getKeyFromChildrenIndex)(child, props.eventKey, i);\n var childProps = child.props;\n var isActive = key === state.activeKey;\n var newChildProps = _extends({\n mode: childProps.mode || props.mode,\n level: props.level,\n inlineIndent: props.inlineIndent,\n renderMenuItem: _this3.renderMenuItem,\n rootPrefixCls: props.prefixCls,\n index: i,\n parentMenu: props.parentMenu,\n // customized ref function, need to be invoked manually in child's componentDidMount\n manualRef: childProps.disabled ? undefined : (0, _createChainedFunction2[\"default\"])(child.ref, saveRef.bind(_this3)),\n eventKey: key,\n active: !childProps.disabled && isActive,\n multiple: props.multiple,\n onClick: function onClick(e) {\n (childProps.onClick || _util.noop)(e);\n _this3.onClick(e);\n },\n onItemHover: _this3.onItemHover,\n openTransitionName: _this3.getOpenTransitionName(),\n openAnimation: props.openAnimation,\n subMenuOpenDelay: props.subMenuOpenDelay,\n subMenuCloseDelay: props.subMenuCloseDelay,\n forceSubMenuRender: props.forceSubMenuRender,\n onOpenChange: _this3.onOpenChange,\n onDeselect: _this3.onDeselect,\n onSelect: _this3.onSelect,\n builtinPlacements: props.builtinPlacements,\n itemIcon: childProps.itemIcon || _this3.props.itemIcon,\n expandIcon: childProps.expandIcon || _this3.props.expandIcon\n }, extraProps);\n if (props.mode === 'inline') {\n newChildProps.triggerSubMenuAction = 'click';\n }\n return _react2[\"default\"].cloneElement(child, newChildProps);\n };\n\n this.renderMenuItem = function (c, i, subMenuKey) {\n /* istanbul ignore if */\n\n if (!c) {\n return null;\n }\n var state = _this3.props.store.getState();\n var extraProps = {\n openKeys: state.openKeys,\n selectedKeys: state.selectedKeys,\n triggerSubMenuAction: _this3.props.triggerSubMenuAction,\n subMenuKey: subMenuKey\n };\n return _this3.renderCommonMenuItem(c, i, extraProps);\n };\n};\n\nvar connected = (0, _miniStore.connect)()(SubPopupMenu);\n\nexports[\"default\"] = connected;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-menus/build/SubPopupMenu.js\n// module id = 309\n// module chunks = 0","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = createChainedFunction;\n\n/**\n * Safe chained function\n *\n * Will only create a new function if needed,\n * otherwise will pass back existing functions or null.\n *\n * @returns {function|null}\n */\nfunction createChainedFunction() {\n var args = [].slice.call(arguments, 0);\n\n if (args.length === 1) {\n return args[0];\n }\n\n return function chainedFunction() {\n for (var i = 0; i < args.length; i++) {\n if (args[i] && args[i].apply) {\n args[i].apply(this, arguments);\n }\n }\n };\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rc-util/lib/createChainedFunction.js\n// module id = 310\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.setStyle = exports.getWidth = exports.menuAllProps = undefined;\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; /**\n * This source code is quoted from rc-menu.\n * homepage: https://github.com/react-component/menu\n */\n\n\nexports.noop = noop;\nexports.getKeyFromChildrenIndex = getKeyFromChildrenIndex;\nexports.getMenuIdFromSubMenuEventKey = getMenuIdFromSubMenuEventKey;\nexports.loopMenuItem = loopMenuItem;\nexports.loopMenuItemRecursively = loopMenuItemRecursively;\nexports.fireKeyEvent = fireKeyEvent;\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction noop() {}\n\nfunction getKeyFromChildrenIndex(child, menuEventKey, index) {\n var prefix = menuEventKey || '';\n return child.key || prefix + 'item_' + index;\n}\n\nfunction getMenuIdFromSubMenuEventKey(eventKey) {\n return eventKey + '-menu-';\n}\n\nfunction loopMenuItem(children, cb) {\n var index = -1;\n _react2[\"default\"].Children.forEach(children, function (c) {\n index++;\n if (c && c.type && c.type.isMenuItemGroup) {\n _react2[\"default\"].Children.forEach(c.props.children, function (c2) {\n index++;\n cb(c2, index);\n });\n } else {\n cb(c, index);\n }\n });\n}\n\nfunction loopMenuItemRecursively(children, keys, ret) {\n /* istanbul ignore if */\n if (!children || ret.find) {\n return;\n }\n _react2[\"default\"].Children.forEach(children, function (c) {\n if (c) {\n var construct = c.type;\n if (!construct || !(construct.isSubMenu || construct.isMenuItem || construct.isMenuItemGroup)) {\n return;\n }\n if (keys.indexOf(c.key) !== -1) {\n ret.find = true;\n } else if (c.props.children) {\n loopMenuItemRecursively(c.props.children, keys, ret);\n }\n }\n });\n}\n\nvar menuAllProps = exports.menuAllProps = ['defaultSelectedKeys', 'selectedKeys', 'defaultOpenKeys', 'openKeys', 'mode', 'getPopupContainer', 'onSelect', 'onDeselect', 'onDestroy', 'openTransitionName', 'openAnimation', 'subMenuOpenDelay', 'subMenuCloseDelay', 'forceSubMenuRender', 'triggerSubMenuAction', 'level', 'selectable', 'multiple', 'onOpenChange', 'visible', 'focusable', 'defaultActiveFirst', 'prefixCls', 'inlineIndent', 'parentMenu', 'title', 'rootPrefixCls', 'eventKey', 'active', 'onItemHover', 'onTitleMouseEnter', 'onTitleMouseLeave', 'onTitleClick', 'popupAlign', 'popupOffset', 'isOpen', 'renderMenuItem', 'manualRef', 'subMenuKey', 'disabled', 'index', 'isSelected', 'store', 'activeKey', 'builtinPlacements', 'overflowedIndicator',\n\n// the following keys found need to be removed from test regression\n'attribute', 'value', 'popupClassName', 'inlineCollapsed', 'menu', 'theme', 'itemIcon', 'expandIcon'];\n\nvar getWidth = exports.getWidth = function getWidth(elem) {\n return elem && typeof elem.getBoundingClientRect === 'function' && elem.getBoundingClientRect().width || 0;\n};\n\nvar setStyle = exports.setStyle = function setStyle(elem, styleProperty, value) {\n if (elem && _typeof(elem.style) === 'object') {\n elem.style[styleProperty] = value;\n }\n};\n\nfunction fireKeyEvent(el, evtType, keyCode) {\n var evtObj;\n if (document.createEvent) {\n if (window.KeyEvent) {\n //firefox 浏览器下模拟事件\n evtObj = document.createEvent('KeyEvents');\n evtObj.initKeyEvent(evtType, true, true, window, true, false, false, false, keyCode, 0);\n } else {\n //chrome 浏览器下模拟事件\n evtObj = document.createEvent('UIEvents');\n evtObj.initUIEvent(evtType, true, true, window, 1);\n\n delete evtObj.keyCode;\n if (typeof evtObj.keyCode === \"undefined\") {\n //为了模拟keycode\n Object.defineProperty(evtObj, \"keyCode\", { value: keyCode });\n } else {\n evtObj.key = String.fromCharCode(keyCode);\n }\n\n if (typeof evtObj.ctrlKey === 'undefined') {\n //为了模拟ctrl键\n Object.defineProperty(evtObj, \"ctrlKey\", { value: true });\n } else {\n evtObj.ctrlKey = true;\n }\n }\n el.dispatchEvent(evtObj);\n } else if (document.createEventObject) {\n //IE 浏览器下模拟事件\n evtObj = document.createEventObject();\n evtObj.keyCode = keyCode;\n el.fireEvent('on' + evtType, evtObj);\n }\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-menus/build/util.js\n// module id = 311\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = require('react-dom');\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _resizeObserverPolyfill = require('resize-observer-polyfill');\n\nvar _resizeObserverPolyfill2 = _interopRequireDefault(_resizeObserverPolyfill);\n\nvar _SubMenu = require('./SubMenu');\n\nvar _SubMenu2 = _interopRequireDefault(_SubMenu);\n\nvar _util = require('./util');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**\n * This source code is quoted from rc-menu.\n * homepage: https://github.com/react-component/menu\n */\n\n\nvar canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);\n\nvar MENUITEM_OVERFLOWED_CLASSNAME = 'menuitem-overflowed';\n\n// Fix ssr\nif (canUseDOM) {\n require('mutationobserver-shim');\n}\n\nvar DOMWrap = function (_React$Component) {\n _inherits(DOMWrap, _React$Component);\n\n function DOMWrap() {\n var _temp, _this, _ret;\n\n _classCallCheck(this, DOMWrap);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.state = {\n lastVisibleIndex: undefined\n }, _this.getMenuItemNodes = function () {\n var prefixCls = _this.props.prefixCls;\n\n var ul = _reactDom2[\"default\"].findDOMNode(_this);\n if (!ul) {\n return [];\n }\n\n // filter out all overflowed indicator placeholder\n return [].slice.call(ul.children).filter(function (node) {\n return node.className.split(' ').indexOf(prefixCls + '-overflowed-submenu') < 0;\n });\n }, _this.getOverflowedSubMenuItem = function (keyPrefix, overflowedItems, renderPlaceholder) {\n var _this$props = _this.props,\n overflowedIndicator = _this$props.overflowedIndicator,\n level = _this$props.level,\n mode = _this$props.mode,\n prefixCls = _this$props.prefixCls,\n theme = _this$props.theme,\n propStyle = _this$props.style;\n\n if (level !== 1 || mode !== 'horizontal') {\n return null;\n }\n // put all the overflowed item inside a submenu\n // with a title of overflow indicator ('...')\n var copy = _this.props.children[0];\n\n var _copy$props = copy.props,\n throwAway = _copy$props.children,\n title = _copy$props.title,\n eventKey = _copy$props.eventKey,\n rest = _objectWithoutProperties(_copy$props, ['children', 'title', 'eventKey']);\n\n var style = _extends({}, propStyle);\n var key = keyPrefix + '-overflowed-indicator';\n\n if (overflowedItems.length === 0 && renderPlaceholder !== true) {\n style = _extends({}, style, {\n display: 'none'\n });\n } else if (renderPlaceholder) {\n style = _extends({}, style, {\n visibility: 'hidden',\n // prevent from taking normal dom space\n position: 'absolute'\n });\n key = key + '-placeholder';\n }\n\n var popupClassName = theme ? prefixCls + '-' + theme : '';\n var props = {};\n _util.menuAllProps.forEach(function (k) {\n if (rest[k] !== undefined) {\n props[k] = rest[k];\n }\n });\n\n return _react2[\"default\"].createElement(\n _SubMenu2[\"default\"],\n _extends({\n title: overflowedIndicator,\n className: prefixCls + '-overflowed-submenu',\n popupClassName: popupClassName\n }, props, {\n key: key,\n eventKey: keyPrefix + '-overflowed-indicator',\n disabled: false,\n style: style\n }),\n overflowedItems\n );\n }, _this.setChildrenWidthAndResize = function () {\n if (_this.props.mode !== 'horizontal') {\n return;\n }\n var ul = _reactDom2[\"default\"].findDOMNode(_this);\n\n if (!ul) {\n return;\n }\n\n var ulChildrenNodes = ul.children;\n\n if (!ulChildrenNodes || ulChildrenNodes.length === 0) {\n return;\n }\n\n var lastOverflowedIndicatorPlaceholder = ul.children[ulChildrenNodes.length - 1];\n\n // need last overflowed indicator for calculating length;\n (0, _util.setStyle)(lastOverflowedIndicatorPlaceholder, 'display', 'inline-block');\n\n var menuItemNodes = _this.getMenuItemNodes();\n\n // reset display attribute for all hidden elements caused by overflow to calculate updated width\n // and then reset to original state after width calculation\n\n var overflowedItems = menuItemNodes.filter(function (c) {\n return c.className.split(' ').indexOf(MENUITEM_OVERFLOWED_CLASSNAME) >= 0;\n });\n\n overflowedItems.forEach(function (c) {\n (0, _util.setStyle)(c, 'display', 'inline-block');\n });\n\n _this.menuItemSizes = menuItemNodes.map(function (c) {\n return (0, _util.getWidth)(c);\n });\n\n overflowedItems.forEach(function (c) {\n (0, _util.setStyle)(c, 'display', 'none');\n });\n _this.overflowedIndicatorWidth = (0, _util.getWidth)(ul.children[ul.children.length - 1]);\n _this.originalTotalWidth = _this.menuItemSizes.reduce(function (acc, cur) {\n return acc + cur;\n }, 0);\n _this.handleResize();\n // prevent the overflowed indicator from taking space;\n (0, _util.setStyle)(lastOverflowedIndicatorPlaceholder, 'display', 'none');\n }, _this.resizeObserver = null, _this.mutationObserver = null, _this.originalTotalWidth = 0, _this.overflowedItems = [], _this.menuItemSizes = [], _this.handleResize = function () {\n if (_this.props.mode !== 'horizontal') {\n return;\n }\n\n var ul = _reactDom2[\"default\"].findDOMNode(_this);\n if (!ul) {\n return;\n }\n var width = (0, _util.getWidth)(ul);\n\n _this.overflowedItems = [];\n var currentSumWidth = 0;\n\n // index for last visible child in horizontal mode\n var lastVisibleIndex = undefined;\n\n if (_this.originalTotalWidth > width) {\n lastVisibleIndex = -1;\n\n _this.menuItemSizes.forEach(function (liWidth) {\n currentSumWidth += liWidth;\n if (currentSumWidth + _this.overflowedIndicatorWidth <= width) {\n lastVisibleIndex++;\n }\n });\n }\n\n _this.setState({ lastVisibleIndex: lastVisibleIndex });\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n DOMWrap.prototype.componentDidMount = function componentDidMount() {\n var _this2 = this;\n\n this.setChildrenWidthAndResize();\n if (this.props.level === 1 && this.props.mode === 'horizontal') {\n var menuUl = _reactDom2[\"default\"].findDOMNode(this);\n if (!menuUl) {\n return;\n }\n this.resizeObserver = new _resizeObserverPolyfill2[\"default\"](function (entries) {\n entries.forEach(_this2.setChildrenWidthAndResize);\n });\n\n [].slice.call(menuUl.children).concat(menuUl).forEach(function (el) {\n _this2.resizeObserver.observe(el);\n });\n\n if (typeof MutationObserver !== 'undefined') {\n this.mutationObserver = new MutationObserver(function () {\n _this2.resizeObserver.disconnect();\n [].slice.call(menuUl.children).concat(menuUl).forEach(function (el) {\n _this2.resizeObserver.observe(el);\n });\n _this2.setChildrenWidthAndResize();\n });\n this.mutationObserver.observe(menuUl, { attributes: false, childList: true, subTree: false });\n }\n }\n };\n\n DOMWrap.prototype.componentWillUnmount = function componentWillUnmount() {\n if (this.resizeObserver) {\n this.resizeObserver.disconnect();\n }\n if (this.mutationObserver) {\n this.resizeObserver.disconnect();\n }\n };\n\n // get all valid menuItem nodes\n\n\n // memorize rendered menuSize\n\n\n // original scroll size of the list\n\n\n // copy of overflowed items\n\n\n // cache item of the original items (so we can track the size and order)\n\n\n DOMWrap.prototype.renderChildren = function renderChildren(children) {\n var _this3 = this;\n\n // need to take care of overflowed items in horizontal mode\n var lastVisibleIndex = this.state.lastVisibleIndex;\n\n return (children || []).reduce(function (acc, childNode, index) {\n var item = childNode;\n if (_this3.props.mode === 'horizontal') {\n var overflowed = _this3.getOverflowedSubMenuItem(childNode.props.eventKey, []);\n if (lastVisibleIndex !== undefined && _this3.props.className.indexOf(_this3.props.prefixCls + '-root') !== -1) {\n if (index > lastVisibleIndex) {\n item = _react2[\"default\"].cloneElement(childNode,\n // 这里修改 eventKey 是为了防止隐藏状态下还会触发 openkeys 事件\n {\n style: { display: 'none' },\n eventKey: childNode.props.eventKey + '-hidden',\n className: childNode.className + ' ' + MENUITEM_OVERFLOWED_CLASSNAME\n });\n }\n if (index === lastVisibleIndex + 1) {\n _this3.overflowedItems = children.slice(lastVisibleIndex + 1).map(function (c) {\n return _react2[\"default\"].cloneElement(c,\n // children[index].key will become '.$key' in clone by default,\n // we have to overwrite with the correct key explicitly\n { key: c.props.eventKey, mode: 'vertical-left' });\n });\n\n overflowed = _this3.getOverflowedSubMenuItem(childNode.props.eventKey, _this3.overflowedItems);\n }\n }\n\n // const ret = [...acc, overflowed, item];//更改\n var ret = [].concat(_toConsumableArray(acc), [item]);\n\n if (index === children.length - 1) {\n // need a placeholder for calculating overflowed indicator width\n ret.push(_this3.getOverflowedSubMenuItem(childNode.props.eventKey, [], true));\n }\n return ret;\n }\n return [].concat(_toConsumableArray(acc), [item]);\n }, []);\n };\n\n DOMWrap.prototype.render = function render() {\n var _props = this.props,\n hiddenClassName = _props.hiddenClassName,\n visible = _props.visible,\n prefixCls = _props.prefixCls,\n overflowedIndicator = _props.overflowedIndicator,\n mode = _props.mode,\n level = _props.level,\n Tag = _props.tag,\n children = _props.children,\n theme = _props.theme,\n rest = _objectWithoutProperties(_props, ['hiddenClassName', 'visible', 'prefixCls', 'overflowedIndicator', 'mode', 'level', 'tag', 'children', 'theme']);\n\n if (!visible) {\n rest.className += ' ' + hiddenClassName;\n }\n\n return _react2[\"default\"].createElement(\n Tag,\n rest,\n this.renderChildren(this.props.children)\n );\n };\n\n return DOMWrap;\n}(_react2[\"default\"].Component);\n\nDOMWrap.propTypes = {\n className: _propTypes2[\"default\"].string,\n children: _propTypes2[\"default\"].node,\n mode: _propTypes2[\"default\"].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']),\n prefixCls: _propTypes2[\"default\"].string,\n level: _propTypes2[\"default\"].number,\n theme: _propTypes2[\"default\"].string,\n overflowedIndicator: _propTypes2[\"default\"].node,\n visible: _propTypes2[\"default\"].bool,\n hiddenClassName: _propTypes2[\"default\"].string,\n tag: _propTypes2[\"default\"].string,\n style: _propTypes2[\"default\"].object\n};\n\nDOMWrap.defaultProps = {\n tag: 'div',\n className: ''\n};\n\nexports[\"default\"] = DOMWrap;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-menus/build/DOMWrap.js\n// module id = 312\n// module chunks = 0","(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n typeof define === 'function' && define.amd ? define(factory) :\n (global.ResizeObserver = factory());\n}(this, (function () { 'use strict';\n\n /**\r\n * A collection of shims that provide minimal functionality of the ES6 collections.\r\n *\r\n * These implementations are not meant to be used outside of the ResizeObserver\r\n * modules as they cover only a limited range of use cases.\r\n */\r\n /* eslint-disable require-jsdoc, valid-jsdoc */\r\n var MapShim = (function () {\r\n if (typeof Map !== 'undefined') {\r\n return Map;\r\n }\r\n /**\r\n * Returns index in provided array that matches the specified key.\r\n *\r\n * @param {Array} arr\r\n * @param {*} key\r\n * @returns {number}\r\n */\r\n function getIndex(arr, key) {\r\n var result = -1;\r\n arr.some(function (entry, index) {\r\n if (entry[0] === key) {\r\n result = index;\r\n return true;\r\n }\r\n return false;\r\n });\r\n return result;\r\n }\r\n return /** @class */ (function () {\r\n function class_1() {\r\n this.__entries__ = [];\r\n }\r\n Object.defineProperty(class_1.prototype, \"size\", {\r\n /**\r\n * @returns {boolean}\r\n */\r\n get: function () {\r\n return this.__entries__.length;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n /**\r\n * @param {*} key\r\n * @returns {*}\r\n */\r\n class_1.prototype.get = function (key) {\r\n var index = getIndex(this.__entries__, key);\r\n var entry = this.__entries__[index];\r\n return entry && entry[1];\r\n };\r\n /**\r\n * @param {*} key\r\n * @param {*} value\r\n * @returns {void}\r\n */\r\n class_1.prototype.set = function (key, value) {\r\n var index = getIndex(this.__entries__, key);\r\n if (~index) {\r\n this.__entries__[index][1] = value;\r\n }\r\n else {\r\n this.__entries__.push([key, value]);\r\n }\r\n };\r\n /**\r\n * @param {*} key\r\n * @returns {void}\r\n */\r\n class_1.prototype.delete = function (key) {\r\n var entries = this.__entries__;\r\n var index = getIndex(entries, key);\r\n if (~index) {\r\n entries.splice(index, 1);\r\n }\r\n };\r\n /**\r\n * @param {*} key\r\n * @returns {void}\r\n */\r\n class_1.prototype.has = function (key) {\r\n return !!~getIndex(this.__entries__, key);\r\n };\r\n /**\r\n * @returns {void}\r\n */\r\n class_1.prototype.clear = function () {\r\n this.__entries__.splice(0);\r\n };\r\n /**\r\n * @param {Function} callback\r\n * @param {*} [ctx=null]\r\n * @returns {void}\r\n */\r\n class_1.prototype.forEach = function (callback, ctx) {\r\n if (ctx === void 0) { ctx = null; }\r\n for (var _i = 0, _a = this.__entries__; _i < _a.length; _i++) {\r\n var entry = _a[_i];\r\n callback.call(ctx, entry[1], entry[0]);\r\n }\r\n };\r\n return class_1;\r\n }());\r\n })();\n\n /**\r\n * Detects whether window and document objects are available in current environment.\r\n */\r\n var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && window.document === document;\n\n // Returns global object of a current environment.\r\n var global$1 = (function () {\r\n if (typeof global !== 'undefined' && global.Math === Math) {\r\n return global;\r\n }\r\n if (typeof self !== 'undefined' && self.Math === Math) {\r\n return self;\r\n }\r\n if (typeof window !== 'undefined' && window.Math === Math) {\r\n return window;\r\n }\r\n // eslint-disable-next-line no-new-func\r\n return Function('return this')();\r\n })();\n\n /**\r\n * A shim for the requestAnimationFrame which falls back to the setTimeout if\r\n * first one is not supported.\r\n *\r\n * @returns {number} Requests' identifier.\r\n */\r\n var requestAnimationFrame$1 = (function () {\r\n if (typeof requestAnimationFrame === 'function') {\r\n // It's required to use a bounded function because IE sometimes throws\r\n // an \"Invalid calling object\" error if rAF is invoked without the global\r\n // object on the left hand side.\r\n return requestAnimationFrame.bind(global$1);\r\n }\r\n return function (callback) { return setTimeout(function () { return callback(Date.now()); }, 1000 / 60); };\r\n })();\n\n // Defines minimum timeout before adding a trailing call.\r\n var trailingTimeout = 2;\r\n /**\r\n * Creates a wrapper function which ensures that provided callback will be\r\n * invoked only once during the specified delay period.\r\n *\r\n * @param {Function} callback - Function to be invoked after the delay period.\r\n * @param {number} delay - Delay after which to invoke callback.\r\n * @returns {Function}\r\n */\r\n function throttle (callback, delay) {\r\n var leadingCall = false, trailingCall = false, lastCallTime = 0;\r\n /**\r\n * Invokes the original callback function and schedules new invocation if\r\n * the \"proxy\" was called during current request.\r\n *\r\n * @returns {void}\r\n */\r\n function resolvePending() {\r\n if (leadingCall) {\r\n leadingCall = false;\r\n callback();\r\n }\r\n if (trailingCall) {\r\n proxy();\r\n }\r\n }\r\n /**\r\n * Callback invoked after the specified delay. It will further postpone\r\n * invocation of the original function delegating it to the\r\n * requestAnimationFrame.\r\n *\r\n * @returns {void}\r\n */\r\n function timeoutCallback() {\r\n requestAnimationFrame$1(resolvePending);\r\n }\r\n /**\r\n * Schedules invocation of the original function.\r\n *\r\n * @returns {void}\r\n */\r\n function proxy() {\r\n var timeStamp = Date.now();\r\n if (leadingCall) {\r\n // Reject immediately following calls.\r\n if (timeStamp - lastCallTime < trailingTimeout) {\r\n return;\r\n }\r\n // Schedule new call to be in invoked when the pending one is resolved.\r\n // This is important for \"transitions\" which never actually start\r\n // immediately so there is a chance that we might miss one if change\r\n // happens amids the pending invocation.\r\n trailingCall = true;\r\n }\r\n else {\r\n leadingCall = true;\r\n trailingCall = false;\r\n setTimeout(timeoutCallback, delay);\r\n }\r\n lastCallTime = timeStamp;\r\n }\r\n return proxy;\r\n }\n\n // Minimum delay before invoking the update of observers.\r\n var REFRESH_DELAY = 20;\r\n // A list of substrings of CSS properties used to find transition events that\r\n // might affect dimensions of observed elements.\r\n var transitionKeys = ['top', 'right', 'bottom', 'left', 'width', 'height', 'size', 'weight'];\r\n // Check if MutationObserver is available.\r\n var mutationObserverSupported = typeof MutationObserver !== 'undefined';\r\n /**\r\n * Singleton controller class which handles updates of ResizeObserver instances.\r\n */\r\n var ResizeObserverController = /** @class */ (function () {\r\n /**\r\n * Creates a new instance of ResizeObserverController.\r\n *\r\n * @private\r\n */\r\n function ResizeObserverController() {\r\n /**\r\n * Indicates whether DOM listeners have been added.\r\n *\r\n * @private {boolean}\r\n */\r\n this.connected_ = false;\r\n /**\r\n * Tells that controller has subscribed for Mutation Events.\r\n *\r\n * @private {boolean}\r\n */\r\n this.mutationEventsAdded_ = false;\r\n /**\r\n * Keeps reference to the instance of MutationObserver.\r\n *\r\n * @private {MutationObserver}\r\n */\r\n this.mutationsObserver_ = null;\r\n /**\r\n * A list of connected observers.\r\n *\r\n * @private {Array}\r\n */\r\n this.observers_ = [];\r\n this.onTransitionEnd_ = this.onTransitionEnd_.bind(this);\r\n this.refresh = throttle(this.refresh.bind(this), REFRESH_DELAY);\r\n }\r\n /**\r\n * Adds observer to observers list.\r\n *\r\n * @param {ResizeObserverSPI} observer - Observer to be added.\r\n * @returns {void}\r\n */\r\n ResizeObserverController.prototype.addObserver = function (observer) {\r\n if (!~this.observers_.indexOf(observer)) {\r\n this.observers_.push(observer);\r\n }\r\n // Add listeners if they haven't been added yet.\r\n if (!this.connected_) {\r\n this.connect_();\r\n }\r\n };\r\n /**\r\n * Removes observer from observers list.\r\n *\r\n * @param {ResizeObserverSPI} observer - Observer to be removed.\r\n * @returns {void}\r\n */\r\n ResizeObserverController.prototype.removeObserver = function (observer) {\r\n var observers = this.observers_;\r\n var index = observers.indexOf(observer);\r\n // Remove observer if it's present in registry.\r\n if (~index) {\r\n observers.splice(index, 1);\r\n }\r\n // Remove listeners if controller has no connected observers.\r\n if (!observers.length && this.connected_) {\r\n this.disconnect_();\r\n }\r\n };\r\n /**\r\n * Invokes the update of observers. It will continue running updates insofar\r\n * it detects changes.\r\n *\r\n * @returns {void}\r\n */\r\n ResizeObserverController.prototype.refresh = function () {\r\n var changesDetected = this.updateObservers_();\r\n // Continue running updates if changes have been detected as there might\r\n // be future ones caused by CSS transitions.\r\n if (changesDetected) {\r\n this.refresh();\r\n }\r\n };\r\n /**\r\n * Updates every observer from observers list and notifies them of queued\r\n * entries.\r\n *\r\n * @private\r\n * @returns {boolean} Returns \"true\" if any observer has detected changes in\r\n * dimensions of it's elements.\r\n */\r\n ResizeObserverController.prototype.updateObservers_ = function () {\r\n // Collect observers that have active observations.\r\n var activeObservers = this.observers_.filter(function (observer) {\r\n return observer.gatherActive(), observer.hasActive();\r\n });\r\n // Deliver notifications in a separate cycle in order to avoid any\r\n // collisions between observers, e.g. when multiple instances of\r\n // ResizeObserver are tracking the same element and the callback of one\r\n // of them changes content dimensions of the observed target. Sometimes\r\n // this may result in notifications being blocked for the rest of observers.\r\n activeObservers.forEach(function (observer) { return observer.broadcastActive(); });\r\n return activeObservers.length > 0;\r\n };\r\n /**\r\n * Initializes DOM listeners.\r\n *\r\n * @private\r\n * @returns {void}\r\n */\r\n ResizeObserverController.prototype.connect_ = function () {\r\n // Do nothing if running in a non-browser environment or if listeners\r\n // have been already added.\r\n if (!isBrowser || this.connected_) {\r\n return;\r\n }\r\n // Subscription to the \"Transitionend\" event is used as a workaround for\r\n // delayed transitions. This way it's possible to capture at least the\r\n // final state of an element.\r\n document.addEventListener('transitionend', this.onTransitionEnd_);\r\n window.addEventListener('resize', this.refresh);\r\n if (mutationObserverSupported) {\r\n this.mutationsObserver_ = new MutationObserver(this.refresh);\r\n this.mutationsObserver_.observe(document, {\r\n attributes: true,\r\n childList: true,\r\n characterData: true,\r\n subtree: true\r\n });\r\n }\r\n else {\r\n document.addEventListener('DOMSubtreeModified', this.refresh);\r\n this.mutationEventsAdded_ = true;\r\n }\r\n this.connected_ = true;\r\n };\r\n /**\r\n * Removes DOM listeners.\r\n *\r\n * @private\r\n * @returns {void}\r\n */\r\n ResizeObserverController.prototype.disconnect_ = function () {\r\n // Do nothing if running in a non-browser environment or if listeners\r\n // have been already removed.\r\n if (!isBrowser || !this.connected_) {\r\n return;\r\n }\r\n document.removeEventListener('transitionend', this.onTransitionEnd_);\r\n window.removeEventListener('resize', this.refresh);\r\n if (this.mutationsObserver_) {\r\n this.mutationsObserver_.disconnect();\r\n }\r\n if (this.mutationEventsAdded_) {\r\n document.removeEventListener('DOMSubtreeModified', this.refresh);\r\n }\r\n this.mutationsObserver_ = null;\r\n this.mutationEventsAdded_ = false;\r\n this.connected_ = false;\r\n };\r\n /**\r\n * \"Transitionend\" event handler.\r\n *\r\n * @private\r\n * @param {TransitionEvent} event\r\n * @returns {void}\r\n */\r\n ResizeObserverController.prototype.onTransitionEnd_ = function (_a) {\r\n var _b = _a.propertyName, propertyName = _b === void 0 ? '' : _b;\r\n // Detect whether transition may affect dimensions of an element.\r\n var isReflowProperty = transitionKeys.some(function (key) {\r\n return !!~propertyName.indexOf(key);\r\n });\r\n if (isReflowProperty) {\r\n this.refresh();\r\n }\r\n };\r\n /**\r\n * Returns instance of the ResizeObserverController.\r\n *\r\n * @returns {ResizeObserverController}\r\n */\r\n ResizeObserverController.getInstance = function () {\r\n if (!this.instance_) {\r\n this.instance_ = new ResizeObserverController();\r\n }\r\n return this.instance_;\r\n };\r\n /**\r\n * Holds reference to the controller's instance.\r\n *\r\n * @private {ResizeObserverController}\r\n */\r\n ResizeObserverController.instance_ = null;\r\n return ResizeObserverController;\r\n }());\n\n /**\r\n * Defines non-writable/enumerable properties of the provided target object.\r\n *\r\n * @param {Object} target - Object for which to define properties.\r\n * @param {Object} props - Properties to be defined.\r\n * @returns {Object} Target object.\r\n */\r\n var defineConfigurable = (function (target, props) {\r\n for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {\r\n var key = _a[_i];\r\n Object.defineProperty(target, key, {\r\n value: props[key],\r\n enumerable: false,\r\n writable: false,\r\n configurable: true\r\n });\r\n }\r\n return target;\r\n });\n\n /**\r\n * Returns the global object associated with provided element.\r\n *\r\n * @param {Object} target\r\n * @returns {Object}\r\n */\r\n var getWindowOf = (function (target) {\r\n // Assume that the element is an instance of Node, which means that it\r\n // has the \"ownerDocument\" property from which we can retrieve a\r\n // corresponding global object.\r\n var ownerGlobal = target && target.ownerDocument && target.ownerDocument.defaultView;\r\n // Return the local global object if it's not possible extract one from\r\n // provided element.\r\n return ownerGlobal || global$1;\r\n });\n\n // Placeholder of an empty content rectangle.\r\n var emptyRect = createRectInit(0, 0, 0, 0);\r\n /**\r\n * Converts provided string to a number.\r\n *\r\n * @param {number|string} value\r\n * @returns {number}\r\n */\r\n function toFloat(value) {\r\n return parseFloat(value) || 0;\r\n }\r\n /**\r\n * Extracts borders size from provided styles.\r\n *\r\n * @param {CSSStyleDeclaration} styles\r\n * @param {...string} positions - Borders positions (top, right, ...)\r\n * @returns {number}\r\n */\r\n function getBordersSize(styles) {\r\n var positions = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n positions[_i - 1] = arguments[_i];\r\n }\r\n return positions.reduce(function (size, position) {\r\n var value = styles['border-' + position + '-width'];\r\n return size + toFloat(value);\r\n }, 0);\r\n }\r\n /**\r\n * Extracts paddings sizes from provided styles.\r\n *\r\n * @param {CSSStyleDeclaration} styles\r\n * @returns {Object} Paddings box.\r\n */\r\n function getPaddings(styles) {\r\n var positions = ['top', 'right', 'bottom', 'left'];\r\n var paddings = {};\r\n for (var _i = 0, positions_1 = positions; _i < positions_1.length; _i++) {\r\n var position = positions_1[_i];\r\n var value = styles['padding-' + position];\r\n paddings[position] = toFloat(value);\r\n }\r\n return paddings;\r\n }\r\n /**\r\n * Calculates content rectangle of provided SVG element.\r\n *\r\n * @param {SVGGraphicsElement} target - Element content rectangle of which needs\r\n * to be calculated.\r\n * @returns {DOMRectInit}\r\n */\r\n function getSVGContentRect(target) {\r\n var bbox = target.getBBox();\r\n return createRectInit(0, 0, bbox.width, bbox.height);\r\n }\r\n /**\r\n * Calculates content rectangle of provided HTMLElement.\r\n *\r\n * @param {HTMLElement} target - Element for which to calculate the content rectangle.\r\n * @returns {DOMRectInit}\r\n */\r\n function getHTMLElementContentRect(target) {\r\n // Client width & height properties can't be\r\n // used exclusively as they provide rounded values.\r\n var clientWidth = target.clientWidth, clientHeight = target.clientHeight;\r\n // By this condition we can catch all non-replaced inline, hidden and\r\n // detached elements. Though elements with width & height properties less\r\n // than 0.5 will be discarded as well.\r\n //\r\n // Without it we would need to implement separate methods for each of\r\n // those cases and it's not possible to perform a precise and performance\r\n // effective test for hidden elements. E.g. even jQuery's ':visible' filter\r\n // gives wrong results for elements with width & height less than 0.5.\r\n if (!clientWidth && !clientHeight) {\r\n return emptyRect;\r\n }\r\n var styles = getWindowOf(target).getComputedStyle(target);\r\n var paddings = getPaddings(styles);\r\n var horizPad = paddings.left + paddings.right;\r\n var vertPad = paddings.top + paddings.bottom;\r\n // Computed styles of width & height are being used because they are the\r\n // only dimensions available to JS that contain non-rounded values. It could\r\n // be possible to utilize the getBoundingClientRect if only it's data wasn't\r\n // affected by CSS transformations let alone paddings, borders and scroll bars.\r\n var width = toFloat(styles.width), height = toFloat(styles.height);\r\n // Width & height include paddings and borders when the 'border-box' box\r\n // model is applied (except for IE).\r\n if (styles.boxSizing === 'border-box') {\r\n // Following conditions are required to handle Internet Explorer which\r\n // doesn't include paddings and borders to computed CSS dimensions.\r\n //\r\n // We can say that if CSS dimensions + paddings are equal to the \"client\"\r\n // properties then it's either IE, and thus we don't need to subtract\r\n // anything, or an element merely doesn't have paddings/borders styles.\r\n if (Math.round(width + horizPad) !== clientWidth) {\r\n width -= getBordersSize(styles, 'left', 'right') + horizPad;\r\n }\r\n if (Math.round(height + vertPad) !== clientHeight) {\r\n height -= getBordersSize(styles, 'top', 'bottom') + vertPad;\r\n }\r\n }\r\n // Following steps can't be applied to the document's root element as its\r\n // client[Width/Height] properties represent viewport area of the window.\r\n // Besides, it's as well not necessary as the itself neither has\r\n // rendered scroll bars nor it can be clipped.\r\n if (!isDocumentElement(target)) {\r\n // In some browsers (only in Firefox, actually) CSS width & height\r\n // include scroll bars size which can be removed at this step as scroll\r\n // bars are the only difference between rounded dimensions + paddings\r\n // and \"client\" properties, though that is not always true in Chrome.\r\n var vertScrollbar = Math.round(width + horizPad) - clientWidth;\r\n var horizScrollbar = Math.round(height + vertPad) - clientHeight;\r\n // Chrome has a rather weird rounding of \"client\" properties.\r\n // E.g. for an element with content width of 314.2px it sometimes gives\r\n // the client width of 315px and for the width of 314.7px it may give\r\n // 314px. And it doesn't happen all the time. So just ignore this delta\r\n // as a non-relevant.\r\n if (Math.abs(vertScrollbar) !== 1) {\r\n width -= vertScrollbar;\r\n }\r\n if (Math.abs(horizScrollbar) !== 1) {\r\n height -= horizScrollbar;\r\n }\r\n }\r\n return createRectInit(paddings.left, paddings.top, width, height);\r\n }\r\n /**\r\n * Checks whether provided element is an instance of the SVGGraphicsElement.\r\n *\r\n * @param {Element} target - Element to be checked.\r\n * @returns {boolean}\r\n */\r\n var isSVGGraphicsElement = (function () {\r\n // Some browsers, namely IE and Edge, don't have the SVGGraphicsElement\r\n // interface.\r\n if (typeof SVGGraphicsElement !== 'undefined') {\r\n return function (target) { return target instanceof getWindowOf(target).SVGGraphicsElement; };\r\n }\r\n // If it's so, then check that element is at least an instance of the\r\n // SVGElement and that it has the \"getBBox\" method.\r\n // eslint-disable-next-line no-extra-parens\r\n return function (target) { return (target instanceof getWindowOf(target).SVGElement &&\r\n typeof target.getBBox === 'function'); };\r\n })();\r\n /**\r\n * Checks whether provided element is a document element ().\r\n *\r\n * @param {Element} target - Element to be checked.\r\n * @returns {boolean}\r\n */\r\n function isDocumentElement(target) {\r\n return target === getWindowOf(target).document.documentElement;\r\n }\r\n /**\r\n * Calculates an appropriate content rectangle for provided html or svg element.\r\n *\r\n * @param {Element} target - Element content rectangle of which needs to be calculated.\r\n * @returns {DOMRectInit}\r\n */\r\n function getContentRect(target) {\r\n if (!isBrowser) {\r\n return emptyRect;\r\n }\r\n if (isSVGGraphicsElement(target)) {\r\n return getSVGContentRect(target);\r\n }\r\n return getHTMLElementContentRect(target);\r\n }\r\n /**\r\n * Creates rectangle with an interface of the DOMRectReadOnly.\r\n * Spec: https://drafts.fxtf.org/geometry/#domrectreadonly\r\n *\r\n * @param {DOMRectInit} rectInit - Object with rectangle's x/y coordinates and dimensions.\r\n * @returns {DOMRectReadOnly}\r\n */\r\n function createReadOnlyRect(_a) {\r\n var x = _a.x, y = _a.y, width = _a.width, height = _a.height;\r\n // If DOMRectReadOnly is available use it as a prototype for the rectangle.\r\n var Constr = typeof DOMRectReadOnly !== 'undefined' ? DOMRectReadOnly : Object;\r\n var rect = Object.create(Constr.prototype);\r\n // Rectangle's properties are not writable and non-enumerable.\r\n defineConfigurable(rect, {\r\n x: x, y: y, width: width, height: height,\r\n top: y,\r\n right: x + width,\r\n bottom: height + y,\r\n left: x\r\n });\r\n return rect;\r\n }\r\n /**\r\n * Creates DOMRectInit object based on the provided dimensions and the x/y coordinates.\r\n * Spec: https://drafts.fxtf.org/geometry/#dictdef-domrectinit\r\n *\r\n * @param {number} x - X coordinate.\r\n * @param {number} y - Y coordinate.\r\n * @param {number} width - Rectangle's width.\r\n * @param {number} height - Rectangle's height.\r\n * @returns {DOMRectInit}\r\n */\r\n function createRectInit(x, y, width, height) {\r\n return { x: x, y: y, width: width, height: height };\r\n }\n\n /**\r\n * Class that is responsible for computations of the content rectangle of\r\n * provided DOM element and for keeping track of it's changes.\r\n */\r\n var ResizeObservation = /** @class */ (function () {\r\n /**\r\n * Creates an instance of ResizeObservation.\r\n *\r\n * @param {Element} target - Element to be observed.\r\n */\r\n function ResizeObservation(target) {\r\n /**\r\n * Broadcasted width of content rectangle.\r\n *\r\n * @type {number}\r\n */\r\n this.broadcastWidth = 0;\r\n /**\r\n * Broadcasted height of content rectangle.\r\n *\r\n * @type {number}\r\n */\r\n this.broadcastHeight = 0;\r\n /**\r\n * Reference to the last observed content rectangle.\r\n *\r\n * @private {DOMRectInit}\r\n */\r\n this.contentRect_ = createRectInit(0, 0, 0, 0);\r\n this.target = target;\r\n }\r\n /**\r\n * Updates content rectangle and tells whether it's width or height properties\r\n * have changed since the last broadcast.\r\n *\r\n * @returns {boolean}\r\n */\r\n ResizeObservation.prototype.isActive = function () {\r\n var rect = getContentRect(this.target);\r\n this.contentRect_ = rect;\r\n return (rect.width !== this.broadcastWidth ||\r\n rect.height !== this.broadcastHeight);\r\n };\r\n /**\r\n * Updates 'broadcastWidth' and 'broadcastHeight' properties with a data\r\n * from the corresponding properties of the last observed content rectangle.\r\n *\r\n * @returns {DOMRectInit} Last observed content rectangle.\r\n */\r\n ResizeObservation.prototype.broadcastRect = function () {\r\n var rect = this.contentRect_;\r\n this.broadcastWidth = rect.width;\r\n this.broadcastHeight = rect.height;\r\n return rect;\r\n };\r\n return ResizeObservation;\r\n }());\n\n var ResizeObserverEntry = /** @class */ (function () {\r\n /**\r\n * Creates an instance of ResizeObserverEntry.\r\n *\r\n * @param {Element} target - Element that is being observed.\r\n * @param {DOMRectInit} rectInit - Data of the element's content rectangle.\r\n */\r\n function ResizeObserverEntry(target, rectInit) {\r\n var contentRect = createReadOnlyRect(rectInit);\r\n // According to the specification following properties are not writable\r\n // and are also not enumerable in the native implementation.\r\n //\r\n // Property accessors are not being used as they'd require to define a\r\n // private WeakMap storage which may cause memory leaks in browsers that\r\n // don't support this type of collections.\r\n defineConfigurable(this, { target: target, contentRect: contentRect });\r\n }\r\n return ResizeObserverEntry;\r\n }());\n\n var ResizeObserverSPI = /** @class */ (function () {\r\n /**\r\n * Creates a new instance of ResizeObserver.\r\n *\r\n * @param {ResizeObserverCallback} callback - Callback function that is invoked\r\n * when one of the observed elements changes it's content dimensions.\r\n * @param {ResizeObserverController} controller - Controller instance which\r\n * is responsible for the updates of observer.\r\n * @param {ResizeObserver} callbackCtx - Reference to the public\r\n * ResizeObserver instance which will be passed to callback function.\r\n */\r\n function ResizeObserverSPI(callback, controller, callbackCtx) {\r\n /**\r\n * Collection of resize observations that have detected changes in dimensions\r\n * of elements.\r\n *\r\n * @private {Array}\r\n */\r\n this.activeObservations_ = [];\r\n /**\r\n * Registry of the ResizeObservation instances.\r\n *\r\n * @private {Map}\r\n */\r\n this.observations_ = new MapShim();\r\n if (typeof callback !== 'function') {\r\n throw new TypeError('The callback provided as parameter 1 is not a function.');\r\n }\r\n this.callback_ = callback;\r\n this.controller_ = controller;\r\n this.callbackCtx_ = callbackCtx;\r\n }\r\n /**\r\n * Starts observing provided element.\r\n *\r\n * @param {Element} target - Element to be observed.\r\n * @returns {void}\r\n */\r\n ResizeObserverSPI.prototype.observe = function (target) {\r\n if (!arguments.length) {\r\n throw new TypeError('1 argument required, but only 0 present.');\r\n }\r\n // Do nothing if current environment doesn't have the Element interface.\r\n if (typeof Element === 'undefined' || !(Element instanceof Object)) {\r\n return;\r\n }\r\n if (!(target instanceof getWindowOf(target).Element)) {\r\n throw new TypeError('parameter 1 is not of type \"Element\".');\r\n }\r\n var observations = this.observations_;\r\n // Do nothing if element is already being observed.\r\n if (observations.has(target)) {\r\n return;\r\n }\r\n observations.set(target, new ResizeObservation(target));\r\n this.controller_.addObserver(this);\r\n // Force the update of observations.\r\n this.controller_.refresh();\r\n };\r\n /**\r\n * Stops observing provided element.\r\n *\r\n * @param {Element} target - Element to stop observing.\r\n * @returns {void}\r\n */\r\n ResizeObserverSPI.prototype.unobserve = function (target) {\r\n if (!arguments.length) {\r\n throw new TypeError('1 argument required, but only 0 present.');\r\n }\r\n // Do nothing if current environment doesn't have the Element interface.\r\n if (typeof Element === 'undefined' || !(Element instanceof Object)) {\r\n return;\r\n }\r\n if (!(target instanceof getWindowOf(target).Element)) {\r\n throw new TypeError('parameter 1 is not of type \"Element\".');\r\n }\r\n var observations = this.observations_;\r\n // Do nothing if element is not being observed.\r\n if (!observations.has(target)) {\r\n return;\r\n }\r\n observations.delete(target);\r\n if (!observations.size) {\r\n this.controller_.removeObserver(this);\r\n }\r\n };\r\n /**\r\n * Stops observing all elements.\r\n *\r\n * @returns {void}\r\n */\r\n ResizeObserverSPI.prototype.disconnect = function () {\r\n this.clearActive();\r\n this.observations_.clear();\r\n this.controller_.removeObserver(this);\r\n };\r\n /**\r\n * Collects observation instances the associated element of which has changed\r\n * it's content rectangle.\r\n *\r\n * @returns {void}\r\n */\r\n ResizeObserverSPI.prototype.gatherActive = function () {\r\n var _this = this;\r\n this.clearActive();\r\n this.observations_.forEach(function (observation) {\r\n if (observation.isActive()) {\r\n _this.activeObservations_.push(observation);\r\n }\r\n });\r\n };\r\n /**\r\n * Invokes initial callback function with a list of ResizeObserverEntry\r\n * instances collected from active resize observations.\r\n *\r\n * @returns {void}\r\n */\r\n ResizeObserverSPI.prototype.broadcastActive = function () {\r\n // Do nothing if observer doesn't have active observations.\r\n if (!this.hasActive()) {\r\n return;\r\n }\r\n var ctx = this.callbackCtx_;\r\n // Create ResizeObserverEntry instance for every active observation.\r\n var entries = this.activeObservations_.map(function (observation) {\r\n return new ResizeObserverEntry(observation.target, observation.broadcastRect());\r\n });\r\n this.callback_.call(ctx, entries, ctx);\r\n this.clearActive();\r\n };\r\n /**\r\n * Clears the collection of active observations.\r\n *\r\n * @returns {void}\r\n */\r\n ResizeObserverSPI.prototype.clearActive = function () {\r\n this.activeObservations_.splice(0);\r\n };\r\n /**\r\n * Tells whether observer has active observations.\r\n *\r\n * @returns {boolean}\r\n */\r\n ResizeObserverSPI.prototype.hasActive = function () {\r\n return this.activeObservations_.length > 0;\r\n };\r\n return ResizeObserverSPI;\r\n }());\n\n // Registry of internal observers. If WeakMap is not available use current shim\r\n // for the Map collection as it has all required methods and because WeakMap\r\n // can't be fully polyfilled anyway.\r\n var observers = typeof WeakMap !== 'undefined' ? new WeakMap() : new MapShim();\r\n /**\r\n * ResizeObserver API. Encapsulates the ResizeObserver SPI implementation\r\n * exposing only those methods and properties that are defined in the spec.\r\n */\r\n var ResizeObserver = /** @class */ (function () {\r\n /**\r\n * Creates a new instance of ResizeObserver.\r\n *\r\n * @param {ResizeObserverCallback} callback - Callback that is invoked when\r\n * dimensions of the observed elements change.\r\n */\r\n function ResizeObserver(callback) {\r\n if (!(this instanceof ResizeObserver)) {\r\n throw new TypeError('Cannot call a class as a function.');\r\n }\r\n if (!arguments.length) {\r\n throw new TypeError('1 argument required, but only 0 present.');\r\n }\r\n var controller = ResizeObserverController.getInstance();\r\n var observer = new ResizeObserverSPI(callback, controller, this);\r\n observers.set(this, observer);\r\n }\r\n return ResizeObserver;\r\n }());\r\n // Expose public methods of ResizeObserver.\r\n [\r\n 'observe',\r\n 'unobserve',\r\n 'disconnect'\r\n ].forEach(function (method) {\r\n ResizeObserver.prototype[method] = function () {\r\n var _a;\r\n return (_a = observers.get(this))[method].apply(_a, arguments);\r\n };\r\n });\n\n var index = (function () {\r\n // Export existing implementation if available.\r\n if (typeof global$1.ResizeObserver !== 'undefined') {\r\n return global$1.ResizeObserver;\r\n }\r\n return ResizeObserver;\r\n })();\n\n return index;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/resize-observer-polyfill/dist/ResizeObserver.js\n// module id = 313\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.SubMenu = undefined;\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; /**\n * This source code is quoted from rc-menu.\n * homepage: https://github.com/react-component/menu\n */\n\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = require('react-dom');\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _rcTrigger = require('rc-trigger');\n\nvar _rcTrigger2 = _interopRequireDefault(_rcTrigger);\n\nvar _tinperBeeCore = require('tinper-bee-core');\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _miniStore = require('mini-store');\n\nvar _SubPopupMenu = require('./SubPopupMenu');\n\nvar _SubPopupMenu2 = _interopRequireDefault(_SubPopupMenu);\n\nvar _placements = require('./placements');\n\nvar _placements2 = _interopRequireDefault(_placements);\n\nvar _rcAnimate = require('rc-animate');\n\nvar _rcAnimate2 = _interopRequireDefault(_rcAnimate);\n\nvar _util = require('./util');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar guid = 0;\n\nvar popupPlacementMap = {\n horizontal: 'bottomLeft',\n vertical: 'rightTop',\n 'vertical-left': 'rightTop',\n 'vertical-right': 'leftTop'\n};\n\nvar updateDefaultActiveFirst = function updateDefaultActiveFirst(store, eventKey, defaultActiveFirst) {\n var menuId = (0, _util.getMenuIdFromSubMenuEventKey)(eventKey);\n var state = store.getState();\n store.setState({\n defaultActiveFirst: _extends({}, state.defaultActiveFirst, _defineProperty({}, menuId, defaultActiveFirst))\n });\n};\n\nvar SubMenu = exports.SubMenu = function (_React$Component) {\n _inherits(SubMenu, _React$Component);\n\n function SubMenu(props) {\n _classCallCheck(this, SubMenu);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));\n\n _initialiseProps.call(_this);\n\n var store = props.store;\n var eventKey = props.eventKey;\n var defaultActiveFirst = store.getState().defaultActiveFirst;\n\n _this.isRootMenu = false;\n\n var value = false;\n\n if (defaultActiveFirst) {\n value = defaultActiveFirst[eventKey];\n }\n\n updateDefaultActiveFirst(store, eventKey, value);\n return _this;\n }\n\n SubMenu.prototype.componentDidMount = function componentDidMount() {\n this.componentDidUpdate();\n };\n\n SubMenu.prototype.componentDidUpdate = function componentDidUpdate() {\n var _props = this.props,\n mode = _props.mode,\n parentMenu = _props.parentMenu,\n manualRef = _props.manualRef;\n\n // invoke customized ref to expose component to mixin\n\n if (manualRef) {\n manualRef(this);\n }\n\n if (mode !== 'horizontal' || !parentMenu.isRootMenu || !this.props.isOpen) {\n return;\n }\n\n // this.minWidthTimeout = setTimeout(() => this.adjustWidth(), 0);\n this.adjustWidth();\n };\n\n SubMenu.prototype.componentWillUnmount = function componentWillUnmount() {\n var _props2 = this.props,\n onDestroy = _props2.onDestroy,\n eventKey = _props2.eventKey;\n\n if (onDestroy) {\n onDestroy(eventKey);\n }\n\n /* istanbul ignore if */\n /* if (this.minWidthTimeout) {\n clearTimeout(this.minWidthTimeout);\n }*/\n\n /* istanbul ignore if */\n if (this.mouseenterTimeout) {\n clearTimeout(this.mouseenterTimeout);\n }\n };\n\n SubMenu.prototype.renderChildren = function renderChildren(children) {\n var props = this.props;\n var baseProps = {\n mode: props.mode === 'horizontal' ? 'vertical' : props.mode,\n visible: this.props.isOpen,\n level: props.level + 1,\n inlineIndent: props.inlineIndent,\n focusable: false,\n onClick: this.onSubMenuClick,\n onSelect: this.onSelect,\n onDeselect: this.onDeselect,\n onDestroy: this.onDestroy,\n selectedKeys: props.selectedKeys,\n eventKey: props.eventKey + '-menu-',\n openKeys: props.openKeys,\n openTransitionName: props.openTransitionName,\n openAnimation: props.openAnimation,\n onOpenChange: this.onOpenChange,\n subMenuOpenDelay: props.subMenuOpenDelay,\n parentMenu: this,\n subMenuCloseDelay: props.subMenuCloseDelay,\n forceSubMenuRender: props.forceSubMenuRender,\n triggerSubMenuAction: props.triggerSubMenuAction,\n builtinPlacements: props.builtinPlacements,\n defaultActiveFirst: props.store.getState().defaultActiveFirst[(0, _util.getMenuIdFromSubMenuEventKey)(props.eventKey)],\n multiple: props.multiple,\n prefixCls: props.rootPrefixCls,\n id: this._menuId,\n manualRef: this.saveMenuInstance,\n itemIcon: props.itemIcon,\n expandIcon: props.expandIcon\n };\n\n var haveRendered = this.haveRendered;\n this.haveRendered = true;\n\n this.haveOpened = this.haveOpened || baseProps.visible || baseProps.forceSubMenuRender;\n // never rendered not planning to, don't render\n if (!this.haveOpened) {\n return _react2[\"default\"].createElement('div', null);\n }\n\n // don't show transition on first rendering (no animation for opened menu)\n // show appear transition if it's not visible (not sure why)\n // show appear transition if it's not inline mode\n var transitionAppear = haveRendered || !baseProps.visible || !baseProps.mode === 'inline';\n\n baseProps.className = ' ' + baseProps.prefixCls + '-sub';\n var animProps = {};\n\n if (baseProps.openTransitionName) {\n animProps.transitionName = baseProps.openTransitionName;\n } else if (_typeof(baseProps.openAnimation) === 'object') {\n animProps.animation = _extends({}, baseProps.openAnimation);\n if (!transitionAppear) {\n delete animProps.animation.appear;\n }\n }\n\n return _react2[\"default\"].createElement(\n _rcAnimate2[\"default\"],\n _extends({}, animProps, {\n showProp: 'visible',\n component: '',\n transitionAppear: transitionAppear\n }),\n _react2[\"default\"].createElement(\n _SubPopupMenu2[\"default\"],\n _extends({}, baseProps, { id: this._menuId }),\n children\n )\n );\n };\n\n SubMenu.prototype.render = function render() {\n var _classNames;\n\n var props = _extends({}, this.props);\n var isOpen = props.isOpen;\n var prefixCls = this.getPrefixCls();\n var isInlineMode = props.mode === 'inline';\n var className = (0, _classnames2[\"default\"])(prefixCls, prefixCls + '-' + props.mode, (_classNames = {}, _defineProperty(_classNames, props.className, !!props.className), _defineProperty(_classNames, this.getOpenClassName(), isOpen), _defineProperty(_classNames, this.getActiveClassName(), props.active || isOpen && !isInlineMode), _defineProperty(_classNames, this.getDisabledClassName(), props.disabled), _defineProperty(_classNames, this.getSelectedClassName(), this.isChildrenSelected()), _classNames));\n\n if (!this._menuId) {\n if (props.eventKey) {\n this._menuId = props.eventKey + '$Menu';\n } else {\n this._menuId = '$__$' + ++guid + '$Menu';\n }\n }\n\n var mouseEvents = {};\n var titleClickEvents = {};\n var titleMouseEvents = {};\n if (!props.disabled) {\n mouseEvents = {\n onMouseLeave: this.onMouseLeave,\n onMouseEnter: this.onMouseEnter\n };\n\n // only works in title, not outer li\n titleClickEvents = {\n onClick: this.onTitleClick\n };\n titleMouseEvents = {\n onMouseEnter: this.onTitleMouseEnter,\n onMouseLeave: this.onTitleMouseLeave\n };\n }\n\n var style = {};\n if (isInlineMode) {\n style.paddingLeft = props.inlineIndent * props.level;\n }\n\n var ariaOwns = {};\n // only set aria-owns when menu is open\n // otherwise it would be an invalid aria-owns value\n // since corresponding node cannot be found\n if (this.props.isOpen) {\n ariaOwns = {\n 'aria-owns': this._menuId\n };\n }\n\n // expand custom icon should NOT be displayed in menu with horizontal mode.\n var icon = null;\n if (props.mode !== 'horizontal') {\n icon = this.props.expandIcon; // ReactNode\n if (typeof this.props.expandIcon === 'function') {\n icon = _react2[\"default\"].createElement(this.props.expandIcon, _extends({}, this.props));\n }\n }\n\n var title = _react2[\"default\"].createElement(\n 'div',\n _extends({\n ref: this.saveSubMenuTitle,\n style: style,\n className: prefixCls + '-title'\n }, titleMouseEvents, titleClickEvents, {\n 'aria-expanded': isOpen\n }, ariaOwns, {\n 'aria-haspopup': 'true',\n title: typeof props.title === 'string' ? props.title : undefined\n }),\n props.title,\n icon || _react2[\"default\"].createElement('i', { className: prefixCls + '-arrow' })\n );\n var children = this.renderChildren(props.children);\n\n var getPopupContainer = function getPopupContainer(triggerNode) {\n return triggerNode.parentNode;\n };\n var popupPlacement = popupPlacementMap[props.mode];\n var popupAlign = props.popupOffset ? { offset: props.popupOffset } : {};\n var popupClassName = props.mode === 'inline' ? '' : props.popupClassName;\n var disabled = props.disabled,\n triggerSubMenuAction = props.triggerSubMenuAction,\n subMenuOpenDelay = props.subMenuOpenDelay,\n forceSubMenuRender = props.forceSubMenuRender,\n subMenuCloseDelay = props.subMenuCloseDelay,\n builtinPlacements = props.builtinPlacements;\n\n _util.menuAllProps.forEach(function (key) {\n return delete props[key];\n });\n // Set onClick to null, to ignore propagated onClick event\n delete props.onClick;\n return _react2[\"default\"].createElement(\n 'li',\n _extends({}, props, mouseEvents, {\n className: className,\n role: 'menuitem'\n }),\n isInlineMode && title,\n isInlineMode && children,\n !isInlineMode && _react2[\"default\"].createElement(\n _rcTrigger2[\"default\"],\n {\n prefixCls: prefixCls,\n popupClassName: prefixCls + '-popup ' + popupClassName,\n getPopupContainer: getPopupContainer,\n builtinPlacements: _extends({}, _placements2[\"default\"], builtinPlacements),\n popupPlacement: this.props.mode == 'vertical' ? this.props.position || popupPlacement : popupPlacement,\n popupVisible: isOpen,\n popupAlign: popupAlign,\n popup: children,\n action: disabled ? [] : [triggerSubMenuAction],\n mouseEnterDelay: subMenuOpenDelay,\n mouseLeaveDelay: subMenuCloseDelay,\n onPopupVisibleChange: this.onPopupVisibleChange,\n forceRender: forceSubMenuRender\n },\n title\n )\n );\n };\n\n return SubMenu;\n}(_react2[\"default\"].Component);\n\nSubMenu.propTypes = {\n parentMenu: _propTypes2[\"default\"].object,\n title: _propTypes2[\"default\"].node,\n children: _propTypes2[\"default\"].any,\n selectedKeys: _propTypes2[\"default\"].array,\n openKeys: _propTypes2[\"default\"].array,\n onClick: _propTypes2[\"default\"].func,\n onOpenChange: _propTypes2[\"default\"].func,\n rootPrefixCls: _propTypes2[\"default\"].string,\n eventKey: _propTypes2[\"default\"].string,\n multiple: _propTypes2[\"default\"].bool,\n active: _propTypes2[\"default\"].bool, // TODO: remove\n onItemHover: _propTypes2[\"default\"].func,\n onSelect: _propTypes2[\"default\"].func,\n triggerSubMenuAction: _propTypes2[\"default\"].string,\n onDeselect: _propTypes2[\"default\"].func,\n onDestroy: _propTypes2[\"default\"].func,\n onMouseEnter: _propTypes2[\"default\"].func,\n onMouseLeave: _propTypes2[\"default\"].func,\n onTitleMouseEnter: _propTypes2[\"default\"].func,\n onTitleMouseLeave: _propTypes2[\"default\"].func,\n onTitleClick: _propTypes2[\"default\"].func,\n popupOffset: _propTypes2[\"default\"].array,\n isOpen: _propTypes2[\"default\"].bool,\n store: _propTypes2[\"default\"].object,\n mode: _propTypes2[\"default\"].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']),\n manualRef: _propTypes2[\"default\"].func,\n itemIcon: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].func, _propTypes2[\"default\"].node]),\n expandIcon: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].func, _propTypes2[\"default\"].node]),\n position: _propTypes2[\"default\"].oneOf(['bottomLeft', 'topLeft', 'leftTop', 'rightTop'])\n};\nSubMenu.defaultProps = {\n onMouseEnter: _util.noop,\n onMouseLeave: _util.noop,\n onTitleMouseEnter: _util.noop,\n onTitleMouseLeave: _util.noop,\n onTitleClick: _util.noop,\n manualRef: _util.noop,\n mode: 'vertical',\n title: ''\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this2 = this;\n\n this.onDestroy = function (key) {\n _this2.props.onDestroy(key);\n };\n\n this.onKeyDown = function (e) {\n var keyCode = e.keyCode;\n var menu = _this2.menuInstance;\n var _props3 = _this2.props,\n isOpen = _props3.isOpen,\n store = _props3.store;\n\n if (_this2.props.store.getState().keyboard) {\n //是否启用键盘操作\n if (keyCode === _tinperBeeCore.KeyCode.ENTER) {\n // this.onTitleClick(e);\n menu && menu.onKeyDown && menu.onKeyDown(e);\n updateDefaultActiveFirst(store, _this2.props.eventKey, true);\n return true;\n }\n\n if (keyCode === _tinperBeeCore.KeyCode.RIGHT) {\n if (isOpen) {\n menu.onKeyDown(e);\n } else {\n _this2.triggerOpenChange(true);\n // need to update current menu's defaultActiveFirst value\n updateDefaultActiveFirst(store, _this2.props.eventKey, true);\n }\n return true;\n }\n if (keyCode === _tinperBeeCore.KeyCode.LEFT) {\n var handled = void 0;\n if (isOpen) {\n handled = menu.onKeyDown(e);\n } else {\n return undefined;\n }\n if (!handled) {\n _this2.triggerOpenChange(false);\n handled = true;\n }\n return handled;\n }\n if (isOpen && (keyCode === _tinperBeeCore.KeyCode.UP || keyCode === _tinperBeeCore.KeyCode.DOWN)) {\n return menu.onKeyDown(e);\n }\n }\n };\n\n this.onOpenChange = function (e) {\n _this2.props.onOpenChange(e);\n };\n\n this.onPopupVisibleChange = function (visible) {\n _this2.triggerOpenChange(visible, visible ? 'mouseenter' : 'mouseleave');\n };\n\n this.onMouseEnter = function (e) {\n var _props4 = _this2.props,\n key = _props4.eventKey,\n onMouseEnter = _props4.onMouseEnter,\n store = _props4.store;\n\n updateDefaultActiveFirst(store, _this2.props.eventKey, false);\n onMouseEnter({\n key: key,\n domEvent: e\n });\n };\n\n this.onMouseLeave = function (e) {\n var _props5 = _this2.props,\n parentMenu = _props5.parentMenu,\n eventKey = _props5.eventKey,\n onMouseLeave = _props5.onMouseLeave;\n\n parentMenu.subMenuInstance = _this2;\n onMouseLeave({\n key: eventKey,\n domEvent: e\n });\n };\n\n this.onTitleMouseEnter = function (domEvent) {\n var _props6 = _this2.props,\n key = _props6.eventKey,\n onItemHover = _props6.onItemHover,\n onTitleMouseEnter = _props6.onTitleMouseEnter;\n\n onItemHover({\n key: key,\n hover: true\n });\n onTitleMouseEnter({\n key: key,\n domEvent: domEvent\n });\n };\n\n this.onTitleMouseLeave = function (e) {\n var _props7 = _this2.props,\n parentMenu = _props7.parentMenu,\n eventKey = _props7.eventKey,\n onItemHover = _props7.onItemHover,\n onTitleMouseLeave = _props7.onTitleMouseLeave;\n\n parentMenu.subMenuInstance = _this2;\n onItemHover({\n key: eventKey,\n hover: false\n });\n onTitleMouseLeave({\n key: eventKey,\n domEvent: e\n });\n };\n\n this.onTitleClick = function (e) {\n var props = _this2.props;\n\n props.onTitleClick({\n key: props.eventKey,\n domEvent: e\n });\n if (props.triggerSubMenuAction === 'hover') {\n return;\n }\n _this2.triggerOpenChange(!props.isOpen, 'click');\n updateDefaultActiveFirst(props.store, _this2.props.eventKey, false);\n };\n\n this.onSubMenuClick = function (info) {\n // in the case of overflowed submenu\n // onClick is not copied over\n if (typeof _this2.props.onClick === 'function') {\n _this2.props.onClick(_this2.addKeyPath(info));\n }\n };\n\n this.onSelect = function (info) {\n _this2.props.onSelect(info);\n };\n\n this.onDeselect = function (info) {\n _this2.props.onDeselect(info);\n };\n\n this.getPrefixCls = function () {\n return _this2.props.rootPrefixCls + '-submenu';\n };\n\n this.getActiveClassName = function () {\n return _this2.getPrefixCls() + '-active';\n };\n\n this.getDisabledClassName = function () {\n return _this2.getPrefixCls() + '-disabled';\n };\n\n this.getSelectedClassName = function () {\n return _this2.getPrefixCls() + '-selected';\n };\n\n this.getOpenClassName = function () {\n return _this2.props.rootPrefixCls + '-submenu-open';\n };\n\n this.saveMenuInstance = function (c) {\n // children menu instance\n _this2.menuInstance = c;\n };\n\n this.addKeyPath = function (info) {\n return _extends({}, info, {\n keyPath: (info.keyPath || []).concat(_this2.props.eventKey)\n });\n };\n\n this.triggerOpenChange = function (open, type) {\n var key = _this2.props.eventKey;\n var openChange = function openChange() {\n _this2.onOpenChange({\n key: key,\n item: _this2,\n trigger: type,\n open: open\n });\n };\n if (type === 'mouseenter') {\n // make sure mouseenter happen after other menu item's mouseleave\n _this2.mouseenterTimeout = setTimeout(function () {\n openChange();\n }, 0);\n } else {\n openChange();\n }\n };\n\n this.isChildrenSelected = function () {\n var ret = { find: false };\n (0, _util.loopMenuItemRecursively)(_this2.props.children, _this2.props.selectedKeys, ret);\n return ret.find;\n };\n\n this.isOpen = function () {\n return _this2.props.openKeys.indexOf(_this2.props.eventKey) !== -1;\n };\n\n this.adjustWidth = function () {\n /* istanbul ignore if */\n if (!_this2.subMenuTitle || !_this2.menuInstance) {\n return;\n }\n var popupMenu = _reactDom2[\"default\"].findDOMNode(_this2.menuInstance);\n if (popupMenu.offsetWidth >= _this2.subMenuTitle.offsetWidth) {\n return;\n }\n\n /* istanbul ignore next */\n popupMenu.style.minWidth = _this2.subMenuTitle.offsetWidth + 'px'; //bug是因为在这里加了一个minWidth\n };\n\n this.saveSubMenuTitle = function (subMenuTitle) {\n _this2.subMenuTitle = subMenuTitle;\n };\n};\n\nvar connected = (0, _miniStore.connect)(function (_ref, _ref2) {\n var openKeys = _ref.openKeys,\n activeKey = _ref.activeKey,\n selectedKeys = _ref.selectedKeys;\n var eventKey = _ref2.eventKey,\n subMenuKey = _ref2.subMenuKey;\n return {\n isOpen: openKeys.indexOf(eventKey) > -1,\n active: activeKey[subMenuKey] === eventKey,\n selectedKeys: selectedKeys\n };\n})(SubMenu);\n\nconnected.isSubMenu = true;\n\nexports[\"default\"] = connected;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-menus/build/SubMenu.js\n// module id = 314\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _reactDom = require('react-dom');\n\nvar _reactLifecyclesCompat = require('react-lifecycles-compat');\n\nvar _contains = require('rc-util/lib/Dom/contains');\n\nvar _contains2 = _interopRequireDefault(_contains);\n\nvar _addEventListener = require('rc-util/lib/Dom/addEventListener');\n\nvar _addEventListener2 = _interopRequireDefault(_addEventListener);\n\nvar _ContainerRender = require('rc-util/lib/ContainerRender');\n\nvar _ContainerRender2 = _interopRequireDefault(_ContainerRender);\n\nvar _Portal = require('rc-util/lib/Portal');\n\nvar _Portal2 = _interopRequireDefault(_Portal);\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _utils = require('./utils');\n\nvar _Popup = require('./Popup');\n\nvar _Popup2 = _interopRequireDefault(_Popup);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nfunction noop() {}\n\nfunction returnEmptyString() {\n return '';\n}\n\nfunction returnDocument() {\n return window.document;\n}\n\nvar ALL_HANDLERS = ['onClick', 'onMouseDown', 'onTouchStart', 'onMouseEnter', 'onMouseLeave', 'onFocus', 'onBlur', 'onContextMenu'];\n\nvar IS_REACT_16 = !!_reactDom.createPortal;\n\nvar contextTypes = {\n rcTrigger: _propTypes2['default'].shape({\n onPopupMouseDown: _propTypes2['default'].func\n })\n};\n\nvar Trigger = function (_React$Component) {\n (0, _inherits3['default'])(Trigger, _React$Component);\n\n function Trigger(props) {\n (0, _classCallCheck3['default'])(this, Trigger);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props));\n\n _initialiseProps.call(_this);\n\n var popupVisible = void 0;\n if ('popupVisible' in props) {\n popupVisible = !!props.popupVisible;\n } else {\n popupVisible = !!props.defaultPopupVisible;\n }\n\n _this.state = {\n prevPopupVisible: popupVisible,\n popupVisible: popupVisible\n };\n\n ALL_HANDLERS.forEach(function (h) {\n _this['fire' + h] = function (e) {\n _this.fireEvents(h, e);\n };\n });\n return _this;\n }\n\n Trigger.prototype.getChildContext = function getChildContext() {\n return {\n rcTrigger: {\n onPopupMouseDown: this.onPopupMouseDown\n }\n };\n };\n\n Trigger.prototype.componentDidMount = function componentDidMount() {\n this.componentDidUpdate({}, {\n popupVisible: this.state.popupVisible\n });\n };\n\n Trigger.prototype.componentDidUpdate = function componentDidUpdate(_, prevState) {\n var props = this.props;\n var state = this.state;\n var triggerAfterPopupVisibleChange = function triggerAfterPopupVisibleChange() {\n if (prevState.popupVisible !== state.popupVisible) {\n props.afterPopupVisibleChange(state.popupVisible);\n }\n };\n if (!IS_REACT_16) {\n this.renderComponent(null, triggerAfterPopupVisibleChange);\n }\n\n // We must listen to `mousedown` or `touchstart`, edge case:\n // https://github.com/ant-design/ant-design/issues/5804\n // https://github.com/react-component/calendar/issues/250\n // https://github.com/react-component/trigger/issues/50\n if (state.popupVisible) {\n var currentDocument = void 0;\n if (!this.clickOutsideHandler && (this.isClickToHide() || this.isContextMenuToShow())) {\n currentDocument = props.getDocument();\n this.clickOutsideHandler = (0, _addEventListener2['default'])(currentDocument, 'mousedown', this.onDocumentClick);\n }\n // always hide on mobile\n if (!this.touchOutsideHandler) {\n currentDocument = currentDocument || props.getDocument();\n this.touchOutsideHandler = (0, _addEventListener2['default'])(currentDocument, 'touchstart', this.onDocumentClick);\n }\n // close popup when trigger type contains 'onContextMenu' and document is scrolling.\n if (!this.contextMenuOutsideHandler1 && this.isContextMenuToShow()) {\n currentDocument = currentDocument || props.getDocument();\n this.contextMenuOutsideHandler1 = (0, _addEventListener2['default'])(currentDocument, 'scroll', this.onContextMenuClose);\n }\n // close popup when trigger type contains 'onContextMenu' and window is blur.\n if (!this.contextMenuOutsideHandler2 && this.isContextMenuToShow()) {\n this.contextMenuOutsideHandler2 = (0, _addEventListener2['default'])(window, 'blur', this.onContextMenuClose);\n }\n return;\n }\n\n this.clearOutsideHandler();\n };\n\n Trigger.prototype.componentWillUnmount = function componentWillUnmount() {\n this.clearDelayTimer();\n this.clearOutsideHandler();\n clearTimeout(this.mouseDownTimeout);\n };\n\n Trigger.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {\n var popupVisible = _ref.popupVisible;\n\n var newState = {};\n\n if (popupVisible !== undefined && prevState.popupVisible !== popupVisible) {\n newState.popupVisible = popupVisible;\n newState.prevPopupVisible = prevState.popupVisible;\n }\n\n return newState;\n };\n\n Trigger.prototype.getPopupDomNode = function getPopupDomNode() {\n // for test\n if (this._component && this._component.getPopupDomNode) {\n return this._component.getPopupDomNode();\n }\n return null;\n };\n\n Trigger.prototype.getPopupAlign = function getPopupAlign() {\n var props = this.props;\n var popupPlacement = props.popupPlacement,\n popupAlign = props.popupAlign,\n builtinPlacements = props.builtinPlacements;\n\n if (popupPlacement && builtinPlacements) {\n return (0, _utils.getAlignFromPlacement)(builtinPlacements, popupPlacement, popupAlign);\n }\n return popupAlign;\n };\n\n /**\n * @param popupVisible Show or not the popup element\n * @param event SyntheticEvent, used for `pointAlign`\n */\n Trigger.prototype.setPopupVisible = function setPopupVisible(popupVisible, event) {\n var alignPoint = this.props.alignPoint;\n var prevPopupVisible = this.state.popupVisible;\n\n\n this.clearDelayTimer();\n\n if (prevPopupVisible !== popupVisible) {\n if (!('popupVisible' in this.props)) {\n this.setState({ popupVisible: popupVisible, prevPopupVisible: prevPopupVisible });\n }\n this.props.onPopupVisibleChange(popupVisible);\n }\n\n // Always record the point position since mouseEnterDelay will delay the show\n if (alignPoint && event) {\n this.setPoint(event);\n }\n };\n\n Trigger.prototype.delaySetPopupVisible = function delaySetPopupVisible(visible, delayS, event) {\n var _this2 = this;\n\n var delay = delayS * 1000;\n this.clearDelayTimer();\n if (delay) {\n var point = event ? { pageX: event.pageX, pageY: event.pageY } : null;\n this.delayTimer = setTimeout(function () {\n _this2.setPopupVisible(visible, point);\n _this2.clearDelayTimer();\n }, delay);\n } else {\n this.setPopupVisible(visible, event);\n }\n };\n\n Trigger.prototype.clearDelayTimer = function clearDelayTimer() {\n if (this.delayTimer) {\n clearTimeout(this.delayTimer);\n this.delayTimer = null;\n }\n };\n\n Trigger.prototype.clearOutsideHandler = function clearOutsideHandler() {\n if (this.clickOutsideHandler) {\n this.clickOutsideHandler.remove();\n this.clickOutsideHandler = null;\n }\n\n if (this.contextMenuOutsideHandler1) {\n this.contextMenuOutsideHandler1.remove();\n this.contextMenuOutsideHandler1 = null;\n }\n\n if (this.contextMenuOutsideHandler2) {\n this.contextMenuOutsideHandler2.remove();\n this.contextMenuOutsideHandler2 = null;\n }\n\n if (this.touchOutsideHandler) {\n this.touchOutsideHandler.remove();\n this.touchOutsideHandler = null;\n }\n };\n\n Trigger.prototype.createTwoChains = function createTwoChains(event) {\n var childPros = this.props.children.props;\n var props = this.props;\n if (childPros[event] && props[event]) {\n return this['fire' + event];\n }\n return childPros[event] || props[event];\n };\n\n Trigger.prototype.isClickToShow = function isClickToShow() {\n var _props = this.props,\n action = _props.action,\n showAction = _props.showAction;\n\n return action.indexOf('click') !== -1 || showAction.indexOf('click') !== -1;\n };\n\n Trigger.prototype.isContextMenuToShow = function isContextMenuToShow() {\n var _props2 = this.props,\n action = _props2.action,\n showAction = _props2.showAction;\n\n return action.indexOf('contextMenu') !== -1 || showAction.indexOf('contextMenu') !== -1;\n };\n\n Trigger.prototype.isClickToHide = function isClickToHide() {\n var _props3 = this.props,\n action = _props3.action,\n hideAction = _props3.hideAction;\n\n return action.indexOf('click') !== -1 || hideAction.indexOf('click') !== -1;\n };\n\n Trigger.prototype.isMouseEnterToShow = function isMouseEnterToShow() {\n var _props4 = this.props,\n action = _props4.action,\n showAction = _props4.showAction;\n\n return action.indexOf('hover') !== -1 || showAction.indexOf('mouseEnter') !== -1;\n };\n\n Trigger.prototype.isMouseLeaveToHide = function isMouseLeaveToHide() {\n var _props5 = this.props,\n action = _props5.action,\n hideAction = _props5.hideAction;\n\n return action.indexOf('hover') !== -1 || hideAction.indexOf('mouseLeave') !== -1;\n };\n\n Trigger.prototype.isFocusToShow = function isFocusToShow() {\n var _props6 = this.props,\n action = _props6.action,\n showAction = _props6.showAction;\n\n return action.indexOf('focus') !== -1 || showAction.indexOf('focus') !== -1;\n };\n\n Trigger.prototype.isBlurToHide = function isBlurToHide() {\n var _props7 = this.props,\n action = _props7.action,\n hideAction = _props7.hideAction;\n\n return action.indexOf('focus') !== -1 || hideAction.indexOf('blur') !== -1;\n };\n\n Trigger.prototype.forcePopupAlign = function forcePopupAlign() {\n if (this.state.popupVisible && this._component && this._component.alignInstance) {\n this._component.alignInstance.forceAlign();\n }\n };\n\n Trigger.prototype.fireEvents = function fireEvents(type, e) {\n var childCallback = this.props.children.props[type];\n if (childCallback) {\n childCallback(e);\n }\n var callback = this.props[type];\n if (callback) {\n callback(e);\n }\n };\n\n Trigger.prototype.close = function close() {\n this.setPopupVisible(false);\n };\n\n Trigger.prototype.render = function render() {\n var _this3 = this;\n\n var popupVisible = this.state.popupVisible;\n var _props8 = this.props,\n children = _props8.children,\n forceRender = _props8.forceRender,\n alignPoint = _props8.alignPoint,\n className = _props8.className;\n\n var child = _react2['default'].Children.only(children);\n var newChildProps = { key: 'trigger' };\n\n if (this.isContextMenuToShow()) {\n newChildProps.onContextMenu = this.onContextMenu;\n } else {\n newChildProps.onContextMenu = this.createTwoChains('onContextMenu');\n }\n\n if (this.isClickToHide() || this.isClickToShow()) {\n newChildProps.onClick = this.onClick;\n newChildProps.onMouseDown = this.onMouseDown;\n newChildProps.onTouchStart = this.onTouchStart;\n } else {\n newChildProps.onClick = this.createTwoChains('onClick');\n newChildProps.onMouseDown = this.createTwoChains('onMouseDown');\n newChildProps.onTouchStart = this.createTwoChains('onTouchStart');\n }\n if (this.isMouseEnterToShow()) {\n newChildProps.onMouseEnter = this.onMouseEnter;\n if (alignPoint) {\n newChildProps.onMouseMove = this.onMouseMove;\n }\n } else {\n newChildProps.onMouseEnter = this.createTwoChains('onMouseEnter');\n }\n if (this.isMouseLeaveToHide()) {\n newChildProps.onMouseLeave = this.onMouseLeave;\n } else {\n newChildProps.onMouseLeave = this.createTwoChains('onMouseLeave');\n }\n if (this.isFocusToShow() || this.isBlurToHide()) {\n newChildProps.onFocus = this.onFocus;\n newChildProps.onBlur = this.onBlur;\n } else {\n newChildProps.onFocus = this.createTwoChains('onFocus');\n newChildProps.onBlur = this.createTwoChains('onBlur');\n }\n\n var childrenClassName = (0, _classnames2['default'])(child && child.props && child.props.className, className);\n if (childrenClassName) {\n newChildProps.className = childrenClassName;\n }\n var trigger = _react2['default'].cloneElement(child, newChildProps);\n\n if (!IS_REACT_16) {\n return _react2['default'].createElement(\n _ContainerRender2['default'],\n {\n parent: this,\n visible: popupVisible,\n autoMount: false,\n forceRender: forceRender,\n getComponent: this.getComponent,\n getContainer: this.getContainer\n },\n function (_ref2) {\n var renderComponent = _ref2.renderComponent;\n\n _this3.renderComponent = renderComponent;\n return trigger;\n }\n );\n }\n\n var portal = void 0;\n // prevent unmounting after it's rendered\n if (popupVisible || this._component || forceRender) {\n portal = _react2['default'].createElement(\n _Portal2['default'],\n { key: 'portal', getContainer: this.getContainer, didUpdate: this.handlePortalUpdate },\n this.getComponent()\n );\n }\n\n return [trigger, portal];\n };\n\n return Trigger;\n}(_react2['default'].Component);\n\nTrigger.propTypes = {\n children: _propTypes2['default'].any,\n action: _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].arrayOf(_propTypes2['default'].string)]),\n showAction: _propTypes2['default'].any,\n hideAction: _propTypes2['default'].any,\n getPopupClassNameFromAlign: _propTypes2['default'].any,\n onPopupVisibleChange: _propTypes2['default'].func,\n afterPopupVisibleChange: _propTypes2['default'].func,\n popup: _propTypes2['default'].oneOfType([_propTypes2['default'].node, _propTypes2['default'].func]).isRequired,\n popupStyle: _propTypes2['default'].object,\n prefixCls: _propTypes2['default'].string,\n popupClassName: _propTypes2['default'].string,\n className: _propTypes2['default'].string,\n popupPlacement: _propTypes2['default'].string,\n builtinPlacements: _propTypes2['default'].object,\n popupTransitionName: _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].object]),\n popupAnimation: _propTypes2['default'].any,\n mouseEnterDelay: _propTypes2['default'].number,\n mouseLeaveDelay: _propTypes2['default'].number,\n zIndex: _propTypes2['default'].number,\n focusDelay: _propTypes2['default'].number,\n blurDelay: _propTypes2['default'].number,\n getPopupContainer: _propTypes2['default'].func,\n getDocument: _propTypes2['default'].func,\n forceRender: _propTypes2['default'].bool,\n destroyPopupOnHide: _propTypes2['default'].bool,\n mask: _propTypes2['default'].bool,\n maskClosable: _propTypes2['default'].bool,\n onPopupAlign: _propTypes2['default'].func,\n popupAlign: _propTypes2['default'].object,\n popupVisible: _propTypes2['default'].bool,\n defaultPopupVisible: _propTypes2['default'].bool,\n maskTransitionName: _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].object]),\n maskAnimation: _propTypes2['default'].string,\n stretch: _propTypes2['default'].string,\n alignPoint: _propTypes2['default'].bool // Maybe we can support user pass position in the future\n};\nTrigger.contextTypes = contextTypes;\nTrigger.childContextTypes = contextTypes;\nTrigger.defaultProps = {\n prefixCls: 'rc-trigger-popup',\n getPopupClassNameFromAlign: returnEmptyString,\n getDocument: returnDocument,\n onPopupVisibleChange: noop,\n afterPopupVisibleChange: noop,\n onPopupAlign: noop,\n popupClassName: '',\n mouseEnterDelay: 0,\n mouseLeaveDelay: 0.1,\n focusDelay: 0,\n blurDelay: 0.15,\n popupStyle: {},\n destroyPopupOnHide: false,\n popupAlign: {},\n defaultPopupVisible: false,\n mask: false,\n maskClosable: true,\n action: [],\n showAction: [],\n hideAction: []\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this4 = this;\n\n this.onMouseEnter = function (e) {\n var mouseEnterDelay = _this4.props.mouseEnterDelay;\n\n _this4.fireEvents('onMouseEnter', e);\n _this4.delaySetPopupVisible(true, mouseEnterDelay, mouseEnterDelay ? null : e);\n };\n\n this.onMouseMove = function (e) {\n _this4.fireEvents('onMouseMove', e);\n _this4.setPoint(e);\n };\n\n this.onMouseLeave = function (e) {\n _this4.fireEvents('onMouseLeave', e);\n _this4.delaySetPopupVisible(false, _this4.props.mouseLeaveDelay);\n };\n\n this.onPopupMouseEnter = function () {\n _this4.clearDelayTimer();\n };\n\n this.onPopupMouseLeave = function (e) {\n // https://github.com/react-component/trigger/pull/13\n // react bug?\n if (e.relatedTarget && !e.relatedTarget.setTimeout && _this4._component && _this4._component.getPopupDomNode && (0, _contains2['default'])(_this4._component.getPopupDomNode(), e.relatedTarget)) {\n return;\n }\n _this4.delaySetPopupVisible(false, _this4.props.mouseLeaveDelay);\n };\n\n this.onFocus = function (e) {\n _this4.fireEvents('onFocus', e);\n // incase focusin and focusout\n _this4.clearDelayTimer();\n if (_this4.isFocusToShow()) {\n _this4.focusTime = Date.now();\n _this4.delaySetPopupVisible(true, _this4.props.focusDelay);\n }\n };\n\n this.onMouseDown = function (e) {\n _this4.fireEvents('onMouseDown', e);\n _this4.preClickTime = Date.now();\n };\n\n this.onTouchStart = function (e) {\n _this4.fireEvents('onTouchStart', e);\n _this4.preTouchTime = Date.now();\n };\n\n this.onBlur = function (e) {\n _this4.fireEvents('onBlur', e);\n _this4.clearDelayTimer();\n if (_this4.isBlurToHide()) {\n _this4.delaySetPopupVisible(false, _this4.props.blurDelay);\n }\n };\n\n this.onContextMenu = function (e) {\n e.preventDefault();\n _this4.fireEvents('onContextMenu', e);\n _this4.setPopupVisible(true, e);\n };\n\n this.onContextMenuClose = function () {\n if (_this4.isContextMenuToShow()) {\n _this4.close();\n }\n };\n\n this.onClick = function (event) {\n _this4.fireEvents('onClick', event);\n // focus will trigger click\n if (_this4.focusTime) {\n var preTime = void 0;\n if (_this4.preClickTime && _this4.preTouchTime) {\n preTime = Math.min(_this4.preClickTime, _this4.preTouchTime);\n } else if (_this4.preClickTime) {\n preTime = _this4.preClickTime;\n } else if (_this4.preTouchTime) {\n preTime = _this4.preTouchTime;\n }\n if (Math.abs(preTime - _this4.focusTime) < 20) {\n return;\n }\n _this4.focusTime = 0;\n }\n _this4.preClickTime = 0;\n _this4.preTouchTime = 0;\n\n // Only prevent default when all the action is click.\n // https://github.com/ant-design/ant-design/issues/17043\n // https://github.com/ant-design/ant-design/issues/17291\n if (_this4.isClickToShow() && (_this4.isClickToHide() || _this4.isBlurToHide()) && event && event.preventDefault) {\n event.preventDefault();\n }\n var nextVisible = !_this4.state.popupVisible;\n if (_this4.isClickToHide() && !nextVisible || nextVisible && _this4.isClickToShow()) {\n _this4.setPopupVisible(!_this4.state.popupVisible, event);\n }\n };\n\n this.onPopupMouseDown = function () {\n var _context$rcTrigger = _this4.context.rcTrigger,\n rcTrigger = _context$rcTrigger === undefined ? {} : _context$rcTrigger;\n\n _this4.hasPopupMouseDown = true;\n\n clearTimeout(_this4.mouseDownTimeout);\n _this4.mouseDownTimeout = setTimeout(function () {\n _this4.hasPopupMouseDown = false;\n }, 0);\n\n if (rcTrigger.onPopupMouseDown) {\n rcTrigger.onPopupMouseDown.apply(rcTrigger, arguments);\n }\n };\n\n this.onDocumentClick = function (event) {\n if (_this4.props.mask && !_this4.props.maskClosable) {\n return;\n }\n\n var target = event.target;\n var root = (0, _reactDom.findDOMNode)(_this4);\n if (!(0, _contains2['default'])(root, target) && !_this4.hasPopupMouseDown) {\n _this4.close();\n }\n };\n\n this.getRootDomNode = function () {\n return (0, _reactDom.findDOMNode)(_this4);\n };\n\n this.getPopupClassNameFromAlign = function (align) {\n var className = [];\n var _props9 = _this4.props,\n popupPlacement = _props9.popupPlacement,\n builtinPlacements = _props9.builtinPlacements,\n prefixCls = _props9.prefixCls,\n alignPoint = _props9.alignPoint,\n getPopupClassNameFromAlign = _props9.getPopupClassNameFromAlign;\n\n if (popupPlacement && builtinPlacements) {\n className.push((0, _utils.getAlignPopupClassName)(builtinPlacements, prefixCls, align, alignPoint));\n }\n if (getPopupClassNameFromAlign) {\n className.push(getPopupClassNameFromAlign(align));\n }\n return className.join(' ');\n };\n\n this.getComponent = function () {\n var _props10 = _this4.props,\n prefixCls = _props10.prefixCls,\n destroyPopupOnHide = _props10.destroyPopupOnHide,\n popupClassName = _props10.popupClassName,\n action = _props10.action,\n onPopupAlign = _props10.onPopupAlign,\n popupAnimation = _props10.popupAnimation,\n popupTransitionName = _props10.popupTransitionName,\n popupStyle = _props10.popupStyle,\n mask = _props10.mask,\n maskAnimation = _props10.maskAnimation,\n maskTransitionName = _props10.maskTransitionName,\n zIndex = _props10.zIndex,\n popup = _props10.popup,\n stretch = _props10.stretch,\n alignPoint = _props10.alignPoint;\n var _state = _this4.state,\n popupVisible = _state.popupVisible,\n point = _state.point;\n\n\n var align = _this4.getPopupAlign();\n\n var mouseProps = {};\n if (_this4.isMouseEnterToShow()) {\n mouseProps.onMouseEnter = _this4.onPopupMouseEnter;\n }\n if (_this4.isMouseLeaveToHide()) {\n mouseProps.onMouseLeave = _this4.onPopupMouseLeave;\n }\n\n mouseProps.onMouseDown = _this4.onPopupMouseDown;\n mouseProps.onTouchStart = _this4.onPopupMouseDown;\n\n return _react2['default'].createElement(\n _Popup2['default'],\n (0, _extends3['default'])({\n prefixCls: prefixCls,\n destroyPopupOnHide: destroyPopupOnHide,\n visible: popupVisible,\n point: alignPoint && point,\n className: popupClassName,\n action: action,\n align: align,\n onAlign: onPopupAlign,\n animation: popupAnimation,\n getClassNameFromAlign: _this4.getPopupClassNameFromAlign\n }, mouseProps, {\n stretch: stretch,\n getRootDomNode: _this4.getRootDomNode,\n style: popupStyle,\n mask: mask,\n zIndex: zIndex,\n transitionName: popupTransitionName,\n maskAnimation: maskAnimation,\n maskTransitionName: maskTransitionName,\n ref: _this4.savePopup\n }),\n typeof popup === 'function' ? popup() : popup\n );\n };\n\n this.getContainer = function () {\n var props = _this4.props;\n\n var popupContainer = document.createElement('div');\n // Make sure default popup container will never cause scrollbar appearing\n // https://github.com/react-component/trigger/issues/41\n popupContainer.style.position = 'absolute';\n popupContainer.style.top = '0';\n popupContainer.style.left = '0';\n popupContainer.style.width = '100%';\n var mountNode = props.getPopupContainer ? props.getPopupContainer((0, _reactDom.findDOMNode)(_this4)) : props.getDocument().body;\n mountNode.appendChild(popupContainer);\n return popupContainer;\n };\n\n this.setPoint = function (point) {\n var alignPoint = _this4.props.alignPoint;\n\n if (!alignPoint || !point) return;\n\n _this4.setState({\n point: {\n pageX: point.pageX,\n pageY: point.pageY\n }\n });\n };\n\n this.handlePortalUpdate = function () {\n if (_this4.state.prevPopupVisible !== _this4.state.popupVisible) {\n _this4.props.afterPopupVisibleChange(_this4.state.popupVisible);\n }\n };\n\n this.savePopup = function (node) {\n _this4._component = node;\n };\n};\n\n(0, _reactLifecyclesCompat.polyfill)(Trigger);\n\nexports['default'] = Trigger;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rc-trigger/lib/index.js\n// module id = 315\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nvar _assign = require(\"../core-js/object/assign\");\n\nvar _assign2 = _interopRequireDefault(_assign);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = _assign2.default || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/babel-runtime/helpers/extends.js\n// module id = 316\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/object/assign\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/babel-runtime/core-js/object/assign.js\n// module id = 317\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nexports.default = function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/babel-runtime/helpers/classCallCheck.js\n// module id = 318\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nvar _typeof2 = require(\"../helpers/typeof\");\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && ((typeof call === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(call)) === \"object\" || typeof call === \"function\") ? call : self;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/babel-runtime/helpers/possibleConstructorReturn.js\n// module id = 319\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nvar _iterator = require(\"../core-js/symbol/iterator\");\n\nvar _iterator2 = _interopRequireDefault(_iterator);\n\nvar _symbol = require(\"../core-js/symbol\");\n\nvar _symbol2 = _interopRequireDefault(_symbol);\n\nvar _typeof = typeof _symbol2.default === \"function\" && typeof _iterator2.default === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? \"symbol\" : typeof obj; };\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = typeof _symbol2.default === \"function\" && _typeof(_iterator2.default) === \"symbol\" ? function (obj) {\n return typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n} : function (obj) {\n return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? \"symbol\" : typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/babel-runtime/helpers/typeof.js\n// module id = 320\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/symbol/iterator\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/babel-runtime/core-js/symbol/iterator.js\n// module id = 321\n// module chunks = 0","require('../../modules/es6.string.iterator');\nrequire('../../modules/web.dom.iterable');\nmodule.exports = require('../../modules/_wks-ext').f('iterator');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/fn/symbol/iterator.js\n// module id = 322\n// module chunks = 0","'use strict';\nvar $at = require('./_string-at')(true);\n\n// 21.1.3.27 String.prototype[@@iterator]()\nrequire('./_iter-define')(String, 'String', function (iterated) {\n this._t = String(iterated); // target\n this._i = 0; // next index\n// 21.1.5.2.1 %StringIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var index = this._i;\n var point;\n if (index >= O.length) return { value: undefined, done: true };\n point = $at(O, index);\n this._i += point.length;\n return { value: point, done: false };\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/es6.string.iterator.js\n// module id = 323\n// module chunks = 0","var toInteger = require('./_to-integer');\nvar defined = require('./_defined');\n// true -> String#at\n// false -> String#codePointAt\nmodule.exports = function (TO_STRING) {\n return function (that, pos) {\n var s = String(defined(that));\n var i = toInteger(pos);\n var l = s.length;\n var a, b;\n if (i < 0 || i >= l) return TO_STRING ? '' : undefined;\n a = s.charCodeAt(i);\n return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff\n ? TO_STRING ? s.charAt(i) : a\n : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_string-at.js\n// module id = 324\n// module chunks = 0","'use strict';\nvar LIBRARY = require('./_library');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar hide = require('./_hide');\nvar Iterators = require('./_iterators');\nvar $iterCreate = require('./_iter-create');\nvar setToStringTag = require('./_set-to-string-tag');\nvar getPrototypeOf = require('./_object-gpo');\nvar ITERATOR = require('./_wks')('iterator');\nvar BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`\nvar FF_ITERATOR = '@@iterator';\nvar KEYS = 'keys';\nvar VALUES = 'values';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {\n $iterCreate(Constructor, NAME, next);\n var getMethod = function (kind) {\n if (!BUGGY && kind in proto) return proto[kind];\n switch (kind) {\n case KEYS: return function keys() { return new Constructor(this, kind); };\n case VALUES: return function values() { return new Constructor(this, kind); };\n } return function entries() { return new Constructor(this, kind); };\n };\n var TAG = NAME + ' Iterator';\n var DEF_VALUES = DEFAULT == VALUES;\n var VALUES_BUG = false;\n var proto = Base.prototype;\n var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];\n var $default = $native || getMethod(DEFAULT);\n var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;\n var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;\n var methods, key, IteratorPrototype;\n // Fix native\n if ($anyNative) {\n IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));\n if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {\n // Set @@toStringTag to native iterators\n setToStringTag(IteratorPrototype, TAG, true);\n // fix for some old engines\n if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);\n }\n }\n // fix Array#{values, @@iterator}.name in V8 / FF\n if (DEF_VALUES && $native && $native.name !== VALUES) {\n VALUES_BUG = true;\n $default = function values() { return $native.call(this); };\n }\n // Define iterator\n if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {\n hide(proto, ITERATOR, $default);\n }\n // Plug for library\n Iterators[NAME] = $default;\n Iterators[TAG] = returnThis;\n if (DEFAULT) {\n methods = {\n values: DEF_VALUES ? $default : getMethod(VALUES),\n keys: IS_SET ? $default : getMethod(KEYS),\n entries: $entries\n };\n if (FORCED) for (key in methods) {\n if (!(key in proto)) redefine(proto, key, methods[key]);\n } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n }\n return methods;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_iter-define.js\n// module id = 325\n// module chunks = 0","module.exports = require('./_hide');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_redefine.js\n// module id = 326\n// module chunks = 0","module.exports = {};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_iterators.js\n// module id = 327\n// module chunks = 0","'use strict';\nvar create = require('./_object-create');\nvar descriptor = require('./_property-desc');\nvar setToStringTag = require('./_set-to-string-tag');\nvar IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\nrequire('./_hide')(IteratorPrototype, require('./_wks')('iterator'), function () { return this; });\n\nmodule.exports = function (Constructor, NAME, next) {\n Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });\n setToStringTag(Constructor, NAME + ' Iterator');\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_iter-create.js\n// module id = 328\n// module chunks = 0","var def = require('./_object-dp').f;\nvar has = require('./_has');\nvar TAG = require('./_wks')('toStringTag');\n\nmodule.exports = function (it, tag, stat) {\n if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_set-to-string-tag.js\n// module id = 329\n// module chunks = 0","var store = require('./_shared')('wks');\nvar uid = require('./_uid');\nvar Symbol = require('./_global').Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_wks.js\n// module id = 330\n// module chunks = 0","// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)\nvar has = require('./_has');\nvar toObject = require('./_to-object');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar ObjectProto = Object.prototype;\n\nmodule.exports = Object.getPrototypeOf || function (O) {\n O = toObject(O);\n if (has(O, IE_PROTO)) return O[IE_PROTO];\n if (typeof O.constructor == 'function' && O instanceof O.constructor) {\n return O.constructor.prototype;\n } return O instanceof Object ? ObjectProto : null;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_object-gpo.js\n// module id = 331\n// module chunks = 0","require('./es6.array.iterator');\nvar global = require('./_global');\nvar hide = require('./_hide');\nvar Iterators = require('./_iterators');\nvar TO_STRING_TAG = require('./_wks')('toStringTag');\n\nvar DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +\n 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +\n 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +\n 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +\n 'TextTrackList,TouchList').split(',');\n\nfor (var i = 0; i < DOMIterables.length; i++) {\n var NAME = DOMIterables[i];\n var Collection = global[NAME];\n var proto = Collection && Collection.prototype;\n if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);\n Iterators[NAME] = Iterators.Array;\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/web.dom.iterable.js\n// module id = 332\n// module chunks = 0","'use strict';\nvar addToUnscopables = require('./_add-to-unscopables');\nvar step = require('./_iter-step');\nvar Iterators = require('./_iterators');\nvar toIObject = require('./_to-iobject');\n\n// 22.1.3.4 Array.prototype.entries()\n// 22.1.3.13 Array.prototype.keys()\n// 22.1.3.29 Array.prototype.values()\n// 22.1.3.30 Array.prototype[@@iterator]()\nmodule.exports = require('./_iter-define')(Array, 'Array', function (iterated, kind) {\n this._t = toIObject(iterated); // target\n this._i = 0; // next index\n this._k = kind; // kind\n// 22.1.5.2.1 %ArrayIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var kind = this._k;\n var index = this._i++;\n if (!O || index >= O.length) {\n this._t = undefined;\n return step(1);\n }\n if (kind == 'keys') return step(0, index);\n if (kind == 'values') return step(0, O[index]);\n return step(0, [index, O[index]]);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)\nIterators.Arguments = Iterators.Array;\n\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/es6.array.iterator.js\n// module id = 333\n// module chunks = 0","module.exports = function () { /* empty */ };\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_add-to-unscopables.js\n// module id = 334\n// module chunks = 0","module.exports = function (done, value) {\n return { value: value, done: !!done };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_iter-step.js\n// module id = 335\n// module chunks = 0","exports.f = require('./_wks');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_wks-ext.js\n// module id = 336\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/symbol\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/babel-runtime/core-js/symbol.js\n// module id = 337\n// module chunks = 0","require('../../modules/es6.symbol');\nrequire('../../modules/es6.object.to-string');\nrequire('../../modules/es7.symbol.async-iterator');\nrequire('../../modules/es7.symbol.observable');\nmodule.exports = require('../../modules/_core').Symbol;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/fn/symbol/index.js\n// module id = 338\n// module chunks = 0","'use strict';\n// ECMAScript 6 symbols shim\nvar global = require('./_global');\nvar has = require('./_has');\nvar DESCRIPTORS = require('./_descriptors');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar META = require('./_meta').KEY;\nvar $fails = require('./_fails');\nvar shared = require('./_shared');\nvar setToStringTag = require('./_set-to-string-tag');\nvar uid = require('./_uid');\nvar wks = require('./_wks');\nvar wksExt = require('./_wks-ext');\nvar wksDefine = require('./_wks-define');\nvar enumKeys = require('./_enum-keys');\nvar isArray = require('./_is-array');\nvar anObject = require('./_an-object');\nvar isObject = require('./_is-object');\nvar toObject = require('./_to-object');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar createDesc = require('./_property-desc');\nvar _create = require('./_object-create');\nvar gOPNExt = require('./_object-gopn-ext');\nvar $GOPD = require('./_object-gopd');\nvar $GOPS = require('./_object-gops');\nvar $DP = require('./_object-dp');\nvar $keys = require('./_object-keys');\nvar gOPD = $GOPD.f;\nvar dP = $DP.f;\nvar gOPN = gOPNExt.f;\nvar $Symbol = global.Symbol;\nvar $JSON = global.JSON;\nvar _stringify = $JSON && $JSON.stringify;\nvar PROTOTYPE = 'prototype';\nvar HIDDEN = wks('_hidden');\nvar TO_PRIMITIVE = wks('toPrimitive');\nvar isEnum = {}.propertyIsEnumerable;\nvar SymbolRegistry = shared('symbol-registry');\nvar AllSymbols = shared('symbols');\nvar OPSymbols = shared('op-symbols');\nvar ObjectProto = Object[PROTOTYPE];\nvar USE_NATIVE = typeof $Symbol == 'function' && !!$GOPS.f;\nvar QObject = global.QObject;\n// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173\nvar setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;\n\n// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDesc = DESCRIPTORS && $fails(function () {\n return _create(dP({}, 'a', {\n get: function () { return dP(this, 'a', { value: 7 }).a; }\n })).a != 7;\n}) ? function (it, key, D) {\n var protoDesc = gOPD(ObjectProto, key);\n if (protoDesc) delete ObjectProto[key];\n dP(it, key, D);\n if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);\n} : dP;\n\nvar wrap = function (tag) {\n var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);\n sym._k = tag;\n return sym;\n};\n\nvar isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n return it instanceof $Symbol;\n};\n\nvar $defineProperty = function defineProperty(it, key, D) {\n if (it === ObjectProto) $defineProperty(OPSymbols, key, D);\n anObject(it);\n key = toPrimitive(key, true);\n anObject(D);\n if (has(AllSymbols, key)) {\n if (!D.enumerable) {\n if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));\n it[HIDDEN][key] = true;\n } else {\n if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;\n D = _create(D, { enumerable: createDesc(0, false) });\n } return setSymbolDesc(it, key, D);\n } return dP(it, key, D);\n};\nvar $defineProperties = function defineProperties(it, P) {\n anObject(it);\n var keys = enumKeys(P = toIObject(P));\n var i = 0;\n var l = keys.length;\n var key;\n while (l > i) $defineProperty(it, key = keys[i++], P[key]);\n return it;\n};\nvar $create = function create(it, P) {\n return P === undefined ? _create(it) : $defineProperties(_create(it), P);\n};\nvar $propertyIsEnumerable = function propertyIsEnumerable(key) {\n var E = isEnum.call(this, key = toPrimitive(key, true));\n if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;\n return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;\n};\nvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {\n it = toIObject(it);\n key = toPrimitive(key, true);\n if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;\n var D = gOPD(it, key);\n if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;\n return D;\n};\nvar $getOwnPropertyNames = function getOwnPropertyNames(it) {\n var names = gOPN(toIObject(it));\n var result = [];\n var i = 0;\n var key;\n while (names.length > i) {\n if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);\n } return result;\n};\nvar $getOwnPropertySymbols = function getOwnPropertySymbols(it) {\n var IS_OP = it === ObjectProto;\n var names = gOPN(IS_OP ? OPSymbols : toIObject(it));\n var result = [];\n var i = 0;\n var key;\n while (names.length > i) {\n if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);\n } return result;\n};\n\n// 19.4.1.1 Symbol([description])\nif (!USE_NATIVE) {\n $Symbol = function Symbol() {\n if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');\n var tag = uid(arguments.length > 0 ? arguments[0] : undefined);\n var $set = function (value) {\n if (this === ObjectProto) $set.call(OPSymbols, value);\n if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;\n setSymbolDesc(this, tag, createDesc(1, value));\n };\n if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });\n return wrap(tag);\n };\n redefine($Symbol[PROTOTYPE], 'toString', function toString() {\n return this._k;\n });\n\n $GOPD.f = $getOwnPropertyDescriptor;\n $DP.f = $defineProperty;\n require('./_object-gopn').f = gOPNExt.f = $getOwnPropertyNames;\n require('./_object-pie').f = $propertyIsEnumerable;\n $GOPS.f = $getOwnPropertySymbols;\n\n if (DESCRIPTORS && !require('./_library')) {\n redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);\n }\n\n wksExt.f = function (name) {\n return wrap(wks(name));\n };\n}\n\n$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });\n\nfor (var es6Symbols = (\n // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14\n 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'\n).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);\n\nfor (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);\n\n$export($export.S + $export.F * !USE_NATIVE, 'Symbol', {\n // 19.4.2.1 Symbol.for(key)\n 'for': function (key) {\n return has(SymbolRegistry, key += '')\n ? SymbolRegistry[key]\n : SymbolRegistry[key] = $Symbol(key);\n },\n // 19.4.2.5 Symbol.keyFor(sym)\n keyFor: function keyFor(sym) {\n if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');\n for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;\n },\n useSetter: function () { setter = true; },\n useSimple: function () { setter = false; }\n});\n\n$export($export.S + $export.F * !USE_NATIVE, 'Object', {\n // 19.1.2.2 Object.create(O [, Properties])\n create: $create,\n // 19.1.2.4 Object.defineProperty(O, P, Attributes)\n defineProperty: $defineProperty,\n // 19.1.2.3 Object.defineProperties(O, Properties)\n defineProperties: $defineProperties,\n // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\n getOwnPropertyDescriptor: $getOwnPropertyDescriptor,\n // 19.1.2.7 Object.getOwnPropertyNames(O)\n getOwnPropertyNames: $getOwnPropertyNames,\n // 19.1.2.8 Object.getOwnPropertySymbols(O)\n getOwnPropertySymbols: $getOwnPropertySymbols\n});\n\n// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives\n// https://bugs.chromium.org/p/v8/issues/detail?id=3443\nvar FAILS_ON_PRIMITIVES = $fails(function () { $GOPS.f(1); });\n\n$export($export.S + $export.F * FAILS_ON_PRIMITIVES, 'Object', {\n getOwnPropertySymbols: function getOwnPropertySymbols(it) {\n return $GOPS.f(toObject(it));\n }\n});\n\n// 24.3.2 JSON.stringify(value [, replacer [, space]])\n$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {\n var S = $Symbol();\n // MS Edge converts symbol values to JSON as {}\n // WebKit converts symbol values to JSON as null\n // V8 throws on boxed symbols\n return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';\n})), 'JSON', {\n stringify: function stringify(it) {\n var args = [it];\n var i = 1;\n var replacer, $replacer;\n while (arguments.length > i) args.push(arguments[i++]);\n $replacer = replacer = args[1];\n if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined\n if (!isArray(replacer)) replacer = function (key, value) {\n if (typeof $replacer == 'function') value = $replacer.call(this, key, value);\n if (!isSymbol(value)) return value;\n };\n args[1] = replacer;\n return _stringify.apply($JSON, args);\n }\n});\n\n// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)\n$Symbol[PROTOTYPE][TO_PRIMITIVE] || require('./_hide')($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);\n// 19.4.3.5 Symbol.prototype[@@toStringTag]\nsetToStringTag($Symbol, 'Symbol');\n// 20.2.1.9 Math[@@toStringTag]\nsetToStringTag(Math, 'Math', true);\n// 24.3.3 JSON[@@toStringTag]\nsetToStringTag(global.JSON, 'JSON', true);\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/es6.symbol.js\n// module id = 339\n// module chunks = 0","var META = require('./_uid')('meta');\nvar isObject = require('./_is-object');\nvar has = require('./_has');\nvar setDesc = require('./_object-dp').f;\nvar id = 0;\nvar isExtensible = Object.isExtensible || function () {\n return true;\n};\nvar FREEZE = !require('./_fails')(function () {\n return isExtensible(Object.preventExtensions({}));\n});\nvar setMeta = function (it) {\n setDesc(it, META, { value: {\n i: 'O' + ++id, // object ID\n w: {} // weak collections IDs\n } });\n};\nvar fastKey = function (it, create) {\n // return primitive with prefix\n if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!has(it, META)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMeta(it);\n // return object ID\n } return it[META].i;\n};\nvar getWeak = function (it, create) {\n if (!has(it, META)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMeta(it);\n // return hash weak collections IDs\n } return it[META].w;\n};\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);\n return it;\n};\nvar meta = module.exports = {\n KEY: META,\n NEED: false,\n fastKey: fastKey,\n getWeak: getWeak,\n onFreeze: onFreeze\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_meta.js\n// module id = 340\n// module chunks = 0","var global = require('./_global');\nvar core = require('./_core');\nvar LIBRARY = require('./_library');\nvar wksExt = require('./_wks-ext');\nvar defineProperty = require('./_object-dp').f;\nmodule.exports = function (name) {\n var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});\n if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_wks-define.js\n// module id = 341\n// module chunks = 0","// all enumerable object keys, includes symbols\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nmodule.exports = function (it) {\n var result = getKeys(it);\n var getSymbols = gOPS.f;\n if (getSymbols) {\n var symbols = getSymbols(it);\n var isEnum = pIE.f;\n var i = 0;\n var key;\n while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);\n } return result;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_enum-keys.js\n// module id = 342\n// module chunks = 0","// 7.2.2 IsArray(argument)\nvar cof = require('./_cof');\nmodule.exports = Array.isArray || function isArray(arg) {\n return cof(arg) == 'Array';\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_is-array.js\n// module id = 343\n// module chunks = 0","// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nvar toIObject = require('./_to-iobject');\nvar gOPN = require('./_object-gopn').f;\nvar toString = {}.toString;\n\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function (it) {\n try {\n return gOPN(it);\n } catch (e) {\n return windowNames.slice();\n }\n};\n\nmodule.exports.f = function getOwnPropertyNames(it) {\n return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_object-gopn-ext.js\n// module id = 344\n// module chunks = 0","// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\nvar $keys = require('./_object-keys-internal');\nvar hiddenKeys = require('./_enum-bug-keys').concat('length', 'prototype');\n\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return $keys(O, hiddenKeys);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_object-gopn.js\n// module id = 345\n// module chunks = 0","var pIE = require('./_object-pie');\nvar createDesc = require('./_property-desc');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar has = require('./_has');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nexports.f = require('./_descriptors') ? gOPD : function getOwnPropertyDescriptor(O, P) {\n O = toIObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return gOPD(O, P);\n } catch (e) { /* empty */ }\n if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_object-gopd.js\n// module id = 346\n// module chunks = 0","require('./_wks-define')('asyncIterator');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/es7.symbol.async-iterator.js\n// module id = 348\n// module chunks = 0","require('./_wks-define')('observable');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/es7.symbol.observable.js\n// module id = 349\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nvar _setPrototypeOf = require(\"../core-js/object/set-prototype-of\");\n\nvar _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);\n\nvar _create = require(\"../core-js/object/create\");\n\nvar _create2 = _interopRequireDefault(_create);\n\nvar _typeof2 = require(\"../helpers/typeof\");\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + (typeof superClass === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(superClass)));\n }\n\n subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/babel-runtime/helpers/inherits.js\n// module id = 350\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/object/set-prototype-of\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/babel-runtime/core-js/object/set-prototype-of.js\n// module id = 351\n// module chunks = 0","require('../../modules/es6.object.set-prototype-of');\nmodule.exports = require('../../modules/_core').Object.setPrototypeOf;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/fn/object/set-prototype-of.js\n// module id = 352\n// module chunks = 0","// 19.1.3.19 Object.setPrototypeOf(O, proto)\nvar $export = require('./_export');\n$export($export.S, 'Object', { setPrototypeOf: require('./_set-proto').set });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/es6.object.set-prototype-of.js\n// module id = 353\n// module chunks = 0","// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nvar isObject = require('./_is-object');\nvar anObject = require('./_an-object');\nvar check = function (O, proto) {\n anObject(O);\n if (!isObject(proto) && proto !== null) throw TypeError(proto + \": can't set as prototype!\");\n};\nmodule.exports = {\n set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n function (test, buggy, set) {\n try {\n set = require('./_ctx')(Function.call, require('./_object-gopd').f(Object.prototype, '__proto__').set, 2);\n set(test, []);\n buggy = !(test instanceof Array);\n } catch (e) { buggy = true; }\n return function setPrototypeOf(O, proto) {\n check(O, proto);\n if (buggy) O.__proto__ = proto;\n else set(O, proto);\n return O;\n };\n }({}, false) : undefined),\n check: check\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_set-proto.js\n// module id = 354\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/object/create\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/babel-runtime/core-js/object/create.js\n// module id = 355\n// module chunks = 0","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = contains;\n\nfunction contains(root, n) {\n var node = n;\n\n while (node) {\n if (node === root) {\n return true;\n }\n\n node = node.parentNode;\n }\n\n return false;\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rc-util/lib/Dom/contains.js\n// module id = 356\n// module chunks = 0","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = addEventListenerWrap;\n\nvar _addDomEventListener = _interopRequireDefault(require(\"add-dom-event-listener\"));\n\nvar _reactDom = _interopRequireDefault(require(\"react-dom\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction addEventListenerWrap(target, eventType, cb, option) {\n /* eslint camelcase: 2 */\n var callback = _reactDom.default.unstable_batchedUpdates ? function run(e) {\n _reactDom.default.unstable_batchedUpdates(cb, e);\n } : cb;\n return (0, _addDomEventListener.default)(target, eventType, callback, option);\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rc-util/lib/Dom/addEventListener.js\n// module id = 357\n// module chunks = 0","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _reactDom = _interopRequireDefault(require(\"react-dom\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nvar ContainerRender = /*#__PURE__*/function (_React$Component) {\n _inherits(ContainerRender, _React$Component);\n\n var _super = _createSuper(ContainerRender);\n\n function ContainerRender() {\n var _this;\n\n _classCallCheck(this, ContainerRender);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _this.removeContainer = function () {\n if (_this.container) {\n _reactDom.default.unmountComponentAtNode(_this.container);\n\n _this.container.parentNode.removeChild(_this.container);\n\n _this.container = null;\n }\n };\n\n _this.renderComponent = function (props, ready) {\n var _this$props = _this.props,\n visible = _this$props.visible,\n getComponent = _this$props.getComponent,\n forceRender = _this$props.forceRender,\n getContainer = _this$props.getContainer,\n parent = _this$props.parent;\n\n if (visible || parent._component || forceRender) {\n if (!_this.container) {\n _this.container = getContainer();\n }\n\n _reactDom.default.unstable_renderSubtreeIntoContainer(parent, getComponent(props), _this.container, function callback() {\n if (ready) {\n ready.call(this);\n }\n });\n }\n };\n\n return _this;\n }\n\n _createClass(ContainerRender, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (this.props.autoMount) {\n this.renderComponent();\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate() {\n if (this.props.autoMount) {\n this.renderComponent();\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (this.props.autoDestroy) {\n this.removeContainer();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n return this.props.children({\n renderComponent: this.renderComponent,\n removeContainer: this.removeContainer\n });\n }\n }]);\n\n return ContainerRender;\n}(_react.default.Component);\n\nexports.default = ContainerRender;\nContainerRender.propTypes = {\n autoMount: _propTypes.default.bool,\n autoDestroy: _propTypes.default.bool,\n visible: _propTypes.default.bool,\n forceRender: _propTypes.default.bool,\n parent: _propTypes.default.any,\n getComponent: _propTypes.default.func.isRequired,\n getContainer: _propTypes.default.func.isRequired,\n children: _propTypes.default.func.isRequired\n};\nContainerRender.defaultProps = {\n autoMount: true,\n autoDestroy: true,\n forceRender: false\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rc-util/lib/ContainerRender.js\n// module id = 358\n// module chunks = 0","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _reactDom = _interopRequireDefault(require(\"react-dom\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nvar Portal = /*#__PURE__*/function (_React$Component) {\n _inherits(Portal, _React$Component);\n\n var _super = _createSuper(Portal);\n\n function Portal() {\n _classCallCheck(this, Portal);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(Portal, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.createContainer();\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n var didUpdate = this.props.didUpdate;\n\n if (didUpdate) {\n didUpdate(prevProps);\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.removeContainer();\n }\n }, {\n key: \"createContainer\",\n value: function createContainer() {\n this._container = this.props.getContainer();\n this.forceUpdate();\n }\n }, {\n key: \"removeContainer\",\n value: function removeContainer() {\n if (this._container) {\n this._container.parentNode.removeChild(this._container);\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n if (this._container) {\n return _reactDom.default.createPortal(this.props.children, this._container);\n }\n\n return null;\n }\n }]);\n\n return Portal;\n}(_react.default.Component);\n\nexports.default = Portal;\nPortal.propTypes = {\n getContainer: _propTypes.default.func.isRequired,\n children: _propTypes.default.node.isRequired,\n didUpdate: _propTypes.default.func\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rc-util/lib/Portal.js\n// module id = 359\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nexports.getAlignFromPlacement = getAlignFromPlacement;\nexports.getAlignPopupClassName = getAlignPopupClassName;\nexports.saveRef = saveRef;\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nfunction isPointsEq(a1, a2, isAlignPoint) {\n if (isAlignPoint) {\n return a1[0] === a2[0];\n }\n return a1[0] === a2[0] && a1[1] === a2[1];\n}\n\nfunction getAlignFromPlacement(builtinPlacements, placementStr, align) {\n var baseAlign = builtinPlacements[placementStr] || {};\n return (0, _extends3['default'])({}, baseAlign, align);\n}\n\nfunction getAlignPopupClassName(builtinPlacements, prefixCls, align, isAlignPoint) {\n var points = align.points;\n for (var placement in builtinPlacements) {\n if (builtinPlacements.hasOwnProperty(placement)) {\n if (isPointsEq(builtinPlacements[placement].points, points, isAlignPoint)) {\n return prefixCls + '-placement-' + placement;\n }\n }\n }\n return '';\n}\n\nfunction saveRef(name, component) {\n this[name] = component;\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rc-trigger/lib/utils.js\n// module id = 360\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _reactDom = require('react-dom');\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _rcAlign = require('rc-align');\n\nvar _rcAlign2 = _interopRequireDefault(_rcAlign);\n\nvar _rcAnimate = require('rc-animate');\n\nvar _rcAnimate2 = _interopRequireDefault(_rcAnimate);\n\nvar _PopupInner = require('./PopupInner');\n\nvar _PopupInner2 = _interopRequireDefault(_PopupInner);\n\nvar _LazyRenderBox = require('./LazyRenderBox');\n\nvar _LazyRenderBox2 = _interopRequireDefault(_LazyRenderBox);\n\nvar _utils = require('./utils');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar Popup = function (_Component) {\n (0, _inherits3['default'])(Popup, _Component);\n\n function Popup(props) {\n (0, _classCallCheck3['default'])(this, Popup);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, _Component.call(this, props));\n\n _initialiseProps.call(_this);\n\n _this.state = {\n // Used for stretch\n stretchChecked: false,\n targetWidth: undefined,\n targetHeight: undefined\n };\n\n _this.savePopupRef = _utils.saveRef.bind(_this, 'popupInstance');\n _this.saveAlignRef = _utils.saveRef.bind(_this, 'alignInstance');\n return _this;\n }\n\n Popup.prototype.componentDidMount = function componentDidMount() {\n this.rootNode = this.getPopupDomNode();\n this.setStretchSize();\n };\n\n Popup.prototype.componentDidUpdate = function componentDidUpdate() {\n this.setStretchSize();\n };\n\n // Record size if stretch needed\n\n\n Popup.prototype.getPopupDomNode = function getPopupDomNode() {\n return _reactDom2['default'].findDOMNode(this.popupInstance);\n };\n\n // `target` on `rc-align` can accept as a function to get the bind element or a point.\n // ref: https://www.npmjs.com/package/rc-align\n\n\n Popup.prototype.getMaskTransitionName = function getMaskTransitionName() {\n var props = this.props;\n var transitionName = props.maskTransitionName;\n var animation = props.maskAnimation;\n if (!transitionName && animation) {\n transitionName = props.prefixCls + '-' + animation;\n }\n return transitionName;\n };\n\n Popup.prototype.getTransitionName = function getTransitionName() {\n var props = this.props;\n var transitionName = props.transitionName;\n if (!transitionName && props.animation) {\n transitionName = props.prefixCls + '-' + props.animation;\n }\n return transitionName;\n };\n\n Popup.prototype.getClassName = function getClassName(currentAlignClassName) {\n return this.props.prefixCls + ' ' + this.props.className + ' ' + currentAlignClassName;\n };\n\n Popup.prototype.getPopupElement = function getPopupElement() {\n var _this2 = this;\n\n var savePopupRef = this.savePopupRef;\n var _state = this.state,\n stretchChecked = _state.stretchChecked,\n targetHeight = _state.targetHeight,\n targetWidth = _state.targetWidth;\n var _props = this.props,\n align = _props.align,\n visible = _props.visible,\n prefixCls = _props.prefixCls,\n style = _props.style,\n getClassNameFromAlign = _props.getClassNameFromAlign,\n destroyPopupOnHide = _props.destroyPopupOnHide,\n stretch = _props.stretch,\n children = _props.children,\n onMouseEnter = _props.onMouseEnter,\n onMouseLeave = _props.onMouseLeave,\n onMouseDown = _props.onMouseDown,\n onTouchStart = _props.onTouchStart;\n\n var className = this.getClassName(this.currentAlignClassName || getClassNameFromAlign(align));\n var hiddenClassName = prefixCls + '-hidden';\n\n if (!visible) {\n this.currentAlignClassName = null;\n }\n\n var sizeStyle = {};\n if (stretch) {\n // Stretch with target\n if (stretch.indexOf('height') !== -1) {\n sizeStyle.height = targetHeight;\n } else if (stretch.indexOf('minHeight') !== -1) {\n sizeStyle.minHeight = targetHeight;\n }\n if (stretch.indexOf('width') !== -1) {\n sizeStyle.width = targetWidth;\n } else if (stretch.indexOf('minWidth') !== -1) {\n sizeStyle.minWidth = targetWidth;\n }\n\n // Delay force align to makes ui smooth\n if (!stretchChecked) {\n sizeStyle.visibility = 'hidden';\n setTimeout(function () {\n if (_this2.alignInstance) {\n _this2.alignInstance.forceAlign();\n }\n }, 0);\n }\n }\n\n var newStyle = (0, _extends3['default'])({}, sizeStyle, style, this.getZIndexStyle());\n\n var popupInnerProps = {\n className: className,\n prefixCls: prefixCls,\n ref: savePopupRef,\n onMouseEnter: onMouseEnter,\n onMouseLeave: onMouseLeave,\n onMouseDown: onMouseDown,\n onTouchStart: onTouchStart,\n style: newStyle\n };\n if (destroyPopupOnHide) {\n return _react2['default'].createElement(\n _rcAnimate2['default'],\n {\n component: '',\n exclusive: true,\n transitionAppear: true,\n transitionName: this.getTransitionName()\n },\n visible ? _react2['default'].createElement(\n _rcAlign2['default'],\n {\n target: this.getAlignTarget(),\n key: 'popup',\n ref: this.saveAlignRef,\n monitorWindowResize: true,\n align: align,\n onAlign: this.onAlign\n },\n _react2['default'].createElement(\n _PopupInner2['default'],\n (0, _extends3['default'])({\n visible: true\n }, popupInnerProps),\n children\n )\n ) : null\n );\n }\n\n return _react2['default'].createElement(\n _rcAnimate2['default'],\n {\n component: '',\n exclusive: true,\n transitionAppear: true,\n transitionName: this.getTransitionName(),\n showProp: 'xVisible'\n },\n _react2['default'].createElement(\n _rcAlign2['default'],\n {\n target: this.getAlignTarget(),\n key: 'popup',\n ref: this.saveAlignRef,\n monitorWindowResize: true,\n xVisible: visible,\n childrenProps: { visible: 'xVisible' },\n disabled: !visible,\n align: align,\n onAlign: this.onAlign\n },\n _react2['default'].createElement(\n _PopupInner2['default'],\n (0, _extends3['default'])({\n hiddenClassName: hiddenClassName\n }, popupInnerProps),\n children\n )\n )\n );\n };\n\n Popup.prototype.getZIndexStyle = function getZIndexStyle() {\n var style = {};\n var props = this.props;\n if (props.zIndex !== undefined) {\n style.zIndex = props.zIndex;\n }\n return style;\n };\n\n Popup.prototype.getMaskElement = function getMaskElement() {\n var props = this.props;\n var maskElement = void 0;\n if (props.mask) {\n var maskTransition = this.getMaskTransitionName();\n maskElement = _react2['default'].createElement(_LazyRenderBox2['default'], {\n style: this.getZIndexStyle(),\n key: 'mask',\n className: props.prefixCls + '-mask',\n hiddenClassName: props.prefixCls + '-mask-hidden',\n visible: props.visible\n });\n if (maskTransition) {\n maskElement = _react2['default'].createElement(\n _rcAnimate2['default'],\n {\n key: 'mask',\n showProp: 'visible',\n transitionAppear: true,\n component: '',\n transitionName: maskTransition\n },\n maskElement\n );\n }\n }\n return maskElement;\n };\n\n Popup.prototype.render = function render() {\n return _react2['default'].createElement(\n 'div',\n null,\n this.getMaskElement(),\n this.getPopupElement()\n );\n };\n\n return Popup;\n}(_react.Component);\n\nPopup.propTypes = {\n visible: _propTypes2['default'].bool,\n style: _propTypes2['default'].object,\n getClassNameFromAlign: _propTypes2['default'].func,\n onAlign: _propTypes2['default'].func,\n getRootDomNode: _propTypes2['default'].func,\n align: _propTypes2['default'].any,\n destroyPopupOnHide: _propTypes2['default'].bool,\n className: _propTypes2['default'].string,\n prefixCls: _propTypes2['default'].string,\n onMouseEnter: _propTypes2['default'].func,\n onMouseLeave: _propTypes2['default'].func,\n onMouseDown: _propTypes2['default'].func,\n onTouchStart: _propTypes2['default'].func,\n stretch: _propTypes2['default'].string,\n children: _propTypes2['default'].node,\n point: _propTypes2['default'].shape({\n pageX: _propTypes2['default'].number,\n pageY: _propTypes2['default'].number\n })\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this3 = this;\n\n this.onAlign = function (popupDomNode, align) {\n var props = _this3.props;\n var currentAlignClassName = props.getClassNameFromAlign(align);\n // FIX: https://github.com/react-component/trigger/issues/56\n // FIX: https://github.com/react-component/tooltip/issues/79\n if (_this3.currentAlignClassName !== currentAlignClassName) {\n _this3.currentAlignClassName = currentAlignClassName;\n popupDomNode.className = _this3.getClassName(currentAlignClassName);\n }\n props.onAlign(popupDomNode, align);\n };\n\n this.setStretchSize = function () {\n var _props2 = _this3.props,\n stretch = _props2.stretch,\n getRootDomNode = _props2.getRootDomNode,\n visible = _props2.visible;\n var _state2 = _this3.state,\n stretchChecked = _state2.stretchChecked,\n targetHeight = _state2.targetHeight,\n targetWidth = _state2.targetWidth;\n\n\n if (!stretch || !visible) {\n if (stretchChecked) {\n _this3.setState({ stretchChecked: false });\n }\n return;\n }\n\n var $ele = getRootDomNode();\n if (!$ele) return;\n\n var height = $ele.offsetHeight;\n var width = $ele.offsetWidth;\n\n if (targetHeight !== height || targetWidth !== width || !stretchChecked) {\n _this3.setState({\n stretchChecked: true,\n targetHeight: height,\n targetWidth: width\n });\n }\n };\n\n this.getTargetElement = function () {\n return _this3.props.getRootDomNode();\n };\n\n this.getAlignTarget = function () {\n var point = _this3.props.point;\n\n if (point) {\n return point;\n }\n return _this3.getTargetElement;\n };\n};\n\nexports['default'] = Popup;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rc-trigger/lib/Popup.js\n// module id = 361\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _Align = require('./Align');\n\nvar _Align2 = _interopRequireDefault(_Align);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _Align2['default']; // export this package's api\n\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rc-align/lib/index.js\n// module id = 362\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _reactDom = require('react-dom');\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _domAlign = require('dom-align');\n\nvar _addEventListener = require('rc-util/lib/Dom/addEventListener');\n\nvar _addEventListener2 = _interopRequireDefault(_addEventListener);\n\nvar _util = require('./util');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nfunction getElement(func) {\n if (typeof func !== 'function' || !func) return null;\n return func();\n}\n\nfunction getPoint(point) {\n if (typeof point !== 'object' || !point) return null;\n return point;\n}\n\nvar Align = function (_Component) {\n (0, _inherits3['default'])(Align, _Component);\n\n function Align() {\n var _ref;\n\n var _temp, _this, _ret;\n\n (0, _classCallCheck3['default'])(this, Align);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = (0, _possibleConstructorReturn3['default'])(this, (_ref = Align.__proto__ || Object.getPrototypeOf(Align)).call.apply(_ref, [this].concat(args))), _this), _this.forceAlign = function () {\n var _this$props = _this.props,\n disabled = _this$props.disabled,\n target = _this$props.target,\n align = _this$props.align,\n onAlign = _this$props.onAlign;\n\n if (!disabled && target) {\n var source = _reactDom2['default'].findDOMNode(_this);\n\n var result = void 0;\n var element = getElement(target);\n var point = getPoint(target);\n\n // IE lose focus after element realign\n // We should record activeElement and restore later\n var activeElement = document.activeElement;\n\n if (element) {\n result = (0, _domAlign.alignElement)(source, element, align);\n } else if (point) {\n result = (0, _domAlign.alignPoint)(source, point, align);\n }\n\n (0, _util.restoreFocus)(activeElement, source);\n\n if (onAlign) {\n onAlign(source, result);\n }\n }\n }, _temp), (0, _possibleConstructorReturn3['default'])(_this, _ret);\n }\n\n (0, _createClass3['default'])(Align, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n var props = this.props;\n // if parent ref not attached .... use document.getElementById\n this.forceAlign();\n if (!props.disabled && props.monitorWindowResize) {\n this.startMonitorWindowResize();\n }\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate(prevProps) {\n var reAlign = false;\n var props = this.props;\n\n if (!props.disabled) {\n var source = _reactDom2['default'].findDOMNode(this);\n var sourceRect = source ? source.getBoundingClientRect() : null;\n\n if (prevProps.disabled) {\n reAlign = true;\n } else {\n var lastElement = getElement(prevProps.target);\n var currentElement = getElement(props.target);\n var lastPoint = getPoint(prevProps.target);\n var currentPoint = getPoint(props.target);\n\n if ((0, _util.isWindow)(lastElement) && (0, _util.isWindow)(currentElement)) {\n // Skip if is window\n reAlign = false;\n } else if (lastElement !== currentElement || // Element change\n lastElement && !currentElement && currentPoint || // Change from element to point\n lastPoint && currentPoint && currentElement || // Change from point to element\n currentPoint && !(0, _util.isSamePoint)(lastPoint, currentPoint)) {\n reAlign = true;\n }\n\n // If source element size changed\n var preRect = this.sourceRect || {};\n if (!reAlign && source && (!(0, _util.isSimilarValue)(preRect.width, sourceRect.width) || !(0, _util.isSimilarValue)(preRect.height, sourceRect.height))) {\n reAlign = true;\n }\n }\n\n this.sourceRect = sourceRect;\n }\n\n if (reAlign) {\n this.forceAlign();\n }\n\n if (props.monitorWindowResize && !props.disabled) {\n this.startMonitorWindowResize();\n } else {\n this.stopMonitorWindowResize();\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n this.stopMonitorWindowResize();\n }\n }, {\n key: 'startMonitorWindowResize',\n value: function startMonitorWindowResize() {\n if (!this.resizeHandler) {\n this.bufferMonitor = (0, _util.buffer)(this.forceAlign, this.props.monitorBufferTime);\n this.resizeHandler = (0, _addEventListener2['default'])(window, 'resize', this.bufferMonitor);\n }\n }\n }, {\n key: 'stopMonitorWindowResize',\n value: function stopMonitorWindowResize() {\n if (this.resizeHandler) {\n this.bufferMonitor.clear();\n this.resizeHandler.remove();\n this.resizeHandler = null;\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var _props = this.props,\n childrenProps = _props.childrenProps,\n children = _props.children;\n\n var child = _react2['default'].Children.only(children);\n if (childrenProps) {\n var newProps = {};\n var propList = Object.keys(childrenProps);\n propList.forEach(function (prop) {\n newProps[prop] = _this2.props[childrenProps[prop]];\n });\n\n return _react2['default'].cloneElement(child, newProps);\n }\n return child;\n }\n }]);\n return Align;\n}(_react.Component);\n\nAlign.propTypes = {\n childrenProps: _propTypes2['default'].object,\n align: _propTypes2['default'].object.isRequired,\n target: _propTypes2['default'].oneOfType([_propTypes2['default'].func, _propTypes2['default'].shape({\n clientX: _propTypes2['default'].number,\n clientY: _propTypes2['default'].number,\n pageX: _propTypes2['default'].number,\n pageY: _propTypes2['default'].number\n })]),\n onAlign: _propTypes2['default'].func,\n monitorBufferTime: _propTypes2['default'].number,\n monitorWindowResize: _propTypes2['default'].bool,\n disabled: _propTypes2['default'].bool,\n children: _propTypes2['default'].any\n};\nAlign.defaultProps = {\n target: function target() {\n return window;\n },\n monitorBufferTime: 50,\n monitorWindowResize: false,\n disabled: false\n};\nexports['default'] = Align;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rc-align/lib/Align.js\n// module id = 363\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nvar _defineProperty = require(\"../core-js/object/define-property\");\n\nvar _defineProperty2 = _interopRequireDefault(_defineProperty);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n (0, _defineProperty2.default)(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/babel-runtime/helpers/createClass.js\n// module id = 364\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/object/define-property\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/babel-runtime/core-js/object/define-property.js\n// module id = 365\n// module chunks = 0","require('../../modules/es6.object.define-property');\nvar $Object = require('../../modules/_core').Object;\nmodule.exports = function defineProperty(it, key, desc) {\n return $Object.defineProperty(it, key, desc);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/fn/object/define-property.js\n// module id = 366\n// module chunks = 0","var $export = require('./_export');\n// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)\n$export($export.S + $export.F * !require('./_descriptors'), 'Object', { defineProperty: require('./_object-dp').f });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/es6.object.define-property.js\n// module id = 367\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.buffer = buffer;\nexports.isSamePoint = isSamePoint;\nexports.isWindow = isWindow;\nexports.isSimilarValue = isSimilarValue;\nexports.restoreFocus = restoreFocus;\n\nvar _contains = require('rc-util/lib/Dom/contains');\n\nvar _contains2 = _interopRequireDefault(_contains);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nfunction buffer(fn, ms) {\n var timer = void 0;\n\n function clear() {\n if (timer) {\n clearTimeout(timer);\n timer = null;\n }\n }\n\n function bufferFn() {\n clear();\n timer = setTimeout(fn, ms);\n }\n\n bufferFn.clear = clear;\n\n return bufferFn;\n}\n\nfunction isSamePoint(prev, next) {\n if (prev === next) return true;\n if (!prev || !next) return false;\n\n if ('pageX' in next && 'pageY' in next) {\n return prev.pageX === next.pageX && prev.pageY === next.pageY;\n }\n\n if ('clientX' in next && 'clientY' in next) {\n return prev.clientX === next.clientX && prev.clientY === next.clientY;\n }\n\n return false;\n}\n\nfunction isWindow(obj) {\n return obj && typeof obj === 'object' && obj.window === obj;\n}\n\nfunction isSimilarValue(val1, val2) {\n var int1 = Math.floor(val1);\n var int2 = Math.floor(val2);\n return Math.abs(int1 - int2) <= 1;\n}\n\nfunction restoreFocus(activeElement, container) {\n // Focus back if is in the container\n if (activeElement !== document.activeElement && (0, _contains2['default'])(container, activeElement)) {\n activeElement.focus();\n }\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rc-align/lib/util.js\n// module id = 368\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _unsafeLifecyclesPolyfill = require('rc-util/lib/unsafeLifecyclesPolyfill');\n\nvar _unsafeLifecyclesPolyfill2 = _interopRequireDefault(_unsafeLifecyclesPolyfill);\n\nvar _ChildrenUtils = require('./ChildrenUtils');\n\nvar _AnimateChild = require('./AnimateChild');\n\nvar _AnimateChild2 = _interopRequireDefault(_AnimateChild);\n\nvar _animate = require('./util/animate');\n\nvar _animate2 = _interopRequireDefault(_animate);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar defaultKey = 'rc_animate_' + Date.now();\n\nfunction getChildrenFromProps(props) {\n var children = props.children;\n if (_react2['default'].isValidElement(children)) {\n if (!children.key) {\n return _react2['default'].cloneElement(children, {\n key: defaultKey\n });\n }\n }\n return children;\n}\n\nfunction noop() {}\n\nvar Animate = function (_React$Component) {\n (0, _inherits3['default'])(Animate, _React$Component);\n\n // eslint-disable-line\n\n function Animate(props) {\n (0, _classCallCheck3['default'])(this, Animate);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (Animate.__proto__ || Object.getPrototypeOf(Animate)).call(this, props));\n\n _initialiseProps.call(_this);\n\n _this.currentlyAnimatingKeys = {};\n _this.keysToEnter = [];\n _this.keysToLeave = [];\n\n _this.state = {\n children: (0, _ChildrenUtils.toArrayChildren)(getChildrenFromProps(props))\n };\n\n _this.childrenRefs = {};\n return _this;\n }\n\n (0, _createClass3['default'])(Animate, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n var _this2 = this;\n\n var showProp = this.props.showProp;\n var children = this.state.children;\n if (showProp) {\n children = children.filter(function (child) {\n return !!child.props[showProp];\n });\n }\n children.forEach(function (child) {\n if (child) {\n _this2.performAppear(child.key);\n }\n });\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n var _this3 = this;\n\n this.nextProps = nextProps;\n var nextChildren = (0, _ChildrenUtils.toArrayChildren)(getChildrenFromProps(nextProps));\n var props = this.props;\n // exclusive needs immediate response\n if (props.exclusive) {\n Object.keys(this.currentlyAnimatingKeys).forEach(function (key) {\n _this3.stop(key);\n });\n }\n var showProp = props.showProp;\n var currentlyAnimatingKeys = this.currentlyAnimatingKeys;\n // last props children if exclusive\n var currentChildren = props.exclusive ? (0, _ChildrenUtils.toArrayChildren)(getChildrenFromProps(props)) : this.state.children;\n // in case destroy in showProp mode\n var newChildren = [];\n if (showProp) {\n currentChildren.forEach(function (currentChild) {\n var nextChild = currentChild && (0, _ChildrenUtils.findChildInChildrenByKey)(nextChildren, currentChild.key);\n var newChild = void 0;\n if ((!nextChild || !nextChild.props[showProp]) && currentChild.props[showProp]) {\n newChild = _react2['default'].cloneElement(nextChild || currentChild, (0, _defineProperty3['default'])({}, showProp, true));\n } else {\n newChild = nextChild;\n }\n if (newChild) {\n newChildren.push(newChild);\n }\n });\n nextChildren.forEach(function (nextChild) {\n if (!nextChild || !(0, _ChildrenUtils.findChildInChildrenByKey)(currentChildren, nextChild.key)) {\n newChildren.push(nextChild);\n }\n });\n } else {\n newChildren = (0, _ChildrenUtils.mergeChildren)(currentChildren, nextChildren);\n }\n\n // need render to avoid update\n this.setState({\n children: newChildren\n });\n\n nextChildren.forEach(function (child) {\n var key = child && child.key;\n if (child && currentlyAnimatingKeys[key]) {\n return;\n }\n var hasPrev = child && (0, _ChildrenUtils.findChildInChildrenByKey)(currentChildren, key);\n if (showProp) {\n var showInNext = child.props[showProp];\n if (hasPrev) {\n var showInNow = (0, _ChildrenUtils.findShownChildInChildrenByKey)(currentChildren, key, showProp);\n if (!showInNow && showInNext) {\n _this3.keysToEnter.push(key);\n }\n } else if (showInNext) {\n _this3.keysToEnter.push(key);\n }\n } else if (!hasPrev) {\n _this3.keysToEnter.push(key);\n }\n });\n\n currentChildren.forEach(function (child) {\n var key = child && child.key;\n if (child && currentlyAnimatingKeys[key]) {\n return;\n }\n var hasNext = child && (0, _ChildrenUtils.findChildInChildrenByKey)(nextChildren, key);\n if (showProp) {\n var showInNow = child.props[showProp];\n if (hasNext) {\n var showInNext = (0, _ChildrenUtils.findShownChildInChildrenByKey)(nextChildren, key, showProp);\n if (!showInNext && showInNow) {\n _this3.keysToLeave.push(key);\n }\n } else if (showInNow) {\n _this3.keysToLeave.push(key);\n }\n } else if (!hasNext) {\n _this3.keysToLeave.push(key);\n }\n });\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n var keysToEnter = this.keysToEnter;\n this.keysToEnter = [];\n keysToEnter.forEach(this.performEnter);\n var keysToLeave = this.keysToLeave;\n this.keysToLeave = [];\n keysToLeave.forEach(this.performLeave);\n }\n }, {\n key: 'isValidChildByKey',\n value: function isValidChildByKey(currentChildren, key) {\n var showProp = this.props.showProp;\n if (showProp) {\n return (0, _ChildrenUtils.findShownChildInChildrenByKey)(currentChildren, key, showProp);\n }\n return (0, _ChildrenUtils.findChildInChildrenByKey)(currentChildren, key);\n }\n }, {\n key: 'stop',\n value: function stop(key) {\n delete this.currentlyAnimatingKeys[key];\n var component = this.childrenRefs[key];\n if (component) {\n component.stop();\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _this4 = this;\n\n var props = this.props;\n this.nextProps = props;\n var stateChildren = this.state.children;\n var children = null;\n if (stateChildren) {\n children = stateChildren.map(function (child) {\n if (child === null || child === undefined) {\n return child;\n }\n if (!child.key) {\n throw new Error('must set key for children');\n }\n return _react2['default'].createElement(\n _AnimateChild2['default'],\n {\n key: child.key,\n ref: function ref(node) {\n _this4.childrenRefs[child.key] = node;\n },\n animation: props.animation,\n transitionName: props.transitionName,\n transitionEnter: props.transitionEnter,\n transitionAppear: props.transitionAppear,\n transitionLeave: props.transitionLeave\n },\n child\n );\n });\n }\n var Component = props.component;\n if (Component) {\n var passedProps = props;\n if (typeof Component === 'string') {\n passedProps = (0, _extends3['default'])({\n className: props.className,\n style: props.style\n }, props.componentProps);\n }\n return _react2['default'].createElement(\n Component,\n passedProps,\n children\n );\n }\n return children[0] || null;\n }\n }]);\n return Animate;\n}(_react2['default'].Component);\n\nAnimate.isAnimate = true;\nAnimate.propTypes = {\n className: _propTypes2['default'].string,\n style: _propTypes2['default'].object,\n component: _propTypes2['default'].any,\n componentProps: _propTypes2['default'].object,\n animation: _propTypes2['default'].object,\n transitionName: _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].object]),\n transitionEnter: _propTypes2['default'].bool,\n transitionAppear: _propTypes2['default'].bool,\n exclusive: _propTypes2['default'].bool,\n transitionLeave: _propTypes2['default'].bool,\n onEnd: _propTypes2['default'].func,\n onEnter: _propTypes2['default'].func,\n onLeave: _propTypes2['default'].func,\n onAppear: _propTypes2['default'].func,\n showProp: _propTypes2['default'].string,\n children: _propTypes2['default'].node\n};\nAnimate.defaultProps = {\n animation: {},\n component: 'span',\n componentProps: {},\n transitionEnter: true,\n transitionLeave: true,\n transitionAppear: false,\n onEnd: noop,\n onEnter: noop,\n onLeave: noop,\n onAppear: noop\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this5 = this;\n\n this.performEnter = function (key) {\n // may already remove by exclusive\n if (_this5.childrenRefs[key]) {\n _this5.currentlyAnimatingKeys[key] = true;\n _this5.childrenRefs[key].componentWillEnter(_this5.handleDoneAdding.bind(_this5, key, 'enter'));\n }\n };\n\n this.performAppear = function (key) {\n if (_this5.childrenRefs[key]) {\n _this5.currentlyAnimatingKeys[key] = true;\n _this5.childrenRefs[key].componentWillAppear(_this5.handleDoneAdding.bind(_this5, key, 'appear'));\n }\n };\n\n this.handleDoneAdding = function (key, type) {\n var props = _this5.props;\n delete _this5.currentlyAnimatingKeys[key];\n // if update on exclusive mode, skip check\n if (props.exclusive && props !== _this5.nextProps) {\n return;\n }\n var currentChildren = (0, _ChildrenUtils.toArrayChildren)(getChildrenFromProps(props));\n if (!_this5.isValidChildByKey(currentChildren, key)) {\n // exclusive will not need this\n _this5.performLeave(key);\n } else if (type === 'appear') {\n if (_animate2['default'].allowAppearCallback(props)) {\n props.onAppear(key);\n props.onEnd(key, true);\n }\n } else if (_animate2['default'].allowEnterCallback(props)) {\n props.onEnter(key);\n props.onEnd(key, true);\n }\n };\n\n this.performLeave = function (key) {\n // may already remove by exclusive\n if (_this5.childrenRefs[key]) {\n _this5.currentlyAnimatingKeys[key] = true;\n _this5.childrenRefs[key].componentWillLeave(_this5.handleDoneLeaving.bind(_this5, key));\n }\n };\n\n this.handleDoneLeaving = function (key) {\n var props = _this5.props;\n delete _this5.currentlyAnimatingKeys[key];\n // if update on exclusive mode, skip check\n if (props.exclusive && props !== _this5.nextProps) {\n return;\n }\n var currentChildren = (0, _ChildrenUtils.toArrayChildren)(getChildrenFromProps(props));\n // in case state change is too fast\n if (_this5.isValidChildByKey(currentChildren, key)) {\n _this5.performEnter(key);\n } else {\n var end = function end() {\n if (_animate2['default'].allowLeaveCallback(props)) {\n props.onLeave(key);\n props.onEnd(key, false);\n }\n };\n if (!(0, _ChildrenUtils.isSameChildren)(_this5.state.children, currentChildren, props.showProp)) {\n _this5.setState({\n children: currentChildren\n }, end);\n } else {\n end();\n }\n }\n };\n};\n\nexports['default'] = (0, _unsafeLifecyclesPolyfill2['default'])(Animate);\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rc-animate/lib/Animate.js\n// module id = 369\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nvar _defineProperty = require(\"../core-js/object/define-property\");\n\nvar _defineProperty2 = _interopRequireDefault(_defineProperty);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (obj, key, value) {\n if (key in obj) {\n (0, _defineProperty2.default)(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/babel-runtime/helpers/defineProperty.js\n// module id = 370\n// module chunks = 0","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar unsafeLifecyclesPolyfill = function unsafeLifecyclesPolyfill(Component) {\n var prototype = Component.prototype;\n\n if (!prototype || !prototype.isReactComponent) {\n throw new Error('Can only polyfill class components');\n } // only handle componentWillReceiveProps\n\n\n if (typeof prototype.componentWillReceiveProps !== 'function') {\n return Component;\n } // In React 16.9, React.Profiler was introduced together with UNSAFE_componentWillReceiveProps\n // https://reactjs.org/blog/2019/08/08/react-v16.9.0.html#performance-measurements-with-reactprofiler\n\n\n if (!_react.default.Profiler) {\n return Component;\n } // Here polyfill get started\n\n\n prototype.UNSAFE_componentWillReceiveProps = prototype.componentWillReceiveProps;\n delete prototype.componentWillReceiveProps;\n return Component;\n};\n\nvar _default = unsafeLifecyclesPolyfill;\nexports.default = _default;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rc-util/lib/unsafeLifecyclesPolyfill.js\n// module id = 371\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.toArrayChildren = toArrayChildren;\nexports.findChildInChildrenByKey = findChildInChildrenByKey;\nexports.findShownChildInChildrenByKey = findShownChildInChildrenByKey;\nexports.findHiddenChildInChildrenByKey = findHiddenChildInChildrenByKey;\nexports.isSameChildren = isSameChildren;\nexports.mergeChildren = mergeChildren;\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nfunction toArrayChildren(children) {\n var ret = [];\n _react2['default'].Children.forEach(children, function (child) {\n ret.push(child);\n });\n return ret;\n}\n\nfunction findChildInChildrenByKey(children, key) {\n var ret = null;\n if (children) {\n children.forEach(function (child) {\n if (ret) {\n return;\n }\n if (child && child.key === key) {\n ret = child;\n }\n });\n }\n return ret;\n}\n\nfunction findShownChildInChildrenByKey(children, key, showProp) {\n var ret = null;\n if (children) {\n children.forEach(function (child) {\n if (child && child.key === key && child.props[showProp]) {\n if (ret) {\n throw new Error('two child with same key for children');\n }\n ret = child;\n }\n });\n }\n return ret;\n}\n\nfunction findHiddenChildInChildrenByKey(children, key, showProp) {\n var found = 0;\n if (children) {\n children.forEach(function (child) {\n if (found) {\n return;\n }\n found = child && child.key === key && !child.props[showProp];\n });\n }\n return found;\n}\n\nfunction isSameChildren(c1, c2, showProp) {\n var same = c1.length === c2.length;\n if (same) {\n c1.forEach(function (child, index) {\n var child2 = c2[index];\n if (child && child2) {\n if (child && !child2 || !child && child2) {\n same = false;\n } else if (child.key !== child2.key) {\n same = false;\n } else if (showProp && child.props[showProp] !== child2.props[showProp]) {\n same = false;\n }\n }\n });\n }\n return same;\n}\n\nfunction mergeChildren(prev, next) {\n var ret = [];\n\n // For each key of `next`, the list of keys to insert before that key in\n // the combined list\n var nextChildrenPending = {};\n var pendingChildren = [];\n prev.forEach(function (child) {\n if (child && findChildInChildrenByKey(next, child.key)) {\n if (pendingChildren.length) {\n nextChildrenPending[child.key] = pendingChildren;\n pendingChildren = [];\n }\n } else {\n pendingChildren.push(child);\n }\n });\n\n next.forEach(function (child) {\n if (child && Object.prototype.hasOwnProperty.call(nextChildrenPending, child.key)) {\n ret = ret.concat(nextChildrenPending[child.key]);\n }\n ret.push(child);\n });\n\n ret = ret.concat(pendingChildren);\n\n return ret;\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rc-animate/lib/ChildrenUtils.js\n// module id = 372\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = require('react-dom');\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _cssAnimation = require('css-animation');\n\nvar _cssAnimation2 = _interopRequireDefault(_cssAnimation);\n\nvar _animate = require('./util/animate');\n\nvar _animate2 = _interopRequireDefault(_animate);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar transitionMap = {\n enter: 'transitionEnter',\n appear: 'transitionAppear',\n leave: 'transitionLeave'\n};\n\nvar AnimateChild = function (_React$Component) {\n (0, _inherits3['default'])(AnimateChild, _React$Component);\n\n function AnimateChild() {\n (0, _classCallCheck3['default'])(this, AnimateChild);\n return (0, _possibleConstructorReturn3['default'])(this, (AnimateChild.__proto__ || Object.getPrototypeOf(AnimateChild)).apply(this, arguments));\n }\n\n (0, _createClass3['default'])(AnimateChild, [{\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n this.stop();\n }\n }, {\n key: 'componentWillEnter',\n value: function componentWillEnter(done) {\n if (_animate2['default'].isEnterSupported(this.props)) {\n this.transition('enter', done);\n } else {\n done();\n }\n }\n }, {\n key: 'componentWillAppear',\n value: function componentWillAppear(done) {\n if (_animate2['default'].isAppearSupported(this.props)) {\n this.transition('appear', done);\n } else {\n done();\n }\n }\n }, {\n key: 'componentWillLeave',\n value: function componentWillLeave(done) {\n if (_animate2['default'].isLeaveSupported(this.props)) {\n this.transition('leave', done);\n } else {\n // always sync, do not interupt with react component life cycle\n // update hidden -> animate hidden ->\n // didUpdate -> animate leave -> unmount (if animate is none)\n done();\n }\n }\n }, {\n key: 'transition',\n value: function transition(animationType, finishCallback) {\n var _this2 = this;\n\n var node = _reactDom2['default'].findDOMNode(this);\n var props = this.props;\n var transitionName = props.transitionName;\n var nameIsObj = typeof transitionName === 'object';\n this.stop();\n var end = function end() {\n _this2.stopper = null;\n finishCallback();\n };\n if ((_cssAnimation.isCssAnimationSupported || !props.animation[animationType]) && transitionName && props[transitionMap[animationType]]) {\n var name = nameIsObj ? transitionName[animationType] : transitionName + '-' + animationType;\n var activeName = name + '-active';\n if (nameIsObj && transitionName[animationType + 'Active']) {\n activeName = transitionName[animationType + 'Active'];\n }\n this.stopper = (0, _cssAnimation2['default'])(node, {\n name: name,\n active: activeName\n }, end);\n } else {\n this.stopper = props.animation[animationType](node, end);\n }\n }\n }, {\n key: 'stop',\n value: function stop() {\n var stopper = this.stopper;\n if (stopper) {\n this.stopper = null;\n stopper.stop();\n }\n }\n }, {\n key: 'render',\n value: function render() {\n return this.props.children;\n }\n }]);\n return AnimateChild;\n}(_react2['default'].Component);\n\nAnimateChild.propTypes = {\n children: _propTypes2['default'].any,\n animation: _propTypes2['default'].any,\n transitionName: _propTypes2['default'].any\n};\nexports['default'] = AnimateChild;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rc-animate/lib/AnimateChild.js\n// module id = 373\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.isCssAnimationSupported = undefined;\n\nvar _typeof2 = require('babel-runtime/helpers/typeof');\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nvar _Event = require('./Event');\n\nvar _Event2 = _interopRequireDefault(_Event);\n\nvar _componentClasses = require('component-classes');\n\nvar _componentClasses2 = _interopRequireDefault(_componentClasses);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar isCssAnimationSupported = _Event2['default'].endEvents.length !== 0;\nvar capitalPrefixes = ['Webkit', 'Moz', 'O',\n// ms is special .... !\n'ms'];\nvar prefixes = ['-webkit-', '-moz-', '-o-', 'ms-', ''];\n\nfunction getStyleProperty(node, name) {\n // old ff need null, https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle\n var style = window.getComputedStyle(node, null);\n var ret = '';\n for (var i = 0; i < prefixes.length; i++) {\n ret = style.getPropertyValue(prefixes[i] + name);\n if (ret) {\n break;\n }\n }\n return ret;\n}\n\nfunction fixBrowserByTimeout(node) {\n if (isCssAnimationSupported) {\n var transitionDelay = parseFloat(getStyleProperty(node, 'transition-delay')) || 0;\n var transitionDuration = parseFloat(getStyleProperty(node, 'transition-duration')) || 0;\n var animationDelay = parseFloat(getStyleProperty(node, 'animation-delay')) || 0;\n var animationDuration = parseFloat(getStyleProperty(node, 'animation-duration')) || 0;\n var time = Math.max(transitionDuration + transitionDelay, animationDuration + animationDelay);\n // sometimes, browser bug\n node.rcEndAnimTimeout = setTimeout(function () {\n node.rcEndAnimTimeout = null;\n if (node.rcEndListener) {\n node.rcEndListener();\n }\n }, time * 1000 + 200);\n }\n}\n\nfunction clearBrowserBugTimeout(node) {\n if (node.rcEndAnimTimeout) {\n clearTimeout(node.rcEndAnimTimeout);\n node.rcEndAnimTimeout = null;\n }\n}\n\nvar cssAnimation = function cssAnimation(node, transitionName, endCallback) {\n var nameIsObj = (typeof transitionName === 'undefined' ? 'undefined' : (0, _typeof3['default'])(transitionName)) === 'object';\n var className = nameIsObj ? transitionName.name : transitionName;\n var activeClassName = nameIsObj ? transitionName.active : transitionName + '-active';\n var end = endCallback;\n var start = void 0;\n var active = void 0;\n var nodeClasses = (0, _componentClasses2['default'])(node);\n\n if (endCallback && Object.prototype.toString.call(endCallback) === '[object Object]') {\n end = endCallback.end;\n start = endCallback.start;\n active = endCallback.active;\n }\n\n if (node.rcEndListener) {\n node.rcEndListener();\n }\n\n node.rcEndListener = function (e) {\n if (e && e.target !== node) {\n return;\n }\n\n if (node.rcAnimTimeout) {\n clearTimeout(node.rcAnimTimeout);\n node.rcAnimTimeout = null;\n }\n\n clearBrowserBugTimeout(node);\n\n nodeClasses.remove(className);\n nodeClasses.remove(activeClassName);\n\n _Event2['default'].removeEndEventListener(node, node.rcEndListener);\n node.rcEndListener = null;\n\n // Usually this optional end is used for informing an owner of\n // a leave animation and telling it to remove the child.\n if (end) {\n end();\n }\n };\n\n _Event2['default'].addEndEventListener(node, node.rcEndListener);\n\n if (start) {\n start();\n }\n nodeClasses.add(className);\n\n node.rcAnimTimeout = setTimeout(function () {\n node.rcAnimTimeout = null;\n nodeClasses.add(activeClassName);\n if (active) {\n setTimeout(active, 0);\n }\n fixBrowserByTimeout(node);\n // 30ms for firefox\n }, 30);\n\n return {\n stop: function stop() {\n if (node.rcEndListener) {\n node.rcEndListener();\n }\n }\n };\n};\n\ncssAnimation.style = function (node, style, callback) {\n if (node.rcEndListener) {\n node.rcEndListener();\n }\n\n node.rcEndListener = function (e) {\n if (e && e.target !== node) {\n return;\n }\n\n if (node.rcAnimTimeout) {\n clearTimeout(node.rcAnimTimeout);\n node.rcAnimTimeout = null;\n }\n\n clearBrowserBugTimeout(node);\n\n _Event2['default'].removeEndEventListener(node, node.rcEndListener);\n node.rcEndListener = null;\n\n // Usually this optional callback is used for informing an owner of\n // a leave animation and telling it to remove the child.\n if (callback) {\n callback();\n }\n };\n\n _Event2['default'].addEndEventListener(node, node.rcEndListener);\n\n node.rcAnimTimeout = setTimeout(function () {\n for (var s in style) {\n if (style.hasOwnProperty(s)) {\n node.style[s] = style[s];\n }\n }\n node.rcAnimTimeout = null;\n fixBrowserByTimeout(node);\n }, 0);\n};\n\ncssAnimation.setTransition = function (node, p, value) {\n var property = p;\n var v = value;\n if (value === undefined) {\n v = property;\n property = '';\n }\n property = property || '';\n capitalPrefixes.forEach(function (prefix) {\n node.style[prefix + 'Transition' + property] = v;\n });\n};\n\ncssAnimation.isCssAnimationSupported = isCssAnimationSupported;\n\nexports.isCssAnimationSupported = isCssAnimationSupported;\nexports['default'] = cssAnimation;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/css-animation/lib/index.js\n// module id = 374\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar START_EVENT_NAME_MAP = {\n transitionstart: {\n transition: 'transitionstart',\n WebkitTransition: 'webkitTransitionStart',\n MozTransition: 'mozTransitionStart',\n OTransition: 'oTransitionStart',\n msTransition: 'MSTransitionStart'\n },\n\n animationstart: {\n animation: 'animationstart',\n WebkitAnimation: 'webkitAnimationStart',\n MozAnimation: 'mozAnimationStart',\n OAnimation: 'oAnimationStart',\n msAnimation: 'MSAnimationStart'\n }\n};\n\nvar END_EVENT_NAME_MAP = {\n transitionend: {\n transition: 'transitionend',\n WebkitTransition: 'webkitTransitionEnd',\n MozTransition: 'mozTransitionEnd',\n OTransition: 'oTransitionEnd',\n msTransition: 'MSTransitionEnd'\n },\n\n animationend: {\n animation: 'animationend',\n WebkitAnimation: 'webkitAnimationEnd',\n MozAnimation: 'mozAnimationEnd',\n OAnimation: 'oAnimationEnd',\n msAnimation: 'MSAnimationEnd'\n }\n};\n\nvar startEvents = [];\nvar endEvents = [];\n\nfunction detectEvents() {\n var testEl = document.createElement('div');\n var style = testEl.style;\n\n if (!('AnimationEvent' in window)) {\n delete START_EVENT_NAME_MAP.animationstart.animation;\n delete END_EVENT_NAME_MAP.animationend.animation;\n }\n\n if (!('TransitionEvent' in window)) {\n delete START_EVENT_NAME_MAP.transitionstart.transition;\n delete END_EVENT_NAME_MAP.transitionend.transition;\n }\n\n function process(EVENT_NAME_MAP, events) {\n for (var baseEventName in EVENT_NAME_MAP) {\n if (EVENT_NAME_MAP.hasOwnProperty(baseEventName)) {\n var baseEvents = EVENT_NAME_MAP[baseEventName];\n for (var styleName in baseEvents) {\n if (styleName in style) {\n events.push(baseEvents[styleName]);\n break;\n }\n }\n }\n }\n }\n\n process(START_EVENT_NAME_MAP, startEvents);\n process(END_EVENT_NAME_MAP, endEvents);\n}\n\nif (typeof window !== 'undefined' && typeof document !== 'undefined') {\n detectEvents();\n}\n\nfunction addEventListener(node, eventName, eventListener) {\n node.addEventListener(eventName, eventListener, false);\n}\n\nfunction removeEventListener(node, eventName, eventListener) {\n node.removeEventListener(eventName, eventListener, false);\n}\n\nvar TransitionEvents = {\n // Start events\n startEvents: startEvents,\n\n addStartEventListener: function addStartEventListener(node, eventListener) {\n if (startEvents.length === 0) {\n window.setTimeout(eventListener, 0);\n return;\n }\n startEvents.forEach(function (startEvent) {\n addEventListener(node, startEvent, eventListener);\n });\n },\n removeStartEventListener: function removeStartEventListener(node, eventListener) {\n if (startEvents.length === 0) {\n return;\n }\n startEvents.forEach(function (startEvent) {\n removeEventListener(node, startEvent, eventListener);\n });\n },\n\n\n // End events\n endEvents: endEvents,\n\n addEndEventListener: function addEndEventListener(node, eventListener) {\n if (endEvents.length === 0) {\n window.setTimeout(eventListener, 0);\n return;\n }\n endEvents.forEach(function (endEvent) {\n addEventListener(node, endEvent, eventListener);\n });\n },\n removeEndEventListener: function removeEndEventListener(node, eventListener) {\n if (endEvents.length === 0) {\n return;\n }\n endEvents.forEach(function (endEvent) {\n removeEventListener(node, endEvent, eventListener);\n });\n }\n};\n\nexports['default'] = TransitionEvents;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/css-animation/lib/Event.js\n// module id = 375\n// module chunks = 0","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar util = {\n isAppearSupported: function isAppearSupported(props) {\n return props.transitionName && props.transitionAppear || props.animation.appear;\n },\n isEnterSupported: function isEnterSupported(props) {\n return props.transitionName && props.transitionEnter || props.animation.enter;\n },\n isLeaveSupported: function isLeaveSupported(props) {\n return props.transitionName && props.transitionLeave || props.animation.leave;\n },\n allowAppearCallback: function allowAppearCallback(props) {\n return props.transitionAppear || props.animation.appear;\n },\n allowEnterCallback: function allowEnterCallback(props) {\n return props.transitionEnter || props.animation.enter;\n },\n allowLeaveCallback: function allowLeaveCallback(props) {\n return props.transitionLeave || props.animation.leave;\n }\n};\nexports[\"default\"] = util;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rc-animate/lib/util/animate.js\n// module id = 376\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _LazyRenderBox = require('./LazyRenderBox');\n\nvar _LazyRenderBox2 = _interopRequireDefault(_LazyRenderBox);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar PopupInner = function (_Component) {\n (0, _inherits3['default'])(PopupInner, _Component);\n\n function PopupInner() {\n (0, _classCallCheck3['default'])(this, PopupInner);\n return (0, _possibleConstructorReturn3['default'])(this, _Component.apply(this, arguments));\n }\n\n PopupInner.prototype.render = function render() {\n var props = this.props;\n var className = props.className;\n if (!props.visible) {\n className += ' ' + props.hiddenClassName;\n }\n return _react2['default'].createElement(\n 'div',\n {\n className: className,\n onMouseEnter: props.onMouseEnter,\n onMouseLeave: props.onMouseLeave,\n onMouseDown: props.onMouseDown,\n onTouchStart: props.onTouchStart,\n style: props.style\n },\n _react2['default'].createElement(\n _LazyRenderBox2['default'],\n { className: props.prefixCls + '-content', visible: props.visible },\n props.children\n )\n );\n };\n\n return PopupInner;\n}(_react.Component);\n\nPopupInner.propTypes = {\n hiddenClassName: _propTypes2['default'].string,\n className: _propTypes2['default'].string,\n prefixCls: _propTypes2['default'].string,\n onMouseEnter: _propTypes2['default'].func,\n onMouseLeave: _propTypes2['default'].func,\n onMouseDown: _propTypes2['default'].func,\n onTouchStart: _propTypes2['default'].func,\n children: _propTypes2['default'].any\n};\nexports['default'] = PopupInner;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rc-trigger/lib/PopupInner.js\n// module id = 377\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n\nvar _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');\n\nvar _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar LazyRenderBox = function (_Component) {\n (0, _inherits3['default'])(LazyRenderBox, _Component);\n\n function LazyRenderBox() {\n (0, _classCallCheck3['default'])(this, LazyRenderBox);\n return (0, _possibleConstructorReturn3['default'])(this, _Component.apply(this, arguments));\n }\n\n LazyRenderBox.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {\n return nextProps.hiddenClassName || nextProps.visible;\n };\n\n LazyRenderBox.prototype.render = function render() {\n var _props = this.props,\n hiddenClassName = _props.hiddenClassName,\n visible = _props.visible,\n props = (0, _objectWithoutProperties3['default'])(_props, ['hiddenClassName', 'visible']);\n\n\n if (hiddenClassName || _react2['default'].Children.count(props.children) > 1) {\n if (!visible && hiddenClassName) {\n props.className += ' ' + hiddenClassName;\n }\n return _react2['default'].createElement('div', props);\n }\n\n return _react2['default'].Children.only(props.children);\n };\n\n return LazyRenderBox;\n}(_react.Component);\n\nLazyRenderBox.propTypes = {\n children: _propTypes2['default'].any,\n className: _propTypes2['default'].string,\n visible: _propTypes2['default'].bool,\n hiddenClassName: _propTypes2['default'].string\n};\nexports['default'] = LazyRenderBox;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rc-trigger/lib/LazyRenderBox.js\n// module id = 378\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nexports.default = function (obj, keys) {\n var target = {};\n\n for (var i in obj) {\n if (keys.indexOf(i) >= 0) continue;\n if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;\n target[i] = obj[i];\n }\n\n return target;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/babel-runtime/helpers/objectWithoutProperties.js\n// module id = 379\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n/**\n* This source code is quoted from rc-menu.\n* homepage: https://github.com/react-component/menu\n*/\nvar autoAdjustOverflow = {\n adjustX: 1,\n adjustY: 1\n};\n\nvar placements = exports.placements = {\n topLeft: {\n points: ['bl', 'tl'],\n overflow: autoAdjustOverflow,\n offset: [0, -7]\n },\n bottomLeft: {\n points: ['tl', 'bl'],\n overflow: autoAdjustOverflow,\n offset: [0, 7]\n },\n leftTop: {\n points: ['tr', 'tl'],\n overflow: autoAdjustOverflow,\n offset: [-4, 0]\n },\n rightTop: {\n points: ['tl', 'tr'],\n overflow: autoAdjustOverflow,\n offset: [4, 0]\n }\n};\n\nexports[\"default\"] = placements;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-menus/build/placements.js\n// module id = 380\n// module chunks = 0","// mutationobserver-shim v0.3.3 (github.com/megawac/MutationObserver.js)\n// Authors: Graeme Yeates (github.com/megawac) \n/*\n Shim for MutationObserver interface\n Author: Graeme Yeates (github.com/megawac)\n Repository: https://github.com/megawac/MutationObserver.js\n License: WTFPL V2, 2004 (wtfpl.net).\n Though credit and staring the repo will make me feel pretty, you can modify and redistribute as you please.\n Attempts to follow spec (https://www.w3.org/TR/dom/#mutation-observers) as closely as possible for native javascript\n See https://github.com/WebKit/webkit/blob/master/Source/WebCore/dom/MutationObserver.cpp for current webkit source c++ implementation\n*/\nwindow.MutationObserver||(window.MutationObserver=function(y){function z(a){this.i=[];this.m=a}function K(a){(function c(){var d=a.takeRecords();d.length&&a.m(d,a);a.h=setTimeout(c,z._period)})()}function r(a){var b={type:null,target:null,addedNodes:[],removedNodes:[],previousSibling:null,nextSibling:null,attributeName:null,attributeNamespace:null,oldValue:null},c;for(c in a)b[c]!==y&&a[c]!==y&&(b[c]=a[c]);return b}function L(a,b){var c=E(a,b);return function(d){var f=d.length;b.a&&3===a.nodeType&&\na.nodeValue!==c.a&&d.push(new r({type:\"characterData\",target:a,oldValue:c.a}));b.b&&c.b&&C(d,a,c.b,b.f);if(b.c||b.g)var m=M(d,a,c,b);if(m||d.length!==f)c=E(a,b)}}function N(a,b){return b.value}function O(a,b){return\"style\"!==b.name?b.value:a.style.cssText}function C(a,b,c,d){for(var f={},m=b.attributes,k,g,p=m.length;p--;)k=m[p],g=k.name,d&&d[g]===y||(F(b,k)!==c[g]&&a.push(r({type:\"attributes\",target:b,attributeName:g,oldValue:c[g],attributeNamespace:k.namespaceURI})),f[g]=!0);for(g in c)f[g]||a.push(r({target:b,\ntype:\"attributes\",attributeName:g,oldValue:c[g]}))}function M(a,b,c,d){function f(g,p,t,q,x){var A=g.length-1;x=-~((A-x)/2);for(var h,l,e;e=g.pop();)h=t[e.j],l=q[e.l],d.c&&x&&Math.abs(e.j-e.l)>=A&&(a.push(r({type:\"childList\",target:p,addedNodes:[h],removedNodes:[h],nextSibling:h.nextSibling,previousSibling:h.previousSibling})),x--),d.b&&l.b&&C(a,h,l.b,d.f),d.a&&3===h.nodeType&&h.nodeValue!==l.a&&a.push(r({type:\"characterData\",target:h,oldValue:l.a})),d.g&&m(h,l)}function m(g,p){for(var t=g.childNodes,\nq=p.c,x=t.length,A=q?q.length:0,h,l,e,n,v,B=0,w=0,u=0;w element\n //
  • Link
  • would be a good example\n // in this case the role on
  • should be \"none\" to\n // remove the implied listitem role.\n // https://www.w3.org/TR/wai-aria-practices-1.1/examples/menubar/menubar-1/menubar-1.html\n attrs.role = 'none';\n }\n // In case that onClick/onMouseLeave/onMouseEnter is passed down from owner\n var mouseEvent = {\n onClick: props.disabled ? null : this.onClick,\n onMouseLeave: props.disabled ? null : this.onMouseLeave,\n onMouseEnter: props.disabled ? null : this.onMouseEnter\n };\n var style = _extends({}, props.style);\n if (props.mode === 'inline') {\n style.paddingLeft = props.inlineIndent * props.level;\n }\n _util.menuAllProps.forEach(function (key) {\n return delete props[key];\n });\n var icon = this.props.itemIcon;\n if (typeof this.props.itemIcon === 'function') {\n icon = _react2[\"default\"].createElement(this.props.itemIcon, this.props);\n }\n return _react2[\"default\"].createElement(\n 'li',\n _extends({}, props, attrs, mouseEvent, {\n style: style\n }),\n props.children,\n icon\n );\n };\n\n return MenuItem;\n}(_react2[\"default\"].Component);\n\nMenuItem.propTypes = {\n attribute: _propTypes2[\"default\"].object,\n rootPrefixCls: _propTypes2[\"default\"].string,\n eventKey: _propTypes2[\"default\"].string,\n active: _propTypes2[\"default\"].bool,\n children: _propTypes2[\"default\"].any,\n selectedKeys: _propTypes2[\"default\"].array,\n disabled: _propTypes2[\"default\"].bool,\n title: _propTypes2[\"default\"].string,\n onItemHover: _propTypes2[\"default\"].func,\n onSelect: _propTypes2[\"default\"].func,\n onClick: _propTypes2[\"default\"].func,\n onDeselect: _propTypes2[\"default\"].func,\n parentMenu: _propTypes2[\"default\"].object,\n onDestroy: _propTypes2[\"default\"].func,\n onMouseEnter: _propTypes2[\"default\"].func,\n onMouseLeave: _propTypes2[\"default\"].func,\n multiple: _propTypes2[\"default\"].bool,\n isSelected: _propTypes2[\"default\"].bool,\n manualRef: _propTypes2[\"default\"].func,\n itemIcon: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].func, _propTypes2[\"default\"].node])\n};\nMenuItem.defaultProps = {\n onSelect: _util.noop,\n onMouseEnter: _util.noop,\n onMouseLeave: _util.noop,\n manualRef: _util.noop\n};\n\n\nMenuItem.isMenuItem = true;\n\nvar connected = (0, _miniStore.connect)(function (_ref, _ref2) {\n var activeKey = _ref.activeKey,\n selectedKeys = _ref.selectedKeys;\n var eventKey = _ref2.eventKey,\n subMenuKey = _ref2.subMenuKey;\n return {\n active: activeKey[subMenuKey] === eventKey,\n isSelected: selectedKeys.indexOf(eventKey) !== -1\n };\n})(MenuItem);\n\nexports[\"default\"] = connected;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-menus/build/MenuItem.js\n// module id = 382\n// module chunks = 0","'use strict';\n\nmodule.exports = require('./dom-scroll-into-view');\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/dom-scroll-into-view/lib/index.js\n// module id = 383\n// module chunks = 0","'use strict';\n\nvar util = require('./util');\n\nfunction scrollIntoView(elem, container, config) {\n config = config || {};\n // document 归一化到 window\n if (container.nodeType === 9) {\n container = util.getWindow(container);\n }\n\n var allowHorizontalScroll = config.allowHorizontalScroll;\n var onlyScrollIfNeeded = config.onlyScrollIfNeeded;\n var alignWithTop = config.alignWithTop;\n var alignWithLeft = config.alignWithLeft;\n var offsetTop = config.offsetTop || 0;\n var offsetLeft = config.offsetLeft || 0;\n var offsetBottom = config.offsetBottom || 0;\n var offsetRight = config.offsetRight || 0;\n\n allowHorizontalScroll = allowHorizontalScroll === undefined ? true : allowHorizontalScroll;\n\n var isWin = util.isWindow(container);\n var elemOffset = util.offset(elem);\n var eh = util.outerHeight(elem);\n var ew = util.outerWidth(elem);\n var containerOffset = undefined;\n var ch = undefined;\n var cw = undefined;\n var containerScroll = undefined;\n var diffTop = undefined;\n var diffBottom = undefined;\n var win = undefined;\n var winScroll = undefined;\n var ww = undefined;\n var wh = undefined;\n\n if (isWin) {\n win = container;\n wh = util.height(win);\n ww = util.width(win);\n winScroll = {\n left: util.scrollLeft(win),\n top: util.scrollTop(win)\n };\n // elem 相对 container 可视视窗的距离\n diffTop = {\n left: elemOffset.left - winScroll.left - offsetLeft,\n top: elemOffset.top - winScroll.top - offsetTop\n };\n diffBottom = {\n left: elemOffset.left + ew - (winScroll.left + ww) + offsetRight,\n top: elemOffset.top + eh - (winScroll.top + wh) + offsetBottom\n };\n containerScroll = winScroll;\n } else {\n containerOffset = util.offset(container);\n ch = container.clientHeight;\n cw = container.clientWidth;\n containerScroll = {\n left: container.scrollLeft,\n top: container.scrollTop\n };\n // elem 相对 container 可视视窗的距离\n // 注意边框, offset 是边框到根节点\n diffTop = {\n left: elemOffset.left - (containerOffset.left + (parseFloat(util.css(container, 'borderLeftWidth')) || 0)) - offsetLeft,\n top: elemOffset.top - (containerOffset.top + (parseFloat(util.css(container, 'borderTopWidth')) || 0)) - offsetTop\n };\n diffBottom = {\n left: elemOffset.left + ew - (containerOffset.left + cw + (parseFloat(util.css(container, 'borderRightWidth')) || 0)) + offsetRight,\n top: elemOffset.top + eh - (containerOffset.top + ch + (parseFloat(util.css(container, 'borderBottomWidth')) || 0)) + offsetBottom\n };\n }\n\n if (diffTop.top < 0 || diffBottom.top > 0) {\n // 强制向上\n if (alignWithTop === true) {\n util.scrollTop(container, containerScroll.top + diffTop.top);\n } else if (alignWithTop === false) {\n util.scrollTop(container, containerScroll.top + diffBottom.top);\n } else {\n // 自动调整\n if (diffTop.top < 0) {\n util.scrollTop(container, containerScroll.top + diffTop.top);\n } else {\n util.scrollTop(container, containerScroll.top + diffBottom.top);\n }\n }\n } else {\n if (!onlyScrollIfNeeded) {\n alignWithTop = alignWithTop === undefined ? true : !!alignWithTop;\n if (alignWithTop) {\n util.scrollTop(container, containerScroll.top + diffTop.top);\n } else {\n util.scrollTop(container, containerScroll.top + diffBottom.top);\n }\n }\n }\n\n if (allowHorizontalScroll) {\n if (diffTop.left < 0 || diffBottom.left > 0) {\n // 强制向上\n if (alignWithLeft === true) {\n util.scrollLeft(container, containerScroll.left + diffTop.left);\n } else if (alignWithLeft === false) {\n util.scrollLeft(container, containerScroll.left + diffBottom.left);\n } else {\n // 自动调整\n if (diffTop.left < 0) {\n util.scrollLeft(container, containerScroll.left + diffTop.left);\n } else {\n util.scrollLeft(container, containerScroll.left + diffBottom.left);\n }\n }\n } else {\n if (!onlyScrollIfNeeded) {\n alignWithLeft = alignWithLeft === undefined ? true : !!alignWithLeft;\n if (alignWithLeft) {\n util.scrollLeft(container, containerScroll.left + diffTop.left);\n } else {\n util.scrollLeft(container, containerScroll.left + diffBottom.left);\n }\n }\n }\n }\n}\n\nmodule.exports = scrollIntoView;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/dom-scroll-into-view/lib/dom-scroll-into-view.js\n// module id = 384\n// module chunks = 0","'use strict';\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol ? \"symbol\" : typeof obj; };\n\nvar RE_NUM = /[\\-+]?(?:\\d*\\.|)\\d+(?:[eE][\\-+]?\\d+|)/.source;\n\nfunction getClientPosition(elem) {\n var box = undefined;\n var x = undefined;\n var y = undefined;\n var doc = elem.ownerDocument;\n var body = doc.body;\n var docElem = doc && doc.documentElement;\n // 根据 GBS 最新数据,A-Grade Browsers 都已支持 getBoundingClientRect 方法,不用再考虑传统的实现方式\n box = elem.getBoundingClientRect();\n\n // 注:jQuery 还考虑减去 docElem.clientLeft/clientTop\n // 但测试发现,这样反而会导致当 html 和 body 有边距/边框样式时,获取的值不正确\n // 此外,ie6 会忽略 html 的 margin 值,幸运地是没有谁会去设置 html 的 margin\n\n x = box.left;\n y = box.top;\n\n // In IE, most of the time, 2 extra pixels are added to the top and left\n // due to the implicit 2-pixel inset border. In IE6/7 quirks mode and\n // IE6 standards mode, this border can be overridden by setting the\n // document element's border to zero -- thus, we cannot rely on the\n // offset always being 2 pixels.\n\n // In quirks mode, the offset can be determined by querying the body's\n // clientLeft/clientTop, but in standards mode, it is found by querying\n // the document element's clientLeft/clientTop. Since we already called\n // getClientBoundingRect we have already forced a reflow, so it is not\n // too expensive just to query them all.\n\n // ie 下应该减去窗口的边框吧,毕竟默认 absolute 都是相对窗口定位的\n // 窗口边框标准是设 documentElement ,quirks 时设置 body\n // 最好禁止在 body 和 html 上边框 ,但 ie < 9 html 默认有 2px ,减去\n // 但是非 ie 不可能设置窗口边框,body html 也不是窗口 ,ie 可以通过 html,body 设置\n // 标准 ie 下 docElem.clientTop 就是 border-top\n // ie7 html 即窗口边框改变不了。永远为 2\n // 但标准 firefox/chrome/ie9 下 docElem.clientTop 是窗口边框,即使设了 border-top 也为 0\n\n x -= docElem.clientLeft || body.clientLeft || 0;\n y -= docElem.clientTop || body.clientTop || 0;\n\n return {\n left: x,\n top: y\n };\n}\n\nfunction getScroll(w, top) {\n var ret = w['page' + (top ? 'Y' : 'X') + 'Offset'];\n var method = 'scroll' + (top ? 'Top' : 'Left');\n if (typeof ret !== 'number') {\n var d = w.document;\n // ie6,7,8 standard mode\n ret = d.documentElement[method];\n if (typeof ret !== 'number') {\n // quirks mode\n ret = d.body[method];\n }\n }\n return ret;\n}\n\nfunction getScrollLeft(w) {\n return getScroll(w);\n}\n\nfunction getScrollTop(w) {\n return getScroll(w, true);\n}\n\nfunction getOffset(el) {\n var pos = getClientPosition(el);\n var doc = el.ownerDocument;\n var w = doc.defaultView || doc.parentWindow;\n pos.left += getScrollLeft(w);\n pos.top += getScrollTop(w);\n return pos;\n}\nfunction _getComputedStyle(elem, name, computedStyle_) {\n var val = '';\n var d = elem.ownerDocument;\n var computedStyle = computedStyle_ || d.defaultView.getComputedStyle(elem, null);\n\n // https://github.com/kissyteam/kissy/issues/61\n if (computedStyle) {\n val = computedStyle.getPropertyValue(name) || computedStyle[name];\n }\n\n return val;\n}\n\nvar _RE_NUM_NO_PX = new RegExp('^(' + RE_NUM + ')(?!px)[a-z%]+$', 'i');\nvar RE_POS = /^(top|right|bottom|left)$/;\nvar CURRENT_STYLE = 'currentStyle';\nvar RUNTIME_STYLE = 'runtimeStyle';\nvar LEFT = 'left';\nvar PX = 'px';\n\nfunction _getComputedStyleIE(elem, name) {\n // currentStyle maybe null\n // http://msdn.microsoft.com/en-us/library/ms535231.aspx\n var ret = elem[CURRENT_STYLE] && elem[CURRENT_STYLE][name];\n\n // 当 width/height 设置为百分比时,通过 pixelLeft 方式转换的 width/height 值\n // 一开始就处理了! CUSTOM_STYLE.height,CUSTOM_STYLE.width ,cssHook 解决@2011-08-19\n // 在 ie 下不对,需要直接用 offset 方式\n // borderWidth 等值也有问题,但考虑到 borderWidth 设为百分比的概率很小,这里就不考虑了\n\n // From the awesome hack by Dean Edwards\n // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291\n // If we're not dealing with a regular pixel number\n // but a number that has a weird ending, we need to convert it to pixels\n // exclude left right for relativity\n if (_RE_NUM_NO_PX.test(ret) && !RE_POS.test(name)) {\n // Remember the original values\n var style = elem.style;\n var left = style[LEFT];\n var rsLeft = elem[RUNTIME_STYLE][LEFT];\n\n // prevent flashing of content\n elem[RUNTIME_STYLE][LEFT] = elem[CURRENT_STYLE][LEFT];\n\n // Put in the new values to get a computed value out\n style[LEFT] = name === 'fontSize' ? '1em' : ret || 0;\n ret = style.pixelLeft + PX;\n\n // Revert the changed values\n style[LEFT] = left;\n\n elem[RUNTIME_STYLE][LEFT] = rsLeft;\n }\n return ret === '' ? 'auto' : ret;\n}\n\nvar getComputedStyleX = undefined;\nif (typeof window !== 'undefined') {\n getComputedStyleX = window.getComputedStyle ? _getComputedStyle : _getComputedStyleIE;\n}\n\nfunction each(arr, fn) {\n for (var i = 0; i < arr.length; i++) {\n fn(arr[i]);\n }\n}\n\nfunction isBorderBoxFn(elem) {\n return getComputedStyleX(elem, 'boxSizing') === 'border-box';\n}\n\nvar BOX_MODELS = ['margin', 'border', 'padding'];\nvar CONTENT_INDEX = -1;\nvar PADDING_INDEX = 2;\nvar BORDER_INDEX = 1;\nvar MARGIN_INDEX = 0;\n\nfunction swap(elem, options, callback) {\n var old = {};\n var style = elem.style;\n var name = undefined;\n\n // Remember the old values, and insert the new ones\n for (name in options) {\n if (options.hasOwnProperty(name)) {\n old[name] = style[name];\n style[name] = options[name];\n }\n }\n\n callback.call(elem);\n\n // Revert the old values\n for (name in options) {\n if (options.hasOwnProperty(name)) {\n style[name] = old[name];\n }\n }\n}\n\nfunction getPBMWidth(elem, props, which) {\n var value = 0;\n var prop = undefined;\n var j = undefined;\n var i = undefined;\n for (j = 0; j < props.length; j++) {\n prop = props[j];\n if (prop) {\n for (i = 0; i < which.length; i++) {\n var cssProp = undefined;\n if (prop === 'border') {\n cssProp = prop + which[i] + 'Width';\n } else {\n cssProp = prop + which[i];\n }\n value += parseFloat(getComputedStyleX(elem, cssProp)) || 0;\n }\n }\n }\n return value;\n}\n\n/**\n * A crude way of determining if an object is a window\n * @member util\n */\nfunction isWindow(obj) {\n // must use == for ie8\n /* eslint eqeqeq:0 */\n return obj != null && obj == obj.window;\n}\n\nvar domUtils = {};\n\neach(['Width', 'Height'], function (name) {\n domUtils['doc' + name] = function (refWin) {\n var d = refWin.document;\n return Math.max(\n // firefox chrome documentElement.scrollHeight< body.scrollHeight\n // ie standard mode : documentElement.scrollHeight> body.scrollHeight\n d.documentElement['scroll' + name],\n // quirks : documentElement.scrollHeight 最大等于可视窗口多一点?\n d.body['scroll' + name], domUtils['viewport' + name](d));\n };\n\n domUtils['viewport' + name] = function (win) {\n // pc browser includes scrollbar in window.innerWidth\n var prop = 'client' + name;\n var doc = win.document;\n var body = doc.body;\n var documentElement = doc.documentElement;\n var documentElementProp = documentElement[prop];\n // 标准模式取 documentElement\n // backcompat 取 body\n return doc.compatMode === 'CSS1Compat' && documentElementProp || body && body[prop] || documentElementProp;\n };\n});\n\n/*\n 得到元素的大小信息\n @param elem\n @param name\n @param {String} [extra] 'padding' : (css width) + padding\n 'border' : (css width) + padding + border\n 'margin' : (css width) + padding + border + margin\n */\nfunction getWH(elem, name, extra) {\n if (isWindow(elem)) {\n return name === 'width' ? domUtils.viewportWidth(elem) : domUtils.viewportHeight(elem);\n } else if (elem.nodeType === 9) {\n return name === 'width' ? domUtils.docWidth(elem) : domUtils.docHeight(elem);\n }\n var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom'];\n var borderBoxValue = name === 'width' ? elem.offsetWidth : elem.offsetHeight;\n var computedStyle = getComputedStyleX(elem);\n var isBorderBox = isBorderBoxFn(elem, computedStyle);\n var cssBoxValue = 0;\n if (borderBoxValue == null || borderBoxValue <= 0) {\n borderBoxValue = undefined;\n // Fall back to computed then un computed css if necessary\n cssBoxValue = getComputedStyleX(elem, name);\n if (cssBoxValue == null || Number(cssBoxValue) < 0) {\n cssBoxValue = elem.style[name] || 0;\n }\n // Normalize '', auto, and prepare for extra\n cssBoxValue = parseFloat(cssBoxValue) || 0;\n }\n if (extra === undefined) {\n extra = isBorderBox ? BORDER_INDEX : CONTENT_INDEX;\n }\n var borderBoxValueOrIsBorderBox = borderBoxValue !== undefined || isBorderBox;\n var val = borderBoxValue || cssBoxValue;\n if (extra === CONTENT_INDEX) {\n if (borderBoxValueOrIsBorderBox) {\n return val - getPBMWidth(elem, ['border', 'padding'], which, computedStyle);\n }\n return cssBoxValue;\n }\n if (borderBoxValueOrIsBorderBox) {\n var padding = extra === PADDING_INDEX ? -getPBMWidth(elem, ['border'], which, computedStyle) : getPBMWidth(elem, ['margin'], which, computedStyle);\n return val + (extra === BORDER_INDEX ? 0 : padding);\n }\n return cssBoxValue + getPBMWidth(elem, BOX_MODELS.slice(extra), which, computedStyle);\n}\n\nvar cssShow = {\n position: 'absolute',\n visibility: 'hidden',\n display: 'block'\n};\n\n// fix #119 : https://github.com/kissyteam/kissy/issues/119\nfunction getWHIgnoreDisplay(elem) {\n var val = undefined;\n var args = arguments;\n // in case elem is window\n // elem.offsetWidth === undefined\n if (elem.offsetWidth !== 0) {\n val = getWH.apply(undefined, args);\n } else {\n swap(elem, cssShow, function () {\n val = getWH.apply(undefined, args);\n });\n }\n return val;\n}\n\nfunction css(el, name, v) {\n var value = v;\n if ((typeof name === 'undefined' ? 'undefined' : _typeof(name)) === 'object') {\n for (var i in name) {\n if (name.hasOwnProperty(i)) {\n css(el, i, name[i]);\n }\n }\n return undefined;\n }\n if (typeof value !== 'undefined') {\n if (typeof value === 'number') {\n value += 'px';\n }\n el.style[name] = value;\n return undefined;\n }\n return getComputedStyleX(el, name);\n}\n\neach(['width', 'height'], function (name) {\n var first = name.charAt(0).toUpperCase() + name.slice(1);\n domUtils['outer' + first] = function (el, includeMargin) {\n return el && getWHIgnoreDisplay(el, name, includeMargin ? MARGIN_INDEX : BORDER_INDEX);\n };\n var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom'];\n\n domUtils[name] = function (elem, val) {\n if (val !== undefined) {\n if (elem) {\n var computedStyle = getComputedStyleX(elem);\n var isBorderBox = isBorderBoxFn(elem);\n if (isBorderBox) {\n val += getPBMWidth(elem, ['padding', 'border'], which, computedStyle);\n }\n return css(elem, name, val);\n }\n return undefined;\n }\n return elem && getWHIgnoreDisplay(elem, name, CONTENT_INDEX);\n };\n});\n\n// 设置 elem 相对 elem.ownerDocument 的坐标\nfunction setOffset(elem, offset) {\n // set position first, in-case top/left are set even on static elem\n if (css(elem, 'position') === 'static') {\n elem.style.position = 'relative';\n }\n\n var old = getOffset(elem);\n var ret = {};\n var current = undefined;\n var key = undefined;\n\n for (key in offset) {\n if (offset.hasOwnProperty(key)) {\n current = parseFloat(css(elem, key)) || 0;\n ret[key] = current + offset[key] - old[key];\n }\n }\n css(elem, ret);\n}\n\nmodule.exports = _extends({\n getWindow: function getWindow(node) {\n var doc = node.ownerDocument || node;\n return doc.defaultView || doc.parentWindow;\n },\n offset: function offset(el, value) {\n if (typeof value !== 'undefined') {\n setOffset(el, value);\n } else {\n return getOffset(el);\n }\n },\n\n isWindow: isWindow,\n each: each,\n css: css,\n clone: function clone(obj) {\n var ret = {};\n for (var i in obj) {\n if (obj.hasOwnProperty(i)) {\n ret[i] = obj[i];\n }\n }\n var overflow = obj.overflow;\n if (overflow) {\n for (var i in obj) {\n if (obj.hasOwnProperty(i)) {\n ret.overflow[i] = obj.overflow[i];\n }\n }\n }\n return ret;\n },\n scrollLeft: function scrollLeft(w, v) {\n if (isWindow(w)) {\n if (v === undefined) {\n return getScrollLeft(w);\n }\n window.scrollTo(v, getScrollTop(w));\n } else {\n if (v === undefined) {\n return w.scrollLeft;\n }\n w.scrollLeft = v;\n }\n },\n scrollTop: function scrollTop(w, v) {\n if (isWindow(w)) {\n if (v === undefined) {\n return getScrollTop(w);\n }\n window.scrollTo(getScrollLeft(w), v);\n } else {\n if (v === undefined) {\n return w.scrollTop;\n }\n w.scrollTop = v;\n }\n },\n\n viewportWidth: 0,\n viewportHeight: 0\n}, domUtils);\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/dom-scroll-into-view/lib/util.js\n// module id = 385\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _util = require('./util');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**\n * This source code is quoted from rc-menu.\n * homepage: https://github.com/react-component/menu\n */\n\n\nvar MenuItemGroup = function (_React$Component) {\n _inherits(MenuItemGroup, _React$Component);\n\n function MenuItemGroup() {\n var _temp, _this, _ret;\n\n _classCallCheck(this, MenuItemGroup);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.renderInnerMenuItem = function (item) {\n var _this$props = _this.props,\n renderMenuItem = _this$props.renderMenuItem,\n index = _this$props.index;\n\n return renderMenuItem(item, index, _this.props.subMenuKey);\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n MenuItemGroup.prototype.render = function render() {\n var props = _objectWithoutProperties(this.props, []);\n\n var _props$className = props.className,\n className = _props$className === undefined ? '' : _props$className,\n rootPrefixCls = props.rootPrefixCls;\n\n var titleClassName = rootPrefixCls + '-item-group-title';\n var listClassName = rootPrefixCls + '-item-group-list';\n var title = props.title,\n children = props.children;\n\n _util.menuAllProps.forEach(function (key) {\n return delete props[key];\n });\n\n // Set onClick to null, to ignore propagated onClick event\n delete props.onClick;\n\n return _react2[\"default\"].createElement(\n 'li',\n _extends({}, props, { className: className + ' ' + rootPrefixCls + '-item-group' }),\n _react2[\"default\"].createElement(\n 'div',\n {\n className: titleClassName,\n title: typeof title === 'string' ? title : undefined\n },\n title\n ),\n _react2[\"default\"].createElement(\n 'ul',\n { className: listClassName },\n _react2[\"default\"].Children.map(children, this.renderInnerMenuItem)\n )\n );\n };\n\n return MenuItemGroup;\n}(_react2[\"default\"].Component);\n\nMenuItemGroup.propTypes = {\n renderMenuItem: _propTypes2[\"default\"].func,\n index: _propTypes2[\"default\"].number,\n className: _propTypes2[\"default\"].string,\n subMenuKey: _propTypes2[\"default\"].string,\n rootPrefixCls: _propTypes2[\"default\"].string\n};\nMenuItemGroup.defaultProps = {\n disabled: true\n};\n\n\nMenuItemGroup.isMenuItemGroup = true;\n\nexports[\"default\"] = MenuItemGroup;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-menus/build/MenuItemGroup.js\n// module id = 386\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**\n * This source code is quoted from rc-menu.\n * homepage: https://github.com/react-component/menu\n */\n\n\nvar Divider = function (_React$Component) {\n _inherits(Divider, _React$Component);\n\n function Divider() {\n _classCallCheck(this, Divider);\n\n return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n Divider.prototype.render = function render() {\n var _props = this.props,\n className = _props.className,\n rootPrefixCls = _props.rootPrefixCls,\n style = _props.style;\n\n return _react2[\"default\"].createElement('li', {\n className: className + ' ' + rootPrefixCls + '-item-divider',\n style: style\n });\n };\n\n return Divider;\n}(_react2[\"default\"].Component);\n\nDivider.propTypes = {\n className: _propTypes2[\"default\"].string,\n rootPrefixCls: _propTypes2[\"default\"].string,\n style: _propTypes2[\"default\"].object\n};\nDivider.defaultProps = {\n // To fix keyboard UX.\n disabled: true,\n className: '',\n style: {}\n};\nexports[\"default\"] = Divider;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-menus/build/Divider.js\n// module id = 387\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar defaultProps = {\n clsPrefix: \"u-navbar-side-container\",\n sideActive: false\n};\n\nvar NavSideContainer = function (_React$Component) {\n _inherits(NavSideContainer, _React$Component);\n\n function NavSideContainer() {\n _classCallCheck(this, NavSideContainer);\n\n return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n NavSideContainer.prototype.render = function render() {\n var _props = this.props,\n className = _props.className,\n children = _props.children,\n clsPrefix = _props.clsPrefix,\n sideActive = _props.sideActive,\n expanded = _props.expanded,\n props = _objectWithoutProperties(_props, ['className', 'children', 'clsPrefix', 'sideActive', 'expanded']);\n\n //const navbarProps = this.context.u_navbar;\n\n return _react2[\"default\"].createElement(\n 'div',\n { className: (0, _classnames2[\"default\"])(className, clsPrefix, expanded && 'expanded') },\n children\n );\n };\n\n return NavSideContainer;\n}(_react2[\"default\"].Component);\n\nNavSideContainer.defaultProps = defaultProps;\n\nexports[\"default\"] = NavSideContainer;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-menus/build/SideContainer.js\n// module id = 388\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _createChainedFunction = require('tinper-bee-core/lib/createChainedFunction');\n\nvar _createChainedFunction2 = _interopRequireDefault(_createChainedFunction);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = {\n onClick: _propTypes2[\"default\"].func,\n /**\n * The toggle content, if left empty it will render the default toggle (seen above).\n */\n show: _propTypes2[\"default\"].bool,\n children: _propTypes2[\"default\"].node\n};\n\nvar contextTypes = {\n u_navbar: _propTypes2[\"default\"].shape({\n expanded: _propTypes2[\"default\"].bool,\n onToggle: _propTypes2[\"default\"].func\n })\n};\n\nvar defaultProps = {\n clsPrefix: 'u-navbar-toggle',\n show: false\n};\n\nvar MenuToggle = function (_React$Component) {\n _inherits(MenuToggle, _React$Component);\n\n function MenuToggle(props) {\n _classCallCheck(this, MenuToggle);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));\n\n _this.state = {\n toggleState: false\n //this.handleRender = this.handleRender.bind(this);\n };return _this;\n }\n\n MenuToggle.prototype.handleClick = function handleClick() {\n var _context$u_navbar = this.context.u_navbar,\n expanded = _context$u_navbar.expanded,\n onToggle = _context$u_navbar.onToggle;\n\n this.setState({ toggleState: !this.state.toggleState });\n if (onToggle) {\n onToggle(!expanded);\n }\n };\n\n MenuToggle.prototype.render = function render() {\n var _props = this.props,\n onClick = _props.onClick,\n className = _props.className,\n children = _props.children,\n clsPrefix = _props.clsPrefix,\n show = _props.show,\n props = _objectWithoutProperties(_props, ['onClick', 'className', 'children', 'clsPrefix', 'show']);\n //const navbarProps = this.context.u_navbar || { bsClass: 'navbar' };\n //console.log(navbarProps.onToggle, navbarProps.expanded);\n\n var buttonProps = _extends({\n type: 'button'\n }, props, {\n onClick: (0, _createChainedFunction2[\"default\"])(onClick, this.handleClick.bind(this)),\n className: (0, _classnames2[\"default\"])(className, clsPrefix, show && 'show')\n //!this.context.u_navbar.expanded && 'collapsed',\n });\n\n if (children) {\n return _react2[\"default\"].createElement(\n 'button',\n buttonProps,\n children\n );\n }\n //当show存在时,渲染左侧静态面包按钮\n return _react2[\"default\"].createElement(\n 'div',\n null,\n show && this.state.toggleState && _react2[\"default\"].createElement(\n 'button',\n buttonProps,\n _react2[\"default\"].createElement(\n 'span',\n { className: 'sr-only' },\n 'Toggle navigation'\n ),\n _react2[\"default\"].createElement('span', { className: 'icon-bar' }),\n _react2[\"default\"].createElement('span', { className: 'icon-bar' }),\n _react2[\"default\"].createElement('span', { className: 'icon-bar' })\n ),\n show && !this.state.toggleState && _react2[\"default\"].createElement(\n 'button',\n buttonProps,\n _react2[\"default\"].createElement('span', { className: 'uf uf-arrow-left' })\n ),\n !show && !this.state.toggleState && _react2[\"default\"].createElement(\n 'button',\n buttonProps,\n _react2[\"default\"].createElement(\n 'span',\n { className: 'sr-only' },\n 'Toggle navigation'\n ),\n _react2[\"default\"].createElement('span', { className: 'icon-bar' }),\n _react2[\"default\"].createElement('span', { className: 'icon-bar' }),\n _react2[\"default\"].createElement('span', { className: 'icon-bar' })\n )\n );\n };\n\n return MenuToggle;\n}(_react2[\"default\"].Component);\n\nMenuToggle.propTypes = propTypes;\nMenuToggle.defaultProps = defaultProps;\nMenuToggle.contextTypes = contextTypes;\n\nexports[\"default\"] = MenuToggle;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-menus/build/MenuToggle.js\n// module id = 389\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _tinperBeeCore = require('tinper-bee-core');\n\nfunction animate(node, show, done) {\n var height = void 0;\n return (0, _tinperBeeCore.cssAnimation)(node, 'u-motion-collapse', {\n start: function start() {\n if (!show) {\n node.style.height = node.offsetHeight + 'px';\n } else {\n height = node.offsetHeight;\n node.style.height = 0;\n }\n },\n active: function active() {\n node.style.height = (show ? height : 0) + 'px';\n },\n end: function end() {\n node.style.height = '';\n done();\n }\n });\n}\n\nvar animation = {\n enter: function enter(node, done) {\n return animate(node, true, done);\n },\n leave: function leave(node, done) {\n return animate(node, false, done);\n },\n appear: function appear(node, done) {\n return animate(node, true, done);\n }\n};\n\nexports[\"default\"] = animation;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-menus/build/_util/openAnimation.js\n// module id = 390\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _warning = require('warning');\n\nvar _warning2 = _interopRequireDefault(_warning);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nvar warned = {};\n\nexports[\"default\"] = function (valid, message) {\n if (!valid && !warned[message]) {\n (0, _warning2[\"default\"])(false, message);\n warned[message] = true;\n }\n};\n\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-menus/build/_util/warning.js\n// module id = 391\n// module chunks = 0","import React, { Component } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport shallowequal from 'shallowequal';\r\n\r\nconst propTypes = {\r\n record: PropTypes.object,\r\n clsPrefix: PropTypes.string,\r\n expandable: PropTypes.any,\r\n expanded: PropTypes.bool,\r\n needIndentSpaced: PropTypes.bool,\r\n onExpand: PropTypes.func,\r\n};\r\n\r\nclass ExpandIcon extends Component{\r\n constructor(props){\r\n super(props);\r\n }\r\n shouldComponentUpdate(nextProps) {\r\n return !shallowequal(nextProps, this.props);\r\n }\r\n\r\n onExpand = (status, record, e) => {\r\n const { onExpand } = this.props;\r\n e.stopPropagation();\r\n onExpand(status, record, e);\r\n };\r\n render() {\r\n const { expandable, clsPrefix, onExpand, needIndentSpaced, expanded, record, isHiddenExpandIcon,expandedIcon,collapsedIcon } = this.props;\r\n if (expandable && !isHiddenExpandIcon) {\r\n const expandClassName = expanded ? 'expanded' : 'collapsed';\r\n let currentIcon = ;\r\n if(expanded && expandedIcon){\r\n currentIcon = expandedIcon;\r\n }else if(!expanded && collapsedIcon){\r\n currentIcon = collapsedIcon;\r\n }\r\n return ( this.onExpand(!expanded, record, e)} className='expand-icon-con'>{currentIcon});\r\n } else if (needIndentSpaced || isHiddenExpandIcon) {\r\n return ;\r\n }\r\n return null;\r\n }\r\n};\r\n\r\nExpandIcon.propTypes = propTypes;\r\n\r\nexport default ExpandIcon;\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/ExpandIcon.js","import React, { Component } from \"react\";\nimport ReactDOM from 'react-dom';\nimport PropTypes from \"prop-types\";\nimport { debounce } from \"throttle-debounce\";\nimport { Event,EventUtil} from \"./lib/utils\";\nimport FilterType from \"./FilterType\";\n\nconst propTypes = {\n clsPrefix: PropTypes.string,\n rowStyle: PropTypes.object,\n rows: PropTypes.array\n};\n\n\nfunction getDiv(id){\n let div = document.createElement(\"div\");\n div.className = \"u-table-drag-hidden-cont\";\n div.id = id;\n return div;\n}\n\nclass TableHeader extends Component {\n constructor(props) {\n super(props);\n this.currentObj = null;\n this.theadKey = new Date().getTime();\n this.drag = {\n option:''\n };\n this.minWidth = parseInt(props.minColumnWidth);\n this.table = null;\n this._thead = null;//当前对象\n this.event = false;//避免多次绑定问题\n this.lastColumWidth = null;//非固定列最后一列的初始化宽度\n this.fixedTable = {};\n }\n\n static defaultProps = {\n contentWidthDiff: 0\n };\n\n componentWillReceiveProps(nextProps) {\n // 表格column改变时,要重新绑定拖拽事件,否则拖拽不生效\n const { columnsChildrenList:oldCols } = this.props;\n const { columnsChildrenList:newCols } = nextProps;\n if (this._thead) {\n if(newCols.length !== oldCols.length){\n this.event = false;\n return;\n } \n oldCols.some((item, index) => {\n if (newCols[index] && newCols[index].dataIndex !== item.dataIndex) {\n this.event = false;\n return true;\n }\n });\n }\n }\n\n componentDidUpdate(){\n this.initTable();\n this.initEvent();\n }\n\n componentDidMount(){\n let uid = \"_table_uid_\"+new Date().getTime();\n this._table_none_cont_id = uid;\n let div = getDiv(uid);\n document.querySelector(\"body\").appendChild(div);\n }\n\n componentWillUnmount(){\n this.fixedTable = null;\n if(!this.table)return;\n if (this.props.draggable){\n this.removeDragAbleEvent();\n }\n if(this.props.dragborder){\n this.removeDragBorderEvent();\n }\n this.doEventList(this.table.tr,(tr)=>{\n this.eventListen([{key:'mousedown',fun:this.onTrMouseDown}],'remove',tr); \n })\n // this.eventListen([{key:'mousedown',fun:this.onTrMouseDown}],'remove',this.table.tr[0]);\n this.eventListen([{key:'mouseup',fun:this.bodyonLineMouseUp}],'remove',document.body);\n }\n\n /**\n * 获取table的属性存放在this.table 中。(公用方法)\n * @returns\n * @memberof TableHeader\n */\n initTable(){\n const {contentTable} = this.props;\n if(!this.props.dragborder && !this.props.draggable)return;\n let tableDome = this._thead.parentNode;\n let table = {};\n if(tableDome && tableDome.nodeName && tableDome.nodeName.toUpperCase() == \"TABLE\"){\n table.table = tableDome;\n table.cols = tableDome.getElementsByTagName(\"col\");\n table.ths = tableDome.getElementsByTagName(\"th\");\n table.tr = tableDome.getElementsByTagName(\"tr\");\n table.tableBody = contentTable.querySelector('.u-table-scroll .u-table-body') && contentTable.querySelector('.u-table-scroll .u-table-body');\n table.tableBodyCols = contentTable.querySelector('.u-table-scroll .u-table-body') && contentTable.querySelector('.u-table-scroll .u-table-body').getElementsByTagName(\"col\");\n }\n\n table.fixedLeftHeaderTable = contentTable.querySelector('.u-table-fixed-left .u-table-header') ;\n table.fixedRighHeadertTable = contentTable.querySelector('.u-table-fixed-right .u-table-header');\n table.contentTableHeader = contentTable.querySelector('.u-table-scroll .u-table-header');\n table.fixedLeftBodyTable = contentTable.querySelector('.u-table-fixed-left .u-table-body-outer') ;\n table.fixedRightBodyTable = contentTable.querySelector('.u-table-fixed-right .u-table-body-outer') ;\n table.innerTableBody= contentTable.querySelector('.u-table-scroll .u-table-body table');\n\n this.table = table;\n\n if(!this.props.dragborder)return;\n if(document.getElementById(\"u-table-drag-thead-\" + this.theadKey)){\n this.fixedTable = {};\n let _fixedParentContext = document.getElementById(\"u-table-drag-thead-\" + this.theadKey).parentNode;\n let siblingDom = _fixedParentContext.parentNode.nextElementSibling;\n if (siblingDom) {\n let fixedTable = siblingDom.querySelector(\"table\");\n this.fixedTable.table = fixedTable\n this.fixedTable.cols = fixedTable.getElementsByTagName(\"col\");\n // this.fixedTable.ths = fixedTable.tableDome.getElementsByTagName(\"th\");\n }\n }\n }\n\n /**\n * 事件初始化\n */\n initEvent(){\n let {dragborder,draggable,rows} = this.props;\n // 当传入的 columns 为空时,不绑定拖拽事件\n if(Object.prototype.toString.call(rows) === '[object Array]' && rows.length === 0){\n return;\n }\n if(!this.event){ //避免多次绑定问题。\n this.event = true;\n if(dragborder){\n this.dragBorderEventInit();//列宽\n }\n if(draggable){\n this.dragAbleEventInit();//交换列\n }\n if(this.table && this.table.tr){\n // this.eventListen([{key:'mousedown',fun:this.onTrMouseDown}],'',this.table.tr[0]);//body mouseup\n this.doEventList(this.table.tr,(tr)=>{\n this.eventListen([{key:'mousedown',fun:this.onTrMouseDown}],'',tr);//body mouseup\n })\n }\n this.eventListen([{key:'mouseup',fun:this.bodyonLineMouseUp}],'',document.body);//body mouseup\n }\n }\n\n\n doEventList(trs,action){\n for (let index = 0; index < trs.length; index++) {\n action(trs[index]);\n }\n }\n\n /**\n * 拖拽列宽事件的监听\n */\n dragBorderEventInit (){\n if(!this.props.dragborder )return;\n let events = [\n {key:'mouseup', fun:this.onTrMouseUp},\n {key:'mousemove', fun:this.onTrMouseMove},\n // {key:'mousemove', fun:debounce(50,this.onTrMouseMove)},//函数节流后体验很差\n ];\n this.doEventList(this.table.tr,(tr)=>{\n this.eventListen(events,'',tr);//表示把事件添加到th元素上\n })\n // this.eventListen(events,'',this.table.tr[0]);//表示把事件添加到th元素上\n }\n\n /**\n * 删除拖动改变列宽的事件监听\n */\n removeDragBorderEvent(){\n let events = [\n {key:'mouseup', fun:this.onTrMouseUp},\n {key:'mousemove', fun:this.onTrMouseMove},\n ];\n // this.eventListen(events,'remove',this.table.tr[0]);\n this.doEventList(this.table.tr,(tr)=>{\n this.eventListen(events,'remove',this.table.tr);\n })\n }\n\n eventListen(events,type,eventSource){\n if(!this.table)return;\n if(!eventSource){\n console.log(\"Please set the attributes of column !\");\n return;\n }\n let {tr} = this.table;\n for (let i = 0; i < events.length; i++) {\n const _event = events[i];\n if(type === \"remove\"){\n EventUtil.removeHandler(eventSource,_event.key,_event.fun);\n }else{\n EventUtil.addHandler(eventSource,_event.key,_event.fun);\n }\n }\n }\n\n /**\n *\n *根据 data-type 来获取当前拖拽的对象的Object,如果为null表示拖动的对象并非是online\n * @memberof TableHeader\n */\n getOnLineObject = (_element) =>{\n let type = _element.getAttribute('data-type'),elementObj = null;\n if(!type){\n let element = _element.parentElement||parentNode;//兼容写法。\n if(element.getAttribute('data-type')){\n elementObj = element;\n }\n }else{\n elementObj = _element;\n }\n return elementObj;\n }\n\n /**\n * 调整列宽的down事件\n * @memberof TableHeader\n */\n onTrMouseDown = (e) => {\n Event.stopPropagation(e);\n let event = Event.getEvent(e) ,\n targetEvent = Event.getTarget(event);\n const { clsPrefix, contentTable,lastShowIndex,columnsChildrenList } = this.props;\n // let currentElement = this.getOnLineObject(targetEvent);\n let currentElement = this.getTargetToType(targetEvent);\n if(!currentElement)return;\n let type = currentElement.getAttribute('data-type');\n if(!this.props.dragborder && !this.props.draggable)return;\n if(type == 'online' && this.props.dragborder){\n // if(!this.props.dragborder)return;\n targetEvent.setAttribute('draggable',false);//添加交换列效果\n let currentIndex = -1;\n let defaultWidth = currentElement.getAttribute(\"data-th-width\"); \n this.drag.option = \"border\";//拖拽操作\n if(columnsChildrenList){\n let columnKey = currentElement.getAttribute(\"data-line-key\");\n if(columnKey){\n currentIndex = columnsChildrenList.findIndex(da=> (da.key && da.key.toLowerCase()) === columnKey.toLowerCase());\n }\n }\n if(currentIndex < 0){\n console.log('Key must be set for column!')\n return;\n }\n let currentObj = this.table.cols[currentIndex];\n this.drag.currIndex = currentIndex;\n this.drag.oldLeft = event.x;\n this.drag.oldWidth = parseInt((currentObj).style.width);\n this.drag.minWidth = currentObj.style.minWidth != \"\"?parseInt(currentObj.style.minWidth):defaultWidth;\n this.drag.tableWidth = parseInt(this.table.table.style.width ?this.table.table.style.width:this.table.table.scrollWidth);\n if(!this.tableOldWidth){\n this.tableOldWidth = this.drag.tableWidth;//this.getTableWidth();\n }\n if(!this.lastColumWidth){\n this.lastColumWidth = parseInt(this.table.cols[lastShowIndex].style.width);\n }\n }else if(type != 'online' && this.props.draggable){\n // if (!this.props.draggable || targetEvent.nodeName.toUpperCase() != \"TH\") return;\n if (!this.props.draggable) return;\n let th = this.getTargetToType(targetEvent);\n th.setAttribute('draggable',true);//添加交换列效果\n this.drag.option = 'dragAble';\n this.currentDome = th;\n let currentIndex = parseInt(th.getAttribute(\"data-line-index\"));\n this.drag.currIndex = currentIndex;\n }else{\n // console.log(\"onTrMouseDown dragborder or draggable is all false !\");\n return ;\n }\n };\n\n getTableWidth = ()=>{\n let tableWidth = 0,offWidth = 0;//this.table.cols.length;\n for (let index = 0; index < this.table.cols.length; index++) {\n let da = this.table.cols[index];\n tableWidth += parseInt((da).style.width);\n }\n return (tableWidth-offWidth);\n }\n\n /**\n * 根据当前节点查找到有data-type类型的容器返回。\n * @memberof TableHeader\n */\n getTargetToType = (targetEvent) => {\n let tag = targetEvent;\n if(targetEvent && !targetEvent.getAttribute(\"data-type\")){\n tag = this.getTargetToType(targetEvent.parentElement);\n }\n return tag;\n }\n\n\n /**\n * 判断当前的target 是否是 th,如果不是,直接递归查找。\n * @memberof TableHeader\n */\n getTargetToTh = (targetEvent) => {\n let th = targetEvent;\n if(targetEvent.nodeName.toUpperCase() != \"TH\"){\n th = this.getThDome(targetEvent);\n }\n // console.log(\" getTargetToTh: \", th);\n return th;\n }\n /**\n * 调整列宽的move事件\n * @memberof TableHeader\n */\n onTrMouseMove = (e) => {\n if(!this.props.dragborder && !this.props.draggable)return;\n const { clsPrefix ,dragborder,contentDomWidth,scrollbarWidth,contentTable,headerScroll,lastShowIndex,onDraggingBorder, leftFixedWidth, rightFixedWidth} = this.props;\n Event.stopPropagation(e);\n let event = Event.getEvent(e);\n if(this.props.dragborder && this.drag.option == \"border\"){\n //移动改变宽度\n let currentCols = this.table.cols[this.drag.currIndex];\n let diff = (event.x - this.drag.oldLeft);\n let newWidth = this.drag.oldWidth + diff;\n this.drag.newWidth = newWidth > 0 ? newWidth : this.minWidth;\n if(newWidth > this.minWidth){\n currentCols.style.width = newWidth +'px';\n //hao 支持固定表头拖拽 修改表体的width\n if(this.fixedTable.cols){\n this.fixedTable.cols[this.drag.currIndex].style.width = newWidth + \"px\";\n }\n\n let newDiff = (parseInt(currentCols.style.minWidth) - parseInt(currentCols.style.width));\n if(newDiff > 0){//缩小\n let lastWidth = this.lastColumWidth + newDiff;\n this.table.cols[lastShowIndex].style.width = lastWidth +\"px\";//同步表头\n this.table.tableBodyCols[lastShowIndex].style.width = lastWidth + \"px\";//同步表体\n }\n let showScroll = contentDomWidth - (leftFixedWidth + rightFixedWidth) - (this.drag.tableWidth + diff) - scrollbarWidth ;\n //表头滚动条处理\n if(headerScroll){\n if(showScroll < 0){ //小于 0 出现滚动条\n //找到固定列表格,设置表头的marginBottom值为scrollbarWidth;\n this.table.contentTableHeader.style.overflowX = 'scroll';\n this.optTableMargin( this.table.fixedLeftHeaderTable,scrollbarWidth);\n this.optTableMargin( this.table.fixedRighHeadertTable,scrollbarWidth);\n }else{ //大于 0 不显示滚动条\n this.table.contentTableHeader.style.overflowX = 'hidden';\n this.optTableMargin( this.table.fixedLeftHeaderTable,0);\n this.optTableMargin( this.table.fixedRighHeadertTable,0);\n }\n }else{\n if(showScroll < 0){\n this.table.tableBody.style.overflowX = 'auto';\n this.optTableMargin( this.table.fixedLeftBodyTable,'-'+scrollbarWidth);\n this.optTableMargin( this.table.fixedRightBodyTable,'-'+scrollbarWidth);\n this.optTableScroll( this.table.fixedLeftBodyTable,{x:'scroll'});\n this.optTableScroll( this.table.fixedRightBodyTable,{x:'scroll'});\n }else{\n this.table.tableBody.style.overflowX = 'hidden';\n this.optTableMargin( this.table.fixedLeftBodyTable,0);\n this.optTableMargin( this.table.fixedRightBodyTable,0);\n this.optTableScroll( this.table.fixedLeftBodyTable,{x:'auto'});\n this.optTableScroll( this.table.fixedRightBodyTable,{x:'auto'});\n }\n }\n }else {\n this.drag.newWidth = this.minWidth;\n }\n }\n // 增加拖拽列宽动作的回调函数\n this.drag.newWidth && onDraggingBorder && onDraggingBorder(event, this.drag.newWidth);\n }\n\n /**\n * 调整列宽的up事件\n * @memberof TableHeader\n */\n onTrMouseUp = (e) => {\n let event = Event.getEvent(e);\n let width = this.drag.newWidth;\n let opt = this.drag.option;\n this.mouseClear();\n if(opt !== \"border\") return; // fix:点击表头会触发onDropBorder事件的问题\n this.props.onDropBorder && this.props.onDropBorder(event,width);\n };\n\n\n mouseClear(){\n if(!this.drag || !this.drag.option)return;\n let {rows} = this.props;\n let data = {rows:rows[0],cols:this.table.cols,currIndex:this.drag.currIndex};\n this.props.afterDragColWidth && this.props.afterDragColWidth(data);\n this.drag = {\n option:\"\"\n };\n this.clearThsDr();\n }\n\n clearThsDr =()=>{\n let ths = this.table.ths;\n for (let index = 0; index < ths.length; index++) {\n ths[index].setAttribute('draggable',false);//去掉交换列效果\n }\n }\n\n /**\n * 当前对象上绑定全局事件,用于拖拽区域以外时的事件处理\n * @param {*} events\n * @param {*} type\n * @memberof TableHeader\n */\n bodyonLineMouseUp = (events,type) =>{\n if(!this.drag || !this.drag.option)return;\n this.mouseClear();\n }\n\n\n /**\n *相关\b滚动条联动操作\n *\n * @memberof TableHeader\n */\n optTableMargin =(table,scrollbarWidth)=>{\n if(table){\n table.style.marginBottom = scrollbarWidth + \"px\"\n }\n }\n\n optTableScroll = (table,overflow ={})=>{\n if(table){\n const innerTable = table.querySelector('.u-table-body-inner');\n if(innerTable){\n //fixbug: 拖拽列宽后,滚动条滚到表格底部,会导致固定列和非固定列错行\n overflow.x && (innerTable.style.overflowX = overflow.x);\n overflow.y && (innerTable.style.overflowY = overflow.y);\n }\n\n }\n }\n\n //---拖拽交换列代码----start-----\n /**\n * 添加换列的事件监听\n */\n dragAbleEventInit (){\n if (!this.props.draggable) return;\n let events = [\n {key:'dragstart',fun:this.onDragStart},//用户开始拖动元素时触发\n {key:'dragover', fun:this.onDragOver},//当某被拖动的对象在另一对象容器范围内拖动时触发此事件\n {key:'drop', fun:this.onDrop}, //在一个拖动过程中,释放鼠标键时触发此事件\n\n {key:'dragenter', fun:this.onDragEnter},\n {key:'dragend', fun:this.onDragEnd},\n {key:'dragleave', fun:this.onDragLeave},\n ];\n this.eventListen(events,'',this.table.tr[0]);//表示把事件添加到th元素上\n }\n\n /**\n * 删除换列的事件监听\n */\n removeDragAbleEvent(){\n let events = [\n {key:'dragstart',fun:this.onDragStart},\n {key:'dragover', fun:this.onDragOver},\n {key:'drop', fun:this.onDrop},\n {key:'dragenter', fun:this.onDragEnter},\n {key:'dragend', fun:this.onDragEnd},\n {key:'dragleave', fun:this.onDragLeave},\n ];\n this.eventListen(events,'remove',this.table.tr[0]);\n }\n\n /**\n * 开始调整交换列的事件\n */\n onDragStart = (e) => {\n if (!this.props.draggable) return;\n if(this.drag && this.drag.option != 'dragAble'){return;}\n let event = Event.getEvent(e) ,\n // target = Event.getTarget(event);\n target = this.getTargetToTh(Event.getTarget(event));\n let currentIndex = parseInt(target.getAttribute(\"data-line-index\"));\n let currentKey = target.getAttribute('data-line-key');\n\n if(event.dataTransfer.setDragImage){\n var crt = target.cloneNode(true);\n crt.style.backgroundColor = \"#ebecf0\";\n crt.style.width = this.table.cols[currentIndex].style.width;//拖动后再交换列的时候,阴影效果可同步\n crt.style.height = \"40px\";\n // crt.style['line-height'] = \"40px\";\n // document.body.appendChild(crt);\n document.getElementById(this._table_none_cont_id).appendChild(crt);\n event.dataTransfer.setDragImage(crt, 0, 0);\n }\n\n event.dataTransfer.effectAllowed = \"move\";\n event.dataTransfer.setData(\"Text\", currentKey);\n this.currentObj = this.props.rows[0][currentIndex];\n };\n\n onDragOver = (e) => {\n let event = Event.getEvent(e);\n event.preventDefault();\n };\n\n /**\n * 在一个拖动过程中,释放鼠标键时触发此事件。【目标事件】\n * @memberof TableHeader\n */\n onDrop = (e) => {\n if (!this.props.draggable) return;\n let props = this.getCurrentEventData(this._dragCurrent)\n e.column = {props};\n if(this.drag && this.drag.option != 'dragAble'){\n this.props.onDrop(e);\n return;\n }\n let event = Event.getEvent(e) ,\n target = Event.getTarget(event);\n this.currentDome.setAttribute('draggable',false);//添加交换列效果\n // let data = this.getCurrentEventData(this._dragCurrent);\n // if(!data){\n // this.props.onDrop(e);\n // return;\n // }\n if(!this.props.onDrop)return;\n // this.props.onDrop(event,target);\n this.props.onDrop(event,{dragSource:this.currentObj,dragTarg:e.column});\n };\n\n\n onDragEnter = (e) => {\n let event = Event.getEvent(e) ,\n target = Event.getTarget(event);\n this._dragCurrent = target;\n let currentIndex = target.getAttribute(\"data-line-index\");\n if(!currentIndex || parseInt(currentIndex) === this.drag.currIndex)return;\n if(target.nodeName.toUpperCase() === \"TH\"){\n // target.style.border = \"2px dashed rgba(5,0,0,0.25)\";\n target.setAttribute(\"style\",\"border-right:2px dashed rgb(30, 136, 229)\");\n // target.style.backgroundColor = 'rgb(235, 236, 240)';\n }\n }\n\n onDragEnd = (e) => {\n let event = Event.getEvent(e) ,\n target = Event.getTarget(event);\n this._dragCurrent.setAttribute(\"style\",\"\");\n // this._dragCurrent.style = \"\";\n document.getElementById(this._table_none_cont_id).innerHTML = \"\";\n\n let data = this.getCurrentEventData(this._dragCurrent);\n if(!data)return;\n if (!this.currentObj || this.currentObj.key == data.key) return;\n if(!this.props.onDragEnd)return;\n this.props.onDragEnd(event,{dragSource:this.currentObj,dragTarg:data});\n }\n\n\n onDragLeave = (e) => {\n let event = Event.getEvent(e) ,\n target = Event.getTarget(event);\n let currentIndex = target.getAttribute(\"data-line-index\");\n if(!currentIndex || parseInt(currentIndex) === this.drag.currIndex)return;\n if(target.nodeName.toUpperCase() === \"TH\"){\n target.setAttribute(\"style\",\"\");\n // this._dragCurrent.style = \"\";\n }\n }\n\n\n\n /**\n * 获取当前th上的对象数据\n * @param {*} e\n * @returns\n * @memberof TableHeader\n */\n getCurrentEventData(th){\n if(!th){\n console.log(\" event target is not th ! \");\n return null;\n }\n let key = th.getAttribute('data-line-key');\n let data = this.props.rows[0].find(da=>da.key == key);\n if(data){\n return data;\n }else{\n console.log(\" getCurrentEventData data is null \");\n return null;\n }\n }\n\n /**\n * 根据当前鼠标点击的节点,进行递归遍历,最终找到th\n * @param {*} element\n * @returns
  • this._thead = _thead} >\n {rows.map((row, index) => {\n let _rowLeng = (row.length-1);\n return(\n {row.map((da, columIndex, arr) => {\n da.children = da.required ? *{da.children} : da.children;\n let thHover = da.drgHover\n ? ` ${clsPrefix}-thead th-drag-hover`\n : \"\";\n delete da.drgHover;\n let fixedStyle = \"\";\n let canDotDrag = \"\";\n //主表格下、固定列或者是过滤行中含有固定列时添加该属性\n if (!fixed && (da.fixed || (filterable && index == rows.length - 1 && rows[0][columIndex].fixed)) ) {\n fixedStyle = ` ${clsPrefix}-row-fixed-columns-in-body`;\n }\n\n if (lastShowIndex == columIndex) {\n canDotDrag = \"th-can-not-drag\";\n }\n let thClassName = `${da.className}`?`${da.className}`:'';\n if(da.titleAlign){\n thClassName += ` text-${da.titleAlign} `;\n }\n else if(da.textAlign){\n thClassName += ` text-${da.textAlign} `;\n }\n \n delete da.textAlign;\n delete da.titleAlign;\n const keyTemp = {};\n //避免key为undefined\n // if(da.dataindex && da.key ===undefined ){\n keyTemp.key = da.key || da.dataindex || index+'-'+columIndex\n\n // }\n if (filterable && index == rows.length - 1) {\n da.children = this.filterRenderType(\n da[\"filtertype\"],\n da.dataindex,\n columIndex\n );\n if(da.key ===undefined ){\n keyTemp.key = keyTemp.key + '-filterable'\n }\n delete da.filterdropdownfocus;\n }\n\n let thDefaultObj = {};\n\n if(draggable){\n thClassName += ` ${clsPrefix}-thead th-drag ${thHover} `;\n }\n if(dragborder){\n thClassName += ` ${clsPrefix}-thead-th ${canDotDrag}`;\n }\n thClassName += ` ${fixedStyle}`;\n if(!da.fixed ){\n return ()\n }else{\n thDefaultObj = {\n ...da,\n className:`${thClassName} ${fixedStyle}`,\n };\n da.onClick ?thDefaultObj.onClick = (e)=>{da.onClick(da, e)}:\"\";\n return (\n )})}\n \n );\n }\n}\n\nTableHeader.propTypes = propTypes;\nexport default TableHeader;\n\n\n\n// WEBPACK FOOTER //\n// ./src/TableHeader.js","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n/* eslint-disable no-undefined,no-param-reassign,no-shadow */\n\n/**\n * Throttle execution of a function. Especially useful for rate limiting\n * execution of handlers on events like resize and scroll.\n *\n * @param {number} delay - A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.\n * @param {boolean} [noTrailing] - Optional, defaults to false. If noTrailing is true, callback will only execute every `delay` milliseconds while the\n * throttled-function is being called. If noTrailing is false or unspecified, callback will be executed one final time\n * after the last throttled-function call. (After the throttled-function has not been called for `delay` milliseconds,\n * the internal counter is reset).\n * @param {Function} callback - A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,\n * to `callback` when the throttled-function is executed.\n * @param {boolean} [debounceMode] - If `debounceMode` is true (at begin), schedule `clear` to execute after `delay` ms. If `debounceMode` is false (at end),\n * schedule `callback` to execute after `delay` ms.\n *\n * @returns {Function} A new, throttled, function.\n */\nfunction throttle (delay, noTrailing, callback, debounceMode) {\n /*\n * After wrapper has stopped being called, this timeout ensures that\n * `callback` is executed at the proper times in `throttle` and `end`\n * debounce modes.\n */\n var timeoutID;\n var cancelled = false; // Keep track of the last time `callback` was executed.\n\n var lastExec = 0; // Function to clear existing timeout\n\n function clearExistingTimeout() {\n if (timeoutID) {\n clearTimeout(timeoutID);\n }\n } // Function to cancel next exec\n\n\n function cancel() {\n clearExistingTimeout();\n cancelled = true;\n } // `noTrailing` defaults to falsy.\n\n\n if (typeof noTrailing !== 'boolean') {\n debounceMode = callback;\n callback = noTrailing;\n noTrailing = undefined;\n }\n /*\n * The `wrapper` function encapsulates all of the throttling / debouncing\n * functionality and when executed will limit the rate at which `callback`\n * is executed.\n */\n\n\n function wrapper() {\n for (var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++) {\n arguments_[_key] = arguments[_key];\n }\n\n var self = this;\n var elapsed = Date.now() - lastExec;\n\n if (cancelled) {\n return;\n } // Execute `callback` and update the `lastExec` timestamp.\n\n\n function exec() {\n lastExec = Date.now();\n callback.apply(self, arguments_);\n }\n /*\n * If `debounceMode` is true (at begin) this is used to clear the flag\n * to allow future `callback` executions.\n */\n\n\n function clear() {\n timeoutID = undefined;\n }\n\n if (debounceMode && !timeoutID) {\n /*\n * Since `wrapper` is being called for the first time and\n * `debounceMode` is true (at begin), execute `callback`.\n */\n exec();\n }\n\n clearExistingTimeout();\n\n if (debounceMode === undefined && elapsed > delay) {\n /*\n * In throttle mode, if `delay` time has been exceeded, execute\n * `callback`.\n */\n exec();\n } else if (noTrailing !== true) {\n /*\n * In trailing throttle mode, since `delay` time has not been\n * exceeded, schedule `callback` to execute `delay` ms after most\n * recent execution.\n *\n * If `debounceMode` is true (at begin), schedule `clear` to execute\n * after `delay` ms.\n *\n * If `debounceMode` is false (at end), schedule `callback` to\n * execute after `delay` ms.\n */\n timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n }\n }\n\n wrapper.cancel = cancel; // Return the wrapper function.\n\n return wrapper;\n}\n\n/* eslint-disable no-undefined */\n/**\n * Debounce execution of a function. Debouncing, unlike throttling,\n * guarantees that a function is only executed a single time, either at the\n * very beginning of a series of calls, or at the very end.\n *\n * @param {number} delay - A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.\n * @param {boolean} [atBegin] - Optional, defaults to false. If atBegin is false or unspecified, callback will only be executed `delay` milliseconds\n * after the last debounced-function call. If atBegin is true, callback will be executed only at the first debounced-function call.\n * (After the throttled-function has not been called for `delay` milliseconds, the internal counter is reset).\n * @param {Function} callback - A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,\n * to `callback` when the debounced-function is executed.\n *\n * @returns {Function} A new, debounced function.\n */\n\nfunction debounce (delay, atBegin, callback) {\n return callback === undefined ? throttle(delay, atBegin, false) : throttle(delay, callback, atBegin !== false);\n}\n\nexports.debounce = debounce;\nexports.throttle = throttle;\n//# sourceMappingURL=index.cjs.js.map\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/throttle-debounce/index.cjs.js\n// module id = 394\n// module chunks = 0","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport DatePicker from 'bee-datepicker';\nimport zhCN from 'bee-datepicker/build/locale/zh_CN';\nimport FormControl from 'bee-form-control';\nimport Select from 'bee-select';\nimport InputNumber from 'bee-input-number';\nimport FilterDropDown from './FilterDropDown';\n\nconst { RangePicker,YearPicker,MonthPicker,WeekPicker } = DatePicker;\n\nconst propTypes = {\n filterDropdown: PropTypes.string\n};\n\nclass FilterType extends Component {\n constructor(props) {\n super(props);\n this.state = {\n value: \"\",\n text: \"\",\n selectValue: \"\",\n dateValue: \"\",\n open: false,\n condition: props.filterDropdownType == 'string' ? 'LIKE' : 'EQ',\n number: 0\n }\n }\n\n /**\n * 清除过滤条件\n *\n */\n clearFilter = () => {\n let { onFilterClear, dataIndex } = this.props;\n if (this.state.value !== \"\") {\n this.setState({\n value: \"\",//清空值\n condition: this.props.filterDropdownType == 'string' ? 'LIKE' : 'EQ'//切回默认查询条件\n }, () => {\n //调用清除方法参数为当前字段的field\n onFilterClear && onFilterClear(dataIndex);\n });\n }\n }\n\n /**\n * 设置输入文本的值\n *\n */\n changeText = (val) => {\n let { onFilterChange, dataIndex } = this.props;\n this.setState({\n value: val\n }, () => {\n onFilterChange(dataIndex, val, this.state.condition);\n });\n }\n\n /**\n * 输入框回车执行回调\n *\n */\n changeTextCall = (e) => {\n let { onFilterChange, dataIndex } = this.props;\n if (e.keyCode == 13) {\n e.target.value !== \"\" && onFilterChange(dataIndex, e.target.value, this.state.condition);\n }\n }\n /**\n * 更改修改值\n *\n */\n changeValue = () => {\n this.setState({\n value: \"\"\n });\n }\n /**\n * 下拉条件的回调\n *\n * @param {*} key 字段\n * @param {*} value 值1,2,3...6\n */\n onSelectDropdown = (item) => {\n let { onFilterChange, dataIndex } = this.props;\n this.setState({\n condition: item.key\n }, () => {\n this.state.value !== \"\" && onFilterChange && onFilterChange(dataIndex, this.state.value, this.state.condition);\n });\n }\n\n /**\n * 修改数值型的值\n *\n */\n changeNumber = (value) => {\n let { onFilterChange, dataIndex } = this.props;\n this.setState({\n value\n }, () => {\n onFilterChange(dataIndex, value, this.state.condition);\n });\n }\n //清除数值\n clearNumber = () => {\n let { onChange } = this.props;\n onChange && onChange(\"\");\n this.setState({\n value: \"\"\n });\n }\n\n //失去焦点后执行函数\n changeTextCallBlur = (val) => {\n let { onChange } = this.props;\n onChange && onChange(val);\n }\n //设置下拉值\n changeSelect = (value) => {\n let { onFilterChange, dataIndex } = this.props;\n if (onFilterChange) {\n onFilterChange(dataIndex, value, this.state.condition);\n this.setState({\n value\n });\n }\n }\n //清除下拉值\n clearSelectValue = () => {\n this.setState({\n selectValue: \"\"\n }, () => {\n this.changeSelect(\"\");\n });\n }\n //清除日期值\n clearDateValue = () => {\n this.setState({\n dateValue: \"\"\n }, () => {\n this.changeDate(\"\");\n });\n }\n //设置日期值\n changeDate = (value) => {\n let { onFilterChange, dataIndex } = this.props;\n if (onFilterChange) {\n onFilterChange(dataIndex, value, this.state.condition);\n this.setState({\n value,\n open: false\n });\n }\n }\n //组件渲染\n /**\n * 根据不同的类型生成对应的组件类型包含一些参数的适应\n *\n * @param {*} rendertype 参数类型,包括['text','dropdown','date','dateyear','datemonth','dateweek',daterange','number']\n * @returns\n */\n renderControl = (rendertype) => {\n let { filterInputNumberOptions, filterDropdownIncludeKeys, dataIndex, filterDropdown, filterDropdownType, format, className, onChange, onSelectDropdown, clsPrefix, locale } = this.props;\n switch (rendertype) {\n case 'text':\n return
    \n \n \n \n
    \n case 'number':\n return
    \n \n \n \n
    \n case 'dropdown':\n return
    \n \n
    \n case 'date':\n return
    \n \n \n
    \n case 'dateyear':\n return
    \n \n \n
    \n case 'datemonth':\n return
    \n \n \n
    \n case 'dateweek':\n return
    \n \n \n
    \n case 'daterange':\n return
    \n \n \n
    \n case 'bool':\n return
    \n \n \n \n
    \n default:\n return
    ;\n }\n\n }\n render() {\n let { rendertype } = this.props;\n return (\n
    {this.renderControl(rendertype)}
    \n );\n }\n}\nFilterType.propTypes = propTypes;\nFilterType.defaultProps = {\n filterDropdown: 'show'\n}\nexport default FilterType;\n\n\n\n// WEBPACK FOOTER //\n// ./src/FilterType.js","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _DatePicker = require('./DatePicker');\n\nvar _DatePicker2 = _interopRequireDefault(_DatePicker);\n\nvar _MonthPicker = require('./MonthPicker');\n\nvar _MonthPicker2 = _interopRequireDefault(_MonthPicker);\n\nvar _RangePicker = require('./RangePicker');\n\nvar _RangePicker2 = _interopRequireDefault(_RangePicker);\n\nvar _WeekPicker = require('./WeekPicker');\n\nvar _WeekPicker2 = _interopRequireDefault(_WeekPicker);\n\nvar _YearPicker = require('./YearPicker');\n\nvar _YearPicker2 = _interopRequireDefault(_YearPicker);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\n_DatePicker2[\"default\"].MonthPicker = _MonthPicker2[\"default\"];\n_DatePicker2[\"default\"].RangePicker = _RangePicker2[\"default\"];\n_DatePicker2[\"default\"].WeekPicker = _WeekPicker2[\"default\"];\n_DatePicker2[\"default\"].YearPicker = _YearPicker2[\"default\"];\n\nexports[\"default\"] = _DatePicker2[\"default\"];\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-datepicker/build/index.js\n// module id = 396\n// module chunks = 0","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _rcCalendar = require(\"./rc-calendar\");\n\nvar _rcCalendar2 = _interopRequireDefault(_rcCalendar);\n\nvar _react = require(\"react\");\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = require(\"react-dom\");\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _tinperBeeCore = require(\"tinper-bee-core\");\n\nvar _Picker = require(\"./rc-calendar/Picker\");\n\nvar _Picker2 = _interopRequireDefault(_Picker);\n\nvar _beeFormControl = require(\"bee-form-control\");\n\nvar _beeFormControl2 = _interopRequireDefault(_beeFormControl);\n\nvar _Panel = require(\"rc-time-picker/lib/Panel\");\n\nvar _Panel2 = _interopRequireDefault(_Panel);\n\nvar _moment = require(\"moment\");\n\nvar _moment2 = _interopRequireDefault(_moment);\n\nvar _beeIcon = require(\"bee-icon\");\n\nvar _beeIcon2 = _interopRequireDefault(_beeIcon);\n\nvar _classnames = require(\"classnames\");\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _beeInputGroup = require(\"bee-input-group\");\n\nvar _beeInputGroup2 = _interopRequireDefault(_beeInputGroup);\n\nvar _zh_CN = require(\"./locale/zh_CN\");\n\nvar _zh_CN2 = _interopRequireDefault(_zh_CN);\n\nvar _omit = require(\"omit.js\");\n\nvar _omit2 = _interopRequireDefault(_omit);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**\n * Created by chief on 17/4/6.\n */\n\nvar timerDatePicker = true;\n\nvar DatePicker = function (_Component) {\n _inherits(DatePicker, _Component);\n\n function DatePicker(props, context) {\n _classCallCheck(this, DatePicker);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));\n\n _initialiseProps.call(_this);\n\n _this.state = {\n type: \"month\",\n value: _this.initValue(props),\n open: props.open || false,\n inputValue: _this.initValue(props),\n showClose: false\n };\n _this.fileChange = true;\n\n return _this;\n }\n\n DatePicker.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n if (\"value\" in nextProps) {\n this.setState({\n value: this.initValue(nextProps)\n });\n }\n if (\"open\" in nextProps) {\n this.setState({\n open: nextProps.open\n });\n }\n if (\"renderIcon\" in nextProps) {\n this.setState({\n renderIcon: nextProps.renderIcon\n });\n }\n };\n //日期面板中输入框的失焦事件\n\n //fix:更改系统时区后,日期框需要触发 onChange 事件\n\n //阻止组件内部事件冒泡到组件外部容器\n\n\n DatePicker.prototype.render = function render() {\n var _this2 = this;\n\n var state = this.state;\n var props = this.props;\n\n var showClose = props.showClose,\n defaultPanelShown = props.defaultPanelShown,\n onBlur = props.onBlur,\n showHour = props.showHour,\n showMinute = props.showMinute,\n showSecond = props.showSecond,\n others = _objectWithoutProperties(props, [\"showClose\", \"defaultPanelShown\", \"onBlur\", \"showHour\", \"showMinute\", \"showSecond\"]);\n\n var value = state.value;\n var pickerChangeHandler = {};\n var calendarHandler = {};\n var autofocus = this.props.autofocus ? { autofocus: 'autofocus' } : null;\n\n if (props.showTime) {\n calendarHandler = {\n // fix https://github.com/ant-design/ant-design/issues/1902\n onSelect: this.handleChange\n };\n } else {\n pickerChangeHandler = {\n onChange: this.handleChange\n };\n }\n\n var splitNumber = '3';\n if (!showHour) splitNumber -= 1;\n if (!showMinute) splitNumber -= 1;\n if (!showSecond) splitNumber -= 1;\n\n var calendar = _react2[\"default\"].createElement(_rcCalendar2[\"default\"], _extends({\n timePicker: props.showTime ? _react2[\"default\"].createElement(_Panel2[\"default\"], {\n className: 'time-split-' + splitNumber,\n showHour: showHour, showMinute: showMinute, showSecond: showSecond,\n defaultValue: (0, _moment2[\"default\"])((0, _moment2[\"default\"])().format(\"HH:mm:ss\"), \"HH:mm:ss\") }) : null\n }, props, {\n onSelect: this.handleSelect,\n onChange: this.handleCalendarChange,\n value: value,\n onInputBlur: this.onDateInputBlur\n }));\n\n var keyboardInputProps = {};\n if (props.keyboardInput) {\n keyboardInputProps.readOnly = false;\n keyboardInputProps.onChange = this.inputChange;\n keyboardInputProps.value = state.inputValue.format && state.inputValue.isValid() && this.props.validatorFunc(state.inputValue) ? state.inputValue.format(props.format) : state.inputValue;\n } else {\n keyboardInputProps.readOnly = true;\n keyboardInputProps.value = value && this.getValue(value) || \"\";\n }\n var classes = (0, _classnames2[\"default\"])(props.className, \"datepicker-container\");\n return _react2[\"default\"].createElement(\n \"div\",\n _extends({ className: classes, onMouseEnter: this.onDateHover, onClick: this.stopPropagation\n }, (0, _omit2[\"default\"])(others, ['onDateInputBlur', 'getCalendarContainer', 'showToday', 'renderFooter', 'keyboardInput', 'showDateInput', 'showTime', 'closeIcon', 'renderIcon', 'focusOnOpen', 'defultSelect', 'onOpenChange', 'locale', 'showMonthInput', 'onKeyDown', 'renderError', 'format', 'placeholder', 'disabledTime', 'onChange', 'disabledDate', 'iconClick', 'outInputKeydown'])),\n _react2[\"default\"].createElement(\n _Picker2[\"default\"],\n _extends({\n animation: \"slide-up\"\n }, props, pickerChangeHandler, {\n onOpenChange: this.onOpenChange,\n calendar: calendar,\n mode: 'year',\n open: 'defaultPanelShown' in props ? defaultPanelShown : this.state.open,\n value: state.value\n }),\n function () {\n return _react2[\"default\"].createElement(\n _beeInputGroup2[\"default\"],\n { simple: true, className: \"datepicker-input-group\",\n onMouseEnter: _this2.onMouseEnter,\n onMouseLeave: _this2.onMouseLeave\n },\n _react2[\"default\"].createElement(_beeFormControl2[\"default\"], _extends({\n ref: function ref(_ref) {\n return _this2.outInput = _ref;\n },\n disabled: props.disabled,\n placeholder: _this2.props.placeholder,\n onClick: function onClick(event) {\n _this2.onClick(event);\n },\n focusSelect: props.defaultSelected,\n onFocus: function onFocus(v, e) {\n _this2.outInputFocus(e);\n },\n onKeyDown: _this2.outInputKeydown\n // value={(value && value.format(props.format)) || \"\"}\n }, keyboardInputProps, autofocus)),\n showClose && _this2.state.value && _this2.state.showClose && !props.disabled ? _react2[\"default\"].createElement(\n _beeInputGroup2[\"default\"].Button,\n { shape: \"border\",\n onClick: _this2.clear },\n props.closeIcon()\n ) : _react2[\"default\"].createElement(\n _beeInputGroup2[\"default\"].Button,\n { shape: \"border\",\n onClick: function onClick(e) {\n props.keyboardInput ? _this2.iconClick(e) : '';\n } },\n props.renderIcon()\n )\n );\n }\n )\n );\n };\n\n return DatePicker;\n}(_react.Component);\n\nvar _initialiseProps = function _initialiseProps() {\n var _this3 = this;\n\n this.initValue = function (props) {\n var value = props.value || props.defaultValue;\n if (value) {\n if (typeof value == 'string') {\n if ((0, _moment2[\"default\"])(value).isValid()) {\n value = (0, _moment2[\"default\"])(value);\n } else {\n console.error('value is not in the correct format');\n value = '';\n }\n } else if (value.format && value.isValid()) {\n value = value;\n } else {\n console.error('value is not in the correct format');\n value = '';\n }\n }\n return value;\n };\n\n this.getValue = function (value) {\n var format = _this3.props.format;\n\n if (typeof format == 'string') {\n return value.format(format);\n } else {\n return value.format(format[0]);\n }\n };\n\n this.onChange = function (value) {\n _this3.setState({ value: value });\n };\n\n this.inputFocus = function () {\n var _props = _this3.props,\n format = _props.format,\n validatorFunc = _props.validatorFunc,\n disabledDate = _props.disabledDate;\n\n var input = document.querySelector('.rc-calendar-input');\n if (input) {\n if (input.value) {\n input.select();\n } else {\n input.focus();\n }\n input.onkeydown = function (e) {\n if (e.keyCode == _tinperBeeCore.KeyCode.DELETE) {\n input.value = '';\n _this3.fireChange('', '');\n } else if (e.keyCode == _tinperBeeCore.KeyCode.ESC) {\n _this3.setState({\n open: false\n });\n var v = _this3.state.value;\n _this3.props.onOpenChange(false, v, v && _this3.getValue(v) || '');\n _reactDom2[\"default\"].findDOMNode(_this3.outInput).focus(); // 按esc时候焦点回到input输入框\n } else if (e.keyCode == _tinperBeeCore.KeyCode.ENTER) {\n var parsed = (0, _moment2[\"default\"])(input.value, format, true);\n var isDisabled = disabledDate && disabledDate(parsed);\n if (parsed.isValid() && validatorFunc(input.value) && !isDisabled) {\n _this3.setState({\n open: false\n });\n var _v = _this3.state.value;\n _this3.props.onOpenChange(false, _v, _v && _this3.getValue(_v) || '');\n _reactDom2[\"default\"].findDOMNode(_this3.outInput).focus();\n }\n if (!input.value) {\n _this3.setState({\n open: false\n });\n }\n }\n _this3.props.onKeyDown && _this3.props.onKeyDown(e);\n };\n }\n };\n\n this.onOpenChange = function (open) {\n var props = _this3.props;\n var self = _this3;\n _this3.setState({\n open: open\n }, function () {\n if (open) {\n setTimeout(function () {\n self.inputFocus();\n }, 0);\n }\n });\n var value = self.state.value;\n props.onOpenChange(open, value, value && _this3.getValue(value) || '');\n if (open) {\n setTimeout(function () {\n self.inputFocus();\n }, 200);\n }\n };\n\n this.handleCalendarChange = function (value) {\n var props = _this3.props;\n _this3.setState({ value: value, inputValue: value && _this3.getValue(value) || '' });\n _this3.fireChange(value, value && _this3.getValue(value) || '');\n };\n\n this.handleChange = function (value) {\n var props = _this3.props;\n _this3.setState({\n value: value && _extends(value, { _type: 'date' }) || value,\n inputValue: value && _this3.getValue(value) || ''\n });\n if (timerDatePicker) {\n clearTimeout(_this3.timerout);\n _this3.fireChange(value, value && _this3.getValue(value) || '');\n timerDatePicker = false;\n _this3.timerout = window.setTimeout(function () {\n timerDatePicker = true;\n }, 300);\n }\n };\n\n this.onClick = function (e) {\n var props = _this3.props;\n if (props.keyboardInput) e.stopPropagation();\n var value = _this3.state.value;\n if (props.keyboardInput) {\n props.onClick && props.onClick(e.nativeEvent, value || null, _this3.state.inputValue);\n } else {\n props.onClick && props.onClick(e.nativeEvent, value || null, value && _this3.getValue(value) || '');\n }\n };\n\n this.inputChange = function (value, e) {\n if (_this3.props.keyboardInput) e.stopPropagation();\n _this3.setState({\n inputValue: value\n });\n if ((0, _moment2[\"default\"])(value, _this3.props.format).isValid() && _this3.props.validatorFunc(value)) {\n _this3.setState({\n value: (0, _moment2[\"default\"])(value, _this3.props.format)\n });\n value = (0, _moment2[\"default\"])(value, _this3.props.format);\n _this3.fireChange(value, value && _this3.getValue(value) || '');\n } else {\n _this3.fireChange(null, value);\n }\n };\n\n this.outInputFocus = function (e) {\n if (_this3.props.hasOwnProperty('open')) e.stopPropagation();\n _this3.props.outInputFocus && _this3.props.outInputFocus(e);\n };\n\n this.iconClick = function (e) {\n _this3.props.iconClick && _this3.props.iconClick(e);\n };\n\n this.outInputKeydown = function (e) {\n if (e.keyCode == _tinperBeeCore.KeyCode.DELETE) {\n _this3.setState({\n inputValue: ''\n });\n _this3.fireChange('', '');\n } else if (e.keyCode == _tinperBeeCore.KeyCode.ESC) {\n _this3.setState({\n open: false\n });\n var value = _this3.state.inputValue;\n if ((0, _moment2[\"default\"])(value, _this3.props.format).isValid() && _this3.props.validatorFunc(value)) {\n _this3.setState({\n value: (0, _moment2[\"default\"])(value, _this3.props.format)\n });\n value = (0, _moment2[\"default\"])(value, _this3.props.format);\n _this3.fireChange(value, value && _this3.getValue(value) || '');\n } else {\n _this3.fireChange(null, value);\n }\n }\n _this3.props.outInputKeydown && _this3.props.outInputKeydown(e);\n };\n\n this.onMouseLeave = function (e) {\n _this3.setState({\n showClose: false\n });\n };\n\n this.onMouseEnter = function (e) {\n _this3.setState({\n showClose: true\n });\n };\n\n this.clear = function (e) {\n e.stopPropagation();\n _this3.setState({\n inputValue: '',\n value: ''\n });\n _this3.fireChange('', '');\n };\n\n this.handleSelect = function (value) {\n _this3.setState({\n value: value\n });\n _this3.props.onSelect && _this3.props.onSelect(value, value && _this3.getValue(value) || '');\n // ReactDOM.findDOMNode(this.outInput).focus()\n };\n\n this.onDateInputBlur = function (e) {\n var input = document.querySelector('.rc-calendar-input');\n var value = void 0;\n if (input) {\n value = input.value ? input.value : '';\n }\n _this3.props.onDateInputBlur && _this3.props.onDateInputBlur(e, value);\n };\n\n this.onDateHover = function () {\n var format = _this3.props.format;\n var value = _this3.state.value,\n newValue = value && _this3.getValue(value);\n\n\n var inputValue = _this3.outInput.state.value;\n inputValue = format ? inputValue : inputValue && _this3.getValue((0, _moment2[\"default\"])(inputValue));\n\n if (newValue && inputValue !== newValue) {\n _this3.fireChange(value, newValue || '');\n }\n };\n\n this.stopPropagation = function (e) {\n e.stopPropagation();\n };\n\n this.fireChange = function (value, stringValue) {\n _this3.fileChange && _this3.props.onChange(value, stringValue);\n _this3.fileChange = false;\n _this3.fileChangeTimer = window.setTimeout(function () {\n _this3.fileChange = true;\n }, 10);\n };\n};\n\nDatePicker.defaultProps = {\n closeIcon: function closeIcon() {\n return _react2[\"default\"].createElement(_beeIcon2[\"default\"], { type: \"uf-close-c\" });\n },\n renderIcon: function renderIcon() {\n return _react2[\"default\"].createElement(_beeIcon2[\"default\"], { type: \"uf-calendar\" });\n },\n focusOnOpen: true,\n defultSelect: false,\n onOpenChange: function onOpenChange() {},\n onChange: function onChange() {},\n locale: _zh_CN2[\"default\"],\n showMonthInput: false,\n onKeyDown: function onKeyDown() {},\n renderError: function renderError() {},\n showClose: true,\n format: \"YYYY-MM-DD\",\n showSecond: true,\n showHour: true,\n showMinute: true,\n validatorFunc: function validatorFunc() {\n return true;\n }\n};\n\nexports[\"default\"] = DatePicker;\nmodule.exports = exports[\"default\"];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-datepicker/build/DatePicker.js\n// module id = 397\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _Calendar = require('./Calendar');\n\nvar _Calendar2 = _interopRequireDefault(_Calendar);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nexports[\"default\"] = _Calendar2[\"default\"];\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-datepicker/build/rc-calendar/index.js\n// module id = 398\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = require('react-dom');\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _KeyCode = require('rc-util/lib/KeyCode');\n\nvar _KeyCode2 = _interopRequireDefault(_KeyCode);\n\nvar _reactLifecyclesCompat = require('react-lifecycles-compat');\n\nvar _DateTable = require('./date/DateTable');\n\nvar _DateTable2 = _interopRequireDefault(_DateTable);\n\nvar _CalendarHeader = require('./calendar/CalendarHeader');\n\nvar _CalendarHeader2 = _interopRequireDefault(_CalendarHeader);\n\nvar _CalendarFooter = require('./calendar/CalendarFooter');\n\nvar _CalendarFooter2 = _interopRequireDefault(_CalendarFooter);\n\nvar _CalendarMixin = require('./mixin/CalendarMixin');\n\nvar _CommonMixin = require('./mixin/CommonMixin');\n\nvar _DateInput = require('./date/DateInput');\n\nvar _DateInput2 = _interopRequireDefault(_DateInput);\n\nvar _util = require('./util');\n\nvar _toTime = require('./util/toTime');\n\nvar _moment = require('moment');\n\nvar _moment2 = _interopRequireDefault(_moment);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nfunction noop() {}\n\nvar Calendar = function (_React$Component) {\n _inherits(Calendar, _React$Component);\n\n function Calendar(props) {\n _classCallCheck(this, Calendar);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));\n\n _initialiseProps.call(_this);\n\n _this.state = {\n mode: _this.props.mode || 'date',\n value: props.value || props.defaultValue || (0, _moment2[\"default\"])(),\n selectedValue: props.selectedValue || props.defaultSelectedValue\n };\n return _this;\n }\n\n Calendar.prototype.componentDidMount = function componentDidMount() {\n if (this.props.showDateInput) {\n this.saveFocusElement(_DateInput2[\"default\"].getInstance());\n }\n };\n\n Calendar.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, state) {\n var value = nextProps.value,\n selectedValue = nextProps.selectedValue;\n\n var newState = {};\n\n if ('mode' in nextProps && state.mode !== nextProps.mode) {\n newState = { mode: nextProps.mode };\n }\n if ('value' in nextProps) {\n newState.value = value || nextProps.defaultValue || (0, _CalendarMixin.getNowByCurrentStateValue)(state.value);\n }\n if ('selectedValue' in nextProps) {\n newState.selectedValue = selectedValue;\n }\n\n return newState;\n };\n\n Calendar.prototype.render = function render() {\n var _this2 = this;\n\n var props = this.props,\n state = this.state;\n var locale = props.locale,\n prefixCls = props.prefixCls,\n disabledDate = props.disabledDate,\n validatorFunc = props.validatorFunc,\n format = props.format,\n dateInputPlaceholder = props.dateInputPlaceholder,\n timePicker = props.timePicker,\n disabledTime = props.disabledTime,\n clearIcon = props.clearIcon,\n renderFooter = props.renderFooter,\n showMonthInput = props.showMonthInput,\n renderError = props.renderError,\n onInputBlur = props.onInputBlur;\n var value = state.value,\n selectedValue = state.selectedValue,\n mode = state.mode;\n\n var showTimePicker = mode === 'time';\n var disabledTimeConfig = showTimePicker && disabledTime && timePicker ? (0, _util.getTimeConfig)(selectedValue, disabledTime) : null;\n\n var timePickerEle = null;\n\n if (timePicker && showTimePicker) {\n var timePickerProps = _extends({\n showHour: true,\n showSecond: true,\n showMinute: true\n }, timePicker.props, disabledTimeConfig, {\n onChange: this.onDateInputChange,\n value: selectedValue,\n disabledTime: disabledTime\n });\n\n if (timePicker.props.defaultValue !== undefined) {\n timePickerProps.defaultOpenValue = timePicker.props.defaultValue;\n }\n\n timePickerEle = _react2[\"default\"].cloneElement(timePicker, timePickerProps);\n }\n var dateInputElement = props.showDateInput ? _react2[\"default\"].createElement(_DateInput2[\"default\"], {\n format: this.getFormat(),\n key: 'date-input',\n value: value,\n locale: locale,\n placeholder: dateInputPlaceholder,\n showClear: true,\n disabledTime: disabledTime,\n disabledDate: disabledDate,\n onClear: this.onClear,\n prefixCls: prefixCls,\n selectedValue: selectedValue,\n onChange: this.onDateInputChange,\n onSelect: function onSelect(value) {\n if ((0, _moment2[\"default\"])(value, format, true) && validatorFunc(value)) {\n _this2.onDateInputSelect(value);\n }\n },\n clearIcon: clearIcon,\n renderError: renderError,\n onBlur: onInputBlur,\n validatorFunc: validatorFunc\n }) : null;\n\n var children = [];\n if (props.renderSidebar) {\n children.push(props.renderSidebar());\n }\n children.push(_react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-panel', key: 'panel' },\n dateInputElement,\n _react2[\"default\"].createElement(\n 'div',\n {\n tabIndex: this.props.focusablePanel ? 0 : undefined,\n className: prefixCls + '-date-panel',\n onMouseOver: this.onMouseOver\n },\n _react2[\"default\"].createElement(_CalendarHeader2[\"default\"], {\n locale: locale,\n mode: mode,\n value: value,\n onValueChange: this.setValue,\n onPanelChange: this.onPanelChange,\n renderFooter: renderFooter,\n showTimePicker: showTimePicker,\n prefixCls: prefixCls,\n showMonthInput: showMonthInput\n }),\n timePicker && showTimePicker ? _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-time-picker' },\n _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-time-picker-panel' },\n timePickerEle\n )\n ) : null,\n _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-body' },\n _react2[\"default\"].createElement(_DateTable2[\"default\"], {\n locale: locale,\n value: value,\n selectedValue: selectedValue,\n prefixCls: prefixCls,\n dateRender: props.dateRender,\n onSelect: this.onDateTableSelect,\n disabledDate: disabledDate,\n showWeekNumber: props.showWeekNumber\n })\n ),\n _react2[\"default\"].createElement(_CalendarFooter2[\"default\"], {\n showOk: props.showOk,\n mode: mode,\n renderFooter: props.renderFooter,\n locale: locale,\n prefixCls: prefixCls,\n showToday: props.showToday,\n disabledTime: disabledTime,\n showTimePicker: showTimePicker,\n showDateInput: props.showDateInput,\n timePicker: timePicker,\n selectedValue: selectedValue,\n value: value,\n disabledDate: disabledDate,\n okDisabled: props.showOk !== false && (!selectedValue || !this.isAllowedDate(selectedValue)),\n onOk: this.onOk,\n onSelect: this.onSelect,\n onToday: this.onToday,\n onOpenTimePicker: this.openTimePicker,\n onCloseTimePicker: this.closeTimePicker\n })\n )\n ));\n\n return this.renderRoot({\n children: children,\n className: props.showWeekNumber ? prefixCls + '-week-number' : ''\n });\n };\n\n return Calendar;\n}(_react2[\"default\"].Component);\n\nCalendar.propTypes = _extends({}, _CalendarMixin.calendarMixinPropTypes, _CommonMixin.propType, {\n prefixCls: _propTypes2[\"default\"].string,\n className: _propTypes2[\"default\"].string,\n style: _propTypes2[\"default\"].object,\n defaultValue: _propTypes2[\"default\"].object,\n value: _propTypes2[\"default\"].object,\n selectedValue: _propTypes2[\"default\"].object,\n defaultSelectedValue: _propTypes2[\"default\"].object,\n mode: _propTypes2[\"default\"].oneOf(['time', 'date', 'month', 'year', 'decade']),\n locale: _propTypes2[\"default\"].object,\n showDateInput: _propTypes2[\"default\"].bool,\n showWeekNumber: _propTypes2[\"default\"].bool,\n showToday: _propTypes2[\"default\"].bool,\n showOk: _propTypes2[\"default\"].bool,\n onSelect: _propTypes2[\"default\"].func,\n onOk: _propTypes2[\"default\"].func,\n onKeyDown: _propTypes2[\"default\"].func,\n timePicker: _propTypes2[\"default\"].element,\n dateInputPlaceholder: _propTypes2[\"default\"].any,\n onClear: _propTypes2[\"default\"].func,\n onChange: _propTypes2[\"default\"].func,\n onPanelChange: _propTypes2[\"default\"].func,\n disabledDate: _propTypes2[\"default\"].func,\n disabledTime: _propTypes2[\"default\"].any,\n dateRender: _propTypes2[\"default\"].func,\n renderFooter: _propTypes2[\"default\"].func,\n renderSidebar: _propTypes2[\"default\"].func,\n clearIcon: _propTypes2[\"default\"].node,\n focusablePanel: _propTypes2[\"default\"].bool\n});\nCalendar.defaultProps = _extends({}, _CalendarMixin.calendarMixinDefaultProps, _CommonMixin.defaultProp, {\n showToday: true,\n showDateInput: true,\n timePicker: null,\n onOk: noop,\n onPanelChange: noop,\n focusablePanel: true\n});\n\nvar _initialiseProps = function _initialiseProps() {\n var _this3 = this;\n\n this.onPanelChange = function (value, mode) {\n var props = _this3.props,\n state = _this3.state;\n\n if (!('mode' in props)) {\n _this3.setState({ mode: mode });\n }\n props.onPanelChange(value || state.value, mode);\n };\n\n this.onKeyDown = function (event) {\n if (event.target.nodeName.toLowerCase() === 'input') {\n return undefined;\n } else {\n _this3.props.onKeyDown && _this3.props.onKeyDown(event);\n }\n var keyCode = event.keyCode;\n // mac\n var ctrlKey = event.ctrlKey || event.metaKey;\n var disabledDate = _this3.props.disabledDate;\n var value = _this3.state.value;\n\n switch (keyCode) {\n case _KeyCode2[\"default\"].DOWN:\n _this3.goTime(1, 'weeks');\n event.preventDefault();\n return 1;\n case _KeyCode2[\"default\"].UP:\n _this3.goTime(-1, 'weeks');\n event.preventDefault();\n return 1;\n case _KeyCode2[\"default\"].LEFT:\n if (ctrlKey) {\n _this3.goTime(-1, 'years');\n } else {\n _this3.goTime(-1, 'days');\n }\n event.preventDefault();\n return 1;\n case _KeyCode2[\"default\"].RIGHT:\n if (ctrlKey) {\n _this3.goTime(1, 'years');\n } else {\n _this3.goTime(1, 'days');\n }\n event.preventDefault();\n return 1;\n case _KeyCode2[\"default\"].HOME:\n _this3.setValue((0, _toTime.goStartMonth)(_this3.state.value));\n event.preventDefault();\n return 1;\n case _KeyCode2[\"default\"].END:\n _this3.setValue((0, _toTime.goEndMonth)(_this3.state.value));\n event.preventDefault();\n return 1;\n case _KeyCode2[\"default\"].PAGE_DOWN:\n _this3.goTime(1, 'month');\n event.preventDefault();\n return 1;\n case _KeyCode2[\"default\"].PAGE_UP:\n _this3.goTime(-1, 'month');\n event.preventDefault();\n return 1;\n case _KeyCode2[\"default\"].ENTER:\n if (!disabledDate || !disabledDate(value)) {\n _this3.onSelect(value, {\n source: 'keyboard'\n });\n }\n event.preventDefault();\n return 1;\n }\n };\n\n this.onClear = function () {\n _this3.onSelect(null);\n _this3.props.onClear();\n };\n\n this.onOk = function () {\n var selectedValue = _this3.state.selectedValue;\n\n if (_this3.isAllowedDate(selectedValue)) {\n _this3.props.onOk(selectedValue);\n }\n };\n\n this.onDateInputChange = function (value) {\n _this3.onSelect(value, {\n source: 'dateInput'\n });\n };\n\n this.onDateInputSelect = function (value) {\n _this3.onSelect(value, {\n source: 'dateInputSelect'\n });\n };\n\n this.onDateTableSelect = function (value) {\n var timePicker = _this3.props.timePicker;\n var selectedValue = _this3.state.selectedValue;\n\n if (!selectedValue && timePicker) {\n var timePickerDefaultValue = timePicker.props.defaultValue;\n if (timePickerDefaultValue) {\n (0, _util.syncTime)(timePickerDefaultValue, value);\n }\n }\n _this3.onSelect(value);\n };\n\n this.onToday = function () {\n var value = _this3.state.value;\n\n var now = (0, _util.getTodayTime)(value);\n _this3.onSelect(now, {\n source: 'todayButton'\n });\n };\n\n this.getRootDOMNode = function () {\n return _reactDom2[\"default\"].findDOMNode(_this3);\n };\n\n this.openTimePicker = function () {\n _this3.onPanelChange(null, 'time');\n };\n\n this.closeTimePicker = function () {\n _this3.onPanelChange(null, 'date');\n };\n\n this.goTime = function (direction, unit) {\n _this3.setValue((0, _toTime.goTime)(_this3.state.value, direction, unit));\n };\n\n this.onMouseOver = function (e) {\n e.stopPropagation();\n };\n};\n\n(0, _reactLifecyclesCompat.polyfill)(Calendar);\n\nexports[\"default\"] = (0, _CalendarMixin.calendarMixinWrapper)((0, _CommonMixin.commonMixinWrapper)(Calendar));\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-datepicker/build/rc-calendar/Calendar.js\n// module id = 399\n// module chunks = 0","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\n/**\n * @ignore\n * some key-codes definition and utils from closure-library\n * @author yiminghe@gmail.com\n */\nvar KeyCode = {\n /**\n * MAC_ENTER\n */\n MAC_ENTER: 3,\n\n /**\n * BACKSPACE\n */\n BACKSPACE: 8,\n\n /**\n * TAB\n */\n TAB: 9,\n\n /**\n * NUMLOCK on FF/Safari Mac\n */\n NUM_CENTER: 12,\n\n /**\n * ENTER\n */\n ENTER: 13,\n\n /**\n * SHIFT\n */\n SHIFT: 16,\n\n /**\n * CTRL\n */\n CTRL: 17,\n\n /**\n * ALT\n */\n ALT: 18,\n\n /**\n * PAUSE\n */\n PAUSE: 19,\n\n /**\n * CAPS_LOCK\n */\n CAPS_LOCK: 20,\n\n /**\n * ESC\n */\n ESC: 27,\n\n /**\n * SPACE\n */\n SPACE: 32,\n\n /**\n * PAGE_UP\n */\n PAGE_UP: 33,\n\n /**\n * PAGE_DOWN\n */\n PAGE_DOWN: 34,\n\n /**\n * END\n */\n END: 35,\n\n /**\n * HOME\n */\n HOME: 36,\n\n /**\n * LEFT\n */\n LEFT: 37,\n\n /**\n * UP\n */\n UP: 38,\n\n /**\n * RIGHT\n */\n RIGHT: 39,\n\n /**\n * DOWN\n */\n DOWN: 40,\n\n /**\n * PRINT_SCREEN\n */\n PRINT_SCREEN: 44,\n\n /**\n * INSERT\n */\n INSERT: 45,\n\n /**\n * DELETE\n */\n DELETE: 46,\n\n /**\n * ZERO\n */\n ZERO: 48,\n\n /**\n * ONE\n */\n ONE: 49,\n\n /**\n * TWO\n */\n TWO: 50,\n\n /**\n * THREE\n */\n THREE: 51,\n\n /**\n * FOUR\n */\n FOUR: 52,\n\n /**\n * FIVE\n */\n FIVE: 53,\n\n /**\n * SIX\n */\n SIX: 54,\n\n /**\n * SEVEN\n */\n SEVEN: 55,\n\n /**\n * EIGHT\n */\n EIGHT: 56,\n\n /**\n * NINE\n */\n NINE: 57,\n\n /**\n * QUESTION_MARK\n */\n QUESTION_MARK: 63,\n\n /**\n * A\n */\n A: 65,\n\n /**\n * B\n */\n B: 66,\n\n /**\n * C\n */\n C: 67,\n\n /**\n * D\n */\n D: 68,\n\n /**\n * E\n */\n E: 69,\n\n /**\n * F\n */\n F: 70,\n\n /**\n * G\n */\n G: 71,\n\n /**\n * H\n */\n H: 72,\n\n /**\n * I\n */\n I: 73,\n\n /**\n * J\n */\n J: 74,\n\n /**\n * K\n */\n K: 75,\n\n /**\n * L\n */\n L: 76,\n\n /**\n * M\n */\n M: 77,\n\n /**\n * N\n */\n N: 78,\n\n /**\n * O\n */\n O: 79,\n\n /**\n * P\n */\n P: 80,\n\n /**\n * Q\n */\n Q: 81,\n\n /**\n * R\n */\n R: 82,\n\n /**\n * S\n */\n S: 83,\n\n /**\n * T\n */\n T: 84,\n\n /**\n * U\n */\n U: 85,\n\n /**\n * V\n */\n V: 86,\n\n /**\n * W\n */\n W: 87,\n\n /**\n * X\n */\n X: 88,\n\n /**\n * Y\n */\n Y: 89,\n\n /**\n * Z\n */\n Z: 90,\n\n /**\n * META\n */\n META: 91,\n\n /**\n * WIN_KEY_RIGHT\n */\n WIN_KEY_RIGHT: 92,\n\n /**\n * CONTEXT_MENU\n */\n CONTEXT_MENU: 93,\n\n /**\n * NUM_ZERO\n */\n NUM_ZERO: 96,\n\n /**\n * NUM_ONE\n */\n NUM_ONE: 97,\n\n /**\n * NUM_TWO\n */\n NUM_TWO: 98,\n\n /**\n * NUM_THREE\n */\n NUM_THREE: 99,\n\n /**\n * NUM_FOUR\n */\n NUM_FOUR: 100,\n\n /**\n * NUM_FIVE\n */\n NUM_FIVE: 101,\n\n /**\n * NUM_SIX\n */\n NUM_SIX: 102,\n\n /**\n * NUM_SEVEN\n */\n NUM_SEVEN: 103,\n\n /**\n * NUM_EIGHT\n */\n NUM_EIGHT: 104,\n\n /**\n * NUM_NINE\n */\n NUM_NINE: 105,\n\n /**\n * NUM_MULTIPLY\n */\n NUM_MULTIPLY: 106,\n\n /**\n * NUM_PLUS\n */\n NUM_PLUS: 107,\n\n /**\n * NUM_MINUS\n */\n NUM_MINUS: 109,\n\n /**\n * NUM_PERIOD\n */\n NUM_PERIOD: 110,\n\n /**\n * NUM_DIVISION\n */\n NUM_DIVISION: 111,\n\n /**\n * F1\n */\n F1: 112,\n\n /**\n * F2\n */\n F2: 113,\n\n /**\n * F3\n */\n F3: 114,\n\n /**\n * F4\n */\n F4: 115,\n\n /**\n * F5\n */\n F5: 116,\n\n /**\n * F6\n */\n F6: 117,\n\n /**\n * F7\n */\n F7: 118,\n\n /**\n * F8\n */\n F8: 119,\n\n /**\n * F9\n */\n F9: 120,\n\n /**\n * F10\n */\n F10: 121,\n\n /**\n * F11\n */\n F11: 122,\n\n /**\n * F12\n */\n F12: 123,\n\n /**\n * NUMLOCK\n */\n NUMLOCK: 144,\n\n /**\n * SEMICOLON\n */\n SEMICOLON: 186,\n\n /**\n * DASH\n */\n DASH: 189,\n\n /**\n * EQUALS\n */\n EQUALS: 187,\n\n /**\n * COMMA\n */\n COMMA: 188,\n\n /**\n * PERIOD\n */\n PERIOD: 190,\n\n /**\n * SLASH\n */\n SLASH: 191,\n\n /**\n * APOSTROPHE\n */\n APOSTROPHE: 192,\n\n /**\n * SINGLE_QUOTE\n */\n SINGLE_QUOTE: 222,\n\n /**\n * OPEN_SQUARE_BRACKET\n */\n OPEN_SQUARE_BRACKET: 219,\n\n /**\n * BACKSLASH\n */\n BACKSLASH: 220,\n\n /**\n * CLOSE_SQUARE_BRACKET\n */\n CLOSE_SQUARE_BRACKET: 221,\n\n /**\n * WIN_KEY\n */\n WIN_KEY: 224,\n\n /**\n * MAC_FF_META\n */\n MAC_FF_META: 224,\n\n /**\n * WIN_IME\n */\n WIN_IME: 229,\n // ======================== Function ========================\n\n /**\n * whether text and modified key is entered at the same time.\n */\n isTextModifyingKeyEvent: function isTextModifyingKeyEvent(e) {\n var keyCode = e.keyCode;\n\n if (e.altKey && !e.ctrlKey || e.metaKey || // Function keys don't generate text\n keyCode >= KeyCode.F1 && keyCode <= KeyCode.F12) {\n return false;\n } // The following keys are quite harmless, even in combination with\n // CTRL, ALT or SHIFT.\n\n\n switch (keyCode) {\n case KeyCode.ALT:\n case KeyCode.CAPS_LOCK:\n case KeyCode.CONTEXT_MENU:\n case KeyCode.CTRL:\n case KeyCode.DOWN:\n case KeyCode.END:\n case KeyCode.ESC:\n case KeyCode.HOME:\n case KeyCode.INSERT:\n case KeyCode.LEFT:\n case KeyCode.MAC_FF_META:\n case KeyCode.META:\n case KeyCode.NUMLOCK:\n case KeyCode.NUM_CENTER:\n case KeyCode.PAGE_DOWN:\n case KeyCode.PAGE_UP:\n case KeyCode.PAUSE:\n case KeyCode.PRINT_SCREEN:\n case KeyCode.RIGHT:\n case KeyCode.SHIFT:\n case KeyCode.UP:\n case KeyCode.WIN_KEY:\n case KeyCode.WIN_KEY_RIGHT:\n return false;\n\n default:\n return true;\n }\n },\n\n /**\n * whether character is entered.\n */\n isCharacterKey: function isCharacterKey(keyCode) {\n if (keyCode >= KeyCode.ZERO && keyCode <= KeyCode.NINE) {\n return true;\n }\n\n if (keyCode >= KeyCode.NUM_ZERO && keyCode <= KeyCode.NUM_MULTIPLY) {\n return true;\n }\n\n if (keyCode >= KeyCode.A && keyCode <= KeyCode.Z) {\n return true;\n } // Safari sends zero key code for non-latin characters.\n\n\n if (window.navigator.userAgent.indexOf('WebKit') !== -1 && keyCode === 0) {\n return true;\n }\n\n switch (keyCode) {\n case KeyCode.SPACE:\n case KeyCode.QUESTION_MARK:\n case KeyCode.NUM_PLUS:\n case KeyCode.NUM_MINUS:\n case KeyCode.NUM_PERIOD:\n case KeyCode.NUM_DIVISION:\n case KeyCode.SEMICOLON:\n case KeyCode.DASH:\n case KeyCode.EQUALS:\n case KeyCode.COMMA:\n case KeyCode.PERIOD:\n case KeyCode.SLASH:\n case KeyCode.APOSTROPHE:\n case KeyCode.SINGLE_QUOTE:\n case KeyCode.OPEN_SQUARE_BRACKET:\n case KeyCode.BACKSLASH:\n case KeyCode.CLOSE_SQUARE_BRACKET:\n return true;\n\n default:\n return false;\n }\n }\n};\nvar _default = KeyCode;\nexports.default = _default;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rc-util/lib/KeyCode.js\n// module id = 400\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _DateTHead = require('./DateTHead');\n\nvar _DateTHead2 = _interopRequireDefault(_DateTHead);\n\nvar _DateTBody = require('./DateTBody');\n\nvar _DateTBody2 = _interopRequireDefault(_DateTBody);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar DateTable = function (_React$Component) {\n _inherits(DateTable, _React$Component);\n\n function DateTable() {\n _classCallCheck(this, DateTable);\n\n return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n DateTable.prototype.render = function render() {\n var props = this.props;\n var prefixCls = props.prefixCls;\n return _react2[\"default\"].createElement(\n 'table',\n { className: prefixCls + '-table', cellSpacing: '0', role: 'grid' },\n _react2[\"default\"].createElement(_DateTHead2[\"default\"], props),\n _react2[\"default\"].createElement(_DateTBody2[\"default\"], props)\n );\n };\n\n return DateTable;\n}(_react2[\"default\"].Component);\n\nexports[\"default\"] = DateTable;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-datepicker/build/rc-calendar/date/DateTable.js\n// module id = 401\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _DateConstants = require('./DateConstants');\n\nvar _DateConstants2 = _interopRequireDefault(_DateConstants);\n\nvar _moment = require('moment');\n\nvar _moment2 = _interopRequireDefault(_moment);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar DateTHead = function (_React$Component) {\n _inherits(DateTHead, _React$Component);\n\n function DateTHead() {\n _classCallCheck(this, DateTHead);\n\n return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n DateTHead.prototype.render = function render() {\n var props = this.props;\n var value = props.value;\n var localeData = value.localeData();\n var prefixCls = props.prefixCls;\n var veryShortWeekdays = [];\n var weekDays = [];\n var firstDayOfWeek = localeData.firstDayOfWeek();\n var showWeekNumberEl = void 0;\n var now = (0, _moment2[\"default\"])();\n for (var dateColIndex = 0; dateColIndex < _DateConstants2[\"default\"].DATE_COL_COUNT; dateColIndex++) {\n var index = (firstDayOfWeek + dateColIndex) % _DateConstants2[\"default\"].DATE_COL_COUNT;\n now.day(index);\n veryShortWeekdays[dateColIndex] = localeData.weekdaysMin(now);\n weekDays[dateColIndex] = localeData.weekdaysShort(now);\n }\n\n if (props.showWeekNumber) {\n showWeekNumberEl = _react2[\"default\"].createElement(\n 'th',\n {\n role: 'columnheader',\n className: prefixCls + '-column-header ' + prefixCls + '-week-number-header'\n },\n _react2[\"default\"].createElement(\n 'span',\n { className: prefixCls + '-column-header-inner' },\n 'x'\n )\n );\n }\n var weekDaysEls = weekDays.map(function (day, xindex) {\n return _react2[\"default\"].createElement(\n 'th',\n {\n key: xindex,\n role: 'columnheader',\n title: day,\n className: prefixCls + '-column-header'\n },\n _react2[\"default\"].createElement(\n 'span',\n { className: prefixCls + '-column-header-inner' },\n veryShortWeekdays[xindex]\n )\n );\n });\n return _react2[\"default\"].createElement(\n 'thead',\n null,\n _react2[\"default\"].createElement(\n 'tr',\n { role: 'row' },\n showWeekNumberEl,\n weekDaysEls\n )\n );\n };\n\n return DateTHead;\n}(_react2[\"default\"].Component);\n\nexports[\"default\"] = DateTHead;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-datepicker/build/rc-calendar/date/DateTHead.js\n// module id = 402\n// module chunks = 0","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = {\n DATE_ROW_COUNT: 6,\n DATE_COL_COUNT: 7\n};\nmodule.exports = exports[\"default\"];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-datepicker/build/rc-calendar/date/DateConstants.js\n// module id = 403\n// module chunks = 0","//! moment.js\n//! version : 2.27.0\n//! authors : Tim Wood, Iskren Chernev, Moment.js contributors\n//! license : MIT\n//! momentjs.com\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n typeof define === 'function' && define.amd ? define(factory) :\n global.moment = factory()\n}(this, (function () { 'use strict';\n\n var hookCallback;\n\n function hooks() {\n return hookCallback.apply(null, arguments);\n }\n\n // This is done to register the method called with moment()\n // without creating circular dependencies.\n function setHookCallback(callback) {\n hookCallback = callback;\n }\n\n function isArray(input) {\n return (\n input instanceof Array ||\n Object.prototype.toString.call(input) === '[object Array]'\n );\n }\n\n function isObject(input) {\n // IE8 will treat undefined and null as object if it wasn't for\n // input != null\n return (\n input != null &&\n Object.prototype.toString.call(input) === '[object Object]'\n );\n }\n\n function hasOwnProp(a, b) {\n return Object.prototype.hasOwnProperty.call(a, b);\n }\n\n function isObjectEmpty(obj) {\n if (Object.getOwnPropertyNames) {\n return Object.getOwnPropertyNames(obj).length === 0;\n } else {\n var k;\n for (k in obj) {\n if (hasOwnProp(obj, k)) {\n return false;\n }\n }\n return true;\n }\n }\n\n function isUndefined(input) {\n return input === void 0;\n }\n\n function isNumber(input) {\n return (\n typeof input === 'number' ||\n Object.prototype.toString.call(input) === '[object Number]'\n );\n }\n\n function isDate(input) {\n return (\n input instanceof Date ||\n Object.prototype.toString.call(input) === '[object Date]'\n );\n }\n\n function map(arr, fn) {\n var res = [],\n i;\n for (i = 0; i < arr.length; ++i) {\n res.push(fn(arr[i], i));\n }\n return res;\n }\n\n function extend(a, b) {\n for (var i in b) {\n if (hasOwnProp(b, i)) {\n a[i] = b[i];\n }\n }\n\n if (hasOwnProp(b, 'toString')) {\n a.toString = b.toString;\n }\n\n if (hasOwnProp(b, 'valueOf')) {\n a.valueOf = b.valueOf;\n }\n\n return a;\n }\n\n function createUTC(input, format, locale, strict) {\n return createLocalOrUTC(input, format, locale, strict, true).utc();\n }\n\n function defaultParsingFlags() {\n // We need to deep clone this object.\n return {\n empty: false,\n unusedTokens: [],\n unusedInput: [],\n overflow: -2,\n charsLeftOver: 0,\n nullInput: false,\n invalidEra: null,\n invalidMonth: null,\n invalidFormat: false,\n userInvalidated: false,\n iso: false,\n parsedDateParts: [],\n era: null,\n meridiem: null,\n rfc2822: false,\n weekdayMismatch: false,\n };\n }\n\n function getParsingFlags(m) {\n if (m._pf == null) {\n m._pf = defaultParsingFlags();\n }\n return m._pf;\n }\n\n var some;\n if (Array.prototype.some) {\n some = Array.prototype.some;\n } else {\n some = function (fun) {\n var t = Object(this),\n len = t.length >>> 0,\n i;\n\n for (i = 0; i < len; i++) {\n if (i in t && fun.call(this, t[i], i, t)) {\n return true;\n }\n }\n\n return false;\n };\n }\n\n function isValid(m) {\n if (m._isValid == null) {\n var flags = getParsingFlags(m),\n parsedParts = some.call(flags.parsedDateParts, function (i) {\n return i != null;\n }),\n isNowValid =\n !isNaN(m._d.getTime()) &&\n flags.overflow < 0 &&\n !flags.empty &&\n !flags.invalidEra &&\n !flags.invalidMonth &&\n !flags.invalidWeekday &&\n !flags.weekdayMismatch &&\n !flags.nullInput &&\n !flags.invalidFormat &&\n !flags.userInvalidated &&\n (!flags.meridiem || (flags.meridiem && parsedParts));\n\n if (m._strict) {\n isNowValid =\n isNowValid &&\n flags.charsLeftOver === 0 &&\n flags.unusedTokens.length === 0 &&\n flags.bigHour === undefined;\n }\n\n if (Object.isFrozen == null || !Object.isFrozen(m)) {\n m._isValid = isNowValid;\n } else {\n return isNowValid;\n }\n }\n return m._isValid;\n }\n\n function createInvalid(flags) {\n var m = createUTC(NaN);\n if (flags != null) {\n extend(getParsingFlags(m), flags);\n } else {\n getParsingFlags(m).userInvalidated = true;\n }\n\n return m;\n }\n\n // Plugins that add properties should also add the key here (null value),\n // so we can properly clone ourselves.\n var momentProperties = (hooks.momentProperties = []),\n updateInProgress = false;\n\n function copyConfig(to, from) {\n var i, prop, val;\n\n if (!isUndefined(from._isAMomentObject)) {\n to._isAMomentObject = from._isAMomentObject;\n }\n if (!isUndefined(from._i)) {\n to._i = from._i;\n }\n if (!isUndefined(from._f)) {\n to._f = from._f;\n }\n if (!isUndefined(from._l)) {\n to._l = from._l;\n }\n if (!isUndefined(from._strict)) {\n to._strict = from._strict;\n }\n if (!isUndefined(from._tzm)) {\n to._tzm = from._tzm;\n }\n if (!isUndefined(from._isUTC)) {\n to._isUTC = from._isUTC;\n }\n if (!isUndefined(from._offset)) {\n to._offset = from._offset;\n }\n if (!isUndefined(from._pf)) {\n to._pf = getParsingFlags(from);\n }\n if (!isUndefined(from._locale)) {\n to._locale = from._locale;\n }\n\n if (momentProperties.length > 0) {\n for (i = 0; i < momentProperties.length; i++) {\n prop = momentProperties[i];\n val = from[prop];\n if (!isUndefined(val)) {\n to[prop] = val;\n }\n }\n }\n\n return to;\n }\n\n // Moment prototype object\n function Moment(config) {\n copyConfig(this, config);\n this._d = new Date(config._d != null ? config._d.getTime() : NaN);\n if (!this.isValid()) {\n this._d = new Date(NaN);\n }\n // Prevent infinite loop in case updateOffset creates new moment\n // objects.\n if (updateInProgress === false) {\n updateInProgress = true;\n hooks.updateOffset(this);\n updateInProgress = false;\n }\n }\n\n function isMoment(obj) {\n return (\n obj instanceof Moment || (obj != null && obj._isAMomentObject != null)\n );\n }\n\n function warn(msg) {\n if (\n hooks.suppressDeprecationWarnings === false &&\n typeof console !== 'undefined' &&\n console.warn\n ) {\n console.warn('Deprecation warning: ' + msg);\n }\n }\n\n function deprecate(msg, fn) {\n var firstTime = true;\n\n return extend(function () {\n if (hooks.deprecationHandler != null) {\n hooks.deprecationHandler(null, msg);\n }\n if (firstTime) {\n var args = [],\n arg,\n i,\n key;\n for (i = 0; i < arguments.length; i++) {\n arg = '';\n if (typeof arguments[i] === 'object') {\n arg += '\\n[' + i + '] ';\n for (key in arguments[0]) {\n if (hasOwnProp(arguments[0], key)) {\n arg += key + ': ' + arguments[0][key] + ', ';\n }\n }\n arg = arg.slice(0, -2); // Remove trailing comma and space\n } else {\n arg = arguments[i];\n }\n args.push(arg);\n }\n warn(\n msg +\n '\\nArguments: ' +\n Array.prototype.slice.call(args).join('') +\n '\\n' +\n new Error().stack\n );\n firstTime = false;\n }\n return fn.apply(this, arguments);\n }, fn);\n }\n\n var deprecations = {};\n\n function deprecateSimple(name, msg) {\n if (hooks.deprecationHandler != null) {\n hooks.deprecationHandler(name, msg);\n }\n if (!deprecations[name]) {\n warn(msg);\n deprecations[name] = true;\n }\n }\n\n hooks.suppressDeprecationWarnings = false;\n hooks.deprecationHandler = null;\n\n function isFunction(input) {\n return (\n (typeof Function !== 'undefined' && input instanceof Function) ||\n Object.prototype.toString.call(input) === '[object Function]'\n );\n }\n\n function set(config) {\n var prop, i;\n for (i in config) {\n if (hasOwnProp(config, i)) {\n prop = config[i];\n if (isFunction(prop)) {\n this[i] = prop;\n } else {\n this['_' + i] = prop;\n }\n }\n }\n this._config = config;\n // Lenient ordinal parsing accepts just a number in addition to\n // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.\n // TODO: Remove \"ordinalParse\" fallback in next major release.\n this._dayOfMonthOrdinalParseLenient = new RegExp(\n (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) +\n '|' +\n /\\d{1,2}/.source\n );\n }\n\n function mergeConfigs(parentConfig, childConfig) {\n var res = extend({}, parentConfig),\n prop;\n for (prop in childConfig) {\n if (hasOwnProp(childConfig, prop)) {\n if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {\n res[prop] = {};\n extend(res[prop], parentConfig[prop]);\n extend(res[prop], childConfig[prop]);\n } else if (childConfig[prop] != null) {\n res[prop] = childConfig[prop];\n } else {\n delete res[prop];\n }\n }\n }\n for (prop in parentConfig) {\n if (\n hasOwnProp(parentConfig, prop) &&\n !hasOwnProp(childConfig, prop) &&\n isObject(parentConfig[prop])\n ) {\n // make sure changes to properties don't modify parent config\n res[prop] = extend({}, res[prop]);\n }\n }\n return res;\n }\n\n function Locale(config) {\n if (config != null) {\n this.set(config);\n }\n }\n\n var keys;\n\n if (Object.keys) {\n keys = Object.keys;\n } else {\n keys = function (obj) {\n var i,\n res = [];\n for (i in obj) {\n if (hasOwnProp(obj, i)) {\n res.push(i);\n }\n }\n return res;\n };\n }\n\n var defaultCalendar = {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L',\n };\n\n function calendar(key, mom, now) {\n var output = this._calendar[key] || this._calendar['sameElse'];\n return isFunction(output) ? output.call(mom, now) : output;\n }\n\n function zeroFill(number, targetLength, forceSign) {\n var absNumber = '' + Math.abs(number),\n zerosToFill = targetLength - absNumber.length,\n sign = number >= 0;\n return (\n (sign ? (forceSign ? '+' : '') : '-') +\n Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) +\n absNumber\n );\n }\n\n var formattingTokens = /(\\[[^\\[]*\\])|(\\\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,\n localFormattingTokens = /(\\[[^\\[]*\\])|(\\\\)?(LTS|LT|LL?L?L?|l{1,4})/g,\n formatFunctions = {},\n formatTokenFunctions = {};\n\n // token: 'M'\n // padded: ['MM', 2]\n // ordinal: 'Mo'\n // callback: function () { this.month() + 1 }\n function addFormatToken(token, padded, ordinal, callback) {\n var func = callback;\n if (typeof callback === 'string') {\n func = function () {\n return this[callback]();\n };\n }\n if (token) {\n formatTokenFunctions[token] = func;\n }\n if (padded) {\n formatTokenFunctions[padded[0]] = function () {\n return zeroFill(func.apply(this, arguments), padded[1], padded[2]);\n };\n }\n if (ordinal) {\n formatTokenFunctions[ordinal] = function () {\n return this.localeData().ordinal(\n func.apply(this, arguments),\n token\n );\n };\n }\n }\n\n function removeFormattingTokens(input) {\n if (input.match(/\\[[\\s\\S]/)) {\n return input.replace(/^\\[|\\]$/g, '');\n }\n return input.replace(/\\\\/g, '');\n }\n\n function makeFormatFunction(format) {\n var array = format.match(formattingTokens),\n i,\n length;\n\n for (i = 0, length = array.length; i < length; i++) {\n if (formatTokenFunctions[array[i]]) {\n array[i] = formatTokenFunctions[array[i]];\n } else {\n array[i] = removeFormattingTokens(array[i]);\n }\n }\n\n return function (mom) {\n var output = '',\n i;\n for (i = 0; i < length; i++) {\n output += isFunction(array[i])\n ? array[i].call(mom, format)\n : array[i];\n }\n return output;\n };\n }\n\n // format date using native date object\n function formatMoment(m, format) {\n if (!m.isValid()) {\n return m.localeData().invalidDate();\n }\n\n format = expandFormat(format, m.localeData());\n formatFunctions[format] =\n formatFunctions[format] || makeFormatFunction(format);\n\n return formatFunctions[format](m);\n }\n\n function expandFormat(format, locale) {\n var i = 5;\n\n function replaceLongDateFormatTokens(input) {\n return locale.longDateFormat(input) || input;\n }\n\n localFormattingTokens.lastIndex = 0;\n while (i >= 0 && localFormattingTokens.test(format)) {\n format = format.replace(\n localFormattingTokens,\n replaceLongDateFormatTokens\n );\n localFormattingTokens.lastIndex = 0;\n i -= 1;\n }\n\n return format;\n }\n\n var defaultLongDateFormat = {\n LTS: 'h:mm:ss A',\n LT: 'h:mm A',\n L: 'MM/DD/YYYY',\n LL: 'MMMM D, YYYY',\n LLL: 'MMMM D, YYYY h:mm A',\n LLLL: 'dddd, MMMM D, YYYY h:mm A',\n };\n\n function longDateFormat(key) {\n var format = this._longDateFormat[key],\n formatUpper = this._longDateFormat[key.toUpperCase()];\n\n if (format || !formatUpper) {\n return format;\n }\n\n this._longDateFormat[key] = formatUpper\n .match(formattingTokens)\n .map(function (tok) {\n if (\n tok === 'MMMM' ||\n tok === 'MM' ||\n tok === 'DD' ||\n tok === 'dddd'\n ) {\n return tok.slice(1);\n }\n return tok;\n })\n .join('');\n\n return this._longDateFormat[key];\n }\n\n var defaultInvalidDate = 'Invalid date';\n\n function invalidDate() {\n return this._invalidDate;\n }\n\n var defaultOrdinal = '%d',\n defaultDayOfMonthOrdinalParse = /\\d{1,2}/;\n\n function ordinal(number) {\n return this._ordinal.replace('%d', number);\n }\n\n var defaultRelativeTime = {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n w: 'a week',\n ww: '%d weeks',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years',\n };\n\n function relativeTime(number, withoutSuffix, string, isFuture) {\n var output = this._relativeTime[string];\n return isFunction(output)\n ? output(number, withoutSuffix, string, isFuture)\n : output.replace(/%d/i, number);\n }\n\n function pastFuture(diff, output) {\n var format = this._relativeTime[diff > 0 ? 'future' : 'past'];\n return isFunction(format) ? format(output) : format.replace(/%s/i, output);\n }\n\n var aliases = {};\n\n function addUnitAlias(unit, shorthand) {\n var lowerCase = unit.toLowerCase();\n aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;\n }\n\n function normalizeUnits(units) {\n return typeof units === 'string'\n ? aliases[units] || aliases[units.toLowerCase()]\n : undefined;\n }\n\n function normalizeObjectUnits(inputObject) {\n var normalizedInput = {},\n normalizedProp,\n prop;\n\n for (prop in inputObject) {\n if (hasOwnProp(inputObject, prop)) {\n normalizedProp = normalizeUnits(prop);\n if (normalizedProp) {\n normalizedInput[normalizedProp] = inputObject[prop];\n }\n }\n }\n\n return normalizedInput;\n }\n\n var priorities = {};\n\n function addUnitPriority(unit, priority) {\n priorities[unit] = priority;\n }\n\n function getPrioritizedUnits(unitsObj) {\n var units = [],\n u;\n for (u in unitsObj) {\n if (hasOwnProp(unitsObj, u)) {\n units.push({ unit: u, priority: priorities[u] });\n }\n }\n units.sort(function (a, b) {\n return a.priority - b.priority;\n });\n return units;\n }\n\n function isLeapYear(year) {\n return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;\n }\n\n function absFloor(number) {\n if (number < 0) {\n // -0 -> 0\n return Math.ceil(number) || 0;\n } else {\n return Math.floor(number);\n }\n }\n\n function toInt(argumentForCoercion) {\n var coercedNumber = +argumentForCoercion,\n value = 0;\n\n if (coercedNumber !== 0 && isFinite(coercedNumber)) {\n value = absFloor(coercedNumber);\n }\n\n return value;\n }\n\n function makeGetSet(unit, keepTime) {\n return function (value) {\n if (value != null) {\n set$1(this, unit, value);\n hooks.updateOffset(this, keepTime);\n return this;\n } else {\n return get(this, unit);\n }\n };\n }\n\n function get(mom, unit) {\n return mom.isValid()\n ? mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]()\n : NaN;\n }\n\n function set$1(mom, unit, value) {\n if (mom.isValid() && !isNaN(value)) {\n if (\n unit === 'FullYear' &&\n isLeapYear(mom.year()) &&\n mom.month() === 1 &&\n mom.date() === 29\n ) {\n value = toInt(value);\n mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](\n value,\n mom.month(),\n daysInMonth(value, mom.month())\n );\n } else {\n mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);\n }\n }\n }\n\n // MOMENTS\n\n function stringGet(units) {\n units = normalizeUnits(units);\n if (isFunction(this[units])) {\n return this[units]();\n }\n return this;\n }\n\n function stringSet(units, value) {\n if (typeof units === 'object') {\n units = normalizeObjectUnits(units);\n var prioritized = getPrioritizedUnits(units),\n i;\n for (i = 0; i < prioritized.length; i++) {\n this[prioritized[i].unit](units[prioritized[i].unit]);\n }\n } else {\n units = normalizeUnits(units);\n if (isFunction(this[units])) {\n return this[units](value);\n }\n }\n return this;\n }\n\n var match1 = /\\d/, // 0 - 9\n match2 = /\\d\\d/, // 00 - 99\n match3 = /\\d{3}/, // 000 - 999\n match4 = /\\d{4}/, // 0000 - 9999\n match6 = /[+-]?\\d{6}/, // -999999 - 999999\n match1to2 = /\\d\\d?/, // 0 - 99\n match3to4 = /\\d\\d\\d\\d?/, // 999 - 9999\n match5to6 = /\\d\\d\\d\\d\\d\\d?/, // 99999 - 999999\n match1to3 = /\\d{1,3}/, // 0 - 999\n match1to4 = /\\d{1,4}/, // 0 - 9999\n match1to6 = /[+-]?\\d{1,6}/, // -999999 - 999999\n matchUnsigned = /\\d+/, // 0 - inf\n matchSigned = /[+-]?\\d+/, // -inf - inf\n matchOffset = /Z|[+-]\\d\\d:?\\d\\d/gi, // +00:00 -00:00 +0000 -0000 or Z\n matchShortOffset = /Z|[+-]\\d\\d(?::?\\d\\d)?/gi, // +00 -00 +00:00 -00:00 +0000 -0000 or Z\n matchTimestamp = /[+-]?\\d+(\\.\\d{1,3})?/, // 123456789 123456789.123\n // any word (or two) characters or numbers including two/three word month in arabic.\n // includes scottish gaelic two word and hyphenated months\n matchWord = /[0-9]{0,256}['a-z\\u00A0-\\u05FF\\u0700-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFF07\\uFF10-\\uFFEF]{1,256}|[\\u0600-\\u06FF\\/]{1,256}(\\s*?[\\u0600-\\u06FF]{1,256}){1,2}/i,\n regexes;\n\n regexes = {};\n\n function addRegexToken(token, regex, strictRegex) {\n regexes[token] = isFunction(regex)\n ? regex\n : function (isStrict, localeData) {\n return isStrict && strictRegex ? strictRegex : regex;\n };\n }\n\n function getParseRegexForToken(token, config) {\n if (!hasOwnProp(regexes, token)) {\n return new RegExp(unescapeFormat(token));\n }\n\n return regexes[token](config._strict, config._locale);\n }\n\n // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript\n function unescapeFormat(s) {\n return regexEscape(\n s\n .replace('\\\\', '')\n .replace(/\\\\(\\[)|\\\\(\\])|\\[([^\\]\\[]*)\\]|\\\\(.)/g, function (\n matched,\n p1,\n p2,\n p3,\n p4\n ) {\n return p1 || p2 || p3 || p4;\n })\n );\n }\n\n function regexEscape(s) {\n return s.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g, '\\\\$&');\n }\n\n var tokens = {};\n\n function addParseToken(token, callback) {\n var i,\n func = callback;\n if (typeof token === 'string') {\n token = [token];\n }\n if (isNumber(callback)) {\n func = function (input, array) {\n array[callback] = toInt(input);\n };\n }\n for (i = 0; i < token.length; i++) {\n tokens[token[i]] = func;\n }\n }\n\n function addWeekParseToken(token, callback) {\n addParseToken(token, function (input, array, config, token) {\n config._w = config._w || {};\n callback(input, config._w, config, token);\n });\n }\n\n function addTimeToArrayFromToken(token, input, config) {\n if (input != null && hasOwnProp(tokens, token)) {\n tokens[token](input, config._a, config, token);\n }\n }\n\n var YEAR = 0,\n MONTH = 1,\n DATE = 2,\n HOUR = 3,\n MINUTE = 4,\n SECOND = 5,\n MILLISECOND = 6,\n WEEK = 7,\n WEEKDAY = 8;\n\n function mod(n, x) {\n return ((n % x) + x) % x;\n }\n\n var indexOf;\n\n if (Array.prototype.indexOf) {\n indexOf = Array.prototype.indexOf;\n } else {\n indexOf = function (o) {\n // I know\n var i;\n for (i = 0; i < this.length; ++i) {\n if (this[i] === o) {\n return i;\n }\n }\n return -1;\n };\n }\n\n function daysInMonth(year, month) {\n if (isNaN(year) || isNaN(month)) {\n return NaN;\n }\n var modMonth = mod(month, 12);\n year += (month - modMonth) / 12;\n return modMonth === 1\n ? isLeapYear(year)\n ? 29\n : 28\n : 31 - ((modMonth % 7) % 2);\n }\n\n // FORMATTING\n\n addFormatToken('M', ['MM', 2], 'Mo', function () {\n return this.month() + 1;\n });\n\n addFormatToken('MMM', 0, 0, function (format) {\n return this.localeData().monthsShort(this, format);\n });\n\n addFormatToken('MMMM', 0, 0, function (format) {\n return this.localeData().months(this, format);\n });\n\n // ALIASES\n\n addUnitAlias('month', 'M');\n\n // PRIORITY\n\n addUnitPriority('month', 8);\n\n // PARSING\n\n addRegexToken('M', match1to2);\n addRegexToken('MM', match1to2, match2);\n addRegexToken('MMM', function (isStrict, locale) {\n return locale.monthsShortRegex(isStrict);\n });\n addRegexToken('MMMM', function (isStrict, locale) {\n return locale.monthsRegex(isStrict);\n });\n\n addParseToken(['M', 'MM'], function (input, array) {\n array[MONTH] = toInt(input) - 1;\n });\n\n addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {\n var month = config._locale.monthsParse(input, token, config._strict);\n // if we didn't find a month name, mark the date as invalid.\n if (month != null) {\n array[MONTH] = month;\n } else {\n getParsingFlags(config).invalidMonth = input;\n }\n });\n\n // LOCALES\n\n var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n '_'\n ),\n defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split(\n '_'\n ),\n MONTHS_IN_FORMAT = /D[oD]?(\\[[^\\[\\]]*\\]|\\s)+MMMM?/,\n defaultMonthsShortRegex = matchWord,\n defaultMonthsRegex = matchWord;\n\n function localeMonths(m, format) {\n if (!m) {\n return isArray(this._months)\n ? this._months\n : this._months['standalone'];\n }\n return isArray(this._months)\n ? this._months[m.month()]\n : this._months[\n (this._months.isFormat || MONTHS_IN_FORMAT).test(format)\n ? 'format'\n : 'standalone'\n ][m.month()];\n }\n\n function localeMonthsShort(m, format) {\n if (!m) {\n return isArray(this._monthsShort)\n ? this._monthsShort\n : this._monthsShort['standalone'];\n }\n return isArray(this._monthsShort)\n ? this._monthsShort[m.month()]\n : this._monthsShort[\n MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'\n ][m.month()];\n }\n\n function handleStrictParse(monthName, format, strict) {\n var i,\n ii,\n mom,\n llc = monthName.toLocaleLowerCase();\n if (!this._monthsParse) {\n // this is not used\n this._monthsParse = [];\n this._longMonthsParse = [];\n this._shortMonthsParse = [];\n for (i = 0; i < 12; ++i) {\n mom = createUTC([2000, i]);\n this._shortMonthsParse[i] = this.monthsShort(\n mom,\n ''\n ).toLocaleLowerCase();\n this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();\n }\n }\n\n if (strict) {\n if (format === 'MMM') {\n ii = indexOf.call(this._shortMonthsParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._longMonthsParse, llc);\n return ii !== -1 ? ii : null;\n }\n } else {\n if (format === 'MMM') {\n ii = indexOf.call(this._shortMonthsParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._longMonthsParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._longMonthsParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._shortMonthsParse, llc);\n return ii !== -1 ? ii : null;\n }\n }\n }\n\n function localeMonthsParse(monthName, format, strict) {\n var i, mom, regex;\n\n if (this._monthsParseExact) {\n return handleStrictParse.call(this, monthName, format, strict);\n }\n\n if (!this._monthsParse) {\n this._monthsParse = [];\n this._longMonthsParse = [];\n this._shortMonthsParse = [];\n }\n\n // TODO: add sorting\n // Sorting makes sure if one month (or abbr) is a prefix of another\n // see sorting in computeMonthsParse\n for (i = 0; i < 12; i++) {\n // make the regex if we don't have it already\n mom = createUTC([2000, i]);\n if (strict && !this._longMonthsParse[i]) {\n this._longMonthsParse[i] = new RegExp(\n '^' + this.months(mom, '').replace('.', '') + '$',\n 'i'\n );\n this._shortMonthsParse[i] = new RegExp(\n '^' + this.monthsShort(mom, '').replace('.', '') + '$',\n 'i'\n );\n }\n if (!strict && !this._monthsParse[i]) {\n regex =\n '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');\n this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');\n }\n // test the regex\n if (\n strict &&\n format === 'MMMM' &&\n this._longMonthsParse[i].test(monthName)\n ) {\n return i;\n } else if (\n strict &&\n format === 'MMM' &&\n this._shortMonthsParse[i].test(monthName)\n ) {\n return i;\n } else if (!strict && this._monthsParse[i].test(monthName)) {\n return i;\n }\n }\n }\n\n // MOMENTS\n\n function setMonth(mom, value) {\n var dayOfMonth;\n\n if (!mom.isValid()) {\n // No op\n return mom;\n }\n\n if (typeof value === 'string') {\n if (/^\\d+$/.test(value)) {\n value = toInt(value);\n } else {\n value = mom.localeData().monthsParse(value);\n // TODO: Another silent failure?\n if (!isNumber(value)) {\n return mom;\n }\n }\n }\n\n dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));\n mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);\n return mom;\n }\n\n function getSetMonth(value) {\n if (value != null) {\n setMonth(this, value);\n hooks.updateOffset(this, true);\n return this;\n } else {\n return get(this, 'Month');\n }\n }\n\n function getDaysInMonth() {\n return daysInMonth(this.year(), this.month());\n }\n\n function monthsShortRegex(isStrict) {\n if (this._monthsParseExact) {\n if (!hasOwnProp(this, '_monthsRegex')) {\n computeMonthsParse.call(this);\n }\n if (isStrict) {\n return this._monthsShortStrictRegex;\n } else {\n return this._monthsShortRegex;\n }\n } else {\n if (!hasOwnProp(this, '_monthsShortRegex')) {\n this._monthsShortRegex = defaultMonthsShortRegex;\n }\n return this._monthsShortStrictRegex && isStrict\n ? this._monthsShortStrictRegex\n : this._monthsShortRegex;\n }\n }\n\n function monthsRegex(isStrict) {\n if (this._monthsParseExact) {\n if (!hasOwnProp(this, '_monthsRegex')) {\n computeMonthsParse.call(this);\n }\n if (isStrict) {\n return this._monthsStrictRegex;\n } else {\n return this._monthsRegex;\n }\n } else {\n if (!hasOwnProp(this, '_monthsRegex')) {\n this._monthsRegex = defaultMonthsRegex;\n }\n return this._monthsStrictRegex && isStrict\n ? this._monthsStrictRegex\n : this._monthsRegex;\n }\n }\n\n function computeMonthsParse() {\n function cmpLenRev(a, b) {\n return b.length - a.length;\n }\n\n var shortPieces = [],\n longPieces = [],\n mixedPieces = [],\n i,\n mom;\n for (i = 0; i < 12; i++) {\n // make the regex if we don't have it already\n mom = createUTC([2000, i]);\n shortPieces.push(this.monthsShort(mom, ''));\n longPieces.push(this.months(mom, ''));\n mixedPieces.push(this.months(mom, ''));\n mixedPieces.push(this.monthsShort(mom, ''));\n }\n // Sorting makes sure if one month (or abbr) is a prefix of another it\n // will match the longer piece.\n shortPieces.sort(cmpLenRev);\n longPieces.sort(cmpLenRev);\n mixedPieces.sort(cmpLenRev);\n for (i = 0; i < 12; i++) {\n shortPieces[i] = regexEscape(shortPieces[i]);\n longPieces[i] = regexEscape(longPieces[i]);\n }\n for (i = 0; i < 24; i++) {\n mixedPieces[i] = regexEscape(mixedPieces[i]);\n }\n\n this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');\n this._monthsShortRegex = this._monthsRegex;\n this._monthsStrictRegex = new RegExp(\n '^(' + longPieces.join('|') + ')',\n 'i'\n );\n this._monthsShortStrictRegex = new RegExp(\n '^(' + shortPieces.join('|') + ')',\n 'i'\n );\n }\n\n // FORMATTING\n\n addFormatToken('Y', 0, 0, function () {\n var y = this.year();\n return y <= 9999 ? zeroFill(y, 4) : '+' + y;\n });\n\n addFormatToken(0, ['YY', 2], 0, function () {\n return this.year() % 100;\n });\n\n addFormatToken(0, ['YYYY', 4], 0, 'year');\n addFormatToken(0, ['YYYYY', 5], 0, 'year');\n addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');\n\n // ALIASES\n\n addUnitAlias('year', 'y');\n\n // PRIORITIES\n\n addUnitPriority('year', 1);\n\n // PARSING\n\n addRegexToken('Y', matchSigned);\n addRegexToken('YY', match1to2, match2);\n addRegexToken('YYYY', match1to4, match4);\n addRegexToken('YYYYY', match1to6, match6);\n addRegexToken('YYYYYY', match1to6, match6);\n\n addParseToken(['YYYYY', 'YYYYYY'], YEAR);\n addParseToken('YYYY', function (input, array) {\n array[YEAR] =\n input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);\n });\n addParseToken('YY', function (input, array) {\n array[YEAR] = hooks.parseTwoDigitYear(input);\n });\n addParseToken('Y', function (input, array) {\n array[YEAR] = parseInt(input, 10);\n });\n\n // HELPERS\n\n function daysInYear(year) {\n return isLeapYear(year) ? 366 : 365;\n }\n\n // HOOKS\n\n hooks.parseTwoDigitYear = function (input) {\n return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);\n };\n\n // MOMENTS\n\n var getSetYear = makeGetSet('FullYear', true);\n\n function getIsLeapYear() {\n return isLeapYear(this.year());\n }\n\n function createDate(y, m, d, h, M, s, ms) {\n // can't just apply() to create a date:\n // https://stackoverflow.com/q/181348\n var date;\n // the date constructor remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0) {\n // preserve leap years using a full 400 year cycle, then reset\n date = new Date(y + 400, m, d, h, M, s, ms);\n if (isFinite(date.getFullYear())) {\n date.setFullYear(y);\n }\n } else {\n date = new Date(y, m, d, h, M, s, ms);\n }\n\n return date;\n }\n\n function createUTCDate(y) {\n var date, args;\n // the Date.UTC function remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0) {\n args = Array.prototype.slice.call(arguments);\n // preserve leap years using a full 400 year cycle, then reset\n args[0] = y + 400;\n date = new Date(Date.UTC.apply(null, args));\n if (isFinite(date.getUTCFullYear())) {\n date.setUTCFullYear(y);\n }\n } else {\n date = new Date(Date.UTC.apply(null, arguments));\n }\n\n return date;\n }\n\n // start-of-first-week - start-of-year\n function firstWeekOffset(year, dow, doy) {\n var // first-week day -- which january is always in the first week (4 for iso, 1 for other)\n fwd = 7 + dow - doy,\n // first-week day local weekday -- which local weekday is fwd\n fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;\n\n return -fwdlw + fwd - 1;\n }\n\n // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday\n function dayOfYearFromWeeks(year, week, weekday, dow, doy) {\n var localWeekday = (7 + weekday - dow) % 7,\n weekOffset = firstWeekOffset(year, dow, doy),\n dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,\n resYear,\n resDayOfYear;\n\n if (dayOfYear <= 0) {\n resYear = year - 1;\n resDayOfYear = daysInYear(resYear) + dayOfYear;\n } else if (dayOfYear > daysInYear(year)) {\n resYear = year + 1;\n resDayOfYear = dayOfYear - daysInYear(year);\n } else {\n resYear = year;\n resDayOfYear = dayOfYear;\n }\n\n return {\n year: resYear,\n dayOfYear: resDayOfYear,\n };\n }\n\n function weekOfYear(mom, dow, doy) {\n var weekOffset = firstWeekOffset(mom.year(), dow, doy),\n week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,\n resWeek,\n resYear;\n\n if (week < 1) {\n resYear = mom.year() - 1;\n resWeek = week + weeksInYear(resYear, dow, doy);\n } else if (week > weeksInYear(mom.year(), dow, doy)) {\n resWeek = week - weeksInYear(mom.year(), dow, doy);\n resYear = mom.year() + 1;\n } else {\n resYear = mom.year();\n resWeek = week;\n }\n\n return {\n week: resWeek,\n year: resYear,\n };\n }\n\n function weeksInYear(year, dow, doy) {\n var weekOffset = firstWeekOffset(year, dow, doy),\n weekOffsetNext = firstWeekOffset(year + 1, dow, doy);\n return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;\n }\n\n // FORMATTING\n\n addFormatToken('w', ['ww', 2], 'wo', 'week');\n addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');\n\n // ALIASES\n\n addUnitAlias('week', 'w');\n addUnitAlias('isoWeek', 'W');\n\n // PRIORITIES\n\n addUnitPriority('week', 5);\n addUnitPriority('isoWeek', 5);\n\n // PARSING\n\n addRegexToken('w', match1to2);\n addRegexToken('ww', match1to2, match2);\n addRegexToken('W', match1to2);\n addRegexToken('WW', match1to2, match2);\n\n addWeekParseToken(['w', 'ww', 'W', 'WW'], function (\n input,\n week,\n config,\n token\n ) {\n week[token.substr(0, 1)] = toInt(input);\n });\n\n // HELPERS\n\n // LOCALES\n\n function localeWeek(mom) {\n return weekOfYear(mom, this._week.dow, this._week.doy).week;\n }\n\n var defaultLocaleWeek = {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n };\n\n function localeFirstDayOfWeek() {\n return this._week.dow;\n }\n\n function localeFirstDayOfYear() {\n return this._week.doy;\n }\n\n // MOMENTS\n\n function getSetWeek(input) {\n var week = this.localeData().week(this);\n return input == null ? week : this.add((input - week) * 7, 'd');\n }\n\n function getSetISOWeek(input) {\n var week = weekOfYear(this, 1, 4).week;\n return input == null ? week : this.add((input - week) * 7, 'd');\n }\n\n // FORMATTING\n\n addFormatToken('d', 0, 'do', 'day');\n\n addFormatToken('dd', 0, 0, function (format) {\n return this.localeData().weekdaysMin(this, format);\n });\n\n addFormatToken('ddd', 0, 0, function (format) {\n return this.localeData().weekdaysShort(this, format);\n });\n\n addFormatToken('dddd', 0, 0, function (format) {\n return this.localeData().weekdays(this, format);\n });\n\n addFormatToken('e', 0, 0, 'weekday');\n addFormatToken('E', 0, 0, 'isoWeekday');\n\n // ALIASES\n\n addUnitAlias('day', 'd');\n addUnitAlias('weekday', 'e');\n addUnitAlias('isoWeekday', 'E');\n\n // PRIORITY\n addUnitPriority('day', 11);\n addUnitPriority('weekday', 11);\n addUnitPriority('isoWeekday', 11);\n\n // PARSING\n\n addRegexToken('d', match1to2);\n addRegexToken('e', match1to2);\n addRegexToken('E', match1to2);\n addRegexToken('dd', function (isStrict, locale) {\n return locale.weekdaysMinRegex(isStrict);\n });\n addRegexToken('ddd', function (isStrict, locale) {\n return locale.weekdaysShortRegex(isStrict);\n });\n addRegexToken('dddd', function (isStrict, locale) {\n return locale.weekdaysRegex(isStrict);\n });\n\n addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {\n var weekday = config._locale.weekdaysParse(input, token, config._strict);\n // if we didn't get a weekday name, mark the date as invalid\n if (weekday != null) {\n week.d = weekday;\n } else {\n getParsingFlags(config).invalidWeekday = input;\n }\n });\n\n addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {\n week[token] = toInt(input);\n });\n\n // HELPERS\n\n function parseWeekday(input, locale) {\n if (typeof input !== 'string') {\n return input;\n }\n\n if (!isNaN(input)) {\n return parseInt(input, 10);\n }\n\n input = locale.weekdaysParse(input);\n if (typeof input === 'number') {\n return input;\n }\n\n return null;\n }\n\n function parseIsoWeekday(input, locale) {\n if (typeof input === 'string') {\n return locale.weekdaysParse(input) % 7 || 7;\n }\n return isNaN(input) ? null : input;\n }\n\n // LOCALES\n function shiftWeekdays(ws, n) {\n return ws.slice(n, 7).concat(ws.slice(0, n));\n }\n\n var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n '_'\n ),\n defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n defaultWeekdaysRegex = matchWord,\n defaultWeekdaysShortRegex = matchWord,\n defaultWeekdaysMinRegex = matchWord;\n\n function localeWeekdays(m, format) {\n var weekdays = isArray(this._weekdays)\n ? this._weekdays\n : this._weekdays[\n m && m !== true && this._weekdays.isFormat.test(format)\n ? 'format'\n : 'standalone'\n ];\n return m === true\n ? shiftWeekdays(weekdays, this._week.dow)\n : m\n ? weekdays[m.day()]\n : weekdays;\n }\n\n function localeWeekdaysShort(m) {\n return m === true\n ? shiftWeekdays(this._weekdaysShort, this._week.dow)\n : m\n ? this._weekdaysShort[m.day()]\n : this._weekdaysShort;\n }\n\n function localeWeekdaysMin(m) {\n return m === true\n ? shiftWeekdays(this._weekdaysMin, this._week.dow)\n : m\n ? this._weekdaysMin[m.day()]\n : this._weekdaysMin;\n }\n\n function handleStrictParse$1(weekdayName, format, strict) {\n var i,\n ii,\n mom,\n llc = weekdayName.toLocaleLowerCase();\n if (!this._weekdaysParse) {\n this._weekdaysParse = [];\n this._shortWeekdaysParse = [];\n this._minWeekdaysParse = [];\n\n for (i = 0; i < 7; ++i) {\n mom = createUTC([2000, 1]).day(i);\n this._minWeekdaysParse[i] = this.weekdaysMin(\n mom,\n ''\n ).toLocaleLowerCase();\n this._shortWeekdaysParse[i] = this.weekdaysShort(\n mom,\n ''\n ).toLocaleLowerCase();\n this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();\n }\n }\n\n if (strict) {\n if (format === 'dddd') {\n ii = indexOf.call(this._weekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else if (format === 'ddd') {\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._minWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n }\n } else {\n if (format === 'dddd') {\n ii = indexOf.call(this._weekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._minWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else if (format === 'ddd') {\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._weekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._minWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._minWeekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._weekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n }\n }\n }\n\n function localeWeekdaysParse(weekdayName, format, strict) {\n var i, mom, regex;\n\n if (this._weekdaysParseExact) {\n return handleStrictParse$1.call(this, weekdayName, format, strict);\n }\n\n if (!this._weekdaysParse) {\n this._weekdaysParse = [];\n this._minWeekdaysParse = [];\n this._shortWeekdaysParse = [];\n this._fullWeekdaysParse = [];\n }\n\n for (i = 0; i < 7; i++) {\n // make the regex if we don't have it already\n\n mom = createUTC([2000, 1]).day(i);\n if (strict && !this._fullWeekdaysParse[i]) {\n this._fullWeekdaysParse[i] = new RegExp(\n '^' + this.weekdays(mom, '').replace('.', '\\\\.?') + '$',\n 'i'\n );\n this._shortWeekdaysParse[i] = new RegExp(\n '^' + this.weekdaysShort(mom, '').replace('.', '\\\\.?') + '$',\n 'i'\n );\n this._minWeekdaysParse[i] = new RegExp(\n '^' + this.weekdaysMin(mom, '').replace('.', '\\\\.?') + '$',\n 'i'\n );\n }\n if (!this._weekdaysParse[i]) {\n regex =\n '^' +\n this.weekdays(mom, '') +\n '|^' +\n this.weekdaysShort(mom, '') +\n '|^' +\n this.weekdaysMin(mom, '');\n this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');\n }\n // test the regex\n if (\n strict &&\n format === 'dddd' &&\n this._fullWeekdaysParse[i].test(weekdayName)\n ) {\n return i;\n } else if (\n strict &&\n format === 'ddd' &&\n this._shortWeekdaysParse[i].test(weekdayName)\n ) {\n return i;\n } else if (\n strict &&\n format === 'dd' &&\n this._minWeekdaysParse[i].test(weekdayName)\n ) {\n return i;\n } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {\n return i;\n }\n }\n }\n\n // MOMENTS\n\n function getSetDayOfWeek(input) {\n if (!this.isValid()) {\n return input != null ? this : NaN;\n }\n var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();\n if (input != null) {\n input = parseWeekday(input, this.localeData());\n return this.add(input - day, 'd');\n } else {\n return day;\n }\n }\n\n function getSetLocaleDayOfWeek(input) {\n if (!this.isValid()) {\n return input != null ? this : NaN;\n }\n var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;\n return input == null ? weekday : this.add(input - weekday, 'd');\n }\n\n function getSetISODayOfWeek(input) {\n if (!this.isValid()) {\n return input != null ? this : NaN;\n }\n\n // behaves the same as moment#day except\n // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)\n // as a setter, sunday should belong to the previous week.\n\n if (input != null) {\n var weekday = parseIsoWeekday(input, this.localeData());\n return this.day(this.day() % 7 ? weekday : weekday - 7);\n } else {\n return this.day() || 7;\n }\n }\n\n function weekdaysRegex(isStrict) {\n if (this._weekdaysParseExact) {\n if (!hasOwnProp(this, '_weekdaysRegex')) {\n computeWeekdaysParse.call(this);\n }\n if (isStrict) {\n return this._weekdaysStrictRegex;\n } else {\n return this._weekdaysRegex;\n }\n } else {\n if (!hasOwnProp(this, '_weekdaysRegex')) {\n this._weekdaysRegex = defaultWeekdaysRegex;\n }\n return this._weekdaysStrictRegex && isStrict\n ? this._weekdaysStrictRegex\n : this._weekdaysRegex;\n }\n }\n\n function weekdaysShortRegex(isStrict) {\n if (this._weekdaysParseExact) {\n if (!hasOwnProp(this, '_weekdaysRegex')) {\n computeWeekdaysParse.call(this);\n }\n if (isStrict) {\n return this._weekdaysShortStrictRegex;\n } else {\n return this._weekdaysShortRegex;\n }\n } else {\n if (!hasOwnProp(this, '_weekdaysShortRegex')) {\n this._weekdaysShortRegex = defaultWeekdaysShortRegex;\n }\n return this._weekdaysShortStrictRegex && isStrict\n ? this._weekdaysShortStrictRegex\n : this._weekdaysShortRegex;\n }\n }\n\n function weekdaysMinRegex(isStrict) {\n if (this._weekdaysParseExact) {\n if (!hasOwnProp(this, '_weekdaysRegex')) {\n computeWeekdaysParse.call(this);\n }\n if (isStrict) {\n return this._weekdaysMinStrictRegex;\n } else {\n return this._weekdaysMinRegex;\n }\n } else {\n if (!hasOwnProp(this, '_weekdaysMinRegex')) {\n this._weekdaysMinRegex = defaultWeekdaysMinRegex;\n }\n return this._weekdaysMinStrictRegex && isStrict\n ? this._weekdaysMinStrictRegex\n : this._weekdaysMinRegex;\n }\n }\n\n function computeWeekdaysParse() {\n function cmpLenRev(a, b) {\n return b.length - a.length;\n }\n\n var minPieces = [],\n shortPieces = [],\n longPieces = [],\n mixedPieces = [],\n i,\n mom,\n minp,\n shortp,\n longp;\n for (i = 0; i < 7; i++) {\n // make the regex if we don't have it already\n mom = createUTC([2000, 1]).day(i);\n minp = regexEscape(this.weekdaysMin(mom, ''));\n shortp = regexEscape(this.weekdaysShort(mom, ''));\n longp = regexEscape(this.weekdays(mom, ''));\n minPieces.push(minp);\n shortPieces.push(shortp);\n longPieces.push(longp);\n mixedPieces.push(minp);\n mixedPieces.push(shortp);\n mixedPieces.push(longp);\n }\n // Sorting makes sure if one weekday (or abbr) is a prefix of another it\n // will match the longer piece.\n minPieces.sort(cmpLenRev);\n shortPieces.sort(cmpLenRev);\n longPieces.sort(cmpLenRev);\n mixedPieces.sort(cmpLenRev);\n\n this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');\n this._weekdaysShortRegex = this._weekdaysRegex;\n this._weekdaysMinRegex = this._weekdaysRegex;\n\n this._weekdaysStrictRegex = new RegExp(\n '^(' + longPieces.join('|') + ')',\n 'i'\n );\n this._weekdaysShortStrictRegex = new RegExp(\n '^(' + shortPieces.join('|') + ')',\n 'i'\n );\n this._weekdaysMinStrictRegex = new RegExp(\n '^(' + minPieces.join('|') + ')',\n 'i'\n );\n }\n\n // FORMATTING\n\n function hFormat() {\n return this.hours() % 12 || 12;\n }\n\n function kFormat() {\n return this.hours() || 24;\n }\n\n addFormatToken('H', ['HH', 2], 0, 'hour');\n addFormatToken('h', ['hh', 2], 0, hFormat);\n addFormatToken('k', ['kk', 2], 0, kFormat);\n\n addFormatToken('hmm', 0, 0, function () {\n return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);\n });\n\n addFormatToken('hmmss', 0, 0, function () {\n return (\n '' +\n hFormat.apply(this) +\n zeroFill(this.minutes(), 2) +\n zeroFill(this.seconds(), 2)\n );\n });\n\n addFormatToken('Hmm', 0, 0, function () {\n return '' + this.hours() + zeroFill(this.minutes(), 2);\n });\n\n addFormatToken('Hmmss', 0, 0, function () {\n return (\n '' +\n this.hours() +\n zeroFill(this.minutes(), 2) +\n zeroFill(this.seconds(), 2)\n );\n });\n\n function meridiem(token, lowercase) {\n addFormatToken(token, 0, 0, function () {\n return this.localeData().meridiem(\n this.hours(),\n this.minutes(),\n lowercase\n );\n });\n }\n\n meridiem('a', true);\n meridiem('A', false);\n\n // ALIASES\n\n addUnitAlias('hour', 'h');\n\n // PRIORITY\n addUnitPriority('hour', 13);\n\n // PARSING\n\n function matchMeridiem(isStrict, locale) {\n return locale._meridiemParse;\n }\n\n addRegexToken('a', matchMeridiem);\n addRegexToken('A', matchMeridiem);\n addRegexToken('H', match1to2);\n addRegexToken('h', match1to2);\n addRegexToken('k', match1to2);\n addRegexToken('HH', match1to2, match2);\n addRegexToken('hh', match1to2, match2);\n addRegexToken('kk', match1to2, match2);\n\n addRegexToken('hmm', match3to4);\n addRegexToken('hmmss', match5to6);\n addRegexToken('Hmm', match3to4);\n addRegexToken('Hmmss', match5to6);\n\n addParseToken(['H', 'HH'], HOUR);\n addParseToken(['k', 'kk'], function (input, array, config) {\n var kInput = toInt(input);\n array[HOUR] = kInput === 24 ? 0 : kInput;\n });\n addParseToken(['a', 'A'], function (input, array, config) {\n config._isPm = config._locale.isPM(input);\n config._meridiem = input;\n });\n addParseToken(['h', 'hh'], function (input, array, config) {\n array[HOUR] = toInt(input);\n getParsingFlags(config).bigHour = true;\n });\n addParseToken('hmm', function (input, array, config) {\n var pos = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos));\n array[MINUTE] = toInt(input.substr(pos));\n getParsingFlags(config).bigHour = true;\n });\n addParseToken('hmmss', function (input, array, config) {\n var pos1 = input.length - 4,\n pos2 = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos1));\n array[MINUTE] = toInt(input.substr(pos1, 2));\n array[SECOND] = toInt(input.substr(pos2));\n getParsingFlags(config).bigHour = true;\n });\n addParseToken('Hmm', function (input, array, config) {\n var pos = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos));\n array[MINUTE] = toInt(input.substr(pos));\n });\n addParseToken('Hmmss', function (input, array, config) {\n var pos1 = input.length - 4,\n pos2 = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos1));\n array[MINUTE] = toInt(input.substr(pos1, 2));\n array[SECOND] = toInt(input.substr(pos2));\n });\n\n // LOCALES\n\n function localeIsPM(input) {\n // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays\n // Using charAt should be more compatible.\n return (input + '').toLowerCase().charAt(0) === 'p';\n }\n\n var defaultLocaleMeridiemParse = /[ap]\\.?m?\\.?/i,\n // Setting the hour should keep the time, because the user explicitly\n // specified which hour they want. So trying to maintain the same hour (in\n // a new timezone) makes sense. Adding/subtracting hours does not follow\n // this rule.\n getSetHour = makeGetSet('Hours', true);\n\n function localeMeridiem(hours, minutes, isLower) {\n if (hours > 11) {\n return isLower ? 'pm' : 'PM';\n } else {\n return isLower ? 'am' : 'AM';\n }\n }\n\n var baseConfig = {\n calendar: defaultCalendar,\n longDateFormat: defaultLongDateFormat,\n invalidDate: defaultInvalidDate,\n ordinal: defaultOrdinal,\n dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,\n relativeTime: defaultRelativeTime,\n\n months: defaultLocaleMonths,\n monthsShort: defaultLocaleMonthsShort,\n\n week: defaultLocaleWeek,\n\n weekdays: defaultLocaleWeekdays,\n weekdaysMin: defaultLocaleWeekdaysMin,\n weekdaysShort: defaultLocaleWeekdaysShort,\n\n meridiemParse: defaultLocaleMeridiemParse,\n };\n\n // internal storage for locale config files\n var locales = {},\n localeFamilies = {},\n globalLocale;\n\n function commonPrefix(arr1, arr2) {\n var i,\n minl = Math.min(arr1.length, arr2.length);\n for (i = 0; i < minl; i += 1) {\n if (arr1[i] !== arr2[i]) {\n return i;\n }\n }\n return minl;\n }\n\n function normalizeLocale(key) {\n return key ? key.toLowerCase().replace('_', '-') : key;\n }\n\n // pick the locale from the array\n // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each\n // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root\n function chooseLocale(names) {\n var i = 0,\n j,\n next,\n locale,\n split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (\n next &&\n next.length >= j &&\n commonPrefix(split, next) >= j - 1\n ) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return globalLocale;\n }\n\n function loadLocale(name) {\n var oldLocale = null,\n aliasedRequire;\n // TODO: Find a better way to register and load all the locales in Node\n if (\n locales[name] === undefined &&\n typeof module !== 'undefined' &&\n module &&\n module.exports\n ) {\n try {\n oldLocale = globalLocale._abbr;\n aliasedRequire = require;\n aliasedRequire('./locale/' + name);\n getSetGlobalLocale(oldLocale);\n } catch (e) {\n // mark as not found to avoid repeating expensive file require call causing high CPU\n // when trying to find en-US, en_US, en-us for every format call\n locales[name] = null; // null means not found\n }\n }\n return locales[name];\n }\n\n // This function will load locale and then set the global locale. If\n // no arguments are passed in, it will simply return the current global\n // locale key.\n function getSetGlobalLocale(key, values) {\n var data;\n if (key) {\n if (isUndefined(values)) {\n data = getLocale(key);\n } else {\n data = defineLocale(key, values);\n }\n\n if (data) {\n // moment.duration._locale = moment._locale = data;\n globalLocale = data;\n } else {\n if (typeof console !== 'undefined' && console.warn) {\n //warn user if arguments are passed but the locale could not be set\n console.warn(\n 'Locale ' + key + ' not found. Did you forget to load it?'\n );\n }\n }\n }\n\n return globalLocale._abbr;\n }\n\n function defineLocale(name, config) {\n if (config !== null) {\n var locale,\n parentConfig = baseConfig;\n config.abbr = name;\n if (locales[name] != null) {\n deprecateSimple(\n 'defineLocaleOverride',\n 'use moment.updateLocale(localeName, config) to change ' +\n 'an existing locale. moment.defineLocale(localeName, ' +\n 'config) should only be used for creating a new locale ' +\n 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.'\n );\n parentConfig = locales[name]._config;\n } else if (config.parentLocale != null) {\n if (locales[config.parentLocale] != null) {\n parentConfig = locales[config.parentLocale]._config;\n } else {\n locale = loadLocale(config.parentLocale);\n if (locale != null) {\n parentConfig = locale._config;\n } else {\n if (!localeFamilies[config.parentLocale]) {\n localeFamilies[config.parentLocale] = [];\n }\n localeFamilies[config.parentLocale].push({\n name: name,\n config: config,\n });\n return null;\n }\n }\n }\n locales[name] = new Locale(mergeConfigs(parentConfig, config));\n\n if (localeFamilies[name]) {\n localeFamilies[name].forEach(function (x) {\n defineLocale(x.name, x.config);\n });\n }\n\n // backwards compat for now: also set the locale\n // make sure we set the locale AFTER all child locales have been\n // created, so we won't end up with the child locale set.\n getSetGlobalLocale(name);\n\n return locales[name];\n } else {\n // useful for testing\n delete locales[name];\n return null;\n }\n }\n\n function updateLocale(name, config) {\n if (config != null) {\n var locale,\n tmpLocale,\n parentConfig = baseConfig;\n\n if (locales[name] != null && locales[name].parentLocale != null) {\n // Update existing child locale in-place to avoid memory-leaks\n locales[name].set(mergeConfigs(locales[name]._config, config));\n } else {\n // MERGE\n tmpLocale = loadLocale(name);\n if (tmpLocale != null) {\n parentConfig = tmpLocale._config;\n }\n config = mergeConfigs(parentConfig, config);\n if (tmpLocale == null) {\n // updateLocale is called for creating a new locale\n // Set abbr so it will have a name (getters return\n // undefined otherwise).\n config.abbr = name;\n }\n locale = new Locale(config);\n locale.parentLocale = locales[name];\n locales[name] = locale;\n }\n\n // backwards compat for now: also set the locale\n getSetGlobalLocale(name);\n } else {\n // pass null for config to unupdate, useful for tests\n if (locales[name] != null) {\n if (locales[name].parentLocale != null) {\n locales[name] = locales[name].parentLocale;\n if (name === getSetGlobalLocale()) {\n getSetGlobalLocale(name);\n }\n } else if (locales[name] != null) {\n delete locales[name];\n }\n }\n }\n return locales[name];\n }\n\n // returns locale data\n function getLocale(key) {\n var locale;\n\n if (key && key._locale && key._locale._abbr) {\n key = key._locale._abbr;\n }\n\n if (!key) {\n return globalLocale;\n }\n\n if (!isArray(key)) {\n //short-circuit everything else\n locale = loadLocale(key);\n if (locale) {\n return locale;\n }\n key = [key];\n }\n\n return chooseLocale(key);\n }\n\n function listLocales() {\n return keys(locales);\n }\n\n function checkOverflow(m) {\n var overflow,\n a = m._a;\n\n if (a && getParsingFlags(m).overflow === -2) {\n overflow =\n a[MONTH] < 0 || a[MONTH] > 11\n ? MONTH\n : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH])\n ? DATE\n : a[HOUR] < 0 ||\n a[HOUR] > 24 ||\n (a[HOUR] === 24 &&\n (a[MINUTE] !== 0 ||\n a[SECOND] !== 0 ||\n a[MILLISECOND] !== 0))\n ? HOUR\n : a[MINUTE] < 0 || a[MINUTE] > 59\n ? MINUTE\n : a[SECOND] < 0 || a[SECOND] > 59\n ? SECOND\n : a[MILLISECOND] < 0 || a[MILLISECOND] > 999\n ? MILLISECOND\n : -1;\n\n if (\n getParsingFlags(m)._overflowDayOfYear &&\n (overflow < YEAR || overflow > DATE)\n ) {\n overflow = DATE;\n }\n if (getParsingFlags(m)._overflowWeeks && overflow === -1) {\n overflow = WEEK;\n }\n if (getParsingFlags(m)._overflowWeekday && overflow === -1) {\n overflow = WEEKDAY;\n }\n\n getParsingFlags(m).overflow = overflow;\n }\n\n return m;\n }\n\n // iso 8601 regex\n // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)\n var extendedIsoRegex = /^\\s*((?:[+-]\\d{6}|\\d{4})-(?:\\d\\d-\\d\\d|W\\d\\d-\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?::\\d\\d(?::\\d\\d(?:[.,]\\d+)?)?)?)([+-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,\n basicIsoRegex = /^\\s*((?:[+-]\\d{6}|\\d{4})(?:\\d\\d\\d\\d|W\\d\\d\\d|W\\d\\d|\\d\\d\\d|\\d\\d|))(?:(T| )(\\d\\d(?:\\d\\d(?:\\d\\d(?:[.,]\\d+)?)?)?)([+-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,\n tzRegex = /Z|[+-]\\d\\d(?::?\\d\\d)?/,\n isoDates = [\n ['YYYYYY-MM-DD', /[+-]\\d{6}-\\d\\d-\\d\\d/],\n ['YYYY-MM-DD', /\\d{4}-\\d\\d-\\d\\d/],\n ['GGGG-[W]WW-E', /\\d{4}-W\\d\\d-\\d/],\n ['GGGG-[W]WW', /\\d{4}-W\\d\\d/, false],\n ['YYYY-DDD', /\\d{4}-\\d{3}/],\n ['YYYY-MM', /\\d{4}-\\d\\d/, false],\n ['YYYYYYMMDD', /[+-]\\d{10}/],\n ['YYYYMMDD', /\\d{8}/],\n ['GGGG[W]WWE', /\\d{4}W\\d{3}/],\n ['GGGG[W]WW', /\\d{4}W\\d{2}/, false],\n ['YYYYDDD', /\\d{7}/],\n ['YYYYMM', /\\d{6}/, false],\n ['YYYY', /\\d{4}/, false],\n ],\n // iso time formats and regexes\n isoTimes = [\n ['HH:mm:ss.SSSS', /\\d\\d:\\d\\d:\\d\\d\\.\\d+/],\n ['HH:mm:ss,SSSS', /\\d\\d:\\d\\d:\\d\\d,\\d+/],\n ['HH:mm:ss', /\\d\\d:\\d\\d:\\d\\d/],\n ['HH:mm', /\\d\\d:\\d\\d/],\n ['HHmmss.SSSS', /\\d\\d\\d\\d\\d\\d\\.\\d+/],\n ['HHmmss,SSSS', /\\d\\d\\d\\d\\d\\d,\\d+/],\n ['HHmmss', /\\d\\d\\d\\d\\d\\d/],\n ['HHmm', /\\d\\d\\d\\d/],\n ['HH', /\\d\\d/],\n ],\n aspNetJsonRegex = /^\\/?Date\\((-?\\d+)/i,\n // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3\n rfc2822 = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\\s)?(\\d{1,2})\\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\s(\\d{2,4})\\s(\\d\\d):(\\d\\d)(?::(\\d\\d))?\\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\\d{4}))$/,\n obsOffsets = {\n UT: 0,\n GMT: 0,\n EDT: -4 * 60,\n EST: -5 * 60,\n CDT: -5 * 60,\n CST: -6 * 60,\n MDT: -6 * 60,\n MST: -7 * 60,\n PDT: -7 * 60,\n PST: -8 * 60,\n };\n\n // date from iso format\n function configFromISO(config) {\n var i,\n l,\n string = config._i,\n match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),\n allowTime,\n dateFormat,\n timeFormat,\n tzFormat;\n\n if (match) {\n getParsingFlags(config).iso = true;\n\n for (i = 0, l = isoDates.length; i < l; i++) {\n if (isoDates[i][1].exec(match[1])) {\n dateFormat = isoDates[i][0];\n allowTime = isoDates[i][2] !== false;\n break;\n }\n }\n if (dateFormat == null) {\n config._isValid = false;\n return;\n }\n if (match[3]) {\n for (i = 0, l = isoTimes.length; i < l; i++) {\n if (isoTimes[i][1].exec(match[3])) {\n // match[2] should be 'T' or space\n timeFormat = (match[2] || ' ') + isoTimes[i][0];\n break;\n }\n }\n if (timeFormat == null) {\n config._isValid = false;\n return;\n }\n }\n if (!allowTime && timeFormat != null) {\n config._isValid = false;\n return;\n }\n if (match[4]) {\n if (tzRegex.exec(match[4])) {\n tzFormat = 'Z';\n } else {\n config._isValid = false;\n return;\n }\n }\n config._f = dateFormat + (timeFormat || '') + (tzFormat || '');\n configFromStringAndFormat(config);\n } else {\n config._isValid = false;\n }\n }\n\n function extractFromRFC2822Strings(\n yearStr,\n monthStr,\n dayStr,\n hourStr,\n minuteStr,\n secondStr\n ) {\n var result = [\n untruncateYear(yearStr),\n defaultLocaleMonthsShort.indexOf(monthStr),\n parseInt(dayStr, 10),\n parseInt(hourStr, 10),\n parseInt(minuteStr, 10),\n ];\n\n if (secondStr) {\n result.push(parseInt(secondStr, 10));\n }\n\n return result;\n }\n\n function untruncateYear(yearStr) {\n var year = parseInt(yearStr, 10);\n if (year <= 49) {\n return 2000 + year;\n } else if (year <= 999) {\n return 1900 + year;\n }\n return year;\n }\n\n function preprocessRFC2822(s) {\n // Remove comments and folding whitespace and replace multiple-spaces with a single space\n return s\n .replace(/\\([^)]*\\)|[\\n\\t]/g, ' ')\n .replace(/(\\s\\s+)/g, ' ')\n .replace(/^\\s\\s*/, '')\n .replace(/\\s\\s*$/, '');\n }\n\n function checkWeekday(weekdayStr, parsedInput, config) {\n if (weekdayStr) {\n // TODO: Replace the vanilla JS Date object with an independent day-of-week check.\n var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr),\n weekdayActual = new Date(\n parsedInput[0],\n parsedInput[1],\n parsedInput[2]\n ).getDay();\n if (weekdayProvided !== weekdayActual) {\n getParsingFlags(config).weekdayMismatch = true;\n config._isValid = false;\n return false;\n }\n }\n return true;\n }\n\n function calculateOffset(obsOffset, militaryOffset, numOffset) {\n if (obsOffset) {\n return obsOffsets[obsOffset];\n } else if (militaryOffset) {\n // the only allowed military tz is Z\n return 0;\n } else {\n var hm = parseInt(numOffset, 10),\n m = hm % 100,\n h = (hm - m) / 100;\n return h * 60 + m;\n }\n }\n\n // date and time from ref 2822 format\n function configFromRFC2822(config) {\n var match = rfc2822.exec(preprocessRFC2822(config._i)),\n parsedArray;\n if (match) {\n parsedArray = extractFromRFC2822Strings(\n match[4],\n match[3],\n match[2],\n match[5],\n match[6],\n match[7]\n );\n if (!checkWeekday(match[1], parsedArray, config)) {\n return;\n }\n\n config._a = parsedArray;\n config._tzm = calculateOffset(match[8], match[9], match[10]);\n\n config._d = createUTCDate.apply(null, config._a);\n config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);\n\n getParsingFlags(config).rfc2822 = true;\n } else {\n config._isValid = false;\n }\n }\n\n // date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict\n function configFromString(config) {\n var matched = aspNetJsonRegex.exec(config._i);\n if (matched !== null) {\n config._d = new Date(+matched[1]);\n return;\n }\n\n configFromISO(config);\n if (config._isValid === false) {\n delete config._isValid;\n } else {\n return;\n }\n\n configFromRFC2822(config);\n if (config._isValid === false) {\n delete config._isValid;\n } else {\n return;\n }\n\n if (config._strict) {\n config._isValid = false;\n } else {\n // Final attempt, use Input Fallback\n hooks.createFromInputFallback(config);\n }\n }\n\n hooks.createFromInputFallback = deprecate(\n 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' +\n 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' +\n 'discouraged and will be removed in an upcoming major release. Please refer to ' +\n 'http://momentjs.com/guides/#/warnings/js-date/ for more info.',\n function (config) {\n config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));\n }\n );\n\n // Pick the first defined of two or three arguments.\n function defaults(a, b, c) {\n if (a != null) {\n return a;\n }\n if (b != null) {\n return b;\n }\n return c;\n }\n\n function currentDateArray(config) {\n // hooks is actually the exported moment object\n var nowValue = new Date(hooks.now());\n if (config._useUTC) {\n return [\n nowValue.getUTCFullYear(),\n nowValue.getUTCMonth(),\n nowValue.getUTCDate(),\n ];\n }\n return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];\n }\n\n // convert an array to a date.\n // the array should mirror the parameters below\n // note: all values past the year are optional and will default to the lowest possible value.\n // [year, month, day , hour, minute, second, millisecond]\n function configFromArray(config) {\n var i,\n date,\n input = [],\n currentDate,\n expectedWeekday,\n yearToUse;\n\n if (config._d) {\n return;\n }\n\n currentDate = currentDateArray(config);\n\n //compute day of the year from weeks and weekdays\n if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {\n dayOfYearFromWeekInfo(config);\n }\n\n //if the day of the year is set, figure out what it is\n if (config._dayOfYear != null) {\n yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);\n\n if (\n config._dayOfYear > daysInYear(yearToUse) ||\n config._dayOfYear === 0\n ) {\n getParsingFlags(config)._overflowDayOfYear = true;\n }\n\n date = createUTCDate(yearToUse, 0, config._dayOfYear);\n config._a[MONTH] = date.getUTCMonth();\n config._a[DATE] = date.getUTCDate();\n }\n\n // Default to current date.\n // * if no year, month, day of month are given, default to today\n // * if day of month is given, default month and year\n // * if month is given, default only year\n // * if year is given, don't default anything\n for (i = 0; i < 3 && config._a[i] == null; ++i) {\n config._a[i] = input[i] = currentDate[i];\n }\n\n // Zero out whatever was not defaulted, including time\n for (; i < 7; i++) {\n config._a[i] = input[i] =\n config._a[i] == null ? (i === 2 ? 1 : 0) : config._a[i];\n }\n\n // Check for 24:00:00.000\n if (\n config._a[HOUR] === 24 &&\n config._a[MINUTE] === 0 &&\n config._a[SECOND] === 0 &&\n config._a[MILLISECOND] === 0\n ) {\n config._nextDay = true;\n config._a[HOUR] = 0;\n }\n\n config._d = (config._useUTC ? createUTCDate : createDate).apply(\n null,\n input\n );\n expectedWeekday = config._useUTC\n ? config._d.getUTCDay()\n : config._d.getDay();\n\n // Apply timezone offset from input. The actual utcOffset can be changed\n // with parseZone.\n if (config._tzm != null) {\n config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);\n }\n\n if (config._nextDay) {\n config._a[HOUR] = 24;\n }\n\n // check for mismatching day of week\n if (\n config._w &&\n typeof config._w.d !== 'undefined' &&\n config._w.d !== expectedWeekday\n ) {\n getParsingFlags(config).weekdayMismatch = true;\n }\n }\n\n function dayOfYearFromWeekInfo(config) {\n var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek;\n\n w = config._w;\n if (w.GG != null || w.W != null || w.E != null) {\n dow = 1;\n doy = 4;\n\n // TODO: We need to take the current isoWeekYear, but that depends on\n // how we interpret now (local, utc, fixed offset). So create\n // a now version of current config (take local/utc/offset flags, and\n // create now).\n weekYear = defaults(\n w.GG,\n config._a[YEAR],\n weekOfYear(createLocal(), 1, 4).year\n );\n week = defaults(w.W, 1);\n weekday = defaults(w.E, 1);\n if (weekday < 1 || weekday > 7) {\n weekdayOverflow = true;\n }\n } else {\n dow = config._locale._week.dow;\n doy = config._locale._week.doy;\n\n curWeek = weekOfYear(createLocal(), dow, doy);\n\n weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);\n\n // Default to current week.\n week = defaults(w.w, curWeek.week);\n\n if (w.d != null) {\n // weekday -- low day numbers are considered next week\n weekday = w.d;\n if (weekday < 0 || weekday > 6) {\n weekdayOverflow = true;\n }\n } else if (w.e != null) {\n // local weekday -- counting starts from beginning of week\n weekday = w.e + dow;\n if (w.e < 0 || w.e > 6) {\n weekdayOverflow = true;\n }\n } else {\n // default to beginning of week\n weekday = dow;\n }\n }\n if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {\n getParsingFlags(config)._overflowWeeks = true;\n } else if (weekdayOverflow != null) {\n getParsingFlags(config)._overflowWeekday = true;\n } else {\n temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);\n config._a[YEAR] = temp.year;\n config._dayOfYear = temp.dayOfYear;\n }\n }\n\n // constant that refers to the ISO standard\n hooks.ISO_8601 = function () {};\n\n // constant that refers to the RFC 2822 form\n hooks.RFC_2822 = function () {};\n\n // date from string and format string\n function configFromStringAndFormat(config) {\n // TODO: Move this to another part of the creation flow to prevent circular deps\n if (config._f === hooks.ISO_8601) {\n configFromISO(config);\n return;\n }\n if (config._f === hooks.RFC_2822) {\n configFromRFC2822(config);\n return;\n }\n config._a = [];\n getParsingFlags(config).empty = true;\n\n // This array is used to make a Date, either with `new Date` or `Date.UTC`\n var string = '' + config._i,\n i,\n parsedInput,\n tokens,\n token,\n skipped,\n stringLength = string.length,\n totalParsedInputLength = 0,\n era;\n\n tokens =\n expandFormat(config._f, config._locale).match(formattingTokens) || [];\n\n for (i = 0; i < tokens.length; i++) {\n token = tokens[i];\n parsedInput = (string.match(getParseRegexForToken(token, config)) ||\n [])[0];\n if (parsedInput) {\n skipped = string.substr(0, string.indexOf(parsedInput));\n if (skipped.length > 0) {\n getParsingFlags(config).unusedInput.push(skipped);\n }\n string = string.slice(\n string.indexOf(parsedInput) + parsedInput.length\n );\n totalParsedInputLength += parsedInput.length;\n }\n // don't parse if it's not a known token\n if (formatTokenFunctions[token]) {\n if (parsedInput) {\n getParsingFlags(config).empty = false;\n } else {\n getParsingFlags(config).unusedTokens.push(token);\n }\n addTimeToArrayFromToken(token, parsedInput, config);\n } else if (config._strict && !parsedInput) {\n getParsingFlags(config).unusedTokens.push(token);\n }\n }\n\n // add remaining unparsed input length to the string\n getParsingFlags(config).charsLeftOver =\n stringLength - totalParsedInputLength;\n if (string.length > 0) {\n getParsingFlags(config).unusedInput.push(string);\n }\n\n // clear _12h flag if hour is <= 12\n if (\n config._a[HOUR] <= 12 &&\n getParsingFlags(config).bigHour === true &&\n config._a[HOUR] > 0\n ) {\n getParsingFlags(config).bigHour = undefined;\n }\n\n getParsingFlags(config).parsedDateParts = config._a.slice(0);\n getParsingFlags(config).meridiem = config._meridiem;\n // handle meridiem\n config._a[HOUR] = meridiemFixWrap(\n config._locale,\n config._a[HOUR],\n config._meridiem\n );\n\n // handle era\n era = getParsingFlags(config).era;\n if (era !== null) {\n config._a[YEAR] = config._locale.erasConvertYear(era, config._a[YEAR]);\n }\n\n configFromArray(config);\n checkOverflow(config);\n }\n\n function meridiemFixWrap(locale, hour, meridiem) {\n var isPm;\n\n if (meridiem == null) {\n // nothing to do\n return hour;\n }\n if (locale.meridiemHour != null) {\n return locale.meridiemHour(hour, meridiem);\n } else if (locale.isPM != null) {\n // Fallback\n isPm = locale.isPM(meridiem);\n if (isPm && hour < 12) {\n hour += 12;\n }\n if (!isPm && hour === 12) {\n hour = 0;\n }\n return hour;\n } else {\n // this is not supposed to happen\n return hour;\n }\n }\n\n // date from string and array of format strings\n function configFromStringAndArray(config) {\n var tempConfig,\n bestMoment,\n scoreToBeat,\n i,\n currentScore,\n validFormatFound,\n bestFormatIsValid = false;\n\n if (config._f.length === 0) {\n getParsingFlags(config).invalidFormat = true;\n config._d = new Date(NaN);\n return;\n }\n\n for (i = 0; i < config._f.length; i++) {\n currentScore = 0;\n validFormatFound = false;\n tempConfig = copyConfig({}, config);\n if (config._useUTC != null) {\n tempConfig._useUTC = config._useUTC;\n }\n tempConfig._f = config._f[i];\n configFromStringAndFormat(tempConfig);\n\n if (isValid(tempConfig)) {\n validFormatFound = true;\n }\n\n // if there is any input that was not parsed add a penalty for that format\n currentScore += getParsingFlags(tempConfig).charsLeftOver;\n\n //or tokens\n currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;\n\n getParsingFlags(tempConfig).score = currentScore;\n\n if (!bestFormatIsValid) {\n if (\n scoreToBeat == null ||\n currentScore < scoreToBeat ||\n validFormatFound\n ) {\n scoreToBeat = currentScore;\n bestMoment = tempConfig;\n if (validFormatFound) {\n bestFormatIsValid = true;\n }\n }\n } else {\n if (currentScore < scoreToBeat) {\n scoreToBeat = currentScore;\n bestMoment = tempConfig;\n }\n }\n }\n\n extend(config, bestMoment || tempConfig);\n }\n\n function configFromObject(config) {\n if (config._d) {\n return;\n }\n\n var i = normalizeObjectUnits(config._i),\n dayOrDate = i.day === undefined ? i.date : i.day;\n config._a = map(\n [i.year, i.month, dayOrDate, i.hour, i.minute, i.second, i.millisecond],\n function (obj) {\n return obj && parseInt(obj, 10);\n }\n );\n\n configFromArray(config);\n }\n\n function createFromConfig(config) {\n var res = new Moment(checkOverflow(prepareConfig(config)));\n if (res._nextDay) {\n // Adding is smart enough around DST\n res.add(1, 'd');\n res._nextDay = undefined;\n }\n\n return res;\n }\n\n function prepareConfig(config) {\n var input = config._i,\n format = config._f;\n\n config._locale = config._locale || getLocale(config._l);\n\n if (input === null || (format === undefined && input === '')) {\n return createInvalid({ nullInput: true });\n }\n\n if (typeof input === 'string') {\n config._i = input = config._locale.preparse(input);\n }\n\n if (isMoment(input)) {\n return new Moment(checkOverflow(input));\n } else if (isDate(input)) {\n config._d = input;\n } else if (isArray(format)) {\n configFromStringAndArray(config);\n } else if (format) {\n configFromStringAndFormat(config);\n } else {\n configFromInput(config);\n }\n\n if (!isValid(config)) {\n config._d = null;\n }\n\n return config;\n }\n\n function configFromInput(config) {\n var input = config._i;\n if (isUndefined(input)) {\n config._d = new Date(hooks.now());\n } else if (isDate(input)) {\n config._d = new Date(input.valueOf());\n } else if (typeof input === 'string') {\n configFromString(config);\n } else if (isArray(input)) {\n config._a = map(input.slice(0), function (obj) {\n return parseInt(obj, 10);\n });\n configFromArray(config);\n } else if (isObject(input)) {\n configFromObject(config);\n } else if (isNumber(input)) {\n // from milliseconds\n config._d = new Date(input);\n } else {\n hooks.createFromInputFallback(config);\n }\n }\n\n function createLocalOrUTC(input, format, locale, strict, isUTC) {\n var c = {};\n\n if (format === true || format === false) {\n strict = format;\n format = undefined;\n }\n\n if (locale === true || locale === false) {\n strict = locale;\n locale = undefined;\n }\n\n if (\n (isObject(input) && isObjectEmpty(input)) ||\n (isArray(input) && input.length === 0)\n ) {\n input = undefined;\n }\n // object construction must be done this way.\n // https://github.com/moment/moment/issues/1423\n c._isAMomentObject = true;\n c._useUTC = c._isUTC = isUTC;\n c._l = locale;\n c._i = input;\n c._f = format;\n c._strict = strict;\n\n return createFromConfig(c);\n }\n\n function createLocal(input, format, locale, strict) {\n return createLocalOrUTC(input, format, locale, strict, false);\n }\n\n var prototypeMin = deprecate(\n 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',\n function () {\n var other = createLocal.apply(null, arguments);\n if (this.isValid() && other.isValid()) {\n return other < this ? this : other;\n } else {\n return createInvalid();\n }\n }\n ),\n prototypeMax = deprecate(\n 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',\n function () {\n var other = createLocal.apply(null, arguments);\n if (this.isValid() && other.isValid()) {\n return other > this ? this : other;\n } else {\n return createInvalid();\n }\n }\n );\n\n // Pick a moment m from moments so that m[fn](other) is true for all\n // other. This relies on the function fn to be transitive.\n //\n // moments should either be an array of moment objects or an array, whose\n // first element is an array of moment objects.\n function pickBy(fn, moments) {\n var res, i;\n if (moments.length === 1 && isArray(moments[0])) {\n moments = moments[0];\n }\n if (!moments.length) {\n return createLocal();\n }\n res = moments[0];\n for (i = 1; i < moments.length; ++i) {\n if (!moments[i].isValid() || moments[i][fn](res)) {\n res = moments[i];\n }\n }\n return res;\n }\n\n // TODO: Use [].sort instead?\n function min() {\n var args = [].slice.call(arguments, 0);\n\n return pickBy('isBefore', args);\n }\n\n function max() {\n var args = [].slice.call(arguments, 0);\n\n return pickBy('isAfter', args);\n }\n\n var now = function () {\n return Date.now ? Date.now() : +new Date();\n };\n\n var ordering = [\n 'year',\n 'quarter',\n 'month',\n 'week',\n 'day',\n 'hour',\n 'minute',\n 'second',\n 'millisecond',\n ];\n\n function isDurationValid(m) {\n var key,\n unitHasDecimal = false,\n i;\n for (key in m) {\n if (\n hasOwnProp(m, key) &&\n !(\n indexOf.call(ordering, key) !== -1 &&\n (m[key] == null || !isNaN(m[key]))\n )\n ) {\n return false;\n }\n }\n\n for (i = 0; i < ordering.length; ++i) {\n if (m[ordering[i]]) {\n if (unitHasDecimal) {\n return false; // only allow non-integers for smallest unit\n }\n if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {\n unitHasDecimal = true;\n }\n }\n }\n\n return true;\n }\n\n function isValid$1() {\n return this._isValid;\n }\n\n function createInvalid$1() {\n return createDuration(NaN);\n }\n\n function Duration(duration) {\n var normalizedInput = normalizeObjectUnits(duration),\n years = normalizedInput.year || 0,\n quarters = normalizedInput.quarter || 0,\n months = normalizedInput.month || 0,\n weeks = normalizedInput.week || normalizedInput.isoWeek || 0,\n days = normalizedInput.day || 0,\n hours = normalizedInput.hour || 0,\n minutes = normalizedInput.minute || 0,\n seconds = normalizedInput.second || 0,\n milliseconds = normalizedInput.millisecond || 0;\n\n this._isValid = isDurationValid(normalizedInput);\n\n // representation for dateAddRemove\n this._milliseconds =\n +milliseconds +\n seconds * 1e3 + // 1000\n minutes * 6e4 + // 1000 * 60\n hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978\n // Because of dateAddRemove treats 24 hours as different from a\n // day when working around DST, we need to store them separately\n this._days = +days + weeks * 7;\n // It is impossible to translate months into days without knowing\n // which months you are are talking about, so we have to store\n // it separately.\n this._months = +months + quarters * 3 + years * 12;\n\n this._data = {};\n\n this._locale = getLocale();\n\n this._bubble();\n }\n\n function isDuration(obj) {\n return obj instanceof Duration;\n }\n\n function absRound(number) {\n if (number < 0) {\n return Math.round(-1 * number) * -1;\n } else {\n return Math.round(number);\n }\n }\n\n // compare two arrays, return the number of differences\n function compareArrays(array1, array2, dontConvert) {\n var len = Math.min(array1.length, array2.length),\n lengthDiff = Math.abs(array1.length - array2.length),\n diffs = 0,\n i;\n for (i = 0; i < len; i++) {\n if (\n (dontConvert && array1[i] !== array2[i]) ||\n (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))\n ) {\n diffs++;\n }\n }\n return diffs + lengthDiff;\n }\n\n // FORMATTING\n\n function offset(token, separator) {\n addFormatToken(token, 0, 0, function () {\n var offset = this.utcOffset(),\n sign = '+';\n if (offset < 0) {\n offset = -offset;\n sign = '-';\n }\n return (\n sign +\n zeroFill(~~(offset / 60), 2) +\n separator +\n zeroFill(~~offset % 60, 2)\n );\n });\n }\n\n offset('Z', ':');\n offset('ZZ', '');\n\n // PARSING\n\n addRegexToken('Z', matchShortOffset);\n addRegexToken('ZZ', matchShortOffset);\n addParseToken(['Z', 'ZZ'], function (input, array, config) {\n config._useUTC = true;\n config._tzm = offsetFromString(matchShortOffset, input);\n });\n\n // HELPERS\n\n // timezone chunker\n // '+10:00' > ['10', '00']\n // '-1530' > ['-15', '30']\n var chunkOffset = /([\\+\\-]|\\d\\d)/gi;\n\n function offsetFromString(matcher, string) {\n var matches = (string || '').match(matcher),\n chunk,\n parts,\n minutes;\n\n if (matches === null) {\n return null;\n }\n\n chunk = matches[matches.length - 1] || [];\n parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];\n minutes = +(parts[1] * 60) + toInt(parts[2]);\n\n return minutes === 0 ? 0 : parts[0] === '+' ? minutes : -minutes;\n }\n\n // Return a moment from input, that is local/utc/zone equivalent to model.\n function cloneWithOffset(input, model) {\n var res, diff;\n if (model._isUTC) {\n res = model.clone();\n diff =\n (isMoment(input) || isDate(input)\n ? input.valueOf()\n : createLocal(input).valueOf()) - res.valueOf();\n // Use low-level api, because this fn is low-level api.\n res._d.setTime(res._d.valueOf() + diff);\n hooks.updateOffset(res, false);\n return res;\n } else {\n return createLocal(input).local();\n }\n }\n\n function getDateOffset(m) {\n // On Firefox.24 Date#getTimezoneOffset returns a floating point.\n // https://github.com/moment/moment/pull/1871\n return -Math.round(m._d.getTimezoneOffset());\n }\n\n // HOOKS\n\n // This function will be called whenever a moment is mutated.\n // It is intended to keep the offset in sync with the timezone.\n hooks.updateOffset = function () {};\n\n // MOMENTS\n\n // keepLocalTime = true means only change the timezone, without\n // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->\n // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset\n // +0200, so we adjust the time as needed, to be valid.\n //\n // Keeping the time actually adds/subtracts (one hour)\n // from the actual represented time. That is why we call updateOffset\n // a second time. In case it wants us to change the offset again\n // _changeInProgress == true case, then we have to adjust, because\n // there is no such time in the given timezone.\n function getSetOffset(input, keepLocalTime, keepMinutes) {\n var offset = this._offset || 0,\n localAdjust;\n if (!this.isValid()) {\n return input != null ? this : NaN;\n }\n if (input != null) {\n if (typeof input === 'string') {\n input = offsetFromString(matchShortOffset, input);\n if (input === null) {\n return this;\n }\n } else if (Math.abs(input) < 16 && !keepMinutes) {\n input = input * 60;\n }\n if (!this._isUTC && keepLocalTime) {\n localAdjust = getDateOffset(this);\n }\n this._offset = input;\n this._isUTC = true;\n if (localAdjust != null) {\n this.add(localAdjust, 'm');\n }\n if (offset !== input) {\n if (!keepLocalTime || this._changeInProgress) {\n addSubtract(\n this,\n createDuration(input - offset, 'm'),\n 1,\n false\n );\n } else if (!this._changeInProgress) {\n this._changeInProgress = true;\n hooks.updateOffset(this, true);\n this._changeInProgress = null;\n }\n }\n return this;\n } else {\n return this._isUTC ? offset : getDateOffset(this);\n }\n }\n\n function getSetZone(input, keepLocalTime) {\n if (input != null) {\n if (typeof input !== 'string') {\n input = -input;\n }\n\n this.utcOffset(input, keepLocalTime);\n\n return this;\n } else {\n return -this.utcOffset();\n }\n }\n\n function setOffsetToUTC(keepLocalTime) {\n return this.utcOffset(0, keepLocalTime);\n }\n\n function setOffsetToLocal(keepLocalTime) {\n if (this._isUTC) {\n this.utcOffset(0, keepLocalTime);\n this._isUTC = false;\n\n if (keepLocalTime) {\n this.subtract(getDateOffset(this), 'm');\n }\n }\n return this;\n }\n\n function setOffsetToParsedOffset() {\n if (this._tzm != null) {\n this.utcOffset(this._tzm, false, true);\n } else if (typeof this._i === 'string') {\n var tZone = offsetFromString(matchOffset, this._i);\n if (tZone != null) {\n this.utcOffset(tZone);\n } else {\n this.utcOffset(0, true);\n }\n }\n return this;\n }\n\n function hasAlignedHourOffset(input) {\n if (!this.isValid()) {\n return false;\n }\n input = input ? createLocal(input).utcOffset() : 0;\n\n return (this.utcOffset() - input) % 60 === 0;\n }\n\n function isDaylightSavingTime() {\n return (\n this.utcOffset() > this.clone().month(0).utcOffset() ||\n this.utcOffset() > this.clone().month(5).utcOffset()\n );\n }\n\n function isDaylightSavingTimeShifted() {\n if (!isUndefined(this._isDSTShifted)) {\n return this._isDSTShifted;\n }\n\n var c = {},\n other;\n\n copyConfig(c, this);\n c = prepareConfig(c);\n\n if (c._a) {\n other = c._isUTC ? createUTC(c._a) : createLocal(c._a);\n this._isDSTShifted =\n this.isValid() && compareArrays(c._a, other.toArray()) > 0;\n } else {\n this._isDSTShifted = false;\n }\n\n return this._isDSTShifted;\n }\n\n function isLocal() {\n return this.isValid() ? !this._isUTC : false;\n }\n\n function isUtcOffset() {\n return this.isValid() ? this._isUTC : false;\n }\n\n function isUtc() {\n return this.isValid() ? this._isUTC && this._offset === 0 : false;\n }\n\n // ASP.NET json date format regex\n var aspNetRegex = /^(-|\\+)?(?:(\\d*)[. ])?(\\d+):(\\d+)(?::(\\d+)(\\.\\d*)?)?$/,\n // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html\n // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere\n // and further modified to allow for strings containing both week and day\n isoRegex = /^(-|\\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;\n\n function createDuration(input, key) {\n var duration = input,\n // matching against regexp is expensive, do it on demand\n match = null,\n sign,\n ret,\n diffRes;\n\n if (isDuration(input)) {\n duration = {\n ms: input._milliseconds,\n d: input._days,\n M: input._months,\n };\n } else if (isNumber(input) || !isNaN(+input)) {\n duration = {};\n if (key) {\n duration[key] = +input;\n } else {\n duration.milliseconds = +input;\n }\n } else if ((match = aspNetRegex.exec(input))) {\n sign = match[1] === '-' ? -1 : 1;\n duration = {\n y: 0,\n d: toInt(match[DATE]) * sign,\n h: toInt(match[HOUR]) * sign,\n m: toInt(match[MINUTE]) * sign,\n s: toInt(match[SECOND]) * sign,\n ms: toInt(absRound(match[MILLISECOND] * 1000)) * sign, // the millisecond decimal point is included in the match\n };\n } else if ((match = isoRegex.exec(input))) {\n sign = match[1] === '-' ? -1 : 1;\n duration = {\n y: parseIso(match[2], sign),\n M: parseIso(match[3], sign),\n w: parseIso(match[4], sign),\n d: parseIso(match[5], sign),\n h: parseIso(match[6], sign),\n m: parseIso(match[7], sign),\n s: parseIso(match[8], sign),\n };\n } else if (duration == null) {\n // checks for null or undefined\n duration = {};\n } else if (\n typeof duration === 'object' &&\n ('from' in duration || 'to' in duration)\n ) {\n diffRes = momentsDifference(\n createLocal(duration.from),\n createLocal(duration.to)\n );\n\n duration = {};\n duration.ms = diffRes.milliseconds;\n duration.M = diffRes.months;\n }\n\n ret = new Duration(duration);\n\n if (isDuration(input) && hasOwnProp(input, '_locale')) {\n ret._locale = input._locale;\n }\n\n if (isDuration(input) && hasOwnProp(input, '_isValid')) {\n ret._isValid = input._isValid;\n }\n\n return ret;\n }\n\n createDuration.fn = Duration.prototype;\n createDuration.invalid = createInvalid$1;\n\n function parseIso(inp, sign) {\n // We'd normally use ~~inp for this, but unfortunately it also\n // converts floats to ints.\n // inp may be undefined, so careful calling replace on it.\n var res = inp && parseFloat(inp.replace(',', '.'));\n // apply sign while we're at it\n return (isNaN(res) ? 0 : res) * sign;\n }\n\n function positiveMomentsDifference(base, other) {\n var res = {};\n\n res.months =\n other.month() - base.month() + (other.year() - base.year()) * 12;\n if (base.clone().add(res.months, 'M').isAfter(other)) {\n --res.months;\n }\n\n res.milliseconds = +other - +base.clone().add(res.months, 'M');\n\n return res;\n }\n\n function momentsDifference(base, other) {\n var res;\n if (!(base.isValid() && other.isValid())) {\n return { milliseconds: 0, months: 0 };\n }\n\n other = cloneWithOffset(other, base);\n if (base.isBefore(other)) {\n res = positiveMomentsDifference(base, other);\n } else {\n res = positiveMomentsDifference(other, base);\n res.milliseconds = -res.milliseconds;\n res.months = -res.months;\n }\n\n return res;\n }\n\n // TODO: remove 'name' arg after deprecation is removed\n function createAdder(direction, name) {\n return function (val, period) {\n var dur, tmp;\n //invert the arguments, but complain about it\n if (period !== null && !isNaN(+period)) {\n deprecateSimple(\n name,\n 'moment().' +\n name +\n '(period, number) is deprecated. Please use moment().' +\n name +\n '(number, period). ' +\n 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.'\n );\n tmp = val;\n val = period;\n period = tmp;\n }\n\n dur = createDuration(val, period);\n addSubtract(this, dur, direction);\n return this;\n };\n }\n\n function addSubtract(mom, duration, isAdding, updateOffset) {\n var milliseconds = duration._milliseconds,\n days = absRound(duration._days),\n months = absRound(duration._months);\n\n if (!mom.isValid()) {\n // No op\n return;\n }\n\n updateOffset = updateOffset == null ? true : updateOffset;\n\n if (months) {\n setMonth(mom, get(mom, 'Month') + months * isAdding);\n }\n if (days) {\n set$1(mom, 'Date', get(mom, 'Date') + days * isAdding);\n }\n if (milliseconds) {\n mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);\n }\n if (updateOffset) {\n hooks.updateOffset(mom, days || months);\n }\n }\n\n var add = createAdder(1, 'add'),\n subtract = createAdder(-1, 'subtract');\n\n function isString(input) {\n return typeof input === 'string' || input instanceof String;\n }\n\n // type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined\n function isMomentInput(input) {\n return (\n isMoment(input) ||\n isDate(input) ||\n isString(input) ||\n isNumber(input) ||\n isNumberOrStringArray(input) ||\n isMomentInputObject(input) ||\n input === null ||\n input === undefined\n );\n }\n\n function isMomentInputObject(input) {\n var objectTest = isObject(input) && !isObjectEmpty(input),\n propertyTest = false,\n properties = [\n 'years',\n 'year',\n 'y',\n 'months',\n 'month',\n 'M',\n 'days',\n 'day',\n 'd',\n 'dates',\n 'date',\n 'D',\n 'hours',\n 'hour',\n 'h',\n 'minutes',\n 'minute',\n 'm',\n 'seconds',\n 'second',\n 's',\n 'milliseconds',\n 'millisecond',\n 'ms',\n ],\n i,\n property;\n\n for (i = 0; i < properties.length; i += 1) {\n property = properties[i];\n propertyTest = propertyTest || hasOwnProp(input, property);\n }\n\n return objectTest && propertyTest;\n }\n\n function isNumberOrStringArray(input) {\n var arrayTest = isArray(input),\n dataTypeTest = false;\n if (arrayTest) {\n dataTypeTest =\n input.filter(function (item) {\n return !isNumber(item) && isString(input);\n }).length === 0;\n }\n return arrayTest && dataTypeTest;\n }\n\n function isCalendarSpec(input) {\n var objectTest = isObject(input) && !isObjectEmpty(input),\n propertyTest = false,\n properties = [\n 'sameDay',\n 'nextDay',\n 'lastDay',\n 'nextWeek',\n 'lastWeek',\n 'sameElse',\n ],\n i,\n property;\n\n for (i = 0; i < properties.length; i += 1) {\n property = properties[i];\n propertyTest = propertyTest || hasOwnProp(input, property);\n }\n\n return objectTest && propertyTest;\n }\n\n function getCalendarFormat(myMoment, now) {\n var diff = myMoment.diff(now, 'days', true);\n return diff < -6\n ? 'sameElse'\n : diff < -1\n ? 'lastWeek'\n : diff < 0\n ? 'lastDay'\n : diff < 1\n ? 'sameDay'\n : diff < 2\n ? 'nextDay'\n : diff < 7\n ? 'nextWeek'\n : 'sameElse';\n }\n\n function calendar$1(time, formats) {\n // Support for single parameter, formats only overload to the calendar function\n if (arguments.length === 1) {\n if (isMomentInput(arguments[0])) {\n time = arguments[0];\n formats = undefined;\n } else if (isCalendarSpec(arguments[0])) {\n formats = arguments[0];\n time = undefined;\n }\n }\n // We want to compare the start of today, vs this.\n // Getting start-of-today depends on whether we're local/utc/offset or not.\n var now = time || createLocal(),\n sod = cloneWithOffset(now, this).startOf('day'),\n format = hooks.calendarFormat(this, sod) || 'sameElse',\n output =\n formats &&\n (isFunction(formats[format])\n ? formats[format].call(this, now)\n : formats[format]);\n\n return this.format(\n output || this.localeData().calendar(format, this, createLocal(now))\n );\n }\n\n function clone() {\n return new Moment(this);\n }\n\n function isAfter(input, units) {\n var localInput = isMoment(input) ? input : createLocal(input);\n if (!(this.isValid() && localInput.isValid())) {\n return false;\n }\n units = normalizeUnits(units) || 'millisecond';\n if (units === 'millisecond') {\n return this.valueOf() > localInput.valueOf();\n } else {\n return localInput.valueOf() < this.clone().startOf(units).valueOf();\n }\n }\n\n function isBefore(input, units) {\n var localInput = isMoment(input) ? input : createLocal(input);\n if (!(this.isValid() && localInput.isValid())) {\n return false;\n }\n units = normalizeUnits(units) || 'millisecond';\n if (units === 'millisecond') {\n return this.valueOf() < localInput.valueOf();\n } else {\n return this.clone().endOf(units).valueOf() < localInput.valueOf();\n }\n }\n\n function isBetween(from, to, units, inclusivity) {\n var localFrom = isMoment(from) ? from : createLocal(from),\n localTo = isMoment(to) ? to : createLocal(to);\n if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) {\n return false;\n }\n inclusivity = inclusivity || '()';\n return (\n (inclusivity[0] === '('\n ? this.isAfter(localFrom, units)\n : !this.isBefore(localFrom, units)) &&\n (inclusivity[1] === ')'\n ? this.isBefore(localTo, units)\n : !this.isAfter(localTo, units))\n );\n }\n\n function isSame(input, units) {\n var localInput = isMoment(input) ? input : createLocal(input),\n inputMs;\n if (!(this.isValid() && localInput.isValid())) {\n return false;\n }\n units = normalizeUnits(units) || 'millisecond';\n if (units === 'millisecond') {\n return this.valueOf() === localInput.valueOf();\n } else {\n inputMs = localInput.valueOf();\n return (\n this.clone().startOf(units).valueOf() <= inputMs &&\n inputMs <= this.clone().endOf(units).valueOf()\n );\n }\n }\n\n function isSameOrAfter(input, units) {\n return this.isSame(input, units) || this.isAfter(input, units);\n }\n\n function isSameOrBefore(input, units) {\n return this.isSame(input, units) || this.isBefore(input, units);\n }\n\n function diff(input, units, asFloat) {\n var that, zoneDelta, output;\n\n if (!this.isValid()) {\n return NaN;\n }\n\n that = cloneWithOffset(input, this);\n\n if (!that.isValid()) {\n return NaN;\n }\n\n zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;\n\n units = normalizeUnits(units);\n\n switch (units) {\n case 'year':\n output = monthDiff(this, that) / 12;\n break;\n case 'month':\n output = monthDiff(this, that);\n break;\n case 'quarter':\n output = monthDiff(this, that) / 3;\n break;\n case 'second':\n output = (this - that) / 1e3;\n break; // 1000\n case 'minute':\n output = (this - that) / 6e4;\n break; // 1000 * 60\n case 'hour':\n output = (this - that) / 36e5;\n break; // 1000 * 60 * 60\n case 'day':\n output = (this - that - zoneDelta) / 864e5;\n break; // 1000 * 60 * 60 * 24, negate dst\n case 'week':\n output = (this - that - zoneDelta) / 6048e5;\n break; // 1000 * 60 * 60 * 24 * 7, negate dst\n default:\n output = this - that;\n }\n\n return asFloat ? output : absFloor(output);\n }\n\n function monthDiff(a, b) {\n if (a.date() < b.date()) {\n // end-of-month calculations work correct when the start month has more\n // days than the end month.\n return -monthDiff(b, a);\n }\n // difference in months\n var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month()),\n // b is in (anchor - 1 month, anchor + 1 month)\n anchor = a.clone().add(wholeMonthDiff, 'months'),\n anchor2,\n adjust;\n\n if (b - anchor < 0) {\n anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');\n // linear across the month\n adjust = (b - anchor) / (anchor - anchor2);\n } else {\n anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');\n // linear across the month\n adjust = (b - anchor) / (anchor2 - anchor);\n }\n\n //check for negative zero, return zero if negative zero\n return -(wholeMonthDiff + adjust) || 0;\n }\n\n hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';\n hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';\n\n function toString() {\n return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');\n }\n\n function toISOString(keepOffset) {\n if (!this.isValid()) {\n return null;\n }\n var utc = keepOffset !== true,\n m = utc ? this.clone().utc() : this;\n if (m.year() < 0 || m.year() > 9999) {\n return formatMoment(\n m,\n utc\n ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]'\n : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ'\n );\n }\n if (isFunction(Date.prototype.toISOString)) {\n // native implementation is ~50x faster, use it when we can\n if (utc) {\n return this.toDate().toISOString();\n } else {\n return new Date(this.valueOf() + this.utcOffset() * 60 * 1000)\n .toISOString()\n .replace('Z', formatMoment(m, 'Z'));\n }\n }\n return formatMoment(\n m,\n utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ'\n );\n }\n\n /**\n * Return a human readable representation of a moment that can\n * also be evaluated to get a new moment which is the same\n *\n * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects\n */\n function inspect() {\n if (!this.isValid()) {\n return 'moment.invalid(/* ' + this._i + ' */)';\n }\n var func = 'moment',\n zone = '',\n prefix,\n year,\n datetime,\n suffix;\n if (!this.isLocal()) {\n func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone';\n zone = 'Z';\n }\n prefix = '[' + func + '(\"]';\n year = 0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY';\n datetime = '-MM-DD[T]HH:mm:ss.SSS';\n suffix = zone + '[\")]';\n\n return this.format(prefix + year + datetime + suffix);\n }\n\n function format(inputString) {\n if (!inputString) {\n inputString = this.isUtc()\n ? hooks.defaultFormatUtc\n : hooks.defaultFormat;\n }\n var output = formatMoment(this, inputString);\n return this.localeData().postformat(output);\n }\n\n function from(time, withoutSuffix) {\n if (\n this.isValid() &&\n ((isMoment(time) && time.isValid()) || createLocal(time).isValid())\n ) {\n return createDuration({ to: this, from: time })\n .locale(this.locale())\n .humanize(!withoutSuffix);\n } else {\n return this.localeData().invalidDate();\n }\n }\n\n function fromNow(withoutSuffix) {\n return this.from(createLocal(), withoutSuffix);\n }\n\n function to(time, withoutSuffix) {\n if (\n this.isValid() &&\n ((isMoment(time) && time.isValid()) || createLocal(time).isValid())\n ) {\n return createDuration({ from: this, to: time })\n .locale(this.locale())\n .humanize(!withoutSuffix);\n } else {\n return this.localeData().invalidDate();\n }\n }\n\n function toNow(withoutSuffix) {\n return this.to(createLocal(), withoutSuffix);\n }\n\n // If passed a locale key, it will set the locale for this\n // instance. Otherwise, it will return the locale configuration\n // variables for this instance.\n function locale(key) {\n var newLocaleData;\n\n if (key === undefined) {\n return this._locale._abbr;\n } else {\n newLocaleData = getLocale(key);\n if (newLocaleData != null) {\n this._locale = newLocaleData;\n }\n return this;\n }\n }\n\n var lang = deprecate(\n 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',\n function (key) {\n if (key === undefined) {\n return this.localeData();\n } else {\n return this.locale(key);\n }\n }\n );\n\n function localeData() {\n return this._locale;\n }\n\n var MS_PER_SECOND = 1000,\n MS_PER_MINUTE = 60 * MS_PER_SECOND,\n MS_PER_HOUR = 60 * MS_PER_MINUTE,\n MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR;\n\n // actual modulo - handles negative numbers (for dates before 1970):\n function mod$1(dividend, divisor) {\n return ((dividend % divisor) + divisor) % divisor;\n }\n\n function localStartOfDate(y, m, d) {\n // the date constructor remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0) {\n // preserve leap years using a full 400 year cycle, then reset\n return new Date(y + 400, m, d) - MS_PER_400_YEARS;\n } else {\n return new Date(y, m, d).valueOf();\n }\n }\n\n function utcStartOfDate(y, m, d) {\n // Date.UTC remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0) {\n // preserve leap years using a full 400 year cycle, then reset\n return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS;\n } else {\n return Date.UTC(y, m, d);\n }\n }\n\n function startOf(units) {\n var time, startOfDate;\n units = normalizeUnits(units);\n if (units === undefined || units === 'millisecond' || !this.isValid()) {\n return this;\n }\n\n startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;\n\n switch (units) {\n case 'year':\n time = startOfDate(this.year(), 0, 1);\n break;\n case 'quarter':\n time = startOfDate(\n this.year(),\n this.month() - (this.month() % 3),\n 1\n );\n break;\n case 'month':\n time = startOfDate(this.year(), this.month(), 1);\n break;\n case 'week':\n time = startOfDate(\n this.year(),\n this.month(),\n this.date() - this.weekday()\n );\n break;\n case 'isoWeek':\n time = startOfDate(\n this.year(),\n this.month(),\n this.date() - (this.isoWeekday() - 1)\n );\n break;\n case 'day':\n case 'date':\n time = startOfDate(this.year(), this.month(), this.date());\n break;\n case 'hour':\n time = this._d.valueOf();\n time -= mod$1(\n time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),\n MS_PER_HOUR\n );\n break;\n case 'minute':\n time = this._d.valueOf();\n time -= mod$1(time, MS_PER_MINUTE);\n break;\n case 'second':\n time = this._d.valueOf();\n time -= mod$1(time, MS_PER_SECOND);\n break;\n }\n\n this._d.setTime(time);\n hooks.updateOffset(this, true);\n return this;\n }\n\n function endOf(units) {\n var time, startOfDate;\n units = normalizeUnits(units);\n if (units === undefined || units === 'millisecond' || !this.isValid()) {\n return this;\n }\n\n startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;\n\n switch (units) {\n case 'year':\n time = startOfDate(this.year() + 1, 0, 1) - 1;\n break;\n case 'quarter':\n time =\n startOfDate(\n this.year(),\n this.month() - (this.month() % 3) + 3,\n 1\n ) - 1;\n break;\n case 'month':\n time = startOfDate(this.year(), this.month() + 1, 1) - 1;\n break;\n case 'week':\n time =\n startOfDate(\n this.year(),\n this.month(),\n this.date() - this.weekday() + 7\n ) - 1;\n break;\n case 'isoWeek':\n time =\n startOfDate(\n this.year(),\n this.month(),\n this.date() - (this.isoWeekday() - 1) + 7\n ) - 1;\n break;\n case 'day':\n case 'date':\n time = startOfDate(this.year(), this.month(), this.date() + 1) - 1;\n break;\n case 'hour':\n time = this._d.valueOf();\n time +=\n MS_PER_HOUR -\n mod$1(\n time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),\n MS_PER_HOUR\n ) -\n 1;\n break;\n case 'minute':\n time = this._d.valueOf();\n time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1;\n break;\n case 'second':\n time = this._d.valueOf();\n time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1;\n break;\n }\n\n this._d.setTime(time);\n hooks.updateOffset(this, true);\n return this;\n }\n\n function valueOf() {\n return this._d.valueOf() - (this._offset || 0) * 60000;\n }\n\n function unix() {\n return Math.floor(this.valueOf() / 1000);\n }\n\n function toDate() {\n return new Date(this.valueOf());\n }\n\n function toArray() {\n var m = this;\n return [\n m.year(),\n m.month(),\n m.date(),\n m.hour(),\n m.minute(),\n m.second(),\n m.millisecond(),\n ];\n }\n\n function toObject() {\n var m = this;\n return {\n years: m.year(),\n months: m.month(),\n date: m.date(),\n hours: m.hours(),\n minutes: m.minutes(),\n seconds: m.seconds(),\n milliseconds: m.milliseconds(),\n };\n }\n\n function toJSON() {\n // new Date(NaN).toJSON() === null\n return this.isValid() ? this.toISOString() : null;\n }\n\n function isValid$2() {\n return isValid(this);\n }\n\n function parsingFlags() {\n return extend({}, getParsingFlags(this));\n }\n\n function invalidAt() {\n return getParsingFlags(this).overflow;\n }\n\n function creationData() {\n return {\n input: this._i,\n format: this._f,\n locale: this._locale,\n isUTC: this._isUTC,\n strict: this._strict,\n };\n }\n\n addFormatToken('N', 0, 0, 'eraAbbr');\n addFormatToken('NN', 0, 0, 'eraAbbr');\n addFormatToken('NNN', 0, 0, 'eraAbbr');\n addFormatToken('NNNN', 0, 0, 'eraName');\n addFormatToken('NNNNN', 0, 0, 'eraNarrow');\n\n addFormatToken('y', ['y', 1], 'yo', 'eraYear');\n addFormatToken('y', ['yy', 2], 0, 'eraYear');\n addFormatToken('y', ['yyy', 3], 0, 'eraYear');\n addFormatToken('y', ['yyyy', 4], 0, 'eraYear');\n\n addRegexToken('N', matchEraAbbr);\n addRegexToken('NN', matchEraAbbr);\n addRegexToken('NNN', matchEraAbbr);\n addRegexToken('NNNN', matchEraName);\n addRegexToken('NNNNN', matchEraNarrow);\n\n addParseToken(['N', 'NN', 'NNN', 'NNNN', 'NNNNN'], function (\n input,\n array,\n config,\n token\n ) {\n var era = config._locale.erasParse(input, token, config._strict);\n if (era) {\n getParsingFlags(config).era = era;\n } else {\n getParsingFlags(config).invalidEra = input;\n }\n });\n\n addRegexToken('y', matchUnsigned);\n addRegexToken('yy', matchUnsigned);\n addRegexToken('yyy', matchUnsigned);\n addRegexToken('yyyy', matchUnsigned);\n addRegexToken('yo', matchEraYearOrdinal);\n\n addParseToken(['y', 'yy', 'yyy', 'yyyy'], YEAR);\n addParseToken(['yo'], function (input, array, config, token) {\n var match;\n if (config._locale._eraYearOrdinalRegex) {\n match = input.match(config._locale._eraYearOrdinalRegex);\n }\n\n if (config._locale.eraYearOrdinalParse) {\n array[YEAR] = config._locale.eraYearOrdinalParse(input, match);\n } else {\n array[YEAR] = parseInt(input, 10);\n }\n });\n\n function localeEras(m, format) {\n var i,\n l,\n date,\n eras = this._eras || getLocale('en')._eras;\n for (i = 0, l = eras.length; i < l; ++i) {\n switch (typeof eras[i].since) {\n case 'string':\n // truncate time\n date = hooks(eras[i].since).startOf('day');\n eras[i].since = date.valueOf();\n break;\n }\n\n switch (typeof eras[i].until) {\n case 'undefined':\n eras[i].until = +Infinity;\n break;\n case 'string':\n // truncate time\n date = hooks(eras[i].until).startOf('day').valueOf();\n eras[i].until = date.valueOf();\n break;\n }\n }\n return eras;\n }\n\n function localeErasParse(eraName, format, strict) {\n var i,\n l,\n eras = this.eras(),\n name,\n abbr,\n narrow;\n eraName = eraName.toUpperCase();\n\n for (i = 0, l = eras.length; i < l; ++i) {\n name = eras[i].name.toUpperCase();\n abbr = eras[i].abbr.toUpperCase();\n narrow = eras[i].narrow.toUpperCase();\n\n if (strict) {\n switch (format) {\n case 'N':\n case 'NN':\n case 'NNN':\n if (abbr === eraName) {\n return eras[i];\n }\n break;\n\n case 'NNNN':\n if (name === eraName) {\n return eras[i];\n }\n break;\n\n case 'NNNNN':\n if (narrow === eraName) {\n return eras[i];\n }\n break;\n }\n } else if ([name, abbr, narrow].indexOf(eraName) >= 0) {\n return eras[i];\n }\n }\n }\n\n function localeErasConvertYear(era, year) {\n var dir = era.since <= era.until ? +1 : -1;\n if (year === undefined) {\n return hooks(era.since).year();\n } else {\n return hooks(era.since).year() + (year - era.offset) * dir;\n }\n }\n\n function getEraName() {\n var i,\n l,\n val,\n eras = this.localeData().eras();\n for (i = 0, l = eras.length; i < l; ++i) {\n // truncate time\n val = this.startOf('day').valueOf();\n\n if (eras[i].since <= val && val <= eras[i].until) {\n return eras[i].name;\n }\n if (eras[i].until <= val && val <= eras[i].since) {\n return eras[i].name;\n }\n }\n\n return '';\n }\n\n function getEraNarrow() {\n var i,\n l,\n val,\n eras = this.localeData().eras();\n for (i = 0, l = eras.length; i < l; ++i) {\n // truncate time\n val = this.startOf('day').valueOf();\n\n if (eras[i].since <= val && val <= eras[i].until) {\n return eras[i].narrow;\n }\n if (eras[i].until <= val && val <= eras[i].since) {\n return eras[i].narrow;\n }\n }\n\n return '';\n }\n\n function getEraAbbr() {\n var i,\n l,\n val,\n eras = this.localeData().eras();\n for (i = 0, l = eras.length; i < l; ++i) {\n // truncate time\n val = this.startOf('day').valueOf();\n\n if (eras[i].since <= val && val <= eras[i].until) {\n return eras[i].abbr;\n }\n if (eras[i].until <= val && val <= eras[i].since) {\n return eras[i].abbr;\n }\n }\n\n return '';\n }\n\n function getEraYear() {\n var i,\n l,\n dir,\n val,\n eras = this.localeData().eras();\n for (i = 0, l = eras.length; i < l; ++i) {\n dir = eras[i].since <= eras[i].until ? +1 : -1;\n\n // truncate time\n val = this.startOf('day').valueOf();\n\n if (\n (eras[i].since <= val && val <= eras[i].until) ||\n (eras[i].until <= val && val <= eras[i].since)\n ) {\n return (\n (this.year() - hooks(eras[i].since).year()) * dir +\n eras[i].offset\n );\n }\n }\n\n return this.year();\n }\n\n function erasNameRegex(isStrict) {\n if (!hasOwnProp(this, '_erasNameRegex')) {\n computeErasParse.call(this);\n }\n return isStrict ? this._erasNameRegex : this._erasRegex;\n }\n\n function erasAbbrRegex(isStrict) {\n if (!hasOwnProp(this, '_erasAbbrRegex')) {\n computeErasParse.call(this);\n }\n return isStrict ? this._erasAbbrRegex : this._erasRegex;\n }\n\n function erasNarrowRegex(isStrict) {\n if (!hasOwnProp(this, '_erasNarrowRegex')) {\n computeErasParse.call(this);\n }\n return isStrict ? this._erasNarrowRegex : this._erasRegex;\n }\n\n function matchEraAbbr(isStrict, locale) {\n return locale.erasAbbrRegex(isStrict);\n }\n\n function matchEraName(isStrict, locale) {\n return locale.erasNameRegex(isStrict);\n }\n\n function matchEraNarrow(isStrict, locale) {\n return locale.erasNarrowRegex(isStrict);\n }\n\n function matchEraYearOrdinal(isStrict, locale) {\n return locale._eraYearOrdinalRegex || matchUnsigned;\n }\n\n function computeErasParse() {\n var abbrPieces = [],\n namePieces = [],\n narrowPieces = [],\n mixedPieces = [],\n i,\n l,\n eras = this.eras();\n\n for (i = 0, l = eras.length; i < l; ++i) {\n namePieces.push(regexEscape(eras[i].name));\n abbrPieces.push(regexEscape(eras[i].abbr));\n narrowPieces.push(regexEscape(eras[i].narrow));\n\n mixedPieces.push(regexEscape(eras[i].name));\n mixedPieces.push(regexEscape(eras[i].abbr));\n mixedPieces.push(regexEscape(eras[i].narrow));\n }\n\n this._erasRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');\n this._erasNameRegex = new RegExp('^(' + namePieces.join('|') + ')', 'i');\n this._erasAbbrRegex = new RegExp('^(' + abbrPieces.join('|') + ')', 'i');\n this._erasNarrowRegex = new RegExp(\n '^(' + narrowPieces.join('|') + ')',\n 'i'\n );\n }\n\n // FORMATTING\n\n addFormatToken(0, ['gg', 2], 0, function () {\n return this.weekYear() % 100;\n });\n\n addFormatToken(0, ['GG', 2], 0, function () {\n return this.isoWeekYear() % 100;\n });\n\n function addWeekYearFormatToken(token, getter) {\n addFormatToken(0, [token, token.length], 0, getter);\n }\n\n addWeekYearFormatToken('gggg', 'weekYear');\n addWeekYearFormatToken('ggggg', 'weekYear');\n addWeekYearFormatToken('GGGG', 'isoWeekYear');\n addWeekYearFormatToken('GGGGG', 'isoWeekYear');\n\n // ALIASES\n\n addUnitAlias('weekYear', 'gg');\n addUnitAlias('isoWeekYear', 'GG');\n\n // PRIORITY\n\n addUnitPriority('weekYear', 1);\n addUnitPriority('isoWeekYear', 1);\n\n // PARSING\n\n addRegexToken('G', matchSigned);\n addRegexToken('g', matchSigned);\n addRegexToken('GG', match1to2, match2);\n addRegexToken('gg', match1to2, match2);\n addRegexToken('GGGG', match1to4, match4);\n addRegexToken('gggg', match1to4, match4);\n addRegexToken('GGGGG', match1to6, match6);\n addRegexToken('ggggg', match1to6, match6);\n\n addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (\n input,\n week,\n config,\n token\n ) {\n week[token.substr(0, 2)] = toInt(input);\n });\n\n addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {\n week[token] = hooks.parseTwoDigitYear(input);\n });\n\n // MOMENTS\n\n function getSetWeekYear(input) {\n return getSetWeekYearHelper.call(\n this,\n input,\n this.week(),\n this.weekday(),\n this.localeData()._week.dow,\n this.localeData()._week.doy\n );\n }\n\n function getSetISOWeekYear(input) {\n return getSetWeekYearHelper.call(\n this,\n input,\n this.isoWeek(),\n this.isoWeekday(),\n 1,\n 4\n );\n }\n\n function getISOWeeksInYear() {\n return weeksInYear(this.year(), 1, 4);\n }\n\n function getISOWeeksInISOWeekYear() {\n return weeksInYear(this.isoWeekYear(), 1, 4);\n }\n\n function getWeeksInYear() {\n var weekInfo = this.localeData()._week;\n return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);\n }\n\n function getWeeksInWeekYear() {\n var weekInfo = this.localeData()._week;\n return weeksInYear(this.weekYear(), weekInfo.dow, weekInfo.doy);\n }\n\n function getSetWeekYearHelper(input, week, weekday, dow, doy) {\n var weeksTarget;\n if (input == null) {\n return weekOfYear(this, dow, doy).year;\n } else {\n weeksTarget = weeksInYear(input, dow, doy);\n if (week > weeksTarget) {\n week = weeksTarget;\n }\n return setWeekAll.call(this, input, week, weekday, dow, doy);\n }\n }\n\n function setWeekAll(weekYear, week, weekday, dow, doy) {\n var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),\n date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);\n\n this.year(date.getUTCFullYear());\n this.month(date.getUTCMonth());\n this.date(date.getUTCDate());\n return this;\n }\n\n // FORMATTING\n\n addFormatToken('Q', 0, 'Qo', 'quarter');\n\n // ALIASES\n\n addUnitAlias('quarter', 'Q');\n\n // PRIORITY\n\n addUnitPriority('quarter', 7);\n\n // PARSING\n\n addRegexToken('Q', match1);\n addParseToken('Q', function (input, array) {\n array[MONTH] = (toInt(input) - 1) * 3;\n });\n\n // MOMENTS\n\n function getSetQuarter(input) {\n return input == null\n ? Math.ceil((this.month() + 1) / 3)\n : this.month((input - 1) * 3 + (this.month() % 3));\n }\n\n // FORMATTING\n\n addFormatToken('D', ['DD', 2], 'Do', 'date');\n\n // ALIASES\n\n addUnitAlias('date', 'D');\n\n // PRIORITY\n addUnitPriority('date', 9);\n\n // PARSING\n\n addRegexToken('D', match1to2);\n addRegexToken('DD', match1to2, match2);\n addRegexToken('Do', function (isStrict, locale) {\n // TODO: Remove \"ordinalParse\" fallback in next major release.\n return isStrict\n ? locale._dayOfMonthOrdinalParse || locale._ordinalParse\n : locale._dayOfMonthOrdinalParseLenient;\n });\n\n addParseToken(['D', 'DD'], DATE);\n addParseToken('Do', function (input, array) {\n array[DATE] = toInt(input.match(match1to2)[0]);\n });\n\n // MOMENTS\n\n var getSetDayOfMonth = makeGetSet('Date', true);\n\n // FORMATTING\n\n addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');\n\n // ALIASES\n\n addUnitAlias('dayOfYear', 'DDD');\n\n // PRIORITY\n addUnitPriority('dayOfYear', 4);\n\n // PARSING\n\n addRegexToken('DDD', match1to3);\n addRegexToken('DDDD', match3);\n addParseToken(['DDD', 'DDDD'], function (input, array, config) {\n config._dayOfYear = toInt(input);\n });\n\n // HELPERS\n\n // MOMENTS\n\n function getSetDayOfYear(input) {\n var dayOfYear =\n Math.round(\n (this.clone().startOf('day') - this.clone().startOf('year')) / 864e5\n ) + 1;\n return input == null ? dayOfYear : this.add(input - dayOfYear, 'd');\n }\n\n // FORMATTING\n\n addFormatToken('m', ['mm', 2], 0, 'minute');\n\n // ALIASES\n\n addUnitAlias('minute', 'm');\n\n // PRIORITY\n\n addUnitPriority('minute', 14);\n\n // PARSING\n\n addRegexToken('m', match1to2);\n addRegexToken('mm', match1to2, match2);\n addParseToken(['m', 'mm'], MINUTE);\n\n // MOMENTS\n\n var getSetMinute = makeGetSet('Minutes', false);\n\n // FORMATTING\n\n addFormatToken('s', ['ss', 2], 0, 'second');\n\n // ALIASES\n\n addUnitAlias('second', 's');\n\n // PRIORITY\n\n addUnitPriority('second', 15);\n\n // PARSING\n\n addRegexToken('s', match1to2);\n addRegexToken('ss', match1to2, match2);\n addParseToken(['s', 'ss'], SECOND);\n\n // MOMENTS\n\n var getSetSecond = makeGetSet('Seconds', false);\n\n // FORMATTING\n\n addFormatToken('S', 0, 0, function () {\n return ~~(this.millisecond() / 100);\n });\n\n addFormatToken(0, ['SS', 2], 0, function () {\n return ~~(this.millisecond() / 10);\n });\n\n addFormatToken(0, ['SSS', 3], 0, 'millisecond');\n addFormatToken(0, ['SSSS', 4], 0, function () {\n return this.millisecond() * 10;\n });\n addFormatToken(0, ['SSSSS', 5], 0, function () {\n return this.millisecond() * 100;\n });\n addFormatToken(0, ['SSSSSS', 6], 0, function () {\n return this.millisecond() * 1000;\n });\n addFormatToken(0, ['SSSSSSS', 7], 0, function () {\n return this.millisecond() * 10000;\n });\n addFormatToken(0, ['SSSSSSSS', 8], 0, function () {\n return this.millisecond() * 100000;\n });\n addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {\n return this.millisecond() * 1000000;\n });\n\n // ALIASES\n\n addUnitAlias('millisecond', 'ms');\n\n // PRIORITY\n\n addUnitPriority('millisecond', 16);\n\n // PARSING\n\n addRegexToken('S', match1to3, match1);\n addRegexToken('SS', match1to3, match2);\n addRegexToken('SSS', match1to3, match3);\n\n var token, getSetMillisecond;\n for (token = 'SSSS'; token.length <= 9; token += 'S') {\n addRegexToken(token, matchUnsigned);\n }\n\n function parseMs(input, array) {\n array[MILLISECOND] = toInt(('0.' + input) * 1000);\n }\n\n for (token = 'S'; token.length <= 9; token += 'S') {\n addParseToken(token, parseMs);\n }\n\n getSetMillisecond = makeGetSet('Milliseconds', false);\n\n // FORMATTING\n\n addFormatToken('z', 0, 0, 'zoneAbbr');\n addFormatToken('zz', 0, 0, 'zoneName');\n\n // MOMENTS\n\n function getZoneAbbr() {\n return this._isUTC ? 'UTC' : '';\n }\n\n function getZoneName() {\n return this._isUTC ? 'Coordinated Universal Time' : '';\n }\n\n var proto = Moment.prototype;\n\n proto.add = add;\n proto.calendar = calendar$1;\n proto.clone = clone;\n proto.diff = diff;\n proto.endOf = endOf;\n proto.format = format;\n proto.from = from;\n proto.fromNow = fromNow;\n proto.to = to;\n proto.toNow = toNow;\n proto.get = stringGet;\n proto.invalidAt = invalidAt;\n proto.isAfter = isAfter;\n proto.isBefore = isBefore;\n proto.isBetween = isBetween;\n proto.isSame = isSame;\n proto.isSameOrAfter = isSameOrAfter;\n proto.isSameOrBefore = isSameOrBefore;\n proto.isValid = isValid$2;\n proto.lang = lang;\n proto.locale = locale;\n proto.localeData = localeData;\n proto.max = prototypeMax;\n proto.min = prototypeMin;\n proto.parsingFlags = parsingFlags;\n proto.set = stringSet;\n proto.startOf = startOf;\n proto.subtract = subtract;\n proto.toArray = toArray;\n proto.toObject = toObject;\n proto.toDate = toDate;\n proto.toISOString = toISOString;\n proto.inspect = inspect;\n if (typeof Symbol !== 'undefined' && Symbol.for != null) {\n proto[Symbol.for('nodejs.util.inspect.custom')] = function () {\n return 'Moment<' + this.format() + '>';\n };\n }\n proto.toJSON = toJSON;\n proto.toString = toString;\n proto.unix = unix;\n proto.valueOf = valueOf;\n proto.creationData = creationData;\n proto.eraName = getEraName;\n proto.eraNarrow = getEraNarrow;\n proto.eraAbbr = getEraAbbr;\n proto.eraYear = getEraYear;\n proto.year = getSetYear;\n proto.isLeapYear = getIsLeapYear;\n proto.weekYear = getSetWeekYear;\n proto.isoWeekYear = getSetISOWeekYear;\n proto.quarter = proto.quarters = getSetQuarter;\n proto.month = getSetMonth;\n proto.daysInMonth = getDaysInMonth;\n proto.week = proto.weeks = getSetWeek;\n proto.isoWeek = proto.isoWeeks = getSetISOWeek;\n proto.weeksInYear = getWeeksInYear;\n proto.weeksInWeekYear = getWeeksInWeekYear;\n proto.isoWeeksInYear = getISOWeeksInYear;\n proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear;\n proto.date = getSetDayOfMonth;\n proto.day = proto.days = getSetDayOfWeek;\n proto.weekday = getSetLocaleDayOfWeek;\n proto.isoWeekday = getSetISODayOfWeek;\n proto.dayOfYear = getSetDayOfYear;\n proto.hour = proto.hours = getSetHour;\n proto.minute = proto.minutes = getSetMinute;\n proto.second = proto.seconds = getSetSecond;\n proto.millisecond = proto.milliseconds = getSetMillisecond;\n proto.utcOffset = getSetOffset;\n proto.utc = setOffsetToUTC;\n proto.local = setOffsetToLocal;\n proto.parseZone = setOffsetToParsedOffset;\n proto.hasAlignedHourOffset = hasAlignedHourOffset;\n proto.isDST = isDaylightSavingTime;\n proto.isLocal = isLocal;\n proto.isUtcOffset = isUtcOffset;\n proto.isUtc = isUtc;\n proto.isUTC = isUtc;\n proto.zoneAbbr = getZoneAbbr;\n proto.zoneName = getZoneName;\n proto.dates = deprecate(\n 'dates accessor is deprecated. Use date instead.',\n getSetDayOfMonth\n );\n proto.months = deprecate(\n 'months accessor is deprecated. Use month instead',\n getSetMonth\n );\n proto.years = deprecate(\n 'years accessor is deprecated. Use year instead',\n getSetYear\n );\n proto.zone = deprecate(\n 'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/',\n getSetZone\n );\n proto.isDSTShifted = deprecate(\n 'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information',\n isDaylightSavingTimeShifted\n );\n\n function createUnix(input) {\n return createLocal(input * 1000);\n }\n\n function createInZone() {\n return createLocal.apply(null, arguments).parseZone();\n }\n\n function preParsePostFormat(string) {\n return string;\n }\n\n var proto$1 = Locale.prototype;\n\n proto$1.calendar = calendar;\n proto$1.longDateFormat = longDateFormat;\n proto$1.invalidDate = invalidDate;\n proto$1.ordinal = ordinal;\n proto$1.preparse = preParsePostFormat;\n proto$1.postformat = preParsePostFormat;\n proto$1.relativeTime = relativeTime;\n proto$1.pastFuture = pastFuture;\n proto$1.set = set;\n proto$1.eras = localeEras;\n proto$1.erasParse = localeErasParse;\n proto$1.erasConvertYear = localeErasConvertYear;\n proto$1.erasAbbrRegex = erasAbbrRegex;\n proto$1.erasNameRegex = erasNameRegex;\n proto$1.erasNarrowRegex = erasNarrowRegex;\n\n proto$1.months = localeMonths;\n proto$1.monthsShort = localeMonthsShort;\n proto$1.monthsParse = localeMonthsParse;\n proto$1.monthsRegex = monthsRegex;\n proto$1.monthsShortRegex = monthsShortRegex;\n proto$1.week = localeWeek;\n proto$1.firstDayOfYear = localeFirstDayOfYear;\n proto$1.firstDayOfWeek = localeFirstDayOfWeek;\n\n proto$1.weekdays = localeWeekdays;\n proto$1.weekdaysMin = localeWeekdaysMin;\n proto$1.weekdaysShort = localeWeekdaysShort;\n proto$1.weekdaysParse = localeWeekdaysParse;\n\n proto$1.weekdaysRegex = weekdaysRegex;\n proto$1.weekdaysShortRegex = weekdaysShortRegex;\n proto$1.weekdaysMinRegex = weekdaysMinRegex;\n\n proto$1.isPM = localeIsPM;\n proto$1.meridiem = localeMeridiem;\n\n function get$1(format, index, field, setter) {\n var locale = getLocale(),\n utc = createUTC().set(setter, index);\n return locale[field](utc, format);\n }\n\n function listMonthsImpl(format, index, field) {\n if (isNumber(format)) {\n index = format;\n format = undefined;\n }\n\n format = format || '';\n\n if (index != null) {\n return get$1(format, index, field, 'month');\n }\n\n var i,\n out = [];\n for (i = 0; i < 12; i++) {\n out[i] = get$1(format, i, field, 'month');\n }\n return out;\n }\n\n // ()\n // (5)\n // (fmt, 5)\n // (fmt)\n // (true)\n // (true, 5)\n // (true, fmt, 5)\n // (true, fmt)\n function listWeekdaysImpl(localeSorted, format, index, field) {\n if (typeof localeSorted === 'boolean') {\n if (isNumber(format)) {\n index = format;\n format = undefined;\n }\n\n format = format || '';\n } else {\n format = localeSorted;\n index = format;\n localeSorted = false;\n\n if (isNumber(format)) {\n index = format;\n format = undefined;\n }\n\n format = format || '';\n }\n\n var locale = getLocale(),\n shift = localeSorted ? locale._week.dow : 0,\n i,\n out = [];\n\n if (index != null) {\n return get$1(format, (index + shift) % 7, field, 'day');\n }\n\n for (i = 0; i < 7; i++) {\n out[i] = get$1(format, (i + shift) % 7, field, 'day');\n }\n return out;\n }\n\n function listMonths(format, index) {\n return listMonthsImpl(format, index, 'months');\n }\n\n function listMonthsShort(format, index) {\n return listMonthsImpl(format, index, 'monthsShort');\n }\n\n function listWeekdays(localeSorted, format, index) {\n return listWeekdaysImpl(localeSorted, format, index, 'weekdays');\n }\n\n function listWeekdaysShort(localeSorted, format, index) {\n return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');\n }\n\n function listWeekdaysMin(localeSorted, format, index) {\n return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');\n }\n\n getSetGlobalLocale('en', {\n eras: [\n {\n since: '0001-01-01',\n until: +Infinity,\n offset: 1,\n name: 'Anno Domini',\n narrow: 'AD',\n abbr: 'AD',\n },\n {\n since: '0000-12-31',\n until: -Infinity,\n offset: 1,\n name: 'Before Christ',\n narrow: 'BC',\n abbr: 'BC',\n },\n ],\n dayOfMonthOrdinalParse: /\\d{1,2}(th|st|nd|rd)/,\n ordinal: function (number) {\n var b = number % 10,\n output =\n toInt((number % 100) / 10) === 1\n ? 'th'\n : b === 1\n ? 'st'\n : b === 2\n ? 'nd'\n : b === 3\n ? 'rd'\n : 'th';\n return number + output;\n },\n });\n\n // Side effect imports\n\n hooks.lang = deprecate(\n 'moment.lang is deprecated. Use moment.locale instead.',\n getSetGlobalLocale\n );\n hooks.langData = deprecate(\n 'moment.langData is deprecated. Use moment.localeData instead.',\n getLocale\n );\n\n var mathAbs = Math.abs;\n\n function abs() {\n var data = this._data;\n\n this._milliseconds = mathAbs(this._milliseconds);\n this._days = mathAbs(this._days);\n this._months = mathAbs(this._months);\n\n data.milliseconds = mathAbs(data.milliseconds);\n data.seconds = mathAbs(data.seconds);\n data.minutes = mathAbs(data.minutes);\n data.hours = mathAbs(data.hours);\n data.months = mathAbs(data.months);\n data.years = mathAbs(data.years);\n\n return this;\n }\n\n function addSubtract$1(duration, input, value, direction) {\n var other = createDuration(input, value);\n\n duration._milliseconds += direction * other._milliseconds;\n duration._days += direction * other._days;\n duration._months += direction * other._months;\n\n return duration._bubble();\n }\n\n // supports only 2.0-style add(1, 's') or add(duration)\n function add$1(input, value) {\n return addSubtract$1(this, input, value, 1);\n }\n\n // supports only 2.0-style subtract(1, 's') or subtract(duration)\n function subtract$1(input, value) {\n return addSubtract$1(this, input, value, -1);\n }\n\n function absCeil(number) {\n if (number < 0) {\n return Math.floor(number);\n } else {\n return Math.ceil(number);\n }\n }\n\n function bubble() {\n var milliseconds = this._milliseconds,\n days = this._days,\n months = this._months,\n data = this._data,\n seconds,\n minutes,\n hours,\n years,\n monthsFromDays;\n\n // if we have a mix of positive and negative values, bubble down first\n // check: https://github.com/moment/moment/issues/2166\n if (\n !(\n (milliseconds >= 0 && days >= 0 && months >= 0) ||\n (milliseconds <= 0 && days <= 0 && months <= 0)\n )\n ) {\n milliseconds += absCeil(monthsToDays(months) + days) * 864e5;\n days = 0;\n months = 0;\n }\n\n // The following code bubbles up values, see the tests for\n // examples of what that means.\n data.milliseconds = milliseconds % 1000;\n\n seconds = absFloor(milliseconds / 1000);\n data.seconds = seconds % 60;\n\n minutes = absFloor(seconds / 60);\n data.minutes = minutes % 60;\n\n hours = absFloor(minutes / 60);\n data.hours = hours % 24;\n\n days += absFloor(hours / 24);\n\n // convert days to months\n monthsFromDays = absFloor(daysToMonths(days));\n months += monthsFromDays;\n days -= absCeil(monthsToDays(monthsFromDays));\n\n // 12 months -> 1 year\n years = absFloor(months / 12);\n months %= 12;\n\n data.days = days;\n data.months = months;\n data.years = years;\n\n return this;\n }\n\n function daysToMonths(days) {\n // 400 years have 146097 days (taking into account leap year rules)\n // 400 years have 12 months === 4800\n return (days * 4800) / 146097;\n }\n\n function monthsToDays(months) {\n // the reverse of daysToMonths\n return (months * 146097) / 4800;\n }\n\n function as(units) {\n if (!this.isValid()) {\n return NaN;\n }\n var days,\n months,\n milliseconds = this._milliseconds;\n\n units = normalizeUnits(units);\n\n if (units === 'month' || units === 'quarter' || units === 'year') {\n days = this._days + milliseconds / 864e5;\n months = this._months + daysToMonths(days);\n switch (units) {\n case 'month':\n return months;\n case 'quarter':\n return months / 3;\n case 'year':\n return months / 12;\n }\n } else {\n // handle milliseconds separately because of floating point math errors (issue #1867)\n days = this._days + Math.round(monthsToDays(this._months));\n switch (units) {\n case 'week':\n return days / 7 + milliseconds / 6048e5;\n case 'day':\n return days + milliseconds / 864e5;\n case 'hour':\n return days * 24 + milliseconds / 36e5;\n case 'minute':\n return days * 1440 + milliseconds / 6e4;\n case 'second':\n return days * 86400 + milliseconds / 1000;\n // Math.floor prevents floating point math errors here\n case 'millisecond':\n return Math.floor(days * 864e5) + milliseconds;\n default:\n throw new Error('Unknown unit ' + units);\n }\n }\n }\n\n // TODO: Use this.as('ms')?\n function valueOf$1() {\n if (!this.isValid()) {\n return NaN;\n }\n return (\n this._milliseconds +\n this._days * 864e5 +\n (this._months % 12) * 2592e6 +\n toInt(this._months / 12) * 31536e6\n );\n }\n\n function makeAs(alias) {\n return function () {\n return this.as(alias);\n };\n }\n\n var asMilliseconds = makeAs('ms'),\n asSeconds = makeAs('s'),\n asMinutes = makeAs('m'),\n asHours = makeAs('h'),\n asDays = makeAs('d'),\n asWeeks = makeAs('w'),\n asMonths = makeAs('M'),\n asQuarters = makeAs('Q'),\n asYears = makeAs('y');\n\n function clone$1() {\n return createDuration(this);\n }\n\n function get$2(units) {\n units = normalizeUnits(units);\n return this.isValid() ? this[units + 's']() : NaN;\n }\n\n function makeGetter(name) {\n return function () {\n return this.isValid() ? this._data[name] : NaN;\n };\n }\n\n var milliseconds = makeGetter('milliseconds'),\n seconds = makeGetter('seconds'),\n minutes = makeGetter('minutes'),\n hours = makeGetter('hours'),\n days = makeGetter('days'),\n months = makeGetter('months'),\n years = makeGetter('years');\n\n function weeks() {\n return absFloor(this.days() / 7);\n }\n\n var round = Math.round,\n thresholds = {\n ss: 44, // a few seconds to seconds\n s: 45, // seconds to minute\n m: 45, // minutes to hour\n h: 22, // hours to day\n d: 26, // days to month/week\n w: null, // weeks to month\n M: 11, // months to year\n };\n\n // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize\n function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {\n return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);\n }\n\n function relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) {\n var duration = createDuration(posNegDuration).abs(),\n seconds = round(duration.as('s')),\n minutes = round(duration.as('m')),\n hours = round(duration.as('h')),\n days = round(duration.as('d')),\n months = round(duration.as('M')),\n weeks = round(duration.as('w')),\n years = round(duration.as('y')),\n a =\n (seconds <= thresholds.ss && ['s', seconds]) ||\n (seconds < thresholds.s && ['ss', seconds]) ||\n (minutes <= 1 && ['m']) ||\n (minutes < thresholds.m && ['mm', minutes]) ||\n (hours <= 1 && ['h']) ||\n (hours < thresholds.h && ['hh', hours]) ||\n (days <= 1 && ['d']) ||\n (days < thresholds.d && ['dd', days]);\n\n if (thresholds.w != null) {\n a =\n a ||\n (weeks <= 1 && ['w']) ||\n (weeks < thresholds.w && ['ww', weeks]);\n }\n a = a ||\n (months <= 1 && ['M']) ||\n (months < thresholds.M && ['MM', months]) ||\n (years <= 1 && ['y']) || ['yy', years];\n\n a[2] = withoutSuffix;\n a[3] = +posNegDuration > 0;\n a[4] = locale;\n return substituteTimeAgo.apply(null, a);\n }\n\n // This function allows you to set the rounding function for relative time strings\n function getSetRelativeTimeRounding(roundingFunction) {\n if (roundingFunction === undefined) {\n return round;\n }\n if (typeof roundingFunction === 'function') {\n round = roundingFunction;\n return true;\n }\n return false;\n }\n\n // This function allows you to set a threshold for relative time strings\n function getSetRelativeTimeThreshold(threshold, limit) {\n if (thresholds[threshold] === undefined) {\n return false;\n }\n if (limit === undefined) {\n return thresholds[threshold];\n }\n thresholds[threshold] = limit;\n if (threshold === 's') {\n thresholds.ss = limit - 1;\n }\n return true;\n }\n\n function humanize(argWithSuffix, argThresholds) {\n if (!this.isValid()) {\n return this.localeData().invalidDate();\n }\n\n var withSuffix = false,\n th = thresholds,\n locale,\n output;\n\n if (typeof argWithSuffix === 'object') {\n argThresholds = argWithSuffix;\n argWithSuffix = false;\n }\n if (typeof argWithSuffix === 'boolean') {\n withSuffix = argWithSuffix;\n }\n if (typeof argThresholds === 'object') {\n th = Object.assign({}, thresholds, argThresholds);\n if (argThresholds.s != null && argThresholds.ss == null) {\n th.ss = argThresholds.s - 1;\n }\n }\n\n locale = this.localeData();\n output = relativeTime$1(this, !withSuffix, th, locale);\n\n if (withSuffix) {\n output = locale.pastFuture(+this, output);\n }\n\n return locale.postformat(output);\n }\n\n var abs$1 = Math.abs;\n\n function sign(x) {\n return (x > 0) - (x < 0) || +x;\n }\n\n function toISOString$1() {\n // for ISO strings we do not use the normal bubbling rules:\n // * milliseconds bubble up until they become hours\n // * days do not bubble at all\n // * months bubble up until they become years\n // This is because there is no context-free conversion between hours and days\n // (think of clock changes)\n // and also not between days and months (28-31 days per month)\n if (!this.isValid()) {\n return this.localeData().invalidDate();\n }\n\n var seconds = abs$1(this._milliseconds) / 1000,\n days = abs$1(this._days),\n months = abs$1(this._months),\n minutes,\n hours,\n years,\n s,\n total = this.asSeconds(),\n totalSign,\n ymSign,\n daysSign,\n hmsSign;\n\n if (!total) {\n // this is the same as C#'s (Noda) and python (isodate)...\n // but not other JS (goog.date)\n return 'P0D';\n }\n\n // 3600 seconds -> 60 minutes -> 1 hour\n minutes = absFloor(seconds / 60);\n hours = absFloor(minutes / 60);\n seconds %= 60;\n minutes %= 60;\n\n // 12 months -> 1 year\n years = absFloor(months / 12);\n months %= 12;\n\n // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js\n s = seconds ? seconds.toFixed(3).replace(/\\.?0+$/, '') : '';\n\n totalSign = total < 0 ? '-' : '';\n ymSign = sign(this._months) !== sign(total) ? '-' : '';\n daysSign = sign(this._days) !== sign(total) ? '-' : '';\n hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';\n\n return (\n totalSign +\n 'P' +\n (years ? ymSign + years + 'Y' : '') +\n (months ? ymSign + months + 'M' : '') +\n (days ? daysSign + days + 'D' : '') +\n (hours || minutes || seconds ? 'T' : '') +\n (hours ? hmsSign + hours + 'H' : '') +\n (minutes ? hmsSign + minutes + 'M' : '') +\n (seconds ? hmsSign + s + 'S' : '')\n );\n }\n\n var proto$2 = Duration.prototype;\n\n proto$2.isValid = isValid$1;\n proto$2.abs = abs;\n proto$2.add = add$1;\n proto$2.subtract = subtract$1;\n proto$2.as = as;\n proto$2.asMilliseconds = asMilliseconds;\n proto$2.asSeconds = asSeconds;\n proto$2.asMinutes = asMinutes;\n proto$2.asHours = asHours;\n proto$2.asDays = asDays;\n proto$2.asWeeks = asWeeks;\n proto$2.asMonths = asMonths;\n proto$2.asQuarters = asQuarters;\n proto$2.asYears = asYears;\n proto$2.valueOf = valueOf$1;\n proto$2._bubble = bubble;\n proto$2.clone = clone$1;\n proto$2.get = get$2;\n proto$2.milliseconds = milliseconds;\n proto$2.seconds = seconds;\n proto$2.minutes = minutes;\n proto$2.hours = hours;\n proto$2.days = days;\n proto$2.weeks = weeks;\n proto$2.months = months;\n proto$2.years = years;\n proto$2.humanize = humanize;\n proto$2.toISOString = toISOString$1;\n proto$2.toString = toISOString$1;\n proto$2.toJSON = toISOString$1;\n proto$2.locale = locale;\n proto$2.localeData = localeData;\n\n proto$2.toIsoString = deprecate(\n 'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)',\n toISOString$1\n );\n proto$2.lang = lang;\n\n // FORMATTING\n\n addFormatToken('X', 0, 0, 'unix');\n addFormatToken('x', 0, 0, 'valueOf');\n\n // PARSING\n\n addRegexToken('x', matchSigned);\n addRegexToken('X', matchTimestamp);\n addParseToken('X', function (input, array, config) {\n config._d = new Date(parseFloat(input) * 1000);\n });\n addParseToken('x', function (input, array, config) {\n config._d = new Date(toInt(input));\n });\n\n //! moment.js\n\n hooks.version = '2.27.0';\n\n setHookCallback(createLocal);\n\n hooks.fn = proto;\n hooks.min = min;\n hooks.max = max;\n hooks.now = now;\n hooks.utc = createUTC;\n hooks.unix = createUnix;\n hooks.months = listMonths;\n hooks.isDate = isDate;\n hooks.locale = getSetGlobalLocale;\n hooks.invalid = createInvalid;\n hooks.duration = createDuration;\n hooks.isMoment = isMoment;\n hooks.weekdays = listWeekdays;\n hooks.parseZone = createInZone;\n hooks.localeData = getLocale;\n hooks.isDuration = isDuration;\n hooks.monthsShort = listMonthsShort;\n hooks.weekdaysMin = listWeekdaysMin;\n hooks.defineLocale = defineLocale;\n hooks.updateLocale = updateLocale;\n hooks.locales = listLocales;\n hooks.weekdaysShort = listWeekdaysShort;\n hooks.normalizeUnits = normalizeUnits;\n hooks.relativeTimeRounding = getSetRelativeTimeRounding;\n hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;\n hooks.calendarFormat = getCalendarFormat;\n hooks.prototype = proto;\n\n // currently HTML5 input type only supports 24-hour formats\n hooks.HTML5_FMT = {\n DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // \n DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // \n DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // \n DATE: 'YYYY-MM-DD', // \n TIME: 'HH:mm', // \n TIME_SECONDS: 'HH:mm:ss', // \n TIME_MS: 'HH:mm:ss.SSS', // \n WEEK: 'GGGG-[W]WW', // \n MONTH: 'YYYY-MM', // \n };\n\n return hooks;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/moment.js\n// module id = 404\n// module chunks = 0","var map = {\n\t\"./af\": 406,\n\t\"./af.js\": 406,\n\t\"./ar\": 407,\n\t\"./ar-dz\": 408,\n\t\"./ar-dz.js\": 408,\n\t\"./ar-kw\": 409,\n\t\"./ar-kw.js\": 409,\n\t\"./ar-ly\": 410,\n\t\"./ar-ly.js\": 410,\n\t\"./ar-ma\": 411,\n\t\"./ar-ma.js\": 411,\n\t\"./ar-sa\": 412,\n\t\"./ar-sa.js\": 412,\n\t\"./ar-tn\": 413,\n\t\"./ar-tn.js\": 413,\n\t\"./ar.js\": 407,\n\t\"./az\": 414,\n\t\"./az.js\": 414,\n\t\"./be\": 415,\n\t\"./be.js\": 415,\n\t\"./bg\": 416,\n\t\"./bg.js\": 416,\n\t\"./bm\": 417,\n\t\"./bm.js\": 417,\n\t\"./bn\": 418,\n\t\"./bn.js\": 418,\n\t\"./bo\": 419,\n\t\"./bo.js\": 419,\n\t\"./br\": 420,\n\t\"./br.js\": 420,\n\t\"./bs\": 421,\n\t\"./bs.js\": 421,\n\t\"./ca\": 422,\n\t\"./ca.js\": 422,\n\t\"./cs\": 423,\n\t\"./cs.js\": 423,\n\t\"./cv\": 424,\n\t\"./cv.js\": 424,\n\t\"./cy\": 425,\n\t\"./cy.js\": 425,\n\t\"./da\": 426,\n\t\"./da.js\": 426,\n\t\"./de\": 427,\n\t\"./de-at\": 428,\n\t\"./de-at.js\": 428,\n\t\"./de-ch\": 429,\n\t\"./de-ch.js\": 429,\n\t\"./de.js\": 427,\n\t\"./dv\": 430,\n\t\"./dv.js\": 430,\n\t\"./el\": 431,\n\t\"./el.js\": 431,\n\t\"./en-au\": 432,\n\t\"./en-au.js\": 432,\n\t\"./en-ca\": 433,\n\t\"./en-ca.js\": 433,\n\t\"./en-gb\": 434,\n\t\"./en-gb.js\": 434,\n\t\"./en-ie\": 435,\n\t\"./en-ie.js\": 435,\n\t\"./en-il\": 436,\n\t\"./en-il.js\": 436,\n\t\"./en-in\": 437,\n\t\"./en-in.js\": 437,\n\t\"./en-nz\": 438,\n\t\"./en-nz.js\": 438,\n\t\"./en-sg\": 439,\n\t\"./en-sg.js\": 439,\n\t\"./eo\": 440,\n\t\"./eo.js\": 440,\n\t\"./es\": 441,\n\t\"./es-do\": 442,\n\t\"./es-do.js\": 442,\n\t\"./es-us\": 443,\n\t\"./es-us.js\": 443,\n\t\"./es.js\": 441,\n\t\"./et\": 444,\n\t\"./et.js\": 444,\n\t\"./eu\": 445,\n\t\"./eu.js\": 445,\n\t\"./fa\": 446,\n\t\"./fa.js\": 446,\n\t\"./fi\": 447,\n\t\"./fi.js\": 447,\n\t\"./fil\": 448,\n\t\"./fil.js\": 448,\n\t\"./fo\": 449,\n\t\"./fo.js\": 449,\n\t\"./fr\": 450,\n\t\"./fr-ca\": 451,\n\t\"./fr-ca.js\": 451,\n\t\"./fr-ch\": 452,\n\t\"./fr-ch.js\": 452,\n\t\"./fr.js\": 450,\n\t\"./fy\": 453,\n\t\"./fy.js\": 453,\n\t\"./ga\": 454,\n\t\"./ga.js\": 454,\n\t\"./gd\": 455,\n\t\"./gd.js\": 455,\n\t\"./gl\": 456,\n\t\"./gl.js\": 456,\n\t\"./gom-deva\": 457,\n\t\"./gom-deva.js\": 457,\n\t\"./gom-latn\": 458,\n\t\"./gom-latn.js\": 458,\n\t\"./gu\": 459,\n\t\"./gu.js\": 459,\n\t\"./he\": 460,\n\t\"./he.js\": 460,\n\t\"./hi\": 461,\n\t\"./hi.js\": 461,\n\t\"./hr\": 462,\n\t\"./hr.js\": 462,\n\t\"./hu\": 463,\n\t\"./hu.js\": 463,\n\t\"./hy-am\": 464,\n\t\"./hy-am.js\": 464,\n\t\"./id\": 465,\n\t\"./id.js\": 465,\n\t\"./is\": 466,\n\t\"./is.js\": 466,\n\t\"./it\": 467,\n\t\"./it-ch\": 468,\n\t\"./it-ch.js\": 468,\n\t\"./it.js\": 467,\n\t\"./ja\": 469,\n\t\"./ja.js\": 469,\n\t\"./jv\": 470,\n\t\"./jv.js\": 470,\n\t\"./ka\": 471,\n\t\"./ka.js\": 471,\n\t\"./kk\": 472,\n\t\"./kk.js\": 472,\n\t\"./km\": 473,\n\t\"./km.js\": 473,\n\t\"./kn\": 474,\n\t\"./kn.js\": 474,\n\t\"./ko\": 475,\n\t\"./ko.js\": 475,\n\t\"./ku\": 476,\n\t\"./ku.js\": 476,\n\t\"./ky\": 477,\n\t\"./ky.js\": 477,\n\t\"./lb\": 478,\n\t\"./lb.js\": 478,\n\t\"./lo\": 479,\n\t\"./lo.js\": 479,\n\t\"./lt\": 480,\n\t\"./lt.js\": 480,\n\t\"./lv\": 481,\n\t\"./lv.js\": 481,\n\t\"./me\": 482,\n\t\"./me.js\": 482,\n\t\"./mi\": 483,\n\t\"./mi.js\": 483,\n\t\"./mk\": 484,\n\t\"./mk.js\": 484,\n\t\"./ml\": 485,\n\t\"./ml.js\": 485,\n\t\"./mn\": 486,\n\t\"./mn.js\": 486,\n\t\"./mr\": 487,\n\t\"./mr.js\": 487,\n\t\"./ms\": 488,\n\t\"./ms-my\": 489,\n\t\"./ms-my.js\": 489,\n\t\"./ms.js\": 488,\n\t\"./mt\": 490,\n\t\"./mt.js\": 490,\n\t\"./my\": 491,\n\t\"./my.js\": 491,\n\t\"./nb\": 492,\n\t\"./nb.js\": 492,\n\t\"./ne\": 493,\n\t\"./ne.js\": 493,\n\t\"./nl\": 494,\n\t\"./nl-be\": 495,\n\t\"./nl-be.js\": 495,\n\t\"./nl.js\": 494,\n\t\"./nn\": 496,\n\t\"./nn.js\": 496,\n\t\"./oc-lnc\": 497,\n\t\"./oc-lnc.js\": 497,\n\t\"./pa-in\": 498,\n\t\"./pa-in.js\": 498,\n\t\"./pl\": 499,\n\t\"./pl.js\": 499,\n\t\"./pt\": 500,\n\t\"./pt-br\": 501,\n\t\"./pt-br.js\": 501,\n\t\"./pt.js\": 500,\n\t\"./ro\": 502,\n\t\"./ro.js\": 502,\n\t\"./ru\": 503,\n\t\"./ru.js\": 503,\n\t\"./sd\": 504,\n\t\"./sd.js\": 504,\n\t\"./se\": 505,\n\t\"./se.js\": 505,\n\t\"./si\": 506,\n\t\"./si.js\": 506,\n\t\"./sk\": 507,\n\t\"./sk.js\": 507,\n\t\"./sl\": 508,\n\t\"./sl.js\": 508,\n\t\"./sq\": 509,\n\t\"./sq.js\": 509,\n\t\"./sr\": 510,\n\t\"./sr-cyrl\": 511,\n\t\"./sr-cyrl.js\": 511,\n\t\"./sr.js\": 510,\n\t\"./ss\": 512,\n\t\"./ss.js\": 512,\n\t\"./sv\": 513,\n\t\"./sv.js\": 513,\n\t\"./sw\": 514,\n\t\"./sw.js\": 514,\n\t\"./ta\": 515,\n\t\"./ta.js\": 515,\n\t\"./te\": 516,\n\t\"./te.js\": 516,\n\t\"./tet\": 517,\n\t\"./tet.js\": 517,\n\t\"./tg\": 518,\n\t\"./tg.js\": 518,\n\t\"./th\": 519,\n\t\"./th.js\": 519,\n\t\"./tk\": 520,\n\t\"./tk.js\": 520,\n\t\"./tl-ph\": 521,\n\t\"./tl-ph.js\": 521,\n\t\"./tlh\": 522,\n\t\"./tlh.js\": 522,\n\t\"./tr\": 523,\n\t\"./tr.js\": 523,\n\t\"./tzl\": 524,\n\t\"./tzl.js\": 524,\n\t\"./tzm\": 525,\n\t\"./tzm-latn\": 526,\n\t\"./tzm-latn.js\": 526,\n\t\"./tzm.js\": 525,\n\t\"./ug-cn\": 527,\n\t\"./ug-cn.js\": 527,\n\t\"./uk\": 528,\n\t\"./uk.js\": 528,\n\t\"./ur\": 529,\n\t\"./ur.js\": 529,\n\t\"./uz\": 530,\n\t\"./uz-latn\": 531,\n\t\"./uz-latn.js\": 531,\n\t\"./uz.js\": 530,\n\t\"./vi\": 532,\n\t\"./vi.js\": 532,\n\t\"./x-pseudo\": 533,\n\t\"./x-pseudo.js\": 533,\n\t\"./yo\": 534,\n\t\"./yo.js\": 534,\n\t\"./zh-cn\": 535,\n\t\"./zh-cn.js\": 535,\n\t\"./zh-hk\": 536,\n\t\"./zh-hk.js\": 536,\n\t\"./zh-mo\": 537,\n\t\"./zh-mo.js\": 537,\n\t\"./zh-tw\": 538,\n\t\"./zh-tw.js\": 538\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\treturn map[req] || (function() { throw new Error(\"Cannot find module '\" + req + \"'.\") }());\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 405;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale ^\\.\\/.*$\n// module id = 405\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Afrikaans [af]\n//! author : Werner Mollentze : https://github.com/wernerm\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var af = moment.defineLocale('af', {\n months: 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split(\n '_'\n ),\n monthsShort: 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),\n weekdays: 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split(\n '_'\n ),\n weekdaysShort: 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),\n weekdaysMin: 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),\n meridiemParse: /vm|nm/i,\n isPM: function (input) {\n return /^nm$/i.test(input);\n },\n meridiem: function (hours, minutes, isLower) {\n if (hours < 12) {\n return isLower ? 'vm' : 'VM';\n } else {\n return isLower ? 'nm' : 'NM';\n }\n },\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Vandag om] LT',\n nextDay: '[Môre om] LT',\n nextWeek: 'dddd [om] LT',\n lastDay: '[Gister om] LT',\n lastWeek: '[Laas] dddd [om] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'oor %s',\n past: '%s gelede',\n s: \"'n paar sekondes\",\n ss: '%d sekondes',\n m: \"'n minuut\",\n mm: '%d minute',\n h: \"'n uur\",\n hh: '%d ure',\n d: \"'n dag\",\n dd: '%d dae',\n M: \"'n maand\",\n MM: '%d maande',\n y: \"'n jaar\",\n yy: '%d jaar',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(ste|de)/,\n ordinal: function (number) {\n return (\n number +\n (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')\n ); // Thanks to Joris Röling : https://github.com/jjupiter\n },\n week: {\n dow: 1, // Maandag is die eerste dag van die week.\n doy: 4, // Die week wat die 4de Januarie bevat is die eerste week van die jaar.\n },\n });\n\n return af;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/af.js\n// module id = 406\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Arabic [ar]\n//! author : Abdel Said: https://github.com/abdelsaid\n//! author : Ahmed Elkhatib\n//! author : forabi https://github.com/forabi\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '١',\n '2': '٢',\n '3': '٣',\n '4': '٤',\n '5': '٥',\n '6': '٦',\n '7': '٧',\n '8': '٨',\n '9': '٩',\n '0': '٠',\n },\n numberMap = {\n '١': '1',\n '٢': '2',\n '٣': '3',\n '٤': '4',\n '٥': '5',\n '٦': '6',\n '٧': '7',\n '٨': '8',\n '٩': '9',\n '٠': '0',\n },\n pluralForm = function (n) {\n return n === 0\n ? 0\n : n === 1\n ? 1\n : n === 2\n ? 2\n : n % 100 >= 3 && n % 100 <= 10\n ? 3\n : n % 100 >= 11\n ? 4\n : 5;\n },\n plurals = {\n s: [\n 'أقل من ثانية',\n 'ثانية واحدة',\n ['ثانيتان', 'ثانيتين'],\n '%d ثوان',\n '%d ثانية',\n '%d ثانية',\n ],\n m: [\n 'أقل من دقيقة',\n 'دقيقة واحدة',\n ['دقيقتان', 'دقيقتين'],\n '%d دقائق',\n '%d دقيقة',\n '%d دقيقة',\n ],\n h: [\n 'أقل من ساعة',\n 'ساعة واحدة',\n ['ساعتان', 'ساعتين'],\n '%d ساعات',\n '%d ساعة',\n '%d ساعة',\n ],\n d: [\n 'أقل من يوم',\n 'يوم واحد',\n ['يومان', 'يومين'],\n '%d أيام',\n '%d يومًا',\n '%d يوم',\n ],\n M: [\n 'أقل من شهر',\n 'شهر واحد',\n ['شهران', 'شهرين'],\n '%d أشهر',\n '%d شهرا',\n '%d شهر',\n ],\n y: [\n 'أقل من عام',\n 'عام واحد',\n ['عامان', 'عامين'],\n '%d أعوام',\n '%d عامًا',\n '%d عام',\n ],\n },\n pluralize = function (u) {\n return function (number, withoutSuffix, string, isFuture) {\n var f = pluralForm(number),\n str = plurals[u][pluralForm(number)];\n if (f === 2) {\n str = str[withoutSuffix ? 0 : 1];\n }\n return str.replace(/%d/i, number);\n };\n },\n months = [\n 'يناير',\n 'فبراير',\n 'مارس',\n 'أبريل',\n 'مايو',\n 'يونيو',\n 'يوليو',\n 'أغسطس',\n 'سبتمبر',\n 'أكتوبر',\n 'نوفمبر',\n 'ديسمبر',\n ];\n\n var ar = moment.defineLocale('ar', {\n months: months,\n monthsShort: months,\n weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),\n weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'D/\\u200FM/\\u200FYYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n meridiemParse: /ص|م/,\n isPM: function (input) {\n return 'م' === input;\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'ص';\n } else {\n return 'م';\n }\n },\n calendar: {\n sameDay: '[اليوم عند الساعة] LT',\n nextDay: '[غدًا عند الساعة] LT',\n nextWeek: 'dddd [عند الساعة] LT',\n lastDay: '[أمس عند الساعة] LT',\n lastWeek: 'dddd [عند الساعة] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'بعد %s',\n past: 'منذ %s',\n s: pluralize('s'),\n ss: pluralize('s'),\n m: pluralize('m'),\n mm: pluralize('m'),\n h: pluralize('h'),\n hh: pluralize('h'),\n d: pluralize('d'),\n dd: pluralize('d'),\n M: pluralize('M'),\n MM: pluralize('M'),\n y: pluralize('y'),\n yy: pluralize('y'),\n },\n preparse: function (string) {\n return string\n .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {\n return numberMap[match];\n })\n .replace(/،/g, ',');\n },\n postformat: function (string) {\n return string\n .replace(/\\d/g, function (match) {\n return symbolMap[match];\n })\n .replace(/,/g, '،');\n },\n week: {\n dow: 6, // Saturday is the first day of the week.\n doy: 12, // The week that contains Jan 12th is the first week of the year.\n },\n });\n\n return ar;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ar.js\n// module id = 407\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Arabic (Algeria) [ar-dz]\n//! author : Amine Roukh: https://github.com/Amine27\n//! author : Abdel Said: https://github.com/abdelsaid\n//! author : Ahmed Elkhatib\n//! author : forabi https://github.com/forabi\n//! author : Noureddine LOUAHEDJ : https://github.com/noureddinem\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var pluralForm = function (n) {\n return n === 0\n ? 0\n : n === 1\n ? 1\n : n === 2\n ? 2\n : n % 100 >= 3 && n % 100 <= 10\n ? 3\n : n % 100 >= 11\n ? 4\n : 5;\n },\n plurals = {\n s: [\n 'أقل من ثانية',\n 'ثانية واحدة',\n ['ثانيتان', 'ثانيتين'],\n '%d ثوان',\n '%d ثانية',\n '%d ثانية',\n ],\n m: [\n 'أقل من دقيقة',\n 'دقيقة واحدة',\n ['دقيقتان', 'دقيقتين'],\n '%d دقائق',\n '%d دقيقة',\n '%d دقيقة',\n ],\n h: [\n 'أقل من ساعة',\n 'ساعة واحدة',\n ['ساعتان', 'ساعتين'],\n '%d ساعات',\n '%d ساعة',\n '%d ساعة',\n ],\n d: [\n 'أقل من يوم',\n 'يوم واحد',\n ['يومان', 'يومين'],\n '%d أيام',\n '%d يومًا',\n '%d يوم',\n ],\n M: [\n 'أقل من شهر',\n 'شهر واحد',\n ['شهران', 'شهرين'],\n '%d أشهر',\n '%d شهرا',\n '%d شهر',\n ],\n y: [\n 'أقل من عام',\n 'عام واحد',\n ['عامان', 'عامين'],\n '%d أعوام',\n '%d عامًا',\n '%d عام',\n ],\n },\n pluralize = function (u) {\n return function (number, withoutSuffix, string, isFuture) {\n var f = pluralForm(number),\n str = plurals[u][pluralForm(number)];\n if (f === 2) {\n str = str[withoutSuffix ? 0 : 1];\n }\n return str.replace(/%d/i, number);\n };\n },\n months = [\n 'جانفي',\n 'فيفري',\n 'مارس',\n 'أفريل',\n 'ماي',\n 'جوان',\n 'جويلية',\n 'أوت',\n 'سبتمبر',\n 'أكتوبر',\n 'نوفمبر',\n 'ديسمبر',\n ];\n\n var arDz = moment.defineLocale('ar-dz', {\n months: months,\n monthsShort: months,\n weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),\n weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'D/\\u200FM/\\u200FYYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n meridiemParse: /ص|م/,\n isPM: function (input) {\n return 'م' === input;\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'ص';\n } else {\n return 'م';\n }\n },\n calendar: {\n sameDay: '[اليوم عند الساعة] LT',\n nextDay: '[غدًا عند الساعة] LT',\n nextWeek: 'dddd [عند الساعة] LT',\n lastDay: '[أمس عند الساعة] LT',\n lastWeek: 'dddd [عند الساعة] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'بعد %s',\n past: 'منذ %s',\n s: pluralize('s'),\n ss: pluralize('s'),\n m: pluralize('m'),\n mm: pluralize('m'),\n h: pluralize('h'),\n hh: pluralize('h'),\n d: pluralize('d'),\n dd: pluralize('d'),\n M: pluralize('M'),\n MM: pluralize('M'),\n y: pluralize('y'),\n yy: pluralize('y'),\n },\n postformat: function (string) {\n return string.replace(/,/g, '،');\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return arDz;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ar-dz.js\n// module id = 408\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Arabic (Kuwait) [ar-kw]\n//! author : Nusret Parlak: https://github.com/nusretparlak\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var arKw = moment.defineLocale('ar-kw', {\n months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(\n '_'\n ),\n monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(\n '_'\n ),\n weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),\n weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[اليوم على الساعة] LT',\n nextDay: '[غدا على الساعة] LT',\n nextWeek: 'dddd [على الساعة] LT',\n lastDay: '[أمس على الساعة] LT',\n lastWeek: 'dddd [على الساعة] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'في %s',\n past: 'منذ %s',\n s: 'ثوان',\n ss: '%d ثانية',\n m: 'دقيقة',\n mm: '%d دقائق',\n h: 'ساعة',\n hh: '%d ساعات',\n d: 'يوم',\n dd: '%d أيام',\n M: 'شهر',\n MM: '%d أشهر',\n y: 'سنة',\n yy: '%d سنوات',\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 12, // The week that contains Jan 12th is the first week of the year.\n },\n });\n\n return arKw;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ar-kw.js\n// module id = 409\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Arabic (Lybia) [ar-ly]\n//! author : Ali Hmer: https://github.com/kikoanis\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '1',\n '2': '2',\n '3': '3',\n '4': '4',\n '5': '5',\n '6': '6',\n '7': '7',\n '8': '8',\n '9': '9',\n '0': '0',\n },\n pluralForm = function (n) {\n return n === 0\n ? 0\n : n === 1\n ? 1\n : n === 2\n ? 2\n : n % 100 >= 3 && n % 100 <= 10\n ? 3\n : n % 100 >= 11\n ? 4\n : 5;\n },\n plurals = {\n s: [\n 'أقل من ثانية',\n 'ثانية واحدة',\n ['ثانيتان', 'ثانيتين'],\n '%d ثوان',\n '%d ثانية',\n '%d ثانية',\n ],\n m: [\n 'أقل من دقيقة',\n 'دقيقة واحدة',\n ['دقيقتان', 'دقيقتين'],\n '%d دقائق',\n '%d دقيقة',\n '%d دقيقة',\n ],\n h: [\n 'أقل من ساعة',\n 'ساعة واحدة',\n ['ساعتان', 'ساعتين'],\n '%d ساعات',\n '%d ساعة',\n '%d ساعة',\n ],\n d: [\n 'أقل من يوم',\n 'يوم واحد',\n ['يومان', 'يومين'],\n '%d أيام',\n '%d يومًا',\n '%d يوم',\n ],\n M: [\n 'أقل من شهر',\n 'شهر واحد',\n ['شهران', 'شهرين'],\n '%d أشهر',\n '%d شهرا',\n '%d شهر',\n ],\n y: [\n 'أقل من عام',\n 'عام واحد',\n ['عامان', 'عامين'],\n '%d أعوام',\n '%d عامًا',\n '%d عام',\n ],\n },\n pluralize = function (u) {\n return function (number, withoutSuffix, string, isFuture) {\n var f = pluralForm(number),\n str = plurals[u][pluralForm(number)];\n if (f === 2) {\n str = str[withoutSuffix ? 0 : 1];\n }\n return str.replace(/%d/i, number);\n };\n },\n months = [\n 'يناير',\n 'فبراير',\n 'مارس',\n 'أبريل',\n 'مايو',\n 'يونيو',\n 'يوليو',\n 'أغسطس',\n 'سبتمبر',\n 'أكتوبر',\n 'نوفمبر',\n 'ديسمبر',\n ];\n\n var arLy = moment.defineLocale('ar-ly', {\n months: months,\n monthsShort: months,\n weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),\n weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'D/\\u200FM/\\u200FYYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n meridiemParse: /ص|م/,\n isPM: function (input) {\n return 'م' === input;\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'ص';\n } else {\n return 'م';\n }\n },\n calendar: {\n sameDay: '[اليوم عند الساعة] LT',\n nextDay: '[غدًا عند الساعة] LT',\n nextWeek: 'dddd [عند الساعة] LT',\n lastDay: '[أمس عند الساعة] LT',\n lastWeek: 'dddd [عند الساعة] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'بعد %s',\n past: 'منذ %s',\n s: pluralize('s'),\n ss: pluralize('s'),\n m: pluralize('m'),\n mm: pluralize('m'),\n h: pluralize('h'),\n hh: pluralize('h'),\n d: pluralize('d'),\n dd: pluralize('d'),\n M: pluralize('M'),\n MM: pluralize('M'),\n y: pluralize('y'),\n yy: pluralize('y'),\n },\n preparse: function (string) {\n return string.replace(/،/g, ',');\n },\n postformat: function (string) {\n return string\n .replace(/\\d/g, function (match) {\n return symbolMap[match];\n })\n .replace(/,/g, '،');\n },\n week: {\n dow: 6, // Saturday is the first day of the week.\n doy: 12, // The week that contains Jan 12th is the first week of the year.\n },\n });\n\n return arLy;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ar-ly.js\n// module id = 410\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Arabic (Morocco) [ar-ma]\n//! author : ElFadili Yassine : https://github.com/ElFadiliY\n//! author : Abdel Said : https://github.com/abdelsaid\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var arMa = moment.defineLocale('ar-ma', {\n months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(\n '_'\n ),\n monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(\n '_'\n ),\n weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),\n weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[اليوم على الساعة] LT',\n nextDay: '[غدا على الساعة] LT',\n nextWeek: 'dddd [على الساعة] LT',\n lastDay: '[أمس على الساعة] LT',\n lastWeek: 'dddd [على الساعة] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'في %s',\n past: 'منذ %s',\n s: 'ثوان',\n ss: '%d ثانية',\n m: 'دقيقة',\n mm: '%d دقائق',\n h: 'ساعة',\n hh: '%d ساعات',\n d: 'يوم',\n dd: '%d أيام',\n M: 'شهر',\n MM: '%d أشهر',\n y: 'سنة',\n yy: '%d سنوات',\n },\n week: {\n dow: 6, // Saturday is the first day of the week.\n doy: 12, // The week that contains Jan 12th is the first week of the year.\n },\n });\n\n return arMa;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ar-ma.js\n// module id = 411\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Arabic (Saudi Arabia) [ar-sa]\n//! author : Suhail Alkowaileet : https://github.com/xsoh\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '١',\n '2': '٢',\n '3': '٣',\n '4': '٤',\n '5': '٥',\n '6': '٦',\n '7': '٧',\n '8': '٨',\n '9': '٩',\n '0': '٠',\n },\n numberMap = {\n '١': '1',\n '٢': '2',\n '٣': '3',\n '٤': '4',\n '٥': '5',\n '٦': '6',\n '٧': '7',\n '٨': '8',\n '٩': '9',\n '٠': '0',\n };\n\n var arSa = moment.defineLocale('ar-sa', {\n months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(\n '_'\n ),\n monthsShort: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(\n '_'\n ),\n weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),\n weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n meridiemParse: /ص|م/,\n isPM: function (input) {\n return 'م' === input;\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'ص';\n } else {\n return 'م';\n }\n },\n calendar: {\n sameDay: '[اليوم على الساعة] LT',\n nextDay: '[غدا على الساعة] LT',\n nextWeek: 'dddd [على الساعة] LT',\n lastDay: '[أمس على الساعة] LT',\n lastWeek: 'dddd [على الساعة] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'في %s',\n past: 'منذ %s',\n s: 'ثوان',\n ss: '%d ثانية',\n m: 'دقيقة',\n mm: '%d دقائق',\n h: 'ساعة',\n hh: '%d ساعات',\n d: 'يوم',\n dd: '%d أيام',\n M: 'شهر',\n MM: '%d أشهر',\n y: 'سنة',\n yy: '%d سنوات',\n },\n preparse: function (string) {\n return string\n .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {\n return numberMap[match];\n })\n .replace(/،/g, ',');\n },\n postformat: function (string) {\n return string\n .replace(/\\d/g, function (match) {\n return symbolMap[match];\n })\n .replace(/,/g, '،');\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n },\n });\n\n return arSa;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ar-sa.js\n// module id = 412\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Arabic (Tunisia) [ar-tn]\n//! author : Nader Toukabri : https://github.com/naderio\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var arTn = moment.defineLocale('ar-tn', {\n months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(\n '_'\n ),\n monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(\n '_'\n ),\n weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),\n weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[اليوم على الساعة] LT',\n nextDay: '[غدا على الساعة] LT',\n nextWeek: 'dddd [على الساعة] LT',\n lastDay: '[أمس على الساعة] LT',\n lastWeek: 'dddd [على الساعة] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'في %s',\n past: 'منذ %s',\n s: 'ثوان',\n ss: '%d ثانية',\n m: 'دقيقة',\n mm: '%d دقائق',\n h: 'ساعة',\n hh: '%d ساعات',\n d: 'يوم',\n dd: '%d أيام',\n M: 'شهر',\n MM: '%d أشهر',\n y: 'سنة',\n yy: '%d سنوات',\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return arTn;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ar-tn.js\n// module id = 413\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Azerbaijani [az]\n//! author : topchiyev : https://github.com/topchiyev\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var suffixes = {\n 1: '-inci',\n 5: '-inci',\n 8: '-inci',\n 70: '-inci',\n 80: '-inci',\n 2: '-nci',\n 7: '-nci',\n 20: '-nci',\n 50: '-nci',\n 3: '-üncü',\n 4: '-üncü',\n 100: '-üncü',\n 6: '-ncı',\n 9: '-uncu',\n 10: '-uncu',\n 30: '-uncu',\n 60: '-ıncı',\n 90: '-ıncı',\n };\n\n var az = moment.defineLocale('az', {\n months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split(\n '_'\n ),\n monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),\n weekdays: 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split(\n '_'\n ),\n weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),\n weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[bugün saat] LT',\n nextDay: '[sabah saat] LT',\n nextWeek: '[gələn həftə] dddd [saat] LT',\n lastDay: '[dünən] LT',\n lastWeek: '[keçən həftə] dddd [saat] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s sonra',\n past: '%s əvvəl',\n s: 'birneçə saniyə',\n ss: '%d saniyə',\n m: 'bir dəqiqə',\n mm: '%d dəqiqə',\n h: 'bir saat',\n hh: '%d saat',\n d: 'bir gün',\n dd: '%d gün',\n M: 'bir ay',\n MM: '%d ay',\n y: 'bir il',\n yy: '%d il',\n },\n meridiemParse: /gecə|səhər|gündüz|axşam/,\n isPM: function (input) {\n return /^(gündüz|axşam)$/.test(input);\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'gecə';\n } else if (hour < 12) {\n return 'səhər';\n } else if (hour < 17) {\n return 'gündüz';\n } else {\n return 'axşam';\n }\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,\n ordinal: function (number) {\n if (number === 0) {\n // special case for zero\n return number + '-ıncı';\n }\n var a = number % 10,\n b = (number % 100) - a,\n c = number >= 100 ? 100 : null;\n return number + (suffixes[a] || suffixes[b] || suffixes[c]);\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return az;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/az.js\n// module id = 414\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Belarusian [be]\n//! author : Dmitry Demidov : https://github.com/demidov91\n//! author: Praleska: http://praleska.pro/\n//! Author : Menelion Elensúle : https://github.com/Oire\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function plural(word, num) {\n var forms = word.split('_');\n return num % 10 === 1 && num % 100 !== 11\n ? forms[0]\n : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)\n ? forms[1]\n : forms[2];\n }\n function relativeTimeWithPlural(number, withoutSuffix, key) {\n var format = {\n ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',\n mm: withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',\n hh: withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',\n dd: 'дзень_дні_дзён',\n MM: 'месяц_месяцы_месяцаў',\n yy: 'год_гады_гадоў',\n };\n if (key === 'm') {\n return withoutSuffix ? 'хвіліна' : 'хвіліну';\n } else if (key === 'h') {\n return withoutSuffix ? 'гадзіна' : 'гадзіну';\n } else {\n return number + ' ' + plural(format[key], +number);\n }\n }\n\n var be = moment.defineLocale('be', {\n months: {\n format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split(\n '_'\n ),\n standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split(\n '_'\n ),\n },\n monthsShort: 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split(\n '_'\n ),\n weekdays: {\n format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split(\n '_'\n ),\n standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split(\n '_'\n ),\n isFormat: /\\[ ?[Ууў] ?(?:мінулую|наступную)? ?\\] ?dddd/,\n },\n weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),\n weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY г.',\n LLL: 'D MMMM YYYY г., HH:mm',\n LLLL: 'dddd, D MMMM YYYY г., HH:mm',\n },\n calendar: {\n sameDay: '[Сёння ў] LT',\n nextDay: '[Заўтра ў] LT',\n lastDay: '[Учора ў] LT',\n nextWeek: function () {\n return '[У] dddd [ў] LT';\n },\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n case 3:\n case 5:\n case 6:\n return '[У мінулую] dddd [ў] LT';\n case 1:\n case 2:\n case 4:\n return '[У мінулы] dddd [ў] LT';\n }\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'праз %s',\n past: '%s таму',\n s: 'некалькі секунд',\n m: relativeTimeWithPlural,\n mm: relativeTimeWithPlural,\n h: relativeTimeWithPlural,\n hh: relativeTimeWithPlural,\n d: 'дзень',\n dd: relativeTimeWithPlural,\n M: 'месяц',\n MM: relativeTimeWithPlural,\n y: 'год',\n yy: relativeTimeWithPlural,\n },\n meridiemParse: /ночы|раніцы|дня|вечара/,\n isPM: function (input) {\n return /^(дня|вечара)$/.test(input);\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'ночы';\n } else if (hour < 12) {\n return 'раніцы';\n } else if (hour < 17) {\n return 'дня';\n } else {\n return 'вечара';\n }\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(і|ы|га)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'M':\n case 'd':\n case 'DDD':\n case 'w':\n case 'W':\n return (number % 10 === 2 || number % 10 === 3) &&\n number % 100 !== 12 &&\n number % 100 !== 13\n ? number + '-і'\n : number + '-ы';\n case 'D':\n return number + '-га';\n default:\n return number;\n }\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return be;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/be.js\n// module id = 415\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Bulgarian [bg]\n//! author : Krasen Borisov : https://github.com/kraz\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var bg = moment.defineLocale('bg', {\n months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split(\n '_'\n ),\n monthsShort: 'яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),\n weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split(\n '_'\n ),\n weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'),\n weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'D.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY H:mm',\n LLLL: 'dddd, D MMMM YYYY H:mm',\n },\n calendar: {\n sameDay: '[Днес в] LT',\n nextDay: '[Утре в] LT',\n nextWeek: 'dddd [в] LT',\n lastDay: '[Вчера в] LT',\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n case 3:\n case 6:\n return '[Миналата] dddd [в] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[Миналия] dddd [в] LT';\n }\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'след %s',\n past: 'преди %s',\n s: 'няколко секунди',\n ss: '%d секунди',\n m: 'минута',\n mm: '%d минути',\n h: 'час',\n hh: '%d часа',\n d: 'ден',\n dd: '%d дена',\n M: 'месец',\n MM: '%d месеца',\n y: 'година',\n yy: '%d години',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(ев|ен|ти|ви|ри|ми)/,\n ordinal: function (number) {\n var lastDigit = number % 10,\n last2Digits = number % 100;\n if (number === 0) {\n return number + '-ев';\n } else if (last2Digits === 0) {\n return number + '-ен';\n } else if (last2Digits > 10 && last2Digits < 20) {\n return number + '-ти';\n } else if (lastDigit === 1) {\n return number + '-ви';\n } else if (lastDigit === 2) {\n return number + '-ри';\n } else if (lastDigit === 7 || lastDigit === 8) {\n return number + '-ми';\n } else {\n return number + '-ти';\n }\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return bg;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/bg.js\n// module id = 416\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Bambara [bm]\n//! author : Estelle Comment : https://github.com/estellecomment\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var bm = moment.defineLocale('bm', {\n months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split(\n '_'\n ),\n monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),\n weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),\n weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),\n weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'MMMM [tile] D [san] YYYY',\n LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',\n LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',\n },\n calendar: {\n sameDay: '[Bi lɛrɛ] LT',\n nextDay: '[Sini lɛrɛ] LT',\n nextWeek: 'dddd [don lɛrɛ] LT',\n lastDay: '[Kunu lɛrɛ] LT',\n lastWeek: 'dddd [tɛmɛnen lɛrɛ] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s kɔnɔ',\n past: 'a bɛ %s bɔ',\n s: 'sanga dama dama',\n ss: 'sekondi %d',\n m: 'miniti kelen',\n mm: 'miniti %d',\n h: 'lɛrɛ kelen',\n hh: 'lɛrɛ %d',\n d: 'tile kelen',\n dd: 'tile %d',\n M: 'kalo kelen',\n MM: 'kalo %d',\n y: 'san kelen',\n yy: 'san %d',\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return bm;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/bm.js\n// module id = 417\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Bengali [bn]\n//! author : Kaushik Gandhi : https://github.com/kaushikgandhi\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '১',\n '2': '২',\n '3': '৩',\n '4': '৪',\n '5': '৫',\n '6': '৬',\n '7': '৭',\n '8': '৮',\n '9': '৯',\n '0': '০',\n },\n numberMap = {\n '১': '1',\n '২': '2',\n '৩': '3',\n '৪': '4',\n '৫': '5',\n '৬': '6',\n '৭': '7',\n '৮': '8',\n '৯': '9',\n '০': '0',\n };\n\n var bn = moment.defineLocale('bn', {\n months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split(\n '_'\n ),\n monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split(\n '_'\n ),\n weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split(\n '_'\n ),\n weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),\n weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),\n longDateFormat: {\n LT: 'A h:mm সময়',\n LTS: 'A h:mm:ss সময়',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm সময়',\n LLLL: 'dddd, D MMMM YYYY, A h:mm সময়',\n },\n calendar: {\n sameDay: '[আজ] LT',\n nextDay: '[আগামীকাল] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[গতকাল] LT',\n lastWeek: '[গত] dddd, LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s পরে',\n past: '%s আগে',\n s: 'কয়েক সেকেন্ড',\n ss: '%d সেকেন্ড',\n m: 'এক মিনিট',\n mm: '%d মিনিট',\n h: 'এক ঘন্টা',\n hh: '%d ঘন্টা',\n d: 'এক দিন',\n dd: '%d দিন',\n M: 'এক মাস',\n MM: '%d মাস',\n y: 'এক বছর',\n yy: '%d বছর',\n },\n preparse: function (string) {\n return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (\n (meridiem === 'রাত' && hour >= 4) ||\n (meridiem === 'দুপুর' && hour < 5) ||\n meridiem === 'বিকাল'\n ) {\n return hour + 12;\n } else {\n return hour;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'রাত';\n } else if (hour < 10) {\n return 'সকাল';\n } else if (hour < 17) {\n return 'দুপুর';\n } else if (hour < 20) {\n return 'বিকাল';\n } else {\n return 'রাত';\n }\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n },\n });\n\n return bn;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/bn.js\n// module id = 418\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Tibetan [bo]\n//! author : Thupten N. Chakrishar : https://github.com/vajradog\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '༡',\n '2': '༢',\n '3': '༣',\n '4': '༤',\n '5': '༥',\n '6': '༦',\n '7': '༧',\n '8': '༨',\n '9': '༩',\n '0': '༠',\n },\n numberMap = {\n '༡': '1',\n '༢': '2',\n '༣': '3',\n '༤': '4',\n '༥': '5',\n '༦': '6',\n '༧': '7',\n '༨': '8',\n '༩': '9',\n '༠': '0',\n };\n\n var bo = moment.defineLocale('bo', {\n months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split(\n '_'\n ),\n monthsShort: 'ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12'.split(\n '_'\n ),\n monthsShortRegex: /^(ཟླ་\\d{1,2})/,\n monthsParseExact: true,\n weekdays: 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split(\n '_'\n ),\n weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split(\n '_'\n ),\n weekdaysMin: 'ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན'.split('_'),\n longDateFormat: {\n LT: 'A h:mm',\n LTS: 'A h:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm',\n LLLL: 'dddd, D MMMM YYYY, A h:mm',\n },\n calendar: {\n sameDay: '[དི་རིང] LT',\n nextDay: '[སང་ཉིན] LT',\n nextWeek: '[བདུན་ཕྲག་རྗེས་མ], LT',\n lastDay: '[ཁ་སང] LT',\n lastWeek: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s ལ་',\n past: '%s སྔན་ལ',\n s: 'ལམ་སང',\n ss: '%d སྐར་ཆ།',\n m: 'སྐར་མ་གཅིག',\n mm: '%d སྐར་མ',\n h: 'ཆུ་ཚོད་གཅིག',\n hh: '%d ཆུ་ཚོད',\n d: 'ཉིན་གཅིག',\n dd: '%d ཉིན་',\n M: 'ཟླ་བ་གཅིག',\n MM: '%d ཟླ་བ',\n y: 'ལོ་གཅིག',\n yy: '%d ལོ',\n },\n preparse: function (string) {\n return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (\n (meridiem === 'མཚན་མོ' && hour >= 4) ||\n (meridiem === 'ཉིན་གུང' && hour < 5) ||\n meridiem === 'དགོང་དག'\n ) {\n return hour + 12;\n } else {\n return hour;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'མཚན་མོ';\n } else if (hour < 10) {\n return 'ཞོགས་ཀས';\n } else if (hour < 17) {\n return 'ཉིན་གུང';\n } else if (hour < 20) {\n return 'དགོང་དག';\n } else {\n return 'མཚན་མོ';\n }\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n },\n });\n\n return bo;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/bo.js\n// module id = 419\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Breton [br]\n//! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function relativeTimeWithMutation(number, withoutSuffix, key) {\n var format = {\n mm: 'munutenn',\n MM: 'miz',\n dd: 'devezh',\n };\n return number + ' ' + mutation(format[key], number);\n }\n function specialMutationForYears(number) {\n switch (lastNumber(number)) {\n case 1:\n case 3:\n case 4:\n case 5:\n case 9:\n return number + ' bloaz';\n default:\n return number + ' vloaz';\n }\n }\n function lastNumber(number) {\n if (number > 9) {\n return lastNumber(number % 10);\n }\n return number;\n }\n function mutation(text, number) {\n if (number === 2) {\n return softMutation(text);\n }\n return text;\n }\n function softMutation(text) {\n var mutationTable = {\n m: 'v',\n b: 'v',\n d: 'z',\n };\n if (mutationTable[text.charAt(0)] === undefined) {\n return text;\n }\n return mutationTable[text.charAt(0)] + text.substring(1);\n }\n\n var monthsParse = [\n /^gen/i,\n /^c[ʼ\\']hwe/i,\n /^meu/i,\n /^ebr/i,\n /^mae/i,\n /^(mez|eve)/i,\n /^gou/i,\n /^eos/i,\n /^gwe/i,\n /^her/i,\n /^du/i,\n /^ker/i,\n ],\n monthsRegex = /^(genver|c[ʼ\\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,\n monthsStrictRegex = /^(genver|c[ʼ\\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,\n monthsShortStrictRegex = /^(gen|c[ʼ\\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,\n fullWeekdaysParse = [\n /^sul/i,\n /^lun/i,\n /^meurzh/i,\n /^merc[ʼ\\']her/i,\n /^yaou/i,\n /^gwener/i,\n /^sadorn/i,\n ],\n shortWeekdaysParse = [\n /^Sul/i,\n /^Lun/i,\n /^Meu/i,\n /^Mer/i,\n /^Yao/i,\n /^Gwe/i,\n /^Sad/i,\n ],\n minWeekdaysParse = [\n /^Su/i,\n /^Lu/i,\n /^Me([^r]|$)/i,\n /^Mer/i,\n /^Ya/i,\n /^Gw/i,\n /^Sa/i,\n ];\n\n var br = moment.defineLocale('br', {\n months: 'Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split(\n '_'\n ),\n monthsShort: 'Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),\n weekdays: 'Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn'.split('_'),\n weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),\n weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),\n weekdaysParse: minWeekdaysParse,\n fullWeekdaysParse: fullWeekdaysParse,\n shortWeekdaysParse: shortWeekdaysParse,\n minWeekdaysParse: minWeekdaysParse,\n\n monthsRegex: monthsRegex,\n monthsShortRegex: monthsRegex,\n monthsStrictRegex: monthsStrictRegex,\n monthsShortStrictRegex: monthsShortStrictRegex,\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D [a viz] MMMM YYYY',\n LLL: 'D [a viz] MMMM YYYY HH:mm',\n LLLL: 'dddd, D [a viz] MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Hiziv da] LT',\n nextDay: '[Warcʼhoazh da] LT',\n nextWeek: 'dddd [da] LT',\n lastDay: '[Decʼh da] LT',\n lastWeek: 'dddd [paset da] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'a-benn %s',\n past: '%s ʼzo',\n s: 'un nebeud segondennoù',\n ss: '%d eilenn',\n m: 'ur vunutenn',\n mm: relativeTimeWithMutation,\n h: 'un eur',\n hh: '%d eur',\n d: 'un devezh',\n dd: relativeTimeWithMutation,\n M: 'ur miz',\n MM: relativeTimeWithMutation,\n y: 'ur bloaz',\n yy: specialMutationForYears,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(añ|vet)/,\n ordinal: function (number) {\n var output = number === 1 ? 'añ' : 'vet';\n return number + output;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n meridiemParse: /a.m.|g.m./, // goude merenn | a-raok merenn\n isPM: function (token) {\n return token === 'g.m.';\n },\n meridiem: function (hour, minute, isLower) {\n return hour < 12 ? 'a.m.' : 'g.m.';\n },\n });\n\n return br;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/br.js\n// module id = 420\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Bosnian [bs]\n//! author : Nedim Cholich : https://github.com/frontyard\n//! based on (hr) translation by Bojan Marković\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function translate(number, withoutSuffix, key) {\n var result = number + ' ';\n switch (key) {\n case 'ss':\n if (number === 1) {\n result += 'sekunda';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'sekunde';\n } else {\n result += 'sekundi';\n }\n return result;\n case 'm':\n return withoutSuffix ? 'jedna minuta' : 'jedne minute';\n case 'mm':\n if (number === 1) {\n result += 'minuta';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'minute';\n } else {\n result += 'minuta';\n }\n return result;\n case 'h':\n return withoutSuffix ? 'jedan sat' : 'jednog sata';\n case 'hh':\n if (number === 1) {\n result += 'sat';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'sata';\n } else {\n result += 'sati';\n }\n return result;\n case 'dd':\n if (number === 1) {\n result += 'dan';\n } else {\n result += 'dana';\n }\n return result;\n case 'MM':\n if (number === 1) {\n result += 'mjesec';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'mjeseca';\n } else {\n result += 'mjeseci';\n }\n return result;\n case 'yy':\n if (number === 1) {\n result += 'godina';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'godine';\n } else {\n result += 'godina';\n }\n return result;\n }\n }\n\n var bs = moment.defineLocale('bs', {\n months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split(\n '_'\n ),\n monthsShort: 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(\n '_'\n ),\n weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),\n weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY H:mm',\n LLLL: 'dddd, D. MMMM YYYY H:mm',\n },\n calendar: {\n sameDay: '[danas u] LT',\n nextDay: '[sutra u] LT',\n nextWeek: function () {\n switch (this.day()) {\n case 0:\n return '[u] [nedjelju] [u] LT';\n case 3:\n return '[u] [srijedu] [u] LT';\n case 6:\n return '[u] [subotu] [u] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[u] dddd [u] LT';\n }\n },\n lastDay: '[jučer u] LT',\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n case 3:\n return '[prošlu] dddd [u] LT';\n case 6:\n return '[prošle] [subote] [u] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[prošli] dddd [u] LT';\n }\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'za %s',\n past: 'prije %s',\n s: 'par sekundi',\n ss: translate,\n m: translate,\n mm: translate,\n h: translate,\n hh: translate,\n d: 'dan',\n dd: translate,\n M: 'mjesec',\n MM: translate,\n y: 'godinu',\n yy: translate,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return bs;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/bs.js\n// module id = 421\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Catalan [ca]\n//! author : Juan G. Hurtado : https://github.com/juanghurtado\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var ca = moment.defineLocale('ca', {\n months: {\n standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split(\n '_'\n ),\n format: \"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre\".split(\n '_'\n ),\n isFormat: /D[oD]?(\\s)+MMMM/,\n },\n monthsShort: 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split(\n '_'\n ),\n weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),\n weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM [de] YYYY',\n ll: 'D MMM YYYY',\n LLL: 'D MMMM [de] YYYY [a les] H:mm',\n lll: 'D MMM YYYY, H:mm',\n LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm',\n llll: 'ddd D MMM YYYY, H:mm',\n },\n calendar: {\n sameDay: function () {\n return '[avui a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';\n },\n nextDay: function () {\n return '[demà a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';\n },\n nextWeek: function () {\n return 'dddd [a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';\n },\n lastDay: function () {\n return '[ahir a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';\n },\n lastWeek: function () {\n return (\n '[el] dddd [passat a ' +\n (this.hours() !== 1 ? 'les' : 'la') +\n '] LT'\n );\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: \"d'aquí %s\",\n past: 'fa %s',\n s: 'uns segons',\n ss: '%d segons',\n m: 'un minut',\n mm: '%d minuts',\n h: 'una hora',\n hh: '%d hores',\n d: 'un dia',\n dd: '%d dies',\n M: 'un mes',\n MM: '%d mesos',\n y: 'un any',\n yy: '%d anys',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(r|n|t|è|a)/,\n ordinal: function (number, period) {\n var output =\n number === 1\n ? 'r'\n : number === 2\n ? 'n'\n : number === 3\n ? 'r'\n : number === 4\n ? 't'\n : 'è';\n if (period === 'w' || period === 'W') {\n output = 'a';\n }\n return number + output;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return ca;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ca.js\n// module id = 422\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Czech [cs]\n//! author : petrbela : https://github.com/petrbela\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var months = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split(\n '_'\n ),\n monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'),\n monthsParse = [\n /^led/i,\n /^úno/i,\n /^bře/i,\n /^dub/i,\n /^kvě/i,\n /^(čvn|červen$|června)/i,\n /^(čvc|červenec|července)/i,\n /^srp/i,\n /^zář/i,\n /^říj/i,\n /^lis/i,\n /^pro/i,\n ],\n // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.\n // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.\n monthsRegex = /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;\n\n function plural(n) {\n return n > 1 && n < 5 && ~~(n / 10) !== 1;\n }\n function translate(number, withoutSuffix, key, isFuture) {\n var result = number + ' ';\n switch (key) {\n case 's': // a few seconds / in a few seconds / a few seconds ago\n return withoutSuffix || isFuture ? 'pár sekund' : 'pár sekundami';\n case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'sekundy' : 'sekund');\n } else {\n return result + 'sekundami';\n }\n case 'm': // a minute / in a minute / a minute ago\n return withoutSuffix ? 'minuta' : isFuture ? 'minutu' : 'minutou';\n case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'minuty' : 'minut');\n } else {\n return result + 'minutami';\n }\n case 'h': // an hour / in an hour / an hour ago\n return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';\n case 'hh': // 9 hours / in 9 hours / 9 hours ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'hodiny' : 'hodin');\n } else {\n return result + 'hodinami';\n }\n case 'd': // a day / in a day / a day ago\n return withoutSuffix || isFuture ? 'den' : 'dnem';\n case 'dd': // 9 days / in 9 days / 9 days ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'dny' : 'dní');\n } else {\n return result + 'dny';\n }\n case 'M': // a month / in a month / a month ago\n return withoutSuffix || isFuture ? 'měsíc' : 'měsícem';\n case 'MM': // 9 months / in 9 months / 9 months ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'měsíce' : 'měsíců');\n } else {\n return result + 'měsíci';\n }\n case 'y': // a year / in a year / a year ago\n return withoutSuffix || isFuture ? 'rok' : 'rokem';\n case 'yy': // 9 years / in 9 years / 9 years ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'roky' : 'let');\n } else {\n return result + 'lety';\n }\n }\n }\n\n var cs = moment.defineLocale('cs', {\n months: months,\n monthsShort: monthsShort,\n monthsRegex: monthsRegex,\n monthsShortRegex: monthsRegex,\n // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.\n // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.\n monthsStrictRegex: /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,\n monthsShortStrictRegex: /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),\n weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'),\n weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'),\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY H:mm',\n LLLL: 'dddd D. MMMM YYYY H:mm',\n l: 'D. M. YYYY',\n },\n calendar: {\n sameDay: '[dnes v] LT',\n nextDay: '[zítra v] LT',\n nextWeek: function () {\n switch (this.day()) {\n case 0:\n return '[v neděli v] LT';\n case 1:\n case 2:\n return '[v] dddd [v] LT';\n case 3:\n return '[ve středu v] LT';\n case 4:\n return '[ve čtvrtek v] LT';\n case 5:\n return '[v pátek v] LT';\n case 6:\n return '[v sobotu v] LT';\n }\n },\n lastDay: '[včera v] LT',\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n return '[minulou neděli v] LT';\n case 1:\n case 2:\n return '[minulé] dddd [v] LT';\n case 3:\n return '[minulou středu v] LT';\n case 4:\n case 5:\n return '[minulý] dddd [v] LT';\n case 6:\n return '[minulou sobotu v] LT';\n }\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'za %s',\n past: 'před %s',\n s: translate,\n ss: translate,\n m: translate,\n mm: translate,\n h: translate,\n hh: translate,\n d: translate,\n dd: translate,\n M: translate,\n MM: translate,\n y: translate,\n yy: translate,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return cs;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/cs.js\n// module id = 423\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Chuvash [cv]\n//! author : Anatoly Mironov : https://github.com/mirontoli\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var cv = moment.defineLocale('cv', {\n months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split(\n '_'\n ),\n monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),\n weekdays: 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split(\n '_'\n ),\n weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),\n weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD-MM-YYYY',\n LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',\n LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',\n LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',\n },\n calendar: {\n sameDay: '[Паян] LT [сехетре]',\n nextDay: '[Ыран] LT [сехетре]',\n lastDay: '[Ӗнер] LT [сехетре]',\n nextWeek: '[Ҫитес] dddd LT [сехетре]',\n lastWeek: '[Иртнӗ] dddd LT [сехетре]',\n sameElse: 'L',\n },\n relativeTime: {\n future: function (output) {\n var affix = /сехет$/i.exec(output)\n ? 'рен'\n : /ҫул$/i.exec(output)\n ? 'тан'\n : 'ран';\n return output + affix;\n },\n past: '%s каялла',\n s: 'пӗр-ик ҫеккунт',\n ss: '%d ҫеккунт',\n m: 'пӗр минут',\n mm: '%d минут',\n h: 'пӗр сехет',\n hh: '%d сехет',\n d: 'пӗр кун',\n dd: '%d кун',\n M: 'пӗр уйӑх',\n MM: '%d уйӑх',\n y: 'пӗр ҫул',\n yy: '%d ҫул',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-мӗш/,\n ordinal: '%d-мӗш',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return cv;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/cv.js\n// module id = 424\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Welsh [cy]\n//! author : Robert Allen : https://github.com/robgallen\n//! author : https://github.com/ryangreaves\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var cy = moment.defineLocale('cy', {\n months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split(\n '_'\n ),\n monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split(\n '_'\n ),\n weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split(\n '_'\n ),\n weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),\n weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),\n weekdaysParseExact: true,\n // time formats are the same as en-gb\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Heddiw am] LT',\n nextDay: '[Yfory am] LT',\n nextWeek: 'dddd [am] LT',\n lastDay: '[Ddoe am] LT',\n lastWeek: 'dddd [diwethaf am] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'mewn %s',\n past: '%s yn ôl',\n s: 'ychydig eiliadau',\n ss: '%d eiliad',\n m: 'munud',\n mm: '%d munud',\n h: 'awr',\n hh: '%d awr',\n d: 'diwrnod',\n dd: '%d diwrnod',\n M: 'mis',\n MM: '%d mis',\n y: 'blwyddyn',\n yy: '%d flynedd',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,\n // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh\n ordinal: function (number) {\n var b = number,\n output = '',\n lookup = [\n '',\n 'af',\n 'il',\n 'ydd',\n 'ydd',\n 'ed',\n 'ed',\n 'ed',\n 'fed',\n 'fed',\n 'fed', // 1af to 10fed\n 'eg',\n 'fed',\n 'eg',\n 'eg',\n 'fed',\n 'eg',\n 'eg',\n 'fed',\n 'eg',\n 'fed', // 11eg to 20fed\n ];\n if (b > 20) {\n if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {\n output = 'fed'; // not 30ain, 70ain or 90ain\n } else {\n output = 'ain';\n }\n } else if (b > 0) {\n output = lookup[b];\n }\n return number + output;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return cy;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/cy.js\n// module id = 425\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Danish [da]\n//! author : Ulrik Nielsen : https://github.com/mrbase\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var da = moment.defineLocale('da', {\n months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split(\n '_'\n ),\n monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),\n weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),\n weekdaysShort: 'søn_man_tir_ons_tor_fre_lør'.split('_'),\n weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY HH:mm',\n LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm',\n },\n calendar: {\n sameDay: '[i dag kl.] LT',\n nextDay: '[i morgen kl.] LT',\n nextWeek: 'på dddd [kl.] LT',\n lastDay: '[i går kl.] LT',\n lastWeek: '[i] dddd[s kl.] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'om %s',\n past: '%s siden',\n s: 'få sekunder',\n ss: '%d sekunder',\n m: 'et minut',\n mm: '%d minutter',\n h: 'en time',\n hh: '%d timer',\n d: 'en dag',\n dd: '%d dage',\n M: 'en måned',\n MM: '%d måneder',\n y: 'et år',\n yy: '%d år',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return da;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/da.js\n// module id = 426\n// module chunks = 0","//! moment.js locale configuration\n//! locale : German [de]\n//! author : lluchs : https://github.com/lluchs\n//! author: Menelion Elensúle: https://github.com/Oire\n//! author : Mikolaj Dadela : https://github.com/mik01aj\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var format = {\n m: ['eine Minute', 'einer Minute'],\n h: ['eine Stunde', 'einer Stunde'],\n d: ['ein Tag', 'einem Tag'],\n dd: [number + ' Tage', number + ' Tagen'],\n w: ['eine Woche', 'einer Woche'],\n M: ['ein Monat', 'einem Monat'],\n MM: [number + ' Monate', number + ' Monaten'],\n y: ['ein Jahr', 'einem Jahr'],\n yy: [number + ' Jahre', number + ' Jahren'],\n };\n return withoutSuffix ? format[key][0] : format[key][1];\n }\n\n var de = moment.defineLocale('de', {\n months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(\n '_'\n ),\n monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(\n '_'\n ),\n weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),\n weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY HH:mm',\n LLLL: 'dddd, D. MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[heute um] LT [Uhr]',\n sameElse: 'L',\n nextDay: '[morgen um] LT [Uhr]',\n nextWeek: 'dddd [um] LT [Uhr]',\n lastDay: '[gestern um] LT [Uhr]',\n lastWeek: '[letzten] dddd [um] LT [Uhr]',\n },\n relativeTime: {\n future: 'in %s',\n past: 'vor %s',\n s: 'ein paar Sekunden',\n ss: '%d Sekunden',\n m: processRelativeTime,\n mm: '%d Minuten',\n h: processRelativeTime,\n hh: '%d Stunden',\n d: processRelativeTime,\n dd: processRelativeTime,\n w: processRelativeTime,\n ww: '%d Wochen',\n M: processRelativeTime,\n MM: processRelativeTime,\n y: processRelativeTime,\n yy: processRelativeTime,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return de;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/de.js\n// module id = 427\n// module chunks = 0","//! moment.js locale configuration\n//! locale : German (Austria) [de-at]\n//! author : lluchs : https://github.com/lluchs\n//! author: Menelion Elensúle: https://github.com/Oire\n//! author : Martin Groller : https://github.com/MadMG\n//! author : Mikolaj Dadela : https://github.com/mik01aj\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var format = {\n m: ['eine Minute', 'einer Minute'],\n h: ['eine Stunde', 'einer Stunde'],\n d: ['ein Tag', 'einem Tag'],\n dd: [number + ' Tage', number + ' Tagen'],\n w: ['eine Woche', 'einer Woche'],\n M: ['ein Monat', 'einem Monat'],\n MM: [number + ' Monate', number + ' Monaten'],\n y: ['ein Jahr', 'einem Jahr'],\n yy: [number + ' Jahre', number + ' Jahren'],\n };\n return withoutSuffix ? format[key][0] : format[key][1];\n }\n\n var deAt = moment.defineLocale('de-at', {\n months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(\n '_'\n ),\n monthsShort: 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(\n '_'\n ),\n weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),\n weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY HH:mm',\n LLLL: 'dddd, D. MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[heute um] LT [Uhr]',\n sameElse: 'L',\n nextDay: '[morgen um] LT [Uhr]',\n nextWeek: 'dddd [um] LT [Uhr]',\n lastDay: '[gestern um] LT [Uhr]',\n lastWeek: '[letzten] dddd [um] LT [Uhr]',\n },\n relativeTime: {\n future: 'in %s',\n past: 'vor %s',\n s: 'ein paar Sekunden',\n ss: '%d Sekunden',\n m: processRelativeTime,\n mm: '%d Minuten',\n h: processRelativeTime,\n hh: '%d Stunden',\n d: processRelativeTime,\n dd: processRelativeTime,\n w: processRelativeTime,\n ww: '%d Wochen',\n M: processRelativeTime,\n MM: processRelativeTime,\n y: processRelativeTime,\n yy: processRelativeTime,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return deAt;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/de-at.js\n// module id = 428\n// module chunks = 0","//! moment.js locale configuration\n//! locale : German (Switzerland) [de-ch]\n//! author : sschueller : https://github.com/sschueller\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var format = {\n m: ['eine Minute', 'einer Minute'],\n h: ['eine Stunde', 'einer Stunde'],\n d: ['ein Tag', 'einem Tag'],\n dd: [number + ' Tage', number + ' Tagen'],\n w: ['eine Woche', 'einer Woche'],\n M: ['ein Monat', 'einem Monat'],\n MM: [number + ' Monate', number + ' Monaten'],\n y: ['ein Jahr', 'einem Jahr'],\n yy: [number + ' Jahre', number + ' Jahren'],\n };\n return withoutSuffix ? format[key][0] : format[key][1];\n }\n\n var deCh = moment.defineLocale('de-ch', {\n months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(\n '_'\n ),\n monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(\n '_'\n ),\n weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),\n weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY HH:mm',\n LLLL: 'dddd, D. MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[heute um] LT [Uhr]',\n sameElse: 'L',\n nextDay: '[morgen um] LT [Uhr]',\n nextWeek: 'dddd [um] LT [Uhr]',\n lastDay: '[gestern um] LT [Uhr]',\n lastWeek: '[letzten] dddd [um] LT [Uhr]',\n },\n relativeTime: {\n future: 'in %s',\n past: 'vor %s',\n s: 'ein paar Sekunden',\n ss: '%d Sekunden',\n m: processRelativeTime,\n mm: '%d Minuten',\n h: processRelativeTime,\n hh: '%d Stunden',\n d: processRelativeTime,\n dd: processRelativeTime,\n w: processRelativeTime,\n ww: '%d Wochen',\n M: processRelativeTime,\n MM: processRelativeTime,\n y: processRelativeTime,\n yy: processRelativeTime,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return deCh;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/de-ch.js\n// module id = 429\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Maldivian [dv]\n//! author : Jawish Hameed : https://github.com/jawish\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var months = [\n 'ޖެނުއަރީ',\n 'ފެބްރުއަރީ',\n 'މާރިޗު',\n 'އޭޕްރީލު',\n 'މޭ',\n 'ޖޫން',\n 'ޖުލައި',\n 'އޯގަސްޓު',\n 'ސެޕްޓެމްބަރު',\n 'އޮކްޓޯބަރު',\n 'ނޮވެމްބަރު',\n 'ޑިސެމްބަރު',\n ],\n weekdays = [\n 'އާދިއްތަ',\n 'ހޯމަ',\n 'އަންގާރަ',\n 'ބުދަ',\n 'ބުރާސްފަތި',\n 'ހުކުރު',\n 'ހޮނިހިރު',\n ];\n\n var dv = moment.defineLocale('dv', {\n months: months,\n monthsShort: months,\n weekdays: weekdays,\n weekdaysShort: weekdays,\n weekdaysMin: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'D/M/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n meridiemParse: /މކ|މފ/,\n isPM: function (input) {\n return 'މފ' === input;\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'މކ';\n } else {\n return 'މފ';\n }\n },\n calendar: {\n sameDay: '[މިއަދު] LT',\n nextDay: '[މާދަމާ] LT',\n nextWeek: 'dddd LT',\n lastDay: '[އިއްޔެ] LT',\n lastWeek: '[ފާއިތުވި] dddd LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'ތެރޭގައި %s',\n past: 'ކުރިން %s',\n s: 'ސިކުންތުކޮޅެއް',\n ss: 'd% ސިކުންތު',\n m: 'މިނިޓެއް',\n mm: 'މިނިޓު %d',\n h: 'ގަޑިއިރެއް',\n hh: 'ގަޑިއިރު %d',\n d: 'ދުވަހެއް',\n dd: 'ދުވަސް %d',\n M: 'މަހެއް',\n MM: 'މަސް %d',\n y: 'އަހަރެއް',\n yy: 'އަހަރު %d',\n },\n preparse: function (string) {\n return string.replace(/،/g, ',');\n },\n postformat: function (string) {\n return string.replace(/,/g, '،');\n },\n week: {\n dow: 7, // Sunday is the first day of the week.\n doy: 12, // The week that contains Jan 12th is the first week of the year.\n },\n });\n\n return dv;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/dv.js\n// module id = 430\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Greek [el]\n//! author : Aggelos Karalias : https://github.com/mehiel\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function isFunction(input) {\n return (\n (typeof Function !== 'undefined' && input instanceof Function) ||\n Object.prototype.toString.call(input) === '[object Function]'\n );\n }\n\n var el = moment.defineLocale('el', {\n monthsNominativeEl: 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split(\n '_'\n ),\n monthsGenitiveEl: 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split(\n '_'\n ),\n months: function (momentToFormat, format) {\n if (!momentToFormat) {\n return this._monthsNominativeEl;\n } else if (\n typeof format === 'string' &&\n /D/.test(format.substring(0, format.indexOf('MMMM')))\n ) {\n // if there is a day number before 'MMMM'\n return this._monthsGenitiveEl[momentToFormat.month()];\n } else {\n return this._monthsNominativeEl[momentToFormat.month()];\n }\n },\n monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),\n weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split(\n '_'\n ),\n weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),\n weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),\n meridiem: function (hours, minutes, isLower) {\n if (hours > 11) {\n return isLower ? 'μμ' : 'ΜΜ';\n } else {\n return isLower ? 'πμ' : 'ΠΜ';\n }\n },\n isPM: function (input) {\n return (input + '').toLowerCase()[0] === 'μ';\n },\n meridiemParse: /[ΠΜ]\\.?Μ?\\.?/i,\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY h:mm A',\n LLLL: 'dddd, D MMMM YYYY h:mm A',\n },\n calendarEl: {\n sameDay: '[Σήμερα {}] LT',\n nextDay: '[Αύριο {}] LT',\n nextWeek: 'dddd [{}] LT',\n lastDay: '[Χθες {}] LT',\n lastWeek: function () {\n switch (this.day()) {\n case 6:\n return '[το προηγούμενο] dddd [{}] LT';\n default:\n return '[την προηγούμενη] dddd [{}] LT';\n }\n },\n sameElse: 'L',\n },\n calendar: function (key, mom) {\n var output = this._calendarEl[key],\n hours = mom && mom.hours();\n if (isFunction(output)) {\n output = output.apply(mom);\n }\n return output.replace('{}', hours % 12 === 1 ? 'στη' : 'στις');\n },\n relativeTime: {\n future: 'σε %s',\n past: '%s πριν',\n s: 'λίγα δευτερόλεπτα',\n ss: '%d δευτερόλεπτα',\n m: 'ένα λεπτό',\n mm: '%d λεπτά',\n h: 'μία ώρα',\n hh: '%d ώρες',\n d: 'μία μέρα',\n dd: '%d μέρες',\n M: 'ένας μήνας',\n MM: '%d μήνες',\n y: 'ένας χρόνος',\n yy: '%d χρόνια',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}η/,\n ordinal: '%dη',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4st is the first week of the year.\n },\n });\n\n return el;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/el.js\n// module id = 431\n// module chunks = 0","//! moment.js locale configuration\n//! locale : English (Australia) [en-au]\n//! author : Jared Morse : https://github.com/jarcoal\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var enAu = moment.defineLocale('en-au', {\n months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n '_'\n ),\n monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n '_'\n ),\n weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY h:mm A',\n LLLL: 'dddd, D MMMM YYYY h:mm A',\n },\n calendar: {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function (number) {\n var b = number % 10,\n output =\n ~~((number % 100) / 10) === 1\n ? 'th'\n : b === 1\n ? 'st'\n : b === 2\n ? 'nd'\n : b === 3\n ? 'rd'\n : 'th';\n return number + output;\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return enAu;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/en-au.js\n// module id = 432\n// module chunks = 0","//! moment.js locale configuration\n//! locale : English (Canada) [en-ca]\n//! author : Jonathan Abourbih : https://github.com/jonbca\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var enCa = moment.defineLocale('en-ca', {\n months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n '_'\n ),\n monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n '_'\n ),\n weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'YYYY-MM-DD',\n LL: 'MMMM D, YYYY',\n LLL: 'MMMM D, YYYY h:mm A',\n LLLL: 'dddd, MMMM D, YYYY h:mm A',\n },\n calendar: {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function (number) {\n var b = number % 10,\n output =\n ~~((number % 100) / 10) === 1\n ? 'th'\n : b === 1\n ? 'st'\n : b === 2\n ? 'nd'\n : b === 3\n ? 'rd'\n : 'th';\n return number + output;\n },\n });\n\n return enCa;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/en-ca.js\n// module id = 433\n// module chunks = 0","//! moment.js locale configuration\n//! locale : English (United Kingdom) [en-gb]\n//! author : Chris Gedrim : https://github.com/chrisgedrim\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var enGb = moment.defineLocale('en-gb', {\n months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n '_'\n ),\n monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n '_'\n ),\n weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function (number) {\n var b = number % 10,\n output =\n ~~((number % 100) / 10) === 1\n ? 'th'\n : b === 1\n ? 'st'\n : b === 2\n ? 'nd'\n : b === 3\n ? 'rd'\n : 'th';\n return number + output;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return enGb;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/en-gb.js\n// module id = 434\n// module chunks = 0","//! moment.js locale configuration\n//! locale : English (Ireland) [en-ie]\n//! author : Chris Cartlidge : https://github.com/chriscartlidge\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var enIe = moment.defineLocale('en-ie', {\n months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n '_'\n ),\n monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n '_'\n ),\n weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function (number) {\n var b = number % 10,\n output =\n ~~((number % 100) / 10) === 1\n ? 'th'\n : b === 1\n ? 'st'\n : b === 2\n ? 'nd'\n : b === 3\n ? 'rd'\n : 'th';\n return number + output;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return enIe;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/en-ie.js\n// module id = 435\n// module chunks = 0","//! moment.js locale configuration\n//! locale : English (Israel) [en-il]\n//! author : Chris Gedrim : https://github.com/chrisgedrim\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var enIl = moment.defineLocale('en-il', {\n months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n '_'\n ),\n monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n '_'\n ),\n weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function (number) {\n var b = number % 10,\n output =\n ~~((number % 100) / 10) === 1\n ? 'th'\n : b === 1\n ? 'st'\n : b === 2\n ? 'nd'\n : b === 3\n ? 'rd'\n : 'th';\n return number + output;\n },\n });\n\n return enIl;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/en-il.js\n// module id = 436\n// module chunks = 0","//! moment.js locale configuration\n//! locale : English (India) [en-in]\n//! author : Jatin Agrawal : https://github.com/jatinag22\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var enIn = moment.defineLocale('en-in', {\n months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n '_'\n ),\n monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n '_'\n ),\n weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY h:mm A',\n LLLL: 'dddd, D MMMM YYYY h:mm A',\n },\n calendar: {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function (number) {\n var b = number % 10,\n output =\n ~~((number % 100) / 10) === 1\n ? 'th'\n : b === 1\n ? 'st'\n : b === 2\n ? 'nd'\n : b === 3\n ? 'rd'\n : 'th';\n return number + output;\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 1st is the first week of the year.\n },\n });\n\n return enIn;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/en-in.js\n// module id = 437\n// module chunks = 0","//! moment.js locale configuration\n//! locale : English (New Zealand) [en-nz]\n//! author : Luke McGregor : https://github.com/lukemcgregor\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var enNz = moment.defineLocale('en-nz', {\n months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n '_'\n ),\n monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n '_'\n ),\n weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY h:mm A',\n LLLL: 'dddd, D MMMM YYYY h:mm A',\n },\n calendar: {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function (number) {\n var b = number % 10,\n output =\n ~~((number % 100) / 10) === 1\n ? 'th'\n : b === 1\n ? 'st'\n : b === 2\n ? 'nd'\n : b === 3\n ? 'rd'\n : 'th';\n return number + output;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return enNz;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/en-nz.js\n// module id = 438\n// module chunks = 0","//! moment.js locale configuration\n//! locale : English (Singapore) [en-sg]\n//! author : Matthew Castrillon-Madrigal : https://github.com/techdimension\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var enSg = moment.defineLocale('en-sg', {\n months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n '_'\n ),\n monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n '_'\n ),\n weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function (number) {\n var b = number % 10,\n output =\n ~~((number % 100) / 10) === 1\n ? 'th'\n : b === 1\n ? 'st'\n : b === 2\n ? 'nd'\n : b === 3\n ? 'rd'\n : 'th';\n return number + output;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return enSg;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/en-sg.js\n// module id = 439\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Esperanto [eo]\n//! author : Colin Dean : https://github.com/colindean\n//! author : Mia Nordentoft Imperatori : https://github.com/miestasmia\n//! comment : miestasmia corrected the translation by colindean\n//! comment : Vivakvo corrected the translation by colindean and miestasmia\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var eo = moment.defineLocale('eo', {\n months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split(\n '_'\n ),\n monthsShort: 'jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec'.split('_'),\n weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'),\n weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'),\n weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY-MM-DD',\n LL: '[la] D[-an de] MMMM, YYYY',\n LLL: '[la] D[-an de] MMMM, YYYY HH:mm',\n LLLL: 'dddd[n], [la] D[-an de] MMMM, YYYY HH:mm',\n llll: 'ddd, [la] D[-an de] MMM, YYYY HH:mm',\n },\n meridiemParse: /[ap]\\.t\\.m/i,\n isPM: function (input) {\n return input.charAt(0).toLowerCase() === 'p';\n },\n meridiem: function (hours, minutes, isLower) {\n if (hours > 11) {\n return isLower ? 'p.t.m.' : 'P.T.M.';\n } else {\n return isLower ? 'a.t.m.' : 'A.T.M.';\n }\n },\n calendar: {\n sameDay: '[Hodiaŭ je] LT',\n nextDay: '[Morgaŭ je] LT',\n nextWeek: 'dddd[n je] LT',\n lastDay: '[Hieraŭ je] LT',\n lastWeek: '[pasintan] dddd[n je] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'post %s',\n past: 'antaŭ %s',\n s: 'kelkaj sekundoj',\n ss: '%d sekundoj',\n m: 'unu minuto',\n mm: '%d minutoj',\n h: 'unu horo',\n hh: '%d horoj',\n d: 'unu tago', //ne 'diurno', ĉar estas uzita por proksimumo\n dd: '%d tagoj',\n M: 'unu monato',\n MM: '%d monatoj',\n y: 'unu jaro',\n yy: '%d jaroj',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}a/,\n ordinal: '%da',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return eo;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/eo.js\n// module id = 440\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Spanish [es]\n//! author : Julio Napurí : https://github.com/julionc\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(\n '_'\n ),\n monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),\n monthsParse = [\n /^ene/i,\n /^feb/i,\n /^mar/i,\n /^abr/i,\n /^may/i,\n /^jun/i,\n /^jul/i,\n /^ago/i,\n /^sep/i,\n /^oct/i,\n /^nov/i,\n /^dic/i,\n ],\n monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i;\n\n var es = moment.defineLocale('es', {\n months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(\n '_'\n ),\n monthsShort: function (m, format) {\n if (!m) {\n return monthsShortDot;\n } else if (/-MMM-/.test(format)) {\n return monthsShort[m.month()];\n } else {\n return monthsShortDot[m.month()];\n }\n },\n monthsRegex: monthsRegex,\n monthsShortRegex: monthsRegex,\n monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,\n monthsShortStrictRegex: /^(ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i,\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),\n weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),\n weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D [de] MMMM [de] YYYY',\n LLL: 'D [de] MMMM [de] YYYY H:mm',\n LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',\n },\n calendar: {\n sameDay: function () {\n return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n nextDay: function () {\n return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n nextWeek: function () {\n return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n lastDay: function () {\n return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n lastWeek: function () {\n return (\n '[el] dddd [pasado a la' +\n (this.hours() !== 1 ? 's' : '') +\n '] LT'\n );\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'en %s',\n past: 'hace %s',\n s: 'unos segundos',\n ss: '%d segundos',\n m: 'un minuto',\n mm: '%d minutos',\n h: 'una hora',\n hh: '%d horas',\n d: 'un día',\n dd: '%d días',\n M: 'un mes',\n MM: '%d meses',\n y: 'un año',\n yy: '%d años',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n invalidDate: 'Fecha invalida',\n });\n\n return es;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/es.js\n// module id = 441\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Spanish (Dominican Republic) [es-do]\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(\n '_'\n ),\n monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),\n monthsParse = [\n /^ene/i,\n /^feb/i,\n /^mar/i,\n /^abr/i,\n /^may/i,\n /^jun/i,\n /^jul/i,\n /^ago/i,\n /^sep/i,\n /^oct/i,\n /^nov/i,\n /^dic/i,\n ],\n monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i;\n\n var esDo = moment.defineLocale('es-do', {\n months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(\n '_'\n ),\n monthsShort: function (m, format) {\n if (!m) {\n return monthsShortDot;\n } else if (/-MMM-/.test(format)) {\n return monthsShort[m.month()];\n } else {\n return monthsShortDot[m.month()];\n }\n },\n monthsRegex: monthsRegex,\n monthsShortRegex: monthsRegex,\n monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,\n monthsShortStrictRegex: /^(ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i,\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),\n weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),\n weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'DD/MM/YYYY',\n LL: 'D [de] MMMM [de] YYYY',\n LLL: 'D [de] MMMM [de] YYYY h:mm A',\n LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A',\n },\n calendar: {\n sameDay: function () {\n return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n nextDay: function () {\n return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n nextWeek: function () {\n return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n lastDay: function () {\n return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n lastWeek: function () {\n return (\n '[el] dddd [pasado a la' +\n (this.hours() !== 1 ? 's' : '') +\n '] LT'\n );\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'en %s',\n past: 'hace %s',\n s: 'unos segundos',\n ss: '%d segundos',\n m: 'un minuto',\n mm: '%d minutos',\n h: 'una hora',\n hh: '%d horas',\n d: 'un día',\n dd: '%d días',\n M: 'un mes',\n MM: '%d meses',\n y: 'un año',\n yy: '%d años',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return esDo;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/es-do.js\n// module id = 442\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Spanish (United States) [es-us]\n//! author : bustta : https://github.com/bustta\n//! author : chrisrodz : https://github.com/chrisrodz\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(\n '_'\n ),\n monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),\n monthsParse = [\n /^ene/i,\n /^feb/i,\n /^mar/i,\n /^abr/i,\n /^may/i,\n /^jun/i,\n /^jul/i,\n /^ago/i,\n /^sep/i,\n /^oct/i,\n /^nov/i,\n /^dic/i,\n ],\n monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i;\n\n var esUs = moment.defineLocale('es-us', {\n months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(\n '_'\n ),\n monthsShort: function (m, format) {\n if (!m) {\n return monthsShortDot;\n } else if (/-MMM-/.test(format)) {\n return monthsShort[m.month()];\n } else {\n return monthsShortDot[m.month()];\n }\n },\n monthsRegex: monthsRegex,\n monthsShortRegex: monthsRegex,\n monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,\n monthsShortStrictRegex: /^(ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i,\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),\n weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),\n weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'MM/DD/YYYY',\n LL: 'D [de] MMMM [de] YYYY',\n LLL: 'D [de] MMMM [de] YYYY h:mm A',\n LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A',\n },\n calendar: {\n sameDay: function () {\n return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n nextDay: function () {\n return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n nextWeek: function () {\n return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n lastDay: function () {\n return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n lastWeek: function () {\n return (\n '[el] dddd [pasado a la' +\n (this.hours() !== 1 ? 's' : '') +\n '] LT'\n );\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'en %s',\n past: 'hace %s',\n s: 'unos segundos',\n ss: '%d segundos',\n m: 'un minuto',\n mm: '%d minutos',\n h: 'una hora',\n hh: '%d horas',\n d: 'un día',\n dd: '%d días',\n M: 'un mes',\n MM: '%d meses',\n y: 'un año',\n yy: '%d años',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n },\n });\n\n return esUs;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/es-us.js\n// module id = 443\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Estonian [et]\n//! author : Henry Kehlmann : https://github.com/madhenry\n//! improvements : Illimar Tambek : https://github.com/ragulka\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var format = {\n s: ['mõne sekundi', 'mõni sekund', 'paar sekundit'],\n ss: [number + 'sekundi', number + 'sekundit'],\n m: ['ühe minuti', 'üks minut'],\n mm: [number + ' minuti', number + ' minutit'],\n h: ['ühe tunni', 'tund aega', 'üks tund'],\n hh: [number + ' tunni', number + ' tundi'],\n d: ['ühe päeva', 'üks päev'],\n M: ['kuu aja', 'kuu aega', 'üks kuu'],\n MM: [number + ' kuu', number + ' kuud'],\n y: ['ühe aasta', 'aasta', 'üks aasta'],\n yy: [number + ' aasta', number + ' aastat'],\n };\n if (withoutSuffix) {\n return format[key][2] ? format[key][2] : format[key][1];\n }\n return isFuture ? format[key][0] : format[key][1];\n }\n\n var et = moment.defineLocale('et', {\n months: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split(\n '_'\n ),\n monthsShort: 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split(\n '_'\n ),\n weekdays: 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split(\n '_'\n ),\n weekdaysShort: 'P_E_T_K_N_R_L'.split('_'),\n weekdaysMin: 'P_E_T_K_N_R_L'.split('_'),\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY H:mm',\n LLLL: 'dddd, D. MMMM YYYY H:mm',\n },\n calendar: {\n sameDay: '[Täna,] LT',\n nextDay: '[Homme,] LT',\n nextWeek: '[Järgmine] dddd LT',\n lastDay: '[Eile,] LT',\n lastWeek: '[Eelmine] dddd LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s pärast',\n past: '%s tagasi',\n s: processRelativeTime,\n ss: processRelativeTime,\n m: processRelativeTime,\n mm: processRelativeTime,\n h: processRelativeTime,\n hh: processRelativeTime,\n d: processRelativeTime,\n dd: '%d päeva',\n M: processRelativeTime,\n MM: processRelativeTime,\n y: processRelativeTime,\n yy: processRelativeTime,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return et;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/et.js\n// module id = 444\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Basque [eu]\n//! author : Eneko Illarramendi : https://github.com/eillarra\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var eu = moment.defineLocale('eu', {\n months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split(\n '_'\n ),\n monthsShort: 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split(\n '_'\n ),\n weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'),\n weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY-MM-DD',\n LL: 'YYYY[ko] MMMM[ren] D[a]',\n LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm',\n LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',\n l: 'YYYY-M-D',\n ll: 'YYYY[ko] MMM D[a]',\n lll: 'YYYY[ko] MMM D[a] HH:mm',\n llll: 'ddd, YYYY[ko] MMM D[a] HH:mm',\n },\n calendar: {\n sameDay: '[gaur] LT[etan]',\n nextDay: '[bihar] LT[etan]',\n nextWeek: 'dddd LT[etan]',\n lastDay: '[atzo] LT[etan]',\n lastWeek: '[aurreko] dddd LT[etan]',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s barru',\n past: 'duela %s',\n s: 'segundo batzuk',\n ss: '%d segundo',\n m: 'minutu bat',\n mm: '%d minutu',\n h: 'ordu bat',\n hh: '%d ordu',\n d: 'egun bat',\n dd: '%d egun',\n M: 'hilabete bat',\n MM: '%d hilabete',\n y: 'urte bat',\n yy: '%d urte',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return eu;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/eu.js\n// module id = 445\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Persian [fa]\n//! author : Ebrahim Byagowi : https://github.com/ebraminio\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '۱',\n '2': '۲',\n '3': '۳',\n '4': '۴',\n '5': '۵',\n '6': '۶',\n '7': '۷',\n '8': '۸',\n '9': '۹',\n '0': '۰',\n },\n numberMap = {\n '۱': '1',\n '۲': '2',\n '۳': '3',\n '۴': '4',\n '۵': '5',\n '۶': '6',\n '۷': '7',\n '۸': '8',\n '۹': '9',\n '۰': '0',\n };\n\n var fa = moment.defineLocale('fa', {\n months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split(\n '_'\n ),\n monthsShort: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split(\n '_'\n ),\n weekdays: 'یک\\u200cشنبه_دوشنبه_سه\\u200cشنبه_چهارشنبه_پنج\\u200cشنبه_جمعه_شنبه'.split(\n '_'\n ),\n weekdaysShort: 'یک\\u200cشنبه_دوشنبه_سه\\u200cشنبه_چهارشنبه_پنج\\u200cشنبه_جمعه_شنبه'.split(\n '_'\n ),\n weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n meridiemParse: /قبل از ظهر|بعد از ظهر/,\n isPM: function (input) {\n return /بعد از ظهر/.test(input);\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'قبل از ظهر';\n } else {\n return 'بعد از ظهر';\n }\n },\n calendar: {\n sameDay: '[امروز ساعت] LT',\n nextDay: '[فردا ساعت] LT',\n nextWeek: 'dddd [ساعت] LT',\n lastDay: '[دیروز ساعت] LT',\n lastWeek: 'dddd [پیش] [ساعت] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'در %s',\n past: '%s پیش',\n s: 'چند ثانیه',\n ss: '%d ثانیه',\n m: 'یک دقیقه',\n mm: '%d دقیقه',\n h: 'یک ساعت',\n hh: '%d ساعت',\n d: 'یک روز',\n dd: '%d روز',\n M: 'یک ماه',\n MM: '%d ماه',\n y: 'یک سال',\n yy: '%d سال',\n },\n preparse: function (string) {\n return string\n .replace(/[۰-۹]/g, function (match) {\n return numberMap[match];\n })\n .replace(/،/g, ',');\n },\n postformat: function (string) {\n return string\n .replace(/\\d/g, function (match) {\n return symbolMap[match];\n })\n .replace(/,/g, '،');\n },\n dayOfMonthOrdinalParse: /\\d{1,2}م/,\n ordinal: '%dم',\n week: {\n dow: 6, // Saturday is the first day of the week.\n doy: 12, // The week that contains Jan 12th is the first week of the year.\n },\n });\n\n return fa;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/fa.js\n// module id = 446\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Finnish [fi]\n//! author : Tarmo Aidantausta : https://github.com/bleadof\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(\n ' '\n ),\n numbersFuture = [\n 'nolla',\n 'yhden',\n 'kahden',\n 'kolmen',\n 'neljän',\n 'viiden',\n 'kuuden',\n numbersPast[7],\n numbersPast[8],\n numbersPast[9],\n ];\n function translate(number, withoutSuffix, key, isFuture) {\n var result = '';\n switch (key) {\n case 's':\n return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';\n case 'ss':\n result = isFuture ? 'sekunnin' : 'sekuntia';\n break;\n case 'm':\n return isFuture ? 'minuutin' : 'minuutti';\n case 'mm':\n result = isFuture ? 'minuutin' : 'minuuttia';\n break;\n case 'h':\n return isFuture ? 'tunnin' : 'tunti';\n case 'hh':\n result = isFuture ? 'tunnin' : 'tuntia';\n break;\n case 'd':\n return isFuture ? 'päivän' : 'päivä';\n case 'dd':\n result = isFuture ? 'päivän' : 'päivää';\n break;\n case 'M':\n return isFuture ? 'kuukauden' : 'kuukausi';\n case 'MM':\n result = isFuture ? 'kuukauden' : 'kuukautta';\n break;\n case 'y':\n return isFuture ? 'vuoden' : 'vuosi';\n case 'yy':\n result = isFuture ? 'vuoden' : 'vuotta';\n break;\n }\n result = verbalNumber(number, isFuture) + ' ' + result;\n return result;\n }\n function verbalNumber(number, isFuture) {\n return number < 10\n ? isFuture\n ? numbersFuture[number]\n : numbersPast[number]\n : number;\n }\n\n var fi = moment.defineLocale('fi', {\n months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split(\n '_'\n ),\n monthsShort: 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split(\n '_'\n ),\n weekdays: 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split(\n '_'\n ),\n weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'),\n weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'),\n longDateFormat: {\n LT: 'HH.mm',\n LTS: 'HH.mm.ss',\n L: 'DD.MM.YYYY',\n LL: 'Do MMMM[ta] YYYY',\n LLL: 'Do MMMM[ta] YYYY, [klo] HH.mm',\n LLLL: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',\n l: 'D.M.YYYY',\n ll: 'Do MMM YYYY',\n lll: 'Do MMM YYYY, [klo] HH.mm',\n llll: 'ddd, Do MMM YYYY, [klo] HH.mm',\n },\n calendar: {\n sameDay: '[tänään] [klo] LT',\n nextDay: '[huomenna] [klo] LT',\n nextWeek: 'dddd [klo] LT',\n lastDay: '[eilen] [klo] LT',\n lastWeek: '[viime] dddd[na] [klo] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s päästä',\n past: '%s sitten',\n s: translate,\n ss: translate,\n m: translate,\n mm: translate,\n h: translate,\n hh: translate,\n d: translate,\n dd: translate,\n M: translate,\n MM: translate,\n y: translate,\n yy: translate,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return fi;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/fi.js\n// module id = 447\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Filipino [fil]\n//! author : Dan Hagman : https://github.com/hagmandan\n//! author : Matthew Co : https://github.com/matthewdeeco\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var fil = moment.defineLocale('fil', {\n months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split(\n '_'\n ),\n monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),\n weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split(\n '_'\n ),\n weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),\n weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'MM/D/YYYY',\n LL: 'MMMM D, YYYY',\n LLL: 'MMMM D, YYYY HH:mm',\n LLLL: 'dddd, MMMM DD, YYYY HH:mm',\n },\n calendar: {\n sameDay: 'LT [ngayong araw]',\n nextDay: '[Bukas ng] LT',\n nextWeek: 'LT [sa susunod na] dddd',\n lastDay: 'LT [kahapon]',\n lastWeek: 'LT [noong nakaraang] dddd',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'sa loob ng %s',\n past: '%s ang nakalipas',\n s: 'ilang segundo',\n ss: '%d segundo',\n m: 'isang minuto',\n mm: '%d minuto',\n h: 'isang oras',\n hh: '%d oras',\n d: 'isang araw',\n dd: '%d araw',\n M: 'isang buwan',\n MM: '%d buwan',\n y: 'isang taon',\n yy: '%d taon',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}/,\n ordinal: function (number) {\n return number;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return fil;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/fil.js\n// module id = 448\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Faroese [fo]\n//! author : Ragnar Johannesen : https://github.com/ragnar123\n//! author : Kristian Sakarisson : https://github.com/sakarisson\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var fo = moment.defineLocale('fo', {\n months: 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split(\n '_'\n ),\n monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),\n weekdays: 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split(\n '_'\n ),\n weekdaysShort: 'sun_mán_týs_mik_hós_frí_ley'.split('_'),\n weekdaysMin: 'su_má_tý_mi_hó_fr_le'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D. MMMM, YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Í dag kl.] LT',\n nextDay: '[Í morgin kl.] LT',\n nextWeek: 'dddd [kl.] LT',\n lastDay: '[Í gjár kl.] LT',\n lastWeek: '[síðstu] dddd [kl] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'um %s',\n past: '%s síðani',\n s: 'fá sekund',\n ss: '%d sekundir',\n m: 'ein minuttur',\n mm: '%d minuttir',\n h: 'ein tími',\n hh: '%d tímar',\n d: 'ein dagur',\n dd: '%d dagar',\n M: 'ein mánaður',\n MM: '%d mánaðir',\n y: 'eitt ár',\n yy: '%d ár',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return fo;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/fo.js\n// module id = 449\n// module chunks = 0","//! moment.js locale configuration\n//! locale : French [fr]\n//! author : John Fischer : https://github.com/jfroffice\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var monthsStrictRegex = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,\n monthsShortStrictRegex = /(janv\\.?|févr\\.?|mars|avr\\.?|mai|juin|juil\\.?|août|sept\\.?|oct\\.?|nov\\.?|déc\\.?)/i,\n monthsRegex = /(janv\\.?|févr\\.?|mars|avr\\.?|mai|juin|juil\\.?|août|sept\\.?|oct\\.?|nov\\.?|déc\\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,\n monthsParse = [\n /^janv/i,\n /^févr/i,\n /^mars/i,\n /^avr/i,\n /^mai/i,\n /^juin/i,\n /^juil/i,\n /^août/i,\n /^sept/i,\n /^oct/i,\n /^nov/i,\n /^déc/i,\n ];\n\n var fr = moment.defineLocale('fr', {\n months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(\n '_'\n ),\n monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(\n '_'\n ),\n monthsRegex: monthsRegex,\n monthsShortRegex: monthsRegex,\n monthsStrictRegex: monthsStrictRegex,\n monthsShortStrictRegex: monthsShortStrictRegex,\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),\n weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),\n weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Aujourd’hui à] LT',\n nextDay: '[Demain à] LT',\n nextWeek: 'dddd [à] LT',\n lastDay: '[Hier à] LT',\n lastWeek: 'dddd [dernier à] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'dans %s',\n past: 'il y a %s',\n s: 'quelques secondes',\n ss: '%d secondes',\n m: 'une minute',\n mm: '%d minutes',\n h: 'une heure',\n hh: '%d heures',\n d: 'un jour',\n dd: '%d jours',\n M: 'un mois',\n MM: '%d mois',\n y: 'un an',\n yy: '%d ans',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(er|)/,\n ordinal: function (number, period) {\n switch (period) {\n // TODO: Return 'e' when day of month > 1. Move this case inside\n // block for masculine words below.\n // See https://github.com/moment/moment/issues/3375\n case 'D':\n return number + (number === 1 ? 'er' : '');\n\n // Words with masculine grammatical gender: mois, trimestre, jour\n default:\n case 'M':\n case 'Q':\n case 'DDD':\n case 'd':\n return number + (number === 1 ? 'er' : 'e');\n\n // Words with feminine grammatical gender: semaine\n case 'w':\n case 'W':\n return number + (number === 1 ? 're' : 'e');\n }\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return fr;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/fr.js\n// module id = 450\n// module chunks = 0","//! moment.js locale configuration\n//! locale : French (Canada) [fr-ca]\n//! author : Jonathan Abourbih : https://github.com/jonbca\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var frCa = moment.defineLocale('fr-ca', {\n months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(\n '_'\n ),\n monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),\n weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),\n weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY-MM-DD',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Aujourd’hui à] LT',\n nextDay: '[Demain à] LT',\n nextWeek: 'dddd [à] LT',\n lastDay: '[Hier à] LT',\n lastWeek: 'dddd [dernier à] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'dans %s',\n past: 'il y a %s',\n s: 'quelques secondes',\n ss: '%d secondes',\n m: 'une minute',\n mm: '%d minutes',\n h: 'une heure',\n hh: '%d heures',\n d: 'un jour',\n dd: '%d jours',\n M: 'un mois',\n MM: '%d mois',\n y: 'un an',\n yy: '%d ans',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(er|e)/,\n ordinal: function (number, period) {\n switch (period) {\n // Words with masculine grammatical gender: mois, trimestre, jour\n default:\n case 'M':\n case 'Q':\n case 'D':\n case 'DDD':\n case 'd':\n return number + (number === 1 ? 'er' : 'e');\n\n // Words with feminine grammatical gender: semaine\n case 'w':\n case 'W':\n return number + (number === 1 ? 're' : 'e');\n }\n },\n });\n\n return frCa;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/fr-ca.js\n// module id = 451\n// module chunks = 0","//! moment.js locale configuration\n//! locale : French (Switzerland) [fr-ch]\n//! author : Gaspard Bucher : https://github.com/gaspard\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var frCh = moment.defineLocale('fr-ch', {\n months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(\n '_'\n ),\n monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),\n weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),\n weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Aujourd’hui à] LT',\n nextDay: '[Demain à] LT',\n nextWeek: 'dddd [à] LT',\n lastDay: '[Hier à] LT',\n lastWeek: 'dddd [dernier à] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'dans %s',\n past: 'il y a %s',\n s: 'quelques secondes',\n ss: '%d secondes',\n m: 'une minute',\n mm: '%d minutes',\n h: 'une heure',\n hh: '%d heures',\n d: 'un jour',\n dd: '%d jours',\n M: 'un mois',\n MM: '%d mois',\n y: 'un an',\n yy: '%d ans',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(er|e)/,\n ordinal: function (number, period) {\n switch (period) {\n // Words with masculine grammatical gender: mois, trimestre, jour\n default:\n case 'M':\n case 'Q':\n case 'D':\n case 'DDD':\n case 'd':\n return number + (number === 1 ? 'er' : 'e');\n\n // Words with feminine grammatical gender: semaine\n case 'w':\n case 'W':\n return number + (number === 1 ? 're' : 'e');\n }\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return frCh;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/fr-ch.js\n// module id = 452\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Frisian [fy]\n//! author : Robin van der Vliet : https://github.com/robin0van0der0v\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split(\n '_'\n ),\n monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split(\n '_'\n );\n\n var fy = moment.defineLocale('fy', {\n months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split(\n '_'\n ),\n monthsShort: function (m, format) {\n if (!m) {\n return monthsShortWithDots;\n } else if (/-MMM-/.test(format)) {\n return monthsShortWithoutDots[m.month()];\n } else {\n return monthsShortWithDots[m.month()];\n }\n },\n monthsParseExact: true,\n weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split(\n '_'\n ),\n weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'),\n weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD-MM-YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[hjoed om] LT',\n nextDay: '[moarn om] LT',\n nextWeek: 'dddd [om] LT',\n lastDay: '[juster om] LT',\n lastWeek: '[ôfrûne] dddd [om] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'oer %s',\n past: '%s lyn',\n s: 'in pear sekonden',\n ss: '%d sekonden',\n m: 'ien minút',\n mm: '%d minuten',\n h: 'ien oere',\n hh: '%d oeren',\n d: 'ien dei',\n dd: '%d dagen',\n M: 'ien moanne',\n MM: '%d moannen',\n y: 'ien jier',\n yy: '%d jierren',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(ste|de)/,\n ordinal: function (number) {\n return (\n number +\n (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')\n );\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return fy;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/fy.js\n// module id = 453\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Irish or Irish Gaelic [ga]\n//! author : André Silva : https://github.com/askpt\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var months = [\n 'Eanáir',\n 'Feabhra',\n 'Márta',\n 'Aibreán',\n 'Bealtaine',\n 'Meitheamh',\n 'Iúil',\n 'Lúnasa',\n 'Meán Fómhair',\n 'Deireadh Fómhair',\n 'Samhain',\n 'Nollaig',\n ],\n monthsShort = [\n 'Ean',\n 'Feabh',\n 'Márt',\n 'Aib',\n 'Beal',\n 'Meith',\n 'Iúil',\n 'Lún',\n 'M.F.',\n 'D.F.',\n 'Samh',\n 'Noll',\n ],\n weekdays = [\n 'Dé Domhnaigh',\n 'Dé Luain',\n 'Dé Máirt',\n 'Dé Céadaoin',\n 'Déardaoin',\n 'Dé hAoine',\n 'Dé Sathairn',\n ],\n weekdaysShort = ['Domh', 'Luan', 'Máirt', 'Céad', 'Déar', 'Aoine', 'Sath'],\n weekdaysMin = ['Do', 'Lu', 'Má', 'Cé', 'Dé', 'A', 'Sa'];\n\n var ga = moment.defineLocale('ga', {\n months: months,\n monthsShort: monthsShort,\n monthsParseExact: true,\n weekdays: weekdays,\n weekdaysShort: weekdaysShort,\n weekdaysMin: weekdaysMin,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Inniu ag] LT',\n nextDay: '[Amárach ag] LT',\n nextWeek: 'dddd [ag] LT',\n lastDay: '[Inné ag] LT',\n lastWeek: 'dddd [seo caite] [ag] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'i %s',\n past: '%s ó shin',\n s: 'cúpla soicind',\n ss: '%d soicind',\n m: 'nóiméad',\n mm: '%d nóiméad',\n h: 'uair an chloig',\n hh: '%d uair an chloig',\n d: 'lá',\n dd: '%d lá',\n M: 'mí',\n MM: '%d míonna',\n y: 'bliain',\n yy: '%d bliain',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(d|na|mh)/,\n ordinal: function (number) {\n var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';\n return number + output;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return ga;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ga.js\n// module id = 454\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Scottish Gaelic [gd]\n//! author : Jon Ashdown : https://github.com/jonashdown\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var months = [\n 'Am Faoilleach',\n 'An Gearran',\n 'Am Màrt',\n 'An Giblean',\n 'An Cèitean',\n 'An t-Ògmhios',\n 'An t-Iuchar',\n 'An Lùnastal',\n 'An t-Sultain',\n 'An Dàmhair',\n 'An t-Samhain',\n 'An Dùbhlachd',\n ],\n monthsShort = [\n 'Faoi',\n 'Gear',\n 'Màrt',\n 'Gibl',\n 'Cèit',\n 'Ògmh',\n 'Iuch',\n 'Lùn',\n 'Sult',\n 'Dàmh',\n 'Samh',\n 'Dùbh',\n ],\n weekdays = [\n 'Didòmhnaich',\n 'Diluain',\n 'Dimàirt',\n 'Diciadain',\n 'Diardaoin',\n 'Dihaoine',\n 'Disathairne',\n ],\n weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'],\n weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];\n\n var gd = moment.defineLocale('gd', {\n months: months,\n monthsShort: monthsShort,\n monthsParseExact: true,\n weekdays: weekdays,\n weekdaysShort: weekdaysShort,\n weekdaysMin: weekdaysMin,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[An-diugh aig] LT',\n nextDay: '[A-màireach aig] LT',\n nextWeek: 'dddd [aig] LT',\n lastDay: '[An-dè aig] LT',\n lastWeek: 'dddd [seo chaidh] [aig] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'ann an %s',\n past: 'bho chionn %s',\n s: 'beagan diogan',\n ss: '%d diogan',\n m: 'mionaid',\n mm: '%d mionaidean',\n h: 'uair',\n hh: '%d uairean',\n d: 'latha',\n dd: '%d latha',\n M: 'mìos',\n MM: '%d mìosan',\n y: 'bliadhna',\n yy: '%d bliadhna',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(d|na|mh)/,\n ordinal: function (number) {\n var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';\n return number + output;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return gd;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/gd.js\n// module id = 455\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Galician [gl]\n//! author : Juan G. Hurtado : https://github.com/juanghurtado\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var gl = moment.defineLocale('gl', {\n months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split(\n '_'\n ),\n monthsShort: 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),\n weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),\n weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D [de] MMMM [de] YYYY',\n LLL: 'D [de] MMMM [de] YYYY H:mm',\n LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',\n },\n calendar: {\n sameDay: function () {\n return '[hoxe ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';\n },\n nextDay: function () {\n return '[mañá ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';\n },\n nextWeek: function () {\n return 'dddd [' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT';\n },\n lastDay: function () {\n return '[onte ' + (this.hours() !== 1 ? 'á' : 'a') + '] LT';\n },\n lastWeek: function () {\n return (\n '[o] dddd [pasado ' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT'\n );\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: function (str) {\n if (str.indexOf('un') === 0) {\n return 'n' + str;\n }\n return 'en ' + str;\n },\n past: 'hai %s',\n s: 'uns segundos',\n ss: '%d segundos',\n m: 'un minuto',\n mm: '%d minutos',\n h: 'unha hora',\n hh: '%d horas',\n d: 'un día',\n dd: '%d días',\n M: 'un mes',\n MM: '%d meses',\n y: 'un ano',\n yy: '%d anos',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return gl;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/gl.js\n// module id = 456\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Konkani Devanagari script [gom-deva]\n//! author : The Discoverer : https://github.com/WikiDiscoverer\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var format = {\n s: ['थोडया सॅकंडांनी', 'थोडे सॅकंड'],\n ss: [number + ' सॅकंडांनी', number + ' सॅकंड'],\n m: ['एका मिणटान', 'एक मिनूट'],\n mm: [number + ' मिणटांनी', number + ' मिणटां'],\n h: ['एका वरान', 'एक वर'],\n hh: [number + ' वरांनी', number + ' वरां'],\n d: ['एका दिसान', 'एक दीस'],\n dd: [number + ' दिसांनी', number + ' दीस'],\n M: ['एका म्हयन्यान', 'एक म्हयनो'],\n MM: [number + ' म्हयन्यानी', number + ' म्हयने'],\n y: ['एका वर्सान', 'एक वर्स'],\n yy: [number + ' वर्सांनी', number + ' वर्सां'],\n };\n return isFuture ? format[key][0] : format[key][1];\n }\n\n var gomDeva = moment.defineLocale('gom-deva', {\n months: {\n standalone: 'जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(\n '_'\n ),\n format: 'जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या'.split(\n '_'\n ),\n isFormat: /MMMM(\\s)+D[oD]?/,\n },\n monthsShort: 'जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार'.split('_'),\n weekdaysShort: 'आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.'.split('_'),\n weekdaysMin: 'आ_सो_मं_बु_ब्रे_सु_शे'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'A h:mm [वाजतां]',\n LTS: 'A h:mm:ss [वाजतां]',\n L: 'DD-MM-YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY A h:mm [वाजतां]',\n LLLL: 'dddd, MMMM Do, YYYY, A h:mm [वाजतां]',\n llll: 'ddd, D MMM YYYY, A h:mm [वाजतां]',\n },\n calendar: {\n sameDay: '[आयज] LT',\n nextDay: '[फाल्यां] LT',\n nextWeek: '[फुडलो] dddd[,] LT',\n lastDay: '[काल] LT',\n lastWeek: '[फाटलो] dddd[,] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s',\n past: '%s आदीं',\n s: processRelativeTime,\n ss: processRelativeTime,\n m: processRelativeTime,\n mm: processRelativeTime,\n h: processRelativeTime,\n hh: processRelativeTime,\n d: processRelativeTime,\n dd: processRelativeTime,\n M: processRelativeTime,\n MM: processRelativeTime,\n y: processRelativeTime,\n yy: processRelativeTime,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(वेर)/,\n ordinal: function (number, period) {\n switch (period) {\n // the ordinal 'वेर' only applies to day of the month\n case 'D':\n return number + 'वेर';\n default:\n case 'M':\n case 'Q':\n case 'DDD':\n case 'd':\n case 'w':\n case 'W':\n return number;\n }\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n meridiemParse: /राती|सकाळीं|दनपारां|सांजे/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'राती') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'सकाळीं') {\n return hour;\n } else if (meridiem === 'दनपारां') {\n return hour > 12 ? hour : hour + 12;\n } else if (meridiem === 'सांजे') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'राती';\n } else if (hour < 12) {\n return 'सकाळीं';\n } else if (hour < 16) {\n return 'दनपारां';\n } else if (hour < 20) {\n return 'सांजे';\n } else {\n return 'राती';\n }\n },\n });\n\n return gomDeva;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/gom-deva.js\n// module id = 457\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Konkani Latin script [gom-latn]\n//! author : The Discoverer : https://github.com/WikiDiscoverer\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var format = {\n s: ['thoddea sekondamni', 'thodde sekond'],\n ss: [number + ' sekondamni', number + ' sekond'],\n m: ['eka mintan', 'ek minut'],\n mm: [number + ' mintamni', number + ' mintam'],\n h: ['eka voran', 'ek vor'],\n hh: [number + ' voramni', number + ' voram'],\n d: ['eka disan', 'ek dis'],\n dd: [number + ' disamni', number + ' dis'],\n M: ['eka mhoinean', 'ek mhoino'],\n MM: [number + ' mhoineamni', number + ' mhoine'],\n y: ['eka vorsan', 'ek voros'],\n yy: [number + ' vorsamni', number + ' vorsam'],\n };\n return isFuture ? format[key][0] : format[key][1];\n }\n\n var gomLatn = moment.defineLocale('gom-latn', {\n months: {\n standalone: 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split(\n '_'\n ),\n format: 'Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea'.split(\n '_'\n ),\n isFormat: /MMMM(\\s)+D[oD]?/,\n },\n monthsShort: 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: \"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var\".split('_'),\n weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),\n weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'A h:mm [vazta]',\n LTS: 'A h:mm:ss [vazta]',\n L: 'DD-MM-YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY A h:mm [vazta]',\n LLLL: 'dddd, MMMM Do, YYYY, A h:mm [vazta]',\n llll: 'ddd, D MMM YYYY, A h:mm [vazta]',\n },\n calendar: {\n sameDay: '[Aiz] LT',\n nextDay: '[Faleam] LT',\n nextWeek: '[Fuddlo] dddd[,] LT',\n lastDay: '[Kal] LT',\n lastWeek: '[Fattlo] dddd[,] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s',\n past: '%s adim',\n s: processRelativeTime,\n ss: processRelativeTime,\n m: processRelativeTime,\n mm: processRelativeTime,\n h: processRelativeTime,\n hh: processRelativeTime,\n d: processRelativeTime,\n dd: processRelativeTime,\n M: processRelativeTime,\n MM: processRelativeTime,\n y: processRelativeTime,\n yy: processRelativeTime,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(er)/,\n ordinal: function (number, period) {\n switch (period) {\n // the ordinal 'er' only applies to day of the month\n case 'D':\n return number + 'er';\n default:\n case 'M':\n case 'Q':\n case 'DDD':\n case 'd':\n case 'w':\n case 'W':\n return number;\n }\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n meridiemParse: /rati|sokallim|donparam|sanje/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'rati') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'sokallim') {\n return hour;\n } else if (meridiem === 'donparam') {\n return hour > 12 ? hour : hour + 12;\n } else if (meridiem === 'sanje') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'rati';\n } else if (hour < 12) {\n return 'sokallim';\n } else if (hour < 16) {\n return 'donparam';\n } else if (hour < 20) {\n return 'sanje';\n } else {\n return 'rati';\n }\n },\n });\n\n return gomLatn;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/gom-latn.js\n// module id = 458\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Gujarati [gu]\n//! author : Kaushik Thanki : https://github.com/Kaushik1987\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '૧',\n '2': '૨',\n '3': '૩',\n '4': '૪',\n '5': '૫',\n '6': '૬',\n '7': '૭',\n '8': '૮',\n '9': '૯',\n '0': '૦',\n },\n numberMap = {\n '૧': '1',\n '૨': '2',\n '૩': '3',\n '૪': '4',\n '૫': '5',\n '૬': '6',\n '૭': '7',\n '૮': '8',\n '૯': '9',\n '૦': '0',\n };\n\n var gu = moment.defineLocale('gu', {\n months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split(\n '_'\n ),\n monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split(\n '_'\n ),\n weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'),\n weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'),\n longDateFormat: {\n LT: 'A h:mm વાગ્યે',\n LTS: 'A h:mm:ss વાગ્યે',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm વાગ્યે',\n LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે',\n },\n calendar: {\n sameDay: '[આજ] LT',\n nextDay: '[કાલે] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[ગઇકાલે] LT',\n lastWeek: '[પાછલા] dddd, LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s મા',\n past: '%s પહેલા',\n s: 'અમુક પળો',\n ss: '%d સેકંડ',\n m: 'એક મિનિટ',\n mm: '%d મિનિટ',\n h: 'એક કલાક',\n hh: '%d કલાક',\n d: 'એક દિવસ',\n dd: '%d દિવસ',\n M: 'એક મહિનો',\n MM: '%d મહિનો',\n y: 'એક વર્ષ',\n yy: '%d વર્ષ',\n },\n preparse: function (string) {\n return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n // Gujarati notation for meridiems are quite fuzzy in practice. While there exists\n // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati.\n meridiemParse: /રાત|બપોર|સવાર|સાંજ/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'રાત') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'સવાર') {\n return hour;\n } else if (meridiem === 'બપોર') {\n return hour >= 10 ? hour : hour + 12;\n } else if (meridiem === 'સાંજ') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'રાત';\n } else if (hour < 10) {\n return 'સવાર';\n } else if (hour < 17) {\n return 'બપોર';\n } else if (hour < 20) {\n return 'સાંજ';\n } else {\n return 'રાત';\n }\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n },\n });\n\n return gu;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/gu.js\n// module id = 459\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Hebrew [he]\n//! author : Tomer Cohen : https://github.com/tomer\n//! author : Moshe Simantov : https://github.com/DevelopmentIL\n//! author : Tal Ater : https://github.com/TalAter\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var he = moment.defineLocale('he', {\n months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split(\n '_'\n ),\n monthsShort: 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split(\n '_'\n ),\n weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),\n weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),\n weekdaysMin: 'א_ב_ג_ד_ה_ו_ש'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D [ב]MMMM YYYY',\n LLL: 'D [ב]MMMM YYYY HH:mm',\n LLLL: 'dddd, D [ב]MMMM YYYY HH:mm',\n l: 'D/M/YYYY',\n ll: 'D MMM YYYY',\n lll: 'D MMM YYYY HH:mm',\n llll: 'ddd, D MMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[היום ב־]LT',\n nextDay: '[מחר ב־]LT',\n nextWeek: 'dddd [בשעה] LT',\n lastDay: '[אתמול ב־]LT',\n lastWeek: '[ביום] dddd [האחרון בשעה] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'בעוד %s',\n past: 'לפני %s',\n s: 'מספר שניות',\n ss: '%d שניות',\n m: 'דקה',\n mm: '%d דקות',\n h: 'שעה',\n hh: function (number) {\n if (number === 2) {\n return 'שעתיים';\n }\n return number + ' שעות';\n },\n d: 'יום',\n dd: function (number) {\n if (number === 2) {\n return 'יומיים';\n }\n return number + ' ימים';\n },\n M: 'חודש',\n MM: function (number) {\n if (number === 2) {\n return 'חודשיים';\n }\n return number + ' חודשים';\n },\n y: 'שנה',\n yy: function (number) {\n if (number === 2) {\n return 'שנתיים';\n } else if (number % 10 === 0 && number !== 10) {\n return number + ' שנה';\n }\n return number + ' שנים';\n },\n },\n meridiemParse: /אחה\"צ|לפנה\"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,\n isPM: function (input) {\n return /^(אחה\"צ|אחרי הצהריים|בערב)$/.test(input);\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 5) {\n return 'לפנות בוקר';\n } else if (hour < 10) {\n return 'בבוקר';\n } else if (hour < 12) {\n return isLower ? 'לפנה\"צ' : 'לפני הצהריים';\n } else if (hour < 18) {\n return isLower ? 'אחה\"צ' : 'אחרי הצהריים';\n } else {\n return 'בערב';\n }\n },\n });\n\n return he;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/he.js\n// module id = 460\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Hindi [hi]\n//! author : Mayank Singhal : https://github.com/mayanksinghal\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '१',\n '2': '२',\n '3': '३',\n '4': '४',\n '5': '५',\n '6': '६',\n '7': '७',\n '8': '८',\n '9': '९',\n '0': '०',\n },\n numberMap = {\n '१': '1',\n '२': '2',\n '३': '3',\n '४': '4',\n '५': '5',\n '६': '6',\n '७': '7',\n '८': '8',\n '९': '9',\n '०': '0',\n };\n\n var hi = moment.defineLocale('hi', {\n months: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split(\n '_'\n ),\n monthsShort: 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),\n weekdaysShort: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),\n weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),\n longDateFormat: {\n LT: 'A h:mm बजे',\n LTS: 'A h:mm:ss बजे',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm बजे',\n LLLL: 'dddd, D MMMM YYYY, A h:mm बजे',\n },\n calendar: {\n sameDay: '[आज] LT',\n nextDay: '[कल] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[कल] LT',\n lastWeek: '[पिछले] dddd, LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s में',\n past: '%s पहले',\n s: 'कुछ ही क्षण',\n ss: '%d सेकंड',\n m: 'एक मिनट',\n mm: '%d मिनट',\n h: 'एक घंटा',\n hh: '%d घंटे',\n d: 'एक दिन',\n dd: '%d दिन',\n M: 'एक महीने',\n MM: '%d महीने',\n y: 'एक वर्ष',\n yy: '%d वर्ष',\n },\n preparse: function (string) {\n return string.replace(/[१२३४५६७८९०]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n // Hindi notation for meridiems are quite fuzzy in practice. While there exists\n // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.\n meridiemParse: /रात|सुबह|दोपहर|शाम/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'रात') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'सुबह') {\n return hour;\n } else if (meridiem === 'दोपहर') {\n return hour >= 10 ? hour : hour + 12;\n } else if (meridiem === 'शाम') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'रात';\n } else if (hour < 10) {\n return 'सुबह';\n } else if (hour < 17) {\n return 'दोपहर';\n } else if (hour < 20) {\n return 'शाम';\n } else {\n return 'रात';\n }\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n },\n });\n\n return hi;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/hi.js\n// module id = 461\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Croatian [hr]\n//! author : Bojan Marković : https://github.com/bmarkovic\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function translate(number, withoutSuffix, key) {\n var result = number + ' ';\n switch (key) {\n case 'ss':\n if (number === 1) {\n result += 'sekunda';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'sekunde';\n } else {\n result += 'sekundi';\n }\n return result;\n case 'm':\n return withoutSuffix ? 'jedna minuta' : 'jedne minute';\n case 'mm':\n if (number === 1) {\n result += 'minuta';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'minute';\n } else {\n result += 'minuta';\n }\n return result;\n case 'h':\n return withoutSuffix ? 'jedan sat' : 'jednog sata';\n case 'hh':\n if (number === 1) {\n result += 'sat';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'sata';\n } else {\n result += 'sati';\n }\n return result;\n case 'dd':\n if (number === 1) {\n result += 'dan';\n } else {\n result += 'dana';\n }\n return result;\n case 'MM':\n if (number === 1) {\n result += 'mjesec';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'mjeseca';\n } else {\n result += 'mjeseci';\n }\n return result;\n case 'yy':\n if (number === 1) {\n result += 'godina';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'godine';\n } else {\n result += 'godina';\n }\n return result;\n }\n }\n\n var hr = moment.defineLocale('hr', {\n months: {\n format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split(\n '_'\n ),\n standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split(\n '_'\n ),\n },\n monthsShort: 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(\n '_'\n ),\n weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),\n weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'Do MMMM YYYY',\n LLL: 'Do MMMM YYYY H:mm',\n LLLL: 'dddd, Do MMMM YYYY H:mm',\n },\n calendar: {\n sameDay: '[danas u] LT',\n nextDay: '[sutra u] LT',\n nextWeek: function () {\n switch (this.day()) {\n case 0:\n return '[u] [nedjelju] [u] LT';\n case 3:\n return '[u] [srijedu] [u] LT';\n case 6:\n return '[u] [subotu] [u] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[u] dddd [u] LT';\n }\n },\n lastDay: '[jučer u] LT',\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n return '[prošlu] [nedjelju] [u] LT';\n case 3:\n return '[prošlu] [srijedu] [u] LT';\n case 6:\n return '[prošle] [subote] [u] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[prošli] dddd [u] LT';\n }\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'za %s',\n past: 'prije %s',\n s: 'par sekundi',\n ss: translate,\n m: translate,\n mm: translate,\n h: translate,\n hh: translate,\n d: 'dan',\n dd: translate,\n M: 'mjesec',\n MM: translate,\n y: 'godinu',\n yy: translate,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return hr;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/hr.js\n// module id = 462\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Hungarian [hu]\n//! author : Adam Brunner : https://github.com/adambrunner\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(\n ' '\n );\n function translate(number, withoutSuffix, key, isFuture) {\n var num = number;\n switch (key) {\n case 's':\n return isFuture || withoutSuffix\n ? 'néhány másodperc'\n : 'néhány másodperce';\n case 'ss':\n return num + (isFuture || withoutSuffix)\n ? ' másodperc'\n : ' másodperce';\n case 'm':\n return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');\n case 'mm':\n return num + (isFuture || withoutSuffix ? ' perc' : ' perce');\n case 'h':\n return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');\n case 'hh':\n return num + (isFuture || withoutSuffix ? ' óra' : ' órája');\n case 'd':\n return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');\n case 'dd':\n return num + (isFuture || withoutSuffix ? ' nap' : ' napja');\n case 'M':\n return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');\n case 'MM':\n return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');\n case 'y':\n return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');\n case 'yy':\n return num + (isFuture || withoutSuffix ? ' év' : ' éve');\n }\n return '';\n }\n function week(isFuture) {\n return (\n (isFuture ? '' : '[múlt] ') +\n '[' +\n weekEndings[this.day()] +\n '] LT[-kor]'\n );\n }\n\n var hu = moment.defineLocale('hu', {\n months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split(\n '_'\n ),\n monthsShort: 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split(\n '_'\n ),\n weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),\n weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),\n weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'),\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'YYYY.MM.DD.',\n LL: 'YYYY. MMMM D.',\n LLL: 'YYYY. MMMM D. H:mm',\n LLLL: 'YYYY. MMMM D., dddd H:mm',\n },\n meridiemParse: /de|du/i,\n isPM: function (input) {\n return input.charAt(1).toLowerCase() === 'u';\n },\n meridiem: function (hours, minutes, isLower) {\n if (hours < 12) {\n return isLower === true ? 'de' : 'DE';\n } else {\n return isLower === true ? 'du' : 'DU';\n }\n },\n calendar: {\n sameDay: '[ma] LT[-kor]',\n nextDay: '[holnap] LT[-kor]',\n nextWeek: function () {\n return week.call(this, true);\n },\n lastDay: '[tegnap] LT[-kor]',\n lastWeek: function () {\n return week.call(this, false);\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s múlva',\n past: '%s',\n s: translate,\n ss: translate,\n m: translate,\n mm: translate,\n h: translate,\n hh: translate,\n d: translate,\n dd: translate,\n M: translate,\n MM: translate,\n y: translate,\n yy: translate,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return hu;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/hu.js\n// module id = 463\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Armenian [hy-am]\n//! author : Armendarabyan : https://github.com/armendarabyan\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var hyAm = moment.defineLocale('hy-am', {\n months: {\n format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split(\n '_'\n ),\n standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split(\n '_'\n ),\n },\n monthsShort: 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),\n weekdays: 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split(\n '_'\n ),\n weekdaysShort: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),\n weekdaysMin: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY թ.',\n LLL: 'D MMMM YYYY թ., HH:mm',\n LLLL: 'dddd, D MMMM YYYY թ., HH:mm',\n },\n calendar: {\n sameDay: '[այսօր] LT',\n nextDay: '[վաղը] LT',\n lastDay: '[երեկ] LT',\n nextWeek: function () {\n return 'dddd [օրը ժամը] LT';\n },\n lastWeek: function () {\n return '[անցած] dddd [օրը ժամը] LT';\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s հետո',\n past: '%s առաջ',\n s: 'մի քանի վայրկյան',\n ss: '%d վայրկյան',\n m: 'րոպե',\n mm: '%d րոպե',\n h: 'ժամ',\n hh: '%d ժամ',\n d: 'օր',\n dd: '%d օր',\n M: 'ամիս',\n MM: '%d ամիս',\n y: 'տարի',\n yy: '%d տարի',\n },\n meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,\n isPM: function (input) {\n return /^(ցերեկվա|երեկոյան)$/.test(input);\n },\n meridiem: function (hour) {\n if (hour < 4) {\n return 'գիշերվա';\n } else if (hour < 12) {\n return 'առավոտվա';\n } else if (hour < 17) {\n return 'ցերեկվա';\n } else {\n return 'երեկոյան';\n }\n },\n dayOfMonthOrdinalParse: /\\d{1,2}|\\d{1,2}-(ին|րդ)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'DDD':\n case 'w':\n case 'W':\n case 'DDDo':\n if (number === 1) {\n return number + '-ին';\n }\n return number + '-րդ';\n default:\n return number;\n }\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return hyAm;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/hy-am.js\n// module id = 464\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Indonesian [id]\n//! author : Mohammad Satrio Utomo : https://github.com/tyok\n//! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var id = moment.defineLocale('id', {\n months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split(\n '_'\n ),\n monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'),\n weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),\n weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),\n weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),\n longDateFormat: {\n LT: 'HH.mm',\n LTS: 'HH.mm.ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY [pukul] HH.mm',\n LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',\n },\n meridiemParse: /pagi|siang|sore|malam/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'pagi') {\n return hour;\n } else if (meridiem === 'siang') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === 'sore' || meridiem === 'malam') {\n return hour + 12;\n }\n },\n meridiem: function (hours, minutes, isLower) {\n if (hours < 11) {\n return 'pagi';\n } else if (hours < 15) {\n return 'siang';\n } else if (hours < 19) {\n return 'sore';\n } else {\n return 'malam';\n }\n },\n calendar: {\n sameDay: '[Hari ini pukul] LT',\n nextDay: '[Besok pukul] LT',\n nextWeek: 'dddd [pukul] LT',\n lastDay: '[Kemarin pukul] LT',\n lastWeek: 'dddd [lalu pukul] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'dalam %s',\n past: '%s yang lalu',\n s: 'beberapa detik',\n ss: '%d detik',\n m: 'semenit',\n mm: '%d menit',\n h: 'sejam',\n hh: '%d jam',\n d: 'sehari',\n dd: '%d hari',\n M: 'sebulan',\n MM: '%d bulan',\n y: 'setahun',\n yy: '%d tahun',\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n },\n });\n\n return id;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/id.js\n// module id = 465\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Icelandic [is]\n//! author : Hinrik Örn Sigurðsson : https://github.com/hinrik\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function plural(n) {\n if (n % 100 === 11) {\n return true;\n } else if (n % 10 === 1) {\n return false;\n }\n return true;\n }\n function translate(number, withoutSuffix, key, isFuture) {\n var result = number + ' ';\n switch (key) {\n case 's':\n return withoutSuffix || isFuture\n ? 'nokkrar sekúndur'\n : 'nokkrum sekúndum';\n case 'ss':\n if (plural(number)) {\n return (\n result +\n (withoutSuffix || isFuture ? 'sekúndur' : 'sekúndum')\n );\n }\n return result + 'sekúnda';\n case 'm':\n return withoutSuffix ? 'mínúta' : 'mínútu';\n case 'mm':\n if (plural(number)) {\n return (\n result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum')\n );\n } else if (withoutSuffix) {\n return result + 'mínúta';\n }\n return result + 'mínútu';\n case 'hh':\n if (plural(number)) {\n return (\n result +\n (withoutSuffix || isFuture\n ? 'klukkustundir'\n : 'klukkustundum')\n );\n }\n return result + 'klukkustund';\n case 'd':\n if (withoutSuffix) {\n return 'dagur';\n }\n return isFuture ? 'dag' : 'degi';\n case 'dd':\n if (plural(number)) {\n if (withoutSuffix) {\n return result + 'dagar';\n }\n return result + (isFuture ? 'daga' : 'dögum');\n } else if (withoutSuffix) {\n return result + 'dagur';\n }\n return result + (isFuture ? 'dag' : 'degi');\n case 'M':\n if (withoutSuffix) {\n return 'mánuður';\n }\n return isFuture ? 'mánuð' : 'mánuði';\n case 'MM':\n if (plural(number)) {\n if (withoutSuffix) {\n return result + 'mánuðir';\n }\n return result + (isFuture ? 'mánuði' : 'mánuðum');\n } else if (withoutSuffix) {\n return result + 'mánuður';\n }\n return result + (isFuture ? 'mánuð' : 'mánuði');\n case 'y':\n return withoutSuffix || isFuture ? 'ár' : 'ári';\n case 'yy':\n if (plural(number)) {\n return result + (withoutSuffix || isFuture ? 'ár' : 'árum');\n }\n return result + (withoutSuffix || isFuture ? 'ár' : 'ári');\n }\n }\n\n var is = moment.defineLocale('is', {\n months: 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split(\n '_'\n ),\n monthsShort: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),\n weekdays: 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split(\n '_'\n ),\n weekdaysShort: 'sun_mán_þri_mið_fim_fös_lau'.split('_'),\n weekdaysMin: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY [kl.] H:mm',\n LLLL: 'dddd, D. MMMM YYYY [kl.] H:mm',\n },\n calendar: {\n sameDay: '[í dag kl.] LT',\n nextDay: '[á morgun kl.] LT',\n nextWeek: 'dddd [kl.] LT',\n lastDay: '[í gær kl.] LT',\n lastWeek: '[síðasta] dddd [kl.] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'eftir %s',\n past: 'fyrir %s síðan',\n s: translate,\n ss: translate,\n m: translate,\n mm: translate,\n h: 'klukkustund',\n hh: translate,\n d: translate,\n dd: translate,\n M: translate,\n MM: translate,\n y: translate,\n yy: translate,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return is;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/is.js\n// module id = 466\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Italian [it]\n//! author : Lorenzo : https://github.com/aliem\n//! author: Mattia Larentis: https://github.com/nostalgiaz\n//! author: Marco : https://github.com/Manfre98\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var it = moment.defineLocale('it', {\n months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split(\n '_'\n ),\n monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),\n weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split(\n '_'\n ),\n weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),\n weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: function () {\n return (\n '[Oggi a' +\n (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : \"ll'\") +\n ']LT'\n );\n },\n nextDay: function () {\n return (\n '[Domani a' +\n (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : \"ll'\") +\n ']LT'\n );\n },\n nextWeek: function () {\n return (\n 'dddd [a' +\n (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : \"ll'\") +\n ']LT'\n );\n },\n lastDay: function () {\n return (\n '[Ieri a' +\n (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : \"ll'\") +\n ']LT'\n );\n },\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n return (\n '[La scorsa] dddd [a' +\n (this.hours() > 1\n ? 'lle '\n : this.hours() === 0\n ? ' '\n : \"ll'\") +\n ']LT'\n );\n default:\n return (\n '[Lo scorso] dddd [a' +\n (this.hours() > 1\n ? 'lle '\n : this.hours() === 0\n ? ' '\n : \"ll'\") +\n ']LT'\n );\n }\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'tra %s',\n past: '%s fa',\n s: 'alcuni secondi',\n ss: '%d secondi',\n m: 'un minuto',\n mm: '%d minuti',\n h: \"un'ora\",\n hh: '%d ore',\n d: 'un giorno',\n dd: '%d giorni',\n M: 'un mese',\n MM: '%d mesi',\n y: 'un anno',\n yy: '%d anni',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return it;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/it.js\n// module id = 467\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Italian (Switzerland) [it-ch]\n//! author : xfh : https://github.com/xfh\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var itCh = moment.defineLocale('it-ch', {\n months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split(\n '_'\n ),\n monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),\n weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split(\n '_'\n ),\n weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),\n weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Oggi alle] LT',\n nextDay: '[Domani alle] LT',\n nextWeek: 'dddd [alle] LT',\n lastDay: '[Ieri alle] LT',\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n return '[la scorsa] dddd [alle] LT';\n default:\n return '[lo scorso] dddd [alle] LT';\n }\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: function (s) {\n return (/^[0-9].+$/.test(s) ? 'tra' : 'in') + ' ' + s;\n },\n past: '%s fa',\n s: 'alcuni secondi',\n ss: '%d secondi',\n m: 'un minuto',\n mm: '%d minuti',\n h: \"un'ora\",\n hh: '%d ore',\n d: 'un giorno',\n dd: '%d giorni',\n M: 'un mese',\n MM: '%d mesi',\n y: 'un anno',\n yy: '%d anni',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return itCh;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/it-ch.js\n// module id = 468\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Japanese [ja]\n//! author : LI Long : https://github.com/baryon\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var ja = moment.defineLocale('ja', {\n eras: [\n {\n since: '2019-05-01',\n offset: 1,\n name: '令和',\n narrow: '㋿',\n abbr: 'R',\n },\n {\n since: '1989-01-08',\n until: '2019-04-30',\n offset: 1,\n name: '平成',\n narrow: '㍻',\n abbr: 'H',\n },\n {\n since: '1926-12-25',\n until: '1989-01-07',\n offset: 1,\n name: '昭和',\n narrow: '㍼',\n abbr: 'S',\n },\n {\n since: '1912-07-30',\n until: '1926-12-24',\n offset: 1,\n name: '大正',\n narrow: '㍽',\n abbr: 'T',\n },\n {\n since: '1873-01-01',\n until: '1912-07-29',\n offset: 6,\n name: '明治',\n narrow: '㍾',\n abbr: 'M',\n },\n {\n since: '0001-01-01',\n until: '1873-12-31',\n offset: 1,\n name: '西暦',\n narrow: 'AD',\n abbr: 'AD',\n },\n {\n since: '0000-12-31',\n until: -Infinity,\n offset: 1,\n name: '紀元前',\n narrow: 'BC',\n abbr: 'BC',\n },\n ],\n eraYearOrdinalRegex: /(元|\\d+)年/,\n eraYearOrdinalParse: function (input, match) {\n return match[1] === '元' ? 1 : parseInt(match[1] || input, 10);\n },\n months: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),\n monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(\n '_'\n ),\n weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),\n weekdaysShort: '日_月_火_水_木_金_土'.split('_'),\n weekdaysMin: '日_月_火_水_木_金_土'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY/MM/DD',\n LL: 'YYYY年M月D日',\n LLL: 'YYYY年M月D日 HH:mm',\n LLLL: 'YYYY年M月D日 dddd HH:mm',\n l: 'YYYY/MM/DD',\n ll: 'YYYY年M月D日',\n lll: 'YYYY年M月D日 HH:mm',\n llll: 'YYYY年M月D日(ddd) HH:mm',\n },\n meridiemParse: /午前|午後/i,\n isPM: function (input) {\n return input === '午後';\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return '午前';\n } else {\n return '午後';\n }\n },\n calendar: {\n sameDay: '[今日] LT',\n nextDay: '[明日] LT',\n nextWeek: function (now) {\n if (now.week() !== this.week()) {\n return '[来週]dddd LT';\n } else {\n return 'dddd LT';\n }\n },\n lastDay: '[昨日] LT',\n lastWeek: function (now) {\n if (this.week() !== now.week()) {\n return '[先週]dddd LT';\n } else {\n return 'dddd LT';\n }\n },\n sameElse: 'L',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}日/,\n ordinal: function (number, period) {\n switch (period) {\n case 'y':\n return number === 1 ? '元年' : number + '年';\n case 'd':\n case 'D':\n case 'DDD':\n return number + '日';\n default:\n return number;\n }\n },\n relativeTime: {\n future: '%s後',\n past: '%s前',\n s: '数秒',\n ss: '%d秒',\n m: '1分',\n mm: '%d分',\n h: '1時間',\n hh: '%d時間',\n d: '1日',\n dd: '%d日',\n M: '1ヶ月',\n MM: '%dヶ月',\n y: '1年',\n yy: '%d年',\n },\n });\n\n return ja;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ja.js\n// module id = 469\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Javanese [jv]\n//! author : Rony Lantip : https://github.com/lantip\n//! reference: http://jv.wikipedia.org/wiki/Basa_Jawa\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var jv = moment.defineLocale('jv', {\n months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split(\n '_'\n ),\n monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),\n weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),\n weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),\n weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),\n longDateFormat: {\n LT: 'HH.mm',\n LTS: 'HH.mm.ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY [pukul] HH.mm',\n LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',\n },\n meridiemParse: /enjing|siyang|sonten|ndalu/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'enjing') {\n return hour;\n } else if (meridiem === 'siyang') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === 'sonten' || meridiem === 'ndalu') {\n return hour + 12;\n }\n },\n meridiem: function (hours, minutes, isLower) {\n if (hours < 11) {\n return 'enjing';\n } else if (hours < 15) {\n return 'siyang';\n } else if (hours < 19) {\n return 'sonten';\n } else {\n return 'ndalu';\n }\n },\n calendar: {\n sameDay: '[Dinten puniko pukul] LT',\n nextDay: '[Mbenjang pukul] LT',\n nextWeek: 'dddd [pukul] LT',\n lastDay: '[Kala wingi pukul] LT',\n lastWeek: 'dddd [kepengker pukul] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'wonten ing %s',\n past: '%s ingkang kepengker',\n s: 'sawetawis detik',\n ss: '%d detik',\n m: 'setunggal menit',\n mm: '%d menit',\n h: 'setunggal jam',\n hh: '%d jam',\n d: 'sedinten',\n dd: '%d dinten',\n M: 'sewulan',\n MM: '%d wulan',\n y: 'setaun',\n yy: '%d taun',\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return jv;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/jv.js\n// module id = 470\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Georgian [ka]\n//! author : Irakli Janiashvili : https://github.com/IrakliJani\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var ka = moment.defineLocale('ka', {\n months: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split(\n '_'\n ),\n monthsShort: 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),\n weekdays: {\n standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split(\n '_'\n ),\n format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split(\n '_'\n ),\n isFormat: /(წინა|შემდეგ)/,\n },\n weekdaysShort: 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),\n weekdaysMin: 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[დღეს] LT[-ზე]',\n nextDay: '[ხვალ] LT[-ზე]',\n lastDay: '[გუშინ] LT[-ზე]',\n nextWeek: '[შემდეგ] dddd LT[-ზე]',\n lastWeek: '[წინა] dddd LT-ზე',\n sameElse: 'L',\n },\n relativeTime: {\n future: function (s) {\n return s.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/, function (\n $0,\n $1,\n $2\n ) {\n return $2 === 'ი' ? $1 + 'ში' : $1 + $2 + 'ში';\n });\n },\n past: function (s) {\n if (/(წამი|წუთი|საათი|დღე|თვე)/.test(s)) {\n return s.replace(/(ი|ე)$/, 'ის წინ');\n }\n if (/წელი/.test(s)) {\n return s.replace(/წელი$/, 'წლის წინ');\n }\n return s;\n },\n s: 'რამდენიმე წამი',\n ss: '%d წამი',\n m: 'წუთი',\n mm: '%d წუთი',\n h: 'საათი',\n hh: '%d საათი',\n d: 'დღე',\n dd: '%d დღე',\n M: 'თვე',\n MM: '%d თვე',\n y: 'წელი',\n yy: '%d წელი',\n },\n dayOfMonthOrdinalParse: /0|1-ლი|მე-\\d{1,2}|\\d{1,2}-ე/,\n ordinal: function (number) {\n if (number === 0) {\n return number;\n }\n if (number === 1) {\n return number + '-ლი';\n }\n if (\n number < 20 ||\n (number <= 100 && number % 20 === 0) ||\n number % 100 === 0\n ) {\n return 'მე-' + number;\n }\n return number + '-ე';\n },\n week: {\n dow: 1,\n doy: 7,\n },\n });\n\n return ka;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ka.js\n// module id = 471\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Kazakh [kk]\n//! authors : Nurlan Rakhimzhanov : https://github.com/nurlan\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var suffixes = {\n 0: '-ші',\n 1: '-ші',\n 2: '-ші',\n 3: '-ші',\n 4: '-ші',\n 5: '-ші',\n 6: '-шы',\n 7: '-ші',\n 8: '-ші',\n 9: '-шы',\n 10: '-шы',\n 20: '-шы',\n 30: '-шы',\n 40: '-шы',\n 50: '-ші',\n 60: '-шы',\n 70: '-ші',\n 80: '-ші',\n 90: '-шы',\n 100: '-ші',\n };\n\n var kk = moment.defineLocale('kk', {\n months: 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split(\n '_'\n ),\n monthsShort: 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),\n weekdays: 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split(\n '_'\n ),\n weekdaysShort: 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),\n weekdaysMin: 'жк_дй_сй_ср_бй_жм_сн'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Бүгін сағат] LT',\n nextDay: '[Ертең сағат] LT',\n nextWeek: 'dddd [сағат] LT',\n lastDay: '[Кеше сағат] LT',\n lastWeek: '[Өткен аптаның] dddd [сағат] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s ішінде',\n past: '%s бұрын',\n s: 'бірнеше секунд',\n ss: '%d секунд',\n m: 'бір минут',\n mm: '%d минут',\n h: 'бір сағат',\n hh: '%d сағат',\n d: 'бір күн',\n dd: '%d күн',\n M: 'бір ай',\n MM: '%d ай',\n y: 'бір жыл',\n yy: '%d жыл',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(ші|шы)/,\n ordinal: function (number) {\n var a = number % 10,\n b = number >= 100 ? 100 : null;\n return number + (suffixes[number] || suffixes[a] || suffixes[b]);\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return kk;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/kk.js\n// module id = 472\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Cambodian [km]\n//! author : Kruy Vanna : https://github.com/kruyvanna\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '១',\n '2': '២',\n '3': '៣',\n '4': '៤',\n '5': '៥',\n '6': '៦',\n '7': '៧',\n '8': '៨',\n '9': '៩',\n '0': '០',\n },\n numberMap = {\n '១': '1',\n '២': '2',\n '៣': '3',\n '៤': '4',\n '៥': '5',\n '៦': '6',\n '៧': '7',\n '៨': '8',\n '៩': '9',\n '០': '0',\n };\n\n var km = moment.defineLocale('km', {\n months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(\n '_'\n ),\n monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(\n '_'\n ),\n weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),\n weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),\n weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n meridiemParse: /ព្រឹក|ល្ងាច/,\n isPM: function (input) {\n return input === 'ល្ងាច';\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'ព្រឹក';\n } else {\n return 'ល្ងាច';\n }\n },\n calendar: {\n sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',\n nextDay: '[ស្អែក ម៉ោង] LT',\n nextWeek: 'dddd [ម៉ោង] LT',\n lastDay: '[ម្សិលមិញ ម៉ោង] LT',\n lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%sទៀត',\n past: '%sមុន',\n s: 'ប៉ុន្មានវិនាទី',\n ss: '%d វិនាទី',\n m: 'មួយនាទី',\n mm: '%d នាទី',\n h: 'មួយម៉ោង',\n hh: '%d ម៉ោង',\n d: 'មួយថ្ងៃ',\n dd: '%d ថ្ងៃ',\n M: 'មួយខែ',\n MM: '%d ខែ',\n y: 'មួយឆ្នាំ',\n yy: '%d ឆ្នាំ',\n },\n dayOfMonthOrdinalParse: /ទី\\d{1,2}/,\n ordinal: 'ទី%d',\n preparse: function (string) {\n return string.replace(/[១២៣៤៥៦៧៨៩០]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return km;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/km.js\n// module id = 473\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Kannada [kn]\n//! author : Rajeev Naik : https://github.com/rajeevnaikte\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '೧',\n '2': '೨',\n '3': '೩',\n '4': '೪',\n '5': '೫',\n '6': '೬',\n '7': '೭',\n '8': '೮',\n '9': '೯',\n '0': '೦',\n },\n numberMap = {\n '೧': '1',\n '೨': '2',\n '೩': '3',\n '೪': '4',\n '೫': '5',\n '೬': '6',\n '೭': '7',\n '೮': '8',\n '೯': '9',\n '೦': '0',\n };\n\n var kn = moment.defineLocale('kn', {\n months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split(\n '_'\n ),\n monthsShort: 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split(\n '_'\n ),\n weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),\n weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'),\n longDateFormat: {\n LT: 'A h:mm',\n LTS: 'A h:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm',\n LLLL: 'dddd, D MMMM YYYY, A h:mm',\n },\n calendar: {\n sameDay: '[ಇಂದು] LT',\n nextDay: '[ನಾಳೆ] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[ನಿನ್ನೆ] LT',\n lastWeek: '[ಕೊನೆಯ] dddd, LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s ನಂತರ',\n past: '%s ಹಿಂದೆ',\n s: 'ಕೆಲವು ಕ್ಷಣಗಳು',\n ss: '%d ಸೆಕೆಂಡುಗಳು',\n m: 'ಒಂದು ನಿಮಿಷ',\n mm: '%d ನಿಮಿಷ',\n h: 'ಒಂದು ಗಂಟೆ',\n hh: '%d ಗಂಟೆ',\n d: 'ಒಂದು ದಿನ',\n dd: '%d ದಿನ',\n M: 'ಒಂದು ತಿಂಗಳು',\n MM: '%d ತಿಂಗಳು',\n y: 'ಒಂದು ವರ್ಷ',\n yy: '%d ವರ್ಷ',\n },\n preparse: function (string) {\n return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'ರಾತ್ರಿ') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') {\n return hour;\n } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') {\n return hour >= 10 ? hour : hour + 12;\n } else if (meridiem === 'ಸಂಜೆ') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'ರಾತ್ರಿ';\n } else if (hour < 10) {\n return 'ಬೆಳಿಗ್ಗೆ';\n } else if (hour < 17) {\n return 'ಮಧ್ಯಾಹ್ನ';\n } else if (hour < 20) {\n return 'ಸಂಜೆ';\n } else {\n return 'ರಾತ್ರಿ';\n }\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(ನೇ)/,\n ordinal: function (number) {\n return number + 'ನೇ';\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n },\n });\n\n return kn;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/kn.js\n// module id = 474\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Korean [ko]\n//! author : Kyungwook, Park : https://github.com/kyungw00k\n//! author : Jeeeyul Lee \n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var ko = moment.defineLocale('ko', {\n months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),\n monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split(\n '_'\n ),\n weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),\n weekdaysShort: '일_월_화_수_목_금_토'.split('_'),\n weekdaysMin: '일_월_화_수_목_금_토'.split('_'),\n longDateFormat: {\n LT: 'A h:mm',\n LTS: 'A h:mm:ss',\n L: 'YYYY.MM.DD.',\n LL: 'YYYY년 MMMM D일',\n LLL: 'YYYY년 MMMM D일 A h:mm',\n LLLL: 'YYYY년 MMMM D일 dddd A h:mm',\n l: 'YYYY.MM.DD.',\n ll: 'YYYY년 MMMM D일',\n lll: 'YYYY년 MMMM D일 A h:mm',\n llll: 'YYYY년 MMMM D일 dddd A h:mm',\n },\n calendar: {\n sameDay: '오늘 LT',\n nextDay: '내일 LT',\n nextWeek: 'dddd LT',\n lastDay: '어제 LT',\n lastWeek: '지난주 dddd LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s 후',\n past: '%s 전',\n s: '몇 초',\n ss: '%d초',\n m: '1분',\n mm: '%d분',\n h: '한 시간',\n hh: '%d시간',\n d: '하루',\n dd: '%d일',\n M: '한 달',\n MM: '%d달',\n y: '일 년',\n yy: '%d년',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(일|월|주)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'DDD':\n return number + '일';\n case 'M':\n return number + '월';\n case 'w':\n case 'W':\n return number + '주';\n default:\n return number;\n }\n },\n meridiemParse: /오전|오후/,\n isPM: function (token) {\n return token === '오후';\n },\n meridiem: function (hour, minute, isUpper) {\n return hour < 12 ? '오전' : '오후';\n },\n });\n\n return ko;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ko.js\n// module id = 475\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Kurdish [ku]\n//! author : Shahram Mebashar : https://github.com/ShahramMebashar\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '١',\n '2': '٢',\n '3': '٣',\n '4': '٤',\n '5': '٥',\n '6': '٦',\n '7': '٧',\n '8': '٨',\n '9': '٩',\n '0': '٠',\n },\n numberMap = {\n '١': '1',\n '٢': '2',\n '٣': '3',\n '٤': '4',\n '٥': '5',\n '٦': '6',\n '٧': '7',\n '٨': '8',\n '٩': '9',\n '٠': '0',\n },\n months = [\n 'کانونی دووەم',\n 'شوبات',\n 'ئازار',\n 'نیسان',\n 'ئایار',\n 'حوزەیران',\n 'تەمموز',\n 'ئاب',\n 'ئەیلوول',\n 'تشرینی یەكەم',\n 'تشرینی دووەم',\n 'كانونی یەکەم',\n ];\n\n var ku = moment.defineLocale('ku', {\n months: months,\n monthsShort: months,\n weekdays: 'یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌'.split(\n '_'\n ),\n weekdaysShort: 'یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌'.split(\n '_'\n ),\n weekdaysMin: 'ی_د_س_چ_پ_ه_ش'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n meridiemParse: /ئێواره‌|به‌یانی/,\n isPM: function (input) {\n return /ئێواره‌/.test(input);\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'به‌یانی';\n } else {\n return 'ئێواره‌';\n }\n },\n calendar: {\n sameDay: '[ئه‌مرۆ كاتژمێر] LT',\n nextDay: '[به‌یانی كاتژمێر] LT',\n nextWeek: 'dddd [كاتژمێر] LT',\n lastDay: '[دوێنێ كاتژمێر] LT',\n lastWeek: 'dddd [كاتژمێر] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'له‌ %s',\n past: '%s',\n s: 'چه‌ند چركه‌یه‌ك',\n ss: 'چركه‌ %d',\n m: 'یه‌ك خوله‌ك',\n mm: '%d خوله‌ك',\n h: 'یه‌ك كاتژمێر',\n hh: '%d كاتژمێر',\n d: 'یه‌ك ڕۆژ',\n dd: '%d ڕۆژ',\n M: 'یه‌ك مانگ',\n MM: '%d مانگ',\n y: 'یه‌ك ساڵ',\n yy: '%d ساڵ',\n },\n preparse: function (string) {\n return string\n .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {\n return numberMap[match];\n })\n .replace(/،/g, ',');\n },\n postformat: function (string) {\n return string\n .replace(/\\d/g, function (match) {\n return symbolMap[match];\n })\n .replace(/,/g, '،');\n },\n week: {\n dow: 6, // Saturday is the first day of the week.\n doy: 12, // The week that contains Jan 12th is the first week of the year.\n },\n });\n\n return ku;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ku.js\n// module id = 476\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Kyrgyz [ky]\n//! author : Chyngyz Arystan uulu : https://github.com/chyngyz\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var suffixes = {\n 0: '-чү',\n 1: '-чи',\n 2: '-чи',\n 3: '-чү',\n 4: '-чү',\n 5: '-чи',\n 6: '-чы',\n 7: '-чи',\n 8: '-чи',\n 9: '-чу',\n 10: '-чу',\n 20: '-чы',\n 30: '-чу',\n 40: '-чы',\n 50: '-чү',\n 60: '-чы',\n 70: '-чи',\n 80: '-чи',\n 90: '-чу',\n 100: '-чү',\n };\n\n var ky = moment.defineLocale('ky', {\n months: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split(\n '_'\n ),\n monthsShort: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split(\n '_'\n ),\n weekdays: 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split(\n '_'\n ),\n weekdaysShort: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),\n weekdaysMin: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Бүгүн саат] LT',\n nextDay: '[Эртең саат] LT',\n nextWeek: 'dddd [саат] LT',\n lastDay: '[Кечээ саат] LT',\n lastWeek: '[Өткөн аптанын] dddd [күнү] [саат] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s ичинде',\n past: '%s мурун',\n s: 'бирнече секунд',\n ss: '%d секунд',\n m: 'бир мүнөт',\n mm: '%d мүнөт',\n h: 'бир саат',\n hh: '%d саат',\n d: 'бир күн',\n dd: '%d күн',\n M: 'бир ай',\n MM: '%d ай',\n y: 'бир жыл',\n yy: '%d жыл',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(чи|чы|чү|чу)/,\n ordinal: function (number) {\n var a = number % 10,\n b = number >= 100 ? 100 : null;\n return number + (suffixes[number] || suffixes[a] || suffixes[b]);\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return ky;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ky.js\n// module id = 477\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Luxembourgish [lb]\n//! author : mweimerskirch : https://github.com/mweimerskirch\n//! author : David Raison : https://github.com/kwisatz\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var format = {\n m: ['eng Minutt', 'enger Minutt'],\n h: ['eng Stonn', 'enger Stonn'],\n d: ['een Dag', 'engem Dag'],\n M: ['ee Mount', 'engem Mount'],\n y: ['ee Joer', 'engem Joer'],\n };\n return withoutSuffix ? format[key][0] : format[key][1];\n }\n function processFutureTime(string) {\n var number = string.substr(0, string.indexOf(' '));\n if (eifelerRegelAppliesToNumber(number)) {\n return 'a ' + string;\n }\n return 'an ' + string;\n }\n function processPastTime(string) {\n var number = string.substr(0, string.indexOf(' '));\n if (eifelerRegelAppliesToNumber(number)) {\n return 'viru ' + string;\n }\n return 'virun ' + string;\n }\n /**\n * Returns true if the word before the given number loses the '-n' ending.\n * e.g. 'an 10 Deeg' but 'a 5 Deeg'\n *\n * @param number {integer}\n * @returns {boolean}\n */\n function eifelerRegelAppliesToNumber(number) {\n number = parseInt(number, 10);\n if (isNaN(number)) {\n return false;\n }\n if (number < 0) {\n // Negative Number --> always true\n return true;\n } else if (number < 10) {\n // Only 1 digit\n if (4 <= number && number <= 7) {\n return true;\n }\n return false;\n } else if (number < 100) {\n // 2 digits\n var lastDigit = number % 10,\n firstDigit = number / 10;\n if (lastDigit === 0) {\n return eifelerRegelAppliesToNumber(firstDigit);\n }\n return eifelerRegelAppliesToNumber(lastDigit);\n } else if (number < 10000) {\n // 3 or 4 digits --> recursively check first digit\n while (number >= 10) {\n number = number / 10;\n }\n return eifelerRegelAppliesToNumber(number);\n } else {\n // Anything larger than 4 digits: recursively check first n-3 digits\n number = number / 1000;\n return eifelerRegelAppliesToNumber(number);\n }\n }\n\n var lb = moment.defineLocale('lb', {\n months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split(\n '_'\n ),\n monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split(\n '_'\n ),\n weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),\n weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm [Auer]',\n LTS: 'H:mm:ss [Auer]',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY H:mm [Auer]',\n LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]',\n },\n calendar: {\n sameDay: '[Haut um] LT',\n sameElse: 'L',\n nextDay: '[Muer um] LT',\n nextWeek: 'dddd [um] LT',\n lastDay: '[Gëschter um] LT',\n lastWeek: function () {\n // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule\n switch (this.day()) {\n case 2:\n case 4:\n return '[Leschten] dddd [um] LT';\n default:\n return '[Leschte] dddd [um] LT';\n }\n },\n },\n relativeTime: {\n future: processFutureTime,\n past: processPastTime,\n s: 'e puer Sekonnen',\n ss: '%d Sekonnen',\n m: processRelativeTime,\n mm: '%d Minutten',\n h: processRelativeTime,\n hh: '%d Stonnen',\n d: processRelativeTime,\n dd: '%d Deeg',\n M: processRelativeTime,\n MM: '%d Méint',\n y: processRelativeTime,\n yy: '%d Joer',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return lb;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/lb.js\n// module id = 478\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Lao [lo]\n//! author : Ryan Hart : https://github.com/ryanhart2\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var lo = moment.defineLocale('lo', {\n months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(\n '_'\n ),\n monthsShort: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(\n '_'\n ),\n weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),\n weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),\n weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'ວັນdddd D MMMM YYYY HH:mm',\n },\n meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,\n isPM: function (input) {\n return input === 'ຕອນແລງ';\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'ຕອນເຊົ້າ';\n } else {\n return 'ຕອນແລງ';\n }\n },\n calendar: {\n sameDay: '[ມື້ນີ້ເວລາ] LT',\n nextDay: '[ມື້ອື່ນເວລາ] LT',\n nextWeek: '[ວັນ]dddd[ໜ້າເວລາ] LT',\n lastDay: '[ມື້ວານນີ້ເວລາ] LT',\n lastWeek: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'ອີກ %s',\n past: '%sຜ່ານມາ',\n s: 'ບໍ່ເທົ່າໃດວິນາທີ',\n ss: '%d ວິນາທີ',\n m: '1 ນາທີ',\n mm: '%d ນາທີ',\n h: '1 ຊົ່ວໂມງ',\n hh: '%d ຊົ່ວໂມງ',\n d: '1 ມື້',\n dd: '%d ມື້',\n M: '1 ເດືອນ',\n MM: '%d ເດືອນ',\n y: '1 ປີ',\n yy: '%d ປີ',\n },\n dayOfMonthOrdinalParse: /(ທີ່)\\d{1,2}/,\n ordinal: function (number) {\n return 'ທີ່' + number;\n },\n });\n\n return lo;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/lo.js\n// module id = 479\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Lithuanian [lt]\n//! author : Mindaugas Mozūras : https://github.com/mmozuras\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var units = {\n ss: 'sekundė_sekundžių_sekundes',\n m: 'minutė_minutės_minutę',\n mm: 'minutės_minučių_minutes',\n h: 'valanda_valandos_valandą',\n hh: 'valandos_valandų_valandas',\n d: 'diena_dienos_dieną',\n dd: 'dienos_dienų_dienas',\n M: 'mėnuo_mėnesio_mėnesį',\n MM: 'mėnesiai_mėnesių_mėnesius',\n y: 'metai_metų_metus',\n yy: 'metai_metų_metus',\n };\n function translateSeconds(number, withoutSuffix, key, isFuture) {\n if (withoutSuffix) {\n return 'kelios sekundės';\n } else {\n return isFuture ? 'kelių sekundžių' : 'kelias sekundes';\n }\n }\n function translateSingular(number, withoutSuffix, key, isFuture) {\n return withoutSuffix\n ? forms(key)[0]\n : isFuture\n ? forms(key)[1]\n : forms(key)[2];\n }\n function special(number) {\n return number % 10 === 0 || (number > 10 && number < 20);\n }\n function forms(key) {\n return units[key].split('_');\n }\n function translate(number, withoutSuffix, key, isFuture) {\n var result = number + ' ';\n if (number === 1) {\n return (\n result + translateSingular(number, withoutSuffix, key[0], isFuture)\n );\n } else if (withoutSuffix) {\n return result + (special(number) ? forms(key)[1] : forms(key)[0]);\n } else {\n if (isFuture) {\n return result + forms(key)[1];\n } else {\n return result + (special(number) ? forms(key)[1] : forms(key)[2]);\n }\n }\n }\n var lt = moment.defineLocale('lt', {\n months: {\n format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split(\n '_'\n ),\n standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split(\n '_'\n ),\n isFormat: /D[oD]?(\\[[^\\[\\]]*\\]|\\s)+MMMM?|MMMM?(\\[[^\\[\\]]*\\]|\\s)+D[oD]?/,\n },\n monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),\n weekdays: {\n format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split(\n '_'\n ),\n standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split(\n '_'\n ),\n isFormat: /dddd HH:mm/,\n },\n weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),\n weekdaysMin: 'S_P_A_T_K_Pn_Š'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY-MM-DD',\n LL: 'YYYY [m.] MMMM D [d.]',\n LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',\n LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',\n l: 'YYYY-MM-DD',\n ll: 'YYYY [m.] MMMM D [d.]',\n lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',\n llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]',\n },\n calendar: {\n sameDay: '[Šiandien] LT',\n nextDay: '[Rytoj] LT',\n nextWeek: 'dddd LT',\n lastDay: '[Vakar] LT',\n lastWeek: '[Praėjusį] dddd LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'po %s',\n past: 'prieš %s',\n s: translateSeconds,\n ss: translate,\n m: translateSingular,\n mm: translate,\n h: translateSingular,\n hh: translate,\n d: translateSingular,\n dd: translate,\n M: translateSingular,\n MM: translate,\n y: translateSingular,\n yy: translate,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-oji/,\n ordinal: function (number) {\n return number + '-oji';\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return lt;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/lt.js\n// module id = 480\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Latvian [lv]\n//! author : Kristaps Karlsons : https://github.com/skakri\n//! author : Jānis Elmeris : https://github.com/JanisE\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var units = {\n ss: 'sekundes_sekundēm_sekunde_sekundes'.split('_'),\n m: 'minūtes_minūtēm_minūte_minūtes'.split('_'),\n mm: 'minūtes_minūtēm_minūte_minūtes'.split('_'),\n h: 'stundas_stundām_stunda_stundas'.split('_'),\n hh: 'stundas_stundām_stunda_stundas'.split('_'),\n d: 'dienas_dienām_diena_dienas'.split('_'),\n dd: 'dienas_dienām_diena_dienas'.split('_'),\n M: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),\n MM: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),\n y: 'gada_gadiem_gads_gadi'.split('_'),\n yy: 'gada_gadiem_gads_gadi'.split('_'),\n };\n /**\n * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.\n */\n function format(forms, number, withoutSuffix) {\n if (withoutSuffix) {\n // E.g. \"21 minūte\", \"3 minūtes\".\n return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3];\n } else {\n // E.g. \"21 minūtes\" as in \"pēc 21 minūtes\".\n // E.g. \"3 minūtēm\" as in \"pēc 3 minūtēm\".\n return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1];\n }\n }\n function relativeTimeWithPlural(number, withoutSuffix, key) {\n return number + ' ' + format(units[key], number, withoutSuffix);\n }\n function relativeTimeWithSingular(number, withoutSuffix, key) {\n return format(units[key], number, withoutSuffix);\n }\n function relativeSeconds(number, withoutSuffix) {\n return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';\n }\n\n var lv = moment.defineLocale('lv', {\n months: 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split(\n '_'\n ),\n monthsShort: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),\n weekdays: 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split(\n '_'\n ),\n weekdaysShort: 'Sv_P_O_T_C_Pk_S'.split('_'),\n weekdaysMin: 'Sv_P_O_T_C_Pk_S'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY.',\n LL: 'YYYY. [gada] D. MMMM',\n LLL: 'YYYY. [gada] D. MMMM, HH:mm',\n LLLL: 'YYYY. [gada] D. MMMM, dddd, HH:mm',\n },\n calendar: {\n sameDay: '[Šodien pulksten] LT',\n nextDay: '[Rīt pulksten] LT',\n nextWeek: 'dddd [pulksten] LT',\n lastDay: '[Vakar pulksten] LT',\n lastWeek: '[Pagājušā] dddd [pulksten] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'pēc %s',\n past: 'pirms %s',\n s: relativeSeconds,\n ss: relativeTimeWithPlural,\n m: relativeTimeWithSingular,\n mm: relativeTimeWithPlural,\n h: relativeTimeWithSingular,\n hh: relativeTimeWithPlural,\n d: relativeTimeWithSingular,\n dd: relativeTimeWithPlural,\n M: relativeTimeWithSingular,\n MM: relativeTimeWithPlural,\n y: relativeTimeWithSingular,\n yy: relativeTimeWithPlural,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return lv;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/lv.js\n// module id = 481\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Montenegrin [me]\n//! author : Miodrag Nikač : https://github.com/miodragnikac\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var translator = {\n words: {\n //Different grammatical cases\n ss: ['sekund', 'sekunda', 'sekundi'],\n m: ['jedan minut', 'jednog minuta'],\n mm: ['minut', 'minuta', 'minuta'],\n h: ['jedan sat', 'jednog sata'],\n hh: ['sat', 'sata', 'sati'],\n dd: ['dan', 'dana', 'dana'],\n MM: ['mjesec', 'mjeseca', 'mjeseci'],\n yy: ['godina', 'godine', 'godina'],\n },\n correctGrammaticalCase: function (number, wordKey) {\n return number === 1\n ? wordKey[0]\n : number >= 2 && number <= 4\n ? wordKey[1]\n : wordKey[2];\n },\n translate: function (number, withoutSuffix, key) {\n var wordKey = translator.words[key];\n if (key.length === 1) {\n return withoutSuffix ? wordKey[0] : wordKey[1];\n } else {\n return (\n number +\n ' ' +\n translator.correctGrammaticalCase(number, wordKey)\n );\n }\n },\n };\n\n var me = moment.defineLocale('me', {\n months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(\n '_'\n ),\n monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(\n '_'\n ),\n weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),\n weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY H:mm',\n LLLL: 'dddd, D. MMMM YYYY H:mm',\n },\n calendar: {\n sameDay: '[danas u] LT',\n nextDay: '[sjutra u] LT',\n\n nextWeek: function () {\n switch (this.day()) {\n case 0:\n return '[u] [nedjelju] [u] LT';\n case 3:\n return '[u] [srijedu] [u] LT';\n case 6:\n return '[u] [subotu] [u] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[u] dddd [u] LT';\n }\n },\n lastDay: '[juče u] LT',\n lastWeek: function () {\n var lastWeekDays = [\n '[prošle] [nedjelje] [u] LT',\n '[prošlog] [ponedjeljka] [u] LT',\n '[prošlog] [utorka] [u] LT',\n '[prošle] [srijede] [u] LT',\n '[prošlog] [četvrtka] [u] LT',\n '[prošlog] [petka] [u] LT',\n '[prošle] [subote] [u] LT',\n ];\n return lastWeekDays[this.day()];\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'za %s',\n past: 'prije %s',\n s: 'nekoliko sekundi',\n ss: translator.translate,\n m: translator.translate,\n mm: translator.translate,\n h: translator.translate,\n hh: translator.translate,\n d: 'dan',\n dd: translator.translate,\n M: 'mjesec',\n MM: translator.translate,\n y: 'godinu',\n yy: translator.translate,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return me;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/me.js\n// module id = 482\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Maori [mi]\n//! author : John Corrigan : https://github.com/johnideal\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var mi = moment.defineLocale('mi', {\n months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split(\n '_'\n ),\n monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split(\n '_'\n ),\n monthsRegex: /(?:['a-z\\u0101\\u014D\\u016B]+\\-?){1,3}/i,\n monthsStrictRegex: /(?:['a-z\\u0101\\u014D\\u016B]+\\-?){1,3}/i,\n monthsShortRegex: /(?:['a-z\\u0101\\u014D\\u016B]+\\-?){1,3}/i,\n monthsShortStrictRegex: /(?:['a-z\\u0101\\u014D\\u016B]+\\-?){1,2}/i,\n weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),\n weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),\n weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY [i] HH:mm',\n LLLL: 'dddd, D MMMM YYYY [i] HH:mm',\n },\n calendar: {\n sameDay: '[i teie mahana, i] LT',\n nextDay: '[apopo i] LT',\n nextWeek: 'dddd [i] LT',\n lastDay: '[inanahi i] LT',\n lastWeek: 'dddd [whakamutunga i] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'i roto i %s',\n past: '%s i mua',\n s: 'te hēkona ruarua',\n ss: '%d hēkona',\n m: 'he meneti',\n mm: '%d meneti',\n h: 'te haora',\n hh: '%d haora',\n d: 'he ra',\n dd: '%d ra',\n M: 'he marama',\n MM: '%d marama',\n y: 'he tau',\n yy: '%d tau',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return mi;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/mi.js\n// module id = 483\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Macedonian [mk]\n//! author : Borislav Mickov : https://github.com/B0k0\n//! author : Sashko Todorov : https://github.com/bkyceh\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var mk = moment.defineLocale('mk', {\n months: 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split(\n '_'\n ),\n monthsShort: 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),\n weekdays: 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split(\n '_'\n ),\n weekdaysShort: 'нед_пон_вто_сре_чет_пет_саб'.split('_'),\n weekdaysMin: 'нe_пo_вт_ср_че_пе_сa'.split('_'),\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'D.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY H:mm',\n LLLL: 'dddd, D MMMM YYYY H:mm',\n },\n calendar: {\n sameDay: '[Денес во] LT',\n nextDay: '[Утре во] LT',\n nextWeek: '[Во] dddd [во] LT',\n lastDay: '[Вчера во] LT',\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n case 3:\n case 6:\n return '[Изминатата] dddd [во] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[Изминатиот] dddd [во] LT';\n }\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'за %s',\n past: 'пред %s',\n s: 'неколку секунди',\n ss: '%d секунди',\n m: 'една минута',\n mm: '%d минути',\n h: 'еден час',\n hh: '%d часа',\n d: 'еден ден',\n dd: '%d дена',\n M: 'еден месец',\n MM: '%d месеци',\n y: 'една година',\n yy: '%d години',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(ев|ен|ти|ви|ри|ми)/,\n ordinal: function (number) {\n var lastDigit = number % 10,\n last2Digits = number % 100;\n if (number === 0) {\n return number + '-ев';\n } else if (last2Digits === 0) {\n return number + '-ен';\n } else if (last2Digits > 10 && last2Digits < 20) {\n return number + '-ти';\n } else if (lastDigit === 1) {\n return number + '-ви';\n } else if (lastDigit === 2) {\n return number + '-ри';\n } else if (lastDigit === 7 || lastDigit === 8) {\n return number + '-ми';\n } else {\n return number + '-ти';\n }\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return mk;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/mk.js\n// module id = 484\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Malayalam [ml]\n//! author : Floyd Pink : https://github.com/floydpink\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var ml = moment.defineLocale('ml', {\n months: 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split(\n '_'\n ),\n monthsShort: 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split(\n '_'\n ),\n weekdaysShort: 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),\n weekdaysMin: 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),\n longDateFormat: {\n LT: 'A h:mm -നു',\n LTS: 'A h:mm:ss -നു',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm -നു',\n LLLL: 'dddd, D MMMM YYYY, A h:mm -നു',\n },\n calendar: {\n sameDay: '[ഇന്ന്] LT',\n nextDay: '[നാളെ] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[ഇന്നലെ] LT',\n lastWeek: '[കഴിഞ്ഞ] dddd, LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s കഴിഞ്ഞ്',\n past: '%s മുൻപ്',\n s: 'അൽപ നിമിഷങ്ങൾ',\n ss: '%d സെക്കൻഡ്',\n m: 'ഒരു മിനിറ്റ്',\n mm: '%d മിനിറ്റ്',\n h: 'ഒരു മണിക്കൂർ',\n hh: '%d മണിക്കൂർ',\n d: 'ഒരു ദിവസം',\n dd: '%d ദിവസം',\n M: 'ഒരു മാസം',\n MM: '%d മാസം',\n y: 'ഒരു വർഷം',\n yy: '%d വർഷം',\n },\n meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (\n (meridiem === 'രാത്രി' && hour >= 4) ||\n meridiem === 'ഉച്ച കഴിഞ്ഞ്' ||\n meridiem === 'വൈകുന്നേരം'\n ) {\n return hour + 12;\n } else {\n return hour;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'രാത്രി';\n } else if (hour < 12) {\n return 'രാവിലെ';\n } else if (hour < 17) {\n return 'ഉച്ച കഴിഞ്ഞ്';\n } else if (hour < 20) {\n return 'വൈകുന്നേരം';\n } else {\n return 'രാത്രി';\n }\n },\n });\n\n return ml;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ml.js\n// module id = 485\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Mongolian [mn]\n//! author : Javkhlantugs Nyamdorj : https://github.com/javkhaanj7\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function translate(number, withoutSuffix, key, isFuture) {\n switch (key) {\n case 's':\n return withoutSuffix ? 'хэдхэн секунд' : 'хэдхэн секундын';\n case 'ss':\n return number + (withoutSuffix ? ' секунд' : ' секундын');\n case 'm':\n case 'mm':\n return number + (withoutSuffix ? ' минут' : ' минутын');\n case 'h':\n case 'hh':\n return number + (withoutSuffix ? ' цаг' : ' цагийн');\n case 'd':\n case 'dd':\n return number + (withoutSuffix ? ' өдөр' : ' өдрийн');\n case 'M':\n case 'MM':\n return number + (withoutSuffix ? ' сар' : ' сарын');\n case 'y':\n case 'yy':\n return number + (withoutSuffix ? ' жил' : ' жилийн');\n default:\n return number;\n }\n }\n\n var mn = moment.defineLocale('mn', {\n months: 'Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар'.split(\n '_'\n ),\n monthsShort: '1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба'.split('_'),\n weekdaysShort: 'Ням_Дав_Мяг_Лха_Пүр_Баа_Бям'.split('_'),\n weekdaysMin: 'Ня_Да_Мя_Лх_Пү_Ба_Бя'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY-MM-DD',\n LL: 'YYYY оны MMMMын D',\n LLL: 'YYYY оны MMMMын D HH:mm',\n LLLL: 'dddd, YYYY оны MMMMын D HH:mm',\n },\n meridiemParse: /ҮӨ|ҮХ/i,\n isPM: function (input) {\n return input === 'ҮХ';\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'ҮӨ';\n } else {\n return 'ҮХ';\n }\n },\n calendar: {\n sameDay: '[Өнөөдөр] LT',\n nextDay: '[Маргааш] LT',\n nextWeek: '[Ирэх] dddd LT',\n lastDay: '[Өчигдөр] LT',\n lastWeek: '[Өнгөрсөн] dddd LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s дараа',\n past: '%s өмнө',\n s: translate,\n ss: translate,\n m: translate,\n mm: translate,\n h: translate,\n hh: translate,\n d: translate,\n dd: translate,\n M: translate,\n MM: translate,\n y: translate,\n yy: translate,\n },\n dayOfMonthOrdinalParse: /\\d{1,2} өдөр/,\n ordinal: function (number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'DDD':\n return number + ' өдөр';\n default:\n return number;\n }\n },\n });\n\n return mn;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/mn.js\n// module id = 486\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Marathi [mr]\n//! author : Harshad Kale : https://github.com/kalehv\n//! author : Vivek Athalye : https://github.com/vnathalye\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '१',\n '2': '२',\n '3': '३',\n '4': '४',\n '5': '५',\n '6': '६',\n '7': '७',\n '8': '८',\n '9': '९',\n '0': '०',\n },\n numberMap = {\n '१': '1',\n '२': '2',\n '३': '3',\n '४': '4',\n '५': '5',\n '६': '6',\n '७': '7',\n '८': '8',\n '९': '9',\n '०': '0',\n };\n\n function relativeTimeMr(number, withoutSuffix, string, isFuture) {\n var output = '';\n if (withoutSuffix) {\n switch (string) {\n case 's':\n output = 'काही सेकंद';\n break;\n case 'ss':\n output = '%d सेकंद';\n break;\n case 'm':\n output = 'एक मिनिट';\n break;\n case 'mm':\n output = '%d मिनिटे';\n break;\n case 'h':\n output = 'एक तास';\n break;\n case 'hh':\n output = '%d तास';\n break;\n case 'd':\n output = 'एक दिवस';\n break;\n case 'dd':\n output = '%d दिवस';\n break;\n case 'M':\n output = 'एक महिना';\n break;\n case 'MM':\n output = '%d महिने';\n break;\n case 'y':\n output = 'एक वर्ष';\n break;\n case 'yy':\n output = '%d वर्षे';\n break;\n }\n } else {\n switch (string) {\n case 's':\n output = 'काही सेकंदां';\n break;\n case 'ss':\n output = '%d सेकंदां';\n break;\n case 'm':\n output = 'एका मिनिटा';\n break;\n case 'mm':\n output = '%d मिनिटां';\n break;\n case 'h':\n output = 'एका तासा';\n break;\n case 'hh':\n output = '%d तासां';\n break;\n case 'd':\n output = 'एका दिवसा';\n break;\n case 'dd':\n output = '%d दिवसां';\n break;\n case 'M':\n output = 'एका महिन्या';\n break;\n case 'MM':\n output = '%d महिन्यां';\n break;\n case 'y':\n output = 'एका वर्षा';\n break;\n case 'yy':\n output = '%d वर्षां';\n break;\n }\n }\n return output.replace(/%d/i, number);\n }\n\n var mr = moment.defineLocale('mr', {\n months: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(\n '_'\n ),\n monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),\n weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),\n weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),\n longDateFormat: {\n LT: 'A h:mm वाजता',\n LTS: 'A h:mm:ss वाजता',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm वाजता',\n LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता',\n },\n calendar: {\n sameDay: '[आज] LT',\n nextDay: '[उद्या] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[काल] LT',\n lastWeek: '[मागील] dddd, LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%sमध्ये',\n past: '%sपूर्वी',\n s: relativeTimeMr,\n ss: relativeTimeMr,\n m: relativeTimeMr,\n mm: relativeTimeMr,\n h: relativeTimeMr,\n hh: relativeTimeMr,\n d: relativeTimeMr,\n dd: relativeTimeMr,\n M: relativeTimeMr,\n MM: relativeTimeMr,\n y: relativeTimeMr,\n yy: relativeTimeMr,\n },\n preparse: function (string) {\n return string.replace(/[१२३४५६७८९०]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n meridiemParse: /पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'पहाटे' || meridiem === 'सकाळी') {\n return hour;\n } else if (\n meridiem === 'दुपारी' ||\n meridiem === 'सायंकाळी' ||\n meridiem === 'रात्री'\n ) {\n return hour >= 12 ? hour : hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour >= 0 && hour < 6) {\n return 'पहाटे';\n } else if (hour < 12) {\n return 'सकाळी';\n } else if (hour < 17) {\n return 'दुपारी';\n } else if (hour < 20) {\n return 'सायंकाळी';\n } else {\n return 'रात्री';\n }\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n },\n });\n\n return mr;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/mr.js\n// module id = 487\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Malay [ms]\n//! author : Weldan Jamili : https://github.com/weldan\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var ms = moment.defineLocale('ms', {\n months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(\n '_'\n ),\n monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),\n weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),\n weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),\n weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),\n longDateFormat: {\n LT: 'HH.mm',\n LTS: 'HH.mm.ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY [pukul] HH.mm',\n LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',\n },\n meridiemParse: /pagi|tengahari|petang|malam/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'pagi') {\n return hour;\n } else if (meridiem === 'tengahari') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === 'petang' || meridiem === 'malam') {\n return hour + 12;\n }\n },\n meridiem: function (hours, minutes, isLower) {\n if (hours < 11) {\n return 'pagi';\n } else if (hours < 15) {\n return 'tengahari';\n } else if (hours < 19) {\n return 'petang';\n } else {\n return 'malam';\n }\n },\n calendar: {\n sameDay: '[Hari ini pukul] LT',\n nextDay: '[Esok pukul] LT',\n nextWeek: 'dddd [pukul] LT',\n lastDay: '[Kelmarin pukul] LT',\n lastWeek: 'dddd [lepas pukul] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'dalam %s',\n past: '%s yang lepas',\n s: 'beberapa saat',\n ss: '%d saat',\n m: 'seminit',\n mm: '%d minit',\n h: 'sejam',\n hh: '%d jam',\n d: 'sehari',\n dd: '%d hari',\n M: 'sebulan',\n MM: '%d bulan',\n y: 'setahun',\n yy: '%d tahun',\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return ms;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ms.js\n// module id = 488\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Malay [ms-my]\n//! note : DEPRECATED, the correct one is [ms]\n//! author : Weldan Jamili : https://github.com/weldan\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var msMy = moment.defineLocale('ms-my', {\n months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(\n '_'\n ),\n monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),\n weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),\n weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),\n weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),\n longDateFormat: {\n LT: 'HH.mm',\n LTS: 'HH.mm.ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY [pukul] HH.mm',\n LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',\n },\n meridiemParse: /pagi|tengahari|petang|malam/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'pagi') {\n return hour;\n } else if (meridiem === 'tengahari') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === 'petang' || meridiem === 'malam') {\n return hour + 12;\n }\n },\n meridiem: function (hours, minutes, isLower) {\n if (hours < 11) {\n return 'pagi';\n } else if (hours < 15) {\n return 'tengahari';\n } else if (hours < 19) {\n return 'petang';\n } else {\n return 'malam';\n }\n },\n calendar: {\n sameDay: '[Hari ini pukul] LT',\n nextDay: '[Esok pukul] LT',\n nextWeek: 'dddd [pukul] LT',\n lastDay: '[Kelmarin pukul] LT',\n lastWeek: 'dddd [lepas pukul] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'dalam %s',\n past: '%s yang lepas',\n s: 'beberapa saat',\n ss: '%d saat',\n m: 'seminit',\n mm: '%d minit',\n h: 'sejam',\n hh: '%d jam',\n d: 'sehari',\n dd: '%d hari',\n M: 'sebulan',\n MM: '%d bulan',\n y: 'setahun',\n yy: '%d tahun',\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return msMy;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ms-my.js\n// module id = 489\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Maltese (Malta) [mt]\n//! author : Alessandro Maruccia : https://github.com/alesma\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var mt = moment.defineLocale('mt', {\n months: 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split(\n '_'\n ),\n monthsShort: 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'),\n weekdays: 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split(\n '_'\n ),\n weekdaysShort: 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'),\n weekdaysMin: 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Illum fil-]LT',\n nextDay: '[Għada fil-]LT',\n nextWeek: 'dddd [fil-]LT',\n lastDay: '[Il-bieraħ fil-]LT',\n lastWeek: 'dddd [li għadda] [fil-]LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'f’ %s',\n past: '%s ilu',\n s: 'ftit sekondi',\n ss: '%d sekondi',\n m: 'minuta',\n mm: '%d minuti',\n h: 'siegħa',\n hh: '%d siegħat',\n d: 'ġurnata',\n dd: '%d ġranet',\n M: 'xahar',\n MM: '%d xhur',\n y: 'sena',\n yy: '%d sni',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return mt;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/mt.js\n// module id = 490\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Burmese [my]\n//! author : Squar team, mysquar.com\n//! author : David Rossellat : https://github.com/gholadr\n//! author : Tin Aung Lin : https://github.com/thanyawzinmin\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '၁',\n '2': '၂',\n '3': '၃',\n '4': '၄',\n '5': '၅',\n '6': '၆',\n '7': '၇',\n '8': '၈',\n '9': '၉',\n '0': '၀',\n },\n numberMap = {\n '၁': '1',\n '၂': '2',\n '၃': '3',\n '၄': '4',\n '၅': '5',\n '၆': '6',\n '၇': '7',\n '၈': '8',\n '၉': '9',\n '၀': '0',\n };\n\n var my = moment.defineLocale('my', {\n months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split(\n '_'\n ),\n monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),\n weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split(\n '_'\n ),\n weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),\n weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),\n\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[ယနေ.] LT [မှာ]',\n nextDay: '[မနက်ဖြန်] LT [မှာ]',\n nextWeek: 'dddd LT [မှာ]',\n lastDay: '[မနေ.က] LT [မှာ]',\n lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'လာမည့် %s မှာ',\n past: 'လွန်ခဲ့သော %s က',\n s: 'စက္ကန်.အနည်းငယ်',\n ss: '%d စက္ကန့်',\n m: 'တစ်မိနစ်',\n mm: '%d မိနစ်',\n h: 'တစ်နာရီ',\n hh: '%d နာရီ',\n d: 'တစ်ရက်',\n dd: '%d ရက်',\n M: 'တစ်လ',\n MM: '%d လ',\n y: 'တစ်နှစ်',\n yy: '%d နှစ်',\n },\n preparse: function (string) {\n return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return my;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/my.js\n// module id = 491\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Norwegian Bokmål [nb]\n//! authors : Espen Hovlandsdal : https://github.com/rexxars\n//! Sigurd Gartmann : https://github.com/sigurdga\n//! Stephen Ramthun : https://github.com/stephenramthun\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var nb = moment.defineLocale('nb', {\n months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(\n '_'\n ),\n monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),\n weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'),\n weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY [kl.] HH:mm',\n LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',\n },\n calendar: {\n sameDay: '[i dag kl.] LT',\n nextDay: '[i morgen kl.] LT',\n nextWeek: 'dddd [kl.] LT',\n lastDay: '[i går kl.] LT',\n lastWeek: '[forrige] dddd [kl.] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'om %s',\n past: '%s siden',\n s: 'noen sekunder',\n ss: '%d sekunder',\n m: 'ett minutt',\n mm: '%d minutter',\n h: 'en time',\n hh: '%d timer',\n d: 'en dag',\n dd: '%d dager',\n M: 'en måned',\n MM: '%d måneder',\n y: 'ett år',\n yy: '%d år',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return nb;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/nb.js\n// module id = 492\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Nepalese [ne]\n//! author : suvash : https://github.com/suvash\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '१',\n '2': '२',\n '3': '३',\n '4': '४',\n '5': '५',\n '6': '६',\n '7': '७',\n '8': '८',\n '9': '९',\n '0': '०',\n },\n numberMap = {\n '१': '1',\n '२': '2',\n '३': '3',\n '४': '4',\n '५': '5',\n '६': '6',\n '७': '7',\n '८': '8',\n '९': '9',\n '०': '0',\n };\n\n var ne = moment.defineLocale('ne', {\n months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split(\n '_'\n ),\n monthsShort: 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split(\n '_'\n ),\n weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),\n weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'Aको h:mm बजे',\n LTS: 'Aको h:mm:ss बजे',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, Aको h:mm बजे',\n LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे',\n },\n preparse: function (string) {\n return string.replace(/[१२३४५६७८९०]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n meridiemParse: /राति|बिहान|दिउँसो|साँझ/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'राति') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'बिहान') {\n return hour;\n } else if (meridiem === 'दिउँसो') {\n return hour >= 10 ? hour : hour + 12;\n } else if (meridiem === 'साँझ') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 3) {\n return 'राति';\n } else if (hour < 12) {\n return 'बिहान';\n } else if (hour < 16) {\n return 'दिउँसो';\n } else if (hour < 20) {\n return 'साँझ';\n } else {\n return 'राति';\n }\n },\n calendar: {\n sameDay: '[आज] LT',\n nextDay: '[भोलि] LT',\n nextWeek: '[आउँदो] dddd[,] LT',\n lastDay: '[हिजो] LT',\n lastWeek: '[गएको] dddd[,] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%sमा',\n past: '%s अगाडि',\n s: 'केही क्षण',\n ss: '%d सेकेण्ड',\n m: 'एक मिनेट',\n mm: '%d मिनेट',\n h: 'एक घण्टा',\n hh: '%d घण्टा',\n d: 'एक दिन',\n dd: '%d दिन',\n M: 'एक महिना',\n MM: '%d महिना',\n y: 'एक बर्ष',\n yy: '%d बर्ष',\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n },\n });\n\n return ne;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ne.js\n// module id = 493\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Dutch [nl]\n//! author : Joris Röling : https://github.com/jorisroling\n//! author : Jacob Middag : https://github.com/middagj\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split(\n '_'\n ),\n monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split(\n '_'\n ),\n monthsParse = [\n /^jan/i,\n /^feb/i,\n /^maart|mrt.?$/i,\n /^apr/i,\n /^mei$/i,\n /^jun[i.]?$/i,\n /^jul[i.]?$/i,\n /^aug/i,\n /^sep/i,\n /^okt/i,\n /^nov/i,\n /^dec/i,\n ],\n monthsRegex = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\\.?|feb\\.?|mrt\\.?|apr\\.?|ju[nl]\\.?|aug\\.?|sep\\.?|okt\\.?|nov\\.?|dec\\.?)/i;\n\n var nl = moment.defineLocale('nl', {\n months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split(\n '_'\n ),\n monthsShort: function (m, format) {\n if (!m) {\n return monthsShortWithDots;\n } else if (/-MMM-/.test(format)) {\n return monthsShortWithoutDots[m.month()];\n } else {\n return monthsShortWithDots[m.month()];\n }\n },\n\n monthsRegex: monthsRegex,\n monthsShortRegex: monthsRegex,\n monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,\n monthsShortStrictRegex: /^(jan\\.?|feb\\.?|mrt\\.?|apr\\.?|mei|ju[nl]\\.?|aug\\.?|sep\\.?|okt\\.?|nov\\.?|dec\\.?)/i,\n\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n\n weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split(\n '_'\n ),\n weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),\n weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD-MM-YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[vandaag om] LT',\n nextDay: '[morgen om] LT',\n nextWeek: 'dddd [om] LT',\n lastDay: '[gisteren om] LT',\n lastWeek: '[afgelopen] dddd [om] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'over %s',\n past: '%s geleden',\n s: 'een paar seconden',\n ss: '%d seconden',\n m: 'één minuut',\n mm: '%d minuten',\n h: 'één uur',\n hh: '%d uur',\n d: 'één dag',\n dd: '%d dagen',\n M: 'één maand',\n MM: '%d maanden',\n y: 'één jaar',\n yy: '%d jaar',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(ste|de)/,\n ordinal: function (number) {\n return (\n number +\n (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')\n );\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return nl;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/nl.js\n// module id = 494\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Dutch (Belgium) [nl-be]\n//! author : Joris Röling : https://github.com/jorisroling\n//! author : Jacob Middag : https://github.com/middagj\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split(\n '_'\n ),\n monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split(\n '_'\n ),\n monthsParse = [\n /^jan/i,\n /^feb/i,\n /^maart|mrt.?$/i,\n /^apr/i,\n /^mei$/i,\n /^jun[i.]?$/i,\n /^jul[i.]?$/i,\n /^aug/i,\n /^sep/i,\n /^okt/i,\n /^nov/i,\n /^dec/i,\n ],\n monthsRegex = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\\.?|feb\\.?|mrt\\.?|apr\\.?|ju[nl]\\.?|aug\\.?|sep\\.?|okt\\.?|nov\\.?|dec\\.?)/i;\n\n var nlBe = moment.defineLocale('nl-be', {\n months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split(\n '_'\n ),\n monthsShort: function (m, format) {\n if (!m) {\n return monthsShortWithDots;\n } else if (/-MMM-/.test(format)) {\n return monthsShortWithoutDots[m.month()];\n } else {\n return monthsShortWithDots[m.month()];\n }\n },\n\n monthsRegex: monthsRegex,\n monthsShortRegex: monthsRegex,\n monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,\n monthsShortStrictRegex: /^(jan\\.?|feb\\.?|mrt\\.?|apr\\.?|mei|ju[nl]\\.?|aug\\.?|sep\\.?|okt\\.?|nov\\.?|dec\\.?)/i,\n\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n\n weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split(\n '_'\n ),\n weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),\n weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[vandaag om] LT',\n nextDay: '[morgen om] LT',\n nextWeek: 'dddd [om] LT',\n lastDay: '[gisteren om] LT',\n lastWeek: '[afgelopen] dddd [om] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'over %s',\n past: '%s geleden',\n s: 'een paar seconden',\n ss: '%d seconden',\n m: 'één minuut',\n mm: '%d minuten',\n h: 'één uur',\n hh: '%d uur',\n d: 'één dag',\n dd: '%d dagen',\n M: 'één maand',\n MM: '%d maanden',\n y: 'één jaar',\n yy: '%d jaar',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(ste|de)/,\n ordinal: function (number) {\n return (\n number +\n (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')\n );\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return nlBe;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/nl-be.js\n// module id = 495\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Nynorsk [nn]\n//! authors : https://github.com/mechuwind\n//! Stephen Ramthun : https://github.com/stephenramthun\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var nn = moment.defineLocale('nn', {\n months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(\n '_'\n ),\n monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),\n weekdaysShort: 'su._må._ty._on._to._fr._lau.'.split('_'),\n weekdaysMin: 'su_må_ty_on_to_fr_la'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY [kl.] H:mm',\n LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',\n },\n calendar: {\n sameDay: '[I dag klokka] LT',\n nextDay: '[I morgon klokka] LT',\n nextWeek: 'dddd [klokka] LT',\n lastDay: '[I går klokka] LT',\n lastWeek: '[Føregåande] dddd [klokka] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'om %s',\n past: '%s sidan',\n s: 'nokre sekund',\n ss: '%d sekund',\n m: 'eit minutt',\n mm: '%d minutt',\n h: 'ein time',\n hh: '%d timar',\n d: 'ein dag',\n dd: '%d dagar',\n M: 'ein månad',\n MM: '%d månader',\n y: 'eit år',\n yy: '%d år',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return nn;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/nn.js\n// module id = 496\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Occitan, lengadocian dialecte [oc-lnc]\n//! author : Quentin PAGÈS : https://github.com/Quenty31\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var ocLnc = moment.defineLocale('oc-lnc', {\n months: {\n standalone: 'genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre'.split(\n '_'\n ),\n format: \"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre\".split(\n '_'\n ),\n isFormat: /D[oD]?(\\s)+MMMM/,\n },\n monthsShort: 'gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte'.split(\n '_'\n ),\n weekdaysShort: 'dg._dl._dm._dc._dj._dv._ds.'.split('_'),\n weekdaysMin: 'dg_dl_dm_dc_dj_dv_ds'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM [de] YYYY',\n ll: 'D MMM YYYY',\n LLL: 'D MMMM [de] YYYY [a] H:mm',\n lll: 'D MMM YYYY, H:mm',\n LLLL: 'dddd D MMMM [de] YYYY [a] H:mm',\n llll: 'ddd D MMM YYYY, H:mm',\n },\n calendar: {\n sameDay: '[uèi a] LT',\n nextDay: '[deman a] LT',\n nextWeek: 'dddd [a] LT',\n lastDay: '[ièr a] LT',\n lastWeek: 'dddd [passat a] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: \"d'aquí %s\",\n past: 'fa %s',\n s: 'unas segondas',\n ss: '%d segondas',\n m: 'una minuta',\n mm: '%d minutas',\n h: 'una ora',\n hh: '%d oras',\n d: 'un jorn',\n dd: '%d jorns',\n M: 'un mes',\n MM: '%d meses',\n y: 'un an',\n yy: '%d ans',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(r|n|t|è|a)/,\n ordinal: function (number, period) {\n var output =\n number === 1\n ? 'r'\n : number === 2\n ? 'n'\n : number === 3\n ? 'r'\n : number === 4\n ? 't'\n : 'è';\n if (period === 'w' || period === 'W') {\n output = 'a';\n }\n return number + output;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4,\n },\n });\n\n return ocLnc;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/oc-lnc.js\n// module id = 497\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Punjabi (India) [pa-in]\n//! author : Harpreet Singh : https://github.com/harpreetkhalsagtbit\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '੧',\n '2': '੨',\n '3': '੩',\n '4': '੪',\n '5': '੫',\n '6': '੬',\n '7': '੭',\n '8': '੮',\n '9': '੯',\n '0': '੦',\n },\n numberMap = {\n '੧': '1',\n '੨': '2',\n '੩': '3',\n '੪': '4',\n '੫': '5',\n '੬': '6',\n '੭': '7',\n '੮': '8',\n '੯': '9',\n '੦': '0',\n };\n\n var paIn = moment.defineLocale('pa-in', {\n // There are months name as per Nanakshahi Calendar but they are not used as rigidly in modern Punjabi.\n months: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split(\n '_'\n ),\n monthsShort: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split(\n '_'\n ),\n weekdays: 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split(\n '_'\n ),\n weekdaysShort: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),\n weekdaysMin: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),\n longDateFormat: {\n LT: 'A h:mm ਵਜੇ',\n LTS: 'A h:mm:ss ਵਜੇ',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm ਵਜੇ',\n LLLL: 'dddd, D MMMM YYYY, A h:mm ਵਜੇ',\n },\n calendar: {\n sameDay: '[ਅਜ] LT',\n nextDay: '[ਕਲ] LT',\n nextWeek: '[ਅਗਲਾ] dddd, LT',\n lastDay: '[ਕਲ] LT',\n lastWeek: '[ਪਿਛਲੇ] dddd, LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s ਵਿੱਚ',\n past: '%s ਪਿਛਲੇ',\n s: 'ਕੁਝ ਸਕਿੰਟ',\n ss: '%d ਸਕਿੰਟ',\n m: 'ਇਕ ਮਿੰਟ',\n mm: '%d ਮਿੰਟ',\n h: 'ਇੱਕ ਘੰਟਾ',\n hh: '%d ਘੰਟੇ',\n d: 'ਇੱਕ ਦਿਨ',\n dd: '%d ਦਿਨ',\n M: 'ਇੱਕ ਮਹੀਨਾ',\n MM: '%d ਮਹੀਨੇ',\n y: 'ਇੱਕ ਸਾਲ',\n yy: '%d ਸਾਲ',\n },\n preparse: function (string) {\n return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n // Punjabi notation for meridiems are quite fuzzy in practice. While there exists\n // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.\n meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'ਰਾਤ') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'ਸਵੇਰ') {\n return hour;\n } else if (meridiem === 'ਦੁਪਹਿਰ') {\n return hour >= 10 ? hour : hour + 12;\n } else if (meridiem === 'ਸ਼ਾਮ') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'ਰਾਤ';\n } else if (hour < 10) {\n return 'ਸਵੇਰ';\n } else if (hour < 17) {\n return 'ਦੁਪਹਿਰ';\n } else if (hour < 20) {\n return 'ਸ਼ਾਮ';\n } else {\n return 'ਰਾਤ';\n }\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n },\n });\n\n return paIn;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/pa-in.js\n// module id = 498\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Polish [pl]\n//! author : Rafal Hirsz : https://github.com/evoL\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split(\n '_'\n ),\n monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split(\n '_'\n );\n function plural(n) {\n return n % 10 < 5 && n % 10 > 1 && ~~(n / 10) % 10 !== 1;\n }\n function translate(number, withoutSuffix, key) {\n var result = number + ' ';\n switch (key) {\n case 'ss':\n return result + (plural(number) ? 'sekundy' : 'sekund');\n case 'm':\n return withoutSuffix ? 'minuta' : 'minutę';\n case 'mm':\n return result + (plural(number) ? 'minuty' : 'minut');\n case 'h':\n return withoutSuffix ? 'godzina' : 'godzinę';\n case 'hh':\n return result + (plural(number) ? 'godziny' : 'godzin');\n case 'MM':\n return result + (plural(number) ? 'miesiące' : 'miesięcy');\n case 'yy':\n return result + (plural(number) ? 'lata' : 'lat');\n }\n }\n\n var pl = moment.defineLocale('pl', {\n months: function (momentToFormat, format) {\n if (!momentToFormat) {\n return monthsNominative;\n } else if (format === '') {\n // Hack: if format empty we know this is used to generate\n // RegExp by moment. Give then back both valid forms of months\n // in RegExp ready format.\n return (\n '(' +\n monthsSubjective[momentToFormat.month()] +\n '|' +\n monthsNominative[momentToFormat.month()] +\n ')'\n );\n } else if (/D MMMM/.test(format)) {\n return monthsSubjective[momentToFormat.month()];\n } else {\n return monthsNominative[momentToFormat.month()];\n }\n },\n monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),\n weekdays: 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split(\n '_'\n ),\n weekdaysShort: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'),\n weekdaysMin: 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Dziś o] LT',\n nextDay: '[Jutro o] LT',\n nextWeek: function () {\n switch (this.day()) {\n case 0:\n return '[W niedzielę o] LT';\n\n case 2:\n return '[We wtorek o] LT';\n\n case 3:\n return '[W środę o] LT';\n\n case 6:\n return '[W sobotę o] LT';\n\n default:\n return '[W] dddd [o] LT';\n }\n },\n lastDay: '[Wczoraj o] LT',\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n return '[W zeszłą niedzielę o] LT';\n case 3:\n return '[W zeszłą środę o] LT';\n case 6:\n return '[W zeszłą sobotę o] LT';\n default:\n return '[W zeszły] dddd [o] LT';\n }\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'za %s',\n past: '%s temu',\n s: 'kilka sekund',\n ss: translate,\n m: translate,\n mm: translate,\n h: translate,\n hh: translate,\n d: '1 dzień',\n dd: '%d dni',\n M: 'miesiąc',\n MM: translate,\n y: 'rok',\n yy: translate,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return pl;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/pl.js\n// module id = 499\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Portuguese [pt]\n//! author : Jefferson : https://github.com/jalex79\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var pt = moment.defineLocale('pt', {\n months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split(\n '_'\n ),\n monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),\n weekdays: 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split(\n '_'\n ),\n weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),\n weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D [de] MMMM [de] YYYY',\n LLL: 'D [de] MMMM [de] YYYY HH:mm',\n LLLL: 'dddd, D [de] MMMM [de] YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Hoje às] LT',\n nextDay: '[Amanhã às] LT',\n nextWeek: 'dddd [às] LT',\n lastDay: '[Ontem às] LT',\n lastWeek: function () {\n return this.day() === 0 || this.day() === 6\n ? '[Último] dddd [às] LT' // Saturday + Sunday\n : '[Última] dddd [às] LT'; // Monday - Friday\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'em %s',\n past: 'há %s',\n s: 'segundos',\n ss: '%d segundos',\n m: 'um minuto',\n mm: '%d minutos',\n h: 'uma hora',\n hh: '%d horas',\n d: 'um dia',\n dd: '%d dias',\n M: 'um mês',\n MM: '%d meses',\n y: 'um ano',\n yy: '%d anos',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return pt;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/pt.js\n// module id = 500\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Portuguese (Brazil) [pt-br]\n//! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var ptBr = moment.defineLocale('pt-br', {\n months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split(\n '_'\n ),\n monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),\n weekdays: 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split(\n '_'\n ),\n weekdaysShort: 'dom_seg_ter_qua_qui_sex_sáb'.split('_'),\n weekdaysMin: 'do_2ª_3ª_4ª_5ª_6ª_sá'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D [de] MMMM [de] YYYY',\n LLL: 'D [de] MMMM [de] YYYY [às] HH:mm',\n LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm',\n },\n calendar: {\n sameDay: '[Hoje às] LT',\n nextDay: '[Amanhã às] LT',\n nextWeek: 'dddd [às] LT',\n lastDay: '[Ontem às] LT',\n lastWeek: function () {\n return this.day() === 0 || this.day() === 6\n ? '[Último] dddd [às] LT' // Saturday + Sunday\n : '[Última] dddd [às] LT'; // Monday - Friday\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'em %s',\n past: 'há %s',\n s: 'poucos segundos',\n ss: '%d segundos',\n m: 'um minuto',\n mm: '%d minutos',\n h: 'uma hora',\n hh: '%d horas',\n d: 'um dia',\n dd: '%d dias',\n M: 'um mês',\n MM: '%d meses',\n y: 'um ano',\n yy: '%d anos',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n });\n\n return ptBr;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/pt-br.js\n// module id = 501\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Romanian [ro]\n//! author : Vlad Gurdiga : https://github.com/gurdiga\n//! author : Valentin Agachi : https://github.com/avaly\n//! author : Emanuel Cepoi : https://github.com/cepem\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function relativeTimeWithPlural(number, withoutSuffix, key) {\n var format = {\n ss: 'secunde',\n mm: 'minute',\n hh: 'ore',\n dd: 'zile',\n MM: 'luni',\n yy: 'ani',\n },\n separator = ' ';\n if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {\n separator = ' de ';\n }\n return number + separator + format[key];\n }\n\n var ro = moment.defineLocale('ro', {\n months: 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split(\n '_'\n ),\n monthsShort: 'ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),\n weekdaysShort: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),\n weekdaysMin: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY H:mm',\n LLLL: 'dddd, D MMMM YYYY H:mm',\n },\n calendar: {\n sameDay: '[azi la] LT',\n nextDay: '[mâine la] LT',\n nextWeek: 'dddd [la] LT',\n lastDay: '[ieri la] LT',\n lastWeek: '[fosta] dddd [la] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'peste %s',\n past: '%s în urmă',\n s: 'câteva secunde',\n ss: relativeTimeWithPlural,\n m: 'un minut',\n mm: relativeTimeWithPlural,\n h: 'o oră',\n hh: relativeTimeWithPlural,\n d: 'o zi',\n dd: relativeTimeWithPlural,\n M: 'o lună',\n MM: relativeTimeWithPlural,\n y: 'un an',\n yy: relativeTimeWithPlural,\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return ro;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ro.js\n// module id = 502\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Russian [ru]\n//! author : Viktorminator : https://github.com/Viktorminator\n//! author : Menelion Elensúle : https://github.com/Oire\n//! author : Коренберг Марк : https://github.com/socketpair\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function plural(word, num) {\n var forms = word.split('_');\n return num % 10 === 1 && num % 100 !== 11\n ? forms[0]\n : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)\n ? forms[1]\n : forms[2];\n }\n function relativeTimeWithPlural(number, withoutSuffix, key) {\n var format = {\n ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',\n mm: withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',\n hh: 'час_часа_часов',\n dd: 'день_дня_дней',\n MM: 'месяц_месяца_месяцев',\n yy: 'год_года_лет',\n };\n if (key === 'm') {\n return withoutSuffix ? 'минута' : 'минуту';\n } else {\n return number + ' ' + plural(format[key], +number);\n }\n }\n var monthsParse = [\n /^янв/i,\n /^фев/i,\n /^мар/i,\n /^апр/i,\n /^ма[йя]/i,\n /^июн/i,\n /^июл/i,\n /^авг/i,\n /^сен/i,\n /^окт/i,\n /^ноя/i,\n /^дек/i,\n ];\n\n // http://new.gramota.ru/spravka/rules/139-prop : § 103\n // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637\n // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753\n var ru = moment.defineLocale('ru', {\n months: {\n format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split(\n '_'\n ),\n standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split(\n '_'\n ),\n },\n monthsShort: {\n // по CLDR именно \"июл.\" и \"июн.\", но какой смысл менять букву на точку?\n format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split(\n '_'\n ),\n standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split(\n '_'\n ),\n },\n weekdays: {\n standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split(\n '_'\n ),\n format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split(\n '_'\n ),\n isFormat: /\\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/,\n },\n weekdaysShort: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),\n weekdaysMin: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n\n // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки\n monthsRegex: /^(январ[ья]|янв\\.?|феврал[ья]|февр?\\.?|марта?|мар\\.?|апрел[ья]|апр\\.?|ма[йя]|июн[ья]|июн\\.?|июл[ья]|июл\\.?|августа?|авг\\.?|сентябр[ья]|сент?\\.?|октябр[ья]|окт\\.?|ноябр[ья]|нояб?\\.?|декабр[ья]|дек\\.?)/i,\n\n // копия предыдущего\n monthsShortRegex: /^(январ[ья]|янв\\.?|феврал[ья]|февр?\\.?|марта?|мар\\.?|апрел[ья]|апр\\.?|ма[йя]|июн[ья]|июн\\.?|июл[ья]|июл\\.?|августа?|авг\\.?|сентябр[ья]|сент?\\.?|октябр[ья]|окт\\.?|ноябр[ья]|нояб?\\.?|декабр[ья]|дек\\.?)/i,\n\n // полные названия с падежами\n monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,\n\n // Выражение, которое соответствует только сокращённым формам\n monthsShortStrictRegex: /^(янв\\.|февр?\\.|мар[т.]|апр\\.|ма[яй]|июн[ья.]|июл[ья.]|авг\\.|сент?\\.|окт\\.|нояб?\\.|дек\\.)/i,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY г.',\n LLL: 'D MMMM YYYY г., H:mm',\n LLLL: 'dddd, D MMMM YYYY г., H:mm',\n },\n calendar: {\n sameDay: '[Сегодня, в] LT',\n nextDay: '[Завтра, в] LT',\n lastDay: '[Вчера, в] LT',\n nextWeek: function (now) {\n if (now.week() !== this.week()) {\n switch (this.day()) {\n case 0:\n return '[В следующее] dddd, [в] LT';\n case 1:\n case 2:\n case 4:\n return '[В следующий] dddd, [в] LT';\n case 3:\n case 5:\n case 6:\n return '[В следующую] dddd, [в] LT';\n }\n } else {\n if (this.day() === 2) {\n return '[Во] dddd, [в] LT';\n } else {\n return '[В] dddd, [в] LT';\n }\n }\n },\n lastWeek: function (now) {\n if (now.week() !== this.week()) {\n switch (this.day()) {\n case 0:\n return '[В прошлое] dddd, [в] LT';\n case 1:\n case 2:\n case 4:\n return '[В прошлый] dddd, [в] LT';\n case 3:\n case 5:\n case 6:\n return '[В прошлую] dddd, [в] LT';\n }\n } else {\n if (this.day() === 2) {\n return '[Во] dddd, [в] LT';\n } else {\n return '[В] dddd, [в] LT';\n }\n }\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'через %s',\n past: '%s назад',\n s: 'несколько секунд',\n ss: relativeTimeWithPlural,\n m: relativeTimeWithPlural,\n mm: relativeTimeWithPlural,\n h: 'час',\n hh: relativeTimeWithPlural,\n d: 'день',\n dd: relativeTimeWithPlural,\n M: 'месяц',\n MM: relativeTimeWithPlural,\n y: 'год',\n yy: relativeTimeWithPlural,\n },\n meridiemParse: /ночи|утра|дня|вечера/i,\n isPM: function (input) {\n return /^(дня|вечера)$/.test(input);\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'ночи';\n } else if (hour < 12) {\n return 'утра';\n } else if (hour < 17) {\n return 'дня';\n } else {\n return 'вечера';\n }\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(й|го|я)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'M':\n case 'd':\n case 'DDD':\n return number + '-й';\n case 'D':\n return number + '-го';\n case 'w':\n case 'W':\n return number + '-я';\n default:\n return number;\n }\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return ru;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ru.js\n// module id = 503\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Sindhi [sd]\n//! author : Narain Sagar : https://github.com/narainsagar\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var months = [\n 'جنوري',\n 'فيبروري',\n 'مارچ',\n 'اپريل',\n 'مئي',\n 'جون',\n 'جولاءِ',\n 'آگسٽ',\n 'سيپٽمبر',\n 'آڪٽوبر',\n 'نومبر',\n 'ڊسمبر',\n ],\n days = ['آچر', 'سومر', 'اڱارو', 'اربع', 'خميس', 'جمع', 'ڇنڇر'];\n\n var sd = moment.defineLocale('sd', {\n months: months,\n monthsShort: months,\n weekdays: days,\n weekdaysShort: days,\n weekdaysMin: days,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd، D MMMM YYYY HH:mm',\n },\n meridiemParse: /صبح|شام/,\n isPM: function (input) {\n return 'شام' === input;\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'صبح';\n }\n return 'شام';\n },\n calendar: {\n sameDay: '[اڄ] LT',\n nextDay: '[سڀاڻي] LT',\n nextWeek: 'dddd [اڳين هفتي تي] LT',\n lastDay: '[ڪالهه] LT',\n lastWeek: '[گزريل هفتي] dddd [تي] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s پوء',\n past: '%s اڳ',\n s: 'چند سيڪنڊ',\n ss: '%d سيڪنڊ',\n m: 'هڪ منٽ',\n mm: '%d منٽ',\n h: 'هڪ ڪلاڪ',\n hh: '%d ڪلاڪ',\n d: 'هڪ ڏينهن',\n dd: '%d ڏينهن',\n M: 'هڪ مهينو',\n MM: '%d مهينا',\n y: 'هڪ سال',\n yy: '%d سال',\n },\n preparse: function (string) {\n return string.replace(/،/g, ',');\n },\n postformat: function (string) {\n return string.replace(/,/g, '،');\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return sd;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/sd.js\n// module id = 504\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Northern Sami [se]\n//! authors : Bård Rolstad Henriksen : https://github.com/karamell\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var se = moment.defineLocale('se', {\n months: 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split(\n '_'\n ),\n monthsShort: 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split(\n '_'\n ),\n weekdays: 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split(\n '_'\n ),\n weekdaysShort: 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),\n weekdaysMin: 's_v_m_g_d_b_L'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'MMMM D. [b.] YYYY',\n LLL: 'MMMM D. [b.] YYYY [ti.] HH:mm',\n LLLL: 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm',\n },\n calendar: {\n sameDay: '[otne ti] LT',\n nextDay: '[ihttin ti] LT',\n nextWeek: 'dddd [ti] LT',\n lastDay: '[ikte ti] LT',\n lastWeek: '[ovddit] dddd [ti] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s geažes',\n past: 'maŋit %s',\n s: 'moadde sekunddat',\n ss: '%d sekunddat',\n m: 'okta minuhta',\n mm: '%d minuhtat',\n h: 'okta diimmu',\n hh: '%d diimmut',\n d: 'okta beaivi',\n dd: '%d beaivvit',\n M: 'okta mánnu',\n MM: '%d mánut',\n y: 'okta jahki',\n yy: '%d jagit',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return se;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/se.js\n// module id = 505\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Sinhalese [si]\n//! author : Sampath Sitinamaluwa : https://github.com/sampathsris\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n /*jshint -W100*/\n var si = moment.defineLocale('si', {\n months: 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split(\n '_'\n ),\n monthsShort: 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split(\n '_'\n ),\n weekdays: 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split(\n '_'\n ),\n weekdaysShort: 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),\n weekdaysMin: 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'a h:mm',\n LTS: 'a h:mm:ss',\n L: 'YYYY/MM/DD',\n LL: 'YYYY MMMM D',\n LLL: 'YYYY MMMM D, a h:mm',\n LLLL: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss',\n },\n calendar: {\n sameDay: '[අද] LT[ට]',\n nextDay: '[හෙට] LT[ට]',\n nextWeek: 'dddd LT[ට]',\n lastDay: '[ඊයේ] LT[ට]',\n lastWeek: '[පසුගිය] dddd LT[ට]',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%sකින්',\n past: '%sකට පෙර',\n s: 'තත්පර කිහිපය',\n ss: 'තත්පර %d',\n m: 'මිනිත්තුව',\n mm: 'මිනිත්තු %d',\n h: 'පැය',\n hh: 'පැය %d',\n d: 'දිනය',\n dd: 'දින %d',\n M: 'මාසය',\n MM: 'මාස %d',\n y: 'වසර',\n yy: 'වසර %d',\n },\n dayOfMonthOrdinalParse: /\\d{1,2} වැනි/,\n ordinal: function (number) {\n return number + ' වැනි';\n },\n meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,\n isPM: function (input) {\n return input === 'ප.ව.' || input === 'පස් වරු';\n },\n meridiem: function (hours, minutes, isLower) {\n if (hours > 11) {\n return isLower ? 'ප.ව.' : 'පස් වරු';\n } else {\n return isLower ? 'පෙ.ව.' : 'පෙර වරු';\n }\n },\n });\n\n return si;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/si.js\n// module id = 506\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Slovak [sk]\n//! author : Martin Minka : https://github.com/k2s\n//! based on work of petrbela : https://github.com/petrbela\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split(\n '_'\n ),\n monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');\n function plural(n) {\n return n > 1 && n < 5;\n }\n function translate(number, withoutSuffix, key, isFuture) {\n var result = number + ' ';\n switch (key) {\n case 's': // a few seconds / in a few seconds / a few seconds ago\n return withoutSuffix || isFuture ? 'pár sekúnd' : 'pár sekundami';\n case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'sekundy' : 'sekúnd');\n } else {\n return result + 'sekundami';\n }\n case 'm': // a minute / in a minute / a minute ago\n return withoutSuffix ? 'minúta' : isFuture ? 'minútu' : 'minútou';\n case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'minúty' : 'minút');\n } else {\n return result + 'minútami';\n }\n case 'h': // an hour / in an hour / an hour ago\n return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';\n case 'hh': // 9 hours / in 9 hours / 9 hours ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'hodiny' : 'hodín');\n } else {\n return result + 'hodinami';\n }\n case 'd': // a day / in a day / a day ago\n return withoutSuffix || isFuture ? 'deň' : 'dňom';\n case 'dd': // 9 days / in 9 days / 9 days ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'dni' : 'dní');\n } else {\n return result + 'dňami';\n }\n case 'M': // a month / in a month / a month ago\n return withoutSuffix || isFuture ? 'mesiac' : 'mesiacom';\n case 'MM': // 9 months / in 9 months / 9 months ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'mesiace' : 'mesiacov');\n } else {\n return result + 'mesiacmi';\n }\n case 'y': // a year / in a year / a year ago\n return withoutSuffix || isFuture ? 'rok' : 'rokom';\n case 'yy': // 9 years / in 9 years / 9 years ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'roky' : 'rokov');\n } else {\n return result + 'rokmi';\n }\n }\n }\n\n var sk = moment.defineLocale('sk', {\n months: months,\n monthsShort: monthsShort,\n weekdays: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),\n weekdaysShort: 'ne_po_ut_st_št_pi_so'.split('_'),\n weekdaysMin: 'ne_po_ut_st_št_pi_so'.split('_'),\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY H:mm',\n LLLL: 'dddd D. MMMM YYYY H:mm',\n },\n calendar: {\n sameDay: '[dnes o] LT',\n nextDay: '[zajtra o] LT',\n nextWeek: function () {\n switch (this.day()) {\n case 0:\n return '[v nedeľu o] LT';\n case 1:\n case 2:\n return '[v] dddd [o] LT';\n case 3:\n return '[v stredu o] LT';\n case 4:\n return '[vo štvrtok o] LT';\n case 5:\n return '[v piatok o] LT';\n case 6:\n return '[v sobotu o] LT';\n }\n },\n lastDay: '[včera o] LT',\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n return '[minulú nedeľu o] LT';\n case 1:\n case 2:\n return '[minulý] dddd [o] LT';\n case 3:\n return '[minulú stredu o] LT';\n case 4:\n case 5:\n return '[minulý] dddd [o] LT';\n case 6:\n return '[minulú sobotu o] LT';\n }\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'za %s',\n past: 'pred %s',\n s: translate,\n ss: translate,\n m: translate,\n mm: translate,\n h: translate,\n hh: translate,\n d: translate,\n dd: translate,\n M: translate,\n MM: translate,\n y: translate,\n yy: translate,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return sk;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/sk.js\n// module id = 507\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Slovenian [sl]\n//! author : Robert Sedovšek : https://github.com/sedovsek\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var result = number + ' ';\n switch (key) {\n case 's':\n return withoutSuffix || isFuture\n ? 'nekaj sekund'\n : 'nekaj sekundami';\n case 'ss':\n if (number === 1) {\n result += withoutSuffix ? 'sekundo' : 'sekundi';\n } else if (number === 2) {\n result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah';\n } else if (number < 5) {\n result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah';\n } else {\n result += 'sekund';\n }\n return result;\n case 'm':\n return withoutSuffix ? 'ena minuta' : 'eno minuto';\n case 'mm':\n if (number === 1) {\n result += withoutSuffix ? 'minuta' : 'minuto';\n } else if (number === 2) {\n result += withoutSuffix || isFuture ? 'minuti' : 'minutama';\n } else if (number < 5) {\n result += withoutSuffix || isFuture ? 'minute' : 'minutami';\n } else {\n result += withoutSuffix || isFuture ? 'minut' : 'minutami';\n }\n return result;\n case 'h':\n return withoutSuffix ? 'ena ura' : 'eno uro';\n case 'hh':\n if (number === 1) {\n result += withoutSuffix ? 'ura' : 'uro';\n } else if (number === 2) {\n result += withoutSuffix || isFuture ? 'uri' : 'urama';\n } else if (number < 5) {\n result += withoutSuffix || isFuture ? 'ure' : 'urami';\n } else {\n result += withoutSuffix || isFuture ? 'ur' : 'urami';\n }\n return result;\n case 'd':\n return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';\n case 'dd':\n if (number === 1) {\n result += withoutSuffix || isFuture ? 'dan' : 'dnem';\n } else if (number === 2) {\n result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';\n } else {\n result += withoutSuffix || isFuture ? 'dni' : 'dnevi';\n }\n return result;\n case 'M':\n return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';\n case 'MM':\n if (number === 1) {\n result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';\n } else if (number === 2) {\n result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';\n } else if (number < 5) {\n result += withoutSuffix || isFuture ? 'mesece' : 'meseci';\n } else {\n result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';\n }\n return result;\n case 'y':\n return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';\n case 'yy':\n if (number === 1) {\n result += withoutSuffix || isFuture ? 'leto' : 'letom';\n } else if (number === 2) {\n result += withoutSuffix || isFuture ? 'leti' : 'letoma';\n } else if (number < 5) {\n result += withoutSuffix || isFuture ? 'leta' : 'leti';\n } else {\n result += withoutSuffix || isFuture ? 'let' : 'leti';\n }\n return result;\n }\n }\n\n var sl = moment.defineLocale('sl', {\n months: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split(\n '_'\n ),\n monthsShort: 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),\n weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),\n weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD. MM. YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY H:mm',\n LLLL: 'dddd, D. MMMM YYYY H:mm',\n },\n calendar: {\n sameDay: '[danes ob] LT',\n nextDay: '[jutri ob] LT',\n\n nextWeek: function () {\n switch (this.day()) {\n case 0:\n return '[v] [nedeljo] [ob] LT';\n case 3:\n return '[v] [sredo] [ob] LT';\n case 6:\n return '[v] [soboto] [ob] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[v] dddd [ob] LT';\n }\n },\n lastDay: '[včeraj ob] LT',\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n return '[prejšnjo] [nedeljo] [ob] LT';\n case 3:\n return '[prejšnjo] [sredo] [ob] LT';\n case 6:\n return '[prejšnjo] [soboto] [ob] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[prejšnji] dddd [ob] LT';\n }\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'čez %s',\n past: 'pred %s',\n s: processRelativeTime,\n ss: processRelativeTime,\n m: processRelativeTime,\n mm: processRelativeTime,\n h: processRelativeTime,\n hh: processRelativeTime,\n d: processRelativeTime,\n dd: processRelativeTime,\n M: processRelativeTime,\n MM: processRelativeTime,\n y: processRelativeTime,\n yy: processRelativeTime,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return sl;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/sl.js\n// module id = 508\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Albanian [sq]\n//! author : Flakërim Ismani : https://github.com/flakerimi\n//! author : Menelion Elensúle : https://github.com/Oire\n//! author : Oerd Cukalla : https://github.com/oerd\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var sq = moment.defineLocale('sq', {\n months: 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split(\n '_'\n ),\n monthsShort: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),\n weekdays: 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split(\n '_'\n ),\n weekdaysShort: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),\n weekdaysMin: 'D_H_Ma_Më_E_P_Sh'.split('_'),\n weekdaysParseExact: true,\n meridiemParse: /PD|MD/,\n isPM: function (input) {\n return input.charAt(0) === 'M';\n },\n meridiem: function (hours, minutes, isLower) {\n return hours < 12 ? 'PD' : 'MD';\n },\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Sot në] LT',\n nextDay: '[Nesër në] LT',\n nextWeek: 'dddd [në] LT',\n lastDay: '[Dje në] LT',\n lastWeek: 'dddd [e kaluar në] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'në %s',\n past: '%s më parë',\n s: 'disa sekonda',\n ss: '%d sekonda',\n m: 'një minutë',\n mm: '%d minuta',\n h: 'një orë',\n hh: '%d orë',\n d: 'një ditë',\n dd: '%d ditë',\n M: 'një muaj',\n MM: '%d muaj',\n y: 'një vit',\n yy: '%d vite',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return sq;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/sq.js\n// module id = 509\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Serbian [sr]\n//! author : Milan Janačković : https://github.com/milan-j\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var translator = {\n words: {\n //Different grammatical cases\n ss: ['sekunda', 'sekunde', 'sekundi'],\n m: ['jedan minut', 'jedne minute'],\n mm: ['minut', 'minute', 'minuta'],\n h: ['jedan sat', 'jednog sata'],\n hh: ['sat', 'sata', 'sati'],\n dd: ['dan', 'dana', 'dana'],\n MM: ['mesec', 'meseca', 'meseci'],\n yy: ['godina', 'godine', 'godina'],\n },\n correctGrammaticalCase: function (number, wordKey) {\n return number === 1\n ? wordKey[0]\n : number >= 2 && number <= 4\n ? wordKey[1]\n : wordKey[2];\n },\n translate: function (number, withoutSuffix, key) {\n var wordKey = translator.words[key];\n if (key.length === 1) {\n return withoutSuffix ? wordKey[0] : wordKey[1];\n } else {\n return (\n number +\n ' ' +\n translator.correctGrammaticalCase(number, wordKey)\n );\n }\n },\n };\n\n var sr = moment.defineLocale('sr', {\n months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(\n '_'\n ),\n monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split(\n '_'\n ),\n weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),\n weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY H:mm',\n LLLL: 'dddd, D. MMMM YYYY H:mm',\n },\n calendar: {\n sameDay: '[danas u] LT',\n nextDay: '[sutra u] LT',\n nextWeek: function () {\n switch (this.day()) {\n case 0:\n return '[u] [nedelju] [u] LT';\n case 3:\n return '[u] [sredu] [u] LT';\n case 6:\n return '[u] [subotu] [u] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[u] dddd [u] LT';\n }\n },\n lastDay: '[juče u] LT',\n lastWeek: function () {\n var lastWeekDays = [\n '[prošle] [nedelje] [u] LT',\n '[prošlog] [ponedeljka] [u] LT',\n '[prošlog] [utorka] [u] LT',\n '[prošle] [srede] [u] LT',\n '[prošlog] [četvrtka] [u] LT',\n '[prošlog] [petka] [u] LT',\n '[prošle] [subote] [u] LT',\n ];\n return lastWeekDays[this.day()];\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'za %s',\n past: 'pre %s',\n s: 'nekoliko sekundi',\n ss: translator.translate,\n m: translator.translate,\n mm: translator.translate,\n h: translator.translate,\n hh: translator.translate,\n d: 'dan',\n dd: translator.translate,\n M: 'mesec',\n MM: translator.translate,\n y: 'godinu',\n yy: translator.translate,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return sr;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/sr.js\n// module id = 510\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Serbian Cyrillic [sr-cyrl]\n//! author : Milan Janačković : https://github.com/milan-j\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var translator = {\n words: {\n //Different grammatical cases\n ss: ['секунда', 'секунде', 'секунди'],\n m: ['један минут', 'једне минуте'],\n mm: ['минут', 'минуте', 'минута'],\n h: ['један сат', 'једног сата'],\n hh: ['сат', 'сата', 'сати'],\n dd: ['дан', 'дана', 'дана'],\n MM: ['месец', 'месеца', 'месеци'],\n yy: ['година', 'године', 'година'],\n },\n correctGrammaticalCase: function (number, wordKey) {\n return number === 1\n ? wordKey[0]\n : number >= 2 && number <= 4\n ? wordKey[1]\n : wordKey[2];\n },\n translate: function (number, withoutSuffix, key) {\n var wordKey = translator.words[key];\n if (key.length === 1) {\n return withoutSuffix ? wordKey[0] : wordKey[1];\n } else {\n return (\n number +\n ' ' +\n translator.correctGrammaticalCase(number, wordKey)\n );\n }\n },\n };\n\n var srCyrl = moment.defineLocale('sr-cyrl', {\n months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split(\n '_'\n ),\n monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),\n weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),\n weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY H:mm',\n LLLL: 'dddd, D. MMMM YYYY H:mm',\n },\n calendar: {\n sameDay: '[данас у] LT',\n nextDay: '[сутра у] LT',\n nextWeek: function () {\n switch (this.day()) {\n case 0:\n return '[у] [недељу] [у] LT';\n case 3:\n return '[у] [среду] [у] LT';\n case 6:\n return '[у] [суботу] [у] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[у] dddd [у] LT';\n }\n },\n lastDay: '[јуче у] LT',\n lastWeek: function () {\n var lastWeekDays = [\n '[прошле] [недеље] [у] LT',\n '[прошлог] [понедељка] [у] LT',\n '[прошлог] [уторка] [у] LT',\n '[прошле] [среде] [у] LT',\n '[прошлог] [четвртка] [у] LT',\n '[прошлог] [петка] [у] LT',\n '[прошле] [суботе] [у] LT',\n ];\n return lastWeekDays[this.day()];\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'за %s',\n past: 'пре %s',\n s: 'неколико секунди',\n ss: translator.translate,\n m: translator.translate,\n mm: translator.translate,\n h: translator.translate,\n hh: translator.translate,\n d: 'дан',\n dd: translator.translate,\n M: 'месец',\n MM: translator.translate,\n y: 'годину',\n yy: translator.translate,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return srCyrl;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/sr-cyrl.js\n// module id = 511\n// module chunks = 0","//! moment.js locale configuration\n//! locale : siSwati [ss]\n//! author : Nicolai Davies : https://github.com/nicolaidavies\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var ss = moment.defineLocale('ss', {\n months: \"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni\".split(\n '_'\n ),\n monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),\n weekdays: 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split(\n '_'\n ),\n weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),\n weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY h:mm A',\n LLLL: 'dddd, D MMMM YYYY h:mm A',\n },\n calendar: {\n sameDay: '[Namuhla nga] LT',\n nextDay: '[Kusasa nga] LT',\n nextWeek: 'dddd [nga] LT',\n lastDay: '[Itolo nga] LT',\n lastWeek: 'dddd [leliphelile] [nga] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'nga %s',\n past: 'wenteka nga %s',\n s: 'emizuzwana lomcane',\n ss: '%d mzuzwana',\n m: 'umzuzu',\n mm: '%d emizuzu',\n h: 'lihora',\n hh: '%d emahora',\n d: 'lilanga',\n dd: '%d emalanga',\n M: 'inyanga',\n MM: '%d tinyanga',\n y: 'umnyaka',\n yy: '%d iminyaka',\n },\n meridiemParse: /ekuseni|emini|entsambama|ebusuku/,\n meridiem: function (hours, minutes, isLower) {\n if (hours < 11) {\n return 'ekuseni';\n } else if (hours < 15) {\n return 'emini';\n } else if (hours < 19) {\n return 'entsambama';\n } else {\n return 'ebusuku';\n }\n },\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'ekuseni') {\n return hour;\n } else if (meridiem === 'emini') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') {\n if (hour === 0) {\n return 0;\n }\n return hour + 12;\n }\n },\n dayOfMonthOrdinalParse: /\\d{1,2}/,\n ordinal: '%d',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return ss;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ss.js\n// module id = 512\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Swedish [sv]\n//! author : Jens Alm : https://github.com/ulmus\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var sv = moment.defineLocale('sv', {\n months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split(\n '_'\n ),\n monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),\n weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),\n weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'),\n weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY-MM-DD',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY [kl.] HH:mm',\n LLLL: 'dddd D MMMM YYYY [kl.] HH:mm',\n lll: 'D MMM YYYY HH:mm',\n llll: 'ddd D MMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Idag] LT',\n nextDay: '[Imorgon] LT',\n lastDay: '[Igår] LT',\n nextWeek: '[På] dddd LT',\n lastWeek: '[I] dddd[s] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'om %s',\n past: 'för %s sedan',\n s: 'några sekunder',\n ss: '%d sekunder',\n m: 'en minut',\n mm: '%d minuter',\n h: 'en timme',\n hh: '%d timmar',\n d: 'en dag',\n dd: '%d dagar',\n M: 'en månad',\n MM: '%d månader',\n y: 'ett år',\n yy: '%d år',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(\\:e|\\:a)/,\n ordinal: function (number) {\n var b = number % 10,\n output =\n ~~((number % 100) / 10) === 1\n ? ':e'\n : b === 1\n ? ':a'\n : b === 2\n ? ':a'\n : b === 3\n ? ':e'\n : ':e';\n return number + output;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return sv;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/sv.js\n// module id = 513\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Swahili [sw]\n//! author : Fahad Kassim : https://github.com/fadsel\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var sw = moment.defineLocale('sw', {\n months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split(\n '_'\n ),\n monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),\n weekdays: 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split(\n '_'\n ),\n weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),\n weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'hh:mm A',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[leo saa] LT',\n nextDay: '[kesho saa] LT',\n nextWeek: '[wiki ijayo] dddd [saat] LT',\n lastDay: '[jana] LT',\n lastWeek: '[wiki iliyopita] dddd [saat] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s baadaye',\n past: 'tokea %s',\n s: 'hivi punde',\n ss: 'sekunde %d',\n m: 'dakika moja',\n mm: 'dakika %d',\n h: 'saa limoja',\n hh: 'masaa %d',\n d: 'siku moja',\n dd: 'siku %d',\n M: 'mwezi mmoja',\n MM: 'miezi %d',\n y: 'mwaka mmoja',\n yy: 'miaka %d',\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return sw;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/sw.js\n// module id = 514\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Tamil [ta]\n//! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '௧',\n '2': '௨',\n '3': '௩',\n '4': '௪',\n '5': '௫',\n '6': '௬',\n '7': '௭',\n '8': '௮',\n '9': '௯',\n '0': '௦',\n },\n numberMap = {\n '௧': '1',\n '௨': '2',\n '௩': '3',\n '௪': '4',\n '௫': '5',\n '௬': '6',\n '௭': '7',\n '௮': '8',\n '௯': '9',\n '௦': '0',\n };\n\n var ta = moment.defineLocale('ta', {\n months: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split(\n '_'\n ),\n monthsShort: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split(\n '_'\n ),\n weekdays: 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split(\n '_'\n ),\n weekdaysShort: 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split(\n '_'\n ),\n weekdaysMin: 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, HH:mm',\n LLLL: 'dddd, D MMMM YYYY, HH:mm',\n },\n calendar: {\n sameDay: '[இன்று] LT',\n nextDay: '[நாளை] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[நேற்று] LT',\n lastWeek: '[கடந்த வாரம்] dddd, LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s இல்',\n past: '%s முன்',\n s: 'ஒரு சில விநாடிகள்',\n ss: '%d விநாடிகள்',\n m: 'ஒரு நிமிடம்',\n mm: '%d நிமிடங்கள்',\n h: 'ஒரு மணி நேரம்',\n hh: '%d மணி நேரம்',\n d: 'ஒரு நாள்',\n dd: '%d நாட்கள்',\n M: 'ஒரு மாதம்',\n MM: '%d மாதங்கள்',\n y: 'ஒரு வருடம்',\n yy: '%d ஆண்டுகள்',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}வது/,\n ordinal: function (number) {\n return number + 'வது';\n },\n preparse: function (string) {\n return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n // refer http://ta.wikipedia.org/s/1er1\n meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,\n meridiem: function (hour, minute, isLower) {\n if (hour < 2) {\n return ' யாமம்';\n } else if (hour < 6) {\n return ' வைகறை'; // வைகறை\n } else if (hour < 10) {\n return ' காலை'; // காலை\n } else if (hour < 14) {\n return ' நண்பகல்'; // நண்பகல்\n } else if (hour < 18) {\n return ' எற்பாடு'; // எற்பாடு\n } else if (hour < 22) {\n return ' மாலை'; // மாலை\n } else {\n return ' யாமம்';\n }\n },\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'யாமம்') {\n return hour < 2 ? hour : hour + 12;\n } else if (meridiem === 'வைகறை' || meridiem === 'காலை') {\n return hour;\n } else if (meridiem === 'நண்பகல்') {\n return hour >= 10 ? hour : hour + 12;\n } else {\n return hour + 12;\n }\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n },\n });\n\n return ta;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ta.js\n// module id = 515\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Telugu [te]\n//! author : Krishna Chaitanya Thota : https://github.com/kcthota\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var te = moment.defineLocale('te', {\n months: 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split(\n '_'\n ),\n monthsShort: 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split(\n '_'\n ),\n weekdaysShort: 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),\n weekdaysMin: 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),\n longDateFormat: {\n LT: 'A h:mm',\n LTS: 'A h:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm',\n LLLL: 'dddd, D MMMM YYYY, A h:mm',\n },\n calendar: {\n sameDay: '[నేడు] LT',\n nextDay: '[రేపు] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[నిన్న] LT',\n lastWeek: '[గత] dddd, LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s లో',\n past: '%s క్రితం',\n s: 'కొన్ని క్షణాలు',\n ss: '%d సెకన్లు',\n m: 'ఒక నిమిషం',\n mm: '%d నిమిషాలు',\n h: 'ఒక గంట',\n hh: '%d గంటలు',\n d: 'ఒక రోజు',\n dd: '%d రోజులు',\n M: 'ఒక నెల',\n MM: '%d నెలలు',\n y: 'ఒక సంవత్సరం',\n yy: '%d సంవత్సరాలు',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}వ/,\n ordinal: '%dవ',\n meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'రాత్రి') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'ఉదయం') {\n return hour;\n } else if (meridiem === 'మధ్యాహ్నం') {\n return hour >= 10 ? hour : hour + 12;\n } else if (meridiem === 'సాయంత్రం') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'రాత్రి';\n } else if (hour < 10) {\n return 'ఉదయం';\n } else if (hour < 17) {\n return 'మధ్యాహ్నం';\n } else if (hour < 20) {\n return 'సాయంత్రం';\n } else {\n return 'రాత్రి';\n }\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n },\n });\n\n return te;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/te.js\n// module id = 516\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Tetun Dili (East Timor) [tet]\n//! author : Joshua Brooks : https://github.com/joshbrooks\n//! author : Onorio De J. Afonso : https://github.com/marobo\n//! author : Sonia Simoes : https://github.com/soniasimoes\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var tet = moment.defineLocale('tet', {\n months: 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split(\n '_'\n ),\n monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),\n weekdays: 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split('_'),\n weekdaysShort: 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'),\n weekdaysMin: 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Ohin iha] LT',\n nextDay: '[Aban iha] LT',\n nextWeek: 'dddd [iha] LT',\n lastDay: '[Horiseik iha] LT',\n lastWeek: 'dddd [semana kotuk] [iha] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'iha %s',\n past: '%s liuba',\n s: 'segundu balun',\n ss: 'segundu %d',\n m: 'minutu ida',\n mm: 'minutu %d',\n h: 'oras ida',\n hh: 'oras %d',\n d: 'loron ida',\n dd: 'loron %d',\n M: 'fulan ida',\n MM: 'fulan %d',\n y: 'tinan ida',\n yy: 'tinan %d',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function (number) {\n var b = number % 10,\n output =\n ~~((number % 100) / 10) === 1\n ? 'th'\n : b === 1\n ? 'st'\n : b === 2\n ? 'nd'\n : b === 3\n ? 'rd'\n : 'th';\n return number + output;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return tet;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/tet.js\n// module id = 517\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Tajik [tg]\n//! author : Orif N. Jr. : https://github.com/orif-jr\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var suffixes = {\n 0: '-ум',\n 1: '-ум',\n 2: '-юм',\n 3: '-юм',\n 4: '-ум',\n 5: '-ум',\n 6: '-ум',\n 7: '-ум',\n 8: '-ум',\n 9: '-ум',\n 10: '-ум',\n 12: '-ум',\n 13: '-ум',\n 20: '-ум',\n 30: '-юм',\n 40: '-ум',\n 50: '-ум',\n 60: '-ум',\n 70: '-ум',\n 80: '-ум',\n 90: '-ум',\n 100: '-ум',\n };\n\n var tg = moment.defineLocale('tg', {\n months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(\n '_'\n ),\n monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),\n weekdays: 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split(\n '_'\n ),\n weekdaysShort: 'яшб_дшб_сшб_чшб_пшб_ҷум_шнб'.split('_'),\n weekdaysMin: 'яш_дш_сш_чш_пш_ҷм_шб'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Имрӯз соати] LT',\n nextDay: '[Пагоҳ соати] LT',\n lastDay: '[Дирӯз соати] LT',\n nextWeek: 'dddd[и] [ҳафтаи оянда соати] LT',\n lastWeek: 'dddd[и] [ҳафтаи гузашта соати] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'баъди %s',\n past: '%s пеш',\n s: 'якчанд сония',\n m: 'як дақиқа',\n mm: '%d дақиқа',\n h: 'як соат',\n hh: '%d соат',\n d: 'як рӯз',\n dd: '%d рӯз',\n M: 'як моҳ',\n MM: '%d моҳ',\n y: 'як сол',\n yy: '%d сол',\n },\n meridiemParse: /шаб|субҳ|рӯз|бегоҳ/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'шаб') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'субҳ') {\n return hour;\n } else if (meridiem === 'рӯз') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === 'бегоҳ') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'шаб';\n } else if (hour < 11) {\n return 'субҳ';\n } else if (hour < 16) {\n return 'рӯз';\n } else if (hour < 19) {\n return 'бегоҳ';\n } else {\n return 'шаб';\n }\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(ум|юм)/,\n ordinal: function (number) {\n var a = number % 10,\n b = number >= 100 ? 100 : null;\n return number + (suffixes[number] || suffixes[a] || suffixes[b]);\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 1th is the first week of the year.\n },\n });\n\n return tg;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/tg.js\n// module id = 518\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Thai [th]\n//! author : Kridsada Thanabulpong : https://github.com/sirn\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var th = moment.defineLocale('th', {\n months: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split(\n '_'\n ),\n monthsShort: 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),\n weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference\n weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY เวลา H:mm',\n LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm',\n },\n meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,\n isPM: function (input) {\n return input === 'หลังเที่ยง';\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'ก่อนเที่ยง';\n } else {\n return 'หลังเที่ยง';\n }\n },\n calendar: {\n sameDay: '[วันนี้ เวลา] LT',\n nextDay: '[พรุ่งนี้ เวลา] LT',\n nextWeek: 'dddd[หน้า เวลา] LT',\n lastDay: '[เมื่อวานนี้ เวลา] LT',\n lastWeek: '[วัน]dddd[ที่แล้ว เวลา] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'อีก %s',\n past: '%sที่แล้ว',\n s: 'ไม่กี่วินาที',\n ss: '%d วินาที',\n m: '1 นาที',\n mm: '%d นาที',\n h: '1 ชั่วโมง',\n hh: '%d ชั่วโมง',\n d: '1 วัน',\n dd: '%d วัน',\n M: '1 เดือน',\n MM: '%d เดือน',\n y: '1 ปี',\n yy: '%d ปี',\n },\n });\n\n return th;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/th.js\n// module id = 519\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Turkmen [trk]\n//! author : Atamyrat Abdyrahmanov : https://github.com/atamyratabdy\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var suffixes = {\n 1: \"'inji\",\n 5: \"'inji\",\n 8: \"'inji\",\n 70: \"'inji\",\n 80: \"'inji\",\n 2: \"'nji\",\n 7: \"'nji\",\n 20: \"'nji\",\n 50: \"'nji\",\n 3: \"'ünji\",\n 4: \"'ünji\",\n 100: \"'ünji\",\n 6: \"'njy\",\n 9: \"'unjy\",\n 10: \"'unjy\",\n 30: \"'unjy\",\n 60: \"'ynjy\",\n 90: \"'ynjy\",\n };\n\n var tk = moment.defineLocale('tk', {\n months: 'Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr'.split(\n '_'\n ),\n monthsShort: 'Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek'.split('_'),\n weekdays: 'Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe'.split(\n '_'\n ),\n weekdaysShort: 'Ýek_Duş_Siş_Çar_Pen_Ann_Şen'.split('_'),\n weekdaysMin: 'Ýk_Dş_Sş_Çr_Pn_An_Şn'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[bugün sagat] LT',\n nextDay: '[ertir sagat] LT',\n nextWeek: '[indiki] dddd [sagat] LT',\n lastDay: '[düýn] LT',\n lastWeek: '[geçen] dddd [sagat] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s soň',\n past: '%s öň',\n s: 'birnäçe sekunt',\n m: 'bir minut',\n mm: '%d minut',\n h: 'bir sagat',\n hh: '%d sagat',\n d: 'bir gün',\n dd: '%d gün',\n M: 'bir aý',\n MM: '%d aý',\n y: 'bir ýyl',\n yy: '%d ýyl',\n },\n ordinal: function (number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'Do':\n case 'DD':\n return number;\n default:\n if (number === 0) {\n // special case for zero\n return number + \"'unjy\";\n }\n var a = number % 10,\n b = (number % 100) - a,\n c = number >= 100 ? 100 : null;\n return number + (suffixes[a] || suffixes[b] || suffixes[c]);\n }\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return tk;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/tk.js\n// module id = 520\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Tagalog (Philippines) [tl-ph]\n//! author : Dan Hagman : https://github.com/hagmandan\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var tlPh = moment.defineLocale('tl-ph', {\n months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split(\n '_'\n ),\n monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),\n weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split(\n '_'\n ),\n weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),\n weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'MM/D/YYYY',\n LL: 'MMMM D, YYYY',\n LLL: 'MMMM D, YYYY HH:mm',\n LLLL: 'dddd, MMMM DD, YYYY HH:mm',\n },\n calendar: {\n sameDay: 'LT [ngayong araw]',\n nextDay: '[Bukas ng] LT',\n nextWeek: 'LT [sa susunod na] dddd',\n lastDay: 'LT [kahapon]',\n lastWeek: 'LT [noong nakaraang] dddd',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'sa loob ng %s',\n past: '%s ang nakalipas',\n s: 'ilang segundo',\n ss: '%d segundo',\n m: 'isang minuto',\n mm: '%d minuto',\n h: 'isang oras',\n hh: '%d oras',\n d: 'isang araw',\n dd: '%d araw',\n M: 'isang buwan',\n MM: '%d buwan',\n y: 'isang taon',\n yy: '%d taon',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}/,\n ordinal: function (number) {\n return number;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return tlPh;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/tl-ph.js\n// module id = 521\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Klingon [tlh]\n//! author : Dominika Kruk : https://github.com/amaranthrose\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');\n\n function translateFuture(output) {\n var time = output;\n time =\n output.indexOf('jaj') !== -1\n ? time.slice(0, -3) + 'leS'\n : output.indexOf('jar') !== -1\n ? time.slice(0, -3) + 'waQ'\n : output.indexOf('DIS') !== -1\n ? time.slice(0, -3) + 'nem'\n : time + ' pIq';\n return time;\n }\n\n function translatePast(output) {\n var time = output;\n time =\n output.indexOf('jaj') !== -1\n ? time.slice(0, -3) + 'Hu’'\n : output.indexOf('jar') !== -1\n ? time.slice(0, -3) + 'wen'\n : output.indexOf('DIS') !== -1\n ? time.slice(0, -3) + 'ben'\n : time + ' ret';\n return time;\n }\n\n function translate(number, withoutSuffix, string, isFuture) {\n var numberNoun = numberAsNoun(number);\n switch (string) {\n case 'ss':\n return numberNoun + ' lup';\n case 'mm':\n return numberNoun + ' tup';\n case 'hh':\n return numberNoun + ' rep';\n case 'dd':\n return numberNoun + ' jaj';\n case 'MM':\n return numberNoun + ' jar';\n case 'yy':\n return numberNoun + ' DIS';\n }\n }\n\n function numberAsNoun(number) {\n var hundred = Math.floor((number % 1000) / 100),\n ten = Math.floor((number % 100) / 10),\n one = number % 10,\n word = '';\n if (hundred > 0) {\n word += numbersNouns[hundred] + 'vatlh';\n }\n if (ten > 0) {\n word += (word !== '' ? ' ' : '') + numbersNouns[ten] + 'maH';\n }\n if (one > 0) {\n word += (word !== '' ? ' ' : '') + numbersNouns[one];\n }\n return word === '' ? 'pagh' : word;\n }\n\n var tlh = moment.defineLocale('tlh', {\n months: 'tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’'.split(\n '_'\n ),\n monthsShort: 'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(\n '_'\n ),\n weekdaysShort: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(\n '_'\n ),\n weekdaysMin: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(\n '_'\n ),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[DaHjaj] LT',\n nextDay: '[wa’leS] LT',\n nextWeek: 'LLL',\n lastDay: '[wa’Hu’] LT',\n lastWeek: 'LLL',\n sameElse: 'L',\n },\n relativeTime: {\n future: translateFuture,\n past: translatePast,\n s: 'puS lup',\n ss: translate,\n m: 'wa’ tup',\n mm: translate,\n h: 'wa’ rep',\n hh: translate,\n d: 'wa’ jaj',\n dd: translate,\n M: 'wa’ jar',\n MM: translate,\n y: 'wa’ DIS',\n yy: translate,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return tlh;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/tlh.js\n// module id = 522\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Turkish [tr]\n//! authors : Erhan Gundogan : https://github.com/erhangundogan,\n//! Burak Yiğit Kaya: https://github.com/BYK\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var suffixes = {\n 1: \"'inci\",\n 5: \"'inci\",\n 8: \"'inci\",\n 70: \"'inci\",\n 80: \"'inci\",\n 2: \"'nci\",\n 7: \"'nci\",\n 20: \"'nci\",\n 50: \"'nci\",\n 3: \"'üncü\",\n 4: \"'üncü\",\n 100: \"'üncü\",\n 6: \"'ncı\",\n 9: \"'uncu\",\n 10: \"'uncu\",\n 30: \"'uncu\",\n 60: \"'ıncı\",\n 90: \"'ıncı\",\n };\n\n var tr = moment.defineLocale('tr', {\n months: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split(\n '_'\n ),\n monthsShort: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),\n weekdays: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split(\n '_'\n ),\n weekdaysShort: 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'),\n weekdaysMin: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),\n meridiem: function (hours, minutes, isLower) {\n if (hours < 12) {\n return isLower ? 'öö' : 'ÖÖ';\n } else {\n return isLower ? 'ös' : 'ÖS';\n }\n },\n meridiemParse: /öö|ÖÖ|ös|ÖS/,\n isPM: function (input) {\n return input === 'ös' || input === 'ÖS';\n },\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[bugün saat] LT',\n nextDay: '[yarın saat] LT',\n nextWeek: '[gelecek] dddd [saat] LT',\n lastDay: '[dün] LT',\n lastWeek: '[geçen] dddd [saat] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s sonra',\n past: '%s önce',\n s: 'birkaç saniye',\n ss: '%d saniye',\n m: 'bir dakika',\n mm: '%d dakika',\n h: 'bir saat',\n hh: '%d saat',\n d: 'bir gün',\n dd: '%d gün',\n M: 'bir ay',\n MM: '%d ay',\n y: 'bir yıl',\n yy: '%d yıl',\n },\n ordinal: function (number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'Do':\n case 'DD':\n return number;\n default:\n if (number === 0) {\n // special case for zero\n return number + \"'ıncı\";\n }\n var a = number % 10,\n b = (number % 100) - a,\n c = number >= 100 ? 100 : null;\n return number + (suffixes[a] || suffixes[b] || suffixes[c]);\n }\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return tr;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/tr.js\n// module id = 523\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Talossan [tzl]\n//! author : Robin van der Vliet : https://github.com/robin0van0der0v\n//! author : Iustì Canun\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.\n // This is currently too difficult (maybe even impossible) to add.\n var tzl = moment.defineLocale('tzl', {\n months: 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split(\n '_'\n ),\n monthsShort: 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),\n weekdays: 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),\n weekdaysShort: 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),\n weekdaysMin: 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),\n longDateFormat: {\n LT: 'HH.mm',\n LTS: 'HH.mm.ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM [dallas] YYYY',\n LLL: 'D. MMMM [dallas] YYYY HH.mm',\n LLLL: 'dddd, [li] D. MMMM [dallas] YYYY HH.mm',\n },\n meridiemParse: /d\\'o|d\\'a/i,\n isPM: function (input) {\n return \"d'o\" === input.toLowerCase();\n },\n meridiem: function (hours, minutes, isLower) {\n if (hours > 11) {\n return isLower ? \"d'o\" : \"D'O\";\n } else {\n return isLower ? \"d'a\" : \"D'A\";\n }\n },\n calendar: {\n sameDay: '[oxhi à] LT',\n nextDay: '[demà à] LT',\n nextWeek: 'dddd [à] LT',\n lastDay: '[ieiri à] LT',\n lastWeek: '[sür el] dddd [lasteu à] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'osprei %s',\n past: 'ja%s',\n s: processRelativeTime,\n ss: processRelativeTime,\n m: processRelativeTime,\n mm: processRelativeTime,\n h: processRelativeTime,\n hh: processRelativeTime,\n d: processRelativeTime,\n dd: processRelativeTime,\n M: processRelativeTime,\n MM: processRelativeTime,\n y: processRelativeTime,\n yy: processRelativeTime,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var format = {\n s: ['viensas secunds', \"'iensas secunds\"],\n ss: [number + ' secunds', '' + number + ' secunds'],\n m: [\"'n míut\", \"'iens míut\"],\n mm: [number + ' míuts', '' + number + ' míuts'],\n h: [\"'n þora\", \"'iensa þora\"],\n hh: [number + ' þoras', '' + number + ' þoras'],\n d: [\"'n ziua\", \"'iensa ziua\"],\n dd: [number + ' ziuas', '' + number + ' ziuas'],\n M: [\"'n mes\", \"'iens mes\"],\n MM: [number + ' mesen', '' + number + ' mesen'],\n y: [\"'n ar\", \"'iens ar\"],\n yy: [number + ' ars', '' + number + ' ars'],\n };\n return isFuture\n ? format[key][0]\n : withoutSuffix\n ? format[key][0]\n : format[key][1];\n }\n\n return tzl;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/tzl.js\n// module id = 524\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Central Atlas Tamazight [tzm]\n//! author : Abdel Said : https://github.com/abdelsaid\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var tzm = moment.defineLocale('tzm', {\n months: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split(\n '_'\n ),\n monthsShort: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split(\n '_'\n ),\n weekdays: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),\n weekdaysShort: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),\n weekdaysMin: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',\n nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',\n nextWeek: 'dddd [ⴴ] LT',\n lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',\n lastWeek: 'dddd [ⴴ] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',\n past: 'ⵢⴰⵏ %s',\n s: 'ⵉⵎⵉⴽ',\n ss: '%d ⵉⵎⵉⴽ',\n m: 'ⵎⵉⵏⵓⴺ',\n mm: '%d ⵎⵉⵏⵓⴺ',\n h: 'ⵙⴰⵄⴰ',\n hh: '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',\n d: 'ⴰⵙⵙ',\n dd: '%d oⵙⵙⴰⵏ',\n M: 'ⴰⵢoⵓⵔ',\n MM: '%d ⵉⵢⵢⵉⵔⵏ',\n y: 'ⴰⵙⴳⴰⵙ',\n yy: '%d ⵉⵙⴳⴰⵙⵏ',\n },\n week: {\n dow: 6, // Saturday is the first day of the week.\n doy: 12, // The week that contains Jan 12th is the first week of the year.\n },\n });\n\n return tzm;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/tzm.js\n// module id = 525\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Central Atlas Tamazight Latin [tzm-latn]\n//! author : Abdel Said : https://github.com/abdelsaid\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var tzmLatn = moment.defineLocale('tzm-latn', {\n months: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split(\n '_'\n ),\n monthsShort: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split(\n '_'\n ),\n weekdays: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),\n weekdaysShort: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),\n weekdaysMin: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[asdkh g] LT',\n nextDay: '[aska g] LT',\n nextWeek: 'dddd [g] LT',\n lastDay: '[assant g] LT',\n lastWeek: 'dddd [g] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'dadkh s yan %s',\n past: 'yan %s',\n s: 'imik',\n ss: '%d imik',\n m: 'minuḍ',\n mm: '%d minuḍ',\n h: 'saɛa',\n hh: '%d tassaɛin',\n d: 'ass',\n dd: '%d ossan',\n M: 'ayowr',\n MM: '%d iyyirn',\n y: 'asgas',\n yy: '%d isgasn',\n },\n week: {\n dow: 6, // Saturday is the first day of the week.\n doy: 12, // The week that contains Jan 12th is the first week of the year.\n },\n });\n\n return tzmLatn;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/tzm-latn.js\n// module id = 526\n// module chunks = 0","//! moment.js language configuration\n//! locale : Uyghur (China) [ug-cn]\n//! author: boyaq : https://github.com/boyaq\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js language configuration\n\n var ugCn = moment.defineLocale('ug-cn', {\n months: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(\n '_'\n ),\n monthsShort: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(\n '_'\n ),\n weekdays: 'يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە'.split(\n '_'\n ),\n weekdaysShort: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),\n weekdaysMin: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY-MM-DD',\n LL: 'YYYY-يىلىM-ئاينىڭD-كۈنى',\n LLL: 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',\n LLLL: 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',\n },\n meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (\n meridiem === 'يېرىم كېچە' ||\n meridiem === 'سەھەر' ||\n meridiem === 'چۈشتىن بۇرۇن'\n ) {\n return hour;\n } else if (meridiem === 'چۈشتىن كېيىن' || meridiem === 'كەچ') {\n return hour + 12;\n } else {\n return hour >= 11 ? hour : hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n var hm = hour * 100 + minute;\n if (hm < 600) {\n return 'يېرىم كېچە';\n } else if (hm < 900) {\n return 'سەھەر';\n } else if (hm < 1130) {\n return 'چۈشتىن بۇرۇن';\n } else if (hm < 1230) {\n return 'چۈش';\n } else if (hm < 1800) {\n return 'چۈشتىن كېيىن';\n } else {\n return 'كەچ';\n }\n },\n calendar: {\n sameDay: '[بۈگۈن سائەت] LT',\n nextDay: '[ئەتە سائەت] LT',\n nextWeek: '[كېلەركى] dddd [سائەت] LT',\n lastDay: '[تۆنۈگۈن] LT',\n lastWeek: '[ئالدىنقى] dddd [سائەت] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s كېيىن',\n past: '%s بۇرۇن',\n s: 'نەچچە سېكونت',\n ss: '%d سېكونت',\n m: 'بىر مىنۇت',\n mm: '%d مىنۇت',\n h: 'بىر سائەت',\n hh: '%d سائەت',\n d: 'بىر كۈن',\n dd: '%d كۈن',\n M: 'بىر ئاي',\n MM: '%d ئاي',\n y: 'بىر يىل',\n yy: '%d يىل',\n },\n\n dayOfMonthOrdinalParse: /\\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'DDD':\n return number + '-كۈنى';\n case 'w':\n case 'W':\n return number + '-ھەپتە';\n default:\n return number;\n }\n },\n preparse: function (string) {\n return string.replace(/،/g, ',');\n },\n postformat: function (string) {\n return string.replace(/,/g, '،');\n },\n week: {\n // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 1st is the first week of the year.\n },\n });\n\n return ugCn;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ug-cn.js\n// module id = 527\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Ukrainian [uk]\n//! author : zemlanin : https://github.com/zemlanin\n//! Author : Menelion Elensúle : https://github.com/Oire\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function plural(word, num) {\n var forms = word.split('_');\n return num % 10 === 1 && num % 100 !== 11\n ? forms[0]\n : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)\n ? forms[1]\n : forms[2];\n }\n function relativeTimeWithPlural(number, withoutSuffix, key) {\n var format = {\n ss: withoutSuffix ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд',\n mm: withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',\n hh: withoutSuffix ? 'година_години_годин' : 'годину_години_годин',\n dd: 'день_дні_днів',\n MM: 'місяць_місяці_місяців',\n yy: 'рік_роки_років',\n };\n if (key === 'm') {\n return withoutSuffix ? 'хвилина' : 'хвилину';\n } else if (key === 'h') {\n return withoutSuffix ? 'година' : 'годину';\n } else {\n return number + ' ' + plural(format[key], +number);\n }\n }\n function weekdaysCaseReplace(m, format) {\n var weekdays = {\n nominative: 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split(\n '_'\n ),\n accusative: 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split(\n '_'\n ),\n genitive: 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split(\n '_'\n ),\n },\n nounCase;\n\n if (m === true) {\n return weekdays['nominative']\n .slice(1, 7)\n .concat(weekdays['nominative'].slice(0, 1));\n }\n if (!m) {\n return weekdays['nominative'];\n }\n\n nounCase = /(\\[[ВвУу]\\]) ?dddd/.test(format)\n ? 'accusative'\n : /\\[?(?:минулої|наступної)? ?\\] ?dddd/.test(format)\n ? 'genitive'\n : 'nominative';\n return weekdays[nounCase][m.day()];\n }\n function processHoursFunction(str) {\n return function () {\n return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';\n };\n }\n\n var uk = moment.defineLocale('uk', {\n months: {\n format: 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split(\n '_'\n ),\n standalone: 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split(\n '_'\n ),\n },\n monthsShort: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split(\n '_'\n ),\n weekdays: weekdaysCaseReplace,\n weekdaysShort: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),\n weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY р.',\n LLL: 'D MMMM YYYY р., HH:mm',\n LLLL: 'dddd, D MMMM YYYY р., HH:mm',\n },\n calendar: {\n sameDay: processHoursFunction('[Сьогодні '),\n nextDay: processHoursFunction('[Завтра '),\n lastDay: processHoursFunction('[Вчора '),\n nextWeek: processHoursFunction('[У] dddd ['),\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n case 3:\n case 5:\n case 6:\n return processHoursFunction('[Минулої] dddd [').call(this);\n case 1:\n case 2:\n case 4:\n return processHoursFunction('[Минулого] dddd [').call(this);\n }\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'за %s',\n past: '%s тому',\n s: 'декілька секунд',\n ss: relativeTimeWithPlural,\n m: relativeTimeWithPlural,\n mm: relativeTimeWithPlural,\n h: 'годину',\n hh: relativeTimeWithPlural,\n d: 'день',\n dd: relativeTimeWithPlural,\n M: 'місяць',\n MM: relativeTimeWithPlural,\n y: 'рік',\n yy: relativeTimeWithPlural,\n },\n // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason\n meridiemParse: /ночі|ранку|дня|вечора/,\n isPM: function (input) {\n return /^(дня|вечора)$/.test(input);\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'ночі';\n } else if (hour < 12) {\n return 'ранку';\n } else if (hour < 17) {\n return 'дня';\n } else {\n return 'вечора';\n }\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(й|го)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'M':\n case 'd':\n case 'DDD':\n case 'w':\n case 'W':\n return number + '-й';\n case 'D':\n return number + '-го';\n default:\n return number;\n }\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return uk;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/uk.js\n// module id = 528\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Urdu [ur]\n//! author : Sawood Alam : https://github.com/ibnesayeed\n//! author : Zack : https://github.com/ZackVision\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var months = [\n 'جنوری',\n 'فروری',\n 'مارچ',\n 'اپریل',\n 'مئی',\n 'جون',\n 'جولائی',\n 'اگست',\n 'ستمبر',\n 'اکتوبر',\n 'نومبر',\n 'دسمبر',\n ],\n days = ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ'];\n\n var ur = moment.defineLocale('ur', {\n months: months,\n monthsShort: months,\n weekdays: days,\n weekdaysShort: days,\n weekdaysMin: days,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd، D MMMM YYYY HH:mm',\n },\n meridiemParse: /صبح|شام/,\n isPM: function (input) {\n return 'شام' === input;\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'صبح';\n }\n return 'شام';\n },\n calendar: {\n sameDay: '[آج بوقت] LT',\n nextDay: '[کل بوقت] LT',\n nextWeek: 'dddd [بوقت] LT',\n lastDay: '[گذشتہ روز بوقت] LT',\n lastWeek: '[گذشتہ] dddd [بوقت] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s بعد',\n past: '%s قبل',\n s: 'چند سیکنڈ',\n ss: '%d سیکنڈ',\n m: 'ایک منٹ',\n mm: '%d منٹ',\n h: 'ایک گھنٹہ',\n hh: '%d گھنٹے',\n d: 'ایک دن',\n dd: '%d دن',\n M: 'ایک ماہ',\n MM: '%d ماہ',\n y: 'ایک سال',\n yy: '%d سال',\n },\n preparse: function (string) {\n return string.replace(/،/g, ',');\n },\n postformat: function (string) {\n return string.replace(/,/g, '،');\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return ur;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ur.js\n// module id = 529\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Uzbek [uz]\n//! author : Sardor Muminov : https://github.com/muminoff\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var uz = moment.defineLocale('uz', {\n months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(\n '_'\n ),\n monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),\n weekdays: 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),\n weekdaysShort: 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),\n weekdaysMin: 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'D MMMM YYYY, dddd HH:mm',\n },\n calendar: {\n sameDay: '[Бугун соат] LT [да]',\n nextDay: '[Эртага] LT [да]',\n nextWeek: 'dddd [куни соат] LT [да]',\n lastDay: '[Кеча соат] LT [да]',\n lastWeek: '[Утган] dddd [куни соат] LT [да]',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'Якин %s ичида',\n past: 'Бир неча %s олдин',\n s: 'фурсат',\n ss: '%d фурсат',\n m: 'бир дакика',\n mm: '%d дакика',\n h: 'бир соат',\n hh: '%d соат',\n d: 'бир кун',\n dd: '%d кун',\n M: 'бир ой',\n MM: '%d ой',\n y: 'бир йил',\n yy: '%d йил',\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return uz;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/uz.js\n// module id = 530\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Uzbek Latin [uz-latn]\n//! author : Rasulbek Mirzayev : github.com/Rasulbeeek\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var uzLatn = moment.defineLocale('uz-latn', {\n months: 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split(\n '_'\n ),\n monthsShort: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),\n weekdays: 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split(\n '_'\n ),\n weekdaysShort: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),\n weekdaysMin: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'D MMMM YYYY, dddd HH:mm',\n },\n calendar: {\n sameDay: '[Bugun soat] LT [da]',\n nextDay: '[Ertaga] LT [da]',\n nextWeek: 'dddd [kuni soat] LT [da]',\n lastDay: '[Kecha soat] LT [da]',\n lastWeek: \"[O'tgan] dddd [kuni soat] LT [da]\",\n sameElse: 'L',\n },\n relativeTime: {\n future: 'Yaqin %s ichida',\n past: 'Bir necha %s oldin',\n s: 'soniya',\n ss: '%d soniya',\n m: 'bir daqiqa',\n mm: '%d daqiqa',\n h: 'bir soat',\n hh: '%d soat',\n d: 'bir kun',\n dd: '%d kun',\n M: 'bir oy',\n MM: '%d oy',\n y: 'bir yil',\n yy: '%d yil',\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return uzLatn;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/uz-latn.js\n// module id = 531\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Vietnamese [vi]\n//! author : Bang Nguyen : https://github.com/bangnk\n//! author : Chien Kira : https://github.com/chienkira\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var vi = moment.defineLocale('vi', {\n months: 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split(\n '_'\n ),\n monthsShort: 'Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split(\n '_'\n ),\n weekdaysShort: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),\n weekdaysMin: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),\n weekdaysParseExact: true,\n meridiemParse: /sa|ch/i,\n isPM: function (input) {\n return /^ch$/i.test(input);\n },\n meridiem: function (hours, minutes, isLower) {\n if (hours < 12) {\n return isLower ? 'sa' : 'SA';\n } else {\n return isLower ? 'ch' : 'CH';\n }\n },\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM [năm] YYYY',\n LLL: 'D MMMM [năm] YYYY HH:mm',\n LLLL: 'dddd, D MMMM [năm] YYYY HH:mm',\n l: 'DD/M/YYYY',\n ll: 'D MMM YYYY',\n lll: 'D MMM YYYY HH:mm',\n llll: 'ddd, D MMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Hôm nay lúc] LT',\n nextDay: '[Ngày mai lúc] LT',\n nextWeek: 'dddd [tuần tới lúc] LT',\n lastDay: '[Hôm qua lúc] LT',\n lastWeek: 'dddd [tuần trước lúc] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s tới',\n past: '%s trước',\n s: 'vài giây',\n ss: '%d giây',\n m: 'một phút',\n mm: '%d phút',\n h: 'một giờ',\n hh: '%d giờ',\n d: 'một ngày',\n dd: '%d ngày',\n M: 'một tháng',\n MM: '%d tháng',\n y: 'một năm',\n yy: '%d năm',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}/,\n ordinal: function (number) {\n return number;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return vi;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/vi.js\n// module id = 532\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Pseudo [x-pseudo]\n//! author : Andrew Hood : https://github.com/andrewhood125\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var xPseudo = moment.defineLocale('x-pseudo', {\n months: 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split(\n '_'\n ),\n monthsShort: 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split(\n '_'\n ),\n weekdaysShort: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),\n weekdaysMin: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[T~ódá~ý át] LT',\n nextDay: '[T~ómó~rró~w át] LT',\n nextWeek: 'dddd [át] LT',\n lastDay: '[Ý~ést~érdá~ý át] LT',\n lastWeek: '[L~ást] dddd [át] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'í~ñ %s',\n past: '%s á~gó',\n s: 'á ~féw ~sécó~ñds',\n ss: '%d s~écóñ~ds',\n m: 'á ~míñ~úté',\n mm: '%d m~íñú~tés',\n h: 'á~ñ hó~úr',\n hh: '%d h~óúrs',\n d: 'á ~dáý',\n dd: '%d d~áýs',\n M: 'á ~móñ~th',\n MM: '%d m~óñt~hs',\n y: 'á ~ýéár',\n yy: '%d ý~éárs',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(th|st|nd|rd)/,\n ordinal: function (number) {\n var b = number % 10,\n output =\n ~~((number % 100) / 10) === 1\n ? 'th'\n : b === 1\n ? 'st'\n : b === 2\n ? 'nd'\n : b === 3\n ? 'rd'\n : 'th';\n return number + output;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return xPseudo;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/x-pseudo.js\n// module id = 533\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Yoruba Nigeria [yo]\n//! author : Atolagbe Abisoye : https://github.com/andela-batolagbe\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var yo = moment.defineLocale('yo', {\n months: 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split(\n '_'\n ),\n monthsShort: 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'),\n weekdays: 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'),\n weekdaysShort: 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'),\n weekdaysMin: 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'),\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY h:mm A',\n LLLL: 'dddd, D MMMM YYYY h:mm A',\n },\n calendar: {\n sameDay: '[Ònì ni] LT',\n nextDay: '[Ọ̀la ni] LT',\n nextWeek: \"dddd [Ọsẹ̀ tón'bọ] [ni] LT\",\n lastDay: '[Àna ni] LT',\n lastWeek: 'dddd [Ọsẹ̀ tólọ́] [ni] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'ní %s',\n past: '%s kọjá',\n s: 'ìsẹjú aayá die',\n ss: 'aayá %d',\n m: 'ìsẹjú kan',\n mm: 'ìsẹjú %d',\n h: 'wákati kan',\n hh: 'wákati %d',\n d: 'ọjọ́ kan',\n dd: 'ọjọ́ %d',\n M: 'osù kan',\n MM: 'osù %d',\n y: 'ọdún kan',\n yy: 'ọdún %d',\n },\n dayOfMonthOrdinalParse: /ọjọ́\\s\\d{1,2}/,\n ordinal: 'ọjọ́ %d',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return yo;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/yo.js\n// module id = 534\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Chinese (China) [zh-cn]\n//! author : suupic : https://github.com/suupic\n//! author : Zeno Zeng : https://github.com/zenozeng\n//! author : uu109 : https://github.com/uu109\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var zhCn = moment.defineLocale('zh-cn', {\n months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(\n '_'\n ),\n monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(\n '_'\n ),\n weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),\n weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'),\n weekdaysMin: '日_一_二_三_四_五_六'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY/MM/DD',\n LL: 'YYYY年M月D日',\n LLL: 'YYYY年M月D日Ah点mm分',\n LLLL: 'YYYY年M月D日ddddAh点mm分',\n l: 'YYYY/M/D',\n ll: 'YYYY年M月D日',\n lll: 'YYYY年M月D日 HH:mm',\n llll: 'YYYY年M月D日dddd HH:mm',\n },\n meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {\n return hour;\n } else if (meridiem === '下午' || meridiem === '晚上') {\n return hour + 12;\n } else {\n // '中午'\n return hour >= 11 ? hour : hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n var hm = hour * 100 + minute;\n if (hm < 600) {\n return '凌晨';\n } else if (hm < 900) {\n return '早上';\n } else if (hm < 1130) {\n return '上午';\n } else if (hm < 1230) {\n return '中午';\n } else if (hm < 1800) {\n return '下午';\n } else {\n return '晚上';\n }\n },\n calendar: {\n sameDay: '[今天]LT',\n nextDay: '[明天]LT',\n nextWeek: function (now) {\n if (now.week() !== this.week()) {\n return '[下]dddLT';\n } else {\n return '[本]dddLT';\n }\n },\n lastDay: '[昨天]LT',\n lastWeek: function (now) {\n if (this.week() !== now.week()) {\n return '[上]dddLT';\n } else {\n return '[本]dddLT';\n }\n },\n sameElse: 'L',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(日|月|周)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'DDD':\n return number + '日';\n case 'M':\n return number + '月';\n case 'w':\n case 'W':\n return number + '周';\n default:\n return number;\n }\n },\n relativeTime: {\n future: '%s后',\n past: '%s前',\n s: '几秒',\n ss: '%d 秒',\n m: '1 分钟',\n mm: '%d 分钟',\n h: '1 小时',\n hh: '%d 小时',\n d: '1 天',\n dd: '%d 天',\n M: '1 个月',\n MM: '%d 个月',\n y: '1 年',\n yy: '%d 年',\n },\n week: {\n // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return zhCn;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/zh-cn.js\n// module id = 535\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Chinese (Hong Kong) [zh-hk]\n//! author : Ben : https://github.com/ben-lin\n//! author : Chris Lam : https://github.com/hehachris\n//! author : Konstantin : https://github.com/skfd\n//! author : Anthony : https://github.com/anthonylau\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var zhHk = moment.defineLocale('zh-hk', {\n months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(\n '_'\n ),\n monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(\n '_'\n ),\n weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),\n weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),\n weekdaysMin: '日_一_二_三_四_五_六'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY/MM/DD',\n LL: 'YYYY年M月D日',\n LLL: 'YYYY年M月D日 HH:mm',\n LLLL: 'YYYY年M月D日dddd HH:mm',\n l: 'YYYY/M/D',\n ll: 'YYYY年M月D日',\n lll: 'YYYY年M月D日 HH:mm',\n llll: 'YYYY年M月D日dddd HH:mm',\n },\n meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {\n return hour;\n } else if (meridiem === '中午') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === '下午' || meridiem === '晚上') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n var hm = hour * 100 + minute;\n if (hm < 600) {\n return '凌晨';\n } else if (hm < 900) {\n return '早上';\n } else if (hm < 1200) {\n return '上午';\n } else if (hm === 1200) {\n return '中午';\n } else if (hm < 1800) {\n return '下午';\n } else {\n return '晚上';\n }\n },\n calendar: {\n sameDay: '[今天]LT',\n nextDay: '[明天]LT',\n nextWeek: '[下]ddddLT',\n lastDay: '[昨天]LT',\n lastWeek: '[上]ddddLT',\n sameElse: 'L',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(日|月|週)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'DDD':\n return number + '日';\n case 'M':\n return number + '月';\n case 'w':\n case 'W':\n return number + '週';\n default:\n return number;\n }\n },\n relativeTime: {\n future: '%s後',\n past: '%s前',\n s: '幾秒',\n ss: '%d 秒',\n m: '1 分鐘',\n mm: '%d 分鐘',\n h: '1 小時',\n hh: '%d 小時',\n d: '1 天',\n dd: '%d 天',\n M: '1 個月',\n MM: '%d 個月',\n y: '1 年',\n yy: '%d 年',\n },\n });\n\n return zhHk;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/zh-hk.js\n// module id = 536\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Chinese (Macau) [zh-mo]\n//! author : Ben : https://github.com/ben-lin\n//! author : Chris Lam : https://github.com/hehachris\n//! author : Tan Yuanhong : https://github.com/le0tan\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var zhMo = moment.defineLocale('zh-mo', {\n months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(\n '_'\n ),\n monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(\n '_'\n ),\n weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),\n weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),\n weekdaysMin: '日_一_二_三_四_五_六'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'YYYY年M月D日',\n LLL: 'YYYY年M月D日 HH:mm',\n LLLL: 'YYYY年M月D日dddd HH:mm',\n l: 'D/M/YYYY',\n ll: 'YYYY年M月D日',\n lll: 'YYYY年M月D日 HH:mm',\n llll: 'YYYY年M月D日dddd HH:mm',\n },\n meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {\n return hour;\n } else if (meridiem === '中午') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === '下午' || meridiem === '晚上') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n var hm = hour * 100 + minute;\n if (hm < 600) {\n return '凌晨';\n } else if (hm < 900) {\n return '早上';\n } else if (hm < 1130) {\n return '上午';\n } else if (hm < 1230) {\n return '中午';\n } else if (hm < 1800) {\n return '下午';\n } else {\n return '晚上';\n }\n },\n calendar: {\n sameDay: '[今天] LT',\n nextDay: '[明天] LT',\n nextWeek: '[下]dddd LT',\n lastDay: '[昨天] LT',\n lastWeek: '[上]dddd LT',\n sameElse: 'L',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(日|月|週)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'DDD':\n return number + '日';\n case 'M':\n return number + '月';\n case 'w':\n case 'W':\n return number + '週';\n default:\n return number;\n }\n },\n relativeTime: {\n future: '%s內',\n past: '%s前',\n s: '幾秒',\n ss: '%d 秒',\n m: '1 分鐘',\n mm: '%d 分鐘',\n h: '1 小時',\n hh: '%d 小時',\n d: '1 天',\n dd: '%d 天',\n M: '1 個月',\n MM: '%d 個月',\n y: '1 年',\n yy: '%d 年',\n },\n });\n\n return zhMo;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/zh-mo.js\n// module id = 537\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Chinese (Taiwan) [zh-tw]\n//! author : Ben : https://github.com/ben-lin\n//! author : Chris Lam : https://github.com/hehachris\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var zhTw = moment.defineLocale('zh-tw', {\n months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(\n '_'\n ),\n monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(\n '_'\n ),\n weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),\n weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),\n weekdaysMin: '日_一_二_三_四_五_六'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY/MM/DD',\n LL: 'YYYY年M月D日',\n LLL: 'YYYY年M月D日 HH:mm',\n LLLL: 'YYYY年M月D日dddd HH:mm',\n l: 'YYYY/M/D',\n ll: 'YYYY年M月D日',\n lll: 'YYYY年M月D日 HH:mm',\n llll: 'YYYY年M月D日dddd HH:mm',\n },\n meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {\n return hour;\n } else if (meridiem === '中午') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === '下午' || meridiem === '晚上') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n var hm = hour * 100 + minute;\n if (hm < 600) {\n return '凌晨';\n } else if (hm < 900) {\n return '早上';\n } else if (hm < 1130) {\n return '上午';\n } else if (hm < 1230) {\n return '中午';\n } else if (hm < 1800) {\n return '下午';\n } else {\n return '晚上';\n }\n },\n calendar: {\n sameDay: '[今天] LT',\n nextDay: '[明天] LT',\n nextWeek: '[下]dddd LT',\n lastDay: '[昨天] LT',\n lastWeek: '[上]dddd LT',\n sameElse: 'L',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(日|月|週)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'DDD':\n return number + '日';\n case 'M':\n return number + '月';\n case 'w':\n case 'W':\n return number + '週';\n default:\n return number;\n }\n },\n relativeTime: {\n future: '%s後',\n past: '%s前',\n s: '幾秒',\n ss: '%d 秒',\n m: '1 分鐘',\n mm: '%d 分鐘',\n h: '1 小時',\n hh: '%d 小時',\n d: '1 天',\n dd: '%d 天',\n M: '1 個月',\n MM: '%d 個月',\n y: '1 年',\n yy: '%d 年',\n },\n });\n\n return zhTw;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/zh-tw.js\n// module id = 538\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _DateConstants = require('./DateConstants');\n\nvar _DateConstants2 = _interopRequireDefault(_DateConstants);\n\nvar _util = require('../util/');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nfunction isSameDay(one, two) {\n return one && two && one.isSame(two, 'day');\n}\n\nfunction beforeCurrentMonthYear(current, today) {\n if (current.year() < today.year()) {\n return 1;\n }\n return current.year() === today.year() && current.month() < today.month();\n}\n\nfunction afterCurrentMonthYear(current, today) {\n if (current.year() > today.year()) {\n return 1;\n }\n return current.year() === today.year() && current.month() > today.month();\n}\n\nfunction getIdFromDate(date) {\n return 'rc-calendar-' + date.year() + '-' + date.month() + '-' + date.date();\n}\n\nvar DateTBody = function (_React$Component) {\n _inherits(DateTBody, _React$Component);\n\n function DateTBody() {\n _classCallCheck(this, DateTBody);\n\n return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n DateTBody.prototype.render = function render() {\n var props = this.props;\n var contentRender = props.contentRender,\n prefixCls = props.prefixCls,\n selectedValue = props.selectedValue,\n value = props.value,\n showWeekNumber = props.showWeekNumber,\n dateRender = props.dateRender,\n disabledDate = props.disabledDate,\n hoverValue = props.hoverValue;\n\n var iIndex = void 0;\n var jIndex = void 0;\n var current = void 0;\n var dateTable = [];\n var today = (0, _util.getTodayTime)(value);\n var cellClass = prefixCls + '-cell';\n var weekNumberCellClass = prefixCls + '-week-number-cell';\n var dateClass = prefixCls + '-date';\n var todayClass = prefixCls + '-today';\n var selectedClass = prefixCls + '-selected-day';\n var selectedDateClass = prefixCls + '-selected-date'; // do not move with mouse operation\n var selectedStartDateClass = prefixCls + '-selected-start-date';\n var selectedEndDateClass = prefixCls + '-selected-end-date';\n var inRangeClass = prefixCls + '-in-range-cell';\n var lastMonthDayClass = prefixCls + '-last-month-cell';\n var nextMonthDayClass = prefixCls + '-next-month-btn-day';\n var disabledClass = prefixCls + '-disabled-cell';\n var firstDisableClass = prefixCls + '-disabled-cell-first-of-row';\n var lastDisableClass = prefixCls + '-disabled-cell-last-of-row';\n var lastDayOfMonthClass = prefixCls + '-last-day-of-month';\n var month1 = value.clone();\n month1.date(1);\n var day = month1.day();\n var lastMonthDiffDay = (day + 7 - value.localeData().firstDayOfWeek()) % 7;\n // calculate last month\n var lastMonth1 = month1.clone();\n lastMonth1.add(0 - lastMonthDiffDay, 'days');\n var passed = 0;\n\n for (iIndex = 0; iIndex < _DateConstants2[\"default\"].DATE_ROW_COUNT; iIndex++) {\n for (jIndex = 0; jIndex < _DateConstants2[\"default\"].DATE_COL_COUNT; jIndex++) {\n current = lastMonth1;\n if (passed) {\n current = current.clone();\n current.add(passed, 'days');\n }\n dateTable.push(current);\n passed++;\n }\n }\n var tableHtml = [];\n passed = 0;\n\n for (iIndex = 0; iIndex < _DateConstants2[\"default\"].DATE_ROW_COUNT; iIndex++) {\n var _cx;\n\n var isCurrentWeek = void 0;\n var weekNumberCell = void 0;\n var isActiveWeek = false;\n var dateCells = [];\n if (showWeekNumber) {\n weekNumberCell = _react2[\"default\"].createElement(\n 'td',\n {\n key: dateTable[passed].week(),\n role: 'gridcell',\n className: weekNumberCellClass\n },\n dateTable[passed].week()\n );\n }\n for (jIndex = 0; jIndex < _DateConstants2[\"default\"].DATE_COL_COUNT; jIndex++) {\n var next = null;\n var last = null;\n current = dateTable[passed];\n if (jIndex < _DateConstants2[\"default\"].DATE_COL_COUNT - 1) {\n next = dateTable[passed + 1];\n }\n if (jIndex > 0) {\n last = dateTable[passed - 1];\n }\n var cls = cellClass;\n var disabled = false;\n var selected = false;\n\n if (isSameDay(current, today)) {\n cls += ' ' + todayClass;\n isCurrentWeek = true;\n }\n\n var isBeforeCurrentMonthYear = beforeCurrentMonthYear(current, value);\n var isAfterCurrentMonthYear = afterCurrentMonthYear(current, value);\n\n if (selectedValue && Array.isArray(selectedValue)) {\n var rangeValue = hoverValue.length ? hoverValue : selectedValue;\n if (!isBeforeCurrentMonthYear && !isAfterCurrentMonthYear) {\n var startValue = rangeValue[0];\n var endValue = rangeValue[1];\n if (startValue) {\n if (isSameDay(current, startValue)) {\n selected = true;\n isActiveWeek = true;\n cls += ' ' + selectedStartDateClass;\n }\n }\n if (startValue && endValue) {\n if (isSameDay(current, endValue)) {\n selected = true;\n isActiveWeek = true;\n cls += ' ' + selectedEndDateClass;\n } else if (current.isAfter(startValue, 'day') && current.isBefore(endValue, 'day')) {\n cls += ' ' + inRangeClass;\n }\n }\n }\n } else if (isSameDay(current, value)) {\n // keyboard change value, highlight works\n selected = true;\n isActiveWeek = true;\n }\n\n if (isSameDay(current, selectedValue)) {\n cls += ' ' + selectedDateClass;\n }\n\n if (isBeforeCurrentMonthYear) {\n cls += ' ' + lastMonthDayClass;\n }\n\n if (isAfterCurrentMonthYear) {\n cls += ' ' + nextMonthDayClass;\n }\n\n if (current.clone().endOf('month').date() === current.date()) {\n cls += ' ' + lastDayOfMonthClass;\n }\n\n if (disabledDate) {\n if (disabledDate(current, value)) {\n disabled = true;\n\n if (!last || !disabledDate(last, value)) {\n cls += ' ' + firstDisableClass;\n }\n\n if (!next || !disabledDate(next, value)) {\n cls += ' ' + lastDisableClass;\n }\n }\n }\n\n if (selected) {\n cls += ' ' + selectedClass;\n }\n\n if (disabled) {\n cls += ' ' + disabledClass;\n }\n\n var dateHtml = void 0;\n if (dateRender) {\n dateHtml = dateRender(current, value);\n } else {\n var content = contentRender ? contentRender(current, value) : current.date();\n dateHtml = _react2[\"default\"].createElement(\n 'div',\n {\n key: getIdFromDate(current),\n className: dateClass,\n 'aria-selected': selected,\n 'aria-disabled': disabled\n },\n content\n );\n }\n\n dateCells.push(_react2[\"default\"].createElement(\n 'td',\n {\n key: passed,\n onClick: disabled ? undefined : props.onSelect.bind(null, current),\n onMouseEnter: disabled ? undefined : props.onDayHover && props.onDayHover.bind(null, current) || undefined,\n role: 'gridcell',\n title: (0, _util.getTitleString)(current),\n className: cls\n },\n dateHtml\n ));\n\n passed++;\n }\n\n tableHtml.push(_react2[\"default\"].createElement(\n 'tr',\n {\n key: iIndex,\n role: 'row',\n className: (0, _classnames2[\"default\"])((_cx = {}, _defineProperty(_cx, prefixCls + '-current-week', isCurrentWeek), _defineProperty(_cx, prefixCls + '-active-week', isActiveWeek), _cx))\n },\n weekNumberCell,\n dateCells\n ));\n }\n return _react2[\"default\"].createElement(\n 'tbody',\n { className: prefixCls + '-tbody' },\n tableHtml\n );\n };\n\n return DateTBody;\n}(_react2[\"default\"].Component);\n\nDateTBody.propTypes = {\n contentRender: _propTypes2[\"default\"].func,\n dateRender: _propTypes2[\"default\"].func,\n disabledDate: _propTypes2[\"default\"].func,\n prefixCls: _propTypes2[\"default\"].string,\n selectedValue: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].object, _propTypes2[\"default\"].arrayOf(_propTypes2[\"default\"].object)]),\n value: _propTypes2[\"default\"].object,\n hoverValue: _propTypes2[\"default\"].any,\n showWeekNumber: _propTypes2[\"default\"].bool\n};\nDateTBody.defaultProps = {\n hoverValue: []\n};\nexports[\"default\"] = DateTBody;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-datepicker/build/rc-calendar/date/DateTBody.js\n// module id = 539\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nexports.getTodayTime = getTodayTime;\nexports.getTitleString = getTitleString;\nexports.getTodayTimeStr = getTodayTimeStr;\nexports.getMonthName = getMonthName;\nexports.syncTime = syncTime;\nexports.getTimeConfig = getTimeConfig;\nexports.isTimeValidByConfig = isTimeValidByConfig;\nexports.isTimeValid = isTimeValid;\nexports.isAllowedDate = isAllowedDate;\nexports.formatDate = formatDate;\n\nvar _moment = require('moment');\n\nvar _moment2 = _interopRequireDefault(_moment);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nvar defaultDisabledTime = {\n disabledHours: function disabledHours() {\n return [];\n },\n disabledMinutes: function disabledMinutes() {\n return [];\n },\n disabledSeconds: function disabledSeconds() {\n return [];\n }\n};\n\nfunction getTodayTime(value) {\n var today = (0, _moment2[\"default\"])();\n if (typeof value !== 'undefined') {\n today.locale(value.locale()).utcOffset(value.utcOffset());\n }\n return today;\n}\n\nfunction getTitleString(value) {\n return value.format('LL');\n}\n\nfunction getTodayTimeStr(value) {\n var today = getTodayTime(value);\n return getTitleString(today);\n}\n\nfunction getMonthName(month) {\n var locale = month.locale();\n var localeData = month.localeData();\n return localeData[locale === 'zh-cn' ? 'months' : 'monthsShort'](month);\n}\n\nfunction syncTime(from, to) {\n if (!_moment2[\"default\"].isMoment(from) || !_moment2[\"default\"].isMoment(to)) return;\n to.hour(from.hour());\n to.minute(from.minute());\n to.second(from.second());\n}\n\nfunction getTimeConfig(value, disabledTime) {\n var disabledTimeConfig = disabledTime ? disabledTime(value) : {};\n disabledTimeConfig = _extends({}, defaultDisabledTime, disabledTimeConfig);\n return disabledTimeConfig;\n}\n\nfunction isTimeValidByConfig(value, disabledTimeConfig) {\n var invalidTime = false;\n if (value) {\n var hour = value.hour();\n var minutes = value.minute();\n var seconds = value.second();\n var disabledHours = disabledTimeConfig.disabledHours();\n if (disabledHours.indexOf(hour) === -1) {\n var disabledMinutes = disabledTimeConfig.disabledMinutes(hour);\n if (disabledMinutes.indexOf(minutes) === -1) {\n var disabledSeconds = disabledTimeConfig.disabledSeconds(hour, minutes);\n invalidTime = disabledSeconds.indexOf(seconds) !== -1;\n } else {\n invalidTime = true;\n }\n } else {\n invalidTime = true;\n }\n }\n return !invalidTime;\n}\n\nfunction isTimeValid(value, disabledTime) {\n var disabledTimeConfig = getTimeConfig(value, disabledTime);\n return isTimeValidByConfig(value, disabledTimeConfig);\n}\n\nfunction isAllowedDate(value, disabledDate, disabledTime) {\n if (disabledDate) {\n if (disabledDate(value)) {\n return false;\n }\n }\n if (disabledTime) {\n if (!isTimeValid(value, disabledTime)) {\n return false;\n }\n }\n return true;\n}\n\nfunction formatDate(value, format) {\n if (!value) {\n return '';\n }\n\n if (Array.isArray(format)) {\n format = format[0];\n }\n\n return value.format(format);\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-datepicker/build/rc-calendar/util/index.js\n// module id = 540\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _mapSelf = require('rc-util/lib/Children/mapSelf');\n\nvar _mapSelf2 = _interopRequireDefault(_mapSelf);\n\nvar _MonthPanel = require('../month/MonthPanel');\n\nvar _MonthPanel2 = _interopRequireDefault(_MonthPanel);\n\nvar _YearPanel = require('../year/YearPanel');\n\nvar _YearPanel2 = _interopRequireDefault(_YearPanel);\n\nvar _DecadePanel = require('../decade/DecadePanel');\n\nvar _DecadePanel2 = _interopRequireDefault(_DecadePanel);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nfunction goMonth(direction) {\n var next = this.props.value.clone();\n next.add(direction, 'months');\n this.props.onValueChange(next);\n}\n\nfunction goYear(direction) {\n var next = this.props.value.clone();\n next.add(direction, 'years');\n this.props.onValueChange(next);\n}\n\nfunction showIf(condition, el) {\n return condition ? el : null;\n}\n\nvar CalendarHeader = function (_React$Component) {\n _inherits(CalendarHeader, _React$Component);\n\n function CalendarHeader(props) {\n _classCallCheck(this, CalendarHeader);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));\n\n _initialiseProps.call(_this);\n\n _this.nextMonth = goMonth.bind(_this, 1);\n _this.previousMonth = goMonth.bind(_this, -1);\n _this.nextYear = goYear.bind(_this, 1);\n _this.previousYear = goYear.bind(_this, -1);\n\n _this.state = { yearPanelReferer: null };\n return _this;\n }\n\n CalendarHeader.prototype.render = function render() {\n var _this2 = this;\n\n var props = this.props;\n var prefixCls = props.prefixCls,\n locale = props.locale,\n mode = props.mode,\n value = props.value,\n showTimePicker = props.showTimePicker,\n enableNext = props.enableNext,\n enablePrev = props.enablePrev,\n disabledMonth = props.disabledMonth,\n renderFooter = props.renderFooter,\n onChange = props.onChange,\n onClear = props.onClear,\n showMonthInput = props.showMonthInput;\n\n\n var panel = null;\n if (mode === 'month') {\n panel = _react2[\"default\"].createElement(_MonthPanel2[\"default\"], {\n showDateInput: true,\n locale: locale,\n showMonthInput: showMonthInput,\n defaultValue: value,\n rootPrefixCls: prefixCls,\n onSelect: this.onMonthSelect,\n onYearPanelShow: function onYearPanelShow() {\n return _this2.showYearPanel('month');\n },\n disabledDate: disabledMonth,\n cellRender: props.monthCellRender,\n contentRender: props.monthCellContentRender,\n renderFooter: renderFooter,\n onChange: onChange,\n onClear: onClear,\n value: value\n });\n }\n if (mode === 'year') {\n panel = _react2[\"default\"].createElement(_YearPanel2[\"default\"], {\n locale: locale,\n defaultValue: value,\n rootPrefixCls: prefixCls,\n onSelect: this.onYearSelect,\n onDecadePanelShow: this.showDecadePanel,\n renderFooter: renderFooter\n });\n }\n if (mode === 'decade') {\n panel = _react2[\"default\"].createElement(_DecadePanel2[\"default\"], {\n locale: locale,\n defaultValue: value,\n rootPrefixCls: prefixCls,\n onSelect: this.onDecadeSelect,\n renderFooter: renderFooter\n });\n }\n\n return _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-header' },\n _react2[\"default\"].createElement(\n 'div',\n { style: { position: 'relative' }, className: prefixCls + '-header-btns' },\n showIf(enablePrev && !showTimePicker, _react2[\"default\"].createElement('a', {\n className: prefixCls + '-prev-year-btn',\n role: 'button',\n onClick: this.previousYear,\n title: locale.previousYear\n })),\n showIf(enablePrev && !showTimePicker, _react2[\"default\"].createElement('a', {\n className: prefixCls + '-prev-month-btn',\n role: 'button',\n onClick: this.previousMonth,\n title: locale.previousMonth\n })),\n this.monthYearElement(showTimePicker),\n showIf(enableNext && !showTimePicker, _react2[\"default\"].createElement('a', {\n className: prefixCls + '-next-month-btn',\n onClick: this.nextMonth,\n title: locale.nextMonth\n })),\n showIf(enableNext && !showTimePicker, _react2[\"default\"].createElement('a', {\n className: prefixCls + '-next-year-btn',\n onClick: this.nextYear,\n title: locale.nextYear\n }))\n ),\n panel\n );\n };\n\n return CalendarHeader;\n}(_react2[\"default\"].Component);\n\nCalendarHeader.propTypes = {\n prefixCls: _propTypes2[\"default\"].string,\n value: _propTypes2[\"default\"].object,\n onValueChange: _propTypes2[\"default\"].func,\n showTimePicker: _propTypes2[\"default\"].bool,\n onPanelChange: _propTypes2[\"default\"].func,\n locale: _propTypes2[\"default\"].object,\n enablePrev: _propTypes2[\"default\"].any,\n enableNext: _propTypes2[\"default\"].any,\n disabledMonth: _propTypes2[\"default\"].func,\n renderFooter: _propTypes2[\"default\"].func,\n onMonthSelect: _propTypes2[\"default\"].func\n};\nCalendarHeader.defaultProps = {\n enableNext: 1,\n enablePrev: 1,\n onPanelChange: function onPanelChange() {},\n onValueChange: function onValueChange() {}\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this3 = this;\n\n this.onMonthSelect = function (value) {\n _this3.props.onPanelChange(value, 'date');\n if (_this3.props.onMonthSelect) {\n _this3.props.onMonthSelect(value);\n } else {\n _this3.props.onValueChange(value);\n }\n };\n\n this.onYearSelect = function (value) {\n var referer = _this3.state.yearPanelReferer;\n _this3.setState({ yearPanelReferer: null });\n _this3.props.onPanelChange(value, referer);\n _this3.props.onValueChange(value);\n };\n\n this.onDecadeSelect = function (value) {\n _this3.props.onPanelChange(value, 'year');\n _this3.props.onValueChange(value);\n };\n\n this.monthYearElement = function (showTimePicker) {\n var props = _this3.props;\n var prefixCls = props.prefixCls;\n var locale = props.locale;\n var value = props.value;\n var localeData = value.localeData && value.localeData();\n var monthBeforeYear = locale.monthBeforeYear;\n var selectClassName = prefixCls + '-' + (monthBeforeYear ? 'my-select' : 'ym-select');\n var timeClassName = showTimePicker ? ' ' + prefixCls + '-time-status' : '';\n var year = _react2[\"default\"].createElement(\n 'a',\n {\n className: prefixCls + '-year-select' + timeClassName,\n role: 'button',\n onClick: showTimePicker ? null : function () {\n return _this3.showYearPanel('date');\n },\n title: showTimePicker ? null : locale.yearSelect\n },\n value.format(locale.yearFormat)\n );\n var month = _react2[\"default\"].createElement(\n 'a',\n {\n className: prefixCls + '-month-select' + timeClassName,\n role: 'button',\n onClick: showTimePicker ? null : _this3.showMonthPanel,\n title: showTimePicker ? null : locale.monthSelect\n },\n locale.monthFormat ? value.format(locale.monthFormat) : localeData.monthsShort(value)\n );\n var day = void 0;\n if (showTimePicker) {\n day = _react2[\"default\"].createElement(\n 'a',\n {\n className: prefixCls + '-day-select' + timeClassName,\n role: 'button'\n },\n value.format(locale.dayFormat)\n );\n }\n var my = [];\n if (monthBeforeYear) {\n my = [month, day, year];\n } else {\n my = [year, month, day];\n }\n return _react2[\"default\"].createElement(\n 'span',\n { className: selectClassName },\n (0, _mapSelf2[\"default\"])(my)\n );\n };\n\n this.showMonthPanel = function () {\n // null means that users' interaction doesn't change value\n _this3.props.onPanelChange(null, 'month');\n };\n\n this.showYearPanel = function (referer) {\n _this3.setState({ yearPanelReferer: referer });\n _this3.props.onPanelChange(null, 'year');\n };\n\n this.showDecadePanel = function () {\n _this3.props.onPanelChange(null, 'decade');\n };\n};\n\nexports[\"default\"] = CalendarHeader;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-datepicker/build/rc-calendar/calendar/CalendarHeader.js\n// module id = 541\n// module chunks = 0","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = mapSelf;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction mirror(o) {\n return o;\n}\n\nfunction mapSelf(children) {\n // return ReactFragment\n return _react.default.Children.map(children, mirror);\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rc-util/lib/Children/mapSelf.js\n// module id = 542\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _reactLifecyclesCompat = require('react-lifecycles-compat');\n\nvar _MonthTable = require('./MonthTable');\n\nvar _MonthTable2 = _interopRequireDefault(_MonthTable);\n\nvar _DateInput = require('../date/DateInput');\n\nvar _DateInput2 = _interopRequireDefault(_DateInput);\n\nvar _moment = require('moment');\n\nvar _moment2 = _interopRequireDefault(_moment);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nfunction goYear(direction) {\n var next = this.state.value.clone();\n next.add(direction, 'year');\n this.setAndChangeValue(next);\n}\n\nfunction noop() {}\n\nvar MonthPanel = function (_React$Component) {\n _inherits(MonthPanel, _React$Component);\n\n function MonthPanel(props) {\n _classCallCheck(this, MonthPanel);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));\n\n _this.setAndChangeValue = function (value) {\n _this.setValue(value);\n _this.props.onChange(value);\n };\n\n _this.setAndSelectValue = function (value) {\n _this.setValue(value);\n _this.props.onSelect(value);\n };\n\n _this.setValue = function (value) {\n if (!('value' in _this.props)) {\n _this.setState({\n value: value\n });\n }\n };\n\n _this.nextYear = goYear.bind(_this, 1);\n _this.previousYear = goYear.bind(_this, -1);\n _this.prefixCls = props.rootPrefixCls + '-month-panel';\n\n _this.state = {\n value: props.value || props.defaultValue\n };\n return _this;\n }\n\n MonthPanel.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps) {\n var newState = {};\n\n if ('value' in nextProps) {\n newState = {\n value: nextProps.value\n };\n }\n\n return newState;\n };\n\n MonthPanel.prototype.render = function render() {\n var props = this.props;\n var value = this.state.value;\n var locale = props.locale,\n cellRender = props.cellRender,\n contentRender = props.contentRender,\n renderFooter = props.renderFooter,\n rootPrefixCls = props.rootPrefixCls;\n\n var year = value.year();\n var prefixCls = this.prefixCls;\n\n var footer = renderFooter && renderFooter('month');\n\n return _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls, style: props.style, tabIndex: '0' },\n _react2[\"default\"].createElement(\n 'div',\n null,\n _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-header' },\n _react2[\"default\"].createElement('a', {\n className: prefixCls + '-prev-year-btn',\n role: 'button',\n onClick: this.previousYear,\n title: locale.previousYear\n }),\n _react2[\"default\"].createElement(\n 'a',\n {\n className: prefixCls + '-year-select',\n role: 'button',\n onClick: props.onYearPanelShow,\n title: locale.yearSelect\n },\n _react2[\"default\"].createElement(\n 'span',\n { className: prefixCls + '-year-select-content' },\n year\n ),\n _react2[\"default\"].createElement(\n 'span',\n { className: prefixCls + '-year-select-arrow' },\n 'x'\n )\n ),\n _react2[\"default\"].createElement('a', {\n className: prefixCls + '-next-year-btn',\n role: 'button',\n onClick: this.nextYear,\n title: locale.nextYear\n })\n ),\n _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-body' },\n _react2[\"default\"].createElement(_MonthTable2[\"default\"], {\n disabledDate: props.disabledDate,\n onSelect: this.setAndSelectValue,\n locale: locale,\n value: value,\n cellRender: cellRender,\n contentRender: contentRender,\n prefixCls: prefixCls\n })\n ),\n footer && _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-footer' },\n footer\n )\n )\n );\n };\n\n return MonthPanel;\n}(_react2[\"default\"].Component);\n\nMonthPanel.propTypes = {\n onChange: _propTypes2[\"default\"].func,\n disabledDate: _propTypes2[\"default\"].func,\n onSelect: _propTypes2[\"default\"].func,\n renderFooter: _propTypes2[\"default\"].func,\n rootPrefixCls: _propTypes2[\"default\"].string,\n value: _propTypes2[\"default\"].object,\n defaultValue: _propTypes2[\"default\"].object\n};\nMonthPanel.defaultProps = {\n onChange: noop,\n onSelect: noop\n};\n\n\n(0, _reactLifecyclesCompat.polyfill)(MonthPanel);\n\nexports[\"default\"] = MonthPanel;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-datepicker/build/rc-calendar/month/MonthPanel.js\n// module id = 543\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _index = require('../util/index');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar ROW = 4;\nvar COL = 3;\n\nfunction chooseMonth(month) {\n var next = this.state.value.clone();\n next.month(month);\n this.setAndSelectValue(next);\n}\n\nfunction noop() {}\n\nvar MonthTable = function (_Component) {\n _inherits(MonthTable, _Component);\n\n function MonthTable(props) {\n _classCallCheck(this, MonthTable);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props));\n\n _this.state = {\n value: props.value\n };\n return _this;\n }\n\n MonthTable.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n if ('value' in nextProps) {\n this.setState({\n value: nextProps.value\n });\n }\n };\n\n MonthTable.prototype.setAndSelectValue = function setAndSelectValue(value) {\n this.setState({\n value: value\n });\n this.props.onSelect(value);\n };\n\n MonthTable.prototype.months = function months() {\n var value = this.state.value;\n var current = value.clone();\n var months = [];\n var index = 0;\n for (var rowIndex = 0; rowIndex < ROW; rowIndex++) {\n months[rowIndex] = [];\n for (var colIndex = 0; colIndex < COL; colIndex++) {\n current.month(index);\n var content = (0, _index.getMonthName)(current);\n months[rowIndex][colIndex] = {\n value: index,\n content: content,\n title: content\n };\n index++;\n }\n }\n return months;\n };\n\n MonthTable.prototype.render = function render() {\n var _this2 = this;\n\n var props = this.props;\n var value = this.state.value;\n var today = (0, _index.getTodayTime)(value);\n var months = this.months();\n var currentMonth = value.month();\n var prefixCls = props.prefixCls,\n locale = props.locale,\n contentRender = props.contentRender,\n cellRender = props.cellRender;\n\n var monthsEls = months.map(function (month, index) {\n var tds = month.map(function (monthData) {\n var _classNameMap;\n\n var disabled = false;\n if (props.disabledDate) {\n var testValue = value.clone();\n testValue.month(monthData.value);\n disabled = props.disabledDate(testValue);\n }\n var classNameMap = (_classNameMap = {}, _defineProperty(_classNameMap, prefixCls + '-cell', 1), _defineProperty(_classNameMap, prefixCls + '-cell-disabled', disabled), _defineProperty(_classNameMap, prefixCls + '-selected-cell', monthData.value === currentMonth), _defineProperty(_classNameMap, prefixCls + '-current-cell', today.year() === value.year() && monthData.value === today.month()), _classNameMap);\n var cellEl = void 0;\n if (cellRender) {\n var currentValue = value.clone();\n currentValue.month(monthData.value);\n cellEl = cellRender(currentValue, locale);\n } else {\n var content = void 0;\n if (contentRender) {\n var _currentValue = value.clone();\n _currentValue.month(monthData.value);\n content = contentRender(_currentValue, locale);\n } else {\n content = monthData.content;\n }\n cellEl = _react2[\"default\"].createElement(\n 'a',\n { className: prefixCls + '-month' },\n content\n );\n }\n return _react2[\"default\"].createElement(\n 'td',\n {\n role: 'gridcell',\n key: monthData.value,\n onClick: disabled ? null : chooseMonth.bind(_this2, monthData.value),\n title: monthData.title,\n className: (0, _classnames2[\"default\"])(classNameMap)\n },\n cellEl\n );\n });\n return _react2[\"default\"].createElement(\n 'tr',\n { key: index, role: 'row' },\n tds\n );\n });\n\n return _react2[\"default\"].createElement(\n 'table',\n { className: prefixCls + '-table', cellSpacing: '0', role: 'grid' },\n _react2[\"default\"].createElement(\n 'tbody',\n { className: prefixCls + '-tbody' },\n monthsEls\n )\n );\n };\n\n return MonthTable;\n}(_react.Component);\n\nMonthTable.defaultProps = {\n onSelect: noop\n};\nMonthTable.propTypes = {\n onSelect: _propTypes2[\"default\"].func,\n cellRender: _propTypes2[\"default\"].func,\n prefixCls: _propTypes2[\"default\"].string,\n value: _propTypes2[\"default\"].object\n};\nexports[\"default\"] = MonthTable;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-datepicker/build/rc-calendar/month/MonthTable.js\n// module id = 544\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = require('react-dom');\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _tinperBeeCore = require('tinper-bee-core');\n\nvar _reactLifecyclesCompat = require('react-lifecycles-compat');\n\nvar _moment = require('moment');\n\nvar _moment2 = _interopRequireDefault(_moment);\n\nvar _util = require('../util');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar cachedSelectionStart = void 0;\nvar cachedSelectionEnd = void 0;\nvar dateInputInstance = void 0;\n\nvar DateInput = function (_React$Component) {\n _inherits(DateInput, _React$Component);\n\n function DateInput(props) {\n _classCallCheck(this, DateInput);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));\n\n _initialiseProps.call(_this);\n\n var selectedValue = props.selectedValue;\n\n _this.state = {\n str: (0, _util.formatDate)(selectedValue, _this.props.format),\n invalid: false,\n hasFocus: false\n };\n return _this;\n }\n\n DateInput.prototype.componentDidUpdate = function componentDidUpdate() {\n if (dateInputInstance && this.state.hasFocus && !this.state.invalid && !(cachedSelectionStart === 0 && cachedSelectionEnd === 0)) {\n dateInputInstance.setSelectionRange(cachedSelectionStart, cachedSelectionEnd);\n }\n };\n\n DateInput.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, state) {\n var newState = {};\n\n if (dateInputInstance) {\n cachedSelectionStart = dateInputInstance.selectionStart;\n cachedSelectionEnd = dateInputInstance.selectionEnd;\n }\n // when popup show, click body will call this, bug!\n var selectedValue = nextProps.selectedValue;\n if (!state.hasFocus) {\n newState = {\n str: (0, _util.formatDate)(selectedValue, nextProps.format),\n invalid: false\n };\n }\n\n return newState;\n };\n\n DateInput.getInstance = function getInstance() {\n return dateInputInstance;\n };\n\n DateInput.prototype.render = function render() {\n var props = this.props;\n var _state = this.state,\n invalid = _state.invalid,\n str = _state.str;\n var locale = props.locale,\n prefixCls = props.prefixCls,\n placeholder = props.placeholder,\n clearIcon = props.clearIcon,\n renderError = props.renderError,\n inputTabIndex = props.inputTabIndex;\n\n var invalidClass = invalid ? prefixCls + '-input-invalid' : '';\n return _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-input-wrap' },\n _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-date-input-wrap' },\n _react2[\"default\"].createElement('input', {\n ref: this.saveDateInput,\n className: prefixCls + '-input ' + invalidClass,\n value: str ? str : (0, _util.formatDate)(props.selectedValue, props.format),\n disabled: props.disabled,\n placeholder: placeholder,\n onChange: this.onInputChange,\n onKeyDown: this.onKeyDown,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n tabIndex: inputTabIndex\n }),\n invalid && renderError ? renderError() : ''\n ),\n props.showClear ? _react2[\"default\"].createElement(\n 'a',\n {\n role: 'button',\n title: locale.clear,\n onClick: this.onClear\n },\n clearIcon || _react2[\"default\"].createElement('span', { className: prefixCls + '-clear-btn uf uf-close-c' })\n ) : null\n );\n };\n\n return DateInput;\n}(_react2[\"default\"].Component);\n\nDateInput.propTypes = {\n prefixCls: _propTypes2[\"default\"].string,\n timePicker: _propTypes2[\"default\"].object,\n value: _propTypes2[\"default\"].object,\n disabledTime: _propTypes2[\"default\"].any,\n format: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].string, _propTypes2[\"default\"].arrayOf(_propTypes2[\"default\"].string)]),\n locale: _propTypes2[\"default\"].object,\n disabledDate: _propTypes2[\"default\"].func,\n onChange: _propTypes2[\"default\"].func,\n onClear: _propTypes2[\"default\"].func,\n placeholder: _propTypes2[\"default\"].string,\n onSelect: _propTypes2[\"default\"].func,\n selectedValue: _propTypes2[\"default\"].object,\n clearIcon: _propTypes2[\"default\"].node\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this2 = this;\n\n this.onClear = function () {\n _this2.setState({\n str: ''\n });\n _this2.props.onClear(null);\n };\n\n this.onInputChange = function (event) {\n var str = event.target.value;\n var _props = _this2.props,\n disabledDate = _props.disabledDate,\n format = _props.format,\n onChange = _props.onChange,\n selectedValue = _props.selectedValue,\n validatorFunc = _props.validatorFunc;\n\n // 没有内容,合法并直接退出\n\n if (!str) {\n onChange(null);\n _this2.setState({\n // invalid: false,\n str: str\n });\n return;\n }\n\n // 不合法直接退出\n var parsed = (0, _moment2[\"default\"])(str, format, true);\n if (!parsed.isValid()) {\n _this2.setState({\n // invalid: true,\n str: str\n });\n return;\n }\n if (!_this2.props.validatorFunc(str)) {\n _this2.setState({\n str: str\n });\n return;\n };\n\n var value = _this2.props.value.clone();\n value.year(parsed.year()).month(parsed.month()).date(parsed.date()).hour(parsed.hour()).minute(parsed.minute()).second(parsed.second());\n\n if (!value || disabledDate && disabledDate(value)) {\n _this2.setState({\n // invalid: true,\n str: str\n });\n return;\n }\n\n if (selectedValue !== value || selectedValue && value && !selectedValue.isSame(value)) {\n _this2.setState({\n // invalid: false,\n str: str\n });\n onChange(value);\n }\n };\n\n this.onFocus = function () {\n _this2.setState({ hasFocus: true });\n };\n\n this.onBlur = function (e) {\n var str = e.target.value;\n var _props2 = _this2.props,\n disabledDate = _props2.disabledDate,\n format = _props2.format,\n onChange = _props2.onChange,\n selectedValue = _props2.selectedValue;\n\n // 没有内容,合法并直接退出\n\n if (!str) {\n _this2.setState({\n invalid: false\n });\n return;\n }\n\n // 不合法直接退出\n var parsed = (0, _moment2[\"default\"])(str, format, true);\n if (!parsed.isValid()) {\n _this2.setState({\n invalid: true\n });\n return;\n }\n if (!_this2.props.validatorFunc(str)) {\n _this2.setState({\n invalid: true\n });\n return;\n };\n\n var value = _this2.props.value.clone();\n value.year(parsed.year()).month(parsed.month()).date(parsed.date()).hour(parsed.hour()).minute(parsed.minute()).second(parsed.second());\n\n if (!value || disabledDate && disabledDate(value)) {\n _this2.setState({\n invalid: true\n });\n return;\n }\n\n if (selectedValue !== value || selectedValue && value && !selectedValue.isSame(value)) {\n _this2.setState({\n invalid: false\n });\n }\n\n _this2.setState(function (prevState, prevProps) {\n return {\n hasFocus: false,\n str: (0, _util.formatDate)(prevProps.value, prevProps.format)\n };\n });\n _this2.props.onBlur && _this2.props.onBlur(e);\n };\n\n this.onKeyDown = function (e) {\n var _props3 = _this2.props,\n onSelect = _props3.onSelect,\n value = _props3.value,\n onKeyDown = _props3.onKeyDown,\n format = _props3.format,\n isRange = _props3.isRange,\n validatorFunc = _props3.validatorFunc,\n disabledDate = _props3.disabledDate;\n\n var str = e.target.value;\n var parsed = (0, _moment2[\"default\"])(str, format, true);\n if (e.keyCode === _tinperBeeCore.KeyCode.ENTER) {\n if (parsed.isValid() && onSelect) {\n isRange ? onSelect(parsed.clone()) : onSelect(value.clone()); //FIX https://github.com/iuap-design/tinper-bee/issues/183\n }\n // 没有内容,回填默认值,并关闭面板\n if (!str) {\n _this2.setState({\n invalid: false\n });\n onSelect && onSelect((0, _moment2[\"default\"])());\n return;\n }\n // 有内容,判断是否合法\n if (!parsed.isValid()) {\n _this2.setState({\n invalid: true\n });\n }\n if (!validatorFunc(str)) {\n _this2.setState({\n invalid: true\n });\n }\n value.year(parsed.year()).month(parsed.month()).date(parsed.date()).hour(parsed.hour()).minute(parsed.minute()).second(parsed.second());\n\n if (!value || disabledDate && disabledDate(value)) {\n _this2.setState({\n invalid: true\n });\n }\n }\n // if (e.keyCode === KeyCode.ENTER && onSelect) {\n // onSelect(value.clone());\n // }\n onKeyDown && onKeyDown(e);\n };\n\n this.getRootDOMNode = function () {\n return _reactDom2[\"default\"].findDOMNode(_this2);\n };\n\n this.focus = function () {\n if (dateInputInstance) {\n dateInputInstance.focus();\n }\n };\n\n this.saveDateInput = function (dateInput) {\n dateInputInstance = dateInput;\n };\n};\n\n(0, _reactLifecyclesCompat.polyfill)(DateInput);\n\nexports[\"default\"] = DateInput;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-datepicker/build/rc-calendar/date/DateInput.js\n// module id = 545\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _DecadePanel = require('../decade/DecadePanel');\n\nvar _DecadePanel2 = _interopRequireDefault(_DecadePanel);\n\nvar _DateInput = require('../date/DateInput');\n\nvar _DateInput2 = _interopRequireDefault(_DateInput);\n\nvar _moment = require('moment');\n\nvar _moment2 = _interopRequireDefault(_moment);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar ROW = 4;\nvar COL = 3;\n\nfunction goYear(direction) {\n var value = this.state.value.clone();\n value.add(direction, 'year');\n this.setState({\n value: value\n });\n}\n\nfunction chooseYear(year) {\n var value = this.state.value.clone();\n value.year(year);\n value.month(this.state.value.month());\n this.props.onSelect(value);\n}\n\nvar YearPanel = function (_React$Component) {\n _inherits(YearPanel, _React$Component);\n\n function YearPanel(props) {\n _classCallCheck(this, YearPanel);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));\n\n _this.yearSelect = function (value) {\n var _this$props = _this.props,\n onSelect = _this$props.onSelect,\n format = _this$props.format;\n\n onSelect && onSelect(value, value ? value.format(format) : '');\n };\n\n _this.onInputChange = function (value) {\n var _this$props2 = _this.props,\n onChange = _this$props2.onChange,\n format = _this$props2.format;\n\n _this.setState({\n value: value ? value : (0, _moment2[\"default\"])()\n });\n onChange && onChange(value, value ? value.format(format) : '');\n };\n\n _this.onClear = function () {\n var _this$props3 = _this.props,\n onChange = _this$props3.onChange,\n format = _this$props3.format,\n onClear = _this$props3.onClear;\n\n _this.setState({\n value: (0, _moment2[\"default\"])()\n });\n onChange && onChange('', '');\n onClear && onClear('', '');\n };\n\n _this.prefixCls = props.rootPrefixCls + '-year-panel';\n _this.state = {\n value: props.value || props.defaultValue || (0, _moment2[\"default\"])()\n };\n _this.nextDecade = goYear.bind(_this, 10);\n _this.previousDecade = goYear.bind(_this, -10);\n ['showDecadePanel', 'onDecadePanelSelect'].forEach(function (method) {\n _this[method] = _this[method].bind(_this);\n });\n return _this;\n }\n\n YearPanel.prototype.onDecadePanelSelect = function onDecadePanelSelect(current) {\n this.setState({\n value: current,\n showDecadePanel: 0\n });\n };\n\n YearPanel.prototype.years = function years() {\n var value = this.state.value;\n var currentYear = value.year();\n var startYear = parseInt(currentYear / 10, 10) * 10;\n var previousYear = startYear - 1;\n var years = [];\n var index = 0;\n for (var rowIndex = 0; rowIndex < ROW; rowIndex++) {\n years[rowIndex] = [];\n for (var colIndex = 0; colIndex < COL; colIndex++) {\n var year = previousYear + index;\n var content = String(year);\n years[rowIndex][colIndex] = {\n content: content,\n year: year,\n title: content\n };\n index++;\n }\n }\n return years;\n };\n\n YearPanel.prototype.showDecadePanel = function showDecadePanel() {\n this.setState({\n showDecadePanel: 1\n });\n };\n\n YearPanel.prototype.render = function render() {\n var _this2 = this;\n\n var props = this.props;\n var value = this.state.value;\n var locale = props.locale;\n var years = this.years();\n var currentYear = value.year();\n var startYear = parseInt(currentYear / 10, 10) * 10;\n var endYear = startYear + 9;\n var prefixCls = this.prefixCls;\n\n var yeasEls = years.map(function (row, index) {\n var tds = row.map(function (yearData) {\n var _classNameMap;\n\n var classNameMap = (_classNameMap = {}, _defineProperty(_classNameMap, prefixCls + '-cell', 1), _defineProperty(_classNameMap, prefixCls + '-selected-cell', yearData.year === currentYear), _defineProperty(_classNameMap, prefixCls + '-last-decade-cell', yearData.year < startYear), _defineProperty(_classNameMap, prefixCls + '-next-decade-cell', yearData.year > endYear), _classNameMap);\n var clickHandler = void 0;\n if (yearData.year < startYear) {\n clickHandler = _this2.previousDecade;\n } else if (yearData.year > endYear) {\n clickHandler = _this2.nextDecade;\n } else {\n clickHandler = chooseYear.bind(_this2, yearData.year);\n }\n return _react2[\"default\"].createElement(\n 'td',\n {\n role: 'gridcell',\n title: yearData.title,\n key: yearData.content,\n onClick: clickHandler,\n className: (0, _classnames2[\"default\"])(classNameMap)\n },\n _react2[\"default\"].createElement(\n 'a',\n {\n className: prefixCls + '-year'\n },\n yearData.content\n )\n );\n });\n return _react2[\"default\"].createElement(\n 'tr',\n { key: index, role: 'row' },\n tds\n );\n });\n\n var decadePanel = void 0;\n if (this.state.showDecadePanel) {\n decadePanel = _react2[\"default\"].createElement(_DecadePanel2[\"default\"], {\n locale: locale,\n value: value,\n rootPrefixCls: props.rootPrefixCls,\n onSelect: this.onDecadePanelSelect\n });\n }\n var showDateInput = props.showDateInput,\n rootPrefixCls = props.rootPrefixCls,\n format = props.format,\n validatorFunc = props.validatorFunc;\n\n return _react2[\"default\"].createElement(\n 'div',\n { className: this.prefixCls },\n _react2[\"default\"].createElement(\n 'div',\n null,\n showDateInput ? _react2[\"default\"].createElement(_DateInput2[\"default\"], {\n value: value,\n prefixCls: this.props.rootPrefixCls,\n showClear: true,\n locale: locale,\n format: format,\n onChange: this.onInputChange,\n selectedValue: value,\n onClear: this.onClear,\n onSelect: this.yearSelect,\n validatorFunc: validatorFunc\n }) : '',\n _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-header' },\n _react2[\"default\"].createElement('a', {\n className: prefixCls + '-prev-decade-btn',\n role: 'button',\n onClick: this.previousDecade,\n title: locale.previousDecade\n }),\n _react2[\"default\"].createElement(\n 'a',\n {\n className: prefixCls + '-decade-select',\n role: 'button',\n onClick: this.showDecadePanel,\n title: locale.decadeSelect\n },\n _react2[\"default\"].createElement(\n 'span',\n { className: prefixCls + '-decade-select-content' },\n startYear,\n '-',\n endYear\n ),\n _react2[\"default\"].createElement(\n 'span',\n { className: prefixCls + '-decade-select-arrow' },\n 'x'\n )\n ),\n _react2[\"default\"].createElement('a', {\n className: prefixCls + '-next-decade-btn',\n role: 'button',\n onClick: this.nextDecade,\n title: locale.nextDecade\n })\n ),\n _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-body' },\n _react2[\"default\"].createElement(\n 'table',\n { className: prefixCls + '-table', cellSpacing: '0', role: 'grid' },\n _react2[\"default\"].createElement(\n 'tbody',\n { className: prefixCls + '-tbody' },\n yeasEls\n )\n )\n )\n ),\n decadePanel\n );\n };\n\n return YearPanel;\n}(_react2[\"default\"].Component);\n\nexports[\"default\"] = YearPanel;\n\n\nYearPanel.propTypes = {\n rootPrefixCls: _propTypes2[\"default\"].string,\n value: _propTypes2[\"default\"].object,\n defaultValue: _propTypes2[\"default\"].object\n};\n\nYearPanel.defaultProps = {\n onSelect: function onSelect() {},\n\n format: 'YYYY',\n showDateInput: false\n};\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-datepicker/build/rc-calendar/year/YearPanel.js\n// module id = 546\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar ROW = 4;\nvar COL = 3;\n\n\nfunction goYear(direction) {\n var next = this.state.value.clone();\n next.add(direction, 'years');\n this.setState({\n value: next\n });\n}\n\nfunction chooseDecade(year, event) {\n var next = this.state.value.clone();\n next.year(year);\n next.month(this.state.value.month());\n this.props.onSelect(next);\n event.preventDefault();\n}\n\nvar DecadePanel = function (_React$Component) {\n _inherits(DecadePanel, _React$Component);\n\n function DecadePanel(props) {\n _classCallCheck(this, DecadePanel);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));\n\n _this.state = {\n value: props.value || props.defaultValue\n };\n\n // bind methods\n _this.prefixCls = props.rootPrefixCls + '-decade-panel';\n _this.nextCentury = goYear.bind(_this, 100);\n _this.previousCentury = goYear.bind(_this, -100);\n return _this;\n }\n\n DecadePanel.prototype.render = function render() {\n var _this2 = this;\n\n var value = this.state.value;\n var _props = this.props,\n locale = _props.locale,\n renderFooter = _props.renderFooter;\n\n var currentYear = value.year();\n var startYear = parseInt(currentYear / 100, 10) * 100;\n var preYear = startYear - 10;\n var endYear = startYear + 99;\n var decades = [];\n var index = 0;\n var prefixCls = this.prefixCls;\n\n for (var rowIndex = 0; rowIndex < ROW; rowIndex++) {\n decades[rowIndex] = [];\n for (var colIndex = 0; colIndex < COL; colIndex++) {\n var startDecade = preYear + index * 10;\n var endDecade = preYear + index * 10 + 9;\n decades[rowIndex][colIndex] = {\n startDecade: startDecade,\n endDecade: endDecade\n };\n index++;\n }\n }\n\n var footer = renderFooter && renderFooter('decade');\n\n var decadesEls = decades.map(function (row, decadeIndex) {\n var tds = row.map(function (decadeData) {\n var _classNameMap;\n\n var dStartDecade = decadeData.startDecade;\n var dEndDecade = decadeData.endDecade;\n var isLast = dStartDecade < startYear;\n var isNext = dEndDecade > endYear;\n var classNameMap = (_classNameMap = {}, _defineProperty(_classNameMap, prefixCls + '-cell', 1), _defineProperty(_classNameMap, prefixCls + '-selected-cell', dStartDecade <= currentYear && currentYear <= dEndDecade), _defineProperty(_classNameMap, prefixCls + '-last-century-cell', isLast), _defineProperty(_classNameMap, prefixCls + '-next-century-cell', isNext), _classNameMap);\n var content = dStartDecade + '-' + dEndDecade;\n var clickHandler = void 0;\n if (isLast) {\n clickHandler = _this2.previousCentury;\n } else if (isNext) {\n clickHandler = _this2.nextCentury;\n } else {\n clickHandler = chooseDecade.bind(_this2, dStartDecade);\n }\n return _react2[\"default\"].createElement(\n 'td',\n {\n key: dStartDecade,\n onClick: clickHandler,\n role: 'gridcell',\n className: (0, _classnames2[\"default\"])(classNameMap)\n },\n _react2[\"default\"].createElement(\n 'a',\n {\n className: prefixCls + '-decade'\n },\n content\n )\n );\n });\n return _react2[\"default\"].createElement(\n 'tr',\n { key: decadeIndex, role: 'row' },\n tds\n );\n });\n\n return _react2[\"default\"].createElement(\n 'div',\n { className: this.prefixCls },\n _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-header' },\n _react2[\"default\"].createElement('a', {\n className: prefixCls + '-prev-century-btn',\n role: 'button',\n onClick: this.previousCentury,\n title: locale.previousCentury\n }),\n _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-century' },\n startYear,\n '-',\n endYear\n ),\n _react2[\"default\"].createElement('a', {\n className: prefixCls + '-next-century-btn',\n role: 'button',\n onClick: this.nextCentury,\n title: locale.nextCentury\n })\n ),\n _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-body' },\n _react2[\"default\"].createElement(\n 'table',\n { className: prefixCls + '-table', cellSpacing: '0', role: 'grid' },\n _react2[\"default\"].createElement(\n 'tbody',\n { className: prefixCls + '-tbody' },\n decadesEls\n )\n )\n ),\n footer && _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-footer' },\n footer\n )\n );\n };\n\n return DecadePanel;\n}(_react2[\"default\"].Component);\n\nexports[\"default\"] = DecadePanel;\n\n\nDecadePanel.propTypes = {\n locale: _propTypes2[\"default\"].object,\n value: _propTypes2[\"default\"].object,\n defaultValue: _propTypes2[\"default\"].object,\n rootPrefixCls: _propTypes2[\"default\"].string,\n renderFooter: _propTypes2[\"default\"].func\n};\n\nDecadePanel.defaultProps = {\n onSelect: function onSelect() {}\n};\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-datepicker/build/rc-calendar/decade/DecadePanel.js\n// module id = 547\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = require('react-dom');\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _mapSelf = require('rc-util/lib/Children/mapSelf');\n\nvar _mapSelf2 = _interopRequireDefault(_mapSelf);\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _TodayButton = require('../calendar/TodayButton');\n\nvar _TodayButton2 = _interopRequireDefault(_TodayButton);\n\nvar _OkButton = require('../calendar/OkButton');\n\nvar _OkButton2 = _interopRequireDefault(_OkButton);\n\nvar _TimePickerButton = require('../calendar/TimePickerButton');\n\nvar _TimePickerButton2 = _interopRequireDefault(_TimePickerButton);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar CalendarFooter = function (_React$Component) {\n _inherits(CalendarFooter, _React$Component);\n\n function CalendarFooter() {\n _classCallCheck(this, CalendarFooter);\n\n return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n CalendarFooter.prototype.onSelect = function onSelect(value) {\n this.props.onSelect(value);\n };\n\n CalendarFooter.prototype.getRootDOMNode = function getRootDOMNode() {\n return _reactDom2[\"default\"].findDOMNode(this);\n };\n\n CalendarFooter.prototype.render = function render() {\n var props = this.props;\n var value = props.value,\n prefixCls = props.prefixCls,\n showOk = props.showOk,\n timePicker = props.timePicker,\n renderFooter = props.renderFooter,\n mode = props.mode;\n\n var footerEl = null;\n var extraFooter = renderFooter && renderFooter(mode);\n if (props.showToday || timePicker || extraFooter) {\n var nowEl = void 0;\n if (props.showToday) {\n nowEl = _react2[\"default\"].createElement(_TodayButton2[\"default\"], _extends({}, props, { value: value }));\n }\n var okBtn = void 0;\n if (showOk === true || showOk !== false && !!props.timePicker) {\n okBtn = _react2[\"default\"].createElement(_OkButton2[\"default\"], props);\n }\n var timePickerBtn = void 0;\n if (!!props.timePicker) {\n timePickerBtn = _react2[\"default\"].createElement(_TimePickerButton2[\"default\"], props);\n }\n\n var footerBtn = void 0;\n if (nowEl || timePickerBtn || okBtn || extraFooter) {\n footerBtn = _react2[\"default\"].createElement(\n 'span',\n { className: prefixCls + '-footer-btn' },\n extraFooter ? _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-footer-extra' },\n extraFooter\n ) : null,\n (0, _mapSelf2[\"default\"])([nowEl, timePickerBtn, okBtn])\n );\n }\n var cls = (0, _classnames2[\"default\"])(prefixCls + '-footer', _defineProperty({}, prefixCls + '-footer-show-ok', okBtn));\n footerEl = _react2[\"default\"].createElement(\n 'div',\n { className: cls },\n footerBtn\n );\n }\n return footerEl;\n };\n\n return CalendarFooter;\n}(_react2[\"default\"].Component);\n\nCalendarFooter.propTypes = {\n prefixCls: _propTypes2[\"default\"].string,\n showDateInput: _propTypes2[\"default\"].bool,\n disabledTime: _propTypes2[\"default\"].any,\n timePicker: _propTypes2[\"default\"].element,\n selectedValue: _propTypes2[\"default\"].any,\n showOk: _propTypes2[\"default\"].bool,\n onSelect: _propTypes2[\"default\"].func,\n value: _propTypes2[\"default\"].object,\n renderFooter: _propTypes2[\"default\"].func,\n defaultValue: _propTypes2[\"default\"].object,\n mode: _propTypes2[\"default\"].string\n};\nexports[\"default\"] = CalendarFooter;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-datepicker/build/rc-calendar/calendar/CalendarFooter.js\n// module id = 548\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = TodayButton;\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _util = require('../util/');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction TodayButton(_ref) {\n var prefixCls = _ref.prefixCls,\n locale = _ref.locale,\n value = _ref.value,\n timePicker = _ref.timePicker,\n disabled = _ref.disabled,\n disabledDate = _ref.disabledDate,\n onToday = _ref.onToday,\n text = _ref.text;\n\n var localeNow = (!text && timePicker ? locale.now : text) || locale.today;\n var disabledToday = disabledDate && !(0, _util.isAllowedDate)((0, _util.getTodayTime)(value), disabledDate);\n var isDisabled = disabledToday || disabled;\n var disabledTodayClass = isDisabled ? prefixCls + '-today-btn-disabled' : '';\n return _react2[\"default\"].createElement(\n 'a',\n {\n className: prefixCls + '-today-btn ' + disabledTodayClass,\n role: 'button',\n onClick: isDisabled ? null : onToday,\n title: (0, _util.getTodayTimeStr)(value)\n },\n localeNow\n );\n}\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-datepicker/build/rc-calendar/calendar/TodayButton.js\n// module id = 549\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = OkButton;\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _beeButton = require('bee-button');\n\nvar _beeButton2 = _interopRequireDefault(_beeButton);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction OkButton(_ref) {\n var prefixCls = _ref.prefixCls,\n locale = _ref.locale,\n okDisabled = _ref.okDisabled,\n onOk = _ref.onOk;\n\n var className = prefixCls + '-btn-ok';\n // if (okDisabled) {\n // className += ` ${prefixCls}-ok-btn-disabled`;\n // }\n return _react2[\"default\"].createElement(\n _beeButton2[\"default\"],\n {\n className: className,\n size: 'sm', colors: 'primary',\n disabled: !!okDisabled,\n onClick: okDisabled ? null : onOk\n },\n locale.ok\n );\n}\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-datepicker/build/rc-calendar/calendar/OkButton.js\n// module id = 550\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = TimePickerButton;\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _classnames2 = require('classnames');\n\nvar _classnames3 = _interopRequireDefault(_classnames2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction TimePickerButton(_ref) {\n var _classnames;\n\n var prefixCls = _ref.prefixCls,\n locale = _ref.locale,\n showTimePicker = _ref.showTimePicker,\n onOpenTimePicker = _ref.onOpenTimePicker,\n onCloseTimePicker = _ref.onCloseTimePicker,\n timePickerDisabled = _ref.timePickerDisabled;\n\n var className = (0, _classnames3[\"default\"])((_classnames = {}, _defineProperty(_classnames, prefixCls + '-time-picker-btn', true), _defineProperty(_classnames, prefixCls + '-time-picker-btn-disabled', timePickerDisabled), _classnames));\n var onClick = null;\n if (!timePickerDisabled) {\n onClick = showTimePicker ? onCloseTimePicker : onOpenTimePicker;\n }\n return _react2[\"default\"].createElement(\n 'a',\n {\n className: className,\n role: 'button',\n onClick: onClick\n },\n showTimePicker ? locale.dateSelect : locale.timeSelect\n );\n}\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-datepicker/build/rc-calendar/calendar/TimePickerButton.js\n// module id = 551\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.calendarMixinWrapper = exports.calendarMixinDefaultProps = exports.calendarMixinPropTypes = undefined;\nexports.getNowByCurrentStateValue = getNowByCurrentStateValue;\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _moment = require('moment');\n\nvar _moment2 = _interopRequireDefault(_moment);\n\nvar _index = require('../util/index');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nfunction noop() {}\n\nfunction getNowByCurrentStateValue(value) {\n var ret = void 0;\n if (value) {\n ret = (0, _index.getTodayTime)(value);\n } else {\n ret = (0, _moment2[\"default\"])();\n }\n return ret;\n}\n\nvar calendarMixinPropTypes = exports.calendarMixinPropTypes = {\n value: _propTypes2[\"default\"].object,\n defaultValue: _propTypes2[\"default\"].object,\n onKeyDown: _propTypes2[\"default\"].func\n};\n\nvar calendarMixinDefaultProps = exports.calendarMixinDefaultProps = {\n onKeyDown: noop\n};\n\nvar calendarMixinWrapper = exports.calendarMixinWrapper = function calendarMixinWrapper(ComposeComponent) {\n var _class, _temp2;\n\n return _temp2 = _class = function (_ComposeComponent) {\n _inherits(_class, _ComposeComponent);\n\n function _class() {\n var _temp, _this, _ret;\n\n _classCallCheck(this, _class);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, _ComposeComponent.call.apply(_ComposeComponent, [this].concat(args))), _this), _this.onSelect = function (value, cause) {\n if (value) {\n _this.setValue(value);\n }\n _this.setSelectedValue(value, cause);\n }, _this.renderRoot = function (newProps) {\n var _className;\n\n var props = _this.props;\n var prefixCls = props.prefixCls;\n\n var className = (_className = {}, _defineProperty(_className, prefixCls, 1), _defineProperty(_className, prefixCls + '-hidden', !props.visible), _defineProperty(_className, props.className, !!props.className), _defineProperty(_className, newProps.className, !!newProps.className), _className);\n\n return _react2[\"default\"].createElement(\n 'div',\n {\n ref: _this.saveRoot,\n className: '' + (0, _classnames2[\"default\"])(className),\n style: _this.props.style,\n tabIndex: '0',\n onKeyDown: _this.onKeyDown\n },\n newProps.children\n );\n }, _this.setSelectedValue = function (selectedValue, cause) {\n // if (this.isAllowedDate(selectedValue)) {\n if (!('selectedValue' in _this.props)) {\n _this.setState({\n selectedValue: selectedValue\n });\n }\n if (_this.props.onSelect) {\n _this.props.onSelect(selectedValue, cause);\n }\n // }\n }, _this.setValue = function (value) {\n var originalValue = _this.state.value;\n if (!('value' in _this.props)) {\n _this.setState({\n value: value\n });\n }\n if (originalValue && value && !originalValue.isSame(value) || !originalValue && value || originalValue && !value) {\n _this.props.onChange(value);\n }\n }, _this.isAllowedDate = function (value) {\n var disabledDate = _this.props.disabledDate;\n var disabledTime = _this.props.disabledTime;\n return (0, _index.isAllowedDate)(value, disabledDate, disabledTime);\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n _class.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, prevState) {\n // Use origin function if provided\n if (ComposeComponent.getDerivedStateFromProps) {\n return ComposeComponent.getDerivedStateFromProps(nextProps, prevState);\n }\n\n var value = nextProps.value,\n selectedValue = nextProps.selectedValue;\n\n var newState = {};\n\n if ('value' in nextProps) {\n newState.value = value || nextProps.defaultValue || getNowByCurrentStateValue(prevState.value);\n }\n if ('selectedValue' in nextProps) {\n newState.selectedValue = selectedValue;\n }\n\n return newState;\n };\n\n return _class;\n }(ComposeComponent), _class.displayName = 'CalendarMixinWrapper', _class.defaultProps = ComposeComponent.defaultProps, _temp2;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-datepicker/build/rc-calendar/mixin/CalendarMixin.js\n// module id = 552\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.commonMixinWrapper = exports.defaultProp = exports.propType = undefined;\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _en_US = require('../../locale/en_US');\n\nvar _en_US2 = _interopRequireDefault(_en_US);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nfunction noop() {}\n\nvar propType = exports.propType = {\n className: _propTypes2[\"default\"].string,\n locale: _propTypes2[\"default\"].object,\n style: _propTypes2[\"default\"].object,\n visible: _propTypes2[\"default\"].bool,\n onSelect: _propTypes2[\"default\"].func,\n prefixCls: _propTypes2[\"default\"].string,\n onChange: _propTypes2[\"default\"].func,\n onOk: _propTypes2[\"default\"].func\n};\n\nvar defaultProp = exports.defaultProp = {\n locale: _en_US2[\"default\"],\n style: {},\n visible: true,\n prefixCls: 'rc-calendar',\n className: '',\n onSelect: noop,\n onChange: noop,\n onClear: noop,\n renderFooter: function renderFooter() {\n return null;\n },\n renderSidebar: function renderSidebar() {\n return null;\n }\n};\n\nvar commonMixinWrapper = exports.commonMixinWrapper = function commonMixinWrapper(ComposeComponent) {\n var _class, _temp2;\n\n return _temp2 = _class = function (_ComposeComponent) {\n _inherits(_class, _ComposeComponent);\n\n function _class() {\n var _temp, _this, _ret;\n\n _classCallCheck(this, _class);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, _ComposeComponent.call.apply(_ComposeComponent, [this].concat(args))), _this), _this.getFormat = function () {\n var format = _this.props.format;\n var _this$props = _this.props,\n locale = _this$props.locale,\n timePicker = _this$props.timePicker;\n\n if (!format) {\n if (timePicker) {\n format = locale.dateTimeFormat;\n } else {\n format = locale.dateFormat;\n }\n }\n return format;\n }, _this.focus = function () {\n if (_this.focusElement) {\n _this.focusElement.focus();\n } else if (_this.rootInstance) {\n _this.rootInstance.focus();\n }\n }, _this.saveFocusElement = function (focusElement) {\n _this.focusElement = focusElement;\n }, _this.saveRoot = function (root) {\n _this.rootInstance = root;\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n _class.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {\n return this.props.visible || nextProps.visible;\n };\n\n return _class;\n }(ComposeComponent), _class.displayName = 'CommonMixinWrapper', _class.defaultProps = ComposeComponent.defaultProps, _class.getDerivedStateFromProps = ComposeComponent.getDerivedStateFromProps, _temp2;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-datepicker/build/rc-calendar/mixin/CommonMixin.js\n// module id = 553\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\nexports['default'] = {\n today: 'Today',\n now: 'Now',\n backToToday: 'Back to today',\n ok: 'Ok',\n clear: 'Clear',\n month: 'Month',\n year: 'Year',\n timeSelect: 'select time',\n dateSelect: 'select date',\n weekSelect: 'Choose a week',\n monthSelect: 'Choose a month',\n yearSelect: 'Choose a year',\n decadeSelect: 'Choose a decade',\n yearFormat: 'YYYY',\n dateFormat: 'M/D/YYYY',\n dayFormat: 'D',\n dateTimeFormat: 'M/D/YYYY HH:mm:ss',\n monthBeforeYear: true,\n previousMonth: 'Previous month (PageUp)',\n nextMonth: 'Next month (PageDown)',\n previousYear: 'Last year (Control + left)',\n nextYear: 'Next year (Control + right)',\n previousDecade: 'Last decade',\n nextDecade: 'Next decade',\n previousCentury: 'Last century',\n nextCentury: 'Next century'\n};\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-datepicker/build/locale/en_US.js\n// module id = 554\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.goStartMonth = goStartMonth;\nexports.goEndMonth = goEndMonth;\nexports.goTime = goTime;\nexports.includesTime = includesTime;\nfunction goStartMonth(time) {\n return time.clone().startOf('month');\n}\n\nfunction goEndMonth(time) {\n return time.clone().endOf('month');\n}\n\nfunction goTime(time, direction, unit) {\n return time.clone().add(direction, unit);\n}\n\nfunction includesTime() {\n var timeList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var time = arguments[1];\n var unit = arguments[2];\n\n return timeList.some(function (t) {\n return t.isSame(time, unit);\n });\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-datepicker/build/rc-calendar/util/toTime.js\n// module id = 555\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = require('react-dom');\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _reactLifecyclesCompat = require('react-lifecycles-compat');\n\nvar _createChainedFunction = require('rc-util/lib/createChainedFunction');\n\nvar _createChainedFunction2 = _interopRequireDefault(_createChainedFunction);\n\nvar _KeyCode = require('rc-util/lib/KeyCode');\n\nvar _KeyCode2 = _interopRequireDefault(_KeyCode);\n\nvar _placements = require('./picker/placements');\n\nvar _placements2 = _interopRequireDefault(_placements);\n\nvar _rcTrigger = require('rc-trigger');\n\nvar _rcTrigger2 = _interopRequireDefault(_rcTrigger);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nfunction noop() {}\n\nfunction refFn(field, component) {\n this[field] = component;\n}\n\nvar Picker = function (_React$Component) {\n _inherits(Picker, _React$Component);\n\n function Picker(props) {\n _classCallCheck(this, Picker);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));\n\n _initialiseProps.call(_this);\n\n var open = void 0;\n if ('open' in props) {\n open = props.open;\n } else {\n open = props.defaultOpen;\n }\n var value = props.value || props.defaultValue;\n _this.saveCalendarRef = refFn.bind(_this, 'calendarInstance');\n\n _this.state = {\n open: open,\n value: value\n };\n return _this;\n }\n\n Picker.prototype.componentDidUpdate = function componentDidUpdate(_, prevState) {\n if (!prevState.open && this.state.open) {\n // setTimeout is for making sure saveCalendarRef happen before focusCalendar\n this.focusTimeout = setTimeout(this.focusCalendar, 0, this);\n }\n };\n\n Picker.prototype.componentWillUnmount = function componentWillUnmount() {\n clearTimeout(this.focusTimeout);\n };\n\n Picker.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps) {\n var newState = {};\n var value = nextProps.value,\n open = nextProps.open;\n\n if ('value' in nextProps) {\n newState.value = value;\n }\n if (open !== undefined) {\n newState.open = open;\n }\n return newState;\n };\n\n Picker.prototype.render = function render() {\n var props = this.props;\n var prefixCls = props.prefixCls,\n placement = props.placement,\n style = props.style,\n getCalendarContainer = props.getCalendarContainer,\n align = props.align,\n animation = props.animation,\n disabled = props.disabled,\n dropdownClassName = props.dropdownClassName,\n transitionName = props.transitionName,\n children = props.children;\n\n var state = this.state;\n return _react2[\"default\"].createElement(\n _rcTrigger2[\"default\"],\n {\n popup: this.getCalendarElement(),\n popupAlign: align,\n builtinPlacements: _placements2[\"default\"],\n popupPlacement: placement,\n action: disabled && !state.open ? [] : ['click'],\n destroyPopupOnHide: true,\n getPopupContainer: getCalendarContainer,\n popupStyle: style,\n popupAnimation: animation,\n popupTransitionName: transitionName,\n popupVisible: state.open,\n onPopupVisibleChange: this.onVisibleChange,\n prefixCls: prefixCls,\n popupClassName: dropdownClassName\n },\n _react2[\"default\"].cloneElement(children(state, props), { onKeyDown: this.onKeyDown })\n );\n };\n\n return Picker;\n}(_react2[\"default\"].Component);\n\nPicker.propTypes = {\n animation: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].func, _propTypes2[\"default\"].string]),\n disabled: _propTypes2[\"default\"].bool,\n transitionName: _propTypes2[\"default\"].string,\n onChange: _propTypes2[\"default\"].func,\n onOpenChange: _propTypes2[\"default\"].func,\n children: _propTypes2[\"default\"].func,\n getCalendarContainer: _propTypes2[\"default\"].func,\n calendar: _propTypes2[\"default\"].element,\n style: _propTypes2[\"default\"].object,\n open: _propTypes2[\"default\"].bool,\n defaultOpen: _propTypes2[\"default\"].bool,\n prefixCls: _propTypes2[\"default\"].string,\n placement: _propTypes2[\"default\"].any,\n value: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].object, _propTypes2[\"default\"].array]),\n defaultValue: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].object, _propTypes2[\"default\"].array]),\n align: _propTypes2[\"default\"].object,\n enterKeyDown: _propTypes2[\"default\"].bool //enter 键是否打开日期面板\n};\nPicker.defaultProps = {\n prefixCls: 'rc-calendar-picker',\n style: {},\n align: {},\n placement: 'bottomLeft',\n defaultOpen: false,\n onChange: noop,\n onOpenChange: noop,\n enterKeyDown: true\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this2 = this;\n\n this.onCalendarKeyDown = function (event) {\n if (event.keyCode === _KeyCode2[\"default\"].ESC) {\n event.stopPropagation();\n _this2.close(_this2.focus);\n }\n _this2.props.onKeyDown && _this2.props.onKeyDown(event);\n };\n\n this.onCalendarSelect = function (value) {\n var cause = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n var props = _this2.props;\n var isDisabled = props.disabledDate && props.disabledDate(value);\n if (isDisabled) return;\n if (!('value' in props)) {\n _this2.setState({\n value: value\n });\n }\n if (cause.source === 'keyboard' || cause.source === 'dateInputSelect' || !props.calendar.props.timePicker && cause.source !== 'dateInput' || cause.source === 'todayButton') {\n _this2.close(_this2.focus);\n }\n props.onChange(value);\n };\n\n this.onKeyDown = function (event) {\n var enterKeyDown = _this2.props.enterKeyDown;\n\n if (event.keyCode === _KeyCode2[\"default\"].DOWN || enterKeyDown && event.keyCode === _KeyCode2[\"default\"].ENTER) {\n if (!_this2.state.open) _this2.open();\n event.preventDefault();\n }\n _this2.props.onKeyDown && _this2.props.onKeyDown(event);\n };\n\n this.onCalendarOk = function () {\n _this2.close(_this2.focus);\n };\n\n this.onCalendarClear = function () {\n _this2.close(_this2.focus);\n };\n\n this.onVisibleChange = function (open) {\n _this2.setOpen(open);\n };\n\n this.getCalendarElement = function () {\n var props = _this2.props;\n var state = _this2.state;\n var calendarProps = props.calendar.props;\n var value = state.value;\n\n var defaultValue = value;\n var extraProps = {\n ref: _this2.saveCalendarRef,\n defaultValue: defaultValue || calendarProps.defaultValue,\n selectedValue: value,\n onKeyDown: _this2.onCalendarKeyDown,\n onOk: (0, _createChainedFunction2[\"default\"])(calendarProps.onOk, _this2.onCalendarOk),\n onSelect: (0, _createChainedFunction2[\"default\"])(calendarProps.onSelect, _this2.onCalendarSelect),\n onClear: (0, _createChainedFunction2[\"default\"])(calendarProps.onClear, _this2.onCalendarClear)\n };\n\n return _react2[\"default\"].cloneElement(props.calendar, extraProps);\n };\n\n this.setOpen = function (open, callback) {\n var onOpenChange = _this2.props.onOpenChange;\n\n if (_this2.state.open !== open) {\n if (!('open' in _this2.props)) {\n _this2.setState({\n open: open\n }, callback);\n }\n onOpenChange(open);\n }\n };\n\n this.open = function (callback) {\n _this2.setOpen(true, callback);\n };\n\n this.close = function (callback) {\n _this2.setOpen(false, callback);\n };\n\n this.focus = function () {\n if (!_this2.state.open) {\n _reactDom2[\"default\"].findDOMNode(_this2).focus();\n }\n };\n\n this.focusCalendar = function () {\n if (_this2.state.open && !!_this2.calendarInstance) {\n _this2.calendarInstance.focus();\n }\n };\n};\n\n(0, _reactLifecyclesCompat.polyfill)(Picker);\n\nexports[\"default\"] = Picker;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-datepicker/build/rc-calendar/Picker.js\n// module id = 556\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar autoAdjustOverflow = {\n adjustX: 1,\n adjustY: 1\n};\n\nvar targetOffset = [0, 0];\n\nvar placements = {\n bottomLeft: {\n points: ['tl', 'tl'],\n overflow: autoAdjustOverflow,\n offset: [0, -3],\n targetOffset: targetOffset\n },\n bottomRight: {\n points: ['tr', 'tr'],\n overflow: autoAdjustOverflow,\n offset: [0, -3],\n targetOffset: targetOffset\n },\n topRight: {\n points: ['br', 'br'],\n overflow: autoAdjustOverflow,\n offset: [0, 3],\n targetOffset: targetOffset\n },\n topLeft: {\n points: ['bl', 'bl'],\n overflow: autoAdjustOverflow,\n offset: [0, 3],\n targetOffset: targetOffset\n }\n};\n\nexports[\"default\"] = placements;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-datepicker/build/rc-calendar/picker/placements.js\n// module id = 557\n// module chunks = 0","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _moment = _interopRequireDefault(require(\"moment\"));\n\nvar _classnames = _interopRequireDefault(require(\"classnames\"));\n\nvar _reactLifecyclesCompat = require(\"react-lifecycles-compat\");\n\nvar _Header = _interopRequireDefault(require(\"./Header\"));\n\nvar _Combobox = _interopRequireDefault(require(\"./Combobox\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _getRequireWildcardCache() { if (typeof WeakMap !== \"function\") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj[\"default\"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (typeof call === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction noop() {}\n\nfunction generateOptions(length, disabledOptions, hideDisabledOptions) {\n var step = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;\n var arr = [];\n\n for (var value = 0; value < length; value += step) {\n if (!disabledOptions || disabledOptions.indexOf(value) < 0 || !hideDisabledOptions) {\n arr.push(value);\n }\n }\n\n return arr;\n}\n\nfunction toNearestValidTime(time, hourOptions, minuteOptions, secondOptions) {\n var hour = hourOptions.slice().sort(function (a, b) {\n return Math.abs(time.hour() - a) - Math.abs(time.hour() - b);\n })[0];\n var minute = minuteOptions.slice().sort(function (a, b) {\n return Math.abs(time.minute() - a) - Math.abs(time.minute() - b);\n })[0];\n var second = secondOptions.slice().sort(function (a, b) {\n return Math.abs(time.second() - a) - Math.abs(time.second() - b);\n })[0];\n return (0, _moment[\"default\"])(\"\".concat(hour, \":\").concat(minute, \":\").concat(second), 'HH:mm:ss');\n}\n\nvar Panel =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(Panel, _Component);\n\n function Panel() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Panel);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Panel)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_this), \"state\", {});\n\n _defineProperty(_assertThisInitialized(_this), \"onChange\", function (newValue) {\n var onChange = _this.props.onChange;\n\n _this.setState({\n value: newValue\n });\n\n onChange(newValue);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onAmPmChange\", function (ampm) {\n var onAmPmChange = _this.props.onAmPmChange;\n onAmPmChange(ampm);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onCurrentSelectPanelChange\", function (currentSelectPanel) {\n _this.setState({\n currentSelectPanel: currentSelectPanel\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"disabledHours\", function () {\n var _this$props = _this.props,\n use12Hours = _this$props.use12Hours,\n disabledHours = _this$props.disabledHours;\n var disabledOptions = disabledHours();\n\n if (use12Hours && Array.isArray(disabledOptions)) {\n if (_this.isAM()) {\n disabledOptions = disabledOptions.filter(function (h) {\n return h < 12;\n }).map(function (h) {\n return h === 0 ? 12 : h;\n });\n } else {\n disabledOptions = disabledOptions.map(function (h) {\n return h === 12 ? 12 : h - 12;\n });\n }\n }\n\n return disabledOptions;\n });\n\n return _this;\n }\n\n _createClass(Panel, [{\n key: \"close\",\n // https://github.com/ant-design/ant-design/issues/5829\n value: function close() {\n var onEsc = this.props.onEsc;\n onEsc();\n }\n }, {\n key: \"isAM\",\n value: function isAM() {\n var defaultOpenValue = this.props.defaultOpenValue;\n var value = this.state.value;\n var realValue = value || defaultOpenValue;\n return realValue.hour() >= 0 && realValue.hour() < 12;\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this$props2 = this.props,\n prefixCls = _this$props2.prefixCls,\n className = _this$props2.className,\n placeholder = _this$props2.placeholder,\n disabledMinutes = _this$props2.disabledMinutes,\n disabledSeconds = _this$props2.disabledSeconds,\n hideDisabledOptions = _this$props2.hideDisabledOptions,\n showHour = _this$props2.showHour,\n showMinute = _this$props2.showMinute,\n showSecond = _this$props2.showSecond,\n format = _this$props2.format,\n defaultOpenValue = _this$props2.defaultOpenValue,\n clearText = _this$props2.clearText,\n onEsc = _this$props2.onEsc,\n addon = _this$props2.addon,\n use12Hours = _this$props2.use12Hours,\n focusOnOpen = _this$props2.focusOnOpen,\n onKeyDown = _this$props2.onKeyDown,\n hourStep = _this$props2.hourStep,\n minuteStep = _this$props2.minuteStep,\n secondStep = _this$props2.secondStep,\n inputReadOnly = _this$props2.inputReadOnly,\n clearIcon = _this$props2.clearIcon;\n var _this$state = this.state,\n value = _this$state.value,\n currentSelectPanel = _this$state.currentSelectPanel;\n var disabledHourOptions = this.disabledHours();\n var disabledMinuteOptions = disabledMinutes(value ? value.hour() : null);\n var disabledSecondOptions = disabledSeconds(value ? value.hour() : null, value ? value.minute() : null);\n var hourOptions = generateOptions(24, disabledHourOptions, hideDisabledOptions, hourStep);\n var minuteOptions = generateOptions(60, disabledMinuteOptions, hideDisabledOptions, minuteStep);\n var secondOptions = generateOptions(60, disabledSecondOptions, hideDisabledOptions, secondStep);\n var validDefaultOpenValue = toNearestValidTime(defaultOpenValue, hourOptions, minuteOptions, secondOptions);\n return _react[\"default\"].createElement(\"div\", {\n className: (0, _classnames[\"default\"])(className, \"\".concat(prefixCls, \"-inner\"))\n }, _react[\"default\"].createElement(_Header[\"default\"], {\n clearText: clearText,\n prefixCls: prefixCls,\n defaultOpenValue: validDefaultOpenValue,\n value: value,\n currentSelectPanel: currentSelectPanel,\n onEsc: onEsc,\n format: format,\n placeholder: placeholder,\n hourOptions: hourOptions,\n minuteOptions: minuteOptions,\n secondOptions: secondOptions,\n disabledHours: this.disabledHours,\n disabledMinutes: disabledMinutes,\n disabledSeconds: disabledSeconds,\n onChange: this.onChange,\n focusOnOpen: focusOnOpen,\n onKeyDown: onKeyDown,\n inputReadOnly: inputReadOnly,\n clearIcon: clearIcon\n }), _react[\"default\"].createElement(_Combobox[\"default\"], {\n prefixCls: prefixCls,\n value: value,\n defaultOpenValue: validDefaultOpenValue,\n format: format,\n onChange: this.onChange,\n onAmPmChange: this.onAmPmChange,\n showHour: showHour,\n showMinute: showMinute,\n showSecond: showSecond,\n hourOptions: hourOptions,\n minuteOptions: minuteOptions,\n secondOptions: secondOptions,\n disabledHours: this.disabledHours,\n disabledMinutes: disabledMinutes,\n disabledSeconds: disabledSeconds,\n onCurrentSelectPanelChange: this.onCurrentSelectPanelChange,\n use12Hours: use12Hours,\n onEsc: onEsc,\n isAM: this.isAM()\n }), addon(this));\n }\n }], [{\n key: \"getDerivedStateFromProps\",\n value: function getDerivedStateFromProps(props, state) {\n if ('value' in props) {\n return _objectSpread({}, state, {\n value: props.value\n });\n }\n\n return null;\n }\n }]);\n\n return Panel;\n}(_react.Component);\n\n_defineProperty(Panel, \"propTypes\", {\n clearText: _propTypes[\"default\"].string,\n prefixCls: _propTypes[\"default\"].string,\n className: _propTypes[\"default\"].string,\n defaultOpenValue: _propTypes[\"default\"].object,\n value: _propTypes[\"default\"].object,\n placeholder: _propTypes[\"default\"].string,\n format: _propTypes[\"default\"].string,\n inputReadOnly: _propTypes[\"default\"].bool,\n disabledHours: _propTypes[\"default\"].func,\n disabledMinutes: _propTypes[\"default\"].func,\n disabledSeconds: _propTypes[\"default\"].func,\n hideDisabledOptions: _propTypes[\"default\"].bool,\n onChange: _propTypes[\"default\"].func,\n onAmPmChange: _propTypes[\"default\"].func,\n onEsc: _propTypes[\"default\"].func,\n showHour: _propTypes[\"default\"].bool,\n showMinute: _propTypes[\"default\"].bool,\n showSecond: _propTypes[\"default\"].bool,\n use12Hours: _propTypes[\"default\"].bool,\n hourStep: _propTypes[\"default\"].number,\n minuteStep: _propTypes[\"default\"].number,\n secondStep: _propTypes[\"default\"].number,\n addon: _propTypes[\"default\"].func,\n focusOnOpen: _propTypes[\"default\"].bool,\n onKeyDown: _propTypes[\"default\"].func,\n clearIcon: _propTypes[\"default\"].node\n});\n\n_defineProperty(Panel, \"defaultProps\", {\n prefixCls: 'rc-time-picker-panel',\n onChange: noop,\n disabledHours: noop,\n disabledMinutes: noop,\n disabledSeconds: noop,\n defaultOpenValue: (0, _moment[\"default\"])(),\n use12Hours: false,\n addon: noop,\n onKeyDown: noop,\n onAmPmChange: noop,\n inputReadOnly: false\n});\n\n(0, _reactLifecyclesCompat.polyfill)(Panel);\nvar _default = Panel;\nexports[\"default\"] = _default;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rc-time-picker/lib/Panel.js\n// module id = 558\n// module chunks = 0","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _moment = _interopRequireDefault(require(\"moment\"));\n\nvar _classnames = _interopRequireDefault(require(\"classnames\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _getRequireWildcardCache() { if (typeof WeakMap !== \"function\") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj[\"default\"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (typeof call === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar Header =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(Header, _Component);\n\n function Header(props) {\n var _this;\n\n _classCallCheck(this, Header);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(Header).call(this, props));\n\n _defineProperty(_assertThisInitialized(_this), \"onInputChange\", function (event) {\n var str = event.target.value;\n\n _this.setState({\n str: str\n });\n\n var _this$props = _this.props,\n format = _this$props.format,\n hourOptions = _this$props.hourOptions,\n minuteOptions = _this$props.minuteOptions,\n secondOptions = _this$props.secondOptions,\n disabledHours = _this$props.disabledHours,\n disabledMinutes = _this$props.disabledMinutes,\n disabledSeconds = _this$props.disabledSeconds,\n onChange = _this$props.onChange;\n\n if (str) {\n var originalValue = _this.props.value;\n\n var value = _this.getProtoValue().clone();\n\n var parsed = (0, _moment[\"default\"])(str, format, true);\n\n if (!parsed.isValid()) {\n _this.setState({\n invalid: true\n });\n\n return;\n }\n\n value.hour(parsed.hour()).minute(parsed.minute()).second(parsed.second()); // if time value not allowed, response warning.\n\n if (hourOptions.indexOf(value.hour()) < 0 || minuteOptions.indexOf(value.minute()) < 0 || secondOptions.indexOf(value.second()) < 0) {\n _this.setState({\n invalid: true\n });\n\n return;\n } // if time value is disabled, response warning.\n\n\n var disabledHourOptions = disabledHours();\n var disabledMinuteOptions = disabledMinutes(value.hour());\n var disabledSecondOptions = disabledSeconds(value.hour(), value.minute());\n\n if (disabledHourOptions && disabledHourOptions.indexOf(value.hour()) >= 0 || disabledMinuteOptions && disabledMinuteOptions.indexOf(value.minute()) >= 0 || disabledSecondOptions && disabledSecondOptions.indexOf(value.second()) >= 0) {\n _this.setState({\n invalid: true\n });\n\n return;\n }\n\n if (originalValue) {\n if (originalValue.hour() !== value.hour() || originalValue.minute() !== value.minute() || originalValue.second() !== value.second()) {\n // keep other fields for rc-calendar\n var changedValue = originalValue.clone();\n changedValue.hour(value.hour());\n changedValue.minute(value.minute());\n changedValue.second(value.second());\n onChange(changedValue);\n }\n } else if (originalValue !== value) {\n onChange(value);\n }\n } else {\n onChange(null);\n }\n\n _this.setState({\n invalid: false\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onKeyDown\", function (e) {\n var _this$props2 = _this.props,\n onEsc = _this$props2.onEsc,\n onKeyDown = _this$props2.onKeyDown;\n\n if (e.keyCode === 27) {\n onEsc();\n }\n\n onKeyDown(e);\n });\n\n var _value = props.value,\n _format = props.format;\n _this.state = {\n str: _value && _value.format(_format) || '',\n invalid: false\n };\n return _this;\n }\n\n _createClass(Header, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n var _this2 = this;\n\n var focusOnOpen = this.props.focusOnOpen;\n\n if (focusOnOpen) {\n // Wait one frame for the panel to be positioned before focusing\n var requestAnimationFrame = window.requestAnimationFrame || window.setTimeout;\n requestAnimationFrame(function () {\n _this2.refInput.focus();\n\n _this2.refInput.select();\n });\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n var _this$props3 = this.props,\n value = _this$props3.value,\n format = _this$props3.format;\n\n if (value !== prevProps.value) {\n // eslint-disable-next-line react/no-did-update-set-state\n this.setState({\n str: value && value.format(format) || '',\n invalid: false\n });\n }\n }\n }, {\n key: \"getProtoValue\",\n value: function getProtoValue() {\n var _this$props4 = this.props,\n value = _this$props4.value,\n defaultOpenValue = _this$props4.defaultOpenValue;\n return value || defaultOpenValue;\n }\n }, {\n key: \"getInput\",\n value: function getInput() {\n var _this3 = this;\n\n var _this$props5 = this.props,\n prefixCls = _this$props5.prefixCls,\n placeholder = _this$props5.placeholder,\n inputReadOnly = _this$props5.inputReadOnly;\n var _this$state = this.state,\n invalid = _this$state.invalid,\n str = _this$state.str;\n var invalidClass = invalid ? \"\".concat(prefixCls, \"-input-invalid\") : '';\n return _react[\"default\"].createElement(\"input\", {\n className: (0, _classnames[\"default\"])(\"\".concat(prefixCls, \"-input\"), invalidClass),\n ref: function ref(_ref) {\n _this3.refInput = _ref;\n },\n onKeyDown: this.onKeyDown,\n value: str,\n placeholder: placeholder,\n onChange: this.onInputChange,\n readOnly: !!inputReadOnly\n });\n }\n }, {\n key: \"render\",\n value: function render() {\n var prefixCls = this.props.prefixCls;\n return _react[\"default\"].createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-input-wrap\")\n }, this.getInput());\n }\n }]);\n\n return Header;\n}(_react.Component);\n\n_defineProperty(Header, \"propTypes\", {\n format: _propTypes[\"default\"].string,\n prefixCls: _propTypes[\"default\"].string,\n disabledDate: _propTypes[\"default\"].func,\n placeholder: _propTypes[\"default\"].string,\n clearText: _propTypes[\"default\"].string,\n value: _propTypes[\"default\"].object,\n inputReadOnly: _propTypes[\"default\"].bool,\n hourOptions: _propTypes[\"default\"].array,\n minuteOptions: _propTypes[\"default\"].array,\n secondOptions: _propTypes[\"default\"].array,\n disabledHours: _propTypes[\"default\"].func,\n disabledMinutes: _propTypes[\"default\"].func,\n disabledSeconds: _propTypes[\"default\"].func,\n onChange: _propTypes[\"default\"].func,\n onEsc: _propTypes[\"default\"].func,\n defaultOpenValue: _propTypes[\"default\"].object,\n currentSelectPanel: _propTypes[\"default\"].string,\n focusOnOpen: _propTypes[\"default\"].bool,\n onKeyDown: _propTypes[\"default\"].func,\n clearIcon: _propTypes[\"default\"].node\n});\n\n_defineProperty(Header, \"defaultProps\", {\n inputReadOnly: false\n});\n\nvar _default = Header;\nexports[\"default\"] = _default;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rc-time-picker/lib/Header.js\n// module id = 559\n// module chunks = 0","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _Select = _interopRequireDefault(require(\"./Select\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _getRequireWildcardCache() { if (typeof WeakMap !== \"function\") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj[\"default\"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (typeof call === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar formatOption = function formatOption(option, disabledOptions) {\n var value = \"\".concat(option);\n\n if (option < 10) {\n value = \"0\".concat(option);\n }\n\n var disabled = false;\n\n if (disabledOptions && disabledOptions.indexOf(option) >= 0) {\n disabled = true;\n }\n\n return {\n value: value,\n disabled: disabled\n };\n};\n\nvar Combobox =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(Combobox, _Component);\n\n function Combobox() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Combobox);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Combobox)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_this), \"onItemChange\", function (type, itemValue) {\n var _this$props = _this.props,\n onChange = _this$props.onChange,\n defaultOpenValue = _this$props.defaultOpenValue,\n use12Hours = _this$props.use12Hours,\n propValue = _this$props.value,\n isAM = _this$props.isAM,\n onAmPmChange = _this$props.onAmPmChange;\n var value = (propValue || defaultOpenValue).clone();\n\n if (type === 'hour') {\n if (use12Hours) {\n if (isAM) {\n value.hour(+itemValue % 12);\n } else {\n value.hour(+itemValue % 12 + 12);\n }\n } else {\n value.hour(+itemValue);\n }\n } else if (type === 'minute') {\n value.minute(+itemValue);\n } else if (type === 'ampm') {\n var ampm = itemValue.toUpperCase();\n\n if (use12Hours) {\n if (ampm === 'PM' && value.hour() < 12) {\n value.hour(value.hour() % 12 + 12);\n }\n\n if (ampm === 'AM') {\n if (value.hour() >= 12) {\n value.hour(value.hour() - 12);\n }\n }\n }\n\n onAmPmChange(ampm);\n } else {\n value.second(+itemValue);\n }\n\n onChange(value);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onEnterSelectPanel\", function (range) {\n var onCurrentSelectPanelChange = _this.props.onCurrentSelectPanelChange;\n onCurrentSelectPanelChange(range);\n });\n\n return _this;\n }\n\n _createClass(Combobox, [{\n key: \"getHourSelect\",\n value: function getHourSelect(hour) {\n var _this2 = this;\n\n var _this$props2 = this.props,\n prefixCls = _this$props2.prefixCls,\n hourOptions = _this$props2.hourOptions,\n disabledHours = _this$props2.disabledHours,\n showHour = _this$props2.showHour,\n use12Hours = _this$props2.use12Hours,\n onEsc = _this$props2.onEsc;\n\n if (!showHour) {\n return null;\n }\n\n var disabledOptions = disabledHours();\n var hourOptionsAdj;\n var hourAdj;\n\n if (use12Hours) {\n hourOptionsAdj = [12].concat(hourOptions.filter(function (h) {\n return h < 12 && h > 0;\n }));\n hourAdj = hour % 12 || 12;\n } else {\n hourOptionsAdj = hourOptions;\n hourAdj = hour;\n }\n\n return _react[\"default\"].createElement(_Select[\"default\"], {\n prefixCls: prefixCls,\n options: hourOptionsAdj.map(function (option) {\n return formatOption(option, disabledOptions);\n }),\n selectedIndex: hourOptionsAdj.indexOf(hourAdj),\n type: \"hour\",\n onSelect: this.onItemChange,\n onMouseEnter: function onMouseEnter() {\n return _this2.onEnterSelectPanel('hour');\n },\n onEsc: onEsc\n });\n }\n }, {\n key: \"getMinuteSelect\",\n value: function getMinuteSelect(minute) {\n var _this3 = this;\n\n var _this$props3 = this.props,\n prefixCls = _this$props3.prefixCls,\n minuteOptions = _this$props3.minuteOptions,\n disabledMinutes = _this$props3.disabledMinutes,\n defaultOpenValue = _this$props3.defaultOpenValue,\n showMinute = _this$props3.showMinute,\n propValue = _this$props3.value,\n onEsc = _this$props3.onEsc;\n\n if (!showMinute) {\n return null;\n }\n\n var value = propValue || defaultOpenValue;\n var disabledOptions = disabledMinutes(value.hour());\n return _react[\"default\"].createElement(_Select[\"default\"], {\n prefixCls: prefixCls,\n options: minuteOptions.map(function (option) {\n return formatOption(option, disabledOptions);\n }),\n selectedIndex: minuteOptions.indexOf(minute),\n type: \"minute\",\n onSelect: this.onItemChange,\n onMouseEnter: function onMouseEnter() {\n return _this3.onEnterSelectPanel('minute');\n },\n onEsc: onEsc\n });\n }\n }, {\n key: \"getSecondSelect\",\n value: function getSecondSelect(second) {\n var _this4 = this;\n\n var _this$props4 = this.props,\n prefixCls = _this$props4.prefixCls,\n secondOptions = _this$props4.secondOptions,\n disabledSeconds = _this$props4.disabledSeconds,\n showSecond = _this$props4.showSecond,\n defaultOpenValue = _this$props4.defaultOpenValue,\n propValue = _this$props4.value,\n onEsc = _this$props4.onEsc;\n\n if (!showSecond) {\n return null;\n }\n\n var value = propValue || defaultOpenValue;\n var disabledOptions = disabledSeconds(value.hour(), value.minute());\n return _react[\"default\"].createElement(_Select[\"default\"], {\n prefixCls: prefixCls,\n options: secondOptions.map(function (option) {\n return formatOption(option, disabledOptions);\n }),\n selectedIndex: secondOptions.indexOf(second),\n type: \"second\",\n onSelect: this.onItemChange,\n onMouseEnter: function onMouseEnter() {\n return _this4.onEnterSelectPanel('second');\n },\n onEsc: onEsc\n });\n }\n }, {\n key: \"getAMPMSelect\",\n value: function getAMPMSelect() {\n var _this5 = this;\n\n var _this$props5 = this.props,\n prefixCls = _this$props5.prefixCls,\n use12Hours = _this$props5.use12Hours,\n format = _this$props5.format,\n isAM = _this$props5.isAM,\n onEsc = _this$props5.onEsc;\n\n if (!use12Hours) {\n return null;\n }\n\n var AMPMOptions = ['am', 'pm'] // If format has A char, then we should uppercase AM/PM\n .map(function (c) {\n return format.match(/\\sA/) ? c.toUpperCase() : c;\n }).map(function (c) {\n return {\n value: c\n };\n });\n var selected = isAM ? 0 : 1;\n return _react[\"default\"].createElement(_Select[\"default\"], {\n prefixCls: prefixCls,\n options: AMPMOptions,\n selectedIndex: selected,\n type: \"ampm\",\n onSelect: this.onItemChange,\n onMouseEnter: function onMouseEnter() {\n return _this5.onEnterSelectPanel('ampm');\n },\n onEsc: onEsc\n });\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this$props6 = this.props,\n prefixCls = _this$props6.prefixCls,\n defaultOpenValue = _this$props6.defaultOpenValue,\n propValue = _this$props6.value;\n var value = propValue || defaultOpenValue;\n return _react[\"default\"].createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-combobox\")\n }, this.getHourSelect(value.hour()), this.getMinuteSelect(value.minute()), this.getSecondSelect(value.second()), this.getAMPMSelect(value.hour()));\n }\n }]);\n\n return Combobox;\n}(_react.Component);\n\n_defineProperty(Combobox, \"propTypes\", {\n format: _propTypes[\"default\"].string,\n defaultOpenValue: _propTypes[\"default\"].object,\n prefixCls: _propTypes[\"default\"].string,\n value: _propTypes[\"default\"].object,\n onChange: _propTypes[\"default\"].func,\n onAmPmChange: _propTypes[\"default\"].func,\n showHour: _propTypes[\"default\"].bool,\n showMinute: _propTypes[\"default\"].bool,\n showSecond: _propTypes[\"default\"].bool,\n hourOptions: _propTypes[\"default\"].array,\n minuteOptions: _propTypes[\"default\"].array,\n secondOptions: _propTypes[\"default\"].array,\n disabledHours: _propTypes[\"default\"].func,\n disabledMinutes: _propTypes[\"default\"].func,\n disabledSeconds: _propTypes[\"default\"].func,\n onCurrentSelectPanelChange: _propTypes[\"default\"].func,\n use12Hours: _propTypes[\"default\"].bool,\n onEsc: _propTypes[\"default\"].func,\n isAM: _propTypes[\"default\"].bool\n});\n\nvar _default = Combobox;\nexports[\"default\"] = _default;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rc-time-picker/lib/Combobox.js\n// module id = 560\n// module chunks = 0","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _reactDom = _interopRequireDefault(require(\"react-dom\"));\n\nvar _classnames = _interopRequireDefault(require(\"classnames\"));\n\nvar _raf = _interopRequireDefault(require(\"raf\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _getRequireWildcardCache() { if (typeof WeakMap !== \"function\") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj[\"default\"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (typeof call === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar scrollTo = function scrollTo(element, to, duration) {\n // jump to target if duration zero\n if (duration <= 0) {\n (0, _raf[\"default\"])(function () {\n element.scrollTop = to;\n });\n return;\n }\n\n var difference = to - element.scrollTop;\n var perTick = difference / duration * 10;\n (0, _raf[\"default\"])(function () {\n element.scrollTop += perTick;\n if (element.scrollTop === to) return;\n scrollTo(element, to, duration - 10);\n });\n};\n\nvar Select =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(Select, _Component);\n\n function Select() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Select);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Select)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_this), \"state\", {\n active: false\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onSelect\", function (value) {\n var _this$props = _this.props,\n onSelect = _this$props.onSelect,\n type = _this$props.type;\n onSelect(type, value);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleMouseEnter\", function (e) {\n var onMouseEnter = _this.props.onMouseEnter;\n\n _this.setState({\n active: true\n });\n\n onMouseEnter(e);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleMouseLeave\", function () {\n _this.setState({\n active: false\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"saveList\", function (node) {\n _this.list = node;\n });\n\n return _this;\n }\n\n _createClass(Select, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n // jump to selected option\n this.scrollToSelected(0);\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n var selectedIndex = this.props.selectedIndex; // smooth scroll to selected option\n\n if (prevProps.selectedIndex !== selectedIndex) {\n this.scrollToSelected(120);\n }\n }\n }, {\n key: \"getOptions\",\n value: function getOptions() {\n var _this2 = this;\n\n var _this$props2 = this.props,\n options = _this$props2.options,\n selectedIndex = _this$props2.selectedIndex,\n prefixCls = _this$props2.prefixCls,\n onEsc = _this$props2.onEsc;\n return options.map(function (item, index) {\n var _classNames;\n\n var cls = (0, _classnames[\"default\"])((_classNames = {}, _defineProperty(_classNames, \"\".concat(prefixCls, \"-select-option-selected\"), selectedIndex === index), _defineProperty(_classNames, \"\".concat(prefixCls, \"-select-option-disabled\"), item.disabled), _classNames));\n var onClick = item.disabled ? undefined : function () {\n _this2.onSelect(item.value);\n };\n\n var onKeyDown = function onKeyDown(e) {\n if (e.keyCode === 13) onClick();else if (e.keyCode === 27) onEsc();\n };\n\n return _react[\"default\"].createElement(\"li\", {\n role: \"button\",\n onClick: onClick,\n className: cls,\n key: index,\n disabled: item.disabled,\n tabIndex: \"0\",\n onKeyDown: onKeyDown\n }, item.value);\n });\n }\n }, {\n key: \"scrollToSelected\",\n value: function scrollToSelected(duration) {\n // move to selected item\n var selectedIndex = this.props.selectedIndex;\n\n var select = _reactDom[\"default\"].findDOMNode(this);\n\n var list = _reactDom[\"default\"].findDOMNode(this.list);\n\n if (!list) {\n return;\n }\n\n var index = selectedIndex;\n\n if (index < 0) {\n index = 0;\n }\n\n var topOption = list.children[index];\n var to = topOption.offsetTop;\n scrollTo(select, to, duration);\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this$props3 = this.props,\n prefixCls = _this$props3.prefixCls,\n options = _this$props3.options;\n var active = this.state.active;\n\n if (options.length === 0) {\n return null;\n }\n\n var cls = (0, _classnames[\"default\"])(\"\".concat(prefixCls, \"-select\"), _defineProperty({}, \"\".concat(prefixCls, \"-select-active\"), active));\n return _react[\"default\"].createElement(\"div\", {\n className: cls,\n onMouseEnter: this.handleMouseEnter,\n onMouseLeave: this.handleMouseLeave\n }, _react[\"default\"].createElement(\"ul\", {\n ref: this.saveList\n }, this.getOptions()));\n }\n }]);\n\n return Select;\n}(_react.Component);\n\n_defineProperty(Select, \"propTypes\", {\n prefixCls: _propTypes[\"default\"].string,\n options: _propTypes[\"default\"].array,\n selectedIndex: _propTypes[\"default\"].number,\n type: _propTypes[\"default\"].string,\n onSelect: _propTypes[\"default\"].func,\n onMouseEnter: _propTypes[\"default\"].func,\n onEsc: _propTypes[\"default\"].func\n});\n\nvar _default = Select;\nexports[\"default\"] = _default;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rc-time-picker/lib/Select.js\n// module id = 561\n// module chunks = 0","'use strict';\n\nmodule.exports = require('./InputGroup');\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-input-group/build/index.js\n// module id = 562\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _beeInputGroupAddon = require('bee-input-group-addon');\n\nvar _beeInputGroupAddon2 = _interopRequireDefault(_beeInputGroupAddon);\n\nvar _InputGroupButton = require('./InputGroupButton');\n\nvar _InputGroupButton2 = _interopRequireDefault(_InputGroupButton);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar defaultProps = {\n clsPrefix: 'u-input-group',\n simple: false\n};\n\nvar InputGroup = function (_React$Component) {\n _inherits(InputGroup, _React$Component);\n\n function InputGroup() {\n _classCallCheck(this, InputGroup);\n\n return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n InputGroup.prototype.render = function render() {\n var _props = this.props,\n className = _props.className,\n clsPrefix = _props.clsPrefix,\n simple = _props.simple,\n others = _objectWithoutProperties(_props, ['className', 'clsPrefix', 'simple']);\n\n return _react2[\"default\"].createElement('span', _extends({}, others, {\n className: (0, _classnames2[\"default\"])(className, clsPrefix, simple && 'simple')\n }));\n };\n\n return InputGroup;\n}(_react2[\"default\"].Component);\n\n/**\r\n * 将InputGroupAddon与InputGroupButton组件作为InputGroup的附属组件\r\n */\n\n\nInputGroup.Addon = _beeInputGroupAddon2[\"default\"];\nInputGroup.Button = _InputGroupButton2[\"default\"];\nInputGroup.defaultProps = defaultProps;\nexports[\"default\"] = InputGroup;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-input-group/build/InputGroup.js\n// module id = 563\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _InputGroupAddon = require('./InputGroupAddon');\n\nvar _InputGroupAddon2 = _interopRequireDefault(_InputGroupAddon);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nexports[\"default\"] = _InputGroupAddon2[\"default\"];\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-input-group-addon/build/index.js\n// module id = 564\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar defaultProps = {\n clsPrefix: 'u-input-group-addon'\n};\n\nvar InputGroupAddon = function (_React$Component) {\n _inherits(InputGroupAddon, _React$Component);\n\n function InputGroupAddon() {\n _classCallCheck(this, InputGroupAddon);\n\n return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n InputGroupAddon.prototype.render = function render() {\n var _props = this.props,\n className = _props.className,\n clsPrefix = _props.clsPrefix,\n others = _objectWithoutProperties(_props, ['className', 'clsPrefix']);\n\n return _react2[\"default\"].createElement('span', _extends({}, others, {\n className: (0, _classnames2[\"default\"])(className, clsPrefix)\n }));\n };\n\n return InputGroupAddon;\n}(_react2[\"default\"].Component);\n\nInputGroupAddon.defaultProps = defaultProps;\nexports[\"default\"] = InputGroupAddon;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-input-group-addon/build/InputGroupAddon.js\n// module id = 565\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar defaultProps = {\n clsPrefix: 'u-input-group-btn'\n};\n\nvar InputGroupButton = function (_React$Component) {\n _inherits(InputGroupButton, _React$Component);\n\n function InputGroupButton() {\n _classCallCheck(this, InputGroupButton);\n\n return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n InputGroupButton.prototype.render = function render() {\n var _props = this.props,\n className = _props.className,\n clsPrefix = _props.clsPrefix,\n others = _objectWithoutProperties(_props, ['className', 'clsPrefix']);\n\n return _react2[\"default\"].createElement('span', _extends({}, others, {\n className: (0, _classnames2[\"default\"])(className, clsPrefix)\n }));\n };\n\n return InputGroupButton;\n}(_react2[\"default\"].Component);\n\nInputGroupButton.defaultProps = defaultProps;\nexports[\"default\"] = InputGroupButton;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-input-group/build/InputGroupButton.js\n// module id = 566\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\nexports['default'] = {\n today: '今天',\n now: '此刻',\n backToToday: '返回今天',\n ok: '确定',\n timeSelect: '选择时间',\n dateSelect: '选择日期',\n weekSelect: '选择周',\n clear: '清除',\n month: '月',\n year: '年',\n previousMonth: '上个月 (翻页上键)',\n nextMonth: '下个月 (翻页下键)',\n monthSelect: '选择月份',\n yearSelect: '选择年份',\n decadeSelect: '选择年代',\n yearFormat: 'YYYY年',\n dayFormat: 'D日',\n dateFormat: 'YYYY年M月D日',\n dateTimeFormat: 'YYYY年M月D日 HH时mm分ss秒',\n previousYear: '上一年 (Control键加左方向键)',\n nextYear: '下一年 (Control键加右方向键)',\n previousDecade: '上一年代',\n nextDecade: '下一年代',\n previousCentury: '上一世纪',\n nextCentury: '下一世纪'\n};\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-datepicker/build/locale/zh_CN.js\n// module id = 567\n// module chunks = 0","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require(\"babel-runtime/helpers/extends\");\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction omit(obj, fields) {\n var shallowCopy = (0, _extends3[\"default\"])({}, obj);\n for (var i = 0; i < fields.length; i++) {\n var key = fields[i];\n delete shallowCopy[key];\n }\n return shallowCopy;\n}\n\nexports[\"default\"] = omit;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/omit.js/lib/index.js\n// module id = 568\n// module chunks = 0","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _MonthCalendar = require(\"./rc-calendar/MonthCalendar\");\n\nvar _MonthCalendar2 = _interopRequireDefault(_MonthCalendar);\n\nvar _tinperBeeCore = require(\"tinper-bee-core\");\n\nvar _react = require(\"react\");\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = require(\"react-dom\");\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _Picker = require(\"./rc-calendar/Picker\");\n\nvar _Picker2 = _interopRequireDefault(_Picker);\n\nvar _beeFormControl = require(\"bee-form-control\");\n\nvar _beeFormControl2 = _interopRequireDefault(_beeFormControl);\n\nvar _beeIcon = require(\"bee-icon\");\n\nvar _beeIcon2 = _interopRequireDefault(_beeIcon);\n\nvar _beeInputGroup = require(\"bee-input-group\");\n\nvar _beeInputGroup2 = _interopRequireDefault(_beeInputGroup);\n\nvar _classnames = require(\"classnames\");\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _zh_CN = require(\"./locale/zh_CN\");\n\nvar _zh_CN2 = _interopRequireDefault(_zh_CN);\n\nvar _omit = require(\"omit.js\");\n\nvar _omit2 = _interopRequireDefault(_omit);\n\nvar _moment = require(\"moment\");\n\nvar _moment2 = _interopRequireDefault(_moment);\n\nvar _util = require(\"./rc-calendar/util\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**\n * Created by chief on 17/4/6.\n */\n\nvar MonthPicker = function (_Component) {\n _inherits(MonthPicker, _Component);\n\n function MonthPicker(props, context) {\n _classCallCheck(this, MonthPicker);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));\n\n _initialiseProps.call(_this);\n\n _this.state = {\n type: \"month\",\n value: props.value || props.defaultValue,\n open: false,\n showClose: false\n };\n return _this;\n }\n\n MonthPicker.prototype.componentDidMount = function componentDidMount() {\n var value = this.props.value || this.props.defaultValue;\n if (value) {\n if (typeof value == 'string') {\n if ((0, _moment2[\"default\"])(value).isValid()) {\n value = (0, _moment2[\"default\"])(value);\n } else {\n console.error('value is not in the correct format');\n value = '';\n }\n } else if (value.format && value.isValid()) {\n value = value;\n } else {\n console.error('value is not in the correct format');\n value = '';\n }\n }\n this.setState({\n value: value\n });\n };\n\n MonthPicker.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n if ('value' in nextProps) {\n var value = nextProps.value;\n if (value) {\n if (value.format && value.isValid()) {} else {\n value = (0, _moment2[\"default\"])(value);\n }\n } else {\n value = '';\n }\n this.setState({\n value: value\n });\n }\n };\n //阻止组件内部事件冒泡到组件外部容器\n\n\n MonthPicker.prototype.render = function render() {\n var _this2 = this;\n\n var state = this.state;\n var props = this.props;\n\n var showClose = props.showClose,\n value = props.value,\n others = _objectWithoutProperties(props, [\"showClose\", \"value\"]);\n\n var monthCalendar = _react2[\"default\"].createElement(_MonthCalendar2[\"default\"], _extends({}, props, {\n value: state.value,\n onChange: this.handleCalendarChange\n }));\n var classes = (0, _classnames2[\"default\"])(props.className, \"datepicker-container\");\n return _react2[\"default\"].createElement(\n \"div\",\n _extends({ className: classes, onClick: this.stopPropagation, onMouseOver: this.stopPropagation\n }, (0, _omit2[\"default\"])(others, ['closeIcon', 'renderIcon', 'format', 'showDateInput', 'showMonthInput', 'locale', 'placeholder', 'onClear', 'renderFooter', 'renderError', 'disabledDate', 'disabledTime'])),\n _react2[\"default\"].createElement(\n _Picker2[\"default\"],\n _extends({}, props, {\n onOpenChange: this.onOpenChange,\n animation: 'animation' in props ? props.animation : \"slide-up\",\n calendar: monthCalendar,\n open: this.state.open,\n value: state.value,\n onChange: this.onChange,\n dropdownClassName: props.dropdownClassName,\n selectedValue: state.value,\n renderError: props.renderError\n }),\n function (_ref) {\n var value = _ref.value;\n\n if (value && value.format) value = (0, _util.formatDate)(value, props.format);\n return _react2[\"default\"].createElement(\n _beeInputGroup2[\"default\"],\n { simple: true, className: \"datepicker-input-group\",\n onMouseEnter: _this2.onMouseEnter,\n onMouseLeave: _this2.onMouseLeave\n },\n _react2[\"default\"].createElement(_beeFormControl2[\"default\"], {\n ref: function ref(_ref2) {\n return _this2.outInput = _ref2;\n },\n placeholder: _this2.props.placeholder,\n className: _this2.props.className,\n value: value,\n disabled: props.disabled\n }),\n showClose && _this2.state.value && _this2.state.showClose && !props.disabled ? _react2[\"default\"].createElement(\n _beeInputGroup2[\"default\"].Button,\n { shape: \"border\",\n onClick: _this2.clear },\n props.closeIcon()\n ) : _react2[\"default\"].createElement(\n _beeInputGroup2[\"default\"].Button,\n { shape: \"border\" },\n props.renderIcon()\n )\n );\n }\n )\n );\n };\n\n return MonthPicker;\n}(_react.Component);\n\nvar _initialiseProps = function _initialiseProps() {\n var _this3 = this;\n\n this.handleCalendarChange = function (value) {\n _this3.setState({\n value: value && _extends(value, { _type: 'month' }) || value\n });\n };\n\n this.onChange = function (value) {\n var _props = _this3.props,\n onChange = _props.onChange,\n onClear = _props.onClear,\n onSelect = _props.onSelect,\n format = _props.format;\n\n\n _this3.setState({\n value: value && _extends(value, { _type: 'month' }) || value\n });\n onChange && onChange(value, value ? (0, _util.formatDate)(value, format) : '');\n };\n\n this.inputFocus = function () {\n var self = _this3;\n var format = self.props.format;\n\n var input = document.querySelector('.rc-calendar-input');\n if (input) {\n if (input.value) {\n input.select();\n } else {\n input.focus();\n }\n input.onkeydown = function (e) {\n if (e.keyCode == _tinperBeeCore.KeyCode.DELETE) {\n input.value = '';\n self.props.onChange && self.props.onChange('', '');\n } else if (e.keyCode == _tinperBeeCore.KeyCode.ESC) {\n self.setState({\n open: false\n });\n var v = self.state.value;\n self.props.onOpenChange && self.props.onOpenChange(false, v, v && (0, _util.formatDate)(v, self.props.format) || '');\n _reactDom2[\"default\"].findDOMNode(self.outInput).focus(); // 按esc时候焦点回到input输入框\n } else if (e.keyCode == _tinperBeeCore.KeyCode.ENTER) {\n var parsed = (0, _moment2[\"default\"])(input.value, format, true);\n if (parsed.isValid()) {\n self.setState({\n open: false\n });\n var _v = self.state.value;\n self.props.onOpenChange && self.props.onOpenChange(false, _v, _v && (0, _util.formatDate)(_v, format) || '');\n _reactDom2[\"default\"].findDOMNode(self.outInput).focus();\n }\n }\n };\n }\n };\n\n this.onOpenChange = function (open) {\n var props = _this3.props;\n var self = _this3;\n _this3.setState({\n open: open\n }, function () {\n if (open) {\n setTimeout(function () {\n self.inputFocus();\n }, 0);\n }\n });\n var value = self.state.value;\n props.onOpenChange && props.onOpenChange(open, value, value && (0, _util.formatDate)(value, self.props.format) || '');\n if (open) {\n setTimeout(function () {\n self.inputFocus();\n }, 200);\n }\n };\n\n this.onTypeChange = function (type) {\n _this3.setState({\n type: type\n });\n };\n\n this.onMouseLeave = function (e) {\n _this3.setState({\n showClose: false\n });\n };\n\n this.onMouseEnter = function (e) {\n _this3.setState({\n showClose: true\n });\n };\n\n this.clear = function (e) {\n e.stopPropagation();\n _this3.setState({\n value: ''\n });\n _this3.props.onChange && _this3.props.onChange('', '');\n };\n\n this.stopPropagation = function (e) {\n e.stopPropagation();\n };\n};\n\nMonthPicker.defaultProps = {\n closeIcon: function closeIcon() {\n return _react2[\"default\"].createElement(_beeIcon2[\"default\"], { type: \"uf-close-c\" });\n },\n renderIcon: function renderIcon() {\n return _react2[\"default\"].createElement(_beeIcon2[\"default\"], { type: \"uf-calendar\" });\n },\n format: 'YYYY-MM',\n renderError: function renderError() {},\n showDateInput: true,\n showMonthInput: true,\n locale: _zh_CN2[\"default\"],\n showClose: true,\n validatorFunc: function validatorFunc() {\n return true;\n }\n};\n\nexports[\"default\"] = MonthPicker;\nmodule.exports = exports[\"default\"];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-datepicker/build/MonthPicker.js\n// module id = 569\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _KeyCode = require('rc-util/lib/KeyCode');\n\nvar _KeyCode2 = _interopRequireDefault(_KeyCode);\n\nvar _CalendarHeader = require('./calendar/CalendarHeader');\n\nvar _CalendarHeader2 = _interopRequireDefault(_CalendarHeader);\n\nvar _CalendarFooter = require('./calendar/CalendarFooter');\n\nvar _CalendarFooter2 = _interopRequireDefault(_CalendarFooter);\n\nvar _CalendarMixin = require('./mixin/CalendarMixin');\n\nvar _CommonMixin = require('./mixin/CommonMixin');\n\nvar _DateInput = require('./date/DateInput');\n\nvar _DateInput2 = _interopRequireDefault(_DateInput);\n\nvar _moment = require('moment');\n\nvar _moment2 = _interopRequireDefault(_moment);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar MonthCalendar = function (_React$Component) {\n _inherits(MonthCalendar, _React$Component);\n\n function MonthCalendar(props) {\n _classCallCheck(this, MonthCalendar);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));\n\n _this.onKeyDown = function (event) {\n if (event.target.nodeName.toLowerCase() === 'input') {\n return undefined;\n } else {\n _this.props.onKeyDown && _this.props.onKeyDown(event);\n }\n var keyCode = event.keyCode;\n var ctrlKey = event.ctrlKey || event.metaKey;\n var stateValue = _this.state.value;\n var disabledDate = _this.props.disabledDate;\n\n var value = stateValue;\n switch (keyCode) {\n case _KeyCode2[\"default\"].DOWN:\n value = stateValue.clone();\n value.add(3, 'months');\n break;\n case _KeyCode2[\"default\"].UP:\n value = stateValue.clone();\n value.add(-3, 'months');\n break;\n case _KeyCode2[\"default\"].LEFT:\n value = stateValue.clone();\n if (ctrlKey) {\n value.add(-1, 'years');\n } else {\n value.add(-1, 'months');\n }\n break;\n case _KeyCode2[\"default\"].RIGHT:\n value = stateValue.clone();\n if (ctrlKey) {\n value.add(1, 'years');\n } else {\n value.add(1, 'months');\n }\n break;\n case _KeyCode2[\"default\"].ENTER:\n if (!disabledDate || !disabledDate(stateValue)) {\n _this.onSelect(stateValue);\n }\n event.preventDefault();\n return 1;\n default:\n return undefined;\n }\n if (value !== stateValue) {\n _this.setValue(value);\n event.preventDefault();\n return 1;\n }\n };\n\n _this.handlePanelChange = function (_, mode) {\n if (mode !== 'date') {\n _this.setState({ mode: mode });\n }\n };\n\n _this.onInputChange = function (value) {\n var _this$props = _this.props,\n onChange = _this$props.onChange,\n format = _this$props.format;\n\n _this.setState({\n value: value ? value : (0, _moment2[\"default\"])()\n });\n _this.setValue(value);\n onChange && onChange(value);\n };\n\n _this.onClear = function () {\n var _this$props2 = _this.props,\n onChange = _this$props2.onChange,\n format = _this$props2.format,\n onClear = _this$props2.onClear;\n\n _this.setState({\n value: (0, _moment2[\"default\"])()\n });\n _this.setValue((0, _moment2[\"default\"])());\n onChange && onChange('', '');\n onClear && onClear('', '');\n };\n\n _this.state = {\n mode: 'month',\n value: props.value || props.defaultValue || (0, _moment2[\"default\"])(),\n selectedValue: props.selectedValue || props.defaultSelectedValue\n };\n return _this;\n }\n\n MonthCalendar.prototype.render = function render() {\n var props = this.props,\n state = this.state;\n var mode = state.mode,\n value = state.value;\n\n value = value ? value : (0, _moment2[\"default\"])();\n var prefixCls = props.prefixCls,\n locale = props.locale,\n format = props.format,\n showDateInput = props.showDateInput,\n onChange = props.onChange,\n onSelect = props.onSelect,\n onClear = props.onClear,\n showMonthInput = props.showMonthInput,\n renderError = props.renderError,\n validatorFunc = props.validatorFunc;\n\n var children = _react2[\"default\"].createElement(\n 'div',\n { className: props.prefixCls + '-month-calendar-content' },\n _react2[\"default\"].createElement(\n 'div',\n { className: props.prefixCls + '-month-header-wrap' },\n showDateInput && showMonthInput ? _react2[\"default\"].createElement(_DateInput2[\"default\"], {\n value: value,\n prefixCls: prefixCls,\n showClear: true,\n locale: locale,\n format: format,\n onChange: this.onInputChange,\n selectedValue: value,\n onClear: this.onClear,\n renderError: renderError,\n validatorFunc: validatorFunc\n }) : '',\n _react2[\"default\"].createElement(_CalendarHeader2[\"default\"], {\n prefixCls: props.prefixCls,\n mode: mode,\n value: value,\n locale: props.locale,\n disabledMonth: props.disabledDate,\n monthCellRender: props.monthCellRender,\n monthCellContentRender: props.monthCellContentRender,\n onMonthSelect: this.onSelect,\n onValueChange: this.setValue,\n onPanelChange: this.handlePanelChange,\n onChange: onChange,\n onClear: onClear\n })\n ),\n _react2[\"default\"].createElement(_CalendarFooter2[\"default\"], {\n prefixCls: props.prefixCls,\n renderFooter: props.renderFooter\n })\n );\n return this.renderRoot({\n className: props.prefixCls + '-month-calendar',\n children: children\n });\n };\n\n return MonthCalendar;\n}(_react2[\"default\"].Component);\n\nMonthCalendar.propTypes = _extends({}, _CalendarMixin.calendarMixinPropTypes, _CommonMixin.propType, {\n monthCellRender: _propTypes2[\"default\"].func,\n dateCellRender: _propTypes2[\"default\"].func,\n value: _propTypes2[\"default\"].object,\n defaultValue: _propTypes2[\"default\"].object,\n selectedValue: _propTypes2[\"default\"].object,\n defaultSelectedValue: _propTypes2[\"default\"].object,\n disabledDate: _propTypes2[\"default\"].func\n});\nMonthCalendar.defaultProps = _extends({\n showDateInput: false\n}, _CommonMixin.defaultProp, _CalendarMixin.calendarMixinDefaultProps);\nexports[\"default\"] = (0, _CalendarMixin.calendarMixinWrapper)((0, _CommonMixin.commonMixinWrapper)(MonthCalendar));\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-datepicker/build/rc-calendar/MonthCalendar.js\n// module id = 570\n// module chunks = 0","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = require(\"react\");\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _RangeCalendar = require(\"./rc-calendar/RangeCalendar\");\n\nvar _RangeCalendar2 = _interopRequireDefault(_RangeCalendar);\n\nvar _Panel = require(\"rc-time-picker/lib/Panel\");\n\nvar _Panel2 = _interopRequireDefault(_Panel);\n\nvar _beeFormControl = require(\"bee-form-control\");\n\nvar _beeFormControl2 = _interopRequireDefault(_beeFormControl);\n\nvar _Picker = require(\"./rc-calendar/Picker\");\n\nvar _Picker2 = _interopRequireDefault(_Picker);\n\nvar _beeInputGroup = require(\"bee-input-group\");\n\nvar _beeInputGroup2 = _interopRequireDefault(_beeInputGroup);\n\nvar _beeIcon = require(\"bee-icon\");\n\nvar _beeIcon2 = _interopRequireDefault(_beeIcon);\n\nvar _classnames = require(\"classnames\");\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _tinperBeeCore = require(\"tinper-bee-core\");\n\nvar _util = require(\"./rc-calendar/util\");\n\nvar _zh_CN = require(\"./locale/zh_CN\");\n\nvar _zh_CN2 = _interopRequireDefault(_zh_CN);\n\nvar _omit = require(\"omit.js\");\n\nvar _omit2 = _interopRequireDefault(_omit);\n\nvar _moment = require(\"moment\");\n\nvar _moment2 = _interopRequireDefault(_moment);\n\nrequire(\"moment/locale/zh-cn\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError(\"Cannot destructure undefined\"); }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**\n * Created by chief on 17/4/6.\n */\n\n\n// function formatDate(value,format) {\n// if (!value) {\n// return '';\n// }\n\n// if (Array.isArray(format)) {\n// format = format[0];\n// }\n\n// return value.formatDate(format);\n// }\n\nvar fullFormat = \"YYYY-MM-DD\";\n\nvar cn = typeof window !== 'undefined' ? location.search.indexOf(\"cn\") !== -1 : true;\n\nvar now = (0, _moment2[\"default\"])();\n\nfunction isValidRange(v) {\n return v && v[0] && v[1];\n}\n\nif (cn) {\n now.locale(\"zh-cn\").utcOffset(8);\n} else {\n now.locale(\"en-gb\").utcOffset(0);\n}\n\nvar RangePicker = function (_Component) {\n _inherits(RangePicker, _Component);\n\n function RangePicker(props, context) {\n _classCallCheck(this, RangePicker);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));\n\n _initialiseProps.call(_this);\n\n _this.state = {\n hoverValue: [],\n value: _this.initValue(props),\n open: props.open || false\n };\n return _this;\n }\n\n RangePicker.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n if (\"value\" in nextProps) {\n this.setState({\n value: this.initValue(nextProps)\n });\n }\n if (\"open\" in nextProps) {\n this.setState({\n open: nextProps.open\n });\n }\n this.setState({\n renderIcon: nextProps.renderIcon\n });\n };\n //判断value是否为空\n\n //日期面板中输入框的失焦事件\n\n //阻止组件内部事件冒泡到组件外部容器\n\n\n RangePicker.prototype.render = function render() {\n var _this2 = this;\n\n var props = this.props;\n\n var showClose = props.showClose,\n onChange = props.onChange,\n showHour = props.showHour,\n showMinute = props.showMinute,\n showSecond = props.showSecond,\n others = _objectWithoutProperties(props, [\"showClose\", \"onChange\", \"showHour\", \"showMinute\", \"showSecond\"]);\n\n var _state = this.state,\n value = _state.value,\n open = _state.open;\n\n var formatStr = props.format || 'YYYY-MM-DD';\n var timePickerElement = _react2[\"default\"].createElement(_Panel2[\"default\"], {\n showHour: showHour, showMinute: showMinute, showSecond: showSecond,\n defaultValue: (0, _moment2[\"default\"])((0, _moment2[\"default\"])().format(\"HH:mm:ss\"), \"HH:mm:ss\") });\n var calendar = _react2[\"default\"].createElement(_RangeCalendar2[\"default\"], {\n hoverValue: this.state.hoverValue,\n onHoverChange: this.onHoverChange,\n showWeekNumber: false,\n format: formatStr,\n dateInputPlaceholder: props.dateInputPlaceholder || ['start', 'end'],\n locale: props.locale || _zh_CN2[\"default\"],\n onChange: this.handleCalendarChange,\n disabledDate: props.disabledDate,\n showClear: props.showClear,\n showOk: props.showOk,\n showToday: props.showToday,\n renderFooter: props.renderFooter,\n timePicker: props.showTime ? timePickerElement : null,\n renderError: props.renderError,\n onStartInputBlur: this.onStartInputBlur,\n onEndInputBlur: this.onEndInputBlur,\n onClear: this.clear,\n onOk: this.onOk,\n validatorFunc: props.validatorFunc\n });\n return _react2[\"default\"].createElement(\n \"div\",\n _extends({ onClick: this.stopPropagation, onMouseOver: this.stopPropagation\n }, (0, _omit2[\"default\"])(others, ['closeIcon', 'renderIcon', 'showClear', 'showToday', 'locale', 'placeholder', 'showOk', 'dateInputPlaceholder', 'onPanelChange', 'onStartInputBlur', 'onEndInputBlur', 'renderFooter', 'showTime', 'disabledDate', 'disabledTime'])),\n _react2[\"default\"].createElement(\n _Picker2[\"default\"],\n _extends({}, props, {\n value: value,\n animation: 'animation' in props ? props.animation : \"slide-up\",\n calendar: calendar,\n disabled: props.disabled,\n dropdownClassName: props.dropdownClassName,\n onOpenChange: this.onOpenChange,\n open: open,\n onChange: this.onChange\n }),\n function (_ref) {\n _objectDestructuringEmpty(_ref);\n\n return _react2[\"default\"].createElement(\n \"div\",\n { className: (0, _classnames2[\"default\"])('calendar-picker', 'u-input-group', 'simple', props.className),\n onMouseEnter: _this2.onMouseEnter,\n onMouseLeave: _this2.onMouseLeave\n },\n _react2[\"default\"].createElement(_beeFormControl2[\"default\"], {\n placeholder: _this2.props.placeholder ? _this2.props.placeholder : 'start ~ end',\n value: isValidRange(value) && (0, _util.formatDate)(value[0], formatStr) + \" ~ \" + (0, _util.formatDate)(value[1], formatStr) || '',\n disabled: props.disabled,\n onFocus: function onFocus(v, e) {\n _this2.outInputFocus(e);\n }\n }),\n showClose && !_this2.valueIsEmpty(value) && _this2.state.showClose && !props.disabled ? _react2[\"default\"].createElement(\n _beeInputGroup2[\"default\"].Button,\n { shape: \"border\",\n onClick: _this2.clear },\n props.closeIcon()\n ) : _react2[\"default\"].createElement(\n _beeInputGroup2[\"default\"].Button,\n { shape: \"border\" },\n props.renderIcon()\n )\n );\n }\n )\n );\n };\n\n return RangePicker;\n}(_react.Component);\n\nvar _initialiseProps = function _initialiseProps() {\n var _this3 = this;\n\n this.initValue = function (props) {\n var valueProp = props.value || props.defaultValue || [];\n var values = [];\n for (var i = 0; i < 2; i++) {\n var value = valueProp[i] || '';\n if (value) {\n if (typeof value == 'string') {\n if ((0, _moment2[\"default\"])(value).isValid()) {\n values.push((0, _moment2[\"default\"])(value));\n } else {\n console.error('value is not in the correct format');\n values.push('');\n }\n } else if (value.format && value.isValid()) {\n values.push(value);\n } else {\n console.error('value is not in the correct format');\n values = [];\n }\n } else {\n values.push('');\n }\n }\n return values;\n };\n\n this.clearHoverValue = function () {\n return _this3.setState({ hoverValue: [] });\n };\n\n this.onChange = function (value) {\n var props = _this3.props;\n var formatStr = props.format || 'YYYY-MM-DD';\n if (value.length < 2) {\n return;\n }\n _this3.setState({\n value: value\n });\n\n //传入value和dateString\n if (props.onChange && isValidRange(value) || value.length == 0) {\n if (value.length > 0) {\n props.onChange(value, \"[\\\"\" + (0, _util.formatDate)(value[0], formatStr) + \"\\\" , \\\"\" + (0, _util.formatDate)(value[1], formatStr) + \"\\\"]\", [\"\" + (0, _util.formatDate)(value[0], formatStr), \"\" + (0, _util.formatDate)(value[1], formatStr)]);\n } else {\n props.onChange(null);\n }\n } else {\n props.onPanelChange && props.onPanelChange(value);\n }\n };\n\n this.onHoverChange = function (hoverValue) {\n _this3.setState({ hoverValue: hoverValue });\n _this3.props.onHoverChange && _this3.props.onHoverChange(hoverValue);\n };\n\n this.remove = function (e) {\n _this3.setState({ value: '' });\n };\n\n this.handleCalendarChange = function (value) {};\n\n this.onMouseLeave = function (e) {\n _this3.setState({\n showClose: false\n });\n };\n\n this.onMouseEnter = function (e) {\n if (!_this3.valueIsEmpty(_this3.state.value)) {\n _this3.setState({\n showClose: true\n });\n }\n };\n\n this.valueIsEmpty = function (value) {\n if (value) {\n if (value.length == 0) {\n return true;\n } else {\n //value.length>0\n var flag = true;\n if (value[0] || value[1]) flag = false;\n return flag;\n }\n } else {\n return true;\n }\n };\n\n this.clear = function (e) {\n e && e.stopPropagation && e.stopPropagation();\n _this3.setState({\n value: []\n });\n _this3.props.onChange && _this3.props.onChange([], []);\n _this3.props.onFormControlClear && _this3.props.onFormControlClear();\n };\n\n this.onOpenChange = function (open) {\n var props = _this3.props;\n var self = _this3;\n // let {value} = this.state;\n // if(!isValidRange(value)){\n // debugger\n // }\n if (open === false) {\n _this3.clearHoverValue();\n }\n\n _this3.setState({\n open: open\n }, function () {\n if (open) {\n setTimeout(function () {\n self.inputFocus();\n }, 0);\n }\n });\n props.onOpenChange && props.onOpenChange(open);\n if (open) {\n setTimeout(function () {\n self.inputFocus();\n }, 200);\n }\n };\n\n this.outInputFocus = function (e) {\n if (_this3.props.hasOwnProperty('open')) e.stopPropagation();\n _this3.props.outInputFocus && _this3.props.outInputFocus(e);\n };\n\n this.inputFocus = function () {\n var inputs = document.querySelectorAll('.rc-calendar-input');\n if (!inputs) {\n return;\n }\n if (inputs[0].value) {\n inputs[0].select();\n } else {\n inputs[0].focus();\n }\n inputs[0].onkeydown = _this3.keydownLeft;\n inputs[1].onkeydown = _this3.keydownRight;\n };\n\n this.keydownLeft = function (e) {\n var inputs = document.querySelectorAll('.rc-calendar-input');\n if (e.keyCode == _tinperBeeCore.KeyCode.ESC) {\n _this3.setState({\n open: false\n });\n _this3.props.onOpenChange(false, v, v && _this3.getValue(v) || '');\n }\n if (e.keyCode == _tinperBeeCore.KeyCode.RIGHT || e.keyCode == _tinperBeeCore.KeyCode.LEFT) {\n inputs[1].focus();\n }\n };\n\n this.keydownRight = function (e) {\n var inputs = document.querySelectorAll('.rc-calendar-input');\n if (e.keyCode == _tinperBeeCore.KeyCode.ESC) {\n _this3.setState({\n open: false\n });\n _this3.props.onOpenChange(false, v, v && _this3.getValue(v) || '');\n }\n if (e.keyCode == _tinperBeeCore.KeyCode.LEFT || e.keyCode == _tinperBeeCore.KeyCode.RIGHT) {\n inputs[0].focus();\n }\n };\n\n this.onStartInputBlur = function (e) {\n var inputs = document.querySelectorAll('.rc-calendar-input');\n var startValue = void 0,\n endValue = void 0;\n if (inputs) {\n startValue = inputs[0].value ? inputs[0].value : '';\n endValue = inputs[1].value ? inputs[1].value : '';\n }\n _this3.props.onStartInputBlur && _this3.props.onStartInputBlur(e, startValue, \"[\\\"\" + startValue + \"\\\" , \\\"\" + endValue + \"\\\"]\");\n };\n\n this.onEndInputBlur = function (e) {\n var inputs = document.querySelectorAll('.rc-calendar-input');\n var startValue = void 0,\n endValue = void 0;\n if (inputs) {\n startValue = inputs[0].value ? inputs[0].value : '';\n endValue = inputs[1].value ? inputs[1].value : '';\n }\n _this3.props.onEndInputBlur && _this3.props.onEndInputBlur(e, endValue, \"[\\\"\" + startValue + \"\\\" , \\\"\" + endValue + \"\\\"]\");\n };\n\n this.stopPropagation = function (e) {\n e.stopPropagation();\n };\n\n this.onOk = function (value) {\n _this3.props.onOk && _this3.props.onOk(value);\n };\n};\n\nRangePicker.defaultProps = {\n closeIcon: function closeIcon() {\n return _react2[\"default\"].createElement(_beeIcon2[\"default\"], { type: \"uf-close-c\" });\n },\n renderIcon: function renderIcon() {\n return _react2[\"default\"].createElement(_beeIcon2[\"default\"], { type: \"uf-calendar\" });\n },\n locale: _zh_CN2[\"default\"],\n showClear: true,\n showToday: true,\n showOk: true,\n showClose: true,\n showSecond: true,\n showHour: true,\n showMinute: true,\n validatorFunc: function validatorFunc() {\n return true;\n }\n};\n\nexports[\"default\"] = RangePicker;\nmodule.exports = exports[\"default\"];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-datepicker/build/RangePicker.js\n// module id = 571\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _moment = require('moment');\n\nvar _moment2 = _interopRequireDefault(_moment);\n\nvar _classnames2 = require('classnames');\n\nvar _classnames3 = _interopRequireDefault(_classnames2);\n\nvar _reactLifecyclesCompat = require('react-lifecycles-compat');\n\nvar _KeyCode = require('rc-util/lib/KeyCode');\n\nvar _KeyCode2 = _interopRequireDefault(_KeyCode);\n\nvar _CalendarPart = require('./range-calendar/CalendarPart');\n\nvar _CalendarPart2 = _interopRequireDefault(_CalendarPart);\n\nvar _TodayButton = require('./calendar/TodayButton');\n\nvar _TodayButton2 = _interopRequireDefault(_TodayButton);\n\nvar _OkButton = require('./calendar/OkButton');\n\nvar _OkButton2 = _interopRequireDefault(_OkButton);\n\nvar _TimePickerButton = require('./calendar/TimePickerButton');\n\nvar _TimePickerButton2 = _interopRequireDefault(_TimePickerButton);\n\nvar _CommonMixin = require('./mixin/CommonMixin');\n\nvar _util = require('./util');\n\nvar _toTime = require('./util/toTime');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nfunction noop() {}\n\nfunction isEmptyArray(arr) {\n return Array.isArray(arr) && (arr.length === 0 || arr.every(function (i) {\n return !i;\n }));\n}\n\nfunction isArraysEqual(a, b) {\n if (a === b) return true;\n if (a === null || typeof a === 'undefined' || b === null || typeof b === 'undefined') {\n return false;\n }\n if (a.length !== b.length) return false;\n\n for (var i = 0; i < a.length; ++i) {\n if (a[i] !== b[i]) return false;\n }\n return true;\n}\n\nfunction getValueFromSelectedValue(selectedValue) {\n var _selectedValue = _slicedToArray(selectedValue, 2),\n start = _selectedValue[0],\n end = _selectedValue[1];\n\n var newEnd = end && end.isSame(start, 'month') ? end.clone().add(1, 'month') : end;\n return [start, newEnd];\n}\n\nfunction normalizeAnchor(props, init) {\n var selectedValue = props.selectedValue || init && props.defaultSelectedValue;\n var value = props.value || init && props.defaultValue;\n var normalizedValue = value ? getValueFromSelectedValue(value) : getValueFromSelectedValue(selectedValue);\n return !isEmptyArray(normalizedValue) ? normalizedValue : init && [(0, _moment2[\"default\"])(), (0, _moment2[\"default\"])().add(1, 'months')];\n}\n\nfunction generateOptions(length, extraOptionGen) {\n var arr = extraOptionGen ? extraOptionGen().concat() : [];\n for (var value = 0; value < length; value++) {\n if (arr.indexOf(value) === -1) {\n arr.push(value);\n }\n }\n return arr;\n}\n\nfunction onInputSelect(direction, value, cause) {\n if (!value) {\n return;\n }\n var originalValue = this.state.selectedValue;\n var selectedValue = originalValue.concat();\n var index = direction === 'left' ? 0 : 1;\n selectedValue[index] = value;\n if (selectedValue[0] && this.compare(selectedValue[0], selectedValue[1]) > 0) {\n selectedValue[1] = this.state.showTimePicker ? selectedValue[index] : undefined;\n }\n if (selectedValue[0] && !selectedValue[1]) {\n selectedValue[1 - index] = this.state.showTimePicker ? selectedValue[index] : undefined;\n }\n this.props.onInputSelect(selectedValue);\n this.fireSelectValueChange(selectedValue, null, cause || { source: 'dateInput' });\n}\n\nvar RangeCalendar = function (_React$Component) {\n _inherits(RangeCalendar, _React$Component);\n\n function RangeCalendar(props) {\n _classCallCheck(this, RangeCalendar);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));\n\n _initialiseProps.call(_this);\n\n var selectedValue = props.selectedValue || props.defaultSelectedValue || [];\n var value = normalizeAnchor(props, 1);\n _this.state = {\n selectedValue: selectedValue,\n prevSelectedValue: selectedValue,\n firstSelectedValue: null,\n hoverValue: props.hoverValue || [],\n value: value,\n showTimePicker: false,\n mode: props.mode || ['date', 'date']\n };\n return _this;\n }\n\n RangeCalendar.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, state) {\n var newState = {};\n if ('value' in nextProps) {\n newState.value = normalizeAnchor(nextProps, 0);\n }\n if ('hoverValue' in nextProps && !isArraysEqual(state.hoverValue, nextProps.hoverValue)) {\n newState.hoverValue = nextProps.hoverValue;\n }\n if ('selectedValue' in nextProps) {\n newState.selectedValue = nextProps.selectedValue;\n newState.prevSelectedValue = nextProps.selectedValue;\n }\n if ('mode' in nextProps && !isArraysEqual(state.mode, nextProps.mode)) {\n newState = { mode: nextProps.mode };\n }\n return newState;\n };\n\n // get disabled hours for second picker\n\n\n RangeCalendar.prototype.render = function render() {\n var _className, _classnames;\n\n var props = this.props,\n state = this.state;\n var prefixCls = props.prefixCls,\n dateInputPlaceholder = props.dateInputPlaceholder,\n seperator = props.seperator,\n timePicker = props.timePicker,\n showOk = props.showOk,\n locale = props.locale,\n showClear = props.showClear,\n showToday = props.showToday,\n type = props.type,\n clearIcon = props.clearIcon,\n onStartInputBlur = props.onStartInputBlur,\n onEndInputBlur = props.onEndInputBlur;\n var hoverValue = state.hoverValue,\n selectedValue = state.selectedValue,\n mode = state.mode,\n showTimePicker = state.showTimePicker;\n\n var className = (_className = {}, _defineProperty(_className, props.className, !!props.className), _defineProperty(_className, prefixCls, 1), _defineProperty(_className, prefixCls + '-hidden', !props.visible), _defineProperty(_className, prefixCls + '-range', 1), _defineProperty(_className, prefixCls + '-show-time-picker', showTimePicker), _defineProperty(_className, prefixCls + '-week-number', props.showWeekNumber), _className);\n var classes = (0, _classnames3[\"default\"])(className);\n var newProps = {\n selectedValue: state.selectedValue,\n onSelect: this.onSelect,\n onDayHover: type === 'start' && selectedValue[1] || type === 'end' && selectedValue[0] || !!hoverValue.length ? this.onDayHover : undefined\n };\n\n var placeholder1 = void 0;\n var placeholder2 = void 0;\n\n if (dateInputPlaceholder) {\n if (Array.isArray(dateInputPlaceholder)) {\n var _dateInputPlaceholder = _slicedToArray(dateInputPlaceholder, 2);\n\n placeholder1 = _dateInputPlaceholder[0];\n placeholder2 = _dateInputPlaceholder[1];\n } else {\n placeholder1 = placeholder2 = dateInputPlaceholder;\n }\n }\n var showOkButton = showOk === true || showOk !== false && !!timePicker;\n var cls = (0, _classnames3[\"default\"])((_classnames = {}, _defineProperty(_classnames, prefixCls + '-footer', true), _defineProperty(_classnames, prefixCls + '-range-bottom', true), _defineProperty(_classnames, prefixCls + '-footer-show-ok', showOkButton), _classnames));\n\n var startValue = this.getStartValue();\n var endValue = this.getEndValue();\n var todayTime = (0, _util.getTodayTime)(startValue);\n var thisMonth = todayTime.month();\n var thisYear = todayTime.year();\n var isTodayInView = startValue.year() === thisYear && startValue.month() === thisMonth || endValue.year() === thisYear && endValue.month() === thisMonth;\n var nextMonthOfStart = startValue.clone().add(1, 'months');\n var isClosestMonths = nextMonthOfStart.year() === endValue.year() && nextMonthOfStart.month() === endValue.month();\n\n var extraFooter = props.renderFooter();\n return _react2[\"default\"].createElement(\n 'div',\n {\n ref: this.saveRoot,\n className: classes,\n style: props.style,\n onKeyDown: this.onKeyDown\n },\n props.renderSidebar(),\n _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-panel', onMouseOver: this.onMouseOver },\n showClear && selectedValue[0] && selectedValue[1] ? _react2[\"default\"].createElement(\n 'a',\n {\n role: 'button',\n title: locale.clear,\n onClick: this.clear\n },\n clearIcon || _react2[\"default\"].createElement('span', { className: prefixCls + '-clear-btn uf uf-close-c' })\n ) : null,\n _react2[\"default\"].createElement(\n 'div',\n {\n className: prefixCls + '-date-panel',\n onMouseLeave: type !== 'both' ? this.onDatePanelLeave : undefined,\n onMouseEnter: type !== 'both' ? this.onDatePanelEnter : undefined\n },\n _react2[\"default\"].createElement(_CalendarPart2[\"default\"], _extends({}, props, newProps, {\n hoverValue: hoverValue,\n direction: 'left',\n disabledTime: this.disabledStartTime,\n disabledMonth: this.disabledStartMonth,\n format: this.getFormat(),\n value: startValue,\n mode: mode[0],\n placeholder: placeholder1,\n onInputChange: this.onStartInputChange,\n onInputSelect: this.onStartInputSelect,\n onValueChange: this.onStartValueChange,\n onPanelChange: this.onStartPanelChange,\n showDateInput: this.props.showDateInput,\n timePicker: timePicker,\n showTimePicker: showTimePicker,\n enablePrev: true,\n enableNext: !isClosestMonths || this.isMonthYearPanelShow(mode[1]),\n clearIcon: clearIcon,\n tabIndex: '0',\n onInputBlur: onStartInputBlur\n })),\n _react2[\"default\"].createElement(\n 'span',\n { className: prefixCls + '-range-middle' },\n seperator\n ),\n _react2[\"default\"].createElement(_CalendarPart2[\"default\"], _extends({}, props, newProps, {\n hoverValue: hoverValue,\n direction: 'right',\n format: this.getFormat(),\n timePickerDisabledTime: this.getEndDisableTime(),\n placeholder: placeholder2,\n value: endValue,\n mode: mode[1],\n onInputChange: this.onEndInputChange,\n onInputSelect: this.onEndInputSelect,\n onValueChange: this.onEndValueChange,\n onPanelChange: this.onEndPanelChange,\n showDateInput: this.props.showDateInput,\n timePicker: timePicker,\n showTimePicker: showTimePicker,\n disabledTime: this.disabledEndTime,\n disabledMonth: this.disabledEndMonth,\n enablePrev: !isClosestMonths || this.isMonthYearPanelShow(mode[0]),\n enableNext: true,\n clearIcon: clearIcon,\n tabIndex: '0',\n inputTabIndex: '-1',\n onInputBlur: onEndInputBlur\n }))\n ),\n _react2[\"default\"].createElement(\n 'div',\n { className: cls },\n showToday || props.timePicker || showOkButton || extraFooter ? _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-footer-btn' },\n extraFooter ? _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-footer-extra' },\n extraFooter\n ) : null,\n showToday ? _react2[\"default\"].createElement(_TodayButton2[\"default\"], _extends({}, props, {\n disabled: isTodayInView,\n value: state.value[0],\n onToday: this.onToday,\n text: locale.backToToday\n })) : null,\n props.timePicker ? _react2[\"default\"].createElement(_TimePickerButton2[\"default\"], _extends({}, props, {\n showTimePicker: showTimePicker,\n onOpenTimePicker: this.onOpenTimePicker,\n onCloseTimePicker: this.onCloseTimePicker,\n timePickerDisabled: !this.hasSelectedValue() || hoverValue.length\n })) : null,\n showOkButton ? _react2[\"default\"].createElement(_OkButton2[\"default\"], _extends({}, props, {\n onOk: this.onOk,\n okDisabled: !this.isAllowedDateAndTime(selectedValue) || !this.hasSelectedValue() || hoverValue.length\n })) : null\n ) : null\n )\n )\n );\n };\n\n return RangeCalendar;\n}(_react2[\"default\"].Component);\n\nRangeCalendar.propTypes = _extends({}, _CommonMixin.propType, {\n prefixCls: _propTypes2[\"default\"].string,\n dateInputPlaceholder: _propTypes2[\"default\"].any,\n seperator: _propTypes2[\"default\"].string,\n defaultValue: _propTypes2[\"default\"].any,\n value: _propTypes2[\"default\"].any,\n hoverValue: _propTypes2[\"default\"].any,\n mode: _propTypes2[\"default\"].arrayOf(_propTypes2[\"default\"].oneOf(['date', 'month', 'year', 'decade'])),\n showDateInput: _propTypes2[\"default\"].bool,\n timePicker: _propTypes2[\"default\"].any,\n showOk: _propTypes2[\"default\"].bool,\n showToday: _propTypes2[\"default\"].bool,\n defaultSelectedValue: _propTypes2[\"default\"].array,\n selectedValue: _propTypes2[\"default\"].array,\n onOk: _propTypes2[\"default\"].func,\n showClear: _propTypes2[\"default\"].bool,\n locale: _propTypes2[\"default\"].object,\n onChange: _propTypes2[\"default\"].func,\n onSelect: _propTypes2[\"default\"].func,\n onValueChange: _propTypes2[\"default\"].func,\n onHoverChange: _propTypes2[\"default\"].func,\n onPanelChange: _propTypes2[\"default\"].func,\n format: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].object, _propTypes2[\"default\"].string]),\n onClear: _propTypes2[\"default\"].func,\n type: _propTypes2[\"default\"].any,\n disabledDate: _propTypes2[\"default\"].func,\n disabledTime: _propTypes2[\"default\"].func,\n clearIcon: _propTypes2[\"default\"].node,\n onKeyDown: _propTypes2[\"default\"].func\n});\nRangeCalendar.defaultProps = _extends({}, _CommonMixin.defaultProp, {\n type: 'both',\n seperator: '~',\n defaultSelectedValue: [],\n onValueChange: noop,\n onHoverChange: noop,\n onPanelChange: noop,\n disabledTime: noop,\n onInputSelect: noop,\n showToday: true,\n showDateInput: true\n});\n\nvar _initialiseProps = function _initialiseProps() {\n var _this2 = this;\n\n this.onDatePanelEnter = function () {\n if (_this2.hasSelectedValue()) {\n _this2.fireHoverValueChange(_this2.state.selectedValue.concat());\n }\n };\n\n this.onDatePanelLeave = function () {\n if (_this2.hasSelectedValue()) {\n _this2.fireHoverValueChange([]);\n }\n };\n\n this.onSelect = function (value) {\n var type = _this2.props.type;\n var _state = _this2.state,\n selectedValue = _state.selectedValue,\n prevSelectedValue = _state.prevSelectedValue,\n firstSelectedValue = _state.firstSelectedValue;\n\n var nextSelectedValue = void 0;\n if (type === 'both') {\n if (!firstSelectedValue) {\n (0, _util.syncTime)(prevSelectedValue[0], value);\n nextSelectedValue = [value];\n } else if (_this2.compare(firstSelectedValue, value) < 0) {\n (0, _util.syncTime)(prevSelectedValue[1], value);\n nextSelectedValue = [firstSelectedValue, value];\n } else {\n (0, _util.syncTime)(prevSelectedValue[0], value);\n (0, _util.syncTime)(prevSelectedValue[1], firstSelectedValue);\n nextSelectedValue = [value, firstSelectedValue];\n }\n } else if (type === 'start') {\n (0, _util.syncTime)(prevSelectedValue[0], value);\n var endValue = selectedValue[1];\n nextSelectedValue = endValue && _this2.compare(endValue, value) > 0 ? [value, endValue] : [value];\n } else {\n // type === 'end'\n var startValue = selectedValue[0];\n if (startValue && _this2.compare(startValue, value) <= 0) {\n (0, _util.syncTime)(prevSelectedValue[1], value);\n nextSelectedValue = [startValue, value];\n } else {\n (0, _util.syncTime)(prevSelectedValue[0], value);\n nextSelectedValue = [value];\n }\n }\n\n _this2.fireSelectValueChange(nextSelectedValue);\n };\n\n this.onKeyDown = function (event) {\n if (event.target.nodeName.toLowerCase() === 'input') {\n return;\n }\n\n var keyCode = event.keyCode;\n\n var ctrlKey = event.ctrlKey || event.metaKey;\n\n var _state2 = _this2.state,\n selectedValue = _state2.selectedValue,\n hoverValue = _state2.hoverValue,\n firstSelectedValue = _state2.firstSelectedValue,\n value = _state2.value;\n var _props = _this2.props,\n onKeyDown = _props.onKeyDown,\n disabledDate = _props.disabledDate;\n\n // Update last time of the picker\n\n var updateHoverPoint = function updateHoverPoint(func) {\n // Change hover to make focus in UI\n var currentHoverTime = void 0;\n var nextHoverTime = void 0;\n var nextHoverValue = void 0;\n\n if (!firstSelectedValue) {\n currentHoverTime = hoverValue[0] || selectedValue[0] || value[0] || (0, _moment2[\"default\"])();\n nextHoverTime = func(currentHoverTime);\n nextHoverValue = [nextHoverTime];\n _this2.fireHoverValueChange(nextHoverValue);\n } else {\n if (hoverValue.length === 1) {\n currentHoverTime = hoverValue[0].clone();\n nextHoverTime = func(currentHoverTime);\n nextHoverValue = _this2.onDayHover(nextHoverTime);\n } else {\n currentHoverTime = hoverValue[0].isSame(firstSelectedValue, 'day') ? hoverValue[1] : hoverValue[0];\n nextHoverTime = func(currentHoverTime);\n nextHoverValue = _this2.onDayHover(nextHoverTime);\n }\n }\n\n // Find origin hover time on value index\n if (nextHoverValue.length >= 2) {\n var miss = nextHoverValue.some(function (ht) {\n return !(0, _toTime.includesTime)(value, ht, 'month');\n });\n if (miss) {\n var newValue = nextHoverValue.slice().sort(function (t1, t2) {\n return t1.valueOf() - t2.valueOf();\n });\n if (newValue[0].isSame(newValue[1], 'month')) {\n newValue[1] = newValue[0].clone().add(1, 'month');\n }\n _this2.fireValueChange(newValue);\n }\n } else if (nextHoverValue.length === 1) {\n // If only one value, let's keep the origin panel\n var oriValueIndex = value.findIndex(function (time) {\n return time.isSame(currentHoverTime, 'month');\n });\n if (oriValueIndex === -1) oriValueIndex = 0;\n\n if (value.every(function (time) {\n return !time.isSame(nextHoverTime, 'month');\n })) {\n var _newValue = value.slice();\n _newValue[oriValueIndex] = nextHoverTime.clone();\n _this2.fireValueChange(_newValue);\n }\n }\n\n event.preventDefault();\n\n return nextHoverTime;\n };\n\n switch (keyCode) {\n case _KeyCode2[\"default\"].DOWN:\n updateHoverPoint(function (time) {\n return (0, _toTime.goTime)(time, 1, 'weeks');\n });\n return;\n case _KeyCode2[\"default\"].UP:\n updateHoverPoint(function (time) {\n return (0, _toTime.goTime)(time, -1, 'weeks');\n });\n return;\n case _KeyCode2[\"default\"].LEFT:\n if (ctrlKey) {\n updateHoverPoint(function (time) {\n return (0, _toTime.goTime)(time, -1, 'years');\n });\n } else {\n updateHoverPoint(function (time) {\n return (0, _toTime.goTime)(time, -1, 'days');\n });\n }\n return;\n case _KeyCode2[\"default\"].RIGHT:\n if (ctrlKey) {\n updateHoverPoint(function (time) {\n return (0, _toTime.goTime)(time, 1, 'years');\n });\n } else {\n updateHoverPoint(function (time) {\n return (0, _toTime.goTime)(time, 1, 'days');\n });\n }\n return;\n case _KeyCode2[\"default\"].HOME:\n updateHoverPoint(function (time) {\n return (0, _toTime.goStartMonth)(time);\n });\n return;\n case _KeyCode2[\"default\"].END:\n updateHoverPoint(function (time) {\n return (0, _toTime.goEndMonth)(time);\n });\n return;\n case _KeyCode2[\"default\"].PAGE_DOWN:\n updateHoverPoint(function (time) {\n return (0, _toTime.goTime)(time, 1, 'month');\n });\n return;\n case _KeyCode2[\"default\"].PAGE_UP:\n updateHoverPoint(function (time) {\n return (0, _toTime.goTime)(time, -1, 'month');\n });\n return;\n case _KeyCode2[\"default\"].ENTER:\n {\n var lastValue = void 0;\n if (hoverValue.length === 0) {\n lastValue = updateHoverPoint(function (time) {\n return time;\n });\n } else if (hoverValue.length === 1) {\n lastValue = hoverValue[0];\n } else {\n lastValue = hoverValue[0].isSame(firstSelectedValue, 'day') ? hoverValue[1] : hoverValue[0];\n }\n if (lastValue && (!disabledDate || !disabledDate(lastValue))) {\n _this2.onSelect(lastValue);\n }\n event.preventDefault();\n return;\n }\n default:\n if (onKeyDown) {\n onKeyDown(event);\n }\n }\n };\n\n this.onDayHover = function (value) {\n var hoverValue = [];\n var _state3 = _this2.state,\n selectedValue = _state3.selectedValue,\n firstSelectedValue = _state3.firstSelectedValue;\n var type = _this2.props.type;\n\n if (type === 'start' && selectedValue[1]) {\n hoverValue = _this2.compare(value, selectedValue[1]) < 0 ? [value, selectedValue[1]] : [value];\n } else if (type === 'end' && selectedValue[0]) {\n hoverValue = _this2.compare(value, selectedValue[0]) > 0 ? [selectedValue[0], value] : [];\n } else {\n if (!firstSelectedValue) {\n if (_this2.state.hoverValue.length) {\n _this2.setState({ hoverValue: [] });\n }\n return hoverValue;\n }\n hoverValue = _this2.compare(value, firstSelectedValue) < 0 ? [value, firstSelectedValue] : [firstSelectedValue, value];\n }\n _this2.fireHoverValueChange(hoverValue);\n\n return hoverValue;\n };\n\n this.onToday = function () {\n var startValue = (0, _util.getTodayTime)(_this2.state.value[0]);\n var endValue = startValue.clone().add(1, 'months');\n _this2.setState({ value: [startValue, endValue] });\n };\n\n this.onOpenTimePicker = function () {\n _this2.setState({\n showTimePicker: true\n });\n };\n\n this.onCloseTimePicker = function () {\n _this2.setState({\n showTimePicker: false\n });\n };\n\n this.onOk = function () {\n var selectedValue = _this2.state.selectedValue;\n\n if (_this2.isAllowedDateAndTime(selectedValue)) {\n _this2.props.onOk(_this2.state.selectedValue);\n }\n };\n\n this.onStartInputChange = function () {\n for (var _len = arguments.length, oargs = Array(_len), _key = 0; _key < _len; _key++) {\n oargs[_key] = arguments[_key];\n }\n\n var args = ['left'].concat(oargs);\n return onInputSelect.apply(_this2, args);\n };\n\n this.onEndInputChange = function () {\n for (var _len2 = arguments.length, oargs = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n oargs[_key2] = arguments[_key2];\n }\n\n var args = ['right'].concat(oargs);\n return onInputSelect.apply(_this2, args);\n };\n\n this.onStartInputSelect = function (value) {\n var args = ['left', value, { source: 'dateInputSelect' }];\n return onInputSelect.apply(_this2, args);\n };\n\n this.onEndInputSelect = function (value) {\n var args = ['right', value, { source: 'dateInputSelect' }];\n return onInputSelect.apply(_this2, args);\n };\n\n this.onStartValueChange = function (leftValue) {\n var value = [].concat(_toConsumableArray(_this2.state.value));\n value[0] = leftValue;\n return _this2.fireValueChange(value);\n };\n\n this.onEndValueChange = function (rightValue) {\n var value = [].concat(_toConsumableArray(_this2.state.value));\n value[1] = rightValue;\n return _this2.fireValueChange(value);\n };\n\n this.onStartPanelChange = function (value, mode) {\n var props = _this2.props,\n state = _this2.state;\n\n var newMode = [mode, state.mode[1]];\n if (!('mode' in props)) {\n _this2.setState({\n mode: newMode\n });\n }\n var newValue = [value || state.value[0], state.value[1]];\n props.onPanelChange(newValue, newMode);\n };\n\n this.onEndPanelChange = function (value, mode) {\n var props = _this2.props,\n state = _this2.state;\n\n var newMode = [state.mode[0], mode];\n if (!('mode' in props)) {\n _this2.setState({\n mode: newMode\n });\n }\n var newValue = [state.value[0], value || state.value[1]];\n props.onPanelChange(newValue, newMode);\n };\n\n this.getStartValue = function () {\n var value = _this2.state.value[0];\n var selectedValue = _this2.state.selectedValue;\n // keep selectedTime when select date\n if (selectedValue[0] && _this2.props.timePicker) {\n value = value.clone();\n (0, _util.syncTime)(selectedValue[0], value);\n }\n if (_this2.state.showTimePicker && selectedValue[0]) {\n return selectedValue[0];\n }\n return value;\n };\n\n this.getEndValue = function () {\n var _state4 = _this2.state,\n value = _state4.value,\n selectedValue = _state4.selectedValue,\n showTimePicker = _state4.showTimePicker;\n\n var endValue = value[1] ? value[1].clone() : value[0].clone().add(1, 'month');\n // keep selectedTime when select date\n if (selectedValue[1] && _this2.props.timePicker) {\n (0, _util.syncTime)(selectedValue[1], endValue);\n }\n if (showTimePicker) {\n return selectedValue[1] ? selectedValue[1] : _this2.getStartValue();\n }\n return endValue;\n };\n\n this.getEndDisableTime = function () {\n var _state5 = _this2.state,\n selectedValue = _state5.selectedValue,\n value = _state5.value;\n var disabledTime = _this2.props.disabledTime;\n\n var userSettingDisabledTime = disabledTime(selectedValue, 'end') || {};\n var startValue = selectedValue && selectedValue[0] || value[0].clone();\n // if startTime and endTime is same day..\n // the second time picker will not able to pick time before first time picker\n if (!selectedValue[1] || startValue.isSame(selectedValue[1], 'day')) {\n var hours = startValue.hour();\n var minutes = startValue.minute();\n var second = startValue.second();\n var _disabledHours = userSettingDisabledTime.disabledHours,\n _disabledMinutes = userSettingDisabledTime.disabledMinutes,\n _disabledSeconds = userSettingDisabledTime.disabledSeconds;\n\n var oldDisabledMinutes = _disabledMinutes ? _disabledMinutes() : [];\n var olddisabledSeconds = _disabledSeconds ? _disabledSeconds() : [];\n _disabledHours = generateOptions(hours, _disabledHours);\n _disabledMinutes = generateOptions(minutes, _disabledMinutes);\n _disabledSeconds = generateOptions(second, _disabledSeconds);\n return {\n disabledHours: function disabledHours() {\n return _disabledHours;\n },\n disabledMinutes: function disabledMinutes(hour) {\n if (hour === hours) {\n return _disabledMinutes;\n }\n return oldDisabledMinutes;\n },\n disabledSeconds: function disabledSeconds(hour, minute) {\n if (hour === hours && minute === minutes) {\n return _disabledSeconds;\n }\n return olddisabledSeconds;\n }\n };\n }\n return userSettingDisabledTime;\n };\n\n this.isAllowedDateAndTime = function (selectedValue) {\n return (0, _util.isAllowedDate)(selectedValue[0], _this2.props.disabledDate, _this2.disabledStartTime) && (0, _util.isAllowedDate)(selectedValue[1], _this2.props.disabledDate, _this2.disabledEndTime);\n };\n\n this.isMonthYearPanelShow = function (mode) {\n return ['month', 'year', 'decade'].indexOf(mode) > -1;\n };\n\n this.hasSelectedValue = function () {\n var selectedValue = _this2.state.selectedValue;\n\n return !!selectedValue[1] && !!selectedValue[0];\n };\n\n this.compare = function (v1, v2) {\n if (_this2.props.timePicker) {\n return v1.diff(v2);\n }\n return v1 && v1.diff(v2, 'days');\n };\n\n this.fireSelectValueChange = function (selectedValue, direct, cause) {\n var timePicker = _this2.props.timePicker;\n var prevSelectedValue = _this2.state.prevSelectedValue;\n\n if (timePicker && timePicker.props.defaultValue) {\n var timePickerDefaultValue = timePicker.props.defaultValue;\n if (!prevSelectedValue[0] && selectedValue[0]) {\n (0, _util.syncTime)(timePickerDefaultValue[0], selectedValue[0]);\n }\n if (!prevSelectedValue[1] && selectedValue[1]) {\n (0, _util.syncTime)(timePickerDefaultValue[1], selectedValue[1]);\n }\n }\n\n if (!('selectedValue' in _this2.props)) {\n _this2.setState({\n selectedValue: selectedValue\n });\n }\n\n // 尚未选择过时间,直接输入的话\n if (!_this2.state.selectedValue[0] || !_this2.state.selectedValue[1]) {\n var startValue = selectedValue[0] || (0, _moment2[\"default\"])();\n var endValue = selectedValue[1] || startValue.clone().add(1, 'months');\n _this2.setState({\n selectedValue: selectedValue,\n value: getValueFromSelectedValue([startValue, endValue])\n });\n }\n\n if (selectedValue[0] && !selectedValue[1]) {\n _this2.setState({ firstSelectedValue: selectedValue[0] });\n _this2.fireHoverValueChange(selectedValue.concat());\n }\n selectedValue.map(function (item) {\n if (item) {\n item._type = 'range';\n }\n });\n _this2.props.onChange(selectedValue);\n if (direct || selectedValue[0] && selectedValue[1]) {\n _this2.setState({\n prevSelectedValue: selectedValue,\n firstSelectedValue: null\n });\n _this2.fireHoverValueChange([]);\n _this2.props.onSelect(selectedValue, cause);\n }\n };\n\n this.fireValueChange = function (value) {\n var props = _this2.props;\n if (!('value' in props)) {\n _this2.setState({\n value: value\n });\n }\n props.onValueChange(value);\n };\n\n this.fireHoverValueChange = function (hoverValue) {\n var props = _this2.props;\n if (!('hoverValue' in props)) {\n _this2.setState({ hoverValue: hoverValue });\n }\n props.onHoverChange(hoverValue);\n };\n\n this.clear = function () {\n _this2.fireSelectValueChange([], true);\n _this2.props.onClear([]);\n };\n\n this.disabledStartTime = function (time) {\n return _this2.props.disabledTime(time, 'start');\n };\n\n this.disabledEndTime = function (time) {\n return _this2.props.disabledTime(time, 'end');\n };\n\n this.disabledStartMonth = function (month) {\n var value = _this2.state.value;\n\n return month.isSameOrAfter(value[1], 'month');\n };\n\n this.disabledEndMonth = function (month) {\n var value = _this2.state.value;\n\n return month.isSameOrBefore(value[0], 'month');\n };\n\n this.onMouseOver = function (e) {\n e.stopPropagation();\n };\n};\n\n(0, _reactLifecyclesCompat.polyfill)(RangeCalendar);\n\nexports[\"default\"] = (0, _CommonMixin.commonMixinWrapper)(RangeCalendar);\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-datepicker/build/rc-calendar/RangeCalendar.js\n// module id = 572\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _CalendarHeader = require('../calendar/CalendarHeader');\n\nvar _CalendarHeader2 = _interopRequireDefault(_CalendarHeader);\n\nvar _DateTable = require('../date/DateTable');\n\nvar _DateTable2 = _interopRequireDefault(_DateTable);\n\nvar _DateInput = require('../date/DateInput');\n\nvar _DateInput2 = _interopRequireDefault(_DateInput);\n\nvar _index = require('../util/index');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar CalendarPart = function (_React$Component) {\n _inherits(CalendarPart, _React$Component);\n\n function CalendarPart() {\n _classCallCheck(this, CalendarPart);\n\n return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n CalendarPart.prototype.render = function render() {\n var props = this.props;\n var prefixCls = props.prefixCls,\n value = props.value,\n hoverValue = props.hoverValue,\n selectedValue = props.selectedValue,\n mode = props.mode,\n direction = props.direction,\n locale = props.locale,\n format = props.format,\n placeholder = props.placeholder,\n disabledDate = props.disabledDate,\n timePicker = props.timePicker,\n disabledTime = props.disabledTime,\n timePickerDisabledTime = props.timePickerDisabledTime,\n showTimePicker = props.showTimePicker,\n onInputChange = props.onInputChange,\n onInputSelect = props.onInputSelect,\n enablePrev = props.enablePrev,\n enableNext = props.enableNext,\n clearIcon = props.clearIcon,\n renderError = props.renderError,\n inputTabIndex = props.inputTabIndex,\n onInputBlur = props.onInputBlur,\n validatorFunc = props.validatorFunc;\n\n var shouldShowTimePicker = showTimePicker && timePicker;\n var disabledTimeConfig = shouldShowTimePicker && disabledTime ? (0, _index.getTimeConfig)(selectedValue, disabledTime) : null;\n var rangeClassName = prefixCls + '-range';\n var newProps = {\n locale: locale,\n value: value,\n prefixCls: prefixCls,\n showTimePicker: showTimePicker\n };\n var index = direction === 'left' ? 0 : 1;\n var timePickerEle = shouldShowTimePicker && _react2[\"default\"].cloneElement(timePicker, _extends({\n showHour: true,\n showMinute: true,\n showSecond: true\n }, timePicker.props, disabledTimeConfig, timePickerDisabledTime, {\n onChange: onInputChange,\n defaultOpenValue: value,\n value: selectedValue[index]\n }));\n\n var dateInputElement = props.showDateInput && _react2[\"default\"].createElement(_DateInput2[\"default\"], {\n isRange: true,\n format: format,\n locale: locale,\n prefixCls: prefixCls,\n timePicker: timePicker,\n disabledDate: disabledDate,\n placeholder: placeholder,\n disabledTime: disabledTime,\n value: value,\n showClear: false,\n selectedValue: selectedValue[index],\n onChange: onInputChange,\n onSelect: onInputSelect,\n clearIcon: clearIcon,\n renderError: renderError,\n inputTabIndex: inputTabIndex,\n onBlur: onInputBlur,\n validatorFunc: validatorFunc\n });\n\n return _react2[\"default\"].createElement(\n 'div',\n {\n className: rangeClassName + '-part ' + rangeClassName + '-' + direction\n },\n dateInputElement,\n _react2[\"default\"].createElement(\n 'div',\n { style: { outline: 'none' }, tabIndex: props.tabIndex, className: rangeClassName + '-out' },\n _react2[\"default\"].createElement(_CalendarHeader2[\"default\"], _extends({}, newProps, {\n mode: mode,\n enableNext: enableNext,\n enablePrev: enablePrev,\n onValueChange: props.onValueChange,\n onPanelChange: props.onPanelChange,\n disabledMonth: props.disabledMonth\n })),\n showTimePicker ? _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-time-picker' },\n _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-time-picker-panel' },\n timePickerEle\n )\n ) : null,\n _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-body' },\n _react2[\"default\"].createElement(_DateTable2[\"default\"], _extends({}, newProps, {\n hoverValue: hoverValue,\n selectedValue: selectedValue,\n dateRender: props.dateRender,\n onSelect: props.onSelect,\n onDayHover: props.onDayHover,\n disabledDate: disabledDate,\n showWeekNumber: props.showWeekNumber\n }))\n )\n )\n );\n };\n\n return CalendarPart;\n}(_react2[\"default\"].Component);\n\nCalendarPart.propTypes = {\n prefixCls: _propTypes2[\"default\"].string,\n value: _propTypes2[\"default\"].any,\n hoverValue: _propTypes2[\"default\"].any,\n selectedValue: _propTypes2[\"default\"].any,\n direction: _propTypes2[\"default\"].any,\n locale: _propTypes2[\"default\"].any,\n showDateInput: _propTypes2[\"default\"].bool,\n showTimePicker: _propTypes2[\"default\"].bool,\n format: _propTypes2[\"default\"].any,\n placeholder: _propTypes2[\"default\"].any,\n disabledDate: _propTypes2[\"default\"].any,\n timePicker: _propTypes2[\"default\"].any,\n disabledTime: _propTypes2[\"default\"].any,\n onInputChange: _propTypes2[\"default\"].func,\n onInputSelect: _propTypes2[\"default\"].func,\n timePickerDisabledTime: _propTypes2[\"default\"].object,\n enableNext: _propTypes2[\"default\"].any,\n enablePrev: _propTypes2[\"default\"].any,\n clearIcon: _propTypes2[\"default\"].node\n};\nexports[\"default\"] = CalendarPart;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-datepicker/build/rc-calendar/range-calendar/CalendarPart.js\n// module id = 573\n// module chunks = 0","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _rcCalendar = require(\"./rc-calendar\");\n\nvar _rcCalendar2 = _interopRequireDefault(_rcCalendar);\n\nvar _react = require(\"react\");\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = require(\"react-dom\");\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _classnames = require(\"classnames\");\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _Picker = require(\"./rc-calendar/Picker\");\n\nvar _Picker2 = _interopRequireDefault(_Picker);\n\nvar _beeFormControl = require(\"bee-form-control\");\n\nvar _beeFormControl2 = _interopRequireDefault(_beeFormControl);\n\nvar _zh_CN = require(\"./locale/zh_CN\");\n\nvar _zh_CN2 = _interopRequireDefault(_zh_CN);\n\nvar _en_US = require(\"./locale/en_US\");\n\nvar _en_US2 = _interopRequireDefault(_en_US);\n\nvar _beeIcon = require(\"bee-icon\");\n\nvar _beeIcon2 = _interopRequireDefault(_beeIcon);\n\nvar _beeInputGroup = require(\"bee-input-group\");\n\nvar _beeInputGroup2 = _interopRequireDefault(_beeInputGroup);\n\nvar _moment = require(\"moment\");\n\nvar _moment2 = _interopRequireDefault(_moment);\n\nrequire(\"moment/locale/zh-cn\");\n\nrequire(\"moment/locale/en-gb\");\n\nvar _omit = require(\"omit.js\");\n\nvar _omit2 = _interopRequireDefault(_omit);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError(\"Cannot destructure undefined\"); }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**\n * Created by chief on 17/4/6.\n */\n\nvar cn = typeof window !== 'undefined' ? location.search.indexOf(\"cn\") !== -1 : true;\n\nvar now = (0, _moment2[\"default\"])();\nif (cn) {\n now.locale(\"zh-cn\").utcOffset(8);\n} else {\n now.locale(\"en-gb\").utcOffset(0);\n}\n\nvar format = \"YYYY-Wo\";\n\nvar style = \"\\n.week-calendar .rc-calendar-tbody > tr:hover\\n.rc-calendar-date {\\n background: #ebfaff;\\n}\\n\\n.week-calendar .rc-calendar-tbody > tr:hover\\n.rc-calendar-selected-day .rc-calendar-date {\\n background: #3fc7fa;\\n}\\n.week-calendar .week-calendar-footer {\\n position:absolute;\\n top:0;\\n left:0;\\n bottom:0;\\n width:100%;\\n border-right: 1px solid #ccc;\\n}\\n\";\n\nvar WeekPicker = function (_Component) {\n _inherits(WeekPicker, _Component);\n\n function WeekPicker(props, context) {\n _classCallCheck(this, WeekPicker);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));\n\n _initialiseProps.call(_this);\n\n _this.state = {\n value: _this.initValue(props),\n open: false,\n showClose: false\n };\n return _this;\n }\n\n WeekPicker.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n if (\"value\" in nextProps) {\n this.setState({\n value: this.initValue(nextProps)\n });\n }\n };\n //阻止组件内部事件冒泡到组件外部容器\n\n\n WeekPicker.prototype.render = function render() {\n var _this2 = this;\n\n var state = this.state;\n var props = this.props;\n\n var showClose = props.showClose,\n others = _objectWithoutProperties(props, [\"showClose\"]);\n\n var value = state.value;\n var calendar = _react2[\"default\"].createElement(_rcCalendar2[\"default\"], {\n className: \"week-calendar\",\n showWeekNumber: true,\n showMonthInput: false,\n renderFooter: this.renderFooter,\n dateRender: this.dateRender,\n locale: cn ? _zh_CN2[\"default\"] : _en_US2[\"default\"],\n format: format,\n dateInputPlaceholder: this.props.placeholder,\n defaultValue: now,\n showDateInput: true,\n onChange: this.handleCalendarChange,\n showToday: false,\n onClear: this.onClear\n });\n var classes = (0, _classnames2[\"default\"])(props.className, \"datepicker-container\");\n return _react2[\"default\"].createElement(\n \"div\",\n _extends({ className: classes, onClick: this.stopPropagation, onMouseOver: this.stopPropagation\n }, (0, _omit2[\"default\"])(others, ['closeIcon', 'renderIcon', 'format', 'locale', 'placeholder'])),\n _react2[\"default\"].createElement(\n _Picker2[\"default\"],\n _extends({\n animation: \"slide-up\"\n }, props, {\n onOpenChange: this.onOpenChange,\n open: this.state.open,\n calendar: calendar,\n value: state.value\n }),\n function (_ref) {\n _objectDestructuringEmpty(_ref);\n\n return _react2[\"default\"].createElement(\n _beeInputGroup2[\"default\"],\n { simple: true, className: \"datepicker-input-group\",\n onMouseEnter: _this2.onMouseEnter,\n onMouseLeave: _this2.onMouseLeave\n },\n _react2[\"default\"].createElement(_beeFormControl2[\"default\"], {\n placeholder: _this2.props.placeholder,\n disabled: props.disabled,\n readOnly: true,\n tabIndex: \"-1\",\n className: _this2.props.className,\n value: value && value.format(format) || \"\"\n }),\n showClose && _this2.state.value && _this2.state.showClose && !props.disabled ? _react2[\"default\"].createElement(\n _beeInputGroup2[\"default\"].Button,\n { shape: \"border\",\n onClick: _this2.onClear },\n props.closeIcon()\n ) : _react2[\"default\"].createElement(\n _beeInputGroup2[\"default\"].Button,\n { shape: \"border\" },\n props.renderIcon()\n )\n );\n }\n )\n );\n };\n\n return WeekPicker;\n}(_react.Component);\n\nvar _initialiseProps = function _initialiseProps() {\n var _this3 = this;\n\n this.initValue = function (props) {\n var value = props.value || props.defaultValue || '';\n var format = props.format;\n if (value) {\n if (typeof value == 'string') {\n if ((0, _moment2[\"default\"])(value, format).isValid()) {\n value = (0, _moment2[\"default\"])(value, format);\n } else {\n console.error('value is not in the correct format');\n value = '';\n }\n } else if (value.format && value.isValid()) {\n value = value;\n } else {\n console.error('value is not in the correct format');\n value = '';\n }\n }\n\n return value;\n };\n\n this.onChange = function (value) {\n _this3.setState({\n value: value\n });\n };\n\n this.onOpenChange = function (open) {\n _this3.setState({\n open: open\n });\n };\n\n this.dateRender = function (current) {\n var selectedValue = _this3.state.value;\n if (selectedValue && current.year() === selectedValue.year() && current.week() === selectedValue.week()) {\n return _react2[\"default\"].createElement(\n \"div\",\n { className: \"rc-calendar-selected-day\" },\n _react2[\"default\"].createElement(\n \"div\",\n { className: \"rc-calendar-date\" },\n current.date()\n )\n );\n }\n return _react2[\"default\"].createElement(\n \"div\",\n { className: \"rc-calendar-date\" },\n current.date()\n );\n };\n\n this.lastWeek = function () {\n var value = _this3.props.value || now;\n value.add(-1, \"weeks\");\n _this3.setState({\n value: value,\n open: false\n });\n };\n\n this.nextWeek = function () {\n var value = _this3.props.value || now;\n value.add(+1, \"weeks\");\n _this3.setState({\n value: value,\n open: false\n });\n };\n\n this.nowWeek = function () {\n var value = now;\n _this3.setState({\n value: value,\n open: false\n });\n };\n\n this.renderFooter = function () {\n return _react2[\"default\"].createElement(\n \"div\",\n { className: \"week-calendar-footer\", key: \"footer\" },\n _react2[\"default\"].createElement(\n \"span\",\n {\n className: \"week-calendar-footer-button\",\n onClick: _this3.lastWeek.bind(_this3),\n style: { 'float': 'left' }\n },\n _this3.props.locale.lastWeek\n ),\n _react2[\"default\"].createElement(\n \"span\",\n {\n className: \"week-calendar-footer-button\",\n onClick: _this3.nowWeek.bind(_this3)\n },\n _this3.props.locale.nowWeek\n ),\n _react2[\"default\"].createElement(\n \"span\",\n {\n className: \"week-calendar-footer-button\",\n onClick: _this3.nextWeek.bind(_this3),\n style: { 'float': 'right' }\n },\n _this3.props.locale.nextWeek\n )\n );\n };\n\n this.onTypeChange = function (type) {\n _this3.setState({\n type: type\n });\n };\n\n this.handleCalendarChange = function (value) {\n _this3.setState({\n value: value && _extends(value, { _type: 'week' }) || value\n });\n };\n\n this.onMouseLeave = function (e) {\n _this3.setState({\n showClose: false\n });\n };\n\n this.onMouseEnter = function (e) {\n _this3.setState({\n showClose: true\n });\n };\n\n this.onClear = function (e) {\n e && e.stopPropagation && e.stopPropagation();\n _this3.setState({\n value: ''\n });\n _this3.props.onChange && _this3.props.onChange('', '');\n };\n\n this.stopPropagation = function (e) {\n e.stopPropagation();\n };\n};\n\nWeekPicker.defaultProps = {\n closeIcon: function closeIcon() {\n return _react2[\"default\"].createElement(_beeIcon2[\"default\"], { type: \"uf-close-c\" });\n },\n renderIcon: function renderIcon() {\n return _react2[\"default\"].createElement(_beeIcon2[\"default\"], { type: \"uf-calendar\" });\n },\n locale: _zh_CN2[\"default\"],\n showClose: true,\n format: \"YYYY-Wo\"\n};\n\nexports[\"default\"] = WeekPicker;\nmodule.exports = exports[\"default\"];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-datepicker/build/WeekPicker.js\n// module id = 574\n// module chunks = 0","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _YearPanel = require(\"./rc-calendar/year/YearPanel\");\n\nvar _YearPanel2 = _interopRequireDefault(_YearPanel);\n\nvar _tinperBeeCore = require(\"tinper-bee-core\");\n\nvar _zh_CN = require(\"./locale/zh_CN\");\n\nvar _zh_CN2 = _interopRequireDefault(_zh_CN);\n\nvar _react = require(\"react\");\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = require(\"react-dom\");\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _Picker = require(\"./rc-calendar/Picker\");\n\nvar _Picker2 = _interopRequireDefault(_Picker);\n\nvar _beeFormControl = require(\"bee-form-control\");\n\nvar _beeFormControl2 = _interopRequireDefault(_beeFormControl);\n\nvar _beeInputGroup = require(\"bee-input-group\");\n\nvar _beeInputGroup2 = _interopRequireDefault(_beeInputGroup);\n\nvar _beeIcon = require(\"bee-icon\");\n\nvar _beeIcon2 = _interopRequireDefault(_beeIcon);\n\nvar _classnames = require(\"classnames\");\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _moment = require(\"moment\");\n\nvar _moment2 = _interopRequireDefault(_moment);\n\nvar _omit = require(\"omit.js\");\n\nvar _omit2 = _interopRequireDefault(_omit);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError(\"Cannot destructure undefined\"); }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**\n * Created by chief on 17/4/6.\n */\n\n//去掉focus报错\n_Picker2[\"default\"].prototype.componentDidUpdate = function () {};\n\nvar YearPicker = function (_Component) {\n _inherits(YearPicker, _Component);\n\n function YearPicker(props, context) {\n _classCallCheck(this, YearPicker);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));\n\n _initialiseProps.call(_this);\n\n _this.state = {\n type: \"year\",\n value: _this.initValue(props),\n open: props.open || false,\n showClose: false\n };\n return _this;\n }\n\n YearPicker.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n if (\"value\" in nextProps) {\n this.setState({\n value: this.initValue(nextProps)\n });\n }\n if (\"open\" in nextProps) {\n this.setState({\n open: nextProps.open\n });\n }\n if (\"renderIcon\" in nextProps) {\n this.setState({\n renderIcon: nextProps.renderIcon\n });\n }\n };\n\n //阻止组件内部事件冒泡到组件外部容器\n\n\n YearPicker.prototype.render = function render() {\n var _this2 = this;\n\n var state = this.state;\n var props = this.props;\n\n var showClose = props.showClose,\n others = _objectWithoutProperties(props, [\"showClose\"]);\n\n var value = state.value;\n\n var Calendar = _react2[\"default\"].createElement(_YearPanel2[\"default\"], _extends({\n prefixCls: 'rc-calendar-picker',\n rootPrefixCls: 'rc-calendar'\n }, props, { focus: function focus() {},\n value: this.state.value,\n onSelect: this.onSelect,\n showDateInput: true\n }));\n var classes = (0, _classnames2[\"default\"])(props.className, \"datepicker-container\");\n return _react2[\"default\"].createElement(\n \"div\",\n _extends({ className: classes, onClick: this.stopPropagation, onMouseOver: this.stopPropagation\n }, (0, _omit2[\"default\"])(others, ['closeIcon', 'renderIcon', 'disabled', 'format', 'locale', 'placeholder'])),\n _react2[\"default\"].createElement(\n _Picker2[\"default\"],\n _extends({\n animation: \"slide-up\"\n }, props, {\n onOpenChange: this.onOpenChange,\n onChange: this.handleChange,\n calendar: Calendar,\n prefixCls: 'rc-calendar',\n value: state.value,\n open: this.state.open\n }),\n function (_ref) {\n _objectDestructuringEmpty(_ref);\n\n return _react2[\"default\"].createElement(\n _beeInputGroup2[\"default\"],\n { simple: true, className: \"datepicker-input-group\",\n onMouseEnter: _this2.onMouseEnter,\n onMouseLeave: _this2.onMouseLeave\n },\n _react2[\"default\"].createElement(_beeFormControl2[\"default\"], {\n ref: function ref(_ref2) {\n return _this2.outInput = _ref2;\n },\n placeholder: _this2.props.placeholder,\n className: _this2.props.className,\n disabled: props.disabled,\n readOnly: true,\n value: value && value.format(props.format) || \"\"\n }),\n showClose && _this2.state.value && _this2.state.showClose && !props.disabled ? _react2[\"default\"].createElement(\n _beeInputGroup2[\"default\"].Button,\n { shape: \"border\",\n onClick: _this2.clear },\n props.closeIcon()\n ) : _react2[\"default\"].createElement(\n _beeInputGroup2[\"default\"].Button,\n { shape: \"border\" },\n props.renderIcon()\n )\n );\n }\n )\n );\n };\n\n return YearPicker;\n}(_react.Component);\n\nvar _initialiseProps = function _initialiseProps() {\n var _this3 = this;\n\n this.initValue = function (props) {\n var value = props.value || props.defaultValue;\n if (value) {\n if (typeof value == 'string') {\n if ((0, _moment2[\"default\"])(value).isValid()) {\n value = (0, _moment2[\"default\"])(value);\n } else {\n console.error('value is not in the correct format');\n value = '';\n }\n } else if (value.format && value.isValid()) {\n value = value;\n } else {\n console.error('value is not in the correct format');\n value = '';\n }\n }\n return value;\n };\n\n this.onChange = function (value) {\n _this3.setState({\n value: value\n });\n };\n\n this.inputFocus = function () {\n var self = _this3;\n var input = document.querySelector('.rc-calendar-input');\n if (input) {\n if (input.value) {\n input.select();\n } else {\n input.focus();\n }\n input.onkeydown = function (e) {\n if (e.keyCode == _tinperBeeCore.KeyCode.DELETE) {\n input.value = '';\n self.props.onChange && self.props.onChange('', '');\n } else if (e.keyCode == _tinperBeeCore.KeyCode.ESC) {\n self.setState({\n open: false\n });\n var v = self.state.value;\n self.props.onOpenChange && self.props.onOpenChange(false, v, v && v.format(self.props.format) || '');\n _reactDom2[\"default\"].findDOMNode(self.outInput).focus(); // 按esc时候焦点回到input输入框\n }\n };\n }\n };\n\n this.onOpenChange = function (open) {\n var self = _this3;\n _this3.setState({\n open: open\n });\n if (open) {\n setTimeout(function () {\n self.inputFocus();\n }, 200);\n }\n };\n\n this.handleChange = function (value) {\n var props = _this3.props;\n _this3.setState({\n value: value && _extends(value, { _type: 'year' }) || value\n });\n props.onChange && props.onChange(value, value && value.format(props.format) || '');\n };\n\n this.onMouseLeave = function (e) {\n _this3.setState({\n showClose: false\n });\n };\n\n this.onMouseEnter = function (e) {\n _this3.setState({\n showClose: true\n });\n };\n\n this.clear = function (e) {\n e.stopPropagation();\n _this3.setState({\n value: ''\n });\n _this3.props.onChange && _this3.props.onChange('', '');\n };\n\n this.onSelect = function (value) {\n var _props = _this3.props,\n onSelect = _props.onSelect,\n format = _props.format;\n\n _this3.setState({\n open: false\n });\n onSelect && onSelect(value, value ? value.format(format) : '');\n _reactDom2[\"default\"].findDOMNode(_this3.outInput).focus();\n };\n\n this.stopPropagation = function (e) {\n e.stopPropagation();\n };\n};\n\nYearPicker.defaultProps = {\n closeIcon: function closeIcon() {\n return _react2[\"default\"].createElement(_beeIcon2[\"default\"], { type: \"uf-close-c\" });\n },\n renderIcon: function renderIcon() {\n return _react2[\"default\"].createElement(_beeIcon2[\"default\"], { type: \"uf-calendar\" });\n },\n disabled: false,\n showClose: true,\n locale: _zh_CN2[\"default\"],\n format: 'YYYY',\n validatorFunc: function validatorFunc() {\n return true;\n }\n};\n\nexports[\"default\"] = YearPicker;\nmodule.exports = exports[\"default\"];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-datepicker/build/YearPicker.js\n// module id = 575\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _Select = require('./Select');\n\nvar _Select2 = _interopRequireDefault(_Select);\n\nvar _Option = require('./Option');\n\nvar _Option2 = _interopRequireDefault(_Option);\n\nvar _PropTypes = require('./PropTypes');\n\nvar _OptGroup = require('./OptGroup');\n\nvar _OptGroup2 = _interopRequireDefault(_OptGroup);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\n_Select2[\"default\"].Option = _Option2[\"default\"];\n_Select2[\"default\"].OptGroup = _OptGroup2[\"default\"];\nexports[\"default\"] = _Select2[\"default\"];\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-select/build/index.js\n// module id = 576\n// module chunks = 0","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = require(\"react\");\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = require(\"react-dom\");\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _propTypes = require(\"prop-types\");\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _RcSelect = require(\"./RcSelect\");\n\nvar _RcSelect2 = _interopRequireDefault(_RcSelect);\n\nvar _Option = require(\"./Option\");\n\nvar _Option2 = _interopRequireDefault(_Option);\n\nvar _OptGroup = require(\"./OptGroup\");\n\nvar _OptGroup2 = _interopRequireDefault(_OptGroup);\n\nvar _classnames = require(\"classnames\");\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**\n * This source code is quoted from rc-select.\n * homepage: https://github.com/react-component/select\n */\n\n\nvar SelectContext = {\n antLocale: {\n Select: _propTypes2[\"default\"].any\n }\n};\n\nvar defaultProps = {\n clsPrefix: \"u-select\",\n showSearch: false,\n transitionName: \"slide-up\",\n choiceTransitionName: \"zoom\",\n enterKeyDown: true,\n onDeselect: function onDeselect() {},\n onSelect: function onSelect() {}\n};\n\nvar propTypes = {\n clsPrefix: _propTypes2[\"default\"].string,\n className: _propTypes2[\"default\"].string,\n value: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].string, _propTypes2[\"default\"].any]),\n defaultValue: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].node, _propTypes2[\"default\"].array, _propTypes2[\"default\"].any]),\n size: _propTypes2[\"default\"].oneOf([\"default\", \"lg\", \"sm\"]),\n combobox: _propTypes2[\"default\"].bool,\n notFoundContent: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].node, _propTypes2[\"default\"].array, _propTypes2[\"default\"].any]),\n showSearch: _propTypes2[\"default\"].bool,\n open: _propTypes2[\"default\"].bool,\n transitionName: _propTypes2[\"default\"].string,\n choiceTransitionName: _propTypes2[\"default\"].string,\n multiple: _propTypes2[\"default\"].bool,\n allowClear: _propTypes2[\"default\"].bool,\n filterOption: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].bool, _propTypes2[\"default\"].func]),\n tags: _propTypes2[\"default\"].bool,\n onSelect: _propTypes2[\"default\"].func,\n onDeselect: _propTypes2[\"default\"].func,\n onSearch: _propTypes2[\"default\"].func,\n placeholder: _propTypes2[\"default\"].string,\n dropdownMatchSelectWidth: _propTypes2[\"default\"].bool,\n optionFilterProp: _propTypes2[\"default\"].string,\n optionLabelProp: _propTypes2[\"default\"].string,\n disabled: _propTypes2[\"default\"].bool,\n defaultActiveFirstOption: _propTypes2[\"default\"].bool,\n labelInValue: _propTypes2[\"default\"].bool,\n getPopupContainer: _propTypes2[\"default\"].func,\n style: _propTypes2[\"default\"].object,\n dropdownStyle: _propTypes2[\"default\"].object,\n dropdownMenuStyle: _propTypes2[\"default\"].object,\n onChange: _propTypes2[\"default\"].func,\n scrollToEnd: _propTypes2[\"default\"].func,\n onKeyDown: _propTypes2[\"default\"].func,\n enterKeyDown: _propTypes2[\"default\"].bool //是否启用 enter 和 space 键\n};\n\nvar Select = function (_Component) {\n _inherits(Select, _Component);\n\n function Select(props) {\n _classCallCheck(this, Select);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props));\n\n _this.calculationWidth = function () {\n var lis = _this.selectDom.querySelectorAll('.u-select-selection-rendered ul li');\n var trueWidth = 0;\n [].forEach.call(lis, function (li) {\n trueWidth += li.clientWidth;\n });\n if (trueWidth >= _this.state.selectDomWidth && lis.length > 0) {\n _this.setState({\n maxTagCount: lis.length - 3 // 去掉一个选项、去掉...区域、去掉光标区域\n });\n }\n };\n\n _this.onSelect = function (value, option) {\n var _this$props = _this.props,\n noWarp = _this$props.noWarp,\n multiple = _this$props.multiple,\n onSelect = _this$props.onSelect,\n maxTagCount = _this$props.maxTagCount;\n\n if (noWarp && multiple && !maxTagCount) {\n _this.noWarpTimer && clearTimeout(_this.noWarpTimer);\n _this.noWarpTimer = setTimeout(function () {\n _this.calculationWidth();\n });\n }\n onSelect(value, option);\n };\n\n _this.onDeselect = function (value, option) {\n var _this$props2 = _this.props,\n noWarp = _this$props2.noWarp,\n multiple = _this$props2.multiple,\n onDeselect = _this$props2.onDeselect,\n maxTagCount = _this$props2.maxTagCount;\n\n if (noWarp && multiple && !maxTagCount) {\n _this.noWarpTimer && clearTimeout(_this.noWarpTimer);\n _this.noWarpTimer = setTimeout(function () {\n _this.calculationWidth();\n });\n }\n onDeselect(value, option);\n };\n\n _this.state = {\n maxTagCount: props.maxTagCount\n };\n return _this;\n }\n\n Select.prototype.componentDidMount = function componentDidMount() {\n if (this.props.noWarp) {\n this.selectDom = _reactDom2[\"default\"].findDOMNode(this.select);\n var selectDomWidth = this.selectDom.clientWidth - 40;\n this.setState({\n selectDomWidth: selectDomWidth\n });\n }\n };\n\n Select.prototype.render = function render() {\n var _classNames,\n _this2 = this;\n\n var _props = this.props,\n clsPrefix = _props.clsPrefix,\n _props$className = _props.className,\n className = _props$className === undefined ? \"\" : _props$className,\n size = _props.size,\n data = _props.data,\n showSearch = _props.showSearch,\n combobox = _props.combobox,\n noWarp = _props.noWarp,\n _props$style = _props.style,\n style = _props$style === undefined ? {} : _props$style;\n var _props2 = this.props,\n _props2$notFoundConte = _props2.notFoundContent,\n notFoundContent = _props2$notFoundConte === undefined ? \"Not Found\" : _props2$notFoundConte,\n optionLabelProp = _props2.optionLabelProp;\n\n\n var cls = (0, _classnames2[\"default\"])((_classNames = {}, _defineProperty(_classNames, clsPrefix + \"-lg\", size === \"lg\"), _defineProperty(_classNames, clsPrefix + \"-sm\", size === \"sm\"), _defineProperty(_classNames, clsPrefix + \"-show-search\", showSearch), _defineProperty(_classNames, clsPrefix + \"-nowarp\", noWarp), _classNames), className);\n\n var antLocale = this.context.antLocale;\n\n if (antLocale && antLocale.Select) {\n notFoundContent = \"notFoundContent\" in this.props ? notFoundContent : antLocale.Select.notFoundContent;\n }\n\n if (combobox) {\n notFoundContent = null;\n // children 带 dom 结构时,无法填入输入框\n optionLabelProp = optionLabelProp || \"value\";\n }\n if (data) {\n data.map(function (item) {\n return _react2[\"default\"].createElement(\n _Option2[\"default\"],\n { value: item.value },\n item.key\n );\n });\n }\n var styles = _extends({}, style);\n if (noWarp && this.state.selectDomWidth) {\n styles['width'] = this.state.selectDomWidth + 40;\n }\n return data ? _react2[\"default\"].createElement(\n _RcSelect2[\"default\"],\n _extends({}, this.props, {\n style: styles,\n className: cls,\n optionLabelProp: optionLabelProp || \"children\",\n notFoundContent: notFoundContent,\n onSelect: this.onSelect,\n onDeselect: this.onDeselect,\n ref: function ref(_ref) {\n return _this2.select = _ref;\n },\n maxTagCount: this.state.maxTagCount\n }),\n data.map(function (item) {\n return _react2[\"default\"].createElement(\n _Option2[\"default\"],\n { key: item.value, value: item.value, disabled: item.disabled ? true : false },\n item.key\n );\n })\n ) : _react2[\"default\"].createElement(_RcSelect2[\"default\"], _extends({}, this.props, {\n style: styles,\n className: cls,\n optionLabelProp: optionLabelProp || \"children\",\n notFoundContent: notFoundContent,\n onSelect: this.onSelect,\n onDeselect: this.onDeselect,\n ref: function ref(_ref2) {\n return _this2.select = _ref2;\n },\n maxTagCount: this.state.maxTagCount\n }));\n };\n\n return Select;\n}(_react.Component);\n\nSelect.context = SelectContext;\nSelect.propTypes = propTypes;\nSelect.defaultProps = defaultProps;\nSelect.Option = _Option2[\"default\"];\nSelect.OptGroup = _OptGroup2[\"default\"];\n\nexports[\"default\"] = Select;\nmodule.exports = exports[\"default\"];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-select/build/Select.js\n// module id = 577\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = require('react-dom');\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _reactLifecyclesCompat = require('react-lifecycles-compat');\n\nvar _tinperBeeCore = require('tinper-bee-core');\n\nvar _classnames2 = require('classnames');\n\nvar _classnames3 = _interopRequireDefault(_classnames2);\n\nvar _beeAnimate = require('bee-animate');\n\nvar _beeAnimate2 = _interopRequireDefault(_beeAnimate);\n\nvar _componentClasses = require('component-classes');\n\nvar _componentClasses2 = _interopRequireDefault(_componentClasses);\n\nvar _rcMenu = require('rc-menu');\n\nvar _MenuItem = require('rc-menu/lib/MenuItem');\n\nvar _MenuItem2 = _interopRequireDefault(_MenuItem);\n\nvar _warning = require('warning');\n\nvar _warning2 = _interopRequireDefault(_warning);\n\nvar _Option = require('./Option');\n\nvar _Option2 = _interopRequireDefault(_Option);\n\nvar _omit = require('omit.js');\n\nvar _omit2 = _interopRequireDefault(_omit);\n\nvar _util = require('./util');\n\nvar _SelectTrigger = require('./SelectTrigger');\n\nvar _SelectTrigger2 = _interopRequireDefault(_SelectTrigger);\n\nvar _PropTypes = require('./PropTypes');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**\n * This source code is quoted from rc-select.\n * homepage: https://github.com/react-component/select\n */\n\n\nfunction noop() {}\n\nfunction chaining() {\n for (var _len = arguments.length, fns = Array(_len), _key = 0; _key < _len; _key++) {\n fns[_key] = arguments[_key];\n }\n\n return function () {\n for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n // eslint-disable-line\n // eslint-disable-line\n for (var i = 0; i < fns.length; i++) {\n if (fns[i] && typeof fns[i] === 'function') {\n fns[i].apply(this, args);\n }\n }\n };\n}\n\nvar Select = function (_React$Component) {\n _inherits(Select, _React$Component);\n\n function Select(props) {\n _classCallCheck(this, Select);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));\n\n _initialiseProps.call(_this);\n\n var optionsInfo = Select.getOptionsInfoFromProps(props);\n _this.state = {\n value: Select.getValueFromProps(props, true), // true: use default value\n inputValue: props.combobox ? Select.getInputValueForCombobox(props, optionsInfo, true // use default value\n ) : '',\n open: props.defaultOpen,\n optionsInfo: optionsInfo,\n // a flag for aviod redundant getOptionsInfoFromProps call\n skipBuildOptionsInfo: true\n };\n\n _this.saveInputRef = (0, _util.saveRef)(_this, 'inputRef');\n _this.saveInputMirrorRef = (0, _util.saveRef)(_this, 'inputMirrorRef');\n _this.saveTopCtrlRef = (0, _util.saveRef)(_this, 'topCtrlRef');\n _this.saveSelectTriggerRef = (0, _util.saveRef)(_this, 'selectTriggerRef');\n _this.saveRootRef = (0, _util.saveRef)(_this, 'rootRef');\n _this.saveSelectionRef = (0, _util.saveRef)(_this, 'selectionRef');\n return _this;\n }\n\n Select.prototype.componentDidMount = function componentDidMount() {\n if (this.props.autoFocus) {\n this.focus();\n }\n };\n\n Select.prototype.componentDidUpdate = function componentDidUpdate() {\n if ((0, _util.isMultipleOrTags)(this.props)) {\n var inputNode = this.getInputDOMNode();\n var mirrorNode = this.getInputMirrorDOMNode();\n if (inputNode.value) {\n inputNode.style.width = '';\n inputNode.style.width = mirrorNode.clientWidth + 'px';\n } else {\n inputNode.style.width = '';\n }\n }\n this.forcePopupAlign();\n };\n\n Select.prototype.componentWillUnmount = function componentWillUnmount() {\n this.clearFocusTime();\n this.clearBlurTime();\n if (this.dropdownContainer) {\n _reactDom2[\"default\"].unmountComponentAtNode(this.dropdownContainer);\n document.body.removeChild(this.dropdownContainer);\n this.dropdownContainer = null;\n }\n };\n\n // combobox ignore\n\n\n Select.prototype.focus = function focus() {\n if ((0, _util.isSingleMode)(this.props)) {\n this.selectionRef.focus();\n } else {\n this.getInputDOMNode().focus();\n }\n };\n\n Select.prototype.blur = function blur() {\n if ((0, _util.isSingleMode)(this.props)) {\n this.selectionRef.blur();\n } else {\n this.getInputDOMNode().blur();\n }\n };\n\n /**\n * noCheck 判断输入的值是否不需要匹配option\n */\n\n\n Select.prototype.renderClear = function renderClear() {\n var _props = this.props,\n prefixCls = _props.prefixCls,\n allowClear = _props.allowClear,\n clearIcon = _props.clearIcon;\n var _state = this.state,\n value = _state.value,\n inputValue = _state.inputValue;\n\n var clear = _react2[\"default\"].createElement(\n 'span',\n _extends({\n key: 'clear',\n className: prefixCls + '-selection-clear',\n onMouseDown: _util.preventDefaultEvent,\n style: _util.UNSELECTABLE_STYLE\n }, _util.UNSELECTABLE_ATTRIBUTE, {\n onClick: this.onClearSelection\n }),\n clearIcon || _react2[\"default\"].createElement('i', { className: prefixCls + '-selection-clear-icon' })\n );\n if (!allowClear) {\n return null;\n }\n if ((0, _util.isCombobox)(this.props)) {\n if (inputValue) {\n return clear;\n }\n return null;\n }\n if (inputValue || value.length) {\n return clear;\n }\n return null;\n };\n\n Select.prototype.render = function render() {\n var _rootCls;\n\n var props = this.props;\n var multiple = (0, _util.isMultipleOrTags)(props);\n var state = this.state;\n var className = props.className,\n disabled = props.disabled,\n prefixCls = props.prefixCls,\n inputIcon = props.inputIcon;\n\n var ctrlNode = this.renderTopControlNode();\n var open = this.state.open;\n\n if (open) {\n this._options = this.renderFilterOptions();\n }\n var realOpen = this.getRealOpenState();\n var options = this._options || [];\n var dataOrAriaAttributeProps = {};\n var customProps = _extends({}, (0, _omit2[\"default\"])(props, ['transitionName', 'choiceTransitionName', 'optionLabelProp', 'notFoundContent', 'clsPrefix', 'prefixCls', 'placeholder', 'dropdownStyle', 'dropdownMenuStyle', 'optionFilterProp', 'showAction', 'tokenSeparators', 'showSearch', 'allowClear', 'enterKeyDown', 'defaultOpen', 'labelInValue', 'defaultActiveFirstOption', 'onSearch', 'onDeselect', 'onInputKeyDown', 'showArrow', 'dropdownMatchSelectWidth', 'autoClearSearchValue', 'searchPlaceholder', 'scrollToEnd', 'filterOption', 'backfill', 'tags', 'combobox', 'supportWrite', 'onChange', 'onFocus', 'onBlur', 'onSelect', 'onSearch', 'onDeselect', 'onInputKeyDown', 'onKeyDown']));\n for (var key in props) {\n if (Object.prototype.hasOwnProperty.call(props, key) && (key.substr(0, 5) === 'data-' || key.substr(0, 5) === 'aria-' || key === 'role')) {\n dataOrAriaAttributeProps[key] = props[key];\n }\n }\n var extraSelectionProps = _extends({}, dataOrAriaAttributeProps);\n if (!(0, _util.isMultipleOrTagsOrCombobox)(props)) {\n extraSelectionProps = _extends({}, extraSelectionProps, {\n onKeyDown: this.onKeyDown,\n tabIndex: props.disabled ? -1 : 0\n });\n }\n var rootCls = (_rootCls = {}, _defineProperty(_rootCls, className, !!className), _defineProperty(_rootCls, prefixCls, 1), _defineProperty(_rootCls, prefixCls + '-open', open), _defineProperty(_rootCls, prefixCls + '-focused', open || !!this._focused), _defineProperty(_rootCls, prefixCls + '-combobox', (0, _util.isCombobox)(props)), _defineProperty(_rootCls, prefixCls + '-disabled', disabled), _defineProperty(_rootCls, prefixCls + '-enabled', !disabled), _defineProperty(_rootCls, prefixCls + '-allow-clear', !!props.allowClear), _defineProperty(_rootCls, prefixCls + '-no-arrow', !props.showArrow), _rootCls);\n return _react2[\"default\"].createElement(\n _SelectTrigger2[\"default\"],\n {\n open: props.open,\n onPopupFocus: this.onPopupFocus,\n onMouseEnter: this.props.onMouseEnter,\n onMouseLeave: this.props.onMouseLeave,\n dropdownAlign: props.dropdownAlign,\n dropdownClassName: props.dropdownClassName,\n dropdownMatchSelectWidth: props.dropdownMatchSelectWidth,\n defaultActiveFirstOption: props.defaultActiveFirstOption,\n dropdownMenuStyle: props.dropdownMenuStyle,\n transitionName: props.transitionName,\n animation: props.animation,\n prefixCls: props.prefixCls,\n dropdownStyle: props.dropdownStyle,\n combobox: props.combobox,\n showSearch: props.showSearch,\n options: options,\n multiple: multiple,\n disabled: disabled,\n visible: realOpen,\n inputValue: state.inputValue,\n value: state.value,\n backfillValue: state.backfillValue,\n firstActiveValue: props.firstActiveValue,\n onDropdownVisibleChange: this.onDropdownVisibleChange,\n getPopupContainer: props.getPopupContainer,\n onMenuSelect: this.onMenuSelect,\n onMenuDeselect: this.onMenuDeselect,\n onPopupScroll: props.onPopupScroll,\n showAction: props.showAction,\n ref: this.saveSelectTriggerRef,\n clsPrefix: props.clsPrefix + '-dropdown',\n menuItemSelectedIcon: props.menuItemSelectedIcon,\n popData: props.popData\n },\n _react2[\"default\"].createElement(\n 'div',\n _extends({}, customProps, {\n id: props.id,\n style: props.style,\n ref: this.saveRootRef,\n onBlur: this.onOuterBlur,\n onFocus: this.onOuterFocus,\n onClick: this.onOuterClick //sp\n , className: (0, _classnames3[\"default\"])(rootCls),\n onMouseDown: this.markMouseDown,\n onMouseUp: this.markMouseLeave,\n onMouseOut: this.markMouseLeave\n }),\n _react2[\"default\"].createElement(\n 'div',\n _extends({\n ref: this.saveSelectionRef,\n key: 'selection',\n className: prefixCls + '-selection\\n ' + prefixCls + '-selection--' + (multiple ? 'multiple' : 'single'),\n role: 'combobox',\n 'aria-autocomplete': 'list',\n 'aria-haspopup': 'true',\n 'aria-expanded': realOpen\n }, extraSelectionProps),\n ctrlNode,\n this.renderClear(),\n !props.showArrow ? null : //sp\n _react2[\"default\"].createElement(\n 'span',\n _extends({\n key: 'arrow',\n className: prefixCls + '-arrow',\n style: _util.UNSELECTABLE_STYLE\n }, _util.UNSELECTABLE_ATTRIBUTE, {\n onClick: this.onArrowClick\n }),\n inputIcon || _react2[\"default\"].createElement('i', { className: prefixCls + '-arrow-icon' })\n )\n )\n )\n );\n };\n\n return Select;\n}(_react2[\"default\"].Component);\n\nSelect.propTypes = _PropTypes.SelectPropTypes;\nSelect.defaultProps = {\n prefixCls: 'u-select',\n defaultOpen: false,\n labelInValue: false,\n defaultActiveFirstOption: true,\n showSearch: true,\n allowClear: false,\n placeholder: '',\n onChange: noop,\n onFocus: noop,\n onBlur: noop,\n onSelect: noop,\n onSearch: noop,\n onDeselect: noop,\n onInputKeyDown: noop,\n showArrow: true,\n dropdownMatchSelectWidth: true,\n dropdownStyle: {},\n dropdownMenuStyle: {},\n optionFilterProp: 'value',\n optionLabelProp: 'value',\n notFoundContent: 'Not Found',\n backfill: false,\n showAction: ['click'],\n tokenSeparators: [],\n autoClearSearchValue: true,\n onKeyDown: noop\n};\n\nSelect.getDerivedStateFromProps = function (nextProps, prevState) {\n var optionsInfo = prevState.skipBuildOptionsInfo ? prevState.optionsInfo : Select.getOptionsInfoFromProps(nextProps, prevState);\n\n var newState = {\n optionsInfo: optionsInfo,\n skipBuildOptionsInfo: false\n };\n\n if ('open' in nextProps) {\n newState.open = nextProps.open;\n }\n\n if ('value' in nextProps) {\n var value = Select.getValueFromProps(nextProps);\n newState.value = value;\n if (nextProps.combobox) {\n newState.inputValue = Select.getInputValueForCombobox(nextProps, optionsInfo);\n }\n }\n return newState;\n};\n\nSelect.getOptionsFromChildren = function (children) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n\n _react2[\"default\"].Children.forEach(children, function (child) {\n if (!child) {\n return;\n }\n if (child && child.type && child.type.isSelectOptGroup) {\n Select.getOptionsFromChildren(child.props.children, options);\n } else {\n options.push(child);\n }\n });\n return options;\n};\n\nSelect.getInputValueForCombobox = function (props, optionsInfo, useDefaultValue) {\n var value = [];\n if ('value' in props && !useDefaultValue) {\n value = (0, _util.toArray)(props.value);\n }\n if ('defaultValue' in props && useDefaultValue) {\n value = (0, _util.toArray)(props.defaultValue);\n }\n if (value.length) {\n value = value[0];\n } else {\n return '';\n }\n var label = value;\n if (props.labelInValue) {\n label = value.label;\n } else if (optionsInfo[(0, _util.getMapKey)(value)]) {\n label = optionsInfo[(0, _util.getMapKey)(value)].label;\n }\n if (label === undefined) {\n label = '';\n }\n return label;\n};\n\nSelect.getLabelFromOption = function (props, option) {\n return (0, _util.getPropValue)(option, props.optionLabelProp);\n};\n\nSelect.getOptionsInfoFromProps = function (props, preState) {\n var options = Select.getOptionsFromChildren(props.children);\n var optionsInfo = {};\n options.forEach(function (option) {\n var singleValue = (0, _util.getValuePropValue)(option);\n optionsInfo[(0, _util.getMapKey)(singleValue)] = {\n option: option,\n value: singleValue,\n label: Select.getLabelFromOption(props, option),\n title: option.props.title\n };\n });\n if (preState) {\n // keep option info in pre state value.\n var oldOptionsInfo = preState.optionsInfo;\n var value = preState.value;\n value.forEach(function (v) {\n var key = (0, _util.getMapKey)(v);\n if (!optionsInfo[key] && oldOptionsInfo[key] !== undefined) {\n optionsInfo[key] = oldOptionsInfo[key];\n }\n });\n }\n return optionsInfo;\n};\n\nSelect.getValueFromProps = function (props, useDefaultValue) {\n var value = [];\n if ('value' in props && !useDefaultValue) {\n value = (0, _util.toArray)(props.value);\n }\n if ('defaultValue' in props && useDefaultValue) {\n value = (0, _util.toArray)(props.defaultValue);\n }\n if (props.labelInValue) {\n value = value.map(function (v) {\n return v.key;\n });\n }\n return value;\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this2 = this;\n\n this.onInputChange = function (event) {\n var tokenSeparators = _this2.props.tokenSeparators;\n\n var val = event.target.value;\n if ((0, _util.isMultipleOrTags)(_this2.props) && tokenSeparators.length && (0, _util.includesSeparators)(val, tokenSeparators)) {\n var nextValue = _this2.getValueByInput(val);\n if (nextValue !== undefined) {\n _this2.fireChange(nextValue);\n }\n _this2.setOpenState(false, true);\n _this2.setInputValue('', false);\n return;\n }\n _this2.setInputValue(val);\n _this2.setState({\n open: true\n });\n if ((0, _util.isCombobox)(_this2.props)) {\n _this2.fireChange([val]);\n }\n };\n\n this.onDropdownVisibleChange = function (open) {\n if (open && !_this2._focused) {\n _this2.clearBlurTime();\n _this2.timeoutFocus();\n _this2._focused = true;\n _this2.updateFocusClassName();\n }\n _this2.setOpenState(open);\n };\n\n this.onKeyDown = function (event) {\n var open = _this2.state.open;\n var _props2 = _this2.props,\n disabled = _props2.disabled,\n onKeyDown = _props2.onKeyDown,\n enterKeyDown = _props2.enterKeyDown;\n\n if (disabled) {\n return;\n }\n var keyCode = event.keyCode;\n if (open && !_this2.getInputDOMNode()) {\n _this2.onInputKeyDown(event);\n } else if (keyCode === _tinperBeeCore.KeyCode.DOWN) {\n if (!open) _this2.setOpenState(true);\n event.preventDefault();\n } else if (keyCode === _tinperBeeCore.KeyCode.ENTER || keyCode === _tinperBeeCore.KeyCode.SPACE) {\n if (!open && enterKeyDown) _this2.setOpenState(true);\n event.preventDefault();\n }\n onKeyDown(event); //sp\n };\n\n this.onInputKeyDown = function (event) {\n var props = _this2.props;\n if (props.disabled) {\n return;\n }\n var state = _this2.state;\n var keyCode = event.keyCode;\n if ((0, _util.isMultipleOrTags)(props) && !event.target.value && keyCode === _tinperBeeCore.KeyCode.BACKSPACE) {\n event.preventDefault();\n var value = state.value;\n\n if (value.length) {\n _this2.removeSelected(value[value.length - 1]);\n }\n return;\n }\n if (keyCode === _tinperBeeCore.KeyCode.DOWN) {\n if (!state.open) {\n _this2.openIfHasChildren();\n event.preventDefault();\n event.stopPropagation();\n return;\n }\n } else if (keyCode === _tinperBeeCore.KeyCode.ENTER && state.open) {\n // Aviod trigger form submit when select item\n // https://github.com/ant-design/ant-design/issues/10861\n event.preventDefault();\n } else if (keyCode === _tinperBeeCore.KeyCode.ESC) {\n if (state.open) {\n _this2.setOpenState(false);\n event.preventDefault();\n event.stopPropagation();\n }\n if (props.showSearch) props.onKeyDown(event); //sp\n return;\n }\n\n if (_this2.getRealOpenState(state)) {\n var menu = _this2.selectTriggerRef.getInnerMenu();\n if (menu && menu.onKeyDown(event, _this2.handleBackfill)) {\n event.preventDefault();\n event.stopPropagation();\n }\n }\n };\n\n this.onMenuSelect = function (_ref) {\n var item = _ref.item;\n\n if (!item) {\n return;\n }\n\n var value = _this2.state.value;\n var props = _this2.props;\n var selectedValue = (0, _util.getValuePropValue)(item);\n var lastValue = value[value.length - 1];\n _this2.fireSelect(selectedValue);\n if ((0, _util.isMultipleOrTags)(props)) {\n if ((0, _util.findIndexInValueBySingleValue)(value, selectedValue) !== -1) {\n return;\n }\n value = value.concat([selectedValue]);\n } else {\n if (lastValue !== undefined && lastValue === selectedValue && selectedValue !== _this2.state.backfillValue) {\n _this2.setOpenState(false, true);\n return;\n }\n value = [selectedValue];\n _this2.setOpenState(false, true);\n }\n _this2.fireChange(value);\n var inputValue = void 0;\n if ((0, _util.isCombobox)(props)) {\n inputValue = (0, _util.getPropValue)(item, props.optionLabelProp);\n } else {\n inputValue = '';\n }\n if (props.autoClearSearchValue) {\n _this2.setInputValue(inputValue, false);\n }\n };\n\n this.onMenuDeselect = function (_ref2) {\n var item = _ref2.item,\n domEvent = _ref2.domEvent;\n\n if (domEvent.type === 'keydown' && domEvent.keyCode === _tinperBeeCore.KeyCode.ENTER) {\n _this2.removeSelected((0, _util.getValuePropValue)(item));\n return;\n }\n if (domEvent.type === 'click') {\n _this2.removeSelected((0, _util.getValuePropValue)(item));\n }\n var props = _this2.props;\n\n if (props.autoClearSearchValue) {\n _this2.setInputValue('', false);\n }\n };\n\n this.onArrowClick = function (e) {\n e.stopPropagation();\n e.preventDefault();\n _this2.props.onFocus(_this2.state.value);\n if (!_this2.props.disabled) {\n _this2.setOpenState(!_this2.state.open, !_this2.state.open);\n }\n };\n\n this.onPlaceholderClick = function () {\n if (_this2.getInputDOMNode()) {\n _this2.getInputDOMNode().focus();\n }\n };\n\n this.onOuterFocus = function (e) {\n if (_this2.props.disabled) {\n e.preventDefault();\n return;\n }\n _this2.clearBlurTime();\n if (!(0, _util.isMultipleOrTagsOrCombobox)(_this2.props) && e.target === _this2.getInputDOMNode()) {\n return;\n }\n if (_this2._focused) {\n return;\n }\n _this2._focused = true;\n _this2.updateFocusClassName();\n if (!_this2._mouseDown) {\n _this2.timeoutFocus();\n }\n };\n\n this.onPopupFocus = function () {\n // fix ie scrollbar, focus element again\n _this2.maybeFocus(true, true);\n };\n\n this.onOuterBlur = function (e) {\n if (_this2.props.disabled) {\n e.preventDefault();\n return;\n }\n _this2.blurTimer = setTimeout(function () {\n _this2._focused = false;\n _this2.updateFocusClassName();\n var props = _this2.props;\n var value = _this2.state.value;\n var inputValue = _this2.state.inputValue;\n\n if ((0, _util.isSingleMode)(props) && props.showSearch && inputValue && props.defaultActiveFirstOption) {\n var options = _this2._options || [];\n if (options.length) {\n var firstOption = (0, _util.findFirstMenuItem)(options);\n if (firstOption) {\n value = [(0, _util.getValuePropValue)(firstOption)];\n _this2.fireChange(value);\n }\n if (props.showSearch && props.supportWrite) {\n //查询时是否支持自定义输入\n value = [inputValue];\n _this2.fireChange(value, true);\n }\n }\n } else if ((0, _util.isMultipleOrTags)(props) && inputValue) {\n if (_this2._mouseDown) {\n // need update dropmenu when not blur\n _this2.setInputValue('');\n } else {\n // why not use setState?\n _this2.state.inputValue = _this2.getInputDOMNode().value = '';\n }\n\n value = _this2.getValueByInput(inputValue);\n if (value !== undefined) {\n _this2.fireChange(value);\n }\n }\n\n // if click the rest space of Select in multiple mode\n if ((0, _util.isMultipleOrTags)(props) && _this2._mouseDown) {\n _this2.maybeFocus(true, true);\n _this2._mouseDown = false;\n return;\n }\n _this2.setOpenState(false);\n props.onBlur(_this2.getVLForOnChange(value));\n }, 10);\n };\n\n this.onClearSelection = function (event) {\n var props = _this2.props;\n var state = _this2.state;\n if (props.disabled) {\n return;\n }\n var inputValue = state.inputValue,\n value = state.value;\n\n event.stopPropagation();\n if (inputValue || value.length) {\n if (value.length) {\n _this2.fireChange([]);\n }\n _this2.setOpenState(false, true);\n if (inputValue) {\n _this2.setInputValue('');\n }\n }\n };\n\n this.onChoiceAnimationLeave = function () {\n _this2.forcePopupAlign();\n };\n\n this.getOptionInfoBySingleValue = function (value, optionsInfo) {\n var info = void 0;\n optionsInfo = optionsInfo || _this2.state.optionsInfo;\n if (optionsInfo[(0, _util.getMapKey)(value)]) {\n info = optionsInfo[(0, _util.getMapKey)(value)];\n }\n if (info) {\n return info;\n }\n var defaultLabel = value;\n if (_this2.props.labelInValue) {\n var label = (0, _util.getLabelFromPropsValue)(_this2.props.value, value);\n if (label !== undefined) {\n defaultLabel = label;\n }\n }\n var defaultInfo = {\n option: _react2[\"default\"].createElement(\n _Option2[\"default\"],\n { value: value, key: value },\n value\n ),\n value: value,\n label: defaultLabel\n };\n return defaultInfo;\n };\n\n this.getOptionBySingleValue = function (value) {\n var _getOptionInfoBySingl = _this2.getOptionInfoBySingleValue(value),\n option = _getOptionInfoBySingl.option;\n\n return option;\n };\n\n this.getOptionsBySingleValue = function (values) {\n return values.map(function (value) {\n return _this2.getOptionBySingleValue(value);\n });\n };\n\n this.getValueByLabel = function (label) {\n if (label === undefined) {\n return null;\n }\n var value = null;\n Object.keys(_this2.state.optionsInfo).forEach(function (key) {\n var info = _this2.state.optionsInfo[key];\n if ((0, _util.toArray)(info.label).join('') === label) {\n value = info.value;\n }\n });\n return value;\n };\n\n this.getVLBySingleValue = function (value) {\n if (_this2.props.labelInValue) {\n return {\n key: value,\n label: _this2.getLabelBySingleValue(value)\n };\n }\n return value;\n };\n\n this.getVLForOnChange = function (vls_) {\n var vls = vls_;\n if (vls !== undefined) {\n if (!_this2.props.labelInValue) {\n vls = vls.map(function (v) {\n return v;\n });\n } else {\n vls = vls.map(function (vl) {\n return {\n key: vl,\n label: _this2.getLabelBySingleValue(vl)\n };\n });\n }\n return (0, _util.isMultipleOrTags)(_this2.props) ? vls : vls[0];\n }\n return vls;\n };\n\n this.getLabelBySingleValue = function (value, optionsInfo) {\n var _getOptionInfoBySingl2 = _this2.getOptionInfoBySingleValue(value, optionsInfo),\n label = _getOptionInfoBySingl2.label;\n\n return label;\n };\n\n this.getDropdownContainer = function () {\n if (!_this2.dropdownContainer) {\n _this2.dropdownContainer = document.createElement('div');\n document.body.appendChild(_this2.dropdownContainer);\n }\n return _this2.dropdownContainer;\n };\n\n this.getPlaceholderElement = function () {\n var props = _this2.props,\n state = _this2.state;\n\n var hidden = false;\n if (state.inputValue) {\n hidden = true;\n }\n if (state.value.length) {\n hidden = true;\n }\n if ((0, _util.isCombobox)(props) && state.value.length === 1 && !state.value[0]) {\n hidden = false;\n }\n var placeholder = props.placeholder;\n if (placeholder) {\n return _react2[\"default\"].createElement(\n 'div',\n _extends({\n onMouseDown: _util.preventDefaultEvent,\n style: _extends({\n display: hidden ? 'none' : 'block'\n }, _util.UNSELECTABLE_STYLE)\n }, _util.UNSELECTABLE_ATTRIBUTE, {\n onClick: _this2.onPlaceholderClick,\n className: props.prefixCls + '-selection-placeholder'\n }),\n placeholder\n );\n }\n return null;\n };\n\n this.getInputElement = function () {\n var props = _this2.props;\n var inputElement = props.getInputElement ? props.getInputElement() : _react2[\"default\"].createElement('input', { id: props.id, autoComplete: 'off' });\n var inputCls = (0, _classnames3[\"default\"])(inputElement.props.className, _defineProperty({}, props.prefixCls + '-search-field', true));\n // https://github.com/ant-design/ant-design/issues/4992#issuecomment-281542159\n // Add space to the end of the inputValue as the width measurement tolerance\n return _react2[\"default\"].createElement(\n 'div',\n { className: props.prefixCls + '-search-field-wrap' },\n _react2[\"default\"].cloneElement(inputElement, {\n ref: _this2.saveInputRef,\n onChange: _this2.onInputChange,\n onKeyDown: chaining(_this2.onInputKeyDown, inputElement.props.onKeyDown, _this2.props.onInputKeyDown),\n value: _this2.state.inputValue,\n disabled: props.disabled,\n className: inputCls\n }),\n _react2[\"default\"].createElement(\n 'span',\n {\n ref: _this2.saveInputMirrorRef,\n className: props.prefixCls + '-search-field-mirror'\n },\n _this2.state.inputValue,\n '\\xA0'\n )\n );\n };\n\n this.getInputDOMNode = function () {\n return _this2.topCtrlRef ? _this2.topCtrlRef.querySelector('input,textarea,div[contentEditable]') : _this2.inputRef;\n };\n\n this.getInputMirrorDOMNode = function () {\n return _this2.inputMirrorRef;\n };\n\n this.getPopupDOMNode = function () {\n return _this2.selectTriggerRef.getPopupDOMNode();\n };\n\n this.getPopupMenuComponent = function () {\n return _this2.selectTriggerRef.getInnerMenu();\n };\n\n this.setOpenState = function (open, needFocus) {\n var props = _this2.props,\n state = _this2.state;\n\n if (state.open === open) {\n _this2.maybeFocus(open, needFocus);\n return;\n }\n\n if (_this2.props.onDropdownVisibleChange) {\n _this2.props.onDropdownVisibleChange(open);\n }\n\n var nextState = {\n open: open,\n backfillValue: undefined\n };\n // clear search input value when open is false in singleMode.\n if (!open && (0, _util.isSingleMode)(props) && props.showSearch) {\n _this2.setInputValue('', false);\n }\n if (!open) {\n _this2.maybeFocus(open, needFocus);\n }\n _this2.setState(nextState, function () {\n if (open) {\n _this2.maybeFocus(open, needFocus);\n }\n });\n };\n\n this.setInputValue = function (inputValue) {\n var fireSearch = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n\n if (inputValue !== _this2.state.inputValue) {\n _this2.setState({\n inputValue: inputValue\n }, _this2.forcePopupAlign);\n if (fireSearch) {\n _this2.props.onSearch(inputValue);\n }\n }\n };\n\n this.getValueByInput = function (string) {\n var _props3 = _this2.props,\n multiple = _props3.multiple,\n tokenSeparators = _props3.tokenSeparators;\n\n var nextValue = _this2.state.value;\n var hasNewValue = false;\n (0, _util.splitBySeparators)(string, tokenSeparators).forEach(function (label) {\n var selectedValue = [label];\n if (multiple) {\n var value = _this2.getValueByLabel(label);\n if (value && (0, _util.findIndexInValueBySingleValue)(nextValue, value) === -1) {\n nextValue = nextValue.concat(value);\n hasNewValue = true;\n _this2.fireSelect(value);\n }\n } else {\n // tag\n if ((0, _util.findIndexInValueBySingleValue)(nextValue, label) === -1) {\n nextValue = nextValue.concat(selectedValue);\n hasNewValue = true;\n _this2.fireSelect(label);\n }\n }\n });\n return hasNewValue ? nextValue : undefined;\n };\n\n this.getRealOpenState = function (state) {\n var _open = _this2.props.open;\n\n if (typeof _open === 'boolean') {\n return _open;\n }\n var open = (state || _this2.state).open;\n var options = _this2._options || [];\n if ((0, _util.isMultipleOrTagsOrCombobox)(_this2.props) || !_this2.props.showSearch) {\n if (open && !options.length) {\n open = false;\n }\n }\n return open;\n };\n\n this.markMouseDown = function () {\n _this2._mouseDown = true;\n };\n\n this.markMouseLeave = function () {\n _this2._mouseDown = false;\n };\n\n this.handleBackfill = function (item) {\n if (!_this2.props.backfill || !((0, _util.isSingleMode)(_this2.props) || (0, _util.isCombobox)(_this2.props))) {\n return;\n }\n\n var key = (0, _util.getValuePropValue)(item);\n\n if ((0, _util.isCombobox)(_this2.props)) {\n _this2.setInputValue(key, false);\n }\n\n _this2.setState({\n value: [key],\n backfillValue: key\n });\n };\n\n this.filterOption = function (input, child) {\n var defaultFilter = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _util.defaultFilterFn;\n var value = _this2.state.value;\n\n var lastValue = value[value.length - 1];\n if (!input || lastValue && lastValue === _this2.state.backfillValue) {\n return true;\n }\n var filterFn = _this2.props.filterOption;\n if ('filterOption' in _this2.props) {\n if (_this2.props.filterOption === true) {\n filterFn = defaultFilter;\n }\n } else {\n filterFn = defaultFilter;\n }\n\n if (!filterFn) {\n return true;\n } else if (typeof filterFn === 'function') {\n return filterFn.call(_this2, input, child);\n } else if (child.props.disabled) {\n return false;\n }\n return true;\n };\n\n this.timeoutFocus = function () {\n if (_this2.focusTimer) {\n _this2.clearFocusTime();\n }\n _this2.focusTimer = setTimeout(function () {\n _this2.props.onFocus();\n }, 10);\n };\n\n this.clearFocusTime = function () {\n if (_this2.focusTimer) {\n clearTimeout(_this2.focusTimer);\n _this2.focusTimer = null;\n }\n };\n\n this.clearBlurTime = function () {\n if (_this2.blurTimer) {\n clearTimeout(_this2.blurTimer);\n _this2.blurTimer = null;\n }\n };\n\n this.updateFocusClassName = function () {\n var rootRef = _this2.rootRef,\n props = _this2.props;\n // avoid setState and its side effect\n\n if (_this2._focused) {\n (0, _componentClasses2[\"default\"])(rootRef).add(props.prefixCls + '-focused');\n } else {\n (0, _componentClasses2[\"default\"])(rootRef).remove(props.prefixCls + '-focused');\n }\n };\n\n this.maybeFocus = function (open, needFocus) {\n if (needFocus || open) {\n var input = _this2.getInputDOMNode();\n var _document = document,\n activeElement = _document.activeElement;\n\n if (input && (open || (0, _util.isMultipleOrTagsOrCombobox)(_this2.props))) {\n if (activeElement !== input) {\n input.focus();\n _this2._focused = true;\n }\n } else if (activeElement !== _this2.selectionRef) {\n _this2.selectionRef.focus();\n _this2._focused = true;\n }\n }\n };\n\n this.removeSelected = function (selectedKey, e) {\n var props = _this2.props;\n if (props.disabled || _this2.isChildDisabled(selectedKey)) {\n return;\n }\n\n // Do not trigger Trigger popup\n if (e && e.stopPropagation) {\n e.stopPropagation();\n }\n\n var value = _this2.state.value.filter(function (singleValue) {\n return singleValue !== selectedKey;\n });\n var canMultiple = (0, _util.isMultipleOrTags)(props);\n\n if (canMultiple) {\n var event = selectedKey;\n if (props.labelInValue) {\n event = {\n key: selectedKey,\n label: _this2.getLabelBySingleValue(selectedKey)\n };\n }\n props.onDeselect(event, _this2.getOptionBySingleValue(selectedKey));\n }\n _this2.fireChange(value);\n };\n\n this.openIfHasChildren = function () {\n var props = _this2.props;\n if (_react2[\"default\"].Children.count(props.children) || (0, _util.isSingleMode)(props)) {\n _this2.setOpenState(true);\n }\n };\n\n this.fireSelect = function (value) {\n _this2.props.onSelect(_this2.getVLBySingleValue(value), _this2.getOptionBySingleValue(value));\n };\n\n this.fireChange = function (value, noCheck) {\n var props = _this2.props;\n if (!('value' in props)) {\n _this2.setState({\n value: value\n }, _this2.forcePopupAlign);\n }\n if (noCheck) {\n props.onChange(value, null);\n } else {\n var vls = _this2.getVLForOnChange(value);\n var options = _this2.getOptionsBySingleValue(value);\n props.onChange(vls, (0, _util.isMultipleOrTags)(_this2.props) ? options : options[0]);\n }\n };\n\n this.isChildDisabled = function (key) {\n return (0, _tinperBeeCore.toArray)(_this2.props.children).some(function (child) {\n var childValue = (0, _util.getValuePropValue)(child);\n return childValue === key && child.props && child.props.disabled;\n });\n };\n\n this.forcePopupAlign = function () {\n if (!_this2.state.open) {\n return;\n }\n if (_this2.selectTriggerRef && _this2.selectTriggerRef.triggerRef && _this2.selectTriggerRef.triggerRef.forcePopupAlign) {\n if (typeof _this2.selectTriggerRef.triggerRef.forcePopupAlign == 'function') {\n _this2.selectTriggerRef.triggerRef.forcePopupAlign();\n }\n }\n };\n\n this.renderFilterOptions = function () {\n var inputValue = _this2.state.inputValue;\n var _props4 = _this2.props,\n children = _props4.children,\n tags = _props4.tags,\n filterOption = _props4.filterOption,\n notFoundContent = _props4.notFoundContent;\n\n var menuItems = [];\n var childrenKeys = [];\n var options = _this2.renderFilterOptionsFromChildren(children, childrenKeys, menuItems);\n if (tags) {\n // tags value must be string\n var value = _this2.state.value;\n value = value.filter(function (singleValue) {\n return childrenKeys.indexOf(singleValue) === -1 && (!inputValue || String(singleValue).indexOf(String(inputValue)) > -1);\n });\n value.forEach(function (singleValue) {\n var key = singleValue;\n var menuItem = _react2[\"default\"].createElement(\n _MenuItem2[\"default\"],\n {\n style: _util.UNSELECTABLE_STYLE,\n role: 'option',\n attribute: _util.UNSELECTABLE_ATTRIBUTE,\n value: key,\n key: key\n },\n key\n );\n options.push(menuItem);\n menuItems.push(menuItem);\n });\n if (inputValue) {\n var notFindInputItem = menuItems.every(function (option) {\n // this.filterOption return true has two meaning,\n // 1, some one exists after filtering\n // 2, filterOption is set to false\n // condition 2 does not mean the option has same value with inputValue\n var filterFn = function filterFn() {\n return (0, _util.getValuePropValue)(option) === inputValue;\n };\n if (filterOption !== false) {\n return !_this2.filterOption.call(_this2, inputValue, option, filterFn);\n }\n return !filterFn();\n });\n if (notFindInputItem) {\n options.unshift(_react2[\"default\"].createElement(\n _MenuItem2[\"default\"],\n {\n style: _util.UNSELECTABLE_STYLE,\n role: 'option',\n attribute: _util.UNSELECTABLE_ATTRIBUTE,\n value: inputValue,\n key: inputValue\n },\n inputValue\n ));\n }\n }\n }\n\n if (!options.length && notFoundContent) {\n options = [_react2[\"default\"].createElement(\n _MenuItem2[\"default\"],\n {\n style: _util.UNSELECTABLE_STYLE,\n attribute: _util.UNSELECTABLE_ATTRIBUTE,\n disabled: true,\n role: 'option',\n value: 'NOT_FOUND',\n key: 'NOT_FOUND'\n },\n notFoundContent\n )];\n }\n return options;\n };\n\n this.renderFilterOptionsFromChildren = function (children, childrenKeys, menuItems) {\n var sel = [];\n var props = _this2.props;\n var inputValue = _this2.state.inputValue;\n\n var tags = props.tags;\n _react2[\"default\"].Children.forEach(children, function (child) {\n if (!child) {\n return;\n }\n if (child.type.isSelectOptGroup) {\n var innerItems = _this2.renderFilterOptionsFromChildren(child.props.children, childrenKeys, menuItems);\n if (innerItems.length) {\n var label = child.props.label;\n var key = child.key;\n if (!key && typeof label === 'string') {\n key = label;\n } else if (!label && key) {\n label = key;\n }\n sel.push(_react2[\"default\"].createElement(\n _rcMenu.ItemGroup,\n { key: key, title: label },\n innerItems\n ));\n }\n return;\n }\n\n (0, _warning2[\"default\"])(child.type.isSelectOption, 'the children of `Select` should be `Select.Option` or `Select.OptGroup`, ' + ('instead of `' + (child.type.name || child.type.displayName || child.type) + '`.'));\n\n var childValue = (0, _util.getValuePropValue)(child);\n\n (0, _util.validateOptionValue)(childValue, _this2.props);\n\n if (_this2.filterOption(inputValue, child)) {\n var menuItem = _react2[\"default\"].createElement(_MenuItem2[\"default\"], _extends({\n style: _util.UNSELECTABLE_STYLE,\n attribute: _util.UNSELECTABLE_ATTRIBUTE,\n value: childValue,\n key: childValue,\n role: 'option'\n }, child.props));\n sel.push(menuItem);\n menuItems.push(menuItem);\n }\n\n if (tags) {\n childrenKeys.push(childValue);\n }\n });\n\n return sel;\n };\n\n this.renderTopControlNode = function () {\n var _state2 = _this2.state,\n value = _state2.value,\n open = _state2.open,\n inputValue = _state2.inputValue;\n\n var props = _this2.props;\n var choiceTransitionName = props.choiceTransitionName,\n prefixCls = props.prefixCls,\n maxTagTextLength = props.maxTagTextLength,\n maxTagCount = props.maxTagCount,\n maxTagPlaceholder = props.maxTagPlaceholder,\n showSearch = props.showSearch,\n removeIcon = props.removeIcon;\n\n var className = prefixCls + '-selection-rendered';\n // search input is inside topControlNode in single, multiple & combobox. 2016/04/13\n var innerNode = null;\n if ((0, _util.isSingleMode)(props)) {\n var selectedValue = null;\n if (value.length) {\n var showSelectedValue = false;\n var opacity = 1;\n if (!showSearch) {\n showSelectedValue = true;\n } else if (open) {\n showSelectedValue = !inputValue;\n if (showSelectedValue) {\n opacity = 0.4;\n }\n } else {\n showSelectedValue = true;\n }\n var singleValue = value[0];\n\n var _getOptionInfoBySingl3 = _this2.getOptionInfoBySingleValue(singleValue),\n label = _getOptionInfoBySingl3.label,\n title = _getOptionInfoBySingl3.title;\n\n selectedValue = _react2[\"default\"].createElement(\n 'div',\n {\n key: 'value',\n className: prefixCls + '-selection-selected-value',\n title: (0, _util.toTitle)(title || label),\n style: {\n display: showSelectedValue ? 'block' : 'none',\n opacity: opacity\n }\n },\n label\n );\n }\n if (!showSearch) {\n innerNode = [selectedValue];\n } else {\n innerNode = [selectedValue, _react2[\"default\"].createElement(\n 'div',\n {\n className: prefixCls + '-search ' + prefixCls + '-search--inline',\n key: 'input',\n style: {\n display: open ? 'block' : 'none'\n }\n },\n _this2.getInputElement()\n )];\n }\n } else {\n var selectedValueNodes = [];\n var limitedCountValue = value;\n var maxTagPlaceholderEl = void 0;\n if (maxTagCount !== undefined && value.length > maxTagCount) {\n limitedCountValue = limitedCountValue.slice(0, maxTagCount);\n var omittedValues = _this2.getVLForOnChange(value.slice(maxTagCount, value.length));\n var content = '+ ' + (value.length - maxTagCount) + ' ...';\n if (maxTagPlaceholder) {\n content = typeof maxTagPlaceholder === 'function' ? maxTagPlaceholder(omittedValues) : maxTagPlaceholder;\n }\n maxTagPlaceholderEl = _react2[\"default\"].createElement(\n 'li',\n _extends({\n style: _util.UNSELECTABLE_STYLE\n }, _util.UNSELECTABLE_ATTRIBUTE, {\n onMouseDown: _util.preventDefaultEvent,\n className: prefixCls + '-selection-choice ' + prefixCls + '-selection-choice-disabled',\n key: 'maxTagPlaceholder',\n title: (0, _util.toTitle)(content)\n }),\n _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-selection-choice-content' },\n content\n )\n );\n }\n if ((0, _util.isMultipleOrTags)(props)) {\n selectedValueNodes = limitedCountValue.map(function (singleValue, index) {\n var key = singleValue || index;\n var info = _this2.getOptionInfoBySingleValue(singleValue);\n var content = info.label;\n var title = info.title || content;\n if (maxTagTextLength && typeof content === 'string' && content.length > maxTagTextLength) {\n content = content.slice(0, maxTagTextLength) + '...';\n }\n var disabled = _this2.isChildDisabled(singleValue);\n var choiceClassName = disabled ? prefixCls + '-selection-choice ' + prefixCls + '-selection-choice-disabled' : prefixCls + '-selection-choice';\n return _react2[\"default\"].createElement(\n 'li',\n _extends({\n style: _util.UNSELECTABLE_STYLE\n }, _util.UNSELECTABLE_ATTRIBUTE, {\n onMouseDown: _util.preventDefaultEvent,\n className: choiceClassName,\n key: key,\n title: (0, _util.toTitle)(title)\n }),\n _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-selection-choice-content' },\n content\n ),\n disabled ? null : _react2[\"default\"].createElement(\n 'span',\n {\n onClick: function onClick(event) {\n _this2.removeSelected(singleValue, event);\n },\n className: prefixCls + '-selection-choice-remove'\n },\n removeIcon || _react2[\"default\"].createElement(\n 'i',\n { className: prefixCls + '-selection-choice-remove-icon' },\n '\\xD7'\n )\n )\n );\n });\n }\n if (maxTagPlaceholderEl) {\n selectedValueNodes.push(maxTagPlaceholderEl);\n }\n selectedValueNodes.push(_react2[\"default\"].createElement(\n 'li',\n {\n className: prefixCls + '-search ' + prefixCls + '-search--inline',\n key: '-input'\n },\n _this2.getInputElement()\n ));\n\n if ((0, _util.isMultipleOrTags)(props) && choiceTransitionName) {\n innerNode = _react2[\"default\"].createElement(\n _beeAnimate2[\"default\"],\n {\n onLeave: _this2.onChoiceAnimationLeave,\n component: 'ul',\n transitionName: choiceTransitionName\n },\n selectedValueNodes\n );\n } else {\n innerNode = _react2[\"default\"].createElement(\n 'ul',\n null,\n selectedValueNodes\n );\n }\n }\n return _react2[\"default\"].createElement(\n 'div',\n { className: className, ref: _this2.saveTopCtrlRef },\n _this2.getPlaceholderElement(),\n innerNode\n );\n };\n\n this.onOuterClick = function (event) {\n //sp:在不能输入的情况下,点击事件触发focus\n _this2._focused = true;\n _this2.updateFocusClassName();\n _this2.props.onFocus(_this2.state.value);\n };\n};\n\nSelect.displayName = 'Select';\n\n(0, _reactLifecyclesCompat.polyfill)(Select);\n\nexports[\"default\"] = Select;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-select/build/RcSelect.js\n// module id = 578\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\nexports.Divider = exports.ItemGroup = exports.MenuItemGroup = exports.MenuItem = exports.Item = exports.SubMenu = undefined;\n\nvar _Menu = require('./Menu');\n\nvar _Menu2 = _interopRequireDefault(_Menu);\n\nvar _SubMenu = require('./SubMenu');\n\nvar _SubMenu2 = _interopRequireDefault(_SubMenu);\n\nvar _MenuItem = require('./MenuItem');\n\nvar _MenuItem2 = _interopRequireDefault(_MenuItem);\n\nvar _MenuItemGroup = require('./MenuItemGroup');\n\nvar _MenuItemGroup2 = _interopRequireDefault(_MenuItemGroup);\n\nvar _Divider = require('./Divider');\n\nvar _Divider2 = _interopRequireDefault(_Divider);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports.SubMenu = _SubMenu2['default'];\nexports.Item = _MenuItem2['default'];\nexports.MenuItem = _MenuItem2['default'];\nexports.MenuItemGroup = _MenuItemGroup2['default'];\nexports.ItemGroup = _MenuItemGroup2['default'];\nexports.Divider = _Divider2['default'];\nexports['default'] = _Menu2['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rc-menu/lib/index.js\n// module id = 579\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');\n\nvar _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _miniStore = require('mini-store');\n\nvar _SubPopupMenu = require('./SubPopupMenu');\n\nvar _SubPopupMenu2 = _interopRequireDefault(_SubPopupMenu);\n\nvar _util = require('./util');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar Menu = function (_React$Component) {\n (0, _inherits3['default'])(Menu, _React$Component);\n\n function Menu(props) {\n (0, _classCallCheck3['default'])(this, Menu);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props));\n\n _initialiseProps.call(_this);\n\n _this.isRootMenu = true;\n\n var selectedKeys = props.defaultSelectedKeys;\n var openKeys = props.defaultOpenKeys;\n if ('selectedKeys' in props) {\n selectedKeys = props.selectedKeys || [];\n }\n if ('openKeys' in props) {\n openKeys = props.openKeys || [];\n }\n\n _this.store = (0, _miniStore.create)({\n selectedKeys: selectedKeys,\n openKeys: openKeys,\n activeKey: { '0-menu-': (0, _SubPopupMenu.getActiveKey)(props, props.activeKey) }\n });\n return _this;\n }\n\n Menu.prototype.componentDidMount = function componentDidMount() {\n this.updateMiniStore();\n };\n\n Menu.prototype.componentDidUpdate = function componentDidUpdate() {\n this.updateMiniStore();\n };\n\n // onKeyDown needs to be exposed as a instance method\n // e.g., in rc-select, we need to navigate menu item while\n // current active item is rc-select input box rather than the menu itself\n\n\n Menu.prototype.updateMiniStore = function updateMiniStore() {\n if ('selectedKeys' in this.props) {\n this.store.setState({\n selectedKeys: this.props.selectedKeys || []\n });\n }\n if ('openKeys' in this.props) {\n this.store.setState({\n openKeys: this.props.openKeys || []\n });\n }\n };\n\n Menu.prototype.render = function render() {\n var _this2 = this;\n\n var props = (0, _objectWithoutProperties3['default'])(this.props, []);\n\n props.className += ' ' + props.prefixCls + '-root';\n props = (0, _extends3['default'])({}, props, {\n onClick: this.onClick,\n onOpenChange: this.onOpenChange,\n onDeselect: this.onDeselect,\n onSelect: this.onSelect,\n openTransitionName: this.getOpenTransitionName(),\n parentMenu: this\n });\n return _react2['default'].createElement(\n _miniStore.Provider,\n { store: this.store },\n _react2['default'].createElement(\n _SubPopupMenu2['default'],\n (0, _extends3['default'])({}, props, { ref: function ref(c) {\n return _this2.innerMenu = c;\n } }),\n this.props.children\n )\n );\n };\n\n return Menu;\n}(_react2['default'].Component);\n\nMenu.propTypes = {\n defaultSelectedKeys: _propTypes2['default'].arrayOf(_propTypes2['default'].string),\n defaultActiveFirst: _propTypes2['default'].bool,\n selectedKeys: _propTypes2['default'].arrayOf(_propTypes2['default'].string),\n defaultOpenKeys: _propTypes2['default'].arrayOf(_propTypes2['default'].string),\n openKeys: _propTypes2['default'].arrayOf(_propTypes2['default'].string),\n mode: _propTypes2['default'].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']),\n getPopupContainer: _propTypes2['default'].func,\n onClick: _propTypes2['default'].func,\n onSelect: _propTypes2['default'].func,\n onDeselect: _propTypes2['default'].func,\n onDestroy: _propTypes2['default'].func,\n openTransitionName: _propTypes2['default'].string,\n openAnimation: _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].object]),\n subMenuOpenDelay: _propTypes2['default'].number,\n subMenuCloseDelay: _propTypes2['default'].number,\n forceSubMenuRender: _propTypes2['default'].bool,\n triggerSubMenuAction: _propTypes2['default'].string,\n level: _propTypes2['default'].number,\n selectable: _propTypes2['default'].bool,\n multiple: _propTypes2['default'].bool,\n children: _propTypes2['default'].any,\n className: _propTypes2['default'].string,\n style: _propTypes2['default'].object,\n activeKey: _propTypes2['default'].string,\n prefixCls: _propTypes2['default'].string,\n builtinPlacements: _propTypes2['default'].object,\n itemIcon: _propTypes2['default'].oneOfType([_propTypes2['default'].func, _propTypes2['default'].node]),\n expandIcon: _propTypes2['default'].oneOfType([_propTypes2['default'].func, _propTypes2['default'].node]),\n overflowedIndicator: _propTypes2['default'].node\n};\nMenu.defaultProps = {\n selectable: true,\n onClick: _util.noop,\n onSelect: _util.noop,\n onOpenChange: _util.noop,\n onDeselect: _util.noop,\n defaultSelectedKeys: [],\n defaultOpenKeys: [],\n subMenuOpenDelay: 0.1,\n subMenuCloseDelay: 0.1,\n triggerSubMenuAction: 'hover',\n prefixCls: 'rc-menu',\n className: '',\n mode: 'vertical',\n style: {},\n builtinPlacements: {},\n overflowedIndicator: _react2['default'].createElement(\n 'span',\n null,\n '\\xB7\\xB7\\xB7'\n )\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this3 = this;\n\n this.onSelect = function (selectInfo) {\n var props = _this3.props;\n if (props.selectable) {\n // root menu\n var selectedKeys = _this3.store.getState().selectedKeys;\n var selectedKey = selectInfo.key;\n if (props.multiple) {\n selectedKeys = selectedKeys.concat([selectedKey]);\n } else {\n selectedKeys = [selectedKey];\n }\n if (!('selectedKeys' in props)) {\n _this3.store.setState({\n selectedKeys: selectedKeys\n });\n }\n props.onSelect((0, _extends3['default'])({}, selectInfo, {\n selectedKeys: selectedKeys\n }));\n }\n };\n\n this.onClick = function (e) {\n _this3.props.onClick(e);\n };\n\n this.onKeyDown = function (e, callback) {\n _this3.innerMenu.getWrappedInstance().onKeyDown(e, callback);\n };\n\n this.onOpenChange = function (event) {\n var props = _this3.props;\n var openKeys = _this3.store.getState().openKeys.concat();\n var changed = false;\n var processSingle = function processSingle(e) {\n var oneChanged = false;\n if (e.open) {\n oneChanged = openKeys.indexOf(e.key) === -1;\n if (oneChanged) {\n openKeys.push(e.key);\n }\n } else {\n var index = openKeys.indexOf(e.key);\n oneChanged = index !== -1;\n if (oneChanged) {\n openKeys.splice(index, 1);\n }\n }\n changed = changed || oneChanged;\n };\n if (Array.isArray(event)) {\n // batch change call\n event.forEach(processSingle);\n } else {\n processSingle(event);\n }\n if (changed) {\n if (!('openKeys' in _this3.props)) {\n _this3.store.setState({ openKeys: openKeys });\n }\n props.onOpenChange(openKeys);\n }\n };\n\n this.onDeselect = function (selectInfo) {\n var props = _this3.props;\n if (props.selectable) {\n var selectedKeys = _this3.store.getState().selectedKeys.concat();\n var selectedKey = selectInfo.key;\n var index = selectedKeys.indexOf(selectedKey);\n if (index !== -1) {\n selectedKeys.splice(index, 1);\n }\n if (!('selectedKeys' in props)) {\n _this3.store.setState({\n selectedKeys: selectedKeys\n });\n }\n props.onDeselect((0, _extends3['default'])({}, selectInfo, {\n selectedKeys: selectedKeys\n }));\n }\n };\n\n this.getOpenTransitionName = function () {\n var props = _this3.props;\n var transitionName = props.openTransitionName;\n var animationName = props.openAnimation;\n if (!transitionName && typeof animationName === 'string') {\n transitionName = props.prefixCls + '-open-' + animationName;\n }\n return transitionName;\n };\n};\n\nexports['default'] = Menu;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rc-menu/lib/Menu.js\n// module id = 580\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\nexports.SubPopupMenu = undefined;\n\nvar _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');\n\nvar _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _extends4 = require('babel-runtime/helpers/extends');\n\nvar _extends5 = _interopRequireDefault(_extends4);\n\nexports.getActiveKey = getActiveKey;\nexports.saveRef = saveRef;\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _miniStore = require('mini-store');\n\nvar _KeyCode = require('rc-util/lib/KeyCode');\n\nvar _KeyCode2 = _interopRequireDefault(_KeyCode);\n\nvar _createChainedFunction = require('rc-util/lib/createChainedFunction');\n\nvar _createChainedFunction2 = _interopRequireDefault(_createChainedFunction);\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _util = require('./util');\n\nvar _DOMWrap = require('./DOMWrap');\n\nvar _DOMWrap2 = _interopRequireDefault(_DOMWrap);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nfunction allDisabled(arr) {\n if (!arr.length) {\n return true;\n }\n return arr.every(function (c) {\n return !!c.props.disabled;\n });\n}\n\nfunction updateActiveKey(store, menuId, activeKey) {\n var _extends2;\n\n var state = store.getState();\n store.setState({\n activeKey: (0, _extends5['default'])({}, state.activeKey, (_extends2 = {}, _extends2[menuId] = activeKey, _extends2))\n });\n}\n\nfunction getEventKey(props) {\n // when eventKey not available ,it's menu and return menu id '0-menu-'\n return props.eventKey || '0-menu-';\n}\n\nfunction getActiveKey(props, originalActiveKey) {\n var activeKey = originalActiveKey;\n var children = props.children,\n eventKey = props.eventKey;\n\n if (activeKey) {\n var found = void 0;\n (0, _util.loopMenuItem)(children, function (c, i) {\n if (c && !c.props.disabled && activeKey === (0, _util.getKeyFromChildrenIndex)(c, eventKey, i)) {\n found = true;\n }\n });\n if (found) {\n return activeKey;\n }\n }\n activeKey = null;\n if (props.defaultActiveFirst) {\n (0, _util.loopMenuItem)(children, function (c, i) {\n if (!activeKey && c && !c.props.disabled) {\n activeKey = (0, _util.getKeyFromChildrenIndex)(c, eventKey, i);\n }\n });\n return activeKey;\n }\n return activeKey;\n}\n\nfunction saveRef(c) {\n if (c) {\n var index = this.instanceArray.indexOf(c);\n if (index !== -1) {\n // update component if it's already inside instanceArray\n this.instanceArray[index] = c;\n } else {\n // add component if it's not in instanceArray yet;\n this.instanceArray.push(c);\n }\n }\n}\n\nvar SubPopupMenu = exports.SubPopupMenu = function (_React$Component) {\n (0, _inherits3['default'])(SubPopupMenu, _React$Component);\n\n function SubPopupMenu(props) {\n var _extends3;\n\n (0, _classCallCheck3['default'])(this, SubPopupMenu);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props));\n\n _initialiseProps.call(_this);\n\n props.store.setState({\n activeKey: (0, _extends5['default'])({}, props.store.getState().activeKey, (_extends3 = {}, _extends3[props.eventKey] = getActiveKey(props, props.activeKey), _extends3))\n });\n\n _this.instanceArray = [];\n return _this;\n }\n\n SubPopupMenu.prototype.componentDidMount = function componentDidMount() {\n // invoke customized ref to expose component to mixin\n if (this.props.manualRef) {\n this.props.manualRef(this);\n }\n };\n\n SubPopupMenu.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {\n return this.props.visible || nextProps.visible;\n };\n\n SubPopupMenu.prototype.componentDidUpdate = function componentDidUpdate() {\n var props = this.props;\n var originalActiveKey = 'activeKey' in props ? props.activeKey : props.store.getState().activeKey[getEventKey(props)];\n var activeKey = getActiveKey(props, originalActiveKey);\n if (activeKey !== originalActiveKey) {\n updateActiveKey(props.store, getEventKey(props), activeKey);\n }\n };\n\n // all keyboard events callbacks run from here at first\n\n\n SubPopupMenu.prototype.render = function render() {\n var _this2 = this;\n\n var props = (0, _objectWithoutProperties3['default'])(this.props, []);\n\n this.instanceArray = [];\n var className = (0, _classnames2['default'])(props.prefixCls, props.className, props.prefixCls + '-' + props.mode);\n var domProps = {\n className: className,\n // role could be 'select' and by default set to menu\n role: props.role || 'menu'\n };\n if (props.id) {\n domProps.id = props.id;\n }\n if (props.focusable) {\n domProps.tabIndex = '0';\n domProps.onKeyDown = this.onKeyDown;\n }\n var prefixCls = props.prefixCls,\n eventKey = props.eventKey,\n visible = props.visible,\n level = props.level,\n mode = props.mode,\n overflowedIndicator = props.overflowedIndicator,\n theme = props.theme;\n\n _util.menuAllProps.forEach(function (key) {\n return delete props[key];\n });\n\n // Otherwise, the propagated click event will trigger another onClick\n delete props.onClick;\n\n return (\n // ESLint is not smart enough to know that the type of `children` was checked.\n /* eslint-disable */\n _react2['default'].createElement(\n _DOMWrap2['default'],\n (0, _extends5['default'])({}, props, {\n prefixCls: prefixCls,\n mode: mode,\n tag: 'ul',\n level: level,\n theme: theme,\n hiddenClassName: prefixCls + '-hidden',\n visible: visible,\n overflowedIndicator: overflowedIndicator\n }, domProps),\n _react2['default'].Children.map(props.children, function (c, i) {\n return _this2.renderMenuItem(c, i, eventKey || '0-menu-');\n })\n )\n /*eslint-enable */\n\n );\n };\n\n return SubPopupMenu;\n}(_react2['default'].Component);\n\nSubPopupMenu.propTypes = {\n onSelect: _propTypes2['default'].func,\n onClick: _propTypes2['default'].func,\n onDeselect: _propTypes2['default'].func,\n onOpenChange: _propTypes2['default'].func,\n onDestroy: _propTypes2['default'].func,\n openTransitionName: _propTypes2['default'].string,\n openAnimation: _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].object]),\n openKeys: _propTypes2['default'].arrayOf(_propTypes2['default'].string),\n visible: _propTypes2['default'].bool,\n children: _propTypes2['default'].any,\n parentMenu: _propTypes2['default'].object,\n eventKey: _propTypes2['default'].string,\n store: _propTypes2['default'].shape({\n getState: _propTypes2['default'].func,\n setState: _propTypes2['default'].func\n }),\n\n // adding in refactor\n focusable: _propTypes2['default'].bool,\n multiple: _propTypes2['default'].bool,\n style: _propTypes2['default'].object,\n defaultActiveFirst: _propTypes2['default'].bool,\n activeKey: _propTypes2['default'].string,\n selectedKeys: _propTypes2['default'].arrayOf(_propTypes2['default'].string),\n defaultSelectedKeys: _propTypes2['default'].arrayOf(_propTypes2['default'].string),\n defaultOpenKeys: _propTypes2['default'].arrayOf(_propTypes2['default'].string),\n level: _propTypes2['default'].number,\n mode: _propTypes2['default'].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']),\n triggerSubMenuAction: _propTypes2['default'].oneOf(['click', 'hover']),\n inlineIndent: _propTypes2['default'].oneOfType([_propTypes2['default'].number, _propTypes2['default'].string]),\n manualRef: _propTypes2['default'].func,\n itemIcon: _propTypes2['default'].oneOfType([_propTypes2['default'].func, _propTypes2['default'].node]),\n expandIcon: _propTypes2['default'].oneOfType([_propTypes2['default'].func, _propTypes2['default'].node])\n};\nSubPopupMenu.defaultProps = {\n prefixCls: 'rc-menu',\n className: '',\n mode: 'vertical',\n level: 1,\n inlineIndent: 24,\n visible: true,\n focusable: true,\n style: {},\n manualRef: _util.noop\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this3 = this;\n\n this.onKeyDown = function (e, callback) {\n var keyCode = e.keyCode;\n var handled = void 0;\n _this3.getFlatInstanceArray().forEach(function (obj) {\n if (obj && obj.props.active && obj.onKeyDown) {\n handled = obj.onKeyDown(e);\n }\n });\n if (handled) {\n return 1;\n }\n var activeItem = null;\n if (keyCode === _KeyCode2['default'].UP || keyCode === _KeyCode2['default'].DOWN) {\n activeItem = _this3.step(keyCode === _KeyCode2['default'].UP ? -1 : 1);\n }\n if (activeItem) {\n e.preventDefault();\n updateActiveKey(_this3.props.store, getEventKey(_this3.props), activeItem.props.eventKey);\n\n if (typeof callback === 'function') {\n callback(activeItem);\n }\n\n return 1;\n }\n };\n\n this.onItemHover = function (e) {\n var key = e.key,\n hover = e.hover;\n\n updateActiveKey(_this3.props.store, getEventKey(_this3.props), hover ? key : null);\n };\n\n this.onDeselect = function (selectInfo) {\n _this3.props.onDeselect(selectInfo);\n };\n\n this.onSelect = function (selectInfo) {\n _this3.props.onSelect(selectInfo);\n };\n\n this.onClick = function (e) {\n _this3.props.onClick(e);\n };\n\n this.onOpenChange = function (e) {\n _this3.props.onOpenChange(e);\n };\n\n this.onDestroy = function (key) {\n /* istanbul ignore next */\n _this3.props.onDestroy(key);\n };\n\n this.getFlatInstanceArray = function () {\n return _this3.instanceArray;\n };\n\n this.getOpenTransitionName = function () {\n return _this3.props.openTransitionName;\n };\n\n this.step = function (direction) {\n var children = _this3.getFlatInstanceArray();\n var activeKey = _this3.props.store.getState().activeKey[getEventKey(_this3.props)];\n var len = children.length;\n if (!len) {\n return null;\n }\n if (direction < 0) {\n children = children.concat().reverse();\n }\n // find current activeIndex\n var activeIndex = -1;\n children.every(function (c, ci) {\n if (c && c.props.eventKey === activeKey) {\n activeIndex = ci;\n return false;\n }\n return true;\n });\n if (!_this3.props.defaultActiveFirst && activeIndex !== -1 && allDisabled(children.slice(activeIndex, len - 1))) {\n return undefined;\n }\n var start = (activeIndex + 1) % len;\n var i = start;\n\n do {\n var child = children[i];\n if (!child || child.props.disabled) {\n i = (i + 1) % len;\n } else {\n return child;\n }\n } while (i !== start);\n\n return null;\n };\n\n this.renderCommonMenuItem = function (child, i, extraProps) {\n var state = _this3.props.store.getState();\n var props = _this3.props;\n var key = (0, _util.getKeyFromChildrenIndex)(child, props.eventKey, i);\n var childProps = child.props;\n var isActive = key === state.activeKey;\n var newChildProps = (0, _extends5['default'])({\n mode: childProps.mode || props.mode,\n level: props.level,\n inlineIndent: props.inlineIndent,\n renderMenuItem: _this3.renderMenuItem,\n rootPrefixCls: props.prefixCls,\n index: i,\n parentMenu: props.parentMenu,\n // customized ref function, need to be invoked manually in child's componentDidMount\n manualRef: childProps.disabled ? undefined : (0, _createChainedFunction2['default'])(child.ref, saveRef.bind(_this3)),\n eventKey: key,\n active: !childProps.disabled && isActive,\n multiple: props.multiple,\n onClick: function onClick(e) {\n (childProps.onClick || _util.noop)(e);\n _this3.onClick(e);\n },\n onItemHover: _this3.onItemHover,\n openTransitionName: _this3.getOpenTransitionName(),\n openAnimation: props.openAnimation,\n subMenuOpenDelay: props.subMenuOpenDelay,\n subMenuCloseDelay: props.subMenuCloseDelay,\n forceSubMenuRender: props.forceSubMenuRender,\n onOpenChange: _this3.onOpenChange,\n onDeselect: _this3.onDeselect,\n onSelect: _this3.onSelect,\n builtinPlacements: props.builtinPlacements,\n itemIcon: childProps.itemIcon || _this3.props.itemIcon,\n expandIcon: childProps.expandIcon || _this3.props.expandIcon\n }, extraProps);\n if (props.mode === 'inline') {\n newChildProps.triggerSubMenuAction = 'click';\n }\n return _react2['default'].cloneElement(child, newChildProps);\n };\n\n this.renderMenuItem = function (c, i, subMenuKey) {\n /* istanbul ignore if */\n if (!c) {\n return null;\n }\n var state = _this3.props.store.getState();\n var extraProps = {\n openKeys: state.openKeys,\n selectedKeys: state.selectedKeys,\n triggerSubMenuAction: _this3.props.triggerSubMenuAction,\n subMenuKey: subMenuKey\n };\n return _this3.renderCommonMenuItem(c, i, extraProps);\n };\n};\n\nvar connected = (0, _miniStore.connect)()(SubPopupMenu);\n\nexports['default'] = connected;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rc-menu/lib/SubPopupMenu.js\n// module id = 581\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\nexports.setStyle = exports.getWidth = exports.menuAllProps = undefined;\nexports.noop = noop;\nexports.getKeyFromChildrenIndex = getKeyFromChildrenIndex;\nexports.getMenuIdFromSubMenuEventKey = getMenuIdFromSubMenuEventKey;\nexports.loopMenuItem = loopMenuItem;\nexports.loopMenuItemRecursively = loopMenuItemRecursively;\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nfunction noop() {}\n\nfunction getKeyFromChildrenIndex(child, menuEventKey, index) {\n var prefix = menuEventKey || '';\n return child.key || prefix + 'item_' + index;\n}\n\nfunction getMenuIdFromSubMenuEventKey(eventKey) {\n return eventKey + '-menu-';\n}\n\nfunction loopMenuItem(children, cb) {\n var index = -1;\n _react2['default'].Children.forEach(children, function (c) {\n index++;\n if (c && c.type && c.type.isMenuItemGroup) {\n _react2['default'].Children.forEach(c.props.children, function (c2) {\n index++;\n cb(c2, index);\n });\n } else {\n cb(c, index);\n }\n });\n}\n\nfunction loopMenuItemRecursively(children, keys, ret) {\n /* istanbul ignore if */\n if (!children || ret.find) {\n return;\n }\n _react2['default'].Children.forEach(children, function (c) {\n if (c) {\n var construct = c.type;\n if (!construct || !(construct.isSubMenu || construct.isMenuItem || construct.isMenuItemGroup)) {\n return;\n }\n if (keys.indexOf(c.key) !== -1) {\n ret.find = true;\n } else if (c.props.children) {\n loopMenuItemRecursively(c.props.children, keys, ret);\n }\n }\n });\n}\n\nvar menuAllProps = exports.menuAllProps = ['defaultSelectedKeys', 'selectedKeys', 'defaultOpenKeys', 'openKeys', 'mode', 'getPopupContainer', 'onSelect', 'onDeselect', 'onDestroy', 'openTransitionName', 'openAnimation', 'subMenuOpenDelay', 'subMenuCloseDelay', 'forceSubMenuRender', 'triggerSubMenuAction', 'level', 'selectable', 'multiple', 'onOpenChange', 'visible', 'focusable', 'defaultActiveFirst', 'prefixCls', 'inlineIndent', 'parentMenu', 'title', 'rootPrefixCls', 'eventKey', 'active', 'onItemHover', 'onTitleMouseEnter', 'onTitleMouseLeave', 'onTitleClick', 'popupAlign', 'popupOffset', 'isOpen', 'renderMenuItem', 'manualRef', 'subMenuKey', 'disabled', 'index', 'isSelected', 'store', 'activeKey', 'builtinPlacements', 'overflowedIndicator',\n\n// the following keys found need to be removed from test regression\n'attribute', 'value', 'popupClassName', 'inlineCollapsed', 'menu', 'theme', 'itemIcon', 'expandIcon'];\n\nvar getWidth = exports.getWidth = function getWidth(elem) {\n return elem && typeof elem.getBoundingClientRect === 'function' && elem.getBoundingClientRect().width || 0;\n};\n\nvar setStyle = exports.setStyle = function setStyle(elem, styleProperty, value) {\n if (elem && typeof elem.style === 'object') {\n elem.style[styleProperty] = value;\n }\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rc-menu/lib/util.js\n// module id = 582\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');\n\nvar _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = require('react-dom');\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _resizeObserverPolyfill = require('resize-observer-polyfill');\n\nvar _resizeObserverPolyfill2 = _interopRequireDefault(_resizeObserverPolyfill);\n\nvar _SubMenu = require('./SubMenu');\n\nvar _SubMenu2 = _interopRequireDefault(_SubMenu);\n\nvar _util = require('./util');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);\n\nvar MENUITEM_OVERFLOWED_CLASSNAME = 'menuitem-overflowed';\n\n// Fix ssr\nif (canUseDOM) {\n require('mutationobserver-shim');\n}\n\nvar DOMWrap = function (_React$Component) {\n (0, _inherits3['default'])(DOMWrap, _React$Component);\n\n function DOMWrap() {\n var _temp, _this, _ret;\n\n (0, _classCallCheck3['default'])(this, DOMWrap);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.state = {\n lastVisibleIndex: undefined\n }, _this.getMenuItemNodes = function () {\n var prefixCls = _this.props.prefixCls;\n\n var ul = _reactDom2['default'].findDOMNode(_this);\n if (!ul) {\n return [];\n }\n\n // filter out all overflowed indicator placeholder\n return [].slice.call(ul.children).filter(function (node) {\n return node.className.split(' ').indexOf(prefixCls + '-overflowed-submenu') < 0;\n });\n }, _this.getOverflowedSubMenuItem = function (keyPrefix, overflowedItems, renderPlaceholder) {\n var _this$props = _this.props,\n overflowedIndicator = _this$props.overflowedIndicator,\n level = _this$props.level,\n mode = _this$props.mode,\n prefixCls = _this$props.prefixCls,\n theme = _this$props.theme,\n propStyle = _this$props.style;\n\n if (level !== 1 || mode !== 'horizontal') {\n return null;\n }\n // put all the overflowed item inside a submenu\n // with a title of overflow indicator ('...')\n var copy = _this.props.children[0];\n var _copy$props = copy.props,\n throwAway = _copy$props.children,\n title = _copy$props.title,\n eventKey = _copy$props.eventKey,\n rest = (0, _objectWithoutProperties3['default'])(_copy$props, ['children', 'title', 'eventKey']);\n\n\n var style = (0, _extends3['default'])({}, propStyle);\n var key = keyPrefix + '-overflowed-indicator';\n\n if (overflowedItems.length === 0 && renderPlaceholder !== true) {\n style = (0, _extends3['default'])({}, style, {\n display: 'none'\n });\n } else if (renderPlaceholder) {\n style = (0, _extends3['default'])({}, style, {\n visibility: 'hidden',\n // prevent from taking normal dom space\n position: 'absolute'\n });\n key = key + '-placeholder';\n }\n\n var popupClassName = theme ? prefixCls + '-' + theme : '';\n var props = {};\n _util.menuAllProps.forEach(function (k) {\n if (rest[k] !== undefined) {\n props[k] = rest[k];\n }\n });\n\n return _react2['default'].createElement(\n _SubMenu2['default'],\n (0, _extends3['default'])({\n title: overflowedIndicator,\n className: prefixCls + '-overflowed-submenu',\n popupClassName: popupClassName\n }, props, {\n key: key,\n eventKey: keyPrefix + '-overflowed-indicator',\n disabled: false,\n style: style\n }),\n overflowedItems\n );\n }, _this.setChildrenWidthAndResize = function () {\n if (_this.props.mode !== 'horizontal') {\n return;\n }\n var ul = _reactDom2['default'].findDOMNode(_this);\n\n if (!ul) {\n return;\n }\n\n var ulChildrenNodes = ul.children;\n\n if (!ulChildrenNodes || ulChildrenNodes.length === 0) {\n return;\n }\n\n var lastOverflowedIndicatorPlaceholder = ul.children[ulChildrenNodes.length - 1];\n\n // need last overflowed indicator for calculating length;\n (0, _util.setStyle)(lastOverflowedIndicatorPlaceholder, 'display', 'inline-block');\n\n var menuItemNodes = _this.getMenuItemNodes();\n\n // reset display attribute for all hidden elements caused by overflow to calculate updated width\n // and then reset to original state after width calculation\n\n var overflowedItems = menuItemNodes.filter(function (c) {\n return c.className.split(' ').indexOf(MENUITEM_OVERFLOWED_CLASSNAME) >= 0;\n });\n\n overflowedItems.forEach(function (c) {\n (0, _util.setStyle)(c, 'display', 'inline-block');\n });\n\n _this.menuItemSizes = menuItemNodes.map(function (c) {\n return (0, _util.getWidth)(c);\n });\n\n overflowedItems.forEach(function (c) {\n (0, _util.setStyle)(c, 'display', 'none');\n });\n _this.overflowedIndicatorWidth = (0, _util.getWidth)(ul.children[ul.children.length - 1]);\n _this.originalTotalWidth = _this.menuItemSizes.reduce(function (acc, cur) {\n return acc + cur;\n }, 0);\n _this.handleResize();\n // prevent the overflowed indicator from taking space;\n (0, _util.setStyle)(lastOverflowedIndicatorPlaceholder, 'display', 'none');\n }, _this.resizeObserver = null, _this.mutationObserver = null, _this.originalTotalWidth = 0, _this.overflowedItems = [], _this.menuItemSizes = [], _this.handleResize = function () {\n if (_this.props.mode !== 'horizontal') {\n return;\n }\n\n var ul = _reactDom2['default'].findDOMNode(_this);\n if (!ul) {\n return;\n }\n var width = (0, _util.getWidth)(ul);\n\n _this.overflowedItems = [];\n var currentSumWidth = 0;\n\n // index for last visible child in horizontal mode\n var lastVisibleIndex = undefined;\n\n if (_this.originalTotalWidth > width) {\n lastVisibleIndex = -1;\n\n _this.menuItemSizes.forEach(function (liWidth) {\n currentSumWidth += liWidth;\n if (currentSumWidth + _this.overflowedIndicatorWidth <= width) {\n lastVisibleIndex++;\n }\n });\n }\n\n _this.setState({ lastVisibleIndex: lastVisibleIndex });\n }, _temp), (0, _possibleConstructorReturn3['default'])(_this, _ret);\n }\n\n DOMWrap.prototype.componentDidMount = function componentDidMount() {\n var _this2 = this;\n\n this.setChildrenWidthAndResize();\n if (this.props.level === 1 && this.props.mode === 'horizontal') {\n var menuUl = _reactDom2['default'].findDOMNode(this);\n if (!menuUl) {\n return;\n }\n this.resizeObserver = new _resizeObserverPolyfill2['default'](function (entries) {\n entries.forEach(_this2.setChildrenWidthAndResize);\n });\n\n [].slice.call(menuUl.children).concat(menuUl).forEach(function (el) {\n _this2.resizeObserver.observe(el);\n });\n\n if (typeof MutationObserver !== 'undefined') {\n this.mutationObserver = new MutationObserver(function () {\n _this2.resizeObserver.disconnect();\n [].slice.call(menuUl.children).concat(menuUl).forEach(function (el) {\n _this2.resizeObserver.observe(el);\n });\n _this2.setChildrenWidthAndResize();\n });\n this.mutationObserver.observe(menuUl, { attributes: false, childList: true, subTree: false });\n }\n }\n };\n\n DOMWrap.prototype.componentWillUnmount = function componentWillUnmount() {\n if (this.resizeObserver) {\n this.resizeObserver.disconnect();\n }\n if (this.mutationObserver) {\n this.resizeObserver.disconnect();\n }\n };\n\n // get all valid menuItem nodes\n\n\n // memorize rendered menuSize\n\n\n // original scroll size of the list\n\n\n // copy of overflowed items\n\n\n // cache item of the original items (so we can track the size and order)\n\n\n DOMWrap.prototype.renderChildren = function renderChildren(children) {\n var _this3 = this;\n\n // need to take care of overflowed items in horizontal mode\n var lastVisibleIndex = this.state.lastVisibleIndex;\n\n return (children || []).reduce(function (acc, childNode, index) {\n var item = childNode;\n if (_this3.props.mode === 'horizontal') {\n var overflowed = _this3.getOverflowedSubMenuItem(childNode.props.eventKey, []);\n if (lastVisibleIndex !== undefined && _this3.props.className.indexOf(_this3.props.prefixCls + '-root') !== -1) {\n if (index > lastVisibleIndex) {\n item = _react2['default'].cloneElement(childNode,\n // 这里修改 eventKey 是为了防止隐藏状态下还会触发 openkeys 事件\n {\n style: { display: 'none' },\n eventKey: childNode.props.eventKey + '-hidden',\n className: childNode.className + ' ' + MENUITEM_OVERFLOWED_CLASSNAME\n });\n }\n if (index === lastVisibleIndex + 1) {\n _this3.overflowedItems = children.slice(lastVisibleIndex + 1).map(function (c) {\n return _react2['default'].cloneElement(c,\n // children[index].key will become '.$key' in clone by default,\n // we have to overwrite with the correct key explicitly\n { key: c.props.eventKey, mode: 'vertical-left' });\n });\n\n overflowed = _this3.getOverflowedSubMenuItem(childNode.props.eventKey, _this3.overflowedItems);\n }\n }\n\n var ret = [].concat(acc, [overflowed, item]);\n\n if (index === children.length - 1) {\n // need a placeholder for calculating overflowed indicator width\n ret.push(_this3.getOverflowedSubMenuItem(childNode.props.eventKey, [], true));\n }\n return ret;\n }\n return [].concat(acc, [item]);\n }, []);\n };\n\n DOMWrap.prototype.render = function render() {\n var _props = this.props,\n hiddenClassName = _props.hiddenClassName,\n visible = _props.visible,\n prefixCls = _props.prefixCls,\n overflowedIndicator = _props.overflowedIndicator,\n mode = _props.mode,\n level = _props.level,\n Tag = _props.tag,\n children = _props.children,\n theme = _props.theme,\n rest = (0, _objectWithoutProperties3['default'])(_props, ['hiddenClassName', 'visible', 'prefixCls', 'overflowedIndicator', 'mode', 'level', 'tag', 'children', 'theme']);\n\n\n if (!visible) {\n rest.className += ' ' + hiddenClassName;\n }\n\n return _react2['default'].createElement(\n Tag,\n rest,\n this.renderChildren(this.props.children)\n );\n };\n\n return DOMWrap;\n}(_react2['default'].Component);\n\nDOMWrap.propTypes = {\n className: _propTypes2['default'].string,\n children: _propTypes2['default'].node,\n mode: _propTypes2['default'].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']),\n prefixCls: _propTypes2['default'].string,\n level: _propTypes2['default'].number,\n theme: _propTypes2['default'].string,\n overflowedIndicator: _propTypes2['default'].node,\n visible: _propTypes2['default'].bool,\n hiddenClassName: _propTypes2['default'].string,\n tag: _propTypes2['default'].string,\n style: _propTypes2['default'].object\n};\n\nDOMWrap.defaultProps = {\n tag: 'div',\n className: ''\n};\n\nexports['default'] = DOMWrap;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rc-menu/lib/DOMWrap.js\n// module id = 583\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\nexports.SubMenu = undefined;\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _extends3 = require('babel-runtime/helpers/extends');\n\nvar _extends4 = _interopRequireDefault(_extends3);\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = require('react-dom');\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _rcTrigger = require('rc-trigger');\n\nvar _rcTrigger2 = _interopRequireDefault(_rcTrigger);\n\nvar _KeyCode = require('rc-util/lib/KeyCode');\n\nvar _KeyCode2 = _interopRequireDefault(_KeyCode);\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _miniStore = require('mini-store');\n\nvar _SubPopupMenu = require('./SubPopupMenu');\n\nvar _SubPopupMenu2 = _interopRequireDefault(_SubPopupMenu);\n\nvar _placements = require('./placements');\n\nvar _placements2 = _interopRequireDefault(_placements);\n\nvar _rcAnimate = require('rc-animate');\n\nvar _rcAnimate2 = _interopRequireDefault(_rcAnimate);\n\nvar _util = require('./util');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar guid = 0;\n\nvar popupPlacementMap = {\n horizontal: 'bottomLeft',\n vertical: 'rightTop',\n 'vertical-left': 'rightTop',\n 'vertical-right': 'leftTop'\n};\n\nvar updateDefaultActiveFirst = function updateDefaultActiveFirst(store, eventKey, defaultActiveFirst) {\n var _extends2;\n\n var menuId = (0, _util.getMenuIdFromSubMenuEventKey)(eventKey);\n var state = store.getState();\n store.setState({\n defaultActiveFirst: (0, _extends4['default'])({}, state.defaultActiveFirst, (_extends2 = {}, _extends2[menuId] = defaultActiveFirst, _extends2))\n });\n};\n\nvar SubMenu = exports.SubMenu = function (_React$Component) {\n (0, _inherits3['default'])(SubMenu, _React$Component);\n\n function SubMenu(props) {\n (0, _classCallCheck3['default'])(this, SubMenu);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props));\n\n _initialiseProps.call(_this);\n\n var store = props.store;\n var eventKey = props.eventKey;\n var defaultActiveFirst = store.getState().defaultActiveFirst;\n\n _this.isRootMenu = false;\n\n var value = false;\n\n if (defaultActiveFirst) {\n value = defaultActiveFirst[eventKey];\n }\n\n updateDefaultActiveFirst(store, eventKey, value);\n return _this;\n }\n\n SubMenu.prototype.componentDidMount = function componentDidMount() {\n this.componentDidUpdate();\n };\n\n SubMenu.prototype.componentDidUpdate = function componentDidUpdate() {\n var _this2 = this;\n\n var _props = this.props,\n mode = _props.mode,\n parentMenu = _props.parentMenu,\n manualRef = _props.manualRef;\n\n // invoke customized ref to expose component to mixin\n\n if (manualRef) {\n manualRef(this);\n }\n\n if (mode !== 'horizontal' || !parentMenu.isRootMenu || !this.props.isOpen) {\n return;\n }\n\n this.minWidthTimeout = setTimeout(function () {\n return _this2.adjustWidth();\n }, 0);\n };\n\n SubMenu.prototype.componentWillUnmount = function componentWillUnmount() {\n var _props2 = this.props,\n onDestroy = _props2.onDestroy,\n eventKey = _props2.eventKey;\n\n if (onDestroy) {\n onDestroy(eventKey);\n }\n\n /* istanbul ignore if */\n if (this.minWidthTimeout) {\n clearTimeout(this.minWidthTimeout);\n }\n\n /* istanbul ignore if */\n if (this.mouseenterTimeout) {\n clearTimeout(this.mouseenterTimeout);\n }\n };\n\n SubMenu.prototype.renderChildren = function renderChildren(children) {\n var props = this.props;\n var baseProps = {\n mode: props.mode === 'horizontal' ? 'vertical' : props.mode,\n visible: this.props.isOpen,\n level: props.level + 1,\n inlineIndent: props.inlineIndent,\n focusable: false,\n onClick: this.onSubMenuClick,\n onSelect: this.onSelect,\n onDeselect: this.onDeselect,\n onDestroy: this.onDestroy,\n selectedKeys: props.selectedKeys,\n eventKey: props.eventKey + '-menu-',\n openKeys: props.openKeys,\n openTransitionName: props.openTransitionName,\n openAnimation: props.openAnimation,\n onOpenChange: this.onOpenChange,\n subMenuOpenDelay: props.subMenuOpenDelay,\n parentMenu: this,\n subMenuCloseDelay: props.subMenuCloseDelay,\n forceSubMenuRender: props.forceSubMenuRender,\n triggerSubMenuAction: props.triggerSubMenuAction,\n builtinPlacements: props.builtinPlacements,\n defaultActiveFirst: props.store.getState().defaultActiveFirst[(0, _util.getMenuIdFromSubMenuEventKey)(props.eventKey)],\n multiple: props.multiple,\n prefixCls: props.rootPrefixCls,\n id: this._menuId,\n manualRef: this.saveMenuInstance,\n itemIcon: props.itemIcon,\n expandIcon: props.expandIcon\n };\n\n var haveRendered = this.haveRendered;\n this.haveRendered = true;\n\n this.haveOpened = this.haveOpened || baseProps.visible || baseProps.forceSubMenuRender;\n // never rendered not planning to, don't render\n if (!this.haveOpened) {\n return _react2['default'].createElement('div', null);\n }\n\n // don't show transition on first rendering (no animation for opened menu)\n // show appear transition if it's not visible (not sure why)\n // show appear transition if it's not inline mode\n var transitionAppear = haveRendered || !baseProps.visible || !baseProps.mode === 'inline';\n\n baseProps.className = ' ' + baseProps.prefixCls + '-sub';\n var animProps = {};\n\n if (baseProps.openTransitionName) {\n animProps.transitionName = baseProps.openTransitionName;\n } else if (typeof baseProps.openAnimation === 'object') {\n animProps.animation = (0, _extends4['default'])({}, baseProps.openAnimation);\n if (!transitionAppear) {\n delete animProps.animation.appear;\n }\n }\n\n return _react2['default'].createElement(\n _rcAnimate2['default'],\n (0, _extends4['default'])({}, animProps, {\n showProp: 'visible',\n component: '',\n transitionAppear: transitionAppear\n }),\n _react2['default'].createElement(\n _SubPopupMenu2['default'],\n (0, _extends4['default'])({}, baseProps, { id: this._menuId }),\n children\n )\n );\n };\n\n SubMenu.prototype.render = function render() {\n var _classNames;\n\n var props = (0, _extends4['default'])({}, this.props);\n var isOpen = props.isOpen;\n var prefixCls = this.getPrefixCls();\n var isInlineMode = props.mode === 'inline';\n var className = (0, _classnames2['default'])(prefixCls, prefixCls + '-' + props.mode, (_classNames = {}, _classNames[props.className] = !!props.className, _classNames[this.getOpenClassName()] = isOpen, _classNames[this.getActiveClassName()] = props.active || isOpen && !isInlineMode, _classNames[this.getDisabledClassName()] = props.disabled, _classNames[this.getSelectedClassName()] = this.isChildrenSelected(), _classNames));\n\n if (!this._menuId) {\n if (props.eventKey) {\n this._menuId = props.eventKey + '$Menu';\n } else {\n this._menuId = '$__$' + ++guid + '$Menu';\n }\n }\n\n var mouseEvents = {};\n var titleClickEvents = {};\n var titleMouseEvents = {};\n if (!props.disabled) {\n mouseEvents = {\n onMouseLeave: this.onMouseLeave,\n onMouseEnter: this.onMouseEnter\n };\n\n // only works in title, not outer li\n titleClickEvents = {\n onClick: this.onTitleClick\n };\n titleMouseEvents = {\n onMouseEnter: this.onTitleMouseEnter,\n onMouseLeave: this.onTitleMouseLeave\n };\n }\n\n var style = {};\n if (isInlineMode) {\n style.paddingLeft = props.inlineIndent * props.level;\n }\n\n var ariaOwns = {};\n // only set aria-owns when menu is open\n // otherwise it would be an invalid aria-owns value\n // since corresponding node cannot be found\n if (this.props.isOpen) {\n ariaOwns = {\n 'aria-owns': this._menuId\n };\n }\n\n // expand custom icon should NOT be displayed in menu with horizontal mode.\n var icon = null;\n if (props.mode !== 'horizontal') {\n icon = this.props.expandIcon; // ReactNode\n if (typeof this.props.expandIcon === 'function') {\n icon = _react2['default'].createElement(this.props.expandIcon, (0, _extends4['default'])({}, this.props));\n }\n }\n\n var title = _react2['default'].createElement(\n 'div',\n (0, _extends4['default'])({\n ref: this.saveSubMenuTitle,\n style: style,\n className: prefixCls + '-title'\n }, titleMouseEvents, titleClickEvents, {\n 'aria-expanded': isOpen\n }, ariaOwns, {\n 'aria-haspopup': 'true',\n title: typeof props.title === 'string' ? props.title : undefined\n }),\n props.title,\n icon || _react2['default'].createElement('i', { className: prefixCls + '-arrow' })\n );\n var children = this.renderChildren(props.children);\n\n var getPopupContainer = props.parentMenu.isRootMenu ? props.parentMenu.props.getPopupContainer : function (triggerNode) {\n return triggerNode.parentNode;\n };\n var popupPlacement = popupPlacementMap[props.mode];\n var popupAlign = props.popupOffset ? { offset: props.popupOffset } : {};\n var popupClassName = props.mode === 'inline' ? '' : props.popupClassName;\n var disabled = props.disabled,\n triggerSubMenuAction = props.triggerSubMenuAction,\n subMenuOpenDelay = props.subMenuOpenDelay,\n forceSubMenuRender = props.forceSubMenuRender,\n subMenuCloseDelay = props.subMenuCloseDelay,\n builtinPlacements = props.builtinPlacements;\n\n _util.menuAllProps.forEach(function (key) {\n return delete props[key];\n });\n // Set onClick to null, to ignore propagated onClick event\n delete props.onClick;\n\n return _react2['default'].createElement(\n 'li',\n (0, _extends4['default'])({}, props, mouseEvents, {\n className: className,\n role: 'menuitem'\n }),\n isInlineMode && title,\n isInlineMode && children,\n !isInlineMode && _react2['default'].createElement(\n _rcTrigger2['default'],\n {\n prefixCls: prefixCls,\n popupClassName: prefixCls + '-popup ' + popupClassName,\n getPopupContainer: getPopupContainer,\n builtinPlacements: (0, _extends4['default'])({}, _placements2['default'], builtinPlacements),\n popupPlacement: popupPlacement,\n popupVisible: isOpen,\n popupAlign: popupAlign,\n popup: children,\n action: disabled ? [] : [triggerSubMenuAction],\n mouseEnterDelay: subMenuOpenDelay,\n mouseLeaveDelay: subMenuCloseDelay,\n onPopupVisibleChange: this.onPopupVisibleChange,\n forceRender: forceSubMenuRender\n },\n title\n )\n );\n };\n\n return SubMenu;\n}(_react2['default'].Component);\n\nSubMenu.propTypes = {\n parentMenu: _propTypes2['default'].object,\n title: _propTypes2['default'].node,\n children: _propTypes2['default'].any,\n selectedKeys: _propTypes2['default'].array,\n openKeys: _propTypes2['default'].array,\n onClick: _propTypes2['default'].func,\n onOpenChange: _propTypes2['default'].func,\n rootPrefixCls: _propTypes2['default'].string,\n eventKey: _propTypes2['default'].string,\n multiple: _propTypes2['default'].bool,\n active: _propTypes2['default'].bool, // TODO: remove\n onItemHover: _propTypes2['default'].func,\n onSelect: _propTypes2['default'].func,\n triggerSubMenuAction: _propTypes2['default'].string,\n onDeselect: _propTypes2['default'].func,\n onDestroy: _propTypes2['default'].func,\n onMouseEnter: _propTypes2['default'].func,\n onMouseLeave: _propTypes2['default'].func,\n onTitleMouseEnter: _propTypes2['default'].func,\n onTitleMouseLeave: _propTypes2['default'].func,\n onTitleClick: _propTypes2['default'].func,\n popupOffset: _propTypes2['default'].array,\n isOpen: _propTypes2['default'].bool,\n store: _propTypes2['default'].object,\n mode: _propTypes2['default'].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']),\n manualRef: _propTypes2['default'].func,\n itemIcon: _propTypes2['default'].oneOfType([_propTypes2['default'].func, _propTypes2['default'].node]),\n expandIcon: _propTypes2['default'].oneOfType([_propTypes2['default'].func, _propTypes2['default'].node])\n};\nSubMenu.defaultProps = {\n onMouseEnter: _util.noop,\n onMouseLeave: _util.noop,\n onTitleMouseEnter: _util.noop,\n onTitleMouseLeave: _util.noop,\n onTitleClick: _util.noop,\n manualRef: _util.noop,\n mode: 'vertical',\n title: ''\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this3 = this;\n\n this.onDestroy = function (key) {\n _this3.props.onDestroy(key);\n };\n\n this.onKeyDown = function (e) {\n var keyCode = e.keyCode;\n var menu = _this3.menuInstance;\n var _props3 = _this3.props,\n isOpen = _props3.isOpen,\n store = _props3.store;\n\n\n if (keyCode === _KeyCode2['default'].ENTER) {\n _this3.onTitleClick(e);\n updateDefaultActiveFirst(store, _this3.props.eventKey, true);\n return true;\n }\n\n if (keyCode === _KeyCode2['default'].RIGHT) {\n if (isOpen) {\n menu.onKeyDown(e);\n } else {\n _this3.triggerOpenChange(true);\n // need to update current menu's defaultActiveFirst value\n updateDefaultActiveFirst(store, _this3.props.eventKey, true);\n }\n return true;\n }\n if (keyCode === _KeyCode2['default'].LEFT) {\n var handled = void 0;\n if (isOpen) {\n handled = menu.onKeyDown(e);\n } else {\n return undefined;\n }\n if (!handled) {\n _this3.triggerOpenChange(false);\n handled = true;\n }\n return handled;\n }\n\n if (isOpen && (keyCode === _KeyCode2['default'].UP || keyCode === _KeyCode2['default'].DOWN)) {\n return menu.onKeyDown(e);\n }\n };\n\n this.onOpenChange = function (e) {\n _this3.props.onOpenChange(e);\n };\n\n this.onPopupVisibleChange = function (visible) {\n _this3.triggerOpenChange(visible, visible ? 'mouseenter' : 'mouseleave');\n };\n\n this.onMouseEnter = function (e) {\n var _props4 = _this3.props,\n key = _props4.eventKey,\n onMouseEnter = _props4.onMouseEnter,\n store = _props4.store;\n\n updateDefaultActiveFirst(store, _this3.props.eventKey, false);\n onMouseEnter({\n key: key,\n domEvent: e\n });\n };\n\n this.onMouseLeave = function (e) {\n var _props5 = _this3.props,\n parentMenu = _props5.parentMenu,\n eventKey = _props5.eventKey,\n onMouseLeave = _props5.onMouseLeave;\n\n parentMenu.subMenuInstance = _this3;\n onMouseLeave({\n key: eventKey,\n domEvent: e\n });\n };\n\n this.onTitleMouseEnter = function (domEvent) {\n var _props6 = _this3.props,\n key = _props6.eventKey,\n onItemHover = _props6.onItemHover,\n onTitleMouseEnter = _props6.onTitleMouseEnter;\n\n onItemHover({\n key: key,\n hover: true\n });\n onTitleMouseEnter({\n key: key,\n domEvent: domEvent\n });\n };\n\n this.onTitleMouseLeave = function (e) {\n var _props7 = _this3.props,\n parentMenu = _props7.parentMenu,\n eventKey = _props7.eventKey,\n onItemHover = _props7.onItemHover,\n onTitleMouseLeave = _props7.onTitleMouseLeave;\n\n parentMenu.subMenuInstance = _this3;\n onItemHover({\n key: eventKey,\n hover: false\n });\n onTitleMouseLeave({\n key: eventKey,\n domEvent: e\n });\n };\n\n this.onTitleClick = function (e) {\n var props = _this3.props;\n\n props.onTitleClick({\n key: props.eventKey,\n domEvent: e\n });\n if (props.triggerSubMenuAction === 'hover') {\n return;\n }\n _this3.triggerOpenChange(!props.isOpen, 'click');\n updateDefaultActiveFirst(props.store, _this3.props.eventKey, false);\n };\n\n this.onSubMenuClick = function (info) {\n // in the case of overflowed submenu\n // onClick is not copied over\n if (typeof _this3.props.onClick === 'function') {\n _this3.props.onClick(_this3.addKeyPath(info));\n }\n };\n\n this.onSelect = function (info) {\n _this3.props.onSelect(info);\n };\n\n this.onDeselect = function (info) {\n _this3.props.onDeselect(info);\n };\n\n this.getPrefixCls = function () {\n return _this3.props.rootPrefixCls + '-submenu';\n };\n\n this.getActiveClassName = function () {\n return _this3.getPrefixCls() + '-active';\n };\n\n this.getDisabledClassName = function () {\n return _this3.getPrefixCls() + '-disabled';\n };\n\n this.getSelectedClassName = function () {\n return _this3.getPrefixCls() + '-selected';\n };\n\n this.getOpenClassName = function () {\n return _this3.props.rootPrefixCls + '-submenu-open';\n };\n\n this.saveMenuInstance = function (c) {\n // children menu instance\n _this3.menuInstance = c;\n };\n\n this.addKeyPath = function (info) {\n return (0, _extends4['default'])({}, info, {\n keyPath: (info.keyPath || []).concat(_this3.props.eventKey)\n });\n };\n\n this.triggerOpenChange = function (open, type) {\n var key = _this3.props.eventKey;\n var openChange = function openChange() {\n _this3.onOpenChange({\n key: key,\n item: _this3,\n trigger: type,\n open: open\n });\n };\n if (type === 'mouseenter') {\n // make sure mouseenter happen after other menu item's mouseleave\n _this3.mouseenterTimeout = setTimeout(function () {\n openChange();\n }, 0);\n } else {\n openChange();\n }\n };\n\n this.isChildrenSelected = function () {\n var ret = { find: false };\n (0, _util.loopMenuItemRecursively)(_this3.props.children, _this3.props.selectedKeys, ret);\n return ret.find;\n };\n\n this.isOpen = function () {\n return _this3.props.openKeys.indexOf(_this3.props.eventKey) !== -1;\n };\n\n this.adjustWidth = function () {\n /* istanbul ignore if */\n if (!_this3.subMenuTitle || !_this3.menuInstance) {\n return;\n }\n var popupMenu = _reactDom2['default'].findDOMNode(_this3.menuInstance);\n if (popupMenu.offsetWidth >= _this3.subMenuTitle.offsetWidth) {\n return;\n }\n\n /* istanbul ignore next */\n popupMenu.style.minWidth = _this3.subMenuTitle.offsetWidth + 'px';\n };\n\n this.saveSubMenuTitle = function (subMenuTitle) {\n _this3.subMenuTitle = subMenuTitle;\n };\n};\n\nvar connected = (0, _miniStore.connect)(function (_ref, _ref2) {\n var openKeys = _ref.openKeys,\n activeKey = _ref.activeKey,\n selectedKeys = _ref.selectedKeys;\n var eventKey = _ref2.eventKey,\n subMenuKey = _ref2.subMenuKey;\n return {\n isOpen: openKeys.indexOf(eventKey) > -1,\n active: activeKey[subMenuKey] === eventKey,\n selectedKeys: selectedKeys\n };\n})(SubMenu);\n\nconnected.isSubMenu = true;\n\nexports['default'] = connected;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rc-menu/lib/SubMenu.js\n// module id = 584\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\nvar autoAdjustOverflow = {\n adjustX: 1,\n adjustY: 1\n};\n\nvar placements = exports.placements = {\n topLeft: {\n points: ['bl', 'tl'],\n overflow: autoAdjustOverflow,\n offset: [0, -7]\n },\n bottomLeft: {\n points: ['tl', 'bl'],\n overflow: autoAdjustOverflow,\n offset: [0, 7]\n },\n leftTop: {\n points: ['tr', 'tl'],\n overflow: autoAdjustOverflow,\n offset: [-4, 0]\n },\n rightTop: {\n points: ['tl', 'tr'],\n overflow: autoAdjustOverflow,\n offset: [4, 0]\n }\n};\n\nexports['default'] = placements;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rc-menu/lib/placements.js\n// module id = 585\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\nexports.MenuItem = undefined;\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = require('react-dom');\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _KeyCode = require('rc-util/lib/KeyCode');\n\nvar _KeyCode2 = _interopRequireDefault(_KeyCode);\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _domScrollIntoView = require('dom-scroll-into-view');\n\nvar _domScrollIntoView2 = _interopRequireDefault(_domScrollIntoView);\n\nvar _miniStore = require('mini-store');\n\nvar _util = require('./util');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n/* eslint react/no-is-mounted:0 */\n\nvar MenuItem = exports.MenuItem = function (_React$Component) {\n (0, _inherits3['default'])(MenuItem, _React$Component);\n\n function MenuItem(props) {\n (0, _classCallCheck3['default'])(this, MenuItem);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props));\n\n _this.onKeyDown = function (e) {\n var keyCode = e.keyCode;\n if (keyCode === _KeyCode2['default'].ENTER) {\n _this.onClick(e);\n return true;\n }\n };\n\n _this.onMouseLeave = function (e) {\n var _this$props = _this.props,\n eventKey = _this$props.eventKey,\n onItemHover = _this$props.onItemHover,\n onMouseLeave = _this$props.onMouseLeave;\n\n onItemHover({\n key: eventKey,\n hover: false\n });\n onMouseLeave({\n key: eventKey,\n domEvent: e\n });\n };\n\n _this.onMouseEnter = function (e) {\n var _this$props2 = _this.props,\n eventKey = _this$props2.eventKey,\n onItemHover = _this$props2.onItemHover,\n onMouseEnter = _this$props2.onMouseEnter;\n\n onItemHover({\n key: eventKey,\n hover: true\n });\n onMouseEnter({\n key: eventKey,\n domEvent: e\n });\n };\n\n _this.onClick = function (e) {\n var _this$props3 = _this.props,\n eventKey = _this$props3.eventKey,\n multiple = _this$props3.multiple,\n onClick = _this$props3.onClick,\n onSelect = _this$props3.onSelect,\n onDeselect = _this$props3.onDeselect,\n isSelected = _this$props3.isSelected;\n\n var info = {\n key: eventKey,\n keyPath: [eventKey],\n item: _this,\n domEvent: e\n };\n onClick(info);\n if (multiple) {\n if (isSelected) {\n onDeselect(info);\n } else {\n onSelect(info);\n }\n } else if (!isSelected) {\n onSelect(info);\n }\n };\n\n return _this;\n }\n\n MenuItem.prototype.componentDidMount = function componentDidMount() {\n // invoke customized ref to expose component to mixin\n this.callRef();\n };\n\n MenuItem.prototype.componentDidUpdate = function componentDidUpdate() {\n if (this.props.active) {\n (0, _domScrollIntoView2['default'])(_reactDom2['default'].findDOMNode(this), _reactDom2['default'].findDOMNode(this.props.parentMenu), {\n onlyScrollIfNeeded: true\n });\n }\n this.callRef();\n };\n\n MenuItem.prototype.componentWillUnmount = function componentWillUnmount() {\n var props = this.props;\n if (props.onDestroy) {\n props.onDestroy(props.eventKey);\n }\n };\n\n MenuItem.prototype.getPrefixCls = function getPrefixCls() {\n return this.props.rootPrefixCls + '-item';\n };\n\n MenuItem.prototype.getActiveClassName = function getActiveClassName() {\n return this.getPrefixCls() + '-active';\n };\n\n MenuItem.prototype.getSelectedClassName = function getSelectedClassName() {\n return this.getPrefixCls() + '-selected';\n };\n\n MenuItem.prototype.getDisabledClassName = function getDisabledClassName() {\n return this.getPrefixCls() + '-disabled';\n };\n\n MenuItem.prototype.callRef = function callRef() {\n if (this.props.manualRef) {\n this.props.manualRef(this);\n }\n };\n\n MenuItem.prototype.render = function render() {\n var _classNames;\n\n var props = (0, _extends3['default'])({}, this.props);\n var className = (0, _classnames2['default'])(this.getPrefixCls(), props.className, (_classNames = {}, _classNames[this.getActiveClassName()] = !props.disabled && props.active, _classNames[this.getSelectedClassName()] = props.isSelected, _classNames[this.getDisabledClassName()] = props.disabled, _classNames));\n var attrs = (0, _extends3['default'])({}, props.attribute, {\n title: props.title,\n className: className,\n // set to menuitem by default\n role: props.role || 'menuitem',\n 'aria-disabled': props.disabled\n });\n\n if (props.role === 'option') {\n // overwrite to option\n attrs = (0, _extends3['default'])({}, attrs, {\n role: 'option',\n 'aria-selected': props.isSelected\n });\n } else if (props.role === null || props.role === 'none') {\n // sometimes we want to specify role inside
  • element\n //
  • Link
  • would be a good example\n // in this case the role on
  • should be \"none\" to\n // remove the implied listitem role.\n // https://www.w3.org/TR/wai-aria-practices-1.1/examples/menubar/menubar-1/menubar-1.html\n attrs.role = 'none';\n }\n // In case that onClick/onMouseLeave/onMouseEnter is passed down from owner\n var mouseEvent = {\n onClick: props.disabled ? null : this.onClick,\n onMouseLeave: props.disabled ? null : this.onMouseLeave,\n onMouseEnter: props.disabled ? null : this.onMouseEnter\n };\n var style = (0, _extends3['default'])({}, props.style);\n if (props.mode === 'inline') {\n style.paddingLeft = props.inlineIndent * props.level;\n }\n _util.menuAllProps.forEach(function (key) {\n return delete props[key];\n });\n var icon = this.props.itemIcon;\n if (typeof this.props.itemIcon === 'function') {\n icon = _react2['default'].createElement(this.props.itemIcon, this.props);\n }\n return _react2['default'].createElement(\n 'li',\n (0, _extends3['default'])({}, props, attrs, mouseEvent, {\n style: style\n }),\n props.children,\n icon\n );\n };\n\n return MenuItem;\n}(_react2['default'].Component);\n\nMenuItem.propTypes = {\n attribute: _propTypes2['default'].object,\n rootPrefixCls: _propTypes2['default'].string,\n eventKey: _propTypes2['default'].string,\n active: _propTypes2['default'].bool,\n children: _propTypes2['default'].any,\n selectedKeys: _propTypes2['default'].array,\n disabled: _propTypes2['default'].bool,\n title: _propTypes2['default'].string,\n onItemHover: _propTypes2['default'].func,\n onSelect: _propTypes2['default'].func,\n onClick: _propTypes2['default'].func,\n onDeselect: _propTypes2['default'].func,\n parentMenu: _propTypes2['default'].object,\n onDestroy: _propTypes2['default'].func,\n onMouseEnter: _propTypes2['default'].func,\n onMouseLeave: _propTypes2['default'].func,\n multiple: _propTypes2['default'].bool,\n isSelected: _propTypes2['default'].bool,\n manualRef: _propTypes2['default'].func,\n itemIcon: _propTypes2['default'].oneOfType([_propTypes2['default'].func, _propTypes2['default'].node])\n};\nMenuItem.defaultProps = {\n onSelect: _util.noop,\n onMouseEnter: _util.noop,\n onMouseLeave: _util.noop,\n manualRef: _util.noop\n};\n\n\nMenuItem.isMenuItem = true;\n\nvar connected = (0, _miniStore.connect)(function (_ref, _ref2) {\n var activeKey = _ref.activeKey,\n selectedKeys = _ref.selectedKeys;\n var eventKey = _ref2.eventKey,\n subMenuKey = _ref2.subMenuKey;\n return {\n active: activeKey[subMenuKey] === eventKey,\n isSelected: selectedKeys.indexOf(eventKey) !== -1\n };\n})(MenuItem);\n\nexports['default'] = connected;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rc-menu/lib/MenuItem.js\n// module id = 586\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');\n\nvar _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _util = require('./util');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar MenuItemGroup = function (_React$Component) {\n (0, _inherits3['default'])(MenuItemGroup, _React$Component);\n\n function MenuItemGroup() {\n var _temp, _this, _ret;\n\n (0, _classCallCheck3['default'])(this, MenuItemGroup);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.renderInnerMenuItem = function (item) {\n var _this$props = _this.props,\n renderMenuItem = _this$props.renderMenuItem,\n index = _this$props.index;\n\n return renderMenuItem(item, index, _this.props.subMenuKey);\n }, _temp), (0, _possibleConstructorReturn3['default'])(_this, _ret);\n }\n\n MenuItemGroup.prototype.render = function render() {\n var props = (0, _objectWithoutProperties3['default'])(this.props, []);\n var _props$className = props.className,\n className = _props$className === undefined ? '' : _props$className,\n rootPrefixCls = props.rootPrefixCls;\n\n var titleClassName = rootPrefixCls + '-item-group-title';\n var listClassName = rootPrefixCls + '-item-group-list';\n var title = props.title,\n children = props.children;\n\n _util.menuAllProps.forEach(function (key) {\n return delete props[key];\n });\n\n // Set onClick to null, to ignore propagated onClick event\n delete props.onClick;\n\n return _react2['default'].createElement(\n 'li',\n (0, _extends3['default'])({}, props, { className: className + ' ' + rootPrefixCls + '-item-group' }),\n _react2['default'].createElement(\n 'div',\n {\n className: titleClassName,\n title: typeof title === 'string' ? title : undefined\n },\n title\n ),\n _react2['default'].createElement(\n 'ul',\n { className: listClassName },\n _react2['default'].Children.map(children, this.renderInnerMenuItem)\n )\n );\n };\n\n return MenuItemGroup;\n}(_react2['default'].Component);\n\nMenuItemGroup.propTypes = {\n renderMenuItem: _propTypes2['default'].func,\n index: _propTypes2['default'].number,\n className: _propTypes2['default'].string,\n subMenuKey: _propTypes2['default'].string,\n rootPrefixCls: _propTypes2['default'].string\n};\nMenuItemGroup.defaultProps = {\n disabled: true\n};\n\n\nMenuItemGroup.isMenuItemGroup = true;\n\nexports['default'] = MenuItemGroup;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rc-menu/lib/MenuItemGroup.js\n// module id = 587\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar Divider = function (_React$Component) {\n (0, _inherits3['default'])(Divider, _React$Component);\n\n function Divider() {\n (0, _classCallCheck3['default'])(this, Divider);\n return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments));\n }\n\n Divider.prototype.render = function render() {\n var _props = this.props,\n className = _props.className,\n rootPrefixCls = _props.rootPrefixCls,\n style = _props.style;\n\n return _react2['default'].createElement('li', {\n className: className + ' ' + rootPrefixCls + '-item-divider',\n style: style\n });\n };\n\n return Divider;\n}(_react2['default'].Component);\n\nDivider.propTypes = {\n className: _propTypes2['default'].string,\n rootPrefixCls: _propTypes2['default'].string,\n style: _propTypes2['default'].object\n};\nDivider.defaultProps = {\n // To fix keyboard UX.\n disabled: true,\n className: '',\n style: {}\n};\nexports['default'] = Divider;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rc-menu/lib/Divider.js\n// module id = 588\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**\n * This source code is quoted from rc-select.\n * homepage: https://github.com/react-component/select\n */\n\n\nvar Option = function (_React$Component) {\n _inherits(Option, _React$Component);\n\n function Option() {\n _classCallCheck(this, Option);\n\n return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n return Option;\n}(_react2[\"default\"].Component);\n\nOption.propTypes = {\n value: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].string, _propTypes2[\"default\"].number])\n};\nOption.isSelectOption = true;\nexports[\"default\"] = Option;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-select/build/Option.js\n// module id = 589\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.UNSELECTABLE_ATTRIBUTE = exports.UNSELECTABLE_STYLE = undefined;\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nexports.toTitle = toTitle;\nexports.getValuePropValue = getValuePropValue;\nexports.getPropValue = getPropValue;\nexports.isMultiple = isMultiple;\nexports.isCombobox = isCombobox;\nexports.isMultipleOrTags = isMultipleOrTags;\nexports.isMultipleOrTagsOrCombobox = isMultipleOrTagsOrCombobox;\nexports.isSingleMode = isSingleMode;\nexports.toArray = toArray;\nexports.getMapKey = getMapKey;\nexports.preventDefaultEvent = preventDefaultEvent;\nexports.findIndexInValueBySingleValue = findIndexInValueBySingleValue;\nexports.getLabelFromPropsValue = getLabelFromPropsValue;\nexports.getSelectKeys = getSelectKeys;\nexports.findFirstMenuItem = findFirstMenuItem;\nexports.includesSeparators = includesSeparators;\nexports.splitBySeparators = splitBySeparators;\nexports.defaultFilterFn = defaultFilterFn;\nexports.validateOptionValue = validateOptionValue;\nexports.saveRef = saveRef;\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction toTitle(title) {\n if (typeof title === 'string') {\n return title;\n }\n return null;\n}\n\nfunction getValuePropValue(child) {\n if (!child) {\n return null;\n }\n\n var props = child.props;\n if ('value' in props) {\n return props.value;\n }\n if (child.key) {\n return child.key;\n }\n if (child.type && child.type.isSelectOptGroup && props.label) {\n return props.label;\n }\n throw new Error('Need at least a key or a value or a label (only for OptGroup) for ' + child);\n}\n\nfunction getPropValue(child, prop) {\n if (prop === 'value') {\n return getValuePropValue(child);\n }\n return child.props[prop];\n}\n\nfunction isMultiple(props) {\n return props.multiple;\n}\n\nfunction isCombobox(props) {\n return props.combobox;\n}\n\nfunction isMultipleOrTags(props) {\n return props.multiple || props.tags;\n}\n\nfunction isMultipleOrTagsOrCombobox(props) {\n return isMultipleOrTags(props) || isCombobox(props);\n}\n\nfunction isSingleMode(props) {\n return !isMultipleOrTagsOrCombobox(props);\n}\n\nfunction toArray(value) {\n var ret = value;\n if (value === undefined) {\n ret = [];\n } else if (!Array.isArray(value)) {\n ret = [value];\n }\n return ret;\n}\n\nfunction getMapKey(value) {\n return (typeof value === 'undefined' ? 'undefined' : _typeof(value)) + '-' + value;\n}\n\nfunction preventDefaultEvent(e) {\n e.preventDefault();\n}\n\nfunction findIndexInValueBySingleValue(value, singleValue) {\n var index = -1;\n for (var i = 0; i < value.length; i++) {\n if (value[i] === singleValue) {\n index = i;\n break;\n }\n }\n return index;\n}\n\nfunction getLabelFromPropsValue(value, key) {\n var label = void 0;\n value = toArray(value);\n for (var i = 0; i < value.length; i++) {\n if (value[i].key === key) {\n label = value[i].label;\n break;\n }\n }\n return label;\n}\n\nfunction getSelectKeys(menuItems, value) {\n if (value === null || value === undefined) {\n return [];\n }\n var selectedKeys = [];\n _react2[\"default\"].Children.forEach(menuItems, function (item) {\n if (item.type.isMenuItemGroup) {\n selectedKeys = selectedKeys.concat(getSelectKeys(item.props.children, value));\n } else {\n var itemValue = getValuePropValue(item);\n var itemKey = item.key;\n if (findIndexInValueBySingleValue(value, itemValue) !== -1 && itemKey) {\n selectedKeys.push(itemKey);\n }\n }\n });\n return selectedKeys;\n}\n\nvar UNSELECTABLE_STYLE = exports.UNSELECTABLE_STYLE = {\n userSelect: 'none',\n WebkitUserSelect: 'none'\n};\n\nvar UNSELECTABLE_ATTRIBUTE = exports.UNSELECTABLE_ATTRIBUTE = {\n unselectable: 'on'\n};\n\nfunction findFirstMenuItem(children) {\n for (var i = 0; i < children.length; i++) {\n var child = children[i];\n if (child.type.isMenuItemGroup) {\n var found = findFirstMenuItem(child.props.children);\n if (found) {\n return found;\n }\n } else if (!child.props.disabled) {\n return child;\n }\n }\n return null;\n}\n\nfunction includesSeparators(string, separators) {\n for (var i = 0; i < separators.length; ++i) {\n if (string.lastIndexOf(separators[i]) > 0) {\n return true;\n }\n }\n return false;\n}\n\nfunction splitBySeparators(string, separators) {\n var reg = new RegExp('[' + separators.join() + ']');\n return string.split(reg).filter(function (token) {\n return token;\n });\n}\n\nfunction defaultFilterFn(input, child) {\n if (child.props.disabled) {\n return false;\n }\n var value = toArray(getPropValue(child, this.props.optionFilterProp)).join('');\n return value.toLowerCase().indexOf(input.toLowerCase()) > -1;\n}\n\nfunction validateOptionValue(value, props) {\n if (isSingleMode(props) || isMultiple(props)) {\n return;\n }\n if (typeof value !== 'string') {\n throw new Error('Invalid `value` of type `' + (typeof value === 'undefined' ? 'undefined' : _typeof(value)) + '` supplied to Option, ' + 'expected `string` when `tags/combobox` is `true`.');\n }\n}\n\nfunction saveRef(instance, name) {\n return function (node) {\n instance[name] = node;\n };\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-select/build/util.js\n// module id = 590\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _trigger = require('bee-overlay/build/trigger');\n\nvar _trigger2 = _interopRequireDefault(_trigger);\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _reactDom = require('react-dom');\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _util = require('./util');\n\nvar _DropdownMenu = require('./DropdownMenu');\n\nvar _DropdownMenu2 = _interopRequireDefault(_DropdownMenu);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**\n * This source code is quoted from rc-select.\n * homepage: https://github.com/react-component/select\n */\n\n\n_trigger2[\"default\"].displayName = 'Trigger';\n\nvar BUILT_IN_PLACEMENTS = {\n bottomLeft: {\n points: ['tl', 'bl'],\n offset: [0, 4],\n overflow: {\n adjustX: 0,\n adjustY: 1\n }\n },\n topLeft: {\n points: ['bl', 'tl'],\n offset: [0, -4],\n overflow: {\n adjustX: 0,\n adjustY: 1\n }\n }\n};\n\nvar SelectTrigger = function (_React$Component) {\n _inherits(SelectTrigger, _React$Component);\n\n function SelectTrigger(props) {\n _classCallCheck(this, SelectTrigger);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));\n\n _initialiseProps.call(_this);\n\n _this.saveDropdownMenuRef = (0, _util.saveRef)(_this, 'dropdownMenuRef');\n _this.saveTriggerRef = (0, _util.saveRef)(_this, 'triggerRef');\n\n _this.state = {\n dropdownWidth: null\n };\n return _this;\n }\n\n SelectTrigger.prototype.componentDidMount = function componentDidMount() {\n if (this.props.open) {\n //宽度计算时机修改\n this.setDropdownWidth();\n }\n };\n\n SelectTrigger.prototype.componentDidUpdate = function componentDidUpdate() {\n if (this.props.visible) {\n //宽度计算时机修改\n this.setDropdownWidth();\n }\n };\n\n SelectTrigger.prototype.render = function render() {\n var _popupClassName;\n\n var _props = this.props,\n onPopupFocus = _props.onPopupFocus,\n props = _objectWithoutProperties(_props, ['onPopupFocus']);\n\n var multiple = props.multiple,\n visible = props.visible,\n inputValue = props.inputValue,\n dropdownAlign = props.dropdownAlign,\n disabled = props.disabled,\n showSearch = props.showSearch,\n dropdownClassName = props.dropdownClassName,\n dropdownStyle = props.dropdownStyle,\n dropdownMatchSelectWidth = props.dropdownMatchSelectWidth;\n\n var dropdownPrefixCls = this.getDropdownPrefixCls();\n var popupClassName = (_popupClassName = {}, _defineProperty(_popupClassName, dropdownClassName, !!dropdownClassName), _defineProperty(_popupClassName, dropdownPrefixCls + '--' + (multiple ? 'multiple' : 'single'), 1), _popupClassName);\n var popupElement = this.getDropdownElement({\n menuItems: props.options,\n onPopupFocus: onPopupFocus,\n multiple: multiple,\n inputValue: inputValue,\n visible: visible\n });\n var hideAction = void 0;\n if (disabled) {\n hideAction = [];\n } else if ((0, _util.isSingleMode)(props) && !showSearch) {\n hideAction = ['click'];\n } else {\n hideAction = ['blur'];\n }\n var popupStyle = _extends({}, dropdownStyle);\n var widthProp = dropdownMatchSelectWidth ? 'width' : 'minWidth';\n if (this.state.dropdownWidth) {\n popupStyle[widthProp] = this.state.dropdownWidth + 'px';\n }\n\n return _react2[\"default\"].createElement(\n _trigger2[\"default\"],\n _extends({}, props, {\n showAction: disabled ? [] : this.props.showAction,\n hideAction: hideAction,\n ref: this.saveTriggerRef,\n popupPlacement: 'bottomLeft',\n builtinPlacements: BUILT_IN_PLACEMENTS,\n prefixCls: dropdownPrefixCls,\n popupTransitionName: this.getDropdownTransitionName(),\n onPopupVisibleChange: props.onDropdownVisibleChange,\n popup: popupElement,\n popupAlign: dropdownAlign,\n popupVisible: visible,\n getPopupContainer: props.getPopupContainer,\n popupClassName: (0, _classnames2[\"default\"])(popupClassName),\n popupStyle: popupStyle\n }),\n props.children\n );\n };\n\n return SelectTrigger;\n}(_react2[\"default\"].Component);\n\nSelectTrigger.propTypes = {\n onPopupFocus: _propTypes2[\"default\"].func,\n onPopupScroll: _propTypes2[\"default\"].func,\n dropdownMatchSelectWidth: _propTypes2[\"default\"].bool,\n dropdownAlign: _propTypes2[\"default\"].object,\n visible: _propTypes2[\"default\"].bool,\n disabled: _propTypes2[\"default\"].bool,\n showSearch: _propTypes2[\"default\"].bool,\n dropdownClassName: _propTypes2[\"default\"].string,\n multiple: _propTypes2[\"default\"].bool,\n inputValue: _propTypes2[\"default\"].string,\n filterOption: _propTypes2[\"default\"].any,\n options: _propTypes2[\"default\"].any,\n prefixCls: _propTypes2[\"default\"].string,\n popupClassName: _propTypes2[\"default\"].string,\n children: _propTypes2[\"default\"].any,\n showAction: _propTypes2[\"default\"].arrayOf(_propTypes2[\"default\"].string),\n menuItemSelectedIcon: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].func, _propTypes2[\"default\"].node])\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this2 = this;\n\n this.setDropdownWidth = function () {\n if (!_this2.props.dropdownMatchSelectWidth) {\n return;\n }\n var width = _reactDom2[\"default\"].findDOMNode(_this2).offsetWidth;\n if (width !== _this2.state.dropdownWidth) {\n _this2.setState({ dropdownWidth: width });\n }\n };\n\n this.getInnerMenu = function () {\n return _this2.dropdownMenuRef && _this2.dropdownMenuRef.menuRef;\n };\n\n this.getPopupDOMNode = function () {\n return _this2.triggerRef.getPopupDomNode();\n };\n\n this.getDropdownElement = function (newProps) {\n var props = _this2.props;\n return _react2[\"default\"].createElement(_DropdownMenu2[\"default\"], _extends({\n ref: _this2.saveDropdownMenuRef\n }, newProps, {\n clsPrefix: _this2.getDropdownPrefixCls(),\n onMenuSelect: props.onMenuSelect,\n onMenuDeselect: props.onMenuDeselect,\n onPopupScroll: props.onPopupScroll,\n value: props.value,\n backfillValue: props.backfillValue,\n firstActiveValue: props.firstActiveValue,\n defaultActiveFirstOption: props.defaultActiveFirstOption,\n dropdownMenuStyle: props.dropdownMenuStyle,\n menuItemSelectedIcon: props.menuItemSelectedIcon\n }));\n };\n\n this.getDropdownTransitionName = function () {\n var props = _this2.props;\n var transitionName = props.transitionName;\n if (!transitionName && props.animation) {\n transitionName = _this2.getDropdownPrefixCls() + '-' + props.animation;\n }\n return transitionName;\n };\n\n this.getDropdownPrefixCls = function () {\n return _this2.props.prefixCls + '-dropdown';\n };\n};\n\nexports[\"default\"] = SelectTrigger;\n\n\nSelectTrigger.displayName = 'SelectTrigger';\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-select/build/SelectTrigger.js\n// module id = 591\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = require('react-dom');\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _tinperBeeCore = require('tinper-bee-core');\n\nvar _rcMenu = require('rc-menu');\n\nvar _rcMenu2 = _interopRequireDefault(_rcMenu);\n\nvar _domScrollIntoView = require('dom-scroll-into-view');\n\nvar _domScrollIntoView2 = _interopRequireDefault(_domScrollIntoView);\n\nvar _raf = require('raf');\n\nvar _raf2 = _interopRequireDefault(_raf);\n\nvar _util = require('./util');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**\n * This source code is quoted from rc-select.\n * homepage: https://github.com/react-component/select\n */\n\n\nvar DropdownMenu = function (_React$Component) {\n _inherits(DropdownMenu, _React$Component);\n\n function DropdownMenu(props) {\n _classCallCheck(this, DropdownMenu);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));\n\n _this.scrollActiveItemToView = function () {\n // scroll into view\n var itemComponent = (0, _reactDom.findDOMNode)(_this.firstActiveItem);\n var _this$props = _this.props,\n value = _this$props.value,\n visible = _this$props.visible,\n firstActiveValue = _this$props.firstActiveValue;\n\n\n if (!itemComponent || !visible) {\n return;\n }\n var scrollIntoViewOpts = {\n onlyScrollIfNeeded: true\n };\n if ((!value || value.length === 0) && firstActiveValue) {\n scrollIntoViewOpts.alignWithTop = true;\n }\n\n // Delay to scroll since current frame item position is not ready when pre view is by filter\n // https://github.com/ant-design/ant-design/issues/11268#issuecomment-406634462\n _this.rafInstance = (0, _raf2[\"default\"])(function () {\n (0, _domScrollIntoView2[\"default\"])(itemComponent, (0, _reactDom.findDOMNode)(_this.menuRef), scrollIntoViewOpts);\n });\n };\n\n _this.lastInputValue = props.inputValue;\n _this.saveMenuRef = (0, _util.saveRef)(_this, 'menuRef');\n return _this;\n }\n\n DropdownMenu.prototype.componentDidMount = function componentDidMount() {\n this.scrollActiveItemToView();\n this.lastVisible = this.props.visible;\n };\n\n DropdownMenu.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {\n if (!nextProps.visible) {\n this.lastVisible = false;\n }\n // freeze when hide\n return nextProps.visible || nextProps.inputValue !== this.props.inputValue;\n };\n\n DropdownMenu.prototype.componentDidUpdate = function componentDidUpdate(prevProps) {\n var props = this.props;\n if (!prevProps.visible && props.visible) {\n this.scrollActiveItemToView();\n }\n this.lastVisible = props.visible;\n this.lastInputValue = props.inputValue;\n };\n\n DropdownMenu.prototype.componentWillUnmount = function componentWillUnmount() {\n if (this.rafInstance && this.rafInstance.cancel) {\n this.rafInstance.cancel();\n }\n };\n\n DropdownMenu.prototype.renderMenu = function renderMenu() {\n var _this2 = this;\n\n var props = this.props;\n var menuItems = props.menuItems,\n menuItemSelectedIcon = props.menuItemSelectedIcon,\n defaultActiveFirstOption = props.defaultActiveFirstOption,\n value = props.value,\n prefixCls = props.prefixCls,\n multiple = props.multiple,\n onMenuSelect = props.onMenuSelect,\n inputValue = props.inputValue,\n firstActiveValue = props.firstActiveValue,\n backfillValue = props.backfillValue,\n clsPrefix = props.clsPrefix;\n\n if (menuItems && menuItems.length) {\n var menuProps = {};\n if (multiple) {\n menuProps.onDeselect = props.onMenuDeselect;\n menuProps.onSelect = onMenuSelect;\n } else {\n menuProps.onClick = onMenuSelect;\n }\n\n var selectedKeys = (0, _util.getSelectKeys)(menuItems, value);\n var activeKeyProps = {};\n\n var clonedMenuItems = menuItems;\n if (selectedKeys.length || firstActiveValue) {\n if (props.visible && !this.lastVisible) {\n activeKeyProps.activeKey = selectedKeys[0] || firstActiveValue;\n }\n var foundFirst = false;\n // set firstActiveItem via cloning menus\n // for scroll into view\n var clone = function clone(item) {\n if (!foundFirst && selectedKeys.indexOf(item.key) !== -1 || !foundFirst && !selectedKeys.length && firstActiveValue.indexOf(item.key) !== -1) {\n foundFirst = true;\n return (0, _react.cloneElement)(item, {\n ref: function ref(_ref) {\n _this2.firstActiveItem = _ref;\n }\n });\n }\n return item;\n };\n\n clonedMenuItems = menuItems.map(function (item) {\n if (item.type.isMenuItemGroup) {\n var children = (0, _tinperBeeCore.toArray)(item.props.children).map(clone);\n return (0, _react.cloneElement)(item, {}, children);\n }\n return clone(item);\n });\n } else {\n // Clear firstActiveItem when dropdown menu items was empty\n // Avoid `Unable to find node on an unmounted component`\n // https://github.com/ant-design/ant-design/issues/10774\n this.firstActiveItem = null;\n }\n\n // clear activeKey when inputValue change\n var lastValue = value && value[value.length - 1];\n if (inputValue !== this.lastInputValue && (!lastValue || lastValue !== backfillValue)) {\n activeKeyProps.activeKey = '';\n }\n return _react2[\"default\"].createElement(\n _rcMenu2[\"default\"],\n _extends({\n ref: this.saveMenuRef,\n style: this.props.dropdownMenuStyle,\n defaultActiveFirst: defaultActiveFirstOption,\n role: 'listbox',\n itemIcon: multiple ? menuItemSelectedIcon : null\n }, activeKeyProps, {\n multiple: multiple\n }, menuProps, {\n selectedKeys: selectedKeys,\n prefixCls: clsPrefix + '-menu'\n }),\n clonedMenuItems\n );\n }\n return null;\n };\n\n DropdownMenu.prototype.render = function render() {\n var renderMenu = this.renderMenu();\n return renderMenu ? _react2[\"default\"].createElement(\n 'div',\n {\n style: {\n overflow: 'auto',\n transform: 'translateZ(0)'\n },\n onFocus: this.props.onPopupFocus,\n onMouseDown: _util.preventDefaultEvent,\n onScroll: this.props.onPopupScroll\n },\n renderMenu\n ) : null;\n };\n\n return DropdownMenu;\n}(_react2[\"default\"].Component);\n\nDropdownMenu.displayName = 'DropdownMenu';\nDropdownMenu.propTypes = {\n defaultActiveFirstOption: _propTypes2[\"default\"].bool,\n value: _propTypes2[\"default\"].any,\n dropdownMenuStyle: _propTypes2[\"default\"].object,\n multiple: _propTypes2[\"default\"].bool,\n onPopupFocus: _propTypes2[\"default\"].func,\n onPopupScroll: _propTypes2[\"default\"].func,\n onMenuDeSelect: _propTypes2[\"default\"].func,\n onMenuSelect: _propTypes2[\"default\"].func,\n prefixCls: _propTypes2[\"default\"].string,\n menuItems: _propTypes2[\"default\"].any,\n inputValue: _propTypes2[\"default\"].string,\n visible: _propTypes2[\"default\"].bool,\n firstActiveValue: _propTypes2[\"default\"].string,\n menuItemSelectedIcon: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].func, _propTypes2[\"default\"].node])\n};\nexports[\"default\"] = DropdownMenu;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-select/build/DropdownMenu.js\n// module id = 592\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.SelectPropTypes = undefined;\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction valueType(props, propName, componentName) {\n var basicType = _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].string, _propTypes2[\"default\"].number]);\n\n var labelInValueShape = _propTypes2[\"default\"].shape({\n key: basicType.isRequired,\n label: _propTypes2[\"default\"].node\n });\n if (props.labelInValue) {\n var validate = _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].arrayOf(labelInValueShape), labelInValueShape]);\n var error = validate.apply(undefined, arguments);\n if (error) {\n return new Error('Invalid prop `' + propName + '` supplied to `' + componentName + '`, ' + ('when you set `labelInValue` to `true`, `' + propName + '` should in ') + 'shape of `{ key: string | number, label?: ReactNode }`.');\n }\n } else if ((props.mode === 'multiple' || props.mode === 'tags' || props.multiple || props.tags) && props[propName] === '') {\n return new Error('Invalid prop `' + propName + '` of type `string` supplied to `' + componentName + '`, ' + 'expected `array` when `multiple` or `tags` is `true`.');\n } else {\n var _validate = _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].arrayOf(basicType), basicType]);\n return _validate.apply(undefined, arguments);\n }\n} /**\n * This source code is quoted from rc-select.\n * homepage: https://github.com/react-component/select\n */\nvar SelectPropTypes = exports.SelectPropTypes = {\n id: _propTypes2[\"default\"].string,\n defaultActiveFirstOption: _propTypes2[\"default\"].bool,\n multiple: _propTypes2[\"default\"].bool,\n filterOption: _propTypes2[\"default\"].any,\n children: _propTypes2[\"default\"].any,\n showSearch: _propTypes2[\"default\"].bool,\n disabled: _propTypes2[\"default\"].bool,\n allowClear: _propTypes2[\"default\"].bool,\n showArrow: _propTypes2[\"default\"].bool,\n tags: _propTypes2[\"default\"].bool,\n prefixCls: _propTypes2[\"default\"].string,\n className: _propTypes2[\"default\"].string,\n transitionName: _propTypes2[\"default\"].string,\n optionLabelProp: _propTypes2[\"default\"].string,\n optionFilterProp: _propTypes2[\"default\"].string,\n animation: _propTypes2[\"default\"].string,\n choiceTransitionName: _propTypes2[\"default\"].string,\n open: _propTypes2[\"default\"].bool,\n defaultOpen: _propTypes2[\"default\"].bool,\n onChange: _propTypes2[\"default\"].func,\n onBlur: _propTypes2[\"default\"].func,\n onFocus: _propTypes2[\"default\"].func,\n onSelect: _propTypes2[\"default\"].func,\n onSearch: _propTypes2[\"default\"].func,\n onPopupScroll: _propTypes2[\"default\"].func,\n onMouseEnter: _propTypes2[\"default\"].func,\n onMouseLeave: _propTypes2[\"default\"].func,\n onInputKeyDown: _propTypes2[\"default\"].func,\n placeholder: _propTypes2[\"default\"].any,\n onDeselect: _propTypes2[\"default\"].func,\n labelInValue: _propTypes2[\"default\"].bool,\n value: valueType,\n defaultValue: valueType,\n dropdownStyle: _propTypes2[\"default\"].object,\n maxTagTextLength: _propTypes2[\"default\"].number,\n maxTagCount: _propTypes2[\"default\"].number,\n maxTagPlaceholder: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].node, _propTypes2[\"default\"].func]),\n tokenSeparators: _propTypes2[\"default\"].arrayOf(_propTypes2[\"default\"].string),\n getInputElement: _propTypes2[\"default\"].func,\n showAction: _propTypes2[\"default\"].arrayOf(_propTypes2[\"default\"].string),\n clearIcon: _propTypes2[\"default\"].node,\n inputIcon: _propTypes2[\"default\"].node,\n removeIcon: _propTypes2[\"default\"].node,\n menuItemSelectedIcon: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].func, _propTypes2[\"default\"].node])\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-select/build/PropTypes.js\n// module id = 593\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar OptGroup = function (_React$Component) {\n _inherits(OptGroup, _React$Component);\n\n function OptGroup() {\n _classCallCheck(this, OptGroup);\n\n return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n return OptGroup;\n}(_react2[\"default\"].Component);\n\nOptGroup.isSelectOptGroup = true;\nexports[\"default\"] = OptGroup;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-select/build/OptGroup.js\n// module id = 594\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _InputNumber = require('./InputNumber');\n\nvar _InputNumber2 = _interopRequireDefault(_InputNumber);\n\nvar _InputNumberGroup = require('./InputNumberGroup');\n\nvar _InputNumberGroup2 = _interopRequireDefault(_InputNumberGroup);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\n_InputNumber2[\"default\"].InputNumberGroup = _InputNumberGroup2[\"default\"];\n\nexports[\"default\"] = _InputNumber2[\"default\"];\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-input-number/build/index.js\n// module id = 595\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _beeInputGroup = require('bee-input-group');\n\nvar _beeInputGroup2 = _interopRequireDefault(_beeInputGroup);\n\nvar _beeFormControl = require('bee-form-control');\n\nvar _beeFormControl2 = _interopRequireDefault(_beeFormControl);\n\nvar _beeMessage = require('bee-message');\n\nvar _beeMessage2 = _interopRequireDefault(_beeMessage);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _i18n = require('./i18n');\n\nvar _i18n2 = _interopRequireDefault(_i18n);\n\nvar _tool = require('bee-locale/build/tool');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = {\n max: _propTypes2[\"default\"].number,\n min: _propTypes2[\"default\"].number,\n step: _propTypes2[\"default\"].number,\n autoWidth: _propTypes2[\"default\"].bool,\n precision: _propTypes2[\"default\"].number,\n format: _propTypes2[\"default\"].func,\n delay: _propTypes2[\"default\"].number,\n disabled: _propTypes2[\"default\"].bool,\n toThousands: _propTypes2[\"default\"].bool,\n locale: _propTypes2[\"default\"].object,\n toNumber: _propTypes2[\"default\"].bool, //回调函数内的值是否转换为数值类型\n displayCheckPrompt: _propTypes2[\"default\"].bool, //是否显示超出限制范围之后的检验提示\n minusRight: _propTypes2[\"default\"].bool, //负号是否在右边\n handleBtnClick: _propTypes2[\"default\"].func //加减按钮点击回调\n};\n\nvar defaultProps = {\n value: \"\",\n step: 1,\n clsPrefix: 'u-input-number',\n iconStyle: 'double',\n autoWidth: false,\n delay: 300,\n toNumber: false,\n displayCheckPrompt: false,\n locale: {},\n handleBtnClick: function handleBtnClick() {}\n};\n\n//校验提示\nfunction prompt(content) {\n _beeMessage2[\"default\"].destroy();\n _beeMessage2[\"default\"].create({ content: content, color: 'warninglight' });\n}\n\n/**\n * 千分符\n * @param {要转换的数据} num \n */\nfunction toThousands(number) {\n if (number === '') return '';\n if (number === '0') return '0';\n var num = (number || 0).toString();\n var integer = num.split('.')[0];\n var decimal = num.split('.')[1] || '';\n var result = '';\n while (integer.length > 3) {\n result = ',' + integer.slice(-3) + result;\n integer = integer.slice(0, integer.length - 3);\n }\n if (integer) {\n result = integer + result;\n if (num == '.' || num.indexOf('.') == num.length - 1) {\n result = result + '.' + decimal;\n } else if (decimal) {\n result = result + '.' + decimal;\n }\n }\n if (result[0] == '-') {\n result = result.replace('-,', '-');\n }\n return result;\n}\n\nfunction setCaretPosition(ctrl, pos, need) {\n\n if (ctrl && need) {\n if (ctrl.setSelectionRange) {\n ctrl.focus();\n ctrl.setSelectionRange(pos, pos);\n // IE8 and below\n } else if (ctrl.createTextRange) {\n var range = ctrl.createTextRange();\n range.collapse(true);\n range.moveEnd('character', pos);\n range.moveStart('character', pos);\n range.select();\n }\n }\n}\n\nvar InputNumber = function (_Component) {\n _inherits(InputNumber, _Component);\n\n function InputNumber(props) {\n _classCallCheck(this, InputNumber);\n\n // 初始化状态,加减按钮是否可用,根据当前值判断\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props));\n\n _initialiseProps.call(_this);\n\n var data = _this.judgeValue(props);\n _this.state = {\n value: data.value,\n minusDisabled: data.minusDisabled,\n plusDisabled: data.plusDisabled,\n showValue: toThousands(data.value)\n };\n\n _this.timer = null;\n _this.focus = false;\n _this.selectionStart = 0;\n return _this;\n }\n\n // unThousands = (number) =>{\n // if(!number || number === \"\")return number;\n // number = number.toString();\n // return number.replace(new RegExp(this.props.formatSymbol,'g'),'');\n // // return number.replace(/\\,/g,'');\n // }\n\n /**\n * 校验value\n * @param {*} props \n * @param {原来的值} oldValue \n */\n\n\n InputNumber.prototype.componentDidMount = function componentDidMount() {\n this.setState({\n value: this.props.value,\n showValue: toThousands(this.props.value)\n });\n };\n\n InputNumber.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n if (this.focus) {\n if (nextProps.value == Infinity || nextProps.value == -Infinity) {} else {\n this.setState({\n value: nextProps.value,\n showValue: toThousands(nextProps.value)\n });\n }\n } else {\n var data = this.judgeValue(nextProps, this.state.value);\n this.setState({\n value: data.value,\n showValue: toThousands(data.value),\n minusDisabled: data.minusDisabled,\n plusDisabled: data.plusDisabled\n });\n }\n };\n\n InputNumber.prototype.ComponentWillUnMount = function ComponentWillUnMount() {\n this.clear();\n };\n\n /**\n * @memberof InputNumber\n * type 是否要四舍五入(此参数无效,超长不让输入)\n */\n\n /**\n * 恢复科学技术法的问题\n */\n\n /**\n * 设置增加减少按钮是否可用\n */\n\n /**\n * 减法\n */\n\n /**\n * 加法\n */\n\n\n /**\n * 分离小数和整数\n * @param value\n * @returns {*}\n */\n\n\n InputNumber.prototype.render = function render() {\n var _classes,\n _this2 = this;\n\n var _props = this.props,\n toThousands = _props.toThousands,\n minusRight = _props.minusRight,\n max = _props.max,\n min = _props.min,\n step = _props.step,\n disabled = _props.disabled,\n clsPrefix = _props.clsPrefix,\n className = _props.className,\n delay = _props.delay,\n onBlur = _props.onBlur,\n onFocus = _props.onFocus,\n iconStyle = _props.iconStyle,\n autoWidth = _props.autoWidth,\n onChange = _props.onChange,\n format = _props.format,\n precision = _props.precision,\n toNumber = _props.toNumber,\n others = _objectWithoutProperties(_props, ['toThousands', 'minusRight', 'max', 'min', 'step', 'disabled', 'clsPrefix', 'className', 'delay', 'onBlur', 'onFocus', 'iconStyle', 'autoWidth', 'onChange', 'format', 'precision', 'toNumber']);\n\n var classes = (_classes = {}, _defineProperty(_classes, clsPrefix + '-auto', autoWidth), _defineProperty(_classes, '' + clsPrefix, true), _defineProperty(_classes, clsPrefix + '-lg', others.size === \"lg\"), _defineProperty(_classes, clsPrefix + '-sm', others.size === \"sm\"), _classes);\n\n var _state = this.state,\n value = _state.value,\n minusDisabled = _state.minusDisabled,\n plusDisabled = _state.plusDisabled,\n showValue = _state.showValue;\n\n value = precision != null && !this.focus ? this.getPrecision(value) : value;\n value = format && !this.focus ? format(value) : value;\n value = String(value).indexOf(\"e\") !== -1 ? this.getFullNum(value) : value;\n if (minusRight && String(value).indexOf('-') != -1) {\n value = String(value).replace(\"-\", \"\") + \"-\";\n }\n var disabledCursor = disabled ? ' disabled-cursor' : '';\n var disabledCon = disabled ? ' disabled-con' : '';\n return _react2[\"default\"].createElement(\n 'div',\n { className: clsPrefix + '-out' },\n iconStyle === 'double' ? _react2[\"default\"].createElement(\n _beeInputGroup2[\"default\"],\n { className: (0, _classnames2[\"default\"])(className, classes, disabledCon) },\n _react2[\"default\"].createElement(\n _beeInputGroup2[\"default\"].Addon,\n {\n // onClick={()=>{minusDisabled?'':this.handleBtnClick('down')}}\n className: (minusDisabled && 'disabled') + disabledCursor,\n onMouseDown: this.handleReduceMouseDown,\n onMouseLeave: this.clear,\n onMouseUp: this.clear },\n '-'\n ),\n _react2[\"default\"].createElement(_beeFormControl2[\"default\"], _extends({}, others, {\n value: toThousands ? showValue : value,\n disabled: disabled,\n onBlur: this.handleBlur,\n onFocus: this.handleFocus,\n onChange: this.handleChange,\n ref: function ref(_ref) {\n return _this2.input = _ref;\n }\n })),\n _react2[\"default\"].createElement(\n _beeInputGroup2[\"default\"].Addon,\n {\n // onClick={()=>{plusDisabled?'':this.handleBtnClick('up')}}\n className: (plusDisabled && 'disabled') + disabledCursor,\n onMouseDown: this.handlePlusMouseDown,\n onMouseLeave: this.clear,\n onMouseUp: this.clear },\n '+'\n )\n ) : _react2[\"default\"].createElement(\n _beeInputGroup2[\"default\"],\n {\n className: (0, _classnames2[\"default\"])(className, classes, disabledCon),\n simple: true\n },\n _react2[\"default\"].createElement(_beeFormControl2[\"default\"], _extends({}, others, {\n value: toThousands ? showValue : value,\n disabled: disabled,\n onBlur: this.handleBlur,\n onFocus: this.handleFocus,\n onChange: this.handleChange,\n ref: function ref(_ref2) {\n return _this2.input = _ref2;\n }\n })),\n _react2[\"default\"].createElement(\n _beeInputGroup2[\"default\"].Button,\n null,\n _react2[\"default\"].createElement(\n 'div',\n { className: (0, _classnames2[\"default\"])(\"icon-group\") },\n _react2[\"default\"].createElement(\n 'span',\n {\n // onClick={()=>{plusDisabled?'':this.handleBtnClick('up')}}\n onMouseDown: this.handlePlusMouseDown,\n onMouseLeave: this.clear,\n onMouseUp: this.clear,\n className: (0, _classnames2[\"default\"])('plus', { 'disabled': plusDisabled, 'disabled-cursor': disabledCursor }) },\n _react2[\"default\"].createElement('span', { className: 'uf uf-arrow-up' })\n ),\n _react2[\"default\"].createElement(\n 'span',\n {\n // onClick={()=> minusDisabled?'':this.handleBtnClick('down')}\n onMouseDown: this.handleReduceMouseDown,\n onMouseLeave: this.clear,\n onMouseUp: this.clear,\n className: (0, _classnames2[\"default\"])(\"reduce\", { 'disabled': minusDisabled, 'disabled-cursor': disabledCursor }) },\n _react2[\"default\"].createElement('span', { className: ' uf uf-arrow-down' })\n )\n )\n )\n )\n );\n };\n\n return InputNumber;\n}(_react.Component);\n\nvar _initialiseProps = function _initialiseProps() {\n var _this3 = this;\n\n this.judgeValue = function (props, oldValue) {\n var currentValue = void 0;\n var currentMinusDisabled = false;\n var currentPlusDisabled = false;\n var value = props.value,\n min = props.min,\n max = props.max,\n precision = props.precision,\n onChange = props.onChange,\n displayCheckPrompt = props.displayCheckPrompt;\n\n if (props.minusRight) {\n value = value.toString();\n if (value.indexOf('-') != -1) {\n //所有位置的负号转到前边\n value = value.replace('-', '');\n value = '-' + value;\n }\n value = Number(value);\n }\n if (value != undefined && value != null) {\n if (value === '') {\n currentValue = '';\n return {\n value: '',\n minusDisabled: false,\n plusDisabled: false\n };\n } else {\n currentValue = Number(value) || 0;\n }\n } //lse if (min&&(value!='')) {//mdd中提出bug\n //currentValue = min;\n //} \n else if (value === '0' || value === 0) {\n currentValue = 0;\n } else {\n //NaN\n if (oldValue || oldValue === 0 || oldValue === '0') {\n currentValue = oldValue;\n } else {\n //value为空\n return {\n value: '',\n minusDisabled: false,\n plusDisabled: false\n };\n }\n }\n if (currentValue == -Infinity) {\n return {\n value: min,\n minusDisabled: true,\n plusDisabled: false\n };\n }\n if (currentValue == Infinity) {\n return {\n value: max,\n minusDisabled: false,\n plusDisabled: true\n };\n }\n var local = (0, _tool.getComponentLocale)(props, _this3.context, 'InputNumber', function () {\n return _i18n2[\"default\"];\n });\n if (min && currentValue <= min) {\n if (displayCheckPrompt) prompt(local['msgMin']);\n currentMinusDisabled = true;\n currentValue = min;\n }\n if (max && currentValue >= max) {\n if (displayCheckPrompt) prompt(local['msgMax']);\n currentPlusDisabled = true;\n currentValue = max;\n }\n\n if (props.hasOwnProperty('precision')) {\n // currentValue = Number(currentValue).toFixed(precision);\n currentValue = _this3.getPrecision(currentValue);\n }\n if (props.minusRight) {\n currentValue = currentValue.toString();\n if (currentValue.indexOf('-') != -1) {\n //负号转到后边\n currentValue = currentValue.replace('-', '');\n currentValue = currentValue + '-';\n }\n }\n\n return {\n value: currentValue,\n minusDisabled: currentMinusDisabled,\n plusDisabled: currentPlusDisabled\n };\n };\n\n this.numToFixed = function (value, fixed, type) {\n value = String(value);\n if (!value && value !== \"0\") return value;\n if (!fixed && String(fixed) !== \"0\") return value;\n var preIndex = value.indexOf(\".\");\n if (value.indexOf(\".\") === -1) return value;\n preIndex++;\n var endIndex = preIndex + fixed;\n var precValue = value.substr(preIndex, endIndex) + \"0000000000\";\n if (type) {\n return Number(value).toFixed(fixed);\n }\n return value.split(\".\")[0] + \".\" + precValue.substr(0, fixed);\n };\n\n this.handleChange = function (value) {\n var selectionStart = _this3.input.selectionStart == undefined ? _this3.input.input.selectionStart : _this3.input.selectionStart;\n _this3.selectionStart = selectionStart;\n var _props2 = _this3.props,\n onChange = _props2.onChange,\n toNumber = _props2.toNumber,\n minusRight = _props2.minusRight;\n\n if (value === '') {\n onChange && onChange(value);\n _this3.setState({\n value: value,\n showValue: ''\n });\n return;\n }\n // value = this.unThousands(value);\n if (minusRight) {\n if (value.match(/-/g) && value.match(/-/g).length > 1) return;\n }\n if (isNaN(value) && value !== '.' && value !== '-') return;\n if (value.indexOf(\".\") !== -1) {\n //小数最大值处理\n var prec = String(value.split(\".\")[1]).replace(\"-\", \"\");\n if (_this3.props.precision === 0 && (prec === \"\" || prec != \"\")) return;\n if (_this3.props.precision && prec.length > _this3.props.precision) return;\n if (prec.length > 8) return;\n }\n _this3.setState({\n value: value,\n showValue: toThousands(value)\n });\n if (value === '-') {\n onChange && onChange(value);\n } else if (value == '.' || value.indexOf('.') == value.length - 1) {\n //当输入小数点的时候\n onChange && onChange(value);\n } else if (value[value.indexOf('.') + 1] == 0) {\n //当输入 d.0 的时候,不转换Number\n onChange && onChange(value);\n } else {\n toNumber ? onChange && onChange(Number(value)) : onChange && onChange(value);\n }\n if (_this3.props.toThousands) {\n var stateShowValue = toThousands(_this3.state.value);\n var showValue = toThousands(value);\n var addNumber = 0;\n var delNumber = 0;\n var reg = /[0-9]/;\n for (var i = 0; i < selectionStart; i++) {\n if (!reg.test(showValue[i])) addNumber += 1;\n }\n for (var j = 0; j < selectionStart; j++) {\n if (stateShowValue[j]) {\n if (!reg.test(stateShowValue[j])) delNumber += 1;\n }\n }\n var position = selectionStart + addNumber - delNumber;\n setCaretPosition(_this3.input && _this3.input.input, position, true);\n }\n };\n\n this.handleFocus = function (value, e) {\n _this3.focus = true;\n var _props3 = _this3.props,\n onFocus = _props3.onFocus,\n min = _props3.min,\n max = _props3.max;\n\n onFocus && onFocus(_this3.getPrecision(_this3.state.value), e);\n };\n\n this.getFullNum = function (num) {\n //处理非数字\n if (isNaN(num)) {\n return num;\n };\n\n //处理不需要转换的数字\n var str = '' + num;\n if (!/e/i.test(str)) {\n return num;\n };\n var _precision = _this3.props.precision ? _this3.props.precision : 18;\n return Number(num).toFixed(_precision).replace(/\\.?0+$/, \"\");\n };\n\n this.handleBlur = function (v, e) {\n _this3.focus = false;\n var _props4 = _this3.props,\n onBlur = _props4.onBlur,\n precision = _props4.precision,\n onChange = _props4.onChange,\n toNumber = _props4.toNumber,\n max = _props4.max,\n min = _props4.min,\n displayCheckPrompt = _props4.displayCheckPrompt,\n minusRight = _props4.minusRight,\n round = _props4.round;\n\n var local = (0, _tool.getComponentLocale)(_this3.props, _this3.context, 'InputNumber', function () {\n return _i18n2[\"default\"];\n });\n v = _this3.state.value; //在onBlur的时候不需要活输入框的只,而是要获取state中的值,因为有format的时候就会有问题。\n if (v === '' || !v) {\n _this3.setState({\n value: v\n });\n onChange && onChange(v);\n onBlur && onBlur(v, e);\n return;\n }\n // let value = this.unThousands(v); \n var value = _this3.numToFixed(v, precision, round);\n if (minusRight) {\n if (value.indexOf('-') != -1) {\n //所有位置的负号转到前边\n value = value.replace('-', '');\n value = '-' + value;\n }\n }\n value = isNaN(Number(value)) ? 0 : Number(value);\n if (max && value > max) {\n if (displayCheckPrompt) prompt(local['msgMax']);\n value = max;\n }\n if (min && value < min) {\n if (displayCheckPrompt) prompt(local['msgMin']);\n value = min;\n }\n if (_this3.props.hasOwnProperty('precision')) {\n // value = value.toFixed(precision);\n value = _this3.getPrecision(value);\n }\n value = value.toString();\n if (minusRight && value.indexOf('-') != -1) {\n //负号转到后边\n value = value.replace('-', '');\n value = value + '-';\n }\n _this3.setState({\n value: value,\n showValue: toThousands(value)\n });\n _this3.detailDisable(value);\n if (toNumber && !minusRight) {\n onChange && onChange(value);\n onBlur && onBlur(value, e);\n } else {\n onChange && onChange(value);\n onBlur && onBlur(value, e);\n }\n };\n\n this.detailDisable = function (value) {\n var _props5 = _this3.props,\n max = _props5.max,\n min = _props5.min,\n step = _props5.step;\n\n if (max && (value >= max || Number(value) + Number(step) > max)) {\n _this3.setState({\n plusDisabled: true\n });\n } else {\n _this3.setState({\n plusDisabled: false\n });\n }\n if (min && (value <= min || value - step < min)) {\n _this3.setState({\n minusDisabled: true\n });\n } else {\n _this3.setState({\n minusDisabled: false\n });\n }\n };\n\n this.minus = function (value) {\n var _props6 = _this3.props,\n min = _props6.min,\n max = _props6.max,\n step = _props6.step,\n onChange = _props6.onChange,\n toNumber = _props6.toNumber;\n\n value = value === '-' ? 0 : value;\n if (typeof min === \"undefined\") {\n value = _this3.detail(value, step, 'reduce');\n } else {\n min = Number(min);\n if (value < min) {\n value = min;\n } else {\n var reducedValue = _this3.detail(value, step, 'reduce');\n if (reducedValue >= min) {\n value = reducedValue;\n }\n }\n }\n if (max) {\n max = Number(max);\n if (value > max) {\n value = max;\n }\n }\n\n _this3.setState({\n value: value,\n showValue: toThousands(value)\n }, function () {\n _this3.input.input.focus && _this3.input.input.focus();\n });\n toNumber ? onChange && onChange(Number(value)) : onChange && onChange(value);\n _this3.handleBtnClick('down', value);\n _this3.detailDisable(value);\n };\n\n this.plus = function (value) {\n var _props7 = _this3.props,\n max = _props7.max,\n min = _props7.min,\n step = _props7.step,\n onChange = _props7.onChange,\n toNumber = _props7.toNumber;\n\n value = value === '-' ? 0 : value;\n if (typeof max === \"undefined\") {\n value = _this3.detail(value, step, 'add');\n } else {\n max = Number(max);\n if (max && value > max) {\n value = max;\n } else {\n var addedValue = _this3.detail(value, step, 'add');\n if (max && addedValue <= max) {\n value = addedValue;\n }\n }\n }\n if (min) {\n min = Number(min);\n if (value < min) {\n value = min;\n }\n }\n\n _this3.setState({\n value: value,\n showValue: toThousands(value)\n }, function () {\n _this3.input.input.focus && _this3.input.input.focus();\n });\n toNumber ? onChange && onChange(Number(value)) : onChange && onChange(value);\n _this3.handleBtnClick('up', value);\n _this3.detailDisable(value);\n };\n\n this.detail = function (value, step, type) {\n var precision = _this3.props.precision;\n\n\n var valueFloat = _this3.separate(value);\n var stepFloat = _this3.separate(step);\n\n var ans = void 0;\n var stepFloatLength = stepFloat.toString().length;\n var valueFloatLength = valueFloat.toString().length;\n\n if (typeof precision === 'undefined') {\n precision = Math.max(stepFloatLength, valueFloatLength);\n }\n var coefficient = Math.pow(10, Math.abs(stepFloatLength - valueFloatLength));\n if (type === 'add') {\n ans = (value * coefficient + step * coefficient) / coefficient;\n } else {\n ans = (value * coefficient - step * coefficient) / coefficient;\n }\n\n return ans.toFixed(precision);\n };\n\n this.separate = function (value) {\n if (value == null || value == undefined) {\n return \"\";\n } else {\n value = value.toString();\n if (value.indexOf('.') > -1) {\n return value.split('.')[1];\n } else {\n return \"\";\n }\n }\n };\n\n this.clear = function () {\n if (_this3.timer) {\n clearTimeout(_this3.timer);\n }\n };\n\n this.handlePlusMouseDown = function (e) {\n e.preventDefault && e.preventDefault();\n var _props8 = _this3.props,\n delay = _props8.delay,\n disabled = _props8.disabled;\n var value = _this3.state.value;\n\n if (disabled) return;\n _this3.plus(value);\n _this3.clear();\n _this3.timer = setTimeout(function () {\n _this3.handlePlusMouseDown(e);\n }, delay);\n };\n\n this.handleReduceMouseDown = function (e) {\n e.preventDefault && e.preventDefault();\n var _props9 = _this3.props,\n delay = _props9.delay,\n disabled = _props9.disabled;\n var value = _this3.state.value;\n\n if (disabled) return;\n _this3.minus(value);\n _this3.clear();\n _this3.timer = setTimeout(function () {\n _this3.handleReduceMouseDown(e);\n }, delay);\n };\n\n this.getPrecision = function (value) {\n if (value == null || value == undefined) return value;\n if (!value && value === \"\") return value;\n value = String(value);\n value = value.indexOf(\"e\") !== -1 ? _this3.getFullNum(value) : value;\n var precision = _this3.props.precision;\n\n if (precision === 0) return value;\n if (precision == undefined || value.indexOf(\".\") !== -1 && String(value.split(\".\")[1]).length === precision) {\n return value;\n }\n var before = value.substring(0, 1),\n len = value.length,\n after = value.substring(len - 1, len);\n before = before === \"-\" ? before : \"\";\n after = after === \"-\" ? after : \"\";\n //是科学计数法,不replace - \n if (before) value = value.substring(1, len);\n if (after) value = value.substring(0, len - 1);\n // value = value.replace(\"-\",'');\n var precV = \"000000000000000000000000000000000000000000000000000000000000000000000000\";\n if (value.indexOf(\".\") === -1) {\n precV = precV.substr(0, precision);\n precV = precV ? \".\" + precV : precV;\n if (!isNaN(value) && (value.indexOf('-') != -1 || value.indexOf('+') != -1) && value.indexOf('e') != -1) {//是科学计数法,不拼接0000000\n\n } else {\n value = value + precV;\n }\n }\n return before + Number(value).toFixed(precision) + after;\n };\n\n this.handleBtnClick = function (type, value) {\n _this3.props.handleBtnClick(type, value);\n };\n};\n\n;\n\nInputNumber.defaultProps = defaultProps;\nInputNumber.propTypes = propTypes;\nInputNumber.contextTypes = {\n beeLocale: _propTypes2[\"default\"].object\n};\nexports[\"default\"] = InputNumber;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-input-number/build/InputNumber.js\n// module id = 596\n// module chunks = 0","'use strict';\n\nmodule.exports = {\n 'lang': 'zh-cn',\n 'msgMax': '值不能大于最大值',\n 'msgMin': '值不能小于最小值',\n 'en-us': {\n 'msgMax': 'Cannot be greater than the Max value',\n 'msgMin': 'Cannot be less than the Min value'\n },\n 'zh-tw': {\n 'msgMax': '值不能大於最大值',\n 'msgMin': '值不能小於最小值'\n }\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-input-number/build/i18n.js\n// module id = 597\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _InputNumber = require('./InputNumber');\n\nvar _InputNumber2 = _interopRequireDefault(_InputNumber);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar noop = function noop() {};\n\nvar propsTypes = {\n clsfix: _propTypes2[\"default\"].string,\n className: _propTypes2[\"default\"].string,\n value: _propTypes2[\"default\"].array,\n onChange: _propTypes2[\"default\"].func,\n onBlur: _propTypes2[\"default\"].func,\n onFocus: _propTypes2[\"default\"].func,\n placeholder: _propTypes2[\"default\"].array,\n\n max: _propTypes2[\"default\"].number,\n min: _propTypes2[\"default\"].number,\n step: _propTypes2[\"default\"].number,\n precision: _propTypes2[\"default\"].number,\n format: _propTypes2[\"default\"].func,\n delay: _propTypes2[\"default\"].number,\n disabled: _propTypes2[\"default\"].bool,\n toThousands: _propTypes2[\"default\"].bool,\n toNumber: _propTypes2[\"default\"].bool\n};\n\nvar defaultProps = {\n clsfix: 'u-input-number',\n className: '',\n value: [],\n placeholder: [],\n onChange: noop,\n onBlur: noop,\n onFocus: noop\n};\n\nvar InputNumberGroup = function (_Component) {\n _inherits(InputNumberGroup, _Component);\n\n function InputNumberGroup(props) {\n _classCallCheck(this, InputNumberGroup);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props));\n\n _this.onChange = function (index, v) {\n var value = _this.state.value;\n\n value[index] = v;\n _this.setState({\n value: value\n });\n _this.props.onChange(value);\n };\n\n _this.onFocus = function (index, v) {\n var value = _this.state.value;\n\n value[index] = v;\n _this.setState({\n value: value\n });\n _this.props.onFocus(value);\n };\n\n _this.onBlur = function (index, v) {\n var value = _this.state.value;\n\n if (index == 1) {\n if (v < value[0]) {\n console.warn('The second value must be greater than or equal to the first value');\n }\n }\n value[index] = v;\n _this.setState({\n value: value\n });\n\n _this.props.onBlur(value);\n };\n\n _this.state = {\n value: props.value || []\n };\n return _this;\n }\n\n InputNumberGroup.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n if ('value' in nextProps) {\n this.setState({\n value: nextProps.value\n });\n }\n };\n\n InputNumberGroup.prototype.render = function render() {\n var _this2 = this;\n\n var _props = this.props,\n className = _props.className,\n clsfix = _props.clsfix,\n value = _props.value,\n onChange = _props.onChange,\n placeholder = _props.placeholder,\n split = _props.split,\n onBlur = _props.onBlur,\n onFocus = _props.onFocus,\n other = _objectWithoutProperties(_props, ['className', 'clsfix', 'value', 'onChange', 'placeholder', 'split', 'onBlur', 'onFocus']);\n\n var stateValue = this.state.value;\n\n return _react2[\"default\"].createElement(\n 'div',\n { className: clsfix + '-group ' + className },\n _react2[\"default\"].createElement(_InputNumber2[\"default\"], _extends({\n onChange: function onChange(value) {\n _this2.onChange(0, value);\n },\n onBlur: function onBlur(value) {\n _this2.onBlur(0, value);\n },\n onFocus: function onFocus(value) {\n _this2.onFocus(0, value);\n },\n value: stateValue[0],\n placeholder: placeholder[0]\n }, other)),\n split ? split : _react2[\"default\"].createElement(\n 'span',\n { className: clsfix + '-group-split' },\n '~'\n ),\n _react2[\"default\"].createElement(_InputNumber2[\"default\"], _extends({\n onChange: function onChange(value) {\n _this2.onChange(1, value);\n },\n onBlur: function onBlur(value) {\n _this2.onBlur(1, value);\n },\n onFocus: function onFocus(value) {\n _this2.onFocus(1, value);\n },\n value: stateValue[1],\n placeholder: placeholder[1]\n }, other))\n );\n };\n\n return InputNumberGroup;\n}(_react.Component);\n\nInputNumberGroup.displayName = 'InputNumberGroup';\n\n\nInputNumberGroup.propsTypes = propsTypes;\nInputNumberGroup.defaultProps = defaultProps;\n\nexports[\"default\"] = InputNumberGroup;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-input-number/build/InputNumberGroup.js\n// module id = 598\n// module chunks = 0","/**\n * 过滤行功能内的下拉条件\n */\n\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport Dropdown from 'bee-dropdown';\nimport Menu from 'bee-menus';\nimport Button from 'bee-button';\nimport Icon from 'bee-icon';\nimport i18n from './lib/i18n';\nimport { getComponentLocale } from 'bee-locale/build/tool';\nconst { Item } = Menu;\n\n\nclass FilterDropDown extends Component {\n constructor() {\n super();\n this.state = {\n selectValue: ['LIKE'],\n selectNumberValue: ['EQ']\n }\n }\n /**\n * 点击下拉菜单\n *\n * @param {*} s 选中的selectRecord\n */\n onSelectDropdown = (item) => {\n let { onSelectDropdown, filterDropdownType } = this.props;\n if (onSelectDropdown) {\n if (filterDropdownType == 'string') {\n this.setState({\n selectValue: [item.key]\n }, () => {\n onSelectDropdown(item);\n });\n }\n if (filterDropdownType == 'number') {\n this.setState({\n selectNumberValue: [item.key]\n }, () => {\n onSelectDropdown(item);\n });\n }\n }\n }\n\n /**\n * 清除事件\n *\n */\n onClickClear = () => {\n let { onClickClear } = this.props;\n if (onClickClear) {\n this.setState({\n // selectValue: [],\n // selectNumberValue: []\n }, () => {\n onClickClear();\n });\n }\n }\n\n /**\n * 根据props来获得指定的Menu,分为String和Number\n *\n * @returns JSX Menu\n */\n getMenu = () => {\n let { selectValue, selectNumberValue } = this.state;\n let { filterDropdownType, filterDropdownIncludeKeys } = this.props;\n let locale = getComponentLocale(this.props, this.context, 'Table', () => i18n);\n let stringEnum = {\n LIKE: 'include',\n ULIKE: 'exclusive',\n EQ: 'equal',\n UEQ: 'unequal',\n START: 'begin',\n END: 'end'\n };\n let numberEnum = {\n GT: 'greater_than',\n GTEQ: 'great_than_equal_to',\n LT: 'less_than',\n LTEQ: 'less_than_equal_to',\n EQ: 'be_equal_to',\n UEQ: 'not_equal_to'\n };\n if (filterDropdownIncludeKeys != undefined) {\n switch (filterDropdownType) {\n case 'string':\n return \n {\n filterDropdownIncludeKeys.map(item => {\n return {locale[stringEnum[item]]}\n })\n }\n \n case 'number':\n return \n {\n filterDropdownIncludeKeys.map(item => {\n return {locale[numberEnum[item]]}\n })\n }\n \n default:\n return
    ;\n }\n } else {\n switch (filterDropdownType) {\n case 'string':\n return \n {locale['include']}\n {locale['exclusive']}\n {locale['equal']}\n {locale['unequal']}\n {locale['begin']}\n {locale['end']}\n \n case 'number':\n return \n {locale['greater_than']}\n {locale['great_than_equal_to']}\n {locale['less_than']}\n {locale['less_than_equal_to']}\n {locale['be_equal_to']}\n {locale['not_equal_to']}\n \n default:\n return
    ;\n }\n }\n }\n render() {\n let { isShowCondition } = this.props;\n\n return (
    \n {isShowCondition == 'show' && \n \n \n \n }\n 0 ? \"visible\" : \"hidden\" }}\n >\n 0 ? \"visible\" : \"hidden\" }} type=\"uf-filterno\" />\n \n
    \n );\n }\n}\n\nFilterDropDown.propTypes = {\n isShowCondition: PropTypes.string,\n filterDropdownType: PropTypes.oneOf(['string', 'number'])\n}\n\nFilterDropDown.defaultProps = {\n isShowCondition: 'show',\n filterDropdownType: 'string'\n}\n\nFilterDropDown.contextTypes = {\n beeLocale: PropTypes.object\n};\nexport default FilterDropDown;\n\n\n\n// WEBPACK FOOTER //\n// ./src/FilterDropDown.js","import React from 'react';\nimport Column from './Column';\nimport ColumnGroup from './ColumnGroup';\nimport Icon from 'bee-icon';\n\n//行控制管理\nexport default class ColumnManager {\n _cached = {}\n\n constructor(columns, elements,originWidth,rowDraggAble,showRowNum) {\n columns = this.addDragHandleColumn(columns,rowDraggAble);\n columns = this.addOrderColumn(columns,showRowNum);\n columns = this.deleteColumnNotShow(columns);\n this.columns = columns || this.normalize(elements);\n\n this.originWidth = originWidth;\n }\n\n // 向数据列中添加一列:行拖拽标识\n addDragHandleColumn = (columns, rowDraggAble) => {\n if(!rowDraggAble){\n return columns\n }\n let dragHandleColumn =[{\n className: \"drag-handle-column\",\n title: \"\",\n key: \"dragHandle\",\n dataIndex: \"dragHandle\",\n width: 49,\n draggable: true,\n render: () => {\n return \n }\n }]\n columns = dragHandleColumn.concat(columns);\n return columns;\n }\n\n // delete the column which does not show\n deleteColumnNotShow = (columns) => {\n let len = columns.length;\n for(let i=0; i < len; i++) {\n if(columns && columns[i] && columns[i].isShow === false){\n columns.splice(i,1);\n i--;\n }\n }\n return columns;\n }\n\n // 向数据列中添加一列:序号\n addOrderColumn = (columns, showRowNum) => {\n if(!showRowNum){\n return columns\n }\n let { key, fixed, width, name, type, base } = showRowNum;\n let order = {\n dataIndex: key || '_index',\n key:'_index',\n fixed:fixed || 'left',\n width:width || 50,\n title: name || '序号',\n render:(text, record, index)=>{\n switch( type ){\n case 'ascii':{\n return (String.fromCharCode((base || 'a').charCodeAt() + index));\n }\n case 'number':\n default:{\n return ( (base || 0) + index);\n }\n }\n }\n }\n if(columns.length > 0 && columns[0].dataIndex !== 'checkbox' && columns[0].dataIndex !== 'radio'){ // 多选表格/单选表格时放在第二列,其他情况放到第一列\n columns = [order].concat(columns);\n }\n else{\n columns.splice(1,0,order); // splice方法改变原数组,返回切割出的数组,此处为[]\n }\n return columns;\n }\n\n isAnyColumnsFixed() {\n return this._cache('isAnyColumnsFixed', () => {\n return this.columns.some(column => !!column.fixed);\n });\n }\n\n isAnyColumnsLeftFixed() {\n return this._cache('isAnyColumnsLeftFixed', () => {\n return this.columns.some(\n column => column.fixed === 'left' || column.fixed === true\n );\n });\n }\n\n isAnyColumnsRightFixed() {\n return this._cache('isAnyColumnsRightFixed', () => {\n return this.columns.some(\n column => column.fixed === 'right'\n );\n });\n }\n\n leftColumns() {\n return this._cache('leftColumns', () => {\n return this.groupedColumns().filter(\n column => column.fixed === 'left' || column.fixed === true\n );\n });\n }\n\n rightColumns() {\n return this._cache('rightColumns', () => {\n return this.groupedColumns().filter(\n column => column.fixed === 'right'\n );\n });\n }\n\n centerColumns() {\n return this._cache('centerColumns', () => {\n return this.groupedColumns().filter(\n column => !column.fixed\n );\n });\n }\n\n leafColumns() {\n return this._cache('leafColumns', () =>\n this._leafColumns(this.columns)\n );\n }\n\n leftLeafColumns() {\n return this._cache('leftLeafColumns', () =>\n this._leafColumns(this.leftColumns())\n );\n }\n\n rightLeafColumns() {\n return this._cache('rightLeafColumns', () =>\n this._leafColumns(this.rightColumns())\n );\n }\n centerLeafColumns() {\n return this._cache('centerLeafColumns', () =>\n this._leafColumns(this.centerColumns())\n );\n }\n\n // add appropriate rowspan and colspan to column\n groupedColumns(type) {\n return this._cache('groupedColumns', () => {\n const _groupColumns = (columns, currentRow = 0, parentColumn = {}, rows = []) => {\n // track how many rows we got\n rows[currentRow] = rows[currentRow] || [];\n const grouped = [];\n const setRowSpan = column => {\n const rowSpan = rows.length - currentRow;\n if (column &&\n !column.children && // parent columns are supposed to be one row\n rowSpan > 1 &&\n (!column.rowSpan || column.rowSpan < rowSpan)\n ) {\n column.rowSpan = rowSpan;\n }\n };\n columns.forEach((column, index) => {\n let defaultOpt= {\n ifshow:true\n }\n if(!this.originWidth){\n defaultOpt.width = 200\n }\n //获取非固定列\n if(type=='nofixed' && column.fixed){\n return false;\n }\n const newColumn = { ...defaultOpt,...column };\n rows[currentRow].push(newColumn);\n parentColumn.colSpan = parentColumn.colSpan || 0;\n if (newColumn.children && newColumn.children.length > 0) {\n newColumn.children = _groupColumns(newColumn.children, currentRow + 1, newColumn, rows);\n parentColumn.colSpan = parentColumn.colSpan + newColumn.colSpan;\n } else {\n parentColumn.colSpan++;\n }\n // update rowspan to all same row columns\n for (let i = 0; i < rows[currentRow].length - 1; ++i) {\n setRowSpan(rows[currentRow][i]);\n }\n // last column, update rowspan immediately\n if (index + 1 === columns.length) {\n setRowSpan(newColumn);\n }\n grouped.push(newColumn);\n });\n return grouped;\n };\n return _groupColumns(this.columns);\n });\n }\n\n normalize(elements) {\n const columns = [];\n React.Children.forEach(elements, element => {\n if (!this.isColumnElement(element)) return;\n const column = { ...element.props };\n if (element.key) {\n column.key = element.key;\n }\n if (element.type === ColumnGroup) {\n column.children = this.normalize(column.children);\n }\n columns.push(column);\n });\n return columns;\n }\n\n isColumnElement(element) {\n return element && (element.type === Column || element.type === ColumnGroup);\n }\n\n reset(columns, elements, showRowNum, rowDraggAble) {\n columns = this.addDragHandleColumn(columns,rowDraggAble);\n columns = this.addOrderColumn(columns,showRowNum);\n columns = this.deleteColumnNotShow(columns);\n this.columns = columns || this.normalize(elements);\n this._cached = {};\n }\n getColumnWidth(contentWidth){\n let columns = this.leafColumns();\n let res={computeWidth:0,lastShowIndex:-1};\n columns.forEach((col,index)=>{\n //如果列显示\n if(col.ifshow){\n let width = col.width;\n if(typeof(width) == 'string' && width.includes('%') ){\n width = contentWidth * parseInt(col.width) /100;\n }\n res.computeWidth += parseInt(width);\n if(!col.fixed){\n res.lastShowIndex = index;\n }\n }\n })\n return res;\n }\n\n getLeftColumnsWidth(contentWidth=1) {\n return this._cache('leftColumnsWidth', () => {\n let leftColumnsWidth =0;\n this.groupedColumns().forEach(column =>{\n if (column.fixed === 'left' || column.fixed === true){\n let width = column.width;\n if(typeof(width) == 'string' && width.includes('%') ){\n width = contentWidth * parseInt(column.width) /100;\n }\n leftColumnsWidth += parseInt(width)\n }\n });\n return leftColumnsWidth;\n });\n }\n\n getRightColumnsWidth(contentWidth=1) {\n return this._cache('rightColumnsWidth', () => {\n let rightColumnsWidth =0;\n this.groupedColumns().forEach(column =>{\n if (column.fixed === 'right'){\n let width = column.width;\n if(typeof(width) == 'string' && width.includes('%') ){\n width = contentWidth * parseInt(column.width) /100;\n }\n rightColumnsWidth += parseInt(width)\n }\n });\n return rightColumnsWidth;\n });\n }\n\n _cache(name, fn) {\n if (name in this._cached) {\n return this._cached[name];\n }\n this._cached[name] = fn();\n return this._cached[name];\n }\n\n //todo 含有children的宽度计算\n _leafColumns(columns) {\n const leafColumns = [];\n\n columns.forEach(column => {\n if (!column.children) {\n\n let defaultOpt= {\n ifshow:true\n }\n if(!this.originWidth){\n defaultOpt.width = 200\n }\n const newColumn = { ...defaultOpt,...column };\n leafColumns.push(newColumn);\n } else {\n leafColumns.push(...this._leafColumns(column.children));\n }\n });\n return leafColumns;\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/ColumnManager.js","import { Component } from 'react';\nimport PropTypes from 'prop-types';\n\nconst propTypes = {\n className: PropTypes.string,\n colSpan: PropTypes.number,\n title: PropTypes.node,\n dataIndex: PropTypes.string,\n width: PropTypes.oneOfType([\n PropTypes.number,\n PropTypes.string,\n ]),\n fixed: PropTypes.oneOf([\n true,\n 'left',\n 'right',\n ]),\n render: PropTypes.func,\n onCellClick: PropTypes.func,\n ifshow:PropTypes.bool,\n fieldType: PropTypes.string, // 类型\n}\n\nclass Column extends Component {\n static defaultProps = {\n ifshow:true\n }\n}\n\nColumn.propTypes = propTypes;\n\nexport default Column;\n\n\n\n// WEBPACK FOOTER //\n// ./src/Column.js","import { Component } from 'react';\nimport PropTypes from 'prop-types';\n\nexport default class ColumnGroup extends Component {\n static propTypes = {\n title: PropTypes.node,\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/ColumnGroup.js","export default function createStore(initialState) {\n let state = initialState;\n const listeners = [];\n\n function setState(partial) {\n state = { ...state, ...partial };\n for (let i = 0; i < listeners.length; i++) {\n listeners[i]();\n }\n }\n\n function getState() {\n return state;\n }\n\n function subscribe(listener) {\n listeners.push(listener);\n\n return function unsubscribe() {\n const index = listeners.indexOf(listener);\n listeners.splice(index, 1);\n };\n }\n\n return {\n setState,\n getState,\n subscribe,\n };\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/createStore.js","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _Loading = require('./Loading');\n\nvar _Loading2 = _interopRequireDefault(_Loading);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nexports[\"default\"] = _Loading2[\"default\"];\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-loading/build/index.js\n// module id = 604\n// module chunks = 0","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = require(\"react\");\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require(\"prop-types\");\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _classnames = require(\"classnames\");\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _Portal = require(\"bee-overlay/build/Portal\");\n\nvar _Portal2 = _interopRequireDefault(_Portal);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar loadImg = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNDJweCIgaGVpZ2h0PSI0MXB4IiB2aWV3Qm94PSIwIDAgNDIgNDEiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUzLjIgKDcyNjQzKSAtIGh0dHBzOi8vc2tldGNoYXBwLmNvbSAtLT4KICAgIDx0aXRsZT53aW5kb3U8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZGVmcz4KICAgICAgICA8bGluZWFyR3JhZGllbnQgeDE9IjQ5Ljc3NzAwMDElIiB5MT0iOTkuOTg4NjY2NyUiIHgyPSI0OS43NzcwMDAxJSIgeTI9IjIyLjc5MTY5ODQlIiBpZD0ibGluZWFyR3JhZGllbnQtMSI+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiM4MkQ5MDAiIG9mZnNldD0iMCUiPjwvc3RvcD4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0ZGRkZGRiIgc3RvcC1vcGFjaXR5PSIwIiBvZmZzZXQ9IjEwMCUiPjwvc3RvcD4KICAgICAgICA8L2xpbmVhckdyYWRpZW50PgogICAgICAgIDxsaW5lYXJHcmFkaWVudCB4MT0iMC4wNzY1JSIgeTE9IjQ5LjgwNDUlIiB4Mj0iODQuMDAyMTY0NCUiIHkyPSI0OS44MDQ1JSIgaWQ9ImxpbmVhckdyYWRpZW50LTIiPgogICAgICAgICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjRkZCRTBFIiBvZmZzZXQ9IjAlIj48L3N0b3A+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiNGRkZGRkYiIHN0b3Atb3BhY2l0eT0iMCIgb2Zmc2V0PSIxMDAlIj48L3N0b3A+CiAgICAgICAgPC9saW5lYXJHcmFkaWVudD4KICAgICAgICA8bGluZWFyR3JhZGllbnQgeDE9IjUwLjIyOTUwMDElIiB5MT0iLTAuMDgwOTk5OTQyOSUiIHgyPSI1MC4yMjk1MDAxJSIgeTI9IjgwLjA2MTg4MjglIiBpZD0ibGluZWFyR3JhZGllbnQtMyI+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiNGRjQ3NDciIG9mZnNldD0iMCUiPjwvc3RvcD4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0ZGRkZGRiIgc3RvcC1vcGFjaXR5PSIwIiBvZmZzZXQ9IjEwMCUiPjwvc3RvcD4KICAgICAgICA8L2xpbmVhckdyYWRpZW50PgogICAgICAgIDxsaW5lYXJHcmFkaWVudCB4MT0iOTkuOTI1NjY2NyUiIHkxPSI0OS45MTglIiB4Mj0iMjQuMjY5MjQwMyUiIHkyPSI0OS45MTglIiBpZD0ibGluZWFyR3JhZGllbnQtNCI+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiMwMDhDREMiIG9mZnNldD0iMCUiPjwvc3RvcD4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0ZGRkZGRiIgc3RvcC1vcGFjaXR5PSIwIiBvZmZzZXQ9IjEwMCUiPjwvc3RvcD4KICAgICAgICA8L2xpbmVhckdyYWRpZW50PgogICAgPC9kZWZzPgogICAgPGcgaWQ9IlN5bWJvbHMiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSLop4blm74vbG9hZGluZyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTMuMDAwMDAwLCAtMy4wMDAwMDApIj4KICAgICAgICAgICAgPGcgaWQ9IndpbmRvdSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMy4wMDAwMDAsIDMuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICA8ZyBpZD0i5YiG57uELTMiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDI5LjAwMDAwMCwgMC4wMDAwMDApIj4KICAgICAgICAgICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlIiBmaWxsPSJ1cmwoI2xpbmVhckdyYWRpZW50LTEpIiBvcGFjaXR5PSIwLjQ5OTM3MjIxIiB4PSIwLjQwOTA5MDkwOSIgeT0iMCIgd2lkdGg9IjEyIiBoZWlnaHQ9IjM0Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0iT3ZhbCIgZmlsbD0iIzAwQzg2NCIgY3g9IjYuNDA5MDkwOTEiIGN5PSIzNC4yNjY3MDkxIiByPSI2Ij48L2NpcmNsZT4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgICAgIDxnIGlkPSLliIbnu4QtMiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMC40NTE3MjksIDI4LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgICAgIDxyZWN0IGlkPSJSZWN0YW5nbGUiIGZpbGw9InVybCgjbGluZWFyR3JhZGllbnQtMikiIG9wYWNpdHk9IjAuNTA5MDIxNTc3IiB4PSI2LjI2MjM1NTk1IiB5PSIzLjU1MjcxMzY4ZS0xNSIgd2lkdGg9IjM0IiBoZWlnaHQ9IjEyIj48L3JlY3Q+CiAgICAgICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0iT3ZhbCIgZmlsbD0iI0ZGQkUwRSIgY3g9IjYuNTAyODE2OSIgY3k9IjYiIHI9IjYiPjwvY2lyY2xlPgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICAgICAgPGcgaWQ9IuWIhue7hCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMS4wMDAwMDAsIDAuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICAgICAgPHJlY3QgaWQ9IlJlY3RhbmdsZSIgZmlsbD0idXJsKCNsaW5lYXJHcmFkaWVudC0zKSIgb3BhY2l0eT0iMC41MDEyMzIzMjkiIHg9Ii0yLjY1NTY1MzQ3ZS0xMyIgeT0iNS43ODgyMTI4MSIgd2lkdGg9IjEyIiBoZWlnaHQ9IjM0Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0iT3ZhbCIgZmlsbD0iI0ZGNDc0NyIgY3g9IjYiIGN5PSI2IiByPSI2Ij48L2NpcmNsZT4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgICAgIDxnIGlkPSJHcm91cCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMC45NTQ1NDUsIDAuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICAgICAgPHJlY3QgaWQ9IlJlY3RhbmdsZSIgZmlsbD0idXJsKCNsaW5lYXJHcmFkaWVudC00KSIgb3BhY2l0eT0iMC41MDQxODUyNjgiIHg9IjAiIHk9IjAiIHdpZHRoPSIzNiIgaGVpZ2h0PSIxMS45NDI2NTY5Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0iT3ZhbCIgZmlsbD0iIzAwOENEQyIgY3g9IjM1IiBjeT0iNiIgcj0iNiI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==';\n\nvar propTypes = {\n /**\n * @title 默认的公共类׺\n */\n clsPrefix: _propTypes2[\"default\"].string,\n clsLoadBack: _propTypes2[\"default\"].string,\n /**\n * @title 不同loading样式\n */\n loadingType: _propTypes2[\"default\"].oneOf([\"rotate\", \"line\", \"custom\"]),\n\n /**\n * @title 不同尺寸\n */\n size: _propTypes2[\"default\"].oneOf([\"sm\", \"lg\"]),\n /**\n * @title 不同颜色\n */\n color: _propTypes2[\"default\"].oneOf([\"primary\", \"success\", \"warning\", \"\"]),\n /**\n * @title 是否全屏loading\n */\n fullScreen: _propTypes2[\"default\"].bool,\n wrapperClassName: _propTypes2[\"default\"].string\n};\n\nvar defaultProps = {\n clsPrefix: \"u-loading\",\n clsLoadBack: \"u-loading-back\",\n loadingType: \"rotate\",\n color: \"\",\n showBackDrop: true,\n fullScreen: false,\n wrapperClassName: \"\"\n};\n\nvar sizeMap = {\n sm: \"sm\",\n lg: \"lg\"\n},\n colorsMap = {\n primary: \"primary\",\n success: \"success\",\n warning: \"warning\"\n};\n\nvar Loading = function (_Component) {\n _inherits(Loading, _Component);\n\n function Loading(props) {\n _classCallCheck(this, Loading);\n\n return _possibleConstructorReturn(this, _Component.call(this, props));\n }\n\n Loading.prototype.render = function render() {\n var _backClassObj;\n\n var _props = this.props,\n clsPrefix = _props.clsPrefix,\n loadingType = _props.loadingType,\n size = _props.size,\n color = _props.color,\n show = _props.show,\n showBackDrop = _props.showBackDrop,\n container = _props.container,\n children = _props.children,\n fullScreen = _props.fullScreen,\n wrapperClassName = _props.wrapperClassName,\n indicator = _props.indicator,\n others = _objectWithoutProperties(_props, [\"clsPrefix\", \"loadingType\", \"size\", \"color\", \"show\", \"showBackDrop\", \"container\", \"children\", \"fullScreen\", \"wrapperClassName\", \"indicator\"]);\n\n var clsObj = {};\n\n if (!show) return null;\n\n clsObj[clsPrefix + \"-\" + loadingType] = true;\n\n if (sizeMap[size]) {\n clsObj[clsPrefix + \"-\" + loadingType + \"-\" + sizeMap[size]] = true;\n }\n\n if (colorsMap[color]) {\n clsObj[clsPrefix + \"-\" + loadingType + \"-\" + colorsMap[color]] = true;\n }\n\n var classes = (0, _classnames2[\"default\"])(clsPrefix, clsObj);\n\n var dom = \"\";\n\n if (wrapperClassName) {\n classes += \" \" + wrapperClassName;\n }\n if (loadingType === \"custom\" && !!indicator) {\n dom = _react2[\"default\"].createElement(\n \"div\",\n null,\n _react2[\"default\"].createElement(\n \"div\",\n { className: classes },\n _react2[\"default\"].createElement(\n \"div\",\n null,\n indicator\n )\n ),\n children && _react2[\"default\"].createElement(\n \"div\",\n { className: clsPrefix + \"-desc\" },\n children\n )\n );\n } else if (loadingType === \"rotate\") {\n dom = _react2[\"default\"].createElement(\n \"div\",\n null,\n _react2[\"default\"].createElement(\n \"div\",\n { className: classes },\n _react2[\"default\"].createElement(\n \"div\",\n null,\n _react2[\"default\"].createElement(\"img\", { src: loadImg })\n )\n ),\n children && _react2[\"default\"].createElement(\n \"div\",\n { className: clsPrefix + \"-desc\" },\n children\n )\n );\n } else if (loadingType === \"line\") {\n dom = _react2[\"default\"].createElement(\n \"div\",\n null,\n _react2[\"default\"].createElement(\n \"div\",\n { className: classes },\n _react2[\"default\"].createElement(\"div\", null),\n _react2[\"default\"].createElement(\"div\", null),\n _react2[\"default\"].createElement(\"div\", null),\n _react2[\"default\"].createElement(\"div\", null),\n _react2[\"default\"].createElement(\"div\", null)\n ),\n children && _react2[\"default\"].createElement(\n \"div\",\n { className: clsPrefix + \"-desc\" },\n children\n )\n );\n }\n\n var backClassObj = (_backClassObj = {}, _defineProperty(_backClassObj, clsPrefix + \"-backdrop\", true), _defineProperty(_backClassObj, \"full-screen\", fullScreen), _backClassObj);\n\n if (showBackDrop) {\n dom = _react2[\"default\"].createElement(\n \"div\",\n { className: (0, _classnames2[\"default\"])(backClassObj) },\n dom\n );\n }\n //console.log(container);\n\n return _react2[\"default\"].createElement(\n _Portal2[\"default\"],\n { container: container },\n dom\n );\n };\n\n return Loading;\n}(_react.Component);\n\nLoading.propTypes = propTypes;\nLoading.defaultProps = defaultProps;\n\nexports[\"default\"] = Loading;\nmodule.exports = exports[\"default\"];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bee-loading/build/Loading.js\n// module id = 605\n// module chunks = 0","/**\n*\n* @title 基本表格\n* @parent 基础 Basic\n* @description 当单元格内容过多时,会自动显示省略号,鼠标hover有提示。showRowNum 设置是否显示序号列。\n* demo0101\n*/\n\nimport React, { Component } from \"react\";\nimport Table from \"../../src\";\n\nconst columns = [\n { title: \"员工编号\", dataIndex: \"a\", key: \"a\", width: 150 },\n { title: \"员工姓名\", dataIndex: \"b\", key: \"b\", width:100},\n { title: \"性别\", dataIndex: \"c\", key: \"c\", width: 100},\n { title: \"部门\", dataIndex: \"d\", key: \"d\", width: 100 },\n { title: \"职级\", dataIndex: \"e\", key: \"e\", width: 100 }\n];\n\nconst data = [\n { a: \"ASVAL_20190328\", b: \"小张\", c: \"男\", d: \"财务二科\", e: \"M1\", key: \"1\" },\n { a: \"ASVAL_20190320\", b: \"小明\", c: \"男\", d: \"财务一科\", e: \"T1\", key: \"2\" },\n { a: \"ASVAL_20190312\", b: \"小红\", c: \"女\", d: \"财务一科\", e: \"T2\", key: \"3\" }\n];\n\nclass Demo0101 extends Component {\n render() {\n return (\n \n );\n }\n}\n\nexport default Demo0101;\n\n\n\n// WEBPACK FOOTER //\n// ./demo/demolist/Demo0101.js","/**\r\n*\r\n* @title 默认无数据展示\r\n* @parent 基础 Basic\r\n* @description 无数据时默认展示图标,可在`emptyText`方法中自定义展示内容。\r\n* demo0102\r\n*/\r\n\r\n\r\nimport React, { Component } from 'react';\r\nimport Table from '../../src';\r\n\r\nconst columns = [\r\n {\r\n title: \"员工编号\",\r\n dataIndex: \"num\",\r\n key: \"num\",\r\n width: \"40%\"\r\n },\r\n {\r\n title: \"员工姓名\",\r\n dataIndex: \"name\",\r\n key: \"name\",\r\n width: \"30%\"\r\n },\r\n {\r\n title: \"部门\",\r\n dataIndex: \"department\",\r\n key: \"department\"\r\n }\r\n];\r\n \r\nconst data = [];\r\n\r\n// 在此自定义无数据时的展示内容\r\nconst emptyFunc = () => 'No Data';\r\n \r\nclass Demo02 extends Component {\r\n render() {\r\n return (\r\n
  • 对象 - * @memberof TableHeader - */ - - - TableHeader.prototype.getThDome = function getThDome(element) { - var _tagName = element.tagName.toLowerCase(); - if (element.getAttribute('data-filter-type') === 'filterContext') return null; - if (_tagName === 'i') return null; - if (_tagName != 'th') { - return this.getThDome(element.parentElement); - } else { - return element; - } - }; - - //---拖拽列交换----end----- - - /** - * 过滤输入后或下拉条件的回调函数 - */ - - - /** - * 过滤行清除回调 - */ - - - /** - * 过滤渲染的组件类型 - */ - - - TableHeader.prototype.render = function render() { - var _this7 = this; - - var _props2 = this.props, - clsPrefix = _props2.clsPrefix, - rowStyle = _props2.rowStyle, - draggable = _props2.draggable, - dragborder = _props2.dragborder, - rows = _props2.rows, - filterable = _props2.filterable, - fixed = _props2.fixed, - lastShowIndex = _props2.lastShowIndex, - columnsChildrenList = _props2.columnsChildrenList; - - var attr = dragborder ? { id: "u-table-drag-thead-" + this.theadKey } : {}; - var lastObj = columnsChildrenList[columnsChildrenList.length - 1]; - return _react2["default"].createElement( - "thead", - _extends({ className: clsPrefix + "-thead" }, attr, { "data-theader-fixed": "scroll", ref: function ref(_thead) { - return _this7._thead = _thead; - } }), - rows.map(function (row, index) { - var _rowLeng = row.length - 1; - return _react2["default"].createElement( - "tr", - { key: index, style: rowStyle, className: filterable && index == rows.length - 1 ? 'filterable' : '' }, - row.map(function (da, columIndex, arr) { - da.children = da.required ? _react2["default"].createElement( - "span", - null, - _react2["default"].createElement( - "span", - { className: "required" }, - "*" - ), - da.children - ) : da.children; - var thHover = da.drgHover ? " " + clsPrefix + "-thead th-drag-hover" : ""; - delete da.drgHover; - var fixedStyle = ""; - var canDotDrag = ""; - //主表格下、固定列或者是过滤行中含有固定列时添加该属性 - if (!fixed && (da.fixed || filterable && index == rows.length - 1 && rows[0][columIndex].fixed)) { - fixedStyle = " " + clsPrefix + "-row-fixed-columns-in-body"; - } - - if (lastShowIndex == columIndex) { - canDotDrag = "th-can-not-drag"; - } - var thClassName = "" + da.className ? "" + da.className : ''; - if (da.titleAlign) { - thClassName += " text-" + da.titleAlign + " "; - } else if (da.textAlign) { - thClassName += " text-" + da.textAlign + " "; - } - - delete da.textAlign; - delete da.titleAlign; - var keyTemp = {}; - //避免key为undefined - // if(da.dataindex && da.key ===undefined ){ - keyTemp.key = da.key || da.dataindex || index + '-' + columIndex; - - // } - if (filterable && index == rows.length - 1) { - da.children = _this7.filterRenderType(da["filtertype"], da.dataindex, columIndex); - if (da.key === undefined) { - keyTemp.key = keyTemp.key + '-filterable'; - } - delete da.filterdropdownfocus; - } - - var thDefaultObj = {}; - - if (draggable) { - thClassName += " " + clsPrefix + "-thead th-drag " + thHover + " "; - } - if (dragborder) { - thClassName += " " + clsPrefix + "-thead-th " + canDotDrag; - } - thClassName += " " + fixedStyle; - if (!da.fixed) { - return _react2["default"].createElement( - "th", - _extends({}, da, keyTemp, { className: thClassName, "data-th-fixed": da.fixed, "data-line-key": da.key, - "data-line-index": columIndex, "data-th-width": da.width, "data-type": "draggable" }), - da.children, - - // && columIndex != _rowLeng - dragborder && lastObj && da.key != lastObj.key ? _react2["default"].createElement( - "div", - { ref: function ref(el) { - return _this7.gap = el; - }, "data-line-key": da.key, - "data-line-index": columIndex, "data-th-width": da.width, - "data-type": "online", className: clsPrefix + "-thead-th-drag-gap" }, - _react2["default"].createElement("div", { className: "online" }) - ) : "" - ); - } else { - thDefaultObj = _extends({}, da, { - className: thClassName + " " + fixedStyle - }); - da.onClick ? thDefaultObj.onClick = function (e) { - da.onClick(da, e); - } : ""; - return _react2["default"].createElement("th", _extends({}, thDefaultObj, keyTemp, { "data-th-fixed": da.fixed, style: { maxWidth: da.width } })); - } - }) - ); - }) - ); - }; - - return TableHeader; - }(_react.Component); - - TableHeader.defaultProps = { - contentWidthDiff: 0 - }; - - var _initialiseProps = function _initialiseProps() { - var _this8 = this; - - this.getOnLineObject = function (_element) { - var type = _element.getAttribute('data-type'), - elementObj = null; - if (!type) { - var element = _element.parentElement || parentNode; //兼容写法。 - if (element.getAttribute('data-type')) { - elementObj = element; - } - } else { - elementObj = _element; - } - return elementObj; - }; - - this.onTrMouseDown = function (e) { - _utils.Event.stopPropagation(e); - var event = _utils.Event.getEvent(e), - targetEvent = _utils.Event.getTarget(event); - var _props3 = _this8.props, - clsPrefix = _props3.clsPrefix, - contentTable = _props3.contentTable, - lastShowIndex = _props3.lastShowIndex, - columnsChildrenList = _props3.columnsChildrenList; - // let currentElement = this.getOnLineObject(targetEvent); - - var currentElement = _this8.getTargetToType(targetEvent); - if (!currentElement) return; - var type = currentElement.getAttribute('data-type'); - if (!_this8.props.dragborder && !_this8.props.draggable) return; - if (type == 'online' && _this8.props.dragborder) { - // if(!this.props.dragborder)return; - targetEvent.setAttribute('draggable', false); //添加交换列效果 - var currentIndex = -1; - var defaultWidth = currentElement.getAttribute("data-th-width"); - _this8.drag.option = "border"; //拖拽操作 - if (columnsChildrenList) { - var columnKey = currentElement.getAttribute("data-line-key"); - if (columnKey) { - currentIndex = columnsChildrenList.findIndex(function (da) { - return (da.key && da.key.toLowerCase()) === columnKey.toLowerCase(); - }); - } - } - if (currentIndex < 0) { - console.log('Key must be set for column!'); - return; - } - var currentObj = _this8.table.cols[currentIndex]; - _this8.drag.currIndex = currentIndex; - _this8.drag.oldLeft = event.x; - _this8.drag.oldWidth = parseInt(currentObj.style.width); - _this8.drag.minWidth = currentObj.style.minWidth != "" ? parseInt(currentObj.style.minWidth) : defaultWidth; - _this8.drag.tableWidth = parseInt(_this8.table.table.style.width ? _this8.table.table.style.width : _this8.table.table.scrollWidth); - if (!_this8.tableOldWidth) { - _this8.tableOldWidth = _this8.drag.tableWidth; //this.getTableWidth(); - } - if (!_this8.lastColumWidth) { - _this8.lastColumWidth = parseInt(_this8.table.cols[lastShowIndex].style.width); - } - } else if (type != 'online' && _this8.props.draggable) { - // if (!this.props.draggable || targetEvent.nodeName.toUpperCase() != "TH") return; - if (!_this8.props.draggable) return; - var th = _this8.getTargetToType(targetEvent); - th.setAttribute('draggable', true); //添加交换列效果 - _this8.drag.option = 'dragAble'; - _this8.currentDome = th; - var _currentIndex = parseInt(th.getAttribute("data-line-index")); - _this8.drag.currIndex = _currentIndex; - } else { - // console.log("onTrMouseDown dragborder or draggable is all false !"); - return; - } - }; - - this.getTableWidth = function () { - var tableWidth = 0, - offWidth = 0; //this.table.cols.length; - for (var index = 0; index < _this8.table.cols.length; index++) { - var da = _this8.table.cols[index]; - tableWidth += parseInt(da.style.width); - } - return tableWidth - offWidth; - }; - - this.getTargetToType = function (targetEvent) { - var tag = targetEvent; - if (targetEvent && !targetEvent.getAttribute("data-type")) { - tag = _this8.getTargetToType(targetEvent.parentElement); - } - return tag; - }; - - this.getTargetToTh = function (targetEvent) { - var th = targetEvent; - if (targetEvent.nodeName.toUpperCase() != "TH") { - th = _this8.getThDome(targetEvent); - } - // console.log(" getTargetToTh: ", th); - return th; - }; - - this.onTrMouseMove = function (e) { - if (!_this8.props.dragborder && !_this8.props.draggable) return; - var _props4 = _this8.props, - clsPrefix = _props4.clsPrefix, - dragborder = _props4.dragborder, - contentDomWidth = _props4.contentDomWidth, - scrollbarWidth = _props4.scrollbarWidth, - contentTable = _props4.contentTable, - headerScroll = _props4.headerScroll, - lastShowIndex = _props4.lastShowIndex, - onDraggingBorder = _props4.onDraggingBorder, - leftFixedWidth = _props4.leftFixedWidth, - rightFixedWidth = _props4.rightFixedWidth; - - _utils.Event.stopPropagation(e); - var event = _utils.Event.getEvent(e); - if (_this8.props.dragborder && _this8.drag.option == "border") { - //移动改变宽度 - var currentCols = _this8.table.cols[_this8.drag.currIndex]; - var diff = event.x - _this8.drag.oldLeft; - var newWidth = _this8.drag.oldWidth + diff; - _this8.drag.newWidth = newWidth > 0 ? newWidth : _this8.minWidth; - if (newWidth > _this8.minWidth) { - currentCols.style.width = newWidth + 'px'; - //hao 支持固定表头拖拽 修改表体的width - if (_this8.fixedTable.cols) { - _this8.fixedTable.cols[_this8.drag.currIndex].style.width = newWidth + "px"; - } - - var newDiff = parseInt(currentCols.style.minWidth) - parseInt(currentCols.style.width); - if (newDiff > 0) { - //缩小 - var lastWidth = _this8.lastColumWidth + newDiff; - _this8.table.cols[lastShowIndex].style.width = lastWidth + "px"; //同步表头 - _this8.table.tableBodyCols[lastShowIndex].style.width = lastWidth + "px"; //同步表体 - } - var showScroll = contentDomWidth - (leftFixedWidth + rightFixedWidth) - (_this8.drag.tableWidth + diff) - scrollbarWidth; - //表头滚动条处理 - if (headerScroll) { - if (showScroll < 0) { - //小于 0 出现滚动条 - //找到固定列表格,设置表头的marginBottom值为scrollbarWidth; - _this8.table.contentTableHeader.style.overflowX = 'scroll'; - _this8.optTableMargin(_this8.table.fixedLeftHeaderTable, scrollbarWidth); - _this8.optTableMargin(_this8.table.fixedRighHeadertTable, scrollbarWidth); - } else { - //大于 0 不显示滚动条 - _this8.table.contentTableHeader.style.overflowX = 'hidden'; - _this8.optTableMargin(_this8.table.fixedLeftHeaderTable, 0); - _this8.optTableMargin(_this8.table.fixedRighHeadertTable, 0); - } - } else { - if (showScroll < 0) { - _this8.table.tableBody.style.overflowX = 'auto'; - _this8.optTableMargin(_this8.table.fixedLeftBodyTable, '-' + scrollbarWidth); - _this8.optTableMargin(_this8.table.fixedRightBodyTable, '-' + scrollbarWidth); - _this8.optTableScroll(_this8.table.fixedLeftBodyTable, { x: 'scroll' }); - _this8.optTableScroll(_this8.table.fixedRightBodyTable, { x: 'scroll' }); - } else { - _this8.table.tableBody.style.overflowX = 'hidden'; - _this8.optTableMargin(_this8.table.fixedLeftBodyTable, 0); - _this8.optTableMargin(_this8.table.fixedRightBodyTable, 0); - _this8.optTableScroll(_this8.table.fixedLeftBodyTable, { x: 'auto' }); - _this8.optTableScroll(_this8.table.fixedRightBodyTable, { x: 'auto' }); - } - } - } else { - _this8.drag.newWidth = _this8.minWidth; - } - } - // 增加拖拽列宽动作的回调函数 - _this8.drag.newWidth && onDraggingBorder && onDraggingBorder(event, _this8.drag.newWidth); - }; - - this.onTrMouseUp = function (e) { - var event = _utils.Event.getEvent(e); - var width = _this8.drag.newWidth; - var opt = _this8.drag.option; - _this8.mouseClear(); - if (opt !== "border") return; // fix:点击表头会触发onDropBorder事件的问题 - _this8.props.onDropBorder && _this8.props.onDropBorder(event, width); - }; - - this.clearThsDr = function () { - var ths = _this8.table.ths; - for (var index = 0; index < ths.length; index++) { - ths[index].setAttribute('draggable', false); //去掉交换列效果 - } - }; - - this.bodyonLineMouseUp = function (events, type) { - if (!_this8.drag || !_this8.drag.option) return; - _this8.mouseClear(); - }; - - this.optTableMargin = function (table, scrollbarWidth) { - if (table) { - table.style.marginBottom = scrollbarWidth + "px"; - } - }; - - this.optTableScroll = function (table) { - var overflow = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - if (table) { - var innerTable = table.querySelector('.u-table-body-inner'); - if (innerTable) { - //fixbug: 拖拽列宽后,滚动条滚到表格底部,会导致固定列和非固定列错行 - overflow.x && (innerTable.style.overflowX = overflow.x); - overflow.y && (innerTable.style.overflowY = overflow.y); - } - } - }; - - this.onDragStart = function (e) { - if (!_this8.props.draggable) return; - if (_this8.drag && _this8.drag.option != 'dragAble') { - return; - } - var event = _utils.Event.getEvent(e), - - // target = Event.getTarget(event); - target = _this8.getTargetToTh(_utils.Event.getTarget(event)); - var currentIndex = parseInt(target.getAttribute("data-line-index")); - var currentKey = target.getAttribute('data-line-key'); - - if (event.dataTransfer.setDragImage) { - var crt = target.cloneNode(true); - crt.style.backgroundColor = "#ebecf0"; - crt.style.width = _this8.table.cols[currentIndex].style.width; //拖动后再交换列的时候,阴影效果可同步 - crt.style.height = "40px"; - // crt.style['line-height'] = "40px"; - // document.body.appendChild(crt); - document.getElementById(_this8._table_none_cont_id).appendChild(crt); - event.dataTransfer.setDragImage(crt, 0, 0); - } - - event.dataTransfer.effectAllowed = "move"; - event.dataTransfer.setData("Text", currentKey); - _this8.currentObj = _this8.props.rows[0][currentIndex]; - }; - - this.onDragOver = function (e) { - var event = _utils.Event.getEvent(e); - event.preventDefault(); - }; - - this.onDrop = function (e) { - if (!_this8.props.draggable) return; - var props = _this8.getCurrentEventData(_this8._dragCurrent); - e.column = { props: props }; - if (_this8.drag && _this8.drag.option != 'dragAble') { - _this8.props.onDrop(e); - return; - } - var event = _utils.Event.getEvent(e), - target = _utils.Event.getTarget(event); - _this8.currentDome.setAttribute('draggable', false); //添加交换列效果 - // let data = this.getCurrentEventData(this._dragCurrent); - // if(!data){ - // this.props.onDrop(e); - // return; - // } - if (!_this8.props.onDrop) return; - // this.props.onDrop(event,target); - _this8.props.onDrop(event, { dragSource: _this8.currentObj, dragTarg: e.column }); - }; - - this.onDragEnter = function (e) { - var event = _utils.Event.getEvent(e), - target = _utils.Event.getTarget(event); - _this8._dragCurrent = target; - var currentIndex = target.getAttribute("data-line-index"); - if (!currentIndex || parseInt(currentIndex) === _this8.drag.currIndex) return; - if (target.nodeName.toUpperCase() === "TH") { - // target.style.border = "2px dashed rgba(5,0,0,0.25)"; - target.setAttribute("style", "border-right:2px dashed rgb(30, 136, 229)"); - // target.style.backgroundColor = 'rgb(235, 236, 240)'; - } - }; - - this.onDragEnd = function (e) { - var event = _utils.Event.getEvent(e), - target = _utils.Event.getTarget(event); - _this8._dragCurrent.setAttribute("style", ""); - // this._dragCurrent.style = ""; - document.getElementById(_this8._table_none_cont_id).innerHTML = ""; - - var data = _this8.getCurrentEventData(_this8._dragCurrent); - if (!data) return; - if (!_this8.currentObj || _this8.currentObj.key == data.key) return; - if (!_this8.props.onDragEnd) return; - _this8.props.onDragEnd(event, { dragSource: _this8.currentObj, dragTarg: data }); - }; - - this.onDragLeave = function (e) { - var event = _utils.Event.getEvent(e), - target = _utils.Event.getTarget(event); - var currentIndex = target.getAttribute("data-line-index"); - if (!currentIndex || parseInt(currentIndex) === _this8.drag.currIndex) return; - if (target.nodeName.toUpperCase() === "TH") { - target.setAttribute("style", ""); - // this._dragCurrent.style = ""; - } - }; - - this.handlerFilterChange = function (key, value, condition) { - var onFilterChange = _this8.props.onFilterChange; - - if (onFilterChange) { - onFilterChange(key, value, condition); - } - }; - - this.handlerFilterClear = function (field) { - var onFilterClear = _this8.props.onFilterClear; - - if (onFilterClear) { - onFilterClear(field); - } - }; - - this.filterRenderType = function (type, dataIndex, index) { - var _props5 = _this8.props, - clsPrefix = _props5.clsPrefix, - rows = _props5.rows, - filterDelay = _props5.filterDelay, - locale = _props5.locale; - - switch (type) { - //文本输入 - case "text": - return _react2["default"].createElement(_FilterType2["default"], { - locale: locale //多语 - , rendertype: type //渲染类型 - , clsPrefix: clsPrefix //css前缀 - , className: clsPrefix + " filter-text", - dataIndex: dataIndex //字段 - , onFilterChange: (0, _throttleDebounce.debounce)(filterDelay || 300, _this8.handlerFilterChange) //输入框回调 - , onFilterClear: _this8.handlerFilterClear //清除回调 - , filterDropdown: rows[1][index]["filterdropdown"] //是否显示下拉条件 - , filterDropdownType: rows[1][index]["filterdropdowntype"] //下拉的条件类型为string,number - , filterDropdownIncludeKeys: rows[1][index]["filterdropdownincludekeys"] //下拉条件按照指定的keys去显示 - }); - //数值输入 - case "number": - return _react2["default"].createElement(_FilterType2["default"], { - locale: locale, - rendertype: type, - clsPrefix: clsPrefix, - className: clsPrefix + " filter-text", - dataIndex: dataIndex //字段 - , onFilterChange: (0, _throttleDebounce.debounce)(filterDelay || 300, _this8.handlerFilterChange) //输入框回调并且函数防抖动 - , onFilterClear: _this8.handlerFilterClear //清除回调 - , filterDropdown: rows[1][index]["filterdropdown"], - filterDropdownType: rows[1][index]["filterdropdowntype"] //下拉的条件类型为string,number - , filterDropdownIncludeKeys: rows[1][index]["filterdropdownincludekeys"] //下拉条件按照指定的keys去显示 - , filterInputNumberOptions: rows[1][index]["filterinputnumberoptions"] //设置数值框内的详细属性 - }); - //下拉框选择 - case "dropdown": - var selectDataSource = []; - //处理没有输入数据源的时候,系统自动查找自带的数据筛选后注入 - if (rows.length > 0 && (rows[1][index]["filterdropdownauto"] || "auto") == "auto") { - var hash = {}; - //处理下拉重复对象组装dropdown - selectDataSource = Array.from(rows[1][0].datasource, function (x) { - return { - key: x[dataIndex], - value: x[dataIndex] - }; - }); - selectDataSource = selectDataSource.reduceRight(function (item, next) { - hash[next.key] ? "" : hash[next.key] = true && item.push(next); - return item; - }, []); - } else { - //从外部数据源加载系统数据 - selectDataSource = rows[1][index]["filterdropdowndata"]; - } - return _react2["default"].createElement(_FilterType2["default"], { - locale: locale, - rendertype: type, - className: clsPrefix + " filter-dropdown", - data: selectDataSource, - notFoundContent: "Loading" //没有数据显示的默认字 - , dataIndex: dataIndex //字段 - , onFilterChange: _this8.handlerFilterChange //输入框回调 - , onFilterClear: _this8.handlerFilterClear //清除回调 - , filterDropdown: rows[1][index]["filterdropdown"], - onFocus: rows[1][index]["filterdropdownfocus"], - filterDropdownType: rows[1][index]["filterdropdowntype"] //下拉的条件类型为string,number - , filterDropdownIncludeKeys: rows[1][index]["filterdropdownincludekeys"] //下拉条件按照指定的keys去显示 - }); - //日期 - case "date": - return _react2["default"].createElement(_FilterType2["default"], { - locale: locale, - rendertype: type, - className: "filter-date", - onClick: function onClick() {}, - format: rows[1][index]["format"] || "YYYY-MM-DD", - dataIndex: dataIndex //字段 - , onFilterChange: _this8.handlerFilterChange //输入框回调 - , onFilterClear: _this8.handlerFilterClear //清除回调 - , filterDropdown: rows[1][index]["filterdropdown"], - filterDropdownType: rows[1][index]["filterdropdowntype"] //下拉的条件类型为string,number - , filterDropdownIncludeKeys: rows[1][index]["filterdropdownincludekeys"] //下拉条件按照指定的keys去显示 - }); - //日期 年 - case "dateyear": - return _react2["default"].createElement(_FilterType2["default"], { - locale: locale, - rendertype: type, - className: "filter-date", - onClick: function onClick() {}, - format: rows[1][index]["format"] || "YYYY", - dataIndex: dataIndex //字段 - , onFilterChange: _this8.handlerFilterChange //输入框回调 - , onFilterClear: _this8.handlerFilterClear //清除回调 - , filterDropdown: rows[1][index]["filterdropdown"], - filterDropdownType: rows[1][index]["filterdropdowntype"] //下拉的条件类型为string,number - , filterDropdownIncludeKeys: rows[1][index]["filterdropdownincludekeys"] //下拉条件按照指定的keys去显示 - }); - //日期 月 - case "datemonth": - return _react2["default"].createElement(_FilterType2["default"], { - locale: locale, - rendertype: type, - className: "filter-date", - onClick: function onClick() {}, - format: rows[1][index]["format"] || "YYYY-MM", - dataIndex: dataIndex //字段 - , onFilterChange: _this8.handlerFilterChange //输入框回调 - , onFilterClear: _this8.handlerFilterClear //清除回调 - , filterDropdown: rows[1][index]["filterdropdown"], - filterDropdownType: rows[1][index]["filterdropdowntype"] //下拉的条件类型为string,number - , filterDropdownIncludeKeys: rows[1][index]["filterdropdownincludekeys"] //下拉条件按照指定的keys去显示 - }); - //日期 周 - case "dateweek": - return _react2["default"].createElement(_FilterType2["default"], { - locale: locale, - rendertype: type, - className: "filter-date", - onClick: function onClick() {}, - format: rows[1][index]["format"] || "YYYY-Wo", - dataIndex: dataIndex //字段 - , onFilterChange: _this8.handlerFilterChange //输入框回调 - , onFilterClear: _this8.handlerFilterClear //清除回调 - , filterDropdown: rows[1][index]["filterdropdown"], - filterDropdownType: rows[1][index]["filterdropdowntype"] //下拉的条件类型为string,number - , filterDropdownIncludeKeys: rows[1][index]["filterdropdownincludekeys"] //下拉条件按照指定的keys去显示 - }); - //日期范围 - case "daterange": - return _react2["default"].createElement(_FilterType2["default"], { - locale: locale, - rendertype: type, - className: "filter-date", - onClick: function onClick() {}, - format: rows[1][index]["format"] || "YYYY-MM-DD", - dataIndex: dataIndex //字段 - , onFilterChange: _this8.handlerFilterChange //输入框回调 - , onFilterClear: _this8.handlerFilterClear //清除回调 - , filterDropdown: rows[1][index]["filterdropdown"], - filterDropdownType: rows[1][index]["filterdropdowntype"] //下拉的条件类型为string,number - , filterDropdownIncludeKeys: rows[1][index]["filterdropdownincludekeys"] //下拉条件按照指定的keys去显示 - }); - default: - //不匹配类型默认文本输入 - return _react2["default"].createElement("div", null); - } - }; - }; - - TableHeader.propTypes = propTypes; - exports["default"] = TableHeader; - module.exports = exports["default"]; - -/***/ }), -/* 394 */ -/***/ (function(module, exports) { - - 'use strict'; - - Object.defineProperty(exports, '__esModule', { value: true }); - - /* eslint-disable no-undefined,no-param-reassign,no-shadow */ - - /** - * Throttle execution of a function. Especially useful for rate limiting - * execution of handlers on events like resize and scroll. - * - * @param {number} delay - A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful. - * @param {boolean} [noTrailing] - Optional, defaults to false. If noTrailing is true, callback will only execute every `delay` milliseconds while the - * throttled-function is being called. If noTrailing is false or unspecified, callback will be executed one final time - * after the last throttled-function call. (After the throttled-function has not been called for `delay` milliseconds, - * the internal counter is reset). - * @param {Function} callback - A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is, - * to `callback` when the throttled-function is executed. - * @param {boolean} [debounceMode] - If `debounceMode` is true (at begin), schedule `clear` to execute after `delay` ms. If `debounceMode` is false (at end), - * schedule `callback` to execute after `delay` ms. - * - * @returns {Function} A new, throttled, function. - */ - function throttle (delay, noTrailing, callback, debounceMode) { - /* - * After wrapper has stopped being called, this timeout ensures that - * `callback` is executed at the proper times in `throttle` and `end` - * debounce modes. - */ - var timeoutID; - var cancelled = false; // Keep track of the last time `callback` was executed. - - var lastExec = 0; // Function to clear existing timeout - - function clearExistingTimeout() { - if (timeoutID) { - clearTimeout(timeoutID); - } - } // Function to cancel next exec - - - function cancel() { - clearExistingTimeout(); - cancelled = true; - } // `noTrailing` defaults to falsy. - - - if (typeof noTrailing !== 'boolean') { - debounceMode = callback; - callback = noTrailing; - noTrailing = undefined; - } - /* - * The `wrapper` function encapsulates all of the throttling / debouncing - * functionality and when executed will limit the rate at which `callback` - * is executed. - */ - - - function wrapper() { - for (var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++) { - arguments_[_key] = arguments[_key]; - } - - var self = this; - var elapsed = Date.now() - lastExec; - - if (cancelled) { - return; - } // Execute `callback` and update the `lastExec` timestamp. - - - function exec() { - lastExec = Date.now(); - callback.apply(self, arguments_); - } - /* - * If `debounceMode` is true (at begin) this is used to clear the flag - * to allow future `callback` executions. - */ - - - function clear() { - timeoutID = undefined; - } - - if (debounceMode && !timeoutID) { - /* - * Since `wrapper` is being called for the first time and - * `debounceMode` is true (at begin), execute `callback`. - */ - exec(); - } - - clearExistingTimeout(); - - if (debounceMode === undefined && elapsed > delay) { - /* - * In throttle mode, if `delay` time has been exceeded, execute - * `callback`. - */ - exec(); - } else if (noTrailing !== true) { - /* - * In trailing throttle mode, since `delay` time has not been - * exceeded, schedule `callback` to execute `delay` ms after most - * recent execution. - * - * If `debounceMode` is true (at begin), schedule `clear` to execute - * after `delay` ms. - * - * If `debounceMode` is false (at end), schedule `callback` to - * execute after `delay` ms. - */ - timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay); - } - } - - wrapper.cancel = cancel; // Return the wrapper function. - - return wrapper; - } - - /* eslint-disable no-undefined */ - /** - * Debounce execution of a function. Debouncing, unlike throttling, - * guarantees that a function is only executed a single time, either at the - * very beginning of a series of calls, or at the very end. - * - * @param {number} delay - A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful. - * @param {boolean} [atBegin] - Optional, defaults to false. If atBegin is false or unspecified, callback will only be executed `delay` milliseconds - * after the last debounced-function call. If atBegin is true, callback will be executed only at the first debounced-function call. - * (After the throttled-function has not been called for `delay` milliseconds, the internal counter is reset). - * @param {Function} callback - A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is, - * to `callback` when the debounced-function is executed. - * - * @returns {Function} A new, debounced function. - */ - - function debounce (delay, atBegin, callback) { - return callback === undefined ? throttle(delay, atBegin, false) : throttle(delay, callback, atBegin !== false); - } - - exports.debounce = debounce; - exports.throttle = throttle; - //# sourceMappingURL=index.cjs.js.map - - -/***/ }), -/* 395 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _propTypes = __webpack_require__(6); - - var _propTypes2 = _interopRequireDefault(_propTypes); - - var _beeDatepicker = __webpack_require__(396); - - var _beeDatepicker2 = _interopRequireDefault(_beeDatepicker); - - var _zh_CN = __webpack_require__(567); - - var _zh_CN2 = _interopRequireDefault(_zh_CN); - - var _beeFormControl = __webpack_require__(268); - - var _beeFormControl2 = _interopRequireDefault(_beeFormControl); - - var _beeSelect = __webpack_require__(576); - - var _beeSelect2 = _interopRequireDefault(_beeSelect); - - var _beeInputNumber = __webpack_require__(595); - - var _beeInputNumber2 = _interopRequireDefault(_beeInputNumber); - - var _FilterDropDown = __webpack_require__(599); - - var _FilterDropDown2 = _interopRequireDefault(_FilterDropDown); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - - var RangePicker = _beeDatepicker2['default'].RangePicker, - YearPicker = _beeDatepicker2['default'].YearPicker, - MonthPicker = _beeDatepicker2['default'].MonthPicker, - WeekPicker = _beeDatepicker2['default'].WeekPicker; - - - var propTypes = { - filterDropdown: _propTypes2['default'].string - }; - - var FilterType = function (_Component) { - _inherits(FilterType, _Component); - - function FilterType(props) { - _classCallCheck(this, FilterType); - - var _this = _possibleConstructorReturn(this, _Component.call(this, props)); - - _this.clearFilter = function () { - var _this$props = _this.props, - onFilterClear = _this$props.onFilterClear, - dataIndex = _this$props.dataIndex; - - if (_this.state.value !== "") { - _this.setState({ - value: "", //清空值 - condition: _this.props.filterDropdownType == 'string' ? 'LIKE' : 'EQ' //切回默认查询条件 - }, function () { - //调用清除方法参数为当前字段的field - onFilterClear && onFilterClear(dataIndex); - }); - } - }; - - _this.changeText = function (val) { - var _this$props2 = _this.props, - onFilterChange = _this$props2.onFilterChange, - dataIndex = _this$props2.dataIndex; - - _this.setState({ - value: val - }, function () { - onFilterChange(dataIndex, val, _this.state.condition); - }); - }; - - _this.changeTextCall = function (e) { - var _this$props3 = _this.props, - onFilterChange = _this$props3.onFilterChange, - dataIndex = _this$props3.dataIndex; - - if (e.keyCode == 13) { - e.target.value !== "" && onFilterChange(dataIndex, e.target.value, _this.state.condition); - } - }; - - _this.changeValue = function () { - _this.setState({ - value: "" - }); - }; - - _this.onSelectDropdown = function (item) { - var _this$props4 = _this.props, - onFilterChange = _this$props4.onFilterChange, - dataIndex = _this$props4.dataIndex; - - _this.setState({ - condition: item.key - }, function () { - _this.state.value !== "" && onFilterChange && onFilterChange(dataIndex, _this.state.value, _this.state.condition); - }); - }; - - _this.changeNumber = function (value) { - var _this$props5 = _this.props, - onFilterChange = _this$props5.onFilterChange, - dataIndex = _this$props5.dataIndex; - - _this.setState({ - value: value - }, function () { - onFilterChange(dataIndex, value, _this.state.condition); - }); - }; - - _this.clearNumber = function () { - var onChange = _this.props.onChange; - - onChange && onChange(""); - _this.setState({ - value: "" - }); - }; - - _this.changeTextCallBlur = function (val) { - var onChange = _this.props.onChange; - - onChange && onChange(val); - }; - - _this.changeSelect = function (value) { - var _this$props6 = _this.props, - onFilterChange = _this$props6.onFilterChange, - dataIndex = _this$props6.dataIndex; - - if (onFilterChange) { - onFilterChange(dataIndex, value, _this.state.condition); - _this.setState({ - value: value - }); - } - }; - - _this.clearSelectValue = function () { - _this.setState({ - selectValue: "" - }, function () { - _this.changeSelect(""); - }); - }; - - _this.clearDateValue = function () { - _this.setState({ - dateValue: "" - }, function () { - _this.changeDate(""); - }); - }; - - _this.changeDate = function (value) { - var _this$props7 = _this.props, - onFilterChange = _this$props7.onFilterChange, - dataIndex = _this$props7.dataIndex; - - if (onFilterChange) { - onFilterChange(dataIndex, value, _this.state.condition); - _this.setState({ - value: value, - open: false - }); - } - }; - - _this.renderControl = function (rendertype) { - var _this$props8 = _this.props, - filterInputNumberOptions = _this$props8.filterInputNumberOptions, - filterDropdownIncludeKeys = _this$props8.filterDropdownIncludeKeys, - dataIndex = _this$props8.dataIndex, - filterDropdown = _this$props8.filterDropdown, - filterDropdownType = _this$props8.filterDropdownType, - format = _this$props8.format, - className = _this$props8.className, - onChange = _this$props8.onChange, - onSelectDropdown = _this$props8.onSelectDropdown, - clsPrefix = _this$props8.clsPrefix, - locale = _this$props8.locale; - - switch (rendertype) { - case 'text': - return _react2['default'].createElement( - 'div', - { className: clsPrefix + ' filter-wrap' }, - _react2['default'].createElement(_beeFormControl2['default'], { - value: _this.state.value, - className: className, - onChange: _this.changeText, - onKeyDown: _this.changeTextCall - //onBlur={this.changeTextCallBlur} - }), - _react2['default'].createElement(_FilterDropDown2['default'], { - locale: locale, - dataIndex: dataIndex, - dataText: _this.state.value, - onSelectDropdown: _this.onSelectDropdown, - onClickClear: _this.clearFilter, - isShowClear: _this.state.value, - isShowCondition: filterDropdown, - filterDropdownType: filterDropdownType, - filterDropdownIncludeKeys: filterDropdownIncludeKeys - }) - ); - case 'number': - return _react2['default'].createElement( - 'div', - { className: clsPrefix + ' filter-wrap' }, - _react2['default'].createElement(_beeInputNumber2['default'], _extends({}, filterInputNumberOptions, { - className: className, - value: _this.state.value, - onChange: _this.changeNumber, - iconStyle: 'one' - })), - _react2['default'].createElement(_FilterDropDown2['default'], { - locale: locale, - dataIndex: dataIndex, - dataText: _this.state.value, - onSelectDropdown: _this.onSelectDropdown, - onClickClear: _this.clearFilter, - isShowClear: _this.state.value != 0, - isShowCondition: filterDropdown, - filterDropdownType: filterDropdownType, - filterDropdownIncludeKeys: filterDropdownIncludeKeys - }) - ); - case 'dropdown': - return _react2['default'].createElement( - 'div', - { className: clsPrefix + ' filter-wrap' }, - _react2['default'].createElement(_beeSelect2['default'], _extends({}, _this.props, { - size: 'sm', - value: _this.state.value, - onChange: _this.changeSelect - })), - _react2['default'].createElement(_FilterDropDown2['default'], { - locale: locale, - dataIndex: dataIndex, - dataText: _this.state.value, - onSelectDropdown: _this.onSelectDropdown, - onClickClear: _this.clearFilter, - isShowCondition: filterDropdown, - isShowClear: _this.state.value, - filterDropdownType: filterDropdownType, - filterDropdownIncludeKeys: filterDropdownIncludeKeys - }) - ); - case 'date': - return _react2['default'].createElement( - 'div', - { className: clsPrefix + ' filter-wrap' }, - _react2['default'].createElement(_beeDatepicker2['default'], _extends({}, _this.props, { - value: _this.state.value, - onChange: _this.changeDate, - open: _this.state.open, - format: format, - locale: _zh_CN2['default'] - })), - _react2['default'].createElement(_FilterDropDown2['default'], { - locale: locale, - dataIndex: dataIndex, - dataText: _this.state.value, - onSelectDropdown: _this.onSelectDropdown, - onClickClear: _this.clearFilter, - isShowCondition: filterDropdown, - isShowClear: _this.state.value, - filterDropdownType: filterDropdownType, - filterDropdownIncludeKeys: filterDropdownIncludeKeys - }) - ); - case 'dateyear': - return _react2['default'].createElement( - 'div', - { className: clsPrefix + ' filter-wrap' }, - _react2['default'].createElement(YearPicker, _extends({}, _this.props, { - value: _this.state.value, - onChange: _this.changeDate, - open: _this.state.open, - format: format, - locale: _zh_CN2['default'] - })), - _react2['default'].createElement(_FilterDropDown2['default'], { - locale: locale, - dataIndex: dataIndex, - dataText: _this.state.value, - onSelectDropdown: _this.onSelectDropdown, - onClickClear: _this.clearFilter, - isShowCondition: filterDropdown, - isShowClear: _this.state.value, - filterDropdownType: filterDropdownType, - filterDropdownIncludeKeys: filterDropdownIncludeKeys - }) - ); - case 'datemonth': - return _react2['default'].createElement( - 'div', - { className: clsPrefix + ' filter-wrap' }, - _react2['default'].createElement(MonthPicker, _extends({}, _this.props, { - value: _this.state.value, - onChange: _this.changeDate, - open: _this.state.open, - format: format, - locale: _zh_CN2['default'] - })), - _react2['default'].createElement(_FilterDropDown2['default'], { - locale: locale, - dataIndex: dataIndex, - dataText: _this.state.value, - onSelectDropdown: _this.onSelectDropdown, - onClickClear: _this.clearFilter, - isShowCondition: filterDropdown, - isShowClear: _this.state.value, - filterDropdownType: filterDropdownType, - filterDropdownIncludeKeys: filterDropdownIncludeKeys - }) - ); - case 'dateweek': - return _react2['default'].createElement( - 'div', - { className: clsPrefix + ' filter-wrap' }, - _react2['default'].createElement(WeekPicker, _extends({}, _this.props, { - value: _this.state.value, - onChange: _this.changeDate, - open: _this.state.open, - format: format, - locale: _zh_CN2['default'] - })), - _react2['default'].createElement(_FilterDropDown2['default'], { - locale: locale, - dataIndex: dataIndex, - dataText: _this.state.value, - onSelectDropdown: _this.onSelectDropdown, - onClickClear: _this.clearFilter, - isShowCondition: filterDropdown, - isShowClear: _this.state.value, - filterDropdownType: filterDropdownType, - filterDropdownIncludeKeys: filterDropdownIncludeKeys - }) - ); - case 'daterange': - return _react2['default'].createElement( - 'div', - { className: clsPrefix + ' filter-wrap' }, - _react2['default'].createElement(RangePicker, _extends({}, _this.props, { - value: _this.state.value, - onChange: _this.changeDate, - open: _this.state.open, - format: format, - showTime: true, - locale: _zh_CN2['default'], - placeholder: '开始 ~ 结束', - dateInputPlaceholder: ['开始', '结束'], - showClear: true - })), - _react2['default'].createElement(_FilterDropDown2['default'], { - locale: locale, - dataIndex: dataIndex, - dataText: _this.state.value, - onSelectDropdown: _this.onSelectDropdown, - onClickClear: _this.clearFilter, - isShowCondition: filterDropdown, - isShowClear: _this.state.value, - filterDropdownIncludeKeys: filterDropdownIncludeKeys - }) - ); - case 'bool': - return _react2['default'].createElement( - 'div', - { className: clsPrefix + ' filter-wrap' }, - _react2['default'].createElement(Switch, { - className: className, - onChange: onChange - }), - _react2['default'].createElement(_FilterDropDown2['default'], { locale: locale, - onSelectDropdown: onSelectDropdown, - filterDropdownIncludeKeys: filterDropdownIncludeKeys - }) - ); - default: - return _react2['default'].createElement('div', null); - } - }; - - _this.state = { - value: "", - text: "", - selectValue: "", - dateValue: "", - open: false, - condition: props.filterDropdownType == 'string' ? 'LIKE' : 'EQ', - number: 0 - }; - return _this; - } - - /** - * 清除过滤条件 - * - */ - - - /** - * 设置输入文本的值 - * - */ - - - /** - * 输入框回车执行回调 - * - */ - - /** - * 更改修改值 - * - */ - - /** - * 下拉条件的回调 - * - * @param {*} key 字段 - * @param {*} value 值1,2,3...6 - */ - - - /** - * 修改数值型的值 - * - */ - - //清除数值 - - - //失去焦点后执行函数 - - //设置下拉值 - - //清除下拉值 - - //清除日期值 - - //设置日期值 - - //组件渲染 - /** - * 根据不同的类型生成对应的组件类型包含一些参数的适应 - * - * @param {*} rendertype 参数类型,包括['text','dropdown','date','dateyear','datemonth','dateweek',daterange','number'] - * @returns - */ - - - FilterType.prototype.render = function render() { - var rendertype = this.props.rendertype; - - return _react2['default'].createElement( - 'div', - { 'data-filter-type': 'filterContext' }, - this.renderControl(rendertype) - ); - }; - - return FilterType; - }(_react.Component); - - FilterType.propTypes = propTypes; - FilterType.defaultProps = { - filterDropdown: 'show' - }; - exports['default'] = FilterType; - module.exports = exports['default']; - -/***/ }), -/* 396 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _DatePicker = __webpack_require__(397); - - var _DatePicker2 = _interopRequireDefault(_DatePicker); - - var _MonthPicker = __webpack_require__(569); - - var _MonthPicker2 = _interopRequireDefault(_MonthPicker); - - var _RangePicker = __webpack_require__(571); - - var _RangePicker2 = _interopRequireDefault(_RangePicker); - - var _WeekPicker = __webpack_require__(574); - - var _WeekPicker2 = _interopRequireDefault(_WeekPicker); - - var _YearPicker = __webpack_require__(575); - - var _YearPicker2 = _interopRequireDefault(_YearPicker); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - - _DatePicker2["default"].MonthPicker = _MonthPicker2["default"]; - _DatePicker2["default"].RangePicker = _RangePicker2["default"]; - _DatePicker2["default"].WeekPicker = _WeekPicker2["default"]; - _DatePicker2["default"].YearPicker = _YearPicker2["default"]; - - exports["default"] = _DatePicker2["default"]; - module.exports = exports['default']; - -/***/ }), -/* 397 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - - var _rcCalendar = __webpack_require__(398); - - var _rcCalendar2 = _interopRequireDefault(_rcCalendar); - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _reactDom = __webpack_require__(2); - - var _reactDom2 = _interopRequireDefault(_reactDom); - - var _tinperBeeCore = __webpack_require__(27); - - var _Picker = __webpack_require__(556); - - var _Picker2 = _interopRequireDefault(_Picker); - - var _beeFormControl = __webpack_require__(268); - - var _beeFormControl2 = _interopRequireDefault(_beeFormControl); - - var _Panel = __webpack_require__(558); - - var _Panel2 = _interopRequireDefault(_Panel); - - var _moment = __webpack_require__(404); - - var _moment2 = _interopRequireDefault(_moment); - - var _beeIcon = __webpack_require__(67); - - var _beeIcon2 = _interopRequireDefault(_beeIcon); - - var _classnames = __webpack_require__(5); - - var _classnames2 = _interopRequireDefault(_classnames); - - var _beeInputGroup = __webpack_require__(562); - - var _beeInputGroup2 = _interopRequireDefault(_beeInputGroup); - - var _zh_CN = __webpack_require__(567); - - var _zh_CN2 = _interopRequireDefault(_zh_CN); - - var _omit = __webpack_require__(568); - - var _omit2 = _interopRequireDefault(_omit); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** - * Created by chief on 17/4/6. - */ - - var timerDatePicker = true; - - var DatePicker = function (_Component) { - _inherits(DatePicker, _Component); - - function DatePicker(props, context) { - _classCallCheck(this, DatePicker); - - var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); - - _initialiseProps.call(_this); - - _this.state = { - type: "month", - value: _this.initValue(props), - open: props.open || false, - inputValue: _this.initValue(props), - showClose: false - }; - _this.fileChange = true; - - return _this; - } - - DatePicker.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - if ("value" in nextProps) { - this.setState({ - value: this.initValue(nextProps) - }); - } - if ("open" in nextProps) { - this.setState({ - open: nextProps.open - }); - } - if ("renderIcon" in nextProps) { - this.setState({ - renderIcon: nextProps.renderIcon - }); - } - }; - //日期面板中输入框的失焦事件 - - //fix:更改系统时区后,日期框需要触发 onChange 事件 - - //阻止组件内部事件冒泡到组件外部容器 - - - DatePicker.prototype.render = function render() { - var _this2 = this; - - var state = this.state; - var props = this.props; - - var showClose = props.showClose, - defaultPanelShown = props.defaultPanelShown, - onBlur = props.onBlur, - showHour = props.showHour, - showMinute = props.showMinute, - showSecond = props.showSecond, - others = _objectWithoutProperties(props, ["showClose", "defaultPanelShown", "onBlur", "showHour", "showMinute", "showSecond"]); - - var value = state.value; - var pickerChangeHandler = {}; - var calendarHandler = {}; - var autofocus = this.props.autofocus ? { autofocus: 'autofocus' } : null; - - if (props.showTime) { - calendarHandler = { - // fix https://github.com/ant-design/ant-design/issues/1902 - onSelect: this.handleChange - }; - } else { - pickerChangeHandler = { - onChange: this.handleChange - }; - } - - var splitNumber = '3'; - if (!showHour) splitNumber -= 1; - if (!showMinute) splitNumber -= 1; - if (!showSecond) splitNumber -= 1; - - var calendar = _react2["default"].createElement(_rcCalendar2["default"], _extends({ - timePicker: props.showTime ? _react2["default"].createElement(_Panel2["default"], { - className: 'time-split-' + splitNumber, - showHour: showHour, showMinute: showMinute, showSecond: showSecond, - defaultValue: (0, _moment2["default"])((0, _moment2["default"])().format("HH:mm:ss"), "HH:mm:ss") }) : null - }, props, { - onSelect: this.handleSelect, - onChange: this.handleCalendarChange, - value: value, - onInputBlur: this.onDateInputBlur - })); - - var keyboardInputProps = {}; - if (props.keyboardInput) { - keyboardInputProps.readOnly = false; - keyboardInputProps.onChange = this.inputChange; - keyboardInputProps.value = state.inputValue.format && state.inputValue.isValid() && this.props.validatorFunc(state.inputValue) ? state.inputValue.format(props.format) : state.inputValue; - } else { - keyboardInputProps.readOnly = true; - keyboardInputProps.value = value && this.getValue(value) || ""; - } - var classes = (0, _classnames2["default"])(props.className, "datepicker-container"); - return _react2["default"].createElement( - "div", - _extends({ className: classes, onMouseEnter: this.onDateHover, onClick: this.stopPropagation - }, (0, _omit2["default"])(others, ['onDateInputBlur', 'getCalendarContainer', 'showToday', 'renderFooter', 'keyboardInput', 'showDateInput', 'showTime', 'closeIcon', 'renderIcon', 'focusOnOpen', 'defultSelect', 'onOpenChange', 'locale', 'showMonthInput', 'onKeyDown', 'renderError', 'format', 'placeholder', 'disabledTime', 'onChange', 'disabledDate', 'iconClick', 'outInputKeydown'])), - _react2["default"].createElement( - _Picker2["default"], - _extends({ - animation: "slide-up" - }, props, pickerChangeHandler, { - onOpenChange: this.onOpenChange, - calendar: calendar, - mode: 'year', - open: 'defaultPanelShown' in props ? defaultPanelShown : this.state.open, - value: state.value - }), - function () { - return _react2["default"].createElement( - _beeInputGroup2["default"], - { simple: true, className: "datepicker-input-group", - onMouseEnter: _this2.onMouseEnter, - onMouseLeave: _this2.onMouseLeave - }, - _react2["default"].createElement(_beeFormControl2["default"], _extends({ - ref: function ref(_ref) { - return _this2.outInput = _ref; - }, - disabled: props.disabled, - placeholder: _this2.props.placeholder, - onClick: function onClick(event) { - _this2.onClick(event); - }, - focusSelect: props.defaultSelected, - onFocus: function onFocus(v, e) { - _this2.outInputFocus(e); - }, - onKeyDown: _this2.outInputKeydown - // value={(value && value.format(props.format)) || ""} - }, keyboardInputProps, autofocus)), - showClose && _this2.state.value && _this2.state.showClose && !props.disabled ? _react2["default"].createElement( - _beeInputGroup2["default"].Button, - { shape: "border", - onClick: _this2.clear }, - props.closeIcon() - ) : _react2["default"].createElement( - _beeInputGroup2["default"].Button, - { shape: "border", - onClick: function onClick(e) { - props.keyboardInput ? _this2.iconClick(e) : ''; - } }, - props.renderIcon() - ) - ); - } - ) - ); - }; - - return DatePicker; - }(_react.Component); - - var _initialiseProps = function _initialiseProps() { - var _this3 = this; - - this.initValue = function (props) { - var value = props.value || props.defaultValue; - if (value) { - if (typeof value == 'string') { - if ((0, _moment2["default"])(value).isValid()) { - value = (0, _moment2["default"])(value); - } else { - console.error('value is not in the correct format'); - value = ''; - } - } else if (value.format && value.isValid()) { - value = value; - } else { - console.error('value is not in the correct format'); - value = ''; - } - } - return value; - }; - - this.getValue = function (value) { - var format = _this3.props.format; - - if (typeof format == 'string') { - return value.format(format); - } else { - return value.format(format[0]); - } - }; - - this.onChange = function (value) { - _this3.setState({ value: value }); - }; - - this.inputFocus = function () { - var _props = _this3.props, - format = _props.format, - validatorFunc = _props.validatorFunc, - disabledDate = _props.disabledDate; - - var input = document.querySelector('.rc-calendar-input'); - if (input) { - if (input.value) { - input.select(); - } else { - input.focus(); - } - input.onkeydown = function (e) { - if (e.keyCode == _tinperBeeCore.KeyCode.DELETE) { - input.value = ''; - _this3.fireChange('', ''); - } else if (e.keyCode == _tinperBeeCore.KeyCode.ESC) { - _this3.setState({ - open: false - }); - var v = _this3.state.value; - _this3.props.onOpenChange(false, v, v && _this3.getValue(v) || ''); - _reactDom2["default"].findDOMNode(_this3.outInput).focus(); // 按esc时候焦点回到input输入框 - } else if (e.keyCode == _tinperBeeCore.KeyCode.ENTER) { - var parsed = (0, _moment2["default"])(input.value, format, true); - var isDisabled = disabledDate && disabledDate(parsed); - if (parsed.isValid() && validatorFunc(input.value) && !isDisabled) { - _this3.setState({ - open: false - }); - var _v = _this3.state.value; - _this3.props.onOpenChange(false, _v, _v && _this3.getValue(_v) || ''); - _reactDom2["default"].findDOMNode(_this3.outInput).focus(); - } - if (!input.value) { - _this3.setState({ - open: false - }); - } - } - _this3.props.onKeyDown && _this3.props.onKeyDown(e); - }; - } - }; - - this.onOpenChange = function (open) { - var props = _this3.props; - var self = _this3; - _this3.setState({ - open: open - }, function () { - if (open) { - setTimeout(function () { - self.inputFocus(); - }, 0); - } - }); - var value = self.state.value; - props.onOpenChange(open, value, value && _this3.getValue(value) || ''); - if (open) { - setTimeout(function () { - self.inputFocus(); - }, 200); - } - }; - - this.handleCalendarChange = function (value) { - var props = _this3.props; - _this3.setState({ value: value, inputValue: value && _this3.getValue(value) || '' }); - _this3.fireChange(value, value && _this3.getValue(value) || ''); - }; - - this.handleChange = function (value) { - var props = _this3.props; - _this3.setState({ - value: value && _extends(value, { _type: 'date' }) || value, - inputValue: value && _this3.getValue(value) || '' - }); - if (timerDatePicker) { - clearTimeout(_this3.timerout); - _this3.fireChange(value, value && _this3.getValue(value) || ''); - timerDatePicker = false; - _this3.timerout = window.setTimeout(function () { - timerDatePicker = true; - }, 300); - } - }; - - this.onClick = function (e) { - var props = _this3.props; - if (props.keyboardInput) e.stopPropagation(); - var value = _this3.state.value; - if (props.keyboardInput) { - props.onClick && props.onClick(e.nativeEvent, value || null, _this3.state.inputValue); - } else { - props.onClick && props.onClick(e.nativeEvent, value || null, value && _this3.getValue(value) || ''); - } - }; + /** + * A collection of shims that provide minimal functionality of the ES6 collections. + * + * These implementations are not meant to be used outside of the ResizeObserver + * modules as they cover only a limited range of use cases. + */ + /* eslint-disable require-jsdoc, valid-jsdoc */ + var MapShim = (function () { + if (typeof Map !== 'undefined') { + return Map; + } + /** + * Returns index in provided array that matches the specified key. + * + * @param {Array} arr + * @param {*} key + * @returns {number} + */ + function getIndex(arr, key) { + var result = -1; + arr.some(function (entry, index) { + if (entry[0] === key) { + result = index; + return true; + } + return false; + }); + return result; + } + return /** @class */ (function () { + function class_1() { + this.__entries__ = []; + } + Object.defineProperty(class_1.prototype, "size", { + /** + * @returns {boolean} + */ + get: function () { + return this.__entries__.length; + }, + enumerable: true, + configurable: true + }); + /** + * @param {*} key + * @returns {*} + */ + class_1.prototype.get = function (key) { + var index = getIndex(this.__entries__, key); + var entry = this.__entries__[index]; + return entry && entry[1]; + }; + /** + * @param {*} key + * @param {*} value + * @returns {void} + */ + class_1.prototype.set = function (key, value) { + var index = getIndex(this.__entries__, key); + if (~index) { + this.__entries__[index][1] = value; + } + else { + this.__entries__.push([key, value]); + } + }; + /** + * @param {*} key + * @returns {void} + */ + class_1.prototype.delete = function (key) { + var entries = this.__entries__; + var index = getIndex(entries, key); + if (~index) { + entries.splice(index, 1); + } + }; + /** + * @param {*} key + * @returns {void} + */ + class_1.prototype.has = function (key) { + return !!~getIndex(this.__entries__, key); + }; + /** + * @returns {void} + */ + class_1.prototype.clear = function () { + this.__entries__.splice(0); + }; + /** + * @param {Function} callback + * @param {*} [ctx=null] + * @returns {void} + */ + class_1.prototype.forEach = function (callback, ctx) { + if (ctx === void 0) { ctx = null; } + for (var _i = 0, _a = this.__entries__; _i < _a.length; _i++) { + var entry = _a[_i]; + callback.call(ctx, entry[1], entry[0]); + } + }; + return class_1; + }()); + })(); - this.inputChange = function (value, e) { - if (_this3.props.keyboardInput) e.stopPropagation(); - _this3.setState({ - inputValue: value - }); - if ((0, _moment2["default"])(value, _this3.props.format).isValid() && _this3.props.validatorFunc(value)) { - _this3.setState({ - value: (0, _moment2["default"])(value, _this3.props.format) - }); - value = (0, _moment2["default"])(value, _this3.props.format); - _this3.fireChange(value, value && _this3.getValue(value) || ''); - } else { - _this3.fireChange(null, value); - } - }; + /** + * Detects whether window and document objects are available in current environment. + */ + var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && window.document === document; - this.outInputFocus = function (e) { - if (_this3.props.hasOwnProperty('open')) e.stopPropagation(); - _this3.props.outInputFocus && _this3.props.outInputFocus(e); - }; + // Returns global object of a current environment. + var global$1 = (function () { + if (typeof global !== 'undefined' && global.Math === Math) { + return global; + } + if (typeof self !== 'undefined' && self.Math === Math) { + return self; + } + if (typeof window !== 'undefined' && window.Math === Math) { + return window; + } + // eslint-disable-next-line no-new-func + return Function('return this')(); + })(); - this.iconClick = function (e) { - _this3.props.iconClick && _this3.props.iconClick(e); - }; + /** + * A shim for the requestAnimationFrame which falls back to the setTimeout if + * first one is not supported. + * + * @returns {number} Requests' identifier. + */ + var requestAnimationFrame$1 = (function () { + if (typeof requestAnimationFrame === 'function') { + // It's required to use a bounded function because IE sometimes throws + // an "Invalid calling object" error if rAF is invoked without the global + // object on the left hand side. + return requestAnimationFrame.bind(global$1); + } + return function (callback) { return setTimeout(function () { return callback(Date.now()); }, 1000 / 60); }; + })(); - this.outInputKeydown = function (e) { - if (e.keyCode == _tinperBeeCore.KeyCode.DELETE) { - _this3.setState({ - inputValue: '' - }); - _this3.fireChange('', ''); - } else if (e.keyCode == _tinperBeeCore.KeyCode.ESC) { - _this3.setState({ - open: false - }); - var value = _this3.state.inputValue; - if ((0, _moment2["default"])(value, _this3.props.format).isValid() && _this3.props.validatorFunc(value)) { - _this3.setState({ - value: (0, _moment2["default"])(value, _this3.props.format) - }); - value = (0, _moment2["default"])(value, _this3.props.format); - _this3.fireChange(value, value && _this3.getValue(value) || ''); - } else { - _this3.fireChange(null, value); - } + // Defines minimum timeout before adding a trailing call. + var trailingTimeout = 2; + /** + * Creates a wrapper function which ensures that provided callback will be + * invoked only once during the specified delay period. + * + * @param {Function} callback - Function to be invoked after the delay period. + * @param {number} delay - Delay after which to invoke callback. + * @returns {Function} + */ + function throttle (callback, delay) { + var leadingCall = false, trailingCall = false, lastCallTime = 0; + /** + * Invokes the original callback function and schedules new invocation if + * the "proxy" was called during current request. + * + * @returns {void} + */ + function resolvePending() { + if (leadingCall) { + leadingCall = false; + callback(); + } + if (trailingCall) { + proxy(); + } + } + /** + * Callback invoked after the specified delay. It will further postpone + * invocation of the original function delegating it to the + * requestAnimationFrame. + * + * @returns {void} + */ + function timeoutCallback() { + requestAnimationFrame$1(resolvePending); + } + /** + * Schedules invocation of the original function. + * + * @returns {void} + */ + function proxy() { + var timeStamp = Date.now(); + if (leadingCall) { + // Reject immediately following calls. + if (timeStamp - lastCallTime < trailingTimeout) { + return; + } + // Schedule new call to be in invoked when the pending one is resolved. + // This is important for "transitions" which never actually start + // immediately so there is a chance that we might miss one if change + // happens amids the pending invocation. + trailingCall = true; + } + else { + leadingCall = true; + trailingCall = false; + setTimeout(timeoutCallback, delay); + } + lastCallTime = timeStamp; + } + return proxy; } - _this3.props.outInputKeydown && _this3.props.outInputKeydown(e); - }; - - this.onMouseLeave = function (e) { - _this3.setState({ - showClose: false - }); - }; - this.onMouseEnter = function (e) { - _this3.setState({ - showClose: true - }); - }; + // Minimum delay before invoking the update of observers. + var REFRESH_DELAY = 20; + // A list of substrings of CSS properties used to find transition events that + // might affect dimensions of observed elements. + var transitionKeys = ['top', 'right', 'bottom', 'left', 'width', 'height', 'size', 'weight']; + // Check if MutationObserver is available. + var mutationObserverSupported = typeof MutationObserver !== 'undefined'; + /** + * Singleton controller class which handles updates of ResizeObserver instances. + */ + var ResizeObserverController = /** @class */ (function () { + /** + * Creates a new instance of ResizeObserverController. + * + * @private + */ + function ResizeObserverController() { + /** + * Indicates whether DOM listeners have been added. + * + * @private {boolean} + */ + this.connected_ = false; + /** + * Tells that controller has subscribed for Mutation Events. + * + * @private {boolean} + */ + this.mutationEventsAdded_ = false; + /** + * Keeps reference to the instance of MutationObserver. + * + * @private {MutationObserver} + */ + this.mutationsObserver_ = null; + /** + * A list of connected observers. + * + * @private {Array} + */ + this.observers_ = []; + this.onTransitionEnd_ = this.onTransitionEnd_.bind(this); + this.refresh = throttle(this.refresh.bind(this), REFRESH_DELAY); + } + /** + * Adds observer to observers list. + * + * @param {ResizeObserverSPI} observer - Observer to be added. + * @returns {void} + */ + ResizeObserverController.prototype.addObserver = function (observer) { + if (!~this.observers_.indexOf(observer)) { + this.observers_.push(observer); + } + // Add listeners if they haven't been added yet. + if (!this.connected_) { + this.connect_(); + } + }; + /** + * Removes observer from observers list. + * + * @param {ResizeObserverSPI} observer - Observer to be removed. + * @returns {void} + */ + ResizeObserverController.prototype.removeObserver = function (observer) { + var observers = this.observers_; + var index = observers.indexOf(observer); + // Remove observer if it's present in registry. + if (~index) { + observers.splice(index, 1); + } + // Remove listeners if controller has no connected observers. + if (!observers.length && this.connected_) { + this.disconnect_(); + } + }; + /** + * Invokes the update of observers. It will continue running updates insofar + * it detects changes. + * + * @returns {void} + */ + ResizeObserverController.prototype.refresh = function () { + var changesDetected = this.updateObservers_(); + // Continue running updates if changes have been detected as there might + // be future ones caused by CSS transitions. + if (changesDetected) { + this.refresh(); + } + }; + /** + * Updates every observer from observers list and notifies them of queued + * entries. + * + * @private + * @returns {boolean} Returns "true" if any observer has detected changes in + * dimensions of it's elements. + */ + ResizeObserverController.prototype.updateObservers_ = function () { + // Collect observers that have active observations. + var activeObservers = this.observers_.filter(function (observer) { + return observer.gatherActive(), observer.hasActive(); + }); + // Deliver notifications in a separate cycle in order to avoid any + // collisions between observers, e.g. when multiple instances of + // ResizeObserver are tracking the same element and the callback of one + // of them changes content dimensions of the observed target. Sometimes + // this may result in notifications being blocked for the rest of observers. + activeObservers.forEach(function (observer) { return observer.broadcastActive(); }); + return activeObservers.length > 0; + }; + /** + * Initializes DOM listeners. + * + * @private + * @returns {void} + */ + ResizeObserverController.prototype.connect_ = function () { + // Do nothing if running in a non-browser environment or if listeners + // have been already added. + if (!isBrowser || this.connected_) { + return; + } + // Subscription to the "Transitionend" event is used as a workaround for + // delayed transitions. This way it's possible to capture at least the + // final state of an element. + document.addEventListener('transitionend', this.onTransitionEnd_); + window.addEventListener('resize', this.refresh); + if (mutationObserverSupported) { + this.mutationsObserver_ = new MutationObserver(this.refresh); + this.mutationsObserver_.observe(document, { + attributes: true, + childList: true, + characterData: true, + subtree: true + }); + } + else { + document.addEventListener('DOMSubtreeModified', this.refresh); + this.mutationEventsAdded_ = true; + } + this.connected_ = true; + }; + /** + * Removes DOM listeners. + * + * @private + * @returns {void} + */ + ResizeObserverController.prototype.disconnect_ = function () { + // Do nothing if running in a non-browser environment or if listeners + // have been already removed. + if (!isBrowser || !this.connected_) { + return; + } + document.removeEventListener('transitionend', this.onTransitionEnd_); + window.removeEventListener('resize', this.refresh); + if (this.mutationsObserver_) { + this.mutationsObserver_.disconnect(); + } + if (this.mutationEventsAdded_) { + document.removeEventListener('DOMSubtreeModified', this.refresh); + } + this.mutationsObserver_ = null; + this.mutationEventsAdded_ = false; + this.connected_ = false; + }; + /** + * "Transitionend" event handler. + * + * @private + * @param {TransitionEvent} event + * @returns {void} + */ + ResizeObserverController.prototype.onTransitionEnd_ = function (_a) { + var _b = _a.propertyName, propertyName = _b === void 0 ? '' : _b; + // Detect whether transition may affect dimensions of an element. + var isReflowProperty = transitionKeys.some(function (key) { + return !!~propertyName.indexOf(key); + }); + if (isReflowProperty) { + this.refresh(); + } + }; + /** + * Returns instance of the ResizeObserverController. + * + * @returns {ResizeObserverController} + */ + ResizeObserverController.getInstance = function () { + if (!this.instance_) { + this.instance_ = new ResizeObserverController(); + } + return this.instance_; + }; + /** + * Holds reference to the controller's instance. + * + * @private {ResizeObserverController} + */ + ResizeObserverController.instance_ = null; + return ResizeObserverController; + }()); - this.clear = function (e) { - e.stopPropagation(); - _this3.setState({ - inputValue: '', - value: '' + /** + * Defines non-writable/enumerable properties of the provided target object. + * + * @param {Object} target - Object for which to define properties. + * @param {Object} props - Properties to be defined. + * @returns {Object} Target object. + */ + var defineConfigurable = (function (target, props) { + for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) { + var key = _a[_i]; + Object.defineProperty(target, key, { + value: props[key], + enumerable: false, + writable: false, + configurable: true + }); + } + return target; }); - _this3.fireChange('', ''); - }; - this.handleSelect = function (value) { - _this3.setState({ - value: value + /** + * Returns the global object associated with provided element. + * + * @param {Object} target + * @returns {Object} + */ + var getWindowOf = (function (target) { + // Assume that the element is an instance of Node, which means that it + // has the "ownerDocument" property from which we can retrieve a + // corresponding global object. + var ownerGlobal = target && target.ownerDocument && target.ownerDocument.defaultView; + // Return the local global object if it's not possible extract one from + // provided element. + return ownerGlobal || global$1; }); - _this3.props.onSelect && _this3.props.onSelect(value, value && _this3.getValue(value) || ''); - // ReactDOM.findDOMNode(this.outInput).focus() - }; - - this.onDateInputBlur = function (e) { - var input = document.querySelector('.rc-calendar-input'); - var value = void 0; - if (input) { - value = input.value ? input.value : ''; - } - _this3.props.onDateInputBlur && _this3.props.onDateInputBlur(e, value); - }; - - this.onDateHover = function () { - var format = _this3.props.format; - var value = _this3.state.value, - newValue = value && _this3.getValue(value); - - - var inputValue = _this3.outInput.state.value; - inputValue = format ? inputValue : inputValue && _this3.getValue((0, _moment2["default"])(inputValue)); - - if (newValue && inputValue !== newValue) { - _this3.fireChange(value, newValue || ''); - } - }; - - this.stopPropagation = function (e) { - e.stopPropagation(); - }; - - this.fireChange = function (value, stringValue) { - _this3.fileChange && _this3.props.onChange(value, stringValue); - _this3.fileChange = false; - _this3.fileChangeTimer = window.setTimeout(function () { - _this3.fileChange = true; - }, 10); - }; - }; - - DatePicker.defaultProps = { - closeIcon: function closeIcon() { - return _react2["default"].createElement(_beeIcon2["default"], { type: "uf-close-c" }); - }, - renderIcon: function renderIcon() { - return _react2["default"].createElement(_beeIcon2["default"], { type: "uf-calendar" }); - }, - focusOnOpen: true, - defultSelect: false, - onOpenChange: function onOpenChange() {}, - onChange: function onChange() {}, - locale: _zh_CN2["default"], - showMonthInput: false, - onKeyDown: function onKeyDown() {}, - renderError: function renderError() {}, - showClose: true, - format: "YYYY-MM-DD", - showSecond: true, - showHour: true, - showMinute: true, - validatorFunc: function validatorFunc() { - return true; - } - }; - - exports["default"] = DatePicker; - module.exports = exports["default"]; - -/***/ }), -/* 398 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _Calendar = __webpack_require__(399); - - var _Calendar2 = _interopRequireDefault(_Calendar); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - - exports["default"] = _Calendar2["default"]; - module.exports = exports['default']; - -/***/ }), -/* 399 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _reactDom = __webpack_require__(2); - - var _reactDom2 = _interopRequireDefault(_reactDom); - - var _propTypes = __webpack_require__(6); - - var _propTypes2 = _interopRequireDefault(_propTypes); - - var _KeyCode = __webpack_require__(400); - - var _KeyCode2 = _interopRequireDefault(_KeyCode); - - var _reactLifecyclesCompat = __webpack_require__(81); - - var _DateTable = __webpack_require__(401); - - var _DateTable2 = _interopRequireDefault(_DateTable); - - var _CalendarHeader = __webpack_require__(541); - - var _CalendarHeader2 = _interopRequireDefault(_CalendarHeader); - - var _CalendarFooter = __webpack_require__(548); - - var _CalendarFooter2 = _interopRequireDefault(_CalendarFooter); - - var _CalendarMixin = __webpack_require__(552); - - var _CommonMixin = __webpack_require__(553); - - var _DateInput = __webpack_require__(545); - - var _DateInput2 = _interopRequireDefault(_DateInput); - - var _util = __webpack_require__(540); - - var _toTime = __webpack_require__(555); - - var _moment = __webpack_require__(404); - - var _moment2 = _interopRequireDefault(_moment); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - - function noop() {} - - var Calendar = function (_React$Component) { - _inherits(Calendar, _React$Component); - - function Calendar(props) { - _classCallCheck(this, Calendar); - - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); - - _initialiseProps.call(_this); - - _this.state = { - mode: _this.props.mode || 'date', - value: props.value || props.defaultValue || (0, _moment2["default"])(), - selectedValue: props.selectedValue || props.defaultSelectedValue - }; - return _this; - } - - Calendar.prototype.componentDidMount = function componentDidMount() { - if (this.props.showDateInput) { - this.saveFocusElement(_DateInput2["default"].getInstance()); - } - }; - - Calendar.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, state) { - var value = nextProps.value, - selectedValue = nextProps.selectedValue; - - var newState = {}; - if ('mode' in nextProps && state.mode !== nextProps.mode) { - newState = { mode: nextProps.mode }; - } - if ('value' in nextProps) { - newState.value = value || nextProps.defaultValue || (0, _CalendarMixin.getNowByCurrentStateValue)(state.value); - } - if ('selectedValue' in nextProps) { - newState.selectedValue = selectedValue; + // Placeholder of an empty content rectangle. + var emptyRect = createRectInit(0, 0, 0, 0); + /** + * Converts provided string to a number. + * + * @param {number|string} value + * @returns {number} + */ + function toFloat(value) { + return parseFloat(value) || 0; + } + /** + * Extracts borders size from provided styles. + * + * @param {CSSStyleDeclaration} styles + * @param {...string} positions - Borders positions (top, right, ...) + * @returns {number} + */ + function getBordersSize(styles) { + var positions = []; + for (var _i = 1; _i < arguments.length; _i++) { + positions[_i - 1] = arguments[_i]; + } + return positions.reduce(function (size, position) { + var value = styles['border-' + position + '-width']; + return size + toFloat(value); + }, 0); + } + /** + * Extracts paddings sizes from provided styles. + * + * @param {CSSStyleDeclaration} styles + * @returns {Object} Paddings box. + */ + function getPaddings(styles) { + var positions = ['top', 'right', 'bottom', 'left']; + var paddings = {}; + for (var _i = 0, positions_1 = positions; _i < positions_1.length; _i++) { + var position = positions_1[_i]; + var value = styles['padding-' + position]; + paddings[position] = toFloat(value); + } + return paddings; + } + /** + * Calculates content rectangle of provided SVG element. + * + * @param {SVGGraphicsElement} target - Element content rectangle of which needs + * to be calculated. + * @returns {DOMRectInit} + */ + function getSVGContentRect(target) { + var bbox = target.getBBox(); + return createRectInit(0, 0, bbox.width, bbox.height); + } + /** + * Calculates content rectangle of provided HTMLElement. + * + * @param {HTMLElement} target - Element for which to calculate the content rectangle. + * @returns {DOMRectInit} + */ + function getHTMLElementContentRect(target) { + // Client width & height properties can't be + // used exclusively as they provide rounded values. + var clientWidth = target.clientWidth, clientHeight = target.clientHeight; + // By this condition we can catch all non-replaced inline, hidden and + // detached elements. Though elements with width & height properties less + // than 0.5 will be discarded as well. + // + // Without it we would need to implement separate methods for each of + // those cases and it's not possible to perform a precise and performance + // effective test for hidden elements. E.g. even jQuery's ':visible' filter + // gives wrong results for elements with width & height less than 0.5. + if (!clientWidth && !clientHeight) { + return emptyRect; + } + var styles = getWindowOf(target).getComputedStyle(target); + var paddings = getPaddings(styles); + var horizPad = paddings.left + paddings.right; + var vertPad = paddings.top + paddings.bottom; + // Computed styles of width & height are being used because they are the + // only dimensions available to JS that contain non-rounded values. It could + // be possible to utilize the getBoundingClientRect if only it's data wasn't + // affected by CSS transformations let alone paddings, borders and scroll bars. + var width = toFloat(styles.width), height = toFloat(styles.height); + // Width & height include paddings and borders when the 'border-box' box + // model is applied (except for IE). + if (styles.boxSizing === 'border-box') { + // Following conditions are required to handle Internet Explorer which + // doesn't include paddings and borders to computed CSS dimensions. + // + // We can say that if CSS dimensions + paddings are equal to the "client" + // properties then it's either IE, and thus we don't need to subtract + // anything, or an element merely doesn't have paddings/borders styles. + if (Math.round(width + horizPad) !== clientWidth) { + width -= getBordersSize(styles, 'left', 'right') + horizPad; + } + if (Math.round(height + vertPad) !== clientHeight) { + height -= getBordersSize(styles, 'top', 'bottom') + vertPad; + } + } + // Following steps can't be applied to the document's root element as its + // client[Width/Height] properties represent viewport area of the window. + // Besides, it's as well not necessary as the itself neither has + // rendered scroll bars nor it can be clipped. + if (!isDocumentElement(target)) { + // In some browsers (only in Firefox, actually) CSS width & height + // include scroll bars size which can be removed at this step as scroll + // bars are the only difference between rounded dimensions + paddings + // and "client" properties, though that is not always true in Chrome. + var vertScrollbar = Math.round(width + horizPad) - clientWidth; + var horizScrollbar = Math.round(height + vertPad) - clientHeight; + // Chrome has a rather weird rounding of "client" properties. + // E.g. for an element with content width of 314.2px it sometimes gives + // the client width of 315px and for the width of 314.7px it may give + // 314px. And it doesn't happen all the time. So just ignore this delta + // as a non-relevant. + if (Math.abs(vertScrollbar) !== 1) { + width -= vertScrollbar; + } + if (Math.abs(horizScrollbar) !== 1) { + height -= horizScrollbar; + } + } + return createRectInit(paddings.left, paddings.top, width, height); + } + /** + * Checks whether provided element is an instance of the SVGGraphicsElement. + * + * @param {Element} target - Element to be checked. + * @returns {boolean} + */ + var isSVGGraphicsElement = (function () { + // Some browsers, namely IE and Edge, don't have the SVGGraphicsElement + // interface. + if (typeof SVGGraphicsElement !== 'undefined') { + return function (target) { return target instanceof getWindowOf(target).SVGGraphicsElement; }; + } + // If it's so, then check that element is at least an instance of the + // SVGElement and that it has the "getBBox" method. + // eslint-disable-next-line no-extra-parens + return function (target) { return (target instanceof getWindowOf(target).SVGElement && + typeof target.getBBox === 'function'); }; + })(); + /** + * Checks whether provided element is a document element (). + * + * @param {Element} target - Element to be checked. + * @returns {boolean} + */ + function isDocumentElement(target) { + return target === getWindowOf(target).document.documentElement; + } + /** + * Calculates an appropriate content rectangle for provided html or svg element. + * + * @param {Element} target - Element content rectangle of which needs to be calculated. + * @returns {DOMRectInit} + */ + function getContentRect(target) { + if (!isBrowser) { + return emptyRect; + } + if (isSVGGraphicsElement(target)) { + return getSVGContentRect(target); + } + return getHTMLElementContentRect(target); + } + /** + * Creates rectangle with an interface of the DOMRectReadOnly. + * Spec: https://drafts.fxtf.org/geometry/#domrectreadonly + * + * @param {DOMRectInit} rectInit - Object with rectangle's x/y coordinates and dimensions. + * @returns {DOMRectReadOnly} + */ + function createReadOnlyRect(_a) { + var x = _a.x, y = _a.y, width = _a.width, height = _a.height; + // If DOMRectReadOnly is available use it as a prototype for the rectangle. + var Constr = typeof DOMRectReadOnly !== 'undefined' ? DOMRectReadOnly : Object; + var rect = Object.create(Constr.prototype); + // Rectangle's properties are not writable and non-enumerable. + defineConfigurable(rect, { + x: x, y: y, width: width, height: height, + top: y, + right: x + width, + bottom: height + y, + left: x + }); + return rect; + } + /** + * Creates DOMRectInit object based on the provided dimensions and the x/y coordinates. + * Spec: https://drafts.fxtf.org/geometry/#dictdef-domrectinit + * + * @param {number} x - X coordinate. + * @param {number} y - Y coordinate. + * @param {number} width - Rectangle's width. + * @param {number} height - Rectangle's height. + * @returns {DOMRectInit} + */ + function createRectInit(x, y, width, height) { + return { x: x, y: y, width: width, height: height }; } - return newState; - }; - - Calendar.prototype.render = function render() { - var _this2 = this; - - var props = this.props, - state = this.state; - var locale = props.locale, - prefixCls = props.prefixCls, - disabledDate = props.disabledDate, - validatorFunc = props.validatorFunc, - format = props.format, - dateInputPlaceholder = props.dateInputPlaceholder, - timePicker = props.timePicker, - disabledTime = props.disabledTime, - clearIcon = props.clearIcon, - renderFooter = props.renderFooter, - showMonthInput = props.showMonthInput, - renderError = props.renderError, - onInputBlur = props.onInputBlur; - var value = state.value, - selectedValue = state.selectedValue, - mode = state.mode; - - var showTimePicker = mode === 'time'; - var disabledTimeConfig = showTimePicker && disabledTime && timePicker ? (0, _util.getTimeConfig)(selectedValue, disabledTime) : null; + /** + * Class that is responsible for computations of the content rectangle of + * provided DOM element and for keeping track of it's changes. + */ + var ResizeObservation = /** @class */ (function () { + /** + * Creates an instance of ResizeObservation. + * + * @param {Element} target - Element to be observed. + */ + function ResizeObservation(target) { + /** + * Broadcasted width of content rectangle. + * + * @type {number} + */ + this.broadcastWidth = 0; + /** + * Broadcasted height of content rectangle. + * + * @type {number} + */ + this.broadcastHeight = 0; + /** + * Reference to the last observed content rectangle. + * + * @private {DOMRectInit} + */ + this.contentRect_ = createRectInit(0, 0, 0, 0); + this.target = target; + } + /** + * Updates content rectangle and tells whether it's width or height properties + * have changed since the last broadcast. + * + * @returns {boolean} + */ + ResizeObservation.prototype.isActive = function () { + var rect = getContentRect(this.target); + this.contentRect_ = rect; + return (rect.width !== this.broadcastWidth || + rect.height !== this.broadcastHeight); + }; + /** + * Updates 'broadcastWidth' and 'broadcastHeight' properties with a data + * from the corresponding properties of the last observed content rectangle. + * + * @returns {DOMRectInit} Last observed content rectangle. + */ + ResizeObservation.prototype.broadcastRect = function () { + var rect = this.contentRect_; + this.broadcastWidth = rect.width; + this.broadcastHeight = rect.height; + return rect; + }; + return ResizeObservation; + }()); - var timePickerEle = null; + var ResizeObserverEntry = /** @class */ (function () { + /** + * Creates an instance of ResizeObserverEntry. + * + * @param {Element} target - Element that is being observed. + * @param {DOMRectInit} rectInit - Data of the element's content rectangle. + */ + function ResizeObserverEntry(target, rectInit) { + var contentRect = createReadOnlyRect(rectInit); + // According to the specification following properties are not writable + // and are also not enumerable in the native implementation. + // + // Property accessors are not being used as they'd require to define a + // private WeakMap storage which may cause memory leaks in browsers that + // don't support this type of collections. + defineConfigurable(this, { target: target, contentRect: contentRect }); + } + return ResizeObserverEntry; + }()); - if (timePicker && showTimePicker) { - var timePickerProps = _extends({ - showHour: true, - showSecond: true, - showMinute: true - }, timePicker.props, disabledTimeConfig, { - onChange: this.onDateInputChange, - value: selectedValue, - disabledTime: disabledTime - }); + var ResizeObserverSPI = /** @class */ (function () { + /** + * Creates a new instance of ResizeObserver. + * + * @param {ResizeObserverCallback} callback - Callback function that is invoked + * when one of the observed elements changes it's content dimensions. + * @param {ResizeObserverController} controller - Controller instance which + * is responsible for the updates of observer. + * @param {ResizeObserver} callbackCtx - Reference to the public + * ResizeObserver instance which will be passed to callback function. + */ + function ResizeObserverSPI(callback, controller, callbackCtx) { + /** + * Collection of resize observations that have detected changes in dimensions + * of elements. + * + * @private {Array} + */ + this.activeObservations_ = []; + /** + * Registry of the ResizeObservation instances. + * + * @private {Map} + */ + this.observations_ = new MapShim(); + if (typeof callback !== 'function') { + throw new TypeError('The callback provided as parameter 1 is not a function.'); + } + this.callback_ = callback; + this.controller_ = controller; + this.callbackCtx_ = callbackCtx; + } + /** + * Starts observing provided element. + * + * @param {Element} target - Element to be observed. + * @returns {void} + */ + ResizeObserverSPI.prototype.observe = function (target) { + if (!arguments.length) { + throw new TypeError('1 argument required, but only 0 present.'); + } + // Do nothing if current environment doesn't have the Element interface. + if (typeof Element === 'undefined' || !(Element instanceof Object)) { + return; + } + if (!(target instanceof getWindowOf(target).Element)) { + throw new TypeError('parameter 1 is not of type "Element".'); + } + var observations = this.observations_; + // Do nothing if element is already being observed. + if (observations.has(target)) { + return; + } + observations.set(target, new ResizeObservation(target)); + this.controller_.addObserver(this); + // Force the update of observations. + this.controller_.refresh(); + }; + /** + * Stops observing provided element. + * + * @param {Element} target - Element to stop observing. + * @returns {void} + */ + ResizeObserverSPI.prototype.unobserve = function (target) { + if (!arguments.length) { + throw new TypeError('1 argument required, but only 0 present.'); + } + // Do nothing if current environment doesn't have the Element interface. + if (typeof Element === 'undefined' || !(Element instanceof Object)) { + return; + } + if (!(target instanceof getWindowOf(target).Element)) { + throw new TypeError('parameter 1 is not of type "Element".'); + } + var observations = this.observations_; + // Do nothing if element is not being observed. + if (!observations.has(target)) { + return; + } + observations.delete(target); + if (!observations.size) { + this.controller_.removeObserver(this); + } + }; + /** + * Stops observing all elements. + * + * @returns {void} + */ + ResizeObserverSPI.prototype.disconnect = function () { + this.clearActive(); + this.observations_.clear(); + this.controller_.removeObserver(this); + }; + /** + * Collects observation instances the associated element of which has changed + * it's content rectangle. + * + * @returns {void} + */ + ResizeObserverSPI.prototype.gatherActive = function () { + var _this = this; + this.clearActive(); + this.observations_.forEach(function (observation) { + if (observation.isActive()) { + _this.activeObservations_.push(observation); + } + }); + }; + /** + * Invokes initial callback function with a list of ResizeObserverEntry + * instances collected from active resize observations. + * + * @returns {void} + */ + ResizeObserverSPI.prototype.broadcastActive = function () { + // Do nothing if observer doesn't have active observations. + if (!this.hasActive()) { + return; + } + var ctx = this.callbackCtx_; + // Create ResizeObserverEntry instance for every active observation. + var entries = this.activeObservations_.map(function (observation) { + return new ResizeObserverEntry(observation.target, observation.broadcastRect()); + }); + this.callback_.call(ctx, entries, ctx); + this.clearActive(); + }; + /** + * Clears the collection of active observations. + * + * @returns {void} + */ + ResizeObserverSPI.prototype.clearActive = function () { + this.activeObservations_.splice(0); + }; + /** + * Tells whether observer has active observations. + * + * @returns {boolean} + */ + ResizeObserverSPI.prototype.hasActive = function () { + return this.activeObservations_.length > 0; + }; + return ResizeObserverSPI; + }()); - if (timePicker.props.defaultValue !== undefined) { - timePickerProps.defaultOpenValue = timePicker.props.defaultValue; - } + // Registry of internal observers. If WeakMap is not available use current shim + // for the Map collection as it has all required methods and because WeakMap + // can't be fully polyfilled anyway. + var observers = typeof WeakMap !== 'undefined' ? new WeakMap() : new MapShim(); + /** + * ResizeObserver API. Encapsulates the ResizeObserver SPI implementation + * exposing only those methods and properties that are defined in the spec. + */ + var ResizeObserver = /** @class */ (function () { + /** + * Creates a new instance of ResizeObserver. + * + * @param {ResizeObserverCallback} callback - Callback that is invoked when + * dimensions of the observed elements change. + */ + function ResizeObserver(callback) { + if (!(this instanceof ResizeObserver)) { + throw new TypeError('Cannot call a class as a function.'); + } + if (!arguments.length) { + throw new TypeError('1 argument required, but only 0 present.'); + } + var controller = ResizeObserverController.getInstance(); + var observer = new ResizeObserverSPI(callback, controller, this); + observers.set(this, observer); + } + return ResizeObserver; + }()); + // Expose public methods of ResizeObserver. + [ + 'observe', + 'unobserve', + 'disconnect' + ].forEach(function (method) { + ResizeObserver.prototype[method] = function () { + var _a; + return (_a = observers.get(this))[method].apply(_a, arguments); + }; + }); - timePickerEle = _react2["default"].cloneElement(timePicker, timePickerProps); - } - var dateInputElement = props.showDateInput ? _react2["default"].createElement(_DateInput2["default"], { - format: this.getFormat(), - key: 'date-input', - value: value, - locale: locale, - placeholder: dateInputPlaceholder, - showClear: true, - disabledTime: disabledTime, - disabledDate: disabledDate, - onClear: this.onClear, - prefixCls: prefixCls, - selectedValue: selectedValue, - onChange: this.onDateInputChange, - onSelect: function onSelect(value) { - if ((0, _moment2["default"])(value, format, true) && validatorFunc(value)) { - _this2.onDateInputSelect(value); - } - }, - clearIcon: clearIcon, - renderError: renderError, - onBlur: onInputBlur, - validatorFunc: validatorFunc - }) : null; + var index = (function () { + // Export existing implementation if available. + if (typeof global$1.ResizeObserver !== 'undefined') { + return global$1.ResizeObserver; + } + return ResizeObserver; + })(); - var children = []; - if (props.renderSidebar) { - children.push(props.renderSidebar()); - } - children.push(_react2["default"].createElement( - 'div', - { className: prefixCls + '-panel', key: 'panel' }, - dateInputElement, - _react2["default"].createElement( - 'div', - { - tabIndex: this.props.focusablePanel ? 0 : undefined, - className: prefixCls + '-date-panel', - onMouseOver: this.onMouseOver - }, - _react2["default"].createElement(_CalendarHeader2["default"], { - locale: locale, - mode: mode, - value: value, - onValueChange: this.setValue, - onPanelChange: this.onPanelChange, - renderFooter: renderFooter, - showTimePicker: showTimePicker, - prefixCls: prefixCls, - showMonthInput: showMonthInput - }), - timePicker && showTimePicker ? _react2["default"].createElement( - 'div', - { className: prefixCls + '-time-picker' }, - _react2["default"].createElement( - 'div', - { className: prefixCls + '-time-picker-panel' }, - timePickerEle - ) - ) : null, - _react2["default"].createElement( - 'div', - { className: prefixCls + '-body' }, - _react2["default"].createElement(_DateTable2["default"], { - locale: locale, - value: value, - selectedValue: selectedValue, - prefixCls: prefixCls, - dateRender: props.dateRender, - onSelect: this.onDateTableSelect, - disabledDate: disabledDate, - showWeekNumber: props.showWeekNumber - }) - ), - _react2["default"].createElement(_CalendarFooter2["default"], { - showOk: props.showOk, - mode: mode, - renderFooter: props.renderFooter, - locale: locale, - prefixCls: prefixCls, - showToday: props.showToday, - disabledTime: disabledTime, - showTimePicker: showTimePicker, - showDateInput: props.showDateInput, - timePicker: timePicker, - selectedValue: selectedValue, - value: value, - disabledDate: disabledDate, - okDisabled: props.showOk !== false && (!selectedValue || !this.isAllowedDate(selectedValue)), - onOk: this.onOk, - onSelect: this.onSelect, - onToday: this.onToday, - onOpenTimePicker: this.openTimePicker, - onCloseTimePicker: this.closeTimePicker - }) - ) - )); + return index; - return this.renderRoot({ - children: children, - className: props.showWeekNumber ? prefixCls + '-week-number' : '' - }); - }; + }))); - return Calendar; - }(_react2["default"].Component); + /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) + +/***/ }), +/* 288 */ +/***/ (function(module, exports, __webpack_require__) { + + "use strict"; - Calendar.propTypes = _extends({}, _CalendarMixin.calendarMixinPropTypes, _CommonMixin.propType, { - prefixCls: _propTypes2["default"].string, - className: _propTypes2["default"].string, - style: _propTypes2["default"].object, - defaultValue: _propTypes2["default"].object, - value: _propTypes2["default"].object, - selectedValue: _propTypes2["default"].object, - defaultSelectedValue: _propTypes2["default"].object, - mode: _propTypes2["default"].oneOf(['time', 'date', 'month', 'year', 'decade']), - locale: _propTypes2["default"].object, - showDateInput: _propTypes2["default"].bool, - showWeekNumber: _propTypes2["default"].bool, - showToday: _propTypes2["default"].bool, - showOk: _propTypes2["default"].bool, - onSelect: _propTypes2["default"].func, - onOk: _propTypes2["default"].func, - onKeyDown: _propTypes2["default"].func, - timePicker: _propTypes2["default"].element, - dateInputPlaceholder: _propTypes2["default"].any, - onClear: _propTypes2["default"].func, - onChange: _propTypes2["default"].func, - onPanelChange: _propTypes2["default"].func, - disabledDate: _propTypes2["default"].func, - disabledTime: _propTypes2["default"].any, - dateRender: _propTypes2["default"].func, - renderFooter: _propTypes2["default"].func, - renderSidebar: _propTypes2["default"].func, - clearIcon: _propTypes2["default"].node, - focusablePanel: _propTypes2["default"].bool - }); - Calendar.defaultProps = _extends({}, _CalendarMixin.calendarMixinDefaultProps, _CommonMixin.defaultProp, { - showToday: true, - showDateInput: true, - timePicker: null, - onOk: noop, - onPanelChange: noop, - focusablePanel: true + Object.defineProperty(exports, "__esModule", { + value: true }); - var _initialiseProps = function _initialiseProps() { - var _this3 = this; - - this.onPanelChange = function (value, mode) { - var props = _this3.props, - state = _this3.state; + var _extends2 = __webpack_require__(289); - if (!('mode' in props)) { - _this3.setState({ mode: mode }); - } - props.onPanelChange(value || state.value, mode); - }; + var _extends3 = _interopRequireDefault(_extends2); - this.onKeyDown = function (event) { - if (event.target.nodeName.toLowerCase() === 'input') { - return undefined; - } else { - _this3.props.onKeyDown && _this3.props.onKeyDown(event); - } - var keyCode = event.keyCode; - // mac - var ctrlKey = event.ctrlKey || event.metaKey; - var disabledDate = _this3.props.disabledDate; - var value = _this3.state.value; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - switch (keyCode) { - case _KeyCode2["default"].DOWN: - _this3.goTime(1, 'weeks'); - event.preventDefault(); - return 1; - case _KeyCode2["default"].UP: - _this3.goTime(-1, 'weeks'); - event.preventDefault(); - return 1; - case _KeyCode2["default"].LEFT: - if (ctrlKey) { - _this3.goTime(-1, 'years'); - } else { - _this3.goTime(-1, 'days'); - } - event.preventDefault(); - return 1; - case _KeyCode2["default"].RIGHT: - if (ctrlKey) { - _this3.goTime(1, 'years'); - } else { - _this3.goTime(1, 'days'); - } - event.preventDefault(); - return 1; - case _KeyCode2["default"].HOME: - _this3.setValue((0, _toTime.goStartMonth)(_this3.state.value)); - event.preventDefault(); - return 1; - case _KeyCode2["default"].END: - _this3.setValue((0, _toTime.goEndMonth)(_this3.state.value)); - event.preventDefault(); - return 1; - case _KeyCode2["default"].PAGE_DOWN: - _this3.goTime(1, 'month'); - event.preventDefault(); - return 1; - case _KeyCode2["default"].PAGE_UP: - _this3.goTime(-1, 'month'); - event.preventDefault(); - return 1; - case _KeyCode2["default"].ENTER: - if (!disabledDate || !disabledDate(value)) { - _this3.onSelect(value, { - source: 'keyboard' - }); - } - event.preventDefault(); - return 1; - } - }; + function omit(obj, fields) { + var shallowCopy = (0, _extends3["default"])({}, obj); + for (var i = 0; i < fields.length; i++) { + var key = fields[i]; + delete shallowCopy[key]; + } + return shallowCopy; + } - this.onClear = function () { - _this3.onSelect(null); - _this3.props.onClear(); - }; + exports["default"] = omit; + module.exports = exports['default']; + +/***/ }), +/* 289 */ +/***/ (function(module, exports, __webpack_require__) { + + "use strict"; - this.onOk = function () { - var selectedValue = _this3.state.selectedValue; + exports.__esModule = true; - if (_this3.isAllowedDate(selectedValue)) { - _this3.props.onOk(selectedValue); - } - }; + var _assign = __webpack_require__(290); - this.onDateInputChange = function (value) { - _this3.onSelect(value, { - source: 'dateInput' - }); - }; + var _assign2 = _interopRequireDefault(_assign); - this.onDateInputSelect = function (value) { - _this3.onSelect(value, { - source: 'dateInputSelect' - }); - }; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - this.onDateTableSelect = function (value) { - var timePicker = _this3.props.timePicker; - var selectedValue = _this3.state.selectedValue; + exports.default = _assign2.default || function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; - if (!selectedValue && timePicker) { - var timePickerDefaultValue = timePicker.props.defaultValue; - if (timePickerDefaultValue) { - (0, _util.syncTime)(timePickerDefaultValue, value); + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key]; } } - _this3.onSelect(value); - }; - - this.onToday = function () { - var value = _this3.state.value; - - var now = (0, _util.getTodayTime)(value); - _this3.onSelect(now, { - source: 'todayButton' - }); - }; - - this.getRootDOMNode = function () { - return _reactDom2["default"].findDOMNode(_this3); - }; - - this.openTimePicker = function () { - _this3.onPanelChange(null, 'time'); - }; - - this.closeTimePicker = function () { - _this3.onPanelChange(null, 'date'); - }; - - this.goTime = function (direction, unit) { - _this3.setValue((0, _toTime.goTime)(_this3.state.value, direction, unit)); - }; + } - this.onMouseOver = function (e) { - e.stopPropagation(); - }; + return target; }; - - (0, _reactLifecyclesCompat.polyfill)(Calendar); - - exports["default"] = (0, _CalendarMixin.calendarMixinWrapper)((0, _CommonMixin.commonMixinWrapper)(Calendar)); - module.exports = exports['default']; /***/ }), -/* 400 */ +/* 290 */ +/***/ (function(module, exports, __webpack_require__) { + + module.exports = { "default": __webpack_require__(147), __esModule: true }; + +/***/ }), +/* 291 */ /***/ (function(module, exports) { "use strict"; @@ -54746,635 +39267,145 @@ Object.defineProperty(exports, "__esModule", { value: true }); - exports.default = void 0; + exports.calculateNodeStyling = calculateNodeStyling; + exports.default = calculateNodeHeight; + // Thanks to https://github.com/andreypopp/react-textarea-autosize/ /** - * @ignore - * some key-codes definition and utils from closure-library - * @author yiminghe@gmail.com + * calculateNodeHeight(uiTextNode, useCache = false) */ - var KeyCode = { - /** - * MAC_ENTER - */ - MAC_ENTER: 3, - - /** - * BACKSPACE - */ - BACKSPACE: 8, - - /** - * TAB - */ - TAB: 9, - - /** - * NUMLOCK on FF/Safari Mac - */ - NUM_CENTER: 12, - - /** - * ENTER - */ - ENTER: 13, - - /** - * SHIFT - */ - SHIFT: 16, - - /** - * CTRL - */ - CTRL: 17, - - /** - * ALT - */ - ALT: 18, - - /** - * PAUSE - */ - PAUSE: 19, - - /** - * CAPS_LOCK - */ - CAPS_LOCK: 20, - - /** - * ESC - */ - ESC: 27, - - /** - * SPACE - */ - SPACE: 32, - - /** - * PAGE_UP - */ - PAGE_UP: 33, - - /** - * PAGE_DOWN - */ - PAGE_DOWN: 34, - - /** - * END - */ - END: 35, - - /** - * HOME - */ - HOME: 36, - - /** - * LEFT - */ - LEFT: 37, - - /** - * UP - */ - UP: 38, + var HIDDEN_TEXTAREA_STYLE = "\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n"; + var SIZING_STYLE = ['letter-spacing', 'line-height', 'padding-top', 'padding-bottom', 'font-family', 'font-weight', 'font-size', 'font-variant', 'text-rendering', 'text-transform', 'width', 'text-indent', 'padding-left', 'padding-right', 'border-width', 'box-sizing']; + var computedStyleCache = {}; + var hiddenTextarea; - /** - * RIGHT - */ - RIGHT: 39, - - /** - * DOWN - */ - DOWN: 40, - - /** - * PRINT_SCREEN - */ - PRINT_SCREEN: 44, - - /** - * INSERT - */ - INSERT: 45, - - /** - * DELETE - */ - DELETE: 46, - - /** - * ZERO - */ - ZERO: 48, - - /** - * ONE - */ - ONE: 49, - - /** - * TWO - */ - TWO: 50, - - /** - * THREE - */ - THREE: 51, - - /** - * FOUR - */ - FOUR: 52, - - /** - * FIVE - */ - FIVE: 53, - - /** - * SIX - */ - SIX: 54, - - /** - * SEVEN - */ - SEVEN: 55, - - /** - * EIGHT - */ - EIGHT: 56, - - /** - * NINE - */ - NINE: 57, - - /** - * QUESTION_MARK - */ - QUESTION_MARK: 63, - - /** - * A - */ - A: 65, - - /** - * B - */ - B: 66, - - /** - * C - */ - C: 67, - - /** - * D - */ - D: 68, - - /** - * E - */ - E: 69, - - /** - * F - */ - F: 70, - - /** - * G - */ - G: 71, - - /** - * H - */ - H: 72, - - /** - * I - */ - I: 73, - - /** - * J - */ - J: 74, - - /** - * K - */ - K: 75, - - /** - * L - */ - L: 76, - - /** - * M - */ - M: 77, - - /** - * N - */ - N: 78, - - /** - * O - */ - O: 79, - - /** - * P - */ - P: 80, - - /** - * Q - */ - Q: 81, - - /** - * R - */ - R: 82, - - /** - * S - */ - S: 83, - - /** - * T - */ - T: 84, - - /** - * U - */ - U: 85, - - /** - * V - */ - V: 86, - - /** - * W - */ - W: 87, - - /** - * X - */ - X: 88, - - /** - * Y - */ - Y: 89, - - /** - * Z - */ - Z: 90, - - /** - * META - */ - META: 91, - - /** - * WIN_KEY_RIGHT - */ - WIN_KEY_RIGHT: 92, - - /** - * CONTEXT_MENU - */ - CONTEXT_MENU: 93, - - /** - * NUM_ZERO - */ - NUM_ZERO: 96, - - /** - * NUM_ONE - */ - NUM_ONE: 97, - - /** - * NUM_TWO - */ - NUM_TWO: 98, - - /** - * NUM_THREE - */ - NUM_THREE: 99, - - /** - * NUM_FOUR - */ - NUM_FOUR: 100, - - /** - * NUM_FIVE - */ - NUM_FIVE: 101, - - /** - * NUM_SIX - */ - NUM_SIX: 102, - - /** - * NUM_SEVEN - */ - NUM_SEVEN: 103, - - /** - * NUM_EIGHT - */ - NUM_EIGHT: 104, - - /** - * NUM_NINE - */ - NUM_NINE: 105, - - /** - * NUM_MULTIPLY - */ - NUM_MULTIPLY: 106, - - /** - * NUM_PLUS - */ - NUM_PLUS: 107, - - /** - * NUM_MINUS - */ - NUM_MINUS: 109, - - /** - * NUM_PERIOD - */ - NUM_PERIOD: 110, - - /** - * NUM_DIVISION - */ - NUM_DIVISION: 111, - - /** - * F1 - */ - F1: 112, - - /** - * F2 - */ - F2: 113, - - /** - * F3 - */ - F3: 114, - - /** - * F4 - */ - F4: 115, - - /** - * F5 - */ - F5: 116, - - /** - * F6 - */ - F6: 117, - - /** - * F7 - */ - F7: 118, - - /** - * F8 - */ - F8: 119, - - /** - * F9 - */ - F9: 120, - - /** - * F10 - */ - F10: 121, - - /** - * F11 - */ - F11: 122, - - /** - * F12 - */ - F12: 123, - - /** - * NUMLOCK - */ - NUMLOCK: 144, - - /** - * SEMICOLON - */ - SEMICOLON: 186, - - /** - * DASH - */ - DASH: 189, - - /** - * EQUALS - */ - EQUALS: 187, - - /** - * COMMA - */ - COMMA: 188, + function calculateNodeStyling(node) { + var useCache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + var nodeRef = node.getAttribute('id') || node.getAttribute('data-reactid') || node.getAttribute('name'); - /** - * PERIOD - */ - PERIOD: 190, - - /** - * SLASH - */ - SLASH: 191, - - /** - * APOSTROPHE - */ - APOSTROPHE: 192, - - /** - * SINGLE_QUOTE - */ - SINGLE_QUOTE: 222, - - /** - * OPEN_SQUARE_BRACKET - */ - OPEN_SQUARE_BRACKET: 219, - - /** - * BACKSLASH - */ - BACKSLASH: 220, + if (useCache && computedStyleCache[nodeRef]) { + return computedStyleCache[nodeRef]; + } - /** - * CLOSE_SQUARE_BRACKET - */ - CLOSE_SQUARE_BRACKET: 221, + var style = window.getComputedStyle(node); + var boxSizing = style.getPropertyValue('box-sizing') || style.getPropertyValue('-moz-box-sizing') || style.getPropertyValue('-webkit-box-sizing'); + var paddingSize = parseFloat(style.getPropertyValue('padding-bottom')) + parseFloat(style.getPropertyValue('padding-top')); + var borderSize = parseFloat(style.getPropertyValue('border-bottom-width')) + parseFloat(style.getPropertyValue('border-top-width')); + var sizingStyle = SIZING_STYLE.map(function (name) { + return "".concat(name, ":").concat(style.getPropertyValue(name)); + }).join(';'); + var nodeInfo = { + sizingStyle: sizingStyle, + paddingSize: paddingSize, + borderSize: borderSize, + boxSizing: boxSizing + }; - /** - * WIN_KEY - */ - WIN_KEY: 224, + if (useCache && nodeRef) { + computedStyleCache[nodeRef] = nodeInfo; + } - /** - * MAC_FF_META - */ - MAC_FF_META: 224, + return nodeInfo; + } - /** - * WIN_IME - */ - WIN_IME: 229, - // ======================== Function ======================== + function calculateNodeHeight(uiTextNode) { + var useCache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + var minRows = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; + var maxRows = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; - /** - * whether text and modified key is entered at the same time. - */ - isTextModifyingKeyEvent: function isTextModifyingKeyEvent(e) { - var keyCode = e.keyCode; + if (!hiddenTextarea) { + hiddenTextarea = document.createElement('textarea'); + hiddenTextarea.setAttribute('tab-index', '-1'); + hiddenTextarea.setAttribute('aria-hidden', 'true'); + document.body.appendChild(hiddenTextarea); + } // Fix wrap="off" issue + // https://github.com/ant-design/ant-design/issues/6577 - if (e.altKey && !e.ctrlKey || e.metaKey || // Function keys don't generate text - keyCode >= KeyCode.F1 && keyCode <= KeyCode.F12) { - return false; - } // The following keys are quite harmless, even in combination with - // CTRL, ALT or SHIFT. + if (uiTextNode.getAttribute('wrap')) { + hiddenTextarea.setAttribute('wrap', uiTextNode.getAttribute('wrap')); + } else { + hiddenTextarea.removeAttribute('wrap'); + } // Copy all CSS properties that have an impact on the height of the content in + // the textbox - switch (keyCode) { - case KeyCode.ALT: - case KeyCode.CAPS_LOCK: - case KeyCode.CONTEXT_MENU: - case KeyCode.CTRL: - case KeyCode.DOWN: - case KeyCode.END: - case KeyCode.ESC: - case KeyCode.HOME: - case KeyCode.INSERT: - case KeyCode.LEFT: - case KeyCode.MAC_FF_META: - case KeyCode.META: - case KeyCode.NUMLOCK: - case KeyCode.NUM_CENTER: - case KeyCode.PAGE_DOWN: - case KeyCode.PAGE_UP: - case KeyCode.PAUSE: - case KeyCode.PRINT_SCREEN: - case KeyCode.RIGHT: - case KeyCode.SHIFT: - case KeyCode.UP: - case KeyCode.WIN_KEY: - case KeyCode.WIN_KEY_RIGHT: - return false; - default: - return true; - } - }, + var _calculateNodeStyling = calculateNodeStyling(uiTextNode, useCache), + paddingSize = _calculateNodeStyling.paddingSize, + borderSize = _calculateNodeStyling.borderSize, + boxSizing = _calculateNodeStyling.boxSizing, + sizingStyle = _calculateNodeStyling.sizingStyle; // Need to have the overflow attribute to hide the scrollbar otherwise + // text-lines will not calculated properly as the shadow will technically be + // narrower for content - /** - * whether character is entered. - */ - isCharacterKey: function isCharacterKey(keyCode) { - if (keyCode >= KeyCode.ZERO && keyCode <= KeyCode.NINE) { - return true; - } - if (keyCode >= KeyCode.NUM_ZERO && keyCode <= KeyCode.NUM_MULTIPLY) { - return true; - } + hiddenTextarea.setAttribute('style', "".concat(sizingStyle, ";").concat(HIDDEN_TEXTAREA_STYLE)); + hiddenTextarea.value = uiTextNode.value || uiTextNode.placeholder || ''; + var minHeight = Number.MIN_SAFE_INTEGER; + var maxHeight = Number.MAX_SAFE_INTEGER; + var height = hiddenTextarea.scrollHeight; + var overflowY; - if (keyCode >= KeyCode.A && keyCode <= KeyCode.Z) { - return true; - } // Safari sends zero key code for non-latin characters. + if (boxSizing === 'border-box') { + // border-box: add border, since height = content + padding + border + height += borderSize; + } else if (boxSizing === 'content-box') { + // remove padding, since height = content + height -= paddingSize; + } + if (minRows !== null || maxRows !== null) { + // measure height of a textarea with a single row + hiddenTextarea.value = ' '; + var singleRowHeight = hiddenTextarea.scrollHeight - paddingSize; - if (window.navigator.userAgent.indexOf('WebKit') !== -1 && keyCode === 0) { - return true; - } + if (minRows !== null) { + minHeight = singleRowHeight * minRows; - switch (keyCode) { - case KeyCode.SPACE: - case KeyCode.QUESTION_MARK: - case KeyCode.NUM_PLUS: - case KeyCode.NUM_MINUS: - case KeyCode.NUM_PERIOD: - case KeyCode.NUM_DIVISION: - case KeyCode.SEMICOLON: - case KeyCode.DASH: - case KeyCode.EQUALS: - case KeyCode.COMMA: - case KeyCode.PERIOD: - case KeyCode.SLASH: - case KeyCode.APOSTROPHE: - case KeyCode.SINGLE_QUOTE: - case KeyCode.OPEN_SQUARE_BRACKET: - case KeyCode.BACKSLASH: - case KeyCode.CLOSE_SQUARE_BRACKET: - return true; + if (boxSizing === 'border-box') { + minHeight = minHeight + paddingSize + borderSize; + } - default: - return false; + height = Math.max(minHeight, height); + } + + if (maxRows !== null) { + maxHeight = singleRowHeight * maxRows; + + if (boxSizing === 'border-box') { + maxHeight = maxHeight + paddingSize + borderSize; + } + + overflowY = height > maxHeight ? '' : 'hidden'; + height = Math.min(maxHeight, height); } } - }; - var _default = KeyCode; - exports.default = _default; + + return { + height: height, + minHeight: minHeight, + maxHeight: maxHeight, + overflowY: overflowY + }; + } /***/ }), -/* 401 */ +/* 292 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; + + var Table = __webpack_require__(293); + var Column = __webpack_require__(619); + var ColumnGroup = __webpack_require__(620); + + Table.Column = Column; + Table.ColumnGroup = ColumnGroup; + + module.exports = Table; + +/***/ }), +/* 293 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -55383,21122 +39414,13252 @@ value: true }); + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + var _react = __webpack_require__(1); var _react2 = _interopRequireDefault(_react); - var _DateTHead = __webpack_require__(402); + var _propTypes = __webpack_require__(6); - var _DateTHead2 = _interopRequireDefault(_DateTHead); + var _propTypes2 = _interopRequireDefault(_propTypes); - var _DateTBody = __webpack_require__(539); + var _componentClasses = __webpack_require__(47); - var _DateTBody2 = _interopRequireDefault(_DateTBody); + var _componentClasses2 = _interopRequireDefault(_componentClasses); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var _TableRow = __webpack_require__(294); - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + var _TableRow2 = _interopRequireDefault(_TableRow); - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + var _TableHeader = __webpack_require__(412); - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + var _TableHeader2 = _interopRequireDefault(_TableHeader); - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + var _utils = __webpack_require__(295); - var DateTable = function (_React$Component) { - _inherits(DateTable, _React$Component); + var _shallowequal = __webpack_require__(329); - function DateTable() { - _classCallCheck(this, DateTable); + var _shallowequal2 = _interopRequireDefault(_shallowequal); - return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); - } + var _addEventListener = __webpack_require__(40); - DateTable.prototype.render = function render() { - var props = this.props; - var prefixCls = props.prefixCls; - return _react2["default"].createElement( - 'table', - { className: prefixCls + '-table', cellSpacing: '0', role: 'grid' }, - _react2["default"].createElement(_DateTHead2["default"], props), - _react2["default"].createElement(_DateTBody2["default"], props) - ); - }; + var _addEventListener2 = _interopRequireDefault(_addEventListener); - return DateTable; - }(_react2["default"].Component); + var _ColumnManager = __webpack_require__(618); - exports["default"] = DateTable; - module.exports = exports['default']; - -/***/ }), -/* 402 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; + var _ColumnManager2 = _interopRequireDefault(_ColumnManager); - Object.defineProperty(exports, "__esModule", { - value: true - }); + var _createStore = __webpack_require__(621); - var _react = __webpack_require__(1); + var _createStore2 = _interopRequireDefault(_createStore); - var _react2 = _interopRequireDefault(_react); + var _beeLoading = __webpack_require__(622); - var _DateConstants = __webpack_require__(403); + var _beeLoading2 = _interopRequireDefault(_beeLoading); - var _DateConstants2 = _interopRequireDefault(_DateConstants); + var _beeIcon = __webpack_require__(67); + + var _beeIcon2 = _interopRequireDefault(_beeIcon); - var _moment = __webpack_require__(404); + var _i18n = __webpack_require__(311); - var _moment2 = _interopRequireDefault(_moment); + var _i18n2 = _interopRequireDefault(_i18n); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var _tool = __webpack_require__(120); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - var DateTHead = function (_React$Component) { - _inherits(DateTHead, _React$Component); + var propTypes = { + data: _propTypes2['default'].array, + expandIconAsCell: _propTypes2['default'].bool, + defaultExpandAllRows: _propTypes2['default'].bool, + expandedRowKeys: _propTypes2['default'].array, + defaultExpandedRowKeys: _propTypes2['default'].array, + useFixedHeader: _propTypes2['default'].bool, + columns: _propTypes2['default'].array, + clsPrefix: _propTypes2['default'].string, + bodyStyle: _propTypes2['default'].object, + style: _propTypes2['default'].object, + //特殊的渲染规则的key值 + rowKey: _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].func]), + rowClassName: _propTypes2['default'].func, + //column的主键,和 column.key 作用相同 + columnKey: _propTypes2['default'].string, + expandedRowClassName: _propTypes2['default'].func, + childrenColumnName: _propTypes2['default'].string, + onExpand: _propTypes2['default'].func, + onRowHover: _propTypes2['default'].func, + onExpandedRowsChange: _propTypes2['default'].func, + indentSize: _propTypes2['default'].number, + onRowClick: _propTypes2['default'].func, + onRowDoubleClick: _propTypes2['default'].func, + expandIconColumnIndex: _propTypes2['default'].number, + //是否显示表头 + showHeader: _propTypes2['default'].bool, + title: _propTypes2['default'].func, + footer: _propTypes2['default'].func, + emptyText: _propTypes2['default'].func, + scroll: _propTypes2['default'].object, + rowRef: _propTypes2['default'].func, + getBodyWrapper: _propTypes2['default'].func, + children: _propTypes2['default'].node, + draggable: _propTypes2['default'].bool, + minColumnWidth: _propTypes2['default'].number, + filterable: _propTypes2['default'].bool, + filterDelay: _propTypes2['default'].number, + onFilterChange: _propTypes2['default'].func, + onFilterClear: _propTypes2['default'].func, + syncHover: _propTypes2['default'].bool, + tabIndex: _propTypes2['default'].string, + hoverContent: _propTypes2['default'].func, + size: _propTypes2['default'].oneOf(['sm', 'md', 'lg']), + rowDraggAble: _propTypes2['default'].bool, + hideDragHandle: _propTypes2['default'].bool, // 隐藏行拖拽把手 + onDropRow: _propTypes2['default'].func, + onDragRowStart: _propTypes2['default'].func, + onBodyScroll: _propTypes2['default'].func, + bodyDisplayInRow: _propTypes2['default'].bool, // 表格内容超出列宽度时进行换行 or 以...形式展现 + headerDisplayInRow: _propTypes2['default'].bool, // 表头内容超出列宽度时进行换行 or 以...形式展现 + showRowNum: _propTypes2['default'].oneOfType([_propTypes2['default'].bool, _propTypes2['default'].object]), // 表格是否自动生成序号,格式为{base:number || 0,defaultKey:string || '_index',defaultName:string || '序号'} + onPaste: _propTypes2['default'].func + }; - function DateTHead() { - _classCallCheck(this, DateTHead); + var defaultProps = { + data: [], + useFixedHeader: false, + expandIconAsCell: false, + defaultExpandAllRows: false, + defaultExpandedRowKeys: [], + columnKey: 'key', + rowKey: 'key', + rowClassName: function rowClassName() { + return ''; + }, + expandedRowClassName: function expandedRowClassName() { + return ''; + }, + onExpand: function onExpand() {}, + onExpandedRowsChange: function onExpandedRowsChange() {}, + onRowClick: function onRowClick() {}, - return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); - } + // onRowDoubleClick() { }, + clsPrefix: 'u-table', + bodyStyle: {}, + style: {}, + childrenColumnName: 'children', + indentSize: 15, + expandIconColumnIndex: 0, + showHeader: true, + scroll: {}, + rowRef: function rowRef() { + return null; + }, + getBodyWrapper: function getBodyWrapper(body) { + return body; + }, + // emptyText: () =>
    {locale["no_data"]}
    , + columns: [], + minColumnWidth: 80, + locale: {}, + syncHover: true, + // setRowHeight:()=>{}, + setRowParentIndex: function setRowParentIndex() {}, + tabIndex: '0', + heightConsistent: false, + size: 'md', + rowDraggAble: false, + hideDragHandle: false, + onDropRow: function onDropRow() {}, + onDragRowStart: function onDragRowStart() {}, + onBodyScroll: function onBodyScroll() {}, + bodyDisplayInRow: true, + headerDisplayInRow: true, + showRowNum: false, + onPaste: function onPaste() {} + }; - DateTHead.prototype.render = function render() { - var props = this.props; - var value = props.value; - var localeData = value.localeData(); - var prefixCls = props.prefixCls; - var veryShortWeekdays = []; - var weekDays = []; - var firstDayOfWeek = localeData.firstDayOfWeek(); - var showWeekNumberEl = void 0; - var now = (0, _moment2["default"])(); - for (var dateColIndex = 0; dateColIndex < _DateConstants2["default"].DATE_COL_COUNT; dateColIndex++) { - var index = (firstDayOfWeek + dateColIndex) % _DateConstants2["default"].DATE_COL_COUNT; - now.day(index); - veryShortWeekdays[dateColIndex] = localeData.weekdaysMin(now); - weekDays[dateColIndex] = localeData.weekdaysShort(now); - } + var expandIconCellWidth = Number(43); - if (props.showWeekNumber) { - showWeekNumberEl = _react2["default"].createElement( - 'th', - { - role: 'columnheader', - className: prefixCls + '-column-header ' + prefixCls + '-week-number-header' - }, - _react2["default"].createElement( - 'span', - { className: prefixCls + '-column-header-inner' }, - 'x' - ) - ); - } - var weekDaysEls = weekDays.map(function (day, xindex) { - return _react2["default"].createElement( - 'th', - { - key: xindex, - role: 'columnheader', - title: day, - className: prefixCls + '-column-header' - }, - _react2["default"].createElement( - 'span', - { className: prefixCls + '-column-header-inner' }, - veryShortWeekdays[xindex] - ) + var Table = function (_Component) { + _inherits(Table, _Component); + + function Table(props) { + _classCallCheck(this, Table); + + var _this = _possibleConstructorReturn(this, _Component.call(this, props)); + + _this.resize = function () { + (0, _utils.debounce)(_this.syncFixedTableRowHeight, 150); + _this.computeTableWidth(); + var renderFlag = _this.state.renderFlag; + _this.setState({ + renderFlag: !renderFlag + }); + }; + + _this.getTableUID = function () { + var uid = "_table_uid_" + new Date().getTime(); + _this.tableUid = uid; + var div = document.createElement("div"); + // div.className = "u-table-drag-hidden-cont"; + div.className = "u-table-drag-hidden-cont"; + div.id = uid; + _this.contentTable.appendChild(div); + }; + + _this.onDragRowStart = function (currentKey) { + var data = _this.state.data, + currentIndex = void 0, + record = void 0; + data.forEach(function (da, i) { + // tr 的唯一标识通过 data.key 或 rowKey 两种方式传进来 + var trKey = da.key ? da.key : _this.getRowKey(da, i); + if (trKey == currentKey) { + currentIndex = i; + record = da; + } + }); + _this.props.onDragRowStart && _this.props.onDragRowStart(record, currentIndex); + }; + + _this.onDragRow = function (currentKey, targetKey) { + var data = _this.state.data, + currentIndex = void 0, + targetIndex = void 0, + record = void 0; + data.forEach(function (da, i) { + // tr 的唯一标识通过 data.key 或 rowKey 两种方式传进来 + var trKey = da.key ? da.key : _this.getRowKey(da, i); + if (trKey == currentKey) { + currentIndex = i; + record = da; + } + if (trKey == targetKey) { + targetIndex = i; + } + }); + if (currentIndex > -1) { + data = _this.swapArray(data, currentIndex, targetIndex); + _this.props.onDropRow && _this.props.onDropRow(data, record, targetIndex); + _this.setState({ + data: data + }); + } else { + _this.props.onDropRow && _this.props.onDropRow(data, record, targetIndex); + } + }; + + _this.swapArray = function (arr, index1, index2) { + var value1 = arr[index1]; + arr.splice(index1, 1); + if (index1 < index2) { + arr.splice(index2, 0, value1); + } else { + arr.splice(index2 + 1, 0, value1); + } + + return arr; + }; + + _this.renderDragHideTable = function () { + var _this$props = _this.props, + columns = _this$props.columns, + dragborder = _this$props.dragborder, + dragborderKey = _this$props.dragborderKey; + + if (!dragborder) return null; + var sum = 0; + return _react2['default'].createElement( + 'div', + { id: 'u-table-drag-hide-table-' + dragborderKey, className: _this.props.clsPrefix + '-hiden-drag' }, + columns.map(function (da, i) { + sum += da.width ? da.width : 0; + return _react2['default'].createElement('div', { className: _this.props.clsPrefix + '-hiden-drag-li', key: da + "_hiden_" + i, style: { left: sum + "px" } }); + }) ); - }); - return _react2["default"].createElement( - 'thead', - null, - _react2["default"].createElement( - 'tr', - { role: 'row' }, - showWeekNumberEl, - weekDaysEls - ) - ); - }; + }; - return DateTHead; - }(_react2["default"].Component); + _this.getTdPadding = function (td) { + var tdPaddingTop = _this.getStyle(td, 'paddingTop'), + tdPaddingBottom = _this.getStyle(td, 'paddingBottom'), + tdBorderTop = _this.getStyle(td, 'borderTopWidth'), + tdBorderBottom = _this.getStyle(td, 'borderBottomWidth'); + return Number(tdPaddingTop.replace('px', '')) + Number(tdPaddingBottom.replace('px', '')) + Number(tdBorderTop.replace('px', '')) + Number(tdBorderBottom.replace('px', '')); + }; - exports["default"] = DateTHead; - module.exports = exports['default']; - -/***/ }), -/* 403 */ -/***/ (function(module, exports) { - - "use strict"; + _this.onRowHoverMouseEnter = function () { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports["default"] = { - DATE_ROW_COUNT: 6, - DATE_COL_COUNT: 7 - }; - module.exports = exports["default"]; - -/***/ }), -/* 404 */ -/***/ (function(module, exports, __webpack_require__) { - - var require;/* WEBPACK VAR INJECTION */(function(module) {//! moment.js - //! version : 2.27.0 - //! authors : Tim Wood, Iskren Chernev, Moment.js contributors - //! license : MIT - //! momentjs.com + _this.store.setState({ + currentHoverKey: _this.currentHoverKey + }); + _this.hoverDom.style.display = 'block'; + }; - ;(function (global, factory) { - true ? module.exports = factory() : - typeof define === 'function' && define.amd ? define(factory) : - global.moment = factory() - }(this, (function () { 'use strict'; + _this.onRowHoverMouseLeave = function () {}; - var hookCallback; + _this.onFocus = function (e) { + _this.props.onKeyTab && _this.props.onKeyTab(); + }; - function hooks() { - return hookCallback.apply(null, arguments); - } + _this.onKeyDown = function (e) { + var event = _utils.Event.getEvent(e); + // event.preventDefault?event.preventDefault():event.returnValue = false; + if (event.keyCode === 38) { + //up + event.preventDefault && event.preventDefault(); + _this.props.onKeyUp && _this.props.onKeyUp(); + } else if (event.keyCode === 40) { + //down + event.preventDefault && event.preventDefault(); + _this.props.onKeyDown && _this.props.onKeyDown(); + } + _this.props.onTableKeyDown && _this.props.onTableKeyDown(); + }; - // This is done to register the method called with moment() - // without creating circular dependencies. - function setHookCallback(callback) { - hookCallback = callback; + var expandedRowKeys = []; + var rows = [].concat(_toConsumableArray(props.data)); + var showDragHandle = !props.hideDragHandle && props.rowDraggAble; + _this.columnManager = new _ColumnManager2['default'](props.columns, props.children, props.originWidth, showDragHandle, props.showRowNum); // 加入props.showRowNum参数 + _this.store = (0, _createStore2['default'])({ currentHoverKey: null }); + _this.firstDid = true; + if (props.defaultExpandAllRows) { + for (var i = 0; i < rows.length; i++) { + var row = rows[i]; + expandedRowKeys.push(_this.getRowKey(row, i)); + rows = rows.concat(row[props.childrenColumnName] || []); + } + } else { + expandedRowKeys = props.expandedRowKeys || props.defaultExpandedRowKeys; } - function isArray(input) { - return ( - input instanceof Array || - Object.prototype.toString.call(input) === '[object Array]' - ); - } + _this.state = { + expandedRowKeys: expandedRowKeys, + data: props.data, + currentHoverKey: null, + scrollPosition: 'left', + fixedColumnsHeadRowsHeight: [], + fixedColumnsBodyRowsHeight: [], + fixedColumnsExpandedRowsHeight: {} //扩展行的高度 + }; - function isObject(input) { - // IE8 will treat undefined and null as object if it wasn't for - // input != null - return ( - input != null && - Object.prototype.toString.call(input) === '[object Object]' - ); - } + _this.onExpandedRowsChange = _this.onExpandedRowsChange.bind(_this); + _this.onExpanded = _this.onExpanded.bind(_this); + _this.onRowDestroy = _this.onRowDestroy.bind(_this); + _this.getRowKey = _this.getRowKey.bind(_this); + _this.getExpandedRows = _this.getExpandedRows.bind(_this); + _this.getHeader = _this.getHeader.bind(_this); + _this.getHeaderRows = _this.getHeaderRows.bind(_this); + _this.getExpandedRow = _this.getExpandedRow.bind(_this); + _this.getRowsByData = _this.getRowsByData.bind(_this); + _this.getRows = _this.getRows.bind(_this); + _this.getColGroup = _this.getColGroup.bind(_this); + _this.getLeftFixedTable = _this.getLeftFixedTable.bind(_this); + _this.getRightFixedTable = _this.getRightFixedTable.bind(_this); + _this.getTable = _this.getTable.bind(_this); + _this.getTitle = _this.getTitle.bind(_this); + _this.getFooter = _this.getFooter.bind(_this); + _this.getEmptyText = _this.getEmptyText.bind(_this); + _this.getHeaderRowStyle = _this.getHeaderRowStyle.bind(_this); + _this.syncFixedTableRowHeight = _this.syncFixedTableRowHeight.bind(_this); + _this.resetScrollX = _this.resetScrollX.bind(_this); + _this.findExpandedRow = _this.findExpandedRow.bind(_this); + _this.isRowExpanded = _this.isRowExpanded.bind(_this); + _this.detectScrollTarget = _this.detectScrollTarget.bind(_this); + _this.handleBodyScroll = _this.handleBodyScroll.bind(_this); + _this.handleRowHover = _this.handleRowHover.bind(_this); + _this.computeTableWidth = _this.computeTableWidth.bind(_this); + _this.onBodyMouseLeave = _this.onBodyMouseLeave.bind(_this); + _this.tableUid = null; + _this.contentTable = null; + _this.leftColumnsLength; //左侧固定列的长度 + _this.centerColumnsLength; //非固定列的长度 + _this.columnsChildrenList = []; //复杂表头、所有叶子节点 + return _this; + } - function hasOwnProp(a, b) { - return Object.prototype.hasOwnProperty.call(a, b); - } + Table.prototype.componentWillMount = function componentWillMount() { + this.centerColumnsLength = this.columnManager.centerColumns().length; + this.leftColumnsLength = this.columnManager.leftColumns().length; + }; - function isObjectEmpty(obj) { - if (Object.getOwnPropertyNames) { - return Object.getOwnPropertyNames(obj).length === 0; - } else { - var k; - for (k in obj) { - if (hasOwnProp(obj, k)) { - return false; - } - } - return true; - } + Table.prototype.componentDidMount = function componentDidMount() { + this.getTableUID(); + _utils.EventUtil.addHandler(this.contentTable, 'keydown', this.onKeyDown); + _utils.EventUtil.addHandler(this.contentTable, 'focus', this.onFocus); + setTimeout(this.resetScrollX, 300); + //含有纵向滚动条 + // if(this.props.scroll.y){ + this.scrollbarWidth = (0, _utils.measureScrollbar)(); + // } + //后续也放在recevice里面 + if (!this.props.originWidth) { + this.computeTableWidth(); + } + if (this.columnManager.isAnyColumnsFixed()) { + this.syncFixedTableRowHeight(); + this.resizeEvent = (0, _addEventListener2['default'])(window, 'resize', this.resize); } + }; - function isUndefined(input) { - return input === void 0; + Table.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { + var _props = this.props, + hideDragHandle = _props.hideDragHandle, + rowDraggAble = _props.rowDraggAble, + showRowNum = _props.showRowNum; + + if ('data' in nextProps) { + this.setState({ + data: nextProps.data + }); + } + if ('expandedRowKeys' in nextProps) { + this.setState({ + expandedRowKeys: nextProps.expandedRowKeys + }); + } + if (nextProps.columns && nextProps.columns !== this.props.columns) { + this.columnManager.reset(nextProps.columns, null, showRowNum, !hideDragHandle && rowDraggAble); // 加入this.props.showRowNum参数 + if (nextProps.columns.length !== this.props.columns.length && this.refs && this.bodyTable) { + this.scrollTop = this.bodyTable.scrollTop; + } + } else if (nextProps.children !== this.props.children) { + this.columnManager.reset(null, nextProps.children, showRowNum, !hideDragHandle && rowDraggAble); // 加入this.props.showRowNum参数 + } + //适配lazyload + if (nextProps.scrollTop > -1) { + // this.bodyTable.scrollTop = nextProps.scrollTop; + this.scrollTop = nextProps.scrollTop; + } + // fix:模态框中使用table,计算的滚动条宽度为0的bug + // fix:表格首次渲染时 display:none,再显示时,未重新计算,导致表行出现错位的bug + if (this.scrollbarWidth <= 0 && this.props.scroll.y) { + this.scrollbarWidth = (0, _utils.measureScrollbar)(); + } + if (!nextProps.originWidth) { + this.computeTableWidth(); + this.firstDid = true; //避免重复update + } + if (nextProps.resetScroll) { + this.resetScrollX(); } - function isNumber(input) { - return ( - typeof input === 'number' || - Object.prototype.toString.call(input) === '[object Number]' - ); + // console.log('this.scrollTop**********',this.scrollTop); + }; + + Table.prototype.componentDidUpdate = function componentDidUpdate(prevProps, prevState) { + // todo: IE 大数据渲染,行高不固定,且设置了 heightConsistent={true} 时,滚动加载操作会导致 ie11 浏览器崩溃 + // https://github.com/tinper-bee/bee-table/commit/bd2092cdbaad236ff89477304e58dea93325bf09 + if (this.columnManager.isAnyColumnsFixed()) { + this.syncFixedTableRowHeight(); } - function isDate(input) { - return ( - input instanceof Date || - Object.prototype.toString.call(input) === '[object Date]' - ); + //适应模态框中表格、以及父容器宽度变化的情况 + if (typeof this.props.scroll.x !== 'number' && this.contentTable.getBoundingClientRect().width !== this.contentDomWidth && this.firstDid) { + this.computeTableWidth(); + this.firstDid = false; //避免重复update + } + if (this.scrollTop > -1) { + this.refs.fixedColumnsBodyLeft && (this.refs.fixedColumnsBodyLeft.scrollTop = this.scrollTop); + this.refs.fixedColumnsBodyRight && (this.refs.fixedColumnsBodyRight.scrollTop = this.scrollTop); + this.bodyTable.scrollTop = this.scrollTop; + this.scrollTop = -1; + } + if (prevProps.data.length === 0 || this.props.data.length === 0) { + this.resetScrollX(); } - function map(arr, fn) { - var res = [], - i; - for (i = 0; i < arr.length; ++i) { - res.push(fn(arr[i], i)); - } - return res; + // 是否传入 scroll中的y属性,如果传入判断是否是整数,如果是则进行比较 。bodyTable 的clientHeight进行判断 + this.isShowScrollY(); + }; + + Table.prototype.componentWillUnmount = function componentWillUnmount() { + // 移除绑定事件,避免内存泄漏 + this.contentTable = null; + _utils.EventUtil.removeHandler(this.contentTable, 'keydown', this.onKeyDown); + _utils.EventUtil.removeHandler(this.contentTable, 'focus', this.onFocus); + if (this.resizeEvent) { + this.resizeEvent.remove(); } + }; - function extend(a, b) { - for (var i in b) { - if (hasOwnProp(b, i)) { - a[i] = b[i]; - } - } + Table.prototype.computeTableWidth = function computeTableWidth() { + var expandIconAsCell = this.props.expandIconAsCell; + //如果用户传了scroll.x按用户传的为主 - if (hasOwnProp(b, 'toString')) { - a.toString = b.toString; - } + var setWidthParam = this.props.scroll.x; - if (hasOwnProp(b, 'valueOf')) { - a.valueOf = b.valueOf; - } + if (typeof setWidthParam == 'number') { + var numSetWidthParam = parseInt(setWidthParam); + this.contentWidth = numSetWidthParam; + } else { + // this.preContentDomWidth = this.contentDomWidth; + //计算总表格宽度、根据表格宽度和各列的宽度和比较,重置最后一列 + this.contentDomWidth = this.contentTable.getBoundingClientRect().width; //表格容器宽度 - return a; + this.contentWidth = this.contentDomWidth; //默认与容器宽度一样 } + var computeObj = this.columnManager.getColumnWidth(this.contentWidth); + var expandColWidth = expandIconAsCell ? expandIconCellWidth : 0; + var lastShowIndex = computeObj.lastShowIndex; + this.computeWidth = computeObj.computeWidth + expandColWidth; - function createUTC(input, format, locale, strict) { - return createLocalOrUTC(input, format, locale, strict, true).utc(); + this.domWidthDiff = this.contentDomWidth - this.computeWidth; + if (typeof setWidthParam == 'string' && setWidthParam.indexOf('%')) { + this.contentWidth = this.contentWidth * parseInt(setWidthParam) / 100; + this.domWidthDiff = this.contentDomWidth - this.contentWidth; } - function defaultParsingFlags() { - // We need to deep clone this object. - return { - empty: false, - unusedTokens: [], - unusedInput: [], - overflow: -2, - charsLeftOver: 0, - nullInput: false, - invalidEra: null, - invalidMonth: null, - invalidFormat: false, - userInvalidated: false, - iso: false, - parsedDateParts: [], - era: null, - meridiem: null, - rfc2822: false, - weekdayMismatch: false, - }; + if (this.computeWidth < this.contentWidth) { + var contentWidthDiff = this.scrollbarWidth ? this.contentWidth - this.computeWidth - this.scrollbarWidth : this.contentWidth - this.computeWidth; + //bordered的表格需要减去边框的差值1 + if (this.props.bordered) { + contentWidthDiff = contentWidthDiff - 1; + } + this.setState({ contentWidthDiff: contentWidthDiff, lastShowIndex: lastShowIndex }); + } else { + this.contentWidth = this.computeWidth; + this.setState({ contentWidthDiff: 0, lastShowIndex: lastShowIndex }); //重新渲染,为了显示滚动条 } + }; + //根据内容动态的判断是否显示纵向滚动条 - function getParsingFlags(m) { - if (m._pf == null) { - m._pf = defaultParsingFlags(); - } - return m._pf; - } - var some; - if (Array.prototype.some) { - some = Array.prototype.some; - } else { - some = function (fun) { - var t = Object(this), - len = t.length >>> 0, - i; + Table.prototype.isShowScrollY = function isShowScrollY() { + var props = this.props; + var y = props.scroll && props.scroll.y; + if (y) { + var bodyH = this.bodyTable.clientHeight; + var bodyContentH = this.bodyTable.querySelector('table').clientHeight; + var rightBodyTable = this.refs.fixedColumnsBodyRight; + // const leftBodyTable = this.refs.fixedColumnsBodyLeft; + var overflowy = bodyContentH <= bodyH ? 'auto' : 'scroll'; + this.bodyTable.style.overflowY = overflowy; - for (i = 0; i < len; i++) { - if (i in t && fun.call(this, t[i], i, t)) { - return true; - } - } + this.headTable.style.overflowY = overflowy; + rightBodyTable && (rightBodyTable.style.overflowY = overflowy); + // 没有纵向滚动条时,表头横向滚动条根据内容动态显示 待验证 + // if(overflowy == 'auto'){ + // this.fixedHeadTable && (this.fixedHeadTable.style.overflowX = 'auto'); + // rightBodyTable && (rightBodyTable.style.overflowX = 'auto'); + // leftBodyTable && (leftBodyTable.style.overflowX = 'auto'); + // } - return false; - }; } + }; - function isValid(m) { - if (m._isValid == null) { - var flags = getParsingFlags(m), - parsedParts = some.call(flags.parsedDateParts, function (i) { - return i != null; - }), - isNowValid = - !isNaN(m._d.getTime()) && - flags.overflow < 0 && - !flags.empty && - !flags.invalidEra && - !flags.invalidMonth && - !flags.invalidWeekday && - !flags.weekdayMismatch && - !flags.nullInput && - !flags.invalidFormat && - !flags.userInvalidated && - (!flags.meridiem || (flags.meridiem && parsedParts)); + Table.prototype.onExpandedRowsChange = function onExpandedRowsChange(expandedRowKeys) { + if (!this.props.expandedRowKeys) { + this.setState({ expandedRowKeys: expandedRowKeys }); + } + this.props.onExpandedRowsChange(expandedRowKeys); + }; - if (m._strict) { - isNowValid = - isNowValid && - flags.charsLeftOver === 0 && - flags.unusedTokens.length === 0 && - flags.bigHour === undefined; - } + Table.prototype.onExpanded = function onExpanded(expanded, record, index, e) { + if (e) { + e.preventDefault(); + e.stopPropagation(); + } + var info = this.findExpandedRow(record); + if (typeof info !== 'undefined' && !expanded) { + this.onRowDestroy(record, index, true); + } else if (!info && expanded) { + var expandedRows = this.getExpandedRows().concat(); + expandedRows.push(this.getRowKey(record, index)); + this.onExpandedRowsChange(expandedRows); + } + this.props.onExpand(expanded, record, index); + }; - if (Object.isFrozen == null || !Object.isFrozen(m)) { - m._isValid = isNowValid; - } else { - return isNowValid; - } - } - return m._isValid; + Table.prototype.onRowDestroy = function onRowDestroy(record, rowIndex, isExpandOperation) { + var expandedRows = this.getExpandedRows().concat(); + var rowKey = this.getRowKey(record, rowIndex); + var index = -1; + expandedRows.forEach(function (r, i) { + if (r === rowKey) { + index = i; + } + }); + if (index !== -1) { + expandedRows.splice(index, 1); + } + // + if (this.currentHoverKey == rowKey && this.hoverDom) { + this.hoverDom.style.display = 'none'; + } + // todo:如果是TableRow组件卸载触发的该方法,需要加判断,解决懒加载时,持续触发onExpandedRowsChange的问题 + if (isExpandOperation) { + this.onExpandedRowsChange(expandedRows); + } else { + var info = this.findExpandedRow(record); + if (typeof info === 'undefined') { + this.onExpandedRowsChange(expandedRows); + } } + }; - function createInvalid(flags) { - var m = createUTC(NaN); - if (flags != null) { - extend(getParsingFlags(m), flags); - } else { - getParsingFlags(m).userInvalidated = true; - } + Table.prototype.getRowKey = function getRowKey(record, index) { + var rowKey = this.props.rowKey; + var key = typeof rowKey === 'function' ? rowKey(record, index) : record[rowKey]; + (0, _utils.warningOnce)(key !== undefined, 'Each record in table should have a unique `key` prop,' + 'or set `rowKey` to an unique primary key.'); + return key; + }; - return m; + Table.prototype.getExpandedRows = function getExpandedRows() { + return this.props.expandedRowKeys || this.state.expandedRowKeys; + }; + + Table.prototype.getHeader = function getHeader(columns, fixed, leftFixedWidth, rightFixedWidth) { + var lastShowIndex = this.state.lastShowIndex; + var _props2 = this.props, + filterDelay = _props2.filterDelay, + onFilterChange = _props2.onFilterChange, + onFilterClear = _props2.onFilterClear, + filterable = _props2.filterable, + showHeader = _props2.showHeader, + expandIconAsCell = _props2.expandIconAsCell, + clsPrefix = _props2.clsPrefix, + onDragStart = _props2.onDragStart, + onDragEnter = _props2.onDragEnter, + onDragOver = _props2.onDragOver, + onDrop = _props2.onDrop, + onDragEnd = _props2.onDragEnd, + draggable = _props2.draggable, + onMouseDown = _props2.onMouseDown, + onMouseMove = _props2.onMouseMove, + onMouseUp = _props2.onMouseUp, + dragborder = _props2.dragborder, + onThMouseMove = _props2.onThMouseMove, + dragborderKey = _props2.dragborderKey, + minColumnWidth = _props2.minColumnWidth, + headerHeight = _props2.headerHeight, + afterDragColWidth = _props2.afterDragColWidth, + headerScroll = _props2.headerScroll, + bordered = _props2.bordered, + onDropBorder = _props2.onDropBorder, + onDraggingBorder = _props2.onDraggingBorder, + bodyDisplayInRow = _props2.bodyDisplayInRow, + headerEventNoStop = _props2.headerEventNoStop; + + this.columnsChildrenList = []; //复杂表头拖拽,重新render表头前,将其置空 + var rows = this.getHeaderRows(columns); + if (expandIconAsCell && fixed !== 'right') { + rows[0].unshift({ + key: 'u-table-expandIconAsCell', + className: clsPrefix + '-expand-icon-th', + title: '', + rowSpan: rows.length, + width: expandIconCellWidth + }); + this.columnsChildrenList.unshift({ + className: "u-table-expand-icon-column", + key: "expand-icon" + }); + } + var trStyle = headerHeight && !fixed ? { height: headerHeight } : fixed ? this.getHeaderRowStyle(columns, rows) : null; + var drop = draggable ? { onDragStart: onDragStart, onDragOver: onDragOver, onDrop: onDrop, onDragEnd: onDragEnd, onDragEnter: onDragEnter, draggable: draggable } : {}; + var dragBorder = dragborder ? { onMouseDown: onMouseDown, onMouseMove: onMouseMove, onMouseUp: onMouseUp, dragborder: dragborder, onThMouseMove: onThMouseMove, dragborderKey: dragborderKey, onDropBorder: onDropBorder, onDraggingBorder: onDraggingBorder } : {}; + var contentWidthDiff = 0; + //非固定表格,宽度不够时自动扩充 + if (!fixed) { + contentWidthDiff = this.state.contentWidthDiff; } + return showHeader ? _react2['default'].createElement(_TableHeader2['default'], _extends({}, drop, dragBorder, { + columnsChildrenList: this.columnsChildrenList, + locale: this.props.locale, + minColumnWidth: minColumnWidth, + contentWidthDiff: contentWidthDiff, + contentWidth: this.contentWidth, + lastShowIndex: expandIconAsCell ? parseInt(lastShowIndex) + 1 : lastShowIndex, + clsPrefix: clsPrefix, + rows: rows, + contentTable: this.contentTable, + rowStyle: trStyle, + fixed: fixed, + filterable: filterable, + onFilterChange: onFilterChange, + onFilterClear: onFilterClear, + filterDelay: filterDelay, + afterDragColWidth: afterDragColWidth, + contentDomWidth: this.contentDomWidth, + scrollbarWidth: this.scrollbarWidth, + headerScroll: headerScroll, + bordered: bordered, + leftFixedWidth: leftFixedWidth, + rightFixedWidth: rightFixedWidth, + bodyDisplayInRow: bodyDisplayInRow, + eventNoStop: headerEventNoStop + })) : null; + }; - // Plugins that add properties should also add the key here (null value), - // so we can properly clone ourselves. - var momentProperties = (hooks.momentProperties = []), - updateInProgress = false; + Table.prototype.getHeaderRows = function getHeaderRows(columns) { + var _this2 = this; - function copyConfig(to, from) { - var i, prop, val; + var currentRow = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; + var rows = arguments[2]; + var columnKey = this.props.columnKey; + var _state = this.state, + _state$contentWidthDi = _state.contentWidthDiff, + contentWidthDiff = _state$contentWidthDi === undefined ? 0 : _state$contentWidthDi, + _state$lastShowIndex = _state.lastShowIndex, + lastShowIndex = _state$lastShowIndex === undefined ? -1 : _state$lastShowIndex; - if (!isUndefined(from._isAMomentObject)) { - to._isAMomentObject = from._isAMomentObject; - } - if (!isUndefined(from._i)) { - to._i = from._i; - } - if (!isUndefined(from._f)) { - to._f = from._f; - } - if (!isUndefined(from._l)) { - to._l = from._l; - } - if (!isUndefined(from._strict)) { - to._strict = from._strict; - } - if (!isUndefined(from._tzm)) { - to._tzm = from._tzm; - } - if (!isUndefined(from._isUTC)) { - to._isUTC = from._isUTC; - } - if (!isUndefined(from._offset)) { - to._offset = from._offset; - } - if (!isUndefined(from._pf)) { - to._pf = getParsingFlags(from); - } - if (!isUndefined(from._locale)) { - to._locale = from._locale; - } + var filterCol = []; + rows = rows || []; + rows[currentRow] = rows[currentRow] || []; - if (momentProperties.length > 0) { - for (i = 0; i < momentProperties.length; i++) { - prop = momentProperties[i]; - val = from[prop]; - if (!isUndefined(val)) { - to[prop] = val; - } - } + columns.forEach(function (column, i) { + if (!column.key) { + column.key = column[columnKey]; + } + if (column.rowSpan && rows.length < column.rowSpan) { + while (rows.length < column.rowSpan) { + rows.push([]); } - - return to; + } + var width = column.width; + if (typeof width == 'string' && width.indexOf('%') > -1 && _this2.contentWidth) { + width = parseInt(_this2.contentWidth * parseInt(width) / 100); + } else if (width) { + width = parseInt(width); + } + if (!column.fixed && lastShowIndex == i && width) { + width = width + contentWidthDiff; + } + var cell = { + key: column.key, + className: column.className || '', + children: column.title, + drgHover: column.drgHover, + fixed: column.fixed, + width: width, + dataindex: column.dataIndex, + textAlign: column.textAlign, + titleAlign: column.titleAlign, // 标题水平对齐方式 + required: column.required // 标题是否展示必填标志 + }; + if (column.onHeadCellClick) { + cell.onClick = column.onHeadCellClick; + } + if (column.children) { + _this2.getHeaderRows(column.children, currentRow + 1, rows); + } else { + _this2.columnsChildrenList.push(column); //复杂表头拖拽,所有叶子节点 + } + if ('colSpan' in column) { + cell.colSpan = column.colSpan; + } + if ('rowSpan' in column) { + cell.rowSpan = column.rowSpan; + } + if (cell.colSpan !== 0) { + rows[currentRow].push(cell); + } + //判断是否启用过滤 + if (_this2.props.filterable) { + //组装Filter需要的Col + filterCol.push({ + key: column.key, + children: "过滤渲染", + width: column.width, + filtertype: column.filterType, //下拉的类型 包括['text','dropdown','date','daterange','number'] + dataindex: column.dataIndex, //field + datasource: _this2.props.data, //需要单独拿到数据处理 + format: column.format, //设置日期的格式 + filterdropdown: column.filterDropdown, //是否显示 show hide + filterdropdownauto: column.filterDropdownAuto, //是否自定义数据 + filterdropdowndata: column.filterDropdownData, //自定义数据格式 + filterdropdownfocus: column.filterDropdownFocus, //焦点触发函数回调 + filterdropdowntype: column.filterDropdownType, //下拉的类型分为 String,Number 默认是String + filterdropdownincludekeys: column.filterDropdownIncludeKeys, //下拉条件按照指定的keys去显示 + filterinputnumberoptions: column.filterInputNumberOptions //设置数值框内的详细属性 + }); + } + }); + if (this.props.filterable) { + rows.push(filterCol); } + return rows.filter(function (row) { + return row.length > 0; + }); + }; - // Moment prototype object - function Moment(config) { - copyConfig(this, config); - this._d = new Date(config._d != null ? config._d.getTime() : NaN); - if (!this.isValid()) { - this._d = new Date(NaN); - } - // Prevent infinite loop in case updateOffset creates new moment - // objects. - if (updateInProgress === false) { - updateInProgress = true; - hooks.updateOffset(this); - updateInProgress = false; - } + Table.prototype.getExpandedRow = function getExpandedRow(key, content, visible, className, fixed) { + var _props3 = this.props, + clsPrefix = _props3.clsPrefix, + expandIconAsCell = _props3.expandIconAsCell, + onPaste = _props3.onPaste; + + var colCount = void 0; + if (fixed === 'left') { + colCount = this.columnManager.leftLeafColumns().length; + } else if (fixed === 'right') { + colCount = this.columnManager.rightLeafColumns().length; + } else { + colCount = this.columnManager.centerColumns().length; //计算非固定列的个数,fix: 嵌套表格场景,右侧列断开的问题 } - function isMoment(obj) { - return ( - obj instanceof Moment || (obj != null && obj._isAMomentObject != null) - ); + var expandedRowHeight = this.state.fixedColumnsExpandedRowsHeight[key] || 'auto'; + function contentContainer() { + if (content && content.props && content.props.style) { + return _react2['default'].createElement('div', { style: { height: content.props.style.height } }); + } else { + return ' '; + } } - function warn(msg) { - if ( - hooks.suppressDeprecationWarnings === false && - typeof console !== 'undefined' && - console.warn - ) { - console.warn('Deprecation warning: ' + msg); + var columns = [{ + key: 'extra-row', + render: function render() { + return { + props: { + colSpan: colCount + }, + children: !fixed ? content : contentContainer() + }; + } + }]; + if (expandIconAsCell && fixed !== 'right') { + columns.unshift({ + key: 'expand-icon-placeholder', + render: function render() { + return null; } + }); } + return _react2['default'].createElement(_TableRow2['default'], { + onPaste: onPaste, + columns: columns, + visible: visible, + className: className, + key: key + '-extra-row', + clsPrefix: clsPrefix + '-expanded-row', + indent: 1, + expandable: false, + store: this.store, + dragborderKey: this.props.dragborderKey, + rowDraggAble: this.props.rowDraggAble, + useDragHandle: this.props.useDragHandle, + onDragRow: this.onDragRow, + onDragRowStart: this.onDragRowStart, + height: expandedRowHeight + }); + }; - function deprecate(msg, fn) { - var firstTime = true; + /** + * 行拖拽开始时触发 + * @param currentKey 当前拖拽目标的key + */ - return extend(function () { - if (hooks.deprecationHandler != null) { - hooks.deprecationHandler(null, msg); - } - if (firstTime) { - var args = [], - arg, - i, - key; - for (i = 0; i < arguments.length; i++) { - arg = ''; - if (typeof arguments[i] === 'object') { - arg += '\n[' + i + '] '; - for (key in arguments[0]) { - if (hasOwnProp(arguments[0], key)) { - arg += key + ': ' + arguments[0][key] + ', '; - } - } - arg = arg.slice(0, -2); // Remove trailing comma and space - } else { - arg = arguments[i]; - } - args.push(arg); - } - warn( - msg + - '\nArguments: ' + - Array.prototype.slice.call(args).join('') + - '\n' + - new Error().stack - ); - firstTime = false; - } - return fn.apply(this, arguments); - }, fn); - } - var deprecations = {}; + /** + * 行拖拽结束时触发 + * @param currentKey 当前拖拽目标的key + * @param targetKey 拖拽结束时,目标位置的key + */ - function deprecateSimple(name, msg) { - if (hooks.deprecationHandler != null) { - hooks.deprecationHandler(name, msg); - } - if (!deprecations[name]) { - warn(msg); - deprecations[name] = true; - } - } + /** + * 数组元素交换位置 + * @param {array} arr 数组 + * @param {number} index1 添加项目的位置 + * @param {number} index2 删除项目的位置 + */ - hooks.suppressDeprecationWarnings = false; - hooks.deprecationHandler = null; - function isFunction(input) { - return ( - (typeof Function !== 'undefined' && input instanceof Function) || - Object.prototype.toString.call(input) === '[object Function]' - ); - } + /** + * + * + * @param {*} data + * @param {*} visible + * @param {*} indent 层级 + * @param {*} columns + * @param {*} fixed + * @param {number} [rootIndex=-1] 祖级节点 + * @returns + * @memberof Table + */ + Table.prototype.getRowsByData = function getRowsByData(data, visible, indent, columns, fixed) { + var rootIndex = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : -1; - function set(config) { - var prop, i; - for (i in config) { - if (hasOwnProp(config, i)) { - prop = config[i]; - if (isFunction(prop)) { - this[i] = prop; - } else { - this['_' + i] = prop; - } - } - } - this._config = config; - // Lenient ordinal parsing accepts just a number in addition to - // number + (possibly) stuff coming from _dayOfMonthOrdinalParse. - // TODO: Remove "ordinalParse" fallback in next major release. - this._dayOfMonthOrdinalParseLenient = new RegExp( - (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + - '|' + - /\d{1,2}/.source - ); - } + var props = this.props; + var childrenColumnName = props.childrenColumnName; + var expandedRowRender = props.expandedRowRender; + var expandRowByClick = props.expandRowByClick; + var onPaste = props.onPaste; + var fixedColumnsBodyRowsHeight = this.state.fixedColumnsBodyRowsHeight; - function mergeConfigs(parentConfig, childConfig) { - var res = extend({}, parentConfig), - prop; - for (prop in childConfig) { - if (hasOwnProp(childConfig, prop)) { - if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) { - res[prop] = {}; - extend(res[prop], parentConfig[prop]); - extend(res[prop], childConfig[prop]); - } else if (childConfig[prop] != null) { - res[prop] = childConfig[prop]; - } else { - delete res[prop]; - } - } - } - for (prop in parentConfig) { - if ( - hasOwnProp(parentConfig, prop) && - !hasOwnProp(childConfig, prop) && - isObject(parentConfig[prop]) - ) { - // make sure changes to properties don't modify parent config - res[prop] = extend({}, res[prop]); - } - } - return res; - } + var rst = []; + var height = void 0; + var rowClassName = props.rowClassName; + var rowRef = props.rowRef; + var expandedRowClassName = props.expandedRowClassName; + var needIndentSpaced = props.data.some(function (record) { + return record[childrenColumnName]; + }); + var onRowClick = props.onRowClick; + var onRowDoubleClick = props.onRowDoubleClick; - function Locale(config) { - if (config != null) { - this.set(config); - } + var expandIconAsCell = fixed !== 'right' ? props.expandIconAsCell : false; + var expandIconColumnIndex = props.expandIconColumnIndex; + if (props.lazyLoad && props.lazyLoad.preHeight && indent == 0) { + rst.push(_react2['default'].createElement(_TableRow2['default'], { onPaste: onPaste, height: props.lazyLoad.preHeight, columns: [], className: '', key: 'table_row_first', store: this.store, visible: true })); } + var lazyCurrentIndex = props.lazyLoad && props.lazyLoad.startIndex ? props.lazyLoad.startIndex : 0; + var lazyParentIndex = props.lazyLoad && props.lazyLoad.startParentIndex ? props.lazyLoad.startParentIndex : 0; + var lazyEndIndex = props.lazyLoad && props.lazyLoad.endIndex ? props.lazyLoad.endIndex : -1; + for (var i = 0; i < data.length; i++) { + var isHiddenExpandIcon = void 0; + var record = data[i]; + var key = this.getRowKey(record, i); + // 兼容 NCC 以前的业务逻辑,支持外部通过 record 中的 isleaf 字段,判断是否为叶子节点 + record['_isLeaf'] = typeof record['isleaf'] === 'boolean' ? record['isleaf'] : record['_isLeaf']; + // _isLeaf 字段是在 bigData 里添加的,只有层级树大数据场景需要该字段 + // _isLeaf 有三种取值情况:true / false / null。(Table内部字段) + var _isLeaf = typeof record['_isLeaf'] === 'boolean' ? record['_isLeaf'] : null; + var childrenColumn = _isLeaf ? false : record[childrenColumnName]; + var isRowExpanded = this.isRowExpanded(record, i); + var expandedRowContent = void 0; + var expandedContentHeight = 0; + //fixedIndex一般是跟index是一个值的,只有是树结构时,会讲子节点的值也累计上 + var fixedIndex = i; + //判断是否是tree结构 + if (this.treeType) { + fixedIndex = this.treeRowIndex; + } + if (expandedRowRender && isRowExpanded) { + expandedRowContent = expandedRowRender(record, fixedIndex + lazyCurrentIndex, indent); + expandedContentHeight = parseInt(expandedRowContent.props && expandedRowContent.props.style && expandedRowContent.props.style.height ? expandedRowContent.props.style.height : 0); + } + //只有当使用expandedRowRender参数的时候才去识别isHiddenExpandIcon(隐藏行展开的icon) + if (expandedRowRender && typeof props.haveExpandIcon == 'function') { + isHiddenExpandIcon = props.haveExpandIcon(record, i); + } - var keys; + var onHoverProps = {}; - if (Object.keys) { - keys = Object.keys; - } else { - keys = function (obj) { - var i, - res = []; - for (i in obj) { - if (hasOwnProp(obj, i)) { - res.push(i); - } - } - return res; - }; - } + onHoverProps.onHover = this.handleRowHover; - var defaultCalendar = { - sameDay: '[Today at] LT', - nextDay: '[Tomorrow at] LT', - nextWeek: 'dddd [at] LT', - lastDay: '[Yesterday at] LT', - lastWeek: '[Last] dddd [at] LT', - sameElse: 'L', - }; + if (props.bodyDisplayInRow && props.height) { + height = props.height; + } else if (fixed || props.heightConsistent) { + height = fixedColumnsBodyRowsHeight[fixedIndex]; + } - function calendar(key, mom, now) { - var output = this._calendar[key] || this._calendar['sameElse']; - return isFunction(output) ? output.call(mom, now) : output; - } + var leafColumns = void 0; + if (fixed === 'left') { + leafColumns = this.columnManager.leftLeafColumns(); + } else if (fixed === 'right') { + leafColumns = this.columnManager.rightLeafColumns(); + } else { + leafColumns = this.columnManager.leafColumns(); + } + var className = rowClassName(record, fixedIndex + lazyCurrentIndex, indent); - function zeroFill(number, targetLength, forceSign) { - var absNumber = '' + Math.abs(number), - zerosToFill = targetLength - absNumber.length, - sign = number >= 0; - return ( - (sign ? (forceSign ? '+' : '') : '-') + - Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + - absNumber - ); - } + //合计代码如果是最后一行并且有合计功能时,最后一行为合计列 + if (i == data.length - 1 && props.showSum) { + className = className + ' sumrow'; + } - var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, - localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, - formatFunctions = {}, - formatTokenFunctions = {}; + var paramRootIndex = rootIndex; + //小于0说明为第一层节点,她的子孙节点要保存自己的根节点 + if (paramRootIndex < 0) { + paramRootIndex = i + lazyParentIndex; + } + var index = i; + if (rootIndex == -1) { + index = i + lazyParentIndex; + } + rst.push(_react2['default'].createElement(_TableRow2['default'], _extends({ + onPaste: onPaste, + indent: indent, + indentSize: props.indentSize, + needIndentSpaced: needIndentSpaced, + className: '' + className, + record: record, + expandIconAsCell: expandIconAsCell, + onDestroy: this.onRowDestroy, + index: index, + visible: visible, + expandRowByClick: expandRowByClick, + onExpand: this.onExpanded, + expandable: expandedRowRender || (childrenColumn && childrenColumn.length > 0 ? true : _isLeaf === false), + expanded: isRowExpanded, + clsPrefix: props.clsPrefix + '-row', + childrenColumnName: childrenColumnName, + columns: leafColumns, + expandIconColumnIndex: expandIconColumnIndex, + onRowClick: onRowClick, + onRowDoubleClick: onRowDoubleClick, + height: height, + isHiddenExpandIcon: isHiddenExpandIcon + }, onHoverProps, { + key: "table_row_" + key + "_" + index, + hoverKey: key, + ref: rowRef, + store: this.store, + fixed: fixed, + expandedContentHeight: expandedContentHeight, + setRowHeight: props.setRowHeight, + setRowParentIndex: props.setRowParentIndex, + treeType: childrenColumn || this.treeType ? true : false, + fixedIndex: fixedIndex + lazyCurrentIndex, + rootIndex: rootIndex, + syncHover: props.syncHover, + bodyDisplayInRow: props.bodyDisplayInRow, + rowDraggAble: props.rowDraggAble, + useDragHandle: props.useDragHandle, + onDragRow: this.onDragRow, + onDragRowStart: this.onDragRowStart, + contentTable: this.contentTable, + tableUid: this.tableUid, + expandedIcon: props.expandedIcon, + collapsedIcon: props.collapsedIcon, + lazyStartIndex: lazyCurrentIndex, + lazyEndIndex: lazyEndIndex, + centerColumnsLength: this.centerColumnsLength, + leftColumnsLength: this.leftColumnsLength, + expandIconCellWidth: expandIconCellWidth + }))); + this.treeRowIndex++; + var subVisible = visible && isRowExpanded; - // token: 'M' - // padded: ['MM', 2] - // ordinal: 'Mo' - // callback: function () { this.month() + 1 } - function addFormatToken(token, padded, ordinal, callback) { - var func = callback; - if (typeof callback === 'string') { - func = function () { - return this[callback](); - }; - } - if (token) { - formatTokenFunctions[token] = func; - } - if (padded) { - formatTokenFunctions[padded[0]] = function () { - return zeroFill(func.apply(this, arguments), padded[1], padded[2]); - }; - } - if (ordinal) { - formatTokenFunctions[ordinal] = function () { - return this.localeData().ordinal( - func.apply(this, arguments), - token - ); - }; - } + if (expandedRowContent && isRowExpanded) { + rst.push(this.getExpandedRow(key, expandedRowContent, subVisible, expandedRowClassName(record, i, indent), fixed)); + } + if (childrenColumn) { + this.isTreeType = true; //增加该标志位,为了兼容老版本,不修改以前的 `this.treeType` 的相关逻辑 + this.treeType = true; //证明是tree表形式visible = {true} + rst = rst.concat(this.getRowsByData(childrenColumn, subVisible, indent + 1, columns, fixed, paramRootIndex)); + } } - function removeFormattingTokens(input) { - if (input.match(/\[[\s\S]/)) { - return input.replace(/^\[|\]$/g, ''); - } - return input.replace(/\\/g, ''); + if (props.lazyLoad && props.lazyLoad.sufHeight && indent == 0) { + rst.push(_react2['default'].createElement(_TableRow2['default'], { onPaste: onPaste, height: props.lazyLoad.sufHeight, key: 'table_row_end', columns: [], className: '', store: this.store, visible: true })); } + if (!this.isTreeType) { + this.treeType = false; + } + return rst; + }; - function makeFormatFunction(format) { - var array = format.match(formattingTokens), - i, - length; - - for (i = 0, length = array.length; i < length; i++) { - if (formatTokenFunctions[array[i]]) { - array[i] = formatTokenFunctions[array[i]]; - } else { - array[i] = removeFormattingTokens(array[i]); - } - } + Table.prototype.getRows = function getRows(columns, fixed) { + //统计index,只有含有树表结构才有用,因为树表结构时,固定列的索引取值有问题 + this.treeRowIndex = 0; + //每次遍历 data 前,将this.isTreeType置为 false,若遍历完 data,此变量仍为 false,说明是普通表格 + this.isTreeType = false; + var rs = this.getRowsByData(this.state.data, true, 0, columns, fixed); + return rs; + }; - return function (mom) { - var output = '', - i; - for (i = 0; i < length; i++) { - output += isFunction(array[i]) - ? array[i].call(mom, format) - : array[i]; - } - return output; - }; - } + Table.prototype.getColGroup = function getColGroup(columns, fixed) { + var _this3 = this; - // format date using native date object - function formatMoment(m, format) { - if (!m.isValid()) { - return m.localeData().invalidDate(); - } + var cols = []; + var self = this; - format = expandFormat(format, m.localeData()); - formatFunctions[format] = - formatFunctions[format] || makeFormatFunction(format); + var _state2 = this.state, + _state2$contentWidthD = _state2.contentWidthDiff, + contentWidthDiff = _state2$contentWidthD === undefined ? 0 : _state2$contentWidthD, + _state2$lastShowIndex = _state2.lastShowIndex, + lastShowIndex = _state2$lastShowIndex === undefined ? 0 : _state2$lastShowIndex; - return formatFunctions[format](m); + if (this.props.expandIconAsCell && fixed !== 'right') { + cols.push(_react2['default'].createElement('col', { + className: this.props.clsPrefix + '-expand-icon-col', + key: 'u-table-expand-icon-col' + })); + } + var leafColumns = void 0; + if (fixed === 'left') { + contentWidthDiff = 0; + leafColumns = this.columnManager.leftLeafColumns(); + } else if (fixed === 'right') { + contentWidthDiff = 0; + leafColumns = this.columnManager.rightLeafColumns(); + } else { + leafColumns = this.columnManager.leafColumns(); } + cols = cols.concat(leafColumns.map(function (c, i, arr) { + var fixedClass = ''; + var width = c.width; + if (typeof width == 'string' && width.indexOf('%') > -1 && self.contentWidth) { + width = parseInt(self.contentWidth * parseInt(width) / 100); + } else if (width) { + width = parseInt(width); + } + if (lastShowIndex == i && width) { + width = width + contentWidthDiff; + } + if (!fixed && c.fixed) { + fixedClass = ' ' + _this3.props.clsPrefix + '-row-fixed-columns-in-body'; + } + return _react2['default'].createElement('col', { key: c.key, style: { width: width, minWidth: c.width }, className: fixedClass }); + })); + return _react2['default'].createElement( + 'colgroup', + { id: 'bee-table-colgroup' }, + cols + ); + }; - function expandFormat(format, locale) { - var i = 5; + Table.prototype.getLeftFixedTable = function getLeftFixedTable() { + return this.getTable({ + columns: this.columnManager.leftColumns(), + fixed: 'left' + }); + }; - function replaceLongDateFormatTokens(input) { - return locale.longDateFormat(input) || input; - } + Table.prototype.getRightFixedTable = function getRightFixedTable() { + return this.getTable({ + columns: this.columnManager.rightColumns(), + fixed: 'right' + }); + }; - localFormattingTokens.lastIndex = 0; - while (i >= 0 && localFormattingTokens.test(format)) { - format = format.replace( - localFormattingTokens, - replaceLongDateFormatTokens - ); - localFormattingTokens.lastIndex = 0; - i -= 1; - } + Table.prototype.getTable = function getTable() { + var _this4 = this; - return format; - } + var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var columns = options.columns, + fixed = options.fixed; + var _props4 = this.props, + clsPrefix = _props4.clsPrefix, + _props4$scroll = _props4.scroll, + scroll = _props4$scroll === undefined ? {} : _props4$scroll, + getBodyWrapper = _props4.getBodyWrapper, + footerScroll = _props4.footerScroll, + headerScroll = _props4.headerScroll, + _props4$hideHeaderScr = _props4.hideHeaderScroll, + hideHeaderScroll = _props4$hideHeaderScr === undefined ? false : _props4$hideHeaderScr, + expandIconAsCell = _props4.expandIconAsCell; + var _props5 = this.props, + useFixedHeader = _props5.useFixedHeader, + data = _props5.data; - var defaultLongDateFormat = { - LTS: 'h:mm:ss A', - LT: 'h:mm A', - L: 'MM/DD/YYYY', - LL: 'MMMM D, YYYY', - LLL: 'MMMM D, YYYY h:mm A', - LLLL: 'dddd, MMMM D, YYYY h:mm A', - }; + var bodyStyle = _extends({}, this.props.bodyStyle); // 这里为什么不写在上面? + var headStyle = {}; + var innerBodyStyle = {}; + var leftFixedWidth = this.columnManager.getLeftColumnsWidth(this.contentWidth); + var rightFixedWidth = this.columnManager.getRightColumnsWidth(this.contentWidth); - function longDateFormat(key) { - var format = this._longDateFormat[key], - formatUpper = this._longDateFormat[key.toUpperCase()]; + var tableClassName = ''; + //表格元素的宽度大于容器的宽度也显示滚动条 + if (scroll.x || fixed || this.contentDomWidth < this.contentWidth) { + tableClassName = clsPrefix + '-fixed'; + //没有数据并且含有顶部菜单时 + if (this.props.data.length == 0 && this.props.headerScroll) { + bodyStyle.overflowX = 'hidden'; + } + if (!footerScroll) { + bodyStyle.overflowX = bodyStyle.overflowX || 'auto'; + } + } - if (format || !formatUpper) { - return format; - } + if (scroll.y) { + // maxHeight will make fixed-Table scrolling not working + // so we only set maxHeight to body-Table here + if (fixed) { + // bodyStyle.height = bodyStyle.height || scroll.y; + innerBodyStyle.maxHeight = bodyStyle.maxHeight || scroll.y; + innerBodyStyle.overflowY = bodyStyle.overflowY || 'scroll'; + } else { + bodyStyle.maxHeight = bodyStyle.maxHeight || scroll.y; + } + bodyStyle.overflowY = bodyStyle.overflowY || 'scroll'; + useFixedHeader = true; - this._longDateFormat[key] = formatUpper - .match(formattingTokens) - .map(function (tok) { - if ( - tok === 'MMMM' || - tok === 'MM' || - tok === 'DD' || - tok === 'dddd' - ) { - return tok.slice(1); - } - return tok; - }) - .join(''); + // Add negative margin bottom for scroll bar overflow bug + var scrollbarWidth = this.scrollbarWidth; + if (scrollbarWidth >= 0) { + (fixed ? bodyStyle : headStyle).paddingBottom = '0px'; + //显示表头滚动条 + if (headerScroll) { + if (fixed) { - return this._longDateFormat[key]; + if (this.domWidthDiff <= 0) { + headStyle.marginBottom = scrollbarWidth + 'px'; + bodyStyle.marginBottom = '-' + scrollbarWidth + 'px'; + } else { + innerBodyStyle.overflowX = 'auto'; + } + } else { + //内容少,不用显示滚动条 + if (this.domWidthDiff > 0) { + headStyle.overflowX = 'hidden'; + } + headStyle.marginBottom = '0px'; + } + } else { + if (fixed) { + if (this.domWidthDiff > 0) { + headStyle.overflow = 'hidden'; + innerBodyStyle.overflowX = 'auto'; //兼容expand场景、子表格含有固定列的场景 + } else { + bodyStyle.marginBottom = '-' + scrollbarWidth + 'px'; + } + } else { + // 没有数据时,表头滚动条隐藏问题 + if (data.length == 0 && this.domWidthDiff < 0) { + headStyle.marginBottom = '0px'; + } else { + headStyle.marginBottom = '-' + scrollbarWidth + 'px'; + } + } + } + } } - var defaultInvalidDate = 'Invalid date'; - - function invalidDate() { - return this._invalidDate; + if (data.length == 0 && hideHeaderScroll) { + //支持 NCC 需求:表格无数据时,去掉表头滚动条 (https://github.com/iuap-design/tinper-bee/issues/207) + headStyle.marginBottom = '-' + this.scrollbarWidth + 'px'; } - var defaultOrdinal = '%d', - defaultDayOfMonthOrdinalParse = /\d{1,2}/; - - function ordinal(number) { - return this._ordinal.replace('%d', number); - } + var renderTable = function renderTable() { + var hasHead = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; + var hasBody = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - var defaultRelativeTime = { - future: 'in %s', - past: '%s ago', - s: 'a few seconds', - ss: '%d seconds', - m: 'a minute', - mm: '%d minutes', - h: 'an hour', - hh: '%d hours', - d: 'a day', - dd: '%d days', - w: 'a week', - ww: '%d weeks', - M: 'a month', - MM: '%d months', - y: 'a year', - yy: '%d years', + var tableStyle = {}; + if (!fixed && scroll.x) { + // not set width, then use content fixed width + if (scroll.x === true) { + tableStyle.tableLayout = 'fixed'; + } else { + tableStyle.width = _this4.contentWidth - _this4.columnManager.getLeftColumnsWidth(_this4.contentWidth) - _this4.columnManager.getRightColumnsWidth(_this4.contentWidth); + } + } + // 自动出现滚动条 + if (!fixed && _this4.contentDomWidth < _this4.contentWidth) { + tableStyle.width = _this4.contentWidth - _this4.columnManager.getLeftColumnsWidth(_this4.contentWidth) - _this4.columnManager.getRightColumnsWidth(_this4.contentWidth); + } + var tableBody = hasBody ? getBodyWrapper(_react2['default'].createElement( + 'tbody', + { className: clsPrefix + '-tbody', onMouseLeave: _this4.onBodyMouseLeave }, + _this4.getRows(columns, fixed) + )) : null; + var _drag_class = _this4.props.dragborder ? "table-drag-bordered" : ""; + return _react2['default'].createElement( + 'table', + { className: ' ' + tableClassName + ' table-bordered ' + _drag_class + ' ', style: tableStyle }, + _this4.getColGroup(columns, fixed), + hasHead ? _this4.getHeader(columns, fixed, leftFixedWidth, rightFixedWidth) : null, + tableBody + ); }; - function relativeTime(number, withoutSuffix, string, isFuture) { - var output = this._relativeTime[string]; - return isFunction(output) - ? output(number, withoutSuffix, string, isFuture) - : output.replace(/%d/i, number); - } + var headTable = void 0; - function pastFuture(diff, output) { - var format = this._relativeTime[diff > 0 ? 'future' : 'past']; - return isFunction(format) ? format(output) : format.replace(/%s/i, output); + if (useFixedHeader) { + headTable = _react2['default'].createElement( + 'div', + { + className: clsPrefix + '-header', + ref: function ref(el) { + fixed ? _this4.fixedHeadTable = el : _this4.headTable = el; + }, + style: headStyle, + onMouseOver: this.detectScrollTarget, + onTouchStart: this.detectScrollTarget, + onScroll: this.handleBodyScroll + }, + renderTable(true, false) + ); } + var BodyTable = _react2['default'].createElement( + 'div', + { + className: clsPrefix + '-body', + style: bodyStyle, + ref: function ref(el) { + _this4.bodyTable = el; + }, + onMouseOver: this.detectScrollTarget, + onTouchStart: this.detectScrollTarget, + onScroll: this.handleBodyScroll, + onMouseLeave: this.onBodyMouseLeave + }, + this.renderDragHideTable(), + renderTable(!useFixedHeader) + ); - var aliases = {}; - - function addUnitAlias(unit, shorthand) { - var lowerCase = unit.toLowerCase(); - aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit; + if (fixed && columns.length) { + var refName = void 0; + if (columns[0].fixed === 'left' || columns[0].fixed === true) { + refName = 'fixedColumnsBodyLeft'; + } else if (columns[0].fixed === 'right') { + refName = 'fixedColumnsBodyRight'; + } + delete bodyStyle.overflowX; + delete bodyStyle.overflowY; + BodyTable = _react2['default'].createElement( + 'div', + { + className: clsPrefix + '-body-outer', + style: _extends({}, bodyStyle) + }, + _react2['default'].createElement( + 'div', + { + style: _extends({}, innerBodyStyle), + className: clsPrefix + '-body-inner', + ref: refName, + onMouseOver: this.detectScrollTarget, + onTouchStart: this.detectScrollTarget, + onScroll: this.handleBodyScroll + }, + renderTable(!useFixedHeader) + ) + ); } - - function normalizeUnits(units) { - return typeof units === 'string' - ? aliases[units] || aliases[units.toLowerCase()] - : undefined; + // const leftFixedWidth = this.columnManager.getLeftColumnsWidth(this.contentWidth); + // const rightFixedWidth = this.columnManager.getRightColumnsWidth(this.contentWidth); + var expandIconWidth = expandIconAsCell ? 32 : 0; + var parStyle = {}; + if (!fixed) { + parStyle = { 'marginLeft': leftFixedWidth + expandIconWidth, 'marginRight': rightFixedWidth }; } + return _react2['default'].createElement( + 'div', + { style: parStyle }, + headTable, + BodyTable + ); + }; - function normalizeObjectUnits(inputObject) { - var normalizedInput = {}, - normalizedProp, - prop; - - for (prop in inputObject) { - if (hasOwnProp(inputObject, prop)) { - normalizedProp = normalizeUnits(prop); - if (normalizedProp) { - normalizedInput[normalizedProp] = inputObject[prop]; - } - } - } - - return normalizedInput; - } + Table.prototype.getTitle = function getTitle() { + var _props6 = this.props, + title = _props6.title, + clsPrefix = _props6.clsPrefix; - var priorities = {}; + return title ? _react2['default'].createElement( + 'div', + { className: clsPrefix + '-title' }, + title(this.state.data) + ) : null; + }; - function addUnitPriority(unit, priority) { - priorities[unit] = priority; - } + Table.prototype.getFooter = function getFooter() { + var _props7 = this.props, + footer = _props7.footer, + clsPrefix = _props7.clsPrefix; - function getPrioritizedUnits(unitsObj) { - var units = [], - u; - for (u in unitsObj) { - if (hasOwnProp(unitsObj, u)) { - units.push({ unit: u, priority: priorities[u] }); - } - } - units.sort(function (a, b) { - return a.priority - b.priority; - }); - return units; - } + return footer ? _react2['default'].createElement( + 'div', + { className: clsPrefix + '-footer' }, + footer(this.state.data) + ) : null; + }; - function isLeapYear(year) { - return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0; - } + Table.prototype.getEmptyText = function getEmptyText() { + var _props8 = this.props, + defaultEmptyText = _props8.emptyText, + clsPrefix = _props8.clsPrefix, + data = _props8.data; - function absFloor(number) { - if (number < 0) { - // -0 -> 0 - return Math.ceil(number) || 0; - } else { - return Math.floor(number); - } - } + var locale = (0, _tool.getComponentLocale)(this.props, this.context, 'Table', function () { + return _i18n2['default']; + }); + var emptyText = defaultEmptyText !== undefined ? defaultEmptyText : function () { + return _react2['default'].createElement( + 'div', + null, + _react2['default'].createElement(_beeIcon2['default'], { type: 'uf-nodata', className: 'table-nodata' }), + _react2['default'].createElement( + 'span', + null, + locale["no_data"] + ) + ); + }; - function toInt(argumentForCoercion) { - var coercedNumber = +argumentForCoercion, - value = 0; + return !data.length ? _react2['default'].createElement( + 'div', + { className: clsPrefix + '-placeholder' }, + emptyText() + ) : null; + }; - if (coercedNumber !== 0 && isFinite(coercedNumber)) { - value = absFloor(coercedNumber); - } + Table.prototype.getHeaderRowStyle = function getHeaderRowStyle(columns, rows) { + var fixedColumnsHeadRowsHeight = this.state.fixedColumnsHeadRowsHeight; - return value; - } + var headerHeight = fixedColumnsHeadRowsHeight[0]; - function makeGetSet(unit, keepTime) { - return function (value) { - if (value != null) { - set$1(this, unit, value); - hooks.updateOffset(this, keepTime); - return this; - } else { - return get(this, unit); - } - }; + if (headerHeight && columns) { + if (headerHeight === 'auto') { + return { height: 'auto' }; + } + return { height: headerHeight / rows.length }; } + return null; + }; - function get(mom, unit) { - return mom.isValid() - ? mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]() - : NaN; + Table.prototype.getStyle = function getStyle(obj, attr) { + if (obj.currentStyle) { + return obj.currentStyle[attr]; + } else { + return document.defaultView.getComputedStyle(obj, null)[attr]; } + }; - function set$1(mom, unit, value) { - if (mom.isValid() && !isNaN(value)) { - if ( - unit === 'FullYear' && - isLeapYear(mom.year()) && - mom.month() === 1 && - mom.date() === 29 - ) { - value = toInt(value); - mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit]( - value, - mom.month(), - daysInMonth(value, mom.month()) - ); - } else { - mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value); - } - } - } + Table.prototype.syncFixedTableRowHeight = function syncFixedTableRowHeight() { + var _this5 = this; - // MOMENTS + //this.props.height、headerHeight分别为用户传入的行高和表头高度,如果有值,所有行的高度都是固定的,主要为了避免在千行数据中有固定列时获取行高度有问题 + var _props9 = this.props, + clsPrefix = _props9.clsPrefix, + height = _props9.height, + headerHeight = _props9.headerHeight, + columns = _props9.columns, + heightConsistent = _props9.heightConsistent, + bodyDisplayInRow = _props9.bodyDisplayInRow; - function stringGet(units) { - units = normalizeUnits(units); - if (isFunction(this[units])) { - return this[units](); + var headRows = this.headTable ? this.headTable.querySelectorAll('thead') : this.bodyTable.querySelectorAll('thead'); + var expandedRows = this.bodyTable.querySelectorAll('.' + clsPrefix + '-expanded-row') || []; + var bodyRows = this.bodyTable.querySelectorAll('.' + clsPrefix + '-row') || []; + var leftBodyRows = this.refs.fixedColumnsBodyLeft && this.refs.fixedColumnsBodyLeft.querySelectorAll('.' + clsPrefix + '-row') || []; + var rightBodyRows = this.refs.fixedColumnsBodyRight && this.refs.fixedColumnsBodyRight.querySelectorAll('.' + clsPrefix + '-row') || []; + var fixedColumnsHeadRowsHeight = [].map.call(headRows, function (row) { + var height = headerHeight; + if (headerHeight) { + height = ((0, _utils.getMaxColChildrenLength)(columns) + 1) * headerHeight; + } + return headerHeight ? height : row.getBoundingClientRect().height || 'auto'; + }); + var fixedColumnsBodyRowsHeight = [].map.call(bodyRows, function (row, index) { + var rsHeight = height; + if (bodyDisplayInRow && rsHeight) { + return rsHeight; + } else { + // 为了提高性能,默认获取主表的高度,但是有的场景中固定列的高度比主表的高度高,所以提供此属性,会统计所有列的高度取最大的,设置 + // 内容折行显示,并又设置了 height 的情况下,也要获取主表高度 + if (heightConsistent || !bodyDisplayInRow && rsHeight) { + var leftHeight = void 0, + rightHeight = void 0, + currentHeight = void 0, + maxHeight = void 0; + leftHeight = leftBodyRows[index] ? leftBodyRows[index].getBoundingClientRect().height : 0; + rightHeight = rightBodyRows[index] ? rightBodyRows[index].getBoundingClientRect().height : 0; + currentHeight = row.getBoundingClientRect().height; + maxHeight = Math.max(leftHeight, rightHeight, currentHeight); + return maxHeight || 'auto'; + } else { + return row.getBoundingClientRect().height || 'auto'; } - return this; + } + }); + var fixedColumnsExpandedRowsHeight = {}; + // expandedRows为NodeList Array.prototype.forEach ie 下报错 对象不支持 “forEach” 方法 + expandedRows.length > 0 && Array.prototype.forEach.call(expandedRows, function (row) { + var parentRowKey = row && row.previousSibling && row.previousSibling.getAttribute("data-row-key"), + height = row && row.getBoundingClientRect().height || 'auto'; + try { + //子表数据减少时,动态计算高度 + var td = row.querySelector('td'); + var tdPadding = _this5.getTdPadding(td); + var trueheight = row.querySelectorAll('.u-table')[0].getBoundingClientRect().height; + height = trueheight + tdPadding; + } catch (error) {} + fixedColumnsExpandedRowsHeight[parentRowKey] = height; + }); + if ((0, _shallowequal2['default'])(this.state.fixedColumnsHeadRowsHeight, fixedColumnsHeadRowsHeight) && (0, _shallowequal2['default'])(this.state.fixedColumnsBodyRowsHeight, fixedColumnsBodyRowsHeight) && (0, _shallowequal2['default'])(this.state.fixedColumnsExpandedRowsHeight, fixedColumnsExpandedRowsHeight)) { + return; } + this.setState({ + fixedColumnsHeadRowsHeight: fixedColumnsHeadRowsHeight, + fixedColumnsBodyRowsHeight: fixedColumnsBodyRowsHeight, + fixedColumnsExpandedRowsHeight: fixedColumnsExpandedRowsHeight + }); + }; - function stringSet(units, value) { - if (typeof units === 'object') { - units = normalizeObjectUnits(units); - var prioritized = getPrioritizedUnits(units), - i; - for (i = 0; i < prioritized.length; i++) { - this[prioritized[i].unit](units[prioritized[i].unit]); - } - } else { - units = normalizeUnits(units); - if (isFunction(this[units])) { - return this[units](value); - } - } - return this; + Table.prototype.resetScrollX = function resetScrollX() { + if (this.headTable) { + this.headTable.scrollLeft = 0; + } + if (this.bodyTable) { + this.bodyTable.scrollLeft = 0; } + }; - var match1 = /\d/, // 0 - 9 - match2 = /\d\d/, // 00 - 99 - match3 = /\d{3}/, // 000 - 999 - match4 = /\d{4}/, // 0000 - 9999 - match6 = /[+-]?\d{6}/, // -999999 - 999999 - match1to2 = /\d\d?/, // 0 - 99 - match3to4 = /\d\d\d\d?/, // 999 - 9999 - match5to6 = /\d\d\d\d\d\d?/, // 99999 - 999999 - match1to3 = /\d{1,3}/, // 0 - 999 - match1to4 = /\d{1,4}/, // 0 - 9999 - match1to6 = /[+-]?\d{1,6}/, // -999999 - 999999 - matchUnsigned = /\d+/, // 0 - inf - matchSigned = /[+-]?\d+/, // -inf - inf - matchOffset = /Z|[+-]\d\d:?\d\d/gi, // +00:00 -00:00 +0000 -0000 or Z - matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi, // +00 -00 +00:00 -00:00 +0000 -0000 or Z - matchTimestamp = /[+-]?\d+(\.\d{1,3})?/, // 123456789 123456789.123 - // any word (or two) characters or numbers including two/three word month in arabic. - // includes scottish gaelic two word and hyphenated months - matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, - regexes; + Table.prototype.findExpandedRow = function findExpandedRow(record, index) { + var _this6 = this; - regexes = {}; + var rows = this.getExpandedRows().filter(function (i) { + return i === _this6.getRowKey(record, index); + }); + return rows[0]; + }; - function addRegexToken(token, regex, strictRegex) { - regexes[token] = isFunction(regex) - ? regex - : function (isStrict, localeData) { - return isStrict && strictRegex ? strictRegex : regex; - }; - } + Table.prototype.isRowExpanded = function isRowExpanded(record, index) { + return typeof this.findExpandedRow(record, index) !== 'undefined'; + }; - function getParseRegexForToken(token, config) { - if (!hasOwnProp(regexes, token)) { - return new RegExp(unescapeFormat(token)); - } + Table.prototype.onBodyMouseLeave = function onBodyMouseLeave(e) { + this.hideHoverDom(e); + }; - return regexes[token](config._strict, config._locale); + Table.prototype.detectScrollTarget = function detectScrollTarget(e) { + if (this.scrollTarget !== e.currentTarget) { + this.scrollTarget = e.currentTarget; } + }; - // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript - function unescapeFormat(s) { - return regexEscape( - s - .replace('\\', '') - .replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function ( - matched, - p1, - p2, - p3, - p4 - ) { - return p1 || p2 || p3 || p4; - }) - ); + Table.prototype.hideHoverDom = function hideHoverDom(e) { + if (this.hoverDom) { + this.hoverDom.style.display = 'none'; } + }; - function regexEscape(s) { - return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'); + Table.prototype.handleBodyScroll = function handleBodyScroll(e) { + var headTable = this.headTable; + var _props10 = this.props, + _props10$scroll = _props10.scroll, + scroll = _props10$scroll === undefined ? {} : _props10$scroll, + clsPrefix = _props10.clsPrefix, + handleScrollY = _props10.handleScrollY, + handleScrollX = _props10.handleScrollX, + onBodyScroll = _props10.onBodyScroll; + var _refs = this.refs, + fixedColumnsBodyLeft = _refs.fixedColumnsBodyLeft, + fixedColumnsBodyRight = _refs.fixedColumnsBodyRight; + // Prevent scrollTop setter trigger onScroll event + // http://stackoverflow.com/q/1386696 + + if (e.currentTarget !== e.target) { + return; + } + if (e.target.scrollLeft !== this.lastScrollLeft) { + var position = ''; + if (e.target === this.bodyTable && headTable) { + headTable.scrollLeft = e.target.scrollLeft; + } else if (e.target === headTable && this.bodyTable) { + this.bodyTable.scrollLeft = e.target.scrollLeft; + } + if (e.target.scrollLeft === 0) { + position = 'left'; + } else if (e.target.scrollLeft + 1 >= e.target.children[0].getBoundingClientRect().width - e.target.getBoundingClientRect().width) { + position = 'right'; + } else if (this.state.scrollPosition !== 'middle') { + position = 'middle'; + } + if (position) { + (0, _componentClasses2['default'])(this.contentTable).remove(new RegExp('^' + clsPrefix + '-scroll-position-.+$')).add(clsPrefix + '-scroll-position-' + position); + } + if (handleScrollX) { + (0, _utils.debounce)(handleScrollX(e.target.scrollLeft, this.treeType), 300); + } + } + // console.log('lastScrollTop--'+this.lastScrollTop+'--eventScrollTop--'+ e.target.scrollTop); + if (scroll.y && this.lastScrollTop != e.target.scrollTop && e.target !== headTable) { + if (fixedColumnsBodyLeft && e.target !== fixedColumnsBodyLeft) { + fixedColumnsBodyLeft.scrollTop = e.target.scrollTop; + } + if (fixedColumnsBodyRight && e.target !== fixedColumnsBodyRight) { + fixedColumnsBodyRight.scrollTop = e.target.scrollTop; + } + if (this.bodyTable && e.target !== this.bodyTable) { + this.bodyTable.scrollTop = e.target.scrollTop; + } + if (this.hoverDom) { + this.hoverDom.style.display = 'none'; + } + this.lastScrollTop = e.target.scrollTop; + if (handleScrollY) { + (0, _utils.debounce)(handleScrollY(this.lastScrollTop, this.treeType, onBodyScroll), 300); + } else { + //滚动回调 + onBodyScroll(this.lastScrollTop); + } } - var tokens = {}; + // Remember last scrollLeft for scroll direction detecting. + this.lastScrollLeft = e.target.scrollLeft; + }; - function addParseToken(token, callback) { - var i, - func = callback; - if (typeof token === 'string') { - token = [token]; - } - if (isNumber(callback)) { - func = function (input, array) { - array[callback] = toInt(input); - }; - } - for (i = 0; i < token.length; i++) { - tokens[token[i]] = func; - } - } + Table.prototype.handleRowHover = function handleRowHover(isHover, key, event, currentIndex, propsRecord) { + //增加新的API,设置是否同步Hover状态,提高性能,避免无关的渲染 + var _props11 = this.props, + syncHover = _props11.syncHover, + onRowHover = _props11.onRowHover, + data = _props11.data; + //fix:树形表,onRowHover返回参数异常 - function addWeekParseToken(token, callback) { - addParseToken(token, function (input, array, config, token) { - config._w = config._w || {}; - callback(input, config._w, config, token); - }); - } + var isTreeType = this.isTreeType; - function addTimeToArrayFromToken(token, input, config) { - if (input != null && hasOwnProp(tokens, token)) { - tokens[token](input, config._a, config, token); + var record = isTreeType ? propsRecord : data[currentIndex]; + // 固定列、或者含有hoverdom时情况下同步hover状态 + if (this.columnManager.isAnyColumnsFixed() && syncHover) { + this.hoverKey = key; + this.store.setState({ + currentHoverKey: isHover ? key : null + }); + } + if (this.hoverDom) { + if (isHover) { + this.currentHoverKey = key; + var td = (0, _utils.closest)(event.target, 'td'); + if (td) { + var scrollTop = this.lastScrollTop ? this.lastScrollTop : 0; + var top = td.offsetTop - scrollTop; + if (this.headTable) { + top = top + this.headTable.clientHeight; + } + this.hoverDom.style.top = top + 'px'; + this.hoverDom.style.height = td.offsetHeight + 'px'; + this.hoverDom.style.lineHeight = td.offsetHeight + 'px'; + this.hoverDom.style.display = 'block'; } + this.setState({ + currentHoverIndex: currentIndex, + currentHoverRecord: record + }); + } } - var YEAR = 0, - MONTH = 1, - DATE = 2, - HOUR = 3, - MINUTE = 4, - SECOND = 5, - MILLISECOND = 6, - WEEK = 7, - WEEKDAY = 8; + onRowHover && onRowHover(currentIndex, record); + }; - function mod(n, x) { - return ((n % x) + x) % x; - } + Table.prototype.render = function render() { + var _this7 = this; - var indexOf; + var _state3 = this.state, + currentHoverRecord = _state3.currentHoverRecord, + currentHoverIndex = _state3.currentHoverIndex; - if (Array.prototype.indexOf) { - indexOf = Array.prototype.indexOf; - } else { - indexOf = function (o) { - // I know - var i; - for (i = 0; i < this.length; ++i) { - if (this[i] === o) { - return i; - } - } - return -1; - }; + var props = this.props; + var clsPrefix = props.clsPrefix; + var hasFixedLeft = this.columnManager.isAnyColumnsLeftFixed(); + var className = props.clsPrefix; + if (props.className) { + className += ' ' + props.className; } - - function daysInMonth(year, month) { - if (isNaN(year) || isNaN(month)) { - return NaN; - } - var modMonth = mod(month, 12); - year += (month - modMonth) / 12; - return modMonth === 1 - ? isLeapYear(year) - ? 29 - : 28 - : 31 - ((modMonth % 7) % 2); + if (props.useFixedHeader || props.scroll && props.scroll.y) { + className += ' ' + clsPrefix + '-fixed-header'; + } + if (!props.showHeader) { + className += ' ' + clsPrefix + '-hide-header'; + } + if (props.bordered) { + className += ' ' + clsPrefix + '-bordered'; + } + className += ' ' + clsPrefix + '-scroll-position-' + this.state.scrollPosition; + //如果传入height说明是固定高度 + //内容过多折行显示时,height 属性会失效,为了避免产生错行 + if (props.bodyDisplayInRow && props.height) { + className += ' fixed-height'; + } + if (props.bodyDisplayInRow) { + className += ' body-dispaly-in-row'; + } + if (props.headerDisplayInRow) { + className += ' header-dispaly-in-row'; + } + var isTableScroll = this.columnManager.isAnyColumnsFixed() || props.scroll.x || props.scroll.y; + var loading = props.loading; + if (typeof loading === 'boolean') { + loading = { + show: loading + }; + } + if (props.size) { + className += ' ' + clsPrefix + '-' + props.size; + } + if (hasFixedLeft) { + className += ' has-fixed-left'; } - // FORMATTING + return _react2['default'].createElement( + 'div', + { className: className, style: props.style, ref: function ref(el) { + return _this7.contentTable = el; + }, + tabIndex: props.focusable && (props.tabIndex ? props.tabIndex : '0') }, + this.getTitle(), + _react2['default'].createElement( + 'div', + { className: clsPrefix + '-content' }, + _react2['default'].createElement( + 'div', + { className: isTableScroll ? clsPrefix + '-scroll' : '' }, + this.getTable({ columns: this.columnManager.groupedColumns() }), + this.getEmptyText(), + this.getFooter() + ), + hasFixedLeft && _react2['default'].createElement( + 'div', + { className: clsPrefix + '-fixed-left' }, + this.getLeftFixedTable() + ), + this.columnManager.isAnyColumnsRightFixed() && _react2['default'].createElement( + 'div', + { className: clsPrefix + '-fixed-right' }, + this.getRightFixedTable() + ) + ), + _react2['default'].createElement(_beeLoading2['default'], _extends({ + container: this + }, loading)), + props.hoverContent && _react2['default'].createElement( + 'div', + { className: 'u-row-hover', + onMouseEnter: this.onRowHoverMouseEnter, onMouseLeave: this.onRowHoverMouseLeave, ref: function ref(el) { + return _this7.hoverDom = el; + } }, + props.hoverContent(currentHoverRecord, currentHoverIndex) + ) + ); + }; - addFormatToken('M', ['MM', 2], 'Mo', function () { - return this.month() + 1; - }); + return Table; + }(_react.Component); - addFormatToken('MMM', 0, 0, function (format) { - return this.localeData().monthsShort(this, format); - }); + ; - addFormatToken('MMMM', 0, 0, function (format) { - return this.localeData().months(this, format); - }); + Table.propTypes = propTypes; + Table.defaultProps = defaultProps; + Table.contextTypes = { + beeLocale: _propTypes2['default'].object + }; - // ALIASES + exports['default'] = Table; + module.exports = exports['default']; + +/***/ }), +/* 294 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - addUnitAlias('month', 'M'); + Object.defineProperty(exports, "__esModule", { + value: true + }); - // PRIORITY + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - addUnitPriority('month', 8); + var _react = __webpack_require__(1); - // PARSING + var _react2 = _interopRequireDefault(_react); - addRegexToken('M', match1to2); - addRegexToken('MM', match1to2, match2); - addRegexToken('MMM', function (isStrict, locale) { - return locale.monthsShortRegex(isStrict); - }); - addRegexToken('MMMM', function (isStrict, locale) { - return locale.monthsRegex(isStrict); - }); + var _propTypes = __webpack_require__(6); - addParseToken(['M', 'MM'], function (input, array) { - array[MONTH] = toInt(input) - 1; - }); + var _propTypes2 = _interopRequireDefault(_propTypes); - addParseToken(['MMM', 'MMMM'], function (input, array, config, token) { - var month = config._locale.monthsParse(input, token, config._strict); - // if we didn't find a month name, mark the date as invalid. - if (month != null) { - array[MONTH] = month; - } else { - getParsingFlags(config).invalidMonth = input; - } - }); + var _utils = __webpack_require__(295); - // LOCALES + var _TableCell = __webpack_require__(309); - var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split( - '_' - ), - defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split( - '_' - ), - MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, - defaultMonthsShortRegex = matchWord, - defaultMonthsRegex = matchWord; + var _TableCell2 = _interopRequireDefault(_TableCell); - function localeMonths(m, format) { - if (!m) { - return isArray(this._months) - ? this._months - : this._months['standalone']; - } - return isArray(this._months) - ? this._months[m.month()] - : this._months[ - (this._months.isFormat || MONTHS_IN_FORMAT).test(format) - ? 'format' - : 'standalone' - ][m.month()]; - } + var _ExpandIcon = __webpack_require__(411); - function localeMonthsShort(m, format) { - if (!m) { - return isArray(this._monthsShort) - ? this._monthsShort - : this._monthsShort['standalone']; - } - return isArray(this._monthsShort) - ? this._monthsShort[m.month()] - : this._monthsShort[ - MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone' - ][m.month()]; - } + var _ExpandIcon2 = _interopRequireDefault(_ExpandIcon); - function handleStrictParse(monthName, format, strict) { - var i, - ii, - mom, - llc = monthName.toLocaleLowerCase(); - if (!this._monthsParse) { - // this is not used - this._monthsParse = []; - this._longMonthsParse = []; - this._shortMonthsParse = []; - for (i = 0; i < 12; ++i) { - mom = createUTC([2000, i]); - this._shortMonthsParse[i] = this.monthsShort( - mom, - '' - ).toLocaleLowerCase(); - this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase(); - } - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - if (strict) { - if (format === 'MMM') { - ii = indexOf.call(this._shortMonthsParse, llc); - return ii !== -1 ? ii : null; - } else { - ii = indexOf.call(this._longMonthsParse, llc); - return ii !== -1 ? ii : null; - } - } else { - if (format === 'MMM') { - ii = indexOf.call(this._shortMonthsParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._longMonthsParse, llc); - return ii !== -1 ? ii : null; - } else { - ii = indexOf.call(this._longMonthsParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._shortMonthsParse, llc); - return ii !== -1 ? ii : null; - } - } - } + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - function localeMonthsParse(monthName, format, strict) { - var i, mom, regex; + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - if (this._monthsParseExact) { - return handleStrictParse.call(this, monthName, format, strict); - } + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - if (!this._monthsParse) { - this._monthsParse = []; - this._longMonthsParse = []; - this._shortMonthsParse = []; - } + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - // TODO: add sorting - // Sorting makes sure if one month (or abbr) is a prefix of another - // see sorting in computeMonthsParse - for (i = 0; i < 12; i++) { - // make the regex if we don't have it already - mom = createUTC([2000, i]); - if (strict && !this._longMonthsParse[i]) { - this._longMonthsParse[i] = new RegExp( - '^' + this.months(mom, '').replace('.', '') + '$', - 'i' - ); - this._shortMonthsParse[i] = new RegExp( - '^' + this.monthsShort(mom, '').replace('.', '') + '$', - 'i' - ); - } - if (!strict && !this._monthsParse[i]) { - regex = - '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, ''); - this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i'); - } - // test the regex - if ( - strict && - format === 'MMMM' && - this._longMonthsParse[i].test(monthName) - ) { - return i; - } else if ( - strict && - format === 'MMM' && - this._shortMonthsParse[i].test(monthName) - ) { - return i; - } else if (!strict && this._monthsParse[i].test(monthName)) { - return i; - } - } - } + var propTypes = { + onDestroy: _propTypes2['default'].func, + onRowClick: _propTypes2['default'].func, + onRowDoubleClick: _propTypes2['default'].func, + record: _propTypes2['default'].object, + clsPrefix: _propTypes2['default'].string, + expandIconColumnIndex: _propTypes2['default'].number, + onHover: _propTypes2['default'].func, + columns: _propTypes2['default'].array, + height: _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].number]), + visible: _propTypes2['default'].bool, + index: _propTypes2['default'].number, + hoverKey: _propTypes2['default'].any, + expanded: _propTypes2['default'].bool, + expandable: _propTypes2['default'].any, + onExpand: _propTypes2['default'].func, + needIndentSpaced: _propTypes2['default'].bool, + className: _propTypes2['default'].string, + indent: _propTypes2['default'].number, + indentSize: _propTypes2['default'].number, + expandIconAsCell: _propTypes2['default'].bool, + expandRowByClick: _propTypes2['default'].bool, + store: _propTypes2['default'].object.isRequired, + rowDraggAble: _propTypes2['default'].bool, + onDragRow: _propTypes2['default'].func, + onDragRowStart: _propTypes2['default'].func, + syncRowHeight: _propTypes2['default'].bool + }; - // MOMENTS + var defaultProps = { + onRowClick: function onRowClick() {}, - function setMonth(mom, value) { - var dayOfMonth; + // onRowDoubleClick() {}, + onDestroy: function onDestroy() {}, - if (!mom.isValid()) { - // No op - return mom; - } + expandIconColumnIndex: 0, + expandRowByClick: false, + onHover: function onHover() {}, - if (typeof value === 'string') { - if (/^\d+$/.test(value)) { - value = toInt(value); - } else { - value = mom.localeData().monthsParse(value); - // TODO: Another silent failure? - if (!isNumber(value)) { - return mom; - } - } - } + className: '', + setRowParentIndex: function setRowParentIndex() {}, + rowDraggAble: false, + // onDragRow:()=>{} + syncRowHeight: false + }; - dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value)); - mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth); - return mom; - } + var TableRow = function (_Component) { + _inherits(TableRow, _Component); - function getSetMonth(value) { - if (value != null) { - setMonth(this, value); - hooks.updateOffset(this, true); - return this; - } else { - return get(this, 'Month'); - } - } + function TableRow(props) { + _classCallCheck(this, TableRow); - function getDaysInMonth() { - return daysInMonth(this.year(), this.month()); - } + var _this = _possibleConstructorReturn(this, _Component.call(this, props)); - function monthsShortRegex(isStrict) { - if (this._monthsParseExact) { - if (!hasOwnProp(this, '_monthsRegex')) { - computeMonthsParse.call(this); - } - if (isStrict) { - return this._monthsShortStrictRegex; - } else { - return this._monthsShortRegex; - } - } else { - if (!hasOwnProp(this, '_monthsShortRegex')) { - this._monthsShortRegex = defaultMonthsShortRegex; - } - return this._monthsShortStrictRegex && isStrict - ? this._monthsShortStrictRegex - : this._monthsShortRegex; - } - } + _this.initEvent = function () { + var events = [{ key: 'touchstart', fun: _this.onTouchStart }, //手指触摸到一个 DOM 元素时触发 + { key: 'touchmove', fun: _this.onTouchMove }, //手指在一个 DOM 元素上滑动时触发 + { key: 'touchend', fun: _this.onTouchEnd }, //手指从一个 DOM 元素上移开时触发 - function monthsRegex(isStrict) { - if (this._monthsParseExact) { - if (!hasOwnProp(this, '_monthsRegex')) { - computeMonthsParse.call(this); - } - if (isStrict) { - return this._monthsStrictRegex; - } else { - return this._monthsRegex; - } - } else { - if (!hasOwnProp(this, '_monthsRegex')) { - this._monthsRegex = defaultMonthsRegex; - } - return this._monthsStrictRegex && isStrict - ? this._monthsStrictRegex - : this._monthsRegex; - } - } + { key: 'dragstart', fun: _this.onDragStart }, //用户开始拖动元素时触发 + { key: 'dragover', fun: _this.onDragOver }, //当某被拖动的对象在另一对象容器范围内拖动时触发此事件 + { key: 'drop', fun: _this.onDrop }, //在一个拖动过程中,释放鼠标键时触发此事件 + { key: 'dragenter', fun: _this.onDragEnter }, { key: 'dragleave', fun: _this.onDragLeave }]; + _this.eventListen(events, '', _this.element); + }; - function computeMonthsParse() { - function cmpLenRev(a, b) { - return b.length - a.length; - } + _this.removeDragAbleEvent = function () { + var events = [{ key: 'touchstart', fun: _this.onTouchStart }, //手指触摸到一个 DOM 元素时触发 + { key: 'touchmove', fun: _this.onTouchMove }, //手指在一个 DOM 元素上滑动时触发 + { key: 'touchend', fun: _this.onTouchEnd }, //手指从一个 DOM 元素上移开时触发 - var shortPieces = [], - longPieces = [], - mixedPieces = [], - i, - mom; - for (i = 0; i < 12; i++) { - // make the regex if we don't have it already - mom = createUTC([2000, i]); - shortPieces.push(this.monthsShort(mom, '')); - longPieces.push(this.months(mom, '')); - mixedPieces.push(this.months(mom, '')); - mixedPieces.push(this.monthsShort(mom, '')); - } - // Sorting makes sure if one month (or abbr) is a prefix of another it - // will match the longer piece. - shortPieces.sort(cmpLenRev); - longPieces.sort(cmpLenRev); - mixedPieces.sort(cmpLenRev); - for (i = 0; i < 12; i++) { - shortPieces[i] = regexEscape(shortPieces[i]); - longPieces[i] = regexEscape(longPieces[i]); - } - for (i = 0; i < 24; i++) { - mixedPieces[i] = regexEscape(mixedPieces[i]); - } + { key: 'dragstart', fun: _this.onDragStart }, //用户开始拖动元素时触发 + { key: 'dragover', fun: _this.onDragOver }, //当某被拖动的对象在另一对象容器范围内拖动时触发此事件 + { key: 'drop', fun: _this.onDrop }, //在一个拖动过程中,释放鼠标键时触发此事件 + { key: 'dragenter', fun: _this.onDragEnter }, { key: 'dragleave', fun: _this.onDragLeave }]; + _this.eventListen(events, 'remove', _this.element); + }; - this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i'); - this._monthsShortRegex = this._monthsRegex; - this._monthsStrictRegex = new RegExp( - '^(' + longPieces.join('|') + ')', - 'i' - ); - this._monthsShortStrictRegex = new RegExp( - '^(' + shortPieces.join('|') + ')', - 'i' - ); - } + _this.onDragStart = function (e) { + var onDragRowStart = _this.props.onDragRowStart; - // FORMATTING + if (!_this.props.rowDraggAble || _this.notRowDrag) return; + var event = _utils.Event.getEvent(e), + target = _utils.Event.getTarget(event); + if (target.tagName === 'TD') { + target = target.parentNode; + } + _this.currentIndex = target.getAttribute("data-row-key"); + _this._dragCurrent = target; + event.dataTransfer.effectAllowed = "move"; + event.dataTransfer.setData("Text", _this.currentIndex); + onDragRowStart && onDragRowStart(_this.currentIndex); + }; - addFormatToken('Y', 0, 0, function () { - var y = this.year(); - return y <= 9999 ? zeroFill(y, 4) : '+' + y; - }); + _this.onDragOver = function (e) { + var event = _utils.Event.getEvent(e); + event.preventDefault(); + }; - addFormatToken(0, ['YY', 2], 0, function () { - return this.year() % 100; - }); + _this.onDrop = function (e) { + var onDragRow = _this.props.onDragRow; - addFormatToken(0, ['YYYY', 4], 0, 'year'); - addFormatToken(0, ['YYYYY', 5], 0, 'year'); - addFormatToken(0, ['YYYYYY', 6, true], 0, 'year'); + var event = _utils.Event.getEvent(e), + _target = _utils.Event.getTarget(event), + target = _target.parentNode; - // ALIASES + var currentKey = event.dataTransfer.getData("text"); + var targetKey = target.getAttribute("data-row-key"); - addUnitAlias('year', 'y'); + if (!targetKey || targetKey === currentKey) return; + if (target.nodeName.toUpperCase() === "TR") { + _this.synchronizeTableTr(currentKey, null); + _this.synchronizeTableTr(targetKey, null); + } + onDragRow && onDragRow(currentKey, targetKey); + }; - // PRIORITIES + _this.getTouchDom = function (event) { + var currentLocation = event.changedTouches[0]; + var realTarget = document.elementFromPoint(currentLocation.clientX, currentLocation.clientY); + return realTarget; + }; - addUnitPriority('year', 1); + _this.onTouchStart = function (e) { + e.stopPropagation(); + var onDragRowStart = _this.props.onDragRowStart; - // PARSING + var event = _utils.Event.getEvent(e), + _target = _utils.Event.getTarget(event), + target = _target.parentNode; - addRegexToken('Y', matchSigned); - addRegexToken('YY', match1to2, match2); - addRegexToken('YYYY', match1to4, match4); - addRegexToken('YYYYY', match1to6, match6); - addRegexToken('YYYYYY', match1to6, match6); + if (target.tagName === 'TR') { - addParseToken(['YYYYY', 'YYYYYY'], YEAR); - addParseToken('YYYY', function (input, array) { - array[YEAR] = - input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input); - }); - addParseToken('YY', function (input, array) { - array[YEAR] = hooks.parseTwoDigitYear(input); - }); - addParseToken('Y', function (input, array) { - array[YEAR] = parseInt(input, 10); - }); + _this.currentIndex = target.getAttribute("data-row-key"); - // HELPERS + onDragRowStart && onDragRowStart(_this.currentIndex); + } else { - function daysInYear(year) { - return isLeapYear(year) ? 366 : 365; - } + _this.canBeTouch = false; + } + }; - // HOOKS + _this.onTouchMove = function (e) { - hooks.parseTwoDigitYear = function (input) { - return toInt(input) + (toInt(input) > 68 ? 1900 : 2000); + if (!_this.canBeTouch) return; + e.stopPropagation(); + var event = _utils.Event.getEvent(e); + event.preventDefault(); + var touchTarget = _this.getTouchDom(event), + target = touchTarget.parentNode, + targetKey = target.getAttribute("data-row-key"); + if (!targetKey || targetKey === _this.currentIndex) return; + if (target.nodeName.toUpperCase() === "TR") { + if (_this.cacheCurrentIndex !== targetKey) { + //模拟 touchenter toucheleave 事件 + _this.cacheCurrentIndex && _this.synchronizeTableTr(_this.cacheCurrentIndex, null); //去掉虚线 + _this.synchronizeTableTr(targetKey, true); //添加虚线 + } + } }; - // MOMENTS + _this.onTouchEnd = function (e) { - var getSetYear = makeGetSet('FullYear', true); + if (!_this.canBeTouch) { + _this.canBeTouch = true; + return; + } - function getIsLeapYear() { - return isLeapYear(this.year()); - } + e.stopPropagation(); + var onDragRow = _this.props.onDragRow; - function createDate(y, m, d, h, M, s, ms) { - // can't just apply() to create a date: - // https://stackoverflow.com/q/181348 - var date; - // the date constructor remaps years 0-99 to 1900-1999 - if (y < 100 && y >= 0) { - // preserve leap years using a full 400 year cycle, then reset - date = new Date(y + 400, m, d, h, M, s, ms); - if (isFinite(date.getFullYear())) { - date.setFullYear(y); - } - } else { - date = new Date(y, m, d, h, M, s, ms); - } + var event = _utils.Event.getEvent(e), + currentKey = _this.currentIndex, + //拖拽行的key + touchTarget = _this.getTouchDom(event), + //当前触摸的DOM节点 + target = touchTarget.parentNode, + //目标位置的行 + targetKey = target.getAttribute("data-row-key"); //目标位置的行key + if (!targetKey || targetKey === currentKey) return; + if (target.nodeName.toUpperCase() === "TR") { + _this.synchronizeTableTr(currentKey, null); + _this.synchronizeTableTr(targetKey, null); + } - return date; - } + onDragRow && onDragRow(currentKey, targetKey); + }; - function createUTCDate(y) { - var date, args; - // the Date.UTC function remaps years 0-99 to 1900-1999 - if (y < 100 && y >= 0) { - args = Array.prototype.slice.call(arguments); - // preserve leap years using a full 400 year cycle, then reset - args[0] = y + 400; - date = new Date(Date.UTC.apply(null, args)); - if (isFinite(date.getUTCFullYear())) { - date.setUTCFullYear(y); - } - } else { - date = new Date(Date.UTC.apply(null, arguments)); - } + _this.synchronizeTableTrShadow = function () { + var _this$props = _this.props, + contentTable = _this$props.contentTable, + index = _this$props.index; - return date; - } - // start-of-first-week - start-of-year - function firstWeekOffset(year, dow, doy) { - var // first-week day -- which january is always in the first week (4 for iso, 1 for other) - fwd = 7 + dow - doy, - // first-week day local weekday -- which local weekday is fwd - fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7; + var cont = contentTable.querySelector('.u-table-scroll table tbody').getElementsByTagName("tr")[index], + trs = cont.getBoundingClientRect(), + fixed_left_trs = contentTable.querySelector('.u-table-fixed-left table tbody'), + fixed_right_trs = contentTable.querySelector('.u-table-fixed-right table tbody'); + fixed_left_trs = fixed_left_trs && fixed_left_trs.getElementsByTagName("tr")[index].getBoundingClientRect(); + fixed_right_trs = fixed_right_trs && fixed_right_trs.getElementsByTagName("tr")[index].getBoundingClientRect(); - return -fwdlw + fwd - 1; - } + var div = document.createElement("div"); + var style = "wdith:" + (trs.width + (fixed_left_trs ? fixed_left_trs.width : 0) + (fixed_right_trs ? fixed_right_trs.width : 0)) + "px"; + style += ";height:" + trs.height + "px"; + style += ";classname:" + cont.className; + div.setAttribute("style", style); + return div; + }; - // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday - function dayOfYearFromWeeks(year, week, weekday, dow, doy) { - var localWeekday = (7 + weekday - dow) % 7, - weekOffset = firstWeekOffset(year, dow, doy), - dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset, - resYear, - resDayOfYear; + _this.synchronizeTableTr = function (currentIndex, type) { + if (type) { + //同步 this.cacheCurrentIndex + _this.cacheCurrentIndex = currentIndex; + } + var contentTable = _this.props.contentTable; - if (dayOfYear <= 0) { - resYear = year - 1; - resDayOfYear = daysInYear(resYear) + dayOfYear; - } else if (dayOfYear > daysInYear(year)) { - resYear = year + 1; - resDayOfYear = dayOfYear - daysInYear(year); - } else { - resYear = year; - resDayOfYear = dayOfYear; - } + var _table_trs = contentTable.querySelector('.u-table-scroll table tbody'), + _table_fixed_left_trs = contentTable.querySelector('.u-table-fixed-left table tbody'), + _table_fixed_right_trs = contentTable.querySelector('.u-table-fixed-right table tbody'); - return { - year: resYear, - dayOfYear: resDayOfYear, - }; - } + _table_trs = _table_trs ? _table_trs : contentTable.querySelector('.u-table table tbody'); - function weekOfYear(mom, dow, doy) { - var weekOffset = firstWeekOffset(mom.year(), dow, doy), - week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1, - resWeek, - resYear; + _this.synchronizeTrStyle(_table_trs, currentIndex, type); + if (_table_fixed_left_trs) { + _this.synchronizeTrStyle(_table_fixed_left_trs, currentIndex, type); + } + if (_table_fixed_right_trs) { + _this.synchronizeTrStyle(_table_fixed_right_trs, currentIndex, type); + } + }; - if (week < 1) { - resYear = mom.year() - 1; - resWeek = week + weeksInYear(resYear, dow, doy); - } else if (week > weeksInYear(mom.year(), dow, doy)) { - resWeek = week - weeksInYear(mom.year(), dow, doy); - resYear = mom.year() + 1; - } else { - resYear = mom.year(); - resWeek = week; + _this.synchronizeTrStyle = function (_elementBody, id, type) { + var contentTable = _this.props.contentTable, + trs = _elementBody.getElementsByTagName("tr"), + currentObj = void 0; + + for (var index = 0; index < trs.length; index++) { + var element = trs[index]; + if (element.getAttribute("data-row-key") == id) { + currentObj = element; } + } + if (type) { + currentObj && currentObj.setAttribute("style", "border-bottom:2px solid #02B1FD"); + } else { + currentObj && currentObj.setAttribute("style", ""); + } + }; - return { - week: resWeek, - year: resYear, - }; - } + _this.onDragEnter = function (e) { + var event = _utils.Event.getEvent(e), + _target = _utils.Event.getTarget(event), + target = _target.parentNode; + var currentIndex = target.getAttribute("data-row-key"); + if (!currentIndex || currentIndex === _this.currentIndex) return; + if (target.nodeName.toUpperCase() === "TR") { + _this.synchronizeTableTr(currentIndex, true); + } + }; - function weeksInYear(year, dow, doy) { - var weekOffset = firstWeekOffset(year, dow, doy), - weekOffsetNext = firstWeekOffset(year + 1, dow, doy); - return (daysInYear(year) - weekOffset + weekOffsetNext) / 7; - } + _this.onDragLeave = function (e) { + var event = _utils.Event.getEvent(e), + _target = _utils.Event.getTarget(event), + target = _target.parentNode; + var currentIndex = target.getAttribute("data-row-key"); + if (!currentIndex || currentIndex === _this.currentIndex) return; + if (target.nodeName.toUpperCase() === "TR") { + _this.synchronizeTableTr(currentIndex, null); + } + }; - // FORMATTING + _this.stopRowDrag = function (isStop) { + var rowDraggAble = _this.props.rowDraggAble; + var notRowDrag = _this.state.notRowDrag; - addFormatToken('w', ['ww', 2], 'wo', 'week'); - addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek'); + if (rowDraggAble && isStop !== notRowDrag) { + _this.setState({ + notRowDrag: isStop + }); + } + }; - // ALIASES + _this.set = function (fn) { + _this.clear(); + _this._timeout = window.setTimeout(fn, 300); + }; - addUnitAlias('week', 'w'); - addUnitAlias('isoWeek', 'W'); + _this.clear = function (event) { + if (_this._timeout) { + window.clearTimeout(_this._timeout); + } + }; - // PRIORITIES + _this.bindElement = function (el) { + _this.element = el; + }; - addUnitPriority('week', 5); - addUnitPriority('isoWeek', 5); + _this._timeout = null; + _this.state = { + hovered: false + }; + _this.onRowClick = _this.onRowClick.bind(_this); + _this.onRowDoubleClick = _this.onRowDoubleClick.bind(_this); + _this.onMouseEnter = _this.onMouseEnter.bind(_this); + _this.onMouseLeave = _this.onMouseLeave.bind(_this); + _this.expandHeight = 0; + _this.event = false; + _this.cacheCurrentIndex = null; + _this.canBeTouch = true; //受否允许拖动该行 + return _this; + } - // PARSING + TableRow.prototype.componentDidMount = function componentDidMount() { + var _this2 = this; - addRegexToken('w', match1to2); - addRegexToken('ww', match1to2, match2); - addRegexToken('W', match1to2); - addRegexToken('WW', match1to2, match2); + var _props = this.props, + store = _props.store, + hoverKey = _props.hoverKey, + treeType = _props.treeType, + rowDraggAble = _props.rowDraggAble; - addWeekParseToken(['w', 'ww', 'W', 'WW'], function ( - input, - week, - config, - token - ) { - week[token.substr(0, 1)] = toInt(input); + this.unsubscribe = store.subscribe(function () { + if (store.getState().currentHoverKey === hoverKey) { + _this2.setState({ hovered: true }); + } else if (_this2.state.hovered === true) { + _this2.setState({ hovered: false }); + } }); - // HELPERS - - // LOCALES - - function localeWeek(mom) { - return weekOfYear(mom, this._week.dow, this._week.doy).week; + this.setRowHeight(); + if (treeType) { + this.setRowParentIndex(); } + }; - var defaultLocaleWeek = { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }; - - function localeFirstDayOfWeek() { - return this._week.dow; - } + /** + * 事件初始化 + */ - function localeFirstDayOfYear() { - return this._week.doy; - } - // MOMENTS + /** + * 事件移除,提供性能以及内存泄漏等问题。 + */ - function getSetWeek(input) { - var week = this.localeData().week(this); - return input == null ? week : this.add((input - week) * 7, 'd'); - } - function getSetISOWeek(input) { - var week = weekOfYear(this, 1, 4).week; - return input == null ? week : this.add((input - week) * 7, 'd'); + /** + * 事件绑定和移除函数 + */ + TableRow.prototype.eventListen = function eventListen(events, type, eventSource) { + for (var i = 0; i < events.length; i++) { + var _event = events[i]; + if (type === "remove") { + _utils.EventUtil.removeHandler(eventSource, _event.key, _event.fun); + } else { + _utils.EventUtil.addHandler(eventSource, _event.key, _event.fun); + } } + }; - // FORMATTING + /** + * 开始调整交换列的事件 + */ - addFormatToken('d', 0, 'do', 'day'); - addFormatToken('dd', 0, 0, function (format) { - return this.localeData().weekdaysMin(this, format); - }); + /** + * 在一个拖动过程中,释放鼠标键时触发此事件。【目标事件】 + * @memberof TableHeader + */ - addFormatToken('ddd', 0, 0, function (format) { - return this.localeData().weekdaysShort(this, format); - }); - addFormatToken('dddd', 0, 0, function (format) { - return this.localeData().weekdays(this, format); - }); + /** + * 获取当前触摸的Dom节点 + */ - addFormatToken('e', 0, 0, 'weekday'); - addFormatToken('E', 0, 0, 'isoWeekday'); - // ALIASES + /** + * 开始调整交换行的事件 + */ - addUnitAlias('day', 'd'); - addUnitAlias('weekday', 'e'); - addUnitAlias('isoWeekday', 'E'); - // PRIORITY - addUnitPriority('day', 11); - addUnitPriority('weekday', 11); - addUnitPriority('isoWeekday', 11); + /** + * 手指移开时触发 + */ - // PARSING - addRegexToken('d', match1to2); - addRegexToken('e', match1to2); - addRegexToken('E', match1to2); - addRegexToken('dd', function (isStrict, locale) { - return locale.weekdaysMinRegex(isStrict); - }); - addRegexToken('ddd', function (isStrict, locale) { - return locale.weekdaysShortRegex(isStrict); - }); - addRegexToken('dddd', function (isStrict, locale) { - return locale.weekdaysRegex(isStrict); - }); + /** + *同步当前拖拽到阴影 + * @memberof TableRow + */ - addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) { - var weekday = config._locale.weekdaysParse(input, token, config._strict); - // if we didn't get a weekday name, mark the date as invalid - if (weekday != null) { - week.d = weekday; - } else { - getParsingFlags(config).invalidWeekday = input; - } - }); - addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) { - week[token] = toInt(input); - }); + /** + * 同步自己,也需要同步当前行的行显示 + */ - // HELPERS - function parseWeekday(input, locale) { - if (typeof input !== 'string') { - return input; - } + /** + * 设置同步的style + */ - if (!isNaN(input)) { - return parseInt(input, 10); - } - input = locale.weekdaysParse(input); - if (typeof input === 'number') { - return input; - } + TableRow.prototype.componentDidUpdate = function componentDidUpdate(prevProps) { + var _props2 = this.props, + rowDraggAble = _props2.rowDraggAble, + syncRowHeight = _props2.syncRowHeight; - return null; + if (!this.event) { + this.event = true; + if (rowDraggAble) { + this.initEvent(); + } } - - function parseIsoWeekday(input, locale) { - if (typeof input === 'string') { - return locale.weekdaysParse(input) % 7 || 7; - } - return isNaN(input) ? null : input; + if (this.props.treeType) { + this.setRowParentIndex(); } - - // LOCALES - function shiftWeekdays(ws, n) { - return ws.slice(n, 7).concat(ws.slice(0, n)); + if (syncRowHeight) { + this.setRowHeight(); } + }; - var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( - '_' - ), - defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - defaultWeekdaysRegex = matchWord, - defaultWeekdaysShortRegex = matchWord, - defaultWeekdaysMinRegex = matchWord; - - function localeWeekdays(m, format) { - var weekdays = isArray(this._weekdays) - ? this._weekdays - : this._weekdays[ - m && m !== true && this._weekdays.isFormat.test(format) - ? 'format' - : 'standalone' - ]; - return m === true - ? shiftWeekdays(weekdays, this._week.dow) - : m - ? weekdays[m.day()] - : weekdays; - } + TableRow.prototype.componentWillUnmount = function componentWillUnmount() { + var _props3 = this.props, + record = _props3.record, + onDestroy = _props3.onDestroy, + index = _props3.index, + rowDraggAble = _props3.rowDraggAble; - function localeWeekdaysShort(m) { - return m === true - ? shiftWeekdays(this._weekdaysShort, this._week.dow) - : m - ? this._weekdaysShort[m.day()] - : this._weekdaysShort; + onDestroy(record, index); + if (this.unsubscribe) { + this.unsubscribe(); } - - function localeWeekdaysMin(m) { - return m === true - ? shiftWeekdays(this._weekdaysMin, this._week.dow) - : m - ? this._weekdaysMin[m.day()] - : this._weekdaysMin; + if (rowDraggAble) { + this.removeDragAbleEvent(); } + }; - function handleStrictParse$1(weekdayName, format, strict) { - var i, - ii, - mom, - llc = weekdayName.toLocaleLowerCase(); - if (!this._weekdaysParse) { - this._weekdaysParse = []; - this._shortWeekdaysParse = []; - this._minWeekdaysParse = []; + TableRow.prototype.setRowHeight = function setRowHeight() { + var _props4 = this.props, + setRowHeight = _props4.setRowHeight, + _props4$expandedConte = _props4.expandedContentHeight, + expandedContentHeight = _props4$expandedConte === undefined ? 0 : _props4$expandedConte, + fixed = _props4.fixed, + fixedIndex = _props4.fixedIndex; - for (i = 0; i < 7; ++i) { - mom = createUTC([2000, 1]).day(i); - this._minWeekdaysParse[i] = this.weekdaysMin( - mom, - '' - ).toLocaleLowerCase(); - this._shortWeekdaysParse[i] = this.weekdaysShort( - mom, - '' - ).toLocaleLowerCase(); - this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase(); - } - } + if (!setRowHeight || !this.element || fixed) return; + setRowHeight(this.element.clientHeight + expandedContentHeight, fixedIndex); + }; - if (strict) { - if (format === 'dddd') { - ii = indexOf.call(this._weekdaysParse, llc); - return ii !== -1 ? ii : null; - } else if (format === 'ddd') { - ii = indexOf.call(this._shortWeekdaysParse, llc); - return ii !== -1 ? ii : null; - } else { - ii = indexOf.call(this._minWeekdaysParse, llc); - return ii !== -1 ? ii : null; - } - } else { - if (format === 'dddd') { - ii = indexOf.call(this._weekdaysParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._shortWeekdaysParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._minWeekdaysParse, llc); - return ii !== -1 ? ii : null; - } else if (format === 'ddd') { - ii = indexOf.call(this._shortWeekdaysParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._weekdaysParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._minWeekdaysParse, llc); - return ii !== -1 ? ii : null; - } else { - ii = indexOf.call(this._minWeekdaysParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._weekdaysParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._shortWeekdaysParse, llc); - return ii !== -1 ? ii : null; - } - } - } + TableRow.prototype.setRowParentIndex = function setRowParentIndex() { + var _props5 = this.props, + index = _props5.index, + setRowParentIndex = _props5.setRowParentIndex, + fixedIndex = _props5.fixedIndex, + rootIndex = _props5.rootIndex; - function localeWeekdaysParse(weekdayName, format, strict) { - var i, mom, regex; + setRowParentIndex(rootIndex < 0 ? index : rootIndex, fixedIndex); + }; - if (this._weekdaysParseExact) { - return handleStrictParse$1.call(this, weekdayName, format, strict); - } + TableRow.prototype.onRowClick = function onRowClick(event) { + // fix: 解决 onRowClick 回调函数中,事件对象属性均为 null 的问题 + // 异步访问事件属性 + // 调用 event.persist() 会从事件池中移除该合成函数并允许对该合成事件的引用被保留下来。 + event.persist(); + var _props6 = this.props, + record = _props6.record, + index = _props6.index, + onRowClick = _props6.onRowClick, + expandable = _props6.expandable, + expandRowByClick = _props6.expandRowByClick, + expanded = _props6.expanded, + onExpand = _props6.onExpand, + fixedIndex = _props6.fixedIndex, + onRowDoubleClick = _props6.onRowDoubleClick; - if (!this._weekdaysParse) { - this._weekdaysParse = []; - this._minWeekdaysParse = []; - this._shortWeekdaysParse = []; - this._fullWeekdaysParse = []; - } + if (expandable && expandRowByClick) { + onExpand(!expanded, record, fixedIndex, event); + } + if (!onRowDoubleClick) { + onRowClick(record, fixedIndex, event); + return; + } + this.set(function (e) { + onRowClick(record, fixedIndex, event); + }); + }; - for (i = 0; i < 7; i++) { - // make the regex if we don't have it already + TableRow.prototype.onRowDoubleClick = function onRowDoubleClick(event) { + var _props7 = this.props, + record = _props7.record, + index = _props7.index, + onRowDoubleClick = _props7.onRowDoubleClick, + fixedIndex = _props7.fixedIndex; - mom = createUTC([2000, 1]).day(i); - if (strict && !this._fullWeekdaysParse[i]) { - this._fullWeekdaysParse[i] = new RegExp( - '^' + this.weekdays(mom, '').replace('.', '\\.?') + '$', - 'i' - ); - this._shortWeekdaysParse[i] = new RegExp( - '^' + this.weekdaysShort(mom, '').replace('.', '\\.?') + '$', - 'i' - ); - this._minWeekdaysParse[i] = new RegExp( - '^' + this.weekdaysMin(mom, '').replace('.', '\\.?') + '$', - 'i' - ); - } - if (!this._weekdaysParse[i]) { - regex = - '^' + - this.weekdays(mom, '') + - '|^' + - this.weekdaysShort(mom, '') + - '|^' + - this.weekdaysMin(mom, ''); - this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i'); - } - // test the regex - if ( - strict && - format === 'dddd' && - this._fullWeekdaysParse[i].test(weekdayName) - ) { - return i; - } else if ( - strict && - format === 'ddd' && - this._shortWeekdaysParse[i].test(weekdayName) - ) { - return i; - } else if ( - strict && - format === 'dd' && - this._minWeekdaysParse[i].test(weekdayName) - ) { - return i; - } else if (!strict && this._weekdaysParse[i].test(weekdayName)) { - return i; - } - } - } + this.clear(); + onRowDoubleClick && onRowDoubleClick(record, fixedIndex, event); + }; - // MOMENTS + TableRow.prototype.onMouseEnter = function onMouseEnter(e) { + var _props8 = this.props, + onHover = _props8.onHover, + hoverKey = _props8.hoverKey, + fixedIndex = _props8.fixedIndex, + syncHover = _props8.syncHover, + record = _props8.record; - function getSetDayOfWeek(input) { - if (!this.isValid()) { - return input != null ? this : NaN; - } - var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay(); - if (input != null) { - input = parseWeekday(input, this.localeData()); - return this.add(input - day, 'd'); - } else { - return day; - } + if (syncHover) { + this.setState({ hovered: true }); } + onHover(true, hoverKey, e, fixedIndex, record); + }; - function getSetLocaleDayOfWeek(input) { - if (!this.isValid()) { - return input != null ? this : NaN; - } - var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7; - return input == null ? weekday : this.add(input - weekday, 'd'); + TableRow.prototype.onMouseLeave = function onMouseLeave(e) { + var _props9 = this.props, + onHover = _props9.onHover, + hoverKey = _props9.hoverKey, + fixedIndex = _props9.fixedIndex, + syncHover = _props9.syncHover, + record = _props9.record; + + if (syncHover) { + this.setState({ hovered: false }); } + onHover(false, hoverKey, e, fixedIndex, record); + }; - function getSetISODayOfWeek(input) { - if (!this.isValid()) { - return input != null ? this : NaN; - } + TableRow.prototype.render = function render() { + var _props10 = this.props, + clsPrefix = _props10.clsPrefix, + columns = _props10.columns, + record = _props10.record, + height = _props10.height, + visible = _props10.visible, + index = _props10.index, + onPaste = _props10.onPaste, + expandIconColumnIndex = _props10.expandIconColumnIndex, + expandIconAsCell = _props10.expandIconAsCell, + expanded = _props10.expanded, + useDragHandle = _props10.useDragHandle, + rowDraggAble = _props10.rowDraggAble, + expandable = _props10.expandable, + onExpand = _props10.onExpand, + needIndentSpaced = _props10.needIndentSpaced, + indent = _props10.indent, + indentSize = _props10.indentSize, + isHiddenExpandIcon = _props10.isHiddenExpandIcon, + fixed = _props10.fixed, + bodyDisplayInRow = _props10.bodyDisplayInRow, + expandedIcon = _props10.expandedIcon, + collapsedIcon = _props10.collapsedIcon, + hoverKey = _props10.hoverKey, + lazyStartIndex = _props10.lazyStartIndex, + lazyEndIndex = _props10.lazyEndIndex, + expandIconCellWidth = _props10.expandIconCellWidth; + var notRowDrag = this.state.notRowDrag; - // behaves the same as moment#day except - // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6) - // as a setter, sunday should belong to the previous week. + var showSum = false; + var className = this.props.className; - if (input != null) { - var weekday = parseIsoWeekday(input, this.localeData()); - return this.day(this.day() % 7 ? weekday : weekday - 7); - } else { - return this.day() || 7; - } + if (this.state.hovered) { + className += ' ' + clsPrefix + '-hover'; } - - function weekdaysRegex(isStrict) { - if (this._weekdaysParseExact) { - if (!hasOwnProp(this, '_weekdaysRegex')) { - computeWeekdaysParse.call(this); - } - if (isStrict) { - return this._weekdaysStrictRegex; - } else { - return this._weekdaysRegex; - } - } else { - if (!hasOwnProp(this, '_weekdaysRegex')) { - this._weekdaysRegex = defaultWeekdaysRegex; - } - return this._weekdaysStrictRegex && isStrict - ? this._weekdaysStrictRegex - : this._weekdaysRegex; - } + //判断是否为合计行 + if (className.indexOf('sumrow') > -1) { + showSum = true; } + var cells = []; - function weekdaysShortRegex(isStrict) { - if (this._weekdaysParseExact) { - if (!hasOwnProp(this, '_weekdaysRegex')) { - computeWeekdaysParse.call(this); - } - if (isStrict) { - return this._weekdaysShortStrictRegex; - } else { - return this._weekdaysShortRegex; - } - } else { - if (!hasOwnProp(this, '_weekdaysShortRegex')) { - this._weekdaysShortRegex = defaultWeekdaysShortRegex; - } - return this._weekdaysShortStrictRegex && isStrict - ? this._weekdaysShortStrictRegex - : this._weekdaysShortRegex; - } + var expandIcon = _react2['default'].createElement(_ExpandIcon2['default'], { + expandable: expandable, + clsPrefix: clsPrefix, + onExpand: onExpand, + needIndentSpaced: needIndentSpaced, + expanded: expanded, + record: record, + expandedIcon: expandedIcon, + collapsedIcon: collapsedIcon, + isHiddenExpandIcon: isHiddenExpandIcon + }); + var isExpandIconAsCell = expandIconAsCell ? clsPrefix + '-expand-columns-in-body' : ''; + var expandIndexInThisTable; + if (this.props.fixed === 'right') { + expandIndexInThisTable = expandIconColumnIndex - this.props.leftColumnsLength - this.props.centerColumnsLength; + } else { + expandIndexInThisTable = expandIconColumnIndex; + } + for (var i = 0; i < columns.length; i++) { + if (expandIconAsCell && i === 0) { + showSum ? cells.push(_react2['default'].createElement('td', { width: expandIconCellWidth })) : cells.push(_react2['default'].createElement( + 'td', + { + className: clsPrefix + '-expand-icon-cell ' + isExpandIconAsCell, + key: 'rc-table-expand-icon-cell-' + i, + width: expandIconCellWidth + }, + expandIcon + )); + } + // bugfix 设置expandRowByClick,无法显示箭头,去掉 expandRowByClick 判断 + var isColumnHaveExpandIcon = expandIconAsCell || showSum ? false : i === expandIndexInThisTable; + cells.push(_react2['default'].createElement(_TableCell2['default'], { + clsPrefix: clsPrefix, + record: record, + indentSize: indentSize, + indent: indent, + index: index, + column: columns[i], + key: index + "_" + (columns[i].key || columns[i].dataIndex || i), + fixed: fixed, + showSum: showSum, + expandIcon: isColumnHaveExpandIcon ? expandIcon : null, + bodyDisplayInRow: bodyDisplayInRow, + lazyStartIndex: lazyStartIndex, + lazyEndIndex: lazyEndIndex, + onPaste: onPaste, + stopRowDrag: this.stopRowDrag, + col: i + })); + } + var style = _extends({ height: height }, record ? record.style : undefined); + if (!visible) { + style.display = 'none'; + } + if (record && record._checked) { + className += ' selected'; } - function weekdaysMinRegex(isStrict) { - if (this._weekdaysParseExact) { - if (!hasOwnProp(this, '_weekdaysRegex')) { - computeWeekdaysParse.call(this); - } - if (isStrict) { - return this._weekdaysMinStrictRegex; - } else { - return this._weekdaysMinRegex; - } - } else { - if (!hasOwnProp(this, '_weekdaysMinRegex')) { - this._weekdaysMinRegex = defaultWeekdaysMinRegex; - } - return this._weekdaysMinStrictRegex && isStrict - ? this._weekdaysMinStrictRegex - : this._weekdaysMinRegex; - } + if (rowDraggAble && !useDragHandle && !notRowDrag) { + className += ' row-dragg-able'; } - function computeWeekdaysParse() { - function cmpLenRev(a, b) { - return b.length - a.length; - } + return _react2['default'].createElement( + 'tr', + { + draggable: rowDraggAble && !useDragHandle && !notRowDrag, + onClick: this.onRowClick, + onDoubleClick: this.onRowDoubleClick, + onMouseEnter: this.onMouseEnter, + onMouseLeave: this.onMouseLeave, + className: clsPrefix + ' ' + className + ' ' + clsPrefix + '-level-' + indent, + style: style, + 'data-row-key': record && record.key ? record.key : hoverKey + // key={hoverKey} + , ref: this.bindElement + }, + cells.length > 0 ? cells : _react2['default'].createElement('td', { style: { width: 0, padding: 0 } }) + ); + }; - var minPieces = [], - shortPieces = [], - longPieces = [], - mixedPieces = [], - i, - mom, - minp, - shortp, - longp; - for (i = 0; i < 7; i++) { - // make the regex if we don't have it already - mom = createUTC([2000, 1]).day(i); - minp = regexEscape(this.weekdaysMin(mom, '')); - shortp = regexEscape(this.weekdaysShort(mom, '')); - longp = regexEscape(this.weekdays(mom, '')); - minPieces.push(minp); - shortPieces.push(shortp); - longPieces.push(longp); - mixedPieces.push(minp); - mixedPieces.push(shortp); - mixedPieces.push(longp); - } - // Sorting makes sure if one weekday (or abbr) is a prefix of another it - // will match the longer piece. - minPieces.sort(cmpLenRev); - shortPieces.sort(cmpLenRev); - longPieces.sort(cmpLenRev); - mixedPieces.sort(cmpLenRev); + return TableRow; + }(_react.Component); - this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i'); - this._weekdaysShortRegex = this._weekdaysRegex; - this._weekdaysMinRegex = this._weekdaysRegex; + ; - this._weekdaysStrictRegex = new RegExp( - '^(' + longPieces.join('|') + ')', - 'i' - ); - this._weekdaysShortStrictRegex = new RegExp( - '^(' + shortPieces.join('|') + ')', - 'i' - ); - this._weekdaysMinStrictRegex = new RegExp( - '^(' + minPieces.join('|') + ')', - 'i' - ); - } + TableRow.propTypes = propTypes; + TableRow.defaultProps = defaultProps; - // FORMATTING + exports['default'] = TableRow; + module.exports = exports['default']; + +/***/ }), +/* 295 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - function hFormat() { - return this.hours() % 12 || 12; - } + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.Event = exports.EventUtil = exports.tryParseInt = undefined; - function kFormat() { - return this.hours() || 24; - } + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - addFormatToken('H', ['HH', 2], 0, 'hour'); - addFormatToken('h', ['hh', 2], 0, hFormat); - addFormatToken('k', ['kk', 2], 0, kFormat); + exports.measureScrollbar = measureScrollbar; + exports.debounce = debounce; + exports.warningOnce = warningOnce; + exports.getOffset = getOffset; + exports.addClass = addClass; + exports.removeClass = removeClass; + exports.ObjectAssign = ObjectAssign; + exports.closest = closest; + exports.getMaxColChildrenLength = getMaxColChildrenLength; + exports.getColChildrenLength = getColChildrenLength; + exports.DicimalFormater = DicimalFormater; + exports.checkDicimalInvalid = checkDicimalInvalid; + exports.formatMoney = formatMoney; + exports.convertListToTree = convertListToTree; - addFormatToken('hmm', 0, 0, function () { - return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2); - }); + var _warning = __webpack_require__(32); - addFormatToken('hmmss', 0, 0, function () { - return ( - '' + - hFormat.apply(this) + - zeroFill(this.minutes(), 2) + - zeroFill(this.seconds(), 2) - ); - }); + var _warning2 = _interopRequireDefault(_warning); - addFormatToken('Hmm', 0, 0, function () { - return '' + this.hours() + zeroFill(this.minutes(), 2); - }); + var _parseInt = __webpack_require__(296); - addFormatToken('Hmmss', 0, 0, function () { - return ( - '' + - this.hours() + - zeroFill(this.minutes(), 2) + - zeroFill(this.seconds(), 2) - ); - }); + var _parseInt2 = _interopRequireDefault(_parseInt); - function meridiem(token, lowercase) { - addFormatToken(token, 0, 0, function () { - return this.localeData().meridiem( - this.hours(), - this.minutes(), - lowercase - ); - }); - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - meridiem('a', true); - meridiem('A', false); + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - // ALIASES + var scrollbarSize = void 0; - addUnitAlias('hour', 'h'); + // Measure scrollbar width for padding body during modal show/hide + var scrollbarMeasure = { + position: 'absolute', + top: '-9999px', + width: '50px', + height: '50px', + overflow: 'scroll' + }; - // PRIORITY - addUnitPriority('hour', 13); + function measureScrollbar() { + var direction = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'vertical'; - // PARSING - function matchMeridiem(isStrict, locale) { - return locale._meridiemParse; + if (typeof document === 'undefined' || typeof window === 'undefined') { + return 0; + } + var tableDom = document.querySelector('.u-table'); + var currentDom = tableDom ? tableDom : document.body; + + if (scrollbarSize) { + return scrollbarSize; + } + var scrollDiv = document.createElement('div'); + Object.keys(scrollbarMeasure).forEach(function (scrollProp) { + scrollDiv.style[scrollProp] = scrollbarMeasure[scrollProp]; + }); + currentDom.appendChild(scrollDiv); + var size = 0; + if (direction === 'vertical') { + size = scrollDiv.offsetWidth - scrollDiv.clientWidth; + } else if (direction === 'horizontal') { + size = scrollDiv.offsetHeight - scrollDiv.clientHeight; + } + + currentDom.removeChild(scrollDiv); + scrollbarSize = size; + return scrollbarSize; + } + + function debounce(func, wait, immediate) { + var timeout = void 0; + return function debounceFunc() { + var context = this; + var args = arguments; + // https://fb.me/react-event-pooling + if (args[0] && args[0].persist) { + args[0].persist(); + } + var later = function later() { + timeout = null; + if (!immediate) { + func.apply(context, args); + } + }; + var callNow = immediate && !timeout; + clearTimeout(timeout); + timeout = setTimeout(later, wait); + if (callNow) { + func.apply(context, args); } + }; + } - addRegexToken('a', matchMeridiem); - addRegexToken('A', matchMeridiem); - addRegexToken('H', match1to2); - addRegexToken('h', match1to2); - addRegexToken('k', match1to2); - addRegexToken('HH', match1to2, match2); - addRegexToken('hh', match1to2, match2); - addRegexToken('kk', match1to2, match2); + var warned = {}; + function warningOnce(condition, format, args) { + if (!warned[format]) { + (0, _warning2['default'])(condition, format, args); + warned[format] = true; + } + } + function getOffset(Node, offset) { + if (!offset) { + offset = {}; + offset.top = 0; + offset.left = 0; + } + if (Node == document.body) { + return offset; + } + offset.top += Node.offsetTop; + offset.left += Node.offsetLeft; + if (Node.offsetParent) return getOffset(Node.offsetParent, offset);else return offset; + }; - addRegexToken('hmm', match3to4); - addRegexToken('hmmss', match5to6); - addRegexToken('Hmm', match3to4); - addRegexToken('Hmmss', match5to6); + var tryParseInt = exports.tryParseInt = function tryParseInt(value) { + var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; - addParseToken(['H', 'HH'], HOUR); - addParseToken(['k', 'kk'], function (input, array, config) { - var kInput = toInt(input); - array[HOUR] = kInput === 24 ? 0 : kInput; - }); - addParseToken(['a', 'A'], function (input, array, config) { - config._isPm = config._locale.isPM(input); - config._meridiem = input; - }); - addParseToken(['h', 'hh'], function (input, array, config) { - array[HOUR] = toInt(input); - getParsingFlags(config).bigHour = true; - }); - addParseToken('hmm', function (input, array, config) { - var pos = input.length - 2; - array[HOUR] = toInt(input.substr(0, pos)); - array[MINUTE] = toInt(input.substr(pos)); - getParsingFlags(config).bigHour = true; - }); - addParseToken('hmmss', function (input, array, config) { - var pos1 = input.length - 4, - pos2 = input.length - 2; - array[HOUR] = toInt(input.substr(0, pos1)); - array[MINUTE] = toInt(input.substr(pos1, 2)); - array[SECOND] = toInt(input.substr(pos2)); - getParsingFlags(config).bigHour = true; - }); - addParseToken('Hmm', function (input, array, config) { - var pos = input.length - 2; - array[HOUR] = toInt(input.substr(0, pos)); - array[MINUTE] = toInt(input.substr(pos)); - }); - addParseToken('Hmmss', function (input, array, config) { - var pos1 = input.length - 4, - pos2 = input.length - 2; - array[HOUR] = toInt(input.substr(0, pos1)); - array[MINUTE] = toInt(input.substr(pos1, 2)); - array[SECOND] = toInt(input.substr(pos2)); - }); + var resultValue = (0, _parseInt2['default'])(value); - // LOCALES + if (isNaN(resultValue)) { + return defaultValue; + } + return resultValue; + }; - function localeIsPM(input) { - // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays - // Using charAt should be more compatible. - return (input + '').toLowerCase().charAt(0) === 'p'; + function addClass(elm, className) { + if (!className) return; + + var els = Array.isArray(elm) ? elm : [elm]; + + els.forEach(function (el) { + if (el.classList) { + el.classList.add(className.split(' ')); + } else { + el.className += ' ' + className; } + }); + } - var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i, - // Setting the hour should keep the time, because the user explicitly - // specified which hour they want. So trying to maintain the same hour (in - // a new timezone) makes sense. Adding/subtracting hours does not follow - // this rule. - getSetHour = makeGetSet('Hours', true); + function removeClass(elm, className) { + if (!className) return; - function localeMeridiem(hours, minutes, isLower) { - if (hours > 11) { - return isLower ? 'pm' : 'PM'; - } else { - return isLower ? 'am' : 'AM'; - } + var els = Array.isArray(elm) ? elm : [elm]; + + els.forEach(function (el) { + if (el.classList) { + el.classList.remove(className.split(' ')); + } else { + el.className = el.className.replace(new RegExp('(^|\\b)' + className.split(' ').join('|') + '(\\b|$)', 'gi'), ' '); + } + }); + } + + /** + * 简单数组数据对象拷贝 + * @param {*} obj 要拷贝的对象 + */ + function ObjectAssign(obj) { + var b = obj instanceof Array; + var tagObj = b ? [] : {}; + if (b) { + //数组 + obj.forEach(function (da) { + var _da = {}; + _extends(_da, da); + tagObj.push(_da); + }); + } else { + _extends(tagObj, obj); + } + return tagObj; + } + /** + * 获取某个父元素 + * */ + + function closest(ele, selector) { + var matches = ele.matches || ele.webkitMatchesSelector || ele.mozMatchesSelector || ele.msMatchesSelector; + if (matches) { + while (ele) { + if (matches.call(ele, selector)) { + return ele; + } else { + ele = ele.parentElement; + } } + } + return null; + } - var baseConfig = { - calendar: defaultCalendar, - longDateFormat: defaultLongDateFormat, - invalidDate: defaultInvalidDate, - ordinal: defaultOrdinal, - dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse, - relativeTime: defaultRelativeTime, - - months: defaultLocaleMonths, - monthsShort: defaultLocaleMonthsShort, + function getMaxColChildrenLength(columns) { + var arr = []; + arr = columns.map(function (item, index) { + var chilrenLen = 0; + if (item.children) { + chilrenLen = getColChildrenLength(item.children, chilrenLen + 1); + } + return chilrenLen; + }); + var max = Math.max.apply(null, arr); + return max; + } - week: defaultLocaleWeek, + function getColChildrenLength(columns, chilrenLen) { + columns.forEach(function (item, index) { + if (item.children) { + chilrenLen = getColChildrenLength(item.children, chilrenLen + 1); + } + }); + return chilrenLen; + } - weekdays: defaultLocaleWeekdays, - weekdaysMin: defaultLocaleWeekdaysMin, - weekdaysShort: defaultLocaleWeekdaysShort, + function addHandler(element, type, handler) { + var event = null; + if (element.addEventListener) { + //检测是否为DOM2级方法 + event = element.addEventListener(type, handler, false); + } else if (element.attachEvent) { + //检测是否为IE级方法 + event = element.attachEvent("on" + type, handler); + } else { + //检测是否为DOM0级方法 + event = element["on" + type] = handler; + } + return event; + } - meridiemParse: defaultLocaleMeridiemParse, - }; + function removeHandler(element, type, handler) { + if (element && element.removeEventListener) { + //element&& ie11报错兼容 + element.removeEventListener(type, handler, false); + } else if (element && element.detachEvent) { + element.detachEvent("on" + type, handler); + } else if (element) { + element["on" + type] = null; + } + } - // internal storage for locale config files - var locales = {}, - localeFamilies = {}, - globalLocale; + //获取事件对象的兼容性写法 + function getEvent(event) { + return event ? event : window.event; + } - function commonPrefix(arr1, arr2) { - var i, - minl = Math.min(arr1.length, arr2.length); - for (i = 0; i < minl; i += 1) { - if (arr1[i] !== arr2[i]) { - return i; - } - } - return minl; - } + //获取事件对象目标的兼容性写法 + function getTarget(event) { + return event.target || event.srcElement; + } - function normalizeLocale(key) { - return key ? key.toLowerCase().replace('_', '-') : key; - } + function preventDefault(event) { + if (event.preventDefault) { + event.preventDefault(); + } else { + event.returnValue = false; + } + } - // pick the locale from the array - // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each - // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root - function chooseLocale(names) { - var i = 0, - j, - next, - locale, - split; + function stopPropagation(event) { + if (event.stopPropagation) { + event.stopPropagation(); + } else { + event.cancelBubble = true; + } + } - while (i < names.length) { - split = normalizeLocale(names[i]).split('-'); - j = split.length; - next = normalizeLocale(names[i + 1]); - next = next ? next.split('-') : null; - while (j > 0) { - locale = loadLocale(split.slice(0, j).join('-')); - if (locale) { - return locale; - } - if ( - next && - next.length >= j && - commonPrefix(split, next) >= j - 1 - ) { - //the next array item is better than a shallower substring of this one - break; - } - j--; - } - i++; - } - return globalLocale; + //用事件冒泡方式,如果想兼容事件捕获只需要添加个bool参数 + var EventUtil = exports.EventUtil = { + addHandler: function addHandler(element, type, handler) { + if (element.addEventListener) { + element.addEventListener(type, handler, false); + } else if (element.attachEvent) { + element.attachEvent('on' + type, handler); + } else { + element['on' + type] = handler; } + }, - function loadLocale(name) { - var oldLocale = null, - aliasedRequire; - // TODO: Find a better way to register and load all the locales in Node - if ( - locales[name] === undefined && - typeof module !== 'undefined' && - module && - module.exports - ) { - try { - oldLocale = globalLocale._abbr; - aliasedRequire = require; - __webpack_require__(405)("./" + name); - getSetGlobalLocale(oldLocale); - } catch (e) { - // mark as not found to avoid repeating expensive file require call causing high CPU - // when trying to find en-US, en_US, en-us for every format call - locales[name] = null; // null means not found - } - } - return locales[name]; + removeHandler: function removeHandler(element, type, handler) { + //element&& ie11报错兼容 + if (element && element.removeEventListener) { + element.removeEventListener(type, handler, false); + } else if (element && element.detachEvent) { + element.detachEvent('on' + type, handler); + } else if (element) { + element['on' + type] = null; } + } - // This function will load locale and then set the global locale. If - // no arguments are passed in, it will simply return the current global - // locale key. - function getSetGlobalLocale(key, values) { - var data; - if (key) { - if (isUndefined(values)) { - data = getLocale(key); - } else { - data = defineLocale(key, values); - } - - if (data) { - // moment.duration._locale = moment._locale = data; - globalLocale = data; - } else { - if (typeof console !== 'undefined' && console.warn) { - //warn user if arguments are passed but the locale could not be set - console.warn( - 'Locale ' + key + ' not found. Did you forget to load it?' - ); - } - } - } - - return globalLocale._abbr; - } + /* + * 处理精度 + */ + };function DicimalFormater(value, precision) { + var value = value + '', + precision = precision ? precision : 0; + for (var i = 0; i < value.length; i++) { + if ("-0123456789.".indexOf(value.charAt(i)) == -1) return ""; + } + return checkDicimalInvalid(value, precision); + }; + function checkDicimalInvalid(value, precision) { + if (value == null || isNaN(value)) return ""; + // 浮点数总位数不能超过10位 + var digit = parseFloat(value); + var result = (digit * Math.pow(10, precision) / Math.pow(10, precision)).toFixed(precision); + if (result == "NaN") return ""; + return result; + }; - function defineLocale(name, config) { - if (config !== null) { - var locale, - parentConfig = baseConfig; - config.abbr = name; - if (locales[name] != null) { - deprecateSimple( - 'defineLocaleOverride', - 'use moment.updateLocale(localeName, config) to change ' + - 'an existing locale. moment.defineLocale(localeName, ' + - 'config) should only be used for creating a new locale ' + - 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.' - ); - parentConfig = locales[name]._config; - } else if (config.parentLocale != null) { - if (locales[config.parentLocale] != null) { - parentConfig = locales[config.parentLocale]._config; - } else { - locale = loadLocale(config.parentLocale); - if (locale != null) { - parentConfig = locale._config; - } else { - if (!localeFamilies[config.parentLocale]) { - localeFamilies[config.parentLocale] = []; - } - localeFamilies[config.parentLocale].push({ - name: name, - config: config, - }); - return null; - } - } - } - locales[name] = new Locale(mergeConfigs(parentConfig, config)); + /** + * 将数值转化为货币类型 + * @param {*} number 数值 + * @param {*} places 精度 + * @param {*} thousand 是否展示千分位 + */ + function formatMoney(number, places, thousand) { + number = number || 0; + places = !isNaN(places = Math.abs(places)) ? places : 2; + var thousandSymbol = thousand ? "," : ''; + var negative = number < 0 ? "-" : ""; + var i = (0, _parseInt2['default'])(number = Math.abs(+number || 0).toFixed(places), 10) + ""; + var j = (j = i.length) > 3 ? j % 3 : 0; + return negative + (j ? i.substr(0, j) + thousandSymbol : "") + i.substr(j).replace(/(\d{3})(?=\d)/g, "$1" + thousandSymbol) + (places ? '.' + Math.abs(number - i).toFixed(places).slice(2) : ""); + } - if (localeFamilies[name]) { - localeFamilies[name].forEach(function (x) { - defineLocale(x.name, x.config); - }); - } + var Event = exports.Event = { + addHandler: addHandler, + removeHandler: removeHandler, + getEvent: getEvent, + getTarget: getTarget, + preventDefault: preventDefault, + stopPropagation: stopPropagation - // backwards compat for now: also set the locale - // make sure we set the locale AFTER all child locales have been - // created, so we won't end up with the child locale set. - getSetGlobalLocale(name); + /** + * 将一维数组转换为树结构 + * @param {*} treeData 扁平结构的 List 数组 + * @param {*} attr 属性配置设置 + * @param {*} flatTreeKeysMap 存储所有 key-value 的映射,方便获取各节点信息 + */ + };function convertListToTree(treeData, attr, flatTreeKeysMap) { + var tree = []; //存储所有一级节点 + var resData = treeData, + //resData 存储截取的节点 + 父节点(除一级节点外) + resKeysMap = {}, + //resData 的Map映射 + treeKeysMap = {}; //tree 的Map映射 + resData.map(function (element) { + var key = attr.id; + resKeysMap[element[key]] = element; + }); + // 查找父节点,为了补充不完整的数据结构 + var findParentNode = function findParentNode(node) { + var parentKey = node[attr.parendId]; + if (parentKey !== attr.rootId) { + //如果不是根节点,则继续递归 + var item = flatTreeKeysMap[parentKey]; + // 用 resKeysMap 判断,避免重复计算某节点的父节点 + if (resKeysMap.hasOwnProperty(item[attr.id])) return; + resData.unshift(item); + resKeysMap[item[attr.id]] = item; + findParentNode(item); + } else { + // 用 treeKeysMap 判断,避免重复累加 + if (!treeKeysMap.hasOwnProperty(node[attr.id])) { + var key = node.key, + title = node.title, + children = node.children, + _isLeaf = node._isLeaf, + otherProps = _objectWithoutProperties(node, ['key', 'title', 'children', '_isLeaf']); - return locales[name]; - } else { - // useful for testing - delete locales[name]; - return null; - } + var obj = { + key: key, + title: title, + _isLeaf: _isLeaf, + children: [] + }; + tree.push(_extends(obj, _extends({}, otherProps))); + treeKeysMap[key] = node; + } } + }; + // 遍历 resData ,找到所有的一级节点 + for (var i = 0; i < resData.length; i++) { + var item = resData[i]; + if (item[attr.parendId] === attr.rootId && !treeKeysMap.hasOwnProperty(item[attr.id])) { + //如果是根节点,就存放进 tree 对象中 + var key = item.key, + title = item.title, + children = item.children, + otherProps = _objectWithoutProperties(item, ['key', 'title', 'children']); - function updateLocale(name, config) { - if (config != null) { - var locale, - tmpLocale, - parentConfig = baseConfig; - - if (locales[name] != null && locales[name].parentLocale != null) { - // Update existing child locale in-place to avoid memory-leaks - locales[name].set(mergeConfigs(locales[name]._config, config)); - } else { - // MERGE - tmpLocale = loadLocale(name); - if (tmpLocale != null) { - parentConfig = tmpLocale._config; - } - config = mergeConfigs(parentConfig, config); - if (tmpLocale == null) { - // updateLocale is called for creating a new locale - // Set abbr so it will have a name (getters return - // undefined otherwise). - config.abbr = name; - } - locale = new Locale(config); - locale.parentLocale = locales[name]; - locales[name] = locale; - } + var obj = { + key: item[attr.id], + _isLeaf: item[attr._isLeaf], + children: [] + }; + tree.push(_extends(obj, _extends({}, otherProps))); + treeKeysMap[key] = item; + resData.splice(i, 1); + i--; + } else { + //递归查找根节点信息 + findParentNode(item); + } + } + // console.log('resData',resKeysMap); + var run = function run(treeArrs) { + if (resData.length > 0) { + for (var _i = 0; _i < treeArrs.length; _i++) { + for (var j = 0; j < resData.length; j++) { + var _item = resData[j]; + if (treeArrs[_i].key === _item[attr.parendId]) { + var _key = _item.key, + _title = _item.title, + _children = _item.children, + _otherProps = _objectWithoutProperties(_item, ['key', 'title', 'children']); - // backwards compat for now: also set the locale - getSetGlobalLocale(name); - } else { - // pass null for config to unupdate, useful for tests - if (locales[name] != null) { - if (locales[name].parentLocale != null) { - locales[name] = locales[name].parentLocale; - if (name === getSetGlobalLocale()) { - getSetGlobalLocale(name); - } - } else if (locales[name] != null) { - delete locales[name]; - } - } + var _obj = { + key: _item[attr.id], + _isLeaf: _item[attr._isLeaf], + children: [] + }; + treeArrs[_i].children.push(_extends(_obj, _extends({}, _otherProps))); + resData.splice(j, 1); + j--; + } } - return locales[name]; + run(treeArrs[_i].children); + } } + }; + run(tree); + return tree; + } + +/***/ }), +/* 296 */ +/***/ (function(module, exports, __webpack_require__) { + + var root = __webpack_require__(297), + toString = __webpack_require__(299); - // returns locale data - function getLocale(key) { - var locale; + /** Used to match leading and trailing whitespace. */ + var reTrimStart = /^\s+/; - if (key && key._locale && key._locale._abbr) { - key = key._locale._abbr; - } + /* Built-in method references for those with the same name as other `lodash` methods. */ + var nativeParseInt = root.parseInt; - if (!key) { - return globalLocale; - } + /** + * Converts `string` to an integer of the specified radix. If `radix` is + * `undefined` or `0`, a `radix` of `10` is used unless `value` is a + * hexadecimal, in which case a `radix` of `16` is used. + * + * **Note:** This method aligns with the + * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`. + * + * @static + * @memberOf _ + * @since 1.1.0 + * @category String + * @param {string} string The string to convert. + * @param {number} [radix=10] The radix to interpret `value` by. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {number} Returns the converted integer. + * @example + * + * _.parseInt('08'); + * // => 8 + * + * _.map(['6', '08', '10'], _.parseInt); + * // => [6, 8, 10] + */ + function parseInt(string, radix, guard) { + if (guard || radix == null) { + radix = 0; + } else if (radix) { + radix = +radix; + } + return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0); + } - if (!isArray(key)) { - //short-circuit everything else - locale = loadLocale(key); - if (locale) { - return locale; - } - key = [key]; - } + module.exports = parseInt; + + +/***/ }), +/* 297 */ +/***/ (function(module, exports, __webpack_require__) { + + var freeGlobal = __webpack_require__(298); - return chooseLocale(key); - } + /** Detect free variable `self`. */ + var freeSelf = typeof self == 'object' && self && self.Object === Object && self; - function listLocales() { - return keys(locales); - } + /** Used as a reference to the global object. */ + var root = freeGlobal || freeSelf || Function('return this')(); - function checkOverflow(m) { - var overflow, - a = m._a; + module.exports = root; + + +/***/ }), +/* 298 */ +/***/ (function(module, exports) { + + /* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */ + var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; - if (a && getParsingFlags(m).overflow === -2) { - overflow = - a[MONTH] < 0 || a[MONTH] > 11 - ? MONTH - : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) - ? DATE - : a[HOUR] < 0 || - a[HOUR] > 24 || - (a[HOUR] === 24 && - (a[MINUTE] !== 0 || - a[SECOND] !== 0 || - a[MILLISECOND] !== 0)) - ? HOUR - : a[MINUTE] < 0 || a[MINUTE] > 59 - ? MINUTE - : a[SECOND] < 0 || a[SECOND] > 59 - ? SECOND - : a[MILLISECOND] < 0 || a[MILLISECOND] > 999 - ? MILLISECOND - : -1; + module.exports = freeGlobal; - if ( - getParsingFlags(m)._overflowDayOfYear && - (overflow < YEAR || overflow > DATE) - ) { - overflow = DATE; - } - if (getParsingFlags(m)._overflowWeeks && overflow === -1) { - overflow = WEEK; - } - if (getParsingFlags(m)._overflowWeekday && overflow === -1) { - overflow = WEEKDAY; - } + /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) + +/***/ }), +/* 299 */ +/***/ (function(module, exports, __webpack_require__) { + + var baseToString = __webpack_require__(300); - getParsingFlags(m).overflow = overflow; - } + /** + * Converts `value` to a string. An empty string is returned for `null` + * and `undefined` values. The sign of `-0` is preserved. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to convert. + * @returns {string} Returns the converted string. + * @example + * + * _.toString(null); + * // => '' + * + * _.toString(-0); + * // => '-0' + * + * _.toString([1, 2, 3]); + * // => '1,2,3' + */ + function toString(value) { + return value == null ? '' : baseToString(value); + } - return m; - } + module.exports = toString; + + +/***/ }), +/* 300 */ +/***/ (function(module, exports, __webpack_require__) { + + var Symbol = __webpack_require__(301), + arrayMap = __webpack_require__(302), + isArray = __webpack_require__(303), + isSymbol = __webpack_require__(304); - // iso 8601 regex - // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00) - var extendedIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, - basicIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, - tzRegex = /Z|[+-]\d\d(?::?\d\d)?/, - isoDates = [ - ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/], - ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/], - ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/], - ['GGGG-[W]WW', /\d{4}-W\d\d/, false], - ['YYYY-DDD', /\d{4}-\d{3}/], - ['YYYY-MM', /\d{4}-\d\d/, false], - ['YYYYYYMMDD', /[+-]\d{10}/], - ['YYYYMMDD', /\d{8}/], - ['GGGG[W]WWE', /\d{4}W\d{3}/], - ['GGGG[W]WW', /\d{4}W\d{2}/, false], - ['YYYYDDD', /\d{7}/], - ['YYYYMM', /\d{6}/, false], - ['YYYY', /\d{4}/, false], - ], - // iso time formats and regexes - isoTimes = [ - ['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/], - ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/], - ['HH:mm:ss', /\d\d:\d\d:\d\d/], - ['HH:mm', /\d\d:\d\d/], - ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/], - ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/], - ['HHmmss', /\d\d\d\d\d\d/], - ['HHmm', /\d\d\d\d/], - ['HH', /\d\d/], - ], - aspNetJsonRegex = /^\/?Date\((-?\d+)/i, - // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3 - rfc2822 = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/, - obsOffsets = { - UT: 0, - GMT: 0, - EDT: -4 * 60, - EST: -5 * 60, - CDT: -5 * 60, - CST: -6 * 60, - MDT: -6 * 60, - MST: -7 * 60, - PDT: -7 * 60, - PST: -8 * 60, - }; + /** Used as references for various `Number` constants. */ + var INFINITY = 1 / 0; - // date from iso format - function configFromISO(config) { - var i, - l, - string = config._i, - match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string), - allowTime, - dateFormat, - timeFormat, - tzFormat; + /** Used to convert symbols to primitives and strings. */ + var symbolProto = Symbol ? Symbol.prototype : undefined, + symbolToString = symbolProto ? symbolProto.toString : undefined; - if (match) { - getParsingFlags(config).iso = true; + /** + * The base implementation of `_.toString` which doesn't convert nullish + * values to empty strings. + * + * @private + * @param {*} value The value to process. + * @returns {string} Returns the string. + */ + function baseToString(value) { + // Exit early for strings to avoid a performance hit in some environments. + if (typeof value == 'string') { + return value; + } + if (isArray(value)) { + // Recursively convert values (susceptible to call stack limits). + return arrayMap(value, baseToString) + ''; + } + if (isSymbol(value)) { + return symbolToString ? symbolToString.call(value) : ''; + } + var result = (value + ''); + return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; + } - for (i = 0, l = isoDates.length; i < l; i++) { - if (isoDates[i][1].exec(match[1])) { - dateFormat = isoDates[i][0]; - allowTime = isoDates[i][2] !== false; - break; - } - } - if (dateFormat == null) { - config._isValid = false; - return; - } - if (match[3]) { - for (i = 0, l = isoTimes.length; i < l; i++) { - if (isoTimes[i][1].exec(match[3])) { - // match[2] should be 'T' or space - timeFormat = (match[2] || ' ') + isoTimes[i][0]; - break; - } - } - if (timeFormat == null) { - config._isValid = false; - return; - } - } - if (!allowTime && timeFormat != null) { - config._isValid = false; - return; - } - if (match[4]) { - if (tzRegex.exec(match[4])) { - tzFormat = 'Z'; - } else { - config._isValid = false; - return; - } - } - config._f = dateFormat + (timeFormat || '') + (tzFormat || ''); - configFromStringAndFormat(config); - } else { - config._isValid = false; - } - } + module.exports = baseToString; + + +/***/ }), +/* 301 */ +/***/ (function(module, exports, __webpack_require__) { + + var root = __webpack_require__(297); - function extractFromRFC2822Strings( - yearStr, - monthStr, - dayStr, - hourStr, - minuteStr, - secondStr - ) { - var result = [ - untruncateYear(yearStr), - defaultLocaleMonthsShort.indexOf(monthStr), - parseInt(dayStr, 10), - parseInt(hourStr, 10), - parseInt(minuteStr, 10), - ]; + /** Built-in value references. */ + var Symbol = root.Symbol; - if (secondStr) { - result.push(parseInt(secondStr, 10)); - } + module.exports = Symbol; + + +/***/ }), +/* 302 */ +/***/ (function(module, exports) { + + /** + * A specialized version of `_.map` for arrays without support for iteratee + * shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns the new mapped array. + */ + function arrayMap(array, iteratee) { + var index = -1, + length = array == null ? 0 : array.length, + result = Array(length); - return result; - } + while (++index < length) { + result[index] = iteratee(array[index], index, array); + } + return result; + } - function untruncateYear(yearStr) { - var year = parseInt(yearStr, 10); - if (year <= 49) { - return 2000 + year; - } else if (year <= 999) { - return 1900 + year; - } - return year; - } + module.exports = arrayMap; + + +/***/ }), +/* 303 */ +/***/ (function(module, exports) { + + /** + * Checks if `value` is classified as an `Array` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an array, else `false`. + * @example + * + * _.isArray([1, 2, 3]); + * // => true + * + * _.isArray(document.body.children); + * // => false + * + * _.isArray('abc'); + * // => false + * + * _.isArray(_.noop); + * // => false + */ + var isArray = Array.isArray; - function preprocessRFC2822(s) { - // Remove comments and folding whitespace and replace multiple-spaces with a single space - return s - .replace(/\([^)]*\)|[\n\t]/g, ' ') - .replace(/(\s\s+)/g, ' ') - .replace(/^\s\s*/, '') - .replace(/\s\s*$/, ''); - } + module.exports = isArray; + + +/***/ }), +/* 304 */ +/***/ (function(module, exports, __webpack_require__) { + + var baseGetTag = __webpack_require__(305), + isObjectLike = __webpack_require__(308); - function checkWeekday(weekdayStr, parsedInput, config) { - if (weekdayStr) { - // TODO: Replace the vanilla JS Date object with an independent day-of-week check. - var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr), - weekdayActual = new Date( - parsedInput[0], - parsedInput[1], - parsedInput[2] - ).getDay(); - if (weekdayProvided !== weekdayActual) { - getParsingFlags(config).weekdayMismatch = true; - config._isValid = false; - return false; - } - } - return true; - } + /** `Object#toString` result references. */ + var symbolTag = '[object Symbol]'; - function calculateOffset(obsOffset, militaryOffset, numOffset) { - if (obsOffset) { - return obsOffsets[obsOffset]; - } else if (militaryOffset) { - // the only allowed military tz is Z - return 0; - } else { - var hm = parseInt(numOffset, 10), - m = hm % 100, - h = (hm - m) / 100; - return h * 60 + m; - } - } + /** + * Checks if `value` is classified as a `Symbol` primitive or object. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. + * @example + * + * _.isSymbol(Symbol.iterator); + * // => true + * + * _.isSymbol('abc'); + * // => false + */ + function isSymbol(value) { + return typeof value == 'symbol' || + (isObjectLike(value) && baseGetTag(value) == symbolTag); + } - // date and time from ref 2822 format - function configFromRFC2822(config) { - var match = rfc2822.exec(preprocessRFC2822(config._i)), - parsedArray; - if (match) { - parsedArray = extractFromRFC2822Strings( - match[4], - match[3], - match[2], - match[5], - match[6], - match[7] - ); - if (!checkWeekday(match[1], parsedArray, config)) { - return; - } + module.exports = isSymbol; + + +/***/ }), +/* 305 */ +/***/ (function(module, exports, __webpack_require__) { + + var Symbol = __webpack_require__(301), + getRawTag = __webpack_require__(306), + objectToString = __webpack_require__(307); - config._a = parsedArray; - config._tzm = calculateOffset(match[8], match[9], match[10]); + /** `Object#toString` result references. */ + var nullTag = '[object Null]', + undefinedTag = '[object Undefined]'; - config._d = createUTCDate.apply(null, config._a); - config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm); + /** Built-in value references. */ + var symToStringTag = Symbol ? Symbol.toStringTag : undefined; - getParsingFlags(config).rfc2822 = true; - } else { - config._isValid = false; - } - } + /** + * The base implementation of `getTag` without fallbacks for buggy environments. + * + * @private + * @param {*} value The value to query. + * @returns {string} Returns the `toStringTag`. + */ + function baseGetTag(value) { + if (value == null) { + return value === undefined ? undefinedTag : nullTag; + } + return (symToStringTag && symToStringTag in Object(value)) + ? getRawTag(value) + : objectToString(value); + } - // date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict - function configFromString(config) { - var matched = aspNetJsonRegex.exec(config._i); - if (matched !== null) { - config._d = new Date(+matched[1]); - return; - } + module.exports = baseGetTag; + + +/***/ }), +/* 306 */ +/***/ (function(module, exports, __webpack_require__) { + + var Symbol = __webpack_require__(301); - configFromISO(config); - if (config._isValid === false) { - delete config._isValid; - } else { - return; - } + /** Used for built-in method references. */ + var objectProto = Object.prototype; - configFromRFC2822(config); - if (config._isValid === false) { - delete config._isValid; - } else { - return; - } + /** Used to check objects for own properties. */ + var hasOwnProperty = objectProto.hasOwnProperty; - if (config._strict) { - config._isValid = false; - } else { - // Final attempt, use Input Fallback - hooks.createFromInputFallback(config); - } - } + /** + * Used to resolve the + * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) + * of values. + */ + var nativeObjectToString = objectProto.toString; - hooks.createFromInputFallback = deprecate( - 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' + - 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' + - 'discouraged and will be removed in an upcoming major release. Please refer to ' + - 'http://momentjs.com/guides/#/warnings/js-date/ for more info.', - function (config) { - config._d = new Date(config._i + (config._useUTC ? ' UTC' : '')); - } - ); + /** Built-in value references. */ + var symToStringTag = Symbol ? Symbol.toStringTag : undefined; - // Pick the first defined of two or three arguments. - function defaults(a, b, c) { - if (a != null) { - return a; - } - if (b != null) { - return b; - } - return c; - } + /** + * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values. + * + * @private + * @param {*} value The value to query. + * @returns {string} Returns the raw `toStringTag`. + */ + function getRawTag(value) { + var isOwn = hasOwnProperty.call(value, symToStringTag), + tag = value[symToStringTag]; - function currentDateArray(config) { - // hooks is actually the exported moment object - var nowValue = new Date(hooks.now()); - if (config._useUTC) { - return [ - nowValue.getUTCFullYear(), - nowValue.getUTCMonth(), - nowValue.getUTCDate(), - ]; - } - return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()]; + try { + value[symToStringTag] = undefined; + var unmasked = true; + } catch (e) {} + + var result = nativeObjectToString.call(value); + if (unmasked) { + if (isOwn) { + value[symToStringTag] = tag; + } else { + delete value[symToStringTag]; } + } + return result; + } - // convert an array to a date. - // the array should mirror the parameters below - // note: all values past the year are optional and will default to the lowest possible value. - // [year, month, day , hour, minute, second, millisecond] - function configFromArray(config) { - var i, - date, - input = [], - currentDate, - expectedWeekday, - yearToUse; + module.exports = getRawTag; + + +/***/ }), +/* 307 */ +/***/ (function(module, exports) { + + /** Used for built-in method references. */ + var objectProto = Object.prototype; - if (config._d) { - return; - } + /** + * Used to resolve the + * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) + * of values. + */ + var nativeObjectToString = objectProto.toString; - currentDate = currentDateArray(config); + /** + * Converts `value` to a string using `Object.prototype.toString`. + * + * @private + * @param {*} value The value to convert. + * @returns {string} Returns the converted string. + */ + function objectToString(value) { + return nativeObjectToString.call(value); + } - //compute day of the year from weeks and weekdays - if (config._w && config._a[DATE] == null && config._a[MONTH] == null) { - dayOfYearFromWeekInfo(config); - } + module.exports = objectToString; + + +/***/ }), +/* 308 */ +/***/ (function(module, exports) { + + /** + * Checks if `value` is object-like. A value is object-like if it's not `null` + * and has a `typeof` result of "object". + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is object-like, else `false`. + * @example + * + * _.isObjectLike({}); + * // => true + * + * _.isObjectLike([1, 2, 3]); + * // => true + * + * _.isObjectLike(_.noop); + * // => false + * + * _.isObjectLike(null); + * // => false + */ + function isObjectLike(value) { + return value != null && typeof value == 'object'; + } - //if the day of the year is set, figure out what it is - if (config._dayOfYear != null) { - yearToUse = defaults(config._a[YEAR], currentDate[YEAR]); + module.exports = isObjectLike; + + +/***/ }), +/* 309 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - if ( - config._dayOfYear > daysInYear(yearToUse) || - config._dayOfYear === 0 - ) { - getParsingFlags(config)._overflowDayOfYear = true; - } + Object.defineProperty(exports, "__esModule", { + value: true + }); - date = createUTCDate(yearToUse, 0, config._dayOfYear); - config._a[MONTH] = date.getUTCMonth(); - config._a[DATE] = date.getUTCDate(); - } + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - // Default to current date. - // * if no year, month, day of month are given, default to today - // * if day of month is given, default month and year - // * if month is given, default only year - // * if year is given, don't default anything - for (i = 0; i < 3 && config._a[i] == null; ++i) { - config._a[i] = input[i] = currentDate[i]; - } + var _react = __webpack_require__(1); - // Zero out whatever was not defaulted, including time - for (; i < 7; i++) { - config._a[i] = input[i] = - config._a[i] == null ? (i === 2 ? 1 : 0) : config._a[i]; - } + var _react2 = _interopRequireDefault(_react); - // Check for 24:00:00.000 - if ( - config._a[HOUR] === 24 && - config._a[MINUTE] === 0 && - config._a[SECOND] === 0 && - config._a[MILLISECOND] === 0 - ) { - config._nextDay = true; - config._a[HOUR] = 0; - } + var _propTypes = __webpack_require__(6); - config._d = (config._useUTC ? createUTCDate : createDate).apply( - null, - input - ); - expectedWeekday = config._useUTC - ? config._d.getUTCDay() - : config._d.getDay(); + var _propTypes2 = _interopRequireDefault(_propTypes); - // Apply timezone offset from input. The actual utcOffset can be changed - // with parseZone. - if (config._tzm != null) { - config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm); - } + var _objectPath = __webpack_require__(310); - if (config._nextDay) { - config._a[HOUR] = 24; - } + var _objectPath2 = _interopRequireDefault(_objectPath); - // check for mismatching day of week - if ( - config._w && - typeof config._w.d !== 'undefined' && - config._w.d !== expectedWeekday - ) { - getParsingFlags(config).weekdayMismatch = true; - } - } + var _i18n = __webpack_require__(311); - function dayOfYearFromWeekInfo(config) { - var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek; + var _i18n2 = _interopRequireDefault(_i18n); - w = config._w; - if (w.GG != null || w.W != null || w.E != null) { - dow = 1; - doy = 4; + var _tool = __webpack_require__(120); - // TODO: We need to take the current isoWeekYear, but that depends on - // how we interpret now (local, utc, fixed offset). So create - // a now version of current config (take local/utc/offset flags, and - // create now). - weekYear = defaults( - w.GG, - config._a[YEAR], - weekOfYear(createLocal(), 1, 4).year - ); - week = defaults(w.W, 1); - weekday = defaults(w.E, 1); - if (weekday < 1 || weekday > 7) { - weekdayOverflow = true; - } - } else { - dow = config._locale._week.dow; - doy = config._locale._week.doy; + var _utils = __webpack_require__(295); - curWeek = weekOfYear(createLocal(), dow, doy); + var _beeDropdown = __webpack_require__(312); - weekYear = defaults(w.gg, config._a[YEAR], curWeek.year); + var _beeDropdown2 = _interopRequireDefault(_beeDropdown); - // Default to current week. - week = defaults(w.w, curWeek.week); + var _beeMenus = __webpack_require__(321); - if (w.d != null) { - // weekday -- low day numbers are considered next week - weekday = w.d; - if (weekday < 0 || weekday > 6) { - weekdayOverflow = true; - } - } else if (w.e != null) { - // local weekday -- counting starts from beginning of week - weekday = w.e + dow; - if (w.e < 0 || w.e > 6) { - weekdayOverflow = true; - } - } else { - // default to beginning of week - weekday = dow; - } - } - if (week < 1 || week > weeksInYear(weekYear, dow, doy)) { - getParsingFlags(config)._overflowWeeks = true; - } else if (weekdayOverflow != null) { - getParsingFlags(config)._overflowWeekday = true; - } else { - temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy); - config._a[YEAR] = temp.year; - config._dayOfYear = temp.dayOfYear; - } - } + var _beeMenus2 = _interopRequireDefault(_beeMenus); - // constant that refers to the ISO standard - hooks.ISO_8601 = function () {}; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - // constant that refers to the RFC 2822 form - hooks.RFC_2822 = function () {}; + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - // date from string and format string - function configFromStringAndFormat(config) { - // TODO: Move this to another part of the creation flow to prevent circular deps - if (config._f === hooks.ISO_8601) { - configFromISO(config); - return; - } - if (config._f === hooks.RFC_2822) { - configFromRFC2822(config); - return; - } - config._a = []; - getParsingFlags(config).empty = true; + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - // This array is used to make a Date, either with `new Date` or `Date.UTC` - var string = '' + config._i, - i, - parsedInput, - tokens, - token, - skipped, - stringLength = string.length, - totalParsedInputLength = 0, - era; + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - tokens = - expandFormat(config._f, config._locale).match(formattingTokens) || []; + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - for (i = 0; i < tokens.length; i++) { - token = tokens[i]; - parsedInput = (string.match(getParseRegexForToken(token, config)) || - [])[0]; - if (parsedInput) { - skipped = string.substr(0, string.indexOf(parsedInput)); - if (skipped.length > 0) { - getParsingFlags(config).unusedInput.push(skipped); - } - string = string.slice( - string.indexOf(parsedInput) + parsedInput.length - ); - totalParsedInputLength += parsedInput.length; - } - // don't parse if it's not a known token - if (formatTokenFunctions[token]) { - if (parsedInput) { - getParsingFlags(config).empty = false; - } else { - getParsingFlags(config).unusedTokens.push(token); - } - addTimeToArrayFromToken(token, parsedInput, config); - } else if (config._strict && !parsedInput) { - getParsingFlags(config).unusedTokens.push(token); - } - } + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - // add remaining unparsed input length to the string - getParsingFlags(config).charsLeftOver = - stringLength - totalParsedInputLength; - if (string.length > 0) { - getParsingFlags(config).unusedInput.push(string); - } + var Item = _beeMenus2['default'].Item; - // clear _12h flag if hour is <= 12 - if ( - config._a[HOUR] <= 12 && - getParsingFlags(config).bigHour === true && - config._a[HOUR] > 0 - ) { - getParsingFlags(config).bigHour = undefined; - } + var propTypes = { + record: _propTypes2['default'].object, + clsPrefix: _propTypes2['default'].string, + index: _propTypes2['default'].number, + indent: _propTypes2['default'].number, + indentSize: _propTypes2['default'].number, + column: _propTypes2['default'].object, + expandIcon: _propTypes2['default'].node, + onPaste: _propTypes2['default'].func + }; - getParsingFlags(config).parsedDateParts = config._a.slice(0); - getParsingFlags(config).meridiem = config._meridiem; - // handle meridiem - config._a[HOUR] = meridiemFixWrap( - config._locale, - config._a[HOUR], - config._meridiem - ); + var TableCell = function (_Component) { + _inherits(TableCell, _Component); - // handle era - era = getParsingFlags(config).era; - if (era !== null) { - config._a[YEAR] = config._locale.erasConvertYear(era, config._a[YEAR]); - } + function TableCell(props) { + _classCallCheck(this, TableCell); - configFromArray(config); - checkOverflow(config); - } + var _this = _possibleConstructorReturn(this, _Component.call(this, props)); - function meridiemFixWrap(locale, hour, meridiem) { - var isPm; + _this.renderLinkType = function (data, record, index) { + var config = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; + var url = config.url, + urlIndex = config.urlIndex, + linkType = config.linkType, + className = config.className, + underline = config.underline, + descIndex = config.descIndex, + desc = config.desc, + linkColor = config.linkColor; - if (meridiem == null) { - // nothing to do - return hour; + var linkUrl = ''; + if (url) { + linkUrl = url(data, record, index); + } else if (urlIndex) { + linkUrl = record[urlIndex]; + } + if (linkUrl) { + var link = function link() { + window.open(linkUrl, linkType || '_blank'); + }; + var cls = 'u-table-link u-table-fieldtype '; + if (className) { + cls += className + ' '; } - if (locale.meridiemHour != null) { - return locale.meridiemHour(hour, meridiem); - } else if (locale.isPM != null) { - // Fallback - isPm = locale.isPM(meridiem); - if (isPm && hour < 12) { - hour += 12; - } - if (!isPm && hour === 12) { - hour = 0; - } - return hour; - } else { - // this is not supposed to happen - return hour; + if (underline) { + cls += 'u-table-link-underline '; } - } - - // date from string and array of format strings - function configFromStringAndArray(config) { - var tempConfig, - bestMoment, - scoreToBeat, - i, - currentScore, - validFormatFound, - bestFormatIsValid = false; + var title = ''; - if (config._f.length === 0) { - getParsingFlags(config).invalidFormat = true; - config._d = new Date(NaN); - return; + if (desc === true) { + title = linkUrl; + } else if (typeof desc === 'string') { + title = desc; + } else if (typeof desc === 'function') { + title = desc(data, record, index); + } else if (descIndex) { + title = record[descIndex]; } + return _react2['default'].createElement( + 'span', + { onClick: link, className: cls, style: { color: linkColor || '' }, title: title }, + data + ); + } + return data; + }; - for (i = 0; i < config._f.length; i++) { - currentScore = 0; - validFormatFound = false; - tempConfig = copyConfig({}, config); - if (config._useUTC != null) { - tempConfig._useUTC = config._useUTC; - } - tempConfig._f = config._f[i]; - configFromStringAndFormat(tempConfig); + _this.renderBoolType = function (data) { + var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - if (isValid(tempConfig)) { - validFormatFound = true; - } + var locale = (0, _tool.getComponentLocale)(_this.props, _this.context, 'Table', function () { + return _i18n2['default']; + }); + var boolConfig = _extends({ trueText: locale['bool_true'], falseText: locale['bool_false'] }, config); + if (typeof data === 'string') { + if (data === 'false' || data === '0') { + return boolConfig.falseText; + } + } else if (!data) { + return boolConfig.falseText; + } + return boolConfig.trueText; + }; - // if there is any input that was not parsed add a penalty for that format - currentScore += getParsingFlags(tempConfig).charsLeftOver; + _this.renderNumber = function (data) { + var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 200; + var precision = config.precision, + thousand = config.thousand, + makeUp = config.makeUp, + preSymbol = config.preSymbol, + nextSymbol = config.nextSymbol; - //or tokens - currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10; + var number = (0, _utils.formatMoney)(data, precision, thousand); + if (makeUp === false && number.indexOf('.') !== -1) { + number = number.replace(/0*$/, '').replace(/\.$/, ''); + } + var numberWidth = parseInt(width) - 16; // 减去默认的左右padding共计16px + var res = _react2['default'].createElement( + 'span', + { className: 'u-table-currency-number' }, + number + ); + var pre = preSymbol ? _react2['default'].createElement( + 'span', + { className: 'u-table-currency-pre' }, + preSymbol + ) : null; + var next = nextSymbol ? _react2['default'].createElement( + 'span', + { className: 'u-table-currency-next' }, + nextSymbol + ) : null; + var title = ''; + title += typeof preSymbol === 'string' ? preSymbol : ''; + title += number; + title += typeof nextSymbol === 'string' ? nextSymbol : ''; + return _react2['default'].createElement( + 'span', + { className: 'u-table-currency u-table-fieldtype', style: { width: numberWidth }, title: title }, + pre, + res, + next + ); + }; - getParsingFlags(tempConfig).score = currentScore; + _this.renderDate = function (data) { + var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var moment = config.moment, + format = config.format; - if (!bestFormatIsValid) { - if ( - scoreToBeat == null || - currentScore < scoreToBeat || - validFormatFound - ) { - scoreToBeat = currentScore; - bestMoment = tempConfig; - if (validFormatFound) { - bestFormatIsValid = true; - } - } - } else { - if (currentScore < scoreToBeat) { - scoreToBeat = currentScore; - bestMoment = tempConfig; - } - } - } + if (!moment) return data; + return moment(data).format(format || 'YYYY-MM-DD'); + }; - extend(config, bestMoment || tempConfig); - } + _this.renderSelect = function (data) { + var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - function configFromObject(config) { - if (config._d) { - return; - } + if (config.options) { + data = config.options[data] || config.defaultShow; + } + return data; + }; - var i = normalizeObjectUnits(config._i), - dayOrDate = i.day === undefined ? i.date : i.day; - config._a = map( - [i.year, i.month, dayOrDate, i.hour, i.minute, i.second, i.millisecond], - function (obj) { - return obj && parseInt(obj, 10); - } + _this.renderColumnMenu = function (colMenu, text, record, index) { + if (!colMenu) return null; + var menu = colMenu.menu, + _colMenu$trigger = colMenu.trigger, + trigger = _colMenu$trigger === undefined ? 'hover' : _colMenu$trigger, + _colMenu$className = colMenu.className, + className = _colMenu$className === undefined ? '' : _colMenu$className, + _colMenu$icon = colMenu.icon, + icon = _colMenu$icon === undefined ? _react2['default'].createElement('i', { className: 'uf uf-3dot-h' }) : _colMenu$icon, + _colMenu$iconSize = colMenu.iconSize, + iconSize = _colMenu$iconSize === undefined ? 21 : _colMenu$iconSize; + + var items = []; + items = menu.map(function (item) { + return _react2['default'].createElement( + Item, + { key: item.key, onClick: function onClick() { + _this.onClickColMenu(item.callback, text, record, index); + } }, + item.icon, + item.text ); + }); + if (items.length === 0) return null; + className += ' u-table-inline-op-dropdowm'; + var menus = _react2['default'].createElement( + _beeMenus2['default'], + { className: className }, + items + ); + var top = 'calc(50% - ' + iconSize / 2 + 'px)'; + var visibility = _this.state.showDropdowm ? 'visible' : ''; + var iconClassName = 'u-table-inline-op-icon u-table-inline-op-icon-hover'; + return _react2['default'].createElement( + _beeDropdown2['default'], + { + trigger: [trigger], + overlay: menus, + animation: 'slide-up', + onVisibleChange: _this.changeShowDropdowm + }, + _react2['default'].createElement( + 'span', + { className: iconClassName, style: { fontSize: iconSize, top: top, visibility: visibility } }, + icon + ) + ); + }; - configFromArray(config); - } + _this.changeShowDropdowm = function (val) { + _this.setState({ + showDropdowm: val + }); + }; - function createFromConfig(config) { - var res = new Moment(checkOverflow(prepareConfig(config))); - if (res._nextDay) { - // Adding is smart enough around DST - res.add(1, 'd'); - res._nextDay = undefined; - } + _this.onClickColMenu = function (callback, text, record, index) { + if (callback) { + callback(text, record, index); + } + _this.setState({ + showDropdowm: false + }); + }; - return res; - } + _this.onPaste = function (e) { + var _this$props = _this.props, + row = _this$props.index, + onPaste = _this$props.onPaste, + fixed = _this$props.fixed, + col = _this$props.col; - function prepareConfig(config) { - var input = config._i, - format = config._f; + var position = { + row: row, + col: col, + fixed: !!fixed + }; + onPaste(e, position); + }; - config._locale = config._locale || getLocale(config._l); + _this.onCellMouseOver = function (e) { + var column = _this.props.column; - if (input === null || (format === undefined && input === '')) { - return createInvalid({ nullInput: true }); - } + _this.props.stopRowDrag(column.notRowDrag); + }; - if (typeof input === 'string') { - config._i = input = config._locale.preparse(input); - } + _this.isInvalidRenderCellText = _this.isInvalidRenderCellText.bind(_this); + _this.handleClick = _this.handleClick.bind(_this); + _this.state = { + showDropdowm: false + }; + return _this; + } - if (isMoment(input)) { - return new Moment(checkOverflow(input)); - } else if (isDate(input)) { - config._d = input; - } else if (isArray(format)) { - configFromStringAndArray(config); - } else if (format) { - configFromStringAndFormat(config); - } else { - configFromInput(config); - } + TableCell.prototype.isInvalidRenderCellText = function isInvalidRenderCellText(text) { + return text && !_react2['default'].isValidElement(text) && Object.prototype.toString.call(text) === '[object Object]'; + }; - if (!isValid(config)) { - config._d = null; - } + TableCell.prototype.handleClick = function handleClick(e) { + var _props = this.props, + record = _props.record, + onCellClick = _props.column.onCellClick; - return config; + if (onCellClick) { + onCellClick(record, e); } + }; - function configFromInput(config) { - var input = config._i; - if (isUndefined(input)) { - config._d = new Date(hooks.now()); - } else if (isDate(input)) { - config._d = new Date(input.valueOf()); - } else if (typeof input === 'string') { - configFromString(config); - } else if (isArray(input)) { - config._a = map(input.slice(0), function (obj) { - return parseInt(obj, 10); - }); - configFromArray(config); - } else if (isObject(input)) { - configFromObject(config); - } else if (isNumber(input)) { - // from milliseconds - config._d = new Date(input); - } else { - hooks.createFromInputFallback(config); - } - } + // 渲染链接类型 - function createLocalOrUTC(input, format, locale, strict, isUTC) { - var c = {}; - if (format === true || format === false) { - strict = format; - format = undefined; - } + // 渲染布尔类型 - if (locale === true || locale === false) { - strict = locale; - locale = undefined; - } - if ( - (isObject(input) && isObjectEmpty(input)) || - (isArray(input) && input.length === 0) - ) { - input = undefined; - } - // object construction must be done this way. - // https://github.com/moment/moment/issues/1423 - c._isAMomentObject = true; - c._useUTC = c._isUTC = isUTC; - c._l = locale; - c._i = input; - c._f = format; - c._strict = strict; + // 渲染整数/货币类型 - return createFromConfig(c); - } - function createLocal(input, format, locale, strict) { - return createLocalOrUTC(input, format, locale, strict, false); - } + // 渲染时间类型-l - var prototypeMin = deprecate( - 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/', - function () { - var other = createLocal.apply(null, arguments); - if (this.isValid() && other.isValid()) { - return other < this ? this : other; - } else { - return createInvalid(); - } - } - ), - prototypeMax = deprecate( - 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/', - function () { - var other = createLocal.apply(null, arguments); - if (this.isValid() && other.isValid()) { - return other > this ? this : other; - } else { - return createInvalid(); - } - } - ); - // Pick a moment m from moments so that m[fn](other) is true for all - // other. This relies on the function fn to be transitive. - // - // moments should either be an array of moment objects or an array, whose - // first element is an array of moment objects. - function pickBy(fn, moments) { - var res, i; - if (moments.length === 1 && isArray(moments[0])) { - moments = moments[0]; - } - if (!moments.length) { - return createLocal(); - } - res = moments[0]; - for (i = 1; i < moments.length; ++i) { - if (!moments[i].isValid() || moments[i][fn](res)) { - res = moments[i]; - } - } - return res; - } + // 渲染下拉类型,主要为编辑表格铺垫 - // TODO: Use [].sort instead? - function min() { - var args = [].slice.call(arguments, 0); - return pickBy('isBefore', args); - } + // 渲染行内菜单 - function max() { - var args = [].slice.call(arguments, 0); - return pickBy('isAfter', args); - } + // 下拉按钮状态改变,点击后保持图标常驻 - var now = function () { - return Date.now ? Date.now() : +new Date(); - }; - var ordering = [ - 'year', - 'quarter', - 'month', - 'week', - 'day', - 'hour', - 'minute', - 'second', - 'millisecond', - ]; + // 菜单点击事件 - function isDurationValid(m) { - var key, - unitHasDecimal = false, - i; - for (key in m) { - if ( - hasOwnProp(m, key) && - !( - indexOf.call(ordering, key) !== -1 && - (m[key] == null || !isNaN(m[key])) - ) - ) { - return false; - } - } - for (i = 0; i < ordering.length; ++i) { - if (m[ordering[i]]) { - if (unitHasDecimal) { - return false; // only allow non-integers for smallest unit - } - if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) { - unitHasDecimal = true; - } - } - } + TableCell.prototype.render = function render() { + var _props2 = this.props, + record = _props2.record, + indentSize = _props2.indentSize, + clsPrefix = _props2.clsPrefix, + indent = _props2.indent, + index = _props2.index, + expandIcon = _props2.expandIcon, + column = _props2.column, + fixed = _props2.fixed, + showSum = _props2.showSum, + bodyDisplayInRow = _props2.bodyDisplayInRow, + lazyStartIndex = _props2.lazyStartIndex, + lazyEndIndex = _props2.lazyEndIndex; - return true; - } + var dataIndex = column.dataIndex, + render = column.render, + fieldType = column.fieldType, + linkConfig = column.linkConfig, + fontColor = column.fontColor, + bgColor = column.bgColor, + other = _objectWithoutProperties(column, ['dataIndex', 'render', 'fieldType', 'linkConfig', 'fontColor', 'bgColor']); - function isValid$1() { - return this._isValid; - } + var _column$className = column.className, + className = _column$className === undefined ? '' : _column$className; - function createInvalid$1() { - return createDuration(NaN); - } - function Duration(duration) { - var normalizedInput = normalizeObjectUnits(duration), - years = normalizedInput.year || 0, - quarters = normalizedInput.quarter || 0, - months = normalizedInput.month || 0, - weeks = normalizedInput.week || normalizedInput.isoWeek || 0, - days = normalizedInput.day || 0, - hours = normalizedInput.hour || 0, - minutes = normalizedInput.minute || 0, - seconds = normalizedInput.second || 0, - milliseconds = normalizedInput.millisecond || 0; + var text = _objectPath2['default'].get(record, dataIndex); + var tdProps = void 0; + var colSpan = void 0; + var rowSpan = void 0, + title = void 0; - this._isValid = isDurationValid(normalizedInput); + if (render && !showSum) { + text = render(text, record, index, _extends({ + dataIndex: dataIndex, render: render, fieldType: fieldType, linkConfig: linkConfig, fontColor: fontColor, bgColor: bgColor }, other)); + if (this.isInvalidRenderCellText(text)) { + tdProps = text.props || {}; + rowSpan = tdProps.rowSpan > lazyEndIndex && lazyEndIndex > 5 ? lazyEndIndex - index : tdProps.rowSpan; + colSpan = tdProps.colSpan; + text = text.children; + } + } - // representation for dateAddRemove - this._milliseconds = - +milliseconds + - seconds * 1e3 + // 1000 - minutes * 6e4 + // 1000 * 60 - hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978 - // Because of dateAddRemove treats 24 hours as different from a - // day when working around DST, we need to store them separately - this._days = +days + weeks * 7; - // It is impossible to translate months into days without knowing - // which months you are are talking about, so we have to store - // it separately. - this._months = +months + quarters * 3 + years * 12; + var colMenu = this.renderColumnMenu(column.cellMenu, text, record, index); + // 根据 fieldType 来渲染数据 + if (!render) { + switch (column.fieldType) { + case 'link': + { + text = this.renderLinkType(text, record, index, column.linkConfig); + break; + } + case 'bool': + { + text = this.renderBoolType(text, column.boolConfig); + break; + } + case 'currency': + { + var config = { + precision: 2, // 精度值,需要大于0 + thousand: true, // 是否显示千分符号 + makeUp: true, // 末位是否补零 + preSymbol: '', // 前置符号 + nextSymbol: '' // 后置符号 + }; + text = this.renderNumber(text, _extends({}, config, column.currencyConfig), column.width); + break; + } + case 'number': + { + var _config = { + precision: 0, // 精度值,需要大于0 + thousand: true, // 是否显示千分符号 + makeUp: false, // 末位是否补零 + preSymbol: '', // 前置符号 + nextSymbol: '' // 后置符号 + }; + text = this.renderNumber(text, _extends({}, _config, column.numberConfig), column.width); + break; + } + case 'date': + { + text = this.renderDate(text, column.dateConfig); + break; + } + case 'select': + { + text = this.renderSelect(text, column.selectConfig); + break; + } + default: + { + break; + } + } + } - this._data = {}; + if (this.isInvalidRenderCellText(text)) { + text = null; + } - this._locale = getLocale(); + var indentText = expandIcon ? _react2['default'].createElement('span', { + style: { paddingLeft: indentSize * indent + 'px' }, + className: clsPrefix + '-indent indent-level-' + indent + }) : null; - this._bubble(); + if (lazyStartIndex !== index && (rowSpan === 0 || colSpan === 0)) { + return null; } - - function isDuration(obj) { - return obj instanceof Duration; + if (tdProps && tdProps.mergeEndIndex && index < tdProps.mergeEndIndex && rowSpan === 0) { + rowSpan = tdProps.mergeEndIndex - index; + text = ''; } - - function absRound(number) { - if (number < 0) { - return Math.round(-1 * number) * -1; - } else { - return Math.round(number); - } + //不是固定表格并且当前列是固定,则隐藏当前列 + if (column.fixed && !fixed) { + className = className + (' ' + clsPrefix + '-fixed-columns-in-body'); } - - // compare two arrays, return the number of differences - function compareArrays(array1, array2, dontConvert) { - var len = Math.min(array1.length, array2.length), - lengthDiff = Math.abs(array1.length - array2.length), - diffs = 0, - i; - for (i = 0; i < len; i++) { - if ( - (dontConvert && array1[i] !== array2[i]) || - (!dontConvert && toInt(array1[i]) !== toInt(array2[i])) - ) { - diffs++; - } - } - return diffs + lengthDiff; + if (column.contentAlign) { + className = className + (' text-' + column.contentAlign); + } else if (column.textAlign) { + className = className + (' text-' + column.textAlign); } - - // FORMATTING - - function offset(token, separator) { - addFormatToken(token, 0, 0, function () { - var offset = this.utcOffset(), - sign = '+'; - if (offset < 0) { - offset = -offset; - sign = '-'; - } - return ( - sign + - zeroFill(~~(offset / 60), 2) + - separator + - zeroFill(~~offset % 60, 2) - ); - }); + if ((typeof text == 'string' || typeof text === 'number') && bodyDisplayInRow) { + title = text; } + if (expandIcon && expandIcon.props.expandable) { + className = className + (' ' + clsPrefix + '-has-expandIcon'); + } + if (colMenu) { + className += ' u-table-inline-icon'; + } + if (colSpan == 0) return null; + return _react2['default'].createElement( + 'td', + { + draggable: column.draggable, + colSpan: colSpan, + rowSpan: rowSpan, + className: className, + onClick: this.handleClick, + title: title, + onPaste: this.onPaste, + onMouseOver: this.onCellMouseOver, + style: _extends({ maxWidth: column.width, color: fontColor, backgroundColor: bgColor }, column.style) }, + indentText, + expandIcon, + text, + colMenu + ); + }; - offset('Z', ':'); - offset('ZZ', ''); - - // PARSING - - addRegexToken('Z', matchShortOffset); - addRegexToken('ZZ', matchShortOffset); - addParseToken(['Z', 'ZZ'], function (input, array, config) { - config._useUTC = true; - config._tzm = offsetFromString(matchShortOffset, input); - }); - - // HELPERS - - // timezone chunker - // '+10:00' > ['10', '00'] - // '-1530' > ['-15', '30'] - var chunkOffset = /([\+\-]|\d\d)/gi; + return TableCell; + }(_react.Component); - function offsetFromString(matcher, string) { - var matches = (string || '').match(matcher), - chunk, - parts, - minutes; + ; - if (matches === null) { - return null; - } + TableCell.propTypes = propTypes; - chunk = matches[matches.length - 1] || []; - parts = (chunk + '').match(chunkOffset) || ['-', 0, 0]; - minutes = +(parts[1] * 60) + toInt(parts[2]); + exports['default'] = TableCell; + module.exports = exports['default']; + +/***/ }), +/* 310 */ +/***/ (function(module, exports, __webpack_require__) { + + var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (root, factory){ + 'use strict'; - return minutes === 0 ? 0 : parts[0] === '+' ? minutes : -minutes; - } + /*istanbul ignore next:cant test*/ + if (typeof module === 'object' && typeof module.exports === 'object') { + module.exports = factory(); + } else if (true) { + // AMD. Register as an anonymous module. + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + } else { + // Browser globals + root.objectPath = factory(); + } + })(this, function(){ + 'use strict'; - // Return a moment from input, that is local/utc/zone equivalent to model. - function cloneWithOffset(input, model) { - var res, diff; - if (model._isUTC) { - res = model.clone(); - diff = - (isMoment(input) || isDate(input) - ? input.valueOf() - : createLocal(input).valueOf()) - res.valueOf(); - // Use low-level api, because this fn is low-level api. - res._d.setTime(res._d.valueOf() + diff); - hooks.updateOffset(res, false); - return res; - } else { - return createLocal(input).local(); - } + var toStr = Object.prototype.toString; + function hasOwnProperty(obj, prop) { + if(obj == null) { + return false } + //to handle objects with null prototypes (too edge case?) + return Object.prototype.hasOwnProperty.call(obj, prop) + } - function getDateOffset(m) { - // On Firefox.24 Date#getTimezoneOffset returns a floating point. - // https://github.com/moment/moment/pull/1871 - return -Math.round(m._d.getTimezoneOffset()); + function isEmpty(value){ + if (!value) { + return true; } - - // HOOKS - - // This function will be called whenever a moment is mutated. - // It is intended to keep the offset in sync with the timezone. - hooks.updateOffset = function () {}; - - // MOMENTS - - // keepLocalTime = true means only change the timezone, without - // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]--> - // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset - // +0200, so we adjust the time as needed, to be valid. - // - // Keeping the time actually adds/subtracts (one hour) - // from the actual represented time. That is why we call updateOffset - // a second time. In case it wants us to change the offset again - // _changeInProgress == true case, then we have to adjust, because - // there is no such time in the given timezone. - function getSetOffset(input, keepLocalTime, keepMinutes) { - var offset = this._offset || 0, - localAdjust; - if (!this.isValid()) { - return input != null ? this : NaN; - } - if (input != null) { - if (typeof input === 'string') { - input = offsetFromString(matchShortOffset, input); - if (input === null) { - return this; - } - } else if (Math.abs(input) < 16 && !keepMinutes) { - input = input * 60; - } - if (!this._isUTC && keepLocalTime) { - localAdjust = getDateOffset(this); - } - this._offset = input; - this._isUTC = true; - if (localAdjust != null) { - this.add(localAdjust, 'm'); - } - if (offset !== input) { - if (!keepLocalTime || this._changeInProgress) { - addSubtract( - this, - createDuration(input - offset, 'm'), - 1, - false - ); - } else if (!this._changeInProgress) { - this._changeInProgress = true; - hooks.updateOffset(this, true); - this._changeInProgress = null; - } + if (isArray(value) && value.length === 0) { + return true; + } else if (typeof value !== 'string') { + for (var i in value) { + if (hasOwnProperty(value, i)) { + return false; } - return this; - } else { - return this._isUTC ? offset : getDateOffset(this); } + return true; } + return false; + } - function getSetZone(input, keepLocalTime) { - if (input != null) { - if (typeof input !== 'string') { - input = -input; - } + function toString(type){ + return toStr.call(type); + } - this.utcOffset(input, keepLocalTime); + function isObject(obj){ + return typeof obj === 'object' && toString(obj) === "[object Object]"; + } - return this; - } else { - return -this.utcOffset(); - } - } + var isArray = Array.isArray || function(obj){ + /*istanbul ignore next:cant test*/ + return toStr.call(obj) === '[object Array]'; + } - function setOffsetToUTC(keepLocalTime) { - return this.utcOffset(0, keepLocalTime); + function isBoolean(obj){ + return typeof obj === 'boolean' || toString(obj) === '[object Boolean]'; + } + + function getKey(key){ + var intKey = parseInt(key); + if (intKey.toString() === key) { + return intKey; } + return key; + } - function setOffsetToLocal(keepLocalTime) { - if (this._isUTC) { - this.utcOffset(0, keepLocalTime); - this._isUTC = false; + function factory(options) { + options = options || {} - if (keepLocalTime) { - this.subtract(getDateOffset(this), 'm'); - } + var objectPath = function(obj) { + return Object.keys(objectPath).reduce(function(proxy, prop) { + if(prop === 'create') { + return proxy; } - return this; - } - function setOffsetToParsedOffset() { - if (this._tzm != null) { - this.utcOffset(this._tzm, false, true); - } else if (typeof this._i === 'string') { - var tZone = offsetFromString(matchOffset, this._i); - if (tZone != null) { - this.utcOffset(tZone); - } else { - this.utcOffset(0, true); - } + /*istanbul ignore else*/ + if (typeof objectPath[prop] === 'function') { + proxy[prop] = objectPath[prop].bind(objectPath, obj); } - return this; - } - function hasAlignedHourOffset(input) { - if (!this.isValid()) { - return false; - } - input = input ? createLocal(input).utcOffset() : 0; + return proxy; + }, {}); + }; - return (this.utcOffset() - input) % 60 === 0; + function hasShallowProperty(obj, prop) { + return (options.includeInheritedProps || (typeof prop === 'number' && Array.isArray(obj)) || hasOwnProperty(obj, prop)) } - function isDaylightSavingTime() { - return ( - this.utcOffset() > this.clone().month(0).utcOffset() || - this.utcOffset() > this.clone().month(5).utcOffset() - ); + function getShallowProperty(obj, prop) { + if (hasShallowProperty(obj, prop)) { + return obj[prop]; + } } - function isDaylightSavingTimeShifted() { - if (!isUndefined(this._isDSTShifted)) { - return this._isDSTShifted; + function set(obj, path, value, doNotReplace){ + if (typeof path === 'number') { + path = [path]; + } + if (!path || path.length === 0) { + return obj; + } + if (typeof path === 'string') { + return set(obj, path.split('.').map(getKey), value, doNotReplace); + } + var currentPath = path[0]; + var currentValue = getShallowProperty(obj, currentPath); + if (path.length === 1) { + if (currentValue === void 0 || !doNotReplace) { + obj[currentPath] = value; } + return currentValue; + } - var c = {}, - other; - - copyConfig(c, this); - c = prepareConfig(c); - - if (c._a) { - other = c._isUTC ? createUTC(c._a) : createLocal(c._a); - this._isDSTShifted = - this.isValid() && compareArrays(c._a, other.toArray()) > 0; + if (currentValue === void 0) { + //check if we assume an array + if(typeof path[1] === 'number') { + obj[currentPath] = []; } else { - this._isDSTShifted = false; + obj[currentPath] = {}; } + } - return this._isDSTShifted; + return set(obj[currentPath], path.slice(1), value, doNotReplace); } - function isLocal() { - return this.isValid() ? !this._isUTC : false; - } + objectPath.has = function (obj, path) { + if (typeof path === 'number') { + path = [path]; + } else if (typeof path === 'string') { + path = path.split('.'); + } - function isUtcOffset() { - return this.isValid() ? this._isUTC : false; - } + if (!path || path.length === 0) { + return !!obj; + } - function isUtc() { - return this.isValid() ? this._isUTC && this._offset === 0 : false; - } + for (var i = 0; i < path.length; i++) { + var j = getKey(path[i]); - // ASP.NET json date format regex - var aspNetRegex = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, - // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html - // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere - // and further modified to allow for strings containing both week and day - isoRegex = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/; + if((typeof j === 'number' && isArray(obj) && j < obj.length) || + (options.includeInheritedProps ? (j in Object(obj)) : hasOwnProperty(obj, j))) { + obj = obj[j]; + } else { + return false; + } + } - function createDuration(input, key) { - var duration = input, - // matching against regexp is expensive, do it on demand - match = null, - sign, - ret, - diffRes; + return true; + }; - if (isDuration(input)) { - duration = { - ms: input._milliseconds, - d: input._days, - M: input._months, - }; - } else if (isNumber(input) || !isNaN(+input)) { - duration = {}; - if (key) { - duration[key] = +input; - } else { - duration.milliseconds = +input; - } - } else if ((match = aspNetRegex.exec(input))) { - sign = match[1] === '-' ? -1 : 1; - duration = { - y: 0, - d: toInt(match[DATE]) * sign, - h: toInt(match[HOUR]) * sign, - m: toInt(match[MINUTE]) * sign, - s: toInt(match[SECOND]) * sign, - ms: toInt(absRound(match[MILLISECOND] * 1000)) * sign, // the millisecond decimal point is included in the match - }; - } else if ((match = isoRegex.exec(input))) { - sign = match[1] === '-' ? -1 : 1; - duration = { - y: parseIso(match[2], sign), - M: parseIso(match[3], sign), - w: parseIso(match[4], sign), - d: parseIso(match[5], sign), - h: parseIso(match[6], sign), - m: parseIso(match[7], sign), - s: parseIso(match[8], sign), - }; - } else if (duration == null) { - // checks for null or undefined - duration = {}; - } else if ( - typeof duration === 'object' && - ('from' in duration || 'to' in duration) - ) { - diffRes = momentsDifference( - createLocal(duration.from), - createLocal(duration.to) - ); + objectPath.ensureExists = function (obj, path, value){ + return set(obj, path, value, true); + }; - duration = {}; - duration.ms = diffRes.milliseconds; - duration.M = diffRes.months; - } + objectPath.set = function (obj, path, value, doNotReplace){ + return set(obj, path, value, doNotReplace); + }; - ret = new Duration(duration); + objectPath.insert = function (obj, path, value, at){ + var arr = objectPath.get(obj, path); + at = ~~at; + if (!isArray(arr)) { + arr = []; + objectPath.set(obj, path, arr); + } + arr.splice(at, 0, value); + }; - if (isDuration(input) && hasOwnProp(input, '_locale')) { - ret._locale = input._locale; - } + objectPath.empty = function(obj, path) { + if (isEmpty(path)) { + return void 0; + } + if (obj == null) { + return void 0; + } - if (isDuration(input) && hasOwnProp(input, '_isValid')) { - ret._isValid = input._isValid; - } + var value, i; + if (!(value = objectPath.get(obj, path))) { + return void 0; + } - return ret; - } + if (typeof value === 'string') { + return objectPath.set(obj, path, ''); + } else if (isBoolean(value)) { + return objectPath.set(obj, path, false); + } else if (typeof value === 'number') { + return objectPath.set(obj, path, 0); + } else if (isArray(value)) { + value.length = 0; + } else if (isObject(value)) { + for (i in value) { + if (hasShallowProperty(value, i)) { + delete value[i]; + } + } + } else { + return objectPath.set(obj, path, null); + } + }; - createDuration.fn = Duration.prototype; - createDuration.invalid = createInvalid$1; + objectPath.push = function (obj, path /*, values */){ + var arr = objectPath.get(obj, path); + if (!isArray(arr)) { + arr = []; + objectPath.set(obj, path, arr); + } - function parseIso(inp, sign) { - // We'd normally use ~~inp for this, but unfortunately it also - // converts floats to ints. - // inp may be undefined, so careful calling replace on it. - var res = inp && parseFloat(inp.replace(',', '.')); - // apply sign while we're at it - return (isNaN(res) ? 0 : res) * sign; - } + arr.push.apply(arr, Array.prototype.slice.call(arguments, 2)); + }; - function positiveMomentsDifference(base, other) { - var res = {}; + objectPath.coalesce = function (obj, paths, defaultValue) { + var value; - res.months = - other.month() - base.month() + (other.year() - base.year()) * 12; - if (base.clone().add(res.months, 'M').isAfter(other)) { - --res.months; + for (var i = 0, len = paths.length; i < len; i++) { + if ((value = objectPath.get(obj, paths[i])) !== void 0) { + return value; } + } - res.milliseconds = +other - +base.clone().add(res.months, 'M'); - - return res; - } + return defaultValue; + }; - function momentsDifference(base, other) { - var res; - if (!(base.isValid() && other.isValid())) { - return { milliseconds: 0, months: 0 }; - } + objectPath.get = function (obj, path, defaultValue){ + if (typeof path === 'number') { + path = [path]; + } + if (!path || path.length === 0) { + return obj; + } + if (obj == null) { + return defaultValue; + } + if (typeof path === 'string') { + return objectPath.get(obj, path.split('.'), defaultValue); + } - other = cloneWithOffset(other, base); - if (base.isBefore(other)) { - res = positiveMomentsDifference(base, other); - } else { - res = positiveMomentsDifference(other, base); - res.milliseconds = -res.milliseconds; - res.months = -res.months; - } + var currentPath = getKey(path[0]); + var nextObj = getShallowProperty(obj, currentPath) + if (nextObj === void 0) { + return defaultValue; + } - return res; - } + if (path.length === 1) { + return nextObj; + } - // TODO: remove 'name' arg after deprecation is removed - function createAdder(direction, name) { - return function (val, period) { - var dur, tmp; - //invert the arguments, but complain about it - if (period !== null && !isNaN(+period)) { - deprecateSimple( - name, - 'moment().' + - name + - '(period, number) is deprecated. Please use moment().' + - name + - '(number, period). ' + - 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.' - ); - tmp = val; - val = period; - period = tmp; - } + return objectPath.get(obj[currentPath], path.slice(1), defaultValue); + }; - dur = createDuration(val, period); - addSubtract(this, dur, direction); - return this; - }; - } + objectPath.del = function del(obj, path) { + if (typeof path === 'number') { + path = [path]; + } - function addSubtract(mom, duration, isAdding, updateOffset) { - var milliseconds = duration._milliseconds, - days = absRound(duration._days), - months = absRound(duration._months); + if (obj == null) { + return obj; + } - if (!mom.isValid()) { - // No op - return; - } + if (isEmpty(path)) { + return obj; + } + if(typeof path === 'string') { + return objectPath.del(obj, path.split('.')); + } - updateOffset = updateOffset == null ? true : updateOffset; + var currentPath = getKey(path[0]); + if (!hasShallowProperty(obj, currentPath)) { + return obj; + } - if (months) { - setMonth(mom, get(mom, 'Month') + months * isAdding); - } - if (days) { - set$1(mom, 'Date', get(mom, 'Date') + days * isAdding); - } - if (milliseconds) { - mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding); - } - if (updateOffset) { - hooks.updateOffset(mom, days || months); + if(path.length === 1) { + if (isArray(obj)) { + obj.splice(currentPath, 1); + } else { + delete obj[currentPath]; } + } else { + return objectPath.del(obj[currentPath], path.slice(1)); + } + + return obj; } - var add = createAdder(1, 'add'), - subtract = createAdder(-1, 'subtract'); + return objectPath; + } - function isString(input) { - return typeof input === 'string' || input instanceof String; - } + var mod = factory(); + mod.create = factory; + mod.withInheritedProps = factory({includeInheritedProps: true}) + return mod; + }); + + +/***/ }), +/* 311 */ +/***/ (function(module, exports) { + + 'use strict'; - // type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined - function isMomentInput(input) { - return ( - isMoment(input) || - isDate(input) || - isString(input) || - isNumber(input) || - isNumberOrStringArray(input) || - isMomentInputObject(input) || - input === null || - input === undefined - ); + module.exports = { + 'lang': 'zh-cn', + 'resetSettings': '还原设置', + 'include': '包含', + 'exclusive': '不包含', + 'equal': '等于', + 'unequal': '不等于', + 'begin': '以开始', + 'end': '以结尾', + 'greater_than': '大于', + 'great_than_equal_to': '大于等于', + 'less_than': '小于', + 'less_than_equal_to': '小于等于', + 'be_equal_to': '等于', + 'not_equal_to': '不等于', + "no_data": '暂无数据', + "bool_true": "是", + "bool_false": "否", + 'en-us': { + 'resetSettings': 'Reset', + 'include': 'Include', + 'exclusive': 'Not include', + 'equal': 'Equal to', + 'unequal': 'Not equal to', + 'begin': 'Begin with', + 'end': 'End with', + 'greater_than': 'Greater than', + 'great_than_equal_to': 'Greater than or equal to', + 'less_than': 'Less than', + 'less_than_equal_to': 'Less than or equal to', + 'be_equal_to': 'Equal to', + 'not_equal_to': 'Not equal to', + "no_data": 'No data', + "bool_true": "true", + "bool_false": "false" + }, + 'zh-tw': { + 'resetSettings': '還原設置', + 'include': '包含', + 'exclusive': '不包含', + 'equal': '等於', + 'unequal': '不等於', + 'begin': '以開始', + 'end': '以結尾', + 'greater_than': '大於', + 'great_than_equal_to': '大於等於', + 'less_than': '小於', + 'less_than_equal to': '小於等於', + 'be_equal_to': '等於', + 'not_equal_to': '不等於', + "no_data": '暫無數據', + "bool_true": "是", + "bool_false": "否" } + }; + +/***/ }), +/* 312 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - function isMomentInputObject(input) { - var objectTest = isObject(input) && !isObjectEmpty(input), - propertyTest = false, - properties = [ - 'years', - 'year', - 'y', - 'months', - 'month', - 'M', - 'days', - 'day', - 'd', - 'dates', - 'date', - 'D', - 'hours', - 'hour', - 'h', - 'minutes', - 'minute', - 'm', - 'seconds', - 'second', - 's', - 'milliseconds', - 'millisecond', - 'ms', - ], - i, - property; + Object.defineProperty(exports, "__esModule", { + value: true + }); - for (i = 0; i < properties.length; i += 1) { - property = properties[i]; - propertyTest = propertyTest || hasOwnProp(input, property); - } + var _Dropdown = __webpack_require__(313); - return objectTest && propertyTest; - } + var _Dropdown2 = _interopRequireDefault(_Dropdown); - function isNumberOrStringArray(input) { - var arrayTest = isArray(input), - dataTypeTest = false; - if (arrayTest) { - dataTypeTest = - input.filter(function (item) { - return !isNumber(item) && isString(input); - }).length === 0; - } - return arrayTest && dataTypeTest; - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - function isCalendarSpec(input) { - var objectTest = isObject(input) && !isObjectEmpty(input), - propertyTest = false, - properties = [ - 'sameDay', - 'nextDay', - 'lastDay', - 'nextWeek', - 'lastWeek', - 'sameElse', - ], - i, - property; + exports["default"] = _Dropdown2["default"]; + module.exports = exports['default']; + +/***/ }), +/* 313 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - for (i = 0; i < properties.length; i += 1) { - property = properties[i]; - propertyTest = propertyTest || hasOwnProp(input, property); - } + Object.defineProperty(exports, "__esModule", { + value: true + }); - return objectTest && propertyTest; - } + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - function getCalendarFormat(myMoment, now) { - var diff = myMoment.diff(now, 'days', true); - return diff < -6 - ? 'sameElse' - : diff < -1 - ? 'lastWeek' - : diff < 0 - ? 'lastDay' - : diff < 1 - ? 'sameDay' - : diff < 2 - ? 'nextDay' - : diff < 7 - ? 'nextWeek' - : 'sameElse'; - } + var _react = __webpack_require__(1); - function calendar$1(time, formats) { - // Support for single parameter, formats only overload to the calendar function - if (arguments.length === 1) { - if (isMomentInput(arguments[0])) { - time = arguments[0]; - formats = undefined; - } else if (isCalendarSpec(arguments[0])) { - formats = arguments[0]; - time = undefined; - } - } - // We want to compare the start of today, vs this. - // Getting start-of-today depends on whether we're local/utc/offset or not. - var now = time || createLocal(), - sod = cloneWithOffset(now, this).startOf('day'), - format = hooks.calendarFormat(this, sod) || 'sameElse', - output = - formats && - (isFunction(formats[format]) - ? formats[format].call(this, now) - : formats[format]); + var _react2 = _interopRequireDefault(_react); - return this.format( - output || this.localeData().calendar(format, this, createLocal(now)) - ); - } + var _reactDom = __webpack_require__(2); - function clone() { - return new Moment(this); - } + var _reactDom2 = _interopRequireDefault(_reactDom); - function isAfter(input, units) { - var localInput = isMoment(input) ? input : createLocal(input); - if (!(this.isValid() && localInput.isValid())) { - return false; - } - units = normalizeUnits(units) || 'millisecond'; - if (units === 'millisecond') { - return this.valueOf() > localInput.valueOf(); - } else { - return localInput.valueOf() < this.clone().startOf(units).valueOf(); - } - } + var _trigger = __webpack_require__(314); - function isBefore(input, units) { - var localInput = isMoment(input) ? input : createLocal(input); - if (!(this.isValid() && localInput.isValid())) { - return false; - } - units = normalizeUnits(units) || 'millisecond'; - if (units === 'millisecond') { - return this.valueOf() < localInput.valueOf(); - } else { - return this.clone().endOf(units).valueOf() < localInput.valueOf(); - } - } + var _trigger2 = _interopRequireDefault(_trigger); - function isBetween(from, to, units, inclusivity) { - var localFrom = isMoment(from) ? from : createLocal(from), - localTo = isMoment(to) ? to : createLocal(to); - if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) { - return false; - } - inclusivity = inclusivity || '()'; - return ( - (inclusivity[0] === '(' - ? this.isAfter(localFrom, units) - : !this.isBefore(localFrom, units)) && - (inclusivity[1] === ')' - ? this.isBefore(localTo, units) - : !this.isAfter(localTo, units)) - ); - } + var _placement = __webpack_require__(320); - function isSame(input, units) { - var localInput = isMoment(input) ? input : createLocal(input), - inputMs; - if (!(this.isValid() && localInput.isValid())) { - return false; - } - units = normalizeUnits(units) || 'millisecond'; - if (units === 'millisecond') { - return this.valueOf() === localInput.valueOf(); - } else { - inputMs = localInput.valueOf(); - return ( - this.clone().startOf(units).valueOf() <= inputMs && - inputMs <= this.clone().endOf(units).valueOf() - ); - } - } + var _placement2 = _interopRequireDefault(_placement); - function isSameOrAfter(input, units) { - return this.isSame(input, units) || this.isAfter(input, units); - } + var _propTypes = __webpack_require__(6); - function isSameOrBefore(input, units) { - return this.isSame(input, units) || this.isBefore(input, units); - } + var _propTypes2 = _interopRequireDefault(_propTypes); - function diff(input, units, asFloat) { - var that, zoneDelta, output; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - if (!this.isValid()) { - return NaN; - } + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - that = cloneWithOffset(input, this); + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - if (!that.isValid()) { - return NaN; - } + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4; + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - units = normalizeUnits(units); + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** + * This source code is quoted from rc-dropdown. + * homepage: https://github.com/react-component/dropdown + */ - switch (units) { - case 'year': - output = monthDiff(this, that) / 12; - break; - case 'month': - output = monthDiff(this, that); - break; - case 'quarter': - output = monthDiff(this, that) / 3; - break; - case 'second': - output = (this - that) / 1e3; - break; // 1000 - case 'minute': - output = (this - that) / 6e4; - break; // 1000 * 60 - case 'hour': - output = (this - that) / 36e5; - break; // 1000 * 60 * 60 - case 'day': - output = (this - that - zoneDelta) / 864e5; - break; // 1000 * 60 * 60 * 24, negate dst - case 'week': - output = (this - that - zoneDelta) / 6048e5; - break; // 1000 * 60 * 60 * 24 * 7, negate dst - default: - output = this - that; - } - return asFloat ? output : absFloor(output); - } + var propTypes = { + minOverlayWidthMatchTrigger: _propTypes2["default"].bool, + onVisibleChange: _propTypes2["default"].func, + clsPrefix: _propTypes2["default"].string, + children: _propTypes2["default"].any, + transitionName: _propTypes2["default"].string, + overlayClassName: _propTypes2["default"].string, + animation: _propTypes2["default"].any, + align: _propTypes2["default"].object, + overlayStyle: _propTypes2["default"].object, + placement: _propTypes2["default"].string, + trigger: _propTypes2["default"].array, + showAction: _propTypes2["default"].array, + hideAction: _propTypes2["default"].array, + getPopupContainer: _propTypes2["default"].func + }; - function monthDiff(a, b) { - if (a.date() < b.date()) { - // end-of-month calculations work correct when the start month has more - // days than the end month. - return -monthDiff(b, a); - } - // difference in months - var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month()), - // b is in (anchor - 1 month, anchor + 1 month) - anchor = a.clone().add(wholeMonthDiff, 'months'), - anchor2, - adjust; + var defaultProps = { + minOverlayWidthMatchTrigger: true, + clsPrefix: 'u-dropdown', + trigger: ['hover'], + showAction: [], + hideAction: [], + overlayClassName: '', + overlayStyle: {}, + defaultVisible: false, + onVisibleChange: function onVisibleChange() {}, - if (b - anchor < 0) { - anchor2 = a.clone().add(wholeMonthDiff - 1, 'months'); - // linear across the month - adjust = (b - anchor) / (anchor - anchor2); - } else { - anchor2 = a.clone().add(wholeMonthDiff + 1, 'months'); - // linear across the month - adjust = (b - anchor) / (anchor2 - anchor); - } + placement: 'bottomLeft' + }; - //check for negative zero, return zero if negative zero - return -(wholeMonthDiff + adjust) || 0; - } + var jadgeState = function jadgeState(props) { + if ('visible' in props) { + return props.visible; + } + return props.defaultVisible; + }; - hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ'; - hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]'; + var Dropdown = function (_React$Component) { + _inherits(Dropdown, _React$Component); - function toString() { - return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ'); - } + function Dropdown(props) { + _classCallCheck(this, Dropdown); - function toISOString(keepOffset) { - if (!this.isValid()) { - return null; - } - var utc = keepOffset !== true, - m = utc ? this.clone().utc() : this; - if (m.year() < 0 || m.year() > 9999) { - return formatMoment( - m, - utc - ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]' - : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ' - ); - } - if (isFunction(Date.prototype.toISOString)) { - // native implementation is ~50x faster, use it when we can - if (utc) { - return this.toDate().toISOString(); - } else { - return new Date(this.valueOf() + this.utcOffset() * 60 * 1000) - .toISOString() - .replace('Z', formatMoment(m, 'Z')); - } - } - return formatMoment( - m, - utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ' - ); - } + var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); - /** - * Return a human readable representation of a moment that can - * also be evaluated to get a new moment which is the same - * - * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects - */ - function inspect() { - if (!this.isValid()) { - return 'moment.invalid(/* ' + this._i + ' */)'; - } - var func = 'moment', - zone = '', - prefix, - year, - datetime, - suffix; - if (!this.isLocal()) { - func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone'; - zone = 'Z'; - } - prefix = '[' + func + '("]'; - year = 0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY'; - datetime = '-MM-DD[T]HH:mm:ss.SSS'; - suffix = zone + '[")]'; + _this.state = { + visible: jadgeState(_this.props) + }; + _this.onClick = _this.onClick.bind(_this); + _this.onVisibleChange = _this.onVisibleChange.bind(_this); + _this.getMenuElement = _this.getMenuElement.bind(_this); + _this.getPopupDomNode = _this.getPopupDomNode.bind(_this); + _this.afterVisibleChange = _this.afterVisibleChange.bind(_this); + + return _this; + } - return this.format(prefix + year + datetime + suffix); - } + Dropdown.prototype.componentWillReceiveProps = function componentWillReceiveProps(_ref) { + var visible = _ref.visible; - function format(inputString) { - if (!inputString) { - inputString = this.isUtc() - ? hooks.defaultFormatUtc - : hooks.defaultFormat; - } - var output = formatMoment(this, inputString); - return this.localeData().postformat(output); + if (visible !== undefined) { + this.setState({ + visible: visible + }); } + }; - function from(time, withoutSuffix) { - if ( - this.isValid() && - ((isMoment(time) && time.isValid()) || createLocal(time).isValid()) - ) { - return createDuration({ to: this, from: time }) - .locale(this.locale()) - .humanize(!withoutSuffix); - } else { - return this.localeData().invalidDate(); - } + Dropdown.prototype.onClick = function onClick(e) { + var props = this.props; + var overlayProps = props.overlay.props; + // do no call onVisibleChange, if you need click to hide, use onClick and control visible + if (!('visible' in props)) { + this.setState({ + visible: false + }); } - - function fromNow(withoutSuffix) { - return this.from(createLocal(), withoutSuffix); + if (overlayProps.onClick) { + overlayProps.onClick(e); } + }; - function to(time, withoutSuffix) { - if ( - this.isValid() && - ((isMoment(time) && time.isValid()) || createLocal(time).isValid()) - ) { - return createDuration({ from: this, to: time }) - .locale(this.locale()) - .humanize(!withoutSuffix); - } else { - return this.localeData().invalidDate(); - } + Dropdown.prototype.onVisibleChange = function onVisibleChange(visible) { + var props = this.props; + if (!('visible' in props)) { + this.setState({ + visible: visible + }); } + props.onVisibleChange(visible); + }; - function toNow(withoutSuffix) { - return this.to(createLocal(), withoutSuffix); - } + Dropdown.prototype.getMenuElement = function getMenuElement() { + var _props = this.props, + overlay = _props.overlay, + clsPrefix = _props.clsPrefix; - // If passed a locale key, it will set the locale for this - // instance. Otherwise, it will return the locale configuration - // variables for this instance. - function locale(key) { - var newLocaleData; - if (key === undefined) { - return this._locale._abbr; - } else { - newLocaleData = getLocale(key); - if (newLocaleData != null) { - this._locale = newLocaleData; - } - return this; - } + return _react2["default"].cloneElement(overlay, { + prefixCls: clsPrefix + '-menu', + onClick: this.onClick + }); + }; + + Dropdown.prototype.getPopupDomNode = function getPopupDomNode() { + return this.refs.trigger.getPopupDomNode(); + }; + + Dropdown.prototype.afterVisibleChange = function afterVisibleChange(visible) { + if (visible && this.props.minOverlayWidthMatchTrigger) { + var overlayNode = this.getPopupDomNode(); + var rootNode = _reactDom2["default"].findDOMNode(this); + if (rootNode.offsetWidth > overlayNode.offsetWidth) { + overlayNode.style['min-width'] = rootNode.offsetWidth + 'px'; + } } + }; - var lang = deprecate( - 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.', - function (key) { - if (key === undefined) { - return this.localeData(); - } else { - return this.locale(key); - } - } + Dropdown.prototype.render = function render() { + var _props2 = this.props, + clsPrefix = _props2.clsPrefix, + children = _props2.children, + transitionName = _props2.transitionName, + animation = _props2.animation, + align = _props2.align, + placement = _props2.placement, + getPopupContainer = _props2.getPopupContainer, + showAction = _props2.showAction, + hideAction = _props2.hideAction, + overlayClassName = _props2.overlayClassName, + overlayStyle = _props2.overlayStyle, + trigger = _props2.trigger, + getDocument = _props2.getDocument, + disabled = _props2.disabled, + delay = _props2.delay, + delayShow = _props2.delayShow, + delayHide = _props2.delayHide, + props = _objectWithoutProperties(_props2, ['clsPrefix', 'children', 'transitionName', 'animation', 'align', 'placement', 'getPopupContainer', 'showAction', 'hideAction', 'overlayClassName', 'overlayStyle', 'trigger', 'getDocument', 'disabled', 'delay', 'delayShow', 'delayHide']); + + return _react2["default"].createElement( + _trigger2["default"], + _extends({}, props, { + clsPrefix: clsPrefix, + ref: 'trigger', + popupClassName: overlayClassName, + popupStyle: overlayStyle, + builtinPlacements: _placement2["default"], + action: trigger, + showAction: showAction, + hideAction: hideAction, + popupPlacement: placement, + popupAlign: align, + popupTransitionName: transitionName, + popupAnimation: animation, + popupVisible: disabled ? false : this.state.visible, + afterPopupVisibleChange: this.afterVisibleChange, + popup: this.getMenuElement(), + onPopupVisibleChange: this.onVisibleChange, + getPopupContainer: getPopupContainer, + getDocument: getDocument, + mouseEnterDelay: delayShow && delayShow / 1000 || delay && delay / 1000, + mouseLeaveDelay: delayHide && delayHide / 1000 || delay && delay / 1000 + }), + children ); + }; - function localeData() { - return this._locale; - } + return Dropdown; + }(_react2["default"].Component); - var MS_PER_SECOND = 1000, - MS_PER_MINUTE = 60 * MS_PER_SECOND, - MS_PER_HOUR = 60 * MS_PER_MINUTE, - MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR; + ; - // actual modulo - handles negative numbers (for dates before 1970): - function mod$1(dividend, divisor) { - return ((dividend % divisor) + divisor) % divisor; - } + Dropdown.propTypes = propTypes; + Dropdown.defaultProps = defaultProps; - function localStartOfDate(y, m, d) { - // the date constructor remaps years 0-99 to 1900-1999 - if (y < 100 && y >= 0) { - // preserve leap years using a full 400 year cycle, then reset - return new Date(y + 400, m, d) - MS_PER_400_YEARS; - } else { - return new Date(y, m, d).valueOf(); - } - } + exports["default"] = Dropdown; + module.exports = exports['default']; + +/***/ }), +/* 314 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - function utcStartOfDate(y, m, d) { - // Date.UTC remaps years 0-99 to 1900-1999 - if (y < 100 && y >= 0) { - // preserve leap years using a full 400 year cycle, then reset - return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS; - } else { - return Date.UTC(y, m, d); - } - } + module.exports = __webpack_require__(315); + +/***/ }), +/* 315 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - function startOf(units) { - var time, startOfDate; - units = normalizeUnits(units); - if (units === undefined || units === 'millisecond' || !this.isValid()) { - return this; - } + Object.defineProperty(exports, "__esModule", { + value: true + }); - startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate; + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - switch (units) { - case 'year': - time = startOfDate(this.year(), 0, 1); - break; - case 'quarter': - time = startOfDate( - this.year(), - this.month() - (this.month() % 3), - 1 - ); - break; - case 'month': - time = startOfDate(this.year(), this.month(), 1); - break; - case 'week': - time = startOfDate( - this.year(), - this.month(), - this.date() - this.weekday() - ); - break; - case 'isoWeek': - time = startOfDate( - this.year(), - this.month(), - this.date() - (this.isoWeekday() - 1) - ); - break; - case 'day': - case 'date': - time = startOfDate(this.year(), this.month(), this.date()); - break; - case 'hour': - time = this._d.valueOf(); - time -= mod$1( - time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), - MS_PER_HOUR - ); - break; - case 'minute': - time = this._d.valueOf(); - time -= mod$1(time, MS_PER_MINUTE); - break; - case 'second': - time = this._d.valueOf(); - time -= mod$1(time, MS_PER_SECOND); - break; - } + var _react = __webpack_require__(1); - this._d.setTime(time); - hooks.updateOffset(this, true); - return this; - } + var _react2 = _interopRequireDefault(_react); - function endOf(units) { - var time, startOfDate; - units = normalizeUnits(units); - if (units === undefined || units === 'millisecond' || !this.isValid()) { - return this; - } + var _propTypes = __webpack_require__(6); - startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate; + var _propTypes2 = _interopRequireDefault(_propTypes); - switch (units) { - case 'year': - time = startOfDate(this.year() + 1, 0, 1) - 1; - break; - case 'quarter': - time = - startOfDate( - this.year(), - this.month() - (this.month() % 3) + 3, - 1 - ) - 1; - break; - case 'month': - time = startOfDate(this.year(), this.month() + 1, 1) - 1; - break; - case 'week': - time = - startOfDate( - this.year(), - this.month(), - this.date() - this.weekday() + 7 - ) - 1; - break; - case 'isoWeek': - time = - startOfDate( - this.year(), - this.month(), - this.date() - (this.isoWeekday() - 1) + 7 - ) - 1; - break; - case 'day': - case 'date': - time = startOfDate(this.year(), this.month(), this.date() + 1) - 1; - break; - case 'hour': - time = this._d.valueOf(); - time += - MS_PER_HOUR - - mod$1( - time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), - MS_PER_HOUR - ) - - 1; - break; - case 'minute': - time = this._d.valueOf(); - time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1; - break; - case 'second': - time = this._d.valueOf(); - time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1; - break; - } + var _reactDom = __webpack_require__(2); - this._d.setTime(time); - hooks.updateOffset(this, true); - return this; - } + var _reactDom2 = _interopRequireDefault(_reactDom); - function valueOf() { - return this._d.valueOf() - (this._offset || 0) * 60000; - } + var _contains = __webpack_require__(99); - function unix() { - return Math.floor(this.valueOf() / 1000); - } + var _contains2 = _interopRequireDefault(_contains); - function toDate() { - return new Date(this.valueOf()); - } + var _tinperBeeCore = __webpack_require__(27); - function toArray() { - var m = this; - return [ - m.year(), - m.month(), - m.date(), - m.hour(), - m.minute(), - m.second(), - m.millisecond(), - ]; - } + var _Popup = __webpack_require__(316); - function toObject() { - var m = this; - return { - years: m.year(), - months: m.month(), - date: m.date(), - hours: m.hours(), - minutes: m.minutes(), - seconds: m.seconds(), - milliseconds: m.milliseconds(), - }; - } + var _Popup2 = _interopRequireDefault(_Popup); - function toJSON() { - // new Date(NaN).toJSON() === null - return this.isValid() ? this.toISOString() : null; - } + var _utils = __webpack_require__(319); - function isValid$2() { - return isValid(this); - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - function parsingFlags() { - return extend({}, getParsingFlags(this)); - } + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - function invalidAt() { - return getParsingFlags(this).overflow; - } + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - function creationData() { - return { - input: this._i, - format: this._f, - locale: this._locale, - isUTC: this._isUTC, - strict: this._strict, - }; - } + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - addFormatToken('N', 0, 0, 'eraAbbr'); - addFormatToken('NN', 0, 0, 'eraAbbr'); - addFormatToken('NNN', 0, 0, 'eraAbbr'); - addFormatToken('NNNN', 0, 0, 'eraName'); - addFormatToken('NNNNN', 0, 0, 'eraNarrow'); + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** + * This source code is quoted from rc-trigger. + * homepage: https://github.com/react-component/trigger + */ - addFormatToken('y', ['y', 1], 'yo', 'eraYear'); - addFormatToken('y', ['yy', 2], 0, 'eraYear'); - addFormatToken('y', ['yyy', 3], 0, 'eraYear'); - addFormatToken('y', ['yyyy', 4], 0, 'eraYear'); - addRegexToken('N', matchEraAbbr); - addRegexToken('NN', matchEraAbbr); - addRegexToken('NNN', matchEraAbbr); - addRegexToken('NNNN', matchEraName); - addRegexToken('NNNNN', matchEraNarrow); + //import getContainerRenderMixin from './getContainerRenderMixin'; - addParseToken(['N', 'NN', 'NNN', 'NNNN', 'NNNNN'], function ( - input, - array, - config, - token - ) { - var era = config._locale.erasParse(input, token, config._strict); - if (era) { - getParsingFlags(config).era = era; - } else { - getParsingFlags(config).invalidEra = input; - } - }); + function noop() {} - addRegexToken('y', matchUnsigned); - addRegexToken('yy', matchUnsigned); - addRegexToken('yyy', matchUnsigned); - addRegexToken('yyyy', matchUnsigned); - addRegexToken('yo', matchEraYearOrdinal); + function returnEmptyString() { + return ''; + } - addParseToken(['y', 'yy', 'yyy', 'yyyy'], YEAR); - addParseToken(['yo'], function (input, array, config, token) { - var match; - if (config._locale._eraYearOrdinalRegex) { - match = input.match(config._locale._eraYearOrdinalRegex); - } + var ALL_HANDLERS = ['onClick', 'onMouseDown', 'onTouchStart', 'onMouseEnter', 'onMouseLeave', 'onFocus', 'onBlur']; - if (config._locale.eraYearOrdinalParse) { - array[YEAR] = config._locale.eraYearOrdinalParse(input, match); - } else { - array[YEAR] = parseInt(input, 10); - } - }); + var propTypes = { + children: _propTypes2["default"].any, + action: _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].arrayOf(_propTypes2["default"].string)]), + showAction: _propTypes2["default"].any, + hideAction: _propTypes2["default"].any, + getPopupClassNameFromAlign: _propTypes2["default"].any, + onPopupVisibleChange: _propTypes2["default"].func, + afterPopupVisibleChange: _propTypes2["default"].func, + popup: _propTypes2["default"].oneOfType([_propTypes2["default"].node, _propTypes2["default"].func]).isRequired, + popupStyle: _propTypes2["default"].object, + clsPrefix: _propTypes2["default"].string, + popupClassName: _propTypes2["default"].string, + popupPlacement: _propTypes2["default"].string, + builtinPlacements: _propTypes2["default"].object, + popupTransitionName: _propTypes2["default"].string, + popupAnimation: _propTypes2["default"].any, + mouseEnterDelay: _propTypes2["default"].number, + mouseLeaveDelay: _propTypes2["default"].number, + zIndex: _propTypes2["default"].number, + focusDelay: _propTypes2["default"].number, + blurDelay: _propTypes2["default"].number, + getPopupContainer: _propTypes2["default"].func, + destroyPopupOnHide: _propTypes2["default"].bool, + mask: _propTypes2["default"].bool, + maskClosable: _propTypes2["default"].bool, + onPopupAlign: _propTypes2["default"].func, + popupAlign: _propTypes2["default"].object, + popupVisible: _propTypes2["default"].bool, + maskTransitionName: _propTypes2["default"].string, + maskAnimation: _propTypes2["default"].string, + getDocument: _propTypes2["default"].func, //获得点击消失的document对象,适用于getPopupContainer渲染到非当前document情况,例如iframe + popData: _propTypes2["default"].object //弹窗层自定义属性 + }; - function localeEras(m, format) { - var i, - l, - date, - eras = this._eras || getLocale('en')._eras; - for (i = 0, l = eras.length; i < l; ++i) { - switch (typeof eras[i].since) { - case 'string': - // truncate time - date = hooks(eras[i].since).startOf('day'); - eras[i].since = date.valueOf(); - break; - } + var defaultProps = { + clsPrefix: 'rc-trigger-popup', + getPopupClassNameFromAlign: returnEmptyString, + onPopupVisibleChange: noop, + afterPopupVisibleChange: noop, + onPopupAlign: noop, + popupClassName: '', + mouseEnterDelay: 0, + mouseLeaveDelay: 0.1, + focusDelay: 0, + blurDelay: 0.15, + popupStyle: {}, + destroyPopupOnHide: false, + popupAlign: {}, + defaultPopupVisible: false, + mask: false, + maskClosable: true, + action: [], + showAction: [], + hideAction: [], + getDocument: function getDocument() { + return document; + }, + popData: {} + }; - switch (typeof eras[i].until) { - case 'undefined': - eras[i].until = +Infinity; - break; - case 'string': - // truncate time - date = hooks(eras[i].until).startOf('day').valueOf(); - eras[i].until = date.valueOf(); - break; - } - } - return eras; - } + var Trigger = function (_Component) { + _inherits(Trigger, _Component); - function localeErasParse(eraName, format, strict) { - var i, - l, - eras = this.eras(), - name, - abbr, - narrow; - eraName = eraName.toUpperCase(); + function Trigger(props) { + _classCallCheck(this, Trigger); - for (i = 0, l = eras.length; i < l; ++i) { - name = eras[i].name.toUpperCase(); - abbr = eras[i].abbr.toUpperCase(); - narrow = eras[i].narrow.toUpperCase(); + var _this = _possibleConstructorReturn(this, _Component.call(this, props)); - if (strict) { - switch (format) { - case 'N': - case 'NN': - case 'NNN': - if (abbr === eraName) { - return eras[i]; - } - break; + _this.getDocument = function () { + var doc = document; + if (_this.props.getDocument) doc = _this.props.getDocument(); + return doc; + }; - case 'NNNN': - if (name === eraName) { - return eras[i]; - } - break; + _this.bindDocument = function () { + var doc = document; + if (_this.props.getDocument) { + doc = _this.props.getDocument(); + } + if (Array.isArray(doc)) { + var doc1 = doc[0]; + var doc2 = doc[1]; + _this.clickOutsideHandler = (0, _tinperBeeCore.addEventListener)(doc1, 'mousedown', _this.onDocumentClick); + _this.touchOutsideHandler = (0, _tinperBeeCore.addEventListener)(doc1, 'touchstart', _this.onDocumentClick); + _this.mouseWheelOutsideHandler = (0, _tinperBeeCore.addEventListener)(doc1, 'mousewheel', _this.onDocumentClick); + _this.clickOutsideHandlerIframe = (0, _tinperBeeCore.addEventListener)(doc2, 'mousedown', _this.onDocumentClick); + _this.touchOutsideHandlerIframe = (0, _tinperBeeCore.addEventListener)(doc2, 'touchstart', _this.onDocumentClick); + _this.mouseWheelOutsideHandlerIframe = (0, _tinperBeeCore.addEventListener)(doc2, 'mousewheel', _this.onDocumentClick); + } else { + _this.clickOutsideHandler = (0, _tinperBeeCore.addEventListener)(doc, 'mousedown', _this.onDocumentClick); + _this.touchOutsideHandler = (0, _tinperBeeCore.addEventListener)(doc, 'touchstart', _this.onDocumentClick); + _this.mouseWheelOutsideHandler = (0, _tinperBeeCore.addEventListener)(doc, 'mousewheel', _this.onDocumentClick); + } + }; - case 'NNNNN': - if (narrow === eraName) { - return eras[i]; - } - break; - } - } else if ([name, abbr, narrow].indexOf(eraName) >= 0) { - return eras[i]; - } - } - } + _this.removeDocument = function () { + var doc = document; + if (_this.props.getDocument) { + doc = _this.props.getDocument(); + } + if (Array.isArray(doc)) { + _this.clickOutsideHandler.remove(); + _this.touchOutsideHandler.remove(); + _this.mouseWheelOutsideHandler.remove(); + _this.clickOutsideHandlerIframe.remove(); + _this.touchOutsideHandlerIframe.remove(); + _this.mouseWheelOutsideHandlerIframe.remove(); + _this.clickOutsideHandler = null; + _this.touchOutsideHandler = null; + _this.mouseWheelOutsideHandler = null; + _this.clickOutsideHandlerIframe = null; + _this.touchOutsideHandlerIframe = null; + _this.mouseWheelOutsideHandlerIframe = null; + } else { + _this.clickOutsideHandler.remove(); + _this.touchOutsideHandler.remove(); + _this.mouseWheelOutsideHandler.remove(); + _this.clickOutsideHandler = null; + _this.touchOutsideHandler = null; + _this.mouseWheelOutsideHandler = null; + } + }; - function localeErasConvertYear(era, year) { - var dir = era.since <= era.until ? +1 : -1; - if (year === undefined) { - return hooks(era.since).year(); - } else { - return hooks(era.since).year() + (year - era.offset) * dir; - } - } + _this.state = { + popupVisible: !!_this.props.popupVisible || _this.props.defaultPopupVisible + //this.removeContainer = this.removeContainer.bind(this); + };_this.getContainer = _this.getContainer.bind(_this); + _this.renderComponent = _this.renderComponent.bind(_this); + _this.isVisible = _this.isVisible.bind(_this); - function getEraName() { - var i, - l, - val, - eras = this.localeData().eras(); - for (i = 0, l = eras.length; i < l; ++i) { - // truncate time - val = this.startOf('day').valueOf(); + _this.onMouseEnter = _this.onMouseEnter.bind(_this); + _this.onMouseLeave = _this.onMouseLeave.bind(_this); + _this.onPopupMouseEnter = _this.onPopupMouseEnter.bind(_this); + _this.onPopupMouseLeave = _this.onPopupMouseLeave.bind(_this); + _this.onFocus = _this.onFocus.bind(_this); - if (eras[i].since <= val && val <= eras[i].until) { - return eras[i].name; - } - if (eras[i].until <= val && val <= eras[i].since) { - return eras[i].name; - } - } + _this.onMouseDown = _this.onMouseDown.bind(_this); + _this.onTouchStart = _this.onTouchStart.bind(_this); + _this.onBlur = _this.onBlur.bind(_this); + _this.onDocumentClick = _this.onDocumentClick.bind(_this); + _this.getPopupDomNode = _this.getPopupDomNode.bind(_this); - return ''; - } + _this.getRootDomNode = _this.getRootDomNode.bind(_this); + _this.getPopupClassNameFromAlign = _this.getPopupClassNameFromAlign.bind(_this); + _this.getPopupAlign = _this.getPopupAlign.bind(_this); + _this.getComponent = _this.getComponent.bind(_this); + _this.setPopupVisible = _this.setPopupVisible.bind(_this); - function getEraNarrow() { - var i, - l, - val, - eras = this.localeData().eras(); - for (i = 0, l = eras.length; i < l; ++i) { - // truncate time - val = this.startOf('day').valueOf(); + _this.delaySetPopupVisible = _this.delaySetPopupVisible.bind(_this); + _this.clearDelayTimer = _this.clearDelayTimer.bind(_this); + _this.createTwoChains = _this.createTwoChains.bind(_this); + _this.isClickToShow = _this.isClickToShow.bind(_this); + _this.isClickToHide = _this.isClickToHide.bind(_this); - if (eras[i].since <= val && val <= eras[i].until) { - return eras[i].narrow; - } - if (eras[i].until <= val && val <= eras[i].since) { - return eras[i].narrow; - } - } + _this.isMouseEnterToShow = _this.isMouseEnterToShow.bind(_this); + _this.isMouseLeaveToHide = _this.isMouseLeaveToHide.bind(_this); + _this.isFocusToShow = _this.isFocusToShow.bind(_this); + _this.isBlurToHide = _this.isBlurToHide.bind(_this); + _this.forcePopupAlign = _this.forcePopupAlign.bind(_this); - return ''; - } + _this.fireEvents = _this.fireEvents.bind(_this); + _this.close = _this.close.bind(_this); + _this.onClick = _this.onClick.bind(_this); + return _this; + } - function getEraAbbr() { - var i, - l, - val, - eras = this.localeData().eras(); - for (i = 0, l = eras.length; i < l; ++i) { - // truncate time - val = this.startOf('day').valueOf(); + Trigger.prototype.isVisible = function isVisible(instance) { + return instance.state.popupVisible; + }; - if (eras[i].since <= val && val <= eras[i].until) { - return eras[i].abbr; - } - if (eras[i].until <= val && val <= eras[i].since) { - return eras[i].abbr; - } - } + Trigger.prototype.getContainer = function getContainer(instance) { + var popupContainer = document.createElement('div'); + var mountNode = instance.props.getPopupContainer ? instance.props.getPopupContainer((0, _reactDom.findDOMNode)(instance)) : document.body; + mountNode.appendChild(popupContainer); + return popupContainer; + }; - return ''; + Trigger.prototype.renderComponent = function renderComponent(instance, componentArg, ready) { + if (instance._component || this.isVisible(instance)) { + if (!instance._container) { + instance._container = this.getContainer(instance); + } + var component = instance.getComponent(componentArg); + _reactDom2["default"].unstable_renderSubtreeIntoContainer(instance, component, instance._container, function callback() { + instance._component = this; + if (ready) { + ready.call(this); + } + }); } + }; - function getEraYear() { - var i, - l, - dir, - val, - eras = this.localeData().eras(); - for (i = 0, l = eras.length; i < l; ++i) { - dir = eras[i].since <= eras[i].until ? +1 : -1; + Trigger.prototype.componentWillMount = function componentWillMount() { + var _this2 = this; - // truncate time - val = this.startOf('day').valueOf(); + this.mounted = false; + ALL_HANDLERS.forEach(function (h) { + _this2['fire' + h] = function (e) { + _this2.fireEvents(h, e); + }; + }); + }; - if ( - (eras[i].since <= val && val <= eras[i].until) || - (eras[i].until <= val && val <= eras[i].since) - ) { - return ( - (this.year() - hooks(eras[i].since).year()) * dir + - eras[i].offset - ); - } - } + Trigger.prototype.componentDidMount = function componentDidMount() { + this.mounted = true; + this.componentDidUpdate({}, { + popupVisible: this.state.popupVisible + }); + }; - return this.year(); + Trigger.prototype.componentWillReceiveProps = function componentWillReceiveProps(_ref) { + var popupVisible = _ref.popupVisible; + + if (popupVisible !== undefined) { + this.setState({ + popupVisible: popupVisible + }); } + }; - function erasNameRegex(isStrict) { - if (!hasOwnProp(this, '_erasNameRegex')) { - computeErasParse.call(this); + Trigger.prototype.componentDidUpdate = function componentDidUpdate(_, prevState) { + var props = this.props; + var state = this.state; + this.renderComponent(this, null, function () { + if (prevState.popupVisible !== state.popupVisible) { + props.afterPopupVisibleChange(state.popupVisible); + } + }); + if (this.isClickToHide()) { + if (state.popupVisible) { + if (!this.clickOutsideHandler) { + this.bindDocument(); } - return isStrict ? this._erasNameRegex : this._erasRegex; + return; + } + } + if (this.clickOutsideHandler) { + this.removeDocument(); } + }; - function erasAbbrRegex(isStrict) { - if (!hasOwnProp(this, '_erasAbbrRegex')) { - computeErasParse.call(this); - } - return isStrict ? this._erasAbbrRegex : this._erasRegex; + Trigger.prototype.componentWillUnmount = function componentWillUnmount() { + this.clearDelayTimer(); + if (this.clickOutsideHandler) { + this.removeDocument(); + } + if (this._container) { + _reactDom2["default"].unmountComponentAtNode(this._container); } - function erasNarrowRegex(isStrict) { - if (!hasOwnProp(this, '_erasNarrowRegex')) { - computeErasParse.call(this); - } - return isStrict ? this._erasNarrowRegex : this._erasRegex; + //this.removeContainer(); + }; + + Trigger.prototype.onMouseEnter = function onMouseEnter(e) { + this.fireEvents('onMouseEnter', e); + this.delaySetPopupVisible(true, this.props.mouseEnterDelay); + }; + + Trigger.prototype.onMouseLeave = function onMouseLeave(e) { + this.fireEvents('onMouseLeave', e); + this.delaySetPopupVisible(false, this.props.mouseLeaveDelay); + }; + + Trigger.prototype.onPopupMouseEnter = function onPopupMouseEnter() { + this.clearDelayTimer(); + }; + + Trigger.prototype.onPopupMouseLeave = function onPopupMouseLeave(e) { + // https://github.com/react-component/trigger/pull/13 + // react bug? + if (e.relatedTarget && !e.relatedTarget.setTimeout && this._component && (0, _contains2["default"])(this._component.getPopupDomNode(), e.relatedTarget)) { + return; } + this.delaySetPopupVisible(false, this.props.mouseLeaveDelay); + }; - function matchEraAbbr(isStrict, locale) { - return locale.erasAbbrRegex(isStrict); + Trigger.prototype.onFocus = function onFocus(e) { + this.fireEvents('onFocus', e); + // incase focusin and focusout + this.clearDelayTimer(); + if (this.isFocusToShow()) { + this.focusTime = Date.now(); + this.delaySetPopupVisible(true, this.props.focusDelay); } + }; - function matchEraName(isStrict, locale) { - return locale.erasNameRegex(isStrict); + Trigger.prototype.onMouseDown = function onMouseDown(e) { + this.fireEvents('onMouseDown', e); + this.preClickTime = Date.now(); + }; + + Trigger.prototype.onTouchStart = function onTouchStart(e) { + this.fireEvents('onTouchStart', e); + this.preTouchTime = Date.now(); + }; + + Trigger.prototype.onBlur = function onBlur(e) { + this.fireEvents('onBlur', e); + this.clearDelayTimer(); + if (this.isBlurToHide()) { + this.delaySetPopupVisible(false, this.props.blurDelay); } + }; - function matchEraNarrow(isStrict, locale) { - return locale.erasNarrowRegex(isStrict); + Trigger.prototype.onClick = function onClick(event) { + this.fireEvents('onClick', event); + // focus will trigger click + if (this.focusTime) { + var preTime = void 0; + if (this.preClickTime && this.preTouchTime) { + preTime = Math.min(this.preClickTime, this.preTouchTime); + } else if (this.preClickTime) { + preTime = this.preClickTime; + } else if (this.preTouchTime) { + preTime = this.preTouchTime; + } + if (Math.abs(preTime - this.focusTime) < 20) { + return; + } + this.focusTime = 0; } + this.preClickTime = 0; + this.preTouchTime = 0; + event.preventDefault(); + var nextVisible = !this.state.popupVisible; + if (this.isClickToHide() && !nextVisible || nextVisible && this.isClickToShow()) { + this.setPopupVisible(!this.state.popupVisible); + } + }; - function matchEraYearOrdinal(isStrict, locale) { - return locale._eraYearOrdinalRegex || matchUnsigned; + Trigger.prototype.onDocumentClick = function onDocumentClick(event) { + if (this.props.mask && !this.props.maskClosable) { + return; + } + var target = event.target; + var root = (0, _reactDom.findDOMNode)(this); + var popupNode = this.getPopupDomNode(); + if (!(0, _contains2["default"])(root, target) && !(0, _contains2["default"])(popupNode, target)) { + this.close(); } + }; - function computeErasParse() { - var abbrPieces = [], - namePieces = [], - narrowPieces = [], - mixedPieces = [], - i, - l, - eras = this.eras(); + Trigger.prototype.getPopupDomNode = function getPopupDomNode() { + // for test + if (this._component) { + return this.mounted ? this._component.getPopupDomNode() : null; + } + return null; + }; - for (i = 0, l = eras.length; i < l; ++i) { - namePieces.push(regexEscape(eras[i].name)); - abbrPieces.push(regexEscape(eras[i].abbr)); - narrowPieces.push(regexEscape(eras[i].narrow)); + Trigger.prototype.getRootDomNode = function getRootDomNode() { + return _reactDom2["default"].findDOMNode(this); + }; - mixedPieces.push(regexEscape(eras[i].name)); - mixedPieces.push(regexEscape(eras[i].abbr)); - mixedPieces.push(regexEscape(eras[i].narrow)); - } + Trigger.prototype.getPopupClassNameFromAlign = function getPopupClassNameFromAlign(align) { + var className = []; + var props = this.props; + var popupPlacement = props.popupPlacement, + builtinPlacements = props.builtinPlacements, + clsPrefix = props.clsPrefix; - this._erasRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i'); - this._erasNameRegex = new RegExp('^(' + namePieces.join('|') + ')', 'i'); - this._erasAbbrRegex = new RegExp('^(' + abbrPieces.join('|') + ')', 'i'); - this._erasNarrowRegex = new RegExp( - '^(' + narrowPieces.join('|') + ')', - 'i' - ); + if (popupPlacement && builtinPlacements) { + className.push((0, _utils.getPopupClassNameFromAlign)(builtinPlacements, clsPrefix, align)); + } + if (props.getPopupClassNameFromAlign) { + className.push(props.getPopupClassNameFromAlign(align)); + } + return className.join(' '); + }; + + Trigger.prototype.getPopupAlign = function getPopupAlign() { + var props = this.props; + var popupPlacement = props.popupPlacement, + popupAlign = props.popupAlign, + builtinPlacements = props.builtinPlacements; + + if (popupPlacement && builtinPlacements) { + return (0, _utils.getAlignFromPlacement)(builtinPlacements, popupPlacement, popupAlign); + } + return popupAlign; + }; + + Trigger.prototype.getComponent = function getComponent() { + var props = this.props, + state = this.state; + + var mouseProps = {}; + if (this.isMouseEnterToShow()) { + mouseProps.onMouseEnter = this.onPopupMouseEnter; + } + if (this.isMouseLeaveToHide()) { + mouseProps.onMouseLeave = this.onPopupMouseLeave; + } + return _react2["default"].createElement( + _Popup2["default"], + _extends({ + clsPrefix: props.clsPrefix, + destroyPopupOnHide: props.destroyPopupOnHide, + visible: state.popupVisible, + className: props.popupClassName, + action: props.action, + align: this.getPopupAlign(), + onAlign: props.onPopupAlign, + animation: props.popupAnimation, + getClassNameFromAlign: this.getPopupClassNameFromAlign + }, mouseProps, { + getRootDomNode: this.getRootDomNode, + style: props.popupStyle, + mask: props.mask, + zIndex: props.zIndex, + transitionName: props.popupTransitionName, + maskAnimation: props.maskAnimation, + maskTransitionName: props.maskTransitionName, + popData: props.popData + }), + typeof props.popup === 'function' ? props.popup() : props.popup + ); + }; + + Trigger.prototype.setPopupVisible = function setPopupVisible(popupVisible) { + this.clearDelayTimer(); + if (this.state.popupVisible !== popupVisible) { + if (!('popupVisible' in this.props)) { + this.setState({ + popupVisible: popupVisible + }); + } + this.props.onPopupVisibleChange(popupVisible); } + }; - // FORMATTING + Trigger.prototype.delaySetPopupVisible = function delaySetPopupVisible(visible, delayS) { + var _this3 = this; - addFormatToken(0, ['gg', 2], 0, function () { - return this.weekYear() % 100; - }); + var delay = delayS * 1000; + this.clearDelayTimer(); + if (delay) { + this.delayTimer = setTimeout(function () { + _this3.setPopupVisible(visible); + _this3.clearDelayTimer(); + }, delay); + } else { + this.setPopupVisible(visible); + } + }; - addFormatToken(0, ['GG', 2], 0, function () { - return this.isoWeekYear() % 100; - }); + Trigger.prototype.clearDelayTimer = function clearDelayTimer() { + if (this.delayTimer) { + clearTimeout(this.delayTimer); + this.delayTimer = null; + } + }; - function addWeekYearFormatToken(token, getter) { - addFormatToken(0, [token, token.length], 0, getter); + Trigger.prototype.createTwoChains = function createTwoChains(event) { + var childPros = this.props.children.props; + var props = this.props; + if (childPros[event] && props[event]) { + return this['fire' + event]; } + return childPros[event] || props[event]; + }; - addWeekYearFormatToken('gggg', 'weekYear'); - addWeekYearFormatToken('ggggg', 'weekYear'); - addWeekYearFormatToken('GGGG', 'isoWeekYear'); - addWeekYearFormatToken('GGGGG', 'isoWeekYear'); + Trigger.prototype.isClickToShow = function isClickToShow() { + var _props = this.props, + action = _props.action, + showAction = _props.showAction; - // ALIASES + return action.indexOf('click') !== -1 || showAction.indexOf('click') !== -1; + }; - addUnitAlias('weekYear', 'gg'); - addUnitAlias('isoWeekYear', 'GG'); + Trigger.prototype.isClickToHide = function isClickToHide() { + var _props2 = this.props, + action = _props2.action, + hideAction = _props2.hideAction; - // PRIORITY + return action.indexOf('click') !== -1 || hideAction.indexOf('click') !== -1; + }; - addUnitPriority('weekYear', 1); - addUnitPriority('isoWeekYear', 1); + Trigger.prototype.isMouseEnterToShow = function isMouseEnterToShow() { + var _props3 = this.props, + action = _props3.action, + showAction = _props3.showAction; - // PARSING + return action.indexOf('hover') !== -1 || showAction.indexOf('mouseEnter') !== -1; + }; - addRegexToken('G', matchSigned); - addRegexToken('g', matchSigned); - addRegexToken('GG', match1to2, match2); - addRegexToken('gg', match1to2, match2); - addRegexToken('GGGG', match1to4, match4); - addRegexToken('gggg', match1to4, match4); - addRegexToken('GGGGG', match1to6, match6); - addRegexToken('ggggg', match1to6, match6); + Trigger.prototype.isMouseLeaveToHide = function isMouseLeaveToHide() { + var _props4 = this.props, + action = _props4.action, + hideAction = _props4.hideAction; - addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function ( - input, - week, - config, - token - ) { - week[token.substr(0, 2)] = toInt(input); - }); + return action.indexOf('hover') !== -1 || hideAction.indexOf('mouseLeave') !== -1; + }; - addWeekParseToken(['gg', 'GG'], function (input, week, config, token) { - week[token] = hooks.parseTwoDigitYear(input); - }); + Trigger.prototype.isFocusToShow = function isFocusToShow() { + var _props5 = this.props, + action = _props5.action, + showAction = _props5.showAction; - // MOMENTS + return action.indexOf('focus') !== -1 || showAction.indexOf('focus') !== -1; + }; - function getSetWeekYear(input) { - return getSetWeekYearHelper.call( - this, - input, - this.week(), - this.weekday(), - this.localeData()._week.dow, - this.localeData()._week.doy - ); - } + Trigger.prototype.isBlurToHide = function isBlurToHide() { + var _props6 = this.props, + action = _props6.action, + hideAction = _props6.hideAction; - function getSetISOWeekYear(input) { - return getSetWeekYearHelper.call( - this, - input, - this.isoWeek(), - this.isoWeekday(), - 1, - 4 - ); - } + return action.indexOf('focus') !== -1 || hideAction.indexOf('blur') !== -1; + }; - function getISOWeeksInYear() { - return weeksInYear(this.year(), 1, 4); + Trigger.prototype.forcePopupAlign = function forcePopupAlign() { + if (this.state.popupVisible && this.popupInstance && this.popupInstance.alignInstance) { + this.popupInstance.alignInstance.forceAlign(); } + }; - function getISOWeeksInISOWeekYear() { - return weeksInYear(this.isoWeekYear(), 1, 4); + Trigger.prototype.fireEvents = function fireEvents(type, e) { + var childCallback = this.props.children.props[type]; + if (childCallback) { + childCallback(e); } - - function getWeeksInYear() { - var weekInfo = this.localeData()._week; - return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy); + var callback = this.props[type]; + if (callback) { + callback(e); } + }; - function getWeeksInWeekYear() { - var weekInfo = this.localeData()._week; - return weeksInYear(this.weekYear(), weekInfo.dow, weekInfo.doy); - } + Trigger.prototype.close = function close() { + this.setPopupVisible(false); + }; - function getSetWeekYearHelper(input, week, weekday, dow, doy) { - var weeksTarget; - if (input == null) { - return weekOfYear(this, dow, doy).year; - } else { - weeksTarget = weeksInYear(input, dow, doy); - if (week > weeksTarget) { - week = weeksTarget; - } - return setWeekAll.call(this, input, week, weekday, dow, doy); - } + Trigger.prototype.render = function render() { + var props = this.props; + var children = props.children; + var child = _react2["default"].Children.only(children); + var newChildProps = {}; + + if (this.isClickToHide() || this.isClickToShow()) { + newChildProps.onClick = this.onClick; + newChildProps.onMouseDown = this.onMouseDown; + newChildProps.onTouchStart = this.onTouchStart; + } else { + newChildProps.onClick = this.createTwoChains('onClick'); + newChildProps.onMouseDown = this.createTwoChains('onMouseDown'); + newChildProps.onTouchStart = this.createTwoChains('onTouchStart'); + } + if (this.isMouseEnterToShow()) { + newChildProps.onMouseEnter = this.onMouseEnter; + } else { + newChildProps.onMouseEnter = this.createTwoChains('onMouseEnter'); + } + if (this.isMouseLeaveToHide()) { + newChildProps.onMouseLeave = this.onMouseLeave; + } else { + newChildProps.onMouseLeave = this.createTwoChains('onMouseLeave'); + } + if (this.isFocusToShow() || this.isBlurToHide()) { + newChildProps.onFocus = this.onFocus; + newChildProps.onBlur = this.onBlur; + } else { + newChildProps.onFocus = this.createTwoChains('onFocus'); + newChildProps.onBlur = this.createTwoChains('onBlur'); } + return _react2["default"].cloneElement(child, newChildProps); + }; - function setWeekAll(weekYear, week, weekday, dow, doy) { - var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy), - date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear); + return Trigger; + }(_react.Component); - this.year(date.getUTCFullYear()); - this.month(date.getUTCMonth()); - this.date(date.getUTCDate()); - return this; - } + ; - // FORMATTING + Trigger.propTypes = propTypes; + Trigger.defaultProps = defaultProps; + exports["default"] = Trigger; + module.exports = exports['default']; + +/***/ }), +/* 316 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - addFormatToken('Q', 0, 'Qo', 'quarter'); + Object.defineProperty(exports, "__esModule", { + value: true + }); - // ALIASES + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - addUnitAlias('quarter', 'Q'); + var _react = __webpack_require__(1); - // PRIORITY + var _react2 = _interopRequireDefault(_react); - addUnitPriority('quarter', 7); + var _propTypes = __webpack_require__(6); - // PARSING + var _propTypes2 = _interopRequireDefault(_propTypes); - addRegexToken('Q', match1); - addParseToken('Q', function (input, array) { - array[MONTH] = (toInt(input) - 1) * 3; - }); + var _reactDom = __webpack_require__(2); - // MOMENTS + var _reactDom2 = _interopRequireDefault(_reactDom); - function getSetQuarter(input) { - return input == null - ? Math.ceil((this.month() + 1) / 3) - : this.month((input - 1) * 3 + (this.month() % 3)); - } + var _Align = __webpack_require__(50); - // FORMATTING + var _Align2 = _interopRequireDefault(_Align); - addFormatToken('D', ['DD', 2], 'Do', 'date'); + var _beeAnimate = __webpack_require__(57); - // ALIASES + var _beeAnimate2 = _interopRequireDefault(_beeAnimate); - addUnitAlias('date', 'D'); + var _PopupInner = __webpack_require__(317); - // PRIORITY - addUnitPriority('date', 9); + var _PopupInner2 = _interopRequireDefault(_PopupInner); - // PARSING + var _LazyRenderBox = __webpack_require__(318); - addRegexToken('D', match1to2); - addRegexToken('DD', match1to2, match2); - addRegexToken('Do', function (isStrict, locale) { - // TODO: Remove "ordinalParse" fallback in next major release. - return isStrict - ? locale._dayOfMonthOrdinalParse || locale._ordinalParse - : locale._dayOfMonthOrdinalParseLenient; - }); + var _LazyRenderBox2 = _interopRequireDefault(_LazyRenderBox); - addParseToken(['D', 'DD'], DATE); - addParseToken('Do', function (input, array) { - array[DATE] = toInt(input.match(match1to2)[0]); - }); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - // MOMENTS + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - var getSetDayOfMonth = makeGetSet('Date', true); + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - // FORMATTING + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear'); + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** + * This source code is quoted from rc-trigger. + * homepage: https://github.com/react-component/trigger + */ - // ALIASES - addUnitAlias('dayOfYear', 'DDD'); + var propTypes = { + visible: _propTypes2["default"].bool, + style: _propTypes2["default"].object, + getClassNameFromAlign: _propTypes2["default"].func, + onAlign: _propTypes2["default"].func, + getRootDomNode: _propTypes2["default"].func, + onMouseEnter: _propTypes2["default"].func, + align: _propTypes2["default"].any, + destroyPopupOnHide: _propTypes2["default"].bool, + className: _propTypes2["default"].string, + clsPrefix: _propTypes2["default"].string, + onMouseLeave: _propTypes2["default"].func + }; - // PRIORITY - addUnitPriority('dayOfYear', 4); + var Popup = function (_Component) { + _inherits(Popup, _Component); - // PARSING + function Popup() { + _classCallCheck(this, Popup); - addRegexToken('DDD', match1to3); - addRegexToken('DDDD', match3); - addParseToken(['DDD', 'DDDD'], function (input, array, config) { - config._dayOfYear = toInt(input); - }); + var _this = _possibleConstructorReturn(this, _Component.call(this)); - // HELPERS + _this.onAlign = _this.onAlign.bind(_this); + _this.getPopupDomNode = _this.getPopupDomNode.bind(_this); + _this.getTarget = _this.getTarget.bind(_this); + _this.getMaskTransitionName = _this.getMaskTransitionName.bind(_this); + _this.getTransitionName = _this.getTransitionName.bind(_this); + _this.getClassName = _this.getClassName.bind(_this); + _this.getPopupElement = _this.getPopupElement.bind(_this); + _this.getZIndexStyle = _this.getZIndexStyle.bind(_this); + _this.getMaskElement = _this.getMaskElement.bind(_this); + _this.saveAlign = _this.saveAlign.bind(_this); + return _this; + } - // MOMENTS + Popup.prototype.componentDidMount = function componentDidMount() { + this.rootNode = this.getPopupDomNode(); + }; - function getSetDayOfYear(input) { - var dayOfYear = - Math.round( - (this.clone().startOf('day') - this.clone().startOf('year')) / 864e5 - ) + 1; - return input == null ? dayOfYear : this.add(input - dayOfYear, 'd'); + Popup.prototype.onAlign = function onAlign(popupDomNode, align) { + var props = this.props; + var alignClassName = props.getClassNameFromAlign(props.align); + var currentAlignClassName = props.getClassNameFromAlign(align); + if (alignClassName !== currentAlignClassName) { + this.currentAlignClassName = currentAlignClassName; + popupDomNode.className = this.getClassName(currentAlignClassName); } + props.onAlign(popupDomNode, align); + }; - // FORMATTING + Popup.prototype.getPopupDomNode = function getPopupDomNode() { + return _reactDom2["default"].findDOMNode(this.refs.popup); + }; - addFormatToken('m', ['mm', 2], 0, 'minute'); + Popup.prototype.getTarget = function getTarget() { + return this.props.getRootDomNode(); + }; - // ALIASES + Popup.prototype.getMaskTransitionName = function getMaskTransitionName() { + var props = this.props; + var transitionName = props.maskTransitionName; + var animation = props.maskAnimation; + if (!transitionName && animation) { + transitionName = props.clsPrefix + '-' + animation; + } + return transitionName; + }; - addUnitAlias('minute', 'm'); + Popup.prototype.getTransitionName = function getTransitionName() { + var props = this.props; + var transitionName = props.transitionName; + if (!transitionName && props.animation) { + transitionName = props.clsPrefix + '-' + props.animation; + } + return transitionName; + }; - // PRIORITY + Popup.prototype.getClassName = function getClassName(currentAlignClassName) { + return this.props.clsPrefix + ' ' + this.props.className + ' ' + currentAlignClassName; + }; - addUnitPriority('minute', 14); + Popup.prototype.getPopupElement = function getPopupElement() { + var props = this.props; + var align = props.align, + style = props.style, + visible = props.visible, + clsPrefix = props.clsPrefix, + destroyPopupOnHide = props.destroyPopupOnHide; - // PARSING + var className = this.getClassName(this.currentAlignClassName || props.getClassNameFromAlign(align)); + var hiddenClassName = clsPrefix + '-hidden'; + if (!visible) { + this.currentAlignClassName = null; + } + var newStyle = _extends({}, style, this.getZIndexStyle()); + var popupInnerProps = { + className: className, + clsPrefix: clsPrefix, + ref: 'popup', + onMouseEnter: props.onMouseEnter, + onMouseLeave: props.onMouseLeave, + style: newStyle, + popData: props.popData + }; + if (destroyPopupOnHide) { + return _react2["default"].createElement( + _beeAnimate2["default"], + { + component: '', + exclusive: true, + transitionAppear: true, + transitionName: this.getTransitionName() + }, + visible ? _react2["default"].createElement( + _Align2["default"], + { + target: this.getTarget, + key: 'popup', + ref: this.saveAlign, + monitorWindowResize: true, + align: align, + onAlign: this.onAlign + }, + _react2["default"].createElement( + _PopupInner2["default"], + _extends({ + visible: true + }, popupInnerProps), + props.children + ) + ) : null + ); + } + return _react2["default"].createElement( + _beeAnimate2["default"], + { + component: '', + exclusive: true, + transitionAppear: true, + transitionName: this.getTransitionName(), + showProp: 'xVisible' + }, + _react2["default"].createElement( + _Align2["default"], + { + target: this.getTarget, + key: 'popup', + ref: this.saveAlign, + monitorWindowResize: true, + xVisible: visible, + childrenProps: { visible: 'xVisible' }, + disabled: !visible, + align: align, + onAlign: this.onAlign + }, + _react2["default"].createElement( + _PopupInner2["default"], + _extends({ + hiddenClassName: hiddenClassName + }, popupInnerProps), + props.children + ) + ) + ); + }; - addRegexToken('m', match1to2); - addRegexToken('mm', match1to2, match2); - addParseToken(['m', 'mm'], MINUTE); + Popup.prototype.getZIndexStyle = function getZIndexStyle() { + var style = {}; + var props = this.props; + if (props.zIndex !== undefined) { + style.zIndex = props.zIndex; + } + return style; + }; - // MOMENTS + Popup.prototype.getMaskElement = function getMaskElement() { + var props = this.props; + var maskElement = void 0; + if (props.mask) { + var maskTransition = this.getMaskTransitionName(); + maskElement = _react2["default"].createElement(_LazyRenderBox2["default"], { + style: this.getZIndexStyle(), + key: 'mask', + className: props.clsPrefix + '-mask', + hiddenClassName: props.clsPrefix + '-mask-hidden', + visible: props.visible + }); + if (maskTransition) { + maskElement = _react2["default"].createElement( + _beeAnimate2["default"], + { + key: 'mask', + showProp: 'visible', + transitionAppear: true, + component: '', + transitionName: maskTransition + }, + maskElement + ); + } + } + return maskElement; + }; - var getSetMinute = makeGetSet('Minutes', false); + Popup.prototype.saveAlign = function saveAlign(align) { + this.alignInstance = align; + }; - // FORMATTING + Popup.prototype.render = function render() { + return _react2["default"].createElement( + 'div', + null, + this.getMaskElement(), + this.getPopupElement() + ); + }; - addFormatToken('s', ['ss', 2], 0, 'second'); + return Popup; + }(_react.Component); - // ALIASES + ; - addUnitAlias('second', 's'); + Popup.propTypes = propTypes; + exports["default"] = Popup; + module.exports = exports['default']; + +/***/ }), +/* 317 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - // PRIORITY + Object.defineProperty(exports, "__esModule", { + value: true + }); - addUnitPriority('second', 15); + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - // PARSING + var _react = __webpack_require__(1); - addRegexToken('s', match1to2); - addRegexToken('ss', match1to2, match2); - addParseToken(['s', 'ss'], SECOND); + var _react2 = _interopRequireDefault(_react); - // MOMENTS + var _propTypes = __webpack_require__(6); - var getSetSecond = makeGetSet('Seconds', false); + var _propTypes2 = _interopRequireDefault(_propTypes); - // FORMATTING + var _LazyRenderBox = __webpack_require__(318); - addFormatToken('S', 0, 0, function () { - return ~~(this.millisecond() / 100); - }); + var _LazyRenderBox2 = _interopRequireDefault(_LazyRenderBox); - addFormatToken(0, ['SS', 2], 0, function () { - return ~~(this.millisecond() / 10); - }); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - addFormatToken(0, ['SSS', 3], 0, 'millisecond'); - addFormatToken(0, ['SSSS', 4], 0, function () { - return this.millisecond() * 10; - }); - addFormatToken(0, ['SSSSS', 5], 0, function () { - return this.millisecond() * 100; - }); - addFormatToken(0, ['SSSSSS', 6], 0, function () { - return this.millisecond() * 1000; - }); - addFormatToken(0, ['SSSSSSS', 7], 0, function () { - return this.millisecond() * 10000; - }); - addFormatToken(0, ['SSSSSSSS', 8], 0, function () { - return this.millisecond() * 100000; - }); - addFormatToken(0, ['SSSSSSSSS', 9], 0, function () { - return this.millisecond() * 1000000; - }); + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - // ALIASES + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - addUnitAlias('millisecond', 'ms'); + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - // PRIORITY + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** + * This source code is quoted from rc-trigger. + * homepage: https://github.com/react-component/trigger + */ - addUnitPriority('millisecond', 16); - // PARSING + var propTypes = { + hiddenClassName: _propTypes2["default"].string, + className: _propTypes2["default"].string, + clsPrefix: _propTypes2["default"].string, + onMouseEnter: _propTypes2["default"].func, + onMouseLeave: _propTypes2["default"].func, + children: _propTypes2["default"].any + }; - addRegexToken('S', match1to3, match1); - addRegexToken('SS', match1to3, match2); - addRegexToken('SSS', match1to3, match3); + var PopupInner = function (_Component) { + _inherits(PopupInner, _Component); - var token, getSetMillisecond; - for (token = 'SSSS'; token.length <= 9; token += 'S') { - addRegexToken(token, matchUnsigned); - } + function PopupInner() { + _classCallCheck(this, PopupInner); - function parseMs(input, array) { - array[MILLISECOND] = toInt(('0.' + input) * 1000); - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - for (token = 'S'; token.length <= 9; token += 'S') { - addParseToken(token, parseMs); + PopupInner.prototype.render = function render() { + var props = this.props; + var className = props.className; + if (!props.visible) { + className += ' ' + props.hiddenClassName; } + return _react2["default"].createElement( + 'div', + _extends({}, props.popData, { + className: className, + onMouseEnter: props.onMouseEnter, + onMouseLeave: props.onMouseLeave, + style: props.style + }), + _react2["default"].createElement( + _LazyRenderBox2["default"], + { className: props.clsPrefix + '-content', visible: props.visible }, + props.children + ) + ); + }; - getSetMillisecond = makeGetSet('Milliseconds', false); + return PopupInner; + }(_react.Component); - // FORMATTING + ; - addFormatToken('z', 0, 0, 'zoneAbbr'); - addFormatToken('zz', 0, 0, 'zoneName'); + PopupInner.propTypes = propTypes; + exports["default"] = PopupInner; + module.exports = exports['default']; + +/***/ }), +/* 318 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - // MOMENTS + Object.defineProperty(exports, "__esModule", { + value: true + }); - function getZoneAbbr() { - return this._isUTC ? 'UTC' : ''; - } + var _react = __webpack_require__(1); - function getZoneName() { - return this._isUTC ? 'Coordinated Universal Time' : ''; - } + var _react2 = _interopRequireDefault(_react); - var proto = Moment.prototype; + var _propTypes = __webpack_require__(6); - proto.add = add; - proto.calendar = calendar$1; - proto.clone = clone; - proto.diff = diff; - proto.endOf = endOf; - proto.format = format; - proto.from = from; - proto.fromNow = fromNow; - proto.to = to; - proto.toNow = toNow; - proto.get = stringGet; - proto.invalidAt = invalidAt; - proto.isAfter = isAfter; - proto.isBefore = isBefore; - proto.isBetween = isBetween; - proto.isSame = isSame; - proto.isSameOrAfter = isSameOrAfter; - proto.isSameOrBefore = isSameOrBefore; - proto.isValid = isValid$2; - proto.lang = lang; - proto.locale = locale; - proto.localeData = localeData; - proto.max = prototypeMax; - proto.min = prototypeMin; - proto.parsingFlags = parsingFlags; - proto.set = stringSet; - proto.startOf = startOf; - proto.subtract = subtract; - proto.toArray = toArray; - proto.toObject = toObject; - proto.toDate = toDate; - proto.toISOString = toISOString; - proto.inspect = inspect; - if (typeof Symbol !== 'undefined' && Symbol.for != null) { - proto[Symbol.for('nodejs.util.inspect.custom')] = function () { - return 'Moment<' + this.format() + '>'; - }; - } - proto.toJSON = toJSON; - proto.toString = toString; - proto.unix = unix; - proto.valueOf = valueOf; - proto.creationData = creationData; - proto.eraName = getEraName; - proto.eraNarrow = getEraNarrow; - proto.eraAbbr = getEraAbbr; - proto.eraYear = getEraYear; - proto.year = getSetYear; - proto.isLeapYear = getIsLeapYear; - proto.weekYear = getSetWeekYear; - proto.isoWeekYear = getSetISOWeekYear; - proto.quarter = proto.quarters = getSetQuarter; - proto.month = getSetMonth; - proto.daysInMonth = getDaysInMonth; - proto.week = proto.weeks = getSetWeek; - proto.isoWeek = proto.isoWeeks = getSetISOWeek; - proto.weeksInYear = getWeeksInYear; - proto.weeksInWeekYear = getWeeksInWeekYear; - proto.isoWeeksInYear = getISOWeeksInYear; - proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear; - proto.date = getSetDayOfMonth; - proto.day = proto.days = getSetDayOfWeek; - proto.weekday = getSetLocaleDayOfWeek; - proto.isoWeekday = getSetISODayOfWeek; - proto.dayOfYear = getSetDayOfYear; - proto.hour = proto.hours = getSetHour; - proto.minute = proto.minutes = getSetMinute; - proto.second = proto.seconds = getSetSecond; - proto.millisecond = proto.milliseconds = getSetMillisecond; - proto.utcOffset = getSetOffset; - proto.utc = setOffsetToUTC; - proto.local = setOffsetToLocal; - proto.parseZone = setOffsetToParsedOffset; - proto.hasAlignedHourOffset = hasAlignedHourOffset; - proto.isDST = isDaylightSavingTime; - proto.isLocal = isLocal; - proto.isUtcOffset = isUtcOffset; - proto.isUtc = isUtc; - proto.isUTC = isUtc; - proto.zoneAbbr = getZoneAbbr; - proto.zoneName = getZoneName; - proto.dates = deprecate( - 'dates accessor is deprecated. Use date instead.', - getSetDayOfMonth - ); - proto.months = deprecate( - 'months accessor is deprecated. Use month instead', - getSetMonth - ); - proto.years = deprecate( - 'years accessor is deprecated. Use year instead', - getSetYear - ); - proto.zone = deprecate( - 'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', - getSetZone - ); - proto.isDSTShifted = deprecate( - 'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information', - isDaylightSavingTimeShifted - ); + var _propTypes2 = _interopRequireDefault(_propTypes); - function createUnix(input) { - return createLocal(input * 1000); - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - function createInZone() { - return createLocal.apply(null, arguments).parseZone(); - } + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - function preParsePostFormat(string) { - return string; - } + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - var proto$1 = Locale.prototype; + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - proto$1.calendar = calendar; - proto$1.longDateFormat = longDateFormat; - proto$1.invalidDate = invalidDate; - proto$1.ordinal = ordinal; - proto$1.preparse = preParsePostFormat; - proto$1.postformat = preParsePostFormat; - proto$1.relativeTime = relativeTime; - proto$1.pastFuture = pastFuture; - proto$1.set = set; - proto$1.eras = localeEras; - proto$1.erasParse = localeErasParse; - proto$1.erasConvertYear = localeErasConvertYear; - proto$1.erasAbbrRegex = erasAbbrRegex; - proto$1.erasNameRegex = erasNameRegex; - proto$1.erasNarrowRegex = erasNarrowRegex; + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - proto$1.months = localeMonths; - proto$1.monthsShort = localeMonthsShort; - proto$1.monthsParse = localeMonthsParse; - proto$1.monthsRegex = monthsRegex; - proto$1.monthsShortRegex = monthsShortRegex; - proto$1.week = localeWeek; - proto$1.firstDayOfYear = localeFirstDayOfYear; - proto$1.firstDayOfWeek = localeFirstDayOfWeek; + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** + * This source code is quoted from rc-trigger. + * homepage: https://github.com/react-component/trigger + */ - proto$1.weekdays = localeWeekdays; - proto$1.weekdaysMin = localeWeekdaysMin; - proto$1.weekdaysShort = localeWeekdaysShort; - proto$1.weekdaysParse = localeWeekdaysParse; - proto$1.weekdaysRegex = weekdaysRegex; - proto$1.weekdaysShortRegex = weekdaysShortRegex; - proto$1.weekdaysMinRegex = weekdaysMinRegex; + var propTypes = { + children: _propTypes2["default"].any, + className: _propTypes2["default"].string, + visible: _propTypes2["default"].bool, + hiddenClassName: _propTypes2["default"].string + }; - proto$1.isPM = localeIsPM; - proto$1.meridiem = localeMeridiem; + var LazyRenderBox = function (_Component) { + _inherits(LazyRenderBox, _Component); - function get$1(format, index, field, setter) { - var locale = getLocale(), - utc = createUTC().set(setter, index); - return locale[field](utc, format); - } + function LazyRenderBox() { + _classCallCheck(this, LazyRenderBox); - function listMonthsImpl(format, index, field) { - if (isNumber(format)) { - index = format; - format = undefined; - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - format = format || ''; + LazyRenderBox.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) { + return nextProps.hiddenClassName || nextProps.visible; + }; - if (index != null) { - return get$1(format, index, field, 'month'); - } + LazyRenderBox.prototype.render = function render() { + var _props = this.props, + hiddenClassName = _props.hiddenClassName, + visible = _props.visible, + props = _objectWithoutProperties(_props, ['hiddenClassName', 'visible']); - var i, - out = []; - for (i = 0; i < 12; i++) { - out[i] = get$1(format, i, field, 'month'); - } - return out; + if (hiddenClassName || _react2["default"].Children.count(props.children) > 1) { + if (!visible && hiddenClassName) { + props.className += ' ' + hiddenClassName; + } + return _react2["default"].createElement('div', props); } - // () - // (5) - // (fmt, 5) - // (fmt) - // (true) - // (true, 5) - // (true, fmt, 5) - // (true, fmt) - function listWeekdaysImpl(localeSorted, format, index, field) { - if (typeof localeSorted === 'boolean') { - if (isNumber(format)) { - index = format; - format = undefined; - } - - format = format || ''; - } else { - format = localeSorted; - index = format; - localeSorted = false; + return _react2["default"].Children.only(props.children); + }; - if (isNumber(format)) { - index = format; - format = undefined; - } + return LazyRenderBox; + }(_react.Component); - format = format || ''; - } + ; + LazyRenderBox.propTypes = propTypes; - var locale = getLocale(), - shift = localeSorted ? locale._week.dow : 0, - i, - out = []; + exports["default"] = LazyRenderBox; + module.exports = exports['default']; + +/***/ }), +/* 319 */ +/***/ (function(module, exports) { + + 'use strict'; - if (index != null) { - return get$1(format, (index + shift) % 7, field, 'day'); - } + Object.defineProperty(exports, "__esModule", { + value: true + }); - for (i = 0; i < 7; i++) { - out[i] = get$1(format, (i + shift) % 7, field, 'day'); - } - return out; - } + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - function listMonths(format, index) { - return listMonthsImpl(format, index, 'months'); - } + exports.getAlignFromPlacement = getAlignFromPlacement; + exports.getPopupClassNameFromAlign = getPopupClassNameFromAlign; + function isPointsEq(a1, a2) { + return a1[0] === a2[0] && a1[1] === a2[1]; + } - function listMonthsShort(format, index) { - return listMonthsImpl(format, index, 'monthsShort'); - } + function getAlignFromPlacement(builtinPlacements, placementStr, align) { + var baseAlign = builtinPlacements[placementStr] || {}; + return _extends({}, baseAlign, align); + } - function listWeekdays(localeSorted, format, index) { - return listWeekdaysImpl(localeSorted, format, index, 'weekdays'); + function getPopupClassNameFromAlign(builtinPlacements, clsPrefix, align) { + var points = align.points; + for (var placement in builtinPlacements) { + if (builtinPlacements.hasOwnProperty(placement)) { + if (isPointsEq(builtinPlacements[placement].points, points)) { + return clsPrefix + '-placement-' + placement; + } } + } + return ''; + } + +/***/ }), +/* 320 */ +/***/ (function(module, exports) { + + 'use strict'; - function listWeekdaysShort(localeSorted, format, index) { - return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort'); - } + Object.defineProperty(exports, "__esModule", { + value: true + }); + var autoAdjustOverflow = { + adjustX: 1, + adjustY: 1 + }; - function listWeekdaysMin(localeSorted, format, index) { - return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin'); - } + var targetOffset = [0, 0]; - getSetGlobalLocale('en', { - eras: [ - { - since: '0001-01-01', - until: +Infinity, - offset: 1, - name: 'Anno Domini', - narrow: 'AD', - abbr: 'AD', - }, - { - since: '0000-12-31', - until: -Infinity, - offset: 1, - name: 'Before Christ', - narrow: 'BC', - abbr: 'BC', - }, - ], - dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, - ordinal: function (number) { - var b = number % 10, - output = - toInt((number % 100) / 10) === 1 - ? 'th' - : b === 1 - ? 'st' - : b === 2 - ? 'nd' - : b === 3 - ? 'rd' - : 'th'; - return number + output; - }, - }); + var placements = exports.placements = { + topLeft: { + points: ['bl', 'tl'], + overflow: autoAdjustOverflow, + offset: [0, -4], + targetOffset: targetOffset + }, + topCenter: { + points: ['bc', 'tc'], + overflow: autoAdjustOverflow, + offset: [0, -4], + targetOffset: targetOffset + }, + topRight: { + points: ['br', 'tr'], + overflow: autoAdjustOverflow, + offset: [0, -4], + targetOffset: targetOffset + }, + bottomLeft: { + points: ['tl', 'bl'], + overflow: autoAdjustOverflow, + offset: [0, 4], + targetOffset: targetOffset + }, + bottomCenter: { + points: ['tc', 'bc'], + overflow: autoAdjustOverflow, + offset: [0, 4], + targetOffset: targetOffset + }, + bottomRight: { + points: ['tr', 'br'], + overflow: autoAdjustOverflow, + offset: [0, 4], + targetOffset: targetOffset + } + }; - // Side effect imports + exports["default"] = placements; + +/***/ }), +/* 321 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - hooks.lang = deprecate( - 'moment.lang is deprecated. Use moment.locale instead.', - getSetGlobalLocale - ); - hooks.langData = deprecate( - 'moment.langData is deprecated. Use moment.localeData instead.', - getLocale - ); + Object.defineProperty(exports, "__esModule", { + value: true + }); - var mathAbs = Math.abs; + var _VerticalMenu = __webpack_require__(322); - function abs() { - var data = this._data; + var _VerticalMenu2 = _interopRequireDefault(_VerticalMenu); - this._milliseconds = mathAbs(this._milliseconds); - this._days = mathAbs(this._days); - this._months = mathAbs(this._months); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - data.milliseconds = mathAbs(data.milliseconds); - data.seconds = mathAbs(data.seconds); - data.minutes = mathAbs(data.minutes); - data.hours = mathAbs(data.hours); - data.months = mathAbs(data.months); - data.years = mathAbs(data.years); + exports["default"] = _VerticalMenu2["default"]; + module.exports = exports['default']; + +/***/ }), +/* 322 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - return this; - } + Object.defineProperty(exports, "__esModule", { + value: true + }); - function addSubtract$1(duration, input, value, direction) { - var other = createDuration(input, value); + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - duration._milliseconds += direction * other._milliseconds; - duration._days += direction * other._days; - duration._months += direction * other._months; + var _react = __webpack_require__(1); - return duration._bubble(); - } + var _react2 = _interopRequireDefault(_react); - // supports only 2.0-style add(1, 's') or add(duration) - function add$1(input, value) { - return addSubtract$1(this, input, value, 1); - } + var _ExportMenu = __webpack_require__(323); - // supports only 2.0-style subtract(1, 's') or subtract(duration) - function subtract$1(input, value) { - return addSubtract$1(this, input, value, -1); - } + var _ExportMenu2 = _interopRequireDefault(_ExportMenu); - function absCeil(number) { - if (number < 0) { - return Math.floor(number); - } else { - return Math.ceil(number); - } - } + var _openAnimation = __webpack_require__(409); - function bubble() { - var milliseconds = this._milliseconds, - days = this._days, - months = this._months, - data = this._data, - seconds, - minutes, - hours, - years, - monthsFromDays; + var _openAnimation2 = _interopRequireDefault(_openAnimation); - // if we have a mix of positive and negative values, bubble down first - // check: https://github.com/moment/moment/issues/2166 - if ( - !( - (milliseconds >= 0 && days >= 0 && months >= 0) || - (milliseconds <= 0 && days <= 0 && months <= 0) - ) - ) { - milliseconds += absCeil(monthsToDays(months) + days) * 864e5; - days = 0; - months = 0; - } + var _warning = __webpack_require__(410); - // The following code bubbles up values, see the tests for - // examples of what that means. - data.milliseconds = milliseconds % 1000; + var _warning2 = _interopRequireDefault(_warning); - seconds = absFloor(milliseconds / 1000); - data.seconds = seconds % 60; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - minutes = absFloor(seconds / 60); - data.minutes = minutes % 60; + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - hours = absFloor(minutes / 60); - data.hours = hours % 24; + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - days += absFloor(hours / 24); + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - // convert days to months - monthsFromDays = absFloor(daysToMonths(days)); - months += monthsFromDays; - days -= absCeil(monthsToDays(monthsFromDays)); + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - // 12 months -> 1 year - years = absFloor(months / 12); - months %= 12; + var Menu = function (_React$Component) { + _inherits(Menu, _React$Component); - data.days = days; - data.months = months; - data.years = years; + function Menu(props) { + _classCallCheck(this, Menu); - return this; - } + var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); - function daysToMonths(days) { - // 400 years have 146097 days (taking into account leap year rules) - // 400 years have 12 months === 4800 - return (days * 4800) / 146097; - } + _this.handleClick = function (e) { + _this.setOpenKeys([]); - function monthsToDays(months) { - // the reverse of daysToMonths - return (months * 146097) / 4800; - } + var onClick = _this.props.onClick; + if (onClick) { + onClick(e); + } + }; - function as(units) { - if (!this.isValid()) { - return NaN; - } - var days, - months, - milliseconds = this._milliseconds; + _this.handleOpenChange = function (openKeys) { + _this.setOpenKeys(openKeys); - units = normalizeUnits(units); + var onOpenChange = _this.props.onOpenChange; + if (onOpenChange) { + onOpenChange(openKeys); + } + }; - if (units === 'month' || units === 'quarter' || units === 'year') { - days = this._days + milliseconds / 864e5; - months = this._months + daysToMonths(days); - switch (units) { - case 'month': - return months; - case 'quarter': - return months / 3; - case 'year': - return months / 12; - } - } else { - // handle milliseconds separately because of floating point math errors (issue #1867) - days = this._days + Math.round(monthsToDays(this._months)); - switch (units) { - case 'week': - return days / 7 + milliseconds / 6048e5; - case 'day': - return days + milliseconds / 864e5; - case 'hour': - return days * 24 + milliseconds / 36e5; - case 'minute': - return days * 1440 + milliseconds / 6e4; - case 'second': - return days * 86400 + milliseconds / 1000; - // Math.floor prevents floating point math errors here - case 'millisecond': - return Math.floor(days * 864e5) + milliseconds; - default: - throw new Error('Unknown unit ' + units); - } - } - } + (0, _warning2["default"])(!('onOpen' in props || 'onClose' in props), '`onOpen` and `onClose` are removed, please use `onOpenChange` instead.'); - // TODO: Use this.as('ms')? - function valueOf$1() { - if (!this.isValid()) { - return NaN; - } - return ( - this._milliseconds + - this._days * 864e5 + - (this._months % 12) * 2592e6 + - toInt(this._months / 12) * 31536e6 - ); + _this.state = { + openKeys: [] + }; + _this.rcMenu = {}; + return _this; + } + + Menu.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { + if (this.props.mode === 'inline' && nextProps.mode !== 'inline') { + this.switchModeFromInline = true; + } + if ('openKeys' in nextProps) { + this.setOpenKeys(nextProps.openKeys); } + }; - function makeAs(alias) { - return function () { - return this.as(alias); - }; + Menu.prototype.setOpenKeys = function setOpenKeys(openKeys) { + if (!('openKeys' in this.props)) { + this.setState({ openKeys: openKeys }); } + }; - var asMilliseconds = makeAs('ms'), - asSeconds = makeAs('s'), - asMinutes = makeAs('m'), - asHours = makeAs('h'), - asDays = makeAs('d'), - asWeeks = makeAs('w'), - asMonths = makeAs('M'), - asQuarters = makeAs('Q'), - asYears = makeAs('y'); + Menu.prototype.render = function render() { + var _this2 = this; - function clone$1() { - return createDuration(this); + var openAnimation = this.props.openAnimation || this.props.openTransitionName; + if (!openAnimation) { + switch (this.props.mode) { + case 'horizontal': + openAnimation = ''; + break; + case 'vertical': + // When mode switch from inline + // submenu should hide without animation + if (this.switchModeFromInline) { + openAnimation = _openAnimation2["default"]; + this.switchModeFromInline = false; + } else { + openAnimation = 'zoom-big'; + } + break; + case 'inline': + openAnimation = _openAnimation2["default"]; + break; + default: + } } - function get$2(units) { - units = normalizeUnits(units); - return this.isValid() ? this[units + 's']() : NaN; + var props = {}; + var className = this.props.className + ' ' + this.props.prefixCls + '-' + this.props.theme; + if (this.props.mode !== 'inline') { + // 这组属性的目的是 + // 弹出型的菜单需要点击后立即关闭 + // 另外,弹出型的菜单的受控模式没有使用场景 + props = { + openKeys: this.state.openKeys, + onClick: this.handleClick, + onOpenChange: this.handleOpenChange, + openTransitionName: openAnimation, + className: className + }; + } else { + props = { + openAnimation: openAnimation, + className: className + }; } + return _react2["default"].createElement(_ExportMenu2["default"], _extends({ ref: function ref(el) { + return _this2.rcMenu = el; + } }, this.props, props)); + }; - function makeGetter(name) { - return function () { - return this.isValid() ? this._data[name] : NaN; - }; - } + return Menu; + }(_react2["default"].Component); - var milliseconds = makeGetter('milliseconds'), - seconds = makeGetter('seconds'), - minutes = makeGetter('minutes'), - hours = makeGetter('hours'), - days = makeGetter('days'), - months = makeGetter('months'), - years = makeGetter('years'); + Menu.defaultProps = { + prefixCls: 'u-menu', + className: '', + theme: 'light' // or dark + }; - function weeks() { - return absFloor(this.days() / 7); - } + Menu.Divider = _ExportMenu.Divider; + Menu.Item = _ExportMenu.Item; + Menu.SubMenu = _ExportMenu.SubMenu; + Menu.ItemGroup = _ExportMenu.ItemGroup; + Menu.MenuToggle = _ExportMenu.MenuToggle; + Menu.SideContainer = _ExportMenu.SideContainer; + exports["default"] = Menu; + module.exports = exports['default']; + +/***/ }), +/* 323 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - var round = Math.round, - thresholds = { - ss: 44, // a few seconds to seconds - s: 45, // seconds to minute - m: 45, // minutes to hour - h: 22, // hours to day - d: 26, // days to month/week - w: null, // weeks to month - M: 11, // months to year - }; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.MenuToggle = exports.SideContainer = exports.Divider = exports.ItemGroup = exports.MenuItemGroup = exports.MenuItem = exports.Item = exports.SubMenu = undefined; - // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize - function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) { - return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture); - } + var _Menu = __webpack_require__(324); - function relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) { - var duration = createDuration(posNegDuration).abs(), - seconds = round(duration.as('s')), - minutes = round(duration.as('m')), - hours = round(duration.as('h')), - days = round(duration.as('d')), - months = round(duration.as('M')), - weeks = round(duration.as('w')), - years = round(duration.as('y')), - a = - (seconds <= thresholds.ss && ['s', seconds]) || - (seconds < thresholds.s && ['ss', seconds]) || - (minutes <= 1 && ['m']) || - (minutes < thresholds.m && ['mm', minutes]) || - (hours <= 1 && ['h']) || - (hours < thresholds.h && ['hh', hours]) || - (days <= 1 && ['d']) || - (days < thresholds.d && ['dd', days]); + var _Menu2 = _interopRequireDefault(_Menu); - if (thresholds.w != null) { - a = - a || - (weeks <= 1 && ['w']) || - (weeks < thresholds.w && ['ww', weeks]); - } - a = a || - (months <= 1 && ['M']) || - (months < thresholds.M && ['MM', months]) || - (years <= 1 && ['y']) || ['yy', years]; + var _SubMenu = __webpack_require__(335); - a[2] = withoutSuffix; - a[3] = +posNegDuration > 0; - a[4] = locale; - return substituteTimeAgo.apply(null, a); - } + var _SubMenu2 = _interopRequireDefault(_SubMenu); - // This function allows you to set the rounding function for relative time strings - function getSetRelativeTimeRounding(roundingFunction) { - if (roundingFunction === undefined) { - return round; - } - if (typeof roundingFunction === 'function') { - round = roundingFunction; - return true; - } - return false; - } + var _MenuItem = __webpack_require__(401); - // This function allows you to set a threshold for relative time strings - function getSetRelativeTimeThreshold(threshold, limit) { - if (thresholds[threshold] === undefined) { - return false; - } - if (limit === undefined) { - return thresholds[threshold]; - } - thresholds[threshold] = limit; - if (threshold === 's') { - thresholds.ss = limit - 1; - } - return true; - } + var _MenuItem2 = _interopRequireDefault(_MenuItem); - function humanize(argWithSuffix, argThresholds) { - if (!this.isValid()) { - return this.localeData().invalidDate(); - } + var _MenuItemGroup = __webpack_require__(405); - var withSuffix = false, - th = thresholds, - locale, - output; + var _MenuItemGroup2 = _interopRequireDefault(_MenuItemGroup); - if (typeof argWithSuffix === 'object') { - argThresholds = argWithSuffix; - argWithSuffix = false; - } - if (typeof argWithSuffix === 'boolean') { - withSuffix = argWithSuffix; - } - if (typeof argThresholds === 'object') { - th = Object.assign({}, thresholds, argThresholds); - if (argThresholds.s != null && argThresholds.ss == null) { - th.ss = argThresholds.s - 1; - } - } + var _Divider = __webpack_require__(406); - locale = this.localeData(); - output = relativeTime$1(this, !withSuffix, th, locale); + var _Divider2 = _interopRequireDefault(_Divider); - if (withSuffix) { - output = locale.pastFuture(+this, output); - } + var _SideContainer = __webpack_require__(407); - return locale.postformat(output); - } + var _SideContainer2 = _interopRequireDefault(_SideContainer); - var abs$1 = Math.abs; + var _MenuToggle = __webpack_require__(408); - function sign(x) { - return (x > 0) - (x < 0) || +x; - } + var _MenuToggle2 = _interopRequireDefault(_MenuToggle); - function toISOString$1() { - // for ISO strings we do not use the normal bubbling rules: - // * milliseconds bubble up until they become hours - // * days do not bubble at all - // * months bubble up until they become years - // This is because there is no context-free conversion between hours and days - // (think of clock changes) - // and also not between days and months (28-31 days per month) - if (!this.isValid()) { - return this.localeData().invalidDate(); - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - var seconds = abs$1(this._milliseconds) / 1000, - days = abs$1(this._days), - months = abs$1(this._months), - minutes, - hours, - years, - s, - total = this.asSeconds(), - totalSign, - ymSign, - daysSign, - hmsSign; + exports.SubMenu = _SubMenu2["default"]; + exports.Item = _MenuItem2["default"]; + exports.MenuItem = _MenuItem2["default"]; + exports.MenuItemGroup = _MenuItemGroup2["default"]; + exports.ItemGroup = _MenuItemGroup2["default"]; + exports.Divider = _Divider2["default"]; + exports.SideContainer = _SideContainer2["default"]; + exports.MenuToggle = _MenuToggle2["default"]; /** + * This source code is quoted from rc-menu. + * homepage: https://github.com/react-component/menu + */ - if (!total) { - // this is the same as C#'s (Noda) and python (isodate)... - // but not other JS (goog.date) - return 'P0D'; - } + exports["default"] = _Menu2["default"]; + +/***/ }), +/* 324 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - // 3600 seconds -> 60 minutes -> 1 hour - minutes = absFloor(seconds / 60); - hours = absFloor(minutes / 60); - seconds %= 60; - minutes %= 60; + Object.defineProperty(exports, "__esModule", { + value: true + }); - // 12 months -> 1 year - years = absFloor(months / 12); - months %= 12; + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js - s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, '') : ''; + var _react = __webpack_require__(1); - totalSign = total < 0 ? '-' : ''; - ymSign = sign(this._months) !== sign(total) ? '-' : ''; - daysSign = sign(this._days) !== sign(total) ? '-' : ''; - hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : ''; + var _react2 = _interopRequireDefault(_react); - return ( - totalSign + - 'P' + - (years ? ymSign + years + 'Y' : '') + - (months ? ymSign + months + 'M' : '') + - (days ? daysSign + days + 'D' : '') + - (hours || minutes || seconds ? 'T' : '') + - (hours ? hmsSign + hours + 'H' : '') + - (minutes ? hmsSign + minutes + 'M' : '') + - (seconds ? hmsSign + s + 'S' : '') - ); - } + var _reactDom = __webpack_require__(2); - var proto$2 = Duration.prototype; + var _reactDom2 = _interopRequireDefault(_reactDom); - proto$2.isValid = isValid$1; - proto$2.abs = abs; - proto$2.add = add$1; - proto$2.subtract = subtract$1; - proto$2.as = as; - proto$2.asMilliseconds = asMilliseconds; - proto$2.asSeconds = asSeconds; - proto$2.asMinutes = asMinutes; - proto$2.asHours = asHours; - proto$2.asDays = asDays; - proto$2.asWeeks = asWeeks; - proto$2.asMonths = asMonths; - proto$2.asQuarters = asQuarters; - proto$2.asYears = asYears; - proto$2.valueOf = valueOf$1; - proto$2._bubble = bubble; - proto$2.clone = clone$1; - proto$2.get = get$2; - proto$2.milliseconds = milliseconds; - proto$2.seconds = seconds; - proto$2.minutes = minutes; - proto$2.hours = hours; - proto$2.days = days; - proto$2.weeks = weeks; - proto$2.months = months; - proto$2.years = years; - proto$2.humanize = humanize; - proto$2.toISOString = toISOString$1; - proto$2.toString = toISOString$1; - proto$2.toJSON = toISOString$1; - proto$2.locale = locale; - proto$2.localeData = localeData; + var _propTypes = __webpack_require__(6); - proto$2.toIsoString = deprecate( - 'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', - toISOString$1 - ); - proto$2.lang = lang; + var _propTypes2 = _interopRequireDefault(_propTypes); - // FORMATTING + var _miniStore = __webpack_require__(325); - addFormatToken('X', 0, 0, 'unix'); - addFormatToken('x', 0, 0, 'valueOf'); + var _SubPopupMenu = __webpack_require__(331); - // PARSING + var _SubPopupMenu2 = _interopRequireDefault(_SubPopupMenu); - addRegexToken('x', matchSigned); - addRegexToken('X', matchTimestamp); - addParseToken('X', function (input, array, config) { - config._d = new Date(parseFloat(input) * 1000); - }); - addParseToken('x', function (input, array, config) { - config._d = new Date(toInt(input)); - }); + var _util = __webpack_require__(333); - //! moment.js + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - hooks.version = '2.27.0'; + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - setHookCallback(createLocal); + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - hooks.fn = proto; - hooks.min = min; - hooks.max = max; - hooks.now = now; - hooks.utc = createUTC; - hooks.unix = createUnix; - hooks.months = listMonths; - hooks.isDate = isDate; - hooks.locale = getSetGlobalLocale; - hooks.invalid = createInvalid; - hooks.duration = createDuration; - hooks.isMoment = isMoment; - hooks.weekdays = listWeekdays; - hooks.parseZone = createInZone; - hooks.localeData = getLocale; - hooks.isDuration = isDuration; - hooks.monthsShort = listMonthsShort; - hooks.weekdaysMin = listWeekdaysMin; - hooks.defineLocale = defineLocale; - hooks.updateLocale = updateLocale; - hooks.locales = listLocales; - hooks.weekdaysShort = listWeekdaysShort; - hooks.normalizeUnits = normalizeUnits; - hooks.relativeTimeRounding = getSetRelativeTimeRounding; - hooks.relativeTimeThreshold = getSetRelativeTimeThreshold; - hooks.calendarFormat = getCalendarFormat; - hooks.prototype = proto; + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - // currently HTML5 input type only supports 24-hour formats - hooks.HTML5_FMT = { - DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // - DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // - DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // - DATE: 'YYYY-MM-DD', // - TIME: 'HH:mm', // - TIME_SECONDS: 'HH:mm:ss', // - TIME_MS: 'HH:mm:ss.SSS', // - WEEK: 'GGGG-[W]WW', // - MONTH: 'YYYY-MM', // - }; + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - return hooks; + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** + * This source code is quoted from rc-menu. + * homepage: https://github.com/react-component/menu + */ - }))); - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(193)(module))) - -/***/ }), -/* 405 */ -/***/ (function(module, exports, __webpack_require__) { - - var map = { - "./af": 406, - "./af.js": 406, - "./ar": 407, - "./ar-dz": 408, - "./ar-dz.js": 408, - "./ar-kw": 409, - "./ar-kw.js": 409, - "./ar-ly": 410, - "./ar-ly.js": 410, - "./ar-ma": 411, - "./ar-ma.js": 411, - "./ar-sa": 412, - "./ar-sa.js": 412, - "./ar-tn": 413, - "./ar-tn.js": 413, - "./ar.js": 407, - "./az": 414, - "./az.js": 414, - "./be": 415, - "./be.js": 415, - "./bg": 416, - "./bg.js": 416, - "./bm": 417, - "./bm.js": 417, - "./bn": 418, - "./bn.js": 418, - "./bo": 419, - "./bo.js": 419, - "./br": 420, - "./br.js": 420, - "./bs": 421, - "./bs.js": 421, - "./ca": 422, - "./ca.js": 422, - "./cs": 423, - "./cs.js": 423, - "./cv": 424, - "./cv.js": 424, - "./cy": 425, - "./cy.js": 425, - "./da": 426, - "./da.js": 426, - "./de": 427, - "./de-at": 428, - "./de-at.js": 428, - "./de-ch": 429, - "./de-ch.js": 429, - "./de.js": 427, - "./dv": 430, - "./dv.js": 430, - "./el": 431, - "./el.js": 431, - "./en-au": 432, - "./en-au.js": 432, - "./en-ca": 433, - "./en-ca.js": 433, - "./en-gb": 434, - "./en-gb.js": 434, - "./en-ie": 435, - "./en-ie.js": 435, - "./en-il": 436, - "./en-il.js": 436, - "./en-in": 437, - "./en-in.js": 437, - "./en-nz": 438, - "./en-nz.js": 438, - "./en-sg": 439, - "./en-sg.js": 439, - "./eo": 440, - "./eo.js": 440, - "./es": 441, - "./es-do": 442, - "./es-do.js": 442, - "./es-us": 443, - "./es-us.js": 443, - "./es.js": 441, - "./et": 444, - "./et.js": 444, - "./eu": 445, - "./eu.js": 445, - "./fa": 446, - "./fa.js": 446, - "./fi": 447, - "./fi.js": 447, - "./fil": 448, - "./fil.js": 448, - "./fo": 449, - "./fo.js": 449, - "./fr": 450, - "./fr-ca": 451, - "./fr-ca.js": 451, - "./fr-ch": 452, - "./fr-ch.js": 452, - "./fr.js": 450, - "./fy": 453, - "./fy.js": 453, - "./ga": 454, - "./ga.js": 454, - "./gd": 455, - "./gd.js": 455, - "./gl": 456, - "./gl.js": 456, - "./gom-deva": 457, - "./gom-deva.js": 457, - "./gom-latn": 458, - "./gom-latn.js": 458, - "./gu": 459, - "./gu.js": 459, - "./he": 460, - "./he.js": 460, - "./hi": 461, - "./hi.js": 461, - "./hr": 462, - "./hr.js": 462, - "./hu": 463, - "./hu.js": 463, - "./hy-am": 464, - "./hy-am.js": 464, - "./id": 465, - "./id.js": 465, - "./is": 466, - "./is.js": 466, - "./it": 467, - "./it-ch": 468, - "./it-ch.js": 468, - "./it.js": 467, - "./ja": 469, - "./ja.js": 469, - "./jv": 470, - "./jv.js": 470, - "./ka": 471, - "./ka.js": 471, - "./kk": 472, - "./kk.js": 472, - "./km": 473, - "./km.js": 473, - "./kn": 474, - "./kn.js": 474, - "./ko": 475, - "./ko.js": 475, - "./ku": 476, - "./ku.js": 476, - "./ky": 477, - "./ky.js": 477, - "./lb": 478, - "./lb.js": 478, - "./lo": 479, - "./lo.js": 479, - "./lt": 480, - "./lt.js": 480, - "./lv": 481, - "./lv.js": 481, - "./me": 482, - "./me.js": 482, - "./mi": 483, - "./mi.js": 483, - "./mk": 484, - "./mk.js": 484, - "./ml": 485, - "./ml.js": 485, - "./mn": 486, - "./mn.js": 486, - "./mr": 487, - "./mr.js": 487, - "./ms": 488, - "./ms-my": 489, - "./ms-my.js": 489, - "./ms.js": 488, - "./mt": 490, - "./mt.js": 490, - "./my": 491, - "./my.js": 491, - "./nb": 492, - "./nb.js": 492, - "./ne": 493, - "./ne.js": 493, - "./nl": 494, - "./nl-be": 495, - "./nl-be.js": 495, - "./nl.js": 494, - "./nn": 496, - "./nn.js": 496, - "./oc-lnc": 497, - "./oc-lnc.js": 497, - "./pa-in": 498, - "./pa-in.js": 498, - "./pl": 499, - "./pl.js": 499, - "./pt": 500, - "./pt-br": 501, - "./pt-br.js": 501, - "./pt.js": 500, - "./ro": 502, - "./ro.js": 502, - "./ru": 503, - "./ru.js": 503, - "./sd": 504, - "./sd.js": 504, - "./se": 505, - "./se.js": 505, - "./si": 506, - "./si.js": 506, - "./sk": 507, - "./sk.js": 507, - "./sl": 508, - "./sl.js": 508, - "./sq": 509, - "./sq.js": 509, - "./sr": 510, - "./sr-cyrl": 511, - "./sr-cyrl.js": 511, - "./sr.js": 510, - "./ss": 512, - "./ss.js": 512, - "./sv": 513, - "./sv.js": 513, - "./sw": 514, - "./sw.js": 514, - "./ta": 515, - "./ta.js": 515, - "./te": 516, - "./te.js": 516, - "./tet": 517, - "./tet.js": 517, - "./tg": 518, - "./tg.js": 518, - "./th": 519, - "./th.js": 519, - "./tk": 520, - "./tk.js": 520, - "./tl-ph": 521, - "./tl-ph.js": 521, - "./tlh": 522, - "./tlh.js": 522, - "./tr": 523, - "./tr.js": 523, - "./tzl": 524, - "./tzl.js": 524, - "./tzm": 525, - "./tzm-latn": 526, - "./tzm-latn.js": 526, - "./tzm.js": 525, - "./ug-cn": 527, - "./ug-cn.js": 527, - "./uk": 528, - "./uk.js": 528, - "./ur": 529, - "./ur.js": 529, - "./uz": 530, - "./uz-latn": 531, - "./uz-latn.js": 531, - "./uz.js": 530, - "./vi": 532, - "./vi.js": 532, - "./x-pseudo": 533, - "./x-pseudo.js": 533, - "./yo": 534, - "./yo.js": 534, - "./zh-cn": 535, - "./zh-cn.js": 535, - "./zh-hk": 536, - "./zh-hk.js": 536, - "./zh-mo": 537, - "./zh-mo.js": 537, - "./zh-tw": 538, - "./zh-tw.js": 538 - }; - function webpackContext(req) { - return __webpack_require__(webpackContextResolve(req)); - }; - function webpackContextResolve(req) { - return map[req] || (function() { throw new Error("Cannot find module '" + req + "'.") }()); - }; - webpackContext.keys = function webpackContextKeys() { - return Object.keys(map); - }; - webpackContext.resolve = webpackContextResolve; - module.exports = webpackContext; - webpackContext.id = 405; - - -/***/ }), -/* 406 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Afrikaans [af] - //! author : Werner Mollentze : https://github.com/wernerm + var Menu = function (_React$Component) { + _inherits(Menu, _React$Component); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + function Menu(props) { + _classCallCheck(this, Menu); - //! moment.js locale configuration + var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); - var af = moment.defineLocale('af', { - months: 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'), - weekdays: 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split( - '_' - ), - weekdaysShort: 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'), - weekdaysMin: 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'), - meridiemParse: /vm|nm/i, - isPM: function (input) { - return /^nm$/i.test(input); - }, - meridiem: function (hours, minutes, isLower) { - if (hours < 12) { - return isLower ? 'vm' : 'VM'; - } else { - return isLower ? 'nm' : 'NM'; - } - }, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Vandag om] LT', - nextDay: '[Môre om] LT', - nextWeek: 'dddd [om] LT', - lastDay: '[Gister om] LT', - lastWeek: '[Laas] dddd [om] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'oor %s', - past: '%s gelede', - s: "'n paar sekondes", - ss: '%d sekondes', - m: "'n minuut", - mm: '%d minute', - h: "'n uur", - hh: '%d ure', - d: "'n dag", - dd: '%d dae', - M: "'n maand", - MM: '%d maande', - y: "'n jaar", - yy: '%d jaar', - }, - dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, - ordinal: function (number) { - return ( - number + - (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de') - ); // Thanks to Joris Röling : https://github.com/jjupiter - }, - week: { - dow: 1, // Maandag is die eerste dag van die week. - doy: 4, // Die week wat die 4de Januarie bevat is die eerste week van die jaar. - }, + _initialiseProps.call(_this); + + _this.isRootMenu = true; + + var selectedKeys = props.defaultSelectedKeys; + var openKeys = props.defaultOpenKeys; + if ('selectedKeys' in props) { + selectedKeys = props.selectedKeys || []; + } + if ('openKeys' in props) { + openKeys = props.openKeys || []; + } + + _this.store = (0, _miniStore.create)({ + selectedKeys: selectedKeys, + openKeys: openKeys, + activeKey: { '0-menu-': (0, _SubPopupMenu.getActiveKey)(props, props.activeKey) } }); + return _this; + } - return af; + Menu.prototype.componentDidMount = function componentDidMount() { + this.updateMiniStore(); + }; - }))); - - -/***/ }), -/* 407 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Arabic [ar] - //! author : Abdel Said: https://github.com/abdelsaid - //! author : Ahmed Elkhatib - //! author : forabi https://github.com/forabi + Menu.prototype.componentDidUpdate = function componentDidUpdate() { + this.updateMiniStore(); + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + // onKeyDown needs to be exposed as a instance method + // e.g., in rc-select, we need to navigate menu item while + // current active item is rc-select input box rather than the menu itself - //! moment.js locale configuration - var symbolMap = { - '1': '١', - '2': '٢', - '3': '٣', - '4': '٤', - '5': '٥', - '6': '٦', - '7': '٧', - '8': '٨', - '9': '٩', - '0': '٠', - }, - numberMap = { - '١': '1', - '٢': '2', - '٣': '3', - '٤': '4', - '٥': '5', - '٦': '6', - '٧': '7', - '٨': '8', - '٩': '9', - '٠': '0', - }, - pluralForm = function (n) { - return n === 0 - ? 0 - : n === 1 - ? 1 - : n === 2 - ? 2 - : n % 100 >= 3 && n % 100 <= 10 - ? 3 - : n % 100 >= 11 - ? 4 - : 5; - }, - plurals = { - s: [ - 'أقل من ثانية', - 'ثانية واحدة', - ['ثانيتان', 'ثانيتين'], - '%d ثوان', - '%d ثانية', - '%d ثانية', - ], - m: [ - 'أقل من دقيقة', - 'دقيقة واحدة', - ['دقيقتان', 'دقيقتين'], - '%d دقائق', - '%d دقيقة', - '%d دقيقة', - ], - h: [ - 'أقل من ساعة', - 'ساعة واحدة', - ['ساعتان', 'ساعتين'], - '%d ساعات', - '%d ساعة', - '%d ساعة', - ], - d: [ - 'أقل من يوم', - 'يوم واحد', - ['يومان', 'يومين'], - '%d أيام', - '%d يومًا', - '%d يوم', - ], - M: [ - 'أقل من شهر', - 'شهر واحد', - ['شهران', 'شهرين'], - '%d أشهر', - '%d شهرا', - '%d شهر', - ], - y: [ - 'أقل من عام', - 'عام واحد', - ['عامان', 'عامين'], - '%d أعوام', - '%d عامًا', - '%d عام', - ], - }, - pluralize = function (u) { - return function (number, withoutSuffix, string, isFuture) { - var f = pluralForm(number), - str = plurals[u][pluralForm(number)]; - if (f === 2) { - str = str[withoutSuffix ? 0 : 1]; - } - return str.replace(/%d/i, number); - }; - }, - months = [ - 'يناير', - 'فبراير', - 'مارس', - 'أبريل', - 'مايو', - 'يونيو', - 'يوليو', - 'أغسطس', - 'سبتمبر', - 'أكتوبر', - 'نوفمبر', - 'ديسمبر', - ]; + Menu.prototype.updateMiniStore = function updateMiniStore() { + if ('selectedKeys' in this.props) { + this.store.setState({ + selectedKeys: this.props.selectedKeys || [], + keyboard: this.props.keyboard || false + }); + } + if ('openKeys' in this.props) { + this.store.setState({ + openKeys: this.props.openKeys || [], + keyboard: this.props.keyboard || false + }); + } + }; + + Menu.prototype.render = function render() { + var _this2 = this; + + var props = _objectWithoutProperties(this.props, []); + + props.className += ' ' + props.prefixCls + '-root'; + props = _extends({}, props, { + onClick: this.onClick, + onOpenChange: this.onOpenChange, + onDeselect: this.onDeselect, + onSelect: this.onSelect, + openTransitionName: this.getOpenTransitionName(), + parentMenu: this + }); + return _react2["default"].createElement( + _miniStore.Provider, + { store: this.store }, + _react2["default"].createElement( + _SubPopupMenu2["default"], + _extends({}, props, { onFocus: this.focus, ref: function ref(c) { + return _this2.innerMenu = c; + } }), + this.props.children + ) + ); + }; + + return Menu; + }(_react2["default"].Component); + + Menu.propTypes = { + defaultSelectedKeys: _propTypes2["default"].arrayOf(_propTypes2["default"].string), + defaultActiveFirst: _propTypes2["default"].bool, + selectedKeys: _propTypes2["default"].arrayOf(_propTypes2["default"].string), + defaultOpenKeys: _propTypes2["default"].arrayOf(_propTypes2["default"].string), + openKeys: _propTypes2["default"].arrayOf(_propTypes2["default"].string), + mode: _propTypes2["default"].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']), + getPopupContainer: _propTypes2["default"].func, + onClick: _propTypes2["default"].func, + onSelect: _propTypes2["default"].func, + onDeselect: _propTypes2["default"].func, + onDestroy: _propTypes2["default"].func, + openTransitionName: _propTypes2["default"].string, + openAnimation: _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].object]), + subMenuOpenDelay: _propTypes2["default"].number, + subMenuCloseDelay: _propTypes2["default"].number, + forceSubMenuRender: _propTypes2["default"].bool, + triggerSubMenuAction: _propTypes2["default"].string, + level: _propTypes2["default"].number, + selectable: _propTypes2["default"].bool, + multiple: _propTypes2["default"].bool, + children: _propTypes2["default"].any, + className: _propTypes2["default"].string, + style: _propTypes2["default"].object, + activeKey: _propTypes2["default"].string, + prefixCls: _propTypes2["default"].string, + builtinPlacements: _propTypes2["default"].object, + itemIcon: _propTypes2["default"].oneOfType([_propTypes2["default"].func, _propTypes2["default"].node]), + expandIcon: _propTypes2["default"].oneOfType([_propTypes2["default"].func, _propTypes2["default"].node]), + overflowedIndicator: _propTypes2["default"].node, + keyboard: _propTypes2["default"].bool + }; + Menu.defaultProps = { + selectable: true, + onClick: _util.noop, + onSelect: _util.noop, + onOpenChange: _util.noop, + onDeselect: _util.noop, + defaultSelectedKeys: [], + defaultOpenKeys: [], + subMenuOpenDelay: 0.1, + subMenuCloseDelay: 0.1, + triggerSubMenuAction: 'hover', + prefixCls: 'rc-menu', + className: '', + mode: 'vertical', + style: {}, + builtinPlacements: {}, + overflowedIndicator: _react2["default"].createElement( + 'span', + null, + '\xB7\xB7\xB7' + ), + keyboard: false, + tabIndex: '0' + }; + + var _initialiseProps = function _initialiseProps() { + var _this3 = this; + + this.onSelect = function (selectInfo) { + var props = _this3.props; + if (props.selectable) { + // root menu + var selectedKeys = _this3.store.getState().selectedKeys; + var selectedKey = selectInfo.key; + if (props.multiple) { + selectedKeys = selectedKeys.concat([selectedKey]); + } else { + selectedKeys = [selectedKey]; + } + if (!('selectedKeys' in props)) { + _this3.store.setState({ + selectedKeys: selectedKeys + }); + } + props.onSelect(_extends({}, selectInfo, { + selectedKeys: selectedKeys + })); + } + }; + + this.onClick = function (e) { + _this3.props.onClick(e); + }; + + this.onKeyDown = function (e, callback) { + _this3.innerMenu.getWrappedInstance().onKeyDown(e, callback); + }; - var ar = moment.defineLocale('ar', { - months: months, - monthsShort: months, - weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'D/\u200FM/\u200FYYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - meridiemParse: /ص|م/, - isPM: function (input) { - return 'م' === input; - }, - meridiem: function (hour, minute, isLower) { - if (hour < 12) { - return 'ص'; - } else { - return 'م'; - } - }, - calendar: { - sameDay: '[اليوم عند الساعة] LT', - nextDay: '[غدًا عند الساعة] LT', - nextWeek: 'dddd [عند الساعة] LT', - lastDay: '[أمس عند الساعة] LT', - lastWeek: 'dddd [عند الساعة] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'بعد %s', - past: 'منذ %s', - s: pluralize('s'), - ss: pluralize('s'), - m: pluralize('m'), - mm: pluralize('m'), - h: pluralize('h'), - hh: pluralize('h'), - d: pluralize('d'), - dd: pluralize('d'), - M: pluralize('M'), - MM: pluralize('M'), - y: pluralize('y'), - yy: pluralize('y'), - }, - preparse: function (string) { - return string - .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) { - return numberMap[match]; - }) - .replace(/،/g, ','); - }, - postformat: function (string) { - return string - .replace(/\d/g, function (match) { - return symbolMap[match]; - }) - .replace(/,/g, '،'); - }, - week: { - dow: 6, // Saturday is the first day of the week. - doy: 12, // The week that contains Jan 12th is the first week of the year. - }, - }); + this.onOpenChange = function (event) { + var props = _this3.props; + var openKeys = _this3.store.getState().openKeys.concat(); + var changed = false; + var processSingle = function processSingle(e) { + var oneChanged = false; + if (e.open) { + oneChanged = openKeys.indexOf(e.key) === -1; + if (oneChanged) { + openKeys.push(e.key); + } + } else { + var index = openKeys.indexOf(e.key); + oneChanged = index !== -1; + if (oneChanged) { + openKeys.splice(index, 1); + } + } + changed = changed || oneChanged; + }; + if (Array.isArray(event)) { + // batch change call + event.forEach(processSingle); + } else { + processSingle(event); + } + if (changed) { + if (!('openKeys' in _this3.props)) { + _this3.store.setState({ openKeys: openKeys }); + } + props.onOpenChange(openKeys); + } + }; - return ar; + this.onDeselect = function (selectInfo) { + var props = _this3.props; + if (props.selectable) { + var selectedKeys = _this3.store.getState().selectedKeys.concat(); + var selectedKey = selectInfo.key; + var index = selectedKeys.indexOf(selectedKey); + if (index !== -1) { + selectedKeys.splice(index, 1); + } + if (!('selectedKeys' in props)) { + _this3.store.setState({ + selectedKeys: selectedKeys + }); + } + props.onDeselect(_extends({}, selectInfo, { + selectedKeys: selectedKeys + })); + } + }; - }))); - + this.getOpenTransitionName = function () { + var props = _this3.props; + var transitionName = props.openTransitionName; + var animationName = props.openAnimation; + if (!transitionName && typeof animationName === 'string') { + transitionName = props.prefixCls + '-open-' + animationName; + } + return transitionName; + }; + + this.focus = function () { + // fireKeyEvent(ReactDOM.findDOMNode(this.innerMenu),'keydown',40); + _this3.props.onFocus && _this3.props.onFocus(); + }; + }; + + exports["default"] = Menu; + module.exports = exports['default']; /***/ }), -/* 408 */ +/* 325 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Arabic (Algeria) [ar-dz] - //! author : Amine Roukh: https://github.com/Amine27 - //! author : Abdel Said: https://github.com/abdelsaid - //! author : Ahmed Elkhatib - //! author : forabi https://github.com/forabi - //! author : Noureddine LOUAHEDJ : https://github.com/noureddinem + 'use strict'; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.create = exports.connect = exports.Provider = undefined; - //! moment.js locale configuration + var _Provider2 = __webpack_require__(326); - var pluralForm = function (n) { - return n === 0 - ? 0 - : n === 1 - ? 1 - : n === 2 - ? 2 - : n % 100 >= 3 && n % 100 <= 10 - ? 3 - : n % 100 >= 11 - ? 4 - : 5; - }, - plurals = { - s: [ - 'أقل من ثانية', - 'ثانية واحدة', - ['ثانيتان', 'ثانيتين'], - '%d ثوان', - '%d ثانية', - '%d ثانية', - ], - m: [ - 'أقل من دقيقة', - 'دقيقة واحدة', - ['دقيقتان', 'دقيقتين'], - '%d دقائق', - '%d دقيقة', - '%d دقيقة', - ], - h: [ - 'أقل من ساعة', - 'ساعة واحدة', - ['ساعتان', 'ساعتين'], - '%d ساعات', - '%d ساعة', - '%d ساعة', - ], - d: [ - 'أقل من يوم', - 'يوم واحد', - ['يومان', 'يومين'], - '%d أيام', - '%d يومًا', - '%d يوم', - ], - M: [ - 'أقل من شهر', - 'شهر واحد', - ['شهران', 'شهرين'], - '%d أشهر', - '%d شهرا', - '%d شهر', - ], - y: [ - 'أقل من عام', - 'عام واحد', - ['عامان', 'عامين'], - '%d أعوام', - '%d عامًا', - '%d عام', - ], - }, - pluralize = function (u) { - return function (number, withoutSuffix, string, isFuture) { - var f = pluralForm(number), - str = plurals[u][pluralForm(number)]; - if (f === 2) { - str = str[withoutSuffix ? 0 : 1]; - } - return str.replace(/%d/i, number); - }; - }, - months = [ - 'جانفي', - 'فيفري', - 'مارس', - 'أفريل', - 'ماي', - 'جوان', - 'جويلية', - 'أوت', - 'سبتمبر', - 'أكتوبر', - 'نوفمبر', - 'ديسمبر', - ]; + var _Provider3 = _interopRequireDefault(_Provider2); - var arDz = moment.defineLocale('ar-dz', { - months: months, - monthsShort: months, - weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'D/\u200FM/\u200FYYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - meridiemParse: /ص|م/, - isPM: function (input) { - return 'م' === input; - }, - meridiem: function (hour, minute, isLower) { - if (hour < 12) { - return 'ص'; - } else { - return 'م'; - } - }, - calendar: { - sameDay: '[اليوم عند الساعة] LT', - nextDay: '[غدًا عند الساعة] LT', - nextWeek: 'dddd [عند الساعة] LT', - lastDay: '[أمس عند الساعة] LT', - lastWeek: 'dddd [عند الساعة] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'بعد %s', - past: 'منذ %s', - s: pluralize('s'), - ss: pluralize('s'), - m: pluralize('m'), - mm: pluralize('m'), - h: pluralize('h'), - hh: pluralize('h'), - d: pluralize('d'), - dd: pluralize('d'), - M: pluralize('M'), - MM: pluralize('M'), - y: pluralize('y'), - yy: pluralize('y'), - }, - postformat: function (string) { - return string.replace(/,/g, '،'); - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var _connect2 = __webpack_require__(328); - return arDz; + var _connect3 = _interopRequireDefault(_connect2); - }))); - + var _create2 = __webpack_require__(330); + + var _create3 = _interopRequireDefault(_create2); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + exports.Provider = _Provider3.default; + exports.connect = _connect3.default; + exports.create = _create3.default; /***/ }), -/* 409 */ +/* 326 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Arabic (Kuwait) [ar-kw] - //! author : Nusret Parlak: https://github.com/nusretparlak + 'use strict'; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + Object.defineProperty(exports, "__esModule", { + value: true + }); - //! moment.js locale configuration + var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - var arKw = moment.defineLocale('ar-kw', { - months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( - '_' - ), - monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( - '_' - ), - weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[اليوم على الساعة] LT', - nextDay: '[غدا على الساعة] LT', - nextWeek: 'dddd [على الساعة] LT', - lastDay: '[أمس على الساعة] LT', - lastWeek: 'dddd [على الساعة] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'في %s', - past: 'منذ %s', - s: 'ثوان', - ss: '%d ثانية', - m: 'دقيقة', - mm: '%d دقائق', - h: 'ساعة', - hh: '%d ساعات', - d: 'يوم', - dd: '%d أيام', - M: 'شهر', - MM: '%d أشهر', - y: 'سنة', - yy: '%d سنوات', - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 12, // The week that contains Jan 12th is the first week of the year. - }, - }); + var _react = __webpack_require__(1); - return arKw; + var _react2 = _interopRequireDefault(_react); - }))); - - -/***/ }), -/* 410 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Arabic (Lybia) [ar-ly] - //! author : Ali Hmer: https://github.com/kikoanis + var _PropTypes = __webpack_require__(327); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - //! moment.js locale configuration + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - var symbolMap = { - '1': '1', - '2': '2', - '3': '3', - '4': '4', - '5': '5', - '6': '6', - '7': '7', - '8': '8', - '9': '9', - '0': '0', - }, - pluralForm = function (n) { - return n === 0 - ? 0 - : n === 1 - ? 1 - : n === 2 - ? 2 - : n % 100 >= 3 && n % 100 <= 10 - ? 3 - : n % 100 >= 11 - ? 4 - : 5; - }, - plurals = { - s: [ - 'أقل من ثانية', - 'ثانية واحدة', - ['ثانيتان', 'ثانيتين'], - '%d ثوان', - '%d ثانية', - '%d ثانية', - ], - m: [ - 'أقل من دقيقة', - 'دقيقة واحدة', - ['دقيقتان', 'دقيقتين'], - '%d دقائق', - '%d دقيقة', - '%d دقيقة', - ], - h: [ - 'أقل من ساعة', - 'ساعة واحدة', - ['ساعتان', 'ساعتين'], - '%d ساعات', - '%d ساعة', - '%d ساعة', - ], - d: [ - 'أقل من يوم', - 'يوم واحد', - ['يومان', 'يومين'], - '%d أيام', - '%d يومًا', - '%d يوم', - ], - M: [ - 'أقل من شهر', - 'شهر واحد', - ['شهران', 'شهرين'], - '%d أشهر', - '%d شهرا', - '%d شهر', - ], - y: [ - 'أقل من عام', - 'عام واحد', - ['عامان', 'عامين'], - '%d أعوام', - '%d عامًا', - '%d عام', - ], - }, - pluralize = function (u) { - return function (number, withoutSuffix, string, isFuture) { - var f = pluralForm(number), - str = plurals[u][pluralForm(number)]; - if (f === 2) { - str = str[withoutSuffix ? 0 : 1]; - } - return str.replace(/%d/i, number); - }; - }, - months = [ - 'يناير', - 'فبراير', - 'مارس', - 'أبريل', - 'مايو', - 'يونيو', - 'يوليو', - 'أغسطس', - 'سبتمبر', - 'أكتوبر', - 'نوفمبر', - 'ديسمبر', - ]; + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - var arLy = moment.defineLocale('ar-ly', { - months: months, - monthsShort: months, - weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'D/\u200FM/\u200FYYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - meridiemParse: /ص|م/, - isPM: function (input) { - return 'م' === input; - }, - meridiem: function (hour, minute, isLower) { - if (hour < 12) { - return 'ص'; - } else { - return 'م'; - } - }, - calendar: { - sameDay: '[اليوم عند الساعة] LT', - nextDay: '[غدًا عند الساعة] LT', - nextWeek: 'dddd [عند الساعة] LT', - lastDay: '[أمس عند الساعة] LT', - lastWeek: 'dddd [عند الساعة] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'بعد %s', - past: 'منذ %s', - s: pluralize('s'), - ss: pluralize('s'), - m: pluralize('m'), - mm: pluralize('m'), - h: pluralize('h'), - hh: pluralize('h'), - d: pluralize('d'), - dd: pluralize('d'), - M: pluralize('M'), - MM: pluralize('M'), - y: pluralize('y'), - yy: pluralize('y'), - }, - preparse: function (string) { - return string.replace(/،/g, ','); - }, - postformat: function (string) { - return string - .replace(/\d/g, function (match) { - return symbolMap[match]; - }) - .replace(/,/g, '،'); - }, - week: { - dow: 6, // Saturday is the first day of the week. - doy: 12, // The week that contains Jan 12th is the first week of the year. - }, - }); + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - return arLy; + var Provider = function (_Component) { + _inherits(Provider, _Component); - }))); - + function Provider() { + _classCallCheck(this, Provider); + + return _possibleConstructorReturn(this, (Provider.__proto__ || Object.getPrototypeOf(Provider)).apply(this, arguments)); + } + + _createClass(Provider, [{ + key: 'getChildContext', + value: function getChildContext() { + return { + miniStore: this.props.store + }; + } + }, { + key: 'render', + value: function render() { + return _react.Children.only(this.props.children); + } + }]); + + return Provider; + }(_react.Component); + + Provider.propTypes = { + store: _PropTypes.storeShape.isRequired + }; + Provider.childContextTypes = { + miniStore: _PropTypes.storeShape.isRequired + }; + exports.default = Provider; /***/ }), -/* 411 */ +/* 327 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Arabic (Morocco) [ar-ma] - //! author : ElFadili Yassine : https://github.com/ElFadiliY - //! author : Abdel Said : https://github.com/abdelsaid + 'use strict'; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.storeShape = undefined; - //! moment.js locale configuration + var _propTypes = __webpack_require__(6); - var arMa = moment.defineLocale('ar-ma', { - months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( - '_' - ), - monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( - '_' - ), - weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[اليوم على الساعة] LT', - nextDay: '[غدا على الساعة] LT', - nextWeek: 'dddd [على الساعة] LT', - lastDay: '[أمس على الساعة] LT', - lastWeek: 'dddd [على الساعة] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'في %s', - past: 'منذ %s', - s: 'ثوان', - ss: '%d ثانية', - m: 'دقيقة', - mm: '%d دقائق', - h: 'ساعة', - hh: '%d ساعات', - d: 'يوم', - dd: '%d أيام', - M: 'شهر', - MM: '%d أشهر', - y: 'سنة', - yy: '%d سنوات', - }, - week: { - dow: 6, // Saturday is the first day of the week. - doy: 12, // The week that contains Jan 12th is the first week of the year. - }, - }); + var _propTypes2 = _interopRequireDefault(_propTypes); - return arMa; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - }))); - + var storeShape = exports.storeShape = _propTypes2.default.shape({ + subscribe: _propTypes2.default.func.isRequired, + setState: _propTypes2.default.func.isRequired, + getState: _propTypes2.default.func.isRequired + }); /***/ }), -/* 412 */ +/* 328 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Arabic (Saudi Arabia) [ar-sa] - //! author : Suhail Alkowaileet : https://github.com/xsoh + 'use strict'; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + Object.defineProperty(exports, "__esModule", { + value: true + }); - //! moment.js locale configuration + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var symbolMap = { - '1': '١', - '2': '٢', - '3': '٣', - '4': '٤', - '5': '٥', - '6': '٦', - '7': '٧', - '8': '٨', - '9': '٩', - '0': '٠', - }, - numberMap = { - '١': '1', - '٢': '2', - '٣': '3', - '٤': '4', - '٥': '5', - '٦': '6', - '٧': '7', - '٨': '8', - '٩': '9', - '٠': '0', - }; + var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - var arSa = moment.defineLocale('ar-sa', { - months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( - '_' - ), - monthsShort: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( - '_' - ), - weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - meridiemParse: /ص|م/, - isPM: function (input) { - return 'م' === input; - }, - meridiem: function (hour, minute, isLower) { - if (hour < 12) { - return 'ص'; - } else { - return 'م'; - } - }, - calendar: { - sameDay: '[اليوم على الساعة] LT', - nextDay: '[غدا على الساعة] LT', - nextWeek: 'dddd [على الساعة] LT', - lastDay: '[أمس على الساعة] LT', - lastWeek: 'dddd [على الساعة] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'في %s', - past: 'منذ %s', - s: 'ثوان', - ss: '%d ثانية', - m: 'دقيقة', - mm: '%d دقائق', - h: 'ساعة', - hh: '%d ساعات', - d: 'يوم', - dd: '%d أيام', - M: 'شهر', - MM: '%d أشهر', - y: 'سنة', - yy: '%d سنوات', - }, - preparse: function (string) { - return string - .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) { - return numberMap[match]; - }) - .replace(/،/g, ','); - }, - postformat: function (string) { - return string - .replace(/\d/g, function (match) { - return symbolMap[match]; - }) - .replace(/,/g, '،'); - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }, - }); + exports.default = connect; - return arSa; + var _react = __webpack_require__(1); - }))); - - -/***/ }), -/* 413 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Arabic (Tunisia) [ar-tn] - //! author : Nader Toukabri : https://github.com/naderio + var _react2 = _interopRequireDefault(_react); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _shallowequal = __webpack_require__(329); - //! moment.js locale configuration + var _shallowequal2 = _interopRequireDefault(_shallowequal); - var arTn = moment.defineLocale('ar-tn', { - months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( - '_' - ), - monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( - '_' - ), - weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[اليوم على الساعة] LT', - nextDay: '[غدا على الساعة] LT', - nextWeek: 'dddd [على الساعة] LT', - lastDay: '[أمس على الساعة] LT', - lastWeek: 'dddd [على الساعة] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'في %s', - past: 'منذ %s', - s: 'ثوان', - ss: '%d ثانية', - m: 'دقيقة', - mm: '%d دقائق', - h: 'ساعة', - hh: '%d ساعات', - d: 'يوم', - dd: '%d أيام', - M: 'شهر', - MM: '%d أشهر', - y: 'سنة', - yy: '%d سنوات', - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var _hoistNonReactStatics = __webpack_require__(213); - return arTn; + var _hoistNonReactStatics2 = _interopRequireDefault(_hoistNonReactStatics); - }))); - - -/***/ }), -/* 414 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Azerbaijani [az] - //! author : topchiyev : https://github.com/topchiyev + var _reactLifecyclesCompat = __webpack_require__(81); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _PropTypes = __webpack_require__(327); - //! moment.js locale configuration + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var suffixes = { - 1: '-inci', - 5: '-inci', - 8: '-inci', - 70: '-inci', - 80: '-inci', - 2: '-nci', - 7: '-nci', - 20: '-nci', - 50: '-nci', - 3: '-üncü', - 4: '-üncü', - 100: '-üncü', - 6: '-ncı', - 9: '-uncu', - 10: '-uncu', - 30: '-uncu', - 60: '-ıncı', - 90: '-ıncı', + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + + function getDisplayName(WrappedComponent) { + return WrappedComponent.displayName || WrappedComponent.name || 'Component'; + } + + function isStateless(Component) { + return !Component.prototype.render; + } + + var defaultMapStateToProps = function defaultMapStateToProps() { + return {}; + }; + + function connect(mapStateToProps) { + var shouldSubscribe = !!mapStateToProps; + var finnalMapStateToProps = mapStateToProps || defaultMapStateToProps; + + return function wrapWithConnect(WrappedComponent) { + var Connect = function (_Component) { + _inherits(Connect, _Component); + + _createClass(Connect, null, [{ + key: 'getDerivedStateFromProps', + value: function getDerivedStateFromProps(props, prevState) { + // using ownProps + if (mapStateToProps && mapStateToProps.length === 2 && props !== prevState.props) { + return { + subscribed: finnalMapStateToProps(prevState.store.getState(), props), + props: props + }; + } + return { props: props }; + } + }]); + + function Connect(props, context) { + _classCallCheck(this, Connect); + + var _this = _possibleConstructorReturn(this, (Connect.__proto__ || Object.getPrototypeOf(Connect)).call(this, props, context)); + + _this.handleChange = function () { + if (!_this.unsubscribe) { + return; + } + var nextState = finnalMapStateToProps(_this.store.getState(), _this.props); + _this.setState({ subscribed: nextState }); + }; + + _this.store = context.miniStore; + _this.state = { + subscribed: finnalMapStateToProps(_this.store.getState(), props), + store: _this.store, + props: props + }; + return _this; + } + + _createClass(Connect, [{ + key: 'componentDidMount', + value: function componentDidMount() { + this.trySubscribe(); + } + }, { + key: 'componentWillUnmount', + value: function componentWillUnmount() { + this.tryUnsubscribe(); + } + }, { + key: 'shouldComponentUpdate', + value: function shouldComponentUpdate(nextProps, nextState) { + return !(0, _shallowequal2.default)(this.props, nextProps) || !(0, _shallowequal2.default)(this.state.subscribed, nextState.subscribed); + } + }, { + key: 'trySubscribe', + value: function trySubscribe() { + if (shouldSubscribe) { + this.unsubscribe = this.store.subscribe(this.handleChange); + this.handleChange(); + } + } + }, { + key: 'tryUnsubscribe', + value: function tryUnsubscribe() { + if (this.unsubscribe) { + this.unsubscribe(); + this.unsubscribe = null; + } + } + }, { + key: 'getWrappedInstance', + value: function getWrappedInstance() { + return this.wrappedInstance; + } + }, { + key: 'render', + value: function render() { + var _this2 = this; + + var props = _extends({}, this.props, this.state.subscribed, { + store: this.store + }); + + if (!isStateless(WrappedComponent)) { + props = _extends({}, props, { + ref: function ref(c) { + return _this2.wrappedInstance = c; + } + }); + } + + return _react2.default.createElement(WrappedComponent, props); + } + }]); + + return Connect; + }(_react.Component); + + Connect.displayName = 'Connect(' + getDisplayName(WrappedComponent) + ')'; + Connect.contextTypes = { + miniStore: _PropTypes.storeShape.isRequired }; - var az = moment.defineLocale('az', { - months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split( - '_' - ), - monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'), - weekdays: 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split( - '_' - ), - weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'), - weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[bugün saat] LT', - nextDay: '[sabah saat] LT', - nextWeek: '[gələn həftə] dddd [saat] LT', - lastDay: '[dünən] LT', - lastWeek: '[keçən həftə] dddd [saat] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s sonra', - past: '%s əvvəl', - s: 'birneçə saniyə', - ss: '%d saniyə', - m: 'bir dəqiqə', - mm: '%d dəqiqə', - h: 'bir saat', - hh: '%d saat', - d: 'bir gün', - dd: '%d gün', - M: 'bir ay', - MM: '%d ay', - y: 'bir il', - yy: '%d il', - }, - meridiemParse: /gecə|səhər|gündüz|axşam/, - isPM: function (input) { - return /^(gündüz|axşam)$/.test(input); - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'gecə'; - } else if (hour < 12) { - return 'səhər'; - } else if (hour < 17) { - return 'gündüz'; - } else { - return 'axşam'; - } - }, - dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/, - ordinal: function (number) { - if (number === 0) { - // special case for zero - return number + '-ıncı'; - } - var a = number % 10, - b = (number % 100) - a, - c = number >= 100 ? 100 : null; - return number + (suffixes[a] || suffixes[b] || suffixes[c]); - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); - return az; + (0, _reactLifecyclesCompat.polyfill)(Connect); - }))); - + return (0, _hoistNonReactStatics2.default)(Connect, WrappedComponent); + }; + } /***/ }), -/* 415 */ -/***/ (function(module, exports, __webpack_require__) { +/* 329 */ +/***/ (function(module, exports) { - //! moment.js locale configuration - //! locale : Belarusian [be] - //! author : Dmitry Demidov : https://github.com/demidov91 - //! author: Praleska: http://praleska.pro/ - //! Author : Menelion Elensúle : https://github.com/Oire + // - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + module.exports = function shallowEqual(objA, objB, compare, compareContext) { + var ret = compare ? compare.call(compareContext, objA, objB) : void 0; - //! moment.js locale configuration + if (ret !== void 0) { + return !!ret; + } - function plural(word, num) { - var forms = word.split('_'); - return num % 10 === 1 && num % 100 !== 11 - ? forms[0] - : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) - ? forms[1] - : forms[2]; - } - function relativeTimeWithPlural(number, withoutSuffix, key) { - var format = { - ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд', - mm: withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін', - hh: withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін', - dd: 'дзень_дні_дзён', - MM: 'месяц_месяцы_месяцаў', - yy: 'год_гады_гадоў', - }; - if (key === 'm') { - return withoutSuffix ? 'хвіліна' : 'хвіліну'; - } else if (key === 'h') { - return withoutSuffix ? 'гадзіна' : 'гадзіну'; - } else { - return number + ' ' + plural(format[key], +number); - } + if (objA === objB) { + return true; + } + + if (typeof objA !== "object" || !objA || typeof objB !== "object" || !objB) { + return false; + } + + var keysA = Object.keys(objA); + var keysB = Object.keys(objB); + + if (keysA.length !== keysB.length) { + return false; + } + + var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB); + + // Test for A's keys different from B. + for (var idx = 0; idx < keysA.length; idx++) { + var key = keysA[idx]; + + if (!bHasOwnProperty(key)) { + return false; } - var be = moment.defineLocale('be', { - months: { - format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split( - '_' - ), - standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split( - '_' - ), - }, - monthsShort: 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split( - '_' - ), - weekdays: { - format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split( - '_' - ), - standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split( - '_' - ), - isFormat: /\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/, - }, - weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'), - weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY г.', - LLL: 'D MMMM YYYY г., HH:mm', - LLLL: 'dddd, D MMMM YYYY г., HH:mm', - }, - calendar: { - sameDay: '[Сёння ў] LT', - nextDay: '[Заўтра ў] LT', - lastDay: '[Учора ў] LT', - nextWeek: function () { - return '[У] dddd [ў] LT'; - }, - lastWeek: function () { - switch (this.day()) { - case 0: - case 3: - case 5: - case 6: - return '[У мінулую] dddd [ў] LT'; - case 1: - case 2: - case 4: - return '[У мінулы] dddd [ў] LT'; - } - }, - sameElse: 'L', - }, - relativeTime: { - future: 'праз %s', - past: '%s таму', - s: 'некалькі секунд', - m: relativeTimeWithPlural, - mm: relativeTimeWithPlural, - h: relativeTimeWithPlural, - hh: relativeTimeWithPlural, - d: 'дзень', - dd: relativeTimeWithPlural, - M: 'месяц', - MM: relativeTimeWithPlural, - y: 'год', - yy: relativeTimeWithPlural, - }, - meridiemParse: /ночы|раніцы|дня|вечара/, - isPM: function (input) { - return /^(дня|вечара)$/.test(input); - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'ночы'; - } else if (hour < 12) { - return 'раніцы'; - } else if (hour < 17) { - return 'дня'; - } else { - return 'вечара'; - } - }, - dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/, - ordinal: function (number, period) { - switch (period) { - case 'M': - case 'd': - case 'DDD': - case 'w': - case 'W': - return (number % 10 === 2 || number % 10 === 3) && - number % 100 !== 12 && - number % 100 !== 13 - ? number + '-і' - : number + '-ы'; - case 'D': - return number + '-га'; - default: - return number; - } - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); + var valueA = objA[key]; + var valueB = objB[key]; - return be; + ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0; - }))); + if (ret === false || (ret === void 0 && valueA !== valueB)) { + return false; + } + } + + return true; + }; /***/ }), -/* 416 */ -/***/ (function(module, exports, __webpack_require__) { +/* 330 */ +/***/ (function(module, exports) { - //! moment.js locale configuration - //! locale : Bulgarian [bg] - //! author : Krasen Borisov : https://github.com/kraz + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + Object.defineProperty(exports, "__esModule", { + value: true + }); - //! moment.js locale configuration + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var bg = moment.defineLocale('bg', { - months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split( - '_' - ), - monthsShort: 'яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'), - weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split( - '_' - ), - weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'), - weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'), - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'D.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY H:mm', - LLLL: 'dddd, D MMMM YYYY H:mm', - }, - calendar: { - sameDay: '[Днес в] LT', - nextDay: '[Утре в] LT', - nextWeek: 'dddd [в] LT', - lastDay: '[Вчера в] LT', - lastWeek: function () { - switch (this.day()) { - case 0: - case 3: - case 6: - return '[Миналата] dddd [в] LT'; - case 1: - case 2: - case 4: - case 5: - return '[Миналия] dddd [в] LT'; - } - }, - sameElse: 'L', - }, - relativeTime: { - future: 'след %s', - past: 'преди %s', - s: 'няколко секунди', - ss: '%d секунди', - m: 'минута', - mm: '%d минути', - h: 'час', - hh: '%d часа', - d: 'ден', - dd: '%d дена', - M: 'месец', - MM: '%d месеца', - y: 'година', - yy: '%d години', - }, - dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/, - ordinal: function (number) { - var lastDigit = number % 10, - last2Digits = number % 100; - if (number === 0) { - return number + '-ев'; - } else if (last2Digits === 0) { - return number + '-ен'; - } else if (last2Digits > 10 && last2Digits < 20) { - return number + '-ти'; - } else if (lastDigit === 1) { - return number + '-ви'; - } else if (lastDigit === 2) { - return number + '-ри'; - } else if (lastDigit === 7 || lastDigit === 8) { - return number + '-ми'; - } else { - return number + '-ти'; - } - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); + exports.default = create; + function create(initialState) { + var state = initialState; + var listeners = []; - return bg; + function setState(partial) { + state = _extends({}, state, partial); + for (var i = 0; i < listeners.length; i++) { + listeners[i](); + } + } - }))); - + function getState() { + return state; + } + + function subscribe(listener) { + listeners.push(listener); + + return function unsubscribe() { + var index = listeners.indexOf(listener); + listeners.splice(index, 1); + }; + } + + return { + setState: setState, + getState: getState, + subscribe: subscribe + }; + } /***/ }), -/* 417 */ +/* 331 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Bambara [bm] - //! author : Estelle Comment : https://github.com/estellecomment + 'use strict'; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.SubPopupMenu = undefined; - //! moment.js locale configuration + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; /** + * This source code is quoted from rc-menu. + * homepage: https://github.com/react-component/menu + */ - var bm = moment.defineLocale('bm', { - months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split( - '_' - ), - monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'), - weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'), - weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'), - weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'MMMM [tile] D [san] YYYY', - LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm', - LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm', - }, - calendar: { - sameDay: '[Bi lɛrɛ] LT', - nextDay: '[Sini lɛrɛ] LT', - nextWeek: 'dddd [don lɛrɛ] LT', - lastDay: '[Kunu lɛrɛ] LT', - lastWeek: 'dddd [tɛmɛnen lɛrɛ] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s kɔnɔ', - past: 'a bɛ %s bɔ', - s: 'sanga dama dama', - ss: 'sekondi %d', - m: 'miniti kelen', - mm: 'miniti %d', - h: 'lɛrɛ kelen', - hh: 'lɛrɛ %d', - d: 'tile kelen', - dd: 'tile %d', - M: 'kalo kelen', - MM: 'kalo %d', - y: 'san kelen', - yy: 'san %d', - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - return bm; + exports.getActiveKey = getActiveKey; + exports.saveRef = saveRef; - }))); - - -/***/ }), -/* 418 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Bengali [bn] - //! author : Kaushik Gandhi : https://github.com/kaushikgandhi + var _react = __webpack_require__(1); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _react2 = _interopRequireDefault(_react); - //! moment.js locale configuration + var _propTypes = __webpack_require__(6); - var symbolMap = { - '1': '১', - '2': '২', - '3': '৩', - '4': '৪', - '5': '৫', - '6': '৬', - '7': '৭', - '8': '৮', - '9': '৯', - '0': '০', - }, - numberMap = { - '১': '1', - '২': '2', - '৩': '3', - '৪': '4', - '৫': '5', - '৬': '6', - '৭': '7', - '৮': '8', - '৯': '9', - '০': '0', - }; + var _propTypes2 = _interopRequireDefault(_propTypes); - var bn = moment.defineLocale('bn', { - months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split( - '_' - ), - monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split( - '_' - ), - weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split( - '_' - ), - weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'), - weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'), - longDateFormat: { - LT: 'A h:mm সময়', - LTS: 'A h:mm:ss সময়', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm সময়', - LLLL: 'dddd, D MMMM YYYY, A h:mm সময়', - }, - calendar: { - sameDay: '[আজ] LT', - nextDay: '[আগামীকাল] LT', - nextWeek: 'dddd, LT', - lastDay: '[গতকাল] LT', - lastWeek: '[গত] dddd, LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s পরে', - past: '%s আগে', - s: 'কয়েক সেকেন্ড', - ss: '%d সেকেন্ড', - m: 'এক মিনিট', - mm: '%d মিনিট', - h: 'এক ঘন্টা', - hh: '%d ঘন্টা', - d: 'এক দিন', - dd: '%d দিন', - M: 'এক মাস', - MM: '%d মাস', - y: 'এক বছর', - yy: '%d বছর', - }, - preparse: function (string) { - return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if ( - (meridiem === 'রাত' && hour >= 4) || - (meridiem === 'দুপুর' && hour < 5) || - meridiem === 'বিকাল' - ) { - return hour + 12; - } else { - return hour; - } - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'রাত'; - } else if (hour < 10) { - return 'সকাল'; - } else if (hour < 17) { - return 'দুপুর'; - } else if (hour < 20) { - return 'বিকাল'; - } else { - return 'রাত'; - } - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }, - }); + var _miniStore = __webpack_require__(325); - return bn; + var _tinperBeeCore = __webpack_require__(27); - }))); - - -/***/ }), -/* 419 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Tibetan [bo] - //! author : Thupten N. Chakrishar : https://github.com/vajradog + var _createChainedFunction = __webpack_require__(332); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _createChainedFunction2 = _interopRequireDefault(_createChainedFunction); - //! moment.js locale configuration + var _classnames = __webpack_require__(5); - var symbolMap = { - '1': '༡', - '2': '༢', - '3': '༣', - '4': '༤', - '5': '༥', - '6': '༦', - '7': '༧', - '8': '༨', - '9': '༩', - '0': '༠', - }, - numberMap = { - '༡': '1', - '༢': '2', - '༣': '3', - '༤': '4', - '༥': '5', - '༦': '6', - '༧': '7', - '༨': '8', - '༩': '9', - '༠': '0', - }; + var _classnames2 = _interopRequireDefault(_classnames); - var bo = moment.defineLocale('bo', { - months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split( - '_' - ), - monthsShort: 'ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12'.split( - '_' - ), - monthsShortRegex: /^(ཟླ་\d{1,2})/, - monthsParseExact: true, - weekdays: 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split( - '_' - ), - weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split( - '_' - ), - weekdaysMin: 'ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན'.split('_'), - longDateFormat: { - LT: 'A h:mm', - LTS: 'A h:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm', - LLLL: 'dddd, D MMMM YYYY, A h:mm', - }, - calendar: { - sameDay: '[དི་རིང] LT', - nextDay: '[སང་ཉིན] LT', - nextWeek: '[བདུན་ཕྲག་རྗེས་མ], LT', - lastDay: '[ཁ་སང] LT', - lastWeek: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s ལ་', - past: '%s སྔན་ལ', - s: 'ལམ་སང', - ss: '%d སྐར་ཆ།', - m: 'སྐར་མ་གཅིག', - mm: '%d སྐར་མ', - h: 'ཆུ་ཚོད་གཅིག', - hh: '%d ཆུ་ཚོད', - d: 'ཉིན་གཅིག', - dd: '%d ཉིན་', - M: 'ཟླ་བ་གཅིག', - MM: '%d ཟླ་བ', - y: 'ལོ་གཅིག', - yy: '%d ལོ', - }, - preparse: function (string) { - return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if ( - (meridiem === 'མཚན་མོ' && hour >= 4) || - (meridiem === 'ཉིན་གུང' && hour < 5) || - meridiem === 'དགོང་དག' - ) { - return hour + 12; - } else { - return hour; - } - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'མཚན་མོ'; - } else if (hour < 10) { - return 'ཞོགས་ཀས'; - } else if (hour < 17) { - return 'ཉིན་གུང'; - } else if (hour < 20) { - return 'དགོང་དག'; - } else { - return 'མཚན་མོ'; - } - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }, + var _util = __webpack_require__(333); + + var _DOMWrap = __webpack_require__(334); + + var _DOMWrap2 = _interopRequireDefault(_DOMWrap); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + function allDisabled(arr) { + if (!arr.length) { + return true; + } + return arr.every(function (c) { + return !!c.props.disabled; + }); + } + + function updateActiveKey(store, menuId, activeKey) { + var state = store.getState(); + store.setState({ + activeKey: _extends({}, state.activeKey, _defineProperty({}, menuId, activeKey)) + }); + } + + function getEventKey(props) { + // when eventKey not available ,it's menu and return menu id '0-menu-' + return props.eventKey || '0-menu-'; + } + + function getActiveKey(props, originalActiveKey) { + var activeKey = originalActiveKey; + var children = props.children, + eventKey = props.eventKey; + + if (activeKey) { + var found = void 0; + (0, _util.loopMenuItem)(children, function (c, i) { + if (c && !c.props.disabled && activeKey === (0, _util.getKeyFromChildrenIndex)(c, eventKey, i)) { + found = true; + } + }); + if (found) { + return activeKey; + } + } + activeKey = null; + if (props.defaultActiveFirst) { + (0, _util.loopMenuItem)(children, function (c, i) { + if (!activeKey && c && !c.props.disabled) { + activeKey = (0, _util.getKeyFromChildrenIndex)(c, eventKey, i); + } }); + return activeKey; + } + return activeKey; + } - return bo; + function saveRef(c) { + if (c) { + var index = this.instanceArray.indexOf(c); + if (index !== -1) { + // update component if it's already inside instanceArray + this.instanceArray[index] = c; + } else { + // add component if it's not in instanceArray yet; + this.instanceArray.push(c); + } + } + } - }))); - - -/***/ }), -/* 420 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Breton [br] - //! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou + var SubPopupMenu = exports.SubPopupMenu = function (_React$Component) { + _inherits(SubPopupMenu, _React$Component); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + function SubPopupMenu(props) { + _classCallCheck(this, SubPopupMenu); - //! moment.js locale configuration + var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); - function relativeTimeWithMutation(number, withoutSuffix, key) { - var format = { - mm: 'munutenn', - MM: 'miz', - dd: 'devezh', - }; - return number + ' ' + mutation(format[key], number); + _initialiseProps.call(_this); + + props.store.setState({ + activeKey: _extends({}, props.store.getState().activeKey, _defineProperty({}, props.eventKey, getActiveKey(props, props.activeKey))) + }); + + _this.instanceArray = []; + return _this; + } + + SubPopupMenu.prototype.componentDidMount = function componentDidMount() { + // invoke customized ref to expose component to mixin + if (this.props.manualRef) { + this.props.manualRef(this); } - function specialMutationForYears(number) { - switch (lastNumber(number)) { - case 1: - case 3: - case 4: - case 5: - case 9: - return number + ' bloaz'; - default: - return number + ' vloaz'; - } + }; + + SubPopupMenu.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) { + return this.props.visible || nextProps.visible; + }; + + SubPopupMenu.prototype.componentDidUpdate = function componentDidUpdate(prevProps) { + var props = this.props; + var originalActiveKey = 'activeKey' in props ? props.activeKey : props.store.getState().activeKey[getEventKey(props)]; + var activeKey = getActiveKey(props, originalActiveKey); + if (activeKey !== originalActiveKey) { + updateActiveKey(props.store, getEventKey(props), activeKey); + } else if ('activeKey' in prevProps) { + // If prev activeKey is not same as current activeKey, + // we should set it. + var prevActiveKey = getActiveKey(prevProps, prevProps.activeKey); + if (activeKey !== prevActiveKey) { + updateActiveKey(props.store, getEventKey(props), activeKey); + } } - function lastNumber(number) { - if (number > 9) { - return lastNumber(number % 10); - } - return number; + }; + + // all keyboard events callbacks run from here at first + + + SubPopupMenu.prototype.render = function render() { + var _this2 = this; + + var props = _objectWithoutProperties(this.props, []); + + this.instanceArray = []; + var className = (0, _classnames2["default"])(props.prefixCls, props.className, props.prefixCls + '-' + props.mode); + var domProps = { + className: className, + // role could be 'select' and by default set to menu + role: props.role || 'menu' + }; + if (props.id) { + domProps.id = props.id; } - function mutation(text, number) { - if (number === 2) { - return softMutation(text); - } - return text; + if (props.focusable) { + domProps.tabIndex = this.props.tabIndex; + domProps.onKeyDown = props.keyboard && this.onKeyDown; } - function softMutation(text) { - var mutationTable = { - m: 'v', - b: 'v', - d: 'z', - }; - if (mutationTable[text.charAt(0)] === undefined) { - return text; - } - return mutationTable[text.charAt(0)] + text.substring(1); + var prefixCls = props.prefixCls, + eventKey = props.eventKey, + visible = props.visible, + level = props.level, + mode = props.mode, + overflowedIndicator = props.overflowedIndicator, + theme = props.theme; + + _util.menuAllProps.forEach(function (key) { + return delete props[key]; + }); + + // Otherwise, the propagated click event will trigger another onClick + delete props.onClick; + delete props.keyboard; + + return ( + // ESLint is not smart enough to know that the type of `children` was checked. + /* eslint-disable */ + _react2["default"].createElement( + _DOMWrap2["default"], + _extends({}, props, { + prefixCls: prefixCls, + mode: mode, + tag: 'ul', + level: level, + theme: theme, + hiddenClassName: prefixCls + '-hidden', + visible: visible, + overflowedIndicator: overflowedIndicator + }, domProps), + _react2["default"].Children.map(props.children, function (c, i) { + return _this2.renderMenuItem(c, i, eventKey || '0-menu-'); + }) + ) + /*eslint-enable */ + + ); + }; + + return SubPopupMenu; + }(_react2["default"].Component); + + SubPopupMenu.propTypes = { + onSelect: _propTypes2["default"].func, + onClick: _propTypes2["default"].func, + onDeselect: _propTypes2["default"].func, + onOpenChange: _propTypes2["default"].func, + onDestroy: _propTypes2["default"].func, + openTransitionName: _propTypes2["default"].string, + openAnimation: _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].object]), + openKeys: _propTypes2["default"].arrayOf(_propTypes2["default"].string), + visible: _propTypes2["default"].bool, + children: _propTypes2["default"].any, + parentMenu: _propTypes2["default"].object, + eventKey: _propTypes2["default"].string, + store: _propTypes2["default"].shape({ + getState: _propTypes2["default"].func, + setState: _propTypes2["default"].func + }), + + // adding in refactor + focusable: _propTypes2["default"].bool, + multiple: _propTypes2["default"].bool, + style: _propTypes2["default"].object, + defaultActiveFirst: _propTypes2["default"].bool, + activeKey: _propTypes2["default"].string, + selectedKeys: _propTypes2["default"].arrayOf(_propTypes2["default"].string), + defaultSelectedKeys: _propTypes2["default"].arrayOf(_propTypes2["default"].string), + defaultOpenKeys: _propTypes2["default"].arrayOf(_propTypes2["default"].string), + level: _propTypes2["default"].number, + mode: _propTypes2["default"].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']), + triggerSubMenuAction: _propTypes2["default"].oneOf(['click', 'hover']), + inlineIndent: _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string]), + manualRef: _propTypes2["default"].func, + itemIcon: _propTypes2["default"].oneOfType([_propTypes2["default"].func, _propTypes2["default"].node]), + expandIcon: _propTypes2["default"].oneOfType([_propTypes2["default"].func, _propTypes2["default"].node]) + }; + SubPopupMenu.defaultProps = { + prefixCls: 'rc-menu', + className: '', + mode: 'vertical', + level: 1, + inlineIndent: 24, + visible: true, + focusable: true, + style: {}, + manualRef: _util.noop + }; + + var _initialiseProps = function _initialiseProps() { + var _this3 = this; + + this.onKeyDown = function (e, callback) { + var keyCode = e.keyCode; + var handled = void 0; + _this3.getFlatInstanceArray().forEach(function (obj) { + if (obj && obj.props.active && obj.onKeyDown) { + handled = obj.onKeyDown(e); + } + }); + if (handled) { + return 1; + } + var activeItem = null; + if (keyCode === _tinperBeeCore.KeyCode.UP || keyCode === _tinperBeeCore.KeyCode.DOWN) { + if (_this3.props.store.getState().keyboard) { + //是否启用键盘操作 + activeItem = _this3.step(keyCode === _tinperBeeCore.KeyCode.UP ? -2 : 2); + } } - var monthsParse = [ - /^gen/i, - /^c[ʼ\']hwe/i, - /^meu/i, - /^ebr/i, - /^mae/i, - /^(mez|eve)/i, - /^gou/i, - /^eos/i, - /^gwe/i, - /^her/i, - /^du/i, - /^ker/i, - ], - monthsRegex = /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i, - monthsStrictRegex = /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i, - monthsShortStrictRegex = /^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i, - fullWeekdaysParse = [ - /^sul/i, - /^lun/i, - /^meurzh/i, - /^merc[ʼ\']her/i, - /^yaou/i, - /^gwener/i, - /^sadorn/i, - ], - shortWeekdaysParse = [ - /^Sul/i, - /^Lun/i, - /^Meu/i, - /^Mer/i, - /^Yao/i, - /^Gwe/i, - /^Sad/i, - ], - minWeekdaysParse = [ - /^Su/i, - /^Lu/i, - /^Me([^r]|$)/i, - /^Mer/i, - /^Ya/i, - /^Gw/i, - /^Sa/i, - ]; + if (activeItem) { + e.preventDefault(); + updateActiveKey(_this3.props.store, getEventKey(_this3.props), activeItem.props.eventKey); - var br = moment.defineLocale('br', { - months: 'Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split( - '_' - ), - monthsShort: 'Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'), - weekdays: 'Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn'.split('_'), - weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'), - weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'), - weekdaysParse: minWeekdaysParse, - fullWeekdaysParse: fullWeekdaysParse, - shortWeekdaysParse: shortWeekdaysParse, - minWeekdaysParse: minWeekdaysParse, + if (typeof callback === 'function') { + callback(activeItem); + } - monthsRegex: monthsRegex, - monthsShortRegex: monthsRegex, - monthsStrictRegex: monthsStrictRegex, - monthsShortStrictRegex: monthsShortStrictRegex, - monthsParse: monthsParse, - longMonthsParse: monthsParse, - shortMonthsParse: monthsParse, + return 1; + } + }; - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D [a viz] MMMM YYYY', - LLL: 'D [a viz] MMMM YYYY HH:mm', - LLLL: 'dddd, D [a viz] MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Hiziv da] LT', - nextDay: '[Warcʼhoazh da] LT', - nextWeek: 'dddd [da] LT', - lastDay: '[Decʼh da] LT', - lastWeek: 'dddd [paset da] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'a-benn %s', - past: '%s ʼzo', - s: 'un nebeud segondennoù', - ss: '%d eilenn', - m: 'ur vunutenn', - mm: relativeTimeWithMutation, - h: 'un eur', - hh: '%d eur', - d: 'un devezh', - dd: relativeTimeWithMutation, - M: 'ur miz', - MM: relativeTimeWithMutation, - y: 'ur bloaz', - yy: specialMutationForYears, - }, - dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/, - ordinal: function (number) { - var output = number === 1 ? 'añ' : 'vet'; - return number + output; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - meridiemParse: /a.m.|g.m./, // goude merenn | a-raok merenn - isPM: function (token) { - return token === 'g.m.'; - }, - meridiem: function (hour, minute, isLower) { - return hour < 12 ? 'a.m.' : 'g.m.'; - }, - }); + this.onItemHover = function (e) { + var key = e.key, + hover = e.hover; - return br; + updateActiveKey(_this3.props.store, getEventKey(_this3.props), hover ? key : null); + }; - }))); - - -/***/ }), -/* 421 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Bosnian [bs] - //! author : Nedim Cholich : https://github.com/frontyard - //! based on (hr) translation by Bojan Marković + this.onDeselect = function (selectInfo) { + _this3.props.onDeselect(selectInfo); + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + this.onSelect = function (selectInfo) { + _this3.props.onSelect(selectInfo); + }; - //! moment.js locale configuration + this.onClick = function (e) { + _this3.props.onClick(e); + }; - function translate(number, withoutSuffix, key) { - var result = number + ' '; - switch (key) { - case 'ss': - if (number === 1) { - result += 'sekunda'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'sekunde'; - } else { - result += 'sekundi'; - } - return result; - case 'm': - return withoutSuffix ? 'jedna minuta' : 'jedne minute'; - case 'mm': - if (number === 1) { - result += 'minuta'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'minute'; - } else { - result += 'minuta'; - } - return result; - case 'h': - return withoutSuffix ? 'jedan sat' : 'jednog sata'; - case 'hh': - if (number === 1) { - result += 'sat'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'sata'; - } else { - result += 'sati'; - } - return result; - case 'dd': - if (number === 1) { - result += 'dan'; - } else { - result += 'dana'; - } - return result; - case 'MM': - if (number === 1) { - result += 'mjesec'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'mjeseca'; - } else { - result += 'mjeseci'; - } - return result; - case 'yy': - if (number === 1) { - result += 'godina'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'godine'; - } else { - result += 'godina'; - } - return result; - } - } + this.onOpenChange = function (e) { + _this3.props.onOpenChange(e); + }; - var bs = moment.defineLocale('bs', { - months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split( - '_' - ), - monthsShort: 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split( - '_' - ), - weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), - weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd, D. MMMM YYYY H:mm', - }, - calendar: { - sameDay: '[danas u] LT', - nextDay: '[sutra u] LT', - nextWeek: function () { - switch (this.day()) { - case 0: - return '[u] [nedjelju] [u] LT'; - case 3: - return '[u] [srijedu] [u] LT'; - case 6: - return '[u] [subotu] [u] LT'; - case 1: - case 2: - case 4: - case 5: - return '[u] dddd [u] LT'; - } - }, - lastDay: '[jučer u] LT', - lastWeek: function () { - switch (this.day()) { - case 0: - case 3: - return '[prošlu] dddd [u] LT'; - case 6: - return '[prošle] [subote] [u] LT'; - case 1: - case 2: - case 4: - case 5: - return '[prošli] dddd [u] LT'; - } - }, - sameElse: 'L', - }, - relativeTime: { - future: 'za %s', - past: 'prije %s', - s: 'par sekundi', - ss: translate, - m: translate, - mm: translate, - h: translate, - hh: translate, - d: 'dan', - dd: translate, - M: 'mjesec', - MM: translate, - y: 'godinu', - yy: translate, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, + this.onDestroy = function (key) { + /* istanbul ignore next */ + _this3.props.onDestroy(key); + }; + + this.getFlatInstanceArray = function () { + return _this3.instanceArray; + }; + + this.getOpenTransitionName = function () { + return _this3.props.openTransitionName; + }; + + this.step = function (direction) { + var children = _this3.getFlatInstanceArray(); + var activeKey = _this3.props.store.getState().activeKey[getEventKey(_this3.props)]; + var len = children.length; + if (!len) { + return null; + } + if (direction < 0) { + children = children.concat().reverse(); + } + // find current activeIndex + var activeIndex = -1; + children.every(function (c, ci) { + if (c && c.props.eventKey === activeKey) { + activeIndex = ci; + return false; + } + return true; }); + if (!_this3.props.defaultActiveFirst && activeIndex !== -1 && allDisabled(children.slice(activeIndex, len - 1))) { + return undefined; + } + var start = (activeIndex + 1) % len; + var i = start; - return bs; + do { + var child = children[i]; + if (!child || child.props.disabled) { + i = (i + 1) % len; + } else { + return child; + } + } while (i !== start); - }))); - - -/***/ }), -/* 422 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Catalan [ca] - //! author : Juan G. Hurtado : https://github.com/juanghurtado + return null; + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + this.renderCommonMenuItem = function (child, i, extraProps) { + var state = _this3.props.store.getState(); + var props = _this3.props; + var key = (0, _util.getKeyFromChildrenIndex)(child, props.eventKey, i); + var childProps = child.props; + var isActive = key === state.activeKey; + var newChildProps = _extends({ + mode: childProps.mode || props.mode, + level: props.level, + inlineIndent: props.inlineIndent, + renderMenuItem: _this3.renderMenuItem, + rootPrefixCls: props.prefixCls, + index: i, + parentMenu: props.parentMenu, + // customized ref function, need to be invoked manually in child's componentDidMount + manualRef: childProps.disabled ? undefined : (0, _createChainedFunction2["default"])(child.ref, saveRef.bind(_this3)), + eventKey: key, + active: !childProps.disabled && isActive, + multiple: props.multiple, + onClick: function onClick(e) { + (childProps.onClick || _util.noop)(e); + _this3.onClick(e); + }, + onItemHover: _this3.onItemHover, + openTransitionName: _this3.getOpenTransitionName(), + openAnimation: props.openAnimation, + subMenuOpenDelay: props.subMenuOpenDelay, + subMenuCloseDelay: props.subMenuCloseDelay, + forceSubMenuRender: props.forceSubMenuRender, + onOpenChange: _this3.onOpenChange, + onDeselect: _this3.onDeselect, + onSelect: _this3.onSelect, + builtinPlacements: props.builtinPlacements, + itemIcon: childProps.itemIcon || _this3.props.itemIcon, + expandIcon: childProps.expandIcon || _this3.props.expandIcon + }, extraProps); + if (props.mode === 'inline') { + newChildProps.triggerSubMenuAction = 'click'; + } + return _react2["default"].cloneElement(child, newChildProps); + }; - //! moment.js locale configuration + this.renderMenuItem = function (c, i, subMenuKey) { + /* istanbul ignore if */ - var ca = moment.defineLocale('ca', { - months: { - standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split( - '_' - ), - format: "de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split( - '_' - ), - isFormat: /D[oD]?(\s)+MMMM/, - }, - monthsShort: 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split( - '_' - ), - weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'), - weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM [de] YYYY', - ll: 'D MMM YYYY', - LLL: 'D MMMM [de] YYYY [a les] H:mm', - lll: 'D MMM YYYY, H:mm', - LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm', - llll: 'ddd D MMM YYYY, H:mm', - }, - calendar: { - sameDay: function () { - return '[avui a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT'; - }, - nextDay: function () { - return '[demà a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT'; - }, - nextWeek: function () { - return 'dddd [a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT'; - }, - lastDay: function () { - return '[ahir a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT'; - }, - lastWeek: function () { - return ( - '[el] dddd [passat a ' + - (this.hours() !== 1 ? 'les' : 'la') + - '] LT' - ); - }, - sameElse: 'L', - }, - relativeTime: { - future: "d'aquí %s", - past: 'fa %s', - s: 'uns segons', - ss: '%d segons', - m: 'un minut', - mm: '%d minuts', - h: 'una hora', - hh: '%d hores', - d: 'un dia', - dd: '%d dies', - M: 'un mes', - MM: '%d mesos', - y: 'un any', - yy: '%d anys', - }, - dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/, - ordinal: function (number, period) { - var output = - number === 1 - ? 'r' - : number === 2 - ? 'n' - : number === 3 - ? 'r' - : number === 4 - ? 't' - : 'è'; - if (period === 'w' || period === 'W') { - output = 'a'; - } - return number + output; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + if (!c) { + return null; + } + var state = _this3.props.store.getState(); + var extraProps = { + openKeys: state.openKeys, + selectedKeys: state.selectedKeys, + triggerSubMenuAction: _this3.props.triggerSubMenuAction, + subMenuKey: subMenuKey + }; + return _this3.renderCommonMenuItem(c, i, extraProps); + }; + }; - return ca; + var connected = (0, _miniStore.connect)()(SubPopupMenu); - }))); - + exports["default"] = connected; /***/ }), -/* 423 */ -/***/ (function(module, exports, __webpack_require__) { +/* 332 */ +/***/ (function(module, exports) { - //! moment.js locale configuration - //! locale : Czech [cs] - //! author : petrbela : https://github.com/petrbela + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = createChainedFunction; - //! moment.js locale configuration + /** + * Safe chained function + * + * Will only create a new function if needed, + * otherwise will pass back existing functions or null. + * + * @returns {function|null} + */ + function createChainedFunction() { + var args = [].slice.call(arguments, 0); - var months = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split( - '_' - ), - monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'), - monthsParse = [ - /^led/i, - /^úno/i, - /^bře/i, - /^dub/i, - /^kvě/i, - /^(čvn|červen$|června)/i, - /^(čvc|červenec|července)/i, - /^srp/i, - /^zář/i, - /^říj/i, - /^lis/i, - /^pro/i, - ], - // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched. - // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'. - monthsRegex = /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i; + if (args.length === 1) { + return args[0]; + } - function plural(n) { - return n > 1 && n < 5 && ~~(n / 10) !== 1; - } - function translate(number, withoutSuffix, key, isFuture) { - var result = number + ' '; - switch (key) { - case 's': // a few seconds / in a few seconds / a few seconds ago - return withoutSuffix || isFuture ? 'pár sekund' : 'pár sekundami'; - case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'sekundy' : 'sekund'); - } else { - return result + 'sekundami'; - } - case 'm': // a minute / in a minute / a minute ago - return withoutSuffix ? 'minuta' : isFuture ? 'minutu' : 'minutou'; - case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'minuty' : 'minut'); - } else { - return result + 'minutami'; - } - case 'h': // an hour / in an hour / an hour ago - return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou'; - case 'hh': // 9 hours / in 9 hours / 9 hours ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'hodiny' : 'hodin'); - } else { - return result + 'hodinami'; - } - case 'd': // a day / in a day / a day ago - return withoutSuffix || isFuture ? 'den' : 'dnem'; - case 'dd': // 9 days / in 9 days / 9 days ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'dny' : 'dní'); - } else { - return result + 'dny'; - } - case 'M': // a month / in a month / a month ago - return withoutSuffix || isFuture ? 'měsíc' : 'měsícem'; - case 'MM': // 9 months / in 9 months / 9 months ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'měsíce' : 'měsíců'); - } else { - return result + 'měsíci'; - } - case 'y': // a year / in a year / a year ago - return withoutSuffix || isFuture ? 'rok' : 'rokem'; - case 'yy': // 9 years / in 9 years / 9 years ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'roky' : 'let'); - } else { - return result + 'lety'; - } - } + return function chainedFunction() { + for (var i = 0; i < args.length; i++) { + if (args[i] && args[i].apply) { + args[i].apply(this, arguments); + } } - - var cs = moment.defineLocale('cs', { - months: months, - monthsShort: monthsShort, - monthsRegex: monthsRegex, - monthsShortRegex: monthsRegex, - // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched. - // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'. - monthsStrictRegex: /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i, - monthsShortStrictRegex: /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i, - monthsParse: monthsParse, - longMonthsParse: monthsParse, - shortMonthsParse: monthsParse, - weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'), - weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'), - weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'), - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd D. MMMM YYYY H:mm', - l: 'D. M. YYYY', - }, - calendar: { - sameDay: '[dnes v] LT', - nextDay: '[zítra v] LT', - nextWeek: function () { - switch (this.day()) { - case 0: - return '[v neděli v] LT'; - case 1: - case 2: - return '[v] dddd [v] LT'; - case 3: - return '[ve středu v] LT'; - case 4: - return '[ve čtvrtek v] LT'; - case 5: - return '[v pátek v] LT'; - case 6: - return '[v sobotu v] LT'; - } - }, - lastDay: '[včera v] LT', - lastWeek: function () { - switch (this.day()) { - case 0: - return '[minulou neděli v] LT'; - case 1: - case 2: - return '[minulé] dddd [v] LT'; - case 3: - return '[minulou středu v] LT'; - case 4: - case 5: - return '[minulý] dddd [v] LT'; - case 6: - return '[minulou sobotu v] LT'; - } - }, - sameElse: 'L', - }, - relativeTime: { - future: 'za %s', - past: 'před %s', - s: translate, - ss: translate, - m: translate, - mm: translate, - h: translate, - hh: translate, - d: translate, - dd: translate, - M: translate, - MM: translate, - y: translate, - yy: translate, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return cs; - - }))); - + }; + } /***/ }), -/* 424 */ +/* 333 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Chuvash [cv] - //! author : Anatoly Mironov : https://github.com/mirontoli + 'use strict'; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.setStyle = exports.getWidth = exports.menuAllProps = undefined; - //! moment.js locale configuration + var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; /** + * This source code is quoted from rc-menu. + * homepage: https://github.com/react-component/menu + */ - var cv = moment.defineLocale('cv', { - months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split( - '_' - ), - monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'), - weekdays: 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split( - '_' - ), - weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'), - weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD-MM-YYYY', - LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]', - LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm', - LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm', - }, - calendar: { - sameDay: '[Паян] LT [сехетре]', - nextDay: '[Ыран] LT [сехетре]', - lastDay: '[Ӗнер] LT [сехетре]', - nextWeek: '[Ҫитес] dddd LT [сехетре]', - lastWeek: '[Иртнӗ] dddd LT [сехетре]', - sameElse: 'L', - }, - relativeTime: { - future: function (output) { - var affix = /сехет$/i.exec(output) - ? 'рен' - : /ҫул$/i.exec(output) - ? 'тан' - : 'ран'; - return output + affix; - }, - past: '%s каялла', - s: 'пӗр-ик ҫеккунт', - ss: '%d ҫеккунт', - m: 'пӗр минут', - mm: '%d минут', - h: 'пӗр сехет', - hh: '%d сехет', - d: 'пӗр кун', - dd: '%d кун', - M: 'пӗр уйӑх', - MM: '%d уйӑх', - y: 'пӗр ҫул', - yy: '%d ҫул', - }, - dayOfMonthOrdinalParse: /\d{1,2}-мӗш/, - ordinal: '%d-мӗш', - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); - return cv; + exports.noop = noop; + exports.getKeyFromChildrenIndex = getKeyFromChildrenIndex; + exports.getMenuIdFromSubMenuEventKey = getMenuIdFromSubMenuEventKey; + exports.loopMenuItem = loopMenuItem; + exports.loopMenuItemRecursively = loopMenuItemRecursively; + exports.fireKeyEvent = fireKeyEvent; - }))); - - -/***/ }), -/* 425 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Welsh [cy] - //! author : Robert Allen : https://github.com/robgallen - //! author : https://github.com/ryangreaves + var _react = __webpack_require__(1); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _react2 = _interopRequireDefault(_react); - //! moment.js locale configuration + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - var cy = moment.defineLocale('cy', { - months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split( - '_' - ), - monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split( - '_' - ), - weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split( - '_' - ), - weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'), - weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'), - weekdaysParseExact: true, - // time formats are the same as en-gb - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Heddiw am] LT', - nextDay: '[Yfory am] LT', - nextWeek: 'dddd [am] LT', - lastDay: '[Ddoe am] LT', - lastWeek: 'dddd [diwethaf am] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'mewn %s', - past: '%s yn ôl', - s: 'ychydig eiliadau', - ss: '%d eiliad', - m: 'munud', - mm: '%d munud', - h: 'awr', - hh: '%d awr', - d: 'diwrnod', - dd: '%d diwrnod', - M: 'mis', - MM: '%d mis', - y: 'blwyddyn', - yy: '%d flynedd', - }, - dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/, - // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh - ordinal: function (number) { - var b = number, - output = '', - lookup = [ - '', - 'af', - 'il', - 'ydd', - 'ydd', - 'ed', - 'ed', - 'ed', - 'fed', - 'fed', - 'fed', // 1af to 10fed - 'eg', - 'fed', - 'eg', - 'eg', - 'fed', - 'eg', - 'eg', - 'fed', - 'eg', - 'fed', // 11eg to 20fed - ]; - if (b > 20) { - if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) { - output = 'fed'; // not 30ain, 70ain or 90ain - } else { - output = 'ain'; - } - } else if (b > 0) { - output = lookup[b]; - } - return number + output; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + function noop() {} - return cy; + function getKeyFromChildrenIndex(child, menuEventKey, index) { + var prefix = menuEventKey || ''; + return child.key || prefix + 'item_' + index; + } - }))); - - -/***/ }), -/* 426 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Danish [da] - //! author : Ulrik Nielsen : https://github.com/mrbase + function getMenuIdFromSubMenuEventKey(eventKey) { + return eventKey + '-menu-'; + } - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + function loopMenuItem(children, cb) { + var index = -1; + _react2["default"].Children.forEach(children, function (c) { + index++; + if (c && c.type && c.type.isMenuItemGroup) { + _react2["default"].Children.forEach(c.props.children, function (c2) { + index++; + cb(c2, index); + }); + } else { + cb(c, index); + } + }); + } - //! moment.js locale configuration + function loopMenuItemRecursively(children, keys, ret) { + /* istanbul ignore if */ + if (!children || ret.find) { + return; + } + _react2["default"].Children.forEach(children, function (c) { + if (c) { + var construct = c.type; + if (!construct || !(construct.isSubMenu || construct.isMenuItem || construct.isMenuItemGroup)) { + return; + } + if (keys.indexOf(c.key) !== -1) { + ret.find = true; + } else if (c.props.children) { + loopMenuItemRecursively(c.props.children, keys, ret); + } + } + }); + } - var da = moment.defineLocale('da', { - months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split( - '_' - ), - monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'), - weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'), - weekdaysShort: 'søn_man_tir_ons_tor_fre_lør'.split('_'), - weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY HH:mm', - LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm', - }, - calendar: { - sameDay: '[i dag kl.] LT', - nextDay: '[i morgen kl.] LT', - nextWeek: 'på dddd [kl.] LT', - lastDay: '[i går kl.] LT', - lastWeek: '[i] dddd[s kl.] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'om %s', - past: '%s siden', - s: 'få sekunder', - ss: '%d sekunder', - m: 'et minut', - mm: '%d minutter', - h: 'en time', - hh: '%d timer', - d: 'en dag', - dd: '%d dage', - M: 'en måned', - MM: '%d måneder', - y: 'et år', - yy: '%d år', - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var menuAllProps = exports.menuAllProps = ['defaultSelectedKeys', 'selectedKeys', 'defaultOpenKeys', 'openKeys', 'mode', 'getPopupContainer', 'onSelect', 'onDeselect', 'onDestroy', 'openTransitionName', 'openAnimation', 'subMenuOpenDelay', 'subMenuCloseDelay', 'forceSubMenuRender', 'triggerSubMenuAction', 'level', 'selectable', 'multiple', 'onOpenChange', 'visible', 'focusable', 'defaultActiveFirst', 'prefixCls', 'inlineIndent', 'parentMenu', 'title', 'rootPrefixCls', 'eventKey', 'active', 'onItemHover', 'onTitleMouseEnter', 'onTitleMouseLeave', 'onTitleClick', 'popupAlign', 'popupOffset', 'isOpen', 'renderMenuItem', 'manualRef', 'subMenuKey', 'disabled', 'index', 'isSelected', 'store', 'activeKey', 'builtinPlacements', 'overflowedIndicator', + + // the following keys found need to be removed from test regression + 'attribute', 'value', 'popupClassName', 'inlineCollapsed', 'menu', 'theme', 'itemIcon', 'expandIcon']; + + var getWidth = exports.getWidth = function getWidth(elem) { + return elem && typeof elem.getBoundingClientRect === 'function' && elem.getBoundingClientRect().width || 0; + }; + + var setStyle = exports.setStyle = function setStyle(elem, styleProperty, value) { + if (elem && _typeof(elem.style) === 'object') { + elem.style[styleProperty] = value; + } + }; - return da; + function fireKeyEvent(el, evtType, keyCode) { + var evtObj; + if (document.createEvent) { + if (window.KeyEvent) { + //firefox 浏览器下模拟事件 + evtObj = document.createEvent('KeyEvents'); + evtObj.initKeyEvent(evtType, true, true, window, true, false, false, false, keyCode, 0); + } else { + //chrome 浏览器下模拟事件 + evtObj = document.createEvent('UIEvents'); + evtObj.initUIEvent(evtType, true, true, window, 1); - }))); - + delete evtObj.keyCode; + if (typeof evtObj.keyCode === "undefined") { + //为了模拟keycode + Object.defineProperty(evtObj, "keyCode", { value: keyCode }); + } else { + evtObj.key = String.fromCharCode(keyCode); + } + + if (typeof evtObj.ctrlKey === 'undefined') { + //为了模拟ctrl键 + Object.defineProperty(evtObj, "ctrlKey", { value: true }); + } else { + evtObj.ctrlKey = true; + } + } + el.dispatchEvent(evtObj); + } else if (document.createEventObject) { + //IE 浏览器下模拟事件 + evtObj = document.createEventObject(); + evtObj.keyCode = keyCode; + el.fireEvent('on' + evtType, evtObj); + } + } /***/ }), -/* 427 */ +/* 334 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : German [de] - //! author : lluchs : https://github.com/lluchs - //! author: Menelion Elensúle: https://github.com/Oire - //! author : Mikolaj Dadela : https://github.com/mik01aj + 'use strict'; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + Object.defineProperty(exports, "__esModule", { + value: true + }); - //! moment.js locale configuration + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - m: ['eine Minute', 'einer Minute'], - h: ['eine Stunde', 'einer Stunde'], - d: ['ein Tag', 'einem Tag'], - dd: [number + ' Tage', number + ' Tagen'], - w: ['eine Woche', 'einer Woche'], - M: ['ein Monat', 'einem Monat'], - MM: [number + ' Monate', number + ' Monaten'], - y: ['ein Jahr', 'einem Jahr'], - yy: [number + ' Jahre', number + ' Jahren'], - }; - return withoutSuffix ? format[key][0] : format[key][1]; - } + var _react = __webpack_require__(1); - var de = moment.defineLocale('de', { - months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split( - '_' - ), - monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split( - '_' - ), - weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'), - weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY HH:mm', - LLLL: 'dddd, D. MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[heute um] LT [Uhr]', - sameElse: 'L', - nextDay: '[morgen um] LT [Uhr]', - nextWeek: 'dddd [um] LT [Uhr]', - lastDay: '[gestern um] LT [Uhr]', - lastWeek: '[letzten] dddd [um] LT [Uhr]', - }, - relativeTime: { - future: 'in %s', - past: 'vor %s', - s: 'ein paar Sekunden', - ss: '%d Sekunden', - m: processRelativeTime, - mm: '%d Minuten', - h: processRelativeTime, - hh: '%d Stunden', - d: processRelativeTime, - dd: processRelativeTime, - w: processRelativeTime, - ww: '%d Wochen', - M: processRelativeTime, - MM: processRelativeTime, - y: processRelativeTime, - yy: processRelativeTime, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var _react2 = _interopRequireDefault(_react); - return de; + var _reactDom = __webpack_require__(2); - }))); - - -/***/ }), -/* 428 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : German (Austria) [de-at] - //! author : lluchs : https://github.com/lluchs - //! author: Menelion Elensúle: https://github.com/Oire - //! author : Martin Groller : https://github.com/MadMG - //! author : Mikolaj Dadela : https://github.com/mik01aj + var _reactDom2 = _interopRequireDefault(_reactDom); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _propTypes = __webpack_require__(6); - //! moment.js locale configuration + var _propTypes2 = _interopRequireDefault(_propTypes); - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - m: ['eine Minute', 'einer Minute'], - h: ['eine Stunde', 'einer Stunde'], - d: ['ein Tag', 'einem Tag'], - dd: [number + ' Tage', number + ' Tagen'], - w: ['eine Woche', 'einer Woche'], - M: ['ein Monat', 'einem Monat'], - MM: [number + ' Monate', number + ' Monaten'], - y: ['ein Jahr', 'einem Jahr'], - yy: [number + ' Jahre', number + ' Jahren'], - }; - return withoutSuffix ? format[key][0] : format[key][1]; - } + var _resizeObserverPolyfill = __webpack_require__(287); - var deAt = moment.defineLocale('de-at', { - months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split( - '_' - ), - monthsShort: 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split( - '_' - ), - weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'), - weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY HH:mm', - LLLL: 'dddd, D. MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[heute um] LT [Uhr]', - sameElse: 'L', - nextDay: '[morgen um] LT [Uhr]', - nextWeek: 'dddd [um] LT [Uhr]', - lastDay: '[gestern um] LT [Uhr]', - lastWeek: '[letzten] dddd [um] LT [Uhr]', - }, - relativeTime: { - future: 'in %s', - past: 'vor %s', - s: 'ein paar Sekunden', - ss: '%d Sekunden', - m: processRelativeTime, - mm: '%d Minuten', - h: processRelativeTime, - hh: '%d Stunden', - d: processRelativeTime, - dd: processRelativeTime, - w: processRelativeTime, - ww: '%d Wochen', - M: processRelativeTime, - MM: processRelativeTime, - y: processRelativeTime, - yy: processRelativeTime, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var _resizeObserverPolyfill2 = _interopRequireDefault(_resizeObserverPolyfill); - return deAt; + var _SubMenu = __webpack_require__(335); - }))); - - -/***/ }), -/* 429 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : German (Switzerland) [de-ch] - //! author : sschueller : https://github.com/sschueller + var _SubMenu2 = _interopRequireDefault(_SubMenu); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _util = __webpack_require__(333); - //! moment.js locale configuration + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - m: ['eine Minute', 'einer Minute'], - h: ['eine Stunde', 'einer Stunde'], - d: ['ein Tag', 'einem Tag'], - dd: [number + ' Tage', number + ' Tagen'], - w: ['eine Woche', 'einer Woche'], - M: ['ein Monat', 'einem Monat'], - MM: [number + ' Monate', number + ' Monaten'], - y: ['ein Jahr', 'einem Jahr'], - yy: [number + ' Jahre', number + ' Jahren'], - }; - return withoutSuffix ? format[key][0] : format[key][1]; - } + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - var deCh = moment.defineLocale('de-ch', { - months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split( - '_' - ), - monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split( - '_' - ), - weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), - weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY HH:mm', - LLLL: 'dddd, D. MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[heute um] LT [Uhr]', - sameElse: 'L', - nextDay: '[morgen um] LT [Uhr]', - nextWeek: 'dddd [um] LT [Uhr]', - lastDay: '[gestern um] LT [Uhr]', - lastWeek: '[letzten] dddd [um] LT [Uhr]', - }, - relativeTime: { - future: 'in %s', - past: 'vor %s', - s: 'ein paar Sekunden', - ss: '%d Sekunden', - m: processRelativeTime, - mm: '%d Minuten', - h: processRelativeTime, - hh: '%d Stunden', - d: processRelativeTime, - dd: processRelativeTime, - w: processRelativeTime, - ww: '%d Wochen', - M: processRelativeTime, - MM: processRelativeTime, - y: processRelativeTime, - yy: processRelativeTime, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } - return deCh; + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - }))); - - -/***/ }), -/* 430 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Maldivian [dv] - //! author : Jawish Hameed : https://github.com/jawish + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - //! moment.js locale configuration + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** + * This source code is quoted from rc-menu. + * homepage: https://github.com/react-component/menu + */ - var months = [ - 'ޖެނުއަރީ', - 'ފެބްރުއަރީ', - 'މާރިޗު', - 'އޭޕްރީލު', - 'މޭ', - 'ޖޫން', - 'ޖުލައި', - 'އޯގަސްޓު', - 'ސެޕްޓެމްބަރު', - 'އޮކްޓޯބަރު', - 'ނޮވެމްބަރު', - 'ޑިސެމްބަރު', - ], - weekdays = [ - 'އާދިއްތަ', - 'ހޯމަ', - 'އަންގާރަ', - 'ބުދަ', - 'ބުރާސްފަތި', - 'ހުކުރު', - 'ހޮނިހިރު', - ]; - var dv = moment.defineLocale('dv', { - months: months, - monthsShort: months, - weekdays: weekdays, - weekdaysShort: weekdays, - weekdaysMin: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'D/M/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - meridiemParse: /މކ|މފ/, - isPM: function (input) { - return 'މފ' === input; - }, - meridiem: function (hour, minute, isLower) { - if (hour < 12) { - return 'މކ'; - } else { - return 'މފ'; - } - }, - calendar: { - sameDay: '[މިއަދު] LT', - nextDay: '[މާދަމާ] LT', - nextWeek: 'dddd LT', - lastDay: '[އިއްޔެ] LT', - lastWeek: '[ފާއިތުވި] dddd LT', - sameElse: 'L', - }, - relativeTime: { - future: 'ތެރޭގައި %s', - past: 'ކުރިން %s', - s: 'ސިކުންތުކޮޅެއް', - ss: 'd% ސިކުންތު', - m: 'މިނިޓެއް', - mm: 'މިނިޓު %d', - h: 'ގަޑިއިރެއް', - hh: 'ގަޑިއިރު %d', - d: 'ދުވަހެއް', - dd: 'ދުވަސް %d', - M: 'މަހެއް', - MM: 'މަސް %d', - y: 'އަހަރެއް', - yy: 'އަހަރު %d', - }, - preparse: function (string) { - return string.replace(/،/g, ','); - }, - postformat: function (string) { - return string.replace(/,/g, '،'); - }, - week: { - dow: 7, // Sunday is the first day of the week. - doy: 12, // The week that contains Jan 12th is the first week of the year. - }, - }); + var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement); - return dv; + var MENUITEM_OVERFLOWED_CLASSNAME = 'menuitem-overflowed'; - }))); - - -/***/ }), -/* 431 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Greek [el] - //! author : Aggelos Karalias : https://github.com/mehiel + // Fix ssr + if (canUseDOM) { + __webpack_require__(400); + } - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var DOMWrap = function (_React$Component) { + _inherits(DOMWrap, _React$Component); - //! moment.js locale configuration + function DOMWrap() { + var _temp, _this, _ret; - function isFunction(input) { - return ( - (typeof Function !== 'undefined' && input instanceof Function) || - Object.prototype.toString.call(input) === '[object Function]' - ); + _classCallCheck(this, DOMWrap); + + for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; } - var el = moment.defineLocale('el', { - monthsNominativeEl: 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split( - '_' - ), - monthsGenitiveEl: 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split( - '_' - ), - months: function (momentToFormat, format) { - if (!momentToFormat) { - return this._monthsNominativeEl; - } else if ( - typeof format === 'string' && - /D/.test(format.substring(0, format.indexOf('MMMM'))) - ) { - // if there is a day number before 'MMMM' - return this._monthsGenitiveEl[momentToFormat.month()]; - } else { - return this._monthsNominativeEl[momentToFormat.month()]; - } - }, - monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'), - weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split( - '_' - ), - weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'), - weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'), - meridiem: function (hours, minutes, isLower) { - if (hours > 11) { - return isLower ? 'μμ' : 'ΜΜ'; - } else { - return isLower ? 'πμ' : 'ΠΜ'; - } - }, - isPM: function (input) { - return (input + '').toLowerCase()[0] === 'μ'; - }, - meridiemParse: /[ΠΜ]\.?Μ?\.?/i, - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY h:mm A', - LLLL: 'dddd, D MMMM YYYY h:mm A', - }, - calendarEl: { - sameDay: '[Σήμερα {}] LT', - nextDay: '[Αύριο {}] LT', - nextWeek: 'dddd [{}] LT', - lastDay: '[Χθες {}] LT', - lastWeek: function () { - switch (this.day()) { - case 6: - return '[το προηγούμενο] dddd [{}] LT'; - default: - return '[την προηγούμενη] dddd [{}] LT'; - } - }, - sameElse: 'L', - }, - calendar: function (key, mom) { - var output = this._calendarEl[key], - hours = mom && mom.hours(); - if (isFunction(output)) { - output = output.apply(mom); - } - return output.replace('{}', hours % 12 === 1 ? 'στη' : 'στις'); - }, - relativeTime: { - future: 'σε %s', - past: '%s πριν', - s: 'λίγα δευτερόλεπτα', - ss: '%d δευτερόλεπτα', - m: 'ένα λεπτό', - mm: '%d λεπτά', - h: 'μία ώρα', - hh: '%d ώρες', - d: 'μία μέρα', - dd: '%d μέρες', - M: 'ένας μήνας', - MM: '%d μήνες', - y: 'ένας χρόνος', - yy: '%d χρόνια', - }, - dayOfMonthOrdinalParse: /\d{1,2}η/, - ordinal: '%dη', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4st is the first week of the year. - }, - }); + return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.state = { + lastVisibleIndex: undefined + }, _this.getMenuItemNodes = function () { + var prefixCls = _this.props.prefixCls; - return el; + var ul = _reactDom2["default"].findDOMNode(_this); + if (!ul) { + return []; + } - }))); - - -/***/ }), -/* 432 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : English (Australia) [en-au] - //! author : Jared Morse : https://github.com/jarcoal + // filter out all overflowed indicator placeholder + return [].slice.call(ul.children).filter(function (node) { + return node.className.split(' ').indexOf(prefixCls + '-overflowed-submenu') < 0; + }); + }, _this.getOverflowedSubMenuItem = function (keyPrefix, overflowedItems, renderPlaceholder) { + var _this$props = _this.props, + overflowedIndicator = _this$props.overflowedIndicator, + level = _this$props.level, + mode = _this$props.mode, + prefixCls = _this$props.prefixCls, + theme = _this$props.theme, + propStyle = _this$props.style; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + if (level !== 1 || mode !== 'horizontal') { + return null; + } + // put all the overflowed item inside a submenu + // with a title of overflow indicator ('...') + var copy = _this.props.children[0]; - //! moment.js locale configuration + var _copy$props = copy.props, + throwAway = _copy$props.children, + title = _copy$props.title, + eventKey = _copy$props.eventKey, + rest = _objectWithoutProperties(_copy$props, ['children', 'title', 'eventKey']); - var enAu = moment.defineLocale('en-au', { - months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), - weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( - '_' - ), - weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY h:mm A', - LLLL: 'dddd, D MMMM YYYY h:mm A', - }, - calendar: { - sameDay: '[Today at] LT', - nextDay: '[Tomorrow at] LT', - nextWeek: 'dddd [at] LT', - lastDay: '[Yesterday at] LT', - lastWeek: '[Last] dddd [at] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'in %s', - past: '%s ago', - s: 'a few seconds', - ss: '%d seconds', - m: 'a minute', - mm: '%d minutes', - h: 'an hour', - hh: '%d hours', - d: 'a day', - dd: '%d days', - M: 'a month', - MM: '%d months', - y: 'a year', - yy: '%d years', - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal: function (number) { - var b = number % 10, - output = - ~~((number % 100) / 10) === 1 - ? 'th' - : b === 1 - ? 'st' - : b === 2 - ? 'nd' - : b === 3 - ? 'rd' - : 'th'; - return number + output; - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var style = _extends({}, propStyle); + var key = keyPrefix + '-overflowed-indicator'; - return enAu; + if (overflowedItems.length === 0 && renderPlaceholder !== true) { + style = _extends({}, style, { + display: 'none' + }); + } else if (renderPlaceholder) { + style = _extends({}, style, { + visibility: 'hidden', + // prevent from taking normal dom space + position: 'absolute' + }); + key = key + '-placeholder'; + } - }))); - - -/***/ }), -/* 433 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : English (Canada) [en-ca] - //! author : Jonathan Abourbih : https://github.com/jonbca + var popupClassName = theme ? prefixCls + '-' + theme : ''; + var props = {}; + _util.menuAllProps.forEach(function (k) { + if (rest[k] !== undefined) { + props[k] = rest[k]; + } + }); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + return _react2["default"].createElement( + _SubMenu2["default"], + _extends({ + title: overflowedIndicator, + className: prefixCls + '-overflowed-submenu', + popupClassName: popupClassName + }, props, { + key: key, + eventKey: keyPrefix + '-overflowed-indicator', + disabled: false, + style: style + }), + overflowedItems + ); + }, _this.setChildrenWidthAndResize = function () { + if (_this.props.mode !== 'horizontal') { + return; + } + var ul = _reactDom2["default"].findDOMNode(_this); - //! moment.js locale configuration + if (!ul) { + return; + } - var enCa = moment.defineLocale('en-ca', { - months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), - weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( - '_' - ), - weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'YYYY-MM-DD', - LL: 'MMMM D, YYYY', - LLL: 'MMMM D, YYYY h:mm A', - LLLL: 'dddd, MMMM D, YYYY h:mm A', - }, - calendar: { - sameDay: '[Today at] LT', - nextDay: '[Tomorrow at] LT', - nextWeek: 'dddd [at] LT', - lastDay: '[Yesterday at] LT', - lastWeek: '[Last] dddd [at] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'in %s', - past: '%s ago', - s: 'a few seconds', - ss: '%d seconds', - m: 'a minute', - mm: '%d minutes', - h: 'an hour', - hh: '%d hours', - d: 'a day', - dd: '%d days', - M: 'a month', - MM: '%d months', - y: 'a year', - yy: '%d years', - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal: function (number) { - var b = number % 10, - output = - ~~((number % 100) / 10) === 1 - ? 'th' - : b === 1 - ? 'st' - : b === 2 - ? 'nd' - : b === 3 - ? 'rd' - : 'th'; - return number + output; - }, - }); + var ulChildrenNodes = ul.children; - return enCa; + if (!ulChildrenNodes || ulChildrenNodes.length === 0) { + return; + } - }))); - - -/***/ }), -/* 434 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : English (United Kingdom) [en-gb] - //! author : Chris Gedrim : https://github.com/chrisgedrim + var lastOverflowedIndicatorPlaceholder = ul.children[ulChildrenNodes.length - 1]; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + // need last overflowed indicator for calculating length; + (0, _util.setStyle)(lastOverflowedIndicatorPlaceholder, 'display', 'inline-block'); - //! moment.js locale configuration + var menuItemNodes = _this.getMenuItemNodes(); - var enGb = moment.defineLocale('en-gb', { - months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), - weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( - '_' - ), - weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Today at] LT', - nextDay: '[Tomorrow at] LT', - nextWeek: 'dddd [at] LT', - lastDay: '[Yesterday at] LT', - lastWeek: '[Last] dddd [at] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'in %s', - past: '%s ago', - s: 'a few seconds', - ss: '%d seconds', - m: 'a minute', - mm: '%d minutes', - h: 'an hour', - hh: '%d hours', - d: 'a day', - dd: '%d days', - M: 'a month', - MM: '%d months', - y: 'a year', - yy: '%d years', - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal: function (number) { - var b = number % 10, - output = - ~~((number % 100) / 10) === 1 - ? 'th' - : b === 1 - ? 'st' - : b === 2 - ? 'nd' - : b === 3 - ? 'rd' - : 'th'; - return number + output; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + // reset display attribute for all hidden elements caused by overflow to calculate updated width + // and then reset to original state after width calculation - return enGb; + var overflowedItems = menuItemNodes.filter(function (c) { + return c.className.split(' ').indexOf(MENUITEM_OVERFLOWED_CLASSNAME) >= 0; + }); - }))); - - -/***/ }), -/* 435 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : English (Ireland) [en-ie] - //! author : Chris Cartlidge : https://github.com/chriscartlidge + overflowedItems.forEach(function (c) { + (0, _util.setStyle)(c, 'display', 'inline-block'); + }); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + _this.menuItemSizes = menuItemNodes.map(function (c) { + return (0, _util.getWidth)(c); + }); - //! moment.js locale configuration + overflowedItems.forEach(function (c) { + (0, _util.setStyle)(c, 'display', 'none'); + }); + _this.overflowedIndicatorWidth = (0, _util.getWidth)(ul.children[ul.children.length - 1]); + _this.originalTotalWidth = _this.menuItemSizes.reduce(function (acc, cur) { + return acc + cur; + }, 0); + _this.handleResize(); + // prevent the overflowed indicator from taking space; + (0, _util.setStyle)(lastOverflowedIndicatorPlaceholder, 'display', 'none'); + }, _this.resizeObserver = null, _this.mutationObserver = null, _this.originalTotalWidth = 0, _this.overflowedItems = [], _this.menuItemSizes = [], _this.handleResize = function () { + if (_this.props.mode !== 'horizontal') { + return; + } - var enIe = moment.defineLocale('en-ie', { - months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), - weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( - '_' - ), - weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Today at] LT', - nextDay: '[Tomorrow at] LT', - nextWeek: 'dddd [at] LT', - lastDay: '[Yesterday at] LT', - lastWeek: '[Last] dddd [at] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'in %s', - past: '%s ago', - s: 'a few seconds', - ss: '%d seconds', - m: 'a minute', - mm: '%d minutes', - h: 'an hour', - hh: '%d hours', - d: 'a day', - dd: '%d days', - M: 'a month', - MM: '%d months', - y: 'a year', - yy: '%d years', - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal: function (number) { - var b = number % 10, - output = - ~~((number % 100) / 10) === 1 - ? 'th' - : b === 1 - ? 'st' - : b === 2 - ? 'nd' - : b === 3 - ? 'rd' - : 'th'; - return number + output; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var ul = _reactDom2["default"].findDOMNode(_this); + if (!ul) { + return; + } + var width = (0, _util.getWidth)(ul); + + _this.overflowedItems = []; + var currentSumWidth = 0; + + // index for last visible child in horizontal mode + var lastVisibleIndex = undefined; + + if (_this.originalTotalWidth > width) { + lastVisibleIndex = -1; + + _this.menuItemSizes.forEach(function (liWidth) { + currentSumWidth += liWidth; + if (currentSumWidth + _this.overflowedIndicatorWidth <= width) { + lastVisibleIndex++; + } + }); + } + + _this.setState({ lastVisibleIndex: lastVisibleIndex }); + }, _temp), _possibleConstructorReturn(_this, _ret); + } + + DOMWrap.prototype.componentDidMount = function componentDidMount() { + var _this2 = this; + + this.setChildrenWidthAndResize(); + if (this.props.level === 1 && this.props.mode === 'horizontal') { + var menuUl = _reactDom2["default"].findDOMNode(this); + if (!menuUl) { + return; + } + this.resizeObserver = new _resizeObserverPolyfill2["default"](function (entries) { + entries.forEach(_this2.setChildrenWidthAndResize); + }); + + [].slice.call(menuUl.children).concat(menuUl).forEach(function (el) { + _this2.resizeObserver.observe(el); + }); + + if (typeof MutationObserver !== 'undefined') { + this.mutationObserver = new MutationObserver(function () { + _this2.resizeObserver.disconnect(); + [].slice.call(menuUl.children).concat(menuUl).forEach(function (el) { + _this2.resizeObserver.observe(el); + }); + _this2.setChildrenWidthAndResize(); + }); + this.mutationObserver.observe(menuUl, { attributes: false, childList: true, subTree: false }); + } + } + }; + + DOMWrap.prototype.componentWillUnmount = function componentWillUnmount() { + if (this.resizeObserver) { + this.resizeObserver.disconnect(); + } + if (this.mutationObserver) { + this.resizeObserver.disconnect(); + } + }; + + // get all valid menuItem nodes - return enIe; - }))); - - -/***/ }), -/* 436 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : English (Israel) [en-il] - //! author : Chris Gedrim : https://github.com/chrisgedrim + // memorize rendered menuSize - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration + // original scroll size of the list - var enIl = moment.defineLocale('en-il', { - months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), - weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( - '_' - ), - weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Today at] LT', - nextDay: '[Tomorrow at] LT', - nextWeek: 'dddd [at] LT', - lastDay: '[Yesterday at] LT', - lastWeek: '[Last] dddd [at] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'in %s', - past: '%s ago', - s: 'a few seconds', - ss: '%d seconds', - m: 'a minute', - mm: '%d minutes', - h: 'an hour', - hh: '%d hours', - d: 'a day', - dd: '%d days', - M: 'a month', - MM: '%d months', - y: 'a year', - yy: '%d years', - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal: function (number) { - var b = number % 10, - output = - ~~((number % 100) / 10) === 1 - ? 'th' - : b === 1 - ? 'st' - : b === 2 - ? 'nd' - : b === 3 - ? 'rd' - : 'th'; - return number + output; - }, - }); - return enIl; + // copy of overflowed items - }))); - - -/***/ }), -/* 437 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : English (India) [en-in] - //! author : Jatin Agrawal : https://github.com/jatinag22 - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + // cache item of the original items (so we can track the size and order) - //! moment.js locale configuration - var enIn = moment.defineLocale('en-in', { - months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), - weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( - '_' - ), - weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY h:mm A', - LLLL: 'dddd, D MMMM YYYY h:mm A', - }, - calendar: { - sameDay: '[Today at] LT', - nextDay: '[Tomorrow at] LT', - nextWeek: 'dddd [at] LT', - lastDay: '[Yesterday at] LT', - lastWeek: '[Last] dddd [at] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'in %s', - past: '%s ago', - s: 'a few seconds', - ss: '%d seconds', - m: 'a minute', - mm: '%d minutes', - h: 'an hour', - hh: '%d hours', - d: 'a day', - dd: '%d days', - M: 'a month', - MM: '%d months', - y: 'a year', - yy: '%d years', - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal: function (number) { - var b = number % 10, - output = - ~~((number % 100) / 10) === 1 - ? 'th' - : b === 1 - ? 'st' - : b === 2 - ? 'nd' - : b === 3 - ? 'rd' - : 'th'; - return number + output; - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 1st is the first week of the year. - }, - }); + DOMWrap.prototype.renderChildren = function renderChildren(children) { + var _this3 = this; - return enIn; + // need to take care of overflowed items in horizontal mode + var lastVisibleIndex = this.state.lastVisibleIndex; - }))); - - -/***/ }), -/* 438 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : English (New Zealand) [en-nz] - //! author : Luke McGregor : https://github.com/lukemcgregor + return (children || []).reduce(function (acc, childNode, index) { + var item = childNode; + if (_this3.props.mode === 'horizontal') { + var overflowed = _this3.getOverflowedSubMenuItem(childNode.props.eventKey, []); + if (lastVisibleIndex !== undefined && _this3.props.className.indexOf(_this3.props.prefixCls + '-root') !== -1) { + if (index > lastVisibleIndex) { + item = _react2["default"].cloneElement(childNode, + // 这里修改 eventKey 是为了防止隐藏状态下还会触发 openkeys 事件 + { + style: { display: 'none' }, + eventKey: childNode.props.eventKey + '-hidden', + className: childNode.className + ' ' + MENUITEM_OVERFLOWED_CLASSNAME + }); + } + if (index === lastVisibleIndex + 1) { + _this3.overflowedItems = children.slice(lastVisibleIndex + 1).map(function (c) { + return _react2["default"].cloneElement(c, + // children[index].key will become '.$key' in clone by default, + // we have to overwrite with the correct key explicitly + { key: c.props.eventKey, mode: 'vertical-left' }); + }); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + overflowed = _this3.getOverflowedSubMenuItem(childNode.props.eventKey, _this3.overflowedItems); + } + } - //! moment.js locale configuration + // const ret = [...acc, overflowed, item];//更改 + var ret = [].concat(_toConsumableArray(acc), [item]); - var enNz = moment.defineLocale('en-nz', { - months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), - weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( - '_' - ), - weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY h:mm A', - LLLL: 'dddd, D MMMM YYYY h:mm A', - }, - calendar: { - sameDay: '[Today at] LT', - nextDay: '[Tomorrow at] LT', - nextWeek: 'dddd [at] LT', - lastDay: '[Yesterday at] LT', - lastWeek: '[Last] dddd [at] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'in %s', - past: '%s ago', - s: 'a few seconds', - ss: '%d seconds', - m: 'a minute', - mm: '%d minutes', - h: 'an hour', - hh: '%d hours', - d: 'a day', - dd: '%d days', - M: 'a month', - MM: '%d months', - y: 'a year', - yy: '%d years', - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal: function (number) { - var b = number % 10, - output = - ~~((number % 100) / 10) === 1 - ? 'th' - : b === 1 - ? 'st' - : b === 2 - ? 'nd' - : b === 3 - ? 'rd' - : 'th'; - return number + output; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + if (index === children.length - 1) { + // need a placeholder for calculating overflowed indicator width + ret.push(_this3.getOverflowedSubMenuItem(childNode.props.eventKey, [], true)); + } + return ret; + } + return [].concat(_toConsumableArray(acc), [item]); + }, []); + }; - return enNz; + DOMWrap.prototype.render = function render() { + var _props = this.props, + hiddenClassName = _props.hiddenClassName, + visible = _props.visible, + prefixCls = _props.prefixCls, + overflowedIndicator = _props.overflowedIndicator, + mode = _props.mode, + level = _props.level, + Tag = _props.tag, + children = _props.children, + theme = _props.theme, + rest = _objectWithoutProperties(_props, ['hiddenClassName', 'visible', 'prefixCls', 'overflowedIndicator', 'mode', 'level', 'tag', 'children', 'theme']); - }))); - - -/***/ }), -/* 439 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : English (Singapore) [en-sg] - //! author : Matthew Castrillon-Madrigal : https://github.com/techdimension + if (!visible) { + rest.className += ' ' + hiddenClassName; + } - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + return _react2["default"].createElement( + Tag, + rest, + this.renderChildren(this.props.children) + ); + }; - //! moment.js locale configuration + return DOMWrap; + }(_react2["default"].Component); - var enSg = moment.defineLocale('en-sg', { - months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), - weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( - '_' - ), - weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Today at] LT', - nextDay: '[Tomorrow at] LT', - nextWeek: 'dddd [at] LT', - lastDay: '[Yesterday at] LT', - lastWeek: '[Last] dddd [at] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'in %s', - past: '%s ago', - s: 'a few seconds', - ss: '%d seconds', - m: 'a minute', - mm: '%d minutes', - h: 'an hour', - hh: '%d hours', - d: 'a day', - dd: '%d days', - M: 'a month', - MM: '%d months', - y: 'a year', - yy: '%d years', - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal: function (number) { - var b = number % 10, - output = - ~~((number % 100) / 10) === 1 - ? 'th' - : b === 1 - ? 'st' - : b === 2 - ? 'nd' - : b === 3 - ? 'rd' - : 'th'; - return number + output; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + DOMWrap.propTypes = { + className: _propTypes2["default"].string, + children: _propTypes2["default"].node, + mode: _propTypes2["default"].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']), + prefixCls: _propTypes2["default"].string, + level: _propTypes2["default"].number, + theme: _propTypes2["default"].string, + overflowedIndicator: _propTypes2["default"].node, + visible: _propTypes2["default"].bool, + hiddenClassName: _propTypes2["default"].string, + tag: _propTypes2["default"].string, + style: _propTypes2["default"].object + }; - return enSg; + DOMWrap.defaultProps = { + tag: 'div', + className: '' + }; - }))); - + exports["default"] = DOMWrap; + module.exports = exports['default']; /***/ }), -/* 440 */ +/* 335 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Esperanto [eo] - //! author : Colin Dean : https://github.com/colindean - //! author : Mia Nordentoft Imperatori : https://github.com/miestasmia - //! comment : miestasmia corrected the translation by colindean - //! comment : Vivakvo corrected the translation by colindean and miestasmia + 'use strict'; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.SubMenu = undefined; - //! moment.js locale configuration + var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - var eo = moment.defineLocale('eo', { - months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split( - '_' - ), - monthsShort: 'jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec'.split('_'), - weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'), - weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'), - weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY-MM-DD', - LL: '[la] D[-an de] MMMM, YYYY', - LLL: '[la] D[-an de] MMMM, YYYY HH:mm', - LLLL: 'dddd[n], [la] D[-an de] MMMM, YYYY HH:mm', - llll: 'ddd, [la] D[-an de] MMM, YYYY HH:mm', - }, - meridiemParse: /[ap]\.t\.m/i, - isPM: function (input) { - return input.charAt(0).toLowerCase() === 'p'; - }, - meridiem: function (hours, minutes, isLower) { - if (hours > 11) { - return isLower ? 'p.t.m.' : 'P.T.M.'; - } else { - return isLower ? 'a.t.m.' : 'A.T.M.'; - } - }, - calendar: { - sameDay: '[Hodiaŭ je] LT', - nextDay: '[Morgaŭ je] LT', - nextWeek: 'dddd[n je] LT', - lastDay: '[Hieraŭ je] LT', - lastWeek: '[pasintan] dddd[n je] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'post %s', - past: 'antaŭ %s', - s: 'kelkaj sekundoj', - ss: '%d sekundoj', - m: 'unu minuto', - mm: '%d minutoj', - h: 'unu horo', - hh: '%d horoj', - d: 'unu tago', //ne 'diurno', ĉar estas uzita por proksimumo - dd: '%d tagoj', - M: 'unu monato', - MM: '%d monatoj', - y: 'unu jaro', - yy: '%d jaroj', - }, - dayOfMonthOrdinalParse: /\d{1,2}a/, - ordinal: '%da', - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; /** + * This source code is quoted from rc-menu. + * homepage: https://github.com/react-component/menu + */ - return eo; - }))); - - -/***/ }), -/* 441 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Spanish [es] - //! author : Julio Napurí : https://github.com/julionc + var _react = __webpack_require__(1); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _react2 = _interopRequireDefault(_react); - //! moment.js locale configuration + var _reactDom = __webpack_require__(2); - var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split( - '_' - ), - monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), - monthsParse = [ - /^ene/i, - /^feb/i, - /^mar/i, - /^abr/i, - /^may/i, - /^jun/i, - /^jul/i, - /^ago/i, - /^sep/i, - /^oct/i, - /^nov/i, - /^dic/i, - ], - monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i; + var _reactDom2 = _interopRequireDefault(_reactDom); - var es = moment.defineLocale('es', { - months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split( - '_' - ), - monthsShort: function (m, format) { - if (!m) { - return monthsShortDot; - } else if (/-MMM-/.test(format)) { - return monthsShort[m.month()]; - } else { - return monthsShortDot[m.month()]; - } - }, - monthsRegex: monthsRegex, - monthsShortRegex: monthsRegex, - monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, - monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, - monthsParse: monthsParse, - longMonthsParse: monthsParse, - shortMonthsParse: monthsParse, - weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), - weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), - weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D [de] MMMM [de] YYYY', - LLL: 'D [de] MMMM [de] YYYY H:mm', - LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm', - }, - calendar: { - sameDay: function () { - return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; - }, - nextDay: function () { - return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; - }, - nextWeek: function () { - return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; - }, - lastDay: function () { - return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; - }, - lastWeek: function () { - return ( - '[el] dddd [pasado a la' + - (this.hours() !== 1 ? 's' : '') + - '] LT' - ); - }, - sameElse: 'L', - }, - relativeTime: { - future: 'en %s', - past: 'hace %s', - s: 'unos segundos', - ss: '%d segundos', - m: 'un minuto', - mm: '%d minutos', - h: 'una hora', - hh: '%d horas', - d: 'un día', - dd: '%d días', - M: 'un mes', - MM: '%d meses', - y: 'un año', - yy: '%d años', - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - invalidDate: 'Fecha invalida', - }); + var _propTypes = __webpack_require__(6); - return es; + var _propTypes2 = _interopRequireDefault(_propTypes); - }))); - - -/***/ }), -/* 442 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Spanish (Dominican Republic) [es-do] + var _rcTrigger = __webpack_require__(336); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _rcTrigger2 = _interopRequireDefault(_rcTrigger); - //! moment.js locale configuration + var _tinperBeeCore = __webpack_require__(27); - var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split( - '_' - ), - monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), - monthsParse = [ - /^ene/i, - /^feb/i, - /^mar/i, - /^abr/i, - /^may/i, - /^jun/i, - /^jul/i, - /^ago/i, - /^sep/i, - /^oct/i, - /^nov/i, - /^dic/i, - ], - monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i; + var _classnames = __webpack_require__(5); - var esDo = moment.defineLocale('es-do', { - months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split( - '_' - ), - monthsShort: function (m, format) { - if (!m) { - return monthsShortDot; - } else if (/-MMM-/.test(format)) { - return monthsShort[m.month()]; - } else { - return monthsShortDot[m.month()]; - } - }, - monthsRegex: monthsRegex, - monthsShortRegex: monthsRegex, - monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, - monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, - monthsParse: monthsParse, - longMonthsParse: monthsParse, - shortMonthsParse: monthsParse, - weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), - weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), - weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'DD/MM/YYYY', - LL: 'D [de] MMMM [de] YYYY', - LLL: 'D [de] MMMM [de] YYYY h:mm A', - LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A', - }, - calendar: { - sameDay: function () { - return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; - }, - nextDay: function () { - return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; - }, - nextWeek: function () { - return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; - }, - lastDay: function () { - return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; - }, - lastWeek: function () { - return ( - '[el] dddd [pasado a la' + - (this.hours() !== 1 ? 's' : '') + - '] LT' - ); - }, - sameElse: 'L', - }, - relativeTime: { - future: 'en %s', - past: 'hace %s', - s: 'unos segundos', - ss: '%d segundos', - m: 'un minuto', - mm: '%d minutos', - h: 'una hora', - hh: '%d horas', - d: 'un día', - dd: '%d días', - M: 'un mes', - MM: '%d meses', - y: 'un año', - yy: '%d años', - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var _classnames2 = _interopRequireDefault(_classnames); - return esDo; + var _miniStore = __webpack_require__(325); - }))); - - -/***/ }), -/* 443 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Spanish (United States) [es-us] - //! author : bustta : https://github.com/bustta - //! author : chrisrodz : https://github.com/chrisrodz + var _SubPopupMenu = __webpack_require__(331); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _SubPopupMenu2 = _interopRequireDefault(_SubPopupMenu); - //! moment.js locale configuration + var _placements = __webpack_require__(399); - var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split( - '_' - ), - monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), - monthsParse = [ - /^ene/i, - /^feb/i, - /^mar/i, - /^abr/i, - /^may/i, - /^jun/i, - /^jul/i, - /^ago/i, - /^sep/i, - /^oct/i, - /^nov/i, - /^dic/i, - ], - monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i; + var _placements2 = _interopRequireDefault(_placements); - var esUs = moment.defineLocale('es-us', { - months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split( - '_' - ), - monthsShort: function (m, format) { - if (!m) { - return monthsShortDot; - } else if (/-MMM-/.test(format)) { - return monthsShort[m.month()]; - } else { - return monthsShortDot[m.month()]; - } - }, - monthsRegex: monthsRegex, - monthsShortRegex: monthsRegex, - monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, - monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, - monthsParse: monthsParse, - longMonthsParse: monthsParse, - shortMonthsParse: monthsParse, - weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), - weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), - weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'MM/DD/YYYY', - LL: 'D [de] MMMM [de] YYYY', - LLL: 'D [de] MMMM [de] YYYY h:mm A', - LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A', - }, - calendar: { - sameDay: function () { - return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; - }, - nextDay: function () { - return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; - }, - nextWeek: function () { - return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; - }, - lastDay: function () { - return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; - }, - lastWeek: function () { - return ( - '[el] dddd [pasado a la' + - (this.hours() !== 1 ? 's' : '') + - '] LT' - ); - }, - sameElse: 'L', - }, - relativeTime: { - future: 'en %s', - past: 'hace %s', - s: 'unos segundos', - ss: '%d segundos', - m: 'un minuto', - mm: '%d minutos', - h: 'una hora', - hh: '%d horas', - d: 'un día', - dd: '%d días', - M: 'un mes', - MM: '%d meses', - y: 'un año', - yy: '%d años', - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }, - }); + var _rcAnimate = __webpack_require__(388); - return esUs; + var _rcAnimate2 = _interopRequireDefault(_rcAnimate); - }))); - - -/***/ }), -/* 444 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Estonian [et] - //! author : Henry Kehlmann : https://github.com/madhenry - //! improvements : Illimar Tambek : https://github.com/ragulka + var _util = __webpack_require__(333); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - //! moment.js locale configuration + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - s: ['mõne sekundi', 'mõni sekund', 'paar sekundit'], - ss: [number + 'sekundi', number + 'sekundit'], - m: ['ühe minuti', 'üks minut'], - mm: [number + ' minuti', number + ' minutit'], - h: ['ühe tunni', 'tund aega', 'üks tund'], - hh: [number + ' tunni', number + ' tundi'], - d: ['ühe päeva', 'üks päev'], - M: ['kuu aja', 'kuu aega', 'üks kuu'], - MM: [number + ' kuu', number + ' kuud'], - y: ['ühe aasta', 'aasta', 'üks aasta'], - yy: [number + ' aasta', number + ' aastat'], - }; - if (withoutSuffix) { - return format[key][2] ? format[key][2] : format[key][1]; - } - return isFuture ? format[key][0] : format[key][1]; - } + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - var et = moment.defineLocale('et', { - months: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split( - '_' - ), - monthsShort: 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split( - '_' - ), - weekdays: 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split( - '_' - ), - weekdaysShort: 'P_E_T_K_N_R_L'.split('_'), - weekdaysMin: 'P_E_T_K_N_R_L'.split('_'), - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd, D. MMMM YYYY H:mm', - }, - calendar: { - sameDay: '[Täna,] LT', - nextDay: '[Homme,] LT', - nextWeek: '[Järgmine] dddd LT', - lastDay: '[Eile,] LT', - lastWeek: '[Eelmine] dddd LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s pärast', - past: '%s tagasi', - s: processRelativeTime, - ss: processRelativeTime, - m: processRelativeTime, - mm: processRelativeTime, - h: processRelativeTime, - hh: processRelativeTime, - d: processRelativeTime, - dd: '%d päeva', - M: processRelativeTime, - MM: processRelativeTime, - y: processRelativeTime, - yy: processRelativeTime, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - return et; + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - }))); - - -/***/ }), -/* 445 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Basque [eu] - //! author : Eneko Illarramendi : https://github.com/eillarra + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var guid = 0; - //! moment.js locale configuration + var popupPlacementMap = { + horizontal: 'bottomLeft', + vertical: 'rightTop', + 'vertical-left': 'rightTop', + 'vertical-right': 'leftTop' + }; - var eu = moment.defineLocale('eu', { - months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split( - '_' - ), - monthsShort: 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split( - '_' - ), - weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'), - weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY-MM-DD', - LL: 'YYYY[ko] MMMM[ren] D[a]', - LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm', - LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm', - l: 'YYYY-M-D', - ll: 'YYYY[ko] MMM D[a]', - lll: 'YYYY[ko] MMM D[a] HH:mm', - llll: 'ddd, YYYY[ko] MMM D[a] HH:mm', - }, - calendar: { - sameDay: '[gaur] LT[etan]', - nextDay: '[bihar] LT[etan]', - nextWeek: 'dddd LT[etan]', - lastDay: '[atzo] LT[etan]', - lastWeek: '[aurreko] dddd LT[etan]', - sameElse: 'L', - }, - relativeTime: { - future: '%s barru', - past: 'duela %s', - s: 'segundo batzuk', - ss: '%d segundo', - m: 'minutu bat', - mm: '%d minutu', - h: 'ordu bat', - hh: '%d ordu', - d: 'egun bat', - dd: '%d egun', - M: 'hilabete bat', - MM: '%d hilabete', - y: 'urte bat', - yy: '%d urte', - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); + var updateDefaultActiveFirst = function updateDefaultActiveFirst(store, eventKey, defaultActiveFirst) { + var menuId = (0, _util.getMenuIdFromSubMenuEventKey)(eventKey); + var state = store.getState(); + store.setState({ + defaultActiveFirst: _extends({}, state.defaultActiveFirst, _defineProperty({}, menuId, defaultActiveFirst)) + }); + }; + + var SubMenu = exports.SubMenu = function (_React$Component) { + _inherits(SubMenu, _React$Component); + + function SubMenu(props) { + _classCallCheck(this, SubMenu); + + var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); + + _initialiseProps.call(_this); + + var store = props.store; + var eventKey = props.eventKey; + var defaultActiveFirst = store.getState().defaultActiveFirst; + + _this.isRootMenu = false; - return eu; + var value = false; - }))); - - -/***/ }), -/* 446 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Persian [fa] - //! author : Ebrahim Byagowi : https://github.com/ebraminio + if (defaultActiveFirst) { + value = defaultActiveFirst[eventKey]; + } - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + updateDefaultActiveFirst(store, eventKey, value); + return _this; + } - //! moment.js locale configuration + SubMenu.prototype.componentDidMount = function componentDidMount() { + this.componentDidUpdate(); + }; - var symbolMap = { - '1': '۱', - '2': '۲', - '3': '۳', - '4': '۴', - '5': '۵', - '6': '۶', - '7': '۷', - '8': '۸', - '9': '۹', - '0': '۰', - }, - numberMap = { - '۱': '1', - '۲': '2', - '۳': '3', - '۴': '4', - '۵': '5', - '۶': '6', - '۷': '7', - '۸': '8', - '۹': '9', - '۰': '0', - }; + SubMenu.prototype.componentDidUpdate = function componentDidUpdate() { + var _props = this.props, + mode = _props.mode, + parentMenu = _props.parentMenu, + manualRef = _props.manualRef; - var fa = moment.defineLocale('fa', { - months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split( - '_' - ), - monthsShort: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split( - '_' - ), - weekdays: 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split( - '_' - ), - weekdaysShort: 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split( - '_' - ), - weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - meridiemParse: /قبل از ظهر|بعد از ظهر/, - isPM: function (input) { - return /بعد از ظهر/.test(input); - }, - meridiem: function (hour, minute, isLower) { - if (hour < 12) { - return 'قبل از ظهر'; - } else { - return 'بعد از ظهر'; - } - }, - calendar: { - sameDay: '[امروز ساعت] LT', - nextDay: '[فردا ساعت] LT', - nextWeek: 'dddd [ساعت] LT', - lastDay: '[دیروز ساعت] LT', - lastWeek: 'dddd [پیش] [ساعت] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'در %s', - past: '%s پیش', - s: 'چند ثانیه', - ss: '%d ثانیه', - m: 'یک دقیقه', - mm: '%d دقیقه', - h: 'یک ساعت', - hh: '%d ساعت', - d: 'یک روز', - dd: '%d روز', - M: 'یک ماه', - MM: '%d ماه', - y: 'یک سال', - yy: '%d سال', - }, - preparse: function (string) { - return string - .replace(/[۰-۹]/g, function (match) { - return numberMap[match]; - }) - .replace(/،/g, ','); - }, - postformat: function (string) { - return string - .replace(/\d/g, function (match) { - return symbolMap[match]; - }) - .replace(/,/g, '،'); - }, - dayOfMonthOrdinalParse: /\d{1,2}م/, - ordinal: '%dم', - week: { - dow: 6, // Saturday is the first day of the week. - doy: 12, // The week that contains Jan 12th is the first week of the year. - }, - }); + // invoke customized ref to expose component to mixin - return fa; + if (manualRef) { + manualRef(this); + } - }))); - - -/***/ }), -/* 447 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Finnish [fi] - //! author : Tarmo Aidantausta : https://github.com/bleadof + if (mode !== 'horizontal' || !parentMenu.isRootMenu || !this.props.isOpen) { + return; + } - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + // this.minWidthTimeout = setTimeout(() => this.adjustWidth(), 0); + this.adjustWidth(); + }; - //! moment.js locale configuration + SubMenu.prototype.componentWillUnmount = function componentWillUnmount() { + var _props2 = this.props, + onDestroy = _props2.onDestroy, + eventKey = _props2.eventKey; - var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split( - ' ' - ), - numbersFuture = [ - 'nolla', - 'yhden', - 'kahden', - 'kolmen', - 'neljän', - 'viiden', - 'kuuden', - numbersPast[7], - numbersPast[8], - numbersPast[9], - ]; - function translate(number, withoutSuffix, key, isFuture) { - var result = ''; - switch (key) { - case 's': - return isFuture ? 'muutaman sekunnin' : 'muutama sekunti'; - case 'ss': - result = isFuture ? 'sekunnin' : 'sekuntia'; - break; - case 'm': - return isFuture ? 'minuutin' : 'minuutti'; - case 'mm': - result = isFuture ? 'minuutin' : 'minuuttia'; - break; - case 'h': - return isFuture ? 'tunnin' : 'tunti'; - case 'hh': - result = isFuture ? 'tunnin' : 'tuntia'; - break; - case 'd': - return isFuture ? 'päivän' : 'päivä'; - case 'dd': - result = isFuture ? 'päivän' : 'päivää'; - break; - case 'M': - return isFuture ? 'kuukauden' : 'kuukausi'; - case 'MM': - result = isFuture ? 'kuukauden' : 'kuukautta'; - break; - case 'y': - return isFuture ? 'vuoden' : 'vuosi'; - case 'yy': - result = isFuture ? 'vuoden' : 'vuotta'; - break; - } - result = verbalNumber(number, isFuture) + ' ' + result; - return result; + if (onDestroy) { + onDestroy(eventKey); } - function verbalNumber(number, isFuture) { - return number < 10 - ? isFuture - ? numbersFuture[number] - : numbersPast[number] - : number; + + /* istanbul ignore if */ + /* if (this.minWidthTimeout) { + clearTimeout(this.minWidthTimeout); + }*/ + + /* istanbul ignore if */ + if (this.mouseenterTimeout) { + clearTimeout(this.mouseenterTimeout); } + }; - var fi = moment.defineLocale('fi', { - months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split( - '_' - ), - monthsShort: 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split( - '_' - ), - weekdays: 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split( - '_' - ), - weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'), - weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'), - longDateFormat: { - LT: 'HH.mm', - LTS: 'HH.mm.ss', - L: 'DD.MM.YYYY', - LL: 'Do MMMM[ta] YYYY', - LLL: 'Do MMMM[ta] YYYY, [klo] HH.mm', - LLLL: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm', - l: 'D.M.YYYY', - ll: 'Do MMM YYYY', - lll: 'Do MMM YYYY, [klo] HH.mm', - llll: 'ddd, Do MMM YYYY, [klo] HH.mm', - }, - calendar: { - sameDay: '[tänään] [klo] LT', - nextDay: '[huomenna] [klo] LT', - nextWeek: 'dddd [klo] LT', - lastDay: '[eilen] [klo] LT', - lastWeek: '[viime] dddd[na] [klo] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s päästä', - past: '%s sitten', - s: translate, - ss: translate, - m: translate, - mm: translate, - h: translate, - hh: translate, - d: translate, - dd: translate, - M: translate, - MM: translate, - y: translate, - yy: translate, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + SubMenu.prototype.renderChildren = function renderChildren(children) { + var props = this.props; + var baseProps = { + mode: props.mode === 'horizontal' ? 'vertical' : props.mode, + visible: this.props.isOpen, + level: props.level + 1, + inlineIndent: props.inlineIndent, + focusable: false, + onClick: this.onSubMenuClick, + onSelect: this.onSelect, + onDeselect: this.onDeselect, + onDestroy: this.onDestroy, + selectedKeys: props.selectedKeys, + eventKey: props.eventKey + '-menu-', + openKeys: props.openKeys, + openTransitionName: props.openTransitionName, + openAnimation: props.openAnimation, + onOpenChange: this.onOpenChange, + subMenuOpenDelay: props.subMenuOpenDelay, + parentMenu: this, + subMenuCloseDelay: props.subMenuCloseDelay, + forceSubMenuRender: props.forceSubMenuRender, + triggerSubMenuAction: props.triggerSubMenuAction, + builtinPlacements: props.builtinPlacements, + defaultActiveFirst: props.store.getState().defaultActiveFirst[(0, _util.getMenuIdFromSubMenuEventKey)(props.eventKey)], + multiple: props.multiple, + prefixCls: props.rootPrefixCls, + id: this._menuId, + manualRef: this.saveMenuInstance, + itemIcon: props.itemIcon, + expandIcon: props.expandIcon + }; - return fi; + var haveRendered = this.haveRendered; + this.haveRendered = true; - }))); - - -/***/ }), -/* 448 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Filipino [fil] - //! author : Dan Hagman : https://github.com/hagmandan - //! author : Matthew Co : https://github.com/matthewdeeco + this.haveOpened = this.haveOpened || baseProps.visible || baseProps.forceSubMenuRender; + // never rendered not planning to, don't render + if (!this.haveOpened) { + return _react2["default"].createElement('div', null); + } - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + // don't show transition on first rendering (no animation for opened menu) + // show appear transition if it's not visible (not sure why) + // show appear transition if it's not inline mode + var transitionAppear = haveRendered || !baseProps.visible || !baseProps.mode === 'inline'; - //! moment.js locale configuration + baseProps.className = ' ' + baseProps.prefixCls + '-sub'; + var animProps = {}; - var fil = moment.defineLocale('fil', { - months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split( - '_' - ), - monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'), - weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split( - '_' - ), - weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'), - weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'MM/D/YYYY', - LL: 'MMMM D, YYYY', - LLL: 'MMMM D, YYYY HH:mm', - LLLL: 'dddd, MMMM DD, YYYY HH:mm', - }, - calendar: { - sameDay: 'LT [ngayong araw]', - nextDay: '[Bukas ng] LT', - nextWeek: 'LT [sa susunod na] dddd', - lastDay: 'LT [kahapon]', - lastWeek: 'LT [noong nakaraang] dddd', - sameElse: 'L', - }, - relativeTime: { - future: 'sa loob ng %s', - past: '%s ang nakalipas', - s: 'ilang segundo', - ss: '%d segundo', - m: 'isang minuto', - mm: '%d minuto', - h: 'isang oras', - hh: '%d oras', - d: 'isang araw', - dd: '%d araw', - M: 'isang buwan', - MM: '%d buwan', - y: 'isang taon', - yy: '%d taon', - }, - dayOfMonthOrdinalParse: /\d{1,2}/, - ordinal: function (number) { - return number; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + if (baseProps.openTransitionName) { + animProps.transitionName = baseProps.openTransitionName; + } else if (_typeof(baseProps.openAnimation) === 'object') { + animProps.animation = _extends({}, baseProps.openAnimation); + if (!transitionAppear) { + delete animProps.animation.appear; + } + } - return fil; + return _react2["default"].createElement( + _rcAnimate2["default"], + _extends({}, animProps, { + showProp: 'visible', + component: '', + transitionAppear: transitionAppear + }), + _react2["default"].createElement( + _SubPopupMenu2["default"], + _extends({}, baseProps, { id: this._menuId }), + children + ) + ); + }; - }))); - - -/***/ }), -/* 449 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Faroese [fo] - //! author : Ragnar Johannesen : https://github.com/ragnar123 - //! author : Kristian Sakarisson : https://github.com/sakarisson + SubMenu.prototype.render = function render() { + var _classNames; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var props = _extends({}, this.props); + var isOpen = props.isOpen; + var prefixCls = this.getPrefixCls(); + var isInlineMode = props.mode === 'inline'; + var className = (0, _classnames2["default"])(prefixCls, prefixCls + '-' + props.mode, (_classNames = {}, _defineProperty(_classNames, props.className, !!props.className), _defineProperty(_classNames, this.getOpenClassName(), isOpen), _defineProperty(_classNames, this.getActiveClassName(), props.active || isOpen && !isInlineMode), _defineProperty(_classNames, this.getDisabledClassName(), props.disabled), _defineProperty(_classNames, this.getSelectedClassName(), this.isChildrenSelected()), _classNames)); - //! moment.js locale configuration + if (!this._menuId) { + if (props.eventKey) { + this._menuId = props.eventKey + '$Menu'; + } else { + this._menuId = '$__$' + ++guid + '$Menu'; + } + } - var fo = moment.defineLocale('fo', { - months: 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split( - '_' - ), - monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'), - weekdays: 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split( - '_' - ), - weekdaysShort: 'sun_mán_týs_mik_hós_frí_ley'.split('_'), - weekdaysMin: 'su_má_tý_mi_hó_fr_le'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D. MMMM, YYYY HH:mm', - }, - calendar: { - sameDay: '[Í dag kl.] LT', - nextDay: '[Í morgin kl.] LT', - nextWeek: 'dddd [kl.] LT', - lastDay: '[Í gjár kl.] LT', - lastWeek: '[síðstu] dddd [kl] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'um %s', - past: '%s síðani', - s: 'fá sekund', - ss: '%d sekundir', - m: 'ein minuttur', - mm: '%d minuttir', - h: 'ein tími', - hh: '%d tímar', - d: 'ein dagur', - dd: '%d dagar', - M: 'ein mánaður', - MM: '%d mánaðir', - y: 'eitt ár', - yy: '%d ár', - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var mouseEvents = {}; + var titleClickEvents = {}; + var titleMouseEvents = {}; + if (!props.disabled) { + mouseEvents = { + onMouseLeave: this.onMouseLeave, + onMouseEnter: this.onMouseEnter + }; - return fo; + // only works in title, not outer li + titleClickEvents = { + onClick: this.onTitleClick + }; + titleMouseEvents = { + onMouseEnter: this.onTitleMouseEnter, + onMouseLeave: this.onTitleMouseLeave + }; + } - }))); - - -/***/ }), -/* 450 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : French [fr] - //! author : John Fischer : https://github.com/jfroffice + var style = {}; + if (isInlineMode) { + style.paddingLeft = props.inlineIndent * props.level; + } - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var ariaOwns = {}; + // only set aria-owns when menu is open + // otherwise it would be an invalid aria-owns value + // since corresponding node cannot be found + if (this.props.isOpen) { + ariaOwns = { + 'aria-owns': this._menuId + }; + } - //! moment.js locale configuration + // expand custom icon should NOT be displayed in menu with horizontal mode. + var icon = null; + if (props.mode !== 'horizontal') { + icon = this.props.expandIcon; // ReactNode + if (typeof this.props.expandIcon === 'function') { + icon = _react2["default"].createElement(this.props.expandIcon, _extends({}, this.props)); + } + } - var monthsStrictRegex = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i, - monthsShortStrictRegex = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i, - monthsRegex = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i, - monthsParse = [ - /^janv/i, - /^févr/i, - /^mars/i, - /^avr/i, - /^mai/i, - /^juin/i, - /^juil/i, - /^août/i, - /^sept/i, - /^oct/i, - /^nov/i, - /^déc/i, - ]; + var title = _react2["default"].createElement( + 'div', + _extends({ + ref: this.saveSubMenuTitle, + style: style, + className: prefixCls + '-title' + }, titleMouseEvents, titleClickEvents, { + 'aria-expanded': isOpen + }, ariaOwns, { + 'aria-haspopup': 'true', + title: typeof props.title === 'string' ? props.title : undefined + }), + props.title, + icon || _react2["default"].createElement('i', { className: prefixCls + '-arrow' }) + ); + var children = this.renderChildren(props.children); - var fr = moment.defineLocale('fr', { - months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split( - '_' - ), - monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split( - '_' - ), - monthsRegex: monthsRegex, - monthsShortRegex: monthsRegex, - monthsStrictRegex: monthsStrictRegex, - monthsShortStrictRegex: monthsShortStrictRegex, - monthsParse: monthsParse, - longMonthsParse: monthsParse, - shortMonthsParse: monthsParse, - weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), - weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), - weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Aujourd’hui à] LT', - nextDay: '[Demain à] LT', - nextWeek: 'dddd [à] LT', - lastDay: '[Hier à] LT', - lastWeek: 'dddd [dernier à] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'dans %s', - past: 'il y a %s', - s: 'quelques secondes', - ss: '%d secondes', - m: 'une minute', - mm: '%d minutes', - h: 'une heure', - hh: '%d heures', - d: 'un jour', - dd: '%d jours', - M: 'un mois', - MM: '%d mois', - y: 'un an', - yy: '%d ans', + var getPopupContainer = function getPopupContainer(triggerNode) { + return triggerNode.parentNode; + }; + var popupPlacement = popupPlacementMap[props.mode]; + var popupAlign = props.popupOffset ? { offset: props.popupOffset } : {}; + var popupClassName = props.mode === 'inline' ? '' : props.popupClassName; + var disabled = props.disabled, + triggerSubMenuAction = props.triggerSubMenuAction, + subMenuOpenDelay = props.subMenuOpenDelay, + forceSubMenuRender = props.forceSubMenuRender, + subMenuCloseDelay = props.subMenuCloseDelay, + builtinPlacements = props.builtinPlacements; + + _util.menuAllProps.forEach(function (key) { + return delete props[key]; + }); + // Set onClick to null, to ignore propagated onClick event + delete props.onClick; + return _react2["default"].createElement( + 'li', + _extends({}, props, mouseEvents, { + className: className, + role: 'menuitem' + }), + isInlineMode && title, + isInlineMode && children, + !isInlineMode && _react2["default"].createElement( + _rcTrigger2["default"], + { + prefixCls: prefixCls, + popupClassName: prefixCls + '-popup ' + popupClassName, + getPopupContainer: getPopupContainer, + builtinPlacements: _extends({}, _placements2["default"], builtinPlacements), + popupPlacement: this.props.mode == 'vertical' ? this.props.position || popupPlacement : popupPlacement, + popupVisible: isOpen, + popupAlign: popupAlign, + popup: children, + action: disabled ? [] : [triggerSubMenuAction], + mouseEnterDelay: subMenuOpenDelay, + mouseLeaveDelay: subMenuCloseDelay, + onPopupVisibleChange: this.onPopupVisibleChange, + forceRender: forceSubMenuRender }, - dayOfMonthOrdinalParse: /\d{1,2}(er|)/, - ordinal: function (number, period) { - switch (period) { - // TODO: Return 'e' when day of month > 1. Move this case inside - // block for masculine words below. - // See https://github.com/moment/moment/issues/3375 - case 'D': - return number + (number === 1 ? 'er' : ''); + title + ) + ); + }; - // Words with masculine grammatical gender: mois, trimestre, jour - default: - case 'M': - case 'Q': - case 'DDD': - case 'd': - return number + (number === 1 ? 'er' : 'e'); + return SubMenu; + }(_react2["default"].Component); - // Words with feminine grammatical gender: semaine - case 'w': - case 'W': - return number + (number === 1 ? 're' : 'e'); - } - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + SubMenu.propTypes = { + parentMenu: _propTypes2["default"].object, + title: _propTypes2["default"].node, + children: _propTypes2["default"].any, + selectedKeys: _propTypes2["default"].array, + openKeys: _propTypes2["default"].array, + onClick: _propTypes2["default"].func, + onOpenChange: _propTypes2["default"].func, + rootPrefixCls: _propTypes2["default"].string, + eventKey: _propTypes2["default"].string, + multiple: _propTypes2["default"].bool, + active: _propTypes2["default"].bool, // TODO: remove + onItemHover: _propTypes2["default"].func, + onSelect: _propTypes2["default"].func, + triggerSubMenuAction: _propTypes2["default"].string, + onDeselect: _propTypes2["default"].func, + onDestroy: _propTypes2["default"].func, + onMouseEnter: _propTypes2["default"].func, + onMouseLeave: _propTypes2["default"].func, + onTitleMouseEnter: _propTypes2["default"].func, + onTitleMouseLeave: _propTypes2["default"].func, + onTitleClick: _propTypes2["default"].func, + popupOffset: _propTypes2["default"].array, + isOpen: _propTypes2["default"].bool, + store: _propTypes2["default"].object, + mode: _propTypes2["default"].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']), + manualRef: _propTypes2["default"].func, + itemIcon: _propTypes2["default"].oneOfType([_propTypes2["default"].func, _propTypes2["default"].node]), + expandIcon: _propTypes2["default"].oneOfType([_propTypes2["default"].func, _propTypes2["default"].node]), + position: _propTypes2["default"].oneOf(['bottomLeft', 'topLeft', 'leftTop', 'rightTop']) + }; + SubMenu.defaultProps = { + onMouseEnter: _util.noop, + onMouseLeave: _util.noop, + onTitleMouseEnter: _util.noop, + onTitleMouseLeave: _util.noop, + onTitleClick: _util.noop, + manualRef: _util.noop, + mode: 'vertical', + title: '' + }; - return fr; + var _initialiseProps = function _initialiseProps() { + var _this2 = this; - }))); - - -/***/ }), -/* 451 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : French (Canada) [fr-ca] - //! author : Jonathan Abourbih : https://github.com/jonbca + this.onDestroy = function (key) { + _this2.props.onDestroy(key); + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + this.onKeyDown = function (e) { + var keyCode = e.keyCode; + var menu = _this2.menuInstance; + var _props3 = _this2.props, + isOpen = _props3.isOpen, + store = _props3.store; - //! moment.js locale configuration + if (_this2.props.store.getState().keyboard) { + //是否启用键盘操作 + if (keyCode === _tinperBeeCore.KeyCode.ENTER) { + // this.onTitleClick(e); + menu && menu.onKeyDown && menu.onKeyDown(e); + updateDefaultActiveFirst(store, _this2.props.eventKey, true); + return true; + } - var frCa = moment.defineLocale('fr-ca', { - months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split( - '_' - ), - monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), - weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), - weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY-MM-DD', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Aujourd’hui à] LT', - nextDay: '[Demain à] LT', - nextWeek: 'dddd [à] LT', - lastDay: '[Hier à] LT', - lastWeek: 'dddd [dernier à] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'dans %s', - past: 'il y a %s', - s: 'quelques secondes', - ss: '%d secondes', - m: 'une minute', - mm: '%d minutes', - h: 'une heure', - hh: '%d heures', - d: 'un jour', - dd: '%d jours', - M: 'un mois', - MM: '%d mois', - y: 'un an', - yy: '%d ans', - }, - dayOfMonthOrdinalParse: /\d{1,2}(er|e)/, - ordinal: function (number, period) { - switch (period) { - // Words with masculine grammatical gender: mois, trimestre, jour - default: - case 'M': - case 'Q': - case 'D': - case 'DDD': - case 'd': - return number + (number === 1 ? 'er' : 'e'); + if (keyCode === _tinperBeeCore.KeyCode.RIGHT) { + if (isOpen) { + menu.onKeyDown(e); + } else { + _this2.triggerOpenChange(true); + // need to update current menu's defaultActiveFirst value + updateDefaultActiveFirst(store, _this2.props.eventKey, true); + } + return true; + } + if (keyCode === _tinperBeeCore.KeyCode.LEFT) { + var handled = void 0; + if (isOpen) { + handled = menu.onKeyDown(e); + } else { + return undefined; + } + if (!handled) { + _this2.triggerOpenChange(false); + handled = true; + } + return handled; + } + if (isOpen && (keyCode === _tinperBeeCore.KeyCode.UP || keyCode === _tinperBeeCore.KeyCode.DOWN)) { + return menu.onKeyDown(e); + } + } + }; - // Words with feminine grammatical gender: semaine - case 'w': - case 'W': - return number + (number === 1 ? 're' : 'e'); - } - }, + this.onOpenChange = function (e) { + _this2.props.onOpenChange(e); + }; + + this.onPopupVisibleChange = function (visible) { + _this2.triggerOpenChange(visible, visible ? 'mouseenter' : 'mouseleave'); + }; + + this.onMouseEnter = function (e) { + var _props4 = _this2.props, + key = _props4.eventKey, + onMouseEnter = _props4.onMouseEnter, + store = _props4.store; + + updateDefaultActiveFirst(store, _this2.props.eventKey, false); + onMouseEnter({ + key: key, + domEvent: e }); + }; - return frCa; + this.onMouseLeave = function (e) { + var _props5 = _this2.props, + parentMenu = _props5.parentMenu, + eventKey = _props5.eventKey, + onMouseLeave = _props5.onMouseLeave; - }))); - - -/***/ }), -/* 452 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : French (Switzerland) [fr-ch] - //! author : Gaspard Bucher : https://github.com/gaspard + parentMenu.subMenuInstance = _this2; + onMouseLeave({ + key: eventKey, + domEvent: e + }); + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + this.onTitleMouseEnter = function (domEvent) { + var _props6 = _this2.props, + key = _props6.eventKey, + onItemHover = _props6.onItemHover, + onTitleMouseEnter = _props6.onTitleMouseEnter; - //! moment.js locale configuration + onItemHover({ + key: key, + hover: true + }); + onTitleMouseEnter({ + key: key, + domEvent: domEvent + }); + }; - var frCh = moment.defineLocale('fr-ch', { - months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split( - '_' - ), - monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), - weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), - weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Aujourd’hui à] LT', - nextDay: '[Demain à] LT', - nextWeek: 'dddd [à] LT', - lastDay: '[Hier à] LT', - lastWeek: 'dddd [dernier à] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'dans %s', - past: 'il y a %s', - s: 'quelques secondes', - ss: '%d secondes', - m: 'une minute', - mm: '%d minutes', - h: 'une heure', - hh: '%d heures', - d: 'un jour', - dd: '%d jours', - M: 'un mois', - MM: '%d mois', - y: 'un an', - yy: '%d ans', - }, - dayOfMonthOrdinalParse: /\d{1,2}(er|e)/, - ordinal: function (number, period) { - switch (period) { - // Words with masculine grammatical gender: mois, trimestre, jour - default: - case 'M': - case 'Q': - case 'D': - case 'DDD': - case 'd': - return number + (number === 1 ? 'er' : 'e'); + this.onTitleMouseLeave = function (e) { + var _props7 = _this2.props, + parentMenu = _props7.parentMenu, + eventKey = _props7.eventKey, + onItemHover = _props7.onItemHover, + onTitleMouseLeave = _props7.onTitleMouseLeave; - // Words with feminine grammatical gender: semaine - case 'w': - case 'W': - return number + (number === 1 ? 're' : 'e'); - } - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, + parentMenu.subMenuInstance = _this2; + onItemHover({ + key: eventKey, + hover: false + }); + onTitleMouseLeave({ + key: eventKey, + domEvent: e + }); + }; + + this.onTitleClick = function (e) { + var props = _this2.props; + + props.onTitleClick({ + key: props.eventKey, + domEvent: e }); + if (props.triggerSubMenuAction === 'hover') { + return; + } + _this2.triggerOpenChange(!props.isOpen, 'click'); + updateDefaultActiveFirst(props.store, _this2.props.eventKey, false); + }; - return frCh; + this.onSubMenuClick = function (info) { + // in the case of overflowed submenu + // onClick is not copied over + if (typeof _this2.props.onClick === 'function') { + _this2.props.onClick(_this2.addKeyPath(info)); + } + }; - }))); - - -/***/ }), -/* 453 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Frisian [fy] - //! author : Robin van der Vliet : https://github.com/robin0van0der0v + this.onSelect = function (info) { + _this2.props.onSelect(info); + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + this.onDeselect = function (info) { + _this2.props.onDeselect(info); + }; - //! moment.js locale configuration + this.getPrefixCls = function () { + return _this2.props.rootPrefixCls + '-submenu'; + }; - var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split( - '_' - ), - monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split( - '_' - ); + this.getActiveClassName = function () { + return _this2.getPrefixCls() + '-active'; + }; - var fy = moment.defineLocale('fy', { - months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split( - '_' - ), - monthsShort: function (m, format) { - if (!m) { - return monthsShortWithDots; - } else if (/-MMM-/.test(format)) { - return monthsShortWithoutDots[m.month()]; - } else { - return monthsShortWithDots[m.month()]; - } - }, - monthsParseExact: true, - weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split( - '_' - ), - weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'), - weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD-MM-YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[hjoed om] LT', - nextDay: '[moarn om] LT', - nextWeek: 'dddd [om] LT', - lastDay: '[juster om] LT', - lastWeek: '[ôfrûne] dddd [om] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'oer %s', - past: '%s lyn', - s: 'in pear sekonden', - ss: '%d sekonden', - m: 'ien minút', - mm: '%d minuten', - h: 'ien oere', - hh: '%d oeren', - d: 'ien dei', - dd: '%d dagen', - M: 'ien moanne', - MM: '%d moannen', - y: 'ien jier', - yy: '%d jierren', - }, - dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, - ordinal: function (number) { - return ( - number + - (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de') - ); - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, + this.getDisabledClassName = function () { + return _this2.getPrefixCls() + '-disabled'; + }; + + this.getSelectedClassName = function () { + return _this2.getPrefixCls() + '-selected'; + }; + + this.getOpenClassName = function () { + return _this2.props.rootPrefixCls + '-submenu-open'; + }; + + this.saveMenuInstance = function (c) { + // children menu instance + _this2.menuInstance = c; + }; + + this.addKeyPath = function (info) { + return _extends({}, info, { + keyPath: (info.keyPath || []).concat(_this2.props.eventKey) }); + }; - return fy; + this.triggerOpenChange = function (open, type) { + var key = _this2.props.eventKey; + var openChange = function openChange() { + _this2.onOpenChange({ + key: key, + item: _this2, + trigger: type, + open: open + }); + }; + if (type === 'mouseenter') { + // make sure mouseenter happen after other menu item's mouseleave + _this2.mouseenterTimeout = setTimeout(function () { + openChange(); + }, 0); + } else { + openChange(); + } + }; - }))); - - -/***/ }), -/* 454 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Irish or Irish Gaelic [ga] - //! author : André Silva : https://github.com/askpt + this.isChildrenSelected = function () { + var ret = { find: false }; + (0, _util.loopMenuItemRecursively)(_this2.props.children, _this2.props.selectedKeys, ret); + return ret.find; + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + this.isOpen = function () { + return _this2.props.openKeys.indexOf(_this2.props.eventKey) !== -1; + }; - //! moment.js locale configuration + this.adjustWidth = function () { + /* istanbul ignore if */ + if (!_this2.subMenuTitle || !_this2.menuInstance) { + return; + } + var popupMenu = _reactDom2["default"].findDOMNode(_this2.menuInstance); + if (popupMenu.offsetWidth >= _this2.subMenuTitle.offsetWidth) { + return; + } - var months = [ - 'Eanáir', - 'Feabhra', - 'Márta', - 'Aibreán', - 'Bealtaine', - 'Meitheamh', - 'Iúil', - 'Lúnasa', - 'Meán Fómhair', - 'Deireadh Fómhair', - 'Samhain', - 'Nollaig', - ], - monthsShort = [ - 'Ean', - 'Feabh', - 'Márt', - 'Aib', - 'Beal', - 'Meith', - 'Iúil', - 'Lún', - 'M.F.', - 'D.F.', - 'Samh', - 'Noll', - ], - weekdays = [ - 'Dé Domhnaigh', - 'Dé Luain', - 'Dé Máirt', - 'Dé Céadaoin', - 'Déardaoin', - 'Dé hAoine', - 'Dé Sathairn', - ], - weekdaysShort = ['Domh', 'Luan', 'Máirt', 'Céad', 'Déar', 'Aoine', 'Sath'], - weekdaysMin = ['Do', 'Lu', 'Má', 'Cé', 'Dé', 'A', 'Sa']; + /* istanbul ignore next */ + popupMenu.style.minWidth = _this2.subMenuTitle.offsetWidth + 'px'; //bug是因为在这里加了一个minWidth + }; - var ga = moment.defineLocale('ga', { - months: months, - monthsShort: monthsShort, - monthsParseExact: true, - weekdays: weekdays, - weekdaysShort: weekdaysShort, - weekdaysMin: weekdaysMin, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Inniu ag] LT', - nextDay: '[Amárach ag] LT', - nextWeek: 'dddd [ag] LT', - lastDay: '[Inné ag] LT', - lastWeek: 'dddd [seo caite] [ag] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'i %s', - past: '%s ó shin', - s: 'cúpla soicind', - ss: '%d soicind', - m: 'nóiméad', - mm: '%d nóiméad', - h: 'uair an chloig', - hh: '%d uair an chloig', - d: 'lá', - dd: '%d lá', - M: 'mí', - MM: '%d míonna', - y: 'bliain', - yy: '%d bliain', - }, - dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/, - ordinal: function (number) { - var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh'; - return number + output; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + this.saveSubMenuTitle = function (subMenuTitle) { + _this2.subMenuTitle = subMenuTitle; + }; + }; - return ga; + var connected = (0, _miniStore.connect)(function (_ref, _ref2) { + var openKeys = _ref.openKeys, + activeKey = _ref.activeKey, + selectedKeys = _ref.selectedKeys; + var eventKey = _ref2.eventKey, + subMenuKey = _ref2.subMenuKey; + return { + isOpen: openKeys.indexOf(eventKey) > -1, + active: activeKey[subMenuKey] === eventKey, + selectedKeys: selectedKeys + }; + })(SubMenu); - }))); - + connected.isSubMenu = true; + + exports["default"] = connected; /***/ }), -/* 455 */ +/* 336 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Scottish Gaelic [gd] - //! author : Jon Ashdown : https://github.com/jonashdown + 'use strict'; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + exports.__esModule = true; - //! moment.js locale configuration + var _extends2 = __webpack_require__(289); - var months = [ - 'Am Faoilleach', - 'An Gearran', - 'Am Màrt', - 'An Giblean', - 'An Cèitean', - 'An t-Ògmhios', - 'An t-Iuchar', - 'An Lùnastal', - 'An t-Sultain', - 'An Dàmhair', - 'An t-Samhain', - 'An Dùbhlachd', - ], - monthsShort = [ - 'Faoi', - 'Gear', - 'Màrt', - 'Gibl', - 'Cèit', - 'Ògmh', - 'Iuch', - 'Lùn', - 'Sult', - 'Dàmh', - 'Samh', - 'Dùbh', - ], - weekdays = [ - 'Didòmhnaich', - 'Diluain', - 'Dimàirt', - 'Diciadain', - 'Diardaoin', - 'Dihaoine', - 'Disathairne', - ], - weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'], - weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa']; + var _extends3 = _interopRequireDefault(_extends2); - var gd = moment.defineLocale('gd', { - months: months, - monthsShort: monthsShort, - monthsParseExact: true, - weekdays: weekdays, - weekdaysShort: weekdaysShort, - weekdaysMin: weekdaysMin, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[An-diugh aig] LT', - nextDay: '[A-màireach aig] LT', - nextWeek: 'dddd [aig] LT', - lastDay: '[An-dè aig] LT', - lastWeek: 'dddd [seo chaidh] [aig] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'ann an %s', - past: 'bho chionn %s', - s: 'beagan diogan', - ss: '%d diogan', - m: 'mionaid', - mm: '%d mionaidean', - h: 'uair', - hh: '%d uairean', - d: 'latha', - dd: '%d latha', - M: 'mìos', - MM: '%d mìosan', - y: 'bliadhna', - yy: '%d bliadhna', - }, - dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/, - ordinal: function (number) { - var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh'; - return number + output; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var _classCallCheck2 = __webpack_require__(337); - return gd; + var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - }))); - - -/***/ }), -/* 456 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Galician [gl] - //! author : Juan G. Hurtado : https://github.com/juanghurtado + var _possibleConstructorReturn2 = __webpack_require__(338); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - //! moment.js locale configuration + var _inherits2 = __webpack_require__(369); - var gl = moment.defineLocale('gl', { - months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split( - '_' - ), - monthsShort: 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'), - weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'), - weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D [de] MMMM [de] YYYY', - LLL: 'D [de] MMMM [de] YYYY H:mm', - LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm', - }, - calendar: { - sameDay: function () { - return '[hoxe ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT'; - }, - nextDay: function () { - return '[mañá ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT'; - }, - nextWeek: function () { - return 'dddd [' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT'; - }, - lastDay: function () { - return '[onte ' + (this.hours() !== 1 ? 'á' : 'a') + '] LT'; - }, - lastWeek: function () { - return ( - '[o] dddd [pasado ' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT' - ); - }, - sameElse: 'L', - }, - relativeTime: { - future: function (str) { - if (str.indexOf('un') === 0) { - return 'n' + str; - } - return 'en ' + str; - }, - past: 'hai %s', - s: 'uns segundos', - ss: '%d segundos', - m: 'un minuto', - mm: '%d minutos', - h: 'unha hora', - hh: '%d horas', - d: 'un día', - dd: '%d días', - M: 'un mes', - MM: '%d meses', - y: 'un ano', - yy: '%d anos', - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var _inherits3 = _interopRequireDefault(_inherits2); - return gl; + var _react = __webpack_require__(1); - }))); - - -/***/ }), -/* 457 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Konkani Devanagari script [gom-deva] - //! author : The Discoverer : https://github.com/WikiDiscoverer + var _react2 = _interopRequireDefault(_react); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _propTypes = __webpack_require__(6); - //! moment.js locale configuration + var _propTypes2 = _interopRequireDefault(_propTypes); - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - s: ['थोडया सॅकंडांनी', 'थोडे सॅकंड'], - ss: [number + ' सॅकंडांनी', number + ' सॅकंड'], - m: ['एका मिणटान', 'एक मिनूट'], - mm: [number + ' मिणटांनी', number + ' मिणटां'], - h: ['एका वरान', 'एक वर'], - hh: [number + ' वरांनी', number + ' वरां'], - d: ['एका दिसान', 'एक दीस'], - dd: [number + ' दिसांनी', number + ' दीस'], - M: ['एका म्हयन्यान', 'एक म्हयनो'], - MM: [number + ' म्हयन्यानी', number + ' म्हयने'], - y: ['एका वर्सान', 'एक वर्स'], - yy: [number + ' वर्सांनी', number + ' वर्सां'], - }; - return isFuture ? format[key][0] : format[key][1]; - } + var _reactDom = __webpack_require__(2); - var gomDeva = moment.defineLocale('gom-deva', { - months: { - standalone: 'जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split( - '_' - ), - format: 'जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या'.split( - '_' - ), - isFormat: /MMMM(\s)+D[oD]?/, - }, - monthsShort: 'जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार'.split('_'), - weekdaysShort: 'आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.'.split('_'), - weekdaysMin: 'आ_सो_मं_बु_ब्रे_सु_शे'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'A h:mm [वाजतां]', - LTS: 'A h:mm:ss [वाजतां]', - L: 'DD-MM-YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY A h:mm [वाजतां]', - LLLL: 'dddd, MMMM Do, YYYY, A h:mm [वाजतां]', - llll: 'ddd, D MMM YYYY, A h:mm [वाजतां]', - }, - calendar: { - sameDay: '[आयज] LT', - nextDay: '[फाल्यां] LT', - nextWeek: '[फुडलो] dddd[,] LT', - lastDay: '[काल] LT', - lastWeek: '[फाटलो] dddd[,] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s', - past: '%s आदीं', - s: processRelativeTime, - ss: processRelativeTime, - m: processRelativeTime, - mm: processRelativeTime, - h: processRelativeTime, - hh: processRelativeTime, - d: processRelativeTime, - dd: processRelativeTime, - M: processRelativeTime, - MM: processRelativeTime, - y: processRelativeTime, - yy: processRelativeTime, - }, - dayOfMonthOrdinalParse: /\d{1,2}(वेर)/, - ordinal: function (number, period) { - switch (period) { - // the ordinal 'वेर' only applies to day of the month - case 'D': - return number + 'वेर'; - default: - case 'M': - case 'Q': - case 'DDD': - case 'd': - case 'w': - case 'W': - return number; - } - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - meridiemParse: /राती|सकाळीं|दनपारां|सांजे/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'राती') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'सकाळीं') { - return hour; - } else if (meridiem === 'दनपारां') { - return hour > 12 ? hour : hour + 12; - } else if (meridiem === 'सांजे') { - return hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'राती'; - } else if (hour < 12) { - return 'सकाळीं'; - } else if (hour < 16) { - return 'दनपारां'; - } else if (hour < 20) { - return 'सांजे'; - } else { - return 'राती'; - } - }, - }); + var _reactLifecyclesCompat = __webpack_require__(81); - return gomDeva; + var _contains = __webpack_require__(375); - }))); - - -/***/ }), -/* 458 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Konkani Latin script [gom-latn] - //! author : The Discoverer : https://github.com/WikiDiscoverer + var _contains2 = _interopRequireDefault(_contains); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _addEventListener = __webpack_require__(376); - //! moment.js locale configuration + var _addEventListener2 = _interopRequireDefault(_addEventListener); - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - s: ['thoddea sekondamni', 'thodde sekond'], - ss: [number + ' sekondamni', number + ' sekond'], - m: ['eka mintan', 'ek minut'], - mm: [number + ' mintamni', number + ' mintam'], - h: ['eka voran', 'ek vor'], - hh: [number + ' voramni', number + ' voram'], - d: ['eka disan', 'ek dis'], - dd: [number + ' disamni', number + ' dis'], - M: ['eka mhoinean', 'ek mhoino'], - MM: [number + ' mhoineamni', number + ' mhoine'], - y: ['eka vorsan', 'ek voros'], - yy: [number + ' vorsamni', number + ' vorsam'], - }; - return isFuture ? format[key][0] : format[key][1]; - } + var _ContainerRender = __webpack_require__(377); - var gomLatn = moment.defineLocale('gom-latn', { - months: { - standalone: 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split( - '_' - ), - format: 'Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea'.split( - '_' - ), - isFormat: /MMMM(\s)+D[oD]?/, - }, - monthsShort: 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split( - '_' - ), - monthsParseExact: true, - weekdays: "Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split('_'), - weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'), - weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'A h:mm [vazta]', - LTS: 'A h:mm:ss [vazta]', - L: 'DD-MM-YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY A h:mm [vazta]', - LLLL: 'dddd, MMMM Do, YYYY, A h:mm [vazta]', - llll: 'ddd, D MMM YYYY, A h:mm [vazta]', - }, - calendar: { - sameDay: '[Aiz] LT', - nextDay: '[Faleam] LT', - nextWeek: '[Fuddlo] dddd[,] LT', - lastDay: '[Kal] LT', - lastWeek: '[Fattlo] dddd[,] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s', - past: '%s adim', - s: processRelativeTime, - ss: processRelativeTime, - m: processRelativeTime, - mm: processRelativeTime, - h: processRelativeTime, - hh: processRelativeTime, - d: processRelativeTime, - dd: processRelativeTime, - M: processRelativeTime, - MM: processRelativeTime, - y: processRelativeTime, - yy: processRelativeTime, - }, - dayOfMonthOrdinalParse: /\d{1,2}(er)/, - ordinal: function (number, period) { - switch (period) { - // the ordinal 'er' only applies to day of the month - case 'D': - return number + 'er'; - default: - case 'M': - case 'Q': - case 'DDD': - case 'd': - case 'w': - case 'W': - return number; - } - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - meridiemParse: /rati|sokallim|donparam|sanje/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'rati') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'sokallim') { - return hour; - } else if (meridiem === 'donparam') { - return hour > 12 ? hour : hour + 12; - } else if (meridiem === 'sanje') { - return hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'rati'; - } else if (hour < 12) { - return 'sokallim'; - } else if (hour < 16) { - return 'donparam'; - } else if (hour < 20) { - return 'sanje'; - } else { - return 'rati'; - } - }, - }); + var _ContainerRender2 = _interopRequireDefault(_ContainerRender); - return gomLatn; + var _Portal = __webpack_require__(378); - }))); - - -/***/ }), -/* 459 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Gujarati [gu] - //! author : Kaushik Thanki : https://github.com/Kaushik1987 + var _Portal2 = _interopRequireDefault(_Portal); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _classnames = __webpack_require__(5); - //! moment.js locale configuration + var _classnames2 = _interopRequireDefault(_classnames); - var symbolMap = { - '1': '૧', - '2': '૨', - '3': '૩', - '4': '૪', - '5': '૫', - '6': '૬', - '7': '૭', - '8': '૮', - '9': '૯', - '0': '૦', - }, - numberMap = { - '૧': '1', - '૨': '2', - '૩': '3', - '૪': '4', - '૫': '5', - '૬': '6', - '૭': '7', - '૮': '8', - '૯': '9', - '૦': '0', - }; + var _utils = __webpack_require__(379); - var gu = moment.defineLocale('gu', { - months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split( - '_' - ), - monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split( - '_' - ), - weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'), - weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'), - longDateFormat: { - LT: 'A h:mm વાગ્યે', - LTS: 'A h:mm:ss વાગ્યે', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm વાગ્યે', - LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે', - }, - calendar: { - sameDay: '[આજ] LT', - nextDay: '[કાલે] LT', - nextWeek: 'dddd, LT', - lastDay: '[ગઇકાલે] LT', - lastWeek: '[પાછલા] dddd, LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s મા', - past: '%s પહેલા', - s: 'અમુક પળો', - ss: '%d સેકંડ', - m: 'એક મિનિટ', - mm: '%d મિનિટ', - h: 'એક કલાક', - hh: '%d કલાક', - d: 'એક દિવસ', - dd: '%d દિવસ', - M: 'એક મહિનો', - MM: '%d મહિનો', - y: 'એક વર્ષ', - yy: '%d વર્ષ', - }, - preparse: function (string) { - return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - // Gujarati notation for meridiems are quite fuzzy in practice. While there exists - // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati. - meridiemParse: /રાત|બપોર|સવાર|સાંજ/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'રાત') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'સવાર') { - return hour; - } else if (meridiem === 'બપોર') { - return hour >= 10 ? hour : hour + 12; - } else if (meridiem === 'સાંજ') { - return hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'રાત'; - } else if (hour < 10) { - return 'સવાર'; - } else if (hour < 17) { - return 'બપોર'; - } else if (hour < 20) { - return 'સાંજ'; - } else { - return 'રાત'; - } - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }, - }); + var _Popup = __webpack_require__(380); - return gu; + var _Popup2 = _interopRequireDefault(_Popup); - }))); - - -/***/ }), -/* 460 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Hebrew [he] - //! author : Tomer Cohen : https://github.com/tomer - //! author : Moshe Simantov : https://github.com/DevelopmentIL - //! author : Tal Ater : https://github.com/TalAter + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + function noop() {} - //! moment.js locale configuration + function returnEmptyString() { + return ''; + } - var he = moment.defineLocale('he', { - months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split( - '_' - ), - monthsShort: 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split( - '_' - ), - weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'), - weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'), - weekdaysMin: 'א_ב_ג_ד_ה_ו_ש'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D [ב]MMMM YYYY', - LLL: 'D [ב]MMMM YYYY HH:mm', - LLLL: 'dddd, D [ב]MMMM YYYY HH:mm', - l: 'D/M/YYYY', - ll: 'D MMM YYYY', - lll: 'D MMM YYYY HH:mm', - llll: 'ddd, D MMM YYYY HH:mm', - }, - calendar: { - sameDay: '[היום ב־]LT', - nextDay: '[מחר ב־]LT', - nextWeek: 'dddd [בשעה] LT', - lastDay: '[אתמול ב־]LT', - lastWeek: '[ביום] dddd [האחרון בשעה] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'בעוד %s', - past: 'לפני %s', - s: 'מספר שניות', - ss: '%d שניות', - m: 'דקה', - mm: '%d דקות', - h: 'שעה', - hh: function (number) { - if (number === 2) { - return 'שעתיים'; - } - return number + ' שעות'; - }, - d: 'יום', - dd: function (number) { - if (number === 2) { - return 'יומיים'; - } - return number + ' ימים'; - }, - M: 'חודש', - MM: function (number) { - if (number === 2) { - return 'חודשיים'; - } - return number + ' חודשים'; - }, - y: 'שנה', - yy: function (number) { - if (number === 2) { - return 'שנתיים'; - } else if (number % 10 === 0 && number !== 10) { - return number + ' שנה'; - } - return number + ' שנים'; - }, - }, - meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i, - isPM: function (input) { - return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input); - }, - meridiem: function (hour, minute, isLower) { - if (hour < 5) { - return 'לפנות בוקר'; - } else if (hour < 10) { - return 'בבוקר'; - } else if (hour < 12) { - return isLower ? 'לפנה"צ' : 'לפני הצהריים'; - } else if (hour < 18) { - return isLower ? 'אחה"צ' : 'אחרי הצהריים'; - } else { - return 'בערב'; - } - }, - }); + function returnDocument() { + return window.document; + } + + var ALL_HANDLERS = ['onClick', 'onMouseDown', 'onTouchStart', 'onMouseEnter', 'onMouseLeave', 'onFocus', 'onBlur', 'onContextMenu']; + + var IS_REACT_16 = !!_reactDom.createPortal; + + var contextTypes = { + rcTrigger: _propTypes2['default'].shape({ + onPopupMouseDown: _propTypes2['default'].func + }) + }; + + var Trigger = function (_React$Component) { + (0, _inherits3['default'])(Trigger, _React$Component); + + function Trigger(props) { + (0, _classCallCheck3['default'])(this, Trigger); + + var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props)); - return he; + _initialiseProps.call(_this); - }))); - - -/***/ }), -/* 461 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Hindi [hi] - //! author : Mayank Singhal : https://github.com/mayanksinghal + var popupVisible = void 0; + if ('popupVisible' in props) { + popupVisible = !!props.popupVisible; + } else { + popupVisible = !!props.defaultPopupVisible; + } - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + _this.state = { + prevPopupVisible: popupVisible, + popupVisible: popupVisible + }; - //! moment.js locale configuration + ALL_HANDLERS.forEach(function (h) { + _this['fire' + h] = function (e) { + _this.fireEvents(h, e); + }; + }); + return _this; + } - var symbolMap = { - '1': '१', - '2': '२', - '3': '३', - '4': '४', - '5': '५', - '6': '६', - '7': '७', - '8': '८', - '9': '९', - '0': '०', - }, - numberMap = { - '१': '1', - '२': '2', - '३': '3', - '४': '4', - '५': '5', - '६': '6', - '७': '7', - '८': '8', - '९': '9', - '०': '0', - }; + Trigger.prototype.getChildContext = function getChildContext() { + return { + rcTrigger: { + onPopupMouseDown: this.onPopupMouseDown + } + }; + }; - var hi = moment.defineLocale('hi', { - months: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split( - '_' - ), - monthsShort: 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'), - weekdaysShort: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'), - weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'), - longDateFormat: { - LT: 'A h:mm बजे', - LTS: 'A h:mm:ss बजे', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm बजे', - LLLL: 'dddd, D MMMM YYYY, A h:mm बजे', - }, - calendar: { - sameDay: '[आज] LT', - nextDay: '[कल] LT', - nextWeek: 'dddd, LT', - lastDay: '[कल] LT', - lastWeek: '[पिछले] dddd, LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s में', - past: '%s पहले', - s: 'कुछ ही क्षण', - ss: '%d सेकंड', - m: 'एक मिनट', - mm: '%d मिनट', - h: 'एक घंटा', - hh: '%d घंटे', - d: 'एक दिन', - dd: '%d दिन', - M: 'एक महीने', - MM: '%d महीने', - y: 'एक वर्ष', - yy: '%d वर्ष', - }, - preparse: function (string) { - return string.replace(/[१२३४५६७८९०]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - // Hindi notation for meridiems are quite fuzzy in practice. While there exists - // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi. - meridiemParse: /रात|सुबह|दोपहर|शाम/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'रात') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'सुबह') { - return hour; - } else if (meridiem === 'दोपहर') { - return hour >= 10 ? hour : hour + 12; - } else if (meridiem === 'शाम') { - return hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'रात'; - } else if (hour < 10) { - return 'सुबह'; - } else if (hour < 17) { - return 'दोपहर'; - } else if (hour < 20) { - return 'शाम'; - } else { - return 'रात'; - } - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }, + Trigger.prototype.componentDidMount = function componentDidMount() { + this.componentDidUpdate({}, { + popupVisible: this.state.popupVisible }); + }; - return hi; + Trigger.prototype.componentDidUpdate = function componentDidUpdate(_, prevState) { + var props = this.props; + var state = this.state; + var triggerAfterPopupVisibleChange = function triggerAfterPopupVisibleChange() { + if (prevState.popupVisible !== state.popupVisible) { + props.afterPopupVisibleChange(state.popupVisible); + } + }; + if (!IS_REACT_16) { + this.renderComponent(null, triggerAfterPopupVisibleChange); + } - }))); - - -/***/ }), -/* 462 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Croatian [hr] - //! author : Bojan Marković : https://github.com/bmarkovic + // We must listen to `mousedown` or `touchstart`, edge case: + // https://github.com/ant-design/ant-design/issues/5804 + // https://github.com/react-component/calendar/issues/250 + // https://github.com/react-component/trigger/issues/50 + if (state.popupVisible) { + var currentDocument = void 0; + if (!this.clickOutsideHandler && (this.isClickToHide() || this.isContextMenuToShow())) { + currentDocument = props.getDocument(); + this.clickOutsideHandler = (0, _addEventListener2['default'])(currentDocument, 'mousedown', this.onDocumentClick); + } + // always hide on mobile + if (!this.touchOutsideHandler) { + currentDocument = currentDocument || props.getDocument(); + this.touchOutsideHandler = (0, _addEventListener2['default'])(currentDocument, 'touchstart', this.onDocumentClick); + } + // close popup when trigger type contains 'onContextMenu' and document is scrolling. + if (!this.contextMenuOutsideHandler1 && this.isContextMenuToShow()) { + currentDocument = currentDocument || props.getDocument(); + this.contextMenuOutsideHandler1 = (0, _addEventListener2['default'])(currentDocument, 'scroll', this.onContextMenuClose); + } + // close popup when trigger type contains 'onContextMenu' and window is blur. + if (!this.contextMenuOutsideHandler2 && this.isContextMenuToShow()) { + this.contextMenuOutsideHandler2 = (0, _addEventListener2['default'])(window, 'blur', this.onContextMenuClose); + } + return; + } - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + this.clearOutsideHandler(); + }; - //! moment.js locale configuration + Trigger.prototype.componentWillUnmount = function componentWillUnmount() { + this.clearDelayTimer(); + this.clearOutsideHandler(); + clearTimeout(this.mouseDownTimeout); + }; - function translate(number, withoutSuffix, key) { - var result = number + ' '; - switch (key) { - case 'ss': - if (number === 1) { - result += 'sekunda'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'sekunde'; - } else { - result += 'sekundi'; - } - return result; - case 'm': - return withoutSuffix ? 'jedna minuta' : 'jedne minute'; - case 'mm': - if (number === 1) { - result += 'minuta'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'minute'; - } else { - result += 'minuta'; - } - return result; - case 'h': - return withoutSuffix ? 'jedan sat' : 'jednog sata'; - case 'hh': - if (number === 1) { - result += 'sat'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'sata'; - } else { - result += 'sati'; - } - return result; - case 'dd': - if (number === 1) { - result += 'dan'; - } else { - result += 'dana'; - } - return result; - case 'MM': - if (number === 1) { - result += 'mjesec'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'mjeseca'; - } else { - result += 'mjeseci'; - } - return result; - case 'yy': - if (number === 1) { - result += 'godina'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'godine'; - } else { - result += 'godina'; - } - return result; - } + Trigger.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) { + var popupVisible = _ref.popupVisible; + + var newState = {}; + + if (popupVisible !== undefined && prevState.popupVisible !== popupVisible) { + newState.popupVisible = popupVisible; + newState.prevPopupVisible = prevState.popupVisible; } - var hr = moment.defineLocale('hr', { - months: { - format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split( - '_' - ), - standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split( - '_' - ), - }, - monthsShort: 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split( - '_' - ), - weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), - weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'Do MMMM YYYY', - LLL: 'Do MMMM YYYY H:mm', - LLLL: 'dddd, Do MMMM YYYY H:mm', - }, - calendar: { - sameDay: '[danas u] LT', - nextDay: '[sutra u] LT', - nextWeek: function () { - switch (this.day()) { - case 0: - return '[u] [nedjelju] [u] LT'; - case 3: - return '[u] [srijedu] [u] LT'; - case 6: - return '[u] [subotu] [u] LT'; - case 1: - case 2: - case 4: - case 5: - return '[u] dddd [u] LT'; - } - }, - lastDay: '[jučer u] LT', - lastWeek: function () { - switch (this.day()) { - case 0: - return '[prošlu] [nedjelju] [u] LT'; - case 3: - return '[prošlu] [srijedu] [u] LT'; - case 6: - return '[prošle] [subote] [u] LT'; - case 1: - case 2: - case 4: - case 5: - return '[prošli] dddd [u] LT'; - } - }, - sameElse: 'L', - }, - relativeTime: { - future: 'za %s', - past: 'prije %s', - s: 'par sekundi', - ss: translate, - m: translate, - mm: translate, - h: translate, - hh: translate, - d: 'dan', - dd: translate, - M: 'mjesec', - MM: translate, - y: 'godinu', - yy: translate, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); + return newState; + }; - return hr; + Trigger.prototype.getPopupDomNode = function getPopupDomNode() { + // for test + if (this._component && this._component.getPopupDomNode) { + return this._component.getPopupDomNode(); + } + return null; + }; - }))); - - -/***/ }), -/* 463 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Hungarian [hu] - //! author : Adam Brunner : https://github.com/adambrunner + Trigger.prototype.getPopupAlign = function getPopupAlign() { + var props = this.props; + var popupPlacement = props.popupPlacement, + popupAlign = props.popupAlign, + builtinPlacements = props.builtinPlacements; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + if (popupPlacement && builtinPlacements) { + return (0, _utils.getAlignFromPlacement)(builtinPlacements, popupPlacement, popupAlign); + } + return popupAlign; + }; - //! moment.js locale configuration + /** + * @param popupVisible Show or not the popup element + * @param event SyntheticEvent, used for `pointAlign` + */ + Trigger.prototype.setPopupVisible = function setPopupVisible(popupVisible, event) { + var alignPoint = this.props.alignPoint; + var prevPopupVisible = this.state.popupVisible; - var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split( - ' ' - ); - function translate(number, withoutSuffix, key, isFuture) { - var num = number; - switch (key) { - case 's': - return isFuture || withoutSuffix - ? 'néhány másodperc' - : 'néhány másodperce'; - case 'ss': - return num + (isFuture || withoutSuffix) - ? ' másodperc' - : ' másodperce'; - case 'm': - return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce'); - case 'mm': - return num + (isFuture || withoutSuffix ? ' perc' : ' perce'); - case 'h': - return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája'); - case 'hh': - return num + (isFuture || withoutSuffix ? ' óra' : ' órája'); - case 'd': - return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja'); - case 'dd': - return num + (isFuture || withoutSuffix ? ' nap' : ' napja'); - case 'M': - return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja'); - case 'MM': - return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja'); - case 'y': - return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve'); - case 'yy': - return num + (isFuture || withoutSuffix ? ' év' : ' éve'); - } - return ''; + + this.clearDelayTimer(); + + if (prevPopupVisible !== popupVisible) { + if (!('popupVisible' in this.props)) { + this.setState({ popupVisible: popupVisible, prevPopupVisible: prevPopupVisible }); + } + this.props.onPopupVisibleChange(popupVisible); } - function week(isFuture) { - return ( - (isFuture ? '' : '[múlt] ') + - '[' + - weekEndings[this.day()] + - '] LT[-kor]' - ); + + // Always record the point position since mouseEnterDelay will delay the show + if (alignPoint && event) { + this.setPoint(event); } + }; - var hu = moment.defineLocale('hu', { - months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split( - '_' - ), - monthsShort: 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split( - '_' - ), - weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'), - weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'), - weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'), - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'YYYY.MM.DD.', - LL: 'YYYY. MMMM D.', - LLL: 'YYYY. MMMM D. H:mm', - LLLL: 'YYYY. MMMM D., dddd H:mm', - }, - meridiemParse: /de|du/i, - isPM: function (input) { - return input.charAt(1).toLowerCase() === 'u'; - }, - meridiem: function (hours, minutes, isLower) { - if (hours < 12) { - return isLower === true ? 'de' : 'DE'; - } else { - return isLower === true ? 'du' : 'DU'; - } - }, - calendar: { - sameDay: '[ma] LT[-kor]', - nextDay: '[holnap] LT[-kor]', - nextWeek: function () { - return week.call(this, true); - }, - lastDay: '[tegnap] LT[-kor]', - lastWeek: function () { - return week.call(this, false); - }, - sameElse: 'L', - }, - relativeTime: { - future: '%s múlva', - past: '%s', - s: translate, - ss: translate, - m: translate, - mm: translate, - h: translate, - hh: translate, - d: translate, - dd: translate, - M: translate, - MM: translate, - y: translate, - yy: translate, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + Trigger.prototype.delaySetPopupVisible = function delaySetPopupVisible(visible, delayS, event) { + var _this2 = this; - return hu; + var delay = delayS * 1000; + this.clearDelayTimer(); + if (delay) { + var point = event ? { pageX: event.pageX, pageY: event.pageY } : null; + this.delayTimer = setTimeout(function () { + _this2.setPopupVisible(visible, point); + _this2.clearDelayTimer(); + }, delay); + } else { + this.setPopupVisible(visible, event); + } + }; - }))); - - -/***/ }), -/* 464 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Armenian [hy-am] - //! author : Armendarabyan : https://github.com/armendarabyan + Trigger.prototype.clearDelayTimer = function clearDelayTimer() { + if (this.delayTimer) { + clearTimeout(this.delayTimer); + this.delayTimer = null; + } + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + Trigger.prototype.clearOutsideHandler = function clearOutsideHandler() { + if (this.clickOutsideHandler) { + this.clickOutsideHandler.remove(); + this.clickOutsideHandler = null; + } - //! moment.js locale configuration + if (this.contextMenuOutsideHandler1) { + this.contextMenuOutsideHandler1.remove(); + this.contextMenuOutsideHandler1 = null; + } - var hyAm = moment.defineLocale('hy-am', { - months: { - format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split( - '_' - ), - standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split( - '_' - ), - }, - monthsShort: 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'), - weekdays: 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split( - '_' - ), - weekdaysShort: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'), - weekdaysMin: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY թ.', - LLL: 'D MMMM YYYY թ., HH:mm', - LLLL: 'dddd, D MMMM YYYY թ., HH:mm', - }, - calendar: { - sameDay: '[այսօր] LT', - nextDay: '[վաղը] LT', - lastDay: '[երեկ] LT', - nextWeek: function () { - return 'dddd [օրը ժամը] LT'; - }, - lastWeek: function () { - return '[անցած] dddd [օրը ժամը] LT'; - }, - sameElse: 'L', - }, - relativeTime: { - future: '%s հետո', - past: '%s առաջ', - s: 'մի քանի վայրկյան', - ss: '%d վայրկյան', - m: 'րոպե', - mm: '%d րոպե', - h: 'ժամ', - hh: '%d ժամ', - d: 'օր', - dd: '%d օր', - M: 'ամիս', - MM: '%d ամիս', - y: 'տարի', - yy: '%d տարի', - }, - meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/, - isPM: function (input) { - return /^(ցերեկվա|երեկոյան)$/.test(input); - }, - meridiem: function (hour) { - if (hour < 4) { - return 'գիշերվա'; - } else if (hour < 12) { - return 'առավոտվա'; - } else if (hour < 17) { - return 'ցերեկվա'; - } else { - return 'երեկոյան'; - } - }, - dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/, - ordinal: function (number, period) { - switch (period) { - case 'DDD': - case 'w': - case 'W': - case 'DDDo': - if (number === 1) { - return number + '-ին'; - } - return number + '-րդ'; - default: - return number; - } - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); + if (this.contextMenuOutsideHandler2) { + this.contextMenuOutsideHandler2.remove(); + this.contextMenuOutsideHandler2 = null; + } - return hyAm; + if (this.touchOutsideHandler) { + this.touchOutsideHandler.remove(); + this.touchOutsideHandler = null; + } + }; - }))); - - -/***/ }), -/* 465 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Indonesian [id] - //! author : Mohammad Satrio Utomo : https://github.com/tyok - //! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan + Trigger.prototype.createTwoChains = function createTwoChains(event) { + var childPros = this.props.children.props; + var props = this.props; + if (childPros[event] && props[event]) { + return this['fire' + event]; + } + return childPros[event] || props[event]; + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + Trigger.prototype.isClickToShow = function isClickToShow() { + var _props = this.props, + action = _props.action, + showAction = _props.showAction; - //! moment.js locale configuration + return action.indexOf('click') !== -1 || showAction.indexOf('click') !== -1; + }; - var id = moment.defineLocale('id', { - months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'), - weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'), - weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'), - weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'), - longDateFormat: { - LT: 'HH.mm', - LTS: 'HH.mm.ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY [pukul] HH.mm', - LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm', - }, - meridiemParse: /pagi|siang|sore|malam/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'pagi') { - return hour; - } else if (meridiem === 'siang') { - return hour >= 11 ? hour : hour + 12; - } else if (meridiem === 'sore' || meridiem === 'malam') { - return hour + 12; - } - }, - meridiem: function (hours, minutes, isLower) { - if (hours < 11) { - return 'pagi'; - } else if (hours < 15) { - return 'siang'; - } else if (hours < 19) { - return 'sore'; - } else { - return 'malam'; - } - }, - calendar: { - sameDay: '[Hari ini pukul] LT', - nextDay: '[Besok pukul] LT', - nextWeek: 'dddd [pukul] LT', - lastDay: '[Kemarin pukul] LT', - lastWeek: 'dddd [lalu pukul] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'dalam %s', - past: '%s yang lalu', - s: 'beberapa detik', - ss: '%d detik', - m: 'semenit', - mm: '%d menit', - h: 'sejam', - hh: '%d jam', - d: 'sehari', - dd: '%d hari', - M: 'sebulan', - MM: '%d bulan', - y: 'setahun', - yy: '%d tahun', - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }, - }); + Trigger.prototype.isContextMenuToShow = function isContextMenuToShow() { + var _props2 = this.props, + action = _props2.action, + showAction = _props2.showAction; - return id; + return action.indexOf('contextMenu') !== -1 || showAction.indexOf('contextMenu') !== -1; + }; - }))); - - -/***/ }), -/* 466 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Icelandic [is] - //! author : Hinrik Örn Sigurðsson : https://github.com/hinrik + Trigger.prototype.isClickToHide = function isClickToHide() { + var _props3 = this.props, + action = _props3.action, + hideAction = _props3.hideAction; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + return action.indexOf('click') !== -1 || hideAction.indexOf('click') !== -1; + }; - //! moment.js locale configuration + Trigger.prototype.isMouseEnterToShow = function isMouseEnterToShow() { + var _props4 = this.props, + action = _props4.action, + showAction = _props4.showAction; - function plural(n) { - if (n % 100 === 11) { - return true; - } else if (n % 10 === 1) { - return false; - } - return true; + return action.indexOf('hover') !== -1 || showAction.indexOf('mouseEnter') !== -1; + }; + + Trigger.prototype.isMouseLeaveToHide = function isMouseLeaveToHide() { + var _props5 = this.props, + action = _props5.action, + hideAction = _props5.hideAction; + + return action.indexOf('hover') !== -1 || hideAction.indexOf('mouseLeave') !== -1; + }; + + Trigger.prototype.isFocusToShow = function isFocusToShow() { + var _props6 = this.props, + action = _props6.action, + showAction = _props6.showAction; + + return action.indexOf('focus') !== -1 || showAction.indexOf('focus') !== -1; + }; + + Trigger.prototype.isBlurToHide = function isBlurToHide() { + var _props7 = this.props, + action = _props7.action, + hideAction = _props7.hideAction; + + return action.indexOf('focus') !== -1 || hideAction.indexOf('blur') !== -1; + }; + + Trigger.prototype.forcePopupAlign = function forcePopupAlign() { + if (this.state.popupVisible && this._component && this._component.alignInstance) { + this._component.alignInstance.forceAlign(); } - function translate(number, withoutSuffix, key, isFuture) { - var result = number + ' '; - switch (key) { - case 's': - return withoutSuffix || isFuture - ? 'nokkrar sekúndur' - : 'nokkrum sekúndum'; - case 'ss': - if (plural(number)) { - return ( - result + - (withoutSuffix || isFuture ? 'sekúndur' : 'sekúndum') - ); - } - return result + 'sekúnda'; - case 'm': - return withoutSuffix ? 'mínúta' : 'mínútu'; - case 'mm': - if (plural(number)) { - return ( - result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum') - ); - } else if (withoutSuffix) { - return result + 'mínúta'; - } - return result + 'mínútu'; - case 'hh': - if (plural(number)) { - return ( - result + - (withoutSuffix || isFuture - ? 'klukkustundir' - : 'klukkustundum') - ); - } - return result + 'klukkustund'; - case 'd': - if (withoutSuffix) { - return 'dagur'; - } - return isFuture ? 'dag' : 'degi'; - case 'dd': - if (plural(number)) { - if (withoutSuffix) { - return result + 'dagar'; - } - return result + (isFuture ? 'daga' : 'dögum'); - } else if (withoutSuffix) { - return result + 'dagur'; - } - return result + (isFuture ? 'dag' : 'degi'); - case 'M': - if (withoutSuffix) { - return 'mánuður'; - } - return isFuture ? 'mánuð' : 'mánuði'; - case 'MM': - if (plural(number)) { - if (withoutSuffix) { - return result + 'mánuðir'; - } - return result + (isFuture ? 'mánuði' : 'mánuðum'); - } else if (withoutSuffix) { - return result + 'mánuður'; - } - return result + (isFuture ? 'mánuð' : 'mánuði'); - case 'y': - return withoutSuffix || isFuture ? 'ár' : 'ári'; - case 'yy': - if (plural(number)) { - return result + (withoutSuffix || isFuture ? 'ár' : 'árum'); - } - return result + (withoutSuffix || isFuture ? 'ár' : 'ári'); - } + }; + + Trigger.prototype.fireEvents = function fireEvents(type, e) { + var childCallback = this.props.children.props[type]; + if (childCallback) { + childCallback(e); + } + var callback = this.props[type]; + if (callback) { + callback(e); } + }; - var is = moment.defineLocale('is', { - months: 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split( - '_' - ), - monthsShort: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'), - weekdays: 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split( - '_' - ), - weekdaysShort: 'sun_mán_þri_mið_fim_fös_lau'.split('_'), - weekdaysMin: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'), - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY [kl.] H:mm', - LLLL: 'dddd, D. MMMM YYYY [kl.] H:mm', - }, - calendar: { - sameDay: '[í dag kl.] LT', - nextDay: '[á morgun kl.] LT', - nextWeek: 'dddd [kl.] LT', - lastDay: '[í gær kl.] LT', - lastWeek: '[síðasta] dddd [kl.] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'eftir %s', - past: 'fyrir %s síðan', - s: translate, - ss: translate, - m: translate, - mm: translate, - h: 'klukkustund', - hh: translate, - d: translate, - dd: translate, - M: translate, - MM: translate, - y: translate, - yy: translate, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + Trigger.prototype.close = function close() { + this.setPopupVisible(false); + }; - return is; + Trigger.prototype.render = function render() { + var _this3 = this; + + var popupVisible = this.state.popupVisible; + var _props8 = this.props, + children = _props8.children, + forceRender = _props8.forceRender, + alignPoint = _props8.alignPoint, + className = _props8.className; + + var child = _react2['default'].Children.only(children); + var newChildProps = { key: 'trigger' }; + + if (this.isContextMenuToShow()) { + newChildProps.onContextMenu = this.onContextMenu; + } else { + newChildProps.onContextMenu = this.createTwoChains('onContextMenu'); + } + + if (this.isClickToHide() || this.isClickToShow()) { + newChildProps.onClick = this.onClick; + newChildProps.onMouseDown = this.onMouseDown; + newChildProps.onTouchStart = this.onTouchStart; + } else { + newChildProps.onClick = this.createTwoChains('onClick'); + newChildProps.onMouseDown = this.createTwoChains('onMouseDown'); + newChildProps.onTouchStart = this.createTwoChains('onTouchStart'); + } + if (this.isMouseEnterToShow()) { + newChildProps.onMouseEnter = this.onMouseEnter; + if (alignPoint) { + newChildProps.onMouseMove = this.onMouseMove; + } + } else { + newChildProps.onMouseEnter = this.createTwoChains('onMouseEnter'); + } + if (this.isMouseLeaveToHide()) { + newChildProps.onMouseLeave = this.onMouseLeave; + } else { + newChildProps.onMouseLeave = this.createTwoChains('onMouseLeave'); + } + if (this.isFocusToShow() || this.isBlurToHide()) { + newChildProps.onFocus = this.onFocus; + newChildProps.onBlur = this.onBlur; + } else { + newChildProps.onFocus = this.createTwoChains('onFocus'); + newChildProps.onBlur = this.createTwoChains('onBlur'); + } - }))); - - -/***/ }), -/* 467 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Italian [it] - //! author : Lorenzo : https://github.com/aliem - //! author: Mattia Larentis: https://github.com/nostalgiaz - //! author: Marco : https://github.com/Manfre98 + var childrenClassName = (0, _classnames2['default'])(child && child.props && child.props.className, className); + if (childrenClassName) { + newChildProps.className = childrenClassName; + } + var trigger = _react2['default'].cloneElement(child, newChildProps); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + if (!IS_REACT_16) { + return _react2['default'].createElement( + _ContainerRender2['default'], + { + parent: this, + visible: popupVisible, + autoMount: false, + forceRender: forceRender, + getComponent: this.getComponent, + getContainer: this.getContainer + }, + function (_ref2) { + var renderComponent = _ref2.renderComponent; - //! moment.js locale configuration + _this3.renderComponent = renderComponent; + return trigger; + } + ); + } - var it = moment.defineLocale('it', { - months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split( - '_' - ), - monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'), - weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split( - '_' - ), - weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'), - weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: function () { - return ( - '[Oggi a' + - (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + - ']LT' - ); - }, - nextDay: function () { - return ( - '[Domani a' + - (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + - ']LT' - ); - }, - nextWeek: function () { - return ( - 'dddd [a' + - (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + - ']LT' - ); - }, - lastDay: function () { - return ( - '[Ieri a' + - (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + - ']LT' - ); - }, - lastWeek: function () { - switch (this.day()) { - case 0: - return ( - '[La scorsa] dddd [a' + - (this.hours() > 1 - ? 'lle ' - : this.hours() === 0 - ? ' ' - : "ll'") + - ']LT' - ); - default: - return ( - '[Lo scorso] dddd [a' + - (this.hours() > 1 - ? 'lle ' - : this.hours() === 0 - ? ' ' - : "ll'") + - ']LT' - ); - } - }, - sameElse: 'L', - }, - relativeTime: { - future: 'tra %s', - past: '%s fa', - s: 'alcuni secondi', - ss: '%d secondi', - m: 'un minuto', - mm: '%d minuti', - h: "un'ora", - hh: '%d ore', - d: 'un giorno', - dd: '%d giorni', - M: 'un mese', - MM: '%d mesi', - y: 'un anno', - yy: '%d anni', - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var portal = void 0; + // prevent unmounting after it's rendered + if (popupVisible || this._component || forceRender) { + portal = _react2['default'].createElement( + _Portal2['default'], + { key: 'portal', getContainer: this.getContainer, didUpdate: this.handlePortalUpdate }, + this.getComponent() + ); + } - return it; + return [trigger, portal]; + }; - }))); - - -/***/ }), -/* 468 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Italian (Switzerland) [it-ch] - //! author : xfh : https://github.com/xfh + return Trigger; + }(_react2['default'].Component); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + Trigger.propTypes = { + children: _propTypes2['default'].any, + action: _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].arrayOf(_propTypes2['default'].string)]), + showAction: _propTypes2['default'].any, + hideAction: _propTypes2['default'].any, + getPopupClassNameFromAlign: _propTypes2['default'].any, + onPopupVisibleChange: _propTypes2['default'].func, + afterPopupVisibleChange: _propTypes2['default'].func, + popup: _propTypes2['default'].oneOfType([_propTypes2['default'].node, _propTypes2['default'].func]).isRequired, + popupStyle: _propTypes2['default'].object, + prefixCls: _propTypes2['default'].string, + popupClassName: _propTypes2['default'].string, + className: _propTypes2['default'].string, + popupPlacement: _propTypes2['default'].string, + builtinPlacements: _propTypes2['default'].object, + popupTransitionName: _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].object]), + popupAnimation: _propTypes2['default'].any, + mouseEnterDelay: _propTypes2['default'].number, + mouseLeaveDelay: _propTypes2['default'].number, + zIndex: _propTypes2['default'].number, + focusDelay: _propTypes2['default'].number, + blurDelay: _propTypes2['default'].number, + getPopupContainer: _propTypes2['default'].func, + getDocument: _propTypes2['default'].func, + forceRender: _propTypes2['default'].bool, + destroyPopupOnHide: _propTypes2['default'].bool, + mask: _propTypes2['default'].bool, + maskClosable: _propTypes2['default'].bool, + onPopupAlign: _propTypes2['default'].func, + popupAlign: _propTypes2['default'].object, + popupVisible: _propTypes2['default'].bool, + defaultPopupVisible: _propTypes2['default'].bool, + maskTransitionName: _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].object]), + maskAnimation: _propTypes2['default'].string, + stretch: _propTypes2['default'].string, + alignPoint: _propTypes2['default'].bool // Maybe we can support user pass position in the future + }; + Trigger.contextTypes = contextTypes; + Trigger.childContextTypes = contextTypes; + Trigger.defaultProps = { + prefixCls: 'rc-trigger-popup', + getPopupClassNameFromAlign: returnEmptyString, + getDocument: returnDocument, + onPopupVisibleChange: noop, + afterPopupVisibleChange: noop, + onPopupAlign: noop, + popupClassName: '', + mouseEnterDelay: 0, + mouseLeaveDelay: 0.1, + focusDelay: 0, + blurDelay: 0.15, + popupStyle: {}, + destroyPopupOnHide: false, + popupAlign: {}, + defaultPopupVisible: false, + mask: false, + maskClosable: true, + action: [], + showAction: [], + hideAction: [] + }; - //! moment.js locale configuration + var _initialiseProps = function _initialiseProps() { + var _this4 = this; - var itCh = moment.defineLocale('it-ch', { - months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split( - '_' - ), - monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'), - weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split( - '_' - ), - weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'), - weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Oggi alle] LT', - nextDay: '[Domani alle] LT', - nextWeek: 'dddd [alle] LT', - lastDay: '[Ieri alle] LT', - lastWeek: function () { - switch (this.day()) { - case 0: - return '[la scorsa] dddd [alle] LT'; - default: - return '[lo scorso] dddd [alle] LT'; - } - }, - sameElse: 'L', - }, - relativeTime: { - future: function (s) { - return (/^[0-9].+$/.test(s) ? 'tra' : 'in') + ' ' + s; - }, - past: '%s fa', - s: 'alcuni secondi', - ss: '%d secondi', - m: 'un minuto', - mm: '%d minuti', - h: "un'ora", - hh: '%d ore', - d: 'un giorno', - dd: '%d giorni', - M: 'un mese', - MM: '%d mesi', - y: 'un anno', - yy: '%d anni', - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + this.onMouseEnter = function (e) { + var mouseEnterDelay = _this4.props.mouseEnterDelay; - return itCh; + _this4.fireEvents('onMouseEnter', e); + _this4.delaySetPopupVisible(true, mouseEnterDelay, mouseEnterDelay ? null : e); + }; - }))); - - -/***/ }), -/* 469 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Japanese [ja] - //! author : LI Long : https://github.com/baryon + this.onMouseMove = function (e) { + _this4.fireEvents('onMouseMove', e); + _this4.setPoint(e); + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + this.onMouseLeave = function (e) { + _this4.fireEvents('onMouseLeave', e); + _this4.delaySetPopupVisible(false, _this4.props.mouseLeaveDelay); + }; - //! moment.js locale configuration + this.onPopupMouseEnter = function () { + _this4.clearDelayTimer(); + }; - var ja = moment.defineLocale('ja', { - eras: [ - { - since: '2019-05-01', - offset: 1, - name: '令和', - narrow: '㋿', - abbr: 'R', - }, - { - since: '1989-01-08', - until: '2019-04-30', - offset: 1, - name: '平成', - narrow: '㍻', - abbr: 'H', - }, - { - since: '1926-12-25', - until: '1989-01-07', - offset: 1, - name: '昭和', - narrow: '㍼', - abbr: 'S', - }, - { - since: '1912-07-30', - until: '1926-12-24', - offset: 1, - name: '大正', - narrow: '㍽', - abbr: 'T', - }, - { - since: '1873-01-01', - until: '1912-07-29', - offset: 6, - name: '明治', - narrow: '㍾', - abbr: 'M', - }, - { - since: '0001-01-01', - until: '1873-12-31', - offset: 1, - name: '西暦', - narrow: 'AD', - abbr: 'AD', - }, - { - since: '0000-12-31', - until: -Infinity, - offset: 1, - name: '紀元前', - narrow: 'BC', - abbr: 'BC', - }, - ], - eraYearOrdinalRegex: /(元|\d+)年/, - eraYearOrdinalParse: function (input, match) { - return match[1] === '元' ? 1 : parseInt(match[1] || input, 10); - }, - months: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), - monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split( - '_' - ), - weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'), - weekdaysShort: '日_月_火_水_木_金_土'.split('_'), - weekdaysMin: '日_月_火_水_木_金_土'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY/MM/DD', - LL: 'YYYY年M月D日', - LLL: 'YYYY年M月D日 HH:mm', - LLLL: 'YYYY年M月D日 dddd HH:mm', - l: 'YYYY/MM/DD', - ll: 'YYYY年M月D日', - lll: 'YYYY年M月D日 HH:mm', - llll: 'YYYY年M月D日(ddd) HH:mm', - }, - meridiemParse: /午前|午後/i, - isPM: function (input) { - return input === '午後'; - }, - meridiem: function (hour, minute, isLower) { - if (hour < 12) { - return '午前'; - } else { - return '午後'; - } - }, - calendar: { - sameDay: '[今日] LT', - nextDay: '[明日] LT', - nextWeek: function (now) { - if (now.week() !== this.week()) { - return '[来週]dddd LT'; - } else { - return 'dddd LT'; - } - }, - lastDay: '[昨日] LT', - lastWeek: function (now) { - if (this.week() !== now.week()) { - return '[先週]dddd LT'; - } else { - return 'dddd LT'; - } - }, - sameElse: 'L', - }, - dayOfMonthOrdinalParse: /\d{1,2}日/, - ordinal: function (number, period) { - switch (period) { - case 'y': - return number === 1 ? '元年' : number + '年'; - case 'd': - case 'D': - case 'DDD': - return number + '日'; - default: - return number; - } - }, - relativeTime: { - future: '%s後', - past: '%s前', - s: '数秒', - ss: '%d秒', - m: '1分', - mm: '%d分', - h: '1時間', - hh: '%d時間', - d: '1日', - dd: '%d日', - M: '1ヶ月', - MM: '%dヶ月', - y: '1年', - yy: '%d年', - }, - }); + this.onPopupMouseLeave = function (e) { + // https://github.com/react-component/trigger/pull/13 + // react bug? + if (e.relatedTarget && !e.relatedTarget.setTimeout && _this4._component && _this4._component.getPopupDomNode && (0, _contains2['default'])(_this4._component.getPopupDomNode(), e.relatedTarget)) { + return; + } + _this4.delaySetPopupVisible(false, _this4.props.mouseLeaveDelay); + }; - return ja; + this.onFocus = function (e) { + _this4.fireEvents('onFocus', e); + // incase focusin and focusout + _this4.clearDelayTimer(); + if (_this4.isFocusToShow()) { + _this4.focusTime = Date.now(); + _this4.delaySetPopupVisible(true, _this4.props.focusDelay); + } + }; - }))); - - -/***/ }), -/* 470 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Javanese [jv] - //! author : Rony Lantip : https://github.com/lantip - //! reference: http://jv.wikipedia.org/wiki/Basa_Jawa + this.onMouseDown = function (e) { + _this4.fireEvents('onMouseDown', e); + _this4.preClickTime = Date.now(); + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + this.onTouchStart = function (e) { + _this4.fireEvents('onTouchStart', e); + _this4.preTouchTime = Date.now(); + }; - //! moment.js locale configuration + this.onBlur = function (e) { + _this4.fireEvents('onBlur', e); + _this4.clearDelayTimer(); + if (_this4.isBlurToHide()) { + _this4.delaySetPopupVisible(false, _this4.props.blurDelay); + } + }; - var jv = moment.defineLocale('jv', { - months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'), - weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'), - weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'), - weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'), - longDateFormat: { - LT: 'HH.mm', - LTS: 'HH.mm.ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY [pukul] HH.mm', - LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm', - }, - meridiemParse: /enjing|siyang|sonten|ndalu/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'enjing') { - return hour; - } else if (meridiem === 'siyang') { - return hour >= 11 ? hour : hour + 12; - } else if (meridiem === 'sonten' || meridiem === 'ndalu') { - return hour + 12; - } - }, - meridiem: function (hours, minutes, isLower) { - if (hours < 11) { - return 'enjing'; - } else if (hours < 15) { - return 'siyang'; - } else if (hours < 19) { - return 'sonten'; - } else { - return 'ndalu'; - } - }, - calendar: { - sameDay: '[Dinten puniko pukul] LT', - nextDay: '[Mbenjang pukul] LT', - nextWeek: 'dddd [pukul] LT', - lastDay: '[Kala wingi pukul] LT', - lastWeek: 'dddd [kepengker pukul] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'wonten ing %s', - past: '%s ingkang kepengker', - s: 'sawetawis detik', - ss: '%d detik', - m: 'setunggal menit', - mm: '%d menit', - h: 'setunggal jam', - hh: '%d jam', - d: 'sedinten', - dd: '%d dinten', - M: 'sewulan', - MM: '%d wulan', - y: 'setaun', - yy: '%d taun', - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); + this.onContextMenu = function (e) { + e.preventDefault(); + _this4.fireEvents('onContextMenu', e); + _this4.setPopupVisible(true, e); + }; - return jv; + this.onContextMenuClose = function () { + if (_this4.isContextMenuToShow()) { + _this4.close(); + } + }; - }))); - - -/***/ }), -/* 471 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Georgian [ka] - //! author : Irakli Janiashvili : https://github.com/IrakliJani + this.onClick = function (event) { + _this4.fireEvents('onClick', event); + // focus will trigger click + if (_this4.focusTime) { + var preTime = void 0; + if (_this4.preClickTime && _this4.preTouchTime) { + preTime = Math.min(_this4.preClickTime, _this4.preTouchTime); + } else if (_this4.preClickTime) { + preTime = _this4.preClickTime; + } else if (_this4.preTouchTime) { + preTime = _this4.preTouchTime; + } + if (Math.abs(preTime - _this4.focusTime) < 20) { + return; + } + _this4.focusTime = 0; + } + _this4.preClickTime = 0; + _this4.preTouchTime = 0; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + // Only prevent default when all the action is click. + // https://github.com/ant-design/ant-design/issues/17043 + // https://github.com/ant-design/ant-design/issues/17291 + if (_this4.isClickToShow() && (_this4.isClickToHide() || _this4.isBlurToHide()) && event && event.preventDefault) { + event.preventDefault(); + } + var nextVisible = !_this4.state.popupVisible; + if (_this4.isClickToHide() && !nextVisible || nextVisible && _this4.isClickToShow()) { + _this4.setPopupVisible(!_this4.state.popupVisible, event); + } + }; - //! moment.js locale configuration + this.onPopupMouseDown = function () { + var _context$rcTrigger = _this4.context.rcTrigger, + rcTrigger = _context$rcTrigger === undefined ? {} : _context$rcTrigger; - var ka = moment.defineLocale('ka', { - months: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split( - '_' - ), - monthsShort: 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'), - weekdays: { - standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split( - '_' - ), - format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split( - '_' - ), - isFormat: /(წინა|შემდეგ)/, - }, - weekdaysShort: 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'), - weekdaysMin: 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[დღეს] LT[-ზე]', - nextDay: '[ხვალ] LT[-ზე]', - lastDay: '[გუშინ] LT[-ზე]', - nextWeek: '[შემდეგ] dddd LT[-ზე]', - lastWeek: '[წინა] dddd LT-ზე', - sameElse: 'L', - }, - relativeTime: { - future: function (s) { - return s.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/, function ( - $0, - $1, - $2 - ) { - return $2 === 'ი' ? $1 + 'ში' : $1 + $2 + 'ში'; - }); - }, - past: function (s) { - if (/(წამი|წუთი|საათი|დღე|თვე)/.test(s)) { - return s.replace(/(ი|ე)$/, 'ის წინ'); - } - if (/წელი/.test(s)) { - return s.replace(/წელი$/, 'წლის წინ'); - } - return s; - }, - s: 'რამდენიმე წამი', - ss: '%d წამი', - m: 'წუთი', - mm: '%d წუთი', - h: 'საათი', - hh: '%d საათი', - d: 'დღე', - dd: '%d დღე', - M: 'თვე', - MM: '%d თვე', - y: 'წელი', - yy: '%d წელი', - }, - dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/, - ordinal: function (number) { - if (number === 0) { - return number; - } - if (number === 1) { - return number + '-ლი'; - } - if ( - number < 20 || - (number <= 100 && number % 20 === 0) || - number % 100 === 0 - ) { - return 'მე-' + number; - } - return number + '-ე'; - }, - week: { - dow: 1, - doy: 7, - }, - }); + _this4.hasPopupMouseDown = true; - return ka; + clearTimeout(_this4.mouseDownTimeout); + _this4.mouseDownTimeout = setTimeout(function () { + _this4.hasPopupMouseDown = false; + }, 0); - }))); - - -/***/ }), -/* 472 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Kazakh [kk] - //! authors : Nurlan Rakhimzhanov : https://github.com/nurlan + if (rcTrigger.onPopupMouseDown) { + rcTrigger.onPopupMouseDown.apply(rcTrigger, arguments); + } + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + this.onDocumentClick = function (event) { + if (_this4.props.mask && !_this4.props.maskClosable) { + return; + } - //! moment.js locale configuration + var target = event.target; + var root = (0, _reactDom.findDOMNode)(_this4); + if (!(0, _contains2['default'])(root, target) && !_this4.hasPopupMouseDown) { + _this4.close(); + } + }; - var suffixes = { - 0: '-ші', - 1: '-ші', - 2: '-ші', - 3: '-ші', - 4: '-ші', - 5: '-ші', - 6: '-шы', - 7: '-ші', - 8: '-ші', - 9: '-шы', - 10: '-шы', - 20: '-шы', - 30: '-шы', - 40: '-шы', - 50: '-ші', - 60: '-шы', - 70: '-ші', - 80: '-ші', - 90: '-шы', - 100: '-ші', - }; + this.getRootDomNode = function () { + return (0, _reactDom.findDOMNode)(_this4); + }; - var kk = moment.defineLocale('kk', { - months: 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split( - '_' - ), - monthsShort: 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'), - weekdays: 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split( - '_' - ), - weekdaysShort: 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'), - weekdaysMin: 'жк_дй_сй_ср_бй_жм_сн'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Бүгін сағат] LT', - nextDay: '[Ертең сағат] LT', - nextWeek: 'dddd [сағат] LT', - lastDay: '[Кеше сағат] LT', - lastWeek: '[Өткен аптаның] dddd [сағат] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s ішінде', - past: '%s бұрын', - s: 'бірнеше секунд', - ss: '%d секунд', - m: 'бір минут', - mm: '%d минут', - h: 'бір сағат', - hh: '%d сағат', - d: 'бір күн', - dd: '%d күн', - M: 'бір ай', - MM: '%d ай', - y: 'бір жыл', - yy: '%d жыл', - }, - dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/, - ordinal: function (number) { - var a = number % 10, - b = number >= 100 ? 100 : null; - return number + (suffixes[number] || suffixes[a] || suffixes[b]); - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); + this.getPopupClassNameFromAlign = function (align) { + var className = []; + var _props9 = _this4.props, + popupPlacement = _props9.popupPlacement, + builtinPlacements = _props9.builtinPlacements, + prefixCls = _props9.prefixCls, + alignPoint = _props9.alignPoint, + getPopupClassNameFromAlign = _props9.getPopupClassNameFromAlign; - return kk; + if (popupPlacement && builtinPlacements) { + className.push((0, _utils.getAlignPopupClassName)(builtinPlacements, prefixCls, align, alignPoint)); + } + if (getPopupClassNameFromAlign) { + className.push(getPopupClassNameFromAlign(align)); + } + return className.join(' '); + }; - }))); - - -/***/ }), -/* 473 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Cambodian [km] - //! author : Kruy Vanna : https://github.com/kruyvanna + this.getComponent = function () { + var _props10 = _this4.props, + prefixCls = _props10.prefixCls, + destroyPopupOnHide = _props10.destroyPopupOnHide, + popupClassName = _props10.popupClassName, + action = _props10.action, + onPopupAlign = _props10.onPopupAlign, + popupAnimation = _props10.popupAnimation, + popupTransitionName = _props10.popupTransitionName, + popupStyle = _props10.popupStyle, + mask = _props10.mask, + maskAnimation = _props10.maskAnimation, + maskTransitionName = _props10.maskTransitionName, + zIndex = _props10.zIndex, + popup = _props10.popup, + stretch = _props10.stretch, + alignPoint = _props10.alignPoint; + var _state = _this4.state, + popupVisible = _state.popupVisible, + point = _state.point; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration + var align = _this4.getPopupAlign(); - var symbolMap = { - '1': '១', - '2': '២', - '3': '៣', - '4': '៤', - '5': '៥', - '6': '៦', - '7': '៧', - '8': '៨', - '9': '៩', - '0': '០', - }, - numberMap = { - '១': '1', - '២': '2', - '៣': '3', - '៤': '4', - '៥': '5', - '៦': '6', - '៧': '7', - '៨': '8', - '៩': '9', - '០': '0', - }; + var mouseProps = {}; + if (_this4.isMouseEnterToShow()) { + mouseProps.onMouseEnter = _this4.onPopupMouseEnter; + } + if (_this4.isMouseLeaveToHide()) { + mouseProps.onMouseLeave = _this4.onPopupMouseLeave; + } - var km = moment.defineLocale('km', { - months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split( - '_' - ), - monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split( - '_' - ), - weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'), - weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'), - weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - meridiemParse: /ព្រឹក|ល្ងាច/, - isPM: function (input) { - return input === 'ល្ងាច'; - }, - meridiem: function (hour, minute, isLower) { - if (hour < 12) { - return 'ព្រឹក'; - } else { - return 'ល្ងាច'; - } - }, - calendar: { - sameDay: '[ថ្ងៃនេះ ម៉ោង] LT', - nextDay: '[ស្អែក ម៉ោង] LT', - nextWeek: 'dddd [ម៉ោង] LT', - lastDay: '[ម្សិលមិញ ម៉ោង] LT', - lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%sទៀត', - past: '%sមុន', - s: 'ប៉ុន្មានវិនាទី', - ss: '%d វិនាទី', - m: 'មួយនាទី', - mm: '%d នាទី', - h: 'មួយម៉ោង', - hh: '%d ម៉ោង', - d: 'មួយថ្ងៃ', - dd: '%d ថ្ងៃ', - M: 'មួយខែ', - MM: '%d ខែ', - y: 'មួយឆ្នាំ', - yy: '%d ឆ្នាំ', - }, - dayOfMonthOrdinalParse: /ទី\d{1,2}/, - ordinal: 'ទី%d', - preparse: function (string) { - return string.replace(/[១២៣៤៥៦៧៨៩០]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + mouseProps.onMouseDown = _this4.onPopupMouseDown; + mouseProps.onTouchStart = _this4.onPopupMouseDown; - return km; + return _react2['default'].createElement( + _Popup2['default'], + (0, _extends3['default'])({ + prefixCls: prefixCls, + destroyPopupOnHide: destroyPopupOnHide, + visible: popupVisible, + point: alignPoint && point, + className: popupClassName, + action: action, + align: align, + onAlign: onPopupAlign, + animation: popupAnimation, + getClassNameFromAlign: _this4.getPopupClassNameFromAlign + }, mouseProps, { + stretch: stretch, + getRootDomNode: _this4.getRootDomNode, + style: popupStyle, + mask: mask, + zIndex: zIndex, + transitionName: popupTransitionName, + maskAnimation: maskAnimation, + maskTransitionName: maskTransitionName, + ref: _this4.savePopup + }), + typeof popup === 'function' ? popup() : popup + ); + }; - }))); - - -/***/ }), -/* 474 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Kannada [kn] - //! author : Rajeev Naik : https://github.com/rajeevnaikte + this.getContainer = function () { + var props = _this4.props; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var popupContainer = document.createElement('div'); + // Make sure default popup container will never cause scrollbar appearing + // https://github.com/react-component/trigger/issues/41 + popupContainer.style.position = 'absolute'; + popupContainer.style.top = '0'; + popupContainer.style.left = '0'; + popupContainer.style.width = '100%'; + var mountNode = props.getPopupContainer ? props.getPopupContainer((0, _reactDom.findDOMNode)(_this4)) : props.getDocument().body; + mountNode.appendChild(popupContainer); + return popupContainer; + }; - //! moment.js locale configuration + this.setPoint = function (point) { + var alignPoint = _this4.props.alignPoint; - var symbolMap = { - '1': '೧', - '2': '೨', - '3': '೩', - '4': '೪', - '5': '೫', - '6': '೬', - '7': '೭', - '8': '೮', - '9': '೯', - '0': '೦', - }, - numberMap = { - '೧': '1', - '೨': '2', - '೩': '3', - '೪': '4', - '೫': '5', - '೬': '6', - '೭': '7', - '೮': '8', - '೯': '9', - '೦': '0', - }; + if (!alignPoint || !point) return; - var kn = moment.defineLocale('kn', { - months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split( - '_' - ), - monthsShort: 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split( - '_' - ), - weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'), - weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'), - longDateFormat: { - LT: 'A h:mm', - LTS: 'A h:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm', - LLLL: 'dddd, D MMMM YYYY, A h:mm', - }, - calendar: { - sameDay: '[ಇಂದು] LT', - nextDay: '[ನಾಳೆ] LT', - nextWeek: 'dddd, LT', - lastDay: '[ನಿನ್ನೆ] LT', - lastWeek: '[ಕೊನೆಯ] dddd, LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s ನಂತರ', - past: '%s ಹಿಂದೆ', - s: 'ಕೆಲವು ಕ್ಷಣಗಳು', - ss: '%d ಸೆಕೆಂಡುಗಳು', - m: 'ಒಂದು ನಿಮಿಷ', - mm: '%d ನಿಮಿಷ', - h: 'ಒಂದು ಗಂಟೆ', - hh: '%d ಗಂಟೆ', - d: 'ಒಂದು ದಿನ', - dd: '%d ದಿನ', - M: 'ಒಂದು ತಿಂಗಳು', - MM: '%d ತಿಂಗಳು', - y: 'ಒಂದು ವರ್ಷ', - yy: '%d ವರ್ಷ', - }, - preparse: function (string) { - return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'ರಾತ್ರಿ') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') { - return hour; - } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') { - return hour >= 10 ? hour : hour + 12; - } else if (meridiem === 'ಸಂಜೆ') { - return hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'ರಾತ್ರಿ'; - } else if (hour < 10) { - return 'ಬೆಳಿಗ್ಗೆ'; - } else if (hour < 17) { - return 'ಮಧ್ಯಾಹ್ನ'; - } else if (hour < 20) { - return 'ಸಂಜೆ'; - } else { - return 'ರಾತ್ರಿ'; - } - }, - dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/, - ordinal: function (number) { - return number + 'ನೇ'; - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }, + _this4.setState({ + point: { + pageX: point.pageX, + pageY: point.pageY + } }); + }; - return kn; + this.handlePortalUpdate = function () { + if (_this4.state.prevPopupVisible !== _this4.state.popupVisible) { + _this4.props.afterPopupVisibleChange(_this4.state.popupVisible); + } + }; - }))); - + this.savePopup = function (node) { + _this4._component = node; + }; + }; + + (0, _reactLifecyclesCompat.polyfill)(Trigger); + + exports['default'] = Trigger; + module.exports = exports['default']; /***/ }), -/* 475 */ -/***/ (function(module, exports, __webpack_require__) { +/* 337 */ +/***/ (function(module, exports) { - //! moment.js locale configuration - //! locale : Korean [ko] - //! author : Kyungwook, Park : https://github.com/kyungw00k - //! author : Jeeeyul Lee - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var ko = moment.defineLocale('ko', { - months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'), - monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split( - '_' - ), - weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'), - weekdaysShort: '일_월_화_수_목_금_토'.split('_'), - weekdaysMin: '일_월_화_수_목_금_토'.split('_'), - longDateFormat: { - LT: 'A h:mm', - LTS: 'A h:mm:ss', - L: 'YYYY.MM.DD.', - LL: 'YYYY년 MMMM D일', - LLL: 'YYYY년 MMMM D일 A h:mm', - LLLL: 'YYYY년 MMMM D일 dddd A h:mm', - l: 'YYYY.MM.DD.', - ll: 'YYYY년 MMMM D일', - lll: 'YYYY년 MMMM D일 A h:mm', - llll: 'YYYY년 MMMM D일 dddd A h:mm', - }, - calendar: { - sameDay: '오늘 LT', - nextDay: '내일 LT', - nextWeek: 'dddd LT', - lastDay: '어제 LT', - lastWeek: '지난주 dddd LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s 후', - past: '%s 전', - s: '몇 초', - ss: '%d초', - m: '1분', - mm: '%d분', - h: '한 시간', - hh: '%d시간', - d: '하루', - dd: '%d일', - M: '한 달', - MM: '%d달', - y: '일 년', - yy: '%d년', - }, - dayOfMonthOrdinalParse: /\d{1,2}(일|월|주)/, - ordinal: function (number, period) { - switch (period) { - case 'd': - case 'D': - case 'DDD': - return number + '일'; - case 'M': - return number + '월'; - case 'w': - case 'W': - return number + '주'; - default: - return number; - } - }, - meridiemParse: /오전|오후/, - isPM: function (token) { - return token === '오후'; - }, - meridiem: function (hour, minute, isUpper) { - return hour < 12 ? '오전' : '오후'; - }, - }); + "use strict"; - return ko; + exports.__esModule = true; - }))); - + exports.default = function (instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } + }; /***/ }), -/* 476 */ +/* 338 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Kurdish [ku] - //! author : Shahram Mebashar : https://github.com/ShahramMebashar + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + exports.__esModule = true; - //! moment.js locale configuration + var _typeof2 = __webpack_require__(339); - var symbolMap = { - '1': '١', - '2': '٢', - '3': '٣', - '4': '٤', - '5': '٥', - '6': '٦', - '7': '٧', - '8': '٨', - '9': '٩', - '0': '٠', - }, - numberMap = { - '١': '1', - '٢': '2', - '٣': '3', - '٤': '4', - '٥': '5', - '٦': '6', - '٧': '7', - '٨': '8', - '٩': '9', - '٠': '0', - }, - months = [ - 'کانونی دووەم', - 'شوبات', - 'ئازار', - 'نیسان', - 'ئایار', - 'حوزەیران', - 'تەمموز', - 'ئاب', - 'ئەیلوول', - 'تشرینی یەكەم', - 'تشرینی دووەم', - 'كانونی یەکەم', - ]; + var _typeof3 = _interopRequireDefault(_typeof2); - var ku = moment.defineLocale('ku', { - months: months, - monthsShort: months, - weekdays: 'یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌'.split( - '_' - ), - weekdaysShort: 'یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌'.split( - '_' - ), - weekdaysMin: 'ی_د_س_چ_پ_ه_ش'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - meridiemParse: /ئێواره‌|به‌یانی/, - isPM: function (input) { - return /ئێواره‌/.test(input); - }, - meridiem: function (hour, minute, isLower) { - if (hour < 12) { - return 'به‌یانی'; - } else { - return 'ئێواره‌'; - } - }, - calendar: { - sameDay: '[ئه‌مرۆ كاتژمێر] LT', - nextDay: '[به‌یانی كاتژمێر] LT', - nextWeek: 'dddd [كاتژمێر] LT', - lastDay: '[دوێنێ كاتژمێر] LT', - lastWeek: 'dddd [كاتژمێر] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'له‌ %s', - past: '%s', - s: 'چه‌ند چركه‌یه‌ك', - ss: 'چركه‌ %d', - m: 'یه‌ك خوله‌ك', - mm: '%d خوله‌ك', - h: 'یه‌ك كاتژمێر', - hh: '%d كاتژمێر', - d: 'یه‌ك ڕۆژ', - dd: '%d ڕۆژ', - M: 'یه‌ك مانگ', - MM: '%d مانگ', - y: 'یه‌ك ساڵ', - yy: '%d ساڵ', - }, - preparse: function (string) { - return string - .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) { - return numberMap[match]; - }) - .replace(/،/g, ','); - }, - postformat: function (string) { - return string - .replace(/\d/g, function (match) { - return symbolMap[match]; - }) - .replace(/,/g, '،'); - }, - week: { - dow: 6, // Saturday is the first day of the week. - doy: 12, // The week that contains Jan 12th is the first week of the year. - }, - }); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - return ku; + exports.default = function (self, call) { + if (!self) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } - }))); - + return call && ((typeof call === "undefined" ? "undefined" : (0, _typeof3.default)(call)) === "object" || typeof call === "function") ? call : self; + }; /***/ }), -/* 477 */ +/* 339 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Kyrgyz [ky] - //! author : Chyngyz Arystan uulu : https://github.com/chyngyz + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + exports.__esModule = true; - //! moment.js locale configuration + var _iterator = __webpack_require__(340); - var suffixes = { - 0: '-чү', - 1: '-чи', - 2: '-чи', - 3: '-чү', - 4: '-чү', - 5: '-чи', - 6: '-чы', - 7: '-чи', - 8: '-чи', - 9: '-чу', - 10: '-чу', - 20: '-чы', - 30: '-чу', - 40: '-чы', - 50: '-чү', - 60: '-чы', - 70: '-чи', - 80: '-чи', - 90: '-чу', - 100: '-чү', - }; + var _iterator2 = _interopRequireDefault(_iterator); - var ky = moment.defineLocale('ky', { - months: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split( - '_' - ), - monthsShort: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split( - '_' - ), - weekdays: 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split( - '_' - ), - weekdaysShort: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'), - weekdaysMin: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Бүгүн саат] LT', - nextDay: '[Эртең саат] LT', - nextWeek: 'dddd [саат] LT', - lastDay: '[Кечээ саат] LT', - lastWeek: '[Өткөн аптанын] dddd [күнү] [саат] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s ичинде', - past: '%s мурун', - s: 'бирнече секунд', - ss: '%d секунд', - m: 'бир мүнөт', - mm: '%d мүнөт', - h: 'бир саат', - hh: '%d саат', - d: 'бир күн', - dd: '%d күн', - M: 'бир ай', - MM: '%d ай', - y: 'бир жыл', - yy: '%d жыл', - }, - dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/, - ordinal: function (number) { - var a = number % 10, - b = number >= 100 ? 100 : null; - return number + (suffixes[number] || suffixes[a] || suffixes[b]); - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); + var _symbol = __webpack_require__(356); - return ky; + var _symbol2 = _interopRequireDefault(_symbol); - }))); + var _typeof = typeof _symbol2.default === "function" && typeof _iterator2.default === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj; }; + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) { + return typeof obj === "undefined" ? "undefined" : _typeof(obj); + } : function (obj) { + return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj); + }; + +/***/ }), +/* 340 */ +/***/ (function(module, exports, __webpack_require__) { + module.exports = { "default": __webpack_require__(341), __esModule: true }; /***/ }), -/* 478 */ +/* 341 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Luxembourgish [lb] - //! author : mweimerskirch : https://github.com/mweimerskirch - //! author : David Raison : https://github.com/kwisatz + __webpack_require__(342); + __webpack_require__(351); + module.exports = __webpack_require__(355).f('iterator'); + + +/***/ }), +/* 342 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; + var $at = __webpack_require__(343)(true); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + // 21.1.3.27 String.prototype[@@iterator]() + __webpack_require__(344)(String, 'String', function (iterated) { + this._t = String(iterated); // target + this._i = 0; // next index + // 21.1.5.2.1 %StringIteratorPrototype%.next() + }, function () { + var O = this._t; + var index = this._i; + var point; + if (index >= O.length) return { value: undefined, done: true }; + point = $at(O, index); + this._i += point.length; + return { value: point, done: false }; + }); + + +/***/ }), +/* 343 */ +/***/ (function(module, exports, __webpack_require__) { + + var toInteger = __webpack_require__(174); + var defined = __webpack_require__(171); + // true -> String#at + // false -> String#codePointAt + module.exports = function (TO_STRING) { + return function (that, pos) { + var s = String(defined(that)); + var i = toInteger(pos); + var l = s.length; + var a, b; + if (i < 0 || i >= l) return TO_STRING ? '' : undefined; + a = s.charCodeAt(i); + return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff + ? TO_STRING ? s.charAt(i) : a + : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000; + }; + }; + + +/***/ }), +/* 344 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; + var LIBRARY = __webpack_require__(178); + var $export = __webpack_require__(149); + var redefine = __webpack_require__(345); + var hide = __webpack_require__(154); + var Iterators = __webpack_require__(346); + var $iterCreate = __webpack_require__(347); + var setToStringTag = __webpack_require__(348); + var getPrototypeOf = __webpack_require__(350); + var ITERATOR = __webpack_require__(349)('iterator'); + var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` + var FF_ITERATOR = '@@iterator'; + var KEYS = 'keys'; + var VALUES = 'values'; - //! moment.js locale configuration + var returnThis = function () { return this; }; - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - m: ['eng Minutt', 'enger Minutt'], - h: ['eng Stonn', 'enger Stonn'], - d: ['een Dag', 'engem Dag'], - M: ['ee Mount', 'engem Mount'], - y: ['ee Joer', 'engem Joer'], - }; - return withoutSuffix ? format[key][0] : format[key][1]; - } - function processFutureTime(string) { - var number = string.substr(0, string.indexOf(' ')); - if (eifelerRegelAppliesToNumber(number)) { - return 'a ' + string; - } - return 'an ' + string; - } - function processPastTime(string) { - var number = string.substr(0, string.indexOf(' ')); - if (eifelerRegelAppliesToNumber(number)) { - return 'viru ' + string; - } - return 'virun ' + string; - } - /** - * Returns true if the word before the given number loses the '-n' ending. - * e.g. 'an 10 Deeg' but 'a 5 Deeg' - * - * @param number {integer} - * @returns {boolean} - */ - function eifelerRegelAppliesToNumber(number) { - number = parseInt(number, 10); - if (isNaN(number)) { - return false; - } - if (number < 0) { - // Negative Number --> always true - return true; - } else if (number < 10) { - // Only 1 digit - if (4 <= number && number <= 7) { - return true; - } - return false; - } else if (number < 100) { - // 2 digits - var lastDigit = number % 10, - firstDigit = number / 10; - if (lastDigit === 0) { - return eifelerRegelAppliesToNumber(firstDigit); - } - return eifelerRegelAppliesToNumber(lastDigit); - } else if (number < 10000) { - // 3 or 4 digits --> recursively check first digit - while (number >= 10) { - number = number / 10; - } - return eifelerRegelAppliesToNumber(number); - } else { - // Anything larger than 4 digits: recursively check first n-3 digits - number = number / 1000; - return eifelerRegelAppliesToNumber(number); - } + module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { + $iterCreate(Constructor, NAME, next); + var getMethod = function (kind) { + if (!BUGGY && kind in proto) return proto[kind]; + switch (kind) { + case KEYS: return function keys() { return new Constructor(this, kind); }; + case VALUES: return function values() { return new Constructor(this, kind); }; + } return function entries() { return new Constructor(this, kind); }; + }; + var TAG = NAME + ' Iterator'; + var DEF_VALUES = DEFAULT == VALUES; + var VALUES_BUG = false; + var proto = Base.prototype; + var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]; + var $default = $native || getMethod(DEFAULT); + var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined; + var $anyNative = NAME == 'Array' ? proto.entries || $native : $native; + var methods, key, IteratorPrototype; + // Fix native + if ($anyNative) { + IteratorPrototype = getPrototypeOf($anyNative.call(new Base())); + if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) { + // Set @@toStringTag to native iterators + setToStringTag(IteratorPrototype, TAG, true); + // fix for some old engines + if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis); } - - var lb = moment.defineLocale('lb', { - months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split( - '_' - ), - monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split( - '_' - ), - weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'), - weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'H:mm [Auer]', - LTS: 'H:mm:ss [Auer]', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm [Auer]', - LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]', - }, - calendar: { - sameDay: '[Haut um] LT', - sameElse: 'L', - nextDay: '[Muer um] LT', - nextWeek: 'dddd [um] LT', - lastDay: '[Gëschter um] LT', - lastWeek: function () { - // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule - switch (this.day()) { - case 2: - case 4: - return '[Leschten] dddd [um] LT'; - default: - return '[Leschte] dddd [um] LT'; - } - }, - }, - relativeTime: { - future: processFutureTime, - past: processPastTime, - s: 'e puer Sekonnen', - ss: '%d Sekonnen', - m: processRelativeTime, - mm: '%d Minutten', - h: processRelativeTime, - hh: '%d Stonnen', - d: processRelativeTime, - dd: '%d Deeg', - M: processRelativeTime, - MM: '%d Méint', - y: processRelativeTime, - yy: '%d Joer', - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return lb; - - }))); + } + // fix Array#{values, @@iterator}.name in V8 / FF + if (DEF_VALUES && $native && $native.name !== VALUES) { + VALUES_BUG = true; + $default = function values() { return $native.call(this); }; + } + // Define iterator + if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) { + hide(proto, ITERATOR, $default); + } + // Plug for library + Iterators[NAME] = $default; + Iterators[TAG] = returnThis; + if (DEFAULT) { + methods = { + values: DEF_VALUES ? $default : getMethod(VALUES), + keys: IS_SET ? $default : getMethod(KEYS), + entries: $entries + }; + if (FORCED) for (key in methods) { + if (!(key in proto)) redefine(proto, key, methods[key]); + } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); + } + return methods; + }; /***/ }), -/* 479 */ +/* 345 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Lao [lo] - //! author : Ryan Hart : https://github.com/ryanhart2 - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration + module.exports = __webpack_require__(154); + + +/***/ }), +/* 346 */ +/***/ (function(module, exports) { + + module.exports = {}; + + +/***/ }), +/* 347 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; + var create = __webpack_require__(200); + var descriptor = __webpack_require__(163); + var setToStringTag = __webpack_require__(348); + var IteratorPrototype = {}; - var lo = moment.defineLocale('lo', { - months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split( - '_' - ), - monthsShort: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split( - '_' - ), - weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'), - weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'), - weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'ວັນdddd D MMMM YYYY HH:mm', - }, - meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/, - isPM: function (input) { - return input === 'ຕອນແລງ'; - }, - meridiem: function (hour, minute, isLower) { - if (hour < 12) { - return 'ຕອນເຊົ້າ'; - } else { - return 'ຕອນແລງ'; - } - }, - calendar: { - sameDay: '[ມື້ນີ້ເວລາ] LT', - nextDay: '[ມື້ອື່ນເວລາ] LT', - nextWeek: '[ວັນ]dddd[ໜ້າເວລາ] LT', - lastDay: '[ມື້ວານນີ້ເວລາ] LT', - lastWeek: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'ອີກ %s', - past: '%sຜ່ານມາ', - s: 'ບໍ່ເທົ່າໃດວິນາທີ', - ss: '%d ວິນາທີ', - m: '1 ນາທີ', - mm: '%d ນາທີ', - h: '1 ຊົ່ວໂມງ', - hh: '%d ຊົ່ວໂມງ', - d: '1 ມື້', - dd: '%d ມື້', - M: '1 ເດືອນ', - MM: '%d ເດືອນ', - y: '1 ປີ', - yy: '%d ປີ', - }, - dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/, - ordinal: function (number) { - return 'ທີ່' + number; - }, - }); + // 25.1.2.1.1 %IteratorPrototype%[@@iterator]() + __webpack_require__(154)(IteratorPrototype, __webpack_require__(349)('iterator'), function () { return this; }); - return lo; + module.exports = function (Constructor, NAME, next) { + Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) }); + setToStringTag(Constructor, NAME + ' Iterator'); + }; + + +/***/ }), +/* 348 */ +/***/ (function(module, exports, __webpack_require__) { + + var def = __webpack_require__(155).f; + var has = __webpack_require__(164); + var TAG = __webpack_require__(349)('toStringTag'); - }))); + module.exports = function (it, tag, stat) { + if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag }); + }; /***/ }), -/* 480 */ +/* 349 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Lithuanian [lt] - //! author : Mindaugas Mozūras : https://github.com/mmozuras + var store = __webpack_require__(177)('wks'); + var uid = __webpack_require__(179); + var Symbol = __webpack_require__(150).Symbol; + var USE_SYMBOL = typeof Symbol == 'function'; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var $exports = module.exports = function (name) { + return store[name] || (store[name] = + USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); + }; - //! moment.js locale configuration + $exports.store = store; + + +/***/ }), +/* 350 */ +/***/ (function(module, exports, __webpack_require__) { + + // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) + var has = __webpack_require__(164); + var toObject = __webpack_require__(183); + var IE_PROTO = __webpack_require__(176)('IE_PROTO'); + var ObjectProto = Object.prototype; - var units = { - ss: 'sekundė_sekundžių_sekundes', - m: 'minutė_minutės_minutę', - mm: 'minutės_minučių_minutes', - h: 'valanda_valandos_valandą', - hh: 'valandos_valandų_valandas', - d: 'diena_dienos_dieną', - dd: 'dienos_dienų_dienas', - M: 'mėnuo_mėnesio_mėnesį', - MM: 'mėnesiai_mėnesių_mėnesius', - y: 'metai_metų_metus', - yy: 'metai_metų_metus', - }; - function translateSeconds(number, withoutSuffix, key, isFuture) { - if (withoutSuffix) { - return 'kelios sekundės'; - } else { - return isFuture ? 'kelių sekundžių' : 'kelias sekundes'; - } - } - function translateSingular(number, withoutSuffix, key, isFuture) { - return withoutSuffix - ? forms(key)[0] - : isFuture - ? forms(key)[1] - : forms(key)[2]; - } - function special(number) { - return number % 10 === 0 || (number > 10 && number < 20); - } - function forms(key) { - return units[key].split('_'); - } - function translate(number, withoutSuffix, key, isFuture) { - var result = number + ' '; - if (number === 1) { - return ( - result + translateSingular(number, withoutSuffix, key[0], isFuture) - ); - } else if (withoutSuffix) { - return result + (special(number) ? forms(key)[1] : forms(key)[0]); - } else { - if (isFuture) { - return result + forms(key)[1]; - } else { - return result + (special(number) ? forms(key)[1] : forms(key)[2]); - } - } - } - var lt = moment.defineLocale('lt', { - months: { - format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split( - '_' - ), - standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split( - '_' - ), - isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/, - }, - monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'), - weekdays: { - format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split( - '_' - ), - standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split( - '_' - ), - isFormat: /dddd HH:mm/, - }, - weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'), - weekdaysMin: 'S_P_A_T_K_Pn_Š'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY-MM-DD', - LL: 'YYYY [m.] MMMM D [d.]', - LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]', - LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]', - l: 'YYYY-MM-DD', - ll: 'YYYY [m.] MMMM D [d.]', - lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]', - llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]', - }, - calendar: { - sameDay: '[Šiandien] LT', - nextDay: '[Rytoj] LT', - nextWeek: 'dddd LT', - lastDay: '[Vakar] LT', - lastWeek: '[Praėjusį] dddd LT', - sameElse: 'L', - }, - relativeTime: { - future: 'po %s', - past: 'prieš %s', - s: translateSeconds, - ss: translate, - m: translateSingular, - mm: translate, - h: translateSingular, - hh: translate, - d: translateSingular, - dd: translate, - M: translateSingular, - MM: translate, - y: translateSingular, - yy: translate, - }, - dayOfMonthOrdinalParse: /\d{1,2}-oji/, - ordinal: function (number) { - return number + '-oji'; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + module.exports = Object.getPrototypeOf || function (O) { + O = toObject(O); + if (has(O, IE_PROTO)) return O[IE_PROTO]; + if (typeof O.constructor == 'function' && O instanceof O.constructor) { + return O.constructor.prototype; + } return O instanceof Object ? ObjectProto : null; + }; + + +/***/ }), +/* 351 */ +/***/ (function(module, exports, __webpack_require__) { + + __webpack_require__(352); + var global = __webpack_require__(150); + var hide = __webpack_require__(154); + var Iterators = __webpack_require__(346); + var TO_STRING_TAG = __webpack_require__(349)('toStringTag'); - return lt; + var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' + + 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' + + 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' + + 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' + + 'TextTrackList,TouchList').split(','); - }))); + for (var i = 0; i < DOMIterables.length; i++) { + var NAME = DOMIterables[i]; + var Collection = global[NAME]; + var proto = Collection && Collection.prototype; + if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME); + Iterators[NAME] = Iterators.Array; + } /***/ }), -/* 481 */ +/* 352 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Latvian [lv] - //! author : Kristaps Karlsons : https://github.com/skakri - //! author : Jānis Elmeris : https://github.com/JanisE - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var units = { - ss: 'sekundes_sekundēm_sekunde_sekundes'.split('_'), - m: 'minūtes_minūtēm_minūte_minūtes'.split('_'), - mm: 'minūtes_minūtēm_minūte_minūtes'.split('_'), - h: 'stundas_stundām_stunda_stundas'.split('_'), - hh: 'stundas_stundām_stunda_stundas'.split('_'), - d: 'dienas_dienām_diena_dienas'.split('_'), - dd: 'dienas_dienām_diena_dienas'.split('_'), - M: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'), - MM: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'), - y: 'gada_gadiem_gads_gadi'.split('_'), - yy: 'gada_gadiem_gads_gadi'.split('_'), - }; - /** - * @param withoutSuffix boolean true = a length of time; false = before/after a period of time. - */ - function format(forms, number, withoutSuffix) { - if (withoutSuffix) { - // E.g. "21 minūte", "3 minūtes". - return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3]; - } else { - // E.g. "21 minūtes" as in "pēc 21 minūtes". - // E.g. "3 minūtēm" as in "pēc 3 minūtēm". - return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1]; - } - } - function relativeTimeWithPlural(number, withoutSuffix, key) { - return number + ' ' + format(units[key], number, withoutSuffix); - } - function relativeTimeWithSingular(number, withoutSuffix, key) { - return format(units[key], number, withoutSuffix); - } - function relativeSeconds(number, withoutSuffix) { - return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm'; - } + 'use strict'; + var addToUnscopables = __webpack_require__(353); + var step = __webpack_require__(354); + var Iterators = __webpack_require__(346); + var toIObject = __webpack_require__(168); - var lv = moment.defineLocale('lv', { - months: 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split( - '_' - ), - monthsShort: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'), - weekdays: 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split( - '_' - ), - weekdaysShort: 'Sv_P_O_T_C_Pk_S'.split('_'), - weekdaysMin: 'Sv_P_O_T_C_Pk_S'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY.', - LL: 'YYYY. [gada] D. MMMM', - LLL: 'YYYY. [gada] D. MMMM, HH:mm', - LLLL: 'YYYY. [gada] D. MMMM, dddd, HH:mm', - }, - calendar: { - sameDay: '[Šodien pulksten] LT', - nextDay: '[Rīt pulksten] LT', - nextWeek: 'dddd [pulksten] LT', - lastDay: '[Vakar pulksten] LT', - lastWeek: '[Pagājušā] dddd [pulksten] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'pēc %s', - past: 'pirms %s', - s: relativeSeconds, - ss: relativeTimeWithPlural, - m: relativeTimeWithSingular, - mm: relativeTimeWithPlural, - h: relativeTimeWithSingular, - hh: relativeTimeWithPlural, - d: relativeTimeWithSingular, - dd: relativeTimeWithPlural, - M: relativeTimeWithSingular, - MM: relativeTimeWithPlural, - y: relativeTimeWithSingular, - yy: relativeTimeWithPlural, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + // 22.1.3.4 Array.prototype.entries() + // 22.1.3.13 Array.prototype.keys() + // 22.1.3.29 Array.prototype.values() + // 22.1.3.30 Array.prototype[@@iterator]() + module.exports = __webpack_require__(344)(Array, 'Array', function (iterated, kind) { + this._t = toIObject(iterated); // target + this._i = 0; // next index + this._k = kind; // kind + // 22.1.5.2.1 %ArrayIteratorPrototype%.next() + }, function () { + var O = this._t; + var kind = this._k; + var index = this._i++; + if (!O || index >= O.length) { + this._t = undefined; + return step(1); + } + if (kind == 'keys') return step(0, index); + if (kind == 'values') return step(0, O[index]); + return step(0, [index, O[index]]); + }, 'values'); - return lv; + // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7) + Iterators.Arguments = Iterators.Array; - }))); + addToUnscopables('keys'); + addToUnscopables('values'); + addToUnscopables('entries'); /***/ }), -/* 482 */ +/* 353 */ +/***/ (function(module, exports) { + + module.exports = function () { /* empty */ }; + + +/***/ }), +/* 354 */ +/***/ (function(module, exports) { + + module.exports = function (done, value) { + return { value: value, done: !!done }; + }; + + +/***/ }), +/* 355 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Montenegrin [me] - //! author : Miodrag Nikač : https://github.com/miodragnikac + exports.f = __webpack_require__(349); + + +/***/ }), +/* 356 */ +/***/ (function(module, exports, __webpack_require__) { + + module.exports = { "default": __webpack_require__(357), __esModule: true }; + +/***/ }), +/* 357 */ +/***/ (function(module, exports, __webpack_require__) { + + __webpack_require__(358); + __webpack_require__(366); + __webpack_require__(367); + __webpack_require__(368); + module.exports = __webpack_require__(151).Symbol; + + +/***/ }), +/* 358 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; + // ECMAScript 6 symbols shim + var global = __webpack_require__(150); + var has = __webpack_require__(164); + var DESCRIPTORS = __webpack_require__(159); + var $export = __webpack_require__(149); + var redefine = __webpack_require__(345); + var META = __webpack_require__(359).KEY; + var $fails = __webpack_require__(160); + var shared = __webpack_require__(177); + var setToStringTag = __webpack_require__(348); + var uid = __webpack_require__(179); + var wks = __webpack_require__(349); + var wksExt = __webpack_require__(355); + var wksDefine = __webpack_require__(360); + var enumKeys = __webpack_require__(361); + var isArray = __webpack_require__(362); + var anObject = __webpack_require__(156); + var isObject = __webpack_require__(157); + var toObject = __webpack_require__(183); + var toIObject = __webpack_require__(168); + var toPrimitive = __webpack_require__(162); + var createDesc = __webpack_require__(163); + var _create = __webpack_require__(200); + var gOPNExt = __webpack_require__(363); + var $GOPD = __webpack_require__(365); + var $GOPS = __webpack_require__(181); + var $DP = __webpack_require__(155); + var $keys = __webpack_require__(166); + var gOPD = $GOPD.f; + var dP = $DP.f; + var gOPN = gOPNExt.f; + var $Symbol = global.Symbol; + var $JSON = global.JSON; + var _stringify = $JSON && $JSON.stringify; + var PROTOTYPE = 'prototype'; + var HIDDEN = wks('_hidden'); + var TO_PRIMITIVE = wks('toPrimitive'); + var isEnum = {}.propertyIsEnumerable; + var SymbolRegistry = shared('symbol-registry'); + var AllSymbols = shared('symbols'); + var OPSymbols = shared('op-symbols'); + var ObjectProto = Object[PROTOTYPE]; + var USE_NATIVE = typeof $Symbol == 'function' && !!$GOPS.f; + var QObject = global.QObject; + // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173 + var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687 + var setSymbolDesc = DESCRIPTORS && $fails(function () { + return _create(dP({}, 'a', { + get: function () { return dP(this, 'a', { value: 7 }).a; } + })).a != 7; + }) ? function (it, key, D) { + var protoDesc = gOPD(ObjectProto, key); + if (protoDesc) delete ObjectProto[key]; + dP(it, key, D); + if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc); + } : dP; - //! moment.js locale configuration + var wrap = function (tag) { + var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]); + sym._k = tag; + return sym; + }; - var translator = { - words: { - //Different grammatical cases - ss: ['sekund', 'sekunda', 'sekundi'], - m: ['jedan minut', 'jednog minuta'], - mm: ['minut', 'minuta', 'minuta'], - h: ['jedan sat', 'jednog sata'], - hh: ['sat', 'sata', 'sati'], - dd: ['dan', 'dana', 'dana'], - MM: ['mjesec', 'mjeseca', 'mjeseci'], - yy: ['godina', 'godine', 'godina'], - }, - correctGrammaticalCase: function (number, wordKey) { - return number === 1 - ? wordKey[0] - : number >= 2 && number <= 4 - ? wordKey[1] - : wordKey[2]; - }, - translate: function (number, withoutSuffix, key) { - var wordKey = translator.words[key]; - if (key.length === 1) { - return withoutSuffix ? wordKey[0] : wordKey[1]; - } else { - return ( - number + - ' ' + - translator.correctGrammaticalCase(number, wordKey) - ); - } - }, + var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) { + return typeof it == 'symbol'; + } : function (it) { + return it instanceof $Symbol; + }; + + var $defineProperty = function defineProperty(it, key, D) { + if (it === ObjectProto) $defineProperty(OPSymbols, key, D); + anObject(it); + key = toPrimitive(key, true); + anObject(D); + if (has(AllSymbols, key)) { + if (!D.enumerable) { + if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {})); + it[HIDDEN][key] = true; + } else { + if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false; + D = _create(D, { enumerable: createDesc(0, false) }); + } return setSymbolDesc(it, key, D); + } return dP(it, key, D); + }; + var $defineProperties = function defineProperties(it, P) { + anObject(it); + var keys = enumKeys(P = toIObject(P)); + var i = 0; + var l = keys.length; + var key; + while (l > i) $defineProperty(it, key = keys[i++], P[key]); + return it; + }; + var $create = function create(it, P) { + return P === undefined ? _create(it) : $defineProperties(_create(it), P); + }; + var $propertyIsEnumerable = function propertyIsEnumerable(key) { + var E = isEnum.call(this, key = toPrimitive(key, true)); + if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false; + return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true; + }; + var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) { + it = toIObject(it); + key = toPrimitive(key, true); + if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return; + var D = gOPD(it, key); + if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true; + return D; + }; + var $getOwnPropertyNames = function getOwnPropertyNames(it) { + var names = gOPN(toIObject(it)); + var result = []; + var i = 0; + var key; + while (names.length > i) { + if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key); + } return result; + }; + var $getOwnPropertySymbols = function getOwnPropertySymbols(it) { + var IS_OP = it === ObjectProto; + var names = gOPN(IS_OP ? OPSymbols : toIObject(it)); + var result = []; + var i = 0; + var key; + while (names.length > i) { + if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]); + } return result; + }; + + // 19.4.1.1 Symbol([description]) + if (!USE_NATIVE) { + $Symbol = function Symbol() { + if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!'); + var tag = uid(arguments.length > 0 ? arguments[0] : undefined); + var $set = function (value) { + if (this === ObjectProto) $set.call(OPSymbols, value); + if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false; + setSymbolDesc(this, tag, createDesc(1, value)); }; + if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set }); + return wrap(tag); + }; + redefine($Symbol[PROTOTYPE], 'toString', function toString() { + return this._k; + }); - var me = moment.defineLocale('me', { - months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split( - '_' - ), - monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split( - '_' - ), - weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), - weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd, D. MMMM YYYY H:mm', - }, - calendar: { - sameDay: '[danas u] LT', - nextDay: '[sjutra u] LT', + $GOPD.f = $getOwnPropertyDescriptor; + $DP.f = $defineProperty; + __webpack_require__(364).f = gOPNExt.f = $getOwnPropertyNames; + __webpack_require__(182).f = $propertyIsEnumerable; + $GOPS.f = $getOwnPropertySymbols; - nextWeek: function () { - switch (this.day()) { - case 0: - return '[u] [nedjelju] [u] LT'; - case 3: - return '[u] [srijedu] [u] LT'; - case 6: - return '[u] [subotu] [u] LT'; - case 1: - case 2: - case 4: - case 5: - return '[u] dddd [u] LT'; - } - }, - lastDay: '[juče u] LT', - lastWeek: function () { - var lastWeekDays = [ - '[prošle] [nedjelje] [u] LT', - '[prošlog] [ponedjeljka] [u] LT', - '[prošlog] [utorka] [u] LT', - '[prošle] [srijede] [u] LT', - '[prošlog] [četvrtka] [u] LT', - '[prošlog] [petka] [u] LT', - '[prošle] [subote] [u] LT', - ]; - return lastWeekDays[this.day()]; - }, - sameElse: 'L', - }, - relativeTime: { - future: 'za %s', - past: 'prije %s', - s: 'nekoliko sekundi', - ss: translator.translate, - m: translator.translate, - mm: translator.translate, - h: translator.translate, - hh: translator.translate, - d: 'dan', - dd: translator.translate, - M: 'mjesec', - MM: translator.translate, - y: 'godinu', - yy: translator.translate, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); + if (DESCRIPTORS && !__webpack_require__(178)) { + redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true); + } - return me; + wksExt.f = function (name) { + return wrap(wks(name)); + }; + } - }))); - - -/***/ }), -/* 483 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Maori [mi] - //! author : John Corrigan : https://github.com/johnideal + $export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol }); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + for (var es6Symbols = ( + // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14 + 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables' + ).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]); - //! moment.js locale configuration + for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]); - var mi = moment.defineLocale('mi', { - months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split( - '_' - ), - monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split( - '_' - ), - monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, - monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, - monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, - monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i, - weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'), - weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'), - weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY [i] HH:mm', - LLLL: 'dddd, D MMMM YYYY [i] HH:mm', - }, - calendar: { - sameDay: '[i teie mahana, i] LT', - nextDay: '[apopo i] LT', - nextWeek: 'dddd [i] LT', - lastDay: '[inanahi i] LT', - lastWeek: 'dddd [whakamutunga i] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'i roto i %s', - past: '%s i mua', - s: 'te hēkona ruarua', - ss: '%d hēkona', - m: 'he meneti', - mm: '%d meneti', - h: 'te haora', - hh: '%d haora', - d: 'he ra', - dd: '%d ra', - M: 'he marama', - MM: '%d marama', - y: 'he tau', - yy: '%d tau', - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + $export($export.S + $export.F * !USE_NATIVE, 'Symbol', { + // 19.4.2.1 Symbol.for(key) + 'for': function (key) { + return has(SymbolRegistry, key += '') + ? SymbolRegistry[key] + : SymbolRegistry[key] = $Symbol(key); + }, + // 19.4.2.5 Symbol.keyFor(sym) + keyFor: function keyFor(sym) { + if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!'); + for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key; + }, + useSetter: function () { setter = true; }, + useSimple: function () { setter = false; } + }); - return mi; + $export($export.S + $export.F * !USE_NATIVE, 'Object', { + // 19.1.2.2 Object.create(O [, Properties]) + create: $create, + // 19.1.2.4 Object.defineProperty(O, P, Attributes) + defineProperty: $defineProperty, + // 19.1.2.3 Object.defineProperties(O, Properties) + defineProperties: $defineProperties, + // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P) + getOwnPropertyDescriptor: $getOwnPropertyDescriptor, + // 19.1.2.7 Object.getOwnPropertyNames(O) + getOwnPropertyNames: $getOwnPropertyNames, + // 19.1.2.8 Object.getOwnPropertySymbols(O) + getOwnPropertySymbols: $getOwnPropertySymbols + }); - }))); + // Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives + // https://bugs.chromium.org/p/v8/issues/detail?id=3443 + var FAILS_ON_PRIMITIVES = $fails(function () { $GOPS.f(1); }); + + $export($export.S + $export.F * FAILS_ON_PRIMITIVES, 'Object', { + getOwnPropertySymbols: function getOwnPropertySymbols(it) { + return $GOPS.f(toObject(it)); + } + }); + + // 24.3.2 JSON.stringify(value [, replacer [, space]]) + $JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () { + var S = $Symbol(); + // MS Edge converts symbol values to JSON as {} + // WebKit converts symbol values to JSON as null + // V8 throws on boxed symbols + return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}'; + })), 'JSON', { + stringify: function stringify(it) { + var args = [it]; + var i = 1; + var replacer, $replacer; + while (arguments.length > i) args.push(arguments[i++]); + $replacer = replacer = args[1]; + if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined + if (!isArray(replacer)) replacer = function (key, value) { + if (typeof $replacer == 'function') value = $replacer.call(this, key, value); + if (!isSymbol(value)) return value; + }; + args[1] = replacer; + return _stringify.apply($JSON, args); + } + }); + + // 19.4.3.4 Symbol.prototype[@@toPrimitive](hint) + $Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(154)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf); + // 19.4.3.5 Symbol.prototype[@@toStringTag] + setToStringTag($Symbol, 'Symbol'); + // 20.2.1.9 Math[@@toStringTag] + setToStringTag(Math, 'Math', true); + // 24.3.3 JSON[@@toStringTag] + setToStringTag(global.JSON, 'JSON', true); /***/ }), -/* 484 */ +/* 359 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Macedonian [mk] - //! author : Borislav Mickov : https://github.com/B0k0 - //! author : Sashko Todorov : https://github.com/bkyceh - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var mk = moment.defineLocale('mk', { - months: 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split( - '_' - ), - monthsShort: 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'), - weekdays: 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split( - '_' - ), - weekdaysShort: 'нед_пон_вто_сре_чет_пет_саб'.split('_'), - weekdaysMin: 'нe_пo_вт_ср_че_пе_сa'.split('_'), - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'D.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY H:mm', - LLLL: 'dddd, D MMMM YYYY H:mm', - }, - calendar: { - sameDay: '[Денес во] LT', - nextDay: '[Утре во] LT', - nextWeek: '[Во] dddd [во] LT', - lastDay: '[Вчера во] LT', - lastWeek: function () { - switch (this.day()) { - case 0: - case 3: - case 6: - return '[Изминатата] dddd [во] LT'; - case 1: - case 2: - case 4: - case 5: - return '[Изминатиот] dddd [во] LT'; - } - }, - sameElse: 'L', - }, - relativeTime: { - future: 'за %s', - past: 'пред %s', - s: 'неколку секунди', - ss: '%d секунди', - m: 'една минута', - mm: '%d минути', - h: 'еден час', - hh: '%d часа', - d: 'еден ден', - dd: '%d дена', - M: 'еден месец', - MM: '%d месеци', - y: 'една година', - yy: '%d години', - }, - dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/, - ordinal: function (number) { - var lastDigit = number % 10, - last2Digits = number % 100; - if (number === 0) { - return number + '-ев'; - } else if (last2Digits === 0) { - return number + '-ен'; - } else if (last2Digits > 10 && last2Digits < 20) { - return number + '-ти'; - } else if (lastDigit === 1) { - return number + '-ви'; - } else if (lastDigit === 2) { - return number + '-ри'; - } else if (lastDigit === 7 || lastDigit === 8) { - return number + '-ми'; - } else { - return number + '-ти'; - } - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); - - return mk; - - }))); + var META = __webpack_require__(179)('meta'); + var isObject = __webpack_require__(157); + var has = __webpack_require__(164); + var setDesc = __webpack_require__(155).f; + var id = 0; + var isExtensible = Object.isExtensible || function () { + return true; + }; + var FREEZE = !__webpack_require__(160)(function () { + return isExtensible(Object.preventExtensions({})); + }); + var setMeta = function (it) { + setDesc(it, META, { value: { + i: 'O' + ++id, // object ID + w: {} // weak collections IDs + } }); + }; + var fastKey = function (it, create) { + // return primitive with prefix + if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; + if (!has(it, META)) { + // can't set metadata to uncaught frozen object + if (!isExtensible(it)) return 'F'; + // not necessary to add metadata + if (!create) return 'E'; + // add missing metadata + setMeta(it); + // return object ID + } return it[META].i; + }; + var getWeak = function (it, create) { + if (!has(it, META)) { + // can't set metadata to uncaught frozen object + if (!isExtensible(it)) return true; + // not necessary to add metadata + if (!create) return false; + // add missing metadata + setMeta(it); + // return hash weak collections IDs + } return it[META].w; + }; + // add metadata on freeze-family methods calling + var onFreeze = function (it) { + if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it); + return it; + }; + var meta = module.exports = { + KEY: META, + NEED: false, + fastKey: fastKey, + getWeak: getWeak, + onFreeze: onFreeze + }; /***/ }), -/* 485 */ +/* 360 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Malayalam [ml] - //! author : Floyd Pink : https://github.com/floydpink - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var ml = moment.defineLocale('ml', { - months: 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split( - '_' - ), - monthsShort: 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split( - '_' - ), - weekdaysShort: 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'), - weekdaysMin: 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'), - longDateFormat: { - LT: 'A h:mm -നു', - LTS: 'A h:mm:ss -നു', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm -നു', - LLLL: 'dddd, D MMMM YYYY, A h:mm -നു', - }, - calendar: { - sameDay: '[ഇന്ന്] LT', - nextDay: '[നാളെ] LT', - nextWeek: 'dddd, LT', - lastDay: '[ഇന്നലെ] LT', - lastWeek: '[കഴിഞ്ഞ] dddd, LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s കഴിഞ്ഞ്', - past: '%s മുൻപ്', - s: 'അൽപ നിമിഷങ്ങൾ', - ss: '%d സെക്കൻഡ്', - m: 'ഒരു മിനിറ്റ്', - mm: '%d മിനിറ്റ്', - h: 'ഒരു മണിക്കൂർ', - hh: '%d മണിക്കൂർ', - d: 'ഒരു ദിവസം', - dd: '%d ദിവസം', - M: 'ഒരു മാസം', - MM: '%d മാസം', - y: 'ഒരു വർഷം', - yy: '%d വർഷം', - }, - meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if ( - (meridiem === 'രാത്രി' && hour >= 4) || - meridiem === 'ഉച്ച കഴിഞ്ഞ്' || - meridiem === 'വൈകുന്നേരം' - ) { - return hour + 12; - } else { - return hour; - } - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'രാത്രി'; - } else if (hour < 12) { - return 'രാവിലെ'; - } else if (hour < 17) { - return 'ഉച്ച കഴിഞ്ഞ്'; - } else if (hour < 20) { - return 'വൈകുന്നേരം'; - } else { - return 'രാത്രി'; - } - }, - }); - - return ml; - - }))); + var global = __webpack_require__(150); + var core = __webpack_require__(151); + var LIBRARY = __webpack_require__(178); + var wksExt = __webpack_require__(355); + var defineProperty = __webpack_require__(155).f; + module.exports = function (name) { + var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {}); + if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) }); + }; /***/ }), -/* 486 */ +/* 361 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Mongolian [mn] - //! author : Javkhlantugs Nyamdorj : https://github.com/javkhaanj7 - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + // all enumerable object keys, includes symbols + var getKeys = __webpack_require__(166); + var gOPS = __webpack_require__(181); + var pIE = __webpack_require__(182); + module.exports = function (it) { + var result = getKeys(it); + var getSymbols = gOPS.f; + if (getSymbols) { + var symbols = getSymbols(it); + var isEnum = pIE.f; + var i = 0; + var key; + while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key); + } return result; + }; + + +/***/ }), +/* 362 */ +/***/ (function(module, exports, __webpack_require__) { + + // 7.2.2 IsArray(argument) + var cof = __webpack_require__(170); + module.exports = Array.isArray || function isArray(arg) { + return cof(arg) == 'Array'; + }; + + +/***/ }), +/* 363 */ +/***/ (function(module, exports, __webpack_require__) { + + // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window + var toIObject = __webpack_require__(168); + var gOPN = __webpack_require__(364).f; + var toString = {}.toString; - //! moment.js locale configuration + var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames + ? Object.getOwnPropertyNames(window) : []; - function translate(number, withoutSuffix, key, isFuture) { - switch (key) { - case 's': - return withoutSuffix ? 'хэдхэн секунд' : 'хэдхэн секундын'; - case 'ss': - return number + (withoutSuffix ? ' секунд' : ' секундын'); - case 'm': - case 'mm': - return number + (withoutSuffix ? ' минут' : ' минутын'); - case 'h': - case 'hh': - return number + (withoutSuffix ? ' цаг' : ' цагийн'); - case 'd': - case 'dd': - return number + (withoutSuffix ? ' өдөр' : ' өдрийн'); - case 'M': - case 'MM': - return number + (withoutSuffix ? ' сар' : ' сарын'); - case 'y': - case 'yy': - return number + (withoutSuffix ? ' жил' : ' жилийн'); - default: - return number; - } - } + var getWindowNames = function (it) { + try { + return gOPN(it); + } catch (e) { + return windowNames.slice(); + } + }; - var mn = moment.defineLocale('mn', { - months: 'Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар'.split( - '_' - ), - monthsShort: '1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба'.split('_'), - weekdaysShort: 'Ням_Дав_Мяг_Лха_Пүр_Баа_Бям'.split('_'), - weekdaysMin: 'Ня_Да_Мя_Лх_Пү_Ба_Бя'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY-MM-DD', - LL: 'YYYY оны MMMMын D', - LLL: 'YYYY оны MMMMын D HH:mm', - LLLL: 'dddd, YYYY оны MMMMын D HH:mm', - }, - meridiemParse: /ҮӨ|ҮХ/i, - isPM: function (input) { - return input === 'ҮХ'; - }, - meridiem: function (hour, minute, isLower) { - if (hour < 12) { - return 'ҮӨ'; - } else { - return 'ҮХ'; - } - }, - calendar: { - sameDay: '[Өнөөдөр] LT', - nextDay: '[Маргааш] LT', - nextWeek: '[Ирэх] dddd LT', - lastDay: '[Өчигдөр] LT', - lastWeek: '[Өнгөрсөн] dddd LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s дараа', - past: '%s өмнө', - s: translate, - ss: translate, - m: translate, - mm: translate, - h: translate, - hh: translate, - d: translate, - dd: translate, - M: translate, - MM: translate, - y: translate, - yy: translate, - }, - dayOfMonthOrdinalParse: /\d{1,2} өдөр/, - ordinal: function (number, period) { - switch (period) { - case 'd': - case 'D': - case 'DDD': - return number + ' өдөр'; - default: - return number; - } - }, - }); + module.exports.f = function getOwnPropertyNames(it) { + return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it)); + }; + + +/***/ }), +/* 364 */ +/***/ (function(module, exports, __webpack_require__) { + + // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) + var $keys = __webpack_require__(167); + var hiddenKeys = __webpack_require__(180).concat('length', 'prototype'); - return mn; + exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { + return $keys(O, hiddenKeys); + }; + + +/***/ }), +/* 365 */ +/***/ (function(module, exports, __webpack_require__) { + + var pIE = __webpack_require__(182); + var createDesc = __webpack_require__(163); + var toIObject = __webpack_require__(168); + var toPrimitive = __webpack_require__(162); + var has = __webpack_require__(164); + var IE8_DOM_DEFINE = __webpack_require__(158); + var gOPD = Object.getOwnPropertyDescriptor; - }))); + exports.f = __webpack_require__(159) ? gOPD : function getOwnPropertyDescriptor(O, P) { + O = toIObject(O); + P = toPrimitive(P, true); + if (IE8_DOM_DEFINE) try { + return gOPD(O, P); + } catch (e) { /* empty */ } + if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); + }; + + +/***/ }), +/* 366 */ +/***/ (function(module, exports) { + /***/ }), -/* 487 */ +/* 367 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Marathi [mr] - //! author : Harshad Kale : https://github.com/kalehv - //! author : Vivek Athalye : https://github.com/vnathalye + __webpack_require__(360)('asyncIterator'); + + +/***/ }), +/* 368 */ +/***/ (function(module, exports, __webpack_require__) { + + __webpack_require__(360)('observable'); + + +/***/ }), +/* 369 */ +/***/ (function(module, exports, __webpack_require__) { + + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + exports.__esModule = true; - //! moment.js locale configuration + var _setPrototypeOf = __webpack_require__(370); - var symbolMap = { - '1': '१', - '2': '२', - '3': '३', - '4': '४', - '5': '५', - '6': '६', - '7': '७', - '8': '८', - '9': '९', - '0': '०', - }, - numberMap = { - '१': '1', - '२': '2', - '३': '3', - '४': '4', - '५': '5', - '६': '6', - '७': '7', - '८': '8', - '९': '9', - '०': '0', - }; + var _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf); - function relativeTimeMr(number, withoutSuffix, string, isFuture) { - var output = ''; - if (withoutSuffix) { - switch (string) { - case 's': - output = 'काही सेकंद'; - break; - case 'ss': - output = '%d सेकंद'; - break; - case 'm': - output = 'एक मिनिट'; - break; - case 'mm': - output = '%d मिनिटे'; - break; - case 'h': - output = 'एक तास'; - break; - case 'hh': - output = '%d तास'; - break; - case 'd': - output = 'एक दिवस'; - break; - case 'dd': - output = '%d दिवस'; - break; - case 'M': - output = 'एक महिना'; - break; - case 'MM': - output = '%d महिने'; - break; - case 'y': - output = 'एक वर्ष'; - break; - case 'yy': - output = '%d वर्षे'; - break; - } - } else { - switch (string) { - case 's': - output = 'काही सेकंदां'; - break; - case 'ss': - output = '%d सेकंदां'; - break; - case 'm': - output = 'एका मिनिटा'; - break; - case 'mm': - output = '%d मिनिटां'; - break; - case 'h': - output = 'एका तासा'; - break; - case 'hh': - output = '%d तासां'; - break; - case 'd': - output = 'एका दिवसा'; - break; - case 'dd': - output = '%d दिवसां'; - break; - case 'M': - output = 'एका महिन्या'; - break; - case 'MM': - output = '%d महिन्यां'; - break; - case 'y': - output = 'एका वर्षा'; - break; - case 'yy': - output = '%d वर्षां'; - break; - } - } - return output.replace(/%d/i, number); - } + var _create = __webpack_require__(374); - var mr = moment.defineLocale('mr', { - months: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split( - '_' - ), - monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'), - weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'), - weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'), - longDateFormat: { - LT: 'A h:mm वाजता', - LTS: 'A h:mm:ss वाजता', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm वाजता', - LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता', - }, - calendar: { - sameDay: '[आज] LT', - nextDay: '[उद्या] LT', - nextWeek: 'dddd, LT', - lastDay: '[काल] LT', - lastWeek: '[मागील] dddd, LT', - sameElse: 'L', - }, - relativeTime: { - future: '%sमध्ये', - past: '%sपूर्वी', - s: relativeTimeMr, - ss: relativeTimeMr, - m: relativeTimeMr, - mm: relativeTimeMr, - h: relativeTimeMr, - hh: relativeTimeMr, - d: relativeTimeMr, - dd: relativeTimeMr, - M: relativeTimeMr, - MM: relativeTimeMr, - y: relativeTimeMr, - yy: relativeTimeMr, - }, - preparse: function (string) { - return string.replace(/[१२३४५६७८९०]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - meridiemParse: /पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'पहाटे' || meridiem === 'सकाळी') { - return hour; - } else if ( - meridiem === 'दुपारी' || - meridiem === 'सायंकाळी' || - meridiem === 'रात्री' - ) { - return hour >= 12 ? hour : hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - if (hour >= 0 && hour < 6) { - return 'पहाटे'; - } else if (hour < 12) { - return 'सकाळी'; - } else if (hour < 17) { - return 'दुपारी'; - } else if (hour < 20) { - return 'सायंकाळी'; - } else { - return 'रात्री'; - } - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }, - }); + var _create2 = _interopRequireDefault(_create); - return mr; + var _typeof2 = __webpack_require__(339); - }))); + var _typeof3 = _interopRequireDefault(_typeof2); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + exports.default = function (subClass, superClass) { + if (typeof superClass !== "function" && superClass !== null) { + throw new TypeError("Super expression must either be null or a function, not " + (typeof superClass === "undefined" ? "undefined" : (0, _typeof3.default)(superClass))); + } + + subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, { + constructor: { + value: subClass, + enumerable: false, + writable: true, + configurable: true + } + }); + if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass; + }; + +/***/ }), +/* 370 */ +/***/ (function(module, exports, __webpack_require__) { + module.exports = { "default": __webpack_require__(371), __esModule: true }; /***/ }), -/* 488 */ +/* 371 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Malay [ms] - //! author : Weldan Jamili : https://github.com/weldan - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var ms = moment.defineLocale('ms', { - months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'), - weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'), - weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'), - weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'), - longDateFormat: { - LT: 'HH.mm', - LTS: 'HH.mm.ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY [pukul] HH.mm', - LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm', - }, - meridiemParse: /pagi|tengahari|petang|malam/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'pagi') { - return hour; - } else if (meridiem === 'tengahari') { - return hour >= 11 ? hour : hour + 12; - } else if (meridiem === 'petang' || meridiem === 'malam') { - return hour + 12; - } - }, - meridiem: function (hours, minutes, isLower) { - if (hours < 11) { - return 'pagi'; - } else if (hours < 15) { - return 'tengahari'; - } else if (hours < 19) { - return 'petang'; - } else { - return 'malam'; - } - }, - calendar: { - sameDay: '[Hari ini pukul] LT', - nextDay: '[Esok pukul] LT', - nextWeek: 'dddd [pukul] LT', - lastDay: '[Kelmarin pukul] LT', - lastWeek: 'dddd [lepas pukul] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'dalam %s', - past: '%s yang lepas', - s: 'beberapa saat', - ss: '%d saat', - m: 'seminit', - mm: '%d minit', - h: 'sejam', - hh: '%d jam', - d: 'sehari', - dd: '%d hari', - M: 'sebulan', - MM: '%d bulan', - y: 'setahun', - yy: '%d tahun', - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); - - return ms; - - }))); + __webpack_require__(372); + module.exports = __webpack_require__(151).Object.setPrototypeOf; /***/ }), -/* 489 */ +/* 372 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Malay [ms-my] - //! note : DEPRECATED, the correct one is [ms] - //! author : Weldan Jamili : https://github.com/weldan + // 19.1.3.19 Object.setPrototypeOf(O, proto) + var $export = __webpack_require__(149); + $export($export.S, 'Object', { setPrototypeOf: __webpack_require__(373).set }); + + +/***/ }), +/* 373 */ +/***/ (function(module, exports, __webpack_require__) { + + // Works with __proto__ only. Old v8 can't work with null proto objects. + /* eslint-disable no-proto */ + var isObject = __webpack_require__(157); + var anObject = __webpack_require__(156); + var check = function (O, proto) { + anObject(O); + if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!"); + }; + module.exports = { + set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line + function (test, buggy, set) { + try { + set = __webpack_require__(152)(Function.call, __webpack_require__(365).f(Object.prototype, '__proto__').set, 2); + set(test, []); + buggy = !(test instanceof Array); + } catch (e) { buggy = true; } + return function setPrototypeOf(O, proto) { + check(O, proto); + if (buggy) O.__proto__ = proto; + else set(O, proto); + return O; + }; + }({}, false) : undefined), + check: check + }; + + +/***/ }), +/* 374 */ +/***/ (function(module, exports, __webpack_require__) { + + module.exports = { "default": __webpack_require__(198), __esModule: true }; + +/***/ }), +/* 375 */ +/***/ (function(module, exports) { + + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = contains; - //! moment.js locale configuration + function contains(root, n) { + var node = n; - var msMy = moment.defineLocale('ms-my', { - months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'), - weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'), - weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'), - weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'), - longDateFormat: { - LT: 'HH.mm', - LTS: 'HH.mm.ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY [pukul] HH.mm', - LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm', - }, - meridiemParse: /pagi|tengahari|petang|malam/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'pagi') { - return hour; - } else if (meridiem === 'tengahari') { - return hour >= 11 ? hour : hour + 12; - } else if (meridiem === 'petang' || meridiem === 'malam') { - return hour + 12; - } - }, - meridiem: function (hours, minutes, isLower) { - if (hours < 11) { - return 'pagi'; - } else if (hours < 15) { - return 'tengahari'; - } else if (hours < 19) { - return 'petang'; - } else { - return 'malam'; - } - }, - calendar: { - sameDay: '[Hari ini pukul] LT', - nextDay: '[Esok pukul] LT', - nextWeek: 'dddd [pukul] LT', - lastDay: '[Kelmarin pukul] LT', - lastWeek: 'dddd [lepas pukul] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'dalam %s', - past: '%s yang lepas', - s: 'beberapa saat', - ss: '%d saat', - m: 'seminit', - mm: '%d minit', - h: 'sejam', - hh: '%d jam', - d: 'sehari', - dd: '%d hari', - M: 'sebulan', - MM: '%d bulan', - y: 'setahun', - yy: '%d tahun', - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); + while (node) { + if (node === root) { + return true; + } - return msMy; + node = node.parentNode; + } - }))); - + return false; + } /***/ }), -/* 490 */ +/* 376 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Maltese (Malta) [mt] - //! author : Alessandro Maruccia : https://github.com/alesma + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = addEventListenerWrap; - //! moment.js locale configuration + var _addDomEventListener = _interopRequireDefault(__webpack_require__(41)); - var mt = moment.defineLocale('mt', { - months: 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split( - '_' - ), - monthsShort: 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'), - weekdays: 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split( - '_' - ), - weekdaysShort: 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'), - weekdaysMin: 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Illum fil-]LT', - nextDay: '[Għada fil-]LT', - nextWeek: 'dddd [fil-]LT', - lastDay: '[Il-bieraħ fil-]LT', - lastWeek: 'dddd [li għadda] [fil-]LT', - sameElse: 'L', - }, - relativeTime: { - future: 'f’ %s', - past: '%s ilu', - s: 'ftit sekondi', - ss: '%d sekondi', - m: 'minuta', - mm: '%d minuti', - h: 'siegħa', - hh: '%d siegħat', - d: 'ġurnata', - dd: '%d ġranet', - M: 'xahar', - MM: '%d xhur', - y: 'sena', - yy: '%d sni', - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var _reactDom = _interopRequireDefault(__webpack_require__(2)); - return mt; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - }))); - + function addEventListenerWrap(target, eventType, cb, option) { + /* eslint camelcase: 2 */ + var callback = _reactDom.default.unstable_batchedUpdates ? function run(e) { + _reactDom.default.unstable_batchedUpdates(cb, e); + } : cb; + return (0, _addDomEventListener.default)(target, eventType, callback, option); + } /***/ }), -/* 491 */ +/* 377 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Burmese [my] - //! author : Squar team, mysquar.com - //! author : David Rossellat : https://github.com/gholadr - //! author : Tin Aung Lin : https://github.com/thanyawzinmin + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; - //! moment.js locale configuration + var _react = _interopRequireDefault(__webpack_require__(1)); - var symbolMap = { - '1': '၁', - '2': '၂', - '3': '၃', - '4': '၄', - '5': '၅', - '6': '၆', - '7': '၇', - '8': '၈', - '9': '၉', - '0': '၀', - }, - numberMap = { - '၁': '1', - '၂': '2', - '၃': '3', - '၄': '4', - '၅': '5', - '၆': '6', - '၇': '7', - '၈': '8', - '၉': '9', - '၀': '0', - }; + var _reactDom = _interopRequireDefault(__webpack_require__(2)); - var my = moment.defineLocale('my', { - months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split( - '_' - ), - monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'), - weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split( - '_' - ), - weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'), - weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'), + var _propTypes = _interopRequireDefault(__webpack_require__(6)); - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[ယနေ.] LT [မှာ]', - nextDay: '[မနက်ဖြန်] LT [မှာ]', - nextWeek: 'dddd LT [မှာ]', - lastDay: '[မနေ.က] LT [မှာ]', - lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]', - sameElse: 'L', - }, - relativeTime: { - future: 'လာမည့် %s မှာ', - past: 'လွန်ခဲ့သော %s က', - s: 'စက္ကန်.အနည်းငယ်', - ss: '%d စက္ကန့်', - m: 'တစ်မိနစ်', - mm: '%d မိနစ်', - h: 'တစ်နာရီ', - hh: '%d နာရီ', - d: 'တစ်ရက်', - dd: '%d ရက်', - M: 'တစ်လ', - MM: '%d လ', - y: 'တစ်နှစ်', - yy: '%d နှစ်', - }, - preparse: function (string) { - return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - return my; + function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - }))); - - -/***/ }), -/* 492 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Norwegian Bokmål [nb] - //! authors : Espen Hovlandsdal : https://github.com/rexxars - //! Sigurd Gartmann : https://github.com/sigurdga - //! Stephen Ramthun : https://github.com/stephenramthun + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - //! moment.js locale configuration + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - var nb = moment.defineLocale('nb', { - months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split( - '_' - ), - monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'), - weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'), - weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY [kl.] HH:mm', - LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm', - }, - calendar: { - sameDay: '[i dag kl.] LT', - nextDay: '[i morgen kl.] LT', - nextWeek: 'dddd [kl.] LT', - lastDay: '[i går kl.] LT', - lastWeek: '[forrige] dddd [kl.] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'om %s', - past: '%s siden', - s: 'noen sekunder', - ss: '%d sekunder', - m: 'ett minutt', - mm: '%d minutter', - h: 'en time', - hh: '%d timer', - d: 'en dag', - dd: '%d dager', - M: 'en måned', - MM: '%d måneder', - y: 'ett år', - yy: '%d år', - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } - return nb; + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - }))); - + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + + function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + + var ContainerRender = /*#__PURE__*/function (_React$Component) { + _inherits(ContainerRender, _React$Component); + + var _super = _createSuper(ContainerRender); + + function ContainerRender() { + var _this; + + _classCallCheck(this, ContainerRender); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _this.removeContainer = function () { + if (_this.container) { + _reactDom.default.unmountComponentAtNode(_this.container); + + _this.container.parentNode.removeChild(_this.container); + + _this.container = null; + } + }; + + _this.renderComponent = function (props, ready) { + var _this$props = _this.props, + visible = _this$props.visible, + getComponent = _this$props.getComponent, + forceRender = _this$props.forceRender, + getContainer = _this$props.getContainer, + parent = _this$props.parent; + + if (visible || parent._component || forceRender) { + if (!_this.container) { + _this.container = getContainer(); + } + + _reactDom.default.unstable_renderSubtreeIntoContainer(parent, getComponent(props), _this.container, function callback() { + if (ready) { + ready.call(this); + } + }); + } + }; + + return _this; + } + + _createClass(ContainerRender, [{ + key: "componentDidMount", + value: function componentDidMount() { + if (this.props.autoMount) { + this.renderComponent(); + } + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate() { + if (this.props.autoMount) { + this.renderComponent(); + } + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + if (this.props.autoDestroy) { + this.removeContainer(); + } + } + }, { + key: "render", + value: function render() { + return this.props.children({ + renderComponent: this.renderComponent, + removeContainer: this.removeContainer + }); + } + }]); + + return ContainerRender; + }(_react.default.Component); + + exports.default = ContainerRender; + ContainerRender.propTypes = { + autoMount: _propTypes.default.bool, + autoDestroy: _propTypes.default.bool, + visible: _propTypes.default.bool, + forceRender: _propTypes.default.bool, + parent: _propTypes.default.any, + getComponent: _propTypes.default.func.isRequired, + getContainer: _propTypes.default.func.isRequired, + children: _propTypes.default.func.isRequired + }; + ContainerRender.defaultProps = { + autoMount: true, + autoDestroy: true, + forceRender: false + }; /***/ }), -/* 493 */ +/* 378 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Nepalese [ne] - //! author : suvash : https://github.com/suvash + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; - //! moment.js locale configuration + var _react = _interopRequireDefault(__webpack_require__(1)); - var symbolMap = { - '1': '१', - '2': '२', - '3': '३', - '4': '४', - '5': '५', - '6': '६', - '7': '७', - '8': '८', - '9': '९', - '0': '०', - }, - numberMap = { - '१': '1', - '२': '2', - '३': '3', - '४': '4', - '५': '5', - '६': '6', - '७': '7', - '८': '8', - '९': '9', - '०': '0', - }; + var _reactDom = _interopRequireDefault(__webpack_require__(2)); - var ne = moment.defineLocale('ne', { - months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split( - '_' - ), - monthsShort: 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split( - '_' - ), - weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'), - weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'Aको h:mm बजे', - LTS: 'Aको h:mm:ss बजे', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, Aको h:mm बजे', - LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे', - }, - preparse: function (string) { - return string.replace(/[१२३४५६७८९०]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - meridiemParse: /राति|बिहान|दिउँसो|साँझ/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'राति') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'बिहान') { - return hour; - } else if (meridiem === 'दिउँसो') { - return hour >= 10 ? hour : hour + 12; - } else if (meridiem === 'साँझ') { - return hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - if (hour < 3) { - return 'राति'; - } else if (hour < 12) { - return 'बिहान'; - } else if (hour < 16) { - return 'दिउँसो'; - } else if (hour < 20) { - return 'साँझ'; - } else { - return 'राति'; - } - }, - calendar: { - sameDay: '[आज] LT', - nextDay: '[भोलि] LT', - nextWeek: '[आउँदो] dddd[,] LT', - lastDay: '[हिजो] LT', - lastWeek: '[गएको] dddd[,] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%sमा', - past: '%s अगाडि', - s: 'केही क्षण', - ss: '%d सेकेण्ड', - m: 'एक मिनेट', - mm: '%d मिनेट', - h: 'एक घण्टा', - hh: '%d घण्टा', - d: 'एक दिन', - dd: '%d दिन', - M: 'एक महिना', - MM: '%d महिना', - y: 'एक बर्ष', - yy: '%d बर्ष', - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }, - }); + var _propTypes = _interopRequireDefault(__webpack_require__(6)); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + + function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + + var Portal = /*#__PURE__*/function (_React$Component) { + _inherits(Portal, _React$Component); + + var _super = _createSuper(Portal); + + function Portal() { + _classCallCheck(this, Portal); + + return _super.apply(this, arguments); + } + + _createClass(Portal, [{ + key: "componentDidMount", + value: function componentDidMount() { + this.createContainer(); + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + var didUpdate = this.props.didUpdate; + + if (didUpdate) { + didUpdate(prevProps); + } + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + this.removeContainer(); + } + }, { + key: "createContainer", + value: function createContainer() { + this._container = this.props.getContainer(); + this.forceUpdate(); + } + }, { + key: "removeContainer", + value: function removeContainer() { + if (this._container) { + this._container.parentNode.removeChild(this._container); + } + } + }, { + key: "render", + value: function render() { + if (this._container) { + return _reactDom.default.createPortal(this.props.children, this._container); + } - return ne; + return null; + } + }]); - }))); - + return Portal; + }(_react.default.Component); + + exports.default = Portal; + Portal.propTypes = { + getContainer: _propTypes.default.func.isRequired, + children: _propTypes.default.node.isRequired, + didUpdate: _propTypes.default.func + }; /***/ }), -/* 494 */ +/* 379 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Dutch [nl] - //! author : Joris Röling : https://github.com/jorisroling - //! author : Jacob Middag : https://github.com/middagj + 'use strict'; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + exports.__esModule = true; - //! moment.js locale configuration + var _extends2 = __webpack_require__(289); - var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split( - '_' - ), - monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split( - '_' - ), - monthsParse = [ - /^jan/i, - /^feb/i, - /^maart|mrt.?$/i, - /^apr/i, - /^mei$/i, - /^jun[i.]?$/i, - /^jul[i.]?$/i, - /^aug/i, - /^sep/i, - /^okt/i, - /^nov/i, - /^dec/i, - ], - monthsRegex = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i; + var _extends3 = _interopRequireDefault(_extends2); - var nl = moment.defineLocale('nl', { - months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split( - '_' - ), - monthsShort: function (m, format) { - if (!m) { - return monthsShortWithDots; - } else if (/-MMM-/.test(format)) { - return monthsShortWithoutDots[m.month()]; - } else { - return monthsShortWithDots[m.month()]; - } - }, + exports.getAlignFromPlacement = getAlignFromPlacement; + exports.getAlignPopupClassName = getAlignPopupClassName; + exports.saveRef = saveRef; - monthsRegex: monthsRegex, - monthsShortRegex: monthsRegex, - monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i, - monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i, + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - monthsParse: monthsParse, - longMonthsParse: monthsParse, - shortMonthsParse: monthsParse, + function isPointsEq(a1, a2, isAlignPoint) { + if (isAlignPoint) { + return a1[0] === a2[0]; + } + return a1[0] === a2[0] && a1[1] === a2[1]; + } - weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split( - '_' - ), - weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'), - weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD-MM-YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[vandaag om] LT', - nextDay: '[morgen om] LT', - nextWeek: 'dddd [om] LT', - lastDay: '[gisteren om] LT', - lastWeek: '[afgelopen] dddd [om] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'over %s', - past: '%s geleden', - s: 'een paar seconden', - ss: '%d seconden', - m: 'één minuut', - mm: '%d minuten', - h: 'één uur', - hh: '%d uur', - d: 'één dag', - dd: '%d dagen', - M: 'één maand', - MM: '%d maanden', - y: 'één jaar', - yy: '%d jaar', - }, - dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, - ordinal: function (number) { - return ( - number + - (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de') - ); - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + function getAlignFromPlacement(builtinPlacements, placementStr, align) { + var baseAlign = builtinPlacements[placementStr] || {}; + return (0, _extends3['default'])({}, baseAlign, align); + } - return nl; + function getAlignPopupClassName(builtinPlacements, prefixCls, align, isAlignPoint) { + var points = align.points; + for (var placement in builtinPlacements) { + if (builtinPlacements.hasOwnProperty(placement)) { + if (isPointsEq(builtinPlacements[placement].points, points, isAlignPoint)) { + return prefixCls + '-placement-' + placement; + } + } + } + return ''; + } - }))); - + function saveRef(name, component) { + this[name] = component; + } /***/ }), -/* 495 */ +/* 380 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Dutch (Belgium) [nl-be] - //! author : Joris Röling : https://github.com/jorisroling - //! author : Jacob Middag : https://github.com/middagj + 'use strict'; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + exports.__esModule = true; - //! moment.js locale configuration + var _extends2 = __webpack_require__(289); - var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split( - '_' - ), - monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split( - '_' - ), - monthsParse = [ - /^jan/i, - /^feb/i, - /^maart|mrt.?$/i, - /^apr/i, - /^mei$/i, - /^jun[i.]?$/i, - /^jul[i.]?$/i, - /^aug/i, - /^sep/i, - /^okt/i, - /^nov/i, - /^dec/i, - ], - monthsRegex = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i; + var _extends3 = _interopRequireDefault(_extends2); - var nlBe = moment.defineLocale('nl-be', { - months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split( - '_' - ), - monthsShort: function (m, format) { - if (!m) { - return monthsShortWithDots; - } else if (/-MMM-/.test(format)) { - return monthsShortWithoutDots[m.month()]; - } else { - return monthsShortWithDots[m.month()]; - } - }, + var _classCallCheck2 = __webpack_require__(337); - monthsRegex: monthsRegex, - monthsShortRegex: monthsRegex, - monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i, - monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i, + var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - monthsParse: monthsParse, - longMonthsParse: monthsParse, - shortMonthsParse: monthsParse, + var _possibleConstructorReturn2 = __webpack_require__(338); - weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split( - '_' - ), - weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'), - weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[vandaag om] LT', - nextDay: '[morgen om] LT', - nextWeek: 'dddd [om] LT', - lastDay: '[gisteren om] LT', - lastWeek: '[afgelopen] dddd [om] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'over %s', - past: '%s geleden', - s: 'een paar seconden', - ss: '%d seconden', - m: 'één minuut', - mm: '%d minuten', - h: 'één uur', - hh: '%d uur', - d: 'één dag', - dd: '%d dagen', - M: 'één maand', - MM: '%d maanden', - y: 'één jaar', - yy: '%d jaar', - }, - dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, - ordinal: function (number) { - return ( - number + - (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de') - ); - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - return nlBe; + var _inherits2 = __webpack_require__(369); - }))); - - -/***/ }), -/* 496 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Nynorsk [nn] - //! authors : https://github.com/mechuwind - //! Stephen Ramthun : https://github.com/stephenramthun + var _inherits3 = _interopRequireDefault(_inherits2); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _react = __webpack_require__(1); - //! moment.js locale configuration + var _react2 = _interopRequireDefault(_react); - var nn = moment.defineLocale('nn', { - months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split( - '_' - ), - monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'), - weekdaysShort: 'su._må._ty._on._to._fr._lau.'.split('_'), - weekdaysMin: 'su_må_ty_on_to_fr_la'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY [kl.] H:mm', - LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm', - }, - calendar: { - sameDay: '[I dag klokka] LT', - nextDay: '[I morgon klokka] LT', - nextWeek: 'dddd [klokka] LT', - lastDay: '[I går klokka] LT', - lastWeek: '[Føregåande] dddd [klokka] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'om %s', - past: '%s sidan', - s: 'nokre sekund', - ss: '%d sekund', - m: 'eit minutt', - mm: '%d minutt', - h: 'ein time', - hh: '%d timar', - d: 'ein dag', - dd: '%d dagar', - M: 'ein månad', - MM: '%d månader', - y: 'eit år', - yy: '%d år', - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var _propTypes = __webpack_require__(6); - return nn; + var _propTypes2 = _interopRequireDefault(_propTypes); - }))); - - -/***/ }), -/* 497 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Occitan, lengadocian dialecte [oc-lnc] - //! author : Quentin PAGÈS : https://github.com/Quenty31 + var _reactDom = __webpack_require__(2); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _reactDom2 = _interopRequireDefault(_reactDom); - //! moment.js locale configuration + var _rcAlign = __webpack_require__(381); - var ocLnc = moment.defineLocale('oc-lnc', { - months: { - standalone: 'genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre'.split( - '_' - ), - format: "de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split( - '_' - ), - isFormat: /D[oD]?(\s)+MMMM/, - }, - monthsShort: 'gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte'.split( - '_' - ), - weekdaysShort: 'dg._dl._dm._dc._dj._dv._ds.'.split('_'), - weekdaysMin: 'dg_dl_dm_dc_dj_dv_ds'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM [de] YYYY', - ll: 'D MMM YYYY', - LLL: 'D MMMM [de] YYYY [a] H:mm', - lll: 'D MMM YYYY, H:mm', - LLLL: 'dddd D MMMM [de] YYYY [a] H:mm', - llll: 'ddd D MMM YYYY, H:mm', - }, - calendar: { - sameDay: '[uèi a] LT', - nextDay: '[deman a] LT', - nextWeek: 'dddd [a] LT', - lastDay: '[ièr a] LT', - lastWeek: 'dddd [passat a] LT', - sameElse: 'L', - }, - relativeTime: { - future: "d'aquí %s", - past: 'fa %s', - s: 'unas segondas', - ss: '%d segondas', - m: 'una minuta', - mm: '%d minutas', - h: 'una ora', - hh: '%d oras', - d: 'un jorn', - dd: '%d jorns', - M: 'un mes', - MM: '%d meses', - y: 'un an', - yy: '%d ans', - }, - dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/, - ordinal: function (number, period) { - var output = - number === 1 - ? 'r' - : number === 2 - ? 'n' - : number === 3 - ? 'r' - : number === 4 - ? 't' - : 'è'; - if (period === 'w' || period === 'W') { - output = 'a'; - } - return number + output; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, - }, - }); + var _rcAlign2 = _interopRequireDefault(_rcAlign); - return ocLnc; + var _rcAnimate = __webpack_require__(388); - }))); - - -/***/ }), -/* 498 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Punjabi (India) [pa-in] - //! author : Harpreet Singh : https://github.com/harpreetkhalsagtbit + var _rcAnimate2 = _interopRequireDefault(_rcAnimate); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _PopupInner = __webpack_require__(396); - //! moment.js locale configuration + var _PopupInner2 = _interopRequireDefault(_PopupInner); - var symbolMap = { - '1': '੧', - '2': '੨', - '3': '੩', - '4': '੪', - '5': '੫', - '6': '੬', - '7': '੭', - '8': '੮', - '9': '੯', - '0': '੦', - }, - numberMap = { - '੧': '1', - '੨': '2', - '੩': '3', - '੪': '4', - '੫': '5', - '੬': '6', - '੭': '7', - '੮': '8', - '੯': '9', - '੦': '0', - }; + var _LazyRenderBox = __webpack_require__(397); - var paIn = moment.defineLocale('pa-in', { - // There are months name as per Nanakshahi Calendar but they are not used as rigidly in modern Punjabi. - months: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split( - '_' - ), - monthsShort: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split( - '_' - ), - weekdays: 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split( - '_' - ), - weekdaysShort: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'), - weekdaysMin: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'), - longDateFormat: { - LT: 'A h:mm ਵਜੇ', - LTS: 'A h:mm:ss ਵਜੇ', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm ਵਜੇ', - LLLL: 'dddd, D MMMM YYYY, A h:mm ਵਜੇ', - }, - calendar: { - sameDay: '[ਅਜ] LT', - nextDay: '[ਕਲ] LT', - nextWeek: '[ਅਗਲਾ] dddd, LT', - lastDay: '[ਕਲ] LT', - lastWeek: '[ਪਿਛਲੇ] dddd, LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s ਵਿੱਚ', - past: '%s ਪਿਛਲੇ', - s: 'ਕੁਝ ਸਕਿੰਟ', - ss: '%d ਸਕਿੰਟ', - m: 'ਇਕ ਮਿੰਟ', - mm: '%d ਮਿੰਟ', - h: 'ਇੱਕ ਘੰਟਾ', - hh: '%d ਘੰਟੇ', - d: 'ਇੱਕ ਦਿਨ', - dd: '%d ਦਿਨ', - M: 'ਇੱਕ ਮਹੀਨਾ', - MM: '%d ਮਹੀਨੇ', - y: 'ਇੱਕ ਸਾਲ', - yy: '%d ਸਾਲ', - }, - preparse: function (string) { - return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - // Punjabi notation for meridiems are quite fuzzy in practice. While there exists - // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi. - meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'ਰਾਤ') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'ਸਵੇਰ') { - return hour; - } else if (meridiem === 'ਦੁਪਹਿਰ') { - return hour >= 10 ? hour : hour + 12; - } else if (meridiem === 'ਸ਼ਾਮ') { - return hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'ਰਾਤ'; - } else if (hour < 10) { - return 'ਸਵੇਰ'; - } else if (hour < 17) { - return 'ਦੁਪਹਿਰ'; - } else if (hour < 20) { - return 'ਸ਼ਾਮ'; - } else { - return 'ਰਾਤ'; - } - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }, - }); + var _LazyRenderBox2 = _interopRequireDefault(_LazyRenderBox); - return paIn; + var _utils = __webpack_require__(379); - }))); - - -/***/ }), -/* 499 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Polish [pl] - //! author : Rafal Hirsz : https://github.com/evoL + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var Popup = function (_Component) { + (0, _inherits3['default'])(Popup, _Component); - //! moment.js locale configuration + function Popup(props) { + (0, _classCallCheck3['default'])(this, Popup); - var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split( - '_' - ), - monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split( - '_' - ); - function plural(n) { - return n % 10 < 5 && n % 10 > 1 && ~~(n / 10) % 10 !== 1; + var _this = (0, _possibleConstructorReturn3['default'])(this, _Component.call(this, props)); + + _initialiseProps.call(_this); + + _this.state = { + // Used for stretch + stretchChecked: false, + targetWidth: undefined, + targetHeight: undefined + }; + + _this.savePopupRef = _utils.saveRef.bind(_this, 'popupInstance'); + _this.saveAlignRef = _utils.saveRef.bind(_this, 'alignInstance'); + return _this; + } + + Popup.prototype.componentDidMount = function componentDidMount() { + this.rootNode = this.getPopupDomNode(); + this.setStretchSize(); + }; + + Popup.prototype.componentDidUpdate = function componentDidUpdate() { + this.setStretchSize(); + }; + + // Record size if stretch needed + + + Popup.prototype.getPopupDomNode = function getPopupDomNode() { + return _reactDom2['default'].findDOMNode(this.popupInstance); + }; + + // `target` on `rc-align` can accept as a function to get the bind element or a point. + // ref: https://www.npmjs.com/package/rc-align + + + Popup.prototype.getMaskTransitionName = function getMaskTransitionName() { + var props = this.props; + var transitionName = props.maskTransitionName; + var animation = props.maskAnimation; + if (!transitionName && animation) { + transitionName = props.prefixCls + '-' + animation; } - function translate(number, withoutSuffix, key) { - var result = number + ' '; - switch (key) { - case 'ss': - return result + (plural(number) ? 'sekundy' : 'sekund'); - case 'm': - return withoutSuffix ? 'minuta' : 'minutę'; - case 'mm': - return result + (plural(number) ? 'minuty' : 'minut'); - case 'h': - return withoutSuffix ? 'godzina' : 'godzinę'; - case 'hh': - return result + (plural(number) ? 'godziny' : 'godzin'); - case 'MM': - return result + (plural(number) ? 'miesiące' : 'miesięcy'); - case 'yy': - return result + (plural(number) ? 'lata' : 'lat'); - } + return transitionName; + }; + + Popup.prototype.getTransitionName = function getTransitionName() { + var props = this.props; + var transitionName = props.transitionName; + if (!transitionName && props.animation) { + transitionName = props.prefixCls + '-' + props.animation; } + return transitionName; + }; - var pl = moment.defineLocale('pl', { - months: function (momentToFormat, format) { - if (!momentToFormat) { - return monthsNominative; - } else if (format === '') { - // Hack: if format empty we know this is used to generate - // RegExp by moment. Give then back both valid forms of months - // in RegExp ready format. - return ( - '(' + - monthsSubjective[momentToFormat.month()] + - '|' + - monthsNominative[momentToFormat.month()] + - ')' - ); - } else if (/D MMMM/.test(format)) { - return monthsSubjective[momentToFormat.month()]; - } else { - return monthsNominative[momentToFormat.month()]; - } - }, - monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'), - weekdays: 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split( - '_' - ), - weekdaysShort: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'), - weekdaysMin: 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Dziś o] LT', - nextDay: '[Jutro o] LT', - nextWeek: function () { - switch (this.day()) { - case 0: - return '[W niedzielę o] LT'; + Popup.prototype.getClassName = function getClassName(currentAlignClassName) { + return this.props.prefixCls + ' ' + this.props.className + ' ' + currentAlignClassName; + }; - case 2: - return '[We wtorek o] LT'; + Popup.prototype.getPopupElement = function getPopupElement() { + var _this2 = this; - case 3: - return '[W środę o] LT'; + var savePopupRef = this.savePopupRef; + var _state = this.state, + stretchChecked = _state.stretchChecked, + targetHeight = _state.targetHeight, + targetWidth = _state.targetWidth; + var _props = this.props, + align = _props.align, + visible = _props.visible, + prefixCls = _props.prefixCls, + style = _props.style, + getClassNameFromAlign = _props.getClassNameFromAlign, + destroyPopupOnHide = _props.destroyPopupOnHide, + stretch = _props.stretch, + children = _props.children, + onMouseEnter = _props.onMouseEnter, + onMouseLeave = _props.onMouseLeave, + onMouseDown = _props.onMouseDown, + onTouchStart = _props.onTouchStart; - case 6: - return '[W sobotę o] LT'; + var className = this.getClassName(this.currentAlignClassName || getClassNameFromAlign(align)); + var hiddenClassName = prefixCls + '-hidden'; - default: - return '[W] dddd [o] LT'; - } - }, - lastDay: '[Wczoraj o] LT', - lastWeek: function () { - switch (this.day()) { - case 0: - return '[W zeszłą niedzielę o] LT'; - case 3: - return '[W zeszłą środę o] LT'; - case 6: - return '[W zeszłą sobotę o] LT'; - default: - return '[W zeszły] dddd [o] LT'; - } - }, - sameElse: 'L', - }, - relativeTime: { - future: 'za %s', - past: '%s temu', - s: 'kilka sekund', - ss: translate, - m: translate, - mm: translate, - h: translate, - hh: translate, - d: '1 dzień', - dd: '%d dni', - M: 'miesiąc', - MM: translate, - y: 'rok', - yy: translate, + if (!visible) { + this.currentAlignClassName = null; + } + + var sizeStyle = {}; + if (stretch) { + // Stretch with target + if (stretch.indexOf('height') !== -1) { + sizeStyle.height = targetHeight; + } else if (stretch.indexOf('minHeight') !== -1) { + sizeStyle.minHeight = targetHeight; + } + if (stretch.indexOf('width') !== -1) { + sizeStyle.width = targetWidth; + } else if (stretch.indexOf('minWidth') !== -1) { + sizeStyle.minWidth = targetWidth; + } + + // Delay force align to makes ui smooth + if (!stretchChecked) { + sizeStyle.visibility = 'hidden'; + setTimeout(function () { + if (_this2.alignInstance) { + _this2.alignInstance.forceAlign(); + } + }, 0); + } + } + + var newStyle = (0, _extends3['default'])({}, sizeStyle, style, this.getZIndexStyle()); + + var popupInnerProps = { + className: className, + prefixCls: prefixCls, + ref: savePopupRef, + onMouseEnter: onMouseEnter, + onMouseLeave: onMouseLeave, + onMouseDown: onMouseDown, + onTouchStart: onTouchStart, + style: newStyle + }; + if (destroyPopupOnHide) { + return _react2['default'].createElement( + _rcAnimate2['default'], + { + component: '', + exclusive: true, + transitionAppear: true, + transitionName: this.getTransitionName() }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. + visible ? _react2['default'].createElement( + _rcAlign2['default'], + { + target: this.getAlignTarget(), + key: 'popup', + ref: this.saveAlignRef, + monitorWindowResize: true, + align: align, + onAlign: this.onAlign + }, + _react2['default'].createElement( + _PopupInner2['default'], + (0, _extends3['default'])({ + visible: true + }, popupInnerProps), + children + ) + ) : null + ); + } + + return _react2['default'].createElement( + _rcAnimate2['default'], + { + component: '', + exclusive: true, + transitionAppear: true, + transitionName: this.getTransitionName(), + showProp: 'xVisible' + }, + _react2['default'].createElement( + _rcAlign2['default'], + { + target: this.getAlignTarget(), + key: 'popup', + ref: this.saveAlignRef, + monitorWindowResize: true, + xVisible: visible, + childrenProps: { visible: 'xVisible' }, + disabled: !visible, + align: align, + onAlign: this.onAlign }, - }); + _react2['default'].createElement( + _PopupInner2['default'], + (0, _extends3['default'])({ + hiddenClassName: hiddenClassName + }, popupInnerProps), + children + ) + ) + ); + }; - return pl; + Popup.prototype.getZIndexStyle = function getZIndexStyle() { + var style = {}; + var props = this.props; + if (props.zIndex !== undefined) { + style.zIndex = props.zIndex; + } + return style; + }; - }))); - - -/***/ }), -/* 500 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Portuguese [pt] - //! author : Jefferson : https://github.com/jalex79 + Popup.prototype.getMaskElement = function getMaskElement() { + var props = this.props; + var maskElement = void 0; + if (props.mask) { + var maskTransition = this.getMaskTransitionName(); + maskElement = _react2['default'].createElement(_LazyRenderBox2['default'], { + style: this.getZIndexStyle(), + key: 'mask', + className: props.prefixCls + '-mask', + hiddenClassName: props.prefixCls + '-mask-hidden', + visible: props.visible + }); + if (maskTransition) { + maskElement = _react2['default'].createElement( + _rcAnimate2['default'], + { + key: 'mask', + showProp: 'visible', + transitionAppear: true, + component: '', + transitionName: maskTransition + }, + maskElement + ); + } + } + return maskElement; + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + Popup.prototype.render = function render() { + return _react2['default'].createElement( + 'div', + null, + this.getMaskElement(), + this.getPopupElement() + ); + }; + + return Popup; + }(_react.Component); + + Popup.propTypes = { + visible: _propTypes2['default'].bool, + style: _propTypes2['default'].object, + getClassNameFromAlign: _propTypes2['default'].func, + onAlign: _propTypes2['default'].func, + getRootDomNode: _propTypes2['default'].func, + align: _propTypes2['default'].any, + destroyPopupOnHide: _propTypes2['default'].bool, + className: _propTypes2['default'].string, + prefixCls: _propTypes2['default'].string, + onMouseEnter: _propTypes2['default'].func, + onMouseLeave: _propTypes2['default'].func, + onMouseDown: _propTypes2['default'].func, + onTouchStart: _propTypes2['default'].func, + stretch: _propTypes2['default'].string, + children: _propTypes2['default'].node, + point: _propTypes2['default'].shape({ + pageX: _propTypes2['default'].number, + pageY: _propTypes2['default'].number + }) + }; + + var _initialiseProps = function _initialiseProps() { + var _this3 = this; + + this.onAlign = function (popupDomNode, align) { + var props = _this3.props; + var currentAlignClassName = props.getClassNameFromAlign(align); + // FIX: https://github.com/react-component/trigger/issues/56 + // FIX: https://github.com/react-component/tooltip/issues/79 + if (_this3.currentAlignClassName !== currentAlignClassName) { + _this3.currentAlignClassName = currentAlignClassName; + popupDomNode.className = _this3.getClassName(currentAlignClassName); + } + props.onAlign(popupDomNode, align); + }; + + this.setStretchSize = function () { + var _props2 = _this3.props, + stretch = _props2.stretch, + getRootDomNode = _props2.getRootDomNode, + visible = _props2.visible; + var _state2 = _this3.state, + stretchChecked = _state2.stretchChecked, + targetHeight = _state2.targetHeight, + targetWidth = _state2.targetWidth; + + + if (!stretch || !visible) { + if (stretchChecked) { + _this3.setState({ stretchChecked: false }); + } + return; + } + + var $ele = getRootDomNode(); + if (!$ele) return; + + var height = $ele.offsetHeight; + var width = $ele.offsetWidth; + + if (targetHeight !== height || targetWidth !== width || !stretchChecked) { + _this3.setState({ + stretchChecked: true, + targetHeight: height, + targetWidth: width + }); + } + }; - //! moment.js locale configuration + this.getTargetElement = function () { + return _this3.props.getRootDomNode(); + }; - var pt = moment.defineLocale('pt', { - months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split( - '_' - ), - monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'), - weekdays: 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split( - '_' - ), - weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'), - weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D [de] MMMM [de] YYYY', - LLL: 'D [de] MMMM [de] YYYY HH:mm', - LLLL: 'dddd, D [de] MMMM [de] YYYY HH:mm', - }, - calendar: { - sameDay: '[Hoje às] LT', - nextDay: '[Amanhã às] LT', - nextWeek: 'dddd [às] LT', - lastDay: '[Ontem às] LT', - lastWeek: function () { - return this.day() === 0 || this.day() === 6 - ? '[Último] dddd [às] LT' // Saturday + Sunday - : '[Última] dddd [às] LT'; // Monday - Friday - }, - sameElse: 'L', - }, - relativeTime: { - future: 'em %s', - past: 'há %s', - s: 'segundos', - ss: '%d segundos', - m: 'um minuto', - mm: '%d minutos', - h: 'uma hora', - hh: '%d horas', - d: 'um dia', - dd: '%d dias', - M: 'um mês', - MM: '%d meses', - y: 'um ano', - yy: '%d anos', - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + this.getAlignTarget = function () { + var point = _this3.props.point; - return pt; + if (point) { + return point; + } + return _this3.getTargetElement; + }; + }; - }))); - + exports['default'] = Popup; + module.exports = exports['default']; /***/ }), -/* 501 */ +/* 381 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Portuguese (Brazil) [pt-br] - //! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira + 'use strict'; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + Object.defineProperty(exports, "__esModule", { + value: true + }); - //! moment.js locale configuration + var _Align = __webpack_require__(382); - var ptBr = moment.defineLocale('pt-br', { - months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split( - '_' - ), - monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'), - weekdays: 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split( - '_' - ), - weekdaysShort: 'dom_seg_ter_qua_qui_sex_sáb'.split('_'), - weekdaysMin: 'do_2ª_3ª_4ª_5ª_6ª_sá'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D [de] MMMM [de] YYYY', - LLL: 'D [de] MMMM [de] YYYY [às] HH:mm', - LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm', - }, - calendar: { - sameDay: '[Hoje às] LT', - nextDay: '[Amanhã às] LT', - nextWeek: 'dddd [às] LT', - lastDay: '[Ontem às] LT', - lastWeek: function () { - return this.day() === 0 || this.day() === 6 - ? '[Último] dddd [às] LT' // Saturday + Sunday - : '[Última] dddd [às] LT'; // Monday - Friday - }, - sameElse: 'L', - }, - relativeTime: { - future: 'em %s', - past: 'há %s', - s: 'poucos segundos', - ss: '%d segundos', - m: 'um minuto', - mm: '%d minutos', - h: 'uma hora', - hh: '%d horas', - d: 'um dia', - dd: '%d dias', - M: 'um mês', - MM: '%d meses', - y: 'um ano', - yy: '%d anos', - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - }); + var _Align2 = _interopRequireDefault(_Align); - return ptBr; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - }))); - + exports['default'] = _Align2['default']; // export this package's api + + module.exports = exports['default']; /***/ }), -/* 502 */ +/* 382 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Romanian [ro] - //! author : Vlad Gurdiga : https://github.com/gurdiga - //! author : Valentin Agachi : https://github.com/avaly - //! author : Emanuel Cepoi : https://github.com/cepem - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + 'use strict'; - //! moment.js locale configuration + Object.defineProperty(exports, "__esModule", { + value: true + }); - function relativeTimeWithPlural(number, withoutSuffix, key) { - var format = { - ss: 'secunde', - mm: 'minute', - hh: 'ore', - dd: 'zile', - MM: 'luni', - yy: 'ani', - }, - separator = ' '; - if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) { - separator = ' de '; - } - return number + separator + format[key]; - } + var _classCallCheck2 = __webpack_require__(337); - var ro = moment.defineLocale('ro', { - months: 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split( - '_' - ), - monthsShort: 'ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'), - weekdaysShort: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'), - weekdaysMin: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'), - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY H:mm', - LLLL: 'dddd, D MMMM YYYY H:mm', - }, - calendar: { - sameDay: '[azi la] LT', - nextDay: '[mâine la] LT', - nextWeek: 'dddd [la] LT', - lastDay: '[ieri la] LT', - lastWeek: '[fosta] dddd [la] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'peste %s', - past: '%s în urmă', - s: 'câteva secunde', - ss: relativeTimeWithPlural, - m: 'un minut', - mm: relativeTimeWithPlural, - h: 'o oră', - hh: relativeTimeWithPlural, - d: 'o zi', - dd: relativeTimeWithPlural, - M: 'o lună', - MM: relativeTimeWithPlural, - y: 'un an', - yy: relativeTimeWithPlural, - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); + var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - return ro; + var _createClass2 = __webpack_require__(383); - }))); - - -/***/ }), -/* 503 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Russian [ru] - //! author : Viktorminator : https://github.com/Viktorminator - //! author : Menelion Elensúle : https://github.com/Oire - //! author : Коренберг Марк : https://github.com/socketpair + var _createClass3 = _interopRequireDefault(_createClass2); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _possibleConstructorReturn2 = __webpack_require__(338); - //! moment.js locale configuration + var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - function plural(word, num) { - var forms = word.split('_'); - return num % 10 === 1 && num % 100 !== 11 - ? forms[0] - : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) - ? forms[1] - : forms[2]; - } - function relativeTimeWithPlural(number, withoutSuffix, key) { - var format = { - ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд', - mm: withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут', - hh: 'час_часа_часов', - dd: 'день_дня_дней', - MM: 'месяц_месяца_месяцев', - yy: 'год_года_лет', - }; - if (key === 'm') { - return withoutSuffix ? 'минута' : 'минуту'; - } else { - return number + ' ' + plural(format[key], +number); - } - } - var monthsParse = [ - /^янв/i, - /^фев/i, - /^мар/i, - /^апр/i, - /^ма[йя]/i, - /^июн/i, - /^июл/i, - /^авг/i, - /^сен/i, - /^окт/i, - /^ноя/i, - /^дек/i, - ]; + var _inherits2 = __webpack_require__(369); - // http://new.gramota.ru/spravka/rules/139-prop : § 103 - // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637 - // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753 - var ru = moment.defineLocale('ru', { - months: { - format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split( - '_' - ), - standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split( - '_' - ), - }, - monthsShort: { - // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку? - format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split( - '_' - ), - standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split( - '_' - ), - }, - weekdays: { - standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split( - '_' - ), - format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split( - '_' - ), - isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/, - }, - weekdaysShort: 'вс_пн_вт_ср_чт_пт_сб'.split('_'), - weekdaysMin: 'вс_пн_вт_ср_чт_пт_сб'.split('_'), - monthsParse: monthsParse, - longMonthsParse: monthsParse, - shortMonthsParse: monthsParse, + var _inherits3 = _interopRequireDefault(_inherits2); - // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки - monthsRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i, + var _react = __webpack_require__(1); - // копия предыдущего - monthsShortRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i, + var _react2 = _interopRequireDefault(_react); - // полные названия с падежами - monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i, + var _propTypes = __webpack_require__(6); - // Выражение, которое соответствует только сокращённым формам - monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY г.', - LLL: 'D MMMM YYYY г., H:mm', - LLLL: 'dddd, D MMMM YYYY г., H:mm', - }, - calendar: { - sameDay: '[Сегодня, в] LT', - nextDay: '[Завтра, в] LT', - lastDay: '[Вчера, в] LT', - nextWeek: function (now) { - if (now.week() !== this.week()) { - switch (this.day()) { - case 0: - return '[В следующее] dddd, [в] LT'; - case 1: - case 2: - case 4: - return '[В следующий] dddd, [в] LT'; - case 3: - case 5: - case 6: - return '[В следующую] dddd, [в] LT'; - } - } else { - if (this.day() === 2) { - return '[Во] dddd, [в] LT'; - } else { - return '[В] dddd, [в] LT'; - } - } - }, - lastWeek: function (now) { - if (now.week() !== this.week()) { - switch (this.day()) { - case 0: - return '[В прошлое] dddd, [в] LT'; - case 1: - case 2: - case 4: - return '[В прошлый] dddd, [в] LT'; - case 3: - case 5: - case 6: - return '[В прошлую] dddd, [в] LT'; - } - } else { - if (this.day() === 2) { - return '[Во] dddd, [в] LT'; - } else { - return '[В] dddd, [в] LT'; - } - } - }, - sameElse: 'L', - }, - relativeTime: { - future: 'через %s', - past: '%s назад', - s: 'несколько секунд', - ss: relativeTimeWithPlural, - m: relativeTimeWithPlural, - mm: relativeTimeWithPlural, - h: 'час', - hh: relativeTimeWithPlural, - d: 'день', - dd: relativeTimeWithPlural, - M: 'месяц', - MM: relativeTimeWithPlural, - y: 'год', - yy: relativeTimeWithPlural, - }, - meridiemParse: /ночи|утра|дня|вечера/i, - isPM: function (input) { - return /^(дня|вечера)$/.test(input); - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'ночи'; - } else if (hour < 12) { - return 'утра'; - } else if (hour < 17) { - return 'дня'; - } else { - return 'вечера'; - } - }, - dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/, - ordinal: function (number, period) { - switch (period) { - case 'M': - case 'd': - case 'DDD': - return number + '-й'; - case 'D': - return number + '-го'; - case 'w': - case 'W': - return number + '-я'; - default: - return number; - } - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var _propTypes2 = _interopRequireDefault(_propTypes); - return ru; + var _reactDom = __webpack_require__(2); - }))); - - -/***/ }), -/* 504 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Sindhi [sd] - //! author : Narain Sagar : https://github.com/narainsagar + var _reactDom2 = _interopRequireDefault(_reactDom); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _domAlign = __webpack_require__(51); - //! moment.js locale configuration + var _addEventListener = __webpack_require__(376); - var months = [ - 'جنوري', - 'فيبروري', - 'مارچ', - 'اپريل', - 'مئي', - 'جون', - 'جولاءِ', - 'آگسٽ', - 'سيپٽمبر', - 'آڪٽوبر', - 'نومبر', - 'ڊسمبر', - ], - days = ['آچر', 'سومر', 'اڱارو', 'اربع', 'خميس', 'جمع', 'ڇنڇر']; + var _addEventListener2 = _interopRequireDefault(_addEventListener); - var sd = moment.defineLocale('sd', { - months: months, - monthsShort: months, - weekdays: days, - weekdaysShort: days, - weekdaysMin: days, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd، D MMMM YYYY HH:mm', - }, - meridiemParse: /صبح|شام/, - isPM: function (input) { - return 'شام' === input; - }, - meridiem: function (hour, minute, isLower) { - if (hour < 12) { - return 'صبح'; - } - return 'شام'; - }, - calendar: { - sameDay: '[اڄ] LT', - nextDay: '[سڀاڻي] LT', - nextWeek: 'dddd [اڳين هفتي تي] LT', - lastDay: '[ڪالهه] LT', - lastWeek: '[گزريل هفتي] dddd [تي] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s پوء', - past: '%s اڳ', - s: 'چند سيڪنڊ', - ss: '%d سيڪنڊ', - m: 'هڪ منٽ', - mm: '%d منٽ', - h: 'هڪ ڪلاڪ', - hh: '%d ڪلاڪ', - d: 'هڪ ڏينهن', - dd: '%d ڏينهن', - M: 'هڪ مهينو', - MM: '%d مهينا', - y: 'هڪ سال', - yy: '%d سال', - }, - preparse: function (string) { - return string.replace(/،/g, ','); - }, - postformat: function (string) { - return string.replace(/,/g, '،'); - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var _util = __webpack_require__(387); - return sd; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - }))); - - -/***/ }), -/* 505 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Northern Sami [se] - //! authors : Bård Rolstad Henriksen : https://github.com/karamell + function getElement(func) { + if (typeof func !== 'function' || !func) return null; + return func(); + } - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + function getPoint(point) { + if (typeof point !== 'object' || !point) return null; + return point; + } - //! moment.js locale configuration + var Align = function (_Component) { + (0, _inherits3['default'])(Align, _Component); - var se = moment.defineLocale('se', { - months: 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split( - '_' - ), - monthsShort: 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split( - '_' - ), - weekdays: 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split( - '_' - ), - weekdaysShort: 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'), - weekdaysMin: 's_v_m_g_d_b_L'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'MMMM D. [b.] YYYY', - LLL: 'MMMM D. [b.] YYYY [ti.] HH:mm', - LLLL: 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm', - }, - calendar: { - sameDay: '[otne ti] LT', - nextDay: '[ihttin ti] LT', - nextWeek: 'dddd [ti] LT', - lastDay: '[ikte ti] LT', - lastWeek: '[ovddit] dddd [ti] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s geažes', - past: 'maŋit %s', - s: 'moadde sekunddat', - ss: '%d sekunddat', - m: 'okta minuhta', - mm: '%d minuhtat', - h: 'okta diimmu', - hh: '%d diimmut', - d: 'okta beaivi', - dd: '%d beaivvit', - M: 'okta mánnu', - MM: '%d mánut', - y: 'okta jahki', - yy: '%d jagit', - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + function Align() { + var _ref; - return se; + var _temp, _this, _ret; - }))); - - -/***/ }), -/* 506 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Sinhalese [si] - //! author : Sampath Sitinamaluwa : https://github.com/sampathsris + (0, _classCallCheck3['default'])(this, Align); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } - //! moment.js locale configuration + return _ret = (_temp = (_this = (0, _possibleConstructorReturn3['default'])(this, (_ref = Align.__proto__ || Object.getPrototypeOf(Align)).call.apply(_ref, [this].concat(args))), _this), _this.forceAlign = function () { + var _this$props = _this.props, + disabled = _this$props.disabled, + target = _this$props.target, + align = _this$props.align, + onAlign = _this$props.onAlign; - /*jshint -W100*/ - var si = moment.defineLocale('si', { - months: 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split( - '_' - ), - monthsShort: 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split( - '_' - ), - weekdays: 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split( - '_' - ), - weekdaysShort: 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'), - weekdaysMin: 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'a h:mm', - LTS: 'a h:mm:ss', - L: 'YYYY/MM/DD', - LL: 'YYYY MMMM D', - LLL: 'YYYY MMMM D, a h:mm', - LLLL: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss', - }, - calendar: { - sameDay: '[අද] LT[ට]', - nextDay: '[හෙට] LT[ට]', - nextWeek: 'dddd LT[ට]', - lastDay: '[ඊයේ] LT[ට]', - lastWeek: '[පසුගිය] dddd LT[ට]', - sameElse: 'L', - }, - relativeTime: { - future: '%sකින්', - past: '%sකට පෙර', - s: 'තත්පර කිහිපය', - ss: 'තත්පර %d', - m: 'මිනිත්තුව', - mm: 'මිනිත්තු %d', - h: 'පැය', - hh: 'පැය %d', - d: 'දිනය', - dd: 'දින %d', - M: 'මාසය', - MM: 'මාස %d', - y: 'වසර', - yy: 'වසර %d', - }, - dayOfMonthOrdinalParse: /\d{1,2} වැනි/, - ordinal: function (number) { - return number + ' වැනි'; - }, - meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./, - isPM: function (input) { - return input === 'ප.ව.' || input === 'පස් වරු'; - }, - meridiem: function (hours, minutes, isLower) { - if (hours > 11) { - return isLower ? 'ප.ව.' : 'පස් වරු'; - } else { - return isLower ? 'පෙ.ව.' : 'පෙර වරු'; - } - }, - }); + if (!disabled && target) { + var source = _reactDom2['default'].findDOMNode(_this); - return si; + var result = void 0; + var element = getElement(target); + var point = getPoint(target); - }))); - - -/***/ }), -/* 507 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Slovak [sk] - //! author : Martin Minka : https://github.com/k2s - //! based on work of petrbela : https://github.com/petrbela + // IE lose focus after element realign + // We should record activeElement and restore later + var activeElement = document.activeElement; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + if (element) { + result = (0, _domAlign.alignElement)(source, element, align); + } else if (point) { + result = (0, _domAlign.alignPoint)(source, point, align); + } - //! moment.js locale configuration + (0, _util.restoreFocus)(activeElement, source); - var months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split( - '_' - ), - monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_'); - function plural(n) { - return n > 1 && n < 5; - } - function translate(number, withoutSuffix, key, isFuture) { - var result = number + ' '; - switch (key) { - case 's': // a few seconds / in a few seconds / a few seconds ago - return withoutSuffix || isFuture ? 'pár sekúnd' : 'pár sekundami'; - case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'sekundy' : 'sekúnd'); - } else { - return result + 'sekundami'; - } - case 'm': // a minute / in a minute / a minute ago - return withoutSuffix ? 'minúta' : isFuture ? 'minútu' : 'minútou'; - case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'minúty' : 'minút'); - } else { - return result + 'minútami'; - } - case 'h': // an hour / in an hour / an hour ago - return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou'; - case 'hh': // 9 hours / in 9 hours / 9 hours ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'hodiny' : 'hodín'); - } else { - return result + 'hodinami'; - } - case 'd': // a day / in a day / a day ago - return withoutSuffix || isFuture ? 'deň' : 'dňom'; - case 'dd': // 9 days / in 9 days / 9 days ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'dni' : 'dní'); - } else { - return result + 'dňami'; - } - case 'M': // a month / in a month / a month ago - return withoutSuffix || isFuture ? 'mesiac' : 'mesiacom'; - case 'MM': // 9 months / in 9 months / 9 months ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'mesiace' : 'mesiacov'); - } else { - return result + 'mesiacmi'; - } - case 'y': // a year / in a year / a year ago - return withoutSuffix || isFuture ? 'rok' : 'rokom'; - case 'yy': // 9 years / in 9 years / 9 years ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'roky' : 'rokov'); - } else { - return result + 'rokmi'; - } + if (onAlign) { + onAlign(source, result); } + } + }, _temp), (0, _possibleConstructorReturn3['default'])(_this, _ret); + } + + (0, _createClass3['default'])(Align, [{ + key: 'componentDidMount', + value: function componentDidMount() { + var props = this.props; + // if parent ref not attached .... use document.getElementById + this.forceAlign(); + if (!props.disabled && props.monitorWindowResize) { + this.startMonitorWindowResize(); + } } + }, { + key: 'componentDidUpdate', + value: function componentDidUpdate(prevProps) { + var reAlign = false; + var props = this.props; - var sk = moment.defineLocale('sk', { - months: months, - monthsShort: monthsShort, - weekdays: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'), - weekdaysShort: 'ne_po_ut_st_št_pi_so'.split('_'), - weekdaysMin: 'ne_po_ut_st_št_pi_so'.split('_'), - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd D. MMMM YYYY H:mm', - }, - calendar: { - sameDay: '[dnes o] LT', - nextDay: '[zajtra o] LT', - nextWeek: function () { - switch (this.day()) { - case 0: - return '[v nedeľu o] LT'; - case 1: - case 2: - return '[v] dddd [o] LT'; - case 3: - return '[v stredu o] LT'; - case 4: - return '[vo štvrtok o] LT'; - case 5: - return '[v piatok o] LT'; - case 6: - return '[v sobotu o] LT'; - } - }, - lastDay: '[včera o] LT', - lastWeek: function () { - switch (this.day()) { - case 0: - return '[minulú nedeľu o] LT'; - case 1: - case 2: - return '[minulý] dddd [o] LT'; - case 3: - return '[minulú stredu o] LT'; - case 4: - case 5: - return '[minulý] dddd [o] LT'; - case 6: - return '[minulú sobotu o] LT'; - } - }, - sameElse: 'L', - }, - relativeTime: { - future: 'za %s', - past: 'pred %s', - s: translate, - ss: translate, - m: translate, - mm: translate, - h: translate, - hh: translate, - d: translate, - dd: translate, - M: translate, - MM: translate, - y: translate, - yy: translate, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + if (!props.disabled) { + var source = _reactDom2['default'].findDOMNode(this); + var sourceRect = source ? source.getBoundingClientRect() : null; - return sk; + if (prevProps.disabled) { + reAlign = true; + } else { + var lastElement = getElement(prevProps.target); + var currentElement = getElement(props.target); + var lastPoint = getPoint(prevProps.target); + var currentPoint = getPoint(props.target); - }))); - - -/***/ }), -/* 508 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Slovenian [sl] - //! author : Robert Sedovšek : https://github.com/sedovsek + if ((0, _util.isWindow)(lastElement) && (0, _util.isWindow)(currentElement)) { + // Skip if is window + reAlign = false; + } else if (lastElement !== currentElement || // Element change + lastElement && !currentElement && currentPoint || // Change from element to point + lastPoint && currentPoint && currentElement || // Change from point to element + currentPoint && !(0, _util.isSamePoint)(lastPoint, currentPoint)) { + reAlign = true; + } - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + // If source element size changed + var preRect = this.sourceRect || {}; + if (!reAlign && source && (!(0, _util.isSimilarValue)(preRect.width, sourceRect.width) || !(0, _util.isSimilarValue)(preRect.height, sourceRect.height))) { + reAlign = true; + } + } - //! moment.js locale configuration + this.sourceRect = sourceRect; + } - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var result = number + ' '; - switch (key) { - case 's': - return withoutSuffix || isFuture - ? 'nekaj sekund' - : 'nekaj sekundami'; - case 'ss': - if (number === 1) { - result += withoutSuffix ? 'sekundo' : 'sekundi'; - } else if (number === 2) { - result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah'; - } else if (number < 5) { - result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah'; - } else { - result += 'sekund'; - } - return result; - case 'm': - return withoutSuffix ? 'ena minuta' : 'eno minuto'; - case 'mm': - if (number === 1) { - result += withoutSuffix ? 'minuta' : 'minuto'; - } else if (number === 2) { - result += withoutSuffix || isFuture ? 'minuti' : 'minutama'; - } else if (number < 5) { - result += withoutSuffix || isFuture ? 'minute' : 'minutami'; - } else { - result += withoutSuffix || isFuture ? 'minut' : 'minutami'; - } - return result; - case 'h': - return withoutSuffix ? 'ena ura' : 'eno uro'; - case 'hh': - if (number === 1) { - result += withoutSuffix ? 'ura' : 'uro'; - } else if (number === 2) { - result += withoutSuffix || isFuture ? 'uri' : 'urama'; - } else if (number < 5) { - result += withoutSuffix || isFuture ? 'ure' : 'urami'; - } else { - result += withoutSuffix || isFuture ? 'ur' : 'urami'; - } - return result; - case 'd': - return withoutSuffix || isFuture ? 'en dan' : 'enim dnem'; - case 'dd': - if (number === 1) { - result += withoutSuffix || isFuture ? 'dan' : 'dnem'; - } else if (number === 2) { - result += withoutSuffix || isFuture ? 'dni' : 'dnevoma'; - } else { - result += withoutSuffix || isFuture ? 'dni' : 'dnevi'; - } - return result; - case 'M': - return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem'; - case 'MM': - if (number === 1) { - result += withoutSuffix || isFuture ? 'mesec' : 'mesecem'; - } else if (number === 2) { - result += withoutSuffix || isFuture ? 'meseca' : 'mesecema'; - } else if (number < 5) { - result += withoutSuffix || isFuture ? 'mesece' : 'meseci'; - } else { - result += withoutSuffix || isFuture ? 'mesecev' : 'meseci'; - } - return result; - case 'y': - return withoutSuffix || isFuture ? 'eno leto' : 'enim letom'; - case 'yy': - if (number === 1) { - result += withoutSuffix || isFuture ? 'leto' : 'letom'; - } else if (number === 2) { - result += withoutSuffix || isFuture ? 'leti' : 'letoma'; - } else if (number < 5) { - result += withoutSuffix || isFuture ? 'leta' : 'leti'; - } else { - result += withoutSuffix || isFuture ? 'let' : 'leti'; - } - return result; - } + if (reAlign) { + this.forceAlign(); + } + + if (props.monitorWindowResize && !props.disabled) { + this.startMonitorWindowResize(); + } else { + this.stopMonitorWindowResize(); + } + } + }, { + key: 'componentWillUnmount', + value: function componentWillUnmount() { + this.stopMonitorWindowResize(); + } + }, { + key: 'startMonitorWindowResize', + value: function startMonitorWindowResize() { + if (!this.resizeHandler) { + this.bufferMonitor = (0, _util.buffer)(this.forceAlign, this.props.monitorBufferTime); + this.resizeHandler = (0, _addEventListener2['default'])(window, 'resize', this.bufferMonitor); + } + } + }, { + key: 'stopMonitorWindowResize', + value: function stopMonitorWindowResize() { + if (this.resizeHandler) { + this.bufferMonitor.clear(); + this.resizeHandler.remove(); + this.resizeHandler = null; + } } + }, { + key: 'render', + value: function render() { + var _this2 = this; - var sl = moment.defineLocale('sl', { - months: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split( - '_' - ), - monthsShort: 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'), - weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'), - weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD. MM. YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd, D. MMMM YYYY H:mm', - }, - calendar: { - sameDay: '[danes ob] LT', - nextDay: '[jutri ob] LT', + var _props = this.props, + childrenProps = _props.childrenProps, + children = _props.children; - nextWeek: function () { - switch (this.day()) { - case 0: - return '[v] [nedeljo] [ob] LT'; - case 3: - return '[v] [sredo] [ob] LT'; - case 6: - return '[v] [soboto] [ob] LT'; - case 1: - case 2: - case 4: - case 5: - return '[v] dddd [ob] LT'; - } - }, - lastDay: '[včeraj ob] LT', - lastWeek: function () { - switch (this.day()) { - case 0: - return '[prejšnjo] [nedeljo] [ob] LT'; - case 3: - return '[prejšnjo] [sredo] [ob] LT'; - case 6: - return '[prejšnjo] [soboto] [ob] LT'; - case 1: - case 2: - case 4: - case 5: - return '[prejšnji] dddd [ob] LT'; - } - }, - sameElse: 'L', - }, - relativeTime: { - future: 'čez %s', - past: 'pred %s', - s: processRelativeTime, - ss: processRelativeTime, - m: processRelativeTime, - mm: processRelativeTime, - h: processRelativeTime, - hh: processRelativeTime, - d: processRelativeTime, - dd: processRelativeTime, - M: processRelativeTime, - MM: processRelativeTime, - y: processRelativeTime, - yy: processRelativeTime, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); + var child = _react2['default'].Children.only(children); + if (childrenProps) { + var newProps = {}; + var propList = Object.keys(childrenProps); + propList.forEach(function (prop) { + newProps[prop] = _this2.props[childrenProps[prop]]; + }); - return sl; + return _react2['default'].cloneElement(child, newProps); + } + return child; + } + }]); + return Align; + }(_react.Component); - }))); - + Align.propTypes = { + childrenProps: _propTypes2['default'].object, + align: _propTypes2['default'].object.isRequired, + target: _propTypes2['default'].oneOfType([_propTypes2['default'].func, _propTypes2['default'].shape({ + clientX: _propTypes2['default'].number, + clientY: _propTypes2['default'].number, + pageX: _propTypes2['default'].number, + pageY: _propTypes2['default'].number + })]), + onAlign: _propTypes2['default'].func, + monitorBufferTime: _propTypes2['default'].number, + monitorWindowResize: _propTypes2['default'].bool, + disabled: _propTypes2['default'].bool, + children: _propTypes2['default'].any + }; + Align.defaultProps = { + target: function target() { + return window; + }, + monitorBufferTime: 50, + monitorWindowResize: false, + disabled: false + }; + exports['default'] = Align; + module.exports = exports['default']; /***/ }), -/* 509 */ +/* 383 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Albanian [sq] - //! author : Flakërim Ismani : https://github.com/flakerimi - //! author : Menelion Elensúle : https://github.com/Oire - //! author : Oerd Cukalla : https://github.com/oerd + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + exports.__esModule = true; - //! moment.js locale configuration + var _defineProperty = __webpack_require__(384); - var sq = moment.defineLocale('sq', { - months: 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split( - '_' - ), - monthsShort: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'), - weekdays: 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split( - '_' - ), - weekdaysShort: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'), - weekdaysMin: 'D_H_Ma_Më_E_P_Sh'.split('_'), - weekdaysParseExact: true, - meridiemParse: /PD|MD/, - isPM: function (input) { - return input.charAt(0) === 'M'; - }, - meridiem: function (hours, minutes, isLower) { - return hours < 12 ? 'PD' : 'MD'; - }, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Sot në] LT', - nextDay: '[Nesër në] LT', - nextWeek: 'dddd [në] LT', - lastDay: '[Dje në] LT', - lastWeek: 'dddd [e kaluar në] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'në %s', - past: '%s më parë', - s: 'disa sekonda', - ss: '%d sekonda', - m: 'një minutë', - mm: '%d minuta', - h: 'një orë', - hh: '%d orë', - d: 'një ditë', - dd: '%d ditë', - M: 'një muaj', - MM: '%d muaj', - y: 'një vit', - yy: '%d vite', - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var _defineProperty2 = _interopRequireDefault(_defineProperty); - return sq; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - }))); + exports.default = function () { + function defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + (0, _defineProperty2.default)(target, descriptor.key, descriptor); + } + } + + return function (Constructor, protoProps, staticProps) { + if (protoProps) defineProperties(Constructor.prototype, protoProps); + if (staticProps) defineProperties(Constructor, staticProps); + return Constructor; + }; + }(); + +/***/ }), +/* 384 */ +/***/ (function(module, exports, __webpack_require__) { + module.exports = { "default": __webpack_require__(385), __esModule: true }; /***/ }), -/* 510 */ +/* 385 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Serbian [sr] - //! author : Milan Janačković : https://github.com/milan-j + __webpack_require__(386); + var $Object = __webpack_require__(151).Object; + module.exports = function defineProperty(it, key, desc) { + return $Object.defineProperty(it, key, desc); + }; + + +/***/ }), +/* 386 */ +/***/ (function(module, exports, __webpack_require__) { + + var $export = __webpack_require__(149); + // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes) + $export($export.S + $export.F * !__webpack_require__(159), 'Object', { defineProperty: __webpack_require__(155).f }); + + +/***/ }), +/* 387 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.buffer = buffer; + exports.isSamePoint = isSamePoint; + exports.isWindow = isWindow; + exports.isSimilarValue = isSimilarValue; + exports.restoreFocus = restoreFocus; - //! moment.js locale configuration + var _contains = __webpack_require__(375); - var translator = { - words: { - //Different grammatical cases - ss: ['sekunda', 'sekunde', 'sekundi'], - m: ['jedan minut', 'jedne minute'], - mm: ['minut', 'minute', 'minuta'], - h: ['jedan sat', 'jednog sata'], - hh: ['sat', 'sata', 'sati'], - dd: ['dan', 'dana', 'dana'], - MM: ['mesec', 'meseca', 'meseci'], - yy: ['godina', 'godine', 'godina'], - }, - correctGrammaticalCase: function (number, wordKey) { - return number === 1 - ? wordKey[0] - : number >= 2 && number <= 4 - ? wordKey[1] - : wordKey[2]; - }, - translate: function (number, withoutSuffix, key) { - var wordKey = translator.words[key]; - if (key.length === 1) { - return withoutSuffix ? wordKey[0] : wordKey[1]; - } else { - return ( - number + - ' ' + - translator.correctGrammaticalCase(number, wordKey) - ); - } - }, - }; + var _contains2 = _interopRequireDefault(_contains); - var sr = moment.defineLocale('sr', { - months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split( - '_' - ), - monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split( - '_' - ), - weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'), - weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd, D. MMMM YYYY H:mm', - }, - calendar: { - sameDay: '[danas u] LT', - nextDay: '[sutra u] LT', - nextWeek: function () { - switch (this.day()) { - case 0: - return '[u] [nedelju] [u] LT'; - case 3: - return '[u] [sredu] [u] LT'; - case 6: - return '[u] [subotu] [u] LT'; - case 1: - case 2: - case 4: - case 5: - return '[u] dddd [u] LT'; - } - }, - lastDay: '[juče u] LT', - lastWeek: function () { - var lastWeekDays = [ - '[prošle] [nedelje] [u] LT', - '[prošlog] [ponedeljka] [u] LT', - '[prošlog] [utorka] [u] LT', - '[prošle] [srede] [u] LT', - '[prošlog] [četvrtka] [u] LT', - '[prošlog] [petka] [u] LT', - '[prošle] [subote] [u] LT', - ]; - return lastWeekDays[this.day()]; - }, - sameElse: 'L', - }, - relativeTime: { - future: 'za %s', - past: 'pre %s', - s: 'nekoliko sekundi', - ss: translator.translate, - m: translator.translate, - mm: translator.translate, - h: translator.translate, - hh: translator.translate, - d: 'dan', - dd: translator.translate, - M: 'mesec', - MM: translator.translate, - y: 'godinu', - yy: translator.translate, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - return sr; + function buffer(fn, ms) { + var timer = void 0; - }))); - + function clear() { + if (timer) { + clearTimeout(timer); + timer = null; + } + } + + function bufferFn() { + clear(); + timer = setTimeout(fn, ms); + } + + bufferFn.clear = clear; + + return bufferFn; + } + + function isSamePoint(prev, next) { + if (prev === next) return true; + if (!prev || !next) return false; + + if ('pageX' in next && 'pageY' in next) { + return prev.pageX === next.pageX && prev.pageY === next.pageY; + } + + if ('clientX' in next && 'clientY' in next) { + return prev.clientX === next.clientX && prev.clientY === next.clientY; + } + + return false; + } + + function isWindow(obj) { + return obj && typeof obj === 'object' && obj.window === obj; + } + + function isSimilarValue(val1, val2) { + var int1 = Math.floor(val1); + var int2 = Math.floor(val2); + return Math.abs(int1 - int2) <= 1; + } + + function restoreFocus(activeElement, container) { + // Focus back if is in the container + if (activeElement !== document.activeElement && (0, _contains2['default'])(container, activeElement)) { + activeElement.focus(); + } + } /***/ }), -/* 511 */ +/* 388 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Serbian Cyrillic [sr-cyrl] - //! author : Milan Janačković : https://github.com/milan-j + 'use strict'; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + Object.defineProperty(exports, "__esModule", { + value: true + }); - //! moment.js locale configuration + var _extends2 = __webpack_require__(289); - var translator = { - words: { - //Different grammatical cases - ss: ['секунда', 'секунде', 'секунди'], - m: ['један минут', 'једне минуте'], - mm: ['минут', 'минуте', 'минута'], - h: ['један сат', 'једног сата'], - hh: ['сат', 'сата', 'сати'], - dd: ['дан', 'дана', 'дана'], - MM: ['месец', 'месеца', 'месеци'], - yy: ['година', 'године', 'година'], - }, - correctGrammaticalCase: function (number, wordKey) { - return number === 1 - ? wordKey[0] - : number >= 2 && number <= 4 - ? wordKey[1] - : wordKey[2]; - }, - translate: function (number, withoutSuffix, key) { - var wordKey = translator.words[key]; - if (key.length === 1) { - return withoutSuffix ? wordKey[0] : wordKey[1]; - } else { - return ( - number + - ' ' + - translator.correctGrammaticalCase(number, wordKey) - ); - } - }, + var _extends3 = _interopRequireDefault(_extends2); + + var _defineProperty2 = __webpack_require__(389); + + var _defineProperty3 = _interopRequireDefault(_defineProperty2); + + var _classCallCheck2 = __webpack_require__(337); + + var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); + + var _createClass2 = __webpack_require__(383); + + var _createClass3 = _interopRequireDefault(_createClass2); + + var _possibleConstructorReturn2 = __webpack_require__(338); + + var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); + + var _inherits2 = __webpack_require__(369); + + var _inherits3 = _interopRequireDefault(_inherits2); + + var _react = __webpack_require__(1); + + var _react2 = _interopRequireDefault(_react); + + var _propTypes = __webpack_require__(6); + + var _propTypes2 = _interopRequireDefault(_propTypes); + + var _unsafeLifecyclesPolyfill = __webpack_require__(390); + + var _unsafeLifecyclesPolyfill2 = _interopRequireDefault(_unsafeLifecyclesPolyfill); + + var _ChildrenUtils = __webpack_require__(391); + + var _AnimateChild = __webpack_require__(392); + + var _AnimateChild2 = _interopRequireDefault(_AnimateChild); + + var _animate = __webpack_require__(395); + + var _animate2 = _interopRequireDefault(_animate); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + + var defaultKey = 'rc_animate_' + Date.now(); + + function getChildrenFromProps(props) { + var children = props.children; + if (_react2['default'].isValidElement(children)) { + if (!children.key) { + return _react2['default'].cloneElement(children, { + key: defaultKey + }); + } + } + return children; + } + + function noop() {} + + var Animate = function (_React$Component) { + (0, _inherits3['default'])(Animate, _React$Component); + + // eslint-disable-line + + function Animate(props) { + (0, _classCallCheck3['default'])(this, Animate); + + var _this = (0, _possibleConstructorReturn3['default'])(this, (Animate.__proto__ || Object.getPrototypeOf(Animate)).call(this, props)); + + _initialiseProps.call(_this); + + _this.currentlyAnimatingKeys = {}; + _this.keysToEnter = []; + _this.keysToLeave = []; + + _this.state = { + children: (0, _ChildrenUtils.toArrayChildren)(getChildrenFromProps(props)) }; - var srCyrl = moment.defineLocale('sr-cyrl', { - months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split( - '_' - ), - monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'), - weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'), - weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd, D. MMMM YYYY H:mm', - }, - calendar: { - sameDay: '[данас у] LT', - nextDay: '[сутра у] LT', - nextWeek: function () { - switch (this.day()) { - case 0: - return '[у] [недељу] [у] LT'; - case 3: - return '[у] [среду] [у] LT'; - case 6: - return '[у] [суботу] [у] LT'; - case 1: - case 2: - case 4: - case 5: - return '[у] dddd [у] LT'; - } - }, - lastDay: '[јуче у] LT', - lastWeek: function () { - var lastWeekDays = [ - '[прошле] [недеље] [у] LT', - '[прошлог] [понедељка] [у] LT', - '[прошлог] [уторка] [у] LT', - '[прошле] [среде] [у] LT', - '[прошлог] [четвртка] [у] LT', - '[прошлог] [петка] [у] LT', - '[прошле] [суботе] [у] LT', - ]; - return lastWeekDays[this.day()]; - }, - sameElse: 'L', - }, - relativeTime: { - future: 'за %s', - past: 'пре %s', - s: 'неколико секунди', - ss: translator.translate, - m: translator.translate, - mm: translator.translate, - h: translator.translate, - hh: translator.translate, - d: 'дан', - dd: translator.translate, - M: 'месец', - MM: translator.translate, - y: 'годину', - yy: translator.translate, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); + _this.childrenRefs = {}; + return _this; + } - return srCyrl; + (0, _createClass3['default'])(Animate, [{ + key: 'componentDidMount', + value: function componentDidMount() { + var _this2 = this; - }))); - - -/***/ }), -/* 512 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : siSwati [ss] - //! author : Nicolai Davies : https://github.com/nicolaidavies + var showProp = this.props.showProp; + var children = this.state.children; + if (showProp) { + children = children.filter(function (child) { + return !!child.props[showProp]; + }); + } + children.forEach(function (child) { + if (child) { + _this2.performAppear(child.key); + } + }); + } + }, { + key: 'componentWillReceiveProps', + value: function componentWillReceiveProps(nextProps) { + var _this3 = this; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + this.nextProps = nextProps; + var nextChildren = (0, _ChildrenUtils.toArrayChildren)(getChildrenFromProps(nextProps)); + var props = this.props; + // exclusive needs immediate response + if (props.exclusive) { + Object.keys(this.currentlyAnimatingKeys).forEach(function (key) { + _this3.stop(key); + }); + } + var showProp = props.showProp; + var currentlyAnimatingKeys = this.currentlyAnimatingKeys; + // last props children if exclusive + var currentChildren = props.exclusive ? (0, _ChildrenUtils.toArrayChildren)(getChildrenFromProps(props)) : this.state.children; + // in case destroy in showProp mode + var newChildren = []; + if (showProp) { + currentChildren.forEach(function (currentChild) { + var nextChild = currentChild && (0, _ChildrenUtils.findChildInChildrenByKey)(nextChildren, currentChild.key); + var newChild = void 0; + if ((!nextChild || !nextChild.props[showProp]) && currentChild.props[showProp]) { + newChild = _react2['default'].cloneElement(nextChild || currentChild, (0, _defineProperty3['default'])({}, showProp, true)); + } else { + newChild = nextChild; + } + if (newChild) { + newChildren.push(newChild); + } + }); + nextChildren.forEach(function (nextChild) { + if (!nextChild || !(0, _ChildrenUtils.findChildInChildrenByKey)(currentChildren, nextChild.key)) { + newChildren.push(nextChild); + } + }); + } else { + newChildren = (0, _ChildrenUtils.mergeChildren)(currentChildren, nextChildren); + } - //! moment.js locale configuration + // need render to avoid update + this.setState({ + children: newChildren + }); - var ss = moment.defineLocale('ss', { - months: "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split( - '_' - ), - monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'), - weekdays: 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split( - '_' - ), - weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'), - weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY h:mm A', - LLLL: 'dddd, D MMMM YYYY h:mm A', - }, - calendar: { - sameDay: '[Namuhla nga] LT', - nextDay: '[Kusasa nga] LT', - nextWeek: 'dddd [nga] LT', - lastDay: '[Itolo nga] LT', - lastWeek: 'dddd [leliphelile] [nga] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'nga %s', - past: 'wenteka nga %s', - s: 'emizuzwana lomcane', - ss: '%d mzuzwana', - m: 'umzuzu', - mm: '%d emizuzu', - h: 'lihora', - hh: '%d emahora', - d: 'lilanga', - dd: '%d emalanga', - M: 'inyanga', - MM: '%d tinyanga', - y: 'umnyaka', - yy: '%d iminyaka', - }, - meridiemParse: /ekuseni|emini|entsambama|ebusuku/, - meridiem: function (hours, minutes, isLower) { - if (hours < 11) { - return 'ekuseni'; - } else if (hours < 15) { - return 'emini'; - } else if (hours < 19) { - return 'entsambama'; - } else { - return 'ebusuku'; - } - }, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; + nextChildren.forEach(function (child) { + var key = child && child.key; + if (child && currentlyAnimatingKeys[key]) { + return; + } + var hasPrev = child && (0, _ChildrenUtils.findChildInChildrenByKey)(currentChildren, key); + if (showProp) { + var showInNext = child.props[showProp]; + if (hasPrev) { + var showInNow = (0, _ChildrenUtils.findShownChildInChildrenByKey)(currentChildren, key, showProp); + if (!showInNow && showInNext) { + _this3.keysToEnter.push(key); } - if (meridiem === 'ekuseni') { - return hour; - } else if (meridiem === 'emini') { - return hour >= 11 ? hour : hour + 12; - } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') { - if (hour === 0) { - return 0; - } - return hour + 12; + } else if (showInNext) { + _this3.keysToEnter.push(key); + } + } else if (!hasPrev) { + _this3.keysToEnter.push(key); + } + }); + + currentChildren.forEach(function (child) { + var key = child && child.key; + if (child && currentlyAnimatingKeys[key]) { + return; + } + var hasNext = child && (0, _ChildrenUtils.findChildInChildrenByKey)(nextChildren, key); + if (showProp) { + var showInNow = child.props[showProp]; + if (hasNext) { + var showInNext = (0, _ChildrenUtils.findShownChildInChildrenByKey)(nextChildren, key, showProp); + if (!showInNext && showInNow) { + _this3.keysToLeave.push(key); } - }, - dayOfMonthOrdinalParse: /\d{1,2}/, - ordinal: '%d', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + } else if (showInNow) { + _this3.keysToLeave.push(key); + } + } else if (!hasNext) { + _this3.keysToLeave.push(key); + } + }); + } + }, { + key: 'componentDidUpdate', + value: function componentDidUpdate() { + var keysToEnter = this.keysToEnter; + this.keysToEnter = []; + keysToEnter.forEach(this.performEnter); + var keysToLeave = this.keysToLeave; + this.keysToLeave = []; + keysToLeave.forEach(this.performLeave); + } + }, { + key: 'isValidChildByKey', + value: function isValidChildByKey(currentChildren, key) { + var showProp = this.props.showProp; + if (showProp) { + return (0, _ChildrenUtils.findShownChildInChildrenByKey)(currentChildren, key, showProp); + } + return (0, _ChildrenUtils.findChildInChildrenByKey)(currentChildren, key); + } + }, { + key: 'stop', + value: function stop(key) { + delete this.currentlyAnimatingKeys[key]; + var component = this.childrenRefs[key]; + if (component) { + component.stop(); + } + } + }, { + key: 'render', + value: function render() { + var _this4 = this; - return ss; + var props = this.props; + this.nextProps = props; + var stateChildren = this.state.children; + var children = null; + if (stateChildren) { + children = stateChildren.map(function (child) { + if (child === null || child === undefined) { + return child; + } + if (!child.key) { + throw new Error('must set key for children'); + } + return _react2['default'].createElement( + _AnimateChild2['default'], + { + key: child.key, + ref: function ref(node) { + _this4.childrenRefs[child.key] = node; + }, + animation: props.animation, + transitionName: props.transitionName, + transitionEnter: props.transitionEnter, + transitionAppear: props.transitionAppear, + transitionLeave: props.transitionLeave + }, + child + ); + }); + } + var Component = props.component; + if (Component) { + var passedProps = props; + if (typeof Component === 'string') { + passedProps = (0, _extends3['default'])({ + className: props.className, + style: props.style + }, props.componentProps); + } + return _react2['default'].createElement( + Component, + passedProps, + children + ); + } + return children[0] || null; + } + }]); + return Animate; + }(_react2['default'].Component); + + Animate.isAnimate = true; + Animate.propTypes = { + className: _propTypes2['default'].string, + style: _propTypes2['default'].object, + component: _propTypes2['default'].any, + componentProps: _propTypes2['default'].object, + animation: _propTypes2['default'].object, + transitionName: _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].object]), + transitionEnter: _propTypes2['default'].bool, + transitionAppear: _propTypes2['default'].bool, + exclusive: _propTypes2['default'].bool, + transitionLeave: _propTypes2['default'].bool, + onEnd: _propTypes2['default'].func, + onEnter: _propTypes2['default'].func, + onLeave: _propTypes2['default'].func, + onAppear: _propTypes2['default'].func, + showProp: _propTypes2['default'].string, + children: _propTypes2['default'].node + }; + Animate.defaultProps = { + animation: {}, + component: 'span', + componentProps: {}, + transitionEnter: true, + transitionLeave: true, + transitionAppear: false, + onEnd: noop, + onEnter: noop, + onLeave: noop, + onAppear: noop + }; + + var _initialiseProps = function _initialiseProps() { + var _this5 = this; + + this.performEnter = function (key) { + // may already remove by exclusive + if (_this5.childrenRefs[key]) { + _this5.currentlyAnimatingKeys[key] = true; + _this5.childrenRefs[key].componentWillEnter(_this5.handleDoneAdding.bind(_this5, key, 'enter')); + } + }; + + this.performAppear = function (key) { + if (_this5.childrenRefs[key]) { + _this5.currentlyAnimatingKeys[key] = true; + _this5.childrenRefs[key].componentWillAppear(_this5.handleDoneAdding.bind(_this5, key, 'appear')); + } + }; + + this.handleDoneAdding = function (key, type) { + var props = _this5.props; + delete _this5.currentlyAnimatingKeys[key]; + // if update on exclusive mode, skip check + if (props.exclusive && props !== _this5.nextProps) { + return; + } + var currentChildren = (0, _ChildrenUtils.toArrayChildren)(getChildrenFromProps(props)); + if (!_this5.isValidChildByKey(currentChildren, key)) { + // exclusive will not need this + _this5.performLeave(key); + } else if (type === 'appear') { + if (_animate2['default'].allowAppearCallback(props)) { + props.onAppear(key); + props.onEnd(key, true); + } + } else if (_animate2['default'].allowEnterCallback(props)) { + props.onEnter(key); + props.onEnd(key, true); + } + }; + + this.performLeave = function (key) { + // may already remove by exclusive + if (_this5.childrenRefs[key]) { + _this5.currentlyAnimatingKeys[key] = true; + _this5.childrenRefs[key].componentWillLeave(_this5.handleDoneLeaving.bind(_this5, key)); + } + }; + + this.handleDoneLeaving = function (key) { + var props = _this5.props; + delete _this5.currentlyAnimatingKeys[key]; + // if update on exclusive mode, skip check + if (props.exclusive && props !== _this5.nextProps) { + return; + } + var currentChildren = (0, _ChildrenUtils.toArrayChildren)(getChildrenFromProps(props)); + // in case state change is too fast + if (_this5.isValidChildByKey(currentChildren, key)) { + _this5.performEnter(key); + } else { + var end = function end() { + if (_animate2['default'].allowLeaveCallback(props)) { + props.onLeave(key); + props.onEnd(key, false); + } + }; + if (!(0, _ChildrenUtils.isSameChildren)(_this5.state.children, currentChildren, props.showProp)) { + _this5.setState({ + children: currentChildren + }, end); + } else { + end(); + } + } + }; + }; - }))); - + exports['default'] = (0, _unsafeLifecyclesPolyfill2['default'])(Animate); + module.exports = exports['default']; /***/ }), -/* 513 */ +/* 389 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Swedish [sv] - //! author : Jens Alm : https://github.com/ulmus + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + exports.__esModule = true; - //! moment.js locale configuration + var _defineProperty = __webpack_require__(384); - var sv = moment.defineLocale('sv', { - months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split( - '_' - ), - monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'), - weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'), - weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'), - weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY-MM-DD', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY [kl.] HH:mm', - LLLL: 'dddd D MMMM YYYY [kl.] HH:mm', - lll: 'D MMM YYYY HH:mm', - llll: 'ddd D MMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Idag] LT', - nextDay: '[Imorgon] LT', - lastDay: '[Igår] LT', - nextWeek: '[På] dddd LT', - lastWeek: '[I] dddd[s] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'om %s', - past: 'för %s sedan', - s: 'några sekunder', - ss: '%d sekunder', - m: 'en minut', - mm: '%d minuter', - h: 'en timme', - hh: '%d timmar', - d: 'en dag', - dd: '%d dagar', - M: 'en månad', - MM: '%d månader', - y: 'ett år', - yy: '%d år', - }, - dayOfMonthOrdinalParse: /\d{1,2}(\:e|\:a)/, - ordinal: function (number) { - var b = number % 10, - output = - ~~((number % 100) / 10) === 1 - ? ':e' - : b === 1 - ? ':a' - : b === 2 - ? ':a' - : b === 3 - ? ':e' - : ':e'; - return number + output; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var _defineProperty2 = _interopRequireDefault(_defineProperty); - return sv; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - }))); - + exports.default = function (obj, key, value) { + if (key in obj) { + (0, _defineProperty2.default)(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + + return obj; + }; /***/ }), -/* 514 */ +/* 390 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Swahili [sw] - //! author : Fahad Kassim : https://github.com/fadsel + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; - //! moment.js locale configuration + var _react = _interopRequireDefault(__webpack_require__(1)); - var sw = moment.defineLocale('sw', { - months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'), - weekdays: 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split( - '_' - ), - weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'), - weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'hh:mm A', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[leo saa] LT', - nextDay: '[kesho saa] LT', - nextWeek: '[wiki ijayo] dddd [saat] LT', - lastDay: '[jana] LT', - lastWeek: '[wiki iliyopita] dddd [saat] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s baadaye', - past: 'tokea %s', - s: 'hivi punde', - ss: 'sekunde %d', - m: 'dakika moja', - mm: 'dakika %d', - h: 'saa limoja', - hh: 'masaa %d', - d: 'siku moja', - dd: 'siku %d', - M: 'mwezi mmoja', - MM: 'miezi %d', - y: 'mwaka mmoja', - yy: 'miaka %d', - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - return sw; + var unsafeLifecyclesPolyfill = function unsafeLifecyclesPolyfill(Component) { + var prototype = Component.prototype; - }))); - - -/***/ }), -/* 515 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Tamil [ta] - //! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404 + if (!prototype || !prototype.isReactComponent) { + throw new Error('Can only polyfill class components'); + } // only handle componentWillReceiveProps - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration + if (typeof prototype.componentWillReceiveProps !== 'function') { + return Component; + } // In React 16.9, React.Profiler was introduced together with UNSAFE_componentWillReceiveProps + // https://reactjs.org/blog/2019/08/08/react-v16.9.0.html#performance-measurements-with-reactprofiler - var symbolMap = { - '1': '௧', - '2': '௨', - '3': '௩', - '4': '௪', - '5': '௫', - '6': '௬', - '7': '௭', - '8': '௮', - '9': '௯', - '0': '௦', - }, - numberMap = { - '௧': '1', - '௨': '2', - '௩': '3', - '௪': '4', - '௫': '5', - '௬': '6', - '௭': '7', - '௮': '8', - '௯': '9', - '௦': '0', - }; - var ta = moment.defineLocale('ta', { - months: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split( - '_' - ), - monthsShort: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split( - '_' - ), - weekdays: 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split( - '_' - ), - weekdaysShort: 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split( - '_' - ), - weekdaysMin: 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, HH:mm', - LLLL: 'dddd, D MMMM YYYY, HH:mm', - }, - calendar: { - sameDay: '[இன்று] LT', - nextDay: '[நாளை] LT', - nextWeek: 'dddd, LT', - lastDay: '[நேற்று] LT', - lastWeek: '[கடந்த வாரம்] dddd, LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s இல்', - past: '%s முன்', - s: 'ஒரு சில விநாடிகள்', - ss: '%d விநாடிகள்', - m: 'ஒரு நிமிடம்', - mm: '%d நிமிடங்கள்', - h: 'ஒரு மணி நேரம்', - hh: '%d மணி நேரம்', - d: 'ஒரு நாள்', - dd: '%d நாட்கள்', - M: 'ஒரு மாதம்', - MM: '%d மாதங்கள்', - y: 'ஒரு வருடம்', - yy: '%d ஆண்டுகள்', - }, - dayOfMonthOrdinalParse: /\d{1,2}வது/, - ordinal: function (number) { - return number + 'வது'; - }, - preparse: function (string) { - return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - // refer http://ta.wikipedia.org/s/1er1 - meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/, - meridiem: function (hour, minute, isLower) { - if (hour < 2) { - return ' யாமம்'; - } else if (hour < 6) { - return ' வைகறை'; // வைகறை - } else if (hour < 10) { - return ' காலை'; // காலை - } else if (hour < 14) { - return ' நண்பகல்'; // நண்பகல் - } else if (hour < 18) { - return ' எற்பாடு'; // எற்பாடு - } else if (hour < 22) { - return ' மாலை'; // மாலை - } else { - return ' யாமம்'; - } - }, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'யாமம்') { - return hour < 2 ? hour : hour + 12; - } else if (meridiem === 'வைகறை' || meridiem === 'காலை') { - return hour; - } else if (meridiem === 'நண்பகல்') { - return hour >= 10 ? hour : hour + 12; - } else { - return hour + 12; - } - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }, - }); + if (!_react.default.Profiler) { + return Component; + } // Here polyfill get started - return ta; - }))); - + prototype.UNSAFE_componentWillReceiveProps = prototype.componentWillReceiveProps; + delete prototype.componentWillReceiveProps; + return Component; + }; + + var _default = unsafeLifecyclesPolyfill; + exports.default = _default; /***/ }), -/* 516 */ +/* 391 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Telugu [te] - //! author : Krishna Chaitanya Thota : https://github.com/kcthota + 'use strict'; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.toArrayChildren = toArrayChildren; + exports.findChildInChildrenByKey = findChildInChildrenByKey; + exports.findShownChildInChildrenByKey = findShownChildInChildrenByKey; + exports.findHiddenChildInChildrenByKey = findHiddenChildInChildrenByKey; + exports.isSameChildren = isSameChildren; + exports.mergeChildren = mergeChildren; - //! moment.js locale configuration + var _react = __webpack_require__(1); - var te = moment.defineLocale('te', { - months: 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split( - '_' - ), - monthsShort: 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split( - '_' - ), - weekdaysShort: 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'), - weekdaysMin: 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'), - longDateFormat: { - LT: 'A h:mm', - LTS: 'A h:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm', - LLLL: 'dddd, D MMMM YYYY, A h:mm', - }, - calendar: { - sameDay: '[నేడు] LT', - nextDay: '[రేపు] LT', - nextWeek: 'dddd, LT', - lastDay: '[నిన్న] LT', - lastWeek: '[గత] dddd, LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s లో', - past: '%s క్రితం', - s: 'కొన్ని క్షణాలు', - ss: '%d సెకన్లు', - m: 'ఒక నిమిషం', - mm: '%d నిమిషాలు', - h: 'ఒక గంట', - hh: '%d గంటలు', - d: 'ఒక రోజు', - dd: '%d రోజులు', - M: 'ఒక నెల', - MM: '%d నెలలు', - y: 'ఒక సంవత్సరం', - yy: '%d సంవత్సరాలు', - }, - dayOfMonthOrdinalParse: /\d{1,2}వ/, - ordinal: '%dవ', - meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'రాత్రి') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'ఉదయం') { - return hour; - } else if (meridiem === 'మధ్యాహ్నం') { - return hour >= 10 ? hour : hour + 12; - } else if (meridiem === 'సాయంత్రం') { - return hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'రాత్రి'; - } else if (hour < 10) { - return 'ఉదయం'; - } else if (hour < 17) { - return 'మధ్యాహ్నం'; - } else if (hour < 20) { - return 'సాయంత్రం'; - } else { - return 'రాత్రి'; - } - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }, - }); + var _react2 = _interopRequireDefault(_react); - return te; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - }))); - - -/***/ }), -/* 517 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Tetun Dili (East Timor) [tet] - //! author : Joshua Brooks : https://github.com/joshbrooks - //! author : Onorio De J. Afonso : https://github.com/marobo - //! author : Sonia Simoes : https://github.com/soniasimoes + function toArrayChildren(children) { + var ret = []; + _react2['default'].Children.forEach(children, function (child) { + ret.push(child); + }); + return ret; + } - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + function findChildInChildrenByKey(children, key) { + var ret = null; + if (children) { + children.forEach(function (child) { + if (ret) { + return; + } + if (child && child.key === key) { + ret = child; + } + }); + } + return ret; + } - //! moment.js locale configuration + function findShownChildInChildrenByKey(children, key, showProp) { + var ret = null; + if (children) { + children.forEach(function (child) { + if (child && child.key === key && child.props[showProp]) { + if (ret) { + throw new Error('two child with same key for children'); + } + ret = child; + } + }); + } + return ret; + } - var tet = moment.defineLocale('tet', { - months: 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split( - '_' - ), - monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'), - weekdays: 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split('_'), - weekdaysShort: 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'), - weekdaysMin: 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Ohin iha] LT', - nextDay: '[Aban iha] LT', - nextWeek: 'dddd [iha] LT', - lastDay: '[Horiseik iha] LT', - lastWeek: 'dddd [semana kotuk] [iha] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'iha %s', - past: '%s liuba', - s: 'segundu balun', - ss: 'segundu %d', - m: 'minutu ida', - mm: 'minutu %d', - h: 'oras ida', - hh: 'oras %d', - d: 'loron ida', - dd: 'loron %d', - M: 'fulan ida', - MM: 'fulan %d', - y: 'tinan ida', - yy: 'tinan %d', - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal: function (number) { - var b = number % 10, - output = - ~~((number % 100) / 10) === 1 - ? 'th' - : b === 1 - ? 'st' - : b === 2 - ? 'nd' - : b === 3 - ? 'rd' - : 'th'; - return number + output; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, + function findHiddenChildInChildrenByKey(children, key, showProp) { + var found = 0; + if (children) { + children.forEach(function (child) { + if (found) { + return; + } + found = child && child.key === key && !child.props[showProp]; }); + } + return found; + } - return tet; + function isSameChildren(c1, c2, showProp) { + var same = c1.length === c2.length; + if (same) { + c1.forEach(function (child, index) { + var child2 = c2[index]; + if (child && child2) { + if (child && !child2 || !child && child2) { + same = false; + } else if (child.key !== child2.key) { + same = false; + } else if (showProp && child.props[showProp] !== child2.props[showProp]) { + same = false; + } + } + }); + } + return same; + } - }))); - + function mergeChildren(prev, next) { + var ret = []; + + // For each key of `next`, the list of keys to insert before that key in + // the combined list + var nextChildrenPending = {}; + var pendingChildren = []; + prev.forEach(function (child) { + if (child && findChildInChildrenByKey(next, child.key)) { + if (pendingChildren.length) { + nextChildrenPending[child.key] = pendingChildren; + pendingChildren = []; + } + } else { + pendingChildren.push(child); + } + }); + + next.forEach(function (child) { + if (child && Object.prototype.hasOwnProperty.call(nextChildrenPending, child.key)) { + ret = ret.concat(nextChildrenPending[child.key]); + } + ret.push(child); + }); + + ret = ret.concat(pendingChildren); + + return ret; + } /***/ }), -/* 518 */ +/* 392 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Tajik [tg] - //! author : Orif N. Jr. : https://github.com/orif-jr + 'use strict'; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + Object.defineProperty(exports, "__esModule", { + value: true + }); - //! moment.js locale configuration + var _classCallCheck2 = __webpack_require__(337); - var suffixes = { - 0: '-ум', - 1: '-ум', - 2: '-юм', - 3: '-юм', - 4: '-ум', - 5: '-ум', - 6: '-ум', - 7: '-ум', - 8: '-ум', - 9: '-ум', - 10: '-ум', - 12: '-ум', - 13: '-ум', - 20: '-ум', - 30: '-юм', - 40: '-ум', - 50: '-ум', - 60: '-ум', - 70: '-ум', - 80: '-ум', - 90: '-ум', - 100: '-ум', - }; + var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - var tg = moment.defineLocale('tg', { - months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split( - '_' - ), - monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'), - weekdays: 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split( - '_' - ), - weekdaysShort: 'яшб_дшб_сшб_чшб_пшб_ҷум_шнб'.split('_'), - weekdaysMin: 'яш_дш_сш_чш_пш_ҷм_шб'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Имрӯз соати] LT', - nextDay: '[Пагоҳ соати] LT', - lastDay: '[Дирӯз соати] LT', - nextWeek: 'dddd[и] [ҳафтаи оянда соати] LT', - lastWeek: 'dddd[и] [ҳафтаи гузашта соати] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'баъди %s', - past: '%s пеш', - s: 'якчанд сония', - m: 'як дақиқа', - mm: '%d дақиқа', - h: 'як соат', - hh: '%d соат', - d: 'як рӯз', - dd: '%d рӯз', - M: 'як моҳ', - MM: '%d моҳ', - y: 'як сол', - yy: '%d сол', - }, - meridiemParse: /шаб|субҳ|рӯз|бегоҳ/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'шаб') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'субҳ') { - return hour; - } else if (meridiem === 'рӯз') { - return hour >= 11 ? hour : hour + 12; - } else if (meridiem === 'бегоҳ') { - return hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'шаб'; - } else if (hour < 11) { - return 'субҳ'; - } else if (hour < 16) { - return 'рӯз'; - } else if (hour < 19) { - return 'бегоҳ'; - } else { - return 'шаб'; - } - }, - dayOfMonthOrdinalParse: /\d{1,2}-(ум|юм)/, - ordinal: function (number) { - var a = number % 10, - b = number >= 100 ? 100 : null; - return number + (suffixes[number] || suffixes[a] || suffixes[b]); - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 1th is the first week of the year. - }, - }); + var _createClass2 = __webpack_require__(383); - return tg; + var _createClass3 = _interopRequireDefault(_createClass2); - }))); - - -/***/ }), -/* 519 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Thai [th] - //! author : Kridsada Thanabulpong : https://github.com/sirn + var _possibleConstructorReturn2 = __webpack_require__(338); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - //! moment.js locale configuration + var _inherits2 = __webpack_require__(369); - var th = moment.defineLocale('th', { - months: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split( - '_' - ), - monthsShort: 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'), - weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference - weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY เวลา H:mm', - LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm', - }, - meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/, - isPM: function (input) { - return input === 'หลังเที่ยง'; - }, - meridiem: function (hour, minute, isLower) { - if (hour < 12) { - return 'ก่อนเที่ยง'; - } else { - return 'หลังเที่ยง'; - } - }, - calendar: { - sameDay: '[วันนี้ เวลา] LT', - nextDay: '[พรุ่งนี้ เวลา] LT', - nextWeek: 'dddd[หน้า เวลา] LT', - lastDay: '[เมื่อวานนี้ เวลา] LT', - lastWeek: '[วัน]dddd[ที่แล้ว เวลา] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'อีก %s', - past: '%sที่แล้ว', - s: 'ไม่กี่วินาที', - ss: '%d วินาที', - m: '1 นาที', - mm: '%d นาที', - h: '1 ชั่วโมง', - hh: '%d ชั่วโมง', - d: '1 วัน', - dd: '%d วัน', - M: '1 เดือน', - MM: '%d เดือน', - y: '1 ปี', - yy: '%d ปี', - }, - }); + var _inherits3 = _interopRequireDefault(_inherits2); - return th; + var _react = __webpack_require__(1); - }))); - - -/***/ }), -/* 520 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Turkmen [trk] - //! author : Atamyrat Abdyrahmanov : https://github.com/atamyratabdy + var _react2 = _interopRequireDefault(_react); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _reactDom = __webpack_require__(2); - //! moment.js locale configuration + var _reactDom2 = _interopRequireDefault(_reactDom); - var suffixes = { - 1: "'inji", - 5: "'inji", - 8: "'inji", - 70: "'inji", - 80: "'inji", - 2: "'nji", - 7: "'nji", - 20: "'nji", - 50: "'nji", - 3: "'ünji", - 4: "'ünji", - 100: "'ünji", - 6: "'njy", - 9: "'unjy", - 10: "'unjy", - 30: "'unjy", - 60: "'ynjy", - 90: "'ynjy", - }; + var _propTypes = __webpack_require__(6); - var tk = moment.defineLocale('tk', { - months: 'Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr'.split( - '_' - ), - monthsShort: 'Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek'.split('_'), - weekdays: 'Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe'.split( - '_' - ), - weekdaysShort: 'Ýek_Duş_Siş_Çar_Pen_Ann_Şen'.split('_'), - weekdaysMin: 'Ýk_Dş_Sş_Çr_Pn_An_Şn'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[bugün sagat] LT', - nextDay: '[ertir sagat] LT', - nextWeek: '[indiki] dddd [sagat] LT', - lastDay: '[düýn] LT', - lastWeek: '[geçen] dddd [sagat] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s soň', - past: '%s öň', - s: 'birnäçe sekunt', - m: 'bir minut', - mm: '%d minut', - h: 'bir sagat', - hh: '%d sagat', - d: 'bir gün', - dd: '%d gün', - M: 'bir aý', - MM: '%d aý', - y: 'bir ýyl', - yy: '%d ýyl', - }, - ordinal: function (number, period) { - switch (period) { - case 'd': - case 'D': - case 'Do': - case 'DD': - return number; - default: - if (number === 0) { - // special case for zero - return number + "'unjy"; - } - var a = number % 10, - b = (number % 100) - a, - c = number >= 100 ? 100 : null; - return number + (suffixes[a] || suffixes[b] || suffixes[c]); - } - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); + var _propTypes2 = _interopRequireDefault(_propTypes); - return tk; + var _cssAnimation = __webpack_require__(393); - }))); - - -/***/ }), -/* 521 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Tagalog (Philippines) [tl-ph] - //! author : Dan Hagman : https://github.com/hagmandan + var _cssAnimation2 = _interopRequireDefault(_cssAnimation); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _animate = __webpack_require__(395); - //! moment.js locale configuration + var _animate2 = _interopRequireDefault(_animate); - var tlPh = moment.defineLocale('tl-ph', { - months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split( - '_' - ), - monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'), - weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split( - '_' - ), - weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'), - weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'MM/D/YYYY', - LL: 'MMMM D, YYYY', - LLL: 'MMMM D, YYYY HH:mm', - LLLL: 'dddd, MMMM DD, YYYY HH:mm', - }, - calendar: { - sameDay: 'LT [ngayong araw]', - nextDay: '[Bukas ng] LT', - nextWeek: 'LT [sa susunod na] dddd', - lastDay: 'LT [kahapon]', - lastWeek: 'LT [noong nakaraang] dddd', - sameElse: 'L', - }, - relativeTime: { - future: 'sa loob ng %s', - past: '%s ang nakalipas', - s: 'ilang segundo', - ss: '%d segundo', - m: 'isang minuto', - mm: '%d minuto', - h: 'isang oras', - hh: '%d oras', - d: 'isang araw', - dd: '%d araw', - M: 'isang buwan', - MM: '%d buwan', - y: 'isang taon', - yy: '%d taon', - }, - dayOfMonthOrdinalParse: /\d{1,2}/, - ordinal: function (number) { - return number; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + + var transitionMap = { + enter: 'transitionEnter', + appear: 'transitionAppear', + leave: 'transitionLeave' + }; + + var AnimateChild = function (_React$Component) { + (0, _inherits3['default'])(AnimateChild, _React$Component); + + function AnimateChild() { + (0, _classCallCheck3['default'])(this, AnimateChild); + return (0, _possibleConstructorReturn3['default'])(this, (AnimateChild.__proto__ || Object.getPrototypeOf(AnimateChild)).apply(this, arguments)); + } + + (0, _createClass3['default'])(AnimateChild, [{ + key: 'componentWillUnmount', + value: function componentWillUnmount() { + this.stop(); + } + }, { + key: 'componentWillEnter', + value: function componentWillEnter(done) { + if (_animate2['default'].isEnterSupported(this.props)) { + this.transition('enter', done); + } else { + done(); + } + } + }, { + key: 'componentWillAppear', + value: function componentWillAppear(done) { + if (_animate2['default'].isAppearSupported(this.props)) { + this.transition('appear', done); + } else { + done(); + } + } + }, { + key: 'componentWillLeave', + value: function componentWillLeave(done) { + if (_animate2['default'].isLeaveSupported(this.props)) { + this.transition('leave', done); + } else { + // always sync, do not interupt with react component life cycle + // update hidden -> animate hidden -> + // didUpdate -> animate leave -> unmount (if animate is none) + done(); + } + } + }, { + key: 'transition', + value: function transition(animationType, finishCallback) { + var _this2 = this; - return tlPh; + var node = _reactDom2['default'].findDOMNode(this); + var props = this.props; + var transitionName = props.transitionName; + var nameIsObj = typeof transitionName === 'object'; + this.stop(); + var end = function end() { + _this2.stopper = null; + finishCallback(); + }; + if ((_cssAnimation.isCssAnimationSupported || !props.animation[animationType]) && transitionName && props[transitionMap[animationType]]) { + var name = nameIsObj ? transitionName[animationType] : transitionName + '-' + animationType; + var activeName = name + '-active'; + if (nameIsObj && transitionName[animationType + 'Active']) { + activeName = transitionName[animationType + 'Active']; + } + this.stopper = (0, _cssAnimation2['default'])(node, { + name: name, + active: activeName + }, end); + } else { + this.stopper = props.animation[animationType](node, end); + } + } + }, { + key: 'stop', + value: function stop() { + var stopper = this.stopper; + if (stopper) { + this.stopper = null; + stopper.stop(); + } + } + }, { + key: 'render', + value: function render() { + return this.props.children; + } + }]); + return AnimateChild; + }(_react2['default'].Component); - }))); - + AnimateChild.propTypes = { + children: _propTypes2['default'].any, + animation: _propTypes2['default'].any, + transitionName: _propTypes2['default'].any + }; + exports['default'] = AnimateChild; + module.exports = exports['default']; /***/ }), -/* 522 */ +/* 393 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Klingon [tlh] - //! author : Dominika Kruk : https://github.com/amaranthrose + 'use strict'; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.isCssAnimationSupported = undefined; - //! moment.js locale configuration + var _typeof2 = __webpack_require__(339); - var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_'); + var _typeof3 = _interopRequireDefault(_typeof2); - function translateFuture(output) { - var time = output; - time = - output.indexOf('jaj') !== -1 - ? time.slice(0, -3) + 'leS' - : output.indexOf('jar') !== -1 - ? time.slice(0, -3) + 'waQ' - : output.indexOf('DIS') !== -1 - ? time.slice(0, -3) + 'nem' - : time + ' pIq'; - return time; - } + var _Event = __webpack_require__(394); - function translatePast(output) { - var time = output; - time = - output.indexOf('jaj') !== -1 - ? time.slice(0, -3) + 'Hu’' - : output.indexOf('jar') !== -1 - ? time.slice(0, -3) + 'wen' - : output.indexOf('DIS') !== -1 - ? time.slice(0, -3) + 'ben' - : time + ' ret'; - return time; - } + var _Event2 = _interopRequireDefault(_Event); - function translate(number, withoutSuffix, string, isFuture) { - var numberNoun = numberAsNoun(number); - switch (string) { - case 'ss': - return numberNoun + ' lup'; - case 'mm': - return numberNoun + ' tup'; - case 'hh': - return numberNoun + ' rep'; - case 'dd': - return numberNoun + ' jaj'; - case 'MM': - return numberNoun + ' jar'; - case 'yy': - return numberNoun + ' DIS'; - } - } + var _componentClasses = __webpack_require__(47); - function numberAsNoun(number) { - var hundred = Math.floor((number % 1000) / 100), - ten = Math.floor((number % 100) / 10), - one = number % 10, - word = ''; - if (hundred > 0) { - word += numbersNouns[hundred] + 'vatlh'; - } - if (ten > 0) { - word += (word !== '' ? ' ' : '') + numbersNouns[ten] + 'maH'; - } - if (one > 0) { - word += (word !== '' ? ' ' : '') + numbersNouns[one]; - } - return word === '' ? 'pagh' : word; + var _componentClasses2 = _interopRequireDefault(_componentClasses); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + + var isCssAnimationSupported = _Event2['default'].endEvents.length !== 0; + var capitalPrefixes = ['Webkit', 'Moz', 'O', + // ms is special .... ! + 'ms']; + var prefixes = ['-webkit-', '-moz-', '-o-', 'ms-', '']; + + function getStyleProperty(node, name) { + // old ff need null, https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle + var style = window.getComputedStyle(node, null); + var ret = ''; + for (var i = 0; i < prefixes.length; i++) { + ret = style.getPropertyValue(prefixes[i] + name); + if (ret) { + break; } + } + return ret; + } - var tlh = moment.defineLocale('tlh', { - months: 'tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’'.split( - '_' - ), - monthsShort: 'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split( - '_' - ), - weekdaysShort: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split( - '_' - ), - weekdaysMin: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split( - '_' - ), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[DaHjaj] LT', - nextDay: '[wa’leS] LT', - nextWeek: 'LLL', - lastDay: '[wa’Hu’] LT', - lastWeek: 'LLL', - sameElse: 'L', - }, - relativeTime: { - future: translateFuture, - past: translatePast, - s: 'puS lup', - ss: translate, - m: 'wa’ tup', - mm: translate, - h: 'wa’ rep', - hh: translate, - d: 'wa’ jaj', - dd: translate, - M: 'wa’ jar', - MM: translate, - y: 'wa’ DIS', - yy: translate, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + function fixBrowserByTimeout(node) { + if (isCssAnimationSupported) { + var transitionDelay = parseFloat(getStyleProperty(node, 'transition-delay')) || 0; + var transitionDuration = parseFloat(getStyleProperty(node, 'transition-duration')) || 0; + var animationDelay = parseFloat(getStyleProperty(node, 'animation-delay')) || 0; + var animationDuration = parseFloat(getStyleProperty(node, 'animation-duration')) || 0; + var time = Math.max(transitionDuration + transitionDelay, animationDuration + animationDelay); + // sometimes, browser bug + node.rcEndAnimTimeout = setTimeout(function () { + node.rcEndAnimTimeout = null; + if (node.rcEndListener) { + node.rcEndListener(); + } + }, time * 1000 + 200); + } + } - return tlh; + function clearBrowserBugTimeout(node) { + if (node.rcEndAnimTimeout) { + clearTimeout(node.rcEndAnimTimeout); + node.rcEndAnimTimeout = null; + } + } - }))); - - -/***/ }), -/* 523 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Turkish [tr] - //! authors : Erhan Gundogan : https://github.com/erhangundogan, - //! Burak Yiğit Kaya: https://github.com/BYK + var cssAnimation = function cssAnimation(node, transitionName, endCallback) { + var nameIsObj = (typeof transitionName === 'undefined' ? 'undefined' : (0, _typeof3['default'])(transitionName)) === 'object'; + var className = nameIsObj ? transitionName.name : transitionName; + var activeClassName = nameIsObj ? transitionName.active : transitionName + '-active'; + var end = endCallback; + var start = void 0; + var active = void 0; + var nodeClasses = (0, _componentClasses2['default'])(node); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + if (endCallback && Object.prototype.toString.call(endCallback) === '[object Object]') { + end = endCallback.end; + start = endCallback.start; + active = endCallback.active; + } - //! moment.js locale configuration + if (node.rcEndListener) { + node.rcEndListener(); + } - var suffixes = { - 1: "'inci", - 5: "'inci", - 8: "'inci", - 70: "'inci", - 80: "'inci", - 2: "'nci", - 7: "'nci", - 20: "'nci", - 50: "'nci", - 3: "'üncü", - 4: "'üncü", - 100: "'üncü", - 6: "'ncı", - 9: "'uncu", - 10: "'uncu", - 30: "'uncu", - 60: "'ıncı", - 90: "'ıncı", - }; + node.rcEndListener = function (e) { + if (e && e.target !== node) { + return; + } - var tr = moment.defineLocale('tr', { - months: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split( - '_' - ), - monthsShort: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'), - weekdays: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split( - '_' - ), - weekdaysShort: 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'), - weekdaysMin: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'), - meridiem: function (hours, minutes, isLower) { - if (hours < 12) { - return isLower ? 'öö' : 'ÖÖ'; - } else { - return isLower ? 'ös' : 'ÖS'; - } - }, - meridiemParse: /öö|ÖÖ|ös|ÖS/, - isPM: function (input) { - return input === 'ös' || input === 'ÖS'; - }, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[bugün saat] LT', - nextDay: '[yarın saat] LT', - nextWeek: '[gelecek] dddd [saat] LT', - lastDay: '[dün] LT', - lastWeek: '[geçen] dddd [saat] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s sonra', - past: '%s önce', - s: 'birkaç saniye', - ss: '%d saniye', - m: 'bir dakika', - mm: '%d dakika', - h: 'bir saat', - hh: '%d saat', - d: 'bir gün', - dd: '%d gün', - M: 'bir ay', - MM: '%d ay', - y: 'bir yıl', - yy: '%d yıl', - }, - ordinal: function (number, period) { - switch (period) { - case 'd': - case 'D': - case 'Do': - case 'DD': - return number; - default: - if (number === 0) { - // special case for zero - return number + "'ıncı"; - } - var a = number % 10, - b = (number % 100) - a, - c = number >= 100 ? 100 : null; - return number + (suffixes[a] || suffixes[b] || suffixes[c]); - } - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); + if (node.rcAnimTimeout) { + clearTimeout(node.rcAnimTimeout); + node.rcAnimTimeout = null; + } - return tr; + clearBrowserBugTimeout(node); - }))); - - -/***/ }), -/* 524 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Talossan [tzl] - //! author : Robin van der Vliet : https://github.com/robin0van0der0v - //! author : Iustì Canun + nodeClasses.remove(className); + nodeClasses.remove(activeClassName); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + _Event2['default'].removeEndEventListener(node, node.rcEndListener); + node.rcEndListener = null; - //! moment.js locale configuration + // Usually this optional end is used for informing an owner of + // a leave animation and telling it to remove the child. + if (end) { + end(); + } + }; - // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals. - // This is currently too difficult (maybe even impossible) to add. - var tzl = moment.defineLocale('tzl', { - months: 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split( - '_' - ), - monthsShort: 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'), - weekdays: 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'), - weekdaysShort: 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'), - weekdaysMin: 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'), - longDateFormat: { - LT: 'HH.mm', - LTS: 'HH.mm.ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM [dallas] YYYY', - LLL: 'D. MMMM [dallas] YYYY HH.mm', - LLLL: 'dddd, [li] D. MMMM [dallas] YYYY HH.mm', - }, - meridiemParse: /d\'o|d\'a/i, - isPM: function (input) { - return "d'o" === input.toLowerCase(); - }, - meridiem: function (hours, minutes, isLower) { - if (hours > 11) { - return isLower ? "d'o" : "D'O"; - } else { - return isLower ? "d'a" : "D'A"; - } - }, - calendar: { - sameDay: '[oxhi à] LT', - nextDay: '[demà à] LT', - nextWeek: 'dddd [à] LT', - lastDay: '[ieiri à] LT', - lastWeek: '[sür el] dddd [lasteu à] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'osprei %s', - past: 'ja%s', - s: processRelativeTime, - ss: processRelativeTime, - m: processRelativeTime, - mm: processRelativeTime, - h: processRelativeTime, - hh: processRelativeTime, - d: processRelativeTime, - dd: processRelativeTime, - M: processRelativeTime, - MM: processRelativeTime, - y: processRelativeTime, - yy: processRelativeTime, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + _Event2['default'].addEndEventListener(node, node.rcEndListener); - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - s: ['viensas secunds', "'iensas secunds"], - ss: [number + ' secunds', '' + number + ' secunds'], - m: ["'n míut", "'iens míut"], - mm: [number + ' míuts', '' + number + ' míuts'], - h: ["'n þora", "'iensa þora"], - hh: [number + ' þoras', '' + number + ' þoras'], - d: ["'n ziua", "'iensa ziua"], - dd: [number + ' ziuas', '' + number + ' ziuas'], - M: ["'n mes", "'iens mes"], - MM: [number + ' mesen', '' + number + ' mesen'], - y: ["'n ar", "'iens ar"], - yy: [number + ' ars', '' + number + ' ars'], - }; - return isFuture - ? format[key][0] - : withoutSuffix - ? format[key][0] - : format[key][1]; + if (start) { + start(); + } + nodeClasses.add(className); + + node.rcAnimTimeout = setTimeout(function () { + node.rcAnimTimeout = null; + nodeClasses.add(activeClassName); + if (active) { + setTimeout(active, 0); } + fixBrowserByTimeout(node); + // 30ms for firefox + }, 30); - return tzl; + return { + stop: function stop() { + if (node.rcEndListener) { + node.rcEndListener(); + } + } + }; + }; - }))); - - -/***/ }), -/* 525 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Central Atlas Tamazight [tzm] - //! author : Abdel Said : https://github.com/abdelsaid + cssAnimation.style = function (node, style, callback) { + if (node.rcEndListener) { + node.rcEndListener(); + } - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + node.rcEndListener = function (e) { + if (e && e.target !== node) { + return; + } - //! moment.js locale configuration + if (node.rcAnimTimeout) { + clearTimeout(node.rcAnimTimeout); + node.rcAnimTimeout = null; + } - var tzm = moment.defineLocale('tzm', { - months: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split( - '_' - ), - monthsShort: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split( - '_' - ), - weekdays: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'), - weekdaysShort: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'), - weekdaysMin: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[ⴰⵙⴷⵅ ⴴ] LT', - nextDay: '[ⴰⵙⴽⴰ ⴴ] LT', - nextWeek: 'dddd [ⴴ] LT', - lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT', - lastWeek: 'dddd [ⴴ] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s', - past: 'ⵢⴰⵏ %s', - s: 'ⵉⵎⵉⴽ', - ss: '%d ⵉⵎⵉⴽ', - m: 'ⵎⵉⵏⵓⴺ', - mm: '%d ⵎⵉⵏⵓⴺ', - h: 'ⵙⴰⵄⴰ', - hh: '%d ⵜⴰⵙⵙⴰⵄⵉⵏ', - d: 'ⴰⵙⵙ', - dd: '%d oⵙⵙⴰⵏ', - M: 'ⴰⵢoⵓⵔ', - MM: '%d ⵉⵢⵢⵉⵔⵏ', - y: 'ⴰⵙⴳⴰⵙ', - yy: '%d ⵉⵙⴳⴰⵙⵏ', - }, - week: { - dow: 6, // Saturday is the first day of the week. - doy: 12, // The week that contains Jan 12th is the first week of the year. - }, - }); + clearBrowserBugTimeout(node); - return tzm; + _Event2['default'].removeEndEventListener(node, node.rcEndListener); + node.rcEndListener = null; - }))); - - -/***/ }), -/* 526 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Central Atlas Tamazight Latin [tzm-latn] - //! author : Abdel Said : https://github.com/abdelsaid + // Usually this optional callback is used for informing an owner of + // a leave animation and telling it to remove the child. + if (callback) { + callback(); + } + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + _Event2['default'].addEndEventListener(node, node.rcEndListener); - //! moment.js locale configuration + node.rcAnimTimeout = setTimeout(function () { + for (var s in style) { + if (style.hasOwnProperty(s)) { + node.style[s] = style[s]; + } + } + node.rcAnimTimeout = null; + fixBrowserByTimeout(node); + }, 0); + }; - var tzmLatn = moment.defineLocale('tzm-latn', { - months: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split( - '_' - ), - monthsShort: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split( - '_' - ), - weekdays: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'), - weekdaysShort: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'), - weekdaysMin: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[asdkh g] LT', - nextDay: '[aska g] LT', - nextWeek: 'dddd [g] LT', - lastDay: '[assant g] LT', - lastWeek: 'dddd [g] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'dadkh s yan %s', - past: 'yan %s', - s: 'imik', - ss: '%d imik', - m: 'minuḍ', - mm: '%d minuḍ', - h: 'saɛa', - hh: '%d tassaɛin', - d: 'ass', - dd: '%d ossan', - M: 'ayowr', - MM: '%d iyyirn', - y: 'asgas', - yy: '%d isgasn', - }, - week: { - dow: 6, // Saturday is the first day of the week. - doy: 12, // The week that contains Jan 12th is the first week of the year. - }, - }); + cssAnimation.setTransition = function (node, p, value) { + var property = p; + var v = value; + if (value === undefined) { + v = property; + property = ''; + } + property = property || ''; + capitalPrefixes.forEach(function (prefix) { + node.style[prefix + 'Transition' + property] = v; + }); + }; - return tzmLatn; + cssAnimation.isCssAnimationSupported = isCssAnimationSupported; - }))); - + exports.isCssAnimationSupported = isCssAnimationSupported; + exports['default'] = cssAnimation; /***/ }), -/* 527 */ -/***/ (function(module, exports, __webpack_require__) { +/* 394 */ +/***/ (function(module, exports) { - //! moment.js language configuration - //! locale : Uyghur (China) [ug-cn] - //! author: boyaq : https://github.com/boyaq + 'use strict'; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + Object.defineProperty(exports, "__esModule", { + value: true + }); + var START_EVENT_NAME_MAP = { + transitionstart: { + transition: 'transitionstart', + WebkitTransition: 'webkitTransitionStart', + MozTransition: 'mozTransitionStart', + OTransition: 'oTransitionStart', + msTransition: 'MSTransitionStart' + }, - //! moment.js language configuration + animationstart: { + animation: 'animationstart', + WebkitAnimation: 'webkitAnimationStart', + MozAnimation: 'mozAnimationStart', + OAnimation: 'oAnimationStart', + msAnimation: 'MSAnimationStart' + } + }; - var ugCn = moment.defineLocale('ug-cn', { - months: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split( - '_' - ), - monthsShort: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split( - '_' - ), - weekdays: 'يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە'.split( - '_' - ), - weekdaysShort: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'), - weekdaysMin: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY-MM-DD', - LL: 'YYYY-يىلىM-ئاينىڭD-كۈنى', - LLL: 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm', - LLLL: 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm', - }, - meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if ( - meridiem === 'يېرىم كېچە' || - meridiem === 'سەھەر' || - meridiem === 'چۈشتىن بۇرۇن' - ) { - return hour; - } else if (meridiem === 'چۈشتىن كېيىن' || meridiem === 'كەچ') { - return hour + 12; - } else { - return hour >= 11 ? hour : hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - var hm = hour * 100 + minute; - if (hm < 600) { - return 'يېرىم كېچە'; - } else if (hm < 900) { - return 'سەھەر'; - } else if (hm < 1130) { - return 'چۈشتىن بۇرۇن'; - } else if (hm < 1230) { - return 'چۈش'; - } else if (hm < 1800) { - return 'چۈشتىن كېيىن'; - } else { - return 'كەچ'; - } - }, - calendar: { - sameDay: '[بۈگۈن سائەت] LT', - nextDay: '[ئەتە سائەت] LT', - nextWeek: '[كېلەركى] dddd [سائەت] LT', - lastDay: '[تۆنۈگۈن] LT', - lastWeek: '[ئالدىنقى] dddd [سائەت] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s كېيىن', - past: '%s بۇرۇن', - s: 'نەچچە سېكونت', - ss: '%d سېكونت', - m: 'بىر مىنۇت', - mm: '%d مىنۇت', - h: 'بىر سائەت', - hh: '%d سائەت', - d: 'بىر كۈن', - dd: '%d كۈن', - M: 'بىر ئاي', - MM: '%d ئاي', - y: 'بىر يىل', - yy: '%d يىل', - }, + var END_EVENT_NAME_MAP = { + transitionend: { + transition: 'transitionend', + WebkitTransition: 'webkitTransitionEnd', + MozTransition: 'mozTransitionEnd', + OTransition: 'oTransitionEnd', + msTransition: 'MSTransitionEnd' + }, - dayOfMonthOrdinalParse: /\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/, - ordinal: function (number, period) { - switch (period) { - case 'd': - case 'D': - case 'DDD': - return number + '-كۈنى'; - case 'w': - case 'W': - return number + '-ھەپتە'; - default: - return number; - } - }, - preparse: function (string) { - return string.replace(/،/g, ','); - }, - postformat: function (string) { - return string.replace(/,/g, '،'); - }, - week: { - // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效 - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 1st is the first week of the year. - }, - }); + animationend: { + animation: 'animationend', + WebkitAnimation: 'webkitAnimationEnd', + MozAnimation: 'mozAnimationEnd', + OAnimation: 'oAnimationEnd', + msAnimation: 'MSAnimationEnd' + } + }; - return ugCn; + var startEvents = []; + var endEvents = []; - }))); - - -/***/ }), -/* 528 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Ukrainian [uk] - //! author : zemlanin : https://github.com/zemlanin - //! Author : Menelion Elensúle : https://github.com/Oire + function detectEvents() { + var testEl = document.createElement('div'); + var style = testEl.style; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + if (!('AnimationEvent' in window)) { + delete START_EVENT_NAME_MAP.animationstart.animation; + delete END_EVENT_NAME_MAP.animationend.animation; + } - //! moment.js locale configuration + if (!('TransitionEvent' in window)) { + delete START_EVENT_NAME_MAP.transitionstart.transition; + delete END_EVENT_NAME_MAP.transitionend.transition; + } - function plural(word, num) { - var forms = word.split('_'); - return num % 10 === 1 && num % 100 !== 11 - ? forms[0] - : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) - ? forms[1] - : forms[2]; - } - function relativeTimeWithPlural(number, withoutSuffix, key) { - var format = { - ss: withoutSuffix ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд', - mm: withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин', - hh: withoutSuffix ? 'година_години_годин' : 'годину_години_годин', - dd: 'день_дні_днів', - MM: 'місяць_місяці_місяців', - yy: 'рік_роки_років', - }; - if (key === 'm') { - return withoutSuffix ? 'хвилина' : 'хвилину'; - } else if (key === 'h') { - return withoutSuffix ? 'година' : 'годину'; - } else { - return number + ' ' + plural(format[key], +number); + function process(EVENT_NAME_MAP, events) { + for (var baseEventName in EVENT_NAME_MAP) { + if (EVENT_NAME_MAP.hasOwnProperty(baseEventName)) { + var baseEvents = EVENT_NAME_MAP[baseEventName]; + for (var styleName in baseEvents) { + if (styleName in style) { + events.push(baseEvents[styleName]); + break; + } } + } } - function weekdaysCaseReplace(m, format) { - var weekdays = { - nominative: 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split( - '_' - ), - accusative: 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split( - '_' - ), - genitive: 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split( - '_' - ), - }, - nounCase; + } - if (m === true) { - return weekdays['nominative'] - .slice(1, 7) - .concat(weekdays['nominative'].slice(0, 1)); - } - if (!m) { - return weekdays['nominative']; - } + process(START_EVENT_NAME_MAP, startEvents); + process(END_EVENT_NAME_MAP, endEvents); + } - nounCase = /(\[[ВвУу]\]) ?dddd/.test(format) - ? 'accusative' - : /\[?(?:минулої|наступної)? ?\] ?dddd/.test(format) - ? 'genitive' - : 'nominative'; - return weekdays[nounCase][m.day()]; - } - function processHoursFunction(str) { - return function () { - return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT'; - }; - } + if (typeof window !== 'undefined' && typeof document !== 'undefined') { + detectEvents(); + } - var uk = moment.defineLocale('uk', { - months: { - format: 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split( - '_' - ), - standalone: 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split( - '_' - ), - }, - monthsShort: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split( - '_' - ), - weekdays: weekdaysCaseReplace, - weekdaysShort: 'нд_пн_вт_ср_чт_пт_сб'.split('_'), - weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY р.', - LLL: 'D MMMM YYYY р., HH:mm', - LLLL: 'dddd, D MMMM YYYY р., HH:mm', - }, - calendar: { - sameDay: processHoursFunction('[Сьогодні '), - nextDay: processHoursFunction('[Завтра '), - lastDay: processHoursFunction('[Вчора '), - nextWeek: processHoursFunction('[У] dddd ['), - lastWeek: function () { - switch (this.day()) { - case 0: - case 3: - case 5: - case 6: - return processHoursFunction('[Минулої] dddd [').call(this); - case 1: - case 2: - case 4: - return processHoursFunction('[Минулого] dddd [').call(this); - } - }, - sameElse: 'L', - }, - relativeTime: { - future: 'за %s', - past: '%s тому', - s: 'декілька секунд', - ss: relativeTimeWithPlural, - m: relativeTimeWithPlural, - mm: relativeTimeWithPlural, - h: 'годину', - hh: relativeTimeWithPlural, - d: 'день', - dd: relativeTimeWithPlural, - M: 'місяць', - MM: relativeTimeWithPlural, - y: 'рік', - yy: relativeTimeWithPlural, - }, - // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason - meridiemParse: /ночі|ранку|дня|вечора/, - isPM: function (input) { - return /^(дня|вечора)$/.test(input); - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'ночі'; - } else if (hour < 12) { - return 'ранку'; - } else if (hour < 17) { - return 'дня'; - } else { - return 'вечора'; - } - }, - dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/, - ordinal: function (number, period) { - switch (period) { - case 'M': - case 'd': - case 'DDD': - case 'w': - case 'W': - return number + '-й'; - case 'D': - return number + '-го'; - default: - return number; - } - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, + function addEventListener(node, eventName, eventListener) { + node.addEventListener(eventName, eventListener, false); + } + + function removeEventListener(node, eventName, eventListener) { + node.removeEventListener(eventName, eventListener, false); + } + + var TransitionEvents = { + // Start events + startEvents: startEvents, + + addStartEventListener: function addStartEventListener(node, eventListener) { + if (startEvents.length === 0) { + window.setTimeout(eventListener, 0); + return; + } + startEvents.forEach(function (startEvent) { + addEventListener(node, startEvent, eventListener); }); + }, + removeStartEventListener: function removeStartEventListener(node, eventListener) { + if (startEvents.length === 0) { + return; + } + startEvents.forEach(function (startEvent) { + removeEventListener(node, startEvent, eventListener); + }); + }, - return uk; - }))); + // End events + endEvents: endEvents, + + addEndEventListener: function addEndEventListener(node, eventListener) { + if (endEvents.length === 0) { + window.setTimeout(eventListener, 0); + return; + } + endEvents.forEach(function (endEvent) { + addEventListener(node, endEvent, eventListener); + }); + }, + removeEndEventListener: function removeEndEventListener(node, eventListener) { + if (endEvents.length === 0) { + return; + } + endEvents.forEach(function (endEvent) { + removeEventListener(node, endEvent, eventListener); + }); + } + }; + + exports['default'] = TransitionEvents; + module.exports = exports['default']; + +/***/ }), +/* 395 */ +/***/ (function(module, exports) { + "use strict"; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + var util = { + isAppearSupported: function isAppearSupported(props) { + return props.transitionName && props.transitionAppear || props.animation.appear; + }, + isEnterSupported: function isEnterSupported(props) { + return props.transitionName && props.transitionEnter || props.animation.enter; + }, + isLeaveSupported: function isLeaveSupported(props) { + return props.transitionName && props.transitionLeave || props.animation.leave; + }, + allowAppearCallback: function allowAppearCallback(props) { + return props.transitionAppear || props.animation.appear; + }, + allowEnterCallback: function allowEnterCallback(props) { + return props.transitionEnter || props.animation.enter; + }, + allowLeaveCallback: function allowLeaveCallback(props) { + return props.transitionLeave || props.animation.leave; + } + }; + exports["default"] = util; + module.exports = exports['default']; /***/ }), -/* 529 */ +/* 396 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Urdu [ur] - //! author : Sawood Alam : https://github.com/ibnesayeed - //! author : Zack : https://github.com/ZackVision + 'use strict'; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + exports.__esModule = true; - //! moment.js locale configuration + var _classCallCheck2 = __webpack_require__(337); - var months = [ - 'جنوری', - 'فروری', - 'مارچ', - 'اپریل', - 'مئی', - 'جون', - 'جولائی', - 'اگست', - 'ستمبر', - 'اکتوبر', - 'نومبر', - 'دسمبر', - ], - days = ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ']; + var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - var ur = moment.defineLocale('ur', { - months: months, - monthsShort: months, - weekdays: days, - weekdaysShort: days, - weekdaysMin: days, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd، D MMMM YYYY HH:mm', - }, - meridiemParse: /صبح|شام/, - isPM: function (input) { - return 'شام' === input; - }, - meridiem: function (hour, minute, isLower) { - if (hour < 12) { - return 'صبح'; - } - return 'شام'; - }, - calendar: { - sameDay: '[آج بوقت] LT', - nextDay: '[کل بوقت] LT', - nextWeek: 'dddd [بوقت] LT', - lastDay: '[گذشتہ روز بوقت] LT', - lastWeek: '[گذشتہ] dddd [بوقت] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s بعد', - past: '%s قبل', - s: 'چند سیکنڈ', - ss: '%d سیکنڈ', - m: 'ایک منٹ', - mm: '%d منٹ', - h: 'ایک گھنٹہ', - hh: '%d گھنٹے', - d: 'ایک دن', - dd: '%d دن', - M: 'ایک ماہ', - MM: '%d ماہ', - y: 'ایک سال', - yy: '%d سال', - }, - preparse: function (string) { - return string.replace(/،/g, ','); - }, - postformat: function (string) { - return string.replace(/,/g, '،'); - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var _possibleConstructorReturn2 = __webpack_require__(338); - return ur; + var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - }))); - - -/***/ }), -/* 530 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Uzbek [uz] - //! author : Sardor Muminov : https://github.com/muminoff + var _inherits2 = __webpack_require__(369); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _inherits3 = _interopRequireDefault(_inherits2); - //! moment.js locale configuration + var _react = __webpack_require__(1); - var uz = moment.defineLocale('uz', { - months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split( - '_' - ), - monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'), - weekdays: 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'), - weekdaysShort: 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'), - weekdaysMin: 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'D MMMM YYYY, dddd HH:mm', - }, - calendar: { - sameDay: '[Бугун соат] LT [да]', - nextDay: '[Эртага] LT [да]', - nextWeek: 'dddd [куни соат] LT [да]', - lastDay: '[Кеча соат] LT [да]', - lastWeek: '[Утган] dddd [куни соат] LT [да]', - sameElse: 'L', - }, - relativeTime: { - future: 'Якин %s ичида', - past: 'Бир неча %s олдин', - s: 'фурсат', - ss: '%d фурсат', - m: 'бир дакика', - mm: '%d дакика', - h: 'бир соат', - hh: '%d соат', - d: 'бир кун', - dd: '%d кун', - M: 'бир ой', - MM: '%d ой', - y: 'бир йил', - yy: '%d йил', - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 4th is the first week of the year. - }, - }); + var _react2 = _interopRequireDefault(_react); - return uz; + var _propTypes = __webpack_require__(6); - }))); - - -/***/ }), -/* 531 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Uzbek Latin [uz-latn] - //! author : Rasulbek Mirzayev : github.com/Rasulbeeek + var _propTypes2 = _interopRequireDefault(_propTypes); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _LazyRenderBox = __webpack_require__(397); - //! moment.js locale configuration + var _LazyRenderBox2 = _interopRequireDefault(_LazyRenderBox); - var uzLatn = moment.defineLocale('uz-latn', { - months: 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split( - '_' - ), - monthsShort: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'), - weekdays: 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split( - '_' - ), - weekdaysShort: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'), - weekdaysMin: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'D MMMM YYYY, dddd HH:mm', - }, - calendar: { - sameDay: '[Bugun soat] LT [da]', - nextDay: '[Ertaga] LT [da]', - nextWeek: 'dddd [kuni soat] LT [da]', - lastDay: '[Kecha soat] LT [da]', - lastWeek: "[O'tgan] dddd [kuni soat] LT [da]", - sameElse: 'L', - }, - relativeTime: { - future: 'Yaqin %s ichida', - past: 'Bir necha %s oldin', - s: 'soniya', - ss: '%d soniya', - m: 'bir daqiqa', - mm: '%d daqiqa', - h: 'bir soat', - hh: '%d soat', - d: 'bir kun', - dd: '%d kun', - M: 'bir oy', - MM: '%d oy', - y: 'bir yil', - yy: '%d yil', - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - return uzLatn; + var PopupInner = function (_Component) { + (0, _inherits3['default'])(PopupInner, _Component); - }))); - + function PopupInner() { + (0, _classCallCheck3['default'])(this, PopupInner); + return (0, _possibleConstructorReturn3['default'])(this, _Component.apply(this, arguments)); + } + + PopupInner.prototype.render = function render() { + var props = this.props; + var className = props.className; + if (!props.visible) { + className += ' ' + props.hiddenClassName; + } + return _react2['default'].createElement( + 'div', + { + className: className, + onMouseEnter: props.onMouseEnter, + onMouseLeave: props.onMouseLeave, + onMouseDown: props.onMouseDown, + onTouchStart: props.onTouchStart, + style: props.style + }, + _react2['default'].createElement( + _LazyRenderBox2['default'], + { className: props.prefixCls + '-content', visible: props.visible }, + props.children + ) + ); + }; + + return PopupInner; + }(_react.Component); + + PopupInner.propTypes = { + hiddenClassName: _propTypes2['default'].string, + className: _propTypes2['default'].string, + prefixCls: _propTypes2['default'].string, + onMouseEnter: _propTypes2['default'].func, + onMouseLeave: _propTypes2['default'].func, + onMouseDown: _propTypes2['default'].func, + onTouchStart: _propTypes2['default'].func, + children: _propTypes2['default'].any + }; + exports['default'] = PopupInner; + module.exports = exports['default']; /***/ }), -/* 532 */ +/* 397 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Vietnamese [vi] - //! author : Bang Nguyen : https://github.com/bangnk - //! author : Chien Kira : https://github.com/chienkira + 'use strict'; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + exports.__esModule = true; - //! moment.js locale configuration + var _objectWithoutProperties2 = __webpack_require__(398); - var vi = moment.defineLocale('vi', { - months: 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split( - '_' - ), - monthsShort: 'Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split( - '_' - ), - weekdaysShort: 'CN_T2_T3_T4_T5_T6_T7'.split('_'), - weekdaysMin: 'CN_T2_T3_T4_T5_T6_T7'.split('_'), - weekdaysParseExact: true, - meridiemParse: /sa|ch/i, - isPM: function (input) { - return /^ch$/i.test(input); - }, - meridiem: function (hours, minutes, isLower) { - if (hours < 12) { - return isLower ? 'sa' : 'SA'; - } else { - return isLower ? 'ch' : 'CH'; - } - }, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM [năm] YYYY', - LLL: 'D MMMM [năm] YYYY HH:mm', - LLLL: 'dddd, D MMMM [năm] YYYY HH:mm', - l: 'DD/M/YYYY', - ll: 'D MMM YYYY', - lll: 'D MMM YYYY HH:mm', - llll: 'ddd, D MMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Hôm nay lúc] LT', - nextDay: '[Ngày mai lúc] LT', - nextWeek: 'dddd [tuần tới lúc] LT', - lastDay: '[Hôm qua lúc] LT', - lastWeek: 'dddd [tuần trước lúc] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s tới', - past: '%s trước', - s: 'vài giây', - ss: '%d giây', - m: 'một phút', - mm: '%d phút', - h: 'một giờ', - hh: '%d giờ', - d: 'một ngày', - dd: '%d ngày', - M: 'một tháng', - MM: '%d tháng', - y: 'một năm', - yy: '%d năm', - }, - dayOfMonthOrdinalParse: /\d{1,2}/, - ordinal: function (number) { - return number; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); - return vi; + var _classCallCheck2 = __webpack_require__(337); - }))); - - -/***/ }), -/* 533 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Pseudo [x-pseudo] - //! author : Andrew Hood : https://github.com/andrewhood125 + var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _possibleConstructorReturn2 = __webpack_require__(338); - //! moment.js locale configuration + var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - var xPseudo = moment.defineLocale('x-pseudo', { - months: 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split( - '_' - ), - monthsShort: 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split( - '_' - ), - weekdaysShort: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'), - weekdaysMin: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[T~ódá~ý át] LT', - nextDay: '[T~ómó~rró~w át] LT', - nextWeek: 'dddd [át] LT', - lastDay: '[Ý~ést~érdá~ý át] LT', - lastWeek: '[L~ást] dddd [át] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'í~ñ %s', - past: '%s á~gó', - s: 'á ~féw ~sécó~ñds', - ss: '%d s~écóñ~ds', - m: 'á ~míñ~úté', - mm: '%d m~íñú~tés', - h: 'á~ñ hó~úr', - hh: '%d h~óúrs', - d: 'á ~dáý', - dd: '%d d~áýs', - M: 'á ~móñ~th', - MM: '%d m~óñt~hs', - y: 'á ~ýéár', - yy: '%d ý~éárs', - }, - dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, - ordinal: function (number) { - var b = number % 10, - output = - ~~((number % 100) / 10) === 1 - ? 'th' - : b === 1 - ? 'st' - : b === 2 - ? 'nd' - : b === 3 - ? 'rd' - : 'th'; - return number + output; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var _inherits2 = __webpack_require__(369); - return xPseudo; + var _inherits3 = _interopRequireDefault(_inherits2); - }))); - + var _react = __webpack_require__(1); + + var _react2 = _interopRequireDefault(_react); + + var _propTypes = __webpack_require__(6); + + var _propTypes2 = _interopRequireDefault(_propTypes); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + + var LazyRenderBox = function (_Component) { + (0, _inherits3['default'])(LazyRenderBox, _Component); + + function LazyRenderBox() { + (0, _classCallCheck3['default'])(this, LazyRenderBox); + return (0, _possibleConstructorReturn3['default'])(this, _Component.apply(this, arguments)); + } + + LazyRenderBox.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) { + return nextProps.hiddenClassName || nextProps.visible; + }; + + LazyRenderBox.prototype.render = function render() { + var _props = this.props, + hiddenClassName = _props.hiddenClassName, + visible = _props.visible, + props = (0, _objectWithoutProperties3['default'])(_props, ['hiddenClassName', 'visible']); + + + if (hiddenClassName || _react2['default'].Children.count(props.children) > 1) { + if (!visible && hiddenClassName) { + props.className += ' ' + hiddenClassName; + } + return _react2['default'].createElement('div', props); + } + + return _react2['default'].Children.only(props.children); + }; + + return LazyRenderBox; + }(_react.Component); + + LazyRenderBox.propTypes = { + children: _propTypes2['default'].any, + className: _propTypes2['default'].string, + visible: _propTypes2['default'].bool, + hiddenClassName: _propTypes2['default'].string + }; + exports['default'] = LazyRenderBox; + module.exports = exports['default']; /***/ }), -/* 534 */ -/***/ (function(module, exports, __webpack_require__) { +/* 398 */ +/***/ (function(module, exports) { - //! moment.js locale configuration - //! locale : Yoruba Nigeria [yo] - //! author : Atolagbe Abisoye : https://github.com/andela-batolagbe + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + exports.__esModule = true; - //! moment.js locale configuration + exports.default = function (obj, keys) { + var target = {}; - var yo = moment.defineLocale('yo', { - months: 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split( - '_' - ), - monthsShort: 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'), - weekdays: 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'), - weekdaysShort: 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'), - weekdaysMin: 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'), - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY h:mm A', - LLLL: 'dddd, D MMMM YYYY h:mm A', - }, - calendar: { - sameDay: '[Ònì ni] LT', - nextDay: '[Ọ̀la ni] LT', - nextWeek: "dddd [Ọsẹ̀ tón'bọ] [ni] LT", - lastDay: '[Àna ni] LT', - lastWeek: 'dddd [Ọsẹ̀ tólọ́] [ni] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'ní %s', - past: '%s kọjá', - s: 'ìsẹjú aayá die', - ss: 'aayá %d', - m: 'ìsẹjú kan', - mm: 'ìsẹjú %d', - h: 'wákati kan', - hh: 'wákati %d', - d: 'ọjọ́ kan', - dd: 'ọjọ́ %d', - M: 'osù kan', - MM: 'osù %d', - y: 'ọdún kan', - yy: 'ọdún %d', - }, - dayOfMonthOrdinalParse: /ọjọ́\s\d{1,2}/, - ordinal: 'ọjọ́ %d', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + for (var i in obj) { + if (keys.indexOf(i) >= 0) continue; + if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; + target[i] = obj[i]; + } - return yo; + return target; + }; + +/***/ }), +/* 399 */ +/***/ (function(module, exports) { + + 'use strict'; - }))); + Object.defineProperty(exports, "__esModule", { + value: true + }); + /** + * This source code is quoted from rc-menu. + * homepage: https://github.com/react-component/menu + */ + var autoAdjustOverflow = { + adjustX: 1, + adjustY: 1 + }; + + var placements = exports.placements = { + topLeft: { + points: ['bl', 'tl'], + overflow: autoAdjustOverflow, + offset: [0, -7] + }, + bottomLeft: { + points: ['tl', 'bl'], + overflow: autoAdjustOverflow, + offset: [0, 7] + }, + leftTop: { + points: ['tr', 'tl'], + overflow: autoAdjustOverflow, + offset: [-4, 0] + }, + rightTop: { + points: ['tl', 'tr'], + overflow: autoAdjustOverflow, + offset: [4, 0] + } + }; + + exports["default"] = placements; + +/***/ }), +/* 400 */ +/***/ (function(module, exports) { + + // mutationobserver-shim v0.3.3 (github.com/megawac/MutationObserver.js) + // Authors: Graeme Yeates (github.com/megawac) + /* + Shim for MutationObserver interface + Author: Graeme Yeates (github.com/megawac) + Repository: https://github.com/megawac/MutationObserver.js + License: WTFPL V2, 2004 (wtfpl.net). + Though credit and staring the repo will make me feel pretty, you can modify and redistribute as you please. + Attempts to follow spec (https://www.w3.org/TR/dom/#mutation-observers) as closely as possible for native javascript + See https://github.com/WebKit/webkit/blob/master/Source/WebCore/dom/MutationObserver.cpp for current webkit source c++ implementation + */ + window.MutationObserver||(window.MutationObserver=function(y){function z(a){this.i=[];this.m=a}function K(a){(function c(){var d=a.takeRecords();d.length&&a.m(d,a);a.h=setTimeout(c,z._period)})()}function r(a){var b={type:null,target:null,addedNodes:[],removedNodes:[],previousSibling:null,nextSibling:null,attributeName:null,attributeNamespace:null,oldValue:null},c;for(c in a)b[c]!==y&&a[c]!==y&&(b[c]=a[c]);return b}function L(a,b){var c=E(a,b);return function(d){var f=d.length;b.a&&3===a.nodeType&& + a.nodeValue!==c.a&&d.push(new r({type:"characterData",target:a,oldValue:c.a}));b.b&&c.b&&C(d,a,c.b,b.f);if(b.c||b.g)var m=M(d,a,c,b);if(m||d.length!==f)c=E(a,b)}}function N(a,b){return b.value}function O(a,b){return"style"!==b.name?b.value:a.style.cssText}function C(a,b,c,d){for(var f={},m=b.attributes,k,g,p=m.length;p--;)k=m[p],g=k.name,d&&d[g]===y||(F(b,k)!==c[g]&&a.push(r({type:"attributes",target:b,attributeName:g,oldValue:c[g],attributeNamespace:k.namespaceURI})),f[g]=!0);for(g in c)f[g]||a.push(r({target:b, + type:"attributes",attributeName:g,oldValue:c[g]}))}function M(a,b,c,d){function f(g,p,t,q,x){var A=g.length-1;x=-~((A-x)/2);for(var h,l,e;e=g.pop();)h=t[e.j],l=q[e.l],d.c&&x&&Math.abs(e.j-e.l)>=A&&(a.push(r({type:"childList",target:p,addedNodes:[h],removedNodes:[h],nextSibling:h.nextSibling,previousSibling:h.previousSibling})),x--),d.b&&l.b&&C(a,h,l.b,d.f),d.a&&3===h.nodeType&&h.nodeValue!==l.a&&a.push(r({type:"characterData",target:h,oldValue:l.a})),d.g&&m(h,l)}function m(g,p){for(var t=g.childNodes, + q=p.c,x=t.length,A=q?q.length:0,h,l,e,n,v,B=0,w=0,u=0;w= 11 ? hour : hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - var hm = hour * 100 + minute; - if (hm < 600) { - return '凌晨'; - } else if (hm < 900) { - return '早上'; - } else if (hm < 1130) { - return '上午'; - } else if (hm < 1230) { - return '中午'; - } else if (hm < 1800) { - return '下午'; - } else { - return '晚上'; - } - }, - calendar: { - sameDay: '[今天]LT', - nextDay: '[明天]LT', - nextWeek: function (now) { - if (now.week() !== this.week()) { - return '[下]dddLT'; - } else { - return '[本]dddLT'; - } - }, - lastDay: '[昨天]LT', - lastWeek: function (now) { - if (this.week() !== now.week()) { - return '[上]dddLT'; - } else { - return '[本]dddLT'; - } - }, - sameElse: 'L', - }, - dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/, - ordinal: function (number, period) { - switch (period) { - case 'd': - case 'D': - case 'DDD': - return number + '日'; - case 'M': - return number + '月'; - case 'w': - case 'W': - return number + '周'; - default: - return number; - } - }, - relativeTime: { - future: '%s后', - past: '%s前', - s: '几秒', - ss: '%d 秒', - m: '1 分钟', - mm: '%d 分钟', - h: '1 小时', - hh: '%d 小时', - d: '1 天', - dd: '%d 天', - M: '1 个月', - MM: '%d 个月', - y: '1 年', - yy: '%d 年', - }, - week: { - // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效 - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, + var _react = __webpack_require__(1); + + var _react2 = _interopRequireDefault(_react); + + var _reactDom = __webpack_require__(2); + + var _reactDom2 = _interopRequireDefault(_reactDom); + + var _propTypes = __webpack_require__(6); + + var _propTypes2 = _interopRequireDefault(_propTypes); + + var _tinperBeeCore = __webpack_require__(27); + + var _classnames = __webpack_require__(5); + + var _classnames2 = _interopRequireDefault(_classnames); + + var _domScrollIntoView = __webpack_require__(402); + + var _domScrollIntoView2 = _interopRequireDefault(_domScrollIntoView); + + var _miniStore = __webpack_require__(325); + + var _util = __webpack_require__(333); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** + * This source code is quoted from rc-menu. + * homepage: https://github.com/react-component/menu + */ + + + /* eslint react/no-is-mounted:0 */ + + var MenuItem = exports.MenuItem = function (_React$Component) { + _inherits(MenuItem, _React$Component); + + function MenuItem(props) { + _classCallCheck(this, MenuItem); + + var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); + + _this.onKeyDown = function (e) { + var keyCode = e.keyCode; + if (keyCode === _tinperBeeCore.KeyCode.ENTER) { + _this.onClick(e); + return true; + } + }; + + _this.onMouseLeave = function (e) { + var _this$props = _this.props, + eventKey = _this$props.eventKey, + onItemHover = _this$props.onItemHover, + onMouseLeave = _this$props.onMouseLeave; + + onItemHover({ + key: eventKey, + hover: false + }); + onMouseLeave({ + key: eventKey, + domEvent: e + }); + }; + + _this.onMouseEnter = function (e) { + var _this$props2 = _this.props, + eventKey = _this$props2.eventKey, + onItemHover = _this$props2.onItemHover, + onMouseEnter = _this$props2.onMouseEnter; + + onItemHover({ + key: eventKey, + hover: true + }); + onMouseEnter({ + key: eventKey, + domEvent: e + }); + }; + + _this.onClick = function (e) { + var _this$props3 = _this.props, + eventKey = _this$props3.eventKey, + multiple = _this$props3.multiple, + onClick = _this$props3.onClick, + onSelect = _this$props3.onSelect, + onDeselect = _this$props3.onDeselect, + isSelected = _this$props3.isSelected; + + var info = { + key: eventKey, + keyPath: [eventKey], + item: _this, + domEvent: e + }; + onClick(info); + if (multiple) { + if (isSelected) { + onDeselect(info); + } else { + onSelect(info); + } + } else if (!isSelected) { + onSelect(info); + } + }; + + return _this; + } + + MenuItem.prototype.componentDidMount = function componentDidMount() { + // invoke customized ref to expose component to mixin + this.callRef(); + _reactDom2["default"].findDOMNode(this).addEventListener('DNDclick', this.onClick); + }; + + MenuItem.prototype.componentDidUpdate = function componentDidUpdate() { + if (this.props.active) { + (0, _domScrollIntoView2["default"])(_reactDom2["default"].findDOMNode(this), _reactDom2["default"].findDOMNode(this.props.parentMenu), { + onlyScrollIfNeeded: true + }); + } + this.callRef(); + }; + + MenuItem.prototype.componentWillUnmount = function componentWillUnmount() { + var props = this.props; + _reactDom2["default"].findDOMNode(this).removeEventListener('DNDclick', this.onClick); + if (props.onDestroy) { + props.onDestroy(props.eventKey); + } + }; + + MenuItem.prototype.getPrefixCls = function getPrefixCls() { + return this.props.rootPrefixCls + '-item'; + }; + + MenuItem.prototype.getActiveClassName = function getActiveClassName() { + return this.getPrefixCls() + '-active'; + }; + + MenuItem.prototype.getSelectedClassName = function getSelectedClassName() { + return this.getPrefixCls() + '-selected'; + }; + + MenuItem.prototype.getDisabledClassName = function getDisabledClassName() { + return this.getPrefixCls() + '-disabled'; + }; + + MenuItem.prototype.callRef = function callRef() { + if (this.props.manualRef) { + this.props.manualRef(this); + } + }; + + MenuItem.prototype.render = function render() { + var _classNames; + + var props = _extends({}, this.props); + var className = (0, _classnames2["default"])(this.getPrefixCls(), props.className, (_classNames = {}, _defineProperty(_classNames, this.getActiveClassName(), !props.disabled && props.active), _defineProperty(_classNames, this.getSelectedClassName(), props.isSelected), _defineProperty(_classNames, this.getDisabledClassName(), props.disabled), _classNames)); + var attrs = _extends({}, props.attribute, { + title: props.title, + className: className, + // set to menuitem by default + role: props.role || 'menuitem', + 'aria-disabled': props.disabled + }); + + if (props.role === 'option') { + // overwrite to option + attrs = _extends({}, attrs, { + role: 'option', + 'aria-selected': props.isSelected + }); + } else if (props.role === null || props.role === 'none') { + // sometimes we want to specify role inside
  • element + //
  • Link
  • would be a good example + // in this case the role on
  • should be "none" to + // remove the implied listitem role. + // https://www.w3.org/TR/wai-aria-practices-1.1/examples/menubar/menubar-1/menubar-1.html + attrs.role = 'none'; + } + // In case that onClick/onMouseLeave/onMouseEnter is passed down from owner + var mouseEvent = { + onClick: props.disabled ? null : this.onClick, + onMouseLeave: props.disabled ? null : this.onMouseLeave, + onMouseEnter: props.disabled ? null : this.onMouseEnter + }; + var style = _extends({}, props.style); + if (props.mode === 'inline') { + style.paddingLeft = props.inlineIndent * props.level; + } + _util.menuAllProps.forEach(function (key) { + return delete props[key]; }); + var icon = this.props.itemIcon; + if (typeof this.props.itemIcon === 'function') { + icon = _react2["default"].createElement(this.props.itemIcon, this.props); + } + return _react2["default"].createElement( + 'li', + _extends({}, props, attrs, mouseEvent, { + style: style + }), + props.children, + icon + ); + }; - return zhCn; + return MenuItem; + }(_react2["default"].Component); - }))); + MenuItem.propTypes = { + attribute: _propTypes2["default"].object, + rootPrefixCls: _propTypes2["default"].string, + eventKey: _propTypes2["default"].string, + active: _propTypes2["default"].bool, + children: _propTypes2["default"].any, + selectedKeys: _propTypes2["default"].array, + disabled: _propTypes2["default"].bool, + title: _propTypes2["default"].string, + onItemHover: _propTypes2["default"].func, + onSelect: _propTypes2["default"].func, + onClick: _propTypes2["default"].func, + onDeselect: _propTypes2["default"].func, + parentMenu: _propTypes2["default"].object, + onDestroy: _propTypes2["default"].func, + onMouseEnter: _propTypes2["default"].func, + onMouseLeave: _propTypes2["default"].func, + multiple: _propTypes2["default"].bool, + isSelected: _propTypes2["default"].bool, + manualRef: _propTypes2["default"].func, + itemIcon: _propTypes2["default"].oneOfType([_propTypes2["default"].func, _propTypes2["default"].node]) + }; + MenuItem.defaultProps = { + onSelect: _util.noop, + onMouseEnter: _util.noop, + onMouseLeave: _util.noop, + manualRef: _util.noop + }; + + + MenuItem.isMenuItem = true; + + var connected = (0, _miniStore.connect)(function (_ref, _ref2) { + var activeKey = _ref.activeKey, + selectedKeys = _ref.selectedKeys; + var eventKey = _ref2.eventKey, + subMenuKey = _ref2.subMenuKey; + return { + active: activeKey[subMenuKey] === eventKey, + isSelected: selectedKeys.indexOf(eventKey) !== -1 + }; + })(MenuItem); + + exports["default"] = connected; + +/***/ }), +/* 402 */ +/***/ (function(module, exports, __webpack_require__) { + 'use strict'; + + module.exports = __webpack_require__(403); /***/ }), -/* 536 */ +/* 403 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Chinese (Hong Kong) [zh-hk] - //! author : Ben : https://github.com/ben-lin - //! author : Chris Lam : https://github.com/hehachris - //! author : Konstantin : https://github.com/skfd - //! author : Anthony : https://github.com/anthonylau + 'use strict'; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var util = __webpack_require__(404); - //! moment.js locale configuration + function scrollIntoView(elem, container, config) { + config = config || {}; + // document 归一化到 window + if (container.nodeType === 9) { + container = util.getWindow(container); + } - var zhHk = moment.defineLocale('zh-hk', { - months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split( - '_' - ), - monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split( - '_' - ), - weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), - weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'), - weekdaysMin: '日_一_二_三_四_五_六'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY/MM/DD', - LL: 'YYYY年M月D日', - LLL: 'YYYY年M月D日 HH:mm', - LLLL: 'YYYY年M月D日dddd HH:mm', - l: 'YYYY/M/D', - ll: 'YYYY年M月D日', - lll: 'YYYY年M月D日 HH:mm', - llll: 'YYYY年M月D日dddd HH:mm', - }, - meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') { - return hour; - } else if (meridiem === '中午') { - return hour >= 11 ? hour : hour + 12; - } else if (meridiem === '下午' || meridiem === '晚上') { - return hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - var hm = hour * 100 + minute; - if (hm < 600) { - return '凌晨'; - } else if (hm < 900) { - return '早上'; - } else if (hm < 1200) { - return '上午'; - } else if (hm === 1200) { - return '中午'; - } else if (hm < 1800) { - return '下午'; - } else { - return '晚上'; - } - }, - calendar: { - sameDay: '[今天]LT', - nextDay: '[明天]LT', - nextWeek: '[下]ddddLT', - lastDay: '[昨天]LT', - lastWeek: '[上]ddddLT', - sameElse: 'L', - }, - dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/, - ordinal: function (number, period) { - switch (period) { - case 'd': - case 'D': - case 'DDD': - return number + '日'; - case 'M': - return number + '月'; - case 'w': - case 'W': - return number + '週'; - default: - return number; - } - }, - relativeTime: { - future: '%s後', - past: '%s前', - s: '幾秒', - ss: '%d 秒', - m: '1 分鐘', - mm: '%d 分鐘', - h: '1 小時', - hh: '%d 小時', - d: '1 天', - dd: '%d 天', - M: '1 個月', - MM: '%d 個月', - y: '1 年', - yy: '%d 年', - }, - }); + var allowHorizontalScroll = config.allowHorizontalScroll; + var onlyScrollIfNeeded = config.onlyScrollIfNeeded; + var alignWithTop = config.alignWithTop; + var alignWithLeft = config.alignWithLeft; + var offsetTop = config.offsetTop || 0; + var offsetLeft = config.offsetLeft || 0; + var offsetBottom = config.offsetBottom || 0; + var offsetRight = config.offsetRight || 0; - return zhHk; + allowHorizontalScroll = allowHorizontalScroll === undefined ? true : allowHorizontalScroll; - }))); - + var isWin = util.isWindow(container); + var elemOffset = util.offset(elem); + var eh = util.outerHeight(elem); + var ew = util.outerWidth(elem); + var containerOffset = undefined; + var ch = undefined; + var cw = undefined; + var containerScroll = undefined; + var diffTop = undefined; + var diffBottom = undefined; + var win = undefined; + var winScroll = undefined; + var ww = undefined; + var wh = undefined; + + if (isWin) { + win = container; + wh = util.height(win); + ww = util.width(win); + winScroll = { + left: util.scrollLeft(win), + top: util.scrollTop(win) + }; + // elem 相对 container 可视视窗的距离 + diffTop = { + left: elemOffset.left - winScroll.left - offsetLeft, + top: elemOffset.top - winScroll.top - offsetTop + }; + diffBottom = { + left: elemOffset.left + ew - (winScroll.left + ww) + offsetRight, + top: elemOffset.top + eh - (winScroll.top + wh) + offsetBottom + }; + containerScroll = winScroll; + } else { + containerOffset = util.offset(container); + ch = container.clientHeight; + cw = container.clientWidth; + containerScroll = { + left: container.scrollLeft, + top: container.scrollTop + }; + // elem 相对 container 可视视窗的距离 + // 注意边框, offset 是边框到根节点 + diffTop = { + left: elemOffset.left - (containerOffset.left + (parseFloat(util.css(container, 'borderLeftWidth')) || 0)) - offsetLeft, + top: elemOffset.top - (containerOffset.top + (parseFloat(util.css(container, 'borderTopWidth')) || 0)) - offsetTop + }; + diffBottom = { + left: elemOffset.left + ew - (containerOffset.left + cw + (parseFloat(util.css(container, 'borderRightWidth')) || 0)) + offsetRight, + top: elemOffset.top + eh - (containerOffset.top + ch + (parseFloat(util.css(container, 'borderBottomWidth')) || 0)) + offsetBottom + }; + } + + if (diffTop.top < 0 || diffBottom.top > 0) { + // 强制向上 + if (alignWithTop === true) { + util.scrollTop(container, containerScroll.top + diffTop.top); + } else if (alignWithTop === false) { + util.scrollTop(container, containerScroll.top + diffBottom.top); + } else { + // 自动调整 + if (diffTop.top < 0) { + util.scrollTop(container, containerScroll.top + diffTop.top); + } else { + util.scrollTop(container, containerScroll.top + diffBottom.top); + } + } + } else { + if (!onlyScrollIfNeeded) { + alignWithTop = alignWithTop === undefined ? true : !!alignWithTop; + if (alignWithTop) { + util.scrollTop(container, containerScroll.top + diffTop.top); + } else { + util.scrollTop(container, containerScroll.top + diffBottom.top); + } + } + } + + if (allowHorizontalScroll) { + if (diffTop.left < 0 || diffBottom.left > 0) { + // 强制向上 + if (alignWithLeft === true) { + util.scrollLeft(container, containerScroll.left + diffTop.left); + } else if (alignWithLeft === false) { + util.scrollLeft(container, containerScroll.left + diffBottom.left); + } else { + // 自动调整 + if (diffTop.left < 0) { + util.scrollLeft(container, containerScroll.left + diffTop.left); + } else { + util.scrollLeft(container, containerScroll.left + diffBottom.left); + } + } + } else { + if (!onlyScrollIfNeeded) { + alignWithLeft = alignWithLeft === undefined ? true : !!alignWithLeft; + if (alignWithLeft) { + util.scrollLeft(container, containerScroll.left + diffTop.left); + } else { + util.scrollLeft(container, containerScroll.left + diffBottom.left); + } + } + } + } + } + + module.exports = scrollIntoView; /***/ }), -/* 537 */ -/***/ (function(module, exports, __webpack_require__) { +/* 404 */ +/***/ (function(module, exports) { - //! moment.js locale configuration - //! locale : Chinese (Macau) [zh-mo] - //! author : Ben : https://github.com/ben-lin - //! author : Chris Lam : https://github.com/hehachris - //! author : Tan Yuanhong : https://github.com/le0tan + 'use strict'; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - //! moment.js locale configuration + var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; - var zhMo = moment.defineLocale('zh-mo', { - months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split( - '_' - ), - monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split( - '_' - ), - weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), - weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'), - weekdaysMin: '日_一_二_三_四_五_六'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'YYYY年M月D日', - LLL: 'YYYY年M月D日 HH:mm', - LLLL: 'YYYY年M月D日dddd HH:mm', - l: 'D/M/YYYY', - ll: 'YYYY年M月D日', - lll: 'YYYY年M月D日 HH:mm', - llll: 'YYYY年M月D日dddd HH:mm', - }, - meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') { - return hour; - } else if (meridiem === '中午') { - return hour >= 11 ? hour : hour + 12; - } else if (meridiem === '下午' || meridiem === '晚上') { - return hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - var hm = hour * 100 + minute; - if (hm < 600) { - return '凌晨'; - } else if (hm < 900) { - return '早上'; - } else if (hm < 1130) { - return '上午'; - } else if (hm < 1230) { - return '中午'; - } else if (hm < 1800) { - return '下午'; - } else { - return '晚上'; - } - }, - calendar: { - sameDay: '[今天] LT', - nextDay: '[明天] LT', - nextWeek: '[下]dddd LT', - lastDay: '[昨天] LT', - lastWeek: '[上]dddd LT', - sameElse: 'L', - }, - dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/, - ordinal: function (number, period) { - switch (period) { - case 'd': - case 'D': - case 'DDD': - return number + '日'; - case 'M': - return number + '月'; - case 'w': - case 'W': - return number + '週'; - default: - return number; - } - }, - relativeTime: { - future: '%s內', - past: '%s前', - s: '幾秒', - ss: '%d 秒', - m: '1 分鐘', - mm: '%d 分鐘', - h: '1 小時', - hh: '%d 小時', - d: '1 天', - dd: '%d 天', - M: '1 個月', - MM: '%d 個月', - y: '1 年', - yy: '%d 年', - }, - }); + var RE_NUM = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source; - return zhMo; + function getClientPosition(elem) { + var box = undefined; + var x = undefined; + var y = undefined; + var doc = elem.ownerDocument; + var body = doc.body; + var docElem = doc && doc.documentElement; + // 根据 GBS 最新数据,A-Grade Browsers 都已支持 getBoundingClientRect 方法,不用再考虑传统的实现方式 + box = elem.getBoundingClientRect(); - }))); - - -/***/ }), -/* 538 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Chinese (Taiwan) [zh-tw] - //! author : Ben : https://github.com/ben-lin - //! author : Chris Lam : https://github.com/hehachris + // 注:jQuery 还考虑减去 docElem.clientLeft/clientTop + // 但测试发现,这样反而会导致当 html 和 body 有边距/边框样式时,获取的值不正确 + // 此外,ie6 会忽略 html 的 margin 值,幸运地是没有谁会去设置 html 的 margin - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + x = box.left; + y = box.top; - //! moment.js locale configuration + // In IE, most of the time, 2 extra pixels are added to the top and left + // due to the implicit 2-pixel inset border. In IE6/7 quirks mode and + // IE6 standards mode, this border can be overridden by setting the + // document element's border to zero -- thus, we cannot rely on the + // offset always being 2 pixels. - var zhTw = moment.defineLocale('zh-tw', { - months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split( - '_' - ), - monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split( - '_' - ), - weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), - weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'), - weekdaysMin: '日_一_二_三_四_五_六'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY/MM/DD', - LL: 'YYYY年M月D日', - LLL: 'YYYY年M月D日 HH:mm', - LLLL: 'YYYY年M月D日dddd HH:mm', - l: 'YYYY/M/D', - ll: 'YYYY年M月D日', - lll: 'YYYY年M月D日 HH:mm', - llll: 'YYYY年M月D日dddd HH:mm', - }, - meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') { - return hour; - } else if (meridiem === '中午') { - return hour >= 11 ? hour : hour + 12; - } else if (meridiem === '下午' || meridiem === '晚上') { - return hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - var hm = hour * 100 + minute; - if (hm < 600) { - return '凌晨'; - } else if (hm < 900) { - return '早上'; - } else if (hm < 1130) { - return '上午'; - } else if (hm < 1230) { - return '中午'; - } else if (hm < 1800) { - return '下午'; - } else { - return '晚上'; - } - }, - calendar: { - sameDay: '[今天] LT', - nextDay: '[明天] LT', - nextWeek: '[下]dddd LT', - lastDay: '[昨天] LT', - lastWeek: '[上]dddd LT', - sameElse: 'L', - }, - dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/, - ordinal: function (number, period) { - switch (period) { - case 'd': - case 'D': - case 'DDD': - return number + '日'; - case 'M': - return number + '月'; - case 'w': - case 'W': - return number + '週'; - default: - return number; - } - }, - relativeTime: { - future: '%s後', - past: '%s前', - s: '幾秒', - ss: '%d 秒', - m: '1 分鐘', - mm: '%d 分鐘', - h: '1 小時', - hh: '%d 小時', - d: '1 天', - dd: '%d 天', - M: '1 個月', - MM: '%d 個月', - y: '1 年', - yy: '%d 年', - }, - }); + // In quirks mode, the offset can be determined by querying the body's + // clientLeft/clientTop, but in standards mode, it is found by querying + // the document element's clientLeft/clientTop. Since we already called + // getClientBoundingRect we have already forced a reflow, so it is not + // too expensive just to query them all. - return zhTw; + // ie 下应该减去窗口的边框吧,毕竟默认 absolute 都是相对窗口定位的 + // 窗口边框标准是设 documentElement ,quirks 时设置 body + // 最好禁止在 body 和 html 上边框 ,但 ie < 9 html 默认有 2px ,减去 + // 但是非 ie 不可能设置窗口边框,body html 也不是窗口 ,ie 可以通过 html,body 设置 + // 标准 ie 下 docElem.clientTop 就是 border-top + // ie7 html 即窗口边框改变不了。永远为 2 + // 但标准 firefox/chrome/ie9 下 docElem.clientTop 是窗口边框,即使设了 border-top 也为 0 - }))); - - -/***/ }), -/* 539 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; + x -= docElem.clientLeft || body.clientLeft || 0; + y -= docElem.clientTop || body.clientTop || 0; - Object.defineProperty(exports, "__esModule", { - value: true - }); + return { + left: x, + top: y + }; + } - var _react = __webpack_require__(1); + function getScroll(w, top) { + var ret = w['page' + (top ? 'Y' : 'X') + 'Offset']; + var method = 'scroll' + (top ? 'Top' : 'Left'); + if (typeof ret !== 'number') { + var d = w.document; + // ie6,7,8 standard mode + ret = d.documentElement[method]; + if (typeof ret !== 'number') { + // quirks mode + ret = d.body[method]; + } + } + return ret; + } - var _react2 = _interopRequireDefault(_react); + function getScrollLeft(w) { + return getScroll(w); + } - var _propTypes = __webpack_require__(6); + function getScrollTop(w) { + return getScroll(w, true); + } - var _propTypes2 = _interopRequireDefault(_propTypes); + function getOffset(el) { + var pos = getClientPosition(el); + var doc = el.ownerDocument; + var w = doc.defaultView || doc.parentWindow; + pos.left += getScrollLeft(w); + pos.top += getScrollTop(w); + return pos; + } + function _getComputedStyle(elem, name, computedStyle_) { + var val = ''; + var d = elem.ownerDocument; + var computedStyle = computedStyle_ || d.defaultView.getComputedStyle(elem, null); - var _classnames = __webpack_require__(5); + // https://github.com/kissyteam/kissy/issues/61 + if (computedStyle) { + val = computedStyle.getPropertyValue(name) || computedStyle[name]; + } - var _classnames2 = _interopRequireDefault(_classnames); + return val; + } + + var _RE_NUM_NO_PX = new RegExp('^(' + RE_NUM + ')(?!px)[a-z%]+$', 'i'); + var RE_POS = /^(top|right|bottom|left)$/; + var CURRENT_STYLE = 'currentStyle'; + var RUNTIME_STYLE = 'runtimeStyle'; + var LEFT = 'left'; + var PX = 'px'; - var _DateConstants = __webpack_require__(403); + function _getComputedStyleIE(elem, name) { + // currentStyle maybe null + // http://msdn.microsoft.com/en-us/library/ms535231.aspx + var ret = elem[CURRENT_STYLE] && elem[CURRENT_STYLE][name]; - var _DateConstants2 = _interopRequireDefault(_DateConstants); + // 当 width/height 设置为百分比时,通过 pixelLeft 方式转换的 width/height 值 + // 一开始就处理了! CUSTOM_STYLE.height,CUSTOM_STYLE.width ,cssHook 解决@2011-08-19 + // 在 ie 下不对,需要直接用 offset 方式 + // borderWidth 等值也有问题,但考虑到 borderWidth 设为百分比的概率很小,这里就不考虑了 - var _util = __webpack_require__(540); + // From the awesome hack by Dean Edwards + // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 + // If we're not dealing with a regular pixel number + // but a number that has a weird ending, we need to convert it to pixels + // exclude left right for relativity + if (_RE_NUM_NO_PX.test(ret) && !RE_POS.test(name)) { + // Remember the original values + var style = elem.style; + var left = style[LEFT]; + var rsLeft = elem[RUNTIME_STYLE][LEFT]; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + // prevent flashing of content + elem[RUNTIME_STYLE][LEFT] = elem[CURRENT_STYLE][LEFT]; - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + // Put in the new values to get a computed value out + style[LEFT] = name === 'fontSize' ? '1em' : ret || 0; + ret = style.pixelLeft + PX; - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + // Revert the changed values + style[LEFT] = left; - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + elem[RUNTIME_STYLE][LEFT] = rsLeft; + } + return ret === '' ? 'auto' : ret; + } - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + var getComputedStyleX = undefined; + if (typeof window !== 'undefined') { + getComputedStyleX = window.getComputedStyle ? _getComputedStyle : _getComputedStyleIE; + } - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + function each(arr, fn) { + for (var i = 0; i < arr.length; i++) { + fn(arr[i]); + } + } - function isSameDay(one, two) { - return one && two && one.isSame(two, 'day'); + function isBorderBoxFn(elem) { + return getComputedStyleX(elem, 'boxSizing') === 'border-box'; } - function beforeCurrentMonthYear(current, today) { - if (current.year() < today.year()) { - return 1; + var BOX_MODELS = ['margin', 'border', 'padding']; + var CONTENT_INDEX = -1; + var PADDING_INDEX = 2; + var BORDER_INDEX = 1; + var MARGIN_INDEX = 0; + + function swap(elem, options, callback) { + var old = {}; + var style = elem.style; + var name = undefined; + + // Remember the old values, and insert the new ones + for (name in options) { + if (options.hasOwnProperty(name)) { + old[name] = style[name]; + style[name] = options[name]; + } + } + + callback.call(elem); + + // Revert the old values + for (name in options) { + if (options.hasOwnProperty(name)) { + style[name] = old[name]; + } } - return current.year() === today.year() && current.month() < today.month(); } - function afterCurrentMonthYear(current, today) { - if (current.year() > today.year()) { - return 1; + function getPBMWidth(elem, props, which) { + var value = 0; + var prop = undefined; + var j = undefined; + var i = undefined; + for (j = 0; j < props.length; j++) { + prop = props[j]; + if (prop) { + for (i = 0; i < which.length; i++) { + var cssProp = undefined; + if (prop === 'border') { + cssProp = prop + which[i] + 'Width'; + } else { + cssProp = prop + which[i]; + } + value += parseFloat(getComputedStyleX(elem, cssProp)) || 0; + } + } } - return current.year() === today.year() && current.month() > today.month(); + return value; } - function getIdFromDate(date) { - return 'rc-calendar-' + date.year() + '-' + date.month() + '-' + date.date(); + /** + * A crude way of determining if an object is a window + * @member util + */ + function isWindow(obj) { + // must use == for ie8 + /* eslint eqeqeq:0 */ + return obj != null && obj == obj.window; } - var DateTBody = function (_React$Component) { - _inherits(DateTBody, _React$Component); + var domUtils = {}; - function DateTBody() { - _classCallCheck(this, DateTBody); + each(['Width', 'Height'], function (name) { + domUtils['doc' + name] = function (refWin) { + var d = refWin.document; + return Math.max( + // firefox chrome documentElement.scrollHeight< body.scrollHeight + // ie standard mode : documentElement.scrollHeight> body.scrollHeight + d.documentElement['scroll' + name], + // quirks : documentElement.scrollHeight 最大等于可视窗口多一点? + d.body['scroll' + name], domUtils['viewport' + name](d)); + }; - return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); + domUtils['viewport' + name] = function (win) { + // pc browser includes scrollbar in window.innerWidth + var prop = 'client' + name; + var doc = win.document; + var body = doc.body; + var documentElement = doc.documentElement; + var documentElementProp = documentElement[prop]; + // 标准模式取 documentElement + // backcompat 取 body + return doc.compatMode === 'CSS1Compat' && documentElementProp || body && body[prop] || documentElementProp; + }; + }); + + /* + 得到元素的大小信息 + @param elem + @param name + @param {String} [extra] 'padding' : (css width) + padding + 'border' : (css width) + padding + border + 'margin' : (css width) + padding + border + margin + */ + function getWH(elem, name, extra) { + if (isWindow(elem)) { + return name === 'width' ? domUtils.viewportWidth(elem) : domUtils.viewportHeight(elem); + } else if (elem.nodeType === 9) { + return name === 'width' ? domUtils.docWidth(elem) : domUtils.docHeight(elem); + } + var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom']; + var borderBoxValue = name === 'width' ? elem.offsetWidth : elem.offsetHeight; + var computedStyle = getComputedStyleX(elem); + var isBorderBox = isBorderBoxFn(elem, computedStyle); + var cssBoxValue = 0; + if (borderBoxValue == null || borderBoxValue <= 0) { + borderBoxValue = undefined; + // Fall back to computed then un computed css if necessary + cssBoxValue = getComputedStyleX(elem, name); + if (cssBoxValue == null || Number(cssBoxValue) < 0) { + cssBoxValue = elem.style[name] || 0; + } + // Normalize '', auto, and prepare for extra + cssBoxValue = parseFloat(cssBoxValue) || 0; + } + if (extra === undefined) { + extra = isBorderBox ? BORDER_INDEX : CONTENT_INDEX; + } + var borderBoxValueOrIsBorderBox = borderBoxValue !== undefined || isBorderBox; + var val = borderBoxValue || cssBoxValue; + if (extra === CONTENT_INDEX) { + if (borderBoxValueOrIsBorderBox) { + return val - getPBMWidth(elem, ['border', 'padding'], which, computedStyle); + } + return cssBoxValue; + } + if (borderBoxValueOrIsBorderBox) { + var padding = extra === PADDING_INDEX ? -getPBMWidth(elem, ['border'], which, computedStyle) : getPBMWidth(elem, ['margin'], which, computedStyle); + return val + (extra === BORDER_INDEX ? 0 : padding); } + return cssBoxValue + getPBMWidth(elem, BOX_MODELS.slice(extra), which, computedStyle); + } - DateTBody.prototype.render = function render() { - var props = this.props; - var contentRender = props.contentRender, - prefixCls = props.prefixCls, - selectedValue = props.selectedValue, - value = props.value, - showWeekNumber = props.showWeekNumber, - dateRender = props.dateRender, - disabledDate = props.disabledDate, - hoverValue = props.hoverValue; + var cssShow = { + position: 'absolute', + visibility: 'hidden', + display: 'block' + }; - var iIndex = void 0; - var jIndex = void 0; - var current = void 0; - var dateTable = []; - var today = (0, _util.getTodayTime)(value); - var cellClass = prefixCls + '-cell'; - var weekNumberCellClass = prefixCls + '-week-number-cell'; - var dateClass = prefixCls + '-date'; - var todayClass = prefixCls + '-today'; - var selectedClass = prefixCls + '-selected-day'; - var selectedDateClass = prefixCls + '-selected-date'; // do not move with mouse operation - var selectedStartDateClass = prefixCls + '-selected-start-date'; - var selectedEndDateClass = prefixCls + '-selected-end-date'; - var inRangeClass = prefixCls + '-in-range-cell'; - var lastMonthDayClass = prefixCls + '-last-month-cell'; - var nextMonthDayClass = prefixCls + '-next-month-btn-day'; - var disabledClass = prefixCls + '-disabled-cell'; - var firstDisableClass = prefixCls + '-disabled-cell-first-of-row'; - var lastDisableClass = prefixCls + '-disabled-cell-last-of-row'; - var lastDayOfMonthClass = prefixCls + '-last-day-of-month'; - var month1 = value.clone(); - month1.date(1); - var day = month1.day(); - var lastMonthDiffDay = (day + 7 - value.localeData().firstDayOfWeek()) % 7; - // calculate last month - var lastMonth1 = month1.clone(); - lastMonth1.add(0 - lastMonthDiffDay, 'days'); - var passed = 0; + // fix #119 : https://github.com/kissyteam/kissy/issues/119 + function getWHIgnoreDisplay(elem) { + var val = undefined; + var args = arguments; + // in case elem is window + // elem.offsetWidth === undefined + if (elem.offsetWidth !== 0) { + val = getWH.apply(undefined, args); + } else { + swap(elem, cssShow, function () { + val = getWH.apply(undefined, args); + }); + } + return val; + } - for (iIndex = 0; iIndex < _DateConstants2["default"].DATE_ROW_COUNT; iIndex++) { - for (jIndex = 0; jIndex < _DateConstants2["default"].DATE_COL_COUNT; jIndex++) { - current = lastMonth1; - if (passed) { - current = current.clone(); - current.add(passed, 'days'); + function css(el, name, v) { + var value = v; + if ((typeof name === 'undefined' ? 'undefined' : _typeof(name)) === 'object') { + for (var i in name) { + if (name.hasOwnProperty(i)) { + css(el, i, name[i]); + } + } + return undefined; + } + if (typeof value !== 'undefined') { + if (typeof value === 'number') { + value += 'px'; + } + el.style[name] = value; + return undefined; + } + return getComputedStyleX(el, name); + } + + each(['width', 'height'], function (name) { + var first = name.charAt(0).toUpperCase() + name.slice(1); + domUtils['outer' + first] = function (el, includeMargin) { + return el && getWHIgnoreDisplay(el, name, includeMargin ? MARGIN_INDEX : BORDER_INDEX); + }; + var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom']; + + domUtils[name] = function (elem, val) { + if (val !== undefined) { + if (elem) { + var computedStyle = getComputedStyleX(elem); + var isBorderBox = isBorderBoxFn(elem); + if (isBorderBox) { + val += getPBMWidth(elem, ['padding', 'border'], which, computedStyle); } - dateTable.push(current); - passed++; + return css(elem, name, val); } + return undefined; } - var tableHtml = []; - passed = 0; + return elem && getWHIgnoreDisplay(elem, name, CONTENT_INDEX); + }; + }); + + // 设置 elem 相对 elem.ownerDocument 的坐标 + function setOffset(elem, offset) { + // set position first, in-case top/left are set even on static elem + if (css(elem, 'position') === 'static') { + elem.style.position = 'relative'; + } + + var old = getOffset(elem); + var ret = {}; + var current = undefined; + var key = undefined; + + for (key in offset) { + if (offset.hasOwnProperty(key)) { + current = parseFloat(css(elem, key)) || 0; + ret[key] = current + offset[key] - old[key]; + } + } + css(elem, ret); + } + + module.exports = _extends({ + getWindow: function getWindow(node) { + var doc = node.ownerDocument || node; + return doc.defaultView || doc.parentWindow; + }, + offset: function offset(el, value) { + if (typeof value !== 'undefined') { + setOffset(el, value); + } else { + return getOffset(el); + } + }, + + isWindow: isWindow, + each: each, + css: css, + clone: function clone(obj) { + var ret = {}; + for (var i in obj) { + if (obj.hasOwnProperty(i)) { + ret[i] = obj[i]; + } + } + var overflow = obj.overflow; + if (overflow) { + for (var i in obj) { + if (obj.hasOwnProperty(i)) { + ret.overflow[i] = obj.overflow[i]; + } + } + } + return ret; + }, + scrollLeft: function scrollLeft(w, v) { + if (isWindow(w)) { + if (v === undefined) { + return getScrollLeft(w); + } + window.scrollTo(v, getScrollTop(w)); + } else { + if (v === undefined) { + return w.scrollLeft; + } + w.scrollLeft = v; + } + }, + scrollTop: function scrollTop(w, v) { + if (isWindow(w)) { + if (v === undefined) { + return getScrollTop(w); + } + window.scrollTo(getScrollLeft(w), v); + } else { + if (v === undefined) { + return w.scrollTop; + } + w.scrollTop = v; + } + }, + + viewportWidth: 0, + viewportHeight: 0 + }, domUtils); + +/***/ }), +/* 405 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - for (iIndex = 0; iIndex < _DateConstants2["default"].DATE_ROW_COUNT; iIndex++) { - var _cx; + var _react = __webpack_require__(1); - var isCurrentWeek = void 0; - var weekNumberCell = void 0; - var isActiveWeek = false; - var dateCells = []; - if (showWeekNumber) { - weekNumberCell = _react2["default"].createElement( - 'td', - { - key: dateTable[passed].week(), - role: 'gridcell', - className: weekNumberCellClass - }, - dateTable[passed].week() - ); - } - for (jIndex = 0; jIndex < _DateConstants2["default"].DATE_COL_COUNT; jIndex++) { - var next = null; - var last = null; - current = dateTable[passed]; - if (jIndex < _DateConstants2["default"].DATE_COL_COUNT - 1) { - next = dateTable[passed + 1]; - } - if (jIndex > 0) { - last = dateTable[passed - 1]; - } - var cls = cellClass; - var disabled = false; - var selected = false; + var _react2 = _interopRequireDefault(_react); - if (isSameDay(current, today)) { - cls += ' ' + todayClass; - isCurrentWeek = true; - } + var _propTypes = __webpack_require__(6); - var isBeforeCurrentMonthYear = beforeCurrentMonthYear(current, value); - var isAfterCurrentMonthYear = afterCurrentMonthYear(current, value); + var _propTypes2 = _interopRequireDefault(_propTypes); - if (selectedValue && Array.isArray(selectedValue)) { - var rangeValue = hoverValue.length ? hoverValue : selectedValue; - if (!isBeforeCurrentMonthYear && !isAfterCurrentMonthYear) { - var startValue = rangeValue[0]; - var endValue = rangeValue[1]; - if (startValue) { - if (isSameDay(current, startValue)) { - selected = true; - isActiveWeek = true; - cls += ' ' + selectedStartDateClass; - } - } - if (startValue && endValue) { - if (isSameDay(current, endValue)) { - selected = true; - isActiveWeek = true; - cls += ' ' + selectedEndDateClass; - } else if (current.isAfter(startValue, 'day') && current.isBefore(endValue, 'day')) { - cls += ' ' + inRangeClass; - } - } - } - } else if (isSameDay(current, value)) { - // keyboard change value, highlight works - selected = true; - isActiveWeek = true; - } + var _util = __webpack_require__(333); - if (isSameDay(current, selectedValue)) { - cls += ' ' + selectedDateClass; - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - if (isBeforeCurrentMonthYear) { - cls += ' ' + lastMonthDayClass; - } + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - if (isAfterCurrentMonthYear) { - cls += ' ' + nextMonthDayClass; - } + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - if (current.clone().endOf('month').date() === current.date()) { - cls += ' ' + lastDayOfMonthClass; - } + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - if (disabledDate) { - if (disabledDate(current, value)) { - disabled = true; + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - if (!last || !disabledDate(last, value)) { - cls += ' ' + firstDisableClass; - } + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** + * This source code is quoted from rc-menu. + * homepage: https://github.com/react-component/menu + */ - if (!next || !disabledDate(next, value)) { - cls += ' ' + lastDisableClass; - } - } - } - if (selected) { - cls += ' ' + selectedClass; - } + var MenuItemGroup = function (_React$Component) { + _inherits(MenuItemGroup, _React$Component); - if (disabled) { - cls += ' ' + disabledClass; - } + function MenuItemGroup() { + var _temp, _this, _ret; - var dateHtml = void 0; - if (dateRender) { - dateHtml = dateRender(current, value); - } else { - var content = contentRender ? contentRender(current, value) : current.date(); - dateHtml = _react2["default"].createElement( - 'div', - { - key: getIdFromDate(current), - className: dateClass, - 'aria-selected': selected, - 'aria-disabled': disabled - }, - content - ); - } + _classCallCheck(this, MenuItemGroup); - dateCells.push(_react2["default"].createElement( - 'td', - { - key: passed, - onClick: disabled ? undefined : props.onSelect.bind(null, current), - onMouseEnter: disabled ? undefined : props.onDayHover && props.onDayHover.bind(null, current) || undefined, - role: 'gridcell', - title: (0, _util.getTitleString)(current), - className: cls - }, - dateHtml - )); + for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } - passed++; - } + return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.renderInnerMenuItem = function (item) { + var _this$props = _this.props, + renderMenuItem = _this$props.renderMenuItem, + index = _this$props.index; - tableHtml.push(_react2["default"].createElement( - 'tr', + return renderMenuItem(item, index, _this.props.subMenuKey); + }, _temp), _possibleConstructorReturn(_this, _ret); + } + + MenuItemGroup.prototype.render = function render() { + var props = _objectWithoutProperties(this.props, []); + + var _props$className = props.className, + className = _props$className === undefined ? '' : _props$className, + rootPrefixCls = props.rootPrefixCls; + + var titleClassName = rootPrefixCls + '-item-group-title'; + var listClassName = rootPrefixCls + '-item-group-list'; + var title = props.title, + children = props.children; + + _util.menuAllProps.forEach(function (key) { + return delete props[key]; + }); + + // Set onClick to null, to ignore propagated onClick event + delete props.onClick; + + return _react2["default"].createElement( + 'li', + _extends({}, props, { className: className + ' ' + rootPrefixCls + '-item-group' }), + _react2["default"].createElement( + 'div', { - key: iIndex, - role: 'row', - className: (0, _classnames2["default"])((_cx = {}, _defineProperty(_cx, prefixCls + '-current-week', isCurrentWeek), _defineProperty(_cx, prefixCls + '-active-week', isActiveWeek), _cx)) + className: titleClassName, + title: typeof title === 'string' ? title : undefined }, - weekNumberCell, - dateCells - )); - } - return _react2["default"].createElement( - 'tbody', - { className: prefixCls + '-tbody' }, - tableHtml + title + ), + _react2["default"].createElement( + 'ul', + { className: listClassName }, + _react2["default"].Children.map(children, this.renderInnerMenuItem) + ) ); }; - return DateTBody; + return MenuItemGroup; }(_react2["default"].Component); - DateTBody.propTypes = { - contentRender: _propTypes2["default"].func, - dateRender: _propTypes2["default"].func, - disabledDate: _propTypes2["default"].func, - prefixCls: _propTypes2["default"].string, - selectedValue: _propTypes2["default"].oneOfType([_propTypes2["default"].object, _propTypes2["default"].arrayOf(_propTypes2["default"].object)]), - value: _propTypes2["default"].object, - hoverValue: _propTypes2["default"].any, - showWeekNumber: _propTypes2["default"].bool + MenuItemGroup.propTypes = { + renderMenuItem: _propTypes2["default"].func, + index: _propTypes2["default"].number, + className: _propTypes2["default"].string, + subMenuKey: _propTypes2["default"].string, + rootPrefixCls: _propTypes2["default"].string }; - DateTBody.defaultProps = { - hoverValue: [] + MenuItemGroup.defaultProps = { + disabled: true }; - exports["default"] = DateTBody; + + + MenuItemGroup.isMenuItemGroup = true; + + exports["default"] = MenuItemGroup; module.exports = exports['default']; /***/ }), -/* 540 */ +/* 406 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -76507,128 +52668,68 @@ value: true }); - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + var _react = __webpack_require__(1); - exports.getTodayTime = getTodayTime; - exports.getTitleString = getTitleString; - exports.getTodayTimeStr = getTodayTimeStr; - exports.getMonthName = getMonthName; - exports.syncTime = syncTime; - exports.getTimeConfig = getTimeConfig; - exports.isTimeValidByConfig = isTimeValidByConfig; - exports.isTimeValid = isTimeValid; - exports.isAllowedDate = isAllowedDate; - exports.formatDate = formatDate; + var _react2 = _interopRequireDefault(_react); - var _moment = __webpack_require__(404); + var _propTypes = __webpack_require__(6); - var _moment2 = _interopRequireDefault(_moment); + var _propTypes2 = _interopRequireDefault(_propTypes); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - var defaultDisabledTime = { - disabledHours: function disabledHours() { - return []; - }, - disabledMinutes: function disabledMinutes() { - return []; - }, - disabledSeconds: function disabledSeconds() { - return []; - } - }; + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - function getTodayTime(value) { - var today = (0, _moment2["default"])(); - if (typeof value !== 'undefined') { - today.locale(value.locale()).utcOffset(value.utcOffset()); - } - return today; - } + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - function getTitleString(value) { - return value.format('LL'); - } + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - function getTodayTimeStr(value) { - var today = getTodayTime(value); - return getTitleString(today); - } + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** + * This source code is quoted from rc-menu. + * homepage: https://github.com/react-component/menu + */ - function getMonthName(month) { - var locale = month.locale(); - var localeData = month.localeData(); - return localeData[locale === 'zh-cn' ? 'months' : 'monthsShort'](month); - } - function syncTime(from, to) { - if (!_moment2["default"].isMoment(from) || !_moment2["default"].isMoment(to)) return; - to.hour(from.hour()); - to.minute(from.minute()); - to.second(from.second()); - } + var Divider = function (_React$Component) { + _inherits(Divider, _React$Component); - function getTimeConfig(value, disabledTime) { - var disabledTimeConfig = disabledTime ? disabledTime(value) : {}; - disabledTimeConfig = _extends({}, defaultDisabledTime, disabledTimeConfig); - return disabledTimeConfig; - } + function Divider() { + _classCallCheck(this, Divider); - function isTimeValidByConfig(value, disabledTimeConfig) { - var invalidTime = false; - if (value) { - var hour = value.hour(); - var minutes = value.minute(); - var seconds = value.second(); - var disabledHours = disabledTimeConfig.disabledHours(); - if (disabledHours.indexOf(hour) === -1) { - var disabledMinutes = disabledTimeConfig.disabledMinutes(hour); - if (disabledMinutes.indexOf(minutes) === -1) { - var disabledSeconds = disabledTimeConfig.disabledSeconds(hour, minutes); - invalidTime = disabledSeconds.indexOf(seconds) !== -1; - } else { - invalidTime = true; - } - } else { - invalidTime = true; - } + return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); } - return !invalidTime; - } - - function isTimeValid(value, disabledTime) { - var disabledTimeConfig = getTimeConfig(value, disabledTime); - return isTimeValidByConfig(value, disabledTimeConfig); - } - function isAllowedDate(value, disabledDate, disabledTime) { - if (disabledDate) { - if (disabledDate(value)) { - return false; - } - } - if (disabledTime) { - if (!isTimeValid(value, disabledTime)) { - return false; - } - } - return true; - } + Divider.prototype.render = function render() { + var _props = this.props, + className = _props.className, + rootPrefixCls = _props.rootPrefixCls, + style = _props.style; - function formatDate(value, format) { - if (!value) { - return ''; - } + return _react2["default"].createElement('li', { + className: className + ' ' + rootPrefixCls + '-item-divider', + style: style + }); + }; - if (Array.isArray(format)) { - format = format[0]; - } + return Divider; + }(_react2["default"].Component); - return value.format(format); - } + Divider.propTypes = { + className: _propTypes2["default"].string, + rootPrefixCls: _propTypes2["default"].string, + style: _propTypes2["default"].object + }; + Divider.defaultProps = { + // To fix keyboard UX. + disabled: true, + className: '', + style: {} + }; + exports["default"] = Divider; + module.exports = exports['default']; /***/ }), -/* 541 */ +/* 407 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -76637,6 +52738,10 @@ value: true }); + var _classnames = __webpack_require__(5); + + var _classnames2 = _interopRequireDefault(_classnames); + var _react = __webpack_require__(1); var _react2 = _interopRequireDefault(_react); @@ -76645,306 +52750,293 @@ var _propTypes2 = _interopRequireDefault(_propTypes); - var _mapSelf = __webpack_require__(542); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - var _mapSelf2 = _interopRequireDefault(_mapSelf); + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - var _MonthPanel = __webpack_require__(543); + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - var _MonthPanel2 = _interopRequireDefault(_MonthPanel); + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - var _YearPanel = __webpack_require__(546); + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - var _YearPanel2 = _interopRequireDefault(_YearPanel); + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - var _DecadePanel = __webpack_require__(547); + var defaultProps = { + clsPrefix: "u-navbar-side-container", + sideActive: false + }; - var _DecadePanel2 = _interopRequireDefault(_DecadePanel); + var NavSideContainer = function (_React$Component) { + _inherits(NavSideContainer, _React$Component); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + function NavSideContainer() { + _classCallCheck(this, NavSideContainer); - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); + } - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + NavSideContainer.prototype.render = function render() { + var _props = this.props, + className = _props.className, + children = _props.children, + clsPrefix = _props.clsPrefix, + sideActive = _props.sideActive, + expanded = _props.expanded, + props = _objectWithoutProperties(_props, ['className', 'children', 'clsPrefix', 'sideActive', 'expanded']); - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + //const navbarProps = this.context.u_navbar; - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + return _react2["default"].createElement( + 'div', + { className: (0, _classnames2["default"])(className, clsPrefix, expanded && 'expanded') }, + children + ); + }; - function goMonth(direction) { - var next = this.props.value.clone(); - next.add(direction, 'months'); - this.props.onValueChange(next); - } + return NavSideContainer; + }(_react2["default"].Component); - function goYear(direction) { - var next = this.props.value.clone(); - next.add(direction, 'years'); - this.props.onValueChange(next); - } + NavSideContainer.defaultProps = defaultProps; - function showIf(condition, el) { - return condition ? el : null; - } + exports["default"] = NavSideContainer; + module.exports = exports['default']; + +/***/ }), +/* 408 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - var CalendarHeader = function (_React$Component) { - _inherits(CalendarHeader, _React$Component); + Object.defineProperty(exports, "__esModule", { + value: true + }); - function CalendarHeader(props) { - _classCallCheck(this, CalendarHeader); + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); + var _classnames = __webpack_require__(5); - _initialiseProps.call(_this); + var _classnames2 = _interopRequireDefault(_classnames); - _this.nextMonth = goMonth.bind(_this, 1); - _this.previousMonth = goMonth.bind(_this, -1); - _this.nextYear = goYear.bind(_this, 1); - _this.previousYear = goYear.bind(_this, -1); + var _react = __webpack_require__(1); - _this.state = { yearPanelReferer: null }; - return _this; - } + var _react2 = _interopRequireDefault(_react); - CalendarHeader.prototype.render = function render() { - var _this2 = this; + var _propTypes = __webpack_require__(6); - var props = this.props; - var prefixCls = props.prefixCls, - locale = props.locale, - mode = props.mode, - value = props.value, - showTimePicker = props.showTimePicker, - enableNext = props.enableNext, - enablePrev = props.enablePrev, - disabledMonth = props.disabledMonth, - renderFooter = props.renderFooter, - onChange = props.onChange, - onClear = props.onClear, - showMonthInput = props.showMonthInput; + var _propTypes2 = _interopRequireDefault(_propTypes); + var _createChainedFunction = __webpack_require__(37); - var panel = null; - if (mode === 'month') { - panel = _react2["default"].createElement(_MonthPanel2["default"], { - showDateInput: true, - locale: locale, - showMonthInput: showMonthInput, - defaultValue: value, - rootPrefixCls: prefixCls, - onSelect: this.onMonthSelect, - onYearPanelShow: function onYearPanelShow() { - return _this2.showYearPanel('month'); - }, - disabledDate: disabledMonth, - cellRender: props.monthCellRender, - contentRender: props.monthCellContentRender, - renderFooter: renderFooter, - onChange: onChange, - onClear: onClear, - value: value - }); - } - if (mode === 'year') { - panel = _react2["default"].createElement(_YearPanel2["default"], { - locale: locale, - defaultValue: value, - rootPrefixCls: prefixCls, - onSelect: this.onYearSelect, - onDecadePanelShow: this.showDecadePanel, - renderFooter: renderFooter - }); - } - if (mode === 'decade') { - panel = _react2["default"].createElement(_DecadePanel2["default"], { - locale: locale, - defaultValue: value, - rootPrefixCls: prefixCls, - onSelect: this.onDecadeSelect, - renderFooter: renderFooter - }); - } + var _createChainedFunction2 = _interopRequireDefault(_createChainedFunction); - return _react2["default"].createElement( - 'div', - { className: prefixCls + '-header' }, - _react2["default"].createElement( - 'div', - { style: { position: 'relative' }, className: prefixCls + '-header-btns' }, - showIf(enablePrev && !showTimePicker, _react2["default"].createElement('a', { - className: prefixCls + '-prev-year-btn', - role: 'button', - onClick: this.previousYear, - title: locale.previousYear - })), - showIf(enablePrev && !showTimePicker, _react2["default"].createElement('a', { - className: prefixCls + '-prev-month-btn', - role: 'button', - onClick: this.previousMonth, - title: locale.previousMonth - })), - this.monthYearElement(showTimePicker), - showIf(enableNext && !showTimePicker, _react2["default"].createElement('a', { - className: prefixCls + '-next-month-btn', - onClick: this.nextMonth, - title: locale.nextMonth - })), - showIf(enableNext && !showTimePicker, _react2["default"].createElement('a', { - className: prefixCls + '-next-year-btn', - onClick: this.nextYear, - title: locale.nextYear - })) - ), - panel - ); - }; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - return CalendarHeader; - }(_react2["default"].Component); + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - CalendarHeader.propTypes = { - prefixCls: _propTypes2["default"].string, - value: _propTypes2["default"].object, - onValueChange: _propTypes2["default"].func, - showTimePicker: _propTypes2["default"].bool, - onPanelChange: _propTypes2["default"].func, - locale: _propTypes2["default"].object, - enablePrev: _propTypes2["default"].any, - enableNext: _propTypes2["default"].any, - disabledMonth: _propTypes2["default"].func, - renderFooter: _propTypes2["default"].func, - onMonthSelect: _propTypes2["default"].func + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + + var propTypes = { + onClick: _propTypes2["default"].func, + /** + * The toggle content, if left empty it will render the default toggle (seen above). + */ + show: _propTypes2["default"].bool, + children: _propTypes2["default"].node }; - CalendarHeader.defaultProps = { - enableNext: 1, - enablePrev: 1, - onPanelChange: function onPanelChange() {}, - onValueChange: function onValueChange() {} + + var contextTypes = { + u_navbar: _propTypes2["default"].shape({ + expanded: _propTypes2["default"].bool, + onToggle: _propTypes2["default"].func + }) }; - var _initialiseProps = function _initialiseProps() { - var _this3 = this; + var defaultProps = { + clsPrefix: 'u-navbar-toggle', + show: false + }; - this.onMonthSelect = function (value) { - _this3.props.onPanelChange(value, 'date'); - if (_this3.props.onMonthSelect) { - _this3.props.onMonthSelect(value); - } else { - _this3.props.onValueChange(value); + var MenuToggle = function (_React$Component) { + _inherits(MenuToggle, _React$Component); + + function MenuToggle(props) { + _classCallCheck(this, MenuToggle); + + var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); + + _this.state = { + toggleState: false + //this.handleRender = this.handleRender.bind(this); + };return _this; + } + + MenuToggle.prototype.handleClick = function handleClick() { + var _context$u_navbar = this.context.u_navbar, + expanded = _context$u_navbar.expanded, + onToggle = _context$u_navbar.onToggle; + + this.setState({ toggleState: !this.state.toggleState }); + if (onToggle) { + onToggle(!expanded); } }; - this.onYearSelect = function (value) { - var referer = _this3.state.yearPanelReferer; - _this3.setState({ yearPanelReferer: null }); - _this3.props.onPanelChange(value, referer); - _this3.props.onValueChange(value); - }; + MenuToggle.prototype.render = function render() { + var _props = this.props, + onClick = _props.onClick, + className = _props.className, + children = _props.children, + clsPrefix = _props.clsPrefix, + show = _props.show, + props = _objectWithoutProperties(_props, ['onClick', 'className', 'children', 'clsPrefix', 'show']); + //const navbarProps = this.context.u_navbar || { bsClass: 'navbar' }; + //console.log(navbarProps.onToggle, navbarProps.expanded); - this.onDecadeSelect = function (value) { - _this3.props.onPanelChange(value, 'year'); - _this3.props.onValueChange(value); - }; + var buttonProps = _extends({ + type: 'button' + }, props, { + onClick: (0, _createChainedFunction2["default"])(onClick, this.handleClick.bind(this)), + className: (0, _classnames2["default"])(className, clsPrefix, show && 'show') + //!this.context.u_navbar.expanded && 'collapsed', + }); - this.monthYearElement = function (showTimePicker) { - var props = _this3.props; - var prefixCls = props.prefixCls; - var locale = props.locale; - var value = props.value; - var localeData = value.localeData && value.localeData(); - var monthBeforeYear = locale.monthBeforeYear; - var selectClassName = prefixCls + '-' + (monthBeforeYear ? 'my-select' : 'ym-select'); - var timeClassName = showTimePicker ? ' ' + prefixCls + '-time-status' : ''; - var year = _react2["default"].createElement( - 'a', - { - className: prefixCls + '-year-select' + timeClassName, - role: 'button', - onClick: showTimePicker ? null : function () { - return _this3.showYearPanel('date'); - }, - title: showTimePicker ? null : locale.yearSelect - }, - value.format(locale.yearFormat) - ); - var month = _react2["default"].createElement( - 'a', - { - className: prefixCls + '-month-select' + timeClassName, - role: 'button', - onClick: showTimePicker ? null : _this3.showMonthPanel, - title: showTimePicker ? null : locale.monthSelect - }, - locale.monthFormat ? value.format(locale.monthFormat) : localeData.monthsShort(value) - ); - var day = void 0; - if (showTimePicker) { - day = _react2["default"].createElement( - 'a', - { - className: prefixCls + '-day-select' + timeClassName, - role: 'button' - }, - value.format(locale.dayFormat) + if (children) { + return _react2["default"].createElement( + 'button', + buttonProps, + children ); } - var my = []; - if (monthBeforeYear) { - my = [month, day, year]; - } else { - my = [year, month, day]; - } + //当show存在时,渲染左侧静态面包按钮 return _react2["default"].createElement( - 'span', - { className: selectClassName }, - (0, _mapSelf2["default"])(my) + 'div', + null, + show && this.state.toggleState && _react2["default"].createElement( + 'button', + buttonProps, + _react2["default"].createElement( + 'span', + { className: 'sr-only' }, + 'Toggle navigation' + ), + _react2["default"].createElement('span', { className: 'icon-bar' }), + _react2["default"].createElement('span', { className: 'icon-bar' }), + _react2["default"].createElement('span', { className: 'icon-bar' }) + ), + show && !this.state.toggleState && _react2["default"].createElement( + 'button', + buttonProps, + _react2["default"].createElement('span', { className: 'uf uf-arrow-left' }) + ), + !show && !this.state.toggleState && _react2["default"].createElement( + 'button', + buttonProps, + _react2["default"].createElement( + 'span', + { className: 'sr-only' }, + 'Toggle navigation' + ), + _react2["default"].createElement('span', { className: 'icon-bar' }), + _react2["default"].createElement('span', { className: 'icon-bar' }), + _react2["default"].createElement('span', { className: 'icon-bar' }) + ) ); }; - this.showMonthPanel = function () { - // null means that users' interaction doesn't change value - _this3.props.onPanelChange(null, 'month'); - }; + return MenuToggle; + }(_react2["default"].Component); - this.showYearPanel = function (referer) { - _this3.setState({ yearPanelReferer: referer }); - _this3.props.onPanelChange(null, 'year'); - }; + MenuToggle.propTypes = propTypes; + MenuToggle.defaultProps = defaultProps; + MenuToggle.contextTypes = contextTypes; - this.showDecadePanel = function () { - _this3.props.onPanelChange(null, 'decade'); - }; + exports["default"] = MenuToggle; + module.exports = exports['default']; + +/***/ }), +/* 409 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + + var _tinperBeeCore = __webpack_require__(27); + + function animate(node, show, done) { + var height = void 0; + return (0, _tinperBeeCore.cssAnimation)(node, 'u-motion-collapse', { + start: function start() { + if (!show) { + node.style.height = node.offsetHeight + 'px'; + } else { + height = node.offsetHeight; + node.style.height = 0; + } + }, + active: function active() { + node.style.height = (show ? height : 0) + 'px'; + }, + end: function end() { + node.style.height = ''; + done(); + } + }); + } + + var animation = { + enter: function enter(node, done) { + return animate(node, true, done); + }, + leave: function leave(node, done) { + return animate(node, false, done); + }, + appear: function appear(node, done) { + return animate(node, true, done); + } }; - exports["default"] = CalendarHeader; + exports["default"] = animation; module.exports = exports['default']; /***/ }), -/* 542 */ +/* 410 */ /***/ (function(module, exports, __webpack_require__) { - "use strict"; + 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); - exports.default = mapSelf; - var _react = _interopRequireDefault(__webpack_require__(1)); + var _warning = __webpack_require__(32); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + var _warning2 = _interopRequireDefault(_warning); - function mirror(o) { - return o; - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - function mapSelf(children) { - // return ReactFragment - return _react.default.Children.map(children, mirror); - } + var warned = {}; + + exports["default"] = function (valid, message) { + if (!valid && !warned[message]) { + (0, _warning2["default"])(false, message); + warned[message] = true; + } + }; + + module.exports = exports['default']; /***/ }), -/* 543 */ +/* 411 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -76961,21 +53053,11 @@ var _propTypes2 = _interopRequireDefault(_propTypes); - var _reactLifecyclesCompat = __webpack_require__(81); - - var _MonthTable = __webpack_require__(544); - - var _MonthTable2 = _interopRequireDefault(_MonthTable); - - var _DateInput = __webpack_require__(545); - - var _DateInput2 = _interopRequireDefault(_DateInput); - - var _moment = __webpack_require__(404); + var _shallowequal = __webpack_require__(329); - var _moment2 = _interopRequireDefault(_moment); + var _shallowequal2 = _interopRequireDefault(_shallowequal); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } @@ -76985,1022 +53067,1312 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - function goYear(direction) { - var next = this.state.value.clone(); - next.add(direction, 'year'); - this.setAndChangeValue(next); - } - - function noop() {} - - var MonthPanel = function (_React$Component) { - _inherits(MonthPanel, _React$Component); + var propTypes = { + record: _propTypes2['default'].object, + clsPrefix: _propTypes2['default'].string, + expandable: _propTypes2['default'].any, + expanded: _propTypes2['default'].bool, + needIndentSpaced: _propTypes2['default'].bool, + onExpand: _propTypes2['default'].func + }; - function MonthPanel(props) { - _classCallCheck(this, MonthPanel); + var ExpandIcon = function (_Component) { + _inherits(ExpandIcon, _Component); - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); + function ExpandIcon(props) { + _classCallCheck(this, ExpandIcon); - _this.setAndChangeValue = function (value) { - _this.setValue(value); - _this.props.onChange(value); - }; + var _this = _possibleConstructorReturn(this, _Component.call(this, props)); - _this.setAndSelectValue = function (value) { - _this.setValue(value); - _this.props.onSelect(value); - }; + _this.onExpand = function (status, record, e) { + var onExpand = _this.props.onExpand; - _this.setValue = function (value) { - if (!('value' in _this.props)) { - _this.setState({ - value: value - }); - } + e.stopPropagation(); + onExpand(status, record, e); }; - _this.nextYear = goYear.bind(_this, 1); - _this.previousYear = goYear.bind(_this, -1); - _this.prefixCls = props.rootPrefixCls + '-month-panel'; - - _this.state = { - value: props.value || props.defaultValue - }; return _this; } - MonthPanel.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps) { - var newState = {}; - - if ('value' in nextProps) { - newState = { - value: nextProps.value - }; - } - - return newState; + ExpandIcon.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) { + return !(0, _shallowequal2['default'])(nextProps, this.props); }; - MonthPanel.prototype.render = function render() { - var props = this.props; - var value = this.state.value; - var locale = props.locale, - cellRender = props.cellRender, - contentRender = props.contentRender, - renderFooter = props.renderFooter, - rootPrefixCls = props.rootPrefixCls; - - var year = value.year(); - var prefixCls = this.prefixCls; - - var footer = renderFooter && renderFooter('month'); - - return _react2["default"].createElement( - 'div', - { className: prefixCls, style: props.style, tabIndex: '0' }, - _react2["default"].createElement( - 'div', - null, - _react2["default"].createElement( - 'div', - { className: prefixCls + '-header' }, - _react2["default"].createElement('a', { - className: prefixCls + '-prev-year-btn', - role: 'button', - onClick: this.previousYear, - title: locale.previousYear - }), - _react2["default"].createElement( - 'a', - { - className: prefixCls + '-year-select', - role: 'button', - onClick: props.onYearPanelShow, - title: locale.yearSelect - }, - _react2["default"].createElement( - 'span', - { className: prefixCls + '-year-select-content' }, - year - ), - _react2["default"].createElement( - 'span', - { className: prefixCls + '-year-select-arrow' }, - 'x' - ) - ), - _react2["default"].createElement('a', { - className: prefixCls + '-next-year-btn', - role: 'button', - onClick: this.nextYear, - title: locale.nextYear - }) - ), - _react2["default"].createElement( - 'div', - { className: prefixCls + '-body' }, - _react2["default"].createElement(_MonthTable2["default"], { - disabledDate: props.disabledDate, - onSelect: this.setAndSelectValue, - locale: locale, - value: value, - cellRender: cellRender, - contentRender: contentRender, - prefixCls: prefixCls - }) - ), - footer && _react2["default"].createElement( - 'div', - { className: prefixCls + '-footer' }, - footer - ) - ) - ); - }; + ExpandIcon.prototype.render = function render() { + var _this2 = this; - return MonthPanel; - }(_react2["default"].Component); + var _props = this.props, + expandable = _props.expandable, + clsPrefix = _props.clsPrefix, + onExpand = _props.onExpand, + needIndentSpaced = _props.needIndentSpaced, + expanded = _props.expanded, + record = _props.record, + isHiddenExpandIcon = _props.isHiddenExpandIcon, + expandedIcon = _props.expandedIcon, + collapsedIcon = _props.collapsedIcon; - MonthPanel.propTypes = { - onChange: _propTypes2["default"].func, - disabledDate: _propTypes2["default"].func, - onSelect: _propTypes2["default"].func, - renderFooter: _propTypes2["default"].func, - rootPrefixCls: _propTypes2["default"].string, - value: _propTypes2["default"].object, - defaultValue: _propTypes2["default"].object - }; - MonthPanel.defaultProps = { - onChange: noop, - onSelect: noop - }; + if (expandable && !isHiddenExpandIcon) { + var expandClassName = expanded ? 'expanded' : 'collapsed'; + var currentIcon = _react2['default'].createElement('span', { + className: clsPrefix + '-expand-icon ' + clsPrefix + '-' + expandClassName + }); + if (expanded && expandedIcon) { + currentIcon = expandedIcon; + } else if (!expanded && collapsedIcon) { + currentIcon = collapsedIcon; + } + return _react2['default'].createElement( + 'span', + { onClick: function onClick(e) { + return _this2.onExpand(!expanded, record, e); + }, className: 'expand-icon-con' }, + currentIcon + ); + } else if (needIndentSpaced || isHiddenExpandIcon) { + return _react2['default'].createElement('span', { className: clsPrefix + '-expand-icon ' + clsPrefix + '-spaced' }); + } + return null; + }; + return ExpandIcon; + }(_react.Component); - (0, _reactLifecyclesCompat.polyfill)(MonthPanel); + ; - exports["default"] = MonthPanel; + ExpandIcon.propTypes = propTypes; + + exports['default'] = ExpandIcon; module.exports = exports['default']; /***/ }), -/* 544 */ +/* 412 */ /***/ (function(module, exports, __webpack_require__) { - 'use strict'; + "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + var _react = __webpack_require__(1); var _react2 = _interopRequireDefault(_react); + var _reactDom = __webpack_require__(2); + + var _reactDom2 = _interopRequireDefault(_reactDom); + var _propTypes = __webpack_require__(6); var _propTypes2 = _interopRequireDefault(_propTypes); - var _classnames = __webpack_require__(5); + var _throttleDebounce = __webpack_require__(413); - var _classnames2 = _interopRequireDefault(_classnames); + var _utils = __webpack_require__(295); - var _index = __webpack_require__(540); + var _FilterType = __webpack_require__(414); + + var _FilterType2 = _interopRequireDefault(_FilterType); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - var ROW = 4; - var COL = 3; + var propTypes = { + clsPrefix: _propTypes2["default"].string, + rowStyle: _propTypes2["default"].object, + rows: _propTypes2["default"].array + }; - function chooseMonth(month) { - var next = this.state.value.clone(); - next.month(month); - this.setAndSelectValue(next); + function getDiv(id) { + var div = document.createElement("div"); + div.className = "u-table-drag-hidden-cont"; + div.id = id; + return div; } - function noop() {} - - var MonthTable = function (_Component) { - _inherits(MonthTable, _Component); + var TableHeader = function (_Component) { + _inherits(TableHeader, _Component); - function MonthTable(props) { - _classCallCheck(this, MonthTable); + function TableHeader(props) { + _classCallCheck(this, TableHeader); var _this = _possibleConstructorReturn(this, _Component.call(this, props)); - _this.state = { - value: props.value + _initialiseProps.call(_this); + + _this.currentObj = null; + _this.theadKey = new Date().getTime(); + _this.drag = { + option: '' }; + _this.minWidth = parseInt(props.minColumnWidth); + _this.table = null; + _this._thead = null; //当前对象 + _this.event = false; //避免多次绑定问题 + _this.lastColumWidth = null; //非固定列最后一列的初始化宽度 + _this.fixedTable = {}; return _this; } - MonthTable.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - if ('value' in nextProps) { - this.setState({ - value: nextProps.value + TableHeader.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { + var _this2 = this; + + // 表格column改变时,要重新绑定拖拽事件,否则拖拽不生效 + var oldCols = this.props.columnsChildrenList; + var newCols = nextProps.columnsChildrenList; + + if (this._thead) { + if (newCols.length !== oldCols.length) { + this.event = false; + return; + } + oldCols.some(function (item, index) { + if (newCols[index] && newCols[index].dataIndex !== item.dataIndex) { + _this2.event = false; + return true; + } }); } }; - MonthTable.prototype.setAndSelectValue = function setAndSelectValue(value) { - this.setState({ - value: value + TableHeader.prototype.componentDidUpdate = function componentDidUpdate() { + this.initTable(); + this.initEvent(); + }; + + TableHeader.prototype.componentDidMount = function componentDidMount() { + var uid = "_table_uid_" + new Date().getTime(); + this._table_none_cont_id = uid; + var div = getDiv(uid); + document.querySelector("body").appendChild(div); + }; + + TableHeader.prototype.componentWillUnmount = function componentWillUnmount() { + var _this3 = this; + + this.fixedTable = null; + if (!this.table) return; + if (this.props.draggable) { + this.removeDragAbleEvent(); + } + if (this.props.dragborder) { + this.removeDragBorderEvent(); + } + this.doEventList(this.table.tr, function (tr) { + _this3.eventListen([{ key: 'mousedown', fun: _this3.onTrMouseDown }], 'remove', tr); }); - this.props.onSelect(value); + // this.eventListen([{key:'mousedown',fun:this.onTrMouseDown}],'remove',this.table.tr[0]); + this.eventListen([{ key: 'mouseup', fun: this.bodyonLineMouseUp }], 'remove', document.body); }; - MonthTable.prototype.months = function months() { - var value = this.state.value; - var current = value.clone(); - var months = []; - var index = 0; - for (var rowIndex = 0; rowIndex < ROW; rowIndex++) { - months[rowIndex] = []; - for (var colIndex = 0; colIndex < COL; colIndex++) { - current.month(index); - var content = (0, _index.getMonthName)(current); - months[rowIndex][colIndex] = { - value: index, - content: content, - title: content - }; - index++; + /** + * 获取table的属性存放在this.table 中。(公用方法) + * @returns + * @memberof TableHeader + */ + + + TableHeader.prototype.initTable = function initTable() { + var contentTable = this.props.contentTable; + + if (!this.props.dragborder && !this.props.draggable) return; + var tableDome = this._thead.parentNode; + var table = {}; + if (tableDome && tableDome.nodeName && tableDome.nodeName.toUpperCase() == "TABLE") { + table.table = tableDome; + table.cols = tableDome.getElementsByTagName("col"); + table.ths = tableDome.getElementsByTagName("th"); + table.tr = tableDome.getElementsByTagName("tr"); + table.tableBody = contentTable.querySelector('.u-table-scroll .u-table-body') && contentTable.querySelector('.u-table-scroll .u-table-body'); + table.tableBodyCols = contentTable.querySelector('.u-table-scroll .u-table-body') && contentTable.querySelector('.u-table-scroll .u-table-body').getElementsByTagName("col"); + table.bodyRows = table.tableBody && table.tableBody.querySelectorAll('tr') || []; + + table.fixedLeftHeaderTable = contentTable.querySelector('.u-table-fixed-left .u-table-header'); + table.fixedRighHeadertTable = contentTable.querySelector('.u-table-fixed-right .u-table-header'); + table.contentTableHeader = contentTable.querySelector('.u-table-scroll .u-table-header'); + table.fixedLeftBodyTable = contentTable.querySelectorAll('.u-table-fixed-left .u-table-body-outer'); + if (table.fixedLeftBodyTable) { + var leftBodyTableIndex = table.fixedLeftBodyTable.length - 1 < 0 ? 0 : table.fixedLeftBodyTable.length - 1; + table.fixedLeftBodyTable = table.fixedLeftBodyTable[leftBodyTableIndex]; + } + + table.fixedRightBodyTable = contentTable.querySelectorAll('.u-table-fixed-right .u-table-body-outer'); + if (table.fixedRightBodyTable) { + var rightBodyTableIndex = table.fixedRightBodyTable.length - 1 < 0 ? 0 : table.fixedRightBodyTable.length - 1; + table.fixedRightBodyTable = table.fixedRightBodyTable[rightBodyTableIndex]; + } + + table.innerTableBody = contentTable.querySelector('.u-table-scroll .u-table-body table'); + table.fixedLeftBodyRows = table.fixedLeftBodyTable && table.fixedLeftBodyTable.querySelectorAll('tr') || []; + table.fixedRightBodyRows = table.fixedRightBodyTable && table.fixedRightBodyTable.querySelectorAll('tr') || []; + } + + this.table = table; + + if (!this.props.dragborder) return; + if (document.getElementById("u-table-drag-thead-" + this.theadKey)) { + this.fixedTable = {}; + var _fixedParentContext = document.getElementById("u-table-drag-thead-" + this.theadKey).parentNode; + var siblingDom = _fixedParentContext.parentNode.nextElementSibling; + if (siblingDom) { + var fixedTable = siblingDom.querySelector("table"); + this.fixedTable.table = fixedTable; + this.fixedTable.cols = fixedTable.getElementsByTagName("col"); + // this.fixedTable.ths = fixedTable.tableDome.getElementsByTagName("th"); } } - return months; }; - MonthTable.prototype.render = function render() { - var _this2 = this; + /** + * 事件初始化 + */ - var props = this.props; - var value = this.state.value; - var today = (0, _index.getTodayTime)(value); - var months = this.months(); - var currentMonth = value.month(); - var prefixCls = props.prefixCls, - locale = props.locale, - contentRender = props.contentRender, - cellRender = props.cellRender; - var monthsEls = months.map(function (month, index) { - var tds = month.map(function (monthData) { - var _classNameMap; + TableHeader.prototype.initEvent = function initEvent() { + var _this4 = this; - var disabled = false; - if (props.disabledDate) { - var testValue = value.clone(); - testValue.month(monthData.value); - disabled = props.disabledDate(testValue); - } - var classNameMap = (_classNameMap = {}, _defineProperty(_classNameMap, prefixCls + '-cell', 1), _defineProperty(_classNameMap, prefixCls + '-cell-disabled', disabled), _defineProperty(_classNameMap, prefixCls + '-selected-cell', monthData.value === currentMonth), _defineProperty(_classNameMap, prefixCls + '-current-cell', today.year() === value.year() && monthData.value === today.month()), _classNameMap); - var cellEl = void 0; - if (cellRender) { - var currentValue = value.clone(); - currentValue.month(monthData.value); - cellEl = cellRender(currentValue, locale); - } else { - var content = void 0; - if (contentRender) { - var _currentValue = value.clone(); - _currentValue.month(monthData.value); - content = contentRender(_currentValue, locale); - } else { - content = monthData.content; - } - cellEl = _react2["default"].createElement( - 'a', - { className: prefixCls + '-month' }, - content - ); - } - return _react2["default"].createElement( - 'td', - { - role: 'gridcell', - key: monthData.value, - onClick: disabled ? null : chooseMonth.bind(_this2, monthData.value), - title: monthData.title, - className: (0, _classnames2["default"])(classNameMap) - }, - cellEl - ); - }); - return _react2["default"].createElement( - 'tr', - { key: index, role: 'row' }, - tds - ); - }); + var _props = this.props, + dragborder = _props.dragborder, + draggable = _props.draggable, + rows = _props.rows; + // 当传入的 columns 为空时,不绑定拖拽事件 - return _react2["default"].createElement( - 'table', - { className: prefixCls + '-table', cellSpacing: '0', role: 'grid' }, - _react2["default"].createElement( - 'tbody', - { className: prefixCls + '-tbody' }, - monthsEls - ) - ); + if (Object.prototype.toString.call(rows) === '[object Array]' && rows.length === 0) { + return; + } + if (!this.event) { + //避免多次绑定问题。 + this.event = true; + if (dragborder) { + this.dragBorderEventInit(); //列宽 + } + if (draggable) { + this.dragAbleEventInit(); //交换列 + } + if (this.table && this.table.tr) { + // this.eventListen([{key:'mousedown',fun:this.onTrMouseDown}],'',this.table.tr[0]);//body mouseup + this.doEventList(this.table.tr, function (tr) { + _this4.eventListen([{ key: 'mousedown', fun: _this4.onTrMouseDown }], '', tr); //body mouseup + }); + } + this.eventListen([{ key: 'mouseup', fun: this.bodyonLineMouseUp }], '', document.body); //body mouseup + } }; - return MonthTable; - }(_react.Component); + TableHeader.prototype.doEventList = function doEventList(trs, action) { + for (var index = 0; index < trs.length; index++) { + action(trs[index]); + } + }; - MonthTable.defaultProps = { - onSelect: noop - }; - MonthTable.propTypes = { - onSelect: _propTypes2["default"].func, - cellRender: _propTypes2["default"].func, - prefixCls: _propTypes2["default"].string, - value: _propTypes2["default"].object - }; - exports["default"] = MonthTable; - module.exports = exports['default']; - -/***/ }), -/* 545 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; + /** + * 拖拽列宽事件的监听 + */ - Object.defineProperty(exports, "__esModule", { - value: true - }); - var _react = __webpack_require__(1); + TableHeader.prototype.dragBorderEventInit = function dragBorderEventInit() { + var _this5 = this; - var _react2 = _interopRequireDefault(_react); + if (!this.props.dragborder) return; + var events = [{ key: 'mouseup', fun: this.onTrMouseUp }, { key: 'mousemove', fun: this.onTrMouseMove }]; + this.doEventList(this.table.tr, function (tr) { + _this5.eventListen(events, '', tr); //表示把事件添加到th元素上 + }); + // this.eventListen(events,'',this.table.tr[0]);//表示把事件添加到th元素上 + }; - var _reactDom = __webpack_require__(2); + /** + * 删除拖动改变列宽的事件监听 + */ - var _reactDom2 = _interopRequireDefault(_reactDom); - var _propTypes = __webpack_require__(6); + TableHeader.prototype.removeDragBorderEvent = function removeDragBorderEvent() { + var _this6 = this; - var _propTypes2 = _interopRequireDefault(_propTypes); + var events = [{ key: 'mouseup', fun: this.onTrMouseUp }, { key: 'mousemove', fun: this.onTrMouseMove }]; + // this.eventListen(events,'remove',this.table.tr[0]); + this.doEventList(this.table.tr, function (tr) { + _this6.eventListen(events, 'remove', _this6.table.tr); + }); + }; - var _tinperBeeCore = __webpack_require__(27); + TableHeader.prototype.eventListen = function eventListen(events, type, eventSource) { + if (!this.table) return; + if (!eventSource) { + console.log("Please set the attributes of column !"); + return; + } + var tr = this.table.tr; - var _reactLifecyclesCompat = __webpack_require__(81); + for (var i = 0; i < events.length; i++) { + var _event = events[i]; + if (type === "remove") { + _utils.EventUtil.removeHandler(eventSource, _event.key, _event.fun); + } else { + _utils.EventUtil.addHandler(eventSource, _event.key, _event.fun); + } + } + }; - var _moment = __webpack_require__(404); + /** + * + *根据 data-type 来获取当前拖拽的对象的Object,如果为null表示拖动的对象并非是online + * @memberof TableHeader + */ - var _moment2 = _interopRequireDefault(_moment); - var _util = __webpack_require__(540); + /** + * 调整列宽的down事件 + * @memberof TableHeader + */ - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + /** + * 根据当前节点查找到有data-type类型的容器返回。 + * @memberof TableHeader + */ - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + /** + * 判断当前的target 是否是 th,如果不是,直接递归查找。 + * @memberof TableHeader + */ - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + /** + * 调整列宽的move事件 + * @memberof TableHeader + */ - var cachedSelectionStart = void 0; - var cachedSelectionEnd = void 0; - var dateInputInstance = void 0; - var DateInput = function (_React$Component) { - _inherits(DateInput, _React$Component); + /** + * 调整列宽的up事件 + * @memberof TableHeader + */ - function DateInput(props) { - _classCallCheck(this, DateInput); - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); + TableHeader.prototype.mouseClear = function mouseClear() { + if (!this.drag || !this.drag.option) return; + var rows = this.props.rows; - _initialiseProps.call(_this); + var data = { rows: rows[0], cols: this.table.cols, currIndex: this.drag.currIndex }; + this.props.afterDragColWidth && this.props.afterDragColWidth(data); + this.drag = { + option: "" + }; + this.clearThsDr(); + }; - var selectedValue = props.selectedValue; + /** + * 当前对象上绑定全局事件,用于拖拽区域以外时的事件处理 + * @param {*} events + * @param {*} type + * @memberof TableHeader + */ - _this.state = { - str: (0, _util.formatDate)(selectedValue, _this.props.format), - invalid: false, - hasFocus: false - }; - return _this; - } - DateInput.prototype.componentDidUpdate = function componentDidUpdate() { - if (dateInputInstance && this.state.hasFocus && !this.state.invalid && !(cachedSelectionStart === 0 && cachedSelectionEnd === 0)) { - dateInputInstance.setSelectionRange(cachedSelectionStart, cachedSelectionEnd); - } - }; + /** + *相关滚动条联动操作 + * + * @memberof TableHeader + */ - DateInput.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, state) { - var newState = {}; - if (dateInputInstance) { - cachedSelectionStart = dateInputInstance.selectionStart; - cachedSelectionEnd = dateInputInstance.selectionEnd; - } - // when popup show, click body will call this, bug! - var selectedValue = nextProps.selectedValue; - if (!state.hasFocus) { - newState = { - str: (0, _util.formatDate)(selectedValue, nextProps.format), - invalid: false - }; - } + //---拖拽交换列代码----start----- + /** + * 添加换列的事件监听 + */ + TableHeader.prototype.dragAbleEventInit = function dragAbleEventInit() { + if (!this.props.draggable) return; + var events = [{ key: 'dragstart', fun: this.onDragStart }, //用户开始拖动元素时触发 + { key: 'dragover', fun: this.onDragOver }, //当某被拖动的对象在另一对象容器范围内拖动时触发此事件 + { key: 'drop', fun: this.onDrop }, //在一个拖动过程中,释放鼠标键时触发此事件 - return newState; + { key: 'dragenter', fun: this.onDragEnter }, { key: 'dragend', fun: this.onDragEnd }, { key: 'dragleave', fun: this.onDragLeave }]; + this.eventListen(events, '', this.table.tr[0]); //表示把事件添加到th元素上 }; - DateInput.getInstance = function getInstance() { - return dateInputInstance; - }; + /** + * 删除换列的事件监听 + */ - DateInput.prototype.render = function render() { - var props = this.props; - var _state = this.state, - invalid = _state.invalid, - str = _state.str; - var locale = props.locale, - prefixCls = props.prefixCls, - placeholder = props.placeholder, - clearIcon = props.clearIcon, - renderError = props.renderError, - inputTabIndex = props.inputTabIndex; - var invalidClass = invalid ? prefixCls + '-input-invalid' : ''; - return _react2["default"].createElement( - 'div', - { className: prefixCls + '-input-wrap' }, - _react2["default"].createElement( - 'div', - { className: prefixCls + '-date-input-wrap' }, - _react2["default"].createElement('input', { - ref: this.saveDateInput, - className: prefixCls + '-input ' + invalidClass, - value: str ? str : (0, _util.formatDate)(props.selectedValue, props.format), - disabled: props.disabled, - placeholder: placeholder, - onChange: this.onInputChange, - onKeyDown: this.onKeyDown, - onFocus: this.onFocus, - onBlur: this.onBlur, - tabIndex: inputTabIndex - }), - invalid && renderError ? renderError() : '' - ), - props.showClear ? _react2["default"].createElement( - 'a', - { - role: 'button', - title: locale.clear, - onClick: this.onClear - }, - clearIcon || _react2["default"].createElement('span', { className: prefixCls + '-clear-btn uf uf-close-c' }) - ) : null - ); + TableHeader.prototype.removeDragAbleEvent = function removeDragAbleEvent() { + var events = [{ key: 'dragstart', fun: this.onDragStart }, { key: 'dragover', fun: this.onDragOver }, { key: 'drop', fun: this.onDrop }, { key: 'dragenter', fun: this.onDragEnter }, { key: 'dragend', fun: this.onDragEnd }, { key: 'dragleave', fun: this.onDragLeave }]; + this.eventListen(events, 'remove', this.table.tr[0]); }; - return DateInput; - }(_react2["default"].Component); + /** + * 开始调整交换列的事件 + */ - DateInput.propTypes = { - prefixCls: _propTypes2["default"].string, - timePicker: _propTypes2["default"].object, - value: _propTypes2["default"].object, - disabledTime: _propTypes2["default"].any, - format: _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].arrayOf(_propTypes2["default"].string)]), - locale: _propTypes2["default"].object, - disabledDate: _propTypes2["default"].func, - onChange: _propTypes2["default"].func, - onClear: _propTypes2["default"].func, - placeholder: _propTypes2["default"].string, - onSelect: _propTypes2["default"].func, - selectedValue: _propTypes2["default"].object, - clearIcon: _propTypes2["default"].node - }; - var _initialiseProps = function _initialiseProps() { - var _this2 = this; + /** + * 在一个拖动过程中,释放鼠标键时触发此事件。【目标事件】 + * @memberof TableHeader + */ - this.onClear = function () { - _this2.setState({ - str: '' + + /** + * 获取当前th上的对象数据 + * @param {*} e + * @returns + * @memberof TableHeader + */ + TableHeader.prototype.getCurrentEventData = function getCurrentEventData(th) { + if (!th) { + console.log(" event target is not th ! "); + return null; + } + var key = th.getAttribute('data-line-key'); + var data = this.props.rows[0].find(function (da) { + return da.key == key; }); - _this2.props.onClear(null); + if (data) { + return data; + } else { + console.log(" getCurrentEventData data is null "); + return null; + } }; - this.onInputChange = function (event) { - var str = event.target.value; - var _props = _this2.props, - disabledDate = _props.disabledDate, - format = _props.format, - onChange = _props.onChange, - selectedValue = _props.selectedValue, - validatorFunc = _props.validatorFunc; + /** + * 根据当前鼠标点击的节点,进行递归遍历,最终找到th + * @param {*} element + * @returns
  • 对象 + * @memberof TableHeader + */ - // 没有内容,合法并直接退出 - if (!str) { - onChange(null); - _this2.setState({ - // invalid: false, - str: str - }); - return; + TableHeader.prototype.getThDome = function getThDome(element) { + var _tagName = element.tagName.toLowerCase(); + if (element.getAttribute('data-filter-type') === 'filterContext') return null; + if (_tagName === 'i') return null; + if (_tagName != 'th') { + return this.getThDome(element.parentElement); + } else { + return element; } + }; - // 不合法直接退出 - var parsed = (0, _moment2["default"])(str, format, true); - if (!parsed.isValid()) { - _this2.setState({ - // invalid: true, - str: str - }); - return; - } - if (!_this2.props.validatorFunc(str)) { - _this2.setState({ - str: str - }); - return; - }; + //---拖拽列交换----end----- - var value = _this2.props.value.clone(); - value.year(parsed.year()).month(parsed.month()).date(parsed.date()).hour(parsed.hour()).minute(parsed.minute()).second(parsed.second()); + /** + * 过滤输入后或下拉条件的回调函数 + */ - if (!value || disabledDate && disabledDate(value)) { - _this2.setState({ - // invalid: true, - str: str - }); - return; - } - if (selectedValue !== value || selectedValue && value && !selectedValue.isSame(value)) { - _this2.setState({ - // invalid: false, - str: str - }); - onChange(value); - } - }; + /** + * 过滤行清除回调 + */ - this.onFocus = function () { - _this2.setState({ hasFocus: true }); - }; - this.onBlur = function (e) { - var str = e.target.value; - var _props2 = _this2.props, - disabledDate = _props2.disabledDate, - format = _props2.format, - onChange = _props2.onChange, - selectedValue = _props2.selectedValue; + /** + * 过滤渲染的组件类型 + */ - // 没有内容,合法并直接退出 - if (!str) { - _this2.setState({ - invalid: false - }); - return; - } + TableHeader.prototype.render = function render() { + var _this7 = this; - // 不合法直接退出 - var parsed = (0, _moment2["default"])(str, format, true); - if (!parsed.isValid()) { - _this2.setState({ - invalid: true - }); - return; - } - if (!_this2.props.validatorFunc(str)) { - _this2.setState({ - invalid: true - }); - return; - }; + var _props2 = this.props, + clsPrefix = _props2.clsPrefix, + rowStyle = _props2.rowStyle, + draggable = _props2.draggable, + dragborder = _props2.dragborder, + rows = _props2.rows, + filterable = _props2.filterable, + fixed = _props2.fixed, + lastShowIndex = _props2.lastShowIndex, + columnsChildrenList = _props2.columnsChildrenList; - var value = _this2.props.value.clone(); - value.year(parsed.year()).month(parsed.month()).date(parsed.date()).hour(parsed.hour()).minute(parsed.minute()).second(parsed.second()); + var attr = dragborder ? { id: "u-table-drag-thead-" + this.theadKey } : {}; + var lastObj = columnsChildrenList[columnsChildrenList.length - 1]; + return _react2["default"].createElement( + "thead", + _extends({ className: clsPrefix + "-thead" }, attr, { "data-theader-fixed": "scroll", ref: function ref(_thead) { + return _this7._thead = _thead; + } }), + rows.map(function (row, index) { + var _rowLeng = row.length - 1; + return _react2["default"].createElement( + "tr", + { key: index, style: rowStyle, className: filterable && index == rows.length - 1 ? 'filterable' : '' }, + row.map(function (da, columIndex, arr) { + da.children = da.required ? _react2["default"].createElement( + "span", + null, + _react2["default"].createElement( + "span", + { className: "required" }, + "*" + ), + da.children + ) : da.children; + var thHover = da.drgHover ? " " + clsPrefix + "-thead th-drag-hover" : ""; + delete da.drgHover; + var fixedStyle = ""; + var canDotDrag = ""; + //主表格下、固定列或者是过滤行中含有固定列时添加该属性 + if (!fixed && (da.fixed || filterable && index == rows.length - 1 && rows[0][columIndex].fixed)) { + fixedStyle = " " + clsPrefix + "-row-fixed-columns-in-body"; + } - if (!value || disabledDate && disabledDate(value)) { - _this2.setState({ - invalid: true - }); - return; - } + if (lastShowIndex == columIndex) { + canDotDrag = "th-can-not-drag"; + } + var thClassName = "" + da.className ? "" + da.className : ''; + if (da.titleAlign) { + thClassName += " text-" + da.titleAlign + " "; + } else if (da.textAlign) { + thClassName += " text-" + da.textAlign + " "; + } - if (selectedValue !== value || selectedValue && value && !selectedValue.isSame(value)) { - _this2.setState({ - invalid: false - }); - } + delete da.textAlign; + delete da.titleAlign; + var keyTemp = {}; + //避免key为undefined + // if(da.dataindex && da.key ===undefined ){ + keyTemp.key = da.key || da.dataindex || index + '-' + columIndex; - _this2.setState(function (prevState, prevProps) { - return { - hasFocus: false, - str: (0, _util.formatDate)(prevProps.value, prevProps.format) - }; - }); - _this2.props.onBlur && _this2.props.onBlur(e); + // } + if (filterable && index == rows.length - 1) { + da.children = _this7.filterRenderType(da["filtertype"], da.dataindex, columIndex); + if (da.key === undefined) { + keyTemp.key = keyTemp.key + '-filterable'; + } + delete da.filterdropdownfocus; + } + + var thDefaultObj = {}; + + if (draggable) { + thClassName += " " + clsPrefix + "-thead th-drag " + thHover + " "; + } + if (dragborder) { + thClassName += " " + clsPrefix + "-thead-th " + canDotDrag; + } + thClassName += " " + fixedStyle; + if (!da.fixed) { + return _react2["default"].createElement( + "th", + _extends({}, da, keyTemp, { className: thClassName, "data-th-fixed": da.fixed, "data-line-key": da.key, + "data-line-index": columIndex, "data-th-width": da.width, "data-type": "draggable" }), + da.children, + + // && columIndex != _rowLeng + dragborder && lastObj && da.key != lastObj.key ? _react2["default"].createElement( + "div", + { ref: function ref(el) { + return _this7.gap = el; + }, "data-line-key": da.key, + "data-line-index": columIndex, "data-th-width": da.width, + "data-type": "online", className: clsPrefix + "-thead-th-drag-gap" }, + _react2["default"].createElement("div", { className: "online" }) + ) : "" + ); + } else { + thDefaultObj = _extends({}, da, { + className: thClassName + " " + fixedStyle + }); + da.onClick ? thDefaultObj.onClick = function (e) { + da.onClick(da, e); + } : ""; + return _react2["default"].createElement("th", _extends({}, thDefaultObj, keyTemp, { "data-th-fixed": da.fixed, style: { maxWidth: da.width } })); + } + }) + ); + }) + ); }; - this.onKeyDown = function (e) { - var _props3 = _this2.props, - onSelect = _props3.onSelect, - value = _props3.value, - onKeyDown = _props3.onKeyDown, - format = _props3.format, - isRange = _props3.isRange, - validatorFunc = _props3.validatorFunc, - disabledDate = _props3.disabledDate; + return TableHeader; + }(_react.Component); - var str = e.target.value; - var parsed = (0, _moment2["default"])(str, format, true); - if (e.keyCode === _tinperBeeCore.KeyCode.ENTER) { - if (parsed.isValid() && onSelect) { - isRange ? onSelect(parsed.clone()) : onSelect(value.clone()); //FIX https://github.com/iuap-design/tinper-bee/issues/183 + TableHeader.defaultProps = { + contentWidthDiff: 0 + }; + + var _initialiseProps = function _initialiseProps() { + var _this8 = this; + + this.getOnLineObject = function (_element) { + var type = _element.getAttribute('data-type'), + elementObj = null; + if (!type) { + var element = _element.parentElement || parentNode; //兼容写法。 + if (element.getAttribute('data-type')) { + elementObj = element; } - // 没有内容,回填默认值,并关闭面板 - if (!str) { - _this2.setState({ - invalid: false - }); - onSelect && onSelect((0, _moment2["default"])()); - return; + } else { + elementObj = _element; + } + return elementObj; + }; + + this.onTrMouseDown = function (e) { + var eventNoStop = _this8.props.eventNoStop; + + !eventNoStop && _utils.Event.stopPropagation(e); + var event = _utils.Event.getEvent(e), + targetEvent = _utils.Event.getTarget(event); + var _props3 = _this8.props, + clsPrefix = _props3.clsPrefix, + contentTable = _props3.contentTable, + lastShowIndex = _props3.lastShowIndex, + columnsChildrenList = _props3.columnsChildrenList; + // let currentElement = this.getOnLineObject(targetEvent); + + var currentElement = _this8.getTargetToType(targetEvent); + if (!currentElement) return; + var type = currentElement.getAttribute('data-type'); + if (!_this8.props.dragborder && !_this8.props.draggable) return; + if (type == 'online' && _this8.props.dragborder) { + // if(!this.props.dragborder)return; + targetEvent.setAttribute('draggable', false); //添加交换列效果 + var currentIndex = -1; + var defaultWidth = currentElement.getAttribute("data-th-width"); + _this8.drag.option = "border"; //拖拽操作 + if (columnsChildrenList) { + var columnKey = currentElement.getAttribute("data-line-key"); + if (columnKey) { + currentIndex = columnsChildrenList.findIndex(function (da) { + return (da.key && da.key.toLowerCase()) === columnKey.toLowerCase(); + }); + } } - // 有内容,判断是否合法 - if (!parsed.isValid()) { - _this2.setState({ - invalid: true - }); + if (currentIndex < 0) { + console.log('Key must be set for column!'); + return; } - if (!validatorFunc(str)) { - _this2.setState({ - invalid: true - }); + var currentObj = _this8.table.cols[currentIndex]; + _this8.drag.currIndex = currentIndex; + _this8.drag.oldLeft = event.x; + _this8.drag.oldWidth = parseInt(currentObj.style.width); + _this8.drag.minWidth = currentObj.style.minWidth != "" ? parseInt(currentObj.style.minWidth) : defaultWidth; + _this8.drag.tableWidth = parseInt(_this8.table.table.style.width ? _this8.table.table.style.width : _this8.table.table.scrollWidth); + if (!_this8.tableOldWidth) { + _this8.tableOldWidth = _this8.drag.tableWidth; //this.getTableWidth(); } - value.year(parsed.year()).month(parsed.month()).date(parsed.date()).hour(parsed.hour()).minute(parsed.minute()).second(parsed.second()); - - if (!value || disabledDate && disabledDate(value)) { - _this2.setState({ - invalid: true - }); + if (!_this8.lastColumWidth) { + _this8.lastColumWidth = parseInt(_this8.table.cols[lastShowIndex].style.width); } + } else if (type != 'online' && _this8.props.draggable) { + // if (!this.props.draggable || targetEvent.nodeName.toUpperCase() != "TH") return; + if (!_this8.props.draggable) return; + var th = _this8.getTargetToType(targetEvent); + th.setAttribute('draggable', true); //添加交换列效果 + _this8.drag.option = 'dragAble'; + _this8.currentDome = th; + var _currentIndex = parseInt(th.getAttribute("data-line-index")); + _this8.drag.currIndex = _currentIndex; + } else { + // console.log("onTrMouseDown dragborder or draggable is all false !"); + return; } - // if (e.keyCode === KeyCode.ENTER && onSelect) { - // onSelect(value.clone()); - // } - onKeyDown && onKeyDown(e); }; - this.getRootDOMNode = function () { - return _reactDom2["default"].findDOMNode(_this2); + this.getTableWidth = function () { + var tableWidth = 0, + offWidth = 0; //this.table.cols.length; + for (var index = 0; index < _this8.table.cols.length; index++) { + var da = _this8.table.cols[index]; + tableWidth += parseInt(da.style.width); + } + return tableWidth - offWidth; }; - this.focus = function () { - if (dateInputInstance) { - dateInputInstance.focus(); + this.getTargetToType = function (targetEvent) { + var tag = targetEvent; + if (targetEvent && !targetEvent.getAttribute("data-type")) { + tag = _this8.getTargetToType(targetEvent.parentElement); } + return tag; }; - this.saveDateInput = function (dateInput) { - dateInputInstance = dateInput; + this.getTargetToTh = function (targetEvent) { + var th = targetEvent; + if (targetEvent.nodeName.toUpperCase() != "TH") { + th = _this8.getThDome(targetEvent); + } + // console.log(" getTargetToTh: ", th); + return th; }; - }; - (0, _reactLifecyclesCompat.polyfill)(DateInput); + this.onTrMouseMove = function (e) { + if (!_this8.props.dragborder && !_this8.props.draggable) return; + var _props4 = _this8.props, + clsPrefix = _props4.clsPrefix, + dragborder = _props4.dragborder, + contentDomWidth = _props4.contentDomWidth, + scrollbarWidth = _props4.scrollbarWidth, + contentTable = _props4.contentTable, + headerScroll = _props4.headerScroll, + lastShowIndex = _props4.lastShowIndex, + onDraggingBorder = _props4.onDraggingBorder, + leftFixedWidth = _props4.leftFixedWidth, + rightFixedWidth = _props4.rightFixedWidth, + bodyDisplayInRow = _props4.bodyDisplayInRow, + eventNoStop = _props4.eventNoStop; - exports["default"] = DateInput; - module.exports = exports['default']; - -/***/ }), -/* 546 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; + !eventNoStop && _utils.Event.stopPropagation(e); + var event = _utils.Event.getEvent(e); + if (_this8.props.dragborder && _this8.drag.option == "border") { + //移动改变宽度 + var currentCols = _this8.table.cols[_this8.drag.currIndex]; + var diff = event.x - _this8.drag.oldLeft; + var newWidth = _this8.drag.oldWidth + diff; + _this8.drag.newWidth = newWidth > 0 ? newWidth : _this8.minWidth; + if (newWidth > _this8.minWidth) { + currentCols.style.width = newWidth + 'px'; - Object.defineProperty(exports, "__esModule", { - value: true - }); + // displayinrow 判断、 固定行高判断 + if (!bodyDisplayInRow) { + _this8.table.bodyRows.forEach(function (row, index) { + var leftRow = _this8.table.fixedLeftBodyRows[index]; + var rightRow = _this8.table.fixedRightBodyRows[index]; + if (leftRow || rightRow) { + var height = row.getBoundingClientRect().height; + leftRow && (leftRow.style.height = height + "px"); + rightRow && (rightRow.style.height = height + "px"); + } + }); + } + + //hao 支持固定表头拖拽 修改表体的width + if (_this8.fixedTable.cols) { + _this8.fixedTable.cols[_this8.drag.currIndex].style.width = newWidth + "px"; + } + + var newDiff = parseInt(currentCols.style.minWidth) - parseInt(currentCols.style.width); + if (newDiff > 0) { + //缩小 + var lastWidth = _this8.lastColumWidth + newDiff; + _this8.table.cols[lastShowIndex].style.width = lastWidth + "px"; //同步表头 + _this8.table.tableBodyCols[lastShowIndex].style.width = lastWidth + "px"; //同步表体 + } + var showScroll = contentDomWidth - (leftFixedWidth + rightFixedWidth) - (_this8.drag.tableWidth + diff) - scrollbarWidth; + //表头滚动条处理 + if (headerScroll) { + if (showScroll < 0) { + //小于 0 出现滚动条 + //找到固定列表格,设置表头的marginBottom值为scrollbarWidth; + _this8.table.contentTableHeader.style.overflowX = 'scroll'; + _this8.optTableMargin(_this8.table.fixedLeftHeaderTable, scrollbarWidth); + _this8.optTableMargin(_this8.table.fixedRighHeadertTable, scrollbarWidth); + } else { + //大于 0 不显示滚动条 + _this8.table.contentTableHeader.style.overflowX = 'hidden'; + _this8.optTableMargin(_this8.table.fixedLeftHeaderTable, 0); + _this8.optTableMargin(_this8.table.fixedRighHeadertTable, 0); + } + } else { + if (showScroll < 0) { + _this8.table.tableBody.style.overflowX = 'auto'; + _this8.optTableMargin(_this8.table.fixedLeftBodyTable, '-' + scrollbarWidth); + _this8.optTableMargin(_this8.table.fixedRightBodyTable, '-' + scrollbarWidth); + _this8.optTableScroll(_this8.table.fixedLeftBodyTable, { x: 'scroll' }); + _this8.optTableScroll(_this8.table.fixedRightBodyTable, { x: 'scroll' }); + } else { + _this8.table.tableBody.style.overflowX = 'hidden'; + _this8.optTableMargin(_this8.table.fixedLeftBodyTable, 0); + _this8.optTableMargin(_this8.table.fixedRightBodyTable, 0); + _this8.optTableScroll(_this8.table.fixedLeftBodyTable, { x: 'auto' }); + _this8.optTableScroll(_this8.table.fixedRightBodyTable, { x: 'auto' }); + } + } + } else { + _this8.drag.newWidth = _this8.minWidth; + } + } + // 增加拖拽列宽动作的回调函数 + _this8.drag.newWidth && onDraggingBorder && onDraggingBorder(event, _this8.drag.newWidth); + }; + + this.onTrMouseUp = function (e) { + var event = _utils.Event.getEvent(e); + var width = _this8.drag.newWidth; + var opt = _this8.drag.option; + _this8.mouseClear(); + if (opt !== "border") return; // fix:点击表头会触发onDropBorder事件的问题 + _this8.props.onDropBorder && _this8.props.onDropBorder(event, width); + }; + + this.clearThsDr = function () { + var ths = _this8.table.ths; + for (var index = 0; index < ths.length; index++) { + ths[index].setAttribute('draggable', false); //去掉交换列效果 + } + }; - var _react = __webpack_require__(1); + this.bodyonLineMouseUp = function (events, type) { + if (!_this8.drag || !_this8.drag.option) return; + _this8.mouseClear(); + }; - var _react2 = _interopRequireDefault(_react); + this.optTableMargin = function (table, scrollbarWidth) { + if (table) { + table.style.marginBottom = scrollbarWidth + "px"; + } + }; - var _propTypes = __webpack_require__(6); + this.optTableScroll = function (table) { + var overflow = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - var _propTypes2 = _interopRequireDefault(_propTypes); + if (table) { + var innerTable = table.querySelector('.u-table-body-inner'); + if (innerTable) { + //fixbug: 拖拽列宽后,滚动条滚到表格底部,会导致固定列和非固定列错行 + overflow.x && (innerTable.style.overflowX = overflow.x); + overflow.y && (innerTable.style.overflowY = overflow.y); + } + } + }; - var _classnames = __webpack_require__(5); + this.onDragStart = function (e) { + if (!_this8.props.draggable) return; + if (_this8.drag && _this8.drag.option != 'dragAble') { + return; + } + var event = _utils.Event.getEvent(e), - var _classnames2 = _interopRequireDefault(_classnames); + // target = Event.getTarget(event); + target = _this8.getTargetToTh(_utils.Event.getTarget(event)); + var currentIndex = parseInt(target.getAttribute("data-line-index")); + var currentKey = target.getAttribute('data-line-key'); - var _DecadePanel = __webpack_require__(547); + if (event.dataTransfer.setDragImage) { + var crt = target.cloneNode(true); + crt.style.backgroundColor = "#ebecf0"; + crt.style.width = _this8.table.cols[currentIndex].style.width; //拖动后再交换列的时候,阴影效果可同步 + crt.style.height = "40px"; + // crt.style['line-height'] = "40px"; + // document.body.appendChild(crt); + document.getElementById(_this8._table_none_cont_id).appendChild(crt); + event.dataTransfer.setDragImage(crt, 0, 0); + } - var _DecadePanel2 = _interopRequireDefault(_DecadePanel); + event.dataTransfer.effectAllowed = "move"; + event.dataTransfer.setData("Text", currentKey); + _this8.currentObj = _this8.props.rows[0][currentIndex]; + }; - var _DateInput = __webpack_require__(545); + this.onDragOver = function (e) { + var event = _utils.Event.getEvent(e); + event.preventDefault(); + }; - var _DateInput2 = _interopRequireDefault(_DateInput); + this.onDrop = function (e) { + if (!_this8.props.draggable) return; + var props = _this8.getCurrentEventData(_this8._dragCurrent); + e.column = { props: props }; + if (_this8.drag && _this8.drag.option != 'dragAble') { + _this8.props.onDrop(e); + return; + } + var event = _utils.Event.getEvent(e), + target = _utils.Event.getTarget(event); + _this8.currentDome.setAttribute('draggable', false); //添加交换列效果 + // let data = this.getCurrentEventData(this._dragCurrent); + // if(!data){ + // this.props.onDrop(e); + // return; + // } + if (!_this8.props.onDrop) return; + // this.props.onDrop(event,target); + _this8.props.onDrop(event, { dragSource: _this8.currentObj, dragTarg: e.column }); + }; - var _moment = __webpack_require__(404); + this.onDragEnter = function (e) { + var event = _utils.Event.getEvent(e), + target = _utils.Event.getTarget(event); + _this8._dragCurrent = target; + var currentIndex = target.getAttribute("data-line-index"); + if (!currentIndex || parseInt(currentIndex) === _this8.drag.currIndex) return; + if (target.nodeName.toUpperCase() === "TH") { + // target.style.border = "2px dashed rgba(5,0,0,0.25)"; + target.setAttribute("style", "border-right:2px dashed rgb(30, 136, 229)"); + // target.style.backgroundColor = 'rgb(235, 236, 240)'; + } + }; - var _moment2 = _interopRequireDefault(_moment); + this.onDragEnd = function (e) { + var event = _utils.Event.getEvent(e), + target = _utils.Event.getTarget(event); + _this8._dragCurrent.setAttribute("style", ""); + // this._dragCurrent.style = ""; + document.getElementById(_this8._table_none_cont_id).innerHTML = ""; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var data = _this8.getCurrentEventData(_this8._dragCurrent); + if (!data) return; + if (!_this8.currentObj || _this8.currentObj.key == data.key) return; + if (!_this8.props.onDragEnd) return; + _this8.props.onDragEnd(event, { dragSource: _this8.currentObj, dragTarg: data }); + }; - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + this.onDragLeave = function (e) { + var event = _utils.Event.getEvent(e), + target = _utils.Event.getTarget(event); + var currentIndex = target.getAttribute("data-line-index"); + if (!currentIndex || parseInt(currentIndex) === _this8.drag.currIndex) return; + if (target.nodeName.toUpperCase() === "TH") { + target.setAttribute("style", ""); + // this._dragCurrent.style = ""; + } + }; - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + this.handlerFilterChange = function (key, value, condition) { + var onFilterChange = _this8.props.onFilterChange; - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + if (onFilterChange) { + onFilterChange(key, value, condition); + } + }; - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + this.handlerFilterClear = function (field) { + var onFilterClear = _this8.props.onFilterClear; - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + if (onFilterClear) { + onFilterClear(field); + } + }; - var ROW = 4; - var COL = 3; + this.filterRenderType = function (type, dataIndex, index) { + var _props5 = _this8.props, + clsPrefix = _props5.clsPrefix, + rows = _props5.rows, + filterDelay = _props5.filterDelay, + locale = _props5.locale; - function goYear(direction) { - var value = this.state.value.clone(); - value.add(direction, 'year'); - this.setState({ - value: value - }); - } + switch (type) { + //文本输入 + case "text": + return _react2["default"].createElement(_FilterType2["default"], { + locale: locale //多语 + , rendertype: type //渲染类型 + , clsPrefix: clsPrefix //css前缀 + , className: clsPrefix + " filter-text", + dataIndex: dataIndex //字段 + , onFilterChange: (0, _throttleDebounce.debounce)(filterDelay || 300, _this8.handlerFilterChange) //输入框回调 + , onFilterClear: _this8.handlerFilterClear //清除回调 + , filterDropdown: rows[1][index]["filterdropdown"] //是否显示下拉条件 + , filterDropdownType: rows[1][index]["filterdropdowntype"] //下拉的条件类型为string,number + , filterDropdownIncludeKeys: rows[1][index]["filterdropdownincludekeys"] //下拉条件按照指定的keys去显示 + }); + //数值输入 + case "number": + return _react2["default"].createElement(_FilterType2["default"], { + locale: locale, + rendertype: type, + clsPrefix: clsPrefix, + className: clsPrefix + " filter-text", + dataIndex: dataIndex //字段 + , onFilterChange: (0, _throttleDebounce.debounce)(filterDelay || 300, _this8.handlerFilterChange) //输入框回调并且函数防抖动 + , onFilterClear: _this8.handlerFilterClear //清除回调 + , filterDropdown: rows[1][index]["filterdropdown"], + filterDropdownType: rows[1][index]["filterdropdowntype"] //下拉的条件类型为string,number + , filterDropdownIncludeKeys: rows[1][index]["filterdropdownincludekeys"] //下拉条件按照指定的keys去显示 + , filterInputNumberOptions: rows[1][index]["filterinputnumberoptions"] //设置数值框内的详细属性 + }); + //下拉框选择 + case "dropdown": + var selectDataSource = []; + //处理没有输入数据源的时候,系统自动查找自带的数据筛选后注入 + if (rows.length > 0 && (rows[1][index]["filterdropdownauto"] || "auto") == "auto") { + var hash = {}; + //处理下拉重复对象组装dropdown + selectDataSource = Array.from(rows[1][0].datasource, function (x) { + return { + key: x[dataIndex], + value: x[dataIndex] + }; + }); + selectDataSource = selectDataSource.reduceRight(function (item, next) { + hash[next.key] ? "" : hash[next.key] = true && item.push(next); + return item; + }, []); + } else { + //从外部数据源加载系统数据 + selectDataSource = rows[1][index]["filterdropdowndata"]; + } + return _react2["default"].createElement(_FilterType2["default"], { + locale: locale, + rendertype: type, + className: clsPrefix + " filter-dropdown", + data: selectDataSource, + notFoundContent: "Loading" //没有数据显示的默认字 + , dataIndex: dataIndex //字段 + , onFilterChange: _this8.handlerFilterChange //输入框回调 + , onFilterClear: _this8.handlerFilterClear //清除回调 + , filterDropdown: rows[1][index]["filterdropdown"], + onFocus: rows[1][index]["filterdropdownfocus"], + filterDropdownType: rows[1][index]["filterdropdowntype"] //下拉的条件类型为string,number + , filterDropdownIncludeKeys: rows[1][index]["filterdropdownincludekeys"] //下拉条件按照指定的keys去显示 + }); + //日期 + case "date": + return _react2["default"].createElement(_FilterType2["default"], { + locale: locale, + rendertype: type, + className: "filter-date", + onClick: function onClick() {}, + format: rows[1][index]["format"] || "YYYY-MM-DD", + dataIndex: dataIndex //字段 + , onFilterChange: _this8.handlerFilterChange //输入框回调 + , onFilterClear: _this8.handlerFilterClear //清除回调 + , filterDropdown: rows[1][index]["filterdropdown"], + filterDropdownType: rows[1][index]["filterdropdowntype"] //下拉的条件类型为string,number + , filterDropdownIncludeKeys: rows[1][index]["filterdropdownincludekeys"] //下拉条件按照指定的keys去显示 + }); + //日期 年 + case "dateyear": + return _react2["default"].createElement(_FilterType2["default"], { + locale: locale, + rendertype: type, + className: "filter-date", + onClick: function onClick() {}, + format: rows[1][index]["format"] || "YYYY", + dataIndex: dataIndex //字段 + , onFilterChange: _this8.handlerFilterChange //输入框回调 + , onFilterClear: _this8.handlerFilterClear //清除回调 + , filterDropdown: rows[1][index]["filterdropdown"], + filterDropdownType: rows[1][index]["filterdropdowntype"] //下拉的条件类型为string,number + , filterDropdownIncludeKeys: rows[1][index]["filterdropdownincludekeys"] //下拉条件按照指定的keys去显示 + }); + //日期 月 + case "datemonth": + return _react2["default"].createElement(_FilterType2["default"], { + locale: locale, + rendertype: type, + className: "filter-date", + onClick: function onClick() {}, + format: rows[1][index]["format"] || "YYYY-MM", + dataIndex: dataIndex //字段 + , onFilterChange: _this8.handlerFilterChange //输入框回调 + , onFilterClear: _this8.handlerFilterClear //清除回调 + , filterDropdown: rows[1][index]["filterdropdown"], + filterDropdownType: rows[1][index]["filterdropdowntype"] //下拉的条件类型为string,number + , filterDropdownIncludeKeys: rows[1][index]["filterdropdownincludekeys"] //下拉条件按照指定的keys去显示 + }); + //日期 周 + case "dateweek": + return _react2["default"].createElement(_FilterType2["default"], { + locale: locale, + rendertype: type, + className: "filter-date", + onClick: function onClick() {}, + format: rows[1][index]["format"] || "YYYY-Wo", + dataIndex: dataIndex //字段 + , onFilterChange: _this8.handlerFilterChange //输入框回调 + , onFilterClear: _this8.handlerFilterClear //清除回调 + , filterDropdown: rows[1][index]["filterdropdown"], + filterDropdownType: rows[1][index]["filterdropdowntype"] //下拉的条件类型为string,number + , filterDropdownIncludeKeys: rows[1][index]["filterdropdownincludekeys"] //下拉条件按照指定的keys去显示 + }); + //日期范围 + case "daterange": + return _react2["default"].createElement(_FilterType2["default"], { + locale: locale, + rendertype: type, + className: "filter-date", + onClick: function onClick() {}, + format: rows[1][index]["format"] || "YYYY-MM-DD", + dataIndex: dataIndex //字段 + , onFilterChange: _this8.handlerFilterChange //输入框回调 + , onFilterClear: _this8.handlerFilterClear //清除回调 + , filterDropdown: rows[1][index]["filterdropdown"], + filterDropdownType: rows[1][index]["filterdropdowntype"] //下拉的条件类型为string,number + , filterDropdownIncludeKeys: rows[1][index]["filterdropdownincludekeys"] //下拉条件按照指定的keys去显示 + }); + default: + //不匹配类型默认文本输入 + return _react2["default"].createElement("div", null); + } + }; + }; - function chooseYear(year) { - var value = this.state.value.clone(); - value.year(year); - value.month(this.state.value.month()); - this.props.onSelect(value); - } + TableHeader.propTypes = propTypes; + exports["default"] = TableHeader; + module.exports = exports["default"]; + +/***/ }), +/* 413 */ +/***/ (function(module, exports, __webpack_require__) { + + (function (global, factory) { + true ? factory(exports) : + typeof define === 'function' && define.amd ? define(['exports'], factory) : + (global = global || self, factory(global.throttleDebounce = {})); + }(this, (function (exports) { 'use strict'; - var YearPanel = function (_React$Component) { - _inherits(YearPanel, _React$Component); + /* eslint-disable no-undefined,no-param-reassign,no-shadow */ - function YearPanel(props) { - _classCallCheck(this, YearPanel); + /** + * Throttle execution of a function. Especially useful for rate limiting + * execution of handlers on events like resize and scroll. + * + * @param {number} delay - A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful. + * @param {boolean} [noTrailing] - Optional, defaults to false. If noTrailing is true, callback will only execute every `delay` milliseconds while the + * throttled-function is being called. If noTrailing is false or unspecified, callback will be executed one final time + * after the last throttled-function call. (After the throttled-function has not been called for `delay` milliseconds, + * the internal counter is reset). + * @param {Function} callback - A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is, + * to `callback` when the throttled-function is executed. + * @param {boolean} [debounceMode] - If `debounceMode` is true (at begin), schedule `clear` to execute after `delay` ms. If `debounceMode` is false (at end), + * schedule `callback` to execute after `delay` ms. + * + * @returns {Function} A new, throttled, function. + */ + function throttle (delay, noTrailing, callback, debounceMode) { + /* + * After wrapper has stopped being called, this timeout ensures that + * `callback` is executed at the proper times in `throttle` and `end` + * debounce modes. + */ + var timeoutID; + var cancelled = false; // Keep track of the last time `callback` was executed. - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); + var lastExec = 0; // Function to clear existing timeout - _this.yearSelect = function (value) { - var _this$props = _this.props, - onSelect = _this$props.onSelect, - format = _this$props.format; + function clearExistingTimeout() { + if (timeoutID) { + clearTimeout(timeoutID); + } + } // Function to cancel next exec - onSelect && onSelect(value, value ? value.format(format) : ''); - }; - _this.onInputChange = function (value) { - var _this$props2 = _this.props, - onChange = _this$props2.onChange, - format = _this$props2.format; + function cancel() { + clearExistingTimeout(); + cancelled = true; + } // `noTrailing` defaults to falsy. - _this.setState({ - value: value ? value : (0, _moment2["default"])() - }); - onChange && onChange(value, value ? value.format(format) : ''); - }; - _this.onClear = function () { - var _this$props3 = _this.props, - onChange = _this$props3.onChange, - format = _this$props3.format, - onClear = _this$props3.onClear; + if (typeof noTrailing !== 'boolean') { + debounceMode = callback; + callback = noTrailing; + noTrailing = undefined; + } + /* + * The `wrapper` function encapsulates all of the throttling / debouncing + * functionality and when executed will limit the rate at which `callback` + * is executed. + */ - _this.setState({ - value: (0, _moment2["default"])() - }); - onChange && onChange('', ''); - onClear && onClear('', ''); - }; - _this.prefixCls = props.rootPrefixCls + '-year-panel'; - _this.state = { - value: props.value || props.defaultValue || (0, _moment2["default"])() - }; - _this.nextDecade = goYear.bind(_this, 10); - _this.previousDecade = goYear.bind(_this, -10); - ['showDecadePanel', 'onDecadePanelSelect'].forEach(function (method) { - _this[method] = _this[method].bind(_this); - }); - return _this; - } + function wrapper() { + for (var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++) { + arguments_[_key] = arguments[_key]; + } - YearPanel.prototype.onDecadePanelSelect = function onDecadePanelSelect(current) { - this.setState({ - value: current, - showDecadePanel: 0 - }); - }; + var self = this; + var elapsed = Date.now() - lastExec; - YearPanel.prototype.years = function years() { - var value = this.state.value; - var currentYear = value.year(); - var startYear = parseInt(currentYear / 10, 10) * 10; - var previousYear = startYear - 1; - var years = []; - var index = 0; - for (var rowIndex = 0; rowIndex < ROW; rowIndex++) { - years[rowIndex] = []; - for (var colIndex = 0; colIndex < COL; colIndex++) { - var year = previousYear + index; - var content = String(year); - years[rowIndex][colIndex] = { - content: content, - year: year, - title: content - }; - index++; - } - } - return years; - }; + if (cancelled) { + return; + } // Execute `callback` and update the `lastExec` timestamp. - YearPanel.prototype.showDecadePanel = function showDecadePanel() { - this.setState({ - showDecadePanel: 1 - }); - }; - YearPanel.prototype.render = function render() { - var _this2 = this; + function exec() { + lastExec = Date.now(); + callback.apply(self, arguments_); + } + /* + * If `debounceMode` is true (at begin) this is used to clear the flag + * to allow future `callback` executions. + */ - var props = this.props; - var value = this.state.value; - var locale = props.locale; - var years = this.years(); - var currentYear = value.year(); - var startYear = parseInt(currentYear / 10, 10) * 10; - var endYear = startYear + 9; - var prefixCls = this.prefixCls; - var yeasEls = years.map(function (row, index) { - var tds = row.map(function (yearData) { - var _classNameMap; + function clear() { + timeoutID = undefined; + } - var classNameMap = (_classNameMap = {}, _defineProperty(_classNameMap, prefixCls + '-cell', 1), _defineProperty(_classNameMap, prefixCls + '-selected-cell', yearData.year === currentYear), _defineProperty(_classNameMap, prefixCls + '-last-decade-cell', yearData.year < startYear), _defineProperty(_classNameMap, prefixCls + '-next-decade-cell', yearData.year > endYear), _classNameMap); - var clickHandler = void 0; - if (yearData.year < startYear) { - clickHandler = _this2.previousDecade; - } else if (yearData.year > endYear) { - clickHandler = _this2.nextDecade; - } else { - clickHandler = chooseYear.bind(_this2, yearData.year); - } - return _react2["default"].createElement( - 'td', - { - role: 'gridcell', - title: yearData.title, - key: yearData.content, - onClick: clickHandler, - className: (0, _classnames2["default"])(classNameMap) - }, - _react2["default"].createElement( - 'a', - { - className: prefixCls + '-year' - }, - yearData.content - ) - ); - }); - return _react2["default"].createElement( - 'tr', - { key: index, role: 'row' }, - tds - ); - }); + if (debounceMode && !timeoutID) { + /* + * Since `wrapper` is being called for the first time and + * `debounceMode` is true (at begin), execute `callback`. + */ + exec(); + } - var decadePanel = void 0; - if (this.state.showDecadePanel) { - decadePanel = _react2["default"].createElement(_DecadePanel2["default"], { - locale: locale, - value: value, - rootPrefixCls: props.rootPrefixCls, - onSelect: this.onDecadePanelSelect - }); - } - var showDateInput = props.showDateInput, - rootPrefixCls = props.rootPrefixCls, - format = props.format, - validatorFunc = props.validatorFunc; + clearExistingTimeout(); + + if (debounceMode === undefined && elapsed > delay) { + /* + * In throttle mode, if `delay` time has been exceeded, execute + * `callback`. + */ + exec(); + } else if (noTrailing !== true) { + /* + * In trailing throttle mode, since `delay` time has not been + * exceeded, schedule `callback` to execute `delay` ms after most + * recent execution. + * + * If `debounceMode` is true (at begin), schedule `clear` to execute + * after `delay` ms. + * + * If `debounceMode` is false (at end), schedule `callback` to + * execute after `delay` ms. + */ + timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay); + } + } - return _react2["default"].createElement( - 'div', - { className: this.prefixCls }, - _react2["default"].createElement( - 'div', - null, - showDateInput ? _react2["default"].createElement(_DateInput2["default"], { - value: value, - prefixCls: this.props.rootPrefixCls, - showClear: true, - locale: locale, - format: format, - onChange: this.onInputChange, - selectedValue: value, - onClear: this.onClear, - onSelect: this.yearSelect, - validatorFunc: validatorFunc - }) : '', - _react2["default"].createElement( - 'div', - { className: prefixCls + '-header' }, - _react2["default"].createElement('a', { - className: prefixCls + '-prev-decade-btn', - role: 'button', - onClick: this.previousDecade, - title: locale.previousDecade - }), - _react2["default"].createElement( - 'a', - { - className: prefixCls + '-decade-select', - role: 'button', - onClick: this.showDecadePanel, - title: locale.decadeSelect - }, - _react2["default"].createElement( - 'span', - { className: prefixCls + '-decade-select-content' }, - startYear, - '-', - endYear - ), - _react2["default"].createElement( - 'span', - { className: prefixCls + '-decade-select-arrow' }, - 'x' - ) - ), - _react2["default"].createElement('a', { - className: prefixCls + '-next-decade-btn', - role: 'button', - onClick: this.nextDecade, - title: locale.nextDecade - }) - ), - _react2["default"].createElement( - 'div', - { className: prefixCls + '-body' }, - _react2["default"].createElement( - 'table', - { className: prefixCls + '-table', cellSpacing: '0', role: 'grid' }, - _react2["default"].createElement( - 'tbody', - { className: prefixCls + '-tbody' }, - yeasEls - ) - ) - ) - ), - decadePanel - ); - }; + wrapper.cancel = cancel; // Return the wrapper function. - return YearPanel; - }(_react2["default"].Component); + return wrapper; + } - exports["default"] = YearPanel; + /* eslint-disable no-undefined */ + /** + * Debounce execution of a function. Debouncing, unlike throttling, + * guarantees that a function is only executed a single time, either at the + * very beginning of a series of calls, or at the very end. + * + * @param {number} delay - A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful. + * @param {boolean} [atBegin] - Optional, defaults to false. If atBegin is false or unspecified, callback will only be executed `delay` milliseconds + * after the last debounced-function call. If atBegin is true, callback will be executed only at the first debounced-function call. + * (After the throttled-function has not been called for `delay` milliseconds, the internal counter is reset). + * @param {Function} callback - A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is, + * to `callback` when the debounced-function is executed. + * + * @returns {Function} A new, debounced function. + */ + function debounce (delay, atBegin, callback) { + return callback === undefined ? throttle(delay, atBegin, false) : throttle(delay, callback, atBegin !== false); + } - YearPanel.propTypes = { - rootPrefixCls: _propTypes2["default"].string, - value: _propTypes2["default"].object, - defaultValue: _propTypes2["default"].object - }; + exports.debounce = debounce; + exports.throttle = throttle; - YearPanel.defaultProps = { - onSelect: function onSelect() {}, + Object.defineProperty(exports, '__esModule', { value: true }); - format: 'YYYY', - showDateInput: false - }; - module.exports = exports['default']; + }))); + //# sourceMappingURL=index.umd.js.map + /***/ }), -/* 547 */ +/* 414 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; Object.defineProperty(exports, "__esModule", { - value: true + value: true }); + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + var _react = __webpack_require__(1); var _react2 = _interopRequireDefault(_react); @@ -78009,342 +54381,492 @@ var _propTypes2 = _interopRequireDefault(_propTypes); - var _classnames = __webpack_require__(5); + var _beeDatepicker = __webpack_require__(415); - var _classnames2 = _interopRequireDefault(_classnames); + var _beeDatepicker2 = _interopRequireDefault(_beeDatepicker); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var _zh_CN = __webpack_require__(586); - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + var _zh_CN2 = _interopRequireDefault(_zh_CN); - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + var _beeFormControl = __webpack_require__(268); - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + var _beeFormControl2 = _interopRequireDefault(_beeFormControl); - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + var _beeSelect = __webpack_require__(594); - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + var _beeSelect2 = _interopRequireDefault(_beeSelect); - var ROW = 4; - var COL = 3; + var _beeInputNumber = __webpack_require__(613); + var _beeInputNumber2 = _interopRequireDefault(_beeInputNumber); - function goYear(direction) { - var next = this.state.value.clone(); - next.add(direction, 'years'); - this.setState({ - value: next - }); - } + var _FilterDropDown = __webpack_require__(617); - function chooseDecade(year, event) { - var next = this.state.value.clone(); - next.year(year); - next.month(this.state.value.month()); - this.props.onSelect(next); - event.preventDefault(); - } + var _FilterDropDown2 = _interopRequireDefault(_FilterDropDown); - var DecadePanel = function (_React$Component) { - _inherits(DecadePanel, _React$Component); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - function DecadePanel(props) { - _classCallCheck(this, DecadePanel); + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - _this.state = { - value: props.value || props.defaultValue - }; + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - // bind methods - _this.prefixCls = props.rootPrefixCls + '-decade-panel'; - _this.nextCentury = goYear.bind(_this, 100); - _this.previousCentury = goYear.bind(_this, -100); - return _this; - } + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - DecadePanel.prototype.render = function render() { - var _this2 = this; + var RangePicker = _beeDatepicker2['default'].RangePicker, + YearPicker = _beeDatepicker2['default'].YearPicker, + MonthPicker = _beeDatepicker2['default'].MonthPicker, + WeekPicker = _beeDatepicker2['default'].WeekPicker; - var value = this.state.value; - var _props = this.props, - locale = _props.locale, - renderFooter = _props.renderFooter; - var currentYear = value.year(); - var startYear = parseInt(currentYear / 100, 10) * 100; - var preYear = startYear - 10; - var endYear = startYear + 99; - var decades = []; - var index = 0; - var prefixCls = this.prefixCls; + var propTypes = { + filterDropdown: _propTypes2['default'].string + }; - for (var rowIndex = 0; rowIndex < ROW; rowIndex++) { - decades[rowIndex] = []; - for (var colIndex = 0; colIndex < COL; colIndex++) { - var startDecade = preYear + index * 10; - var endDecade = preYear + index * 10 + 9; - decades[rowIndex][colIndex] = { - startDecade: startDecade, - endDecade: endDecade + var FilterType = function (_Component) { + _inherits(FilterType, _Component); + + function FilterType(props) { + _classCallCheck(this, FilterType); + + var _this = _possibleConstructorReturn(this, _Component.call(this, props)); + + _this.clearFilter = function () { + var _this$props = _this.props, + onFilterClear = _this$props.onFilterClear, + dataIndex = _this$props.dataIndex; + + if (_this.state.value !== "") { + _this.setState({ + value: "", //清空值 + condition: _this.props.filterDropdownType == 'string' ? 'LIKE' : 'EQ' //切回默认查询条件 + }, function () { + //调用清除方法参数为当前字段的field + onFilterClear && onFilterClear(dataIndex); + }); + } }; - index++; - } - } - var footer = renderFooter && renderFooter('decade'); + _this.changeText = function (val) { + var _this$props2 = _this.props, + onFilterChange = _this$props2.onFilterChange, + dataIndex = _this$props2.dataIndex; - var decadesEls = decades.map(function (row, decadeIndex) { - var tds = row.map(function (decadeData) { - var _classNameMap; + _this.setState({ + value: val + }, function () { + onFilterChange(dataIndex, val, _this.state.condition); + }); + }; - var dStartDecade = decadeData.startDecade; - var dEndDecade = decadeData.endDecade; - var isLast = dStartDecade < startYear; - var isNext = dEndDecade > endYear; - var classNameMap = (_classNameMap = {}, _defineProperty(_classNameMap, prefixCls + '-cell', 1), _defineProperty(_classNameMap, prefixCls + '-selected-cell', dStartDecade <= currentYear && currentYear <= dEndDecade), _defineProperty(_classNameMap, prefixCls + '-last-century-cell', isLast), _defineProperty(_classNameMap, prefixCls + '-next-century-cell', isNext), _classNameMap); - var content = dStartDecade + '-' + dEndDecade; - var clickHandler = void 0; - if (isLast) { - clickHandler = _this2.previousCentury; - } else if (isNext) { - clickHandler = _this2.nextCentury; - } else { - clickHandler = chooseDecade.bind(_this2, dStartDecade); - } - return _react2["default"].createElement( - 'td', - { - key: dStartDecade, - onClick: clickHandler, - role: 'gridcell', - className: (0, _classnames2["default"])(classNameMap) - }, - _react2["default"].createElement( - 'a', - { - className: prefixCls + '-decade' - }, - content - ) - ); - }); - return _react2["default"].createElement( - 'tr', - { key: decadeIndex, role: 'row' }, - tds - ); - }); + _this.changeTextCall = function (e) { + var _this$props3 = _this.props, + onFilterChange = _this$props3.onFilterChange, + dataIndex = _this$props3.dataIndex; - return _react2["default"].createElement( - 'div', - { className: this.prefixCls }, - _react2["default"].createElement( - 'div', - { className: prefixCls + '-header' }, - _react2["default"].createElement('a', { - className: prefixCls + '-prev-century-btn', - role: 'button', - onClick: this.previousCentury, - title: locale.previousCentury - }), - _react2["default"].createElement( - 'div', - { className: prefixCls + '-century' }, - startYear, - '-', - endYear - ), - _react2["default"].createElement('a', { - className: prefixCls + '-next-century-btn', - role: 'button', - onClick: this.nextCentury, - title: locale.nextCentury - }) - ), - _react2["default"].createElement( - 'div', - { className: prefixCls + '-body' }, - _react2["default"].createElement( - 'table', - { className: prefixCls + '-table', cellSpacing: '0', role: 'grid' }, - _react2["default"].createElement( - 'tbody', - { className: prefixCls + '-tbody' }, - decadesEls - ) - ) - ), - footer && _react2["default"].createElement( - 'div', - { className: prefixCls + '-footer' }, - footer - ) - ); - }; + if (e.keyCode == 13) { + e.target.value !== "" && onFilterChange(dataIndex, e.target.value, _this.state.condition); + } + }; - return DecadePanel; - }(_react2["default"].Component); + _this.changeValue = function () { + _this.setState({ + value: "" + }); + }; - exports["default"] = DecadePanel; + _this.onSelectDropdown = function (item) { + var _this$props4 = _this.props, + onFilterChange = _this$props4.onFilterChange, + dataIndex = _this$props4.dataIndex; + _this.setState({ + condition: item.key + }, function () { + _this.state.value !== "" && onFilterChange && onFilterChange(dataIndex, _this.state.value, _this.state.condition); + }); + }; - DecadePanel.propTypes = { - locale: _propTypes2["default"].object, - value: _propTypes2["default"].object, - defaultValue: _propTypes2["default"].object, - rootPrefixCls: _propTypes2["default"].string, - renderFooter: _propTypes2["default"].func - }; + _this.changeNumber = function (value) { + var _this$props5 = _this.props, + onFilterChange = _this$props5.onFilterChange, + dataIndex = _this$props5.dataIndex; - DecadePanel.defaultProps = { - onSelect: function onSelect() {} - }; - module.exports = exports['default']; - -/***/ }), -/* 548 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; + _this.setState({ + value: value + }, function () { + onFilterChange(dataIndex, value, _this.state.condition); + }); + }; - Object.defineProperty(exports, "__esModule", { - value: true - }); + _this.clearNumber = function () { + var onChange = _this.props.onChange; - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + onChange && onChange(""); + _this.setState({ + value: "" + }); + }; - var _react = __webpack_require__(1); + _this.changeTextCallBlur = function (val) { + var onChange = _this.props.onChange; - var _react2 = _interopRequireDefault(_react); + onChange && onChange(val); + }; - var _reactDom = __webpack_require__(2); + _this.changeSelect = function (value) { + var _this$props6 = _this.props, + onFilterChange = _this$props6.onFilterChange, + dataIndex = _this$props6.dataIndex; - var _reactDom2 = _interopRequireDefault(_reactDom); + if (onFilterChange) { + onFilterChange(dataIndex, value, _this.state.condition); + _this.setState({ + value: value + }); + } + }; - var _propTypes = __webpack_require__(6); + _this.clearSelectValue = function () { + _this.setState({ + selectValue: "" + }, function () { + _this.changeSelect(""); + }); + }; - var _propTypes2 = _interopRequireDefault(_propTypes); + _this.clearDateValue = function () { + _this.setState({ + dateValue: "" + }, function () { + _this.changeDate(""); + }); + }; - var _mapSelf = __webpack_require__(542); + _this.changeDate = function (value) { + var _this$props7 = _this.props, + onFilterChange = _this$props7.onFilterChange, + dataIndex = _this$props7.dataIndex; - var _mapSelf2 = _interopRequireDefault(_mapSelf); + if (onFilterChange) { + onFilterChange(dataIndex, value, _this.state.condition); + _this.setState({ + value: value, + open: false + }); + } + }; - var _classnames = __webpack_require__(5); + _this.renderControl = function (rendertype) { + var _this$props8 = _this.props, + filterInputNumberOptions = _this$props8.filterInputNumberOptions, + filterDropdownIncludeKeys = _this$props8.filterDropdownIncludeKeys, + dataIndex = _this$props8.dataIndex, + filterDropdown = _this$props8.filterDropdown, + filterDropdownType = _this$props8.filterDropdownType, + format = _this$props8.format, + className = _this$props8.className, + onChange = _this$props8.onChange, + onSelectDropdown = _this$props8.onSelectDropdown, + clsPrefix = _this$props8.clsPrefix, + locale = _this$props8.locale; + + switch (rendertype) { + case 'text': + return _react2['default'].createElement( + 'div', + { className: clsPrefix + ' filter-wrap' }, + _react2['default'].createElement(_beeFormControl2['default'], { + value: _this.state.value, + className: className, + onChange: _this.changeText, + onKeyDown: _this.changeTextCall + //onBlur={this.changeTextCallBlur} + }), + _react2['default'].createElement(_FilterDropDown2['default'], { + locale: locale, + dataIndex: dataIndex, + dataText: _this.state.value, + onSelectDropdown: _this.onSelectDropdown, + onClickClear: _this.clearFilter, + isShowClear: _this.state.value, + isShowCondition: filterDropdown, + filterDropdownType: filterDropdownType, + filterDropdownIncludeKeys: filterDropdownIncludeKeys + }) + ); + case 'number': + return _react2['default'].createElement( + 'div', + { className: clsPrefix + ' filter-wrap' }, + _react2['default'].createElement(_beeInputNumber2['default'], _extends({}, filterInputNumberOptions, { + className: className, + value: _this.state.value, + onChange: _this.changeNumber, + iconStyle: 'one' + })), + _react2['default'].createElement(_FilterDropDown2['default'], { + locale: locale, + dataIndex: dataIndex, + dataText: _this.state.value, + onSelectDropdown: _this.onSelectDropdown, + onClickClear: _this.clearFilter, + isShowClear: _this.state.value != 0, + isShowCondition: filterDropdown, + filterDropdownType: filterDropdownType, + filterDropdownIncludeKeys: filterDropdownIncludeKeys + }) + ); + case 'dropdown': + return _react2['default'].createElement( + 'div', + { className: clsPrefix + ' filter-wrap' }, + _react2['default'].createElement(_beeSelect2['default'], _extends({}, _this.props, { + size: 'sm', + value: _this.state.value, + onChange: _this.changeSelect + })), + _react2['default'].createElement(_FilterDropDown2['default'], { + locale: locale, + dataIndex: dataIndex, + dataText: _this.state.value, + onSelectDropdown: _this.onSelectDropdown, + onClickClear: _this.clearFilter, + isShowCondition: filterDropdown, + isShowClear: _this.state.value, + filterDropdownType: filterDropdownType, + filterDropdownIncludeKeys: filterDropdownIncludeKeys + }) + ); + case 'date': + return _react2['default'].createElement( + 'div', + { className: clsPrefix + ' filter-wrap' }, + _react2['default'].createElement(_beeDatepicker2['default'], _extends({}, _this.props, { + value: _this.state.value, + onChange: _this.changeDate, + open: _this.state.open, + format: format, + locale: _zh_CN2['default'] + })), + _react2['default'].createElement(_FilterDropDown2['default'], { + locale: locale, + dataIndex: dataIndex, + dataText: _this.state.value, + onSelectDropdown: _this.onSelectDropdown, + onClickClear: _this.clearFilter, + isShowCondition: filterDropdown, + isShowClear: _this.state.value, + filterDropdownType: filterDropdownType, + filterDropdownIncludeKeys: filterDropdownIncludeKeys + }) + ); + case 'dateyear': + return _react2['default'].createElement( + 'div', + { className: clsPrefix + ' filter-wrap' }, + _react2['default'].createElement(YearPicker, _extends({}, _this.props, { + value: _this.state.value, + onChange: _this.changeDate, + open: _this.state.open, + format: format, + locale: _zh_CN2['default'] + })), + _react2['default'].createElement(_FilterDropDown2['default'], { + locale: locale, + dataIndex: dataIndex, + dataText: _this.state.value, + onSelectDropdown: _this.onSelectDropdown, + onClickClear: _this.clearFilter, + isShowCondition: filterDropdown, + isShowClear: _this.state.value, + filterDropdownType: filterDropdownType, + filterDropdownIncludeKeys: filterDropdownIncludeKeys + }) + ); + case 'datemonth': + return _react2['default'].createElement( + 'div', + { className: clsPrefix + ' filter-wrap' }, + _react2['default'].createElement(MonthPicker, _extends({}, _this.props, { + value: _this.state.value, + onChange: _this.changeDate, + open: _this.state.open, + format: format, + locale: _zh_CN2['default'] + })), + _react2['default'].createElement(_FilterDropDown2['default'], { + locale: locale, + dataIndex: dataIndex, + dataText: _this.state.value, + onSelectDropdown: _this.onSelectDropdown, + onClickClear: _this.clearFilter, + isShowCondition: filterDropdown, + isShowClear: _this.state.value, + filterDropdownType: filterDropdownType, + filterDropdownIncludeKeys: filterDropdownIncludeKeys + }) + ); + case 'dateweek': + return _react2['default'].createElement( + 'div', + { className: clsPrefix + ' filter-wrap' }, + _react2['default'].createElement(WeekPicker, _extends({}, _this.props, { + value: _this.state.value, + onChange: _this.changeDate, + open: _this.state.open, + format: format, + locale: _zh_CN2['default'] + })), + _react2['default'].createElement(_FilterDropDown2['default'], { + locale: locale, + dataIndex: dataIndex, + dataText: _this.state.value, + onSelectDropdown: _this.onSelectDropdown, + onClickClear: _this.clearFilter, + isShowCondition: filterDropdown, + isShowClear: _this.state.value, + filterDropdownType: filterDropdownType, + filterDropdownIncludeKeys: filterDropdownIncludeKeys + }) + ); + case 'daterange': + return _react2['default'].createElement( + 'div', + { className: clsPrefix + ' filter-wrap' }, + _react2['default'].createElement(RangePicker, _extends({}, _this.props, { + value: _this.state.value, + onChange: _this.changeDate, + open: _this.state.open, + format: format, + showTime: true, + locale: _zh_CN2['default'], + placeholder: '开始 ~ 结束', + dateInputPlaceholder: ['开始', '结束'], + showClear: true + })), + _react2['default'].createElement(_FilterDropDown2['default'], { + locale: locale, + dataIndex: dataIndex, + dataText: _this.state.value, + onSelectDropdown: _this.onSelectDropdown, + onClickClear: _this.clearFilter, + isShowCondition: filterDropdown, + isShowClear: _this.state.value, + filterDropdownIncludeKeys: filterDropdownIncludeKeys + }) + ); + case 'bool': + return _react2['default'].createElement( + 'div', + { className: clsPrefix + ' filter-wrap' }, + _react2['default'].createElement(Switch, { + className: className, + onChange: onChange + }), + _react2['default'].createElement(_FilterDropDown2['default'], { locale: locale, + onSelectDropdown: onSelectDropdown, + filterDropdownIncludeKeys: filterDropdownIncludeKeys + }) + ); + default: + return _react2['default'].createElement('div', null); + } + }; - var _classnames2 = _interopRequireDefault(_classnames); + _this.state = { + value: "", + text: "", + selectValue: "", + dateValue: "", + open: false, + condition: props.filterDropdownType == 'string' ? 'LIKE' : 'EQ', + number: 0 + }; + return _this; + } - var _TodayButton = __webpack_require__(549); + /** + * 清除过滤条件 + * + */ - var _TodayButton2 = _interopRequireDefault(_TodayButton); - var _OkButton = __webpack_require__(550); + /** + * 设置输入文本的值 + * + */ - var _OkButton2 = _interopRequireDefault(_OkButton); - var _TimePickerButton = __webpack_require__(551); + /** + * 输入框回车执行回调 + * + */ - var _TimePickerButton2 = _interopRequireDefault(_TimePickerButton); + /** + * 更改修改值 + * + */ - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + /** + * 下拉条件的回调 + * + * @param {*} key 字段 + * @param {*} value 值1,2,3...6 + */ - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + /** + * 修改数值型的值 + * + */ - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + //清除数值 - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + //失去焦点后执行函数 - var CalendarFooter = function (_React$Component) { - _inherits(CalendarFooter, _React$Component); + //设置下拉值 - function CalendarFooter() { - _classCallCheck(this, CalendarFooter); + //清除下拉值 - return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); - } + //清除日期值 - CalendarFooter.prototype.onSelect = function onSelect(value) { - this.props.onSelect(value); - }; + //设置日期值 - CalendarFooter.prototype.getRootDOMNode = function getRootDOMNode() { - return _reactDom2["default"].findDOMNode(this); - }; + //组件渲染 + /** + * 根据不同的类型生成对应的组件类型包含一些参数的适应 + * + * @param {*} rendertype 参数类型,包括['text','dropdown','date','dateyear','datemonth','dateweek',daterange','number'] + * @returns + */ - CalendarFooter.prototype.render = function render() { - var props = this.props; - var value = props.value, - prefixCls = props.prefixCls, - showOk = props.showOk, - timePicker = props.timePicker, - renderFooter = props.renderFooter, - mode = props.mode; - var footerEl = null; - var extraFooter = renderFooter && renderFooter(mode); - if (props.showToday || timePicker || extraFooter) { - var nowEl = void 0; - if (props.showToday) { - nowEl = _react2["default"].createElement(_TodayButton2["default"], _extends({}, props, { value: value })); - } - var okBtn = void 0; - if (showOk === true || showOk !== false && !!props.timePicker) { - okBtn = _react2["default"].createElement(_OkButton2["default"], props); - } - var timePickerBtn = void 0; - if (!!props.timePicker) { - timePickerBtn = _react2["default"].createElement(_TimePickerButton2["default"], props); - } + FilterType.prototype.render = function render() { + var rendertype = this.props.rendertype; - var footerBtn = void 0; - if (nowEl || timePickerBtn || okBtn || extraFooter) { - footerBtn = _react2["default"].createElement( - 'span', - { className: prefixCls + '-footer-btn' }, - extraFooter ? _react2["default"].createElement( + return _react2['default'].createElement( 'div', - { className: prefixCls + '-footer-extra' }, - extraFooter - ) : null, - (0, _mapSelf2["default"])([nowEl, timePickerBtn, okBtn]) + { 'data-filter-type': 'filterContext' }, + this.renderControl(rendertype) ); - } - var cls = (0, _classnames2["default"])(prefixCls + '-footer', _defineProperty({}, prefixCls + '-footer-show-ok', okBtn)); - footerEl = _react2["default"].createElement( - 'div', - { className: cls }, - footerBtn - ); - } - return footerEl; - }; + }; - return CalendarFooter; - }(_react2["default"].Component); + return FilterType; + }(_react.Component); - CalendarFooter.propTypes = { - prefixCls: _propTypes2["default"].string, - showDateInput: _propTypes2["default"].bool, - disabledTime: _propTypes2["default"].any, - timePicker: _propTypes2["default"].element, - selectedValue: _propTypes2["default"].any, - showOk: _propTypes2["default"].bool, - onSelect: _propTypes2["default"].func, - value: _propTypes2["default"].object, - renderFooter: _propTypes2["default"].func, - defaultValue: _propTypes2["default"].object, - mode: _propTypes2["default"].string + FilterType.propTypes = propTypes; + FilterType.defaultProps = { + filterDropdown: 'show' }; - exports["default"] = CalendarFooter; + exports['default'] = FilterType; module.exports = exports['default']; /***/ }), -/* 549 */ +/* 415 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -78352,2029 +54874,1677 @@ Object.defineProperty(exports, "__esModule", { value: true }); - exports["default"] = TodayButton; var _react = __webpack_require__(1); var _react2 = _interopRequireDefault(_react); - var _util = __webpack_require__(540); + var _DatePicker = __webpack_require__(416); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var _DatePicker2 = _interopRequireDefault(_DatePicker); - function TodayButton(_ref) { - var prefixCls = _ref.prefixCls, - locale = _ref.locale, - value = _ref.value, - timePicker = _ref.timePicker, - disabled = _ref.disabled, - disabledDate = _ref.disabledDate, - onToday = _ref.onToday, - text = _ref.text; + var _MonthPicker = __webpack_require__(587); - var localeNow = (!text && timePicker ? locale.now : text) || locale.today; - var disabledToday = disabledDate && !(0, _util.isAllowedDate)((0, _util.getTodayTime)(value), disabledDate); - var isDisabled = disabledToday || disabled; - var disabledTodayClass = isDisabled ? prefixCls + '-today-btn-disabled' : ''; - return _react2["default"].createElement( - 'a', - { - className: prefixCls + '-today-btn ' + disabledTodayClass, - role: 'button', - onClick: isDisabled ? null : onToday, - title: (0, _util.getTodayTimeStr)(value) - }, - localeNow - ); - } - module.exports = exports['default']; - -/***/ }), -/* 550 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; + var _MonthPicker2 = _interopRequireDefault(_MonthPicker); - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports["default"] = OkButton; + var _RangePicker = __webpack_require__(589); - var _react = __webpack_require__(1); + var _RangePicker2 = _interopRequireDefault(_RangePicker); - var _react2 = _interopRequireDefault(_react); + var _WeekPicker = __webpack_require__(592); - var _beeButton = __webpack_require__(265); + var _WeekPicker2 = _interopRequireDefault(_WeekPicker); - var _beeButton2 = _interopRequireDefault(_beeButton); + var _YearPicker = __webpack_require__(593); + + var _YearPicker2 = _interopRequireDefault(_YearPicker); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - function OkButton(_ref) { - var prefixCls = _ref.prefixCls, - locale = _ref.locale, - okDisabled = _ref.okDisabled, - onOk = _ref.onOk; + _DatePicker2["default"].MonthPicker = _MonthPicker2["default"]; + _DatePicker2["default"].RangePicker = _RangePicker2["default"]; + _DatePicker2["default"].WeekPicker = _WeekPicker2["default"]; + _DatePicker2["default"].YearPicker = _YearPicker2["default"]; - var className = prefixCls + '-btn-ok'; - // if (okDisabled) { - // className += ` ${prefixCls}-ok-btn-disabled`; - // } - return _react2["default"].createElement( - _beeButton2["default"], - { - className: className, - size: 'sm', colors: 'primary', - disabled: !!okDisabled, - onClick: okDisabled ? null : onOk - }, - locale.ok - ); - } + exports["default"] = _DatePicker2["default"]; module.exports = exports['default']; /***/ }), -/* 551 */ +/* 416 */ /***/ (function(module, exports, __webpack_require__) { - 'use strict'; + "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports["default"] = TimePickerButton; - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _classnames2 = __webpack_require__(5); - - var _classnames3 = _interopRequireDefault(_classnames2); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function TimePickerButton(_ref) { - var _classnames; - var prefixCls = _ref.prefixCls, - locale = _ref.locale, - showTimePicker = _ref.showTimePicker, - onOpenTimePicker = _ref.onOpenTimePicker, - onCloseTimePicker = _ref.onCloseTimePicker, - timePickerDisabled = _ref.timePickerDisabled; + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var className = (0, _classnames3["default"])((_classnames = {}, _defineProperty(_classnames, prefixCls + '-time-picker-btn', true), _defineProperty(_classnames, prefixCls + '-time-picker-btn-disabled', timePickerDisabled), _classnames)); - var onClick = null; - if (!timePickerDisabled) { - onClick = showTimePicker ? onCloseTimePicker : onOpenTimePicker; - } - return _react2["default"].createElement( - 'a', - { - className: className, - role: 'button', - onClick: onClick - }, - showTimePicker ? locale.dateSelect : locale.timeSelect - ); - } - module.exports = exports['default']; - -/***/ }), -/* 552 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; + var _rcCalendar = __webpack_require__(417); - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.calendarMixinWrapper = exports.calendarMixinDefaultProps = exports.calendarMixinPropTypes = undefined; - exports.getNowByCurrentStateValue = getNowByCurrentStateValue; + var _rcCalendar2 = _interopRequireDefault(_rcCalendar); var _react = __webpack_require__(1); var _react2 = _interopRequireDefault(_react); - var _propTypes = __webpack_require__(6); - - var _propTypes2 = _interopRequireDefault(_propTypes); - - var _classnames = __webpack_require__(5); - - var _classnames2 = _interopRequireDefault(_classnames); - - var _moment = __webpack_require__(404); - - var _moment2 = _interopRequireDefault(_moment); - - var _index = __webpack_require__(540); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - - function noop() {} - - function getNowByCurrentStateValue(value) { - var ret = void 0; - if (value) { - ret = (0, _index.getTodayTime)(value); - } else { - ret = (0, _moment2["default"])(); - } - return ret; - } - - var calendarMixinPropTypes = exports.calendarMixinPropTypes = { - value: _propTypes2["default"].object, - defaultValue: _propTypes2["default"].object, - onKeyDown: _propTypes2["default"].func - }; - - var calendarMixinDefaultProps = exports.calendarMixinDefaultProps = { - onKeyDown: noop - }; + var _reactDom = __webpack_require__(2); - var calendarMixinWrapper = exports.calendarMixinWrapper = function calendarMixinWrapper(ComposeComponent) { - var _class, _temp2; + var _reactDom2 = _interopRequireDefault(_reactDom); - return _temp2 = _class = function (_ComposeComponent) { - _inherits(_class, _ComposeComponent); + var _tinperBeeCore = __webpack_require__(27); - function _class() { - var _temp, _this, _ret; + var _Picker = __webpack_require__(575); - _classCallCheck(this, _class); + var _Picker2 = _interopRequireDefault(_Picker); - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } + var _beeFormControl = __webpack_require__(268); - return _ret = (_temp = (_this = _possibleConstructorReturn(this, _ComposeComponent.call.apply(_ComposeComponent, [this].concat(args))), _this), _this.onSelect = function (value, cause) { - if (value) { - _this.setValue(value); - } - _this.setSelectedValue(value, cause); - }, _this.renderRoot = function (newProps) { - var _className; + var _beeFormControl2 = _interopRequireDefault(_beeFormControl); - var props = _this.props; - var prefixCls = props.prefixCls; + var _Panel = __webpack_require__(577); - var className = (_className = {}, _defineProperty(_className, prefixCls, 1), _defineProperty(_className, prefixCls + '-hidden', !props.visible), _defineProperty(_className, props.className, !!props.className), _defineProperty(_className, newProps.className, !!newProps.className), _className); + var _Panel2 = _interopRequireDefault(_Panel); - return _react2["default"].createElement( - 'div', - { - ref: _this.saveRoot, - className: '' + (0, _classnames2["default"])(className), - style: _this.props.style, - tabIndex: '0', - onKeyDown: _this.onKeyDown - }, - newProps.children - ); - }, _this.setSelectedValue = function (selectedValue, cause) { - // if (this.isAllowedDate(selectedValue)) { - if (!('selectedValue' in _this.props)) { - _this.setState({ - selectedValue: selectedValue - }); - } - if (_this.props.onSelect) { - _this.props.onSelect(selectedValue, cause); - } - // } - }, _this.setValue = function (value) { - var originalValue = _this.state.value; - if (!('value' in _this.props)) { - _this.setState({ - value: value - }); - } - if (originalValue && value && !originalValue.isSame(value) || !originalValue && value || originalValue && !value) { - _this.props.onChange(value); - } - }, _this.isAllowedDate = function (value) { - var disabledDate = _this.props.disabledDate; - var disabledTime = _this.props.disabledTime; - return (0, _index.isAllowedDate)(value, disabledDate, disabledTime); - }, _temp), _possibleConstructorReturn(_this, _ret); - } + var _moment = __webpack_require__(423); - _class.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, prevState) { - // Use origin function if provided - if (ComposeComponent.getDerivedStateFromProps) { - return ComposeComponent.getDerivedStateFromProps(nextProps, prevState); - } + var _moment2 = _interopRequireDefault(_moment); - var value = nextProps.value, - selectedValue = nextProps.selectedValue; + var _beeIcon = __webpack_require__(67); - var newState = {}; + var _beeIcon2 = _interopRequireDefault(_beeIcon); - if ('value' in nextProps) { - newState.value = value || nextProps.defaultValue || getNowByCurrentStateValue(prevState.value); - } - if ('selectedValue' in nextProps) { - newState.selectedValue = selectedValue; - } + var _classnames = __webpack_require__(5); - return newState; - }; + var _classnames2 = _interopRequireDefault(_classnames); - return _class; - }(ComposeComponent), _class.displayName = 'CalendarMixinWrapper', _class.defaultProps = ComposeComponent.defaultProps, _temp2; - }; - -/***/ }), -/* 553 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; + var _beeInputGroup = __webpack_require__(581); - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.commonMixinWrapper = exports.defaultProp = exports.propType = undefined; + var _beeInputGroup2 = _interopRequireDefault(_beeInputGroup); - var _propTypes = __webpack_require__(6); + var _zh_CN = __webpack_require__(586); - var _propTypes2 = _interopRequireDefault(_propTypes); + var _zh_CN2 = _interopRequireDefault(_zh_CN); - var _en_US = __webpack_require__(554); + var _omit = __webpack_require__(288); - var _en_US2 = _interopRequireDefault(_en_US); + var _omit2 = _interopRequireDefault(_omit); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** + * Created by chief on 17/4/6. + */ function noop() {} + var timerDatePicker = true; - var propType = exports.propType = { - className: _propTypes2["default"].string, - locale: _propTypes2["default"].object, - style: _propTypes2["default"].object, - visible: _propTypes2["default"].bool, - onSelect: _propTypes2["default"].func, - prefixCls: _propTypes2["default"].string, - onChange: _propTypes2["default"].func, - onOk: _propTypes2["default"].func - }; - - var defaultProp = exports.defaultProp = { - locale: _en_US2["default"], - style: {}, - visible: true, - prefixCls: 'rc-calendar', - className: '', - onSelect: noop, - onChange: noop, - onClear: noop, - renderFooter: function renderFooter() { - return null; - }, - renderSidebar: function renderSidebar() { - return null; - } - }; - - var commonMixinWrapper = exports.commonMixinWrapper = function commonMixinWrapper(ComposeComponent) { - var _class, _temp2; - - return _temp2 = _class = function (_ComposeComponent) { - _inherits(_class, _ComposeComponent); - - function _class() { - var _temp, _this, _ret; - - _classCallCheck(this, _class); + var DatePicker = function (_Component) { + _inherits(DatePicker, _Component); - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } + function DatePicker(props, context) { + _classCallCheck(this, DatePicker); - return _ret = (_temp = (_this = _possibleConstructorReturn(this, _ComposeComponent.call.apply(_ComposeComponent, [this].concat(args))), _this), _this.getFormat = function () { - var format = _this.props.format; - var _this$props = _this.props, - locale = _this$props.locale, - timePicker = _this$props.timePicker; + var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); - if (!format) { - if (timePicker) { - format = locale.dateTimeFormat; - } else { - format = locale.dateFormat; - } - } - return format; - }, _this.focus = function () { - if (_this.focusElement) { - _this.focusElement.focus(); - } else if (_this.rootInstance) { - _this.rootInstance.focus(); - } - }, _this.saveFocusElement = function (focusElement) { - _this.focusElement = focusElement; - }, _this.saveRoot = function (root) { - _this.rootInstance = root; - }, _temp), _possibleConstructorReturn(_this, _ret); - } + _initialiseProps.call(_this); - _class.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) { - return this.props.visible || nextProps.visible; + _this.state = { + type: "month", + value: _this.initValue(props), + open: props.open || false, + inputValue: _this.initValue(props), + showClose: false }; + _this.fileChange = true; - return _class; - }(ComposeComponent), _class.displayName = 'CommonMixinWrapper', _class.defaultProps = ComposeComponent.defaultProps, _class.getDerivedStateFromProps = ComposeComponent.getDerivedStateFromProps, _temp2; - }; - -/***/ }), -/* 554 */ -/***/ (function(module, exports) { - - 'use strict'; - - exports.__esModule = true; - exports['default'] = { - today: 'Today', - now: 'Now', - backToToday: 'Back to today', - ok: 'Ok', - clear: 'Clear', - month: 'Month', - year: 'Year', - timeSelect: 'select time', - dateSelect: 'select date', - weekSelect: 'Choose a week', - monthSelect: 'Choose a month', - yearSelect: 'Choose a year', - decadeSelect: 'Choose a decade', - yearFormat: 'YYYY', - dateFormat: 'M/D/YYYY', - dayFormat: 'D', - dateTimeFormat: 'M/D/YYYY HH:mm:ss', - monthBeforeYear: true, - previousMonth: 'Previous month (PageUp)', - nextMonth: 'Next month (PageDown)', - previousYear: 'Last year (Control + left)', - nextYear: 'Next year (Control + right)', - previousDecade: 'Last decade', - nextDecade: 'Next decade', - previousCentury: 'Last century', - nextCentury: 'Next century' - }; - module.exports = exports['default']; - -/***/ }), -/* 555 */ -/***/ (function(module, exports) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.goStartMonth = goStartMonth; - exports.goEndMonth = goEndMonth; - exports.goTime = goTime; - exports.includesTime = includesTime; - function goStartMonth(time) { - return time.clone().startOf('month'); - } - - function goEndMonth(time) { - return time.clone().endOf('month'); - } - - function goTime(time, direction, unit) { - return time.clone().add(direction, unit); - } - - function includesTime() { - var timeList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; - var time = arguments[1]; - var unit = arguments[2]; - - return timeList.some(function (t) { - return t.isSame(time, unit); - }); - } - -/***/ }), -/* 556 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _reactDom = __webpack_require__(2); - - var _reactDom2 = _interopRequireDefault(_reactDom); - - var _propTypes = __webpack_require__(6); - - var _propTypes2 = _interopRequireDefault(_propTypes); - - var _reactLifecyclesCompat = __webpack_require__(81); - - var _createChainedFunction = __webpack_require__(310); - - var _createChainedFunction2 = _interopRequireDefault(_createChainedFunction); - - var _KeyCode = __webpack_require__(400); - - var _KeyCode2 = _interopRequireDefault(_KeyCode); - - var _placements = __webpack_require__(557); + return _this; + } - var _placements2 = _interopRequireDefault(_placements); + DatePicker.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { + if ("value" in nextProps) { + this.setState({ + value: this.initValue(nextProps), + inputValue: nextProps.value && this.getValue(nextProps.value) || '' + }); + } + if ("open" in nextProps) { + this.setState({ + open: nextProps.open + }); + } + if ("renderIcon" in nextProps) { + this.setState({ + renderIcon: nextProps.renderIcon + }); + } + }; + //日期面板中输入框的失焦事件 - var _rcTrigger = __webpack_require__(315); + //fix:更改系统时区后,日期框需要触发 onChange 事件 - var _rcTrigger2 = _interopRequireDefault(_rcTrigger); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + DatePicker.prototype.render = function render() { + var _this2 = this; - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + var state = this.state; + var props = this.props; - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + var showClose = props.showClose, + defaultPanelShown = props.defaultPanelShown, + onBlur = props.onBlur, + showHour = props.showHour, + showMinute = props.showMinute, + showSecond = props.showSecond, + autoTriggerChange = props.autoTriggerChange, + others = _objectWithoutProperties(props, ["showClose", "defaultPanelShown", "onBlur", "showHour", "showMinute", "showSecond", "autoTriggerChange"]); - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + var value = state.value; + var pickerChangeHandler = {}; + var calendarHandler = {}; + var autofocus = this.props.autofocus ? { autofocus: 'autofocus' } : null; - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + if (props.showTime) { + calendarHandler = { + // fix https://github.com/ant-design/ant-design/issues/1902 + onSelect: this.handleChange + }; + } else { + pickerChangeHandler = { + onChange: this.handleChange + }; + } - function noop() {} + var splitNumber = '3'; + if (!showHour) splitNumber -= 1; + if (!showMinute) splitNumber -= 1; + if (!showSecond) splitNumber -= 1; - function refFn(field, component) { - this[field] = component; - } + var calendarProps = {}; + if (autoTriggerChange) { + calendarProps.value = value; + calendarProps.onChange = this.handleCalendarChange; + } else { + calendarProps.onChange = noop; + } - var Picker = function (_React$Component) { - _inherits(Picker, _React$Component); + var calendar = _react2["default"].createElement(_rcCalendar2["default"], _extends({ + timePicker: props.showTime ? _react2["default"].createElement(_Panel2["default"], { + className: 'time-split-' + splitNumber, + showHour: showHour, showMinute: showMinute, showSecond: showSecond, + defaultValue: (0, _moment2["default"])((0, _moment2["default"])().format("HH:mm:ss"), "HH:mm:ss") }) : null + }, (0, _omit2["default"])(props, ['value']), calendarProps, { + onSelect: this.handleSelect, + onInputBlur: this.onDateInputBlur + })); - function Picker(props) { - _classCallCheck(this, Picker); + var keyboardInputProps = {}; + if (props.keyboardInput) { + keyboardInputProps.readOnly = false; + keyboardInputProps.onChange = this.inputChange; + keyboardInputProps.value = state.inputValue && state.inputValue.format && state.inputValue.isValid() && this.props.validatorFunc(state.inputValue) ? state.inputValue.format(props.format) : state.inputValue; + } else { + keyboardInputProps.readOnly = true; + keyboardInputProps.value = value && this.getValue(value) || ""; + } + var classes = (0, _classnames2["default"])(props.className, "datepicker-container"); + return _react2["default"].createElement( + "div", + _extends({ className: classes, onMouseEnter: this.onDateHover + }, (0, _omit2["default"])(others, ['onDateInputBlur', 'getCalendarContainer', 'showToday', 'renderFooter', 'keyboardInput', 'showDateInput', 'showTime', 'closeIcon', 'renderIcon', 'focusOnOpen', 'defultSelect', 'onOpenChange', 'locale', 'showMonthInput', 'onKeyDown', 'renderError', 'format', 'placeholder', 'disabledTime', 'onChange', 'disabledDate', 'iconClick', 'outInputKeydown'])), + _react2["default"].createElement( + _Picker2["default"], + _extends({ + animation: "slide-up" + }, props, pickerChangeHandler, { + onOpenChange: this.onOpenChange, + calendar: calendar, + mode: 'year', + open: 'defaultPanelShown' in props ? defaultPanelShown : this.state.open, + value: state.value + }), + function () { + return _react2["default"].createElement( + _beeInputGroup2["default"], + { simple: true, className: "datepicker-input-group", + onMouseEnter: _this2.onMouseEnter, + onMouseLeave: _this2.onMouseLeave + }, + _react2["default"].createElement(_beeFormControl2["default"], _extends({ + ref: function ref(_ref) { + return _this2.outInput = _ref; + }, + disabled: props.disabled, + placeholder: _this2.props.placeholder, + onClick: function onClick(event) { + _this2.onClick(event); + }, + focusSelect: props.defaultSelected, + onFocus: function onFocus(v, e) { + _this2.outInputFocus(e); + }, + onKeyDown: _this2.outInputKeydown + // value={(value && value.format(props.format)) || ""} + }, keyboardInputProps, autofocus)), + showClose && _this2.state.value && _this2.state.showClose && !props.disabled ? _react2["default"].createElement( + _beeInputGroup2["default"].Button, + { shape: "border", + onClick: _this2.clear }, + props.closeIcon() + ) : _react2["default"].createElement( + _beeInputGroup2["default"].Button, + { shape: "border", + onClick: function onClick(e) { + props.keyboardInput ? _this2.iconClick(e) : ''; + } }, + props.renderIcon() + ) + ); + } + ) + ); + }; - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); + return DatePicker; + }(_react.Component); - _initialiseProps.call(_this); + var _initialiseProps = function _initialiseProps() { + var _this3 = this; - var open = void 0; - if ('open' in props) { - open = props.open; - } else { - open = props.defaultOpen; - } + this.initValue = function (props) { var value = props.value || props.defaultValue; - _this.saveCalendarRef = refFn.bind(_this, 'calendarInstance'); + if (value) { + if (typeof value == 'string') { + if ((0, _moment2["default"])(value).isValid()) { + value = (0, _moment2["default"])(value); + } else { + console.error('value is not in the correct format'); + value = ''; + } + } else if (value.format && value.isValid()) { + value = value; + } else { + console.error('value is not in the correct format'); + value = ''; + } + } + return value; + }; - _this.state = { - open: open, - value: value - }; - return _this; - } + this.getValue = function (value) { + var format = _this3.props.format; - Picker.prototype.componentDidUpdate = function componentDidUpdate(_, prevState) { - if (!prevState.open && this.state.open) { - // setTimeout is for making sure saveCalendarRef happen before focusCalendar - this.focusTimeout = setTimeout(this.focusCalendar, 0, this); + if (value.format) { + if (typeof format == 'string') { + return value.format(format); + } else { + return value.format(format[0]); + } } + return value; }; - Picker.prototype.componentWillUnmount = function componentWillUnmount() { - clearTimeout(this.focusTimeout); + this.onChange = function (value) { + _this3.setState({ value: value }); }; - Picker.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps) { - var newState = {}; - var value = nextProps.value, - open = nextProps.open; + this.inputFocus = function () { + var _props = _this3.props, + format = _props.format, + validatorFunc = _props.validatorFunc, + disabledDate = _props.disabledDate; - if ('value' in nextProps) { - newState.value = value; - } - if (open !== undefined) { - newState.open = open; + var input = document.querySelector('.rc-calendar-input'); + if (input) { + if (input.value) { + input.select(); + } else { + input.focus(); + } + input.onkeydown = function (e) { + if (e.keyCode == _tinperBeeCore.KeyCode.DELETE) { + input.value = ''; + _this3.fireChange('', ''); + } else if (e.keyCode == _tinperBeeCore.KeyCode.ESC) { + _this3.setState({ + open: false + }); + var v = _this3.state.value; + _this3.props.onOpenChange(false, v, v && _this3.getValue(v) || ''); + _reactDom2["default"].findDOMNode(_this3.outInput).focus(); // 按esc时候焦点回到input输入框 + } else if (e.keyCode == _tinperBeeCore.KeyCode.ENTER) { + var parsed = (0, _moment2["default"])(input.value, format, true); + var isDisabled = disabledDate && disabledDate(parsed); + if (parsed.isValid() && validatorFunc(input.value) && !isDisabled) { + _this3.setState({ + open: false + }); + var _v = _this3.state.value; + _this3.props.onOpenChange(false, _v, _v && _this3.getValue(_v) || ''); + _reactDom2["default"].findDOMNode(_this3.outInput).focus(); + } + if (!input.value) { + _this3.setState({ + open: false + }); + } + } + _this3.props.onKeyDown && _this3.props.onKeyDown(e); + }; } - return newState; }; - Picker.prototype.render = function render() { - var props = this.props; - var prefixCls = props.prefixCls, - placement = props.placement, - style = props.style, - getCalendarContainer = props.getCalendarContainer, - align = props.align, - animation = props.animation, - disabled = props.disabled, - dropdownClassName = props.dropdownClassName, - transitionName = props.transitionName, - children = props.children; - - var state = this.state; - return _react2["default"].createElement( - _rcTrigger2["default"], - { - popup: this.getCalendarElement(), - popupAlign: align, - builtinPlacements: _placements2["default"], - popupPlacement: placement, - action: disabled && !state.open ? [] : ['click'], - destroyPopupOnHide: true, - getPopupContainer: getCalendarContainer, - popupStyle: style, - popupAnimation: animation, - popupTransitionName: transitionName, - popupVisible: state.open, - onPopupVisibleChange: this.onVisibleChange, - prefixCls: prefixCls, - popupClassName: dropdownClassName - }, - _react2["default"].cloneElement(children(state, props), { onKeyDown: this.onKeyDown }) - ); + this.onOpenChange = function (open) { + var props = _this3.props; + var self = _this3; + _this3.setState({ + open: open + }, function () { + if (open) { + setTimeout(function () { + self.inputFocus(); + }, 0); + } + }); + var value = self.state.value; + props.onOpenChange(open, value, value && _this3.getValue(value) || ''); + if (open) { + setTimeout(function () { + self.inputFocus(); + }, 200); + } }; - return Picker; - }(_react2["default"].Component); - - Picker.propTypes = { - animation: _propTypes2["default"].oneOfType([_propTypes2["default"].func, _propTypes2["default"].string]), - disabled: _propTypes2["default"].bool, - transitionName: _propTypes2["default"].string, - onChange: _propTypes2["default"].func, - onOpenChange: _propTypes2["default"].func, - children: _propTypes2["default"].func, - getCalendarContainer: _propTypes2["default"].func, - calendar: _propTypes2["default"].element, - style: _propTypes2["default"].object, - open: _propTypes2["default"].bool, - defaultOpen: _propTypes2["default"].bool, - prefixCls: _propTypes2["default"].string, - placement: _propTypes2["default"].any, - value: _propTypes2["default"].oneOfType([_propTypes2["default"].object, _propTypes2["default"].array]), - defaultValue: _propTypes2["default"].oneOfType([_propTypes2["default"].object, _propTypes2["default"].array]), - align: _propTypes2["default"].object, - enterKeyDown: _propTypes2["default"].bool //enter 键是否打开日期面板 - }; - Picker.defaultProps = { - prefixCls: 'rc-calendar-picker', - style: {}, - align: {}, - placement: 'bottomLeft', - defaultOpen: false, - onChange: noop, - onOpenChange: noop, - enterKeyDown: true - }; - - var _initialiseProps = function _initialiseProps() { - var _this2 = this; + this.handleCalendarChange = function (value) { + var props = _this3.props; + _this3.setState({ value: value, inputValue: value && _this3.getValue(value) || '' }); + _this3.fireChange(value, value && _this3.getValue(value) || ''); + }; - this.onCalendarKeyDown = function (event) { - if (event.keyCode === _KeyCode2["default"].ESC) { - event.stopPropagation(); - _this2.close(_this2.focus); + this.handleChange = function (value) { + var props = _this3.props; + _this3.setState({ + value: value && _extends(value, { _type: 'date' }) || value, + inputValue: value && _this3.getValue(value) || '' + }); + if (timerDatePicker) { + clearTimeout(_this3.timerout); + _this3.fireChange(value, value && _this3.getValue(value) || ''); + timerDatePicker = false; + _this3.timerout = window.setTimeout(function () { + timerDatePicker = true; + }, 300); } - _this2.props.onKeyDown && _this2.props.onKeyDown(event); }; - this.onCalendarSelect = function (value) { - var cause = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - var props = _this2.props; - var isDisabled = props.disabledDate && props.disabledDate(value); - if (isDisabled) return; - if (!('value' in props)) { - _this2.setState({ - value: value - }); - } - if (cause.source === 'keyboard' || cause.source === 'dateInputSelect' || !props.calendar.props.timePicker && cause.source !== 'dateInput' || cause.source === 'todayButton') { - _this2.close(_this2.focus); + this.onClick = function (e) { + var props = _this3.props; + if (props.keyboardInput) e.stopPropagation(); + var value = _this3.state.value; + if (props.keyboardInput) { + props.onClick && props.onClick(e.nativeEvent, value || null, _this3.state.inputValue); + } else { + props.onClick && props.onClick(e.nativeEvent, value || null, value && _this3.getValue(value) || ''); } - props.onChange(value); }; - this.onKeyDown = function (event) { - var enterKeyDown = _this2.props.enterKeyDown; - - if (event.keyCode === _KeyCode2["default"].DOWN || enterKeyDown && event.keyCode === _KeyCode2["default"].ENTER) { - if (!_this2.state.open) _this2.open(); - event.preventDefault(); + this.inputChange = function (value, e) { + if (_this3.props.keyboardInput) e.stopPropagation(); + _this3.setState({ + inputValue: value + }); + if ((0, _moment2["default"])(value, _this3.props.format).isValid() && _this3.props.validatorFunc(value)) { + _this3.setState({ + value: (0, _moment2["default"])(value, _this3.props.format) + }); + value = (0, _moment2["default"])(value, _this3.props.format); + _this3.fireChange(value, value && _this3.getValue(value) || ''); + } else { + _this3.fireChange(null, value); } - _this2.props.onKeyDown && _this2.props.onKeyDown(event); }; - this.onCalendarOk = function () { - _this2.close(_this2.focus); + this.outInputFocus = function (e) { + if (_this3.props.hasOwnProperty('open')) e.stopPropagation(); + _this3.props.outInputFocus && _this3.props.outInputFocus(e); }; - this.onCalendarClear = function () { - _this2.close(_this2.focus); + this.iconClick = function (e) { + _this3.props.iconClick && _this3.props.iconClick(e); }; - this.onVisibleChange = function (open) { - _this2.setOpen(open); + this.outInputKeydown = function (e) { + if (e.keyCode == _tinperBeeCore.KeyCode.DELETE) { + _this3.setState({ + inputValue: '' + }); + _this3.fireChange('', ''); + } else if (e.keyCode == _tinperBeeCore.KeyCode.ESC) { + _this3.setState({ + open: false + }); + var value = _this3.state.inputValue; + if ((0, _moment2["default"])(value, _this3.props.format).isValid() && _this3.props.validatorFunc(value)) { + _this3.setState({ + value: (0, _moment2["default"])(value, _this3.props.format) + }); + value = (0, _moment2["default"])(value, _this3.props.format); + _this3.fireChange(value, value && _this3.getValue(value) || ''); + } else { + _this3.fireChange(null, value); + } + } + _this3.props.outInputKeydown && _this3.props.outInputKeydown(e); }; - this.getCalendarElement = function () { - var props = _this2.props; - var state = _this2.state; - var calendarProps = props.calendar.props; - var value = state.value; + this.onMouseLeave = function (e) { + _this3.setState({ + showClose: false + }); + }; - var defaultValue = value; - var extraProps = { - ref: _this2.saveCalendarRef, - defaultValue: defaultValue || calendarProps.defaultValue, - selectedValue: value, - onKeyDown: _this2.onCalendarKeyDown, - onOk: (0, _createChainedFunction2["default"])(calendarProps.onOk, _this2.onCalendarOk), - onSelect: (0, _createChainedFunction2["default"])(calendarProps.onSelect, _this2.onCalendarSelect), - onClear: (0, _createChainedFunction2["default"])(calendarProps.onClear, _this2.onCalendarClear) - }; + this.onMouseEnter = function (e) { + _this3.setState({ + showClose: true + }); + }; - return _react2["default"].cloneElement(props.calendar, extraProps); + this.clear = function (e) { + e.stopPropagation(); + _this3.setState({ + inputValue: '', + value: '' + }); + _this3.fireChange('', ''); }; - this.setOpen = function (open, callback) { - var onOpenChange = _this2.props.onOpenChange; + this.handleSelect = function (value) { + _this3.setState({ + value: value + }); + _this3.props.onSelect && _this3.props.onSelect(value, value && _this3.getValue(value) || ''); + // ReactDOM.findDOMNode(this.outInput).focus() + }; - if (_this2.state.open !== open) { - if (!('open' in _this2.props)) { - _this2.setState({ - open: open - }, callback); - } - onOpenChange(open); + this.onDateInputBlur = function (e) { + var input = document.querySelector('.rc-calendar-input'); + var value = void 0; + if (input) { + value = input.value ? input.value : ''; } + _this3.props.onDateInputBlur && _this3.props.onDateInputBlur(e, value); }; - this.open = function (callback) { - _this2.setOpen(true, callback); - }; + this.onDateHover = function () { + var format = _this3.props.format; + var value = _this3.state.value, + newValue = value && _this3.getValue(value); - this.close = function (callback) { - _this2.setOpen(false, callback); - }; - this.focus = function () { - if (!_this2.state.open) { - _reactDom2["default"].findDOMNode(_this2).focus(); + var inputValue = _this3.outInput.state.value; + inputValue = format ? inputValue : inputValue && _this3.getValue((0, _moment2["default"])(inputValue)); + + if (newValue && inputValue !== newValue) { + _this3.fireChange(value, newValue || ''); } }; - this.focusCalendar = function () { - if (_this2.state.open && !!_this2.calendarInstance) { - _this2.calendarInstance.focus(); - } + this.fireChange = function (value, stringValue) { + _this3.fileChange && _this3.props.onChange(value, stringValue); + _this3.fileChange = false; + _this3.fileChangeTimer = window.setTimeout(function () { + _this3.fileChange = true; + }, 10); }; }; - (0, _reactLifecyclesCompat.polyfill)(Picker); + DatePicker.defaultProps = { + closeIcon: function closeIcon() { + return _react2["default"].createElement(_beeIcon2["default"], { type: "uf-close-c" }); + }, + renderIcon: function renderIcon() { + return _react2["default"].createElement(_beeIcon2["default"], { type: "uf-calendar" }); + }, + focusOnOpen: true, + defultSelect: false, + onOpenChange: function onOpenChange() {}, + onChange: function onChange() {}, + locale: _zh_CN2["default"], + showMonthInput: false, + onKeyDown: function onKeyDown() {}, + renderError: function renderError() {}, + showClose: true, + format: "YYYY-MM-DD", + showSecond: true, + showHour: true, + showMinute: true, + autoTriggerChange: true, + validatorFunc: function validatorFunc() { + return true; + } + }; - exports["default"] = Picker; - module.exports = exports['default']; + exports["default"] = DatePicker; + module.exports = exports["default"]; /***/ }), -/* 557 */ -/***/ (function(module, exports) { +/* 417 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); - var autoAdjustOverflow = { - adjustX: 1, - adjustY: 1 - }; - var targetOffset = [0, 0]; + var _Calendar = __webpack_require__(418); - var placements = { - bottomLeft: { - points: ['tl', 'tl'], - overflow: autoAdjustOverflow, - offset: [0, -3], - targetOffset: targetOffset - }, - bottomRight: { - points: ['tr', 'tr'], - overflow: autoAdjustOverflow, - offset: [0, -3], - targetOffset: targetOffset - }, - topRight: { - points: ['br', 'br'], - overflow: autoAdjustOverflow, - offset: [0, 3], - targetOffset: targetOffset - }, - topLeft: { - points: ['bl', 'bl'], - overflow: autoAdjustOverflow, - offset: [0, 3], - targetOffset: targetOffset - } - }; + var _Calendar2 = _interopRequireDefault(_Calendar); - exports["default"] = placements; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + + exports["default"] = _Calendar2["default"]; module.exports = exports['default']; /***/ }), -/* 558 */ +/* 418 */ /***/ (function(module, exports, __webpack_require__) { - "use strict"; + 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); - exports["default"] = void 0; - - var _react = _interopRequireWildcard(__webpack_require__(1)); - - var _propTypes = _interopRequireDefault(__webpack_require__(6)); - - var _moment = _interopRequireDefault(__webpack_require__(404)); - - var _classnames = _interopRequireDefault(__webpack_require__(5)); - - var _reactLifecyclesCompat = __webpack_require__(81); - - var _Header = _interopRequireDefault(__webpack_require__(559)); - - var _Combobox = _interopRequireDefault(__webpack_require__(560)); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; } + var _react = __webpack_require__(1); - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _react2 = _interopRequireDefault(_react); - function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + var _reactDom = __webpack_require__(2); - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + var _reactDom2 = _interopRequireDefault(_reactDom); - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + var _propTypes = __webpack_require__(6); - function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + var _propTypes2 = _interopRequireDefault(_propTypes); - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + var _KeyCode = __webpack_require__(419); - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + var _KeyCode2 = _interopRequireDefault(_KeyCode); - function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + var _reactLifecyclesCompat = __webpack_require__(81); - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + var _DateTable = __webpack_require__(420); - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + var _DateTable2 = _interopRequireDefault(_DateTable); - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + var _CalendarHeader = __webpack_require__(560); - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + var _CalendarHeader2 = _interopRequireDefault(_CalendarHeader); - function noop() {} + var _CalendarFooter = __webpack_require__(567); - function generateOptions(length, disabledOptions, hideDisabledOptions) { - var step = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1; - var arr = []; + var _CalendarFooter2 = _interopRequireDefault(_CalendarFooter); - for (var value = 0; value < length; value += step) { - if (!disabledOptions || disabledOptions.indexOf(value) < 0 || !hideDisabledOptions) { - arr.push(value); - } - } + var _CalendarMixin = __webpack_require__(571); - return arr; - } + var _CommonMixin = __webpack_require__(572); - function toNearestValidTime(time, hourOptions, minuteOptions, secondOptions) { - var hour = hourOptions.slice().sort(function (a, b) { - return Math.abs(time.hour() - a) - Math.abs(time.hour() - b); - })[0]; - var minute = minuteOptions.slice().sort(function (a, b) { - return Math.abs(time.minute() - a) - Math.abs(time.minute() - b); - })[0]; - var second = secondOptions.slice().sort(function (a, b) { - return Math.abs(time.second() - a) - Math.abs(time.second() - b); - })[0]; - return (0, _moment["default"])("".concat(hour, ":").concat(minute, ":").concat(second), 'HH:mm:ss'); - } + var _DateInput = __webpack_require__(564); - var Panel = - /*#__PURE__*/ - function (_Component) { - _inherits(Panel, _Component); + var _DateInput2 = _interopRequireDefault(_DateInput); - function Panel() { - var _getPrototypeOf2; + var _util = __webpack_require__(559); - var _this; + var _toTime = __webpack_require__(574); - _classCallCheck(this, Panel); + var _moment = __webpack_require__(423); - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } + var _moment2 = _interopRequireDefault(_moment); - _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Panel)).call.apply(_getPrototypeOf2, [this].concat(args))); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - _defineProperty(_assertThisInitialized(_this), "state", {}); + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - _defineProperty(_assertThisInitialized(_this), "onChange", function (newValue) { - var onChange = _this.props.onChange; + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - _this.setState({ - value: newValue - }); + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - onChange(newValue); - }); + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - _defineProperty(_assertThisInitialized(_this), "onAmPmChange", function (ampm) { - var onAmPmChange = _this.props.onAmPmChange; - onAmPmChange(ampm); - }); + function noop() {} - _defineProperty(_assertThisInitialized(_this), "onCurrentSelectPanelChange", function (currentSelectPanel) { - _this.setState({ - currentSelectPanel: currentSelectPanel - }); - }); + var Calendar = function (_React$Component) { + _inherits(Calendar, _React$Component); - _defineProperty(_assertThisInitialized(_this), "disabledHours", function () { - var _this$props = _this.props, - use12Hours = _this$props.use12Hours, - disabledHours = _this$props.disabledHours; - var disabledOptions = disabledHours(); + function Calendar(props) { + _classCallCheck(this, Calendar); - if (use12Hours && Array.isArray(disabledOptions)) { - if (_this.isAM()) { - disabledOptions = disabledOptions.filter(function (h) { - return h < 12; - }).map(function (h) { - return h === 0 ? 12 : h; - }); - } else { - disabledOptions = disabledOptions.map(function (h) { - return h === 12 ? 12 : h - 12; - }); - } - } + var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); - return disabledOptions; - }); + _initialiseProps.call(_this); + _this.state = { + mode: _this.props.mode || 'date', + value: props.value || props.defaultValue || (0, _moment2["default"])(), + selectedValue: props.selectedValue || props.defaultSelectedValue + }; return _this; } - _createClass(Panel, [{ - key: "close", - // https://github.com/ant-design/ant-design/issues/5829 - value: function close() { - var onEsc = this.props.onEsc; - onEsc(); - } - }, { - key: "isAM", - value: function isAM() { - var defaultOpenValue = this.props.defaultOpenValue; - var value = this.state.value; - var realValue = value || defaultOpenValue; - return realValue.hour() >= 0 && realValue.hour() < 12; - } - }, { - key: "render", - value: function render() { - var _this$props2 = this.props, - prefixCls = _this$props2.prefixCls, - className = _this$props2.className, - placeholder = _this$props2.placeholder, - disabledMinutes = _this$props2.disabledMinutes, - disabledSeconds = _this$props2.disabledSeconds, - hideDisabledOptions = _this$props2.hideDisabledOptions, - showHour = _this$props2.showHour, - showMinute = _this$props2.showMinute, - showSecond = _this$props2.showSecond, - format = _this$props2.format, - defaultOpenValue = _this$props2.defaultOpenValue, - clearText = _this$props2.clearText, - onEsc = _this$props2.onEsc, - addon = _this$props2.addon, - use12Hours = _this$props2.use12Hours, - focusOnOpen = _this$props2.focusOnOpen, - onKeyDown = _this$props2.onKeyDown, - hourStep = _this$props2.hourStep, - minuteStep = _this$props2.minuteStep, - secondStep = _this$props2.secondStep, - inputReadOnly = _this$props2.inputReadOnly, - clearIcon = _this$props2.clearIcon; - var _this$state = this.state, - value = _this$state.value, - currentSelectPanel = _this$state.currentSelectPanel; - var disabledHourOptions = this.disabledHours(); - var disabledMinuteOptions = disabledMinutes(value ? value.hour() : null); - var disabledSecondOptions = disabledSeconds(value ? value.hour() : null, value ? value.minute() : null); - var hourOptions = generateOptions(24, disabledHourOptions, hideDisabledOptions, hourStep); - var minuteOptions = generateOptions(60, disabledMinuteOptions, hideDisabledOptions, minuteStep); - var secondOptions = generateOptions(60, disabledSecondOptions, hideDisabledOptions, secondStep); - var validDefaultOpenValue = toNearestValidTime(defaultOpenValue, hourOptions, minuteOptions, secondOptions); - return _react["default"].createElement("div", { - className: (0, _classnames["default"])(className, "".concat(prefixCls, "-inner")) - }, _react["default"].createElement(_Header["default"], { - clearText: clearText, - prefixCls: prefixCls, - defaultOpenValue: validDefaultOpenValue, - value: value, - currentSelectPanel: currentSelectPanel, - onEsc: onEsc, - format: format, - placeholder: placeholder, - hourOptions: hourOptions, - minuteOptions: minuteOptions, - secondOptions: secondOptions, - disabledHours: this.disabledHours, - disabledMinutes: disabledMinutes, - disabledSeconds: disabledSeconds, - onChange: this.onChange, - focusOnOpen: focusOnOpen, - onKeyDown: onKeyDown, - inputReadOnly: inputReadOnly, - clearIcon: clearIcon - }), _react["default"].createElement(_Combobox["default"], { - prefixCls: prefixCls, - value: value, - defaultOpenValue: validDefaultOpenValue, - format: format, - onChange: this.onChange, - onAmPmChange: this.onAmPmChange, - showHour: showHour, - showMinute: showMinute, - showSecond: showSecond, - hourOptions: hourOptions, - minuteOptions: minuteOptions, - secondOptions: secondOptions, - disabledHours: this.disabledHours, - disabledMinutes: disabledMinutes, - disabledSeconds: disabledSeconds, - onCurrentSelectPanelChange: this.onCurrentSelectPanelChange, - use12Hours: use12Hours, - onEsc: onEsc, - isAM: this.isAM() - }), addon(this)); - } - }], [{ - key: "getDerivedStateFromProps", - value: function getDerivedStateFromProps(props, state) { - if ('value' in props) { - return _objectSpread({}, state, { - value: props.value - }); - } - - return null; + Calendar.prototype.componentDidMount = function componentDidMount() { + if (this.props.showDateInput) { + this.saveFocusElement(_DateInput2["default"].getInstance()); } - }]); - - return Panel; - }(_react.Component); - - _defineProperty(Panel, "propTypes", { - clearText: _propTypes["default"].string, - prefixCls: _propTypes["default"].string, - className: _propTypes["default"].string, - defaultOpenValue: _propTypes["default"].object, - value: _propTypes["default"].object, - placeholder: _propTypes["default"].string, - format: _propTypes["default"].string, - inputReadOnly: _propTypes["default"].bool, - disabledHours: _propTypes["default"].func, - disabledMinutes: _propTypes["default"].func, - disabledSeconds: _propTypes["default"].func, - hideDisabledOptions: _propTypes["default"].bool, - onChange: _propTypes["default"].func, - onAmPmChange: _propTypes["default"].func, - onEsc: _propTypes["default"].func, - showHour: _propTypes["default"].bool, - showMinute: _propTypes["default"].bool, - showSecond: _propTypes["default"].bool, - use12Hours: _propTypes["default"].bool, - hourStep: _propTypes["default"].number, - minuteStep: _propTypes["default"].number, - secondStep: _propTypes["default"].number, - addon: _propTypes["default"].func, - focusOnOpen: _propTypes["default"].bool, - onKeyDown: _propTypes["default"].func, - clearIcon: _propTypes["default"].node - }); - - _defineProperty(Panel, "defaultProps", { - prefixCls: 'rc-time-picker-panel', - onChange: noop, - disabledHours: noop, - disabledMinutes: noop, - disabledSeconds: noop, - defaultOpenValue: (0, _moment["default"])(), - use12Hours: false, - addon: noop, - onKeyDown: noop, - onAmPmChange: noop, - inputReadOnly: false - }); - - (0, _reactLifecyclesCompat.polyfill)(Panel); - var _default = Panel; - exports["default"] = _default; - -/***/ }), -/* 559 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports["default"] = void 0; - - var _react = _interopRequireWildcard(__webpack_require__(1)); - - var _propTypes = _interopRequireDefault(__webpack_require__(6)); - - var _moment = _interopRequireDefault(__webpack_require__(404)); - - var _classnames = _interopRequireDefault(__webpack_require__(5)); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - - function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + }; - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + Calendar.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, state) { + var value = nextProps.value, + selectedValue = nextProps.selectedValue; - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + var newState = {}; - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + if ('mode' in nextProps && state.mode !== nextProps.mode) { + newState = { mode: nextProps.mode }; + } + if ('value' in nextProps) { + newState.value = value || nextProps.defaultValue || (0, _CalendarMixin.getNowByCurrentStateValue)(state.value); + } + if ('selectedValue' in nextProps) { + newState.selectedValue = selectedValue; + } - var Header = - /*#__PURE__*/ - function (_Component) { - _inherits(Header, _Component); + return newState; + }; - function Header(props) { - var _this; + Calendar.prototype.render = function render() { + var _this2 = this; - _classCallCheck(this, Header); + var props = this.props, + state = this.state; + var locale = props.locale, + prefixCls = props.prefixCls, + disabledDate = props.disabledDate, + validatorFunc = props.validatorFunc, + format = props.format, + dateInputPlaceholder = props.dateInputPlaceholder, + timePicker = props.timePicker, + disabledTime = props.disabledTime, + clearIcon = props.clearIcon, + renderFooter = props.renderFooter, + showMonthInput = props.showMonthInput, + renderError = props.renderError, + onInputBlur = props.onInputBlur; + var value = state.value, + selectedValue = state.selectedValue, + mode = state.mode; - _this = _possibleConstructorReturn(this, _getPrototypeOf(Header).call(this, props)); + var showTimePicker = mode === 'time'; + var disabledTimeConfig = showTimePicker && disabledTime && timePicker ? (0, _util.getTimeConfig)(selectedValue, disabledTime) : null; - _defineProperty(_assertThisInitialized(_this), "onInputChange", function (event) { - var str = event.target.value; + var timePickerEle = null; - _this.setState({ - str: str + if (timePicker && showTimePicker) { + var timePickerProps = _extends({ + showHour: true, + showSecond: true, + showMinute: true + }, timePicker.props, disabledTimeConfig, { + onChange: this.onDateInputChange, + value: selectedValue, + disabledTime: disabledTime }); - var _this$props = _this.props, - format = _this$props.format, - hourOptions = _this$props.hourOptions, - minuteOptions = _this$props.minuteOptions, - secondOptions = _this$props.secondOptions, - disabledHours = _this$props.disabledHours, - disabledMinutes = _this$props.disabledMinutes, - disabledSeconds = _this$props.disabledSeconds, - onChange = _this$props.onChange; - - if (str) { - var originalValue = _this.props.value; - - var value = _this.getProtoValue().clone(); - - var parsed = (0, _moment["default"])(str, format, true); - - if (!parsed.isValid()) { - _this.setState({ - invalid: true - }); - - return; - } - - value.hour(parsed.hour()).minute(parsed.minute()).second(parsed.second()); // if time value not allowed, response warning. - - if (hourOptions.indexOf(value.hour()) < 0 || minuteOptions.indexOf(value.minute()) < 0 || secondOptions.indexOf(value.second()) < 0) { - _this.setState({ - invalid: true - }); - - return; - } // if time value is disabled, response warning. - - - var disabledHourOptions = disabledHours(); - var disabledMinuteOptions = disabledMinutes(value.hour()); - var disabledSecondOptions = disabledSeconds(value.hour(), value.minute()); - - if (disabledHourOptions && disabledHourOptions.indexOf(value.hour()) >= 0 || disabledMinuteOptions && disabledMinuteOptions.indexOf(value.minute()) >= 0 || disabledSecondOptions && disabledSecondOptions.indexOf(value.second()) >= 0) { - _this.setState({ - invalid: true - }); - - return; - } - - if (originalValue) { - if (originalValue.hour() !== value.hour() || originalValue.minute() !== value.minute() || originalValue.second() !== value.second()) { - // keep other fields for rc-calendar - var changedValue = originalValue.clone(); - changedValue.hour(value.hour()); - changedValue.minute(value.minute()); - changedValue.second(value.second()); - onChange(changedValue); - } - } else if (originalValue !== value) { - onChange(value); - } - } else { - onChange(null); + if (timePicker.props.defaultValue !== undefined) { + timePickerProps.defaultOpenValue = timePicker.props.defaultValue; } - _this.setState({ - invalid: false - }); - }); - - _defineProperty(_assertThisInitialized(_this), "onKeyDown", function (e) { - var _this$props2 = _this.props, - onEsc = _this$props2.onEsc, - onKeyDown = _this$props2.onKeyDown; + timePickerEle = _react2["default"].cloneElement(timePicker, timePickerProps); + } + var dateInputElement = props.showDateInput ? _react2["default"].createElement(_DateInput2["default"], { + format: this.getFormat(), + key: 'date-input', + value: value, + locale: locale, + placeholder: dateInputPlaceholder, + showClear: true, + disabledTime: disabledTime, + disabledDate: disabledDate, + onClear: this.onClear, + prefixCls: prefixCls, + selectedValue: selectedValue, + onChange: this.onDateInputChange, + onSelect: function onSelect(value) { + if ((0, _moment2["default"])(value, format, true) && validatorFunc(value)) { + _this2.onDateInputSelect(value); + } + }, + clearIcon: clearIcon, + renderError: renderError, + onBlur: onInputBlur, + validatorFunc: validatorFunc + }) : null; - if (e.keyCode === 27) { - onEsc(); - } + var children = []; + if (props.renderSidebar) { + children.push(props.renderSidebar()); + } + children.push(_react2["default"].createElement( + 'div', + { className: prefixCls + '-panel', key: 'panel' }, + dateInputElement, + _react2["default"].createElement( + 'div', + { + tabIndex: this.props.focusablePanel ? 0 : undefined, + className: prefixCls + '-date-panel', + onMouseOver: this.onMouseOver + }, + _react2["default"].createElement(_CalendarHeader2["default"], { + locale: locale, + mode: mode, + value: value, + onValueChange: this.setValue, + onPanelChange: this.onPanelChange, + renderFooter: renderFooter, + showTimePicker: showTimePicker, + prefixCls: prefixCls, + showMonthInput: showMonthInput + }), + timePicker && showTimePicker ? _react2["default"].createElement( + 'div', + { className: prefixCls + '-time-picker' }, + _react2["default"].createElement( + 'div', + { className: prefixCls + '-time-picker-panel' }, + timePickerEle + ) + ) : null, + _react2["default"].createElement( + 'div', + { className: prefixCls + '-body' }, + _react2["default"].createElement(_DateTable2["default"], { + locale: locale, + value: value, + selectedValue: selectedValue, + prefixCls: prefixCls, + dateRender: props.dateRender, + onSelect: this.onDateTableSelect, + disabledDate: disabledDate, + showWeekNumber: props.showWeekNumber + }) + ), + _react2["default"].createElement(_CalendarFooter2["default"], { + showOk: props.showOk, + mode: mode, + renderFooter: props.renderFooter, + locale: locale, + prefixCls: prefixCls, + showToday: props.showToday, + disabledTime: disabledTime, + showTimePicker: showTimePicker, + showDateInput: props.showDateInput, + timePicker: timePicker, + selectedValue: selectedValue, + value: value, + disabledDate: disabledDate, + okDisabled: props.showOk !== false && (!selectedValue || !this.isAllowedDate(selectedValue)), + onOk: this.onOk, + onSelect: this.onSelect, + onToday: this.onToday, + onOpenTimePicker: this.openTimePicker, + onCloseTimePicker: this.closeTimePicker + }) + ) + )); - onKeyDown(e); + return this.renderRoot({ + children: children, + className: props.showWeekNumber ? prefixCls + '-week-number' : '' }); + }; - var _value = props.value, - _format = props.format; - _this.state = { - str: _value && _value.format(_format) || '', - invalid: false - }; - return _this; - } - - _createClass(Header, [{ - key: "componentDidMount", - value: function componentDidMount() { - var _this2 = this; + return Calendar; + }(_react2["default"].Component); - var focusOnOpen = this.props.focusOnOpen; + Calendar.propTypes = _extends({}, _CalendarMixin.calendarMixinPropTypes, _CommonMixin.propType, { + prefixCls: _propTypes2["default"].string, + className: _propTypes2["default"].string, + style: _propTypes2["default"].object, + defaultValue: _propTypes2["default"].object, + value: _propTypes2["default"].object, + selectedValue: _propTypes2["default"].object, + defaultSelectedValue: _propTypes2["default"].object, + mode: _propTypes2["default"].oneOf(['time', 'date', 'month', 'year', 'decade']), + locale: _propTypes2["default"].object, + showDateInput: _propTypes2["default"].bool, + showWeekNumber: _propTypes2["default"].bool, + showToday: _propTypes2["default"].bool, + showOk: _propTypes2["default"].bool, + onSelect: _propTypes2["default"].func, + onOk: _propTypes2["default"].func, + onKeyDown: _propTypes2["default"].func, + timePicker: _propTypes2["default"].element, + dateInputPlaceholder: _propTypes2["default"].any, + onClear: _propTypes2["default"].func, + onChange: _propTypes2["default"].func, + onPanelChange: _propTypes2["default"].func, + disabledDate: _propTypes2["default"].func, + disabledTime: _propTypes2["default"].any, + dateRender: _propTypes2["default"].func, + renderFooter: _propTypes2["default"].func, + renderSidebar: _propTypes2["default"].func, + clearIcon: _propTypes2["default"].node, + focusablePanel: _propTypes2["default"].bool + }); + Calendar.defaultProps = _extends({}, _CalendarMixin.calendarMixinDefaultProps, _CommonMixin.defaultProp, { + showToday: true, + showDateInput: true, + timePicker: null, + onOk: noop, + onPanelChange: noop, + focusablePanel: true + }); - if (focusOnOpen) { - // Wait one frame for the panel to be positioned before focusing - var requestAnimationFrame = window.requestAnimationFrame || window.setTimeout; - requestAnimationFrame(function () { - _this2.refInput.focus(); + var _initialiseProps = function _initialiseProps() { + var _this3 = this; - _this2.refInput.select(); - }); - } - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - var _this$props3 = this.props, - value = _this$props3.value, - format = _this$props3.format; + this.onPanelChange = function (value, mode) { + var props = _this3.props, + state = _this3.state; - if (value !== prevProps.value) { - // eslint-disable-next-line react/no-did-update-set-state - this.setState({ - str: value && value.format(format) || '', - invalid: false - }); - } - } - }, { - key: "getProtoValue", - value: function getProtoValue() { - var _this$props4 = this.props, - value = _this$props4.value, - defaultOpenValue = _this$props4.defaultOpenValue; - return value || defaultOpenValue; + if (!('mode' in props)) { + _this3.setState({ mode: mode }); } - }, { - key: "getInput", - value: function getInput() { - var _this3 = this; + props.onPanelChange(value || state.value, mode); + }; - var _this$props5 = this.props, - prefixCls = _this$props5.prefixCls, - placeholder = _this$props5.placeholder, - inputReadOnly = _this$props5.inputReadOnly; - var _this$state = this.state, - invalid = _this$state.invalid, - str = _this$state.str; - var invalidClass = invalid ? "".concat(prefixCls, "-input-invalid") : ''; - return _react["default"].createElement("input", { - className: (0, _classnames["default"])("".concat(prefixCls, "-input"), invalidClass), - ref: function ref(_ref) { - _this3.refInput = _ref; - }, - onKeyDown: this.onKeyDown, - value: str, - placeholder: placeholder, - onChange: this.onInputChange, - readOnly: !!inputReadOnly - }); - } - }, { - key: "render", - value: function render() { - var prefixCls = this.props.prefixCls; - return _react["default"].createElement("div", { - className: "".concat(prefixCls, "-input-wrap") - }, this.getInput()); + this.onKeyDown = function (event) { + if (event.target.nodeName.toLowerCase() === 'input') { + return undefined; + } else { + _this3.props.onKeyDown && _this3.props.onKeyDown(event); } - }]); - - return Header; - }(_react.Component); - - _defineProperty(Header, "propTypes", { - format: _propTypes["default"].string, - prefixCls: _propTypes["default"].string, - disabledDate: _propTypes["default"].func, - placeholder: _propTypes["default"].string, - clearText: _propTypes["default"].string, - value: _propTypes["default"].object, - inputReadOnly: _propTypes["default"].bool, - hourOptions: _propTypes["default"].array, - minuteOptions: _propTypes["default"].array, - secondOptions: _propTypes["default"].array, - disabledHours: _propTypes["default"].func, - disabledMinutes: _propTypes["default"].func, - disabledSeconds: _propTypes["default"].func, - onChange: _propTypes["default"].func, - onEsc: _propTypes["default"].func, - defaultOpenValue: _propTypes["default"].object, - currentSelectPanel: _propTypes["default"].string, - focusOnOpen: _propTypes["default"].bool, - onKeyDown: _propTypes["default"].func, - clearIcon: _propTypes["default"].node - }); - - _defineProperty(Header, "defaultProps", { - inputReadOnly: false - }); - - var _default = Header; - exports["default"] = _default; - -/***/ }), -/* 560 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports["default"] = void 0; + var keyCode = event.keyCode; + // mac + var ctrlKey = event.ctrlKey || event.metaKey; + var disabledDate = _this3.props.disabledDate; + var value = _this3.state.value; - var _react = _interopRequireWildcard(__webpack_require__(1)); + switch (keyCode) { + case _KeyCode2["default"].DOWN: + _this3.goTime(1, 'weeks'); + event.preventDefault(); + return 1; + case _KeyCode2["default"].UP: + _this3.goTime(-1, 'weeks'); + event.preventDefault(); + return 1; + case _KeyCode2["default"].LEFT: + if (ctrlKey) { + _this3.goTime(-1, 'years'); + } else { + _this3.goTime(-1, 'days'); + } + event.preventDefault(); + return 1; + case _KeyCode2["default"].RIGHT: + if (ctrlKey) { + _this3.goTime(1, 'years'); + } else { + _this3.goTime(1, 'days'); + } + event.preventDefault(); + return 1; + case _KeyCode2["default"].HOME: + _this3.setValue((0, _toTime.goStartMonth)(_this3.state.value)); + event.preventDefault(); + return 1; + case _KeyCode2["default"].END: + _this3.setValue((0, _toTime.goEndMonth)(_this3.state.value)); + event.preventDefault(); + return 1; + case _KeyCode2["default"].PAGE_DOWN: + _this3.goTime(1, 'month'); + event.preventDefault(); + return 1; + case _KeyCode2["default"].PAGE_UP: + _this3.goTime(-1, 'month'); + event.preventDefault(); + return 1; + case _KeyCode2["default"].ENTER: + if (!disabledDate || !disabledDate(value)) { + _this3.onSelect(value, { + source: 'keyboard' + }); + } + event.preventDefault(); + return 1; + } + }; - var _propTypes = _interopRequireDefault(__webpack_require__(6)); + this.onClear = function () { + _this3.onSelect(null); + _this3.props.onClear(); + }; - var _Select = _interopRequireDefault(__webpack_require__(561)); + this.onOk = function () { + var selectedValue = _this3.state.selectedValue; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + if (_this3.isAllowedDate(selectedValue)) { + _this3.props.onOk(selectedValue); + } + }; - function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; } + this.onDateInputChange = function (value) { + _this3.onSelect(value, { + source: 'dateInput' + }); + }; - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + this.onDateInputSelect = function (value) { + _this3.onSelect(value, { + source: 'dateInputSelect' + }); + }; - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + this.onDateTableSelect = function (value) { + var timePicker = _this3.props.timePicker; + var selectedValue = _this3.state.selectedValue; - function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + if (!selectedValue && timePicker) { + var timePickerDefaultValue = timePicker.props.defaultValue; + if (timePickerDefaultValue) { + (0, _util.syncTime)(timePickerDefaultValue, value); + } + } + _this3.onSelect(value); + }; - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + this.onToday = function () { + var value = _this3.state.value; - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + var now = (0, _util.getTodayTime)(value); + _this3.onSelect(now, { + source: 'todayButton' + }); + }; - function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + this.getRootDOMNode = function () { + return _reactDom2["default"].findDOMNode(_this3); + }; - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + this.openTimePicker = function () { + _this3.onPanelChange(null, 'time'); + }; - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + this.closeTimePicker = function () { + _this3.onPanelChange(null, 'date'); + }; - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + this.goTime = function (direction, unit) { + _this3.setValue((0, _toTime.goTime)(_this3.state.value, direction, unit)); + }; - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + this.onMouseOver = function (e) { + e.stopPropagation(); + }; + }; - var formatOption = function formatOption(option, disabledOptions) { - var value = "".concat(option); + (0, _reactLifecyclesCompat.polyfill)(Calendar); - if (option < 10) { - value = "0".concat(option); - } + exports["default"] = (0, _CalendarMixin.calendarMixinWrapper)((0, _CommonMixin.commonMixinWrapper)(Calendar)); + module.exports = exports['default']; + +/***/ }), +/* 419 */ +/***/ (function(module, exports) { + + "use strict"; - var disabled = false; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; - if (disabledOptions && disabledOptions.indexOf(option) >= 0) { - disabled = true; - } + /** + * @ignore + * some key-codes definition and utils from closure-library + * @author yiminghe@gmail.com + */ + var KeyCode = { + /** + * MAC_ENTER + */ + MAC_ENTER: 3, - return { - value: value, - disabled: disabled - }; - }; + /** + * BACKSPACE + */ + BACKSPACE: 8, - var Combobox = - /*#__PURE__*/ - function (_Component) { - _inherits(Combobox, _Component); + /** + * TAB + */ + TAB: 9, - function Combobox() { - var _getPrototypeOf2; + /** + * NUMLOCK on FF/Safari Mac + */ + NUM_CENTER: 12, - var _this; + /** + * ENTER + */ + ENTER: 13, - _classCallCheck(this, Combobox); + /** + * SHIFT + */ + SHIFT: 16, - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } + /** + * CTRL + */ + CTRL: 17, - _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Combobox)).call.apply(_getPrototypeOf2, [this].concat(args))); + /** + * ALT + */ + ALT: 18, - _defineProperty(_assertThisInitialized(_this), "onItemChange", function (type, itemValue) { - var _this$props = _this.props, - onChange = _this$props.onChange, - defaultOpenValue = _this$props.defaultOpenValue, - use12Hours = _this$props.use12Hours, - propValue = _this$props.value, - isAM = _this$props.isAM, - onAmPmChange = _this$props.onAmPmChange; - var value = (propValue || defaultOpenValue).clone(); + /** + * PAUSE + */ + PAUSE: 19, - if (type === 'hour') { - if (use12Hours) { - if (isAM) { - value.hour(+itemValue % 12); - } else { - value.hour(+itemValue % 12 + 12); - } - } else { - value.hour(+itemValue); - } - } else if (type === 'minute') { - value.minute(+itemValue); - } else if (type === 'ampm') { - var ampm = itemValue.toUpperCase(); + /** + * CAPS_LOCK + */ + CAPS_LOCK: 20, - if (use12Hours) { - if (ampm === 'PM' && value.hour() < 12) { - value.hour(value.hour() % 12 + 12); - } + /** + * ESC + */ + ESC: 27, - if (ampm === 'AM') { - if (value.hour() >= 12) { - value.hour(value.hour() - 12); - } - } - } + /** + * SPACE + */ + SPACE: 32, - onAmPmChange(ampm); - } else { - value.second(+itemValue); - } + /** + * PAGE_UP + */ + PAGE_UP: 33, - onChange(value); - }); + /** + * PAGE_DOWN + */ + PAGE_DOWN: 34, - _defineProperty(_assertThisInitialized(_this), "onEnterSelectPanel", function (range) { - var onCurrentSelectPanelChange = _this.props.onCurrentSelectPanelChange; - onCurrentSelectPanelChange(range); - }); + /** + * END + */ + END: 35, - return _this; - } + /** + * HOME + */ + HOME: 36, - _createClass(Combobox, [{ - key: "getHourSelect", - value: function getHourSelect(hour) { - var _this2 = this; + /** + * LEFT + */ + LEFT: 37, - var _this$props2 = this.props, - prefixCls = _this$props2.prefixCls, - hourOptions = _this$props2.hourOptions, - disabledHours = _this$props2.disabledHours, - showHour = _this$props2.showHour, - use12Hours = _this$props2.use12Hours, - onEsc = _this$props2.onEsc; + /** + * UP + */ + UP: 38, - if (!showHour) { - return null; - } + /** + * RIGHT + */ + RIGHT: 39, - var disabledOptions = disabledHours(); - var hourOptionsAdj; - var hourAdj; + /** + * DOWN + */ + DOWN: 40, - if (use12Hours) { - hourOptionsAdj = [12].concat(hourOptions.filter(function (h) { - return h < 12 && h > 0; - })); - hourAdj = hour % 12 || 12; - } else { - hourOptionsAdj = hourOptions; - hourAdj = hour; - } + /** + * PRINT_SCREEN + */ + PRINT_SCREEN: 44, - return _react["default"].createElement(_Select["default"], { - prefixCls: prefixCls, - options: hourOptionsAdj.map(function (option) { - return formatOption(option, disabledOptions); - }), - selectedIndex: hourOptionsAdj.indexOf(hourAdj), - type: "hour", - onSelect: this.onItemChange, - onMouseEnter: function onMouseEnter() { - return _this2.onEnterSelectPanel('hour'); - }, - onEsc: onEsc - }); - } - }, { - key: "getMinuteSelect", - value: function getMinuteSelect(minute) { - var _this3 = this; + /** + * INSERT + */ + INSERT: 45, - var _this$props3 = this.props, - prefixCls = _this$props3.prefixCls, - minuteOptions = _this$props3.minuteOptions, - disabledMinutes = _this$props3.disabledMinutes, - defaultOpenValue = _this$props3.defaultOpenValue, - showMinute = _this$props3.showMinute, - propValue = _this$props3.value, - onEsc = _this$props3.onEsc; + /** + * DELETE + */ + DELETE: 46, - if (!showMinute) { - return null; - } + /** + * ZERO + */ + ZERO: 48, - var value = propValue || defaultOpenValue; - var disabledOptions = disabledMinutes(value.hour()); - return _react["default"].createElement(_Select["default"], { - prefixCls: prefixCls, - options: minuteOptions.map(function (option) { - return formatOption(option, disabledOptions); - }), - selectedIndex: minuteOptions.indexOf(minute), - type: "minute", - onSelect: this.onItemChange, - onMouseEnter: function onMouseEnter() { - return _this3.onEnterSelectPanel('minute'); - }, - onEsc: onEsc - }); - } - }, { - key: "getSecondSelect", - value: function getSecondSelect(second) { - var _this4 = this; + /** + * ONE + */ + ONE: 49, - var _this$props4 = this.props, - prefixCls = _this$props4.prefixCls, - secondOptions = _this$props4.secondOptions, - disabledSeconds = _this$props4.disabledSeconds, - showSecond = _this$props4.showSecond, - defaultOpenValue = _this$props4.defaultOpenValue, - propValue = _this$props4.value, - onEsc = _this$props4.onEsc; + /** + * TWO + */ + TWO: 50, - if (!showSecond) { - return null; - } + /** + * THREE + */ + THREE: 51, - var value = propValue || defaultOpenValue; - var disabledOptions = disabledSeconds(value.hour(), value.minute()); - return _react["default"].createElement(_Select["default"], { - prefixCls: prefixCls, - options: secondOptions.map(function (option) { - return formatOption(option, disabledOptions); - }), - selectedIndex: secondOptions.indexOf(second), - type: "second", - onSelect: this.onItemChange, - onMouseEnter: function onMouseEnter() { - return _this4.onEnterSelectPanel('second'); - }, - onEsc: onEsc - }); - } - }, { - key: "getAMPMSelect", - value: function getAMPMSelect() { - var _this5 = this; + /** + * FOUR + */ + FOUR: 52, - var _this$props5 = this.props, - prefixCls = _this$props5.prefixCls, - use12Hours = _this$props5.use12Hours, - format = _this$props5.format, - isAM = _this$props5.isAM, - onEsc = _this$props5.onEsc; + /** + * FIVE + */ + FIVE: 53, - if (!use12Hours) { - return null; - } + /** + * SIX + */ + SIX: 54, - var AMPMOptions = ['am', 'pm'] // If format has A char, then we should uppercase AM/PM - .map(function (c) { - return format.match(/\sA/) ? c.toUpperCase() : c; - }).map(function (c) { - return { - value: c - }; - }); - var selected = isAM ? 0 : 1; - return _react["default"].createElement(_Select["default"], { - prefixCls: prefixCls, - options: AMPMOptions, - selectedIndex: selected, - type: "ampm", - onSelect: this.onItemChange, - onMouseEnter: function onMouseEnter() { - return _this5.onEnterSelectPanel('ampm'); - }, - onEsc: onEsc - }); - } - }, { - key: "render", - value: function render() { - var _this$props6 = this.props, - prefixCls = _this$props6.prefixCls, - defaultOpenValue = _this$props6.defaultOpenValue, - propValue = _this$props6.value; - var value = propValue || defaultOpenValue; - return _react["default"].createElement("div", { - className: "".concat(prefixCls, "-combobox") - }, this.getHourSelect(value.hour()), this.getMinuteSelect(value.minute()), this.getSecondSelect(value.second()), this.getAMPMSelect(value.hour())); - } - }]); + /** + * SEVEN + */ + SEVEN: 55, - return Combobox; - }(_react.Component); + /** + * EIGHT + */ + EIGHT: 56, - _defineProperty(Combobox, "propTypes", { - format: _propTypes["default"].string, - defaultOpenValue: _propTypes["default"].object, - prefixCls: _propTypes["default"].string, - value: _propTypes["default"].object, - onChange: _propTypes["default"].func, - onAmPmChange: _propTypes["default"].func, - showHour: _propTypes["default"].bool, - showMinute: _propTypes["default"].bool, - showSecond: _propTypes["default"].bool, - hourOptions: _propTypes["default"].array, - minuteOptions: _propTypes["default"].array, - secondOptions: _propTypes["default"].array, - disabledHours: _propTypes["default"].func, - disabledMinutes: _propTypes["default"].func, - disabledSeconds: _propTypes["default"].func, - onCurrentSelectPanelChange: _propTypes["default"].func, - use12Hours: _propTypes["default"].bool, - onEsc: _propTypes["default"].func, - isAM: _propTypes["default"].bool - }); + /** + * NINE + */ + NINE: 57, - var _default = Combobox; - exports["default"] = _default; - -/***/ }), -/* 561 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; + /** + * QUESTION_MARK + */ + QUESTION_MARK: 63, - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports["default"] = void 0; + /** + * A + */ + A: 65, - var _react = _interopRequireWildcard(__webpack_require__(1)); + /** + * B + */ + B: 66, - var _propTypes = _interopRequireDefault(__webpack_require__(6)); + /** + * C + */ + C: 67, - var _reactDom = _interopRequireDefault(__webpack_require__(2)); + /** + * D + */ + D: 68, - var _classnames = _interopRequireDefault(__webpack_require__(5)); + /** + * E + */ + E: 69, - var _raf = _interopRequireDefault(__webpack_require__(235)); + /** + * F + */ + F: 70, - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + /** + * G + */ + G: 71, - function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; } + /** + * H + */ + H: 72, - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** + * I + */ + I: 73, - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + /** + * J + */ + J: 74, - function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + /** + * K + */ + K: 75, - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** + * L + */ + L: 76, - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + /** + * M + */ + M: 77, - function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + /** + * N + */ + N: 78, - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + /** + * O + */ + O: 79, - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + /** + * P + */ + P: 80, - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + /** + * Q + */ + Q: 81, - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + /** + * R + */ + R: 82, - var scrollTo = function scrollTo(element, to, duration) { - // jump to target if duration zero - if (duration <= 0) { - (0, _raf["default"])(function () { - element.scrollTop = to; - }); - return; - } + /** + * S + */ + S: 83, - var difference = to - element.scrollTop; - var perTick = difference / duration * 10; - (0, _raf["default"])(function () { - element.scrollTop += perTick; - if (element.scrollTop === to) return; - scrollTo(element, to, duration - 10); - }); - }; + /** + * T + */ + T: 84, - var Select = - /*#__PURE__*/ - function (_Component) { - _inherits(Select, _Component); + /** + * U + */ + U: 85, - function Select() { - var _getPrototypeOf2; + /** + * V + */ + V: 86, - var _this; + /** + * W + */ + W: 87, - _classCallCheck(this, Select); + /** + * X + */ + X: 88, - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } + /** + * Y + */ + Y: 89, - _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Select)).call.apply(_getPrototypeOf2, [this].concat(args))); + /** + * Z + */ + Z: 90, - _defineProperty(_assertThisInitialized(_this), "state", { - active: false - }); + /** + * META + */ + META: 91, - _defineProperty(_assertThisInitialized(_this), "onSelect", function (value) { - var _this$props = _this.props, - onSelect = _this$props.onSelect, - type = _this$props.type; - onSelect(type, value); - }); + /** + * WIN_KEY_RIGHT + */ + WIN_KEY_RIGHT: 92, - _defineProperty(_assertThisInitialized(_this), "handleMouseEnter", function (e) { - var onMouseEnter = _this.props.onMouseEnter; + /** + * CONTEXT_MENU + */ + CONTEXT_MENU: 93, - _this.setState({ - active: true - }); + /** + * NUM_ZERO + */ + NUM_ZERO: 96, - onMouseEnter(e); - }); + /** + * NUM_ONE + */ + NUM_ONE: 97, - _defineProperty(_assertThisInitialized(_this), "handleMouseLeave", function () { - _this.setState({ - active: false - }); - }); + /** + * NUM_TWO + */ + NUM_TWO: 98, - _defineProperty(_assertThisInitialized(_this), "saveList", function (node) { - _this.list = node; - }); + /** + * NUM_THREE + */ + NUM_THREE: 99, - return _this; - } + /** + * NUM_FOUR + */ + NUM_FOUR: 100, - _createClass(Select, [{ - key: "componentDidMount", - value: function componentDidMount() { - // jump to selected option - this.scrollToSelected(0); - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - var selectedIndex = this.props.selectedIndex; // smooth scroll to selected option + /** + * NUM_FIVE + */ + NUM_FIVE: 101, - if (prevProps.selectedIndex !== selectedIndex) { - this.scrollToSelected(120); - } - } - }, { - key: "getOptions", - value: function getOptions() { - var _this2 = this; + /** + * NUM_SIX + */ + NUM_SIX: 102, - var _this$props2 = this.props, - options = _this$props2.options, - selectedIndex = _this$props2.selectedIndex, - prefixCls = _this$props2.prefixCls, - onEsc = _this$props2.onEsc; - return options.map(function (item, index) { - var _classNames; + /** + * NUM_SEVEN + */ + NUM_SEVEN: 103, - var cls = (0, _classnames["default"])((_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-select-option-selected"), selectedIndex === index), _defineProperty(_classNames, "".concat(prefixCls, "-select-option-disabled"), item.disabled), _classNames)); - var onClick = item.disabled ? undefined : function () { - _this2.onSelect(item.value); - }; + /** + * NUM_EIGHT + */ + NUM_EIGHT: 104, - var onKeyDown = function onKeyDown(e) { - if (e.keyCode === 13) onClick();else if (e.keyCode === 27) onEsc(); - }; + /** + * NUM_NINE + */ + NUM_NINE: 105, - return _react["default"].createElement("li", { - role: "button", - onClick: onClick, - className: cls, - key: index, - disabled: item.disabled, - tabIndex: "0", - onKeyDown: onKeyDown - }, item.value); - }); - } - }, { - key: "scrollToSelected", - value: function scrollToSelected(duration) { - // move to selected item - var selectedIndex = this.props.selectedIndex; + /** + * NUM_MULTIPLY + */ + NUM_MULTIPLY: 106, - var select = _reactDom["default"].findDOMNode(this); + /** + * NUM_PLUS + */ + NUM_PLUS: 107, - var list = _reactDom["default"].findDOMNode(this.list); + /** + * NUM_MINUS + */ + NUM_MINUS: 109, - if (!list) { - return; - } + /** + * NUM_PERIOD + */ + NUM_PERIOD: 110, - var index = selectedIndex; + /** + * NUM_DIVISION + */ + NUM_DIVISION: 111, - if (index < 0) { - index = 0; - } + /** + * F1 + */ + F1: 112, - var topOption = list.children[index]; - var to = topOption.offsetTop; - scrollTo(select, to, duration); - } - }, { - key: "render", - value: function render() { - var _this$props3 = this.props, - prefixCls = _this$props3.prefixCls, - options = _this$props3.options; - var active = this.state.active; + /** + * F2 + */ + F2: 113, - if (options.length === 0) { - return null; - } + /** + * F3 + */ + F3: 114, - var cls = (0, _classnames["default"])("".concat(prefixCls, "-select"), _defineProperty({}, "".concat(prefixCls, "-select-active"), active)); - return _react["default"].createElement("div", { - className: cls, - onMouseEnter: this.handleMouseEnter, - onMouseLeave: this.handleMouseLeave - }, _react["default"].createElement("ul", { - ref: this.saveList - }, this.getOptions())); - } - }]); + /** + * F4 + */ + F4: 115, - return Select; - }(_react.Component); + /** + * F5 + */ + F5: 116, - _defineProperty(Select, "propTypes", { - prefixCls: _propTypes["default"].string, - options: _propTypes["default"].array, - selectedIndex: _propTypes["default"].number, - type: _propTypes["default"].string, - onSelect: _propTypes["default"].func, - onMouseEnter: _propTypes["default"].func, - onEsc: _propTypes["default"].func - }); + /** + * F6 + */ + F6: 117, - var _default = Select; - exports["default"] = _default; - -/***/ }), -/* 562 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; + /** + * F7 + */ + F7: 118, - module.exports = __webpack_require__(563); - -/***/ }), -/* 563 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; + /** + * F8 + */ + F8: 119, - Object.defineProperty(exports, "__esModule", { - value: true - }); + /** + * F9 + */ + F9: 120, - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + /** + * F10 + */ + F10: 121, - var _classnames = __webpack_require__(5); + /** + * F11 + */ + F11: 122, - var _classnames2 = _interopRequireDefault(_classnames); + /** + * F12 + */ + F12: 123, - var _react = __webpack_require__(1); + /** + * NUMLOCK + */ + NUMLOCK: 144, - var _react2 = _interopRequireDefault(_react); + /** + * SEMICOLON + */ + SEMICOLON: 186, - var _beeInputGroupAddon = __webpack_require__(564); + /** + * DASH + */ + DASH: 189, - var _beeInputGroupAddon2 = _interopRequireDefault(_beeInputGroupAddon); + /** + * EQUALS + */ + EQUALS: 187, - var _InputGroupButton = __webpack_require__(566); + /** + * COMMA + */ + COMMA: 188, - var _InputGroupButton2 = _interopRequireDefault(_InputGroupButton); + /** + * PERIOD + */ + PERIOD: 190, - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + /** + * SLASH + */ + SLASH: 191, - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + /** + * APOSTROPHE + */ + APOSTROPHE: 192, - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + /** + * SINGLE_QUOTE + */ + SINGLE_QUOTE: 222, - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + /** + * OPEN_SQUARE_BRACKET + */ + OPEN_SQUARE_BRACKET: 219, - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + /** + * BACKSLASH + */ + BACKSLASH: 220, - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + /** + * CLOSE_SQUARE_BRACKET + */ + CLOSE_SQUARE_BRACKET: 221, - var defaultProps = { - clsPrefix: 'u-input-group', - simple: false - }; + /** + * WIN_KEY + */ + WIN_KEY: 224, - var InputGroup = function (_React$Component) { - _inherits(InputGroup, _React$Component); + /** + * MAC_FF_META + */ + MAC_FF_META: 224, - function InputGroup() { - _classCallCheck(this, InputGroup); + /** + * WIN_IME + */ + WIN_IME: 229, + // ======================== Function ======================== - return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); - } + /** + * whether text and modified key is entered at the same time. + */ + isTextModifyingKeyEvent: function isTextModifyingKeyEvent(e) { + var keyCode = e.keyCode; - InputGroup.prototype.render = function render() { - var _props = this.props, - className = _props.className, - clsPrefix = _props.clsPrefix, - simple = _props.simple, - others = _objectWithoutProperties(_props, ['className', 'clsPrefix', 'simple']); + if (e.altKey && !e.ctrlKey || e.metaKey || // Function keys don't generate text + keyCode >= KeyCode.F1 && keyCode <= KeyCode.F12) { + return false; + } // The following keys are quite harmless, even in combination with + // CTRL, ALT or SHIFT. - return _react2["default"].createElement('span', _extends({}, others, { - className: (0, _classnames2["default"])(className, clsPrefix, simple && 'simple') - })); - }; - return InputGroup; - }(_react2["default"].Component); + switch (keyCode) { + case KeyCode.ALT: + case KeyCode.CAPS_LOCK: + case KeyCode.CONTEXT_MENU: + case KeyCode.CTRL: + case KeyCode.DOWN: + case KeyCode.END: + case KeyCode.ESC: + case KeyCode.HOME: + case KeyCode.INSERT: + case KeyCode.LEFT: + case KeyCode.MAC_FF_META: + case KeyCode.META: + case KeyCode.NUMLOCK: + case KeyCode.NUM_CENTER: + case KeyCode.PAGE_DOWN: + case KeyCode.PAGE_UP: + case KeyCode.PAUSE: + case KeyCode.PRINT_SCREEN: + case KeyCode.RIGHT: + case KeyCode.SHIFT: + case KeyCode.UP: + case KeyCode.WIN_KEY: + case KeyCode.WIN_KEY_RIGHT: + return false; - /** - * 将InputGroupAddon与InputGroupButton组件作为InputGroup的附属组件 - */ + default: + return true; + } + }, + /** + * whether character is entered. + */ + isCharacterKey: function isCharacterKey(keyCode) { + if (keyCode >= KeyCode.ZERO && keyCode <= KeyCode.NINE) { + return true; + } - InputGroup.Addon = _beeInputGroupAddon2["default"]; - InputGroup.Button = _InputGroupButton2["default"]; - InputGroup.defaultProps = defaultProps; - exports["default"] = InputGroup; - module.exports = exports['default']; - -/***/ }), -/* 564 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; + if (keyCode >= KeyCode.NUM_ZERO && keyCode <= KeyCode.NUM_MULTIPLY) { + return true; + } - Object.defineProperty(exports, "__esModule", { - value: true - }); + if (keyCode >= KeyCode.A && keyCode <= KeyCode.Z) { + return true; + } // Safari sends zero key code for non-latin characters. - var _InputGroupAddon = __webpack_require__(565); - var _InputGroupAddon2 = _interopRequireDefault(_InputGroupAddon); + if (window.navigator.userAgent.indexOf('WebKit') !== -1 && keyCode === 0) { + return true; + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + switch (keyCode) { + case KeyCode.SPACE: + case KeyCode.QUESTION_MARK: + case KeyCode.NUM_PLUS: + case KeyCode.NUM_MINUS: + case KeyCode.NUM_PERIOD: + case KeyCode.NUM_DIVISION: + case KeyCode.SEMICOLON: + case KeyCode.DASH: + case KeyCode.EQUALS: + case KeyCode.COMMA: + case KeyCode.PERIOD: + case KeyCode.SLASH: + case KeyCode.APOSTROPHE: + case KeyCode.SINGLE_QUOTE: + case KeyCode.OPEN_SQUARE_BRACKET: + case KeyCode.BACKSLASH: + case KeyCode.CLOSE_SQUARE_BRACKET: + return true; - exports["default"] = _InputGroupAddon2["default"]; - module.exports = exports['default']; + default: + return false; + } + } + }; + var _default = KeyCode; + exports.default = _default; /***/ }), -/* 565 */ +/* 420 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -80383,61 +56553,56 @@ value: true }); - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + var _react = __webpack_require__(1); - var _classnames = __webpack_require__(5); + var _react2 = _interopRequireDefault(_react); - var _classnames2 = _interopRequireDefault(_classnames); + var _DateTHead = __webpack_require__(421); - var _react = __webpack_require__(1); + var _DateTHead2 = _interopRequireDefault(_DateTHead); - var _react2 = _interopRequireDefault(_react); + var _DateTBody = __webpack_require__(558); + + var _DateTBody2 = _interopRequireDefault(_DateTBody); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - var defaultProps = { - clsPrefix: 'u-input-group-addon' - }; - - var InputGroupAddon = function (_React$Component) { - _inherits(InputGroupAddon, _React$Component); + var DateTable = function (_React$Component) { + _inherits(DateTable, _React$Component); - function InputGroupAddon() { - _classCallCheck(this, InputGroupAddon); + function DateTable() { + _classCallCheck(this, DateTable); return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); } - InputGroupAddon.prototype.render = function render() { - var _props = this.props, - className = _props.className, - clsPrefix = _props.clsPrefix, - others = _objectWithoutProperties(_props, ['className', 'clsPrefix']); - - return _react2["default"].createElement('span', _extends({}, others, { - className: (0, _classnames2["default"])(className, clsPrefix) - })); + DateTable.prototype.render = function render() { + var props = this.props; + var prefixCls = props.prefixCls; + return _react2["default"].createElement( + 'table', + { className: prefixCls + '-table', cellSpacing: '0', role: 'grid' }, + _react2["default"].createElement(_DateTHead2["default"], props), + _react2["default"].createElement(_DateTBody2["default"], props) + ); }; - return InputGroupAddon; + return DateTable; }(_react2["default"].Component); - InputGroupAddon.defaultProps = defaultProps; - exports["default"] = InputGroupAddon; + exports["default"] = DateTable; module.exports = exports['default']; /***/ }), -/* 566 */ +/* 421 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -80446,33243 +56611,44122 @@ value: true }); - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + var _react = __webpack_require__(1); - var _classnames = __webpack_require__(5); + var _react2 = _interopRequireDefault(_react); - var _classnames2 = _interopRequireDefault(_classnames); + var _DateConstants = __webpack_require__(422); - var _react = __webpack_require__(1); + var _DateConstants2 = _interopRequireDefault(_DateConstants); - var _react2 = _interopRequireDefault(_react); + var _moment = __webpack_require__(423); + + var _moment2 = _interopRequireDefault(_moment); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - var defaultProps = { - clsPrefix: 'u-input-group-btn' - }; - - var InputGroupButton = function (_React$Component) { - _inherits(InputGroupButton, _React$Component); + var DateTHead = function (_React$Component) { + _inherits(DateTHead, _React$Component); - function InputGroupButton() { - _classCallCheck(this, InputGroupButton); + function DateTHead() { + _classCallCheck(this, DateTHead); return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); } - InputGroupButton.prototype.render = function render() { - var _props = this.props, - className = _props.className, - clsPrefix = _props.clsPrefix, - others = _objectWithoutProperties(_props, ['className', 'clsPrefix']); + DateTHead.prototype.render = function render() { + var props = this.props; + var value = props.value; + var localeData = value.localeData(); + var prefixCls = props.prefixCls; + var veryShortWeekdays = []; + var weekDays = []; + var firstDayOfWeek = localeData.firstDayOfWeek(); + var showWeekNumberEl = void 0; + var now = (0, _moment2["default"])(); + for (var dateColIndex = 0; dateColIndex < _DateConstants2["default"].DATE_COL_COUNT; dateColIndex++) { + var index = (firstDayOfWeek + dateColIndex) % _DateConstants2["default"].DATE_COL_COUNT; + now.day(index); + veryShortWeekdays[dateColIndex] = localeData.weekdaysMin(now); + weekDays[dateColIndex] = localeData.weekdaysShort(now); + } - return _react2["default"].createElement('span', _extends({}, others, { - className: (0, _classnames2["default"])(className, clsPrefix) - })); + if (props.showWeekNumber) { + showWeekNumberEl = _react2["default"].createElement( + 'th', + { + role: 'columnheader', + className: prefixCls + '-column-header ' + prefixCls + '-week-number-header' + }, + _react2["default"].createElement( + 'span', + { className: prefixCls + '-column-header-inner' }, + 'x' + ) + ); + } + var weekDaysEls = weekDays.map(function (day, xindex) { + return _react2["default"].createElement( + 'th', + { + key: xindex, + role: 'columnheader', + title: day, + className: prefixCls + '-column-header' + }, + _react2["default"].createElement( + 'span', + { className: prefixCls + '-column-header-inner' }, + veryShortWeekdays[xindex] + ) + ); + }); + return _react2["default"].createElement( + 'thead', + null, + _react2["default"].createElement( + 'tr', + { role: 'row' }, + showWeekNumberEl, + weekDaysEls + ) + ); }; - return InputGroupButton; + return DateTHead; }(_react2["default"].Component); - InputGroupButton.defaultProps = defaultProps; - exports["default"] = InputGroupButton; + exports["default"] = DateTHead; module.exports = exports['default']; /***/ }), -/* 567 */ +/* 422 */ /***/ (function(module, exports) { - 'use strict'; - - exports.__esModule = true; - exports['default'] = { - today: '今天', - now: '此刻', - backToToday: '返回今天', - ok: '确定', - timeSelect: '选择时间', - dateSelect: '选择日期', - weekSelect: '选择周', - clear: '清除', - month: '月', - year: '年', - previousMonth: '上个月 (翻页上键)', - nextMonth: '下个月 (翻页下键)', - monthSelect: '选择月份', - yearSelect: '选择年份', - decadeSelect: '选择年代', - yearFormat: 'YYYY年', - dayFormat: 'D日', - dateFormat: 'YYYY年M月D日', - dateTimeFormat: 'YYYY年M月D日 HH时mm分ss秒', - previousYear: '上一年 (Control键加左方向键)', - nextYear: '下一年 (Control键加右方向键)', - previousDecade: '上一年代', - nextDecade: '下一年代', - previousCentury: '上一世纪', - nextCentury: '下一世纪' - }; - module.exports = exports['default']; - -/***/ }), -/* 568 */ -/***/ (function(module, exports, __webpack_require__) { - "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - - var _extends2 = __webpack_require__(316); - - var _extends3 = _interopRequireDefault(_extends2); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - - function omit(obj, fields) { - var shallowCopy = (0, _extends3["default"])({}, obj); - for (var i = 0; i < fields.length; i++) { - var key = fields[i]; - delete shallowCopy[key]; - } - return shallowCopy; - } - - exports["default"] = omit; - module.exports = exports['default']; + exports["default"] = { + DATE_ROW_COUNT: 6, + DATE_COL_COUNT: 7 + }; + module.exports = exports["default"]; /***/ }), -/* 569 */ +/* 423 */ /***/ (function(module, exports, __webpack_require__) { - "use strict"; - - Object.defineProperty(exports, "__esModule", { - value: true - }); + var require;/* WEBPACK VAR INJECTION */(function(module) {//! moment.js + //! version : 2.27.0 + //! authors : Tim Wood, Iskren Chernev, Moment.js contributors + //! license : MIT + //! momentjs.com - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + ;(function (global, factory) { + true ? module.exports = factory() : + typeof define === 'function' && define.amd ? define(factory) : + global.moment = factory() + }(this, (function () { 'use strict'; - var _MonthCalendar = __webpack_require__(570); + var hookCallback; - var _MonthCalendar2 = _interopRequireDefault(_MonthCalendar); + function hooks() { + return hookCallback.apply(null, arguments); + } - var _tinperBeeCore = __webpack_require__(27); + // This is done to register the method called with moment() + // without creating circular dependencies. + function setHookCallback(callback) { + hookCallback = callback; + } - var _react = __webpack_require__(1); + function isArray(input) { + return ( + input instanceof Array || + Object.prototype.toString.call(input) === '[object Array]' + ); + } - var _react2 = _interopRequireDefault(_react); + function isObject(input) { + // IE8 will treat undefined and null as object if it wasn't for + // input != null + return ( + input != null && + Object.prototype.toString.call(input) === '[object Object]' + ); + } - var _reactDom = __webpack_require__(2); + function hasOwnProp(a, b) { + return Object.prototype.hasOwnProperty.call(a, b); + } - var _reactDom2 = _interopRequireDefault(_reactDom); + function isObjectEmpty(obj) { + if (Object.getOwnPropertyNames) { + return Object.getOwnPropertyNames(obj).length === 0; + } else { + var k; + for (k in obj) { + if (hasOwnProp(obj, k)) { + return false; + } + } + return true; + } + } - var _Picker = __webpack_require__(556); + function isUndefined(input) { + return input === void 0; + } - var _Picker2 = _interopRequireDefault(_Picker); + function isNumber(input) { + return ( + typeof input === 'number' || + Object.prototype.toString.call(input) === '[object Number]' + ); + } - var _beeFormControl = __webpack_require__(268); + function isDate(input) { + return ( + input instanceof Date || + Object.prototype.toString.call(input) === '[object Date]' + ); + } - var _beeFormControl2 = _interopRequireDefault(_beeFormControl); + function map(arr, fn) { + var res = [], + i; + for (i = 0; i < arr.length; ++i) { + res.push(fn(arr[i], i)); + } + return res; + } - var _beeIcon = __webpack_require__(67); + function extend(a, b) { + for (var i in b) { + if (hasOwnProp(b, i)) { + a[i] = b[i]; + } + } - var _beeIcon2 = _interopRequireDefault(_beeIcon); + if (hasOwnProp(b, 'toString')) { + a.toString = b.toString; + } - var _beeInputGroup = __webpack_require__(562); + if (hasOwnProp(b, 'valueOf')) { + a.valueOf = b.valueOf; + } - var _beeInputGroup2 = _interopRequireDefault(_beeInputGroup); + return a; + } - var _classnames = __webpack_require__(5); + function createUTC(input, format, locale, strict) { + return createLocalOrUTC(input, format, locale, strict, true).utc(); + } - var _classnames2 = _interopRequireDefault(_classnames); + function defaultParsingFlags() { + // We need to deep clone this object. + return { + empty: false, + unusedTokens: [], + unusedInput: [], + overflow: -2, + charsLeftOver: 0, + nullInput: false, + invalidEra: null, + invalidMonth: null, + invalidFormat: false, + userInvalidated: false, + iso: false, + parsedDateParts: [], + era: null, + meridiem: null, + rfc2822: false, + weekdayMismatch: false, + }; + } - var _zh_CN = __webpack_require__(567); + function getParsingFlags(m) { + if (m._pf == null) { + m._pf = defaultParsingFlags(); + } + return m._pf; + } - var _zh_CN2 = _interopRequireDefault(_zh_CN); + var some; + if (Array.prototype.some) { + some = Array.prototype.some; + } else { + some = function (fun) { + var t = Object(this), + len = t.length >>> 0, + i; - var _omit = __webpack_require__(568); + for (i = 0; i < len; i++) { + if (i in t && fun.call(this, t[i], i, t)) { + return true; + } + } - var _omit2 = _interopRequireDefault(_omit); + return false; + }; + } - var _moment = __webpack_require__(404); + function isValid(m) { + if (m._isValid == null) { + var flags = getParsingFlags(m), + parsedParts = some.call(flags.parsedDateParts, function (i) { + return i != null; + }), + isNowValid = + !isNaN(m._d.getTime()) && + flags.overflow < 0 && + !flags.empty && + !flags.invalidEra && + !flags.invalidMonth && + !flags.invalidWeekday && + !flags.weekdayMismatch && + !flags.nullInput && + !flags.invalidFormat && + !flags.userInvalidated && + (!flags.meridiem || (flags.meridiem && parsedParts)); - var _moment2 = _interopRequireDefault(_moment); + if (m._strict) { + isNowValid = + isNowValid && + flags.charsLeftOver === 0 && + flags.unusedTokens.length === 0 && + flags.bigHour === undefined; + } - var _util = __webpack_require__(540); + if (Object.isFrozen == null || !Object.isFrozen(m)) { + m._isValid = isNowValid; + } else { + return isNowValid; + } + } + return m._isValid; + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + function createInvalid(flags) { + var m = createUTC(NaN); + if (flags != null) { + extend(getParsingFlags(m), flags); + } else { + getParsingFlags(m).userInvalidated = true; + } - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + return m; + } - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + // Plugins that add properties should also add the key here (null value), + // so we can properly clone ourselves. + var momentProperties = (hooks.momentProperties = []), + updateInProgress = false; - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + function copyConfig(to, from) { + var i, prop, val; - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + if (!isUndefined(from._isAMomentObject)) { + to._isAMomentObject = from._isAMomentObject; + } + if (!isUndefined(from._i)) { + to._i = from._i; + } + if (!isUndefined(from._f)) { + to._f = from._f; + } + if (!isUndefined(from._l)) { + to._l = from._l; + } + if (!isUndefined(from._strict)) { + to._strict = from._strict; + } + if (!isUndefined(from._tzm)) { + to._tzm = from._tzm; + } + if (!isUndefined(from._isUTC)) { + to._isUTC = from._isUTC; + } + if (!isUndefined(from._offset)) { + to._offset = from._offset; + } + if (!isUndefined(from._pf)) { + to._pf = getParsingFlags(from); + } + if (!isUndefined(from._locale)) { + to._locale = from._locale; + } - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** - * Created by chief on 17/4/6. - */ + if (momentProperties.length > 0) { + for (i = 0; i < momentProperties.length; i++) { + prop = momentProperties[i]; + val = from[prop]; + if (!isUndefined(val)) { + to[prop] = val; + } + } + } - var MonthPicker = function (_Component) { - _inherits(MonthPicker, _Component); + return to; + } - function MonthPicker(props, context) { - _classCallCheck(this, MonthPicker); + // Moment prototype object + function Moment(config) { + copyConfig(this, config); + this._d = new Date(config._d != null ? config._d.getTime() : NaN); + if (!this.isValid()) { + this._d = new Date(NaN); + } + // Prevent infinite loop in case updateOffset creates new moment + // objects. + if (updateInProgress === false) { + updateInProgress = true; + hooks.updateOffset(this); + updateInProgress = false; + } + } - var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); + function isMoment(obj) { + return ( + obj instanceof Moment || (obj != null && obj._isAMomentObject != null) + ); + } - _initialiseProps.call(_this); + function warn(msg) { + if ( + hooks.suppressDeprecationWarnings === false && + typeof console !== 'undefined' && + console.warn + ) { + console.warn('Deprecation warning: ' + msg); + } + } - _this.state = { - type: "month", - value: props.value || props.defaultValue, - open: false, - showClose: false - }; - return _this; - } + function deprecate(msg, fn) { + var firstTime = true; - MonthPicker.prototype.componentDidMount = function componentDidMount() { - var value = this.props.value || this.props.defaultValue; - if (value) { - if (typeof value == 'string') { - if ((0, _moment2["default"])(value).isValid()) { - value = (0, _moment2["default"])(value); - } else { - console.error('value is not in the correct format'); - value = ''; - } - } else if (value.format && value.isValid()) { - value = value; - } else { - console.error('value is not in the correct format'); - value = ''; - } + return extend(function () { + if (hooks.deprecationHandler != null) { + hooks.deprecationHandler(null, msg); + } + if (firstTime) { + var args = [], + arg, + i, + key; + for (i = 0; i < arguments.length; i++) { + arg = ''; + if (typeof arguments[i] === 'object') { + arg += '\n[' + i + '] '; + for (key in arguments[0]) { + if (hasOwnProp(arguments[0], key)) { + arg += key + ': ' + arguments[0][key] + ', '; + } + } + arg = arg.slice(0, -2); // Remove trailing comma and space + } else { + arg = arguments[i]; + } + args.push(arg); + } + warn( + msg + + '\nArguments: ' + + Array.prototype.slice.call(args).join('') + + '\n' + + new Error().stack + ); + firstTime = false; + } + return fn.apply(this, arguments); + }, fn); } - this.setState({ - value: value - }); - }; - MonthPicker.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - if ('value' in nextProps) { - var value = nextProps.value; - if (value) { - if (value.format && value.isValid()) {} else { - value = (0, _moment2["default"])(value); + var deprecations = {}; + + function deprecateSimple(name, msg) { + if (hooks.deprecationHandler != null) { + hooks.deprecationHandler(name, msg); + } + if (!deprecations[name]) { + warn(msg); + deprecations[name] = true; } - } else { - value = ''; - } - this.setState({ - value: value - }); } - }; - //阻止组件内部事件冒泡到组件外部容器 + hooks.suppressDeprecationWarnings = false; + hooks.deprecationHandler = null; - MonthPicker.prototype.render = function render() { - var _this2 = this; - - var state = this.state; - var props = this.props; + function isFunction(input) { + return ( + (typeof Function !== 'undefined' && input instanceof Function) || + Object.prototype.toString.call(input) === '[object Function]' + ); + } - var showClose = props.showClose, - value = props.value, - others = _objectWithoutProperties(props, ["showClose", "value"]); + function set(config) { + var prop, i; + for (i in config) { + if (hasOwnProp(config, i)) { + prop = config[i]; + if (isFunction(prop)) { + this[i] = prop; + } else { + this['_' + i] = prop; + } + } + } + this._config = config; + // Lenient ordinal parsing accepts just a number in addition to + // number + (possibly) stuff coming from _dayOfMonthOrdinalParse. + // TODO: Remove "ordinalParse" fallback in next major release. + this._dayOfMonthOrdinalParseLenient = new RegExp( + (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + + '|' + + /\d{1,2}/.source + ); + } - var monthCalendar = _react2["default"].createElement(_MonthCalendar2["default"], _extends({}, props, { - value: state.value, - onChange: this.handleCalendarChange - })); - var classes = (0, _classnames2["default"])(props.className, "datepicker-container"); - return _react2["default"].createElement( - "div", - _extends({ className: classes, onClick: this.stopPropagation, onMouseOver: this.stopPropagation - }, (0, _omit2["default"])(others, ['closeIcon', 'renderIcon', 'format', 'showDateInput', 'showMonthInput', 'locale', 'placeholder', 'onClear', 'renderFooter', 'renderError', 'disabledDate', 'disabledTime'])), - _react2["default"].createElement( - _Picker2["default"], - _extends({}, props, { - onOpenChange: this.onOpenChange, - animation: 'animation' in props ? props.animation : "slide-up", - calendar: monthCalendar, - open: this.state.open, - value: state.value, - onChange: this.onChange, - dropdownClassName: props.dropdownClassName, - selectedValue: state.value, - renderError: props.renderError - }), - function (_ref) { - var value = _ref.value; + function mergeConfigs(parentConfig, childConfig) { + var res = extend({}, parentConfig), + prop; + for (prop in childConfig) { + if (hasOwnProp(childConfig, prop)) { + if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) { + res[prop] = {}; + extend(res[prop], parentConfig[prop]); + extend(res[prop], childConfig[prop]); + } else if (childConfig[prop] != null) { + res[prop] = childConfig[prop]; + } else { + delete res[prop]; + } + } + } + for (prop in parentConfig) { + if ( + hasOwnProp(parentConfig, prop) && + !hasOwnProp(childConfig, prop) && + isObject(parentConfig[prop]) + ) { + // make sure changes to properties don't modify parent config + res[prop] = extend({}, res[prop]); + } + } + return res; + } - if (value && value.format) value = (0, _util.formatDate)(value, props.format); - return _react2["default"].createElement( - _beeInputGroup2["default"], - { simple: true, className: "datepicker-input-group", - onMouseEnter: _this2.onMouseEnter, - onMouseLeave: _this2.onMouseLeave - }, - _react2["default"].createElement(_beeFormControl2["default"], { - ref: function ref(_ref2) { - return _this2.outInput = _ref2; - }, - placeholder: _this2.props.placeholder, - className: _this2.props.className, - value: value, - disabled: props.disabled - }), - showClose && _this2.state.value && _this2.state.showClose && !props.disabled ? _react2["default"].createElement( - _beeInputGroup2["default"].Button, - { shape: "border", - onClick: _this2.clear }, - props.closeIcon() - ) : _react2["default"].createElement( - _beeInputGroup2["default"].Button, - { shape: "border" }, - props.renderIcon() - ) - ); + function Locale(config) { + if (config != null) { + this.set(config); } - ) - ); - }; + } - return MonthPicker; - }(_react.Component); + var keys; - var _initialiseProps = function _initialiseProps() { - var _this3 = this; + if (Object.keys) { + keys = Object.keys; + } else { + keys = function (obj) { + var i, + res = []; + for (i in obj) { + if (hasOwnProp(obj, i)) { + res.push(i); + } + } + return res; + }; + } - this.handleCalendarChange = function (value) { - _this3.setState({ - value: value && _extends(value, { _type: 'month' }) || value - }); - }; + var defaultCalendar = { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L', + }; - this.onChange = function (value) { - var _props = _this3.props, - onChange = _props.onChange, - onClear = _props.onClear, - onSelect = _props.onSelect, - format = _props.format; + function calendar(key, mom, now) { + var output = this._calendar[key] || this._calendar['sameElse']; + return isFunction(output) ? output.call(mom, now) : output; + } + function zeroFill(number, targetLength, forceSign) { + var absNumber = '' + Math.abs(number), + zerosToFill = targetLength - absNumber.length, + sign = number >= 0; + return ( + (sign ? (forceSign ? '+' : '') : '-') + + Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + + absNumber + ); + } - _this3.setState({ - value: value && _extends(value, { _type: 'month' }) || value - }); - onChange && onChange(value, value ? (0, _util.formatDate)(value, format) : ''); - }; + var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, + localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, + formatFunctions = {}, + formatTokenFunctions = {}; - this.inputFocus = function () { - var self = _this3; - var format = self.props.format; + // token: 'M' + // padded: ['MM', 2] + // ordinal: 'Mo' + // callback: function () { this.month() + 1 } + function addFormatToken(token, padded, ordinal, callback) { + var func = callback; + if (typeof callback === 'string') { + func = function () { + return this[callback](); + }; + } + if (token) { + formatTokenFunctions[token] = func; + } + if (padded) { + formatTokenFunctions[padded[0]] = function () { + return zeroFill(func.apply(this, arguments), padded[1], padded[2]); + }; + } + if (ordinal) { + formatTokenFunctions[ordinal] = function () { + return this.localeData().ordinal( + func.apply(this, arguments), + token + ); + }; + } + } - var input = document.querySelector('.rc-calendar-input'); - if (input) { - if (input.value) { - input.select(); - } else { - input.focus(); - } - input.onkeydown = function (e) { - if (e.keyCode == _tinperBeeCore.KeyCode.DELETE) { - input.value = ''; - self.props.onChange && self.props.onChange('', ''); - } else if (e.keyCode == _tinperBeeCore.KeyCode.ESC) { - self.setState({ - open: false - }); - var v = self.state.value; - self.props.onOpenChange && self.props.onOpenChange(false, v, v && (0, _util.formatDate)(v, self.props.format) || ''); - _reactDom2["default"].findDOMNode(self.outInput).focus(); // 按esc时候焦点回到input输入框 - } else if (e.keyCode == _tinperBeeCore.KeyCode.ENTER) { - var parsed = (0, _moment2["default"])(input.value, format, true); - if (parsed.isValid()) { - self.setState({ - open: false - }); - var _v = self.state.value; - self.props.onOpenChange && self.props.onOpenChange(false, _v, _v && (0, _util.formatDate)(_v, format) || ''); - _reactDom2["default"].findDOMNode(self.outInput).focus(); - } + function removeFormattingTokens(input) { + if (input.match(/\[[\s\S]/)) { + return input.replace(/^\[|\]$/g, ''); } - }; + return input.replace(/\\/g, ''); } - }; - this.onOpenChange = function (open) { - var props = _this3.props; - var self = _this3; - _this3.setState({ - open: open - }, function () { - if (open) { - setTimeout(function () { - self.inputFocus(); - }, 0); - } - }); - var value = self.state.value; - props.onOpenChange && props.onOpenChange(open, value, value && (0, _util.formatDate)(value, self.props.format) || ''); - if (open) { - setTimeout(function () { - self.inputFocus(); - }, 200); + function makeFormatFunction(format) { + var array = format.match(formattingTokens), + i, + length; + + for (i = 0, length = array.length; i < length; i++) { + if (formatTokenFunctions[array[i]]) { + array[i] = formatTokenFunctions[array[i]]; + } else { + array[i] = removeFormattingTokens(array[i]); + } + } + + return function (mom) { + var output = '', + i; + for (i = 0; i < length; i++) { + output += isFunction(array[i]) + ? array[i].call(mom, format) + : array[i]; + } + return output; + }; } - }; - this.onTypeChange = function (type) { - _this3.setState({ - type: type - }); - }; + // format date using native date object + function formatMoment(m, format) { + if (!m.isValid()) { + return m.localeData().invalidDate(); + } - this.onMouseLeave = function (e) { - _this3.setState({ - showClose: false - }); - }; + format = expandFormat(format, m.localeData()); + formatFunctions[format] = + formatFunctions[format] || makeFormatFunction(format); - this.onMouseEnter = function (e) { - _this3.setState({ - showClose: true - }); - }; + return formatFunctions[format](m); + } - this.clear = function (e) { - e.stopPropagation(); - _this3.setState({ - value: '' - }); - _this3.props.onChange && _this3.props.onChange('', ''); - }; + function expandFormat(format, locale) { + var i = 5; - this.stopPropagation = function (e) { - e.stopPropagation(); - }; - }; + function replaceLongDateFormatTokens(input) { + return locale.longDateFormat(input) || input; + } - MonthPicker.defaultProps = { - closeIcon: function closeIcon() { - return _react2["default"].createElement(_beeIcon2["default"], { type: "uf-close-c" }); - }, - renderIcon: function renderIcon() { - return _react2["default"].createElement(_beeIcon2["default"], { type: "uf-calendar" }); - }, - format: 'YYYY-MM', - renderError: function renderError() {}, - showDateInput: true, - showMonthInput: true, - locale: _zh_CN2["default"], - showClose: true, - validatorFunc: function validatorFunc() { - return true; - } - }; + localFormattingTokens.lastIndex = 0; + while (i >= 0 && localFormattingTokens.test(format)) { + format = format.replace( + localFormattingTokens, + replaceLongDateFormatTokens + ); + localFormattingTokens.lastIndex = 0; + i -= 1; + } - exports["default"] = MonthPicker; - module.exports = exports["default"]; - -/***/ }), -/* 570 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; + return format; + } - Object.defineProperty(exports, "__esModule", { - value: true - }); + var defaultLongDateFormat = { + LTS: 'h:mm:ss A', + LT: 'h:mm A', + L: 'MM/DD/YYYY', + LL: 'MMMM D, YYYY', + LLL: 'MMMM D, YYYY h:mm A', + LLLL: 'dddd, MMMM D, YYYY h:mm A', + }; - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + function longDateFormat(key) { + var format = this._longDateFormat[key], + formatUpper = this._longDateFormat[key.toUpperCase()]; - var _react = __webpack_require__(1); + if (format || !formatUpper) { + return format; + } - var _react2 = _interopRequireDefault(_react); + this._longDateFormat[key] = formatUpper + .match(formattingTokens) + .map(function (tok) { + if ( + tok === 'MMMM' || + tok === 'MM' || + tok === 'DD' || + tok === 'dddd' + ) { + return tok.slice(1); + } + return tok; + }) + .join(''); - var _propTypes = __webpack_require__(6); + return this._longDateFormat[key]; + } - var _propTypes2 = _interopRequireDefault(_propTypes); + var defaultInvalidDate = 'Invalid date'; - var _KeyCode = __webpack_require__(400); + function invalidDate() { + return this._invalidDate; + } - var _KeyCode2 = _interopRequireDefault(_KeyCode); + var defaultOrdinal = '%d', + defaultDayOfMonthOrdinalParse = /\d{1,2}/; - var _CalendarHeader = __webpack_require__(541); + function ordinal(number) { + return this._ordinal.replace('%d', number); + } - var _CalendarHeader2 = _interopRequireDefault(_CalendarHeader); + var defaultRelativeTime = { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + ss: '%d seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + w: 'a week', + ww: '%d weeks', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years', + }; - var _CalendarFooter = __webpack_require__(548); + function relativeTime(number, withoutSuffix, string, isFuture) { + var output = this._relativeTime[string]; + return isFunction(output) + ? output(number, withoutSuffix, string, isFuture) + : output.replace(/%d/i, number); + } - var _CalendarFooter2 = _interopRequireDefault(_CalendarFooter); + function pastFuture(diff, output) { + var format = this._relativeTime[diff > 0 ? 'future' : 'past']; + return isFunction(format) ? format(output) : format.replace(/%s/i, output); + } - var _CalendarMixin = __webpack_require__(552); + var aliases = {}; - var _CommonMixin = __webpack_require__(553); + function addUnitAlias(unit, shorthand) { + var lowerCase = unit.toLowerCase(); + aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit; + } - var _DateInput = __webpack_require__(545); + function normalizeUnits(units) { + return typeof units === 'string' + ? aliases[units] || aliases[units.toLowerCase()] + : undefined; + } - var _DateInput2 = _interopRequireDefault(_DateInput); + function normalizeObjectUnits(inputObject) { + var normalizedInput = {}, + normalizedProp, + prop; - var _moment = __webpack_require__(404); + for (prop in inputObject) { + if (hasOwnProp(inputObject, prop)) { + normalizedProp = normalizeUnits(prop); + if (normalizedProp) { + normalizedInput[normalizedProp] = inputObject[prop]; + } + } + } - var _moment2 = _interopRequireDefault(_moment); + return normalizedInput; + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var priorities = {}; - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + function addUnitPriority(unit, priority) { + priorities[unit] = priority; + } - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + function getPrioritizedUnits(unitsObj) { + var units = [], + u; + for (u in unitsObj) { + if (hasOwnProp(unitsObj, u)) { + units.push({ unit: u, priority: priorities[u] }); + } + } + units.sort(function (a, b) { + return a.priority - b.priority; + }); + return units; + } - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + function isLeapYear(year) { + return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0; + } - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + function absFloor(number) { + if (number < 0) { + // -0 -> 0 + return Math.ceil(number) || 0; + } else { + return Math.floor(number); + } + } - var MonthCalendar = function (_React$Component) { - _inherits(MonthCalendar, _React$Component); + function toInt(argumentForCoercion) { + var coercedNumber = +argumentForCoercion, + value = 0; - function MonthCalendar(props) { - _classCallCheck(this, MonthCalendar); + if (coercedNumber !== 0 && isFinite(coercedNumber)) { + value = absFloor(coercedNumber); + } - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); + return value; + } - _this.onKeyDown = function (event) { - if (event.target.nodeName.toLowerCase() === 'input') { - return undefined; - } else { - _this.props.onKeyDown && _this.props.onKeyDown(event); - } - var keyCode = event.keyCode; - var ctrlKey = event.ctrlKey || event.metaKey; - var stateValue = _this.state.value; - var disabledDate = _this.props.disabledDate; + function makeGetSet(unit, keepTime) { + return function (value) { + if (value != null) { + set$1(this, unit, value); + hooks.updateOffset(this, keepTime); + return this; + } else { + return get(this, unit); + } + }; + } - var value = stateValue; - switch (keyCode) { - case _KeyCode2["default"].DOWN: - value = stateValue.clone(); - value.add(3, 'months'); - break; - case _KeyCode2["default"].UP: - value = stateValue.clone(); - value.add(-3, 'months'); - break; - case _KeyCode2["default"].LEFT: - value = stateValue.clone(); - if (ctrlKey) { - value.add(-1, 'years'); - } else { - value.add(-1, 'months'); - } - break; - case _KeyCode2["default"].RIGHT: - value = stateValue.clone(); - if (ctrlKey) { - value.add(1, 'years'); - } else { - value.add(1, 'months'); - } - break; - case _KeyCode2["default"].ENTER: - if (!disabledDate || !disabledDate(stateValue)) { - _this.onSelect(stateValue); - } - event.preventDefault(); - return 1; - default: - return undefined; - } - if (value !== stateValue) { - _this.setValue(value); - event.preventDefault(); - return 1; - } - }; + function get(mom, unit) { + return mom.isValid() + ? mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]() + : NaN; + } - _this.handlePanelChange = function (_, mode) { - if (mode !== 'date') { - _this.setState({ mode: mode }); - } - }; + function set$1(mom, unit, value) { + if (mom.isValid() && !isNaN(value)) { + if ( + unit === 'FullYear' && + isLeapYear(mom.year()) && + mom.month() === 1 && + mom.date() === 29 + ) { + value = toInt(value); + mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit]( + value, + mom.month(), + daysInMonth(value, mom.month()) + ); + } else { + mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value); + } + } + } - _this.onInputChange = function (value) { - var _this$props = _this.props, - onChange = _this$props.onChange, - format = _this$props.format; + // MOMENTS - _this.setState({ - value: value ? value : (0, _moment2["default"])() - }); - _this.setValue(value); - onChange && onChange(value); - }; + function stringGet(units) { + units = normalizeUnits(units); + if (isFunction(this[units])) { + return this[units](); + } + return this; + } - _this.onClear = function () { - var _this$props2 = _this.props, - onChange = _this$props2.onChange, - format = _this$props2.format, - onClear = _this$props2.onClear; + function stringSet(units, value) { + if (typeof units === 'object') { + units = normalizeObjectUnits(units); + var prioritized = getPrioritizedUnits(units), + i; + for (i = 0; i < prioritized.length; i++) { + this[prioritized[i].unit](units[prioritized[i].unit]); + } + } else { + units = normalizeUnits(units); + if (isFunction(this[units])) { + return this[units](value); + } + } + return this; + } - _this.setState({ - value: (0, _moment2["default"])() - }); - _this.setValue((0, _moment2["default"])()); - onChange && onChange('', ''); - onClear && onClear('', ''); - }; + var match1 = /\d/, // 0 - 9 + match2 = /\d\d/, // 00 - 99 + match3 = /\d{3}/, // 000 - 999 + match4 = /\d{4}/, // 0000 - 9999 + match6 = /[+-]?\d{6}/, // -999999 - 999999 + match1to2 = /\d\d?/, // 0 - 99 + match3to4 = /\d\d\d\d?/, // 999 - 9999 + match5to6 = /\d\d\d\d\d\d?/, // 99999 - 999999 + match1to3 = /\d{1,3}/, // 0 - 999 + match1to4 = /\d{1,4}/, // 0 - 9999 + match1to6 = /[+-]?\d{1,6}/, // -999999 - 999999 + matchUnsigned = /\d+/, // 0 - inf + matchSigned = /[+-]?\d+/, // -inf - inf + matchOffset = /Z|[+-]\d\d:?\d\d/gi, // +00:00 -00:00 +0000 -0000 or Z + matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi, // +00 -00 +00:00 -00:00 +0000 -0000 or Z + matchTimestamp = /[+-]?\d+(\.\d{1,3})?/, // 123456789 123456789.123 + // any word (or two) characters or numbers including two/three word month in arabic. + // includes scottish gaelic two word and hyphenated months + matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, + regexes; - _this.state = { - mode: 'month', - value: props.value || props.defaultValue || (0, _moment2["default"])(), - selectedValue: props.selectedValue || props.defaultSelectedValue - }; - return _this; - } + regexes = {}; - MonthCalendar.prototype.render = function render() { - var props = this.props, - state = this.state; - var mode = state.mode, - value = state.value; + function addRegexToken(token, regex, strictRegex) { + regexes[token] = isFunction(regex) + ? regex + : function (isStrict, localeData) { + return isStrict && strictRegex ? strictRegex : regex; + }; + } - value = value ? value : (0, _moment2["default"])(); - var prefixCls = props.prefixCls, - locale = props.locale, - format = props.format, - showDateInput = props.showDateInput, - onChange = props.onChange, - onSelect = props.onSelect, - onClear = props.onClear, - showMonthInput = props.showMonthInput, - renderError = props.renderError, - validatorFunc = props.validatorFunc; + function getParseRegexForToken(token, config) { + if (!hasOwnProp(regexes, token)) { + return new RegExp(unescapeFormat(token)); + } - var children = _react2["default"].createElement( - 'div', - { className: props.prefixCls + '-month-calendar-content' }, - _react2["default"].createElement( - 'div', - { className: props.prefixCls + '-month-header-wrap' }, - showDateInput && showMonthInput ? _react2["default"].createElement(_DateInput2["default"], { - value: value, - prefixCls: prefixCls, - showClear: true, - locale: locale, - format: format, - onChange: this.onInputChange, - selectedValue: value, - onClear: this.onClear, - renderError: renderError, - validatorFunc: validatorFunc - }) : '', - _react2["default"].createElement(_CalendarHeader2["default"], { - prefixCls: props.prefixCls, - mode: mode, - value: value, - locale: props.locale, - disabledMonth: props.disabledDate, - monthCellRender: props.monthCellRender, - monthCellContentRender: props.monthCellContentRender, - onMonthSelect: this.onSelect, - onValueChange: this.setValue, - onPanelChange: this.handlePanelChange, - onChange: onChange, - onClear: onClear - }) - ), - _react2["default"].createElement(_CalendarFooter2["default"], { - prefixCls: props.prefixCls, - renderFooter: props.renderFooter - }) - ); - return this.renderRoot({ - className: props.prefixCls + '-month-calendar', - children: children - }); - }; + return regexes[token](config._strict, config._locale); + } - return MonthCalendar; - }(_react2["default"].Component); + // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript + function unescapeFormat(s) { + return regexEscape( + s + .replace('\\', '') + .replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function ( + matched, + p1, + p2, + p3, + p4 + ) { + return p1 || p2 || p3 || p4; + }) + ); + } - MonthCalendar.propTypes = _extends({}, _CalendarMixin.calendarMixinPropTypes, _CommonMixin.propType, { - monthCellRender: _propTypes2["default"].func, - dateCellRender: _propTypes2["default"].func, - value: _propTypes2["default"].object, - defaultValue: _propTypes2["default"].object, - selectedValue: _propTypes2["default"].object, - defaultSelectedValue: _propTypes2["default"].object, - disabledDate: _propTypes2["default"].func - }); - MonthCalendar.defaultProps = _extends({ - showDateInput: false - }, _CommonMixin.defaultProp, _CalendarMixin.calendarMixinDefaultProps); - exports["default"] = (0, _CalendarMixin.calendarMixinWrapper)((0, _CommonMixin.commonMixinWrapper)(MonthCalendar)); - module.exports = exports['default']; - -/***/ }), -/* 571 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; + function regexEscape(s) { + return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'); + } - Object.defineProperty(exports, "__esModule", { - value: true - }); + var tokens = {}; - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + function addParseToken(token, callback) { + var i, + func = callback; + if (typeof token === 'string') { + token = [token]; + } + if (isNumber(callback)) { + func = function (input, array) { + array[callback] = toInt(input); + }; + } + for (i = 0; i < token.length; i++) { + tokens[token[i]] = func; + } + } - var _react = __webpack_require__(1); + function addWeekParseToken(token, callback) { + addParseToken(token, function (input, array, config, token) { + config._w = config._w || {}; + callback(input, config._w, config, token); + }); + } - var _react2 = _interopRequireDefault(_react); + function addTimeToArrayFromToken(token, input, config) { + if (input != null && hasOwnProp(tokens, token)) { + tokens[token](input, config._a, config, token); + } + } - var _RangeCalendar = __webpack_require__(572); + var YEAR = 0, + MONTH = 1, + DATE = 2, + HOUR = 3, + MINUTE = 4, + SECOND = 5, + MILLISECOND = 6, + WEEK = 7, + WEEKDAY = 8; - var _RangeCalendar2 = _interopRequireDefault(_RangeCalendar); + function mod(n, x) { + return ((n % x) + x) % x; + } - var _Panel = __webpack_require__(558); + var indexOf; - var _Panel2 = _interopRequireDefault(_Panel); + if (Array.prototype.indexOf) { + indexOf = Array.prototype.indexOf; + } else { + indexOf = function (o) { + // I know + var i; + for (i = 0; i < this.length; ++i) { + if (this[i] === o) { + return i; + } + } + return -1; + }; + } - var _beeFormControl = __webpack_require__(268); + function daysInMonth(year, month) { + if (isNaN(year) || isNaN(month)) { + return NaN; + } + var modMonth = mod(month, 12); + year += (month - modMonth) / 12; + return modMonth === 1 + ? isLeapYear(year) + ? 29 + : 28 + : 31 - ((modMonth % 7) % 2); + } - var _beeFormControl2 = _interopRequireDefault(_beeFormControl); + // FORMATTING - var _Picker = __webpack_require__(556); + addFormatToken('M', ['MM', 2], 'Mo', function () { + return this.month() + 1; + }); - var _Picker2 = _interopRequireDefault(_Picker); + addFormatToken('MMM', 0, 0, function (format) { + return this.localeData().monthsShort(this, format); + }); - var _beeInputGroup = __webpack_require__(562); + addFormatToken('MMMM', 0, 0, function (format) { + return this.localeData().months(this, format); + }); - var _beeInputGroup2 = _interopRequireDefault(_beeInputGroup); + // ALIASES - var _beeIcon = __webpack_require__(67); + addUnitAlias('month', 'M'); - var _beeIcon2 = _interopRequireDefault(_beeIcon); + // PRIORITY - var _classnames = __webpack_require__(5); + addUnitPriority('month', 8); - var _classnames2 = _interopRequireDefault(_classnames); + // PARSING - var _tinperBeeCore = __webpack_require__(27); + addRegexToken('M', match1to2); + addRegexToken('MM', match1to2, match2); + addRegexToken('MMM', function (isStrict, locale) { + return locale.monthsShortRegex(isStrict); + }); + addRegexToken('MMMM', function (isStrict, locale) { + return locale.monthsRegex(isStrict); + }); - var _util = __webpack_require__(540); + addParseToken(['M', 'MM'], function (input, array) { + array[MONTH] = toInt(input) - 1; + }); - var _zh_CN = __webpack_require__(567); + addParseToken(['MMM', 'MMMM'], function (input, array, config, token) { + var month = config._locale.monthsParse(input, token, config._strict); + // if we didn't find a month name, mark the date as invalid. + if (month != null) { + array[MONTH] = month; + } else { + getParsingFlags(config).invalidMonth = input; + } + }); - var _zh_CN2 = _interopRequireDefault(_zh_CN); + // LOCALES - var _omit = __webpack_require__(568); + var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split( + '_' + ), + MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, + defaultMonthsShortRegex = matchWord, + defaultMonthsRegex = matchWord; - var _omit2 = _interopRequireDefault(_omit); + function localeMonths(m, format) { + if (!m) { + return isArray(this._months) + ? this._months + : this._months['standalone']; + } + return isArray(this._months) + ? this._months[m.month()] + : this._months[ + (this._months.isFormat || MONTHS_IN_FORMAT).test(format) + ? 'format' + : 'standalone' + ][m.month()]; + } - var _moment = __webpack_require__(404); + function localeMonthsShort(m, format) { + if (!m) { + return isArray(this._monthsShort) + ? this._monthsShort + : this._monthsShort['standalone']; + } + return isArray(this._monthsShort) + ? this._monthsShort[m.month()] + : this._monthsShort[ + MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone' + ][m.month()]; + } - var _moment2 = _interopRequireDefault(_moment); + function handleStrictParse(monthName, format, strict) { + var i, + ii, + mom, + llc = monthName.toLocaleLowerCase(); + if (!this._monthsParse) { + // this is not used + this._monthsParse = []; + this._longMonthsParse = []; + this._shortMonthsParse = []; + for (i = 0; i < 12; ++i) { + mom = createUTC([2000, i]); + this._shortMonthsParse[i] = this.monthsShort( + mom, + '' + ).toLocaleLowerCase(); + this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase(); + } + } - __webpack_require__(535); + if (strict) { + if (format === 'MMM') { + ii = indexOf.call(this._shortMonthsParse, llc); + return ii !== -1 ? ii : null; + } else { + ii = indexOf.call(this._longMonthsParse, llc); + return ii !== -1 ? ii : null; + } + } else { + if (format === 'MMM') { + ii = indexOf.call(this._shortMonthsParse, llc); + if (ii !== -1) { + return ii; + } + ii = indexOf.call(this._longMonthsParse, llc); + return ii !== -1 ? ii : null; + } else { + ii = indexOf.call(this._longMonthsParse, llc); + if (ii !== -1) { + return ii; + } + ii = indexOf.call(this._shortMonthsParse, llc); + return ii !== -1 ? ii : null; + } + } + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + function localeMonthsParse(monthName, format, strict) { + var i, mom, regex; - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + if (this._monthsParseExact) { + return handleStrictParse.call(this, monthName, format, strict); + } - function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure undefined"); } + if (!this._monthsParse) { + this._monthsParse = []; + this._longMonthsParse = []; + this._shortMonthsParse = []; + } - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + // TODO: add sorting + // Sorting makes sure if one month (or abbr) is a prefix of another + // see sorting in computeMonthsParse + for (i = 0; i < 12; i++) { + // make the regex if we don't have it already + mom = createUTC([2000, i]); + if (strict && !this._longMonthsParse[i]) { + this._longMonthsParse[i] = new RegExp( + '^' + this.months(mom, '').replace('.', '') + '$', + 'i' + ); + this._shortMonthsParse[i] = new RegExp( + '^' + this.monthsShort(mom, '').replace('.', '') + '$', + 'i' + ); + } + if (!strict && !this._monthsParse[i]) { + regex = + '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, ''); + this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i'); + } + // test the regex + if ( + strict && + format === 'MMMM' && + this._longMonthsParse[i].test(monthName) + ) { + return i; + } else if ( + strict && + format === 'MMM' && + this._shortMonthsParse[i].test(monthName) + ) { + return i; + } else if (!strict && this._monthsParse[i].test(monthName)) { + return i; + } + } + } - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + // MOMENTS - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + function setMonth(mom, value) { + var dayOfMonth; - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** - * Created by chief on 17/4/6. - */ + if (!mom.isValid()) { + // No op + return mom; + } + if (typeof value === 'string') { + if (/^\d+$/.test(value)) { + value = toInt(value); + } else { + value = mom.localeData().monthsParse(value); + // TODO: Another silent failure? + if (!isNumber(value)) { + return mom; + } + } + } - // function formatDate(value,format) { - // if (!value) { - // return ''; - // } + dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value)); + mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth); + return mom; + } - // if (Array.isArray(format)) { - // format = format[0]; - // } + function getSetMonth(value) { + if (value != null) { + setMonth(this, value); + hooks.updateOffset(this, true); + return this; + } else { + return get(this, 'Month'); + } + } - // return value.formatDate(format); - // } + function getDaysInMonth() { + return daysInMonth(this.year(), this.month()); + } - var fullFormat = "YYYY-MM-DD"; + function monthsShortRegex(isStrict) { + if (this._monthsParseExact) { + if (!hasOwnProp(this, '_monthsRegex')) { + computeMonthsParse.call(this); + } + if (isStrict) { + return this._monthsShortStrictRegex; + } else { + return this._monthsShortRegex; + } + } else { + if (!hasOwnProp(this, '_monthsShortRegex')) { + this._monthsShortRegex = defaultMonthsShortRegex; + } + return this._monthsShortStrictRegex && isStrict + ? this._monthsShortStrictRegex + : this._monthsShortRegex; + } + } - var cn = typeof window !== 'undefined' ? location.search.indexOf("cn") !== -1 : true; + function monthsRegex(isStrict) { + if (this._monthsParseExact) { + if (!hasOwnProp(this, '_monthsRegex')) { + computeMonthsParse.call(this); + } + if (isStrict) { + return this._monthsStrictRegex; + } else { + return this._monthsRegex; + } + } else { + if (!hasOwnProp(this, '_monthsRegex')) { + this._monthsRegex = defaultMonthsRegex; + } + return this._monthsStrictRegex && isStrict + ? this._monthsStrictRegex + : this._monthsRegex; + } + } - var now = (0, _moment2["default"])(); + function computeMonthsParse() { + function cmpLenRev(a, b) { + return b.length - a.length; + } - function isValidRange(v) { - return v && v[0] && v[1]; - } + var shortPieces = [], + longPieces = [], + mixedPieces = [], + i, + mom; + for (i = 0; i < 12; i++) { + // make the regex if we don't have it already + mom = createUTC([2000, i]); + shortPieces.push(this.monthsShort(mom, '')); + longPieces.push(this.months(mom, '')); + mixedPieces.push(this.months(mom, '')); + mixedPieces.push(this.monthsShort(mom, '')); + } + // Sorting makes sure if one month (or abbr) is a prefix of another it + // will match the longer piece. + shortPieces.sort(cmpLenRev); + longPieces.sort(cmpLenRev); + mixedPieces.sort(cmpLenRev); + for (i = 0; i < 12; i++) { + shortPieces[i] = regexEscape(shortPieces[i]); + longPieces[i] = regexEscape(longPieces[i]); + } + for (i = 0; i < 24; i++) { + mixedPieces[i] = regexEscape(mixedPieces[i]); + } - if (cn) { - now.locale("zh-cn").utcOffset(8); - } else { - now.locale("en-gb").utcOffset(0); - } + this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i'); + this._monthsShortRegex = this._monthsRegex; + this._monthsStrictRegex = new RegExp( + '^(' + longPieces.join('|') + ')', + 'i' + ); + this._monthsShortStrictRegex = new RegExp( + '^(' + shortPieces.join('|') + ')', + 'i' + ); + } - var RangePicker = function (_Component) { - _inherits(RangePicker, _Component); + // FORMATTING - function RangePicker(props, context) { - _classCallCheck(this, RangePicker); + addFormatToken('Y', 0, 0, function () { + var y = this.year(); + return y <= 9999 ? zeroFill(y, 4) : '+' + y; + }); - var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); + addFormatToken(0, ['YY', 2], 0, function () { + return this.year() % 100; + }); - _initialiseProps.call(_this); + addFormatToken(0, ['YYYY', 4], 0, 'year'); + addFormatToken(0, ['YYYYY', 5], 0, 'year'); + addFormatToken(0, ['YYYYYY', 6, true], 0, 'year'); - _this.state = { - hoverValue: [], - value: _this.initValue(props), - open: props.open || false - }; - return _this; - } + // ALIASES - RangePicker.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - if ("value" in nextProps) { - this.setState({ - value: this.initValue(nextProps) - }); - } - if ("open" in nextProps) { - this.setState({ - open: nextProps.open - }); - } - this.setState({ - renderIcon: nextProps.renderIcon - }); - }; - //判断value是否为空 + addUnitAlias('year', 'y'); - //日期面板中输入框的失焦事件 + // PRIORITIES - //阻止组件内部事件冒泡到组件外部容器 + addUnitPriority('year', 1); + // PARSING - RangePicker.prototype.render = function render() { - var _this2 = this; + addRegexToken('Y', matchSigned); + addRegexToken('YY', match1to2, match2); + addRegexToken('YYYY', match1to4, match4); + addRegexToken('YYYYY', match1to6, match6); + addRegexToken('YYYYYY', match1to6, match6); - var props = this.props; + addParseToken(['YYYYY', 'YYYYYY'], YEAR); + addParseToken('YYYY', function (input, array) { + array[YEAR] = + input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input); + }); + addParseToken('YY', function (input, array) { + array[YEAR] = hooks.parseTwoDigitYear(input); + }); + addParseToken('Y', function (input, array) { + array[YEAR] = parseInt(input, 10); + }); - var showClose = props.showClose, - onChange = props.onChange, - showHour = props.showHour, - showMinute = props.showMinute, - showSecond = props.showSecond, - others = _objectWithoutProperties(props, ["showClose", "onChange", "showHour", "showMinute", "showSecond"]); + // HELPERS - var _state = this.state, - value = _state.value, - open = _state.open; + function daysInYear(year) { + return isLeapYear(year) ? 366 : 365; + } - var formatStr = props.format || 'YYYY-MM-DD'; - var timePickerElement = _react2["default"].createElement(_Panel2["default"], { - showHour: showHour, showMinute: showMinute, showSecond: showSecond, - defaultValue: (0, _moment2["default"])((0, _moment2["default"])().format("HH:mm:ss"), "HH:mm:ss") }); - var calendar = _react2["default"].createElement(_RangeCalendar2["default"], { - hoverValue: this.state.hoverValue, - onHoverChange: this.onHoverChange, - showWeekNumber: false, - format: formatStr, - dateInputPlaceholder: props.dateInputPlaceholder || ['start', 'end'], - locale: props.locale || _zh_CN2["default"], - onChange: this.handleCalendarChange, - disabledDate: props.disabledDate, - showClear: props.showClear, - showOk: props.showOk, - showToday: props.showToday, - renderFooter: props.renderFooter, - timePicker: props.showTime ? timePickerElement : null, - renderError: props.renderError, - onStartInputBlur: this.onStartInputBlur, - onEndInputBlur: this.onEndInputBlur, - onClear: this.clear, - onOk: this.onOk, - validatorFunc: props.validatorFunc - }); - return _react2["default"].createElement( - "div", - _extends({ onClick: this.stopPropagation, onMouseOver: this.stopPropagation - }, (0, _omit2["default"])(others, ['closeIcon', 'renderIcon', 'showClear', 'showToday', 'locale', 'placeholder', 'showOk', 'dateInputPlaceholder', 'onPanelChange', 'onStartInputBlur', 'onEndInputBlur', 'renderFooter', 'showTime', 'disabledDate', 'disabledTime'])), - _react2["default"].createElement( - _Picker2["default"], - _extends({}, props, { - value: value, - animation: 'animation' in props ? props.animation : "slide-up", - calendar: calendar, - disabled: props.disabled, - dropdownClassName: props.dropdownClassName, - onOpenChange: this.onOpenChange, - open: open, - onChange: this.onChange - }), - function (_ref) { - _objectDestructuringEmpty(_ref); + // HOOKS - return _react2["default"].createElement( - "div", - { className: (0, _classnames2["default"])('calendar-picker', 'u-input-group', 'simple', props.className), - onMouseEnter: _this2.onMouseEnter, - onMouseLeave: _this2.onMouseLeave - }, - _react2["default"].createElement(_beeFormControl2["default"], { - placeholder: _this2.props.placeholder ? _this2.props.placeholder : 'start ~ end', - value: isValidRange(value) && (0, _util.formatDate)(value[0], formatStr) + " ~ " + (0, _util.formatDate)(value[1], formatStr) || '', - disabled: props.disabled, - onFocus: function onFocus(v, e) { - _this2.outInputFocus(e); - } - }), - showClose && !_this2.valueIsEmpty(value) && _this2.state.showClose && !props.disabled ? _react2["default"].createElement( - _beeInputGroup2["default"].Button, - { shape: "border", - onClick: _this2.clear }, - props.closeIcon() - ) : _react2["default"].createElement( - _beeInputGroup2["default"].Button, - { shape: "border" }, - props.renderIcon() - ) - ); - } - ) - ); + hooks.parseTwoDigitYear = function (input) { + return toInt(input) + (toInt(input) > 68 ? 1900 : 2000); }; - return RangePicker; - }(_react.Component); + // MOMENTS - var _initialiseProps = function _initialiseProps() { - var _this3 = this; + var getSetYear = makeGetSet('FullYear', true); - this.initValue = function (props) { - var valueProp = props.value || props.defaultValue || []; - var values = []; - for (var i = 0; i < 2; i++) { - var value = valueProp[i] || ''; - if (value) { - if (typeof value == 'string') { - if ((0, _moment2["default"])(value).isValid()) { - values.push((0, _moment2["default"])(value)); - } else { - console.error('value is not in the correct format'); - values.push(''); - } - } else if (value.format && value.isValid()) { - values.push(value); - } else { - console.error('value is not in the correct format'); - values = []; - } - } else { - values.push(''); + function getIsLeapYear() { + return isLeapYear(this.year()); + } + + function createDate(y, m, d, h, M, s, ms) { + // can't just apply() to create a date: + // https://stackoverflow.com/q/181348 + var date; + // the date constructor remaps years 0-99 to 1900-1999 + if (y < 100 && y >= 0) { + // preserve leap years using a full 400 year cycle, then reset + date = new Date(y + 400, m, d, h, M, s, ms); + if (isFinite(date.getFullYear())) { + date.setFullYear(y); } + } else { + date = new Date(y, m, d, h, M, s, ms); } - return values; - }; - - this.clearHoverValue = function () { - return _this3.setState({ hoverValue: [] }); - }; - this.onChange = function (value) { - var props = _this3.props; - var formatStr = props.format || 'YYYY-MM-DD'; - if (value.length < 2) { - return; - } - _this3.setState({ - value: value - }); + return date; + } - //传入value和dateString - if (props.onChange && isValidRange(value) || value.length == 0) { - if (value.length > 0) { - props.onChange(value, "[\"" + (0, _util.formatDate)(value[0], formatStr) + "\" , \"" + (0, _util.formatDate)(value[1], formatStr) + "\"]", ["" + (0, _util.formatDate)(value[0], formatStr), "" + (0, _util.formatDate)(value[1], formatStr)]); - } else { - props.onChange(null); + function createUTCDate(y) { + var date, args; + // the Date.UTC function remaps years 0-99 to 1900-1999 + if (y < 100 && y >= 0) { + args = Array.prototype.slice.call(arguments); + // preserve leap years using a full 400 year cycle, then reset + args[0] = y + 400; + date = new Date(Date.UTC.apply(null, args)); + if (isFinite(date.getUTCFullYear())) { + date.setUTCFullYear(y); } } else { - props.onPanelChange && props.onPanelChange(value); + date = new Date(Date.UTC.apply(null, arguments)); } - }; - this.onHoverChange = function (hoverValue) { - _this3.setState({ hoverValue: hoverValue }); - _this3.props.onHoverChange && _this3.props.onHoverChange(hoverValue); - }; + return date; + } - this.remove = function (e) { - _this3.setState({ value: '' }); - }; + // start-of-first-week - start-of-year + function firstWeekOffset(year, dow, doy) { + var // first-week day -- which january is always in the first week (4 for iso, 1 for other) + fwd = 7 + dow - doy, + // first-week day local weekday -- which local weekday is fwd + fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7; - this.handleCalendarChange = function (value) {}; + return -fwdlw + fwd - 1; + } - this.onMouseLeave = function (e) { - _this3.setState({ - showClose: false - }); - }; + // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday + function dayOfYearFromWeeks(year, week, weekday, dow, doy) { + var localWeekday = (7 + weekday - dow) % 7, + weekOffset = firstWeekOffset(year, dow, doy), + dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset, + resYear, + resDayOfYear; - this.onMouseEnter = function (e) { - if (!_this3.valueIsEmpty(_this3.state.value)) { - _this3.setState({ - showClose: true - }); + if (dayOfYear <= 0) { + resYear = year - 1; + resDayOfYear = daysInYear(resYear) + dayOfYear; + } else if (dayOfYear > daysInYear(year)) { + resYear = year + 1; + resDayOfYear = dayOfYear - daysInYear(year); + } else { + resYear = year; + resDayOfYear = dayOfYear; } - }; - this.valueIsEmpty = function (value) { - if (value) { - if (value.length == 0) { - return true; - } else { - //value.length>0 - var flag = true; - if (value[0] || value[1]) flag = false; - return flag; - } + return { + year: resYear, + dayOfYear: resDayOfYear, + }; + } + + function weekOfYear(mom, dow, doy) { + var weekOffset = firstWeekOffset(mom.year(), dow, doy), + week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1, + resWeek, + resYear; + + if (week < 1) { + resYear = mom.year() - 1; + resWeek = week + weeksInYear(resYear, dow, doy); + } else if (week > weeksInYear(mom.year(), dow, doy)) { + resWeek = week - weeksInYear(mom.year(), dow, doy); + resYear = mom.year() + 1; } else { - return true; + resYear = mom.year(); + resWeek = week; } - }; - this.clear = function (e) { - e && e.stopPropagation && e.stopPropagation(); - _this3.setState({ - value: [] - }); - _this3.props.onChange && _this3.props.onChange([], []); - _this3.props.onFormControlClear && _this3.props.onFormControlClear(); - }; + return { + week: resWeek, + year: resYear, + }; + } - this.onOpenChange = function (open) { - var props = _this3.props; - var self = _this3; - // let {value} = this.state; - // if(!isValidRange(value)){ - // debugger - // } - if (open === false) { - _this3.clearHoverValue(); - } + function weeksInYear(year, dow, doy) { + var weekOffset = firstWeekOffset(year, dow, doy), + weekOffsetNext = firstWeekOffset(year + 1, dow, doy); + return (daysInYear(year) - weekOffset + weekOffsetNext) / 7; + } - _this3.setState({ - open: open - }, function () { - if (open) { - setTimeout(function () { - self.inputFocus(); - }, 0); - } - }); - props.onOpenChange && props.onOpenChange(open); - if (open) { - setTimeout(function () { - self.inputFocus(); - }, 200); - } - }; + // FORMATTING - this.outInputFocus = function (e) { - if (_this3.props.hasOwnProperty('open')) e.stopPropagation(); - _this3.props.outInputFocus && _this3.props.outInputFocus(e); - }; + addFormatToken('w', ['ww', 2], 'wo', 'week'); + addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek'); - this.inputFocus = function () { - var inputs = document.querySelectorAll('.rc-calendar-input'); - if (!inputs) { - return; - } - if (inputs[0].value) { - inputs[0].select(); - } else { - inputs[0].focus(); - } - inputs[0].onkeydown = _this3.keydownLeft; - inputs[1].onkeydown = _this3.keydownRight; - }; + // ALIASES - this.keydownLeft = function (e) { - var inputs = document.querySelectorAll('.rc-calendar-input'); - if (e.keyCode == _tinperBeeCore.KeyCode.ESC) { - _this3.setState({ - open: false - }); - _this3.props.onOpenChange(false, v, v && _this3.getValue(v) || ''); - } - if (e.keyCode == _tinperBeeCore.KeyCode.RIGHT || e.keyCode == _tinperBeeCore.KeyCode.LEFT) { - inputs[1].focus(); - } - }; + addUnitAlias('week', 'w'); + addUnitAlias('isoWeek', 'W'); - this.keydownRight = function (e) { - var inputs = document.querySelectorAll('.rc-calendar-input'); - if (e.keyCode == _tinperBeeCore.KeyCode.ESC) { - _this3.setState({ - open: false - }); - _this3.props.onOpenChange(false, v, v && _this3.getValue(v) || ''); - } - if (e.keyCode == _tinperBeeCore.KeyCode.LEFT || e.keyCode == _tinperBeeCore.KeyCode.RIGHT) { - inputs[0].focus(); - } - }; + // PRIORITIES - this.onStartInputBlur = function (e) { - var inputs = document.querySelectorAll('.rc-calendar-input'); - var startValue = void 0, - endValue = void 0; - if (inputs) { - startValue = inputs[0].value ? inputs[0].value : ''; - endValue = inputs[1].value ? inputs[1].value : ''; - } - _this3.props.onStartInputBlur && _this3.props.onStartInputBlur(e, startValue, "[\"" + startValue + "\" , \"" + endValue + "\"]"); - }; + addUnitPriority('week', 5); + addUnitPriority('isoWeek', 5); - this.onEndInputBlur = function (e) { - var inputs = document.querySelectorAll('.rc-calendar-input'); - var startValue = void 0, - endValue = void 0; - if (inputs) { - startValue = inputs[0].value ? inputs[0].value : ''; - endValue = inputs[1].value ? inputs[1].value : ''; - } - _this3.props.onEndInputBlur && _this3.props.onEndInputBlur(e, endValue, "[\"" + startValue + "\" , \"" + endValue + "\"]"); - }; + // PARSING - this.stopPropagation = function (e) { - e.stopPropagation(); - }; + addRegexToken('w', match1to2); + addRegexToken('ww', match1to2, match2); + addRegexToken('W', match1to2); + addRegexToken('WW', match1to2, match2); - this.onOk = function (value) { - _this3.props.onOk && _this3.props.onOk(value); + addWeekParseToken(['w', 'ww', 'W', 'WW'], function ( + input, + week, + config, + token + ) { + week[token.substr(0, 1)] = toInt(input); + }); + + // HELPERS + + // LOCALES + + function localeWeek(mom) { + return weekOfYear(mom, this._week.dow, this._week.doy).week; + } + + var defaultLocaleWeek = { + dow: 0, // Sunday is the first day of the week. + doy: 6, // The week that contains Jan 6th is the first week of the year. }; - }; - RangePicker.defaultProps = { - closeIcon: function closeIcon() { - return _react2["default"].createElement(_beeIcon2["default"], { type: "uf-close-c" }); - }, - renderIcon: function renderIcon() { - return _react2["default"].createElement(_beeIcon2["default"], { type: "uf-calendar" }); - }, - locale: _zh_CN2["default"], - showClear: true, - showToday: true, - showOk: true, - showClose: true, - showSecond: true, - showHour: true, - showMinute: true, - validatorFunc: function validatorFunc() { - return true; + function localeFirstDayOfWeek() { + return this._week.dow; } - }; - exports["default"] = RangePicker; - module.exports = exports["default"]; - -/***/ }), -/* 572 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; + function localeFirstDayOfYear() { + return this._week.doy; + } - Object.defineProperty(exports, "__esModule", { - value: true - }); + // MOMENTS - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + function getSetWeek(input) { + var week = this.localeData().week(this); + return input == null ? week : this.add((input - week) * 7, 'd'); + } - var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }(); + function getSetISOWeek(input) { + var week = weekOfYear(this, 1, 4).week; + return input == null ? week : this.add((input - week) * 7, 'd'); + } - var _react = __webpack_require__(1); + // FORMATTING - var _react2 = _interopRequireDefault(_react); + addFormatToken('d', 0, 'do', 'day'); - var _propTypes = __webpack_require__(6); + addFormatToken('dd', 0, 0, function (format) { + return this.localeData().weekdaysMin(this, format); + }); - var _propTypes2 = _interopRequireDefault(_propTypes); + addFormatToken('ddd', 0, 0, function (format) { + return this.localeData().weekdaysShort(this, format); + }); - var _moment = __webpack_require__(404); + addFormatToken('dddd', 0, 0, function (format) { + return this.localeData().weekdays(this, format); + }); - var _moment2 = _interopRequireDefault(_moment); + addFormatToken('e', 0, 0, 'weekday'); + addFormatToken('E', 0, 0, 'isoWeekday'); - var _classnames2 = __webpack_require__(5); + // ALIASES - var _classnames3 = _interopRequireDefault(_classnames2); + addUnitAlias('day', 'd'); + addUnitAlias('weekday', 'e'); + addUnitAlias('isoWeekday', 'E'); - var _reactLifecyclesCompat = __webpack_require__(81); + // PRIORITY + addUnitPriority('day', 11); + addUnitPriority('weekday', 11); + addUnitPriority('isoWeekday', 11); - var _KeyCode = __webpack_require__(400); + // PARSING - var _KeyCode2 = _interopRequireDefault(_KeyCode); + addRegexToken('d', match1to2); + addRegexToken('e', match1to2); + addRegexToken('E', match1to2); + addRegexToken('dd', function (isStrict, locale) { + return locale.weekdaysMinRegex(isStrict); + }); + addRegexToken('ddd', function (isStrict, locale) { + return locale.weekdaysShortRegex(isStrict); + }); + addRegexToken('dddd', function (isStrict, locale) { + return locale.weekdaysRegex(isStrict); + }); - var _CalendarPart = __webpack_require__(573); + addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) { + var weekday = config._locale.weekdaysParse(input, token, config._strict); + // if we didn't get a weekday name, mark the date as invalid + if (weekday != null) { + week.d = weekday; + } else { + getParsingFlags(config).invalidWeekday = input; + } + }); - var _CalendarPart2 = _interopRequireDefault(_CalendarPart); + addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) { + week[token] = toInt(input); + }); - var _TodayButton = __webpack_require__(549); + // HELPERS - var _TodayButton2 = _interopRequireDefault(_TodayButton); + function parseWeekday(input, locale) { + if (typeof input !== 'string') { + return input; + } - var _OkButton = __webpack_require__(550); + if (!isNaN(input)) { + return parseInt(input, 10); + } - var _OkButton2 = _interopRequireDefault(_OkButton); + input = locale.weekdaysParse(input); + if (typeof input === 'number') { + return input; + } - var _TimePickerButton = __webpack_require__(551); + return null; + } - var _TimePickerButton2 = _interopRequireDefault(_TimePickerButton); + function parseIsoWeekday(input, locale) { + if (typeof input === 'string') { + return locale.weekdaysParse(input) % 7 || 7; + } + return isNaN(input) ? null : input; + } - var _CommonMixin = __webpack_require__(553); + // LOCALES + function shiftWeekdays(ws, n) { + return ws.slice(n, 7).concat(ws.slice(0, n)); + } - var _util = __webpack_require__(540); + var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( + '_' + ), + defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + defaultWeekdaysRegex = matchWord, + defaultWeekdaysShortRegex = matchWord, + defaultWeekdaysMinRegex = matchWord; - var _toTime = __webpack_require__(555); + function localeWeekdays(m, format) { + var weekdays = isArray(this._weekdays) + ? this._weekdays + : this._weekdays[ + m && m !== true && this._weekdays.isFormat.test(format) + ? 'format' + : 'standalone' + ]; + return m === true + ? shiftWeekdays(weekdays, this._week.dow) + : m + ? weekdays[m.day()] + : weekdays; + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + function localeWeekdaysShort(m) { + return m === true + ? shiftWeekdays(this._weekdaysShort, this._week.dow) + : m + ? this._weekdaysShort[m.day()] + : this._weekdaysShort; + } - function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } + function localeWeekdaysMin(m) { + return m === true + ? shiftWeekdays(this._weekdaysMin, this._week.dow) + : m + ? this._weekdaysMin[m.day()] + : this._weekdaysMin; + } - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + function handleStrictParse$1(weekdayName, format, strict) { + var i, + ii, + mom, + llc = weekdayName.toLocaleLowerCase(); + if (!this._weekdaysParse) { + this._weekdaysParse = []; + this._shortWeekdaysParse = []; + this._minWeekdaysParse = []; - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + for (i = 0; i < 7; ++i) { + mom = createUTC([2000, 1]).day(i); + this._minWeekdaysParse[i] = this.weekdaysMin( + mom, + '' + ).toLocaleLowerCase(); + this._shortWeekdaysParse[i] = this.weekdaysShort( + mom, + '' + ).toLocaleLowerCase(); + this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase(); + } + } - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + if (strict) { + if (format === 'dddd') { + ii = indexOf.call(this._weekdaysParse, llc); + return ii !== -1 ? ii : null; + } else if (format === 'ddd') { + ii = indexOf.call(this._shortWeekdaysParse, llc); + return ii !== -1 ? ii : null; + } else { + ii = indexOf.call(this._minWeekdaysParse, llc); + return ii !== -1 ? ii : null; + } + } else { + if (format === 'dddd') { + ii = indexOf.call(this._weekdaysParse, llc); + if (ii !== -1) { + return ii; + } + ii = indexOf.call(this._shortWeekdaysParse, llc); + if (ii !== -1) { + return ii; + } + ii = indexOf.call(this._minWeekdaysParse, llc); + return ii !== -1 ? ii : null; + } else if (format === 'ddd') { + ii = indexOf.call(this._shortWeekdaysParse, llc); + if (ii !== -1) { + return ii; + } + ii = indexOf.call(this._weekdaysParse, llc); + if (ii !== -1) { + return ii; + } + ii = indexOf.call(this._minWeekdaysParse, llc); + return ii !== -1 ? ii : null; + } else { + ii = indexOf.call(this._minWeekdaysParse, llc); + if (ii !== -1) { + return ii; + } + ii = indexOf.call(this._weekdaysParse, llc); + if (ii !== -1) { + return ii; + } + ii = indexOf.call(this._shortWeekdaysParse, llc); + return ii !== -1 ? ii : null; + } + } + } - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + function localeWeekdaysParse(weekdayName, format, strict) { + var i, mom, regex; - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + if (this._weekdaysParseExact) { + return handleStrictParse$1.call(this, weekdayName, format, strict); + } - function noop() {} + if (!this._weekdaysParse) { + this._weekdaysParse = []; + this._minWeekdaysParse = []; + this._shortWeekdaysParse = []; + this._fullWeekdaysParse = []; + } - function isEmptyArray(arr) { - return Array.isArray(arr) && (arr.length === 0 || arr.every(function (i) { - return !i; - })); - } + for (i = 0; i < 7; i++) { + // make the regex if we don't have it already - function isArraysEqual(a, b) { - if (a === b) return true; - if (a === null || typeof a === 'undefined' || b === null || typeof b === 'undefined') { - return false; - } - if (a.length !== b.length) return false; + mom = createUTC([2000, 1]).day(i); + if (strict && !this._fullWeekdaysParse[i]) { + this._fullWeekdaysParse[i] = new RegExp( + '^' + this.weekdays(mom, '').replace('.', '\\.?') + '$', + 'i' + ); + this._shortWeekdaysParse[i] = new RegExp( + '^' + this.weekdaysShort(mom, '').replace('.', '\\.?') + '$', + 'i' + ); + this._minWeekdaysParse[i] = new RegExp( + '^' + this.weekdaysMin(mom, '').replace('.', '\\.?') + '$', + 'i' + ); + } + if (!this._weekdaysParse[i]) { + regex = + '^' + + this.weekdays(mom, '') + + '|^' + + this.weekdaysShort(mom, '') + + '|^' + + this.weekdaysMin(mom, ''); + this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i'); + } + // test the regex + if ( + strict && + format === 'dddd' && + this._fullWeekdaysParse[i].test(weekdayName) + ) { + return i; + } else if ( + strict && + format === 'ddd' && + this._shortWeekdaysParse[i].test(weekdayName) + ) { + return i; + } else if ( + strict && + format === 'dd' && + this._minWeekdaysParse[i].test(weekdayName) + ) { + return i; + } else if (!strict && this._weekdaysParse[i].test(weekdayName)) { + return i; + } + } + } - for (var i = 0; i < a.length; ++i) { - if (a[i] !== b[i]) return false; - } - return true; - } + // MOMENTS - function getValueFromSelectedValue(selectedValue) { - var _selectedValue = _slicedToArray(selectedValue, 2), - start = _selectedValue[0], - end = _selectedValue[1]; + function getSetDayOfWeek(input) { + if (!this.isValid()) { + return input != null ? this : NaN; + } + var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay(); + if (input != null) { + input = parseWeekday(input, this.localeData()); + return this.add(input - day, 'd'); + } else { + return day; + } + } - var newEnd = end && end.isSame(start, 'month') ? end.clone().add(1, 'month') : end; - return [start, newEnd]; - } + function getSetLocaleDayOfWeek(input) { + if (!this.isValid()) { + return input != null ? this : NaN; + } + var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7; + return input == null ? weekday : this.add(input - weekday, 'd'); + } - function normalizeAnchor(props, init) { - var selectedValue = props.selectedValue || init && props.defaultSelectedValue; - var value = props.value || init && props.defaultValue; - var normalizedValue = value ? getValueFromSelectedValue(value) : getValueFromSelectedValue(selectedValue); - return !isEmptyArray(normalizedValue) ? normalizedValue : init && [(0, _moment2["default"])(), (0, _moment2["default"])().add(1, 'months')]; - } + function getSetISODayOfWeek(input) { + if (!this.isValid()) { + return input != null ? this : NaN; + } - function generateOptions(length, extraOptionGen) { - var arr = extraOptionGen ? extraOptionGen().concat() : []; - for (var value = 0; value < length; value++) { - if (arr.indexOf(value) === -1) { - arr.push(value); + // behaves the same as moment#day except + // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6) + // as a setter, sunday should belong to the previous week. + + if (input != null) { + var weekday = parseIsoWeekday(input, this.localeData()); + return this.day(this.day() % 7 ? weekday : weekday - 7); + } else { + return this.day() || 7; + } } - } - return arr; - } - function onInputSelect(direction, value, cause) { - if (!value) { - return; - } - var originalValue = this.state.selectedValue; - var selectedValue = originalValue.concat(); - var index = direction === 'left' ? 0 : 1; - selectedValue[index] = value; - if (selectedValue[0] && this.compare(selectedValue[0], selectedValue[1]) > 0) { - selectedValue[1] = this.state.showTimePicker ? selectedValue[index] : undefined; - } - if (selectedValue[0] && !selectedValue[1]) { - selectedValue[1 - index] = this.state.showTimePicker ? selectedValue[index] : undefined; - } - this.props.onInputSelect(selectedValue); - this.fireSelectValueChange(selectedValue, null, cause || { source: 'dateInput' }); - } + function weekdaysRegex(isStrict) { + if (this._weekdaysParseExact) { + if (!hasOwnProp(this, '_weekdaysRegex')) { + computeWeekdaysParse.call(this); + } + if (isStrict) { + return this._weekdaysStrictRegex; + } else { + return this._weekdaysRegex; + } + } else { + if (!hasOwnProp(this, '_weekdaysRegex')) { + this._weekdaysRegex = defaultWeekdaysRegex; + } + return this._weekdaysStrictRegex && isStrict + ? this._weekdaysStrictRegex + : this._weekdaysRegex; + } + } - var RangeCalendar = function (_React$Component) { - _inherits(RangeCalendar, _React$Component); + function weekdaysShortRegex(isStrict) { + if (this._weekdaysParseExact) { + if (!hasOwnProp(this, '_weekdaysRegex')) { + computeWeekdaysParse.call(this); + } + if (isStrict) { + return this._weekdaysShortStrictRegex; + } else { + return this._weekdaysShortRegex; + } + } else { + if (!hasOwnProp(this, '_weekdaysShortRegex')) { + this._weekdaysShortRegex = defaultWeekdaysShortRegex; + } + return this._weekdaysShortStrictRegex && isStrict + ? this._weekdaysShortStrictRegex + : this._weekdaysShortRegex; + } + } - function RangeCalendar(props) { - _classCallCheck(this, RangeCalendar); + function weekdaysMinRegex(isStrict) { + if (this._weekdaysParseExact) { + if (!hasOwnProp(this, '_weekdaysRegex')) { + computeWeekdaysParse.call(this); + } + if (isStrict) { + return this._weekdaysMinStrictRegex; + } else { + return this._weekdaysMinRegex; + } + } else { + if (!hasOwnProp(this, '_weekdaysMinRegex')) { + this._weekdaysMinRegex = defaultWeekdaysMinRegex; + } + return this._weekdaysMinStrictRegex && isStrict + ? this._weekdaysMinStrictRegex + : this._weekdaysMinRegex; + } + } - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); + function computeWeekdaysParse() { + function cmpLenRev(a, b) { + return b.length - a.length; + } - _initialiseProps.call(_this); + var minPieces = [], + shortPieces = [], + longPieces = [], + mixedPieces = [], + i, + mom, + minp, + shortp, + longp; + for (i = 0; i < 7; i++) { + // make the regex if we don't have it already + mom = createUTC([2000, 1]).day(i); + minp = regexEscape(this.weekdaysMin(mom, '')); + shortp = regexEscape(this.weekdaysShort(mom, '')); + longp = regexEscape(this.weekdays(mom, '')); + minPieces.push(minp); + shortPieces.push(shortp); + longPieces.push(longp); + mixedPieces.push(minp); + mixedPieces.push(shortp); + mixedPieces.push(longp); + } + // Sorting makes sure if one weekday (or abbr) is a prefix of another it + // will match the longer piece. + minPieces.sort(cmpLenRev); + shortPieces.sort(cmpLenRev); + longPieces.sort(cmpLenRev); + mixedPieces.sort(cmpLenRev); - var selectedValue = props.selectedValue || props.defaultSelectedValue || []; - var value = normalizeAnchor(props, 1); - _this.state = { - selectedValue: selectedValue, - prevSelectedValue: selectedValue, - firstSelectedValue: null, - hoverValue: props.hoverValue || [], - value: value, - showTimePicker: false, - mode: props.mode || ['date', 'date'] - }; - return _this; - } + this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i'); + this._weekdaysShortRegex = this._weekdaysRegex; + this._weekdaysMinRegex = this._weekdaysRegex; - RangeCalendar.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, state) { - var newState = {}; - if ('value' in nextProps) { - newState.value = normalizeAnchor(nextProps, 0); - } - if ('hoverValue' in nextProps && !isArraysEqual(state.hoverValue, nextProps.hoverValue)) { - newState.hoverValue = nextProps.hoverValue; + this._weekdaysStrictRegex = new RegExp( + '^(' + longPieces.join('|') + ')', + 'i' + ); + this._weekdaysShortStrictRegex = new RegExp( + '^(' + shortPieces.join('|') + ')', + 'i' + ); + this._weekdaysMinStrictRegex = new RegExp( + '^(' + minPieces.join('|') + ')', + 'i' + ); } - if ('selectedValue' in nextProps) { - newState.selectedValue = nextProps.selectedValue; - newState.prevSelectedValue = nextProps.selectedValue; + + // FORMATTING + + function hFormat() { + return this.hours() % 12 || 12; } - if ('mode' in nextProps && !isArraysEqual(state.mode, nextProps.mode)) { - newState = { mode: nextProps.mode }; + + function kFormat() { + return this.hours() || 24; } - return newState; - }; - // get disabled hours for second picker + addFormatToken('H', ['HH', 2], 0, 'hour'); + addFormatToken('h', ['hh', 2], 0, hFormat); + addFormatToken('k', ['kk', 2], 0, kFormat); + addFormatToken('hmm', 0, 0, function () { + return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2); + }); - RangeCalendar.prototype.render = function render() { - var _className, _classnames; + addFormatToken('hmmss', 0, 0, function () { + return ( + '' + + hFormat.apply(this) + + zeroFill(this.minutes(), 2) + + zeroFill(this.seconds(), 2) + ); + }); - var props = this.props, - state = this.state; - var prefixCls = props.prefixCls, - dateInputPlaceholder = props.dateInputPlaceholder, - seperator = props.seperator, - timePicker = props.timePicker, - showOk = props.showOk, - locale = props.locale, - showClear = props.showClear, - showToday = props.showToday, - type = props.type, - clearIcon = props.clearIcon, - onStartInputBlur = props.onStartInputBlur, - onEndInputBlur = props.onEndInputBlur; - var hoverValue = state.hoverValue, - selectedValue = state.selectedValue, - mode = state.mode, - showTimePicker = state.showTimePicker; + addFormatToken('Hmm', 0, 0, function () { + return '' + this.hours() + zeroFill(this.minutes(), 2); + }); - var className = (_className = {}, _defineProperty(_className, props.className, !!props.className), _defineProperty(_className, prefixCls, 1), _defineProperty(_className, prefixCls + '-hidden', !props.visible), _defineProperty(_className, prefixCls + '-range', 1), _defineProperty(_className, prefixCls + '-show-time-picker', showTimePicker), _defineProperty(_className, prefixCls + '-week-number', props.showWeekNumber), _className); - var classes = (0, _classnames3["default"])(className); - var newProps = { - selectedValue: state.selectedValue, - onSelect: this.onSelect, - onDayHover: type === 'start' && selectedValue[1] || type === 'end' && selectedValue[0] || !!hoverValue.length ? this.onDayHover : undefined - }; + addFormatToken('Hmmss', 0, 0, function () { + return ( + '' + + this.hours() + + zeroFill(this.minutes(), 2) + + zeroFill(this.seconds(), 2) + ); + }); - var placeholder1 = void 0; - var placeholder2 = void 0; + function meridiem(token, lowercase) { + addFormatToken(token, 0, 0, function () { + return this.localeData().meridiem( + this.hours(), + this.minutes(), + lowercase + ); + }); + } - if (dateInputPlaceholder) { - if (Array.isArray(dateInputPlaceholder)) { - var _dateInputPlaceholder = _slicedToArray(dateInputPlaceholder, 2); + meridiem('a', true); + meridiem('A', false); - placeholder1 = _dateInputPlaceholder[0]; - placeholder2 = _dateInputPlaceholder[1]; - } else { - placeholder1 = placeholder2 = dateInputPlaceholder; - } - } - var showOkButton = showOk === true || showOk !== false && !!timePicker; - var cls = (0, _classnames3["default"])((_classnames = {}, _defineProperty(_classnames, prefixCls + '-footer', true), _defineProperty(_classnames, prefixCls + '-range-bottom', true), _defineProperty(_classnames, prefixCls + '-footer-show-ok', showOkButton), _classnames)); + // ALIASES - var startValue = this.getStartValue(); - var endValue = this.getEndValue(); - var todayTime = (0, _util.getTodayTime)(startValue); - var thisMonth = todayTime.month(); - var thisYear = todayTime.year(); - var isTodayInView = startValue.year() === thisYear && startValue.month() === thisMonth || endValue.year() === thisYear && endValue.month() === thisMonth; - var nextMonthOfStart = startValue.clone().add(1, 'months'); - var isClosestMonths = nextMonthOfStart.year() === endValue.year() && nextMonthOfStart.month() === endValue.month(); + addUnitAlias('hour', 'h'); - var extraFooter = props.renderFooter(); - return _react2["default"].createElement( - 'div', - { - ref: this.saveRoot, - className: classes, - style: props.style, - onKeyDown: this.onKeyDown - }, - props.renderSidebar(), - _react2["default"].createElement( - 'div', - { className: prefixCls + '-panel', onMouseOver: this.onMouseOver }, - showClear && selectedValue[0] && selectedValue[1] ? _react2["default"].createElement( - 'a', - { - role: 'button', - title: locale.clear, - onClick: this.clear - }, - clearIcon || _react2["default"].createElement('span', { className: prefixCls + '-clear-btn uf uf-close-c' }) - ) : null, - _react2["default"].createElement( - 'div', - { - className: prefixCls + '-date-panel', - onMouseLeave: type !== 'both' ? this.onDatePanelLeave : undefined, - onMouseEnter: type !== 'both' ? this.onDatePanelEnter : undefined - }, - _react2["default"].createElement(_CalendarPart2["default"], _extends({}, props, newProps, { - hoverValue: hoverValue, - direction: 'left', - disabledTime: this.disabledStartTime, - disabledMonth: this.disabledStartMonth, - format: this.getFormat(), - value: startValue, - mode: mode[0], - placeholder: placeholder1, - onInputChange: this.onStartInputChange, - onInputSelect: this.onStartInputSelect, - onValueChange: this.onStartValueChange, - onPanelChange: this.onStartPanelChange, - showDateInput: this.props.showDateInput, - timePicker: timePicker, - showTimePicker: showTimePicker, - enablePrev: true, - enableNext: !isClosestMonths || this.isMonthYearPanelShow(mode[1]), - clearIcon: clearIcon, - tabIndex: '0', - onInputBlur: onStartInputBlur - })), - _react2["default"].createElement( - 'span', - { className: prefixCls + '-range-middle' }, - seperator - ), - _react2["default"].createElement(_CalendarPart2["default"], _extends({}, props, newProps, { - hoverValue: hoverValue, - direction: 'right', - format: this.getFormat(), - timePickerDisabledTime: this.getEndDisableTime(), - placeholder: placeholder2, - value: endValue, - mode: mode[1], - onInputChange: this.onEndInputChange, - onInputSelect: this.onEndInputSelect, - onValueChange: this.onEndValueChange, - onPanelChange: this.onEndPanelChange, - showDateInput: this.props.showDateInput, - timePicker: timePicker, - showTimePicker: showTimePicker, - disabledTime: this.disabledEndTime, - disabledMonth: this.disabledEndMonth, - enablePrev: !isClosestMonths || this.isMonthYearPanelShow(mode[0]), - enableNext: true, - clearIcon: clearIcon, - tabIndex: '0', - inputTabIndex: '-1', - onInputBlur: onEndInputBlur - })) - ), - _react2["default"].createElement( - 'div', - { className: cls }, - showToday || props.timePicker || showOkButton || extraFooter ? _react2["default"].createElement( - 'div', - { className: prefixCls + '-footer-btn' }, - extraFooter ? _react2["default"].createElement( - 'div', - { className: prefixCls + '-footer-extra' }, - extraFooter - ) : null, - showToday ? _react2["default"].createElement(_TodayButton2["default"], _extends({}, props, { - disabled: isTodayInView, - value: state.value[0], - onToday: this.onToday, - text: locale.backToToday - })) : null, - props.timePicker ? _react2["default"].createElement(_TimePickerButton2["default"], _extends({}, props, { - showTimePicker: showTimePicker, - onOpenTimePicker: this.onOpenTimePicker, - onCloseTimePicker: this.onCloseTimePicker, - timePickerDisabled: !this.hasSelectedValue() || hoverValue.length - })) : null, - showOkButton ? _react2["default"].createElement(_OkButton2["default"], _extends({}, props, { - onOk: this.onOk, - okDisabled: !this.isAllowedDateAndTime(selectedValue) || !this.hasSelectedValue() || hoverValue.length - })) : null - ) : null - ) - ) - ); - }; + // PRIORITY + addUnitPriority('hour', 13); - return RangeCalendar; - }(_react2["default"].Component); + // PARSING - RangeCalendar.propTypes = _extends({}, _CommonMixin.propType, { - prefixCls: _propTypes2["default"].string, - dateInputPlaceholder: _propTypes2["default"].any, - seperator: _propTypes2["default"].string, - defaultValue: _propTypes2["default"].any, - value: _propTypes2["default"].any, - hoverValue: _propTypes2["default"].any, - mode: _propTypes2["default"].arrayOf(_propTypes2["default"].oneOf(['date', 'month', 'year', 'decade'])), - showDateInput: _propTypes2["default"].bool, - timePicker: _propTypes2["default"].any, - showOk: _propTypes2["default"].bool, - showToday: _propTypes2["default"].bool, - defaultSelectedValue: _propTypes2["default"].array, - selectedValue: _propTypes2["default"].array, - onOk: _propTypes2["default"].func, - showClear: _propTypes2["default"].bool, - locale: _propTypes2["default"].object, - onChange: _propTypes2["default"].func, - onSelect: _propTypes2["default"].func, - onValueChange: _propTypes2["default"].func, - onHoverChange: _propTypes2["default"].func, - onPanelChange: _propTypes2["default"].func, - format: _propTypes2["default"].oneOfType([_propTypes2["default"].object, _propTypes2["default"].string]), - onClear: _propTypes2["default"].func, - type: _propTypes2["default"].any, - disabledDate: _propTypes2["default"].func, - disabledTime: _propTypes2["default"].func, - clearIcon: _propTypes2["default"].node, - onKeyDown: _propTypes2["default"].func - }); - RangeCalendar.defaultProps = _extends({}, _CommonMixin.defaultProp, { - type: 'both', - seperator: '~', - defaultSelectedValue: [], - onValueChange: noop, - onHoverChange: noop, - onPanelChange: noop, - disabledTime: noop, - onInputSelect: noop, - showToday: true, - showDateInput: true - }); + function matchMeridiem(isStrict, locale) { + return locale._meridiemParse; + } + + addRegexToken('a', matchMeridiem); + addRegexToken('A', matchMeridiem); + addRegexToken('H', match1to2); + addRegexToken('h', match1to2); + addRegexToken('k', match1to2); + addRegexToken('HH', match1to2, match2); + addRegexToken('hh', match1to2, match2); + addRegexToken('kk', match1to2, match2); - var _initialiseProps = function _initialiseProps() { - var _this2 = this; + addRegexToken('hmm', match3to4); + addRegexToken('hmmss', match5to6); + addRegexToken('Hmm', match3to4); + addRegexToken('Hmmss', match5to6); - this.onDatePanelEnter = function () { - if (_this2.hasSelectedValue()) { - _this2.fireHoverValueChange(_this2.state.selectedValue.concat()); - } - }; + addParseToken(['H', 'HH'], HOUR); + addParseToken(['k', 'kk'], function (input, array, config) { + var kInput = toInt(input); + array[HOUR] = kInput === 24 ? 0 : kInput; + }); + addParseToken(['a', 'A'], function (input, array, config) { + config._isPm = config._locale.isPM(input); + config._meridiem = input; + }); + addParseToken(['h', 'hh'], function (input, array, config) { + array[HOUR] = toInt(input); + getParsingFlags(config).bigHour = true; + }); + addParseToken('hmm', function (input, array, config) { + var pos = input.length - 2; + array[HOUR] = toInt(input.substr(0, pos)); + array[MINUTE] = toInt(input.substr(pos)); + getParsingFlags(config).bigHour = true; + }); + addParseToken('hmmss', function (input, array, config) { + var pos1 = input.length - 4, + pos2 = input.length - 2; + array[HOUR] = toInt(input.substr(0, pos1)); + array[MINUTE] = toInt(input.substr(pos1, 2)); + array[SECOND] = toInt(input.substr(pos2)); + getParsingFlags(config).bigHour = true; + }); + addParseToken('Hmm', function (input, array, config) { + var pos = input.length - 2; + array[HOUR] = toInt(input.substr(0, pos)); + array[MINUTE] = toInt(input.substr(pos)); + }); + addParseToken('Hmmss', function (input, array, config) { + var pos1 = input.length - 4, + pos2 = input.length - 2; + array[HOUR] = toInt(input.substr(0, pos1)); + array[MINUTE] = toInt(input.substr(pos1, 2)); + array[SECOND] = toInt(input.substr(pos2)); + }); - this.onDatePanelLeave = function () { - if (_this2.hasSelectedValue()) { - _this2.fireHoverValueChange([]); + // LOCALES + + function localeIsPM(input) { + // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays + // Using charAt should be more compatible. + return (input + '').toLowerCase().charAt(0) === 'p'; } - }; - this.onSelect = function (value) { - var type = _this2.props.type; - var _state = _this2.state, - selectedValue = _state.selectedValue, - prevSelectedValue = _state.prevSelectedValue, - firstSelectedValue = _state.firstSelectedValue; + var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i, + // Setting the hour should keep the time, because the user explicitly + // specified which hour they want. So trying to maintain the same hour (in + // a new timezone) makes sense. Adding/subtracting hours does not follow + // this rule. + getSetHour = makeGetSet('Hours', true); - var nextSelectedValue = void 0; - if (type === 'both') { - if (!firstSelectedValue) { - (0, _util.syncTime)(prevSelectedValue[0], value); - nextSelectedValue = [value]; - } else if (_this2.compare(firstSelectedValue, value) < 0) { - (0, _util.syncTime)(prevSelectedValue[1], value); - nextSelectedValue = [firstSelectedValue, value]; - } else { - (0, _util.syncTime)(prevSelectedValue[0], value); - (0, _util.syncTime)(prevSelectedValue[1], firstSelectedValue); - nextSelectedValue = [value, firstSelectedValue]; - } - } else if (type === 'start') { - (0, _util.syncTime)(prevSelectedValue[0], value); - var endValue = selectedValue[1]; - nextSelectedValue = endValue && _this2.compare(endValue, value) > 0 ? [value, endValue] : [value]; - } else { - // type === 'end' - var startValue = selectedValue[0]; - if (startValue && _this2.compare(startValue, value) <= 0) { - (0, _util.syncTime)(prevSelectedValue[1], value); - nextSelectedValue = [startValue, value]; - } else { - (0, _util.syncTime)(prevSelectedValue[0], value); - nextSelectedValue = [value]; - } + function localeMeridiem(hours, minutes, isLower) { + if (hours > 11) { + return isLower ? 'pm' : 'PM'; + } else { + return isLower ? 'am' : 'AM'; + } } - _this2.fireSelectValueChange(nextSelectedValue); - }; + var baseConfig = { + calendar: defaultCalendar, + longDateFormat: defaultLongDateFormat, + invalidDate: defaultInvalidDate, + ordinal: defaultOrdinal, + dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse, + relativeTime: defaultRelativeTime, - this.onKeyDown = function (event) { - if (event.target.nodeName.toLowerCase() === 'input') { - return; - } + months: defaultLocaleMonths, + monthsShort: defaultLocaleMonthsShort, - var keyCode = event.keyCode; + week: defaultLocaleWeek, - var ctrlKey = event.ctrlKey || event.metaKey; + weekdays: defaultLocaleWeekdays, + weekdaysMin: defaultLocaleWeekdaysMin, + weekdaysShort: defaultLocaleWeekdaysShort, - var _state2 = _this2.state, - selectedValue = _state2.selectedValue, - hoverValue = _state2.hoverValue, - firstSelectedValue = _state2.firstSelectedValue, - value = _state2.value; - var _props = _this2.props, - onKeyDown = _props.onKeyDown, - disabledDate = _props.disabledDate; + meridiemParse: defaultLocaleMeridiemParse, + }; - // Update last time of the picker + // internal storage for locale config files + var locales = {}, + localeFamilies = {}, + globalLocale; - var updateHoverPoint = function updateHoverPoint(func) { - // Change hover to make focus in UI - var currentHoverTime = void 0; - var nextHoverTime = void 0; - var nextHoverValue = void 0; + function commonPrefix(arr1, arr2) { + var i, + minl = Math.min(arr1.length, arr2.length); + for (i = 0; i < minl; i += 1) { + if (arr1[i] !== arr2[i]) { + return i; + } + } + return minl; + } - if (!firstSelectedValue) { - currentHoverTime = hoverValue[0] || selectedValue[0] || value[0] || (0, _moment2["default"])(); - nextHoverTime = func(currentHoverTime); - nextHoverValue = [nextHoverTime]; - _this2.fireHoverValueChange(nextHoverValue); - } else { - if (hoverValue.length === 1) { - currentHoverTime = hoverValue[0].clone(); - nextHoverTime = func(currentHoverTime); - nextHoverValue = _this2.onDayHover(nextHoverTime); - } else { - currentHoverTime = hoverValue[0].isSame(firstSelectedValue, 'day') ? hoverValue[1] : hoverValue[0]; - nextHoverTime = func(currentHoverTime); - nextHoverValue = _this2.onDayHover(nextHoverTime); + function normalizeLocale(key) { + return key ? key.toLowerCase().replace('_', '-') : key; + } + + // pick the locale from the array + // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each + // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root + function chooseLocale(names) { + var i = 0, + j, + next, + locale, + split; + + while (i < names.length) { + split = normalizeLocale(names[i]).split('-'); + j = split.length; + next = normalizeLocale(names[i + 1]); + next = next ? next.split('-') : null; + while (j > 0) { + locale = loadLocale(split.slice(0, j).join('-')); + if (locale) { + return locale; + } + if ( + next && + next.length >= j && + commonPrefix(split, next) >= j - 1 + ) { + //the next array item is better than a shallower substring of this one + break; + } + j--; + } + i++; } - } + return globalLocale; + } - // Find origin hover time on value index - if (nextHoverValue.length >= 2) { - var miss = nextHoverValue.some(function (ht) { - return !(0, _toTime.includesTime)(value, ht, 'month'); - }); - if (miss) { - var newValue = nextHoverValue.slice().sort(function (t1, t2) { - return t1.valueOf() - t2.valueOf(); - }); - if (newValue[0].isSame(newValue[1], 'month')) { - newValue[1] = newValue[0].clone().add(1, 'month'); - } - _this2.fireValueChange(newValue); + function loadLocale(name) { + var oldLocale = null, + aliasedRequire; + // TODO: Find a better way to register and load all the locales in Node + if ( + locales[name] === undefined && + typeof module !== 'undefined' && + module && + module.exports + ) { + try { + oldLocale = globalLocale._abbr; + aliasedRequire = require; + __webpack_require__(424)("./" + name); + getSetGlobalLocale(oldLocale); + } catch (e) { + // mark as not found to avoid repeating expensive file require call causing high CPU + // when trying to find en-US, en_US, en-us for every format call + locales[name] = null; // null means not found + } } - } else if (nextHoverValue.length === 1) { - // If only one value, let's keep the origin panel - var oriValueIndex = value.findIndex(function (time) { - return time.isSame(currentHoverTime, 'month'); - }); - if (oriValueIndex === -1) oriValueIndex = 0; + return locales[name]; + } - if (value.every(function (time) { - return !time.isSame(nextHoverTime, 'month'); - })) { - var _newValue = value.slice(); - _newValue[oriValueIndex] = nextHoverTime.clone(); - _this2.fireValueChange(_newValue); + // This function will load locale and then set the global locale. If + // no arguments are passed in, it will simply return the current global + // locale key. + function getSetGlobalLocale(key, values) { + var data; + if (key) { + if (isUndefined(values)) { + data = getLocale(key); + } else { + data = defineLocale(key, values); + } + + if (data) { + // moment.duration._locale = moment._locale = data; + globalLocale = data; + } else { + if (typeof console !== 'undefined' && console.warn) { + //warn user if arguments are passed but the locale could not be set + console.warn( + 'Locale ' + key + ' not found. Did you forget to load it?' + ); + } + } } - } - event.preventDefault(); + return globalLocale._abbr; + } - return nextHoverTime; - }; + function defineLocale(name, config) { + if (config !== null) { + var locale, + parentConfig = baseConfig; + config.abbr = name; + if (locales[name] != null) { + deprecateSimple( + 'defineLocaleOverride', + 'use moment.updateLocale(localeName, config) to change ' + + 'an existing locale. moment.defineLocale(localeName, ' + + 'config) should only be used for creating a new locale ' + + 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.' + ); + parentConfig = locales[name]._config; + } else if (config.parentLocale != null) { + if (locales[config.parentLocale] != null) { + parentConfig = locales[config.parentLocale]._config; + } else { + locale = loadLocale(config.parentLocale); + if (locale != null) { + parentConfig = locale._config; + } else { + if (!localeFamilies[config.parentLocale]) { + localeFamilies[config.parentLocale] = []; + } + localeFamilies[config.parentLocale].push({ + name: name, + config: config, + }); + return null; + } + } + } + locales[name] = new Locale(mergeConfigs(parentConfig, config)); - switch (keyCode) { - case _KeyCode2["default"].DOWN: - updateHoverPoint(function (time) { - return (0, _toTime.goTime)(time, 1, 'weeks'); - }); - return; - case _KeyCode2["default"].UP: - updateHoverPoint(function (time) { - return (0, _toTime.goTime)(time, -1, 'weeks'); - }); - return; - case _KeyCode2["default"].LEFT: - if (ctrlKey) { - updateHoverPoint(function (time) { - return (0, _toTime.goTime)(time, -1, 'years'); - }); + if (localeFamilies[name]) { + localeFamilies[name].forEach(function (x) { + defineLocale(x.name, x.config); + }); + } + + // backwards compat for now: also set the locale + // make sure we set the locale AFTER all child locales have been + // created, so we won't end up with the child locale set. + getSetGlobalLocale(name); + + return locales[name]; } else { - updateHoverPoint(function (time) { - return (0, _toTime.goTime)(time, -1, 'days'); - }); + // useful for testing + delete locales[name]; + return null; } - return; - case _KeyCode2["default"].RIGHT: - if (ctrlKey) { - updateHoverPoint(function (time) { - return (0, _toTime.goTime)(time, 1, 'years'); - }); + } + + function updateLocale(name, config) { + if (config != null) { + var locale, + tmpLocale, + parentConfig = baseConfig; + + if (locales[name] != null && locales[name].parentLocale != null) { + // Update existing child locale in-place to avoid memory-leaks + locales[name].set(mergeConfigs(locales[name]._config, config)); + } else { + // MERGE + tmpLocale = loadLocale(name); + if (tmpLocale != null) { + parentConfig = tmpLocale._config; + } + config = mergeConfigs(parentConfig, config); + if (tmpLocale == null) { + // updateLocale is called for creating a new locale + // Set abbr so it will have a name (getters return + // undefined otherwise). + config.abbr = name; + } + locale = new Locale(config); + locale.parentLocale = locales[name]; + locales[name] = locale; + } + + // backwards compat for now: also set the locale + getSetGlobalLocale(name); } else { - updateHoverPoint(function (time) { - return (0, _toTime.goTime)(time, 1, 'days'); - }); + // pass null for config to unupdate, useful for tests + if (locales[name] != null) { + if (locales[name].parentLocale != null) { + locales[name] = locales[name].parentLocale; + if (name === getSetGlobalLocale()) { + getSetGlobalLocale(name); + } + } else if (locales[name] != null) { + delete locales[name]; + } + } } - return; - case _KeyCode2["default"].HOME: - updateHoverPoint(function (time) { - return (0, _toTime.goStartMonth)(time); - }); - return; - case _KeyCode2["default"].END: - updateHoverPoint(function (time) { - return (0, _toTime.goEndMonth)(time); - }); - return; - case _KeyCode2["default"].PAGE_DOWN: - updateHoverPoint(function (time) { - return (0, _toTime.goTime)(time, 1, 'month'); - }); - return; - case _KeyCode2["default"].PAGE_UP: - updateHoverPoint(function (time) { - return (0, _toTime.goTime)(time, -1, 'month'); - }); - return; - case _KeyCode2["default"].ENTER: - { - var lastValue = void 0; - if (hoverValue.length === 0) { - lastValue = updateHoverPoint(function (time) { - return time; - }); - } else if (hoverValue.length === 1) { - lastValue = hoverValue[0]; - } else { - lastValue = hoverValue[0].isSame(firstSelectedValue, 'day') ? hoverValue[1] : hoverValue[0]; - } - if (lastValue && (!disabledDate || !disabledDate(lastValue))) { - _this2.onSelect(lastValue); - } - event.preventDefault(); - return; + return locales[name]; + } + + // returns locale data + function getLocale(key) { + var locale; + + if (key && key._locale && key._locale._abbr) { + key = key._locale._abbr; } - default: - if (onKeyDown) { - onKeyDown(event); + + if (!key) { + return globalLocale; + } + + if (!isArray(key)) { + //short-circuit everything else + locale = loadLocale(key); + if (locale) { + return locale; + } + key = [key]; } + + return chooseLocale(key); } - }; - this.onDayHover = function (value) { - var hoverValue = []; - var _state3 = _this2.state, - selectedValue = _state3.selectedValue, - firstSelectedValue = _state3.firstSelectedValue; - var type = _this2.props.type; + function listLocales() { + return keys(locales); + } - if (type === 'start' && selectedValue[1]) { - hoverValue = _this2.compare(value, selectedValue[1]) < 0 ? [value, selectedValue[1]] : [value]; - } else if (type === 'end' && selectedValue[0]) { - hoverValue = _this2.compare(value, selectedValue[0]) > 0 ? [selectedValue[0], value] : []; - } else { - if (!firstSelectedValue) { - if (_this2.state.hoverValue.length) { - _this2.setState({ hoverValue: [] }); + function checkOverflow(m) { + var overflow, + a = m._a; + + if (a && getParsingFlags(m).overflow === -2) { + overflow = + a[MONTH] < 0 || a[MONTH] > 11 + ? MONTH + : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) + ? DATE + : a[HOUR] < 0 || + a[HOUR] > 24 || + (a[HOUR] === 24 && + (a[MINUTE] !== 0 || + a[SECOND] !== 0 || + a[MILLISECOND] !== 0)) + ? HOUR + : a[MINUTE] < 0 || a[MINUTE] > 59 + ? MINUTE + : a[SECOND] < 0 || a[SECOND] > 59 + ? SECOND + : a[MILLISECOND] < 0 || a[MILLISECOND] > 999 + ? MILLISECOND + : -1; + + if ( + getParsingFlags(m)._overflowDayOfYear && + (overflow < YEAR || overflow > DATE) + ) { + overflow = DATE; + } + if (getParsingFlags(m)._overflowWeeks && overflow === -1) { + overflow = WEEK; + } + if (getParsingFlags(m)._overflowWeekday && overflow === -1) { + overflow = WEEKDAY; + } + + getParsingFlags(m).overflow = overflow; } - return hoverValue; - } - hoverValue = _this2.compare(value, firstSelectedValue) < 0 ? [value, firstSelectedValue] : [firstSelectedValue, value]; + + return m; } - _this2.fireHoverValueChange(hoverValue); - return hoverValue; - }; + // iso 8601 regex + // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00) + var extendedIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, + basicIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, + tzRegex = /Z|[+-]\d\d(?::?\d\d)?/, + isoDates = [ + ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/], + ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/], + ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/], + ['GGGG-[W]WW', /\d{4}-W\d\d/, false], + ['YYYY-DDD', /\d{4}-\d{3}/], + ['YYYY-MM', /\d{4}-\d\d/, false], + ['YYYYYYMMDD', /[+-]\d{10}/], + ['YYYYMMDD', /\d{8}/], + ['GGGG[W]WWE', /\d{4}W\d{3}/], + ['GGGG[W]WW', /\d{4}W\d{2}/, false], + ['YYYYDDD', /\d{7}/], + ['YYYYMM', /\d{6}/, false], + ['YYYY', /\d{4}/, false], + ], + // iso time formats and regexes + isoTimes = [ + ['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/], + ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/], + ['HH:mm:ss', /\d\d:\d\d:\d\d/], + ['HH:mm', /\d\d:\d\d/], + ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/], + ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/], + ['HHmmss', /\d\d\d\d\d\d/], + ['HHmm', /\d\d\d\d/], + ['HH', /\d\d/], + ], + aspNetJsonRegex = /^\/?Date\((-?\d+)/i, + // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3 + rfc2822 = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/, + obsOffsets = { + UT: 0, + GMT: 0, + EDT: -4 * 60, + EST: -5 * 60, + CDT: -5 * 60, + CST: -6 * 60, + MDT: -6 * 60, + MST: -7 * 60, + PDT: -7 * 60, + PST: -8 * 60, + }; - this.onToday = function () { - var startValue = (0, _util.getTodayTime)(_this2.state.value[0]); - var endValue = startValue.clone().add(1, 'months'); - _this2.setState({ value: [startValue, endValue] }); - }; + // date from iso format + function configFromISO(config) { + var i, + l, + string = config._i, + match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string), + allowTime, + dateFormat, + timeFormat, + tzFormat; - this.onOpenTimePicker = function () { - _this2.setState({ - showTimePicker: true - }); - }; + if (match) { + getParsingFlags(config).iso = true; - this.onCloseTimePicker = function () { - _this2.setState({ - showTimePicker: false - }); - }; + for (i = 0, l = isoDates.length; i < l; i++) { + if (isoDates[i][1].exec(match[1])) { + dateFormat = isoDates[i][0]; + allowTime = isoDates[i][2] !== false; + break; + } + } + if (dateFormat == null) { + config._isValid = false; + return; + } + if (match[3]) { + for (i = 0, l = isoTimes.length; i < l; i++) { + if (isoTimes[i][1].exec(match[3])) { + // match[2] should be 'T' or space + timeFormat = (match[2] || ' ') + isoTimes[i][0]; + break; + } + } + if (timeFormat == null) { + config._isValid = false; + return; + } + } + if (!allowTime && timeFormat != null) { + config._isValid = false; + return; + } + if (match[4]) { + if (tzRegex.exec(match[4])) { + tzFormat = 'Z'; + } else { + config._isValid = false; + return; + } + } + config._f = dateFormat + (timeFormat || '') + (tzFormat || ''); + configFromStringAndFormat(config); + } else { + config._isValid = false; + } + } - this.onOk = function () { - var selectedValue = _this2.state.selectedValue; + function extractFromRFC2822Strings( + yearStr, + monthStr, + dayStr, + hourStr, + minuteStr, + secondStr + ) { + var result = [ + untruncateYear(yearStr), + defaultLocaleMonthsShort.indexOf(monthStr), + parseInt(dayStr, 10), + parseInt(hourStr, 10), + parseInt(minuteStr, 10), + ]; - if (_this2.isAllowedDateAndTime(selectedValue)) { - _this2.props.onOk(_this2.state.selectedValue); + if (secondStr) { + result.push(parseInt(secondStr, 10)); + } + + return result; } - }; - this.onStartInputChange = function () { - for (var _len = arguments.length, oargs = Array(_len), _key = 0; _key < _len; _key++) { - oargs[_key] = arguments[_key]; + function untruncateYear(yearStr) { + var year = parseInt(yearStr, 10); + if (year <= 49) { + return 2000 + year; + } else if (year <= 999) { + return 1900 + year; + } + return year; } - var args = ['left'].concat(oargs); - return onInputSelect.apply(_this2, args); - }; + function preprocessRFC2822(s) { + // Remove comments and folding whitespace and replace multiple-spaces with a single space + return s + .replace(/\([^)]*\)|[\n\t]/g, ' ') + .replace(/(\s\s+)/g, ' ') + .replace(/^\s\s*/, '') + .replace(/\s\s*$/, ''); + } - this.onEndInputChange = function () { - for (var _len2 = arguments.length, oargs = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - oargs[_key2] = arguments[_key2]; + function checkWeekday(weekdayStr, parsedInput, config) { + if (weekdayStr) { + // TODO: Replace the vanilla JS Date object with an independent day-of-week check. + var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr), + weekdayActual = new Date( + parsedInput[0], + parsedInput[1], + parsedInput[2] + ).getDay(); + if (weekdayProvided !== weekdayActual) { + getParsingFlags(config).weekdayMismatch = true; + config._isValid = false; + return false; + } + } + return true; } - var args = ['right'].concat(oargs); - return onInputSelect.apply(_this2, args); - }; + function calculateOffset(obsOffset, militaryOffset, numOffset) { + if (obsOffset) { + return obsOffsets[obsOffset]; + } else if (militaryOffset) { + // the only allowed military tz is Z + return 0; + } else { + var hm = parseInt(numOffset, 10), + m = hm % 100, + h = (hm - m) / 100; + return h * 60 + m; + } + } - this.onStartInputSelect = function (value) { - var args = ['left', value, { source: 'dateInputSelect' }]; - return onInputSelect.apply(_this2, args); - }; + // date and time from ref 2822 format + function configFromRFC2822(config) { + var match = rfc2822.exec(preprocessRFC2822(config._i)), + parsedArray; + if (match) { + parsedArray = extractFromRFC2822Strings( + match[4], + match[3], + match[2], + match[5], + match[6], + match[7] + ); + if (!checkWeekday(match[1], parsedArray, config)) { + return; + } - this.onEndInputSelect = function (value) { - var args = ['right', value, { source: 'dateInputSelect' }]; - return onInputSelect.apply(_this2, args); - }; + config._a = parsedArray; + config._tzm = calculateOffset(match[8], match[9], match[10]); - this.onStartValueChange = function (leftValue) { - var value = [].concat(_toConsumableArray(_this2.state.value)); - value[0] = leftValue; - return _this2.fireValueChange(value); - }; + config._d = createUTCDate.apply(null, config._a); + config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm); - this.onEndValueChange = function (rightValue) { - var value = [].concat(_toConsumableArray(_this2.state.value)); - value[1] = rightValue; - return _this2.fireValueChange(value); - }; + getParsingFlags(config).rfc2822 = true; + } else { + config._isValid = false; + } + } - this.onStartPanelChange = function (value, mode) { - var props = _this2.props, - state = _this2.state; + // date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict + function configFromString(config) { + var matched = aspNetJsonRegex.exec(config._i); + if (matched !== null) { + config._d = new Date(+matched[1]); + return; + } - var newMode = [mode, state.mode[1]]; - if (!('mode' in props)) { - _this2.setState({ - mode: newMode - }); - } - var newValue = [value || state.value[0], state.value[1]]; - props.onPanelChange(newValue, newMode); - }; + configFromISO(config); + if (config._isValid === false) { + delete config._isValid; + } else { + return; + } - this.onEndPanelChange = function (value, mode) { - var props = _this2.props, - state = _this2.state; + configFromRFC2822(config); + if (config._isValid === false) { + delete config._isValid; + } else { + return; + } - var newMode = [state.mode[0], mode]; - if (!('mode' in props)) { - _this2.setState({ - mode: newMode - }); + if (config._strict) { + config._isValid = false; + } else { + // Final attempt, use Input Fallback + hooks.createFromInputFallback(config); + } } - var newValue = [state.value[0], value || state.value[1]]; - props.onPanelChange(newValue, newMode); - }; - this.getStartValue = function () { - var value = _this2.state.value[0]; - var selectedValue = _this2.state.selectedValue; - // keep selectedTime when select date - if (selectedValue[0] && _this2.props.timePicker) { - value = value.clone(); - (0, _util.syncTime)(selectedValue[0], value); + hooks.createFromInputFallback = deprecate( + 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' + + 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' + + 'discouraged and will be removed in an upcoming major release. Please refer to ' + + 'http://momentjs.com/guides/#/warnings/js-date/ for more info.', + function (config) { + config._d = new Date(config._i + (config._useUTC ? ' UTC' : '')); + } + ); + + // Pick the first defined of two or three arguments. + function defaults(a, b, c) { + if (a != null) { + return a; + } + if (b != null) { + return b; + } + return c; } - if (_this2.state.showTimePicker && selectedValue[0]) { - return selectedValue[0]; + + function currentDateArray(config) { + // hooks is actually the exported moment object + var nowValue = new Date(hooks.now()); + if (config._useUTC) { + return [ + nowValue.getUTCFullYear(), + nowValue.getUTCMonth(), + nowValue.getUTCDate(), + ]; + } + return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()]; } - return value; - }; - this.getEndValue = function () { - var _state4 = _this2.state, - value = _state4.value, - selectedValue = _state4.selectedValue, - showTimePicker = _state4.showTimePicker; + // convert an array to a date. + // the array should mirror the parameters below + // note: all values past the year are optional and will default to the lowest possible value. + // [year, month, day , hour, minute, second, millisecond] + function configFromArray(config) { + var i, + date, + input = [], + currentDate, + expectedWeekday, + yearToUse; - var endValue = value[1] ? value[1].clone() : value[0].clone().add(1, 'month'); - // keep selectedTime when select date - if (selectedValue[1] && _this2.props.timePicker) { - (0, _util.syncTime)(selectedValue[1], endValue); - } - if (showTimePicker) { - return selectedValue[1] ? selectedValue[1] : _this2.getStartValue(); - } - return endValue; - }; + if (config._d) { + return; + } - this.getEndDisableTime = function () { - var _state5 = _this2.state, - selectedValue = _state5.selectedValue, - value = _state5.value; - var disabledTime = _this2.props.disabledTime; + currentDate = currentDateArray(config); - var userSettingDisabledTime = disabledTime(selectedValue, 'end') || {}; - var startValue = selectedValue && selectedValue[0] || value[0].clone(); - // if startTime and endTime is same day.. - // the second time picker will not able to pick time before first time picker - if (!selectedValue[1] || startValue.isSame(selectedValue[1], 'day')) { - var hours = startValue.hour(); - var minutes = startValue.minute(); - var second = startValue.second(); - var _disabledHours = userSettingDisabledTime.disabledHours, - _disabledMinutes = userSettingDisabledTime.disabledMinutes, - _disabledSeconds = userSettingDisabledTime.disabledSeconds; + //compute day of the year from weeks and weekdays + if (config._w && config._a[DATE] == null && config._a[MONTH] == null) { + dayOfYearFromWeekInfo(config); + } - var oldDisabledMinutes = _disabledMinutes ? _disabledMinutes() : []; - var olddisabledSeconds = _disabledSeconds ? _disabledSeconds() : []; - _disabledHours = generateOptions(hours, _disabledHours); - _disabledMinutes = generateOptions(minutes, _disabledMinutes); - _disabledSeconds = generateOptions(second, _disabledSeconds); - return { - disabledHours: function disabledHours() { - return _disabledHours; - }, - disabledMinutes: function disabledMinutes(hour) { - if (hour === hours) { - return _disabledMinutes; - } - return oldDisabledMinutes; - }, - disabledSeconds: function disabledSeconds(hour, minute) { - if (hour === hours && minute === minutes) { - return _disabledSeconds; - } - return olddisabledSeconds; + //if the day of the year is set, figure out what it is + if (config._dayOfYear != null) { + yearToUse = defaults(config._a[YEAR], currentDate[YEAR]); + + if ( + config._dayOfYear > daysInYear(yearToUse) || + config._dayOfYear === 0 + ) { + getParsingFlags(config)._overflowDayOfYear = true; + } + + date = createUTCDate(yearToUse, 0, config._dayOfYear); + config._a[MONTH] = date.getUTCMonth(); + config._a[DATE] = date.getUTCDate(); } - }; - } - return userSettingDisabledTime; - }; - this.isAllowedDateAndTime = function (selectedValue) { - return (0, _util.isAllowedDate)(selectedValue[0], _this2.props.disabledDate, _this2.disabledStartTime) && (0, _util.isAllowedDate)(selectedValue[1], _this2.props.disabledDate, _this2.disabledEndTime); - }; + // Default to current date. + // * if no year, month, day of month are given, default to today + // * if day of month is given, default month and year + // * if month is given, default only year + // * if year is given, don't default anything + for (i = 0; i < 3 && config._a[i] == null; ++i) { + config._a[i] = input[i] = currentDate[i]; + } - this.isMonthYearPanelShow = function (mode) { - return ['month', 'year', 'decade'].indexOf(mode) > -1; - }; + // Zero out whatever was not defaulted, including time + for (; i < 7; i++) { + config._a[i] = input[i] = + config._a[i] == null ? (i === 2 ? 1 : 0) : config._a[i]; + } - this.hasSelectedValue = function () { - var selectedValue = _this2.state.selectedValue; + // Check for 24:00:00.000 + if ( + config._a[HOUR] === 24 && + config._a[MINUTE] === 0 && + config._a[SECOND] === 0 && + config._a[MILLISECOND] === 0 + ) { + config._nextDay = true; + config._a[HOUR] = 0; + } - return !!selectedValue[1] && !!selectedValue[0]; - }; + config._d = (config._useUTC ? createUTCDate : createDate).apply( + null, + input + ); + expectedWeekday = config._useUTC + ? config._d.getUTCDay() + : config._d.getDay(); - this.compare = function (v1, v2) { - if (_this2.props.timePicker) { - return v1.diff(v2); - } - return v1 && v1.diff(v2, 'days'); - }; + // Apply timezone offset from input. The actual utcOffset can be changed + // with parseZone. + if (config._tzm != null) { + config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm); + } - this.fireSelectValueChange = function (selectedValue, direct, cause) { - var timePicker = _this2.props.timePicker; - var prevSelectedValue = _this2.state.prevSelectedValue; + if (config._nextDay) { + config._a[HOUR] = 24; + } - if (timePicker && timePicker.props.defaultValue) { - var timePickerDefaultValue = timePicker.props.defaultValue; - if (!prevSelectedValue[0] && selectedValue[0]) { - (0, _util.syncTime)(timePickerDefaultValue[0], selectedValue[0]); - } - if (!prevSelectedValue[1] && selectedValue[1]) { - (0, _util.syncTime)(timePickerDefaultValue[1], selectedValue[1]); - } + // check for mismatching day of week + if ( + config._w && + typeof config._w.d !== 'undefined' && + config._w.d !== expectedWeekday + ) { + getParsingFlags(config).weekdayMismatch = true; + } } - if (!('selectedValue' in _this2.props)) { - _this2.setState({ - selectedValue: selectedValue - }); - } + function dayOfYearFromWeekInfo(config) { + var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek; - // 尚未选择过时间,直接输入的话 - if (!_this2.state.selectedValue[0] || !_this2.state.selectedValue[1]) { - var startValue = selectedValue[0] || (0, _moment2["default"])(); - var endValue = selectedValue[1] || startValue.clone().add(1, 'months'); - _this2.setState({ - selectedValue: selectedValue, - value: getValueFromSelectedValue([startValue, endValue]) - }); - } + w = config._w; + if (w.GG != null || w.W != null || w.E != null) { + dow = 1; + doy = 4; - if (selectedValue[0] && !selectedValue[1]) { - _this2.setState({ firstSelectedValue: selectedValue[0] }); - _this2.fireHoverValueChange(selectedValue.concat()); - } - selectedValue.map(function (item) { - if (item) { - item._type = 'range'; - } - }); - _this2.props.onChange(selectedValue); - if (direct || selectedValue[0] && selectedValue[1]) { - _this2.setState({ - prevSelectedValue: selectedValue, - firstSelectedValue: null - }); - _this2.fireHoverValueChange([]); - _this2.props.onSelect(selectedValue, cause); - } - }; + // TODO: We need to take the current isoWeekYear, but that depends on + // how we interpret now (local, utc, fixed offset). So create + // a now version of current config (take local/utc/offset flags, and + // create now). + weekYear = defaults( + w.GG, + config._a[YEAR], + weekOfYear(createLocal(), 1, 4).year + ); + week = defaults(w.W, 1); + weekday = defaults(w.E, 1); + if (weekday < 1 || weekday > 7) { + weekdayOverflow = true; + } + } else { + dow = config._locale._week.dow; + doy = config._locale._week.doy; - this.fireValueChange = function (value) { - var props = _this2.props; - if (!('value' in props)) { - _this2.setState({ - value: value - }); - } - props.onValueChange(value); - }; + curWeek = weekOfYear(createLocal(), dow, doy); - this.fireHoverValueChange = function (hoverValue) { - var props = _this2.props; - if (!('hoverValue' in props)) { - _this2.setState({ hoverValue: hoverValue }); - } - props.onHoverChange(hoverValue); - }; + weekYear = defaults(w.gg, config._a[YEAR], curWeek.year); - this.clear = function () { - _this2.fireSelectValueChange([], true); - _this2.props.onClear([]); - }; + // Default to current week. + week = defaults(w.w, curWeek.week); - this.disabledStartTime = function (time) { - return _this2.props.disabledTime(time, 'start'); - }; + if (w.d != null) { + // weekday -- low day numbers are considered next week + weekday = w.d; + if (weekday < 0 || weekday > 6) { + weekdayOverflow = true; + } + } else if (w.e != null) { + // local weekday -- counting starts from beginning of week + weekday = w.e + dow; + if (w.e < 0 || w.e > 6) { + weekdayOverflow = true; + } + } else { + // default to beginning of week + weekday = dow; + } + } + if (week < 1 || week > weeksInYear(weekYear, dow, doy)) { + getParsingFlags(config)._overflowWeeks = true; + } else if (weekdayOverflow != null) { + getParsingFlags(config)._overflowWeekday = true; + } else { + temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy); + config._a[YEAR] = temp.year; + config._dayOfYear = temp.dayOfYear; + } + } - this.disabledEndTime = function (time) { - return _this2.props.disabledTime(time, 'end'); - }; + // constant that refers to the ISO standard + hooks.ISO_8601 = function () {}; - this.disabledStartMonth = function (month) { - var value = _this2.state.value; + // constant that refers to the RFC 2822 form + hooks.RFC_2822 = function () {}; - return month.isSameOrAfter(value[1], 'month'); - }; + // date from string and format string + function configFromStringAndFormat(config) { + // TODO: Move this to another part of the creation flow to prevent circular deps + if (config._f === hooks.ISO_8601) { + configFromISO(config); + return; + } + if (config._f === hooks.RFC_2822) { + configFromRFC2822(config); + return; + } + config._a = []; + getParsingFlags(config).empty = true; - this.disabledEndMonth = function (month) { - var value = _this2.state.value; + // This array is used to make a Date, either with `new Date` or `Date.UTC` + var string = '' + config._i, + i, + parsedInput, + tokens, + token, + skipped, + stringLength = string.length, + totalParsedInputLength = 0, + era; - return month.isSameOrBefore(value[0], 'month'); - }; + tokens = + expandFormat(config._f, config._locale).match(formattingTokens) || []; - this.onMouseOver = function (e) { - e.stopPropagation(); - }; - }; + for (i = 0; i < tokens.length; i++) { + token = tokens[i]; + parsedInput = (string.match(getParseRegexForToken(token, config)) || + [])[0]; + if (parsedInput) { + skipped = string.substr(0, string.indexOf(parsedInput)); + if (skipped.length > 0) { + getParsingFlags(config).unusedInput.push(skipped); + } + string = string.slice( + string.indexOf(parsedInput) + parsedInput.length + ); + totalParsedInputLength += parsedInput.length; + } + // don't parse if it's not a known token + if (formatTokenFunctions[token]) { + if (parsedInput) { + getParsingFlags(config).empty = false; + } else { + getParsingFlags(config).unusedTokens.push(token); + } + addTimeToArrayFromToken(token, parsedInput, config); + } else if (config._strict && !parsedInput) { + getParsingFlags(config).unusedTokens.push(token); + } + } - (0, _reactLifecyclesCompat.polyfill)(RangeCalendar); + // add remaining unparsed input length to the string + getParsingFlags(config).charsLeftOver = + stringLength - totalParsedInputLength; + if (string.length > 0) { + getParsingFlags(config).unusedInput.push(string); + } - exports["default"] = (0, _CommonMixin.commonMixinWrapper)(RangeCalendar); - module.exports = exports['default']; - -/***/ }), -/* 573 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; + // clear _12h flag if hour is <= 12 + if ( + config._a[HOUR] <= 12 && + getParsingFlags(config).bigHour === true && + config._a[HOUR] > 0 + ) { + getParsingFlags(config).bigHour = undefined; + } - Object.defineProperty(exports, "__esModule", { - value: true - }); + getParsingFlags(config).parsedDateParts = config._a.slice(0); + getParsingFlags(config).meridiem = config._meridiem; + // handle meridiem + config._a[HOUR] = meridiemFixWrap( + config._locale, + config._a[HOUR], + config._meridiem + ); - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + // handle era + era = getParsingFlags(config).era; + if (era !== null) { + config._a[YEAR] = config._locale.erasConvertYear(era, config._a[YEAR]); + } - var _react = __webpack_require__(1); + configFromArray(config); + checkOverflow(config); + } - var _react2 = _interopRequireDefault(_react); + function meridiemFixWrap(locale, hour, meridiem) { + var isPm; - var _propTypes = __webpack_require__(6); + if (meridiem == null) { + // nothing to do + return hour; + } + if (locale.meridiemHour != null) { + return locale.meridiemHour(hour, meridiem); + } else if (locale.isPM != null) { + // Fallback + isPm = locale.isPM(meridiem); + if (isPm && hour < 12) { + hour += 12; + } + if (!isPm && hour === 12) { + hour = 0; + } + return hour; + } else { + // this is not supposed to happen + return hour; + } + } - var _propTypes2 = _interopRequireDefault(_propTypes); + // date from string and array of format strings + function configFromStringAndArray(config) { + var tempConfig, + bestMoment, + scoreToBeat, + i, + currentScore, + validFormatFound, + bestFormatIsValid = false; - var _CalendarHeader = __webpack_require__(541); + if (config._f.length === 0) { + getParsingFlags(config).invalidFormat = true; + config._d = new Date(NaN); + return; + } - var _CalendarHeader2 = _interopRequireDefault(_CalendarHeader); + for (i = 0; i < config._f.length; i++) { + currentScore = 0; + validFormatFound = false; + tempConfig = copyConfig({}, config); + if (config._useUTC != null) { + tempConfig._useUTC = config._useUTC; + } + tempConfig._f = config._f[i]; + configFromStringAndFormat(tempConfig); - var _DateTable = __webpack_require__(401); + if (isValid(tempConfig)) { + validFormatFound = true; + } - var _DateTable2 = _interopRequireDefault(_DateTable); + // if there is any input that was not parsed add a penalty for that format + currentScore += getParsingFlags(tempConfig).charsLeftOver; - var _DateInput = __webpack_require__(545); + //or tokens + currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10; - var _DateInput2 = _interopRequireDefault(_DateInput); + getParsingFlags(tempConfig).score = currentScore; - var _index = __webpack_require__(540); + if (!bestFormatIsValid) { + if ( + scoreToBeat == null || + currentScore < scoreToBeat || + validFormatFound + ) { + scoreToBeat = currentScore; + bestMoment = tempConfig; + if (validFormatFound) { + bestFormatIsValid = true; + } + } + } else { + if (currentScore < scoreToBeat) { + scoreToBeat = currentScore; + bestMoment = tempConfig; + } + } + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + extend(config, bestMoment || tempConfig); + } - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + function configFromObject(config) { + if (config._d) { + return; + } - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + var i = normalizeObjectUnits(config._i), + dayOrDate = i.day === undefined ? i.date : i.day; + config._a = map( + [i.year, i.month, dayOrDate, i.hour, i.minute, i.second, i.millisecond], + function (obj) { + return obj && parseInt(obj, 10); + } + ); - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + configFromArray(config); + } - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + function createFromConfig(config) { + var res = new Moment(checkOverflow(prepareConfig(config))); + if (res._nextDay) { + // Adding is smart enough around DST + res.add(1, 'd'); + res._nextDay = undefined; + } - var CalendarPart = function (_React$Component) { - _inherits(CalendarPart, _React$Component); + return res; + } - function CalendarPart() { - _classCallCheck(this, CalendarPart); + function prepareConfig(config) { + var input = config._i, + format = config._f; - return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); - } + config._locale = config._locale || getLocale(config._l); - CalendarPart.prototype.render = function render() { - var props = this.props; - var prefixCls = props.prefixCls, - value = props.value, - hoverValue = props.hoverValue, - selectedValue = props.selectedValue, - mode = props.mode, - direction = props.direction, - locale = props.locale, - format = props.format, - placeholder = props.placeholder, - disabledDate = props.disabledDate, - timePicker = props.timePicker, - disabledTime = props.disabledTime, - timePickerDisabledTime = props.timePickerDisabledTime, - showTimePicker = props.showTimePicker, - onInputChange = props.onInputChange, - onInputSelect = props.onInputSelect, - enablePrev = props.enablePrev, - enableNext = props.enableNext, - clearIcon = props.clearIcon, - renderError = props.renderError, - inputTabIndex = props.inputTabIndex, - onInputBlur = props.onInputBlur, - validatorFunc = props.validatorFunc; + if (input === null || (format === undefined && input === '')) { + return createInvalid({ nullInput: true }); + } - var shouldShowTimePicker = showTimePicker && timePicker; - var disabledTimeConfig = shouldShowTimePicker && disabledTime ? (0, _index.getTimeConfig)(selectedValue, disabledTime) : null; - var rangeClassName = prefixCls + '-range'; - var newProps = { - locale: locale, - value: value, - prefixCls: prefixCls, - showTimePicker: showTimePicker - }; - var index = direction === 'left' ? 0 : 1; - var timePickerEle = shouldShowTimePicker && _react2["default"].cloneElement(timePicker, _extends({ - showHour: true, - showMinute: true, - showSecond: true - }, timePicker.props, disabledTimeConfig, timePickerDisabledTime, { - onChange: onInputChange, - defaultOpenValue: value, - value: selectedValue[index] - })); + if (typeof input === 'string') { + config._i = input = config._locale.preparse(input); + } - var dateInputElement = props.showDateInput && _react2["default"].createElement(_DateInput2["default"], { - isRange: true, - format: format, - locale: locale, - prefixCls: prefixCls, - timePicker: timePicker, - disabledDate: disabledDate, - placeholder: placeholder, - disabledTime: disabledTime, - value: value, - showClear: false, - selectedValue: selectedValue[index], - onChange: onInputChange, - onSelect: onInputSelect, - clearIcon: clearIcon, - renderError: renderError, - inputTabIndex: inputTabIndex, - onBlur: onInputBlur, - validatorFunc: validatorFunc - }); + if (isMoment(input)) { + return new Moment(checkOverflow(input)); + } else if (isDate(input)) { + config._d = input; + } else if (isArray(format)) { + configFromStringAndArray(config); + } else if (format) { + configFromStringAndFormat(config); + } else { + configFromInput(config); + } - return _react2["default"].createElement( - 'div', - { - className: rangeClassName + '-part ' + rangeClassName + '-' + direction - }, - dateInputElement, - _react2["default"].createElement( - 'div', - { style: { outline: 'none' }, tabIndex: props.tabIndex, className: rangeClassName + '-out' }, - _react2["default"].createElement(_CalendarHeader2["default"], _extends({}, newProps, { - mode: mode, - enableNext: enableNext, - enablePrev: enablePrev, - onValueChange: props.onValueChange, - onPanelChange: props.onPanelChange, - disabledMonth: props.disabledMonth - })), - showTimePicker ? _react2["default"].createElement( - 'div', - { className: prefixCls + '-time-picker' }, - _react2["default"].createElement( - 'div', - { className: prefixCls + '-time-picker-panel' }, - timePickerEle - ) - ) : null, - _react2["default"].createElement( - 'div', - { className: prefixCls + '-body' }, - _react2["default"].createElement(_DateTable2["default"], _extends({}, newProps, { - hoverValue: hoverValue, - selectedValue: selectedValue, - dateRender: props.dateRender, - onSelect: props.onSelect, - onDayHover: props.onDayHover, - disabledDate: disabledDate, - showWeekNumber: props.showWeekNumber - })) - ) - ) - ); - }; + if (!isValid(config)) { + config._d = null; + } - return CalendarPart; - }(_react2["default"].Component); + return config; + } - CalendarPart.propTypes = { - prefixCls: _propTypes2["default"].string, - value: _propTypes2["default"].any, - hoverValue: _propTypes2["default"].any, - selectedValue: _propTypes2["default"].any, - direction: _propTypes2["default"].any, - locale: _propTypes2["default"].any, - showDateInput: _propTypes2["default"].bool, - showTimePicker: _propTypes2["default"].bool, - format: _propTypes2["default"].any, - placeholder: _propTypes2["default"].any, - disabledDate: _propTypes2["default"].any, - timePicker: _propTypes2["default"].any, - disabledTime: _propTypes2["default"].any, - onInputChange: _propTypes2["default"].func, - onInputSelect: _propTypes2["default"].func, - timePickerDisabledTime: _propTypes2["default"].object, - enableNext: _propTypes2["default"].any, - enablePrev: _propTypes2["default"].any, - clearIcon: _propTypes2["default"].node - }; - exports["default"] = CalendarPart; - module.exports = exports['default']; - -/***/ }), -/* 574 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; + function configFromInput(config) { + var input = config._i; + if (isUndefined(input)) { + config._d = new Date(hooks.now()); + } else if (isDate(input)) { + config._d = new Date(input.valueOf()); + } else if (typeof input === 'string') { + configFromString(config); + } else if (isArray(input)) { + config._a = map(input.slice(0), function (obj) { + return parseInt(obj, 10); + }); + configFromArray(config); + } else if (isObject(input)) { + configFromObject(config); + } else if (isNumber(input)) { + // from milliseconds + config._d = new Date(input); + } else { + hooks.createFromInputFallback(config); + } + } - Object.defineProperty(exports, "__esModule", { - value: true - }); + function createLocalOrUTC(input, format, locale, strict, isUTC) { + var c = {}; - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + if (format === true || format === false) { + strict = format; + format = undefined; + } - var _rcCalendar = __webpack_require__(398); + if (locale === true || locale === false) { + strict = locale; + locale = undefined; + } - var _rcCalendar2 = _interopRequireDefault(_rcCalendar); + if ( + (isObject(input) && isObjectEmpty(input)) || + (isArray(input) && input.length === 0) + ) { + input = undefined; + } + // object construction must be done this way. + // https://github.com/moment/moment/issues/1423 + c._isAMomentObject = true; + c._useUTC = c._isUTC = isUTC; + c._l = locale; + c._i = input; + c._f = format; + c._strict = strict; - var _react = __webpack_require__(1); + return createFromConfig(c); + } - var _react2 = _interopRequireDefault(_react); + function createLocal(input, format, locale, strict) { + return createLocalOrUTC(input, format, locale, strict, false); + } - var _reactDom = __webpack_require__(2); + var prototypeMin = deprecate( + 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/', + function () { + var other = createLocal.apply(null, arguments); + if (this.isValid() && other.isValid()) { + return other < this ? this : other; + } else { + return createInvalid(); + } + } + ), + prototypeMax = deprecate( + 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/', + function () { + var other = createLocal.apply(null, arguments); + if (this.isValid() && other.isValid()) { + return other > this ? this : other; + } else { + return createInvalid(); + } + } + ); - var _reactDom2 = _interopRequireDefault(_reactDom); + // Pick a moment m from moments so that m[fn](other) is true for all + // other. This relies on the function fn to be transitive. + // + // moments should either be an array of moment objects or an array, whose + // first element is an array of moment objects. + function pickBy(fn, moments) { + var res, i; + if (moments.length === 1 && isArray(moments[0])) { + moments = moments[0]; + } + if (!moments.length) { + return createLocal(); + } + res = moments[0]; + for (i = 1; i < moments.length; ++i) { + if (!moments[i].isValid() || moments[i][fn](res)) { + res = moments[i]; + } + } + return res; + } - var _classnames = __webpack_require__(5); + // TODO: Use [].sort instead? + function min() { + var args = [].slice.call(arguments, 0); - var _classnames2 = _interopRequireDefault(_classnames); + return pickBy('isBefore', args); + } - var _Picker = __webpack_require__(556); + function max() { + var args = [].slice.call(arguments, 0); - var _Picker2 = _interopRequireDefault(_Picker); + return pickBy('isAfter', args); + } - var _beeFormControl = __webpack_require__(268); + var now = function () { + return Date.now ? Date.now() : +new Date(); + }; - var _beeFormControl2 = _interopRequireDefault(_beeFormControl); + var ordering = [ + 'year', + 'quarter', + 'month', + 'week', + 'day', + 'hour', + 'minute', + 'second', + 'millisecond', + ]; - var _zh_CN = __webpack_require__(567); + function isDurationValid(m) { + var key, + unitHasDecimal = false, + i; + for (key in m) { + if ( + hasOwnProp(m, key) && + !( + indexOf.call(ordering, key) !== -1 && + (m[key] == null || !isNaN(m[key])) + ) + ) { + return false; + } + } - var _zh_CN2 = _interopRequireDefault(_zh_CN); + for (i = 0; i < ordering.length; ++i) { + if (m[ordering[i]]) { + if (unitHasDecimal) { + return false; // only allow non-integers for smallest unit + } + if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) { + unitHasDecimal = true; + } + } + } - var _en_US = __webpack_require__(554); + return true; + } - var _en_US2 = _interopRequireDefault(_en_US); + function isValid$1() { + return this._isValid; + } - var _beeIcon = __webpack_require__(67); + function createInvalid$1() { + return createDuration(NaN); + } - var _beeIcon2 = _interopRequireDefault(_beeIcon); + function Duration(duration) { + var normalizedInput = normalizeObjectUnits(duration), + years = normalizedInput.year || 0, + quarters = normalizedInput.quarter || 0, + months = normalizedInput.month || 0, + weeks = normalizedInput.week || normalizedInput.isoWeek || 0, + days = normalizedInput.day || 0, + hours = normalizedInput.hour || 0, + minutes = normalizedInput.minute || 0, + seconds = normalizedInput.second || 0, + milliseconds = normalizedInput.millisecond || 0; - var _beeInputGroup = __webpack_require__(562); + this._isValid = isDurationValid(normalizedInput); - var _beeInputGroup2 = _interopRequireDefault(_beeInputGroup); + // representation for dateAddRemove + this._milliseconds = + +milliseconds + + seconds * 1e3 + // 1000 + minutes * 6e4 + // 1000 * 60 + hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978 + // Because of dateAddRemove treats 24 hours as different from a + // day when working around DST, we need to store them separately + this._days = +days + weeks * 7; + // It is impossible to translate months into days without knowing + // which months you are are talking about, so we have to store + // it separately. + this._months = +months + quarters * 3 + years * 12; - var _moment = __webpack_require__(404); + this._data = {}; - var _moment2 = _interopRequireDefault(_moment); + this._locale = getLocale(); - __webpack_require__(535); + this._bubble(); + } - __webpack_require__(434); + function isDuration(obj) { + return obj instanceof Duration; + } - var _omit = __webpack_require__(568); + function absRound(number) { + if (number < 0) { + return Math.round(-1 * number) * -1; + } else { + return Math.round(number); + } + } - var _omit2 = _interopRequireDefault(_omit); + // compare two arrays, return the number of differences + function compareArrays(array1, array2, dontConvert) { + var len = Math.min(array1.length, array2.length), + lengthDiff = Math.abs(array1.length - array2.length), + diffs = 0, + i; + for (i = 0; i < len; i++) { + if ( + (dontConvert && array1[i] !== array2[i]) || + (!dontConvert && toInt(array1[i]) !== toInt(array2[i])) + ) { + diffs++; + } + } + return diffs + lengthDiff; + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + // FORMATTING - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + function offset(token, separator) { + addFormatToken(token, 0, 0, function () { + var offset = this.utcOffset(), + sign = '+'; + if (offset < 0) { + offset = -offset; + sign = '-'; + } + return ( + sign + + zeroFill(~~(offset / 60), 2) + + separator + + zeroFill(~~offset % 60, 2) + ); + }); + } - function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure undefined"); } + offset('Z', ':'); + offset('ZZ', ''); - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + // PARSING - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + addRegexToken('Z', matchShortOffset); + addRegexToken('ZZ', matchShortOffset); + addParseToken(['Z', 'ZZ'], function (input, array, config) { + config._useUTC = true; + config._tzm = offsetFromString(matchShortOffset, input); + }); - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + // HELPERS - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** - * Created by chief on 17/4/6. - */ + // timezone chunker + // '+10:00' > ['10', '00'] + // '-1530' > ['-15', '30'] + var chunkOffset = /([\+\-]|\d\d)/gi; - var cn = typeof window !== 'undefined' ? location.search.indexOf("cn") !== -1 : true; + function offsetFromString(matcher, string) { + var matches = (string || '').match(matcher), + chunk, + parts, + minutes; - var now = (0, _moment2["default"])(); - if (cn) { - now.locale("zh-cn").utcOffset(8); - } else { - now.locale("en-gb").utcOffset(0); - } + if (matches === null) { + return null; + } - var format = "YYYY-Wo"; + chunk = matches[matches.length - 1] || []; + parts = (chunk + '').match(chunkOffset) || ['-', 0, 0]; + minutes = +(parts[1] * 60) + toInt(parts[2]); - var style = "\n.week-calendar .rc-calendar-tbody > tr:hover\n.rc-calendar-date {\n background: #ebfaff;\n}\n\n.week-calendar .rc-calendar-tbody > tr:hover\n.rc-calendar-selected-day .rc-calendar-date {\n background: #3fc7fa;\n}\n.week-calendar .week-calendar-footer {\n position:absolute;\n top:0;\n left:0;\n bottom:0;\n width:100%;\n border-right: 1px solid #ccc;\n}\n"; + return minutes === 0 ? 0 : parts[0] === '+' ? minutes : -minutes; + } - var WeekPicker = function (_Component) { - _inherits(WeekPicker, _Component); + // Return a moment from input, that is local/utc/zone equivalent to model. + function cloneWithOffset(input, model) { + var res, diff; + if (model._isUTC) { + res = model.clone(); + diff = + (isMoment(input) || isDate(input) + ? input.valueOf() + : createLocal(input).valueOf()) - res.valueOf(); + // Use low-level api, because this fn is low-level api. + res._d.setTime(res._d.valueOf() + diff); + hooks.updateOffset(res, false); + return res; + } else { + return createLocal(input).local(); + } + } - function WeekPicker(props, context) { - _classCallCheck(this, WeekPicker); + function getDateOffset(m) { + // On Firefox.24 Date#getTimezoneOffset returns a floating point. + // https://github.com/moment/moment/pull/1871 + return -Math.round(m._d.getTimezoneOffset()); + } - var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); + // HOOKS - _initialiseProps.call(_this); + // This function will be called whenever a moment is mutated. + // It is intended to keep the offset in sync with the timezone. + hooks.updateOffset = function () {}; - _this.state = { - value: _this.initValue(props), - open: false, - showClose: false - }; - return _this; - } + // MOMENTS - WeekPicker.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - if ("value" in nextProps) { - this.setState({ - value: this.initValue(nextProps) - }); + // keepLocalTime = true means only change the timezone, without + // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]--> + // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset + // +0200, so we adjust the time as needed, to be valid. + // + // Keeping the time actually adds/subtracts (one hour) + // from the actual represented time. That is why we call updateOffset + // a second time. In case it wants us to change the offset again + // _changeInProgress == true case, then we have to adjust, because + // there is no such time in the given timezone. + function getSetOffset(input, keepLocalTime, keepMinutes) { + var offset = this._offset || 0, + localAdjust; + if (!this.isValid()) { + return input != null ? this : NaN; + } + if (input != null) { + if (typeof input === 'string') { + input = offsetFromString(matchShortOffset, input); + if (input === null) { + return this; + } + } else if (Math.abs(input) < 16 && !keepMinutes) { + input = input * 60; + } + if (!this._isUTC && keepLocalTime) { + localAdjust = getDateOffset(this); + } + this._offset = input; + this._isUTC = true; + if (localAdjust != null) { + this.add(localAdjust, 'm'); + } + if (offset !== input) { + if (!keepLocalTime || this._changeInProgress) { + addSubtract( + this, + createDuration(input - offset, 'm'), + 1, + false + ); + } else if (!this._changeInProgress) { + this._changeInProgress = true; + hooks.updateOffset(this, true); + this._changeInProgress = null; + } + } + return this; + } else { + return this._isUTC ? offset : getDateOffset(this); + } } - }; - //阻止组件内部事件冒泡到组件外部容器 + function getSetZone(input, keepLocalTime) { + if (input != null) { + if (typeof input !== 'string') { + input = -input; + } + + this.utcOffset(input, keepLocalTime); - WeekPicker.prototype.render = function render() { - var _this2 = this; + return this; + } else { + return -this.utcOffset(); + } + } - var state = this.state; - var props = this.props; + function setOffsetToUTC(keepLocalTime) { + return this.utcOffset(0, keepLocalTime); + } - var showClose = props.showClose, - others = _objectWithoutProperties(props, ["showClose"]); + function setOffsetToLocal(keepLocalTime) { + if (this._isUTC) { + this.utcOffset(0, keepLocalTime); + this._isUTC = false; - var value = state.value; - var calendar = _react2["default"].createElement(_rcCalendar2["default"], { - className: "week-calendar", - showWeekNumber: true, - showMonthInput: false, - renderFooter: this.renderFooter, - dateRender: this.dateRender, - locale: cn ? _zh_CN2["default"] : _en_US2["default"], - format: format, - dateInputPlaceholder: this.props.placeholder, - defaultValue: now, - showDateInput: true, - onChange: this.handleCalendarChange, - showToday: false, - onClear: this.onClear - }); - var classes = (0, _classnames2["default"])(props.className, "datepicker-container"); - return _react2["default"].createElement( - "div", - _extends({ className: classes, onClick: this.stopPropagation, onMouseOver: this.stopPropagation - }, (0, _omit2["default"])(others, ['closeIcon', 'renderIcon', 'format', 'locale', 'placeholder'])), - _react2["default"].createElement( - _Picker2["default"], - _extends({ - animation: "slide-up" - }, props, { - onOpenChange: this.onOpenChange, - open: this.state.open, - calendar: calendar, - value: state.value - }), - function (_ref) { - _objectDestructuringEmpty(_ref); + if (keepLocalTime) { + this.subtract(getDateOffset(this), 'm'); + } + } + return this; + } - return _react2["default"].createElement( - _beeInputGroup2["default"], - { simple: true, className: "datepicker-input-group", - onMouseEnter: _this2.onMouseEnter, - onMouseLeave: _this2.onMouseLeave - }, - _react2["default"].createElement(_beeFormControl2["default"], { - placeholder: _this2.props.placeholder, - disabled: props.disabled, - readOnly: true, - tabIndex: "-1", - className: _this2.props.className, - value: value && value.format(format) || "" - }), - showClose && _this2.state.value && _this2.state.showClose && !props.disabled ? _react2["default"].createElement( - _beeInputGroup2["default"].Button, - { shape: "border", - onClick: _this2.onClear }, - props.closeIcon() - ) : _react2["default"].createElement( - _beeInputGroup2["default"].Button, - { shape: "border" }, - props.renderIcon() - ) - ); + function setOffsetToParsedOffset() { + if (this._tzm != null) { + this.utcOffset(this._tzm, false, true); + } else if (typeof this._i === 'string') { + var tZone = offsetFromString(matchOffset, this._i); + if (tZone != null) { + this.utcOffset(tZone); + } else { + this.utcOffset(0, true); + } } - ) - ); - }; + return this; + } - return WeekPicker; - }(_react.Component); + function hasAlignedHourOffset(input) { + if (!this.isValid()) { + return false; + } + input = input ? createLocal(input).utcOffset() : 0; - var _initialiseProps = function _initialiseProps() { - var _this3 = this; + return (this.utcOffset() - input) % 60 === 0; + } - this.initValue = function (props) { - var value = props.value || props.defaultValue || ''; - var format = props.format; - if (value) { - if (typeof value == 'string') { - if ((0, _moment2["default"])(value, format).isValid()) { - value = (0, _moment2["default"])(value, format); + function isDaylightSavingTime() { + return ( + this.utcOffset() > this.clone().month(0).utcOffset() || + this.utcOffset() > this.clone().month(5).utcOffset() + ); + } + + function isDaylightSavingTimeShifted() { + if (!isUndefined(this._isDSTShifted)) { + return this._isDSTShifted; + } + + var c = {}, + other; + + copyConfig(c, this); + c = prepareConfig(c); + + if (c._a) { + other = c._isUTC ? createUTC(c._a) : createLocal(c._a); + this._isDSTShifted = + this.isValid() && compareArrays(c._a, other.toArray()) > 0; } else { - console.error('value is not in the correct format'); - value = ''; + this._isDSTShifted = false; } - } else if (value.format && value.isValid()) { - value = value; - } else { - console.error('value is not in the correct format'); - value = ''; - } - } - return value; - }; + return this._isDSTShifted; + } - this.onChange = function (value) { - _this3.setState({ - value: value - }); - }; + function isLocal() { + return this.isValid() ? !this._isUTC : false; + } - this.onOpenChange = function (open) { - _this3.setState({ - open: open - }); - }; + function isUtcOffset() { + return this.isValid() ? this._isUTC : false; + } - this.dateRender = function (current) { - var selectedValue = _this3.state.value; - if (selectedValue && current.year() === selectedValue.year() && current.week() === selectedValue.week()) { - return _react2["default"].createElement( - "div", - { className: "rc-calendar-selected-day" }, - _react2["default"].createElement( - "div", - { className: "rc-calendar-date" }, - current.date() - ) - ); + function isUtc() { + return this.isValid() ? this._isUTC && this._offset === 0 : false; } - return _react2["default"].createElement( - "div", - { className: "rc-calendar-date" }, - current.date() - ); - }; - this.lastWeek = function () { - var value = _this3.props.value || now; - value.add(-1, "weeks"); - _this3.setState({ - value: value, - open: false - }); - }; + // ASP.NET json date format regex + var aspNetRegex = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, + // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html + // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere + // and further modified to allow for strings containing both week and day + isoRegex = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/; - this.nextWeek = function () { - var value = _this3.props.value || now; - value.add(+1, "weeks"); - _this3.setState({ - value: value, - open: false - }); - }; + function createDuration(input, key) { + var duration = input, + // matching against regexp is expensive, do it on demand + match = null, + sign, + ret, + diffRes; - this.nowWeek = function () { - var value = now; - _this3.setState({ - value: value, - open: false - }); - }; + if (isDuration(input)) { + duration = { + ms: input._milliseconds, + d: input._days, + M: input._months, + }; + } else if (isNumber(input) || !isNaN(+input)) { + duration = {}; + if (key) { + duration[key] = +input; + } else { + duration.milliseconds = +input; + } + } else if ((match = aspNetRegex.exec(input))) { + sign = match[1] === '-' ? -1 : 1; + duration = { + y: 0, + d: toInt(match[DATE]) * sign, + h: toInt(match[HOUR]) * sign, + m: toInt(match[MINUTE]) * sign, + s: toInt(match[SECOND]) * sign, + ms: toInt(absRound(match[MILLISECOND] * 1000)) * sign, // the millisecond decimal point is included in the match + }; + } else if ((match = isoRegex.exec(input))) { + sign = match[1] === '-' ? -1 : 1; + duration = { + y: parseIso(match[2], sign), + M: parseIso(match[3], sign), + w: parseIso(match[4], sign), + d: parseIso(match[5], sign), + h: parseIso(match[6], sign), + m: parseIso(match[7], sign), + s: parseIso(match[8], sign), + }; + } else if (duration == null) { + // checks for null or undefined + duration = {}; + } else if ( + typeof duration === 'object' && + ('from' in duration || 'to' in duration) + ) { + diffRes = momentsDifference( + createLocal(duration.from), + createLocal(duration.to) + ); - this.renderFooter = function () { - return _react2["default"].createElement( - "div", - { className: "week-calendar-footer", key: "footer" }, - _react2["default"].createElement( - "span", - { - className: "week-calendar-footer-button", - onClick: _this3.lastWeek.bind(_this3), - style: { 'float': 'left' } - }, - _this3.props.locale.lastWeek - ), - _react2["default"].createElement( - "span", - { - className: "week-calendar-footer-button", - onClick: _this3.nowWeek.bind(_this3) - }, - _this3.props.locale.nowWeek - ), - _react2["default"].createElement( - "span", - { - className: "week-calendar-footer-button", - onClick: _this3.nextWeek.bind(_this3), - style: { 'float': 'right' } - }, - _this3.props.locale.nextWeek - ) - ); - }; + duration = {}; + duration.ms = diffRes.milliseconds; + duration.M = diffRes.months; + } - this.onTypeChange = function (type) { - _this3.setState({ - type: type - }); - }; + ret = new Duration(duration); - this.handleCalendarChange = function (value) { - _this3.setState({ - value: value && _extends(value, { _type: 'week' }) || value - }); - }; + if (isDuration(input) && hasOwnProp(input, '_locale')) { + ret._locale = input._locale; + } - this.onMouseLeave = function (e) { - _this3.setState({ - showClose: false - }); - }; + if (isDuration(input) && hasOwnProp(input, '_isValid')) { + ret._isValid = input._isValid; + } - this.onMouseEnter = function (e) { - _this3.setState({ - showClose: true - }); - }; + return ret; + } - this.onClear = function (e) { - e && e.stopPropagation && e.stopPropagation(); - _this3.setState({ - value: '' - }); - _this3.props.onChange && _this3.props.onChange('', ''); - }; + createDuration.fn = Duration.prototype; + createDuration.invalid = createInvalid$1; - this.stopPropagation = function (e) { - e.stopPropagation(); - }; - }; + function parseIso(inp, sign) { + // We'd normally use ~~inp for this, but unfortunately it also + // converts floats to ints. + // inp may be undefined, so careful calling replace on it. + var res = inp && parseFloat(inp.replace(',', '.')); + // apply sign while we're at it + return (isNaN(res) ? 0 : res) * sign; + } - WeekPicker.defaultProps = { - closeIcon: function closeIcon() { - return _react2["default"].createElement(_beeIcon2["default"], { type: "uf-close-c" }); - }, - renderIcon: function renderIcon() { - return _react2["default"].createElement(_beeIcon2["default"], { type: "uf-calendar" }); - }, - locale: _zh_CN2["default"], - showClose: true, - format: "YYYY-Wo" - }; + function positiveMomentsDifference(base, other) { + var res = {}; - exports["default"] = WeekPicker; - module.exports = exports["default"]; - -/***/ }), -/* 575 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; + res.months = + other.month() - base.month() + (other.year() - base.year()) * 12; + if (base.clone().add(res.months, 'M').isAfter(other)) { + --res.months; + } - Object.defineProperty(exports, "__esModule", { - value: true - }); + res.milliseconds = +other - +base.clone().add(res.months, 'M'); - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + return res; + } - var _YearPanel = __webpack_require__(546); + function momentsDifference(base, other) { + var res; + if (!(base.isValid() && other.isValid())) { + return { milliseconds: 0, months: 0 }; + } - var _YearPanel2 = _interopRequireDefault(_YearPanel); + other = cloneWithOffset(other, base); + if (base.isBefore(other)) { + res = positiveMomentsDifference(base, other); + } else { + res = positiveMomentsDifference(other, base); + res.milliseconds = -res.milliseconds; + res.months = -res.months; + } - var _tinperBeeCore = __webpack_require__(27); + return res; + } - var _zh_CN = __webpack_require__(567); + // TODO: remove 'name' arg after deprecation is removed + function createAdder(direction, name) { + return function (val, period) { + var dur, tmp; + //invert the arguments, but complain about it + if (period !== null && !isNaN(+period)) { + deprecateSimple( + name, + 'moment().' + + name + + '(period, number) is deprecated. Please use moment().' + + name + + '(number, period). ' + + 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.' + ); + tmp = val; + val = period; + period = tmp; + } - var _zh_CN2 = _interopRequireDefault(_zh_CN); + dur = createDuration(val, period); + addSubtract(this, dur, direction); + return this; + }; + } - var _react = __webpack_require__(1); + function addSubtract(mom, duration, isAdding, updateOffset) { + var milliseconds = duration._milliseconds, + days = absRound(duration._days), + months = absRound(duration._months); - var _react2 = _interopRequireDefault(_react); + if (!mom.isValid()) { + // No op + return; + } - var _reactDom = __webpack_require__(2); + updateOffset = updateOffset == null ? true : updateOffset; - var _reactDom2 = _interopRequireDefault(_reactDom); + if (months) { + setMonth(mom, get(mom, 'Month') + months * isAdding); + } + if (days) { + set$1(mom, 'Date', get(mom, 'Date') + days * isAdding); + } + if (milliseconds) { + mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding); + } + if (updateOffset) { + hooks.updateOffset(mom, days || months); + } + } - var _Picker = __webpack_require__(556); + var add = createAdder(1, 'add'), + subtract = createAdder(-1, 'subtract'); - var _Picker2 = _interopRequireDefault(_Picker); + function isString(input) { + return typeof input === 'string' || input instanceof String; + } - var _beeFormControl = __webpack_require__(268); + // type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined + function isMomentInput(input) { + return ( + isMoment(input) || + isDate(input) || + isString(input) || + isNumber(input) || + isNumberOrStringArray(input) || + isMomentInputObject(input) || + input === null || + input === undefined + ); + } - var _beeFormControl2 = _interopRequireDefault(_beeFormControl); + function isMomentInputObject(input) { + var objectTest = isObject(input) && !isObjectEmpty(input), + propertyTest = false, + properties = [ + 'years', + 'year', + 'y', + 'months', + 'month', + 'M', + 'days', + 'day', + 'd', + 'dates', + 'date', + 'D', + 'hours', + 'hour', + 'h', + 'minutes', + 'minute', + 'm', + 'seconds', + 'second', + 's', + 'milliseconds', + 'millisecond', + 'ms', + ], + i, + property; - var _beeInputGroup = __webpack_require__(562); + for (i = 0; i < properties.length; i += 1) { + property = properties[i]; + propertyTest = propertyTest || hasOwnProp(input, property); + } - var _beeInputGroup2 = _interopRequireDefault(_beeInputGroup); + return objectTest && propertyTest; + } - var _beeIcon = __webpack_require__(67); + function isNumberOrStringArray(input) { + var arrayTest = isArray(input), + dataTypeTest = false; + if (arrayTest) { + dataTypeTest = + input.filter(function (item) { + return !isNumber(item) && isString(input); + }).length === 0; + } + return arrayTest && dataTypeTest; + } - var _beeIcon2 = _interopRequireDefault(_beeIcon); + function isCalendarSpec(input) { + var objectTest = isObject(input) && !isObjectEmpty(input), + propertyTest = false, + properties = [ + 'sameDay', + 'nextDay', + 'lastDay', + 'nextWeek', + 'lastWeek', + 'sameElse', + ], + i, + property; - var _classnames = __webpack_require__(5); + for (i = 0; i < properties.length; i += 1) { + property = properties[i]; + propertyTest = propertyTest || hasOwnProp(input, property); + } - var _classnames2 = _interopRequireDefault(_classnames); + return objectTest && propertyTest; + } - var _moment = __webpack_require__(404); + function getCalendarFormat(myMoment, now) { + var diff = myMoment.diff(now, 'days', true); + return diff < -6 + ? 'sameElse' + : diff < -1 + ? 'lastWeek' + : diff < 0 + ? 'lastDay' + : diff < 1 + ? 'sameDay' + : diff < 2 + ? 'nextDay' + : diff < 7 + ? 'nextWeek' + : 'sameElse'; + } - var _moment2 = _interopRequireDefault(_moment); + function calendar$1(time, formats) { + // Support for single parameter, formats only overload to the calendar function + if (arguments.length === 1) { + if (isMomentInput(arguments[0])) { + time = arguments[0]; + formats = undefined; + } else if (isCalendarSpec(arguments[0])) { + formats = arguments[0]; + time = undefined; + } + } + // We want to compare the start of today, vs this. + // Getting start-of-today depends on whether we're local/utc/offset or not. + var now = time || createLocal(), + sod = cloneWithOffset(now, this).startOf('day'), + format = hooks.calendarFormat(this, sod) || 'sameElse', + output = + formats && + (isFunction(formats[format]) + ? formats[format].call(this, now) + : formats[format]); - var _omit = __webpack_require__(568); + return this.format( + output || this.localeData().calendar(format, this, createLocal(now)) + ); + } - var _omit2 = _interopRequireDefault(_omit); + function clone() { + return new Moment(this); + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + function isAfter(input, units) { + var localInput = isMoment(input) ? input : createLocal(input); + if (!(this.isValid() && localInput.isValid())) { + return false; + } + units = normalizeUnits(units) || 'millisecond'; + if (units === 'millisecond') { + return this.valueOf() > localInput.valueOf(); + } else { + return localInput.valueOf() < this.clone().startOf(units).valueOf(); + } + } - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + function isBefore(input, units) { + var localInput = isMoment(input) ? input : createLocal(input); + if (!(this.isValid() && localInput.isValid())) { + return false; + } + units = normalizeUnits(units) || 'millisecond'; + if (units === 'millisecond') { + return this.valueOf() < localInput.valueOf(); + } else { + return this.clone().endOf(units).valueOf() < localInput.valueOf(); + } + } - function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure undefined"); } + function isBetween(from, to, units, inclusivity) { + var localFrom = isMoment(from) ? from : createLocal(from), + localTo = isMoment(to) ? to : createLocal(to); + if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) { + return false; + } + inclusivity = inclusivity || '()'; + return ( + (inclusivity[0] === '(' + ? this.isAfter(localFrom, units) + : !this.isBefore(localFrom, units)) && + (inclusivity[1] === ')' + ? this.isBefore(localTo, units) + : !this.isAfter(localTo, units)) + ); + } - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + function isSame(input, units) { + var localInput = isMoment(input) ? input : createLocal(input), + inputMs; + if (!(this.isValid() && localInput.isValid())) { + return false; + } + units = normalizeUnits(units) || 'millisecond'; + if (units === 'millisecond') { + return this.valueOf() === localInput.valueOf(); + } else { + inputMs = localInput.valueOf(); + return ( + this.clone().startOf(units).valueOf() <= inputMs && + inputMs <= this.clone().endOf(units).valueOf() + ); + } + } - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + function isSameOrAfter(input, units) { + return this.isSame(input, units) || this.isAfter(input, units); + } - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + function isSameOrBefore(input, units) { + return this.isSame(input, units) || this.isBefore(input, units); + } - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** - * Created by chief on 17/4/6. - */ + function diff(input, units, asFloat) { + var that, zoneDelta, output; - //去掉focus报错 - _Picker2["default"].prototype.componentDidUpdate = function () {}; + if (!this.isValid()) { + return NaN; + } - var YearPicker = function (_Component) { - _inherits(YearPicker, _Component); + that = cloneWithOffset(input, this); - function YearPicker(props, context) { - _classCallCheck(this, YearPicker); + if (!that.isValid()) { + return NaN; + } - var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); + zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4; - _initialiseProps.call(_this); + units = normalizeUnits(units); - _this.state = { - type: "year", - value: _this.initValue(props), - open: props.open || false, - showClose: false - }; - return _this; + switch (units) { + case 'year': + output = monthDiff(this, that) / 12; + break; + case 'month': + output = monthDiff(this, that); + break; + case 'quarter': + output = monthDiff(this, that) / 3; + break; + case 'second': + output = (this - that) / 1e3; + break; // 1000 + case 'minute': + output = (this - that) / 6e4; + break; // 1000 * 60 + case 'hour': + output = (this - that) / 36e5; + break; // 1000 * 60 * 60 + case 'day': + output = (this - that - zoneDelta) / 864e5; + break; // 1000 * 60 * 60 * 24, negate dst + case 'week': + output = (this - that - zoneDelta) / 6048e5; + break; // 1000 * 60 * 60 * 24 * 7, negate dst + default: + output = this - that; + } + + return asFloat ? output : absFloor(output); } - YearPicker.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - if ("value" in nextProps) { - this.setState({ - value: this.initValue(nextProps) - }); - } - if ("open" in nextProps) { - this.setState({ - open: nextProps.open - }); - } - if ("renderIcon" in nextProps) { - this.setState({ - renderIcon: nextProps.renderIcon - }); + function monthDiff(a, b) { + if (a.date() < b.date()) { + // end-of-month calculations work correct when the start month has more + // days than the end month. + return -monthDiff(b, a); } - }; + // difference in months + var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month()), + // b is in (anchor - 1 month, anchor + 1 month) + anchor = a.clone().add(wholeMonthDiff, 'months'), + anchor2, + adjust; - //阻止组件内部事件冒泡到组件外部容器 + if (b - anchor < 0) { + anchor2 = a.clone().add(wholeMonthDiff - 1, 'months'); + // linear across the month + adjust = (b - anchor) / (anchor - anchor2); + } else { + anchor2 = a.clone().add(wholeMonthDiff + 1, 'months'); + // linear across the month + adjust = (b - anchor) / (anchor2 - anchor); + } + //check for negative zero, return zero if negative zero + return -(wholeMonthDiff + adjust) || 0; + } - YearPicker.prototype.render = function render() { - var _this2 = this; + hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ'; + hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]'; - var state = this.state; - var props = this.props; + function toString() { + return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ'); + } - var showClose = props.showClose, - others = _objectWithoutProperties(props, ["showClose"]); + function toISOString(keepOffset) { + if (!this.isValid()) { + return null; + } + var utc = keepOffset !== true, + m = utc ? this.clone().utc() : this; + if (m.year() < 0 || m.year() > 9999) { + return formatMoment( + m, + utc + ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]' + : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ' + ); + } + if (isFunction(Date.prototype.toISOString)) { + // native implementation is ~50x faster, use it when we can + if (utc) { + return this.toDate().toISOString(); + } else { + return new Date(this.valueOf() + this.utcOffset() * 60 * 1000) + .toISOString() + .replace('Z', formatMoment(m, 'Z')); + } + } + return formatMoment( + m, + utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ' + ); + } - var value = state.value; + /** + * Return a human readable representation of a moment that can + * also be evaluated to get a new moment which is the same + * + * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects + */ + function inspect() { + if (!this.isValid()) { + return 'moment.invalid(/* ' + this._i + ' */)'; + } + var func = 'moment', + zone = '', + prefix, + year, + datetime, + suffix; + if (!this.isLocal()) { + func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone'; + zone = 'Z'; + } + prefix = '[' + func + '("]'; + year = 0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY'; + datetime = '-MM-DD[T]HH:mm:ss.SSS'; + suffix = zone + '[")]'; - var Calendar = _react2["default"].createElement(_YearPanel2["default"], _extends({ - prefixCls: 'rc-calendar-picker', - rootPrefixCls: 'rc-calendar' - }, props, { focus: function focus() {}, - value: this.state.value, - onSelect: this.onSelect, - showDateInput: true - })); - var classes = (0, _classnames2["default"])(props.className, "datepicker-container"); - return _react2["default"].createElement( - "div", - _extends({ className: classes, onClick: this.stopPropagation, onMouseOver: this.stopPropagation - }, (0, _omit2["default"])(others, ['closeIcon', 'renderIcon', 'disabled', 'format', 'locale', 'placeholder'])), - _react2["default"].createElement( - _Picker2["default"], - _extends({ - animation: "slide-up" - }, props, { - onOpenChange: this.onOpenChange, - onChange: this.handleChange, - calendar: Calendar, - prefixCls: 'rc-calendar', - value: state.value, - open: this.state.open - }), - function (_ref) { - _objectDestructuringEmpty(_ref); + return this.format(prefix + year + datetime + suffix); + } - return _react2["default"].createElement( - _beeInputGroup2["default"], - { simple: true, className: "datepicker-input-group", - onMouseEnter: _this2.onMouseEnter, - onMouseLeave: _this2.onMouseLeave - }, - _react2["default"].createElement(_beeFormControl2["default"], { - ref: function ref(_ref2) { - return _this2.outInput = _ref2; - }, - placeholder: _this2.props.placeholder, - className: _this2.props.className, - disabled: props.disabled, - readOnly: true, - value: value && value.format(props.format) || "" - }), - showClose && _this2.state.value && _this2.state.showClose && !props.disabled ? _react2["default"].createElement( - _beeInputGroup2["default"].Button, - { shape: "border", - onClick: _this2.clear }, - props.closeIcon() - ) : _react2["default"].createElement( - _beeInputGroup2["default"].Button, - { shape: "border" }, - props.renderIcon() - ) - ); - } - ) - ); - }; + function format(inputString) { + if (!inputString) { + inputString = this.isUtc() + ? hooks.defaultFormatUtc + : hooks.defaultFormat; + } + var output = formatMoment(this, inputString); + return this.localeData().postformat(output); + } - return YearPicker; - }(_react.Component); + function from(time, withoutSuffix) { + if ( + this.isValid() && + ((isMoment(time) && time.isValid()) || createLocal(time).isValid()) + ) { + return createDuration({ to: this, from: time }) + .locale(this.locale()) + .humanize(!withoutSuffix); + } else { + return this.localeData().invalidDate(); + } + } - var _initialiseProps = function _initialiseProps() { - var _this3 = this; + function fromNow(withoutSuffix) { + return this.from(createLocal(), withoutSuffix); + } - this.initValue = function (props) { - var value = props.value || props.defaultValue; - if (value) { - if (typeof value == 'string') { - if ((0, _moment2["default"])(value).isValid()) { - value = (0, _moment2["default"])(value); - } else { - console.error('value is not in the correct format'); - value = ''; - } - } else if (value.format && value.isValid()) { - value = value; - } else { - console.error('value is not in the correct format'); - value = ''; - } + function to(time, withoutSuffix) { + if ( + this.isValid() && + ((isMoment(time) && time.isValid()) || createLocal(time).isValid()) + ) { + return createDuration({ from: this, to: time }) + .locale(this.locale()) + .humanize(!withoutSuffix); + } else { + return this.localeData().invalidDate(); } - return value; - }; + } - this.onChange = function (value) { - _this3.setState({ - value: value - }); - }; + function toNow(withoutSuffix) { + return this.to(createLocal(), withoutSuffix); + } - this.inputFocus = function () { - var self = _this3; - var input = document.querySelector('.rc-calendar-input'); - if (input) { - if (input.value) { - input.select(); - } else { - input.focus(); + // If passed a locale key, it will set the locale for this + // instance. Otherwise, it will return the locale configuration + // variables for this instance. + function locale(key) { + var newLocaleData; + + if (key === undefined) { + return this._locale._abbr; + } else { + newLocaleData = getLocale(key); + if (newLocaleData != null) { + this._locale = newLocaleData; } - input.onkeydown = function (e) { - if (e.keyCode == _tinperBeeCore.KeyCode.DELETE) { - input.value = ''; - self.props.onChange && self.props.onChange('', ''); - } else if (e.keyCode == _tinperBeeCore.KeyCode.ESC) { - self.setState({ - open: false - }); - var v = self.state.value; - self.props.onOpenChange && self.props.onOpenChange(false, v, v && v.format(self.props.format) || ''); - _reactDom2["default"].findDOMNode(self.outInput).focus(); // 按esc时候焦点回到input输入框 - } - }; + return this; } - }; + } - this.onOpenChange = function (open) { - var self = _this3; - _this3.setState({ - open: open - }); - if (open) { - setTimeout(function () { - self.inputFocus(); - }, 200); + var lang = deprecate( + 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.', + function (key) { + if (key === undefined) { + return this.localeData(); + } else { + return this.locale(key); + } } - }; + ); - this.handleChange = function (value) { - var props = _this3.props; - _this3.setState({ - value: value && _extends(value, { _type: 'year' }) || value - }); - props.onChange && props.onChange(value, value && value.format(props.format) || ''); - }; + function localeData() { + return this._locale; + } - this.onMouseLeave = function (e) { - _this3.setState({ - showClose: false - }); - }; + var MS_PER_SECOND = 1000, + MS_PER_MINUTE = 60 * MS_PER_SECOND, + MS_PER_HOUR = 60 * MS_PER_MINUTE, + MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR; - this.onMouseEnter = function (e) { - _this3.setState({ - showClose: true - }); - }; + // actual modulo - handles negative numbers (for dates before 1970): + function mod$1(dividend, divisor) { + return ((dividend % divisor) + divisor) % divisor; + } - this.clear = function (e) { - e.stopPropagation(); - _this3.setState({ - value: '' - }); - _this3.props.onChange && _this3.props.onChange('', ''); - }; + function localStartOfDate(y, m, d) { + // the date constructor remaps years 0-99 to 1900-1999 + if (y < 100 && y >= 0) { + // preserve leap years using a full 400 year cycle, then reset + return new Date(y + 400, m, d) - MS_PER_400_YEARS; + } else { + return new Date(y, m, d).valueOf(); + } + } - this.onSelect = function (value) { - var _props = _this3.props, - onSelect = _props.onSelect, - format = _props.format; + function utcStartOfDate(y, m, d) { + // Date.UTC remaps years 0-99 to 1900-1999 + if (y < 100 && y >= 0) { + // preserve leap years using a full 400 year cycle, then reset + return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS; + } else { + return Date.UTC(y, m, d); + } + } - _this3.setState({ - open: false - }); - onSelect && onSelect(value, value ? value.format(format) : ''); - _reactDom2["default"].findDOMNode(_this3.outInput).focus(); - }; + function startOf(units) { + var time, startOfDate; + units = normalizeUnits(units); + if (units === undefined || units === 'millisecond' || !this.isValid()) { + return this; + } - this.stopPropagation = function (e) { - e.stopPropagation(); - }; - }; + startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate; - YearPicker.defaultProps = { - closeIcon: function closeIcon() { - return _react2["default"].createElement(_beeIcon2["default"], { type: "uf-close-c" }); - }, - renderIcon: function renderIcon() { - return _react2["default"].createElement(_beeIcon2["default"], { type: "uf-calendar" }); - }, - disabled: false, - showClose: true, - locale: _zh_CN2["default"], - format: 'YYYY', - validatorFunc: function validatorFunc() { - return true; - } - }; + switch (units) { + case 'year': + time = startOfDate(this.year(), 0, 1); + break; + case 'quarter': + time = startOfDate( + this.year(), + this.month() - (this.month() % 3), + 1 + ); + break; + case 'month': + time = startOfDate(this.year(), this.month(), 1); + break; + case 'week': + time = startOfDate( + this.year(), + this.month(), + this.date() - this.weekday() + ); + break; + case 'isoWeek': + time = startOfDate( + this.year(), + this.month(), + this.date() - (this.isoWeekday() - 1) + ); + break; + case 'day': + case 'date': + time = startOfDate(this.year(), this.month(), this.date()); + break; + case 'hour': + time = this._d.valueOf(); + time -= mod$1( + time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), + MS_PER_HOUR + ); + break; + case 'minute': + time = this._d.valueOf(); + time -= mod$1(time, MS_PER_MINUTE); + break; + case 'second': + time = this._d.valueOf(); + time -= mod$1(time, MS_PER_SECOND); + break; + } - exports["default"] = YearPicker; - module.exports = exports["default"]; - -/***/ }), -/* 576 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; + this._d.setTime(time); + hooks.updateOffset(this, true); + return this; + } - Object.defineProperty(exports, "__esModule", { - value: true - }); + function endOf(units) { + var time, startOfDate; + units = normalizeUnits(units); + if (units === undefined || units === 'millisecond' || !this.isValid()) { + return this; + } - var _Select = __webpack_require__(577); + startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate; - var _Select2 = _interopRequireDefault(_Select); + switch (units) { + case 'year': + time = startOfDate(this.year() + 1, 0, 1) - 1; + break; + case 'quarter': + time = + startOfDate( + this.year(), + this.month() - (this.month() % 3) + 3, + 1 + ) - 1; + break; + case 'month': + time = startOfDate(this.year(), this.month() + 1, 1) - 1; + break; + case 'week': + time = + startOfDate( + this.year(), + this.month(), + this.date() - this.weekday() + 7 + ) - 1; + break; + case 'isoWeek': + time = + startOfDate( + this.year(), + this.month(), + this.date() - (this.isoWeekday() - 1) + 7 + ) - 1; + break; + case 'day': + case 'date': + time = startOfDate(this.year(), this.month(), this.date() + 1) - 1; + break; + case 'hour': + time = this._d.valueOf(); + time += + MS_PER_HOUR - + mod$1( + time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), + MS_PER_HOUR + ) - + 1; + break; + case 'minute': + time = this._d.valueOf(); + time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1; + break; + case 'second': + time = this._d.valueOf(); + time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1; + break; + } - var _Option = __webpack_require__(589); + this._d.setTime(time); + hooks.updateOffset(this, true); + return this; + } - var _Option2 = _interopRequireDefault(_Option); + function valueOf() { + return this._d.valueOf() - (this._offset || 0) * 60000; + } - var _PropTypes = __webpack_require__(593); + function unix() { + return Math.floor(this.valueOf() / 1000); + } - var _OptGroup = __webpack_require__(594); + function toDate() { + return new Date(this.valueOf()); + } - var _OptGroup2 = _interopRequireDefault(_OptGroup); + function toArray() { + var m = this; + return [ + m.year(), + m.month(), + m.date(), + m.hour(), + m.minute(), + m.second(), + m.millisecond(), + ]; + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + function toObject() { + var m = this; + return { + years: m.year(), + months: m.month(), + date: m.date(), + hours: m.hours(), + minutes: m.minutes(), + seconds: m.seconds(), + milliseconds: m.milliseconds(), + }; + } - _Select2["default"].Option = _Option2["default"]; - _Select2["default"].OptGroup = _OptGroup2["default"]; - exports["default"] = _Select2["default"]; - module.exports = exports['default']; - -/***/ }), -/* 577 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; + function toJSON() { + // new Date(NaN).toJSON() === null + return this.isValid() ? this.toISOString() : null; + } - Object.defineProperty(exports, "__esModule", { - value: true - }); + function isValid$2() { + return isValid(this); + } - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + function parsingFlags() { + return extend({}, getParsingFlags(this)); + } - var _react = __webpack_require__(1); + function invalidAt() { + return getParsingFlags(this).overflow; + } - var _react2 = _interopRequireDefault(_react); + function creationData() { + return { + input: this._i, + format: this._f, + locale: this._locale, + isUTC: this._isUTC, + strict: this._strict, + }; + } - var _reactDom = __webpack_require__(2); + addFormatToken('N', 0, 0, 'eraAbbr'); + addFormatToken('NN', 0, 0, 'eraAbbr'); + addFormatToken('NNN', 0, 0, 'eraAbbr'); + addFormatToken('NNNN', 0, 0, 'eraName'); + addFormatToken('NNNNN', 0, 0, 'eraNarrow'); - var _reactDom2 = _interopRequireDefault(_reactDom); + addFormatToken('y', ['y', 1], 'yo', 'eraYear'); + addFormatToken('y', ['yy', 2], 0, 'eraYear'); + addFormatToken('y', ['yyy', 3], 0, 'eraYear'); + addFormatToken('y', ['yyyy', 4], 0, 'eraYear'); - var _propTypes = __webpack_require__(6); + addRegexToken('N', matchEraAbbr); + addRegexToken('NN', matchEraAbbr); + addRegexToken('NNN', matchEraAbbr); + addRegexToken('NNNN', matchEraName); + addRegexToken('NNNNN', matchEraNarrow); - var _propTypes2 = _interopRequireDefault(_propTypes); + addParseToken(['N', 'NN', 'NNN', 'NNNN', 'NNNNN'], function ( + input, + array, + config, + token + ) { + var era = config._locale.erasParse(input, token, config._strict); + if (era) { + getParsingFlags(config).era = era; + } else { + getParsingFlags(config).invalidEra = input; + } + }); - var _RcSelect = __webpack_require__(578); + addRegexToken('y', matchUnsigned); + addRegexToken('yy', matchUnsigned); + addRegexToken('yyy', matchUnsigned); + addRegexToken('yyyy', matchUnsigned); + addRegexToken('yo', matchEraYearOrdinal); - var _RcSelect2 = _interopRequireDefault(_RcSelect); + addParseToken(['y', 'yy', 'yyy', 'yyyy'], YEAR); + addParseToken(['yo'], function (input, array, config, token) { + var match; + if (config._locale._eraYearOrdinalRegex) { + match = input.match(config._locale._eraYearOrdinalRegex); + } - var _Option = __webpack_require__(589); + if (config._locale.eraYearOrdinalParse) { + array[YEAR] = config._locale.eraYearOrdinalParse(input, match); + } else { + array[YEAR] = parseInt(input, 10); + } + }); - var _Option2 = _interopRequireDefault(_Option); + function localeEras(m, format) { + var i, + l, + date, + eras = this._eras || getLocale('en')._eras; + for (i = 0, l = eras.length; i < l; ++i) { + switch (typeof eras[i].since) { + case 'string': + // truncate time + date = hooks(eras[i].since).startOf('day'); + eras[i].since = date.valueOf(); + break; + } - var _OptGroup = __webpack_require__(594); + switch (typeof eras[i].until) { + case 'undefined': + eras[i].until = +Infinity; + break; + case 'string': + // truncate time + date = hooks(eras[i].until).startOf('day').valueOf(); + eras[i].until = date.valueOf(); + break; + } + } + return eras; + } - var _OptGroup2 = _interopRequireDefault(_OptGroup); + function localeErasParse(eraName, format, strict) { + var i, + l, + eras = this.eras(), + name, + abbr, + narrow; + eraName = eraName.toUpperCase(); - var _classnames = __webpack_require__(5); + for (i = 0, l = eras.length; i < l; ++i) { + name = eras[i].name.toUpperCase(); + abbr = eras[i].abbr.toUpperCase(); + narrow = eras[i].narrow.toUpperCase(); - var _classnames2 = _interopRequireDefault(_classnames); + if (strict) { + switch (format) { + case 'N': + case 'NN': + case 'NNN': + if (abbr === eraName) { + return eras[i]; + } + break; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + case 'NNNN': + if (name === eraName) { + return eras[i]; + } + break; - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + case 'NNNNN': + if (narrow === eraName) { + return eras[i]; + } + break; + } + } else if ([name, abbr, narrow].indexOf(eraName) >= 0) { + return eras[i]; + } + } + } - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + function localeErasConvertYear(era, year) { + var dir = era.since <= era.until ? +1 : -1; + if (year === undefined) { + return hooks(era.since).year(); + } else { + return hooks(era.since).year() + (year - era.offset) * dir; + } + } - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + function getEraName() { + var i, + l, + val, + eras = this.localeData().eras(); + for (i = 0, l = eras.length; i < l; ++i) { + // truncate time + val = this.startOf('day').valueOf(); - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + if (eras[i].since <= val && val <= eras[i].until) { + return eras[i].name; + } + if (eras[i].until <= val && val <= eras[i].since) { + return eras[i].name; + } + } - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** - * This source code is quoted from rc-select. - * homepage: https://github.com/react-component/select - */ + return ''; + } + function getEraNarrow() { + var i, + l, + val, + eras = this.localeData().eras(); + for (i = 0, l = eras.length; i < l; ++i) { + // truncate time + val = this.startOf('day').valueOf(); - var SelectContext = { - antLocale: { - Select: _propTypes2["default"].any - } - }; + if (eras[i].since <= val && val <= eras[i].until) { + return eras[i].narrow; + } + if (eras[i].until <= val && val <= eras[i].since) { + return eras[i].narrow; + } + } - var defaultProps = { - clsPrefix: "u-select", - showSearch: false, - transitionName: "slide-up", - choiceTransitionName: "zoom", - enterKeyDown: true, - onDeselect: function onDeselect() {}, - onSelect: function onSelect() {} - }; + return ''; + } - var propTypes = { - clsPrefix: _propTypes2["default"].string, - className: _propTypes2["default"].string, - value: _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].any]), - defaultValue: _propTypes2["default"].oneOfType([_propTypes2["default"].node, _propTypes2["default"].array, _propTypes2["default"].any]), - size: _propTypes2["default"].oneOf(["default", "lg", "sm"]), - combobox: _propTypes2["default"].bool, - notFoundContent: _propTypes2["default"].oneOfType([_propTypes2["default"].node, _propTypes2["default"].array, _propTypes2["default"].any]), - showSearch: _propTypes2["default"].bool, - open: _propTypes2["default"].bool, - transitionName: _propTypes2["default"].string, - choiceTransitionName: _propTypes2["default"].string, - multiple: _propTypes2["default"].bool, - allowClear: _propTypes2["default"].bool, - filterOption: _propTypes2["default"].oneOfType([_propTypes2["default"].bool, _propTypes2["default"].func]), - tags: _propTypes2["default"].bool, - onSelect: _propTypes2["default"].func, - onDeselect: _propTypes2["default"].func, - onSearch: _propTypes2["default"].func, - placeholder: _propTypes2["default"].string, - dropdownMatchSelectWidth: _propTypes2["default"].bool, - optionFilterProp: _propTypes2["default"].string, - optionLabelProp: _propTypes2["default"].string, - disabled: _propTypes2["default"].bool, - defaultActiveFirstOption: _propTypes2["default"].bool, - labelInValue: _propTypes2["default"].bool, - getPopupContainer: _propTypes2["default"].func, - style: _propTypes2["default"].object, - dropdownStyle: _propTypes2["default"].object, - dropdownMenuStyle: _propTypes2["default"].object, - onChange: _propTypes2["default"].func, - scrollToEnd: _propTypes2["default"].func, - onKeyDown: _propTypes2["default"].func, - enterKeyDown: _propTypes2["default"].bool //是否启用 enter 和 space 键 - }; + function getEraAbbr() { + var i, + l, + val, + eras = this.localeData().eras(); + for (i = 0, l = eras.length; i < l; ++i) { + // truncate time + val = this.startOf('day').valueOf(); - var Select = function (_Component) { - _inherits(Select, _Component); + if (eras[i].since <= val && val <= eras[i].until) { + return eras[i].abbr; + } + if (eras[i].until <= val && val <= eras[i].since) { + return eras[i].abbr; + } + } - function Select(props) { - _classCallCheck(this, Select); + return ''; + } - var _this = _possibleConstructorReturn(this, _Component.call(this, props)); + function getEraYear() { + var i, + l, + dir, + val, + eras = this.localeData().eras(); + for (i = 0, l = eras.length; i < l; ++i) { + dir = eras[i].since <= eras[i].until ? +1 : -1; - _this.calculationWidth = function () { - var lis = _this.selectDom.querySelectorAll('.u-select-selection-rendered ul li'); - var trueWidth = 0; - [].forEach.call(lis, function (li) { - trueWidth += li.clientWidth; - }); - if (trueWidth >= _this.state.selectDomWidth && lis.length > 0) { - _this.setState({ - maxTagCount: lis.length - 3 // 去掉一个选项、去掉...区域、去掉光标区域 - }); - } - }; + // truncate time + val = this.startOf('day').valueOf(); - _this.onSelect = function (value, option) { - var _this$props = _this.props, - noWarp = _this$props.noWarp, - multiple = _this$props.multiple, - onSelect = _this$props.onSelect, - maxTagCount = _this$props.maxTagCount; + if ( + (eras[i].since <= val && val <= eras[i].until) || + (eras[i].until <= val && val <= eras[i].since) + ) { + return ( + (this.year() - hooks(eras[i].since).year()) * dir + + eras[i].offset + ); + } + } - if (noWarp && multiple && !maxTagCount) { - _this.noWarpTimer && clearTimeout(_this.noWarpTimer); - _this.noWarpTimer = setTimeout(function () { - _this.calculationWidth(); - }); - } - onSelect(value, option); - }; + return this.year(); + } - _this.onDeselect = function (value, option) { - var _this$props2 = _this.props, - noWarp = _this$props2.noWarp, - multiple = _this$props2.multiple, - onDeselect = _this$props2.onDeselect, - maxTagCount = _this$props2.maxTagCount; + function erasNameRegex(isStrict) { + if (!hasOwnProp(this, '_erasNameRegex')) { + computeErasParse.call(this); + } + return isStrict ? this._erasNameRegex : this._erasRegex; + } - if (noWarp && multiple && !maxTagCount) { - _this.noWarpTimer && clearTimeout(_this.noWarpTimer); - _this.noWarpTimer = setTimeout(function () { - _this.calculationWidth(); - }); - } - onDeselect(value, option); - }; + function erasAbbrRegex(isStrict) { + if (!hasOwnProp(this, '_erasAbbrRegex')) { + computeErasParse.call(this); + } + return isStrict ? this._erasAbbrRegex : this._erasRegex; + } - _this.state = { - maxTagCount: props.maxTagCount - }; - return _this; - } + function erasNarrowRegex(isStrict) { + if (!hasOwnProp(this, '_erasNarrowRegex')) { + computeErasParse.call(this); + } + return isStrict ? this._erasNarrowRegex : this._erasRegex; + } - Select.prototype.componentDidMount = function componentDidMount() { - if (this.props.noWarp) { - this.selectDom = _reactDom2["default"].findDOMNode(this.select); - var selectDomWidth = this.selectDom.clientWidth - 40; - this.setState({ - selectDomWidth: selectDomWidth - }); + function matchEraAbbr(isStrict, locale) { + return locale.erasAbbrRegex(isStrict); } - }; - Select.prototype.render = function render() { - var _classNames, - _this2 = this; + function matchEraName(isStrict, locale) { + return locale.erasNameRegex(isStrict); + } - var _props = this.props, - clsPrefix = _props.clsPrefix, - _props$className = _props.className, - className = _props$className === undefined ? "" : _props$className, - size = _props.size, - data = _props.data, - showSearch = _props.showSearch, - combobox = _props.combobox, - noWarp = _props.noWarp, - _props$style = _props.style, - style = _props$style === undefined ? {} : _props$style; - var _props2 = this.props, - _props2$notFoundConte = _props2.notFoundContent, - notFoundContent = _props2$notFoundConte === undefined ? "Not Found" : _props2$notFoundConte, - optionLabelProp = _props2.optionLabelProp; + function matchEraNarrow(isStrict, locale) { + return locale.erasNarrowRegex(isStrict); + } + function matchEraYearOrdinal(isStrict, locale) { + return locale._eraYearOrdinalRegex || matchUnsigned; + } - var cls = (0, _classnames2["default"])((_classNames = {}, _defineProperty(_classNames, clsPrefix + "-lg", size === "lg"), _defineProperty(_classNames, clsPrefix + "-sm", size === "sm"), _defineProperty(_classNames, clsPrefix + "-show-search", showSearch), _defineProperty(_classNames, clsPrefix + "-nowarp", noWarp), _classNames), className); + function computeErasParse() { + var abbrPieces = [], + namePieces = [], + narrowPieces = [], + mixedPieces = [], + i, + l, + eras = this.eras(); - var antLocale = this.context.antLocale; + for (i = 0, l = eras.length; i < l; ++i) { + namePieces.push(regexEscape(eras[i].name)); + abbrPieces.push(regexEscape(eras[i].abbr)); + narrowPieces.push(regexEscape(eras[i].narrow)); - if (antLocale && antLocale.Select) { - notFoundContent = "notFoundContent" in this.props ? notFoundContent : antLocale.Select.notFoundContent; - } + mixedPieces.push(regexEscape(eras[i].name)); + mixedPieces.push(regexEscape(eras[i].abbr)); + mixedPieces.push(regexEscape(eras[i].narrow)); + } - if (combobox) { - notFoundContent = null; - // children 带 dom 结构时,无法填入输入框 - optionLabelProp = optionLabelProp || "value"; - } - if (data) { - data.map(function (item) { - return _react2["default"].createElement( - _Option2["default"], - { value: item.value }, - item.key + this._erasRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i'); + this._erasNameRegex = new RegExp('^(' + namePieces.join('|') + ')', 'i'); + this._erasAbbrRegex = new RegExp('^(' + abbrPieces.join('|') + ')', 'i'); + this._erasNarrowRegex = new RegExp( + '^(' + narrowPieces.join('|') + ')', + 'i' ); - }); - } - var styles = _extends({}, style); - if (noWarp && this.state.selectDomWidth) { - styles['width'] = this.state.selectDomWidth + 40; } - return data ? _react2["default"].createElement( - _RcSelect2["default"], - _extends({}, this.props, { - style: styles, - className: cls, - optionLabelProp: optionLabelProp || "children", - notFoundContent: notFoundContent, - onSelect: this.onSelect, - onDeselect: this.onDeselect, - ref: function ref(_ref) { - return _this2.select = _ref; - }, - maxTagCount: this.state.maxTagCount - }), - data.map(function (item) { - return _react2["default"].createElement( - _Option2["default"], - { key: item.value, value: item.value, disabled: item.disabled ? true : false }, - item.key - ); - }) - ) : _react2["default"].createElement(_RcSelect2["default"], _extends({}, this.props, { - style: styles, - className: cls, - optionLabelProp: optionLabelProp || "children", - notFoundContent: notFoundContent, - onSelect: this.onSelect, - onDeselect: this.onDeselect, - ref: function ref(_ref2) { - return _this2.select = _ref2; - }, - maxTagCount: this.state.maxTagCount - })); - }; - return Select; - }(_react.Component); + // FORMATTING - Select.context = SelectContext; - Select.propTypes = propTypes; - Select.defaultProps = defaultProps; - Select.Option = _Option2["default"]; - Select.OptGroup = _OptGroup2["default"]; + addFormatToken(0, ['gg', 2], 0, function () { + return this.weekYear() % 100; + }); - exports["default"] = Select; - module.exports = exports["default"]; - -/***/ }), -/* 578 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; + addFormatToken(0, ['GG', 2], 0, function () { + return this.isoWeekYear() % 100; + }); - Object.defineProperty(exports, "__esModule", { - value: true - }); + function addWeekYearFormatToken(token, getter) { + addFormatToken(0, [token, token.length], 0, getter); + } - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + addWeekYearFormatToken('gggg', 'weekYear'); + addWeekYearFormatToken('ggggg', 'weekYear'); + addWeekYearFormatToken('GGGG', 'isoWeekYear'); + addWeekYearFormatToken('GGGGG', 'isoWeekYear'); - var _react = __webpack_require__(1); + // ALIASES - var _react2 = _interopRequireDefault(_react); + addUnitAlias('weekYear', 'gg'); + addUnitAlias('isoWeekYear', 'GG'); - var _reactDom = __webpack_require__(2); + // PRIORITY - var _reactDom2 = _interopRequireDefault(_reactDom); + addUnitPriority('weekYear', 1); + addUnitPriority('isoWeekYear', 1); - var _reactLifecyclesCompat = __webpack_require__(81); + // PARSING - var _tinperBeeCore = __webpack_require__(27); + addRegexToken('G', matchSigned); + addRegexToken('g', matchSigned); + addRegexToken('GG', match1to2, match2); + addRegexToken('gg', match1to2, match2); + addRegexToken('GGGG', match1to4, match4); + addRegexToken('gggg', match1to4, match4); + addRegexToken('GGGGG', match1to6, match6); + addRegexToken('ggggg', match1to6, match6); - var _classnames2 = __webpack_require__(5); + addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function ( + input, + week, + config, + token + ) { + week[token.substr(0, 2)] = toInt(input); + }); - var _classnames3 = _interopRequireDefault(_classnames2); + addWeekParseToken(['gg', 'GG'], function (input, week, config, token) { + week[token] = hooks.parseTwoDigitYear(input); + }); - var _beeAnimate = __webpack_require__(57); + // MOMENTS - var _beeAnimate2 = _interopRequireDefault(_beeAnimate); + function getSetWeekYear(input) { + return getSetWeekYearHelper.call( + this, + input, + this.week(), + this.weekday(), + this.localeData()._week.dow, + this.localeData()._week.doy + ); + } - var _componentClasses = __webpack_require__(47); + function getSetISOWeekYear(input) { + return getSetWeekYearHelper.call( + this, + input, + this.isoWeek(), + this.isoWeekday(), + 1, + 4 + ); + } - var _componentClasses2 = _interopRequireDefault(_componentClasses); + function getISOWeeksInYear() { + return weeksInYear(this.year(), 1, 4); + } - var _rcMenu = __webpack_require__(579); + function getISOWeeksInISOWeekYear() { + return weeksInYear(this.isoWeekYear(), 1, 4); + } - var _MenuItem = __webpack_require__(586); + function getWeeksInYear() { + var weekInfo = this.localeData()._week; + return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy); + } - var _MenuItem2 = _interopRequireDefault(_MenuItem); + function getWeeksInWeekYear() { + var weekInfo = this.localeData()._week; + return weeksInYear(this.weekYear(), weekInfo.dow, weekInfo.doy); + } - var _warning = __webpack_require__(32); + function getSetWeekYearHelper(input, week, weekday, dow, doy) { + var weeksTarget; + if (input == null) { + return weekOfYear(this, dow, doy).year; + } else { + weeksTarget = weeksInYear(input, dow, doy); + if (week > weeksTarget) { + week = weeksTarget; + } + return setWeekAll.call(this, input, week, weekday, dow, doy); + } + } - var _warning2 = _interopRequireDefault(_warning); + function setWeekAll(weekYear, week, weekday, dow, doy) { + var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy), + date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear); - var _Option = __webpack_require__(589); + this.year(date.getUTCFullYear()); + this.month(date.getUTCMonth()); + this.date(date.getUTCDate()); + return this; + } - var _Option2 = _interopRequireDefault(_Option); + // FORMATTING - var _omit = __webpack_require__(568); + addFormatToken('Q', 0, 'Qo', 'quarter'); - var _omit2 = _interopRequireDefault(_omit); + // ALIASES - var _util = __webpack_require__(590); + addUnitAlias('quarter', 'Q'); - var _SelectTrigger = __webpack_require__(591); + // PRIORITY - var _SelectTrigger2 = _interopRequireDefault(_SelectTrigger); + addUnitPriority('quarter', 7); - var _PropTypes = __webpack_require__(593); + // PARSING - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + addRegexToken('Q', match1); + addParseToken('Q', function (input, array) { + array[MONTH] = (toInt(input) - 1) * 3; + }); - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + // MOMENTS - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + function getSetQuarter(input) { + return input == null + ? Math.ceil((this.month() + 1) / 3) + : this.month((input - 1) * 3 + (this.month() % 3)); + } - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + // FORMATTING - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + addFormatToken('D', ['DD', 2], 'Do', 'date'); - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** - * This source code is quoted from rc-select. - * homepage: https://github.com/react-component/select - */ + // ALIASES + addUnitAlias('date', 'D'); - function noop() {} + // PRIORITY + addUnitPriority('date', 9); - function chaining() { - for (var _len = arguments.length, fns = Array(_len), _key = 0; _key < _len; _key++) { - fns[_key] = arguments[_key]; - } + // PARSING - return function () { - for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - args[_key2] = arguments[_key2]; - } + addRegexToken('D', match1to2); + addRegexToken('DD', match1to2, match2); + addRegexToken('Do', function (isStrict, locale) { + // TODO: Remove "ordinalParse" fallback in next major release. + return isStrict + ? locale._dayOfMonthOrdinalParse || locale._ordinalParse + : locale._dayOfMonthOrdinalParseLenient; + }); - // eslint-disable-line - // eslint-disable-line - for (var i = 0; i < fns.length; i++) { - if (fns[i] && typeof fns[i] === 'function') { - fns[i].apply(this, args); - } - } - }; - } + addParseToken(['D', 'DD'], DATE); + addParseToken('Do', function (input, array) { + array[DATE] = toInt(input.match(match1to2)[0]); + }); - var Select = function (_React$Component) { - _inherits(Select, _React$Component); + // MOMENTS - function Select(props) { - _classCallCheck(this, Select); + var getSetDayOfMonth = makeGetSet('Date', true); - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); + // FORMATTING - _initialiseProps.call(_this); + addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear'); - var optionsInfo = Select.getOptionsInfoFromProps(props); - _this.state = { - value: Select.getValueFromProps(props, true), // true: use default value - inputValue: props.combobox ? Select.getInputValueForCombobox(props, optionsInfo, true // use default value - ) : '', - open: props.defaultOpen, - optionsInfo: optionsInfo, - // a flag for aviod redundant getOptionsInfoFromProps call - skipBuildOptionsInfo: true - }; + // ALIASES - _this.saveInputRef = (0, _util.saveRef)(_this, 'inputRef'); - _this.saveInputMirrorRef = (0, _util.saveRef)(_this, 'inputMirrorRef'); - _this.saveTopCtrlRef = (0, _util.saveRef)(_this, 'topCtrlRef'); - _this.saveSelectTriggerRef = (0, _util.saveRef)(_this, 'selectTriggerRef'); - _this.saveRootRef = (0, _util.saveRef)(_this, 'rootRef'); - _this.saveSelectionRef = (0, _util.saveRef)(_this, 'selectionRef'); - return _this; - } + addUnitAlias('dayOfYear', 'DDD'); - Select.prototype.componentDidMount = function componentDidMount() { - if (this.props.autoFocus) { - this.focus(); - } - }; + // PRIORITY + addUnitPriority('dayOfYear', 4); - Select.prototype.componentDidUpdate = function componentDidUpdate() { - if ((0, _util.isMultipleOrTags)(this.props)) { - var inputNode = this.getInputDOMNode(); - var mirrorNode = this.getInputMirrorDOMNode(); - if (inputNode.value) { - inputNode.style.width = ''; - inputNode.style.width = mirrorNode.clientWidth + 'px'; - } else { - inputNode.style.width = ''; - } - } - this.forcePopupAlign(); - }; + // PARSING - Select.prototype.componentWillUnmount = function componentWillUnmount() { - this.clearFocusTime(); - this.clearBlurTime(); - if (this.dropdownContainer) { - _reactDom2["default"].unmountComponentAtNode(this.dropdownContainer); - document.body.removeChild(this.dropdownContainer); - this.dropdownContainer = null; - } - }; + addRegexToken('DDD', match1to3); + addRegexToken('DDDD', match3); + addParseToken(['DDD', 'DDDD'], function (input, array, config) { + config._dayOfYear = toInt(input); + }); - // combobox ignore + // HELPERS + // MOMENTS - Select.prototype.focus = function focus() { - if ((0, _util.isSingleMode)(this.props)) { - this.selectionRef.focus(); - } else { - this.getInputDOMNode().focus(); + function getSetDayOfYear(input) { + var dayOfYear = + Math.round( + (this.clone().startOf('day') - this.clone().startOf('year')) / 864e5 + ) + 1; + return input == null ? dayOfYear : this.add(input - dayOfYear, 'd'); } - }; - Select.prototype.blur = function blur() { - if ((0, _util.isSingleMode)(this.props)) { - this.selectionRef.blur(); - } else { - this.getInputDOMNode().blur(); - } - }; + // FORMATTING - /** - * noCheck 判断输入的值是否不需要匹配option - */ + addFormatToken('m', ['mm', 2], 0, 'minute'); + // ALIASES - Select.prototype.renderClear = function renderClear() { - var _props = this.props, - prefixCls = _props.prefixCls, - allowClear = _props.allowClear, - clearIcon = _props.clearIcon; - var _state = this.state, - value = _state.value, - inputValue = _state.inputValue; + addUnitAlias('minute', 'm'); - var clear = _react2["default"].createElement( - 'span', - _extends({ - key: 'clear', - className: prefixCls + '-selection-clear', - onMouseDown: _util.preventDefaultEvent, - style: _util.UNSELECTABLE_STYLE - }, _util.UNSELECTABLE_ATTRIBUTE, { - onClick: this.onClearSelection - }), - clearIcon || _react2["default"].createElement('i', { className: prefixCls + '-selection-clear-icon' }) - ); - if (!allowClear) { - return null; - } - if ((0, _util.isCombobox)(this.props)) { - if (inputValue) { - return clear; - } - return null; - } - if (inputValue || value.length) { - return clear; - } - return null; - }; + // PRIORITY - Select.prototype.render = function render() { - var _rootCls; + addUnitPriority('minute', 14); - var props = this.props; - var multiple = (0, _util.isMultipleOrTags)(props); - var state = this.state; - var className = props.className, - disabled = props.disabled, - prefixCls = props.prefixCls, - inputIcon = props.inputIcon; + // PARSING - var ctrlNode = this.renderTopControlNode(); - var open = this.state.open; + addRegexToken('m', match1to2); + addRegexToken('mm', match1to2, match2); + addParseToken(['m', 'mm'], MINUTE); - if (open) { - this._options = this.renderFilterOptions(); - } - var realOpen = this.getRealOpenState(); - var options = this._options || []; - var dataOrAriaAttributeProps = {}; - var customProps = _extends({}, (0, _omit2["default"])(props, ['transitionName', 'choiceTransitionName', 'optionLabelProp', 'notFoundContent', 'clsPrefix', 'prefixCls', 'placeholder', 'dropdownStyle', 'dropdownMenuStyle', 'optionFilterProp', 'showAction', 'tokenSeparators', 'showSearch', 'allowClear', 'enterKeyDown', 'defaultOpen', 'labelInValue', 'defaultActiveFirstOption', 'onSearch', 'onDeselect', 'onInputKeyDown', 'showArrow', 'dropdownMatchSelectWidth', 'autoClearSearchValue', 'searchPlaceholder', 'scrollToEnd', 'filterOption', 'backfill', 'tags', 'combobox', 'supportWrite', 'onChange', 'onFocus', 'onBlur', 'onSelect', 'onSearch', 'onDeselect', 'onInputKeyDown', 'onKeyDown'])); - for (var key in props) { - if (Object.prototype.hasOwnProperty.call(props, key) && (key.substr(0, 5) === 'data-' || key.substr(0, 5) === 'aria-' || key === 'role')) { - dataOrAriaAttributeProps[key] = props[key]; - } - } - var extraSelectionProps = _extends({}, dataOrAriaAttributeProps); - if (!(0, _util.isMultipleOrTagsOrCombobox)(props)) { - extraSelectionProps = _extends({}, extraSelectionProps, { - onKeyDown: this.onKeyDown, - tabIndex: props.disabled ? -1 : 0 - }); - } - var rootCls = (_rootCls = {}, _defineProperty(_rootCls, className, !!className), _defineProperty(_rootCls, prefixCls, 1), _defineProperty(_rootCls, prefixCls + '-open', open), _defineProperty(_rootCls, prefixCls + '-focused', open || !!this._focused), _defineProperty(_rootCls, prefixCls + '-combobox', (0, _util.isCombobox)(props)), _defineProperty(_rootCls, prefixCls + '-disabled', disabled), _defineProperty(_rootCls, prefixCls + '-enabled', !disabled), _defineProperty(_rootCls, prefixCls + '-allow-clear', !!props.allowClear), _defineProperty(_rootCls, prefixCls + '-no-arrow', !props.showArrow), _rootCls); - return _react2["default"].createElement( - _SelectTrigger2["default"], - { - open: props.open, - onPopupFocus: this.onPopupFocus, - onMouseEnter: this.props.onMouseEnter, - onMouseLeave: this.props.onMouseLeave, - dropdownAlign: props.dropdownAlign, - dropdownClassName: props.dropdownClassName, - dropdownMatchSelectWidth: props.dropdownMatchSelectWidth, - defaultActiveFirstOption: props.defaultActiveFirstOption, - dropdownMenuStyle: props.dropdownMenuStyle, - transitionName: props.transitionName, - animation: props.animation, - prefixCls: props.prefixCls, - dropdownStyle: props.dropdownStyle, - combobox: props.combobox, - showSearch: props.showSearch, - options: options, - multiple: multiple, - disabled: disabled, - visible: realOpen, - inputValue: state.inputValue, - value: state.value, - backfillValue: state.backfillValue, - firstActiveValue: props.firstActiveValue, - onDropdownVisibleChange: this.onDropdownVisibleChange, - getPopupContainer: props.getPopupContainer, - onMenuSelect: this.onMenuSelect, - onMenuDeselect: this.onMenuDeselect, - onPopupScroll: props.onPopupScroll, - showAction: props.showAction, - ref: this.saveSelectTriggerRef, - clsPrefix: props.clsPrefix + '-dropdown', - menuItemSelectedIcon: props.menuItemSelectedIcon, - popData: props.popData - }, - _react2["default"].createElement( - 'div', - _extends({}, customProps, { - id: props.id, - style: props.style, - ref: this.saveRootRef, - onBlur: this.onOuterBlur, - onFocus: this.onOuterFocus, - onClick: this.onOuterClick //sp - , className: (0, _classnames3["default"])(rootCls), - onMouseDown: this.markMouseDown, - onMouseUp: this.markMouseLeave, - onMouseOut: this.markMouseLeave - }), - _react2["default"].createElement( - 'div', - _extends({ - ref: this.saveSelectionRef, - key: 'selection', - className: prefixCls + '-selection\n ' + prefixCls + '-selection--' + (multiple ? 'multiple' : 'single'), - role: 'combobox', - 'aria-autocomplete': 'list', - 'aria-haspopup': 'true', - 'aria-expanded': realOpen - }, extraSelectionProps), - ctrlNode, - this.renderClear(), - !props.showArrow ? null : //sp - _react2["default"].createElement( - 'span', - _extends({ - key: 'arrow', - className: prefixCls + '-arrow', - style: _util.UNSELECTABLE_STYLE - }, _util.UNSELECTABLE_ATTRIBUTE, { - onClick: this.onArrowClick - }), - inputIcon || _react2["default"].createElement('i', { className: prefixCls + '-arrow-icon' }) - ) - ) - ) - ); - }; + // MOMENTS + + var getSetMinute = makeGetSet('Minutes', false); - return Select; - }(_react2["default"].Component); + // FORMATTING - Select.propTypes = _PropTypes.SelectPropTypes; - Select.defaultProps = { - prefixCls: 'u-select', - defaultOpen: false, - labelInValue: false, - defaultActiveFirstOption: true, - showSearch: true, - allowClear: false, - placeholder: '', - onChange: noop, - onFocus: noop, - onBlur: noop, - onSelect: noop, - onSearch: noop, - onDeselect: noop, - onInputKeyDown: noop, - showArrow: true, - dropdownMatchSelectWidth: true, - dropdownStyle: {}, - dropdownMenuStyle: {}, - optionFilterProp: 'value', - optionLabelProp: 'value', - notFoundContent: 'Not Found', - backfill: false, - showAction: ['click'], - tokenSeparators: [], - autoClearSearchValue: true, - onKeyDown: noop - }; + addFormatToken('s', ['ss', 2], 0, 'second'); - Select.getDerivedStateFromProps = function (nextProps, prevState) { - var optionsInfo = prevState.skipBuildOptionsInfo ? prevState.optionsInfo : Select.getOptionsInfoFromProps(nextProps, prevState); + // ALIASES - var newState = { - optionsInfo: optionsInfo, - skipBuildOptionsInfo: false - }; + addUnitAlias('second', 's'); - if ('open' in nextProps) { - newState.open = nextProps.open; - } + // PRIORITY - if ('value' in nextProps) { - var value = Select.getValueFromProps(nextProps); - newState.value = value; - if (nextProps.combobox) { - newState.inputValue = Select.getInputValueForCombobox(nextProps, optionsInfo); - } - } - return newState; - }; + addUnitPriority('second', 15); - Select.getOptionsFromChildren = function (children) { - var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; + // PARSING - _react2["default"].Children.forEach(children, function (child) { - if (!child) { - return; - } - if (child && child.type && child.type.isSelectOptGroup) { - Select.getOptionsFromChildren(child.props.children, options); - } else { - options.push(child); - } - }); - return options; - }; + addRegexToken('s', match1to2); + addRegexToken('ss', match1to2, match2); + addParseToken(['s', 'ss'], SECOND); - Select.getInputValueForCombobox = function (props, optionsInfo, useDefaultValue) { - var value = []; - if ('value' in props && !useDefaultValue) { - value = (0, _util.toArray)(props.value); - } - if ('defaultValue' in props && useDefaultValue) { - value = (0, _util.toArray)(props.defaultValue); - } - if (value.length) { - value = value[0]; - } else { - return ''; - } - var label = value; - if (props.labelInValue) { - label = value.label; - } else if (optionsInfo[(0, _util.getMapKey)(value)]) { - label = optionsInfo[(0, _util.getMapKey)(value)].label; - } - if (label === undefined) { - label = ''; - } - return label; - }; + // MOMENTS - Select.getLabelFromOption = function (props, option) { - return (0, _util.getPropValue)(option, props.optionLabelProp); - }; + var getSetSecond = makeGetSet('Seconds', false); - Select.getOptionsInfoFromProps = function (props, preState) { - var options = Select.getOptionsFromChildren(props.children); - var optionsInfo = {}; - options.forEach(function (option) { - var singleValue = (0, _util.getValuePropValue)(option); - optionsInfo[(0, _util.getMapKey)(singleValue)] = { - option: option, - value: singleValue, - label: Select.getLabelFromOption(props, option), - title: option.props.title - }; - }); - if (preState) { - // keep option info in pre state value. - var oldOptionsInfo = preState.optionsInfo; - var value = preState.value; - value.forEach(function (v) { - var key = (0, _util.getMapKey)(v); - if (!optionsInfo[key] && oldOptionsInfo[key] !== undefined) { - optionsInfo[key] = oldOptionsInfo[key]; - } + // FORMATTING + + addFormatToken('S', 0, 0, function () { + return ~~(this.millisecond() / 100); }); - } - return optionsInfo; - }; - Select.getValueFromProps = function (props, useDefaultValue) { - var value = []; - if ('value' in props && !useDefaultValue) { - value = (0, _util.toArray)(props.value); - } - if ('defaultValue' in props && useDefaultValue) { - value = (0, _util.toArray)(props.defaultValue); - } - if (props.labelInValue) { - value = value.map(function (v) { - return v.key; + addFormatToken(0, ['SS', 2], 0, function () { + return ~~(this.millisecond() / 10); }); - } - return value; - }; - var _initialiseProps = function _initialiseProps() { - var _this2 = this; + addFormatToken(0, ['SSS', 3], 0, 'millisecond'); + addFormatToken(0, ['SSSS', 4], 0, function () { + return this.millisecond() * 10; + }); + addFormatToken(0, ['SSSSS', 5], 0, function () { + return this.millisecond() * 100; + }); + addFormatToken(0, ['SSSSSS', 6], 0, function () { + return this.millisecond() * 1000; + }); + addFormatToken(0, ['SSSSSSS', 7], 0, function () { + return this.millisecond() * 10000; + }); + addFormatToken(0, ['SSSSSSSS', 8], 0, function () { + return this.millisecond() * 100000; + }); + addFormatToken(0, ['SSSSSSSSS', 9], 0, function () { + return this.millisecond() * 1000000; + }); - this.onInputChange = function (event) { - var tokenSeparators = _this2.props.tokenSeparators; + // ALIASES - var val = event.target.value; - if ((0, _util.isMultipleOrTags)(_this2.props) && tokenSeparators.length && (0, _util.includesSeparators)(val, tokenSeparators)) { - var nextValue = _this2.getValueByInput(val); - if (nextValue !== undefined) { - _this2.fireChange(nextValue); - } - _this2.setOpenState(false, true); - _this2.setInputValue('', false); - return; - } - _this2.setInputValue(val); - _this2.setState({ - open: true - }); - if ((0, _util.isCombobox)(_this2.props)) { - _this2.fireChange([val]); - } - }; + addUnitAlias('millisecond', 'ms'); - this.onDropdownVisibleChange = function (open) { - if (open && !_this2._focused) { - _this2.clearBlurTime(); - _this2.timeoutFocus(); - _this2._focused = true; - _this2.updateFocusClassName(); - } - _this2.setOpenState(open); - }; + // PRIORITY - this.onKeyDown = function (event) { - var open = _this2.state.open; - var _props2 = _this2.props, - disabled = _props2.disabled, - onKeyDown = _props2.onKeyDown, - enterKeyDown = _props2.enterKeyDown; + addUnitPriority('millisecond', 16); - if (disabled) { - return; - } - var keyCode = event.keyCode; - if (open && !_this2.getInputDOMNode()) { - _this2.onInputKeyDown(event); - } else if (keyCode === _tinperBeeCore.KeyCode.DOWN) { - if (!open) _this2.setOpenState(true); - event.preventDefault(); - } else if (keyCode === _tinperBeeCore.KeyCode.ENTER || keyCode === _tinperBeeCore.KeyCode.SPACE) { - if (!open && enterKeyDown) _this2.setOpenState(true); - event.preventDefault(); - } - onKeyDown(event); //sp - }; + // PARSING - this.onInputKeyDown = function (event) { - var props = _this2.props; - if (props.disabled) { - return; - } - var state = _this2.state; - var keyCode = event.keyCode; - if ((0, _util.isMultipleOrTags)(props) && !event.target.value && keyCode === _tinperBeeCore.KeyCode.BACKSPACE) { - event.preventDefault(); - var value = state.value; + addRegexToken('S', match1to3, match1); + addRegexToken('SS', match1to3, match2); + addRegexToken('SSS', match1to3, match3); - if (value.length) { - _this2.removeSelected(value[value.length - 1]); - } - return; + var token, getSetMillisecond; + for (token = 'SSSS'; token.length <= 9; token += 'S') { + addRegexToken(token, matchUnsigned); } - if (keyCode === _tinperBeeCore.KeyCode.DOWN) { - if (!state.open) { - _this2.openIfHasChildren(); - event.preventDefault(); - event.stopPropagation(); - return; - } - } else if (keyCode === _tinperBeeCore.KeyCode.ENTER && state.open) { - // Aviod trigger form submit when select item - // https://github.com/ant-design/ant-design/issues/10861 - event.preventDefault(); - } else if (keyCode === _tinperBeeCore.KeyCode.ESC) { - if (state.open) { - _this2.setOpenState(false); - event.preventDefault(); - event.stopPropagation(); - } - if (props.showSearch) props.onKeyDown(event); //sp - return; + + function parseMs(input, array) { + array[MILLISECOND] = toInt(('0.' + input) * 1000); } - if (_this2.getRealOpenState(state)) { - var menu = _this2.selectTriggerRef.getInnerMenu(); - if (menu && menu.onKeyDown(event, _this2.handleBackfill)) { - event.preventDefault(); - event.stopPropagation(); - } + for (token = 'S'; token.length <= 9; token += 'S') { + addParseToken(token, parseMs); } - }; - this.onMenuSelect = function (_ref) { - var item = _ref.item; + getSetMillisecond = makeGetSet('Milliseconds', false); - if (!item) { - return; - } + // FORMATTING - var value = _this2.state.value; - var props = _this2.props; - var selectedValue = (0, _util.getValuePropValue)(item); - var lastValue = value[value.length - 1]; - _this2.fireSelect(selectedValue); - if ((0, _util.isMultipleOrTags)(props)) { - if ((0, _util.findIndexInValueBySingleValue)(value, selectedValue) !== -1) { - return; - } - value = value.concat([selectedValue]); - } else { - if (lastValue !== undefined && lastValue === selectedValue && selectedValue !== _this2.state.backfillValue) { - _this2.setOpenState(false, true); - return; - } - value = [selectedValue]; - _this2.setOpenState(false, true); - } - _this2.fireChange(value); - var inputValue = void 0; - if ((0, _util.isCombobox)(props)) { - inputValue = (0, _util.getPropValue)(item, props.optionLabelProp); - } else { - inputValue = ''; - } - if (props.autoClearSearchValue) { - _this2.setInputValue(inputValue, false); - } - }; + addFormatToken('z', 0, 0, 'zoneAbbr'); + addFormatToken('zz', 0, 0, 'zoneName'); - this.onMenuDeselect = function (_ref2) { - var item = _ref2.item, - domEvent = _ref2.domEvent; + // MOMENTS - if (domEvent.type === 'keydown' && domEvent.keyCode === _tinperBeeCore.KeyCode.ENTER) { - _this2.removeSelected((0, _util.getValuePropValue)(item)); - return; - } - if (domEvent.type === 'click') { - _this2.removeSelected((0, _util.getValuePropValue)(item)); + function getZoneAbbr() { + return this._isUTC ? 'UTC' : ''; } - var props = _this2.props; - if (props.autoClearSearchValue) { - _this2.setInputValue('', false); + function getZoneName() { + return this._isUTC ? 'Coordinated Universal Time' : ''; } - }; - this.onArrowClick = function (e) { - e.stopPropagation(); - e.preventDefault(); - _this2.props.onFocus(_this2.state.value); - if (!_this2.props.disabled) { - _this2.setOpenState(!_this2.state.open, !_this2.state.open); - } - }; + var proto = Moment.prototype; - this.onPlaceholderClick = function () { - if (_this2.getInputDOMNode()) { - _this2.getInputDOMNode().focus(); + proto.add = add; + proto.calendar = calendar$1; + proto.clone = clone; + proto.diff = diff; + proto.endOf = endOf; + proto.format = format; + proto.from = from; + proto.fromNow = fromNow; + proto.to = to; + proto.toNow = toNow; + proto.get = stringGet; + proto.invalidAt = invalidAt; + proto.isAfter = isAfter; + proto.isBefore = isBefore; + proto.isBetween = isBetween; + proto.isSame = isSame; + proto.isSameOrAfter = isSameOrAfter; + proto.isSameOrBefore = isSameOrBefore; + proto.isValid = isValid$2; + proto.lang = lang; + proto.locale = locale; + proto.localeData = localeData; + proto.max = prototypeMax; + proto.min = prototypeMin; + proto.parsingFlags = parsingFlags; + proto.set = stringSet; + proto.startOf = startOf; + proto.subtract = subtract; + proto.toArray = toArray; + proto.toObject = toObject; + proto.toDate = toDate; + proto.toISOString = toISOString; + proto.inspect = inspect; + if (typeof Symbol !== 'undefined' && Symbol.for != null) { + proto[Symbol.for('nodejs.util.inspect.custom')] = function () { + return 'Moment<' + this.format() + '>'; + }; } - }; + proto.toJSON = toJSON; + proto.toString = toString; + proto.unix = unix; + proto.valueOf = valueOf; + proto.creationData = creationData; + proto.eraName = getEraName; + proto.eraNarrow = getEraNarrow; + proto.eraAbbr = getEraAbbr; + proto.eraYear = getEraYear; + proto.year = getSetYear; + proto.isLeapYear = getIsLeapYear; + proto.weekYear = getSetWeekYear; + proto.isoWeekYear = getSetISOWeekYear; + proto.quarter = proto.quarters = getSetQuarter; + proto.month = getSetMonth; + proto.daysInMonth = getDaysInMonth; + proto.week = proto.weeks = getSetWeek; + proto.isoWeek = proto.isoWeeks = getSetISOWeek; + proto.weeksInYear = getWeeksInYear; + proto.weeksInWeekYear = getWeeksInWeekYear; + proto.isoWeeksInYear = getISOWeeksInYear; + proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear; + proto.date = getSetDayOfMonth; + proto.day = proto.days = getSetDayOfWeek; + proto.weekday = getSetLocaleDayOfWeek; + proto.isoWeekday = getSetISODayOfWeek; + proto.dayOfYear = getSetDayOfYear; + proto.hour = proto.hours = getSetHour; + proto.minute = proto.minutes = getSetMinute; + proto.second = proto.seconds = getSetSecond; + proto.millisecond = proto.milliseconds = getSetMillisecond; + proto.utcOffset = getSetOffset; + proto.utc = setOffsetToUTC; + proto.local = setOffsetToLocal; + proto.parseZone = setOffsetToParsedOffset; + proto.hasAlignedHourOffset = hasAlignedHourOffset; + proto.isDST = isDaylightSavingTime; + proto.isLocal = isLocal; + proto.isUtcOffset = isUtcOffset; + proto.isUtc = isUtc; + proto.isUTC = isUtc; + proto.zoneAbbr = getZoneAbbr; + proto.zoneName = getZoneName; + proto.dates = deprecate( + 'dates accessor is deprecated. Use date instead.', + getSetDayOfMonth + ); + proto.months = deprecate( + 'months accessor is deprecated. Use month instead', + getSetMonth + ); + proto.years = deprecate( + 'years accessor is deprecated. Use year instead', + getSetYear + ); + proto.zone = deprecate( + 'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', + getSetZone + ); + proto.isDSTShifted = deprecate( + 'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information', + isDaylightSavingTimeShifted + ); - this.onOuterFocus = function (e) { - if (_this2.props.disabled) { - e.preventDefault(); - return; - } - _this2.clearBlurTime(); - if (!(0, _util.isMultipleOrTagsOrCombobox)(_this2.props) && e.target === _this2.getInputDOMNode()) { - return; + function createUnix(input) { + return createLocal(input * 1000); } - if (_this2._focused) { - return; + + function createInZone() { + return createLocal.apply(null, arguments).parseZone(); } - _this2._focused = true; - _this2.updateFocusClassName(); - if (!_this2._mouseDown) { - _this2.timeoutFocus(); + + function preParsePostFormat(string) { + return string; } - }; - this.onPopupFocus = function () { - // fix ie scrollbar, focus element again - _this2.maybeFocus(true, true); - }; + var proto$1 = Locale.prototype; - this.onOuterBlur = function (e) { - if (_this2.props.disabled) { - e.preventDefault(); - return; + proto$1.calendar = calendar; + proto$1.longDateFormat = longDateFormat; + proto$1.invalidDate = invalidDate; + proto$1.ordinal = ordinal; + proto$1.preparse = preParsePostFormat; + proto$1.postformat = preParsePostFormat; + proto$1.relativeTime = relativeTime; + proto$1.pastFuture = pastFuture; + proto$1.set = set; + proto$1.eras = localeEras; + proto$1.erasParse = localeErasParse; + proto$1.erasConvertYear = localeErasConvertYear; + proto$1.erasAbbrRegex = erasAbbrRegex; + proto$1.erasNameRegex = erasNameRegex; + proto$1.erasNarrowRegex = erasNarrowRegex; + + proto$1.months = localeMonths; + proto$1.monthsShort = localeMonthsShort; + proto$1.monthsParse = localeMonthsParse; + proto$1.monthsRegex = monthsRegex; + proto$1.monthsShortRegex = monthsShortRegex; + proto$1.week = localeWeek; + proto$1.firstDayOfYear = localeFirstDayOfYear; + proto$1.firstDayOfWeek = localeFirstDayOfWeek; + + proto$1.weekdays = localeWeekdays; + proto$1.weekdaysMin = localeWeekdaysMin; + proto$1.weekdaysShort = localeWeekdaysShort; + proto$1.weekdaysParse = localeWeekdaysParse; + + proto$1.weekdaysRegex = weekdaysRegex; + proto$1.weekdaysShortRegex = weekdaysShortRegex; + proto$1.weekdaysMinRegex = weekdaysMinRegex; + + proto$1.isPM = localeIsPM; + proto$1.meridiem = localeMeridiem; + + function get$1(format, index, field, setter) { + var locale = getLocale(), + utc = createUTC().set(setter, index); + return locale[field](utc, format); } - _this2.blurTimer = setTimeout(function () { - _this2._focused = false; - _this2.updateFocusClassName(); - var props = _this2.props; - var value = _this2.state.value; - var inputValue = _this2.state.inputValue; - if ((0, _util.isSingleMode)(props) && props.showSearch && inputValue && props.defaultActiveFirstOption) { - var options = _this2._options || []; - if (options.length) { - var firstOption = (0, _util.findFirstMenuItem)(options); - if (firstOption) { - value = [(0, _util.getValuePropValue)(firstOption)]; - _this2.fireChange(value); - } - if (props.showSearch && props.supportWrite) { - //查询时是否支持自定义输入 - value = [inputValue]; - _this2.fireChange(value, true); - } + function listMonthsImpl(format, index, field) { + if (isNumber(format)) { + index = format; + format = undefined; } - } else if ((0, _util.isMultipleOrTags)(props) && inputValue) { - if (_this2._mouseDown) { - // need update dropmenu when not blur - _this2.setInputValue(''); - } else { - // why not use setState? - _this2.state.inputValue = _this2.getInputDOMNode().value = ''; + + format = format || ''; + + if (index != null) { + return get$1(format, index, field, 'month'); } - value = _this2.getValueByInput(inputValue); - if (value !== undefined) { - _this2.fireChange(value); + var i, + out = []; + for (i = 0; i < 12; i++) { + out[i] = get$1(format, i, field, 'month'); } - } + return out; + } - // if click the rest space of Select in multiple mode - if ((0, _util.isMultipleOrTags)(props) && _this2._mouseDown) { - _this2.maybeFocus(true, true); - _this2._mouseDown = false; - return; - } - _this2.setOpenState(false); - props.onBlur(_this2.getVLForOnChange(value)); - }, 10); - }; + // () + // (5) + // (fmt, 5) + // (fmt) + // (true) + // (true, 5) + // (true, fmt, 5) + // (true, fmt) + function listWeekdaysImpl(localeSorted, format, index, field) { + if (typeof localeSorted === 'boolean') { + if (isNumber(format)) { + index = format; + format = undefined; + } - this.onClearSelection = function (event) { - var props = _this2.props; - var state = _this2.state; - if (props.disabled) { - return; - } - var inputValue = state.inputValue, - value = state.value; + format = format || ''; + } else { + format = localeSorted; + index = format; + localeSorted = false; - event.stopPropagation(); - if (inputValue || value.length) { - if (value.length) { - _this2.fireChange([]); - } - _this2.setOpenState(false, true); - if (inputValue) { - _this2.setInputValue(''); - } - } - }; + if (isNumber(format)) { + index = format; + format = undefined; + } - this.onChoiceAnimationLeave = function () { - _this2.forcePopupAlign(); - }; + format = format || ''; + } - this.getOptionInfoBySingleValue = function (value, optionsInfo) { - var info = void 0; - optionsInfo = optionsInfo || _this2.state.optionsInfo; - if (optionsInfo[(0, _util.getMapKey)(value)]) { - info = optionsInfo[(0, _util.getMapKey)(value)]; - } - if (info) { - return info; + var locale = getLocale(), + shift = localeSorted ? locale._week.dow : 0, + i, + out = []; + + if (index != null) { + return get$1(format, (index + shift) % 7, field, 'day'); + } + + for (i = 0; i < 7; i++) { + out[i] = get$1(format, (i + shift) % 7, field, 'day'); + } + return out; } - var defaultLabel = value; - if (_this2.props.labelInValue) { - var label = (0, _util.getLabelFromPropsValue)(_this2.props.value, value); - if (label !== undefined) { - defaultLabel = label; - } + + function listMonths(format, index) { + return listMonthsImpl(format, index, 'months'); } - var defaultInfo = { - option: _react2["default"].createElement( - _Option2["default"], - { value: value, key: value }, - value - ), - value: value, - label: defaultLabel - }; - return defaultInfo; - }; - this.getOptionBySingleValue = function (value) { - var _getOptionInfoBySingl = _this2.getOptionInfoBySingleValue(value), - option = _getOptionInfoBySingl.option; + function listMonthsShort(format, index) { + return listMonthsImpl(format, index, 'monthsShort'); + } - return option; - }; + function listWeekdays(localeSorted, format, index) { + return listWeekdaysImpl(localeSorted, format, index, 'weekdays'); + } - this.getOptionsBySingleValue = function (values) { - return values.map(function (value) { - return _this2.getOptionBySingleValue(value); - }); - }; + function listWeekdaysShort(localeSorted, format, index) { + return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort'); + } - this.getValueByLabel = function (label) { - if (label === undefined) { - return null; + function listWeekdaysMin(localeSorted, format, index) { + return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin'); } - var value = null; - Object.keys(_this2.state.optionsInfo).forEach(function (key) { - var info = _this2.state.optionsInfo[key]; - if ((0, _util.toArray)(info.label).join('') === label) { - value = info.value; - } + + getSetGlobalLocale('en', { + eras: [ + { + since: '0001-01-01', + until: +Infinity, + offset: 1, + name: 'Anno Domini', + narrow: 'AD', + abbr: 'AD', + }, + { + since: '0000-12-31', + until: -Infinity, + offset: 1, + name: 'Before Christ', + narrow: 'BC', + abbr: 'BC', + }, + ], + dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, + ordinal: function (number) { + var b = number % 10, + output = + toInt((number % 100) / 10) === 1 + ? 'th' + : b === 1 + ? 'st' + : b === 2 + ? 'nd' + : b === 3 + ? 'rd' + : 'th'; + return number + output; + }, }); - return value; - }; - this.getVLBySingleValue = function (value) { - if (_this2.props.labelInValue) { - return { - key: value, - label: _this2.getLabelBySingleValue(value) - }; - } - return value; - }; + // Side effect imports - this.getVLForOnChange = function (vls_) { - var vls = vls_; - if (vls !== undefined) { - if (!_this2.props.labelInValue) { - vls = vls.map(function (v) { - return v; - }); - } else { - vls = vls.map(function (vl) { - return { - key: vl, - label: _this2.getLabelBySingleValue(vl) - }; - }); - } - return (0, _util.isMultipleOrTags)(_this2.props) ? vls : vls[0]; - } - return vls; - }; + hooks.lang = deprecate( + 'moment.lang is deprecated. Use moment.locale instead.', + getSetGlobalLocale + ); + hooks.langData = deprecate( + 'moment.langData is deprecated. Use moment.localeData instead.', + getLocale + ); - this.getLabelBySingleValue = function (value, optionsInfo) { - var _getOptionInfoBySingl2 = _this2.getOptionInfoBySingleValue(value, optionsInfo), - label = _getOptionInfoBySingl2.label; + var mathAbs = Math.abs; - return label; - }; + function abs() { + var data = this._data; - this.getDropdownContainer = function () { - if (!_this2.dropdownContainer) { - _this2.dropdownContainer = document.createElement('div'); - document.body.appendChild(_this2.dropdownContainer); + this._milliseconds = mathAbs(this._milliseconds); + this._days = mathAbs(this._days); + this._months = mathAbs(this._months); + + data.milliseconds = mathAbs(data.milliseconds); + data.seconds = mathAbs(data.seconds); + data.minutes = mathAbs(data.minutes); + data.hours = mathAbs(data.hours); + data.months = mathAbs(data.months); + data.years = mathAbs(data.years); + + return this; } - return _this2.dropdownContainer; - }; - this.getPlaceholderElement = function () { - var props = _this2.props, - state = _this2.state; + function addSubtract$1(duration, input, value, direction) { + var other = createDuration(input, value); - var hidden = false; - if (state.inputValue) { - hidden = true; + duration._milliseconds += direction * other._milliseconds; + duration._days += direction * other._days; + duration._months += direction * other._months; + + return duration._bubble(); } - if (state.value.length) { - hidden = true; + + // supports only 2.0-style add(1, 's') or add(duration) + function add$1(input, value) { + return addSubtract$1(this, input, value, 1); } - if ((0, _util.isCombobox)(props) && state.value.length === 1 && !state.value[0]) { - hidden = false; + + // supports only 2.0-style subtract(1, 's') or subtract(duration) + function subtract$1(input, value) { + return addSubtract$1(this, input, value, -1); } - var placeholder = props.placeholder; - if (placeholder) { - return _react2["default"].createElement( - 'div', - _extends({ - onMouseDown: _util.preventDefaultEvent, - style: _extends({ - display: hidden ? 'none' : 'block' - }, _util.UNSELECTABLE_STYLE) - }, _util.UNSELECTABLE_ATTRIBUTE, { - onClick: _this2.onPlaceholderClick, - className: props.prefixCls + '-selection-placeholder' - }), - placeholder - ); + + function absCeil(number) { + if (number < 0) { + return Math.floor(number); + } else { + return Math.ceil(number); + } } - return null; - }; - this.getInputElement = function () { - var props = _this2.props; - var inputElement = props.getInputElement ? props.getInputElement() : _react2["default"].createElement('input', { id: props.id, autoComplete: 'off' }); - var inputCls = (0, _classnames3["default"])(inputElement.props.className, _defineProperty({}, props.prefixCls + '-search-field', true)); - // https://github.com/ant-design/ant-design/issues/4992#issuecomment-281542159 - // Add space to the end of the inputValue as the width measurement tolerance - return _react2["default"].createElement( - 'div', - { className: props.prefixCls + '-search-field-wrap' }, - _react2["default"].cloneElement(inputElement, { - ref: _this2.saveInputRef, - onChange: _this2.onInputChange, - onKeyDown: chaining(_this2.onInputKeyDown, inputElement.props.onKeyDown, _this2.props.onInputKeyDown), - value: _this2.state.inputValue, - disabled: props.disabled, - className: inputCls - }), - _react2["default"].createElement( - 'span', - { - ref: _this2.saveInputMirrorRef, - className: props.prefixCls + '-search-field-mirror' - }, - _this2.state.inputValue, - '\xA0' - ) - ); - }; + function bubble() { + var milliseconds = this._milliseconds, + days = this._days, + months = this._months, + data = this._data, + seconds, + minutes, + hours, + years, + monthsFromDays; - this.getInputDOMNode = function () { - return _this2.topCtrlRef ? _this2.topCtrlRef.querySelector('input,textarea,div[contentEditable]') : _this2.inputRef; - }; + // if we have a mix of positive and negative values, bubble down first + // check: https://github.com/moment/moment/issues/2166 + if ( + !( + (milliseconds >= 0 && days >= 0 && months >= 0) || + (milliseconds <= 0 && days <= 0 && months <= 0) + ) + ) { + milliseconds += absCeil(monthsToDays(months) + days) * 864e5; + days = 0; + months = 0; + } - this.getInputMirrorDOMNode = function () { - return _this2.inputMirrorRef; - }; + // The following code bubbles up values, see the tests for + // examples of what that means. + data.milliseconds = milliseconds % 1000; - this.getPopupDOMNode = function () { - return _this2.selectTriggerRef.getPopupDOMNode(); - }; + seconds = absFloor(milliseconds / 1000); + data.seconds = seconds % 60; - this.getPopupMenuComponent = function () { - return _this2.selectTriggerRef.getInnerMenu(); - }; + minutes = absFloor(seconds / 60); + data.minutes = minutes % 60; - this.setOpenState = function (open, needFocus) { - var props = _this2.props, - state = _this2.state; + hours = absFloor(minutes / 60); + data.hours = hours % 24; - if (state.open === open) { - _this2.maybeFocus(open, needFocus); - return; - } + days += absFloor(hours / 24); - if (_this2.props.onDropdownVisibleChange) { - _this2.props.onDropdownVisibleChange(open); - } + // convert days to months + monthsFromDays = absFloor(daysToMonths(days)); + months += monthsFromDays; + days -= absCeil(monthsToDays(monthsFromDays)); - var nextState = { - open: open, - backfillValue: undefined - }; - // clear search input value when open is false in singleMode. - if (!open && (0, _util.isSingleMode)(props) && props.showSearch) { - _this2.setInputValue('', false); - } - if (!open) { - _this2.maybeFocus(open, needFocus); - } - _this2.setState(nextState, function () { - if (open) { - _this2.maybeFocus(open, needFocus); - } - }); - }; + // 12 months -> 1 year + years = absFloor(months / 12); + months %= 12; - this.setInputValue = function (inputValue) { - var fireSearch = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; + data.days = days; + data.months = months; + data.years = years; - if (inputValue !== _this2.state.inputValue) { - _this2.setState({ - inputValue: inputValue - }, _this2.forcePopupAlign); - if (fireSearch) { - _this2.props.onSearch(inputValue); - } + return this; } - }; - this.getValueByInput = function (string) { - var _props3 = _this2.props, - multiple = _props3.multiple, - tokenSeparators = _props3.tokenSeparators; + function daysToMonths(days) { + // 400 years have 146097 days (taking into account leap year rules) + // 400 years have 12 months === 4800 + return (days * 4800) / 146097; + } - var nextValue = _this2.state.value; - var hasNewValue = false; - (0, _util.splitBySeparators)(string, tokenSeparators).forEach(function (label) { - var selectedValue = [label]; - if (multiple) { - var value = _this2.getValueByLabel(label); - if (value && (0, _util.findIndexInValueBySingleValue)(nextValue, value) === -1) { - nextValue = nextValue.concat(value); - hasNewValue = true; - _this2.fireSelect(value); + function monthsToDays(months) { + // the reverse of daysToMonths + return (months * 146097) / 4800; + } + + function as(units) { + if (!this.isValid()) { + return NaN; } - } else { - // tag - if ((0, _util.findIndexInValueBySingleValue)(nextValue, label) === -1) { - nextValue = nextValue.concat(selectedValue); - hasNewValue = true; - _this2.fireSelect(label); + var days, + months, + milliseconds = this._milliseconds; + + units = normalizeUnits(units); + + if (units === 'month' || units === 'quarter' || units === 'year') { + days = this._days + milliseconds / 864e5; + months = this._months + daysToMonths(days); + switch (units) { + case 'month': + return months; + case 'quarter': + return months / 3; + case 'year': + return months / 12; + } + } else { + // handle milliseconds separately because of floating point math errors (issue #1867) + days = this._days + Math.round(monthsToDays(this._months)); + switch (units) { + case 'week': + return days / 7 + milliseconds / 6048e5; + case 'day': + return days + milliseconds / 864e5; + case 'hour': + return days * 24 + milliseconds / 36e5; + case 'minute': + return days * 1440 + milliseconds / 6e4; + case 'second': + return days * 86400 + milliseconds / 1000; + // Math.floor prevents floating point math errors here + case 'millisecond': + return Math.floor(days * 864e5) + milliseconds; + default: + throw new Error('Unknown unit ' + units); + } } - } - }); - return hasNewValue ? nextValue : undefined; - }; - - this.getRealOpenState = function (state) { - var _open = _this2.props.open; - - if (typeof _open === 'boolean') { - return _open; - } - var open = (state || _this2.state).open; - var options = _this2._options || []; - if ((0, _util.isMultipleOrTagsOrCombobox)(_this2.props) || !_this2.props.showSearch) { - if (open && !options.length) { - open = false; - } } - return open; - }; - - this.markMouseDown = function () { - _this2._mouseDown = true; - }; - - this.markMouseLeave = function () { - _this2._mouseDown = false; - }; - this.handleBackfill = function (item) { - if (!_this2.props.backfill || !((0, _util.isSingleMode)(_this2.props) || (0, _util.isCombobox)(_this2.props))) { - return; + // TODO: Use this.as('ms')? + function valueOf$1() { + if (!this.isValid()) { + return NaN; + } + return ( + this._milliseconds + + this._days * 864e5 + + (this._months % 12) * 2592e6 + + toInt(this._months / 12) * 31536e6 + ); } - var key = (0, _util.getValuePropValue)(item); - - if ((0, _util.isCombobox)(_this2.props)) { - _this2.setInputValue(key, false); + function makeAs(alias) { + return function () { + return this.as(alias); + }; } - _this2.setState({ - value: [key], - backfillValue: key - }); - }; - - this.filterOption = function (input, child) { - var defaultFilter = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _util.defaultFilterFn; - var value = _this2.state.value; + var asMilliseconds = makeAs('ms'), + asSeconds = makeAs('s'), + asMinutes = makeAs('m'), + asHours = makeAs('h'), + asDays = makeAs('d'), + asWeeks = makeAs('w'), + asMonths = makeAs('M'), + asQuarters = makeAs('Q'), + asYears = makeAs('y'); - var lastValue = value[value.length - 1]; - if (!input || lastValue && lastValue === _this2.state.backfillValue) { - return true; - } - var filterFn = _this2.props.filterOption; - if ('filterOption' in _this2.props) { - if (_this2.props.filterOption === true) { - filterFn = defaultFilter; - } - } else { - filterFn = defaultFilter; + function clone$1() { + return createDuration(this); } - if (!filterFn) { - return true; - } else if (typeof filterFn === 'function') { - return filterFn.call(_this2, input, child); - } else if (child.props.disabled) { - return false; + function get$2(units) { + units = normalizeUnits(units); + return this.isValid() ? this[units + 's']() : NaN; } - return true; - }; - this.timeoutFocus = function () { - if (_this2.focusTimer) { - _this2.clearFocusTime(); + function makeGetter(name) { + return function () { + return this.isValid() ? this._data[name] : NaN; + }; } - _this2.focusTimer = setTimeout(function () { - _this2.props.onFocus(); - }, 10); - }; - this.clearFocusTime = function () { - if (_this2.focusTimer) { - clearTimeout(_this2.focusTimer); - _this2.focusTimer = null; - } - }; + var milliseconds = makeGetter('milliseconds'), + seconds = makeGetter('seconds'), + minutes = makeGetter('minutes'), + hours = makeGetter('hours'), + days = makeGetter('days'), + months = makeGetter('months'), + years = makeGetter('years'); - this.clearBlurTime = function () { - if (_this2.blurTimer) { - clearTimeout(_this2.blurTimer); - _this2.blurTimer = null; + function weeks() { + return absFloor(this.days() / 7); } - }; - this.updateFocusClassName = function () { - var rootRef = _this2.rootRef, - props = _this2.props; - // avoid setState and its side effect + var round = Math.round, + thresholds = { + ss: 44, // a few seconds to seconds + s: 45, // seconds to minute + m: 45, // minutes to hour + h: 22, // hours to day + d: 26, // days to month/week + w: null, // weeks to month + M: 11, // months to year + }; - if (_this2._focused) { - (0, _componentClasses2["default"])(rootRef).add(props.prefixCls + '-focused'); - } else { - (0, _componentClasses2["default"])(rootRef).remove(props.prefixCls + '-focused'); + // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize + function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) { + return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture); } - }; - this.maybeFocus = function (open, needFocus) { - if (needFocus || open) { - var input = _this2.getInputDOMNode(); - var _document = document, - activeElement = _document.activeElement; + function relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) { + var duration = createDuration(posNegDuration).abs(), + seconds = round(duration.as('s')), + minutes = round(duration.as('m')), + hours = round(duration.as('h')), + days = round(duration.as('d')), + months = round(duration.as('M')), + weeks = round(duration.as('w')), + years = round(duration.as('y')), + a = + (seconds <= thresholds.ss && ['s', seconds]) || + (seconds < thresholds.s && ['ss', seconds]) || + (minutes <= 1 && ['m']) || + (minutes < thresholds.m && ['mm', minutes]) || + (hours <= 1 && ['h']) || + (hours < thresholds.h && ['hh', hours]) || + (days <= 1 && ['d']) || + (days < thresholds.d && ['dd', days]); - if (input && (open || (0, _util.isMultipleOrTagsOrCombobox)(_this2.props))) { - if (activeElement !== input) { - input.focus(); - _this2._focused = true; + if (thresholds.w != null) { + a = + a || + (weeks <= 1 && ['w']) || + (weeks < thresholds.w && ['ww', weeks]); } - } else if (activeElement !== _this2.selectionRef) { - _this2.selectionRef.focus(); - _this2._focused = true; - } + a = a || + (months <= 1 && ['M']) || + (months < thresholds.M && ['MM', months]) || + (years <= 1 && ['y']) || ['yy', years]; + + a[2] = withoutSuffix; + a[3] = +posNegDuration > 0; + a[4] = locale; + return substituteTimeAgo.apply(null, a); } - }; - this.removeSelected = function (selectedKey, e) { - var props = _this2.props; - if (props.disabled || _this2.isChildDisabled(selectedKey)) { - return; + // This function allows you to set the rounding function for relative time strings + function getSetRelativeTimeRounding(roundingFunction) { + if (roundingFunction === undefined) { + return round; + } + if (typeof roundingFunction === 'function') { + round = roundingFunction; + return true; + } + return false; } - // Do not trigger Trigger popup - if (e && e.stopPropagation) { - e.stopPropagation(); + // This function allows you to set a threshold for relative time strings + function getSetRelativeTimeThreshold(threshold, limit) { + if (thresholds[threshold] === undefined) { + return false; + } + if (limit === undefined) { + return thresholds[threshold]; + } + thresholds[threshold] = limit; + if (threshold === 's') { + thresholds.ss = limit - 1; + } + return true; } - var value = _this2.state.value.filter(function (singleValue) { - return singleValue !== selectedKey; - }); - var canMultiple = (0, _util.isMultipleOrTags)(props); + function humanize(argWithSuffix, argThresholds) { + if (!this.isValid()) { + return this.localeData().invalidDate(); + } - if (canMultiple) { - var event = selectedKey; - if (props.labelInValue) { - event = { - key: selectedKey, - label: _this2.getLabelBySingleValue(selectedKey) - }; - } - props.onDeselect(event, _this2.getOptionBySingleValue(selectedKey)); - } - _this2.fireChange(value); - }; + var withSuffix = false, + th = thresholds, + locale, + output; - this.openIfHasChildren = function () { - var props = _this2.props; - if (_react2["default"].Children.count(props.children) || (0, _util.isSingleMode)(props)) { - _this2.setOpenState(true); - } - }; + if (typeof argWithSuffix === 'object') { + argThresholds = argWithSuffix; + argWithSuffix = false; + } + if (typeof argWithSuffix === 'boolean') { + withSuffix = argWithSuffix; + } + if (typeof argThresholds === 'object') { + th = Object.assign({}, thresholds, argThresholds); + if (argThresholds.s != null && argThresholds.ss == null) { + th.ss = argThresholds.s - 1; + } + } - this.fireSelect = function (value) { - _this2.props.onSelect(_this2.getVLBySingleValue(value), _this2.getOptionBySingleValue(value)); - }; + locale = this.localeData(); + output = relativeTime$1(this, !withSuffix, th, locale); - this.fireChange = function (value, noCheck) { - var props = _this2.props; - if (!('value' in props)) { - _this2.setState({ - value: value - }, _this2.forcePopupAlign); - } - if (noCheck) { - props.onChange(value, null); - } else { - var vls = _this2.getVLForOnChange(value); - var options = _this2.getOptionsBySingleValue(value); - props.onChange(vls, (0, _util.isMultipleOrTags)(_this2.props) ? options : options[0]); + if (withSuffix) { + output = locale.pastFuture(+this, output); + } + + return locale.postformat(output); } - }; - this.isChildDisabled = function (key) { - return (0, _tinperBeeCore.toArray)(_this2.props.children).some(function (child) { - var childValue = (0, _util.getValuePropValue)(child); - return childValue === key && child.props && child.props.disabled; - }); - }; + var abs$1 = Math.abs; - this.forcePopupAlign = function () { - if (!_this2.state.open) { - return; - } - if (_this2.selectTriggerRef && _this2.selectTriggerRef.triggerRef && _this2.selectTriggerRef.triggerRef.forcePopupAlign) { - if (typeof _this2.selectTriggerRef.triggerRef.forcePopupAlign == 'function') { - _this2.selectTriggerRef.triggerRef.forcePopupAlign(); - } + function sign(x) { + return (x > 0) - (x < 0) || +x; } - }; - this.renderFilterOptions = function () { - var inputValue = _this2.state.inputValue; - var _props4 = _this2.props, - children = _props4.children, - tags = _props4.tags, - filterOption = _props4.filterOption, - notFoundContent = _props4.notFoundContent; + function toISOString$1() { + // for ISO strings we do not use the normal bubbling rules: + // * milliseconds bubble up until they become hours + // * days do not bubble at all + // * months bubble up until they become years + // This is because there is no context-free conversion between hours and days + // (think of clock changes) + // and also not between days and months (28-31 days per month) + if (!this.isValid()) { + return this.localeData().invalidDate(); + } - var menuItems = []; - var childrenKeys = []; - var options = _this2.renderFilterOptionsFromChildren(children, childrenKeys, menuItems); - if (tags) { - // tags value must be string - var value = _this2.state.value; - value = value.filter(function (singleValue) { - return childrenKeys.indexOf(singleValue) === -1 && (!inputValue || String(singleValue).indexOf(String(inputValue)) > -1); - }); - value.forEach(function (singleValue) { - var key = singleValue; - var menuItem = _react2["default"].createElement( - _MenuItem2["default"], - { - style: _util.UNSELECTABLE_STYLE, - role: 'option', - attribute: _util.UNSELECTABLE_ATTRIBUTE, - value: key, - key: key - }, - key - ); - options.push(menuItem); - menuItems.push(menuItem); - }); - if (inputValue) { - var notFindInputItem = menuItems.every(function (option) { - // this.filterOption return true has two meaning, - // 1, some one exists after filtering - // 2, filterOption is set to false - // condition 2 does not mean the option has same value with inputValue - var filterFn = function filterFn() { - return (0, _util.getValuePropValue)(option) === inputValue; - }; - if (filterOption !== false) { - return !_this2.filterOption.call(_this2, inputValue, option, filterFn); - } - return !filterFn(); - }); - if (notFindInputItem) { - options.unshift(_react2["default"].createElement( - _MenuItem2["default"], - { - style: _util.UNSELECTABLE_STYLE, - role: 'option', - attribute: _util.UNSELECTABLE_ATTRIBUTE, - value: inputValue, - key: inputValue - }, - inputValue - )); + var seconds = abs$1(this._milliseconds) / 1000, + days = abs$1(this._days), + months = abs$1(this._months), + minutes, + hours, + years, + s, + total = this.asSeconds(), + totalSign, + ymSign, + daysSign, + hmsSign; + + if (!total) { + // this is the same as C#'s (Noda) and python (isodate)... + // but not other JS (goog.date) + return 'P0D'; } - } - } - if (!options.length && notFoundContent) { - options = [_react2["default"].createElement( - _MenuItem2["default"], - { - style: _util.UNSELECTABLE_STYLE, - attribute: _util.UNSELECTABLE_ATTRIBUTE, - disabled: true, - role: 'option', - value: 'NOT_FOUND', - key: 'NOT_FOUND' - }, - notFoundContent - )]; + // 3600 seconds -> 60 minutes -> 1 hour + minutes = absFloor(seconds / 60); + hours = absFloor(minutes / 60); + seconds %= 60; + minutes %= 60; + + // 12 months -> 1 year + years = absFloor(months / 12); + months %= 12; + + // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js + s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, '') : ''; + + totalSign = total < 0 ? '-' : ''; + ymSign = sign(this._months) !== sign(total) ? '-' : ''; + daysSign = sign(this._days) !== sign(total) ? '-' : ''; + hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : ''; + + return ( + totalSign + + 'P' + + (years ? ymSign + years + 'Y' : '') + + (months ? ymSign + months + 'M' : '') + + (days ? daysSign + days + 'D' : '') + + (hours || minutes || seconds ? 'T' : '') + + (hours ? hmsSign + hours + 'H' : '') + + (minutes ? hmsSign + minutes + 'M' : '') + + (seconds ? hmsSign + s + 'S' : '') + ); } - return options; - }; - this.renderFilterOptionsFromChildren = function (children, childrenKeys, menuItems) { - var sel = []; - var props = _this2.props; - var inputValue = _this2.state.inputValue; + var proto$2 = Duration.prototype; - var tags = props.tags; - _react2["default"].Children.forEach(children, function (child) { - if (!child) { - return; - } - if (child.type.isSelectOptGroup) { - var innerItems = _this2.renderFilterOptionsFromChildren(child.props.children, childrenKeys, menuItems); - if (innerItems.length) { - var label = child.props.label; - var key = child.key; - if (!key && typeof label === 'string') { - key = label; - } else if (!label && key) { - label = key; - } - sel.push(_react2["default"].createElement( - _rcMenu.ItemGroup, - { key: key, title: label }, - innerItems - )); - } - return; - } + proto$2.isValid = isValid$1; + proto$2.abs = abs; + proto$2.add = add$1; + proto$2.subtract = subtract$1; + proto$2.as = as; + proto$2.asMilliseconds = asMilliseconds; + proto$2.asSeconds = asSeconds; + proto$2.asMinutes = asMinutes; + proto$2.asHours = asHours; + proto$2.asDays = asDays; + proto$2.asWeeks = asWeeks; + proto$2.asMonths = asMonths; + proto$2.asQuarters = asQuarters; + proto$2.asYears = asYears; + proto$2.valueOf = valueOf$1; + proto$2._bubble = bubble; + proto$2.clone = clone$1; + proto$2.get = get$2; + proto$2.milliseconds = milliseconds; + proto$2.seconds = seconds; + proto$2.minutes = minutes; + proto$2.hours = hours; + proto$2.days = days; + proto$2.weeks = weeks; + proto$2.months = months; + proto$2.years = years; + proto$2.humanize = humanize; + proto$2.toISOString = toISOString$1; + proto$2.toString = toISOString$1; + proto$2.toJSON = toISOString$1; + proto$2.locale = locale; + proto$2.localeData = localeData; - (0, _warning2["default"])(child.type.isSelectOption, 'the children of `Select` should be `Select.Option` or `Select.OptGroup`, ' + ('instead of `' + (child.type.name || child.type.displayName || child.type) + '`.')); + proto$2.toIsoString = deprecate( + 'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', + toISOString$1 + ); + proto$2.lang = lang; - var childValue = (0, _util.getValuePropValue)(child); + // FORMATTING - (0, _util.validateOptionValue)(childValue, _this2.props); + addFormatToken('X', 0, 0, 'unix'); + addFormatToken('x', 0, 0, 'valueOf'); - if (_this2.filterOption(inputValue, child)) { - var menuItem = _react2["default"].createElement(_MenuItem2["default"], _extends({ - style: _util.UNSELECTABLE_STYLE, - attribute: _util.UNSELECTABLE_ATTRIBUTE, - value: childValue, - key: childValue, - role: 'option' - }, child.props)); - sel.push(menuItem); - menuItems.push(menuItem); - } + // PARSING - if (tags) { - childrenKeys.push(childValue); - } + addRegexToken('x', matchSigned); + addRegexToken('X', matchTimestamp); + addParseToken('X', function (input, array, config) { + config._d = new Date(parseFloat(input) * 1000); + }); + addParseToken('x', function (input, array, config) { + config._d = new Date(toInt(input)); }); - return sel; - }; + //! moment.js - this.renderTopControlNode = function () { - var _state2 = _this2.state, - value = _state2.value, - open = _state2.open, - inputValue = _state2.inputValue; + hooks.version = '2.27.0'; - var props = _this2.props; - var choiceTransitionName = props.choiceTransitionName, - prefixCls = props.prefixCls, - maxTagTextLength = props.maxTagTextLength, - maxTagCount = props.maxTagCount, - maxTagPlaceholder = props.maxTagPlaceholder, - showSearch = props.showSearch, - removeIcon = props.removeIcon; + setHookCallback(createLocal); - var className = prefixCls + '-selection-rendered'; - // search input is inside topControlNode in single, multiple & combobox. 2016/04/13 - var innerNode = null; - if ((0, _util.isSingleMode)(props)) { - var selectedValue = null; - if (value.length) { - var showSelectedValue = false; - var opacity = 1; - if (!showSearch) { - showSelectedValue = true; - } else if (open) { - showSelectedValue = !inputValue; - if (showSelectedValue) { - opacity = 0.4; - } - } else { - showSelectedValue = true; - } - var singleValue = value[0]; + hooks.fn = proto; + hooks.min = min; + hooks.max = max; + hooks.now = now; + hooks.utc = createUTC; + hooks.unix = createUnix; + hooks.months = listMonths; + hooks.isDate = isDate; + hooks.locale = getSetGlobalLocale; + hooks.invalid = createInvalid; + hooks.duration = createDuration; + hooks.isMoment = isMoment; + hooks.weekdays = listWeekdays; + hooks.parseZone = createInZone; + hooks.localeData = getLocale; + hooks.isDuration = isDuration; + hooks.monthsShort = listMonthsShort; + hooks.weekdaysMin = listWeekdaysMin; + hooks.defineLocale = defineLocale; + hooks.updateLocale = updateLocale; + hooks.locales = listLocales; + hooks.weekdaysShort = listWeekdaysShort; + hooks.normalizeUnits = normalizeUnits; + hooks.relativeTimeRounding = getSetRelativeTimeRounding; + hooks.relativeTimeThreshold = getSetRelativeTimeThreshold; + hooks.calendarFormat = getCalendarFormat; + hooks.prototype = proto; - var _getOptionInfoBySingl3 = _this2.getOptionInfoBySingleValue(singleValue), - label = _getOptionInfoBySingl3.label, - title = _getOptionInfoBySingl3.title; + // currently HTML5 input type only supports 24-hour formats + hooks.HTML5_FMT = { + DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // + DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // + DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // + DATE: 'YYYY-MM-DD', // + TIME: 'HH:mm', // + TIME_SECONDS: 'HH:mm:ss', // + TIME_MS: 'HH:mm:ss.SSS', // + WEEK: 'GGGG-[W]WW', // + MONTH: 'YYYY-MM', // + }; - selectedValue = _react2["default"].createElement( - 'div', - { - key: 'value', - className: prefixCls + '-selection-selected-value', - title: (0, _util.toTitle)(title || label), - style: { - display: showSelectedValue ? 'block' : 'none', - opacity: opacity - } - }, - label - ); - } - if (!showSearch) { - innerNode = [selectedValue]; - } else { - innerNode = [selectedValue, _react2["default"].createElement( - 'div', - { - className: prefixCls + '-search ' + prefixCls + '-search--inline', - key: 'input', - style: { - display: open ? 'block' : 'none' + return hooks; + + }))); + + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(193)(module))) + +/***/ }), +/* 424 */ +/***/ (function(module, exports, __webpack_require__) { + + var map = { + "./af": 425, + "./af.js": 425, + "./ar": 426, + "./ar-dz": 427, + "./ar-dz.js": 427, + "./ar-kw": 428, + "./ar-kw.js": 428, + "./ar-ly": 429, + "./ar-ly.js": 429, + "./ar-ma": 430, + "./ar-ma.js": 430, + "./ar-sa": 431, + "./ar-sa.js": 431, + "./ar-tn": 432, + "./ar-tn.js": 432, + "./ar.js": 426, + "./az": 433, + "./az.js": 433, + "./be": 434, + "./be.js": 434, + "./bg": 435, + "./bg.js": 435, + "./bm": 436, + "./bm.js": 436, + "./bn": 437, + "./bn.js": 437, + "./bo": 438, + "./bo.js": 438, + "./br": 439, + "./br.js": 439, + "./bs": 440, + "./bs.js": 440, + "./ca": 441, + "./ca.js": 441, + "./cs": 442, + "./cs.js": 442, + "./cv": 443, + "./cv.js": 443, + "./cy": 444, + "./cy.js": 444, + "./da": 445, + "./da.js": 445, + "./de": 446, + "./de-at": 447, + "./de-at.js": 447, + "./de-ch": 448, + "./de-ch.js": 448, + "./de.js": 446, + "./dv": 449, + "./dv.js": 449, + "./el": 450, + "./el.js": 450, + "./en-au": 451, + "./en-au.js": 451, + "./en-ca": 452, + "./en-ca.js": 452, + "./en-gb": 453, + "./en-gb.js": 453, + "./en-ie": 454, + "./en-ie.js": 454, + "./en-il": 455, + "./en-il.js": 455, + "./en-in": 456, + "./en-in.js": 456, + "./en-nz": 457, + "./en-nz.js": 457, + "./en-sg": 458, + "./en-sg.js": 458, + "./eo": 459, + "./eo.js": 459, + "./es": 460, + "./es-do": 461, + "./es-do.js": 461, + "./es-us": 462, + "./es-us.js": 462, + "./es.js": 460, + "./et": 463, + "./et.js": 463, + "./eu": 464, + "./eu.js": 464, + "./fa": 465, + "./fa.js": 465, + "./fi": 466, + "./fi.js": 466, + "./fil": 467, + "./fil.js": 467, + "./fo": 468, + "./fo.js": 468, + "./fr": 469, + "./fr-ca": 470, + "./fr-ca.js": 470, + "./fr-ch": 471, + "./fr-ch.js": 471, + "./fr.js": 469, + "./fy": 472, + "./fy.js": 472, + "./ga": 473, + "./ga.js": 473, + "./gd": 474, + "./gd.js": 474, + "./gl": 475, + "./gl.js": 475, + "./gom-deva": 476, + "./gom-deva.js": 476, + "./gom-latn": 477, + "./gom-latn.js": 477, + "./gu": 478, + "./gu.js": 478, + "./he": 479, + "./he.js": 479, + "./hi": 480, + "./hi.js": 480, + "./hr": 481, + "./hr.js": 481, + "./hu": 482, + "./hu.js": 482, + "./hy-am": 483, + "./hy-am.js": 483, + "./id": 484, + "./id.js": 484, + "./is": 485, + "./is.js": 485, + "./it": 486, + "./it-ch": 487, + "./it-ch.js": 487, + "./it.js": 486, + "./ja": 488, + "./ja.js": 488, + "./jv": 489, + "./jv.js": 489, + "./ka": 490, + "./ka.js": 490, + "./kk": 491, + "./kk.js": 491, + "./km": 492, + "./km.js": 492, + "./kn": 493, + "./kn.js": 493, + "./ko": 494, + "./ko.js": 494, + "./ku": 495, + "./ku.js": 495, + "./ky": 496, + "./ky.js": 496, + "./lb": 497, + "./lb.js": 497, + "./lo": 498, + "./lo.js": 498, + "./lt": 499, + "./lt.js": 499, + "./lv": 500, + "./lv.js": 500, + "./me": 501, + "./me.js": 501, + "./mi": 502, + "./mi.js": 502, + "./mk": 503, + "./mk.js": 503, + "./ml": 504, + "./ml.js": 504, + "./mn": 505, + "./mn.js": 505, + "./mr": 506, + "./mr.js": 506, + "./ms": 507, + "./ms-my": 508, + "./ms-my.js": 508, + "./ms.js": 507, + "./mt": 509, + "./mt.js": 509, + "./my": 510, + "./my.js": 510, + "./nb": 511, + "./nb.js": 511, + "./ne": 512, + "./ne.js": 512, + "./nl": 513, + "./nl-be": 514, + "./nl-be.js": 514, + "./nl.js": 513, + "./nn": 515, + "./nn.js": 515, + "./oc-lnc": 516, + "./oc-lnc.js": 516, + "./pa-in": 517, + "./pa-in.js": 517, + "./pl": 518, + "./pl.js": 518, + "./pt": 519, + "./pt-br": 520, + "./pt-br.js": 520, + "./pt.js": 519, + "./ro": 521, + "./ro.js": 521, + "./ru": 522, + "./ru.js": 522, + "./sd": 523, + "./sd.js": 523, + "./se": 524, + "./se.js": 524, + "./si": 525, + "./si.js": 525, + "./sk": 526, + "./sk.js": 526, + "./sl": 527, + "./sl.js": 527, + "./sq": 528, + "./sq.js": 528, + "./sr": 529, + "./sr-cyrl": 530, + "./sr-cyrl.js": 530, + "./sr.js": 529, + "./ss": 531, + "./ss.js": 531, + "./sv": 532, + "./sv.js": 532, + "./sw": 533, + "./sw.js": 533, + "./ta": 534, + "./ta.js": 534, + "./te": 535, + "./te.js": 535, + "./tet": 536, + "./tet.js": 536, + "./tg": 537, + "./tg.js": 537, + "./th": 538, + "./th.js": 538, + "./tk": 539, + "./tk.js": 539, + "./tl-ph": 540, + "./tl-ph.js": 540, + "./tlh": 541, + "./tlh.js": 541, + "./tr": 542, + "./tr.js": 542, + "./tzl": 543, + "./tzl.js": 543, + "./tzm": 544, + "./tzm-latn": 545, + "./tzm-latn.js": 545, + "./tzm.js": 544, + "./ug-cn": 546, + "./ug-cn.js": 546, + "./uk": 547, + "./uk.js": 547, + "./ur": 548, + "./ur.js": 548, + "./uz": 549, + "./uz-latn": 550, + "./uz-latn.js": 550, + "./uz.js": 549, + "./vi": 551, + "./vi.js": 551, + "./x-pseudo": 552, + "./x-pseudo.js": 552, + "./yo": 553, + "./yo.js": 553, + "./zh-cn": 554, + "./zh-cn.js": 554, + "./zh-hk": 555, + "./zh-hk.js": 555, + "./zh-mo": 556, + "./zh-mo.js": 556, + "./zh-tw": 557, + "./zh-tw.js": 557 + }; + function webpackContext(req) { + return __webpack_require__(webpackContextResolve(req)); + }; + function webpackContextResolve(req) { + return map[req] || (function() { throw new Error("Cannot find module '" + req + "'.") }()); + }; + webpackContext.keys = function webpackContextKeys() { + return Object.keys(map); + }; + webpackContext.resolve = webpackContextResolve; + module.exports = webpackContext; + webpackContext.id = 424; + + +/***/ }), +/* 425 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Afrikaans [af] + //! author : Werner Mollentze : https://github.com/wernerm + + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; + + //! moment.js locale configuration + + var af = moment.defineLocale('af', { + months: 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'), + weekdays: 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split( + '_' + ), + weekdaysShort: 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'), + weekdaysMin: 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'), + meridiemParse: /vm|nm/i, + isPM: function (input) { + return /^nm$/i.test(input); + }, + meridiem: function (hours, minutes, isLower) { + if (hours < 12) { + return isLower ? 'vm' : 'VM'; + } else { + return isLower ? 'nm' : 'NM'; } - }, - _this2.getInputElement() - )]; - } - } else { - var selectedValueNodes = []; - var limitedCountValue = value; - var maxTagPlaceholderEl = void 0; - if (maxTagCount !== undefined && value.length > maxTagCount) { - limitedCountValue = limitedCountValue.slice(0, maxTagCount); - var omittedValues = _this2.getVLForOnChange(value.slice(maxTagCount, value.length)); - var content = '+ ' + (value.length - maxTagCount) + ' ...'; - if (maxTagPlaceholder) { - content = typeof maxTagPlaceholder === 'function' ? maxTagPlaceholder(omittedValues) : maxTagPlaceholder; - } - maxTagPlaceholderEl = _react2["default"].createElement( - 'li', - _extends({ - style: _util.UNSELECTABLE_STYLE - }, _util.UNSELECTABLE_ATTRIBUTE, { - onMouseDown: _util.preventDefaultEvent, - className: prefixCls + '-selection-choice ' + prefixCls + '-selection-choice-disabled', - key: 'maxTagPlaceholder', - title: (0, _util.toTitle)(content) - }), - _react2["default"].createElement( - 'div', - { className: prefixCls + '-selection-choice-content' }, - content - ) - ); - } - if ((0, _util.isMultipleOrTags)(props)) { - selectedValueNodes = limitedCountValue.map(function (singleValue, index) { - var key = singleValue || index; - var info = _this2.getOptionInfoBySingleValue(singleValue); - var content = info.label; - var title = info.title || content; - if (maxTagTextLength && typeof content === 'string' && content.length > maxTagTextLength) { - content = content.slice(0, maxTagTextLength) + '...'; - } - var disabled = _this2.isChildDisabled(singleValue); - var choiceClassName = disabled ? prefixCls + '-selection-choice ' + prefixCls + '-selection-choice-disabled' : prefixCls + '-selection-choice'; - return _react2["default"].createElement( - 'li', - _extends({ - style: _util.UNSELECTABLE_STYLE - }, _util.UNSELECTABLE_ATTRIBUTE, { - onMouseDown: _util.preventDefaultEvent, - className: choiceClassName, - key: key, - title: (0, _util.toTitle)(title) - }), - _react2["default"].createElement( - 'div', - { className: prefixCls + '-selection-choice-content' }, - content - ), - disabled ? null : _react2["default"].createElement( - 'span', - { - onClick: function onClick(event) { - _this2.removeSelected(singleValue, event); - }, - className: prefixCls + '-selection-choice-remove' - }, - removeIcon || _react2["default"].createElement( - 'i', - { className: prefixCls + '-selection-choice-remove-icon' }, - '\xD7' - ) - ) - ); - }); - } - if (maxTagPlaceholderEl) { - selectedValueNodes.push(maxTagPlaceholderEl); - } - selectedValueNodes.push(_react2["default"].createElement( - 'li', - { - className: prefixCls + '-search ' + prefixCls + '-search--inline', - key: '-input' }, - _this2.getInputElement() - )); + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Vandag om] LT', + nextDay: '[Môre om] LT', + nextWeek: 'dddd [om] LT', + lastDay: '[Gister om] LT', + lastWeek: '[Laas] dddd [om] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'oor %s', + past: '%s gelede', + s: "'n paar sekondes", + ss: '%d sekondes', + m: "'n minuut", + mm: '%d minute', + h: "'n uur", + hh: '%d ure', + d: "'n dag", + dd: '%d dae', + M: "'n maand", + MM: '%d maande', + y: "'n jaar", + yy: '%d jaar', + }, + dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, + ordinal: function (number) { + return ( + number + + (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de') + ); // Thanks to Joris Röling : https://github.com/jjupiter + }, + week: { + dow: 1, // Maandag is die eerste dag van die week. + doy: 4, // Die week wat die 4de Januarie bevat is die eerste week van die jaar. + }, + }); - if ((0, _util.isMultipleOrTags)(props) && choiceTransitionName) { - innerNode = _react2["default"].createElement( - _beeAnimate2["default"], - { - onLeave: _this2.onChoiceAnimationLeave, - component: 'ul', - transitionName: choiceTransitionName - }, - selectedValueNodes - ); - } else { - innerNode = _react2["default"].createElement( - 'ul', - null, - selectedValueNodes - ); - } - } - return _react2["default"].createElement( - 'div', - { className: className, ref: _this2.saveTopCtrlRef }, - _this2.getPlaceholderElement(), - innerNode - ); - }; + return af; - this.onOuterClick = function (event) { - //sp:在不能输入的情况下,点击事件触发focus - _this2._focused = true; - _this2.updateFocusClassName(); - _this2.props.onFocus(_this2.state.value); - }; - }; + }))); + + +/***/ }), +/* 426 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Arabic [ar] + //! author : Abdel Said: https://github.com/abdelsaid + //! author : Ahmed Elkhatib + //! author : forabi https://github.com/forabi - Select.displayName = 'Select'; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; + + //! moment.js locale configuration + + var symbolMap = { + '1': '١', + '2': '٢', + '3': '٣', + '4': '٤', + '5': '٥', + '6': '٦', + '7': '٧', + '8': '٨', + '9': '٩', + '0': '٠', + }, + numberMap = { + '١': '1', + '٢': '2', + '٣': '3', + '٤': '4', + '٥': '5', + '٦': '6', + '٧': '7', + '٨': '8', + '٩': '9', + '٠': '0', + }, + pluralForm = function (n) { + return n === 0 + ? 0 + : n === 1 + ? 1 + : n === 2 + ? 2 + : n % 100 >= 3 && n % 100 <= 10 + ? 3 + : n % 100 >= 11 + ? 4 + : 5; + }, + plurals = { + s: [ + 'أقل من ثانية', + 'ثانية واحدة', + ['ثانيتان', 'ثانيتين'], + '%d ثوان', + '%d ثانية', + '%d ثانية', + ], + m: [ + 'أقل من دقيقة', + 'دقيقة واحدة', + ['دقيقتان', 'دقيقتين'], + '%d دقائق', + '%d دقيقة', + '%d دقيقة', + ], + h: [ + 'أقل من ساعة', + 'ساعة واحدة', + ['ساعتان', 'ساعتين'], + '%d ساعات', + '%d ساعة', + '%d ساعة', + ], + d: [ + 'أقل من يوم', + 'يوم واحد', + ['يومان', 'يومين'], + '%d أيام', + '%d يومًا', + '%d يوم', + ], + M: [ + 'أقل من شهر', + 'شهر واحد', + ['شهران', 'شهرين'], + '%d أشهر', + '%d شهرا', + '%d شهر', + ], + y: [ + 'أقل من عام', + 'عام واحد', + ['عامان', 'عامين'], + '%d أعوام', + '%d عامًا', + '%d عام', + ], + }, + pluralize = function (u) { + return function (number, withoutSuffix, string, isFuture) { + var f = pluralForm(number), + str = plurals[u][pluralForm(number)]; + if (f === 2) { + str = str[withoutSuffix ? 0 : 1]; + } + return str.replace(/%d/i, number); + }; + }, + months = [ + 'يناير', + 'فبراير', + 'مارس', + 'أبريل', + 'مايو', + 'يونيو', + 'يوليو', + 'أغسطس', + 'سبتمبر', + 'أكتوبر', + 'نوفمبر', + 'ديسمبر', + ]; + + var ar = moment.defineLocale('ar', { + months: months, + monthsShort: months, + weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), + weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), + weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'D/\u200FM/\u200FYYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + meridiemParse: /ص|م/, + isPM: function (input) { + return 'م' === input; + }, + meridiem: function (hour, minute, isLower) { + if (hour < 12) { + return 'ص'; + } else { + return 'م'; + } + }, + calendar: { + sameDay: '[اليوم عند الساعة] LT', + nextDay: '[غدًا عند الساعة] LT', + nextWeek: 'dddd [عند الساعة] LT', + lastDay: '[أمس عند الساعة] LT', + lastWeek: 'dddd [عند الساعة] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'بعد %s', + past: 'منذ %s', + s: pluralize('s'), + ss: pluralize('s'), + m: pluralize('m'), + mm: pluralize('m'), + h: pluralize('h'), + hh: pluralize('h'), + d: pluralize('d'), + dd: pluralize('d'), + M: pluralize('M'), + MM: pluralize('M'), + y: pluralize('y'), + yy: pluralize('y'), + }, + preparse: function (string) { + return string + .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) { + return numberMap[match]; + }) + .replace(/،/g, ','); + }, + postformat: function (string) { + return string + .replace(/\d/g, function (match) { + return symbolMap[match]; + }) + .replace(/,/g, '،'); + }, + week: { + dow: 6, // Saturday is the first day of the week. + doy: 12, // The week that contains Jan 12th is the first week of the year. + }, + }); - (0, _reactLifecyclesCompat.polyfill)(Select); + return ar; - exports["default"] = Select; - module.exports = exports['default']; + }))); + /***/ }), -/* 579 */ +/* 427 */ /***/ (function(module, exports, __webpack_require__) { - 'use strict'; - - exports.__esModule = true; - exports.Divider = exports.ItemGroup = exports.MenuItemGroup = exports.MenuItem = exports.Item = exports.SubMenu = undefined; - - var _Menu = __webpack_require__(580); - - var _Menu2 = _interopRequireDefault(_Menu); - - var _SubMenu = __webpack_require__(584); - - var _SubMenu2 = _interopRequireDefault(_SubMenu); - - var _MenuItem = __webpack_require__(586); - - var _MenuItem2 = _interopRequireDefault(_MenuItem); + //! moment.js locale configuration + //! locale : Arabic (Algeria) [ar-dz] + //! author : Amine Roukh: https://github.com/Amine27 + //! author : Abdel Said: https://github.com/abdelsaid + //! author : Ahmed Elkhatib + //! author : forabi https://github.com/forabi + //! author : Noureddine LOUAHEDJ : https://github.com/noureddinem - var _MenuItemGroup = __webpack_require__(587); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _MenuItemGroup2 = _interopRequireDefault(_MenuItemGroup); + //! moment.js locale configuration - var _Divider = __webpack_require__(588); + var pluralForm = function (n) { + return n === 0 + ? 0 + : n === 1 + ? 1 + : n === 2 + ? 2 + : n % 100 >= 3 && n % 100 <= 10 + ? 3 + : n % 100 >= 11 + ? 4 + : 5; + }, + plurals = { + s: [ + 'أقل من ثانية', + 'ثانية واحدة', + ['ثانيتان', 'ثانيتين'], + '%d ثوان', + '%d ثانية', + '%d ثانية', + ], + m: [ + 'أقل من دقيقة', + 'دقيقة واحدة', + ['دقيقتان', 'دقيقتين'], + '%d دقائق', + '%d دقيقة', + '%d دقيقة', + ], + h: [ + 'أقل من ساعة', + 'ساعة واحدة', + ['ساعتان', 'ساعتين'], + '%d ساعات', + '%d ساعة', + '%d ساعة', + ], + d: [ + 'أقل من يوم', + 'يوم واحد', + ['يومان', 'يومين'], + '%d أيام', + '%d يومًا', + '%d يوم', + ], + M: [ + 'أقل من شهر', + 'شهر واحد', + ['شهران', 'شهرين'], + '%d أشهر', + '%d شهرا', + '%d شهر', + ], + y: [ + 'أقل من عام', + 'عام واحد', + ['عامان', 'عامين'], + '%d أعوام', + '%d عامًا', + '%d عام', + ], + }, + pluralize = function (u) { + return function (number, withoutSuffix, string, isFuture) { + var f = pluralForm(number), + str = plurals[u][pluralForm(number)]; + if (f === 2) { + str = str[withoutSuffix ? 0 : 1]; + } + return str.replace(/%d/i, number); + }; + }, + months = [ + 'جانفي', + 'فيفري', + 'مارس', + 'أفريل', + 'ماي', + 'جوان', + 'جويلية', + 'أوت', + 'سبتمبر', + 'أكتوبر', + 'نوفمبر', + 'ديسمبر', + ]; - var _Divider2 = _interopRequireDefault(_Divider); + var arDz = moment.defineLocale('ar-dz', { + months: months, + monthsShort: months, + weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), + weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), + weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'D/\u200FM/\u200FYYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + meridiemParse: /ص|م/, + isPM: function (input) { + return 'م' === input; + }, + meridiem: function (hour, minute, isLower) { + if (hour < 12) { + return 'ص'; + } else { + return 'م'; + } + }, + calendar: { + sameDay: '[اليوم عند الساعة] LT', + nextDay: '[غدًا عند الساعة] LT', + nextWeek: 'dddd [عند الساعة] LT', + lastDay: '[أمس عند الساعة] LT', + lastWeek: 'dddd [عند الساعة] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'بعد %s', + past: 'منذ %s', + s: pluralize('s'), + ss: pluralize('s'), + m: pluralize('m'), + mm: pluralize('m'), + h: pluralize('h'), + hh: pluralize('h'), + d: pluralize('d'), + dd: pluralize('d'), + M: pluralize('M'), + MM: pluralize('M'), + y: pluralize('y'), + yy: pluralize('y'), + }, + postformat: function (string) { + return string.replace(/,/g, '،'); + }, + week: { + dow: 0, // Sunday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + return arDz; - exports.SubMenu = _SubMenu2['default']; - exports.Item = _MenuItem2['default']; - exports.MenuItem = _MenuItem2['default']; - exports.MenuItemGroup = _MenuItemGroup2['default']; - exports.ItemGroup = _MenuItemGroup2['default']; - exports.Divider = _Divider2['default']; - exports['default'] = _Menu2['default']; + }))); + /***/ }), -/* 580 */ +/* 428 */ /***/ (function(module, exports, __webpack_require__) { - 'use strict'; - - exports.__esModule = true; - - var _extends2 = __webpack_require__(316); - - var _extends3 = _interopRequireDefault(_extends2); - - var _objectWithoutProperties2 = __webpack_require__(379); - - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); - - var _classCallCheck2 = __webpack_require__(318); - - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); + //! moment.js locale configuration + //! locale : Arabic (Kuwait) [ar-kw] + //! author : Nusret Parlak: https://github.com/nusretparlak - var _possibleConstructorReturn2 = __webpack_require__(319); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); + //! moment.js locale configuration - var _inherits2 = __webpack_require__(350); + var arKw = moment.defineLocale('ar-kw', { + months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( + '_' + ), + monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( + '_' + ), + weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), + weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), + weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[اليوم على الساعة] LT', + nextDay: '[غدا على الساعة] LT', + nextWeek: 'dddd [على الساعة] LT', + lastDay: '[أمس على الساعة] LT', + lastWeek: 'dddd [على الساعة] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'في %s', + past: 'منذ %s', + s: 'ثوان', + ss: '%d ثانية', + m: 'دقيقة', + mm: '%d دقائق', + h: 'ساعة', + hh: '%d ساعات', + d: 'يوم', + dd: '%d أيام', + M: 'شهر', + MM: '%d أشهر', + y: 'سنة', + yy: '%d سنوات', + }, + week: { + dow: 0, // Sunday is the first day of the week. + doy: 12, // The week that contains Jan 12th is the first week of the year. + }, + }); - var _inherits3 = _interopRequireDefault(_inherits2); + return arKw; - var _react = __webpack_require__(1); + }))); + + +/***/ }), +/* 429 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Arabic (Lybia) [ar-ly] + //! author : Ali Hmer: https://github.com/kikoanis - var _react2 = _interopRequireDefault(_react); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _propTypes = __webpack_require__(6); + //! moment.js locale configuration - var _propTypes2 = _interopRequireDefault(_propTypes); + var symbolMap = { + '1': '1', + '2': '2', + '3': '3', + '4': '4', + '5': '5', + '6': '6', + '7': '7', + '8': '8', + '9': '9', + '0': '0', + }, + pluralForm = function (n) { + return n === 0 + ? 0 + : n === 1 + ? 1 + : n === 2 + ? 2 + : n % 100 >= 3 && n % 100 <= 10 + ? 3 + : n % 100 >= 11 + ? 4 + : 5; + }, + plurals = { + s: [ + 'أقل من ثانية', + 'ثانية واحدة', + ['ثانيتان', 'ثانيتين'], + '%d ثوان', + '%d ثانية', + '%d ثانية', + ], + m: [ + 'أقل من دقيقة', + 'دقيقة واحدة', + ['دقيقتان', 'دقيقتين'], + '%d دقائق', + '%d دقيقة', + '%d دقيقة', + ], + h: [ + 'أقل من ساعة', + 'ساعة واحدة', + ['ساعتان', 'ساعتين'], + '%d ساعات', + '%d ساعة', + '%d ساعة', + ], + d: [ + 'أقل من يوم', + 'يوم واحد', + ['يومان', 'يومين'], + '%d أيام', + '%d يومًا', + '%d يوم', + ], + M: [ + 'أقل من شهر', + 'شهر واحد', + ['شهران', 'شهرين'], + '%d أشهر', + '%d شهرا', + '%d شهر', + ], + y: [ + 'أقل من عام', + 'عام واحد', + ['عامان', 'عامين'], + '%d أعوام', + '%d عامًا', + '%d عام', + ], + }, + pluralize = function (u) { + return function (number, withoutSuffix, string, isFuture) { + var f = pluralForm(number), + str = plurals[u][pluralForm(number)]; + if (f === 2) { + str = str[withoutSuffix ? 0 : 1]; + } + return str.replace(/%d/i, number); + }; + }, + months = [ + 'يناير', + 'فبراير', + 'مارس', + 'أبريل', + 'مايو', + 'يونيو', + 'يوليو', + 'أغسطس', + 'سبتمبر', + 'أكتوبر', + 'نوفمبر', + 'ديسمبر', + ]; - var _miniStore = __webpack_require__(303); + var arLy = moment.defineLocale('ar-ly', { + months: months, + monthsShort: months, + weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), + weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), + weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'D/\u200FM/\u200FYYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + meridiemParse: /ص|م/, + isPM: function (input) { + return 'م' === input; + }, + meridiem: function (hour, minute, isLower) { + if (hour < 12) { + return 'ص'; + } else { + return 'م'; + } + }, + calendar: { + sameDay: '[اليوم عند الساعة] LT', + nextDay: '[غدًا عند الساعة] LT', + nextWeek: 'dddd [عند الساعة] LT', + lastDay: '[أمس عند الساعة] LT', + lastWeek: 'dddd [عند الساعة] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'بعد %s', + past: 'منذ %s', + s: pluralize('s'), + ss: pluralize('s'), + m: pluralize('m'), + mm: pluralize('m'), + h: pluralize('h'), + hh: pluralize('h'), + d: pluralize('d'), + dd: pluralize('d'), + M: pluralize('M'), + MM: pluralize('M'), + y: pluralize('y'), + yy: pluralize('y'), + }, + preparse: function (string) { + return string.replace(/،/g, ','); + }, + postformat: function (string) { + return string + .replace(/\d/g, function (match) { + return symbolMap[match]; + }) + .replace(/,/g, '،'); + }, + week: { + dow: 6, // Saturday is the first day of the week. + doy: 12, // The week that contains Jan 12th is the first week of the year. + }, + }); - var _SubPopupMenu = __webpack_require__(581); + return arLy; - var _SubPopupMenu2 = _interopRequireDefault(_SubPopupMenu); + }))); + + +/***/ }), +/* 430 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Arabic (Morocco) [ar-ma] + //! author : ElFadili Yassine : https://github.com/ElFadiliY + //! author : Abdel Said : https://github.com/abdelsaid - var _util = __webpack_require__(582); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + //! moment.js locale configuration - var Menu = function (_React$Component) { - (0, _inherits3['default'])(Menu, _React$Component); + var arMa = moment.defineLocale('ar-ma', { + months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( + '_' + ), + monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( + '_' + ), + weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), + weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), + weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[اليوم على الساعة] LT', + nextDay: '[غدا على الساعة] LT', + nextWeek: 'dddd [على الساعة] LT', + lastDay: '[أمس على الساعة] LT', + lastWeek: 'dddd [على الساعة] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'في %s', + past: 'منذ %s', + s: 'ثوان', + ss: '%d ثانية', + m: 'دقيقة', + mm: '%d دقائق', + h: 'ساعة', + hh: '%d ساعات', + d: 'يوم', + dd: '%d أيام', + M: 'شهر', + MM: '%d أشهر', + y: 'سنة', + yy: '%d سنوات', + }, + week: { + dow: 6, // Saturday is the first day of the week. + doy: 12, // The week that contains Jan 12th is the first week of the year. + }, + }); - function Menu(props) { - (0, _classCallCheck3['default'])(this, Menu); + return arMa; - var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props)); + }))); + + +/***/ }), +/* 431 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Arabic (Saudi Arabia) [ar-sa] + //! author : Suhail Alkowaileet : https://github.com/xsoh - _initialiseProps.call(_this); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - _this.isRootMenu = true; + //! moment.js locale configuration - var selectedKeys = props.defaultSelectedKeys; - var openKeys = props.defaultOpenKeys; - if ('selectedKeys' in props) { - selectedKeys = props.selectedKeys || []; - } - if ('openKeys' in props) { - openKeys = props.openKeys || []; - } + var symbolMap = { + '1': '١', + '2': '٢', + '3': '٣', + '4': '٤', + '5': '٥', + '6': '٦', + '7': '٧', + '8': '٨', + '9': '٩', + '0': '٠', + }, + numberMap = { + '١': '1', + '٢': '2', + '٣': '3', + '٤': '4', + '٥': '5', + '٦': '6', + '٧': '7', + '٨': '8', + '٩': '9', + '٠': '0', + }; - _this.store = (0, _miniStore.create)({ - selectedKeys: selectedKeys, - openKeys: openKeys, - activeKey: { '0-menu-': (0, _SubPopupMenu.getActiveKey)(props, props.activeKey) } + var arSa = moment.defineLocale('ar-sa', { + months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( + '_' + ), + monthsShort: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( + '_' + ), + weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), + weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), + weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + meridiemParse: /ص|م/, + isPM: function (input) { + return 'م' === input; + }, + meridiem: function (hour, minute, isLower) { + if (hour < 12) { + return 'ص'; + } else { + return 'م'; + } + }, + calendar: { + sameDay: '[اليوم على الساعة] LT', + nextDay: '[غدا على الساعة] LT', + nextWeek: 'dddd [على الساعة] LT', + lastDay: '[أمس على الساعة] LT', + lastWeek: 'dddd [على الساعة] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'في %s', + past: 'منذ %s', + s: 'ثوان', + ss: '%d ثانية', + m: 'دقيقة', + mm: '%d دقائق', + h: 'ساعة', + hh: '%d ساعات', + d: 'يوم', + dd: '%d أيام', + M: 'شهر', + MM: '%d أشهر', + y: 'سنة', + yy: '%d سنوات', + }, + preparse: function (string) { + return string + .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) { + return numberMap[match]; + }) + .replace(/،/g, ','); + }, + postformat: function (string) { + return string + .replace(/\d/g, function (match) { + return symbolMap[match]; + }) + .replace(/,/g, '،'); + }, + week: { + dow: 0, // Sunday is the first day of the week. + doy: 6, // The week that contains Jan 6th is the first week of the year. + }, }); - return _this; - } - - Menu.prototype.componentDidMount = function componentDidMount() { - this.updateMiniStore(); - }; - - Menu.prototype.componentDidUpdate = function componentDidUpdate() { - this.updateMiniStore(); - }; - - // onKeyDown needs to be exposed as a instance method - // e.g., in rc-select, we need to navigate menu item while - // current active item is rc-select input box rather than the menu itself + return arSa; - Menu.prototype.updateMiniStore = function updateMiniStore() { - if ('selectedKeys' in this.props) { - this.store.setState({ - selectedKeys: this.props.selectedKeys || [] - }); - } - if ('openKeys' in this.props) { - this.store.setState({ - openKeys: this.props.openKeys || [] - }); - } - }; + }))); + + +/***/ }), +/* 432 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Arabic (Tunisia) [ar-tn] + //! author : Nader Toukabri : https://github.com/naderio - Menu.prototype.render = function render() { - var _this2 = this; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var props = (0, _objectWithoutProperties3['default'])(this.props, []); + //! moment.js locale configuration - props.className += ' ' + props.prefixCls + '-root'; - props = (0, _extends3['default'])({}, props, { - onClick: this.onClick, - onOpenChange: this.onOpenChange, - onDeselect: this.onDeselect, - onSelect: this.onSelect, - openTransitionName: this.getOpenTransitionName(), - parentMenu: this + var arTn = moment.defineLocale('ar-tn', { + months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( + '_' + ), + monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( + '_' + ), + weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), + weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), + weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[اليوم على الساعة] LT', + nextDay: '[غدا على الساعة] LT', + nextWeek: 'dddd [على الساعة] LT', + lastDay: '[أمس على الساعة] LT', + lastWeek: 'dddd [على الساعة] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'في %s', + past: 'منذ %s', + s: 'ثوان', + ss: '%d ثانية', + m: 'دقيقة', + mm: '%d دقائق', + h: 'ساعة', + hh: '%d ساعات', + d: 'يوم', + dd: '%d أيام', + M: 'شهر', + MM: '%d أشهر', + y: 'سنة', + yy: '%d سنوات', + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, }); - return _react2['default'].createElement( - _miniStore.Provider, - { store: this.store }, - _react2['default'].createElement( - _SubPopupMenu2['default'], - (0, _extends3['default'])({}, props, { ref: function ref(c) { - return _this2.innerMenu = c; - } }), - this.props.children - ) - ); - }; - - return Menu; - }(_react2['default'].Component); - - Menu.propTypes = { - defaultSelectedKeys: _propTypes2['default'].arrayOf(_propTypes2['default'].string), - defaultActiveFirst: _propTypes2['default'].bool, - selectedKeys: _propTypes2['default'].arrayOf(_propTypes2['default'].string), - defaultOpenKeys: _propTypes2['default'].arrayOf(_propTypes2['default'].string), - openKeys: _propTypes2['default'].arrayOf(_propTypes2['default'].string), - mode: _propTypes2['default'].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']), - getPopupContainer: _propTypes2['default'].func, - onClick: _propTypes2['default'].func, - onSelect: _propTypes2['default'].func, - onDeselect: _propTypes2['default'].func, - onDestroy: _propTypes2['default'].func, - openTransitionName: _propTypes2['default'].string, - openAnimation: _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].object]), - subMenuOpenDelay: _propTypes2['default'].number, - subMenuCloseDelay: _propTypes2['default'].number, - forceSubMenuRender: _propTypes2['default'].bool, - triggerSubMenuAction: _propTypes2['default'].string, - level: _propTypes2['default'].number, - selectable: _propTypes2['default'].bool, - multiple: _propTypes2['default'].bool, - children: _propTypes2['default'].any, - className: _propTypes2['default'].string, - style: _propTypes2['default'].object, - activeKey: _propTypes2['default'].string, - prefixCls: _propTypes2['default'].string, - builtinPlacements: _propTypes2['default'].object, - itemIcon: _propTypes2['default'].oneOfType([_propTypes2['default'].func, _propTypes2['default'].node]), - expandIcon: _propTypes2['default'].oneOfType([_propTypes2['default'].func, _propTypes2['default'].node]), - overflowedIndicator: _propTypes2['default'].node - }; - Menu.defaultProps = { - selectable: true, - onClick: _util.noop, - onSelect: _util.noop, - onOpenChange: _util.noop, - onDeselect: _util.noop, - defaultSelectedKeys: [], - defaultOpenKeys: [], - subMenuOpenDelay: 0.1, - subMenuCloseDelay: 0.1, - triggerSubMenuAction: 'hover', - prefixCls: 'rc-menu', - className: '', - mode: 'vertical', - style: {}, - builtinPlacements: {}, - overflowedIndicator: _react2['default'].createElement( - 'span', - null, - '\xB7\xB7\xB7' - ) - }; - var _initialiseProps = function _initialiseProps() { - var _this3 = this; + return arTn; - this.onSelect = function (selectInfo) { - var props = _this3.props; - if (props.selectable) { - // root menu - var selectedKeys = _this3.store.getState().selectedKeys; - var selectedKey = selectInfo.key; - if (props.multiple) { - selectedKeys = selectedKeys.concat([selectedKey]); - } else { - selectedKeys = [selectedKey]; - } - if (!('selectedKeys' in props)) { - _this3.store.setState({ - selectedKeys: selectedKeys - }); - } - props.onSelect((0, _extends3['default'])({}, selectInfo, { - selectedKeys: selectedKeys - })); - } - }; + }))); + + +/***/ }), +/* 433 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Azerbaijani [az] + //! author : topchiyev : https://github.com/topchiyev - this.onClick = function (e) { - _this3.props.onClick(e); - }; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - this.onKeyDown = function (e, callback) { - _this3.innerMenu.getWrappedInstance().onKeyDown(e, callback); - }; + //! moment.js locale configuration - this.onOpenChange = function (event) { - var props = _this3.props; - var openKeys = _this3.store.getState().openKeys.concat(); - var changed = false; - var processSingle = function processSingle(e) { - var oneChanged = false; - if (e.open) { - oneChanged = openKeys.indexOf(e.key) === -1; - if (oneChanged) { - openKeys.push(e.key); - } - } else { - var index = openKeys.indexOf(e.key); - oneChanged = index !== -1; - if (oneChanged) { - openKeys.splice(index, 1); - } - } - changed = changed || oneChanged; + var suffixes = { + 1: '-inci', + 5: '-inci', + 8: '-inci', + 70: '-inci', + 80: '-inci', + 2: '-nci', + 7: '-nci', + 20: '-nci', + 50: '-nci', + 3: '-üncü', + 4: '-üncü', + 100: '-üncü', + 6: '-ncı', + 9: '-uncu', + 10: '-uncu', + 30: '-uncu', + 60: '-ıncı', + 90: '-ıncı', }; - if (Array.isArray(event)) { - // batch change call - event.forEach(processSingle); - } else { - processSingle(event); - } - if (changed) { - if (!('openKeys' in _this3.props)) { - _this3.store.setState({ openKeys: openKeys }); - } - props.onOpenChange(openKeys); - } - }; - this.onDeselect = function (selectInfo) { - var props = _this3.props; - if (props.selectable) { - var selectedKeys = _this3.store.getState().selectedKeys.concat(); - var selectedKey = selectInfo.key; - var index = selectedKeys.indexOf(selectedKey); - if (index !== -1) { - selectedKeys.splice(index, 1); - } - if (!('selectedKeys' in props)) { - _this3.store.setState({ - selectedKeys: selectedKeys - }); - } - props.onDeselect((0, _extends3['default'])({}, selectInfo, { - selectedKeys: selectedKeys - })); - } - }; + var az = moment.defineLocale('az', { + months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split( + '_' + ), + monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'), + weekdays: 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split( + '_' + ), + weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'), + weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[bugün saat] LT', + nextDay: '[sabah saat] LT', + nextWeek: '[gələn həftə] dddd [saat] LT', + lastDay: '[dünən] LT', + lastWeek: '[keçən həftə] dddd [saat] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s sonra', + past: '%s əvvəl', + s: 'birneçə saniyə', + ss: '%d saniyə', + m: 'bir dəqiqə', + mm: '%d dəqiqə', + h: 'bir saat', + hh: '%d saat', + d: 'bir gün', + dd: '%d gün', + M: 'bir ay', + MM: '%d ay', + y: 'bir il', + yy: '%d il', + }, + meridiemParse: /gecə|səhər|gündüz|axşam/, + isPM: function (input) { + return /^(gündüz|axşam)$/.test(input); + }, + meridiem: function (hour, minute, isLower) { + if (hour < 4) { + return 'gecə'; + } else if (hour < 12) { + return 'səhər'; + } else if (hour < 17) { + return 'gündüz'; + } else { + return 'axşam'; + } + }, + dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/, + ordinal: function (number) { + if (number === 0) { + // special case for zero + return number + '-ıncı'; + } + var a = number % 10, + b = (number % 100) - a, + c = number >= 100 ? 100 : null; + return number + (suffixes[a] || suffixes[b] || suffixes[c]); + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, + }); - this.getOpenTransitionName = function () { - var props = _this3.props; - var transitionName = props.openTransitionName; - var animationName = props.openAnimation; - if (!transitionName && typeof animationName === 'string') { - transitionName = props.prefixCls + '-open-' + animationName; - } - return transitionName; - }; - }; + return az; - exports['default'] = Menu; - module.exports = exports['default']; + }))); + /***/ }), -/* 581 */ +/* 434 */ /***/ (function(module, exports, __webpack_require__) { - 'use strict'; - - exports.__esModule = true; - exports.SubPopupMenu = undefined; - - var _objectWithoutProperties2 = __webpack_require__(379); - - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); - - var _classCallCheck2 = __webpack_require__(318); - - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - - var _possibleConstructorReturn2 = __webpack_require__(319); - - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - - var _inherits2 = __webpack_require__(350); - - var _inherits3 = _interopRequireDefault(_inherits2); - - var _extends4 = __webpack_require__(316); - - var _extends5 = _interopRequireDefault(_extends4); - - exports.getActiveKey = getActiveKey; - exports.saveRef = saveRef; - - var _react = __webpack_require__(1); + //! moment.js locale configuration + //! locale : Belarusian [be] + //! author : Dmitry Demidov : https://github.com/demidov91 + //! author: Praleska: http://praleska.pro/ + //! Author : Menelion Elensúle : https://github.com/Oire - var _react2 = _interopRequireDefault(_react); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _propTypes = __webpack_require__(6); + //! moment.js locale configuration - var _propTypes2 = _interopRequireDefault(_propTypes); + function plural(word, num) { + var forms = word.split('_'); + return num % 10 === 1 && num % 100 !== 11 + ? forms[0] + : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) + ? forms[1] + : forms[2]; + } + function relativeTimeWithPlural(number, withoutSuffix, key) { + var format = { + ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд', + mm: withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін', + hh: withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін', + dd: 'дзень_дні_дзён', + MM: 'месяц_месяцы_месяцаў', + yy: 'год_гады_гадоў', + }; + if (key === 'm') { + return withoutSuffix ? 'хвіліна' : 'хвіліну'; + } else if (key === 'h') { + return withoutSuffix ? 'гадзіна' : 'гадзіну'; + } else { + return number + ' ' + plural(format[key], +number); + } + } - var _miniStore = __webpack_require__(303); + var be = moment.defineLocale('be', { + months: { + format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split( + '_' + ), + standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split( + '_' + ), + }, + monthsShort: 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split( + '_' + ), + weekdays: { + format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split( + '_' + ), + standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split( + '_' + ), + isFormat: /\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/, + }, + weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'), + weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY г.', + LLL: 'D MMMM YYYY г., HH:mm', + LLLL: 'dddd, D MMMM YYYY г., HH:mm', + }, + calendar: { + sameDay: '[Сёння ў] LT', + nextDay: '[Заўтра ў] LT', + lastDay: '[Учора ў] LT', + nextWeek: function () { + return '[У] dddd [ў] LT'; + }, + lastWeek: function () { + switch (this.day()) { + case 0: + case 3: + case 5: + case 6: + return '[У мінулую] dddd [ў] LT'; + case 1: + case 2: + case 4: + return '[У мінулы] dddd [ў] LT'; + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'праз %s', + past: '%s таму', + s: 'некалькі секунд', + m: relativeTimeWithPlural, + mm: relativeTimeWithPlural, + h: relativeTimeWithPlural, + hh: relativeTimeWithPlural, + d: 'дзень', + dd: relativeTimeWithPlural, + M: 'месяц', + MM: relativeTimeWithPlural, + y: 'год', + yy: relativeTimeWithPlural, + }, + meridiemParse: /ночы|раніцы|дня|вечара/, + isPM: function (input) { + return /^(дня|вечара)$/.test(input); + }, + meridiem: function (hour, minute, isLower) { + if (hour < 4) { + return 'ночы'; + } else if (hour < 12) { + return 'раніцы'; + } else if (hour < 17) { + return 'дня'; + } else { + return 'вечара'; + } + }, + dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/, + ordinal: function (number, period) { + switch (period) { + case 'M': + case 'd': + case 'DDD': + case 'w': + case 'W': + return (number % 10 === 2 || number % 10 === 3) && + number % 100 !== 12 && + number % 100 !== 13 + ? number + '-і' + : number + '-ы'; + case 'D': + return number + '-га'; + default: + return number; + } + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, + }); - var _KeyCode = __webpack_require__(400); + return be; - var _KeyCode2 = _interopRequireDefault(_KeyCode); + }))); + + +/***/ }), +/* 435 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Bulgarian [bg] + //! author : Krasen Borisov : https://github.com/kraz - var _createChainedFunction = __webpack_require__(310); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _createChainedFunction2 = _interopRequireDefault(_createChainedFunction); + //! moment.js locale configuration - var _classnames = __webpack_require__(5); + var bg = moment.defineLocale('bg', { + months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split( + '_' + ), + monthsShort: 'яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'), + weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split( + '_' + ), + weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'), + weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'), + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'D.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY H:mm', + LLLL: 'dddd, D MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[Днес в] LT', + nextDay: '[Утре в] LT', + nextWeek: 'dddd [в] LT', + lastDay: '[Вчера в] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + case 3: + case 6: + return '[Миналата] dddd [в] LT'; + case 1: + case 2: + case 4: + case 5: + return '[Миналия] dddd [в] LT'; + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'след %s', + past: 'преди %s', + s: 'няколко секунди', + ss: '%d секунди', + m: 'минута', + mm: '%d минути', + h: 'час', + hh: '%d часа', + d: 'ден', + dd: '%d дена', + M: 'месец', + MM: '%d месеца', + y: 'година', + yy: '%d години', + }, + dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/, + ordinal: function (number) { + var lastDigit = number % 10, + last2Digits = number % 100; + if (number === 0) { + return number + '-ев'; + } else if (last2Digits === 0) { + return number + '-ен'; + } else if (last2Digits > 10 && last2Digits < 20) { + return number + '-ти'; + } else if (lastDigit === 1) { + return number + '-ви'; + } else if (lastDigit === 2) { + return number + '-ри'; + } else if (lastDigit === 7 || lastDigit === 8) { + return number + '-ми'; + } else { + return number + '-ти'; + } + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, + }); - var _classnames2 = _interopRequireDefault(_classnames); + return bg; - var _util = __webpack_require__(582); + }))); + + +/***/ }), +/* 436 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Bambara [bm] + //! author : Estelle Comment : https://github.com/estellecomment - var _DOMWrap = __webpack_require__(583); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _DOMWrap2 = _interopRequireDefault(_DOMWrap); + //! moment.js locale configuration - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + var bm = moment.defineLocale('bm', { + months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split( + '_' + ), + monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'), + weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'), + weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'), + weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'MMMM [tile] D [san] YYYY', + LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm', + LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm', + }, + calendar: { + sameDay: '[Bi lɛrɛ] LT', + nextDay: '[Sini lɛrɛ] LT', + nextWeek: 'dddd [don lɛrɛ] LT', + lastDay: '[Kunu lɛrɛ] LT', + lastWeek: 'dddd [tɛmɛnen lɛrɛ] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s kɔnɔ', + past: 'a bɛ %s bɔ', + s: 'sanga dama dama', + ss: 'sekondi %d', + m: 'miniti kelen', + mm: 'miniti %d', + h: 'lɛrɛ kelen', + hh: 'lɛrɛ %d', + d: 'tile kelen', + dd: 'tile %d', + M: 'kalo kelen', + MM: 'kalo %d', + y: 'san kelen', + yy: 'san %d', + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - function allDisabled(arr) { - if (!arr.length) { - return true; - } - return arr.every(function (c) { - return !!c.props.disabled; - }); - } + return bm; - function updateActiveKey(store, menuId, activeKey) { - var _extends2; + }))); + + +/***/ }), +/* 437 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Bengali [bn] + //! author : Kaushik Gandhi : https://github.com/kaushikgandhi - var state = store.getState(); - store.setState({ - activeKey: (0, _extends5['default'])({}, state.activeKey, (_extends2 = {}, _extends2[menuId] = activeKey, _extends2)) - }); - } + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function getEventKey(props) { - // when eventKey not available ,it's menu and return menu id '0-menu-' - return props.eventKey || '0-menu-'; - } + //! moment.js locale configuration - function getActiveKey(props, originalActiveKey) { - var activeKey = originalActiveKey; - var children = props.children, - eventKey = props.eventKey; + var symbolMap = { + '1': '১', + '2': '২', + '3': '৩', + '4': '৪', + '5': '৫', + '6': '৬', + '7': '৭', + '8': '৮', + '9': '৯', + '0': '০', + }, + numberMap = { + '১': '1', + '২': '2', + '৩': '3', + '৪': '4', + '৫': '5', + '৬': '6', + '৭': '7', + '৮': '8', + '৯': '9', + '০': '0', + }; - if (activeKey) { - var found = void 0; - (0, _util.loopMenuItem)(children, function (c, i) { - if (c && !c.props.disabled && activeKey === (0, _util.getKeyFromChildrenIndex)(c, eventKey, i)) { - found = true; - } - }); - if (found) { - return activeKey; - } - } - activeKey = null; - if (props.defaultActiveFirst) { - (0, _util.loopMenuItem)(children, function (c, i) { - if (!activeKey && c && !c.props.disabled) { - activeKey = (0, _util.getKeyFromChildrenIndex)(c, eventKey, i); - } + var bn = moment.defineLocale('bn', { + months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split( + '_' + ), + monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split( + '_' + ), + weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split( + '_' + ), + weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'), + weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'), + longDateFormat: { + LT: 'A h:mm সময়', + LTS: 'A h:mm:ss সময়', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm সময়', + LLLL: 'dddd, D MMMM YYYY, A h:mm সময়', + }, + calendar: { + sameDay: '[আজ] LT', + nextDay: '[আগামীকাল] LT', + nextWeek: 'dddd, LT', + lastDay: '[গতকাল] LT', + lastWeek: '[গত] dddd, LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s পরে', + past: '%s আগে', + s: 'কয়েক সেকেন্ড', + ss: '%d সেকেন্ড', + m: 'এক মিনিট', + mm: '%d মিনিট', + h: 'এক ঘন্টা', + hh: '%d ঘন্টা', + d: 'এক দিন', + dd: '%d দিন', + M: 'এক মাস', + MM: '%d মাস', + y: 'এক বছর', + yy: '%d বছর', + }, + preparse: function (string) { + return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) { + return numberMap[match]; + }); + }, + postformat: function (string) { + return string.replace(/\d/g, function (match) { + return symbolMap[match]; + }); + }, + meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if ( + (meridiem === 'রাত' && hour >= 4) || + (meridiem === 'দুপুর' && hour < 5) || + meridiem === 'বিকাল' + ) { + return hour + 12; + } else { + return hour; + } + }, + meridiem: function (hour, minute, isLower) { + if (hour < 4) { + return 'রাত'; + } else if (hour < 10) { + return 'সকাল'; + } else if (hour < 17) { + return 'দুপুর'; + } else if (hour < 20) { + return 'বিকাল'; + } else { + return 'রাত'; + } + }, + week: { + dow: 0, // Sunday is the first day of the week. + doy: 6, // The week that contains Jan 6th is the first week of the year. + }, }); - return activeKey; - } - return activeKey; - } - - function saveRef(c) { - if (c) { - var index = this.instanceArray.indexOf(c); - if (index !== -1) { - // update component if it's already inside instanceArray - this.instanceArray[index] = c; - } else { - // add component if it's not in instanceArray yet; - this.instanceArray.push(c); - } - } - } - var SubPopupMenu = exports.SubPopupMenu = function (_React$Component) { - (0, _inherits3['default'])(SubPopupMenu, _React$Component); + return bn; - function SubPopupMenu(props) { - var _extends3; + }))); + + +/***/ }), +/* 438 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Tibetan [bo] + //! author : Thupten N. Chakrishar : https://github.com/vajradog - (0, _classCallCheck3['default'])(this, SubPopupMenu); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props)); + //! moment.js locale configuration - _initialiseProps.call(_this); + var symbolMap = { + '1': '༡', + '2': '༢', + '3': '༣', + '4': '༤', + '5': '༥', + '6': '༦', + '7': '༧', + '8': '༨', + '9': '༩', + '0': '༠', + }, + numberMap = { + '༡': '1', + '༢': '2', + '༣': '3', + '༤': '4', + '༥': '5', + '༦': '6', + '༧': '7', + '༨': '8', + '༩': '9', + '༠': '0', + }; - props.store.setState({ - activeKey: (0, _extends5['default'])({}, props.store.getState().activeKey, (_extends3 = {}, _extends3[props.eventKey] = getActiveKey(props, props.activeKey), _extends3)) + var bo = moment.defineLocale('bo', { + months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split( + '_' + ), + monthsShort: 'ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12'.split( + '_' + ), + monthsShortRegex: /^(ཟླ་\d{1,2})/, + monthsParseExact: true, + weekdays: 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split( + '_' + ), + weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split( + '_' + ), + weekdaysMin: 'ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན'.split('_'), + longDateFormat: { + LT: 'A h:mm', + LTS: 'A h:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm', + LLLL: 'dddd, D MMMM YYYY, A h:mm', + }, + calendar: { + sameDay: '[དི་རིང] LT', + nextDay: '[སང་ཉིན] LT', + nextWeek: '[བདུན་ཕྲག་རྗེས་མ], LT', + lastDay: '[ཁ་སང] LT', + lastWeek: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s ལ་', + past: '%s སྔན་ལ', + s: 'ལམ་སང', + ss: '%d སྐར་ཆ།', + m: 'སྐར་མ་གཅིག', + mm: '%d སྐར་མ', + h: 'ཆུ་ཚོད་གཅིག', + hh: '%d ཆུ་ཚོད', + d: 'ཉིན་གཅིག', + dd: '%d ཉིན་', + M: 'ཟླ་བ་གཅིག', + MM: '%d ཟླ་བ', + y: 'ལོ་གཅིག', + yy: '%d ལོ', + }, + preparse: function (string) { + return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) { + return numberMap[match]; + }); + }, + postformat: function (string) { + return string.replace(/\d/g, function (match) { + return symbolMap[match]; + }); + }, + meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if ( + (meridiem === 'མཚན་མོ' && hour >= 4) || + (meridiem === 'ཉིན་གུང' && hour < 5) || + meridiem === 'དགོང་དག' + ) { + return hour + 12; + } else { + return hour; + } + }, + meridiem: function (hour, minute, isLower) { + if (hour < 4) { + return 'མཚན་མོ'; + } else if (hour < 10) { + return 'ཞོགས་ཀས'; + } else if (hour < 17) { + return 'ཉིན་གུང'; + } else if (hour < 20) { + return 'དགོང་དག'; + } else { + return 'མཚན་མོ'; + } + }, + week: { + dow: 0, // Sunday is the first day of the week. + doy: 6, // The week that contains Jan 6th is the first week of the year. + }, }); - _this.instanceArray = []; - return _this; - } - - SubPopupMenu.prototype.componentDidMount = function componentDidMount() { - // invoke customized ref to expose component to mixin - if (this.props.manualRef) { - this.props.manualRef(this); - } - }; - - SubPopupMenu.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) { - return this.props.visible || nextProps.visible; - }; - - SubPopupMenu.prototype.componentDidUpdate = function componentDidUpdate() { - var props = this.props; - var originalActiveKey = 'activeKey' in props ? props.activeKey : props.store.getState().activeKey[getEventKey(props)]; - var activeKey = getActiveKey(props, originalActiveKey); - if (activeKey !== originalActiveKey) { - updateActiveKey(props.store, getEventKey(props), activeKey); - } - }; - - // all keyboard events callbacks run from here at first + return bo; + }))); + + +/***/ }), +/* 439 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Breton [br] + //! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou - SubPopupMenu.prototype.render = function render() { - var _this2 = this; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var props = (0, _objectWithoutProperties3['default'])(this.props, []); + //! moment.js locale configuration - this.instanceArray = []; - var className = (0, _classnames2['default'])(props.prefixCls, props.className, props.prefixCls + '-' + props.mode); - var domProps = { - className: className, - // role could be 'select' and by default set to menu - role: props.role || 'menu' - }; - if (props.id) { - domProps.id = props.id; + function relativeTimeWithMutation(number, withoutSuffix, key) { + var format = { + mm: 'munutenn', + MM: 'miz', + dd: 'devezh', + }; + return number + ' ' + mutation(format[key], number); } - if (props.focusable) { - domProps.tabIndex = '0'; - domProps.onKeyDown = this.onKeyDown; + function specialMutationForYears(number) { + switch (lastNumber(number)) { + case 1: + case 3: + case 4: + case 5: + case 9: + return number + ' bloaz'; + default: + return number + ' vloaz'; + } } - var prefixCls = props.prefixCls, - eventKey = props.eventKey, - visible = props.visible, - level = props.level, - mode = props.mode, - overflowedIndicator = props.overflowedIndicator, - theme = props.theme; - - _util.menuAllProps.forEach(function (key) { - return delete props[key]; - }); - - // Otherwise, the propagated click event will trigger another onClick - delete props.onClick; - - return ( - // ESLint is not smart enough to know that the type of `children` was checked. - /* eslint-disable */ - _react2['default'].createElement( - _DOMWrap2['default'], - (0, _extends5['default'])({}, props, { - prefixCls: prefixCls, - mode: mode, - tag: 'ul', - level: level, - theme: theme, - hiddenClassName: prefixCls + '-hidden', - visible: visible, - overflowedIndicator: overflowedIndicator - }, domProps), - _react2['default'].Children.map(props.children, function (c, i) { - return _this2.renderMenuItem(c, i, eventKey || '0-menu-'); - }) - ) - /*eslint-enable */ - - ); - }; - - return SubPopupMenu; - }(_react2['default'].Component); - - SubPopupMenu.propTypes = { - onSelect: _propTypes2['default'].func, - onClick: _propTypes2['default'].func, - onDeselect: _propTypes2['default'].func, - onOpenChange: _propTypes2['default'].func, - onDestroy: _propTypes2['default'].func, - openTransitionName: _propTypes2['default'].string, - openAnimation: _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].object]), - openKeys: _propTypes2['default'].arrayOf(_propTypes2['default'].string), - visible: _propTypes2['default'].bool, - children: _propTypes2['default'].any, - parentMenu: _propTypes2['default'].object, - eventKey: _propTypes2['default'].string, - store: _propTypes2['default'].shape({ - getState: _propTypes2['default'].func, - setState: _propTypes2['default'].func - }), - - // adding in refactor - focusable: _propTypes2['default'].bool, - multiple: _propTypes2['default'].bool, - style: _propTypes2['default'].object, - defaultActiveFirst: _propTypes2['default'].bool, - activeKey: _propTypes2['default'].string, - selectedKeys: _propTypes2['default'].arrayOf(_propTypes2['default'].string), - defaultSelectedKeys: _propTypes2['default'].arrayOf(_propTypes2['default'].string), - defaultOpenKeys: _propTypes2['default'].arrayOf(_propTypes2['default'].string), - level: _propTypes2['default'].number, - mode: _propTypes2['default'].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']), - triggerSubMenuAction: _propTypes2['default'].oneOf(['click', 'hover']), - inlineIndent: _propTypes2['default'].oneOfType([_propTypes2['default'].number, _propTypes2['default'].string]), - manualRef: _propTypes2['default'].func, - itemIcon: _propTypes2['default'].oneOfType([_propTypes2['default'].func, _propTypes2['default'].node]), - expandIcon: _propTypes2['default'].oneOfType([_propTypes2['default'].func, _propTypes2['default'].node]) - }; - SubPopupMenu.defaultProps = { - prefixCls: 'rc-menu', - className: '', - mode: 'vertical', - level: 1, - inlineIndent: 24, - visible: true, - focusable: true, - style: {}, - manualRef: _util.noop - }; - - var _initialiseProps = function _initialiseProps() { - var _this3 = this; - - this.onKeyDown = function (e, callback) { - var keyCode = e.keyCode; - var handled = void 0; - _this3.getFlatInstanceArray().forEach(function (obj) { - if (obj && obj.props.active && obj.onKeyDown) { - handled = obj.onKeyDown(e); - } - }); - if (handled) { - return 1; + function lastNumber(number) { + if (number > 9) { + return lastNumber(number % 10); + } + return number; } - var activeItem = null; - if (keyCode === _KeyCode2['default'].UP || keyCode === _KeyCode2['default'].DOWN) { - activeItem = _this3.step(keyCode === _KeyCode2['default'].UP ? -1 : 1); + function mutation(text, number) { + if (number === 2) { + return softMutation(text); + } + return text; } - if (activeItem) { - e.preventDefault(); - updateActiveKey(_this3.props.store, getEventKey(_this3.props), activeItem.props.eventKey); - - if (typeof callback === 'function') { - callback(activeItem); - } - - return 1; + function softMutation(text) { + var mutationTable = { + m: 'v', + b: 'v', + d: 'z', + }; + if (mutationTable[text.charAt(0)] === undefined) { + return text; + } + return mutationTable[text.charAt(0)] + text.substring(1); } - }; - - this.onItemHover = function (e) { - var key = e.key, - hover = e.hover; - updateActiveKey(_this3.props.store, getEventKey(_this3.props), hover ? key : null); - }; - - this.onDeselect = function (selectInfo) { - _this3.props.onDeselect(selectInfo); - }; - - this.onSelect = function (selectInfo) { - _this3.props.onSelect(selectInfo); - }; - - this.onClick = function (e) { - _this3.props.onClick(e); - }; + var monthsParse = [ + /^gen/i, + /^c[ʼ\']hwe/i, + /^meu/i, + /^ebr/i, + /^mae/i, + /^(mez|eve)/i, + /^gou/i, + /^eos/i, + /^gwe/i, + /^her/i, + /^du/i, + /^ker/i, + ], + monthsRegex = /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i, + monthsStrictRegex = /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i, + monthsShortStrictRegex = /^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i, + fullWeekdaysParse = [ + /^sul/i, + /^lun/i, + /^meurzh/i, + /^merc[ʼ\']her/i, + /^yaou/i, + /^gwener/i, + /^sadorn/i, + ], + shortWeekdaysParse = [ + /^Sul/i, + /^Lun/i, + /^Meu/i, + /^Mer/i, + /^Yao/i, + /^Gwe/i, + /^Sad/i, + ], + minWeekdaysParse = [ + /^Su/i, + /^Lu/i, + /^Me([^r]|$)/i, + /^Mer/i, + /^Ya/i, + /^Gw/i, + /^Sa/i, + ]; - this.onOpenChange = function (e) { - _this3.props.onOpenChange(e); - }; + var br = moment.defineLocale('br', { + months: 'Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split( + '_' + ), + monthsShort: 'Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'), + weekdays: 'Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn'.split('_'), + weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'), + weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'), + weekdaysParse: minWeekdaysParse, + fullWeekdaysParse: fullWeekdaysParse, + shortWeekdaysParse: shortWeekdaysParse, + minWeekdaysParse: minWeekdaysParse, - this.onDestroy = function (key) { - /* istanbul ignore next */ - _this3.props.onDestroy(key); - }; + monthsRegex: monthsRegex, + monthsShortRegex: monthsRegex, + monthsStrictRegex: monthsStrictRegex, + monthsShortStrictRegex: monthsShortStrictRegex, + monthsParse: monthsParse, + longMonthsParse: monthsParse, + shortMonthsParse: monthsParse, - this.getFlatInstanceArray = function () { - return _this3.instanceArray; - }; + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D [a viz] MMMM YYYY', + LLL: 'D [a viz] MMMM YYYY HH:mm', + LLLL: 'dddd, D [a viz] MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Hiziv da] LT', + nextDay: '[Warcʼhoazh da] LT', + nextWeek: 'dddd [da] LT', + lastDay: '[Decʼh da] LT', + lastWeek: 'dddd [paset da] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'a-benn %s', + past: '%s ʼzo', + s: 'un nebeud segondennoù', + ss: '%d eilenn', + m: 'ur vunutenn', + mm: relativeTimeWithMutation, + h: 'un eur', + hh: '%d eur', + d: 'un devezh', + dd: relativeTimeWithMutation, + M: 'ur miz', + MM: relativeTimeWithMutation, + y: 'ur bloaz', + yy: specialMutationForYears, + }, + dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/, + ordinal: function (number) { + var output = number === 1 ? 'añ' : 'vet'; + return number + output; + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + meridiemParse: /a.m.|g.m./, // goude merenn | a-raok merenn + isPM: function (token) { + return token === 'g.m.'; + }, + meridiem: function (hour, minute, isLower) { + return hour < 12 ? 'a.m.' : 'g.m.'; + }, + }); - this.getOpenTransitionName = function () { - return _this3.props.openTransitionName; - }; + return br; - this.step = function (direction) { - var children = _this3.getFlatInstanceArray(); - var activeKey = _this3.props.store.getState().activeKey[getEventKey(_this3.props)]; - var len = children.length; - if (!len) { - return null; - } - if (direction < 0) { - children = children.concat().reverse(); - } - // find current activeIndex - var activeIndex = -1; - children.every(function (c, ci) { - if (c && c.props.eventKey === activeKey) { - activeIndex = ci; - return false; - } - return true; - }); - if (!_this3.props.defaultActiveFirst && activeIndex !== -1 && allDisabled(children.slice(activeIndex, len - 1))) { - return undefined; - } - var start = (activeIndex + 1) % len; - var i = start; + }))); + + +/***/ }), +/* 440 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Bosnian [bs] + //! author : Nedim Cholich : https://github.com/frontyard + //! based on (hr) translation by Bojan Marković - do { - var child = children[i]; - if (!child || child.props.disabled) { - i = (i + 1) % len; - } else { - return child; - } - } while (i !== start); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - return null; - }; + //! moment.js locale configuration - this.renderCommonMenuItem = function (child, i, extraProps) { - var state = _this3.props.store.getState(); - var props = _this3.props; - var key = (0, _util.getKeyFromChildrenIndex)(child, props.eventKey, i); - var childProps = child.props; - var isActive = key === state.activeKey; - var newChildProps = (0, _extends5['default'])({ - mode: childProps.mode || props.mode, - level: props.level, - inlineIndent: props.inlineIndent, - renderMenuItem: _this3.renderMenuItem, - rootPrefixCls: props.prefixCls, - index: i, - parentMenu: props.parentMenu, - // customized ref function, need to be invoked manually in child's componentDidMount - manualRef: childProps.disabled ? undefined : (0, _createChainedFunction2['default'])(child.ref, saveRef.bind(_this3)), - eventKey: key, - active: !childProps.disabled && isActive, - multiple: props.multiple, - onClick: function onClick(e) { - (childProps.onClick || _util.noop)(e); - _this3.onClick(e); - }, - onItemHover: _this3.onItemHover, - openTransitionName: _this3.getOpenTransitionName(), - openAnimation: props.openAnimation, - subMenuOpenDelay: props.subMenuOpenDelay, - subMenuCloseDelay: props.subMenuCloseDelay, - forceSubMenuRender: props.forceSubMenuRender, - onOpenChange: _this3.onOpenChange, - onDeselect: _this3.onDeselect, - onSelect: _this3.onSelect, - builtinPlacements: props.builtinPlacements, - itemIcon: childProps.itemIcon || _this3.props.itemIcon, - expandIcon: childProps.expandIcon || _this3.props.expandIcon - }, extraProps); - if (props.mode === 'inline') { - newChildProps.triggerSubMenuAction = 'click'; + function translate(number, withoutSuffix, key) { + var result = number + ' '; + switch (key) { + case 'ss': + if (number === 1) { + result += 'sekunda'; + } else if (number === 2 || number === 3 || number === 4) { + result += 'sekunde'; + } else { + result += 'sekundi'; + } + return result; + case 'm': + return withoutSuffix ? 'jedna minuta' : 'jedne minute'; + case 'mm': + if (number === 1) { + result += 'minuta'; + } else if (number === 2 || number === 3 || number === 4) { + result += 'minute'; + } else { + result += 'minuta'; + } + return result; + case 'h': + return withoutSuffix ? 'jedan sat' : 'jednog sata'; + case 'hh': + if (number === 1) { + result += 'sat'; + } else if (number === 2 || number === 3 || number === 4) { + result += 'sata'; + } else { + result += 'sati'; + } + return result; + case 'dd': + if (number === 1) { + result += 'dan'; + } else { + result += 'dana'; + } + return result; + case 'MM': + if (number === 1) { + result += 'mjesec'; + } else if (number === 2 || number === 3 || number === 4) { + result += 'mjeseca'; + } else { + result += 'mjeseci'; + } + return result; + case 'yy': + if (number === 1) { + result += 'godina'; + } else if (number === 2 || number === 3 || number === 4) { + result += 'godine'; + } else { + result += 'godina'; + } + return result; + } } - return _react2['default'].cloneElement(child, newChildProps); - }; - this.renderMenuItem = function (c, i, subMenuKey) { - /* istanbul ignore if */ - if (!c) { - return null; - } - var state = _this3.props.store.getState(); - var extraProps = { - openKeys: state.openKeys, - selectedKeys: state.selectedKeys, - triggerSubMenuAction: _this3.props.triggerSubMenuAction, - subMenuKey: subMenuKey - }; - return _this3.renderCommonMenuItem(c, i, extraProps); - }; - }; + var bs = moment.defineLocale('bs', { + months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split( + '_' + ), + monthsShort: 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split( + '_' + ), + weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), + weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd, D. MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[danas u] LT', + nextDay: '[sutra u] LT', + nextWeek: function () { + switch (this.day()) { + case 0: + return '[u] [nedjelju] [u] LT'; + case 3: + return '[u] [srijedu] [u] LT'; + case 6: + return '[u] [subotu] [u] LT'; + case 1: + case 2: + case 4: + case 5: + return '[u] dddd [u] LT'; + } + }, + lastDay: '[jučer u] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + case 3: + return '[prošlu] dddd [u] LT'; + case 6: + return '[prošle] [subote] [u] LT'; + case 1: + case 2: + case 4: + case 5: + return '[prošli] dddd [u] LT'; + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'za %s', + past: 'prije %s', + s: 'par sekundi', + ss: translate, + m: translate, + mm: translate, + h: translate, + hh: translate, + d: 'dan', + dd: translate, + M: 'mjesec', + MM: translate, + y: 'godinu', + yy: translate, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, + }); - var connected = (0, _miniStore.connect)()(SubPopupMenu); + return bs; - exports['default'] = connected; + }))); + /***/ }), -/* 582 */ +/* 441 */ /***/ (function(module, exports, __webpack_require__) { - 'use strict'; + //! moment.js locale configuration + //! locale : Catalan [ca] + //! author : Juan G. Hurtado : https://github.com/juanghurtado - exports.__esModule = true; - exports.setStyle = exports.getWidth = exports.menuAllProps = undefined; - exports.noop = noop; - exports.getKeyFromChildrenIndex = getKeyFromChildrenIndex; - exports.getMenuIdFromSubMenuEventKey = getMenuIdFromSubMenuEventKey; - exports.loopMenuItem = loopMenuItem; - exports.loopMenuItemRecursively = loopMenuItemRecursively; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _react = __webpack_require__(1); + //! moment.js locale configuration - var _react2 = _interopRequireDefault(_react); + var ca = moment.defineLocale('ca', { + months: { + standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split( + '_' + ), + format: "de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split( + '_' + ), + isFormat: /D[oD]?(\s)+MMMM/, + }, + monthsShort: 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split( + '_' + ), + weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'), + weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM [de] YYYY', + ll: 'D MMM YYYY', + LLL: 'D MMMM [de] YYYY [a les] H:mm', + lll: 'D MMM YYYY, H:mm', + LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm', + llll: 'ddd D MMM YYYY, H:mm', + }, + calendar: { + sameDay: function () { + return '[avui a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT'; + }, + nextDay: function () { + return '[demà a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT'; + }, + nextWeek: function () { + return 'dddd [a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT'; + }, + lastDay: function () { + return '[ahir a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT'; + }, + lastWeek: function () { + return ( + '[el] dddd [passat a ' + + (this.hours() !== 1 ? 'les' : 'la') + + '] LT' + ); + }, + sameElse: 'L', + }, + relativeTime: { + future: "d'aquí %s", + past: 'fa %s', + s: 'uns segons', + ss: '%d segons', + m: 'un minut', + mm: '%d minuts', + h: 'una hora', + hh: '%d hores', + d: 'un dia', + dd: '%d dies', + M: 'un mes', + MM: '%d mesos', + y: 'un any', + yy: '%d anys', + }, + dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/, + ordinal: function (number, period) { + var output = + number === 1 + ? 'r' + : number === 2 + ? 'n' + : number === 3 + ? 'r' + : number === 4 + ? 't' + : 'è'; + if (period === 'w' || period === 'W') { + output = 'a'; + } + return number + output; + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + return ca; - function noop() {} + }))); + + +/***/ }), +/* 442 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Czech [cs] + //! author : petrbela : https://github.com/petrbela - function getKeyFromChildrenIndex(child, menuEventKey, index) { - var prefix = menuEventKey || ''; - return child.key || prefix + 'item_' + index; - } + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function getMenuIdFromSubMenuEventKey(eventKey) { - return eventKey + '-menu-'; - } + //! moment.js locale configuration - function loopMenuItem(children, cb) { - var index = -1; - _react2['default'].Children.forEach(children, function (c) { - index++; - if (c && c.type && c.type.isMenuItemGroup) { - _react2['default'].Children.forEach(c.props.children, function (c2) { - index++; - cb(c2, index); - }); - } else { - cb(c, index); - } - }); - } + var months = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split( + '_' + ), + monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'), + monthsParse = [ + /^led/i, + /^úno/i, + /^bře/i, + /^dub/i, + /^kvě/i, + /^(čvn|červen$|června)/i, + /^(čvc|červenec|července)/i, + /^srp/i, + /^zář/i, + /^říj/i, + /^lis/i, + /^pro/i, + ], + // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched. + // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'. + monthsRegex = /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i; - function loopMenuItemRecursively(children, keys, ret) { - /* istanbul ignore if */ - if (!children || ret.find) { - return; - } - _react2['default'].Children.forEach(children, function (c) { - if (c) { - var construct = c.type; - if (!construct || !(construct.isSubMenu || construct.isMenuItem || construct.isMenuItemGroup)) { - return; - } - if (keys.indexOf(c.key) !== -1) { - ret.find = true; - } else if (c.props.children) { - loopMenuItemRecursively(c.props.children, keys, ret); - } + function plural(n) { + return n > 1 && n < 5 && ~~(n / 10) !== 1; + } + function translate(number, withoutSuffix, key, isFuture) { + var result = number + ' '; + switch (key) { + case 's': // a few seconds / in a few seconds / a few seconds ago + return withoutSuffix || isFuture ? 'pár sekund' : 'pár sekundami'; + case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago + if (withoutSuffix || isFuture) { + return result + (plural(number) ? 'sekundy' : 'sekund'); + } else { + return result + 'sekundami'; + } + case 'm': // a minute / in a minute / a minute ago + return withoutSuffix ? 'minuta' : isFuture ? 'minutu' : 'minutou'; + case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago + if (withoutSuffix || isFuture) { + return result + (plural(number) ? 'minuty' : 'minut'); + } else { + return result + 'minutami'; + } + case 'h': // an hour / in an hour / an hour ago + return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou'; + case 'hh': // 9 hours / in 9 hours / 9 hours ago + if (withoutSuffix || isFuture) { + return result + (plural(number) ? 'hodiny' : 'hodin'); + } else { + return result + 'hodinami'; + } + case 'd': // a day / in a day / a day ago + return withoutSuffix || isFuture ? 'den' : 'dnem'; + case 'dd': // 9 days / in 9 days / 9 days ago + if (withoutSuffix || isFuture) { + return result + (plural(number) ? 'dny' : 'dní'); + } else { + return result + 'dny'; + } + case 'M': // a month / in a month / a month ago + return withoutSuffix || isFuture ? 'měsíc' : 'měsícem'; + case 'MM': // 9 months / in 9 months / 9 months ago + if (withoutSuffix || isFuture) { + return result + (plural(number) ? 'měsíce' : 'měsíců'); + } else { + return result + 'měsíci'; + } + case 'y': // a year / in a year / a year ago + return withoutSuffix || isFuture ? 'rok' : 'rokem'; + case 'yy': // 9 years / in 9 years / 9 years ago + if (withoutSuffix || isFuture) { + return result + (plural(number) ? 'roky' : 'let'); + } else { + return result + 'lety'; + } + } } - }); - } - - var menuAllProps = exports.menuAllProps = ['defaultSelectedKeys', 'selectedKeys', 'defaultOpenKeys', 'openKeys', 'mode', 'getPopupContainer', 'onSelect', 'onDeselect', 'onDestroy', 'openTransitionName', 'openAnimation', 'subMenuOpenDelay', 'subMenuCloseDelay', 'forceSubMenuRender', 'triggerSubMenuAction', 'level', 'selectable', 'multiple', 'onOpenChange', 'visible', 'focusable', 'defaultActiveFirst', 'prefixCls', 'inlineIndent', 'parentMenu', 'title', 'rootPrefixCls', 'eventKey', 'active', 'onItemHover', 'onTitleMouseEnter', 'onTitleMouseLeave', 'onTitleClick', 'popupAlign', 'popupOffset', 'isOpen', 'renderMenuItem', 'manualRef', 'subMenuKey', 'disabled', 'index', 'isSelected', 'store', 'activeKey', 'builtinPlacements', 'overflowedIndicator', - // the following keys found need to be removed from test regression - 'attribute', 'value', 'popupClassName', 'inlineCollapsed', 'menu', 'theme', 'itemIcon', 'expandIcon']; + var cs = moment.defineLocale('cs', { + months: months, + monthsShort: monthsShort, + monthsRegex: monthsRegex, + monthsShortRegex: monthsRegex, + // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched. + // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'. + monthsStrictRegex: /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i, + monthsShortStrictRegex: /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i, + monthsParse: monthsParse, + longMonthsParse: monthsParse, + shortMonthsParse: monthsParse, + weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'), + weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'), + weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'), + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd D. MMMM YYYY H:mm', + l: 'D. M. YYYY', + }, + calendar: { + sameDay: '[dnes v] LT', + nextDay: '[zítra v] LT', + nextWeek: function () { + switch (this.day()) { + case 0: + return '[v neděli v] LT'; + case 1: + case 2: + return '[v] dddd [v] LT'; + case 3: + return '[ve středu v] LT'; + case 4: + return '[ve čtvrtek v] LT'; + case 5: + return '[v pátek v] LT'; + case 6: + return '[v sobotu v] LT'; + } + }, + lastDay: '[včera v] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + return '[minulou neděli v] LT'; + case 1: + case 2: + return '[minulé] dddd [v] LT'; + case 3: + return '[minulou středu v] LT'; + case 4: + case 5: + return '[minulý] dddd [v] LT'; + case 6: + return '[minulou sobotu v] LT'; + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'za %s', + past: 'před %s', + s: translate, + ss: translate, + m: translate, + mm: translate, + h: translate, + hh: translate, + d: translate, + dd: translate, + M: translate, + MM: translate, + y: translate, + yy: translate, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - var getWidth = exports.getWidth = function getWidth(elem) { - return elem && typeof elem.getBoundingClientRect === 'function' && elem.getBoundingClientRect().width || 0; - }; + return cs; - var setStyle = exports.setStyle = function setStyle(elem, styleProperty, value) { - if (elem && typeof elem.style === 'object') { - elem.style[styleProperty] = value; - } - }; + }))); + /***/ }), -/* 583 */ +/* 443 */ /***/ (function(module, exports, __webpack_require__) { - 'use strict'; - - exports.__esModule = true; - - var _extends2 = __webpack_require__(316); - - var _extends3 = _interopRequireDefault(_extends2); - - var _objectWithoutProperties2 = __webpack_require__(379); - - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); - - var _classCallCheck2 = __webpack_require__(318); - - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - - var _possibleConstructorReturn2 = __webpack_require__(319); - - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - - var _inherits2 = __webpack_require__(350); + //! moment.js locale configuration + //! locale : Chuvash [cv] + //! author : Anatoly Mironov : https://github.com/mirontoli - var _inherits3 = _interopRequireDefault(_inherits2); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _react = __webpack_require__(1); + //! moment.js locale configuration - var _react2 = _interopRequireDefault(_react); + var cv = moment.defineLocale('cv', { + months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split( + '_' + ), + monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'), + weekdays: 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split( + '_' + ), + weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'), + weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD-MM-YYYY', + LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]', + LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm', + LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm', + }, + calendar: { + sameDay: '[Паян] LT [сехетре]', + nextDay: '[Ыран] LT [сехетре]', + lastDay: '[Ӗнер] LT [сехетре]', + nextWeek: '[Ҫитес] dddd LT [сехетре]', + lastWeek: '[Иртнӗ] dddd LT [сехетре]', + sameElse: 'L', + }, + relativeTime: { + future: function (output) { + var affix = /сехет$/i.exec(output) + ? 'рен' + : /ҫул$/i.exec(output) + ? 'тан' + : 'ран'; + return output + affix; + }, + past: '%s каялла', + s: 'пӗр-ик ҫеккунт', + ss: '%d ҫеккунт', + m: 'пӗр минут', + mm: '%d минут', + h: 'пӗр сехет', + hh: '%d сехет', + d: 'пӗр кун', + dd: '%d кун', + M: 'пӗр уйӑх', + MM: '%d уйӑх', + y: 'пӗр ҫул', + yy: '%d ҫул', + }, + dayOfMonthOrdinalParse: /\d{1,2}-мӗш/, + ordinal: '%d-мӗш', + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, + }); - var _reactDom = __webpack_require__(2); + return cv; - var _reactDom2 = _interopRequireDefault(_reactDom); + }))); + + +/***/ }), +/* 444 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Welsh [cy] + //! author : Robert Allen : https://github.com/robgallen + //! author : https://github.com/ryangreaves - var _propTypes = __webpack_require__(6); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _propTypes2 = _interopRequireDefault(_propTypes); + //! moment.js locale configuration - var _resizeObserverPolyfill = __webpack_require__(313); + var cy = moment.defineLocale('cy', { + months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split( + '_' + ), + monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split( + '_' + ), + weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split( + '_' + ), + weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'), + weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'), + weekdaysParseExact: true, + // time formats are the same as en-gb + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Heddiw am] LT', + nextDay: '[Yfory am] LT', + nextWeek: 'dddd [am] LT', + lastDay: '[Ddoe am] LT', + lastWeek: 'dddd [diwethaf am] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'mewn %s', + past: '%s yn ôl', + s: 'ychydig eiliadau', + ss: '%d eiliad', + m: 'munud', + mm: '%d munud', + h: 'awr', + hh: '%d awr', + d: 'diwrnod', + dd: '%d diwrnod', + M: 'mis', + MM: '%d mis', + y: 'blwyddyn', + yy: '%d flynedd', + }, + dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/, + // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh + ordinal: function (number) { + var b = number, + output = '', + lookup = [ + '', + 'af', + 'il', + 'ydd', + 'ydd', + 'ed', + 'ed', + 'ed', + 'fed', + 'fed', + 'fed', // 1af to 10fed + 'eg', + 'fed', + 'eg', + 'eg', + 'fed', + 'eg', + 'eg', + 'fed', + 'eg', + 'fed', // 11eg to 20fed + ]; + if (b > 20) { + if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) { + output = 'fed'; // not 30ain, 70ain or 90ain + } else { + output = 'ain'; + } + } else if (b > 0) { + output = lookup[b]; + } + return number + output; + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - var _resizeObserverPolyfill2 = _interopRequireDefault(_resizeObserverPolyfill); + return cy; - var _SubMenu = __webpack_require__(584); + }))); + + +/***/ }), +/* 445 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Danish [da] + //! author : Ulrik Nielsen : https://github.com/mrbase - var _SubMenu2 = _interopRequireDefault(_SubMenu); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _util = __webpack_require__(582); + //! moment.js locale configuration - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + var da = moment.defineLocale('da', { + months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split( + '_' + ), + monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'), + weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'), + weekdaysShort: 'søn_man_tir_ons_tor_fre_lør'.split('_'), + weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY HH:mm', + LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm', + }, + calendar: { + sameDay: '[i dag kl.] LT', + nextDay: '[i morgen kl.] LT', + nextWeek: 'på dddd [kl.] LT', + lastDay: '[i går kl.] LT', + lastWeek: '[i] dddd[s kl.] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'om %s', + past: '%s siden', + s: 'få sekunder', + ss: '%d sekunder', + m: 'et minut', + mm: '%d minutter', + h: 'en time', + hh: '%d timer', + d: 'en dag', + dd: '%d dage', + M: 'en måned', + MM: '%d måneder', + y: 'et år', + yy: '%d år', + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement); + return da; - var MENUITEM_OVERFLOWED_CLASSNAME = 'menuitem-overflowed'; + }))); + + +/***/ }), +/* 446 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : German [de] + //! author : lluchs : https://github.com/lluchs + //! author: Menelion Elensúle: https://github.com/Oire + //! author : Mikolaj Dadela : https://github.com/mik01aj - // Fix ssr - if (canUseDOM) { - __webpack_require__(381); - } + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var DOMWrap = function (_React$Component) { - (0, _inherits3['default'])(DOMWrap, _React$Component); + //! moment.js locale configuration - function DOMWrap() { - var _temp, _this, _ret; + function processRelativeTime(number, withoutSuffix, key, isFuture) { + var format = { + m: ['eine Minute', 'einer Minute'], + h: ['eine Stunde', 'einer Stunde'], + d: ['ein Tag', 'einem Tag'], + dd: [number + ' Tage', number + ' Tagen'], + w: ['eine Woche', 'einer Woche'], + M: ['ein Monat', 'einem Monat'], + MM: [number + ' Monate', number + ' Monaten'], + y: ['ein Jahr', 'einem Jahr'], + yy: [number + ' Jahre', number + ' Jahren'], + }; + return withoutSuffix ? format[key][0] : format[key][1]; + } - (0, _classCallCheck3['default'])(this, DOMWrap); + var de = moment.defineLocale('de', { + months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split( + '_' + ), + monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split( + '_' + ), + weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'), + weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY HH:mm', + LLLL: 'dddd, D. MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[heute um] LT [Uhr]', + sameElse: 'L', + nextDay: '[morgen um] LT [Uhr]', + nextWeek: 'dddd [um] LT [Uhr]', + lastDay: '[gestern um] LT [Uhr]', + lastWeek: '[letzten] dddd [um] LT [Uhr]', + }, + relativeTime: { + future: 'in %s', + past: 'vor %s', + s: 'ein paar Sekunden', + ss: '%d Sekunden', + m: processRelativeTime, + mm: '%d Minuten', + h: processRelativeTime, + hh: '%d Stunden', + d: processRelativeTime, + dd: processRelativeTime, + w: processRelativeTime, + ww: '%d Wochen', + M: processRelativeTime, + MM: processRelativeTime, + y: processRelativeTime, + yy: processRelativeTime, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } + return de; - return _ret = (_temp = (_this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.state = { - lastVisibleIndex: undefined - }, _this.getMenuItemNodes = function () { - var prefixCls = _this.props.prefixCls; + }))); + + +/***/ }), +/* 447 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : German (Austria) [de-at] + //! author : lluchs : https://github.com/lluchs + //! author: Menelion Elensúle: https://github.com/Oire + //! author : Martin Groller : https://github.com/MadMG + //! author : Mikolaj Dadela : https://github.com/mik01aj - var ul = _reactDom2['default'].findDOMNode(_this); - if (!ul) { - return []; - } + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - // filter out all overflowed indicator placeholder - return [].slice.call(ul.children).filter(function (node) { - return node.className.split(' ').indexOf(prefixCls + '-overflowed-submenu') < 0; - }); - }, _this.getOverflowedSubMenuItem = function (keyPrefix, overflowedItems, renderPlaceholder) { - var _this$props = _this.props, - overflowedIndicator = _this$props.overflowedIndicator, - level = _this$props.level, - mode = _this$props.mode, - prefixCls = _this$props.prefixCls, - theme = _this$props.theme, - propStyle = _this$props.style; + //! moment.js locale configuration - if (level !== 1 || mode !== 'horizontal') { - return null; - } - // put all the overflowed item inside a submenu - // with a title of overflow indicator ('...') - var copy = _this.props.children[0]; - var _copy$props = copy.props, - throwAway = _copy$props.children, - title = _copy$props.title, - eventKey = _copy$props.eventKey, - rest = (0, _objectWithoutProperties3['default'])(_copy$props, ['children', 'title', 'eventKey']); + function processRelativeTime(number, withoutSuffix, key, isFuture) { + var format = { + m: ['eine Minute', 'einer Minute'], + h: ['eine Stunde', 'einer Stunde'], + d: ['ein Tag', 'einem Tag'], + dd: [number + ' Tage', number + ' Tagen'], + w: ['eine Woche', 'einer Woche'], + M: ['ein Monat', 'einem Monat'], + MM: [number + ' Monate', number + ' Monaten'], + y: ['ein Jahr', 'einem Jahr'], + yy: [number + ' Jahre', number + ' Jahren'], + }; + return withoutSuffix ? format[key][0] : format[key][1]; + } + var deAt = moment.defineLocale('de-at', { + months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split( + '_' + ), + monthsShort: 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split( + '_' + ), + weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'), + weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY HH:mm', + LLLL: 'dddd, D. MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[heute um] LT [Uhr]', + sameElse: 'L', + nextDay: '[morgen um] LT [Uhr]', + nextWeek: 'dddd [um] LT [Uhr]', + lastDay: '[gestern um] LT [Uhr]', + lastWeek: '[letzten] dddd [um] LT [Uhr]', + }, + relativeTime: { + future: 'in %s', + past: 'vor %s', + s: 'ein paar Sekunden', + ss: '%d Sekunden', + m: processRelativeTime, + mm: '%d Minuten', + h: processRelativeTime, + hh: '%d Stunden', + d: processRelativeTime, + dd: processRelativeTime, + w: processRelativeTime, + ww: '%d Wochen', + M: processRelativeTime, + MM: processRelativeTime, + y: processRelativeTime, + yy: processRelativeTime, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - var style = (0, _extends3['default'])({}, propStyle); - var key = keyPrefix + '-overflowed-indicator'; + return deAt; - if (overflowedItems.length === 0 && renderPlaceholder !== true) { - style = (0, _extends3['default'])({}, style, { - display: 'none' - }); - } else if (renderPlaceholder) { - style = (0, _extends3['default'])({}, style, { - visibility: 'hidden', - // prevent from taking normal dom space - position: 'absolute' - }); - key = key + '-placeholder'; - } + }))); + + +/***/ }), +/* 448 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : German (Switzerland) [de-ch] + //! author : sschueller : https://github.com/sschueller - var popupClassName = theme ? prefixCls + '-' + theme : ''; - var props = {}; - _util.menuAllProps.forEach(function (k) { - if (rest[k] !== undefined) { - props[k] = rest[k]; - } - }); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - return _react2['default'].createElement( - _SubMenu2['default'], - (0, _extends3['default'])({ - title: overflowedIndicator, - className: prefixCls + '-overflowed-submenu', - popupClassName: popupClassName - }, props, { - key: key, - eventKey: keyPrefix + '-overflowed-indicator', - disabled: false, - style: style - }), - overflowedItems - ); - }, _this.setChildrenWidthAndResize = function () { - if (_this.props.mode !== 'horizontal') { - return; - } - var ul = _reactDom2['default'].findDOMNode(_this); + //! moment.js locale configuration - if (!ul) { - return; - } + function processRelativeTime(number, withoutSuffix, key, isFuture) { + var format = { + m: ['eine Minute', 'einer Minute'], + h: ['eine Stunde', 'einer Stunde'], + d: ['ein Tag', 'einem Tag'], + dd: [number + ' Tage', number + ' Tagen'], + w: ['eine Woche', 'einer Woche'], + M: ['ein Monat', 'einem Monat'], + MM: [number + ' Monate', number + ' Monaten'], + y: ['ein Jahr', 'einem Jahr'], + yy: [number + ' Jahre', number + ' Jahren'], + }; + return withoutSuffix ? format[key][0] : format[key][1]; + } - var ulChildrenNodes = ul.children; + var deCh = moment.defineLocale('de-ch', { + months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split( + '_' + ), + monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split( + '_' + ), + weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), + weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY HH:mm', + LLLL: 'dddd, D. MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[heute um] LT [Uhr]', + sameElse: 'L', + nextDay: '[morgen um] LT [Uhr]', + nextWeek: 'dddd [um] LT [Uhr]', + lastDay: '[gestern um] LT [Uhr]', + lastWeek: '[letzten] dddd [um] LT [Uhr]', + }, + relativeTime: { + future: 'in %s', + past: 'vor %s', + s: 'ein paar Sekunden', + ss: '%d Sekunden', + m: processRelativeTime, + mm: '%d Minuten', + h: processRelativeTime, + hh: '%d Stunden', + d: processRelativeTime, + dd: processRelativeTime, + w: processRelativeTime, + ww: '%d Wochen', + M: processRelativeTime, + MM: processRelativeTime, + y: processRelativeTime, + yy: processRelativeTime, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - if (!ulChildrenNodes || ulChildrenNodes.length === 0) { - return; - } + return deCh; - var lastOverflowedIndicatorPlaceholder = ul.children[ulChildrenNodes.length - 1]; + }))); + + +/***/ }), +/* 449 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Maldivian [dv] + //! author : Jawish Hameed : https://github.com/jawish - // need last overflowed indicator for calculating length; - (0, _util.setStyle)(lastOverflowedIndicatorPlaceholder, 'display', 'inline-block'); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var menuItemNodes = _this.getMenuItemNodes(); + //! moment.js locale configuration - // reset display attribute for all hidden elements caused by overflow to calculate updated width - // and then reset to original state after width calculation + var months = [ + 'ޖެނުއަރީ', + 'ފެބްރުއަރީ', + 'މާރިޗު', + 'އޭޕްރީލު', + 'މޭ', + 'ޖޫން', + 'ޖުލައި', + 'އޯގަސްޓު', + 'ސެޕްޓެމްބަރު', + 'އޮކްޓޯބަރު', + 'ނޮވެމްބަރު', + 'ޑިސެމްބަރު', + ], + weekdays = [ + 'އާދިއްތަ', + 'ހޯމަ', + 'އަންގާރަ', + 'ބުދަ', + 'ބުރާސްފަތި', + 'ހުކުރު', + 'ހޮނިހިރު', + ]; - var overflowedItems = menuItemNodes.filter(function (c) { - return c.className.split(' ').indexOf(MENUITEM_OVERFLOWED_CLASSNAME) >= 0; - }); + var dv = moment.defineLocale('dv', { + months: months, + monthsShort: months, + weekdays: weekdays, + weekdaysShort: weekdays, + weekdaysMin: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'D/M/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + meridiemParse: /މކ|މފ/, + isPM: function (input) { + return 'މފ' === input; + }, + meridiem: function (hour, minute, isLower) { + if (hour < 12) { + return 'މކ'; + } else { + return 'މފ'; + } + }, + calendar: { + sameDay: '[މިއަދު] LT', + nextDay: '[މާދަމާ] LT', + nextWeek: 'dddd LT', + lastDay: '[އިއްޔެ] LT', + lastWeek: '[ފާއިތުވި] dddd LT', + sameElse: 'L', + }, + relativeTime: { + future: 'ތެރޭގައި %s', + past: 'ކުރިން %s', + s: 'ސިކުންތުކޮޅެއް', + ss: 'd% ސިކުންތު', + m: 'މިނިޓެއް', + mm: 'މިނިޓު %d', + h: 'ގަޑިއިރެއް', + hh: 'ގަޑިއިރު %d', + d: 'ދުވަހެއް', + dd: 'ދުވަސް %d', + M: 'މަހެއް', + MM: 'މަސް %d', + y: 'އަހަރެއް', + yy: 'އަހަރު %d', + }, + preparse: function (string) { + return string.replace(/،/g, ','); + }, + postformat: function (string) { + return string.replace(/,/g, '،'); + }, + week: { + dow: 7, // Sunday is the first day of the week. + doy: 12, // The week that contains Jan 12th is the first week of the year. + }, + }); - overflowedItems.forEach(function (c) { - (0, _util.setStyle)(c, 'display', 'inline-block'); - }); + return dv; - _this.menuItemSizes = menuItemNodes.map(function (c) { - return (0, _util.getWidth)(c); - }); + }))); + + +/***/ }), +/* 450 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Greek [el] + //! author : Aggelos Karalias : https://github.com/mehiel - overflowedItems.forEach(function (c) { - (0, _util.setStyle)(c, 'display', 'none'); - }); - _this.overflowedIndicatorWidth = (0, _util.getWidth)(ul.children[ul.children.length - 1]); - _this.originalTotalWidth = _this.menuItemSizes.reduce(function (acc, cur) { - return acc + cur; - }, 0); - _this.handleResize(); - // prevent the overflowed indicator from taking space; - (0, _util.setStyle)(lastOverflowedIndicatorPlaceholder, 'display', 'none'); - }, _this.resizeObserver = null, _this.mutationObserver = null, _this.originalTotalWidth = 0, _this.overflowedItems = [], _this.menuItemSizes = [], _this.handleResize = function () { - if (_this.props.mode !== 'horizontal') { - return; - } + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var ul = _reactDom2['default'].findDOMNode(_this); - if (!ul) { - return; - } - var width = (0, _util.getWidth)(ul); + //! moment.js locale configuration - _this.overflowedItems = []; - var currentSumWidth = 0; + function isFunction(input) { + return ( + (typeof Function !== 'undefined' && input instanceof Function) || + Object.prototype.toString.call(input) === '[object Function]' + ); + } - // index for last visible child in horizontal mode - var lastVisibleIndex = undefined; + var el = moment.defineLocale('el', { + monthsNominativeEl: 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split( + '_' + ), + monthsGenitiveEl: 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split( + '_' + ), + months: function (momentToFormat, format) { + if (!momentToFormat) { + return this._monthsNominativeEl; + } else if ( + typeof format === 'string' && + /D/.test(format.substring(0, format.indexOf('MMMM'))) + ) { + // if there is a day number before 'MMMM' + return this._monthsGenitiveEl[momentToFormat.month()]; + } else { + return this._monthsNominativeEl[momentToFormat.month()]; + } + }, + monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'), + weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split( + '_' + ), + weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'), + weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'), + meridiem: function (hours, minutes, isLower) { + if (hours > 11) { + return isLower ? 'μμ' : 'ΜΜ'; + } else { + return isLower ? 'πμ' : 'ΠΜ'; + } + }, + isPM: function (input) { + return (input + '').toLowerCase()[0] === 'μ'; + }, + meridiemParse: /[ΠΜ]\.?Μ?\.?/i, + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY h:mm A', + LLLL: 'dddd, D MMMM YYYY h:mm A', + }, + calendarEl: { + sameDay: '[Σήμερα {}] LT', + nextDay: '[Αύριο {}] LT', + nextWeek: 'dddd [{}] LT', + lastDay: '[Χθες {}] LT', + lastWeek: function () { + switch (this.day()) { + case 6: + return '[το προηγούμενο] dddd [{}] LT'; + default: + return '[την προηγούμενη] dddd [{}] LT'; + } + }, + sameElse: 'L', + }, + calendar: function (key, mom) { + var output = this._calendarEl[key], + hours = mom && mom.hours(); + if (isFunction(output)) { + output = output.apply(mom); + } + return output.replace('{}', hours % 12 === 1 ? 'στη' : 'στις'); + }, + relativeTime: { + future: 'σε %s', + past: '%s πριν', + s: 'λίγα δευτερόλεπτα', + ss: '%d δευτερόλεπτα', + m: 'ένα λεπτό', + mm: '%d λεπτά', + h: 'μία ώρα', + hh: '%d ώρες', + d: 'μία μέρα', + dd: '%d μέρες', + M: 'ένας μήνας', + MM: '%d μήνες', + y: 'ένας χρόνος', + yy: '%d χρόνια', + }, + dayOfMonthOrdinalParse: /\d{1,2}η/, + ordinal: '%dη', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4st is the first week of the year. + }, + }); - if (_this.originalTotalWidth > width) { - lastVisibleIndex = -1; + return el; - _this.menuItemSizes.forEach(function (liWidth) { - currentSumWidth += liWidth; - if (currentSumWidth + _this.overflowedIndicatorWidth <= width) { - lastVisibleIndex++; - } - }); - } + }))); + + +/***/ }), +/* 451 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : English (Australia) [en-au] + //! author : Jared Morse : https://github.com/jarcoal - _this.setState({ lastVisibleIndex: lastVisibleIndex }); - }, _temp), (0, _possibleConstructorReturn3['default'])(_this, _ret); - } + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - DOMWrap.prototype.componentDidMount = function componentDidMount() { - var _this2 = this; + //! moment.js locale configuration - this.setChildrenWidthAndResize(); - if (this.props.level === 1 && this.props.mode === 'horizontal') { - var menuUl = _reactDom2['default'].findDOMNode(this); - if (!menuUl) { - return; - } - this.resizeObserver = new _resizeObserverPolyfill2['default'](function (entries) { - entries.forEach(_this2.setChildrenWidthAndResize); - }); + var enAu = moment.defineLocale('en-au', { + months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), + weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( + '_' + ), + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY h:mm A', + LLLL: 'dddd, D MMMM YYYY h:mm A', + }, + calendar: { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + ss: '%d seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years', + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal: function (number) { + var b = number % 10, + output = + ~~((number % 100) / 10) === 1 + ? 'th' + : b === 1 + ? 'st' + : b === 2 + ? 'nd' + : b === 3 + ? 'rd' + : 'th'; + return number + output; + }, + week: { + dow: 0, // Sunday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - [].slice.call(menuUl.children).concat(menuUl).forEach(function (el) { - _this2.resizeObserver.observe(el); - }); + return enAu; - if (typeof MutationObserver !== 'undefined') { - this.mutationObserver = new MutationObserver(function () { - _this2.resizeObserver.disconnect(); - [].slice.call(menuUl.children).concat(menuUl).forEach(function (el) { - _this2.resizeObserver.observe(el); - }); - _this2.setChildrenWidthAndResize(); - }); - this.mutationObserver.observe(menuUl, { attributes: false, childList: true, subTree: false }); - } - } - }; + }))); + + +/***/ }), +/* 452 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : English (Canada) [en-ca] + //! author : Jonathan Abourbih : https://github.com/jonbca - DOMWrap.prototype.componentWillUnmount = function componentWillUnmount() { - if (this.resizeObserver) { - this.resizeObserver.disconnect(); - } - if (this.mutationObserver) { - this.resizeObserver.disconnect(); - } - }; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - // get all valid menuItem nodes + //! moment.js locale configuration + var enCa = moment.defineLocale('en-ca', { + months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), + weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( + '_' + ), + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'YYYY-MM-DD', + LL: 'MMMM D, YYYY', + LLL: 'MMMM D, YYYY h:mm A', + LLLL: 'dddd, MMMM D, YYYY h:mm A', + }, + calendar: { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + ss: '%d seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years', + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal: function (number) { + var b = number % 10, + output = + ~~((number % 100) / 10) === 1 + ? 'th' + : b === 1 + ? 'st' + : b === 2 + ? 'nd' + : b === 3 + ? 'rd' + : 'th'; + return number + output; + }, + }); - // memorize rendered menuSize + return enCa; + }))); + + +/***/ }), +/* 453 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : English (United Kingdom) [en-gb] + //! author : Chris Gedrim : https://github.com/chrisgedrim - // original scroll size of the list + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; + //! moment.js locale configuration - // copy of overflowed items + var enGb = moment.defineLocale('en-gb', { + months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), + weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( + '_' + ), + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + ss: '%d seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years', + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal: function (number) { + var b = number % 10, + output = + ~~((number % 100) / 10) === 1 + ? 'th' + : b === 1 + ? 'st' + : b === 2 + ? 'nd' + : b === 3 + ? 'rd' + : 'th'; + return number + output; + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); + return enGb; - // cache item of the original items (so we can track the size and order) + }))); + + +/***/ }), +/* 454 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : English (Ireland) [en-ie] + //! author : Chris Cartlidge : https://github.com/chriscartlidge + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - DOMWrap.prototype.renderChildren = function renderChildren(children) { - var _this3 = this; + //! moment.js locale configuration - // need to take care of overflowed items in horizontal mode - var lastVisibleIndex = this.state.lastVisibleIndex; + var enIe = moment.defineLocale('en-ie', { + months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), + weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( + '_' + ), + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + ss: '%d seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years', + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal: function (number) { + var b = number % 10, + output = + ~~((number % 100) / 10) === 1 + ? 'th' + : b === 1 + ? 'st' + : b === 2 + ? 'nd' + : b === 3 + ? 'rd' + : 'th'; + return number + output; + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - return (children || []).reduce(function (acc, childNode, index) { - var item = childNode; - if (_this3.props.mode === 'horizontal') { - var overflowed = _this3.getOverflowedSubMenuItem(childNode.props.eventKey, []); - if (lastVisibleIndex !== undefined && _this3.props.className.indexOf(_this3.props.prefixCls + '-root') !== -1) { - if (index > lastVisibleIndex) { - item = _react2['default'].cloneElement(childNode, - // 这里修改 eventKey 是为了防止隐藏状态下还会触发 openkeys 事件 - { - style: { display: 'none' }, - eventKey: childNode.props.eventKey + '-hidden', - className: childNode.className + ' ' + MENUITEM_OVERFLOWED_CLASSNAME - }); - } - if (index === lastVisibleIndex + 1) { - _this3.overflowedItems = children.slice(lastVisibleIndex + 1).map(function (c) { - return _react2['default'].cloneElement(c, - // children[index].key will become '.$key' in clone by default, - // we have to overwrite with the correct key explicitly - { key: c.props.eventKey, mode: 'vertical-left' }); - }); + return enIe; - overflowed = _this3.getOverflowedSubMenuItem(childNode.props.eventKey, _this3.overflowedItems); - } - } + }))); + + +/***/ }), +/* 455 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : English (Israel) [en-il] + //! author : Chris Gedrim : https://github.com/chrisgedrim - var ret = [].concat(acc, [overflowed, item]); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - if (index === children.length - 1) { - // need a placeholder for calculating overflowed indicator width - ret.push(_this3.getOverflowedSubMenuItem(childNode.props.eventKey, [], true)); - } - return ret; - } - return [].concat(acc, [item]); - }, []); - }; + //! moment.js locale configuration - DOMWrap.prototype.render = function render() { - var _props = this.props, - hiddenClassName = _props.hiddenClassName, - visible = _props.visible, - prefixCls = _props.prefixCls, - overflowedIndicator = _props.overflowedIndicator, - mode = _props.mode, - level = _props.level, - Tag = _props.tag, - children = _props.children, - theme = _props.theme, - rest = (0, _objectWithoutProperties3['default'])(_props, ['hiddenClassName', 'visible', 'prefixCls', 'overflowedIndicator', 'mode', 'level', 'tag', 'children', 'theme']); + var enIl = moment.defineLocale('en-il', { + months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), + weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( + '_' + ), + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + ss: '%d seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years', + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal: function (number) { + var b = number % 10, + output = + ~~((number % 100) / 10) === 1 + ? 'th' + : b === 1 + ? 'st' + : b === 2 + ? 'nd' + : b === 3 + ? 'rd' + : 'th'; + return number + output; + }, + }); + return enIl; - if (!visible) { - rest.className += ' ' + hiddenClassName; - } + }))); + + +/***/ }), +/* 456 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : English (India) [en-in] + //! author : Jatin Agrawal : https://github.com/jatinag22 - return _react2['default'].createElement( - Tag, - rest, - this.renderChildren(this.props.children) - ); - }; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - return DOMWrap; - }(_react2['default'].Component); + //! moment.js locale configuration - DOMWrap.propTypes = { - className: _propTypes2['default'].string, - children: _propTypes2['default'].node, - mode: _propTypes2['default'].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']), - prefixCls: _propTypes2['default'].string, - level: _propTypes2['default'].number, - theme: _propTypes2['default'].string, - overflowedIndicator: _propTypes2['default'].node, - visible: _propTypes2['default'].bool, - hiddenClassName: _propTypes2['default'].string, - tag: _propTypes2['default'].string, - style: _propTypes2['default'].object - }; + var enIn = moment.defineLocale('en-in', { + months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), + weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( + '_' + ), + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY h:mm A', + LLLL: 'dddd, D MMMM YYYY h:mm A', + }, + calendar: { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + ss: '%d seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years', + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal: function (number) { + var b = number % 10, + output = + ~~((number % 100) / 10) === 1 + ? 'th' + : b === 1 + ? 'st' + : b === 2 + ? 'nd' + : b === 3 + ? 'rd' + : 'th'; + return number + output; + }, + week: { + dow: 0, // Sunday is the first day of the week. + doy: 6, // The week that contains Jan 1st is the first week of the year. + }, + }); - DOMWrap.defaultProps = { - tag: 'div', - className: '' - }; + return enIn; - exports['default'] = DOMWrap; - module.exports = exports['default']; + }))); + /***/ }), -/* 584 */ +/* 457 */ /***/ (function(module, exports, __webpack_require__) { - 'use strict'; - - exports.__esModule = true; - exports.SubMenu = undefined; - - var _classCallCheck2 = __webpack_require__(318); - - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - - var _possibleConstructorReturn2 = __webpack_require__(319); - - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - - var _inherits2 = __webpack_require__(350); - - var _inherits3 = _interopRequireDefault(_inherits2); - - var _extends3 = __webpack_require__(316); - - var _extends4 = _interopRequireDefault(_extends3); - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _reactDom = __webpack_require__(2); - - var _reactDom2 = _interopRequireDefault(_reactDom); - - var _propTypes = __webpack_require__(6); - - var _propTypes2 = _interopRequireDefault(_propTypes); - - var _rcTrigger = __webpack_require__(315); - - var _rcTrigger2 = _interopRequireDefault(_rcTrigger); - - var _KeyCode = __webpack_require__(400); - - var _KeyCode2 = _interopRequireDefault(_KeyCode); - - var _classnames = __webpack_require__(5); - - var _classnames2 = _interopRequireDefault(_classnames); - - var _miniStore = __webpack_require__(303); - - var _SubPopupMenu = __webpack_require__(581); - - var _SubPopupMenu2 = _interopRequireDefault(_SubPopupMenu); - - var _placements = __webpack_require__(585); - - var _placements2 = _interopRequireDefault(_placements); - - var _rcAnimate = __webpack_require__(369); - - var _rcAnimate2 = _interopRequireDefault(_rcAnimate); - - var _util = __webpack_require__(582); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - var guid = 0; + //! moment.js locale configuration + //! locale : English (New Zealand) [en-nz] + //! author : Luke McGregor : https://github.com/lukemcgregor - var popupPlacementMap = { - horizontal: 'bottomLeft', - vertical: 'rightTop', - 'vertical-left': 'rightTop', - 'vertical-right': 'leftTop' - }; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var updateDefaultActiveFirst = function updateDefaultActiveFirst(store, eventKey, defaultActiveFirst) { - var _extends2; + //! moment.js locale configuration - var menuId = (0, _util.getMenuIdFromSubMenuEventKey)(eventKey); - var state = store.getState(); - store.setState({ - defaultActiveFirst: (0, _extends4['default'])({}, state.defaultActiveFirst, (_extends2 = {}, _extends2[menuId] = defaultActiveFirst, _extends2)) - }); - }; + var enNz = moment.defineLocale('en-nz', { + months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), + weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( + '_' + ), + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY h:mm A', + LLLL: 'dddd, D MMMM YYYY h:mm A', + }, + calendar: { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + ss: '%d seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years', + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal: function (number) { + var b = number % 10, + output = + ~~((number % 100) / 10) === 1 + ? 'th' + : b === 1 + ? 'st' + : b === 2 + ? 'nd' + : b === 3 + ? 'rd' + : 'th'; + return number + output; + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - var SubMenu = exports.SubMenu = function (_React$Component) { - (0, _inherits3['default'])(SubMenu, _React$Component); + return enNz; - function SubMenu(props) { - (0, _classCallCheck3['default'])(this, SubMenu); + }))); + + +/***/ }), +/* 458 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : English (Singapore) [en-sg] + //! author : Matthew Castrillon-Madrigal : https://github.com/techdimension - var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props)); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - _initialiseProps.call(_this); + //! moment.js locale configuration - var store = props.store; - var eventKey = props.eventKey; - var defaultActiveFirst = store.getState().defaultActiveFirst; + var enSg = moment.defineLocale('en-sg', { + months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), + weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( + '_' + ), + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + ss: '%d seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years', + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal: function (number) { + var b = number % 10, + output = + ~~((number % 100) / 10) === 1 + ? 'th' + : b === 1 + ? 'st' + : b === 2 + ? 'nd' + : b === 3 + ? 'rd' + : 'th'; + return number + output; + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - _this.isRootMenu = false; + return enSg; - var value = false; + }))); + + +/***/ }), +/* 459 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Esperanto [eo] + //! author : Colin Dean : https://github.com/colindean + //! author : Mia Nordentoft Imperatori : https://github.com/miestasmia + //! comment : miestasmia corrected the translation by colindean + //! comment : Vivakvo corrected the translation by colindean and miestasmia - if (defaultActiveFirst) { - value = defaultActiveFirst[eventKey]; - } + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - updateDefaultActiveFirst(store, eventKey, value); - return _this; - } + //! moment.js locale configuration - SubMenu.prototype.componentDidMount = function componentDidMount() { - this.componentDidUpdate(); - }; + var eo = moment.defineLocale('eo', { + months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split( + '_' + ), + monthsShort: 'jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec'.split('_'), + weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'), + weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'), + weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY-MM-DD', + LL: '[la] D[-an de] MMMM, YYYY', + LLL: '[la] D[-an de] MMMM, YYYY HH:mm', + LLLL: 'dddd[n], [la] D[-an de] MMMM, YYYY HH:mm', + llll: 'ddd, [la] D[-an de] MMM, YYYY HH:mm', + }, + meridiemParse: /[ap]\.t\.m/i, + isPM: function (input) { + return input.charAt(0).toLowerCase() === 'p'; + }, + meridiem: function (hours, minutes, isLower) { + if (hours > 11) { + return isLower ? 'p.t.m.' : 'P.T.M.'; + } else { + return isLower ? 'a.t.m.' : 'A.T.M.'; + } + }, + calendar: { + sameDay: '[Hodiaŭ je] LT', + nextDay: '[Morgaŭ je] LT', + nextWeek: 'dddd[n je] LT', + lastDay: '[Hieraŭ je] LT', + lastWeek: '[pasintan] dddd[n je] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'post %s', + past: 'antaŭ %s', + s: 'kelkaj sekundoj', + ss: '%d sekundoj', + m: 'unu minuto', + mm: '%d minutoj', + h: 'unu horo', + hh: '%d horoj', + d: 'unu tago', //ne 'diurno', ĉar estas uzita por proksimumo + dd: '%d tagoj', + M: 'unu monato', + MM: '%d monatoj', + y: 'unu jaro', + yy: '%d jaroj', + }, + dayOfMonthOrdinalParse: /\d{1,2}a/, + ordinal: '%da', + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, + }); - SubMenu.prototype.componentDidUpdate = function componentDidUpdate() { - var _this2 = this; + return eo; - var _props = this.props, - mode = _props.mode, - parentMenu = _props.parentMenu, - manualRef = _props.manualRef; + }))); + + +/***/ }), +/* 460 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Spanish [es] + //! author : Julio Napurí : https://github.com/julionc - // invoke customized ref to expose component to mixin + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - if (manualRef) { - manualRef(this); - } + //! moment.js locale configuration - if (mode !== 'horizontal' || !parentMenu.isRootMenu || !this.props.isOpen) { - return; - } + var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split( + '_' + ), + monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), + monthsParse = [ + /^ene/i, + /^feb/i, + /^mar/i, + /^abr/i, + /^may/i, + /^jun/i, + /^jul/i, + /^ago/i, + /^sep/i, + /^oct/i, + /^nov/i, + /^dic/i, + ], + monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i; - this.minWidthTimeout = setTimeout(function () { - return _this2.adjustWidth(); - }, 0); - }; + var es = moment.defineLocale('es', { + months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split( + '_' + ), + monthsShort: function (m, format) { + if (!m) { + return monthsShortDot; + } else if (/-MMM-/.test(format)) { + return monthsShort[m.month()]; + } else { + return monthsShortDot[m.month()]; + } + }, + monthsRegex: monthsRegex, + monthsShortRegex: monthsRegex, + monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, + monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, + monthsParse: monthsParse, + longMonthsParse: monthsParse, + shortMonthsParse: monthsParse, + weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), + weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), + weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D [de] MMMM [de] YYYY', + LLL: 'D [de] MMMM [de] YYYY H:mm', + LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm', + }, + calendar: { + sameDay: function () { + return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; + }, + nextDay: function () { + return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; + }, + nextWeek: function () { + return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; + }, + lastDay: function () { + return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; + }, + lastWeek: function () { + return ( + '[el] dddd [pasado a la' + + (this.hours() !== 1 ? 's' : '') + + '] LT' + ); + }, + sameElse: 'L', + }, + relativeTime: { + future: 'en %s', + past: 'hace %s', + s: 'unos segundos', + ss: '%d segundos', + m: 'un minuto', + mm: '%d minutos', + h: 'una hora', + hh: '%d horas', + d: 'un día', + dd: '%d días', + M: 'un mes', + MM: '%d meses', + y: 'un año', + yy: '%d años', + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + invalidDate: 'Fecha invalida', + }); - SubMenu.prototype.componentWillUnmount = function componentWillUnmount() { - var _props2 = this.props, - onDestroy = _props2.onDestroy, - eventKey = _props2.eventKey; + return es; - if (onDestroy) { - onDestroy(eventKey); - } + }))); + + +/***/ }), +/* 461 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Spanish (Dominican Republic) [es-do] - /* istanbul ignore if */ - if (this.minWidthTimeout) { - clearTimeout(this.minWidthTimeout); - } + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - /* istanbul ignore if */ - if (this.mouseenterTimeout) { - clearTimeout(this.mouseenterTimeout); - } - }; + //! moment.js locale configuration - SubMenu.prototype.renderChildren = function renderChildren(children) { - var props = this.props; - var baseProps = { - mode: props.mode === 'horizontal' ? 'vertical' : props.mode, - visible: this.props.isOpen, - level: props.level + 1, - inlineIndent: props.inlineIndent, - focusable: false, - onClick: this.onSubMenuClick, - onSelect: this.onSelect, - onDeselect: this.onDeselect, - onDestroy: this.onDestroy, - selectedKeys: props.selectedKeys, - eventKey: props.eventKey + '-menu-', - openKeys: props.openKeys, - openTransitionName: props.openTransitionName, - openAnimation: props.openAnimation, - onOpenChange: this.onOpenChange, - subMenuOpenDelay: props.subMenuOpenDelay, - parentMenu: this, - subMenuCloseDelay: props.subMenuCloseDelay, - forceSubMenuRender: props.forceSubMenuRender, - triggerSubMenuAction: props.triggerSubMenuAction, - builtinPlacements: props.builtinPlacements, - defaultActiveFirst: props.store.getState().defaultActiveFirst[(0, _util.getMenuIdFromSubMenuEventKey)(props.eventKey)], - multiple: props.multiple, - prefixCls: props.rootPrefixCls, - id: this._menuId, - manualRef: this.saveMenuInstance, - itemIcon: props.itemIcon, - expandIcon: props.expandIcon - }; + var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split( + '_' + ), + monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), + monthsParse = [ + /^ene/i, + /^feb/i, + /^mar/i, + /^abr/i, + /^may/i, + /^jun/i, + /^jul/i, + /^ago/i, + /^sep/i, + /^oct/i, + /^nov/i, + /^dic/i, + ], + monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i; - var haveRendered = this.haveRendered; - this.haveRendered = true; + var esDo = moment.defineLocale('es-do', { + months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split( + '_' + ), + monthsShort: function (m, format) { + if (!m) { + return monthsShortDot; + } else if (/-MMM-/.test(format)) { + return monthsShort[m.month()]; + } else { + return monthsShortDot[m.month()]; + } + }, + monthsRegex: monthsRegex, + monthsShortRegex: monthsRegex, + monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, + monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, + monthsParse: monthsParse, + longMonthsParse: monthsParse, + shortMonthsParse: monthsParse, + weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), + weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), + weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'DD/MM/YYYY', + LL: 'D [de] MMMM [de] YYYY', + LLL: 'D [de] MMMM [de] YYYY h:mm A', + LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A', + }, + calendar: { + sameDay: function () { + return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; + }, + nextDay: function () { + return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; + }, + nextWeek: function () { + return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; + }, + lastDay: function () { + return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; + }, + lastWeek: function () { + return ( + '[el] dddd [pasado a la' + + (this.hours() !== 1 ? 's' : '') + + '] LT' + ); + }, + sameElse: 'L', + }, + relativeTime: { + future: 'en %s', + past: 'hace %s', + s: 'unos segundos', + ss: '%d segundos', + m: 'un minuto', + mm: '%d minutos', + h: 'una hora', + hh: '%d horas', + d: 'un día', + dd: '%d días', + M: 'un mes', + MM: '%d meses', + y: 'un año', + yy: '%d años', + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - this.haveOpened = this.haveOpened || baseProps.visible || baseProps.forceSubMenuRender; - // never rendered not planning to, don't render - if (!this.haveOpened) { - return _react2['default'].createElement('div', null); - } + return esDo; - // don't show transition on first rendering (no animation for opened menu) - // show appear transition if it's not visible (not sure why) - // show appear transition if it's not inline mode - var transitionAppear = haveRendered || !baseProps.visible || !baseProps.mode === 'inline'; + }))); + + +/***/ }), +/* 462 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Spanish (United States) [es-us] + //! author : bustta : https://github.com/bustta + //! author : chrisrodz : https://github.com/chrisrodz - baseProps.className = ' ' + baseProps.prefixCls + '-sub'; - var animProps = {}; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - if (baseProps.openTransitionName) { - animProps.transitionName = baseProps.openTransitionName; - } else if (typeof baseProps.openAnimation === 'object') { - animProps.animation = (0, _extends4['default'])({}, baseProps.openAnimation); - if (!transitionAppear) { - delete animProps.animation.appear; - } - } + //! moment.js locale configuration - return _react2['default'].createElement( - _rcAnimate2['default'], - (0, _extends4['default'])({}, animProps, { - showProp: 'visible', - component: '', - transitionAppear: transitionAppear - }), - _react2['default'].createElement( - _SubPopupMenu2['default'], - (0, _extends4['default'])({}, baseProps, { id: this._menuId }), - children - ) - ); - }; + var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split( + '_' + ), + monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), + monthsParse = [ + /^ene/i, + /^feb/i, + /^mar/i, + /^abr/i, + /^may/i, + /^jun/i, + /^jul/i, + /^ago/i, + /^sep/i, + /^oct/i, + /^nov/i, + /^dic/i, + ], + monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i; - SubMenu.prototype.render = function render() { - var _classNames; + var esUs = moment.defineLocale('es-us', { + months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split( + '_' + ), + monthsShort: function (m, format) { + if (!m) { + return monthsShortDot; + } else if (/-MMM-/.test(format)) { + return monthsShort[m.month()]; + } else { + return monthsShortDot[m.month()]; + } + }, + monthsRegex: monthsRegex, + monthsShortRegex: monthsRegex, + monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, + monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, + monthsParse: monthsParse, + longMonthsParse: monthsParse, + shortMonthsParse: monthsParse, + weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), + weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), + weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'MM/DD/YYYY', + LL: 'D [de] MMMM [de] YYYY', + LLL: 'D [de] MMMM [de] YYYY h:mm A', + LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A', + }, + calendar: { + sameDay: function () { + return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; + }, + nextDay: function () { + return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; + }, + nextWeek: function () { + return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; + }, + lastDay: function () { + return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; + }, + lastWeek: function () { + return ( + '[el] dddd [pasado a la' + + (this.hours() !== 1 ? 's' : '') + + '] LT' + ); + }, + sameElse: 'L', + }, + relativeTime: { + future: 'en %s', + past: 'hace %s', + s: 'unos segundos', + ss: '%d segundos', + m: 'un minuto', + mm: '%d minutos', + h: 'una hora', + hh: '%d horas', + d: 'un día', + dd: '%d días', + M: 'un mes', + MM: '%d meses', + y: 'un año', + yy: '%d años', + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { + dow: 0, // Sunday is the first day of the week. + doy: 6, // The week that contains Jan 6th is the first week of the year. + }, + }); - var props = (0, _extends4['default'])({}, this.props); - var isOpen = props.isOpen; - var prefixCls = this.getPrefixCls(); - var isInlineMode = props.mode === 'inline'; - var className = (0, _classnames2['default'])(prefixCls, prefixCls + '-' + props.mode, (_classNames = {}, _classNames[props.className] = !!props.className, _classNames[this.getOpenClassName()] = isOpen, _classNames[this.getActiveClassName()] = props.active || isOpen && !isInlineMode, _classNames[this.getDisabledClassName()] = props.disabled, _classNames[this.getSelectedClassName()] = this.isChildrenSelected(), _classNames)); + return esUs; - if (!this._menuId) { - if (props.eventKey) { - this._menuId = props.eventKey + '$Menu'; - } else { - this._menuId = '$__$' + ++guid + '$Menu'; - } - } + }))); + + +/***/ }), +/* 463 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Estonian [et] + //! author : Henry Kehlmann : https://github.com/madhenry + //! improvements : Illimar Tambek : https://github.com/ragulka - var mouseEvents = {}; - var titleClickEvents = {}; - var titleMouseEvents = {}; - if (!props.disabled) { - mouseEvents = { - onMouseLeave: this.onMouseLeave, - onMouseEnter: this.onMouseEnter - }; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - // only works in title, not outer li - titleClickEvents = { - onClick: this.onTitleClick - }; - titleMouseEvents = { - onMouseEnter: this.onTitleMouseEnter, - onMouseLeave: this.onTitleMouseLeave - }; - } + //! moment.js locale configuration - var style = {}; - if (isInlineMode) { - style.paddingLeft = props.inlineIndent * props.level; + function processRelativeTime(number, withoutSuffix, key, isFuture) { + var format = { + s: ['mõne sekundi', 'mõni sekund', 'paar sekundit'], + ss: [number + 'sekundi', number + 'sekundit'], + m: ['ühe minuti', 'üks minut'], + mm: [number + ' minuti', number + ' minutit'], + h: ['ühe tunni', 'tund aega', 'üks tund'], + hh: [number + ' tunni', number + ' tundi'], + d: ['ühe päeva', 'üks päev'], + M: ['kuu aja', 'kuu aega', 'üks kuu'], + MM: [number + ' kuu', number + ' kuud'], + y: ['ühe aasta', 'aasta', 'üks aasta'], + yy: [number + ' aasta', number + ' aastat'], + }; + if (withoutSuffix) { + return format[key][2] ? format[key][2] : format[key][1]; + } + return isFuture ? format[key][0] : format[key][1]; } - var ariaOwns = {}; - // only set aria-owns when menu is open - // otherwise it would be an invalid aria-owns value - // since corresponding node cannot be found - if (this.props.isOpen) { - ariaOwns = { - 'aria-owns': this._menuId - }; - } + var et = moment.defineLocale('et', { + months: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split( + '_' + ), + monthsShort: 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split( + '_' + ), + weekdays: 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split( + '_' + ), + weekdaysShort: 'P_E_T_K_N_R_L'.split('_'), + weekdaysMin: 'P_E_T_K_N_R_L'.split('_'), + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd, D. MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[Täna,] LT', + nextDay: '[Homme,] LT', + nextWeek: '[Järgmine] dddd LT', + lastDay: '[Eile,] LT', + lastWeek: '[Eelmine] dddd LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s pärast', + past: '%s tagasi', + s: processRelativeTime, + ss: processRelativeTime, + m: processRelativeTime, + mm: processRelativeTime, + h: processRelativeTime, + hh: processRelativeTime, + d: processRelativeTime, + dd: '%d päeva', + M: processRelativeTime, + MM: processRelativeTime, + y: processRelativeTime, + yy: processRelativeTime, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - // expand custom icon should NOT be displayed in menu with horizontal mode. - var icon = null; - if (props.mode !== 'horizontal') { - icon = this.props.expandIcon; // ReactNode - if (typeof this.props.expandIcon === 'function') { - icon = _react2['default'].createElement(this.props.expandIcon, (0, _extends4['default'])({}, this.props)); - } - } + return et; - var title = _react2['default'].createElement( - 'div', - (0, _extends4['default'])({ - ref: this.saveSubMenuTitle, - style: style, - className: prefixCls + '-title' - }, titleMouseEvents, titleClickEvents, { - 'aria-expanded': isOpen - }, ariaOwns, { - 'aria-haspopup': 'true', - title: typeof props.title === 'string' ? props.title : undefined - }), - props.title, - icon || _react2['default'].createElement('i', { className: prefixCls + '-arrow' }) - ); - var children = this.renderChildren(props.children); + }))); + + +/***/ }), +/* 464 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Basque [eu] + //! author : Eneko Illarramendi : https://github.com/eillarra - var getPopupContainer = props.parentMenu.isRootMenu ? props.parentMenu.props.getPopupContainer : function (triggerNode) { - return triggerNode.parentNode; - }; - var popupPlacement = popupPlacementMap[props.mode]; - var popupAlign = props.popupOffset ? { offset: props.popupOffset } : {}; - var popupClassName = props.mode === 'inline' ? '' : props.popupClassName; - var disabled = props.disabled, - triggerSubMenuAction = props.triggerSubMenuAction, - subMenuOpenDelay = props.subMenuOpenDelay, - forceSubMenuRender = props.forceSubMenuRender, - subMenuCloseDelay = props.subMenuCloseDelay, - builtinPlacements = props.builtinPlacements; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - _util.menuAllProps.forEach(function (key) { - return delete props[key]; - }); - // Set onClick to null, to ignore propagated onClick event - delete props.onClick; + //! moment.js locale configuration - return _react2['default'].createElement( - 'li', - (0, _extends4['default'])({}, props, mouseEvents, { - className: className, - role: 'menuitem' - }), - isInlineMode && title, - isInlineMode && children, - !isInlineMode && _react2['default'].createElement( - _rcTrigger2['default'], - { - prefixCls: prefixCls, - popupClassName: prefixCls + '-popup ' + popupClassName, - getPopupContainer: getPopupContainer, - builtinPlacements: (0, _extends4['default'])({}, _placements2['default'], builtinPlacements), - popupPlacement: popupPlacement, - popupVisible: isOpen, - popupAlign: popupAlign, - popup: children, - action: disabled ? [] : [triggerSubMenuAction], - mouseEnterDelay: subMenuOpenDelay, - mouseLeaveDelay: subMenuCloseDelay, - onPopupVisibleChange: this.onPopupVisibleChange, - forceRender: forceSubMenuRender + var eu = moment.defineLocale('eu', { + months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split( + '_' + ), + monthsShort: 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split( + '_' + ), + weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'), + weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY-MM-DD', + LL: 'YYYY[ko] MMMM[ren] D[a]', + LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm', + LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm', + l: 'YYYY-M-D', + ll: 'YYYY[ko] MMM D[a]', + lll: 'YYYY[ko] MMM D[a] HH:mm', + llll: 'ddd, YYYY[ko] MMM D[a] HH:mm', + }, + calendar: { + sameDay: '[gaur] LT[etan]', + nextDay: '[bihar] LT[etan]', + nextWeek: 'dddd LT[etan]', + lastDay: '[atzo] LT[etan]', + lastWeek: '[aurreko] dddd LT[etan]', + sameElse: 'L', + }, + relativeTime: { + future: '%s barru', + past: 'duela %s', + s: 'segundo batzuk', + ss: '%d segundo', + m: 'minutu bat', + mm: '%d minutu', + h: 'ordu bat', + hh: '%d ordu', + d: 'egun bat', + dd: '%d egun', + M: 'hilabete bat', + MM: '%d hilabete', + y: 'urte bat', + yy: '%d urte', }, - title - ) - ); - }; + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, + }); - return SubMenu; - }(_react2['default'].Component); + return eu; - SubMenu.propTypes = { - parentMenu: _propTypes2['default'].object, - title: _propTypes2['default'].node, - children: _propTypes2['default'].any, - selectedKeys: _propTypes2['default'].array, - openKeys: _propTypes2['default'].array, - onClick: _propTypes2['default'].func, - onOpenChange: _propTypes2['default'].func, - rootPrefixCls: _propTypes2['default'].string, - eventKey: _propTypes2['default'].string, - multiple: _propTypes2['default'].bool, - active: _propTypes2['default'].bool, // TODO: remove - onItemHover: _propTypes2['default'].func, - onSelect: _propTypes2['default'].func, - triggerSubMenuAction: _propTypes2['default'].string, - onDeselect: _propTypes2['default'].func, - onDestroy: _propTypes2['default'].func, - onMouseEnter: _propTypes2['default'].func, - onMouseLeave: _propTypes2['default'].func, - onTitleMouseEnter: _propTypes2['default'].func, - onTitleMouseLeave: _propTypes2['default'].func, - onTitleClick: _propTypes2['default'].func, - popupOffset: _propTypes2['default'].array, - isOpen: _propTypes2['default'].bool, - store: _propTypes2['default'].object, - mode: _propTypes2['default'].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']), - manualRef: _propTypes2['default'].func, - itemIcon: _propTypes2['default'].oneOfType([_propTypes2['default'].func, _propTypes2['default'].node]), - expandIcon: _propTypes2['default'].oneOfType([_propTypes2['default'].func, _propTypes2['default'].node]) - }; - SubMenu.defaultProps = { - onMouseEnter: _util.noop, - onMouseLeave: _util.noop, - onTitleMouseEnter: _util.noop, - onTitleMouseLeave: _util.noop, - onTitleClick: _util.noop, - manualRef: _util.noop, - mode: 'vertical', - title: '' - }; + }))); + + +/***/ }), +/* 465 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Persian [fa] + //! author : Ebrahim Byagowi : https://github.com/ebraminio - var _initialiseProps = function _initialiseProps() { - var _this3 = this; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - this.onDestroy = function (key) { - _this3.props.onDestroy(key); - }; + //! moment.js locale configuration - this.onKeyDown = function (e) { - var keyCode = e.keyCode; - var menu = _this3.menuInstance; - var _props3 = _this3.props, - isOpen = _props3.isOpen, - store = _props3.store; + var symbolMap = { + '1': '۱', + '2': '۲', + '3': '۳', + '4': '۴', + '5': '۵', + '6': '۶', + '7': '۷', + '8': '۸', + '9': '۹', + '0': '۰', + }, + numberMap = { + '۱': '1', + '۲': '2', + '۳': '3', + '۴': '4', + '۵': '5', + '۶': '6', + '۷': '7', + '۸': '8', + '۹': '9', + '۰': '0', + }; + + var fa = moment.defineLocale('fa', { + months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split( + '_' + ), + monthsShort: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split( + '_' + ), + weekdays: 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split( + '_' + ), + weekdaysShort: 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split( + '_' + ), + weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + meridiemParse: /قبل از ظهر|بعد از ظهر/, + isPM: function (input) { + return /بعد از ظهر/.test(input); + }, + meridiem: function (hour, minute, isLower) { + if (hour < 12) { + return 'قبل از ظهر'; + } else { + return 'بعد از ظهر'; + } + }, + calendar: { + sameDay: '[امروز ساعت] LT', + nextDay: '[فردا ساعت] LT', + nextWeek: 'dddd [ساعت] LT', + lastDay: '[دیروز ساعت] LT', + lastWeek: 'dddd [پیش] [ساعت] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'در %s', + past: '%s پیش', + s: 'چند ثانیه', + ss: '%d ثانیه', + m: 'یک دقیقه', + mm: '%d دقیقه', + h: 'یک ساعت', + hh: '%d ساعت', + d: 'یک روز', + dd: '%d روز', + M: 'یک ماه', + MM: '%d ماه', + y: 'یک سال', + yy: '%d سال', + }, + preparse: function (string) { + return string + .replace(/[۰-۹]/g, function (match) { + return numberMap[match]; + }) + .replace(/،/g, ','); + }, + postformat: function (string) { + return string + .replace(/\d/g, function (match) { + return symbolMap[match]; + }) + .replace(/,/g, '،'); + }, + dayOfMonthOrdinalParse: /\d{1,2}م/, + ordinal: '%dم', + week: { + dow: 6, // Saturday is the first day of the week. + doy: 12, // The week that contains Jan 12th is the first week of the year. + }, + }); + return fa; - if (keyCode === _KeyCode2['default'].ENTER) { - _this3.onTitleClick(e); - updateDefaultActiveFirst(store, _this3.props.eventKey, true); - return true; - } + }))); + + +/***/ }), +/* 466 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Finnish [fi] + //! author : Tarmo Aidantausta : https://github.com/bleadof - if (keyCode === _KeyCode2['default'].RIGHT) { - if (isOpen) { - menu.onKeyDown(e); - } else { - _this3.triggerOpenChange(true); - // need to update current menu's defaultActiveFirst value - updateDefaultActiveFirst(store, _this3.props.eventKey, true); - } - return true; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; + + //! moment.js locale configuration + + var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split( + ' ' + ), + numbersFuture = [ + 'nolla', + 'yhden', + 'kahden', + 'kolmen', + 'neljän', + 'viiden', + 'kuuden', + numbersPast[7], + numbersPast[8], + numbersPast[9], + ]; + function translate(number, withoutSuffix, key, isFuture) { + var result = ''; + switch (key) { + case 's': + return isFuture ? 'muutaman sekunnin' : 'muutama sekunti'; + case 'ss': + result = isFuture ? 'sekunnin' : 'sekuntia'; + break; + case 'm': + return isFuture ? 'minuutin' : 'minuutti'; + case 'mm': + result = isFuture ? 'minuutin' : 'minuuttia'; + break; + case 'h': + return isFuture ? 'tunnin' : 'tunti'; + case 'hh': + result = isFuture ? 'tunnin' : 'tuntia'; + break; + case 'd': + return isFuture ? 'päivän' : 'päivä'; + case 'dd': + result = isFuture ? 'päivän' : 'päivää'; + break; + case 'M': + return isFuture ? 'kuukauden' : 'kuukausi'; + case 'MM': + result = isFuture ? 'kuukauden' : 'kuukautta'; + break; + case 'y': + return isFuture ? 'vuoden' : 'vuosi'; + case 'yy': + result = isFuture ? 'vuoden' : 'vuotta'; + break; + } + result = verbalNumber(number, isFuture) + ' ' + result; + return result; } - if (keyCode === _KeyCode2['default'].LEFT) { - var handled = void 0; - if (isOpen) { - handled = menu.onKeyDown(e); - } else { - return undefined; - } - if (!handled) { - _this3.triggerOpenChange(false); - handled = true; - } - return handled; + function verbalNumber(number, isFuture) { + return number < 10 + ? isFuture + ? numbersFuture[number] + : numbersPast[number] + : number; } - if (isOpen && (keyCode === _KeyCode2['default'].UP || keyCode === _KeyCode2['default'].DOWN)) { - return menu.onKeyDown(e); - } - }; + var fi = moment.defineLocale('fi', { + months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split( + '_' + ), + monthsShort: 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split( + '_' + ), + weekdays: 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split( + '_' + ), + weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'), + weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'), + longDateFormat: { + LT: 'HH.mm', + LTS: 'HH.mm.ss', + L: 'DD.MM.YYYY', + LL: 'Do MMMM[ta] YYYY', + LLL: 'Do MMMM[ta] YYYY, [klo] HH.mm', + LLLL: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm', + l: 'D.M.YYYY', + ll: 'Do MMM YYYY', + lll: 'Do MMM YYYY, [klo] HH.mm', + llll: 'ddd, Do MMM YYYY, [klo] HH.mm', + }, + calendar: { + sameDay: '[tänään] [klo] LT', + nextDay: '[huomenna] [klo] LT', + nextWeek: 'dddd [klo] LT', + lastDay: '[eilen] [klo] LT', + lastWeek: '[viime] dddd[na] [klo] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s päästä', + past: '%s sitten', + s: translate, + ss: translate, + m: translate, + mm: translate, + h: translate, + hh: translate, + d: translate, + dd: translate, + M: translate, + MM: translate, + y: translate, + yy: translate, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - this.onOpenChange = function (e) { - _this3.props.onOpenChange(e); - }; + return fi; - this.onPopupVisibleChange = function (visible) { - _this3.triggerOpenChange(visible, visible ? 'mouseenter' : 'mouseleave'); - }; + }))); + + +/***/ }), +/* 467 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Filipino [fil] + //! author : Dan Hagman : https://github.com/hagmandan + //! author : Matthew Co : https://github.com/matthewdeeco - this.onMouseEnter = function (e) { - var _props4 = _this3.props, - key = _props4.eventKey, - onMouseEnter = _props4.onMouseEnter, - store = _props4.store; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - updateDefaultActiveFirst(store, _this3.props.eventKey, false); - onMouseEnter({ - key: key, - domEvent: e + //! moment.js locale configuration + + var fil = moment.defineLocale('fil', { + months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split( + '_' + ), + monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'), + weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split( + '_' + ), + weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'), + weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'MM/D/YYYY', + LL: 'MMMM D, YYYY', + LLL: 'MMMM D, YYYY HH:mm', + LLLL: 'dddd, MMMM DD, YYYY HH:mm', + }, + calendar: { + sameDay: 'LT [ngayong araw]', + nextDay: '[Bukas ng] LT', + nextWeek: 'LT [sa susunod na] dddd', + lastDay: 'LT [kahapon]', + lastWeek: 'LT [noong nakaraang] dddd', + sameElse: 'L', + }, + relativeTime: { + future: 'sa loob ng %s', + past: '%s ang nakalipas', + s: 'ilang segundo', + ss: '%d segundo', + m: 'isang minuto', + mm: '%d minuto', + h: 'isang oras', + hh: '%d oras', + d: 'isang araw', + dd: '%d araw', + M: 'isang buwan', + MM: '%d buwan', + y: 'isang taon', + yy: '%d taon', + }, + dayOfMonthOrdinalParse: /\d{1,2}/, + ordinal: function (number) { + return number; + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, }); - }; - this.onMouseLeave = function (e) { - var _props5 = _this3.props, - parentMenu = _props5.parentMenu, - eventKey = _props5.eventKey, - onMouseLeave = _props5.onMouseLeave; + return fil; - parentMenu.subMenuInstance = _this3; - onMouseLeave({ - key: eventKey, - domEvent: e - }); - }; + }))); + + +/***/ }), +/* 468 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Faroese [fo] + //! author : Ragnar Johannesen : https://github.com/ragnar123 + //! author : Kristian Sakarisson : https://github.com/sakarisson - this.onTitleMouseEnter = function (domEvent) { - var _props6 = _this3.props, - key = _props6.eventKey, - onItemHover = _props6.onItemHover, - onTitleMouseEnter = _props6.onTitleMouseEnter; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - onItemHover({ - key: key, - hover: true - }); - onTitleMouseEnter({ - key: key, - domEvent: domEvent + //! moment.js locale configuration + + var fo = moment.defineLocale('fo', { + months: 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split( + '_' + ), + monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'), + weekdays: 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split( + '_' + ), + weekdaysShort: 'sun_mán_týs_mik_hós_frí_ley'.split('_'), + weekdaysMin: 'su_má_tý_mi_hó_fr_le'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D. MMMM, YYYY HH:mm', + }, + calendar: { + sameDay: '[Í dag kl.] LT', + nextDay: '[Í morgin kl.] LT', + nextWeek: 'dddd [kl.] LT', + lastDay: '[Í gjár kl.] LT', + lastWeek: '[síðstu] dddd [kl] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'um %s', + past: '%s síðani', + s: 'fá sekund', + ss: '%d sekundir', + m: 'ein minuttur', + mm: '%d minuttir', + h: 'ein tími', + hh: '%d tímar', + d: 'ein dagur', + dd: '%d dagar', + M: 'ein mánaður', + MM: '%d mánaðir', + y: 'eitt ár', + yy: '%d ár', + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, }); - }; - this.onTitleMouseLeave = function (e) { - var _props7 = _this3.props, - parentMenu = _props7.parentMenu, - eventKey = _props7.eventKey, - onItemHover = _props7.onItemHover, - onTitleMouseLeave = _props7.onTitleMouseLeave; + return fo; - parentMenu.subMenuInstance = _this3; - onItemHover({ - key: eventKey, - hover: false - }); - onTitleMouseLeave({ - key: eventKey, - domEvent: e - }); - }; + }))); + + +/***/ }), +/* 469 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : French [fr] + //! author : John Fischer : https://github.com/jfroffice - this.onTitleClick = function (e) { - var props = _this3.props; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - props.onTitleClick({ - key: props.eventKey, - domEvent: e - }); - if (props.triggerSubMenuAction === 'hover') { - return; - } - _this3.triggerOpenChange(!props.isOpen, 'click'); - updateDefaultActiveFirst(props.store, _this3.props.eventKey, false); - }; + //! moment.js locale configuration - this.onSubMenuClick = function (info) { - // in the case of overflowed submenu - // onClick is not copied over - if (typeof _this3.props.onClick === 'function') { - _this3.props.onClick(_this3.addKeyPath(info)); - } - }; + var monthsStrictRegex = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i, + monthsShortStrictRegex = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i, + monthsRegex = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i, + monthsParse = [ + /^janv/i, + /^févr/i, + /^mars/i, + /^avr/i, + /^mai/i, + /^juin/i, + /^juil/i, + /^août/i, + /^sept/i, + /^oct/i, + /^nov/i, + /^déc/i, + ]; - this.onSelect = function (info) { - _this3.props.onSelect(info); - }; + var fr = moment.defineLocale('fr', { + months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split( + '_' + ), + monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split( + '_' + ), + monthsRegex: monthsRegex, + monthsShortRegex: monthsRegex, + monthsStrictRegex: monthsStrictRegex, + monthsShortStrictRegex: monthsShortStrictRegex, + monthsParse: monthsParse, + longMonthsParse: monthsParse, + shortMonthsParse: monthsParse, + weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), + weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), + weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Aujourd’hui à] LT', + nextDay: '[Demain à] LT', + nextWeek: 'dddd [à] LT', + lastDay: '[Hier à] LT', + lastWeek: 'dddd [dernier à] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'dans %s', + past: 'il y a %s', + s: 'quelques secondes', + ss: '%d secondes', + m: 'une minute', + mm: '%d minutes', + h: 'une heure', + hh: '%d heures', + d: 'un jour', + dd: '%d jours', + M: 'un mois', + MM: '%d mois', + y: 'un an', + yy: '%d ans', + }, + dayOfMonthOrdinalParse: /\d{1,2}(er|)/, + ordinal: function (number, period) { + switch (period) { + // TODO: Return 'e' when day of month > 1. Move this case inside + // block for masculine words below. + // See https://github.com/moment/moment/issues/3375 + case 'D': + return number + (number === 1 ? 'er' : ''); - this.onDeselect = function (info) { - _this3.props.onDeselect(info); - }; + // Words with masculine grammatical gender: mois, trimestre, jour + default: + case 'M': + case 'Q': + case 'DDD': + case 'd': + return number + (number === 1 ? 'er' : 'e'); - this.getPrefixCls = function () { - return _this3.props.rootPrefixCls + '-submenu'; - }; + // Words with feminine grammatical gender: semaine + case 'w': + case 'W': + return number + (number === 1 ? 're' : 'e'); + } + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - this.getActiveClassName = function () { - return _this3.getPrefixCls() + '-active'; - }; + return fr; - this.getDisabledClassName = function () { - return _this3.getPrefixCls() + '-disabled'; - }; + }))); + + +/***/ }), +/* 470 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : French (Canada) [fr-ca] + //! author : Jonathan Abourbih : https://github.com/jonbca - this.getSelectedClassName = function () { - return _this3.getPrefixCls() + '-selected'; - }; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - this.getOpenClassName = function () { - return _this3.props.rootPrefixCls + '-submenu-open'; - }; + //! moment.js locale configuration - this.saveMenuInstance = function (c) { - // children menu instance - _this3.menuInstance = c; - }; + var frCa = moment.defineLocale('fr-ca', { + months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split( + '_' + ), + monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), + weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), + weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY-MM-DD', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Aujourd’hui à] LT', + nextDay: '[Demain à] LT', + nextWeek: 'dddd [à] LT', + lastDay: '[Hier à] LT', + lastWeek: 'dddd [dernier à] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'dans %s', + past: 'il y a %s', + s: 'quelques secondes', + ss: '%d secondes', + m: 'une minute', + mm: '%d minutes', + h: 'une heure', + hh: '%d heures', + d: 'un jour', + dd: '%d jours', + M: 'un mois', + MM: '%d mois', + y: 'un an', + yy: '%d ans', + }, + dayOfMonthOrdinalParse: /\d{1,2}(er|e)/, + ordinal: function (number, period) { + switch (period) { + // Words with masculine grammatical gender: mois, trimestre, jour + default: + case 'M': + case 'Q': + case 'D': + case 'DDD': + case 'd': + return number + (number === 1 ? 'er' : 'e'); - this.addKeyPath = function (info) { - return (0, _extends4['default'])({}, info, { - keyPath: (info.keyPath || []).concat(_this3.props.eventKey) + // Words with feminine grammatical gender: semaine + case 'w': + case 'W': + return number + (number === 1 ? 're' : 'e'); + } + }, }); - }; - - this.triggerOpenChange = function (open, type) { - var key = _this3.props.eventKey; - var openChange = function openChange() { - _this3.onOpenChange({ - key: key, - item: _this3, - trigger: type, - open: open - }); - }; - if (type === 'mouseenter') { - // make sure mouseenter happen after other menu item's mouseleave - _this3.mouseenterTimeout = setTimeout(function () { - openChange(); - }, 0); - } else { - openChange(); - } - }; - this.isChildrenSelected = function () { - var ret = { find: false }; - (0, _util.loopMenuItemRecursively)(_this3.props.children, _this3.props.selectedKeys, ret); - return ret.find; - }; + return frCa; - this.isOpen = function () { - return _this3.props.openKeys.indexOf(_this3.props.eventKey) !== -1; - }; + }))); + + +/***/ }), +/* 471 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : French (Switzerland) [fr-ch] + //! author : Gaspard Bucher : https://github.com/gaspard - this.adjustWidth = function () { - /* istanbul ignore if */ - if (!_this3.subMenuTitle || !_this3.menuInstance) { - return; - } - var popupMenu = _reactDom2['default'].findDOMNode(_this3.menuInstance); - if (popupMenu.offsetWidth >= _this3.subMenuTitle.offsetWidth) { - return; - } + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - /* istanbul ignore next */ - popupMenu.style.minWidth = _this3.subMenuTitle.offsetWidth + 'px'; - }; + //! moment.js locale configuration - this.saveSubMenuTitle = function (subMenuTitle) { - _this3.subMenuTitle = subMenuTitle; - }; - }; + var frCh = moment.defineLocale('fr-ch', { + months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split( + '_' + ), + monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), + weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), + weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Aujourd’hui à] LT', + nextDay: '[Demain à] LT', + nextWeek: 'dddd [à] LT', + lastDay: '[Hier à] LT', + lastWeek: 'dddd [dernier à] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'dans %s', + past: 'il y a %s', + s: 'quelques secondes', + ss: '%d secondes', + m: 'une minute', + mm: '%d minutes', + h: 'une heure', + hh: '%d heures', + d: 'un jour', + dd: '%d jours', + M: 'un mois', + MM: '%d mois', + y: 'un an', + yy: '%d ans', + }, + dayOfMonthOrdinalParse: /\d{1,2}(er|e)/, + ordinal: function (number, period) { + switch (period) { + // Words with masculine grammatical gender: mois, trimestre, jour + default: + case 'M': + case 'Q': + case 'D': + case 'DDD': + case 'd': + return number + (number === 1 ? 'er' : 'e'); - var connected = (0, _miniStore.connect)(function (_ref, _ref2) { - var openKeys = _ref.openKeys, - activeKey = _ref.activeKey, - selectedKeys = _ref.selectedKeys; - var eventKey = _ref2.eventKey, - subMenuKey = _ref2.subMenuKey; - return { - isOpen: openKeys.indexOf(eventKey) > -1, - active: activeKey[subMenuKey] === eventKey, - selectedKeys: selectedKeys - }; - })(SubMenu); + // Words with feminine grammatical gender: semaine + case 'w': + case 'W': + return number + (number === 1 ? 're' : 'e'); + } + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - connected.isSubMenu = true; + return frCh; - exports['default'] = connected; + }))); + /***/ }), -/* 585 */ -/***/ (function(module, exports) { +/* 472 */ +/***/ (function(module, exports, __webpack_require__) { - 'use strict'; + //! moment.js locale configuration + //! locale : Frisian [fy] + //! author : Robin van der Vliet : https://github.com/robin0van0der0v - exports.__esModule = true; - var autoAdjustOverflow = { - adjustX: 1, - adjustY: 1 - }; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var placements = exports.placements = { - topLeft: { - points: ['bl', 'tl'], - overflow: autoAdjustOverflow, - offset: [0, -7] - }, - bottomLeft: { - points: ['tl', 'bl'], - overflow: autoAdjustOverflow, - offset: [0, 7] - }, - leftTop: { - points: ['tr', 'tl'], - overflow: autoAdjustOverflow, - offset: [-4, 0] - }, - rightTop: { - points: ['tl', 'tr'], - overflow: autoAdjustOverflow, - offset: [4, 0] - } - }; + //! moment.js locale configuration + + var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split( + '_' + ), + monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split( + '_' + ); + + var fy = moment.defineLocale('fy', { + months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split( + '_' + ), + monthsShort: function (m, format) { + if (!m) { + return monthsShortWithDots; + } else if (/-MMM-/.test(format)) { + return monthsShortWithoutDots[m.month()]; + } else { + return monthsShortWithDots[m.month()]; + } + }, + monthsParseExact: true, + weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split( + '_' + ), + weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'), + weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD-MM-YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[hjoed om] LT', + nextDay: '[moarn om] LT', + nextWeek: 'dddd [om] LT', + lastDay: '[juster om] LT', + lastWeek: '[ôfrûne] dddd [om] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'oer %s', + past: '%s lyn', + s: 'in pear sekonden', + ss: '%d sekonden', + m: 'ien minút', + mm: '%d minuten', + h: 'ien oere', + hh: '%d oeren', + d: 'ien dei', + dd: '%d dagen', + M: 'ien moanne', + MM: '%d moannen', + y: 'ien jier', + yy: '%d jierren', + }, + dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, + ordinal: function (number) { + return ( + number + + (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de') + ); + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - exports['default'] = placements; + return fy; + + }))); + /***/ }), -/* 586 */ +/* 473 */ /***/ (function(module, exports, __webpack_require__) { - 'use strict'; - - exports.__esModule = true; - exports.MenuItem = undefined; - - var _extends2 = __webpack_require__(316); - - var _extends3 = _interopRequireDefault(_extends2); - - var _classCallCheck2 = __webpack_require__(318); - - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - - var _possibleConstructorReturn2 = __webpack_require__(319); - - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - - var _inherits2 = __webpack_require__(350); - - var _inherits3 = _interopRequireDefault(_inherits2); - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _reactDom = __webpack_require__(2); - - var _reactDom2 = _interopRequireDefault(_reactDom); - - var _propTypes = __webpack_require__(6); - - var _propTypes2 = _interopRequireDefault(_propTypes); - - var _KeyCode = __webpack_require__(400); - - var _KeyCode2 = _interopRequireDefault(_KeyCode); - - var _classnames = __webpack_require__(5); + //! moment.js locale configuration + //! locale : Irish or Irish Gaelic [ga] + //! author : André Silva : https://github.com/askpt - var _classnames2 = _interopRequireDefault(_classnames); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _domScrollIntoView = __webpack_require__(383); + //! moment.js locale configuration - var _domScrollIntoView2 = _interopRequireDefault(_domScrollIntoView); + var months = [ + 'Eanáir', + 'Feabhra', + 'Márta', + 'Aibreán', + 'Bealtaine', + 'Meitheamh', + 'Iúil', + 'Lúnasa', + 'Meán Fómhair', + 'Deireadh Fómhair', + 'Samhain', + 'Nollaig', + ], + monthsShort = [ + 'Ean', + 'Feabh', + 'Márt', + 'Aib', + 'Beal', + 'Meith', + 'Iúil', + 'Lún', + 'M.F.', + 'D.F.', + 'Samh', + 'Noll', + ], + weekdays = [ + 'Dé Domhnaigh', + 'Dé Luain', + 'Dé Máirt', + 'Dé Céadaoin', + 'Déardaoin', + 'Dé hAoine', + 'Dé Sathairn', + ], + weekdaysShort = ['Domh', 'Luan', 'Máirt', 'Céad', 'Déar', 'Aoine', 'Sath'], + weekdaysMin = ['Do', 'Lu', 'Má', 'Cé', 'Dé', 'A', 'Sa']; - var _miniStore = __webpack_require__(303); + var ga = moment.defineLocale('ga', { + months: months, + monthsShort: monthsShort, + monthsParseExact: true, + weekdays: weekdays, + weekdaysShort: weekdaysShort, + weekdaysMin: weekdaysMin, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Inniu ag] LT', + nextDay: '[Amárach ag] LT', + nextWeek: 'dddd [ag] LT', + lastDay: '[Inné ag] LT', + lastWeek: 'dddd [seo caite] [ag] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'i %s', + past: '%s ó shin', + s: 'cúpla soicind', + ss: '%d soicind', + m: 'nóiméad', + mm: '%d nóiméad', + h: 'uair an chloig', + hh: '%d uair an chloig', + d: 'lá', + dd: '%d lá', + M: 'mí', + MM: '%d míonna', + y: 'bliain', + yy: '%d bliain', + }, + dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/, + ordinal: function (number) { + var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh'; + return number + output; + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - var _util = __webpack_require__(582); + return ga; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + }))); + + +/***/ }), +/* 474 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Scottish Gaelic [gd] + //! author : Jon Ashdown : https://github.com/jonashdown - /* eslint react/no-is-mounted:0 */ + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var MenuItem = exports.MenuItem = function (_React$Component) { - (0, _inherits3['default'])(MenuItem, _React$Component); + //! moment.js locale configuration - function MenuItem(props) { - (0, _classCallCheck3['default'])(this, MenuItem); + var months = [ + 'Am Faoilleach', + 'An Gearran', + 'Am Màrt', + 'An Giblean', + 'An Cèitean', + 'An t-Ògmhios', + 'An t-Iuchar', + 'An Lùnastal', + 'An t-Sultain', + 'An Dàmhair', + 'An t-Samhain', + 'An Dùbhlachd', + ], + monthsShort = [ + 'Faoi', + 'Gear', + 'Màrt', + 'Gibl', + 'Cèit', + 'Ògmh', + 'Iuch', + 'Lùn', + 'Sult', + 'Dàmh', + 'Samh', + 'Dùbh', + ], + weekdays = [ + 'Didòmhnaich', + 'Diluain', + 'Dimàirt', + 'Diciadain', + 'Diardaoin', + 'Dihaoine', + 'Disathairne', + ], + weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'], + weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa']; - var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props)); + var gd = moment.defineLocale('gd', { + months: months, + monthsShort: monthsShort, + monthsParseExact: true, + weekdays: weekdays, + weekdaysShort: weekdaysShort, + weekdaysMin: weekdaysMin, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[An-diugh aig] LT', + nextDay: '[A-màireach aig] LT', + nextWeek: 'dddd [aig] LT', + lastDay: '[An-dè aig] LT', + lastWeek: 'dddd [seo chaidh] [aig] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'ann an %s', + past: 'bho chionn %s', + s: 'beagan diogan', + ss: '%d diogan', + m: 'mionaid', + mm: '%d mionaidean', + h: 'uair', + hh: '%d uairean', + d: 'latha', + dd: '%d latha', + M: 'mìos', + MM: '%d mìosan', + y: 'bliadhna', + yy: '%d bliadhna', + }, + dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/, + ordinal: function (number) { + var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh'; + return number + output; + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - _this.onKeyDown = function (e) { - var keyCode = e.keyCode; - if (keyCode === _KeyCode2['default'].ENTER) { - _this.onClick(e); - return true; - } - }; + return gd; - _this.onMouseLeave = function (e) { - var _this$props = _this.props, - eventKey = _this$props.eventKey, - onItemHover = _this$props.onItemHover, - onMouseLeave = _this$props.onMouseLeave; + }))); + + +/***/ }), +/* 475 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Galician [gl] + //! author : Juan G. Hurtado : https://github.com/juanghurtado - onItemHover({ - key: eventKey, - hover: false - }); - onMouseLeave({ - key: eventKey, - domEvent: e - }); - }; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - _this.onMouseEnter = function (e) { - var _this$props2 = _this.props, - eventKey = _this$props2.eventKey, - onItemHover = _this$props2.onItemHover, - onMouseEnter = _this$props2.onMouseEnter; + //! moment.js locale configuration - onItemHover({ - key: eventKey, - hover: true - }); - onMouseEnter({ - key: eventKey, - domEvent: e - }); - }; + var gl = moment.defineLocale('gl', { + months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split( + '_' + ), + monthsShort: 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'), + weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'), + weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D [de] MMMM [de] YYYY', + LLL: 'D [de] MMMM [de] YYYY H:mm', + LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm', + }, + calendar: { + sameDay: function () { + return '[hoxe ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT'; + }, + nextDay: function () { + return '[mañá ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT'; + }, + nextWeek: function () { + return 'dddd [' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT'; + }, + lastDay: function () { + return '[onte ' + (this.hours() !== 1 ? 'á' : 'a') + '] LT'; + }, + lastWeek: function () { + return ( + '[o] dddd [pasado ' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT' + ); + }, + sameElse: 'L', + }, + relativeTime: { + future: function (str) { + if (str.indexOf('un') === 0) { + return 'n' + str; + } + return 'en ' + str; + }, + past: 'hai %s', + s: 'uns segundos', + ss: '%d segundos', + m: 'un minuto', + mm: '%d minutos', + h: 'unha hora', + hh: '%d horas', + d: 'un día', + dd: '%d días', + M: 'un mes', + MM: '%d meses', + y: 'un ano', + yy: '%d anos', + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - _this.onClick = function (e) { - var _this$props3 = _this.props, - eventKey = _this$props3.eventKey, - multiple = _this$props3.multiple, - onClick = _this$props3.onClick, - onSelect = _this$props3.onSelect, - onDeselect = _this$props3.onDeselect, - isSelected = _this$props3.isSelected; + return gl; - var info = { - key: eventKey, - keyPath: [eventKey], - item: _this, - domEvent: e - }; - onClick(info); - if (multiple) { - if (isSelected) { - onDeselect(info); - } else { - onSelect(info); - } - } else if (!isSelected) { - onSelect(info); - } - }; + }))); + + +/***/ }), +/* 476 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Konkani Devanagari script [gom-deva] + //! author : The Discoverer : https://github.com/WikiDiscoverer - return _this; - } + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - MenuItem.prototype.componentDidMount = function componentDidMount() { - // invoke customized ref to expose component to mixin - this.callRef(); - }; + //! moment.js locale configuration - MenuItem.prototype.componentDidUpdate = function componentDidUpdate() { - if (this.props.active) { - (0, _domScrollIntoView2['default'])(_reactDom2['default'].findDOMNode(this), _reactDom2['default'].findDOMNode(this.props.parentMenu), { - onlyScrollIfNeeded: true - }); + function processRelativeTime(number, withoutSuffix, key, isFuture) { + var format = { + s: ['थोडया सॅकंडांनी', 'थोडे सॅकंड'], + ss: [number + ' सॅकंडांनी', number + ' सॅकंड'], + m: ['एका मिणटान', 'एक मिनूट'], + mm: [number + ' मिणटांनी', number + ' मिणटां'], + h: ['एका वरान', 'एक वर'], + hh: [number + ' वरांनी', number + ' वरां'], + d: ['एका दिसान', 'एक दीस'], + dd: [number + ' दिसांनी', number + ' दीस'], + M: ['एका म्हयन्यान', 'एक म्हयनो'], + MM: [number + ' म्हयन्यानी', number + ' म्हयने'], + y: ['एका वर्सान', 'एक वर्स'], + yy: [number + ' वर्सांनी', number + ' वर्सां'], + }; + return isFuture ? format[key][0] : format[key][1]; } - this.callRef(); - }; - MenuItem.prototype.componentWillUnmount = function componentWillUnmount() { - var props = this.props; - if (props.onDestroy) { - props.onDestroy(props.eventKey); - } - }; + var gomDeva = moment.defineLocale('gom-deva', { + months: { + standalone: 'जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split( + '_' + ), + format: 'जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या'.split( + '_' + ), + isFormat: /MMMM(\s)+D[oD]?/, + }, + monthsShort: 'जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार'.split('_'), + weekdaysShort: 'आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.'.split('_'), + weekdaysMin: 'आ_सो_मं_बु_ब्रे_सु_शे'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'A h:mm [वाजतां]', + LTS: 'A h:mm:ss [वाजतां]', + L: 'DD-MM-YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY A h:mm [वाजतां]', + LLLL: 'dddd, MMMM Do, YYYY, A h:mm [वाजतां]', + llll: 'ddd, D MMM YYYY, A h:mm [वाजतां]', + }, + calendar: { + sameDay: '[आयज] LT', + nextDay: '[फाल्यां] LT', + nextWeek: '[फुडलो] dddd[,] LT', + lastDay: '[काल] LT', + lastWeek: '[फाटलो] dddd[,] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s', + past: '%s आदीं', + s: processRelativeTime, + ss: processRelativeTime, + m: processRelativeTime, + mm: processRelativeTime, + h: processRelativeTime, + hh: processRelativeTime, + d: processRelativeTime, + dd: processRelativeTime, + M: processRelativeTime, + MM: processRelativeTime, + y: processRelativeTime, + yy: processRelativeTime, + }, + dayOfMonthOrdinalParse: /\d{1,2}(वेर)/, + ordinal: function (number, period) { + switch (period) { + // the ordinal 'वेर' only applies to day of the month + case 'D': + return number + 'वेर'; + default: + case 'M': + case 'Q': + case 'DDD': + case 'd': + case 'w': + case 'W': + return number; + } + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + meridiemParse: /राती|सकाळीं|दनपारां|सांजे/, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === 'राती') { + return hour < 4 ? hour : hour + 12; + } else if (meridiem === 'सकाळीं') { + return hour; + } else if (meridiem === 'दनपारां') { + return hour > 12 ? hour : hour + 12; + } else if (meridiem === 'सांजे') { + return hour + 12; + } + }, + meridiem: function (hour, minute, isLower) { + if (hour < 4) { + return 'राती'; + } else if (hour < 12) { + return 'सकाळीं'; + } else if (hour < 16) { + return 'दनपारां'; + } else if (hour < 20) { + return 'सांजे'; + } else { + return 'राती'; + } + }, + }); - MenuItem.prototype.getPrefixCls = function getPrefixCls() { - return this.props.rootPrefixCls + '-item'; - }; + return gomDeva; - MenuItem.prototype.getActiveClassName = function getActiveClassName() { - return this.getPrefixCls() + '-active'; - }; + }))); + + +/***/ }), +/* 477 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Konkani Latin script [gom-latn] + //! author : The Discoverer : https://github.com/WikiDiscoverer - MenuItem.prototype.getSelectedClassName = function getSelectedClassName() { - return this.getPrefixCls() + '-selected'; - }; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - MenuItem.prototype.getDisabledClassName = function getDisabledClassName() { - return this.getPrefixCls() + '-disabled'; - }; + //! moment.js locale configuration - MenuItem.prototype.callRef = function callRef() { - if (this.props.manualRef) { - this.props.manualRef(this); + function processRelativeTime(number, withoutSuffix, key, isFuture) { + var format = { + s: ['thoddea sekondamni', 'thodde sekond'], + ss: [number + ' sekondamni', number + ' sekond'], + m: ['eka mintan', 'ek minut'], + mm: [number + ' mintamni', number + ' mintam'], + h: ['eka voran', 'ek vor'], + hh: [number + ' voramni', number + ' voram'], + d: ['eka disan', 'ek dis'], + dd: [number + ' disamni', number + ' dis'], + M: ['eka mhoinean', 'ek mhoino'], + MM: [number + ' mhoineamni', number + ' mhoine'], + y: ['eka vorsan', 'ek voros'], + yy: [number + ' vorsamni', number + ' vorsam'], + }; + return isFuture ? format[key][0] : format[key][1]; } - }; - - MenuItem.prototype.render = function render() { - var _classNames; - - var props = (0, _extends3['default'])({}, this.props); - var className = (0, _classnames2['default'])(this.getPrefixCls(), props.className, (_classNames = {}, _classNames[this.getActiveClassName()] = !props.disabled && props.active, _classNames[this.getSelectedClassName()] = props.isSelected, _classNames[this.getDisabledClassName()] = props.disabled, _classNames)); - var attrs = (0, _extends3['default'])({}, props.attribute, { - title: props.title, - className: className, - // set to menuitem by default - role: props.role || 'menuitem', - 'aria-disabled': props.disabled - }); - if (props.role === 'option') { - // overwrite to option - attrs = (0, _extends3['default'])({}, attrs, { - role: 'option', - 'aria-selected': props.isSelected - }); - } else if (props.role === null || props.role === 'none') { - // sometimes we want to specify role inside
  • element - //
  • Link
  • would be a good example - // in this case the role on
  • should be "none" to - // remove the implied listitem role. - // https://www.w3.org/TR/wai-aria-practices-1.1/examples/menubar/menubar-1/menubar-1.html - attrs.role = 'none'; - } - // In case that onClick/onMouseLeave/onMouseEnter is passed down from owner - var mouseEvent = { - onClick: props.disabled ? null : this.onClick, - onMouseLeave: props.disabled ? null : this.onMouseLeave, - onMouseEnter: props.disabled ? null : this.onMouseEnter - }; - var style = (0, _extends3['default'])({}, props.style); - if (props.mode === 'inline') { - style.paddingLeft = props.inlineIndent * props.level; - } - _util.menuAllProps.forEach(function (key) { - return delete props[key]; + var gomLatn = moment.defineLocale('gom-latn', { + months: { + standalone: 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split( + '_' + ), + format: 'Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea'.split( + '_' + ), + isFormat: /MMMM(\s)+D[oD]?/, + }, + monthsShort: 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split( + '_' + ), + monthsParseExact: true, + weekdays: "Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split('_'), + weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'), + weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'A h:mm [vazta]', + LTS: 'A h:mm:ss [vazta]', + L: 'DD-MM-YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY A h:mm [vazta]', + LLLL: 'dddd, MMMM Do, YYYY, A h:mm [vazta]', + llll: 'ddd, D MMM YYYY, A h:mm [vazta]', + }, + calendar: { + sameDay: '[Aiz] LT', + nextDay: '[Faleam] LT', + nextWeek: '[Fuddlo] dddd[,] LT', + lastDay: '[Kal] LT', + lastWeek: '[Fattlo] dddd[,] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s', + past: '%s adim', + s: processRelativeTime, + ss: processRelativeTime, + m: processRelativeTime, + mm: processRelativeTime, + h: processRelativeTime, + hh: processRelativeTime, + d: processRelativeTime, + dd: processRelativeTime, + M: processRelativeTime, + MM: processRelativeTime, + y: processRelativeTime, + yy: processRelativeTime, + }, + dayOfMonthOrdinalParse: /\d{1,2}(er)/, + ordinal: function (number, period) { + switch (period) { + // the ordinal 'er' only applies to day of the month + case 'D': + return number + 'er'; + default: + case 'M': + case 'Q': + case 'DDD': + case 'd': + case 'w': + case 'W': + return number; + } + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + meridiemParse: /rati|sokallim|donparam|sanje/, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === 'rati') { + return hour < 4 ? hour : hour + 12; + } else if (meridiem === 'sokallim') { + return hour; + } else if (meridiem === 'donparam') { + return hour > 12 ? hour : hour + 12; + } else if (meridiem === 'sanje') { + return hour + 12; + } + }, + meridiem: function (hour, minute, isLower) { + if (hour < 4) { + return 'rati'; + } else if (hour < 12) { + return 'sokallim'; + } else if (hour < 16) { + return 'donparam'; + } else if (hour < 20) { + return 'sanje'; + } else { + return 'rati'; + } + }, }); - var icon = this.props.itemIcon; - if (typeof this.props.itemIcon === 'function') { - icon = _react2['default'].createElement(this.props.itemIcon, this.props); - } - return _react2['default'].createElement( - 'li', - (0, _extends3['default'])({}, props, attrs, mouseEvent, { - style: style - }), - props.children, - icon - ); - }; - - return MenuItem; - }(_react2['default'].Component); - - MenuItem.propTypes = { - attribute: _propTypes2['default'].object, - rootPrefixCls: _propTypes2['default'].string, - eventKey: _propTypes2['default'].string, - active: _propTypes2['default'].bool, - children: _propTypes2['default'].any, - selectedKeys: _propTypes2['default'].array, - disabled: _propTypes2['default'].bool, - title: _propTypes2['default'].string, - onItemHover: _propTypes2['default'].func, - onSelect: _propTypes2['default'].func, - onClick: _propTypes2['default'].func, - onDeselect: _propTypes2['default'].func, - parentMenu: _propTypes2['default'].object, - onDestroy: _propTypes2['default'].func, - onMouseEnter: _propTypes2['default'].func, - onMouseLeave: _propTypes2['default'].func, - multiple: _propTypes2['default'].bool, - isSelected: _propTypes2['default'].bool, - manualRef: _propTypes2['default'].func, - itemIcon: _propTypes2['default'].oneOfType([_propTypes2['default'].func, _propTypes2['default'].node]) - }; - MenuItem.defaultProps = { - onSelect: _util.noop, - onMouseEnter: _util.noop, - onMouseLeave: _util.noop, - manualRef: _util.noop - }; - - - MenuItem.isMenuItem = true; - var connected = (0, _miniStore.connect)(function (_ref, _ref2) { - var activeKey = _ref.activeKey, - selectedKeys = _ref.selectedKeys; - var eventKey = _ref2.eventKey, - subMenuKey = _ref2.subMenuKey; - return { - active: activeKey[subMenuKey] === eventKey, - isSelected: selectedKeys.indexOf(eventKey) !== -1 - }; - })(MenuItem); + return gomLatn; - exports['default'] = connected; + }))); + /***/ }), -/* 587 */ +/* 478 */ /***/ (function(module, exports, __webpack_require__) { - 'use strict'; - - exports.__esModule = true; + //! moment.js locale configuration + //! locale : Gujarati [gu] + //! author : Kaushik Thanki : https://github.com/Kaushik1987 - var _extends2 = __webpack_require__(316); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _extends3 = _interopRequireDefault(_extends2); + //! moment.js locale configuration - var _objectWithoutProperties2 = __webpack_require__(379); + var symbolMap = { + '1': '૧', + '2': '૨', + '3': '૩', + '4': '૪', + '5': '૫', + '6': '૬', + '7': '૭', + '8': '૮', + '9': '૯', + '0': '૦', + }, + numberMap = { + '૧': '1', + '૨': '2', + '૩': '3', + '૪': '4', + '૫': '5', + '૬': '6', + '૭': '7', + '૮': '8', + '૯': '9', + '૦': '0', + }; - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); + var gu = moment.defineLocale('gu', { + months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split( + '_' + ), + monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split( + '_' + ), + weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'), + weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'), + longDateFormat: { + LT: 'A h:mm વાગ્યે', + LTS: 'A h:mm:ss વાગ્યે', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm વાગ્યે', + LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે', + }, + calendar: { + sameDay: '[આજ] LT', + nextDay: '[કાલે] LT', + nextWeek: 'dddd, LT', + lastDay: '[ગઇકાલે] LT', + lastWeek: '[પાછલા] dddd, LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s મા', + past: '%s પહેલા', + s: 'અમુક પળો', + ss: '%d સેકંડ', + m: 'એક મિનિટ', + mm: '%d મિનિટ', + h: 'એક કલાક', + hh: '%d કલાક', + d: 'એક દિવસ', + dd: '%d દિવસ', + M: 'એક મહિનો', + MM: '%d મહિનો', + y: 'એક વર્ષ', + yy: '%d વર્ષ', + }, + preparse: function (string) { + return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) { + return numberMap[match]; + }); + }, + postformat: function (string) { + return string.replace(/\d/g, function (match) { + return symbolMap[match]; + }); + }, + // Gujarati notation for meridiems are quite fuzzy in practice. While there exists + // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati. + meridiemParse: /રાત|બપોર|સવાર|સાંજ/, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === 'રાત') { + return hour < 4 ? hour : hour + 12; + } else if (meridiem === 'સવાર') { + return hour; + } else if (meridiem === 'બપોર') { + return hour >= 10 ? hour : hour + 12; + } else if (meridiem === 'સાંજ') { + return hour + 12; + } + }, + meridiem: function (hour, minute, isLower) { + if (hour < 4) { + return 'રાત'; + } else if (hour < 10) { + return 'સવાર'; + } else if (hour < 17) { + return 'બપોર'; + } else if (hour < 20) { + return 'સાંજ'; + } else { + return 'રાત'; + } + }, + week: { + dow: 0, // Sunday is the first day of the week. + doy: 6, // The week that contains Jan 6th is the first week of the year. + }, + }); - var _classCallCheck2 = __webpack_require__(318); + return gu; - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); + }))); + + +/***/ }), +/* 479 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Hebrew [he] + //! author : Tomer Cohen : https://github.com/tomer + //! author : Moshe Simantov : https://github.com/DevelopmentIL + //! author : Tal Ater : https://github.com/TalAter - var _possibleConstructorReturn2 = __webpack_require__(319); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); + //! moment.js locale configuration - var _inherits2 = __webpack_require__(350); + var he = moment.defineLocale('he', { + months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split( + '_' + ), + monthsShort: 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split( + '_' + ), + weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'), + weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'), + weekdaysMin: 'א_ב_ג_ד_ה_ו_ש'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D [ב]MMMM YYYY', + LLL: 'D [ב]MMMM YYYY HH:mm', + LLLL: 'dddd, D [ב]MMMM YYYY HH:mm', + l: 'D/M/YYYY', + ll: 'D MMM YYYY', + lll: 'D MMM YYYY HH:mm', + llll: 'ddd, D MMM YYYY HH:mm', + }, + calendar: { + sameDay: '[היום ב־]LT', + nextDay: '[מחר ב־]LT', + nextWeek: 'dddd [בשעה] LT', + lastDay: '[אתמול ב־]LT', + lastWeek: '[ביום] dddd [האחרון בשעה] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'בעוד %s', + past: 'לפני %s', + s: 'מספר שניות', + ss: '%d שניות', + m: 'דקה', + mm: '%d דקות', + h: 'שעה', + hh: function (number) { + if (number === 2) { + return 'שעתיים'; + } + return number + ' שעות'; + }, + d: 'יום', + dd: function (number) { + if (number === 2) { + return 'יומיים'; + } + return number + ' ימים'; + }, + M: 'חודש', + MM: function (number) { + if (number === 2) { + return 'חודשיים'; + } + return number + ' חודשים'; + }, + y: 'שנה', + yy: function (number) { + if (number === 2) { + return 'שנתיים'; + } else if (number % 10 === 0 && number !== 10) { + return number + ' שנה'; + } + return number + ' שנים'; + }, + }, + meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i, + isPM: function (input) { + return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input); + }, + meridiem: function (hour, minute, isLower) { + if (hour < 5) { + return 'לפנות בוקר'; + } else if (hour < 10) { + return 'בבוקר'; + } else if (hour < 12) { + return isLower ? 'לפנה"צ' : 'לפני הצהריים'; + } else if (hour < 18) { + return isLower ? 'אחה"צ' : 'אחרי הצהריים'; + } else { + return 'בערב'; + } + }, + }); - var _inherits3 = _interopRequireDefault(_inherits2); + return he; - var _react = __webpack_require__(1); + }))); + + +/***/ }), +/* 480 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Hindi [hi] + //! author : Mayank Singhal : https://github.com/mayanksinghal - var _react2 = _interopRequireDefault(_react); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _propTypes = __webpack_require__(6); + //! moment.js locale configuration - var _propTypes2 = _interopRequireDefault(_propTypes); + var symbolMap = { + '1': '१', + '2': '२', + '3': '३', + '4': '४', + '5': '५', + '6': '६', + '7': '७', + '8': '८', + '9': '९', + '0': '०', + }, + numberMap = { + '१': '1', + '२': '2', + '३': '3', + '४': '4', + '५': '5', + '६': '6', + '७': '7', + '८': '8', + '९': '9', + '०': '0', + }; - var _util = __webpack_require__(582); + var hi = moment.defineLocale('hi', { + months: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split( + '_' + ), + monthsShort: 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'), + weekdaysShort: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'), + weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'), + longDateFormat: { + LT: 'A h:mm बजे', + LTS: 'A h:mm:ss बजे', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm बजे', + LLLL: 'dddd, D MMMM YYYY, A h:mm बजे', + }, + calendar: { + sameDay: '[आज] LT', + nextDay: '[कल] LT', + nextWeek: 'dddd, LT', + lastDay: '[कल] LT', + lastWeek: '[पिछले] dddd, LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s में', + past: '%s पहले', + s: 'कुछ ही क्षण', + ss: '%d सेकंड', + m: 'एक मिनट', + mm: '%d मिनट', + h: 'एक घंटा', + hh: '%d घंटे', + d: 'एक दिन', + dd: '%d दिन', + M: 'एक महीने', + MM: '%d महीने', + y: 'एक वर्ष', + yy: '%d वर्ष', + }, + preparse: function (string) { + return string.replace(/[१२३४५६७८९०]/g, function (match) { + return numberMap[match]; + }); + }, + postformat: function (string) { + return string.replace(/\d/g, function (match) { + return symbolMap[match]; + }); + }, + // Hindi notation for meridiems are quite fuzzy in practice. While there exists + // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi. + meridiemParse: /रात|सुबह|दोपहर|शाम/, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === 'रात') { + return hour < 4 ? hour : hour + 12; + } else if (meridiem === 'सुबह') { + return hour; + } else if (meridiem === 'दोपहर') { + return hour >= 10 ? hour : hour + 12; + } else if (meridiem === 'शाम') { + return hour + 12; + } + }, + meridiem: function (hour, minute, isLower) { + if (hour < 4) { + return 'रात'; + } else if (hour < 10) { + return 'सुबह'; + } else if (hour < 17) { + return 'दोपहर'; + } else if (hour < 20) { + return 'शाम'; + } else { + return 'रात'; + } + }, + week: { + dow: 0, // Sunday is the first day of the week. + doy: 6, // The week that contains Jan 6th is the first week of the year. + }, + }); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + return hi; - var MenuItemGroup = function (_React$Component) { - (0, _inherits3['default'])(MenuItemGroup, _React$Component); + }))); + + +/***/ }), +/* 481 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Croatian [hr] + //! author : Bojan Marković : https://github.com/bmarkovic - function MenuItemGroup() { - var _temp, _this, _ret; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - (0, _classCallCheck3['default'])(this, MenuItemGroup); + //! moment.js locale configuration - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; + function translate(number, withoutSuffix, key) { + var result = number + ' '; + switch (key) { + case 'ss': + if (number === 1) { + result += 'sekunda'; + } else if (number === 2 || number === 3 || number === 4) { + result += 'sekunde'; + } else { + result += 'sekundi'; + } + return result; + case 'm': + return withoutSuffix ? 'jedna minuta' : 'jedne minute'; + case 'mm': + if (number === 1) { + result += 'minuta'; + } else if (number === 2 || number === 3 || number === 4) { + result += 'minute'; + } else { + result += 'minuta'; + } + return result; + case 'h': + return withoutSuffix ? 'jedan sat' : 'jednog sata'; + case 'hh': + if (number === 1) { + result += 'sat'; + } else if (number === 2 || number === 3 || number === 4) { + result += 'sata'; + } else { + result += 'sati'; + } + return result; + case 'dd': + if (number === 1) { + result += 'dan'; + } else { + result += 'dana'; + } + return result; + case 'MM': + if (number === 1) { + result += 'mjesec'; + } else if (number === 2 || number === 3 || number === 4) { + result += 'mjeseca'; + } else { + result += 'mjeseci'; + } + return result; + case 'yy': + if (number === 1) { + result += 'godina'; + } else if (number === 2 || number === 3 || number === 4) { + result += 'godine'; + } else { + result += 'godina'; + } + return result; + } } - return _ret = (_temp = (_this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.renderInnerMenuItem = function (item) { - var _this$props = _this.props, - renderMenuItem = _this$props.renderMenuItem, - index = _this$props.index; - - return renderMenuItem(item, index, _this.props.subMenuKey); - }, _temp), (0, _possibleConstructorReturn3['default'])(_this, _ret); - } - - MenuItemGroup.prototype.render = function render() { - var props = (0, _objectWithoutProperties3['default'])(this.props, []); - var _props$className = props.className, - className = _props$className === undefined ? '' : _props$className, - rootPrefixCls = props.rootPrefixCls; - - var titleClassName = rootPrefixCls + '-item-group-title'; - var listClassName = rootPrefixCls + '-item-group-list'; - var title = props.title, - children = props.children; - - _util.menuAllProps.forEach(function (key) { - return delete props[key]; - }); - - // Set onClick to null, to ignore propagated onClick event - delete props.onClick; - - return _react2['default'].createElement( - 'li', - (0, _extends3['default'])({}, props, { className: className + ' ' + rootPrefixCls + '-item-group' }), - _react2['default'].createElement( - 'div', - { - className: titleClassName, - title: typeof title === 'string' ? title : undefined + var hr = moment.defineLocale('hr', { + months: { + format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split( + '_' + ), + standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split( + '_' + ), }, - title - ), - _react2['default'].createElement( - 'ul', - { className: listClassName }, - _react2['default'].Children.map(children, this.renderInnerMenuItem) - ) - ); - }; - - return MenuItemGroup; - }(_react2['default'].Component); - - MenuItemGroup.propTypes = { - renderMenuItem: _propTypes2['default'].func, - index: _propTypes2['default'].number, - className: _propTypes2['default'].string, - subMenuKey: _propTypes2['default'].string, - rootPrefixCls: _propTypes2['default'].string - }; - MenuItemGroup.defaultProps = { - disabled: true - }; - + monthsShort: 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split( + '_' + ), + weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), + weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'Do MMMM YYYY', + LLL: 'Do MMMM YYYY H:mm', + LLLL: 'dddd, Do MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[danas u] LT', + nextDay: '[sutra u] LT', + nextWeek: function () { + switch (this.day()) { + case 0: + return '[u] [nedjelju] [u] LT'; + case 3: + return '[u] [srijedu] [u] LT'; + case 6: + return '[u] [subotu] [u] LT'; + case 1: + case 2: + case 4: + case 5: + return '[u] dddd [u] LT'; + } + }, + lastDay: '[jučer u] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + return '[prošlu] [nedjelju] [u] LT'; + case 3: + return '[prošlu] [srijedu] [u] LT'; + case 6: + return '[prošle] [subote] [u] LT'; + case 1: + case 2: + case 4: + case 5: + return '[prošli] dddd [u] LT'; + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'za %s', + past: 'prije %s', + s: 'par sekundi', + ss: translate, + m: translate, + mm: translate, + h: translate, + hh: translate, + d: 'dan', + dd: translate, + M: 'mjesec', + MM: translate, + y: 'godinu', + yy: translate, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, + }); - MenuItemGroup.isMenuItemGroup = true; + return hr; - exports['default'] = MenuItemGroup; - module.exports = exports['default']; + }))); + /***/ }), -/* 588 */ +/* 482 */ /***/ (function(module, exports, __webpack_require__) { - 'use strict'; - - exports.__esModule = true; - - var _classCallCheck2 = __webpack_require__(318); - - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - - var _possibleConstructorReturn2 = __webpack_require__(319); - - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - - var _inherits2 = __webpack_require__(350); - - var _inherits3 = _interopRequireDefault(_inherits2); - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _propTypes = __webpack_require__(6); - - var _propTypes2 = _interopRequireDefault(_propTypes); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + //! moment.js locale configuration + //! locale : Hungarian [hu] + //! author : Adam Brunner : https://github.com/adambrunner - var Divider = function (_React$Component) { - (0, _inherits3['default'])(Divider, _React$Component); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function Divider() { - (0, _classCallCheck3['default'])(this, Divider); - return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); - } + //! moment.js locale configuration - Divider.prototype.render = function render() { - var _props = this.props, - className = _props.className, - rootPrefixCls = _props.rootPrefixCls, - style = _props.style; + var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split( + ' ' + ); + function translate(number, withoutSuffix, key, isFuture) { + var num = number; + switch (key) { + case 's': + return isFuture || withoutSuffix + ? 'néhány másodperc' + : 'néhány másodperce'; + case 'ss': + return num + (isFuture || withoutSuffix) + ? ' másodperc' + : ' másodperce'; + case 'm': + return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce'); + case 'mm': + return num + (isFuture || withoutSuffix ? ' perc' : ' perce'); + case 'h': + return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája'); + case 'hh': + return num + (isFuture || withoutSuffix ? ' óra' : ' órája'); + case 'd': + return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja'); + case 'dd': + return num + (isFuture || withoutSuffix ? ' nap' : ' napja'); + case 'M': + return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja'); + case 'MM': + return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja'); + case 'y': + return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve'); + case 'yy': + return num + (isFuture || withoutSuffix ? ' év' : ' éve'); + } + return ''; + } + function week(isFuture) { + return ( + (isFuture ? '' : '[múlt] ') + + '[' + + weekEndings[this.day()] + + '] LT[-kor]' + ); + } - return _react2['default'].createElement('li', { - className: className + ' ' + rootPrefixCls + '-item-divider', - style: style + var hu = moment.defineLocale('hu', { + months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split( + '_' + ), + monthsShort: 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split( + '_' + ), + weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'), + weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'), + weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'), + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'YYYY.MM.DD.', + LL: 'YYYY. MMMM D.', + LLL: 'YYYY. MMMM D. H:mm', + LLLL: 'YYYY. MMMM D., dddd H:mm', + }, + meridiemParse: /de|du/i, + isPM: function (input) { + return input.charAt(1).toLowerCase() === 'u'; + }, + meridiem: function (hours, minutes, isLower) { + if (hours < 12) { + return isLower === true ? 'de' : 'DE'; + } else { + return isLower === true ? 'du' : 'DU'; + } + }, + calendar: { + sameDay: '[ma] LT[-kor]', + nextDay: '[holnap] LT[-kor]', + nextWeek: function () { + return week.call(this, true); + }, + lastDay: '[tegnap] LT[-kor]', + lastWeek: function () { + return week.call(this, false); + }, + sameElse: 'L', + }, + relativeTime: { + future: '%s múlva', + past: '%s', + s: translate, + ss: translate, + m: translate, + mm: translate, + h: translate, + hh: translate, + d: translate, + dd: translate, + M: translate, + MM: translate, + y: translate, + yy: translate, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, }); - }; - return Divider; - }(_react2['default'].Component); + return hu; - Divider.propTypes = { - className: _propTypes2['default'].string, - rootPrefixCls: _propTypes2['default'].string, - style: _propTypes2['default'].object - }; - Divider.defaultProps = { - // To fix keyboard UX. - disabled: true, - className: '', - style: {} - }; - exports['default'] = Divider; - module.exports = exports['default']; + }))); + /***/ }), -/* 589 */ +/* 483 */ /***/ (function(module, exports, __webpack_require__) { - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _propTypes = __webpack_require__(6); - - var _propTypes2 = _interopRequireDefault(_propTypes); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** - * This source code is quoted from rc-select. - * homepage: https://github.com/react-component/select - */ - + //! moment.js locale configuration + //! locale : Armenian [hy-am] + //! author : Armendarabyan : https://github.com/armendarabyan - var Option = function (_React$Component) { - _inherits(Option, _React$Component); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function Option() { - _classCallCheck(this, Option); + //! moment.js locale configuration - return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); - } + var hyAm = moment.defineLocale('hy-am', { + months: { + format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split( + '_' + ), + standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split( + '_' + ), + }, + monthsShort: 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'), + weekdays: 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split( + '_' + ), + weekdaysShort: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'), + weekdaysMin: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY թ.', + LLL: 'D MMMM YYYY թ., HH:mm', + LLLL: 'dddd, D MMMM YYYY թ., HH:mm', + }, + calendar: { + sameDay: '[այսօր] LT', + nextDay: '[վաղը] LT', + lastDay: '[երեկ] LT', + nextWeek: function () { + return 'dddd [օրը ժամը] LT'; + }, + lastWeek: function () { + return '[անցած] dddd [օրը ժամը] LT'; + }, + sameElse: 'L', + }, + relativeTime: { + future: '%s հետո', + past: '%s առաջ', + s: 'մի քանի վայրկյան', + ss: '%d վայրկյան', + m: 'րոպե', + mm: '%d րոպե', + h: 'ժամ', + hh: '%d ժամ', + d: 'օր', + dd: '%d օր', + M: 'ամիս', + MM: '%d ամիս', + y: 'տարի', + yy: '%d տարի', + }, + meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/, + isPM: function (input) { + return /^(ցերեկվա|երեկոյան)$/.test(input); + }, + meridiem: function (hour) { + if (hour < 4) { + return 'գիշերվա'; + } else if (hour < 12) { + return 'առավոտվա'; + } else if (hour < 17) { + return 'ցերեկվա'; + } else { + return 'երեկոյան'; + } + }, + dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/, + ordinal: function (number, period) { + switch (period) { + case 'DDD': + case 'w': + case 'W': + case 'DDDo': + if (number === 1) { + return number + '-ին'; + } + return number + '-րդ'; + default: + return number; + } + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, + }); - return Option; - }(_react2["default"].Component); + return hyAm; - Option.propTypes = { - value: _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].number]) - }; - Option.isSelectOption = true; - exports["default"] = Option; - module.exports = exports['default']; + }))); + /***/ }), -/* 590 */ +/* 484 */ /***/ (function(module, exports, __webpack_require__) { - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.UNSELECTABLE_ATTRIBUTE = exports.UNSELECTABLE_STYLE = undefined; - - var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - - exports.toTitle = toTitle; - exports.getValuePropValue = getValuePropValue; - exports.getPropValue = getPropValue; - exports.isMultiple = isMultiple; - exports.isCombobox = isCombobox; - exports.isMultipleOrTags = isMultipleOrTags; - exports.isMultipleOrTagsOrCombobox = isMultipleOrTagsOrCombobox; - exports.isSingleMode = isSingleMode; - exports.toArray = toArray; - exports.getMapKey = getMapKey; - exports.preventDefaultEvent = preventDefaultEvent; - exports.findIndexInValueBySingleValue = findIndexInValueBySingleValue; - exports.getLabelFromPropsValue = getLabelFromPropsValue; - exports.getSelectKeys = getSelectKeys; - exports.findFirstMenuItem = findFirstMenuItem; - exports.includesSeparators = includesSeparators; - exports.splitBySeparators = splitBySeparators; - exports.defaultFilterFn = defaultFilterFn; - exports.validateOptionValue = validateOptionValue; - exports.saveRef = saveRef; - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - - function toTitle(title) { - if (typeof title === 'string') { - return title; - } - return null; - } - - function getValuePropValue(child) { - if (!child) { - return null; - } - - var props = child.props; - if ('value' in props) { - return props.value; - } - if (child.key) { - return child.key; - } - if (child.type && child.type.isSelectOptGroup && props.label) { - return props.label; - } - throw new Error('Need at least a key or a value or a label (only for OptGroup) for ' + child); - } - - function getPropValue(child, prop) { - if (prop === 'value') { - return getValuePropValue(child); - } - return child.props[prop]; - } - - function isMultiple(props) { - return props.multiple; - } - - function isCombobox(props) { - return props.combobox; - } - - function isMultipleOrTags(props) { - return props.multiple || props.tags; - } - - function isMultipleOrTagsOrCombobox(props) { - return isMultipleOrTags(props) || isCombobox(props); - } - - function isSingleMode(props) { - return !isMultipleOrTagsOrCombobox(props); - } - - function toArray(value) { - var ret = value; - if (value === undefined) { - ret = []; - } else if (!Array.isArray(value)) { - ret = [value]; - } - return ret; - } + //! moment.js locale configuration + //! locale : Indonesian [id] + //! author : Mohammad Satrio Utomo : https://github.com/tyok + //! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan - function getMapKey(value) { - return (typeof value === 'undefined' ? 'undefined' : _typeof(value)) + '-' + value; - } + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function preventDefaultEvent(e) { - e.preventDefault(); - } + //! moment.js locale configuration - function findIndexInValueBySingleValue(value, singleValue) { - var index = -1; - for (var i = 0; i < value.length; i++) { - if (value[i] === singleValue) { - index = i; - break; - } - } - return index; - } + var id = moment.defineLocale('id', { + months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'), + weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'), + weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'), + weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'), + longDateFormat: { + LT: 'HH.mm', + LTS: 'HH.mm.ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY [pukul] HH.mm', + LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm', + }, + meridiemParse: /pagi|siang|sore|malam/, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === 'pagi') { + return hour; + } else if (meridiem === 'siang') { + return hour >= 11 ? hour : hour + 12; + } else if (meridiem === 'sore' || meridiem === 'malam') { + return hour + 12; + } + }, + meridiem: function (hours, minutes, isLower) { + if (hours < 11) { + return 'pagi'; + } else if (hours < 15) { + return 'siang'; + } else if (hours < 19) { + return 'sore'; + } else { + return 'malam'; + } + }, + calendar: { + sameDay: '[Hari ini pukul] LT', + nextDay: '[Besok pukul] LT', + nextWeek: 'dddd [pukul] LT', + lastDay: '[Kemarin pukul] LT', + lastWeek: 'dddd [lalu pukul] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'dalam %s', + past: '%s yang lalu', + s: 'beberapa detik', + ss: '%d detik', + m: 'semenit', + mm: '%d menit', + h: 'sejam', + hh: '%d jam', + d: 'sehari', + dd: '%d hari', + M: 'sebulan', + MM: '%d bulan', + y: 'setahun', + yy: '%d tahun', + }, + week: { + dow: 0, // Sunday is the first day of the week. + doy: 6, // The week that contains Jan 6th is the first week of the year. + }, + }); - function getLabelFromPropsValue(value, key) { - var label = void 0; - value = toArray(value); - for (var i = 0; i < value.length; i++) { - if (value[i].key === key) { - label = value[i].label; - break; - } - } - return label; - } + return id; - function getSelectKeys(menuItems, value) { - if (value === null || value === undefined) { - return []; - } - var selectedKeys = []; - _react2["default"].Children.forEach(menuItems, function (item) { - if (item.type.isMenuItemGroup) { - selectedKeys = selectedKeys.concat(getSelectKeys(item.props.children, value)); - } else { - var itemValue = getValuePropValue(item); - var itemKey = item.key; - if (findIndexInValueBySingleValue(value, itemValue) !== -1 && itemKey) { - selectedKeys.push(itemKey); - } - } - }); - return selectedKeys; - } + }))); + + +/***/ }), +/* 485 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Icelandic [is] + //! author : Hinrik Örn Sigurðsson : https://github.com/hinrik - var UNSELECTABLE_STYLE = exports.UNSELECTABLE_STYLE = { - userSelect: 'none', - WebkitUserSelect: 'none' - }; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var UNSELECTABLE_ATTRIBUTE = exports.UNSELECTABLE_ATTRIBUTE = { - unselectable: 'on' - }; + //! moment.js locale configuration - function findFirstMenuItem(children) { - for (var i = 0; i < children.length; i++) { - var child = children[i]; - if (child.type.isMenuItemGroup) { - var found = findFirstMenuItem(child.props.children); - if (found) { - return found; - } - } else if (!child.props.disabled) { - return child; + function plural(n) { + if (n % 100 === 11) { + return true; + } else if (n % 10 === 1) { + return false; + } + return true; } - } - return null; - } - - function includesSeparators(string, separators) { - for (var i = 0; i < separators.length; ++i) { - if (string.lastIndexOf(separators[i]) > 0) { - return true; + function translate(number, withoutSuffix, key, isFuture) { + var result = number + ' '; + switch (key) { + case 's': + return withoutSuffix || isFuture + ? 'nokkrar sekúndur' + : 'nokkrum sekúndum'; + case 'ss': + if (plural(number)) { + return ( + result + + (withoutSuffix || isFuture ? 'sekúndur' : 'sekúndum') + ); + } + return result + 'sekúnda'; + case 'm': + return withoutSuffix ? 'mínúta' : 'mínútu'; + case 'mm': + if (plural(number)) { + return ( + result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum') + ); + } else if (withoutSuffix) { + return result + 'mínúta'; + } + return result + 'mínútu'; + case 'hh': + if (plural(number)) { + return ( + result + + (withoutSuffix || isFuture + ? 'klukkustundir' + : 'klukkustundum') + ); + } + return result + 'klukkustund'; + case 'd': + if (withoutSuffix) { + return 'dagur'; + } + return isFuture ? 'dag' : 'degi'; + case 'dd': + if (plural(number)) { + if (withoutSuffix) { + return result + 'dagar'; + } + return result + (isFuture ? 'daga' : 'dögum'); + } else if (withoutSuffix) { + return result + 'dagur'; + } + return result + (isFuture ? 'dag' : 'degi'); + case 'M': + if (withoutSuffix) { + return 'mánuður'; + } + return isFuture ? 'mánuð' : 'mánuði'; + case 'MM': + if (plural(number)) { + if (withoutSuffix) { + return result + 'mánuðir'; + } + return result + (isFuture ? 'mánuði' : 'mánuðum'); + } else if (withoutSuffix) { + return result + 'mánuður'; + } + return result + (isFuture ? 'mánuð' : 'mánuði'); + case 'y': + return withoutSuffix || isFuture ? 'ár' : 'ári'; + case 'yy': + if (plural(number)) { + return result + (withoutSuffix || isFuture ? 'ár' : 'árum'); + } + return result + (withoutSuffix || isFuture ? 'ár' : 'ári'); + } } - } - return false; - } - function splitBySeparators(string, separators) { - var reg = new RegExp('[' + separators.join() + ']'); - return string.split(reg).filter(function (token) { - return token; - }); - } - - function defaultFilterFn(input, child) { - if (child.props.disabled) { - return false; - } - var value = toArray(getPropValue(child, this.props.optionFilterProp)).join(''); - return value.toLowerCase().indexOf(input.toLowerCase()) > -1; - } + var is = moment.defineLocale('is', { + months: 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split( + '_' + ), + monthsShort: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'), + weekdays: 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split( + '_' + ), + weekdaysShort: 'sun_mán_þri_mið_fim_fös_lau'.split('_'), + weekdaysMin: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'), + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY [kl.] H:mm', + LLLL: 'dddd, D. MMMM YYYY [kl.] H:mm', + }, + calendar: { + sameDay: '[í dag kl.] LT', + nextDay: '[á morgun kl.] LT', + nextWeek: 'dddd [kl.] LT', + lastDay: '[í gær kl.] LT', + lastWeek: '[síðasta] dddd [kl.] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'eftir %s', + past: 'fyrir %s síðan', + s: translate, + ss: translate, + m: translate, + mm: translate, + h: 'klukkustund', + hh: translate, + d: translate, + dd: translate, + M: translate, + MM: translate, + y: translate, + yy: translate, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - function validateOptionValue(value, props) { - if (isSingleMode(props) || isMultiple(props)) { - return; - } - if (typeof value !== 'string') { - throw new Error('Invalid `value` of type `' + (typeof value === 'undefined' ? 'undefined' : _typeof(value)) + '` supplied to Option, ' + 'expected `string` when `tags/combobox` is `true`.'); - } - } + return is; - function saveRef(instance, name) { - return function (node) { - instance[name] = node; - }; - } + }))); + /***/ }), -/* 591 */ +/* 486 */ /***/ (function(module, exports, __webpack_require__) { - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - - var _trigger = __webpack_require__(292); + //! moment.js locale configuration + //! locale : Italian [it] + //! author : Lorenzo : https://github.com/aliem + //! author: Mattia Larentis: https://github.com/nostalgiaz + //! author: Marco : https://github.com/Manfre98 - var _trigger2 = _interopRequireDefault(_trigger); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _react = __webpack_require__(1); + //! moment.js locale configuration - var _react2 = _interopRequireDefault(_react); + var it = moment.defineLocale('it', { + months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split( + '_' + ), + monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'), + weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split( + '_' + ), + weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'), + weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: function () { + return ( + '[Oggi a' + + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + + ']LT' + ); + }, + nextDay: function () { + return ( + '[Domani a' + + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + + ']LT' + ); + }, + nextWeek: function () { + return ( + 'dddd [a' + + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + + ']LT' + ); + }, + lastDay: function () { + return ( + '[Ieri a' + + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + + ']LT' + ); + }, + lastWeek: function () { + switch (this.day()) { + case 0: + return ( + '[La scorsa] dddd [a' + + (this.hours() > 1 + ? 'lle ' + : this.hours() === 0 + ? ' ' + : "ll'") + + ']LT' + ); + default: + return ( + '[Lo scorso] dddd [a' + + (this.hours() > 1 + ? 'lle ' + : this.hours() === 0 + ? ' ' + : "ll'") + + ']LT' + ); + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'tra %s', + past: '%s fa', + s: 'alcuni secondi', + ss: '%d secondi', + m: 'un minuto', + mm: '%d minuti', + h: "un'ora", + hh: '%d ore', + d: 'un giorno', + dd: '%d giorni', + M: 'un mese', + MM: '%d mesi', + y: 'un anno', + yy: '%d anni', + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - var _propTypes = __webpack_require__(6); + return it; - var _propTypes2 = _interopRequireDefault(_propTypes); + }))); + + +/***/ }), +/* 487 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Italian (Switzerland) [it-ch] + //! author : xfh : https://github.com/xfh - var _classnames = __webpack_require__(5); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _classnames2 = _interopRequireDefault(_classnames); + //! moment.js locale configuration - var _reactDom = __webpack_require__(2); + var itCh = moment.defineLocale('it-ch', { + months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split( + '_' + ), + monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'), + weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split( + '_' + ), + weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'), + weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Oggi alle] LT', + nextDay: '[Domani alle] LT', + nextWeek: 'dddd [alle] LT', + lastDay: '[Ieri alle] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + return '[la scorsa] dddd [alle] LT'; + default: + return '[lo scorso] dddd [alle] LT'; + } + }, + sameElse: 'L', + }, + relativeTime: { + future: function (s) { + return (/^[0-9].+$/.test(s) ? 'tra' : 'in') + ' ' + s; + }, + past: '%s fa', + s: 'alcuni secondi', + ss: '%d secondi', + m: 'un minuto', + mm: '%d minuti', + h: "un'ora", + hh: '%d ore', + d: 'un giorno', + dd: '%d giorni', + M: 'un mese', + MM: '%d mesi', + y: 'un anno', + yy: '%d anni', + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - var _reactDom2 = _interopRequireDefault(_reactDom); + return itCh; - var _util = __webpack_require__(590); + }))); + + +/***/ }), +/* 488 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Japanese [ja] + //! author : LI Long : https://github.com/baryon - var _DropdownMenu = __webpack_require__(592); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _DropdownMenu2 = _interopRequireDefault(_DropdownMenu); + //! moment.js locale configuration - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var ja = moment.defineLocale('ja', { + eras: [ + { + since: '2019-05-01', + offset: 1, + name: '令和', + narrow: '㋿', + abbr: 'R', + }, + { + since: '1989-01-08', + until: '2019-04-30', + offset: 1, + name: '平成', + narrow: '㍻', + abbr: 'H', + }, + { + since: '1926-12-25', + until: '1989-01-07', + offset: 1, + name: '昭和', + narrow: '㍼', + abbr: 'S', + }, + { + since: '1912-07-30', + until: '1926-12-24', + offset: 1, + name: '大正', + narrow: '㍽', + abbr: 'T', + }, + { + since: '1873-01-01', + until: '1912-07-29', + offset: 6, + name: '明治', + narrow: '㍾', + abbr: 'M', + }, + { + since: '0001-01-01', + until: '1873-12-31', + offset: 1, + name: '西暦', + narrow: 'AD', + abbr: 'AD', + }, + { + since: '0000-12-31', + until: -Infinity, + offset: 1, + name: '紀元前', + narrow: 'BC', + abbr: 'BC', + }, + ], + eraYearOrdinalRegex: /(元|\d+)年/, + eraYearOrdinalParse: function (input, match) { + return match[1] === '元' ? 1 : parseInt(match[1] || input, 10); + }, + months: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), + monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split( + '_' + ), + weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'), + weekdaysShort: '日_月_火_水_木_金_土'.split('_'), + weekdaysMin: '日_月_火_水_木_金_土'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY/MM/DD', + LL: 'YYYY年M月D日', + LLL: 'YYYY年M月D日 HH:mm', + LLLL: 'YYYY年M月D日 dddd HH:mm', + l: 'YYYY/MM/DD', + ll: 'YYYY年M月D日', + lll: 'YYYY年M月D日 HH:mm', + llll: 'YYYY年M月D日(ddd) HH:mm', + }, + meridiemParse: /午前|午後/i, + isPM: function (input) { + return input === '午後'; + }, + meridiem: function (hour, minute, isLower) { + if (hour < 12) { + return '午前'; + } else { + return '午後'; + } + }, + calendar: { + sameDay: '[今日] LT', + nextDay: '[明日] LT', + nextWeek: function (now) { + if (now.week() !== this.week()) { + return '[来週]dddd LT'; + } else { + return 'dddd LT'; + } + }, + lastDay: '[昨日] LT', + lastWeek: function (now) { + if (this.week() !== now.week()) { + return '[先週]dddd LT'; + } else { + return 'dddd LT'; + } + }, + sameElse: 'L', + }, + dayOfMonthOrdinalParse: /\d{1,2}日/, + ordinal: function (number, period) { + switch (period) { + case 'y': + return number === 1 ? '元年' : number + '年'; + case 'd': + case 'D': + case 'DDD': + return number + '日'; + default: + return number; + } + }, + relativeTime: { + future: '%s後', + past: '%s前', + s: '数秒', + ss: '%d秒', + m: '1分', + mm: '%d分', + h: '1時間', + hh: '%d時間', + d: '1日', + dd: '%d日', + M: '1ヶ月', + MM: '%dヶ月', + y: '1年', + yy: '%d年', + }, + }); - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + return ja; - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + }))); + + +/***/ }), +/* 489 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Javanese [jv] + //! author : Rony Lantip : https://github.com/lantip + //! reference: http://jv.wikipedia.org/wiki/Basa_Jawa - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + //! moment.js locale configuration - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + var jv = moment.defineLocale('jv', { + months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'), + weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'), + weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'), + weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'), + longDateFormat: { + LT: 'HH.mm', + LTS: 'HH.mm.ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY [pukul] HH.mm', + LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm', + }, + meridiemParse: /enjing|siyang|sonten|ndalu/, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === 'enjing') { + return hour; + } else if (meridiem === 'siyang') { + return hour >= 11 ? hour : hour + 12; + } else if (meridiem === 'sonten' || meridiem === 'ndalu') { + return hour + 12; + } + }, + meridiem: function (hours, minutes, isLower) { + if (hours < 11) { + return 'enjing'; + } else if (hours < 15) { + return 'siyang'; + } else if (hours < 19) { + return 'sonten'; + } else { + return 'ndalu'; + } + }, + calendar: { + sameDay: '[Dinten puniko pukul] LT', + nextDay: '[Mbenjang pukul] LT', + nextWeek: 'dddd [pukul] LT', + lastDay: '[Kala wingi pukul] LT', + lastWeek: 'dddd [kepengker pukul] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'wonten ing %s', + past: '%s ingkang kepengker', + s: 'sawetawis detik', + ss: '%d detik', + m: 'setunggal menit', + mm: '%d menit', + h: 'setunggal jam', + hh: '%d jam', + d: 'sedinten', + dd: '%d dinten', + M: 'sewulan', + MM: '%d wulan', + y: 'setaun', + yy: '%d taun', + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, + }); - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** - * This source code is quoted from rc-select. - * homepage: https://github.com/react-component/select - */ + return jv; + }))); + + +/***/ }), +/* 490 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Georgian [ka] + //! author : Irakli Janiashvili : https://github.com/IrakliJani - _trigger2["default"].displayName = 'Trigger'; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var BUILT_IN_PLACEMENTS = { - bottomLeft: { - points: ['tl', 'bl'], - offset: [0, 4], - overflow: { - adjustX: 0, - adjustY: 1 - } - }, - topLeft: { - points: ['bl', 'tl'], - offset: [0, -4], - overflow: { - adjustX: 0, - adjustY: 1 - } - } - }; + //! moment.js locale configuration - var SelectTrigger = function (_React$Component) { - _inherits(SelectTrigger, _React$Component); + var ka = moment.defineLocale('ka', { + months: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split( + '_' + ), + monthsShort: 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'), + weekdays: { + standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split( + '_' + ), + format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split( + '_' + ), + isFormat: /(წინა|შემდეგ)/, + }, + weekdaysShort: 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'), + weekdaysMin: 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[დღეს] LT[-ზე]', + nextDay: '[ხვალ] LT[-ზე]', + lastDay: '[გუშინ] LT[-ზე]', + nextWeek: '[შემდეგ] dddd LT[-ზე]', + lastWeek: '[წინა] dddd LT-ზე', + sameElse: 'L', + }, + relativeTime: { + future: function (s) { + return s.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/, function ( + $0, + $1, + $2 + ) { + return $2 === 'ი' ? $1 + 'ში' : $1 + $2 + 'ში'; + }); + }, + past: function (s) { + if (/(წამი|წუთი|საათი|დღე|თვე)/.test(s)) { + return s.replace(/(ი|ე)$/, 'ის წინ'); + } + if (/წელი/.test(s)) { + return s.replace(/წელი$/, 'წლის წინ'); + } + return s; + }, + s: 'რამდენიმე წამი', + ss: '%d წამი', + m: 'წუთი', + mm: '%d წუთი', + h: 'საათი', + hh: '%d საათი', + d: 'დღე', + dd: '%d დღე', + M: 'თვე', + MM: '%d თვე', + y: 'წელი', + yy: '%d წელი', + }, + dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/, + ordinal: function (number) { + if (number === 0) { + return number; + } + if (number === 1) { + return number + '-ლი'; + } + if ( + number < 20 || + (number <= 100 && number % 20 === 0) || + number % 100 === 0 + ) { + return 'მე-' + number; + } + return number + '-ე'; + }, + week: { + dow: 1, + doy: 7, + }, + }); - function SelectTrigger(props) { - _classCallCheck(this, SelectTrigger); + return ka; - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); + }))); + + +/***/ }), +/* 491 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Kazakh [kk] + //! authors : Nurlan Rakhimzhanov : https://github.com/nurlan - _initialiseProps.call(_this); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - _this.saveDropdownMenuRef = (0, _util.saveRef)(_this, 'dropdownMenuRef'); - _this.saveTriggerRef = (0, _util.saveRef)(_this, 'triggerRef'); + //! moment.js locale configuration - _this.state = { - dropdownWidth: null + var suffixes = { + 0: '-ші', + 1: '-ші', + 2: '-ші', + 3: '-ші', + 4: '-ші', + 5: '-ші', + 6: '-шы', + 7: '-ші', + 8: '-ші', + 9: '-шы', + 10: '-шы', + 20: '-шы', + 30: '-шы', + 40: '-шы', + 50: '-ші', + 60: '-шы', + 70: '-ші', + 80: '-ші', + 90: '-шы', + 100: '-ші', }; - return _this; - } - - SelectTrigger.prototype.componentDidMount = function componentDidMount() { - if (this.props.open) { - //宽度计算时机修改 - this.setDropdownWidth(); - } - }; - - SelectTrigger.prototype.componentDidUpdate = function componentDidUpdate() { - if (this.props.visible) { - //宽度计算时机修改 - this.setDropdownWidth(); - } - }; - - SelectTrigger.prototype.render = function render() { - var _popupClassName; - - var _props = this.props, - onPopupFocus = _props.onPopupFocus, - props = _objectWithoutProperties(_props, ['onPopupFocus']); - - var multiple = props.multiple, - visible = props.visible, - inputValue = props.inputValue, - dropdownAlign = props.dropdownAlign, - disabled = props.disabled, - showSearch = props.showSearch, - dropdownClassName = props.dropdownClassName, - dropdownStyle = props.dropdownStyle, - dropdownMatchSelectWidth = props.dropdownMatchSelectWidth; - var dropdownPrefixCls = this.getDropdownPrefixCls(); - var popupClassName = (_popupClassName = {}, _defineProperty(_popupClassName, dropdownClassName, !!dropdownClassName), _defineProperty(_popupClassName, dropdownPrefixCls + '--' + (multiple ? 'multiple' : 'single'), 1), _popupClassName); - var popupElement = this.getDropdownElement({ - menuItems: props.options, - onPopupFocus: onPopupFocus, - multiple: multiple, - inputValue: inputValue, - visible: visible + var kk = moment.defineLocale('kk', { + months: 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split( + '_' + ), + monthsShort: 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'), + weekdays: 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split( + '_' + ), + weekdaysShort: 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'), + weekdaysMin: 'жк_дй_сй_ср_бй_жм_сн'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Бүгін сағат] LT', + nextDay: '[Ертең сағат] LT', + nextWeek: 'dddd [сағат] LT', + lastDay: '[Кеше сағат] LT', + lastWeek: '[Өткен аптаның] dddd [сағат] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s ішінде', + past: '%s бұрын', + s: 'бірнеше секунд', + ss: '%d секунд', + m: 'бір минут', + mm: '%d минут', + h: 'бір сағат', + hh: '%d сағат', + d: 'бір күн', + dd: '%d күн', + M: 'бір ай', + MM: '%d ай', + y: 'бір жыл', + yy: '%d жыл', + }, + dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/, + ordinal: function (number) { + var a = number % 10, + b = number >= 100 ? 100 : null; + return number + (suffixes[number] || suffixes[a] || suffixes[b]); + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, }); - var hideAction = void 0; - if (disabled) { - hideAction = []; - } else if ((0, _util.isSingleMode)(props) && !showSearch) { - hideAction = ['click']; - } else { - hideAction = ['blur']; - } - var popupStyle = _extends({}, dropdownStyle); - var widthProp = dropdownMatchSelectWidth ? 'width' : 'minWidth'; - if (this.state.dropdownWidth) { - popupStyle[widthProp] = this.state.dropdownWidth + 'px'; - } - - return _react2["default"].createElement( - _trigger2["default"], - _extends({}, props, { - showAction: disabled ? [] : this.props.showAction, - hideAction: hideAction, - ref: this.saveTriggerRef, - popupPlacement: 'bottomLeft', - builtinPlacements: BUILT_IN_PLACEMENTS, - prefixCls: dropdownPrefixCls, - popupTransitionName: this.getDropdownTransitionName(), - onPopupVisibleChange: props.onDropdownVisibleChange, - popup: popupElement, - popupAlign: dropdownAlign, - popupVisible: visible, - getPopupContainer: props.getPopupContainer, - popupClassName: (0, _classnames2["default"])(popupClassName), - popupStyle: popupStyle - }), - props.children - ); - }; - - return SelectTrigger; - }(_react2["default"].Component); - - SelectTrigger.propTypes = { - onPopupFocus: _propTypes2["default"].func, - onPopupScroll: _propTypes2["default"].func, - dropdownMatchSelectWidth: _propTypes2["default"].bool, - dropdownAlign: _propTypes2["default"].object, - visible: _propTypes2["default"].bool, - disabled: _propTypes2["default"].bool, - showSearch: _propTypes2["default"].bool, - dropdownClassName: _propTypes2["default"].string, - multiple: _propTypes2["default"].bool, - inputValue: _propTypes2["default"].string, - filterOption: _propTypes2["default"].any, - options: _propTypes2["default"].any, - prefixCls: _propTypes2["default"].string, - popupClassName: _propTypes2["default"].string, - children: _propTypes2["default"].any, - showAction: _propTypes2["default"].arrayOf(_propTypes2["default"].string), - menuItemSelectedIcon: _propTypes2["default"].oneOfType([_propTypes2["default"].func, _propTypes2["default"].node]) - }; - - var _initialiseProps = function _initialiseProps() { - var _this2 = this; - - this.setDropdownWidth = function () { - if (!_this2.props.dropdownMatchSelectWidth) { - return; - } - var width = _reactDom2["default"].findDOMNode(_this2).offsetWidth; - if (width !== _this2.state.dropdownWidth) { - _this2.setState({ dropdownWidth: width }); - } - }; - - this.getInnerMenu = function () { - return _this2.dropdownMenuRef && _this2.dropdownMenuRef.menuRef; - }; - this.getPopupDOMNode = function () { - return _this2.triggerRef.getPopupDomNode(); - }; + return kk; - this.getDropdownElement = function (newProps) { - var props = _this2.props; - return _react2["default"].createElement(_DropdownMenu2["default"], _extends({ - ref: _this2.saveDropdownMenuRef - }, newProps, { - clsPrefix: _this2.getDropdownPrefixCls(), - onMenuSelect: props.onMenuSelect, - onMenuDeselect: props.onMenuDeselect, - onPopupScroll: props.onPopupScroll, - value: props.value, - backfillValue: props.backfillValue, - firstActiveValue: props.firstActiveValue, - defaultActiveFirstOption: props.defaultActiveFirstOption, - dropdownMenuStyle: props.dropdownMenuStyle, - menuItemSelectedIcon: props.menuItemSelectedIcon - })); - }; + }))); + + +/***/ }), +/* 492 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Cambodian [km] + //! author : Kruy Vanna : https://github.com/kruyvanna - this.getDropdownTransitionName = function () { - var props = _this2.props; - var transitionName = props.transitionName; - if (!transitionName && props.animation) { - transitionName = _this2.getDropdownPrefixCls() + '-' + props.animation; - } - return transitionName; - }; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - this.getDropdownPrefixCls = function () { - return _this2.props.prefixCls + '-dropdown'; - }; - }; + //! moment.js locale configuration - exports["default"] = SelectTrigger; + var symbolMap = { + '1': '១', + '2': '២', + '3': '៣', + '4': '៤', + '5': '៥', + '6': '៦', + '7': '៧', + '8': '៨', + '9': '៩', + '0': '០', + }, + numberMap = { + '១': '1', + '២': '2', + '៣': '3', + '៤': '4', + '៥': '5', + '៦': '6', + '៧': '7', + '៨': '8', + '៩': '9', + '០': '0', + }; + var km = moment.defineLocale('km', { + months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split( + '_' + ), + monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split( + '_' + ), + weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'), + weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'), + weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + meridiemParse: /ព្រឹក|ល្ងាច/, + isPM: function (input) { + return input === 'ល្ងាច'; + }, + meridiem: function (hour, minute, isLower) { + if (hour < 12) { + return 'ព្រឹក'; + } else { + return 'ល្ងាច'; + } + }, + calendar: { + sameDay: '[ថ្ងៃនេះ ម៉ោង] LT', + nextDay: '[ស្អែក ម៉ោង] LT', + nextWeek: 'dddd [ម៉ោង] LT', + lastDay: '[ម្សិលមិញ ម៉ោង] LT', + lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%sទៀត', + past: '%sមុន', + s: 'ប៉ុន្មានវិនាទី', + ss: '%d វិនាទី', + m: 'មួយនាទី', + mm: '%d នាទី', + h: 'មួយម៉ោង', + hh: '%d ម៉ោង', + d: 'មួយថ្ងៃ', + dd: '%d ថ្ងៃ', + M: 'មួយខែ', + MM: '%d ខែ', + y: 'មួយឆ្នាំ', + yy: '%d ឆ្នាំ', + }, + dayOfMonthOrdinalParse: /ទី\d{1,2}/, + ordinal: 'ទី%d', + preparse: function (string) { + return string.replace(/[១២៣៤៥៦៧៨៩០]/g, function (match) { + return numberMap[match]; + }); + }, + postformat: function (string) { + return string.replace(/\d/g, function (match) { + return symbolMap[match]; + }); + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - SelectTrigger.displayName = 'SelectTrigger'; - module.exports = exports['default']; + return km; + + }))); + /***/ }), -/* 592 */ +/* 493 */ /***/ (function(module, exports, __webpack_require__) { - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _reactDom = __webpack_require__(2); + //! moment.js locale configuration + //! locale : Kannada [kn] + //! author : Rajeev Naik : https://github.com/rajeevnaikte - var _propTypes = __webpack_require__(6); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _propTypes2 = _interopRequireDefault(_propTypes); + //! moment.js locale configuration - var _tinperBeeCore = __webpack_require__(27); + var symbolMap = { + '1': '೧', + '2': '೨', + '3': '೩', + '4': '೪', + '5': '೫', + '6': '೬', + '7': '೭', + '8': '೮', + '9': '೯', + '0': '೦', + }, + numberMap = { + '೧': '1', + '೨': '2', + '೩': '3', + '೪': '4', + '೫': '5', + '೬': '6', + '೭': '7', + '೮': '8', + '೯': '9', + '೦': '0', + }; - var _rcMenu = __webpack_require__(579); + var kn = moment.defineLocale('kn', { + months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split( + '_' + ), + monthsShort: 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split( + '_' + ), + weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'), + weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'), + longDateFormat: { + LT: 'A h:mm', + LTS: 'A h:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm', + LLLL: 'dddd, D MMMM YYYY, A h:mm', + }, + calendar: { + sameDay: '[ಇಂದು] LT', + nextDay: '[ನಾಳೆ] LT', + nextWeek: 'dddd, LT', + lastDay: '[ನಿನ್ನೆ] LT', + lastWeek: '[ಕೊನೆಯ] dddd, LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s ನಂತರ', + past: '%s ಹಿಂದೆ', + s: 'ಕೆಲವು ಕ್ಷಣಗಳು', + ss: '%d ಸೆಕೆಂಡುಗಳು', + m: 'ಒಂದು ನಿಮಿಷ', + mm: '%d ನಿಮಿಷ', + h: 'ಒಂದು ಗಂಟೆ', + hh: '%d ಗಂಟೆ', + d: 'ಒಂದು ದಿನ', + dd: '%d ದಿನ', + M: 'ಒಂದು ತಿಂಗಳು', + MM: '%d ತಿಂಗಳು', + y: 'ಒಂದು ವರ್ಷ', + yy: '%d ವರ್ಷ', + }, + preparse: function (string) { + return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) { + return numberMap[match]; + }); + }, + postformat: function (string) { + return string.replace(/\d/g, function (match) { + return symbolMap[match]; + }); + }, + meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === 'ರಾತ್ರಿ') { + return hour < 4 ? hour : hour + 12; + } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') { + return hour; + } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') { + return hour >= 10 ? hour : hour + 12; + } else if (meridiem === 'ಸಂಜೆ') { + return hour + 12; + } + }, + meridiem: function (hour, minute, isLower) { + if (hour < 4) { + return 'ರಾತ್ರಿ'; + } else if (hour < 10) { + return 'ಬೆಳಿಗ್ಗೆ'; + } else if (hour < 17) { + return 'ಮಧ್ಯಾಹ್ನ'; + } else if (hour < 20) { + return 'ಸಂಜೆ'; + } else { + return 'ರಾತ್ರಿ'; + } + }, + dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/, + ordinal: function (number) { + return number + 'ನೇ'; + }, + week: { + dow: 0, // Sunday is the first day of the week. + doy: 6, // The week that contains Jan 6th is the first week of the year. + }, + }); - var _rcMenu2 = _interopRequireDefault(_rcMenu); + return kn; - var _domScrollIntoView = __webpack_require__(383); + }))); + + +/***/ }), +/* 494 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Korean [ko] + //! author : Kyungwook, Park : https://github.com/kyungw00k + //! author : Jeeeyul Lee - var _domScrollIntoView2 = _interopRequireDefault(_domScrollIntoView); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _raf = __webpack_require__(235); + //! moment.js locale configuration - var _raf2 = _interopRequireDefault(_raf); + var ko = moment.defineLocale('ko', { + months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'), + monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split( + '_' + ), + weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'), + weekdaysShort: '일_월_화_수_목_금_토'.split('_'), + weekdaysMin: '일_월_화_수_목_금_토'.split('_'), + longDateFormat: { + LT: 'A h:mm', + LTS: 'A h:mm:ss', + L: 'YYYY.MM.DD.', + LL: 'YYYY년 MMMM D일', + LLL: 'YYYY년 MMMM D일 A h:mm', + LLLL: 'YYYY년 MMMM D일 dddd A h:mm', + l: 'YYYY.MM.DD.', + ll: 'YYYY년 MMMM D일', + lll: 'YYYY년 MMMM D일 A h:mm', + llll: 'YYYY년 MMMM D일 dddd A h:mm', + }, + calendar: { + sameDay: '오늘 LT', + nextDay: '내일 LT', + nextWeek: 'dddd LT', + lastDay: '어제 LT', + lastWeek: '지난주 dddd LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s 후', + past: '%s 전', + s: '몇 초', + ss: '%d초', + m: '1분', + mm: '%d분', + h: '한 시간', + hh: '%d시간', + d: '하루', + dd: '%d일', + M: '한 달', + MM: '%d달', + y: '일 년', + yy: '%d년', + }, + dayOfMonthOrdinalParse: /\d{1,2}(일|월|주)/, + ordinal: function (number, period) { + switch (period) { + case 'd': + case 'D': + case 'DDD': + return number + '일'; + case 'M': + return number + '월'; + case 'w': + case 'W': + return number + '주'; + default: + return number; + } + }, + meridiemParse: /오전|오후/, + isPM: function (token) { + return token === '오후'; + }, + meridiem: function (hour, minute, isUpper) { + return hour < 12 ? '오전' : '오후'; + }, + }); - var _util = __webpack_require__(590); + return ko; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + }))); + + +/***/ }), +/* 495 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Kurdish [ku] + //! author : Shahram Mebashar : https://github.com/ShahramMebashar - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + //! moment.js locale configuration - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + var symbolMap = { + '1': '١', + '2': '٢', + '3': '٣', + '4': '٤', + '5': '٥', + '6': '٦', + '7': '٧', + '8': '٨', + '9': '٩', + '0': '٠', + }, + numberMap = { + '١': '1', + '٢': '2', + '٣': '3', + '٤': '4', + '٥': '5', + '٦': '6', + '٧': '7', + '٨': '8', + '٩': '9', + '٠': '0', + }, + months = [ + 'کانونی دووەم', + 'شوبات', + 'ئازار', + 'نیسان', + 'ئایار', + 'حوزەیران', + 'تەمموز', + 'ئاب', + 'ئەیلوول', + 'تشرینی یەكەم', + 'تشرینی دووەم', + 'كانونی یەکەم', + ]; - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** - * This source code is quoted from rc-select. - * homepage: https://github.com/react-component/select - */ + var ku = moment.defineLocale('ku', { + months: months, + monthsShort: months, + weekdays: 'یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌'.split( + '_' + ), + weekdaysShort: 'یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌'.split( + '_' + ), + weekdaysMin: 'ی_د_س_چ_پ_ه_ش'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + meridiemParse: /ئێواره‌|به‌یانی/, + isPM: function (input) { + return /ئێواره‌/.test(input); + }, + meridiem: function (hour, minute, isLower) { + if (hour < 12) { + return 'به‌یانی'; + } else { + return 'ئێواره‌'; + } + }, + calendar: { + sameDay: '[ئه‌مرۆ كاتژمێر] LT', + nextDay: '[به‌یانی كاتژمێر] LT', + nextWeek: 'dddd [كاتژمێر] LT', + lastDay: '[دوێنێ كاتژمێر] LT', + lastWeek: 'dddd [كاتژمێر] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'له‌ %s', + past: '%s', + s: 'چه‌ند چركه‌یه‌ك', + ss: 'چركه‌ %d', + m: 'یه‌ك خوله‌ك', + mm: '%d خوله‌ك', + h: 'یه‌ك كاتژمێر', + hh: '%d كاتژمێر', + d: 'یه‌ك ڕۆژ', + dd: '%d ڕۆژ', + M: 'یه‌ك مانگ', + MM: '%d مانگ', + y: 'یه‌ك ساڵ', + yy: '%d ساڵ', + }, + preparse: function (string) { + return string + .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) { + return numberMap[match]; + }) + .replace(/،/g, ','); + }, + postformat: function (string) { + return string + .replace(/\d/g, function (match) { + return symbolMap[match]; + }) + .replace(/,/g, '،'); + }, + week: { + dow: 6, // Saturday is the first day of the week. + doy: 12, // The week that contains Jan 12th is the first week of the year. + }, + }); + return ku; - var DropdownMenu = function (_React$Component) { - _inherits(DropdownMenu, _React$Component); + }))); + + +/***/ }), +/* 496 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Kyrgyz [ky] + //! author : Chyngyz Arystan uulu : https://github.com/chyngyz - function DropdownMenu(props) { - _classCallCheck(this, DropdownMenu); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); + //! moment.js locale configuration - _this.scrollActiveItemToView = function () { - // scroll into view - var itemComponent = (0, _reactDom.findDOMNode)(_this.firstActiveItem); - var _this$props = _this.props, - value = _this$props.value, - visible = _this$props.visible, - firstActiveValue = _this$props.firstActiveValue; + var suffixes = { + 0: '-чү', + 1: '-чи', + 2: '-чи', + 3: '-чү', + 4: '-чү', + 5: '-чи', + 6: '-чы', + 7: '-чи', + 8: '-чи', + 9: '-чу', + 10: '-чу', + 20: '-чы', + 30: '-чу', + 40: '-чы', + 50: '-чү', + 60: '-чы', + 70: '-чи', + 80: '-чи', + 90: '-чу', + 100: '-чү', + }; + var ky = moment.defineLocale('ky', { + months: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split( + '_' + ), + monthsShort: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split( + '_' + ), + weekdays: 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split( + '_' + ), + weekdaysShort: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'), + weekdaysMin: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Бүгүн саат] LT', + nextDay: '[Эртең саат] LT', + nextWeek: 'dddd [саат] LT', + lastDay: '[Кечээ саат] LT', + lastWeek: '[Өткөн аптанын] dddd [күнү] [саат] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s ичинде', + past: '%s мурун', + s: 'бирнече секунд', + ss: '%d секунд', + m: 'бир мүнөт', + mm: '%d мүнөт', + h: 'бир саат', + hh: '%d саат', + d: 'бир күн', + dd: '%d күн', + M: 'бир ай', + MM: '%d ай', + y: 'бир жыл', + yy: '%d жыл', + }, + dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/, + ordinal: function (number) { + var a = number % 10, + b = number >= 100 ? 100 : null; + return number + (suffixes[number] || suffixes[a] || suffixes[b]); + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, + }); - if (!itemComponent || !visible) { - return; - } - var scrollIntoViewOpts = { - onlyScrollIfNeeded: true - }; - if ((!value || value.length === 0) && firstActiveValue) { - scrollIntoViewOpts.alignWithTop = true; - } + return ky; - // Delay to scroll since current frame item position is not ready when pre view is by filter - // https://github.com/ant-design/ant-design/issues/11268#issuecomment-406634462 - _this.rafInstance = (0, _raf2["default"])(function () { - (0, _domScrollIntoView2["default"])(itemComponent, (0, _reactDom.findDOMNode)(_this.menuRef), scrollIntoViewOpts); - }); - }; + }))); + + +/***/ }), +/* 497 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Luxembourgish [lb] + //! author : mweimerskirch : https://github.com/mweimerskirch + //! author : David Raison : https://github.com/kwisatz - _this.lastInputValue = props.inputValue; - _this.saveMenuRef = (0, _util.saveRef)(_this, 'menuRef'); - return _this; - } + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - DropdownMenu.prototype.componentDidMount = function componentDidMount() { - this.scrollActiveItemToView(); - this.lastVisible = this.props.visible; - }; + //! moment.js locale configuration - DropdownMenu.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) { - if (!nextProps.visible) { - this.lastVisible = false; + function processRelativeTime(number, withoutSuffix, key, isFuture) { + var format = { + m: ['eng Minutt', 'enger Minutt'], + h: ['eng Stonn', 'enger Stonn'], + d: ['een Dag', 'engem Dag'], + M: ['ee Mount', 'engem Mount'], + y: ['ee Joer', 'engem Joer'], + }; + return withoutSuffix ? format[key][0] : format[key][1]; } - // freeze when hide - return nextProps.visible || nextProps.inputValue !== this.props.inputValue; - }; - - DropdownMenu.prototype.componentDidUpdate = function componentDidUpdate(prevProps) { - var props = this.props; - if (!prevProps.visible && props.visible) { - this.scrollActiveItemToView(); + function processFutureTime(string) { + var number = string.substr(0, string.indexOf(' ')); + if (eifelerRegelAppliesToNumber(number)) { + return 'a ' + string; + } + return 'an ' + string; } - this.lastVisible = props.visible; - this.lastInputValue = props.inputValue; - }; - - DropdownMenu.prototype.componentWillUnmount = function componentWillUnmount() { - if (this.rafInstance && this.rafInstance.cancel) { - this.rafInstance.cancel(); + function processPastTime(string) { + var number = string.substr(0, string.indexOf(' ')); + if (eifelerRegelAppliesToNumber(number)) { + return 'viru ' + string; + } + return 'virun ' + string; } - }; - - DropdownMenu.prototype.renderMenu = function renderMenu() { - var _this2 = this; - - var props = this.props; - var menuItems = props.menuItems, - menuItemSelectedIcon = props.menuItemSelectedIcon, - defaultActiveFirstOption = props.defaultActiveFirstOption, - value = props.value, - prefixCls = props.prefixCls, - multiple = props.multiple, - onMenuSelect = props.onMenuSelect, - inputValue = props.inputValue, - firstActiveValue = props.firstActiveValue, - backfillValue = props.backfillValue, - clsPrefix = props.clsPrefix; - - if (menuItems && menuItems.length) { - var menuProps = {}; - if (multiple) { - menuProps.onDeselect = props.onMenuDeselect; - menuProps.onSelect = onMenuSelect; - } else { - menuProps.onClick = onMenuSelect; - } - - var selectedKeys = (0, _util.getSelectKeys)(menuItems, value); - var activeKeyProps = {}; - - var clonedMenuItems = menuItems; - if (selectedKeys.length || firstActiveValue) { - if (props.visible && !this.lastVisible) { - activeKeyProps.activeKey = selectedKeys[0] || firstActiveValue; + /** + * Returns true if the word before the given number loses the '-n' ending. + * e.g. 'an 10 Deeg' but 'a 5 Deeg' + * + * @param number {integer} + * @returns {boolean} + */ + function eifelerRegelAppliesToNumber(number) { + number = parseInt(number, 10); + if (isNaN(number)) { + return false; + } + if (number < 0) { + // Negative Number --> always true + return true; + } else if (number < 10) { + // Only 1 digit + if (4 <= number && number <= 7) { + return true; + } + return false; + } else if (number < 100) { + // 2 digits + var lastDigit = number % 10, + firstDigit = number / 10; + if (lastDigit === 0) { + return eifelerRegelAppliesToNumber(firstDigit); + } + return eifelerRegelAppliesToNumber(lastDigit); + } else if (number < 10000) { + // 3 or 4 digits --> recursively check first digit + while (number >= 10) { + number = number / 10; + } + return eifelerRegelAppliesToNumber(number); + } else { + // Anything larger than 4 digits: recursively check first n-3 digits + number = number / 1000; + return eifelerRegelAppliesToNumber(number); } - var foundFirst = false; - // set firstActiveItem via cloning menus - // for scroll into view - var clone = function clone(item) { - if (!foundFirst && selectedKeys.indexOf(item.key) !== -1 || !foundFirst && !selectedKeys.length && firstActiveValue.indexOf(item.key) !== -1) { - foundFirst = true; - return (0, _react.cloneElement)(item, { - ref: function ref(_ref) { - _this2.firstActiveItem = _ref; - } - }); - } - return item; - }; - - clonedMenuItems = menuItems.map(function (item) { - if (item.type.isMenuItemGroup) { - var children = (0, _tinperBeeCore.toArray)(item.props.children).map(clone); - return (0, _react.cloneElement)(item, {}, children); - } - return clone(item); - }); - } else { - // Clear firstActiveItem when dropdown menu items was empty - // Avoid `Unable to find node on an unmounted component` - // https://github.com/ant-design/ant-design/issues/10774 - this.firstActiveItem = null; - } - - // clear activeKey when inputValue change - var lastValue = value && value[value.length - 1]; - if (inputValue !== this.lastInputValue && (!lastValue || lastValue !== backfillValue)) { - activeKeyProps.activeKey = ''; - } - return _react2["default"].createElement( - _rcMenu2["default"], - _extends({ - ref: this.saveMenuRef, - style: this.props.dropdownMenuStyle, - defaultActiveFirst: defaultActiveFirstOption, - role: 'listbox', - itemIcon: multiple ? menuItemSelectedIcon : null - }, activeKeyProps, { - multiple: multiple - }, menuProps, { - selectedKeys: selectedKeys, - prefixCls: clsPrefix + '-menu' - }), - clonedMenuItems - ); } - return null; - }; - DropdownMenu.prototype.render = function render() { - var renderMenu = this.renderMenu(); - return renderMenu ? _react2["default"].createElement( - 'div', - { - style: { - overflow: 'auto', - transform: 'translateZ(0)' + var lb = moment.defineLocale('lb', { + months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split( + '_' + ), + monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split( + '_' + ), + weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'), + weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'H:mm [Auer]', + LTS: 'H:mm:ss [Auer]', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm [Auer]', + LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]', }, - onFocus: this.props.onPopupFocus, - onMouseDown: _util.preventDefaultEvent, - onScroll: this.props.onPopupScroll - }, - renderMenu - ) : null; - }; + calendar: { + sameDay: '[Haut um] LT', + sameElse: 'L', + nextDay: '[Muer um] LT', + nextWeek: 'dddd [um] LT', + lastDay: '[Gëschter um] LT', + lastWeek: function () { + // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule + switch (this.day()) { + case 2: + case 4: + return '[Leschten] dddd [um] LT'; + default: + return '[Leschte] dddd [um] LT'; + } + }, + }, + relativeTime: { + future: processFutureTime, + past: processPastTime, + s: 'e puer Sekonnen', + ss: '%d Sekonnen', + m: processRelativeTime, + mm: '%d Minutten', + h: processRelativeTime, + hh: '%d Stonnen', + d: processRelativeTime, + dd: '%d Deeg', + M: processRelativeTime, + MM: '%d Méint', + y: processRelativeTime, + yy: '%d Joer', + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - return DropdownMenu; - }(_react2["default"].Component); + return lb; - DropdownMenu.displayName = 'DropdownMenu'; - DropdownMenu.propTypes = { - defaultActiveFirstOption: _propTypes2["default"].bool, - value: _propTypes2["default"].any, - dropdownMenuStyle: _propTypes2["default"].object, - multiple: _propTypes2["default"].bool, - onPopupFocus: _propTypes2["default"].func, - onPopupScroll: _propTypes2["default"].func, - onMenuDeSelect: _propTypes2["default"].func, - onMenuSelect: _propTypes2["default"].func, - prefixCls: _propTypes2["default"].string, - menuItems: _propTypes2["default"].any, - inputValue: _propTypes2["default"].string, - visible: _propTypes2["default"].bool, - firstActiveValue: _propTypes2["default"].string, - menuItemSelectedIcon: _propTypes2["default"].oneOfType([_propTypes2["default"].func, _propTypes2["default"].node]) - }; - exports["default"] = DropdownMenu; - module.exports = exports['default']; + }))); + /***/ }), -/* 593 */ +/* 498 */ /***/ (function(module, exports, __webpack_require__) { - 'use strict'; + //! moment.js locale configuration + //! locale : Lao [lo] + //! author : Ryan Hart : https://github.com/ryanhart2 - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.SelectPropTypes = undefined; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _propTypes = __webpack_require__(6); + //! moment.js locale configuration - var _propTypes2 = _interopRequireDefault(_propTypes); + var lo = moment.defineLocale('lo', { + months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split( + '_' + ), + monthsShort: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split( + '_' + ), + weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'), + weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'), + weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'ວັນdddd D MMMM YYYY HH:mm', + }, + meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/, + isPM: function (input) { + return input === 'ຕອນແລງ'; + }, + meridiem: function (hour, minute, isLower) { + if (hour < 12) { + return 'ຕອນເຊົ້າ'; + } else { + return 'ຕອນແລງ'; + } + }, + calendar: { + sameDay: '[ມື້ນີ້ເວລາ] LT', + nextDay: '[ມື້ອື່ນເວລາ] LT', + nextWeek: '[ວັນ]dddd[ໜ້າເວລາ] LT', + lastDay: '[ມື້ວານນີ້ເວລາ] LT', + lastWeek: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'ອີກ %s', + past: '%sຜ່ານມາ', + s: 'ບໍ່ເທົ່າໃດວິນາທີ', + ss: '%d ວິນາທີ', + m: '1 ນາທີ', + mm: '%d ນາທີ', + h: '1 ຊົ່ວໂມງ', + hh: '%d ຊົ່ວໂມງ', + d: '1 ມື້', + dd: '%d ມື້', + M: '1 ເດືອນ', + MM: '%d ເດືອນ', + y: '1 ປີ', + yy: '%d ປີ', + }, + dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/, + ordinal: function (number) { + return 'ທີ່' + number; + }, + }); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + return lo; - function valueType(props, propName, componentName) { - var basicType = _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].number]); + }))); + + +/***/ }), +/* 499 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Lithuanian [lt] + //! author : Mindaugas Mozūras : https://github.com/mmozuras - var labelInValueShape = _propTypes2["default"].shape({ - key: basicType.isRequired, - label: _propTypes2["default"].node - }); - if (props.labelInValue) { - var validate = _propTypes2["default"].oneOfType([_propTypes2["default"].arrayOf(labelInValueShape), labelInValueShape]); - var error = validate.apply(undefined, arguments); - if (error) { - return new Error('Invalid prop `' + propName + '` supplied to `' + componentName + '`, ' + ('when you set `labelInValue` to `true`, `' + propName + '` should in ') + 'shape of `{ key: string | number, label?: ReactNode }`.'); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; + + //! moment.js locale configuration + + var units = { + ss: 'sekundė_sekundžių_sekundes', + m: 'minutė_minutės_minutę', + mm: 'minutės_minučių_minutes', + h: 'valanda_valandos_valandą', + hh: 'valandos_valandų_valandas', + d: 'diena_dienos_dieną', + dd: 'dienos_dienų_dienas', + M: 'mėnuo_mėnesio_mėnesį', + MM: 'mėnesiai_mėnesių_mėnesius', + y: 'metai_metų_metus', + yy: 'metai_metų_metus', + }; + function translateSeconds(number, withoutSuffix, key, isFuture) { + if (withoutSuffix) { + return 'kelios sekundės'; + } else { + return isFuture ? 'kelių sekundžių' : 'kelias sekundes'; + } } - } else if ((props.mode === 'multiple' || props.mode === 'tags' || props.multiple || props.tags) && props[propName] === '') { - return new Error('Invalid prop `' + propName + '` of type `string` supplied to `' + componentName + '`, ' + 'expected `array` when `multiple` or `tags` is `true`.'); - } else { - var _validate = _propTypes2["default"].oneOfType([_propTypes2["default"].arrayOf(basicType), basicType]); - return _validate.apply(undefined, arguments); - } - } /** - * This source code is quoted from rc-select. - * homepage: https://github.com/react-component/select - */ - var SelectPropTypes = exports.SelectPropTypes = { - id: _propTypes2["default"].string, - defaultActiveFirstOption: _propTypes2["default"].bool, - multiple: _propTypes2["default"].bool, - filterOption: _propTypes2["default"].any, - children: _propTypes2["default"].any, - showSearch: _propTypes2["default"].bool, - disabled: _propTypes2["default"].bool, - allowClear: _propTypes2["default"].bool, - showArrow: _propTypes2["default"].bool, - tags: _propTypes2["default"].bool, - prefixCls: _propTypes2["default"].string, - className: _propTypes2["default"].string, - transitionName: _propTypes2["default"].string, - optionLabelProp: _propTypes2["default"].string, - optionFilterProp: _propTypes2["default"].string, - animation: _propTypes2["default"].string, - choiceTransitionName: _propTypes2["default"].string, - open: _propTypes2["default"].bool, - defaultOpen: _propTypes2["default"].bool, - onChange: _propTypes2["default"].func, - onBlur: _propTypes2["default"].func, - onFocus: _propTypes2["default"].func, - onSelect: _propTypes2["default"].func, - onSearch: _propTypes2["default"].func, - onPopupScroll: _propTypes2["default"].func, - onMouseEnter: _propTypes2["default"].func, - onMouseLeave: _propTypes2["default"].func, - onInputKeyDown: _propTypes2["default"].func, - placeholder: _propTypes2["default"].any, - onDeselect: _propTypes2["default"].func, - labelInValue: _propTypes2["default"].bool, - value: valueType, - defaultValue: valueType, - dropdownStyle: _propTypes2["default"].object, - maxTagTextLength: _propTypes2["default"].number, - maxTagCount: _propTypes2["default"].number, - maxTagPlaceholder: _propTypes2["default"].oneOfType([_propTypes2["default"].node, _propTypes2["default"].func]), - tokenSeparators: _propTypes2["default"].arrayOf(_propTypes2["default"].string), - getInputElement: _propTypes2["default"].func, - showAction: _propTypes2["default"].arrayOf(_propTypes2["default"].string), - clearIcon: _propTypes2["default"].node, - inputIcon: _propTypes2["default"].node, - removeIcon: _propTypes2["default"].node, - menuItemSelectedIcon: _propTypes2["default"].oneOfType([_propTypes2["default"].func, _propTypes2["default"].node]) - }; + function translateSingular(number, withoutSuffix, key, isFuture) { + return withoutSuffix + ? forms(key)[0] + : isFuture + ? forms(key)[1] + : forms(key)[2]; + } + function special(number) { + return number % 10 === 0 || (number > 10 && number < 20); + } + function forms(key) { + return units[key].split('_'); + } + function translate(number, withoutSuffix, key, isFuture) { + var result = number + ' '; + if (number === 1) { + return ( + result + translateSingular(number, withoutSuffix, key[0], isFuture) + ); + } else if (withoutSuffix) { + return result + (special(number) ? forms(key)[1] : forms(key)[0]); + } else { + if (isFuture) { + return result + forms(key)[1]; + } else { + return result + (special(number) ? forms(key)[1] : forms(key)[2]); + } + } + } + var lt = moment.defineLocale('lt', { + months: { + format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split( + '_' + ), + standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split( + '_' + ), + isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/, + }, + monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'), + weekdays: { + format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split( + '_' + ), + standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split( + '_' + ), + isFormat: /dddd HH:mm/, + }, + weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'), + weekdaysMin: 'S_P_A_T_K_Pn_Š'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY-MM-DD', + LL: 'YYYY [m.] MMMM D [d.]', + LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]', + LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]', + l: 'YYYY-MM-DD', + ll: 'YYYY [m.] MMMM D [d.]', + lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]', + llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]', + }, + calendar: { + sameDay: '[Šiandien] LT', + nextDay: '[Rytoj] LT', + nextWeek: 'dddd LT', + lastDay: '[Vakar] LT', + lastWeek: '[Praėjusį] dddd LT', + sameElse: 'L', + }, + relativeTime: { + future: 'po %s', + past: 'prieš %s', + s: translateSeconds, + ss: translate, + m: translateSingular, + mm: translate, + h: translateSingular, + hh: translate, + d: translateSingular, + dd: translate, + M: translateSingular, + MM: translate, + y: translateSingular, + yy: translate, + }, + dayOfMonthOrdinalParse: /\d{1,2}-oji/, + ordinal: function (number) { + return number + '-oji'; + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); + + return lt; + + }))); + /***/ }), -/* 594 */ +/* 500 */ /***/ (function(module, exports, __webpack_require__) { - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + //! moment.js locale configuration + //! locale : Latvian [lv] + //! author : Kristaps Karlsons : https://github.com/skakri + //! author : Jānis Elmeris : https://github.com/JanisE - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var OptGroup = function (_React$Component) { - _inherits(OptGroup, _React$Component); + //! moment.js locale configuration - function OptGroup() { - _classCallCheck(this, OptGroup); + var units = { + ss: 'sekundes_sekundēm_sekunde_sekundes'.split('_'), + m: 'minūtes_minūtēm_minūte_minūtes'.split('_'), + mm: 'minūtes_minūtēm_minūte_minūtes'.split('_'), + h: 'stundas_stundām_stunda_stundas'.split('_'), + hh: 'stundas_stundām_stunda_stundas'.split('_'), + d: 'dienas_dienām_diena_dienas'.split('_'), + dd: 'dienas_dienām_diena_dienas'.split('_'), + M: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'), + MM: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'), + y: 'gada_gadiem_gads_gadi'.split('_'), + yy: 'gada_gadiem_gads_gadi'.split('_'), + }; + /** + * @param withoutSuffix boolean true = a length of time; false = before/after a period of time. + */ + function format(forms, number, withoutSuffix) { + if (withoutSuffix) { + // E.g. "21 minūte", "3 minūtes". + return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3]; + } else { + // E.g. "21 minūtes" as in "pēc 21 minūtes". + // E.g. "3 minūtēm" as in "pēc 3 minūtēm". + return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1]; + } + } + function relativeTimeWithPlural(number, withoutSuffix, key) { + return number + ' ' + format(units[key], number, withoutSuffix); + } + function relativeTimeWithSingular(number, withoutSuffix, key) { + return format(units[key], number, withoutSuffix); + } + function relativeSeconds(number, withoutSuffix) { + return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm'; + } - return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); - } + var lv = moment.defineLocale('lv', { + months: 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split( + '_' + ), + monthsShort: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'), + weekdays: 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split( + '_' + ), + weekdaysShort: 'Sv_P_O_T_C_Pk_S'.split('_'), + weekdaysMin: 'Sv_P_O_T_C_Pk_S'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY.', + LL: 'YYYY. [gada] D. MMMM', + LLL: 'YYYY. [gada] D. MMMM, HH:mm', + LLLL: 'YYYY. [gada] D. MMMM, dddd, HH:mm', + }, + calendar: { + sameDay: '[Šodien pulksten] LT', + nextDay: '[Rīt pulksten] LT', + nextWeek: 'dddd [pulksten] LT', + lastDay: '[Vakar pulksten] LT', + lastWeek: '[Pagājušā] dddd [pulksten] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'pēc %s', + past: 'pirms %s', + s: relativeSeconds, + ss: relativeTimeWithPlural, + m: relativeTimeWithSingular, + mm: relativeTimeWithPlural, + h: relativeTimeWithSingular, + hh: relativeTimeWithPlural, + d: relativeTimeWithSingular, + dd: relativeTimeWithPlural, + M: relativeTimeWithSingular, + MM: relativeTimeWithPlural, + y: relativeTimeWithSingular, + yy: relativeTimeWithPlural, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - return OptGroup; - }(_react2["default"].Component); + return lv; - OptGroup.isSelectOptGroup = true; - exports["default"] = OptGroup; - module.exports = exports['default']; + }))); + /***/ }), -/* 595 */ +/* 501 */ /***/ (function(module, exports, __webpack_require__) { - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); + //! moment.js locale configuration + //! locale : Montenegrin [me] + //! author : Miodrag Nikač : https://github.com/miodragnikac - var _InputNumber = __webpack_require__(596); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _InputNumber2 = _interopRequireDefault(_InputNumber); + //! moment.js locale configuration - var _InputNumberGroup = __webpack_require__(598); + var translator = { + words: { + //Different grammatical cases + ss: ['sekund', 'sekunda', 'sekundi'], + m: ['jedan minut', 'jednog minuta'], + mm: ['minut', 'minuta', 'minuta'], + h: ['jedan sat', 'jednog sata'], + hh: ['sat', 'sata', 'sati'], + dd: ['dan', 'dana', 'dana'], + MM: ['mjesec', 'mjeseca', 'mjeseci'], + yy: ['godina', 'godine', 'godina'], + }, + correctGrammaticalCase: function (number, wordKey) { + return number === 1 + ? wordKey[0] + : number >= 2 && number <= 4 + ? wordKey[1] + : wordKey[2]; + }, + translate: function (number, withoutSuffix, key) { + var wordKey = translator.words[key]; + if (key.length === 1) { + return withoutSuffix ? wordKey[0] : wordKey[1]; + } else { + return ( + number + + ' ' + + translator.correctGrammaticalCase(number, wordKey) + ); + } + }, + }; - var _InputNumberGroup2 = _interopRequireDefault(_InputNumberGroup); + var me = moment.defineLocale('me', { + months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split( + '_' + ), + monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split( + '_' + ), + weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), + weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd, D. MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[danas u] LT', + nextDay: '[sjutra u] LT', - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + nextWeek: function () { + switch (this.day()) { + case 0: + return '[u] [nedjelju] [u] LT'; + case 3: + return '[u] [srijedu] [u] LT'; + case 6: + return '[u] [subotu] [u] LT'; + case 1: + case 2: + case 4: + case 5: + return '[u] dddd [u] LT'; + } + }, + lastDay: '[juče u] LT', + lastWeek: function () { + var lastWeekDays = [ + '[prošle] [nedjelje] [u] LT', + '[prošlog] [ponedjeljka] [u] LT', + '[prošlog] [utorka] [u] LT', + '[prošle] [srijede] [u] LT', + '[prošlog] [četvrtka] [u] LT', + '[prošlog] [petka] [u] LT', + '[prošle] [subote] [u] LT', + ]; + return lastWeekDays[this.day()]; + }, + sameElse: 'L', + }, + relativeTime: { + future: 'za %s', + past: 'prije %s', + s: 'nekoliko sekundi', + ss: translator.translate, + m: translator.translate, + mm: translator.translate, + h: translator.translate, + hh: translator.translate, + d: 'dan', + dd: translator.translate, + M: 'mjesec', + MM: translator.translate, + y: 'godinu', + yy: translator.translate, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, + }); - _InputNumber2["default"].InputNumberGroup = _InputNumberGroup2["default"]; + return me; - exports["default"] = _InputNumber2["default"]; - module.exports = exports['default']; + }))); + /***/ }), -/* 596 */ +/* 502 */ /***/ (function(module, exports, __webpack_require__) { - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _classnames = __webpack_require__(5); - - var _classnames2 = _interopRequireDefault(_classnames); - - var _beeInputGroup = __webpack_require__(562); - - var _beeInputGroup2 = _interopRequireDefault(_beeInputGroup); - - var _beeFormControl = __webpack_require__(268); - - var _beeFormControl2 = _interopRequireDefault(_beeFormControl); - - var _beeMessage = __webpack_require__(53); - - var _beeMessage2 = _interopRequireDefault(_beeMessage); + //! moment.js locale configuration + //! locale : Maori [mi] + //! author : John Corrigan : https://github.com/johnideal - var _propTypes = __webpack_require__(6); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _propTypes2 = _interopRequireDefault(_propTypes); + //! moment.js locale configuration - var _i18n = __webpack_require__(597); + var mi = moment.defineLocale('mi', { + months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split( + '_' + ), + monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split( + '_' + ), + monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, + monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, + monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, + monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i, + weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'), + weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'), + weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY [i] HH:mm', + LLLL: 'dddd, D MMMM YYYY [i] HH:mm', + }, + calendar: { + sameDay: '[i teie mahana, i] LT', + nextDay: '[apopo i] LT', + nextWeek: 'dddd [i] LT', + lastDay: '[inanahi i] LT', + lastWeek: 'dddd [whakamutunga i] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'i roto i %s', + past: '%s i mua', + s: 'te hēkona ruarua', + ss: '%d hēkona', + m: 'he meneti', + mm: '%d meneti', + h: 'te haora', + hh: '%d haora', + d: 'he ra', + dd: '%d ra', + M: 'he marama', + MM: '%d marama', + y: 'he tau', + yy: '%d tau', + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - var _i18n2 = _interopRequireDefault(_i18n); + return mi; - var _tool = __webpack_require__(120); + }))); + + +/***/ }), +/* 503 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Macedonian [mk] + //! author : Borislav Mickov : https://github.com/B0k0 + //! author : Sashko Todorov : https://github.com/bkyceh - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + //! moment.js locale configuration - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + var mk = moment.defineLocale('mk', { + months: 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split( + '_' + ), + monthsShort: 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'), + weekdays: 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split( + '_' + ), + weekdaysShort: 'нед_пон_вто_сре_чет_пет_саб'.split('_'), + weekdaysMin: 'нe_пo_вт_ср_че_пе_сa'.split('_'), + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'D.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY H:mm', + LLLL: 'dddd, D MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[Денес во] LT', + nextDay: '[Утре во] LT', + nextWeek: '[Во] dddd [во] LT', + lastDay: '[Вчера во] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + case 3: + case 6: + return '[Изминатата] dddd [во] LT'; + case 1: + case 2: + case 4: + case 5: + return '[Изминатиот] dddd [во] LT'; + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'за %s', + past: 'пред %s', + s: 'неколку секунди', + ss: '%d секунди', + m: 'една минута', + mm: '%d минути', + h: 'еден час', + hh: '%d часа', + d: 'еден ден', + dd: '%d дена', + M: 'еден месец', + MM: '%d месеци', + y: 'една година', + yy: '%d години', + }, + dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/, + ordinal: function (number) { + var lastDigit = number % 10, + last2Digits = number % 100; + if (number === 0) { + return number + '-ев'; + } else if (last2Digits === 0) { + return number + '-ен'; + } else if (last2Digits > 10 && last2Digits < 20) { + return number + '-ти'; + } else if (lastDigit === 1) { + return number + '-ви'; + } else if (lastDigit === 2) { + return number + '-ри'; + } else if (lastDigit === 7 || lastDigit === 8) { + return number + '-ми'; + } else { + return number + '-ти'; + } + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, + }); - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + return mk; - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + }))); + + +/***/ }), +/* 504 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Malayalam [ml] + //! author : Floyd Pink : https://github.com/floydpink - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + //! moment.js locale configuration - var propTypes = { - max: _propTypes2["default"].number, - min: _propTypes2["default"].number, - step: _propTypes2["default"].number, - autoWidth: _propTypes2["default"].bool, - precision: _propTypes2["default"].number, - format: _propTypes2["default"].func, - delay: _propTypes2["default"].number, - disabled: _propTypes2["default"].bool, - toThousands: _propTypes2["default"].bool, - locale: _propTypes2["default"].object, - toNumber: _propTypes2["default"].bool, //回调函数内的值是否转换为数值类型 - displayCheckPrompt: _propTypes2["default"].bool, //是否显示超出限制范围之后的检验提示 - minusRight: _propTypes2["default"].bool, //负号是否在右边 - handleBtnClick: _propTypes2["default"].func //加减按钮点击回调 - }; + var ml = moment.defineLocale('ml', { + months: 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split( + '_' + ), + monthsShort: 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split( + '_' + ), + weekdaysShort: 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'), + weekdaysMin: 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'), + longDateFormat: { + LT: 'A h:mm -നു', + LTS: 'A h:mm:ss -നു', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm -നു', + LLLL: 'dddd, D MMMM YYYY, A h:mm -നു', + }, + calendar: { + sameDay: '[ഇന്ന്] LT', + nextDay: '[നാളെ] LT', + nextWeek: 'dddd, LT', + lastDay: '[ഇന്നലെ] LT', + lastWeek: '[കഴിഞ്ഞ] dddd, LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s കഴിഞ്ഞ്', + past: '%s മുൻപ്', + s: 'അൽപ നിമിഷങ്ങൾ', + ss: '%d സെക്കൻഡ്', + m: 'ഒരു മിനിറ്റ്', + mm: '%d മിനിറ്റ്', + h: 'ഒരു മണിക്കൂർ', + hh: '%d മണിക്കൂർ', + d: 'ഒരു ദിവസം', + dd: '%d ദിവസം', + M: 'ഒരു മാസം', + MM: '%d മാസം', + y: 'ഒരു വർഷം', + yy: '%d വർഷം', + }, + meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if ( + (meridiem === 'രാത്രി' && hour >= 4) || + meridiem === 'ഉച്ച കഴിഞ്ഞ്' || + meridiem === 'വൈകുന്നേരം' + ) { + return hour + 12; + } else { + return hour; + } + }, + meridiem: function (hour, minute, isLower) { + if (hour < 4) { + return 'രാത്രി'; + } else if (hour < 12) { + return 'രാവിലെ'; + } else if (hour < 17) { + return 'ഉച്ച കഴിഞ്ഞ്'; + } else if (hour < 20) { + return 'വൈകുന്നേരം'; + } else { + return 'രാത്രി'; + } + }, + }); - var defaultProps = { - value: "", - step: 1, - clsPrefix: 'u-input-number', - iconStyle: 'double', - autoWidth: false, - delay: 300, - toNumber: false, - displayCheckPrompt: false, - locale: {}, - handleBtnClick: function handleBtnClick() {} - }; + return ml; - //校验提示 - function prompt(content) { - _beeMessage2["default"].destroy(); - _beeMessage2["default"].create({ content: content, color: 'warninglight' }); - } + }))); + + +/***/ }), +/* 505 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Mongolian [mn] + //! author : Javkhlantugs Nyamdorj : https://github.com/javkhaanj7 - /** - * 千分符 - * @param {要转换的数据} num - */ - function toThousands(number) { - if (number === '') return ''; - if (number === '0') return '0'; - var num = (number || 0).toString(); - var integer = num.split('.')[0]; - var decimal = num.split('.')[1] || ''; - var result = ''; - while (integer.length > 3) { - result = ',' + integer.slice(-3) + result; - integer = integer.slice(0, integer.length - 3); - } - if (integer) { - result = integer + result; - if (num == '.' || num.indexOf('.') == num.length - 1) { - result = result + '.' + decimal; - } else if (decimal) { - result = result + '.' + decimal; - } - } - if (result[0] == '-') { - result = result.replace('-,', '-'); - } - return result; - } + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function setCaretPosition(ctrl, pos, need) { + //! moment.js locale configuration - if (ctrl && need) { - if (ctrl.setSelectionRange) { - ctrl.focus(); - ctrl.setSelectionRange(pos, pos); - // IE8 and below - } else if (ctrl.createTextRange) { - var range = ctrl.createTextRange(); - range.collapse(true); - range.moveEnd('character', pos); - range.moveStart('character', pos); - range.select(); + function translate(number, withoutSuffix, key, isFuture) { + switch (key) { + case 's': + return withoutSuffix ? 'хэдхэн секунд' : 'хэдхэн секундын'; + case 'ss': + return number + (withoutSuffix ? ' секунд' : ' секундын'); + case 'm': + case 'mm': + return number + (withoutSuffix ? ' минут' : ' минутын'); + case 'h': + case 'hh': + return number + (withoutSuffix ? ' цаг' : ' цагийн'); + case 'd': + case 'dd': + return number + (withoutSuffix ? ' өдөр' : ' өдрийн'); + case 'M': + case 'MM': + return number + (withoutSuffix ? ' сар' : ' сарын'); + case 'y': + case 'yy': + return number + (withoutSuffix ? ' жил' : ' жилийн'); + default: + return number; } } - } - var InputNumber = function (_Component) { - _inherits(InputNumber, _Component); + var mn = moment.defineLocale('mn', { + months: 'Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар'.split( + '_' + ), + monthsShort: '1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба'.split('_'), + weekdaysShort: 'Ням_Дав_Мяг_Лха_Пүр_Баа_Бям'.split('_'), + weekdaysMin: 'Ня_Да_Мя_Лх_Пү_Ба_Бя'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY-MM-DD', + LL: 'YYYY оны MMMMын D', + LLL: 'YYYY оны MMMMын D HH:mm', + LLLL: 'dddd, YYYY оны MMMMын D HH:mm', + }, + meridiemParse: /ҮӨ|ҮХ/i, + isPM: function (input) { + return input === 'ҮХ'; + }, + meridiem: function (hour, minute, isLower) { + if (hour < 12) { + return 'ҮӨ'; + } else { + return 'ҮХ'; + } + }, + calendar: { + sameDay: '[Өнөөдөр] LT', + nextDay: '[Маргааш] LT', + nextWeek: '[Ирэх] dddd LT', + lastDay: '[Өчигдөр] LT', + lastWeek: '[Өнгөрсөн] dddd LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s дараа', + past: '%s өмнө', + s: translate, + ss: translate, + m: translate, + mm: translate, + h: translate, + hh: translate, + d: translate, + dd: translate, + M: translate, + MM: translate, + y: translate, + yy: translate, + }, + dayOfMonthOrdinalParse: /\d{1,2} өдөр/, + ordinal: function (number, period) { + switch (period) { + case 'd': + case 'D': + case 'DDD': + return number + ' өдөр'; + default: + return number; + } + }, + }); - function InputNumber(props) { - _classCallCheck(this, InputNumber); + return mn; - // 初始化状态,加减按钮是否可用,根据当前值判断 + }))); + + +/***/ }), +/* 506 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Marathi [mr] + //! author : Harshad Kale : https://github.com/kalehv + //! author : Vivek Athalye : https://github.com/vnathalye - var _this = _possibleConstructorReturn(this, _Component.call(this, props)); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - _initialiseProps.call(_this); + //! moment.js locale configuration - var data = _this.judgeValue(props); - _this.state = { - value: data.value, - minusDisabled: data.minusDisabled, - plusDisabled: data.plusDisabled, - showValue: toThousands(data.value) + var symbolMap = { + '1': '१', + '2': '२', + '3': '३', + '4': '४', + '5': '५', + '6': '६', + '7': '७', + '8': '८', + '9': '९', + '0': '०', + }, + numberMap = { + '१': '1', + '२': '2', + '३': '3', + '४': '4', + '५': '5', + '६': '6', + '७': '7', + '८': '8', + '९': '9', + '०': '0', }; - _this.timer = null; - _this.focus = false; - _this.selectionStart = 0; - return _this; - } - - // unThousands = (number) =>{ - // if(!number || number === "")return number; - // number = number.toString(); - // return number.replace(new RegExp(this.props.formatSymbol,'g'),''); - // // return number.replace(/\,/g,''); - // } - - /** - * 校验value - * @param {*} props - * @param {原来的值} oldValue - */ - - - InputNumber.prototype.componentDidMount = function componentDidMount() { - this.setState({ - value: this.props.value, - showValue: toThousands(this.props.value) - }); - }; - - InputNumber.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - if (this.focus) { - if (nextProps.value == Infinity || nextProps.value == -Infinity) {} else { - this.setState({ - value: nextProps.value, - showValue: toThousands(nextProps.value) - }); + function relativeTimeMr(number, withoutSuffix, string, isFuture) { + var output = ''; + if (withoutSuffix) { + switch (string) { + case 's': + output = 'काही सेकंद'; + break; + case 'ss': + output = '%d सेकंद'; + break; + case 'm': + output = 'एक मिनिट'; + break; + case 'mm': + output = '%d मिनिटे'; + break; + case 'h': + output = 'एक तास'; + break; + case 'hh': + output = '%d तास'; + break; + case 'd': + output = 'एक दिवस'; + break; + case 'dd': + output = '%d दिवस'; + break; + case 'M': + output = 'एक महिना'; + break; + case 'MM': + output = '%d महिने'; + break; + case 'y': + output = 'एक वर्ष'; + break; + case 'yy': + output = '%d वर्षे'; + break; } } else { - var data = this.judgeValue(nextProps, this.state.value); - this.setState({ - value: data.value, - showValue: toThousands(data.value), - minusDisabled: data.minusDisabled, - plusDisabled: data.plusDisabled - }); + switch (string) { + case 's': + output = 'काही सेकंदां'; + break; + case 'ss': + output = '%d सेकंदां'; + break; + case 'm': + output = 'एका मिनिटा'; + break; + case 'mm': + output = '%d मिनिटां'; + break; + case 'h': + output = 'एका तासा'; + break; + case 'hh': + output = '%d तासां'; + break; + case 'd': + output = 'एका दिवसा'; + break; + case 'dd': + output = '%d दिवसां'; + break; + case 'M': + output = 'एका महिन्या'; + break; + case 'MM': + output = '%d महिन्यां'; + break; + case 'y': + output = 'एका वर्षा'; + break; + case 'yy': + output = '%d वर्षां'; + break; + } } - }; + return output.replace(/%d/i, number); + } + + var mr = moment.defineLocale('mr', { + months: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split( + '_' + ), + monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'), + weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'), + weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'), + longDateFormat: { + LT: 'A h:mm वाजता', + LTS: 'A h:mm:ss वाजता', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm वाजता', + LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता', + }, + calendar: { + sameDay: '[आज] LT', + nextDay: '[उद्या] LT', + nextWeek: 'dddd, LT', + lastDay: '[काल] LT', + lastWeek: '[मागील] dddd, LT', + sameElse: 'L', + }, + relativeTime: { + future: '%sमध्ये', + past: '%sपूर्वी', + s: relativeTimeMr, + ss: relativeTimeMr, + m: relativeTimeMr, + mm: relativeTimeMr, + h: relativeTimeMr, + hh: relativeTimeMr, + d: relativeTimeMr, + dd: relativeTimeMr, + M: relativeTimeMr, + MM: relativeTimeMr, + y: relativeTimeMr, + yy: relativeTimeMr, + }, + preparse: function (string) { + return string.replace(/[१२३४५६७८९०]/g, function (match) { + return numberMap[match]; + }); + }, + postformat: function (string) { + return string.replace(/\d/g, function (match) { + return symbolMap[match]; + }); + }, + meridiemParse: /पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === 'पहाटे' || meridiem === 'सकाळी') { + return hour; + } else if ( + meridiem === 'दुपारी' || + meridiem === 'सायंकाळी' || + meridiem === 'रात्री' + ) { + return hour >= 12 ? hour : hour + 12; + } + }, + meridiem: function (hour, minute, isLower) { + if (hour >= 0 && hour < 6) { + return 'पहाटे'; + } else if (hour < 12) { + return 'सकाळी'; + } else if (hour < 17) { + return 'दुपारी'; + } else if (hour < 20) { + return 'सायंकाळी'; + } else { + return 'रात्री'; + } + }, + week: { + dow: 0, // Sunday is the first day of the week. + doy: 6, // The week that contains Jan 6th is the first week of the year. + }, + }); - InputNumber.prototype.ComponentWillUnMount = function ComponentWillUnMount() { - this.clear(); - }; + return mr; - /** - * @memberof InputNumber - * type 是否要四舍五入(此参数无效,超长不让输入) - */ + }))); + + +/***/ }), +/* 507 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Malay [ms] + //! author : Weldan Jamili : https://github.com/weldan - /** - * 恢复科学技术法的问题 - */ + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - /** - * 设置增加减少按钮是否可用 - */ + //! moment.js locale configuration - /** - * 减法 - */ + var ms = moment.defineLocale('ms', { + months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'), + weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'), + weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'), + weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'), + longDateFormat: { + LT: 'HH.mm', + LTS: 'HH.mm.ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY [pukul] HH.mm', + LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm', + }, + meridiemParse: /pagi|tengahari|petang|malam/, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === 'pagi') { + return hour; + } else if (meridiem === 'tengahari') { + return hour >= 11 ? hour : hour + 12; + } else if (meridiem === 'petang' || meridiem === 'malam') { + return hour + 12; + } + }, + meridiem: function (hours, minutes, isLower) { + if (hours < 11) { + return 'pagi'; + } else if (hours < 15) { + return 'tengahari'; + } else if (hours < 19) { + return 'petang'; + } else { + return 'malam'; + } + }, + calendar: { + sameDay: '[Hari ini pukul] LT', + nextDay: '[Esok pukul] LT', + nextWeek: 'dddd [pukul] LT', + lastDay: '[Kelmarin pukul] LT', + lastWeek: 'dddd [lepas pukul] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'dalam %s', + past: '%s yang lepas', + s: 'beberapa saat', + ss: '%d saat', + m: 'seminit', + mm: '%d minit', + h: 'sejam', + hh: '%d jam', + d: 'sehari', + dd: '%d hari', + M: 'sebulan', + MM: '%d bulan', + y: 'setahun', + yy: '%d tahun', + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, + }); - /** - * 加法 - */ + return ms; + }))); + + +/***/ }), +/* 508 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Malay [ms-my] + //! note : DEPRECATED, the correct one is [ms] + //! author : Weldan Jamili : https://github.com/weldan - /** - * 分离小数和整数 - * @param value - * @returns {*} - */ + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; + //! moment.js locale configuration - InputNumber.prototype.render = function render() { - var _classes, - _this2 = this; + var msMy = moment.defineLocale('ms-my', { + months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'), + weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'), + weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'), + weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'), + longDateFormat: { + LT: 'HH.mm', + LTS: 'HH.mm.ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY [pukul] HH.mm', + LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm', + }, + meridiemParse: /pagi|tengahari|petang|malam/, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === 'pagi') { + return hour; + } else if (meridiem === 'tengahari') { + return hour >= 11 ? hour : hour + 12; + } else if (meridiem === 'petang' || meridiem === 'malam') { + return hour + 12; + } + }, + meridiem: function (hours, minutes, isLower) { + if (hours < 11) { + return 'pagi'; + } else if (hours < 15) { + return 'tengahari'; + } else if (hours < 19) { + return 'petang'; + } else { + return 'malam'; + } + }, + calendar: { + sameDay: '[Hari ini pukul] LT', + nextDay: '[Esok pukul] LT', + nextWeek: 'dddd [pukul] LT', + lastDay: '[Kelmarin pukul] LT', + lastWeek: 'dddd [lepas pukul] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'dalam %s', + past: '%s yang lepas', + s: 'beberapa saat', + ss: '%d saat', + m: 'seminit', + mm: '%d minit', + h: 'sejam', + hh: '%d jam', + d: 'sehari', + dd: '%d hari', + M: 'sebulan', + MM: '%d bulan', + y: 'setahun', + yy: '%d tahun', + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, + }); - var _props = this.props, - toThousands = _props.toThousands, - minusRight = _props.minusRight, - max = _props.max, - min = _props.min, - step = _props.step, - disabled = _props.disabled, - clsPrefix = _props.clsPrefix, - className = _props.className, - delay = _props.delay, - onBlur = _props.onBlur, - onFocus = _props.onFocus, - iconStyle = _props.iconStyle, - autoWidth = _props.autoWidth, - onChange = _props.onChange, - format = _props.format, - precision = _props.precision, - toNumber = _props.toNumber, - others = _objectWithoutProperties(_props, ['toThousands', 'minusRight', 'max', 'min', 'step', 'disabled', 'clsPrefix', 'className', 'delay', 'onBlur', 'onFocus', 'iconStyle', 'autoWidth', 'onChange', 'format', 'precision', 'toNumber']); + return msMy; - var classes = (_classes = {}, _defineProperty(_classes, clsPrefix + '-auto', autoWidth), _defineProperty(_classes, '' + clsPrefix, true), _defineProperty(_classes, clsPrefix + '-lg', others.size === "lg"), _defineProperty(_classes, clsPrefix + '-sm', others.size === "sm"), _classes); + }))); + + +/***/ }), +/* 509 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Maltese (Malta) [mt] + //! author : Alessandro Maruccia : https://github.com/alesma - var _state = this.state, - value = _state.value, - minusDisabled = _state.minusDisabled, - plusDisabled = _state.plusDisabled, - showValue = _state.showValue; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - value = precision != null && !this.focus ? this.getPrecision(value) : value; - value = format && !this.focus ? format(value) : value; - value = String(value).indexOf("e") !== -1 ? this.getFullNum(value) : value; - if (minusRight && String(value).indexOf('-') != -1) { - value = String(value).replace("-", "") + "-"; - } - var disabledCursor = disabled ? ' disabled-cursor' : ''; - var disabledCon = disabled ? ' disabled-con' : ''; - return _react2["default"].createElement( - 'div', - { className: clsPrefix + '-out' }, - iconStyle === 'double' ? _react2["default"].createElement( - _beeInputGroup2["default"], - { className: (0, _classnames2["default"])(className, classes, disabledCon) }, - _react2["default"].createElement( - _beeInputGroup2["default"].Addon, - { - // onClick={()=>{minusDisabled?'':this.handleBtnClick('down')}} - className: (minusDisabled && 'disabled') + disabledCursor, - onMouseDown: this.handleReduceMouseDown, - onMouseLeave: this.clear, - onMouseUp: this.clear }, - '-' - ), - _react2["default"].createElement(_beeFormControl2["default"], _extends({}, others, { - value: toThousands ? showValue : value, - disabled: disabled, - onBlur: this.handleBlur, - onFocus: this.handleFocus, - onChange: this.handleChange, - ref: function ref(_ref) { - return _this2.input = _ref; - } - })), - _react2["default"].createElement( - _beeInputGroup2["default"].Addon, - { - // onClick={()=>{plusDisabled?'':this.handleBtnClick('up')}} - className: (plusDisabled && 'disabled') + disabledCursor, - onMouseDown: this.handlePlusMouseDown, - onMouseLeave: this.clear, - onMouseUp: this.clear }, - '+' - ) - ) : _react2["default"].createElement( - _beeInputGroup2["default"], - { - className: (0, _classnames2["default"])(className, classes, disabledCon), - simple: true - }, - _react2["default"].createElement(_beeFormControl2["default"], _extends({}, others, { - value: toThousands ? showValue : value, - disabled: disabled, - onBlur: this.handleBlur, - onFocus: this.handleFocus, - onChange: this.handleChange, - ref: function ref(_ref2) { - return _this2.input = _ref2; - } - })), - _react2["default"].createElement( - _beeInputGroup2["default"].Button, - null, - _react2["default"].createElement( - 'div', - { className: (0, _classnames2["default"])("icon-group") }, - _react2["default"].createElement( - 'span', - { - // onClick={()=>{plusDisabled?'':this.handleBtnClick('up')}} - onMouseDown: this.handlePlusMouseDown, - onMouseLeave: this.clear, - onMouseUp: this.clear, - className: (0, _classnames2["default"])('plus', { 'disabled': plusDisabled, 'disabled-cursor': disabledCursor }) }, - _react2["default"].createElement('span', { className: 'uf uf-arrow-up' }) - ), - _react2["default"].createElement( - 'span', - { - // onClick={()=> minusDisabled?'':this.handleBtnClick('down')} - onMouseDown: this.handleReduceMouseDown, - onMouseLeave: this.clear, - onMouseUp: this.clear, - className: (0, _classnames2["default"])("reduce", { 'disabled': minusDisabled, 'disabled-cursor': disabledCursor }) }, - _react2["default"].createElement('span', { className: ' uf uf-arrow-down' }) - ) - ) - ) - ) - ); - }; + //! moment.js locale configuration - return InputNumber; - }(_react.Component); + var mt = moment.defineLocale('mt', { + months: 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split( + '_' + ), + monthsShort: 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'), + weekdays: 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split( + '_' + ), + weekdaysShort: 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'), + weekdaysMin: 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Illum fil-]LT', + nextDay: '[Għada fil-]LT', + nextWeek: 'dddd [fil-]LT', + lastDay: '[Il-bieraħ fil-]LT', + lastWeek: 'dddd [li għadda] [fil-]LT', + sameElse: 'L', + }, + relativeTime: { + future: 'f’ %s', + past: '%s ilu', + s: 'ftit sekondi', + ss: '%d sekondi', + m: 'minuta', + mm: '%d minuti', + h: 'siegħa', + hh: '%d siegħat', + d: 'ġurnata', + dd: '%d ġranet', + M: 'xahar', + MM: '%d xhur', + y: 'sena', + yy: '%d sni', + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - var _initialiseProps = function _initialiseProps() { - var _this3 = this; + return mt; - this.judgeValue = function (props, oldValue) { - var currentValue = void 0; - var currentMinusDisabled = false; - var currentPlusDisabled = false; - var value = props.value, - min = props.min, - max = props.max, - precision = props.precision, - onChange = props.onChange, - displayCheckPrompt = props.displayCheckPrompt; + }))); + + +/***/ }), +/* 510 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Burmese [my] + //! author : Squar team, mysquar.com + //! author : David Rossellat : https://github.com/gholadr + //! author : Tin Aung Lin : https://github.com/thanyawzinmin - if (props.minusRight) { - value = value.toString(); - if (value.indexOf('-') != -1) { - //所有位置的负号转到前边 - value = value.replace('-', ''); - value = '-' + value; - } - value = Number(value); - } - if (value != undefined && value != null) { - if (value === '') { - currentValue = ''; - return { - value: '', - minusDisabled: false, - plusDisabled: false - }; - } else { - currentValue = Number(value) || 0; - } - } //lse if (min&&(value!='')) {//mdd中提出bug - //currentValue = min; - //} - else if (value === '0' || value === 0) { - currentValue = 0; - } else { - //NaN - if (oldValue || oldValue === 0 || oldValue === '0') { - currentValue = oldValue; - } else { - //value为空 - return { - value: '', - minusDisabled: false, - plusDisabled: false - }; - } - } - if (currentValue == -Infinity) { - return { - value: min, - minusDisabled: true, - plusDisabled: false - }; - } - if (currentValue == Infinity) { - return { - value: max, - minusDisabled: false, - plusDisabled: true - }; - } - var local = (0, _tool.getComponentLocale)(props, _this3.context, 'InputNumber', function () { - return _i18n2["default"]; - }); - if (min && currentValue <= min) { - if (displayCheckPrompt) prompt(local['msgMin']); - currentMinusDisabled = true; - currentValue = min; - } - if (max && currentValue >= max) { - if (displayCheckPrompt) prompt(local['msgMax']); - currentPlusDisabled = true; - currentValue = max; - } + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - if (props.hasOwnProperty('precision')) { - // currentValue = Number(currentValue).toFixed(precision); - currentValue = _this3.getPrecision(currentValue); - } - if (props.minusRight) { - currentValue = currentValue.toString(); - if (currentValue.indexOf('-') != -1) { - //负号转到后边 - currentValue = currentValue.replace('-', ''); - currentValue = currentValue + '-'; - } - } + //! moment.js locale configuration - return { - value: currentValue, - minusDisabled: currentMinusDisabled, - plusDisabled: currentPlusDisabled + var symbolMap = { + '1': '၁', + '2': '၂', + '3': '၃', + '4': '၄', + '5': '၅', + '6': '၆', + '7': '၇', + '8': '၈', + '9': '၉', + '0': '၀', + }, + numberMap = { + '၁': '1', + '၂': '2', + '၃': '3', + '၄': '4', + '၅': '5', + '၆': '6', + '၇': '7', + '၈': '8', + '၉': '9', + '၀': '0', }; - }; - - this.numToFixed = function (value, fixed, type) { - value = String(value); - if (!value && value !== "0") return value; - if (!fixed && String(fixed) !== "0") return value; - var preIndex = value.indexOf("."); - if (value.indexOf(".") === -1) return value; - preIndex++; - var endIndex = preIndex + fixed; - var precValue = value.substr(preIndex, endIndex) + "0000000000"; - if (type) { - return Number(value).toFixed(fixed); - } - return value.split(".")[0] + "." + precValue.substr(0, fixed); - }; - this.handleChange = function (value) { - var selectionStart = _this3.input.selectionStart == undefined ? _this3.input.input.selectionStart : _this3.input.selectionStart; - _this3.selectionStart = selectionStart; - var _props2 = _this3.props, - onChange = _props2.onChange, - toNumber = _props2.toNumber, - minusRight = _props2.minusRight; + var my = moment.defineLocale('my', { + months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split( + '_' + ), + monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'), + weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split( + '_' + ), + weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'), + weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'), - if (value === '') { - onChange && onChange(value); - _this3.setState({ - value: value, - showValue: '' + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[ယနေ.] LT [မှာ]', + nextDay: '[မနက်ဖြန်] LT [မှာ]', + nextWeek: 'dddd LT [မှာ]', + lastDay: '[မနေ.က] LT [မှာ]', + lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]', + sameElse: 'L', + }, + relativeTime: { + future: 'လာမည့် %s မှာ', + past: 'လွန်ခဲ့သော %s က', + s: 'စက္ကန်.အနည်းငယ်', + ss: '%d စက္ကန့်', + m: 'တစ်မိနစ်', + mm: '%d မိနစ်', + h: 'တစ်နာရီ', + hh: '%d နာရီ', + d: 'တစ်ရက်', + dd: '%d ရက်', + M: 'တစ်လ', + MM: '%d လ', + y: 'တစ်နှစ်', + yy: '%d နှစ်', + }, + preparse: function (string) { + return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) { + return numberMap[match]; }); - return; - } - // value = this.unThousands(value); - if (minusRight) { - if (value.match(/-/g) && value.match(/-/g).length > 1) return; - } - if (isNaN(value) && value !== '.' && value !== '-') return; - if (value.indexOf(".") !== -1) { - //小数最大值处理 - var prec = String(value.split(".")[1]).replace("-", ""); - if (_this3.props.precision === 0 && (prec === "" || prec != "")) return; - if (_this3.props.precision && prec.length > _this3.props.precision) return; - if (prec.length > 8) return; - } - _this3.setState({ - value: value, - showValue: toThousands(value) - }); - if (value === '-') { - onChange && onChange(value); - } else if (value == '.' || value.indexOf('.') == value.length - 1) { - //当输入小数点的时候 - onChange && onChange(value); - } else if (value[value.indexOf('.') + 1] == 0) { - //当输入 d.0 的时候,不转换Number - onChange && onChange(value); - } else { - toNumber ? onChange && onChange(Number(value)) : onChange && onChange(value); - } - if (_this3.props.toThousands) { - var stateShowValue = toThousands(_this3.state.value); - var showValue = toThousands(value); - var addNumber = 0; - var delNumber = 0; - var reg = /[0-9]/; - for (var i = 0; i < selectionStart; i++) { - if (!reg.test(showValue[i])) addNumber += 1; - } - for (var j = 0; j < selectionStart; j++) { - if (stateShowValue[j]) { - if (!reg.test(stateShowValue[j])) delNumber += 1; - } - } - var position = selectionStart + addNumber - delNumber; - setCaretPosition(_this3.input && _this3.input.input, position, true); - } - }; + }, + postformat: function (string) { + return string.replace(/\d/g, function (match) { + return symbolMap[match]; + }); + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - this.handleFocus = function (value, e) { - _this3.focus = true; - var _props3 = _this3.props, - onFocus = _props3.onFocus, - min = _props3.min, - max = _props3.max; + return my; - onFocus && onFocus(_this3.getPrecision(_this3.state.value), e); - }; + }))); + + +/***/ }), +/* 511 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Norwegian Bokmål [nb] + //! authors : Espen Hovlandsdal : https://github.com/rexxars + //! Sigurd Gartmann : https://github.com/sigurdga + //! Stephen Ramthun : https://github.com/stephenramthun - this.getFullNum = function (num) { - //处理非数字 - if (isNaN(num)) { - return num; - }; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - //处理不需要转换的数字 - var str = '' + num; - if (!/e/i.test(str)) { - return num; - }; - var _precision = _this3.props.precision ? _this3.props.precision : 18; - return Number(num).toFixed(_precision).replace(/\.?0+$/, ""); - }; + //! moment.js locale configuration - this.handleBlur = function (v, e) { - _this3.focus = false; - var _props4 = _this3.props, - onBlur = _props4.onBlur, - precision = _props4.precision, - onChange = _props4.onChange, - toNumber = _props4.toNumber, - max = _props4.max, - min = _props4.min, - displayCheckPrompt = _props4.displayCheckPrompt, - minusRight = _props4.minusRight, - round = _props4.round; + var nb = moment.defineLocale('nb', { + months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split( + '_' + ), + monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'), + weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'), + weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY [kl.] HH:mm', + LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm', + }, + calendar: { + sameDay: '[i dag kl.] LT', + nextDay: '[i morgen kl.] LT', + nextWeek: 'dddd [kl.] LT', + lastDay: '[i går kl.] LT', + lastWeek: '[forrige] dddd [kl.] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'om %s', + past: '%s siden', + s: 'noen sekunder', + ss: '%d sekunder', + m: 'ett minutt', + mm: '%d minutter', + h: 'en time', + hh: '%d timer', + d: 'en dag', + dd: '%d dager', + M: 'en måned', + MM: '%d måneder', + y: 'ett år', + yy: '%d år', + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - var local = (0, _tool.getComponentLocale)(_this3.props, _this3.context, 'InputNumber', function () { - return _i18n2["default"]; - }); - v = _this3.state.value; //在onBlur的时候不需要活输入框的只,而是要获取state中的值,因为有format的时候就会有问题。 - if (v === '' || !v) { - _this3.setState({ - value: v - }); - onChange && onChange(v); - onBlur && onBlur(v, e); - return; - } - // let value = this.unThousands(v); - var value = _this3.numToFixed(v, precision, round); - if (minusRight) { - if (value.indexOf('-') != -1) { - //所有位置的负号转到前边 - value = value.replace('-', ''); - value = '-' + value; - } - } - value = isNaN(Number(value)) ? 0 : Number(value); - if (max && value > max) { - if (displayCheckPrompt) prompt(local['msgMax']); - value = max; - } - if (min && value < min) { - if (displayCheckPrompt) prompt(local['msgMin']); - value = min; - } - if (_this3.props.hasOwnProperty('precision')) { - // value = value.toFixed(precision); - value = _this3.getPrecision(value); - } - value = value.toString(); - if (minusRight && value.indexOf('-') != -1) { - //负号转到后边 - value = value.replace('-', ''); - value = value + '-'; - } - _this3.setState({ - value: value, - showValue: toThousands(value) - }); - _this3.detailDisable(value); - if (toNumber && !minusRight) { - onChange && onChange(value); - onBlur && onBlur(value, e); - } else { - onChange && onChange(value); - onBlur && onBlur(value, e); - } - }; + return nb; - this.detailDisable = function (value) { - var _props5 = _this3.props, - max = _props5.max, - min = _props5.min, - step = _props5.step; + }))); + + +/***/ }), +/* 512 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Nepalese [ne] + //! author : suvash : https://github.com/suvash - if (max && (value >= max || Number(value) + Number(step) > max)) { - _this3.setState({ - plusDisabled: true - }); - } else { - _this3.setState({ - plusDisabled: false - }); - } - if (min && (value <= min || value - step < min)) { - _this3.setState({ - minusDisabled: true - }); - } else { - _this3.setState({ - minusDisabled: false - }); - } - }; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - this.minus = function (value) { - var _props6 = _this3.props, - min = _props6.min, - max = _props6.max, - step = _props6.step, - onChange = _props6.onChange, - toNumber = _props6.toNumber; + //! moment.js locale configuration - value = value === '-' ? 0 : value; - if (typeof min === "undefined") { - value = _this3.detail(value, step, 'reduce'); - } else { - min = Number(min); - if (value < min) { - value = min; - } else { - var reducedValue = _this3.detail(value, step, 'reduce'); - if (reducedValue >= min) { - value = reducedValue; - } + var symbolMap = { + '1': '१', + '2': '२', + '3': '३', + '4': '४', + '5': '५', + '6': '६', + '7': '७', + '8': '८', + '9': '९', + '0': '०', + }, + numberMap = { + '१': '1', + '२': '2', + '३': '3', + '४': '4', + '५': '5', + '६': '6', + '७': '7', + '८': '8', + '९': '9', + '०': '0', + }; + + var ne = moment.defineLocale('ne', { + months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split( + '_' + ), + monthsShort: 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split( + '_' + ), + weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'), + weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'Aको h:mm बजे', + LTS: 'Aको h:mm:ss बजे', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, Aको h:mm बजे', + LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे', + }, + preparse: function (string) { + return string.replace(/[१२३४५६७८९०]/g, function (match) { + return numberMap[match]; + }); + }, + postformat: function (string) { + return string.replace(/\d/g, function (match) { + return symbolMap[match]; + }); + }, + meridiemParse: /राति|बिहान|दिउँसो|साँझ/, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; } - } - if (max) { - max = Number(max); - if (value > max) { - value = max; + if (meridiem === 'राति') { + return hour < 4 ? hour : hour + 12; + } else if (meridiem === 'बिहान') { + return hour; + } else if (meridiem === 'दिउँसो') { + return hour >= 10 ? hour : hour + 12; + } else if (meridiem === 'साँझ') { + return hour + 12; } - } - - _this3.setState({ - value: value, - showValue: toThousands(value) - }, function () { - _this3.input.input.focus && _this3.input.input.focus(); - }); - toNumber ? onChange && onChange(Number(value)) : onChange && onChange(value); - _this3.handleBtnClick('down', value); - _this3.detailDisable(value); - }; - - this.plus = function (value) { - var _props7 = _this3.props, - max = _props7.max, - min = _props7.min, - step = _props7.step, - onChange = _props7.onChange, - toNumber = _props7.toNumber; - - value = value === '-' ? 0 : value; - if (typeof max === "undefined") { - value = _this3.detail(value, step, 'add'); - } else { - max = Number(max); - if (max && value > max) { - value = max; + }, + meridiem: function (hour, minute, isLower) { + if (hour < 3) { + return 'राति'; + } else if (hour < 12) { + return 'बिहान'; + } else if (hour < 16) { + return 'दिउँसो'; + } else if (hour < 20) { + return 'साँझ'; } else { - var addedValue = _this3.detail(value, step, 'add'); - if (max && addedValue <= max) { - value = addedValue; - } - } - } - if (min) { - min = Number(min); - if (value < min) { - value = min; + return 'राति'; } - } - - _this3.setState({ - value: value, - showValue: toThousands(value) - }, function () { - _this3.input.input.focus && _this3.input.input.focus(); - }); - toNumber ? onChange && onChange(Number(value)) : onChange && onChange(value); - _this3.handleBtnClick('up', value); - _this3.detailDisable(value); - }; - - this.detail = function (value, step, type) { - var precision = _this3.props.precision; + }, + calendar: { + sameDay: '[आज] LT', + nextDay: '[भोलि] LT', + nextWeek: '[आउँदो] dddd[,] LT', + lastDay: '[हिजो] LT', + lastWeek: '[गएको] dddd[,] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%sमा', + past: '%s अगाडि', + s: 'केही क्षण', + ss: '%d सेकेण्ड', + m: 'एक मिनेट', + mm: '%d मिनेट', + h: 'एक घण्टा', + hh: '%d घण्टा', + d: 'एक दिन', + dd: '%d दिन', + M: 'एक महिना', + MM: '%d महिना', + y: 'एक बर्ष', + yy: '%d बर्ष', + }, + week: { + dow: 0, // Sunday is the first day of the week. + doy: 6, // The week that contains Jan 6th is the first week of the year. + }, + }); + return ne; - var valueFloat = _this3.separate(value); - var stepFloat = _this3.separate(step); + }))); + + +/***/ }), +/* 513 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Dutch [nl] + //! author : Joris Röling : https://github.com/jorisroling + //! author : Jacob Middag : https://github.com/middagj - var ans = void 0; - var stepFloatLength = stepFloat.toString().length; - var valueFloatLength = valueFloat.toString().length; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - if (typeof precision === 'undefined') { - precision = Math.max(stepFloatLength, valueFloatLength); - } - var coefficient = Math.pow(10, Math.abs(stepFloatLength - valueFloatLength)); - if (type === 'add') { - ans = (value * coefficient + step * coefficient) / coefficient; - } else { - ans = (value * coefficient - step * coefficient) / coefficient; - } + //! moment.js locale configuration - return ans.toFixed(precision); - }; + var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split( + '_' + ), + monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split( + '_' + ), + monthsParse = [ + /^jan/i, + /^feb/i, + /^maart|mrt.?$/i, + /^apr/i, + /^mei$/i, + /^jun[i.]?$/i, + /^jul[i.]?$/i, + /^aug/i, + /^sep/i, + /^okt/i, + /^nov/i, + /^dec/i, + ], + monthsRegex = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i; - this.separate = function (value) { - if (value == null || value == undefined) { - return ""; - } else { - value = value.toString(); - if (value.indexOf('.') > -1) { - return value.split('.')[1]; + var nl = moment.defineLocale('nl', { + months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split( + '_' + ), + monthsShort: function (m, format) { + if (!m) { + return monthsShortWithDots; + } else if (/-MMM-/.test(format)) { + return monthsShortWithoutDots[m.month()]; } else { - return ""; + return monthsShortWithDots[m.month()]; } - } - }; + }, - this.clear = function () { - if (_this3.timer) { - clearTimeout(_this3.timer); - } - }; + monthsRegex: monthsRegex, + monthsShortRegex: monthsRegex, + monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i, + monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i, - this.handlePlusMouseDown = function (e) { - e.preventDefault && e.preventDefault(); - var _props8 = _this3.props, - delay = _props8.delay, - disabled = _props8.disabled; - var value = _this3.state.value; + monthsParse: monthsParse, + longMonthsParse: monthsParse, + shortMonthsParse: monthsParse, - if (disabled) return; - _this3.plus(value); - _this3.clear(); - _this3.timer = setTimeout(function () { - _this3.handlePlusMouseDown(e); - }, delay); - }; + weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split( + '_' + ), + weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'), + weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD-MM-YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[vandaag om] LT', + nextDay: '[morgen om] LT', + nextWeek: 'dddd [om] LT', + lastDay: '[gisteren om] LT', + lastWeek: '[afgelopen] dddd [om] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'over %s', + past: '%s geleden', + s: 'een paar seconden', + ss: '%d seconden', + m: 'één minuut', + mm: '%d minuten', + h: 'één uur', + hh: '%d uur', + d: 'één dag', + dd: '%d dagen', + M: 'één maand', + MM: '%d maanden', + y: 'één jaar', + yy: '%d jaar', + }, + dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, + ordinal: function (number) { + return ( + number + + (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de') + ); + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - this.handleReduceMouseDown = function (e) { - e.preventDefault && e.preventDefault(); - var _props9 = _this3.props, - delay = _props9.delay, - disabled = _props9.disabled; - var value = _this3.state.value; + return nl; - if (disabled) return; - _this3.minus(value); - _this3.clear(); - _this3.timer = setTimeout(function () { - _this3.handleReduceMouseDown(e); - }, delay); - }; + }))); + + +/***/ }), +/* 514 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Dutch (Belgium) [nl-be] + //! author : Joris Röling : https://github.com/jorisroling + //! author : Jacob Middag : https://github.com/middagj - this.getPrecision = function (value) { - if (value == null || value == undefined) return value; - if (!value && value === "") return value; - value = String(value); - value = value.indexOf("e") !== -1 ? _this3.getFullNum(value) : value; - var precision = _this3.props.precision; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - if (precision === 0) return value; - if (precision == undefined || value.indexOf(".") !== -1 && String(value.split(".")[1]).length === precision) { - return value; - } - var before = value.substring(0, 1), - len = value.length, - after = value.substring(len - 1, len); - before = before === "-" ? before : ""; - after = after === "-" ? after : ""; - //是科学计数法,不replace - - if (before) value = value.substring(1, len); - if (after) value = value.substring(0, len - 1); - // value = value.replace("-",''); - var precV = "000000000000000000000000000000000000000000000000000000000000000000000000"; - if (value.indexOf(".") === -1) { - precV = precV.substr(0, precision); - precV = precV ? "." + precV : precV; - if (!isNaN(value) && (value.indexOf('-') != -1 || value.indexOf('+') != -1) && value.indexOf('e') != -1) {//是科学计数法,不拼接0000000 + //! moment.js locale configuration + + var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split( + '_' + ), + monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split( + '_' + ), + monthsParse = [ + /^jan/i, + /^feb/i, + /^maart|mrt.?$/i, + /^apr/i, + /^mei$/i, + /^jun[i.]?$/i, + /^jul[i.]?$/i, + /^aug/i, + /^sep/i, + /^okt/i, + /^nov/i, + /^dec/i, + ], + monthsRegex = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i; + var nlBe = moment.defineLocale('nl-be', { + months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split( + '_' + ), + monthsShort: function (m, format) { + if (!m) { + return monthsShortWithDots; + } else if (/-MMM-/.test(format)) { + return monthsShortWithoutDots[m.month()]; } else { - value = value + precV; + return monthsShortWithDots[m.month()]; } - } - return before + Number(value).toFixed(precision) + after; - }; + }, - this.handleBtnClick = function (type, value) { - _this3.props.handleBtnClick(type, value); - }; - }; + monthsRegex: monthsRegex, + monthsShortRegex: monthsRegex, + monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i, + monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i, - ; + monthsParse: monthsParse, + longMonthsParse: monthsParse, + shortMonthsParse: monthsParse, - InputNumber.defaultProps = defaultProps; - InputNumber.propTypes = propTypes; - InputNumber.contextTypes = { - beeLocale: _propTypes2["default"].object - }; - exports["default"] = InputNumber; - module.exports = exports['default']; - -/***/ }), -/* 597 */ -/***/ (function(module, exports) { - - 'use strict'; + weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split( + '_' + ), + weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'), + weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[vandaag om] LT', + nextDay: '[morgen om] LT', + nextWeek: 'dddd [om] LT', + lastDay: '[gisteren om] LT', + lastWeek: '[afgelopen] dddd [om] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'over %s', + past: '%s geleden', + s: 'een paar seconden', + ss: '%d seconden', + m: 'één minuut', + mm: '%d minuten', + h: 'één uur', + hh: '%d uur', + d: 'één dag', + dd: '%d dagen', + M: 'één maand', + MM: '%d maanden', + y: 'één jaar', + yy: '%d jaar', + }, + dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, + ordinal: function (number) { + return ( + number + + (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de') + ); + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - module.exports = { - 'lang': 'zh-cn', - 'msgMax': '值不能大于最大值', - 'msgMin': '值不能小于最小值', - 'en-us': { - 'msgMax': 'Cannot be greater than the Max value', - 'msgMin': 'Cannot be less than the Min value' - }, - 'zh-tw': { - 'msgMax': '值不能大於最大值', - 'msgMin': '值不能小於最小值' - } - }; + return nlBe; + + }))); + /***/ }), -/* 598 */ +/* 515 */ /***/ (function(module, exports, __webpack_require__) { - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - - var _react = __webpack_require__(1); + //! moment.js locale configuration + //! locale : Nynorsk [nn] + //! authors : https://github.com/mechuwind + //! Stephen Ramthun : https://github.com/stephenramthun - var _react2 = _interopRequireDefault(_react); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _propTypes = __webpack_require__(6); + //! moment.js locale configuration - var _propTypes2 = _interopRequireDefault(_propTypes); + var nn = moment.defineLocale('nn', { + months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split( + '_' + ), + monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'), + weekdaysShort: 'su._må._ty._on._to._fr._lau.'.split('_'), + weekdaysMin: 'su_må_ty_on_to_fr_la'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY [kl.] H:mm', + LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm', + }, + calendar: { + sameDay: '[I dag klokka] LT', + nextDay: '[I morgon klokka] LT', + nextWeek: 'dddd [klokka] LT', + lastDay: '[I går klokka] LT', + lastWeek: '[Føregåande] dddd [klokka] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'om %s', + past: '%s sidan', + s: 'nokre sekund', + ss: '%d sekund', + m: 'eit minutt', + mm: '%d minutt', + h: 'ein time', + hh: '%d timar', + d: 'ein dag', + dd: '%d dagar', + M: 'ein månad', + MM: '%d månader', + y: 'eit år', + yy: '%d år', + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - var _InputNumber = __webpack_require__(596); + return nn; - var _InputNumber2 = _interopRequireDefault(_InputNumber); + }))); + + +/***/ }), +/* 516 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Occitan, lengadocian dialecte [oc-lnc] + //! author : Quentin PAGÈS : https://github.com/Quenty31 - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + //! moment.js locale configuration - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + var ocLnc = moment.defineLocale('oc-lnc', { + months: { + standalone: 'genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre'.split( + '_' + ), + format: "de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split( + '_' + ), + isFormat: /D[oD]?(\s)+MMMM/, + }, + monthsShort: 'gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte'.split( + '_' + ), + weekdaysShort: 'dg._dl._dm._dc._dj._dv._ds.'.split('_'), + weekdaysMin: 'dg_dl_dm_dc_dj_dv_ds'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM [de] YYYY', + ll: 'D MMM YYYY', + LLL: 'D MMMM [de] YYYY [a] H:mm', + lll: 'D MMM YYYY, H:mm', + LLLL: 'dddd D MMMM [de] YYYY [a] H:mm', + llll: 'ddd D MMM YYYY, H:mm', + }, + calendar: { + sameDay: '[uèi a] LT', + nextDay: '[deman a] LT', + nextWeek: 'dddd [a] LT', + lastDay: '[ièr a] LT', + lastWeek: 'dddd [passat a] LT', + sameElse: 'L', + }, + relativeTime: { + future: "d'aquí %s", + past: 'fa %s', + s: 'unas segondas', + ss: '%d segondas', + m: 'una minuta', + mm: '%d minutas', + h: 'una ora', + hh: '%d oras', + d: 'un jorn', + dd: '%d jorns', + M: 'un mes', + MM: '%d meses', + y: 'un an', + yy: '%d ans', + }, + dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/, + ordinal: function (number, period) { + var output = + number === 1 + ? 'r' + : number === 2 + ? 'n' + : number === 3 + ? 'r' + : number === 4 + ? 't' + : 'è'; + if (period === 'w' || period === 'W') { + output = 'a'; + } + return number + output; + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, + }, + }); - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + return ocLnc; - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + }))); + + +/***/ }), +/* 517 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Punjabi (India) [pa-in] + //! author : Harpreet Singh : https://github.com/harpreetkhalsagtbit - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var noop = function noop() {}; + //! moment.js locale configuration - var propsTypes = { - clsfix: _propTypes2["default"].string, - className: _propTypes2["default"].string, - value: _propTypes2["default"].array, - onChange: _propTypes2["default"].func, - onBlur: _propTypes2["default"].func, - onFocus: _propTypes2["default"].func, - placeholder: _propTypes2["default"].array, + var symbolMap = { + '1': '੧', + '2': '੨', + '3': '੩', + '4': '੪', + '5': '੫', + '6': '੬', + '7': '੭', + '8': '੮', + '9': '੯', + '0': '੦', + }, + numberMap = { + '੧': '1', + '੨': '2', + '੩': '3', + '੪': '4', + '੫': '5', + '੬': '6', + '੭': '7', + '੮': '8', + '੯': '9', + '੦': '0', + }; - max: _propTypes2["default"].number, - min: _propTypes2["default"].number, - step: _propTypes2["default"].number, - precision: _propTypes2["default"].number, - format: _propTypes2["default"].func, - delay: _propTypes2["default"].number, - disabled: _propTypes2["default"].bool, - toThousands: _propTypes2["default"].bool, - toNumber: _propTypes2["default"].bool - }; + var paIn = moment.defineLocale('pa-in', { + // There are months name as per Nanakshahi Calendar but they are not used as rigidly in modern Punjabi. + months: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split( + '_' + ), + monthsShort: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split( + '_' + ), + weekdays: 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split( + '_' + ), + weekdaysShort: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'), + weekdaysMin: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'), + longDateFormat: { + LT: 'A h:mm ਵਜੇ', + LTS: 'A h:mm:ss ਵਜੇ', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm ਵਜੇ', + LLLL: 'dddd, D MMMM YYYY, A h:mm ਵਜੇ', + }, + calendar: { + sameDay: '[ਅਜ] LT', + nextDay: '[ਕਲ] LT', + nextWeek: '[ਅਗਲਾ] dddd, LT', + lastDay: '[ਕਲ] LT', + lastWeek: '[ਪਿਛਲੇ] dddd, LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s ਵਿੱਚ', + past: '%s ਪਿਛਲੇ', + s: 'ਕੁਝ ਸਕਿੰਟ', + ss: '%d ਸਕਿੰਟ', + m: 'ਇਕ ਮਿੰਟ', + mm: '%d ਮਿੰਟ', + h: 'ਇੱਕ ਘੰਟਾ', + hh: '%d ਘੰਟੇ', + d: 'ਇੱਕ ਦਿਨ', + dd: '%d ਦਿਨ', + M: 'ਇੱਕ ਮਹੀਨਾ', + MM: '%d ਮਹੀਨੇ', + y: 'ਇੱਕ ਸਾਲ', + yy: '%d ਸਾਲ', + }, + preparse: function (string) { + return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) { + return numberMap[match]; + }); + }, + postformat: function (string) { + return string.replace(/\d/g, function (match) { + return symbolMap[match]; + }); + }, + // Punjabi notation for meridiems are quite fuzzy in practice. While there exists + // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi. + meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === 'ਰਾਤ') { + return hour < 4 ? hour : hour + 12; + } else if (meridiem === 'ਸਵੇਰ') { + return hour; + } else if (meridiem === 'ਦੁਪਹਿਰ') { + return hour >= 10 ? hour : hour + 12; + } else if (meridiem === 'ਸ਼ਾਮ') { + return hour + 12; + } + }, + meridiem: function (hour, minute, isLower) { + if (hour < 4) { + return 'ਰਾਤ'; + } else if (hour < 10) { + return 'ਸਵੇਰ'; + } else if (hour < 17) { + return 'ਦੁਪਹਿਰ'; + } else if (hour < 20) { + return 'ਸ਼ਾਮ'; + } else { + return 'ਰਾਤ'; + } + }, + week: { + dow: 0, // Sunday is the first day of the week. + doy: 6, // The week that contains Jan 6th is the first week of the year. + }, + }); - var defaultProps = { - clsfix: 'u-input-number', - className: '', - value: [], - placeholder: [], - onChange: noop, - onBlur: noop, - onFocus: noop - }; + return paIn; - var InputNumberGroup = function (_Component) { - _inherits(InputNumberGroup, _Component); + }))); + + +/***/ }), +/* 518 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Polish [pl] + //! author : Rafal Hirsz : https://github.com/evoL - function InputNumberGroup(props) { - _classCallCheck(this, InputNumberGroup); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _this = _possibleConstructorReturn(this, _Component.call(this, props)); + //! moment.js locale configuration - _this.onChange = function (index, v) { - var value = _this.state.value; + var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split( + '_' + ), + monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split( + '_' + ); + function plural(n) { + return n % 10 < 5 && n % 10 > 1 && ~~(n / 10) % 10 !== 1; + } + function translate(number, withoutSuffix, key) { + var result = number + ' '; + switch (key) { + case 'ss': + return result + (plural(number) ? 'sekundy' : 'sekund'); + case 'm': + return withoutSuffix ? 'minuta' : 'minutę'; + case 'mm': + return result + (plural(number) ? 'minuty' : 'minut'); + case 'h': + return withoutSuffix ? 'godzina' : 'godzinę'; + case 'hh': + return result + (plural(number) ? 'godziny' : 'godzin'); + case 'MM': + return result + (plural(number) ? 'miesiące' : 'miesięcy'); + case 'yy': + return result + (plural(number) ? 'lata' : 'lat'); + } + } - value[index] = v; - _this.setState({ - value: value - }); - _this.props.onChange(value); - }; + var pl = moment.defineLocale('pl', { + months: function (momentToFormat, format) { + if (!momentToFormat) { + return monthsNominative; + } else if (format === '') { + // Hack: if format empty we know this is used to generate + // RegExp by moment. Give then back both valid forms of months + // in RegExp ready format. + return ( + '(' + + monthsSubjective[momentToFormat.month()] + + '|' + + monthsNominative[momentToFormat.month()] + + ')' + ); + } else if (/D MMMM/.test(format)) { + return monthsSubjective[momentToFormat.month()]; + } else { + return monthsNominative[momentToFormat.month()]; + } + }, + monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'), + weekdays: 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split( + '_' + ), + weekdaysShort: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'), + weekdaysMin: 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Dziś o] LT', + nextDay: '[Jutro o] LT', + nextWeek: function () { + switch (this.day()) { + case 0: + return '[W niedzielę o] LT'; - _this.onFocus = function (index, v) { - var value = _this.state.value; + case 2: + return '[We wtorek o] LT'; - value[index] = v; - _this.setState({ - value: value - }); - _this.props.onFocus(value); - }; + case 3: + return '[W środę o] LT'; - _this.onBlur = function (index, v) { - var value = _this.state.value; + case 6: + return '[W sobotę o] LT'; - if (index == 1) { - if (v < value[0]) { - console.warn('The second value must be greater than or equal to the first value'); + default: + return '[W] dddd [o] LT'; } - } - value[index] = v; - _this.setState({ - value: value - }); + }, + lastDay: '[Wczoraj o] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + return '[W zeszłą niedzielę o] LT'; + case 3: + return '[W zeszłą środę o] LT'; + case 6: + return '[W zeszłą sobotę o] LT'; + default: + return '[W zeszły] dddd [o] LT'; + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'za %s', + past: '%s temu', + s: 'kilka sekund', + ss: translate, + m: translate, + mm: translate, + h: translate, + hh: translate, + d: '1 dzień', + dd: '%d dni', + M: 'miesiąc', + MM: translate, + y: 'rok', + yy: translate, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - _this.props.onBlur(value); - }; + return pl; - _this.state = { - value: props.value || [] - }; - return _this; - } + }))); + + +/***/ }), +/* 519 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Portuguese [pt] + //! author : Jefferson : https://github.com/jalex79 - InputNumberGroup.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - if ('value' in nextProps) { - this.setState({ - value: nextProps.value - }); - } - }; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - InputNumberGroup.prototype.render = function render() { - var _this2 = this; + //! moment.js locale configuration - var _props = this.props, - className = _props.className, - clsfix = _props.clsfix, - value = _props.value, - onChange = _props.onChange, - placeholder = _props.placeholder, - split = _props.split, - onBlur = _props.onBlur, - onFocus = _props.onFocus, - other = _objectWithoutProperties(_props, ['className', 'clsfix', 'value', 'onChange', 'placeholder', 'split', 'onBlur', 'onFocus']); + var pt = moment.defineLocale('pt', { + months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split( + '_' + ), + monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'), + weekdays: 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split( + '_' + ), + weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'), + weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D [de] MMMM [de] YYYY', + LLL: 'D [de] MMMM [de] YYYY HH:mm', + LLLL: 'dddd, D [de] MMMM [de] YYYY HH:mm', + }, + calendar: { + sameDay: '[Hoje às] LT', + nextDay: '[Amanhã às] LT', + nextWeek: 'dddd [às] LT', + lastDay: '[Ontem às] LT', + lastWeek: function () { + return this.day() === 0 || this.day() === 6 + ? '[Último] dddd [às] LT' // Saturday + Sunday + : '[Última] dddd [às] LT'; // Monday - Friday + }, + sameElse: 'L', + }, + relativeTime: { + future: 'em %s', + past: 'há %s', + s: 'segundos', + ss: '%d segundos', + m: 'um minuto', + mm: '%d minutos', + h: 'uma hora', + hh: '%d horas', + d: 'um dia', + dd: '%d dias', + M: 'um mês', + MM: '%d meses', + y: 'um ano', + yy: '%d anos', + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - var stateValue = this.state.value; + return pt; - return _react2["default"].createElement( - 'div', - { className: clsfix + '-group ' + className }, - _react2["default"].createElement(_InputNumber2["default"], _extends({ - onChange: function onChange(value) { - _this2.onChange(0, value); - }, - onBlur: function onBlur(value) { - _this2.onBlur(0, value); - }, - onFocus: function onFocus(value) { - _this2.onFocus(0, value); - }, - value: stateValue[0], - placeholder: placeholder[0] - }, other)), - split ? split : _react2["default"].createElement( - 'span', - { className: clsfix + '-group-split' }, - '~' - ), - _react2["default"].createElement(_InputNumber2["default"], _extends({ - onChange: function onChange(value) { - _this2.onChange(1, value); - }, - onBlur: function onBlur(value) { - _this2.onBlur(1, value); - }, - onFocus: function onFocus(value) { - _this2.onFocus(1, value); - }, - value: stateValue[1], - placeholder: placeholder[1] - }, other)) - ); - }; + }))); + + +/***/ }), +/* 520 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Portuguese (Brazil) [pt-br] + //! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira - return InputNumberGroup; - }(_react.Component); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - InputNumberGroup.displayName = 'InputNumberGroup'; + //! moment.js locale configuration + var ptBr = moment.defineLocale('pt-br', { + months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split( + '_' + ), + monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'), + weekdays: 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split( + '_' + ), + weekdaysShort: 'dom_seg_ter_qua_qui_sex_sáb'.split('_'), + weekdaysMin: 'do_2ª_3ª_4ª_5ª_6ª_sá'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D [de] MMMM [de] YYYY', + LLL: 'D [de] MMMM [de] YYYY [às] HH:mm', + LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm', + }, + calendar: { + sameDay: '[Hoje às] LT', + nextDay: '[Amanhã às] LT', + nextWeek: 'dddd [às] LT', + lastDay: '[Ontem às] LT', + lastWeek: function () { + return this.day() === 0 || this.day() === 6 + ? '[Último] dddd [às] LT' // Saturday + Sunday + : '[Última] dddd [às] LT'; // Monday - Friday + }, + sameElse: 'L', + }, + relativeTime: { + future: 'em %s', + past: 'há %s', + s: 'poucos segundos', + ss: '%d segundos', + m: 'um minuto', + mm: '%d minutos', + h: 'uma hora', + hh: '%d horas', + d: 'um dia', + dd: '%d dias', + M: 'um mês', + MM: '%d meses', + y: 'um ano', + yy: '%d anos', + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + }); - InputNumberGroup.propsTypes = propsTypes; - InputNumberGroup.defaultProps = defaultProps; + return ptBr; - exports["default"] = InputNumberGroup; - module.exports = exports['default']; + }))); + /***/ }), -/* 599 */ +/* 521 */ /***/ (function(module, exports, __webpack_require__) { - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _propTypes = __webpack_require__(6); - - var _propTypes2 = _interopRequireDefault(_propTypes); - - var _beeDropdown = __webpack_require__(290); - - var _beeDropdown2 = _interopRequireDefault(_beeDropdown); - - var _beeMenus = __webpack_require__(299); - - var _beeMenus2 = _interopRequireDefault(_beeMenus); - - var _beeButton = __webpack_require__(265); - - var _beeButton2 = _interopRequireDefault(_beeButton); - - var _beeIcon = __webpack_require__(67); - - var _beeIcon2 = _interopRequireDefault(_beeIcon); + //! moment.js locale configuration + //! locale : Romanian [ro] + //! author : Vlad Gurdiga : https://github.com/gurdiga + //! author : Valentin Agachi : https://github.com/avaly + //! author : Emanuel Cepoi : https://github.com/cepem - var _i18n = __webpack_require__(289); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _i18n2 = _interopRequireDefault(_i18n); + //! moment.js locale configuration - var _tool = __webpack_require__(120); + function relativeTimeWithPlural(number, withoutSuffix, key) { + var format = { + ss: 'secunde', + mm: 'minute', + hh: 'ore', + dd: 'zile', + MM: 'luni', + yy: 'ani', + }, + separator = ' '; + if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) { + separator = ' de '; + } + return number + separator + format[key]; + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + var ro = moment.defineLocale('ro', { + months: 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split( + '_' + ), + monthsShort: 'ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'), + weekdaysShort: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'), + weekdaysMin: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'), + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY H:mm', + LLLL: 'dddd, D MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[azi la] LT', + nextDay: '[mâine la] LT', + nextWeek: 'dddd [la] LT', + lastDay: '[ieri la] LT', + lastWeek: '[fosta] dddd [la] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'peste %s', + past: '%s în urmă', + s: 'câteva secunde', + ss: relativeTimeWithPlural, + m: 'un minut', + mm: relativeTimeWithPlural, + h: 'o oră', + hh: relativeTimeWithPlural, + d: 'o zi', + dd: relativeTimeWithPlural, + M: 'o lună', + MM: relativeTimeWithPlural, + y: 'un an', + yy: relativeTimeWithPlural, + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, + }); - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + return ro; - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + }))); + + +/***/ }), +/* 522 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Russian [ru] + //! author : Viktorminator : https://github.com/Viktorminator + //! author : Menelion Elensúle : https://github.com/Oire + //! author : Коренберг Марк : https://github.com/socketpair - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** - * 过滤行功能内的下拉条件 - */ + //! moment.js locale configuration - var Item = _beeMenus2['default'].Item; + function plural(word, num) { + var forms = word.split('_'); + return num % 10 === 1 && num % 100 !== 11 + ? forms[0] + : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) + ? forms[1] + : forms[2]; + } + function relativeTimeWithPlural(number, withoutSuffix, key) { + var format = { + ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд', + mm: withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут', + hh: 'час_часа_часов', + dd: 'день_дня_дней', + MM: 'месяц_месяца_месяцев', + yy: 'год_года_лет', + }; + if (key === 'm') { + return withoutSuffix ? 'минута' : 'минуту'; + } else { + return number + ' ' + plural(format[key], +number); + } + } + var monthsParse = [ + /^янв/i, + /^фев/i, + /^мар/i, + /^апр/i, + /^ма[йя]/i, + /^июн/i, + /^июл/i, + /^авг/i, + /^сен/i, + /^окт/i, + /^ноя/i, + /^дек/i, + ]; - var FilterDropDown = function (_Component) { - _inherits(FilterDropDown, _Component); + // http://new.gramota.ru/spravka/rules/139-prop : § 103 + // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637 + // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753 + var ru = moment.defineLocale('ru', { + months: { + format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split( + '_' + ), + standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split( + '_' + ), + }, + monthsShort: { + // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку? + format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split( + '_' + ), + standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split( + '_' + ), + }, + weekdays: { + standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split( + '_' + ), + format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split( + '_' + ), + isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/, + }, + weekdaysShort: 'вс_пн_вт_ср_чт_пт_сб'.split('_'), + weekdaysMin: 'вс_пн_вт_ср_чт_пт_сб'.split('_'), + monthsParse: monthsParse, + longMonthsParse: monthsParse, + shortMonthsParse: monthsParse, - function FilterDropDown() { - _classCallCheck(this, FilterDropDown); + // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки + monthsRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i, - var _this = _possibleConstructorReturn(this, _Component.call(this)); + // копия предыдущего + monthsShortRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i, - _this.onSelectDropdown = function (item) { - var _this$props = _this.props, - onSelectDropdown = _this$props.onSelectDropdown, - filterDropdownType = _this$props.filterDropdownType; + // полные названия с падежами + monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i, - if (onSelectDropdown) { - if (filterDropdownType == 'string') { - _this.setState({ - selectValue: [item.key] - }, function () { - onSelectDropdown(item); - }); - } - if (filterDropdownType == 'number') { - _this.setState({ - selectNumberValue: [item.key] - }, function () { - onSelectDropdown(item); - }); + // Выражение, которое соответствует только сокращённым формам + monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY г.', + LLL: 'D MMMM YYYY г., H:mm', + LLLL: 'dddd, D MMMM YYYY г., H:mm', + }, + calendar: { + sameDay: '[Сегодня, в] LT', + nextDay: '[Завтра, в] LT', + lastDay: '[Вчера, в] LT', + nextWeek: function (now) { + if (now.week() !== this.week()) { + switch (this.day()) { + case 0: + return '[В следующее] dddd, [в] LT'; + case 1: + case 2: + case 4: + return '[В следующий] dddd, [в] LT'; + case 3: + case 5: + case 6: + return '[В следующую] dddd, [в] LT'; + } + } else { + if (this.day() === 2) { + return '[Во] dddd, [в] LT'; + } else { + return '[В] dddd, [в] LT'; + } } - } - }; - - _this.onClickClear = function () { - var onClickClear = _this.props.onClickClear; - - if (onClickClear) { - _this.setState({ - // selectValue: [], - // selectNumberValue: [] - }, function () { - onClickClear(); - }); - } - }; - - _this.getMenu = function () { - var _this$state = _this.state, - selectValue = _this$state.selectValue, - selectNumberValue = _this$state.selectNumberValue; - var _this$props2 = _this.props, - filterDropdownType = _this$props2.filterDropdownType, - filterDropdownIncludeKeys = _this$props2.filterDropdownIncludeKeys; - - var locale = (0, _tool.getComponentLocale)(_this.props, _this.context, 'Table', function () { - return _i18n2['default']; - }); - var stringEnum = { - LIKE: 'include', - ULIKE: 'exclusive', - EQ: 'equal', - UEQ: 'unequal', - START: 'begin', - END: 'end' - }; - var numberEnum = { - GT: 'greater_than', - GTEQ: 'great_than_equal_to', - LT: 'less_than', - LTEQ: 'less_than_equal_to', - EQ: 'be_equal_to', - UEQ: 'not_equal_to' - }; - if (filterDropdownIncludeKeys != undefined) { - switch (filterDropdownType) { - case 'string': - return _react2['default'].createElement( - _beeMenus2['default'], - { - onClick: _this.onSelectDropdown, - selectedKeys: selectValue - }, - filterDropdownIncludeKeys.map(function (item) { - return _react2['default'].createElement( - Item, - { key: item }, - locale[stringEnum[item]] - ); - }) - ); - case 'number': - return _react2['default'].createElement( - _beeMenus2['default'], - { - onClick: _this.onSelectDropdown, - selectedKeys: selectNumberValue - }, - filterDropdownIncludeKeys.map(function (item) { - return _react2['default'].createElement( - Item, - { key: item }, - locale[numberEnum[item]] - ); - }) - ); - default: - return _react2['default'].createElement('div', null); + }, + lastWeek: function (now) { + if (now.week() !== this.week()) { + switch (this.day()) { + case 0: + return '[В прошлое] dddd, [в] LT'; + case 1: + case 2: + case 4: + return '[В прошлый] dddd, [в] LT'; + case 3: + case 5: + case 6: + return '[В прошлую] dddd, [в] LT'; + } + } else { + if (this.day() === 2) { + return '[Во] dddd, [в] LT'; + } else { + return '[В] dddd, [в] LT'; + } } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'через %s', + past: '%s назад', + s: 'несколько секунд', + ss: relativeTimeWithPlural, + m: relativeTimeWithPlural, + mm: relativeTimeWithPlural, + h: 'час', + hh: relativeTimeWithPlural, + d: 'день', + dd: relativeTimeWithPlural, + M: 'месяц', + MM: relativeTimeWithPlural, + y: 'год', + yy: relativeTimeWithPlural, + }, + meridiemParse: /ночи|утра|дня|вечера/i, + isPM: function (input) { + return /^(дня|вечера)$/.test(input); + }, + meridiem: function (hour, minute, isLower) { + if (hour < 4) { + return 'ночи'; + } else if (hour < 12) { + return 'утра'; + } else if (hour < 17) { + return 'дня'; } else { - switch (filterDropdownType) { - case 'string': - return _react2['default'].createElement( - _beeMenus2['default'], - { - onClick: _this.onSelectDropdown, - selectedKeys: selectValue - }, - _react2['default'].createElement( - Item, - { key: 'LIKE' }, - locale['include'] - ), - _react2['default'].createElement( - Item, - { key: 'ULIKE' }, - locale['exclusive'] - ), - _react2['default'].createElement( - Item, - { key: 'EQ' }, - locale['equal'] - ), - _react2['default'].createElement( - Item, - { key: 'UEQ' }, - locale['unequal'] - ), - _react2['default'].createElement( - Item, - { key: 'RLIKE' }, - locale['begin'] - ), - _react2['default'].createElement( - Item, - { key: 'LLIKE' }, - locale['end'] - ) - ); - case 'number': - return _react2['default'].createElement( - _beeMenus2['default'], - { - onClick: _this.onSelectDropdown, - selectedKeys: selectNumberValue - }, - _react2['default'].createElement( - Item, - { key: 'GT' }, - locale['greater_than'] - ), - _react2['default'].createElement( - Item, - { key: 'GTEQ' }, - locale['great_than_equal_to'] - ), - _react2['default'].createElement( - Item, - { key: 'LT' }, - locale['less_than'] - ), - _react2['default'].createElement( - Item, - { key: 'LTEQ' }, - locale['less_than_equal_to'] - ), - _react2['default'].createElement( - Item, - { key: 'EQ' }, - locale['be_equal_to'] - ), - _react2['default'].createElement( - Item, - { key: 'UEQ' }, - locale['not_equal_to'] - ) - ); - default: - return _react2['default'].createElement('div', null); - } + return 'вечера'; } - }; - - _this.state = { - selectValue: ['LIKE'], - selectNumberValue: ['EQ'] - }; - return _this; - } - /** - * 点击下拉菜单 - * - * @param {*} s 选中的selectRecord - */ - - - /** - * 清除事件 - * - */ - - - /** - * 根据props来获得指定的Menu,分为String和Number - * - * @returns JSX Menu - */ - - - FilterDropDown.prototype.render = function render() { - var isShowCondition = this.props.isShowCondition; - - - return _react2['default'].createElement( - 'div', - { className: 'filter-btns' }, - isShowCondition == 'show' && _react2['default'].createElement( - _beeDropdown2['default'], - { - overlayClassName: 'u-filter-dropdown-menu-wrap', - trigger: ['click'], - overlay: this.getMenu(), - animation: 'slide-up' - }, - _react2['default'].createElement( - _beeButton2['default'], - { - shape: 'border', - style: { marginLeft: "2px", minWidth: "0px", width: "26px", lineHeight: "24px", padding: 0 } - }, - _react2['default'].createElement(_beeIcon2['default'], { style: { padding: 0, color: '#585858' }, type: 'uf-filter' }) - ) - ), - _react2['default'].createElement( - _beeButton2['default'], - { - onClick: this.onClickClear, - shape: 'border', - style: { marginLeft: "2px", minWidth: "0px", width: "26px", lineHeight: "24px", padding: 0, "visibility": this.props.isShowClear || this.state.selectValue.length > 0 ? "visible" : "hidden" } - }, - _react2['default'].createElement(_beeIcon2['default'], { style: { padding: 0, color: '#585858', "visibility": this.props.isShowClear || this.state.selectValue.length > 0 ? "visible" : "hidden" }, type: 'uf-filterno' }) - ) - ); - }; - - return FilterDropDown; - }(_react.Component); - - FilterDropDown.propTypes = { - isShowCondition: _propTypes2['default'].string, - filterDropdownType: _propTypes2['default'].oneOf(['string', 'number']) - }; + }, + dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/, + ordinal: function (number, period) { + switch (period) { + case 'M': + case 'd': + case 'DDD': + return number + '-й'; + case 'D': + return number + '-го'; + case 'w': + case 'W': + return number + '-я'; + default: + return number; + } + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - FilterDropDown.defaultProps = { - isShowCondition: 'show', - filterDropdownType: 'string' - }; + return ru; - FilterDropDown.contextTypes = { - beeLocale: _propTypes2['default'].object - }; - exports['default'] = FilterDropDown; - module.exports = exports['default']; + }))); + /***/ }), -/* 600 */ +/* 523 */ /***/ (function(module, exports, __webpack_require__) { - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _Column = __webpack_require__(601); - - var _Column2 = _interopRequireDefault(_Column); - - var _ColumnGroup = __webpack_require__(602); - - var _ColumnGroup2 = _interopRequireDefault(_ColumnGroup); - - var _beeIcon = __webpack_require__(67); + //! moment.js locale configuration + //! locale : Sindhi [sd] + //! author : Narain Sagar : https://github.com/narainsagar - var _beeIcon2 = _interopRequireDefault(_beeIcon); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + //! moment.js locale configuration - function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } + var months = [ + 'جنوري', + 'فيبروري', + 'مارچ', + 'اپريل', + 'مئي', + 'جون', + 'جولاءِ', + 'آگسٽ', + 'سيپٽمبر', + 'آڪٽوبر', + 'نومبر', + 'ڊسمبر', + ], + days = ['آچر', 'سومر', 'اڱارو', 'اربع', 'خميس', 'جمع', 'ڇنڇر']; - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + var sd = moment.defineLocale('sd', { + months: months, + monthsShort: months, + weekdays: days, + weekdaysShort: days, + weekdaysMin: days, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd، D MMMM YYYY HH:mm', + }, + meridiemParse: /صبح|شام/, + isPM: function (input) { + return 'شام' === input; + }, + meridiem: function (hour, minute, isLower) { + if (hour < 12) { + return 'صبح'; + } + return 'شام'; + }, + calendar: { + sameDay: '[اڄ] LT', + nextDay: '[سڀاڻي] LT', + nextWeek: 'dddd [اڳين هفتي تي] LT', + lastDay: '[ڪالهه] LT', + lastWeek: '[گزريل هفتي] dddd [تي] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s پوء', + past: '%s اڳ', + s: 'چند سيڪنڊ', + ss: '%d سيڪنڊ', + m: 'هڪ منٽ', + mm: '%d منٽ', + h: 'هڪ ڪلاڪ', + hh: '%d ڪلاڪ', + d: 'هڪ ڏينهن', + dd: '%d ڏينهن', + M: 'هڪ مهينو', + MM: '%d مهينا', + y: 'هڪ سال', + yy: '%d سال', + }, + preparse: function (string) { + return string.replace(/،/g, ','); + }, + postformat: function (string) { + return string.replace(/,/g, '،'); + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - //行控制管理 - var ColumnManager = function () { - function ColumnManager(columns, elements, originWidth, rowDraggAble, showRowNum) { - _classCallCheck(this, ColumnManager); + return sd; - _initialiseProps.call(this); + }))); + + +/***/ }), +/* 524 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Northern Sami [se] + //! authors : Bård Rolstad Henriksen : https://github.com/karamell - columns = this.addDragHandleColumn(columns, rowDraggAble); - columns = this.addOrderColumn(columns, showRowNum); - columns = this.deleteColumnNotShow(columns); - this.columns = columns || this.normalize(elements); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - this.originWidth = originWidth; - } + //! moment.js locale configuration - // 向数据列中添加一列:行拖拽标识 + var se = moment.defineLocale('se', { + months: 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split( + '_' + ), + monthsShort: 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split( + '_' + ), + weekdays: 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split( + '_' + ), + weekdaysShort: 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'), + weekdaysMin: 's_v_m_g_d_b_L'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'MMMM D. [b.] YYYY', + LLL: 'MMMM D. [b.] YYYY [ti.] HH:mm', + LLLL: 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm', + }, + calendar: { + sameDay: '[otne ti] LT', + nextDay: '[ihttin ti] LT', + nextWeek: 'dddd [ti] LT', + lastDay: '[ikte ti] LT', + lastWeek: '[ovddit] dddd [ti] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s geažes', + past: 'maŋit %s', + s: 'moadde sekunddat', + ss: '%d sekunddat', + m: 'okta minuhta', + mm: '%d minuhtat', + h: 'okta diimmu', + hh: '%d diimmut', + d: 'okta beaivi', + dd: '%d beaivvit', + M: 'okta mánnu', + MM: '%d mánut', + y: 'okta jahki', + yy: '%d jagit', + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); + return se; - // delete the column which does not show + }))); + + +/***/ }), +/* 525 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Sinhalese [si] + //! author : Sampath Sitinamaluwa : https://github.com/sampathsris + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - // 向数据列中添加一列:序号 + //! moment.js locale configuration + /*jshint -W100*/ + var si = moment.defineLocale('si', { + months: 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split( + '_' + ), + monthsShort: 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split( + '_' + ), + weekdays: 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split( + '_' + ), + weekdaysShort: 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'), + weekdaysMin: 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'a h:mm', + LTS: 'a h:mm:ss', + L: 'YYYY/MM/DD', + LL: 'YYYY MMMM D', + LLL: 'YYYY MMMM D, a h:mm', + LLLL: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss', + }, + calendar: { + sameDay: '[අද] LT[ට]', + nextDay: '[හෙට] LT[ට]', + nextWeek: 'dddd LT[ට]', + lastDay: '[ඊයේ] LT[ට]', + lastWeek: '[පසුගිය] dddd LT[ට]', + sameElse: 'L', + }, + relativeTime: { + future: '%sකින්', + past: '%sකට පෙර', + s: 'තත්පර කිහිපය', + ss: 'තත්පර %d', + m: 'මිනිත්තුව', + mm: 'මිනිත්තු %d', + h: 'පැය', + hh: 'පැය %d', + d: 'දිනය', + dd: 'දින %d', + M: 'මාසය', + MM: 'මාස %d', + y: 'වසර', + yy: 'වසර %d', + }, + dayOfMonthOrdinalParse: /\d{1,2} වැනි/, + ordinal: function (number) { + return number + ' වැනි'; + }, + meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./, + isPM: function (input) { + return input === 'ප.ව.' || input === 'පස් වරු'; + }, + meridiem: function (hours, minutes, isLower) { + if (hours > 11) { + return isLower ? 'ප.ව.' : 'පස් වරු'; + } else { + return isLower ? 'පෙ.ව.' : 'පෙර වරු'; + } + }, + }); - ColumnManager.prototype.isAnyColumnsFixed = function isAnyColumnsFixed() { - var _this = this; + return si; - return this._cache('isAnyColumnsFixed', function () { - return _this.columns.some(function (column) { - return !!column.fixed; - }); - }); - }; + }))); + + +/***/ }), +/* 526 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Slovak [sk] + //! author : Martin Minka : https://github.com/k2s + //! based on work of petrbela : https://github.com/petrbela - ColumnManager.prototype.isAnyColumnsLeftFixed = function isAnyColumnsLeftFixed() { - var _this2 = this; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - return this._cache('isAnyColumnsLeftFixed', function () { - return _this2.columns.some(function (column) { - return column.fixed === 'left' || column.fixed === true; - }); - }); - }; + //! moment.js locale configuration - ColumnManager.prototype.isAnyColumnsRightFixed = function isAnyColumnsRightFixed() { - var _this3 = this; + var months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split( + '_' + ), + monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_'); + function plural(n) { + return n > 1 && n < 5; + } + function translate(number, withoutSuffix, key, isFuture) { + var result = number + ' '; + switch (key) { + case 's': // a few seconds / in a few seconds / a few seconds ago + return withoutSuffix || isFuture ? 'pár sekúnd' : 'pár sekundami'; + case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago + if (withoutSuffix || isFuture) { + return result + (plural(number) ? 'sekundy' : 'sekúnd'); + } else { + return result + 'sekundami'; + } + case 'm': // a minute / in a minute / a minute ago + return withoutSuffix ? 'minúta' : isFuture ? 'minútu' : 'minútou'; + case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago + if (withoutSuffix || isFuture) { + return result + (plural(number) ? 'minúty' : 'minút'); + } else { + return result + 'minútami'; + } + case 'h': // an hour / in an hour / an hour ago + return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou'; + case 'hh': // 9 hours / in 9 hours / 9 hours ago + if (withoutSuffix || isFuture) { + return result + (plural(number) ? 'hodiny' : 'hodín'); + } else { + return result + 'hodinami'; + } + case 'd': // a day / in a day / a day ago + return withoutSuffix || isFuture ? 'deň' : 'dňom'; + case 'dd': // 9 days / in 9 days / 9 days ago + if (withoutSuffix || isFuture) { + return result + (plural(number) ? 'dni' : 'dní'); + } else { + return result + 'dňami'; + } + case 'M': // a month / in a month / a month ago + return withoutSuffix || isFuture ? 'mesiac' : 'mesiacom'; + case 'MM': // 9 months / in 9 months / 9 months ago + if (withoutSuffix || isFuture) { + return result + (plural(number) ? 'mesiace' : 'mesiacov'); + } else { + return result + 'mesiacmi'; + } + case 'y': // a year / in a year / a year ago + return withoutSuffix || isFuture ? 'rok' : 'rokom'; + case 'yy': // 9 years / in 9 years / 9 years ago + if (withoutSuffix || isFuture) { + return result + (plural(number) ? 'roky' : 'rokov'); + } else { + return result + 'rokmi'; + } + } + } - return this._cache('isAnyColumnsRightFixed', function () { - return _this3.columns.some(function (column) { - return column.fixed === 'right'; - }); + var sk = moment.defineLocale('sk', { + months: months, + monthsShort: monthsShort, + weekdays: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'), + weekdaysShort: 'ne_po_ut_st_št_pi_so'.split('_'), + weekdaysMin: 'ne_po_ut_st_št_pi_so'.split('_'), + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd D. MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[dnes o] LT', + nextDay: '[zajtra o] LT', + nextWeek: function () { + switch (this.day()) { + case 0: + return '[v nedeľu o] LT'; + case 1: + case 2: + return '[v] dddd [o] LT'; + case 3: + return '[v stredu o] LT'; + case 4: + return '[vo štvrtok o] LT'; + case 5: + return '[v piatok o] LT'; + case 6: + return '[v sobotu o] LT'; + } + }, + lastDay: '[včera o] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + return '[minulú nedeľu o] LT'; + case 1: + case 2: + return '[minulý] dddd [o] LT'; + case 3: + return '[minulú stredu o] LT'; + case 4: + case 5: + return '[minulý] dddd [o] LT'; + case 6: + return '[minulú sobotu o] LT'; + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'za %s', + past: 'pred %s', + s: translate, + ss: translate, + m: translate, + mm: translate, + h: translate, + hh: translate, + d: translate, + dd: translate, + M: translate, + MM: translate, + y: translate, + yy: translate, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, }); - }; - ColumnManager.prototype.leftColumns = function leftColumns() { - var _this4 = this; - - return this._cache('leftColumns', function () { - return _this4.groupedColumns().filter(function (column) { - return column.fixed === 'left' || column.fixed === true; - }); - }); - }; + return sk; - ColumnManager.prototype.rightColumns = function rightColumns() { - var _this5 = this; + }))); + + +/***/ }), +/* 527 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Slovenian [sl] + //! author : Robert Sedovšek : https://github.com/sedovsek - return this._cache('rightColumns', function () { - return _this5.groupedColumns().filter(function (column) { - return column.fixed === 'right'; - }); - }); - }; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - ColumnManager.prototype.centerColumns = function centerColumns() { - var _this6 = this; + //! moment.js locale configuration - return this._cache('centerColumns', function () { - return _this6.groupedColumns().filter(function (column) { - return !column.fixed; - }); - }); - }; + function processRelativeTime(number, withoutSuffix, key, isFuture) { + var result = number + ' '; + switch (key) { + case 's': + return withoutSuffix || isFuture + ? 'nekaj sekund' + : 'nekaj sekundami'; + case 'ss': + if (number === 1) { + result += withoutSuffix ? 'sekundo' : 'sekundi'; + } else if (number === 2) { + result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah'; + } else if (number < 5) { + result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah'; + } else { + result += 'sekund'; + } + return result; + case 'm': + return withoutSuffix ? 'ena minuta' : 'eno minuto'; + case 'mm': + if (number === 1) { + result += withoutSuffix ? 'minuta' : 'minuto'; + } else if (number === 2) { + result += withoutSuffix || isFuture ? 'minuti' : 'minutama'; + } else if (number < 5) { + result += withoutSuffix || isFuture ? 'minute' : 'minutami'; + } else { + result += withoutSuffix || isFuture ? 'minut' : 'minutami'; + } + return result; + case 'h': + return withoutSuffix ? 'ena ura' : 'eno uro'; + case 'hh': + if (number === 1) { + result += withoutSuffix ? 'ura' : 'uro'; + } else if (number === 2) { + result += withoutSuffix || isFuture ? 'uri' : 'urama'; + } else if (number < 5) { + result += withoutSuffix || isFuture ? 'ure' : 'urami'; + } else { + result += withoutSuffix || isFuture ? 'ur' : 'urami'; + } + return result; + case 'd': + return withoutSuffix || isFuture ? 'en dan' : 'enim dnem'; + case 'dd': + if (number === 1) { + result += withoutSuffix || isFuture ? 'dan' : 'dnem'; + } else if (number === 2) { + result += withoutSuffix || isFuture ? 'dni' : 'dnevoma'; + } else { + result += withoutSuffix || isFuture ? 'dni' : 'dnevi'; + } + return result; + case 'M': + return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem'; + case 'MM': + if (number === 1) { + result += withoutSuffix || isFuture ? 'mesec' : 'mesecem'; + } else if (number === 2) { + result += withoutSuffix || isFuture ? 'meseca' : 'mesecema'; + } else if (number < 5) { + result += withoutSuffix || isFuture ? 'mesece' : 'meseci'; + } else { + result += withoutSuffix || isFuture ? 'mesecev' : 'meseci'; + } + return result; + case 'y': + return withoutSuffix || isFuture ? 'eno leto' : 'enim letom'; + case 'yy': + if (number === 1) { + result += withoutSuffix || isFuture ? 'leto' : 'letom'; + } else if (number === 2) { + result += withoutSuffix || isFuture ? 'leti' : 'letoma'; + } else if (number < 5) { + result += withoutSuffix || isFuture ? 'leta' : 'leti'; + } else { + result += withoutSuffix || isFuture ? 'let' : 'leti'; + } + return result; + } + } - ColumnManager.prototype.leafColumns = function leafColumns() { - var _this7 = this; + var sl = moment.defineLocale('sl', { + months: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split( + '_' + ), + monthsShort: 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'), + weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'), + weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD. MM. YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd, D. MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[danes ob] LT', + nextDay: '[jutri ob] LT', - return this._cache('leafColumns', function () { - return _this7._leafColumns(_this7.columns); + nextWeek: function () { + switch (this.day()) { + case 0: + return '[v] [nedeljo] [ob] LT'; + case 3: + return '[v] [sredo] [ob] LT'; + case 6: + return '[v] [soboto] [ob] LT'; + case 1: + case 2: + case 4: + case 5: + return '[v] dddd [ob] LT'; + } + }, + lastDay: '[včeraj ob] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + return '[prejšnjo] [nedeljo] [ob] LT'; + case 3: + return '[prejšnjo] [sredo] [ob] LT'; + case 6: + return '[prejšnjo] [soboto] [ob] LT'; + case 1: + case 2: + case 4: + case 5: + return '[prejšnji] dddd [ob] LT'; + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'čez %s', + past: 'pred %s', + s: processRelativeTime, + ss: processRelativeTime, + m: processRelativeTime, + mm: processRelativeTime, + h: processRelativeTime, + hh: processRelativeTime, + d: processRelativeTime, + dd: processRelativeTime, + M: processRelativeTime, + MM: processRelativeTime, + y: processRelativeTime, + yy: processRelativeTime, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, }); - }; - - ColumnManager.prototype.leftLeafColumns = function leftLeafColumns() { - var _this8 = this; - return this._cache('leftLeafColumns', function () { - return _this8._leafColumns(_this8.leftColumns()); - }); - }; + return sl; - ColumnManager.prototype.rightLeafColumns = function rightLeafColumns() { - var _this9 = this; + }))); + + +/***/ }), +/* 528 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Albanian [sq] + //! author : Flakërim Ismani : https://github.com/flakerimi + //! author : Menelion Elensúle : https://github.com/Oire + //! author : Oerd Cukalla : https://github.com/oerd - return this._cache('rightLeafColumns', function () { - return _this9._leafColumns(_this9.rightColumns()); - }); - }; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - ColumnManager.prototype.centerLeafColumns = function centerLeafColumns() { - var _this10 = this; + //! moment.js locale configuration - return this._cache('centerLeafColumns', function () { - return _this10._leafColumns(_this10.centerColumns()); + var sq = moment.defineLocale('sq', { + months: 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split( + '_' + ), + monthsShort: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'), + weekdays: 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split( + '_' + ), + weekdaysShort: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'), + weekdaysMin: 'D_H_Ma_Më_E_P_Sh'.split('_'), + weekdaysParseExact: true, + meridiemParse: /PD|MD/, + isPM: function (input) { + return input.charAt(0) === 'M'; + }, + meridiem: function (hours, minutes, isLower) { + return hours < 12 ? 'PD' : 'MD'; + }, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Sot në] LT', + nextDay: '[Nesër në] LT', + nextWeek: 'dddd [në] LT', + lastDay: '[Dje në] LT', + lastWeek: 'dddd [e kaluar në] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'në %s', + past: '%s më parë', + s: 'disa sekonda', + ss: '%d sekonda', + m: 'një minutë', + mm: '%d minuta', + h: 'një orë', + hh: '%d orë', + d: 'një ditë', + dd: '%d ditë', + M: 'një muaj', + MM: '%d muaj', + y: 'një vit', + yy: '%d vite', + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, }); - }; - - // add appropriate rowspan and colspan to column + return sq; - ColumnManager.prototype.groupedColumns = function groupedColumns(type) { - var _this11 = this; + }))); + + +/***/ }), +/* 529 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Serbian [sr] + //! author : Milan Janačković : https://github.com/milan-j - return this._cache('groupedColumns', function () { - var _groupColumns = function _groupColumns(columns) { - var currentRow = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; - var parentColumn = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - var rows = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : []; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - // track how many rows we got - rows[currentRow] = rows[currentRow] || []; - var grouped = []; - var setRowSpan = function setRowSpan(column) { - var rowSpan = rows.length - currentRow; - if (column && !column.children && // parent columns are supposed to be one row - rowSpan > 1 && (!column.rowSpan || column.rowSpan < rowSpan)) { - column.rowSpan = rowSpan; - } - }; - columns.forEach(function (column, index) { - var defaultOpt = { - ifshow: true - }; - if (!_this11.originWidth) { - defaultOpt.width = 200; - } - //获取非固定列 - if (type == 'nofixed' && column.fixed) { - return false; - } - var newColumn = _extends({}, defaultOpt, column); - rows[currentRow].push(newColumn); - parentColumn.colSpan = parentColumn.colSpan || 0; - if (newColumn.children && newColumn.children.length > 0) { - newColumn.children = _groupColumns(newColumn.children, currentRow + 1, newColumn, rows); - parentColumn.colSpan = parentColumn.colSpan + newColumn.colSpan; - } else { - parentColumn.colSpan++; - } - // update rowspan to all same row columns - for (var i = 0; i < rows[currentRow].length - 1; ++i) { - setRowSpan(rows[currentRow][i]); - } - // last column, update rowspan immediately - if (index + 1 === columns.length) { - setRowSpan(newColumn); - } - grouped.push(newColumn); - }); - return grouped; - }; - return _groupColumns(_this11.columns); - }); - }; + //! moment.js locale configuration - ColumnManager.prototype.normalize = function normalize(elements) { - var _this12 = this; + var translator = { + words: { + //Different grammatical cases + ss: ['sekunda', 'sekunde', 'sekundi'], + m: ['jedan minut', 'jedne minute'], + mm: ['minut', 'minute', 'minuta'], + h: ['jedan sat', 'jednog sata'], + hh: ['sat', 'sata', 'sati'], + dd: ['dan', 'dana', 'dana'], + MM: ['mesec', 'meseca', 'meseci'], + yy: ['godina', 'godine', 'godina'], + }, + correctGrammaticalCase: function (number, wordKey) { + return number === 1 + ? wordKey[0] + : number >= 2 && number <= 4 + ? wordKey[1] + : wordKey[2]; + }, + translate: function (number, withoutSuffix, key) { + var wordKey = translator.words[key]; + if (key.length === 1) { + return withoutSuffix ? wordKey[0] : wordKey[1]; + } else { + return ( + number + + ' ' + + translator.correctGrammaticalCase(number, wordKey) + ); + } + }, + }; - var columns = []; - _react2['default'].Children.forEach(elements, function (element) { - if (!_this12.isColumnElement(element)) return; - var column = _extends({}, element.props); - if (element.key) { - column.key = element.key; - } - if (element.type === _ColumnGroup2['default']) { - column.children = _this12.normalize(column.children); - } - columns.push(column); + var sr = moment.defineLocale('sr', { + months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split( + '_' + ), + monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split( + '_' + ), + weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'), + weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd, D. MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[danas u] LT', + nextDay: '[sutra u] LT', + nextWeek: function () { + switch (this.day()) { + case 0: + return '[u] [nedelju] [u] LT'; + case 3: + return '[u] [sredu] [u] LT'; + case 6: + return '[u] [subotu] [u] LT'; + case 1: + case 2: + case 4: + case 5: + return '[u] dddd [u] LT'; + } + }, + lastDay: '[juče u] LT', + lastWeek: function () { + var lastWeekDays = [ + '[prošle] [nedelje] [u] LT', + '[prošlog] [ponedeljka] [u] LT', + '[prošlog] [utorka] [u] LT', + '[prošle] [srede] [u] LT', + '[prošlog] [četvrtka] [u] LT', + '[prošlog] [petka] [u] LT', + '[prošle] [subote] [u] LT', + ]; + return lastWeekDays[this.day()]; + }, + sameElse: 'L', + }, + relativeTime: { + future: 'za %s', + past: 'pre %s', + s: 'nekoliko sekundi', + ss: translator.translate, + m: translator.translate, + mm: translator.translate, + h: translator.translate, + hh: translator.translate, + d: 'dan', + dd: translator.translate, + M: 'mesec', + MM: translator.translate, + y: 'godinu', + yy: translator.translate, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, }); - return columns; - }; - ColumnManager.prototype.isColumnElement = function isColumnElement(element) { - return element && (element.type === _Column2['default'] || element.type === _ColumnGroup2['default']); - }; + return sr; - ColumnManager.prototype.reset = function reset(columns, elements, showRowNum, rowDraggAble) { - columns = this.addDragHandleColumn(columns, rowDraggAble); - columns = this.addOrderColumn(columns, showRowNum); - columns = this.deleteColumnNotShow(columns); - this.columns = columns || this.normalize(elements); - this._cached = {}; - }; + }))); + + +/***/ }), +/* 530 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Serbian Cyrillic [sr-cyrl] + //! author : Milan Janačković : https://github.com/milan-j - ColumnManager.prototype.getColumnWidth = function getColumnWidth(contentWidth) { - var columns = this.leafColumns(); - var res = { computeWidth: 0, lastShowIndex: -1 }; - columns.forEach(function (col, index) { - //如果列显示 - if (col.ifshow) { - var width = col.width; - if (typeof width == 'string' && width.includes('%')) { - width = contentWidth * parseInt(col.width) / 100; - } - res.computeWidth += parseInt(width); - if (!col.fixed) { - res.lastShowIndex = index; - } - } - }); - return res; - }; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - ColumnManager.prototype.getLeftColumnsWidth = function getLeftColumnsWidth() { - var _this13 = this; + //! moment.js locale configuration - var contentWidth = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1; + var translator = { + words: { + //Different grammatical cases + ss: ['секунда', 'секунде', 'секунди'], + m: ['један минут', 'једне минуте'], + mm: ['минут', 'минуте', 'минута'], + h: ['један сат', 'једног сата'], + hh: ['сат', 'сата', 'сати'], + dd: ['дан', 'дана', 'дана'], + MM: ['месец', 'месеца', 'месеци'], + yy: ['година', 'године', 'година'], + }, + correctGrammaticalCase: function (number, wordKey) { + return number === 1 + ? wordKey[0] + : number >= 2 && number <= 4 + ? wordKey[1] + : wordKey[2]; + }, + translate: function (number, withoutSuffix, key) { + var wordKey = translator.words[key]; + if (key.length === 1) { + return withoutSuffix ? wordKey[0] : wordKey[1]; + } else { + return ( + number + + ' ' + + translator.correctGrammaticalCase(number, wordKey) + ); + } + }, + }; - return this._cache('leftColumnsWidth', function () { - var leftColumnsWidth = 0; - _this13.groupedColumns().forEach(function (column) { - if (column.fixed === 'left' || column.fixed === true) { - var width = column.width; - if (typeof width == 'string' && width.includes('%')) { - width = contentWidth * parseInt(column.width) / 100; - } - leftColumnsWidth += parseInt(width); - } - }); - return leftColumnsWidth; + var srCyrl = moment.defineLocale('sr-cyrl', { + months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split( + '_' + ), + monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'), + weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'), + weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd, D. MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[данас у] LT', + nextDay: '[сутра у] LT', + nextWeek: function () { + switch (this.day()) { + case 0: + return '[у] [недељу] [у] LT'; + case 3: + return '[у] [среду] [у] LT'; + case 6: + return '[у] [суботу] [у] LT'; + case 1: + case 2: + case 4: + case 5: + return '[у] dddd [у] LT'; + } + }, + lastDay: '[јуче у] LT', + lastWeek: function () { + var lastWeekDays = [ + '[прошле] [недеље] [у] LT', + '[прошлог] [понедељка] [у] LT', + '[прошлог] [уторка] [у] LT', + '[прошле] [среде] [у] LT', + '[прошлог] [четвртка] [у] LT', + '[прошлог] [петка] [у] LT', + '[прошле] [суботе] [у] LT', + ]; + return lastWeekDays[this.day()]; + }, + sameElse: 'L', + }, + relativeTime: { + future: 'за %s', + past: 'пре %s', + s: 'неколико секунди', + ss: translator.translate, + m: translator.translate, + mm: translator.translate, + h: translator.translate, + hh: translator.translate, + d: 'дан', + dd: translator.translate, + M: 'месец', + MM: translator.translate, + y: 'годину', + yy: translator.translate, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, }); - }; - ColumnManager.prototype.getRightColumnsWidth = function getRightColumnsWidth() { - var _this14 = this; + return srCyrl; - var contentWidth = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1; + }))); + + +/***/ }), +/* 531 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : siSwati [ss] + //! author : Nicolai Davies : https://github.com/nicolaidavies - return this._cache('rightColumnsWidth', function () { - var rightColumnsWidth = 0; - _this14.groupedColumns().forEach(function (column) { - if (column.fixed === 'right') { - var width = column.width; - if (typeof width == 'string' && width.includes('%')) { - width = contentWidth * parseInt(column.width) / 100; - } - rightColumnsWidth += parseInt(width); - } - }); - return rightColumnsWidth; - }); - }; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - ColumnManager.prototype._cache = function _cache(name, fn) { - if (name in this._cached) { - return this._cached[name]; - } - this._cached[name] = fn(); - return this._cached[name]; - }; + //! moment.js locale configuration - //todo 含有children的宽度计算 + var ss = moment.defineLocale('ss', { + months: "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split( + '_' + ), + monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'), + weekdays: 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split( + '_' + ), + weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'), + weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY h:mm A', + LLLL: 'dddd, D MMMM YYYY h:mm A', + }, + calendar: { + sameDay: '[Namuhla nga] LT', + nextDay: '[Kusasa nga] LT', + nextWeek: 'dddd [nga] LT', + lastDay: '[Itolo nga] LT', + lastWeek: 'dddd [leliphelile] [nga] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'nga %s', + past: 'wenteka nga %s', + s: 'emizuzwana lomcane', + ss: '%d mzuzwana', + m: 'umzuzu', + mm: '%d emizuzu', + h: 'lihora', + hh: '%d emahora', + d: 'lilanga', + dd: '%d emalanga', + M: 'inyanga', + MM: '%d tinyanga', + y: 'umnyaka', + yy: '%d iminyaka', + }, + meridiemParse: /ekuseni|emini|entsambama|ebusuku/, + meridiem: function (hours, minutes, isLower) { + if (hours < 11) { + return 'ekuseni'; + } else if (hours < 15) { + return 'emini'; + } else if (hours < 19) { + return 'entsambama'; + } else { + return 'ebusuku'; + } + }, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === 'ekuseni') { + return hour; + } else if (meridiem === 'emini') { + return hour >= 11 ? hour : hour + 12; + } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') { + if (hour === 0) { + return 0; + } + return hour + 12; + } + }, + dayOfMonthOrdinalParse: /\d{1,2}/, + ordinal: '%d', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); + return ss; - ColumnManager.prototype._leafColumns = function _leafColumns(columns) { - var _this15 = this; + }))); + + +/***/ }), +/* 532 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Swedish [sv] + //! author : Jens Alm : https://github.com/ulmus - var leafColumns = []; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - columns.forEach(function (column) { - if (!column.children) { + //! moment.js locale configuration - var defaultOpt = { - ifshow: true - }; - if (!_this15.originWidth) { - defaultOpt.width = 200; - } - var newColumn = _extends({}, defaultOpt, column); - leafColumns.push(newColumn); - } else { - leafColumns.push.apply(leafColumns, _toConsumableArray(_this15._leafColumns(column.children))); - } + var sv = moment.defineLocale('sv', { + months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split( + '_' + ), + monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'), + weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'), + weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'), + weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY-MM-DD', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY [kl.] HH:mm', + LLLL: 'dddd D MMMM YYYY [kl.] HH:mm', + lll: 'D MMM YYYY HH:mm', + llll: 'ddd D MMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Idag] LT', + nextDay: '[Imorgon] LT', + lastDay: '[Igår] LT', + nextWeek: '[På] dddd LT', + lastWeek: '[I] dddd[s] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'om %s', + past: 'för %s sedan', + s: 'några sekunder', + ss: '%d sekunder', + m: 'en minut', + mm: '%d minuter', + h: 'en timme', + hh: '%d timmar', + d: 'en dag', + dd: '%d dagar', + M: 'en månad', + MM: '%d månader', + y: 'ett år', + yy: '%d år', + }, + dayOfMonthOrdinalParse: /\d{1,2}(\:e|\:a)/, + ordinal: function (number) { + var b = number % 10, + output = + ~~((number % 100) / 10) === 1 + ? ':e' + : b === 1 + ? ':a' + : b === 2 + ? ':a' + : b === 3 + ? ':e' + : ':e'; + return number + output; + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, }); - return leafColumns; - }; - - return ColumnManager; - }(); - var _initialiseProps = function _initialiseProps() { - this._cached = {}; + return sv; - this.addDragHandleColumn = function (columns, rowDraggAble) { - if (!rowDraggAble) { - return columns; - } - var dragHandleColumn = [{ - className: "drag-handle-column", - title: "", - key: "dragHandle", - dataIndex: "dragHandle", - width: 49, - draggable: true, - render: function render() { - return _react2['default'].createElement(_beeIcon2['default'], { type: 'uf-navmenu' }); - } - }]; - columns = dragHandleColumn.concat(columns); - return columns; - }; + }))); + + +/***/ }), +/* 533 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Swahili [sw] + //! author : Fahad Kassim : https://github.com/fadsel - this.deleteColumnNotShow = function (columns) { - var len = columns.length; - for (var i = 0; i < len; i++) { - if (columns && columns[i] && columns[i].isShow === false) { - columns.splice(i, 1); - i--; - } - } - return columns; - }; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - this.addOrderColumn = function (columns, showRowNum) { - if (!showRowNum) { - return columns; - } - var key = showRowNum.key, - fixed = showRowNum.fixed, - width = showRowNum.width, - name = showRowNum.name, - type = showRowNum.type, - base = showRowNum.base; + //! moment.js locale configuration - var order = { - dataIndex: key || '_index', - key: '_index', - fixed: fixed || 'left', - width: width || 50, - title: name || '序号', - render: function render(text, record, index) { - switch (type) { - case 'ascii': - { - return String.fromCharCode((base || 'a').charCodeAt() + index); - } - case 'number': - default: - { - return (base || 0) + index; - } - } - } - }; - if (columns.length > 0 && columns[0].dataIndex !== 'checkbox' && columns[0].dataIndex !== 'radio') { - // 多选表格/单选表格时放在第二列,其他情况放到第一列 - columns = [order].concat(columns); - } else { - columns.splice(1, 0, order); // splice方法改变原数组,返回切割出的数组,此处为[] - } - return columns; - }; - }; + var sw = moment.defineLocale('sw', { + months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'), + weekdays: 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split( + '_' + ), + weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'), + weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'hh:mm A', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[leo saa] LT', + nextDay: '[kesho saa] LT', + nextWeek: '[wiki ijayo] dddd [saat] LT', + lastDay: '[jana] LT', + lastWeek: '[wiki iliyopita] dddd [saat] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s baadaye', + past: 'tokea %s', + s: 'hivi punde', + ss: 'sekunde %d', + m: 'dakika moja', + mm: 'dakika %d', + h: 'saa limoja', + hh: 'masaa %d', + d: 'siku moja', + dd: 'siku %d', + M: 'mwezi mmoja', + MM: 'miezi %d', + y: 'mwaka mmoja', + yy: 'miaka %d', + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, + }); - exports['default'] = ColumnManager; - module.exports = exports['default']; + return sw; + + }))); + /***/ }), -/* 601 */ +/* 534 */ /***/ (function(module, exports, __webpack_require__) { - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _react = __webpack_require__(1); - - var _propTypes = __webpack_require__(6); - - var _propTypes2 = _interopRequireDefault(_propTypes); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - - var propTypes = { - className: _propTypes2['default'].string, - colSpan: _propTypes2['default'].number, - title: _propTypes2['default'].node, - dataIndex: _propTypes2['default'].string, - width: _propTypes2['default'].oneOfType([_propTypes2['default'].number, _propTypes2['default'].string]), - fixed: _propTypes2['default'].oneOf([true, 'left', 'right']), - render: _propTypes2['default'].func, - onCellClick: _propTypes2['default'].func, - ifshow: _propTypes2['default'].bool, - fieldType: _propTypes2['default'].string // 类型 - }; - - var Column = function (_Component) { - _inherits(Column, _Component); - - function Column() { - _classCallCheck(this, Column); + //! moment.js locale configuration + //! locale : Tamil [ta] + //! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404 - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - return Column; - }(_react.Component); + //! moment.js locale configuration - Column.defaultProps = { - ifshow: true - }; + var symbolMap = { + '1': '௧', + '2': '௨', + '3': '௩', + '4': '௪', + '5': '௫', + '6': '௬', + '7': '௭', + '8': '௮', + '9': '௯', + '0': '௦', + }, + numberMap = { + '௧': '1', + '௨': '2', + '௩': '3', + '௪': '4', + '௫': '5', + '௬': '6', + '௭': '7', + '௮': '8', + '௯': '9', + '௦': '0', + }; + var ta = moment.defineLocale('ta', { + months: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split( + '_' + ), + monthsShort: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split( + '_' + ), + weekdays: 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split( + '_' + ), + weekdaysShort: 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split( + '_' + ), + weekdaysMin: 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, HH:mm', + LLLL: 'dddd, D MMMM YYYY, HH:mm', + }, + calendar: { + sameDay: '[இன்று] LT', + nextDay: '[நாளை] LT', + nextWeek: 'dddd, LT', + lastDay: '[நேற்று] LT', + lastWeek: '[கடந்த வாரம்] dddd, LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s இல்', + past: '%s முன்', + s: 'ஒரு சில விநாடிகள்', + ss: '%d விநாடிகள்', + m: 'ஒரு நிமிடம்', + mm: '%d நிமிடங்கள்', + h: 'ஒரு மணி நேரம்', + hh: '%d மணி நேரம்', + d: 'ஒரு நாள்', + dd: '%d நாட்கள்', + M: 'ஒரு மாதம்', + MM: '%d மாதங்கள்', + y: 'ஒரு வருடம்', + yy: '%d ஆண்டுகள்', + }, + dayOfMonthOrdinalParse: /\d{1,2}வது/, + ordinal: function (number) { + return number + 'வது'; + }, + preparse: function (string) { + return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) { + return numberMap[match]; + }); + }, + postformat: function (string) { + return string.replace(/\d/g, function (match) { + return symbolMap[match]; + }); + }, + // refer http://ta.wikipedia.org/s/1er1 + meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/, + meridiem: function (hour, minute, isLower) { + if (hour < 2) { + return ' யாமம்'; + } else if (hour < 6) { + return ' வைகறை'; // வைகறை + } else if (hour < 10) { + return ' காலை'; // காலை + } else if (hour < 14) { + return ' நண்பகல்'; // நண்பகல் + } else if (hour < 18) { + return ' எற்பாடு'; // எற்பாடு + } else if (hour < 22) { + return ' மாலை'; // மாலை + } else { + return ' யாமம்'; + } + }, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === 'யாமம்') { + return hour < 2 ? hour : hour + 12; + } else if (meridiem === 'வைகறை' || meridiem === 'காலை') { + return hour; + } else if (meridiem === 'நண்பகல்') { + return hour >= 10 ? hour : hour + 12; + } else { + return hour + 12; + } + }, + week: { + dow: 0, // Sunday is the first day of the week. + doy: 6, // The week that contains Jan 6th is the first week of the year. + }, + }); - Column.propTypes = propTypes; + return ta; - exports['default'] = Column; - module.exports = exports['default']; + }))); + /***/ }), -/* 602 */ +/* 535 */ /***/ (function(module, exports, __webpack_require__) { - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _react = __webpack_require__(1); - - var _propTypes = __webpack_require__(6); - - var _propTypes2 = _interopRequireDefault(_propTypes); + //! moment.js locale configuration + //! locale : Telugu [te] + //! author : Krishna Chaitanya Thota : https://github.com/kcthota - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + //! moment.js locale configuration - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + var te = moment.defineLocale('te', { + months: 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split( + '_' + ), + monthsShort: 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split( + '_' + ), + weekdaysShort: 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'), + weekdaysMin: 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'), + longDateFormat: { + LT: 'A h:mm', + LTS: 'A h:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm', + LLLL: 'dddd, D MMMM YYYY, A h:mm', + }, + calendar: { + sameDay: '[నేడు] LT', + nextDay: '[రేపు] LT', + nextWeek: 'dddd, LT', + lastDay: '[నిన్న] LT', + lastWeek: '[గత] dddd, LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s లో', + past: '%s క్రితం', + s: 'కొన్ని క్షణాలు', + ss: '%d సెకన్లు', + m: 'ఒక నిమిషం', + mm: '%d నిమిషాలు', + h: 'ఒక గంట', + hh: '%d గంటలు', + d: 'ఒక రోజు', + dd: '%d రోజులు', + M: 'ఒక నెల', + MM: '%d నెలలు', + y: 'ఒక సంవత్సరం', + yy: '%d సంవత్సరాలు', + }, + dayOfMonthOrdinalParse: /\d{1,2}వ/, + ordinal: '%dవ', + meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === 'రాత్రి') { + return hour < 4 ? hour : hour + 12; + } else if (meridiem === 'ఉదయం') { + return hour; + } else if (meridiem === 'మధ్యాహ్నం') { + return hour >= 10 ? hour : hour + 12; + } else if (meridiem === 'సాయంత్రం') { + return hour + 12; + } + }, + meridiem: function (hour, minute, isLower) { + if (hour < 4) { + return 'రాత్రి'; + } else if (hour < 10) { + return 'ఉదయం'; + } else if (hour < 17) { + return 'మధ్యాహ్నం'; + } else if (hour < 20) { + return 'సాయంత్రం'; + } else { + return 'రాత్రి'; + } + }, + week: { + dow: 0, // Sunday is the first day of the week. + doy: 6, // The week that contains Jan 6th is the first week of the year. + }, + }); - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + return te; - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + }))); + + +/***/ }), +/* 536 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Tetun Dili (East Timor) [tet] + //! author : Joshua Brooks : https://github.com/joshbrooks + //! author : Onorio De J. Afonso : https://github.com/marobo + //! author : Sonia Simoes : https://github.com/soniasimoes - var ColumnGroup = function (_Component) { - _inherits(ColumnGroup, _Component); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function ColumnGroup() { - _classCallCheck(this, ColumnGroup); + //! moment.js locale configuration - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + var tet = moment.defineLocale('tet', { + months: 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split( + '_' + ), + monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'), + weekdays: 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split('_'), + weekdaysShort: 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'), + weekdaysMin: 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Ohin iha] LT', + nextDay: '[Aban iha] LT', + nextWeek: 'dddd [iha] LT', + lastDay: '[Horiseik iha] LT', + lastWeek: 'dddd [semana kotuk] [iha] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'iha %s', + past: '%s liuba', + s: 'segundu balun', + ss: 'segundu %d', + m: 'minutu ida', + mm: 'minutu %d', + h: 'oras ida', + hh: 'oras %d', + d: 'loron ida', + dd: 'loron %d', + M: 'fulan ida', + MM: 'fulan %d', + y: 'tinan ida', + yy: 'tinan %d', + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal: function (number) { + var b = number % 10, + output = + ~~((number % 100) / 10) === 1 + ? 'th' + : b === 1 + ? 'st' + : b === 2 + ? 'nd' + : b === 3 + ? 'rd' + : 'th'; + return number + output; + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - return ColumnGroup; - }(_react.Component); + return tet; - ColumnGroup.propTypes = { - title: _propTypes2['default'].node - }; - exports['default'] = ColumnGroup; - module.exports = exports['default']; + }))); + /***/ }), -/* 603 */ -/***/ (function(module, exports) { +/* 537 */ +/***/ (function(module, exports, __webpack_require__) { - "use strict"; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + //! moment.js locale configuration + //! locale : Tajik [tg] + //! author : Orif N. Jr. : https://github.com/orif-jr - exports["default"] = createStore; - function createStore(initialState) { - var state = initialState; - var listeners = []; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function setState(partial) { - state = _extends({}, state, partial); - for (var i = 0; i < listeners.length; i++) { - listeners[i](); - } - } + //! moment.js locale configuration - function getState() { - return state; - } + var suffixes = { + 0: '-ум', + 1: '-ум', + 2: '-юм', + 3: '-юм', + 4: '-ум', + 5: '-ум', + 6: '-ум', + 7: '-ум', + 8: '-ум', + 9: '-ум', + 10: '-ум', + 12: '-ум', + 13: '-ум', + 20: '-ум', + 30: '-юм', + 40: '-ум', + 50: '-ум', + 60: '-ум', + 70: '-ум', + 80: '-ум', + 90: '-ум', + 100: '-ум', + }; - function subscribe(listener) { - listeners.push(listener); + var tg = moment.defineLocale('tg', { + months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split( + '_' + ), + monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'), + weekdays: 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split( + '_' + ), + weekdaysShort: 'яшб_дшб_сшб_чшб_пшб_ҷум_шнб'.split('_'), + weekdaysMin: 'яш_дш_сш_чш_пш_ҷм_шб'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Имрӯз соати] LT', + nextDay: '[Пагоҳ соати] LT', + lastDay: '[Дирӯз соати] LT', + nextWeek: 'dddd[и] [ҳафтаи оянда соати] LT', + lastWeek: 'dddd[и] [ҳафтаи гузашта соати] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'баъди %s', + past: '%s пеш', + s: 'якчанд сония', + m: 'як дақиқа', + mm: '%d дақиқа', + h: 'як соат', + hh: '%d соат', + d: 'як рӯз', + dd: '%d рӯз', + M: 'як моҳ', + MM: '%d моҳ', + y: 'як сол', + yy: '%d сол', + }, + meridiemParse: /шаб|субҳ|рӯз|бегоҳ/, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === 'шаб') { + return hour < 4 ? hour : hour + 12; + } else if (meridiem === 'субҳ') { + return hour; + } else if (meridiem === 'рӯз') { + return hour >= 11 ? hour : hour + 12; + } else if (meridiem === 'бегоҳ') { + return hour + 12; + } + }, + meridiem: function (hour, minute, isLower) { + if (hour < 4) { + return 'шаб'; + } else if (hour < 11) { + return 'субҳ'; + } else if (hour < 16) { + return 'рӯз'; + } else if (hour < 19) { + return 'бегоҳ'; + } else { + return 'шаб'; + } + }, + dayOfMonthOrdinalParse: /\d{1,2}-(ум|юм)/, + ordinal: function (number) { + var a = number % 10, + b = number >= 100 ? 100 : null; + return number + (suffixes[number] || suffixes[a] || suffixes[b]); + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 1th is the first week of the year. + }, + }); - return function unsubscribe() { - var index = listeners.indexOf(listener); - listeners.splice(index, 1); - }; - } + return tg; - return { - setState: setState, - getState: getState, - subscribe: subscribe - }; - } - module.exports = exports["default"]; + }))); + /***/ }), -/* 604 */ +/* 538 */ /***/ (function(module, exports, __webpack_require__) { - 'use strict'; + //! moment.js locale configuration + //! locale : Thai [th] + //! author : Kridsada Thanabulpong : https://github.com/sirn - Object.defineProperty(exports, "__esModule", { - value: true - }); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _Loading = __webpack_require__(605); + //! moment.js locale configuration - var _Loading2 = _interopRequireDefault(_Loading); + var th = moment.defineLocale('th', { + months: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split( + '_' + ), + monthsShort: 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'), + weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference + weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY เวลา H:mm', + LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm', + }, + meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/, + isPM: function (input) { + return input === 'หลังเที่ยง'; + }, + meridiem: function (hour, minute, isLower) { + if (hour < 12) { + return 'ก่อนเที่ยง'; + } else { + return 'หลังเที่ยง'; + } + }, + calendar: { + sameDay: '[วันนี้ เวลา] LT', + nextDay: '[พรุ่งนี้ เวลา] LT', + nextWeek: 'dddd[หน้า เวลา] LT', + lastDay: '[เมื่อวานนี้ เวลา] LT', + lastWeek: '[วัน]dddd[ที่แล้ว เวลา] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'อีก %s', + past: '%sที่แล้ว', + s: 'ไม่กี่วินาที', + ss: '%d วินาที', + m: '1 นาที', + mm: '%d นาที', + h: '1 ชั่วโมง', + hh: '%d ชั่วโมง', + d: '1 วัน', + dd: '%d วัน', + M: '1 เดือน', + MM: '%d เดือน', + y: '1 ปี', + yy: '%d ปี', + }, + }); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + return th; - exports["default"] = _Loading2["default"]; - module.exports = exports['default']; + }))); + /***/ }), -/* 605 */ +/* 539 */ /***/ (function(module, exports, __webpack_require__) { - "use strict"; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _propTypes = __webpack_require__(6); - - var _propTypes2 = _interopRequireDefault(_propTypes); - - var _classnames = __webpack_require__(5); - - var _classnames2 = _interopRequireDefault(_classnames); - - var _Portal = __webpack_require__(100); - - var _Portal2 = _interopRequireDefault(_Portal); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + //! moment.js locale configuration + //! locale : Turkmen [trk] + //! author : Atamyrat Abdyrahmanov : https://github.com/atamyratabdy - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var loadImg = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNDJweCIgaGVpZ2h0PSI0MXB4IiB2aWV3Qm94PSIwIDAgNDIgNDEiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUzLjIgKDcyNjQzKSAtIGh0dHBzOi8vc2tldGNoYXBwLmNvbSAtLT4KICAgIDx0aXRsZT53aW5kb3U8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZGVmcz4KICAgICAgICA8bGluZWFyR3JhZGllbnQgeDE9IjQ5Ljc3NzAwMDElIiB5MT0iOTkuOTg4NjY2NyUiIHgyPSI0OS43NzcwMDAxJSIgeTI9IjIyLjc5MTY5ODQlIiBpZD0ibGluZWFyR3JhZGllbnQtMSI+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiM4MkQ5MDAiIG9mZnNldD0iMCUiPjwvc3RvcD4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0ZGRkZGRiIgc3RvcC1vcGFjaXR5PSIwIiBvZmZzZXQ9IjEwMCUiPjwvc3RvcD4KICAgICAgICA8L2xpbmVhckdyYWRpZW50PgogICAgICAgIDxsaW5lYXJHcmFkaWVudCB4MT0iMC4wNzY1JSIgeTE9IjQ5LjgwNDUlIiB4Mj0iODQuMDAyMTY0NCUiIHkyPSI0OS44MDQ1JSIgaWQ9ImxpbmVhckdyYWRpZW50LTIiPgogICAgICAgICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjRkZCRTBFIiBvZmZzZXQ9IjAlIj48L3N0b3A+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiNGRkZGRkYiIHN0b3Atb3BhY2l0eT0iMCIgb2Zmc2V0PSIxMDAlIj48L3N0b3A+CiAgICAgICAgPC9saW5lYXJHcmFkaWVudD4KICAgICAgICA8bGluZWFyR3JhZGllbnQgeDE9IjUwLjIyOTUwMDElIiB5MT0iLTAuMDgwOTk5OTQyOSUiIHgyPSI1MC4yMjk1MDAxJSIgeTI9IjgwLjA2MTg4MjglIiBpZD0ibGluZWFyR3JhZGllbnQtMyI+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiNGRjQ3NDciIG9mZnNldD0iMCUiPjwvc3RvcD4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0ZGRkZGRiIgc3RvcC1vcGFjaXR5PSIwIiBvZmZzZXQ9IjEwMCUiPjwvc3RvcD4KICAgICAgICA8L2xpbmVhckdyYWRpZW50PgogICAgICAgIDxsaW5lYXJHcmFkaWVudCB4MT0iOTkuOTI1NjY2NyUiIHkxPSI0OS45MTglIiB4Mj0iMjQuMjY5MjQwMyUiIHkyPSI0OS45MTglIiBpZD0ibGluZWFyR3JhZGllbnQtNCI+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiMwMDhDREMiIG9mZnNldD0iMCUiPjwvc3RvcD4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0ZGRkZGRiIgc3RvcC1vcGFjaXR5PSIwIiBvZmZzZXQ9IjEwMCUiPjwvc3RvcD4KICAgICAgICA8L2xpbmVhckdyYWRpZW50PgogICAgPC9kZWZzPgogICAgPGcgaWQ9IlN5bWJvbHMiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSLop4blm74vbG9hZGluZyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTMuMDAwMDAwLCAtMy4wMDAwMDApIj4KICAgICAgICAgICAgPGcgaWQ9IndpbmRvdSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMy4wMDAwMDAsIDMuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICA8ZyBpZD0i5YiG57uELTMiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDI5LjAwMDAwMCwgMC4wMDAwMDApIj4KICAgICAgICAgICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlIiBmaWxsPSJ1cmwoI2xpbmVhckdyYWRpZW50LTEpIiBvcGFjaXR5PSIwLjQ5OTM3MjIxIiB4PSIwLjQwOTA5MDkwOSIgeT0iMCIgd2lkdGg9IjEyIiBoZWlnaHQ9IjM0Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0iT3ZhbCIgZmlsbD0iIzAwQzg2NCIgY3g9IjYuNDA5MDkwOTEiIGN5PSIzNC4yNjY3MDkxIiByPSI2Ij48L2NpcmNsZT4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgICAgIDxnIGlkPSLliIbnu4QtMiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMC40NTE3MjksIDI4LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgICAgIDxyZWN0IGlkPSJSZWN0YW5nbGUiIGZpbGw9InVybCgjbGluZWFyR3JhZGllbnQtMikiIG9wYWNpdHk9IjAuNTA5MDIxNTc3IiB4PSI2LjI2MjM1NTk1IiB5PSIzLjU1MjcxMzY4ZS0xNSIgd2lkdGg9IjM0IiBoZWlnaHQ9IjEyIj48L3JlY3Q+CiAgICAgICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0iT3ZhbCIgZmlsbD0iI0ZGQkUwRSIgY3g9IjYuNTAyODE2OSIgY3k9IjYiIHI9IjYiPjwvY2lyY2xlPgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICAgICAgPGcgaWQ9IuWIhue7hCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMS4wMDAwMDAsIDAuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICAgICAgPHJlY3QgaWQ9IlJlY3RhbmdsZSIgZmlsbD0idXJsKCNsaW5lYXJHcmFkaWVudC0zKSIgb3BhY2l0eT0iMC41MDEyMzIzMjkiIHg9Ii0yLjY1NTY1MzQ3ZS0xMyIgeT0iNS43ODgyMTI4MSIgd2lkdGg9IjEyIiBoZWlnaHQ9IjM0Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0iT3ZhbCIgZmlsbD0iI0ZGNDc0NyIgY3g9IjYiIGN5PSI2IiByPSI2Ij48L2NpcmNsZT4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgICAgIDxnIGlkPSJHcm91cCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMC45NTQ1NDUsIDAuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICAgICAgPHJlY3QgaWQ9IlJlY3RhbmdsZSIgZmlsbD0idXJsKCNsaW5lYXJHcmFkaWVudC00KSIgb3BhY2l0eT0iMC41MDQxODUyNjgiIHg9IjAiIHk9IjAiIHdpZHRoPSIzNiIgaGVpZ2h0PSIxMS45NDI2NTY5Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0iT3ZhbCIgZmlsbD0iIzAwOENEQyIgY3g9IjM1IiBjeT0iNiIgcj0iNiI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg=='; + //! moment.js locale configuration - var propTypes = { - /** - * @title 默认的公共类׺ - */ - clsPrefix: _propTypes2["default"].string, - clsLoadBack: _propTypes2["default"].string, - /** - * @title 不同loading样式 - */ - loadingType: _propTypes2["default"].oneOf(["rotate", "line", "custom"]), + var suffixes = { + 1: "'inji", + 5: "'inji", + 8: "'inji", + 70: "'inji", + 80: "'inji", + 2: "'nji", + 7: "'nji", + 20: "'nji", + 50: "'nji", + 3: "'ünji", + 4: "'ünji", + 100: "'ünji", + 6: "'njy", + 9: "'unjy", + 10: "'unjy", + 30: "'unjy", + 60: "'ynjy", + 90: "'ynjy", + }; - /** - * @title 不同尺寸 - */ - size: _propTypes2["default"].oneOf(["sm", "lg"]), - /** - * @title 不同颜色 - */ - color: _propTypes2["default"].oneOf(["primary", "success", "warning", ""]), - /** - * @title 是否全屏loading - */ - fullScreen: _propTypes2["default"].bool, - wrapperClassName: _propTypes2["default"].string - }; + var tk = moment.defineLocale('tk', { + months: 'Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr'.split( + '_' + ), + monthsShort: 'Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek'.split('_'), + weekdays: 'Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe'.split( + '_' + ), + weekdaysShort: 'Ýek_Duş_Siş_Çar_Pen_Ann_Şen'.split('_'), + weekdaysMin: 'Ýk_Dş_Sş_Çr_Pn_An_Şn'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[bugün sagat] LT', + nextDay: '[ertir sagat] LT', + nextWeek: '[indiki] dddd [sagat] LT', + lastDay: '[düýn] LT', + lastWeek: '[geçen] dddd [sagat] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s soň', + past: '%s öň', + s: 'birnäçe sekunt', + m: 'bir minut', + mm: '%d minut', + h: 'bir sagat', + hh: '%d sagat', + d: 'bir gün', + dd: '%d gün', + M: 'bir aý', + MM: '%d aý', + y: 'bir ýyl', + yy: '%d ýyl', + }, + ordinal: function (number, period) { + switch (period) { + case 'd': + case 'D': + case 'Do': + case 'DD': + return number; + default: + if (number === 0) { + // special case for zero + return number + "'unjy"; + } + var a = number % 10, + b = (number % 100) - a, + c = number >= 100 ? 100 : null; + return number + (suffixes[a] || suffixes[b] || suffixes[c]); + } + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, + }); - var defaultProps = { - clsPrefix: "u-loading", - clsLoadBack: "u-loading-back", - loadingType: "rotate", - color: "", - showBackDrop: true, - fullScreen: false, - wrapperClassName: "" - }; + return tk; - var sizeMap = { - sm: "sm", - lg: "lg" - }, - colorsMap = { - primary: "primary", - success: "success", - warning: "warning" - }; + }))); + + +/***/ }), +/* 540 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Tagalog (Philippines) [tl-ph] + //! author : Dan Hagman : https://github.com/hagmandan - var Loading = function (_Component) { - _inherits(Loading, _Component); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function Loading(props) { - _classCallCheck(this, Loading); + //! moment.js locale configuration - return _possibleConstructorReturn(this, _Component.call(this, props)); - } + var tlPh = moment.defineLocale('tl-ph', { + months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split( + '_' + ), + monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'), + weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split( + '_' + ), + weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'), + weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'MM/D/YYYY', + LL: 'MMMM D, YYYY', + LLL: 'MMMM D, YYYY HH:mm', + LLLL: 'dddd, MMMM DD, YYYY HH:mm', + }, + calendar: { + sameDay: 'LT [ngayong araw]', + nextDay: '[Bukas ng] LT', + nextWeek: 'LT [sa susunod na] dddd', + lastDay: 'LT [kahapon]', + lastWeek: 'LT [noong nakaraang] dddd', + sameElse: 'L', + }, + relativeTime: { + future: 'sa loob ng %s', + past: '%s ang nakalipas', + s: 'ilang segundo', + ss: '%d segundo', + m: 'isang minuto', + mm: '%d minuto', + h: 'isang oras', + hh: '%d oras', + d: 'isang araw', + dd: '%d araw', + M: 'isang buwan', + MM: '%d buwan', + y: 'isang taon', + yy: '%d taon', + }, + dayOfMonthOrdinalParse: /\d{1,2}/, + ordinal: function (number) { + return number; + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - Loading.prototype.render = function render() { - var _backClassObj; + return tlPh; - var _props = this.props, - clsPrefix = _props.clsPrefix, - loadingType = _props.loadingType, - size = _props.size, - color = _props.color, - show = _props.show, - showBackDrop = _props.showBackDrop, - container = _props.container, - children = _props.children, - fullScreen = _props.fullScreen, - wrapperClassName = _props.wrapperClassName, - indicator = _props.indicator, - others = _objectWithoutProperties(_props, ["clsPrefix", "loadingType", "size", "color", "show", "showBackDrop", "container", "children", "fullScreen", "wrapperClassName", "indicator"]); + }))); + + +/***/ }), +/* 541 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Klingon [tlh] + //! author : Dominika Kruk : https://github.com/amaranthrose - var clsObj = {}; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - if (!show) return null; + //! moment.js locale configuration - clsObj[clsPrefix + "-" + loadingType] = true; + var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_'); - if (sizeMap[size]) { - clsObj[clsPrefix + "-" + loadingType + "-" + sizeMap[size]] = true; + function translateFuture(output) { + var time = output; + time = + output.indexOf('jaj') !== -1 + ? time.slice(0, -3) + 'leS' + : output.indexOf('jar') !== -1 + ? time.slice(0, -3) + 'waQ' + : output.indexOf('DIS') !== -1 + ? time.slice(0, -3) + 'nem' + : time + ' pIq'; + return time; } - if (colorsMap[color]) { - clsObj[clsPrefix + "-" + loadingType + "-" + colorsMap[color]] = true; + function translatePast(output) { + var time = output; + time = + output.indexOf('jaj') !== -1 + ? time.slice(0, -3) + 'Hu’' + : output.indexOf('jar') !== -1 + ? time.slice(0, -3) + 'wen' + : output.indexOf('DIS') !== -1 + ? time.slice(0, -3) + 'ben' + : time + ' ret'; + return time; } - var classes = (0, _classnames2["default"])(clsPrefix, clsObj); - - var dom = ""; - - if (wrapperClassName) { - classes += " " + wrapperClassName; - } - if (loadingType === "custom" && !!indicator) { - dom = _react2["default"].createElement( - "div", - null, - _react2["default"].createElement( - "div", - { className: classes }, - _react2["default"].createElement( - "div", - null, - indicator - ) - ), - children && _react2["default"].createElement( - "div", - { className: clsPrefix + "-desc" }, - children - ) - ); - } else if (loadingType === "rotate") { - dom = _react2["default"].createElement( - "div", - null, - _react2["default"].createElement( - "div", - { className: classes }, - _react2["default"].createElement( - "div", - null, - _react2["default"].createElement("img", { src: loadImg }) - ) - ), - children && _react2["default"].createElement( - "div", - { className: clsPrefix + "-desc" }, - children - ) - ); - } else if (loadingType === "line") { - dom = _react2["default"].createElement( - "div", - null, - _react2["default"].createElement( - "div", - { className: classes }, - _react2["default"].createElement("div", null), - _react2["default"].createElement("div", null), - _react2["default"].createElement("div", null), - _react2["default"].createElement("div", null), - _react2["default"].createElement("div", null) - ), - children && _react2["default"].createElement( - "div", - { className: clsPrefix + "-desc" }, - children - ) - ); + function translate(number, withoutSuffix, string, isFuture) { + var numberNoun = numberAsNoun(number); + switch (string) { + case 'ss': + return numberNoun + ' lup'; + case 'mm': + return numberNoun + ' tup'; + case 'hh': + return numberNoun + ' rep'; + case 'dd': + return numberNoun + ' jaj'; + case 'MM': + return numberNoun + ' jar'; + case 'yy': + return numberNoun + ' DIS'; + } } - var backClassObj = (_backClassObj = {}, _defineProperty(_backClassObj, clsPrefix + "-backdrop", true), _defineProperty(_backClassObj, "full-screen", fullScreen), _backClassObj); - - if (showBackDrop) { - dom = _react2["default"].createElement( - "div", - { className: (0, _classnames2["default"])(backClassObj) }, - dom - ); + function numberAsNoun(number) { + var hundred = Math.floor((number % 1000) / 100), + ten = Math.floor((number % 100) / 10), + one = number % 10, + word = ''; + if (hundred > 0) { + word += numbersNouns[hundred] + 'vatlh'; + } + if (ten > 0) { + word += (word !== '' ? ' ' : '') + numbersNouns[ten] + 'maH'; + } + if (one > 0) { + word += (word !== '' ? ' ' : '') + numbersNouns[one]; + } + return word === '' ? 'pagh' : word; } - //console.log(container); - - return _react2["default"].createElement( - _Portal2["default"], - { container: container }, - dom - ); - }; - return Loading; - }(_react.Component); + var tlh = moment.defineLocale('tlh', { + months: 'tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’'.split( + '_' + ), + monthsShort: 'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split( + '_' + ), + weekdaysShort: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split( + '_' + ), + weekdaysMin: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split( + '_' + ), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[DaHjaj] LT', + nextDay: '[wa’leS] LT', + nextWeek: 'LLL', + lastDay: '[wa’Hu’] LT', + lastWeek: 'LLL', + sameElse: 'L', + }, + relativeTime: { + future: translateFuture, + past: translatePast, + s: 'puS lup', + ss: translate, + m: 'wa’ tup', + mm: translate, + h: 'wa’ rep', + hh: translate, + d: 'wa’ jaj', + dd: translate, + M: 'wa’ jar', + MM: translate, + y: 'wa’ DIS', + yy: translate, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - Loading.propTypes = propTypes; - Loading.defaultProps = defaultProps; + return tlh; - exports["default"] = Loading; - module.exports = exports["default"]; + }))); + /***/ }), -/* 606 */ +/* 542 */ /***/ (function(module, exports, __webpack_require__) { - "use strict"; - - Object.defineProperty(exports, "__esModule", { - value: true - }); + //! moment.js locale configuration + //! locale : Turkish [tr] + //! authors : Erhan Gundogan : https://github.com/erhangundogan, + //! Burak Yiğit Kaya: https://github.com/BYK - var _react = __webpack_require__(1); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _react2 = _interopRequireDefault(_react); + //! moment.js locale configuration - var _src = __webpack_require__(270); + var suffixes = { + 1: "'inci", + 5: "'inci", + 8: "'inci", + 70: "'inci", + 80: "'inci", + 2: "'nci", + 7: "'nci", + 20: "'nci", + 50: "'nci", + 3: "'üncü", + 4: "'üncü", + 100: "'üncü", + 6: "'ncı", + 9: "'uncu", + 10: "'uncu", + 30: "'uncu", + 60: "'ıncı", + 90: "'ıncı", + }; - var _src2 = _interopRequireDefault(_src); + var tr = moment.defineLocale('tr', { + months: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split( + '_' + ), + monthsShort: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'), + weekdays: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split( + '_' + ), + weekdaysShort: 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'), + weekdaysMin: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'), + meridiem: function (hours, minutes, isLower) { + if (hours < 12) { + return isLower ? 'öö' : 'ÖÖ'; + } else { + return isLower ? 'ös' : 'ÖS'; + } + }, + meridiemParse: /öö|ÖÖ|ös|ÖS/, + isPM: function (input) { + return input === 'ös' || input === 'ÖS'; + }, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[bugün saat] LT', + nextDay: '[yarın saat] LT', + nextWeek: '[gelecek] dddd [saat] LT', + lastDay: '[dün] LT', + lastWeek: '[geçen] dddd [saat] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s sonra', + past: '%s önce', + s: 'birkaç saniye', + ss: '%d saniye', + m: 'bir dakika', + mm: '%d dakika', + h: 'bir saat', + hh: '%d saat', + d: 'bir gün', + dd: '%d gün', + M: 'bir ay', + MM: '%d ay', + y: 'bir yıl', + yy: '%d yıl', + }, + ordinal: function (number, period) { + switch (period) { + case 'd': + case 'D': + case 'Do': + case 'DD': + return number; + default: + if (number === 0) { + // special case for zero + return number + "'ıncı"; + } + var a = number % 10, + b = (number % 100) - a, + c = number >= 100 ? 100 : null; + return number + (suffixes[a] || suffixes[b] || suffixes[c]); + } + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, + }); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + return tr; - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + }))); + + +/***/ }), +/* 543 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Talossan [tzl] + //! author : Robin van der Vliet : https://github.com/robin0van0der0v + //! author : Iustì Canun - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + //! moment.js locale configuration - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** - * - * @title 基本表格 - * @parent 基础 Basic - * @description 当单元格内容过多时,会自动显示省略号,鼠标hover有提示。showRowNum 设置是否显示序号列。 - * demo0101 - */ + // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals. + // This is currently too difficult (maybe even impossible) to add. + var tzl = moment.defineLocale('tzl', { + months: 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split( + '_' + ), + monthsShort: 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'), + weekdays: 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'), + weekdaysShort: 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'), + weekdaysMin: 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'), + longDateFormat: { + LT: 'HH.mm', + LTS: 'HH.mm.ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM [dallas] YYYY', + LLL: 'D. MMMM [dallas] YYYY HH.mm', + LLLL: 'dddd, [li] D. MMMM [dallas] YYYY HH.mm', + }, + meridiemParse: /d\'o|d\'a/i, + isPM: function (input) { + return "d'o" === input.toLowerCase(); + }, + meridiem: function (hours, minutes, isLower) { + if (hours > 11) { + return isLower ? "d'o" : "D'O"; + } else { + return isLower ? "d'a" : "D'A"; + } + }, + calendar: { + sameDay: '[oxhi à] LT', + nextDay: '[demà à] LT', + nextWeek: 'dddd [à] LT', + lastDay: '[ieiri à] LT', + lastWeek: '[sür el] dddd [lasteu à] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'osprei %s', + past: 'ja%s', + s: processRelativeTime, + ss: processRelativeTime, + m: processRelativeTime, + mm: processRelativeTime, + h: processRelativeTime, + hh: processRelativeTime, + d: processRelativeTime, + dd: processRelativeTime, + M: processRelativeTime, + MM: processRelativeTime, + y: processRelativeTime, + yy: processRelativeTime, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - var columns = [{ title: "员工编号", dataIndex: "a", key: "a", width: 150 }, { title: "员工姓名", dataIndex: "b", key: "b", width: 100 }, { title: "性别", dataIndex: "c", key: "c", width: 100 }, { title: "部门", dataIndex: "d", key: "d", width: 100 }, { title: "职级", dataIndex: "e", key: "e", width: 100 }]; + function processRelativeTime(number, withoutSuffix, key, isFuture) { + var format = { + s: ['viensas secunds', "'iensas secunds"], + ss: [number + ' secunds', '' + number + ' secunds'], + m: ["'n míut", "'iens míut"], + mm: [number + ' míuts', '' + number + ' míuts'], + h: ["'n þora", "'iensa þora"], + hh: [number + ' þoras', '' + number + ' þoras'], + d: ["'n ziua", "'iensa ziua"], + dd: [number + ' ziuas', '' + number + ' ziuas'], + M: ["'n mes", "'iens mes"], + MM: [number + ' mesen', '' + number + ' mesen'], + y: ["'n ar", "'iens ar"], + yy: [number + ' ars', '' + number + ' ars'], + }; + return isFuture + ? format[key][0] + : withoutSuffix + ? format[key][0] + : format[key][1]; + } - var data = [{ a: "ASVAL_20190328", b: "小张", c: "男", d: "财务二科", e: "M1", key: "1" }, { a: "ASVAL_20190320", b: "小明", c: "男", d: "财务一科", e: "T1", key: "2" }, { a: "ASVAL_20190312", b: "小红", c: "女", d: "财务一科", e: "T2", key: "3" }]; + return tzl; - var Demo0101 = function (_Component) { - _inherits(Demo0101, _Component); + }))); + + +/***/ }), +/* 544 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Central Atlas Tamazight [tzm] + //! author : Abdel Said : https://github.com/abdelsaid - function Demo0101() { - _classCallCheck(this, Demo0101); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + //! moment.js locale configuration - Demo0101.prototype.render = function render() { - return _react2["default"].createElement(_src2["default"], { - columns: columns, - data: data, - showRowNum: true + var tzm = moment.defineLocale('tzm', { + months: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split( + '_' + ), + monthsShort: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split( + '_' + ), + weekdays: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'), + weekdaysShort: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'), + weekdaysMin: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[ⴰⵙⴷⵅ ⴴ] LT', + nextDay: '[ⴰⵙⴽⴰ ⴴ] LT', + nextWeek: 'dddd [ⴴ] LT', + lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT', + lastWeek: 'dddd [ⴴ] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s', + past: 'ⵢⴰⵏ %s', + s: 'ⵉⵎⵉⴽ', + ss: '%d ⵉⵎⵉⴽ', + m: 'ⵎⵉⵏⵓⴺ', + mm: '%d ⵎⵉⵏⵓⴺ', + h: 'ⵙⴰⵄⴰ', + hh: '%d ⵜⴰⵙⵙⴰⵄⵉⵏ', + d: 'ⴰⵙⵙ', + dd: '%d oⵙⵙⴰⵏ', + M: 'ⴰⵢoⵓⵔ', + MM: '%d ⵉⵢⵢⵉⵔⵏ', + y: 'ⴰⵙⴳⴰⵙ', + yy: '%d ⵉⵙⴳⴰⵙⵏ', + }, + week: { + dow: 6, // Saturday is the first day of the week. + doy: 12, // The week that contains Jan 12th is the first week of the year. + }, }); - }; - return Demo0101; - }(_react.Component); + return tzm; - exports["default"] = Demo0101; - module.exports = exports["default"]; + }))); + /***/ }), -/* 607 */ +/* 545 */ /***/ (function(module, exports, __webpack_require__) { - 'use strict'; + //! moment.js locale configuration + //! locale : Central Atlas Tamazight Latin [tzm-latn] + //! author : Abdel Said : https://github.com/abdelsaid - Object.defineProperty(exports, "__esModule", { - value: true - }); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _react = __webpack_require__(1); + //! moment.js locale configuration - var _react2 = _interopRequireDefault(_react); + var tzmLatn = moment.defineLocale('tzm-latn', { + months: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split( + '_' + ), + monthsShort: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split( + '_' + ), + weekdays: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'), + weekdaysShort: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'), + weekdaysMin: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[asdkh g] LT', + nextDay: '[aska g] LT', + nextWeek: 'dddd [g] LT', + lastDay: '[assant g] LT', + lastWeek: 'dddd [g] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'dadkh s yan %s', + past: 'yan %s', + s: 'imik', + ss: '%d imik', + m: 'minuḍ', + mm: '%d minuḍ', + h: 'saɛa', + hh: '%d tassaɛin', + d: 'ass', + dd: '%d ossan', + M: 'ayowr', + MM: '%d iyyirn', + y: 'asgas', + yy: '%d isgasn', + }, + week: { + dow: 6, // Saturday is the first day of the week. + doy: 12, // The week that contains Jan 12th is the first week of the year. + }, + }); - var _src = __webpack_require__(270); + return tzmLatn; - var _src2 = _interopRequireDefault(_src); + }))); + + +/***/ }), +/* 546 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js language configuration + //! locale : Uyghur (China) [ug-cn] + //! author: boyaq : https://github.com/boyaq - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + //! moment.js language configuration - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + var ugCn = moment.defineLocale('ug-cn', { + months: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split( + '_' + ), + monthsShort: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split( + '_' + ), + weekdays: 'يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە'.split( + '_' + ), + weekdaysShort: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'), + weekdaysMin: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY-MM-DD', + LL: 'YYYY-يىلىM-ئاينىڭD-كۈنى', + LLL: 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm', + LLLL: 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm', + }, + meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if ( + meridiem === 'يېرىم كېچە' || + meridiem === 'سەھەر' || + meridiem === 'چۈشتىن بۇرۇن' + ) { + return hour; + } else if (meridiem === 'چۈشتىن كېيىن' || meridiem === 'كەچ') { + return hour + 12; + } else { + return hour >= 11 ? hour : hour + 12; + } + }, + meridiem: function (hour, minute, isLower) { + var hm = hour * 100 + minute; + if (hm < 600) { + return 'يېرىم كېچە'; + } else if (hm < 900) { + return 'سەھەر'; + } else if (hm < 1130) { + return 'چۈشتىن بۇرۇن'; + } else if (hm < 1230) { + return 'چۈش'; + } else if (hm < 1800) { + return 'چۈشتىن كېيىن'; + } else { + return 'كەچ'; + } + }, + calendar: { + sameDay: '[بۈگۈن سائەت] LT', + nextDay: '[ئەتە سائەت] LT', + nextWeek: '[كېلەركى] dddd [سائەت] LT', + lastDay: '[تۆنۈگۈن] LT', + lastWeek: '[ئالدىنقى] dddd [سائەت] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s كېيىن', + past: '%s بۇرۇن', + s: 'نەچچە سېكونت', + ss: '%d سېكونت', + m: 'بىر مىنۇت', + mm: '%d مىنۇت', + h: 'بىر سائەت', + hh: '%d سائەت', + d: 'بىر كۈن', + dd: '%d كۈن', + M: 'بىر ئاي', + MM: '%d ئاي', + y: 'بىر يىل', + yy: '%d يىل', + }, - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + dayOfMonthOrdinalParse: /\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/, + ordinal: function (number, period) { + switch (period) { + case 'd': + case 'D': + case 'DDD': + return number + '-كۈنى'; + case 'w': + case 'W': + return number + '-ھەپتە'; + default: + return number; + } + }, + preparse: function (string) { + return string.replace(/،/g, ','); + }, + postformat: function (string) { + return string.replace(/,/g, '،'); + }, + week: { + // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效 + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 1st is the first week of the year. + }, + }); - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** - * - * @title 默认无数据展示 - * @parent 基础 Basic - * @description 无数据时默认展示图标,可在`emptyText`方法中自定义展示内容。 - * demo0102 - */ + return ugCn; - var columns = [{ - title: "员工编号", - dataIndex: "num", - key: "num", - width: "40%" - }, { - title: "员工姓名", - dataIndex: "name", - key: "name", - width: "30%" - }, { - title: "部门", - dataIndex: "department", - key: "department" - }]; + }))); + + +/***/ }), +/* 547 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Ukrainian [uk] + //! author : zemlanin : https://github.com/zemlanin + //! Author : Menelion Elensúle : https://github.com/Oire - var data = []; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - // 在此自定义无数据时的展示内容 - var emptyFunc = function emptyFunc() { - return 'No Data'; - }; + //! moment.js locale configuration - var Demo02 = function (_Component) { - _inherits(Demo02, _Component); + function plural(word, num) { + var forms = word.split('_'); + return num % 10 === 1 && num % 100 !== 11 + ? forms[0] + : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) + ? forms[1] + : forms[2]; + } + function relativeTimeWithPlural(number, withoutSuffix, key) { + var format = { + ss: withoutSuffix ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд', + mm: withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин', + hh: withoutSuffix ? 'година_години_годин' : 'годину_години_годин', + dd: 'день_дні_днів', + MM: 'місяць_місяці_місяців', + yy: 'рік_роки_років', + }; + if (key === 'm') { + return withoutSuffix ? 'хвилина' : 'хвилину'; + } else if (key === 'h') { + return withoutSuffix ? 'година' : 'годину'; + } else { + return number + ' ' + plural(format[key], +number); + } + } + function weekdaysCaseReplace(m, format) { + var weekdays = { + nominative: 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split( + '_' + ), + accusative: 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split( + '_' + ), + genitive: 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split( + '_' + ), + }, + nounCase; - function Demo02() { - _classCallCheck(this, Demo02); + if (m === true) { + return weekdays['nominative'] + .slice(1, 7) + .concat(weekdays['nominative'].slice(0, 1)); + } + if (!m) { + return weekdays['nominative']; + } - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + nounCase = /(\[[ВвУу]\]) ?dddd/.test(format) + ? 'accusative' + : /\[?(?:минулої|наступної)? ?\] ?dddd/.test(format) + ? 'genitive' + : 'nominative'; + return weekdays[nounCase][m.day()]; + } + function processHoursFunction(str) { + return function () { + return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT'; + }; + } - Demo02.prototype.render = function render() { - return _react2['default'].createElement(_src2['default'], { - columns: columns, - data: data - // emptyText={emptyFunc} + var uk = moment.defineLocale('uk', { + months: { + format: 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split( + '_' + ), + standalone: 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split( + '_' + ), + }, + monthsShort: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split( + '_' + ), + weekdays: weekdaysCaseReplace, + weekdaysShort: 'нд_пн_вт_ср_чт_пт_сб'.split('_'), + weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY р.', + LLL: 'D MMMM YYYY р., HH:mm', + LLLL: 'dddd, D MMMM YYYY р., HH:mm', + }, + calendar: { + sameDay: processHoursFunction('[Сьогодні '), + nextDay: processHoursFunction('[Завтра '), + lastDay: processHoursFunction('[Вчора '), + nextWeek: processHoursFunction('[У] dddd ['), + lastWeek: function () { + switch (this.day()) { + case 0: + case 3: + case 5: + case 6: + return processHoursFunction('[Минулої] dddd [').call(this); + case 1: + case 2: + case 4: + return processHoursFunction('[Минулого] dddd [').call(this); + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'за %s', + past: '%s тому', + s: 'декілька секунд', + ss: relativeTimeWithPlural, + m: relativeTimeWithPlural, + mm: relativeTimeWithPlural, + h: 'годину', + hh: relativeTimeWithPlural, + d: 'день', + dd: relativeTimeWithPlural, + M: 'місяць', + MM: relativeTimeWithPlural, + y: 'рік', + yy: relativeTimeWithPlural, + }, + // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason + meridiemParse: /ночі|ранку|дня|вечора/, + isPM: function (input) { + return /^(дня|вечора)$/.test(input); + }, + meridiem: function (hour, minute, isLower) { + if (hour < 4) { + return 'ночі'; + } else if (hour < 12) { + return 'ранку'; + } else if (hour < 17) { + return 'дня'; + } else { + return 'вечора'; + } + }, + dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/, + ordinal: function (number, period) { + switch (period) { + case 'M': + case 'd': + case 'DDD': + case 'w': + case 'W': + return number + '-й'; + case 'D': + return number + '-го'; + default: + return number; + } + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, }); - }; - return Demo02; - }(_react.Component); + return uk; - exports['default'] = Demo02; - module.exports = exports['default']; + }))); + /***/ }), -/* 608 */ +/* 548 */ /***/ (function(module, exports, __webpack_require__) { - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _src = __webpack_require__(270); - - var _src2 = _interopRequireDefault(_src); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + //! moment.js locale configuration + //! locale : Urdu [ur] + //! author : Sawood Alam : https://github.com/ibnesayeed + //! author : Zack : https://github.com/ZackVision - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + //! moment.js locale configuration - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** - * - * @title 固定表头 - * @parent 基础 Basic - * @description 设置`scroll.y`指定滚动区域的高度,达到固定表头效果。 - * demo0103 - */ + var months = [ + 'جنوری', + 'فروری', + 'مارچ', + 'اپریل', + 'مئی', + 'جون', + 'جولائی', + 'اگست', + 'ستمبر', + 'اکتوبر', + 'نومبر', + 'دسمبر', + ], + days = ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ']; - var columns03 = [{ - title: "序号", - dataIndex: "index", - key: "index", - width: 80, - render: function render(text, record, index) { - return index + 1; - } - }, { - title: "订单编号", - dataIndex: "orderCode", - key: "orderCode", - width: 200 - }, { - title: "供应商名称", - dataIndex: "supplierName", - key: "supplierName", - width: 200 - }, { - title: "类型", - dataIndex: "type_name", - key: "type_name", - width: 200 - }, { - title: "采购组织", - dataIndex: "purchasing", - key: "purchasing", - width: 200 - }, { - title: "采购组", - dataIndex: "purchasingGroup", - key: "purchasingGroup", - width: 200 - }, { - title: "凭证日期", - dataIndex: "voucherDate", - key: "voucherDate", - width: 200 - }]; + var ur = moment.defineLocale('ur', { + months: months, + monthsShort: months, + weekdays: days, + weekdaysShort: days, + weekdaysMin: days, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd، D MMMM YYYY HH:mm', + }, + meridiemParse: /صبح|شام/, + isPM: function (input) { + return 'شام' === input; + }, + meridiem: function (hour, minute, isLower) { + if (hour < 12) { + return 'صبح'; + } + return 'شام'; + }, + calendar: { + sameDay: '[آج بوقت] LT', + nextDay: '[کل بوقت] LT', + nextWeek: 'dddd [بوقت] LT', + lastDay: '[گذشتہ روز بوقت] LT', + lastWeek: '[گذشتہ] dddd [بوقت] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s بعد', + past: '%s قبل', + s: 'چند سیکنڈ', + ss: '%d سیکنڈ', + m: 'ایک منٹ', + mm: '%d منٹ', + h: 'ایک گھنٹہ', + hh: '%d گھنٹے', + d: 'ایک دن', + dd: '%d دن', + M: 'ایک ماہ', + MM: '%d ماہ', + y: 'ایک سال', + yy: '%d سال', + }, + preparse: function (string) { + return string.replace(/،/g, ','); + }, + postformat: function (string) { + return string.replace(/,/g, '،'); + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - var data03 = [{ - orderCode: "NU0391025", - supplierName: "xx供应商", - type_name: "1", - purchasing: '组织c', - purchasingGroup: "aa", - voucherDate: "2018年03月18日", - key: "1" - }, { - orderCode: "NU0391026", - supplierName: "xx供应商", - type_name: "2", - purchasing: '组织a', - purchasingGroup: "bb", - voucherDate: "2018年02月05日", - key: "2" - }, { - orderCode: "NU0391027", - supplierName: "xx供应商", - type_name: "3", - purchasing: '组织b', - purchasingGroup: "aa", - voucherDate: "2018年07月01日", - key: "3" - }, { - orderCode: "NU0391028", - supplierName: "xx供应商", - type_name: "4", - purchasing: '组织c', - purchasingGroup: "cc", - voucherDate: "2019年03月01日", - key: "4" - }, { - orderCode: "NU0391029", - supplierName: "xx供应商", - type_name: "5", - purchasing: '组织d', - purchasingGroup: "ss", - voucherDate: "2019年02月14日", - key: "5" - }, { - orderCode: "NU0391030", - supplierName: "xx供应商", - type_name: "1", - purchasing: '组织e', - purchasingGroup: "zz", - voucherDate: "2019年02月18日", - key: "6" - }, { - orderCode: "NU0391031", - supplierName: "xx供应商", - type_name: "2", - purchasing: '组织f', - purchasingGroup: "qq", - voucherDate: "2019年01月01日", - key: "7" - }, { - orderCode: "NU0391032", - supplierName: "xx供应商", - type_name: "3", - purchasing: '组织g', - purchasingGroup: "pp", - voucherDate: "2019年01月31日", - key: "8" - }]; + return ur; - var Demo03 = function (_Component) { - _inherits(Demo03, _Component); + }))); + + +/***/ }), +/* 549 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Uzbek [uz] + //! author : Sardor Muminov : https://github.com/muminoff - function Demo03() { - _classCallCheck(this, Demo03); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + //! moment.js locale configuration - Demo03.prototype.render = function render() { - return _react2['default'].createElement(_src2['default'], { columns: columns03, data: data03, scroll: { y: 150 } }); - }; + var uz = moment.defineLocale('uz', { + months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split( + '_' + ), + monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'), + weekdays: 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'), + weekdaysShort: 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'), + weekdaysMin: 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'D MMMM YYYY, dddd HH:mm', + }, + calendar: { + sameDay: '[Бугун соат] LT [да]', + nextDay: '[Эртага] LT [да]', + nextWeek: 'dddd [куни соат] LT [да]', + lastDay: '[Кеча соат] LT [да]', + lastWeek: '[Утган] dddd [куни соат] LT [да]', + sameElse: 'L', + }, + relativeTime: { + future: 'Якин %s ичида', + past: 'Бир неча %s олдин', + s: 'фурсат', + ss: '%d фурсат', + m: 'бир дакика', + mm: '%d дакика', + h: 'бир соат', + hh: '%d соат', + d: 'бир кун', + dd: '%d кун', + M: 'бир ой', + MM: '%d ой', + y: 'бир йил', + yy: '%d йил', + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 4th is the first week of the year. + }, + }); - return Demo03; - }(_react.Component); + return uz; - exports['default'] = Demo03; - module.exports = exports['default']; + }))); + /***/ }), -/* 609 */ +/* 550 */ /***/ (function(module, exports, __webpack_require__) { - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); + //! moment.js locale configuration + //! locale : Uzbek Latin [uz-latn] + //! author : Rasulbek Mirzayev : github.com/Rasulbeeek - var _src = __webpack_require__(270); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _src2 = _interopRequireDefault(_src); + //! moment.js locale configuration - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + var uzLatn = moment.defineLocale('uz-latn', { + months: 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split( + '_' + ), + monthsShort: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'), + weekdays: 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split( + '_' + ), + weekdaysShort: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'), + weekdaysMin: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'D MMMM YYYY, dddd HH:mm', + }, + calendar: { + sameDay: '[Bugun soat] LT [da]', + nextDay: '[Ertaga] LT [da]', + nextWeek: 'dddd [kuni soat] LT [da]', + lastDay: '[Kecha soat] LT [da]', + lastWeek: "[O'tgan] dddd [kuni soat] LT [da]", + sameElse: 'L', + }, + relativeTime: { + future: 'Yaqin %s ichida', + past: 'Bir necha %s oldin', + s: 'soniya', + ss: '%d soniya', + m: 'bir daqiqa', + mm: '%d daqiqa', + h: 'bir soat', + hh: '%d soat', + d: 'bir kun', + dd: '%d kun', + M: 'bir oy', + MM: '%d oy', + y: 'bir yil', + yy: '%d yil', + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, + }); - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + return uzLatn; - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + }))); + + +/***/ }), +/* 551 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Vietnamese [vi] + //! author : Bang Nguyen : https://github.com/bangnk + //! author : Chien Kira : https://github.com/chienkira - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** - * - * @title 隔行换色 - * @parent 基础 Basic - * @description 可自定义斑马线颜色 - * demo0104 - */ + //! moment.js locale configuration - var columns04 = [{ title: "序号", dataIndex: "index", key: "index", width: 80, - render: function render(text, record, index) { - return index + 1; - } - }, { title: "订单编号", dataIndex: "orderCode", key: "orderCode", width: 200 }, { title: "供应商名称", dataIndex: "supplierName", key: "supplierName", width: 200 }, { title: "类型", dataIndex: "type_name", key: "type_name", width: 200 }, { title: "采购组织", dataIndex: "purchasing", key: "purchasing", width: 200 }, { title: "采购组", dataIndex: "purchasingGroup", key: "purchasingGroup", width: 200 }, { title: "凭证日期", dataIndex: "voucherDate", key: "voucherDate", width: 200 }]; + var vi = moment.defineLocale('vi', { + months: 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split( + '_' + ), + monthsShort: 'Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split( + '_' + ), + weekdaysShort: 'CN_T2_T3_T4_T5_T6_T7'.split('_'), + weekdaysMin: 'CN_T2_T3_T4_T5_T6_T7'.split('_'), + weekdaysParseExact: true, + meridiemParse: /sa|ch/i, + isPM: function (input) { + return /^ch$/i.test(input); + }, + meridiem: function (hours, minutes, isLower) { + if (hours < 12) { + return isLower ? 'sa' : 'SA'; + } else { + return isLower ? 'ch' : 'CH'; + } + }, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM [năm] YYYY', + LLL: 'D MMMM [năm] YYYY HH:mm', + LLLL: 'dddd, D MMMM [năm] YYYY HH:mm', + l: 'DD/M/YYYY', + ll: 'D MMM YYYY', + lll: 'D MMM YYYY HH:mm', + llll: 'ddd, D MMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Hôm nay lúc] LT', + nextDay: '[Ngày mai lúc] LT', + nextWeek: 'dddd [tuần tới lúc] LT', + lastDay: '[Hôm qua lúc] LT', + lastWeek: 'dddd [tuần trước lúc] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s tới', + past: '%s trước', + s: 'vài giây', + ss: '%d giây', + m: 'một phút', + mm: '%d phút', + h: 'một giờ', + hh: '%d giờ', + d: 'một ngày', + dd: '%d ngày', + M: 'một tháng', + MM: '%d tháng', + y: 'một năm', + yy: '%d năm', + }, + dayOfMonthOrdinalParse: /\d{1,2}/, + ordinal: function (number) { + return number; + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - var data04 = [{ - orderCode: "NU0391025", - supplierName: "xx供应商", - type_name: "1", - purchasing: '组织c', - purchasingGroup: "aa", - voucherDate: "2018年03月18日", - key: "1" - }, { - orderCode: "NU0391026", - supplierName: "xx供应商", - type_name: "2", - purchasing: '组织a', - purchasingGroup: "bb", - voucherDate: "2018年02月05日", - key: "2" - }, { - orderCode: "NU0391027", - supplierName: "xx供应商", - type_name: "3", - purchasing: '组织b', - purchasingGroup: "aa", - voucherDate: "2018年07月01日", - key: "3" - }, { - orderCode: "NU0391028", - supplierName: "xx供应商", - type_name: "4", - purchasing: '组织c', - purchasingGroup: "cc", - voucherDate: "2019年03月01日", - key: "4" - }, { - orderCode: "NU0391029", - supplierName: "xx供应商", - type_name: "5", - purchasing: '组织d', - purchasingGroup: "ss", - voucherDate: "2019年02月14日", - key: "5" - }, { - orderCode: "NU0391030", - supplierName: "xx供应商", - type_name: "1", - purchasing: '组织e', - purchasingGroup: "zz", - voucherDate: "2019年02月18日", - key: "6" - }, { - orderCode: "NU0391031", - supplierName: "xx供应商", - type_name: "2", - purchasing: '组织f', - purchasingGroup: "qq", - voucherDate: "2019年01月01日", - key: "7" - }, { - orderCode: "NU0391032", - supplierName: "xx供应商", - type_name: "3", - purchasing: '组织g', - purchasingGroup: "pp", - voucherDate: "2019年01月31日", - key: "8" - }]; + return vi; - var Demo04 = function (_Component) { - _inherits(Demo04, _Component); + }))); + + +/***/ }), +/* 552 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Pseudo [x-pseudo] + //! author : Andrew Hood : https://github.com/andrewhood125 - function Demo04() { - _classCallCheck(this, Demo04); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + //! moment.js locale configuration - Demo04.prototype.render = function render() { - return _react2['default'].createElement(_src2['default'], { - className: 'demo04', - columns: columns04, - data: data04 }); - }; + var xPseudo = moment.defineLocale('x-pseudo', { + months: 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split( + '_' + ), + monthsShort: 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split( + '_' + ), + weekdaysShort: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'), + weekdaysMin: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[T~ódá~ý át] LT', + nextDay: '[T~ómó~rró~w át] LT', + nextWeek: 'dddd [át] LT', + lastDay: '[Ý~ést~érdá~ý át] LT', + lastWeek: '[L~ást] dddd [át] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'í~ñ %s', + past: '%s á~gó', + s: 'á ~féw ~sécó~ñds', + ss: '%d s~écóñ~ds', + m: 'á ~míñ~úté', + mm: '%d m~íñú~tés', + h: 'á~ñ hó~úr', + hh: '%d h~óúrs', + d: 'á ~dáý', + dd: '%d d~áýs', + M: 'á ~móñ~th', + MM: '%d m~óñt~hs', + y: 'á ~ýéár', + yy: '%d ý~éárs', + }, + dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, + ordinal: function (number) { + var b = number % 10, + output = + ~~((number % 100) / 10) === 1 + ? 'th' + : b === 1 + ? 'st' + : b === 2 + ? 'nd' + : b === 3 + ? 'rd' + : 'th'; + return number + output; + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - return Demo04; - }(_react.Component); + return xPseudo; - exports['default'] = Demo04; - module.exports = exports['default']; + }))); + /***/ }), -/* 610 */ +/* 553 */ /***/ (function(module, exports, __webpack_require__) { - "use strict"; - - Object.defineProperty(exports, "__esModule", { - value: true - }); + //! moment.js locale configuration + //! locale : Yoruba Nigeria [yo] + //! author : Atolagbe Abisoye : https://github.com/andela-batolagbe - var _react = __webpack_require__(1); + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _react2 = _interopRequireDefault(_react); + //! moment.js locale configuration - var _src = __webpack_require__(270); + var yo = moment.defineLocale('yo', { + months: 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split( + '_' + ), + monthsShort: 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'), + weekdays: 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'), + weekdaysShort: 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'), + weekdaysMin: 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'), + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY h:mm A', + LLLL: 'dddd, D MMMM YYYY h:mm A', + }, + calendar: { + sameDay: '[Ònì ni] LT', + nextDay: '[Ọ̀la ni] LT', + nextWeek: "dddd [Ọsẹ̀ tón'bọ] [ni] LT", + lastDay: '[Àna ni] LT', + lastWeek: 'dddd [Ọsẹ̀ tólọ́] [ni] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'ní %s', + past: '%s kọjá', + s: 'ìsẹjú aayá die', + ss: 'aayá %d', + m: 'ìsẹjú kan', + mm: 'ìsẹjú %d', + h: 'wákati kan', + hh: 'wákati %d', + d: 'ọjọ́ kan', + dd: 'ọjọ́ %d', + M: 'osù kan', + MM: 'osù %d', + y: 'ọdún kan', + yy: 'ọdún %d', + }, + dayOfMonthOrdinalParse: /ọjọ́\s\d{1,2}/, + ordinal: 'ọjọ́ %d', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - var _src2 = _interopRequireDefault(_src); + return yo; - var _tinperBee = __webpack_require__(611); + }))); + + +/***/ }), +/* 554 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Chinese (China) [zh-cn] + //! author : suupic : https://github.com/suupic + //! author : Zeno Zeng : https://github.com/zenozeng + //! author : uu109 : https://github.com/uu109 - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + //! moment.js locale configuration - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + var zhCn = moment.defineLocale('zh-cn', { + months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split( + '_' + ), + monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split( + '_' + ), + weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), + weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'), + weekdaysMin: '日_一_二_三_四_五_六'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY/MM/DD', + LL: 'YYYY年M月D日', + LLL: 'YYYY年M月D日Ah点mm分', + LLLL: 'YYYY年M月D日ddddAh点mm分', + l: 'YYYY/M/D', + ll: 'YYYY年M月D日', + lll: 'YYYY年M月D日 HH:mm', + llll: 'YYYY年M月D日dddd HH:mm', + }, + meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') { + return hour; + } else if (meridiem === '下午' || meridiem === '晚上') { + return hour + 12; + } else { + // '中午' + return hour >= 11 ? hour : hour + 12; + } + }, + meridiem: function (hour, minute, isLower) { + var hm = hour * 100 + minute; + if (hm < 600) { + return '凌晨'; + } else if (hm < 900) { + return '早上'; + } else if (hm < 1130) { + return '上午'; + } else if (hm < 1230) { + return '中午'; + } else if (hm < 1800) { + return '下午'; + } else { + return '晚上'; + } + }, + calendar: { + sameDay: '[今天]LT', + nextDay: '[明天]LT', + nextWeek: function (now) { + if (now.week() !== this.week()) { + return '[下]dddLT'; + } else { + return '[本]dddLT'; + } + }, + lastDay: '[昨天]LT', + lastWeek: function (now) { + if (this.week() !== now.week()) { + return '[上]dddLT'; + } else { + return '[本]dddLT'; + } + }, + sameElse: 'L', + }, + dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/, + ordinal: function (number, period) { + switch (period) { + case 'd': + case 'D': + case 'DDD': + return number + '日'; + case 'M': + return number + '月'; + case 'w': + case 'W': + return number + '周'; + default: + return number; + } + }, + relativeTime: { + future: '%s后', + past: '%s前', + s: '几秒', + ss: '%d 秒', + m: '1 分钟', + mm: '%d 分钟', + h: '1 小时', + hh: '%d 小时', + d: '1 天', + dd: '%d 天', + M: '1 个月', + MM: '%d 个月', + y: '1 年', + yy: '%d 年', + }, + week: { + // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效 + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + return zhCn; - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** - * - * @title 表格 Loading 加载 - * @parent 基础 Basic - * @description loading可以传boolean或者object对象,object为bee-loading组件的参数类型 - * demo0105 - */ + }))); + + +/***/ }), +/* 555 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Chinese (Hong Kong) [zh-hk] + //! author : Ben : https://github.com/ben-lin + //! author : Chris Lam : https://github.com/hehachris + //! author : Konstantin : https://github.com/skfd + //! author : Anthony : https://github.com/anthonylau - var columns05 = [{ title: "员工编号", dataIndex: "a", key: "a", width: 300, className: "rowClassName", fixed: 'left' }, { title: "员工姓名", dataIndex: "b", key: "b", width: 500 }, { title: "性别", dataIndex: "c", key: "c", width: 500 }, { title: "部门", dataIndex: "d", key: "d", width: 200 }]; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var data05 = [{ a: "ASVAL_201903280005", b: "小张", c: "男", d: "财务二科", key: "1" }, { a: "ASVAL_201903200004", b: "小明", c: "男", d: "财务一科", key: "2" }, { a: "ASVAL_201903120002", b: "小红", c: "女", d: "财务一科", key: "3" }]; + //! moment.js locale configuration - var Demo05 = function (_Component) { - _inherits(Demo05, _Component); + var zhHk = moment.defineLocale('zh-hk', { + months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split( + '_' + ), + monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split( + '_' + ), + weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), + weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'), + weekdaysMin: '日_一_二_三_四_五_六'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY/MM/DD', + LL: 'YYYY年M月D日', + LLL: 'YYYY年M月D日 HH:mm', + LLLL: 'YYYY年M月D日dddd HH:mm', + l: 'YYYY/M/D', + ll: 'YYYY年M月D日', + lll: 'YYYY年M月D日 HH:mm', + llll: 'YYYY年M月D日dddd HH:mm', + }, + meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') { + return hour; + } else if (meridiem === '中午') { + return hour >= 11 ? hour : hour + 12; + } else if (meridiem === '下午' || meridiem === '晚上') { + return hour + 12; + } + }, + meridiem: function (hour, minute, isLower) { + var hm = hour * 100 + minute; + if (hm < 600) { + return '凌晨'; + } else if (hm < 900) { + return '早上'; + } else if (hm < 1200) { + return '上午'; + } else if (hm === 1200) { + return '中午'; + } else if (hm < 1800) { + return '下午'; + } else { + return '晚上'; + } + }, + calendar: { + sameDay: '[今天]LT', + nextDay: '[明天]LT', + nextWeek: '[下]ddddLT', + lastDay: '[昨天]LT', + lastWeek: '[上]ddddLT', + sameElse: 'L', + }, + dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/, + ordinal: function (number, period) { + switch (period) { + case 'd': + case 'D': + case 'DDD': + return number + '日'; + case 'M': + return number + '月'; + case 'w': + case 'W': + return number + '週'; + default: + return number; + } + }, + relativeTime: { + future: '%s後', + past: '%s前', + s: '幾秒', + ss: '%d 秒', + m: '1 分鐘', + mm: '%d 分鐘', + h: '1 小時', + hh: '%d 小時', + d: '1 天', + dd: '%d 天', + M: '1 個月', + MM: '%d 個月', + y: '1 年', + yy: '%d 年', + }, + }); - function Demo05(props) { - _classCallCheck(this, Demo05); + return zhHk; - var _this = _possibleConstructorReturn(this, _Component.call(this, props)); + }))); + + +/***/ }), +/* 556 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Chinese (Macau) [zh-mo] + //! author : Ben : https://github.com/ben-lin + //! author : Chris Lam : https://github.com/hehachris + //! author : Tan Yuanhong : https://github.com/le0tan - _this.changeLoading = function () { - _this.setState({ - loading: !_this.state.loading - }); - }; + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - _this.state = { - loading: true - }; - return _this; - } + //! moment.js locale configuration - Demo05.prototype.render = function render() { - return _react2["default"].createElement( - "div", - null, - _react2["default"].createElement( - _tinperBee.Button, - { - className: "editable-add-btn", - onClick: this.changeLoading + var zhMo = moment.defineLocale('zh-mo', { + months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split( + '_' + ), + monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split( + '_' + ), + weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), + weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'), + weekdaysMin: '日_一_二_三_四_五_六'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'YYYY年M月D日', + LLL: 'YYYY年M月D日 HH:mm', + LLLL: 'YYYY年M月D日dddd HH:mm', + l: 'D/M/YYYY', + ll: 'YYYY年M月D日', + lll: 'YYYY年M月D日 HH:mm', + llll: 'YYYY年M月D日dddd HH:mm', }, - "\u5207\u6362loading" - ), - _react2["default"].createElement(_src2["default"], { - columns: columns05, - data: data05 - // loading={this.state.loading}或者是boolean - , loading: { show: this.state.loading } - }) - ); - }; + meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') { + return hour; + } else if (meridiem === '中午') { + return hour >= 11 ? hour : hour + 12; + } else if (meridiem === '下午' || meridiem === '晚上') { + return hour + 12; + } + }, + meridiem: function (hour, minute, isLower) { + var hm = hour * 100 + minute; + if (hm < 600) { + return '凌晨'; + } else if (hm < 900) { + return '早上'; + } else if (hm < 1130) { + return '上午'; + } else if (hm < 1230) { + return '中午'; + } else if (hm < 1800) { + return '下午'; + } else { + return '晚上'; + } + }, + calendar: { + sameDay: '[今天] LT', + nextDay: '[明天] LT', + nextWeek: '[下]dddd LT', + lastDay: '[昨天] LT', + lastWeek: '[上]dddd LT', + sameElse: 'L', + }, + dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/, + ordinal: function (number, period) { + switch (period) { + case 'd': + case 'D': + case 'DDD': + return number + '日'; + case 'M': + return number + '月'; + case 'w': + case 'W': + return number + '週'; + default: + return number; + } + }, + relativeTime: { + future: '%s內', + past: '%s前', + s: '幾秒', + ss: '%d 秒', + m: '1 分鐘', + mm: '%d 分鐘', + h: '1 小時', + hh: '%d 小時', + d: '1 天', + dd: '%d 天', + M: '1 個月', + MM: '%d 個月', + y: '1 年', + yy: '%d 年', + }, + }); - return Demo05; - }(_react.Component); + return zhMo; - exports["default"] = Demo05; - module.exports = exports["default"]; + }))); + /***/ }), -/* 611 */ +/* 557 */ /***/ (function(module, exports, __webpack_require__) { - /* WEBPACK VAR INJECTION */(function(process) {'use strict'; + //! moment.js locale configuration + //! locale : Chinese (Taiwan) [zh-tw] + //! author : Ben : https://github.com/ben-lin + //! author : Chris Lam : https://github.com/hehachris - if (process.env.NODE_ENV === 'production') { - module.exports = __webpack_require__(612); - } else { - module.exports = __webpack_require__(612); - } + ;(function (global, factory) { + true ? factory(__webpack_require__(423)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(33))) - -/***/ }), -/* 612 */ -/***/ (function(module, exports, __webpack_require__) { - - (function webpackUniversalModuleDefinition(root, factory) { - if(true) - module.exports = factory(__webpack_require__(1), __webpack_require__(6), __webpack_require__(2)); - else if(typeof define === 'function' && define.amd) - define(["react", "prop-types", "react-dom"], factory); - else if(typeof exports === 'object') - exports["TinperBee"] = factory(require("react"), require("prop-types"), require("react-dom")); - else - root["TinperBee"] = factory(root["React"], root["PropTypes"], root["ReactDOM"]); - })(typeof self !== 'undefined' ? self : this, function(__WEBPACK_EXTERNAL_MODULE_0__, __WEBPACK_EXTERNAL_MODULE_1__, __WEBPACK_EXTERNAL_MODULE_3__) { - return /******/ (function(modules) { // webpackBootstrap - /******/ // The module cache - /******/ var installedModules = {}; - /******/ - /******/ // The require function - /******/ function __webpack_require__(moduleId) { - /******/ - /******/ // Check if module is in cache - /******/ if(installedModules[moduleId]) { - /******/ return installedModules[moduleId].exports; - /******/ } - /******/ // Create a new module (and put it into the cache) - /******/ var module = installedModules[moduleId] = { - /******/ i: moduleId, - /******/ l: false, - /******/ exports: {} - /******/ }; - /******/ - /******/ // Execute the module function - /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); - /******/ - /******/ // Flag the module as loaded - /******/ module.l = true; - /******/ - /******/ // Return the exports of the module - /******/ return module.exports; - /******/ } - /******/ - /******/ - /******/ // expose the modules object (__webpack_modules__) - /******/ __webpack_require__.m = modules; - /******/ - /******/ // expose the module cache - /******/ __webpack_require__.c = installedModules; - /******/ - /******/ // define getter function for harmony exports - /******/ __webpack_require__.d = function(exports, name, getter) { - /******/ if(!__webpack_require__.o(exports, name)) { - /******/ Object.defineProperty(exports, name, { - /******/ configurable: false, - /******/ enumerable: true, - /******/ get: getter - /******/ }); - /******/ } - /******/ }; - /******/ - /******/ // getDefaultExport function for compatibility with non-harmony modules - /******/ __webpack_require__.n = function(module) { - /******/ var getter = module && module.__esModule ? - /******/ function getDefault() { return module['default']; } : - /******/ function getModuleExports() { return module; }; - /******/ __webpack_require__.d(getter, 'a', getter); - /******/ return getter; - /******/ }; - /******/ - /******/ // Object.prototype.hasOwnProperty.call - /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; - /******/ - /******/ // __webpack_public_path__ - /******/ __webpack_require__.p = ""; - /******/ - /******/ // Load entry module and return exports - /******/ return __webpack_require__(__webpack_require__.s = 542); - /******/ }) - /************************************************************************/ - /******/ ([ - /* 0 */ - /***/ (function(module, exports) { + //! moment.js locale configuration + + var zhTw = moment.defineLocale('zh-tw', { + months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split( + '_' + ), + monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split( + '_' + ), + weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), + weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'), + weekdaysMin: '日_一_二_三_四_五_六'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY/MM/DD', + LL: 'YYYY年M月D日', + LLL: 'YYYY年M月D日 HH:mm', + LLLL: 'YYYY年M月D日dddd HH:mm', + l: 'YYYY/M/D', + ll: 'YYYY年M月D日', + lll: 'YYYY年M月D日 HH:mm', + llll: 'YYYY年M月D日dddd HH:mm', + }, + meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') { + return hour; + } else if (meridiem === '中午') { + return hour >= 11 ? hour : hour + 12; + } else if (meridiem === '下午' || meridiem === '晚上') { + return hour + 12; + } + }, + meridiem: function (hour, minute, isLower) { + var hm = hour * 100 + minute; + if (hm < 600) { + return '凌晨'; + } else if (hm < 900) { + return '早上'; + } else if (hm < 1130) { + return '上午'; + } else if (hm < 1230) { + return '中午'; + } else if (hm < 1800) { + return '下午'; + } else { + return '晚上'; + } + }, + calendar: { + sameDay: '[今天] LT', + nextDay: '[明天] LT', + nextWeek: '[下]dddd LT', + lastDay: '[昨天] LT', + lastWeek: '[上]dddd LT', + sameElse: 'L', + }, + dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/, + ordinal: function (number, period) { + switch (period) { + case 'd': + case 'D': + case 'DDD': + return number + '日'; + case 'M': + return number + '月'; + case 'w': + case 'W': + return number + '週'; + default: + return number; + } + }, + relativeTime: { + future: '%s後', + past: '%s前', + s: '幾秒', + ss: '%d 秒', + m: '1 分鐘', + mm: '%d 分鐘', + h: '1 小時', + hh: '%d 小時', + d: '1 天', + dd: '%d 天', + M: '1 個月', + MM: '%d 個月', + y: '1 年', + yy: '%d 年', + }, + }); - module.exports = __WEBPACK_EXTERNAL_MODULE_0__; + return zhTw; - /***/ }), - /* 1 */ - /***/ (function(module, exports) { + }))); + + +/***/ }), +/* 558 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - module.exports = __WEBPACK_EXTERNAL_MODULE_1__; + Object.defineProperty(exports, "__esModule", { + value: true + }); - /***/ }), - /* 2 */ - /***/ (function(module, exports, __webpack_require__) { + var _react = __webpack_require__(1); - var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! - Copyright (c) 2017 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames - */ - /* global define */ + var _react2 = _interopRequireDefault(_react); - (function () { - 'use strict'; + var _propTypes = __webpack_require__(6); - var hasOwn = {}.hasOwnProperty; + var _propTypes2 = _interopRequireDefault(_propTypes); - function classNames () { - var classes = []; + var _classnames = __webpack_require__(5); - for (var i = 0; i < arguments.length; i++) { - var arg = arguments[i]; - if (!arg) continue; + var _classnames2 = _interopRequireDefault(_classnames); - var argType = typeof arg; + var _DateConstants = __webpack_require__(422); - if (argType === 'string' || argType === 'number') { - classes.push(arg); - } else if (Array.isArray(arg) && arg.length) { - var inner = classNames.apply(null, arg); - if (inner) { - classes.push(inner); - } - } else if (argType === 'object') { - for (var key in arg) { - if (hasOwn.call(arg, key) && arg[key]) { - classes.push(key); - } - } - } - } + var _DateConstants2 = _interopRequireDefault(_DateConstants); - return classes.join(' '); - } + var _util = __webpack_require__(559); - if (typeof module !== 'undefined' && module.exports) { - classNames.default = classNames; - module.exports = classNames; - } else if (true) { - // register as 'classnames', consistent with npm package name - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () { - return classNames; - }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), - __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else { - window.classNames = classNames; - } - }()); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - /***/ }), - /* 3 */ - /***/ (function(module, exports) { + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - module.exports = __WEBPACK_EXTERNAL_MODULE_3__; + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - /***/ }), - /* 4 */ - /***/ (function(module, exports, __webpack_require__) { + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - /* WEBPACK VAR INJECTION */(function(module) {var require;//! moment.js - //! version : 2.25.3 - //! authors : Tim Wood, Iskren Chernev, Moment.js contributors - //! license : MIT - //! momentjs.com + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - ;(function (global, factory) { - true ? module.exports = factory() : - typeof define === 'function' && define.amd ? define(factory) : - global.moment = factory() - }(this, (function () { 'use strict'; + function isSameDay(one, two) { + return one && two && one.isSame(two, 'day'); + } - var hookCallback; + function beforeCurrentMonthYear(current, today) { + if (current.year() < today.year()) { + return 1; + } + return current.year() === today.year() && current.month() < today.month(); + } - function hooks() { - return hookCallback.apply(null, arguments); - } + function afterCurrentMonthYear(current, today) { + if (current.year() > today.year()) { + return 1; + } + return current.year() === today.year() && current.month() > today.month(); + } - // This is done to register the method called with moment() - // without creating circular dependencies. - function setHookCallback(callback) { - hookCallback = callback; - } + function getIdFromDate(date) { + return 'rc-calendar-' + date.year() + '-' + date.month() + '-' + date.date(); + } - function isArray(input) { - return ( - input instanceof Array || - Object.prototype.toString.call(input) === '[object Array]' - ); - } + var DateTBody = function (_React$Component) { + _inherits(DateTBody, _React$Component); - function isObject(input) { - // IE8 will treat undefined and null as object if it wasn't for - // input != null - return ( - input != null && - Object.prototype.toString.call(input) === '[object Object]' - ); - } + function DateTBody() { + _classCallCheck(this, DateTBody); - function hasOwnProp(a, b) { - return Object.prototype.hasOwnProperty.call(a, b); - } + return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); + } - function isObjectEmpty(obj) { - if (Object.getOwnPropertyNames) { - return Object.getOwnPropertyNames(obj).length === 0; - } else { - var k; - for (k in obj) { - if (hasOwnProp(obj, k)) { - return false; - } - } - return true; - } - } + DateTBody.prototype.render = function render() { + var props = this.props; + var contentRender = props.contentRender, + prefixCls = props.prefixCls, + selectedValue = props.selectedValue, + value = props.value, + showWeekNumber = props.showWeekNumber, + dateRender = props.dateRender, + disabledDate = props.disabledDate, + hoverValue = props.hoverValue; - function isUndefined(input) { - return input === void 0; - } + var iIndex = void 0; + var jIndex = void 0; + var current = void 0; + var dateTable = []; + var today = (0, _util.getTodayTime)(value); + var cellClass = prefixCls + '-cell'; + var weekNumberCellClass = prefixCls + '-week-number-cell'; + var dateClass = prefixCls + '-date'; + var todayClass = prefixCls + '-today'; + var selectedClass = prefixCls + '-selected-day'; + var selectedDateClass = prefixCls + '-selected-date'; // do not move with mouse operation + var selectedStartDateClass = prefixCls + '-selected-start-date'; + var selectedEndDateClass = prefixCls + '-selected-end-date'; + var inRangeClass = prefixCls + '-in-range-cell'; + var lastMonthDayClass = prefixCls + '-last-month-cell'; + var nextMonthDayClass = prefixCls + '-next-month-btn-day'; + var disabledClass = prefixCls + '-disabled-cell'; + var firstDisableClass = prefixCls + '-disabled-cell-first-of-row'; + var lastDisableClass = prefixCls + '-disabled-cell-last-of-row'; + var lastDayOfMonthClass = prefixCls + '-last-day-of-month'; + var month1 = value.clone(); + month1.date(1); + var day = month1.day(); + var lastMonthDiffDay = (day + 7 - value.localeData().firstDayOfWeek()) % 7; + // calculate last month + var lastMonth1 = month1.clone(); + lastMonth1.add(0 - lastMonthDiffDay, 'days'); + var passed = 0; - function isNumber(input) { - return ( - typeof input === 'number' || - Object.prototype.toString.call(input) === '[object Number]' - ); + for (iIndex = 0; iIndex < _DateConstants2["default"].DATE_ROW_COUNT; iIndex++) { + for (jIndex = 0; jIndex < _DateConstants2["default"].DATE_COL_COUNT; jIndex++) { + current = lastMonth1; + if (passed) { + current = current.clone(); + current.add(passed, 'days'); + } + dateTable.push(current); + passed++; + } } + var tableHtml = []; + passed = 0; - function isDate(input) { - return ( - input instanceof Date || - Object.prototype.toString.call(input) === '[object Date]' + for (iIndex = 0; iIndex < _DateConstants2["default"].DATE_ROW_COUNT; iIndex++) { + var _cx; + + var isCurrentWeek = void 0; + var weekNumberCell = void 0; + var isActiveWeek = false; + var dateCells = []; + if (showWeekNumber) { + weekNumberCell = _react2["default"].createElement( + 'td', + { + key: dateTable[passed].week(), + role: 'gridcell', + className: weekNumberCellClass + }, + dateTable[passed].week() ); - } + } + for (jIndex = 0; jIndex < _DateConstants2["default"].DATE_COL_COUNT; jIndex++) { + var next = null; + var last = null; + current = dateTable[passed]; + if (jIndex < _DateConstants2["default"].DATE_COL_COUNT - 1) { + next = dateTable[passed + 1]; + } + if (jIndex > 0) { + last = dateTable[passed - 1]; + } + var cls = cellClass; + var disabled = false; + var selected = false; - function map(arr, fn) { - var res = [], - i; - for (i = 0; i < arr.length; ++i) { - res.push(fn(arr[i], i)); + if (isSameDay(current, today)) { + cls += ' ' + todayClass; + isCurrentWeek = true; } - return res; - } - function extend(a, b) { - for (var i in b) { - if (hasOwnProp(b, i)) { - a[i] = b[i]; + var isBeforeCurrentMonthYear = beforeCurrentMonthYear(current, value); + var isAfterCurrentMonthYear = afterCurrentMonthYear(current, value); + + if (selectedValue && Array.isArray(selectedValue)) { + var rangeValue = hoverValue.length ? hoverValue : selectedValue; + if (!isBeforeCurrentMonthYear && !isAfterCurrentMonthYear) { + var startValue = rangeValue[0]; + var endValue = rangeValue[1]; + if (startValue) { + if (isSameDay(current, startValue)) { + selected = true; + isActiveWeek = true; + cls += ' ' + selectedStartDateClass; + } + } + if (startValue && endValue) { + if (isSameDay(current, endValue)) { + selected = true; + isActiveWeek = true; + cls += ' ' + selectedEndDateClass; + } else if (current.isAfter(startValue, 'day') && current.isBefore(endValue, 'day')) { + cls += ' ' + inRangeClass; + } } + } + } else if (isSameDay(current, value)) { + // keyboard change value, highlight works + selected = true; + isActiveWeek = true; } - if (hasOwnProp(b, 'toString')) { - a.toString = b.toString; + if (isSameDay(current, selectedValue)) { + cls += ' ' + selectedDateClass; } - if (hasOwnProp(b, 'valueOf')) { - a.valueOf = b.valueOf; + if (isBeforeCurrentMonthYear) { + cls += ' ' + lastMonthDayClass; } - return a; - } - - function createUTC(input, format, locale, strict) { - return createLocalOrUTC(input, format, locale, strict, true).utc(); - } - - function defaultParsingFlags() { - // We need to deep clone this object. - return { - empty: false, - unusedTokens: [], - unusedInput: [], - overflow: -2, - charsLeftOver: 0, - nullInput: false, - invalidEra: null, - invalidMonth: null, - invalidFormat: false, - userInvalidated: false, - iso: false, - parsedDateParts: [], - era: null, - meridiem: null, - rfc2822: false, - weekdayMismatch: false, - }; - } + if (isAfterCurrentMonthYear) { + cls += ' ' + nextMonthDayClass; + } - function getParsingFlags(m) { - if (m._pf == null) { - m._pf = defaultParsingFlags(); + if (current.clone().endOf('month').date() === current.date()) { + cls += ' ' + lastDayOfMonthClass; } - return m._pf; - } - var some; - if (Array.prototype.some) { - some = Array.prototype.some; - } else { - some = function (fun) { - var t = Object(this), - len = t.length >>> 0, - i; + if (disabledDate) { + if (disabledDate(current, value)) { + disabled = true; - for (i = 0; i < len; i++) { - if (i in t && fun.call(this, t[i], i, t)) { - return true; - } + if (!last || !disabledDate(last, value)) { + cls += ' ' + firstDisableClass; } - return false; - }; - } - - function isValid(m) { - if (m._isValid == null) { - var flags = getParsingFlags(m), - parsedParts = some.call(flags.parsedDateParts, function (i) { - return i != null; - }), - isNowValid = - !isNaN(m._d.getTime()) && - flags.overflow < 0 && - !flags.empty && - !flags.invalidEra && - !flags.invalidMonth && - !flags.invalidWeekday && - !flags.weekdayMismatch && - !flags.nullInput && - !flags.invalidFormat && - !flags.userInvalidated && - (!flags.meridiem || (flags.meridiem && parsedParts)); - - if (m._strict) { - isNowValid = - isNowValid && - flags.charsLeftOver === 0 && - flags.unusedTokens.length === 0 && - flags.bigHour === undefined; + if (!next || !disabledDate(next, value)) { + cls += ' ' + lastDisableClass; } + } + } - if (Object.isFrozen == null || !Object.isFrozen(m)) { - m._isValid = isNowValid; - } else { - return isNowValid; - } + if (selected) { + cls += ' ' + selectedClass; } - return m._isValid; - } - function createInvalid(flags) { - var m = createUTC(NaN); - if (flags != null) { - extend(getParsingFlags(m), flags); + if (disabled) { + cls += ' ' + disabledClass; + } + + var dateHtml = void 0; + if (dateRender) { + dateHtml = dateRender(current, value); } else { - getParsingFlags(m).userInvalidated = true; + var content = contentRender ? contentRender(current, value) : current.date(); + dateHtml = _react2["default"].createElement( + 'div', + { + key: getIdFromDate(current), + className: dateClass, + 'aria-selected': selected, + 'aria-disabled': disabled + }, + content + ); } - return m; + dateCells.push(_react2["default"].createElement( + 'td', + { + key: passed, + onClick: disabled ? undefined : props.onSelect.bind(null, current), + onMouseEnter: disabled ? undefined : props.onDayHover && props.onDayHover.bind(null, current) || undefined, + role: 'gridcell', + title: (0, _util.getTitleString)(current), + className: cls + }, + dateHtml + )); + + passed++; + } + + tableHtml.push(_react2["default"].createElement( + 'tr', + { + key: iIndex, + role: 'row', + className: (0, _classnames2["default"])((_cx = {}, _defineProperty(_cx, prefixCls + '-current-week', isCurrentWeek), _defineProperty(_cx, prefixCls + '-active-week', isActiveWeek), _cx)) + }, + weekNumberCell, + dateCells + )); } + return _react2["default"].createElement( + 'tbody', + { className: prefixCls + '-tbody' }, + tableHtml + ); + }; - // Plugins that add properties should also add the key here (null value), - // so we can properly clone ourselves. - var momentProperties = (hooks.momentProperties = []), - updateInProgress = false; + return DateTBody; + }(_react2["default"].Component); - function copyConfig(to, from) { - var i, prop, val; + DateTBody.propTypes = { + contentRender: _propTypes2["default"].func, + dateRender: _propTypes2["default"].func, + disabledDate: _propTypes2["default"].func, + prefixCls: _propTypes2["default"].string, + selectedValue: _propTypes2["default"].oneOfType([_propTypes2["default"].object, _propTypes2["default"].arrayOf(_propTypes2["default"].object)]), + value: _propTypes2["default"].object, + hoverValue: _propTypes2["default"].any, + showWeekNumber: _propTypes2["default"].bool + }; + DateTBody.defaultProps = { + hoverValue: [] + }; + exports["default"] = DateTBody; + module.exports = exports['default']; + +/***/ }), +/* 559 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - if (!isUndefined(from._isAMomentObject)) { - to._isAMomentObject = from._isAMomentObject; - } - if (!isUndefined(from._i)) { - to._i = from._i; - } - if (!isUndefined(from._f)) { - to._f = from._f; - } - if (!isUndefined(from._l)) { - to._l = from._l; - } - if (!isUndefined(from._strict)) { - to._strict = from._strict; - } - if (!isUndefined(from._tzm)) { - to._tzm = from._tzm; - } - if (!isUndefined(from._isUTC)) { - to._isUTC = from._isUTC; - } - if (!isUndefined(from._offset)) { - to._offset = from._offset; - } - if (!isUndefined(from._pf)) { - to._pf = getParsingFlags(from); - } - if (!isUndefined(from._locale)) { - to._locale = from._locale; - } + Object.defineProperty(exports, "__esModule", { + value: true + }); - if (momentProperties.length > 0) { - for (i = 0; i < momentProperties.length; i++) { - prop = momentProperties[i]; - val = from[prop]; - if (!isUndefined(val)) { - to[prop] = val; - } - } - } + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - return to; - } + exports.getTodayTime = getTodayTime; + exports.getTitleString = getTitleString; + exports.getTodayTimeStr = getTodayTimeStr; + exports.getMonthName = getMonthName; + exports.syncTime = syncTime; + exports.getTimeConfig = getTimeConfig; + exports.isTimeValidByConfig = isTimeValidByConfig; + exports.isTimeValid = isTimeValid; + exports.isAllowedDate = isAllowedDate; + exports.formatDate = formatDate; - // Moment prototype object - function Moment(config) { - copyConfig(this, config); - this._d = new Date(config._d != null ? config._d.getTime() : NaN); - if (!this.isValid()) { - this._d = new Date(NaN); - } - // Prevent infinite loop in case updateOffset creates new moment - // objects. - if (updateInProgress === false) { - updateInProgress = true; - hooks.updateOffset(this); - updateInProgress = false; - } - } + var _moment = __webpack_require__(423); - function isMoment(obj) { - return ( - obj instanceof Moment || (obj != null && obj._isAMomentObject != null) - ); - } + var _moment2 = _interopRequireDefault(_moment); - function warn(msg) { - if ( - hooks.suppressDeprecationWarnings === false && - typeof console !== 'undefined' && - console.warn - ) { - console.warn('Deprecation warning: ' + msg); - } - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - function deprecate(msg, fn) { - var firstTime = true; + var defaultDisabledTime = { + disabledHours: function disabledHours() { + return []; + }, + disabledMinutes: function disabledMinutes() { + return []; + }, + disabledSeconds: function disabledSeconds() { + return []; + } + }; - return extend(function () { - if (hooks.deprecationHandler != null) { - hooks.deprecationHandler(null, msg); - } - if (firstTime) { - var args = [], - arg, - i, - key; - for (i = 0; i < arguments.length; i++) { - arg = ''; - if (typeof arguments[i] === 'object') { - arg += '\n[' + i + '] '; - for (key in arguments[0]) { - if (hasOwnProp(arguments[0], key)) { - arg += key + ': ' + arguments[0][key] + ', '; - } - } - arg = arg.slice(0, -2); // Remove trailing comma and space - } else { - arg = arguments[i]; - } - args.push(arg); - } - warn( - msg + - '\nArguments: ' + - Array.prototype.slice.call(args).join('') + - '\n' + - new Error().stack - ); - firstTime = false; - } - return fn.apply(this, arguments); - }, fn); - } + function getTodayTime(value) { + var today = (0, _moment2["default"])(); + if (typeof value !== 'undefined') { + today.locale(value.locale()).utcOffset(value.utcOffset()); + } + return today; + } - var deprecations = {}; + function getTitleString(value) { + return value.format('LL'); + } - function deprecateSimple(name, msg) { - if (hooks.deprecationHandler != null) { - hooks.deprecationHandler(name, msg); - } - if (!deprecations[name]) { - warn(msg); - deprecations[name] = true; - } - } + function getTodayTimeStr(value) { + var today = getTodayTime(value); + return getTitleString(today); + } - hooks.suppressDeprecationWarnings = false; - hooks.deprecationHandler = null; + function getMonthName(month) { + var locale = month.locale(); + var localeData = month.localeData(); + return localeData[locale === 'zh-cn' ? 'months' : 'monthsShort'](month); + } - function isFunction(input) { - return ( - (typeof Function !== 'undefined' && input instanceof Function) || - Object.prototype.toString.call(input) === '[object Function]' - ); - } + function syncTime(from, to) { + if (!_moment2["default"].isMoment(from) || !_moment2["default"].isMoment(to)) return; + to.hour(from.hour()); + to.minute(from.minute()); + to.second(from.second()); + } - function set(config) { - var prop, i; - for (i in config) { - if (hasOwnProp(config, i)) { - prop = config[i]; - if (isFunction(prop)) { - this[i] = prop; - } else { - this['_' + i] = prop; - } - } - } - this._config = config; - // Lenient ordinal parsing accepts just a number in addition to - // number + (possibly) stuff coming from _dayOfMonthOrdinalParse. - // TODO: Remove "ordinalParse" fallback in next major release. - this._dayOfMonthOrdinalParseLenient = new RegExp( - (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + - '|' + - /\d{1,2}/.source - ); - } + function getTimeConfig(value, disabledTime) { + var disabledTimeConfig = disabledTime ? disabledTime(value) : {}; + disabledTimeConfig = _extends({}, defaultDisabledTime, disabledTimeConfig); + return disabledTimeConfig; + } - function mergeConfigs(parentConfig, childConfig) { - var res = extend({}, parentConfig), - prop; - for (prop in childConfig) { - if (hasOwnProp(childConfig, prop)) { - if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) { - res[prop] = {}; - extend(res[prop], parentConfig[prop]); - extend(res[prop], childConfig[prop]); - } else if (childConfig[prop] != null) { - res[prop] = childConfig[prop]; - } else { - delete res[prop]; - } - } - } - for (prop in parentConfig) { - if ( - hasOwnProp(parentConfig, prop) && - !hasOwnProp(childConfig, prop) && - isObject(parentConfig[prop]) - ) { - // make sure changes to properties don't modify parent config - res[prop] = extend({}, res[prop]); - } - } - return res; + function isTimeValidByConfig(value, disabledTimeConfig) { + var invalidTime = false; + if (value) { + var hour = value.hour(); + var minutes = value.minute(); + var seconds = value.second(); + var disabledHours = disabledTimeConfig.disabledHours(); + if (disabledHours.indexOf(hour) === -1) { + var disabledMinutes = disabledTimeConfig.disabledMinutes(hour); + if (disabledMinutes.indexOf(minutes) === -1) { + var disabledSeconds = disabledTimeConfig.disabledSeconds(hour, minutes); + invalidTime = disabledSeconds.indexOf(seconds) !== -1; + } else { + invalidTime = true; + } + } else { + invalidTime = true; } + } + return !invalidTime; + } - function Locale(config) { - if (config != null) { - this.set(config); - } + function isTimeValid(value, disabledTime) { + var disabledTimeConfig = getTimeConfig(value, disabledTime); + return isTimeValidByConfig(value, disabledTimeConfig); + } + + function isAllowedDate(value, disabledDate, disabledTime) { + if (disabledDate) { + if (disabledDate(value)) { + return false; } + } + if (disabledTime) { + if (!isTimeValid(value, disabledTime)) { + return false; + } + } + return true; + } - var keys; + function formatDate(value, format) { + if (!value) { + return ''; + } - if (Object.keys) { - keys = Object.keys; - } else { - keys = function (obj) { - var i, - res = []; - for (i in obj) { - if (hasOwnProp(obj, i)) { - res.push(i); - } - } - return res; - }; - } + if (Array.isArray(format)) { + format = format[0]; + } - var defaultCalendar = { - sameDay: '[Today at] LT', - nextDay: '[Tomorrow at] LT', - nextWeek: 'dddd [at] LT', - lastDay: '[Yesterday at] LT', - lastWeek: '[Last] dddd [at] LT', - sameElse: 'L', - }; + return value.format(format); + } + +/***/ }), +/* 560 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - function calendar(key, mom, now) { - var output = this._calendar[key] || this._calendar['sameElse']; - return isFunction(output) ? output.call(mom, now) : output; - } + Object.defineProperty(exports, "__esModule", { + value: true + }); - function zeroFill(number, targetLength, forceSign) { - var absNumber = '' + Math.abs(number), - zerosToFill = targetLength - absNumber.length, - sign = number >= 0; - return ( - (sign ? (forceSign ? '+' : '') : '-') + - Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + - absNumber - ); - } + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, - localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, - formatFunctions = {}, - formatTokenFunctions = {}; + var _react = __webpack_require__(1); - // token: 'M' - // padded: ['MM', 2] - // ordinal: 'Mo' - // callback: function () { this.month() + 1 } - function addFormatToken(token, padded, ordinal, callback) { - var func = callback; - if (typeof callback === 'string') { - func = function () { - return this[callback](); - }; - } - if (token) { - formatTokenFunctions[token] = func; - } - if (padded) { - formatTokenFunctions[padded[0]] = function () { - return zeroFill(func.apply(this, arguments), padded[1], padded[2]); - }; - } - if (ordinal) { - formatTokenFunctions[ordinal] = function () { - return this.localeData().ordinal( - func.apply(this, arguments), - token - ); - }; - } - } + var _react2 = _interopRequireDefault(_react); - function removeFormattingTokens(input) { - if (input.match(/\[[\s\S]/)) { - return input.replace(/^\[|\]$/g, ''); - } - return input.replace(/\\/g, ''); - } + var _propTypes = __webpack_require__(6); - function makeFormatFunction(format) { - var array = format.match(formattingTokens), - i, - length; + var _propTypes2 = _interopRequireDefault(_propTypes); - for (i = 0, length = array.length; i < length; i++) { - if (formatTokenFunctions[array[i]]) { - array[i] = formatTokenFunctions[array[i]]; - } else { - array[i] = removeFormattingTokens(array[i]); - } - } + var _mapSelf = __webpack_require__(561); - return function (mom) { - var output = '', - i; - for (i = 0; i < length; i++) { - output += isFunction(array[i]) - ? array[i].call(mom, format) - : array[i]; - } - return output; - }; - } + var _mapSelf2 = _interopRequireDefault(_mapSelf); - // format date using native date object - function formatMoment(m, format) { - if (!m.isValid()) { - return m.localeData().invalidDate(); - } + var _MonthPanel = __webpack_require__(562); - format = expandFormat(format, m.localeData()); - formatFunctions[format] = - formatFunctions[format] || makeFormatFunction(format); + var _MonthPanel2 = _interopRequireDefault(_MonthPanel); - return formatFunctions[format](m); + var _YearPanel = __webpack_require__(565); + + var _YearPanel2 = _interopRequireDefault(_YearPanel); + + var _DecadePanel = __webpack_require__(566); + + var _DecadePanel2 = _interopRequireDefault(_DecadePanel); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + + function noop() {} + function goMonth(direction) { + var next = this.props.value.clone(); + next.add(direction, 'months'); + this.props.onValueChange(next); + } + + function goYear(direction) { + var next = this.props.value.clone(); + next.add(direction, 'years'); + this.props.onValueChange(next); + } + + function showIf(condition, el) { + return condition ? el : null; + } + + var CalendarHeader = function (_React$Component) { + _inherits(CalendarHeader, _React$Component); + + function CalendarHeader(props) { + _classCallCheck(this, CalendarHeader); + + var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); + + _initialiseProps.call(_this); + + _this.nextMonth = goMonth.bind(_this, 1); + _this.previousMonth = goMonth.bind(_this, -1); + _this.nextYear = goYear.bind(_this, 1); + _this.previousYear = goYear.bind(_this, -1); + + _this.state = { yearPanelReferer: null }; + return _this; + } + + CalendarHeader.prototype.render = function render() { + var _this2 = this; + + var props = this.props; + var prefixCls = props.prefixCls, + locale = props.locale, + mode = props.mode, + value = props.value, + showTimePicker = props.showTimePicker, + enableNext = props.enableNext, + enablePrev = props.enablePrev, + disabledMonth = props.disabledMonth, + renderFooter = props.renderFooter, + onChange = props.onChange, + onClear = props.onClear, + autoTriggerChange = props.autoTriggerChange, + showMonthInput = props.showMonthInput; + + var calendarProps = {}; + if (autoTriggerChange) { + calendarProps.value = value; + calendarProps.onChange = onChange; + } else { + calendarProps.onChange = noop; + } + var panel = null; + if (mode === 'month') { + panel = _react2["default"].createElement(_MonthPanel2["default"], _extends({ + showDateInput: true, + locale: locale, + showMonthInput: showMonthInput, + defaultValue: value, + rootPrefixCls: prefixCls, + onSelect: this.onMonthSelect, + onYearPanelShow: function onYearPanelShow() { + return _this2.showYearPanel('month'); + }, + disabledDate: disabledMonth, + cellRender: props.monthCellRender, + contentRender: props.monthCellContentRender, + renderFooter: renderFooter, + onClear: onClear + }, calendarProps)); + } + if (mode === 'year') { + panel = _react2["default"].createElement(_YearPanel2["default"], { + locale: locale, + defaultValue: value, + rootPrefixCls: prefixCls, + onSelect: this.onYearSelect, + onDecadePanelShow: this.showDecadePanel, + renderFooter: renderFooter + }); + } + if (mode === 'decade') { + panel = _react2["default"].createElement(_DecadePanel2["default"], { + locale: locale, + defaultValue: value, + rootPrefixCls: prefixCls, + onSelect: this.onDecadeSelect, + renderFooter: renderFooter + }); } - function expandFormat(format, locale) { - var i = 5; + return _react2["default"].createElement( + 'div', + { className: prefixCls + '-header' }, + _react2["default"].createElement( + 'div', + { style: { position: 'relative' }, className: prefixCls + '-header-btns' }, + showIf(enablePrev && !showTimePicker, _react2["default"].createElement('a', { + className: prefixCls + '-prev-year-btn', + role: 'button', + onClick: this.previousYear, + title: locale.previousYear + })), + showIf(enablePrev && !showTimePicker, _react2["default"].createElement('a', { + className: prefixCls + '-prev-month-btn', + role: 'button', + onClick: this.previousMonth, + title: locale.previousMonth + })), + this.monthYearElement(showTimePicker), + showIf(enableNext && !showTimePicker, _react2["default"].createElement('a', { + className: prefixCls + '-next-month-btn', + onClick: this.nextMonth, + title: locale.nextMonth + })), + showIf(enableNext && !showTimePicker, _react2["default"].createElement('a', { + className: prefixCls + '-next-year-btn', + onClick: this.nextYear, + title: locale.nextYear + })) + ), + panel + ); + }; + + return CalendarHeader; + }(_react2["default"].Component); - function replaceLongDateFormatTokens(input) { - return locale.longDateFormat(input) || input; - } + CalendarHeader.propTypes = { + prefixCls: _propTypes2["default"].string, + value: _propTypes2["default"].object, + onValueChange: _propTypes2["default"].func, + showTimePicker: _propTypes2["default"].bool, + onPanelChange: _propTypes2["default"].func, + locale: _propTypes2["default"].object, + enablePrev: _propTypes2["default"].any, + enableNext: _propTypes2["default"].any, + disabledMonth: _propTypes2["default"].func, + renderFooter: _propTypes2["default"].func, + onMonthSelect: _propTypes2["default"].func + }; + CalendarHeader.defaultProps = { + enableNext: 1, + enablePrev: 1, + onPanelChange: function onPanelChange() {}, + onValueChange: function onValueChange() {} + }; - localFormattingTokens.lastIndex = 0; - while (i >= 0 && localFormattingTokens.test(format)) { - format = format.replace( - localFormattingTokens, - replaceLongDateFormatTokens - ); - localFormattingTokens.lastIndex = 0; - i -= 1; - } + var _initialiseProps = function _initialiseProps() { + var _this3 = this; - return format; + this.onMonthSelect = function (value) { + _this3.props.onPanelChange(value, 'date'); + if (_this3.props.onMonthSelect) { + _this3.props.onMonthSelect(value); + } else { + _this3.props.onValueChange(value); } + }; - var defaultLongDateFormat = { - LTS: 'h:mm:ss A', - LT: 'h:mm A', - L: 'MM/DD/YYYY', - LL: 'MMMM D, YYYY', - LLL: 'MMMM D, YYYY h:mm A', - LLLL: 'dddd, MMMM D, YYYY h:mm A', - }; - - function longDateFormat(key) { - var format = this._longDateFormat[key], - formatUpper = this._longDateFormat[key.toUpperCase()]; - - if (format || !formatUpper) { - return format; - } + this.onYearSelect = function (value) { + var referer = _this3.state.yearPanelReferer; + _this3.setState({ yearPanelReferer: null }); + _this3.props.onPanelChange(value, referer); + _this3.props.onValueChange(value); + }; - this._longDateFormat[key] = formatUpper - .match(formattingTokens) - .map(function (tok) { - if ( - tok === 'MMMM' || - tok === 'MM' || - tok === 'DD' || - tok === 'dddd' - ) { - return tok.slice(1); - } - return tok; - }) - .join(''); + this.onDecadeSelect = function (value) { + _this3.props.onPanelChange(value, 'year'); + _this3.props.onValueChange(value); + }; - return this._longDateFormat[key]; + this.monthYearElement = function (showTimePicker) { + var props = _this3.props; + var prefixCls = props.prefixCls; + var locale = props.locale; + var value = props.value; + var localeData = value.localeData && value.localeData(); + var monthBeforeYear = locale.monthBeforeYear; + var selectClassName = prefixCls + '-' + (monthBeforeYear ? 'my-select' : 'ym-select'); + var timeClassName = showTimePicker ? ' ' + prefixCls + '-time-status' : ''; + var year = _react2["default"].createElement( + 'a', + { + className: prefixCls + '-year-select' + timeClassName, + role: 'button', + onClick: showTimePicker ? null : function () { + return _this3.showYearPanel('date'); + }, + title: showTimePicker ? null : locale.yearSelect + }, + value.format(locale.yearFormat) + ); + var month = _react2["default"].createElement( + 'a', + { + className: prefixCls + '-month-select' + timeClassName, + role: 'button', + onClick: showTimePicker ? null : _this3.showMonthPanel, + title: showTimePicker ? null : locale.monthSelect + }, + locale.monthFormat ? value.format(locale.monthFormat) : localeData.monthsShort(value) + ); + var day = void 0; + if (showTimePicker) { + day = _react2["default"].createElement( + 'a', + { + className: prefixCls + '-day-select' + timeClassName, + role: 'button' + }, + value.format(locale.dayFormat) + ); + } + var my = []; + if (monthBeforeYear) { + my = [month, day, year]; + } else { + my = [year, month, day]; } + return _react2["default"].createElement( + 'span', + { className: selectClassName }, + (0, _mapSelf2["default"])(my) + ); + }; - var defaultInvalidDate = 'Invalid date'; + this.showMonthPanel = function () { + // null means that users' interaction doesn't change value + _this3.props.onPanelChange(null, 'month'); + }; - function invalidDate() { - return this._invalidDate; - } + this.showYearPanel = function (referer) { + _this3.setState({ yearPanelReferer: referer }); + _this3.props.onPanelChange(null, 'year'); + }; - var defaultOrdinal = '%d', - defaultDayOfMonthOrdinalParse = /\d{1,2}/; + this.showDecadePanel = function () { + _this3.props.onPanelChange(null, 'decade'); + }; + }; - function ordinal(number) { - return this._ordinal.replace('%d', number); - } + exports["default"] = CalendarHeader; + module.exports = exports['default']; + +/***/ }), +/* 561 */ +/***/ (function(module, exports, __webpack_require__) { + + "use strict"; - var defaultRelativeTime = { - future: 'in %s', - past: '%s ago', - s: 'a few seconds', - ss: '%d seconds', - m: 'a minute', - mm: '%d minutes', - h: 'an hour', - hh: '%d hours', - d: 'a day', - dd: '%d days', - w: 'a week', - ww: '%d weeks', - M: 'a month', - MM: '%d months', - y: 'a year', - yy: '%d years', - }; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = mapSelf; - function relativeTime(number, withoutSuffix, string, isFuture) { - var output = this._relativeTime[string]; - return isFunction(output) - ? output(number, withoutSuffix, string, isFuture) - : output.replace(/%d/i, number); - } + var _react = _interopRequireDefault(__webpack_require__(1)); - function pastFuture(diff, output) { - var format = this._relativeTime[diff > 0 ? 'future' : 'past']; - return isFunction(format) ? format(output) : format.replace(/%s/i, output); - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var aliases = {}; + function mirror(o) { + return o; + } - function addUnitAlias(unit, shorthand) { - var lowerCase = unit.toLowerCase(); - aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit; - } + function mapSelf(children) { + // return ReactFragment + return _react.default.Children.map(children, mirror); + } + +/***/ }), +/* 562 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - function normalizeUnits(units) { - return typeof units === 'string' - ? aliases[units] || aliases[units.toLowerCase()] - : undefined; - } + Object.defineProperty(exports, "__esModule", { + value: true + }); - function normalizeObjectUnits(inputObject) { - var normalizedInput = {}, - normalizedProp, - prop; + var _react = __webpack_require__(1); - for (prop in inputObject) { - if (hasOwnProp(inputObject, prop)) { - normalizedProp = normalizeUnits(prop); - if (normalizedProp) { - normalizedInput[normalizedProp] = inputObject[prop]; - } - } - } + var _react2 = _interopRequireDefault(_react); - return normalizedInput; - } + var _propTypes = __webpack_require__(6); - var priorities = {}; + var _propTypes2 = _interopRequireDefault(_propTypes); - function addUnitPriority(unit, priority) { - priorities[unit] = priority; - } + var _reactLifecyclesCompat = __webpack_require__(81); - function getPrioritizedUnits(unitsObj) { - var units = [], - u; - for (u in unitsObj) { - if (hasOwnProp(unitsObj, u)) { - units.push({ unit: u, priority: priorities[u] }); - } - } - units.sort(function (a, b) { - return a.priority - b.priority; - }); - return units; - } + var _MonthTable = __webpack_require__(563); - function isLeapYear(year) { - return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0; - } + var _MonthTable2 = _interopRequireDefault(_MonthTable); - function absFloor(number) { - if (number < 0) { - // -0 -> 0 - return Math.ceil(number) || 0; - } else { - return Math.floor(number); - } - } + var _DateInput = __webpack_require__(564); - function toInt(argumentForCoercion) { - var coercedNumber = +argumentForCoercion, - value = 0; + var _DateInput2 = _interopRequireDefault(_DateInput); - if (coercedNumber !== 0 && isFinite(coercedNumber)) { - value = absFloor(coercedNumber); - } + var _moment = __webpack_require__(423); - return value; - } + var _moment2 = _interopRequireDefault(_moment); - function makeGetSet(unit, keepTime) { - return function (value) { - if (value != null) { - set$1(this, unit, value); - hooks.updateOffset(this, keepTime); - return this; - } else { - return get(this, unit); - } - }; - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - function get(mom, unit) { - return mom.isValid() - ? mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]() - : NaN; - } + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - function set$1(mom, unit, value) { - if (mom.isValid() && !isNaN(value)) { - if ( - unit === 'FullYear' && - isLeapYear(mom.year()) && - mom.month() === 1 && - mom.date() === 29 - ) { - value = toInt(value); - mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit]( - value, - mom.month(), - daysInMonth(value, mom.month()) - ); - } else { - mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value); - } - } - } + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - // MOMENTS + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - function stringGet(units) { - units = normalizeUnits(units); - if (isFunction(this[units])) { - return this[units](); - } - return this; - } + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - function stringSet(units, value) { - if (typeof units === 'object') { - units = normalizeObjectUnits(units); - var prioritized = getPrioritizedUnits(units), - i; - for (i = 0; i < prioritized.length; i++) { - this[prioritized[i].unit](units[prioritized[i].unit]); - } - } else { - units = normalizeUnits(units); - if (isFunction(this[units])) { - return this[units](value); - } - } - return this; - } + function goYear(direction) { + var next = this.state.value.clone(); + next.add(direction, 'year'); + this.setAndChangeValue(next); + } - var match1 = /\d/, // 0 - 9 - match2 = /\d\d/, // 00 - 99 - match3 = /\d{3}/, // 000 - 999 - match4 = /\d{4}/, // 0000 - 9999 - match6 = /[+-]?\d{6}/, // -999999 - 999999 - match1to2 = /\d\d?/, // 0 - 99 - match3to4 = /\d\d\d\d?/, // 999 - 9999 - match5to6 = /\d\d\d\d\d\d?/, // 99999 - 999999 - match1to3 = /\d{1,3}/, // 0 - 999 - match1to4 = /\d{1,4}/, // 0 - 9999 - match1to6 = /[+-]?\d{1,6}/, // -999999 - 999999 - matchUnsigned = /\d+/, // 0 - inf - matchSigned = /[+-]?\d+/, // -inf - inf - matchOffset = /Z|[+-]\d\d:?\d\d/gi, // +00:00 -00:00 +0000 -0000 or Z - matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi, // +00 -00 +00:00 -00:00 +0000 -0000 or Z - matchTimestamp = /[+-]?\d+(\.\d{1,3})?/, // 123456789 123456789.123 - // any word (or two) characters or numbers including two/three word month in arabic. - // includes scottish gaelic two word and hyphenated months - matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, - regexes; + function noop() {} - regexes = {}; + var MonthPanel = function (_React$Component) { + _inherits(MonthPanel, _React$Component); - function addRegexToken(token, regex, strictRegex) { - regexes[token] = isFunction(regex) - ? regex - : function (isStrict, localeData) { - return isStrict && strictRegex ? strictRegex : regex; - }; - } + function MonthPanel(props) { + _classCallCheck(this, MonthPanel); - function getParseRegexForToken(token, config) { - if (!hasOwnProp(regexes, token)) { - return new RegExp(unescapeFormat(token)); - } + var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); - return regexes[token](config._strict, config._locale); - } + _this.setAndChangeValue = function (value) { + _this.setValue(value); + _this.props.onChange(value); + }; - // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript - function unescapeFormat(s) { - return regexEscape( - s - .replace('\\', '') - .replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function ( - matched, - p1, - p2, - p3, - p4 - ) { - return p1 || p2 || p3 || p4; - }) - ); - } + _this.setAndSelectValue = function (value) { + _this.setValue(value); + _this.props.onSelect(value); + }; - function regexEscape(s) { - return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'); - } + _this.setValue = function (value) { + if (!('value' in _this.props)) { + _this.setState({ + value: value + }); + } + }; - var tokens = {}; + _this.nextYear = goYear.bind(_this, 1); + _this.previousYear = goYear.bind(_this, -1); + _this.prefixCls = props.rootPrefixCls + '-month-panel'; - function addParseToken(token, callback) { - var i, - func = callback; - if (typeof token === 'string') { - token = [token]; - } - if (isNumber(callback)) { - func = function (input, array) { - array[callback] = toInt(input); - }; - } - for (i = 0; i < token.length; i++) { - tokens[token[i]] = func; - } - } + _this.state = { + value: props.value || props.defaultValue + }; + return _this; + } - function addWeekParseToken(token, callback) { - addParseToken(token, function (input, array, config, token) { - config._w = config._w || {}; - callback(input, config._w, config, token); - }); - } + MonthPanel.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps) { + var newState = {}; - function addTimeToArrayFromToken(token, input, config) { - if (input != null && hasOwnProp(tokens, token)) { - tokens[token](input, config._a, config, token); - } + if ('value' in nextProps) { + newState = { + value: nextProps.value + }; } - var YEAR = 0, - MONTH = 1, - DATE = 2, - HOUR = 3, - MINUTE = 4, - SECOND = 5, - MILLISECOND = 6, - WEEK = 7, - WEEKDAY = 8; + return newState; + }; - function mod(n, x) { - return ((n % x) + x) % x; - } + MonthPanel.prototype.render = function render() { + var props = this.props; + var value = this.state.value; + var locale = props.locale, + cellRender = props.cellRender, + contentRender = props.contentRender, + renderFooter = props.renderFooter, + rootPrefixCls = props.rootPrefixCls; - var indexOf; + var year = value.year(); + var prefixCls = this.prefixCls; - if (Array.prototype.indexOf) { - indexOf = Array.prototype.indexOf; - } else { - indexOf = function (o) { - // I know - var i; - for (i = 0; i < this.length; ++i) { - if (this[i] === o) { - return i; - } - } - return -1; - }; - } + var footer = renderFooter && renderFooter('month'); - function daysInMonth(year, month) { - if (isNaN(year) || isNaN(month)) { - return NaN; - } - var modMonth = mod(month, 12); - year += (month - modMonth) / 12; - return modMonth === 1 - ? isLeapYear(year) - ? 29 - : 28 - : 31 - ((modMonth % 7) % 2); - } + return _react2["default"].createElement( + 'div', + { className: prefixCls, style: props.style, tabIndex: '0' }, + _react2["default"].createElement( + 'div', + null, + _react2["default"].createElement( + 'div', + { className: prefixCls + '-header' }, + _react2["default"].createElement('a', { + className: prefixCls + '-prev-year-btn', + role: 'button', + onClick: this.previousYear, + title: locale.previousYear + }), + _react2["default"].createElement( + 'a', + { + className: prefixCls + '-year-select', + role: 'button', + onClick: props.onYearPanelShow, + title: locale.yearSelect + }, + _react2["default"].createElement( + 'span', + { className: prefixCls + '-year-select-content' }, + year + ), + _react2["default"].createElement( + 'span', + { className: prefixCls + '-year-select-arrow' }, + 'x' + ) + ), + _react2["default"].createElement('a', { + className: prefixCls + '-next-year-btn', + role: 'button', + onClick: this.nextYear, + title: locale.nextYear + }) + ), + _react2["default"].createElement( + 'div', + { className: prefixCls + '-body' }, + _react2["default"].createElement(_MonthTable2["default"], { + disabledDate: props.disabledDate, + onSelect: this.setAndSelectValue, + locale: locale, + value: value, + cellRender: cellRender, + contentRender: contentRender, + prefixCls: prefixCls + }) + ), + footer && _react2["default"].createElement( + 'div', + { className: prefixCls + '-footer' }, + footer + ) + ) + ); + }; - // FORMATTING + return MonthPanel; + }(_react2["default"].Component); - addFormatToken('M', ['MM', 2], 'Mo', function () { - return this.month() + 1; - }); + MonthPanel.propTypes = { + onChange: _propTypes2["default"].func, + disabledDate: _propTypes2["default"].func, + onSelect: _propTypes2["default"].func, + renderFooter: _propTypes2["default"].func, + rootPrefixCls: _propTypes2["default"].string, + value: _propTypes2["default"].object, + defaultValue: _propTypes2["default"].object + }; + MonthPanel.defaultProps = { + onChange: noop, + onSelect: noop + }; - addFormatToken('MMM', 0, 0, function (format) { - return this.localeData().monthsShort(this, format); - }); - addFormatToken('MMMM', 0, 0, function (format) { - return this.localeData().months(this, format); - }); + (0, _reactLifecyclesCompat.polyfill)(MonthPanel); - // ALIASES + exports["default"] = MonthPanel; + module.exports = exports['default']; + +/***/ }), +/* 563 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - addUnitAlias('month', 'M'); + Object.defineProperty(exports, "__esModule", { + value: true + }); - // PRIORITY + var _react = __webpack_require__(1); - addUnitPriority('month', 8); + var _react2 = _interopRequireDefault(_react); - // PARSING + var _propTypes = __webpack_require__(6); - addRegexToken('M', match1to2); - addRegexToken('MM', match1to2, match2); - addRegexToken('MMM', function (isStrict, locale) { - return locale.monthsShortRegex(isStrict); - }); - addRegexToken('MMMM', function (isStrict, locale) { - return locale.monthsRegex(isStrict); - }); + var _propTypes2 = _interopRequireDefault(_propTypes); - addParseToken(['M', 'MM'], function (input, array) { - array[MONTH] = toInt(input) - 1; - }); + var _classnames = __webpack_require__(5); - addParseToken(['MMM', 'MMMM'], function (input, array, config, token) { - var month = config._locale.monthsParse(input, token, config._strict); - // if we didn't find a month name, mark the date as invalid. - if (month != null) { - array[MONTH] = month; - } else { - getParsingFlags(config).invalidMonth = input; - } - }); + var _classnames2 = _interopRequireDefault(_classnames); - // LOCALES + var _index = __webpack_require__(559); - var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split( - '_' - ), - defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split( - '_' - ), - MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, - defaultMonthsShortRegex = matchWord, - defaultMonthsRegex = matchWord; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - function localeMonths(m, format) { - if (!m) { - return isArray(this._months) - ? this._months - : this._months['standalone']; - } - return isArray(this._months) - ? this._months[m.month()] - : this._months[ - (this._months.isFormat || MONTHS_IN_FORMAT).test(format) - ? 'format' - : 'standalone' - ][m.month()]; - } + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - function localeMonthsShort(m, format) { - if (!m) { - return isArray(this._monthsShort) - ? this._monthsShort - : this._monthsShort['standalone']; - } - return isArray(this._monthsShort) - ? this._monthsShort[m.month()] - : this._monthsShort[ - MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone' - ][m.month()]; - } + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - function handleStrictParse(monthName, format, strict) { - var i, - ii, - mom, - llc = monthName.toLocaleLowerCase(); - if (!this._monthsParse) { - // this is not used - this._monthsParse = []; - this._longMonthsParse = []; - this._shortMonthsParse = []; - for (i = 0; i < 12; ++i) { - mom = createUTC([2000, i]); - this._shortMonthsParse[i] = this.monthsShort( - mom, - '' - ).toLocaleLowerCase(); - this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase(); - } - } + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - if (strict) { - if (format === 'MMM') { - ii = indexOf.call(this._shortMonthsParse, llc); - return ii !== -1 ? ii : null; - } else { - ii = indexOf.call(this._longMonthsParse, llc); - return ii !== -1 ? ii : null; - } - } else { - if (format === 'MMM') { - ii = indexOf.call(this._shortMonthsParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._longMonthsParse, llc); - return ii !== -1 ? ii : null; - } else { - ii = indexOf.call(this._longMonthsParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._shortMonthsParse, llc); - return ii !== -1 ? ii : null; - } - } - } + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - function localeMonthsParse(monthName, format, strict) { - var i, mom, regex; + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - if (this._monthsParseExact) { - return handleStrictParse.call(this, monthName, format, strict); - } + var ROW = 4; + var COL = 3; - if (!this._monthsParse) { - this._monthsParse = []; - this._longMonthsParse = []; - this._shortMonthsParse = []; - } + function chooseMonth(month) { + var next = this.state.value.clone(); + next.month(month); + this.setAndSelectValue(next); + } - // TODO: add sorting - // Sorting makes sure if one month (or abbr) is a prefix of another - // see sorting in computeMonthsParse - for (i = 0; i < 12; i++) { - // make the regex if we don't have it already - mom = createUTC([2000, i]); - if (strict && !this._longMonthsParse[i]) { - this._longMonthsParse[i] = new RegExp( - '^' + this.months(mom, '').replace('.', '') + '$', - 'i' - ); - this._shortMonthsParse[i] = new RegExp( - '^' + this.monthsShort(mom, '').replace('.', '') + '$', - 'i' - ); - } - if (!strict && !this._monthsParse[i]) { - regex = - '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, ''); - this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i'); - } - // test the regex - if ( - strict && - format === 'MMMM' && - this._longMonthsParse[i].test(monthName) - ) { - return i; - } else if ( - strict && - format === 'MMM' && - this._shortMonthsParse[i].test(monthName) - ) { - return i; - } else if (!strict && this._monthsParse[i].test(monthName)) { - return i; - } - } - } + function noop() {} - // MOMENTS + var MonthTable = function (_Component) { + _inherits(MonthTable, _Component); - function setMonth(mom, value) { - var dayOfMonth; + function MonthTable(props) { + _classCallCheck(this, MonthTable); - if (!mom.isValid()) { - // No op - return mom; - } + var _this = _possibleConstructorReturn(this, _Component.call(this, props)); - if (typeof value === 'string') { - if (/^\d+$/.test(value)) { - value = toInt(value); - } else { - value = mom.localeData().monthsParse(value); - // TODO: Another silent failure? - if (!isNumber(value)) { - return mom; - } - } - } + _this.state = { + value: props.value + }; + return _this; + } - dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value)); - mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth); - return mom; + MonthTable.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { + if ('value' in nextProps) { + this.setState({ + value: nextProps.value + }); } + }; - function getSetMonth(value) { - if (value != null) { - setMonth(this, value); - hooks.updateOffset(this, true); - return this; - } else { - return get(this, 'Month'); - } - } + MonthTable.prototype.setAndSelectValue = function setAndSelectValue(value) { + this.setState({ + value: value + }); + this.props.onSelect(value); + }; - function getDaysInMonth() { - return daysInMonth(this.year(), this.month()); + MonthTable.prototype.months = function months() { + var value = this.state.value; + var current = value.clone(); + var months = []; + var index = 0; + for (var rowIndex = 0; rowIndex < ROW; rowIndex++) { + months[rowIndex] = []; + for (var colIndex = 0; colIndex < COL; colIndex++) { + current.month(index); + var content = (0, _index.getMonthName)(current); + months[rowIndex][colIndex] = { + value: index, + content: content, + title: content + }; + index++; + } } + return months; + }; - function monthsShortRegex(isStrict) { - if (this._monthsParseExact) { - if (!hasOwnProp(this, '_monthsRegex')) { - computeMonthsParse.call(this); - } - if (isStrict) { - return this._monthsShortStrictRegex; - } else { - return this._monthsShortRegex; - } - } else { - if (!hasOwnProp(this, '_monthsShortRegex')) { - this._monthsShortRegex = defaultMonthsShortRegex; - } - return this._monthsShortStrictRegex && isStrict - ? this._monthsShortStrictRegex - : this._monthsShortRegex; - } - } + MonthTable.prototype.render = function render() { + var _this2 = this; - function monthsRegex(isStrict) { - if (this._monthsParseExact) { - if (!hasOwnProp(this, '_monthsRegex')) { - computeMonthsParse.call(this); - } - if (isStrict) { - return this._monthsStrictRegex; - } else { - return this._monthsRegex; - } - } else { - if (!hasOwnProp(this, '_monthsRegex')) { - this._monthsRegex = defaultMonthsRegex; - } - return this._monthsStrictRegex && isStrict - ? this._monthsStrictRegex - : this._monthsRegex; - } - } + var props = this.props; + var value = this.state.value; + var today = (0, _index.getTodayTime)(value); + var months = this.months(); + var currentMonth = value.month(); + var prefixCls = props.prefixCls, + locale = props.locale, + contentRender = props.contentRender, + cellRender = props.cellRender; - function computeMonthsParse() { - function cmpLenRev(a, b) { - return b.length - a.length; - } + var monthsEls = months.map(function (month, index) { + var tds = month.map(function (monthData) { + var _classNameMap; - var shortPieces = [], - longPieces = [], - mixedPieces = [], - i, - mom; - for (i = 0; i < 12; i++) { - // make the regex if we don't have it already - mom = createUTC([2000, i]); - shortPieces.push(this.monthsShort(mom, '')); - longPieces.push(this.months(mom, '')); - mixedPieces.push(this.months(mom, '')); - mixedPieces.push(this.monthsShort(mom, '')); - } - // Sorting makes sure if one month (or abbr) is a prefix of another it - // will match the longer piece. - shortPieces.sort(cmpLenRev); - longPieces.sort(cmpLenRev); - mixedPieces.sort(cmpLenRev); - for (i = 0; i < 12; i++) { - shortPieces[i] = regexEscape(shortPieces[i]); - longPieces[i] = regexEscape(longPieces[i]); + var disabled = false; + if (props.disabledDate) { + var testValue = value.clone(); + testValue.month(monthData.value); + disabled = props.disabledDate(testValue); } - for (i = 0; i < 24; i++) { - mixedPieces[i] = regexEscape(mixedPieces[i]); + var classNameMap = (_classNameMap = {}, _defineProperty(_classNameMap, prefixCls + '-cell', 1), _defineProperty(_classNameMap, prefixCls + '-cell-disabled', disabled), _defineProperty(_classNameMap, prefixCls + '-selected-cell', monthData.value === currentMonth), _defineProperty(_classNameMap, prefixCls + '-current-cell', today.year() === value.year() && monthData.value === today.month()), _classNameMap); + var cellEl = void 0; + if (cellRender) { + var currentValue = value.clone(); + currentValue.month(monthData.value); + cellEl = cellRender(currentValue, locale); + } else { + var content = void 0; + if (contentRender) { + var _currentValue = value.clone(); + _currentValue.month(monthData.value); + content = contentRender(_currentValue, locale); + } else { + content = monthData.content; + } + cellEl = _react2["default"].createElement( + 'a', + { className: prefixCls + '-month' }, + content + ); } - - this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i'); - this._monthsShortRegex = this._monthsRegex; - this._monthsStrictRegex = new RegExp( - '^(' + longPieces.join('|') + ')', - 'i' - ); - this._monthsShortStrictRegex = new RegExp( - '^(' + shortPieces.join('|') + ')', - 'i' + return _react2["default"].createElement( + 'td', + { + role: 'gridcell', + key: monthData.value, + onClick: disabled ? null : chooseMonth.bind(_this2, monthData.value), + title: monthData.title, + className: (0, _classnames2["default"])(classNameMap) + }, + cellEl ); - } - - // FORMATTING - - addFormatToken('Y', 0, 0, function () { - var y = this.year(); - return y <= 9999 ? zeroFill(y, 4) : '+' + y; + }); + return _react2["default"].createElement( + 'tr', + { key: index, role: 'row' }, + tds + ); }); - addFormatToken(0, ['YY', 2], 0, function () { - return this.year() % 100; - }); + return _react2["default"].createElement( + 'table', + { className: prefixCls + '-table', cellSpacing: '0', role: 'grid' }, + _react2["default"].createElement( + 'tbody', + { className: prefixCls + '-tbody' }, + monthsEls + ) + ); + }; - addFormatToken(0, ['YYYY', 4], 0, 'year'); - addFormatToken(0, ['YYYYY', 5], 0, 'year'); - addFormatToken(0, ['YYYYYY', 6, true], 0, 'year'); + return MonthTable; + }(_react.Component); - // ALIASES + MonthTable.defaultProps = { + onSelect: noop + }; + MonthTable.propTypes = { + onSelect: _propTypes2["default"].func, + cellRender: _propTypes2["default"].func, + prefixCls: _propTypes2["default"].string, + value: _propTypes2["default"].object + }; + exports["default"] = MonthTable; + module.exports = exports['default']; + +/***/ }), +/* 564 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - addUnitAlias('year', 'y'); + Object.defineProperty(exports, "__esModule", { + value: true + }); - // PRIORITIES + var _react = __webpack_require__(1); - addUnitPriority('year', 1); + var _react2 = _interopRequireDefault(_react); - // PARSING + var _reactDom = __webpack_require__(2); - addRegexToken('Y', matchSigned); - addRegexToken('YY', match1to2, match2); - addRegexToken('YYYY', match1to4, match4); - addRegexToken('YYYYY', match1to6, match6); - addRegexToken('YYYYYY', match1to6, match6); + var _reactDom2 = _interopRequireDefault(_reactDom); - addParseToken(['YYYYY', 'YYYYYY'], YEAR); - addParseToken('YYYY', function (input, array) { - array[YEAR] = - input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input); - }); - addParseToken('YY', function (input, array) { - array[YEAR] = hooks.parseTwoDigitYear(input); - }); - addParseToken('Y', function (input, array) { - array[YEAR] = parseInt(input, 10); - }); + var _propTypes = __webpack_require__(6); - // HELPERS + var _propTypes2 = _interopRequireDefault(_propTypes); - function daysInYear(year) { - return isLeapYear(year) ? 366 : 365; - } + var _tinperBeeCore = __webpack_require__(27); - // HOOKS + var _reactLifecyclesCompat = __webpack_require__(81); - hooks.parseTwoDigitYear = function (input) { - return toInt(input) + (toInt(input) > 68 ? 1900 : 2000); - }; + var _moment = __webpack_require__(423); - // MOMENTS + var _moment2 = _interopRequireDefault(_moment); - var getSetYear = makeGetSet('FullYear', true); + var _util = __webpack_require__(559); - function getIsLeapYear() { - return isLeapYear(this.year()); - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - function createDate(y, m, d, h, M, s, ms) { - // can't just apply() to create a date: - // https://stackoverflow.com/q/181348 - var date; - // the date constructor remaps years 0-99 to 1900-1999 - if (y < 100 && y >= 0) { - // preserve leap years using a full 400 year cycle, then reset - date = new Date(y + 400, m, d, h, M, s, ms); - if (isFinite(date.getFullYear())) { - date.setFullYear(y); - } - } else { - date = new Date(y, m, d, h, M, s, ms); - } + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - return date; - } + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - function createUTCDate(y) { - var date, args; - // the Date.UTC function remaps years 0-99 to 1900-1999 - if (y < 100 && y >= 0) { - args = Array.prototype.slice.call(arguments); - // preserve leap years using a full 400 year cycle, then reset - args[0] = y + 400; - date = new Date(Date.UTC.apply(null, args)); - if (isFinite(date.getUTCFullYear())) { - date.setUTCFullYear(y); - } - } else { - date = new Date(Date.UTC.apply(null, arguments)); - } + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - return date; - } + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - // start-of-first-week - start-of-year - function firstWeekOffset(year, dow, doy) { - var // first-week day -- which january is always in the first week (4 for iso, 1 for other) - fwd = 7 + dow - doy, - // first-week day local weekday -- which local weekday is fwd - fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7; + var cachedSelectionStart = void 0; + var cachedSelectionEnd = void 0; + var dateInputInstance = void 0; - return -fwdlw + fwd - 1; - } + var DateInput = function (_React$Component) { + _inherits(DateInput, _React$Component); - // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday - function dayOfYearFromWeeks(year, week, weekday, dow, doy) { - var localWeekday = (7 + weekday - dow) % 7, - weekOffset = firstWeekOffset(year, dow, doy), - dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset, - resYear, - resDayOfYear; + function DateInput(props) { + _classCallCheck(this, DateInput); - if (dayOfYear <= 0) { - resYear = year - 1; - resDayOfYear = daysInYear(resYear) + dayOfYear; - } else if (dayOfYear > daysInYear(year)) { - resYear = year + 1; - resDayOfYear = dayOfYear - daysInYear(year); - } else { - resYear = year; - resDayOfYear = dayOfYear; - } + var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); - return { - year: resYear, - dayOfYear: resDayOfYear, - }; - } + _initialiseProps.call(_this); - function weekOfYear(mom, dow, doy) { - var weekOffset = firstWeekOffset(mom.year(), dow, doy), - week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1, - resWeek, - resYear; + var selectedValue = props.selectedValue; - if (week < 1) { - resYear = mom.year() - 1; - resWeek = week + weeksInYear(resYear, dow, doy); - } else if (week > weeksInYear(mom.year(), dow, doy)) { - resWeek = week - weeksInYear(mom.year(), dow, doy); - resYear = mom.year() + 1; - } else { - resYear = mom.year(); - resWeek = week; - } + _this.state = { + str: (0, _util.formatDate)(selectedValue, _this.props.format), + invalid: false, + hasFocus: false + }; + return _this; + } - return { - week: resWeek, - year: resYear, - }; + DateInput.prototype.componentDidUpdate = function componentDidUpdate() { + if (dateInputInstance && this.state.hasFocus && !this.state.invalid && !(cachedSelectionStart === 0 && cachedSelectionEnd === 0)) { + dateInputInstance.setSelectionRange(cachedSelectionStart, cachedSelectionEnd); } + }; - function weeksInYear(year, dow, doy) { - var weekOffset = firstWeekOffset(year, dow, doy), - weekOffsetNext = firstWeekOffset(year + 1, dow, doy); - return (daysInYear(year) - weekOffset + weekOffsetNext) / 7; - } + DateInput.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, state) { + var newState = {}; - // FORMATTING + if (dateInputInstance) { + cachedSelectionStart = dateInputInstance.selectionStart; + cachedSelectionEnd = dateInputInstance.selectionEnd; + } + // when popup show, click body will call this, bug! + var selectedValue = nextProps.selectedValue; + if (!state.hasFocus) { + newState = { + str: (0, _util.formatDate)(selectedValue, nextProps.format), + invalid: false + }; + } - addFormatToken('w', ['ww', 2], 'wo', 'week'); - addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek'); + return newState; + }; - // ALIASES + DateInput.getInstance = function getInstance() { + return dateInputInstance; + }; - addUnitAlias('week', 'w'); - addUnitAlias('isoWeek', 'W'); + DateInput.prototype.render = function render() { + var props = this.props; + var _state = this.state, + invalid = _state.invalid, + str = _state.str; + var locale = props.locale, + prefixCls = props.prefixCls, + placeholder = props.placeholder, + clearIcon = props.clearIcon, + renderError = props.renderError, + inputTabIndex = props.inputTabIndex; - // PRIORITIES + var invalidClass = invalid ? prefixCls + '-input-invalid' : ''; + return _react2["default"].createElement( + 'div', + { className: prefixCls + '-input-wrap' }, + _react2["default"].createElement( + 'div', + { className: prefixCls + '-date-input-wrap' }, + _react2["default"].createElement('input', { + ref: this.saveDateInput, + className: prefixCls + '-input ' + invalidClass, + value: str ? str : (0, _util.formatDate)(props.selectedValue, props.format), + disabled: props.disabled, + placeholder: placeholder, + onChange: this.onInputChange, + onKeyDown: this.onKeyDown, + onFocus: this.onFocus, + onBlur: this.onBlur, + tabIndex: inputTabIndex + }), + invalid && renderError ? renderError() : '' + ), + props.showClear ? _react2["default"].createElement( + 'a', + { + role: 'button', + title: locale.clear, + onClick: this.onClear + }, + clearIcon || _react2["default"].createElement('span', { className: prefixCls + '-clear-btn uf uf-close-c' }) + ) : null + ); + }; - addUnitPriority('week', 5); - addUnitPriority('isoWeek', 5); + return DateInput; + }(_react2["default"].Component); - // PARSING + DateInput.propTypes = { + prefixCls: _propTypes2["default"].string, + timePicker: _propTypes2["default"].object, + value: _propTypes2["default"].object, + disabledTime: _propTypes2["default"].any, + format: _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].arrayOf(_propTypes2["default"].string)]), + locale: _propTypes2["default"].object, + disabledDate: _propTypes2["default"].func, + onChange: _propTypes2["default"].func, + onClear: _propTypes2["default"].func, + placeholder: _propTypes2["default"].string, + onSelect: _propTypes2["default"].func, + selectedValue: _propTypes2["default"].object, + clearIcon: _propTypes2["default"].node + }; - addRegexToken('w', match1to2); - addRegexToken('ww', match1to2, match2); - addRegexToken('W', match1to2); - addRegexToken('WW', match1to2, match2); + var _initialiseProps = function _initialiseProps() { + var _this2 = this; - addWeekParseToken(['w', 'ww', 'W', 'WW'], function ( - input, - week, - config, - token - ) { - week[token.substr(0, 1)] = toInt(input); + this.onClear = function () { + _this2.setState({ + str: '' }); + _this2.props.onClear(null); + }; - // HELPERS + this.onInputChange = function (event) { + var str = event.target.value; + var _props = _this2.props, + disabledDate = _props.disabledDate, + format = _props.format, + onChange = _props.onChange, + selectedValue = _props.selectedValue, + validatorFunc = _props.validatorFunc; - // LOCALES + // 没有内容,合法并直接退出 - function localeWeek(mom) { - return weekOfYear(mom, this._week.dow, this._week.doy).week; + if (!str) { + onChange(null); + _this2.setState({ + // invalid: false, + str: str + }); + return; } - var defaultLocaleWeek = { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. + // 不合法直接退出 + var parsed = (0, _moment2["default"])(str, format, true); + if (!parsed.isValid()) { + _this2.setState({ + // invalid: true, + str: str + }); + return; + } + if (!_this2.props.validatorFunc(str)) { + _this2.setState({ + str: str + }); + return; }; - function localeFirstDayOfWeek() { - return this._week.dow; + var value = _this2.props.value.clone(); + value.year(parsed.year()).month(parsed.month()).date(parsed.date()).hour(parsed.hour()).minute(parsed.minute()).second(parsed.second()); + + if (!value || disabledDate && disabledDate(value)) { + _this2.setState({ + // invalid: true, + str: str + }); + return; } - function localeFirstDayOfYear() { - return this._week.doy; + if (selectedValue !== value || selectedValue && value && !selectedValue.isSame(value)) { + _this2.setState({ + // invalid: false, + str: str + }); + onChange(value); } + }; - // MOMENTS + this.onFocus = function () { + _this2.setState({ hasFocus: true }); + }; - function getSetWeek(input) { - var week = this.localeData().week(this); - return input == null ? week : this.add((input - week) * 7, 'd'); - } + this.onBlur = function (e) { + var str = e.target.value; + var _props2 = _this2.props, + disabledDate = _props2.disabledDate, + format = _props2.format, + onChange = _props2.onChange, + selectedValue = _props2.selectedValue; - function getSetISOWeek(input) { - var week = weekOfYear(this, 1, 4).week; - return input == null ? week : this.add((input - week) * 7, 'd'); + // 没有内容,合法并直接退出 + + if (!str) { + _this2.setState({ + invalid: false + }); + return; } - // FORMATTING + // 不合法直接退出 + var parsed = (0, _moment2["default"])(str, format, true); + if (!parsed.isValid()) { + _this2.setState({ + invalid: true + }); + return; + } + if (!_this2.props.validatorFunc(str)) { + _this2.setState({ + invalid: true + }); + return; + }; - addFormatToken('d', 0, 'do', 'day'); + var value = _this2.props.value.clone(); + value.year(parsed.year()).month(parsed.month()).date(parsed.date()).hour(parsed.hour()).minute(parsed.minute()).second(parsed.second()); - addFormatToken('dd', 0, 0, function (format) { - return this.localeData().weekdaysMin(this, format); - }); + if (!value || disabledDate && disabledDate(value)) { + _this2.setState({ + invalid: true + }); + return; + } - addFormatToken('ddd', 0, 0, function (format) { - return this.localeData().weekdaysShort(this, format); - }); + if (selectedValue !== value || selectedValue && value && !selectedValue.isSame(value)) { + _this2.setState({ + invalid: false + }); + } - addFormatToken('dddd', 0, 0, function (format) { - return this.localeData().weekdays(this, format); + _this2.setState(function (prevState, prevProps) { + return { + hasFocus: false, + str: (0, _util.formatDate)(prevProps.value, prevProps.format) + }; }); + _this2.props.onBlur && _this2.props.onBlur(e); + }; - addFormatToken('e', 0, 0, 'weekday'); - addFormatToken('E', 0, 0, 'isoWeekday'); - - // ALIASES + this.onKeyDown = function (e) { + var _props3 = _this2.props, + onSelect = _props3.onSelect, + value = _props3.value, + onKeyDown = _props3.onKeyDown, + format = _props3.format, + isRange = _props3.isRange, + validatorFunc = _props3.validatorFunc, + disabledDate = _props3.disabledDate; - addUnitAlias('day', 'd'); - addUnitAlias('weekday', 'e'); - addUnitAlias('isoWeekday', 'E'); + var str = e.target.value; + var parsed = (0, _moment2["default"])(str, format, true); + if (e.keyCode === _tinperBeeCore.KeyCode.ENTER) { + if (parsed.isValid() && onSelect) { + isRange ? onSelect(parsed.clone()) : onSelect(value.clone()); //FIX https://github.com/iuap-design/tinper-bee/issues/183 + } + // 没有内容,回填默认值,并关闭面板 + if (!str) { + _this2.setState({ + invalid: false + }); + onSelect && onSelect((0, _moment2["default"])()); + return; + } + // 有内容,判断是否合法 + if (!parsed.isValid()) { + _this2.setState({ + invalid: true + }); + } + if (!validatorFunc(str)) { + _this2.setState({ + invalid: true + }); + } + value.year(parsed.year()).month(parsed.month()).date(parsed.date()).hour(parsed.hour()).minute(parsed.minute()).second(parsed.second()); - // PRIORITY - addUnitPriority('day', 11); - addUnitPriority('weekday', 11); - addUnitPriority('isoWeekday', 11); + if (!value || disabledDate && disabledDate(value)) { + _this2.setState({ + invalid: true + }); + } + } + // if (e.keyCode === KeyCode.ENTER && onSelect) { + // onSelect(value.clone()); + // } + onKeyDown && onKeyDown(e); + }; - // PARSING + this.getRootDOMNode = function () { + return _reactDom2["default"].findDOMNode(_this2); + }; - addRegexToken('d', match1to2); - addRegexToken('e', match1to2); - addRegexToken('E', match1to2); - addRegexToken('dd', function (isStrict, locale) { - return locale.weekdaysMinRegex(isStrict); - }); - addRegexToken('ddd', function (isStrict, locale) { - return locale.weekdaysShortRegex(isStrict); - }); - addRegexToken('dddd', function (isStrict, locale) { - return locale.weekdaysRegex(isStrict); - }); + this.focus = function () { + if (dateInputInstance) { + dateInputInstance.focus(); + } + }; - addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) { - var weekday = config._locale.weekdaysParse(input, token, config._strict); - // if we didn't get a weekday name, mark the date as invalid - if (weekday != null) { - week.d = weekday; - } else { - getParsingFlags(config).invalidWeekday = input; - } - }); + this.saveDateInput = function (dateInput) { + dateInputInstance = dateInput; + }; + }; - addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) { - week[token] = toInt(input); - }); + (0, _reactLifecyclesCompat.polyfill)(DateInput); - // HELPERS + exports["default"] = DateInput; + module.exports = exports['default']; + +/***/ }), +/* 565 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - function parseWeekday(input, locale) { - if (typeof input !== 'string') { - return input; - } + Object.defineProperty(exports, "__esModule", { + value: true + }); - if (!isNaN(input)) { - return parseInt(input, 10); - } + var _react = __webpack_require__(1); - input = locale.weekdaysParse(input); - if (typeof input === 'number') { - return input; - } + var _react2 = _interopRequireDefault(_react); - return null; - } + var _propTypes = __webpack_require__(6); - function parseIsoWeekday(input, locale) { - if (typeof input === 'string') { - return locale.weekdaysParse(input) % 7 || 7; - } - return isNaN(input) ? null : input; - } + var _propTypes2 = _interopRequireDefault(_propTypes); - // LOCALES - function shiftWeekdays(ws, n) { - return ws.slice(n, 7).concat(ws.slice(0, n)); - } + var _classnames = __webpack_require__(5); - var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( - '_' - ), - defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - defaultWeekdaysRegex = matchWord, - defaultWeekdaysShortRegex = matchWord, - defaultWeekdaysMinRegex = matchWord; + var _classnames2 = _interopRequireDefault(_classnames); - function localeWeekdays(m, format) { - var weekdays = isArray(this._weekdays) - ? this._weekdays - : this._weekdays[ - m && m !== true && this._weekdays.isFormat.test(format) - ? 'format' - : 'standalone' - ]; - return m === true - ? shiftWeekdays(weekdays, this._week.dow) - : m - ? weekdays[m.day()] - : weekdays; - } + var _DecadePanel = __webpack_require__(566); - function localeWeekdaysShort(m) { - return m === true - ? shiftWeekdays(this._weekdaysShort, this._week.dow) - : m - ? this._weekdaysShort[m.day()] - : this._weekdaysShort; - } + var _DecadePanel2 = _interopRequireDefault(_DecadePanel); - function localeWeekdaysMin(m) { - return m === true - ? shiftWeekdays(this._weekdaysMin, this._week.dow) - : m - ? this._weekdaysMin[m.day()] - : this._weekdaysMin; - } + var _DateInput = __webpack_require__(564); - function handleStrictParse$1(weekdayName, format, strict) { - var i, - ii, - mom, - llc = weekdayName.toLocaleLowerCase(); - if (!this._weekdaysParse) { - this._weekdaysParse = []; - this._shortWeekdaysParse = []; - this._minWeekdaysParse = []; + var _DateInput2 = _interopRequireDefault(_DateInput); - for (i = 0; i < 7; ++i) { - mom = createUTC([2000, 1]).day(i); - this._minWeekdaysParse[i] = this.weekdaysMin( - mom, - '' - ).toLocaleLowerCase(); - this._shortWeekdaysParse[i] = this.weekdaysShort( - mom, - '' - ).toLocaleLowerCase(); - this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase(); - } - } + var _moment = __webpack_require__(423); - if (strict) { - if (format === 'dddd') { - ii = indexOf.call(this._weekdaysParse, llc); - return ii !== -1 ? ii : null; - } else if (format === 'ddd') { - ii = indexOf.call(this._shortWeekdaysParse, llc); - return ii !== -1 ? ii : null; - } else { - ii = indexOf.call(this._minWeekdaysParse, llc); - return ii !== -1 ? ii : null; - } - } else { - if (format === 'dddd') { - ii = indexOf.call(this._weekdaysParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._shortWeekdaysParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._minWeekdaysParse, llc); - return ii !== -1 ? ii : null; - } else if (format === 'ddd') { - ii = indexOf.call(this._shortWeekdaysParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._weekdaysParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._minWeekdaysParse, llc); - return ii !== -1 ? ii : null; - } else { - ii = indexOf.call(this._minWeekdaysParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._weekdaysParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._shortWeekdaysParse, llc); - return ii !== -1 ? ii : null; - } - } - } + var _moment2 = _interopRequireDefault(_moment); - function localeWeekdaysParse(weekdayName, format, strict) { - var i, mom, regex; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - if (this._weekdaysParseExact) { - return handleStrictParse$1.call(this, weekdayName, format, strict); - } + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - if (!this._weekdaysParse) { - this._weekdaysParse = []; - this._minWeekdaysParse = []; - this._shortWeekdaysParse = []; - this._fullWeekdaysParse = []; - } + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - for (i = 0; i < 7; i++) { - // make the regex if we don't have it already + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - mom = createUTC([2000, 1]).day(i); - if (strict && !this._fullWeekdaysParse[i]) { - this._fullWeekdaysParse[i] = new RegExp( - '^' + this.weekdays(mom, '').replace('.', '\\.?') + '$', - 'i' - ); - this._shortWeekdaysParse[i] = new RegExp( - '^' + this.weekdaysShort(mom, '').replace('.', '\\.?') + '$', - 'i' - ); - this._minWeekdaysParse[i] = new RegExp( - '^' + this.weekdaysMin(mom, '').replace('.', '\\.?') + '$', - 'i' - ); - } - if (!this._weekdaysParse[i]) { - regex = - '^' + - this.weekdays(mom, '') + - '|^' + - this.weekdaysShort(mom, '') + - '|^' + - this.weekdaysMin(mom, ''); - this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i'); - } - // test the regex - if ( - strict && - format === 'dddd' && - this._fullWeekdaysParse[i].test(weekdayName) - ) { - return i; - } else if ( - strict && - format === 'ddd' && - this._shortWeekdaysParse[i].test(weekdayName) - ) { - return i; - } else if ( - strict && - format === 'dd' && - this._minWeekdaysParse[i].test(weekdayName) - ) { - return i; - } else if (!strict && this._weekdaysParse[i].test(weekdayName)) { - return i; - } - } - } + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - // MOMENTS + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - function getSetDayOfWeek(input) { - if (!this.isValid()) { - return input != null ? this : NaN; - } - var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay(); - if (input != null) { - input = parseWeekday(input, this.localeData()); - return this.add(input - day, 'd'); - } else { - return day; - } - } + var ROW = 4; + var COL = 3; - function getSetLocaleDayOfWeek(input) { - if (!this.isValid()) { - return input != null ? this : NaN; - } - var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7; - return input == null ? weekday : this.add(input - weekday, 'd'); - } + function goYear(direction) { + var value = this.state.value.clone(); + value.add(direction, 'year'); + this.setState({ + value: value + }); + } - function getSetISODayOfWeek(input) { - if (!this.isValid()) { - return input != null ? this : NaN; - } + function chooseYear(year) { + var value = this.state.value.clone(); + value.year(year); + value.month(this.state.value.month()); + this.props.onSelect(value); + } - // behaves the same as moment#day except - // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6) - // as a setter, sunday should belong to the previous week. + var YearPanel = function (_React$Component) { + _inherits(YearPanel, _React$Component); - if (input != null) { - var weekday = parseIsoWeekday(input, this.localeData()); - return this.day(this.day() % 7 ? weekday : weekday - 7); - } else { - return this.day() || 7; - } - } + function YearPanel(props) { + _classCallCheck(this, YearPanel); - function weekdaysRegex(isStrict) { - if (this._weekdaysParseExact) { - if (!hasOwnProp(this, '_weekdaysRegex')) { - computeWeekdaysParse.call(this); - } - if (isStrict) { - return this._weekdaysStrictRegex; - } else { - return this._weekdaysRegex; - } - } else { - if (!hasOwnProp(this, '_weekdaysRegex')) { - this._weekdaysRegex = defaultWeekdaysRegex; - } - return this._weekdaysStrictRegex && isStrict - ? this._weekdaysStrictRegex - : this._weekdaysRegex; - } - } + var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); - function weekdaysShortRegex(isStrict) { - if (this._weekdaysParseExact) { - if (!hasOwnProp(this, '_weekdaysRegex')) { - computeWeekdaysParse.call(this); - } - if (isStrict) { - return this._weekdaysShortStrictRegex; - } else { - return this._weekdaysShortRegex; - } - } else { - if (!hasOwnProp(this, '_weekdaysShortRegex')) { - this._weekdaysShortRegex = defaultWeekdaysShortRegex; - } - return this._weekdaysShortStrictRegex && isStrict - ? this._weekdaysShortStrictRegex - : this._weekdaysShortRegex; - } - } + _this.yearSelect = function (value) { + var _this$props = _this.props, + onSelect = _this$props.onSelect, + format = _this$props.format; - function weekdaysMinRegex(isStrict) { - if (this._weekdaysParseExact) { - if (!hasOwnProp(this, '_weekdaysRegex')) { - computeWeekdaysParse.call(this); - } - if (isStrict) { - return this._weekdaysMinStrictRegex; - } else { - return this._weekdaysMinRegex; - } - } else { - if (!hasOwnProp(this, '_weekdaysMinRegex')) { - this._weekdaysMinRegex = defaultWeekdaysMinRegex; - } - return this._weekdaysMinStrictRegex && isStrict - ? this._weekdaysMinStrictRegex - : this._weekdaysMinRegex; - } - } + onSelect && onSelect(value, value ? value.format(format) : ''); + }; - function computeWeekdaysParse() { - function cmpLenRev(a, b) { - return b.length - a.length; - } + _this.onInputChange = function (value) { + var _this$props2 = _this.props, + onChange = _this$props2.onChange, + format = _this$props2.format; - var minPieces = [], - shortPieces = [], - longPieces = [], - mixedPieces = [], - i, - mom, - minp, - shortp, - longp; - for (i = 0; i < 7; i++) { - // make the regex if we don't have it already - mom = createUTC([2000, 1]).day(i); - minp = regexEscape(this.weekdaysMin(mom, '')); - shortp = regexEscape(this.weekdaysShort(mom, '')); - longp = regexEscape(this.weekdays(mom, '')); - minPieces.push(minp); - shortPieces.push(shortp); - longPieces.push(longp); - mixedPieces.push(minp); - mixedPieces.push(shortp); - mixedPieces.push(longp); - } - // Sorting makes sure if one weekday (or abbr) is a prefix of another it - // will match the longer piece. - minPieces.sort(cmpLenRev); - shortPieces.sort(cmpLenRev); - longPieces.sort(cmpLenRev); - mixedPieces.sort(cmpLenRev); + _this.setState({ + value: value ? value : (0, _moment2["default"])() + }); + onChange && onChange(value, value ? value.format(format) : ''); + }; - this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i'); - this._weekdaysShortRegex = this._weekdaysRegex; - this._weekdaysMinRegex = this._weekdaysRegex; + _this.onClear = function () { + var _this$props3 = _this.props, + onChange = _this$props3.onChange, + format = _this$props3.format, + onClear = _this$props3.onClear; - this._weekdaysStrictRegex = new RegExp( - '^(' + longPieces.join('|') + ')', - 'i' - ); - this._weekdaysShortStrictRegex = new RegExp( - '^(' + shortPieces.join('|') + ')', - 'i' - ); - this._weekdaysMinStrictRegex = new RegExp( - '^(' + minPieces.join('|') + ')', - 'i' - ); - } + _this.setState({ + value: (0, _moment2["default"])() + }); + onChange && onChange('', ''); + onClear && onClear('', ''); + }; - // FORMATTING + _this.prefixCls = props.rootPrefixCls + '-year-panel'; + _this.state = { + value: props.value || props.defaultValue || (0, _moment2["default"])() + }; + _this.nextDecade = goYear.bind(_this, 10); + _this.previousDecade = goYear.bind(_this, -10); + ['showDecadePanel', 'onDecadePanelSelect'].forEach(function (method) { + _this[method] = _this[method].bind(_this); + }); + return _this; + } - function hFormat() { - return this.hours() % 12 || 12; - } + YearPanel.prototype.onDecadePanelSelect = function onDecadePanelSelect(current) { + this.setState({ + value: current, + showDecadePanel: 0 + }); + }; - function kFormat() { - return this.hours() || 24; + YearPanel.prototype.years = function years() { + var value = this.state.value; + var currentYear = value.year(); + var startYear = parseInt(currentYear / 10, 10) * 10; + var previousYear = startYear - 1; + var years = []; + var index = 0; + for (var rowIndex = 0; rowIndex < ROW; rowIndex++) { + years[rowIndex] = []; + for (var colIndex = 0; colIndex < COL; colIndex++) { + var year = previousYear + index; + var content = String(year); + years[rowIndex][colIndex] = { + content: content, + year: year, + title: content + }; + index++; + } } + return years; + }; - addFormatToken('H', ['HH', 2], 0, 'hour'); - addFormatToken('h', ['hh', 2], 0, hFormat); - addFormatToken('k', ['kk', 2], 0, kFormat); - - addFormatToken('hmm', 0, 0, function () { - return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2); + YearPanel.prototype.showDecadePanel = function showDecadePanel() { + this.setState({ + showDecadePanel: 1 }); + }; - addFormatToken('hmmss', 0, 0, function () { - return ( - '' + - hFormat.apply(this) + - zeroFill(this.minutes(), 2) + - zeroFill(this.seconds(), 2) - ); - }); + YearPanel.prototype.render = function render() { + var _this2 = this; - addFormatToken('Hmm', 0, 0, function () { - return '' + this.hours() + zeroFill(this.minutes(), 2); - }); + var props = this.props; + var value = this.state.value; + var locale = props.locale; + var years = this.years(); + var currentYear = value.year(); + var startYear = parseInt(currentYear / 10, 10) * 10; + var endYear = startYear + 9; + var prefixCls = this.prefixCls; - addFormatToken('Hmmss', 0, 0, function () { - return ( - '' + - this.hours() + - zeroFill(this.minutes(), 2) + - zeroFill(this.seconds(), 2) + var yeasEls = years.map(function (row, index) { + var tds = row.map(function (yearData) { + var _classNameMap; + + var classNameMap = (_classNameMap = {}, _defineProperty(_classNameMap, prefixCls + '-cell', 1), _defineProperty(_classNameMap, prefixCls + '-selected-cell', yearData.year === currentYear), _defineProperty(_classNameMap, prefixCls + '-last-decade-cell', yearData.year < startYear), _defineProperty(_classNameMap, prefixCls + '-next-decade-cell', yearData.year > endYear), _classNameMap); + var clickHandler = void 0; + if (yearData.year < startYear) { + clickHandler = _this2.previousDecade; + } else if (yearData.year > endYear) { + clickHandler = _this2.nextDecade; + } else { + clickHandler = chooseYear.bind(_this2, yearData.year); + } + return _react2["default"].createElement( + 'td', + { + role: 'gridcell', + title: yearData.title, + key: yearData.content, + onClick: clickHandler, + className: (0, _classnames2["default"])(classNameMap) + }, + _react2["default"].createElement( + 'a', + { + className: prefixCls + '-year' + }, + yearData.content + ) ); + }); + return _react2["default"].createElement( + 'tr', + { key: index, role: 'row' }, + tds + ); }); - function meridiem(token, lowercase) { - addFormatToken(token, 0, 0, function () { - return this.localeData().meridiem( - this.hours(), - this.minutes(), - lowercase - ); - }); + var decadePanel = void 0; + if (this.state.showDecadePanel) { + decadePanel = _react2["default"].createElement(_DecadePanel2["default"], { + locale: locale, + value: value, + rootPrefixCls: props.rootPrefixCls, + onSelect: this.onDecadePanelSelect + }); } + var showDateInput = props.showDateInput, + rootPrefixCls = props.rootPrefixCls, + format = props.format, + validatorFunc = props.validatorFunc; - meridiem('a', true); - meridiem('A', false); - - // ALIASES + return _react2["default"].createElement( + 'div', + { className: this.prefixCls }, + _react2["default"].createElement( + 'div', + null, + showDateInput ? _react2["default"].createElement(_DateInput2["default"], { + value: value, + prefixCls: this.props.rootPrefixCls, + showClear: true, + locale: locale, + format: format, + onChange: this.onInputChange, + selectedValue: value, + onClear: this.onClear, + onSelect: this.yearSelect, + validatorFunc: validatorFunc + }) : '', + _react2["default"].createElement( + 'div', + { className: prefixCls + '-header' }, + _react2["default"].createElement('a', { + className: prefixCls + '-prev-decade-btn', + role: 'button', + onClick: this.previousDecade, + title: locale.previousDecade + }), + _react2["default"].createElement( + 'a', + { + className: prefixCls + '-decade-select', + role: 'button', + onClick: this.showDecadePanel, + title: locale.decadeSelect + }, + _react2["default"].createElement( + 'span', + { className: prefixCls + '-decade-select-content' }, + startYear, + '-', + endYear + ), + _react2["default"].createElement( + 'span', + { className: prefixCls + '-decade-select-arrow' }, + 'x' + ) + ), + _react2["default"].createElement('a', { + className: prefixCls + '-next-decade-btn', + role: 'button', + onClick: this.nextDecade, + title: locale.nextDecade + }) + ), + _react2["default"].createElement( + 'div', + { className: prefixCls + '-body' }, + _react2["default"].createElement( + 'table', + { className: prefixCls + '-table', cellSpacing: '0', role: 'grid' }, + _react2["default"].createElement( + 'tbody', + { className: prefixCls + '-tbody' }, + yeasEls + ) + ) + ) + ), + decadePanel + ); + }; - addUnitAlias('hour', 'h'); + return YearPanel; + }(_react2["default"].Component); - // PRIORITY - addUnitPriority('hour', 13); + exports["default"] = YearPanel; - // PARSING - function matchMeridiem(isStrict, locale) { - return locale._meridiemParse; - } + YearPanel.propTypes = { + rootPrefixCls: _propTypes2["default"].string, + value: _propTypes2["default"].object, + defaultValue: _propTypes2["default"].object + }; - addRegexToken('a', matchMeridiem); - addRegexToken('A', matchMeridiem); - addRegexToken('H', match1to2); - addRegexToken('h', match1to2); - addRegexToken('k', match1to2); - addRegexToken('HH', match1to2, match2); - addRegexToken('hh', match1to2, match2); - addRegexToken('kk', match1to2, match2); + YearPanel.defaultProps = { + onSelect: function onSelect() {}, - addRegexToken('hmm', match3to4); - addRegexToken('hmmss', match5to6); - addRegexToken('Hmm', match3to4); - addRegexToken('Hmmss', match5to6); + format: 'YYYY', + showDateInput: false + }; + module.exports = exports['default']; + +/***/ }), +/* 566 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - addParseToken(['H', 'HH'], HOUR); - addParseToken(['k', 'kk'], function (input, array, config) { - var kInput = toInt(input); - array[HOUR] = kInput === 24 ? 0 : kInput; - }); - addParseToken(['a', 'A'], function (input, array, config) { - config._isPm = config._locale.isPM(input); - config._meridiem = input; - }); - addParseToken(['h', 'hh'], function (input, array, config) { - array[HOUR] = toInt(input); - getParsingFlags(config).bigHour = true; - }); - addParseToken('hmm', function (input, array, config) { - var pos = input.length - 2; - array[HOUR] = toInt(input.substr(0, pos)); - array[MINUTE] = toInt(input.substr(pos)); - getParsingFlags(config).bigHour = true; - }); - addParseToken('hmmss', function (input, array, config) { - var pos1 = input.length - 4, - pos2 = input.length - 2; - array[HOUR] = toInt(input.substr(0, pos1)); - array[MINUTE] = toInt(input.substr(pos1, 2)); - array[SECOND] = toInt(input.substr(pos2)); - getParsingFlags(config).bigHour = true; - }); - addParseToken('Hmm', function (input, array, config) { - var pos = input.length - 2; - array[HOUR] = toInt(input.substr(0, pos)); - array[MINUTE] = toInt(input.substr(pos)); - }); - addParseToken('Hmmss', function (input, array, config) { - var pos1 = input.length - 4, - pos2 = input.length - 2; - array[HOUR] = toInt(input.substr(0, pos1)); - array[MINUTE] = toInt(input.substr(pos1, 2)); - array[SECOND] = toInt(input.substr(pos2)); - }); + Object.defineProperty(exports, "__esModule", { + value: true + }); - // LOCALES + var _react = __webpack_require__(1); - function localeIsPM(input) { - // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays - // Using charAt should be more compatible. - return (input + '').toLowerCase().charAt(0) === 'p'; - } + var _react2 = _interopRequireDefault(_react); - var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i, - // Setting the hour should keep the time, because the user explicitly - // specified which hour they want. So trying to maintain the same hour (in - // a new timezone) makes sense. Adding/subtracting hours does not follow - // this rule. - getSetHour = makeGetSet('Hours', true); + var _propTypes = __webpack_require__(6); - function localeMeridiem(hours, minutes, isLower) { - if (hours > 11) { - return isLower ? 'pm' : 'PM'; - } else { - return isLower ? 'am' : 'AM'; - } - } + var _propTypes2 = _interopRequireDefault(_propTypes); - var baseConfig = { - calendar: defaultCalendar, - longDateFormat: defaultLongDateFormat, - invalidDate: defaultInvalidDate, - ordinal: defaultOrdinal, - dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse, - relativeTime: defaultRelativeTime, + var _classnames = __webpack_require__(5); - months: defaultLocaleMonths, - monthsShort: defaultLocaleMonthsShort, + var _classnames2 = _interopRequireDefault(_classnames); - week: defaultLocaleWeek, + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - weekdays: defaultLocaleWeekdays, - weekdaysMin: defaultLocaleWeekdaysMin, - weekdaysShort: defaultLocaleWeekdaysShort, + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - meridiemParse: defaultLocaleMeridiemParse, - }; + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - // internal storage for locale config files - var locales = {}, - localeFamilies = {}, - globalLocale; + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - function commonPrefix(arr1, arr2) { - var i, - minl = Math.min(arr1.length, arr2.length); - for (i = 0; i < minl; i += 1) { - if (arr1[i] !== arr2[i]) { - return i; - } - } - return minl; - } + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - function normalizeLocale(key) { - return key ? key.toLowerCase().replace('_', '-') : key; - } + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - // pick the locale from the array - // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each - // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root - function chooseLocale(names) { - var i = 0, - j, - next, - locale, - split; + var ROW = 4; + var COL = 3; - while (i < names.length) { - split = normalizeLocale(names[i]).split('-'); - j = split.length; - next = normalizeLocale(names[i + 1]); - next = next ? next.split('-') : null; - while (j > 0) { - locale = loadLocale(split.slice(0, j).join('-')); - if (locale) { - return locale; - } - if ( - next && - next.length >= j && - commonPrefix(split, next) >= j - 1 - ) { - //the next array item is better than a shallower substring of this one - break; - } - j--; - } - i++; - } - return globalLocale; - } - function loadLocale(name) { - var oldLocale = null, - aliasedRequire; - // TODO: Find a better way to register and load all the locales in Node - if ( - locales[name] === undefined && - typeof module !== 'undefined' && - module && - module.exports - ) { - try { - oldLocale = globalLocale._abbr; - aliasedRequire = require; - __webpack_require__(1272)("./" + name); - getSetGlobalLocale(oldLocale); - } catch (e) { - // mark as not found to avoid repeating expensive file require call causing high CPU - // when trying to find en-US, en_US, en-us for every format call - locales[name] = null; // null means not found - } - } - return locales[name]; - } + function goYear(direction) { + var next = this.state.value.clone(); + next.add(direction, 'years'); + this.setState({ + value: next + }); + } - // This function will load locale and then set the global locale. If - // no arguments are passed in, it will simply return the current global - // locale key. - function getSetGlobalLocale(key, values) { - var data; - if (key) { - if (isUndefined(values)) { - data = getLocale(key); - } else { - data = defineLocale(key, values); - } + function chooseDecade(year, event) { + var next = this.state.value.clone(); + next.year(year); + next.month(this.state.value.month()); + this.props.onSelect(next); + event.preventDefault(); + } - if (data) { - // moment.duration._locale = moment._locale = data; - globalLocale = data; - } else { - if (typeof console !== 'undefined' && console.warn) { - //warn user if arguments are passed but the locale could not be set - console.warn( - 'Locale ' + key + ' not found. Did you forget to load it?' - ); - } - } - } + var DecadePanel = function (_React$Component) { + _inherits(DecadePanel, _React$Component); - return globalLocale._abbr; - } + function DecadePanel(props) { + _classCallCheck(this, DecadePanel); - function defineLocale(name, config) { - if (config !== null) { - var locale, - parentConfig = baseConfig; - config.abbr = name; - if (locales[name] != null) { - deprecateSimple( - 'defineLocaleOverride', - 'use moment.updateLocale(localeName, config) to change ' + - 'an existing locale. moment.defineLocale(localeName, ' + - 'config) should only be used for creating a new locale ' + - 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.' - ); - parentConfig = locales[name]._config; - } else if (config.parentLocale != null) { - if (locales[config.parentLocale] != null) { - parentConfig = locales[config.parentLocale]._config; - } else { - locale = loadLocale(config.parentLocale); - if (locale != null) { - parentConfig = locale._config; - } else { - if (!localeFamilies[config.parentLocale]) { - localeFamilies[config.parentLocale] = []; - } - localeFamilies[config.parentLocale].push({ - name: name, - config: config, - }); - return null; - } - } - } - locales[name] = new Locale(mergeConfigs(parentConfig, config)); + var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); - if (localeFamilies[name]) { - localeFamilies[name].forEach(function (x) { - defineLocale(x.name, x.config); - }); - } + _this.state = { + value: props.value || props.defaultValue + }; - // backwards compat for now: also set the locale - // make sure we set the locale AFTER all child locales have been - // created, so we won't end up with the child locale set. - getSetGlobalLocale(name); + // bind methods + _this.prefixCls = props.rootPrefixCls + '-decade-panel'; + _this.nextCentury = goYear.bind(_this, 100); + _this.previousCentury = goYear.bind(_this, -100); + return _this; + } - return locales[name]; - } else { - // useful for testing - delete locales[name]; - return null; - } - } + DecadePanel.prototype.render = function render() { + var _this2 = this; - function updateLocale(name, config) { - if (config != null) { - var locale, - tmpLocale, - parentConfig = baseConfig; + var value = this.state.value; + var _props = this.props, + locale = _props.locale, + renderFooter = _props.renderFooter; - if (locales[name] != null && locales[name].parentLocale != null) { - // Update existing child locale in-place to avoid memory-leaks - locales[name].set(mergeConfigs(locales[name]._config, config)); - } else { - // MERGE - tmpLocale = loadLocale(name); - if (tmpLocale != null) { - parentConfig = tmpLocale._config; - } - config = mergeConfigs(parentConfig, config); - if (tmpLocale == null) { - // updateLocale is called for creating a new locale - // Set abbr so it will have a name (getters return - // undefined otherwise). - config.abbr = name; - } - locale = new Locale(config); - locale.parentLocale = locales[name]; - locales[name] = locale; - } + var currentYear = value.year(); + var startYear = parseInt(currentYear / 100, 10) * 100; + var preYear = startYear - 10; + var endYear = startYear + 99; + var decades = []; + var index = 0; + var prefixCls = this.prefixCls; - // backwards compat for now: also set the locale - getSetGlobalLocale(name); - } else { - // pass null for config to unupdate, useful for tests - if (locales[name] != null) { - if (locales[name].parentLocale != null) { - locales[name] = locales[name].parentLocale; - if (name === getSetGlobalLocale()) { - getSetGlobalLocale(name); - } - } else if (locales[name] != null) { - delete locales[name]; - } - } - } - return locales[name]; + for (var rowIndex = 0; rowIndex < ROW; rowIndex++) { + decades[rowIndex] = []; + for (var colIndex = 0; colIndex < COL; colIndex++) { + var startDecade = preYear + index * 10; + var endDecade = preYear + index * 10 + 9; + decades[rowIndex][colIndex] = { + startDecade: startDecade, + endDecade: endDecade + }; + index++; + } } - // returns locale data - function getLocale(key) { - var locale; + var footer = renderFooter && renderFooter('decade'); - if (key && key._locale && key._locale._abbr) { - key = key._locale._abbr; - } + var decadesEls = decades.map(function (row, decadeIndex) { + var tds = row.map(function (decadeData) { + var _classNameMap; - if (!key) { - return globalLocale; + var dStartDecade = decadeData.startDecade; + var dEndDecade = decadeData.endDecade; + var isLast = dStartDecade < startYear; + var isNext = dEndDecade > endYear; + var classNameMap = (_classNameMap = {}, _defineProperty(_classNameMap, prefixCls + '-cell', 1), _defineProperty(_classNameMap, prefixCls + '-selected-cell', dStartDecade <= currentYear && currentYear <= dEndDecade), _defineProperty(_classNameMap, prefixCls + '-last-century-cell', isLast), _defineProperty(_classNameMap, prefixCls + '-next-century-cell', isNext), _classNameMap); + var content = dStartDecade + '-' + dEndDecade; + var clickHandler = void 0; + if (isLast) { + clickHandler = _this2.previousCentury; + } else if (isNext) { + clickHandler = _this2.nextCentury; + } else { + clickHandler = chooseDecade.bind(_this2, dStartDecade); } + return _react2["default"].createElement( + 'td', + { + key: dStartDecade, + onClick: clickHandler, + role: 'gridcell', + className: (0, _classnames2["default"])(classNameMap) + }, + _react2["default"].createElement( + 'a', + { + className: prefixCls + '-decade' + }, + content + ) + ); + }); + return _react2["default"].createElement( + 'tr', + { key: decadeIndex, role: 'row' }, + tds + ); + }); - if (!isArray(key)) { - //short-circuit everything else - locale = loadLocale(key); - if (locale) { - return locale; - } - key = [key]; - } + return _react2["default"].createElement( + 'div', + { className: this.prefixCls }, + _react2["default"].createElement( + 'div', + { className: prefixCls + '-header' }, + _react2["default"].createElement('a', { + className: prefixCls + '-prev-century-btn', + role: 'button', + onClick: this.previousCentury, + title: locale.previousCentury + }), + _react2["default"].createElement( + 'div', + { className: prefixCls + '-century' }, + startYear, + '-', + endYear + ), + _react2["default"].createElement('a', { + className: prefixCls + '-next-century-btn', + role: 'button', + onClick: this.nextCentury, + title: locale.nextCentury + }) + ), + _react2["default"].createElement( + 'div', + { className: prefixCls + '-body' }, + _react2["default"].createElement( + 'table', + { className: prefixCls + '-table', cellSpacing: '0', role: 'grid' }, + _react2["default"].createElement( + 'tbody', + { className: prefixCls + '-tbody' }, + decadesEls + ) + ) + ), + footer && _react2["default"].createElement( + 'div', + { className: prefixCls + '-footer' }, + footer + ) + ); + }; - return chooseLocale(key); - } + return DecadePanel; + }(_react2["default"].Component); - function listLocales() { - return keys(locales); - } + exports["default"] = DecadePanel; - function checkOverflow(m) { - var overflow, - a = m._a; - if (a && getParsingFlags(m).overflow === -2) { - overflow = - a[MONTH] < 0 || a[MONTH] > 11 - ? MONTH - : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) - ? DATE - : a[HOUR] < 0 || - a[HOUR] > 24 || - (a[HOUR] === 24 && - (a[MINUTE] !== 0 || - a[SECOND] !== 0 || - a[MILLISECOND] !== 0)) - ? HOUR - : a[MINUTE] < 0 || a[MINUTE] > 59 - ? MINUTE - : a[SECOND] < 0 || a[SECOND] > 59 - ? SECOND - : a[MILLISECOND] < 0 || a[MILLISECOND] > 999 - ? MILLISECOND - : -1; + DecadePanel.propTypes = { + locale: _propTypes2["default"].object, + value: _propTypes2["default"].object, + defaultValue: _propTypes2["default"].object, + rootPrefixCls: _propTypes2["default"].string, + renderFooter: _propTypes2["default"].func + }; - if ( - getParsingFlags(m)._overflowDayOfYear && - (overflow < YEAR || overflow > DATE) - ) { - overflow = DATE; - } - if (getParsingFlags(m)._overflowWeeks && overflow === -1) { - overflow = WEEK; - } - if (getParsingFlags(m)._overflowWeekday && overflow === -1) { - overflow = WEEKDAY; - } + DecadePanel.defaultProps = { + onSelect: function onSelect() {} + }; + module.exports = exports['default']; + +/***/ }), +/* 567 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - getParsingFlags(m).overflow = overflow; - } + Object.defineProperty(exports, "__esModule", { + value: true + }); - return m; - } + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - // iso 8601 regex - // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00) - var extendedIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, - basicIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, - tzRegex = /Z|[+-]\d\d(?::?\d\d)?/, - isoDates = [ - ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/], - ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/], - ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/], - ['GGGG-[W]WW', /\d{4}-W\d\d/, false], - ['YYYY-DDD', /\d{4}-\d{3}/], - ['YYYY-MM', /\d{4}-\d\d/, false], - ['YYYYYYMMDD', /[+-]\d{10}/], - ['YYYYMMDD', /\d{8}/], - ['GGGG[W]WWE', /\d{4}W\d{3}/], - ['GGGG[W]WW', /\d{4}W\d{2}/, false], - ['YYYYDDD', /\d{7}/], - ['YYYYMM', /\d{6}/, false], - ['YYYY', /\d{4}/, false], - ], - // iso time formats and regexes - isoTimes = [ - ['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/], - ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/], - ['HH:mm:ss', /\d\d:\d\d:\d\d/], - ['HH:mm', /\d\d:\d\d/], - ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/], - ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/], - ['HHmmss', /\d\d\d\d\d\d/], - ['HHmm', /\d\d\d\d/], - ['HH', /\d\d/], - ], - aspNetJsonRegex = /^\/?Date\((-?\d+)/i, - // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3 - rfc2822 = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/, - obsOffsets = { - UT: 0, - GMT: 0, - EDT: -4 * 60, - EST: -5 * 60, - CDT: -5 * 60, - CST: -6 * 60, - MDT: -6 * 60, - MST: -7 * 60, - PDT: -7 * 60, - PST: -8 * 60, - }; + var _react = __webpack_require__(1); - // date from iso format - function configFromISO(config) { - var i, - l, - string = config._i, - match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string), - allowTime, - dateFormat, - timeFormat, - tzFormat; + var _react2 = _interopRequireDefault(_react); - if (match) { - getParsingFlags(config).iso = true; + var _reactDom = __webpack_require__(2); - for (i = 0, l = isoDates.length; i < l; i++) { - if (isoDates[i][1].exec(match[1])) { - dateFormat = isoDates[i][0]; - allowTime = isoDates[i][2] !== false; - break; - } - } - if (dateFormat == null) { - config._isValid = false; - return; - } - if (match[3]) { - for (i = 0, l = isoTimes.length; i < l; i++) { - if (isoTimes[i][1].exec(match[3])) { - // match[2] should be 'T' or space - timeFormat = (match[2] || ' ') + isoTimes[i][0]; - break; - } - } - if (timeFormat == null) { - config._isValid = false; - return; - } - } - if (!allowTime && timeFormat != null) { - config._isValid = false; - return; - } - if (match[4]) { - if (tzRegex.exec(match[4])) { - tzFormat = 'Z'; - } else { - config._isValid = false; - return; - } - } - config._f = dateFormat + (timeFormat || '') + (tzFormat || ''); - configFromStringAndFormat(config); - } else { - config._isValid = false; - } - } + var _reactDom2 = _interopRequireDefault(_reactDom); - function extractFromRFC2822Strings( - yearStr, - monthStr, - dayStr, - hourStr, - minuteStr, - secondStr - ) { - var result = [ - untruncateYear(yearStr), - defaultLocaleMonthsShort.indexOf(monthStr), - parseInt(dayStr, 10), - parseInt(hourStr, 10), - parseInt(minuteStr, 10), - ]; + var _propTypes = __webpack_require__(6); - if (secondStr) { - result.push(parseInt(secondStr, 10)); - } + var _propTypes2 = _interopRequireDefault(_propTypes); - return result; - } + var _mapSelf = __webpack_require__(561); - function untruncateYear(yearStr) { - var year = parseInt(yearStr, 10); - if (year <= 49) { - return 2000 + year; - } else if (year <= 999) { - return 1900 + year; - } - return year; - } + var _mapSelf2 = _interopRequireDefault(_mapSelf); - function preprocessRFC2822(s) { - // Remove comments and folding whitespace and replace multiple-spaces with a single space - return s - .replace(/\([^)]*\)|[\n\t]/g, ' ') - .replace(/(\s\s+)/g, ' ') - .replace(/^\s\s*/, '') - .replace(/\s\s*$/, ''); - } + var _classnames = __webpack_require__(5); - function checkWeekday(weekdayStr, parsedInput, config) { - if (weekdayStr) { - // TODO: Replace the vanilla JS Date object with an independent day-of-week check. - var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr), - weekdayActual = new Date( - parsedInput[0], - parsedInput[1], - parsedInput[2] - ).getDay(); - if (weekdayProvided !== weekdayActual) { - getParsingFlags(config).weekdayMismatch = true; - config._isValid = false; - return false; - } - } - return true; - } + var _classnames2 = _interopRequireDefault(_classnames); - function calculateOffset(obsOffset, militaryOffset, numOffset) { - if (obsOffset) { - return obsOffsets[obsOffset]; - } else if (militaryOffset) { - // the only allowed military tz is Z - return 0; - } else { - var hm = parseInt(numOffset, 10), - m = hm % 100, - h = (hm - m) / 100; - return h * 60 + m; - } - } + var _TodayButton = __webpack_require__(568); - // date and time from ref 2822 format - function configFromRFC2822(config) { - var match = rfc2822.exec(preprocessRFC2822(config._i)), - parsedArray; - if (match) { - parsedArray = extractFromRFC2822Strings( - match[4], - match[3], - match[2], - match[5], - match[6], - match[7] - ); - if (!checkWeekday(match[1], parsedArray, config)) { - return; - } + var _TodayButton2 = _interopRequireDefault(_TodayButton); - config._a = parsedArray; - config._tzm = calculateOffset(match[8], match[9], match[10]); + var _OkButton = __webpack_require__(569); - config._d = createUTCDate.apply(null, config._a); - config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm); + var _OkButton2 = _interopRequireDefault(_OkButton); - getParsingFlags(config).rfc2822 = true; - } else { - config._isValid = false; - } - } + var _TimePickerButton = __webpack_require__(570); - // date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict - function configFromString(config) { - var matched = aspNetJsonRegex.exec(config._i); - if (matched !== null) { - config._d = new Date(+matched[1]); - return; - } + var _TimePickerButton2 = _interopRequireDefault(_TimePickerButton); - configFromISO(config); - if (config._isValid === false) { - delete config._isValid; - } else { - return; - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - configFromRFC2822(config); - if (config._isValid === false) { - delete config._isValid; - } else { - return; - } + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - if (config._strict) { - config._isValid = false; - } else { - // Final attempt, use Input Fallback - hooks.createFromInputFallback(config); - } - } + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - hooks.createFromInputFallback = deprecate( - 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' + - 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' + - 'discouraged and will be removed in an upcoming major release. Please refer to ' + - 'http://momentjs.com/guides/#/warnings/js-date/ for more info.', - function (config) { - config._d = new Date(config._i + (config._useUTC ? ' UTC' : '')); - } - ); + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - // Pick the first defined of two or three arguments. - function defaults(a, b, c) { - if (a != null) { - return a; - } - if (b != null) { - return b; - } - return c; - } + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - function currentDateArray(config) { - // hooks is actually the exported moment object - var nowValue = new Date(hooks.now()); - if (config._useUTC) { - return [ - nowValue.getUTCFullYear(), - nowValue.getUTCMonth(), - nowValue.getUTCDate(), - ]; - } - return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()]; - } + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - // convert an array to a date. - // the array should mirror the parameters below - // note: all values past the year are optional and will default to the lowest possible value. - // [year, month, day , hour, minute, second, millisecond] - function configFromArray(config) { - var i, - date, - input = [], - currentDate, - expectedWeekday, - yearToUse; + var CalendarFooter = function (_React$Component) { + _inherits(CalendarFooter, _React$Component); - if (config._d) { - return; - } + function CalendarFooter() { + _classCallCheck(this, CalendarFooter); - currentDate = currentDateArray(config); + return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); + } - //compute day of the year from weeks and weekdays - if (config._w && config._a[DATE] == null && config._a[MONTH] == null) { - dayOfYearFromWeekInfo(config); - } + CalendarFooter.prototype.onSelect = function onSelect(value) { + this.props.onSelect(value); + }; - //if the day of the year is set, figure out what it is - if (config._dayOfYear != null) { - yearToUse = defaults(config._a[YEAR], currentDate[YEAR]); + CalendarFooter.prototype.getRootDOMNode = function getRootDOMNode() { + return _reactDom2["default"].findDOMNode(this); + }; - if ( - config._dayOfYear > daysInYear(yearToUse) || - config._dayOfYear === 0 - ) { - getParsingFlags(config)._overflowDayOfYear = true; - } + CalendarFooter.prototype.render = function render() { + var props = this.props; + var value = props.value, + prefixCls = props.prefixCls, + showOk = props.showOk, + timePicker = props.timePicker, + renderFooter = props.renderFooter, + mode = props.mode; - date = createUTCDate(yearToUse, 0, config._dayOfYear); - config._a[MONTH] = date.getUTCMonth(); - config._a[DATE] = date.getUTCDate(); - } + var footerEl = null; + var extraFooter = renderFooter && renderFooter(mode); + if (props.showToday || timePicker || extraFooter) { + var nowEl = void 0; + if (props.showToday) { + nowEl = _react2["default"].createElement(_TodayButton2["default"], _extends({}, props, { value: value })); + } + var okBtn = void 0; + if (showOk === true || showOk !== false && !!props.timePicker) { + okBtn = _react2["default"].createElement(_OkButton2["default"], props); + } + var timePickerBtn = void 0; + if (!!props.timePicker) { + timePickerBtn = _react2["default"].createElement(_TimePickerButton2["default"], props); + } - // Default to current date. - // * if no year, month, day of month are given, default to today - // * if day of month is given, default month and year - // * if month is given, default only year - // * if year is given, don't default anything - for (i = 0; i < 3 && config._a[i] == null; ++i) { - config._a[i] = input[i] = currentDate[i]; - } + var footerBtn = void 0; + if (nowEl || timePickerBtn || okBtn || extraFooter) { + footerBtn = _react2["default"].createElement( + 'span', + { className: prefixCls + '-footer-btn' }, + extraFooter ? _react2["default"].createElement( + 'div', + { className: prefixCls + '-footer-extra' }, + extraFooter + ) : null, + (0, _mapSelf2["default"])([nowEl, timePickerBtn, okBtn]) + ); + } + var cls = (0, _classnames2["default"])(prefixCls + '-footer', _defineProperty({}, prefixCls + '-footer-show-ok', okBtn)); + footerEl = _react2["default"].createElement( + 'div', + { className: cls }, + footerBtn + ); + } + return footerEl; + }; - // Zero out whatever was not defaulted, including time - for (; i < 7; i++) { - config._a[i] = input[i] = - config._a[i] == null ? (i === 2 ? 1 : 0) : config._a[i]; - } + return CalendarFooter; + }(_react2["default"].Component); - // Check for 24:00:00.000 - if ( - config._a[HOUR] === 24 && - config._a[MINUTE] === 0 && - config._a[SECOND] === 0 && - config._a[MILLISECOND] === 0 - ) { - config._nextDay = true; - config._a[HOUR] = 0; - } + CalendarFooter.propTypes = { + prefixCls: _propTypes2["default"].string, + showDateInput: _propTypes2["default"].bool, + disabledTime: _propTypes2["default"].any, + timePicker: _propTypes2["default"].element, + selectedValue: _propTypes2["default"].any, + showOk: _propTypes2["default"].bool, + onSelect: _propTypes2["default"].func, + value: _propTypes2["default"].object, + renderFooter: _propTypes2["default"].func, + defaultValue: _propTypes2["default"].object, + mode: _propTypes2["default"].string + }; + exports["default"] = CalendarFooter; + module.exports = exports['default']; + +/***/ }), +/* 568 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - config._d = (config._useUTC ? createUTCDate : createDate).apply( - null, - input - ); - expectedWeekday = config._useUTC - ? config._d.getUTCDay() - : config._d.getDay(); + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports["default"] = TodayButton; - // Apply timezone offset from input. The actual utcOffset can be changed - // with parseZone. - if (config._tzm != null) { - config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm); - } + var _react = __webpack_require__(1); - if (config._nextDay) { - config._a[HOUR] = 24; - } + var _react2 = _interopRequireDefault(_react); - // check for mismatching day of week - if ( - config._w && - typeof config._w.d !== 'undefined' && - config._w.d !== expectedWeekday - ) { - getParsingFlags(config).weekdayMismatch = true; - } - } + var _util = __webpack_require__(559); - function dayOfYearFromWeekInfo(config) { - var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - w = config._w; - if (w.GG != null || w.W != null || w.E != null) { - dow = 1; - doy = 4; + function TodayButton(_ref) { + var prefixCls = _ref.prefixCls, + locale = _ref.locale, + value = _ref.value, + timePicker = _ref.timePicker, + disabled = _ref.disabled, + disabledDate = _ref.disabledDate, + onToday = _ref.onToday, + text = _ref.text; - // TODO: We need to take the current isoWeekYear, but that depends on - // how we interpret now (local, utc, fixed offset). So create - // a now version of current config (take local/utc/offset flags, and - // create now). - weekYear = defaults( - w.GG, - config._a[YEAR], - weekOfYear(createLocal(), 1, 4).year - ); - week = defaults(w.W, 1); - weekday = defaults(w.E, 1); - if (weekday < 1 || weekday > 7) { - weekdayOverflow = true; - } - } else { - dow = config._locale._week.dow; - doy = config._locale._week.doy; + var localeNow = (!text && timePicker ? locale.now : text) || locale.today; + var disabledToday = disabledDate && !(0, _util.isAllowedDate)((0, _util.getTodayTime)(value), disabledDate); + var isDisabled = disabledToday || disabled; + var disabledTodayClass = isDisabled ? prefixCls + '-today-btn-disabled' : ''; + return _react2["default"].createElement( + 'a', + { + className: prefixCls + '-today-btn ' + disabledTodayClass, + role: 'button', + onClick: isDisabled ? null : onToday, + title: (0, _util.getTodayTimeStr)(value) + }, + localeNow + ); + } + module.exports = exports['default']; + +/***/ }), +/* 569 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - curWeek = weekOfYear(createLocal(), dow, doy); + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports["default"] = OkButton; - weekYear = defaults(w.gg, config._a[YEAR], curWeek.year); + var _react = __webpack_require__(1); - // Default to current week. - week = defaults(w.w, curWeek.week); + var _react2 = _interopRequireDefault(_react); - if (w.d != null) { - // weekday -- low day numbers are considered next week - weekday = w.d; - if (weekday < 0 || weekday > 6) { - weekdayOverflow = true; - } - } else if (w.e != null) { - // local weekday -- counting starts from beginning of week - weekday = w.e + dow; - if (w.e < 0 || w.e > 6) { - weekdayOverflow = true; - } - } else { - // default to beginning of week - weekday = dow; - } - } - if (week < 1 || week > weeksInYear(weekYear, dow, doy)) { - getParsingFlags(config)._overflowWeeks = true; - } else if (weekdayOverflow != null) { - getParsingFlags(config)._overflowWeekday = true; - } else { - temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy); - config._a[YEAR] = temp.year; - config._dayOfYear = temp.dayOfYear; - } - } + var _beeButton = __webpack_require__(265); - // constant that refers to the ISO standard - hooks.ISO_8601 = function () {}; + var _beeButton2 = _interopRequireDefault(_beeButton); - // constant that refers to the RFC 2822 form - hooks.RFC_2822 = function () {}; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - // date from string and format string - function configFromStringAndFormat(config) { - // TODO: Move this to another part of the creation flow to prevent circular deps - if (config._f === hooks.ISO_8601) { - configFromISO(config); - return; - } - if (config._f === hooks.RFC_2822) { - configFromRFC2822(config); - return; - } - config._a = []; - getParsingFlags(config).empty = true; + function OkButton(_ref) { + var prefixCls = _ref.prefixCls, + locale = _ref.locale, + okDisabled = _ref.okDisabled, + onOk = _ref.onOk; - // This array is used to make a Date, either with `new Date` or `Date.UTC` - var string = '' + config._i, - i, - parsedInput, - tokens, - token, - skipped, - stringLength = string.length, - totalParsedInputLength = 0, - era; + var className = prefixCls + '-btn-ok'; + // if (okDisabled) { + // className += ` ${prefixCls}-ok-btn-disabled`; + // } + return _react2["default"].createElement( + _beeButton2["default"], + { + className: className, + size: 'sm', colors: 'primary', + disabled: !!okDisabled, + onClick: okDisabled ? null : onOk + }, + locale.ok + ); + } + module.exports = exports['default']; + +/***/ }), +/* 570 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - tokens = - expandFormat(config._f, config._locale).match(formattingTokens) || []; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports["default"] = TimePickerButton; - for (i = 0; i < tokens.length; i++) { - token = tokens[i]; - parsedInput = (string.match(getParseRegexForToken(token, config)) || - [])[0]; - // console.log('token', token, 'parsedInput', parsedInput, - // 'regex', getParseRegexForToken(token, config)); - if (parsedInput) { - skipped = string.substr(0, string.indexOf(parsedInput)); - if (skipped.length > 0) { - getParsingFlags(config).unusedInput.push(skipped); - } - string = string.slice( - string.indexOf(parsedInput) + parsedInput.length - ); - totalParsedInputLength += parsedInput.length; - } - // don't parse if it's not a known token - if (formatTokenFunctions[token]) { - if (parsedInput) { - getParsingFlags(config).empty = false; - } else { - getParsingFlags(config).unusedTokens.push(token); - } - addTimeToArrayFromToken(token, parsedInput, config); - } else if (config._strict && !parsedInput) { - getParsingFlags(config).unusedTokens.push(token); - } - } + var _react = __webpack_require__(1); - // add remaining unparsed input length to the string - getParsingFlags(config).charsLeftOver = - stringLength - totalParsedInputLength; - if (string.length > 0) { - getParsingFlags(config).unusedInput.push(string); - } + var _react2 = _interopRequireDefault(_react); - // clear _12h flag if hour is <= 12 - if ( - config._a[HOUR] <= 12 && - getParsingFlags(config).bigHour === true && - config._a[HOUR] > 0 - ) { - getParsingFlags(config).bigHour = undefined; - } + var _classnames2 = __webpack_require__(5); - getParsingFlags(config).parsedDateParts = config._a.slice(0); - getParsingFlags(config).meridiem = config._meridiem; - // handle meridiem - config._a[HOUR] = meridiemFixWrap( - config._locale, - config._a[HOUR], - config._meridiem - ); + var _classnames3 = _interopRequireDefault(_classnames2); - // handle era - era = getParsingFlags(config).era; - if (era !== null) { - config._a[YEAR] = config._locale.erasConvertYear(era, config._a[YEAR]); - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - configFromArray(config); - checkOverflow(config); - } + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - function meridiemFixWrap(locale, hour, meridiem) { - var isPm; + function TimePickerButton(_ref) { + var _classnames; - if (meridiem == null) { - // nothing to do - return hour; - } - if (locale.meridiemHour != null) { - return locale.meridiemHour(hour, meridiem); - } else if (locale.isPM != null) { - // Fallback - isPm = locale.isPM(meridiem); - if (isPm && hour < 12) { - hour += 12; - } - if (!isPm && hour === 12) { - hour = 0; - } - return hour; - } else { - // this is not supposed to happen - return hour; - } - } + var prefixCls = _ref.prefixCls, + locale = _ref.locale, + showTimePicker = _ref.showTimePicker, + onOpenTimePicker = _ref.onOpenTimePicker, + onCloseTimePicker = _ref.onCloseTimePicker, + timePickerDisabled = _ref.timePickerDisabled; - // date from string and array of format strings - function configFromStringAndArray(config) { - var tempConfig, - bestMoment, - scoreToBeat, - i, - currentScore, - validFormatFound, - bestFormatIsValid = false; + var className = (0, _classnames3["default"])((_classnames = {}, _defineProperty(_classnames, prefixCls + '-time-picker-btn', true), _defineProperty(_classnames, prefixCls + '-time-picker-btn-disabled', timePickerDisabled), _classnames)); + var onClick = null; + if (!timePickerDisabled) { + onClick = showTimePicker ? onCloseTimePicker : onOpenTimePicker; + } + return _react2["default"].createElement( + 'a', + { + className: className, + role: 'button', + onClick: onClick + }, + showTimePicker ? locale.dateSelect : locale.timeSelect + ); + } + module.exports = exports['default']; + +/***/ }), +/* 571 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - if (config._f.length === 0) { - getParsingFlags(config).invalidFormat = true; - config._d = new Date(NaN); - return; - } + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.calendarMixinWrapper = exports.calendarMixinDefaultProps = exports.calendarMixinPropTypes = undefined; + exports.getNowByCurrentStateValue = getNowByCurrentStateValue; - for (i = 0; i < config._f.length; i++) { - currentScore = 0; - validFormatFound = false; - tempConfig = copyConfig({}, config); - if (config._useUTC != null) { - tempConfig._useUTC = config._useUTC; - } - tempConfig._f = config._f[i]; - configFromStringAndFormat(tempConfig); + var _react = __webpack_require__(1); - if (isValid(tempConfig)) { - validFormatFound = true; - } + var _react2 = _interopRequireDefault(_react); - // if there is any input that was not parsed add a penalty for that format - currentScore += getParsingFlags(tempConfig).charsLeftOver; + var _propTypes = __webpack_require__(6); - //or tokens - currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10; + var _propTypes2 = _interopRequireDefault(_propTypes); - getParsingFlags(tempConfig).score = currentScore; + var _classnames = __webpack_require__(5); - if (!bestFormatIsValid) { - if ( - scoreToBeat == null || - currentScore < scoreToBeat || - validFormatFound - ) { - scoreToBeat = currentScore; - bestMoment = tempConfig; - if (validFormatFound) { - bestFormatIsValid = true; - } - } - } else { - if (currentScore < scoreToBeat) { - scoreToBeat = currentScore; - bestMoment = tempConfig; - } - } - } + var _classnames2 = _interopRequireDefault(_classnames); - extend(config, bestMoment || tempConfig); - } + var _moment = __webpack_require__(423); - function configFromObject(config) { - if (config._d) { - return; - } + var _moment2 = _interopRequireDefault(_moment); - var i = normalizeObjectUnits(config._i), - dayOrDate = i.day === undefined ? i.date : i.day; - config._a = map( - [i.year, i.month, dayOrDate, i.hour, i.minute, i.second, i.millisecond], - function (obj) { - return obj && parseInt(obj, 10); - } - ); + var _index = __webpack_require__(559); - configFromArray(config); - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - function createFromConfig(config) { - var res = new Moment(checkOverflow(prepareConfig(config))); - if (res._nextDay) { - // Adding is smart enough around DST - res.add(1, 'd'); - res._nextDay = undefined; - } + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - return res; - } + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - function prepareConfig(config) { - var input = config._i, - format = config._f; + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - config._locale = config._locale || getLocale(config._l); + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - if (input === null || (format === undefined && input === '')) { - return createInvalid({ nullInput: true }); - } + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - if (typeof input === 'string') { - config._i = input = config._locale.preparse(input); - } + function noop() {} - if (isMoment(input)) { - return new Moment(checkOverflow(input)); - } else if (isDate(input)) { - config._d = input; - } else if (isArray(format)) { - configFromStringAndArray(config); - } else if (format) { - configFromStringAndFormat(config); - } else { - configFromInput(config); - } + function getNowByCurrentStateValue(value) { + var ret = void 0; + if (value) { + ret = (0, _index.getTodayTime)(value); + } else { + ret = (0, _moment2["default"])(); + } + return ret; + } - if (!isValid(config)) { - config._d = null; - } + var calendarMixinPropTypes = exports.calendarMixinPropTypes = { + value: _propTypes2["default"].object, + defaultValue: _propTypes2["default"].object, + onKeyDown: _propTypes2["default"].func + }; - return config; - } + var calendarMixinDefaultProps = exports.calendarMixinDefaultProps = { + onKeyDown: noop + }; - function configFromInput(config) { - var input = config._i; - if (isUndefined(input)) { - config._d = new Date(hooks.now()); - } else if (isDate(input)) { - config._d = new Date(input.valueOf()); - } else if (typeof input === 'string') { - configFromString(config); - } else if (isArray(input)) { - config._a = map(input.slice(0), function (obj) { - return parseInt(obj, 10); - }); - configFromArray(config); - } else if (isObject(input)) { - configFromObject(config); - } else if (isNumber(input)) { - // from milliseconds - config._d = new Date(input); - } else { - hooks.createFromInputFallback(config); - } - } + var calendarMixinWrapper = exports.calendarMixinWrapper = function calendarMixinWrapper(ComposeComponent) { + var _class, _temp2; - function createLocalOrUTC(input, format, locale, strict, isUTC) { - var c = {}; + return _temp2 = _class = function (_ComposeComponent) { + _inherits(_class, _ComposeComponent); - if (format === true || format === false) { - strict = format; - format = undefined; - } + function _class() { + var _temp, _this, _ret; - if (locale === true || locale === false) { - strict = locale; - locale = undefined; - } + _classCallCheck(this, _class); - if ( - (isObject(input) && isObjectEmpty(input)) || - (isArray(input) && input.length === 0) - ) { - input = undefined; + for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + return _ret = (_temp = (_this = _possibleConstructorReturn(this, _ComposeComponent.call.apply(_ComposeComponent, [this].concat(args))), _this), _this.onSelect = function (value, cause) { + if (value) { + _this.setValue(value); } - // object construction must be done this way. - // https://github.com/moment/moment/issues/1423 - c._isAMomentObject = true; - c._useUTC = c._isUTC = isUTC; - c._l = locale; - c._i = input; - c._f = format; - c._strict = strict; + _this.setSelectedValue(value, cause); + }, _this.renderRoot = function (newProps) { + var _className; - return createFromConfig(c); - } + var props = _this.props; + var prefixCls = props.prefixCls; - function createLocal(input, format, locale, strict) { - return createLocalOrUTC(input, format, locale, strict, false); - } + var className = (_className = {}, _defineProperty(_className, prefixCls, 1), _defineProperty(_className, prefixCls + '-hidden', !props.visible), _defineProperty(_className, props.className, !!props.className), _defineProperty(_className, newProps.className, !!newProps.className), _className); - var prototypeMin = deprecate( - 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/', - function () { - var other = createLocal.apply(null, arguments); - if (this.isValid() && other.isValid()) { - return other < this ? this : other; - } else { - return createInvalid(); - } - } - ), - prototypeMax = deprecate( - 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/', - function () { - var other = createLocal.apply(null, arguments); - if (this.isValid() && other.isValid()) { - return other > this ? this : other; - } else { - return createInvalid(); - } - } + return _react2["default"].createElement( + 'div', + { + ref: _this.saveRoot, + className: '' + (0, _classnames2["default"])(className), + style: _this.props.style, + tabIndex: '0', + onKeyDown: _this.onKeyDown + }, + newProps.children ); - - // Pick a moment m from moments so that m[fn](other) is true for all - // other. This relies on the function fn to be transitive. - // - // moments should either be an array of moment objects or an array, whose - // first element is an array of moment objects. - function pickBy(fn, moments) { - var res, i; - if (moments.length === 1 && isArray(moments[0])) { - moments = moments[0]; + }, _this.setSelectedValue = function (selectedValue, cause) { + // if (this.isAllowedDate(selectedValue)) { + if (!('selectedValue' in _this.props)) { + _this.setState({ + selectedValue: selectedValue + }); } - if (!moments.length) { - return createLocal(); + if (_this.props.onSelect) { + _this.props.onSelect(selectedValue, cause); } - res = moments[0]; - for (i = 1; i < moments.length; ++i) { - if (!moments[i].isValid() || moments[i][fn](res)) { - res = moments[i]; - } + // } + }, _this.setValue = function (value) { + var originalValue = _this.state.value; + if (!('value' in _this.props)) { + _this.setState({ + value: value + }); } - return res; + if (originalValue && value && !originalValue.isSame(value) || !originalValue && value || originalValue && !value) { + _this.props.onChange(value); + } + }, _this.isAllowedDate = function (value) { + var disabledDate = _this.props.disabledDate; + var disabledTime = _this.props.disabledTime; + return (0, _index.isAllowedDate)(value, disabledDate, disabledTime); + }, _temp), _possibleConstructorReturn(_this, _ret); } - // TODO: Use [].sort instead? - function min() { - var args = [].slice.call(arguments, 0); + _class.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, prevState) { + // Use origin function if provided + if (ComposeComponent.getDerivedStateFromProps) { + return ComposeComponent.getDerivedStateFromProps(nextProps, prevState); + } - return pickBy('isBefore', args); - } + var value = nextProps.value, + selectedValue = nextProps.selectedValue; - function max() { - var args = [].slice.call(arguments, 0); + var newState = {}; - return pickBy('isAfter', args); - } + if ('value' in nextProps) { + newState.value = value || nextProps.defaultValue || getNowByCurrentStateValue(prevState.value); + } + if ('selectedValue' in nextProps) { + newState.selectedValue = selectedValue; + } - var now = function () { - return Date.now ? Date.now() : +new Date(); + return newState; }; - var ordering = [ - 'year', - 'quarter', - 'month', - 'week', - 'day', - 'hour', - 'minute', - 'second', - 'millisecond', - ]; - - function isDurationValid(m) { - var key, - unitHasDecimal = false, - i; - for (key in m) { - if ( - hasOwnProp(m, key) && - !( - indexOf.call(ordering, key) !== -1 && - (m[key] == null || !isNaN(m[key])) - ) - ) { - return false; - } - } - - for (i = 0; i < ordering.length; ++i) { - if (m[ordering[i]]) { - if (unitHasDecimal) { - return false; // only allow non-integers for smallest unit - } - if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) { - unitHasDecimal = true; - } - } - } - - return true; - } + return _class; + }(ComposeComponent), _class.displayName = 'CalendarMixinWrapper', _class.defaultProps = ComposeComponent.defaultProps, _temp2; + }; + +/***/ }), +/* 572 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - function isValid$1() { - return this._isValid; - } + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.commonMixinWrapper = exports.defaultProp = exports.propType = undefined; - function createInvalid$1() { - return createDuration(NaN); - } + var _propTypes = __webpack_require__(6); - function Duration(duration) { - var normalizedInput = normalizeObjectUnits(duration), - years = normalizedInput.year || 0, - quarters = normalizedInput.quarter || 0, - months = normalizedInput.month || 0, - weeks = normalizedInput.week || normalizedInput.isoWeek || 0, - days = normalizedInput.day || 0, - hours = normalizedInput.hour || 0, - minutes = normalizedInput.minute || 0, - seconds = normalizedInput.second || 0, - milliseconds = normalizedInput.millisecond || 0; + var _propTypes2 = _interopRequireDefault(_propTypes); - this._isValid = isDurationValid(normalizedInput); + var _en_US = __webpack_require__(573); - // representation for dateAddRemove - this._milliseconds = - +milliseconds + - seconds * 1e3 + // 1000 - minutes * 6e4 + // 1000 * 60 - hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978 - // Because of dateAddRemove treats 24 hours as different from a - // day when working around DST, we need to store them separately - this._days = +days + weeks * 7; - // It is impossible to translate months into days without knowing - // which months you are are talking about, so we have to store - // it separately. - this._months = +months + quarters * 3 + years * 12; + var _en_US2 = _interopRequireDefault(_en_US); - this._data = {}; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - this._locale = getLocale(); + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - this._bubble(); - } + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - function isDuration(obj) { - return obj instanceof Duration; - } + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - function absRound(number) { - if (number < 0) { - return Math.round(-1 * number) * -1; - } else { - return Math.round(number); - } - } + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - // compare two arrays, return the number of differences - function compareArrays(array1, array2, dontConvert) { - var len = Math.min(array1.length, array2.length), - lengthDiff = Math.abs(array1.length - array2.length), - diffs = 0, - i; - for (i = 0; i < len; i++) { - if ( - (dontConvert && array1[i] !== array2[i]) || - (!dontConvert && toInt(array1[i]) !== toInt(array2[i])) - ) { - diffs++; - } - } - return diffs + lengthDiff; - } + function noop() {} - // FORMATTING + var propType = exports.propType = { + className: _propTypes2["default"].string, + locale: _propTypes2["default"].object, + style: _propTypes2["default"].object, + visible: _propTypes2["default"].bool, + onSelect: _propTypes2["default"].func, + prefixCls: _propTypes2["default"].string, + onChange: _propTypes2["default"].func, + onOk: _propTypes2["default"].func + }; - function offset(token, separator) { - addFormatToken(token, 0, 0, function () { - var offset = this.utcOffset(), - sign = '+'; - if (offset < 0) { - offset = -offset; - sign = '-'; - } - return ( - sign + - zeroFill(~~(offset / 60), 2) + - separator + - zeroFill(~~offset % 60, 2) - ); - }); - } + var defaultProp = exports.defaultProp = { + locale: _en_US2["default"], + style: {}, + visible: true, + prefixCls: 'rc-calendar', + className: '', + onSelect: noop, + onChange: noop, + onClear: noop, + renderFooter: function renderFooter() { + return null; + }, + renderSidebar: function renderSidebar() { + return null; + } + }; - offset('Z', ':'); - offset('ZZ', ''); + var commonMixinWrapper = exports.commonMixinWrapper = function commonMixinWrapper(ComposeComponent) { + var _class, _temp2; - // PARSING + return _temp2 = _class = function (_ComposeComponent) { + _inherits(_class, _ComposeComponent); - addRegexToken('Z', matchShortOffset); - addRegexToken('ZZ', matchShortOffset); - addParseToken(['Z', 'ZZ'], function (input, array, config) { - config._useUTC = true; - config._tzm = offsetFromString(matchShortOffset, input); - }); + function _class() { + var _temp, _this, _ret; - // HELPERS + _classCallCheck(this, _class); - // timezone chunker - // '+10:00' > ['10', '00'] - // '-1530' > ['-15', '30'] - var chunkOffset = /([\+\-]|\d\d)/gi; + for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } - function offsetFromString(matcher, string) { - var matches = (string || '').match(matcher), - chunk, - parts, - minutes; + return _ret = (_temp = (_this = _possibleConstructorReturn(this, _ComposeComponent.call.apply(_ComposeComponent, [this].concat(args))), _this), _this.getFormat = function () { + var format = _this.props.format; + var _this$props = _this.props, + locale = _this$props.locale, + timePicker = _this$props.timePicker; - if (matches === null) { - return null; + if (!format) { + if (timePicker) { + format = locale.dateTimeFormat; + } else { + format = locale.dateFormat; + } + } + return format; + }, _this.focus = function () { + if (_this.focusElement) { + _this.focusElement.focus(); + } else if (_this.rootInstance) { + _this.rootInstance.focus(); } + }, _this.saveFocusElement = function (focusElement) { + _this.focusElement = focusElement; + }, _this.saveRoot = function (root) { + _this.rootInstance = root; + }, _temp), _possibleConstructorReturn(_this, _ret); + } - chunk = matches[matches.length - 1] || []; - parts = (chunk + '').match(chunkOffset) || ['-', 0, 0]; - minutes = +(parts[1] * 60) + toInt(parts[2]); + _class.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) { + return this.props.visible || nextProps.visible; + }; - return minutes === 0 ? 0 : parts[0] === '+' ? minutes : -minutes; - } + return _class; + }(ComposeComponent), _class.displayName = 'CommonMixinWrapper', _class.defaultProps = ComposeComponent.defaultProps, _class.getDerivedStateFromProps = ComposeComponent.getDerivedStateFromProps, _temp2; + }; + +/***/ }), +/* 573 */ +/***/ (function(module, exports) { + + 'use strict'; - // Return a moment from input, that is local/utc/zone equivalent to model. - function cloneWithOffset(input, model) { - var res, diff; - if (model._isUTC) { - res = model.clone(); - diff = - (isMoment(input) || isDate(input) - ? input.valueOf() - : createLocal(input).valueOf()) - res.valueOf(); - // Use low-level api, because this fn is low-level api. - res._d.setTime(res._d.valueOf() + diff); - hooks.updateOffset(res, false); - return res; - } else { - return createLocal(input).local(); - } - } + exports.__esModule = true; + exports['default'] = { + today: 'Today', + now: 'Now', + backToToday: 'Back to today', + ok: 'Ok', + clear: 'Clear', + month: 'Month', + year: 'Year', + timeSelect: 'select time', + dateSelect: 'select date', + weekSelect: 'Choose a week', + monthSelect: 'Choose a month', + yearSelect: 'Choose a year', + decadeSelect: 'Choose a decade', + yearFormat: 'YYYY', + dateFormat: 'M/D/YYYY', + dayFormat: 'D', + dateTimeFormat: 'M/D/YYYY HH:mm:ss', + monthBeforeYear: true, + previousMonth: 'Previous month (PageUp)', + nextMonth: 'Next month (PageDown)', + previousYear: 'Last year (Control + left)', + nextYear: 'Next year (Control + right)', + previousDecade: 'Last decade', + nextDecade: 'Next decade', + previousCentury: 'Last century', + nextCentury: 'Next century' + }; + module.exports = exports['default']; + +/***/ }), +/* 574 */ +/***/ (function(module, exports) { + + 'use strict'; - function getDateOffset(m) { - // On Firefox.24 Date#getTimezoneOffset returns a floating point. - // https://github.com/moment/moment/pull/1871 - return -Math.round(m._d.getTimezoneOffset()); - } + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.goStartMonth = goStartMonth; + exports.goEndMonth = goEndMonth; + exports.goTime = goTime; + exports.includesTime = includesTime; + function goStartMonth(time) { + return time.clone().startOf('month'); + } - // HOOKS + function goEndMonth(time) { + return time.clone().endOf('month'); + } - // This function will be called whenever a moment is mutated. - // It is intended to keep the offset in sync with the timezone. - hooks.updateOffset = function () {}; + function goTime(time, direction, unit) { + return time.clone().add(direction, unit); + } - // MOMENTS + function includesTime() { + var timeList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; + var time = arguments[1]; + var unit = arguments[2]; - // keepLocalTime = true means only change the timezone, without - // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]--> - // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset - // +0200, so we adjust the time as needed, to be valid. - // - // Keeping the time actually adds/subtracts (one hour) - // from the actual represented time. That is why we call updateOffset - // a second time. In case it wants us to change the offset again - // _changeInProgress == true case, then we have to adjust, because - // there is no such time in the given timezone. - function getSetOffset(input, keepLocalTime, keepMinutes) { - var offset = this._offset || 0, - localAdjust; - if (!this.isValid()) { - return input != null ? this : NaN; - } - if (input != null) { - if (typeof input === 'string') { - input = offsetFromString(matchShortOffset, input); - if (input === null) { - return this; - } - } else if (Math.abs(input) < 16 && !keepMinutes) { - input = input * 60; - } - if (!this._isUTC && keepLocalTime) { - localAdjust = getDateOffset(this); - } - this._offset = input; - this._isUTC = true; - if (localAdjust != null) { - this.add(localAdjust, 'm'); - } - if (offset !== input) { - if (!keepLocalTime || this._changeInProgress) { - addSubtract( - this, - createDuration(input - offset, 'm'), - 1, - false - ); - } else if (!this._changeInProgress) { - this._changeInProgress = true; - hooks.updateOffset(this, true); - this._changeInProgress = null; - } - } - return this; - } else { - return this._isUTC ? offset : getDateOffset(this); - } - } + return timeList.some(function (t) { + return t.isSame(time, unit); + }); + } + +/***/ }), +/* 575 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - function getSetZone(input, keepLocalTime) { - if (input != null) { - if (typeof input !== 'string') { - input = -input; - } + Object.defineProperty(exports, "__esModule", { + value: true + }); - this.utcOffset(input, keepLocalTime); + var _react = __webpack_require__(1); - return this; - } else { - return -this.utcOffset(); - } - } + var _react2 = _interopRequireDefault(_react); - function setOffsetToUTC(keepLocalTime) { - return this.utcOffset(0, keepLocalTime); - } + var _reactDom = __webpack_require__(2); - function setOffsetToLocal(keepLocalTime) { - if (this._isUTC) { - this.utcOffset(0, keepLocalTime); - this._isUTC = false; + var _reactDom2 = _interopRequireDefault(_reactDom); - if (keepLocalTime) { - this.subtract(getDateOffset(this), 'm'); - } - } - return this; - } + var _propTypes = __webpack_require__(6); - function setOffsetToParsedOffset() { - if (this._tzm != null) { - this.utcOffset(this._tzm, false, true); - } else if (typeof this._i === 'string') { - var tZone = offsetFromString(matchOffset, this._i); - if (tZone != null) { - this.utcOffset(tZone); - } else { - this.utcOffset(0, true); - } - } - return this; - } + var _propTypes2 = _interopRequireDefault(_propTypes); - function hasAlignedHourOffset(input) { - if (!this.isValid()) { - return false; - } - input = input ? createLocal(input).utcOffset() : 0; + var _reactLifecyclesCompat = __webpack_require__(81); - return (this.utcOffset() - input) % 60 === 0; - } + var _createChainedFunction = __webpack_require__(332); - function isDaylightSavingTime() { - return ( - this.utcOffset() > this.clone().month(0).utcOffset() || - this.utcOffset() > this.clone().month(5).utcOffset() - ); - } + var _createChainedFunction2 = _interopRequireDefault(_createChainedFunction); - function isDaylightSavingTimeShifted() { - if (!isUndefined(this._isDSTShifted)) { - return this._isDSTShifted; - } + var _KeyCode = __webpack_require__(419); - var c = {}, - other; + var _KeyCode2 = _interopRequireDefault(_KeyCode); - copyConfig(c, this); - c = prepareConfig(c); + var _placements = __webpack_require__(576); - if (c._a) { - other = c._isUTC ? createUTC(c._a) : createLocal(c._a); - this._isDSTShifted = - this.isValid() && compareArrays(c._a, other.toArray()) > 0; - } else { - this._isDSTShifted = false; - } + var _placements2 = _interopRequireDefault(_placements); - return this._isDSTShifted; - } + var _rcTrigger = __webpack_require__(336); - function isLocal() { - return this.isValid() ? !this._isUTC : false; - } + var _rcTrigger2 = _interopRequireDefault(_rcTrigger); - function isUtcOffset() { - return this.isValid() ? this._isUTC : false; - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - function isUtc() { - return this.isValid() ? this._isUTC && this._offset === 0 : false; - } + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - // ASP.NET json date format regex - var aspNetRegex = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, - // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html - // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere - // and further modified to allow for strings containing both week and day - isoRegex = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/; + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - function createDuration(input, key) { - var duration = input, - // matching against regexp is expensive, do it on demand - match = null, - sign, - ret, - diffRes; + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - if (isDuration(input)) { - duration = { - ms: input._milliseconds, - d: input._days, - M: input._months, - }; - } else if (isNumber(input) || !isNaN(+input)) { - duration = {}; - if (key) { - duration[key] = +input; - } else { - duration.milliseconds = +input; - } - } else if ((match = aspNetRegex.exec(input))) { - sign = match[1] === '-' ? -1 : 1; - duration = { - y: 0, - d: toInt(match[DATE]) * sign, - h: toInt(match[HOUR]) * sign, - m: toInt(match[MINUTE]) * sign, - s: toInt(match[SECOND]) * sign, - ms: toInt(absRound(match[MILLISECOND] * 1000)) * sign, // the millisecond decimal point is included in the match - }; - } else if ((match = isoRegex.exec(input))) { - sign = match[1] === '-' ? -1 : 1; - duration = { - y: parseIso(match[2], sign), - M: parseIso(match[3], sign), - w: parseIso(match[4], sign), - d: parseIso(match[5], sign), - h: parseIso(match[6], sign), - m: parseIso(match[7], sign), - s: parseIso(match[8], sign), - }; - } else if (duration == null) { - // checks for null or undefined - duration = {}; - } else if ( - typeof duration === 'object' && - ('from' in duration || 'to' in duration) - ) { - diffRes = momentsDifference( - createLocal(duration.from), - createLocal(duration.to) - ); + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - duration = {}; - duration.ms = diffRes.milliseconds; - duration.M = diffRes.months; - } + function noop() {} - ret = new Duration(duration); + function refFn(field, component) { + this[field] = component; + } - if (isDuration(input) && hasOwnProp(input, '_locale')) { - ret._locale = input._locale; - } + var Picker = function (_React$Component) { + _inherits(Picker, _React$Component); - if (isDuration(input) && hasOwnProp(input, '_isValid')) { - ret._isValid = input._isValid; - } + function Picker(props) { + _classCallCheck(this, Picker); - return ret; - } + var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); - createDuration.fn = Duration.prototype; - createDuration.invalid = createInvalid$1; + _initialiseProps.call(_this); - function parseIso(inp, sign) { - // We'd normally use ~~inp for this, but unfortunately it also - // converts floats to ints. - // inp may be undefined, so careful calling replace on it. - var res = inp && parseFloat(inp.replace(',', '.')); - // apply sign while we're at it - return (isNaN(res) ? 0 : res) * sign; + var open = void 0; + if ('open' in props) { + open = props.open; + } else { + open = props.defaultOpen; } + var value = props.value || props.defaultValue; + _this.saveCalendarRef = refFn.bind(_this, 'calendarInstance'); - function positiveMomentsDifference(base, other) { - var res = {}; - - res.months = - other.month() - base.month() + (other.year() - base.year()) * 12; - if (base.clone().add(res.months, 'M').isAfter(other)) { - --res.months; - } - - res.milliseconds = +other - +base.clone().add(res.months, 'M'); + _this.state = { + open: open, + value: value + }; + return _this; + } - return res; + Picker.prototype.componentDidUpdate = function componentDidUpdate(_, prevState) { + if (!prevState.open && this.state.open) { + // setTimeout is for making sure saveCalendarRef happen before focusCalendar + this.focusTimeout = setTimeout(this.focusCalendar, 0, this); } + }; - function momentsDifference(base, other) { - var res; - if (!(base.isValid() && other.isValid())) { - return { milliseconds: 0, months: 0 }; - } + Picker.prototype.componentWillUnmount = function componentWillUnmount() { + clearTimeout(this.focusTimeout); + }; - other = cloneWithOffset(other, base); - if (base.isBefore(other)) { - res = positiveMomentsDifference(base, other); - } else { - res = positiveMomentsDifference(other, base); - res.milliseconds = -res.milliseconds; - res.months = -res.months; - } + Picker.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps) { + var newState = {}; + var value = nextProps.value, + open = nextProps.open; - return res; + if ('value' in nextProps) { + newState.value = value; + } + if (open !== undefined) { + newState.open = open; } + return newState; + }; - // TODO: remove 'name' arg after deprecation is removed - function createAdder(direction, name) { - return function (val, period) { - var dur, tmp; - //invert the arguments, but complain about it - if (period !== null && !isNaN(+period)) { - deprecateSimple( - name, - 'moment().' + - name + - '(period, number) is deprecated. Please use moment().' + - name + - '(number, period). ' + - 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.' - ); - tmp = val; - val = period; - period = tmp; - } + Picker.prototype.render = function render() { + var props = this.props; + var prefixCls = props.prefixCls, + placement = props.placement, + style = props.style, + getCalendarContainer = props.getCalendarContainer, + align = props.align, + animation = props.animation, + disabled = props.disabled, + dropdownClassName = props.dropdownClassName, + transitionName = props.transitionName, + children = props.children; - dur = createDuration(val, period); - addSubtract(this, dur, direction); - return this; - }; - } + var state = this.state; + return _react2["default"].createElement( + _rcTrigger2["default"], + { + popup: this.getCalendarElement(), + popupAlign: align, + builtinPlacements: _placements2["default"], + popupPlacement: placement, + action: disabled && !state.open ? [] : ['click'], + destroyPopupOnHide: true, + getPopupContainer: getCalendarContainer, + popupStyle: style, + popupAnimation: animation, + popupTransitionName: transitionName, + popupVisible: state.open, + onPopupVisibleChange: this.onVisibleChange, + prefixCls: prefixCls, + popupClassName: dropdownClassName + }, + _react2["default"].cloneElement(children(state, props), { onKeyDown: this.onKeyDown }) + ); + }; - function addSubtract(mom, duration, isAdding, updateOffset) { - var milliseconds = duration._milliseconds, - days = absRound(duration._days), - months = absRound(duration._months); + return Picker; + }(_react2["default"].Component); - if (!mom.isValid()) { - // No op - return; - } + Picker.propTypes = { + animation: _propTypes2["default"].oneOfType([_propTypes2["default"].func, _propTypes2["default"].string]), + disabled: _propTypes2["default"].bool, + transitionName: _propTypes2["default"].string, + onChange: _propTypes2["default"].func, + onOpenChange: _propTypes2["default"].func, + children: _propTypes2["default"].func, + getCalendarContainer: _propTypes2["default"].func, + calendar: _propTypes2["default"].element, + style: _propTypes2["default"].object, + open: _propTypes2["default"].bool, + defaultOpen: _propTypes2["default"].bool, + prefixCls: _propTypes2["default"].string, + placement: _propTypes2["default"].any, + value: _propTypes2["default"].oneOfType([_propTypes2["default"].object, _propTypes2["default"].array]), + defaultValue: _propTypes2["default"].oneOfType([_propTypes2["default"].object, _propTypes2["default"].array]), + align: _propTypes2["default"].object, + enterKeyDown: _propTypes2["default"].bool //enter 键是否打开日期面板 + }; + Picker.defaultProps = { + prefixCls: 'rc-calendar-picker', + style: {}, + align: {}, + placement: 'bottomLeft', + defaultOpen: false, + onChange: noop, + onOpenChange: noop, + enterKeyDown: true + }; - updateOffset = updateOffset == null ? true : updateOffset; + var _initialiseProps = function _initialiseProps() { + var _this2 = this; - if (months) { - setMonth(mom, get(mom, 'Month') + months * isAdding); - } - if (days) { - set$1(mom, 'Date', get(mom, 'Date') + days * isAdding); - } - if (milliseconds) { - mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding); - } - if (updateOffset) { - hooks.updateOffset(mom, days || months); - } + this.onCalendarKeyDown = function (event) { + if (event.keyCode === _KeyCode2["default"].ESC) { + event.stopPropagation(); + _this2.close(_this2.focus); } + _this2.props.onKeyDown && _this2.props.onKeyDown(event); + }; - var add = createAdder(1, 'add'), - subtract = createAdder(-1, 'subtract'); + this.onCalendarSelect = function (value) { + var cause = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - function isString(input) { - return typeof input === 'string' || input instanceof String; + var props = _this2.props; + var isDisabled = props.disabledDate && props.disabledDate(value); + if (isDisabled) return; + if (!('value' in props)) { + _this2.setState({ + value: value + }); + } + if (cause.source === 'keyboard' || cause.source === 'dateInputSelect' || !props.calendar.props.timePicker && cause.source !== 'dateInput' || cause.source === 'todayButton') { + _this2.close(_this2.focus); } + props.onChange(value); + }; - // type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined - function isMomentInput(input) { - return ( - isMoment(input) || - isDate(input) || - isString(input) || - isNumber(input) || - isNumberOrStringArray(input) || - isMomentInputObject(input) || - input === null || - input === undefined - ); + this.onKeyDown = function (event) { + var enterKeyDown = _this2.props.enterKeyDown; + + if (event.keyCode === _KeyCode2["default"].DOWN || enterKeyDown && event.keyCode === _KeyCode2["default"].ENTER) { + if (!_this2.state.open) _this2.open(); + event.preventDefault(); } + _this2.props.onKeyDown && _this2.props.onKeyDown(event); + }; - function isMomentInputObject(input) { - var objectTest = isObject(input) && !isObjectEmpty(input), - propertyTest = false, - properties = [ - 'years', - 'year', - 'y', - 'months', - 'month', - 'M', - 'days', - 'day', - 'd', - 'dates', - 'date', - 'D', - 'hours', - 'hour', - 'h', - 'minutes', - 'minute', - 'm', - 'seconds', - 'second', - 's', - 'milliseconds', - 'millisecond', - 'ms', - ], - i, - property; + this.onCalendarOk = function () { + _this2.close(_this2.focus); + }; - for (i = 0; i < properties.length; i += 1) { - property = properties[i]; - propertyTest = propertyTest || hasOwnProp(input, property); - } + this.onCalendarClear = function () { + _this2.close(_this2.focus); + }; - return objectTest && propertyTest; - } + this.onVisibleChange = function (open) { + _this2.setOpen(open); + }; - function isNumberOrStringArray(input) { - var arrayTest = isArray(input), - dataTypeTest = false; - if (arrayTest) { - dataTypeTest = - input.filter(function (item) { - return !isNumber(item) && isString(input); - }).length === 0; - } - return arrayTest && dataTypeTest; - } + this.getCalendarElement = function () { + var props = _this2.props; + var state = _this2.state; + var calendarProps = props.calendar.props; + var value = state.value; - function isCalendarSpec(input) { - var objectTest = isObject(input) && !isObjectEmpty(input), - propertyTest = false, - properties = [ - 'sameDay', - 'nextDay', - 'lastDay', - 'nextWeek', - 'lastWeek', - 'sameElse', - ], - i, - property; + var defaultValue = value; + var extraProps = { + ref: _this2.saveCalendarRef, + defaultValue: defaultValue || calendarProps.defaultValue, + selectedValue: value, + onKeyDown: _this2.onCalendarKeyDown, + onOk: (0, _createChainedFunction2["default"])(calendarProps.onOk, _this2.onCalendarOk), + onSelect: (0, _createChainedFunction2["default"])(calendarProps.onSelect, _this2.onCalendarSelect), + onClear: (0, _createChainedFunction2["default"])(calendarProps.onClear, _this2.onCalendarClear) + }; - for (i = 0; i < properties.length; i += 1) { - property = properties[i]; - propertyTest = propertyTest || hasOwnProp(input, property); - } + return _react2["default"].cloneElement(props.calendar, extraProps); + }; - return objectTest && propertyTest; - } + this.setOpen = function (open, callback) { + var onOpenChange = _this2.props.onOpenChange; - function getCalendarFormat(myMoment, now) { - var diff = myMoment.diff(now, 'days', true); - return diff < -6 - ? 'sameElse' - : diff < -1 - ? 'lastWeek' - : diff < 0 - ? 'lastDay' - : diff < 1 - ? 'sameDay' - : diff < 2 - ? 'nextDay' - : diff < 7 - ? 'nextWeek' - : 'sameElse'; + if (_this2.state.open !== open) { + if (!('open' in _this2.props)) { + _this2.setState({ + open: open + }, callback); + } + onOpenChange(open); } + }; - function calendar$1(time, formats) { - // Support for single parameter, formats only overload to the calendar function - if (arguments.length === 1) { - if (isMomentInput(arguments[0])) { - time = arguments[0]; - formats = undefined; - } else if (isCalendarSpec(arguments[0])) { - formats = arguments[0]; - time = undefined; - } - } - // We want to compare the start of today, vs this. - // Getting start-of-today depends on whether we're local/utc/offset or not. - var now = time || createLocal(), - sod = cloneWithOffset(now, this).startOf('day'), - format = hooks.calendarFormat(this, sod) || 'sameElse', - output = - formats && - (isFunction(formats[format]) - ? formats[format].call(this, now) - : formats[format]); + this.open = function (callback) { + _this2.setOpen(true, callback); + }; - return this.format( - output || this.localeData().calendar(format, this, createLocal(now)) - ); - } + this.close = function (callback) { + _this2.setOpen(false, callback); + }; - function clone() { - return new Moment(this); + this.focus = function () { + if (!_this2.state.open) { + _reactDom2["default"].findDOMNode(_this2).focus(); } + }; - function isAfter(input, units) { - var localInput = isMoment(input) ? input : createLocal(input); - if (!(this.isValid() && localInput.isValid())) { - return false; - } - units = normalizeUnits(units) || 'millisecond'; - if (units === 'millisecond') { - return this.valueOf() > localInput.valueOf(); - } else { - return localInput.valueOf() < this.clone().startOf(units).valueOf(); - } + this.focusCalendar = function () { + if (_this2.state.open && !!_this2.calendarInstance) { + _this2.calendarInstance.focus(); } + }; + }; - function isBefore(input, units) { - var localInput = isMoment(input) ? input : createLocal(input); - if (!(this.isValid() && localInput.isValid())) { - return false; - } - units = normalizeUnits(units) || 'millisecond'; - if (units === 'millisecond') { - return this.valueOf() < localInput.valueOf(); - } else { - return this.clone().endOf(units).valueOf() < localInput.valueOf(); - } - } + (0, _reactLifecyclesCompat.polyfill)(Picker); - function isBetween(from, to, units, inclusivity) { - var localFrom = isMoment(from) ? from : createLocal(from), - localTo = isMoment(to) ? to : createLocal(to); - if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) { - return false; - } - inclusivity = inclusivity || '()'; - return ( - (inclusivity[0] === '(' - ? this.isAfter(localFrom, units) - : !this.isBefore(localFrom, units)) && - (inclusivity[1] === ')' - ? this.isBefore(localTo, units) - : !this.isAfter(localTo, units)) - ); - } + exports["default"] = Picker; + module.exports = exports['default']; + +/***/ }), +/* 576 */ +/***/ (function(module, exports) { + + 'use strict'; - function isSame(input, units) { - var localInput = isMoment(input) ? input : createLocal(input), - inputMs; - if (!(this.isValid() && localInput.isValid())) { - return false; - } - units = normalizeUnits(units) || 'millisecond'; - if (units === 'millisecond') { - return this.valueOf() === localInput.valueOf(); - } else { - inputMs = localInput.valueOf(); - return ( - this.clone().startOf(units).valueOf() <= inputMs && - inputMs <= this.clone().endOf(units).valueOf() - ); - } - } + Object.defineProperty(exports, "__esModule", { + value: true + }); + var autoAdjustOverflow = { + adjustX: 1, + adjustY: 1 + }; - function isSameOrAfter(input, units) { - return this.isSame(input, units) || this.isAfter(input, units); - } + var targetOffset = [0, 0]; - function isSameOrBefore(input, units) { - return this.isSame(input, units) || this.isBefore(input, units); - } + var placements = { + bottomLeft: { + points: ['tl', 'tl'], + overflow: autoAdjustOverflow, + offset: [0, -3], + targetOffset: targetOffset + }, + bottomRight: { + points: ['tr', 'tr'], + overflow: autoAdjustOverflow, + offset: [0, -3], + targetOffset: targetOffset + }, + topRight: { + points: ['br', 'br'], + overflow: autoAdjustOverflow, + offset: [0, 3], + targetOffset: targetOffset + }, + topLeft: { + points: ['bl', 'bl'], + overflow: autoAdjustOverflow, + offset: [0, 3], + targetOffset: targetOffset + } + }; - function diff(input, units, asFloat) { - var that, zoneDelta, output; + exports["default"] = placements; + module.exports = exports['default']; + +/***/ }), +/* 577 */ +/***/ (function(module, exports, __webpack_require__) { + + "use strict"; - if (!this.isValid()) { - return NaN; - } + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports["default"] = void 0; - that = cloneWithOffset(input, this); + var _react = _interopRequireWildcard(__webpack_require__(1)); - if (!that.isValid()) { - return NaN; - } + var _propTypes = _interopRequireDefault(__webpack_require__(6)); - zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4; + var _moment = _interopRequireDefault(__webpack_require__(423)); - units = normalizeUnits(units); + var _classnames = _interopRequireDefault(__webpack_require__(5)); - switch (units) { - case 'year': - output = monthDiff(this, that) / 12; - break; - case 'month': - output = monthDiff(this, that); - break; - case 'quarter': - output = monthDiff(this, that) / 3; - break; - case 'second': - output = (this - that) / 1e3; - break; // 1000 - case 'minute': - output = (this - that) / 6e4; - break; // 1000 * 60 - case 'hour': - output = (this - that) / 36e5; - break; // 1000 * 60 * 60 - case 'day': - output = (this - that - zoneDelta) / 864e5; - break; // 1000 * 60 * 60 * 24, negate dst - case 'week': - output = (this - that - zoneDelta) / 6048e5; - break; // 1000 * 60 * 60 * 24 * 7, negate dst - default: - output = this - that; - } + var _reactLifecyclesCompat = __webpack_require__(81); - return asFloat ? output : absFloor(output); - } + var _Header = _interopRequireDefault(__webpack_require__(578)); - function monthDiff(a, b) { - if (a.date() < b.date()) { - // end-of-month calculations work correct when the start month has more - // days than the end month. - return -monthDiff(b, a); - } - // difference in months - var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month()), - // b is in (anchor - 1 month, anchor + 1 month) - anchor = a.clone().add(wholeMonthDiff, 'months'), - anchor2, - adjust; + var _Combobox = _interopRequireDefault(__webpack_require__(579)); - if (b - anchor < 0) { - anchor2 = a.clone().add(wholeMonthDiff - 1, 'months'); - // linear across the month - adjust = (b - anchor) / (anchor - anchor2); - } else { - anchor2 = a.clone().add(wholeMonthDiff + 1, 'months'); - // linear across the month - adjust = (b - anchor) / (anchor2 - anchor); - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - //check for negative zero, return zero if negative zero - return -(wholeMonthDiff + adjust) || 0; - } + function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; } - hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ'; - hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]'; + function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - function toString() { - return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ'); - } + function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - function toISOString(keepOffset) { - if (!this.isValid()) { - return null; - } - var utc = keepOffset !== true, - m = utc ? this.clone().utc() : this; - if (m.year() < 0 || m.year() > 9999) { - return formatMoment( - m, - utc - ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]' - : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ' - ); - } - if (isFunction(Date.prototype.toISOString)) { - // native implementation is ~50x faster, use it when we can - if (utc) { - return this.toDate().toISOString(); - } else { - return new Date(this.valueOf() + this.utcOffset() * 60 * 1000) - .toISOString() - .replace('Z', formatMoment(m, 'Z')); - } - } - return formatMoment( - m, - utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ' - ); - } + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - /** - * Return a human readable representation of a moment that can - * also be evaluated to get a new moment which is the same - * - * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects - */ - function inspect() { - if (!this.isValid()) { - return 'moment.invalid(/* ' + this._i + ' */)'; - } - var func = 'moment', - zone = '', - prefix, - year, - datetime, - suffix; - if (!this.isLocal()) { - func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone'; - zone = 'Z'; - } - prefix = '[' + func + '("]'; - year = 0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY'; - datetime = '-MM-DD[T]HH:mm:ss.SSS'; - suffix = zone + '[")]'; + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - return this.format(prefix + year + datetime + suffix); - } + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - function format(inputString) { - if (!inputString) { - inputString = this.isUtc() - ? hooks.defaultFormatUtc - : hooks.defaultFormat; - } - var output = formatMoment(this, inputString); - return this.localeData().postformat(output); - } + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - function from(time, withoutSuffix) { - if ( - this.isValid() && - ((isMoment(time) && time.isValid()) || createLocal(time).isValid()) - ) { - return createDuration({ to: this, from: time }) - .locale(this.locale()) - .humanize(!withoutSuffix); - } else { - return this.localeData().invalidDate(); - } + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + + function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + function noop() {} + + function generateOptions(length, disabledOptions, hideDisabledOptions) { + var step = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1; + var arr = []; + + for (var value = 0; value < length; value += step) { + if (!disabledOptions || disabledOptions.indexOf(value) < 0 || !hideDisabledOptions) { + arr.push(value); } + } - function fromNow(withoutSuffix) { - return this.from(createLocal(), withoutSuffix); + return arr; + } + + function toNearestValidTime(time, hourOptions, minuteOptions, secondOptions) { + var hour = hourOptions.slice().sort(function (a, b) { + return Math.abs(time.hour() - a) - Math.abs(time.hour() - b); + })[0]; + var minute = minuteOptions.slice().sort(function (a, b) { + return Math.abs(time.minute() - a) - Math.abs(time.minute() - b); + })[0]; + var second = secondOptions.slice().sort(function (a, b) { + return Math.abs(time.second() - a) - Math.abs(time.second() - b); + })[0]; + return (0, _moment["default"])("".concat(hour, ":").concat(minute, ":").concat(second), 'HH:mm:ss'); + } + + var Panel = + /*#__PURE__*/ + function (_Component) { + _inherits(Panel, _Component); + + function Panel() { + var _getPrototypeOf2; + + var _this; + + _classCallCheck(this, Panel); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; } - function to(time, withoutSuffix) { - if ( - this.isValid() && - ((isMoment(time) && time.isValid()) || createLocal(time).isValid()) - ) { - return createDuration({ from: this, to: time }) - .locale(this.locale()) - .humanize(!withoutSuffix); + _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Panel)).call.apply(_getPrototypeOf2, [this].concat(args))); + + _defineProperty(_assertThisInitialized(_this), "state", {}); + + _defineProperty(_assertThisInitialized(_this), "onChange", function (newValue) { + var onChange = _this.props.onChange; + + _this.setState({ + value: newValue + }); + + onChange(newValue); + }); + + _defineProperty(_assertThisInitialized(_this), "onAmPmChange", function (ampm) { + var onAmPmChange = _this.props.onAmPmChange; + onAmPmChange(ampm); + }); + + _defineProperty(_assertThisInitialized(_this), "onCurrentSelectPanelChange", function (currentSelectPanel) { + _this.setState({ + currentSelectPanel: currentSelectPanel + }); + }); + + _defineProperty(_assertThisInitialized(_this), "disabledHours", function () { + var _this$props = _this.props, + use12Hours = _this$props.use12Hours, + disabledHours = _this$props.disabledHours; + var disabledOptions = disabledHours(); + + if (use12Hours && Array.isArray(disabledOptions)) { + if (_this.isAM()) { + disabledOptions = disabledOptions.filter(function (h) { + return h < 12; + }).map(function (h) { + return h === 0 ? 12 : h; + }); } else { - return this.localeData().invalidDate(); + disabledOptions = disabledOptions.map(function (h) { + return h === 12 ? 12 : h - 12; + }); } + } + + return disabledOptions; + }); + + return _this; + } + + _createClass(Panel, [{ + key: "close", + // https://github.com/ant-design/ant-design/issues/5829 + value: function close() { + var onEsc = this.props.onEsc; + onEsc(); + } + }, { + key: "isAM", + value: function isAM() { + var defaultOpenValue = this.props.defaultOpenValue; + var value = this.state.value; + var realValue = value || defaultOpenValue; + return realValue.hour() >= 0 && realValue.hour() < 12; + } + }, { + key: "render", + value: function render() { + var _this$props2 = this.props, + prefixCls = _this$props2.prefixCls, + className = _this$props2.className, + placeholder = _this$props2.placeholder, + disabledMinutes = _this$props2.disabledMinutes, + disabledSeconds = _this$props2.disabledSeconds, + hideDisabledOptions = _this$props2.hideDisabledOptions, + showHour = _this$props2.showHour, + showMinute = _this$props2.showMinute, + showSecond = _this$props2.showSecond, + format = _this$props2.format, + defaultOpenValue = _this$props2.defaultOpenValue, + clearText = _this$props2.clearText, + onEsc = _this$props2.onEsc, + addon = _this$props2.addon, + use12Hours = _this$props2.use12Hours, + focusOnOpen = _this$props2.focusOnOpen, + onKeyDown = _this$props2.onKeyDown, + hourStep = _this$props2.hourStep, + minuteStep = _this$props2.minuteStep, + secondStep = _this$props2.secondStep, + inputReadOnly = _this$props2.inputReadOnly, + clearIcon = _this$props2.clearIcon; + var _this$state = this.state, + value = _this$state.value, + currentSelectPanel = _this$state.currentSelectPanel; + var disabledHourOptions = this.disabledHours(); + var disabledMinuteOptions = disabledMinutes(value ? value.hour() : null); + var disabledSecondOptions = disabledSeconds(value ? value.hour() : null, value ? value.minute() : null); + var hourOptions = generateOptions(24, disabledHourOptions, hideDisabledOptions, hourStep); + var minuteOptions = generateOptions(60, disabledMinuteOptions, hideDisabledOptions, minuteStep); + var secondOptions = generateOptions(60, disabledSecondOptions, hideDisabledOptions, secondStep); + var validDefaultOpenValue = toNearestValidTime(defaultOpenValue, hourOptions, minuteOptions, secondOptions); + return _react["default"].createElement("div", { + className: (0, _classnames["default"])(className, "".concat(prefixCls, "-inner")) + }, _react["default"].createElement(_Header["default"], { + clearText: clearText, + prefixCls: prefixCls, + defaultOpenValue: validDefaultOpenValue, + value: value, + currentSelectPanel: currentSelectPanel, + onEsc: onEsc, + format: format, + placeholder: placeholder, + hourOptions: hourOptions, + minuteOptions: minuteOptions, + secondOptions: secondOptions, + disabledHours: this.disabledHours, + disabledMinutes: disabledMinutes, + disabledSeconds: disabledSeconds, + onChange: this.onChange, + focusOnOpen: focusOnOpen, + onKeyDown: onKeyDown, + inputReadOnly: inputReadOnly, + clearIcon: clearIcon + }), _react["default"].createElement(_Combobox["default"], { + prefixCls: prefixCls, + value: value, + defaultOpenValue: validDefaultOpenValue, + format: format, + onChange: this.onChange, + onAmPmChange: this.onAmPmChange, + showHour: showHour, + showMinute: showMinute, + showSecond: showSecond, + hourOptions: hourOptions, + minuteOptions: minuteOptions, + secondOptions: secondOptions, + disabledHours: this.disabledHours, + disabledMinutes: disabledMinutes, + disabledSeconds: disabledSeconds, + onCurrentSelectPanelChange: this.onCurrentSelectPanelChange, + use12Hours: use12Hours, + onEsc: onEsc, + isAM: this.isAM() + }), addon(this)); } + }], [{ + key: "getDerivedStateFromProps", + value: function getDerivedStateFromProps(props, state) { + if ('value' in props) { + return _objectSpread({}, state, { + value: props.value + }); + } - function toNow(withoutSuffix) { - return this.to(createLocal(), withoutSuffix); + return null; } + }]); - // If passed a locale key, it will set the locale for this - // instance. Otherwise, it will return the locale configuration - // variables for this instance. - function locale(key) { - var newLocaleData; + return Panel; + }(_react.Component); - if (key === undefined) { - return this._locale._abbr; - } else { - newLocaleData = getLocale(key); - if (newLocaleData != null) { - this._locale = newLocaleData; - } - return this; - } - } + _defineProperty(Panel, "propTypes", { + clearText: _propTypes["default"].string, + prefixCls: _propTypes["default"].string, + className: _propTypes["default"].string, + defaultOpenValue: _propTypes["default"].object, + value: _propTypes["default"].object, + placeholder: _propTypes["default"].string, + format: _propTypes["default"].string, + inputReadOnly: _propTypes["default"].bool, + disabledHours: _propTypes["default"].func, + disabledMinutes: _propTypes["default"].func, + disabledSeconds: _propTypes["default"].func, + hideDisabledOptions: _propTypes["default"].bool, + onChange: _propTypes["default"].func, + onAmPmChange: _propTypes["default"].func, + onEsc: _propTypes["default"].func, + showHour: _propTypes["default"].bool, + showMinute: _propTypes["default"].bool, + showSecond: _propTypes["default"].bool, + use12Hours: _propTypes["default"].bool, + hourStep: _propTypes["default"].number, + minuteStep: _propTypes["default"].number, + secondStep: _propTypes["default"].number, + addon: _propTypes["default"].func, + focusOnOpen: _propTypes["default"].bool, + onKeyDown: _propTypes["default"].func, + clearIcon: _propTypes["default"].node + }); - var lang = deprecate( - 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.', - function (key) { - if (key === undefined) { - return this.localeData(); - } else { - return this.locale(key); - } - } - ); + _defineProperty(Panel, "defaultProps", { + prefixCls: 'rc-time-picker-panel', + onChange: noop, + disabledHours: noop, + disabledMinutes: noop, + disabledSeconds: noop, + defaultOpenValue: (0, _moment["default"])(), + use12Hours: false, + addon: noop, + onKeyDown: noop, + onAmPmChange: noop, + inputReadOnly: false + }); - function localeData() { - return this._locale; - } + (0, _reactLifecyclesCompat.polyfill)(Panel); + var _default = Panel; + exports["default"] = _default; + +/***/ }), +/* 578 */ +/***/ (function(module, exports, __webpack_require__) { + + "use strict"; - var MS_PER_SECOND = 1000, - MS_PER_MINUTE = 60 * MS_PER_SECOND, - MS_PER_HOUR = 60 * MS_PER_MINUTE, - MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports["default"] = void 0; - // actual modulo - handles negative numbers (for dates before 1970): - function mod$1(dividend, divisor) { - return ((dividend % divisor) + divisor) % divisor; - } + var _react = _interopRequireWildcard(__webpack_require__(1)); - function localStartOfDate(y, m, d) { - // the date constructor remaps years 0-99 to 1900-1999 - if (y < 100 && y >= 0) { - // preserve leap years using a full 400 year cycle, then reset - return new Date(y + 400, m, d) - MS_PER_400_YEARS; - } else { - return new Date(y, m, d).valueOf(); - } - } + var _propTypes = _interopRequireDefault(__webpack_require__(6)); - function utcStartOfDate(y, m, d) { - // Date.UTC remaps years 0-99 to 1900-1999 - if (y < 100 && y >= 0) { - // preserve leap years using a full 400 year cycle, then reset - return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS; - } else { - return Date.UTC(y, m, d); - } - } + var _moment = _interopRequireDefault(__webpack_require__(423)); - function startOf(units) { - var time, startOfDate; - units = normalizeUnits(units); - if (units === undefined || units === 'millisecond' || !this.isValid()) { - return this; - } + var _classnames = _interopRequireDefault(__webpack_require__(5)); - startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - switch (units) { - case 'year': - time = startOfDate(this.year(), 0, 1); - break; - case 'quarter': - time = startOfDate( - this.year(), - this.month() - (this.month() % 3), - 1 - ); - break; - case 'month': - time = startOfDate(this.year(), this.month(), 1); - break; - case 'week': - time = startOfDate( - this.year(), - this.month(), - this.date() - this.weekday() - ); - break; - case 'isoWeek': - time = startOfDate( - this.year(), - this.month(), - this.date() - (this.isoWeekday() - 1) - ); - break; - case 'day': - case 'date': - time = startOfDate(this.year(), this.month(), this.date()); - break; - case 'hour': - time = this._d.valueOf(); - time -= mod$1( - time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), - MS_PER_HOUR - ); - break; - case 'minute': - time = this._d.valueOf(); - time -= mod$1(time, MS_PER_MINUTE); - break; - case 'second': - time = this._d.valueOf(); - time -= mod$1(time, MS_PER_SECOND); - break; - } + function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; } - this._d.setTime(time); - hooks.updateOffset(this, true); - return this; - } + function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - function endOf(units) { - var time, startOfDate; - units = normalizeUnits(units); - if (units === undefined || units === 'millisecond' || !this.isValid()) { - return this; - } + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate; + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - switch (units) { - case 'year': - time = startOfDate(this.year() + 1, 0, 1) - 1; - break; - case 'quarter': - time = - startOfDate( - this.year(), - this.month() - (this.month() % 3) + 3, - 1 - ) - 1; - break; - case 'month': - time = startOfDate(this.year(), this.month() + 1, 1) - 1; - break; - case 'week': - time = - startOfDate( - this.year(), - this.month(), - this.date() - this.weekday() + 7 - ) - 1; - break; - case 'isoWeek': - time = - startOfDate( - this.year(), - this.month(), - this.date() - (this.isoWeekday() - 1) + 7 - ) - 1; - break; - case 'day': - case 'date': - time = startOfDate(this.year(), this.month(), this.date() + 1) - 1; - break; - case 'hour': - time = this._d.valueOf(); - time += - MS_PER_HOUR - - mod$1( - time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), - MS_PER_HOUR - ) - - 1; - break; - case 'minute': - time = this._d.valueOf(); - time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1; - break; - case 'second': - time = this._d.valueOf(); - time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1; - break; - } + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - this._d.setTime(time); - hooks.updateOffset(this, true); - return this; - } + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - function valueOf() { - return this._d.valueOf() - (this._offset || 0) * 60000; - } + function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } - function unix() { - return Math.floor(this.valueOf() / 1000); - } + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - function toDate() { - return new Date(this.valueOf()); - } + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } - function toArray() { - var m = this; - return [ - m.year(), - m.month(), - m.date(), - m.hour(), - m.minute(), - m.second(), - m.millisecond(), - ]; - } + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - function toObject() { - var m = this; - return { - years: m.year(), - months: m.month(), - date: m.date(), - hours: m.hours(), - minutes: m.minutes(), - seconds: m.seconds(), - milliseconds: m.milliseconds(), - }; - } + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - function toJSON() { - // new Date(NaN).toJSON() === null - return this.isValid() ? this.toISOString() : null; - } + var Header = + /*#__PURE__*/ + function (_Component) { + _inherits(Header, _Component); - function isValid$2() { - return isValid(this); - } + function Header(props) { + var _this; - function parsingFlags() { - return extend({}, getParsingFlags(this)); - } + _classCallCheck(this, Header); - function invalidAt() { - return getParsingFlags(this).overflow; - } + _this = _possibleConstructorReturn(this, _getPrototypeOf(Header).call(this, props)); - function creationData() { - return { - input: this._i, - format: this._f, - locale: this._locale, - isUTC: this._isUTC, - strict: this._strict, - }; - } + _defineProperty(_assertThisInitialized(_this), "onInputChange", function (event) { + var str = event.target.value; - addFormatToken('N', 0, 0, 'eraAbbr'); - addFormatToken('NN', 0, 0, 'eraAbbr'); - addFormatToken('NNN', 0, 0, 'eraAbbr'); - addFormatToken('NNNN', 0, 0, 'eraName'); - addFormatToken('NNNNN', 0, 0, 'eraNarrow'); + _this.setState({ + str: str + }); - addFormatToken('y', ['y', 1], 'yo', 'eraYear'); - addFormatToken('y', ['yy', 2], 0, 'eraYear'); - addFormatToken('y', ['yyy', 3], 0, 'eraYear'); - addFormatToken('y', ['yyyy', 4], 0, 'eraYear'); + var _this$props = _this.props, + format = _this$props.format, + hourOptions = _this$props.hourOptions, + minuteOptions = _this$props.minuteOptions, + secondOptions = _this$props.secondOptions, + disabledHours = _this$props.disabledHours, + disabledMinutes = _this$props.disabledMinutes, + disabledSeconds = _this$props.disabledSeconds, + onChange = _this$props.onChange; - addRegexToken('N', matchEraAbbr); - addRegexToken('NN', matchEraAbbr); - addRegexToken('NNN', matchEraAbbr); - addRegexToken('NNNN', matchEraName); - addRegexToken('NNNNN', matchEraNarrow); + if (str) { + var originalValue = _this.props.value; - addParseToken(['N', 'NN', 'NNN', 'NNNN', 'NNNNN'], function ( - input, - array, - config, - token - ) { - var era = config._locale.erasParse(input, token, config._strict); - if (era) { - getParsingFlags(config).era = era; - } else { - getParsingFlags(config).invalidEra = input; - } - }); + var value = _this.getProtoValue().clone(); - addRegexToken('y', matchUnsigned); - addRegexToken('yy', matchUnsigned); - addRegexToken('yyy', matchUnsigned); - addRegexToken('yyyy', matchUnsigned); - addRegexToken('yo', matchEraYearOrdinal); + var parsed = (0, _moment["default"])(str, format, true); - addParseToken(['y', 'yy', 'yyy', 'yyyy'], YEAR); - addParseToken(['yo'], function (input, array, config, token) { - var match; - if (config._locale._eraYearOrdinalRegex) { - match = input.match(config._locale._eraYearOrdinalRegex); - } + if (!parsed.isValid()) { + _this.setState({ + invalid: true + }); - if (config._locale.eraYearOrdinalParse) { - array[YEAR] = config._locale.eraYearOrdinalParse(input, match); - } else { - array[YEAR] = parseInt(input, 10); + return; } - }); - - function localeEras(m, format) { - var i, - l, - date, - eras = this._eras || getLocale('en')._eras; - for (i = 0, l = eras.length; i < l; ++i) { - switch (typeof eras[i].since) { - case 'string': - // truncate time - date = hooks(eras[i].since).startOf('day'); - eras[i].since = date.valueOf(); - break; - } - switch (typeof eras[i].until) { - case 'undefined': - eras[i].until = +Infinity; - break; - case 'string': - // truncate time - date = hooks(eras[i].until).startOf('day').valueOf(); - eras[i].until = date.valueOf(); - break; - } - } - return eras; - } + value.hour(parsed.hour()).minute(parsed.minute()).second(parsed.second()); // if time value not allowed, response warning. - function localeErasParse(eraName, format, strict) { - var i, - l, - eras = this.eras(), - name, - abbr, - narrow; - eraName = eraName.toUpperCase(); + if (hourOptions.indexOf(value.hour()) < 0 || minuteOptions.indexOf(value.minute()) < 0 || secondOptions.indexOf(value.second()) < 0) { + _this.setState({ + invalid: true + }); - for (i = 0, l = eras.length; i < l; ++i) { - name = eras[i].name.toUpperCase(); - abbr = eras[i].abbr.toUpperCase(); - narrow = eras[i].narrow.toUpperCase(); + return; + } // if time value is disabled, response warning. - if (strict) { - switch (format) { - case 'N': - case 'NN': - case 'NNN': - if (abbr === eraName) { - return eras[i]; - } - break; - case 'NNNN': - if (name === eraName) { - return eras[i]; - } - break; + var disabledHourOptions = disabledHours(); + var disabledMinuteOptions = disabledMinutes(value.hour()); + var disabledSecondOptions = disabledSeconds(value.hour(), value.minute()); - case 'NNNNN': - if (narrow === eraName) { - return eras[i]; - } - break; - } - } else if ([name, abbr, narrow].indexOf(eraName) >= 0) { - return eras[i]; - } - } - } + if (disabledHourOptions && disabledHourOptions.indexOf(value.hour()) >= 0 || disabledMinuteOptions && disabledMinuteOptions.indexOf(value.minute()) >= 0 || disabledSecondOptions && disabledSecondOptions.indexOf(value.second()) >= 0) { + _this.setState({ + invalid: true + }); - function localeErasConvertYear(era, year) { - var dir = era.since <= era.until ? +1 : -1; - if (year === undefined) { - return hooks(era.since).year(); - } else { - return hooks(era.since).year() + (year - era.offset) * dir; + return; } - } - - function getEraName() { - var i, - l, - val, - eras = this.localeData().eras(); - for (i = 0, l = eras.length; i < l; ++i) { - // truncate time - val = this.startOf('day').valueOf(); - if (eras[i].since <= val && val <= eras[i].until) { - return eras[i].name; - } - if (eras[i].until <= val && val <= eras[i].since) { - return eras[i].name; - } + if (originalValue) { + if (originalValue.hour() !== value.hour() || originalValue.minute() !== value.minute() || originalValue.second() !== value.second()) { + // keep other fields for rc-calendar + var changedValue = originalValue.clone(); + changedValue.hour(value.hour()); + changedValue.minute(value.minute()); + changedValue.second(value.second()); + onChange(changedValue); + } + } else if (originalValue !== value) { + onChange(value); } + } else { + onChange(null); + } - return ''; - } - - function getEraNarrow() { - var i, - l, - val, - eras = this.localeData().eras(); - for (i = 0, l = eras.length; i < l; ++i) { - // truncate time - val = this.startOf('day').valueOf(); - - if (eras[i].since <= val && val <= eras[i].until) { - return eras[i].narrow; - } - if (eras[i].until <= val && val <= eras[i].since) { - return eras[i].narrow; - } - } + _this.setState({ + invalid: false + }); + }); - return ''; - } + _defineProperty(_assertThisInitialized(_this), "onKeyDown", function (e) { + var _this$props2 = _this.props, + onEsc = _this$props2.onEsc, + onKeyDown = _this$props2.onKeyDown; - function getEraAbbr() { - var i, - l, - val, - eras = this.localeData().eras(); - for (i = 0, l = eras.length; i < l; ++i) { - // truncate time - val = this.startOf('day').valueOf(); + if (e.keyCode === 27) { + onEsc(); + } - if (eras[i].since <= val && val <= eras[i].until) { - return eras[i].abbr; - } - if (eras[i].until <= val && val <= eras[i].since) { - return eras[i].abbr; - } - } + onKeyDown(e); + }); - return ''; - } + var _value = props.value, + _format = props.format; + _this.state = { + str: _value && _value.format(_format) || '', + invalid: false + }; + return _this; + } - function getEraYear() { - var i, - l, - dir, - val, - eras = this.localeData().eras(); - for (i = 0, l = eras.length; i < l; ++i) { - dir = eras[i].since <= eras[i].until ? +1 : -1; + _createClass(Header, [{ + key: "componentDidMount", + value: function componentDidMount() { + var _this2 = this; - // truncate time - val = this.startOf('day').valueOf(); + var focusOnOpen = this.props.focusOnOpen; - if ( - (eras[i].since <= val && val <= eras[i].until) || - (eras[i].until <= val && val <= eras[i].since) - ) { - return ( - (this.year() - hooks(eras[i].since).year()) * dir + - eras[i].offset - ); - } - } + if (focusOnOpen) { + // Wait one frame for the panel to be positioned before focusing + var requestAnimationFrame = window.requestAnimationFrame || window.setTimeout; + requestAnimationFrame(function () { + _this2.refInput.focus(); - return this.year(); + _this2.refInput.select(); + }); + } } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + var _this$props3 = this.props, + value = _this$props3.value, + format = _this$props3.format; - function erasNameRegex(isStrict) { - if (!hasOwnProp(this, '_erasNameRegex')) { - computeErasParse.call(this); - } - return isStrict ? this._erasNameRegex : this._erasRegex; + if (value !== prevProps.value) { + // eslint-disable-next-line react/no-did-update-set-state + this.setState({ + str: value && value.format(format) || '', + invalid: false + }); + } } - - function erasAbbrRegex(isStrict) { - if (!hasOwnProp(this, '_erasAbbrRegex')) { - computeErasParse.call(this); - } - return isStrict ? this._erasAbbrRegex : this._erasRegex; + }, { + key: "getProtoValue", + value: function getProtoValue() { + var _this$props4 = this.props, + value = _this$props4.value, + defaultOpenValue = _this$props4.defaultOpenValue; + return value || defaultOpenValue; } + }, { + key: "getInput", + value: function getInput() { + var _this3 = this; - function erasNarrowRegex(isStrict) { - if (!hasOwnProp(this, '_erasNarrowRegex')) { - computeErasParse.call(this); - } - return isStrict ? this._erasNarrowRegex : this._erasRegex; + var _this$props5 = this.props, + prefixCls = _this$props5.prefixCls, + placeholder = _this$props5.placeholder, + inputReadOnly = _this$props5.inputReadOnly; + var _this$state = this.state, + invalid = _this$state.invalid, + str = _this$state.str; + var invalidClass = invalid ? "".concat(prefixCls, "-input-invalid") : ''; + return _react["default"].createElement("input", { + className: (0, _classnames["default"])("".concat(prefixCls, "-input"), invalidClass), + ref: function ref(_ref) { + _this3.refInput = _ref; + }, + onKeyDown: this.onKeyDown, + value: str, + placeholder: placeholder, + onChange: this.onInputChange, + readOnly: !!inputReadOnly + }); } - - function matchEraAbbr(isStrict, locale) { - return locale.erasAbbrRegex(isStrict); + }, { + key: "render", + value: function render() { + var prefixCls = this.props.prefixCls; + return _react["default"].createElement("div", { + className: "".concat(prefixCls, "-input-wrap") + }, this.getInput()); } + }]); - function matchEraName(isStrict, locale) { - return locale.erasNameRegex(isStrict); - } + return Header; + }(_react.Component); - function matchEraNarrow(isStrict, locale) { - return locale.erasNarrowRegex(isStrict); - } + _defineProperty(Header, "propTypes", { + format: _propTypes["default"].string, + prefixCls: _propTypes["default"].string, + disabledDate: _propTypes["default"].func, + placeholder: _propTypes["default"].string, + clearText: _propTypes["default"].string, + value: _propTypes["default"].object, + inputReadOnly: _propTypes["default"].bool, + hourOptions: _propTypes["default"].array, + minuteOptions: _propTypes["default"].array, + secondOptions: _propTypes["default"].array, + disabledHours: _propTypes["default"].func, + disabledMinutes: _propTypes["default"].func, + disabledSeconds: _propTypes["default"].func, + onChange: _propTypes["default"].func, + onEsc: _propTypes["default"].func, + defaultOpenValue: _propTypes["default"].object, + currentSelectPanel: _propTypes["default"].string, + focusOnOpen: _propTypes["default"].bool, + onKeyDown: _propTypes["default"].func, + clearIcon: _propTypes["default"].node + }); - function matchEraYearOrdinal(isStrict, locale) { - return locale._eraYearOrdinalRegex || matchUnsigned; - } + _defineProperty(Header, "defaultProps", { + inputReadOnly: false + }); - function computeErasParse() { - var abbrPieces = [], - namePieces = [], - narrowPieces = [], - mixedPieces = [], - i, - l, - eras = this.eras(); + var _default = Header; + exports["default"] = _default; + +/***/ }), +/* 579 */ +/***/ (function(module, exports, __webpack_require__) { + + "use strict"; - for (i = 0, l = eras.length; i < l; ++i) { - namePieces.push(regexEscape(eras[i].name)); - abbrPieces.push(regexEscape(eras[i].abbr)); - narrowPieces.push(regexEscape(eras[i].narrow)); + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports["default"] = void 0; - mixedPieces.push(regexEscape(eras[i].name)); - mixedPieces.push(regexEscape(eras[i].abbr)); - mixedPieces.push(regexEscape(eras[i].narrow)); - } + var _react = _interopRequireWildcard(__webpack_require__(1)); - this._erasRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i'); - this._erasNameRegex = new RegExp('^(' + namePieces.join('|') + ')', 'i'); - this._erasAbbrRegex = new RegExp('^(' + abbrPieces.join('|') + ')', 'i'); - this._erasNarrowRegex = new RegExp( - '^(' + narrowPieces.join('|') + ')', - 'i' - ); - } + var _propTypes = _interopRequireDefault(__webpack_require__(6)); - // FORMATTING + var _Select = _interopRequireDefault(__webpack_require__(580)); - addFormatToken(0, ['gg', 2], 0, function () { - return this.weekYear() % 100; - }); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - addFormatToken(0, ['GG', 2], 0, function () { - return this.isoWeekYear() % 100; - }); + function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; } - function addWeekYearFormatToken(token, getter) { - addFormatToken(0, [token, token.length], 0, getter); - } + function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - addWeekYearFormatToken('gggg', 'weekYear'); - addWeekYearFormatToken('ggggg', 'weekYear'); - addWeekYearFormatToken('GGGG', 'isoWeekYear'); - addWeekYearFormatToken('GGGGG', 'isoWeekYear'); + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - // ALIASES + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - addUnitAlias('weekYear', 'gg'); - addUnitAlias('isoWeekYear', 'GG'); + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - // PRIORITY + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - addUnitPriority('weekYear', 1); - addUnitPriority('isoWeekYear', 1); + function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } - // PARSING + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - addRegexToken('G', matchSigned); - addRegexToken('g', matchSigned); - addRegexToken('GG', match1to2, match2); - addRegexToken('gg', match1to2, match2); - addRegexToken('GGGG', match1to4, match4); - addRegexToken('gggg', match1to4, match4); - addRegexToken('GGGGG', match1to6, match6); - addRegexToken('ggggg', match1to6, match6); + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } - addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function ( - input, - week, - config, - token - ) { - week[token.substr(0, 2)] = toInt(input); - }); + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - addWeekParseToken(['gg', 'GG'], function (input, week, config, token) { - week[token] = hooks.parseTwoDigitYear(input); - }); + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - // MOMENTS + var formatOption = function formatOption(option, disabledOptions) { + var value = "".concat(option); - function getSetWeekYear(input) { - return getSetWeekYearHelper.call( - this, - input, - this.week(), - this.weekday(), - this.localeData()._week.dow, - this.localeData()._week.doy - ); - } + if (option < 10) { + value = "0".concat(option); + } - function getSetISOWeekYear(input) { - return getSetWeekYearHelper.call( - this, - input, - this.isoWeek(), - this.isoWeekday(), - 1, - 4 - ); - } + var disabled = false; - function getISOWeeksInYear() { - return weeksInYear(this.year(), 1, 4); - } + if (disabledOptions && disabledOptions.indexOf(option) >= 0) { + disabled = true; + } - function getISOWeeksInISOWeekYear() { - return weeksInYear(this.isoWeekYear(), 1, 4); - } + return { + value: value, + disabled: disabled + }; + }; - function getWeeksInYear() { - var weekInfo = this.localeData()._week; - return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy); - } + var Combobox = + /*#__PURE__*/ + function (_Component) { + _inherits(Combobox, _Component); - function getWeeksInWeekYear() { - var weekInfo = this.localeData()._week; - return weeksInYear(this.weekYear(), weekInfo.dow, weekInfo.doy); - } + function Combobox() { + var _getPrototypeOf2; - function getSetWeekYearHelper(input, week, weekday, dow, doy) { - var weeksTarget; - if (input == null) { - return weekOfYear(this, dow, doy).year; - } else { - weeksTarget = weeksInYear(input, dow, doy); - if (week > weeksTarget) { - week = weeksTarget; - } - return setWeekAll.call(this, input, week, weekday, dow, doy); - } - } + var _this; - function setWeekAll(weekYear, week, weekday, dow, doy) { - var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy), - date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear); + _classCallCheck(this, Combobox); - this.year(date.getUTCFullYear()); - this.month(date.getUTCMonth()); - this.date(date.getUTCDate()); - return this; + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; } - // FORMATTING - - addFormatToken('Q', 0, 'Qo', 'quarter'); + _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Combobox)).call.apply(_getPrototypeOf2, [this].concat(args))); - // ALIASES + _defineProperty(_assertThisInitialized(_this), "onItemChange", function (type, itemValue) { + var _this$props = _this.props, + onChange = _this$props.onChange, + defaultOpenValue = _this$props.defaultOpenValue, + use12Hours = _this$props.use12Hours, + propValue = _this$props.value, + isAM = _this$props.isAM, + onAmPmChange = _this$props.onAmPmChange; + var value = (propValue || defaultOpenValue).clone(); - addUnitAlias('quarter', 'Q'); + if (type === 'hour') { + if (use12Hours) { + if (isAM) { + value.hour(+itemValue % 12); + } else { + value.hour(+itemValue % 12 + 12); + } + } else { + value.hour(+itemValue); + } + } else if (type === 'minute') { + value.minute(+itemValue); + } else if (type === 'ampm') { + var ampm = itemValue.toUpperCase(); - // PRIORITY + if (use12Hours) { + if (ampm === 'PM' && value.hour() < 12) { + value.hour(value.hour() % 12 + 12); + } - addUnitPriority('quarter', 7); + if (ampm === 'AM') { + if (value.hour() >= 12) { + value.hour(value.hour() - 12); + } + } + } - // PARSING + onAmPmChange(ampm); + } else { + value.second(+itemValue); + } - addRegexToken('Q', match1); - addParseToken('Q', function (input, array) { - array[MONTH] = (toInt(input) - 1) * 3; + onChange(value); }); - // MOMENTS - - function getSetQuarter(input) { - return input == null - ? Math.ceil((this.month() + 1) / 3) - : this.month((input - 1) * 3 + (this.month() % 3)); - } - - // FORMATTING - - addFormatToken('D', ['DD', 2], 'Do', 'date'); - - // ALIASES - - addUnitAlias('date', 'D'); + _defineProperty(_assertThisInitialized(_this), "onEnterSelectPanel", function (range) { + var onCurrentSelectPanelChange = _this.props.onCurrentSelectPanelChange; + onCurrentSelectPanelChange(range); + }); - // PRIORITY - addUnitPriority('date', 9); + return _this; + } - // PARSING + _createClass(Combobox, [{ + key: "getHourSelect", + value: function getHourSelect(hour) { + var _this2 = this; - addRegexToken('D', match1to2); - addRegexToken('DD', match1to2, match2); - addRegexToken('Do', function (isStrict, locale) { - // TODO: Remove "ordinalParse" fallback in next major release. - return isStrict - ? locale._dayOfMonthOrdinalParse || locale._ordinalParse - : locale._dayOfMonthOrdinalParseLenient; - }); + var _this$props2 = this.props, + prefixCls = _this$props2.prefixCls, + hourOptions = _this$props2.hourOptions, + disabledHours = _this$props2.disabledHours, + showHour = _this$props2.showHour, + use12Hours = _this$props2.use12Hours, + onEsc = _this$props2.onEsc; - addParseToken(['D', 'DD'], DATE); - addParseToken('Do', function (input, array) { - array[DATE] = toInt(input.match(match1to2)[0]); - }); + if (!showHour) { + return null; + } - // MOMENTS + var disabledOptions = disabledHours(); + var hourOptionsAdj; + var hourAdj; - var getSetDayOfMonth = makeGetSet('Date', true); + if (use12Hours) { + hourOptionsAdj = [12].concat(hourOptions.filter(function (h) { + return h < 12 && h > 0; + })); + hourAdj = hour % 12 || 12; + } else { + hourOptionsAdj = hourOptions; + hourAdj = hour; + } - // FORMATTING + return _react["default"].createElement(_Select["default"], { + prefixCls: prefixCls, + options: hourOptionsAdj.map(function (option) { + return formatOption(option, disabledOptions); + }), + selectedIndex: hourOptionsAdj.indexOf(hourAdj), + type: "hour", + onSelect: this.onItemChange, + onMouseEnter: function onMouseEnter() { + return _this2.onEnterSelectPanel('hour'); + }, + onEsc: onEsc + }); + } + }, { + key: "getMinuteSelect", + value: function getMinuteSelect(minute) { + var _this3 = this; - addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear'); + var _this$props3 = this.props, + prefixCls = _this$props3.prefixCls, + minuteOptions = _this$props3.minuteOptions, + disabledMinutes = _this$props3.disabledMinutes, + defaultOpenValue = _this$props3.defaultOpenValue, + showMinute = _this$props3.showMinute, + propValue = _this$props3.value, + onEsc = _this$props3.onEsc; - // ALIASES + if (!showMinute) { + return null; + } - addUnitAlias('dayOfYear', 'DDD'); + var value = propValue || defaultOpenValue; + var disabledOptions = disabledMinutes(value.hour()); + return _react["default"].createElement(_Select["default"], { + prefixCls: prefixCls, + options: minuteOptions.map(function (option) { + return formatOption(option, disabledOptions); + }), + selectedIndex: minuteOptions.indexOf(minute), + type: "minute", + onSelect: this.onItemChange, + onMouseEnter: function onMouseEnter() { + return _this3.onEnterSelectPanel('minute'); + }, + onEsc: onEsc + }); + } + }, { + key: "getSecondSelect", + value: function getSecondSelect(second) { + var _this4 = this; - // PRIORITY - addUnitPriority('dayOfYear', 4); + var _this$props4 = this.props, + prefixCls = _this$props4.prefixCls, + secondOptions = _this$props4.secondOptions, + disabledSeconds = _this$props4.disabledSeconds, + showSecond = _this$props4.showSecond, + defaultOpenValue = _this$props4.defaultOpenValue, + propValue = _this$props4.value, + onEsc = _this$props4.onEsc; - // PARSING + if (!showSecond) { + return null; + } - addRegexToken('DDD', match1to3); - addRegexToken('DDDD', match3); - addParseToken(['DDD', 'DDDD'], function (input, array, config) { - config._dayOfYear = toInt(input); - }); + var value = propValue || defaultOpenValue; + var disabledOptions = disabledSeconds(value.hour(), value.minute()); + return _react["default"].createElement(_Select["default"], { + prefixCls: prefixCls, + options: secondOptions.map(function (option) { + return formatOption(option, disabledOptions); + }), + selectedIndex: secondOptions.indexOf(second), + type: "second", + onSelect: this.onItemChange, + onMouseEnter: function onMouseEnter() { + return _this4.onEnterSelectPanel('second'); + }, + onEsc: onEsc + }); + } + }, { + key: "getAMPMSelect", + value: function getAMPMSelect() { + var _this5 = this; - // HELPERS + var _this$props5 = this.props, + prefixCls = _this$props5.prefixCls, + use12Hours = _this$props5.use12Hours, + format = _this$props5.format, + isAM = _this$props5.isAM, + onEsc = _this$props5.onEsc; - // MOMENTS + if (!use12Hours) { + return null; + } - function getSetDayOfYear(input) { - var dayOfYear = - Math.round( - (this.clone().startOf('day') - this.clone().startOf('year')) / 864e5 - ) + 1; - return input == null ? dayOfYear : this.add(input - dayOfYear, 'd'); + var AMPMOptions = ['am', 'pm'] // If format has A char, then we should uppercase AM/PM + .map(function (c) { + return format.match(/\sA/) ? c.toUpperCase() : c; + }).map(function (c) { + return { + value: c + }; + }); + var selected = isAM ? 0 : 1; + return _react["default"].createElement(_Select["default"], { + prefixCls: prefixCls, + options: AMPMOptions, + selectedIndex: selected, + type: "ampm", + onSelect: this.onItemChange, + onMouseEnter: function onMouseEnter() { + return _this5.onEnterSelectPanel('ampm'); + }, + onEsc: onEsc + }); + } + }, { + key: "render", + value: function render() { + var _this$props6 = this.props, + prefixCls = _this$props6.prefixCls, + defaultOpenValue = _this$props6.defaultOpenValue, + propValue = _this$props6.value; + var value = propValue || defaultOpenValue; + return _react["default"].createElement("div", { + className: "".concat(prefixCls, "-combobox") + }, this.getHourSelect(value.hour()), this.getMinuteSelect(value.minute()), this.getSecondSelect(value.second()), this.getAMPMSelect(value.hour())); } + }]); - // FORMATTING + return Combobox; + }(_react.Component); - addFormatToken('m', ['mm', 2], 0, 'minute'); + _defineProperty(Combobox, "propTypes", { + format: _propTypes["default"].string, + defaultOpenValue: _propTypes["default"].object, + prefixCls: _propTypes["default"].string, + value: _propTypes["default"].object, + onChange: _propTypes["default"].func, + onAmPmChange: _propTypes["default"].func, + showHour: _propTypes["default"].bool, + showMinute: _propTypes["default"].bool, + showSecond: _propTypes["default"].bool, + hourOptions: _propTypes["default"].array, + minuteOptions: _propTypes["default"].array, + secondOptions: _propTypes["default"].array, + disabledHours: _propTypes["default"].func, + disabledMinutes: _propTypes["default"].func, + disabledSeconds: _propTypes["default"].func, + onCurrentSelectPanelChange: _propTypes["default"].func, + use12Hours: _propTypes["default"].bool, + onEsc: _propTypes["default"].func, + isAM: _propTypes["default"].bool + }); - // ALIASES + var _default = Combobox; + exports["default"] = _default; + +/***/ }), +/* 580 */ +/***/ (function(module, exports, __webpack_require__) { + + "use strict"; - addUnitAlias('minute', 'm'); + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports["default"] = void 0; - // PRIORITY + var _react = _interopRequireWildcard(__webpack_require__(1)); - addUnitPriority('minute', 14); + var _propTypes = _interopRequireDefault(__webpack_require__(6)); - // PARSING + var _reactDom = _interopRequireDefault(__webpack_require__(2)); - addRegexToken('m', match1to2); - addRegexToken('mm', match1to2, match2); - addParseToken(['m', 'mm'], MINUTE); + var _classnames = _interopRequireDefault(__webpack_require__(5)); - // MOMENTS + var _raf = _interopRequireDefault(__webpack_require__(235)); - var getSetMinute = makeGetSet('Minutes', false); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - // FORMATTING + function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; } - addFormatToken('s', ['ss', 2], 0, 'second'); + function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - // ALIASES + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - addUnitAlias('second', 's'); + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - // PRIORITY + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - addUnitPriority('second', 15); + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - // PARSING + function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } - addRegexToken('s', match1to2); - addRegexToken('ss', match1to2, match2); - addParseToken(['s', 'ss'], SECOND); + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - // MOMENTS + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } - var getSetSecond = makeGetSet('Seconds', false); + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - // FORMATTING + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - addFormatToken('S', 0, 0, function () { - return ~~(this.millisecond() / 100); + var scrollTo = function scrollTo(element, to, duration) { + // jump to target if duration zero + if (duration <= 0) { + (0, _raf["default"])(function () { + element.scrollTop = to; }); + return; + } - addFormatToken(0, ['SS', 2], 0, function () { - return ~~(this.millisecond() / 10); - }); + var difference = to - element.scrollTop; + var perTick = difference / duration * 10; + (0, _raf["default"])(function () { + element.scrollTop += perTick; + if (element.scrollTop === to) return; + scrollTo(element, to, duration - 10); + }); + }; - addFormatToken(0, ['SSS', 3], 0, 'millisecond'); - addFormatToken(0, ['SSSS', 4], 0, function () { - return this.millisecond() * 10; - }); - addFormatToken(0, ['SSSSS', 5], 0, function () { - return this.millisecond() * 100; - }); - addFormatToken(0, ['SSSSSS', 6], 0, function () { - return this.millisecond() * 1000; - }); - addFormatToken(0, ['SSSSSSS', 7], 0, function () { - return this.millisecond() * 10000; - }); - addFormatToken(0, ['SSSSSSSS', 8], 0, function () { - return this.millisecond() * 100000; - }); - addFormatToken(0, ['SSSSSSSSS', 9], 0, function () { - return this.millisecond() * 1000000; - }); + var Select = + /*#__PURE__*/ + function (_Component) { + _inherits(Select, _Component); - // ALIASES + function Select() { + var _getPrototypeOf2; - addUnitAlias('millisecond', 'ms'); + var _this; - // PRIORITY + _classCallCheck(this, Select); - addUnitPriority('millisecond', 16); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } - // PARSING + _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Select)).call.apply(_getPrototypeOf2, [this].concat(args))); - addRegexToken('S', match1to3, match1); - addRegexToken('SS', match1to3, match2); - addRegexToken('SSS', match1to3, match3); + _defineProperty(_assertThisInitialized(_this), "state", { + active: false + }); - var token, getSetMillisecond; - for (token = 'SSSS'; token.length <= 9; token += 'S') { - addRegexToken(token, matchUnsigned); - } + _defineProperty(_assertThisInitialized(_this), "onSelect", function (value) { + var _this$props = _this.props, + onSelect = _this$props.onSelect, + type = _this$props.type; + onSelect(type, value); + }); - function parseMs(input, array) { - array[MILLISECOND] = toInt(('0.' + input) * 1000); - } + _defineProperty(_assertThisInitialized(_this), "handleMouseEnter", function (e) { + var onMouseEnter = _this.props.onMouseEnter; - for (token = 'S'; token.length <= 9; token += 'S') { - addParseToken(token, parseMs); - } + _this.setState({ + active: true + }); - getSetMillisecond = makeGetSet('Milliseconds', false); + onMouseEnter(e); + }); - // FORMATTING + _defineProperty(_assertThisInitialized(_this), "handleMouseLeave", function () { + _this.setState({ + active: false + }); + }); - addFormatToken('z', 0, 0, 'zoneAbbr'); - addFormatToken('zz', 0, 0, 'zoneName'); + _defineProperty(_assertThisInitialized(_this), "saveList", function (node) { + _this.list = node; + }); - // MOMENTS + return _this; + } - function getZoneAbbr() { - return this._isUTC ? 'UTC' : ''; + _createClass(Select, [{ + key: "componentDidMount", + value: function componentDidMount() { + // jump to selected option + this.scrollToSelected(0); } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + var selectedIndex = this.props.selectedIndex; // smooth scroll to selected option - function getZoneName() { - return this._isUTC ? 'Coordinated Universal Time' : ''; + if (prevProps.selectedIndex !== selectedIndex) { + this.scrollToSelected(120); + } } + }, { + key: "getOptions", + value: function getOptions() { + var _this2 = this; - var proto = Moment.prototype; + var _this$props2 = this.props, + options = _this$props2.options, + selectedIndex = _this$props2.selectedIndex, + prefixCls = _this$props2.prefixCls, + onEsc = _this$props2.onEsc; + return options.map(function (item, index) { + var _classNames; - proto.add = add; - proto.calendar = calendar$1; - proto.clone = clone; - proto.diff = diff; - proto.endOf = endOf; - proto.format = format; - proto.from = from; - proto.fromNow = fromNow; - proto.to = to; - proto.toNow = toNow; - proto.get = stringGet; - proto.invalidAt = invalidAt; - proto.isAfter = isAfter; - proto.isBefore = isBefore; - proto.isBetween = isBetween; - proto.isSame = isSame; - proto.isSameOrAfter = isSameOrAfter; - proto.isSameOrBefore = isSameOrBefore; - proto.isValid = isValid$2; - proto.lang = lang; - proto.locale = locale; - proto.localeData = localeData; - proto.max = prototypeMax; - proto.min = prototypeMin; - proto.parsingFlags = parsingFlags; - proto.set = stringSet; - proto.startOf = startOf; - proto.subtract = subtract; - proto.toArray = toArray; - proto.toObject = toObject; - proto.toDate = toDate; - proto.toISOString = toISOString; - proto.inspect = inspect; - if (typeof Symbol !== 'undefined' && Symbol.for != null) { - proto[Symbol.for('nodejs.util.inspect.custom')] = function () { - return 'Moment<' + this.format() + '>'; + var cls = (0, _classnames["default"])((_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-select-option-selected"), selectedIndex === index), _defineProperty(_classNames, "".concat(prefixCls, "-select-option-disabled"), item.disabled), _classNames)); + var onClick = item.disabled ? undefined : function () { + _this2.onSelect(item.value); }; - } - proto.toJSON = toJSON; - proto.toString = toString; - proto.unix = unix; - proto.valueOf = valueOf; - proto.creationData = creationData; - proto.eraName = getEraName; - proto.eraNarrow = getEraNarrow; - proto.eraAbbr = getEraAbbr; - proto.eraYear = getEraYear; - proto.year = getSetYear; - proto.isLeapYear = getIsLeapYear; - proto.weekYear = getSetWeekYear; - proto.isoWeekYear = getSetISOWeekYear; - proto.quarter = proto.quarters = getSetQuarter; - proto.month = getSetMonth; - proto.daysInMonth = getDaysInMonth; - proto.week = proto.weeks = getSetWeek; - proto.isoWeek = proto.isoWeeks = getSetISOWeek; - proto.weeksInYear = getWeeksInYear; - proto.weeksInWeekYear = getWeeksInWeekYear; - proto.isoWeeksInYear = getISOWeeksInYear; - proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear; - proto.date = getSetDayOfMonth; - proto.day = proto.days = getSetDayOfWeek; - proto.weekday = getSetLocaleDayOfWeek; - proto.isoWeekday = getSetISODayOfWeek; - proto.dayOfYear = getSetDayOfYear; - proto.hour = proto.hours = getSetHour; - proto.minute = proto.minutes = getSetMinute; - proto.second = proto.seconds = getSetSecond; - proto.millisecond = proto.milliseconds = getSetMillisecond; - proto.utcOffset = getSetOffset; - proto.utc = setOffsetToUTC; - proto.local = setOffsetToLocal; - proto.parseZone = setOffsetToParsedOffset; - proto.hasAlignedHourOffset = hasAlignedHourOffset; - proto.isDST = isDaylightSavingTime; - proto.isLocal = isLocal; - proto.isUtcOffset = isUtcOffset; - proto.isUtc = isUtc; - proto.isUTC = isUtc; - proto.zoneAbbr = getZoneAbbr; - proto.zoneName = getZoneName; - proto.dates = deprecate( - 'dates accessor is deprecated. Use date instead.', - getSetDayOfMonth - ); - proto.months = deprecate( - 'months accessor is deprecated. Use month instead', - getSetMonth - ); - proto.years = deprecate( - 'years accessor is deprecated. Use year instead', - getSetYear - ); - proto.zone = deprecate( - 'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', - getSetZone - ); - proto.isDSTShifted = deprecate( - 'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information', - isDaylightSavingTimeShifted - ); - - function createUnix(input) { - return createLocal(input * 1000); - } - function createInZone() { - return createLocal.apply(null, arguments).parseZone(); - } + var onKeyDown = function onKeyDown(e) { + if (e.keyCode === 13) onClick();else if (e.keyCode === 27) onEsc(); + }; - function preParsePostFormat(string) { - return string; + return _react["default"].createElement("li", { + role: "button", + onClick: onClick, + className: cls, + key: index, + disabled: item.disabled, + tabIndex: "0", + onKeyDown: onKeyDown + }, item.value); + }); } + }, { + key: "scrollToSelected", + value: function scrollToSelected(duration) { + // move to selected item + var selectedIndex = this.props.selectedIndex; - var proto$1 = Locale.prototype; - - proto$1.calendar = calendar; - proto$1.longDateFormat = longDateFormat; - proto$1.invalidDate = invalidDate; - proto$1.ordinal = ordinal; - proto$1.preparse = preParsePostFormat; - proto$1.postformat = preParsePostFormat; - proto$1.relativeTime = relativeTime; - proto$1.pastFuture = pastFuture; - proto$1.set = set; - proto$1.eras = localeEras; - proto$1.erasParse = localeErasParse; - proto$1.erasConvertYear = localeErasConvertYear; - proto$1.erasAbbrRegex = erasAbbrRegex; - proto$1.erasNameRegex = erasNameRegex; - proto$1.erasNarrowRegex = erasNarrowRegex; + var select = _reactDom["default"].findDOMNode(this); - proto$1.months = localeMonths; - proto$1.monthsShort = localeMonthsShort; - proto$1.monthsParse = localeMonthsParse; - proto$1.monthsRegex = monthsRegex; - proto$1.monthsShortRegex = monthsShortRegex; - proto$1.week = localeWeek; - proto$1.firstDayOfYear = localeFirstDayOfYear; - proto$1.firstDayOfWeek = localeFirstDayOfWeek; + var list = _reactDom["default"].findDOMNode(this.list); - proto$1.weekdays = localeWeekdays; - proto$1.weekdaysMin = localeWeekdaysMin; - proto$1.weekdaysShort = localeWeekdaysShort; - proto$1.weekdaysParse = localeWeekdaysParse; + if (!list) { + return; + } - proto$1.weekdaysRegex = weekdaysRegex; - proto$1.weekdaysShortRegex = weekdaysShortRegex; - proto$1.weekdaysMinRegex = weekdaysMinRegex; + var index = selectedIndex; - proto$1.isPM = localeIsPM; - proto$1.meridiem = localeMeridiem; + if (index < 0) { + index = 0; + } - function get$1(format, index, field, setter) { - var locale = getLocale(), - utc = createUTC().set(setter, index); - return locale[field](utc, format); + var topOption = list.children[index]; + var to = topOption.offsetTop; + scrollTo(select, to, duration); } + }, { + key: "render", + value: function render() { + var _this$props3 = this.props, + prefixCls = _this$props3.prefixCls, + options = _this$props3.options; + var active = this.state.active; - function listMonthsImpl(format, index, field) { - if (isNumber(format)) { - index = format; - format = undefined; - } - - format = format || ''; - - if (index != null) { - return get$1(format, index, field, 'month'); - } + if (options.length === 0) { + return null; + } - var i, - out = []; - for (i = 0; i < 12; i++) { - out[i] = get$1(format, i, field, 'month'); - } - return out; + var cls = (0, _classnames["default"])("".concat(prefixCls, "-select"), _defineProperty({}, "".concat(prefixCls, "-select-active"), active)); + return _react["default"].createElement("div", { + className: cls, + onMouseEnter: this.handleMouseEnter, + onMouseLeave: this.handleMouseLeave + }, _react["default"].createElement("ul", { + ref: this.saveList + }, this.getOptions())); } + }]); - // () - // (5) - // (fmt, 5) - // (fmt) - // (true) - // (true, 5) - // (true, fmt, 5) - // (true, fmt) - function listWeekdaysImpl(localeSorted, format, index, field) { - if (typeof localeSorted === 'boolean') { - if (isNumber(format)) { - index = format; - format = undefined; - } - - format = format || ''; - } else { - format = localeSorted; - index = format; - localeSorted = false; - - if (isNumber(format)) { - index = format; - format = undefined; - } - - format = format || ''; - } + return Select; + }(_react.Component); - var locale = getLocale(), - shift = localeSorted ? locale._week.dow : 0, - i, - out = []; + _defineProperty(Select, "propTypes", { + prefixCls: _propTypes["default"].string, + options: _propTypes["default"].array, + selectedIndex: _propTypes["default"].number, + type: _propTypes["default"].string, + onSelect: _propTypes["default"].func, + onMouseEnter: _propTypes["default"].func, + onEsc: _propTypes["default"].func + }); - if (index != null) { - return get$1(format, (index + shift) % 7, field, 'day'); - } + var _default = Select; + exports["default"] = _default; + +/***/ }), +/* 581 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - for (i = 0; i < 7; i++) { - out[i] = get$1(format, (i + shift) % 7, field, 'day'); - } - return out; - } + module.exports = __webpack_require__(582); + +/***/ }), +/* 582 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - function listMonths(format, index) { - return listMonthsImpl(format, index, 'months'); - } + Object.defineProperty(exports, "__esModule", { + value: true + }); - function listMonthsShort(format, index) { - return listMonthsImpl(format, index, 'monthsShort'); - } + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - function listWeekdays(localeSorted, format, index) { - return listWeekdaysImpl(localeSorted, format, index, 'weekdays'); - } + var _classnames = __webpack_require__(5); - function listWeekdaysShort(localeSorted, format, index) { - return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort'); - } + var _classnames2 = _interopRequireDefault(_classnames); - function listWeekdaysMin(localeSorted, format, index) { - return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin'); - } + var _react = __webpack_require__(1); - getSetGlobalLocale('en', { - eras: [ - { - since: '0001-01-01', - until: +Infinity, - offset: 1, - name: 'Anno Domini', - narrow: 'AD', - abbr: 'AD', - }, - { - since: '0000-12-31', - until: -Infinity, - offset: 1, - name: 'Before Christ', - narrow: 'BC', - abbr: 'BC', - }, - ], - dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, - ordinal: function (number) { - var b = number % 10, - output = - toInt((number % 100) / 10) === 1 - ? 'th' - : b === 1 - ? 'st' - : b === 2 - ? 'nd' - : b === 3 - ? 'rd' - : 'th'; - return number + output; - }, - }); + var _react2 = _interopRequireDefault(_react); - // Side effect imports + var _beeInputGroupAddon = __webpack_require__(583); - hooks.lang = deprecate( - 'moment.lang is deprecated. Use moment.locale instead.', - getSetGlobalLocale - ); - hooks.langData = deprecate( - 'moment.langData is deprecated. Use moment.localeData instead.', - getLocale - ); + var _beeInputGroupAddon2 = _interopRequireDefault(_beeInputGroupAddon); - var mathAbs = Math.abs; + var _InputGroupButton = __webpack_require__(585); - function abs() { - var data = this._data; + var _InputGroupButton2 = _interopRequireDefault(_InputGroupButton); - this._milliseconds = mathAbs(this._milliseconds); - this._days = mathAbs(this._days); - this._months = mathAbs(this._months); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - data.milliseconds = mathAbs(data.milliseconds); - data.seconds = mathAbs(data.seconds); - data.minutes = mathAbs(data.minutes); - data.hours = mathAbs(data.hours); - data.months = mathAbs(data.months); - data.years = mathAbs(data.years); + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - return this; - } + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - function addSubtract$1(duration, input, value, direction) { - var other = createDuration(input, value); + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - duration._milliseconds += direction * other._milliseconds; - duration._days += direction * other._days; - duration._months += direction * other._months; + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - return duration._bubble(); - } + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - // supports only 2.0-style add(1, 's') or add(duration) - function add$1(input, value) { - return addSubtract$1(this, input, value, 1); - } + var defaultProps = { + clsPrefix: 'u-input-group', + simple: false + }; - // supports only 2.0-style subtract(1, 's') or subtract(duration) - function subtract$1(input, value) { - return addSubtract$1(this, input, value, -1); - } + var InputGroup = function (_React$Component) { + _inherits(InputGroup, _React$Component); - function absCeil(number) { - if (number < 0) { - return Math.floor(number); - } else { - return Math.ceil(number); - } - } + function InputGroup() { + _classCallCheck(this, InputGroup); - function bubble() { - var milliseconds = this._milliseconds, - days = this._days, - months = this._months, - data = this._data, - seconds, - minutes, - hours, - years, - monthsFromDays; + return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); + } - // if we have a mix of positive and negative values, bubble down first - // check: https://github.com/moment/moment/issues/2166 - if ( - !( - (milliseconds >= 0 && days >= 0 && months >= 0) || - (milliseconds <= 0 && days <= 0 && months <= 0) - ) - ) { - milliseconds += absCeil(monthsToDays(months) + days) * 864e5; - days = 0; - months = 0; - } + InputGroup.prototype.render = function render() { + var _props = this.props, + className = _props.className, + clsPrefix = _props.clsPrefix, + simple = _props.simple, + others = _objectWithoutProperties(_props, ['className', 'clsPrefix', 'simple']); - // The following code bubbles up values, see the tests for - // examples of what that means. - data.milliseconds = milliseconds % 1000; + return _react2["default"].createElement('span', _extends({}, others, { + className: (0, _classnames2["default"])(className, clsPrefix, simple && 'simple') + })); + }; - seconds = absFloor(milliseconds / 1000); - data.seconds = seconds % 60; + return InputGroup; + }(_react2["default"].Component); - minutes = absFloor(seconds / 60); - data.minutes = minutes % 60; + /** + * 将InputGroupAddon与InputGroupButton组件作为InputGroup的附属组件 + */ - hours = absFloor(minutes / 60); - data.hours = hours % 24; - days += absFloor(hours / 24); + InputGroup.Addon = _beeInputGroupAddon2["default"]; + InputGroup.Button = _InputGroupButton2["default"]; + InputGroup.defaultProps = defaultProps; + exports["default"] = InputGroup; + module.exports = exports['default']; + +/***/ }), +/* 583 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - // convert days to months - monthsFromDays = absFloor(daysToMonths(days)); - months += monthsFromDays; - days -= absCeil(monthsToDays(monthsFromDays)); + Object.defineProperty(exports, "__esModule", { + value: true + }); - // 12 months -> 1 year - years = absFloor(months / 12); - months %= 12; + var _InputGroupAddon = __webpack_require__(584); - data.days = days; - data.months = months; - data.years = years; + var _InputGroupAddon2 = _interopRequireDefault(_InputGroupAddon); - return this; - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - function daysToMonths(days) { - // 400 years have 146097 days (taking into account leap year rules) - // 400 years have 12 months === 4800 - return (days * 4800) / 146097; - } + exports["default"] = _InputGroupAddon2["default"]; + module.exports = exports['default']; + +/***/ }), +/* 584 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - function monthsToDays(months) { - // the reverse of daysToMonths - return (months * 146097) / 4800; - } + Object.defineProperty(exports, "__esModule", { + value: true + }); - function as(units) { - if (!this.isValid()) { - return NaN; - } - var days, - months, - milliseconds = this._milliseconds; + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - units = normalizeUnits(units); + var _classnames = __webpack_require__(5); - if (units === 'month' || units === 'quarter' || units === 'year') { - days = this._days + milliseconds / 864e5; - months = this._months + daysToMonths(days); - switch (units) { - case 'month': - return months; - case 'quarter': - return months / 3; - case 'year': - return months / 12; - } - } else { - // handle milliseconds separately because of floating point math errors (issue #1867) - days = this._days + Math.round(monthsToDays(this._months)); - switch (units) { - case 'week': - return days / 7 + milliseconds / 6048e5; - case 'day': - return days + milliseconds / 864e5; - case 'hour': - return days * 24 + milliseconds / 36e5; - case 'minute': - return days * 1440 + milliseconds / 6e4; - case 'second': - return days * 86400 + milliseconds / 1000; - // Math.floor prevents floating point math errors here - case 'millisecond': - return Math.floor(days * 864e5) + milliseconds; - default: - throw new Error('Unknown unit ' + units); - } - } - } + var _classnames2 = _interopRequireDefault(_classnames); - // TODO: Use this.as('ms')? - function valueOf$1() { - if (!this.isValid()) { - return NaN; - } - return ( - this._milliseconds + - this._days * 864e5 + - (this._months % 12) * 2592e6 + - toInt(this._months / 12) * 31536e6 - ); - } + var _react = __webpack_require__(1); - function makeAs(alias) { - return function () { - return this.as(alias); - }; - } + var _react2 = _interopRequireDefault(_react); - var asMilliseconds = makeAs('ms'), - asSeconds = makeAs('s'), - asMinutes = makeAs('m'), - asHours = makeAs('h'), - asDays = makeAs('d'), - asWeeks = makeAs('w'), - asMonths = makeAs('M'), - asQuarters = makeAs('Q'), - asYears = makeAs('y'); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - function clone$1() { - return createDuration(this); - } + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - function get$2(units) { - units = normalizeUnits(units); - return this.isValid() ? this[units + 's']() : NaN; - } + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - function makeGetter(name) { - return function () { - return this.isValid() ? this._data[name] : NaN; - }; - } + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - var milliseconds = makeGetter('milliseconds'), - seconds = makeGetter('seconds'), - minutes = makeGetter('minutes'), - hours = makeGetter('hours'), - days = makeGetter('days'), - months = makeGetter('months'), - years = makeGetter('years'); + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - function weeks() { - return absFloor(this.days() / 7); - } + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - var round = Math.round, - thresholds = { - ss: 44, // a few seconds to seconds - s: 45, // seconds to minute - m: 45, // minutes to hour - h: 22, // hours to day - d: 26, // days to month/week - w: null, // weeks to month - M: 11, // months to year - }; + var defaultProps = { + clsPrefix: 'u-input-group-addon' + }; - // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize - function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) { - return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture); - } + var InputGroupAddon = function (_React$Component) { + _inherits(InputGroupAddon, _React$Component); - function relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) { - var duration = createDuration(posNegDuration).abs(), - seconds = round(duration.as('s')), - minutes = round(duration.as('m')), - hours = round(duration.as('h')), - days = round(duration.as('d')), - months = round(duration.as('M')), - weeks = round(duration.as('w')), - years = round(duration.as('y')), - a = - (seconds <= thresholds.ss && ['s', seconds]) || - (seconds < thresholds.s && ['ss', seconds]) || - (minutes <= 1 && ['m']) || - (minutes < thresholds.m && ['mm', minutes]) || - (hours <= 1 && ['h']) || - (hours < thresholds.h && ['hh', hours]) || - (days <= 1 && ['d']) || - (days < thresholds.d && ['dd', days]); + function InputGroupAddon() { + _classCallCheck(this, InputGroupAddon); - if (thresholds.w != null) { - a = - a || - (weeks <= 1 && ['w']) || - (weeks < thresholds.w && ['ww', weeks]); - } - a = a || - (months <= 1 && ['M']) || - (months < thresholds.M && ['MM', months]) || - (years <= 1 && ['y']) || ['yy', years]; + return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); + } - a[2] = withoutSuffix; - a[3] = +posNegDuration > 0; - a[4] = locale; - return substituteTimeAgo.apply(null, a); - } + InputGroupAddon.prototype.render = function render() { + var _props = this.props, + className = _props.className, + clsPrefix = _props.clsPrefix, + others = _objectWithoutProperties(_props, ['className', 'clsPrefix']); - // This function allows you to set the rounding function for relative time strings - function getSetRelativeTimeRounding(roundingFunction) { - if (roundingFunction === undefined) { - return round; - } - if (typeof roundingFunction === 'function') { - round = roundingFunction; - return true; - } - return false; - } + return _react2["default"].createElement('span', _extends({}, others, { + className: (0, _classnames2["default"])(className, clsPrefix) + })); + }; - // This function allows you to set a threshold for relative time strings - function getSetRelativeTimeThreshold(threshold, limit) { - if (thresholds[threshold] === undefined) { - return false; - } - if (limit === undefined) { - return thresholds[threshold]; - } - thresholds[threshold] = limit; - if (threshold === 's') { - thresholds.ss = limit - 1; - } - return true; - } + return InputGroupAddon; + }(_react2["default"].Component); - function humanize(argWithSuffix, argThresholds) { - if (!this.isValid()) { - return this.localeData().invalidDate(); - } + InputGroupAddon.defaultProps = defaultProps; + exports["default"] = InputGroupAddon; + module.exports = exports['default']; + +/***/ }), +/* 585 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - var withSuffix = false, - th = thresholds, - locale, - output; + Object.defineProperty(exports, "__esModule", { + value: true + }); - if (typeof argWithSuffix === 'object') { - argThresholds = argWithSuffix; - argWithSuffix = false; - } - if (typeof argWithSuffix === 'boolean') { - withSuffix = argWithSuffix; - } - if (typeof argThresholds === 'object') { - th = Object.assign({}, thresholds, argThresholds); - if (argThresholds.s != null && argThresholds.ss == null) { - th.ss = argThresholds.s - 1; - } - } + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - locale = this.localeData(); - output = relativeTime$1(this, !withSuffix, th, locale); + var _classnames = __webpack_require__(5); - if (withSuffix) { - output = locale.pastFuture(+this, output); - } + var _classnames2 = _interopRequireDefault(_classnames); - return locale.postformat(output); - } + var _react = __webpack_require__(1); - var abs$1 = Math.abs; + var _react2 = _interopRequireDefault(_react); - function sign(x) { - return (x > 0) - (x < 0) || +x; - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - function toISOString$1() { - // for ISO strings we do not use the normal bubbling rules: - // * milliseconds bubble up until they become hours - // * days do not bubble at all - // * months bubble up until they become years - // This is because there is no context-free conversion between hours and days - // (think of clock changes) - // and also not between days and months (28-31 days per month) - if (!this.isValid()) { - return this.localeData().invalidDate(); - } + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - var seconds = abs$1(this._milliseconds) / 1000, - days = abs$1(this._days), - months = abs$1(this._months), - minutes, - hours, - years, - s, - total = this.asSeconds(), - totalSign, - ymSign, - daysSign, - hmsSign; + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - if (!total) { - // this is the same as C#'s (Noda) and python (isodate)... - // but not other JS (goog.date) - return 'P0D'; - } + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - // 3600 seconds -> 60 minutes -> 1 hour - minutes = absFloor(seconds / 60); - hours = absFloor(minutes / 60); - seconds %= 60; - minutes %= 60; + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - // 12 months -> 1 year - years = absFloor(months / 12); - months %= 12; + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js - s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, '') : ''; + var defaultProps = { + clsPrefix: 'u-input-group-btn' + }; - totalSign = total < 0 ? '-' : ''; - ymSign = sign(this._months) !== sign(total) ? '-' : ''; - daysSign = sign(this._days) !== sign(total) ? '-' : ''; - hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : ''; + var InputGroupButton = function (_React$Component) { + _inherits(InputGroupButton, _React$Component); - return ( - totalSign + - 'P' + - (years ? ymSign + years + 'Y' : '') + - (months ? ymSign + months + 'M' : '') + - (days ? daysSign + days + 'D' : '') + - (hours || minutes || seconds ? 'T' : '') + - (hours ? hmsSign + hours + 'H' : '') + - (minutes ? hmsSign + minutes + 'M' : '') + - (seconds ? hmsSign + s + 'S' : '') - ); - } + function InputGroupButton() { + _classCallCheck(this, InputGroupButton); - var proto$2 = Duration.prototype; + return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); + } - proto$2.isValid = isValid$1; - proto$2.abs = abs; - proto$2.add = add$1; - proto$2.subtract = subtract$1; - proto$2.as = as; - proto$2.asMilliseconds = asMilliseconds; - proto$2.asSeconds = asSeconds; - proto$2.asMinutes = asMinutes; - proto$2.asHours = asHours; - proto$2.asDays = asDays; - proto$2.asWeeks = asWeeks; - proto$2.asMonths = asMonths; - proto$2.asQuarters = asQuarters; - proto$2.asYears = asYears; - proto$2.valueOf = valueOf$1; - proto$2._bubble = bubble; - proto$2.clone = clone$1; - proto$2.get = get$2; - proto$2.milliseconds = milliseconds; - proto$2.seconds = seconds; - proto$2.minutes = minutes; - proto$2.hours = hours; - proto$2.days = days; - proto$2.weeks = weeks; - proto$2.months = months; - proto$2.years = years; - proto$2.humanize = humanize; - proto$2.toISOString = toISOString$1; - proto$2.toString = toISOString$1; - proto$2.toJSON = toISOString$1; - proto$2.locale = locale; - proto$2.localeData = localeData; + InputGroupButton.prototype.render = function render() { + var _props = this.props, + className = _props.className, + clsPrefix = _props.clsPrefix, + others = _objectWithoutProperties(_props, ['className', 'clsPrefix']); - proto$2.toIsoString = deprecate( - 'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', - toISOString$1 - ); - proto$2.lang = lang; + return _react2["default"].createElement('span', _extends({}, others, { + className: (0, _classnames2["default"])(className, clsPrefix) + })); + }; - // FORMATTING + return InputGroupButton; + }(_react2["default"].Component); - addFormatToken('X', 0, 0, 'unix'); - addFormatToken('x', 0, 0, 'valueOf'); + InputGroupButton.defaultProps = defaultProps; + exports["default"] = InputGroupButton; + module.exports = exports['default']; + +/***/ }), +/* 586 */ +/***/ (function(module, exports) { + + 'use strict'; - // PARSING + exports.__esModule = true; + exports['default'] = { + today: '今天', + now: '此刻', + backToToday: '返回今天', + ok: '确定', + timeSelect: '选择时间', + dateSelect: '选择日期', + weekSelect: '选择周', + clear: '清除', + month: '月', + year: '年', + previousMonth: '上个月 (翻页上键)', + nextMonth: '下个月 (翻页下键)', + monthSelect: '选择月份', + yearSelect: '选择年份', + decadeSelect: '选择年代', + yearFormat: 'YYYY年', + dayFormat: 'D日', + dateFormat: 'YYYY年M月D日', + dateTimeFormat: 'YYYY年M月D日 HH时mm分ss秒', + previousYear: '上一年 (Control键加左方向键)', + nextYear: '下一年 (Control键加右方向键)', + previousDecade: '上一年代', + nextDecade: '下一年代', + previousCentury: '上一世纪', + nextCentury: '下一世纪' + }; + module.exports = exports['default']; + +/***/ }), +/* 587 */ +/***/ (function(module, exports, __webpack_require__) { + + "use strict"; - addRegexToken('x', matchSigned); - addRegexToken('X', matchTimestamp); - addParseToken('X', function (input, array, config) { - config._d = new Date(parseFloat(input) * 1000); - }); - addParseToken('x', function (input, array, config) { - config._d = new Date(toInt(input)); - }); + Object.defineProperty(exports, "__esModule", { + value: true + }); - //! moment.js + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - hooks.version = '2.25.3'; + var _MonthCalendar = __webpack_require__(588); - setHookCallback(createLocal); + var _MonthCalendar2 = _interopRequireDefault(_MonthCalendar); - hooks.fn = proto; - hooks.min = min; - hooks.max = max; - hooks.now = now; - hooks.utc = createUTC; - hooks.unix = createUnix; - hooks.months = listMonths; - hooks.isDate = isDate; - hooks.locale = getSetGlobalLocale; - hooks.invalid = createInvalid; - hooks.duration = createDuration; - hooks.isMoment = isMoment; - hooks.weekdays = listWeekdays; - hooks.parseZone = createInZone; - hooks.localeData = getLocale; - hooks.isDuration = isDuration; - hooks.monthsShort = listMonthsShort; - hooks.weekdaysMin = listWeekdaysMin; - hooks.defineLocale = defineLocale; - hooks.updateLocale = updateLocale; - hooks.locales = listLocales; - hooks.weekdaysShort = listWeekdaysShort; - hooks.normalizeUnits = normalizeUnits; - hooks.relativeTimeRounding = getSetRelativeTimeRounding; - hooks.relativeTimeThreshold = getSetRelativeTimeThreshold; - hooks.calendarFormat = getCalendarFormat; - hooks.prototype = proto; + var _tinperBeeCore = __webpack_require__(27); - // currently HTML5 input type only supports 24-hour formats - hooks.HTML5_FMT = { - DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // - DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // - DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // - DATE: 'YYYY-MM-DD', // - TIME: 'HH:mm', // - TIME_SECONDS: 'HH:mm:ss', // - TIME_MS: 'HH:mm:ss.SSS', // - WEEK: 'GGGG-[W]WW', // - MONTH: 'YYYY-MM', // - }; + var _react = __webpack_require__(1); - return hooks; + var _react2 = _interopRequireDefault(_react); - }))); + var _reactDom = __webpack_require__(2); - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(245)(module))) + var _reactDom2 = _interopRequireDefault(_reactDom); - /***/ }), - /* 5 */ - /***/ (function(module, exports) { + var _Picker = __webpack_require__(575); - // shim for using process in browser - var process = module.exports = {}; + var _Picker2 = _interopRequireDefault(_Picker); - // cached from whatever global is present so that test runners that stub it - // don't break things. But we need to wrap it in a try catch in case it is - // wrapped in strict mode code which doesn't define any globals. It's inside a - // function because try/catches deoptimize in certain engines. + var _beeFormControl = __webpack_require__(268); - var cachedSetTimeout; - var cachedClearTimeout; + var _beeFormControl2 = _interopRequireDefault(_beeFormControl); - function defaultSetTimout() { - throw new Error('setTimeout has not been defined'); - } - function defaultClearTimeout () { - throw new Error('clearTimeout has not been defined'); - } - (function () { - try { - if (typeof setTimeout === 'function') { - cachedSetTimeout = setTimeout; - } else { - cachedSetTimeout = defaultSetTimout; - } - } catch (e) { - cachedSetTimeout = defaultSetTimout; - } - try { - if (typeof clearTimeout === 'function') { - cachedClearTimeout = clearTimeout; - } else { - cachedClearTimeout = defaultClearTimeout; - } - } catch (e) { - cachedClearTimeout = defaultClearTimeout; - } - } ()) - function runTimeout(fun) { - if (cachedSetTimeout === setTimeout) { - //normal enviroments in sane situations - return setTimeout(fun, 0); - } - // if setTimeout wasn't available but was latter defined - if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { - cachedSetTimeout = setTimeout; - return setTimeout(fun, 0); - } - try { - // when when somebody has screwed with setTimeout but no I.E. maddness - return cachedSetTimeout(fun, 0); - } catch(e){ - try { - // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally - return cachedSetTimeout.call(null, fun, 0); - } catch(e){ - // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error - return cachedSetTimeout.call(this, fun, 0); - } - } + var _beeIcon = __webpack_require__(67); + var _beeIcon2 = _interopRequireDefault(_beeIcon); - } - function runClearTimeout(marker) { - if (cachedClearTimeout === clearTimeout) { - //normal enviroments in sane situations - return clearTimeout(marker); - } - // if clearTimeout wasn't available but was latter defined - if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { - cachedClearTimeout = clearTimeout; - return clearTimeout(marker); - } - try { - // when when somebody has screwed with setTimeout but no I.E. maddness - return cachedClearTimeout(marker); - } catch (e){ - try { - // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally - return cachedClearTimeout.call(null, marker); - } catch (e){ - // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. - // Some versions of I.E. have different rules for clearTimeout vs setTimeout - return cachedClearTimeout.call(this, marker); - } - } + var _beeInputGroup = __webpack_require__(581); + var _beeInputGroup2 = _interopRequireDefault(_beeInputGroup); + var _classnames = __webpack_require__(5); - } - var queue = []; - var draining = false; - var currentQueue; - var queueIndex = -1; + var _classnames2 = _interopRequireDefault(_classnames); - function cleanUpNextTick() { - if (!draining || !currentQueue) { - return; - } - draining = false; - if (currentQueue.length) { - queue = currentQueue.concat(queue); - } else { - queueIndex = -1; - } - if (queue.length) { - drainQueue(); - } - } + var _zh_CN = __webpack_require__(586); - function drainQueue() { - if (draining) { - return; - } - var timeout = runTimeout(cleanUpNextTick); - draining = true; + var _zh_CN2 = _interopRequireDefault(_zh_CN); - var len = queue.length; - while(len) { - currentQueue = queue; - queue = []; - while (++queueIndex < len) { - if (currentQueue) { - currentQueue[queueIndex].run(); - } - } - queueIndex = -1; - len = queue.length; - } - currentQueue = null; - draining = false; - runClearTimeout(timeout); - } + var _omit = __webpack_require__(288); - process.nextTick = function (fun) { - var args = new Array(arguments.length - 1); - if (arguments.length > 1) { - for (var i = 1; i < arguments.length; i++) { - args[i - 1] = arguments[i]; - } - } - queue.push(new Item(fun, args)); - if (queue.length === 1 && !draining) { - runTimeout(drainQueue); - } - }; + var _omit2 = _interopRequireDefault(_omit); - // v8 likes predictible objects - function Item(fun, array) { - this.fun = fun; - this.array = array; - } - Item.prototype.run = function () { - this.fun.apply(null, this.array); - }; - process.title = 'browser'; - process.browser = true; - process.env = {}; - process.argv = []; - process.version = ''; // empty string to avoid regexp issues - process.versions = {}; + var _moment = __webpack_require__(423); - function noop() {} + var _moment2 = _interopRequireDefault(_moment); - process.on = noop; - process.addListener = noop; - process.once = noop; - process.off = noop; - process.removeListener = noop; - process.removeAllListeners = noop; - process.emit = noop; - process.prependListener = noop; - process.prependOnceListener = noop; + var _util = __webpack_require__(559); - process.listeners = function (name) { return [] } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - process.binding = function (name) { - throw new Error('process.binding is not supported'); - }; + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - process.cwd = function () { return '/' }; - process.chdir = function (dir) { - throw new Error('process.chdir is not supported'); - }; - process.umask = function() { return 0; }; + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - /***/ }), - /* 6 */ - /***/ (function(module, exports, __webpack_require__) { + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - "use strict"; - /* WEBPACK VAR INJECTION */(function(process) {/** - * Copyright 2014-2015, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** + * Created by chief on 17/4/6. + */ + var MonthPicker = function (_Component) { + _inherits(MonthPicker, _Component); + function MonthPicker(props, context) { + _classCallCheck(this, MonthPicker); - /** - * Similar to invariant but only logs a warning if the condition is not met. - * This can be used to log issues in development environments in critical - * paths. Removing the logging code for production environments will keep the - * same logic and follow the same code paths. - */ + var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); - var warning = function() {}; + _initialiseProps.call(_this); - if (process.env.NODE_ENV !== 'production') { - warning = function(condition, format, args) { - var len = arguments.length; - args = new Array(len > 2 ? len - 2 : 0); - for (var key = 2; key < len; key++) { - args[key - 2] = arguments[key]; - } - if (format === undefined) { - throw new Error( - '`warning(condition, format, ...args)` requires a warning ' + - 'message argument' - ); - } + _this.state = { + type: "month", + value: props.value || props.defaultValue, + open: false, + showClose: false + }; + return _this; + } - if (format.length < 10 || (/^[s\W]*$/).test(format)) { - throw new Error( - 'The warning format should be able to uniquely identify this ' + - 'warning. Please, use a more descriptive format than: ' + format - ); + MonthPicker.prototype.componentDidMount = function componentDidMount() { + var value = this.props.value || this.props.defaultValue; + if (value) { + if (typeof value == 'string') { + if ((0, _moment2["default"])(value).isValid()) { + value = (0, _moment2["default"])(value); + } else { + console.error('value is not in the correct format'); + value = ''; + } + } else if (value.format && value.isValid()) { + value = value; + } else { + console.error('value is not in the correct format'); + value = ''; + } } + this.setState({ + value: value + }); + }; - if (!condition) { - var argIndex = 0; - var message = 'Warning: ' + - format.replace(/%s/g, function() { - return args[argIndex++]; - }); - if (typeof console !== 'undefined') { - console.error(message); + MonthPicker.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { + if ('value' in nextProps) { + var value = nextProps.value; + if (value) { + if (value.format && value.isValid()) {} else { + value = (0, _moment2["default"])(value); + } + } else { + value = ''; } - try { - // This error was thrown as a convenience so that you can use this stack - // to find the callsite that caused this warning to fire. - throw new Error(message); - } catch(x) {} + this.setState({ + value: value + }); } }; - } - - module.exports = warning; - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) - - /***/ }), - /* 7 */ - /***/ (function(module, exports, __webpack_require__) { + MonthPicker.prototype.render = function render() { + var _this2 = this; - "use strict"; + var state = this.state; + var props = this.props; + var showClose = props.showClose, + value = props.value, + others = _objectWithoutProperties(props, ["showClose", "value"]); - exports.__esModule = true; + var monthCalendar = _react2["default"].createElement(_MonthCalendar2["default"], _extends({}, props, { + value: state.value, + onChange: this.handleCalendarChange + })); + var classes = (0, _classnames2["default"])(props.className, "datepicker-container"); + return _react2["default"].createElement( + "div", + _extends({ className: classes + }, (0, _omit2["default"])(others, ['closeIcon', 'renderIcon', 'format', 'showDateInput', 'showMonthInput', 'locale', 'placeholder', 'onClear', 'renderFooter', 'renderError', 'disabledDate', 'disabledTime'])), + _react2["default"].createElement( + _Picker2["default"], + _extends({}, props, { + onOpenChange: this.onOpenChange, + animation: 'animation' in props ? props.animation : "slide-up", + calendar: monthCalendar, + open: this.state.open, + value: state.value, + onChange: this.onChange, + dropdownClassName: props.dropdownClassName, + selectedValue: state.value, + renderError: props.renderError + }), + function (_ref) { + var value = _ref.value; - exports.default = function (instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } - }; + if (value && value.format) value = (0, _util.formatDate)(value, props.format); + return _react2["default"].createElement( + _beeInputGroup2["default"], + { simple: true, className: "datepicker-input-group", + onMouseEnter: _this2.onMouseEnter, + onMouseLeave: _this2.onMouseLeave + }, + _react2["default"].createElement(_beeFormControl2["default"], { + ref: function ref(_ref2) { + return _this2.outInput = _ref2; + }, + placeholder: _this2.props.placeholder, + className: _this2.props.className, + value: value, + disabled: props.disabled + }), + showClose && _this2.state.value && _this2.state.showClose && !props.disabled ? _react2["default"].createElement( + _beeInputGroup2["default"].Button, + { shape: "border", + onClick: _this2.clear }, + props.closeIcon() + ) : _react2["default"].createElement( + _beeInputGroup2["default"].Button, + { shape: "border" }, + props.renderIcon() + ) + ); + } + ) + ); + }; - /***/ }), - /* 8 */ - /***/ (function(module, exports, __webpack_require__) { + return MonthPicker; + }(_react.Component); - "use strict"; + var _initialiseProps = function _initialiseProps() { + var _this3 = this; + this.handleCalendarChange = function (value) { + _this3.setState({ + value: value && _extends(value, { _type: 'month' }) || value + }); + }; - exports.__esModule = true; + this.onChange = function (value) { + var _props = _this3.props, + onChange = _props.onChange, + onClear = _props.onClear, + onSelect = _props.onSelect, + format = _props.format; - var _assign = __webpack_require__(582); - var _assign2 = _interopRequireDefault(_assign); + _this3.setState({ + value: value && _extends(value, { _type: 'month' }) || value + }); + onChange && onChange(value, value ? (0, _util.formatDate)(value, format) : ''); + }; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + this.inputFocus = function () { + var self = _this3; + var format = self.props.format; - exports.default = _assign2.default || function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; + var input = document.querySelector('.rc-calendar-input'); + if (input) { + if (input.value) { + input.select(); + } else { + input.focus(); + } + input.onkeydown = function (e) { + if (e.keyCode == _tinperBeeCore.KeyCode.DELETE) { + input.value = ''; + self.props.onChange && self.props.onChange('', ''); + } else if (e.keyCode == _tinperBeeCore.KeyCode.ESC) { + self.setState({ + open: false + }); + var v = self.state.value; + self.props.onOpenChange && self.props.onOpenChange(false, v, v && (0, _util.formatDate)(v, self.props.format) || ''); + _reactDom2["default"].findDOMNode(self.outInput).focus(); // 按esc时候焦点回到input输入框 + } else if (e.keyCode == _tinperBeeCore.KeyCode.ENTER) { + var parsed = (0, _moment2["default"])(input.value, format, true); + if (parsed.isValid()) { + self.setState({ + open: false + }); + var _v = self.state.value; + self.props.onOpenChange && self.props.onOpenChange(false, _v, _v && (0, _util.formatDate)(_v, format) || ''); + _reactDom2["default"].findDOMNode(self.outInput).focus(); + } + } + }; + } + }; - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; + this.onOpenChange = function (open) { + var props = _this3.props; + var self = _this3; + _this3.setState({ + open: open + }, function () { + if (open) { + setTimeout(function () { + self.inputFocus(); + }, 0); } + }); + var value = self.state.value; + props.onOpenChange && props.onOpenChange(open, value, value && (0, _util.formatDate)(value, self.props.format) || ''); + if (open) { + setTimeout(function () { + self.inputFocus(); + }, 200); } - } + }; - return target; + this.onTypeChange = function (type) { + _this3.setState({ + type: type + }); + }; + + this.onMouseLeave = function (e) { + _this3.setState({ + showClose: false + }); + }; + + this.onMouseEnter = function (e) { + _this3.setState({ + showClose: true + }); + }; + + this.clear = function (e) { + e.stopPropagation(); + _this3.setState({ + value: '' + }); + _this3.props.onChange && _this3.props.onChange('', ''); + }; }; - /***/ }), - /* 9 */ - /***/ (function(module, exports, __webpack_require__) { + MonthPicker.defaultProps = { + closeIcon: function closeIcon() { + return _react2["default"].createElement(_beeIcon2["default"], { type: "uf-close-c" }); + }, + renderIcon: function renderIcon() { + return _react2["default"].createElement(_beeIcon2["default"], { type: "uf-calendar" }); + }, + format: 'YYYY-MM', + renderError: function renderError() {}, + showDateInput: true, + showMonthInput: true, + locale: _zh_CN2["default"], + showClose: true, + autoTriggerChange: true, + validatorFunc: function validatorFunc() { + return true; + } + }; - "use strict"; + exports["default"] = MonthPicker; + module.exports = exports["default"]; + +/***/ }), +/* 588 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - exports.__esModule = true; + var _react = __webpack_require__(1); - var _typeof2 = __webpack_require__(140); + var _react2 = _interopRequireDefault(_react); - var _typeof3 = _interopRequireDefault(_typeof2); + var _propTypes = __webpack_require__(6); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + var _propTypes2 = _interopRequireDefault(_propTypes); - exports.default = function (self, call) { - if (!self) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } + var _KeyCode = __webpack_require__(419); - return call && ((typeof call === "undefined" ? "undefined" : (0, _typeof3.default)(call)) === "object" || typeof call === "function") ? call : self; - }; + var _KeyCode2 = _interopRequireDefault(_KeyCode); - /***/ }), - /* 10 */ - /***/ (function(module, exports, __webpack_require__) { + var _CalendarHeader = __webpack_require__(560); - "use strict"; + var _CalendarHeader2 = _interopRequireDefault(_CalendarHeader); + var _CalendarFooter = __webpack_require__(567); - exports.__esModule = true; + var _CalendarFooter2 = _interopRequireDefault(_CalendarFooter); - var _setPrototypeOf = __webpack_require__(787); + var _CalendarMixin = __webpack_require__(571); - var _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf); + var _CommonMixin = __webpack_require__(572); - var _create = __webpack_require__(791); + var _DateInput = __webpack_require__(564); - var _create2 = _interopRequireDefault(_create); + var _DateInput2 = _interopRequireDefault(_DateInput); - var _typeof2 = __webpack_require__(140); + var _moment = __webpack_require__(423); - var _typeof3 = _interopRequireDefault(_typeof2); + var _moment2 = _interopRequireDefault(_moment); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - exports.default = function (subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function, not " + (typeof superClass === "undefined" ? "undefined" : (0, _typeof3.default)(superClass))); - } + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, { - constructor: { - value: subClass, - enumerable: false, - writable: true, - configurable: true - } - }); - if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass; - }; + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - /***/ }), - /* 11 */ - /***/ (function(module, exports, __webpack_require__) { + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - /** - * Module dependencies. - */ + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - try { - var index = __webpack_require__(242); - } catch (err) { - var index = __webpack_require__(242); - } + var MonthCalendar = function (_React$Component) { + _inherits(MonthCalendar, _React$Component); - /** - * Whitespace regexp. - */ + function MonthCalendar(props) { + _classCallCheck(this, MonthCalendar); - var re = /\s+/; + var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); - /** - * toString reference. - */ + _this.onKeyDown = function (event) { + if (event.target.nodeName.toLowerCase() === 'input') { + return undefined; + } else { + _this.props.onKeyDown && _this.props.onKeyDown(event); + } + var keyCode = event.keyCode; + var ctrlKey = event.ctrlKey || event.metaKey; + var stateValue = _this.state.value; + var disabledDate = _this.props.disabledDate; - var toString = Object.prototype.toString; + var value = stateValue; + switch (keyCode) { + case _KeyCode2["default"].DOWN: + value = stateValue.clone(); + value.add(3, 'months'); + break; + case _KeyCode2["default"].UP: + value = stateValue.clone(); + value.add(-3, 'months'); + break; + case _KeyCode2["default"].LEFT: + value = stateValue.clone(); + if (ctrlKey) { + value.add(-1, 'years'); + } else { + value.add(-1, 'months'); + } + break; + case _KeyCode2["default"].RIGHT: + value = stateValue.clone(); + if (ctrlKey) { + value.add(1, 'years'); + } else { + value.add(1, 'months'); + } + break; + case _KeyCode2["default"].ENTER: + if (!disabledDate || !disabledDate(stateValue)) { + _this.onSelect(stateValue); + } + event.preventDefault(); + return 1; + default: + return undefined; + } + if (value !== stateValue) { + _this.setValue(value); + event.preventDefault(); + return 1; + } + }; - /** - * Wrap `el` in a `ClassList`. - * - * @param {Element} el - * @return {ClassList} - * @api public - */ + _this.handlePanelChange = function (_, mode) { + if (mode !== 'date') { + _this.setState({ mode: mode }); + } + }; - module.exports = function(el){ - return new ClassList(el); - }; + _this.onInputChange = function (value) { + var _this$props = _this.props, + onChange = _this$props.onChange, + format = _this$props.format; - /** - * Initialize a new ClassList for `el`. - * - * @param {Element} el - * @api private - */ + _this.setState({ + value: value ? value : (0, _moment2["default"])() + }); + _this.setValue(value); + onChange && onChange(value); + }; - function ClassList(el) { - if (!el || !el.nodeType) { - throw new Error('A DOM element reference is required'); - } - this.el = el; - this.list = el.classList; - } + _this.onClear = function () { + var _this$props2 = _this.props, + onChange = _this$props2.onChange, + format = _this$props2.format, + onClear = _this$props2.onClear; - /** - * Add class `name` if not already present. - * - * @param {String} name - * @return {ClassList} - * @api public - */ + _this.setState({ + value: (0, _moment2["default"])() + }); + _this.setValue((0, _moment2["default"])()); + onChange && onChange('', ''); + onClear && onClear('', ''); + }; - ClassList.prototype.add = function(name){ - // classList - if (this.list) { - this.list.add(name); - return this; + _this.state = { + mode: 'month', + value: props.value || props.defaultValue || (0, _moment2["default"])(), + selectedValue: props.selectedValue || props.defaultSelectedValue + }; + return _this; } - // fallback - var arr = this.array(); - var i = index(arr, name); - if (!~i) arr.push(name); - this.el.className = arr.join(' '); - return this; - }; + MonthCalendar.prototype.render = function render() { + var props = this.props, + state = this.state; + var mode = state.mode, + value = state.value; - /** - * Remove class `name` when present, or - * pass a regular expression to remove - * any which match. - * - * @param {String|RegExp} name - * @return {ClassList} - * @api public - */ + value = value ? value : (0, _moment2["default"])(); + var prefixCls = props.prefixCls, + locale = props.locale, + format = props.format, + showDateInput = props.showDateInput, + onChange = props.onChange, + onSelect = props.onSelect, + onClear = props.onClear, + showMonthInput = props.showMonthInput, + renderError = props.renderError, + validatorFunc = props.validatorFunc; + + var children = _react2["default"].createElement( + 'div', + { className: props.prefixCls + '-month-calendar-content' }, + _react2["default"].createElement( + 'div', + { className: props.prefixCls + '-month-header-wrap' }, + showDateInput && showMonthInput ? _react2["default"].createElement(_DateInput2["default"], { + value: value, + prefixCls: prefixCls, + showClear: true, + locale: locale, + format: format, + onChange: this.onInputChange, + selectedValue: value, + onClear: this.onClear, + renderError: renderError, + validatorFunc: validatorFunc + }) : '', + _react2["default"].createElement(_CalendarHeader2["default"], { + prefixCls: props.prefixCls, + mode: mode, + value: value, + locale: props.locale, + disabledMonth: props.disabledDate, + monthCellRender: props.monthCellRender, + monthCellContentRender: props.monthCellContentRender, + onMonthSelect: this.onSelect, + onValueChange: this.setValue, + onPanelChange: this.handlePanelChange, + onChange: onChange, + onClear: onClear + }) + ), + _react2["default"].createElement(_CalendarFooter2["default"], { + prefixCls: props.prefixCls, + renderFooter: props.renderFooter + }) + ); + return this.renderRoot({ + className: props.prefixCls + '-month-calendar', + children: children + }); + }; - ClassList.prototype.remove = function(name){ - if ('[object RegExp]' == toString.call(name)) { - return this.removeMatching(name); - } + return MonthCalendar; + }(_react2["default"].Component); - // classList - if (this.list) { - this.list.remove(name); - return this; - } + MonthCalendar.propTypes = _extends({}, _CalendarMixin.calendarMixinPropTypes, _CommonMixin.propType, { + monthCellRender: _propTypes2["default"].func, + dateCellRender: _propTypes2["default"].func, + value: _propTypes2["default"].object, + defaultValue: _propTypes2["default"].object, + selectedValue: _propTypes2["default"].object, + defaultSelectedValue: _propTypes2["default"].object, + disabledDate: _propTypes2["default"].func + }); + MonthCalendar.defaultProps = _extends({ + showDateInput: false + }, _CommonMixin.defaultProp, _CalendarMixin.calendarMixinDefaultProps); + exports["default"] = (0, _CalendarMixin.calendarMixinWrapper)((0, _CommonMixin.commonMixinWrapper)(MonthCalendar)); + module.exports = exports['default']; + +/***/ }), +/* 589 */ +/***/ (function(module, exports, __webpack_require__) { + + "use strict"; - // fallback - var arr = this.array(); - var i = index(arr, name); - if (~i) arr.splice(i, 1); - this.el.className = arr.join(' '); - return this; - }; + Object.defineProperty(exports, "__esModule", { + value: true + }); - /** - * Remove all classes matching `re`. - * - * @param {RegExp} re - * @return {ClassList} - * @api private - */ + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - ClassList.prototype.removeMatching = function(re){ - var arr = this.array(); - for (var i = 0; i < arr.length; i++) { - if (re.test(arr[i])) { - this.remove(arr[i]); - } - } - return this; - }; + var _react = __webpack_require__(1); - /** - * Toggle class `name`, can force state via `force`. - * - * For browsers that support classList, but do not support `force` yet, - * the mistake will be detected and corrected. - * - * @param {String} name - * @param {Boolean} force - * @return {ClassList} - * @api public - */ + var _react2 = _interopRequireDefault(_react); - ClassList.prototype.toggle = function(name, force){ - // classList - if (this.list) { - if ("undefined" !== typeof force) { - if (force !== this.list.toggle(name, force)) { - this.list.toggle(name); // toggle again to correct - } - } else { - this.list.toggle(name); - } - return this; - } + var _RangeCalendar = __webpack_require__(590); - // fallback - if ("undefined" !== typeof force) { - if (!force) { - this.remove(name); - } else { - this.add(name); - } - } else { - if (this.has(name)) { - this.remove(name); - } else { - this.add(name); - } - } + var _RangeCalendar2 = _interopRequireDefault(_RangeCalendar); - return this; - }; + var _Panel = __webpack_require__(577); - /** - * Return an array of classes. - * - * @return {Array} - * @api public - */ + var _Panel2 = _interopRequireDefault(_Panel); - ClassList.prototype.array = function(){ - var className = this.el.getAttribute('class') || ''; - var str = className.replace(/^\s+|\s+$/g, ''); - var arr = str.split(re); - if ('' === arr[0]) arr.shift(); - return arr; - }; + var _beeFormControl = __webpack_require__(268); - /** - * Check if class `name` is present. - * - * @param {String} name - * @return {ClassList} - * @api public - */ + var _beeFormControl2 = _interopRequireDefault(_beeFormControl); - ClassList.prototype.has = - ClassList.prototype.contains = function(name){ - return this.list - ? this.list.contains(name) - : !! ~index(this.array(), name); - }; + var _Picker = __webpack_require__(575); + var _Picker2 = _interopRequireDefault(_Picker); - /***/ }), - /* 12 */ - /***/ (function(module, exports, __webpack_require__) { + var _beeInputGroup = __webpack_require__(581); - "use strict"; + var _beeInputGroup2 = _interopRequireDefault(_beeInputGroup); + var _beeIcon = __webpack_require__(67); - Object.defineProperty(exports, '__esModule', { - value: true - }); - exports['default'] = addEventListener; + var _beeIcon2 = _interopRequireDefault(_beeIcon); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + var _classnames = __webpack_require__(5); - var _EventObject = __webpack_require__(714); + var _classnames2 = _interopRequireDefault(_classnames); - var _EventObject2 = _interopRequireDefault(_EventObject); + var _tinperBeeCore = __webpack_require__(27); - function addEventListener(target, eventType, callback, option) { - function wrapCallback(e) { - var ne = new _EventObject2['default'](e); - callback.call(target, ne); - } + var _util = __webpack_require__(559); - if (target.addEventListener) { - var _ret = (function () { - var useCapture = false; - if (typeof option === 'object') { - useCapture = option.capture || false; - } else if (typeof option === 'boolean') { - useCapture = option; - } + var _zh_CN = __webpack_require__(586); - target.addEventListener(eventType, wrapCallback, option || false); + var _zh_CN2 = _interopRequireDefault(_zh_CN); - return { - v: { - remove: function remove() { - target.removeEventListener(eventType, wrapCallback, useCapture); - } - } - }; - })(); + var _omit = __webpack_require__(288); - if (typeof _ret === 'object') return _ret.v; - } else if (target.attachEvent) { - target.attachEvent('on' + eventType, wrapCallback); - return { - remove: function remove() { - target.detachEvent('on' + eventType, wrapCallback); - } - }; - } - } + var _omit2 = _interopRequireDefault(_omit); - module.exports = exports['default']; + var _moment = __webpack_require__(423); - /***/ }), - /* 13 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + var _moment2 = _interopRequireDefault(_moment); - "use strict"; - Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); - /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "alignElement", function() { return alignElement; }); - /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "alignPoint", function() { return alignPoint; }); - function _typeof(obj) { - if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { - _typeof = function (obj) { - return typeof obj; - }; - } else { - _typeof = function (obj) { - return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; - }; - } + __webpack_require__(554); - return _typeof(obj); - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - function _defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - return obj; - } + function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure undefined"); } - function ownKeys(object, enumerableOnly) { - var keys = Object.keys(object); + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - if (Object.getOwnPropertySymbols) { - var symbols = Object.getOwnPropertySymbols(object); - if (enumerableOnly) symbols = symbols.filter(function (sym) { - return Object.getOwnPropertyDescriptor(object, sym).enumerable; - }); - keys.push.apply(keys, symbols); - } + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - return keys; - } + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - function _objectSpread2(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i] != null ? arguments[i] : {}; + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** + * Created by chief on 17/4/6. + */ - if (i % 2) { - ownKeys(source, true).forEach(function (key) { - _defineProperty(target, key, source[key]); - }); - } else if (Object.getOwnPropertyDescriptors) { - Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); - } else { - ownKeys(source).forEach(function (key) { - Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); - }); - } - } - return target; - } + // function formatDate(value,format) { + // if (!value) { + // return ''; + // } - var vendorPrefix; - var jsCssMap = { - Webkit: '-webkit-', - Moz: '-moz-', - // IE did it wrong again ... - ms: '-ms-', - O: '-o-' - }; + // if (Array.isArray(format)) { + // format = format[0]; + // } - function getVendorPrefix() { - if (vendorPrefix !== undefined) { - return vendorPrefix; - } + // return value.formatDate(format); + // } - vendorPrefix = ''; - var style = document.createElement('p').style; - var testProp = 'Transform'; + var fullFormat = "YYYY-MM-DD"; - for (var key in jsCssMap) { - if (key + testProp in style) { - vendorPrefix = key; - } - } + var cn = typeof window !== 'undefined' ? location.search.indexOf("cn") !== -1 : true; - return vendorPrefix; - } + var now = (0, _moment2["default"])(); - function getTransitionName() { - return getVendorPrefix() ? "".concat(getVendorPrefix(), "TransitionProperty") : 'transitionProperty'; + function isValidRange(v) { + return v && v[0] && v[1]; } - function getTransformName() { - return getVendorPrefix() ? "".concat(getVendorPrefix(), "Transform") : 'transform'; + if (cn) { + now.locale("zh-cn").utcOffset(8); + } else { + now.locale("en-gb").utcOffset(0); } - function setTransitionProperty(node, value) { - var name = getTransitionName(); - if (name) { - node.style[name] = value; + var RangePicker = function (_Component) { + _inherits(RangePicker, _Component); - if (name !== 'transitionProperty') { - node.style.transitionProperty = value; - } - } - } + function RangePicker(props, context) { + _classCallCheck(this, RangePicker); - function setTransform(node, value) { - var name = getTransformName(); + var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); - if (name) { - node.style[name] = value; + _initialiseProps.call(_this); - if (name !== 'transform') { - node.style.transform = value; + _this.state = { + hoverValue: [], + value: _this.initValue(props), + open: props.open || false + }; + return _this; } - } - } - - function getTransitionProperty(node) { - return node.style.transitionProperty || node.style[getTransitionName()]; - } - function getTransformXY(node) { - var style = window.getComputedStyle(node, null); - var transform = style.getPropertyValue('transform') || style.getPropertyValue(getTransformName()); - if (transform && transform !== 'none') { - var matrix = transform.replace(/[^0-9\-.,]/g, '').split(','); - return { - x: parseFloat(matrix[12] || matrix[4], 0), - y: parseFloat(matrix[13] || matrix[5], 0) + RangePicker.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { + if ("value" in nextProps) { + this.setState({ + value: this.initValue(nextProps) + }); + } + if ("open" in nextProps) { + this.setState({ + open: nextProps.open + }); + } + this.setState({ + renderIcon: nextProps.renderIcon + }); }; - } + //判断value是否为空 - return { - x: 0, - y: 0 - }; - } - var matrix2d = /matrix\((.*)\)/; - var matrix3d = /matrix3d\((.*)\)/; - function setTransformXY(node, xy) { - var style = window.getComputedStyle(node, null); - var transform = style.getPropertyValue('transform') || style.getPropertyValue(getTransformName()); + //日期面板中输入框的失焦事件 - if (transform && transform !== 'none') { - var arr; - var match2d = transform.match(matrix2d); - if (match2d) { - match2d = match2d[1]; - arr = match2d.split(',').map(function (item) { - return parseFloat(item, 10); - }); - arr[4] = xy.x; - arr[5] = xy.y; - setTransform(node, "matrix(".concat(arr.join(','), ")")); - } else { - var match3d = transform.match(matrix3d)[1]; - arr = match3d.split(',').map(function (item) { - return parseFloat(item, 10); - }); - arr[12] = xy.x; - arr[13] = xy.y; - setTransform(node, "matrix3d(".concat(arr.join(','), ")")); - } - } else { - setTransform(node, "translateX(".concat(xy.x, "px) translateY(").concat(xy.y, "px) translateZ(0)")); - } - } + RangePicker.prototype.render = function render() { + var _this2 = this; - var RE_NUM = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source; - var getComputedStyleX; // https://stackoverflow.com/a/3485654/3040605 + var props = this.props; - function forceRelayout(elem) { - var originalStyle = elem.style.display; - elem.style.display = 'none'; - elem.offsetHeight; // eslint-disable-line + var showClose = props.showClose, + onChange = props.onChange, + showHour = props.showHour, + showMinute = props.showMinute, + showSecond = props.showSecond, + others = _objectWithoutProperties(props, ["showClose", "onChange", "showHour", "showMinute", "showSecond"]); - elem.style.display = originalStyle; - } + var _state = this.state, + value = _state.value, + open = _state.open; - function css(el, name, v) { - var value = v; + var formatStr = props.format || 'YYYY-MM-DD'; + var timePickerElement = _react2["default"].createElement(_Panel2["default"], { + showHour: showHour, showMinute: showMinute, showSecond: showSecond, + defaultValue: (0, _moment2["default"])((0, _moment2["default"])().format("HH:mm:ss"), "HH:mm:ss") }); + var calendar = _react2["default"].createElement(_RangeCalendar2["default"], { + hoverValue: this.state.hoverValue, + onHoverChange: this.onHoverChange, + showWeekNumber: false, + format: formatStr, + dateInputPlaceholder: props.dateInputPlaceholder || ['start', 'end'], + locale: props.locale || _zh_CN2["default"], + onChange: this.handleCalendarChange, + disabledDate: props.disabledDate, + showClear: props.showClear, + showOk: props.showOk, + showToday: props.showToday, + renderFooter: props.renderFooter, + timePicker: props.showTime ? timePickerElement : null, + renderError: props.renderError, + onStartInputBlur: this.onStartInputBlur, + onEndInputBlur: this.onEndInputBlur, + onClear: this.clear, + onOk: this.onOk, + validatorFunc: props.validatorFunc + }); + return _react2["default"].createElement( + "div", + (0, _omit2["default"])(others, ['closeIcon', 'renderIcon', 'showClear', 'showToday', 'locale', 'placeholder', 'showOk', 'dateInputPlaceholder', 'onPanelChange', 'onStartInputBlur', 'onEndInputBlur', 'renderFooter', 'showTime', 'disabledDate', 'disabledTime']), + _react2["default"].createElement( + _Picker2["default"], + _extends({}, props, { + value: value, + animation: 'animation' in props ? props.animation : "slide-up", + calendar: calendar, + disabled: props.disabled, + dropdownClassName: props.dropdownClassName, + onOpenChange: this.onOpenChange, + open: open, + onChange: this.onChange + }), + function (_ref) { + _objectDestructuringEmpty(_ref); - if (_typeof(name) === 'object') { - for (var i in name) { - if (name.hasOwnProperty(i)) { - css(el, i, name[i]); - } - } + return _react2["default"].createElement( + "div", + { className: (0, _classnames2["default"])('calendar-picker', 'u-input-group', 'simple', props.className), + onMouseEnter: _this2.onMouseEnter, + onMouseLeave: _this2.onMouseLeave + }, + _react2["default"].createElement(_beeFormControl2["default"], { + placeholder: _this2.props.placeholder ? _this2.props.placeholder : 'start ~ end', + value: isValidRange(value) && (0, _util.formatDate)(value[0], formatStr) + " ~ " + (0, _util.formatDate)(value[1], formatStr) || '', + disabled: props.disabled, + onFocus: function onFocus(v, e) { + _this2.outInputFocus(e); + } + }), + showClose && !_this2.valueIsEmpty(value) && _this2.state.showClose && !props.disabled ? _react2["default"].createElement( + _beeInputGroup2["default"].Button, + { shape: "border", + onClick: _this2.clear }, + props.closeIcon() + ) : _react2["default"].createElement( + _beeInputGroup2["default"].Button, + { shape: "border" }, + props.renderIcon() + ) + ); + } + ) + ); + }; - return undefined; - } + return RangePicker; + }(_react.Component); - if (typeof value !== 'undefined') { - if (typeof value === 'number') { - value = "".concat(value, "px"); - } + var _initialiseProps = function _initialiseProps() { + var _this3 = this; - el.style[name] = value; - return undefined; - } + this.initValue = function (props) { + var valueProp = props.value || props.defaultValue || []; + var values = []; + for (var i = 0; i < 2; i++) { + var value = valueProp[i] || ''; + if (value) { + if (typeof value == 'string') { + if ((0, _moment2["default"])(value).isValid()) { + values.push((0, _moment2["default"])(value)); + } else { + console.error('value is not in the correct format'); + values.push(''); + } + } else if (value.format && value.isValid()) { + values.push(value); + } else { + console.error('value is not in the correct format'); + values = []; + } + } else { + values.push(''); + } + } + return values; + }; - return getComputedStyleX(el, name); - } + this.clearHoverValue = function () { + return _this3.setState({ hoverValue: [] }); + }; - function getClientPosition(elem) { - var box; - var x; - var y; - var doc = elem.ownerDocument; - var body = doc.body; - var docElem = doc && doc.documentElement; // 根据 GBS 最新数据,A-Grade Browsers 都已支持 getBoundingClientRect 方法,不用再考虑传统的实现方式 + this.onChange = function (value) { + var props = _this3.props; + var formatStr = props.format || 'YYYY-MM-DD'; + if (value.length < 2) { + return; + } + _this3.setState({ + value: value + }); - box = elem.getBoundingClientRect(); // 注:jQuery 还考虑减去 docElem.clientLeft/clientTop - // 但测试发现,这样反而会导致当 html 和 body 有边距/边框样式时,获取的值不正确 - // 此外,ie6 会忽略 html 的 margin 值,幸运地是没有谁会去设置 html 的 margin + //传入value和dateString + if (props.onChange && isValidRange(value) || value.length == 0) { + if (value.length > 0) { + props.onChange(value, "[\"" + (0, _util.formatDate)(value[0], formatStr) + "\" , \"" + (0, _util.formatDate)(value[1], formatStr) + "\"]", ["" + (0, _util.formatDate)(value[0], formatStr), "" + (0, _util.formatDate)(value[1], formatStr)]); + } else { + props.onChange(null); + } + } else { + props.onPanelChange && props.onPanelChange(value); + } + }; - x = box.left; - y = box.top; // In IE, most of the time, 2 extra pixels are added to the top and left - // due to the implicit 2-pixel inset border. In IE6/7 quirks mode and - // IE6 standards mode, this border can be overridden by setting the - // document element's border to zero -- thus, we cannot rely on the - // offset always being 2 pixels. - // In quirks mode, the offset can be determined by querying the body's - // clientLeft/clientTop, but in standards mode, it is found by querying - // the document element's clientLeft/clientTop. Since we already called - // getClientBoundingRect we have already forced a reflow, so it is not - // too expensive just to query them all. - // ie 下应该减去窗口的边框吧,毕竟默认 absolute 都是相对窗口定位的 - // 窗口边框标准是设 documentElement ,quirks 时设置 body - // 最好禁止在 body 和 html 上边框 ,但 ie < 9 html 默认有 2px ,减去 - // 但是非 ie 不可能设置窗口边框,body html 也不是窗口 ,ie 可以通过 html,body 设置 - // 标准 ie 下 docElem.clientTop 就是 border-top - // ie7 html 即窗口边框改变不了。永远为 2 - // 但标准 firefox/chrome/ie9 下 docElem.clientTop 是窗口边框,即使设了 border-top 也为 0 + this.onHoverChange = function (hoverValue) { + _this3.setState({ hoverValue: hoverValue }); + _this3.props.onHoverChange && _this3.props.onHoverChange(hoverValue); + }; - x -= docElem.clientLeft || body.clientLeft || 0; - y -= docElem.clientTop || body.clientTop || 0; - return { - left: x, - top: y - }; - } + this.remove = function (e) { + _this3.setState({ value: '' }); + }; - function getScroll(w, top) { - var ret = w["page".concat(top ? 'Y' : 'X', "Offset")]; - var method = "scroll".concat(top ? 'Top' : 'Left'); + this.handleCalendarChange = function (value) {}; - if (typeof ret !== 'number') { - var d = w.document; // ie6,7,8 standard mode + this.onMouseLeave = function (e) { + _this3.setState({ + showClose: false + }); + }; - ret = d.documentElement[method]; + this.onMouseEnter = function (e) { + if (!_this3.valueIsEmpty(_this3.state.value)) { + _this3.setState({ + showClose: true + }); + } + }; - if (typeof ret !== 'number') { - // quirks mode - ret = d.body[method]; - } - } + this.valueIsEmpty = function (value) { + if (value) { + if (value.length == 0) { + return true; + } else { + //value.length>0 + var flag = true; + if (value[0] || value[1]) flag = false; + return flag; + } + } else { + return true; + } + }; - return ret; - } + this.clear = function (e) { + e && e.stopPropagation && e.stopPropagation(); + _this3.setState({ + value: [] + }); + _this3.props.onChange && _this3.props.onChange([], []); + _this3.props.onFormControlClear && _this3.props.onFormControlClear(); + }; - function getScrollLeft(w) { - return getScroll(w); - } + this.onOpenChange = function (open) { + var props = _this3.props; + var self = _this3; + // let {value} = this.state; + // if(!isValidRange(value)){ + // debugger + // } + if (open === false) { + _this3.clearHoverValue(); + } - function getScrollTop(w) { - return getScroll(w, true); - } + _this3.setState({ + open: open + }, function () { + if (open) { + setTimeout(function () { + self.inputFocus(); + }, 0); + } + }); + props.onOpenChange && props.onOpenChange(open); + if (open) { + setTimeout(function () { + self.inputFocus(); + }, 200); + } + }; - function getOffset(el) { - var pos = getClientPosition(el); - var doc = el.ownerDocument; - var w = doc.defaultView || doc.parentWindow; - pos.left += getScrollLeft(w); - pos.top += getScrollTop(w); - return pos; - } - /** - * A crude way of determining if an object is a window - * @member util - */ + this.outInputFocus = function (e) { + if (_this3.props.hasOwnProperty('open')) e.stopPropagation(); + _this3.props.outInputFocus && _this3.props.outInputFocus(e); + }; + this.inputFocus = function () { + var inputs = document.querySelectorAll('.rc-calendar-input'); + if (!inputs) { + return; + } + if (inputs[0].value) { + inputs[0].select(); + } else { + inputs[0].focus(); + } + inputs[0].onkeydown = _this3.keydownLeft; + inputs[1].onkeydown = _this3.keydownRight; + }; - function isWindow(obj) { - // must use == for ie8 + this.keydownLeft = function (e) { + var inputs = document.querySelectorAll('.rc-calendar-input'); + if (e.keyCode == _tinperBeeCore.KeyCode.ESC) { + _this3.setState({ + open: false + }); + _this3.props.onOpenChange(false, v, v && _this3.getValue(v) || ''); + } + if (e.keyCode == _tinperBeeCore.KeyCode.RIGHT || e.keyCode == _tinperBeeCore.KeyCode.LEFT) { + inputs[1].focus(); + } + }; - /* eslint eqeqeq:0 */ - return obj !== null && obj !== undefined && obj == obj.window; - } + this.keydownRight = function (e) { + var inputs = document.querySelectorAll('.rc-calendar-input'); + if (e.keyCode == _tinperBeeCore.KeyCode.ESC) { + _this3.setState({ + open: false + }); + _this3.props.onOpenChange(false, v, v && _this3.getValue(v) || ''); + } + if (e.keyCode == _tinperBeeCore.KeyCode.LEFT || e.keyCode == _tinperBeeCore.KeyCode.RIGHT) { + inputs[0].focus(); + } + }; - function getDocument(node) { - if (isWindow(node)) { - return node.document; - } + this.onStartInputBlur = function (e) { + var inputs = document.querySelectorAll('.rc-calendar-input'); + var startValue = void 0, + endValue = void 0; + if (inputs) { + startValue = inputs[0].value ? inputs[0].value : ''; + endValue = inputs[1].value ? inputs[1].value : ''; + } + _this3.props.onStartInputBlur && _this3.props.onStartInputBlur(e, startValue, "[\"" + startValue + "\" , \"" + endValue + "\"]"); + }; - if (node.nodeType === 9) { - return node; - } + this.onEndInputBlur = function (e) { + var inputs = document.querySelectorAll('.rc-calendar-input'); + var startValue = void 0, + endValue = void 0; + if (inputs) { + startValue = inputs[0].value ? inputs[0].value : ''; + endValue = inputs[1].value ? inputs[1].value : ''; + } + _this3.props.onEndInputBlur && _this3.props.onEndInputBlur(e, endValue, "[\"" + startValue + "\" , \"" + endValue + "\"]"); + }; - return node.ownerDocument; - } + this.onOk = function (value) { + _this3.props.onOk && _this3.props.onOk(value); + }; + }; - function _getComputedStyle(elem, name, cs) { - var computedStyle = cs; - var val = ''; - var d = getDocument(elem); - computedStyle = computedStyle || d.defaultView.getComputedStyle(elem, null); // https://github.com/kissyteam/kissy/issues/61 + RangePicker.defaultProps = { + closeIcon: function closeIcon() { + return _react2["default"].createElement(_beeIcon2["default"], { type: "uf-close-c" }); + }, + renderIcon: function renderIcon() { + return _react2["default"].createElement(_beeIcon2["default"], { type: "uf-calendar" }); + }, + locale: _zh_CN2["default"], + showClear: true, + showToday: true, + showOk: true, + showClose: true, + showSecond: true, + showHour: true, + showMinute: true, + validatorFunc: function validatorFunc() { + return true; + } + }; - if (computedStyle) { - val = computedStyle.getPropertyValue(name) || computedStyle[name]; - } + exports["default"] = RangePicker; + module.exports = exports["default"]; + +/***/ }), +/* 590 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - return val; - } + Object.defineProperty(exports, "__esModule", { + value: true + }); - var _RE_NUM_NO_PX = new RegExp("^(".concat(RE_NUM, ")(?!px)[a-z%]+$"), 'i'); + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var RE_POS = /^(top|right|bottom|left)$/; - var CURRENT_STYLE = 'currentStyle'; - var RUNTIME_STYLE = 'runtimeStyle'; - var LEFT = 'left'; - var PX = 'px'; + var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }(); - function _getComputedStyleIE(elem, name) { - // currentStyle maybe null - // http://msdn.microsoft.com/en-us/library/ms535231.aspx - var ret = elem[CURRENT_STYLE] && elem[CURRENT_STYLE][name]; // 当 width/height 设置为百分比时,通过 pixelLeft 方式转换的 width/height 值 - // 一开始就处理了! CUSTOM_STYLE.height,CUSTOM_STYLE.width ,cssHook 解决@2011-08-19 - // 在 ie 下不对,需要直接用 offset 方式 - // borderWidth 等值也有问题,但考虑到 borderWidth 设为百分比的概率很小,这里就不考虑了 - // From the awesome hack by Dean Edwards - // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 - // If we're not dealing with a regular pixel number - // but a number that has a weird ending, we need to convert it to pixels - // exclude left right for relativity + var _react = __webpack_require__(1); - if (_RE_NUM_NO_PX.test(ret) && !RE_POS.test(name)) { - // Remember the original values - var style = elem.style; - var left = style[LEFT]; - var rsLeft = elem[RUNTIME_STYLE][LEFT]; // prevent flashing of content + var _react2 = _interopRequireDefault(_react); - elem[RUNTIME_STYLE][LEFT] = elem[CURRENT_STYLE][LEFT]; // Put in the new values to get a computed value out + var _propTypes = __webpack_require__(6); - style[LEFT] = name === 'fontSize' ? '1em' : ret || 0; - ret = style.pixelLeft + PX; // Revert the changed values + var _propTypes2 = _interopRequireDefault(_propTypes); - style[LEFT] = left; - elem[RUNTIME_STYLE][LEFT] = rsLeft; - } + var _moment = __webpack_require__(423); - return ret === '' ? 'auto' : ret; - } + var _moment2 = _interopRequireDefault(_moment); - if (typeof window !== 'undefined') { - getComputedStyleX = window.getComputedStyle ? _getComputedStyle : _getComputedStyleIE; - } + var _classnames2 = __webpack_require__(5); - function getOffsetDirection(dir, option) { - if (dir === 'left') { - return option.useCssRight ? 'right' : dir; - } + var _classnames3 = _interopRequireDefault(_classnames2); - return option.useCssBottom ? 'bottom' : dir; - } + var _reactLifecyclesCompat = __webpack_require__(81); - function oppositeOffsetDirection(dir) { - if (dir === 'left') { - return 'right'; - } else if (dir === 'right') { - return 'left'; - } else if (dir === 'top') { - return 'bottom'; - } else if (dir === 'bottom') { - return 'top'; - } - } // 设置 elem 相对 elem.ownerDocument 的坐标 + var _KeyCode = __webpack_require__(419); + var _KeyCode2 = _interopRequireDefault(_KeyCode); - function setLeftTop(elem, offset, option) { - // set position first, in-case top/left are set even on static elem - if (css(elem, 'position') === 'static') { - elem.style.position = 'relative'; - } + var _CalendarPart = __webpack_require__(591); - var presetH = -999; - var presetV = -999; - var horizontalProperty = getOffsetDirection('left', option); - var verticalProperty = getOffsetDirection('top', option); - var oppositeHorizontalProperty = oppositeOffsetDirection(horizontalProperty); - var oppositeVerticalProperty = oppositeOffsetDirection(verticalProperty); + var _CalendarPart2 = _interopRequireDefault(_CalendarPart); - if (horizontalProperty !== 'left') { - presetH = 999; - } + var _TodayButton = __webpack_require__(568); - if (verticalProperty !== 'top') { - presetV = 999; - } + var _TodayButton2 = _interopRequireDefault(_TodayButton); - var originalTransition = ''; - var originalOffset = getOffset(elem); + var _OkButton = __webpack_require__(569); - if ('left' in offset || 'top' in offset) { - originalTransition = getTransitionProperty(elem) || ''; - setTransitionProperty(elem, 'none'); - } + var _OkButton2 = _interopRequireDefault(_OkButton); - if ('left' in offset) { - elem.style[oppositeHorizontalProperty] = ''; - elem.style[horizontalProperty] = "".concat(presetH, "px"); - } + var _TimePickerButton = __webpack_require__(570); - if ('top' in offset) { - elem.style[oppositeVerticalProperty] = ''; - elem.style[verticalProperty] = "".concat(presetV, "px"); - } // force relayout + var _TimePickerButton2 = _interopRequireDefault(_TimePickerButton); + var _CommonMixin = __webpack_require__(572); - forceRelayout(elem); - var old = getOffset(elem); - var originalStyle = {}; + var _util = __webpack_require__(559); - for (var key in offset) { - if (offset.hasOwnProperty(key)) { - var dir = getOffsetDirection(key, option); - var preset = key === 'left' ? presetH : presetV; - var off = originalOffset[key] - old[key]; + var _toTime = __webpack_require__(574); - if (dir === key) { - originalStyle[dir] = preset + off; - } else { - originalStyle[dir] = preset - off; - } - } - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - css(elem, originalStyle); // force relayout + function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } - forceRelayout(elem); + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - if ('left' in offset || 'top' in offset) { - setTransitionProperty(elem, originalTransition); - } + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - var ret = {}; + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - for (var _key in offset) { - if (offset.hasOwnProperty(_key)) { - var _dir = getOffsetDirection(_key, option); + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - var _off = offset[_key] - originalOffset[_key]; + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - if (_key === _dir) { - ret[_dir] = originalStyle[_dir] + _off; - } else { - ret[_dir] = originalStyle[_dir] - _off; - } - } - } + function noop() {} - css(elem, ret); + function isEmptyArray(arr) { + return Array.isArray(arr) && (arr.length === 0 || arr.every(function (i) { + return !i; + })); } - function setTransform$1(elem, offset) { - var originalOffset = getOffset(elem); - var originalXY = getTransformXY(elem); - var resultXY = { - x: originalXY.x, - y: originalXY.y - }; - - if ('left' in offset) { - resultXY.x = originalXY.x + offset.left - originalOffset.left; + function isArraysEqual(a, b) { + if (a === b) return true; + if (a === null || typeof a === 'undefined' || b === null || typeof b === 'undefined') { + return false; } + if (a.length !== b.length) return false; - if ('top' in offset) { - resultXY.y = originalXY.y + offset.top - originalOffset.top; + for (var i = 0; i < a.length; ++i) { + if (a[i] !== b[i]) return false; } + return true; + } - setTransformXY(elem, resultXY); + function getValueFromSelectedValue(selectedValue) { + var _selectedValue = _slicedToArray(selectedValue, 2), + start = _selectedValue[0], + end = _selectedValue[1]; + + var newEnd = end && end.isSame(start, 'month') ? end.clone().add(1, 'month') : end; + return [start, newEnd]; } - function setOffset(elem, offset, option) { - if (option.ignoreShake) { - var oriOffset = getOffset(elem); - var oLeft = oriOffset.left.toFixed(0); - var oTop = oriOffset.top.toFixed(0); - var tLeft = offset.left.toFixed(0); - var tTop = offset.top.toFixed(0); + function normalizeAnchor(props, init) { + var selectedValue = props.selectedValue || init && props.defaultSelectedValue; + var value = props.value || init && props.defaultValue; + var normalizedValue = value ? getValueFromSelectedValue(value) : getValueFromSelectedValue(selectedValue); + return !isEmptyArray(normalizedValue) ? normalizedValue : init && [(0, _moment2["default"])(), (0, _moment2["default"])().add(1, 'months')]; + } - if (oLeft === tLeft && oTop === tTop) { - return; + function generateOptions(length, extraOptionGen) { + var arr = extraOptionGen ? extraOptionGen().concat() : []; + for (var value = 0; value < length; value++) { + if (arr.indexOf(value) === -1) { + arr.push(value); } } + return arr; + } - if (option.useCssRight || option.useCssBottom) { - setLeftTop(elem, offset, option); - } else if (option.useCssTransform && getTransformName() in document.body.style) { - setTransform$1(elem, offset); - } else { - setLeftTop(elem, offset, option); + function onInputSelect(direction, value, cause) { + if (!value) { + return; + } + var originalValue = this.state.selectedValue; + var selectedValue = originalValue.concat(); + var index = direction === 'left' ? 0 : 1; + selectedValue[index] = value; + if (selectedValue[0] && this.compare(selectedValue[0], selectedValue[1]) > 0) { + selectedValue[1] = this.state.showTimePicker ? selectedValue[index] : undefined; + } + if (selectedValue[0] && !selectedValue[1]) { + selectedValue[1 - index] = this.state.showTimePicker ? selectedValue[index] : undefined; } + this.props.onInputSelect(selectedValue); + this.fireSelectValueChange(selectedValue, null, cause || { source: 'dateInput' }); } - function each(arr, fn) { - for (var i = 0; i < arr.length; i++) { - fn(arr[i]); - } - } + var RangeCalendar = function (_React$Component) { + _inherits(RangeCalendar, _React$Component); - function isBorderBoxFn(elem) { - return getComputedStyleX(elem, 'boxSizing') === 'border-box'; - } + function RangeCalendar(props) { + _classCallCheck(this, RangeCalendar); - var BOX_MODELS = ['margin', 'border', 'padding']; - var CONTENT_INDEX = -1; - var PADDING_INDEX = 2; - var BORDER_INDEX = 1; - var MARGIN_INDEX = 0; + var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); - function swap(elem, options, callback) { - var old = {}; - var style = elem.style; - var name; // Remember the old values, and insert the new ones + _initialiseProps.call(_this); - for (name in options) { - if (options.hasOwnProperty(name)) { - old[name] = style[name]; - style[name] = options[name]; - } + var selectedValue = props.selectedValue || props.defaultSelectedValue || []; + var value = normalizeAnchor(props, 1); + _this.state = { + selectedValue: selectedValue, + prevSelectedValue: selectedValue, + firstSelectedValue: null, + hoverValue: props.hoverValue || [], + value: value, + showTimePicker: false, + mode: props.mode || ['date', 'date'] + }; + return _this; } - callback.call(elem); // Revert the old values - - for (name in options) { - if (options.hasOwnProperty(name)) { - style[name] = old[name]; + RangeCalendar.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, state) { + var newState = {}; + if ('value' in nextProps) { + newState.value = normalizeAnchor(nextProps, 0); } - } - } + if ('hoverValue' in nextProps && !isArraysEqual(state.hoverValue, nextProps.hoverValue)) { + newState.hoverValue = nextProps.hoverValue; + } + if ('selectedValue' in nextProps) { + newState.selectedValue = nextProps.selectedValue; + newState.prevSelectedValue = nextProps.selectedValue; + } + if ('mode' in nextProps && !isArraysEqual(state.mode, nextProps.mode)) { + newState = { mode: nextProps.mode }; + } + return newState; + }; - function getPBMWidth(elem, props, which) { - var value = 0; - var prop; - var j; - var i; + // get disabled hours for second picker - for (j = 0; j < props.length; j++) { - prop = props[j]; - if (prop) { - for (i = 0; i < which.length; i++) { - var cssProp = void 0; + RangeCalendar.prototype.render = function render() { + var _className, _classnames; - if (prop === 'border') { - cssProp = "".concat(prop).concat(which[i], "Width"); - } else { - cssProp = prop + which[i]; - } + var props = this.props, + state = this.state; + var prefixCls = props.prefixCls, + dateInputPlaceholder = props.dateInputPlaceholder, + seperator = props.seperator, + timePicker = props.timePicker, + showOk = props.showOk, + locale = props.locale, + showClear = props.showClear, + showToday = props.showToday, + type = props.type, + clearIcon = props.clearIcon, + onStartInputBlur = props.onStartInputBlur, + onEndInputBlur = props.onEndInputBlur; + var hoverValue = state.hoverValue, + selectedValue = state.selectedValue, + mode = state.mode, + showTimePicker = state.showTimePicker; - value += parseFloat(getComputedStyleX(elem, cssProp)) || 0; - } - } - } + var className = (_className = {}, _defineProperty(_className, props.className, !!props.className), _defineProperty(_className, prefixCls, 1), _defineProperty(_className, prefixCls + '-hidden', !props.visible), _defineProperty(_className, prefixCls + '-range', 1), _defineProperty(_className, prefixCls + '-show-time-picker', showTimePicker), _defineProperty(_className, prefixCls + '-week-number', props.showWeekNumber), _className); + var classes = (0, _classnames3["default"])(className); + var newProps = { + selectedValue: state.selectedValue, + onSelect: this.onSelect, + onDayHover: type === 'start' && selectedValue[1] || type === 'end' && selectedValue[0] || !!hoverValue.length ? this.onDayHover : undefined + }; - return value; - } + var placeholder1 = void 0; + var placeholder2 = void 0; - var domUtils = { - getParent: function getParent(element) { - var parent = element; + if (dateInputPlaceholder) { + if (Array.isArray(dateInputPlaceholder)) { + var _dateInputPlaceholder = _slicedToArray(dateInputPlaceholder, 2); - do { - if (parent.nodeType === 11 && parent.host) { - parent = parent.host; + placeholder1 = _dateInputPlaceholder[0]; + placeholder2 = _dateInputPlaceholder[1]; } else { - parent = parent.parentNode; + placeholder1 = placeholder2 = dateInputPlaceholder; } - } while (parent && parent.nodeType !== 1 && parent.nodeType !== 9); + } + var showOkButton = showOk === true || showOk !== false && !!timePicker; + var cls = (0, _classnames3["default"])((_classnames = {}, _defineProperty(_classnames, prefixCls + '-footer', true), _defineProperty(_classnames, prefixCls + '-range-bottom', true), _defineProperty(_classnames, prefixCls + '-footer-show-ok', showOkButton), _classnames)); - return parent; - } - }; - each(['Width', 'Height'], function (name) { - domUtils["doc".concat(name)] = function (refWin) { - var d = refWin.document; - return Math.max( // firefox chrome documentElement.scrollHeight< body.scrollHeight - // ie standard mode : documentElement.scrollHeight> body.scrollHeight - d.documentElement["scroll".concat(name)], // quirks : documentElement.scrollHeight 最大等于可视窗口多一点? - d.body["scroll".concat(name)], domUtils["viewport".concat(name)](d)); + var startValue = this.getStartValue(); + var endValue = this.getEndValue(); + var todayTime = (0, _util.getTodayTime)(startValue); + var thisMonth = todayTime.month(); + var thisYear = todayTime.year(); + var isTodayInView = startValue.year() === thisYear && startValue.month() === thisMonth || endValue.year() === thisYear && endValue.month() === thisMonth; + var nextMonthOfStart = startValue.clone().add(1, 'months'); + var isClosestMonths = nextMonthOfStart.year() === endValue.year() && nextMonthOfStart.month() === endValue.month(); + + var extraFooter = props.renderFooter(); + return _react2["default"].createElement( + 'div', + { + ref: this.saveRoot, + className: classes, + style: props.style, + onKeyDown: this.onKeyDown + }, + props.renderSidebar(), + _react2["default"].createElement( + 'div', + { className: prefixCls + '-panel', onMouseOver: this.onMouseOver }, + showClear && selectedValue[0] && selectedValue[1] ? _react2["default"].createElement( + 'a', + { + role: 'button', + title: locale.clear, + onClick: this.clear + }, + clearIcon || _react2["default"].createElement('span', { className: prefixCls + '-clear-btn uf uf-close-c' }) + ) : null, + _react2["default"].createElement( + 'div', + { + className: prefixCls + '-date-panel', + onMouseLeave: type !== 'both' ? this.onDatePanelLeave : undefined, + onMouseEnter: type !== 'both' ? this.onDatePanelEnter : undefined + }, + _react2["default"].createElement(_CalendarPart2["default"], _extends({}, props, newProps, { + hoverValue: hoverValue, + direction: 'left', + disabledTime: this.disabledStartTime, + disabledMonth: this.disabledStartMonth, + format: this.getFormat(), + value: startValue, + mode: mode[0], + placeholder: placeholder1, + onInputChange: this.onStartInputChange, + onInputSelect: this.onStartInputSelect, + onValueChange: this.onStartValueChange, + onPanelChange: this.onStartPanelChange, + showDateInput: this.props.showDateInput, + timePicker: timePicker, + showTimePicker: showTimePicker, + enablePrev: true, + enableNext: !isClosestMonths || this.isMonthYearPanelShow(mode[1]), + clearIcon: clearIcon, + tabIndex: '0', + onInputBlur: onStartInputBlur + })), + _react2["default"].createElement( + 'span', + { className: prefixCls + '-range-middle' }, + seperator + ), + _react2["default"].createElement(_CalendarPart2["default"], _extends({}, props, newProps, { + hoverValue: hoverValue, + direction: 'right', + format: this.getFormat(), + timePickerDisabledTime: this.getEndDisableTime(), + placeholder: placeholder2, + value: endValue, + mode: mode[1], + onInputChange: this.onEndInputChange, + onInputSelect: this.onEndInputSelect, + onValueChange: this.onEndValueChange, + onPanelChange: this.onEndPanelChange, + showDateInput: this.props.showDateInput, + timePicker: timePicker, + showTimePicker: showTimePicker, + disabledTime: this.disabledEndTime, + disabledMonth: this.disabledEndMonth, + enablePrev: !isClosestMonths || this.isMonthYearPanelShow(mode[0]), + enableNext: true, + clearIcon: clearIcon, + tabIndex: '0', + inputTabIndex: '-1', + onInputBlur: onEndInputBlur + })) + ), + _react2["default"].createElement( + 'div', + { className: cls }, + showToday || props.timePicker || showOkButton || extraFooter ? _react2["default"].createElement( + 'div', + { className: prefixCls + '-footer-btn' }, + extraFooter ? _react2["default"].createElement( + 'div', + { className: prefixCls + '-footer-extra' }, + extraFooter + ) : null, + showToday ? _react2["default"].createElement(_TodayButton2["default"], _extends({}, props, { + disabled: isTodayInView, + value: state.value[0], + onToday: this.onToday, + text: locale.backToToday + })) : null, + props.timePicker ? _react2["default"].createElement(_TimePickerButton2["default"], _extends({}, props, { + showTimePicker: showTimePicker, + onOpenTimePicker: this.onOpenTimePicker, + onCloseTimePicker: this.onCloseTimePicker, + timePickerDisabled: !this.hasSelectedValue() || hoverValue.length + })) : null, + showOkButton ? _react2["default"].createElement(_OkButton2["default"], _extends({}, props, { + onOk: this.onOk, + okDisabled: !this.isAllowedDateAndTime(selectedValue) || !this.hasSelectedValue() || hoverValue.length + })) : null + ) : null + ) + ) + ); }; - domUtils["viewport".concat(name)] = function (win) { - // pc browser includes scrollbar in window.innerWidth - var prop = "client".concat(name); - var doc = win.document; - var body = doc.body; - var documentElement = doc.documentElement; - var documentElementProp = documentElement[prop]; // 标准模式取 documentElement - // backcompat 取 body + return RangeCalendar; + }(_react2["default"].Component); - return doc.compatMode === 'CSS1Compat' && documentElementProp || body && body[prop] || documentElementProp; - }; + RangeCalendar.propTypes = _extends({}, _CommonMixin.propType, { + prefixCls: _propTypes2["default"].string, + dateInputPlaceholder: _propTypes2["default"].any, + seperator: _propTypes2["default"].string, + defaultValue: _propTypes2["default"].any, + value: _propTypes2["default"].any, + hoverValue: _propTypes2["default"].any, + mode: _propTypes2["default"].arrayOf(_propTypes2["default"].oneOf(['date', 'month', 'year', 'decade'])), + showDateInput: _propTypes2["default"].bool, + timePicker: _propTypes2["default"].any, + showOk: _propTypes2["default"].bool, + showToday: _propTypes2["default"].bool, + defaultSelectedValue: _propTypes2["default"].array, + selectedValue: _propTypes2["default"].array, + onOk: _propTypes2["default"].func, + showClear: _propTypes2["default"].bool, + locale: _propTypes2["default"].object, + onChange: _propTypes2["default"].func, + onSelect: _propTypes2["default"].func, + onValueChange: _propTypes2["default"].func, + onHoverChange: _propTypes2["default"].func, + onPanelChange: _propTypes2["default"].func, + format: _propTypes2["default"].oneOfType([_propTypes2["default"].object, _propTypes2["default"].string]), + onClear: _propTypes2["default"].func, + type: _propTypes2["default"].any, + disabledDate: _propTypes2["default"].func, + disabledTime: _propTypes2["default"].func, + clearIcon: _propTypes2["default"].node, + onKeyDown: _propTypes2["default"].func + }); + RangeCalendar.defaultProps = _extends({}, _CommonMixin.defaultProp, { + type: 'both', + seperator: '~', + defaultSelectedValue: [], + onValueChange: noop, + onHoverChange: noop, + onPanelChange: noop, + disabledTime: noop, + onInputSelect: noop, + showToday: true, + showDateInput: true }); - /* - 得到元素的大小信息 - @param elem - @param name - @param {String} [extra] 'padding' : (css width) + padding - 'border' : (css width) + padding + border - 'margin' : (css width) + padding + border + margin - */ - function getWH(elem, name, ex) { - var extra = ex; + var _initialiseProps = function _initialiseProps() { + var _this2 = this; - if (isWindow(elem)) { - return name === 'width' ? domUtils.viewportWidth(elem) : domUtils.viewportHeight(elem); - } else if (elem.nodeType === 9) { - return name === 'width' ? domUtils.docWidth(elem) : domUtils.docHeight(elem); - } + this.onDatePanelEnter = function () { + if (_this2.hasSelectedValue()) { + _this2.fireHoverValueChange(_this2.state.selectedValue.concat()); + } + }; - var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom']; - var borderBoxValue = name === 'width' ? elem.getBoundingClientRect().width : elem.getBoundingClientRect().height; - var computedStyle = getComputedStyleX(elem); - var isBorderBox = isBorderBoxFn(elem); - var cssBoxValue = 0; + this.onDatePanelLeave = function () { + if (_this2.hasSelectedValue()) { + _this2.fireHoverValueChange([]); + } + }; - if (borderBoxValue === null || borderBoxValue === undefined || borderBoxValue <= 0) { - borderBoxValue = undefined; // Fall back to computed then un computed css if necessary + this.onSelect = function (value) { + var type = _this2.props.type; + var _state = _this2.state, + selectedValue = _state.selectedValue, + prevSelectedValue = _state.prevSelectedValue, + firstSelectedValue = _state.firstSelectedValue; - cssBoxValue = getComputedStyleX(elem, name); + var nextSelectedValue = void 0; + if (type === 'both') { + if (!firstSelectedValue) { + (0, _util.syncTime)(prevSelectedValue[0], value); + nextSelectedValue = [value]; + } else if (_this2.compare(firstSelectedValue, value) < 0) { + (0, _util.syncTime)(prevSelectedValue[1], value); + nextSelectedValue = [firstSelectedValue, value]; + } else { + (0, _util.syncTime)(prevSelectedValue[0], value); + (0, _util.syncTime)(prevSelectedValue[1], firstSelectedValue); + nextSelectedValue = [value, firstSelectedValue]; + } + } else if (type === 'start') { + (0, _util.syncTime)(prevSelectedValue[0], value); + var endValue = selectedValue[1]; + nextSelectedValue = endValue && _this2.compare(endValue, value) > 0 ? [value, endValue] : [value]; + } else { + // type === 'end' + var startValue = selectedValue[0]; + if (startValue && _this2.compare(startValue, value) <= 0) { + (0, _util.syncTime)(prevSelectedValue[1], value); + nextSelectedValue = [startValue, value]; + } else { + (0, _util.syncTime)(prevSelectedValue[0], value); + nextSelectedValue = [value]; + } + } - if (cssBoxValue === null || cssBoxValue === undefined || Number(cssBoxValue) < 0) { - cssBoxValue = elem.style[name] || 0; - } // Normalize '', auto, and prepare for extra + _this2.fireSelectValueChange(nextSelectedValue); + }; + this.onKeyDown = function (event) { + if (event.target.nodeName.toLowerCase() === 'input') { + return; + } - cssBoxValue = parseFloat(cssBoxValue) || 0; - } + var keyCode = event.keyCode; - if (extra === undefined) { - extra = isBorderBox ? BORDER_INDEX : CONTENT_INDEX; - } + var ctrlKey = event.ctrlKey || event.metaKey; - var borderBoxValueOrIsBorderBox = borderBoxValue !== undefined || isBorderBox; - var val = borderBoxValue || cssBoxValue; + var _state2 = _this2.state, + selectedValue = _state2.selectedValue, + hoverValue = _state2.hoverValue, + firstSelectedValue = _state2.firstSelectedValue, + value = _state2.value; + var _props = _this2.props, + onKeyDown = _props.onKeyDown, + disabledDate = _props.disabledDate; - if (extra === CONTENT_INDEX) { - if (borderBoxValueOrIsBorderBox) { - return val - getPBMWidth(elem, ['border', 'padding'], which); - } + // Update last time of the picker - return cssBoxValue; - } else if (borderBoxValueOrIsBorderBox) { - if (extra === BORDER_INDEX) { - return val; - } + var updateHoverPoint = function updateHoverPoint(func) { + // Change hover to make focus in UI + var currentHoverTime = void 0; + var nextHoverTime = void 0; + var nextHoverValue = void 0; - return val + (extra === PADDING_INDEX ? -getPBMWidth(elem, ['border'], which) : getPBMWidth(elem, ['margin'], which)); - } + if (!firstSelectedValue) { + currentHoverTime = hoverValue[0] || selectedValue[0] || value[0] || (0, _moment2["default"])(); + nextHoverTime = func(currentHoverTime); + nextHoverValue = [nextHoverTime]; + _this2.fireHoverValueChange(nextHoverValue); + } else { + if (hoverValue.length === 1) { + currentHoverTime = hoverValue[0].clone(); + nextHoverTime = func(currentHoverTime); + nextHoverValue = _this2.onDayHover(nextHoverTime); + } else { + currentHoverTime = hoverValue[0].isSame(firstSelectedValue, 'day') ? hoverValue[1] : hoverValue[0]; + nextHoverTime = func(currentHoverTime); + nextHoverValue = _this2.onDayHover(nextHoverTime); + } + } - return cssBoxValue + getPBMWidth(elem, BOX_MODELS.slice(extra), which); - } + // Find origin hover time on value index + if (nextHoverValue.length >= 2) { + var miss = nextHoverValue.some(function (ht) { + return !(0, _toTime.includesTime)(value, ht, 'month'); + }); + if (miss) { + var newValue = nextHoverValue.slice().sort(function (t1, t2) { + return t1.valueOf() - t2.valueOf(); + }); + if (newValue[0].isSame(newValue[1], 'month')) { + newValue[1] = newValue[0].clone().add(1, 'month'); + } + _this2.fireValueChange(newValue); + } + } else if (nextHoverValue.length === 1) { + // If only one value, let's keep the origin panel + var oriValueIndex = value.findIndex(function (time) { + return time.isSame(currentHoverTime, 'month'); + }); + if (oriValueIndex === -1) oriValueIndex = 0; - var cssShow = { - position: 'absolute', - visibility: 'hidden', - display: 'block' - }; // fix #119 : https://github.com/kissyteam/kissy/issues/119 + if (value.every(function (time) { + return !time.isSame(nextHoverTime, 'month'); + })) { + var _newValue = value.slice(); + _newValue[oriValueIndex] = nextHoverTime.clone(); + _this2.fireValueChange(_newValue); + } + } - function getWHIgnoreDisplay() { - for (var _len = arguments.length, args = new Array(_len), _key2 = 0; _key2 < _len; _key2++) { - args[_key2] = arguments[_key2]; - } + event.preventDefault(); - var val; - var elem = args[0]; // in case elem is window - // elem.offsetWidth === undefined + return nextHoverTime; + }; - if (elem.offsetWidth !== 0) { - val = getWH.apply(undefined, args); - } else { - swap(elem, cssShow, function () { - val = getWH.apply(undefined, args); - }); - } + switch (keyCode) { + case _KeyCode2["default"].DOWN: + updateHoverPoint(function (time) { + return (0, _toTime.goTime)(time, 1, 'weeks'); + }); + return; + case _KeyCode2["default"].UP: + updateHoverPoint(function (time) { + return (0, _toTime.goTime)(time, -1, 'weeks'); + }); + return; + case _KeyCode2["default"].LEFT: + if (ctrlKey) { + updateHoverPoint(function (time) { + return (0, _toTime.goTime)(time, -1, 'years'); + }); + } else { + updateHoverPoint(function (time) { + return (0, _toTime.goTime)(time, -1, 'days'); + }); + } + return; + case _KeyCode2["default"].RIGHT: + if (ctrlKey) { + updateHoverPoint(function (time) { + return (0, _toTime.goTime)(time, 1, 'years'); + }); + } else { + updateHoverPoint(function (time) { + return (0, _toTime.goTime)(time, 1, 'days'); + }); + } + return; + case _KeyCode2["default"].HOME: + updateHoverPoint(function (time) { + return (0, _toTime.goStartMonth)(time); + }); + return; + case _KeyCode2["default"].END: + updateHoverPoint(function (time) { + return (0, _toTime.goEndMonth)(time); + }); + return; + case _KeyCode2["default"].PAGE_DOWN: + updateHoverPoint(function (time) { + return (0, _toTime.goTime)(time, 1, 'month'); + }); + return; + case _KeyCode2["default"].PAGE_UP: + updateHoverPoint(function (time) { + return (0, _toTime.goTime)(time, -1, 'month'); + }); + return; + case _KeyCode2["default"].ENTER: + { + var lastValue = void 0; + if (hoverValue.length === 0) { + lastValue = updateHoverPoint(function (time) { + return time; + }); + } else if (hoverValue.length === 1) { + lastValue = hoverValue[0]; + } else { + lastValue = hoverValue[0].isSame(firstSelectedValue, 'day') ? hoverValue[1] : hoverValue[0]; + } + if (lastValue && (!disabledDate || !disabledDate(lastValue))) { + _this2.onSelect(lastValue); + } + event.preventDefault(); + return; + } + default: + if (onKeyDown) { + onKeyDown(event); + } + } + }; - return val; - } + this.onDayHover = function (value) { + var hoverValue = []; + var _state3 = _this2.state, + selectedValue = _state3.selectedValue, + firstSelectedValue = _state3.firstSelectedValue; + var type = _this2.props.type; - each(['width', 'height'], function (name) { - var first = name.charAt(0).toUpperCase() + name.slice(1); + if (type === 'start' && selectedValue[1]) { + hoverValue = _this2.compare(value, selectedValue[1]) < 0 ? [value, selectedValue[1]] : [value]; + } else if (type === 'end' && selectedValue[0]) { + hoverValue = _this2.compare(value, selectedValue[0]) > 0 ? [selectedValue[0], value] : []; + } else { + if (!firstSelectedValue) { + if (_this2.state.hoverValue.length) { + _this2.setState({ hoverValue: [] }); + } + return hoverValue; + } + hoverValue = _this2.compare(value, firstSelectedValue) < 0 ? [value, firstSelectedValue] : [firstSelectedValue, value]; + } + _this2.fireHoverValueChange(hoverValue); - domUtils["outer".concat(first)] = function (el, includeMargin) { - return el && getWHIgnoreDisplay(el, name, includeMargin ? MARGIN_INDEX : BORDER_INDEX); + return hoverValue; }; - var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom']; - - domUtils[name] = function (elem, v) { - var val = v; + this.onToday = function () { + var startValue = (0, _util.getTodayTime)(_this2.state.value[0]); + var endValue = startValue.clone().add(1, 'months'); + _this2.setState({ value: [startValue, endValue] }); + }; - if (val !== undefined) { - if (elem) { - var computedStyle = getComputedStyleX(elem); - var isBorderBox = isBorderBoxFn(elem); + this.onOpenTimePicker = function () { + _this2.setState({ + showTimePicker: true + }); + }; - if (isBorderBox) { - val += getPBMWidth(elem, ['padding', 'border'], which); - } + this.onCloseTimePicker = function () { + _this2.setState({ + showTimePicker: false + }); + }; - return css(elem, name, val); - } + this.onOk = function () { + var selectedValue = _this2.state.selectedValue; - return undefined; + if (_this2.isAllowedDateAndTime(selectedValue)) { + _this2.props.onOk(_this2.state.selectedValue); } - - return elem && getWHIgnoreDisplay(elem, name, CONTENT_INDEX); }; - }); - function mix(to, from) { - for (var i in from) { - if (from.hasOwnProperty(i)) { - to[i] = from[i]; + this.onStartInputChange = function () { + for (var _len = arguments.length, oargs = Array(_len), _key = 0; _key < _len; _key++) { + oargs[_key] = arguments[_key]; } - } - return to; - } + var args = ['left'].concat(oargs); + return onInputSelect.apply(_this2, args); + }; - var utils = { - getWindow: function getWindow(node) { - if (node && node.document && node.setTimeout) { - return node; + this.onEndInputChange = function () { + for (var _len2 = arguments.length, oargs = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + oargs[_key2] = arguments[_key2]; } - var doc = node.ownerDocument || node; - return doc.defaultView || doc.parentWindow; - }, - getDocument: getDocument, - offset: function offset(el, value, option) { - if (typeof value !== 'undefined') { - setOffset(el, value, option || {}); - } else { - return getOffset(el); - } - }, - isWindow: isWindow, - each: each, - css: css, - clone: function clone(obj) { - var i; - var ret = {}; + var args = ['right'].concat(oargs); + return onInputSelect.apply(_this2, args); + }; - for (i in obj) { - if (obj.hasOwnProperty(i)) { - ret[i] = obj[i]; - } - } + this.onStartInputSelect = function (value) { + var args = ['left', value, { source: 'dateInputSelect' }]; + return onInputSelect.apply(_this2, args); + }; - var overflow = obj.overflow; + this.onEndInputSelect = function (value) { + var args = ['right', value, { source: 'dateInputSelect' }]; + return onInputSelect.apply(_this2, args); + }; - if (overflow) { - for (i in obj) { - if (obj.hasOwnProperty(i)) { - ret.overflow[i] = obj.overflow[i]; - } - } - } + this.onStartValueChange = function (leftValue) { + var value = [].concat(_toConsumableArray(_this2.state.value)); + value[0] = leftValue; + return _this2.fireValueChange(value); + }; - return ret; - }, - mix: mix, - getWindowScrollLeft: function getWindowScrollLeft(w) { - return getScrollLeft(w); - }, - getWindowScrollTop: function getWindowScrollTop(w) { - return getScrollTop(w); - }, - merge: function merge() { - var ret = {}; + this.onEndValueChange = function (rightValue) { + var value = [].concat(_toConsumableArray(_this2.state.value)); + value[1] = rightValue; + return _this2.fireValueChange(value); + }; - for (var i = 0; i < arguments.length; i++) { - utils.mix(ret, i < 0 || arguments.length <= i ? undefined : arguments[i]); + this.onStartPanelChange = function (value, mode) { + var props = _this2.props, + state = _this2.state; + + var newMode = [mode, state.mode[1]]; + if (!('mode' in props)) { + _this2.setState({ + mode: newMode + }); } + var newValue = [value || state.value[0], state.value[1]]; + props.onPanelChange(newValue, newMode); + }; - return ret; - }, - viewportWidth: 0, - viewportHeight: 0 - }; - mix(utils, domUtils); + this.onEndPanelChange = function (value, mode) { + var props = _this2.props, + state = _this2.state; - /** - * 得到会导致元素显示不全的祖先元素 - */ + var newMode = [state.mode[0], mode]; + if (!('mode' in props)) { + _this2.setState({ + mode: newMode + }); + } + var newValue = [state.value[0], value || state.value[1]]; + props.onPanelChange(newValue, newMode); + }; - var getParent = utils.getParent; + this.getStartValue = function () { + var value = _this2.state.value[0]; + var selectedValue = _this2.state.selectedValue; + // keep selectedTime when select date + if (selectedValue[0] && _this2.props.timePicker) { + value = value.clone(); + (0, _util.syncTime)(selectedValue[0], value); + } + if (_this2.state.showTimePicker && selectedValue[0]) { + return selectedValue[0]; + } + return value; + }; - function getOffsetParent(element) { - if (utils.isWindow(element) || element.nodeType === 9) { - return null; - } // ie 这个也不是完全可行 + this.getEndValue = function () { + var _state4 = _this2.state, + value = _state4.value, + selectedValue = _state4.selectedValue, + showTimePicker = _state4.showTimePicker; - /* -
    -
    - 元素 6 高 100px 宽 50px
    -
    -
    - */ - // element.offsetParent does the right thing in ie7 and below. Return parent with layout! - // In other browsers it only includes elements with position absolute, relative or - // fixed, not elements with overflow set to auto or scroll. - // if (UA.ie && ieMode < 8) { - // return element.offsetParent; - // } - // 统一的 offsetParent 方法 + var endValue = value[1] ? value[1].clone() : value[0].clone().add(1, 'month'); + // keep selectedTime when select date + if (selectedValue[1] && _this2.props.timePicker) { + (0, _util.syncTime)(selectedValue[1], endValue); + } + if (showTimePicker) { + return selectedValue[1] ? selectedValue[1] : _this2.getStartValue(); + } + return endValue; + }; + this.getEndDisableTime = function () { + var _state5 = _this2.state, + selectedValue = _state5.selectedValue, + value = _state5.value; + var disabledTime = _this2.props.disabledTime; - var doc = utils.getDocument(element); - var body = doc.body; - var parent; - var positionStyle = utils.css(element, 'position'); - var skipStatic = positionStyle === 'fixed' || positionStyle === 'absolute'; + var userSettingDisabledTime = disabledTime(selectedValue, 'end') || {}; + var startValue = selectedValue && selectedValue[0] || value[0].clone(); + // if startTime and endTime is same day.. + // the second time picker will not able to pick time before first time picker + if (!selectedValue[1] || startValue.isSame(selectedValue[1], 'day')) { + var hours = startValue.hour(); + var minutes = startValue.minute(); + var second = startValue.second(); + var _disabledHours = userSettingDisabledTime.disabledHours, + _disabledMinutes = userSettingDisabledTime.disabledMinutes, + _disabledSeconds = userSettingDisabledTime.disabledSeconds; - if (!skipStatic) { - return element.nodeName.toLowerCase() === 'html' ? null : getParent(element); - } + var oldDisabledMinutes = _disabledMinutes ? _disabledMinutes() : []; + var olddisabledSeconds = _disabledSeconds ? _disabledSeconds() : []; + _disabledHours = generateOptions(hours, _disabledHours); + _disabledMinutes = generateOptions(minutes, _disabledMinutes); + _disabledSeconds = generateOptions(second, _disabledSeconds); + return { + disabledHours: function disabledHours() { + return _disabledHours; + }, + disabledMinutes: function disabledMinutes(hour) { + if (hour === hours) { + return _disabledMinutes; + } + return oldDisabledMinutes; + }, + disabledSeconds: function disabledSeconds(hour, minute) { + if (hour === hours && minute === minutes) { + return _disabledSeconds; + } + return olddisabledSeconds; + } + }; + } + return userSettingDisabledTime; + }; - for (parent = getParent(element); parent && parent !== body && parent.nodeType !== 9; parent = getParent(parent)) { - positionStyle = utils.css(parent, 'position'); + this.isAllowedDateAndTime = function (selectedValue) { + return (0, _util.isAllowedDate)(selectedValue[0], _this2.props.disabledDate, _this2.disabledStartTime) && (0, _util.isAllowedDate)(selectedValue[1], _this2.props.disabledDate, _this2.disabledEndTime); + }; - if (positionStyle !== 'static') { - return parent; - } - } + this.isMonthYearPanelShow = function (mode) { + return ['month', 'year', 'decade'].indexOf(mode) > -1; + }; - return null; - } + this.hasSelectedValue = function () { + var selectedValue = _this2.state.selectedValue; - var getParent$1 = utils.getParent; - function isAncestorFixed(element) { - if (utils.isWindow(element) || element.nodeType === 9) { - return false; - } + return !!selectedValue[1] && !!selectedValue[0]; + }; - var doc = utils.getDocument(element); - var body = doc.body; - var parent = null; + this.compare = function (v1, v2) { + if (_this2.props.timePicker) { + return v1.diff(v2); + } + return v1 && v1.diff(v2, 'days'); + }; - for (parent = getParent$1(element); parent && parent !== body; parent = getParent$1(parent)) { - var positionStyle = utils.css(parent, 'position'); + this.fireSelectValueChange = function (selectedValue, direct, cause) { + var timePicker = _this2.props.timePicker; + var prevSelectedValue = _this2.state.prevSelectedValue; - if (positionStyle === 'fixed') { - return true; + if (timePicker && timePicker.props.defaultValue) { + var timePickerDefaultValue = timePicker.props.defaultValue; + if (!prevSelectedValue[0] && selectedValue[0]) { + (0, _util.syncTime)(timePickerDefaultValue[0], selectedValue[0]); + } + if (!prevSelectedValue[1] && selectedValue[1]) { + (0, _util.syncTime)(timePickerDefaultValue[1], selectedValue[1]); + } } - } - return false; - } + if (!('selectedValue' in _this2.props)) { + _this2.setState({ + selectedValue: selectedValue + }); + } - /** - * 获得元素的显示部分的区域 - */ + // 尚未选择过时间,直接输入的话 + if (!_this2.state.selectedValue[0] || !_this2.state.selectedValue[1]) { + var startValue = selectedValue[0] || (0, _moment2["default"])(); + var endValue = selectedValue[1] || startValue.clone().add(1, 'months'); + _this2.setState({ + selectedValue: selectedValue, + value: getValueFromSelectedValue([startValue, endValue]) + }); + } - function getVisibleRectForElement(element, alwaysByViewport) { - var visibleRect = { - left: 0, - right: Infinity, - top: 0, - bottom: Infinity + if (selectedValue[0] && !selectedValue[1]) { + _this2.setState({ firstSelectedValue: selectedValue[0] }); + _this2.fireHoverValueChange(selectedValue.concat()); + } + selectedValue.map(function (item) { + if (item) { + item._type = 'range'; + } + }); + _this2.props.onChange(selectedValue); + if (direct || selectedValue[0] && selectedValue[1]) { + _this2.setState({ + prevSelectedValue: selectedValue, + firstSelectedValue: null + }); + _this2.fireHoverValueChange([]); + _this2.props.onSelect(selectedValue, cause); + } }; - var el = getOffsetParent(element); - var doc = utils.getDocument(element); - var win = doc.defaultView || doc.parentWindow; - var body = doc.body; - var documentElement = doc.documentElement; // Determine the size of the visible rect by climbing the dom accounting for - // all scrollable containers. - while (el) { - // clientWidth is zero for inline block elements in ie. - if ((navigator.userAgent.indexOf('MSIE') === -1 || el.clientWidth !== 0) && // body may have overflow set on it, yet we still get the entire - // viewport. In some browsers, el.offsetParent may be - // document.documentElement, so check for that too. - el !== body && el !== documentElement && utils.css(el, 'overflow') !== 'visible') { - var pos = utils.offset(el); // add border + this.fireValueChange = function (value) { + var props = _this2.props; + if (!('value' in props)) { + _this2.setState({ + value: value + }); + } + props.onValueChange(value); + }; - pos.left += el.clientLeft; - pos.top += el.clientTop; - visibleRect.top = Math.max(visibleRect.top, pos.top); - visibleRect.right = Math.min(visibleRect.right, // consider area without scrollBar - pos.left + el.clientWidth); - visibleRect.bottom = Math.min(visibleRect.bottom, pos.top + el.clientHeight); - visibleRect.left = Math.max(visibleRect.left, pos.left); - } else if (el === body || el === documentElement) { - break; + this.fireHoverValueChange = function (hoverValue) { + var props = _this2.props; + if (!('hoverValue' in props)) { + _this2.setState({ hoverValue: hoverValue }); } + props.onHoverChange(hoverValue); + }; - el = getOffsetParent(el); - } // Set element position to fixed - // make sure absolute element itself don't affect it's visible area - // https://github.com/ant-design/ant-design/issues/7601 + this.clear = function () { + _this2.fireSelectValueChange([], true); + _this2.props.onClear([]); + }; + this.disabledStartTime = function (time) { + return _this2.props.disabledTime(time, 'start'); + }; - var originalPosition = null; + this.disabledEndTime = function (time) { + return _this2.props.disabledTime(time, 'end'); + }; - if (!utils.isWindow(element) && element.nodeType !== 9) { - originalPosition = element.style.position; - var position = utils.css(element, 'position'); + this.disabledStartMonth = function (month) { + var value = _this2.state.value; - if (position === 'absolute') { - element.style.position = 'fixed'; - } - } + return month.isSameOrAfter(value[1], 'month'); + }; - var scrollX = utils.getWindowScrollLeft(win); - var scrollY = utils.getWindowScrollTop(win); - var viewportWidth = utils.viewportWidth(win); - var viewportHeight = utils.viewportHeight(win); - var documentWidth = documentElement.scrollWidth; - var documentHeight = documentElement.scrollHeight; // scrollXXX on html is sync with body which means overflow: hidden on body gets wrong scrollXXX. - // We should cut this ourself. + this.disabledEndMonth = function (month) { + var value = _this2.state.value; - var bodyStyle = window.getComputedStyle(body); + return month.isSameOrBefore(value[0], 'month'); + }; - if (bodyStyle.overflowX === 'hidden') { - documentWidth = win.innerWidth; - } + this.onMouseOver = function (e) { + e.stopPropagation(); + }; + }; - if (bodyStyle.overflowY === 'hidden') { - documentHeight = win.innerHeight; - } // Reset element position after calculate the visible area + (0, _reactLifecyclesCompat.polyfill)(RangeCalendar); + exports["default"] = (0, _CommonMixin.commonMixinWrapper)(RangeCalendar); + module.exports = exports['default']; + +/***/ }), +/* 591 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - if (element.style) { - element.style.position = originalPosition; - } + Object.defineProperty(exports, "__esModule", { + value: true + }); - if (alwaysByViewport || isAncestorFixed(element)) { - // Clip by viewport's size. - visibleRect.left = Math.max(visibleRect.left, scrollX); - visibleRect.top = Math.max(visibleRect.top, scrollY); - visibleRect.right = Math.min(visibleRect.right, scrollX + viewportWidth); - visibleRect.bottom = Math.min(visibleRect.bottom, scrollY + viewportHeight); - } else { - // Clip by document's size. - var maxVisibleWidth = Math.max(documentWidth, scrollX + viewportWidth); - visibleRect.right = Math.min(visibleRect.right, maxVisibleWidth); - var maxVisibleHeight = Math.max(documentHeight, scrollY + viewportHeight); - visibleRect.bottom = Math.min(visibleRect.bottom, maxVisibleHeight); - } + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - return visibleRect.top >= 0 && visibleRect.left >= 0 && visibleRect.bottom > visibleRect.top && visibleRect.right > visibleRect.left ? visibleRect : null; - } + var _react = __webpack_require__(1); - function adjustForViewport(elFuturePos, elRegion, visibleRect, overflow) { - var pos = utils.clone(elFuturePos); - var size = { - width: elRegion.width, - height: elRegion.height - }; + var _react2 = _interopRequireDefault(_react); - if (overflow.adjustX && pos.left < visibleRect.left) { - pos.left = visibleRect.left; - } // Left edge inside and right edge outside viewport, try to resize it. + var _propTypes = __webpack_require__(6); + var _propTypes2 = _interopRequireDefault(_propTypes); - if (overflow.resizeWidth && pos.left >= visibleRect.left && pos.left + size.width > visibleRect.right) { - size.width -= pos.left + size.width - visibleRect.right; - } // Right edge outside viewport, try to move it. + var _CalendarHeader = __webpack_require__(560); + var _CalendarHeader2 = _interopRequireDefault(_CalendarHeader); - if (overflow.adjustX && pos.left + size.width > visibleRect.right) { - // 保证左边界和可视区域左边界对齐 - pos.left = Math.max(visibleRect.right - size.width, visibleRect.left); - } // Top edge outside viewport, try to move it. + var _DateTable = __webpack_require__(420); + var _DateTable2 = _interopRequireDefault(_DateTable); - if (overflow.adjustY && pos.top < visibleRect.top) { - pos.top = visibleRect.top; - } // Top edge inside and bottom edge outside viewport, try to resize it. + var _DateInput = __webpack_require__(564); + var _DateInput2 = _interopRequireDefault(_DateInput); - if (overflow.resizeHeight && pos.top >= visibleRect.top && pos.top + size.height > visibleRect.bottom) { - size.height -= pos.top + size.height - visibleRect.bottom; - } // Bottom edge outside viewport, try to move it. + var _index = __webpack_require__(559); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - if (overflow.adjustY && pos.top + size.height > visibleRect.bottom) { - // 保证上边界和可视区域上边界对齐 - pos.top = Math.max(visibleRect.bottom - size.height, visibleRect.top); - } + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - return utils.mix(pos, size); - } + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - function getRegion(node) { - var offset; - var w; - var h; + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - if (!utils.isWindow(node) && node.nodeType !== 9) { - offset = utils.offset(node); - w = utils.outerWidth(node); - h = utils.outerHeight(node); - } else { - var win = utils.getWindow(node); - offset = { - left: utils.getWindowScrollLeft(win), - top: utils.getWindowScrollTop(win) - }; - w = utils.viewportWidth(win); - h = utils.viewportHeight(win); - } + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - offset.width = w; - offset.height = h; - return offset; - } + var CalendarPart = function (_React$Component) { + _inherits(CalendarPart, _React$Component); - /** - * 获取 node 上的 align 对齐点 相对于页面的坐标 - */ - function getAlignOffset(region, align) { - var V = align.charAt(0); - var H = align.charAt(1); - var w = region.width; - var h = region.height; - var x = region.left; - var y = region.top; + function CalendarPart() { + _classCallCheck(this, CalendarPart); - if (V === 'c') { - y += h / 2; - } else if (V === 'b') { - y += h; + return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); } - if (H === 'c') { - x += w / 2; - } else if (H === 'r') { - x += w; - } + CalendarPart.prototype.render = function render() { + var props = this.props; + var prefixCls = props.prefixCls, + value = props.value, + hoverValue = props.hoverValue, + selectedValue = props.selectedValue, + mode = props.mode, + direction = props.direction, + locale = props.locale, + format = props.format, + placeholder = props.placeholder, + disabledDate = props.disabledDate, + timePicker = props.timePicker, + disabledTime = props.disabledTime, + timePickerDisabledTime = props.timePickerDisabledTime, + showTimePicker = props.showTimePicker, + onInputChange = props.onInputChange, + onInputSelect = props.onInputSelect, + enablePrev = props.enablePrev, + enableNext = props.enableNext, + clearIcon = props.clearIcon, + renderError = props.renderError, + inputTabIndex = props.inputTabIndex, + onInputBlur = props.onInputBlur, + validatorFunc = props.validatorFunc; - return { - left: x, - top: y - }; - } + var shouldShowTimePicker = showTimePicker && timePicker; + var disabledTimeConfig = shouldShowTimePicker && disabledTime ? (0, _index.getTimeConfig)(selectedValue, disabledTime) : null; + var rangeClassName = prefixCls + '-range'; + var newProps = { + locale: locale, + value: value, + prefixCls: prefixCls, + showTimePicker: showTimePicker + }; + var index = direction === 'left' ? 0 : 1; + var timePickerEle = shouldShowTimePicker && _react2["default"].cloneElement(timePicker, _extends({ + showHour: true, + showMinute: true, + showSecond: true + }, timePicker.props, disabledTimeConfig, timePickerDisabledTime, { + onChange: onInputChange, + defaultOpenValue: value, + value: selectedValue[index] + })); - function getElFuturePos(elRegion, refNodeRegion, points, offset, targetOffset) { - var p1 = getAlignOffset(refNodeRegion, points[1]); - var p2 = getAlignOffset(elRegion, points[0]); - var diff = [p2.left - p1.left, p2.top - p1.top]; - return { - left: Math.round(elRegion.left - diff[0] + offset[0] - targetOffset[0]), - top: Math.round(elRegion.top - diff[1] + offset[1] - targetOffset[1]) + var dateInputElement = props.showDateInput && _react2["default"].createElement(_DateInput2["default"], { + isRange: true, + format: format, + locale: locale, + prefixCls: prefixCls, + timePicker: timePicker, + disabledDate: disabledDate, + placeholder: placeholder, + disabledTime: disabledTime, + value: value, + showClear: false, + selectedValue: selectedValue[index], + onChange: onInputChange, + onSelect: onInputSelect, + clearIcon: clearIcon, + renderError: renderError, + inputTabIndex: inputTabIndex, + onBlur: onInputBlur, + validatorFunc: validatorFunc + }); + + return _react2["default"].createElement( + 'div', + { + className: rangeClassName + '-part ' + rangeClassName + '-' + direction + }, + dateInputElement, + _react2["default"].createElement( + 'div', + { style: { outline: 'none' }, tabIndex: props.tabIndex, className: rangeClassName + '-out' }, + _react2["default"].createElement(_CalendarHeader2["default"], _extends({}, newProps, { + mode: mode, + enableNext: enableNext, + enablePrev: enablePrev, + onValueChange: props.onValueChange, + onPanelChange: props.onPanelChange, + disabledMonth: props.disabledMonth + })), + showTimePicker ? _react2["default"].createElement( + 'div', + { className: prefixCls + '-time-picker' }, + _react2["default"].createElement( + 'div', + { className: prefixCls + '-time-picker-panel' }, + timePickerEle + ) + ) : null, + _react2["default"].createElement( + 'div', + { className: prefixCls + '-body' }, + _react2["default"].createElement(_DateTable2["default"], _extends({}, newProps, { + hoverValue: hoverValue, + selectedValue: selectedValue, + dateRender: props.dateRender, + onSelect: props.onSelect, + onDayHover: props.onDayHover, + disabledDate: disabledDate, + showWeekNumber: props.showWeekNumber + })) + ) + ) + ); }; - } - /** - * align dom node flexibly - * @author yiminghe@gmail.com - */ + return CalendarPart; + }(_react2["default"].Component); - function isFailX(elFuturePos, elRegion, visibleRect) { - return elFuturePos.left < visibleRect.left || elFuturePos.left + elRegion.width > visibleRect.right; - } + CalendarPart.propTypes = { + prefixCls: _propTypes2["default"].string, + value: _propTypes2["default"].any, + hoverValue: _propTypes2["default"].any, + selectedValue: _propTypes2["default"].any, + direction: _propTypes2["default"].any, + locale: _propTypes2["default"].any, + showDateInput: _propTypes2["default"].bool, + showTimePicker: _propTypes2["default"].bool, + format: _propTypes2["default"].any, + placeholder: _propTypes2["default"].any, + disabledDate: _propTypes2["default"].any, + timePicker: _propTypes2["default"].any, + disabledTime: _propTypes2["default"].any, + onInputChange: _propTypes2["default"].func, + onInputSelect: _propTypes2["default"].func, + timePickerDisabledTime: _propTypes2["default"].object, + enableNext: _propTypes2["default"].any, + enablePrev: _propTypes2["default"].any, + clearIcon: _propTypes2["default"].node + }; + exports["default"] = CalendarPart; + module.exports = exports['default']; + +/***/ }), +/* 592 */ +/***/ (function(module, exports, __webpack_require__) { + + "use strict"; - function isFailY(elFuturePos, elRegion, visibleRect) { - return elFuturePos.top < visibleRect.top || elFuturePos.top + elRegion.height > visibleRect.bottom; - } + Object.defineProperty(exports, "__esModule", { + value: true + }); - function isCompleteFailX(elFuturePos, elRegion, visibleRect) { - return elFuturePos.left > visibleRect.right || elFuturePos.left + elRegion.width < visibleRect.left; - } + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - function isCompleteFailY(elFuturePos, elRegion, visibleRect) { - return elFuturePos.top > visibleRect.bottom || elFuturePos.top + elRegion.height < visibleRect.top; - } + var _rcCalendar = __webpack_require__(417); - function flip(points, reg, map) { - var ret = []; - utils.each(points, function (p) { - ret.push(p.replace(reg, function (m) { - return map[m]; - })); - }); - return ret; - } + var _rcCalendar2 = _interopRequireDefault(_rcCalendar); - function flipOffset(offset, index) { - offset[index] = -offset[index]; - return offset; - } + var _react = __webpack_require__(1); - function convertOffset(str, offsetLen) { - var n; + var _react2 = _interopRequireDefault(_react); - if (/%$/.test(str)) { - n = parseInt(str.substring(0, str.length - 1), 10) / 100 * offsetLen; - } else { - n = parseInt(str, 10); - } + var _reactDom = __webpack_require__(2); - return n || 0; - } + var _reactDom2 = _interopRequireDefault(_reactDom); - function normalizeOffset(offset, el) { - offset[0] = convertOffset(offset[0], el.width); - offset[1] = convertOffset(offset[1], el.height); - } - /** - * @param el - * @param tgtRegion 参照节点所占的区域: { left, top, width, height } - * @param align - */ + var _classnames = __webpack_require__(5); + var _classnames2 = _interopRequireDefault(_classnames); - function doAlign(el, tgtRegion, align, isTgtRegionVisible) { - var points = align.points; - var offset = align.offset || [0, 0]; - var targetOffset = align.targetOffset || [0, 0]; - var overflow = align.overflow; - var source = align.source || el; - offset = [].concat(offset); - targetOffset = [].concat(targetOffset); - overflow = overflow || {}; - var newOverflowCfg = {}; - var fail = 0; - var alwaysByViewport = !!(overflow && overflow.alwaysByViewport); // 当前节点可以被放置的显示区域 + var _Picker = __webpack_require__(575); - var visibleRect = getVisibleRectForElement(source, alwaysByViewport); // 当前节点所占的区域, left/top/width/height + var _Picker2 = _interopRequireDefault(_Picker); - var elRegion = getRegion(source); // 将 offset 转换成数值,支持百分比 + var _beeFormControl = __webpack_require__(268); - normalizeOffset(offset, elRegion); - normalizeOffset(targetOffset, tgtRegion); // 当前节点将要被放置的位置 + var _beeFormControl2 = _interopRequireDefault(_beeFormControl); - var elFuturePos = getElFuturePos(elRegion, tgtRegion, points, offset, targetOffset); // 当前节点将要所处的区域 + var _zh_CN = __webpack_require__(586); - var newElRegion = utils.merge(elRegion, elFuturePos); // 如果可视区域不能完全放置当前节点时允许调整 + var _zh_CN2 = _interopRequireDefault(_zh_CN); - if (visibleRect && (overflow.adjustX || overflow.adjustY) && isTgtRegionVisible) { - if (overflow.adjustX) { - // 如果横向不能放下 - if (isFailX(elFuturePos, elRegion, visibleRect)) { - // 对齐位置反下 - var newPoints = flip(points, /[lr]/gi, { - l: 'r', - r: 'l' - }); // 偏移量也反下 + var _en_US = __webpack_require__(573); - var newOffset = flipOffset(offset, 0); - var newTargetOffset = flipOffset(targetOffset, 0); - var newElFuturePos = getElFuturePos(elRegion, tgtRegion, newPoints, newOffset, newTargetOffset); + var _en_US2 = _interopRequireDefault(_en_US); - if (!isCompleteFailX(newElFuturePos, elRegion, visibleRect)) { - fail = 1; - points = newPoints; - offset = newOffset; - targetOffset = newTargetOffset; - } - } - } + var _beeIcon = __webpack_require__(67); - if (overflow.adjustY) { - // 如果纵向不能放下 - if (isFailY(elFuturePos, elRegion, visibleRect)) { - // 对齐位置反下 - var _newPoints = flip(points, /[tb]/gi, { - t: 'b', - b: 't' - }); // 偏移量也反下 + var _beeIcon2 = _interopRequireDefault(_beeIcon); + var _beeInputGroup = __webpack_require__(581); - var _newOffset = flipOffset(offset, 1); + var _beeInputGroup2 = _interopRequireDefault(_beeInputGroup); - var _newTargetOffset = flipOffset(targetOffset, 1); + var _moment = __webpack_require__(423); - var _newElFuturePos = getElFuturePos(elRegion, tgtRegion, _newPoints, _newOffset, _newTargetOffset); + var _moment2 = _interopRequireDefault(_moment); - if (!isCompleteFailY(_newElFuturePos, elRegion, visibleRect)) { - fail = 1; - points = _newPoints; - offset = _newOffset; - targetOffset = _newTargetOffset; - } - } - } // 如果失败,重新计算当前节点将要被放置的位置 + __webpack_require__(554); + __webpack_require__(453); - if (fail) { - elFuturePos = getElFuturePos(elRegion, tgtRegion, points, offset, targetOffset); - utils.mix(newElRegion, elFuturePos); - } + var _omit = __webpack_require__(288); - var isStillFailX = isFailX(elFuturePos, elRegion, visibleRect); - var isStillFailY = isFailY(elFuturePos, elRegion, visibleRect); // 检查反下后的位置是否可以放下了,如果仍然放不下: - // 1. 复原修改过的定位参数 + var _omit2 = _interopRequireDefault(_omit); - if (isStillFailX || isStillFailY) { - points = align.points; - offset = align.offset || [0, 0]; - targetOffset = align.targetOffset || [0, 0]; - } // 2. 只有指定了可以调整当前方向才调整 + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - newOverflowCfg.adjustX = overflow.adjustX && isStillFailX; - newOverflowCfg.adjustY = overflow.adjustY && isStillFailY; // 确实要调整,甚至可能会调整高度宽度 + function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure undefined"); } - if (newOverflowCfg.adjustX || newOverflowCfg.adjustY) { - newElRegion = adjustForViewport(elFuturePos, elRegion, visibleRect, newOverflowCfg); - } - } // need judge to in case set fixed with in css on height auto element + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - if (newElRegion.width !== elRegion.width) { - utils.css(source, 'width', utils.width(source) + newElRegion.width - elRegion.width); - } + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - if (newElRegion.height !== elRegion.height) { - utils.css(source, 'height', utils.height(source) + newElRegion.height - elRegion.height); - } // https://github.com/kissyteam/kissy/issues/190 - // 相对于屏幕位置没变,而 left/top 变了 - // 例如
    + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** + * Created by chief on 17/4/6. + */ + var cn = typeof window !== 'undefined' ? location.search.indexOf("cn") !== -1 : true; - utils.offset(source, { - left: newElRegion.left, - top: newElRegion.top - }, { - useCssRight: align.useCssRight, - useCssBottom: align.useCssBottom, - useCssTransform: align.useCssTransform, - ignoreShake: align.ignoreShake - }); - return { - points: points, - offset: offset, - targetOffset: targetOffset, - overflow: newOverflowCfg - }; + var now = (0, _moment2["default"])(); + if (cn) { + now.locale("zh-cn").utcOffset(8); + } else { + now.locale("en-gb").utcOffset(0); } - /** - * 2012-04-26 yiminghe@gmail.com - * - 优化智能对齐算法 - * - 慎用 resizeXX - * - * 2011-07-13 yiminghe@gmail.com note: - * - 增加智能对齐,以及大小调整选项 - **/ - function isOutOfVisibleRect(target, alwaysByViewport) { - var visibleRect = getVisibleRectForElement(target, alwaysByViewport); - var targetRegion = getRegion(target); - return !visibleRect || targetRegion.left + targetRegion.width <= visibleRect.left || targetRegion.top + targetRegion.height <= visibleRect.top || targetRegion.left >= visibleRect.right || targetRegion.top >= visibleRect.bottom; - } + var format = "YYYY-Wo"; - function alignElement(el, refNode, align) { - var target = align.target || refNode; - var refNodeRegion = getRegion(target); - var isTargetNotOutOfVisible = !isOutOfVisibleRect(target, align.overflow && align.overflow.alwaysByViewport); - return doAlign(el, refNodeRegion, align, isTargetNotOutOfVisible); - } + var style = "\n.week-calendar .rc-calendar-tbody > tr:hover\n.rc-calendar-date {\n background: #ebfaff;\n}\n\n.week-calendar .rc-calendar-tbody > tr:hover\n.rc-calendar-selected-day .rc-calendar-date {\n background: #3fc7fa;\n}\n.week-calendar .week-calendar-footer {\n position:absolute;\n top:0;\n left:0;\n bottom:0;\n width:100%;\n border-right: 1px solid #ccc;\n}\n"; - alignElement.__getOffsetParent = getOffsetParent; - alignElement.__getVisibleRectForElement = getVisibleRectForElement; + var WeekPicker = function (_Component) { + _inherits(WeekPicker, _Component); - /** - * `tgtPoint`: { pageX, pageY } or { clientX, clientY }. - * If client position provided, will internal convert to page position. - */ + function WeekPicker(props, context) { + _classCallCheck(this, WeekPicker); - function alignPoint(el, tgtPoint, align) { - var pageX; - var pageY; - var doc = utils.getDocument(el); - var win = doc.defaultView || doc.parentWindow; - var scrollX = utils.getWindowScrollLeft(win); - var scrollY = utils.getWindowScrollTop(win); - var viewportWidth = utils.viewportWidth(win); - var viewportHeight = utils.viewportHeight(win); + var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); - if ('pageX' in tgtPoint) { - pageX = tgtPoint.pageX; - } else { - pageX = scrollX + tgtPoint.clientX; - } + _initialiseProps.call(_this); - if ('pageY' in tgtPoint) { - pageY = tgtPoint.pageY; - } else { - pageY = scrollY + tgtPoint.clientY; + _this.state = { + value: _this.initValue(props), + open: false, + showClose: false + }; + return _this; } - var tgtRegion = { - left: pageX, - top: pageY, - width: 0, - height: 0 + WeekPicker.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { + if ("value" in nextProps) { + this.setState({ + value: this.initValue(nextProps) + }); + } }; - var pointInView = pageX >= 0 && pageX <= scrollX + viewportWidth && pageY >= 0 && pageY <= scrollY + viewportHeight; // Provide default target point - - var points = [align.points[0], 'cc']; - return doAlign(el, tgtRegion, _objectSpread2({}, align, { - points: points - }), pointInView); - } - - /* harmony default export */ __webpack_exports__["default"] = (alignElement); - //# sourceMappingURL=index.js.map - - - /***/ }), - /* 14 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + WeekPicker.prototype.render = function render() { + var _this2 = this; - "use strict"; - Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); - /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "polyfill", function() { return polyfill; }); - /** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ + var state = this.state; + var props = this.props; - function componentWillMount() { - // Call this.constructor.gDSFP to support sub-classes. - var state = this.constructor.getDerivedStateFromProps(this.props, this.state); - if (state !== null && state !== undefined) { - this.setState(state); - } - } + var showClose = props.showClose, + others = _objectWithoutProperties(props, ["showClose"]); - function componentWillReceiveProps(nextProps) { - // Call this.constructor.gDSFP to support sub-classes. - // Use the setState() updater to ensure state isn't stale in certain edge cases. - function updater(prevState) { - var state = this.constructor.getDerivedStateFromProps(nextProps, prevState); - return state !== null && state !== undefined ? state : null; - } - // Binding "this" is important for shallow renderer support. - this.setState(updater.bind(this)); - } + var value = state.value; + var calendar = _react2["default"].createElement(_rcCalendar2["default"], { + className: "week-calendar", + showWeekNumber: true, + showMonthInput: false, + renderFooter: this.renderFooter, + dateRender: this.dateRender, + locale: cn ? _zh_CN2["default"] : _en_US2["default"], + format: format, + dateInputPlaceholder: this.props.placeholder, + defaultValue: now, + showDateInput: true, + onChange: this.handleCalendarChange, + showToday: false, + onClear: this.onClear + }); + var classes = (0, _classnames2["default"])(props.className, "datepicker-container"); + return _react2["default"].createElement( + "div", + _extends({ className: classes + }, (0, _omit2["default"])(others, ['closeIcon', 'renderIcon', 'format', 'locale', 'placeholder'])), + _react2["default"].createElement( + _Picker2["default"], + _extends({ + animation: "slide-up" + }, props, { + onOpenChange: this.onOpenChange, + open: this.state.open, + calendar: calendar, + value: state.value + }), + function (_ref) { + _objectDestructuringEmpty(_ref); - function componentWillUpdate(nextProps, nextState) { - try { - var prevProps = this.props; - var prevState = this.state; - this.props = nextProps; - this.state = nextState; - this.__reactInternalSnapshotFlag = true; - this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate( - prevProps, - prevState + return _react2["default"].createElement( + _beeInputGroup2["default"], + { simple: true, className: "datepicker-input-group", + onMouseEnter: _this2.onMouseEnter, + onMouseLeave: _this2.onMouseLeave + }, + _react2["default"].createElement(_beeFormControl2["default"], { + placeholder: _this2.props.placeholder, + disabled: props.disabled, + readOnly: true, + tabIndex: "-1", + className: _this2.props.className, + value: value && value.format(format) || "" + }), + showClose && _this2.state.value && _this2.state.showClose && !props.disabled ? _react2["default"].createElement( + _beeInputGroup2["default"].Button, + { shape: "border", + onClick: _this2.onClear }, + props.closeIcon() + ) : _react2["default"].createElement( + _beeInputGroup2["default"].Button, + { shape: "border" }, + props.renderIcon() + ) + ); + } + ) ); - } finally { - this.props = prevProps; - this.state = prevState; - } - } - - // React may warn about cWM/cWRP/cWU methods being deprecated. - // Add a flag to suppress these warnings for this special case. - componentWillMount.__suppressDeprecationWarning = true; - componentWillReceiveProps.__suppressDeprecationWarning = true; - componentWillUpdate.__suppressDeprecationWarning = true; + }; - function polyfill(Component) { - var prototype = Component.prototype; + return WeekPicker; + }(_react.Component); - if (!prototype || !prototype.isReactComponent) { - throw new Error('Can only polyfill class components'); - } + var _initialiseProps = function _initialiseProps() { + var _this3 = this; - if ( - typeof Component.getDerivedStateFromProps !== 'function' && - typeof prototype.getSnapshotBeforeUpdate !== 'function' - ) { - return Component; - } + this.initValue = function (props) { + var value = props.value || props.defaultValue || ''; + var format = props.format; + if (value) { + if (typeof value == 'string') { + if ((0, _moment2["default"])(value, format).isValid()) { + value = (0, _moment2["default"])(value, format); + } else { + console.error('value is not in the correct format'); + value = ''; + } + } else if (value.format && value.isValid()) { + value = value; + } else { + console.error('value is not in the correct format'); + value = ''; + } + } - // If new component APIs are defined, "unsafe" lifecycles won't be called. - // Error if any of these lifecycles are present, - // Because they would work differently between older and newer (16.3+) versions of React. - var foundWillMountName = null; - var foundWillReceivePropsName = null; - var foundWillUpdateName = null; - if (typeof prototype.componentWillMount === 'function') { - foundWillMountName = 'componentWillMount'; - } else if (typeof prototype.UNSAFE_componentWillMount === 'function') { - foundWillMountName = 'UNSAFE_componentWillMount'; - } - if (typeof prototype.componentWillReceiveProps === 'function') { - foundWillReceivePropsName = 'componentWillReceiveProps'; - } else if (typeof prototype.UNSAFE_componentWillReceiveProps === 'function') { - foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps'; - } - if (typeof prototype.componentWillUpdate === 'function') { - foundWillUpdateName = 'componentWillUpdate'; - } else if (typeof prototype.UNSAFE_componentWillUpdate === 'function') { - foundWillUpdateName = 'UNSAFE_componentWillUpdate'; - } - if ( - foundWillMountName !== null || - foundWillReceivePropsName !== null || - foundWillUpdateName !== null - ) { - var componentName = Component.displayName || Component.name; - var newApiName = - typeof Component.getDerivedStateFromProps === 'function' - ? 'getDerivedStateFromProps()' - : 'getSnapshotBeforeUpdate()'; + return value; + }; - throw Error( - 'Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n' + - componentName + - ' uses ' + - newApiName + - ' but also contains the following legacy lifecycles:' + - (foundWillMountName !== null ? '\n ' + foundWillMountName : '') + - (foundWillReceivePropsName !== null - ? '\n ' + foundWillReceivePropsName - : '') + - (foundWillUpdateName !== null ? '\n ' + foundWillUpdateName : '') + - '\n\nThe above lifecycles should be removed. Learn more about this warning here:\n' + - 'https://fb.me/react-async-component-lifecycle-hooks' - ); - } + this.onChange = function (value) { + _this3.setState({ + value: value + }); + }; - // React <= 16.2 does not support static getDerivedStateFromProps. - // As a workaround, use cWM and cWRP to invoke the new static lifecycle. - // Newer versions of React will ignore these lifecycles if gDSFP exists. - if (typeof Component.getDerivedStateFromProps === 'function') { - prototype.componentWillMount = componentWillMount; - prototype.componentWillReceiveProps = componentWillReceiveProps; - } + this.onOpenChange = function (open) { + _this3.setState({ + open: open + }); + }; - // React <= 16.2 does not support getSnapshotBeforeUpdate. - // As a workaround, use cWU to invoke the new lifecycle. - // Newer versions of React will ignore that lifecycle if gSBU exists. - if (typeof prototype.getSnapshotBeforeUpdate === 'function') { - if (typeof prototype.componentDidUpdate !== 'function') { - throw new Error( - 'Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype' + this.dateRender = function (current) { + var selectedValue = _this3.state.value; + if (selectedValue && current.year() === selectedValue.year() && current.week() === selectedValue.week()) { + return _react2["default"].createElement( + "div", + { className: "rc-calendar-selected-day" }, + _react2["default"].createElement( + "div", + { className: "rc-calendar-date" }, + current.date() + ) ); } + return _react2["default"].createElement( + "div", + { className: "rc-calendar-date" }, + current.date() + ); + }; - prototype.componentWillUpdate = componentWillUpdate; + this.lastWeek = function () { + var value = _this3.props.value || now; + value.add(-1, "weeks"); + _this3.setState({ + value: value, + open: false + }); + }; - var componentDidUpdate = prototype.componentDidUpdate; + this.nextWeek = function () { + var value = _this3.props.value || now; + value.add(+1, "weeks"); + _this3.setState({ + value: value, + open: false + }); + }; - prototype.componentDidUpdate = function componentDidUpdatePolyfill( - prevProps, - prevState, - maybeSnapshot - ) { - // 16.3+ will not execute our will-update method; - // It will pass a snapshot value to did-update though. - // Older versions will require our polyfilled will-update value. - // We need to handle both cases, but can't just check for the presence of "maybeSnapshot", - // Because for <= 15.x versions this might be a "prevContext" object. - // We also can't just check "__reactInternalSnapshot", - // Because get-snapshot might return a falsy value. - // So check for the explicit __reactInternalSnapshotFlag flag to determine behavior. - var snapshot = this.__reactInternalSnapshotFlag - ? this.__reactInternalSnapshot - : maybeSnapshot; + this.nowWeek = function () { + var value = now; + _this3.setState({ + value: value, + open: false + }); + }; - componentDidUpdate.call(this, prevProps, prevState, snapshot); - }; - } + this.renderFooter = function () { + return _react2["default"].createElement( + "div", + { className: "week-calendar-footer", key: "footer" }, + _react2["default"].createElement( + "span", + { + className: "week-calendar-footer-button", + onClick: _this3.lastWeek.bind(_this3), + style: { 'float': 'left' } + }, + _this3.props.locale.lastWeek + ), + _react2["default"].createElement( + "span", + { + className: "week-calendar-footer-button", + onClick: _this3.nowWeek.bind(_this3) + }, + _this3.props.locale.nowWeek + ), + _react2["default"].createElement( + "span", + { + className: "week-calendar-footer-button", + onClick: _this3.nextWeek.bind(_this3), + style: { 'float': 'right' } + }, + _this3.props.locale.nextWeek + ) + ); + }; - return Component; - } + this.onTypeChange = function (type) { + _this3.setState({ + type: type + }); + }; + this.handleCalendarChange = function (value) { + _this3.setState({ + value: value && _extends(value, { _type: 'week' }) || value + }); + }; + this.onMouseLeave = function (e) { + _this3.setState({ + showClose: false + }); + }; + this.onMouseEnter = function (e) { + _this3.setState({ + showClose: true + }); + }; - /***/ }), - /* 15 */ - /***/ (function(module, exports, __webpack_require__) { + this.onClear = function (e) { + e && e.stopPropagation && e.stopPropagation(); + _this3.setState({ + value: '' + }); + _this3.props.onChange && _this3.props.onChange('', ''); + }; + }; - "use strict"; + WeekPicker.defaultProps = { + closeIcon: function closeIcon() { + return _react2["default"].createElement(_beeIcon2["default"], { type: "uf-close-c" }); + }, + renderIcon: function renderIcon() { + return _react2["default"].createElement(_beeIcon2["default"], { type: "uf-calendar" }); + }, + locale: _zh_CN2["default"], + showClose: true, + format: "YYYY-Wo" + }; + exports["default"] = WeekPicker; + module.exports = exports["default"]; + +/***/ }), +/* 593 */ +/***/ (function(module, exports, __webpack_require__) { + + "use strict"; Object.defineProperty(exports, "__esModule", { - value: true + value: true }); - var _Icon = __webpack_require__(554); + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _Icon2 = _interopRequireDefault(_Icon); + var _YearPanel = __webpack_require__(565); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var _YearPanel2 = _interopRequireDefault(_YearPanel); - exports["default"] = _Icon2["default"]; - module.exports = exports['default']; + var _tinperBeeCore = __webpack_require__(27); - /***/ }), - /* 16 */ - /***/ (function(module, exports, __webpack_require__) { + var _zh_CN = __webpack_require__(586); - "use strict"; - /* WEBPACK VAR INJECTION */(function(process) { + var _zh_CN2 = _interopRequireDefault(_zh_CN); - Object.defineProperty(exports, "__esModule", { - value: true - }); + var _react = __webpack_require__(1); - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + var _react2 = _interopRequireDefault(_react); - var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + var _reactDom = __webpack_require__(2); - exports.convertFieldsError = convertFieldsError; - exports.format = format; - exports.isEmptyValue = isEmptyValue; - exports.isEmptyObject = isEmptyObject; - exports.asyncMap = asyncMap; - exports.complementError = complementError; - exports.deepMerge = deepMerge; - /* eslint no-console:0 */ + var _reactDom2 = _interopRequireDefault(_reactDom); - var formatRegExp = /%[sdj%]/g; + var _Picker = __webpack_require__(575); - var warning = exports.warning = function warning() {}; + var _Picker2 = _interopRequireDefault(_Picker); - // don't print warning message when in production env or node runtime - if (process.env.NODE_ENV !== 'production' && typeof window !== 'undefined' && typeof document !== 'undefined') { - exports.warning = warning = function warning(type, errors) { - if (typeof console !== 'undefined' && console.warn) { - if (errors.every(function (e) { - return typeof e === 'string'; - })) { - console.warn(type, errors); - } - } - }; - } + var _beeFormControl = __webpack_require__(268); - function convertFieldsError(errors) { - if (!errors || !errors.length) return null; - var fields = {}; - errors.forEach(function (error) { - var field = error.field; - fields[field] = fields[field] || []; - fields[field].push(error); - }); - return fields; - } + var _beeFormControl2 = _interopRequireDefault(_beeFormControl); - function format() { - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } + var _beeInputGroup = __webpack_require__(581); - var i = 1; - var f = args[0]; - var len = args.length; - if (typeof f === 'function') { - return f.apply(null, args.slice(1)); - } - if (typeof f === 'string') { - var str = String(f).replace(formatRegExp, function (x) { - if (x === '%%') { - return '%'; - } - if (i >= len) { - return x; - } - switch (x) { - case '%s': - return String(args[i++]); - case '%d': - return Number(args[i++]); - case '%j': - try { - return JSON.stringify(args[i++]); - } catch (_) { - return '[Circular]'; - } - break; - default: - return x; - } - }); - for (var arg = args[i]; i < len; arg = args[++i]) { - str += ' ' + arg; - } - return str; - } - return f; - } + var _beeInputGroup2 = _interopRequireDefault(_beeInputGroup); - function isNativeStringType(type) { - return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'pattern'; - } + var _beeIcon = __webpack_require__(67); - function isEmptyValue(value, type) { - if (value === undefined || value === null) { - return true; - } - if (type === 'array' && Array.isArray(value) && !value.length) { - return true; - } - if (isNativeStringType(type) && typeof value === 'string' && !value) { - return true; - } - return false; - } + var _beeIcon2 = _interopRequireDefault(_beeIcon); + + var _classnames = __webpack_require__(5); + + var _classnames2 = _interopRequireDefault(_classnames); + + var _moment = __webpack_require__(423); + + var _moment2 = _interopRequireDefault(_moment); + + var _omit = __webpack_require__(288); - function isEmptyObject(obj) { - return Object.keys(obj).length === 0; - } + var _omit2 = _interopRequireDefault(_omit); - function asyncParallelArray(arr, func, callback) { - var results = []; - var total = 0; - var arrLength = arr.length; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - function count(errors) { - results.push.apply(results, errors); - total++; - if (total === arrLength) { - callback(results); - } - } + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - arr.forEach(function (a) { - func(a, count); - }); - } + function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure undefined"); } - function asyncSerialArray(arr, func, callback) { - var index = 0; - var arrLength = arr.length; + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - function next(errors) { - if (errors && errors.length) { - callback(errors); - return; - } - var original = index; - index = index + 1; - if (original < arrLength) { - func(arr[original], next); - } else { - callback([]); - } - } + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - next([]); - } + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - function flattenObjArr(objArr) { - var ret = []; - Object.keys(objArr).forEach(function (k) { - ret.push.apply(ret, objArr[k]); - }); - return ret; - } + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** + * Created by chief on 17/4/6. + */ - function asyncMap(objArr, option, func, callback) { - if (option.first) { - var flattenArr = flattenObjArr(objArr); - return asyncSerialArray(flattenArr, func, callback); - } - var firstFields = option.firstFields || []; - if (firstFields === true) { - firstFields = Object.keys(objArr); - } - var objArrKeys = Object.keys(objArr); - var objArrLength = objArrKeys.length; - var total = 0; - var results = []; - var pending = new Promise(function (resolve, reject) { - var next = function next(errors) { - results.push.apply(results, errors); - total++; - if (total === objArrLength) { - callback(results); - return results.length ? reject({ errors: results, fields: convertFieldsError(results) }) : resolve(); - } - }; - objArrKeys.forEach(function (key) { - var arr = objArr[key]; - if (firstFields.indexOf(key) !== -1) { - asyncSerialArray(arr, func, next); - } else { - asyncParallelArray(arr, func, next); - } - }); - }); - pending['catch'](function (e) { - return e; - }); - return pending; - } + //去掉focus报错 + _Picker2["default"].prototype.componentDidUpdate = function () {}; - function complementError(rule) { - return function (oe) { - if (oe && oe.message) { - oe.field = oe.field || rule.fullField; - return oe; + var YearPicker = function (_Component) { + _inherits(YearPicker, _Component); + + function YearPicker(props, context) { + _classCallCheck(this, YearPicker); + + var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); + + _initialiseProps.call(_this); + + _this.state = { + type: "year", + value: _this.initValue(props), + open: props.open || false, + showClose: false + }; + return _this; } - return { - message: typeof oe === 'function' ? oe() : oe, - field: oe.field || rule.fullField - }; - }; - } - function deepMerge(target, source) { - if (source) { - for (var s in source) { - if (source.hasOwnProperty(s)) { - var value = source[s]; - if ((typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object' && _typeof(target[s]) === 'object') { - target[s] = _extends({}, target[s], value); - } else { - target[s] = value; + YearPicker.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { + if ("value" in nextProps) { + this.setState({ + value: this.initValue(nextProps) + }); } - } - } - } - return target; - } - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) + if ("open" in nextProps) { + this.setState({ + open: nextProps.open + }); + } + if ("renderIcon" in nextProps) { + this.setState({ + renderIcon: nextProps.renderIcon + }); + } + }; - /***/ }), - /* 17 */ - /***/ (function(module, exports, __webpack_require__) { + YearPicker.prototype.render = function render() { + var _this2 = this; - "use strict"; + var state = this.state; + var props = this.props; + var showClose = props.showClose, + others = _objectWithoutProperties(props, ["showClose"]); - Object.defineProperty(exports, "__esModule", { - value: true - }); + var value = state.value; - var _inDOM = __webpack_require__(25); + var Calendar = _react2["default"].createElement(_YearPanel2["default"], _extends({ + prefixCls: 'rc-calendar-picker', + rootPrefixCls: 'rc-calendar' + }, props, { focus: function focus() {}, + value: this.state.value, + onSelect: this.onSelect, + showDateInput: true + })); + var classes = (0, _classnames2["default"])(props.className, "datepicker-container"); + return _react2["default"].createElement( + "div", + _extends({ className: classes + }, (0, _omit2["default"])(others, ['closeIcon', 'renderIcon', 'disabled', 'format', 'locale', 'placeholder'])), + _react2["default"].createElement( + _Picker2["default"], + _extends({ + animation: "slide-up" + }, props, { + onOpenChange: this.onOpenChange, + onChange: this.handleChange, + calendar: Calendar, + prefixCls: 'rc-calendar', + value: state.value, + open: this.state.open + }), + function (_ref) { + _objectDestructuringEmpty(_ref); - var _inDOM2 = _interopRequireDefault(_inDOM); + return _react2["default"].createElement( + _beeInputGroup2["default"], + { simple: true, className: "datepicker-input-group", + onMouseEnter: _this2.onMouseEnter, + onMouseLeave: _this2.onMouseLeave + }, + _react2["default"].createElement(_beeFormControl2["default"], { + ref: function ref(_ref2) { + return _this2.outInput = _ref2; + }, + placeholder: _this2.props.placeholder, + className: _this2.props.className, + disabled: props.disabled, + readOnly: true, + value: value && value.format(props.format) || "" + }), + showClose && _this2.state.value && _this2.state.showClose && !props.disabled ? _react2["default"].createElement( + _beeInputGroup2["default"].Button, + { shape: "border", + onClick: _this2.clear }, + props.closeIcon() + ) : _react2["default"].createElement( + _beeInputGroup2["default"].Button, + { shape: "border" }, + props.renderIcon() + ) + ); + } + ) + ); + }; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + return YearPicker; + }(_react.Component); - var on = function on() {}; - if (_inDOM2.default) { - on = function () { + var _initialiseProps = function _initialiseProps() { + var _this3 = this; - if (document.addEventListener) return function (node, eventName, handler, capture) { - return node.addEventListener(eventName, handler, capture || false); - };else if (document.attachEvent) return function (node, eventName, handler) { - return node.attachEvent('on' + eventName, handler); + this.initValue = function (props) { + var value = props.value || props.defaultValue; + if (value) { + if (typeof value == 'string') { + if ((0, _moment2["default"])(value).isValid()) { + value = (0, _moment2["default"])(value); + } else { + console.error('value is not in the correct format'); + value = ''; + } + } else if (value.format && value.isValid()) { + value = value; + } else { + console.error('value is not in the correct format'); + value = ''; + } + } + return value; }; - }(); - } - exports.default = on; - module.exports = exports['default']; + this.onChange = function (value) { + _this3.setState({ + value: value + }); + }; - /***/ }), - /* 18 */ - /***/ (function(module, exports) { + this.inputFocus = function () { + var self = _this3; + var input = document.querySelector('.rc-calendar-input'); + if (input) { + if (input.value) { + input.select(); + } else { + input.focus(); + } + input.onkeydown = function (e) { + if (e.keyCode == _tinperBeeCore.KeyCode.DELETE) { + input.value = ''; + self.props.onChange && self.props.onChange('', ''); + } else if (e.keyCode == _tinperBeeCore.KeyCode.ESC) { + self.setState({ + open: false + }); + var v = self.state.value; + self.props.onOpenChange && self.props.onOpenChange(false, v, v && v.format(self.props.format) || ''); + _reactDom2["default"].findDOMNode(self.outInput).focus(); // 按esc时候焦点回到input输入框 + } + }; + } + }; - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - "default": obj - }; - } + this.onOpenChange = function (open) { + var self = _this3; + _this3.setState({ + open: open + }); + if (open) { + setTimeout(function () { + self.inputFocus(); + }, 200); + } + }; - module.exports = _interopRequireDefault; + this.handleChange = function (value) { + var props = _this3.props; + _this3.setState({ + value: value && _extends(value, { _type: 'year' }) || value + }); + props.onChange && props.onChange(value, value && value.format(props.format) || ''); + }; - /***/ }), - /* 19 */ - /***/ (function(module, exports, __webpack_require__) { + this.onMouseLeave = function (e) { + _this3.setState({ + showClose: false + }); + }; - "use strict"; + this.onMouseEnter = function (e) { + _this3.setState({ + showClose: true + }); + }; + this.clear = function (e) { + e.stopPropagation(); + _this3.setState({ + value: '' + }); + _this3.props.onChange && _this3.props.onChange('', ''); + }; - Object.defineProperty(exports, "__esModule", { - value: true - }); + this.onSelect = function (value) { + var _props = _this3.props, + onSelect = _props.onSelect, + format = _props.format; - var _required = __webpack_require__(225); + _this3.setState({ + open: false + }); + onSelect && onSelect(value, value ? value.format(format) : ''); + _reactDom2["default"].findDOMNode(_this3.outInput).focus(); + }; + }; - var _required2 = _interopRequireDefault(_required); + YearPicker.defaultProps = { + closeIcon: function closeIcon() { + return _react2["default"].createElement(_beeIcon2["default"], { type: "uf-close-c" }); + }, + renderIcon: function renderIcon() { + return _react2["default"].createElement(_beeIcon2["default"], { type: "uf-calendar" }); + }, + disabled: false, + showClose: true, + locale: _zh_CN2["default"], + format: 'YYYY', + validatorFunc: function validatorFunc() { + return true; + } + }; - var _whitespace = __webpack_require__(610); + exports["default"] = YearPicker; + module.exports = exports["default"]; + +/***/ }), +/* 594 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - var _whitespace2 = _interopRequireDefault(_whitespace); + Object.defineProperty(exports, "__esModule", { + value: true + }); - var _type = __webpack_require__(611); + var _Select = __webpack_require__(595); - var _type2 = _interopRequireDefault(_type); + var _Select2 = _interopRequireDefault(_Select); - var _range = __webpack_require__(612); + var _Option = __webpack_require__(607); - var _range2 = _interopRequireDefault(_range); + var _Option2 = _interopRequireDefault(_Option); - var _enum = __webpack_require__(613); + var _PropTypes = __webpack_require__(611); - var _enum2 = _interopRequireDefault(_enum); + var _OptGroup = __webpack_require__(612); - var _pattern = __webpack_require__(614); + var _OptGroup2 = _interopRequireDefault(_OptGroup); - var _pattern2 = _interopRequireDefault(_pattern); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + _Select2["default"].Option = _Option2["default"]; + _Select2["default"].OptGroup = _OptGroup2["default"]; + exports["default"] = _Select2["default"]; + module.exports = exports['default']; + +/***/ }), +/* 595 */ +/***/ (function(module, exports, __webpack_require__) { + + "use strict"; - exports['default'] = { - required: _required2['default'], - whitespace: _whitespace2['default'], - type: _type2['default'], - range: _range2['default'], - 'enum': _enum2['default'], - pattern: _pattern2['default'] - }; + Object.defineProperty(exports, "__esModule", { + value: true + }); - /***/ }), - /* 20 */ - /***/ (function(module, exports, __webpack_require__) { + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - /* WEBPACK VAR INJECTION */(function(global, module) {/** - * Lodash (Custom Build) - * Build: `lodash modularize exports="npm" -o ./` - * Copyright JS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */ + var _react = __webpack_require__(1); - /** Used as the size to enable large array optimizations. */ - var LARGE_ARRAY_SIZE = 200; + var _react2 = _interopRequireDefault(_react); - /** Used to stand-in for `undefined` hash values. */ - var HASH_UNDEFINED = '__lodash_hash_undefined__'; + var _reactDom = __webpack_require__(2); - /** Used to compose bitmasks for value comparisons. */ - var COMPARE_PARTIAL_FLAG = 1, - COMPARE_UNORDERED_FLAG = 2; + var _reactDom2 = _interopRequireDefault(_reactDom); - /** Used as references for various `Number` constants. */ - var MAX_SAFE_INTEGER = 9007199254740991; + var _propTypes = __webpack_require__(6); - /** `Object#toString` result references. */ - var argsTag = '[object Arguments]', - arrayTag = '[object Array]', - asyncTag = '[object AsyncFunction]', - boolTag = '[object Boolean]', - dateTag = '[object Date]', - errorTag = '[object Error]', - funcTag = '[object Function]', - genTag = '[object GeneratorFunction]', - mapTag = '[object Map]', - numberTag = '[object Number]', - nullTag = '[object Null]', - objectTag = '[object Object]', - promiseTag = '[object Promise]', - proxyTag = '[object Proxy]', - regexpTag = '[object RegExp]', - setTag = '[object Set]', - stringTag = '[object String]', - symbolTag = '[object Symbol]', - undefinedTag = '[object Undefined]', - weakMapTag = '[object WeakMap]'; + var _propTypes2 = _interopRequireDefault(_propTypes); - var arrayBufferTag = '[object ArrayBuffer]', - dataViewTag = '[object DataView]', - float32Tag = '[object Float32Array]', - float64Tag = '[object Float64Array]', - int8Tag = '[object Int8Array]', - int16Tag = '[object Int16Array]', - int32Tag = '[object Int32Array]', - uint8Tag = '[object Uint8Array]', - uint8ClampedTag = '[object Uint8ClampedArray]', - uint16Tag = '[object Uint16Array]', - uint32Tag = '[object Uint32Array]'; + var _RcSelect = __webpack_require__(596); - /** - * Used to match `RegExp` - * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). - */ - var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; + var _RcSelect2 = _interopRequireDefault(_RcSelect); - /** Used to detect host constructors (Safari). */ - var reIsHostCtor = /^\[object .+?Constructor\]$/; + var _Option = __webpack_require__(607); - /** Used to detect unsigned integer values. */ - var reIsUint = /^(?:0|[1-9]\d*)$/; + var _Option2 = _interopRequireDefault(_Option); - /** Used to identify `toStringTag` values of typed arrays. */ - var typedArrayTags = {}; - typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = - typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = - typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = - typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = - typedArrayTags[uint32Tag] = true; - typedArrayTags[argsTag] = typedArrayTags[arrayTag] = - typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = - typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = - typedArrayTags[errorTag] = typedArrayTags[funcTag] = - typedArrayTags[mapTag] = typedArrayTags[numberTag] = - typedArrayTags[objectTag] = typedArrayTags[regexpTag] = - typedArrayTags[setTag] = typedArrayTags[stringTag] = - typedArrayTags[weakMapTag] = false; + var _OptGroup = __webpack_require__(612); - /** Detect free variable `global` from Node.js. */ - var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; + var _OptGroup2 = _interopRequireDefault(_OptGroup); - /** Detect free variable `self`. */ - var freeSelf = typeof self == 'object' && self && self.Object === Object && self; + var _classnames = __webpack_require__(5); - /** Used as a reference to the global object. */ - var root = freeGlobal || freeSelf || Function('return this')(); + var _classnames2 = _interopRequireDefault(_classnames); - /** Detect free variable `exports`. */ - var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - /** Detect free variable `module`. */ - var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - /** Detect the popular CommonJS extension `module.exports`. */ - var moduleExports = freeModule && freeModule.exports === freeExports; + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - /** Detect free variable `process` from Node.js. */ - var freeProcess = moduleExports && freeGlobal.process; + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - /** Used to access faster Node.js helpers. */ - var nodeUtil = (function() { - try { - return freeProcess && freeProcess.binding && freeProcess.binding('util'); - } catch (e) {} - }()); + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - /* Node.js helper references. */ - var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** + * This source code is quoted from rc-select. + * homepage: https://github.com/react-component/select + */ - /** - * A specialized version of `_.filter` for arrays without support for - * iteratee shorthands. - * - * @private - * @param {Array} [array] The array to iterate over. - * @param {Function} predicate The function invoked per iteration. - * @returns {Array} Returns the new filtered array. - */ - function arrayFilter(array, predicate) { - var index = -1, - length = array == null ? 0 : array.length, - resIndex = 0, - result = []; - while (++index < length) { - var value = array[index]; - if (predicate(value, index, array)) { - result[resIndex++] = value; - } + var SelectContext = { + antLocale: { + Select: _propTypes2["default"].any } - return result; - } + }; - /** - * Appends the elements of `values` to `array`. - * - * @private - * @param {Array} array The array to modify. - * @param {Array} values The values to append. - * @returns {Array} Returns `array`. - */ - function arrayPush(array, values) { - var index = -1, - length = values.length, - offset = array.length; + var defaultProps = { + clsPrefix: "u-select", + showSearch: false, + transitionName: "slide-up", + choiceTransitionName: "zoom", + enterKeyDown: true, + onDeselect: function onDeselect() {}, + onSelect: function onSelect() {} + }; - while (++index < length) { - array[offset + index] = values[index]; - } - return array; - } + var propTypes = { + clsPrefix: _propTypes2["default"].string, + className: _propTypes2["default"].string, + value: _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].any]), + defaultValue: _propTypes2["default"].oneOfType([_propTypes2["default"].node, _propTypes2["default"].array, _propTypes2["default"].any]), + size: _propTypes2["default"].oneOf(["default", "lg", "sm"]), + combobox: _propTypes2["default"].bool, + notFoundContent: _propTypes2["default"].oneOfType([_propTypes2["default"].node, _propTypes2["default"].array, _propTypes2["default"].any]), + showSearch: _propTypes2["default"].bool, + open: _propTypes2["default"].bool, + transitionName: _propTypes2["default"].string, + choiceTransitionName: _propTypes2["default"].string, + multiple: _propTypes2["default"].bool, + allowClear: _propTypes2["default"].bool, + filterOption: _propTypes2["default"].oneOfType([_propTypes2["default"].bool, _propTypes2["default"].func]), + tags: _propTypes2["default"].bool, + onSelect: _propTypes2["default"].func, + onDeselect: _propTypes2["default"].func, + onSearch: _propTypes2["default"].func, + placeholder: _propTypes2["default"].string, + dropdownMatchSelectWidth: _propTypes2["default"].bool, + optionFilterProp: _propTypes2["default"].string, + optionLabelProp: _propTypes2["default"].string, + disabled: _propTypes2["default"].bool, + defaultActiveFirstOption: _propTypes2["default"].bool, + labelInValue: _propTypes2["default"].bool, + getPopupContainer: _propTypes2["default"].func, + style: _propTypes2["default"].object, + dropdownStyle: _propTypes2["default"].object, + dropdownMenuStyle: _propTypes2["default"].object, + onChange: _propTypes2["default"].func, + scrollToEnd: _propTypes2["default"].func, + onKeyDown: _propTypes2["default"].func, + enterKeyDown: _propTypes2["default"].bool //是否启用 enter 和 space 键 + }; - /** - * A specialized version of `_.some` for arrays without support for iteratee - * shorthands. - * - * @private - * @param {Array} [array] The array to iterate over. - * @param {Function} predicate The function invoked per iteration. - * @returns {boolean} Returns `true` if any element passes the predicate check, - * else `false`. - */ - function arraySome(array, predicate) { - var index = -1, - length = array == null ? 0 : array.length; + var Select = function (_Component) { + _inherits(Select, _Component); - while (++index < length) { - if (predicate(array[index], index, array)) { - return true; - } - } - return false; - } + function Select(props) { + _classCallCheck(this, Select); - /** - * The base implementation of `_.times` without support for iteratee shorthands - * or max array length checks. - * - * @private - * @param {number} n The number of times to invoke `iteratee`. - * @param {Function} iteratee The function invoked per iteration. - * @returns {Array} Returns the array of results. - */ - function baseTimes(n, iteratee) { - var index = -1, - result = Array(n); + var _this = _possibleConstructorReturn(this, _Component.call(this, props)); - while (++index < n) { - result[index] = iteratee(index); - } - return result; - } + _this.calculationWidth = function () { + var lis = _this.selectDom.querySelectorAll('.u-select-selection-rendered ul li'); + var trueWidth = 0; + [].forEach.call(lis, function (li) { + trueWidth += li.clientWidth; + }); + if (trueWidth >= _this.state.selectDomWidth && lis.length > 0) { + _this.setState({ + maxTagCount: lis.length - 3 // 去掉一个选项、去掉...区域、去掉光标区域 + }); + } + }; - /** - * The base implementation of `_.unary` without support for storing metadata. - * - * @private - * @param {Function} func The function to cap arguments for. - * @returns {Function} Returns the new capped function. - */ - function baseUnary(func) { - return function(value) { - return func(value); - }; - } + _this.onSelect = function (value, option) { + var _this$props = _this.props, + noWarp = _this$props.noWarp, + multiple = _this$props.multiple, + onSelect = _this$props.onSelect, + maxTagCount = _this$props.maxTagCount; - /** - * Checks if a `cache` value for `key` exists. - * - * @private - * @param {Object} cache The cache to query. - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ - function cacheHas(cache, key) { - return cache.has(key); - } + if (noWarp && multiple && !maxTagCount) { + _this.noWarpTimer && clearTimeout(_this.noWarpTimer); + _this.noWarpTimer = setTimeout(function () { + _this.calculationWidth(); + }); + } + onSelect(value, option); + }; - /** - * Gets the value at `key` of `object`. - * - * @private - * @param {Object} [object] The object to query. - * @param {string} key The key of the property to get. - * @returns {*} Returns the property value. - */ - function getValue(object, key) { - return object == null ? undefined : object[key]; - } + _this.onDeselect = function (value, option) { + var _this$props2 = _this.props, + noWarp = _this$props2.noWarp, + multiple = _this$props2.multiple, + onDeselect = _this$props2.onDeselect, + maxTagCount = _this$props2.maxTagCount; - /** - * Converts `map` to its key-value pairs. - * - * @private - * @param {Object} map The map to convert. - * @returns {Array} Returns the key-value pairs. - */ - function mapToArray(map) { - var index = -1, - result = Array(map.size); + if (noWarp && multiple && !maxTagCount) { + _this.noWarpTimer && clearTimeout(_this.noWarpTimer); + _this.noWarpTimer = setTimeout(function () { + _this.calculationWidth(); + }); + } + onDeselect(value, option); + }; - map.forEach(function(value, key) { - result[++index] = [key, value]; - }); - return result; - } + _this.state = { + maxTagCount: props.maxTagCount + }; + return _this; + } - /** - * Creates a unary function that invokes `func` with its argument transformed. - * - * @private - * @param {Function} func The function to wrap. - * @param {Function} transform The argument transform. - * @returns {Function} Returns the new function. - */ - function overArg(func, transform) { - return function(arg) { - return func(transform(arg)); + Select.prototype.componentDidMount = function componentDidMount() { + if (this.props.noWarp) { + this.selectDom = _reactDom2["default"].findDOMNode(this.select); + var selectDomWidth = this.selectDom.clientWidth - 40; + this.setState({ + selectDomWidth: selectDomWidth + }); + } }; - } - - /** - * Converts `set` to an array of its values. - * - * @private - * @param {Object} set The set to convert. - * @returns {Array} Returns the values. - */ - function setToArray(set) { - var index = -1, - result = Array(set.size); - set.forEach(function(value) { - result[++index] = value; - }); - return result; - } + Select.prototype.render = function render() { + var _classNames, + _this2 = this; - /** Used for built-in method references. */ - var arrayProto = Array.prototype, - funcProto = Function.prototype, - objectProto = Object.prototype; + var _props = this.props, + clsPrefix = _props.clsPrefix, + _props$className = _props.className, + className = _props$className === undefined ? "" : _props$className, + size = _props.size, + data = _props.data, + showSearch = _props.showSearch, + combobox = _props.combobox, + noWarp = _props.noWarp, + _props$style = _props.style, + style = _props$style === undefined ? {} : _props$style; + var _props2 = this.props, + _props2$notFoundConte = _props2.notFoundContent, + notFoundContent = _props2$notFoundConte === undefined ? "Not Found" : _props2$notFoundConte, + optionLabelProp = _props2.optionLabelProp; - /** Used to detect overreaching core-js shims. */ - var coreJsData = root['__core-js_shared__']; - /** Used to resolve the decompiled source of functions. */ - var funcToString = funcProto.toString; + var cls = (0, _classnames2["default"])((_classNames = {}, _defineProperty(_classNames, clsPrefix + "-lg", size === "lg"), _defineProperty(_classNames, clsPrefix + "-sm", size === "sm"), _defineProperty(_classNames, clsPrefix + "-show-search", showSearch), _defineProperty(_classNames, clsPrefix + "-nowarp", noWarp), _classNames), className); - /** Used to check objects for own properties. */ - var hasOwnProperty = objectProto.hasOwnProperty; + var antLocale = this.context.antLocale; - /** Used to detect methods masquerading as native. */ - var maskSrcKey = (function() { - var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); - return uid ? ('Symbol(src)_1.' + uid) : ''; - }()); + if (antLocale && antLocale.Select) { + notFoundContent = "notFoundContent" in this.props ? notFoundContent : antLocale.Select.notFoundContent; + } - /** - * Used to resolve the - * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) - * of values. - */ - var nativeObjectToString = objectProto.toString; + if (combobox) { + notFoundContent = null; + // children 带 dom 结构时,无法填入输入框 + optionLabelProp = optionLabelProp || "value"; + } + if (data) { + data.map(function (item) { + return _react2["default"].createElement( + _Option2["default"], + { value: item.value }, + item.key + ); + }); + } + var styles = _extends({}, style); + if (noWarp && this.state.selectDomWidth) { + styles['width'] = this.state.selectDomWidth + 40; + } + return data ? _react2["default"].createElement( + _RcSelect2["default"], + _extends({}, this.props, { + style: styles, + className: cls, + optionLabelProp: optionLabelProp || "children", + notFoundContent: notFoundContent, + onSelect: this.onSelect, + onDeselect: this.onDeselect, + ref: function ref(_ref) { + return _this2.select = _ref; + }, + maxTagCount: this.state.maxTagCount + }), + data.map(function (item) { + return _react2["default"].createElement( + _Option2["default"], + { key: item.value, value: item.value, disabled: item.disabled ? true : false }, + item.key + ); + }) + ) : _react2["default"].createElement(_RcSelect2["default"], _extends({}, this.props, { + style: styles, + className: cls, + optionLabelProp: optionLabelProp || "children", + notFoundContent: notFoundContent, + onSelect: this.onSelect, + onDeselect: this.onDeselect, + ref: function ref(_ref2) { + return _this2.select = _ref2; + }, + maxTagCount: this.state.maxTagCount + })); + }; - /** Used to detect if a method is native. */ - var reIsNative = RegExp('^' + - funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') - .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' - ); + return Select; + }(_react.Component); - /** Built-in value references. */ - var Buffer = moduleExports ? root.Buffer : undefined, - Symbol = root.Symbol, - Uint8Array = root.Uint8Array, - propertyIsEnumerable = objectProto.propertyIsEnumerable, - splice = arrayProto.splice, - symToStringTag = Symbol ? Symbol.toStringTag : undefined; + Select.context = SelectContext; + Select.propTypes = propTypes; + Select.defaultProps = defaultProps; + Select.Option = _Option2["default"]; + Select.OptGroup = _OptGroup2["default"]; - /* Built-in method references for those with the same name as other `lodash` methods. */ - var nativeGetSymbols = Object.getOwnPropertySymbols, - nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined, - nativeKeys = overArg(Object.keys, Object); + exports["default"] = Select; + module.exports = exports["default"]; + +/***/ }), +/* 596 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - /* Built-in method references that are verified to be native. */ - var DataView = getNative(root, 'DataView'), - Map = getNative(root, 'Map'), - Promise = getNative(root, 'Promise'), - Set = getNative(root, 'Set'), - WeakMap = getNative(root, 'WeakMap'), - nativeCreate = getNative(Object, 'create'); + Object.defineProperty(exports, "__esModule", { + value: true + }); - /** Used to detect maps, sets, and weakmaps. */ - var dataViewCtorString = toSource(DataView), - mapCtorString = toSource(Map), - promiseCtorString = toSource(Promise), - setCtorString = toSource(Set), - weakMapCtorString = toSource(WeakMap); + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - /** Used to convert symbols to primitives and strings. */ - var symbolProto = Symbol ? Symbol.prototype : undefined, - symbolValueOf = symbolProto ? symbolProto.valueOf : undefined; + var _react = __webpack_require__(1); - /** - * Creates a hash object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ - function Hash(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; + var _react2 = _interopRequireDefault(_react); - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } - } + var _reactDom = __webpack_require__(2); - /** - * Removes all key-value entries from the hash. - * - * @private - * @name clear - * @memberOf Hash - */ - function hashClear() { - this.__data__ = nativeCreate ? nativeCreate(null) : {}; - this.size = 0; - } + var _reactDom2 = _interopRequireDefault(_reactDom); - /** - * Removes `key` and its value from the hash. - * - * @private - * @name delete - * @memberOf Hash - * @param {Object} hash The hash to modify. - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ - function hashDelete(key) { - var result = this.has(key) && delete this.__data__[key]; - this.size -= result ? 1 : 0; - return result; - } + var _reactLifecyclesCompat = __webpack_require__(81); - /** - * Gets the hash value for `key`. - * - * @private - * @name get - * @memberOf Hash - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ - function hashGet(key) { - var data = this.__data__; - if (nativeCreate) { - var result = data[key]; - return result === HASH_UNDEFINED ? undefined : result; - } - return hasOwnProperty.call(data, key) ? data[key] : undefined; - } + var _tinperBeeCore = __webpack_require__(27); - /** - * Checks if a hash value for `key` exists. - * - * @private - * @name has - * @memberOf Hash - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ - function hashHas(key) { - var data = this.__data__; - return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key); - } + var _classnames2 = __webpack_require__(5); - /** - * Sets the hash `key` to `value`. - * - * @private - * @name set - * @memberOf Hash - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the hash instance. - */ - function hashSet(key, value) { - var data = this.__data__; - this.size += this.has(key) ? 0 : 1; - data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; - return this; - } + var _classnames3 = _interopRequireDefault(_classnames2); - // Add methods to `Hash`. - Hash.prototype.clear = hashClear; - Hash.prototype['delete'] = hashDelete; - Hash.prototype.get = hashGet; - Hash.prototype.has = hashHas; - Hash.prototype.set = hashSet; + var _beeAnimate = __webpack_require__(57); - /** - * Creates an list cache object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ - function ListCache(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; + var _beeAnimate2 = _interopRequireDefault(_beeAnimate); - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } - } + var _componentClasses = __webpack_require__(47); - /** - * Removes all key-value entries from the list cache. - * - * @private - * @name clear - * @memberOf ListCache - */ - function listCacheClear() { - this.__data__ = []; - this.size = 0; - } + var _componentClasses2 = _interopRequireDefault(_componentClasses); - /** - * Removes `key` and its value from the list cache. - * - * @private - * @name delete - * @memberOf ListCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ - function listCacheDelete(key) { - var data = this.__data__, - index = assocIndexOf(data, key); + var _rcMenu = __webpack_require__(597); - if (index < 0) { - return false; - } - var lastIndex = data.length - 1; - if (index == lastIndex) { - data.pop(); - } else { - splice.call(data, index, 1); - } - --this.size; - return true; - } + var _MenuItem = __webpack_require__(604); - /** - * Gets the list cache value for `key`. - * - * @private - * @name get - * @memberOf ListCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ - function listCacheGet(key) { - var data = this.__data__, - index = assocIndexOf(data, key); + var _MenuItem2 = _interopRequireDefault(_MenuItem); - return index < 0 ? undefined : data[index][1]; - } + var _warning = __webpack_require__(32); - /** - * Checks if a list cache value for `key` exists. - * - * @private - * @name has - * @memberOf ListCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ - function listCacheHas(key) { - return assocIndexOf(this.__data__, key) > -1; - } + var _warning2 = _interopRequireDefault(_warning); - /** - * Sets the list cache `key` to `value`. - * - * @private - * @name set - * @memberOf ListCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the list cache instance. - */ - function listCacheSet(key, value) { - var data = this.__data__, - index = assocIndexOf(data, key); + var _Option = __webpack_require__(607); - if (index < 0) { - ++this.size; - data.push([key, value]); - } else { - data[index][1] = value; - } - return this; - } + var _Option2 = _interopRequireDefault(_Option); - // Add methods to `ListCache`. - ListCache.prototype.clear = listCacheClear; - ListCache.prototype['delete'] = listCacheDelete; - ListCache.prototype.get = listCacheGet; - ListCache.prototype.has = listCacheHas; - ListCache.prototype.set = listCacheSet; + var _omit = __webpack_require__(288); - /** - * Creates a map cache object to store key-value pairs. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ - function MapCache(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; + var _omit2 = _interopRequireDefault(_omit); - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } - } + var _util = __webpack_require__(608); - /** - * Removes all key-value entries from the map. - * - * @private - * @name clear - * @memberOf MapCache - */ - function mapCacheClear() { - this.size = 0; - this.__data__ = { - 'hash': new Hash, - 'map': new (Map || ListCache), - 'string': new Hash - }; - } + var _SelectTrigger = __webpack_require__(609); - /** - * Removes `key` and its value from the map. - * - * @private - * @name delete - * @memberOf MapCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ - function mapCacheDelete(key) { - var result = getMapData(this, key)['delete'](key); - this.size -= result ? 1 : 0; - return result; - } + var _SelectTrigger2 = _interopRequireDefault(_SelectTrigger); - /** - * Gets the map value for `key`. - * - * @private - * @name get - * @memberOf MapCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ - function mapCacheGet(key) { - return getMapData(this, key).get(key); - } + var _PropTypes = __webpack_require__(611); - /** - * Checks if a map value for `key` exists. - * - * @private - * @name has - * @memberOf MapCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ - function mapCacheHas(key) { - return getMapData(this, key).has(key); - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - /** - * Sets the map `key` to `value`. - * - * @private - * @name set - * @memberOf MapCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the map cache instance. - */ - function mapCacheSet(key, value) { - var data = getMapData(this, key), - size = data.size; + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - data.set(key, value); - this.size += data.size == size ? 0 : 1; - return this; - } + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - // Add methods to `MapCache`. - MapCache.prototype.clear = mapCacheClear; - MapCache.prototype['delete'] = mapCacheDelete; - MapCache.prototype.get = mapCacheGet; - MapCache.prototype.has = mapCacheHas; - MapCache.prototype.set = mapCacheSet; + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - /** - * - * Creates an array cache object to store unique values. - * - * @private - * @constructor - * @param {Array} [values] The values to cache. - */ - function SetCache(values) { - var index = -1, - length = values == null ? 0 : values.length; + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - this.__data__ = new MapCache; - while (++index < length) { - this.add(values[index]); + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** + * This source code is quoted from rc-select. + * homepage: https://github.com/react-component/select + */ + + + function noop() {} + + function chaining() { + for (var _len = arguments.length, fns = Array(_len), _key = 0; _key < _len; _key++) { + fns[_key] = arguments[_key]; } - } - /** - * Adds `value` to the array cache. - * - * @private - * @name add - * @memberOf SetCache - * @alias push - * @param {*} value The value to cache. - * @returns {Object} Returns the cache instance. - */ - function setCacheAdd(value) { - this.__data__.set(value, HASH_UNDEFINED); - return this; - } + return function () { + for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + args[_key2] = arguments[_key2]; + } - /** - * Checks if `value` is in the array cache. - * - * @private - * @name has - * @memberOf SetCache - * @param {*} value The value to search for. - * @returns {number} Returns `true` if `value` is found, else `false`. - */ - function setCacheHas(value) { - return this.__data__.has(value); + // eslint-disable-line + // eslint-disable-line + for (var i = 0; i < fns.length; i++) { + if (fns[i] && typeof fns[i] === 'function') { + fns[i].apply(this, args); + } + } + }; } - // Add methods to `SetCache`. - SetCache.prototype.add = SetCache.prototype.push = setCacheAdd; - SetCache.prototype.has = setCacheHas; + var Select = function (_React$Component) { + _inherits(Select, _React$Component); - /** - * Creates a stack cache object to store key-value pairs. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ - function Stack(entries) { - var data = this.__data__ = new ListCache(entries); - this.size = data.size; - } + function Select(props) { + _classCallCheck(this, Select); - /** - * Removes all key-value entries from the stack. - * - * @private - * @name clear - * @memberOf Stack - */ - function stackClear() { - this.__data__ = new ListCache; - this.size = 0; - } + var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); - /** - * Removes `key` and its value from the stack. - * - * @private - * @name delete - * @memberOf Stack - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ - function stackDelete(key) { - var data = this.__data__, - result = data['delete'](key); + _initialiseProps.call(_this); - this.size = data.size; - return result; - } + var optionsInfo = Select.getOptionsInfoFromProps(props); + _this.state = { + value: Select.getValueFromProps(props, true), // true: use default value + inputValue: props.combobox ? Select.getInputValueForCombobox(props, optionsInfo, true // use default value + ) : '', + open: props.defaultOpen, + optionsInfo: optionsInfo, + // a flag for aviod redundant getOptionsInfoFromProps call + skipBuildOptionsInfo: true + }; - /** - * Gets the stack value for `key`. - * - * @private - * @name get - * @memberOf Stack - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ - function stackGet(key) { - return this.__data__.get(key); - } + _this.saveInputRef = (0, _util.saveRef)(_this, 'inputRef'); + _this.saveInputMirrorRef = (0, _util.saveRef)(_this, 'inputMirrorRef'); + _this.saveTopCtrlRef = (0, _util.saveRef)(_this, 'topCtrlRef'); + _this.saveSelectTriggerRef = (0, _util.saveRef)(_this, 'selectTriggerRef'); + _this.saveRootRef = (0, _util.saveRef)(_this, 'rootRef'); + _this.saveSelectionRef = (0, _util.saveRef)(_this, 'selectionRef'); + return _this; + } - /** - * Checks if a stack value for `key` exists. - * - * @private - * @name has - * @memberOf Stack - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ - function stackHas(key) { - return this.__data__.has(key); - } + Select.prototype.componentDidMount = function componentDidMount() { + if (this.props.autoFocus) { + this.focus(); + } + }; - /** - * Sets the stack `key` to `value`. - * - * @private - * @name set - * @memberOf Stack - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the stack cache instance. - */ - function stackSet(key, value) { - var data = this.__data__; - if (data instanceof ListCache) { - var pairs = data.__data__; - if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) { - pairs.push([key, value]); - this.size = ++data.size; - return this; + Select.prototype.componentDidUpdate = function componentDidUpdate() { + if ((0, _util.isMultipleOrTags)(this.props)) { + var inputNode = this.getInputDOMNode(); + var mirrorNode = this.getInputMirrorDOMNode(); + if (inputNode.value) { + inputNode.style.width = ''; + inputNode.style.width = mirrorNode.clientWidth + 'px'; + } else { + inputNode.style.width = ''; + } } - data = this.__data__ = new MapCache(pairs); - } - data.set(key, value); - this.size = data.size; - return this; - } + this.forcePopupAlign(); + }; - // Add methods to `Stack`. - Stack.prototype.clear = stackClear; - Stack.prototype['delete'] = stackDelete; - Stack.prototype.get = stackGet; - Stack.prototype.has = stackHas; - Stack.prototype.set = stackSet; + Select.prototype.componentWillUnmount = function componentWillUnmount() { + this.clearFocusTime(); + this.clearBlurTime(); + if (this.dropdownContainer) { + _reactDom2["default"].unmountComponentAtNode(this.dropdownContainer); + document.body.removeChild(this.dropdownContainer); + this.dropdownContainer = null; + } + }; - /** - * Creates an array of the enumerable property names of the array-like `value`. - * - * @private - * @param {*} value The value to query. - * @param {boolean} inherited Specify returning inherited property names. - * @returns {Array} Returns the array of property names. - */ - function arrayLikeKeys(value, inherited) { - var isArr = isArray(value), - isArg = !isArr && isArguments(value), - isBuff = !isArr && !isArg && isBuffer(value), - isType = !isArr && !isArg && !isBuff && isTypedArray(value), - skipIndexes = isArr || isArg || isBuff || isType, - result = skipIndexes ? baseTimes(value.length, String) : [], - length = result.length; + // combobox ignore - for (var key in value) { - if ((inherited || hasOwnProperty.call(value, key)) && - !(skipIndexes && ( - // Safari 9 has enumerable `arguments.length` in strict mode. - key == 'length' || - // Node.js 0.10 has enumerable non-index properties on buffers. - (isBuff && (key == 'offset' || key == 'parent')) || - // PhantomJS 2 has enumerable non-index properties on typed arrays. - (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) || - // Skip index properties. - isIndex(key, length) - ))) { - result.push(key); + + Select.prototype.focus = function focus() { + if ((0, _util.isSingleMode)(this.props)) { + this.selectionRef.focus(); + } else { + this.getInputDOMNode().focus(); } - } - return result; - } + }; - /** - * Gets the index at which the `key` is found in `array` of key-value pairs. - * - * @private - * @param {Array} array The array to inspect. - * @param {*} key The key to search for. - * @returns {number} Returns the index of the matched value, else `-1`. - */ - function assocIndexOf(array, key) { - var length = array.length; - while (length--) { - if (eq(array[length][0], key)) { - return length; + Select.prototype.blur = function blur() { + if ((0, _util.isSingleMode)(this.props)) { + this.selectionRef.blur(); + } else { + this.getInputDOMNode().blur(); } - } - return -1; - } + }; - /** - * The base implementation of `getAllKeys` and `getAllKeysIn` which uses - * `keysFunc` and `symbolsFunc` to get the enumerable property names and - * symbols of `object`. - * - * @private - * @param {Object} object The object to query. - * @param {Function} keysFunc The function to get the keys of `object`. - * @param {Function} symbolsFunc The function to get the symbols of `object`. - * @returns {Array} Returns the array of property names and symbols. - */ - function baseGetAllKeys(object, keysFunc, symbolsFunc) { - var result = keysFunc(object); - return isArray(object) ? result : arrayPush(result, symbolsFunc(object)); - } + /** + * noCheck 判断输入的值是否不需要匹配option + */ - /** - * The base implementation of `getTag` without fallbacks for buggy environments. - * - * @private - * @param {*} value The value to query. - * @returns {string} Returns the `toStringTag`. - */ - function baseGetTag(value) { - if (value == null) { - return value === undefined ? undefinedTag : nullTag; - } - return (symToStringTag && symToStringTag in Object(value)) - ? getRawTag(value) - : objectToString(value); - } - /** - * The base implementation of `_.isArguments`. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an `arguments` object, - */ - function baseIsArguments(value) { - return isObjectLike(value) && baseGetTag(value) == argsTag; - } + Select.prototype.renderClear = function renderClear() { + var _props = this.props, + prefixCls = _props.prefixCls, + allowClear = _props.allowClear, + clearIcon = _props.clearIcon; + var _state = this.state, + value = _state.value, + inputValue = _state.inputValue; - /** - * The base implementation of `_.isEqual` which supports partial comparisons - * and tracks traversed objects. - * - * @private - * @param {*} value The value to compare. - * @param {*} other The other value to compare. - * @param {boolean} bitmask The bitmask flags. - * 1 - Unordered comparison - * 2 - Partial comparison - * @param {Function} [customizer] The function to customize comparisons. - * @param {Object} [stack] Tracks traversed `value` and `other` objects. - * @returns {boolean} Returns `true` if the values are equivalent, else `false`. - */ - function baseIsEqual(value, other, bitmask, customizer, stack) { - if (value === other) { - return true; - } - if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) { - return value !== value && other !== other; - } - return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack); - } + var clear = _react2["default"].createElement( + 'span', + _extends({ + key: 'clear', + className: prefixCls + '-selection-clear', + onMouseDown: _util.preventDefaultEvent, + style: _util.UNSELECTABLE_STYLE + }, _util.UNSELECTABLE_ATTRIBUTE, { + onClick: this.onClearSelection + }), + clearIcon || _react2["default"].createElement('i', { className: prefixCls + '-selection-clear-icon' }) + ); + if (!allowClear) { + return null; + } + if ((0, _util.isCombobox)(this.props)) { + if (inputValue) { + return clear; + } + return null; + } + if (inputValue || value.length) { + return clear; + } + return null; + }; - /** - * A specialized version of `baseIsEqual` for arrays and objects which performs - * deep comparisons and tracks traversed objects enabling objects with circular - * references to be compared. - * - * @private - * @param {Object} object The object to compare. - * @param {Object} other The other object to compare. - * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. - * @param {Function} customizer The function to customize comparisons. - * @param {Function} equalFunc The function to determine equivalents of values. - * @param {Object} [stack] Tracks traversed `object` and `other` objects. - * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. - */ - function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) { - var objIsArr = isArray(object), - othIsArr = isArray(other), - objTag = objIsArr ? arrayTag : getTag(object), - othTag = othIsArr ? arrayTag : getTag(other); + Select.prototype.render = function render() { + var _rootCls; - objTag = objTag == argsTag ? objectTag : objTag; - othTag = othTag == argsTag ? objectTag : othTag; + var props = this.props; + var multiple = (0, _util.isMultipleOrTags)(props); + var state = this.state; + var className = props.className, + disabled = props.disabled, + prefixCls = props.prefixCls, + inputIcon = props.inputIcon; - var objIsObj = objTag == objectTag, - othIsObj = othTag == objectTag, - isSameTag = objTag == othTag; + var ctrlNode = this.renderTopControlNode(); + var open = this.state.open; - if (isSameTag && isBuffer(object)) { - if (!isBuffer(other)) { - return false; + if (open) { + this._options = this.renderFilterOptions(); } - objIsArr = true; - objIsObj = false; + var realOpen = this.getRealOpenState(); + var options = this._options || []; + var dataOrAriaAttributeProps = {}; + var customProps = _extends({}, (0, _omit2["default"])(props, ['transitionName', 'choiceTransitionName', 'optionLabelProp', 'notFoundContent', 'clsPrefix', 'prefixCls', 'placeholder', 'dropdownStyle', 'dropdownMenuStyle', 'optionFilterProp', 'showAction', 'tokenSeparators', 'showSearch', 'allowClear', 'enterKeyDown', 'defaultOpen', 'labelInValue', 'defaultActiveFirstOption', 'onSearch', 'onDeselect', 'onInputKeyDown', 'showArrow', 'dropdownMatchSelectWidth', 'autoClearSearchValue', 'searchPlaceholder', 'scrollToEnd', 'filterOption', 'backfill', 'tags', 'combobox', 'supportWrite', 'onChange', 'onFocus', 'onBlur', 'onSelect', 'onSearch', 'onDeselect', 'onInputKeyDown', 'onKeyDown'])); + for (var key in props) { + if (Object.prototype.hasOwnProperty.call(props, key) && (key.substr(0, 5) === 'data-' || key.substr(0, 5) === 'aria-' || key === 'role')) { + dataOrAriaAttributeProps[key] = props[key]; + } + } + var extraSelectionProps = _extends({}, dataOrAriaAttributeProps); + if (!(0, _util.isMultipleOrTagsOrCombobox)(props)) { + extraSelectionProps = _extends({}, extraSelectionProps, { + onKeyDown: this.onKeyDown, + tabIndex: props.disabled ? -1 : 0 + }); + } + var rootCls = (_rootCls = {}, _defineProperty(_rootCls, className, !!className), _defineProperty(_rootCls, prefixCls, 1), _defineProperty(_rootCls, prefixCls + '-open', open), _defineProperty(_rootCls, prefixCls + '-focused', open || !!this._focused), _defineProperty(_rootCls, prefixCls + '-combobox', (0, _util.isCombobox)(props)), _defineProperty(_rootCls, prefixCls + '-disabled', disabled), _defineProperty(_rootCls, prefixCls + '-enabled', !disabled), _defineProperty(_rootCls, prefixCls + '-allow-clear', !!props.allowClear), _defineProperty(_rootCls, prefixCls + '-no-arrow', !props.showArrow), _rootCls); + return _react2["default"].createElement( + _SelectTrigger2["default"], + { + open: props.open, + onPopupFocus: this.onPopupFocus, + onMouseEnter: this.props.onMouseEnter, + onMouseLeave: this.props.onMouseLeave, + dropdownAlign: props.dropdownAlign, + dropdownClassName: props.dropdownClassName, + dropdownMatchSelectWidth: props.dropdownMatchSelectWidth, + defaultActiveFirstOption: props.defaultActiveFirstOption, + dropdownMenuStyle: props.dropdownMenuStyle, + transitionName: props.transitionName, + animation: props.animation, + prefixCls: props.prefixCls, + dropdownStyle: props.dropdownStyle, + combobox: props.combobox, + showSearch: props.showSearch, + options: options, + multiple: multiple, + disabled: disabled, + visible: realOpen, + inputValue: state.inputValue, + value: state.value, + backfillValue: state.backfillValue, + firstActiveValue: props.firstActiveValue, + onDropdownVisibleChange: this.onDropdownVisibleChange, + getPopupContainer: props.getPopupContainer, + onMenuSelect: this.onMenuSelect, + onMenuDeselect: this.onMenuDeselect, + onPopupScroll: props.onPopupScroll, + showAction: props.showAction, + ref: this.saveSelectTriggerRef, + clsPrefix: props.clsPrefix + '-dropdown', + menuItemSelectedIcon: props.menuItemSelectedIcon, + popData: props.popData + }, + _react2["default"].createElement( + 'div', + _extends({}, customProps, { + id: props.id, + style: props.style, + ref: this.saveRootRef, + onBlur: this.onOuterBlur, + onFocus: this.onOuterFocus, + onClick: this.onOuterClick //sp + , className: (0, _classnames3["default"])(rootCls), + onMouseDown: this.markMouseDown, + onMouseUp: this.markMouseLeave, + onMouseOut: this.markMouseLeave + }), + _react2["default"].createElement( + 'div', + _extends({ + ref: this.saveSelectionRef, + key: 'selection', + className: prefixCls + '-selection\n ' + prefixCls + '-selection--' + (multiple ? 'multiple' : 'single'), + role: 'combobox', + 'aria-autocomplete': 'list', + 'aria-haspopup': 'true', + 'aria-expanded': realOpen + }, extraSelectionProps), + ctrlNode, + this.renderClear(), + !props.showArrow ? null : //sp + _react2["default"].createElement( + 'span', + _extends({ + key: 'arrow', + className: prefixCls + '-arrow', + style: _util.UNSELECTABLE_STYLE + }, _util.UNSELECTABLE_ATTRIBUTE, { + onClick: this.onArrowClick + }), + inputIcon || _react2["default"].createElement('i', { className: prefixCls + '-arrow-icon' }) + ) + ) + ) + ); + }; + + return Select; + }(_react2["default"].Component); + + Select.propTypes = _PropTypes.SelectPropTypes; + Select.defaultProps = { + prefixCls: 'u-select', + defaultOpen: false, + labelInValue: false, + defaultActiveFirstOption: true, + showSearch: true, + allowClear: false, + placeholder: '', + onChange: noop, + onFocus: noop, + onBlur: noop, + onSelect: noop, + onSearch: noop, + onDeselect: noop, + onInputKeyDown: noop, + showArrow: true, + dropdownMatchSelectWidth: true, + dropdownStyle: {}, + dropdownMenuStyle: {}, + optionFilterProp: 'value', + optionLabelProp: 'value', + notFoundContent: 'Not Found', + backfill: false, + showAction: ['click'], + tokenSeparators: [], + autoClearSearchValue: true, + onKeyDown: noop + }; + + Select.getDerivedStateFromProps = function (nextProps, prevState) { + var optionsInfo = prevState.skipBuildOptionsInfo ? prevState.optionsInfo : Select.getOptionsInfoFromProps(nextProps, prevState); + + var newState = { + optionsInfo: optionsInfo, + skipBuildOptionsInfo: false + }; + + if ('open' in nextProps) { + newState.open = nextProps.open; } - if (isSameTag && !objIsObj) { - stack || (stack = new Stack); - return (objIsArr || isTypedArray(object)) - ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) - : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack); + + if ('value' in nextProps) { + var value = Select.getValueFromProps(nextProps); + newState.value = value; + if (nextProps.combobox) { + newState.inputValue = Select.getInputValueForCombobox(nextProps, optionsInfo); + } } - if (!(bitmask & COMPARE_PARTIAL_FLAG)) { - var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'), - othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__'); + return newState; + }; - if (objIsWrapped || othIsWrapped) { - var objUnwrapped = objIsWrapped ? object.value() : object, - othUnwrapped = othIsWrapped ? other.value() : other; + Select.getOptionsFromChildren = function (children) { + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; - stack || (stack = new Stack); - return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack); + _react2["default"].Children.forEach(children, function (child) { + if (!child) { + return; + } + if (child && child.type && child.type.isSelectOptGroup) { + Select.getOptionsFromChildren(child.props.children, options); + } else { + options.push(child); } + }); + return options; + }; + + Select.getInputValueForCombobox = function (props, optionsInfo, useDefaultValue) { + var value = []; + if ('value' in props && !useDefaultValue) { + value = (0, _util.toArray)(props.value); } - if (!isSameTag) { - return false; + if ('defaultValue' in props && useDefaultValue) { + value = (0, _util.toArray)(props.defaultValue); } - stack || (stack = new Stack); - return equalObjects(object, other, bitmask, customizer, equalFunc, stack); - } - - /** - * The base implementation of `_.isNative` without bad shim checks. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a native function, - * else `false`. - */ - function baseIsNative(value) { - if (!isObject(value) || isMasked(value)) { - return false; + if (value.length) { + value = value[0]; + } else { + return ''; } - var pattern = isFunction(value) ? reIsNative : reIsHostCtor; - return pattern.test(toSource(value)); - } - - /** - * The base implementation of `_.isTypedArray` without Node.js optimizations. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. - */ - function baseIsTypedArray(value) { - return isObjectLike(value) && - isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; - } - - /** - * The base implementation of `_.keys` which doesn't treat sparse arrays as dense. - * - * @private - * @param {Object} object The object to query. - * @returns {Array} Returns the array of property names. - */ - function baseKeys(object) { - if (!isPrototype(object)) { - return nativeKeys(object); + var label = value; + if (props.labelInValue) { + label = value.label; + } else if (optionsInfo[(0, _util.getMapKey)(value)]) { + label = optionsInfo[(0, _util.getMapKey)(value)].label; } - var result = []; - for (var key in Object(object)) { - if (hasOwnProperty.call(object, key) && key != 'constructor') { - result.push(key); - } + if (label === undefined) { + label = ''; } - return result; - } + return label; + }; - /** - * A specialized version of `baseIsEqualDeep` for arrays with support for - * partial deep comparisons. - * - * @private - * @param {Array} array The array to compare. - * @param {Array} other The other array to compare. - * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. - * @param {Function} customizer The function to customize comparisons. - * @param {Function} equalFunc The function to determine equivalents of values. - * @param {Object} stack Tracks traversed `array` and `other` objects. - * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`. - */ - function equalArrays(array, other, bitmask, customizer, equalFunc, stack) { - var isPartial = bitmask & COMPARE_PARTIAL_FLAG, - arrLength = array.length, - othLength = other.length; + Select.getLabelFromOption = function (props, option) { + return (0, _util.getPropValue)(option, props.optionLabelProp); + }; - if (arrLength != othLength && !(isPartial && othLength > arrLength)) { - return false; + Select.getOptionsInfoFromProps = function (props, preState) { + var options = Select.getOptionsFromChildren(props.children); + var optionsInfo = {}; + options.forEach(function (option) { + var singleValue = (0, _util.getValuePropValue)(option); + optionsInfo[(0, _util.getMapKey)(singleValue)] = { + option: option, + value: singleValue, + label: Select.getLabelFromOption(props, option), + title: option.props.title + }; + }); + if (preState) { + // keep option info in pre state value. + var oldOptionsInfo = preState.optionsInfo; + var value = preState.value; + value.forEach(function (v) { + var key = (0, _util.getMapKey)(v); + if (!optionsInfo[key] && oldOptionsInfo[key] !== undefined) { + optionsInfo[key] = oldOptionsInfo[key]; + } + }); } - // Assume cyclic values are equal. - var stacked = stack.get(array); - if (stacked && stack.get(other)) { - return stacked == other; + return optionsInfo; + }; + + Select.getValueFromProps = function (props, useDefaultValue) { + var value = []; + if ('value' in props && !useDefaultValue) { + value = (0, _util.toArray)(props.value); } - var index = -1, - result = true, - seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined; + if ('defaultValue' in props && useDefaultValue) { + value = (0, _util.toArray)(props.defaultValue); + } + if (props.labelInValue) { + value = value.map(function (v) { + return v.key; + }); + } + return value; + }; - stack.set(array, other); - stack.set(other, array); + var _initialiseProps = function _initialiseProps() { + var _this2 = this; - // Ignore non-index properties. - while (++index < arrLength) { - var arrValue = array[index], - othValue = other[index]; + this.onInputChange = function (event) { + var tokenSeparators = _this2.props.tokenSeparators; - if (customizer) { - var compared = isPartial - ? customizer(othValue, arrValue, index, other, array, stack) - : customizer(arrValue, othValue, index, array, other, stack); + var val = event.target.value; + if ((0, _util.isMultipleOrTags)(_this2.props) && tokenSeparators.length && (0, _util.includesSeparators)(val, tokenSeparators)) { + var nextValue = _this2.getValueByInput(val); + if (nextValue !== undefined) { + _this2.fireChange(nextValue); + } + _this2.setOpenState(false, true); + _this2.setInputValue('', false); + return; } - if (compared !== undefined) { - if (compared) { - continue; + _this2.setInputValue(val); + _this2.setState({ + open: true + }); + if ((0, _util.isCombobox)(_this2.props)) { + _this2.fireChange([val]); + } + }; + + this.onDropdownVisibleChange = function (open) { + if (open && !_this2._focused) { + _this2.clearBlurTime(); + _this2.timeoutFocus(); + _this2._focused = true; + _this2.updateFocusClassName(); + } + _this2.setOpenState(open); + }; + + this.onKeyDown = function (event) { + var open = _this2.state.open; + var _props2 = _this2.props, + disabled = _props2.disabled, + onKeyDown = _props2.onKeyDown, + enterKeyDown = _props2.enterKeyDown; + + if (disabled) { + return; + } + var keyCode = event.keyCode; + if (open && !_this2.getInputDOMNode()) { + _this2.onInputKeyDown(event); + } else if (keyCode === _tinperBeeCore.KeyCode.DOWN) { + if (!open) _this2.setOpenState(true); + event.preventDefault(); + } else if (keyCode === _tinperBeeCore.KeyCode.ENTER || keyCode === _tinperBeeCore.KeyCode.SPACE) { + if (!open && enterKeyDown) _this2.setOpenState(true); + event.preventDefault(); + } + onKeyDown(event); //sp + }; + + this.onInputKeyDown = function (event) { + var props = _this2.props; + if (props.disabled) { + return; + } + var state = _this2.state; + var keyCode = event.keyCode; + if ((0, _util.isMultipleOrTags)(props) && !event.target.value && keyCode === _tinperBeeCore.KeyCode.BACKSPACE) { + event.preventDefault(); + var value = state.value; + + if (value.length) { + _this2.removeSelected(value[value.length - 1]); } - result = false; - break; + return; } - // Recursively compare arrays (susceptible to call stack limits). - if (seen) { - if (!arraySome(other, function(othValue, othIndex) { - if (!cacheHas(seen, othIndex) && - (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) { - return seen.push(othIndex); - } - })) { - result = false; - break; + if (keyCode === _tinperBeeCore.KeyCode.DOWN) { + if (!state.open) { + _this2.openIfHasChildren(); + event.preventDefault(); + event.stopPropagation(); + return; } - } else if (!( - arrValue === othValue || - equalFunc(arrValue, othValue, bitmask, customizer, stack) - )) { - result = false; - break; - } - } - stack['delete'](array); - stack['delete'](other); - return result; - } - - /** - * A specialized version of `baseIsEqualDeep` for comparing objects of - * the same `toStringTag`. - * - * **Note:** This function only supports comparing values with tags of - * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`. - * - * @private - * @param {Object} object The object to compare. - * @param {Object} other The other object to compare. - * @param {string} tag The `toStringTag` of the objects to compare. - * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. - * @param {Function} customizer The function to customize comparisons. - * @param {Function} equalFunc The function to determine equivalents of values. - * @param {Object} stack Tracks traversed `object` and `other` objects. - * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. - */ - function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) { - switch (tag) { - case dataViewTag: - if ((object.byteLength != other.byteLength) || - (object.byteOffset != other.byteOffset)) { - return false; + } else if (keyCode === _tinperBeeCore.KeyCode.ENTER && state.open) { + // Aviod trigger form submit when select item + // https://github.com/ant-design/ant-design/issues/10861 + event.preventDefault(); + } else if (keyCode === _tinperBeeCore.KeyCode.ESC) { + if (state.open) { + _this2.setOpenState(false); + event.preventDefault(); + event.stopPropagation(); } - object = object.buffer; - other = other.buffer; + if (props.showSearch) props.onKeyDown(event); //sp + return; + } - case arrayBufferTag: - if ((object.byteLength != other.byteLength) || - !equalFunc(new Uint8Array(object), new Uint8Array(other))) { - return false; + if (_this2.getRealOpenState(state)) { + var menu = _this2.selectTriggerRef.getInnerMenu(); + if (menu && menu.onKeyDown(event, _this2.handleBackfill)) { + event.preventDefault(); + event.stopPropagation(); } - return true; - - case boolTag: - case dateTag: - case numberTag: - // Coerce booleans to `1` or `0` and dates to milliseconds. - // Invalid dates are coerced to `NaN`. - return eq(+object, +other); - - case errorTag: - return object.name == other.name && object.message == other.message; - - case regexpTag: - case stringTag: - // Coerce regexes to strings and treat strings, primitives and objects, - // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring - // for more details. - return object == (other + ''); + } + }; - case mapTag: - var convert = mapToArray; + this.onMenuSelect = function (_ref) { + var item = _ref.item; - case setTag: - var isPartial = bitmask & COMPARE_PARTIAL_FLAG; - convert || (convert = setToArray); + if (!item) { + return; + } - if (object.size != other.size && !isPartial) { - return false; + var value = _this2.state.value; + var props = _this2.props; + var selectedValue = (0, _util.getValuePropValue)(item); + var lastValue = value[value.length - 1]; + _this2.fireSelect(selectedValue); + if ((0, _util.isMultipleOrTags)(props)) { + if ((0, _util.findIndexInValueBySingleValue)(value, selectedValue) !== -1) { + return; } - // Assume cyclic values are equal. - var stacked = stack.get(object); - if (stacked) { - return stacked == other; + value = value.concat([selectedValue]); + } else { + if (lastValue !== undefined && lastValue === selectedValue && selectedValue !== _this2.state.backfillValue) { + _this2.setOpenState(false, true); + return; } - bitmask |= COMPARE_UNORDERED_FLAG; + value = [selectedValue]; + _this2.setOpenState(false, true); + } + _this2.fireChange(value); + var inputValue = void 0; + if ((0, _util.isCombobox)(props)) { + inputValue = (0, _util.getPropValue)(item, props.optionLabelProp); + } else { + inputValue = ''; + } + if (props.autoClearSearchValue) { + _this2.setInputValue(inputValue, false); + } + }; - // Recursively compare objects (susceptible to call stack limits). - stack.set(object, other); - var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack); - stack['delete'](object); - return result; + this.onMenuDeselect = function (_ref2) { + var item = _ref2.item, + domEvent = _ref2.domEvent; - case symbolTag: - if (symbolValueOf) { - return symbolValueOf.call(object) == symbolValueOf.call(other); - } - } - return false; - } + if (domEvent.type === 'keydown' && domEvent.keyCode === _tinperBeeCore.KeyCode.ENTER) { + _this2.removeSelected((0, _util.getValuePropValue)(item)); + return; + } + if (domEvent.type === 'click') { + _this2.removeSelected((0, _util.getValuePropValue)(item)); + } + var props = _this2.props; - /** - * A specialized version of `baseIsEqualDeep` for objects with support for - * partial deep comparisons. - * - * @private - * @param {Object} object The object to compare. - * @param {Object} other The other object to compare. - * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. - * @param {Function} customizer The function to customize comparisons. - * @param {Function} equalFunc The function to determine equivalents of values. - * @param {Object} stack Tracks traversed `object` and `other` objects. - * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. - */ - function equalObjects(object, other, bitmask, customizer, equalFunc, stack) { - var isPartial = bitmask & COMPARE_PARTIAL_FLAG, - objProps = getAllKeys(object), - objLength = objProps.length, - othProps = getAllKeys(other), - othLength = othProps.length; + if (props.autoClearSearchValue) { + _this2.setInputValue('', false); + } + }; - if (objLength != othLength && !isPartial) { - return false; - } - var index = objLength; - while (index--) { - var key = objProps[index]; - if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) { - return false; + this.onArrowClick = function (e) { + e.stopPropagation(); + e.preventDefault(); + _this2.props.onFocus(_this2.state.value); + if (!_this2.props.disabled) { + _this2.setOpenState(!_this2.state.open, !_this2.state.open); } - } - // Assume cyclic values are equal. - var stacked = stack.get(object); - if (stacked && stack.get(other)) { - return stacked == other; - } - var result = true; - stack.set(object, other); - stack.set(other, object); + }; - var skipCtor = isPartial; - while (++index < objLength) { - key = objProps[index]; - var objValue = object[key], - othValue = other[key]; + this.onPlaceholderClick = function () { + if (_this2.getInputDOMNode()) { + _this2.getInputDOMNode().focus(); + } + }; - if (customizer) { - var compared = isPartial - ? customizer(othValue, objValue, key, other, object, stack) - : customizer(objValue, othValue, key, object, other, stack); + this.onOuterFocus = function (e) { + if (_this2.props.disabled) { + e.preventDefault(); + return; } - // Recursively compare objects (susceptible to call stack limits). - if (!(compared === undefined - ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack)) - : compared - )) { - result = false; - break; + _this2.clearBlurTime(); + if (!(0, _util.isMultipleOrTagsOrCombobox)(_this2.props) && e.target === _this2.getInputDOMNode()) { + return; } - skipCtor || (skipCtor = key == 'constructor'); - } - if (result && !skipCtor) { - var objCtor = object.constructor, - othCtor = other.constructor; + if (_this2._focused) { + return; + } + _this2._focused = true; + _this2.updateFocusClassName(); + if (!_this2._mouseDown) { + _this2.timeoutFocus(); + } + }; - // Non `Object` object instances with different constructors are not equal. - if (objCtor != othCtor && - ('constructor' in object && 'constructor' in other) && - !(typeof objCtor == 'function' && objCtor instanceof objCtor && - typeof othCtor == 'function' && othCtor instanceof othCtor)) { - result = false; + this.onPopupFocus = function () { + // fix ie scrollbar, focus element again + _this2.maybeFocus(true, true); + }; + + this.onOuterBlur = function (e) { + if (_this2.props.disabled) { + e.preventDefault(); + return; } - } - stack['delete'](object); - stack['delete'](other); - return result; - } + _this2.blurTimer = setTimeout(function () { + _this2._focused = false; + _this2.updateFocusClassName(); + var props = _this2.props; + var value = _this2.state.value; + var inputValue = _this2.state.inputValue; - /** - * Creates an array of own enumerable property names and symbols of `object`. - * - * @private - * @param {Object} object The object to query. - * @returns {Array} Returns the array of property names and symbols. - */ - function getAllKeys(object) { - return baseGetAllKeys(object, keys, getSymbols); - } + if ((0, _util.isSingleMode)(props) && props.showSearch && inputValue && props.defaultActiveFirstOption) { + var options = _this2._options || []; + if (options.length) { + var firstOption = (0, _util.findFirstMenuItem)(options); + if (firstOption) { + value = [(0, _util.getValuePropValue)(firstOption)]; + _this2.fireChange(value); + } + if (props.showSearch && props.supportWrite) { + //查询时是否支持自定义输入 + value = [inputValue]; + _this2.fireChange(value, true); + } + } + } else if ((0, _util.isMultipleOrTags)(props) && inputValue) { + if (_this2._mouseDown) { + // need update dropmenu when not blur + _this2.setInputValue(''); + } else { + // why not use setState? + _this2.state.inputValue = _this2.getInputDOMNode().value = ''; + } - /** - * Gets the data for `map`. - * - * @private - * @param {Object} map The map to query. - * @param {string} key The reference key. - * @returns {*} Returns the map data. - */ - function getMapData(map, key) { - var data = map.__data__; - return isKeyable(key) - ? data[typeof key == 'string' ? 'string' : 'hash'] - : data.map; - } + value = _this2.getValueByInput(inputValue); + if (value !== undefined) { + _this2.fireChange(value); + } + } - /** - * Gets the native function at `key` of `object`. - * - * @private - * @param {Object} object The object to query. - * @param {string} key The key of the method to get. - * @returns {*} Returns the function if it's native, else `undefined`. - */ - function getNative(object, key) { - var value = getValue(object, key); - return baseIsNative(value) ? value : undefined; - } + // if click the rest space of Select in multiple mode + if ((0, _util.isMultipleOrTags)(props) && _this2._mouseDown) { + _this2.maybeFocus(true, true); + _this2._mouseDown = false; + return; + } + _this2.setOpenState(false); + props.onBlur(_this2.getVLForOnChange(value)); + }, 10); + }; - /** - * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values. - * - * @private - * @param {*} value The value to query. - * @returns {string} Returns the raw `toStringTag`. - */ - function getRawTag(value) { - var isOwn = hasOwnProperty.call(value, symToStringTag), - tag = value[symToStringTag]; + this.onClearSelection = function (event) { + var props = _this2.props; + var state = _this2.state; + if (props.disabled) { + return; + } + var inputValue = state.inputValue, + value = state.value; - try { - value[symToStringTag] = undefined; - var unmasked = true; - } catch (e) {} + event.stopPropagation(); + if (inputValue || value.length) { + if (value.length) { + _this2.fireChange([]); + } + _this2.setOpenState(false, true); + if (inputValue) { + _this2.setInputValue(''); + } + } + }; - var result = nativeObjectToString.call(value); - if (unmasked) { - if (isOwn) { - value[symToStringTag] = tag; - } else { - delete value[symToStringTag]; + this.onChoiceAnimationLeave = function () { + _this2.forcePopupAlign(); + }; + + this.getOptionInfoBySingleValue = function (value, optionsInfo) { + var info = void 0; + optionsInfo = optionsInfo || _this2.state.optionsInfo; + if (optionsInfo[(0, _util.getMapKey)(value)]) { + info = optionsInfo[(0, _util.getMapKey)(value)]; } - } - return result; - } + if (info) { + return info; + } + var defaultLabel = value; + if (_this2.props.labelInValue) { + var label = (0, _util.getLabelFromPropsValue)(_this2.props.value, value); + if (label !== undefined) { + defaultLabel = label; + } + } + var defaultInfo = { + option: _react2["default"].createElement( + _Option2["default"], + { value: value, key: value }, + value + ), + value: value, + label: defaultLabel + }; + return defaultInfo; + }; - /** - * Creates an array of the own enumerable symbols of `object`. - * - * @private - * @param {Object} object The object to query. - * @returns {Array} Returns the array of symbols. - */ - var getSymbols = !nativeGetSymbols ? stubArray : function(object) { - if (object == null) { - return []; - } - object = Object(object); - return arrayFilter(nativeGetSymbols(object), function(symbol) { - return propertyIsEnumerable.call(object, symbol); - }); - }; + this.getOptionBySingleValue = function (value) { + var _getOptionInfoBySingl = _this2.getOptionInfoBySingleValue(value), + option = _getOptionInfoBySingl.option; - /** - * Gets the `toStringTag` of `value`. - * - * @private - * @param {*} value The value to query. - * @returns {string} Returns the `toStringTag`. - */ - var getTag = baseGetTag; + return option; + }; - // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6. - if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) || - (Map && getTag(new Map) != mapTag) || - (Promise && getTag(Promise.resolve()) != promiseTag) || - (Set && getTag(new Set) != setTag) || - (WeakMap && getTag(new WeakMap) != weakMapTag)) { - getTag = function(value) { - var result = baseGetTag(value), - Ctor = result == objectTag ? value.constructor : undefined, - ctorString = Ctor ? toSource(Ctor) : ''; + this.getOptionsBySingleValue = function (values) { + return values.map(function (value) { + return _this2.getOptionBySingleValue(value); + }); + }; - if (ctorString) { - switch (ctorString) { - case dataViewCtorString: return dataViewTag; - case mapCtorString: return mapTag; - case promiseCtorString: return promiseTag; - case setCtorString: return setTag; - case weakMapCtorString: return weakMapTag; + this.getValueByLabel = function (label) { + if (label === undefined) { + return null; + } + var value = null; + Object.keys(_this2.state.optionsInfo).forEach(function (key) { + var info = _this2.state.optionsInfo[key]; + if ((0, _util.toArray)(info.label).join('') === label) { + value = info.value; } + }); + return value; + }; + + this.getVLBySingleValue = function (value) { + if (_this2.props.labelInValue) { + return { + key: value, + label: _this2.getLabelBySingleValue(value) + }; } - return result; + return value; }; - } - /** - * Checks if `value` is a valid array-like index. - * - * @private - * @param {*} value The value to check. - * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index. - * @returns {boolean} Returns `true` if `value` is a valid index, else `false`. - */ - function isIndex(value, length) { - length = length == null ? MAX_SAFE_INTEGER : length; - return !!length && - (typeof value == 'number' || reIsUint.test(value)) && - (value > -1 && value % 1 == 0 && value < length); - } + this.getVLForOnChange = function (vls_) { + var vls = vls_; + if (vls !== undefined) { + if (!_this2.props.labelInValue) { + vls = vls.map(function (v) { + return v; + }); + } else { + vls = vls.map(function (vl) { + return { + key: vl, + label: _this2.getLabelBySingleValue(vl) + }; + }); + } + return (0, _util.isMultipleOrTags)(_this2.props) ? vls : vls[0]; + } + return vls; + }; - /** - * Checks if `value` is suitable for use as unique object key. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is suitable, else `false`. - */ - function isKeyable(value) { - var type = typeof value; - return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') - ? (value !== '__proto__') - : (value === null); - } + this.getLabelBySingleValue = function (value, optionsInfo) { + var _getOptionInfoBySingl2 = _this2.getOptionInfoBySingleValue(value, optionsInfo), + label = _getOptionInfoBySingl2.label; - /** - * Checks if `func` has its source masked. - * - * @private - * @param {Function} func The function to check. - * @returns {boolean} Returns `true` if `func` is masked, else `false`. - */ - function isMasked(func) { - return !!maskSrcKey && (maskSrcKey in func); - } + return label; + }; - /** - * Checks if `value` is likely a prototype object. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a prototype, else `false`. - */ - function isPrototype(value) { - var Ctor = value && value.constructor, - proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto; + this.getDropdownContainer = function () { + if (!_this2.dropdownContainer) { + _this2.dropdownContainer = document.createElement('div'); + document.body.appendChild(_this2.dropdownContainer); + } + return _this2.dropdownContainer; + }; - return value === proto; - } + this.getPlaceholderElement = function () { + var props = _this2.props, + state = _this2.state; - /** - * Converts `value` to a string using `Object.prototype.toString`. - * - * @private - * @param {*} value The value to convert. - * @returns {string} Returns the converted string. - */ - function objectToString(value) { - return nativeObjectToString.call(value); - } + var hidden = false; + if (state.inputValue) { + hidden = true; + } + if (state.value[0]) { + hidden = true; + } + if ((0, _util.isCombobox)(props) && state.value.length === 1 && !state.value[0]) { + hidden = false; + } + var placeholder = props.placeholder; + if (placeholder) { + return _react2["default"].createElement( + 'div', + _extends({ + onMouseDown: _util.preventDefaultEvent, + style: _extends({ + display: hidden ? 'none' : 'block' + }, _util.UNSELECTABLE_STYLE) + }, _util.UNSELECTABLE_ATTRIBUTE, { + onClick: _this2.onPlaceholderClick, + className: props.prefixCls + '-selection-placeholder' + }), + placeholder + ); + } + return null; + }; - /** - * Converts `func` to its source code. - * - * @private - * @param {Function} func The function to convert. - * @returns {string} Returns the source code. - */ - function toSource(func) { - if (func != null) { - try { - return funcToString.call(func); - } catch (e) {} - try { - return (func + ''); - } catch (e) {} - } - return ''; - } + this.getInputElement = function () { + var props = _this2.props; + var inputElement = props.getInputElement ? props.getInputElement() : _react2["default"].createElement('input', { id: props.id, autoComplete: 'off' }); + var inputCls = (0, _classnames3["default"])(inputElement.props.className, _defineProperty({}, props.prefixCls + '-search-field', true)); + // https://github.com/ant-design/ant-design/issues/4992#issuecomment-281542159 + // Add space to the end of the inputValue as the width measurement tolerance + return _react2["default"].createElement( + 'div', + { className: props.prefixCls + '-search-field-wrap' }, + _react2["default"].cloneElement(inputElement, { + ref: _this2.saveInputRef, + onChange: _this2.onInputChange, + onKeyDown: chaining(_this2.onInputKeyDown, inputElement.props.onKeyDown, _this2.props.onInputKeyDown), + value: _this2.state.inputValue, + disabled: props.disabled, + className: inputCls + }), + _react2["default"].createElement( + 'span', + { + ref: _this2.saveInputMirrorRef, + className: props.prefixCls + '-search-field-mirror' + }, + _this2.state.inputValue, + '\xA0' + ) + ); + }; - /** - * Performs a - * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) - * comparison between two values to determine if they are equivalent. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to compare. - * @param {*} other The other value to compare. - * @returns {boolean} Returns `true` if the values are equivalent, else `false`. - * @example - * - * var object = { 'a': 1 }; - * var other = { 'a': 1 }; - * - * _.eq(object, object); - * // => true - * - * _.eq(object, other); - * // => false - * - * _.eq('a', 'a'); - * // => true - * - * _.eq('a', Object('a')); - * // => false - * - * _.eq(NaN, NaN); - * // => true - */ - function eq(value, other) { - return value === other || (value !== value && other !== other); - } + this.getInputDOMNode = function () { + return _this2.topCtrlRef ? _this2.topCtrlRef.querySelector('input,textarea,div[contentEditable]') : _this2.inputRef; + }; - /** - * Checks if `value` is likely an `arguments` object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an `arguments` object, - * else `false`. - * @example - * - * _.isArguments(function() { return arguments; }()); - * // => true - * - * _.isArguments([1, 2, 3]); - * // => false - */ - var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) { - return isObjectLike(value) && hasOwnProperty.call(value, 'callee') && - !propertyIsEnumerable.call(value, 'callee'); - }; + this.getInputMirrorDOMNode = function () { + return _this2.inputMirrorRef; + }; - /** - * Checks if `value` is classified as an `Array` object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an array, else `false`. - * @example - * - * _.isArray([1, 2, 3]); - * // => true - * - * _.isArray(document.body.children); - * // => false - * - * _.isArray('abc'); - * // => false - * - * _.isArray(_.noop); - * // => false - */ - var isArray = Array.isArray; + this.getPopupDOMNode = function () { + return _this2.selectTriggerRef.getPopupDOMNode(); + }; - /** - * Checks if `value` is array-like. A value is considered array-like if it's - * not a function and has a `value.length` that's an integer greater than or - * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is array-like, else `false`. - * @example - * - * _.isArrayLike([1, 2, 3]); - * // => true - * - * _.isArrayLike(document.body.children); - * // => true - * - * _.isArrayLike('abc'); - * // => true - * - * _.isArrayLike(_.noop); - * // => false - */ - function isArrayLike(value) { - return value != null && isLength(value.length) && !isFunction(value); - } + this.getPopupMenuComponent = function () { + return _this2.selectTriggerRef.getInnerMenu(); + }; - /** - * Checks if `value` is a buffer. - * - * @static - * @memberOf _ - * @since 4.3.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a buffer, else `false`. - * @example - * - * _.isBuffer(new Buffer(2)); - * // => true - * - * _.isBuffer(new Uint8Array(2)); - * // => false - */ - var isBuffer = nativeIsBuffer || stubFalse; + this.setOpenState = function (open, needFocus) { + var props = _this2.props, + state = _this2.state; - /** - * Performs a deep comparison between two values to determine if they are - * equivalent. - * - * **Note:** This method supports comparing arrays, array buffers, booleans, - * date objects, error objects, maps, numbers, `Object` objects, regexes, - * sets, strings, symbols, and typed arrays. `Object` objects are compared - * by their own, not inherited, enumerable properties. Functions and DOM - * nodes are compared by strict equality, i.e. `===`. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to compare. - * @param {*} other The other value to compare. - * @returns {boolean} Returns `true` if the values are equivalent, else `false`. - * @example - * - * var object = { 'a': 1 }; - * var other = { 'a': 1 }; - * - * _.isEqual(object, other); - * // => true - * - * object === other; - * // => false - */ - function isEqual(value, other) { - return baseIsEqual(value, other); - } + if (state.open === open) { + _this2.maybeFocus(open, needFocus); + return; + } - /** - * Checks if `value` is classified as a `Function` object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a function, else `false`. - * @example - * - * _.isFunction(_); - * // => true - * - * _.isFunction(/abc/); - * // => false - */ - function isFunction(value) { - if (!isObject(value)) { - return false; - } - // The use of `Object#toString` avoids issues with the `typeof` operator - // in Safari 9 which returns 'object' for typed arrays and other constructors. - var tag = baseGetTag(value); - return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; - } + if (_this2.props.onDropdownVisibleChange) { + _this2.props.onDropdownVisibleChange(open); + } - /** - * Checks if `value` is a valid array-like length. - * - * **Note:** This method is loosely based on - * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. - * @example - * - * _.isLength(3); - * // => true - * - * _.isLength(Number.MIN_VALUE); - * // => false - * - * _.isLength(Infinity); - * // => false - * - * _.isLength('3'); - * // => false - */ - function isLength(value) { - return typeof value == 'number' && - value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; - } + var nextState = { + open: open, + backfillValue: undefined + }; + // clear search input value when open is false in singleMode. + if (!open && (0, _util.isSingleMode)(props) && props.showSearch) { + _this2.setInputValue('', false); + } + if (!open) { + _this2.maybeFocus(open, needFocus); + } + _this2.setState(nextState, function () { + if (open) { + _this2.maybeFocus(open, needFocus); + } + }); + }; - /** - * Checks if `value` is the - * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) - * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an object, else `false`. - * @example - * - * _.isObject({}); - * // => true - * - * _.isObject([1, 2, 3]); - * // => true - * - * _.isObject(_.noop); - * // => true - * - * _.isObject(null); - * // => false - */ - function isObject(value) { - var type = typeof value; - return value != null && (type == 'object' || type == 'function'); - } + this.setInputValue = function (inputValue) { + var fireSearch = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - /** - * Checks if `value` is object-like. A value is object-like if it's not `null` - * and has a `typeof` result of "object". - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - * @example - * - * _.isObjectLike({}); - * // => true - * - * _.isObjectLike([1, 2, 3]); - * // => true - * - * _.isObjectLike(_.noop); - * // => false - * - * _.isObjectLike(null); - * // => false - */ - function isObjectLike(value) { - return value != null && typeof value == 'object'; - } + if (inputValue !== _this2.state.inputValue) { + _this2.setState({ + inputValue: inputValue + }, _this2.forcePopupAlign); + if (fireSearch) { + _this2.props.onSearch(inputValue); + } + } + }; - /** - * Checks if `value` is classified as a typed array. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. - * @example - * - * _.isTypedArray(new Uint8Array); - * // => true - * - * _.isTypedArray([]); - * // => false - */ - var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; + this.getValueByInput = function (string) { + var _props3 = _this2.props, + multiple = _props3.multiple, + tokenSeparators = _props3.tokenSeparators; + + var nextValue = _this2.state.value; + var hasNewValue = false; + (0, _util.splitBySeparators)(string, tokenSeparators).forEach(function (label) { + var selectedValue = [label]; + if (multiple) { + var value = _this2.getValueByLabel(label); + if (value && (0, _util.findIndexInValueBySingleValue)(nextValue, value) === -1) { + nextValue = nextValue.concat(value); + hasNewValue = true; + _this2.fireSelect(value); + } + } else { + // tag + if ((0, _util.findIndexInValueBySingleValue)(nextValue, label) === -1) { + nextValue = nextValue.concat(selectedValue); + hasNewValue = true; + _this2.fireSelect(label); + } + } + }); + return hasNewValue ? nextValue : undefined; + }; - /** - * Creates an array of the own enumerable property names of `object`. - * - * **Note:** Non-object values are coerced to objects. See the - * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) - * for more details. - * - * @static - * @since 0.1.0 - * @memberOf _ - * @category Object - * @param {Object} object The object to query. - * @returns {Array} Returns the array of property names. - * @example - * - * function Foo() { - * this.a = 1; - * this.b = 2; - * } - * - * Foo.prototype.c = 3; - * - * _.keys(new Foo); - * // => ['a', 'b'] (iteration order is not guaranteed) - * - * _.keys('hi'); - * // => ['0', '1'] - */ - function keys(object) { - return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); - } + this.getRealOpenState = function (state) { + var _open = _this2.props.open; - /** - * This method returns a new empty array. - * - * @static - * @memberOf _ - * @since 4.13.0 - * @category Util - * @returns {Array} Returns the new empty array. - * @example - * - * var arrays = _.times(2, _.stubArray); - * - * console.log(arrays); - * // => [[], []] - * - * console.log(arrays[0] === arrays[1]); - * // => false - */ - function stubArray() { - return []; - } + if (typeof _open === 'boolean') { + return _open; + } + var open = (state || _this2.state).open; + var options = _this2._options || []; + if ((0, _util.isMultipleOrTagsOrCombobox)(_this2.props) || !_this2.props.showSearch) { + if (open && !options.length) { + open = false; + } + } + return open; + }; - /** - * This method returns `false`. - * - * @static - * @memberOf _ - * @since 4.13.0 - * @category Util - * @returns {boolean} Returns `false`. - * @example - * - * _.times(2, _.stubFalse); - * // => [false, false] - */ - function stubFalse() { - return false; - } + this.markMouseDown = function () { + _this2._mouseDown = true; + }; - module.exports = isEqual; + this.markMouseLeave = function () { + _this2._mouseDown = false; + }; - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35), __webpack_require__(245)(module))) + this.handleBackfill = function (item) { + if (!_this2.props.backfill || !((0, _util.isSingleMode)(_this2.props) || (0, _util.isCombobox)(_this2.props))) { + return; + } - /***/ }), - /* 21 */ - /***/ (function(module, exports, __webpack_require__) { + var key = (0, _util.getValuePropValue)(item); - "use strict"; + if ((0, _util.isCombobox)(_this2.props)) { + _this2.setInputValue(key, false); + } + _this2.setState({ + value: [key], + backfillValue: key + }); + }; - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.create = exports.connect = exports.Provider = undefined; + this.filterOption = function (input, child) { + var defaultFilter = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _util.defaultFilterFn; + var value = _this2.state.value; - var _Provider2 = __webpack_require__(793); + var lastValue = value[value.length - 1]; + if (!input || lastValue && lastValue === _this2.state.backfillValue) { + return true; + } + var filterFn = _this2.props.filterOption; + if ('filterOption' in _this2.props) { + if (_this2.props.filterOption === true) { + filterFn = defaultFilter; + } + } else { + filterFn = defaultFilter; + } - var _Provider3 = _interopRequireDefault(_Provider2); + if (!filterFn) { + return true; + } else if (typeof filterFn === 'function') { + return filterFn.call(_this2, input, child); + } else if (child.props.disabled) { + return false; + } + return true; + }; - var _connect2 = __webpack_require__(794); + this.timeoutFocus = function () { + if (_this2.focusTimer) { + _this2.clearFocusTime(); + } + _this2.focusTimer = setTimeout(function () { + _this2.props.onFocus(); + }, 10); + }; - var _connect3 = _interopRequireDefault(_connect2); + this.clearFocusTime = function () { + if (_this2.focusTimer) { + clearTimeout(_this2.focusTimer); + _this2.focusTimer = null; + } + }; - var _create2 = __webpack_require__(796); + this.clearBlurTime = function () { + if (_this2.blurTimer) { + clearTimeout(_this2.blurTimer); + _this2.blurTimer = null; + } + }; - var _create3 = _interopRequireDefault(_create2); + this.updateFocusClassName = function () { + var rootRef = _this2.rootRef, + props = _this2.props; + // avoid setState and its side effect - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + if (_this2._focused) { + (0, _componentClasses2["default"])(rootRef).add(props.prefixCls + '-focused'); + } else { + (0, _componentClasses2["default"])(rootRef).remove(props.prefixCls + '-focused'); + } + }; - exports.Provider = _Provider3.default; - exports.connect = _connect3.default; - exports.create = _create3.default; + this.maybeFocus = function (open, needFocus) { + if (needFocus || open) { + var input = _this2.getInputDOMNode(); + var _document = document, + activeElement = _document.activeElement; - /***/ }), - /* 22 */ - /***/ (function(module, exports, __webpack_require__) { + if (input && (open || (0, _util.isMultipleOrTagsOrCombobox)(_this2.props))) { + if (activeElement !== input) { + input.focus(); + _this2._focused = true; + } + } else if (activeElement !== _this2.selectionRef) { + _this2.selectionRef.focus(); + _this2._focused = true; + } + } + }; - "use strict"; + this.removeSelected = function (selectedKey, e) { + var props = _this2.props; + if (props.disabled || _this2.isChildDisabled(selectedKey)) { + return; + } + // Do not trigger Trigger popup + if (e && e.stopPropagation) { + e.stopPropagation(); + } - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = ownerDocument; - function ownerDocument(node) { - return node && node.ownerDocument || document; - } - module.exports = exports["default"]; + var value = _this2.state.value.filter(function (singleValue) { + return singleValue !== selectedKey; + }); + var canMultiple = (0, _util.isMultipleOrTags)(props); - /***/ }), - /* 23 */ - /***/ (function(module, exports, __webpack_require__) { + if (canMultiple) { + var event = selectedKey; + if (props.labelInValue) { + event = { + key: selectedKey, + label: _this2.getLabelBySingleValue(selectedKey) + }; + } + props.onDeselect(event, _this2.getOptionBySingleValue(selectedKey)); + } + _this2.fireChange(value); + }; - "use strict"; + this.openIfHasChildren = function () { + var props = _this2.props; + if (_react2["default"].Children.count(props.children) || (0, _util.isSingleMode)(props)) { + _this2.setOpenState(true); + } + }; + this.fireSelect = function (value) { + _this2.props.onSelect(_this2.getVLBySingleValue(value), _this2.getOptionBySingleValue(value)); + }; - exports.__esModule = true; + this.fireChange = function (value, noCheck) { + var props = _this2.props; + if (!('value' in props)) { + _this2.setState({ + value: value + }, _this2.forcePopupAlign); + } + if (noCheck) { + props.onChange(value, null); + } else { + var vls = _this2.getVLForOnChange(value); + var options = _this2.getOptionsBySingleValue(value); + props.onChange(vls, (0, _util.isMultipleOrTags)(_this2.props) ? options : options[0]); + } + }; - exports.default = function (obj, keys) { - var target = {}; + this.isChildDisabled = function (key) { + return (0, _tinperBeeCore.toArray)(_this2.props.children).some(function (child) { + var childValue = (0, _util.getValuePropValue)(child); + return childValue === key && child.props && child.props.disabled; + }); + }; - for (var i in obj) { - if (keys.indexOf(i) >= 0) continue; - if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; - target[i] = obj[i]; - } + this.forcePopupAlign = function () { + if (!_this2.state.open) { + return; + } + if (_this2.selectTriggerRef && _this2.selectTriggerRef.triggerRef && _this2.selectTriggerRef.triggerRef.forcePopupAlign) { + if (typeof _this2.selectTriggerRef.triggerRef.forcePopupAlign == 'function') { + _this2.selectTriggerRef.triggerRef.forcePopupAlign(); + } + } + }; - return target; - }; + this.renderFilterOptions = function () { + var inputValue = _this2.state.inputValue; + var _props4 = _this2.props, + children = _props4.children, + tags = _props4.tags, + filterOption = _props4.filterOption, + notFoundContent = _props4.notFoundContent; - /***/ }), - /* 24 */ - /***/ (function(module, exports) { + var menuItems = []; + var childrenKeys = []; + var options = _this2.renderFilterOptionsFromChildren(children, childrenKeys, menuItems); + if (tags) { + // tags value must be string + var value = _this2.state.value; + value = value.filter(function (singleValue) { + return childrenKeys.indexOf(singleValue) === -1 && (!inputValue || String(singleValue).indexOf(String(inputValue)) > -1); + }); + value.forEach(function (singleValue) { + var key = singleValue; + var menuItem = _react2["default"].createElement( + _MenuItem2["default"], + { + style: _util.UNSELECTABLE_STYLE, + role: 'option', + attribute: _util.UNSELECTABLE_ATTRIBUTE, + value: key, + key: key + }, + key + ); + options.push(menuItem); + menuItems.push(menuItem); + }); + if (inputValue) { + var notFindInputItem = menuItems.every(function (option) { + // this.filterOption return true has two meaning, + // 1, some one exists after filtering + // 2, filterOption is set to false + // condition 2 does not mean the option has same value with inputValue + var filterFn = function filterFn() { + return (0, _util.getValuePropValue)(option) === inputValue; + }; + if (filterOption !== false) { + return !_this2.filterOption.call(_this2, inputValue, option, filterFn); + } + return !filterFn(); + }); + if (notFindInputItem) { + options.unshift(_react2["default"].createElement( + _MenuItem2["default"], + { + style: _util.UNSELECTABLE_STYLE, + role: 'option', + attribute: _util.UNSELECTABLE_ATTRIBUTE, + value: inputValue, + key: inputValue + }, + inputValue + )); + } + } + } - var core = module.exports = { version: '2.6.11' }; - if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef + if (!options.length && notFoundContent) { + options = [_react2["default"].createElement( + _MenuItem2["default"], + { + style: _util.UNSELECTABLE_STYLE, + attribute: _util.UNSELECTABLE_ATTRIBUTE, + disabled: true, + role: 'option', + value: 'NOT_FOUND', + key: 'NOT_FOUND' + }, + notFoundContent + )]; + } + return options; + }; + this.renderFilterOptionsFromChildren = function (children, childrenKeys, menuItems) { + var sel = []; + var props = _this2.props; + var inputValue = _this2.state.inputValue; - /***/ }), - /* 25 */ - /***/ (function(module, exports, __webpack_require__) { + var tags = props.tags; + _react2["default"].Children.forEach(children, function (child) { + if (!child) { + return; + } + if (child.type.isSelectOptGroup) { + var innerItems = _this2.renderFilterOptionsFromChildren(child.props.children, childrenKeys, menuItems); + if (innerItems.length) { + var label = child.props.label; + var key = child.key; + if (!key && typeof label === 'string') { + key = label; + } else if (!label && key) { + label = key; + } + sel.push(_react2["default"].createElement( + _rcMenu.ItemGroup, + { key: key, title: label }, + innerItems + )); + } + return; + } - "use strict"; + (0, _warning2["default"])(child.type.isSelectOption, 'the children of `Select` should be `Select.Option` or `Select.OptGroup`, ' + ('instead of `' + (child.type.name || child.type.displayName || child.type) + '`.')); + var childValue = (0, _util.getValuePropValue)(child); - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = !!(typeof window !== 'undefined' && window.document && window.document.createElement); - module.exports = exports['default']; + (0, _util.validateOptionValue)(childValue, _this2.props); - /***/ }), - /* 26 */ - /***/ (function(module, exports, __webpack_require__) { + if (_this2.filterOption(inputValue, child)) { + var menuItem = _react2["default"].createElement(_MenuItem2["default"], _extends({ + style: _util.UNSELECTABLE_STYLE, + attribute: _util.UNSELECTABLE_ATTRIBUTE, + value: childValue, + key: childValue, + role: 'option' + }, child.props)); + sel.push(menuItem); + menuItems.push(menuItem); + } - "use strict"; + if (tags) { + childrenKeys.push(childValue); + } + }); + return sel; + }; - Object.defineProperty(exports, "__esModule", { - value: true - }); + this.renderTopControlNode = function () { + var _state2 = _this2.state, + value = _state2.value, + open = _state2.open, + inputValue = _state2.inputValue; - var _inDOM = __webpack_require__(25); + var props = _this2.props; + var choiceTransitionName = props.choiceTransitionName, + prefixCls = props.prefixCls, + maxTagTextLength = props.maxTagTextLength, + maxTagCount = props.maxTagCount, + maxTagPlaceholder = props.maxTagPlaceholder, + showSearch = props.showSearch, + removeIcon = props.removeIcon; - var _inDOM2 = _interopRequireDefault(_inDOM); + var className = prefixCls + '-selection-rendered'; + // search input is inside topControlNode in single, multiple & combobox. 2016/04/13 + var innerNode = null; + if ((0, _util.isSingleMode)(props)) { + var selectedValue = null; + if (value.length) { + var showSelectedValue = false; + var opacity = 1; + if (!showSearch) { + showSelectedValue = true; + } else if (open) { + showSelectedValue = !inputValue; + if (showSelectedValue) { + opacity = 0.4; + } + } else { + showSelectedValue = true; + } + var singleValue = value[0]; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + var _getOptionInfoBySingl3 = _this2.getOptionInfoBySingleValue(singleValue), + label = _getOptionInfoBySingl3.label, + title = _getOptionInfoBySingl3.title; - exports.default = function () { - var root = _inDOM2.default && document.documentElement; + selectedValue = _react2["default"].createElement( + 'div', + { + key: 'value', + className: prefixCls + '-selection-selected-value', + title: (0, _util.toTitle)(title || label), + style: { + display: showSelectedValue ? 'block' : 'none', + opacity: opacity + } + }, + label + ); + } + if (!showSearch) { + innerNode = [selectedValue]; + } else { + innerNode = [selectedValue, _react2["default"].createElement( + 'div', + { + className: prefixCls + '-search ' + prefixCls + '-search--inline', + key: 'input', + style: { + display: open ? 'block' : 'none' + } + }, + _this2.getInputElement() + )]; + } + } else { + var selectedValueNodes = []; + var limitedCountValue = value; + var maxTagPlaceholderEl = void 0; + if (maxTagCount !== undefined && value.length > maxTagCount) { + limitedCountValue = limitedCountValue.slice(0, maxTagCount); + var omittedValues = _this2.getVLForOnChange(value.slice(maxTagCount, value.length)); + var content = '+ ' + (value.length - maxTagCount) + ' ...'; + if (maxTagPlaceholder) { + content = typeof maxTagPlaceholder === 'function' ? maxTagPlaceholder(omittedValues) : maxTagPlaceholder; + } + maxTagPlaceholderEl = _react2["default"].createElement( + 'li', + _extends({ + style: _util.UNSELECTABLE_STYLE + }, _util.UNSELECTABLE_ATTRIBUTE, { + onMouseDown: _util.preventDefaultEvent, + className: prefixCls + '-selection-choice ' + prefixCls + '-selection-choice-disabled', + key: 'maxTagPlaceholder', + title: (0, _util.toTitle)(content) + }), + _react2["default"].createElement( + 'div', + { className: prefixCls + '-selection-choice-content' }, + content + ) + ); + } + if ((0, _util.isMultipleOrTags)(props)) { + selectedValueNodes = limitedCountValue.map(function (singleValue, index) { + var key = singleValue || index; + var info = _this2.getOptionInfoBySingleValue(singleValue); + var content = info.label; + var title = info.title || content; + if (maxTagTextLength && typeof content === 'string' && content.length > maxTagTextLength) { + content = content.slice(0, maxTagTextLength) + '...'; + } + var disabled = _this2.isChildDisabled(singleValue); + var choiceClassName = disabled ? prefixCls + '-selection-choice ' + prefixCls + '-selection-choice-disabled' : prefixCls + '-selection-choice'; + return _react2["default"].createElement( + 'li', + _extends({ + style: _util.UNSELECTABLE_STYLE + }, _util.UNSELECTABLE_ATTRIBUTE, { + onMouseDown: _util.preventDefaultEvent, + className: choiceClassName, + key: key, + title: (0, _util.toTitle)(title) + }), + _react2["default"].createElement( + 'div', + { className: prefixCls + '-selection-choice-content' }, + content + ), + disabled ? null : _react2["default"].createElement( + 'span', + { + onClick: function onClick(event) { + _this2.removeSelected(singleValue, event); + }, + className: prefixCls + '-selection-choice-remove' + }, + removeIcon || _react2["default"].createElement( + 'i', + { className: prefixCls + '-selection-choice-remove-icon' }, + '\xD7' + ) + ) + ); + }); + } + if (maxTagPlaceholderEl) { + selectedValueNodes.push(maxTagPlaceholderEl); + } + selectedValueNodes.push(_react2["default"].createElement( + 'li', + { + className: prefixCls + '-search ' + prefixCls + '-search--inline', + key: '-input' + }, + _this2.getInputElement() + )); - return root && root.contains ? function (context, node) { - return context.contains(node); - } : root && root.compareDocumentPosition ? function (context, node) { - return context === node || !!(context.compareDocumentPosition(node) & 16); - } : function (context, node) { - if (node) do { - if (node === context) return true; - } while (node = node.parentNode); + if ((0, _util.isMultipleOrTags)(props) && choiceTransitionName) { + innerNode = _react2["default"].createElement( + _beeAnimate2["default"], + { + onLeave: _this2.onChoiceAnimationLeave, + component: 'ul', + transitionName: choiceTransitionName + }, + selectedValueNodes + ); + } else { + innerNode = _react2["default"].createElement( + 'ul', + null, + selectedValueNodes + ); + } + } + return _react2["default"].createElement( + 'div', + { className: className, ref: _this2.saveTopCtrlRef }, + _this2.getPlaceholderElement(), + innerNode + ); + }; - return false; + this.onOuterClick = function (event) { + //sp:在不能输入的情况下,点击事件触发focus + _this2._focused = true; + _this2.updateFocusClassName(); + _this2.props.onFocus(_this2.state.value); }; - }(); + }; + + Select.displayName = 'Select'; + + (0, _reactLifecyclesCompat.polyfill)(Select); + exports["default"] = Select; module.exports = exports['default']; + +/***/ }), +/* 597 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - /***/ }), - /* 27 */ - /***/ (function(module, exports, __webpack_require__) { + exports.__esModule = true; + exports.Divider = exports.ItemGroup = exports.MenuItemGroup = exports.MenuItem = exports.Item = exports.SubMenu = undefined; - "use strict"; + var _Menu = __webpack_require__(598); + var _Menu2 = _interopRequireDefault(_Menu); - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.transitionEnd = exports.transitionDuration = exports.transitionDelay = exports.transitionTiming = exports.transitionProperty = exports.transform = undefined; + var _SubMenu = __webpack_require__(602); - var _inDOM = __webpack_require__(25); + var _SubMenu2 = _interopRequireDefault(_SubMenu); - var _inDOM2 = _interopRequireDefault(_inDOM); + var _MenuItem = __webpack_require__(604); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + var _MenuItem2 = _interopRequireDefault(_MenuItem); - var transform = 'transform'; - var prefix = void 0, - transitionEnd = void 0; - var transitionTiming = void 0, - transitionDuration = void 0; - var transitionProperty = void 0, - transitionDelay = void 0; + var _MenuItemGroup = __webpack_require__(605); - if (_inDOM2.default) { - var _getTransitionPropert = getTransitionProperties(); + var _MenuItemGroup2 = _interopRequireDefault(_MenuItemGroup); - prefix = _getTransitionPropert.prefix; - exports.transitionEnd = transitionEnd = _getTransitionPropert.transitionEnd; + var _Divider = __webpack_require__(606); + var _Divider2 = _interopRequireDefault(_Divider); - exports.transform = transform = prefix + '-' + transform; - exports.transitionProperty = transitionProperty = prefix + '-transition-property'; - exports.transitionDuration = transitionDuration = prefix + '-transition-duration'; - exports.transitionDelay = transitionDelay = prefix + '-transition-delay'; - exports.transitionTiming = transitionTiming = prefix + '-transition-timing-function'; - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - exports.transform = transform; - exports.transitionProperty = transitionProperty; - exports.transitionTiming = transitionTiming; - exports.transitionDelay = transitionDelay; - exports.transitionDuration = transitionDuration; - exports.transitionEnd = transitionEnd; - exports.default = { - transform: transform, - end: transitionEnd, - property: transitionProperty, - timing: transitionTiming, - delay: transitionDelay, - duration: transitionDuration - }; + exports.SubMenu = _SubMenu2['default']; + exports.Item = _MenuItem2['default']; + exports.MenuItem = _MenuItem2['default']; + exports.MenuItemGroup = _MenuItemGroup2['default']; + exports.ItemGroup = _MenuItemGroup2['default']; + exports.Divider = _Divider2['default']; + exports['default'] = _Menu2['default']; + +/***/ }), +/* 598 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; + exports.__esModule = true; - function getTransitionProperties() { - var transitionEnd = void 0; - var prefix = ''; - var eventNames = { - O: 'otransitionend', - Moz: 'transitionend', - Webkit: 'webkitTransitionEnd', - ms: 'MSTransitionEnd' - }; + var _extends2 = __webpack_require__(289); - var element = document.createElement('div'); - for (var vendor in eventNames) { - if (eventNames.hasOwnProperty(vendor)) { - if (element.style[vendor + 'TransitionProperty'] !== undefined) { - prefix = '-' + vendor.toLowerCase(); - transitionEnd = eventNames[vendor]; - break; - } - } - }if (!transitionEnd && element.style.transitionProperty !== undefined) transitionEnd = 'transitionend'; + var _extends3 = _interopRequireDefault(_extends2); - element = null; + var _objectWithoutProperties2 = __webpack_require__(398); - return { transitionEnd: transitionEnd, prefix: prefix }; - } + var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); - /***/ }), - /* 28 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + var _classCallCheck2 = __webpack_require__(337); - "use strict"; - Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); - /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DragDropContext", function() { return DragDropContext; }); - /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Droppable", function() { return connectedDroppable; }); - /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Draggable", function() { return ConnectedDraggable; }); - /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resetServerContext", function() { return resetServerContext; }); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__ = __webpack_require__(1091); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_tiny_invariant__ = __webpack_require__(307); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_css_box_model__ = __webpack_require__(1092); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_corejs2_core_js_object_keys__ = __webpack_require__(1093); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_corejs2_core_js_object_keys___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_corejs2_core_js_object_keys__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_memoize_one__ = __webpack_require__(1097); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_redux__ = __webpack_require__(308); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__babel_runtime_corejs2_core_js_object_assign__ = __webpack_require__(306); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__babel_runtime_corejs2_core_js_object_assign___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_corejs2_core_js_object_assign__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_raf_schd__ = __webpack_require__(1101); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__babel_runtime_corejs2_helpers_esm_inheritsLoose__ = __webpack_require__(1102); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_react__ = __webpack_require__(0); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_react__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_prop_types__ = __webpack_require__(1); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_prop_types__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react_redux__ = __webpack_require__(1104); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_react_motion__ = __webpack_require__(1117); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_react_motion___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_12_react_motion__); + var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); + var _possibleConstructorReturn2 = __webpack_require__(338); + var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); + var _inherits2 = __webpack_require__(369); + var _inherits3 = _interopRequireDefault(_inherits2); + var _react = __webpack_require__(1); + var _react2 = _interopRequireDefault(_react); + var _propTypes = __webpack_require__(6); + var _propTypes2 = _interopRequireDefault(_propTypes); + var _miniStore = __webpack_require__(325); + var _SubPopupMenu = __webpack_require__(599); + var _SubPopupMenu2 = _interopRequireDefault(_SubPopupMenu); + var _util = __webpack_require__(600); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - var vertical = { - direction: 'vertical', - line: 'y', - crossAxisLine: 'x', - start: 'top', - end: 'bottom', - size: 'height', - crossAxisStart: 'left', - crossAxisEnd: 'right', - crossAxisSize: 'width' - }; - var horizontal = { - direction: 'horizontal', - line: 'x', - crossAxisLine: 'y', - start: 'left', - end: 'right', - size: 'width', - crossAxisStart: 'top', - crossAxisEnd: 'bottom', - crossAxisSize: 'height' - }; + var Menu = function (_React$Component) { + (0, _inherits3['default'])(Menu, _React$Component); - var origin = { - x: 0, - y: 0 - }; - var add = function add(point1, point2) { - return { - x: point1.x + point2.x, - y: point1.y + point2.y + function Menu(props) { + (0, _classCallCheck3['default'])(this, Menu); + + var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props)); + + _initialiseProps.call(_this); + + _this.isRootMenu = true; + + var selectedKeys = props.defaultSelectedKeys; + var openKeys = props.defaultOpenKeys; + if ('selectedKeys' in props) { + selectedKeys = props.selectedKeys || []; + } + if ('openKeys' in props) { + openKeys = props.openKeys || []; + } + + _this.store = (0, _miniStore.create)({ + selectedKeys: selectedKeys, + openKeys: openKeys, + activeKey: { '0-menu-': (0, _SubPopupMenu.getActiveKey)(props, props.activeKey) } + }); + return _this; + } + + Menu.prototype.componentDidMount = function componentDidMount() { + this.updateMiniStore(); }; - }; - var subtract = function subtract(point1, point2) { - return { - x: point1.x - point2.x, - y: point1.y - point2.y + + Menu.prototype.componentDidUpdate = function componentDidUpdate() { + this.updateMiniStore(); }; - }; - var isEqual = function isEqual(point1, point2) { - return point1.x === point2.x && point1.y === point2.y; - }; - var negate = function negate(point) { - return { - x: point.x !== 0 ? -point.x : 0, - y: point.y !== 0 ? -point.y : 0 + + // onKeyDown needs to be exposed as a instance method + // e.g., in rc-select, we need to navigate menu item while + // current active item is rc-select input box rather than the menu itself + + + Menu.prototype.updateMiniStore = function updateMiniStore() { + if ('selectedKeys' in this.props) { + this.store.setState({ + selectedKeys: this.props.selectedKeys || [] + }); + } + if ('openKeys' in this.props) { + this.store.setState({ + openKeys: this.props.openKeys || [] + }); + } }; - }; - var absolute = function absolute(point) { - return { - x: Math.abs(point.x), - y: Math.abs(point.y) + + Menu.prototype.render = function render() { + var _this2 = this; + + var props = (0, _objectWithoutProperties3['default'])(this.props, []); + + props.className += ' ' + props.prefixCls + '-root'; + props = (0, _extends3['default'])({}, props, { + onClick: this.onClick, + onOpenChange: this.onOpenChange, + onDeselect: this.onDeselect, + onSelect: this.onSelect, + openTransitionName: this.getOpenTransitionName(), + parentMenu: this + }); + return _react2['default'].createElement( + _miniStore.Provider, + { store: this.store }, + _react2['default'].createElement( + _SubPopupMenu2['default'], + (0, _extends3['default'])({}, props, { ref: function ref(c) { + return _this2.innerMenu = c; + } }), + this.props.children + ) + ); }; - }; - var patch = function patch(line, value, otherValue) { - var _ref; - if (otherValue === void 0) { - otherValue = 0; - } + return Menu; + }(_react2['default'].Component); - return _ref = {}, _ref[line] = value, _ref[line === 'x' ? 'y' : 'x'] = otherValue, _ref; - }; - var distance = function distance(point1, point2) { - return Math.sqrt(Math.pow(point2.x - point1.x, 2) + Math.pow(point2.y - point1.y, 2)); + Menu.propTypes = { + defaultSelectedKeys: _propTypes2['default'].arrayOf(_propTypes2['default'].string), + defaultActiveFirst: _propTypes2['default'].bool, + selectedKeys: _propTypes2['default'].arrayOf(_propTypes2['default'].string), + defaultOpenKeys: _propTypes2['default'].arrayOf(_propTypes2['default'].string), + openKeys: _propTypes2['default'].arrayOf(_propTypes2['default'].string), + mode: _propTypes2['default'].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']), + getPopupContainer: _propTypes2['default'].func, + onClick: _propTypes2['default'].func, + onSelect: _propTypes2['default'].func, + onDeselect: _propTypes2['default'].func, + onDestroy: _propTypes2['default'].func, + openTransitionName: _propTypes2['default'].string, + openAnimation: _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].object]), + subMenuOpenDelay: _propTypes2['default'].number, + subMenuCloseDelay: _propTypes2['default'].number, + forceSubMenuRender: _propTypes2['default'].bool, + triggerSubMenuAction: _propTypes2['default'].string, + level: _propTypes2['default'].number, + selectable: _propTypes2['default'].bool, + multiple: _propTypes2['default'].bool, + children: _propTypes2['default'].any, + className: _propTypes2['default'].string, + style: _propTypes2['default'].object, + activeKey: _propTypes2['default'].string, + prefixCls: _propTypes2['default'].string, + builtinPlacements: _propTypes2['default'].object, + itemIcon: _propTypes2['default'].oneOfType([_propTypes2['default'].func, _propTypes2['default'].node]), + expandIcon: _propTypes2['default'].oneOfType([_propTypes2['default'].func, _propTypes2['default'].node]), + overflowedIndicator: _propTypes2['default'].node }; - var closest = function closest(target, points) { - return Math.min.apply(Math, points.map(function (point) { - return distance(target, point); - })); + Menu.defaultProps = { + selectable: true, + onClick: _util.noop, + onSelect: _util.noop, + onOpenChange: _util.noop, + onDeselect: _util.noop, + defaultSelectedKeys: [], + defaultOpenKeys: [], + subMenuOpenDelay: 0.1, + subMenuCloseDelay: 0.1, + triggerSubMenuAction: 'hover', + prefixCls: 'rc-menu', + className: '', + mode: 'vertical', + style: {}, + builtinPlacements: {}, + overflowedIndicator: _react2['default'].createElement( + 'span', + null, + '\xB7\xB7\xB7' + ) }; - var apply = function apply(fn) { - return function (point) { - return { - x: fn(point.x), - y: fn(point.y) + + var _initialiseProps = function _initialiseProps() { + var _this3 = this; + + this.onSelect = function (selectInfo) { + var props = _this3.props; + if (props.selectable) { + // root menu + var selectedKeys = _this3.store.getState().selectedKeys; + var selectedKey = selectInfo.key; + if (props.multiple) { + selectedKeys = selectedKeys.concat([selectedKey]); + } else { + selectedKeys = [selectedKey]; + } + if (!('selectedKeys' in props)) { + _this3.store.setState({ + selectedKeys: selectedKeys + }); + } + props.onSelect((0, _extends3['default'])({}, selectInfo, { + selectedKeys: selectedKeys + })); + } + }; + + this.onClick = function (e) { + _this3.props.onClick(e); + }; + + this.onKeyDown = function (e, callback) { + _this3.innerMenu.getWrappedInstance().onKeyDown(e, callback); + }; + + this.onOpenChange = function (event) { + var props = _this3.props; + var openKeys = _this3.store.getState().openKeys.concat(); + var changed = false; + var processSingle = function processSingle(e) { + var oneChanged = false; + if (e.open) { + oneChanged = openKeys.indexOf(e.key) === -1; + if (oneChanged) { + openKeys.push(e.key); + } + } else { + var index = openKeys.indexOf(e.key); + oneChanged = index !== -1; + if (oneChanged) { + openKeys.splice(index, 1); + } + } + changed = changed || oneChanged; }; + if (Array.isArray(event)) { + // batch change call + event.forEach(processSingle); + } else { + processSingle(event); + } + if (changed) { + if (!('openKeys' in _this3.props)) { + _this3.store.setState({ openKeys: openKeys }); + } + props.onOpenChange(openKeys); + } }; - }; - var offsetByPosition = function offsetByPosition(spacing, point) { - return { - top: spacing.top + point.y, - left: spacing.left + point.x, - bottom: spacing.bottom + point.y, - right: spacing.right + point.x + this.onDeselect = function (selectInfo) { + var props = _this3.props; + if (props.selectable) { + var selectedKeys = _this3.store.getState().selectedKeys.concat(); + var selectedKey = selectInfo.key; + var index = selectedKeys.indexOf(selectedKey); + if (index !== -1) { + selectedKeys.splice(index, 1); + } + if (!('selectedKeys' in props)) { + _this3.store.setState({ + selectedKeys: selectedKeys + }); + } + props.onDeselect((0, _extends3['default'])({}, selectInfo, { + selectedKeys: selectedKeys + })); + } }; - }; - var expandByPosition = function expandByPosition(spacing, position) { - return { - top: spacing.top - position.y, - left: spacing.left - position.x, - right: spacing.right + position.x, - bottom: spacing.bottom + position.y + + this.getOpenTransitionName = function () { + var props = _this3.props; + var transitionName = props.openTransitionName; + var animationName = props.openAnimation; + if (!transitionName && typeof animationName === 'string') { + transitionName = props.prefixCls + '-open-' + animationName; + } + return transitionName; }; }; - var getCorners = function getCorners(spacing) { - return [{ - x: spacing.left, - y: spacing.top - }, { - x: spacing.right, - y: spacing.top - }, { - x: spacing.left, - y: spacing.bottom - }, { - x: spacing.right, - y: spacing.bottom - }]; - }; - var getMaxScroll = (function (_ref) { - var scrollHeight = _ref.scrollHeight, - scrollWidth = _ref.scrollWidth, - height = _ref.height, - width = _ref.width; - var maxScroll = subtract({ - x: scrollWidth, - y: scrollHeight - }, { - x: width, - y: height - }); - var adjustedMaxScroll = { - x: Math.max(0, maxScroll.x), - y: Math.max(0, maxScroll.y) - }; - return adjustedMaxScroll; - }); + exports['default'] = Menu; + module.exports = exports['default']; + +/***/ }), +/* 599 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - var clip = function clip(frame, subject) { - var result = Object(__WEBPACK_IMPORTED_MODULE_2_css_box_model__["d" /* getRect */])({ - top: Math.max(subject.top, frame.top), - right: Math.min(subject.right, frame.right), - bottom: Math.min(subject.bottom, frame.bottom), - left: Math.max(subject.left, frame.left) - }); + exports.__esModule = true; + exports.SubPopupMenu = undefined; - if (result.width <= 0 || result.height <= 0) { - return null; - } + var _objectWithoutProperties2 = __webpack_require__(398); - return result; - }; - var getDroppableDimension = function getDroppableDimension(_ref) { - var descriptor = _ref.descriptor, - isEnabled = _ref.isEnabled, - direction = _ref.direction, - client = _ref.client, - page = _ref.page, - closest$$1 = _ref.closest; + var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); - var scrollable = function () { - if (!closest$$1) { - return null; - } + var _classCallCheck2 = __webpack_require__(337); - var maxScroll = getMaxScroll({ - scrollHeight: closest$$1.scrollHeight, - scrollWidth: closest$$1.scrollWidth, - height: closest$$1.client.paddingBox.height, - width: closest$$1.client.paddingBox.width - }); - return { - framePageMarginBox: closest$$1.page.marginBox, - shouldClipSubject: closest$$1.shouldClipSubject, - scroll: { - initial: closest$$1.scroll, - current: closest$$1.scroll, - max: maxScroll, - diff: { - value: origin, - displacement: origin - } - } - }; - }(); + var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - var subjectPageMarginBox = page.marginBox; - var clippedPageMarginBox = scrollable && scrollable.shouldClipSubject ? clip(scrollable.framePageMarginBox, subjectPageMarginBox) : subjectPageMarginBox; - var viewport = { - closestScrollable: scrollable, - subjectPageMarginBox: subjectPageMarginBox, - clippedPageMarginBox: clippedPageMarginBox - }; - var dimension = { - descriptor: descriptor, - axis: direction === 'vertical' ? vertical : horizontal, - isEnabled: isEnabled, - client: client, - page: page, - viewport: viewport - }; - return dimension; - }; - var scrollDroppable = function scrollDroppable(droppable, newScroll) { - !droppable.viewport.closestScrollable ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - var scrollable = droppable.viewport.closestScrollable; - var framePageMarginBox = scrollable.framePageMarginBox; - var scrollDiff = subtract(newScroll, scrollable.scroll.initial); - var scrollDisplacement = negate(scrollDiff); - var closestScrollable = { - framePageMarginBox: scrollable.framePageMarginBox, - shouldClipSubject: scrollable.shouldClipSubject, - scroll: { - initial: scrollable.scroll.initial, - current: newScroll, - diff: { - value: scrollDiff, - displacement: scrollDisplacement - }, - max: scrollable.scroll.max - } - }; - var displacedSubject = offsetByPosition(droppable.viewport.subjectPageMarginBox, scrollDisplacement); - var clippedPageMarginBox = closestScrollable.shouldClipSubject ? clip(framePageMarginBox, displacedSubject) : Object(__WEBPACK_IMPORTED_MODULE_2_css_box_model__["d" /* getRect */])(displacedSubject); - var viewport = { - closestScrollable: closestScrollable, - subjectPageMarginBox: droppable.viewport.subjectPageMarginBox, - clippedPageMarginBox: clippedPageMarginBox - }; + var _possibleConstructorReturn2 = __webpack_require__(338); - var result = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({}, droppable, { - viewport: viewport - }); + var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - return result; - }; + var _inherits2 = __webpack_require__(369); - var toDroppableMap = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (droppables) { - return droppables.reduce(function (previous, current) { - previous[current.descriptor.id] = current; - return previous; - }, {}); - }); - var toDraggableMap = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (draggables) { - return draggables.reduce(function (previous, current) { - previous[current.descriptor.id] = current; - return previous; - }, {}); - }); - var toDroppableList = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (droppables) { - return __WEBPACK_IMPORTED_MODULE_3__babel_runtime_corejs2_core_js_object_keys___default()(droppables).map(function (id) { - return droppables[id]; - }); - }); - var toDraggableList = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (draggables) { - return __WEBPACK_IMPORTED_MODULE_3__babel_runtime_corejs2_core_js_object_keys___default()(draggables).map(function (id) { - return draggables[id]; - }); - }); + var _inherits3 = _interopRequireDefault(_inherits2); - var getDraggablesInsideDroppable = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (droppable, draggables) { - return toDraggableList(draggables).filter(function (draggable) { - return droppable.descriptor.id === draggable.descriptor.droppableId; - }).sort(function (a, b) { - return a.descriptor.index - b.descriptor.index; - }); - }); + var _extends4 = __webpack_require__(289); - var isWithin = (function (lowerBound, upperBound) { - return function (value) { - return value <= upperBound && value >= lowerBound; - }; - }); + var _extends5 = _interopRequireDefault(_extends4); - var isPositionInFrame = (function (frame) { - var isWithinVertical = isWithin(frame.top, frame.bottom); - var isWithinHorizontal = isWithin(frame.left, frame.right); - return function (point) { - return isWithinVertical(point.y) && isWithinVertical(point.y) && isWithinHorizontal(point.x) && isWithinHorizontal(point.x); - }; - }); + exports.getActiveKey = getActiveKey; + exports.saveRef = saveRef; - var getRequiredGrowth = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (draggable, draggables, droppable) { - var getResult = function getResult(existingSpace) { - var requiredSpace = draggable.page.marginBox[droppable.axis.size]; + var _react = __webpack_require__(1); - if (requiredSpace <= existingSpace) { - return null; - } + var _react2 = _interopRequireDefault(_react); - var requiredGrowth = patch(droppable.axis.line, requiredSpace - existingSpace); - return requiredGrowth; - }; + var _propTypes = __webpack_require__(6); - var dimensions = getDraggablesInsideDroppable(droppable, draggables); + var _propTypes2 = _interopRequireDefault(_propTypes); - if (!dimensions.length) { - var _existingSpace = droppable.page.marginBox[droppable.axis.size]; - return getResult(_existingSpace); - } + var _miniStore = __webpack_require__(325); - var endOfDraggables = dimensions[dimensions.length - 1].page.marginBox[droppable.axis.end]; - var endOfDroppable = droppable.page.marginBox[droppable.axis.end]; - var existingSpace = endOfDroppable - endOfDraggables; - return getResult(existingSpace); - }); - var getWithGrowth = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (area, growth) { - return Object(__WEBPACK_IMPORTED_MODULE_2_css_box_model__["d" /* getRect */])(expandByPosition(area, growth)); - }); + var _KeyCode = __webpack_require__(419); - var getClippedRectWithPlaceholder = function getClippedRectWithPlaceholder(_ref) { - var draggable = _ref.draggable, - draggables = _ref.draggables, - droppable = _ref.droppable, - previousDroppableOverId = _ref.previousDroppableOverId; - var isHome = draggable.descriptor.droppableId === droppable.descriptor.id; - var wasOver = Boolean(previousDroppableOverId && previousDroppableOverId === droppable.descriptor.id); - var clippedPageMarginBox = droppable.viewport.clippedPageMarginBox; + var _KeyCode2 = _interopRequireDefault(_KeyCode); - if (!clippedPageMarginBox) { - return clippedPageMarginBox; - } + var _createChainedFunction = __webpack_require__(332); - if (isHome || !wasOver) { - return clippedPageMarginBox; - } + var _createChainedFunction2 = _interopRequireDefault(_createChainedFunction); - var requiredGrowth = getRequiredGrowth(draggable, draggables, droppable); + var _classnames = __webpack_require__(5); - if (!requiredGrowth) { - return clippedPageMarginBox; - } + var _classnames2 = _interopRequireDefault(_classnames); - var subjectWithGrowth = getWithGrowth(clippedPageMarginBox, requiredGrowth); - var closestScrollable = droppable.viewport.closestScrollable; + var _util = __webpack_require__(600); - if (!closestScrollable) { - return subjectWithGrowth; - } + var _DOMWrap = __webpack_require__(601); - if (!closestScrollable.shouldClipSubject) { - return subjectWithGrowth; + var _DOMWrap2 = _interopRequireDefault(_DOMWrap); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + + function allDisabled(arr) { + if (!arr.length) { + return true; } + return arr.every(function (c) { + return !!c.props.disabled; + }); + } - return clip(closestScrollable.framePageMarginBox, subjectWithGrowth); - }; + function updateActiveKey(store, menuId, activeKey) { + var _extends2; - var getDroppableOver = (function (_ref2) { - var target = _ref2.target, - draggable = _ref2.draggable, - draggables = _ref2.draggables, - droppables = _ref2.droppables, - previousDroppableOverId = _ref2.previousDroppableOverId; - var maybe = toDroppableList(droppables).filter(function (droppable) { - return droppable.isEnabled; - }).find(function (droppable) { - var withPlaceholder = getClippedRectWithPlaceholder({ - draggable: draggable, - draggables: draggables, - droppable: droppable, - previousDroppableOverId: previousDroppableOverId + var state = store.getState(); + store.setState({ + activeKey: (0, _extends5['default'])({}, state.activeKey, (_extends2 = {}, _extends2[menuId] = activeKey, _extends2)) + }); + } + + function getEventKey(props) { + // when eventKey not available ,it's menu and return menu id '0-menu-' + return props.eventKey || '0-menu-'; + } + + function getActiveKey(props, originalActiveKey) { + var activeKey = originalActiveKey; + var children = props.children, + eventKey = props.eventKey; + + if (activeKey) { + var found = void 0; + (0, _util.loopMenuItem)(children, function (c, i) { + if (c && !c.props.disabled && activeKey === (0, _util.getKeyFromChildrenIndex)(c, eventKey, i)) { + found = true; + } + }); + if (found) { + return activeKey; + } + } + activeKey = null; + if (props.defaultActiveFirst) { + (0, _util.loopMenuItem)(children, function (c, i) { + if (!activeKey && c && !c.props.disabled) { + activeKey = (0, _util.getKeyFromChildrenIndex)(c, eventKey, i); + } }); + return activeKey; + } + return activeKey; + } - if (!withPlaceholder) { - return false; + function saveRef(c) { + if (c) { + var index = this.instanceArray.indexOf(c); + if (index !== -1) { + // update component if it's already inside instanceArray + this.instanceArray[index] = c; + } else { + // add component if it's not in instanceArray yet; + this.instanceArray.push(c); } + } + } - return isPositionInFrame(withPlaceholder)(target); - }); - return maybe ? maybe.descriptor.id : null; - }); + var SubPopupMenu = exports.SubPopupMenu = function (_React$Component) { + (0, _inherits3['default'])(SubPopupMenu, _React$Component); - var noMovement = { - displaced: [], - amount: origin, - isBeyondStartPosition: false - }; - var noImpact = { - movement: noMovement, - direction: null, - destination: null - }; + function SubPopupMenu(props) { + var _extends3; - var getDisplacementMap = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (displaced) { - return displaced.reduce(function (map, displacement) { - map[displacement.draggableId] = displacement; - return map; - }, {}); - }); + (0, _classCallCheck3['default'])(this, SubPopupMenu); - var isPartiallyVisibleThroughFrame = (function (frame) { - var isWithinVertical = isWithin(frame.top, frame.bottom); - var isWithinHorizontal = isWithin(frame.left, frame.right); - return function (subject) { - var isContained = isWithinVertical(subject.top) && isWithinVertical(subject.bottom) && isWithinHorizontal(subject.left) && isWithinHorizontal(subject.right); + var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props)); - if (isContained) { - return true; + _initialiseProps.call(_this); + + props.store.setState({ + activeKey: (0, _extends5['default'])({}, props.store.getState().activeKey, (_extends3 = {}, _extends3[props.eventKey] = getActiveKey(props, props.activeKey), _extends3)) + }); + + _this.instanceArray = []; + return _this; + } + + SubPopupMenu.prototype.componentDidMount = function componentDidMount() { + // invoke customized ref to expose component to mixin + if (this.props.manualRef) { + this.props.manualRef(this); } + }; - var isPartiallyVisibleVertically = isWithinVertical(subject.top) || isWithinVertical(subject.bottom); - var isPartiallyVisibleHorizontally = isWithinHorizontal(subject.left) || isWithinHorizontal(subject.right); - var isPartiallyContained = isPartiallyVisibleVertically && isPartiallyVisibleHorizontally; + SubPopupMenu.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) { + return this.props.visible || nextProps.visible; + }; - if (isPartiallyContained) { - return true; + SubPopupMenu.prototype.componentDidUpdate = function componentDidUpdate() { + var props = this.props; + var originalActiveKey = 'activeKey' in props ? props.activeKey : props.store.getState().activeKey[getEventKey(props)]; + var activeKey = getActiveKey(props, originalActiveKey); + if (activeKey !== originalActiveKey) { + updateActiveKey(props.store, getEventKey(props), activeKey); } + }; - var isBiggerVertically = subject.top < frame.top && subject.bottom > frame.bottom; - var isBiggerHorizontally = subject.left < frame.left && subject.right > frame.right; - var isTargetBiggerThanFrame = isBiggerVertically && isBiggerHorizontally; + // all keyboard events callbacks run from here at first - if (isTargetBiggerThanFrame) { - return true; + + SubPopupMenu.prototype.render = function render() { + var _this2 = this; + + var props = (0, _objectWithoutProperties3['default'])(this.props, []); + + this.instanceArray = []; + var className = (0, _classnames2['default'])(props.prefixCls, props.className, props.prefixCls + '-' + props.mode); + var domProps = { + className: className, + // role could be 'select' and by default set to menu + role: props.role || 'menu' + }; + if (props.id) { + domProps.id = props.id; + } + if (props.focusable) { + domProps.tabIndex = '0'; + domProps.onKeyDown = this.onKeyDown; } + var prefixCls = props.prefixCls, + eventKey = props.eventKey, + visible = props.visible, + level = props.level, + mode = props.mode, + overflowedIndicator = props.overflowedIndicator, + theme = props.theme; - var isTargetBiggerOnOneAxis = isBiggerVertically && isPartiallyVisibleHorizontally || isBiggerHorizontally && isPartiallyVisibleVertically; - return isTargetBiggerOnOneAxis; - }; - }); + _util.menuAllProps.forEach(function (key) { + return delete props[key]; + }); - var isTotallyVisibleThroughFrame = (function (frame) { - var isWithinVertical = isWithin(frame.top, frame.bottom); - var isWithinHorizontal = isWithin(frame.left, frame.right); - return function (subject) { - var isContained = isWithinVertical(subject.top) && isWithinVertical(subject.bottom) && isWithinHorizontal(subject.left) && isWithinHorizontal(subject.right); - return isContained; - }; - }); + // Otherwise, the propagated click event will trigger another onClick + delete props.onClick; - var isVisible = function isVisible(_ref) { - var target = _ref.target, - destination = _ref.destination, - viewport = _ref.viewport, - isVisibleThroughFrameFn = _ref.isVisibleThroughFrameFn; - var displacement = destination.viewport.closestScrollable ? destination.viewport.closestScrollable.scroll.diff.displacement : origin; - var withDisplacement = offsetByPosition(target, displacement); + return ( + // ESLint is not smart enough to know that the type of `children` was checked. + /* eslint-disable */ + _react2['default'].createElement( + _DOMWrap2['default'], + (0, _extends5['default'])({}, props, { + prefixCls: prefixCls, + mode: mode, + tag: 'ul', + level: level, + theme: theme, + hiddenClassName: prefixCls + '-hidden', + visible: visible, + overflowedIndicator: overflowedIndicator + }, domProps), + _react2['default'].Children.map(props.children, function (c, i) { + return _this2.renderMenuItem(c, i, eventKey || '0-menu-'); + }) + ) + /*eslint-enable */ - if (!destination.viewport.clippedPageMarginBox) { - return false; - } + ); + }; - var isVisibleInDroppable = isVisibleThroughFrameFn(destination.viewport.clippedPageMarginBox)(withDisplacement); - var isVisibleInViewport = isVisibleThroughFrameFn(viewport)(withDisplacement); - return isVisibleInDroppable && isVisibleInViewport; - }; + return SubPopupMenu; + }(_react2['default'].Component); - var isPartiallyVisible = function isPartiallyVisible(_ref2) { - var target = _ref2.target, - destination = _ref2.destination, - viewport = _ref2.viewport; - return isVisible({ - target: target, - destination: destination, - viewport: viewport, - isVisibleThroughFrameFn: isPartiallyVisibleThroughFrame - }); + SubPopupMenu.propTypes = { + onSelect: _propTypes2['default'].func, + onClick: _propTypes2['default'].func, + onDeselect: _propTypes2['default'].func, + onOpenChange: _propTypes2['default'].func, + onDestroy: _propTypes2['default'].func, + openTransitionName: _propTypes2['default'].string, + openAnimation: _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].object]), + openKeys: _propTypes2['default'].arrayOf(_propTypes2['default'].string), + visible: _propTypes2['default'].bool, + children: _propTypes2['default'].any, + parentMenu: _propTypes2['default'].object, + eventKey: _propTypes2['default'].string, + store: _propTypes2['default'].shape({ + getState: _propTypes2['default'].func, + setState: _propTypes2['default'].func + }), + + // adding in refactor + focusable: _propTypes2['default'].bool, + multiple: _propTypes2['default'].bool, + style: _propTypes2['default'].object, + defaultActiveFirst: _propTypes2['default'].bool, + activeKey: _propTypes2['default'].string, + selectedKeys: _propTypes2['default'].arrayOf(_propTypes2['default'].string), + defaultSelectedKeys: _propTypes2['default'].arrayOf(_propTypes2['default'].string), + defaultOpenKeys: _propTypes2['default'].arrayOf(_propTypes2['default'].string), + level: _propTypes2['default'].number, + mode: _propTypes2['default'].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']), + triggerSubMenuAction: _propTypes2['default'].oneOf(['click', 'hover']), + inlineIndent: _propTypes2['default'].oneOfType([_propTypes2['default'].number, _propTypes2['default'].string]), + manualRef: _propTypes2['default'].func, + itemIcon: _propTypes2['default'].oneOfType([_propTypes2['default'].func, _propTypes2['default'].node]), + expandIcon: _propTypes2['default'].oneOfType([_propTypes2['default'].func, _propTypes2['default'].node]) }; - var isTotallyVisible = function isTotallyVisible(_ref3) { - var target = _ref3.target, - destination = _ref3.destination, - viewport = _ref3.viewport; - return isVisible({ - target: target, - destination: destination, - viewport: viewport, - isVisibleThroughFrameFn: isTotallyVisibleThroughFrame - }); + SubPopupMenu.defaultProps = { + prefixCls: 'rc-menu', + className: '', + mode: 'vertical', + level: 1, + inlineIndent: 24, + visible: true, + focusable: true, + style: {}, + manualRef: _util.noop }; - var getDisplacement = (function (_ref) { - var draggable = _ref.draggable, - destination = _ref.destination, - previousImpact = _ref.previousImpact, - viewport = _ref.viewport; - var id = draggable.descriptor.id; - var map = getDisplacementMap(previousImpact.movement.displaced); - var isVisible = isPartiallyVisible({ - target: draggable.page.marginBox, - destination: destination, - viewport: viewport - }); + var _initialiseProps = function _initialiseProps() { + var _this3 = this; - var shouldAnimate = function () { - if (!isVisible) { - return false; + this.onKeyDown = function (e, callback) { + var keyCode = e.keyCode; + var handled = void 0; + _this3.getFlatInstanceArray().forEach(function (obj) { + if (obj && obj.props.active && obj.onKeyDown) { + handled = obj.onKeyDown(e); + } + }); + if (handled) { + return 1; + } + var activeItem = null; + if (keyCode === _KeyCode2['default'].UP || keyCode === _KeyCode2['default'].DOWN) { + activeItem = _this3.step(keyCode === _KeyCode2['default'].UP ? -1 : 1); } + if (activeItem) { + e.preventDefault(); + updateActiveKey(_this3.props.store, getEventKey(_this3.props), activeItem.props.eventKey); - var previous = map[id]; + if (typeof callback === 'function') { + callback(activeItem); + } - if (!previous) { - return true; + return 1; } + }; - return previous.shouldAnimate; - }(); + this.onItemHover = function (e) { + var key = e.key, + hover = e.hover; - var displacement = { - draggableId: id, - isVisible: isVisible, - shouldAnimate: shouldAnimate + updateActiveKey(_this3.props.store, getEventKey(_this3.props), hover ? key : null); }; - return displacement; - }); - var withDroppableScroll = (function (droppable, point) { - var closestScrollable = droppable.viewport.closestScrollable; + this.onDeselect = function (selectInfo) { + _this3.props.onDeselect(selectInfo); + }; - if (!closestScrollable) { - return point; - } + this.onSelect = function (selectInfo) { + _this3.props.onSelect(selectInfo); + }; - return add(point, closestScrollable.scroll.diff.value); - }); + this.onClick = function (e) { + _this3.props.onClick(e); + }; - var inHomeList = (function (_ref) { - var pageBorderBoxCenter = _ref.pageBorderBoxCenter, - draggable = _ref.draggable, - home = _ref.home, - insideHome = _ref.insideHome, - previousImpact = _ref.previousImpact, - viewport = _ref.viewport; - var axis = home.axis; - var originalCenter = draggable.page.borderBox.center; - var currentCenter = withDroppableScroll(home, pageBorderBoxCenter); - var isBeyondStartPosition = currentCenter[axis.line] - originalCenter[axis.line] > 0; - var amount = patch(axis.line, draggable.client.marginBox[axis.size]); - var displaced = insideHome.filter(function (child) { - if (child === draggable) { - return false; - } + this.onOpenChange = function (e) { + _this3.props.onOpenChange(e); + }; - var borderBox = child.page.borderBox; + this.onDestroy = function (key) { + /* istanbul ignore next */ + _this3.props.onDestroy(key); + }; - if (isBeyondStartPosition) { - if (borderBox.center[axis.line] < originalCenter[axis.line]) { - return false; - } + this.getFlatInstanceArray = function () { + return _this3.instanceArray; + }; - return currentCenter[axis.line] > borderBox[axis.start]; - } + this.getOpenTransitionName = function () { + return _this3.props.openTransitionName; + }; - if (originalCenter[axis.line] < borderBox.center[axis.line]) { - return false; + this.step = function (direction) { + var children = _this3.getFlatInstanceArray(); + var activeKey = _this3.props.store.getState().activeKey[getEventKey(_this3.props)]; + var len = children.length; + if (!len) { + return null; } - - return currentCenter[axis.line] < borderBox[axis.end]; - }).map(function (dimension) { - return getDisplacement({ - draggable: dimension, - destination: home, - previousImpact: previousImpact, - viewport: viewport.frame - }); - }); - var ordered = isBeyondStartPosition ? displaced.reverse() : displaced; - - var index = function () { - var startIndex = draggable.descriptor.index; - var length = ordered.length; - - if (!length) { - return startIndex; + if (direction < 0) { + children = children.concat().reverse(); } - - if (isBeyondStartPosition) { - return startIndex + length; + // find current activeIndex + var activeIndex = -1; + children.every(function (c, ci) { + if (c && c.props.eventKey === activeKey) { + activeIndex = ci; + return false; + } + return true; + }); + if (!_this3.props.defaultActiveFirst && activeIndex !== -1 && allDisabled(children.slice(activeIndex, len - 1))) { + return undefined; } + var start = (activeIndex + 1) % len; + var i = start; - return startIndex - length; - }(); + do { + var child = children[i]; + if (!child || child.props.disabled) { + i = (i + 1) % len; + } else { + return child; + } + } while (i !== start); - var movement = { - amount: amount, - displaced: ordered, - isBeyondStartPosition: isBeyondStartPosition + return null; }; - var impact = { - movement: movement, - direction: axis.direction, - destination: { - droppableId: home.descriptor.id, - index: index + + this.renderCommonMenuItem = function (child, i, extraProps) { + var state = _this3.props.store.getState(); + var props = _this3.props; + var key = (0, _util.getKeyFromChildrenIndex)(child, props.eventKey, i); + var childProps = child.props; + var isActive = key === state.activeKey; + var newChildProps = (0, _extends5['default'])({ + mode: childProps.mode || props.mode, + level: props.level, + inlineIndent: props.inlineIndent, + renderMenuItem: _this3.renderMenuItem, + rootPrefixCls: props.prefixCls, + index: i, + parentMenu: props.parentMenu, + // customized ref function, need to be invoked manually in child's componentDidMount + manualRef: childProps.disabled ? undefined : (0, _createChainedFunction2['default'])(child.ref, saveRef.bind(_this3)), + eventKey: key, + active: !childProps.disabled && isActive, + multiple: props.multiple, + onClick: function onClick(e) { + (childProps.onClick || _util.noop)(e); + _this3.onClick(e); + }, + onItemHover: _this3.onItemHover, + openTransitionName: _this3.getOpenTransitionName(), + openAnimation: props.openAnimation, + subMenuOpenDelay: props.subMenuOpenDelay, + subMenuCloseDelay: props.subMenuCloseDelay, + forceSubMenuRender: props.forceSubMenuRender, + onOpenChange: _this3.onOpenChange, + onDeselect: _this3.onDeselect, + onSelect: _this3.onSelect, + builtinPlacements: props.builtinPlacements, + itemIcon: childProps.itemIcon || _this3.props.itemIcon, + expandIcon: childProps.expandIcon || _this3.props.expandIcon + }, extraProps); + if (props.mode === 'inline') { + newChildProps.triggerSubMenuAction = 'click'; } + return _react2['default'].cloneElement(child, newChildProps); }; - return impact; - }); - var inForeignList = (function (_ref) { - var pageBorderBoxCenter = _ref.pageBorderBoxCenter, - draggable = _ref.draggable, - destination = _ref.destination, - insideDestination = _ref.insideDestination, - previousImpact = _ref.previousImpact, - viewport = _ref.viewport; - var axis = destination.axis; - var currentCenter = withDroppableScroll(destination, pageBorderBoxCenter); - var displaced = insideDestination.filter(function (child) { - var threshold = child.page.borderBox[axis.end]; - return threshold > currentCenter[axis.line]; - }).map(function (dimension) { - return getDisplacement({ - draggable: dimension, - destination: destination, - previousImpact: previousImpact, - viewport: viewport.frame - }); - }); - var newIndex = insideDestination.length - displaced.length; - var movement = { - amount: patch(axis.line, draggable.page.marginBox[axis.size]), - displaced: displaced, - isBeyondStartPosition: false - }; - var impact = { - movement: movement, - direction: axis.direction, - destination: { - droppableId: destination.descriptor.id, - index: newIndex + this.renderMenuItem = function (c, i, subMenuKey) { + /* istanbul ignore if */ + if (!c) { + return null; } + var state = _this3.props.store.getState(); + var extraProps = { + openKeys: state.openKeys, + selectedKeys: state.selectedKeys, + triggerSubMenuAction: _this3.props.triggerSubMenuAction, + subMenuKey: subMenuKey + }; + return _this3.renderCommonMenuItem(c, i, extraProps); }; - return impact; - }); + }; - var getDragImpact = (function (_ref) { - var pageBorderBoxCenter = _ref.pageBorderBoxCenter, - draggable = _ref.draggable, - draggables = _ref.draggables, - droppables = _ref.droppables, - previousImpact = _ref.previousImpact, - viewport = _ref.viewport; - var previousDroppableOverId = previousImpact.destination && previousImpact.destination.droppableId; - var destinationId = getDroppableOver({ - target: pageBorderBoxCenter, - draggable: draggable, - draggables: draggables, - droppables: droppables, - previousDroppableOverId: previousDroppableOverId - }); + var connected = (0, _miniStore.connect)()(SubPopupMenu); - if (!destinationId) { - return noImpact; - } + exports['default'] = connected; + +/***/ }), +/* 600 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - var destination = droppables[destinationId]; + exports.__esModule = true; + exports.setStyle = exports.getWidth = exports.menuAllProps = undefined; + exports.noop = noop; + exports.getKeyFromChildrenIndex = getKeyFromChildrenIndex; + exports.getMenuIdFromSubMenuEventKey = getMenuIdFromSubMenuEventKey; + exports.loopMenuItem = loopMenuItem; + exports.loopMenuItemRecursively = loopMenuItemRecursively; - if (!destination.isEnabled) { - return noImpact; - } + var _react = __webpack_require__(1); - var home = droppables[draggable.descriptor.droppableId]; - var isWithinHomeDroppable = home.descriptor.id === destinationId; - var insideDestination = getDraggablesInsideDroppable(destination, draggables); + var _react2 = _interopRequireDefault(_react); - if (isWithinHomeDroppable) { - return inHomeList({ - pageBorderBoxCenter: pageBorderBoxCenter, - draggable: draggable, - home: home, - insideHome: insideDestination, - previousImpact: previousImpact || noImpact, - viewport: viewport - }); - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - return inForeignList({ - pageBorderBoxCenter: pageBorderBoxCenter, - draggable: draggable, - destination: destination, - insideDestination: insideDestination, - previousImpact: previousImpact || noImpact, - viewport: viewport - }); - }); + function noop() {} - var getHomeLocation = (function (critical) { - return { - index: critical.draggable.index, - droppableId: critical.droppable.id - }; - }); + function getKeyFromChildrenIndex(child, menuEventKey, index) { + var prefix = menuEventKey || ''; + return child.key || prefix + 'item_' + index; + } - var getSafeClipped = function getSafeClipped(droppable) { - var rect = droppable.viewport.clippedPageMarginBox; - !rect ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot get clipped area from droppable') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - return rect; - }; + function getMenuIdFromSubMenuEventKey(eventKey) { + return eventKey + '-menu-'; + } - var getBestCrossAxisDroppable = (function (_ref) { - var isMovingForward = _ref.isMovingForward, - pageBorderBoxCenter = _ref.pageBorderBoxCenter, - source = _ref.source, - droppables = _ref.droppables, - viewport = _ref.viewport; - var sourceClipped = source.viewport.clippedPageMarginBox; + function loopMenuItem(children, cb) { + var index = -1; + _react2['default'].Children.forEach(children, function (c) { + index++; + if (c && c.type && c.type.isMenuItemGroup) { + _react2['default'].Children.forEach(c.props.children, function (c2) { + index++; + cb(c2, index); + }); + } else { + cb(c, index); + } + }); + } - if (!sourceClipped) { - return null; + function loopMenuItemRecursively(children, keys, ret) { + /* istanbul ignore if */ + if (!children || ret.find) { + return; } + _react2['default'].Children.forEach(children, function (c) { + if (c) { + var construct = c.type; + if (!construct || !(construct.isSubMenu || construct.isMenuItem || construct.isMenuItemGroup)) { + return; + } + if (keys.indexOf(c.key) !== -1) { + ret.find = true; + } else if (c.props.children) { + loopMenuItemRecursively(c.props.children, keys, ret); + } + } + }); + } - var axis = source.axis; - var isBetweenSourceClipped = isWithin(sourceClipped[axis.start], sourceClipped[axis.end]); - var candidates = toDroppableList(droppables).filter(function (droppable) { - return droppable !== source; - }).filter(function (droppable) { - return droppable.isEnabled; - }).filter(function (droppable) { - var clippedPageMarginBox = droppable.viewport.clippedPageMarginBox; + var menuAllProps = exports.menuAllProps = ['defaultSelectedKeys', 'selectedKeys', 'defaultOpenKeys', 'openKeys', 'mode', 'getPopupContainer', 'onSelect', 'onDeselect', 'onDestroy', 'openTransitionName', 'openAnimation', 'subMenuOpenDelay', 'subMenuCloseDelay', 'forceSubMenuRender', 'triggerSubMenuAction', 'level', 'selectable', 'multiple', 'onOpenChange', 'visible', 'focusable', 'defaultActiveFirst', 'prefixCls', 'inlineIndent', 'parentMenu', 'title', 'rootPrefixCls', 'eventKey', 'active', 'onItemHover', 'onTitleMouseEnter', 'onTitleMouseLeave', 'onTitleClick', 'popupAlign', 'popupOffset', 'isOpen', 'renderMenuItem', 'manualRef', 'subMenuKey', 'disabled', 'index', 'isSelected', 'store', 'activeKey', 'builtinPlacements', 'overflowedIndicator', - if (!clippedPageMarginBox) { - return false; - } + // the following keys found need to be removed from test regression + 'attribute', 'value', 'popupClassName', 'inlineCollapsed', 'menu', 'theme', 'itemIcon', 'expandIcon']; - return isPartiallyVisibleThroughFrame(viewport.frame)(clippedPageMarginBox); - }).filter(function (droppable) { - var targetClipped = getSafeClipped(droppable); + var getWidth = exports.getWidth = function getWidth(elem) { + return elem && typeof elem.getBoundingClientRect === 'function' && elem.getBoundingClientRect().width || 0; + }; - if (isMovingForward) { - return sourceClipped[axis.crossAxisEnd] < targetClipped[axis.crossAxisEnd]; - } + var setStyle = exports.setStyle = function setStyle(elem, styleProperty, value) { + if (elem && typeof elem.style === 'object') { + elem.style[styleProperty] = value; + } + }; + +/***/ }), +/* 601 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - return targetClipped[axis.crossAxisStart] < sourceClipped[axis.crossAxisStart]; - }).filter(function (droppable) { - var targetClipped = getSafeClipped(droppable); - var isBetweenDestinationClipped = isWithin(targetClipped[axis.start], targetClipped[axis.end]); - return isBetweenSourceClipped(targetClipped[axis.start]) || isBetweenSourceClipped(targetClipped[axis.end]) || isBetweenDestinationClipped(sourceClipped[axis.start]) || isBetweenDestinationClipped(sourceClipped[axis.end]); - }).sort(function (a, b) { - var first = getSafeClipped(a)[axis.crossAxisStart]; - var second = getSafeClipped(b)[axis.crossAxisStart]; + exports.__esModule = true; - if (isMovingForward) { - return first - second; - } + var _extends2 = __webpack_require__(289); - return second - first; - }).filter(function (droppable, index, array) { - return getSafeClipped(droppable)[axis.crossAxisStart] === getSafeClipped(array[0])[axis.crossAxisStart]; - }); + var _extends3 = _interopRequireDefault(_extends2); - if (!candidates.length) { - return null; - } + var _objectWithoutProperties2 = __webpack_require__(398); - if (candidates.length === 1) { - return candidates[0]; - } + var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); - var contains = candidates.filter(function (droppable) { - var isWithinDroppable = isWithin(getSafeClipped(droppable)[axis.start], getSafeClipped(droppable)[axis.end]); - return isWithinDroppable(pageBorderBoxCenter[axis.line]); - }); + var _classCallCheck2 = __webpack_require__(337); - if (contains.length === 1) { - return contains[0]; - } + var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - if (contains.length > 1) { - return contains.sort(function (a, b) { - return getSafeClipped(a)[axis.start] - getSafeClipped(b)[axis.start]; - })[0]; - } + var _possibleConstructorReturn2 = __webpack_require__(338); - return candidates.sort(function (a, b) { - var first = closest(pageBorderBoxCenter, getCorners(getSafeClipped(a))); - var second = closest(pageBorderBoxCenter, getCorners(getSafeClipped(b))); + var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - if (first !== second) { - return first - second; - } + var _inherits2 = __webpack_require__(369); - return getSafeClipped(a)[axis.start] - getSafeClipped(b)[axis.start]; - })[0]; - }); + var _inherits3 = _interopRequireDefault(_inherits2); - var withDroppableDisplacement = (function (droppable, point) { - var closestScrollable = droppable.viewport.closestScrollable; + var _react = __webpack_require__(1); - if (!closestScrollable) { - return point; - } + var _react2 = _interopRequireDefault(_react); - return add(point, closestScrollable.scroll.diff.displacement); - }); + var _reactDom = __webpack_require__(2); - var getClosestDraggable = (function (_ref) { - var axis = _ref.axis, - viewport = _ref.viewport, - pageBorderBoxCenter = _ref.pageBorderBoxCenter, - destination = _ref.destination, - insideDestination = _ref.insideDestination; + var _reactDom2 = _interopRequireDefault(_reactDom); - if (!insideDestination.length) { - return null; - } + var _propTypes = __webpack_require__(6); - var result = insideDestination.filter(function (draggable) { - return isTotallyVisible({ - target: draggable.page.borderBox, - destination: destination, - viewport: viewport.frame - }); - }).sort(function (a, b) { - var distanceToA = distance(pageBorderBoxCenter, withDroppableDisplacement(destination, a.page.borderBox.center)); - var distanceToB = distance(pageBorderBoxCenter, withDroppableDisplacement(destination, b.page.borderBox.center)); + var _propTypes2 = _interopRequireDefault(_propTypes); - if (distanceToA < distanceToB) { - return -1; - } + var _resizeObserverPolyfill = __webpack_require__(287); - if (distanceToB < distanceToA) { - return 1; - } + var _resizeObserverPolyfill2 = _interopRequireDefault(_resizeObserverPolyfill); - return a.page.borderBox[axis.start] - b.page.borderBox[axis.start]; - }); - return result.length ? result[0] : null; - }); + var _SubMenu = __webpack_require__(602); - var moveToEdge = (function (_ref) { - var source = _ref.source, - sourceEdge = _ref.sourceEdge, - destination = _ref.destination, - destinationEdge = _ref.destinationEdge, - destinationAxis = _ref.destinationAxis; + var _SubMenu2 = _interopRequireDefault(_SubMenu); - var getCorner = function getCorner(area) { - return patch(destinationAxis.line, area[destinationAxis[destinationEdge]], area[destinationAxis.crossAxisStart]); - }; + var _util = __webpack_require__(600); - var corner = getCorner(destination); - var centerDiff = absolute(subtract(source.center, getCorner(source))); - var signed = patch(destinationAxis.line, (sourceEdge === 'end' ? -1 : 1) * centerDiff[destinationAxis.line], centerDiff[destinationAxis.crossAxisLine]); - return add(corner, signed); - }); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - var toHomeList = (function (_ref) { - var amount = _ref.amount, - homeIndex = _ref.homeIndex, - movingRelativeTo = _ref.movingRelativeTo, - insideDestination = _ref.insideDestination, - draggable = _ref.draggable, - destination = _ref.destination, - previousImpact = _ref.previousImpact, - viewport = _ref.viewport; - var axis = destination.axis; - var targetIndex = insideDestination.indexOf(movingRelativeTo); - !(targetIndex !== -1) ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Unable to find target in destination droppable') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement); - if (targetIndex === homeIndex) { - var _newCenter = draggable.page.borderBox.center; - var _newImpact = { - movement: { - displaced: [], - amount: amount, - isBeyondStartPosition: false - }, - direction: destination.axis.direction, - destination: { - droppableId: destination.descriptor.id, - index: homeIndex - } - }; - return { - pageBorderBoxCenter: withDroppableDisplacement(destination, _newCenter), - impact: _newImpact - }; - } + var MENUITEM_OVERFLOWED_CLASSNAME = 'menuitem-overflowed'; - var isMovingPastOriginalIndex = targetIndex > homeIndex; - var edge = isMovingPastOriginalIndex ? 'end' : 'start'; - var newCenter = moveToEdge({ - source: draggable.page.borderBox, - sourceEdge: edge, - destination: isMovingPastOriginalIndex ? movingRelativeTo.page.borderBox : movingRelativeTo.page.marginBox, - destinationEdge: edge, - destinationAxis: axis - }); + // Fix ssr + if (canUseDOM) { + __webpack_require__(400); + } - var modified = function () { - if (!isMovingPastOriginalIndex) { - return insideDestination.slice(targetIndex, homeIndex); - } + var DOMWrap = function (_React$Component) { + (0, _inherits3['default'])(DOMWrap, _React$Component); - var from = homeIndex + 1; - var to = targetIndex + 1; - return insideDestination.slice(from, to).reverse(); - }(); + function DOMWrap() { + var _temp, _this, _ret; - var displaced = modified.map(function (dimension) { - return getDisplacement({ - draggable: dimension, - destination: destination, - previousImpact: previousImpact, - viewport: viewport.frame - }); - }); - var newImpact = { - movement: { - displaced: displaced, - amount: amount, - isBeyondStartPosition: isMovingPastOriginalIndex - }, - direction: axis.direction, - destination: { - droppableId: destination.descriptor.id, - index: targetIndex - } - }; - return { - pageBorderBoxCenter: withDroppableDisplacement(destination, newCenter), - impact: newImpact - }; - }); + (0, _classCallCheck3['default'])(this, DOMWrap); - var toForeignList = (function (_ref) { - var amount = _ref.amount, - pageBorderBoxCenter = _ref.pageBorderBoxCenter, - movingRelativeTo = _ref.movingRelativeTo, - insideDestination = _ref.insideDestination, - draggable = _ref.draggable, - destination = _ref.destination, - previousImpact = _ref.previousImpact, - viewport = _ref.viewport; - var axis = destination.axis; - var isGoingBeforeTarget = Boolean(movingRelativeTo && pageBorderBoxCenter[destination.axis.line] < movingRelativeTo.page.borderBox.center[destination.axis.line]); + for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } - if (!movingRelativeTo) { - var _newCenter = moveToEdge({ - source: draggable.page.borderBox, - sourceEdge: 'start', - destination: destination.page.contentBox, - destinationEdge: 'start', - destinationAxis: axis - }); + return _ret = (_temp = (_this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.state = { + lastVisibleIndex: undefined + }, _this.getMenuItemNodes = function () { + var prefixCls = _this.props.prefixCls; - var _newImpact = { - movement: { - displaced: [], - amount: amount, - isBeyondStartPosition: false - }, - direction: axis.direction, - destination: { - droppableId: destination.descriptor.id, - index: 0 + var ul = _reactDom2['default'].findDOMNode(_this); + if (!ul) { + return []; } - }; - return { - pageBorderBoxCenter: withDroppableDisplacement(destination, _newCenter), - impact: _newImpact - }; - } - var targetIndex = insideDestination.indexOf(movingRelativeTo); - !(targetIndex !== -1) ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'The target was not found within its droppable') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - var proposedIndex = isGoingBeforeTarget ? targetIndex : targetIndex + 1; - var newCenter = moveToEdge({ - source: draggable.page.borderBox, - sourceEdge: 'start', - destination: movingRelativeTo.page.marginBox, - destinationEdge: isGoingBeforeTarget ? 'start' : 'end', - destinationAxis: axis - }); - var displaced = insideDestination.slice(proposedIndex, insideDestination.length).map(function (dimension) { - return getDisplacement({ - draggable: dimension, - destination: destination, - viewport: viewport.frame, - previousImpact: previousImpact - }); - }); - var newImpact = { - movement: { - displaced: displaced, - amount: amount, - isBeyondStartPosition: false - }, - direction: axis.direction, - destination: { - droppableId: destination.descriptor.id, - index: proposedIndex - } - }; - return { - pageBorderBoxCenter: withDroppableDisplacement(destination, newCenter), - impact: newImpact - }; - }); + // filter out all overflowed indicator placeholder + return [].slice.call(ul.children).filter(function (node) { + return node.className.split(' ').indexOf(prefixCls + '-overflowed-submenu') < 0; + }); + }, _this.getOverflowedSubMenuItem = function (keyPrefix, overflowedItems, renderPlaceholder) { + var _this$props = _this.props, + overflowedIndicator = _this$props.overflowedIndicator, + level = _this$props.level, + mode = _this$props.mode, + prefixCls = _this$props.prefixCls, + theme = _this$props.theme, + propStyle = _this$props.style; - var moveToNewDroppable = (function (_ref) { - var pageBorderBoxCenter = _ref.pageBorderBoxCenter, - destination = _ref.destination, - insideDestination = _ref.insideDestination, - draggable = _ref.draggable, - movingRelativeTo = _ref.movingRelativeTo, - home = _ref.home, - previousImpact = _ref.previousImpact, - viewport = _ref.viewport; - var amount = patch(destination.axis.line, draggable.client.marginBox[destination.axis.size]); + if (level !== 1 || mode !== 'horizontal') { + return null; + } + // put all the overflowed item inside a submenu + // with a title of overflow indicator ('...') + var copy = _this.props.children[0]; + var _copy$props = copy.props, + throwAway = _copy$props.children, + title = _copy$props.title, + eventKey = _copy$props.eventKey, + rest = (0, _objectWithoutProperties3['default'])(_copy$props, ['children', 'title', 'eventKey']); - if (destination.descriptor.id === draggable.descriptor.droppableId) { - !movingRelativeTo ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'There will always be a target in the original list') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - return toHomeList({ - amount: amount, - homeIndex: home.index, - movingRelativeTo: movingRelativeTo, - insideDestination: insideDestination, - draggable: draggable, - destination: destination, - previousImpact: previousImpact, - viewport: viewport - }); - } - return toForeignList({ - amount: amount, - pageBorderBoxCenter: pageBorderBoxCenter, - movingRelativeTo: movingRelativeTo, - insideDestination: insideDestination, - draggable: draggable, - destination: destination, - previousImpact: previousImpact, - viewport: viewport - }); - }); + var style = (0, _extends3['default'])({}, propStyle); + var key = keyPrefix + '-overflowed-indicator'; - var moveCrossAxis = (function (_ref) { - var isMovingForward = _ref.isMovingForward, - pageBorderBoxCenter = _ref.pageBorderBoxCenter, - draggableId = _ref.draggableId, - droppableId = _ref.droppableId, - home = _ref.home, - draggables = _ref.draggables, - droppables = _ref.droppables, - previousImpact = _ref.previousImpact, - viewport = _ref.viewport; - var draggable = draggables[draggableId]; - var source = droppables[droppableId]; - var destination = getBestCrossAxisDroppable({ - isMovingForward: isMovingForward, - pageBorderBoxCenter: pageBorderBoxCenter, - source: source, - droppables: droppables, - viewport: viewport - }); + if (overflowedItems.length === 0 && renderPlaceholder !== true) { + style = (0, _extends3['default'])({}, style, { + display: 'none' + }); + } else if (renderPlaceholder) { + style = (0, _extends3['default'])({}, style, { + visibility: 'hidden', + // prevent from taking normal dom space + position: 'absolute' + }); + key = key + '-placeholder'; + } - if (!destination) { - return null; - } + var popupClassName = theme ? prefixCls + '-' + theme : ''; + var props = {}; + _util.menuAllProps.forEach(function (k) { + if (rest[k] !== undefined) { + props[k] = rest[k]; + } + }); - var insideDestination = getDraggablesInsideDroppable(destination, draggables); - var movingRelativeTo = getClosestDraggable({ - axis: destination.axis, - pageBorderBoxCenter: pageBorderBoxCenter, - destination: destination, - insideDestination: insideDestination, - viewport: viewport - }); + return _react2['default'].createElement( + _SubMenu2['default'], + (0, _extends3['default'])({ + title: overflowedIndicator, + className: prefixCls + '-overflowed-submenu', + popupClassName: popupClassName + }, props, { + key: key, + eventKey: keyPrefix + '-overflowed-indicator', + disabled: false, + style: style + }), + overflowedItems + ); + }, _this.setChildrenWidthAndResize = function () { + if (_this.props.mode !== 'horizontal') { + return; + } + var ul = _reactDom2['default'].findDOMNode(_this); - if (insideDestination.length && !movingRelativeTo) { - return null; - } + if (!ul) { + return; + } - return moveToNewDroppable({ - pageBorderBoxCenter: pageBorderBoxCenter, - destination: destination, - draggable: draggable, - movingRelativeTo: movingRelativeTo, - insideDestination: insideDestination, - home: home, - previousImpact: previousImpact || noImpact, - viewport: viewport - }); - }); + var ulChildrenNodes = ul.children; - var isTotallyVisibleInNewLocation = (function (_ref) { - var draggable = _ref.draggable, - destination = _ref.destination, - newPageBorderBoxCenter = _ref.newPageBorderBoxCenter, - viewport = _ref.viewport; - var diff = subtract(newPageBorderBoxCenter, draggable.page.borderBox.center); - var shifted = offsetByPosition(draggable.page.borderBox, diff); - return isTotallyVisible({ - target: shifted, - destination: destination, - viewport: viewport - }); - }); + if (!ulChildrenNodes || ulChildrenNodes.length === 0) { + return; + } - var withFirstAdded = function withFirstAdded(_ref) { - var add = _ref.add, - previousImpact = _ref.previousImpact, - droppable = _ref.droppable, - draggables = _ref.draggables, - viewport = _ref.viewport; - var newDisplacement = { - draggableId: add, - isVisible: true, - shouldAnimate: true - }; - var added = [newDisplacement].concat(previousImpact.movement.displaced); - var withUpdatedVisibility = added.map(function (current) { - if (current === newDisplacement) { - return current; - } + var lastOverflowedIndicatorPlaceholder = ul.children[ulChildrenNodes.length - 1]; - var updated = getDisplacement({ - draggable: draggables[current.draggableId], - destination: droppable, - previousImpact: previousImpact, - viewport: viewport.frame - }); - return updated; - }); - return withUpdatedVisibility; - }; + // need last overflowed indicator for calculating length; + (0, _util.setStyle)(lastOverflowedIndicatorPlaceholder, 'display', 'inline-block'); - var forceVisibleDisplacement = function forceVisibleDisplacement(current) { - if (current.isVisible) { - return current; - } + var menuItemNodes = _this.getMenuItemNodes(); - return { - draggableId: current.draggableId, - isVisible: true, - shouldAnimate: false - }; - }; + // reset display attribute for all hidden elements caused by overflow to calculate updated width + // and then reset to original state after width calculation - var withFirstRemoved = function withFirstRemoved(_ref2) { - var dragging = _ref2.dragging, - isVisibleInNewLocation = _ref2.isVisibleInNewLocation, - previousImpact = _ref2.previousImpact, - droppable = _ref2.droppable, - draggables = _ref2.draggables; - var last = previousImpact.movement.displaced; - !last.length ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot remove displacement from empty list') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - var withFirstRestored = last.slice(1, last.length); + var overflowedItems = menuItemNodes.filter(function (c) { + return c.className.split(' ').indexOf(MENUITEM_OVERFLOWED_CLASSNAME) >= 0; + }); - if (!withFirstRestored.length) { - return withFirstRestored; - } + overflowedItems.forEach(function (c) { + (0, _util.setStyle)(c, 'display', 'inline-block'); + }); - if (isVisibleInNewLocation) { - return withFirstRestored; - } + _this.menuItemSizes = menuItemNodes.map(function (c) { + return (0, _util.getWidth)(c); + }); - var axis = droppable.axis; - var sizeOfRestored = draggables[last[0].draggableId].page.marginBox[axis.size]; - var sizeOfDragging = draggables[dragging].page.marginBox[axis.size]; - var buffer = sizeOfRestored + sizeOfDragging; - var withUpdatedVisibility = withFirstRestored.map(function (displacement, index) { - if (index === 0) { - return forceVisibleDisplacement(displacement); - } + overflowedItems.forEach(function (c) { + (0, _util.setStyle)(c, 'display', 'none'); + }); + _this.overflowedIndicatorWidth = (0, _util.getWidth)(ul.children[ul.children.length - 1]); + _this.originalTotalWidth = _this.menuItemSizes.reduce(function (acc, cur) { + return acc + cur; + }, 0); + _this.handleResize(); + // prevent the overflowed indicator from taking space; + (0, _util.setStyle)(lastOverflowedIndicatorPlaceholder, 'display', 'none'); + }, _this.resizeObserver = null, _this.mutationObserver = null, _this.originalTotalWidth = 0, _this.overflowedItems = [], _this.menuItemSizes = [], _this.handleResize = function () { + if (_this.props.mode !== 'horizontal') { + return; + } - if (buffer > 0) { - var current = draggables[displacement.draggableId]; - var size = current.page.marginBox[axis.size]; - buffer -= size; - return forceVisibleDisplacement(displacement); - } + var ul = _reactDom2['default'].findDOMNode(_this); + if (!ul) { + return; + } + var width = (0, _util.getWidth)(ul); - return { - draggableId: displacement.draggableId, - isVisible: false, - shouldAnimate: false - }; - }); - return withUpdatedVisibility; - }; + _this.overflowedItems = []; + var currentSumWidth = 0; - var inHomeList$1 = (function (_ref) { - var isMovingForward = _ref.isMovingForward, - draggableId = _ref.draggableId, - previousPageBorderBoxCenter = _ref.previousPageBorderBoxCenter, - previousImpact = _ref.previousImpact, - droppable = _ref.droppable, - draggables = _ref.draggables, - viewport = _ref.viewport; - var location = previousImpact.destination; - !location ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot move to next index in home list when there is no previous destination') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - var draggable = draggables[draggableId]; - var axis = droppable.axis; - var insideDroppable = getDraggablesInsideDroppable(droppable, draggables); - var startIndex = draggable.descriptor.index; - var currentIndex = location.index; - var proposedIndex = isMovingForward ? currentIndex + 1 : currentIndex - 1; + // index for last visible child in horizontal mode + var lastVisibleIndex = undefined; - if (proposedIndex > insideDroppable.length - 1) { - return null; - } + if (_this.originalTotalWidth > width) { + lastVisibleIndex = -1; - if (proposedIndex < 0) { - return null; + _this.menuItemSizes.forEach(function (liWidth) { + currentSumWidth += liWidth; + if (currentSumWidth + _this.overflowedIndicatorWidth <= width) { + lastVisibleIndex++; + } + }); + } + + _this.setState({ lastVisibleIndex: lastVisibleIndex }); + }, _temp), (0, _possibleConstructorReturn3['default'])(_this, _ret); } - var destination = insideDroppable[proposedIndex]; - var isMovingTowardStart = isMovingForward && proposedIndex <= startIndex || !isMovingForward && proposedIndex >= startIndex; + DOMWrap.prototype.componentDidMount = function componentDidMount() { + var _this2 = this; - var edge = function () { - if (!isMovingTowardStart) { - return isMovingForward ? 'end' : 'start'; - } + this.setChildrenWidthAndResize(); + if (this.props.level === 1 && this.props.mode === 'horizontal') { + var menuUl = _reactDom2['default'].findDOMNode(this); + if (!menuUl) { + return; + } + this.resizeObserver = new _resizeObserverPolyfill2['default'](function (entries) { + entries.forEach(_this2.setChildrenWidthAndResize); + }); - return isMovingForward ? 'start' : 'end'; - }(); + [].slice.call(menuUl.children).concat(menuUl).forEach(function (el) { + _this2.resizeObserver.observe(el); + }); - var newPageBorderBoxCenter = moveToEdge({ - source: draggable.page.borderBox, - sourceEdge: edge, - destination: destination.page.borderBox, - destinationEdge: edge, - destinationAxis: droppable.axis - }); - var isVisibleInNewLocation = isTotallyVisibleInNewLocation({ - draggable: draggable, - destination: droppable, - newPageBorderBoxCenter: newPageBorderBoxCenter, - viewport: viewport.frame - }); - var displaced = isMovingTowardStart ? withFirstRemoved({ - dragging: draggableId, - isVisibleInNewLocation: isVisibleInNewLocation, - previousImpact: previousImpact, - droppable: droppable, - draggables: draggables - }) : withFirstAdded({ - add: destination.descriptor.id, - previousImpact: previousImpact, - droppable: droppable, - draggables: draggables, - viewport: viewport - }); - var newImpact = { - movement: { - displaced: displaced, - amount: patch(axis.line, draggable.page.marginBox[axis.size]), - isBeyondStartPosition: proposedIndex > startIndex - }, - destination: { - droppableId: droppable.descriptor.id, - index: proposedIndex - }, - direction: droppable.axis.direction + if (typeof MutationObserver !== 'undefined') { + this.mutationObserver = new MutationObserver(function () { + _this2.resizeObserver.disconnect(); + [].slice.call(menuUl.children).concat(menuUl).forEach(function (el) { + _this2.resizeObserver.observe(el); + }); + _this2.setChildrenWidthAndResize(); + }); + this.mutationObserver.observe(menuUl, { attributes: false, childList: true, subTree: false }); + } + } }; - if (isVisibleInNewLocation) { - return { - pageBorderBoxCenter: withDroppableDisplacement(droppable, newPageBorderBoxCenter), - impact: newImpact, - scrollJumpRequest: null - }; - } - - var distance$$1 = subtract(newPageBorderBoxCenter, previousPageBorderBoxCenter); - var distanceWithScroll = withDroppableDisplacement(droppable, distance$$1); - return { - pageBorderBoxCenter: previousPageBorderBoxCenter, - impact: newImpact, - scrollJumpRequest: distanceWithScroll + DOMWrap.prototype.componentWillUnmount = function componentWillUnmount() { + if (this.resizeObserver) { + this.resizeObserver.disconnect(); + } + if (this.mutationObserver) { + this.resizeObserver.disconnect(); + } }; - }); - var inForeignList$1 = (function (_ref) { - var isMovingForward = _ref.isMovingForward, - draggableId = _ref.draggableId, - previousImpact = _ref.previousImpact, - previousPageBorderBoxCenter = _ref.previousPageBorderBoxCenter, - droppable = _ref.droppable, - draggables = _ref.draggables, - viewport = _ref.viewport; - !previousImpact.destination ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot move to next index where there is no previous destination') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - var location = previousImpact.destination; - var draggable = draggables[draggableId]; - var axis = droppable.axis; - var insideForeignDroppable = getDraggablesInsideDroppable(droppable, draggables); - var currentIndex = location.index; - var proposedIndex = isMovingForward ? currentIndex + 1 : currentIndex - 1; - var lastIndex = insideForeignDroppable.length - 1; + // get all valid menuItem nodes - if (proposedIndex > insideForeignDroppable.length) { - return null; - } - if (proposedIndex < 0) { - return null; - } + // memorize rendered menuSize - var movingRelativeTo = insideForeignDroppable[Math.min(proposedIndex, lastIndex)]; - var isMovingPastLastIndex = proposedIndex > lastIndex; - var sourceEdge = 'start'; - var destinationEdge = function () { - if (isMovingPastLastIndex) { - return 'end'; - } + // original scroll size of the list - return 'start'; - }(); - var newPageBorderBoxCenter = moveToEdge({ - source: draggable.page.borderBox, - sourceEdge: sourceEdge, - destination: movingRelativeTo.page.marginBox, - destinationEdge: destinationEdge, - destinationAxis: droppable.axis - }); - var isVisibleInNewLocation = isTotallyVisibleInNewLocation({ - draggable: draggable, - destination: droppable, - newPageBorderBoxCenter: newPageBorderBoxCenter, - viewport: viewport.frame - }); + // copy of overflowed items - var displaced = function () { - if (isMovingForward) { - return withFirstRemoved({ - dragging: draggableId, - isVisibleInNewLocation: isVisibleInNewLocation, - previousImpact: previousImpact, - droppable: droppable, - draggables: draggables - }); - } - return withFirstAdded({ - add: movingRelativeTo.descriptor.id, - previousImpact: previousImpact, - droppable: droppable, - draggables: draggables, - viewport: viewport - }); - }(); + // cache item of the original items (so we can track the size and order) - var newImpact = { - movement: { - displaced: displaced, - amount: patch(axis.line, draggable.page.marginBox[axis.size]), - isBeyondStartPosition: false - }, - destination: { - droppableId: droppable.descriptor.id, - index: proposedIndex - }, - direction: droppable.axis.direction - }; - if (isVisibleInNewLocation) { - return { - pageBorderBoxCenter: withDroppableDisplacement(droppable, newPageBorderBoxCenter), - impact: newImpact, - scrollJumpRequest: null - }; - } + DOMWrap.prototype.renderChildren = function renderChildren(children) { + var _this3 = this; - var distanceMoving = subtract(newPageBorderBoxCenter, previousPageBorderBoxCenter); - var distanceWithScroll = withDroppableDisplacement(droppable, distanceMoving); - return { - pageBorderBoxCenter: previousPageBorderBoxCenter, - impact: newImpact, - scrollJumpRequest: distanceWithScroll - }; - }); + // need to take care of overflowed items in horizontal mode + var lastVisibleIndex = this.state.lastVisibleIndex; - var moveToNextIndex = (function (args) { - var draggableId = args.draggableId, - draggables = args.draggables, - droppable = args.droppable; - var draggable = draggables[draggableId]; - var isInHomeList = draggable.descriptor.droppableId === droppable.descriptor.id; + return (children || []).reduce(function (acc, childNode, index) { + var item = childNode; + if (_this3.props.mode === 'horizontal') { + var overflowed = _this3.getOverflowedSubMenuItem(childNode.props.eventKey, []); + if (lastVisibleIndex !== undefined && _this3.props.className.indexOf(_this3.props.prefixCls + '-root') !== -1) { + if (index > lastVisibleIndex) { + item = _react2['default'].cloneElement(childNode, + // 这里修改 eventKey 是为了防止隐藏状态下还会触发 openkeys 事件 + { + style: { display: 'none' }, + eventKey: childNode.props.eventKey + '-hidden', + className: childNode.className + ' ' + MENUITEM_OVERFLOWED_CLASSNAME + }); + } + if (index === lastVisibleIndex + 1) { + _this3.overflowedItems = children.slice(lastVisibleIndex + 1).map(function (c) { + return _react2['default'].cloneElement(c, + // children[index].key will become '.$key' in clone by default, + // we have to overwrite with the correct key explicitly + { key: c.props.eventKey, mode: 'vertical-left' }); + }); - if (!droppable.isEnabled) { - return null; - } + overflowed = _this3.getOverflowedSubMenuItem(childNode.props.eventKey, _this3.overflowedItems); + } + } - if (isInHomeList) { - return inHomeList$1(args); - } + var ret = [].concat(acc, [overflowed, item]); - return inForeignList$1(args); - }); + if (index === children.length - 1) { + // need a placeholder for calculating overflowed indicator width + ret.push(_this3.getOverflowedSubMenuItem(childNode.props.eventKey, [], true)); + } + return ret; + } + return [].concat(acc, [item]); + }, []); + }; - var getClientSelection = function getClientSelection(pageBorderBoxCenter, currentScroll) { - return subtract(pageBorderBoxCenter, currentScroll); - }; + DOMWrap.prototype.render = function render() { + var _props = this.props, + hiddenClassName = _props.hiddenClassName, + visible = _props.visible, + prefixCls = _props.prefixCls, + overflowedIndicator = _props.overflowedIndicator, + mode = _props.mode, + level = _props.level, + Tag = _props.tag, + children = _props.children, + theme = _props.theme, + rest = (0, _objectWithoutProperties3['default'])(_props, ['hiddenClassName', 'visible', 'prefixCls', 'overflowedIndicator', 'mode', 'level', 'tag', 'children', 'theme']); - var moveInDirection = (function (_ref) { - var state = _ref.state, - type = _ref.type; - var _ref2 = function () { - if (state.impact.destination) { - return { - droppable: state.dimensions.droppables[state.impact.destination.droppableId], - isMainAxisMovementAllowed: true - }; + if (!visible) { + rest.className += ' ' + hiddenClassName; } - return { - droppable: state.dimensions.droppables[state.critical.droppable.id], - isMainAxisMovementAllowed: false - }; - }(), - droppable = _ref2.droppable, - isMainAxisMovementAllowed = _ref2.isMainAxisMovementAllowed; + return _react2['default'].createElement( + Tag, + rest, + this.renderChildren(this.props.children) + ); + }; - var direction = droppable.axis.direction; - var isMovingOnMainAxis = direction === 'vertical' && (type === 'MOVE_UP' || type === 'MOVE_DOWN') || direction === 'horizontal' && (type === 'MOVE_LEFT' || type === 'MOVE_RIGHT'); + return DOMWrap; + }(_react2['default'].Component); - if (isMovingOnMainAxis && !isMainAxisMovementAllowed) { - return null; - } + DOMWrap.propTypes = { + className: _propTypes2['default'].string, + children: _propTypes2['default'].node, + mode: _propTypes2['default'].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']), + prefixCls: _propTypes2['default'].string, + level: _propTypes2['default'].number, + theme: _propTypes2['default'].string, + overflowedIndicator: _propTypes2['default'].node, + visible: _propTypes2['default'].bool, + hiddenClassName: _propTypes2['default'].string, + tag: _propTypes2['default'].string, + style: _propTypes2['default'].object + }; - var isMovingForward = type === 'MOVE_DOWN' || type === 'MOVE_RIGHT'; + DOMWrap.defaultProps = { + tag: 'div', + className: '' + }; - if (isMovingOnMainAxis) { - var _result = moveToNextIndex({ - isMovingForward: isMovingForward, - draggableId: state.critical.draggable.id, - droppable: droppable, - draggables: state.dimensions.draggables, - previousPageBorderBoxCenter: state.current.page.borderBoxCenter, - previousImpact: state.impact, - viewport: state.viewport - }); + exports['default'] = DOMWrap; + module.exports = exports['default']; + +/***/ }), +/* 602 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - if (!_result) { - return null; - } + exports.__esModule = true; + exports.SubMenu = undefined; - return { - impact: _result.impact, - clientSelection: getClientSelection(_result.pageBorderBoxCenter, state.viewport.scroll.current), - scrollJumpRequest: _result.scrollJumpRequest - }; - } + var _classCallCheck2 = __webpack_require__(337); - var home = getHomeLocation(state.critical); - var result = moveCrossAxis({ - isMovingForward: isMovingForward, - pageBorderBoxCenter: state.current.page.borderBoxCenter, - draggableId: state.critical.draggable.id, - droppableId: droppable.descriptor.id, - home: home, - draggables: state.dimensions.draggables, - droppables: state.dimensions.droppables, - previousImpact: state.impact, - viewport: state.viewport - }); + var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - if (!result) { - return null; - } + var _possibleConstructorReturn2 = __webpack_require__(338); - return { - clientSelection: getClientSelection(result.pageBorderBoxCenter, state.viewport.scroll.current), - impact: result.impact, - scrollJumpRequest: null - }; - }); + var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - var scrollViewport = (function (viewport, newScroll) { - var diff = subtract(newScroll, viewport.scroll.initial); - var displacement = negate(diff); - var frame = Object(__WEBPACK_IMPORTED_MODULE_2_css_box_model__["d" /* getRect */])({ - top: newScroll.y, - bottom: newScroll.y + viewport.frame.height, - left: newScroll.x, - right: newScroll.x + viewport.frame.width - }); - var updated = { - frame: frame, - scroll: { - initial: viewport.scroll.initial, - max: viewport.scroll.max, - current: newScroll, - diff: { - value: diff, - displacement: displacement - } - } - }; - return updated; - }); + var _inherits2 = __webpack_require__(369); - var getHomeImpact = (function (critical, dimensions) { - var home = dimensions.droppables[critical.droppable.id]; - var axis = home.axis; - var draggable = dimensions.draggables[critical.draggable.id]; - return { - movement: { - displaced: [], - isBeyondStartPosition: false, - amount: patch(axis.line, draggable.client.marginBox[axis.size]) - }, - direction: axis.direction, - destination: getHomeLocation(critical) - }; - }); + var _inherits3 = _interopRequireDefault(_inherits2); - var getPageItemPositions = (function (client, windowScroll) { - return { - selection: add(client.selection, windowScroll), - borderBoxCenter: add(client.borderBoxCenter, windowScroll), - offset: add(client.offset, windowScroll) - }; - }); + var _extends3 = __webpack_require__(289); - function isMovementAllowed(state) { - return state.phase === 'DRAGGING' || state.phase === 'COLLECTING'; - } + var _extends4 = _interopRequireDefault(_extends3); - var idle = { - phase: 'IDLE' - }; - var preparing = { - phase: 'PREPARING' - }; + var _react = __webpack_require__(1); - var moveWithPositionUpdates = function moveWithPositionUpdates(_ref) { - var state = _ref.state, - clientSelection = _ref.clientSelection, - shouldAnimate = _ref.shouldAnimate, - viewport = _ref.viewport, - impact = _ref.impact, - scrollJumpRequest = _ref.scrollJumpRequest; - var newViewport = viewport || state.viewport; - var currentWindowScroll = newViewport.scroll.current; + var _react2 = _interopRequireDefault(_react); - var client = function () { - var offset = subtract(clientSelection, state.initial.client.selection); - return { - offset: offset, - selection: clientSelection, - borderBoxCenter: add(state.initial.client.borderBoxCenter, offset) - }; - }(); + var _reactDom = __webpack_require__(2); - var page = getPageItemPositions(client, currentWindowScroll); - var current = { - client: client, - page: page - }; + var _reactDom2 = _interopRequireDefault(_reactDom); - if (state.phase === 'COLLECTING') { - return Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({ - phase: 'COLLECTING' - }, state, { - current: current - }); - } + var _propTypes = __webpack_require__(6); - var newImpact = impact || getDragImpact({ - pageBorderBoxCenter: page.borderBoxCenter, - draggable: state.dimensions.draggables[state.critical.draggable.id], - draggables: state.dimensions.draggables, - droppables: state.dimensions.droppables, - previousImpact: state.impact, - viewport: newViewport - }); + var _propTypes2 = _interopRequireDefault(_propTypes); - var result = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({}, state, { - current: current, - shouldAnimate: shouldAnimate, - impact: newImpact, - scrollJumpRequest: scrollJumpRequest || null, - viewport: newViewport - }); + var _rcTrigger = __webpack_require__(336); - return result; - }; + var _rcTrigger2 = _interopRequireDefault(_rcTrigger); - var reducer = (function (state, action) { - if (state === void 0) { - state = idle; - } + var _KeyCode = __webpack_require__(419); - if (action.type === 'CLEAN') { - return idle; - } + var _KeyCode2 = _interopRequireDefault(_KeyCode); - if (action.type === 'PREPARE') { - return preparing; - } + var _classnames = __webpack_require__(5); - if (action.type === 'INITIAL_PUBLISH') { - !(state.phase === 'PREPARING') ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'INITIAL_PUBLISH must come after a PREPARING phase') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - var _action$payload = action.payload, - critical = _action$payload.critical, - client = _action$payload.client, - viewport = _action$payload.viewport, - dimensions = _action$payload.dimensions, - autoScrollMode = _action$payload.autoScrollMode; - var initial = { - client: client, - page: { - selection: add(client.selection, viewport.scroll.initial), - borderBoxCenter: add(client.selection, viewport.scroll.initial), - offset: origin - } - }; - var result = { - phase: 'DRAGGING', - isDragging: true, - critical: critical, - autoScrollMode: autoScrollMode, - dimensions: dimensions, - initial: initial, - current: initial, - impact: getHomeImpact(critical, dimensions), - viewport: viewport, - scrollJumpRequest: null, - shouldAnimate: false - }; - return result; - } + var _classnames2 = _interopRequireDefault(_classnames); + + var _miniStore = __webpack_require__(325); + + var _SubPopupMenu = __webpack_require__(599); - if (action.type === 'COLLECTION_STARTING') { - var _extends2; + var _SubPopupMenu2 = _interopRequireDefault(_SubPopupMenu); - if (state.phase === 'COLLECTING' || state.phase === 'DROP_PENDING') { - return state; - } + var _placements = __webpack_require__(603); - !(state.phase === 'DRAGGING') ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, "Collection cannot start from phase " + state.phase) : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + var _placements2 = _interopRequireDefault(_placements); - var _result = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({ - phase: 'COLLECTING' - }, state, (_extends2 = {}, _extends2["phase"] = 'COLLECTING', _extends2)); + var _rcAnimate = __webpack_require__(388); - return _result; - } + var _rcAnimate2 = _interopRequireDefault(_rcAnimate); - if (action.type === 'PUBLISH') { - !(state.phase === 'COLLECTING' || state.phase === 'DROP_PENDING') ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, "Unexpected " + action.type + " received in phase " + state.phase) : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, "Dynamic additions and removals of Draggable and Droppable components\n is currently not supported. But will be soon!") : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false); - } + var _util = __webpack_require__(600); - if (action.type === 'MOVE') { - if (state.phase === 'PREPARING') { - return state; - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - if (state.phase === 'DROP_PENDING') { - return state; - } + var guid = 0; - !isMovementAllowed(state) ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, action.type + " not permitted in phase " + state.phase) : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - var _action$payload2 = action.payload, - _client = _action$payload2.client, - shouldAnimate = _action$payload2.shouldAnimate; + var popupPlacementMap = { + horizontal: 'bottomLeft', + vertical: 'rightTop', + 'vertical-left': 'rightTop', + 'vertical-right': 'leftTop' + }; - if (state.shouldAnimate === shouldAnimate && isEqual(_client, state.current.client.selection)) { - return state; + var updateDefaultActiveFirst = function updateDefaultActiveFirst(store, eventKey, defaultActiveFirst) { + var _extends2; + + var menuId = (0, _util.getMenuIdFromSubMenuEventKey)(eventKey); + var state = store.getState(); + store.setState({ + defaultActiveFirst: (0, _extends4['default'])({}, state.defaultActiveFirst, (_extends2 = {}, _extends2[menuId] = defaultActiveFirst, _extends2)) + }); + }; + + var SubMenu = exports.SubMenu = function (_React$Component) { + (0, _inherits3['default'])(SubMenu, _React$Component); + + function SubMenu(props) { + (0, _classCallCheck3['default'])(this, SubMenu); + + var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props)); + + _initialiseProps.call(_this); + + var store = props.store; + var eventKey = props.eventKey; + var defaultActiveFirst = store.getState().defaultActiveFirst; + + _this.isRootMenu = false; + + var value = false; + + if (defaultActiveFirst) { + value = defaultActiveFirst[eventKey]; } - var impact = state.autoScrollMode === 'JUMP' ? state.impact : null; - return moveWithPositionUpdates({ - state: state, - clientSelection: _client, - impact: impact, - shouldAnimate: shouldAnimate - }); + updateDefaultActiveFirst(store, eventKey, value); + return _this; } - if (action.type === 'UPDATE_DROPPABLE_SCROLL') { - var _extends3, _extends4; + SubMenu.prototype.componentDidMount = function componentDidMount() { + this.componentDidUpdate(); + }; - if (state.phase === 'PREPARING') { - return state; + SubMenu.prototype.componentDidUpdate = function componentDidUpdate() { + var _this2 = this; + + var _props = this.props, + mode = _props.mode, + parentMenu = _props.parentMenu, + manualRef = _props.manualRef; + + // invoke customized ref to expose component to mixin + + if (manualRef) { + manualRef(this); } - if (state.phase === 'DROP_PENDING') { - return state; + if (mode !== 'horizontal' || !parentMenu.isRootMenu || !this.props.isOpen) { + return; } - !isMovementAllowed(state) ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, action.type + " not permitted in phase " + state.phase) : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - var _action$payload3 = action.payload, - id = _action$payload3.id, - offset = _action$payload3.offset; - var target = state.dimensions.droppables[id]; + this.minWidthTimeout = setTimeout(function () { + return _this2.adjustWidth(); + }, 0); + }; - if (!target) { - return state; + SubMenu.prototype.componentWillUnmount = function componentWillUnmount() { + var _props2 = this.props, + onDestroy = _props2.onDestroy, + eventKey = _props2.eventKey; + + if (onDestroy) { + onDestroy(eventKey); } - var updated = scrollDroppable(target, offset); + /* istanbul ignore if */ + if (this.minWidthTimeout) { + clearTimeout(this.minWidthTimeout); + } - var _dimensions = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({}, state.dimensions, { - droppables: Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({}, state.dimensions.droppables, (_extends3 = {}, _extends3[id] = updated, _extends3)) - }); + /* istanbul ignore if */ + if (this.mouseenterTimeout) { + clearTimeout(this.mouseenterTimeout); + } + }; - var _impact = function () { - !isMovementAllowed(state) ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + SubMenu.prototype.renderChildren = function renderChildren(children) { + var props = this.props; + var baseProps = { + mode: props.mode === 'horizontal' ? 'vertical' : props.mode, + visible: this.props.isOpen, + level: props.level + 1, + inlineIndent: props.inlineIndent, + focusable: false, + onClick: this.onSubMenuClick, + onSelect: this.onSelect, + onDeselect: this.onDeselect, + onDestroy: this.onDestroy, + selectedKeys: props.selectedKeys, + eventKey: props.eventKey + '-menu-', + openKeys: props.openKeys, + openTransitionName: props.openTransitionName, + openAnimation: props.openAnimation, + onOpenChange: this.onOpenChange, + subMenuOpenDelay: props.subMenuOpenDelay, + parentMenu: this, + subMenuCloseDelay: props.subMenuCloseDelay, + forceSubMenuRender: props.forceSubMenuRender, + triggerSubMenuAction: props.triggerSubMenuAction, + builtinPlacements: props.builtinPlacements, + defaultActiveFirst: props.store.getState().defaultActiveFirst[(0, _util.getMenuIdFromSubMenuEventKey)(props.eventKey)], + multiple: props.multiple, + prefixCls: props.rootPrefixCls, + id: this._menuId, + manualRef: this.saveMenuInstance, + itemIcon: props.itemIcon, + expandIcon: props.expandIcon + }; - if (state.autoScrollMode === 'JUMP') { - return state.impact; - } + var haveRendered = this.haveRendered; + this.haveRendered = true; - return getDragImpact({ - pageBorderBoxCenter: state.current.page.borderBoxCenter, - draggable: _dimensions.draggables[state.critical.draggable.id], - draggables: _dimensions.draggables, - droppables: _dimensions.droppables, - previousImpact: state.impact, - viewport: state.viewport - }); - }(); + this.haveOpened = this.haveOpened || baseProps.visible || baseProps.forceSubMenuRender; + // never rendered not planning to, don't render + if (!this.haveOpened) { + return _react2['default'].createElement('div', null); + } - return Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({ - phase: 'DRAGGING' - }, state, (_extends4 = {}, _extends4["phase"] = state.phase, _extends4.impact = _impact, _extends4.dimensions = _dimensions, _extends4.scrollJumpRequest = null, _extends4)); - } + // don't show transition on first rendering (no animation for opened menu) + // show appear transition if it's not visible (not sure why) + // show appear transition if it's not inline mode + var transitionAppear = haveRendered || !baseProps.visible || !baseProps.mode === 'inline'; - if (action.type === 'UPDATE_DROPPABLE_IS_ENABLED') { - var _extends5, _extends6; + baseProps.className = ' ' + baseProps.prefixCls + '-sub'; + var animProps = {}; - if (state.phase === 'DROP_PENDING') { - return state; + if (baseProps.openTransitionName) { + animProps.transitionName = baseProps.openTransitionName; + } else if (typeof baseProps.openAnimation === 'object') { + animProps.animation = (0, _extends4['default'])({}, baseProps.openAnimation); + if (!transitionAppear) { + delete animProps.animation.appear; + } } - !isMovementAllowed(state) ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, "Attempting to move in an unsupported phase " + state.phase) : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - var _action$payload4 = action.payload, - _id = _action$payload4.id, - isEnabled = _action$payload4.isEnabled; - var _target = state.dimensions.droppables[_id]; - !_target ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, "Cannot find Droppable[id: " + _id + "] to toggle its enabled state") : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - !(_target.isEnabled !== isEnabled) ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, "Trying to set droppable isEnabled to " + String(isEnabled) + "\n but it is already " + String(_target.isEnabled)) : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + return _react2['default'].createElement( + _rcAnimate2['default'], + (0, _extends4['default'])({}, animProps, { + showProp: 'visible', + component: '', + transitionAppear: transitionAppear + }), + _react2['default'].createElement( + _SubPopupMenu2['default'], + (0, _extends4['default'])({}, baseProps, { id: this._menuId }), + children + ) + ); + }; - var _updated = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({}, _target, { - isEnabled: isEnabled - }); + SubMenu.prototype.render = function render() { + var _classNames; - var _dimensions2 = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({}, state.dimensions, { - droppables: Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({}, state.dimensions.droppables, (_extends5 = {}, _extends5[_id] = _updated, _extends5)) - }); + var props = (0, _extends4['default'])({}, this.props); + var isOpen = props.isOpen; + var prefixCls = this.getPrefixCls(); + var isInlineMode = props.mode === 'inline'; + var className = (0, _classnames2['default'])(prefixCls, prefixCls + '-' + props.mode, (_classNames = {}, _classNames[props.className] = !!props.className, _classNames[this.getOpenClassName()] = isOpen, _classNames[this.getActiveClassName()] = props.active || isOpen && !isInlineMode, _classNames[this.getDisabledClassName()] = props.disabled, _classNames[this.getSelectedClassName()] = this.isChildrenSelected(), _classNames)); - var _impact2 = getDragImpact({ - pageBorderBoxCenter: state.current.page.borderBoxCenter, - draggable: _dimensions2.draggables[state.critical.draggable.id], - draggables: _dimensions2.draggables, - droppables: _dimensions2.droppables, - previousImpact: state.impact, - viewport: state.viewport - }); + if (!this._menuId) { + if (props.eventKey) { + this._menuId = props.eventKey + '$Menu'; + } else { + this._menuId = '$__$' + ++guid + '$Menu'; + } + } - return Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({ - phase: 'DRAGGING' - }, state, (_extends6 = {}, _extends6["phase"] = state.phase, _extends6.impact = _impact2, _extends6.dimensions = _dimensions2, _extends6)); - } + var mouseEvents = {}; + var titleClickEvents = {}; + var titleMouseEvents = {}; + if (!props.disabled) { + mouseEvents = { + onMouseLeave: this.onMouseLeave, + onMouseEnter: this.onMouseEnter + }; - if (action.type === 'MOVE_BY_WINDOW_SCROLL') { - if (state.phase === 'PREPARING') { - return state; + // only works in title, not outer li + titleClickEvents = { + onClick: this.onTitleClick + }; + titleMouseEvents = { + onMouseEnter: this.onTitleMouseEnter, + onMouseLeave: this.onTitleMouseLeave + }; } - if (state.phase === 'DROP_PENDING' || state.phase === 'DROP_ANIMATING') { - return state; + var style = {}; + if (isInlineMode) { + style.paddingLeft = props.inlineIndent * props.level; } - !isMovementAllowed(state) ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, "Cannot move by window in phase " + state.phase) : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - var newScroll = action.payload.scroll; - - if (isEqual(state.viewport.scroll.current, newScroll)) { - return state; + var ariaOwns = {}; + // only set aria-owns when menu is open + // otherwise it would be an invalid aria-owns value + // since corresponding node cannot be found + if (this.props.isOpen) { + ariaOwns = { + 'aria-owns': this._menuId + }; } - var isJumpScrolling = state.autoScrollMode === 'JUMP'; + // expand custom icon should NOT be displayed in menu with horizontal mode. + var icon = null; + if (props.mode !== 'horizontal') { + icon = this.props.expandIcon; // ReactNode + if (typeof this.props.expandIcon === 'function') { + icon = _react2['default'].createElement(this.props.expandIcon, (0, _extends4['default'])({}, this.props)); + } + } - var _impact3 = isJumpScrolling ? state.impact : null; + var title = _react2['default'].createElement( + 'div', + (0, _extends4['default'])({ + ref: this.saveSubMenuTitle, + style: style, + className: prefixCls + '-title' + }, titleMouseEvents, titleClickEvents, { + 'aria-expanded': isOpen + }, ariaOwns, { + 'aria-haspopup': 'true', + title: typeof props.title === 'string' ? props.title : undefined + }), + props.title, + icon || _react2['default'].createElement('i', { className: prefixCls + '-arrow' }) + ); + var children = this.renderChildren(props.children); - var _viewport = scrollViewport(state.viewport, newScroll); + var getPopupContainer = props.parentMenu.isRootMenu ? props.parentMenu.props.getPopupContainer : function (triggerNode) { + return triggerNode.parentNode; + }; + var popupPlacement = popupPlacementMap[props.mode]; + var popupAlign = props.popupOffset ? { offset: props.popupOffset } : {}; + var popupClassName = props.mode === 'inline' ? '' : props.popupClassName; + var disabled = props.disabled, + triggerSubMenuAction = props.triggerSubMenuAction, + subMenuOpenDelay = props.subMenuOpenDelay, + forceSubMenuRender = props.forceSubMenuRender, + subMenuCloseDelay = props.subMenuCloseDelay, + builtinPlacements = props.builtinPlacements; - return moveWithPositionUpdates({ - state: state, - clientSelection: state.current.client.selection, - viewport: _viewport, - shouldAnimate: false, - impact: _impact3 + _util.menuAllProps.forEach(function (key) { + return delete props[key]; }); - } + // Set onClick to null, to ignore propagated onClick event + delete props.onClick; - if (action.type === 'UPDATE_VIEWPORT_MAX_SCROLL') { - var _extends7; + return _react2['default'].createElement( + 'li', + (0, _extends4['default'])({}, props, mouseEvents, { + className: className, + role: 'menuitem' + }), + isInlineMode && title, + isInlineMode && children, + !isInlineMode && _react2['default'].createElement( + _rcTrigger2['default'], + { + prefixCls: prefixCls, + popupClassName: prefixCls + '-popup ' + popupClassName, + getPopupContainer: getPopupContainer, + builtinPlacements: (0, _extends4['default'])({}, _placements2['default'], builtinPlacements), + popupPlacement: popupPlacement, + popupVisible: isOpen, + popupAlign: popupAlign, + popup: children, + action: disabled ? [] : [triggerSubMenuAction], + mouseEnterDelay: subMenuOpenDelay, + mouseLeaveDelay: subMenuCloseDelay, + onPopupVisibleChange: this.onPopupVisibleChange, + forceRender: forceSubMenuRender + }, + title + ) + ); + }; - !state.isDragging ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot update the max viewport scroll if not dragging') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - var existing = state.viewport; + return SubMenu; + }(_react2['default'].Component); - var _viewport2 = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({}, existing, { - scroll: Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({}, existing.scroll, { - max: action.payload - }) - }); + SubMenu.propTypes = { + parentMenu: _propTypes2['default'].object, + title: _propTypes2['default'].node, + children: _propTypes2['default'].any, + selectedKeys: _propTypes2['default'].array, + openKeys: _propTypes2['default'].array, + onClick: _propTypes2['default'].func, + onOpenChange: _propTypes2['default'].func, + rootPrefixCls: _propTypes2['default'].string, + eventKey: _propTypes2['default'].string, + multiple: _propTypes2['default'].bool, + active: _propTypes2['default'].bool, // TODO: remove + onItemHover: _propTypes2['default'].func, + onSelect: _propTypes2['default'].func, + triggerSubMenuAction: _propTypes2['default'].string, + onDeselect: _propTypes2['default'].func, + onDestroy: _propTypes2['default'].func, + onMouseEnter: _propTypes2['default'].func, + onMouseLeave: _propTypes2['default'].func, + onTitleMouseEnter: _propTypes2['default'].func, + onTitleMouseLeave: _propTypes2['default'].func, + onTitleClick: _propTypes2['default'].func, + popupOffset: _propTypes2['default'].array, + isOpen: _propTypes2['default'].bool, + store: _propTypes2['default'].object, + mode: _propTypes2['default'].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']), + manualRef: _propTypes2['default'].func, + itemIcon: _propTypes2['default'].oneOfType([_propTypes2['default'].func, _propTypes2['default'].node]), + expandIcon: _propTypes2['default'].oneOfType([_propTypes2['default'].func, _propTypes2['default'].node]) + }; + SubMenu.defaultProps = { + onMouseEnter: _util.noop, + onMouseLeave: _util.noop, + onTitleMouseEnter: _util.noop, + onTitleMouseLeave: _util.noop, + onTitleClick: _util.noop, + manualRef: _util.noop, + mode: 'vertical', + title: '' + }; - return Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({ - phase: 'DRAGGING' - }, state, (_extends7 = {}, _extends7["phase"] = state.phase, _extends7.viewport = _viewport2, _extends7)); - } + var _initialiseProps = function _initialiseProps() { + var _this3 = this; - if (action.type === 'MOVE_UP' || action.type === 'MOVE_DOWN' || action.type === 'MOVE_LEFT' || action.type === 'MOVE_RIGHT') { - if (state.phase === 'PREPARING') { - return state; - } + this.onDestroy = function (key) { + _this3.props.onDestroy(key); + }; - if (state.phase === 'COLLECTING' || state.phase === 'DROP_PENDING') { - return state; - } + this.onKeyDown = function (e) { + var keyCode = e.keyCode; + var menu = _this3.menuInstance; + var _props3 = _this3.props, + isOpen = _props3.isOpen, + store = _props3.store; - !(state.phase === 'DRAGGING') ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, action.type + " received while not in DRAGGING phase") : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - var _result2 = moveInDirection({ - state: state, - type: action.type - }); + if (keyCode === _KeyCode2['default'].ENTER) { + _this3.onTitleClick(e); + updateDefaultActiveFirst(store, _this3.props.eventKey, true); + return true; + } - if (!_result2) { - return state; + if (keyCode === _KeyCode2['default'].RIGHT) { + if (isOpen) { + menu.onKeyDown(e); + } else { + _this3.triggerOpenChange(true); + // need to update current menu's defaultActiveFirst value + updateDefaultActiveFirst(store, _this3.props.eventKey, true); + } + return true; + } + if (keyCode === _KeyCode2['default'].LEFT) { + var handled = void 0; + if (isOpen) { + handled = menu.onKeyDown(e); + } else { + return undefined; + } + if (!handled) { + _this3.triggerOpenChange(false); + handled = true; + } + return handled; } - return moveWithPositionUpdates({ - state: state, - impact: _result2.impact, - clientSelection: _result2.clientSelection, - shouldAnimate: true, - scrollJumpRequest: _result2.scrollJumpRequest - }); - } + if (isOpen && (keyCode === _KeyCode2['default'].UP || keyCode === _KeyCode2['default'].DOWN)) { + return menu.onKeyDown(e); + } + }; - if (action.type === 'DROP_PENDING') { - var _extends8; + this.onOpenChange = function (e) { + _this3.props.onOpenChange(e); + }; - var reason = action.payload.reason; - !(state.phase === 'COLLECTING') ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Can only move into the DROP_PENDING phase from the COLLECTING phase') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + this.onPopupVisibleChange = function (visible) { + _this3.triggerOpenChange(visible, visible ? 'mouseenter' : 'mouseleave'); + }; - var newState = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({ - phase: 'DROP_PENDING' - }, state, (_extends8 = {}, _extends8["phase"] = 'DROP_PENDING', _extends8.isWaiting = true, _extends8.reason = reason, _extends8)); + this.onMouseEnter = function (e) { + var _props4 = _this3.props, + key = _props4.eventKey, + onMouseEnter = _props4.onMouseEnter, + store = _props4.store; - return newState; - } + updateDefaultActiveFirst(store, _this3.props.eventKey, false); + onMouseEnter({ + key: key, + domEvent: e + }); + }; - if (action.type === 'DROP_ANIMATE') { - var pending = action.payload; - !(state.phase === 'DRAGGING' || state.phase === 'DROP_PENDING') ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, "Cannot animate drop from phase " + state.phase) : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - var _result3 = { - phase: 'DROP_ANIMATING', - pending: pending, - dimensions: state.dimensions - }; - return _result3; - } + this.onMouseLeave = function (e) { + var _props5 = _this3.props, + parentMenu = _props5.parentMenu, + eventKey = _props5.eventKey, + onMouseLeave = _props5.onMouseLeave; - if (action.type === 'DROP_COMPLETE') { - return idle; - } + parentMenu.subMenuInstance = _this3; + onMouseLeave({ + key: eventKey, + domEvent: e + }); + }; - return state; - }); + this.onTitleMouseEnter = function (domEvent) { + var _props6 = _this3.props, + key = _props6.eventKey, + onItemHover = _props6.onItemHover, + onTitleMouseEnter = _props6.onTitleMouseEnter; - var lift = function lift(args) { - return { - type: 'LIFT', - payload: args + onItemHover({ + key: key, + hover: true + }); + onTitleMouseEnter({ + key: key, + domEvent: domEvent + }); }; - }; - var initialPublish = function initialPublish(args) { - return { - type: 'INITIAL_PUBLISH', - payload: args + + this.onTitleMouseLeave = function (e) { + var _props7 = _this3.props, + parentMenu = _props7.parentMenu, + eventKey = _props7.eventKey, + onItemHover = _props7.onItemHover, + onTitleMouseLeave = _props7.onTitleMouseLeave; + + parentMenu.subMenuInstance = _this3; + onItemHover({ + key: eventKey, + hover: false + }); + onTitleMouseLeave({ + key: eventKey, + domEvent: e + }); }; - }; - var publish = function publish(args) { - return { - type: 'PUBLISH', - payload: args + + this.onTitleClick = function (e) { + var props = _this3.props; + + props.onTitleClick({ + key: props.eventKey, + domEvent: e + }); + if (props.triggerSubMenuAction === 'hover') { + return; + } + _this3.triggerOpenChange(!props.isOpen, 'click'); + updateDefaultActiveFirst(props.store, _this3.props.eventKey, false); }; - }; - var collectionStarting = function collectionStarting() { - return { - type: 'COLLECTION_STARTING', - payload: null + + this.onSubMenuClick = function (info) { + // in the case of overflowed submenu + // onClick is not copied over + if (typeof _this3.props.onClick === 'function') { + _this3.props.onClick(_this3.addKeyPath(info)); + } }; - }; - var updateDroppableScroll = function updateDroppableScroll(args) { - return { - type: 'UPDATE_DROPPABLE_SCROLL', - payload: args + + this.onSelect = function (info) { + _this3.props.onSelect(info); }; - }; - var updateDroppableIsEnabled = function updateDroppableIsEnabled(args) { - return { - type: 'UPDATE_DROPPABLE_IS_ENABLED', - payload: args + + this.onDeselect = function (info) { + _this3.props.onDeselect(info); }; - }; - var move = function move(args) { - return { - type: 'MOVE', - payload: args + + this.getPrefixCls = function () { + return _this3.props.rootPrefixCls + '-submenu'; }; - }; - var moveByWindowScroll = function moveByWindowScroll(args) { - return { - type: 'MOVE_BY_WINDOW_SCROLL', - payload: args + + this.getActiveClassName = function () { + return _this3.getPrefixCls() + '-active'; }; - }; - var updateViewportMaxScroll = function updateViewportMaxScroll(max) { - return { - type: 'UPDATE_VIEWPORT_MAX_SCROLL', - payload: max + + this.getDisabledClassName = function () { + return _this3.getPrefixCls() + '-disabled'; }; - }; - var moveUp = function moveUp() { - return { - type: 'MOVE_UP', - payload: null + + this.getSelectedClassName = function () { + return _this3.getPrefixCls() + '-selected'; }; - }; - var moveDown = function moveDown() { - return { - type: 'MOVE_DOWN', - payload: null + + this.getOpenClassName = function () { + return _this3.props.rootPrefixCls + '-submenu-open'; }; - }; - var moveRight = function moveRight() { - return { - type: 'MOVE_RIGHT', - payload: null + + this.saveMenuInstance = function (c) { + // children menu instance + _this3.menuInstance = c; }; - }; - var moveLeft = function moveLeft() { - return { - type: 'MOVE_LEFT', - payload: null + + this.addKeyPath = function (info) { + return (0, _extends4['default'])({}, info, { + keyPath: (info.keyPath || []).concat(_this3.props.eventKey) + }); }; - }; - var clean = function clean() { - return { - type: 'CLEAN', - payload: null + + this.triggerOpenChange = function (open, type) { + var key = _this3.props.eventKey; + var openChange = function openChange() { + _this3.onOpenChange({ + key: key, + item: _this3, + trigger: type, + open: open + }); + }; + if (type === 'mouseenter') { + // make sure mouseenter happen after other menu item's mouseleave + _this3.mouseenterTimeout = setTimeout(function () { + openChange(); + }, 0); + } else { + openChange(); + } }; - }; - var prepare = function prepare() { - return { - type: 'PREPARE', - payload: null + + this.isChildrenSelected = function () { + var ret = { find: false }; + (0, _util.loopMenuItemRecursively)(_this3.props.children, _this3.props.selectedKeys, ret); + return ret.find; }; - }; - var animateDrop = function animateDrop(pending) { - return { - type: 'DROP_ANIMATE', - payload: pending + + this.isOpen = function () { + return _this3.props.openKeys.indexOf(_this3.props.eventKey) !== -1; }; - }; - var completeDrop = function completeDrop(result) { - return { - type: 'DROP_COMPLETE', - payload: result + + this.adjustWidth = function () { + /* istanbul ignore if */ + if (!_this3.subMenuTitle || !_this3.menuInstance) { + return; + } + var popupMenu = _reactDom2['default'].findDOMNode(_this3.menuInstance); + if (popupMenu.offsetWidth >= _this3.subMenuTitle.offsetWidth) { + return; + } + + /* istanbul ignore next */ + popupMenu.style.minWidth = _this3.subMenuTitle.offsetWidth + 'px'; }; - }; - var drop = function drop(args) { - return { - type: 'DROP', - payload: args + + this.saveSubMenuTitle = function (subMenuTitle) { + _this3.subMenuTitle = subMenuTitle; }; }; - var dropPending = function dropPending(args) { + + var connected = (0, _miniStore.connect)(function (_ref, _ref2) { + var openKeys = _ref.openKeys, + activeKey = _ref.activeKey, + selectedKeys = _ref.selectedKeys; + var eventKey = _ref2.eventKey, + subMenuKey = _ref2.subMenuKey; return { - type: 'DROP_PENDING', - payload: args + isOpen: openKeys.indexOf(eventKey) > -1, + active: activeKey[subMenuKey] === eventKey, + selectedKeys: selectedKeys }; + })(SubMenu); + + connected.isSubMenu = true; + + exports['default'] = connected; + +/***/ }), +/* 603 */ +/***/ (function(module, exports) { + + 'use strict'; + + exports.__esModule = true; + var autoAdjustOverflow = { + adjustX: 1, + adjustY: 1 }; - var dropAnimationFinished = function dropAnimationFinished() { - return { - type: 'DROP_ANIMATION_FINISHED', - payload: null - }; + + var placements = exports.placements = { + topLeft: { + points: ['bl', 'tl'], + overflow: autoAdjustOverflow, + offset: [0, -7] + }, + bottomLeft: { + points: ['tl', 'bl'], + overflow: autoAdjustOverflow, + offset: [0, 7] + }, + leftTop: { + points: ['tr', 'tl'], + overflow: autoAdjustOverflow, + offset: [-4, 0] + }, + rightTop: { + points: ['tl', 'tr'], + overflow: autoAdjustOverflow, + offset: [4, 0] + } }; - var lift$1 = (function (getMarshal) { - var timeoutId = null; + exports['default'] = placements; + +/***/ }), +/* 604 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - var tryAbortCriticalCollection = function tryAbortCriticalCollection() { - if (timeoutId == null) { - return; - } + exports.__esModule = true; + exports.MenuItem = undefined; - clearTimeout(timeoutId); - timeoutId = null; - }; + var _extends2 = __webpack_require__(289); - return function (_ref) { - var getState = _ref.getState, - dispatch = _ref.dispatch; - return function (next) { - return function (action) { - if (action.type === 'CLEAN') { - tryAbortCriticalCollection(); - next(action); - return; - } + var _extends3 = _interopRequireDefault(_extends2); - if (action.type !== 'LIFT') { - next(action); - return; - } + var _classCallCheck2 = __webpack_require__(337); - !!timeoutId ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'There should not be a pending complete lift phase when a lift action is fired') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - var marshal = getMarshal(); - var _action$payload = action.payload, - id = _action$payload.id, - client = _action$payload.client, - autoScrollMode = _action$payload.autoScrollMode, - viewport = _action$payload.viewport; - var initial = getState(); + var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - if (initial.phase === 'DROP_ANIMATING') { - dispatch(completeDrop(initial.pending.result)); - } + var _possibleConstructorReturn2 = __webpack_require__(338); - var postFlushState = getState(); - !(postFlushState.phase === 'IDLE') ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Incorrect phase to start a drag') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - dispatch(prepare()); - timeoutId = setTimeout(function () { - timeoutId = null; - var state = getState(); - !(state.phase === 'PREPARING') ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Invalid phase for completing lift') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - var scrollOptions = { - shouldPublishImmediately: autoScrollMode === 'JUMP' - }; - var request = { - draggableId: id, - scrollOptions: scrollOptions - }; + var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - var _marshal$startPublish = marshal.startPublishing(request, viewport.scroll.current), - critical = _marshal$startPublish.critical, - dimensions = _marshal$startPublish.dimensions; + var _inherits2 = __webpack_require__(369); - dispatch(initialPublish({ - critical: critical, - dimensions: dimensions, - client: client, - autoScrollMode: autoScrollMode, - viewport: viewport - })); - }); - }; - }; - }; - }); + var _inherits3 = _interopRequireDefault(_inherits2); - var style = (function (marshal) { - return function () { - return function (next) { - return function (action) { - if (action.type === 'INITIAL_PUBLISH') { - marshal.dragging(); - } + var _react = __webpack_require__(1); - if (action.type === 'COLLECTION_STARTING') { - marshal.collecting(); - } + var _react2 = _interopRequireDefault(_react); - if (action.type === 'PUBLISH') { - marshal.dragging(); - } + var _reactDom = __webpack_require__(2); - if (action.type === 'DROP_ANIMATE') { - marshal.dropping(action.payload.result.reason); - } + var _reactDom2 = _interopRequireDefault(_reactDom); - if (action.type === 'CLEAN' || action.type === 'DROP_COMPLETE') { - marshal.resting(); - } + var _propTypes = __webpack_require__(6); - next(action); - }; - }; - }; - }); + var _propTypes2 = _interopRequireDefault(_propTypes); - var getNewHomeClientBorderBoxCenter = (function (_ref) { - var movement = _ref.movement, - draggable = _ref.draggable, - draggables = _ref.draggables, - destination = _ref.destination; - var originalCenter = draggable.client.borderBox.center; + var _KeyCode = __webpack_require__(419); - if (destination == null) { - return originalCenter; - } + var _KeyCode2 = _interopRequireDefault(_KeyCode); - var displaced = movement.displaced, - isBeyondStartPosition = movement.isBeyondStartPosition; - var axis = destination.axis; - var isWithinHomeDroppable = destination.descriptor.id === draggable.descriptor.droppableId; + var _classnames = __webpack_require__(5); - if (isWithinHomeDroppable && !displaced.length) { - return originalCenter; - } + var _classnames2 = _interopRequireDefault(_classnames); - var draggablesInDestination = getDraggablesInsideDroppable(destination, draggables); + var _domScrollIntoView = __webpack_require__(402); - var movingRelativeTo = function () { - if (isWithinHomeDroppable) { - return draggables[displaced[0].draggableId].client.borderBox; - } + var _domScrollIntoView2 = _interopRequireDefault(_domScrollIntoView); - if (displaced.length) { - return draggables[displaced[0].draggableId].client.borderBox; - } + var _miniStore = __webpack_require__(325); - if (draggablesInDestination.length) { - return draggablesInDestination[draggablesInDestination.length - 1].client.marginBox; - } + var _util = __webpack_require__(600); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + + /* eslint react/no-is-mounted:0 */ + + var MenuItem = exports.MenuItem = function (_React$Component) { + (0, _inherits3['default'])(MenuItem, _React$Component); + + function MenuItem(props) { + (0, _classCallCheck3['default'])(this, MenuItem); + + var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props)); + + _this.onKeyDown = function (e) { + var keyCode = e.keyCode; + if (keyCode === _KeyCode2['default'].ENTER) { + _this.onClick(e); + return true; + } + }; + + _this.onMouseLeave = function (e) { + var _this$props = _this.props, + eventKey = _this$props.eventKey, + onItemHover = _this$props.onItemHover, + onMouseLeave = _this$props.onMouseLeave; + + onItemHover({ + key: eventKey, + hover: false + }); + onMouseLeave({ + key: eventKey, + domEvent: e + }); + }; + + _this.onMouseEnter = function (e) { + var _this$props2 = _this.props, + eventKey = _this$props2.eventKey, + onItemHover = _this$props2.onItemHover, + onMouseEnter = _this$props2.onMouseEnter; + + onItemHover({ + key: eventKey, + hover: true + }); + onMouseEnter({ + key: eventKey, + domEvent: e + }); + }; + + _this.onClick = function (e) { + var _this$props3 = _this.props, + eventKey = _this$props3.eventKey, + multiple = _this$props3.multiple, + onClick = _this$props3.onClick, + onSelect = _this$props3.onSelect, + onDeselect = _this$props3.onDeselect, + isSelected = _this$props3.isSelected; + + var info = { + key: eventKey, + keyPath: [eventKey], + item: _this, + domEvent: e + }; + onClick(info); + if (multiple) { + if (isSelected) { + onDeselect(info); + } else { + onSelect(info); + } + } else if (!isSelected) { + onSelect(info); + } + }; - return destination.client.contentBox; - }(); + return _this; + } - var _ref2 = function () { - if (isWithinHomeDroppable) { - if (isBeyondStartPosition) { - return { - sourceEdge: 'end', - destinationEdge: 'end' - }; - } + MenuItem.prototype.componentDidMount = function componentDidMount() { + // invoke customized ref to expose component to mixin + this.callRef(); + }; - return { - sourceEdge: 'start', - destinationEdge: 'start' - }; + MenuItem.prototype.componentDidUpdate = function componentDidUpdate() { + if (this.props.active) { + (0, _domScrollIntoView2['default'])(_reactDom2['default'].findDOMNode(this), _reactDom2['default'].findDOMNode(this.props.parentMenu), { + onlyScrollIfNeeded: true + }); } + this.callRef(); + }; - if (!displaced.length && draggablesInDestination.length) { - return { - sourceEdge: 'start', - destinationEdge: 'end' - }; + MenuItem.prototype.componentWillUnmount = function componentWillUnmount() { + var props = this.props; + if (props.onDestroy) { + props.onDestroy(props.eventKey); } + }; - return { - sourceEdge: 'start', - destinationEdge: 'start' - }; - }(), - sourceEdge = _ref2.sourceEdge, - destinationEdge = _ref2.destinationEdge; - - var source = draggable.client.borderBox; - var targetCenter = moveToEdge({ - source: source, - sourceEdge: sourceEdge, - destination: movingRelativeTo, - destinationEdge: destinationEdge, - destinationAxis: axis - }); - return targetCenter; - }); + MenuItem.prototype.getPrefixCls = function getPrefixCls() { + return this.props.rootPrefixCls + '-item'; + }; - var getScrollDisplacement = function getScrollDisplacement(droppable, viewport) { - return withDroppableDisplacement(droppable, viewport.scroll.diff.displacement); - }; + MenuItem.prototype.getActiveClassName = function getActiveClassName() { + return this.getPrefixCls() + '-active'; + }; - var drop$1 = (function (_ref) { - var getState = _ref.getState, - dispatch = _ref.dispatch; - return function (next) { - return function (action) { - if (action.type !== 'DROP') { - next(action); - return; - } + MenuItem.prototype.getSelectedClassName = function getSelectedClassName() { + return this.getPrefixCls() + '-selected'; + }; - var state = getState(); - var reason = action.payload.reason; + MenuItem.prototype.getDisabledClassName = function getDisabledClassName() { + return this.getPrefixCls() + '-disabled'; + }; - if (state.phase === 'COLLECTING') { - dispatch(dropPending({ - reason: reason - })); - return; - } + MenuItem.prototype.callRef = function callRef() { + if (this.props.manualRef) { + this.props.manualRef(this); + } + }; - if (state.phase === 'PREPARING') { - dispatch(clean()); - return; - } + MenuItem.prototype.render = function render() { + var _classNames; - if (state.phase === 'IDLE') { - return; - } + var props = (0, _extends3['default'])({}, this.props); + var className = (0, _classnames2['default'])(this.getPrefixCls(), props.className, (_classNames = {}, _classNames[this.getActiveClassName()] = !props.disabled && props.active, _classNames[this.getSelectedClassName()] = props.isSelected, _classNames[this.getDisabledClassName()] = props.disabled, _classNames)); + var attrs = (0, _extends3['default'])({}, props.attribute, { + title: props.title, + className: className, + // set to menuitem by default + role: props.role || 'menuitem', + 'aria-disabled': props.disabled + }); - var isWaitingForDrop = state.phase === 'DROP_PENDING' && state.isWaiting; - !!isWaitingForDrop ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'A DROP action occurred while DROP_PENDING and still waiting') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - !(state.phase === 'DRAGGING' || state.phase === 'DROP_PENDING') ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, "Cannot drop in phase: " + state.phase) : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - var critical = state.critical; - var dimensions = state.dimensions; - var impact = reason === 'DROP' ? state.impact : noImpact; - var home = dimensions.droppables[state.critical.droppable.id]; - var draggable = dimensions.draggables[state.critical.draggable.id]; - var droppable = impact && impact.destination ? dimensions.droppables[impact.destination.droppableId] : null; - var source = { - index: critical.draggable.index, - droppableId: critical.droppable.id - }; - var destination = reason === 'DROP' ? impact.destination : null; - var result = { - draggableId: draggable.descriptor.id, - type: home.descriptor.type, - source: source, - destination: destination, - reason: reason - }; + if (props.role === 'option') { + // overwrite to option + attrs = (0, _extends3['default'])({}, attrs, { + role: 'option', + 'aria-selected': props.isSelected + }); + } else if (props.role === null || props.role === 'none') { + // sometimes we want to specify role inside
  • element + //
  • Link
  • would be a good example + // in this case the role on
  • should be "none" to + // remove the implied listitem role. + // https://www.w3.org/TR/wai-aria-practices-1.1/examples/menubar/menubar-1/menubar-1.html + attrs.role = 'none'; + } + // In case that onClick/onMouseLeave/onMouseEnter is passed down from owner + var mouseEvent = { + onClick: props.disabled ? null : this.onClick, + onMouseLeave: props.disabled ? null : this.onMouseLeave, + onMouseEnter: props.disabled ? null : this.onMouseEnter + }; + var style = (0, _extends3['default'])({}, props.style); + if (props.mode === 'inline') { + style.paddingLeft = props.inlineIndent * props.level; + } + _util.menuAllProps.forEach(function (key) { + return delete props[key]; + }); + var icon = this.props.itemIcon; + if (typeof this.props.itemIcon === 'function') { + icon = _react2['default'].createElement(this.props.itemIcon, this.props); + } + return _react2['default'].createElement( + 'li', + (0, _extends3['default'])({}, props, attrs, mouseEvent, { + style: style + }), + props.children, + icon + ); + }; - var clientOffset = function () { - if (reason === 'CANCEL') { - return origin; - } + return MenuItem; + }(_react2['default'].Component); - var newBorderBoxClientCenter = getNewHomeClientBorderBoxCenter({ - movement: impact.movement, - draggable: draggable, - draggables: dimensions.draggables, - destination: droppable - }); - return subtract(newBorderBoxClientCenter, draggable.client.borderBox.center); - }(); + MenuItem.propTypes = { + attribute: _propTypes2['default'].object, + rootPrefixCls: _propTypes2['default'].string, + eventKey: _propTypes2['default'].string, + active: _propTypes2['default'].bool, + children: _propTypes2['default'].any, + selectedKeys: _propTypes2['default'].array, + disabled: _propTypes2['default'].bool, + title: _propTypes2['default'].string, + onItemHover: _propTypes2['default'].func, + onSelect: _propTypes2['default'].func, + onClick: _propTypes2['default'].func, + onDeselect: _propTypes2['default'].func, + parentMenu: _propTypes2['default'].object, + onDestroy: _propTypes2['default'].func, + onMouseEnter: _propTypes2['default'].func, + onMouseLeave: _propTypes2['default'].func, + multiple: _propTypes2['default'].bool, + isSelected: _propTypes2['default'].bool, + manualRef: _propTypes2['default'].func, + itemIcon: _propTypes2['default'].oneOfType([_propTypes2['default'].func, _propTypes2['default'].node]) + }; + MenuItem.defaultProps = { + onSelect: _util.noop, + onMouseEnter: _util.noop, + onMouseLeave: _util.noop, + manualRef: _util.noop + }; - var newHomeOffset = add(clientOffset, getScrollDisplacement(droppable || home, state.viewport)); - var isAnimationRequired = !isEqual(state.current.client.offset, newHomeOffset); - var pending = { - newHomeOffset: newHomeOffset, - result: result, - impact: impact - }; - if (isAnimationRequired) { - dispatch(animateDrop(pending)); - return; - } + MenuItem.isMenuItem = true; - dispatch(completeDrop(result)); - }; + var connected = (0, _miniStore.connect)(function (_ref, _ref2) { + var activeKey = _ref.activeKey, + selectedKeys = _ref.selectedKeys; + var eventKey = _ref2.eventKey, + subMenuKey = _ref2.subMenuKey; + return { + active: activeKey[subMenuKey] === eventKey, + isSelected: selectedKeys.indexOf(eventKey) !== -1 }; - }); + })(MenuItem); - var onDragStart = function onDragStart(start) { - return "\n You have lifted an item in position " + (start.source.index + 1) + ".\n Use the arrow keys to move, space bar to drop, and escape to cancel.\n"; - }; + exports['default'] = connected; + +/***/ }), +/* 605 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - var onDragUpdate = function onDragUpdate(update) { - if (!update.destination) { - return 'You are currently not dragging over a droppable area'; - } + exports.__esModule = true; - if (update.source.droppableId === update.destination.droppableId) { - return "You have moved the item to position " + (update.destination.index + 1); - } + var _extends2 = __webpack_require__(289); - return "\n You have moved the item from list " + update.source.droppableId + " in position " + (update.source.index + 1) + "\n to list " + update.destination.droppableId + " in position " + (update.destination.index + 1) + "\n "; - }; + var _extends3 = _interopRequireDefault(_extends2); - var onDragEnd = function onDragEnd(result) { - if (result.reason === 'CANCEL') { - return "\n Movement cancelled.\n The item has returned to its starting position of " + (result.source.index + 1) + "\n "; - } + var _objectWithoutProperties2 = __webpack_require__(398); - if (!result.destination) { - return "\n The item has been dropped while not over a droppable location.\n The item has returned to its starting position of " + (result.source.index + 1) + "\n "; - } + var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); - if (result.source.droppableId === result.destination.droppableId) { - if (result.source.index === result.destination.index) { - return "\n You have dropped the item.\n It has been dropped on its starting position of " + (result.source.index + 1) + "\n "; - } + var _classCallCheck2 = __webpack_require__(337); - return "\n You have dropped the item.\n It has moved from position " + (result.source.index + 1) + " to " + (result.destination.index + 1) + "\n "; - } + var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - return "\n You have dropped the item.\n It has moved from position " + (result.source.index + 1) + " in list " + result.source.droppableId + "\n to position " + (result.destination.index + 1) + " in list " + result.destination.droppableId + "\n "; - }; + var _possibleConstructorReturn2 = __webpack_require__(338); - var preset = { - onDragStart: onDragStart, - onDragUpdate: onDragUpdate, - onDragEnd: onDragEnd - }; + var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - var records = {}; - var flag = '__react-beautiful-dnd-debug-timings-hook__'; + var _inherits2 = __webpack_require__(369); - var isTimingsEnabled = function isTimingsEnabled() { - return Boolean(window[flag]); - }; + var _inherits3 = _interopRequireDefault(_inherits2); - var start = function start(key) { - if (process.env.NODE_ENV !== 'production') { - if (!isTimingsEnabled()) { - return; - } + var _react = __webpack_require__(1); - var now = performance.now(); - records[key] = now; - } - }; - var finish = function finish(key) { - if (process.env.NODE_ENV !== 'production') { - if (!isTimingsEnabled()) { - return; - } + var _react2 = _interopRequireDefault(_react); - var now = performance.now(); - var previous = records[key]; - !previous ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'cannot finish timing as no previous time found') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - var result = now - previous; - var rounded = result.toFixed(2); + var _propTypes = __webpack_require__(6); - var style = function () { - if (result < 12) { - return { - textColor: 'green', - symbol: '✅' - }; - } + var _propTypes2 = _interopRequireDefault(_propTypes); - if (result < 40) { - return { - textColor: 'orange', - symbol: '⚠️' - }; - } + var _util = __webpack_require__(600); - return { - textColor: 'red', - symbol: '❌' - }; - }(); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - console.log(style.symbol + " %cTiming %c" + rounded + " %cms %c" + key, 'color: blue; font-weight: bold; ', "color: " + style.textColor + "; font-size: 1.1em;", 'color: grey;', 'color: purple; font-weight: bold;'); - } - }; + var MenuItemGroup = function (_React$Component) { + (0, _inherits3['default'])(MenuItemGroup, _React$Component); - var withTimings = function withTimings(key, fn) { - start(key); - fn(); - finish(key); - }; + function MenuItemGroup() { + var _temp, _this, _ret; - var areLocationsEqual = function areLocationsEqual(first, second) { - if (first == null && second == null) { - return true; - } + (0, _classCallCheck3['default'])(this, MenuItemGroup); - if (first == null || second == null) { - return false; - } + for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } - return first.droppableId === second.droppableId && first.index === second.index; - }; + return _ret = (_temp = (_this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.renderInnerMenuItem = function (item) { + var _this$props = _this.props, + renderMenuItem = _this$props.renderMenuItem, + index = _this$props.index; - var isCriticalEqual = function isCriticalEqual(first, second) { - if (first === second) { - return true; + return renderMenuItem(item, index, _this.props.subMenuKey); + }, _temp), (0, _possibleConstructorReturn3['default'])(_this, _ret); } - var isDraggableEqual = first.draggable.id === second.draggable.id && first.draggable.droppableId === second.draggable.droppableId && first.draggable.type === second.draggable.type && first.draggable.index === second.draggable.index; - var isDroppableEqual = first.droppable.id === second.droppable.id && first.droppable.type === second.droppable.type; - return isDraggableEqual && isDroppableEqual; - }; - - var getExpiringAnnounce = function getExpiringAnnounce(announce) { - var wasCalled = false; - var isExpired = false; - setTimeout(function () { - isExpired = true; - }); - - var result = function result(message) { - if (wasCalled) { - if (process.env.NODE_ENV !== 'production') { - console.warn('Announcement already made. Not making a second announcement'); - } + MenuItemGroup.prototype.render = function render() { + var props = (0, _objectWithoutProperties3['default'])(this.props, []); + var _props$className = props.className, + className = _props$className === undefined ? '' : _props$className, + rootPrefixCls = props.rootPrefixCls; - return; - } + var titleClassName = rootPrefixCls + '-item-group-title'; + var listClassName = rootPrefixCls + '-item-group-list'; + var title = props.title, + children = props.children; - if (isExpired) { - if (process.env.NODE_ENV !== 'production') { - console.warn("\n Announcements cannot be made asynchronously.\n Default message has already been announced.\n "); - } + _util.menuAllProps.forEach(function (key) { + return delete props[key]; + }); - return; - } + // Set onClick to null, to ignore propagated onClick event + delete props.onClick; - wasCalled = true; - announce(message); + return _react2['default'].createElement( + 'li', + (0, _extends3['default'])({}, props, { className: className + ' ' + rootPrefixCls + '-item-group' }), + _react2['default'].createElement( + 'div', + { + className: titleClassName, + title: typeof title === 'string' ? title : undefined + }, + title + ), + _react2['default'].createElement( + 'ul', + { className: listClassName }, + _react2['default'].Children.map(children, this.renderInnerMenuItem) + ) + ); }; - result.wasCalled = function () { - return wasCalled; - }; + return MenuItemGroup; + }(_react2['default'].Component); - return result; + MenuItemGroup.propTypes = { + renderMenuItem: _propTypes2['default'].func, + index: _propTypes2['default'].number, + className: _propTypes2['default'].string, + subMenuKey: _propTypes2['default'].string, + rootPrefixCls: _propTypes2['default'].string }; - - var getDragStart = function getDragStart(critical) { - return { - draggableId: critical.draggable.id, - type: critical.droppable.type, - source: { - droppableId: critical.droppable.id, - index: critical.draggable.index - } - }; + MenuItemGroup.defaultProps = { + disabled: true }; - var hooks = (function (getHooks, announce) { - var execute = function execute(hook, data, getDefaultMessage) { - if (!hook) { - announce(getDefaultMessage(data)); - return; - } - var willExpire = getExpiringAnnounce(announce); - var provided = { - announce: willExpire - }; - hook(data, provided); + MenuItemGroup.isMenuItemGroup = true; - if (!willExpire.wasCalled()) { - announce(getDefaultMessage(data)); - } - }; + exports['default'] = MenuItemGroup; + module.exports = exports['default']; + +/***/ }), +/* 606 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - var publisher = function () { - var lastLocation = null; - var lastCritical = null; - var _isDragStartPublished = false; + exports.__esModule = true; - var beforeStart = function beforeStart(critical) { - !!_isDragStartPublished ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot fire onBeforeDragStart as a drag start has already been published') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - withTimings('onBeforeDragStart', function () { - var fn = getHooks().onBeforeDragStart; + var _classCallCheck2 = __webpack_require__(337); - if (fn) { - fn(getDragStart(critical)); - } - }); - }; + var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - var start$$1 = function start$$1(critical) { - !!_isDragStartPublished ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot fire onBeforeDragStart as a drag start has already been published') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - var data = getDragStart(critical); - lastCritical = critical; - lastLocation = data.source; - _isDragStartPublished = true; - withTimings('onDragStart', function () { - return execute(getHooks().onDragStart, data, preset.onDragStart); - }); - }; + var _possibleConstructorReturn2 = __webpack_require__(338); - var move = function move(critical, location) { - !(_isDragStartPublished && lastCritical) ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot fire onDragMove when onDragStart has not been called') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - var hasCriticalChanged = !isCriticalEqual(critical, lastCritical); + var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - if (hasCriticalChanged) { - lastCritical = critical; - } + var _inherits2 = __webpack_require__(369); - var hasLocationChanged = !areLocationsEqual(lastLocation, location); + var _inherits3 = _interopRequireDefault(_inherits2); - if (hasLocationChanged) { - lastLocation = location; - } + var _react = __webpack_require__(1); - if (!hasCriticalChanged && !hasLocationChanged) { - return; - } + var _react2 = _interopRequireDefault(_react); - var data = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({}, getDragStart(critical), { - destination: location - }); + var _propTypes = __webpack_require__(6); - withTimings('onDragUpdate', function () { - return execute(getHooks().onDragUpdate, data, preset.onDragUpdate); - }); - }; + var _propTypes2 = _interopRequireDefault(_propTypes); - var drop = function drop(result) { - !_isDragStartPublished ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot fire onDragEnd when there is no matching onDragStart') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - _isDragStartPublished = false; - lastLocation = null; - lastCritical = null; - withTimings('onDragEnd', function () { - return execute(getHooks().onDragEnd, result, preset.onDragEnd); - }); - }; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - var abort = function abort() { - !(_isDragStartPublished && lastCritical) ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot cancel when onDragStart not fired') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + var Divider = function (_React$Component) { + (0, _inherits3['default'])(Divider, _React$Component); - var result = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({}, getDragStart(lastCritical), { - destination: null, - reason: 'CANCEL' - }); + function Divider() { + (0, _classCallCheck3['default'])(this, Divider); + return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); + } - drop(result); - }; + Divider.prototype.render = function render() { + var _props = this.props, + className = _props.className, + rootPrefixCls = _props.rootPrefixCls, + style = _props.style; - return { - beforeStart: beforeStart, - start: start$$1, - move: move, - drop: drop, - abort: abort, - isDragStartPublished: function isDragStartPublished() { - return _isDragStartPublished; - } - }; - }(); + return _react2['default'].createElement('li', { + className: className + ' ' + rootPrefixCls + '-item-divider', + style: style + }); + }; - return function (store) { - return function (next) { - return function (action) { - if (action.type === 'INITIAL_PUBLISH') { - var critical = action.payload.critical; - publisher.beforeStart(critical); - next(action); - publisher.start(critical); - return; - } + return Divider; + }(_react2['default'].Component); - next(action); + Divider.propTypes = { + className: _propTypes2['default'].string, + rootPrefixCls: _propTypes2['default'].string, + style: _propTypes2['default'].object + }; + Divider.defaultProps = { + // To fix keyboard UX. + disabled: true, + className: '', + style: {} + }; + exports['default'] = Divider; + module.exports = exports['default']; + +/***/ }), +/* 607 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - if (action.type === 'DROP_COMPLETE') { - var result = action.payload; - publisher.drop(result); - return; - } + Object.defineProperty(exports, "__esModule", { + value: true + }); - if (action.type === 'CLEAN') { - if (publisher.isDragStartPublished()) { - publisher.abort(); - } + var _react = __webpack_require__(1); - return; - } + var _react2 = _interopRequireDefault(_react); - if (!publisher.isDragStartPublished()) { - return; - } + var _propTypes = __webpack_require__(6); - var state = store.getState(); + var _propTypes2 = _interopRequireDefault(_propTypes); - if (state.phase === 'DRAGGING') { - publisher.move(state.critical, state.impact.destination); - } - }; - }; - }; - }); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - var dropAnimationFinish = (function (store) { - return function (next) { - return function (action) { - if (action.type !== 'DROP_ANIMATION_FINISHED') { - next(action); - return; - } + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - var state = store.getState(); - !(state.phase === 'DROP_ANIMATING') ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot finish a drop animating when no drop is occurring') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - store.dispatch(completeDrop(state.pending.result)); - }; - }; - }); + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - var dimensionMarshalStopper = (function (getMarshal) { - return function () { - return function (next) { - return function (action) { - if (action.type === 'DROP_COMPLETE' || action.type === 'CLEAN' || action.type === 'DROP_ANIMATE') { - var marshal = getMarshal(); - marshal.stopPublishing(); - } + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - next(action); - }; - }; - }; - }); + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** + * This source code is quoted from rc-select. + * homepage: https://github.com/react-component/select + */ - var shouldCancel = function shouldCancel(action) { - return action.type === 'CANCEL' || action.type === 'DROP_ANIMATE' || action.type === 'DROP' || action.type === 'DROP_COMPLETE' || action.type === 'COLLECTION_STARTING'; - }; - var autoScroll = (function (getScroller) { - return function (store) { - return function (next) { - return function (action) { - if (shouldCancel(action)) { - getScroller().cancel(); - next(action); - return; - } + var Option = function (_React$Component) { + _inherits(Option, _React$Component); - next(action); - var state = store.getState(); + function Option() { + _classCallCheck(this, Option); - if (state.phase !== 'DRAGGING') { - return; - } + return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); + } - if (state.autoScrollMode === 'FLUID') { - getScroller().fluidScroll(state); - return; - } + return Option; + }(_react2["default"].Component); - if (!state.scrollJumpRequest) { - return; - } + Option.propTypes = { + value: _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].number]) + }; + Option.isSelectOption = true; + exports["default"] = Option; + module.exports = exports['default']; + +/***/ }), +/* 608 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - getScroller().jumpScroll(state); - }; - }; - }; + Object.defineProperty(exports, "__esModule", { + value: true }); + exports.UNSELECTABLE_ATTRIBUTE = exports.UNSELECTABLE_STYLE = undefined; - var shouldCheckOnAction = function shouldCheckOnAction(action) { - return action.type === 'MOVE' || action.type === 'MOVE_UP' || action.type === 'MOVE_RIGHT' || action.type === 'MOVE_DOWN' || action.type === 'MOVE_LEFT' || action.type === 'MOVE_BY_WINDOW_SCROLL'; - }; + var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - var hasDroppableOverChanged = function hasDroppableOverChanged(previous, current) { - if (!previous) { - return Boolean(current); - } + exports.toTitle = toTitle; + exports.getValuePropValue = getValuePropValue; + exports.getPropValue = getPropValue; + exports.isMultiple = isMultiple; + exports.isCombobox = isCombobox; + exports.isMultipleOrTags = isMultipleOrTags; + exports.isMultipleOrTagsOrCombobox = isMultipleOrTagsOrCombobox; + exports.isSingleMode = isSingleMode; + exports.toArray = toArray; + exports.getMapKey = getMapKey; + exports.preventDefaultEvent = preventDefaultEvent; + exports.findIndexInValueBySingleValue = findIndexInValueBySingleValue; + exports.getLabelFromPropsValue = getLabelFromPropsValue; + exports.getSelectKeys = getSelectKeys; + exports.findFirstMenuItem = findFirstMenuItem; + exports.includesSeparators = includesSeparators; + exports.splitBySeparators = splitBySeparators; + exports.defaultFilterFn = defaultFilterFn; + exports.validateOptionValue = validateOptionValue; + exports.saveRef = saveRef; - if (!current) { - return Boolean(previous); - } + var _react = __webpack_require__(1); - return previous.droppableId !== current.droppableId; - }; + var _react2 = _interopRequireDefault(_react); - var getNewMaxScroll = function getNewMaxScroll(previous, current, action) { - if (!shouldCheckOnAction(action)) { - return null; - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - if (!isMovementAllowed(previous) || !isMovementAllowed(current)) { - return null; + function toTitle(title) { + if (typeof title === 'string') { + return title; } + return null; + } - if (!hasDroppableOverChanged(previous.impact.destination, current.impact.destination)) { + function getValuePropValue(child) { + if (!child) { return null; } - var viewport = current.viewport; - var doc = document.documentElement; - !doc ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Could not find document.documentElement') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - var maxScroll = getMaxScroll({ - scrollHeight: doc.scrollHeight, - scrollWidth: doc.scrollWidth, - width: viewport.frame.width, - height: viewport.frame.height - }); - - if (isEqual(maxScroll, viewport.scroll.max)) { - return null; + var props = child.props; + if ('value' in props) { + return props.value; } + if (child.key) { + return child.key; + } + if (child.type && child.type.isSelectOptGroup && props.label) { + return props.label; + } + throw new Error('Need at least a key or a value or a label (only for OptGroup) for ' + child); + } - return maxScroll; - }; - - var maxScrollUpdater = (function (store) { - return function (next) { - return function (action) { - var previous = store.getState(); - next(action); - var current = store.getState(); - var maxScroll = getNewMaxScroll(previous, current, action); - - if (maxScroll) { - next(updateViewportMaxScroll(maxScroll)); - } - }; - }; - }); - - var composeEnhancers = typeof window === 'object' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : __WEBPACK_IMPORTED_MODULE_5_redux__["c" /* compose */]; - var createStore$1 = (function (_ref) { - var getDimensionMarshal = _ref.getDimensionMarshal, - styleMarshal = _ref.styleMarshal, - getHooks = _ref.getHooks, - announce = _ref.announce, - getScroller = _ref.getScroller; - return Object(__WEBPACK_IMPORTED_MODULE_5_redux__["d" /* createStore */])(reducer, composeEnhancers(Object(__WEBPACK_IMPORTED_MODULE_5_redux__["a" /* applyMiddleware */])(style(styleMarshal), dimensionMarshalStopper(getDimensionMarshal), lift$1(getDimensionMarshal), drop$1, dropAnimationFinish, maxScrollUpdater, autoScroll(getScroller), hooks(getHooks, announce)))); - }); - - var getEmptyMap = function getEmptyMap() { - return { - draggables: {}, - droppables: {} - }; - }; + function getPropValue(child, prop) { + if (prop === 'value') { + return getValuePropValue(child); + } + return child.props[prop]; + } - var timingKey = 'Publish collection from DOM'; - var createPublisher = (function (_ref) { - var getProvided = _ref.getProvided, - callbacks = _ref.callbacks; + function isMultiple(props) { + return props.multiple; + } - var advancedUsageWarning = function () { - if (process.env.NODE_ENV === 'production') { - return function () {}; - } + function isCombobox(props) { + return props.combobox; + } - var hasAnnounced = false; - return function () { - if (hasAnnounced) { - return; - } + function isMultipleOrTags(props) { + return props.multiple || props.tags; + } - hasAnnounced = true; + function isMultipleOrTagsOrCombobox(props) { + return isMultipleOrTags(props) || isCombobox(props); + } - if (process.env.NODE_ENV === 'production') { - return; - } + function isSingleMode(props) { + return !isMultipleOrTagsOrCombobox(props); + } - console.warn("\n Advanced usage warning: you are adding or removing a dimension during a drag\n This an advanced feature used to support dynamic interactions such as lazy loading lists.\n\n Keep in mind the following restrictions:\n\n - Draggable's can only be added to Droppable's that are scroll containers\n - Adding a Droppable cannot impact the placement of other Droppables\n (it cannot push a Droppable on the page)\n\n (This warning will be stripped in production builds)\n ".trim()); - }; - }(); + function toArray(value) { + var ret = value; + if (value === undefined) { + ret = []; + } else if (!Array.isArray(value)) { + ret = [value]; + } + return ret; + } - var additions = getEmptyMap(); - var removals = getEmptyMap(); - var frameId = null; + function getMapKey(value) { + return (typeof value === 'undefined' ? 'undefined' : _typeof(value)) + '-' + value; + } - var reset = function reset() { - additions = getEmptyMap(); - removals = getEmptyMap(); - }; + function preventDefaultEvent(e) { + e.preventDefault(); + } - var collect = function collect() { - advancedUsageWarning(); + function findIndexInValueBySingleValue(value, singleValue) { + var index = -1; + for (var i = 0; i < value.length; i++) { + if (value[i] === singleValue) { + index = i; + break; + } + } + return index; + } - if (frameId) { - return; + function getLabelFromPropsValue(value, key) { + var label = void 0; + value = toArray(value); + for (var i = 0; i < value.length; i++) { + if (value[i].key === key) { + label = value[i].label; + break; } + } + return label; + } - frameId = requestAnimationFrame(function () { - frameId = null; - callbacks.collectionStarting(); - start(timingKey); + function getSelectKeys(menuItems, value) { + if (value === null || value === undefined) { + return []; + } + var selectedKeys = []; + _react2["default"].Children.forEach(menuItems, function (item) { + if (item.type.isMenuItemGroup) { + selectedKeys = selectedKeys.concat(getSelectKeys(item.props.children, value)); + } else { + var itemValue = getValuePropValue(item); + var itemKey = item.key; + if (findIndexInValueBySingleValue(value, itemValue) !== -1 && itemKey) { + selectedKeys.push(itemKey); + } + } + }); + return selectedKeys; + } - var _getProvided = getProvided(), - entries = _getProvided.entries, - collection = _getProvided.collection; + var UNSELECTABLE_STYLE = exports.UNSELECTABLE_STYLE = { + userSelect: 'none', + WebkitUserSelect: 'none' + }; - var windowScroll = collection.initialWindowScroll; + var UNSELECTABLE_ATTRIBUTE = exports.UNSELECTABLE_ATTRIBUTE = { + unselectable: 'on' + }; - var draggables = __WEBPACK_IMPORTED_MODULE_3__babel_runtime_corejs2_core_js_object_keys___default()(additions.draggables).map(function (id) { - return entries.draggables[id].getDimension(windowScroll); - }); + function findFirstMenuItem(children) { + for (var i = 0; i < children.length; i++) { + var child = children[i]; + if (child.type.isMenuItemGroup) { + var found = findFirstMenuItem(child.props.children); + if (found) { + return found; + } + } else if (!child.props.disabled) { + return child; + } + } + return null; + } - var droppables = __WEBPACK_IMPORTED_MODULE_3__babel_runtime_corejs2_core_js_object_keys___default()(additions.droppables).map(function (id) { - return entries.droppables[id].callbacks.getDimensionAndWatchScroll(windowScroll, collection.scrollOptions); - }); + function includesSeparators(string, separators) { + for (var i = 0; i < separators.length; ++i) { + if (string.lastIndexOf(separators[i]) > 0) { + return true; + } + } + return false; + } - var result = { - additions: { - draggables: draggables, - droppables: droppables - }, - removals: { - draggables: __WEBPACK_IMPORTED_MODULE_3__babel_runtime_corejs2_core_js_object_keys___default()(removals.draggables), - droppables: __WEBPACK_IMPORTED_MODULE_3__babel_runtime_corejs2_core_js_object_keys___default()(removals.droppables) - } - }; - reset(); - finish(timingKey); - callbacks.publish(result); - }); - }; + function splitBySeparators(string, separators) { + var reg = new RegExp('[' + separators.join() + ']'); + return string.split(reg).filter(function (token) { + return token; + }); + } - var addDraggable = function addDraggable(id) { - additions.draggables[id] = true; + function defaultFilterFn(input, child) { + if (child.props.disabled) { + return false; + } + var value = toArray(getPropValue(child, this.props.optionFilterProp)).join(''); + return value.toLowerCase().indexOf(input.toLowerCase()) > -1; + } - if (removals.draggables[id]) { - delete removals.draggables[id]; - } + function validateOptionValue(value, props) { + if (isSingleMode(props) || isMultiple(props)) { + return; + } + if (typeof value !== 'string') { + throw new Error('Invalid `value` of type `' + (typeof value === 'undefined' ? 'undefined' : _typeof(value)) + '` supplied to Option, ' + 'expected `string` when `tags/combobox` is `true`.'); + } + } - collect(); + function saveRef(instance, name) { + return function (node) { + instance[name] = node; }; + } + +/***/ }), +/* 609 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - var removeDraggable = function removeDraggable(id) { - removals.draggables[id] = true; + Object.defineProperty(exports, "__esModule", { + value: true + }); - if (additions.draggables[id]) { - delete additions.draggables[id]; - } + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - collect(); - }; + var _trigger = __webpack_require__(314); - var addDroppable = function addDroppable(id) { - additions.droppables[id] = true; + var _trigger2 = _interopRequireDefault(_trigger); - if (removals.droppables[id]) { - delete removals.droppables[id]; - } + var _react = __webpack_require__(1); - collect(); - }; + var _react2 = _interopRequireDefault(_react); - var removeDroppable = function removeDroppable(id) { - removals.droppables[id] = true; + var _propTypes = __webpack_require__(6); - if (additions.droppables[id]) { - delete additions.droppables[id]; - } + var _propTypes2 = _interopRequireDefault(_propTypes); - collect(); - }; + var _classnames = __webpack_require__(5); - var stop = function stop() { - if (!frameId) { - return; - } + var _classnames2 = _interopRequireDefault(_classnames); - cancelAnimationFrame(frameId); - frameId = null; - reset(); - }; + var _reactDom = __webpack_require__(2); - return { - addDraggable: addDraggable, - removeDraggable: removeDraggable, - addDroppable: addDroppable, - removeDroppable: removeDroppable, - stop: stop - }; - }); + var _reactDom2 = _interopRequireDefault(_reactDom); - var createDimensionMarshal = (function (callbacks) { - var entries = { - droppables: {}, - draggables: {} - }; - var collection = null; - var publisher = createPublisher({ - callbacks: { - publish: callbacks.publish, - collectionStarting: callbacks.collectionStarting - }, - getProvided: function getProvided() { - !collection ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot get scroll options when there is no collection') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - return { - entries: entries, - collection: collection - }; - } - }); + var _util = __webpack_require__(608); - var registerDraggable = function registerDraggable(descriptor, getDimension) { - var entry = { - descriptor: descriptor, - getDimension: getDimension - }; - entries.draggables[descriptor.id] = entry; + var _DropdownMenu = __webpack_require__(610); - if (!collection) { - return; - } + var _DropdownMenu2 = _interopRequireDefault(_DropdownMenu); - if (collection.critical.draggable.type !== descriptor.type) { - return; - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - publisher.addDraggable(descriptor.id); - }; + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - var updateDraggable = function updateDraggable(previous, descriptor, getDimension) { - !entries.draggables[previous.id] ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot update draggable registration as no previous registration was found') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - delete entries.draggables[previous.id]; - var entry = { - descriptor: descriptor, - getDimension: getDimension - }; - entries.draggables[descriptor.id] = entry; - }; + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - var unregisterDraggable = function unregisterDraggable(descriptor) { - var entry = entries.draggables[descriptor.id]; - !entry ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, "Cannot unregister Draggable with id " + descriptor.id + " as it is not registered") : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - if (entry.descriptor !== descriptor) { - return; - } + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - delete entries.draggables[descriptor.id]; + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - if (!collection) { - return; - } + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** + * This source code is quoted from rc-select. + * homepage: https://github.com/react-component/select + */ - !(collection.critical.draggable.id !== descriptor.id) ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot remove the dragging item during a drag') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - if (descriptor.type !== collection.critical.draggable.type) { - return; + _trigger2["default"].displayName = 'Trigger'; + + var BUILT_IN_PLACEMENTS = { + bottomLeft: { + points: ['tl', 'bl'], + offset: [0, 4], + overflow: { + adjustX: 0, + adjustY: 1 + } + }, + topLeft: { + points: ['bl', 'tl'], + offset: [0, -4], + overflow: { + adjustX: 0, + adjustY: 1 } + } + }; - publisher.removeDraggable(descriptor.id); - }; + var SelectTrigger = function (_React$Component) { + _inherits(SelectTrigger, _React$Component); - var registerDroppable = function registerDroppable(descriptor, droppableCallbacks) { - var id = descriptor.id; - entries.droppables[id] = { - descriptor: descriptor, - callbacks: droppableCallbacks - }; + function SelectTrigger(props) { + _classCallCheck(this, SelectTrigger); - if (!collection) { - return; - } + var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); - if (descriptor.type !== collection.critical.droppable.type) { - return; - } + _initialiseProps.call(_this); - publisher.addDroppable(id); - }; + _this.saveDropdownMenuRef = (0, _util.saveRef)(_this, 'dropdownMenuRef'); + _this.saveTriggerRef = (0, _util.saveRef)(_this, 'triggerRef'); - var updateDroppable = function updateDroppable(previous, descriptor, droppableCallbacks) { - !entries.droppables[previous.id] ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot update droppable registration as no previous registration was found') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - delete entries.droppables[previous.id]; - var entry = { - descriptor: descriptor, - callbacks: droppableCallbacks + _this.state = { + dropdownWidth: null }; - entries.droppables[descriptor.id] = entry; + return _this; + } - if (collection) { - process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'You are not able to update the id or type of a droppable during a drag') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false); + SelectTrigger.prototype.componentDidMount = function componentDidMount() { + if (this.props.open) { + //宽度计算时机修改 + this.setDropdownWidth(); } }; - var unregisterDroppable = function unregisterDroppable(descriptor) { - var entry = entries.droppables[descriptor.id]; - !entry ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, "Cannot unregister Droppable with id " + descriptor.id + " as as it is not registered") : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - - if (entry.descriptor !== descriptor) { - return; + SelectTrigger.prototype.componentDidUpdate = function componentDidUpdate() { + if (this.props.visible) { + //宽度计算时机修改 + this.setDropdownWidth(); } + }; - delete entries.droppables[descriptor.id]; + SelectTrigger.prototype.render = function render() { + var _popupClassName; - if (!collection) { - return; - } + var _props = this.props, + onPopupFocus = _props.onPopupFocus, + props = _objectWithoutProperties(_props, ['onPopupFocus']); - !(collection.critical.droppable.id !== descriptor.id) ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot remove the home Droppable during a drag') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + var multiple = props.multiple, + visible = props.visible, + inputValue = props.inputValue, + dropdownAlign = props.dropdownAlign, + disabled = props.disabled, + showSearch = props.showSearch, + dropdownClassName = props.dropdownClassName, + dropdownStyle = props.dropdownStyle, + dropdownMatchSelectWidth = props.dropdownMatchSelectWidth; - if (collection.critical.droppable.type !== descriptor.type) { - return; + var dropdownPrefixCls = this.getDropdownPrefixCls(); + var popupClassName = (_popupClassName = {}, _defineProperty(_popupClassName, dropdownClassName, !!dropdownClassName), _defineProperty(_popupClassName, dropdownPrefixCls + '--' + (multiple ? 'multiple' : 'single'), 1), _popupClassName); + var popupElement = this.getDropdownElement({ + menuItems: props.options, + onPopupFocus: onPopupFocus, + multiple: multiple, + inputValue: inputValue, + visible: visible + }); + var hideAction = void 0; + if (disabled) { + hideAction = []; + } else if ((0, _util.isSingleMode)(props) && !showSearch) { + hideAction = ['click']; + } else { + hideAction = ['blur']; } - - publisher.removeDroppable(descriptor.id); - }; - - var updateDroppableIsEnabled = function updateDroppableIsEnabled(id, isEnabled) { - !entries.droppables[id] ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, "Cannot update the scroll on Droppable " + id + " as it is not registered") : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - - if (!collection) { - return; + var popupStyle = _extends({}, dropdownStyle); + var widthProp = dropdownMatchSelectWidth ? 'width' : 'minWidth'; + if (this.state.dropdownWidth) { + popupStyle[widthProp] = this.state.dropdownWidth + 'px'; } - callbacks.updateDroppableIsEnabled({ - id: id, - isEnabled: isEnabled - }); + return _react2["default"].createElement( + _trigger2["default"], + _extends({}, props, { + showAction: disabled ? [] : this.props.showAction, + hideAction: hideAction, + ref: this.saveTriggerRef, + popupPlacement: 'bottomLeft', + builtinPlacements: BUILT_IN_PLACEMENTS, + prefixCls: dropdownPrefixCls, + popupTransitionName: this.getDropdownTransitionName(), + onPopupVisibleChange: props.onDropdownVisibleChange, + popup: popupElement, + popupAlign: dropdownAlign, + popupVisible: visible, + getPopupContainer: props.getPopupContainer, + popupClassName: (0, _classnames2["default"])(popupClassName), + popupStyle: popupStyle + }), + props.children + ); }; - var updateDroppableScroll = function updateDroppableScroll(id, newScroll) { - !entries.droppables[id] ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, "Cannot update the scroll on Droppable " + id + " as it is not registered") : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - - if (!collection) { - return; - } + return SelectTrigger; + }(_react2["default"].Component); - callbacks.updateDroppableScroll({ - id: id, - offset: newScroll - }); - }; + SelectTrigger.propTypes = { + onPopupFocus: _propTypes2["default"].func, + onPopupScroll: _propTypes2["default"].func, + dropdownMatchSelectWidth: _propTypes2["default"].bool, + dropdownAlign: _propTypes2["default"].object, + visible: _propTypes2["default"].bool, + disabled: _propTypes2["default"].bool, + showSearch: _propTypes2["default"].bool, + dropdownClassName: _propTypes2["default"].string, + multiple: _propTypes2["default"].bool, + inputValue: _propTypes2["default"].string, + filterOption: _propTypes2["default"].any, + options: _propTypes2["default"].any, + prefixCls: _propTypes2["default"].string, + popupClassName: _propTypes2["default"].string, + children: _propTypes2["default"].any, + showAction: _propTypes2["default"].arrayOf(_propTypes2["default"].string), + menuItemSelectedIcon: _propTypes2["default"].oneOfType([_propTypes2["default"].func, _propTypes2["default"].node]) + }; - var scrollDroppable = function scrollDroppable(id, change) { - var entry = entries.droppables[id]; - !entry ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, "Cannot scroll Droppable " + id + " as it is not registered") : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + var _initialiseProps = function _initialiseProps() { + var _this2 = this; - if (!collection) { + this.setDropdownWidth = function () { + if (!_this2.props.dropdownMatchSelectWidth) { return; } - - entry.callbacks.scroll(change); + var width = _reactDom2["default"].findDOMNode(_this2).offsetWidth; + if (width !== _this2.state.dropdownWidth) { + _this2.setState({ dropdownWidth: width }); + } }; - var getInitialPublish = function getInitialPublish(args) { - var critical = args.critical, - scrollOptions = args.scrollOptions, - windowScroll = args.initialWindowScroll; - var timingKey = 'Initial collection from DOM'; - start(timingKey); - var home = critical.droppable; - - var droppables = __WEBPACK_IMPORTED_MODULE_3__babel_runtime_corejs2_core_js_object_keys___default()(entries.droppables).map(function (id) { - return entries.droppables[id]; - }).filter(function (entry) { - return entry.descriptor.type === home.type; - }).map(function (entry) { - return entry.callbacks.getDimensionAndWatchScroll(windowScroll, scrollOptions); - }).reduce(function (previous, dimension) { - previous[dimension.descriptor.id] = dimension; - return previous; - }, {}); + this.getInnerMenu = function () { + return _this2.dropdownMenuRef && _this2.dropdownMenuRef.menuRef; + }; - var draggables = __WEBPACK_IMPORTED_MODULE_3__babel_runtime_corejs2_core_js_object_keys___default()(entries.draggables).map(function (id) { - return entries.draggables[id]; - }).filter(function (entry) { - return entry.descriptor.type === critical.draggable.type; - }).map(function (entry) { - return entry.getDimension(windowScroll); - }).reduce(function (previous, dimension) { - previous[dimension.descriptor.id] = dimension; - return previous; - }, {}); + this.getPopupDOMNode = function () { + return _this2.triggerRef.getPopupDomNode(); + }; - finish(timingKey); - var dimensions = { - draggables: draggables, - droppables: droppables - }; - var result = { - dimensions: dimensions, - critical: critical - }; - return result; + this.getDropdownElement = function (newProps) { + var props = _this2.props; + return _react2["default"].createElement(_DropdownMenu2["default"], _extends({ + ref: _this2.saveDropdownMenuRef + }, newProps, { + clsPrefix: _this2.getDropdownPrefixCls(), + onMenuSelect: props.onMenuSelect, + onMenuDeselect: props.onMenuDeselect, + onPopupScroll: props.onPopupScroll, + value: props.value, + backfillValue: props.backfillValue, + firstActiveValue: props.firstActiveValue, + defaultActiveFirstOption: props.defaultActiveFirstOption, + dropdownMenuStyle: props.dropdownMenuStyle, + menuItemSelectedIcon: props.menuItemSelectedIcon + })); }; - var stopPublishing = function stopPublishing() { - if (!collection) { - return; + this.getDropdownTransitionName = function () { + var props = _this2.props; + var transitionName = props.transitionName; + if (!transitionName && props.animation) { + transitionName = _this2.getDropdownPrefixCls() + '-' + props.animation; } + return transitionName; + }; - publisher.stop(); - var home = collection.critical.droppable; + this.getDropdownPrefixCls = function () { + return _this2.props.prefixCls + '-dropdown'; + }; + }; - __WEBPACK_IMPORTED_MODULE_3__babel_runtime_corejs2_core_js_object_keys___default()(entries.droppables).filter(function (id) { - return entries.droppables[id].descriptor.type === home.type; - }).forEach(function (id) { - return entries.droppables[id].callbacks.unwatchScroll(); - }); + exports["default"] = SelectTrigger; - collection = null; - }; - var startPublishing = function startPublishing(request, windowScroll) { - !!collection ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot start capturing critical dimensions as there is already a collection') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - var entry = entries.draggables[request.draggableId]; - !entry ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot find critical draggable entry') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - var home = entries.droppables[entry.descriptor.droppableId]; - !home ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot find critical droppable entry') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - var critical = { - draggable: entry.descriptor, - droppable: home.descriptor - }; - collection = { - scrollOptions: request.scrollOptions, - critical: critical, - initialWindowScroll: windowScroll - }; - return getInitialPublish(collection); - }; + SelectTrigger.displayName = 'SelectTrigger'; + module.exports = exports['default']; + +/***/ }), +/* 610 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - var marshal = { - registerDraggable: registerDraggable, - updateDraggable: updateDraggable, - unregisterDraggable: unregisterDraggable, - registerDroppable: registerDroppable, - updateDroppable: updateDroppable, - unregisterDroppable: unregisterDroppable, - updateDroppableIsEnabled: updateDroppableIsEnabled, - scrollDroppable: scrollDroppable, - updateDroppableScroll: updateDroppableScroll, - startPublishing: startPublishing, - stopPublishing: stopPublishing - }; - return marshal; + Object.defineProperty(exports, "__esModule", { + value: true }); - var physics = function () { - var base = { - stiffness: 1000, - damping: 60, - precision: 0.99 - }; - - var standard = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({}, base); + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var fast = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({}, base, { - stiffness: base.stiffness * 2 - }); + var _react = __webpack_require__(1); - return { - standard: standard, - fast: fast - }; - }(); - var css = { - outOfTheWay: 'transform 0.2s cubic-bezier(0.2, 0, 0, 1)' - }; + var _react2 = _interopRequireDefault(_react); - var prefix = 'data-react-beautiful-dnd'; - var dragHandle = prefix + "-drag-handle"; - var draggable = prefix + "-draggable"; - var droppable = prefix + "-droppable"; + var _reactDom = __webpack_require__(2); - var getStyles = (function (styleContext) { - var dragHandleSelector = "[" + dragHandle + "=\"" + styleContext + "\"]"; - var draggableSelector = "[" + draggable + "=\"" + styleContext + "\"]"; - var droppableSelector = "[" + droppable + "=\"" + styleContext + "\"]"; - var dragHandleStyles = { - base: "\n " + dragHandleSelector + " {\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n }\n ", - grabCursor: "\n " + dragHandleSelector + " {\n cursor: -webkit-grab;\n cursor: grab;\n }\n ", - blockPointerEvents: "\n " + dragHandleSelector + " {\n pointer-events: none;\n }\n " - }; - var draggableStyles = { - animateMovement: "\n " + draggableSelector + " {\n transition: " + css.outOfTheWay + ";\n }\n " - }; - var droppableStyles = { - base: "\n " + droppableSelector + " {\n overflow-anchor: none;\n }\n " - }; - var bodyStyles = { - whileActiveDragging: "\n body {\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n }\n " - }; - var base = [dragHandleStyles.base, droppableStyles.base]; - var resting = base.concat([dragHandleStyles.grabCursor]); - var collecting = base.concat([dragHandleStyles.blockPointerEvents, bodyStyles.whileActiveDragging]); - var dragging = collecting.concat([draggableStyles.animateMovement]); - var dropAnimating = base.concat([dragHandleStyles.grabCursor, draggableStyles.animateMovement]); - var userCancel = base.concat([draggableStyles.animateMovement]); - return { - resting: resting.join(''), - dragging: dragging.join(''), - dropAnimating: dropAnimating.join(''), - collecting: collecting.join(''), - userCancel: userCancel.join('') - }; - }); + var _propTypes = __webpack_require__(6); - var count = 0; - var resetStyleContext = function resetStyleContext() { - count = 0; - }; + var _propTypes2 = _interopRequireDefault(_propTypes); - var getHead = function getHead() { - var head = document.querySelector('head'); - !head ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot find the head to append a style to') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - return head; - }; + var _tinperBeeCore = __webpack_require__(27); - var createStyleMarshal = (function () { - var context = "" + count++; - var styles = getStyles(context); - var el = null; - var setStyle = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (proposed) { - !el ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot set style of style tag if not mounted') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - el.innerHTML = proposed; - }); + var _rcMenu = __webpack_require__(597); - var mount = function mount() { - !!el ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Style marshal already mounted') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - el = document.createElement('style'); - el.type = 'text/css'; - el.setAttribute(prefix, context); - getHead().appendChild(el); - setStyle(styles.resting); - }; + var _rcMenu2 = _interopRequireDefault(_rcMenu); - var collecting = function collecting() { - return setStyle(styles.collecting); - }; + var _domScrollIntoView = __webpack_require__(402); - var dragging = function dragging() { - return setStyle(styles.dragging); - }; + var _domScrollIntoView2 = _interopRequireDefault(_domScrollIntoView); - var dropping = function dropping(reason) { - if (reason === 'DROP') { - setStyle(styles.dropAnimating); - return; - } + var _raf = __webpack_require__(235); - setStyle(styles.userCancel); - }; + var _raf2 = _interopRequireDefault(_raf); - var resting = function resting() { - return setStyle(styles.resting); - }; + var _util = __webpack_require__(608); - var unmount = function unmount() { - !el ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot unmount style marshal as it is already unmounted') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - getHead().removeChild(el); - el = null; - }; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - var marshal = { - collecting: collecting, - dragging: dragging, - dropping: dropping, - resting: resting, - styleContext: context, - mount: mount, - unmount: unmount - }; - return marshal; - }); + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - var canStartDrag = (function (state, id) { - if (state.phase === 'IDLE') { - return true; - } + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - if (state.phase !== 'DROP_ANIMATING') { - return false; - } + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - if (state.pending.result.draggableId === id) { - return false; - } + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** + * This source code is quoted from rc-select. + * homepage: https://github.com/react-component/select + */ - return state.pending.result.reason === 'DROP'; - }); - var scrollWindow = (function (change) { - window.scrollBy(change.x, change.y); - }); + var DropdownMenu = function (_React$Component) { + _inherits(DropdownMenu, _React$Component); - var count$1 = 0; - var visuallyHidden = { - position: 'absolute', - width: '1px', - height: '1px', - margin: '-1px', - border: '0', - padding: '0', - overflow: 'hidden', - clip: 'rect(0 0 0 0)', - 'clip-path': 'inset(100%)' - }; + function DropdownMenu(props) { + _classCallCheck(this, DropdownMenu); - var getBody = function getBody() { - !document.body ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Announcer cannot find document.body') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - return document.body; - }; + var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); - var createAnnouncer = (function () { - var id = "react-beautiful-dnd-announcement-" + count$1++; - var el = null; + _this.scrollActiveItemToView = function () { + // scroll into view + var itemComponent = (0, _reactDom.findDOMNode)(_this.firstActiveItem); + var _this$props = _this.props, + value = _this$props.value, + visible = _this$props.visible, + firstActiveValue = _this$props.firstActiveValue; - var announce = function announce(message) { - !el ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot announce to unmounted node') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - el.textContent = message; - }; - var mount = function mount() { - !!el ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Announcer already mounted') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - el = document.createElement('div'); - el.id = id; - el.setAttribute('aria-live', 'assertive'); - el.setAttribute('role', 'log'); - el.setAttribute('aria-atomic', 'true'); + if (!itemComponent || !visible) { + return; + } + var scrollIntoViewOpts = { + onlyScrollIfNeeded: true + }; + if ((!value || value.length === 0) && firstActiveValue) { + scrollIntoViewOpts.alignWithTop = true; + } - __WEBPACK_IMPORTED_MODULE_6__babel_runtime_corejs2_core_js_object_assign___default()(el.style, visuallyHidden); + // Delay to scroll since current frame item position is not ready when pre view is by filter + // https://github.com/ant-design/ant-design/issues/11268#issuecomment-406634462 + _this.rafInstance = (0, _raf2["default"])(function () { + (0, _domScrollIntoView2["default"])(itemComponent, (0, _reactDom.findDOMNode)(_this.menuRef), scrollIntoViewOpts); + }); + }; - getBody().appendChild(el); - }; + _this.lastInputValue = props.inputValue; + _this.saveMenuRef = (0, _util.saveRef)(_this, 'menuRef'); + return _this; + } - var unmount = function unmount() { - !el ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Will not unmount annoucer as it is already unmounted') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - getBody().removeChild(el); - el = null; + DropdownMenu.prototype.componentDidMount = function componentDidMount() { + this.scrollActiveItemToView(); + this.lastVisible = this.props.visible; }; - var announcer = { - announce: announce, - id: id, - mount: mount, - unmount: unmount + DropdownMenu.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) { + if (!nextProps.visible) { + this.lastVisible = false; + } + // freeze when hide + return nextProps.visible || nextProps.inputValue !== this.props.inputValue; }; - return announcer; - }); - var getScrollableDroppables = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (droppables) { - return toDroppableList(droppables).filter(function (droppable) { - if (!droppable.isEnabled) { - return false; + DropdownMenu.prototype.componentDidUpdate = function componentDidUpdate(prevProps) { + var props = this.props; + if (!prevProps.visible && props.visible) { + this.scrollActiveItemToView(); } + this.lastVisible = props.visible; + this.lastInputValue = props.inputValue; + }; - if (!droppable.viewport.closestScrollable) { - return false; + DropdownMenu.prototype.componentWillUnmount = function componentWillUnmount() { + if (this.rafInstance && this.rafInstance.cancel) { + this.rafInstance.cancel(); } + }; - return true; - }); - }); - - var getScrollableDroppableOver = function getScrollableDroppableOver(target, droppables) { - var maybe = getScrollableDroppables(droppables).find(function (droppable) { - !droppable.viewport.closestScrollable ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Invalid result') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - return isPositionInFrame(droppable.viewport.closestScrollable.framePageMarginBox)(target); - }); - return maybe; - }; - - var getBestScrollableDroppable = (function (_ref) { - var center = _ref.center, - destination = _ref.destination, - droppables = _ref.droppables; - - if (destination) { - var _dimension = droppables[destination.droppableId]; + DropdownMenu.prototype.renderMenu = function renderMenu() { + var _this2 = this; - if (!_dimension.viewport.closestScrollable) { - return null; - } + var props = this.props; + var menuItems = props.menuItems, + menuItemSelectedIcon = props.menuItemSelectedIcon, + defaultActiveFirstOption = props.defaultActiveFirstOption, + value = props.value, + prefixCls = props.prefixCls, + multiple = props.multiple, + onMenuSelect = props.onMenuSelect, + inputValue = props.inputValue, + firstActiveValue = props.firstActiveValue, + backfillValue = props.backfillValue, + clsPrefix = props.clsPrefix; - return _dimension; - } + if (menuItems && menuItems.length) { + var menuProps = {}; + if (multiple) { + menuProps.onDeselect = props.onMenuDeselect; + menuProps.onSelect = onMenuSelect; + } else { + menuProps.onClick = onMenuSelect; + } - var dimension = getScrollableDroppableOver(center, droppables); - return dimension; - }); + var selectedKeys = (0, _util.getSelectKeys)(menuItems, value); + var activeKeyProps = {}; - var smallestSigned = apply(function (value) { - if (value === 0) { - return 0; - } + var clonedMenuItems = menuItems; + if (selectedKeys.length || firstActiveValue) { + if (props.visible && !this.lastVisible) { + activeKeyProps.activeKey = selectedKeys[0] || firstActiveValue; + } + var foundFirst = false; + // set firstActiveItem via cloning menus + // for scroll into view + var clone = function clone(item) { + if (!foundFirst && selectedKeys.indexOf(item.key) !== -1 || !foundFirst && !selectedKeys.length && firstActiveValue.indexOf(item.key) !== -1) { + foundFirst = true; + return (0, _react.cloneElement)(item, { + ref: function ref(_ref) { + _this2.firstActiveItem = _ref; + } + }); + } + return item; + }; - return value > 0 ? 1 : -1; - }); - var getOverlap = function () { - var getRemainder = function getRemainder(target, max) { - if (target < 0) { - return target; - } + clonedMenuItems = menuItems.map(function (item) { + if (item.type.isMenuItemGroup) { + var children = (0, _tinperBeeCore.toArray)(item.props.children).map(clone); + return (0, _react.cloneElement)(item, {}, children); + } + return clone(item); + }); + } else { + // Clear firstActiveItem when dropdown menu items was empty + // Avoid `Unable to find node on an unmounted component` + // https://github.com/ant-design/ant-design/issues/10774 + this.firstActiveItem = null; + } - if (target > max) { - return target - max; + // clear activeKey when inputValue change + var lastValue = value && value[value.length - 1]; + if (inputValue !== this.lastInputValue && (!lastValue || lastValue !== backfillValue)) { + activeKeyProps.activeKey = ''; + } + return _react2["default"].createElement( + _rcMenu2["default"], + _extends({ + ref: this.saveMenuRef, + style: this.props.dropdownMenuStyle, + defaultActiveFirst: defaultActiveFirstOption, + role: 'listbox', + itemIcon: multiple ? menuItemSelectedIcon : null + }, activeKeyProps, { + multiple: multiple + }, menuProps, { + selectedKeys: selectedKeys, + prefixCls: clsPrefix + '-menu' + }), + clonedMenuItems + ); } - - return 0; + return null; }; - return function (_ref) { - var current = _ref.current, - max = _ref.max, - change = _ref.change; - var targetScroll = add(current, change); - var overlap = { - x: getRemainder(targetScroll.x, max.x), - y: getRemainder(targetScroll.y, max.y) - }; - - if (isEqual(overlap, origin)) { - return null; - } - - return overlap; - }; - }(); - var canPartiallyScroll = function canPartiallyScroll(_ref2) { - var rawMax = _ref2.max, - current = _ref2.current, - change = _ref2.change; - var max = { - x: Math.max(current.x, rawMax.x), - y: Math.max(current.y, rawMax.y) + DropdownMenu.prototype.render = function render() { + var renderMenu = this.renderMenu(); + return renderMenu ? _react2["default"].createElement( + 'div', + { + style: { + overflow: 'auto', + transform: 'translateZ(0)' + }, + onFocus: this.props.onPopupFocus, + onMouseDown: _util.preventDefaultEvent, + onScroll: this.props.onPopupScroll + }, + renderMenu + ) : null; }; - var smallestChange = smallestSigned(change); - var overlap = getOverlap({ - max: max, - current: current, - change: smallestChange - }); - - if (!overlap) { - return true; - } - if (smallestChange.x !== 0 && overlap.x === 0) { - return true; - } - - if (smallestChange.y !== 0 && overlap.y === 0) { - return true; - } + return DropdownMenu; + }(_react2["default"].Component); - return false; - }; - var canScrollWindow = function canScrollWindow(viewport, change) { - return canPartiallyScroll({ - current: viewport.scroll.current, - max: viewport.scroll.max, - change: change - }); + DropdownMenu.displayName = 'DropdownMenu'; + DropdownMenu.propTypes = { + defaultActiveFirstOption: _propTypes2["default"].bool, + value: _propTypes2["default"].any, + dropdownMenuStyle: _propTypes2["default"].object, + multiple: _propTypes2["default"].bool, + onPopupFocus: _propTypes2["default"].func, + onPopupScroll: _propTypes2["default"].func, + onMenuDeSelect: _propTypes2["default"].func, + onMenuSelect: _propTypes2["default"].func, + prefixCls: _propTypes2["default"].string, + menuItems: _propTypes2["default"].any, + inputValue: _propTypes2["default"].string, + visible: _propTypes2["default"].bool, + firstActiveValue: _propTypes2["default"].string, + menuItemSelectedIcon: _propTypes2["default"].oneOfType([_propTypes2["default"].func, _propTypes2["default"].node]) }; - var getWindowOverlap = function getWindowOverlap(viewport, change) { - if (!canScrollWindow(viewport, change)) { - return null; - } + exports["default"] = DropdownMenu; + module.exports = exports['default']; + +/***/ }), +/* 611 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - var max = viewport.scroll.max; - var current = viewport.scroll.current; - return getOverlap({ - current: current, - max: max, - change: change - }); - }; - var canScrollDroppable = function canScrollDroppable(droppable, change) { - var closest$$1 = droppable.viewport.closestScrollable; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.SelectPropTypes = undefined; - if (!closest$$1) { - return false; - } + var _propTypes = __webpack_require__(6); - return canPartiallyScroll({ - current: closest$$1.scroll.current, - max: closest$$1.scroll.max, - change: change - }); - }; - var getDroppableOverlap = function getDroppableOverlap(droppable, change) { - var closest$$1 = droppable.viewport.closestScrollable; + var _propTypes2 = _interopRequireDefault(_propTypes); - if (!closest$$1) { - return null; - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - if (!canScrollDroppable(droppable, change)) { - return null; - } + function valueType(props, propName, componentName) { + var basicType = _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].number]); - return getOverlap({ - current: closest$$1.scroll.current, - max: closest$$1.scroll.max, - change: change + var labelInValueShape = _propTypes2["default"].shape({ + key: basicType.isRequired, + label: _propTypes2["default"].node }); - }; - - var config = { - startFrom: 0.25, - maxSpeedAt: 0.05, - maxScrollSpeed: 28, - ease: function ease(percentage) { - return Math.pow(percentage, 2); + if (props.labelInValue) { + var validate = _propTypes2["default"].oneOfType([_propTypes2["default"].arrayOf(labelInValueShape), labelInValueShape]); + var error = validate.apply(undefined, arguments); + if (error) { + return new Error('Invalid prop `' + propName + '` supplied to `' + componentName + '`, ' + ('when you set `labelInValue` to `true`, `' + propName + '` should in ') + 'shape of `{ key: string | number, label?: ReactNode }`.'); + } + } else if ((props.mode === 'multiple' || props.mode === 'tags' || props.multiple || props.tags) && props[propName] === '') { + return new Error('Invalid prop `' + propName + '` of type `string` supplied to `' + componentName + '`, ' + 'expected `array` when `multiple` or `tags` is `true`.'); + } else { + var _validate = _propTypes2["default"].oneOfType([_propTypes2["default"].arrayOf(basicType), basicType]); + return _validate.apply(undefined, arguments); } + } /** + * This source code is quoted from rc-select. + * homepage: https://github.com/react-component/select + */ + var SelectPropTypes = exports.SelectPropTypes = { + id: _propTypes2["default"].string, + defaultActiveFirstOption: _propTypes2["default"].bool, + multiple: _propTypes2["default"].bool, + filterOption: _propTypes2["default"].any, + children: _propTypes2["default"].any, + showSearch: _propTypes2["default"].bool, + disabled: _propTypes2["default"].bool, + allowClear: _propTypes2["default"].bool, + showArrow: _propTypes2["default"].bool, + tags: _propTypes2["default"].bool, + prefixCls: _propTypes2["default"].string, + className: _propTypes2["default"].string, + transitionName: _propTypes2["default"].string, + optionLabelProp: _propTypes2["default"].string, + optionFilterProp: _propTypes2["default"].string, + animation: _propTypes2["default"].string, + choiceTransitionName: _propTypes2["default"].string, + open: _propTypes2["default"].bool, + defaultOpen: _propTypes2["default"].bool, + onChange: _propTypes2["default"].func, + onBlur: _propTypes2["default"].func, + onFocus: _propTypes2["default"].func, + onSelect: _propTypes2["default"].func, + onSearch: _propTypes2["default"].func, + onPopupScroll: _propTypes2["default"].func, + onMouseEnter: _propTypes2["default"].func, + onMouseLeave: _propTypes2["default"].func, + onInputKeyDown: _propTypes2["default"].func, + placeholder: _propTypes2["default"].any, + onDeselect: _propTypes2["default"].func, + labelInValue: _propTypes2["default"].bool, + value: valueType, + defaultValue: valueType, + dropdownStyle: _propTypes2["default"].object, + maxTagTextLength: _propTypes2["default"].number, + maxTagCount: _propTypes2["default"].number, + maxTagPlaceholder: _propTypes2["default"].oneOfType([_propTypes2["default"].node, _propTypes2["default"].func]), + tokenSeparators: _propTypes2["default"].arrayOf(_propTypes2["default"].string), + getInputElement: _propTypes2["default"].func, + showAction: _propTypes2["default"].arrayOf(_propTypes2["default"].string), + clearIcon: _propTypes2["default"].node, + inputIcon: _propTypes2["default"].node, + removeIcon: _propTypes2["default"].node, + menuItemSelectedIcon: _propTypes2["default"].oneOfType([_propTypes2["default"].func, _propTypes2["default"].node]) }; - var clean$1 = apply(function (value) { - return value === 0 ? 0 : value; - }); - var getPixelThresholds = function getPixelThresholds(container, axis) { - var startFrom = container[axis.size] * config.startFrom; - var maxSpeedAt = container[axis.size] * config.maxSpeedAt; - var accelerationPlane = startFrom - maxSpeedAt; - var thresholds = { - startFrom: startFrom, - maxSpeedAt: maxSpeedAt, - accelerationPlane: accelerationPlane - }; - return thresholds; - }; + +/***/ }), +/* 612 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - var getSpeed = function getSpeed(distance$$1, thresholds) { - if (distance$$1 >= thresholds.startFrom) { - return 0; - } + Object.defineProperty(exports, "__esModule", { + value: true + }); - if (distance$$1 <= thresholds.maxSpeedAt) { - return config.maxScrollSpeed; - } + var _react = __webpack_require__(1); - var distancePastStart = thresholds.startFrom - distance$$1; - var percentage = distancePastStart / thresholds.accelerationPlane; - var transformed = config.ease(percentage); - var speed = config.maxScrollSpeed * transformed; - return speed; - }; + var _react2 = _interopRequireDefault(_react); - var adjustForSizeLimits = function adjustForSizeLimits(_ref) { - var container = _ref.container, - subject = _ref.subject, - proposedScroll = _ref.proposedScroll; - var isTooBigVertically = subject.height > container.height; - var isTooBigHorizontally = subject.width > container.width; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - if (!isTooBigHorizontally && !isTooBigVertically) { - return proposedScroll; - } + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - if (isTooBigHorizontally && isTooBigVertically) { - return null; + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + + var OptGroup = function (_React$Component) { + _inherits(OptGroup, _React$Component); + + function OptGroup() { + _classCallCheck(this, OptGroup); + + return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); } - return { - x: isTooBigHorizontally ? 0 : proposedScroll.x, - y: isTooBigVertically ? 0 : proposedScroll.y - }; - }; + return OptGroup; + }(_react2["default"].Component); - var getRequiredScroll = function getRequiredScroll(_ref2) { - var container = _ref2.container, - subject = _ref2.subject, - center = _ref2.center; - var distance$$1 = { - top: center.y - container.top, - right: container.right - center.x, - bottom: container.bottom - center.y, - left: center.x - container.left - }; + OptGroup.isSelectOptGroup = true; + exports["default"] = OptGroup; + module.exports = exports['default']; + +/***/ }), +/* 613 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - var y = function () { - var thresholds = getPixelThresholds(container, vertical); - var isCloserToBottom = distance$$1.bottom < distance$$1.top; + Object.defineProperty(exports, "__esModule", { + value: true + }); - if (isCloserToBottom) { - return getSpeed(distance$$1.bottom, thresholds); - } + var _InputNumber = __webpack_require__(614); - return -1 * getSpeed(distance$$1.top, thresholds); - }(); + var _InputNumber2 = _interopRequireDefault(_InputNumber); - var x = function () { - var thresholds = getPixelThresholds(container, horizontal); - var isCloserToRight = distance$$1.right < distance$$1.left; + var _InputNumberGroup = __webpack_require__(616); - if (isCloserToRight) { - return getSpeed(distance$$1.right, thresholds); - } + var _InputNumberGroup2 = _interopRequireDefault(_InputNumberGroup); - return -1 * getSpeed(distance$$1.left, thresholds); - }(); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - var required = clean$1({ - x: x, - y: y - }); + _InputNumber2["default"].InputNumberGroup = _InputNumberGroup2["default"]; - if (isEqual(required, origin)) { - return null; - } + exports["default"] = _InputNumber2["default"]; + module.exports = exports['default']; + +/***/ }), +/* 614 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - var limited = adjustForSizeLimits({ - container: container, - subject: subject, - proposedScroll: required - }); + Object.defineProperty(exports, "__esModule", { + value: true + }); - if (!limited) { - return null; - } + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - return isEqual(limited, origin) ? null : limited; - }; + var _react = __webpack_require__(1); - var withPlaceholder = function withPlaceholder(droppable, draggable) { - var closest$$1 = droppable.viewport.closestScrollable; + var _react2 = _interopRequireDefault(_react); - if (!closest$$1) { - return null; - } + var _classnames = __webpack_require__(5); - var isOverHome = droppable.descriptor.id === draggable.descriptor.droppableId; - var max = closest$$1.scroll.max; - var current = closest$$1.scroll.current; + var _classnames2 = _interopRequireDefault(_classnames); - if (isOverHome) { - return { - max: max, - current: current - }; - } + var _beeInputGroup = __webpack_require__(581); - var spaceForPlaceholder = patch(droppable.axis.line, draggable.placeholder.client.borderBox[droppable.axis.size]); - var newMax = add(max, spaceForPlaceholder); - var newCurrent = { - x: Math.min(current.x, newMax.x), - y: Math.min(current.y, newMax.y) - }; - return { - max: newMax, - current: newCurrent - }; - }; + var _beeInputGroup2 = _interopRequireDefault(_beeInputGroup); - var createFluidScroller = (function (_ref3) { - var scrollWindow = _ref3.scrollWindow, - scrollDroppable = _ref3.scrollDroppable; - var scheduleWindowScroll = Object(__WEBPACK_IMPORTED_MODULE_7_raf_schd__["a" /* default */])(scrollWindow); - var scheduleDroppableScroll = Object(__WEBPACK_IMPORTED_MODULE_7_raf_schd__["a" /* default */])(scrollDroppable); + var _beeFormControl = __webpack_require__(268); - var scroller = function scroller(state) { - var center = state.current.page.borderBoxCenter; - var draggable = state.dimensions.draggables[state.critical.draggable.id]; - var subject = draggable.page.marginBox; - var viewport = state.viewport; - var requiredWindowScroll = getRequiredScroll({ - container: viewport.frame, - subject: subject, - center: center - }); + var _beeFormControl2 = _interopRequireDefault(_beeFormControl); - if (requiredWindowScroll && canScrollWindow(viewport, requiredWindowScroll)) { - scheduleWindowScroll(requiredWindowScroll); - return; - } + var _beeMessage = __webpack_require__(53); - var droppable = getBestScrollableDroppable({ - center: center, - destination: state.impact.destination, - droppables: state.dimensions.droppables - }); + var _beeMessage2 = _interopRequireDefault(_beeMessage); - if (!droppable) { - return; - } + var _propTypes = __webpack_require__(6); - var closestScrollable = droppable.viewport.closestScrollable; + var _propTypes2 = _interopRequireDefault(_propTypes); - if (!closestScrollable) { - return; - } + var _i18n = __webpack_require__(615); - var requiredFrameScroll = getRequiredScroll({ - container: closestScrollable.framePageMarginBox, - subject: subject, - center: center - }); + var _i18n2 = _interopRequireDefault(_i18n); - if (!requiredFrameScroll) { - return; - } + var _tool = __webpack_require__(120); - var result = withPlaceholder(droppable, draggable); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - if (!result) { - return; - } + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - var closest$$1 = droppable.viewport.closestScrollable; + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - if (!closest$$1) { - return; - } + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - var canScrollDroppable$$1 = canPartiallyScroll({ - current: result.current, - max: result.max, - change: requiredFrameScroll - }); + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - if (canScrollDroppable$$1) { - scheduleDroppableScroll(droppable.descriptor.id, requiredFrameScroll); - } - }; + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - scroller.cancel = function () { - scheduleWindowScroll.cancel(); - scheduleDroppableScroll.cancel(); - }; + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - return scroller; - }); + var propTypes = { + max: _propTypes2["default"].number, + min: _propTypes2["default"].number, + step: _propTypes2["default"].number, + autoWidth: _propTypes2["default"].bool, + precision: _propTypes2["default"].number, + format: _propTypes2["default"].func, + delay: _propTypes2["default"].number, + disabled: _propTypes2["default"].bool, + toThousands: _propTypes2["default"].bool, + locale: _propTypes2["default"].object, + toNumber: _propTypes2["default"].bool, //回调函数内的值是否转换为数值类型 + displayCheckPrompt: _propTypes2["default"].bool, //是否显示超出限制范围之后的检验提示 + minusRight: _propTypes2["default"].bool, //负号是否在右边 + handleBtnClick: _propTypes2["default"].func, //加减按钮点击回调 + hideActionButton: _propTypes2["default"].bool //隐藏加减按钮 + }; - var createJumpScroller = (function (_ref) { - var move = _ref.move, - scrollDroppable = _ref.scrollDroppable, - scrollWindow = _ref.scrollWindow; + var defaultProps = { + value: "", + step: 1, + clsPrefix: 'u-input-number', + iconStyle: 'double', + autoWidth: false, + delay: 300, + toNumber: false, + displayCheckPrompt: false, + locale: {}, + handleBtnClick: function handleBtnClick() {} + }; - var moveByOffset = function moveByOffset(state, offset) { - var client = add(state.current.client.selection, offset); - move({ - client: client, - shouldAnimate: true - }); - }; + //校验提示 + function prompt(content) { + _beeMessage2["default"].destroy(); + _beeMessage2["default"].create({ content: content, color: 'warninglight' }); + } - var scrollDroppableAsMuchAsItCan = function scrollDroppableAsMuchAsItCan(droppable, change) { - if (!canScrollDroppable(droppable, change)) { - return change; + /** + * 千分符 + * @param {要转换的数据} num + */ + function toThousands(number) { + if (number === '') return ''; + if (number === '0') return '0'; + var num = (number || 0).toString(); + var integer = num.split('.')[0]; + var decimal = num.split('.')[1] || ''; + var result = ''; + while (integer.length > 3) { + result = ',' + integer.slice(-3) + result; + integer = integer.slice(0, integer.length - 3); + } + if (integer) { + result = integer + result; + if (num == '.' || num.indexOf('.') == num.length - 1) { + result = result + '.' + decimal; + } else if (decimal) { + result = result + '.' + decimal; + } + } + if (result[0] == '-') { + result = result.replace('-,', '-'); } + return result; + } - var overlap = getDroppableOverlap(droppable, change); + function setCaretPosition(ctrl, pos, need) { - if (!overlap) { - scrollDroppable(droppable.descriptor.id, change); - return null; + if (ctrl && need) { + if (ctrl.setSelectionRange) { + ctrl.focus(); + ctrl.setSelectionRange(pos, pos); + // IE8 and below + } else if (ctrl.createTextRange) { + var range = ctrl.createTextRange(); + range.collapse(true); + range.moveEnd('character', pos); + range.moveStart('character', pos); + range.select(); + } } + } - var whatTheDroppableCanScroll = subtract(change, overlap); - scrollDroppable(droppable.descriptor.id, whatTheDroppableCanScroll); - var remainder = subtract(change, whatTheDroppableCanScroll); - return remainder; - }; + var InputNumber = function (_Component) { + _inherits(InputNumber, _Component); - var scrollWindowAsMuchAsItCan = function scrollWindowAsMuchAsItCan(viewport, change) { - if (!canScrollWindow(viewport, change)) { - return change; - } + function InputNumber(props) { + _classCallCheck(this, InputNumber); - var overlap = getWindowOverlap(viewport, change); + // 初始化状态,加减按钮是否可用,根据当前值判断 - if (!overlap) { - scrollWindow(change); - return null; - } + var _this = _possibleConstructorReturn(this, _Component.call(this, props)); - var whatTheWindowCanScroll = subtract(change, overlap); - scrollWindow(whatTheWindowCanScroll); - var remainder = subtract(change, whatTheWindowCanScroll); - return remainder; - }; + _initialiseProps.call(_this); - var jumpScroller = function jumpScroller(state) { - var request = state.scrollJumpRequest; + var data = _this.judgeValue(props); + _this.state = { + value: data.value, + minusDisabled: data.minusDisabled, + plusDisabled: data.plusDisabled, + showValue: toThousands(data.value), + placeholderShow: true + }; - if (!request) { - return; + _this.timer = null; + _this.focus = false; + _this.selectionStart = 0; + return _this; } - var destination = state.impact.destination; - !destination ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot perform a jump scroll when there is no destination') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - var droppableRemainder = scrollDroppableAsMuchAsItCan(state.dimensions.droppables[destination.droppableId], request); + // unThousands = (number) =>{ + // if(!number || number === "")return number; + // number = number.toString(); + // return number.replace(new RegExp(this.props.formatSymbol,'g'),''); + // // return number.replace(/\,/g,''); + // } - if (!droppableRemainder) { - return; - } + /** + * 校验value + * @param {*} props + * @param {原来的值} oldValue + */ - var viewport = state.viewport; - var windowRemainder = scrollWindowAsMuchAsItCan(viewport, droppableRemainder); - if (!windowRemainder) { - return; - } + InputNumber.prototype.componentDidMount = function componentDidMount() { + this.setState({ + value: this.props.value, + showValue: toThousands(this.props.value) + }); + }; - moveByOffset(state, windowRemainder); - }; + InputNumber.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { + if (this.focus) { + if (nextProps.value == Infinity || nextProps.value == -Infinity) {} else { + this.setState({ + value: nextProps.value, + showValue: toThousands(nextProps.value) + }); + } + } else { + var data = this.judgeValue(nextProps, this.state.value); + this.setState({ + value: data.value, + showValue: toThousands(data.value), + minusDisabled: data.minusDisabled, + plusDisabled: data.plusDisabled + }); + } + }; - return jumpScroller; - }); + InputNumber.prototype.ComponentWillUnMount = function ComponentWillUnMount() { + this.clear(); + }; - var createAutoScroller = (function (_ref) { - var scrollDroppable = _ref.scrollDroppable, - scrollWindow = _ref.scrollWindow, - move = _ref.move; - var fluidScroll = createFluidScroller({ - scrollWindow: scrollWindow, - scrollDroppable: scrollDroppable - }); - var jumpScroll = createJumpScroller({ - move: move, - scrollWindow: scrollWindow, - scrollDroppable: scrollDroppable - }); - var marshal = { - cancel: fluidScroll.cancel, - fluidScroll: fluidScroll, - jumpScroll: jumpScroll - }; - return marshal; - }); + /** + * @memberof InputNumber + * type 是否要四舍五入(此参数无效,超长不让输入) + */ - var prefix$1 = function prefix(key) { - return "private-react-beautiful-dnd-key-do-not-use-" + key; - }; + /** + * 恢复科学技术法的问题 + */ - var storeKey = prefix$1('store'); - var droppableIdKey = prefix$1('droppable-id'); - var droppableTypeKey = prefix$1('droppable-type'); - var dimensionMarshalKey = prefix$1('dimension-marshal'); - var styleContextKey = prefix$1('style-context'); - var canLiftContextKey = prefix$1('can-lift'); + /** + * 设置增加减少按钮是否可用 + */ - var _DragDropContext$chil; - var resetServerContext = function resetServerContext() { - resetStyleContext(); - }; + /** + * 减法 + */ - var printFatalDevError = function printFatalDevError(error) { - if (process.env.NODE_ENV === 'production') { - return; - } + /** + * 加法 + */ - console.warn("\n An error has occurred while a drag is occurring.\n Any existing drag will be cancelled.\n\n Raw error:\n "); - console.error(error); - }; - var DragDropContext = function (_React$Component) { - Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_corejs2_helpers_esm_inheritsLoose__["a" /* default */])(DragDropContext, _React$Component); + /** + * 分离小数和整数 + * @param value + * @returns {*} + */ - function DragDropContext(props, context) { - var _this; - _this = _React$Component.call(this, props, context) || this; - _this.store = void 0; - _this.dimensionMarshal = void 0; - _this.styleMarshal = void 0; - _this.autoScroller = void 0; - _this.announcer = void 0; - _this.unsubscribe = void 0; + InputNumber.prototype.render = function render() { + var _classes, + _this2 = this; - _this.canLift = function (id) { - return canStartDrag(_this.store.getState(), id); - }; + var _props = this.props, + toThousands = _props.toThousands, + minusRight = _props.minusRight, + max = _props.max, + min = _props.min, + step = _props.step, + disabled = _props.disabled, + clsPrefix = _props.clsPrefix, + className = _props.className, + delay = _props.delay, + onBlur = _props.onBlur, + onFocus = _props.onFocus, + iconStyle = _props.iconStyle, + autoWidth = _props.autoWidth, + onChange = _props.onChange, + format = _props.format, + precision = _props.precision, + toNumber = _props.toNumber, + hideActionButton = _props.hideActionButton, + others = _objectWithoutProperties(_props, ['toThousands', 'minusRight', 'max', 'min', 'step', 'disabled', 'clsPrefix', 'className', 'delay', 'onBlur', 'onFocus', 'iconStyle', 'autoWidth', 'onChange', 'format', 'precision', 'toNumber', 'hideActionButton']); - _this.onFatalError = function (error) { - printFatalDevError(error); + var classes = (_classes = {}, _defineProperty(_classes, clsPrefix + '-auto', autoWidth), _defineProperty(_classes, '' + clsPrefix, true), _defineProperty(_classes, clsPrefix + '-lg', others.size === "lg"), _defineProperty(_classes, clsPrefix + '-sm', others.size === "sm"), _classes); - var state = _this.store.getState(); + var _state = this.state, + value = _state.value, + minusDisabled = _state.minusDisabled, + plusDisabled = _state.plusDisabled, + showValue = _state.showValue; - if (state.phase !== 'IDLE') { - _this.store.dispatch(clean()); - } + value = precision != null && !this.focus ? this.getPrecision(value) : value; + value = format && !this.focus ? format(value) : value; + value = String(value).indexOf("e") !== -1 ? this.getFullNum(value) : value; + if (minusRight && String(value).indexOf('-') != -1) { + value = String(value).replace("-", "") + "-"; + } + var disabledCursor = disabled ? ' disabled-cursor' : ''; + var disabledCon = disabled ? ' disabled-con' : ''; + return _react2["default"].createElement( + 'div', + { className: clsPrefix + '-out' }, + iconStyle === 'double' ? _react2["default"].createElement( + _beeInputGroup2["default"], + { className: (0, _classnames2["default"])(className, classes, disabledCon) }, + this.isIE() && !value ? _react2["default"].createElement( + 'div', + { onClick: this.placeholderClick, style: { 'display': this.state.placeholderShow ? 'block' : 'none' }, className: clsPrefix + '-placeholder' }, + this.props.placeholder + ) : '', + hideActionButton ? '' : _react2["default"].createElement( + _beeInputGroup2["default"].Addon, + { + // onClick={()=>{minusDisabled?'':this.handleBtnClick('down')}} + className: (minusDisabled && 'disabled') + disabledCursor, + onMouseDown: this.handleReduceMouseDown, + onMouseLeave: this.clear, + onMouseUp: this.clear }, + '-' + ), + _react2["default"].createElement(_beeFormControl2["default"], _extends({}, others, { + value: toThousands ? showValue : value, + disabled: disabled, + onBlur: this.handleBlur, + onFocus: this.handleFocus, + onChange: this.handleChange, + ref: function ref(_ref) { + return _this2.input = _ref; + } + })), + hideActionButton ? '' : _react2["default"].createElement( + _beeInputGroup2["default"].Addon, + { + // onClick={()=>{plusDisabled?'':this.handleBtnClick('up')}} + className: (plusDisabled && 'disabled') + disabledCursor, + onMouseDown: this.handlePlusMouseDown, + onMouseLeave: this.clear, + onMouseUp: this.clear }, + '+' + ) + ) : _react2["default"].createElement( + _beeInputGroup2["default"], + { + className: (0, _classnames2["default"])(className, classes, disabledCon), + simple: true + }, + this.isIE() && !value ? _react2["default"].createElement( + 'div', + { onClick: this.placeholderClick, style: { 'display': this.state.placeholderShow ? 'block' : 'none' }, className: clsPrefix + '-placeholder' }, + this.props.placeholder + ) : '', + _react2["default"].createElement(_beeFormControl2["default"], _extends({}, others, { + value: toThousands ? showValue : value, + disabled: disabled, + onBlur: this.handleBlur, + onFocus: this.handleFocus, + onChange: this.handleChange, + ref: function ref(_ref2) { + return _this2.input = _ref2; + } + })), + hideActionButton ? '' : _react2["default"].createElement( + _beeInputGroup2["default"].Button, + null, + _react2["default"].createElement( + 'div', + { className: (0, _classnames2["default"])("icon-group") }, + _react2["default"].createElement( + 'span', + { + // onClick={()=>{plusDisabled?'':this.handleBtnClick('up')}} + onMouseDown: this.handlePlusMouseDown, + onMouseLeave: this.clear, + onMouseUp: this.clear, + className: (0, _classnames2["default"])('plus', { 'disabled': plusDisabled, 'disabled-cursor': disabledCursor }) }, + _react2["default"].createElement('span', { className: 'uf uf-arrow-up' }) + ), + _react2["default"].createElement( + 'span', + { + // onClick={()=> minusDisabled?'':this.handleBtnClick('down')} + onMouseDown: this.handleReduceMouseDown, + onMouseLeave: this.clear, + onMouseUp: this.clear, + className: (0, _classnames2["default"])("reduce", { 'disabled': minusDisabled, 'disabled-cursor': disabledCursor }) }, + _react2["default"].createElement('span', { className: ' uf uf-arrow-down' }) + ) + ) + ) + ) + ); }; - _this.onWindowError = function (error) { - return _this.onFatalError(error); - }; + return InputNumber; + }(_react.Component); + + var _initialiseProps = function _initialiseProps() { + var _this3 = this; + + this.judgeValue = function (props, oldValue) { + var currentValue = void 0; + var currentMinusDisabled = false; + var currentPlusDisabled = false; + var value = props.value, + min = props.min, + max = props.max, + precision = props.precision, + onChange = props.onChange, + displayCheckPrompt = props.displayCheckPrompt; + + if (props.minusRight) { + value = value.toString(); + if (value.indexOf('-') != -1) { + //所有位置的负号转到前边 + value = value.replace('-', ''); + value = '-' + value; + } + value = Number(value); + } + if (value != undefined && value != null) { + if (value === '') { + currentValue = ''; + return { + value: '', + minusDisabled: false, + plusDisabled: false + }; + } else { + currentValue = Number(value) || 0; + } + } //lse if (min&&(value!='')) {//mdd中提出bug + //currentValue = min; + //} + else if (value === '0' || value === 0) { + currentValue = 0; + } else { + //NaN + if (oldValue || oldValue === 0 || oldValue === '0') { + currentValue = oldValue; + } else { + //value为空 + return { + value: '', + minusDisabled: false, + plusDisabled: false + }; + } + } + if (currentValue == -Infinity) { + return { + value: min, + minusDisabled: true, + plusDisabled: false + }; + } + if (currentValue == Infinity) { + return { + value: max, + minusDisabled: false, + plusDisabled: true + }; + } + var local = (0, _tool.getComponentLocale)(props, _this3.context, 'InputNumber', function () { + return _i18n2["default"]; + }); + if (min && currentValue <= min) { + if (displayCheckPrompt) prompt(local['msgMin']); + currentMinusDisabled = true; + currentValue = min; + } + if (max && currentValue >= max) { + if (displayCheckPrompt) prompt(local['msgMax']); + currentPlusDisabled = true; + currentValue = max; + } + + if (props.hasOwnProperty('precision')) { + // currentValue = Number(currentValue).toFixed(precision); + currentValue = _this3.getPrecision(currentValue); + } + if (props.minusRight) { + currentValue = currentValue.toString(); + if (currentValue.indexOf('-') != -1) { + //负号转到后边 + currentValue = currentValue.replace('-', ''); + currentValue = currentValue + '-'; + } + } - _this.announcer = createAnnouncer(); - _this.styleMarshal = createStyleMarshal(); - _this.store = createStore$1({ - getDimensionMarshal: function getDimensionMarshal() { - return _this.dimensionMarshal; - }, - styleMarshal: _this.styleMarshal, - getHooks: function getHooks() { return { - onBeforeDragStart: _this.props.onBeforeDragStart, - onDragStart: _this.props.onDragStart, - onDragEnd: _this.props.onDragEnd, - onDragUpdate: _this.props.onDragUpdate + value: currentValue, + minusDisabled: currentMinusDisabled, + plusDisabled: currentPlusDisabled }; - }, - announce: _this.announcer.announce, - getScroller: function getScroller() { - return _this.autoScroller; - } - }); - var callbacks = Object(__WEBPACK_IMPORTED_MODULE_5_redux__["b" /* bindActionCreators */])({ - collectionStarting: collectionStarting, - publish: publish, - updateDroppableScroll: updateDroppableScroll, - updateDroppableIsEnabled: updateDroppableIsEnabled - }, _this.store.dispatch); - _this.dimensionMarshal = createDimensionMarshal(callbacks); - _this.autoScroller = createAutoScroller(Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({ - scrollWindow: scrollWindow, - scrollDroppable: _this.dimensionMarshal.scrollDroppable - }, Object(__WEBPACK_IMPORTED_MODULE_5_redux__["b" /* bindActionCreators */])({ - move: move - }, _this.store.dispatch))); - return _this; - } + }; - var _proto = DragDropContext.prototype; + this.numToFixed = function (value, fixed, type) { + value = String(value); + if (!value && value !== "0") return value; + if (!fixed && String(fixed) !== "0") return value; + var preIndex = value.indexOf("."); + if (value.indexOf(".") === -1) return value; + preIndex++; + var endIndex = preIndex + fixed; + var precValue = value.substr(preIndex, endIndex) + "0000000000"; + if (type) { + return Number(value).toFixed(fixed); + } + return value.split(".")[0] + "." + precValue.substr(0, fixed); + }; - _proto.getChildContext = function getChildContext() { - var _ref; + this.handleChange = function (value) { + var selectionStart = _this3.input.selectionStart == undefined ? _this3.input.input.selectionStart : _this3.input.selectionStart; + _this3.selectionStart = selectionStart; + var _props2 = _this3.props, + onChange = _props2.onChange, + toNumber = _props2.toNumber, + minusRight = _props2.minusRight; - return _ref = {}, _ref[storeKey] = this.store, _ref[dimensionMarshalKey] = this.dimensionMarshal, _ref[styleContextKey] = this.styleMarshal.styleContext, _ref[canLiftContextKey] = this.canLift, _ref; - }; + if (value === '') { + onChange && onChange(value); + _this3.setState({ + value: value, + showValue: '' + }); + return; + } + // value = this.unThousands(value); + if (minusRight) { + if (value.match(/-/g) && value.match(/-/g).length > 1) return; + } + if (isNaN(value) && value !== '.' && value !== '-') return; + if (value.indexOf(".") !== -1) { + //小数最大值处理 + var prec = String(value.split(".")[1]).replace("-", ""); + if (_this3.props.precision === 0 && (prec === "" || prec != "")) return; + if (_this3.props.precision && prec.length > _this3.props.precision) return; + if (prec.length > 8) return; + } + _this3.setState({ + value: value, + showValue: toThousands(value) + }); + if (value === '-') { + onChange && onChange(value); + } else if (value == '.' || value.indexOf('.') == value.length - 1) { + //当输入小数点的时候 + onChange && onChange(value); + } else if (value[value.indexOf('.') + 1] == 0) { + //当输入 d.0 的时候,不转换Number + onChange && onChange(value); + } else { + toNumber ? onChange && onChange(Number(value)) : onChange && onChange(value); + } + if (_this3.props.toThousands) { + var stateShowValue = toThousands(_this3.state.value); + var showValue = toThousands(value); + var addNumber = 0; + var delNumber = 0; + var reg = /[0-9]/; + for (var i = 0; i < selectionStart; i++) { + if (!reg.test(showValue[i])) addNumber += 1; + } + for (var j = 0; j < selectionStart; j++) { + if (stateShowValue[j]) { + if (!reg.test(stateShowValue[j])) delNumber += 1; + } + } + var position = selectionStart + addNumber - delNumber; + setCaretPosition(_this3.input && _this3.input.input, position, true); + } + }; - _proto.componentDidMount = function componentDidMount() { - window.addEventListener('error', this.onWindowError); - this.styleMarshal.mount(); - this.announcer.mount(); - }; + this.handleFocus = function (value, e) { + _this3.focus = true; + var _props3 = _this3.props, + onFocus = _props3.onFocus, + min = _props3.min, + max = _props3.max; - _proto.componentDidCatch = function componentDidCatch(error) { - this.onFatalError(error); + onFocus && onFocus(_this3.getPrecision(_this3.state.value), e); + }; - if (error.message.indexOf('Invariant failed') !== -1) { - this.setState({}); - return; - } + this.getFullNum = function (num) { + //处理非数字 + if (isNaN(num)) { + return num; + }; - throw error; - }; + //处理不需要转换的数字 + var str = '' + num; + if (!/e/i.test(str)) { + return num; + }; + var _precision = _this3.props.precision ? _this3.props.precision : 18; + return Number(num).toFixed(_precision).replace(/\.?0+$/, ""); + }; - _proto.componentWillUnmount = function componentWillUnmount() { - window.removeEventListener('error', this.onWindowError); - var state = this.store.getState(); + this.handleBlur = function (v, e) { + _this3.focus = false; + var _props4 = _this3.props, + onBlur = _props4.onBlur, + precision = _props4.precision, + onChange = _props4.onChange, + toNumber = _props4.toNumber, + max = _props4.max, + min = _props4.min, + displayCheckPrompt = _props4.displayCheckPrompt, + minusRight = _props4.minusRight, + round = _props4.round; - if (state.phase !== 'IDLE') { - this.store.dispatch(clean()); - } + var local = (0, _tool.getComponentLocale)(_this3.props, _this3.context, 'InputNumber', function () { + return _i18n2["default"]; + }); + v = _this3.state.value; //在onBlur的时候不需要活输入框的只,而是要获取state中的值,因为有format的时候就会有问题。 + if (v === '' || !v) { + _this3.setState({ + value: v + }); + onChange && onChange(v); + onBlur && onBlur(v, e); + return; + } + // let value = this.unThousands(v); + var value = _this3.numToFixed(v, precision, round); + if (minusRight) { + if (value.indexOf('-') != -1) { + //所有位置的负号转到前边 + value = value.replace('-', ''); + value = '-' + value; + } + } + value = isNaN(Number(value)) ? 0 : Number(value); + if ((max || max === 0) && value > max) { + if (displayCheckPrompt) prompt(local['msgMax']); + value = max; + } + if ((min || min === 0) && value < min) { + if (displayCheckPrompt) prompt(local['msgMin']); + value = min; + } + if (_this3.props.hasOwnProperty('precision')) { + // value = value.toFixed(precision); + value = _this3.getPrecision(value); + } + value = value.toString(); + if (minusRight && value.indexOf('-') != -1) { + //负号转到后边 + value = value.replace('-', ''); + value = value + '-'; + } + _this3.setState({ + value: value, + showValue: toThousands(value), + placeholderShow: true + }); + _this3.detailDisable(value); + if (toNumber && !minusRight) { + onChange && onChange(value); + onBlur && onBlur(value, e); + } else { + onChange && onChange(value); + onBlur && onBlur(value, e); + } + }; - this.styleMarshal.unmount(); - this.announcer.unmount(); - }; + this.detailDisable = function (value) { + var _props5 = _this3.props, + max = _props5.max, + min = _props5.min, + step = _props5.step; - _proto.render = function render() { - return this.props.children; - }; + if (max && (value >= max || Number(value) + Number(step) > max)) { + _this3.setState({ + plusDisabled: true + }); + } else { + _this3.setState({ + plusDisabled: false + }); + } + if (min && (value <= min || value - step < min)) { + _this3.setState({ + minusDisabled: true + }); + } else { + _this3.setState({ + minusDisabled: false + }); + } + }; - return DragDropContext; - }(__WEBPACK_IMPORTED_MODULE_9_react___default.a.Component); + this.minus = function (value) { + var _props6 = _this3.props, + min = _props6.min, + max = _props6.max, + step = _props6.step, + onChange = _props6.onChange, + toNumber = _props6.toNumber; - DragDropContext.childContextTypes = (_DragDropContext$chil = {}, _DragDropContext$chil[storeKey] = __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.shape({ - dispatch: __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.func.isRequired, - subscribe: __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.func.isRequired, - getState: __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.func.isRequired - }).isRequired, _DragDropContext$chil[dimensionMarshalKey] = __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.object.isRequired, _DragDropContext$chil[styleContextKey] = __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.string.isRequired, _DragDropContext$chil[canLiftContextKey] = __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.func.isRequired, _DragDropContext$chil); + value = value === '-' ? 0 : value; + if (typeof min === "undefined") { + value = _this3.detail(value, step, 'reduce'); + } else { + min = Number(min); + if (value < min) { + value = min; + } else { + var reducedValue = _this3.detail(value, step, 'reduce'); + if (reducedValue >= min) { + value = reducedValue; + } + } + } + if (max) { + max = Number(max); + if (value > max) { + value = max; + } + } - var isScrollable = function isScrollable() { - for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) { - values[_key] = arguments[_key]; - } + _this3.setState({ + value: value, + showValue: toThousands(value) + }, function () { + _this3.input.input.focus && _this3.input.input.focus(); + }); + toNumber ? onChange && onChange(Number(value)) : onChange && onChange(value); + _this3.handleBtnClick('down', value); + _this3.detailDisable(value); + }; - return values.some(function (value) { - return value === 'auto' || value === 'scroll'; - }); - }; + this.plus = function (value) { + var _props7 = _this3.props, + max = _props7.max, + min = _props7.min, + step = _props7.step, + onChange = _props7.onChange, + toNumber = _props7.toNumber; - var isElementScrollable = function isElementScrollable(el) { - var style = window.getComputedStyle(el); - return isScrollable(style.overflow, style.overflowY, style.overflowX); - }; + value = value === '-' ? 0 : value; + if (typeof max === "undefined") { + value = _this3.detail(value, step, 'add'); + } else { + max = Number(max); + if (max && value > max) { + value = max; + } else { + var addedValue = _this3.detail(value, step, 'add'); + if (max && addedValue <= max) { + value = addedValue; + } + } + } + if (min) { + min = Number(min); + if (value < min) { + value = min; + } + } - var getClosestScrollable = function getClosestScrollable(el) { - if (el == null) { - return null; - } + _this3.setState({ + value: value, + showValue: toThousands(value) + }, function () { + _this3.input.input.focus && _this3.input.input.focus(); + }); + toNumber ? onChange && onChange(Number(value)) : onChange && onChange(value); + _this3.handleBtnClick('up', value); + _this3.detailDisable(value); + }; - if (!isElementScrollable(el)) { - return getClosestScrollable(el.parentElement); - } + this.detail = function (value, step, type) { + var precision = _this3.props.precision; - return el; - }; - var _DroppableDimensionPu; + var valueFloat = _this3.separate(value); + var stepFloat = _this3.separate(step); - var getScroll = function getScroll(el) { - return { - x: el.scrollLeft, - y: el.scrollTop - }; - }; + var ans = void 0; + var stepFloatLength = stepFloat.toString().length; + var valueFloatLength = valueFloat.toString().length; - var checkForNestedScrollContainers = function checkForNestedScrollContainers(scrollable) { - if (process.env.NODE_ENV === 'production') { - return; - } + if (typeof precision === 'undefined') { + precision = Math.max(stepFloatLength, valueFloatLength); + } + var coefficient = Math.pow(10, Math.abs(stepFloatLength - valueFloatLength)); + if (type === 'add') { + ans = (value * coefficient + step * coefficient) / coefficient; + } else { + ans = (value * coefficient - step * coefficient) / coefficient; + } - if (!scrollable) { - return; - } + return ans.toFixed(precision); + }; - var anotherScrollParent = getClosestScrollable(scrollable.parentElement); + this.separate = function (value) { + if (value == null || value == undefined) { + return ""; + } else { + value = value.toString(); + if (value.indexOf('.') > -1) { + return value.split('.')[1]; + } else { + return ""; + } + } + }; - if (!anotherScrollParent) { - return; - } + this.clear = function () { + if (_this3.timer) { + clearTimeout(_this3.timer); + } + }; - console.warn("\n Droppable: unsupported nested scroll container detected.\n A Droppable can only have one scroll parent (which can be itself)\n Nested scroll containers are currently not supported.\n\n We hope to support nested scroll containers soon: https://github.com/atlassian/react-beautiful-dnd/issues/131\n "); - }; + this.handlePlusMouseDown = function (e) { + e.preventDefault && e.preventDefault(); + var _props8 = _this3.props, + delay = _props8.delay, + disabled = _props8.disabled; + var value = _this3.state.value; - var listenerOptions = { - passive: true - }; + if (disabled) return; + _this3.plus(value); + _this3.clear(); + _this3.timer = setTimeout(function () { + _this3.handlePlusMouseDown(e); + }, delay); + }; - var DroppableDimensionPublisher = function (_React$Component) { - Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_corejs2_helpers_esm_inheritsLoose__["a" /* default */])(DroppableDimensionPublisher, _React$Component); + this.handleReduceMouseDown = function (e) { + e.preventDefault && e.preventDefault(); + var _props9 = _this3.props, + delay = _props9.delay, + disabled = _props9.disabled; + var value = _this3.state.value; - function DroppableDimensionPublisher(props, context) { - var _this; + if (disabled) return; + _this3.minus(value); + _this3.clear(); + _this3.timer = setTimeout(function () { + _this3.handleReduceMouseDown(e); + }, delay); + }; - _this = _React$Component.call(this, props, context) || this; - _this.watchingScroll = null; - _this.callbacks = void 0; - _this.publishedDescriptor = null; + this.getPrecision = function (value) { + if (value == null || value == undefined) return value; + if (!value && value === "") return value; + value = String(value); + value = value.indexOf("e") !== -1 ? _this3.getFullNum(value) : value; + var precision = _this3.props.precision; - _this.getClosestScroll = function () { - if (!_this.watchingScroll) { - return origin; - } + if (precision === 0) return value; + if (precision == undefined || value.indexOf(".") !== -1 && String(value.split(".")[1]).length === precision) { + return value; + } + var before = value.substring(0, 1), + len = value.length, + after = value.substring(len - 1, len); + before = before === "-" ? before : ""; + after = after === "-" ? after : ""; + //是科学计数法,不replace - + if (before) value = value.substring(1, len); + if (after) value = value.substring(0, len - 1); + // value = value.replace("-",''); + var precV = "000000000000000000000000000000000000000000000000000000000000000000000000"; + if (value.indexOf(".") === -1) { + precV = precV.substr(0, precision); + precV = precV ? "." + precV : precV; + if (!isNaN(value) && (value.indexOf('-') != -1 || value.indexOf('+') != -1) && value.indexOf('e') != -1) {//是科学计数法,不拼接0000000 - return getScroll(_this.watchingScroll.closestScrollable); + } else { + value = value + precV; + } + } + return before + Number(value).toFixed(precision) + after; }; - _this.memoizedUpdateScroll = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (x, y) { - !_this.publishedDescriptor ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot update scroll on unpublished droppable') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - var newScroll = { - x: x, - y: y - }; - var marshal = _this.context[dimensionMarshalKey]; - marshal.updateDroppableScroll(_this.publishedDescriptor.id, newScroll); - }); + this.handleBtnClick = function (type, value) { + _this3.props.handleBtnClick(type, value); + }; - _this.updateScroll = function () { - var offset = _this.getClosestScroll(); + this.isIE = function () { + if (window) { + if (!!window.ActiveXObject || "ActiveXObject" in window) return true; + } + return false; + }; - _this.memoizedUpdateScroll(offset.x, offset.y); + this.placeholderClick = function () { + _this3.input.input.focus(); + _this3.setState({ + placeholderShow: false + }); }; + }; - _this.scheduleScrollUpdate = Object(__WEBPACK_IMPORTED_MODULE_7_raf_schd__["a" /* default */])(_this.updateScroll); + ; - _this.onClosestScroll = function () { - !_this.watchingScroll ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Could not find scroll options while scrolling') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - var options = _this.watchingScroll.options; + InputNumber.defaultProps = defaultProps; + InputNumber.propTypes = propTypes; + InputNumber.contextTypes = { + beeLocale: _propTypes2["default"].object + }; + exports["default"] = InputNumber; + module.exports = exports['default']; + +/***/ }), +/* 615 */ +/***/ (function(module, exports) { + + 'use strict'; - if (options.shouldPublishImmediately) { - _this.updateScroll(); + module.exports = { + 'lang': 'zh-cn', + 'msgMax': '值不能大于最大值', + 'msgMin': '值不能小于最小值', + 'en-us': { + 'msgMax': 'Cannot be greater than the Max value', + 'msgMin': 'Cannot be less than the Min value' + }, + 'zh-tw': { + 'msgMax': '值不能大於最大值', + 'msgMin': '值不能小於最小值' + } + }; + +/***/ }), +/* 616 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - return; - } + Object.defineProperty(exports, "__esModule", { + value: true + }); - _this.scheduleScrollUpdate(); - }; + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - _this.scroll = function (change) { - !_this.watchingScroll ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot scroll a droppable with no closest scrollable') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - var closestScrollable = _this.watchingScroll.closestScrollable; - closestScrollable.scrollTop += change.y; - closestScrollable.scrollLeft += change.x; - }; + var _react = __webpack_require__(1); - _this.watchScroll = function (closestScrollable, options) { - !!_this.watchingScroll ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Droppable cannot watch scroll as it is already watching scroll') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + var _react2 = _interopRequireDefault(_react); - if (!closestScrollable) { - return; - } + var _propTypes = __webpack_require__(6); - _this.watchingScroll = { - options: options, - closestScrollable: closestScrollable - }; - closestScrollable.addEventListener('scroll', _this.onClosestScroll, listenerOptions); - }; + var _propTypes2 = _interopRequireDefault(_propTypes); - _this.unwatchScroll = function () { - var watching = _this.watchingScroll; + var _InputNumber = __webpack_require__(614); - if (!watching) { - return; - } + var _InputNumber2 = _interopRequireDefault(_InputNumber); - _this.scheduleScrollUpdate.cancel(); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - watching.closestScrollable.removeEventListener('scroll', _this.onClosestScroll, listenerOptions); - _this.watchingScroll = null; - }; + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - _this.getMemoizedDescriptor = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (id, type) { - return { - id: id, - type: type - }; - }); + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - _this.publish = function () { - var marshal = _this.context[dimensionMarshalKey]; + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - var descriptor = _this.getMemoizedDescriptor(_this.props.droppableId, _this.props.type); + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - if (!_this.publishedDescriptor) { - marshal.registerDroppable(descriptor, _this.callbacks); - _this.publishedDescriptor = descriptor; - return; - } + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - if (_this.publishedDescriptor === descriptor) { - return; - } + var noop = function noop() {}; - marshal.updateDroppable(_this.publishedDescriptor, descriptor, _this.callbacks); - _this.publishedDescriptor = descriptor; - }; + var propsTypes = { + clsfix: _propTypes2["default"].string, + className: _propTypes2["default"].string, + value: _propTypes2["default"].array, + onChange: _propTypes2["default"].func, + onBlur: _propTypes2["default"].func, + onFocus: _propTypes2["default"].func, + placeholder: _propTypes2["default"].array, - _this.unpublish = function () { - !_this.publishedDescriptor ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot unpublish descriptor when none is published') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - var marshal = _this.context[dimensionMarshalKey]; - marshal.unregisterDroppable(_this.publishedDescriptor); - _this.publishedDescriptor = null; - }; + max: _propTypes2["default"].number, + min: _propTypes2["default"].number, + step: _propTypes2["default"].number, + precision: _propTypes2["default"].number, + format: _propTypes2["default"].func, + delay: _propTypes2["default"].number, + disabled: _propTypes2["default"].bool, + toThousands: _propTypes2["default"].bool, + toNumber: _propTypes2["default"].bool + }; - _this.getDimensionAndWatchScroll = function (windowScroll, options) { - var _this$props = _this.props, - direction = _this$props.direction, - ignoreContainerClipping = _this$props.ignoreContainerClipping, - isDropDisabled = _this$props.isDropDisabled, - getDroppableRef = _this$props.getDroppableRef; - var targetRef = getDroppableRef(); - var descriptor = _this.publishedDescriptor; - !targetRef ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot calculate a dimension when not attached to the DOM') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - !descriptor ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot get dimension for unpublished droppable') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - var scrollableRef = getClosestScrollable(targetRef); - checkForNestedScrollContainers(scrollableRef); + var defaultProps = { + clsfix: 'u-input-number', + className: '', + value: [], + placeholder: [], + onChange: noop, + onBlur: noop, + onFocus: noop + }; - _this.watchScroll(scrollableRef, options); + var InputNumberGroup = function (_Component) { + _inherits(InputNumberGroup, _Component); - var client = function () { - var base = Object(__WEBPACK_IMPORTED_MODULE_2_css_box_model__["c" /* getBox */])(targetRef); + function InputNumberGroup(props) { + _classCallCheck(this, InputNumberGroup); - if (!scrollableRef) { - return base; - } + var _this = _possibleConstructorReturn(this, _Component.call(this, props)); - if (targetRef !== scrollableRef) { - return base; - } + _this.onChange = function (index, v) { + var value = _this.state.value; - var top = base.paddingBox.top - scrollableRef.scrollTop; - var left = base.paddingBox.left - scrollableRef.scrollLeft; - var bottom = top + scrollableRef.scrollHeight; - var right = left + scrollableRef.scrollWidth; - var paddingBox = { - top: top, - right: right, - bottom: bottom, - left: left + value[index] = v; + _this.setState({ + value: value + }); + _this.props.onChange(value); }; - var borderBox = { - top: paddingBox.top - base.border.top, - right: paddingBox.right + base.border.right, - bottom: paddingBox.bottom + base.border.bottom, - left: paddingBox.left - base.border.left + + _this.onFocus = function (index, v) { + var value = _this.state.value; + + value[index] = v; + _this.setState({ + value: value + }); + _this.props.onFocus(value); }; - return Object(__WEBPACK_IMPORTED_MODULE_2_css_box_model__["b" /* createBox */])({ - borderBox: borderBox, - margin: base.margin, - border: base.border, - padding: base.padding - }); - }(); - var page = Object(__WEBPACK_IMPORTED_MODULE_2_css_box_model__["e" /* withScroll */])(client, windowScroll); + _this.onBlur = function (index, v) { + var value = _this.state.value; - var closest$$1 = function () { - if (!scrollableRef) { - return null; - } + if (index == 1) { + if (v < value[0]) { + console.warn('The second value must be greater than or equal to the first value'); + } + } + value[index] = v; + _this.setState({ + value: value + }); - var frameClient = Object(__WEBPACK_IMPORTED_MODULE_2_css_box_model__["c" /* getBox */])(scrollableRef); - return { - client: frameClient, - page: Object(__WEBPACK_IMPORTED_MODULE_2_css_box_model__["e" /* withScroll */])(frameClient), - scrollHeight: scrollableRef.scrollHeight, - scrollWidth: scrollableRef.scrollWidth, - scroll: getScroll(scrollableRef), - shouldClipSubject: !ignoreContainerClipping + _this.props.onBlur(value); }; - }(); - return getDroppableDimension({ - descriptor: descriptor, - isEnabled: !isDropDisabled, - direction: direction, - client: client, - page: page, - closest: closest$$1 - }); - }; + _this.state = { + value: props.value || [] + }; + return _this; + } - var callbacks = { - getDimensionAndWatchScroll: _this.getDimensionAndWatchScroll, - unwatchScroll: _this.unwatchScroll, - scroll: _this.scroll + InputNumberGroup.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { + if ('value' in nextProps) { + this.setState({ + value: nextProps.value + }); + } }; - _this.callbacks = callbacks; - return _this; - } - var _proto = DroppableDimensionPublisher.prototype; + InputNumberGroup.prototype.render = function render() { + var _this2 = this; - _proto.componentDidMount = function componentDidMount() { - this.publish(); - }; + var _props = this.props, + className = _props.className, + clsfix = _props.clsfix, + value = _props.value, + onChange = _props.onChange, + placeholder = _props.placeholder, + split = _props.split, + onBlur = _props.onBlur, + onFocus = _props.onFocus, + other = _objectWithoutProperties(_props, ['className', 'clsfix', 'value', 'onChange', 'placeholder', 'split', 'onBlur', 'onFocus']); - _proto.componentDidUpdate = function componentDidUpdate(prevProps) { - this.publish(); + var stateValue = this.state.value; - if (this.props.isDropDisabled === prevProps.isDropDisabled) { - return; - } + return _react2["default"].createElement( + 'div', + { className: clsfix + '-group ' + className }, + _react2["default"].createElement(_InputNumber2["default"], _extends({ + onChange: function onChange(value) { + _this2.onChange(0, value); + }, + onBlur: function onBlur(value) { + _this2.onBlur(0, value); + }, + onFocus: function onFocus(value) { + _this2.onFocus(0, value); + }, + value: stateValue[0], + placeholder: placeholder[0] + }, other)), + split ? split : _react2["default"].createElement( + 'span', + { className: clsfix + '-group-split' }, + '~' + ), + _react2["default"].createElement(_InputNumber2["default"], _extends({ + onChange: function onChange(value) { + _this2.onChange(1, value); + }, + onBlur: function onBlur(value) { + _this2.onBlur(1, value); + }, + onFocus: function onFocus(value) { + _this2.onFocus(1, value); + }, + value: stateValue[1], + placeholder: placeholder[1] + }, other)) + ); + }; - var marshal = this.context[dimensionMarshalKey]; - marshal.updateDroppableIsEnabled(this.props.droppableId, !this.props.isDropDisabled); - }; + return InputNumberGroup; + }(_react.Component); - _proto.componentWillUnmount = function componentWillUnmount() { - if (this.watchingScroll) { - if (process.env.NODE_ENV !== 'production') { - console.warn('Unmounting droppable while it was watching scroll'); - } + InputNumberGroup.displayName = 'InputNumberGroup'; - this.unwatchScroll(); - } - this.unpublish(); - }; + InputNumberGroup.propsTypes = propsTypes; + InputNumberGroup.defaultProps = defaultProps; - _proto.render = function render() { - return this.props.children; - }; + exports["default"] = InputNumberGroup; + module.exports = exports['default']; + +/***/ }), +/* 617 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - return DroppableDimensionPublisher; - }(__WEBPACK_IMPORTED_MODULE_9_react___default.a.Component); + Object.defineProperty(exports, "__esModule", { + value: true + }); - DroppableDimensionPublisher.contextTypes = (_DroppableDimensionPu = {}, _DroppableDimensionPu[dimensionMarshalKey] = __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.object.isRequired, _DroppableDimensionPu); + var _react = __webpack_require__(1); - var Placeholder = function (_PureComponent) { - Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_corejs2_helpers_esm_inheritsLoose__["a" /* default */])(Placeholder, _PureComponent); + var _react2 = _interopRequireDefault(_react); - function Placeholder() { - return _PureComponent.apply(this, arguments) || this; - } + var _propTypes = __webpack_require__(6); - var _proto = Placeholder.prototype; + var _propTypes2 = _interopRequireDefault(_propTypes); - _proto.componentDidMount = function componentDidMount() { - if (this.props.onMount) { - this.props.onMount(); - } - }; + var _beeDropdown = __webpack_require__(312); - _proto.componentWillUnmount = function componentWillUnmount() { - if (this.props.onUnmount) { - this.props.onUnmount(); - } - }; + var _beeDropdown2 = _interopRequireDefault(_beeDropdown); - _proto.render = function render() { - var placeholder = this.props.placeholder; - var client = placeholder.client, - display = placeholder.display, - tagName = placeholder.tagName; - var style = { - display: display, - boxSizing: 'border-box', - width: client.borderBox.width, - height: client.borderBox.height, - marginTop: client.margin.top, - marginRight: client.margin.right, - marginBottom: client.margin.bottom, - marginLeft: client.margin.left, - flexShrink: '0', - flexGrow: '0', - pointerEvents: 'none' - }; - return __WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement(tagName, { - style: style - }); - }; + var _beeMenus = __webpack_require__(321); - return Placeholder; - }(__WEBPACK_IMPORTED_MODULE_9_react__["PureComponent"]); + var _beeMenus2 = _interopRequireDefault(_beeMenus); - var throwIfRefIsInvalid = (function (ref) { - !(ref && ref instanceof HTMLElement) ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, "\n provided.innerRef has not been provided with a HTMLElement.\n\n You can find a guide on using the innerRef callback functions at:\n https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/using-inner-ref.md\n ") : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - }); + var _beeButton = __webpack_require__(265); - var _Droppable$contextTyp, _Droppable$childConte; + var _beeButton2 = _interopRequireDefault(_beeButton); - var Droppable = function (_Component) { - Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_corejs2_helpers_esm_inheritsLoose__["a" /* default */])(Droppable, _Component); + var _beeIcon = __webpack_require__(67); - function Droppable(props, context) { - var _this; + var _beeIcon2 = _interopRequireDefault(_beeIcon); - _this = _Component.call(this, props, context) || this; - _this.styleContext = void 0; - _this.ref = null; - _this.isPlaceholderMounted = false; + var _i18n = __webpack_require__(311); - _this.onPlaceholderMount = function () { - _this.isPlaceholderMounted = true; - }; + var _i18n2 = _interopRequireDefault(_i18n); - _this.onPlaceholderUnmount = function () { - _this.isPlaceholderMounted = false; - }; + var _tool = __webpack_require__(120); - _this.setRef = function (ref) { - if (ref === null) { - return; - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - if (ref === _this.ref) { - return; - } + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - _this.ref = ref; - throwIfRefIsInvalid(ref); - }; + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - _this.getDroppableRef = function () { - return _this.ref; - }; + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - _this.styleContext = context[styleContextKey]; - return _this; - } + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** + * 过滤行功能内的下拉条件 + */ - var _proto = Droppable.prototype; + var Item = _beeMenus2['default'].Item; - _proto.getChildContext = function getChildContext() { - var _value; + var FilterDropDown = function (_Component) { + _inherits(FilterDropDown, _Component); - var value = (_value = {}, _value[droppableIdKey] = this.props.droppableId, _value[droppableTypeKey] = this.props.type, _value); - return value; - }; + function FilterDropDown() { + _classCallCheck(this, FilterDropDown); - _proto.componentDidMount = function componentDidMount() { - throwIfRefIsInvalid(this.ref); - this.warnIfPlaceholderNotMounted(); - }; + var _this = _possibleConstructorReturn(this, _Component.call(this)); - _proto.componentDidUpdate = function componentDidUpdate() { - this.warnIfPlaceholderNotMounted(); - }; + _this.onSelectDropdown = function (item) { + var _this$props = _this.props, + onSelectDropdown = _this$props.onSelectDropdown, + filterDropdownType = _this$props.filterDropdownType; - _proto.warnIfPlaceholderNotMounted = function warnIfPlaceholderNotMounted() { - if (process.env.NODE_ENV === 'production') { - return; - } + if (onSelectDropdown) { + if (filterDropdownType == 'string') { + _this.setState({ + selectValue: [item.key] + }, function () { + onSelectDropdown(item); + }); + } + if (filterDropdownType == 'number') { + _this.setState({ + selectNumberValue: [item.key] + }, function () { + onSelectDropdown(item); + }); + } + } + }; - if (!this.props.placeholder) { - return; - } + _this.onClickClear = function () { + var onClickClear = _this.props.onClickClear; - if (this.isPlaceholderMounted) { - return; - } + if (onClickClear) { + _this.setState({ + // selectValue: [], + // selectNumberValue: [] + }, function () { + onClickClear(); + }); + } + }; - console.warn("\n Droppable setup issue: DroppableProvided > placeholder could not be found.\n Please be sure to add the {provided.placeholder} Node as a child of your Droppable\n\n More information: https://github.com/atlassian/react-beautiful-dnd#1-provided-droppableprovided\n "); - }; + _this.getMenu = function () { + var _this$state = _this.state, + selectValue = _this$state.selectValue, + selectNumberValue = _this$state.selectNumberValue; + var _this$props2 = _this.props, + filterDropdownType = _this$props2.filterDropdownType, + filterDropdownIncludeKeys = _this$props2.filterDropdownIncludeKeys; - _proto.getPlaceholder = function getPlaceholder() { - if (!this.props.placeholder) { - return null; - } + var locale = (0, _tool.getComponentLocale)(_this.props, _this.context, 'Table', function () { + return _i18n2['default']; + }); + var stringEnum = { + LIKE: 'include', + ULIKE: 'exclusive', + EQ: 'equal', + UEQ: 'unequal', + START: 'begin', + END: 'end' + }; + var numberEnum = { + GT: 'greater_than', + GTEQ: 'great_than_equal_to', + LT: 'less_than', + LTEQ: 'less_than_equal_to', + EQ: 'be_equal_to', + UEQ: 'not_equal_to' + }; + if (filterDropdownIncludeKeys != undefined) { + switch (filterDropdownType) { + case 'string': + return _react2['default'].createElement( + _beeMenus2['default'], + { + onClick: _this.onSelectDropdown, + selectedKeys: selectValue + }, + filterDropdownIncludeKeys.map(function (item) { + return _react2['default'].createElement( + Item, + { key: item }, + locale[stringEnum[item]] + ); + }) + ); + case 'number': + return _react2['default'].createElement( + _beeMenus2['default'], + { + onClick: _this.onSelectDropdown, + selectedKeys: selectNumberValue + }, + filterDropdownIncludeKeys.map(function (item) { + return _react2['default'].createElement( + Item, + { key: item }, + locale[numberEnum[item]] + ); + }) + ); + default: + return _react2['default'].createElement('div', null); + } + } else { + switch (filterDropdownType) { + case 'string': + return _react2['default'].createElement( + _beeMenus2['default'], + { + onClick: _this.onSelectDropdown, + selectedKeys: selectValue + }, + _react2['default'].createElement( + Item, + { key: 'LIKE' }, + locale['include'] + ), + _react2['default'].createElement( + Item, + { key: 'ULIKE' }, + locale['exclusive'] + ), + _react2['default'].createElement( + Item, + { key: 'EQ' }, + locale['equal'] + ), + _react2['default'].createElement( + Item, + { key: 'UEQ' }, + locale['unequal'] + ), + _react2['default'].createElement( + Item, + { key: 'RLIKE' }, + locale['begin'] + ), + _react2['default'].createElement( + Item, + { key: 'LLIKE' }, + locale['end'] + ) + ); + case 'number': + return _react2['default'].createElement( + _beeMenus2['default'], + { + onClick: _this.onSelectDropdown, + selectedKeys: selectNumberValue + }, + _react2['default'].createElement( + Item, + { key: 'GT' }, + locale['greater_than'] + ), + _react2['default'].createElement( + Item, + { key: 'GTEQ' }, + locale['great_than_equal_to'] + ), + _react2['default'].createElement( + Item, + { key: 'LT' }, + locale['less_than'] + ), + _react2['default'].createElement( + Item, + { key: 'LTEQ' }, + locale['less_than_equal_to'] + ), + _react2['default'].createElement( + Item, + { key: 'EQ' }, + locale['be_equal_to'] + ), + _react2['default'].createElement( + Item, + { key: 'UEQ' }, + locale['not_equal_to'] + ) + ); + default: + return _react2['default'].createElement('div', null); + } + } + }; - return __WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement(Placeholder, { - placeholder: this.props.placeholder, - onMount: this.onPlaceholderMount, - onUnmount: this.onPlaceholderUnmount - }); - }; + _this.state = { + selectValue: ['LIKE'], + selectNumberValue: ['EQ'] + }; + return _this; + } + /** + * 点击下拉菜单 + * + * @param {*} s 选中的selectRecord + */ - _proto.render = function render() { - var _this$props = this.props, - children = _this$props.children, - direction = _this$props.direction, - droppableId = _this$props.droppableId, - ignoreContainerClipping = _this$props.ignoreContainerClipping, - isDraggingOver = _this$props.isDraggingOver, - isDropDisabled = _this$props.isDropDisabled, - draggingOverWith = _this$props.draggingOverWith, - type = _this$props.type; - var provided = { - innerRef: this.setRef, - placeholder: this.getPlaceholder(), - droppableProps: { - 'data-react-beautiful-dnd-droppable': this.styleContext - } - }; - var snapshot = { - isDraggingOver: isDraggingOver, - draggingOverWith: draggingOverWith - }; - return __WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement(DroppableDimensionPublisher, { - droppableId: droppableId, - type: type, - direction: direction, - ignoreContainerClipping: ignoreContainerClipping, - isDropDisabled: isDropDisabled, - getDroppableRef: this.getDroppableRef - }, children(provided, snapshot)); - }; - return Droppable; - }(__WEBPACK_IMPORTED_MODULE_9_react__["Component"]); + /** + * 清除事件 + * + */ - Droppable.contextTypes = (_Droppable$contextTyp = {}, _Droppable$contextTyp[styleContextKey] = __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.string.isRequired, _Droppable$contextTyp); - Droppable.childContextTypes = (_Droppable$childConte = {}, _Droppable$childConte[droppableIdKey] = __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.string.isRequired, _Droppable$childConte[droppableTypeKey] = __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.string.isRequired, _Droppable$childConte); - var isStrictEqual = (function (a, b) { - return a === b; - }); + /** + * 根据props来获得指定的Menu,分为String和Number + * + * @returns JSX Menu + */ - var makeMapStateToProps = function makeMapStateToProps() { - var getIsDraggingOver = function getIsDraggingOver(id, destination) { - if (!destination) { - return false; - } - return destination.droppableId === id; - }; + FilterDropDown.prototype.render = function render() { + var isShowCondition = this.props.isShowCondition; - var shouldUsePlaceholder = function shouldUsePlaceholder(id, descriptor, destination) { - if (!destination) { - return false; - } - if (id === descriptor.droppableId) { - return false; - } + return _react2['default'].createElement( + 'div', + { className: 'filter-btns' }, + isShowCondition == 'show' && _react2['default'].createElement( + _beeDropdown2['default'], + { + overlayClassName: 'u-filter-dropdown-menu-wrap', + trigger: ['click'], + overlay: this.getMenu(), + animation: 'slide-up' + }, + _react2['default'].createElement( + _beeButton2['default'], + { + shape: 'border', + style: { marginLeft: "2px", minWidth: "0px", width: "26px", lineHeight: "24px", padding: 0 } + }, + _react2['default'].createElement(_beeIcon2['default'], { style: { padding: 0, color: '#585858' }, type: 'uf-filter' }) + ) + ), + _react2['default'].createElement( + _beeButton2['default'], + { + onClick: this.onClickClear, + shape: 'border', + style: { marginLeft: "2px", minWidth: "0px", width: "26px", lineHeight: "24px", padding: 0, "visibility": this.props.isShowClear || this.state.selectValue.length > 0 ? "visible" : "hidden" } + }, + _react2['default'].createElement(_beeIcon2['default'], { style: { padding: 0, color: '#585858', "visibility": this.props.isShowClear || this.state.selectValue.length > 0 ? "visible" : "hidden" }, type: 'uf-filterno' }) + ) + ); + }; - return id === destination.droppableId; - }; + return FilterDropDown; + }(_react.Component); - var getMapProps = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (isDraggingOver, draggingOverWith, placeholder) { - return { - isDraggingOver: isDraggingOver, - draggingOverWith: draggingOverWith, - placeholder: placeholder - }; - }); + FilterDropDown.propTypes = { + isShowCondition: _propTypes2['default'].string, + filterDropdownType: _propTypes2['default'].oneOf(['string', 'number']) + }; - var getDefault = function getDefault() { - return getMapProps(false, null, null); - }; + FilterDropDown.defaultProps = { + isShowCondition: 'show', + filterDropdownType: 'string' + }; - var selector = function selector(state, ownProps) { - if (ownProps.isDropDisabled) { - return getDefault(); - } + FilterDropDown.contextTypes = { + beeLocale: _propTypes2['default'].object + }; + exports['default'] = FilterDropDown; + module.exports = exports['default']; + +/***/ }), +/* 618 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - var id = ownProps.droppableId; + Object.defineProperty(exports, "__esModule", { + value: true + }); - if (state.isDragging) { - var destination = state.impact.destination; - var isDraggingOver = getIsDraggingOver(id, destination); - var draggableId = state.critical.draggable.id; - var draggingOverWith = isDraggingOver ? draggableId : null; - var draggable = state.dimensions.draggables[draggableId]; - var placeholder = shouldUsePlaceholder(id, draggable.descriptor, destination) ? draggable.placeholder : null; - return getMapProps(isDraggingOver, draggingOverWith, placeholder); - } + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - if (state.phase === 'DROP_ANIMATING') { - var _destination = state.pending.impact.destination; + var _react = __webpack_require__(1); - var _isDraggingOver = getIsDraggingOver(id, _destination); + var _react2 = _interopRequireDefault(_react); - var _draggableId = state.pending.result.draggableId; + var _Column = __webpack_require__(619); - var _draggingOverWith = _isDraggingOver ? _draggableId : null; + var _Column2 = _interopRequireDefault(_Column); - var _draggable = state.dimensions.draggables[_draggableId]; + var _ColumnGroup = __webpack_require__(620); - var _placeholder = shouldUsePlaceholder(id, _draggable.descriptor, _destination) ? _draggable.placeholder : null; + var _ColumnGroup2 = _interopRequireDefault(_ColumnGroup); - return getMapProps(_isDraggingOver, _draggingOverWith, _placeholder); - } + var _beeIcon = __webpack_require__(67); - return getDefault(); - }; + var _beeIcon2 = _interopRequireDefault(_beeIcon); - return selector; - }; - var connectedDroppable = Object(__WEBPACK_IMPORTED_MODULE_11_react_redux__["a" /* connect */])(makeMapStateToProps, null, null, { - storeKey: storeKey, - pure: true, - areStatePropsEqual: isStrictEqual - })(Droppable); - connectedDroppable.defaultProps = { - type: 'DEFAULT', - isDropDisabled: false, - direction: 'vertical', - ignoreContainerClipping: false - }; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - var _DraggableDimensionPu; + function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } - var DraggableDimensionPublisher = function (_Component) { - Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_corejs2_helpers_esm_inheritsLoose__["a" /* default */])(DraggableDimensionPublisher, _Component); + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - function DraggableDimensionPublisher() { - var _this; + //行控制管理 + var ColumnManager = function () { + function ColumnManager(columns, elements, originWidth, rowDraggAble, showRowNum) { + _classCallCheck(this, ColumnManager); - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } + _initialiseProps.call(this); - _this = _Component.call.apply(_Component, [this].concat(args)) || this; - _this.publishedDescriptor = null; - _this.getMemoizedDescriptor = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (id, index, droppableId, type) { - return { - id: id, - index: index, - droppableId: droppableId, - type: type - }; - }); + columns = this.addDragHandleColumn(columns, rowDraggAble); + columns = this.addOrderColumn(columns, showRowNum); + columns = this.deleteColumnNotShow(columns); + this.columns = columns || this.normalize(elements); - _this.publish = function () { - var marshal = _this.context[dimensionMarshalKey]; + this.originWidth = originWidth; + } - var descriptor = _this.getMemoizedDescriptor(_this.props.draggableId, _this.props.index, _this.props.droppableId, _this.props.type); + // 向数据列中添加一列:行拖拽标识 - if (!_this.publishedDescriptor) { - marshal.registerDraggable(descriptor, _this.getDimension); - _this.publishedDescriptor = descriptor; - return; - } - if (descriptor === _this.publishedDescriptor) { - return; - } + // delete the column which does not show - marshal.updateDraggable(_this.publishedDescriptor, descriptor, _this.getDimension); - _this.publishedDescriptor = descriptor; - }; - _this.unpublish = function () { - !_this.publishedDescriptor ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot unpublish descriptor when none is published') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - var marshal = _this.context[dimensionMarshalKey]; - marshal.unregisterDraggable(_this.publishedDescriptor); - _this.publishedDescriptor = null; - }; + // 向数据列中添加一列:序号 - _this.getDimension = function (windowScroll) { - var targetRef = _this.props.getDraggableRef(); - var descriptor = _this.publishedDescriptor; - !targetRef ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'DraggableDimensionPublisher cannot calculate a dimension when not attached to the DOM') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - !descriptor ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot get dimension for unpublished draggable') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - var computedStyles = window.getComputedStyle(targetRef); - var borderBox = targetRef.getBoundingClientRect(); - var client = Object(__WEBPACK_IMPORTED_MODULE_2_css_box_model__["a" /* calculateBox */])(borderBox, computedStyles); - var page = Object(__WEBPACK_IMPORTED_MODULE_2_css_box_model__["e" /* withScroll */])(client, windowScroll); - var placeholder = { - client: client, - tagName: targetRef.tagName.toLowerCase(), - display: computedStyles.display - }; - var dimension = { - descriptor: descriptor, - placeholder: placeholder, - client: client, - page: page - }; - return dimension; - }; + ColumnManager.prototype.isAnyColumnsFixed = function isAnyColumnsFixed() { + var _this = this; - return _this; - } + return this._cache('isAnyColumnsFixed', function () { + return _this.columns.some(function (column) { + return !!column.fixed; + }); + }); + }; - var _proto = DraggableDimensionPublisher.prototype; + ColumnManager.prototype.isAnyColumnsLeftFixed = function isAnyColumnsLeftFixed() { + var _this2 = this; - _proto.componentDidMount = function componentDidMount() { - this.publish(); + return this._cache('isAnyColumnsLeftFixed', function () { + return _this2.columns.some(function (column) { + return column.fixed === 'left' || column.fixed === true; + }); + }); }; - _proto.componentDidUpdate = function componentDidUpdate() { - this.publish(); + ColumnManager.prototype.isAnyColumnsRightFixed = function isAnyColumnsRightFixed() { + var _this3 = this; + + return this._cache('isAnyColumnsRightFixed', function () { + return _this3.columns.some(function (column) { + return column.fixed === 'right'; + }); + }); }; - _proto.componentWillUnmount = function componentWillUnmount() { - this.unpublish(); + ColumnManager.prototype.leftColumns = function leftColumns() { + var _this4 = this; + + return this._cache('leftColumns', function () { + return _this4.groupedColumns().filter(function (column) { + return column.fixed === 'left' || column.fixed === true; + }); + }); }; - _proto.render = function render() { - return this.props.children; + ColumnManager.prototype.rightColumns = function rightColumns() { + var _this5 = this; + + return this._cache('rightColumns', function () { + return _this5.groupedColumns().filter(function (column) { + return column.fixed === 'right'; + }); + }); }; - return DraggableDimensionPublisher; - }(__WEBPACK_IMPORTED_MODULE_9_react__["Component"]); + ColumnManager.prototype.centerColumns = function centerColumns() { + var _this6 = this; - DraggableDimensionPublisher.contextTypes = (_DraggableDimensionPu = {}, _DraggableDimensionPu[dimensionMarshalKey] = __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.object.isRequired, _DraggableDimensionPu); + return this._cache('centerColumns', function () { + return _this6.groupedColumns().filter(function (column) { + return !column.fixed; + }); + }); + }; - var DoubleRenderBlocker = function (_React$Component) { - Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_corejs2_helpers_esm_inheritsLoose__["a" /* default */])(DoubleRenderBlocker, _React$Component); + ColumnManager.prototype.leafColumns = function leafColumns() { + var _this7 = this; - function DoubleRenderBlocker() { - return _React$Component.apply(this, arguments) || this; - } + return this._cache('leafColumns', function () { + return _this7._leafColumns(_this7.columns); + }); + }; - var _proto = DoubleRenderBlocker.prototype; + ColumnManager.prototype.leftLeafColumns = function leftLeafColumns() { + var _this8 = this; - _proto.shouldComponentUpdate = function shouldComponentUpdate(nextProps) { - if (isEqual(origin, nextProps.change)) { - return true; - } + return this._cache('leftLeafColumns', function () { + return _this8._leafColumns(_this8.leftColumns()); + }); + }; - if (isEqual(this.props.change, nextProps.change)) { - return false; - } + ColumnManager.prototype.rightLeafColumns = function rightLeafColumns() { + var _this9 = this; - return true; + return this._cache('rightLeafColumns', function () { + return _this9._leafColumns(_this9.rightColumns()); + }); }; - _proto.render = function render() { - return this.props.children(this.props.change); + ColumnManager.prototype.centerLeafColumns = function centerLeafColumns() { + var _this10 = this; + + return this._cache('centerLeafColumns', function () { + return _this10._leafColumns(_this10.centerColumns()); + }); }; - return DoubleRenderBlocker; - }(__WEBPACK_IMPORTED_MODULE_9_react___default.a.Component); + // add appropriate rowspan and colspan to column - var Moveable = function (_Component) { - Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_corejs2_helpers_esm_inheritsLoose__["a" /* default */])(Moveable, _Component); - function Moveable() { - return _Component.apply(this, arguments) || this; - } + ColumnManager.prototype.groupedColumns = function groupedColumns(type) { + var _this11 = this; - var _proto2 = Moveable.prototype; + return this._cache('groupedColumns', function () { + var _groupColumns = function _groupColumns(columns) { + var currentRow = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; + var parentColumn = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + var rows = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : []; - _proto2.getFinal = function getFinal() { - var destination = this.props.destination; - var speed = this.props.speed; + // track how many rows we got + rows[currentRow] = rows[currentRow] || []; + var grouped = []; + var setRowSpan = function setRowSpan(column) { + var rowSpan = rows.length - currentRow; + if (column && !column.children && // parent columns are supposed to be one row + rowSpan > 1 && (!column.rowSpan || column.rowSpan < rowSpan)) { + column.rowSpan = rowSpan; + } + }; + columns.forEach(function (column, index) { + var defaultOpt = { + ifshow: true + }; + if (!_this11.originWidth) { + defaultOpt.width = 200; + } + //获取非固定列 + if (type == 'nofixed' && column.fixed) { + return false; + } + var newColumn = _extends({}, defaultOpt, column); + rows[currentRow].push(newColumn); + parentColumn.colSpan = parentColumn.colSpan || 0; + if (newColumn.children && newColumn.children.length > 0) { + newColumn.children = _groupColumns(newColumn.children, currentRow + 1, newColumn, rows); + parentColumn.colSpan = parentColumn.colSpan + newColumn.colSpan; + } else { + parentColumn.colSpan++; + } + // update rowspan to all same row columns + for (var i = 0; i < rows[currentRow].length - 1; ++i) { + setRowSpan(rows[currentRow][i]); + } + // last column, update rowspan immediately + if (index + 1 === columns.length) { + setRowSpan(newColumn); + } + grouped.push(newColumn); + }); + return grouped; + }; + return _groupColumns(_this11.columns); + }); + }; - if (speed === 'INSTANT') { - return destination; - } + ColumnManager.prototype.normalize = function normalize(elements) { + var _this12 = this; - var config = speed === 'FAST' ? physics.fast : physics.standard; - return { - x: Object(__WEBPACK_IMPORTED_MODULE_12_react_motion__["spring"])(destination.x, config), - y: Object(__WEBPACK_IMPORTED_MODULE_12_react_motion__["spring"])(destination.y, config) - }; + var columns = []; + _react2['default'].Children.forEach(elements, function (element) { + if (!_this12.isColumnElement(element)) return; + var column = _extends({}, element.props); + if (element.key) { + column.key = element.key; + } + if (element.type === _ColumnGroup2['default']) { + column.children = _this12.normalize(column.children); + } + columns.push(column); + }); + return columns; }; - _proto2.render = function render() { - var _this = this; + ColumnManager.prototype.isColumnElement = function isColumnElement(element) { + return element && (element.type === _Column2['default'] || element.type === _ColumnGroup2['default']); + }; - var final = this.getFinal(); - return __WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_12_react_motion__["Motion"], { - defaultStyle: origin, - style: final, - onRest: this.props.onMoveEnd - }, function (current) { - var _this$props = _this.props, - speed = _this$props.speed, - destination = _this$props.destination, - children = _this$props.children; - var target = speed === 'INSTANT' ? destination : current; - return __WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement(DoubleRenderBlocker, { - change: target - }, children); + ColumnManager.prototype.reset = function reset(columns, elements, showRowNum, rowDraggAble) { + columns = this.addDragHandleColumn(columns, rowDraggAble); + columns = this.addOrderColumn(columns, showRowNum); + columns = this.deleteColumnNotShow(columns); + this.columns = columns || this.normalize(elements); + this._cached = {}; + }; + + ColumnManager.prototype.getColumnWidth = function getColumnWidth(contentWidth) { + var columns = this.leafColumns(); + var res = { computeWidth: 0, lastShowIndex: -1 }; + columns.forEach(function (col, index) { + //如果列显示 + if (col.ifshow) { + var width = col.width; + if (typeof width == 'string' && width.includes('%')) { + width = contentWidth * parseInt(col.width) / 100; + } + res.computeWidth += parseInt(width); + if (!col.fixed) { + res.lastShowIndex = index; + } + } }); + return res; }; - return Moveable; - }(__WEBPACK_IMPORTED_MODULE_9_react__["Component"]); + ColumnManager.prototype.getLeftColumnsWidth = function getLeftColumnsWidth() { + var _this13 = this; - Moveable.defaultProps = { - destination: origin - }; + var contentWidth = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1; - var getWindowFromRef = (function (ref) { - return ref ? ref.ownerDocument.defaultView : window; - }); + return this._cache('leftColumnsWidth', function () { + var leftColumnsWidth = 0; + _this13.groupedColumns().forEach(function (column) { + if (column.fixed === 'left' || column.fixed === true) { + var width = column.width; + if (typeof width == 'string' && width.includes('%')) { + width = contentWidth * parseInt(column.width) / 100; + } + leftColumnsWidth += parseInt(width); + } + }); + return leftColumnsWidth; + }); + }; - var selector = "[" + dragHandle + "]"; + ColumnManager.prototype.getRightColumnsWidth = function getRightColumnsWidth() { + var _this14 = this; - var isSVG = function isSVG(el) { - if (typeof SVGElement === 'undefined') { - return false; - } + var contentWidth = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1; - return el instanceof SVGElement; - }; + return this._cache('rightColumnsWidth', function () { + var rightColumnsWidth = 0; + _this14.groupedColumns().forEach(function (column) { + if (column.fixed === 'right') { + var width = column.width; + if (typeof width == 'string' && width.includes('%')) { + width = contentWidth * parseInt(column.width) / 100; + } + rightColumnsWidth += parseInt(width); + } + }); + return rightColumnsWidth; + }); + }; - var throwIfSVG = function throwIfSVG(el) { - !!isSVG(el) ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, "A drag handle cannot be an SVGElement: it has inconsistent focus support.\n\n More information: https://github.com/atlassian/react-beautiful-dnd/tree/master/docs/guides/dragging-svgs.md") : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - }; + ColumnManager.prototype._cache = function _cache(name, fn) { + if (name in this._cached) { + return this._cached[name]; + } + this._cached[name] = fn(); + return this._cached[name]; + }; - var getDragHandleRef = function getDragHandleRef(draggableRef) { - if (draggableRef.hasAttribute(dragHandle)) { - throwIfSVG(draggableRef); - return draggableRef; - } + //todo 含有children的宽度计算 - var el = draggableRef.querySelector(selector); - throwIfSVG(draggableRef); - !el ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, "\n Cannot find drag handle element inside of Draggable.\n Please be sure to apply the {...provided.dragHandleProps} to your Draggable\n\n More information: https://github.com/atlassian/react-beautiful-dnd#draggable\n ") : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - !(el instanceof HTMLElement) ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'A drag handle must be a HTMLElement') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - return el; - }; - var retainingFocusFor = null; - var listenerOptions$1 = { - capture: true - }; + ColumnManager.prototype._leafColumns = function _leafColumns(columns) { + var _this15 = this; - var clearRetentionOnFocusChange = function () { - var isBound = false; + var leafColumns = []; - var bind = function bind() { - if (isBound) { - return; - } + columns.forEach(function (column) { + if (!column.children) { - isBound = true; - window.addEventListener('focus', onWindowFocusChange, listenerOptions$1); + var defaultOpt = { + ifshow: true + }; + if (!_this15.originWidth) { + defaultOpt.width = 200; + } + var newColumn = _extends({}, defaultOpt, column); + leafColumns.push(newColumn); + } else { + leafColumns.push.apply(leafColumns, _toConsumableArray(_this15._leafColumns(column.children))); + } + }); + return leafColumns; }; - var unbind = function unbind() { - if (!isBound) { - return; - } + return ColumnManager; + }(); - isBound = false; - window.removeEventListener('focus', onWindowFocusChange, listenerOptions$1); - }; + var _initialiseProps = function _initialiseProps() { + this._cached = {}; - var onWindowFocusChange = function onWindowFocusChange() { - unbind(); - retainingFocusFor = null; + this.addDragHandleColumn = function (columns, rowDraggAble) { + if (!rowDraggAble) { + return columns; + } + var dragHandleColumn = [{ + className: "drag-handle-column", + title: "", + key: "dragHandle", + dataIndex: "dragHandle", + width: 49, + draggable: true, + render: function render() { + return _react2['default'].createElement(_beeIcon2['default'], { type: 'uf-navmenu' }); + } + }]; + columns = dragHandleColumn.concat(columns); + return columns; }; - var result = function result() { - return bind(); + this.deleteColumnNotShow = function (columns) { + var len = columns.length; + for (var i = 0; i < len; i++) { + if (columns && columns[i] && columns[i].isShow === false) { + columns.splice(i, 1); + i--; + } + } + return columns; }; - result.cancel = function () { - return unbind(); + this.addOrderColumn = function (columns, showRowNum) { + if (!showRowNum) { + return columns; + } + var key = showRowNum.key, + fixed = showRowNum.fixed, + width = showRowNum.width, + name = showRowNum.name, + type = showRowNum.type, + base = showRowNum.base; + + var order = { + dataIndex: key || '_index', + key: '_index', + fixed: fixed || 'left', + width: width || 50, + title: name || '序号', + render: function render(text, record, index) { + switch (type) { + case 'ascii': + { + return String.fromCharCode((base || 'a').charCodeAt() + index); + } + case 'number': + default: + { + return (base || 0) + index; + } + } + } + }; + if (columns.length > 0 && columns[0].dataIndex !== 'checkbox' && columns[0].dataIndex !== 'radio') { + // 多选表格/单选表格时放在第二列,其他情况放到第一列 + columns = [order].concat(columns); + } else { + columns.splice(1, 0, order); // splice方法改变原数组,返回切割出的数组,此处为[] + } + return columns; }; + }; - return result; - }(); + exports['default'] = ColumnManager; + module.exports = exports['default']; + +/***/ }), +/* 619 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - var retain = function retain(id) { - retainingFocusFor = id; - clearRetentionOnFocusChange(); - }; + Object.defineProperty(exports, "__esModule", { + value: true + }); - var tryRestoreFocus = function tryRestoreFocus(id, draggableRef) { - if (!retainingFocusFor) { - return; - } + var _react = __webpack_require__(1); - if (id !== retainingFocusFor) { - return; - } + var _propTypes = __webpack_require__(6); - retainingFocusFor = null; - clearRetentionOnFocusChange.cancel(); - var dragHandleRef = getDragHandleRef(draggableRef); + var _propTypes2 = _interopRequireDefault(_propTypes); - if (!dragHandleRef) { - console.warn('Could not find drag handle in the DOM to focus on it'); - return; - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - dragHandleRef.focus(); - }; + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - var retainer = { - retain: retain, - tryRestoreFocus: tryRestoreFocus - }; + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - var interactiveTagNames = { - input: true, - button: true, - textarea: true, - select: true, - option: true, - optgroup: true, - video: true, - audio: true - }; + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - var isAnInteractiveElement = function isAnInteractiveElement(parent, current) { - if (current == null) { - return false; - } + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - var hasAnInteractiveTag = Boolean(interactiveTagNames[current.tagName.toLowerCase()]); + var propTypes = { + className: _propTypes2['default'].string, + colSpan: _propTypes2['default'].number, + title: _propTypes2['default'].node, + dataIndex: _propTypes2['default'].string, + width: _propTypes2['default'].oneOfType([_propTypes2['default'].number, _propTypes2['default'].string]), + fixed: _propTypes2['default'].oneOf([true, 'left', 'right']), + render: _propTypes2['default'].func, + onCellClick: _propTypes2['default'].func, + ifshow: _propTypes2['default'].bool, + fieldType: _propTypes2['default'].string // 类型 + }; - if (hasAnInteractiveTag) { - return true; - } + var Column = function (_Component) { + _inherits(Column, _Component); - var attribute = current.getAttribute('contenteditable'); + function Column() { + _classCallCheck(this, Column); - if (attribute === 'true' || attribute === '') { - return true; + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); } - if (current === parent) { - return false; - } + return Column; + }(_react.Component); - return isAnInteractiveElement(parent, current.parentElement); + Column.defaultProps = { + ifshow: true }; - var shouldAllowDraggingFromTarget = (function (event, props) { - if (props.canDragInteractiveElements) { - return true; - } - var target = event.target, - currentTarget = event.currentTarget; + Column.propTypes = propTypes; - if (!(target instanceof Element) || !(currentTarget instanceof Element)) { - return true; - } + exports['default'] = Column; + module.exports = exports['default']; + +/***/ }), +/* 620 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - return !isAnInteractiveElement(currentTarget, target); + Object.defineProperty(exports, "__esModule", { + value: true }); - var createScheduler = (function (callbacks) { - var memoizedMove = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (x, y) { - var point = { - x: x, - y: y - }; - callbacks.onMove(point); - }); - var move = Object(__WEBPACK_IMPORTED_MODULE_7_raf_schd__["a" /* default */])(function (point) { - return memoizedMove(point.x, point.y); - }); - var moveUp = Object(__WEBPACK_IMPORTED_MODULE_7_raf_schd__["a" /* default */])(callbacks.onMoveUp); - var moveDown = Object(__WEBPACK_IMPORTED_MODULE_7_raf_schd__["a" /* default */])(callbacks.onMoveDown); - var moveRight = Object(__WEBPACK_IMPORTED_MODULE_7_raf_schd__["a" /* default */])(callbacks.onMoveRight); - var moveLeft = Object(__WEBPACK_IMPORTED_MODULE_7_raf_schd__["a" /* default */])(callbacks.onMoveLeft); - var windowScrollMove = Object(__WEBPACK_IMPORTED_MODULE_7_raf_schd__["a" /* default */])(callbacks.onWindowScroll); - - var cancel = function cancel() { - move.cancel(); - moveUp.cancel(); - moveDown.cancel(); - moveRight.cancel(); - moveLeft.cancel(); - windowScrollMove.cancel(); - }; + var _react = __webpack_require__(1); - return { - move: move, - moveUp: moveUp, - moveDown: moveDown, - moveRight: moveRight, - moveLeft: moveLeft, - windowScrollMove: windowScrollMove, - cancel: cancel - }; - }); + var _propTypes = __webpack_require__(6); - var sloppyClickThreshold = 5; - var isSloppyClickThresholdExceeded = (function (original, current) { - return Math.abs(current.x - original.x) >= sloppyClickThreshold || Math.abs(current.y - original.y) >= sloppyClickThreshold; - }); + var _propTypes2 = _interopRequireDefault(_propTypes); - var tab = 9; - var enter = 13; - var escape = 27; - var space = 32; - var pageUp = 33; - var pageDown = 34; - var end = 35; - var home = 36; - var arrowLeft = 37; - var arrowUp = 38; - var arrowRight = 39; - var arrowDown = 40; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - var _preventedKeys; - var preventedKeys = (_preventedKeys = {}, _preventedKeys[enter] = true, _preventedKeys[tab] = true, _preventedKeys); - var preventStandardKeyEvents = (function (event) { - if (preventedKeys[event.keyCode]) { - event.preventDefault(); - } - }); + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - var getOptions = function getOptions(shared, fromBinding) { - return Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({}, shared, fromBinding); - }; + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - var bindEvents = function bindEvents(el, bindings, sharedOptions) { - bindings.forEach(function (binding) { - var options = getOptions(sharedOptions, binding.options); - el.addEventListener(binding.eventName, binding.fn, options); - }); - }; - var unbindEvents = function unbindEvents(el, bindings, sharedOptions) { - bindings.forEach(function (binding) { - var options = getOptions(sharedOptions, binding.options); - el.removeEventListener(binding.eventName, binding.fn, options); - }); - }; + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - var sharedOptions = { - capture: true - }; - var createPostDragEventPreventer = (function (getWindow) { - var isBound = false; + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - var bind = function bind() { - if (isBound) { - return; - } + var ColumnGroup = function (_Component) { + _inherits(ColumnGroup, _Component); - isBound = true; - bindEvents(getWindow(), pointerEvents, sharedOptions); - }; + function ColumnGroup() { + _classCallCheck(this, ColumnGroup); - var unbind = function unbind() { - if (!isBound) { - return; - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - isBound = false; - unbindEvents(getWindow(), pointerEvents, sharedOptions); - }; + return ColumnGroup; + }(_react.Component); - var pointerEvents = [{ - eventName: 'click', - fn: function fn(event) { - event.preventDefault(); - unbind(); - } - }, { - eventName: 'mousedown', - fn: unbind - }, { - eventName: 'touchstart', - fn: unbind - }]; + ColumnGroup.propTypes = { + title: _propTypes2['default'].node + }; + exports['default'] = ColumnGroup; + module.exports = exports['default']; + +/***/ }), +/* 621 */ +/***/ (function(module, exports) { + + "use strict"; - var preventNext = function preventNext() { - if (isBound) { - unbind(); - } + Object.defineProperty(exports, "__esModule", { + value: true + }); - bind(); - }; + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var preventer = { - preventNext: preventNext, - abort: unbind - }; - return preventer; - }); + exports["default"] = createStore; + function createStore(initialState) { + var state = initialState; + var listeners = []; - var createEventMarshal = (function () { - var isMouseDownHandled = false; + function setState(partial) { + state = _extends({}, state, partial); + for (var i = 0; i < listeners.length; i++) { + listeners[i](); + } + } - var handle = function handle() { - !!isMouseDownHandled ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot handle mouse down as it is already handled') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - isMouseDownHandled = true; - }; + function getState() { + return state; + } - var isHandled = function isHandled() { - return isMouseDownHandled; - }; + function subscribe(listener) { + listeners.push(listener); - var reset = function reset() { - isMouseDownHandled = false; - }; + return function unsubscribe() { + var index = listeners.indexOf(listener); + listeners.splice(index, 1); + }; + } return { - handle: handle, - isHandled: isHandled, - reset: reset + setState: setState, + getState: getState, + subscribe: subscribe }; + } + module.exports = exports["default"]; + +/***/ }), +/* 622 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true }); - var supportedEventName = function () { - var base = 'visibilitychange'; + var _Loading = __webpack_require__(623); - if (typeof document === 'undefined') { - return base; - } + var _Loading2 = _interopRequireDefault(_Loading); - var candidates = [base, "ms" + base, "webkit" + base, "moz" + base, "o" + base]; - var supported = ""; - for(var k = 0; k++; k < candidates.length) { - if(candidates[k] === "on" + eventName in document){ - supported = candidates[k]; - } - } - return supported || base; - }(); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - var primaryButton = 0; + exports["default"] = _Loading2["default"]; + module.exports = exports['default']; + +/***/ }), +/* 623 */ +/***/ (function(module, exports, __webpack_require__) { + + "use strict"; - var noop = function noop() {}; + Object.defineProperty(exports, "__esModule", { + value: true + }); - var mouseDownMarshal = createEventMarshal(); - var createMouseSensor = (function (_ref) { - var callbacks = _ref.callbacks, - getWindow = _ref.getWindow, - canStartCapturing = _ref.canStartCapturing; - var state = { - isDragging: false, - pending: null - }; + var _react = __webpack_require__(1); - var setState = function setState(newState) { - state = newState; - }; + var _react2 = _interopRequireDefault(_react); - var isDragging = function isDragging() { - return state.isDragging; - }; + var _propTypes = __webpack_require__(6); - var isCapturing = function isCapturing() { - return Boolean(state.pending || state.isDragging); - }; + var _propTypes2 = _interopRequireDefault(_propTypes); - var schedule = createScheduler(callbacks); - var postDragEventPreventer = createPostDragEventPreventer(getWindow); + var _classnames = __webpack_require__(5); - var startDragging = function startDragging(fn) { - if (fn === void 0) { - fn = noop; - } + var _classnames2 = _interopRequireDefault(_classnames); - setState({ - pending: null, - isDragging: true - }); - fn(); - }; + var _Portal = __webpack_require__(100); - var stopDragging = function stopDragging(fn, shouldBlockClick) { - if (fn === void 0) { - fn = noop; - } + var _Portal2 = _interopRequireDefault(_Portal); - if (shouldBlockClick === void 0) { - shouldBlockClick = true; - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - schedule.cancel(); - unbindWindowEvents(); - mouseDownMarshal.reset(); + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - if (shouldBlockClick) { - postDragEventPreventer.preventNext(); - } + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - setState({ - isDragging: false, - pending: null - }); - fn(); - }; + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - var startPendingDrag = function startPendingDrag(point) { - setState({ - pending: point, - isDragging: false - }); - bindWindowEvents(); - }; + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - var stopPendingDrag = function stopPendingDrag() { - stopDragging(noop, false); - }; + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - var kill = function kill(fn) { - if (fn === void 0) { - fn = noop; - } + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - if (state.pending) { - stopPendingDrag(); - return; - } + var loadImg = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNDJweCIgaGVpZ2h0PSI0MXB4IiB2aWV3Qm94PSIwIDAgNDIgNDEiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUzLjIgKDcyNjQzKSAtIGh0dHBzOi8vc2tldGNoYXBwLmNvbSAtLT4KICAgIDx0aXRsZT53aW5kb3U8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZGVmcz4KICAgICAgICA8bGluZWFyR3JhZGllbnQgeDE9IjQ5Ljc3NzAwMDElIiB5MT0iOTkuOTg4NjY2NyUiIHgyPSI0OS43NzcwMDAxJSIgeTI9IjIyLjc5MTY5ODQlIiBpZD0ibGluZWFyR3JhZGllbnQtMSI+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiM4MkQ5MDAiIG9mZnNldD0iMCUiPjwvc3RvcD4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0ZGRkZGRiIgc3RvcC1vcGFjaXR5PSIwIiBvZmZzZXQ9IjEwMCUiPjwvc3RvcD4KICAgICAgICA8L2xpbmVhckdyYWRpZW50PgogICAgICAgIDxsaW5lYXJHcmFkaWVudCB4MT0iMC4wNzY1JSIgeTE9IjQ5LjgwNDUlIiB4Mj0iODQuMDAyMTY0NCUiIHkyPSI0OS44MDQ1JSIgaWQ9ImxpbmVhckdyYWRpZW50LTIiPgogICAgICAgICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjRkZCRTBFIiBvZmZzZXQ9IjAlIj48L3N0b3A+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiNGRkZGRkYiIHN0b3Atb3BhY2l0eT0iMCIgb2Zmc2V0PSIxMDAlIj48L3N0b3A+CiAgICAgICAgPC9saW5lYXJHcmFkaWVudD4KICAgICAgICA8bGluZWFyR3JhZGllbnQgeDE9IjUwLjIyOTUwMDElIiB5MT0iLTAuMDgwOTk5OTQyOSUiIHgyPSI1MC4yMjk1MDAxJSIgeTI9IjgwLjA2MTg4MjglIiBpZD0ibGluZWFyR3JhZGllbnQtMyI+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiNGRjQ3NDciIG9mZnNldD0iMCUiPjwvc3RvcD4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0ZGRkZGRiIgc3RvcC1vcGFjaXR5PSIwIiBvZmZzZXQ9IjEwMCUiPjwvc3RvcD4KICAgICAgICA8L2xpbmVhckdyYWRpZW50PgogICAgICAgIDxsaW5lYXJHcmFkaWVudCB4MT0iOTkuOTI1NjY2NyUiIHkxPSI0OS45MTglIiB4Mj0iMjQuMjY5MjQwMyUiIHkyPSI0OS45MTglIiBpZD0ibGluZWFyR3JhZGllbnQtNCI+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiMwMDhDREMiIG9mZnNldD0iMCUiPjwvc3RvcD4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0ZGRkZGRiIgc3RvcC1vcGFjaXR5PSIwIiBvZmZzZXQ9IjEwMCUiPjwvc3RvcD4KICAgICAgICA8L2xpbmVhckdyYWRpZW50PgogICAgPC9kZWZzPgogICAgPGcgaWQ9IlN5bWJvbHMiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSLop4blm74vbG9hZGluZyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTMuMDAwMDAwLCAtMy4wMDAwMDApIj4KICAgICAgICAgICAgPGcgaWQ9IndpbmRvdSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMy4wMDAwMDAsIDMuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICA8ZyBpZD0i5YiG57uELTMiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDI5LjAwMDAwMCwgMC4wMDAwMDApIj4KICAgICAgICAgICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlIiBmaWxsPSJ1cmwoI2xpbmVhckdyYWRpZW50LTEpIiBvcGFjaXR5PSIwLjQ5OTM3MjIxIiB4PSIwLjQwOTA5MDkwOSIgeT0iMCIgd2lkdGg9IjEyIiBoZWlnaHQ9IjM0Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0iT3ZhbCIgZmlsbD0iIzAwQzg2NCIgY3g9IjYuNDA5MDkwOTEiIGN5PSIzNC4yNjY3MDkxIiByPSI2Ij48L2NpcmNsZT4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgICAgIDxnIGlkPSLliIbnu4QtMiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMC40NTE3MjksIDI4LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgICAgIDxyZWN0IGlkPSJSZWN0YW5nbGUiIGZpbGw9InVybCgjbGluZWFyR3JhZGllbnQtMikiIG9wYWNpdHk9IjAuNTA5MDIxNTc3IiB4PSI2LjI2MjM1NTk1IiB5PSIzLjU1MjcxMzY4ZS0xNSIgd2lkdGg9IjM0IiBoZWlnaHQ9IjEyIj48L3JlY3Q+CiAgICAgICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0iT3ZhbCIgZmlsbD0iI0ZGQkUwRSIgY3g9IjYuNTAyODE2OSIgY3k9IjYiIHI9IjYiPjwvY2lyY2xlPgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICAgICAgPGcgaWQ9IuWIhue7hCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMS4wMDAwMDAsIDAuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICAgICAgPHJlY3QgaWQ9IlJlY3RhbmdsZSIgZmlsbD0idXJsKCNsaW5lYXJHcmFkaWVudC0zKSIgb3BhY2l0eT0iMC41MDEyMzIzMjkiIHg9Ii0yLjY1NTY1MzQ3ZS0xMyIgeT0iNS43ODgyMTI4MSIgd2lkdGg9IjEyIiBoZWlnaHQ9IjM0Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0iT3ZhbCIgZmlsbD0iI0ZGNDc0NyIgY3g9IjYiIGN5PSI2IiByPSI2Ij48L2NpcmNsZT4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgICAgIDxnIGlkPSJHcm91cCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMC45NTQ1NDUsIDAuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICAgICAgPHJlY3QgaWQ9IlJlY3RhbmdsZSIgZmlsbD0idXJsKCNsaW5lYXJHcmFkaWVudC00KSIgb3BhY2l0eT0iMC41MDQxODUyNjgiIHg9IjAiIHk9IjAiIHdpZHRoPSIzNiIgaGVpZ2h0PSIxMS45NDI2NTY5Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0iT3ZhbCIgZmlsbD0iIzAwOENEQyIgY3g9IjM1IiBjeT0iNiIgcj0iNiI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg=='; - stopDragging(fn); - }; + var propTypes = { + /** + * @title 默认的公共类׺ + */ + clsPrefix: _propTypes2["default"].string, + clsLoadBack: _propTypes2["default"].string, + /** + * @title 不同loading样式 + */ + loadingType: _propTypes2["default"].oneOf(["rotate", "line", "custom"]), - var unmount = function unmount() { - kill(); - postDragEventPreventer.abort(); - }; + /** + * @title 不同尺寸 + */ + size: _propTypes2["default"].oneOf(["sm", "lg"]), + /** + * @title 不同颜色 + */ + color: _propTypes2["default"].oneOf(["primary", "success", "warning", ""]), + /** + * @title 是否全屏loading + */ + fullScreen: _propTypes2["default"].bool, + wrapperClassName: _propTypes2["default"].string + }; - var cancel = function cancel() { - kill(callbacks.onCancel); - }; + var defaultProps = { + clsPrefix: "u-loading", + clsLoadBack: "u-loading-back", + loadingType: "rotate", + color: "", + showBackDrop: true, + fullScreen: false, + wrapperClassName: "" + }; - var windowBindings = [{ - eventName: 'mousemove', - fn: function fn(event) { - var button = event.button, - clientX = event.clientX, - clientY = event.clientY; + var sizeMap = { + sm: "sm", + lg: "lg" + }, + colorsMap = { + primary: "primary", + success: "success", + warning: "warning" + }; - if (button !== primaryButton) { - return; - } + var Loading = function (_Component) { + _inherits(Loading, _Component); - var point = { - x: clientX, - y: clientY - }; + function Loading(props) { + _classCallCheck(this, Loading); - if (state.isDragging) { - event.preventDefault(); - schedule.move(point); - return; - } + return _possibleConstructorReturn(this, _Component.call(this, props)); + } - if (!state.pending) { - kill(); - process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Expected there to be a pending drag') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false); - } + Loading.prototype.render = function render() { + var _backClassObj; - if (!isSloppyClickThresholdExceeded(state.pending, point)) { - return; - } + var _props = this.props, + clsPrefix = _props.clsPrefix, + loadingType = _props.loadingType, + size = _props.size, + color = _props.color, + show = _props.show, + showBackDrop = _props.showBackDrop, + container = _props.container, + children = _props.children, + fullScreen = _props.fullScreen, + wrapperClassName = _props.wrapperClassName, + indicator = _props.indicator, + others = _objectWithoutProperties(_props, ["clsPrefix", "loadingType", "size", "color", "show", "showBackDrop", "container", "children", "fullScreen", "wrapperClassName", "indicator"]); - event.preventDefault(); - startDragging(function () { - return callbacks.onLift({ - clientSelection: point, - autoScrollMode: 'FLUID' - }); - }); - } - }, { - eventName: 'mouseup', - fn: function fn(event) { - if (state.pending) { - stopPendingDrag(); - return; - } + var clsObj = {}; - event.preventDefault(); - stopDragging(callbacks.onDrop); + if (!show) return null; + + clsObj[clsPrefix + "-" + loadingType] = true; + + if (sizeMap[size]) { + clsObj[clsPrefix + "-" + loadingType + "-" + sizeMap[size]] = true; } - }, { - eventName: 'mousedown', - fn: function fn(event) { - if (state.isDragging) { - event.preventDefault(); - } - stopDragging(callbacks.onCancel); + if (colorsMap[color]) { + clsObj[clsPrefix + "-" + loadingType + "-" + colorsMap[color]] = true; } - }, { - eventName: 'keydown', - fn: function fn(event) { - if (!state.isDragging) { - cancel(); - return; - } - if (event.keyCode === escape) { - event.preventDefault(); - cancel(); - return; - } + var classes = (0, _classnames2["default"])(clsPrefix, clsObj); - preventStandardKeyEvents(event); - } - }, { - eventName: 'resize', - fn: cancel - }, { - eventName: 'scroll', - options: { - passive: true, - capture: false - }, - fn: function fn() { - if (state.pending) { - stopPendingDrag(); - return; - } + var dom = ""; - schedule.windowScrollMove(); + if (wrapperClassName) { + classes += " " + wrapperClassName; + } + if (loadingType === "custom" && !!indicator) { + dom = _react2["default"].createElement( + "div", + null, + _react2["default"].createElement( + "div", + { className: classes }, + _react2["default"].createElement( + "div", + null, + indicator + ) + ), + children && _react2["default"].createElement( + "div", + { className: clsPrefix + "-desc" }, + children + ) + ); + } else if (loadingType === "rotate") { + dom = _react2["default"].createElement( + "div", + null, + _react2["default"].createElement( + "div", + { className: classes }, + _react2["default"].createElement( + "div", + null, + _react2["default"].createElement("img", { src: loadImg }) + ) + ), + children && _react2["default"].createElement( + "div", + { className: clsPrefix + "-desc" }, + children + ) + ); + } else if (loadingType === "line") { + dom = _react2["default"].createElement( + "div", + null, + _react2["default"].createElement( + "div", + { className: classes }, + _react2["default"].createElement("div", null), + _react2["default"].createElement("div", null), + _react2["default"].createElement("div", null), + _react2["default"].createElement("div", null), + _react2["default"].createElement("div", null) + ), + children && _react2["default"].createElement( + "div", + { className: clsPrefix + "-desc" }, + children + ) + ); } - }, { - eventName: 'webkitmouseforcechanged', - fn: function fn(event) { - if (event.webkitForce == null || MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN == null) { - if (process.env.NODE_ENV !== 'production') { - console.warn('handling a mouse force changed event when it is not supported'); - } - - return; - } - var forcePressThreshold = MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN; - var isForcePressing = event.webkitForce >= forcePressThreshold; + var backClassObj = (_backClassObj = {}, _defineProperty(_backClassObj, clsPrefix + "-backdrop", true), _defineProperty(_backClassObj, "full-screen", fullScreen), _backClassObj); - if (isForcePressing) { - cancel(); - } + if (showBackDrop) { + dom = _react2["default"].createElement( + "div", + { className: (0, _classnames2["default"])(backClassObj) }, + dom + ); } - }, { - eventName: supportedEventName, - fn: cancel - }]; + //console.log(container); - var bindWindowEvents = function bindWindowEvents() { - var win = getWindow(); - bindEvents(win, windowBindings, { - capture: true - }); + return _react2["default"].createElement( + _Portal2["default"], + { container: container }, + dom + ); }; - var unbindWindowEvents = function unbindWindowEvents() { - var win = getWindow(); - unbindEvents(win, windowBindings, { - capture: true - }); - }; + return Loading; + }(_react.Component); - var onMouseDown = function onMouseDown(event) { - if (mouseDownMarshal.isHandled()) { - return; - } + Loading.propTypes = propTypes; + Loading.defaultProps = defaultProps; - !!isCapturing() ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Should not be able to perform a mouse down while a drag or pending drag is occurring') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + exports["default"] = Loading; + module.exports = exports["default"]; + +/***/ }), +/* 624 */ +/***/ (function(module, exports, __webpack_require__) { + + "use strict"; - if (!canStartCapturing(event)) { - return; - } + Object.defineProperty(exports, "__esModule", { + value: true + }); - if (event.button !== primaryButton) { - return; - } + var _react = __webpack_require__(1); - if (event.ctrlKey || event.metaKey || event.shiftKey || event.altKey) { - return; - } + var _react2 = _interopRequireDefault(_react); - mouseDownMarshal.handle(); - event.preventDefault(); - var point = { - x: event.clientX, - y: event.clientY - }; - startPendingDrag(point); - }; + var _src = __webpack_require__(292); - var sensor = { - onMouseDown: onMouseDown, - kill: kill, - isCapturing: isCapturing, - isDragging: isDragging, - unmount: unmount - }; - return sensor; - }); + var _src2 = _interopRequireDefault(_src); - var getBorderBoxCenterPosition = (function (el) { - return Object(__WEBPACK_IMPORTED_MODULE_2_css_box_model__["d" /* getRect */])(el.getBoundingClientRect()).center; - }); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - var _scrollJumpKeys; - var scrollJumpKeys = (_scrollJumpKeys = {}, _scrollJumpKeys[pageDown] = true, _scrollJumpKeys[pageUp] = true, _scrollJumpKeys[home] = true, _scrollJumpKeys[end] = true, _scrollJumpKeys); + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - var noop$1 = function noop() {}; + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - var createKeyboardSensor = (function (_ref) { - var callbacks = _ref.callbacks, - getWindow = _ref.getWindow, - getDraggableRef = _ref.getDraggableRef, - canStartCapturing = _ref.canStartCapturing; - var state = { - isDragging: false - }; + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - var setState = function setState(newState) { - state = newState; - }; + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** + * + * @title 基本表格 + * @parent 基础 Basic + * @description 当单元格内容过多时,会自动显示省略号,鼠标hover有提示。showRowNum 设置是否显示序号列。 + * demo0101 + */ - var startDragging = function startDragging(fn) { - if (fn === void 0) { - fn = noop$1; - } + var columns = [{ title: "员工编号", dataIndex: "a", key: "a", width: 150 }, { title: "员工姓名", dataIndex: "b", key: "b", width: 100 }, { title: "性别", dataIndex: "c", key: "c", width: 100 }, { title: "部门", dataIndex: "d", key: "d", width: 100 }, { title: "职级", dataIndex: "e", key: "e", width: 100 }]; - setState({ - isDragging: true - }); - bindWindowEvents(); - fn(); - }; + var data = [{ a: "ASVAL_20190328", b: "小张", c: "男", d: "财务二科", e: "M1", key: "1" }, { a: "ASVAL_20190320", b: "小明", c: "男", d: "财务一科", e: "T1", key: "2" }, { a: "ASVAL_20190312", b: "小红", c: "女", d: "财务一科", e: "T2", key: "3" }]; - var stopDragging = function stopDragging(fn) { - if (fn === void 0) { - fn = noop$1; - } + var Demo0101 = function (_Component) { + _inherits(Demo0101, _Component); - schedule.cancel(); - unbindWindowEvents(); - setState({ - isDragging: false + function Demo0101() { + _classCallCheck(this, Demo0101); + + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } + + Demo0101.prototype.render = function render() { + return _react2["default"].createElement(_src2["default"], { + columns: columns, + data: data, + showRowNum: true }); - fn(); }; - var kill = function kill() { - return stopDragging(); - }; + return Demo0101; + }(_react.Component); - var cancel = function cancel() { - stopDragging(callbacks.onCancel); - }; + exports["default"] = Demo0101; + module.exports = exports["default"]; + +/***/ }), +/* 625 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - var isDragging = function isDragging() { - return state.isDragging; - }; + Object.defineProperty(exports, "__esModule", { + value: true + }); - var schedule = createScheduler(callbacks); + var _react = __webpack_require__(1); - var onKeyDown = function onKeyDown(event) { - if (!isDragging()) { - if (event.defaultPrevented) { - return; - } + var _react2 = _interopRequireDefault(_react); - if (!canStartCapturing(event)) { - return; - } + var _src = __webpack_require__(292); - if (event.keyCode !== space) { - return; - } + var _src2 = _interopRequireDefault(_src); - var ref = getDraggableRef(); - !ref ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot start a keyboard drag without a draggable ref') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - var center = getBorderBoxCenterPosition(ref); - event.preventDefault(); - startDragging(function () { - return callbacks.onLift({ - clientSelection: center, - autoScrollMode: 'JUMP' - }); - }); - return; - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - if (event.keyCode === escape) { - event.preventDefault(); - cancel(); - return; - } + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - if (event.keyCode === space) { - event.preventDefault(); - stopDragging(callbacks.onDrop); - return; - } + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - if (event.keyCode === arrowDown) { - event.preventDefault(); - schedule.moveDown(); - return; - } + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - if (event.keyCode === arrowUp) { - event.preventDefault(); - schedule.moveUp(); - return; - } + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** + * + * @title 默认无数据展示 + * @parent 基础 Basic + * @description 无数据时默认展示图标,可在`emptyText`方法中自定义展示内容。 + * demo0102 + */ - if (event.keyCode === arrowRight) { - event.preventDefault(); - schedule.moveRight(); - return; - } + var columns = [{ + title: "员工编号", + dataIndex: "num", + key: "num", + width: "40%" + }, { + title: "员工姓名", + dataIndex: "name", + key: "name", + width: "30%" + }, { + title: "部门", + dataIndex: "department", + key: "department" + }]; - if (event.keyCode === arrowLeft) { - event.preventDefault(); - schedule.moveLeft(); - return; - } + var data = []; - if (scrollJumpKeys[event.keyCode]) { - event.preventDefault(); - return; - } + // 在此自定义无数据时的展示内容 + var emptyFunc = function emptyFunc() { + return 'No Data'; + }; - preventStandardKeyEvents(event); - }; + var Demo02 = function (_Component) { + _inherits(Demo02, _Component); - var windowBindings = [{ - eventName: 'mousedown', - fn: cancel - }, { - eventName: 'mouseup', - fn: cancel - }, { - eventName: 'click', - fn: cancel - }, { - eventName: 'touchstart', - fn: cancel - }, { - eventName: 'resize', - fn: cancel - }, { - eventName: 'wheel', - fn: cancel - }, { - eventName: 'scroll', - options: { - capture: false - }, - fn: callbacks.onWindowScroll - }, { - eventName: supportedEventName, - fn: cancel - }]; + function Demo02() { + _classCallCheck(this, Demo02); - var bindWindowEvents = function bindWindowEvents() { - bindEvents(getWindow(), windowBindings, { - capture: true - }); - }; + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - var unbindWindowEvents = function unbindWindowEvents() { - unbindEvents(getWindow(), windowBindings, { - capture: true + Demo02.prototype.render = function render() { + return _react2['default'].createElement(_src2['default'], { + columns: columns, + data: data + // emptyText={emptyFunc} }); }; - var sensor = { - onKeyDown: onKeyDown, - kill: kill, - isDragging: isDragging, - isCapturing: isDragging, - unmount: kill - }; - return sensor; + return Demo02; + }(_react.Component); + + exports['default'] = Demo02; + module.exports = exports['default']; + +/***/ }), +/* 626 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true }); - var timeForLongPress = 150; - var forcePressThreshold = 0.15; - var touchStartMarshal = createEventMarshal(); + var _react = __webpack_require__(1); - var noop$2 = function noop() {}; + var _react2 = _interopRequireDefault(_react); - var webkitHack = function () { - var stub = { - preventTouchMove: noop$2, - releaseTouchMove: noop$2 - }; + var _src = __webpack_require__(292); - if (typeof window === 'undefined') { - return stub; - } + var _src2 = _interopRequireDefault(_src); - if (!('ontouchstart' in window)) { - return stub; - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - var isBlocking = false; - window.addEventListener('touchmove', function (event) { - if (!isBlocking) { - return; - } + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - if (event.defaultPrevented) { - return; - } + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - event.preventDefault(); - }, { - passive: false, - capture: false - }); + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - var preventTouchMove = function preventTouchMove() { - isBlocking = true; - }; + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** + * + * @title 固定表头 + * @parent 基础 Basic + * @description 设置`scroll.y`指定滚动区域的高度,达到固定表头效果。 + * demo0103 + */ - var releaseTouchMove = function releaseTouchMove() { - isBlocking = false; - }; + var columns03 = [{ + title: "序号", + dataIndex: "index", + key: "index", + width: 80, + render: function render(text, record, index) { + return index + 1; + } + }, { + title: "订单编号", + dataIndex: "orderCode", + key: "orderCode", + width: 200 + }, { + title: "供应商名称", + dataIndex: "supplierName", + key: "supplierName", + width: 200 + }, { + title: "类型", + dataIndex: "type_name", + key: "type_name", + width: 200 + }, { + title: "采购组织", + dataIndex: "purchasing", + key: "purchasing", + width: 200 + }, { + title: "采购组", + dataIndex: "purchasingGroup", + key: "purchasingGroup", + width: 200 + }, { + title: "凭证日期", + dataIndex: "voucherDate", + key: "voucherDate", + width: 200 + }]; - return { - preventTouchMove: preventTouchMove, - releaseTouchMove: releaseTouchMove - }; - }(); + var data03 = [{ + orderCode: "NU0391025", + supplierName: "xx供应商", + type_name: "1", + purchasing: '组织c', + purchasingGroup: "aa", + voucherDate: "2018年03月18日", + key: "1" + }, { + orderCode: "NU0391026", + supplierName: "xx供应商", + type_name: "2", + purchasing: '组织a', + purchasingGroup: "bb", + voucherDate: "2018年02月05日", + key: "2" + }, { + orderCode: "NU0391027", + supplierName: "xx供应商", + type_name: "3", + purchasing: '组织b', + purchasingGroup: "aa", + voucherDate: "2018年07月01日", + key: "3" + }, { + orderCode: "NU0391028", + supplierName: "xx供应商", + type_name: "4", + purchasing: '组织c', + purchasingGroup: "cc", + voucherDate: "2019年03月01日", + key: "4" + }, { + orderCode: "NU0391029", + supplierName: "xx供应商", + type_name: "5", + purchasing: '组织d', + purchasingGroup: "ss", + voucherDate: "2019年02月14日", + key: "5" + }, { + orderCode: "NU0391030", + supplierName: "xx供应商", + type_name: "1", + purchasing: '组织e', + purchasingGroup: "zz", + voucherDate: "2019年02月18日", + key: "6" + }, { + orderCode: "NU0391031", + supplierName: "xx供应商", + type_name: "2", + purchasing: '组织f', + purchasingGroup: "qq", + voucherDate: "2019年01月01日", + key: "7" + }, { + orderCode: "NU0391032", + supplierName: "xx供应商", + type_name: "3", + purchasing: '组织g', + purchasingGroup: "pp", + voucherDate: "2019年01月31日", + key: "8" + }]; - var initial = { - isDragging: false, - pending: null, - hasMoved: false, - longPressTimerId: null - }; - var createTouchSensor = (function (_ref) { - var callbacks = _ref.callbacks, - getWindow = _ref.getWindow, - canStartCapturing = _ref.canStartCapturing; - var state = initial; + var Demo03 = function (_Component) { + _inherits(Demo03, _Component); - var setState = function setState(partial) { - state = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({}, state, partial); - }; + function Demo03() { + _classCallCheck(this, Demo03); - var isDragging = function isDragging() { - return state.isDragging; - }; + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - var isCapturing = function isCapturing() { - return Boolean(state.pending || state.isDragging || state.longPressTimerId); + Demo03.prototype.render = function render() { + return _react2['default'].createElement(_src2['default'], { columns: columns03, data: data03, scroll: { y: 150 } }); }; - var schedule = createScheduler(callbacks); - var postDragEventPreventer = createPostDragEventPreventer(getWindow); + return Demo03; + }(_react.Component); - var startDragging = function startDragging() { - var pending = state.pending; + exports['default'] = Demo03; + module.exports = exports['default']; + +/***/ }), +/* 627 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; - if (!pending) { - kill(); - process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'cannot start a touch drag without a pending position') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false); - } + Object.defineProperty(exports, "__esModule", { + value: true + }); - setState({ - isDragging: true, - hasMoved: false, - pending: null, - longPressTimerId: null - }); - callbacks.onLift({ - clientSelection: pending, - autoScrollMode: 'FLUID' - }); - }; + var _react = __webpack_require__(1); - var stopDragging = function stopDragging(fn) { - if (fn === void 0) { - fn = noop$2; - } + var _react2 = _interopRequireDefault(_react); - schedule.cancel(); - touchStartMarshal.reset(); - webkitHack.releaseTouchMove(); - unbindWindowEvents(); - postDragEventPreventer.preventNext(); - setState(initial); - fn(); - }; + var _src = __webpack_require__(292); - var startPendingDrag = function startPendingDrag(event) { - var touch = event.touches[0]; - var clientX = touch.clientX, - clientY = touch.clientY; - var point = { - x: clientX, - y: clientY - }; - var longPressTimerId = setTimeout(startDragging, timeForLongPress); - setState({ - longPressTimerId: longPressTimerId, - pending: point, - isDragging: false, - hasMoved: false - }); - bindWindowEvents(); - }; + var _src2 = _interopRequireDefault(_src); - var stopPendingDrag = function stopPendingDrag() { - if (state.longPressTimerId) { - clearTimeout(state.longPressTimerId); - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - schedule.cancel(); - touchStartMarshal.reset(); - webkitHack.releaseTouchMove(); - unbindWindowEvents(); - setState(initial); - }; + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - var kill = function kill(fn) { - if (fn === void 0) { - fn = noop$2; - } + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - if (state.pending) { - stopPendingDrag(); - return; - } + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - stopDragging(fn); - }; + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** + * + * @title 隔行换色 + * @parent 基础 Basic + * @description 可自定义斑马线颜色 + * demo0104 + */ - var unmount = function unmount() { - kill(); - postDragEventPreventer.abort(); - }; + var columns04 = [{ title: "序号", dataIndex: "index", key: "index", width: 80, + render: function render(text, record, index) { + return index + 1; + } + }, { title: "订单编号", dataIndex: "orderCode", key: "orderCode", width: 200 }, { title: "供应商名称", dataIndex: "supplierName", key: "supplierName", width: 200 }, { title: "类型", dataIndex: "type_name", key: "type_name", width: 200 }, { title: "采购组织", dataIndex: "purchasing", key: "purchasing", width: 200 }, { title: "采购组", dataIndex: "purchasingGroup", key: "purchasingGroup", width: 200 }, { title: "凭证日期", dataIndex: "voucherDate", key: "voucherDate", width: 200 }]; - var cancel = function cancel() { - kill(callbacks.onCancel); - }; + var data04 = [{ + orderCode: "NU0391025", + supplierName: "xx供应商", + type_name: "1", + purchasing: '组织c', + purchasingGroup: "aa", + voucherDate: "2018年03月18日", + key: "1" + }, { + orderCode: "NU0391026", + supplierName: "xx供应商", + type_name: "2", + purchasing: '组织a', + purchasingGroup: "bb", + voucherDate: "2018年02月05日", + key: "2" + }, { + orderCode: "NU0391027", + supplierName: "xx供应商", + type_name: "3", + purchasing: '组织b', + purchasingGroup: "aa", + voucherDate: "2018年07月01日", + key: "3" + }, { + orderCode: "NU0391028", + supplierName: "xx供应商", + type_name: "4", + purchasing: '组织c', + purchasingGroup: "cc", + voucherDate: "2019年03月01日", + key: "4" + }, { + orderCode: "NU0391029", + supplierName: "xx供应商", + type_name: "5", + purchasing: '组织d', + purchasingGroup: "ss", + voucherDate: "2019年02月14日", + key: "5" + }, { + orderCode: "NU0391030", + supplierName: "xx供应商", + type_name: "1", + purchasing: '组织e', + purchasingGroup: "zz", + voucherDate: "2019年02月18日", + key: "6" + }, { + orderCode: "NU0391031", + supplierName: "xx供应商", + type_name: "2", + purchasing: '组织f', + purchasingGroup: "qq", + voucherDate: "2019年01月01日", + key: "7" + }, { + orderCode: "NU0391032", + supplierName: "xx供应商", + type_name: "3", + purchasing: '组织g', + purchasingGroup: "pp", + voucherDate: "2019年01月31日", + key: "8" + }]; - var windowBindings = [{ - eventName: 'touchmove', - options: { - passive: false - }, - fn: function fn(event) { - if (!state.isDragging) { - stopPendingDrag(); - return; - } + var Demo04 = function (_Component) { + _inherits(Demo04, _Component); - if (!state.hasMoved) { - setState({ - hasMoved: true - }); - } + function Demo04() { + _classCallCheck(this, Demo04); - var _event$touches$ = event.touches[0], - clientX = _event$touches$.clientX, - clientY = _event$touches$.clientY; - var point = { - x: clientX, - y: clientY - }; - event.preventDefault(); - schedule.move(point); - } - }, { - eventName: 'touchend', - fn: function fn(event) { - if (!state.isDragging) { - stopPendingDrag(); - return; - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - event.preventDefault(); - stopDragging(callbacks.onDrop); - } - }, { - eventName: 'touchcancel', - fn: function fn(event) { - if (!state.isDragging) { - stopPendingDrag(); - return; - } + Demo04.prototype.render = function render() { + return _react2['default'].createElement(_src2['default'], { + className: 'demo04', + columns: columns04, + data: data04 }); + }; - event.preventDefault(); - stopDragging(callbacks.onCancel); - } - }, { - eventName: 'touchstart', - fn: cancel - }, { - eventName: 'orientationchange', - fn: cancel - }, { - eventName: 'resize', - fn: cancel - }, { - eventName: 'scroll', - options: { - passive: true, - capture: false - }, - fn: function fn() { - if (state.pending) { - stopPendingDrag(); - return; - } + return Demo04; + }(_react.Component); - schedule.windowScrollMove(); - } - }, { - eventName: 'contextmenu', - fn: function fn(event) { - event.preventDefault(); - } - }, { - eventName: 'keydown', - fn: function fn(event) { - if (!state.isDragging) { - cancel(); - return; - } + exports['default'] = Demo04; + module.exports = exports['default']; + +/***/ }), +/* 628 */ +/***/ (function(module, exports, __webpack_require__) { + + "use strict"; - if (event.keyCode === escape) { - event.preventDefault(); - } + Object.defineProperty(exports, "__esModule", { + value: true + }); - cancel(); - } - }, { - eventName: 'touchforcechange', - fn: function fn(event) { - if (state.hasMoved) { - event.preventDefault(); - return; - } + var _react = __webpack_require__(1); - var touch = event.touches[0]; + var _react2 = _interopRequireDefault(_react); - if (touch.force >= forcePressThreshold) { - cancel(); - } - } - }, { - eventName: supportedEventName, - fn: cancel - }]; + var _src = __webpack_require__(292); - var bindWindowEvents = function bindWindowEvents() { - bindEvents(getWindow(), windowBindings, { - capture: true - }); - }; + var _src2 = _interopRequireDefault(_src); - var unbindWindowEvents = function unbindWindowEvents() { - unbindEvents(getWindow(), windowBindings, { - capture: true - }); - }; + var _tinperBee = __webpack_require__(629); - var onTouchStart = function onTouchStart(event) { - if (touchStartMarshal.isHandled()) { - return; - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - !!isCapturing() ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Should not be able to perform a touch start while a drag or pending drag is occurring') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - if (!canStartCapturing(event)) { - return; - } + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - touchStartMarshal.handle(); - webkitHack.preventTouchMove(); - startPendingDrag(event); - }; + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - var sensor = { - onTouchStart: onTouchStart, - kill: kill, - isCapturing: isCapturing, - isDragging: isDragging, - unmount: unmount - }; - return sensor; - }); + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** + * + * @title 表格 Loading 加载 + * @parent 基础 Basic + * @description loading可以传boolean或者object对象,object为bee-loading组件的参数类型 + * demo0105 + */ - var _DragHandle$contextTy; + var columns05 = [{ title: "员工编号", dataIndex: "a", key: "a", width: 300, className: "rowClassName", fixed: 'left' }, { title: "员工姓名", dataIndex: "b", key: "b", width: 500 }, { title: "性别", dataIndex: "c", key: "c", width: 500 }, { title: "部门", dataIndex: "d", key: "d", width: 200 }]; - var preventHtml5Dnd = function preventHtml5Dnd(event) { - event.preventDefault(); - }; + var data05 = [{ a: "ASVAL_201903280005", b: "小张", c: "男", d: "财务二科", key: "1" }, { a: "ASVAL_201903200004", b: "小明", c: "男", d: "财务一科", key: "2" }, { a: "ASVAL_201903120002", b: "小红", c: "女", d: "财务一科", key: "3" }]; - var DragHandle = function (_Component) { - Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_corejs2_helpers_esm_inheritsLoose__["a" /* default */])(DragHandle, _Component); + var Demo05 = function (_Component) { + _inherits(Demo05, _Component); - function DragHandle(props, context) { - var _this; + function Demo05(props) { + _classCallCheck(this, Demo05); - _this = _Component.call(this, props, context) || this; - _this.mouseSensor = void 0; - _this.keyboardSensor = void 0; - _this.touchSensor = void 0; - _this.sensors = void 0; - _this.styleContext = void 0; - _this.canLift = void 0; - _this.isFocused = false; - _this.lastDraggableRef = void 0; + var _this = _possibleConstructorReturn(this, _Component.call(this, props)); + + _this.changeLoading = function () { + _this.setState({ + loading: !_this.state.loading + }); + }; + + _this.state = { + loading: true + }; + return _this; + } + + Demo05.prototype.render = function render() { + return _react2["default"].createElement( + "div", + null, + _react2["default"].createElement( + _tinperBee.Button, + { + className: "editable-add-btn", + onClick: this.changeLoading + }, + "\u5207\u6362loading" + ), + _react2["default"].createElement(_src2["default"], { + columns: columns05, + data: data05 + // loading={this.state.loading}或者是boolean + , loading: { show: this.state.loading } + }) + ); + }; - _this.onFocus = function () { - _this.isFocused = true; - }; + return Demo05; + }(_react.Component); - _this.onBlur = function () { - _this.isFocused = false; - }; + exports["default"] = Demo05; + module.exports = exports["default"]; + +/***/ }), +/* 629 */ +/***/ (function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(process) {'use strict'; - _this.onKeyDown = function (event) { - if (_this.mouseSensor.isCapturing() || _this.touchSensor.isCapturing()) { - return; - } + if (process.env.NODE_ENV === 'production') { + module.exports = __webpack_require__(630); + } else { + module.exports = __webpack_require__(630); + } - _this.keyboardSensor.onKeyDown(event); - }; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(33))) + +/***/ }), +/* 630 */ +/***/ (function(module, exports, __webpack_require__) { + + (function webpackUniversalModuleDefinition(root, factory) { + if(true) + module.exports = factory(__webpack_require__(1), __webpack_require__(6), __webpack_require__(2)); + else if(typeof define === 'function' && define.amd) + define(["react", "prop-types", "react-dom"], factory); + else if(typeof exports === 'object') + exports["TinperBee"] = factory(require("react"), require("prop-types"), require("react-dom")); + else + root["TinperBee"] = factory(root["React"], root["PropTypes"], root["ReactDOM"]); + })(typeof self !== 'undefined' ? self : this, function(__WEBPACK_EXTERNAL_MODULE_0__, __WEBPACK_EXTERNAL_MODULE_1__, __WEBPACK_EXTERNAL_MODULE_3__) { + return /******/ (function(modules) { // webpackBootstrap + /******/ // The module cache + /******/ var installedModules = {}; + /******/ + /******/ // The require function + /******/ function __webpack_require__(moduleId) { + /******/ + /******/ // Check if module is in cache + /******/ if(installedModules[moduleId]) { + /******/ return installedModules[moduleId].exports; + /******/ } + /******/ // Create a new module (and put it into the cache) + /******/ var module = installedModules[moduleId] = { + /******/ i: moduleId, + /******/ l: false, + /******/ exports: {} + /******/ }; + /******/ + /******/ // Execute the module function + /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + /******/ + /******/ // Flag the module as loaded + /******/ module.l = true; + /******/ + /******/ // Return the exports of the module + /******/ return module.exports; + /******/ } + /******/ + /******/ + /******/ // expose the modules object (__webpack_modules__) + /******/ __webpack_require__.m = modules; + /******/ + /******/ // expose the module cache + /******/ __webpack_require__.c = installedModules; + /******/ + /******/ // define getter function for harmony exports + /******/ __webpack_require__.d = function(exports, name, getter) { + /******/ if(!__webpack_require__.o(exports, name)) { + /******/ Object.defineProperty(exports, name, { + /******/ configurable: false, + /******/ enumerable: true, + /******/ get: getter + /******/ }); + /******/ } + /******/ }; + /******/ + /******/ // getDefaultExport function for compatibility with non-harmony modules + /******/ __webpack_require__.n = function(module) { + /******/ var getter = module && module.__esModule ? + /******/ function getDefault() { return module['default']; } : + /******/ function getModuleExports() { return module; }; + /******/ __webpack_require__.d(getter, 'a', getter); + /******/ return getter; + /******/ }; + /******/ + /******/ // Object.prototype.hasOwnProperty.call + /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; + /******/ + /******/ // __webpack_public_path__ + /******/ __webpack_require__.p = ""; + /******/ + /******/ // Load entry module and return exports + /******/ return __webpack_require__(__webpack_require__.s = 526); + /******/ }) + /************************************************************************/ + /******/ ([ + /* 0 */ + /***/ (function(module, exports) { - _this.onMouseDown = function (event) { - if (_this.keyboardSensor.isCapturing() || _this.mouseSensor.isCapturing()) { - return; - } + module.exports = __WEBPACK_EXTERNAL_MODULE_0__; - _this.mouseSensor.onMouseDown(event); - }; + /***/ }), + /* 1 */ + /***/ (function(module, exports) { - _this.onTouchStart = function (event) { - if (_this.mouseSensor.isCapturing() || _this.keyboardSensor.isCapturing()) { - return; - } + module.exports = __WEBPACK_EXTERNAL_MODULE_1__; - _this.touchSensor.onTouchStart(event); - }; + /***/ }), + /* 2 */ + /***/ (function(module, exports, __webpack_require__) { - _this.canStartCapturing = function (event) { - if (_this.isAnySensorCapturing()) { - return false; - } + var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! + Copyright (c) 2017 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames + */ + /* global define */ - if (!_this.canLift(_this.props.draggableId)) { - return false; - } + (function () { + 'use strict'; - return shouldAllowDraggingFromTarget(event, _this.props); - }; + var hasOwn = {}.hasOwnProperty; - _this.isAnySensorCapturing = function () { - return _this.sensors.some(function (sensor) { - return sensor.isCapturing(); - }); - }; + function classNames () { + var classes = []; - _this.getProvided = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (isEnabled) { - if (!isEnabled) { - return null; - } + for (var i = 0; i < arguments.length; i++) { + var arg = arguments[i]; + if (!arg) continue; - var provided = { - onMouseDown: _this.onMouseDown, - onKeyDown: _this.onKeyDown, - onTouchStart: _this.onTouchStart, - onFocus: _this.onFocus, - onBlur: _this.onBlur, - tabIndex: 0, - 'data-react-beautiful-dnd-drag-handle': _this.styleContext, - 'aria-roledescription': 'Draggable item. Press space bar to lift', - draggable: false, - onDragStart: preventHtml5Dnd - }; - return provided; - }); + var argType = typeof arg; - var getWindow = function getWindow() { - return getWindowFromRef(_this.props.getDraggableRef()); - }; + if (argType === 'string' || argType === 'number') { + classes.push(arg); + } else if (Array.isArray(arg) && arg.length) { + var inner = classNames.apply(null, arg); + if (inner) { + classes.push(inner); + } + } else if (argType === 'object') { + for (var key in arg) { + if (hasOwn.call(arg, key) && arg[key]) { + classes.push(key); + } + } + } + } - var args = { - callbacks: _this.props.callbacks, - getDraggableRef: _this.props.getDraggableRef, - getWindow: getWindow, - canStartCapturing: _this.canStartCapturing - }; - _this.mouseSensor = createMouseSensor(args); - _this.keyboardSensor = createKeyboardSensor(args); - _this.touchSensor = createTouchSensor(args); - _this.sensors = [_this.mouseSensor, _this.keyboardSensor, _this.touchSensor]; - _this.styleContext = context[styleContextKey]; - _this.canLift = context[canLiftContextKey]; - return _this; - } + return classes.join(' '); + } - var _proto = DragHandle.prototype; + if (typeof module !== 'undefined' && module.exports) { + classNames.default = classNames; + module.exports = classNames; + } else if (true) { + // register as 'classnames', consistent with npm package name + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () { + return classNames; + }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), + __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + } else { + window.classNames = classNames; + } + }()); - _proto.componentDidMount = function componentDidMount() { - var draggableRef = this.props.getDraggableRef(); - this.lastDraggableRef = draggableRef; - !draggableRef ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot get draggable ref from drag handle') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - if (!this.props.isEnabled) { - return; - } + /***/ }), + /* 3 */ + /***/ (function(module, exports) { - var dragHandleRef = getDragHandleRef(draggableRef); - retainer.tryRestoreFocus(this.props.draggableId, dragHandleRef); - }; + module.exports = __WEBPACK_EXTERNAL_MODULE_3__; - _proto.componentDidUpdate = function componentDidUpdate(prevProps) { - var _this2 = this; + /***/ }), + /* 4 */ + /***/ (function(module, exports, __webpack_require__) { - var ref = this.props.getDraggableRef(); + /* WEBPACK VAR INJECTION */(function(module) {var require;//! moment.js + //! version : 2.25.3 + //! authors : Tim Wood, Iskren Chernev, Moment.js contributors + //! license : MIT + //! momentjs.com - if (ref !== this.lastDraggableRef) { - this.lastDraggableRef = ref; + ;(function (global, factory) { + true ? module.exports = factory() : + typeof define === 'function' && define.amd ? define(factory) : + global.moment = factory() + }(this, (function () { 'use strict'; - if (!ref || !this.isFocused) { - return; - } + var hookCallback; - if (!this.props.isEnabled) { - return; - } + function hooks() { + return hookCallback.apply(null, arguments); + } - getDragHandleRef(ref).focus(); + // This is done to register the method called with moment() + // without creating circular dependencies. + function setHookCallback(callback) { + hookCallback = callback; } - var isCapturing = this.isAnySensorCapturing(); + function isArray(input) { + return ( + input instanceof Array || + Object.prototype.toString.call(input) === '[object Array]' + ); + } - if (!isCapturing) { - return; + function isObject(input) { + // IE8 will treat undefined and null as object if it wasn't for + // input != null + return ( + input != null && + Object.prototype.toString.call(input) === '[object Object]' + ); } - var isDragStopping = prevProps.isDragging && !this.props.isDragging; + function hasOwnProp(a, b) { + return Object.prototype.hasOwnProperty.call(a, b); + } - if (isDragStopping) { - this.sensors.forEach(function (sensor) { - if (sensor.isCapturing()) { - sensor.kill(); + function isObjectEmpty(obj) { + if (Object.getOwnPropertyNames) { + return Object.getOwnPropertyNames(obj).length === 0; + } else { + var k; + for (k in obj) { + if (hasOwnProp(obj, k)) { + return false; + } + } + return true; } - }); } - if (this.props.isEnabled) { - return; + function isUndefined(input) { + return input === void 0; } - this.sensors.forEach(function (sensor) { - if (!sensor.isCapturing()) { - return; - } + function isNumber(input) { + return ( + typeof input === 'number' || + Object.prototype.toString.call(input) === '[object Number]' + ); + } - var wasDragging = sensor.isDragging(); - sensor.kill(); + function isDate(input) { + return ( + input instanceof Date || + Object.prototype.toString.call(input) === '[object Date]' + ); + } - if (wasDragging) { - if (process.env.NODE_ENV !== 'production') { - console.warn('You have disabled dragging on a Draggable while it was dragging. The drag has been cancelled'); + function map(arr, fn) { + var res = [], + i; + for (i = 0; i < arr.length; ++i) { + res.push(fn(arr[i], i)); } + return res; + } - _this2.props.callbacks.onCancel(); - } - }); - }; - - _proto.componentWillUnmount = function componentWillUnmount() { - var _this3 = this; - - this.sensors.forEach(function (sensor) { - var wasDragging = sensor.isDragging(); - sensor.unmount(); - - if (wasDragging) { - _this3.props.callbacks.onCancel(); - } - }); + function extend(a, b) { + for (var i in b) { + if (hasOwnProp(b, i)) { + a[i] = b[i]; + } + } - var shouldRetainFocus = function () { - if (!_this3.props.isEnabled) { - return false; - } + if (hasOwnProp(b, 'toString')) { + a.toString = b.toString; + } - if (!_this3.isFocused) { - return false; - } + if (hasOwnProp(b, 'valueOf')) { + a.valueOf = b.valueOf; + } - return _this3.props.isDragging || _this3.props.isDropAnimating; - }(); + return a; + } - if (shouldRetainFocus) { - retainer.retain(this.props.draggableId); + function createUTC(input, format, locale, strict) { + return createLocalOrUTC(input, format, locale, strict, true).utc(); } - }; - _proto.render = function render() { - var _this$props = this.props, - children = _this$props.children, - isEnabled = _this$props.isEnabled; - return children(this.getProvided(isEnabled)); - }; + function defaultParsingFlags() { + // We need to deep clone this object. + return { + empty: false, + unusedTokens: [], + unusedInput: [], + overflow: -2, + charsLeftOver: 0, + nullInput: false, + invalidEra: null, + invalidMonth: null, + invalidFormat: false, + userInvalidated: false, + iso: false, + parsedDateParts: [], + era: null, + meridiem: null, + rfc2822: false, + weekdayMismatch: false, + }; + } - return DragHandle; - }(__WEBPACK_IMPORTED_MODULE_9_react__["Component"]); + function getParsingFlags(m) { + if (m._pf == null) { + m._pf = defaultParsingFlags(); + } + return m._pf; + } - DragHandle.contextTypes = (_DragHandle$contextTy = {}, _DragHandle$contextTy[styleContextKey] = __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.string.isRequired, _DragHandle$contextTy[canLiftContextKey] = __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.func.isRequired, _DragHandle$contextTy); + var some; + if (Array.prototype.some) { + some = Array.prototype.some; + } else { + some = function (fun) { + var t = Object(this), + len = t.length >>> 0, + i; - var getWindowScroll = (function () { - return { - x: window.pageXOffset, - y: window.pageYOffset - }; - }); + for (i = 0; i < len; i++) { + if (i in t && fun.call(this, t[i], i, t)) { + return true; + } + } - var getViewport = (function () { - var scroll = getWindowScroll(); - var top = scroll.y; - var left = scroll.x; - var doc = document.documentElement; - !doc ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Could not find document.documentElement') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - var width = doc.clientWidth; - var height = doc.clientHeight; - var right = left + width; - var bottom = top + height; - var frame = Object(__WEBPACK_IMPORTED_MODULE_2_css_box_model__["d" /* getRect */])({ - top: top, - left: left, - right: right, - bottom: bottom - }); - var maxScroll = getMaxScroll({ - scrollHeight: doc.scrollHeight, - scrollWidth: doc.scrollWidth, - width: frame.width, - height: frame.height - }); - var viewport = { - frame: frame, - scroll: { - initial: scroll, - current: scroll, - max: maxScroll, - diff: { - value: origin, - displacement: origin - } + return false; + }; } - }; - return viewport; - }); - var _Draggable$contextTyp; - var zIndexOptions = { - dragging: 5000, - dropAnimating: 4500 - }; + function isValid(m) { + if (m._isValid == null) { + var flags = getParsingFlags(m), + parsedParts = some.call(flags.parsedDateParts, function (i) { + return i != null; + }), + isNowValid = + !isNaN(m._d.getTime()) && + flags.overflow < 0 && + !flags.empty && + !flags.invalidEra && + !flags.invalidMonth && + !flags.invalidWeekday && + !flags.weekdayMismatch && + !flags.nullInput && + !flags.invalidFormat && + !flags.userInvalidated && + (!flags.meridiem || (flags.meridiem && parsedParts)); - var getTranslate = function getTranslate(offset) { - if (isEqual(offset, origin)) { - return null; - } + if (m._strict) { + isNowValid = + isNowValid && + flags.charsLeftOver === 0 && + flags.unusedTokens.length === 0 && + flags.bigHour === undefined; + } - return "translate(" + offset.x + "px, " + offset.y + "px)"; - }; + if (Object.isFrozen == null || !Object.isFrozen(m)) { + m._isValid = isNowValid; + } else { + return isNowValid; + } + } + return m._isValid; + } - var getSpeed$1 = function getSpeed(isDragging, shouldAnimateDragMovement, isDropAnimating) { - if (isDropAnimating) { - return 'STANDARD'; - } + function createInvalid(flags) { + var m = createUTC(NaN); + if (flags != null) { + extend(getParsingFlags(m), flags); + } else { + getParsingFlags(m).userInvalidated = true; + } - if (isDragging && shouldAnimateDragMovement) { - return 'FAST'; - } + return m; + } - return 'INSTANT'; - }; + // Plugins that add properties should also add the key here (null value), + // so we can properly clone ourselves. + var momentProperties = (hooks.momentProperties = []), + updateInProgress = false; - var Draggable = function (_Component) { - Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_corejs2_helpers_esm_inheritsLoose__["a" /* default */])(Draggable, _Component); + function copyConfig(to, from) { + var i, prop, val; - function Draggable(props, context) { - var _this; + if (!isUndefined(from._isAMomentObject)) { + to._isAMomentObject = from._isAMomentObject; + } + if (!isUndefined(from._i)) { + to._i = from._i; + } + if (!isUndefined(from._f)) { + to._f = from._f; + } + if (!isUndefined(from._l)) { + to._l = from._l; + } + if (!isUndefined(from._strict)) { + to._strict = from._strict; + } + if (!isUndefined(from._tzm)) { + to._tzm = from._tzm; + } + if (!isUndefined(from._isUTC)) { + to._isUTC = from._isUTC; + } + if (!isUndefined(from._offset)) { + to._offset = from._offset; + } + if (!isUndefined(from._pf)) { + to._pf = getParsingFlags(from); + } + if (!isUndefined(from._locale)) { + to._locale = from._locale; + } - _this = _Component.call(this, props, context) || this; - _this.callbacks = void 0; - _this.styleContext = void 0; - _this.ref = null; + if (momentProperties.length > 0) { + for (i = 0; i < momentProperties.length; i++) { + prop = momentProperties[i]; + val = from[prop]; + if (!isUndefined(val)) { + to[prop] = val; + } + } + } - _this.onMoveEnd = function () { - if (_this.props.isDropAnimating) { - _this.props.dropAnimationFinished(); - } - }; + return to; + } - _this.onLift = function (options) { - start('LIFT'); - var ref = _this.ref; - !ref ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - !!_this.props.isDragDisabled ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot lift a Draggable when it is disabled') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - var clientSelection = options.clientSelection, - autoScrollMode = options.autoScrollMode; - var _this$props = _this.props, - lift = _this$props.lift, - draggableId = _this$props.draggableId; - var client = { - selection: clientSelection, - borderBoxCenter: getBorderBoxCenterPosition(ref), - offset: origin - }; - lift({ - id: draggableId, - client: client, - autoScrollMode: autoScrollMode, - viewport: getViewport() - }); - finish('LIFT'); - }; + // Moment prototype object + function Moment(config) { + copyConfig(this, config); + this._d = new Date(config._d != null ? config._d.getTime() : NaN); + if (!this.isValid()) { + this._d = new Date(NaN); + } + // Prevent infinite loop in case updateOffset creates new moment + // objects. + if (updateInProgress === false) { + updateInProgress = true; + hooks.updateOffset(this); + updateInProgress = false; + } + } - _this.setRef = function (ref) { - if (ref === null) { - return; - } + function isMoment(obj) { + return ( + obj instanceof Moment || (obj != null && obj._isAMomentObject != null) + ); + } - if (ref === _this.ref) { - return; - } + function warn(msg) { + if ( + hooks.suppressDeprecationWarnings === false && + typeof console !== 'undefined' && + console.warn + ) { + console.warn('Deprecation warning: ' + msg); + } + } - _this.ref = ref; - throwIfRefIsInvalid(ref); - }; + function deprecate(msg, fn) { + var firstTime = true; - _this.getDraggableRef = function () { - return _this.ref; - }; + return extend(function () { + if (hooks.deprecationHandler != null) { + hooks.deprecationHandler(null, msg); + } + if (firstTime) { + var args = [], + arg, + i, + key; + for (i = 0; i < arguments.length; i++) { + arg = ''; + if (typeof arguments[i] === 'object') { + arg += '\n[' + i + '] '; + for (key in arguments[0]) { + if (hasOwnProp(arguments[0], key)) { + arg += key + ': ' + arguments[0][key] + ', '; + } + } + arg = arg.slice(0, -2); // Remove trailing comma and space + } else { + arg = arguments[i]; + } + args.push(arg); + } + warn( + msg + + '\nArguments: ' + + Array.prototype.slice.call(args).join('') + + '\n' + + new Error().stack + ); + firstTime = false; + } + return fn.apply(this, arguments); + }, fn); + } - _this.getDraggingStyle = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (change, dimension, isDropAnimating) { - var box = dimension.client; - var style = { - position: 'fixed', - top: box.marginBox.top, - left: box.marginBox.left, - boxSizing: 'border-box', - width: box.borderBox.width, - height: box.borderBox.height, - transition: 'none', - zIndex: isDropAnimating ? zIndexOptions.dropAnimating : zIndexOptions.dragging, - transform: getTranslate(change), - pointerEvents: 'none' - }; - return style; - }); - _this.getNotDraggingStyle = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (current, shouldAnimateDisplacement) { - var style = { - transform: getTranslate(current), - transition: shouldAnimateDisplacement ? null : 'none' - }; - return style; - }); - _this.getProvided = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (change, isDragging, isDropAnimating, shouldAnimateDisplacement, dimension, dragHandleProps) { - var useDraggingStyle = isDragging || isDropAnimating; + var deprecations = {}; - var draggableStyle = function () { - if (!useDraggingStyle) { - return _this.getNotDraggingStyle(change, shouldAnimateDisplacement); + function deprecateSimple(name, msg) { + if (hooks.deprecationHandler != null) { + hooks.deprecationHandler(name, msg); } + if (!deprecations[name]) { + warn(msg); + deprecations[name] = true; + } + } - !dimension ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'draggable dimension required for dragging') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - return _this.getDraggingStyle(change, dimension, isDropAnimating); - }(); - - var provided = { - innerRef: _this.setRef, - draggableProps: { - 'data-react-beautiful-dnd-draggable': _this.styleContext, - style: draggableStyle - }, - dragHandleProps: dragHandleProps - }; - return provided; - }); - _this.getSnapshot = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (isDragging, isDropAnimating, draggingOver) { - return { - isDragging: isDragging || isDropAnimating, - isDropAnimating: isDropAnimating, - draggingOver: draggingOver - }; - }); + hooks.suppressDeprecationWarnings = false; + hooks.deprecationHandler = null; - _this.renderChildren = function (change, dragHandleProps) { - var _this$props2 = _this.props, - isDragging = _this$props2.isDragging, - isDropAnimating = _this$props2.isDropAnimating, - dimension = _this$props2.dimension, - draggingOver = _this$props2.draggingOver, - shouldAnimateDisplacement = _this$props2.shouldAnimateDisplacement, - children = _this$props2.children; - var child = children(_this.getProvided(change, isDragging, isDropAnimating, shouldAnimateDisplacement, dimension, dragHandleProps), _this.getSnapshot(isDragging, isDropAnimating, draggingOver)); - var isDraggingOrDropping = isDragging || isDropAnimating; + function isFunction(input) { + return ( + (typeof Function !== 'undefined' && input instanceof Function) || + Object.prototype.toString.call(input) === '[object Function]' + ); + } - var placeholder = function () { - if (!isDraggingOrDropping) { - return null; + function set(config) { + var prop, i; + for (i in config) { + if (hasOwnProp(config, i)) { + prop = config[i]; + if (isFunction(prop)) { + this[i] = prop; + } else { + this['_' + i] = prop; + } + } } + this._config = config; + // Lenient ordinal parsing accepts just a number in addition to + // number + (possibly) stuff coming from _dayOfMonthOrdinalParse. + // TODO: Remove "ordinalParse" fallback in next major release. + this._dayOfMonthOrdinalParseLenient = new RegExp( + (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + + '|' + + /\d{1,2}/.source + ); + } - !dimension ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Draggable: Dimension is required for dragging') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - return __WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement(Placeholder, { - placeholder: dimension.placeholder - }); - }(); - - return __WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9_react__["Fragment"], null, child, placeholder); - }; - - var callbacks = { - onLift: _this.onLift, - onMove: function onMove(clientSelection) { - return props.move({ - client: clientSelection, - shouldAnimate: false - }); - }, - onDrop: function onDrop() { - return props.drop({ - reason: 'DROP' - }); - }, - onCancel: function onCancel() { - return props.drop({ - reason: 'CANCEL' - }); - }, - onMoveUp: props.moveUp, - onMoveDown: props.moveDown, - onMoveRight: props.moveRight, - onMoveLeft: props.moveLeft, - onWindowScroll: function onWindowScroll() { - return props.moveByWindowScroll({ - scroll: getWindowScroll() - }); - } - }; - _this.callbacks = callbacks; - _this.styleContext = context[styleContextKey]; - return _this; - } + function mergeConfigs(parentConfig, childConfig) { + var res = extend({}, parentConfig), + prop; + for (prop in childConfig) { + if (hasOwnProp(childConfig, prop)) { + if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) { + res[prop] = {}; + extend(res[prop], parentConfig[prop]); + extend(res[prop], childConfig[prop]); + } else if (childConfig[prop] != null) { + res[prop] = childConfig[prop]; + } else { + delete res[prop]; + } + } + } + for (prop in parentConfig) { + if ( + hasOwnProp(parentConfig, prop) && + !hasOwnProp(childConfig, prop) && + isObject(parentConfig[prop]) + ) { + // make sure changes to properties don't modify parent config + res[prop] = extend({}, res[prop]); + } + } + return res; + } - var _proto = Draggable.prototype; + function Locale(config) { + if (config != null) { + this.set(config); + } + } - _proto.componentWillUnmount = function componentWillUnmount() { - this.ref = null; - }; + var keys; - _proto.render = function render() { - var _this2 = this; + if (Object.keys) { + keys = Object.keys; + } else { + keys = function (obj) { + var i, + res = []; + for (i in obj) { + if (hasOwnProp(obj, i)) { + res.push(i); + } + } + return res; + }; + } - var _this$props3 = this.props, - draggableId = _this$props3.draggableId, - index = _this$props3.index, - offset = _this$props3.offset, - isDragging = _this$props3.isDragging, - isDropAnimating = _this$props3.isDropAnimating, - isDragDisabled = _this$props3.isDragDisabled, - shouldAnimateDragMovement = _this$props3.shouldAnimateDragMovement, - disableInteractiveElementBlocking = _this$props3.disableInteractiveElementBlocking; - var droppableId = this.context[droppableIdKey]; - var type = this.context[droppableTypeKey]; - var speed = getSpeed$1(isDragging, shouldAnimateDragMovement, isDropAnimating); - return __WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement(DraggableDimensionPublisher, { - key: draggableId, - draggableId: draggableId, - droppableId: droppableId, - type: type, - index: index, - getDraggableRef: this.getDraggableRef - }, __WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement(Moveable, { - speed: speed, - destination: offset, - onMoveEnd: this.onMoveEnd - }, function (change) { - return __WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement(DragHandle, { - draggableId: draggableId, - isDragging: isDragging, - isDropAnimating: isDropAnimating, - isEnabled: !isDragDisabled, - callbacks: _this2.callbacks, - getDraggableRef: _this2.getDraggableRef, - canDragInteractiveElements: disableInteractiveElementBlocking - }, function (dragHandleProps) { - return _this2.renderChildren(change, dragHandleProps); - }); - })); - }; + var defaultCalendar = { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L', + }; - return Draggable; - }(__WEBPACK_IMPORTED_MODULE_9_react__["Component"]); + function calendar(key, mom, now) { + var output = this._calendar[key] || this._calendar['sameElse']; + return isFunction(output) ? output.call(mom, now) : output; + } - Draggable.contextTypes = (_Draggable$contextTyp = {}, _Draggable$contextTyp[droppableIdKey] = __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.string.isRequired, _Draggable$contextTyp[droppableTypeKey] = __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.string.isRequired, _Draggable$contextTyp[styleContextKey] = __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.string.isRequired, _Draggable$contextTyp); + function zeroFill(number, targetLength, forceSign) { + var absNumber = '' + Math.abs(number), + zerosToFill = targetLength - absNumber.length, + sign = number >= 0; + return ( + (sign ? (forceSign ? '+' : '') : '-') + + Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + + absNumber + ); + } - var defaultMapProps = { - isDropAnimating: false, - isDragging: false, - offset: origin, - shouldAnimateDragMovement: false, - shouldAnimateDisplacement: true, - dimension: null, - draggingOver: null - }; - var makeMapStateToProps$1 = function makeMapStateToProps() { - var memoizedOffset = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (x, y) { - return { - x: x, - y: y - }; - }); - var getNotDraggingProps = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (offset, shouldAnimateDisplacement) { - return { - isDropAnimating: false, - isDragging: false, - offset: offset, - shouldAnimateDisplacement: shouldAnimateDisplacement, - shouldAnimateDragMovement: false, - dimension: null, - draggingOver: null - }; - }); - var getDraggingProps = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (offset, shouldAnimateDragMovement, dimension, draggingOver) { - return { - isDragging: true, - isDropAnimating: false, - shouldAnimateDisplacement: false, - offset: offset, - shouldAnimateDragMovement: shouldAnimateDragMovement, - dimension: dimension, - draggingOver: draggingOver - }; - }); + var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, + localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, + formatFunctions = {}, + formatTokenFunctions = {}; - var getOutOfTheWayMovement = function getOutOfTheWayMovement(id, movement) { - var map = getDisplacementMap(movement.displaced); - var displacement = map[id]; + // token: 'M' + // padded: ['MM', 2] + // ordinal: 'Mo' + // callback: function () { this.month() + 1 } + function addFormatToken(token, padded, ordinal, callback) { + var func = callback; + if (typeof callback === 'string') { + func = function () { + return this[callback](); + }; + } + if (token) { + formatTokenFunctions[token] = func; + } + if (padded) { + formatTokenFunctions[padded[0]] = function () { + return zeroFill(func.apply(this, arguments), padded[1], padded[2]); + }; + } + if (ordinal) { + formatTokenFunctions[ordinal] = function () { + return this.localeData().ordinal( + func.apply(this, arguments), + token + ); + }; + } + } - if (!displacement) { - return null; + function removeFormattingTokens(input) { + if (input.match(/\[[\s\S]/)) { + return input.replace(/^\[|\]$/g, ''); + } + return input.replace(/\\/g, ''); } - if (!displacement.isVisible) { - return null; + function makeFormatFunction(format) { + var array = format.match(formattingTokens), + i, + length; + + for (i = 0, length = array.length; i < length; i++) { + if (formatTokenFunctions[array[i]]) { + array[i] = formatTokenFunctions[array[i]]; + } else { + array[i] = removeFormattingTokens(array[i]); + } + } + + return function (mom) { + var output = '', + i; + for (i = 0; i < length; i++) { + output += isFunction(array[i]) + ? array[i].call(mom, format) + : array[i]; + } + return output; + }; } - var amount = movement.isBeyondStartPosition ? negate(movement.amount) : movement.amount; - return getNotDraggingProps(memoizedOffset(amount.x, amount.y), displacement.shouldAnimate); - }; + // format date using native date object + function formatMoment(m, format) { + if (!m.isValid()) { + return m.localeData().invalidDate(); + } - var draggingSelector = function draggingSelector(state, ownProps) { - if (state.isDragging) { - if (state.critical.draggable.id !== ownProps.draggableId) { - return null; - } + format = expandFormat(format, m.localeData()); + formatFunctions[format] = + formatFunctions[format] || makeFormatFunction(format); - var offset = state.current.client.offset; - var dimension = state.dimensions.draggables[ownProps.draggableId]; - var shouldAnimateDragMovement = state.shouldAnimate; - var draggingOver = state.impact.destination ? state.impact.destination.droppableId : null; - return getDraggingProps(memoizedOffset(offset.x, offset.y), shouldAnimateDragMovement, dimension, draggingOver); + return formatFunctions[format](m); } - if (state.phase === 'DROP_ANIMATING') { - var pending = state.pending; + function expandFormat(format, locale) { + var i = 5; - if (pending.result.draggableId !== ownProps.draggableId) { - return null; - } + function replaceLongDateFormatTokens(input) { + return locale.longDateFormat(input) || input; + } - var _draggingOver = pending.result.destination ? pending.result.destination.droppableId : null; + localFormattingTokens.lastIndex = 0; + while (i >= 0 && localFormattingTokens.test(format)) { + format = format.replace( + localFormattingTokens, + replaceLongDateFormatTokens + ); + localFormattingTokens.lastIndex = 0; + i -= 1; + } - return { - isDragging: false, - isDropAnimating: true, - offset: pending.newHomeOffset, - dimension: state.dimensions.draggables[ownProps.draggableId], - draggingOver: _draggingOver, - shouldAnimateDragMovement: false, - shouldAnimateDisplacement: false - }; + return format; } - return null; - }; + var defaultLongDateFormat = { + LTS: 'h:mm:ss A', + LT: 'h:mm A', + L: 'MM/DD/YYYY', + LL: 'MMMM D, YYYY', + LLL: 'MMMM D, YYYY h:mm A', + LLLL: 'dddd, MMMM D, YYYY h:mm A', + }; - var movingOutOfTheWaySelector = function movingOutOfTheWaySelector(state, ownProps) { - if (state.isDragging) { - if (state.critical.draggable.id === ownProps.draggableId) { - return null; - } + function longDateFormat(key) { + var format = this._longDateFormat[key], + formatUpper = this._longDateFormat[key.toUpperCase()]; - return getOutOfTheWayMovement(ownProps.draggableId, state.impact.movement); - } + if (format || !formatUpper) { + return format; + } - if (state.phase === 'DROP_ANIMATING') { - if (state.pending.result.draggableId === ownProps.draggableId) { - return null; - } + this._longDateFormat[key] = formatUpper + .match(formattingTokens) + .map(function (tok) { + if ( + tok === 'MMMM' || + tok === 'MM' || + tok === 'DD' || + tok === 'dddd' + ) { + return tok.slice(1); + } + return tok; + }) + .join(''); - return getOutOfTheWayMovement(ownProps.draggableId, state.pending.impact.movement); + return this._longDateFormat[key]; } - return null; - }; - - var selector = function selector(state, ownProps) { - var dragging = draggingSelector(state, ownProps); + var defaultInvalidDate = 'Invalid date'; - if (dragging) { - return dragging; + function invalidDate() { + return this._invalidDate; } - var movingOutOfTheWay = movingOutOfTheWaySelector(state, ownProps); + var defaultOrdinal = '%d', + defaultDayOfMonthOrdinalParse = /\d{1,2}/; - if (movingOutOfTheWay) { - return movingOutOfTheWay; + function ordinal(number) { + return this._ordinal.replace('%d', number); } - return defaultMapProps; - }; + var defaultRelativeTime = { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + ss: '%d seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + w: 'a week', + ww: '%d weeks', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years', + }; - return selector; - }; - var mapDispatchToProps = { - lift: lift, - move: move, - moveUp: moveUp, - moveDown: moveDown, - moveLeft: moveLeft, - moveRight: moveRight, - moveByWindowScroll: moveByWindowScroll, - drop: drop, - dropAnimationFinished: dropAnimationFinished - }; - var ConnectedDraggable = Object(__WEBPACK_IMPORTED_MODULE_11_react_redux__["a" /* connect */])(makeMapStateToProps$1, mapDispatchToProps, null, { - storeKey: storeKey, - pure: true, - areStatePropsEqual: isStrictEqual - })(Draggable); - ConnectedDraggable.defaultProps = { - isDragDisabled: false, - disableInteractiveElementBlocking: false - }; + function relativeTime(number, withoutSuffix, string, isFuture) { + var output = this._relativeTime[string]; + return isFunction(output) + ? output(number, withoutSuffix, string, isFuture) + : output.replace(/%d/i, number); + } + function pastFuture(diff, output) { + var format = this._relativeTime[diff > 0 ? 'future' : 'past']; + return isFunction(format) ? format(output) : format.replace(/%s/i, output); + } + var aliases = {}; - /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(5))) + function addUnitAlias(unit, shorthand) { + var lowerCase = unit.toLowerCase(); + aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit; + } - /***/ }), - /* 29 */ - /***/ (function(module, exports, __webpack_require__) { + function normalizeUnits(units) { + return typeof units === 'string' + ? aliases[units] || aliases[units.toLowerCase()] + : undefined; + } - var store = __webpack_require__(126)('wks'); - var uid = __webpack_require__(88); - var Symbol = __webpack_require__(39).Symbol; - var USE_SYMBOL = typeof Symbol == 'function'; + function normalizeObjectUnits(inputObject) { + var normalizedInput = {}, + normalizedProp, + prop; - var $exports = module.exports = function (name) { - return store[name] || (store[name] = - USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); - }; + for (prop in inputObject) { + if (hasOwnProp(inputObject, prop)) { + normalizedProp = normalizeUnits(prop); + if (normalizedProp) { + normalizedInput[normalizedProp] = inputObject[prop]; + } + } + } - $exports.store = store; + return normalizedInput; + } + var priorities = {}; - /***/ }), - /* 30 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + function addUnitPriority(unit, priority) { + priorities[unit] = priority; + } - "use strict"; - Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(8); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); + function getPrioritizedUnits(unitsObj) { + var units = [], + u; + for (u in unitsObj) { + if (hasOwnProp(unitsObj, u)) { + units.push({ unit: u, priority: priorities[u] }); + } + } + units.sort(function (a, b) { + return a.priority - b.priority; + }); + return units; + } - function omit(obj, fields) { - var shallowCopy = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, obj); - for (var i = 0; i < fields.length; i++) { - var key = fields[i]; - delete shallowCopy[key]; - } - return shallowCopy; - } + function isLeapYear(year) { + return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0; + } - /* harmony default export */ __webpack_exports__["default"] = (omit); + function absFloor(number) { + if (number < 0) { + // -0 -> 0 + return Math.ceil(number) || 0; + } else { + return Math.floor(number); + } + } - /***/ }), - /* 31 */ - /***/ (function(module, exports, __webpack_require__) { + function toInt(argumentForCoercion) { + var coercedNumber = +argumentForCoercion, + value = 0; - "use strict"; + if (coercedNumber !== 0 && isFinite(coercedNumber)) { + value = absFloor(coercedNumber); + } + return value; + } - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = style; + function makeGetSet(unit, keepTime) { + return function (value) { + if (value != null) { + set$1(this, unit, value); + hooks.updateOffset(this, keepTime); + return this; + } else { + return get(this, unit); + } + }; + } - var _camelizeStyle = __webpack_require__(275); + function get(mom, unit) { + return mom.isValid() + ? mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]() + : NaN; + } - var _camelizeStyle2 = _interopRequireDefault(_camelizeStyle); + function set$1(mom, unit, value) { + if (mom.isValid() && !isNaN(value)) { + if ( + unit === 'FullYear' && + isLeapYear(mom.year()) && + mom.month() === 1 && + mom.date() === 29 + ) { + value = toInt(value); + mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit]( + value, + mom.month(), + daysInMonth(value, mom.month()) + ); + } else { + mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value); + } + } + } - var _hyphenateStyle = __webpack_require__(880); + // MOMENTS - var _hyphenateStyle2 = _interopRequireDefault(_hyphenateStyle); + function stringGet(units) { + units = normalizeUnits(units); + if (isFunction(this[units])) { + return this[units](); + } + return this; + } - var _getComputedStyle2 = __webpack_require__(882); + function stringSet(units, value) { + if (typeof units === 'object') { + units = normalizeObjectUnits(units); + var prioritized = getPrioritizedUnits(units), + i; + for (i = 0; i < prioritized.length; i++) { + this[prioritized[i].unit](units[prioritized[i].unit]); + } + } else { + units = normalizeUnits(units); + if (isFunction(this[units])) { + return this[units](value); + } + } + return this; + } - var _getComputedStyle3 = _interopRequireDefault(_getComputedStyle2); + var match1 = /\d/, // 0 - 9 + match2 = /\d\d/, // 00 - 99 + match3 = /\d{3}/, // 000 - 999 + match4 = /\d{4}/, // 0000 - 9999 + match6 = /[+-]?\d{6}/, // -999999 - 999999 + match1to2 = /\d\d?/, // 0 - 99 + match3to4 = /\d\d\d\d?/, // 999 - 9999 + match5to6 = /\d\d\d\d\d\d?/, // 99999 - 999999 + match1to3 = /\d{1,3}/, // 0 - 999 + match1to4 = /\d{1,4}/, // 0 - 9999 + match1to6 = /[+-]?\d{1,6}/, // -999999 - 999999 + matchUnsigned = /\d+/, // 0 - inf + matchSigned = /[+-]?\d+/, // -inf - inf + matchOffset = /Z|[+-]\d\d:?\d\d/gi, // +00:00 -00:00 +0000 -0000 or Z + matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi, // +00 -00 +00:00 -00:00 +0000 -0000 or Z + matchTimestamp = /[+-]?\d+(\.\d{1,3})?/, // 123456789 123456789.123 + // any word (or two) characters or numbers including two/three word month in arabic. + // includes scottish gaelic two word and hyphenated months + matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, + regexes; - var _removeStyle = __webpack_require__(883); + regexes = {}; - var _removeStyle2 = _interopRequireDefault(_removeStyle); + function addRegexToken(token, regex, strictRegex) { + regexes[token] = isFunction(regex) + ? regex + : function (isStrict, localeData) { + return isStrict && strictRegex ? strictRegex : regex; + }; + } - var _properties = __webpack_require__(27); + function getParseRegexForToken(token, config) { + if (!hasOwnProp(regexes, token)) { + return new RegExp(unescapeFormat(token)); + } - var _isTransform = __webpack_require__(884); + return regexes[token](config._strict, config._locale); + } - var _isTransform2 = _interopRequireDefault(_isTransform); + // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript + function unescapeFormat(s) { + return regexEscape( + s + .replace('\\', '') + .replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function ( + matched, + p1, + p2, + p3, + p4 + ) { + return p1 || p2 || p3 || p4; + }) + ); + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + function regexEscape(s) { + return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'); + } - function style(node, property, value) { - var css = ''; - var transforms = ''; - var props = property; + var tokens = {}; - if (typeof property === 'string') { - if (value === undefined) { - return node.style[(0, _camelizeStyle2.default)(property)] || (0, _getComputedStyle3.default)(node).getPropertyValue((0, _hyphenateStyle2.default)(property)); - } else { - (props = {})[property] = value; + function addParseToken(token, callback) { + var i, + func = callback; + if (typeof token === 'string') { + token = [token]; + } + if (isNumber(callback)) { + func = function (input, array) { + array[callback] = toInt(input); + }; + } + for (i = 0; i < token.length; i++) { + tokens[token[i]] = func; + } } - } - Object.keys(props).forEach(function (key) { - var value = props[key]; - if (!value && value !== 0) { - (0, _removeStyle2.default)(node, (0, _hyphenateStyle2.default)(key)); - } else if ((0, _isTransform2.default)(key)) { - transforms += key + '(' + value + ') '; - } else { - css += (0, _hyphenateStyle2.default)(key) + ': ' + value + ';'; + function addWeekParseToken(token, callback) { + addParseToken(token, function (input, array, config, token) { + config._w = config._w || {}; + callback(input, config._w, config, token); + }); } - }); - if (transforms) { - css += _properties.transform + ': ' + transforms + ';'; - } + function addTimeToArrayFromToken(token, input, config) { + if (input != null && hasOwnProp(tokens, token)) { + tokens[token](input, config._a, config, token); + } + } - node.style.cssText += ';' + css; - } - module.exports = exports['default']; + var YEAR = 0, + MONTH = 1, + DATE = 2, + HOUR = 3, + MINUTE = 4, + SECOND = 5, + MILLISECOND = 6, + WEEK = 7, + WEEKDAY = 8; - /***/ }), - /* 32 */ - /***/ (function(module, exports, __webpack_require__) { + function mod(n, x) { + return ((n % x) + x) % x; + } - "use strict"; + var indexOf; + if (Array.prototype.indexOf) { + indexOf = Array.prototype.indexOf; + } else { + indexOf = function (o) { + // I know + var i; + for (i = 0; i < this.length; ++i) { + if (this[i] === o) { + return i; + } + } + return -1; + }; + } - Object.defineProperty(exports, "__esModule", { - value: true - }); + function daysInMonth(year, month) { + if (isNaN(year) || isNaN(month)) { + return NaN; + } + var modMonth = mod(month, 12); + year += (month - modMonth) / 12; + return modMonth === 1 + ? isLeapYear(year) + ? 29 + : 28 + : 31 - ((modMonth % 7) % 2); + } - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + // FORMATTING - exports.getTodayTime = getTodayTime; - exports.getTitleString = getTitleString; - exports.getTodayTimeStr = getTodayTimeStr; - exports.getMonthName = getMonthName; - exports.syncTime = syncTime; - exports.getTimeConfig = getTimeConfig; - exports.isTimeValidByConfig = isTimeValidByConfig; - exports.isTimeValid = isTimeValid; - exports.isAllowedDate = isAllowedDate; - exports.formatDate = formatDate; + addFormatToken('M', ['MM', 2], 'Mo', function () { + return this.month() + 1; + }); - var _moment = __webpack_require__(4); + addFormatToken('MMM', 0, 0, function (format) { + return this.localeData().monthsShort(this, format); + }); - var _moment2 = _interopRequireDefault(_moment); + addFormatToken('MMMM', 0, 0, function (format) { + return this.localeData().months(this, format); + }); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + // ALIASES - var defaultDisabledTime = { - disabledHours: function disabledHours() { - return []; - }, - disabledMinutes: function disabledMinutes() { - return []; - }, - disabledSeconds: function disabledSeconds() { - return []; - } - }; + addUnitAlias('month', 'M'); - function getTodayTime(value) { - var today = (0, _moment2["default"])(); - if (typeof value !== 'undefined') { - today.locale(value.locale()).utcOffset(value.utcOffset()); - } - return today; - } + // PRIORITY - function getTitleString(value) { - return value.format('LL'); - } + addUnitPriority('month', 8); - function getTodayTimeStr(value) { - var today = getTodayTime(value); - return getTitleString(today); - } + // PARSING - function getMonthName(month) { - var locale = month.locale(); - var localeData = month.localeData(); - return localeData[locale === 'zh-cn' ? 'months' : 'monthsShort'](month); - } + addRegexToken('M', match1to2); + addRegexToken('MM', match1to2, match2); + addRegexToken('MMM', function (isStrict, locale) { + return locale.monthsShortRegex(isStrict); + }); + addRegexToken('MMMM', function (isStrict, locale) { + return locale.monthsRegex(isStrict); + }); - function syncTime(from, to) { - if (!_moment2["default"].isMoment(from) || !_moment2["default"].isMoment(to)) return; - to.hour(from.hour()); - to.minute(from.minute()); - to.second(from.second()); - } + addParseToken(['M', 'MM'], function (input, array) { + array[MONTH] = toInt(input) - 1; + }); - function getTimeConfig(value, disabledTime) { - var disabledTimeConfig = disabledTime ? disabledTime(value) : {}; - disabledTimeConfig = _extends({}, defaultDisabledTime, disabledTimeConfig); - return disabledTimeConfig; - } + addParseToken(['MMM', 'MMMM'], function (input, array, config, token) { + var month = config._locale.monthsParse(input, token, config._strict); + // if we didn't find a month name, mark the date as invalid. + if (month != null) { + array[MONTH] = month; + } else { + getParsingFlags(config).invalidMonth = input; + } + }); - function isTimeValidByConfig(value, disabledTimeConfig) { - var invalidTime = false; - if (value) { - var hour = value.hour(); - var minutes = value.minute(); - var seconds = value.second(); - var disabledHours = disabledTimeConfig.disabledHours(); - if (disabledHours.indexOf(hour) === -1) { - var disabledMinutes = disabledTimeConfig.disabledMinutes(hour); - if (disabledMinutes.indexOf(minutes) === -1) { - var disabledSeconds = disabledTimeConfig.disabledSeconds(hour, minutes); - invalidTime = disabledSeconds.indexOf(seconds) !== -1; - } else { - invalidTime = true; - } - } else { - invalidTime = true; - } - } - return !invalidTime; - } + // LOCALES - function isTimeValid(value, disabledTime) { - var disabledTimeConfig = getTimeConfig(value, disabledTime); - return isTimeValidByConfig(value, disabledTimeConfig); - } + var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split( + '_' + ), + MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, + defaultMonthsShortRegex = matchWord, + defaultMonthsRegex = matchWord; - function isAllowedDate(value, disabledDate, disabledTime) { - if (disabledDate) { - if (disabledDate(value)) { - return false; + function localeMonths(m, format) { + if (!m) { + return isArray(this._months) + ? this._months + : this._months['standalone']; + } + return isArray(this._months) + ? this._months[m.month()] + : this._months[ + (this._months.isFormat || MONTHS_IN_FORMAT).test(format) + ? 'format' + : 'standalone' + ][m.month()]; } - } - if (disabledTime) { - if (!isTimeValid(value, disabledTime)) { - return false; + + function localeMonthsShort(m, format) { + if (!m) { + return isArray(this._monthsShort) + ? this._monthsShort + : this._monthsShort['standalone']; + } + return isArray(this._monthsShort) + ? this._monthsShort[m.month()] + : this._monthsShort[ + MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone' + ][m.month()]; } - } - return true; - } - function formatDate(value, format) { - if (!value) { - return ''; - } + function handleStrictParse(monthName, format, strict) { + var i, + ii, + mom, + llc = monthName.toLocaleLowerCase(); + if (!this._monthsParse) { + // this is not used + this._monthsParse = []; + this._longMonthsParse = []; + this._shortMonthsParse = []; + for (i = 0; i < 12; ++i) { + mom = createUTC([2000, i]); + this._shortMonthsParse[i] = this.monthsShort( + mom, + '' + ).toLocaleLowerCase(); + this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase(); + } + } - if (Array.isArray(format)) { - format = format[0]; - } + if (strict) { + if (format === 'MMM') { + ii = indexOf.call(this._shortMonthsParse, llc); + return ii !== -1 ? ii : null; + } else { + ii = indexOf.call(this._longMonthsParse, llc); + return ii !== -1 ? ii : null; + } + } else { + if (format === 'MMM') { + ii = indexOf.call(this._shortMonthsParse, llc); + if (ii !== -1) { + return ii; + } + ii = indexOf.call(this._longMonthsParse, llc); + return ii !== -1 ? ii : null; + } else { + ii = indexOf.call(this._longMonthsParse, llc); + if (ii !== -1) { + return ii; + } + ii = indexOf.call(this._shortMonthsParse, llc); + return ii !== -1 ? ii : null; + } + } + } - return value.format(format); - } + function localeMonthsParse(monthName, format, strict) { + var i, mom, regex; - /***/ }), - /* 33 */ - /***/ (function(module, exports, __webpack_require__) { + if (this._monthsParseExact) { + return handleStrictParse.call(this, monthName, format, strict); + } - "use strict"; + if (!this._monthsParse) { + this._monthsParse = []; + this._longMonthsParse = []; + this._shortMonthsParse = []; + } + + // TODO: add sorting + // Sorting makes sure if one month (or abbr) is a prefix of another + // see sorting in computeMonthsParse + for (i = 0; i < 12; i++) { + // make the regex if we don't have it already + mom = createUTC([2000, i]); + if (strict && !this._longMonthsParse[i]) { + this._longMonthsParse[i] = new RegExp( + '^' + this.months(mom, '').replace('.', '') + '$', + 'i' + ); + this._shortMonthsParse[i] = new RegExp( + '^' + this.monthsShort(mom, '').replace('.', '') + '$', + 'i' + ); + } + if (!strict && !this._monthsParse[i]) { + regex = + '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, ''); + this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i'); + } + // test the regex + if ( + strict && + format === 'MMMM' && + this._longMonthsParse[i].test(monthName) + ) { + return i; + } else if ( + strict && + format === 'MMM' && + this._shortMonthsParse[i].test(monthName) + ) { + return i; + } else if (!strict && this._monthsParse[i].test(monthName)) { + return i; + } + } + } + // MOMENTS - exports.__esModule = true; - exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined; + function setMonth(mom, value) { + var dayOfMonth; - var _all2 = __webpack_require__(1354); + if (!mom.isValid()) { + // No op + return mom; + } - var _all3 = _interopRequireDefault(_all2); + if (typeof value === 'string') { + if (/^\d+$/.test(value)) { + value = toInt(value); + } else { + value = mom.localeData().monthsParse(value); + // TODO: Another silent failure? + if (!isNumber(value)) { + return mom; + } + } + } - var _componentOrElement2 = __webpack_require__(1355); + dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value)); + mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth); + return mom; + } - var _componentOrElement3 = _interopRequireDefault(_componentOrElement2); + function getSetMonth(value) { + if (value != null) { + setMonth(this, value); + hooks.updateOffset(this, true); + return this; + } else { + return get(this, 'Month'); + } + } - var _deprecated2 = __webpack_require__(1356); + function getDaysInMonth() { + return daysInMonth(this.year(), this.month()); + } - var _deprecated3 = _interopRequireDefault(_deprecated2); + function monthsShortRegex(isStrict) { + if (this._monthsParseExact) { + if (!hasOwnProp(this, '_monthsRegex')) { + computeMonthsParse.call(this); + } + if (isStrict) { + return this._monthsShortStrictRegex; + } else { + return this._monthsShortRegex; + } + } else { + if (!hasOwnProp(this, '_monthsShortRegex')) { + this._monthsShortRegex = defaultMonthsShortRegex; + } + return this._monthsShortStrictRegex && isStrict + ? this._monthsShortStrictRegex + : this._monthsShortRegex; + } + } - var _elementType2 = __webpack_require__(1357); + function monthsRegex(isStrict) { + if (this._monthsParseExact) { + if (!hasOwnProp(this, '_monthsRegex')) { + computeMonthsParse.call(this); + } + if (isStrict) { + return this._monthsStrictRegex; + } else { + return this._monthsRegex; + } + } else { + if (!hasOwnProp(this, '_monthsRegex')) { + this._monthsRegex = defaultMonthsRegex; + } + return this._monthsStrictRegex && isStrict + ? this._monthsStrictRegex + : this._monthsRegex; + } + } - var _elementType3 = _interopRequireDefault(_elementType2); + function computeMonthsParse() { + function cmpLenRev(a, b) { + return b.length - a.length; + } - var _isRequiredForA11y2 = __webpack_require__(1358); + var shortPieces = [], + longPieces = [], + mixedPieces = [], + i, + mom; + for (i = 0; i < 12; i++) { + // make the regex if we don't have it already + mom = createUTC([2000, i]); + shortPieces.push(this.monthsShort(mom, '')); + longPieces.push(this.months(mom, '')); + mixedPieces.push(this.months(mom, '')); + mixedPieces.push(this.monthsShort(mom, '')); + } + // Sorting makes sure if one month (or abbr) is a prefix of another it + // will match the longer piece. + shortPieces.sort(cmpLenRev); + longPieces.sort(cmpLenRev); + mixedPieces.sort(cmpLenRev); + for (i = 0; i < 12; i++) { + shortPieces[i] = regexEscape(shortPieces[i]); + longPieces[i] = regexEscape(longPieces[i]); + } + for (i = 0; i < 24; i++) { + mixedPieces[i] = regexEscape(mixedPieces[i]); + } - var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2); + this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i'); + this._monthsShortRegex = this._monthsRegex; + this._monthsStrictRegex = new RegExp( + '^(' + longPieces.join('|') + ')', + 'i' + ); + this._monthsShortStrictRegex = new RegExp( + '^(' + shortPieces.join('|') + ')', + 'i' + ); + } - var _splitComponent2 = __webpack_require__(1359); + // FORMATTING - var _splitComponent3 = _interopRequireDefault(_splitComponent2); + addFormatToken('Y', 0, 0, function () { + var y = this.year(); + return y <= 9999 ? zeroFill(y, 4) : '+' + y; + }); - var _createChainedFunction2 = __webpack_require__(1360); + addFormatToken(0, ['YY', 2], 0, function () { + return this.year() % 100; + }); - var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2); + addFormatToken(0, ['YYYY', 4], 0, 'year'); + addFormatToken(0, ['YYYYY', 5], 0, 'year'); + addFormatToken(0, ['YYYYYY', 6, true], 0, 'year'); - var _keyCode = __webpack_require__(1361); + // ALIASES - var _keyCode2 = _interopRequireDefault(_keyCode); + addUnitAlias('year', 'y'); - var _contains2 = __webpack_require__(1362); + // PRIORITIES - var _contains3 = _interopRequireDefault(_contains2); + addUnitPriority('year', 1); - var _addEventListener2 = __webpack_require__(485); + // PARSING - var _addEventListener3 = _interopRequireDefault(_addEventListener2); + addRegexToken('Y', matchSigned); + addRegexToken('YY', match1to2, match2); + addRegexToken('YYYY', match1to4, match4); + addRegexToken('YYYYY', match1to6, match6); + addRegexToken('YYYYYY', match1to6, match6); - var _cssAnimation2 = __webpack_require__(1363); + addParseToken(['YYYYY', 'YYYYYY'], YEAR); + addParseToken('YYYY', function (input, array) { + array[YEAR] = + input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input); + }); + addParseToken('YY', function (input, array) { + array[YEAR] = hooks.parseTwoDigitYear(input); + }); + addParseToken('Y', function (input, array) { + array[YEAR] = parseInt(input, 10); + }); - var _cssAnimation3 = _interopRequireDefault(_cssAnimation2); + // HELPERS - var _toArray2 = __webpack_require__(1365); + function daysInYear(year) { + return isLeapYear(year) ? 366 : 365; + } - var _toArray3 = _interopRequireDefault(_toArray2); + // HOOKS - var _Align2 = __webpack_require__(1366); + hooks.parseTwoDigitYear = function (input) { + return toInt(input) + (toInt(input) > 68 ? 1900 : 2000); + }; - var _Align3 = _interopRequireDefault(_Align2); + // MOMENTS - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + var getSetYear = makeGetSet('FullYear', true); - exports.all = _all3.default; - exports.componentOrElement = _componentOrElement3.default; - exports.deprecated = _deprecated3.default; - exports.elementType = _elementType3.default; - exports.isRequiredForA11y = _isRequiredForA11y3.default; - exports.splitComponent = _splitComponent3.default; - exports.createChainedFunction = _createChainedFunction3.default; - exports.KeyCode = _keyCode2.default; - exports.contains = _contains3.default; - exports.addEventListener = _addEventListener3.default; - exports.cssAnimation = _cssAnimation3.default; - exports.toArray = _toArray3.default; - //export getContainerRenderMixin from './getContainerRenderMixin'; + function getIsLeapYear() { + return isLeapYear(this.year()); + } - exports.Align = _Align3.default; + function createDate(y, m, d, h, M, s, ms) { + // can't just apply() to create a date: + // https://stackoverflow.com/q/181348 + var date; + // the date constructor remaps years 0-99 to 1900-1999 + if (y < 100 && y >= 0) { + // preserve leap years using a full 400 year cycle, then reset + date = new Date(y + 400, m, d, h, M, s, ms); + if (isFinite(date.getFullYear())) { + date.setFullYear(y); + } + } else { + date = new Date(y, m, d, h, M, s, ms); + } - /***/ }), - /* 34 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + return date; + } - "use strict"; - /* harmony export (immutable) */ __webpack_exports__["h"] = findPopupContainer; - /* harmony export (immutable) */ __webpack_exports__["r"] = toTitle; - /* unused harmony export toArray */ - /* harmony export (immutable) */ __webpack_exports__["g"] = createRef; - /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return UNSELECTABLE_STYLE; }); - /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return UNSELECTABLE_ATTRIBUTE; }); - /* harmony export (immutable) */ __webpack_exports__["i"] = flatToHierarchy; - /* unused harmony export resetAriaId */ - /* harmony export (immutable) */ __webpack_exports__["l"] = generateAriaId; - /* harmony export (immutable) */ __webpack_exports__["o"] = isLabelInValue; - /* harmony export (immutable) */ __webpack_exports__["q"] = parseSimpleTreeData; - /* harmony export (immutable) */ __webpack_exports__["p"] = isPosRelated; - /* harmony export (immutable) */ __webpack_exports__["c"] = cleanEntity; - /* harmony export (immutable) */ __webpack_exports__["m"] = getFilterTree; - /* harmony export (immutable) */ __webpack_exports__["j"] = formatInternalValue; - /* unused harmony export getLabel */ - /* harmony export (immutable) */ __webpack_exports__["k"] = formatSelectorValue; - /* harmony export (immutable) */ __webpack_exports__["e"] = convertDataToTree; - /* harmony export (immutable) */ __webpack_exports__["f"] = convertTreeToEntities; - /* harmony export (immutable) */ __webpack_exports__["n"] = getHalfCheckedKeys; - /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return conductCheck; }); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_warning__ = __webpack_require__(1667); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_warning___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_warning__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rc_tree_es_util__ = __webpack_require__(208); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rc_util_es_Children_toArray__ = __webpack_require__(119); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_util_es_Dom_class__ = __webpack_require__(1672); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__strategies__ = __webpack_require__(209); - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + function createUTCDate(y) { + var date, args; + // the Date.UTC function remaps years 0-99 to 1900-1999 + if (y < 100 && y >= 0) { + args = Array.prototype.slice.call(arguments); + // preserve leap years using a full 400 year cycle, then reset + args[0] = y + 400; + date = new Date(Date.UTC.apply(null, args)); + if (isFinite(date.getUTCFullYear())) { + date.setUTCFullYear(y); + } + } else { + date = new Date(Date.UTC.apply(null, arguments)); + } - function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + return date; + } - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + // start-of-first-week - start-of-year + function firstWeekOffset(year, dow, doy) { + var // first-week day -- which january is always in the first week (4 for iso, 1 for other) + fwd = 7 + dow - doy, + // first-week day local weekday -- which local weekday is fwd + fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7; - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + return -fwdlw + fwd - 1; + } + // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday + function dayOfYearFromWeeks(year, week, weekday, dow, doy) { + var localWeekday = (7 + weekday - dow) % 7, + weekOffset = firstWeekOffset(year, dow, doy), + dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset, + resYear, + resDayOfYear; + if (dayOfYear <= 0) { + resYear = year - 1; + resDayOfYear = daysInYear(resYear) + dayOfYear; + } else if (dayOfYear > daysInYear(year)) { + resYear = year + 1; + resDayOfYear = dayOfYear - daysInYear(year); + } else { + resYear = year; + resDayOfYear = dayOfYear; + } + return { + year: resYear, + dayOfYear: resDayOfYear, + }; + } + function weekOfYear(mom, dow, doy) { + var weekOffset = firstWeekOffset(mom.year(), dow, doy), + week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1, + resWeek, + resYear; + if (week < 1) { + resYear = mom.year() - 1; + resWeek = week + weeksInYear(resYear, dow, doy); + } else if (week > weeksInYear(mom.year(), dow, doy)) { + resWeek = week - weeksInYear(mom.year(), dow, doy); + resYear = mom.year() + 1; + } else { + resYear = mom.year(); + resWeek = week; + } + return { + week: resWeek, + year: resYear, + }; + } - var warnDeprecatedLabel = false; // =================== DOM ===================== + function weeksInYear(year, dow, doy) { + var weekOffset = firstWeekOffset(year, dow, doy), + weekOffsetNext = firstWeekOffset(year + 1, dow, doy); + return (daysInYear(year) - weekOffset + weekOffsetNext) / 7; + } - function findPopupContainer(node, prefixClass) { - var current = node; + // FORMATTING - while (current) { - if (Object(__WEBPACK_IMPORTED_MODULE_4_rc_util_es_Dom_class__["a" /* hasClass */])(current, prefixClass)) { - return current; - } + addFormatToken('w', ['ww', 2], 'wo', 'week'); + addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek'); - current = current.parentNode; - } + // ALIASES - return null; - } // =================== MISC ==================== + addUnitAlias('week', 'w'); + addUnitAlias('isoWeek', 'W'); - function toTitle(title) { - if (typeof title === 'string') { - return title; - } + // PRIORITIES - return null; - } - function toArray(data) { - if (data === undefined || data === null) return []; - return Array.isArray(data) ? data : [data]; - } // Shallow copy of React 16.3 createRef api + addUnitPriority('week', 5); + addUnitPriority('isoWeek', 5); - function createRef() { - var func = function setRef(node) { - func.current = node; - }; + // PARSING - return func; - } // =============== Legacy =============== + addRegexToken('w', match1to2); + addRegexToken('ww', match1to2, match2); + addRegexToken('W', match1to2); + addRegexToken('WW', match1to2, match2); - var UNSELECTABLE_STYLE = { - userSelect: 'none', - WebkitUserSelect: 'none' - }; - var UNSELECTABLE_ATTRIBUTE = { - unselectable: 'unselectable' - }; - /** - * Convert position list to hierarchy structure. - * This is little hack since use '-' to split the position. - */ + addWeekParseToken(['w', 'ww', 'W', 'WW'], function ( + input, + week, + config, + token + ) { + week[token.substr(0, 1)] = toInt(input); + }); - function flatToHierarchy(positionList) { - if (!positionList.length) { - return []; - } + // HELPERS - var entrances = {}; // Prepare the position map + // LOCALES - var posMap = {}; - var parsedList = positionList.slice().map(function (entity) { - var clone = _objectSpread({}, entity, { - fields: entity.pos.split('-') - }); + function localeWeek(mom) { + return weekOfYear(mom, this._week.dow, this._week.doy).week; + } - delete clone.children; - return clone; - }); - parsedList.forEach(function (entity) { - posMap[entity.pos] = entity; - }); - parsedList.sort(function (a, b) { - return a.fields.length - b.fields.length; - }); // Create the hierarchy + var defaultLocaleWeek = { + dow: 0, // Sunday is the first day of the week. + doy: 6, // The week that contains Jan 6th is the first week of the year. + }; - parsedList.forEach(function (entity) { - var parentPos = entity.fields.slice(0, -1).join('-'); - var parentEntity = posMap[parentPos]; + function localeFirstDayOfWeek() { + return this._week.dow; + } - if (!parentEntity) { - entrances[entity.pos] = entity; - } else { - parentEntity.children = parentEntity.children || []; - parentEntity.children.push(entity); - } // Some time position list provide `key`, we don't need it + function localeFirstDayOfYear() { + return this._week.doy; + } + // MOMENTS - delete entity.key; - delete entity.fields; - }); - return Object.keys(entrances).map(function (key) { - return entrances[key]; - }); - } // =============== Accessibility =============== + function getSetWeek(input) { + var week = this.localeData().week(this); + return input == null ? week : this.add((input - week) * 7, 'd'); + } - var ariaId = 0; - function resetAriaId() { - ariaId = 0; - } - function generateAriaId(prefix) { - ariaId += 1; - return "".concat(prefix, "_").concat(ariaId); - } - function isLabelInValue(props) { - var treeCheckable = props.treeCheckable, - treeCheckStrictly = props.treeCheckStrictly, - labelInValue = props.labelInValue; + function getSetISOWeek(input) { + var week = weekOfYear(this, 1, 4).week; + return input == null ? week : this.add((input - week) * 7, 'd'); + } - if (treeCheckable && treeCheckStrictly) { - return true; - } + // FORMATTING - return labelInValue || false; - } // =================== Tree ==================== + addFormatToken('d', 0, 'do', 'day'); - function parseSimpleTreeData(treeData, _ref) { - var id = _ref.id, - pId = _ref.pId, - rootPId = _ref.rootPId; - var keyNodes = {}; - var rootNodeList = []; // Fill in the map + addFormatToken('dd', 0, 0, function (format) { + return this.localeData().weekdaysMin(this, format); + }); - var nodeList = treeData.map(function (node) { - var clone = _objectSpread({}, node); + addFormatToken('ddd', 0, 0, function (format) { + return this.localeData().weekdaysShort(this, format); + }); - var key = clone[id]; - keyNodes[key] = clone; - clone.key = clone.key || key; - return clone; - }); // Connect tree + addFormatToken('dddd', 0, 0, function (format) { + return this.localeData().weekdays(this, format); + }); - nodeList.forEach(function (node) { - var parentKey = node[pId]; - var parent = keyNodes[parentKey]; // Fill parent + addFormatToken('e', 0, 0, 'weekday'); + addFormatToken('E', 0, 0, 'isoWeekday'); - if (parent) { - parent.children = parent.children || []; - parent.children.push(node); - } // Fill root tree node + // ALIASES + addUnitAlias('day', 'd'); + addUnitAlias('weekday', 'e'); + addUnitAlias('isoWeekday', 'E'); - if (parentKey === rootPId || !parent && rootPId === null) { - rootNodeList.push(node); - } - }); - return rootNodeList; - } - /** - * Detect if position has relation. - * e.g. 1-2 related with 1-2-3 - * e.g. 1-3-2 related with 1 - * e.g. 1-2 not related with 1-21 - */ + // PRIORITY + addUnitPriority('day', 11); + addUnitPriority('weekday', 11); + addUnitPriority('isoWeekday', 11); - function isPosRelated(pos1, pos2) { - var fields1 = pos1.split('-'); - var fields2 = pos2.split('-'); - var minLen = Math.min(fields1.length, fields2.length); + // PARSING - for (var i = 0; i < minLen; i += 1) { - if (fields1[i] !== fields2[i]) { - return false; - } - } + addRegexToken('d', match1to2); + addRegexToken('e', match1to2); + addRegexToken('E', match1to2); + addRegexToken('dd', function (isStrict, locale) { + return locale.weekdaysMinRegex(isStrict); + }); + addRegexToken('ddd', function (isStrict, locale) { + return locale.weekdaysShortRegex(isStrict); + }); + addRegexToken('dddd', function (isStrict, locale) { + return locale.weekdaysRegex(isStrict); + }); - return true; - } - /** - * This function is only used on treeNode check (none treeCheckStrictly but has searchInput). - * We convert entity to { node, pos, children } format. - * This is legacy bug but we still need to do with it. - * @param entity - */ + addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) { + var weekday = config._locale.weekdaysParse(input, token, config._strict); + // if we didn't get a weekday name, mark the date as invalid + if (weekday != null) { + week.d = weekday; + } else { + getParsingFlags(config).invalidWeekday = input; + } + }); - function cleanEntity(_ref2) { - var node = _ref2.node, - pos = _ref2.pos, - children = _ref2.children; - var instance = { - node: node, - pos: pos - }; + addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) { + week[token] = toInt(input); + }); - if (children) { - instance.children = children.map(cleanEntity); - } + // HELPERS - return instance; - } - /** - * Get a filtered TreeNode list by provided treeNodes. - * [Legacy] Since `Tree` use `key` as map but `key` will changed by React, - * we have to convert `treeNodes > data > treeNodes` to keep the key. - * Such performance hungry! - * - * We pass `Component` as argument is to fix eslint issue. - */ + function parseWeekday(input, locale) { + if (typeof input !== 'string') { + return input; + } - function getFilterTree(treeNodes, searchValue, filterFunc, valueEntities, Component) { - if (!searchValue) { - return null; - } + if (!isNaN(input)) { + return parseInt(input, 10); + } - function mapFilteredNodeToData(node) { - if (!node) return null; - var match = false; + input = locale.weekdaysParse(input); + if (typeof input === 'number') { + return input; + } - if (filterFunc(searchValue, node)) { - match = true; + return null; } - var children = Object(__WEBPACK_IMPORTED_MODULE_3_rc_util_es_Children_toArray__["a" /* default */])(node.props.children).map(mapFilteredNodeToData).filter(function (n) { - return n; - }); - - if (children.length || match) { - return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Component, _extends({}, node.props, { - key: valueEntities[node.props.value].key - }), children); + function parseIsoWeekday(input, locale) { + if (typeof input === 'string') { + return locale.weekdaysParse(input) % 7 || 7; + } + return isNaN(input) ? null : input; } - return null; - } + // LOCALES + function shiftWeekdays(ws, n) { + return ws.slice(n, 7).concat(ws.slice(0, n)); + } - return treeNodes.map(mapFilteredNodeToData).filter(function (node) { - return node; - }); - } // =================== Value =================== + var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( + '_' + ), + defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + defaultWeekdaysRegex = matchWord, + defaultWeekdaysShortRegex = matchWord, + defaultWeekdaysMinRegex = matchWord; - /** - * Convert value to array format to make logic simplify. - */ + function localeWeekdays(m, format) { + var weekdays = isArray(this._weekdays) + ? this._weekdays + : this._weekdays[ + m && m !== true && this._weekdays.isFormat.test(format) + ? 'format' + : 'standalone' + ]; + return m === true + ? shiftWeekdays(weekdays, this._week.dow) + : m + ? weekdays[m.day()] + : weekdays; + } - function formatInternalValue(value, props) { - var valueList = toArray(value); // Parse label in value + function localeWeekdaysShort(m) { + return m === true + ? shiftWeekdays(this._weekdaysShort, this._week.dow) + : m + ? this._weekdaysShort[m.day()] + : this._weekdaysShort; + } - if (isLabelInValue(props)) { - return valueList.map(function (val) { - if (typeof val !== 'object' || !val) { - return { - value: '', - label: '' - }; - } + function localeWeekdaysMin(m) { + return m === true + ? shiftWeekdays(this._weekdaysMin, this._week.dow) + : m + ? this._weekdaysMin[m.day()] + : this._weekdaysMin; + } - return val; - }); - } + function handleStrictParse$1(weekdayName, format, strict) { + var i, + ii, + mom, + llc = weekdayName.toLocaleLowerCase(); + if (!this._weekdaysParse) { + this._weekdaysParse = []; + this._shortWeekdaysParse = []; + this._minWeekdaysParse = []; - return valueList.map(function (val) { - return { - value: val - }; - }); - } - function getLabel(wrappedValue, entity, treeNodeLabelProp) { - if (wrappedValue.label) { - return wrappedValue.label; - } + for (i = 0; i < 7; ++i) { + mom = createUTC([2000, 1]).day(i); + this._minWeekdaysParse[i] = this.weekdaysMin( + mom, + '' + ).toLocaleLowerCase(); + this._shortWeekdaysParse[i] = this.weekdaysShort( + mom, + '' + ).toLocaleLowerCase(); + this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase(); + } + } - if (entity && entity.node.props) { - return entity.node.props[treeNodeLabelProp]; - } // Since value without entity will be in missValueList. - // This code will never reached, but we still need this in case. + if (strict) { + if (format === 'dddd') { + ii = indexOf.call(this._weekdaysParse, llc); + return ii !== -1 ? ii : null; + } else if (format === 'ddd') { + ii = indexOf.call(this._shortWeekdaysParse, llc); + return ii !== -1 ? ii : null; + } else { + ii = indexOf.call(this._minWeekdaysParse, llc); + return ii !== -1 ? ii : null; + } + } else { + if (format === 'dddd') { + ii = indexOf.call(this._weekdaysParse, llc); + if (ii !== -1) { + return ii; + } + ii = indexOf.call(this._shortWeekdaysParse, llc); + if (ii !== -1) { + return ii; + } + ii = indexOf.call(this._minWeekdaysParse, llc); + return ii !== -1 ? ii : null; + } else if (format === 'ddd') { + ii = indexOf.call(this._shortWeekdaysParse, llc); + if (ii !== -1) { + return ii; + } + ii = indexOf.call(this._weekdaysParse, llc); + if (ii !== -1) { + return ii; + } + ii = indexOf.call(this._minWeekdaysParse, llc); + return ii !== -1 ? ii : null; + } else { + ii = indexOf.call(this._minWeekdaysParse, llc); + if (ii !== -1) { + return ii; + } + ii = indexOf.call(this._weekdaysParse, llc); + if (ii !== -1) { + return ii; + } + ii = indexOf.call(this._shortWeekdaysParse, llc); + return ii !== -1 ? ii : null; + } + } + } + function localeWeekdaysParse(weekdayName, format, strict) { + var i, mom, regex; - return wrappedValue.value; - } - /** - * Convert internal state `valueList` to user needed value list. - * This will return an array list. You need check if is not multiple when return. - * - * `allCheckedNodes` is used for `treeCheckStrictly` - */ + if (this._weekdaysParseExact) { + return handleStrictParse$1.call(this, weekdayName, format, strict); + } - function formatSelectorValue(valueList, props, valueEntities) { - var treeNodeLabelProp = props.treeNodeLabelProp, - treeCheckable = props.treeCheckable, - treeCheckStrictly = props.treeCheckStrictly, - showCheckedStrategy = props.showCheckedStrategy; // Will hide some value if `showCheckedStrategy` is set + if (!this._weekdaysParse) { + this._weekdaysParse = []; + this._minWeekdaysParse = []; + this._shortWeekdaysParse = []; + this._fullWeekdaysParse = []; + } - if (treeCheckable && !treeCheckStrictly) { - var values = {}; - valueList.forEach(function (wrappedValue) { - values[wrappedValue.value] = wrappedValue; - }); - var hierarchyList = flatToHierarchy(valueList.map(function (_ref3) { - var value = _ref3.value; - return valueEntities[value]; - })); + for (i = 0; i < 7; i++) { + // make the regex if we don't have it already - if (showCheckedStrategy === __WEBPACK_IMPORTED_MODULE_5__strategies__["c" /* SHOW_PARENT */]) { - // Only get the parent checked value - return hierarchyList.map(function (_ref4) { - var value = _ref4.node.props.value; - return { - label: getLabel(values[value], valueEntities[value], treeNodeLabelProp), - value: value - }; - }); + mom = createUTC([2000, 1]).day(i); + if (strict && !this._fullWeekdaysParse[i]) { + this._fullWeekdaysParse[i] = new RegExp( + '^' + this.weekdays(mom, '').replace('.', '\\.?') + '$', + 'i' + ); + this._shortWeekdaysParse[i] = new RegExp( + '^' + this.weekdaysShort(mom, '').replace('.', '\\.?') + '$', + 'i' + ); + this._minWeekdaysParse[i] = new RegExp( + '^' + this.weekdaysMin(mom, '').replace('.', '\\.?') + '$', + 'i' + ); + } + if (!this._weekdaysParse[i]) { + regex = + '^' + + this.weekdays(mom, '') + + '|^' + + this.weekdaysShort(mom, '') + + '|^' + + this.weekdaysMin(mom, ''); + this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i'); + } + // test the regex + if ( + strict && + format === 'dddd' && + this._fullWeekdaysParse[i].test(weekdayName) + ) { + return i; + } else if ( + strict && + format === 'ddd' && + this._shortWeekdaysParse[i].test(weekdayName) + ) { + return i; + } else if ( + strict && + format === 'dd' && + this._minWeekdaysParse[i].test(weekdayName) + ) { + return i; + } else if (!strict && this._weekdaysParse[i].test(weekdayName)) { + return i; + } + } } - if (showCheckedStrategy === __WEBPACK_IMPORTED_MODULE_5__strategies__["b" /* SHOW_CHILD */]) { - // Only get the children checked value - var targetValueList = []; // Find the leaf children - - var traverse = function traverse(_ref5) { - var value = _ref5.node.props.value, - children = _ref5.children; + // MOMENTS - if (!children || children.length === 0) { - targetValueList.push({ - label: getLabel(values[value], valueEntities[value], treeNodeLabelProp), - value: value - }); - return; + function getSetDayOfWeek(input) { + if (!this.isValid()) { + return input != null ? this : NaN; } + var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay(); + if (input != null) { + input = parseWeekday(input, this.localeData()); + return this.add(input - day, 'd'); + } else { + return day; + } + } - children.forEach(function (entity) { - traverse(entity); - }); - }; - - hierarchyList.forEach(function (entity) { - traverse(entity); - }); - return targetValueList; + function getSetLocaleDayOfWeek(input) { + if (!this.isValid()) { + return input != null ? this : NaN; + } + var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7; + return input == null ? weekday : this.add(input - weekday, 'd'); } - } - return valueList.map(function (wrappedValue) { - return { - label: getLabel(wrappedValue, valueEntities[wrappedValue.value], treeNodeLabelProp), - value: wrappedValue.value - }; - }); - } - /** - * Use `rc-tree` convertDataToTree to convert treeData to TreeNodes. - * This will change the label to title value - */ + function getSetISODayOfWeek(input) { + if (!this.isValid()) { + return input != null ? this : NaN; + } - function processProps(props) { - var title = props.title, - label = props.label, - key = props.key, - value = props.value; + // behaves the same as moment#day except + // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6) + // as a setter, sunday should belong to the previous week. - var cloneProps = _objectSpread({}, props); // Warning user not to use deprecated label prop. + if (input != null) { + var weekday = parseIsoWeekday(input, this.localeData()); + return this.day(this.day() % 7 ? weekday : weekday - 7); + } else { + return this.day() || 7; + } + } + function weekdaysRegex(isStrict) { + if (this._weekdaysParseExact) { + if (!hasOwnProp(this, '_weekdaysRegex')) { + computeWeekdaysParse.call(this); + } + if (isStrict) { + return this._weekdaysStrictRegex; + } else { + return this._weekdaysRegex; + } + } else { + if (!hasOwnProp(this, '_weekdaysRegex')) { + this._weekdaysRegex = defaultWeekdaysRegex; + } + return this._weekdaysStrictRegex && isStrict + ? this._weekdaysStrictRegex + : this._weekdaysRegex; + } + } - if (label && !title) { - if (!warnDeprecatedLabel) { - __WEBPACK_IMPORTED_MODULE_1_warning___default()(false, "'label' in treeData is deprecated. Please use 'title' instead."); - warnDeprecatedLabel = true; + function weekdaysShortRegex(isStrict) { + if (this._weekdaysParseExact) { + if (!hasOwnProp(this, '_weekdaysRegex')) { + computeWeekdaysParse.call(this); + } + if (isStrict) { + return this._weekdaysShortStrictRegex; + } else { + return this._weekdaysShortRegex; + } + } else { + if (!hasOwnProp(this, '_weekdaysShortRegex')) { + this._weekdaysShortRegex = defaultWeekdaysShortRegex; + } + return this._weekdaysShortStrictRegex && isStrict + ? this._weekdaysShortStrictRegex + : this._weekdaysShortRegex; + } } - cloneProps.title = label; - } + function weekdaysMinRegex(isStrict) { + if (this._weekdaysParseExact) { + if (!hasOwnProp(this, '_weekdaysRegex')) { + computeWeekdaysParse.call(this); + } + if (isStrict) { + return this._weekdaysMinStrictRegex; + } else { + return this._weekdaysMinRegex; + } + } else { + if (!hasOwnProp(this, '_weekdaysMinRegex')) { + this._weekdaysMinRegex = defaultWeekdaysMinRegex; + } + return this._weekdaysMinStrictRegex && isStrict + ? this._weekdaysMinStrictRegex + : this._weekdaysMinRegex; + } + } - if (!key) { - cloneProps.key = value; - } + function computeWeekdaysParse() { + function cmpLenRev(a, b) { + return b.length - a.length; + } - return cloneProps; - } + var minPieces = [], + shortPieces = [], + longPieces = [], + mixedPieces = [], + i, + mom, + minp, + shortp, + longp; + for (i = 0; i < 7; i++) { + // make the regex if we don't have it already + mom = createUTC([2000, 1]).day(i); + minp = regexEscape(this.weekdaysMin(mom, '')); + shortp = regexEscape(this.weekdaysShort(mom, '')); + longp = regexEscape(this.weekdays(mom, '')); + minPieces.push(minp); + shortPieces.push(shortp); + longPieces.push(longp); + mixedPieces.push(minp); + mixedPieces.push(shortp); + mixedPieces.push(longp); + } + // Sorting makes sure if one weekday (or abbr) is a prefix of another it + // will match the longer piece. + minPieces.sort(cmpLenRev); + shortPieces.sort(cmpLenRev); + longPieces.sort(cmpLenRev); + mixedPieces.sort(cmpLenRev); - function convertDataToTree(treeData) { - return Object(__WEBPACK_IMPORTED_MODULE_2_rc_tree_es_util__["g" /* convertDataToTree */])(treeData, { - processProps: processProps - }); - } - /** - * Use `rc-tree` convertTreeToEntities for entities calculation. - * We have additional entities of `valueEntities` - */ + this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i'); + this._weekdaysShortRegex = this._weekdaysRegex; + this._weekdaysMinRegex = this._weekdaysRegex; - function initWrapper(wrapper) { - return _objectSpread({}, wrapper, { - valueEntities: {} - }); - } + this._weekdaysStrictRegex = new RegExp( + '^(' + longPieces.join('|') + ')', + 'i' + ); + this._weekdaysShortStrictRegex = new RegExp( + '^(' + shortPieces.join('|') + ')', + 'i' + ); + this._weekdaysMinStrictRegex = new RegExp( + '^(' + minPieces.join('|') + ')', + 'i' + ); + } - function processEntity(entity, wrapper) { - var value = entity.node.props.value; - entity.value = value; // This should be empty, or will get error message. + // FORMATTING - var currentEntity = wrapper.valueEntities[value]; + function hFormat() { + return this.hours() % 12 || 12; + } - if (currentEntity) { - __WEBPACK_IMPORTED_MODULE_1_warning___default()(false, "Conflict! value of node '".concat(entity.key, "' (").concat(value, ") has already used by node '").concat(currentEntity.key, "'.")); - } + function kFormat() { + return this.hours() || 24; + } - wrapper.valueEntities[value] = entity; - } + addFormatToken('H', ['HH', 2], 0, 'hour'); + addFormatToken('h', ['hh', 2], 0, hFormat); + addFormatToken('k', ['kk', 2], 0, kFormat); - function convertTreeToEntities(treeNodes) { - return Object(__WEBPACK_IMPORTED_MODULE_2_rc_tree_es_util__["h" /* convertTreeToEntities */])(treeNodes, { - initWrapper: initWrapper, - processEntity: processEntity - }); - } - /** - * https://github.com/ant-design/ant-design/issues/13328 - * We need calculate the half check key when searchValue is set. - */ - // TODO: This logic may better move to rc-tree + addFormatToken('hmm', 0, 0, function () { + return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2); + }); - function getHalfCheckedKeys(valueList, valueEntities) { - var values = {}; // Fill checked keys + addFormatToken('hmmss', 0, 0, function () { + return ( + '' + + hFormat.apply(this) + + zeroFill(this.minutes(), 2) + + zeroFill(this.seconds(), 2) + ); + }); - valueList.forEach(function (_ref6) { - var value = _ref6.value; - values[value] = false; - }); // Fill half checked keys + addFormatToken('Hmm', 0, 0, function () { + return '' + this.hours() + zeroFill(this.minutes(), 2); + }); - valueList.forEach(function (_ref7) { - var value = _ref7.value; - var current = valueEntities[value]; + addFormatToken('Hmmss', 0, 0, function () { + return ( + '' + + this.hours() + + zeroFill(this.minutes(), 2) + + zeroFill(this.seconds(), 2) + ); + }); - while (current && current.parent) { - var parentValue = current.parent.value; - if (parentValue in values) break; - values[parentValue] = true; - current = current.parent; + function meridiem(token, lowercase) { + addFormatToken(token, 0, 0, function () { + return this.localeData().meridiem( + this.hours(), + this.minutes(), + lowercase + ); + }); } - }); // Get half keys - - return Object.keys(values).filter(function (value) { - return values[value]; - }).map(function (value) { - return valueEntities[value].key; - }); - } - var conductCheck = __WEBPACK_IMPORTED_MODULE_2_rc_tree_es_util__["e" /* conductCheck */]; - - /***/ }), - /* 35 */ - /***/ (function(module, exports) { - var g; + meridiem('a', true); + meridiem('A', false); - // This works in non-strict mode - g = (function() { - return this; - })(); + // ALIASES - try { - // This works if eval is allowed (see CSP) - g = g || Function("return this")() || (1,eval)("this"); - } catch(e) { - // This works if the window reference is available - if(typeof window === "object") - g = window; - } + addUnitAlias('hour', 'h'); - // g can still be undefined, but nothing to do about it... - // We return undefined, instead of nothing here, so it's - // easier to handle this case. if(!global) { ...} + // PRIORITY + addUnitPriority('hour', 13); - module.exports = g; + // PARSING + function matchMeridiem(isStrict, locale) { + return locale._meridiemParse; + } - /***/ }), - /* 36 */ - /***/ (function(module, exports, __webpack_require__) { + addRegexToken('a', matchMeridiem); + addRegexToken('A', matchMeridiem); + addRegexToken('H', match1to2); + addRegexToken('h', match1to2); + addRegexToken('k', match1to2); + addRegexToken('HH', match1to2, match2); + addRegexToken('hh', match1to2, match2); + addRegexToken('kk', match1to2, match2); - /* WEBPACK VAR INJECTION */(function(global) {var now = __webpack_require__(836) - , root = typeof window === 'undefined' ? global : window - , vendors = ['moz', 'webkit'] - , suffix = 'AnimationFrame' - , raf = root['request' + suffix] - , caf = root['cancel' + suffix] || root['cancelRequest' + suffix] + addRegexToken('hmm', match3to4); + addRegexToken('hmmss', match5to6); + addRegexToken('Hmm', match3to4); + addRegexToken('Hmmss', match5to6); - for(var i = 0; !raf && i < vendors.length; i++) { - raf = root[vendors[i] + 'Request' + suffix] - caf = root[vendors[i] + 'Cancel' + suffix] - || root[vendors[i] + 'CancelRequest' + suffix] - } + addParseToken(['H', 'HH'], HOUR); + addParseToken(['k', 'kk'], function (input, array, config) { + var kInput = toInt(input); + array[HOUR] = kInput === 24 ? 0 : kInput; + }); + addParseToken(['a', 'A'], function (input, array, config) { + config._isPm = config._locale.isPM(input); + config._meridiem = input; + }); + addParseToken(['h', 'hh'], function (input, array, config) { + array[HOUR] = toInt(input); + getParsingFlags(config).bigHour = true; + }); + addParseToken('hmm', function (input, array, config) { + var pos = input.length - 2; + array[HOUR] = toInt(input.substr(0, pos)); + array[MINUTE] = toInt(input.substr(pos)); + getParsingFlags(config).bigHour = true; + }); + addParseToken('hmmss', function (input, array, config) { + var pos1 = input.length - 4, + pos2 = input.length - 2; + array[HOUR] = toInt(input.substr(0, pos1)); + array[MINUTE] = toInt(input.substr(pos1, 2)); + array[SECOND] = toInt(input.substr(pos2)); + getParsingFlags(config).bigHour = true; + }); + addParseToken('Hmm', function (input, array, config) { + var pos = input.length - 2; + array[HOUR] = toInt(input.substr(0, pos)); + array[MINUTE] = toInt(input.substr(pos)); + }); + addParseToken('Hmmss', function (input, array, config) { + var pos1 = input.length - 4, + pos2 = input.length - 2; + array[HOUR] = toInt(input.substr(0, pos1)); + array[MINUTE] = toInt(input.substr(pos1, 2)); + array[SECOND] = toInt(input.substr(pos2)); + }); - // Some versions of FF have rAF but not cAF - if(!raf || !caf) { - var last = 0 - , id = 0 - , queue = [] - , frameDuration = 1000 / 60 + // LOCALES - raf = function(callback) { - if(queue.length === 0) { - var _now = now() - , next = Math.max(0, frameDuration - (_now - last)) - last = next + _now - setTimeout(function() { - var cp = queue.slice(0) - // Clear queue here to prevent - // callbacks from appending listeners - // to the current frame's queue - queue.length = 0 - for(var i = 0; i < cp.length; i++) { - if(!cp[i].cancelled) { - try{ - cp[i].callback(last) - } catch(e) { - setTimeout(function() { throw e }, 0) - } - } - } - }, Math.round(next)) + function localeIsPM(input) { + // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays + // Using charAt should be more compatible. + return (input + '').toLowerCase().charAt(0) === 'p'; } - queue.push({ - handle: ++id, - callback: callback, - cancelled: false - }) - return id - } - caf = function(handle) { - for(var i = 0; i < queue.length; i++) { - if(queue[i].handle === handle) { - queue[i].cancelled = true - } + var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i, + // Setting the hour should keep the time, because the user explicitly + // specified which hour they want. So trying to maintain the same hour (in + // a new timezone) makes sense. Adding/subtracting hours does not follow + // this rule. + getSetHour = makeGetSet('Hours', true); + + function localeMeridiem(hours, minutes, isLower) { + if (hours > 11) { + return isLower ? 'pm' : 'PM'; + } else { + return isLower ? 'am' : 'AM'; + } } - } - } - module.exports = function(fn) { - // Wrap in a new function to prevent - // `cancel` potentially being assigned - // to the native rAF function - return raf.call(root, fn) - } - module.exports.cancel = function() { - caf.apply(root, arguments) - } - module.exports.polyfill = function(object) { - if (!object) { - object = root; - } - object.requestAnimationFrame = raf - object.cancelAnimationFrame = caf - } + var baseConfig = { + calendar: defaultCalendar, + longDateFormat: defaultLongDateFormat, + invalidDate: defaultInvalidDate, + ordinal: defaultOrdinal, + dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse, + relativeTime: defaultRelativeTime, - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) + months: defaultLocaleMonths, + monthsShort: defaultLocaleMonthsShort, - /***/ }), - /* 37 */ - /***/ (function(module, exports, __webpack_require__) { + week: defaultLocaleWeek, - var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! - Copyright (c) 2017 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames - */ - /* global define */ + weekdays: defaultLocaleWeekdays, + weekdaysMin: defaultLocaleWeekdaysMin, + weekdaysShort: defaultLocaleWeekdaysShort, - (function () { - 'use strict'; + meridiemParse: defaultLocaleMeridiemParse, + }; - var hasOwn = {}.hasOwnProperty; + // internal storage for locale config files + var locales = {}, + localeFamilies = {}, + globalLocale; - function classNames () { - var classes = []; + function commonPrefix(arr1, arr2) { + var i, + minl = Math.min(arr1.length, arr2.length); + for (i = 0; i < minl; i += 1) { + if (arr1[i] !== arr2[i]) { + return i; + } + } + return minl; + } - for (var i = 0; i < arguments.length; i++) { - var arg = arguments[i]; - if (!arg) continue; + function normalizeLocale(key) { + return key ? key.toLowerCase().replace('_', '-') : key; + } - var argType = typeof arg; + // pick the locale from the array + // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each + // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root + function chooseLocale(names) { + var i = 0, + j, + next, + locale, + split; - if (argType === 'string' || argType === 'number') { - classes.push(arg); - } else if (Array.isArray(arg) && arg.length) { - var inner = classNames.apply(null, arg); - if (inner) { - classes.push(inner); - } - } else if (argType === 'object') { - for (var key in arg) { - if (hasOwn.call(arg, key) && arg[key]) { - classes.push(key); - } - } - } - } + while (i < names.length) { + split = normalizeLocale(names[i]).split('-'); + j = split.length; + next = normalizeLocale(names[i + 1]); + next = next ? next.split('-') : null; + while (j > 0) { + locale = loadLocale(split.slice(0, j).join('-')); + if (locale) { + return locale; + } + if ( + next && + next.length >= j && + commonPrefix(split, next) >= j - 1 + ) { + //the next array item is better than a shallower substring of this one + break; + } + j--; + } + i++; + } + return globalLocale; + } - return classes.join(' '); - } + function loadLocale(name) { + var oldLocale = null, + aliasedRequire; + // TODO: Find a better way to register and load all the locales in Node + if ( + locales[name] === undefined && + typeof module !== 'undefined' && + module && + module.exports + ) { + try { + oldLocale = globalLocale._abbr; + aliasedRequire = require; + __webpack_require__(1228)("./" + name); + getSetGlobalLocale(oldLocale); + } catch (e) { + // mark as not found to avoid repeating expensive file require call causing high CPU + // when trying to find en-US, en_US, en-us for every format call + locales[name] = null; // null means not found + } + } + return locales[name]; + } - if (typeof module !== 'undefined' && module.exports) { - classNames.default = classNames; - module.exports = classNames; - } else if (true) { - // register as 'classnames', consistent with npm package name - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () { - return classNames; - }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), - __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else { - window.classNames = classNames; - } - }()); + // This function will load locale and then set the global locale. If + // no arguments are passed in, it will simply return the current global + // locale key. + function getSetGlobalLocale(key, values) { + var data; + if (key) { + if (isUndefined(values)) { + data = getLocale(key); + } else { + data = defineLocale(key, values); + } + if (data) { + // moment.duration._locale = moment._locale = data; + globalLocale = data; + } else { + if (typeof console !== 'undefined' && console.warn) { + //warn user if arguments are passed but the locale could not be set + console.warn( + 'Locale ' + key + ' not found. Did you forget to load it?' + ); + } + } + } - /***/ }), - /* 38 */ - /***/ (function(module, exports, __webpack_require__) { + return globalLocale._abbr; + } - var global = __webpack_require__(39); - var core = __webpack_require__(24); - var ctx = __webpack_require__(120); - var hide = __webpack_require__(50); - var has = __webpack_require__(47); - var PROTOTYPE = 'prototype'; + function defineLocale(name, config) { + if (config !== null) { + var locale, + parentConfig = baseConfig; + config.abbr = name; + if (locales[name] != null) { + deprecateSimple( + 'defineLocaleOverride', + 'use moment.updateLocale(localeName, config) to change ' + + 'an existing locale. moment.defineLocale(localeName, ' + + 'config) should only be used for creating a new locale ' + + 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.' + ); + parentConfig = locales[name]._config; + } else if (config.parentLocale != null) { + if (locales[config.parentLocale] != null) { + parentConfig = locales[config.parentLocale]._config; + } else { + locale = loadLocale(config.parentLocale); + if (locale != null) { + parentConfig = locale._config; + } else { + if (!localeFamilies[config.parentLocale]) { + localeFamilies[config.parentLocale] = []; + } + localeFamilies[config.parentLocale].push({ + name: name, + config: config, + }); + return null; + } + } + } + locales[name] = new Locale(mergeConfigs(parentConfig, config)); - var $export = function (type, name, source) { - var IS_FORCED = type & $export.F; - var IS_GLOBAL = type & $export.G; - var IS_STATIC = type & $export.S; - var IS_PROTO = type & $export.P; - var IS_BIND = type & $export.B; - var IS_WRAP = type & $export.W; - var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); - var expProto = exports[PROTOTYPE]; - var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]; - var key, own, out; - if (IS_GLOBAL) source = name; - for (key in source) { - // contains in native - own = !IS_FORCED && target && target[key] !== undefined; - if (own && has(exports, key)) continue; - // export native or passed - out = own ? target[key] : source[key]; - // prevent global pollution for namespaces - exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key] - // bind timers to global for call from export context - : IS_BIND && own ? ctx(out, global) - // wrap global constructors for prevent change them in library - : IS_WRAP && target[key] == out ? (function (C) { - var F = function (a, b, c) { - if (this instanceof C) { - switch (arguments.length) { - case 0: return new C(); - case 1: return new C(a); - case 2: return new C(a, b); - } return new C(a, b, c); - } return C.apply(this, arguments); - }; - F[PROTOTYPE] = C[PROTOTYPE]; - return F; - // make static versions for prototype methods - })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; - // export proto methods to core.%CONSTRUCTOR%.methods.%NAME% - if (IS_PROTO) { - (exports.virtual || (exports.virtual = {}))[key] = out; - // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME% - if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out); - } - } - }; - // type bitmap - $export.F = 1; // forced - $export.G = 2; // global - $export.S = 4; // static - $export.P = 8; // proto - $export.B = 16; // bind - $export.W = 32; // wrap - $export.U = 64; // safe - $export.R = 128; // real proto method for `library` - module.exports = $export; + if (localeFamilies[name]) { + localeFamilies[name].forEach(function (x) { + defineLocale(x.name, x.config); + }); + } + // backwards compat for now: also set the locale + // make sure we set the locale AFTER all child locales have been + // created, so we won't end up with the child locale set. + getSetGlobalLocale(name); - /***/ }), - /* 39 */ - /***/ (function(module, exports) { + return locales[name]; + } else { + // useful for testing + delete locales[name]; + return null; + } + } - // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 - var global = module.exports = typeof window != 'undefined' && window.Math == Math - ? window : typeof self != 'undefined' && self.Math == Math ? self - // eslint-disable-next-line no-new-func - : Function('return this')(); - if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef + function updateLocale(name, config) { + if (config != null) { + var locale, + tmpLocale, + parentConfig = baseConfig; + if (locales[name] != null && locales[name].parentLocale != null) { + // Update existing child locale in-place to avoid memory-leaks + locales[name].set(mergeConfigs(locales[name]._config, config)); + } else { + // MERGE + tmpLocale = loadLocale(name); + if (tmpLocale != null) { + parentConfig = tmpLocale._config; + } + config = mergeConfigs(parentConfig, config); + if (tmpLocale == null) { + // updateLocale is called for creating a new locale + // Set abbr so it will have a name (getters return + // undefined otherwise). + config.abbr = name; + } + locale = new Locale(config); + locale.parentLocale = locales[name]; + locales[name] = locale; + } - /***/ }), - /* 40 */ - /***/ (function(module, exports, __webpack_require__) { + // backwards compat for now: also set the locale + getSetGlobalLocale(name); + } else { + // pass null for config to unupdate, useful for tests + if (locales[name] != null) { + if (locales[name].parentLocale != null) { + locales[name] = locales[name].parentLocale; + if (name === getSetGlobalLocale()) { + getSetGlobalLocale(name); + } + } else if (locales[name] != null) { + delete locales[name]; + } + } + } + return locales[name]; + } - var anObject = __webpack_require__(51); - var IE8_DOM_DEFINE = __webpack_require__(216); - var toPrimitive = __webpack_require__(121); - var dP = Object.defineProperty; + // returns locale data + function getLocale(key) { + var locale; - exports.f = __webpack_require__(41) ? Object.defineProperty : function defineProperty(O, P, Attributes) { - anObject(O); - P = toPrimitive(P, true); - anObject(Attributes); - if (IE8_DOM_DEFINE) try { - return dP(O, P, Attributes); - } catch (e) { /* empty */ } - if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); - if ('value' in Attributes) O[P] = Attributes.value; - return O; - }; + if (key && key._locale && key._locale._abbr) { + key = key._locale._abbr; + } + if (!key) { + return globalLocale; + } - /***/ }), - /* 41 */ - /***/ (function(module, exports, __webpack_require__) { + if (!isArray(key)) { + //short-circuit everything else + locale = loadLocale(key); + if (locale) { + return locale; + } + key = [key]; + } - // Thank's IE8 for his funny defineProperty - module.exports = !__webpack_require__(53)(function () { - return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; - }); + return chooseLocale(key); + } + function listLocales() { + return keys(locales); + } - /***/ }), - /* 42 */ - /***/ (function(module, exports, __webpack_require__) { + function checkOverflow(m) { + var overflow, + a = m._a; - "use strict"; + if (a && getParsingFlags(m).overflow === -2) { + overflow = + a[MONTH] < 0 || a[MONTH] > 11 + ? MONTH + : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) + ? DATE + : a[HOUR] < 0 || + a[HOUR] > 24 || + (a[HOUR] === 24 && + (a[MINUTE] !== 0 || + a[SECOND] !== 0 || + a[MILLISECOND] !== 0)) + ? HOUR + : a[MINUTE] < 0 || a[MINUTE] > 59 + ? MINUTE + : a[SECOND] < 0 || a[SECOND] > 59 + ? SECOND + : a[MILLISECOND] < 0 || a[MILLISECOND] > 999 + ? MILLISECOND + : -1; + if ( + getParsingFlags(m)._overflowDayOfYear && + (overflow < YEAR || overflow > DATE) + ) { + overflow = DATE; + } + if (getParsingFlags(m)._overflowWeeks && overflow === -1) { + overflow = WEEK; + } + if (getParsingFlags(m)._overflowWeekday && overflow === -1) { + overflow = WEEKDAY; + } - Object.defineProperty(exports, "__esModule", { - value: true - }); + getParsingFlags(m).overflow = overflow; + } - exports["default"] = function (componentOrElement) { - return (0, _ownerDocument2["default"])(_reactDom2["default"].findDOMNode(componentOrElement)); - }; + return m; + } - var _reactDom = __webpack_require__(3); + // iso 8601 regex + // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00) + var extendedIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, + basicIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, + tzRegex = /Z|[+-]\d\d(?::?\d\d)?/, + isoDates = [ + ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/], + ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/], + ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/], + ['GGGG-[W]WW', /\d{4}-W\d\d/, false], + ['YYYY-DDD', /\d{4}-\d{3}/], + ['YYYY-MM', /\d{4}-\d\d/, false], + ['YYYYYYMMDD', /[+-]\d{10}/], + ['YYYYMMDD', /\d{8}/], + ['GGGG[W]WWE', /\d{4}W\d{3}/], + ['GGGG[W]WW', /\d{4}W\d{2}/, false], + ['YYYYDDD', /\d{7}/], + ['YYYYMM', /\d{6}/, false], + ['YYYY', /\d{4}/, false], + ], + // iso time formats and regexes + isoTimes = [ + ['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/], + ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/], + ['HH:mm:ss', /\d\d:\d\d:\d\d/], + ['HH:mm', /\d\d:\d\d/], + ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/], + ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/], + ['HHmmss', /\d\d\d\d\d\d/], + ['HHmm', /\d\d\d\d/], + ['HH', /\d\d/], + ], + aspNetJsonRegex = /^\/?Date\((-?\d+)/i, + // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3 + rfc2822 = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/, + obsOffsets = { + UT: 0, + GMT: 0, + EDT: -4 * 60, + EST: -5 * 60, + CDT: -5 * 60, + CST: -6 * 60, + MDT: -6 * 60, + MST: -7 * 60, + PDT: -7 * 60, + PST: -8 * 60, + }; - var _reactDom2 = _interopRequireDefault(_reactDom); + // date from iso format + function configFromISO(config) { + var i, + l, + string = config._i, + match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string), + allowTime, + dateFormat, + timeFormat, + tzFormat; - var _ownerDocument = __webpack_require__(22); + if (match) { + getParsingFlags(config).iso = true; - var _ownerDocument2 = _interopRequireDefault(_ownerDocument); + for (i = 0, l = isoDates.length; i < l; i++) { + if (isoDates[i][1].exec(match[1])) { + dateFormat = isoDates[i][0]; + allowTime = isoDates[i][2] !== false; + break; + } + } + if (dateFormat == null) { + config._isValid = false; + return; + } + if (match[3]) { + for (i = 0, l = isoTimes.length; i < l; i++) { + if (isoTimes[i][1].exec(match[3])) { + // match[2] should be 'T' or space + timeFormat = (match[2] || ' ') + isoTimes[i][0]; + break; + } + } + if (timeFormat == null) { + config._isValid = false; + return; + } + } + if (!allowTime && timeFormat != null) { + config._isValid = false; + return; + } + if (match[4]) { + if (tzRegex.exec(match[4])) { + tzFormat = 'Z'; + } else { + config._isValid = false; + return; + } + } + config._f = dateFormat + (timeFormat || '') + (tzFormat || ''); + configFromStringAndFormat(config); + } else { + config._isValid = false; + } + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + function extractFromRFC2822Strings( + yearStr, + monthStr, + dayStr, + hourStr, + minuteStr, + secondStr + ) { + var result = [ + untruncateYear(yearStr), + defaultLocaleMonthsShort.indexOf(monthStr), + parseInt(dayStr, 10), + parseInt(hourStr, 10), + parseInt(minuteStr, 10), + ]; - module.exports = exports['default']; + if (secondStr) { + result.push(parseInt(secondStr, 10)); + } - /***/ }), - /* 43 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + return result; + } - "use strict"; - /** - * @ignore - * some key-codes definition and utils from closure-library - * @author yiminghe@gmail.com - */ - var KeyCode = { - /** - * MAC_ENTER - */ - MAC_ENTER: 3, + function untruncateYear(yearStr) { + var year = parseInt(yearStr, 10); + if (year <= 49) { + return 2000 + year; + } else if (year <= 999) { + return 1900 + year; + } + return year; + } - /** - * BACKSPACE - */ - BACKSPACE: 8, + function preprocessRFC2822(s) { + // Remove comments and folding whitespace and replace multiple-spaces with a single space + return s + .replace(/\([^)]*\)|[\n\t]/g, ' ') + .replace(/(\s\s+)/g, ' ') + .replace(/^\s\s*/, '') + .replace(/\s\s*$/, ''); + } - /** - * TAB - */ - TAB: 9, + function checkWeekday(weekdayStr, parsedInput, config) { + if (weekdayStr) { + // TODO: Replace the vanilla JS Date object with an independent day-of-week check. + var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr), + weekdayActual = new Date( + parsedInput[0], + parsedInput[1], + parsedInput[2] + ).getDay(); + if (weekdayProvided !== weekdayActual) { + getParsingFlags(config).weekdayMismatch = true; + config._isValid = false; + return false; + } + } + return true; + } - /** - * NUMLOCK on FF/Safari Mac - */ - NUM_CENTER: 12, + function calculateOffset(obsOffset, militaryOffset, numOffset) { + if (obsOffset) { + return obsOffsets[obsOffset]; + } else if (militaryOffset) { + // the only allowed military tz is Z + return 0; + } else { + var hm = parseInt(numOffset, 10), + m = hm % 100, + h = (hm - m) / 100; + return h * 60 + m; + } + } - /** - * ENTER - */ - ENTER: 13, + // date and time from ref 2822 format + function configFromRFC2822(config) { + var match = rfc2822.exec(preprocessRFC2822(config._i)), + parsedArray; + if (match) { + parsedArray = extractFromRFC2822Strings( + match[4], + match[3], + match[2], + match[5], + match[6], + match[7] + ); + if (!checkWeekday(match[1], parsedArray, config)) { + return; + } - /** - * SHIFT - */ - SHIFT: 16, + config._a = parsedArray; + config._tzm = calculateOffset(match[8], match[9], match[10]); - /** - * CTRL - */ - CTRL: 17, + config._d = createUTCDate.apply(null, config._a); + config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm); - /** - * ALT - */ - ALT: 18, + getParsingFlags(config).rfc2822 = true; + } else { + config._isValid = false; + } + } - /** - * PAUSE - */ - PAUSE: 19, + // date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict + function configFromString(config) { + var matched = aspNetJsonRegex.exec(config._i); + if (matched !== null) { + config._d = new Date(+matched[1]); + return; + } - /** - * CAPS_LOCK - */ - CAPS_LOCK: 20, + configFromISO(config); + if (config._isValid === false) { + delete config._isValid; + } else { + return; + } - /** - * ESC - */ - ESC: 27, + configFromRFC2822(config); + if (config._isValid === false) { + delete config._isValid; + } else { + return; + } - /** - * SPACE - */ - SPACE: 32, + if (config._strict) { + config._isValid = false; + } else { + // Final attempt, use Input Fallback + hooks.createFromInputFallback(config); + } + } - /** - * PAGE_UP - */ - PAGE_UP: 33, + hooks.createFromInputFallback = deprecate( + 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' + + 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' + + 'discouraged and will be removed in an upcoming major release. Please refer to ' + + 'http://momentjs.com/guides/#/warnings/js-date/ for more info.', + function (config) { + config._d = new Date(config._i + (config._useUTC ? ' UTC' : '')); + } + ); - /** - * PAGE_DOWN - */ - PAGE_DOWN: 34, + // Pick the first defined of two or three arguments. + function defaults(a, b, c) { + if (a != null) { + return a; + } + if (b != null) { + return b; + } + return c; + } - /** - * END - */ - END: 35, + function currentDateArray(config) { + // hooks is actually the exported moment object + var nowValue = new Date(hooks.now()); + if (config._useUTC) { + return [ + nowValue.getUTCFullYear(), + nowValue.getUTCMonth(), + nowValue.getUTCDate(), + ]; + } + return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()]; + } - /** - * HOME - */ - HOME: 36, + // convert an array to a date. + // the array should mirror the parameters below + // note: all values past the year are optional and will default to the lowest possible value. + // [year, month, day , hour, minute, second, millisecond] + function configFromArray(config) { + var i, + date, + input = [], + currentDate, + expectedWeekday, + yearToUse; - /** - * LEFT - */ - LEFT: 37, + if (config._d) { + return; + } - /** - * UP - */ - UP: 38, + currentDate = currentDateArray(config); - /** - * RIGHT - */ - RIGHT: 39, + //compute day of the year from weeks and weekdays + if (config._w && config._a[DATE] == null && config._a[MONTH] == null) { + dayOfYearFromWeekInfo(config); + } - /** - * DOWN - */ - DOWN: 40, + //if the day of the year is set, figure out what it is + if (config._dayOfYear != null) { + yearToUse = defaults(config._a[YEAR], currentDate[YEAR]); - /** - * PRINT_SCREEN - */ - PRINT_SCREEN: 44, + if ( + config._dayOfYear > daysInYear(yearToUse) || + config._dayOfYear === 0 + ) { + getParsingFlags(config)._overflowDayOfYear = true; + } - /** - * INSERT - */ - INSERT: 45, + date = createUTCDate(yearToUse, 0, config._dayOfYear); + config._a[MONTH] = date.getUTCMonth(); + config._a[DATE] = date.getUTCDate(); + } - /** - * DELETE - */ - DELETE: 46, + // Default to current date. + // * if no year, month, day of month are given, default to today + // * if day of month is given, default month and year + // * if month is given, default only year + // * if year is given, don't default anything + for (i = 0; i < 3 && config._a[i] == null; ++i) { + config._a[i] = input[i] = currentDate[i]; + } - /** - * ZERO - */ - ZERO: 48, + // Zero out whatever was not defaulted, including time + for (; i < 7; i++) { + config._a[i] = input[i] = + config._a[i] == null ? (i === 2 ? 1 : 0) : config._a[i]; + } - /** - * ONE - */ - ONE: 49, + // Check for 24:00:00.000 + if ( + config._a[HOUR] === 24 && + config._a[MINUTE] === 0 && + config._a[SECOND] === 0 && + config._a[MILLISECOND] === 0 + ) { + config._nextDay = true; + config._a[HOUR] = 0; + } - /** - * TWO - */ - TWO: 50, + config._d = (config._useUTC ? createUTCDate : createDate).apply( + null, + input + ); + expectedWeekday = config._useUTC + ? config._d.getUTCDay() + : config._d.getDay(); - /** - * THREE - */ - THREE: 51, + // Apply timezone offset from input. The actual utcOffset can be changed + // with parseZone. + if (config._tzm != null) { + config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm); + } - /** - * FOUR - */ - FOUR: 52, + if (config._nextDay) { + config._a[HOUR] = 24; + } - /** - * FIVE - */ - FIVE: 53, + // check for mismatching day of week + if ( + config._w && + typeof config._w.d !== 'undefined' && + config._w.d !== expectedWeekday + ) { + getParsingFlags(config).weekdayMismatch = true; + } + } - /** - * SIX - */ - SIX: 54, + function dayOfYearFromWeekInfo(config) { + var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek; - /** - * SEVEN - */ - SEVEN: 55, + w = config._w; + if (w.GG != null || w.W != null || w.E != null) { + dow = 1; + doy = 4; - /** - * EIGHT - */ - EIGHT: 56, + // TODO: We need to take the current isoWeekYear, but that depends on + // how we interpret now (local, utc, fixed offset). So create + // a now version of current config (take local/utc/offset flags, and + // create now). + weekYear = defaults( + w.GG, + config._a[YEAR], + weekOfYear(createLocal(), 1, 4).year + ); + week = defaults(w.W, 1); + weekday = defaults(w.E, 1); + if (weekday < 1 || weekday > 7) { + weekdayOverflow = true; + } + } else { + dow = config._locale._week.dow; + doy = config._locale._week.doy; - /** - * NINE - */ - NINE: 57, + curWeek = weekOfYear(createLocal(), dow, doy); - /** - * QUESTION_MARK - */ - QUESTION_MARK: 63, + weekYear = defaults(w.gg, config._a[YEAR], curWeek.year); - /** - * A - */ - A: 65, + // Default to current week. + week = defaults(w.w, curWeek.week); - /** - * B - */ - B: 66, + if (w.d != null) { + // weekday -- low day numbers are considered next week + weekday = w.d; + if (weekday < 0 || weekday > 6) { + weekdayOverflow = true; + } + } else if (w.e != null) { + // local weekday -- counting starts from beginning of week + weekday = w.e + dow; + if (w.e < 0 || w.e > 6) { + weekdayOverflow = true; + } + } else { + // default to beginning of week + weekday = dow; + } + } + if (week < 1 || week > weeksInYear(weekYear, dow, doy)) { + getParsingFlags(config)._overflowWeeks = true; + } else if (weekdayOverflow != null) { + getParsingFlags(config)._overflowWeekday = true; + } else { + temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy); + config._a[YEAR] = temp.year; + config._dayOfYear = temp.dayOfYear; + } + } - /** - * C - */ - C: 67, + // constant that refers to the ISO standard + hooks.ISO_8601 = function () {}; - /** - * D - */ - D: 68, + // constant that refers to the RFC 2822 form + hooks.RFC_2822 = function () {}; - /** - * E - */ - E: 69, + // date from string and format string + function configFromStringAndFormat(config) { + // TODO: Move this to another part of the creation flow to prevent circular deps + if (config._f === hooks.ISO_8601) { + configFromISO(config); + return; + } + if (config._f === hooks.RFC_2822) { + configFromRFC2822(config); + return; + } + config._a = []; + getParsingFlags(config).empty = true; - /** - * F - */ - F: 70, + // This array is used to make a Date, either with `new Date` or `Date.UTC` + var string = '' + config._i, + i, + parsedInput, + tokens, + token, + skipped, + stringLength = string.length, + totalParsedInputLength = 0, + era; - /** - * G - */ - G: 71, + tokens = + expandFormat(config._f, config._locale).match(formattingTokens) || []; - /** - * H - */ - H: 72, + for (i = 0; i < tokens.length; i++) { + token = tokens[i]; + parsedInput = (string.match(getParseRegexForToken(token, config)) || + [])[0]; + // console.log('token', token, 'parsedInput', parsedInput, + // 'regex', getParseRegexForToken(token, config)); + if (parsedInput) { + skipped = string.substr(0, string.indexOf(parsedInput)); + if (skipped.length > 0) { + getParsingFlags(config).unusedInput.push(skipped); + } + string = string.slice( + string.indexOf(parsedInput) + parsedInput.length + ); + totalParsedInputLength += parsedInput.length; + } + // don't parse if it's not a known token + if (formatTokenFunctions[token]) { + if (parsedInput) { + getParsingFlags(config).empty = false; + } else { + getParsingFlags(config).unusedTokens.push(token); + } + addTimeToArrayFromToken(token, parsedInput, config); + } else if (config._strict && !parsedInput) { + getParsingFlags(config).unusedTokens.push(token); + } + } - /** - * I - */ - I: 73, + // add remaining unparsed input length to the string + getParsingFlags(config).charsLeftOver = + stringLength - totalParsedInputLength; + if (string.length > 0) { + getParsingFlags(config).unusedInput.push(string); + } - /** - * J - */ - J: 74, + // clear _12h flag if hour is <= 12 + if ( + config._a[HOUR] <= 12 && + getParsingFlags(config).bigHour === true && + config._a[HOUR] > 0 + ) { + getParsingFlags(config).bigHour = undefined; + } - /** - * K - */ - K: 75, + getParsingFlags(config).parsedDateParts = config._a.slice(0); + getParsingFlags(config).meridiem = config._meridiem; + // handle meridiem + config._a[HOUR] = meridiemFixWrap( + config._locale, + config._a[HOUR], + config._meridiem + ); - /** - * L - */ - L: 76, + // handle era + era = getParsingFlags(config).era; + if (era !== null) { + config._a[YEAR] = config._locale.erasConvertYear(era, config._a[YEAR]); + } - /** - * M - */ - M: 77, + configFromArray(config); + checkOverflow(config); + } - /** - * N - */ - N: 78, + function meridiemFixWrap(locale, hour, meridiem) { + var isPm; - /** - * O - */ - O: 79, + if (meridiem == null) { + // nothing to do + return hour; + } + if (locale.meridiemHour != null) { + return locale.meridiemHour(hour, meridiem); + } else if (locale.isPM != null) { + // Fallback + isPm = locale.isPM(meridiem); + if (isPm && hour < 12) { + hour += 12; + } + if (!isPm && hour === 12) { + hour = 0; + } + return hour; + } else { + // this is not supposed to happen + return hour; + } + } - /** - * P - */ - P: 80, + // date from string and array of format strings + function configFromStringAndArray(config) { + var tempConfig, + bestMoment, + scoreToBeat, + i, + currentScore, + validFormatFound, + bestFormatIsValid = false; - /** - * Q - */ - Q: 81, + if (config._f.length === 0) { + getParsingFlags(config).invalidFormat = true; + config._d = new Date(NaN); + return; + } - /** - * R - */ - R: 82, + for (i = 0; i < config._f.length; i++) { + currentScore = 0; + validFormatFound = false; + tempConfig = copyConfig({}, config); + if (config._useUTC != null) { + tempConfig._useUTC = config._useUTC; + } + tempConfig._f = config._f[i]; + configFromStringAndFormat(tempConfig); - /** - * S - */ - S: 83, + if (isValid(tempConfig)) { + validFormatFound = true; + } - /** - * T - */ - T: 84, + // if there is any input that was not parsed add a penalty for that format + currentScore += getParsingFlags(tempConfig).charsLeftOver; - /** - * U - */ - U: 85, + //or tokens + currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10; - /** - * V - */ - V: 86, + getParsingFlags(tempConfig).score = currentScore; - /** - * W - */ - W: 87, + if (!bestFormatIsValid) { + if ( + scoreToBeat == null || + currentScore < scoreToBeat || + validFormatFound + ) { + scoreToBeat = currentScore; + bestMoment = tempConfig; + if (validFormatFound) { + bestFormatIsValid = true; + } + } + } else { + if (currentScore < scoreToBeat) { + scoreToBeat = currentScore; + bestMoment = tempConfig; + } + } + } - /** - * X - */ - X: 88, + extend(config, bestMoment || tempConfig); + } - /** - * Y - */ - Y: 89, + function configFromObject(config) { + if (config._d) { + return; + } - /** - * Z - */ - Z: 90, + var i = normalizeObjectUnits(config._i), + dayOrDate = i.day === undefined ? i.date : i.day; + config._a = map( + [i.year, i.month, dayOrDate, i.hour, i.minute, i.second, i.millisecond], + function (obj) { + return obj && parseInt(obj, 10); + } + ); - /** - * META - */ - META: 91, + configFromArray(config); + } - /** - * WIN_KEY_RIGHT - */ - WIN_KEY_RIGHT: 92, + function createFromConfig(config) { + var res = new Moment(checkOverflow(prepareConfig(config))); + if (res._nextDay) { + // Adding is smart enough around DST + res.add(1, 'd'); + res._nextDay = undefined; + } - /** - * CONTEXT_MENU - */ - CONTEXT_MENU: 93, + return res; + } - /** - * NUM_ZERO - */ - NUM_ZERO: 96, + function prepareConfig(config) { + var input = config._i, + format = config._f; - /** - * NUM_ONE - */ - NUM_ONE: 97, + config._locale = config._locale || getLocale(config._l); - /** - * NUM_TWO - */ - NUM_TWO: 98, + if (input === null || (format === undefined && input === '')) { + return createInvalid({ nullInput: true }); + } - /** - * NUM_THREE - */ - NUM_THREE: 99, + if (typeof input === 'string') { + config._i = input = config._locale.preparse(input); + } - /** - * NUM_FOUR - */ - NUM_FOUR: 100, + if (isMoment(input)) { + return new Moment(checkOverflow(input)); + } else if (isDate(input)) { + config._d = input; + } else if (isArray(format)) { + configFromStringAndArray(config); + } else if (format) { + configFromStringAndFormat(config); + } else { + configFromInput(config); + } - /** - * NUM_FIVE - */ - NUM_FIVE: 101, + if (!isValid(config)) { + config._d = null; + } - /** - * NUM_SIX - */ - NUM_SIX: 102, + return config; + } - /** - * NUM_SEVEN - */ - NUM_SEVEN: 103, + function configFromInput(config) { + var input = config._i; + if (isUndefined(input)) { + config._d = new Date(hooks.now()); + } else if (isDate(input)) { + config._d = new Date(input.valueOf()); + } else if (typeof input === 'string') { + configFromString(config); + } else if (isArray(input)) { + config._a = map(input.slice(0), function (obj) { + return parseInt(obj, 10); + }); + configFromArray(config); + } else if (isObject(input)) { + configFromObject(config); + } else if (isNumber(input)) { + // from milliseconds + config._d = new Date(input); + } else { + hooks.createFromInputFallback(config); + } + } - /** - * NUM_EIGHT - */ - NUM_EIGHT: 104, + function createLocalOrUTC(input, format, locale, strict, isUTC) { + var c = {}; - /** - * NUM_NINE - */ - NUM_NINE: 105, + if (format === true || format === false) { + strict = format; + format = undefined; + } - /** - * NUM_MULTIPLY - */ - NUM_MULTIPLY: 106, + if (locale === true || locale === false) { + strict = locale; + locale = undefined; + } - /** - * NUM_PLUS - */ - NUM_PLUS: 107, + if ( + (isObject(input) && isObjectEmpty(input)) || + (isArray(input) && input.length === 0) + ) { + input = undefined; + } + // object construction must be done this way. + // https://github.com/moment/moment/issues/1423 + c._isAMomentObject = true; + c._useUTC = c._isUTC = isUTC; + c._l = locale; + c._i = input; + c._f = format; + c._strict = strict; - /** - * NUM_MINUS - */ - NUM_MINUS: 109, + return createFromConfig(c); + } - /** - * NUM_PERIOD - */ - NUM_PERIOD: 110, + function createLocal(input, format, locale, strict) { + return createLocalOrUTC(input, format, locale, strict, false); + } - /** - * NUM_DIVISION - */ - NUM_DIVISION: 111, + var prototypeMin = deprecate( + 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/', + function () { + var other = createLocal.apply(null, arguments); + if (this.isValid() && other.isValid()) { + return other < this ? this : other; + } else { + return createInvalid(); + } + } + ), + prototypeMax = deprecate( + 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/', + function () { + var other = createLocal.apply(null, arguments); + if (this.isValid() && other.isValid()) { + return other > this ? this : other; + } else { + return createInvalid(); + } + } + ); - /** - * F1 - */ - F1: 112, + // Pick a moment m from moments so that m[fn](other) is true for all + // other. This relies on the function fn to be transitive. + // + // moments should either be an array of moment objects or an array, whose + // first element is an array of moment objects. + function pickBy(fn, moments) { + var res, i; + if (moments.length === 1 && isArray(moments[0])) { + moments = moments[0]; + } + if (!moments.length) { + return createLocal(); + } + res = moments[0]; + for (i = 1; i < moments.length; ++i) { + if (!moments[i].isValid() || moments[i][fn](res)) { + res = moments[i]; + } + } + return res; + } - /** - * F2 - */ - F2: 113, + // TODO: Use [].sort instead? + function min() { + var args = [].slice.call(arguments, 0); - /** - * F3 - */ - F3: 114, + return pickBy('isBefore', args); + } - /** - * F4 - */ - F4: 115, + function max() { + var args = [].slice.call(arguments, 0); - /** - * F5 - */ - F5: 116, + return pickBy('isAfter', args); + } - /** - * F6 - */ - F6: 117, + var now = function () { + return Date.now ? Date.now() : +new Date(); + }; - /** - * F7 - */ - F7: 118, + var ordering = [ + 'year', + 'quarter', + 'month', + 'week', + 'day', + 'hour', + 'minute', + 'second', + 'millisecond', + ]; - /** - * F8 - */ - F8: 119, + function isDurationValid(m) { + var key, + unitHasDecimal = false, + i; + for (key in m) { + if ( + hasOwnProp(m, key) && + !( + indexOf.call(ordering, key) !== -1 && + (m[key] == null || !isNaN(m[key])) + ) + ) { + return false; + } + } - /** - * F9 - */ - F9: 120, + for (i = 0; i < ordering.length; ++i) { + if (m[ordering[i]]) { + if (unitHasDecimal) { + return false; // only allow non-integers for smallest unit + } + if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) { + unitHasDecimal = true; + } + } + } - /** - * F10 - */ - F10: 121, + return true; + } - /** - * F11 - */ - F11: 122, + function isValid$1() { + return this._isValid; + } - /** - * F12 - */ - F12: 123, + function createInvalid$1() { + return createDuration(NaN); + } - /** - * NUMLOCK - */ - NUMLOCK: 144, + function Duration(duration) { + var normalizedInput = normalizeObjectUnits(duration), + years = normalizedInput.year || 0, + quarters = normalizedInput.quarter || 0, + months = normalizedInput.month || 0, + weeks = normalizedInput.week || normalizedInput.isoWeek || 0, + days = normalizedInput.day || 0, + hours = normalizedInput.hour || 0, + minutes = normalizedInput.minute || 0, + seconds = normalizedInput.second || 0, + milliseconds = normalizedInput.millisecond || 0; - /** - * SEMICOLON - */ - SEMICOLON: 186, + this._isValid = isDurationValid(normalizedInput); - /** - * DASH - */ - DASH: 189, + // representation for dateAddRemove + this._milliseconds = + +milliseconds + + seconds * 1e3 + // 1000 + minutes * 6e4 + // 1000 * 60 + hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978 + // Because of dateAddRemove treats 24 hours as different from a + // day when working around DST, we need to store them separately + this._days = +days + weeks * 7; + // It is impossible to translate months into days without knowing + // which months you are are talking about, so we have to store + // it separately. + this._months = +months + quarters * 3 + years * 12; - /** - * EQUALS - */ - EQUALS: 187, + this._data = {}; - /** - * COMMA - */ - COMMA: 188, + this._locale = getLocale(); - /** - * PERIOD - */ - PERIOD: 190, + this._bubble(); + } - /** - * SLASH - */ - SLASH: 191, + function isDuration(obj) { + return obj instanceof Duration; + } - /** - * APOSTROPHE - */ - APOSTROPHE: 192, + function absRound(number) { + if (number < 0) { + return Math.round(-1 * number) * -1; + } else { + return Math.round(number); + } + } - /** - * SINGLE_QUOTE - */ - SINGLE_QUOTE: 222, + // compare two arrays, return the number of differences + function compareArrays(array1, array2, dontConvert) { + var len = Math.min(array1.length, array2.length), + lengthDiff = Math.abs(array1.length - array2.length), + diffs = 0, + i; + for (i = 0; i < len; i++) { + if ( + (dontConvert && array1[i] !== array2[i]) || + (!dontConvert && toInt(array1[i]) !== toInt(array2[i])) + ) { + diffs++; + } + } + return diffs + lengthDiff; + } - /** - * OPEN_SQUARE_BRACKET - */ - OPEN_SQUARE_BRACKET: 219, + // FORMATTING - /** - * BACKSLASH - */ - BACKSLASH: 220, + function offset(token, separator) { + addFormatToken(token, 0, 0, function () { + var offset = this.utcOffset(), + sign = '+'; + if (offset < 0) { + offset = -offset; + sign = '-'; + } + return ( + sign + + zeroFill(~~(offset / 60), 2) + + separator + + zeroFill(~~offset % 60, 2) + ); + }); + } - /** - * CLOSE_SQUARE_BRACKET - */ - CLOSE_SQUARE_BRACKET: 221, + offset('Z', ':'); + offset('ZZ', ''); - /** - * WIN_KEY - */ - WIN_KEY: 224, + // PARSING - /** - * MAC_FF_META - */ - MAC_FF_META: 224, + addRegexToken('Z', matchShortOffset); + addRegexToken('ZZ', matchShortOffset); + addParseToken(['Z', 'ZZ'], function (input, array, config) { + config._useUTC = true; + config._tzm = offsetFromString(matchShortOffset, input); + }); - /** - * WIN_IME - */ - WIN_IME: 229, - // ======================== Function ======================== + // HELPERS - /** - * whether text and modified key is entered at the same time. - */ - isTextModifyingKeyEvent: function isTextModifyingKeyEvent(e) { - var keyCode = e.keyCode; + // timezone chunker + // '+10:00' > ['10', '00'] + // '-1530' > ['-15', '30'] + var chunkOffset = /([\+\-]|\d\d)/gi; - if (e.altKey && !e.ctrlKey || e.metaKey || // Function keys don't generate text - keyCode >= KeyCode.F1 && keyCode <= KeyCode.F12) { - return false; - } // The following keys are quite harmless, even in combination with - // CTRL, ALT or SHIFT. + function offsetFromString(matcher, string) { + var matches = (string || '').match(matcher), + chunk, + parts, + minutes; + if (matches === null) { + return null; + } - switch (keyCode) { - case KeyCode.ALT: - case KeyCode.CAPS_LOCK: - case KeyCode.CONTEXT_MENU: - case KeyCode.CTRL: - case KeyCode.DOWN: - case KeyCode.END: - case KeyCode.ESC: - case KeyCode.HOME: - case KeyCode.INSERT: - case KeyCode.LEFT: - case KeyCode.MAC_FF_META: - case KeyCode.META: - case KeyCode.NUMLOCK: - case KeyCode.NUM_CENTER: - case KeyCode.PAGE_DOWN: - case KeyCode.PAGE_UP: - case KeyCode.PAUSE: - case KeyCode.PRINT_SCREEN: - case KeyCode.RIGHT: - case KeyCode.SHIFT: - case KeyCode.UP: - case KeyCode.WIN_KEY: - case KeyCode.WIN_KEY_RIGHT: - return false; + chunk = matches[matches.length - 1] || []; + parts = (chunk + '').match(chunkOffset) || ['-', 0, 0]; + minutes = +(parts[1] * 60) + toInt(parts[2]); - default: - return true; + return minutes === 0 ? 0 : parts[0] === '+' ? minutes : -minutes; } - }, - /** - * whether character is entered. - */ - isCharacterKey: function isCharacterKey(keyCode) { - if (keyCode >= KeyCode.ZERO && keyCode <= KeyCode.NINE) { - return true; + // Return a moment from input, that is local/utc/zone equivalent to model. + function cloneWithOffset(input, model) { + var res, diff; + if (model._isUTC) { + res = model.clone(); + diff = + (isMoment(input) || isDate(input) + ? input.valueOf() + : createLocal(input).valueOf()) - res.valueOf(); + // Use low-level api, because this fn is low-level api. + res._d.setTime(res._d.valueOf() + diff); + hooks.updateOffset(res, false); + return res; + } else { + return createLocal(input).local(); + } } - if (keyCode >= KeyCode.NUM_ZERO && keyCode <= KeyCode.NUM_MULTIPLY) { - return true; + function getDateOffset(m) { + // On Firefox.24 Date#getTimezoneOffset returns a floating point. + // https://github.com/moment/moment/pull/1871 + return -Math.round(m._d.getTimezoneOffset()); } - if (keyCode >= KeyCode.A && keyCode <= KeyCode.Z) { - return true; - } // Safari sends zero key code for non-latin characters. - + // HOOKS - if (window.navigator.userAgent.indexOf('WebKit') !== -1 && keyCode === 0) { - return true; - } + // This function will be called whenever a moment is mutated. + // It is intended to keep the offset in sync with the timezone. + hooks.updateOffset = function () {}; - switch (keyCode) { - case KeyCode.SPACE: - case KeyCode.QUESTION_MARK: - case KeyCode.NUM_PLUS: - case KeyCode.NUM_MINUS: - case KeyCode.NUM_PERIOD: - case KeyCode.NUM_DIVISION: - case KeyCode.SEMICOLON: - case KeyCode.DASH: - case KeyCode.EQUALS: - case KeyCode.COMMA: - case KeyCode.PERIOD: - case KeyCode.SLASH: - case KeyCode.APOSTROPHE: - case KeyCode.SINGLE_QUOTE: - case KeyCode.OPEN_SQUARE_BRACKET: - case KeyCode.BACKSLASH: - case KeyCode.CLOSE_SQUARE_BRACKET: - return true; + // MOMENTS - default: - return false; + // keepLocalTime = true means only change the timezone, without + // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]--> + // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset + // +0200, so we adjust the time as needed, to be valid. + // + // Keeping the time actually adds/subtracts (one hour) + // from the actual represented time. That is why we call updateOffset + // a second time. In case it wants us to change the offset again + // _changeInProgress == true case, then we have to adjust, because + // there is no such time in the given timezone. + function getSetOffset(input, keepLocalTime, keepMinutes) { + var offset = this._offset || 0, + localAdjust; + if (!this.isValid()) { + return input != null ? this : NaN; + } + if (input != null) { + if (typeof input === 'string') { + input = offsetFromString(matchShortOffset, input); + if (input === null) { + return this; + } + } else if (Math.abs(input) < 16 && !keepMinutes) { + input = input * 60; + } + if (!this._isUTC && keepLocalTime) { + localAdjust = getDateOffset(this); + } + this._offset = input; + this._isUTC = true; + if (localAdjust != null) { + this.add(localAdjust, 'm'); + } + if (offset !== input) { + if (!keepLocalTime || this._changeInProgress) { + addSubtract( + this, + createDuration(input - offset, 'm'), + 1, + false + ); + } else if (!this._changeInProgress) { + this._changeInProgress = true; + hooks.updateOffset(this, true); + this._changeInProgress = null; + } + } + return this; + } else { + return this._isUTC ? offset : getDateOffset(this); + } } - } - }; - /* harmony default export */ __webpack_exports__["a"] = (KeyCode); - /***/ }), - /* 44 */ - /***/ (function(module, exports, __webpack_require__) { + function getSetZone(input, keepLocalTime) { + if (input != null) { + if (typeof input !== 'string') { + input = -input; + } - "use strict"; + this.utcOffset(input, keepLocalTime); + return this; + } else { + return -this.utcOffset(); + } + } - module.exports = __webpack_require__(808); + function setOffsetToUTC(keepLocalTime) { + return this.utcOffset(0, keepLocalTime); + } - /***/ }), - /* 45 */ - /***/ (function(module, exports, __webpack_require__) { + function setOffsetToLocal(keepLocalTime) { + if (this._isUTC) { + this.utcOffset(0, keepLocalTime); + this._isUTC = false; - "use strict"; + if (keepLocalTime) { + this.subtract(getDateOffset(this), 'm'); + } + } + return this; + } + function setOffsetToParsedOffset() { + if (this._tzm != null) { + this.utcOffset(this._tzm, false, true); + } else if (typeof this._i === 'string') { + var tZone = offsetFromString(matchOffset, this._i); + if (tZone != null) { + this.utcOffset(tZone); + } else { + this.utcOffset(0, true); + } + } + return this; + } - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = scrollTop; + function hasAlignedHourOffset(input) { + if (!this.isValid()) { + return false; + } + input = input ? createLocal(input).utcOffset() : 0; - var _isWindow = __webpack_require__(100); + return (this.utcOffset() - input) % 60 === 0; + } - var _isWindow2 = _interopRequireDefault(_isWindow); + function isDaylightSavingTime() { + return ( + this.utcOffset() > this.clone().month(0).utcOffset() || + this.utcOffset() > this.clone().month(5).utcOffset() + ); + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + function isDaylightSavingTimeShifted() { + if (!isUndefined(this._isDSTShifted)) { + return this._isDSTShifted; + } - function scrollTop(node, val) { - var win = (0, _isWindow2.default)(node); + var c = {}, + other; - if (val === undefined) return win ? 'pageYOffset' in win ? win.pageYOffset : win.document.documentElement.scrollTop : node.scrollTop; + copyConfig(c, this); + c = prepareConfig(c); - if (win) win.scrollTo('pageXOffset' in win ? win.pageXOffset : win.document.documentElement.scrollLeft, val);else node.scrollTop = val; - } - module.exports = exports['default']; + if (c._a) { + other = c._isUTC ? createUTC(c._a) : createLocal(c._a); + this._isDSTShifted = + this.isValid() && compareArrays(c._a, other.toArray()) > 0; + } else { + this._isDSTShifted = false; + } - /***/ }), - /* 46 */ - /***/ (function(module, exports, __webpack_require__) { + return this._isDSTShifted; + } - "use strict"; + function isLocal() { + return this.isValid() ? !this._isUTC : false; + } + function isUtcOffset() { + return this.isValid() ? this._isUTC : false; + } - exports.__esModule = true; - exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined; + function isUtc() { + return this.isValid() ? this._isUTC && this._offset === 0 : false; + } - var _all2 = __webpack_require__(1583); + // ASP.NET json date format regex + var aspNetRegex = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, + // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html + // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere + // and further modified to allow for strings containing both week and day + isoRegex = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/; - var _all3 = _interopRequireDefault(_all2); + function createDuration(input, key) { + var duration = input, + // matching against regexp is expensive, do it on demand + match = null, + sign, + ret, + diffRes; - var _componentOrElement2 = __webpack_require__(1584); + if (isDuration(input)) { + duration = { + ms: input._milliseconds, + d: input._days, + M: input._months, + }; + } else if (isNumber(input) || !isNaN(+input)) { + duration = {}; + if (key) { + duration[key] = +input; + } else { + duration.milliseconds = +input; + } + } else if ((match = aspNetRegex.exec(input))) { + sign = match[1] === '-' ? -1 : 1; + duration = { + y: 0, + d: toInt(match[DATE]) * sign, + h: toInt(match[HOUR]) * sign, + m: toInt(match[MINUTE]) * sign, + s: toInt(match[SECOND]) * sign, + ms: toInt(absRound(match[MILLISECOND] * 1000)) * sign, // the millisecond decimal point is included in the match + }; + } else if ((match = isoRegex.exec(input))) { + sign = match[1] === '-' ? -1 : 1; + duration = { + y: parseIso(match[2], sign), + M: parseIso(match[3], sign), + w: parseIso(match[4], sign), + d: parseIso(match[5], sign), + h: parseIso(match[6], sign), + m: parseIso(match[7], sign), + s: parseIso(match[8], sign), + }; + } else if (duration == null) { + // checks for null or undefined + duration = {}; + } else if ( + typeof duration === 'object' && + ('from' in duration || 'to' in duration) + ) { + diffRes = momentsDifference( + createLocal(duration.from), + createLocal(duration.to) + ); - var _componentOrElement3 = _interopRequireDefault(_componentOrElement2); + duration = {}; + duration.ms = diffRes.milliseconds; + duration.M = diffRes.months; + } - var _deprecated2 = __webpack_require__(1585); + ret = new Duration(duration); - var _deprecated3 = _interopRequireDefault(_deprecated2); + if (isDuration(input) && hasOwnProp(input, '_locale')) { + ret._locale = input._locale; + } - var _elementType2 = __webpack_require__(1586); + if (isDuration(input) && hasOwnProp(input, '_isValid')) { + ret._isValid = input._isValid; + } - var _elementType3 = _interopRequireDefault(_elementType2); + return ret; + } - var _isRequiredForA11y2 = __webpack_require__(1587); + createDuration.fn = Duration.prototype; + createDuration.invalid = createInvalid$1; - var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2); + function parseIso(inp, sign) { + // We'd normally use ~~inp for this, but unfortunately it also + // converts floats to ints. + // inp may be undefined, so careful calling replace on it. + var res = inp && parseFloat(inp.replace(',', '.')); + // apply sign while we're at it + return (isNaN(res) ? 0 : res) * sign; + } - var _splitComponent2 = __webpack_require__(1588); + function positiveMomentsDifference(base, other) { + var res = {}; - var _splitComponent3 = _interopRequireDefault(_splitComponent2); + res.months = + other.month() - base.month() + (other.year() - base.year()) * 12; + if (base.clone().add(res.months, 'M').isAfter(other)) { + --res.months; + } - var _createChainedFunction2 = __webpack_require__(1589); + res.milliseconds = +other - +base.clone().add(res.months, 'M'); - var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2); + return res; + } - var _keyCode = __webpack_require__(1590); + function momentsDifference(base, other) { + var res; + if (!(base.isValid() && other.isValid())) { + return { milliseconds: 0, months: 0 }; + } - var _keyCode2 = _interopRequireDefault(_keyCode); + other = cloneWithOffset(other, base); + if (base.isBefore(other)) { + res = positiveMomentsDifference(base, other); + } else { + res = positiveMomentsDifference(other, base); + res.milliseconds = -res.milliseconds; + res.months = -res.months; + } - var _contains2 = __webpack_require__(1591); + return res; + } - var _contains3 = _interopRequireDefault(_contains2); + // TODO: remove 'name' arg after deprecation is removed + function createAdder(direction, name) { + return function (val, period) { + var dur, tmp; + //invert the arguments, but complain about it + if (period !== null && !isNaN(+period)) { + deprecateSimple( + name, + 'moment().' + + name + + '(period, number) is deprecated. Please use moment().' + + name + + '(number, period). ' + + 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.' + ); + tmp = val; + val = period; + period = tmp; + } - var _addEventListener2 = __webpack_require__(520); + dur = createDuration(val, period); + addSubtract(this, dur, direction); + return this; + }; + } - var _addEventListener3 = _interopRequireDefault(_addEventListener2); + function addSubtract(mom, duration, isAdding, updateOffset) { + var milliseconds = duration._milliseconds, + days = absRound(duration._days), + months = absRound(duration._months); - var _cssAnimation2 = __webpack_require__(1592); + if (!mom.isValid()) { + // No op + return; + } - var _cssAnimation3 = _interopRequireDefault(_cssAnimation2); + updateOffset = updateOffset == null ? true : updateOffset; - var _toArray2 = __webpack_require__(1594); + if (months) { + setMonth(mom, get(mom, 'Month') + months * isAdding); + } + if (days) { + set$1(mom, 'Date', get(mom, 'Date') + days * isAdding); + } + if (milliseconds) { + mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding); + } + if (updateOffset) { + hooks.updateOffset(mom, days || months); + } + } - var _toArray3 = _interopRequireDefault(_toArray2); + var add = createAdder(1, 'add'), + subtract = createAdder(-1, 'subtract'); - var _Align2 = __webpack_require__(1595); + function isString(input) { + return typeof input === 'string' || input instanceof String; + } - var _Align3 = _interopRequireDefault(_Align2); + // type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined + function isMomentInput(input) { + return ( + isMoment(input) || + isDate(input) || + isString(input) || + isNumber(input) || + isNumberOrStringArray(input) || + isMomentInputObject(input) || + input === null || + input === undefined + ); + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + function isMomentInputObject(input) { + var objectTest = isObject(input) && !isObjectEmpty(input), + propertyTest = false, + properties = [ + 'years', + 'year', + 'y', + 'months', + 'month', + 'M', + 'days', + 'day', + 'd', + 'dates', + 'date', + 'D', + 'hours', + 'hour', + 'h', + 'minutes', + 'minute', + 'm', + 'seconds', + 'second', + 's', + 'milliseconds', + 'millisecond', + 'ms', + ], + i, + property; - exports.all = _all3.default; - exports.componentOrElement = _componentOrElement3.default; - exports.deprecated = _deprecated3.default; - exports.elementType = _elementType3.default; - exports.isRequiredForA11y = _isRequiredForA11y3.default; - exports.splitComponent = _splitComponent3.default; - exports.createChainedFunction = _createChainedFunction3.default; - exports.KeyCode = _keyCode2.default; - exports.contains = _contains3.default; - exports.addEventListener = _addEventListener3.default; - exports.cssAnimation = _cssAnimation3.default; - exports.toArray = _toArray3.default; - //export getContainerRenderMixin from './getContainerRenderMixin'; + for (i = 0; i < properties.length; i += 1) { + property = properties[i]; + propertyTest = propertyTest || hasOwnProp(input, property); + } - exports.Align = _Align3.default; + return objectTest && propertyTest; + } - /***/ }), - /* 47 */ - /***/ (function(module, exports) { + function isNumberOrStringArray(input) { + var arrayTest = isArray(input), + dataTypeTest = false; + if (arrayTest) { + dataTypeTest = + input.filter(function (item) { + return !isNumber(item) && isString(input); + }).length === 0; + } + return arrayTest && dataTypeTest; + } - var hasOwnProperty = {}.hasOwnProperty; - module.exports = function (it, key) { - return hasOwnProperty.call(it, key); - }; + function isCalendarSpec(input) { + var objectTest = isObject(input) && !isObjectEmpty(input), + propertyTest = false, + properties = [ + 'sameDay', + 'nextDay', + 'lastDay', + 'nextWeek', + 'lastWeek', + 'sameElse', + ], + i, + property; + for (i = 0; i < properties.length; i += 1) { + property = properties[i]; + propertyTest = propertyTest || hasOwnProp(input, property); + } - /***/ }), - /* 48 */ - /***/ (function(module, exports, __webpack_require__) { + return objectTest && propertyTest; + } - "use strict"; - /* - object-assign - (c) Sindre Sorhus - @license MIT - */ + function getCalendarFormat(myMoment, now) { + var diff = myMoment.diff(now, 'days', true); + return diff < -6 + ? 'sameElse' + : diff < -1 + ? 'lastWeek' + : diff < 0 + ? 'lastDay' + : diff < 1 + ? 'sameDay' + : diff < 2 + ? 'nextDay' + : diff < 7 + ? 'nextWeek' + : 'sameElse'; + } + function calendar$1(time, formats) { + // Support for single parameter, formats only overload to the calendar function + if (arguments.length === 1) { + if (isMomentInput(arguments[0])) { + time = arguments[0]; + formats = undefined; + } else if (isCalendarSpec(arguments[0])) { + formats = arguments[0]; + time = undefined; + } + } + // We want to compare the start of today, vs this. + // Getting start-of-today depends on whether we're local/utc/offset or not. + var now = time || createLocal(), + sod = cloneWithOffset(now, this).startOf('day'), + format = hooks.calendarFormat(this, sod) || 'sameElse', + output = + formats && + (isFunction(formats[format]) + ? formats[format].call(this, now) + : formats[format]); - /* eslint-disable no-unused-vars */ - var getOwnPropertySymbols = Object.getOwnPropertySymbols; - var hasOwnProperty = Object.prototype.hasOwnProperty; - var propIsEnumerable = Object.prototype.propertyIsEnumerable; + return this.format( + output || this.localeData().calendar(format, this, createLocal(now)) + ); + } - function toObject(val) { - if (val === null || val === undefined) { - throw new TypeError('Object.assign cannot be called with null or undefined'); - } + function clone() { + return new Moment(this); + } - return Object(val); - } + function isAfter(input, units) { + var localInput = isMoment(input) ? input : createLocal(input); + if (!(this.isValid() && localInput.isValid())) { + return false; + } + units = normalizeUnits(units) || 'millisecond'; + if (units === 'millisecond') { + return this.valueOf() > localInput.valueOf(); + } else { + return localInput.valueOf() < this.clone().startOf(units).valueOf(); + } + } - function shouldUseNative() { - try { - if (!Object.assign) { - return false; - } + function isBefore(input, units) { + var localInput = isMoment(input) ? input : createLocal(input); + if (!(this.isValid() && localInput.isValid())) { + return false; + } + units = normalizeUnits(units) || 'millisecond'; + if (units === 'millisecond') { + return this.valueOf() < localInput.valueOf(); + } else { + return this.clone().endOf(units).valueOf() < localInput.valueOf(); + } + } - // Detect buggy property enumeration order in older V8 versions. + function isBetween(from, to, units, inclusivity) { + var localFrom = isMoment(from) ? from : createLocal(from), + localTo = isMoment(to) ? to : createLocal(to); + if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) { + return false; + } + inclusivity = inclusivity || '()'; + return ( + (inclusivity[0] === '(' + ? this.isAfter(localFrom, units) + : !this.isBefore(localFrom, units)) && + (inclusivity[1] === ')' + ? this.isBefore(localTo, units) + : !this.isAfter(localTo, units)) + ); + } - // https://bugs.chromium.org/p/v8/issues/detail?id=4118 - var test1 = new String('abc'); // eslint-disable-line no-new-wrappers - test1[5] = 'de'; - if (Object.getOwnPropertyNames(test1)[0] === '5') { - return false; - } + function isSame(input, units) { + var localInput = isMoment(input) ? input : createLocal(input), + inputMs; + if (!(this.isValid() && localInput.isValid())) { + return false; + } + units = normalizeUnits(units) || 'millisecond'; + if (units === 'millisecond') { + return this.valueOf() === localInput.valueOf(); + } else { + inputMs = localInput.valueOf(); + return ( + this.clone().startOf(units).valueOf() <= inputMs && + inputMs <= this.clone().endOf(units).valueOf() + ); + } + } - // https://bugs.chromium.org/p/v8/issues/detail?id=3056 - var test2 = {}; - for (var i = 0; i < 10; i++) { - test2['_' + String.fromCharCode(i)] = i; - } - var order2 = Object.getOwnPropertyNames(test2).map(function (n) { - return test2[n]; - }); - if (order2.join('') !== '0123456789') { - return false; - } + function isSameOrAfter(input, units) { + return this.isSame(input, units) || this.isAfter(input, units); + } - // https://bugs.chromium.org/p/v8/issues/detail?id=3056 - var test3 = {}; - 'abcdefghijklmnopqrst'.split('').forEach(function (letter) { - test3[letter] = letter; - }); - if (Object.keys(Object.assign({}, test3)).join('') !== - 'abcdefghijklmnopqrst') { - return false; - } + function isSameOrBefore(input, units) { + return this.isSame(input, units) || this.isBefore(input, units); + } - return true; - } catch (err) { - // We don't expect any of the above to throw, but better to be safe. - return false; - } - } + function diff(input, units, asFloat) { + var that, zoneDelta, output; - module.exports = shouldUseNative() ? Object.assign : function (target, source) { - var from; - var to = toObject(target); - var symbols; + if (!this.isValid()) { + return NaN; + } - for (var s = 1; s < arguments.length; s++) { - from = Object(arguments[s]); + that = cloneWithOffset(input, this); - for (var key in from) { - if (hasOwnProperty.call(from, key)) { - to[key] = from[key]; - } - } + if (!that.isValid()) { + return NaN; + } - if (getOwnPropertySymbols) { - symbols = getOwnPropertySymbols(from); - for (var i = 0; i < symbols.length; i++) { - if (propIsEnumerable.call(from, symbols[i])) { - to[symbols[i]] = from[symbols[i]]; - } - } - } - } + zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4; - return to; - }; + units = normalizeUnits(units); + switch (units) { + case 'year': + output = monthDiff(this, that) / 12; + break; + case 'month': + output = monthDiff(this, that); + break; + case 'quarter': + output = monthDiff(this, that) / 3; + break; + case 'second': + output = (this - that) / 1e3; + break; // 1000 + case 'minute': + output = (this - that) / 6e4; + break; // 1000 * 60 + case 'hour': + output = (this - that) / 36e5; + break; // 1000 * 60 * 60 + case 'day': + output = (this - that - zoneDelta) / 864e5; + break; // 1000 * 60 * 60 * 24, negate dst + case 'week': + output = (this - that - zoneDelta) / 6048e5; + break; // 1000 * 60 * 60 * 24 * 7, negate dst + default: + output = this - that; + } - /***/ }), - /* 49 */ - /***/ (function(module, exports, __webpack_require__) { + return asFloat ? output : absFloor(output); + } - "use strict"; + function monthDiff(a, b) { + if (a.date() < b.date()) { + // end-of-month calculations work correct when the start month has more + // days than the end month. + return -monthDiff(b, a); + } + // difference in months + var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month()), + // b is in (anchor - 1 month, anchor + 1 month) + anchor = a.clone().add(wholeMonthDiff, 'months'), + anchor2, + adjust; + if (b - anchor < 0) { + anchor2 = a.clone().add(wholeMonthDiff - 1, 'months'); + // linear across the month + adjust = (b - anchor) / (anchor - anchor2); + } else { + anchor2 = a.clone().add(wholeMonthDiff + 1, 'months'); + // linear across the month + adjust = (b - anchor) / (anchor2 - anchor); + } - Object.defineProperty(exports, "__esModule", { - value: true - }); + //check for negative zero, return zero if negative zero + return -(wholeMonthDiff + adjust) || 0; + } - var _inDOM = __webpack_require__(25); + hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ'; + hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]'; - var _inDOM2 = _interopRequireDefault(_inDOM); + function toString() { + return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ'); + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + function toISOString(keepOffset) { + if (!this.isValid()) { + return null; + } + var utc = keepOffset !== true, + m = utc ? this.clone().utc() : this; + if (m.year() < 0 || m.year() > 9999) { + return formatMoment( + m, + utc + ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]' + : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ' + ); + } + if (isFunction(Date.prototype.toISOString)) { + // native implementation is ~50x faster, use it when we can + if (utc) { + return this.toDate().toISOString(); + } else { + return new Date(this.valueOf() + this.utcOffset() * 60 * 1000) + .toISOString() + .replace('Z', formatMoment(m, 'Z')); + } + } + return formatMoment( + m, + utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ' + ); + } - var off = function off() {}; - if (_inDOM2.default) { - off = function () { - if (document.addEventListener) return function (node, eventName, handler, capture) { - return node.removeEventListener(eventName, handler, capture || false); - };else if (document.attachEvent) return function (node, eventName, handler) { - return node.detachEvent('on' + eventName, handler); - }; - }(); - } + /** + * Return a human readable representation of a moment that can + * also be evaluated to get a new moment which is the same + * + * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects + */ + function inspect() { + if (!this.isValid()) { + return 'moment.invalid(/* ' + this._i + ' */)'; + } + var func = 'moment', + zone = '', + prefix, + year, + datetime, + suffix; + if (!this.isLocal()) { + func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone'; + zone = 'Z'; + } + prefix = '[' + func + '("]'; + year = 0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY'; + datetime = '-MM-DD[T]HH:mm:ss.SSS'; + suffix = zone + '[")]'; - exports.default = off; - module.exports = exports['default']; + return this.format(prefix + year + datetime + suffix); + } - /***/ }), - /* 50 */ - /***/ (function(module, exports, __webpack_require__) { + function format(inputString) { + if (!inputString) { + inputString = this.isUtc() + ? hooks.defaultFormatUtc + : hooks.defaultFormat; + } + var output = formatMoment(this, inputString); + return this.localeData().postformat(output); + } - var dP = __webpack_require__(40); - var createDesc = __webpack_require__(65); - module.exports = __webpack_require__(41) ? function (object, key, value) { - return dP.f(object, key, createDesc(1, value)); - } : function (object, key, value) { - object[key] = value; - return object; - }; + function from(time, withoutSuffix) { + if ( + this.isValid() && + ((isMoment(time) && time.isValid()) || createLocal(time).isValid()) + ) { + return createDuration({ to: this, from: time }) + .locale(this.locale()) + .humanize(!withoutSuffix); + } else { + return this.localeData().invalidDate(); + } + } + function fromNow(withoutSuffix) { + return this.from(createLocal(), withoutSuffix); + } - /***/ }), - /* 51 */ - /***/ (function(module, exports, __webpack_require__) { + function to(time, withoutSuffix) { + if ( + this.isValid() && + ((isMoment(time) && time.isValid()) || createLocal(time).isValid()) + ) { + return createDuration({ from: this, to: time }) + .locale(this.locale()) + .humanize(!withoutSuffix); + } else { + return this.localeData().invalidDate(); + } + } - var isObject = __webpack_require__(52); - module.exports = function (it) { - if (!isObject(it)) throw TypeError(it + ' is not an object!'); - return it; - }; + function toNow(withoutSuffix) { + return this.to(createLocal(), withoutSuffix); + } + // If passed a locale key, it will set the locale for this + // instance. Otherwise, it will return the locale configuration + // variables for this instance. + function locale(key) { + var newLocaleData; - /***/ }), - /* 52 */ - /***/ (function(module, exports) { + if (key === undefined) { + return this._locale._abbr; + } else { + newLocaleData = getLocale(key); + if (newLocaleData != null) { + this._locale = newLocaleData; + } + return this; + } + } - module.exports = function (it) { - return typeof it === 'object' ? it !== null : typeof it === 'function'; - }; + var lang = deprecate( + 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.', + function (key) { + if (key === undefined) { + return this.localeData(); + } else { + return this.locale(key); + } + } + ); + function localeData() { + return this._locale; + } - /***/ }), - /* 53 */ - /***/ (function(module, exports) { + var MS_PER_SECOND = 1000, + MS_PER_MINUTE = 60 * MS_PER_SECOND, + MS_PER_HOUR = 60 * MS_PER_MINUTE, + MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR; - module.exports = function (exec) { - try { - return !!exec(); - } catch (e) { - return true; - } - }; + // actual modulo - handles negative numbers (for dates before 1970): + function mod$1(dividend, divisor) { + return ((dividend % divisor) + divisor) % divisor; + } + function localStartOfDate(y, m, d) { + // the date constructor remaps years 0-99 to 1900-1999 + if (y < 100 && y >= 0) { + // preserve leap years using a full 400 year cycle, then reset + return new Date(y + 400, m, d) - MS_PER_400_YEARS; + } else { + return new Date(y, m, d).valueOf(); + } + } - /***/ }), - /* 54 */ - /***/ (function(module, exports, __webpack_require__) { + function utcStartOfDate(y, m, d) { + // Date.UTC remaps years 0-99 to 1900-1999 + if (y < 100 && y >= 0) { + // preserve leap years using a full 400 year cycle, then reset + return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS; + } else { + return Date.UTC(y, m, d); + } + } - // to indexed object, toObject with fallback for non-array-like ES3 strings - var IObject = __webpack_require__(220); - var defined = __webpack_require__(123); - module.exports = function (it) { - return IObject(defined(it)); - }; + function startOf(units) { + var time, startOfDate; + units = normalizeUnits(units); + if (units === undefined || units === 'millisecond' || !this.isValid()) { + return this; + } + startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate; - /***/ }), - /* 55 */ - /***/ (function(module, exports, __webpack_require__) { + switch (units) { + case 'year': + time = startOfDate(this.year(), 0, 1); + break; + case 'quarter': + time = startOfDate( + this.year(), + this.month() - (this.month() % 3), + 1 + ); + break; + case 'month': + time = startOfDate(this.year(), this.month(), 1); + break; + case 'week': + time = startOfDate( + this.year(), + this.month(), + this.date() - this.weekday() + ); + break; + case 'isoWeek': + time = startOfDate( + this.year(), + this.month(), + this.date() - (this.isoWeekday() - 1) + ); + break; + case 'day': + case 'date': + time = startOfDate(this.year(), this.month(), this.date()); + break; + case 'hour': + time = this._d.valueOf(); + time -= mod$1( + time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), + MS_PER_HOUR + ); + break; + case 'minute': + time = this._d.valueOf(); + time -= mod$1(time, MS_PER_MINUTE); + break; + case 'second': + time = this._d.valueOf(); + time -= mod$1(time, MS_PER_SECOND); + break; + } - "use strict"; + this._d.setTime(time); + hooks.updateOffset(this, true); + return this; + } + function endOf(units) { + var time, startOfDate; + units = normalizeUnits(units); + if (units === undefined || units === 'millisecond' || !this.isValid()) { + return this; + } - exports.__esModule = true; + startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate; - var _defineProperty = __webpack_require__(215); + switch (units) { + case 'year': + time = startOfDate(this.year() + 1, 0, 1) - 1; + break; + case 'quarter': + time = + startOfDate( + this.year(), + this.month() - (this.month() % 3) + 3, + 1 + ) - 1; + break; + case 'month': + time = startOfDate(this.year(), this.month() + 1, 1) - 1; + break; + case 'week': + time = + startOfDate( + this.year(), + this.month(), + this.date() - this.weekday() + 7 + ) - 1; + break; + case 'isoWeek': + time = + startOfDate( + this.year(), + this.month(), + this.date() - (this.isoWeekday() - 1) + 7 + ) - 1; + break; + case 'day': + case 'date': + time = startOfDate(this.year(), this.month(), this.date() + 1) - 1; + break; + case 'hour': + time = this._d.valueOf(); + time += + MS_PER_HOUR - + mod$1( + time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), + MS_PER_HOUR + ) - + 1; + break; + case 'minute': + time = this._d.valueOf(); + time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1; + break; + case 'second': + time = this._d.valueOf(); + time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1; + break; + } - var _defineProperty2 = _interopRequireDefault(_defineProperty); + this._d.setTime(time); + hooks.updateOffset(this, true); + return this; + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + function valueOf() { + return this._d.valueOf() - (this._offset || 0) * 60000; + } - exports.default = function () { - function defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - (0, _defineProperty2.default)(target, descriptor.key, descriptor); + function unix() { + return Math.floor(this.valueOf() / 1000); } - } - return function (Constructor, protoProps, staticProps) { - if (protoProps) defineProperties(Constructor.prototype, protoProps); - if (staticProps) defineProperties(Constructor, staticProps); - return Constructor; - }; - }(); + function toDate() { + return new Date(this.valueOf()); + } - /***/ }), - /* 56 */ - /***/ (function(module, exports, __webpack_require__) { + function toArray() { + var m = this; + return [ + m.year(), + m.month(), + m.date(), + m.hour(), + m.minute(), + m.second(), + m.millisecond(), + ]; + } - "use strict"; + function toObject() { + var m = this; + return { + years: m.year(), + months: m.month(), + date: m.date(), + hours: m.hours(), + minutes: m.minutes(), + seconds: m.seconds(), + milliseconds: m.milliseconds(), + }; + } + function toJSON() { + // new Date(NaN).toJSON() === null + return this.isValid() ? this.toISOString() : null; + } - Object.defineProperty(exports, "__esModule", { - value: true - }); + function isValid$2() { + return isValid(this); + } - exports["default"] = function (node, event, handler, capture) { - (0, _on2["default"])(node, event, handler, capture); + function parsingFlags() { + return extend({}, getParsingFlags(this)); + } - return { - remove: function remove() { - (0, _off2["default"])(node, event, handler, capture); + function invalidAt() { + return getParsingFlags(this).overflow; } - }; - }; - var _on = __webpack_require__(17); + function creationData() { + return { + input: this._i, + format: this._f, + locale: this._locale, + isUTC: this._isUTC, + strict: this._strict, + }; + } - var _on2 = _interopRequireDefault(_on); + addFormatToken('N', 0, 0, 'eraAbbr'); + addFormatToken('NN', 0, 0, 'eraAbbr'); + addFormatToken('NNN', 0, 0, 'eraAbbr'); + addFormatToken('NNNN', 0, 0, 'eraName'); + addFormatToken('NNNNN', 0, 0, 'eraNarrow'); - var _off = __webpack_require__(49); + addFormatToken('y', ['y', 1], 'yo', 'eraYear'); + addFormatToken('y', ['yy', 2], 0, 'eraYear'); + addFormatToken('y', ['yyy', 3], 0, 'eraYear'); + addFormatToken('y', ['yyyy', 4], 0, 'eraYear'); - var _off2 = _interopRequireDefault(_off); + addRegexToken('N', matchEraAbbr); + addRegexToken('NN', matchEraAbbr); + addRegexToken('NNN', matchEraAbbr); + addRegexToken('NNNN', matchEraName); + addRegexToken('NNNNN', matchEraNarrow); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + addParseToken(['N', 'NN', 'NNN', 'NNNN', 'NNNNN'], function ( + input, + array, + config, + token + ) { + var era = config._locale.erasParse(input, token, config._strict); + if (era) { + getParsingFlags(config).era = era; + } else { + getParsingFlags(config).invalidEra = input; + } + }); - module.exports = exports['default']; + addRegexToken('y', matchUnsigned); + addRegexToken('yy', matchUnsigned); + addRegexToken('yyy', matchUnsigned); + addRegexToken('yyyy', matchUnsigned); + addRegexToken('yo', matchEraYearOrdinal); - /***/ }), - /* 57 */ - /***/ (function(module, exports, __webpack_require__) { + addParseToken(['y', 'yy', 'yyy', 'yyyy'], YEAR); + addParseToken(['yo'], function (input, array, config, token) { + var match; + if (config._locale._eraYearOrdinalRegex) { + match = input.match(config._locale._eraYearOrdinalRegex); + } - "use strict"; + if (config._locale.eraYearOrdinalParse) { + array[YEAR] = config._locale.eraYearOrdinalParse(input, match); + } else { + array[YEAR] = parseInt(input, 10); + } + }); + function localeEras(m, format) { + var i, + l, + date, + eras = this._eras || getLocale('en')._eras; + for (i = 0, l = eras.length; i < l; ++i) { + switch (typeof eras[i].since) { + case 'string': + // truncate time + date = hooks(eras[i].since).startOf('day'); + eras[i].since = date.valueOf(); + break; + } - Object.defineProperty(exports, "__esModule", { - value: true - }); + switch (typeof eras[i].until) { + case 'undefined': + eras[i].until = +Infinity; + break; + case 'string': + // truncate time + date = hooks(eras[i].until).startOf('day').valueOf(); + eras[i].until = date.valueOf(); + break; + } + } + return eras; + } - var _Animate = __webpack_require__(753); + function localeErasParse(eraName, format, strict) { + var i, + l, + eras = this.eras(), + name, + abbr, + narrow; + eraName = eraName.toUpperCase(); - var _Animate2 = _interopRequireDefault(_Animate); + for (i = 0, l = eras.length; i < l; ++i) { + name = eras[i].name.toUpperCase(); + abbr = eras[i].abbr.toUpperCase(); + narrow = eras[i].narrow.toUpperCase(); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + if (strict) { + switch (format) { + case 'N': + case 'NN': + case 'NNN': + if (abbr === eraName) { + return eras[i]; + } + break; - exports["default"] = _Animate2["default"]; - module.exports = exports['default']; + case 'NNNN': + if (name === eraName) { + return eras[i]; + } + break; - /***/ }), - /* 58 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + case 'NNNNN': + if (narrow === eraName) { + return eras[i]; + } + break; + } + } else if ([name, abbr, narrow].indexOf(eraName) >= 0) { + return eras[i]; + } + } + } - "use strict"; - /* harmony export (immutable) */ __webpack_exports__["g"] = noop; - /* harmony export (immutable) */ __webpack_exports__["a"] = getKeyFromChildrenIndex; - /* harmony export (immutable) */ __webpack_exports__["b"] = getMenuIdFromSubMenuEventKey; - /* harmony export (immutable) */ __webpack_exports__["d"] = loopMenuItem; - /* harmony export (immutable) */ __webpack_exports__["e"] = loopMenuItemRecursively; - /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return menuAllProps; }); - /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getWidth; }); - /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return setStyle; }); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); + function localeErasConvertYear(era, year) { + var dir = era.since <= era.until ? +1 : -1; + if (year === undefined) { + return hooks(era.since).year(); + } else { + return hooks(era.since).year() + (year - era.offset) * dir; + } + } + function getEraName() { + var i, + l, + val, + eras = this.localeData().eras(); + for (i = 0, l = eras.length; i < l; ++i) { + // truncate time + val = this.startOf('day').valueOf(); - function noop() {} + if (eras[i].since <= val && val <= eras[i].until) { + return eras[i].name; + } + if (eras[i].until <= val && val <= eras[i].since) { + return eras[i].name; + } + } - function getKeyFromChildrenIndex(child, menuEventKey, index) { - var prefix = menuEventKey || ''; - return child.key || prefix + 'item_' + index; - } + return ''; + } - function getMenuIdFromSubMenuEventKey(eventKey) { - return eventKey + '-menu-'; - } + function getEraNarrow() { + var i, + l, + val, + eras = this.localeData().eras(); + for (i = 0, l = eras.length; i < l; ++i) { + // truncate time + val = this.startOf('day').valueOf(); - function loopMenuItem(children, cb) { - var index = -1; - __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (c) { - index++; - if (c && c.type && c.type.isMenuItemGroup) { - __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(c.props.children, function (c2) { - index++; - cb(c2, index); - }); - } else { - cb(c, index); - } - }); - } + if (eras[i].since <= val && val <= eras[i].until) { + return eras[i].narrow; + } + if (eras[i].until <= val && val <= eras[i].since) { + return eras[i].narrow; + } + } - function loopMenuItemRecursively(children, keys, ret) { - /* istanbul ignore if */ - if (!children || ret.find) { - return; - } - __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (c) { - if (c) { - var construct = c.type; - if (!construct || !(construct.isSubMenu || construct.isMenuItem || construct.isMenuItemGroup)) { - return; - } - if (keys.indexOf(c.key) !== -1) { - ret.find = true; - } else if (c.props.children) { - loopMenuItemRecursively(c.props.children, keys, ret); - } + return ''; } - }); - } - var menuAllProps = ['defaultSelectedKeys', 'selectedKeys', 'defaultOpenKeys', 'openKeys', 'mode', 'getPopupContainer', 'onSelect', 'onDeselect', 'onDestroy', 'openTransitionName', 'openAnimation', 'subMenuOpenDelay', 'subMenuCloseDelay', 'forceSubMenuRender', 'triggerSubMenuAction', 'level', 'selectable', 'multiple', 'onOpenChange', 'visible', 'focusable', 'defaultActiveFirst', 'prefixCls', 'inlineIndent', 'parentMenu', 'title', 'rootPrefixCls', 'eventKey', 'active', 'onItemHover', 'onTitleMouseEnter', 'onTitleMouseLeave', 'onTitleClick', 'popupAlign', 'popupOffset', 'isOpen', 'renderMenuItem', 'manualRef', 'subMenuKey', 'disabled', 'index', 'isSelected', 'store', 'activeKey', 'builtinPlacements', 'overflowedIndicator', + function getEraAbbr() { + var i, + l, + val, + eras = this.localeData().eras(); + for (i = 0, l = eras.length; i < l; ++i) { + // truncate time + val = this.startOf('day').valueOf(); - // the following keys found need to be removed from test regression - 'attribute', 'value', 'popupClassName', 'inlineCollapsed', 'menu', 'theme', 'itemIcon', 'expandIcon']; + if (eras[i].since <= val && val <= eras[i].until) { + return eras[i].abbr; + } + if (eras[i].until <= val && val <= eras[i].since) { + return eras[i].abbr; + } + } - var getWidth = function getWidth(elem) { - return elem && typeof elem.getBoundingClientRect === 'function' && elem.getBoundingClientRect().width || 0; - }; + return ''; + } - var setStyle = function setStyle(elem, styleProperty, value) { - if (elem && typeof elem.style === 'object') { - elem.style[styleProperty] = value; - } - }; + function getEraYear() { + var i, + l, + dir, + val, + eras = this.localeData().eras(); + for (i = 0, l = eras.length; i < l; ++i) { + dir = eras[i].since <= eras[i].until ? +1 : -1; - /***/ }), - /* 59 */ - /***/ (function(module, exports, __webpack_require__) { + // truncate time + val = this.startOf('day').valueOf(); - "use strict"; + if ( + (eras[i].since <= val && val <= eras[i].until) || + (eras[i].until <= val && val <= eras[i].since) + ) { + return ( + (this.year() - hooks(eras[i].since).year()) * dir + + eras[i].offset + ); + } + } + return this.year(); + } - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; + function erasNameRegex(isStrict) { + if (!hasOwnProp(this, '_erasNameRegex')) { + computeErasParse.call(this); + } + return isStrict ? this._erasNameRegex : this._erasRegex; + } - /** - * @ignore - * some key-codes definition and utils from closure-library - * @author yiminghe@gmail.com - */ - var KeyCode = { - /** - * MAC_ENTER - */ - MAC_ENTER: 3, + function erasAbbrRegex(isStrict) { + if (!hasOwnProp(this, '_erasAbbrRegex')) { + computeErasParse.call(this); + } + return isStrict ? this._erasAbbrRegex : this._erasRegex; + } - /** - * BACKSPACE - */ - BACKSPACE: 8, + function erasNarrowRegex(isStrict) { + if (!hasOwnProp(this, '_erasNarrowRegex')) { + computeErasParse.call(this); + } + return isStrict ? this._erasNarrowRegex : this._erasRegex; + } - /** - * TAB - */ - TAB: 9, + function matchEraAbbr(isStrict, locale) { + return locale.erasAbbrRegex(isStrict); + } - /** - * NUMLOCK on FF/Safari Mac - */ - NUM_CENTER: 12, + function matchEraName(isStrict, locale) { + return locale.erasNameRegex(isStrict); + } - /** - * ENTER - */ - ENTER: 13, + function matchEraNarrow(isStrict, locale) { + return locale.erasNarrowRegex(isStrict); + } - /** - * SHIFT - */ - SHIFT: 16, + function matchEraYearOrdinal(isStrict, locale) { + return locale._eraYearOrdinalRegex || matchUnsigned; + } - /** - * CTRL - */ - CTRL: 17, + function computeErasParse() { + var abbrPieces = [], + namePieces = [], + narrowPieces = [], + mixedPieces = [], + i, + l, + eras = this.eras(); - /** - * ALT - */ - ALT: 18, + for (i = 0, l = eras.length; i < l; ++i) { + namePieces.push(regexEscape(eras[i].name)); + abbrPieces.push(regexEscape(eras[i].abbr)); + narrowPieces.push(regexEscape(eras[i].narrow)); - /** - * PAUSE - */ - PAUSE: 19, + mixedPieces.push(regexEscape(eras[i].name)); + mixedPieces.push(regexEscape(eras[i].abbr)); + mixedPieces.push(regexEscape(eras[i].narrow)); + } - /** - * CAPS_LOCK - */ - CAPS_LOCK: 20, + this._erasRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i'); + this._erasNameRegex = new RegExp('^(' + namePieces.join('|') + ')', 'i'); + this._erasAbbrRegex = new RegExp('^(' + abbrPieces.join('|') + ')', 'i'); + this._erasNarrowRegex = new RegExp( + '^(' + narrowPieces.join('|') + ')', + 'i' + ); + } - /** - * ESC - */ - ESC: 27, + // FORMATTING - /** - * SPACE - */ - SPACE: 32, + addFormatToken(0, ['gg', 2], 0, function () { + return this.weekYear() % 100; + }); - /** - * PAGE_UP - */ - PAGE_UP: 33, + addFormatToken(0, ['GG', 2], 0, function () { + return this.isoWeekYear() % 100; + }); - /** - * PAGE_DOWN - */ - PAGE_DOWN: 34, + function addWeekYearFormatToken(token, getter) { + addFormatToken(0, [token, token.length], 0, getter); + } - /** - * END - */ - END: 35, + addWeekYearFormatToken('gggg', 'weekYear'); + addWeekYearFormatToken('ggggg', 'weekYear'); + addWeekYearFormatToken('GGGG', 'isoWeekYear'); + addWeekYearFormatToken('GGGGG', 'isoWeekYear'); - /** - * HOME - */ - HOME: 36, + // ALIASES - /** - * LEFT - */ - LEFT: 37, + addUnitAlias('weekYear', 'gg'); + addUnitAlias('isoWeekYear', 'GG'); - /** - * UP - */ - UP: 38, + // PRIORITY - /** - * RIGHT - */ - RIGHT: 39, + addUnitPriority('weekYear', 1); + addUnitPriority('isoWeekYear', 1); - /** - * DOWN - */ - DOWN: 40, + // PARSING - /** - * PRINT_SCREEN - */ - PRINT_SCREEN: 44, + addRegexToken('G', matchSigned); + addRegexToken('g', matchSigned); + addRegexToken('GG', match1to2, match2); + addRegexToken('gg', match1to2, match2); + addRegexToken('GGGG', match1to4, match4); + addRegexToken('gggg', match1to4, match4); + addRegexToken('GGGGG', match1to6, match6); + addRegexToken('ggggg', match1to6, match6); - /** - * INSERT - */ - INSERT: 45, + addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function ( + input, + week, + config, + token + ) { + week[token.substr(0, 2)] = toInt(input); + }); - /** - * DELETE - */ - DELETE: 46, + addWeekParseToken(['gg', 'GG'], function (input, week, config, token) { + week[token] = hooks.parseTwoDigitYear(input); + }); - /** - * ZERO - */ - ZERO: 48, + // MOMENTS - /** - * ONE - */ - ONE: 49, + function getSetWeekYear(input) { + return getSetWeekYearHelper.call( + this, + input, + this.week(), + this.weekday(), + this.localeData()._week.dow, + this.localeData()._week.doy + ); + } - /** - * TWO - */ - TWO: 50, + function getSetISOWeekYear(input) { + return getSetWeekYearHelper.call( + this, + input, + this.isoWeek(), + this.isoWeekday(), + 1, + 4 + ); + } - /** - * THREE - */ - THREE: 51, + function getISOWeeksInYear() { + return weeksInYear(this.year(), 1, 4); + } - /** - * FOUR - */ - FOUR: 52, + function getISOWeeksInISOWeekYear() { + return weeksInYear(this.isoWeekYear(), 1, 4); + } - /** - * FIVE - */ - FIVE: 53, + function getWeeksInYear() { + var weekInfo = this.localeData()._week; + return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy); + } - /** - * SIX - */ - SIX: 54, + function getWeeksInWeekYear() { + var weekInfo = this.localeData()._week; + return weeksInYear(this.weekYear(), weekInfo.dow, weekInfo.doy); + } - /** - * SEVEN - */ - SEVEN: 55, + function getSetWeekYearHelper(input, week, weekday, dow, doy) { + var weeksTarget; + if (input == null) { + return weekOfYear(this, dow, doy).year; + } else { + weeksTarget = weeksInYear(input, dow, doy); + if (week > weeksTarget) { + week = weeksTarget; + } + return setWeekAll.call(this, input, week, weekday, dow, doy); + } + } - /** - * EIGHT - */ - EIGHT: 56, + function setWeekAll(weekYear, week, weekday, dow, doy) { + var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy), + date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear); - /** - * NINE - */ - NINE: 57, + this.year(date.getUTCFullYear()); + this.month(date.getUTCMonth()); + this.date(date.getUTCDate()); + return this; + } - /** - * QUESTION_MARK - */ - QUESTION_MARK: 63, + // FORMATTING - /** - * A - */ - A: 65, + addFormatToken('Q', 0, 'Qo', 'quarter'); - /** - * B - */ - B: 66, + // ALIASES - /** - * C - */ - C: 67, + addUnitAlias('quarter', 'Q'); - /** - * D - */ - D: 68, + // PRIORITY - /** - * E - */ - E: 69, + addUnitPriority('quarter', 7); - /** - * F - */ - F: 70, + // PARSING - /** - * G - */ - G: 71, + addRegexToken('Q', match1); + addParseToken('Q', function (input, array) { + array[MONTH] = (toInt(input) - 1) * 3; + }); - /** - * H - */ - H: 72, + // MOMENTS - /** - * I - */ - I: 73, + function getSetQuarter(input) { + return input == null + ? Math.ceil((this.month() + 1) / 3) + : this.month((input - 1) * 3 + (this.month() % 3)); + } - /** - * J - */ - J: 74, + // FORMATTING - /** - * K - */ - K: 75, + addFormatToken('D', ['DD', 2], 'Do', 'date'); - /** - * L - */ - L: 76, + // ALIASES - /** - * M - */ - M: 77, + addUnitAlias('date', 'D'); - /** - * N - */ - N: 78, + // PRIORITY + addUnitPriority('date', 9); - /** - * O - */ - O: 79, + // PARSING - /** - * P - */ - P: 80, + addRegexToken('D', match1to2); + addRegexToken('DD', match1to2, match2); + addRegexToken('Do', function (isStrict, locale) { + // TODO: Remove "ordinalParse" fallback in next major release. + return isStrict + ? locale._dayOfMonthOrdinalParse || locale._ordinalParse + : locale._dayOfMonthOrdinalParseLenient; + }); - /** - * Q - */ - Q: 81, + addParseToken(['D', 'DD'], DATE); + addParseToken('Do', function (input, array) { + array[DATE] = toInt(input.match(match1to2)[0]); + }); - /** - * R - */ - R: 82, + // MOMENTS - /** - * S - */ - S: 83, + var getSetDayOfMonth = makeGetSet('Date', true); - /** - * T - */ - T: 84, + // FORMATTING - /** - * U - */ - U: 85, + addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear'); - /** - * V - */ - V: 86, + // ALIASES - /** - * W - */ - W: 87, + addUnitAlias('dayOfYear', 'DDD'); - /** - * X - */ - X: 88, + // PRIORITY + addUnitPriority('dayOfYear', 4); - /** - * Y - */ - Y: 89, + // PARSING - /** - * Z - */ - Z: 90, + addRegexToken('DDD', match1to3); + addRegexToken('DDDD', match3); + addParseToken(['DDD', 'DDDD'], function (input, array, config) { + config._dayOfYear = toInt(input); + }); - /** - * META - */ - META: 91, + // HELPERS - /** - * WIN_KEY_RIGHT - */ - WIN_KEY_RIGHT: 92, + // MOMENTS - /** - * CONTEXT_MENU - */ - CONTEXT_MENU: 93, + function getSetDayOfYear(input) { + var dayOfYear = + Math.round( + (this.clone().startOf('day') - this.clone().startOf('year')) / 864e5 + ) + 1; + return input == null ? dayOfYear : this.add(input - dayOfYear, 'd'); + } - /** - * NUM_ZERO - */ - NUM_ZERO: 96, + // FORMATTING - /** - * NUM_ONE - */ - NUM_ONE: 97, + addFormatToken('m', ['mm', 2], 0, 'minute'); - /** - * NUM_TWO - */ - NUM_TWO: 98, + // ALIASES - /** - * NUM_THREE - */ - NUM_THREE: 99, + addUnitAlias('minute', 'm'); - /** - * NUM_FOUR - */ - NUM_FOUR: 100, + // PRIORITY - /** - * NUM_FIVE - */ - NUM_FIVE: 101, + addUnitPriority('minute', 14); - /** - * NUM_SIX - */ - NUM_SIX: 102, + // PARSING - /** - * NUM_SEVEN - */ - NUM_SEVEN: 103, + addRegexToken('m', match1to2); + addRegexToken('mm', match1to2, match2); + addParseToken(['m', 'mm'], MINUTE); - /** - * NUM_EIGHT - */ - NUM_EIGHT: 104, + // MOMENTS - /** - * NUM_NINE - */ - NUM_NINE: 105, + var getSetMinute = makeGetSet('Minutes', false); - /** - * NUM_MULTIPLY - */ - NUM_MULTIPLY: 106, + // FORMATTING - /** - * NUM_PLUS - */ - NUM_PLUS: 107, + addFormatToken('s', ['ss', 2], 0, 'second'); - /** - * NUM_MINUS - */ - NUM_MINUS: 109, + // ALIASES - /** - * NUM_PERIOD - */ - NUM_PERIOD: 110, + addUnitAlias('second', 's'); - /** - * NUM_DIVISION - */ - NUM_DIVISION: 111, + // PRIORITY - /** - * F1 - */ - F1: 112, + addUnitPriority('second', 15); - /** - * F2 - */ - F2: 113, + // PARSING - /** - * F3 - */ - F3: 114, + addRegexToken('s', match1to2); + addRegexToken('ss', match1to2, match2); + addParseToken(['s', 'ss'], SECOND); - /** - * F4 - */ - F4: 115, + // MOMENTS - /** - * F5 - */ - F5: 116, + var getSetSecond = makeGetSet('Seconds', false); - /** - * F6 - */ - F6: 117, + // FORMATTING - /** - * F7 - */ - F7: 118, + addFormatToken('S', 0, 0, function () { + return ~~(this.millisecond() / 100); + }); - /** - * F8 - */ - F8: 119, + addFormatToken(0, ['SS', 2], 0, function () { + return ~~(this.millisecond() / 10); + }); - /** - * F9 - */ - F9: 120, + addFormatToken(0, ['SSS', 3], 0, 'millisecond'); + addFormatToken(0, ['SSSS', 4], 0, function () { + return this.millisecond() * 10; + }); + addFormatToken(0, ['SSSSS', 5], 0, function () { + return this.millisecond() * 100; + }); + addFormatToken(0, ['SSSSSS', 6], 0, function () { + return this.millisecond() * 1000; + }); + addFormatToken(0, ['SSSSSSS', 7], 0, function () { + return this.millisecond() * 10000; + }); + addFormatToken(0, ['SSSSSSSS', 8], 0, function () { + return this.millisecond() * 100000; + }); + addFormatToken(0, ['SSSSSSSSS', 9], 0, function () { + return this.millisecond() * 1000000; + }); - /** - * F10 - */ - F10: 121, + // ALIASES - /** - * F11 - */ - F11: 122, + addUnitAlias('millisecond', 'ms'); - /** - * F12 - */ - F12: 123, + // PRIORITY - /** - * NUMLOCK - */ - NUMLOCK: 144, + addUnitPriority('millisecond', 16); - /** - * SEMICOLON - */ - SEMICOLON: 186, + // PARSING - /** - * DASH - */ - DASH: 189, + addRegexToken('S', match1to3, match1); + addRegexToken('SS', match1to3, match2); + addRegexToken('SSS', match1to3, match3); - /** - * EQUALS - */ - EQUALS: 187, + var token, getSetMillisecond; + for (token = 'SSSS'; token.length <= 9; token += 'S') { + addRegexToken(token, matchUnsigned); + } - /** - * COMMA - */ - COMMA: 188, + function parseMs(input, array) { + array[MILLISECOND] = toInt(('0.' + input) * 1000); + } - /** - * PERIOD - */ - PERIOD: 190, + for (token = 'S'; token.length <= 9; token += 'S') { + addParseToken(token, parseMs); + } - /** - * SLASH - */ - SLASH: 191, + getSetMillisecond = makeGetSet('Milliseconds', false); - /** - * APOSTROPHE - */ - APOSTROPHE: 192, + // FORMATTING - /** - * SINGLE_QUOTE - */ - SINGLE_QUOTE: 222, + addFormatToken('z', 0, 0, 'zoneAbbr'); + addFormatToken('zz', 0, 0, 'zoneName'); - /** - * OPEN_SQUARE_BRACKET - */ - OPEN_SQUARE_BRACKET: 219, + // MOMENTS - /** - * BACKSLASH - */ - BACKSLASH: 220, + function getZoneAbbr() { + return this._isUTC ? 'UTC' : ''; + } - /** - * CLOSE_SQUARE_BRACKET - */ - CLOSE_SQUARE_BRACKET: 221, + function getZoneName() { + return this._isUTC ? 'Coordinated Universal Time' : ''; + } - /** - * WIN_KEY - */ - WIN_KEY: 224, + var proto = Moment.prototype; - /** - * MAC_FF_META - */ - MAC_FF_META: 224, + proto.add = add; + proto.calendar = calendar$1; + proto.clone = clone; + proto.diff = diff; + proto.endOf = endOf; + proto.format = format; + proto.from = from; + proto.fromNow = fromNow; + proto.to = to; + proto.toNow = toNow; + proto.get = stringGet; + proto.invalidAt = invalidAt; + proto.isAfter = isAfter; + proto.isBefore = isBefore; + proto.isBetween = isBetween; + proto.isSame = isSame; + proto.isSameOrAfter = isSameOrAfter; + proto.isSameOrBefore = isSameOrBefore; + proto.isValid = isValid$2; + proto.lang = lang; + proto.locale = locale; + proto.localeData = localeData; + proto.max = prototypeMax; + proto.min = prototypeMin; + proto.parsingFlags = parsingFlags; + proto.set = stringSet; + proto.startOf = startOf; + proto.subtract = subtract; + proto.toArray = toArray; + proto.toObject = toObject; + proto.toDate = toDate; + proto.toISOString = toISOString; + proto.inspect = inspect; + if (typeof Symbol !== 'undefined' && Symbol.for != null) { + proto[Symbol.for('nodejs.util.inspect.custom')] = function () { + return 'Moment<' + this.format() + '>'; + }; + } + proto.toJSON = toJSON; + proto.toString = toString; + proto.unix = unix; + proto.valueOf = valueOf; + proto.creationData = creationData; + proto.eraName = getEraName; + proto.eraNarrow = getEraNarrow; + proto.eraAbbr = getEraAbbr; + proto.eraYear = getEraYear; + proto.year = getSetYear; + proto.isLeapYear = getIsLeapYear; + proto.weekYear = getSetWeekYear; + proto.isoWeekYear = getSetISOWeekYear; + proto.quarter = proto.quarters = getSetQuarter; + proto.month = getSetMonth; + proto.daysInMonth = getDaysInMonth; + proto.week = proto.weeks = getSetWeek; + proto.isoWeek = proto.isoWeeks = getSetISOWeek; + proto.weeksInYear = getWeeksInYear; + proto.weeksInWeekYear = getWeeksInWeekYear; + proto.isoWeeksInYear = getISOWeeksInYear; + proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear; + proto.date = getSetDayOfMonth; + proto.day = proto.days = getSetDayOfWeek; + proto.weekday = getSetLocaleDayOfWeek; + proto.isoWeekday = getSetISODayOfWeek; + proto.dayOfYear = getSetDayOfYear; + proto.hour = proto.hours = getSetHour; + proto.minute = proto.minutes = getSetMinute; + proto.second = proto.seconds = getSetSecond; + proto.millisecond = proto.milliseconds = getSetMillisecond; + proto.utcOffset = getSetOffset; + proto.utc = setOffsetToUTC; + proto.local = setOffsetToLocal; + proto.parseZone = setOffsetToParsedOffset; + proto.hasAlignedHourOffset = hasAlignedHourOffset; + proto.isDST = isDaylightSavingTime; + proto.isLocal = isLocal; + proto.isUtcOffset = isUtcOffset; + proto.isUtc = isUtc; + proto.isUTC = isUtc; + proto.zoneAbbr = getZoneAbbr; + proto.zoneName = getZoneName; + proto.dates = deprecate( + 'dates accessor is deprecated. Use date instead.', + getSetDayOfMonth + ); + proto.months = deprecate( + 'months accessor is deprecated. Use month instead', + getSetMonth + ); + proto.years = deprecate( + 'years accessor is deprecated. Use year instead', + getSetYear + ); + proto.zone = deprecate( + 'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', + getSetZone + ); + proto.isDSTShifted = deprecate( + 'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information', + isDaylightSavingTimeShifted + ); - /** - * WIN_IME - */ - WIN_IME: 229, - // ======================== Function ======================== + function createUnix(input) { + return createLocal(input * 1000); + } - /** - * whether text and modified key is entered at the same time. - */ - isTextModifyingKeyEvent: function isTextModifyingKeyEvent(e) { - var keyCode = e.keyCode; + function createInZone() { + return createLocal.apply(null, arguments).parseZone(); + } - if (e.altKey && !e.ctrlKey || e.metaKey || // Function keys don't generate text - keyCode >= KeyCode.F1 && keyCode <= KeyCode.F12) { - return false; - } // The following keys are quite harmless, even in combination with - // CTRL, ALT or SHIFT. + function preParsePostFormat(string) { + return string; + } + var proto$1 = Locale.prototype; - switch (keyCode) { - case KeyCode.ALT: - case KeyCode.CAPS_LOCK: - case KeyCode.CONTEXT_MENU: - case KeyCode.CTRL: - case KeyCode.DOWN: - case KeyCode.END: - case KeyCode.ESC: - case KeyCode.HOME: - case KeyCode.INSERT: - case KeyCode.LEFT: - case KeyCode.MAC_FF_META: - case KeyCode.META: - case KeyCode.NUMLOCK: - case KeyCode.NUM_CENTER: - case KeyCode.PAGE_DOWN: - case KeyCode.PAGE_UP: - case KeyCode.PAUSE: - case KeyCode.PRINT_SCREEN: - case KeyCode.RIGHT: - case KeyCode.SHIFT: - case KeyCode.UP: - case KeyCode.WIN_KEY: - case KeyCode.WIN_KEY_RIGHT: - return false; + proto$1.calendar = calendar; + proto$1.longDateFormat = longDateFormat; + proto$1.invalidDate = invalidDate; + proto$1.ordinal = ordinal; + proto$1.preparse = preParsePostFormat; + proto$1.postformat = preParsePostFormat; + proto$1.relativeTime = relativeTime; + proto$1.pastFuture = pastFuture; + proto$1.set = set; + proto$1.eras = localeEras; + proto$1.erasParse = localeErasParse; + proto$1.erasConvertYear = localeErasConvertYear; + proto$1.erasAbbrRegex = erasAbbrRegex; + proto$1.erasNameRegex = erasNameRegex; + proto$1.erasNarrowRegex = erasNarrowRegex; + + proto$1.months = localeMonths; + proto$1.monthsShort = localeMonthsShort; + proto$1.monthsParse = localeMonthsParse; + proto$1.monthsRegex = monthsRegex; + proto$1.monthsShortRegex = monthsShortRegex; + proto$1.week = localeWeek; + proto$1.firstDayOfYear = localeFirstDayOfYear; + proto$1.firstDayOfWeek = localeFirstDayOfWeek; + + proto$1.weekdays = localeWeekdays; + proto$1.weekdaysMin = localeWeekdaysMin; + proto$1.weekdaysShort = localeWeekdaysShort; + proto$1.weekdaysParse = localeWeekdaysParse; - default: - return true; - } - }, + proto$1.weekdaysRegex = weekdaysRegex; + proto$1.weekdaysShortRegex = weekdaysShortRegex; + proto$1.weekdaysMinRegex = weekdaysMinRegex; - /** - * whether character is entered. - */ - isCharacterKey: function isCharacterKey(keyCode) { - if (keyCode >= KeyCode.ZERO && keyCode <= KeyCode.NINE) { - return true; - } + proto$1.isPM = localeIsPM; + proto$1.meridiem = localeMeridiem; - if (keyCode >= KeyCode.NUM_ZERO && keyCode <= KeyCode.NUM_MULTIPLY) { - return true; + function get$1(format, index, field, setter) { + var locale = getLocale(), + utc = createUTC().set(setter, index); + return locale[field](utc, format); } - if (keyCode >= KeyCode.A && keyCode <= KeyCode.Z) { - return true; - } // Safari sends zero key code for non-latin characters. - + function listMonthsImpl(format, index, field) { + if (isNumber(format)) { + index = format; + format = undefined; + } - if (window.navigator.userAgent.indexOf('WebKit') !== -1 && keyCode === 0) { - return true; - } + format = format || ''; - switch (keyCode) { - case KeyCode.SPACE: - case KeyCode.QUESTION_MARK: - case KeyCode.NUM_PLUS: - case KeyCode.NUM_MINUS: - case KeyCode.NUM_PERIOD: - case KeyCode.NUM_DIVISION: - case KeyCode.SEMICOLON: - case KeyCode.DASH: - case KeyCode.EQUALS: - case KeyCode.COMMA: - case KeyCode.PERIOD: - case KeyCode.SLASH: - case KeyCode.APOSTROPHE: - case KeyCode.SINGLE_QUOTE: - case KeyCode.OPEN_SQUARE_BRACKET: - case KeyCode.BACKSLASH: - case KeyCode.CLOSE_SQUARE_BRACKET: - return true; + if (index != null) { + return get$1(format, index, field, 'month'); + } - default: - return false; + var i, + out = []; + for (i = 0; i < 12; i++) { + out[i] = get$1(format, i, field, 'month'); + } + return out; } - } - }; - var _default = KeyCode; - exports.default = _default; - /***/ }), - /* 60 */ - /***/ (function(module, exports, __webpack_require__) { + // () + // (5) + // (fmt, 5) + // (fmt) + // (true) + // (true, 5) + // (true, fmt, 5) + // (true, fmt) + function listWeekdaysImpl(localeSorted, format, index, field) { + if (typeof localeSorted === 'boolean') { + if (isNumber(format)) { + index = format; + format = undefined; + } - "use strict"; + format = format || ''; + } else { + format = localeSorted; + index = format; + localeSorted = false; + if (isNumber(format)) { + index = format; + format = undefined; + } - exports.__esModule = true; - exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined; + format = format || ''; + } - var _all2 = __webpack_require__(816); + var locale = getLocale(), + shift = localeSorted ? locale._week.dow : 0, + i, + out = []; - var _all3 = _interopRequireDefault(_all2); + if (index != null) { + return get$1(format, (index + shift) % 7, field, 'day'); + } - var _componentOrElement2 = __webpack_require__(817); + for (i = 0; i < 7; i++) { + out[i] = get$1(format, (i + shift) % 7, field, 'day'); + } + return out; + } - var _componentOrElement3 = _interopRequireDefault(_componentOrElement2); + function listMonths(format, index) { + return listMonthsImpl(format, index, 'months'); + } - var _deprecated2 = __webpack_require__(818); + function listMonthsShort(format, index) { + return listMonthsImpl(format, index, 'monthsShort'); + } - var _deprecated3 = _interopRequireDefault(_deprecated2); + function listWeekdays(localeSorted, format, index) { + return listWeekdaysImpl(localeSorted, format, index, 'weekdays'); + } - var _elementType2 = __webpack_require__(819); + function listWeekdaysShort(localeSorted, format, index) { + return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort'); + } - var _elementType3 = _interopRequireDefault(_elementType2); + function listWeekdaysMin(localeSorted, format, index) { + return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin'); + } - var _isRequiredForA11y2 = __webpack_require__(820); + getSetGlobalLocale('en', { + eras: [ + { + since: '0001-01-01', + until: +Infinity, + offset: 1, + name: 'Anno Domini', + narrow: 'AD', + abbr: 'AD', + }, + { + since: '0000-12-31', + until: -Infinity, + offset: 1, + name: 'Before Christ', + narrow: 'BC', + abbr: 'BC', + }, + ], + dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, + ordinal: function (number) { + var b = number % 10, + output = + toInt((number % 100) / 10) === 1 + ? 'th' + : b === 1 + ? 'st' + : b === 2 + ? 'nd' + : b === 3 + ? 'rd' + : 'th'; + return number + output; + }, + }); - var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2); + // Side effect imports - var _splitComponent2 = __webpack_require__(821); + hooks.lang = deprecate( + 'moment.lang is deprecated. Use moment.locale instead.', + getSetGlobalLocale + ); + hooks.langData = deprecate( + 'moment.langData is deprecated. Use moment.localeData instead.', + getLocale + ); - var _splitComponent3 = _interopRequireDefault(_splitComponent2); + var mathAbs = Math.abs; - var _createChainedFunction2 = __webpack_require__(822); + function abs() { + var data = this._data; - var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2); + this._milliseconds = mathAbs(this._milliseconds); + this._days = mathAbs(this._days); + this._months = mathAbs(this._months); - var _keyCode = __webpack_require__(823); + data.milliseconds = mathAbs(data.milliseconds); + data.seconds = mathAbs(data.seconds); + data.minutes = mathAbs(data.minutes); + data.hours = mathAbs(data.hours); + data.months = mathAbs(data.months); + data.years = mathAbs(data.years); - var _keyCode2 = _interopRequireDefault(_keyCode); + return this; + } - var _contains2 = __webpack_require__(824); + function addSubtract$1(duration, input, value, direction) { + var other = createDuration(input, value); - var _contains3 = _interopRequireDefault(_contains2); + duration._milliseconds += direction * other._milliseconds; + duration._days += direction * other._days; + duration._months += direction * other._months; - var _addEventListener2 = __webpack_require__(264); + return duration._bubble(); + } - var _addEventListener3 = _interopRequireDefault(_addEventListener2); + // supports only 2.0-style add(1, 's') or add(duration) + function add$1(input, value) { + return addSubtract$1(this, input, value, 1); + } - var _cssAnimation2 = __webpack_require__(825); + // supports only 2.0-style subtract(1, 's') or subtract(duration) + function subtract$1(input, value) { + return addSubtract$1(this, input, value, -1); + } - var _cssAnimation3 = _interopRequireDefault(_cssAnimation2); + function absCeil(number) { + if (number < 0) { + return Math.floor(number); + } else { + return Math.ceil(number); + } + } - var _toArray2 = __webpack_require__(827); + function bubble() { + var milliseconds = this._milliseconds, + days = this._days, + months = this._months, + data = this._data, + seconds, + minutes, + hours, + years, + monthsFromDays; - var _toArray3 = _interopRequireDefault(_toArray2); + // if we have a mix of positive and negative values, bubble down first + // check: https://github.com/moment/moment/issues/2166 + if ( + !( + (milliseconds >= 0 && days >= 0 && months >= 0) || + (milliseconds <= 0 && days <= 0 && months <= 0) + ) + ) { + milliseconds += absCeil(monthsToDays(months) + days) * 864e5; + days = 0; + months = 0; + } - var _Align2 = __webpack_require__(265); + // The following code bubbles up values, see the tests for + // examples of what that means. + data.milliseconds = milliseconds % 1000; - var _Align3 = _interopRequireDefault(_Align2); + seconds = absFloor(milliseconds / 1000); + data.seconds = seconds % 60; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + minutes = absFloor(seconds / 60); + data.minutes = minutes % 60; - exports.all = _all3.default; - exports.componentOrElement = _componentOrElement3.default; - exports.deprecated = _deprecated3.default; - exports.elementType = _elementType3.default; - exports.isRequiredForA11y = _isRequiredForA11y3.default; - exports.splitComponent = _splitComponent3.default; - exports.createChainedFunction = _createChainedFunction3.default; - exports.KeyCode = _keyCode2.default; - exports.contains = _contains3.default; - exports.addEventListener = _addEventListener3.default; - exports.cssAnimation = _cssAnimation3.default; - exports.toArray = _toArray3.default; - //export getContainerRenderMixin from './getContainerRenderMixin'; + hours = absFloor(minutes / 60); + data.hours = hours % 24; - exports.Align = _Align3.default; + days += absFloor(hours / 24); - /***/ }), - /* 61 */ - /***/ (function(module, exports, __webpack_require__) { + // convert days to months + monthsFromDays = absFloor(daysToMonths(days)); + months += monthsFromDays; + days -= absCeil(monthsToDays(monthsFromDays)); - "use strict"; + // 12 months -> 1 year + years = absFloor(months / 12); + months %= 12; + data.days = days; + data.months = months; + data.years = years; - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.setStyle = exports.getWidth = exports.menuAllProps = undefined; + return this; + } - var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; /** - * This source code is quoted from rc-menu. - * homepage: https://github.com/react-component/menu - */ + function daysToMonths(days) { + // 400 years have 146097 days (taking into account leap year rules) + // 400 years have 12 months === 4800 + return (days * 4800) / 146097; + } + function monthsToDays(months) { + // the reverse of daysToMonths + return (months * 146097) / 4800; + } - exports.noop = noop; - exports.getKeyFromChildrenIndex = getKeyFromChildrenIndex; - exports.getMenuIdFromSubMenuEventKey = getMenuIdFromSubMenuEventKey; - exports.loopMenuItem = loopMenuItem; - exports.loopMenuItemRecursively = loopMenuItemRecursively; - exports.fireKeyEvent = fireKeyEvent; + function as(units) { + if (!this.isValid()) { + return NaN; + } + var days, + months, + milliseconds = this._milliseconds; - var _react = __webpack_require__(0); + units = normalizeUnits(units); - var _react2 = _interopRequireDefault(_react); + if (units === 'month' || units === 'quarter' || units === 'year') { + days = this._days + milliseconds / 864e5; + months = this._months + daysToMonths(days); + switch (units) { + case 'month': + return months; + case 'quarter': + return months / 3; + case 'year': + return months / 12; + } + } else { + // handle milliseconds separately because of floating point math errors (issue #1867) + days = this._days + Math.round(monthsToDays(this._months)); + switch (units) { + case 'week': + return days / 7 + milliseconds / 6048e5; + case 'day': + return days + milliseconds / 864e5; + case 'hour': + return days * 24 + milliseconds / 36e5; + case 'minute': + return days * 1440 + milliseconds / 6e4; + case 'second': + return days * 86400 + milliseconds / 1000; + // Math.floor prevents floating point math errors here + case 'millisecond': + return Math.floor(days * 864e5) + milliseconds; + default: + throw new Error('Unknown unit ' + units); + } + } + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + // TODO: Use this.as('ms')? + function valueOf$1() { + if (!this.isValid()) { + return NaN; + } + return ( + this._milliseconds + + this._days * 864e5 + + (this._months % 12) * 2592e6 + + toInt(this._months / 12) * 31536e6 + ); + } - function noop() {} + function makeAs(alias) { + return function () { + return this.as(alias); + }; + } - function getKeyFromChildrenIndex(child, menuEventKey, index) { - var prefix = menuEventKey || ''; - return child.key || prefix + 'item_' + index; - } + var asMilliseconds = makeAs('ms'), + asSeconds = makeAs('s'), + asMinutes = makeAs('m'), + asHours = makeAs('h'), + asDays = makeAs('d'), + asWeeks = makeAs('w'), + asMonths = makeAs('M'), + asQuarters = makeAs('Q'), + asYears = makeAs('y'); - function getMenuIdFromSubMenuEventKey(eventKey) { - return eventKey + '-menu-'; - } + function clone$1() { + return createDuration(this); + } - function loopMenuItem(children, cb) { - var index = -1; - _react2["default"].Children.forEach(children, function (c) { - index++; - if (c && c.type && c.type.isMenuItemGroup) { - _react2["default"].Children.forEach(c.props.children, function (c2) { - index++; - cb(c2, index); - }); - } else { - cb(c, index); + function get$2(units) { + units = normalizeUnits(units); + return this.isValid() ? this[units + 's']() : NaN; } - }); - } - function loopMenuItemRecursively(children, keys, ret) { - /* istanbul ignore if */ - if (!children || ret.find) { - return; - } - _react2["default"].Children.forEach(children, function (c) { - if (c) { - var construct = c.type; - if (!construct || !(construct.isSubMenu || construct.isMenuItem || construct.isMenuItemGroup)) { - return; - } - if (keys.indexOf(c.key) !== -1) { - ret.find = true; - } else if (c.props.children) { - loopMenuItemRecursively(c.props.children, keys, ret); - } + function makeGetter(name) { + return function () { + return this.isValid() ? this._data[name] : NaN; + }; } - }); - } - var menuAllProps = exports.menuAllProps = ['defaultSelectedKeys', 'selectedKeys', 'defaultOpenKeys', 'openKeys', 'mode', 'getPopupContainer', 'onSelect', 'onDeselect', 'onDestroy', 'openTransitionName', 'openAnimation', 'subMenuOpenDelay', 'subMenuCloseDelay', 'forceSubMenuRender', 'triggerSubMenuAction', 'level', 'selectable', 'multiple', 'onOpenChange', 'visible', 'focusable', 'defaultActiveFirst', 'prefixCls', 'inlineIndent', 'parentMenu', 'title', 'rootPrefixCls', 'eventKey', 'active', 'onItemHover', 'onTitleMouseEnter', 'onTitleMouseLeave', 'onTitleClick', 'popupAlign', 'popupOffset', 'isOpen', 'renderMenuItem', 'manualRef', 'subMenuKey', 'disabled', 'index', 'isSelected', 'store', 'activeKey', 'builtinPlacements', 'overflowedIndicator', + var milliseconds = makeGetter('milliseconds'), + seconds = makeGetter('seconds'), + minutes = makeGetter('minutes'), + hours = makeGetter('hours'), + days = makeGetter('days'), + months = makeGetter('months'), + years = makeGetter('years'); - // the following keys found need to be removed from test regression - 'attribute', 'value', 'popupClassName', 'inlineCollapsed', 'menu', 'theme', 'itemIcon', 'expandIcon']; + function weeks() { + return absFloor(this.days() / 7); + } - var getWidth = exports.getWidth = function getWidth(elem) { - return elem && typeof elem.getBoundingClientRect === 'function' && elem.getBoundingClientRect().width || 0; - }; + var round = Math.round, + thresholds = { + ss: 44, // a few seconds to seconds + s: 45, // seconds to minute + m: 45, // minutes to hour + h: 22, // hours to day + d: 26, // days to month/week + w: null, // weeks to month + M: 11, // months to year + }; - var setStyle = exports.setStyle = function setStyle(elem, styleProperty, value) { - if (elem && _typeof(elem.style) === 'object') { - elem.style[styleProperty] = value; - } - }; + // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize + function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) { + return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture); + } - function fireKeyEvent(el, evtType, keyCode) { - var evtObj; - if (document.createEvent) { - if (window.KeyEvent) { - //firefox 浏览器下模拟事件 - evtObj = document.createEvent('KeyEvents'); - evtObj.initKeyEvent(evtType, true, true, window, true, false, false, false, keyCode, 0); - } else { - //chrome 浏览器下模拟事件 - evtObj = document.createEvent('UIEvents'); - evtObj.initUIEvent(evtType, true, true, window, 1); + function relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) { + var duration = createDuration(posNegDuration).abs(), + seconds = round(duration.as('s')), + minutes = round(duration.as('m')), + hours = round(duration.as('h')), + days = round(duration.as('d')), + months = round(duration.as('M')), + weeks = round(duration.as('w')), + years = round(duration.as('y')), + a = + (seconds <= thresholds.ss && ['s', seconds]) || + (seconds < thresholds.s && ['ss', seconds]) || + (minutes <= 1 && ['m']) || + (minutes < thresholds.m && ['mm', minutes]) || + (hours <= 1 && ['h']) || + (hours < thresholds.h && ['hh', hours]) || + (days <= 1 && ['d']) || + (days < thresholds.d && ['dd', days]); - delete evtObj.keyCode; - if (typeof evtObj.keyCode === "undefined") { - //为了模拟keycode - Object.defineProperty(evtObj, "keyCode", { value: keyCode }); - } else { - evtObj.key = String.fromCharCode(keyCode); - } + if (thresholds.w != null) { + a = + a || + (weeks <= 1 && ['w']) || + (weeks < thresholds.w && ['ww', weeks]); + } + a = a || + (months <= 1 && ['M']) || + (months < thresholds.M && ['MM', months]) || + (years <= 1 && ['y']) || ['yy', years]; - if (typeof evtObj.ctrlKey === 'undefined') { - //为了模拟ctrl键 - Object.defineProperty(evtObj, "ctrlKey", { value: true }); - } else { - evtObj.ctrlKey = true; - } + a[2] = withoutSuffix; + a[3] = +posNegDuration > 0; + a[4] = locale; + return substituteTimeAgo.apply(null, a); } - el.dispatchEvent(evtObj); - } else if (document.createEventObject) { - //IE 浏览器下模拟事件 - evtObj = document.createEventObject(); - evtObj.keyCode = keyCode; - el.fireEvent('on' + evtType, evtObj); - } - } - /***/ }), - /* 62 */ - /***/ (function(module, exports, __webpack_require__) { + // This function allows you to set the rounding function for relative time strings + function getSetRelativeTimeRounding(roundingFunction) { + if (roundingFunction === undefined) { + return round; + } + if (typeof roundingFunction === 'function') { + round = roundingFunction; + return true; + } + return false; + } - "use strict"; + // This function allows you to set a threshold for relative time strings + function getSetRelativeTimeThreshold(threshold, limit) { + if (thresholds[threshold] === undefined) { + return false; + } + if (limit === undefined) { + return thresholds[threshold]; + } + thresholds[threshold] = limit; + if (threshold === 's') { + thresholds.ss = limit - 1; + } + return true; + } + function humanize(argWithSuffix, argThresholds) { + if (!this.isValid()) { + return this.localeData().invalidDate(); + } - exports.__esModule = true; - exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined; + var withSuffix = false, + th = thresholds, + locale, + output; - var _all2 = __webpack_require__(1070); + if (typeof argWithSuffix === 'object') { + argThresholds = argWithSuffix; + argWithSuffix = false; + } + if (typeof argWithSuffix === 'boolean') { + withSuffix = argWithSuffix; + } + if (typeof argThresholds === 'object') { + th = Object.assign({}, thresholds, argThresholds); + if (argThresholds.s != null && argThresholds.ss == null) { + th.ss = argThresholds.s - 1; + } + } - var _all3 = _interopRequireDefault(_all2); + locale = this.localeData(); + output = relativeTime$1(this, !withSuffix, th, locale); - var _componentOrElement2 = __webpack_require__(1071); + if (withSuffix) { + output = locale.pastFuture(+this, output); + } - var _componentOrElement3 = _interopRequireDefault(_componentOrElement2); + return locale.postformat(output); + } - var _deprecated2 = __webpack_require__(1072); + var abs$1 = Math.abs; - var _deprecated3 = _interopRequireDefault(_deprecated2); + function sign(x) { + return (x > 0) - (x < 0) || +x; + } - var _elementType2 = __webpack_require__(1073); + function toISOString$1() { + // for ISO strings we do not use the normal bubbling rules: + // * milliseconds bubble up until they become hours + // * days do not bubble at all + // * months bubble up until they become years + // This is because there is no context-free conversion between hours and days + // (think of clock changes) + // and also not between days and months (28-31 days per month) + if (!this.isValid()) { + return this.localeData().invalidDate(); + } - var _elementType3 = _interopRequireDefault(_elementType2); + var seconds = abs$1(this._milliseconds) / 1000, + days = abs$1(this._days), + months = abs$1(this._months), + minutes, + hours, + years, + s, + total = this.asSeconds(), + totalSign, + ymSign, + daysSign, + hmsSign; - var _isRequiredForA11y2 = __webpack_require__(1074); + if (!total) { + // this is the same as C#'s (Noda) and python (isodate)... + // but not other JS (goog.date) + return 'P0D'; + } - var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2); + // 3600 seconds -> 60 minutes -> 1 hour + minutes = absFloor(seconds / 60); + hours = absFloor(minutes / 60); + seconds %= 60; + minutes %= 60; - var _splitComponent2 = __webpack_require__(1075); + // 12 months -> 1 year + years = absFloor(months / 12); + months %= 12; - var _splitComponent3 = _interopRequireDefault(_splitComponent2); + // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js + s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, '') : ''; - var _createChainedFunction2 = __webpack_require__(1076); + totalSign = total < 0 ? '-' : ''; + ymSign = sign(this._months) !== sign(total) ? '-' : ''; + daysSign = sign(this._days) !== sign(total) ? '-' : ''; + hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : ''; - var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2); + return ( + totalSign + + 'P' + + (years ? ymSign + years + 'Y' : '') + + (months ? ymSign + months + 'M' : '') + + (days ? daysSign + days + 'D' : '') + + (hours || minutes || seconds ? 'T' : '') + + (hours ? hmsSign + hours + 'H' : '') + + (minutes ? hmsSign + minutes + 'M' : '') + + (seconds ? hmsSign + s + 'S' : '') + ); + } - var _keyCode = __webpack_require__(1077); + var proto$2 = Duration.prototype; - var _keyCode2 = _interopRequireDefault(_keyCode); + proto$2.isValid = isValid$1; + proto$2.abs = abs; + proto$2.add = add$1; + proto$2.subtract = subtract$1; + proto$2.as = as; + proto$2.asMilliseconds = asMilliseconds; + proto$2.asSeconds = asSeconds; + proto$2.asMinutes = asMinutes; + proto$2.asHours = asHours; + proto$2.asDays = asDays; + proto$2.asWeeks = asWeeks; + proto$2.asMonths = asMonths; + proto$2.asQuarters = asQuarters; + proto$2.asYears = asYears; + proto$2.valueOf = valueOf$1; + proto$2._bubble = bubble; + proto$2.clone = clone$1; + proto$2.get = get$2; + proto$2.milliseconds = milliseconds; + proto$2.seconds = seconds; + proto$2.minutes = minutes; + proto$2.hours = hours; + proto$2.days = days; + proto$2.weeks = weeks; + proto$2.months = months; + proto$2.years = years; + proto$2.humanize = humanize; + proto$2.toISOString = toISOString$1; + proto$2.toString = toISOString$1; + proto$2.toJSON = toISOString$1; + proto$2.locale = locale; + proto$2.localeData = localeData; - var _contains2 = __webpack_require__(1078); + proto$2.toIsoString = deprecate( + 'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', + toISOString$1 + ); + proto$2.lang = lang; - var _contains3 = _interopRequireDefault(_contains2); + // FORMATTING - var _addEventListener2 = __webpack_require__(305); + addFormatToken('X', 0, 0, 'unix'); + addFormatToken('x', 0, 0, 'valueOf'); - var _addEventListener3 = _interopRequireDefault(_addEventListener2); + // PARSING - var _cssAnimation2 = __webpack_require__(1079); + addRegexToken('x', matchSigned); + addRegexToken('X', matchTimestamp); + addParseToken('X', function (input, array, config) { + config._d = new Date(parseFloat(input) * 1000); + }); + addParseToken('x', function (input, array, config) { + config._d = new Date(toInt(input)); + }); - var _cssAnimation3 = _interopRequireDefault(_cssAnimation2); + //! moment.js - var _toArray2 = __webpack_require__(1081); + hooks.version = '2.25.3'; - var _toArray3 = _interopRequireDefault(_toArray2); + setHookCallback(createLocal); - var _Align2 = __webpack_require__(1082); + hooks.fn = proto; + hooks.min = min; + hooks.max = max; + hooks.now = now; + hooks.utc = createUTC; + hooks.unix = createUnix; + hooks.months = listMonths; + hooks.isDate = isDate; + hooks.locale = getSetGlobalLocale; + hooks.invalid = createInvalid; + hooks.duration = createDuration; + hooks.isMoment = isMoment; + hooks.weekdays = listWeekdays; + hooks.parseZone = createInZone; + hooks.localeData = getLocale; + hooks.isDuration = isDuration; + hooks.monthsShort = listMonthsShort; + hooks.weekdaysMin = listWeekdaysMin; + hooks.defineLocale = defineLocale; + hooks.updateLocale = updateLocale; + hooks.locales = listLocales; + hooks.weekdaysShort = listWeekdaysShort; + hooks.normalizeUnits = normalizeUnits; + hooks.relativeTimeRounding = getSetRelativeTimeRounding; + hooks.relativeTimeThreshold = getSetRelativeTimeThreshold; + hooks.calendarFormat = getCalendarFormat; + hooks.prototype = proto; - var _Align3 = _interopRequireDefault(_Align2); + // currently HTML5 input type only supports 24-hour formats + hooks.HTML5_FMT = { + DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // + DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // + DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // + DATE: 'YYYY-MM-DD', // + TIME: 'HH:mm', // + TIME_SECONDS: 'HH:mm:ss', // + TIME_MS: 'HH:mm:ss.SSS', // + WEEK: 'GGGG-[W]WW', // + MONTH: 'YYYY-MM', // + }; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + return hooks; - exports.all = _all3.default; - exports.componentOrElement = _componentOrElement3.default; - exports.deprecated = _deprecated3.default; - exports.elementType = _elementType3.default; - exports.isRequiredForA11y = _isRequiredForA11y3.default; - exports.splitComponent = _splitComponent3.default; - exports.createChainedFunction = _createChainedFunction3.default; - exports.KeyCode = _keyCode2.default; - exports.contains = _contains3.default; - exports.addEventListener = _addEventListener3.default; - exports.cssAnimation = _cssAnimation3.default; - exports.toArray = _toArray3.default; - //export getContainerRenderMixin from './getContainerRenderMixin'; + }))); - exports.Align = _Align3.default; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(242)(module))) /***/ }), - /* 63 */ - /***/ (function(module, exports, __webpack_require__) { + /* 5 */ + /***/ (function(module, exports) { - "use strict"; + // shim for using process in browser + var process = module.exports = {}; + // cached from whatever global is present so that test runners that stub it + // don't break things. But we need to wrap it in a try catch in case it is + // wrapped in strict mode code which doesn't define any globals. It's inside a + // function because try/catches deoptimize in certain engines. - exports.__esModule = true; - exports['default'] = { - today: '今天', - now: '此刻', - backToToday: '返回今天', - ok: '确定', - timeSelect: '选择时间', - dateSelect: '选择日期', - weekSelect: '选择周', - clear: '清除', - month: '月', - year: '年', - previousMonth: '上个月 (翻页上键)', - nextMonth: '下个月 (翻页下键)', - monthSelect: '选择月份', - yearSelect: '选择年份', - decadeSelect: '选择年代', - yearFormat: 'YYYY年', - dayFormat: 'D日', - dateFormat: 'YYYY年M月D日', - dateTimeFormat: 'YYYY年M月D日 HH时mm分ss秒', - previousYear: '上一年 (Control键加左方向键)', - nextYear: '下一年 (Control键加右方向键)', - previousDecade: '上一年代', - nextDecade: '下一年代', - previousCentury: '上一世纪', - nextCentury: '下一世纪' - }; - module.exports = exports['default']; + var cachedSetTimeout; + var cachedClearTimeout; - /***/ }), - /* 64 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + function defaultSetTimout() { + throw new Error('setTimeout has not been defined'); + } + function defaultClearTimeout () { + throw new Error('clearTimeout has not been defined'); + } + (function () { + try { + if (typeof setTimeout === 'function') { + cachedSetTimeout = setTimeout; + } else { + cachedSetTimeout = defaultSetTimout; + } + } catch (e) { + cachedSetTimeout = defaultSetTimout; + } + try { + if (typeof clearTimeout === 'function') { + cachedClearTimeout = clearTimeout; + } else { + cachedClearTimeout = defaultClearTimeout; + } + } catch (e) { + cachedClearTimeout = defaultClearTimeout; + } + } ()) + function runTimeout(fun) { + if (cachedSetTimeout === setTimeout) { + //normal enviroments in sane situations + return setTimeout(fun, 0); + } + // if setTimeout wasn't available but was latter defined + if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { + cachedSetTimeout = setTimeout; + return setTimeout(fun, 0); + } + try { + // when when somebody has screwed with setTimeout but no I.E. maddness + return cachedSetTimeout(fun, 0); + } catch(e){ + try { + // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally + return cachedSetTimeout.call(null, fun, 0); + } catch(e){ + // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error + return cachedSetTimeout.call(this, fun, 0); + } + } - "use strict"; - /* harmony export (immutable) */ __webpack_exports__["g"] = noop; - /* harmony export (immutable) */ __webpack_exports__["a"] = getKeyFromChildrenIndex; - /* harmony export (immutable) */ __webpack_exports__["b"] = getMenuIdFromSubMenuEventKey; - /* harmony export (immutable) */ __webpack_exports__["d"] = loopMenuItem; - /* harmony export (immutable) */ __webpack_exports__["e"] = loopMenuItemRecursively; - /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return menuAllProps; }); - /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getWidth; }); - /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return setStyle; }); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); + } + function runClearTimeout(marker) { + if (cachedClearTimeout === clearTimeout) { + //normal enviroments in sane situations + return clearTimeout(marker); + } + // if clearTimeout wasn't available but was latter defined + if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { + cachedClearTimeout = clearTimeout; + return clearTimeout(marker); + } + try { + // when when somebody has screwed with setTimeout but no I.E. maddness + return cachedClearTimeout(marker); + } catch (e){ + try { + // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally + return cachedClearTimeout.call(null, marker); + } catch (e){ + // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. + // Some versions of I.E. have different rules for clearTimeout vs setTimeout + return cachedClearTimeout.call(this, marker); + } + } - function noop() {} - function getKeyFromChildrenIndex(child, menuEventKey, index) { - var prefix = menuEventKey || ''; - return child.key || prefix + 'item_' + index; - } - function getMenuIdFromSubMenuEventKey(eventKey) { - return eventKey + '-menu-'; } + var queue = []; + var draining = false; + var currentQueue; + var queueIndex = -1; - function loopMenuItem(children, cb) { - var index = -1; - __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (c) { - index++; - if (c && c.type && c.type.isMenuItemGroup) { - __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(c.props.children, function (c2) { - index++; - cb(c2, index); - }); + function cleanUpNextTick() { + if (!draining || !currentQueue) { + return; + } + draining = false; + if (currentQueue.length) { + queue = currentQueue.concat(queue); } else { - cb(c, index); + queueIndex = -1; + } + if (queue.length) { + drainQueue(); } - }); } - function loopMenuItemRecursively(children, keys, ret) { - /* istanbul ignore if */ - if (!children || ret.find) { - return; - } - __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (c) { - if (c) { - var construct = c.type; - if (!construct || !(construct.isSubMenu || construct.isMenuItem || construct.isMenuItemGroup)) { + function drainQueue() { + if (draining) { return; - } - if (keys.indexOf(c.key) !== -1) { - ret.find = true; - } else if (c.props.children) { - loopMenuItemRecursively(c.props.children, keys, ret); - } } - }); - } - - var menuAllProps = ['defaultSelectedKeys', 'selectedKeys', 'defaultOpenKeys', 'openKeys', 'mode', 'getPopupContainer', 'onSelect', 'onDeselect', 'onDestroy', 'openTransitionName', 'openAnimation', 'subMenuOpenDelay', 'subMenuCloseDelay', 'forceSubMenuRender', 'triggerSubMenuAction', 'level', 'selectable', 'multiple', 'onOpenChange', 'visible', 'focusable', 'defaultActiveFirst', 'prefixCls', 'inlineIndent', 'parentMenu', 'title', 'rootPrefixCls', 'eventKey', 'active', 'onItemHover', 'onTitleMouseEnter', 'onTitleMouseLeave', 'onTitleClick', 'popupAlign', 'popupOffset', 'isOpen', 'renderMenuItem', 'manualRef', 'subMenuKey', 'disabled', 'index', 'isSelected', 'store', 'activeKey', 'builtinPlacements', 'overflowedIndicator', + var timeout = runTimeout(cleanUpNextTick); + draining = true; - // the following keys found need to be removed from test regression - 'attribute', 'value', 'popupClassName', 'inlineCollapsed', 'menu', 'theme', 'itemIcon', 'expandIcon']; + var len = queue.length; + while(len) { + currentQueue = queue; + queue = []; + while (++queueIndex < len) { + if (currentQueue) { + currentQueue[queueIndex].run(); + } + } + queueIndex = -1; + len = queue.length; + } + currentQueue = null; + draining = false; + runClearTimeout(timeout); + } - var getWidth = function getWidth(elem) { - return elem && typeof elem.getBoundingClientRect === 'function' && elem.getBoundingClientRect().width || 0; + process.nextTick = function (fun) { + var args = new Array(arguments.length - 1); + if (arguments.length > 1) { + for (var i = 1; i < arguments.length; i++) { + args[i - 1] = arguments[i]; + } + } + queue.push(new Item(fun, args)); + if (queue.length === 1 && !draining) { + runTimeout(drainQueue); + } }; - var setStyle = function setStyle(elem, styleProperty, value) { - if (elem && typeof elem.style === 'object') { - elem.style[styleProperty] = value; - } + // v8 likes predictible objects + function Item(fun, array) { + this.fun = fun; + this.array = array; + } + Item.prototype.run = function () { + this.fun.apply(null, this.array); }; + process.title = 'browser'; + process.browser = true; + process.env = {}; + process.argv = []; + process.version = ''; // empty string to avoid regexp issues + process.versions = {}; - /***/ }), - /* 65 */ - /***/ (function(module, exports) { + function noop() {} - module.exports = function (bitmap, value) { - return { - enumerable: !(bitmap & 1), - configurable: !(bitmap & 2), - writable: !(bitmap & 4), - value: value - }; + process.on = noop; + process.addListener = noop; + process.once = noop; + process.off = noop; + process.removeListener = noop; + process.removeAllListeners = noop; + process.emit = noop; + process.prependListener = noop; + process.prependOnceListener = noop; + + process.listeners = function (name) { return [] } + + process.binding = function (name) { + throw new Error('process.binding is not supported'); + }; + + process.cwd = function () { return '/' }; + process.chdir = function (dir) { + throw new Error('process.chdir is not supported'); }; + process.umask = function() { return 0; }; /***/ }), - /* 66 */ + /* 6 */ /***/ (function(module, exports, __webpack_require__) { - // 19.1.2.14 / 15.2.3.14 Object.keys(O) - var $keys = __webpack_require__(219); - var enumBugKeys = __webpack_require__(127); + "use strict"; - module.exports = Object.keys || function keys(O) { - return $keys(O, enumBugKeys); - }; + exports.__esModule = true; + exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined; - /***/ }), - /* 67 */ - /***/ (function(module, exports, __webpack_require__) { + var _all2 = __webpack_require__(745); - // 7.1.13 ToObject(argument) - var defined = __webpack_require__(123); - module.exports = function (it) { - return Object(defined(it)); - }; + var _all3 = _interopRequireDefault(_all2); + var _componentOrElement2 = __webpack_require__(746); - /***/ }), - /* 68 */ - /***/ (function(module, exports) { + var _componentOrElement3 = _interopRequireDefault(_componentOrElement2); - module.exports = {}; + var _deprecated2 = __webpack_require__(747); + var _deprecated3 = _interopRequireDefault(_deprecated2); - /***/ }), - /* 69 */ - /***/ (function(module, exports, __webpack_require__) { + var _elementType2 = __webpack_require__(748); - "use strict"; - /** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - */ + var _elementType3 = _interopRequireDefault(_elementType2); + var _isRequiredForA11y2 = __webpack_require__(749); + var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2); - var React = __webpack_require__(0); - var factory = __webpack_require__(602); + var _splitComponent2 = __webpack_require__(243); - if (typeof React === 'undefined') { - throw Error( - 'create-react-class could not find the React object. If you are using script tags, ' + - 'make sure that React is being loaded before create-react-class.' - ); - } + var _splitComponent3 = _interopRequireDefault(_splitComponent2); - // Hack to grab NoopUpdateQueue from isomorphic React - var ReactNoopUpdateQueue = new React.Component().updater; + var _createChainedFunction2 = __webpack_require__(96); - module.exports = factory( - React.Component, - React.isValidElement, - ReactNoopUpdateQueue - ); + var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2); + var _keyCode = __webpack_require__(750); - /***/ }), - /* 70 */ - /***/ (function(module, exports, __webpack_require__) { + var _keyCode2 = _interopRequireDefault(_keyCode); - var freeGlobal = __webpack_require__(632); + var _contains2 = __webpack_require__(751); - /** Detect free variable `self`. */ - var freeSelf = typeof self == 'object' && self && self.Object === Object && self; + var _contains3 = _interopRequireDefault(_contains2); - /** Used as a reference to the global object. */ - var root = freeGlobal || freeSelf || Function('return this')(); + var _addEventListener2 = __webpack_require__(138); - module.exports = root; + var _addEventListener3 = _interopRequireDefault(_addEventListener2); + var _cssAnimation2 = __webpack_require__(752); - /***/ }), - /* 71 */ - /***/ (function(module, exports) { + var _cssAnimation3 = _interopRequireDefault(_cssAnimation2); - /** - * Checks if `value` is the - * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) - * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an object, else `false`. - * @example - * - * _.isObject({}); - * // => true - * - * _.isObject([1, 2, 3]); - * // => true - * - * _.isObject(_.noop); - * // => true - * - * _.isObject(null); - * // => false - */ - function isObject(value) { - var type = typeof value; - return value != null && (type == 'object' || type == 'function'); - } + var _toArray2 = __webpack_require__(754); - module.exports = isObject; + var _toArray3 = _interopRequireDefault(_toArray2); + + var _Align2 = __webpack_require__(755); + + var _Align3 = _interopRequireDefault(_Align2); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + exports.all = _all3.default; + exports.componentOrElement = _componentOrElement3.default; + exports.deprecated = _deprecated3.default; + exports.elementType = _elementType3.default; + exports.isRequiredForA11y = _isRequiredForA11y3.default; + exports.splitComponent = _splitComponent3.default; + exports.createChainedFunction = _createChainedFunction3.default; + exports.KeyCode = _keyCode2.default; + exports.contains = _contains3.default; + exports.addEventListener = _addEventListener3.default; + exports.cssAnimation = _cssAnimation3.default; + exports.toArray = _toArray3.default; + //export getContainerRenderMixin from './getContainerRenderMixin'; + exports.Align = _Align3.default; /***/ }), - /* 72 */ - /***/ (function(module, exports) { + /* 7 */ + /***/ (function(module, exports, __webpack_require__) { - // + "use strict"; - module.exports = function shallowEqual(objA, objB, compare, compareContext) { - var ret = compare ? compare.call(compareContext, objA, objB) : void 0; - if (ret !== void 0) { - return !!ret; - } + exports.__esModule = true; - if (objA === objB) { - return true; + exports.default = function (instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); } + }; - if (typeof objA !== "object" || !objA || typeof objB !== "object" || !objB) { - return false; - } + /***/ }), + /* 8 */ + /***/ (function(module, exports, __webpack_require__) { - var keysA = Object.keys(objA); - var keysB = Object.keys(objB); + "use strict"; - if (keysA.length !== keysB.length) { - return false; - } - var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB); + exports.__esModule = true; - // Test for A's keys different from B. - for (var idx = 0; idx < keysA.length; idx++) { - var key = keysA[idx]; + var _assign = __webpack_require__(589); - if (!bHasOwnProperty(key)) { - return false; - } + var _assign2 = _interopRequireDefault(_assign); - var valueA = objA[key]; - var valueB = objB[key]; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0; + exports.default = _assign2.default || function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; - if (ret === false || (ret === void 0 && valueA !== valueB)) { - return false; + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key]; + } } } - return true; + return target; }; - /***/ }), - /* 73 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + /* 9 */ + /***/ (function(module, exports, __webpack_require__) { "use strict"; - Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(8); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(7); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(9); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(10); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react__ = __webpack_require__(0); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types__ = __webpack_require__(1); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_prop_types__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_dom__ = __webpack_require__(3); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react_dom__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react_lifecycles_compat__ = __webpack_require__(14); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_rc_util_es_Dom_contains__ = __webpack_require__(143); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_rc_util_es_Dom_addEventListener__ = __webpack_require__(144); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_rc_util_es_ContainerRender__ = __webpack_require__(258); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_rc_util_es_Portal__ = __webpack_require__(259); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_classnames__ = __webpack_require__(2); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_12_classnames__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__utils__ = __webpack_require__(260); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__Popup__ = __webpack_require__(798); - - + exports.__esModule = true; + var _typeof2 = __webpack_require__(140); + var _typeof3 = _interopRequireDefault(_typeof2); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + exports.default = function (self, call) { + if (!self) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } + return call && ((typeof call === "undefined" ? "undefined" : (0, _typeof3.default)(call)) === "object" || typeof call === "function") ? call : self; + }; + /***/ }), + /* 10 */ + /***/ (function(module, exports, __webpack_require__) { + "use strict"; + exports.__esModule = true; + var _setPrototypeOf = __webpack_require__(790); + var _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf); + var _create = __webpack_require__(794); - function noop() {} + var _create2 = _interopRequireDefault(_create); - function returnEmptyString() { - return ''; - } + var _typeof2 = __webpack_require__(140); - function returnDocument() { - return window.document; - } + var _typeof3 = _interopRequireDefault(_typeof2); - var ALL_HANDLERS = ['onClick', 'onMouseDown', 'onTouchStart', 'onMouseEnter', 'onMouseLeave', 'onFocus', 'onBlur', 'onContextMenu']; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var IS_REACT_16 = !!__WEBPACK_IMPORTED_MODULE_6_react_dom__["createPortal"]; + exports.default = function (subClass, superClass) { + if (typeof superClass !== "function" && superClass !== null) { + throw new TypeError("Super expression must either be null or a function, not " + (typeof superClass === "undefined" ? "undefined" : (0, _typeof3.default)(superClass))); + } - var contextTypes = { - rcTrigger: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.shape({ - onPopupMouseDown: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func - }) + subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, { + constructor: { + value: subClass, + enumerable: false, + writable: true, + configurable: true + } + }); + if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass; }; - var Trigger = function (_React$Component) { - __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default()(Trigger, _React$Component); - - function Trigger(props) { - __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, Trigger); - - var _this = __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.call(this, props)); + /***/ }), + /* 11 */ + /***/ (function(module, exports, __webpack_require__) { - _initialiseProps.call(_this); + "use strict"; + /* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright 2014-2015, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ - var popupVisible = void 0; - if ('popupVisible' in props) { - popupVisible = !!props.popupVisible; - } else { - popupVisible = !!props.defaultPopupVisible; - } - _this.state = { - prevPopupVisible: popupVisible, - popupVisible: popupVisible - }; - ALL_HANDLERS.forEach(function (h) { - _this['fire' + h] = function (e) { - _this.fireEvents(h, e); - }; - }); - return _this; - } + /** + * Similar to invariant but only logs a warning if the condition is not met. + * This can be used to log issues in development environments in critical + * paths. Removing the logging code for production environments will keep the + * same logic and follow the same code paths. + */ - Trigger.prototype.getChildContext = function getChildContext() { - return { - rcTrigger: { - onPopupMouseDown: this.onPopupMouseDown - } - }; - }; + var warning = function() {}; - Trigger.prototype.componentDidMount = function componentDidMount() { - this.componentDidUpdate({}, { - popupVisible: this.state.popupVisible - }); - }; + if (process.env.NODE_ENV !== 'production') { + warning = function(condition, format, args) { + var len = arguments.length; + args = new Array(len > 2 ? len - 2 : 0); + for (var key = 2; key < len; key++) { + args[key - 2] = arguments[key]; + } + if (format === undefined) { + throw new Error( + '`warning(condition, format, ...args)` requires a warning ' + + 'message argument' + ); + } - Trigger.prototype.componentDidUpdate = function componentDidUpdate(_, prevState) { - var props = this.props; - var state = this.state; - var triggerAfterPopupVisibleChange = function triggerAfterPopupVisibleChange() { - if (prevState.popupVisible !== state.popupVisible) { - props.afterPopupVisibleChange(state.popupVisible); - } - }; - if (!IS_REACT_16) { - this.renderComponent(null, triggerAfterPopupVisibleChange); + if (format.length < 10 || (/^[s\W]*$/).test(format)) { + throw new Error( + 'The warning format should be able to uniquely identify this ' + + 'warning. Please, use a more descriptive format than: ' + format + ); } - // We must listen to `mousedown` or `touchstart`, edge case: - // https://github.com/ant-design/ant-design/issues/5804 - // https://github.com/react-component/calendar/issues/250 - // https://github.com/react-component/trigger/issues/50 - if (state.popupVisible) { - var currentDocument = void 0; - if (!this.clickOutsideHandler && (this.isClickToHide() || this.isContextMenuToShow())) { - currentDocument = props.getDocument(); - this.clickOutsideHandler = Object(__WEBPACK_IMPORTED_MODULE_9_rc_util_es_Dom_addEventListener__["a" /* default */])(currentDocument, 'mousedown', this.onDocumentClick); - } - // always hide on mobile - if (!this.touchOutsideHandler) { - currentDocument = currentDocument || props.getDocument(); - this.touchOutsideHandler = Object(__WEBPACK_IMPORTED_MODULE_9_rc_util_es_Dom_addEventListener__["a" /* default */])(currentDocument, 'touchstart', this.onDocumentClick); - } - // close popup when trigger type contains 'onContextMenu' and document is scrolling. - if (!this.contextMenuOutsideHandler1 && this.isContextMenuToShow()) { - currentDocument = currentDocument || props.getDocument(); - this.contextMenuOutsideHandler1 = Object(__WEBPACK_IMPORTED_MODULE_9_rc_util_es_Dom_addEventListener__["a" /* default */])(currentDocument, 'scroll', this.onContextMenuClose); - } - // close popup when trigger type contains 'onContextMenu' and window is blur. - if (!this.contextMenuOutsideHandler2 && this.isContextMenuToShow()) { - this.contextMenuOutsideHandler2 = Object(__WEBPACK_IMPORTED_MODULE_9_rc_util_es_Dom_addEventListener__["a" /* default */])(window, 'blur', this.onContextMenuClose); + if (!condition) { + var argIndex = 0; + var message = 'Warning: ' + + format.replace(/%s/g, function() { + return args[argIndex++]; + }); + if (typeof console !== 'undefined') { + console.error(message); } - return; + try { + // This error was thrown as a convenience so that you can use this stack + // to find the callsite that caused this warning to fire. + throw new Error(message); + } catch(x) {} } - - this.clearOutsideHandler(); - }; - - Trigger.prototype.componentWillUnmount = function componentWillUnmount() { - this.clearDelayTimer(); - this.clearOutsideHandler(); - clearTimeout(this.mouseDownTimeout); }; + } - Trigger.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) { - var popupVisible = _ref.popupVisible; - - var newState = {}; - - if (popupVisible !== undefined && prevState.popupVisible !== popupVisible) { - newState.popupVisible = popupVisible; - newState.prevPopupVisible = prevState.popupVisible; - } + module.exports = warning; - return newState; - }; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) - Trigger.prototype.getPopupDomNode = function getPopupDomNode() { - // for test - if (this._component && this._component.getPopupDomNode) { - return this._component.getPopupDomNode(); - } - return null; - }; + /***/ }), + /* 12 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { - Trigger.prototype.getPopupAlign = function getPopupAlign() { - var props = this.props; - var popupPlacement = props.popupPlacement, - popupAlign = props.popupAlign, - builtinPlacements = props.builtinPlacements; + "use strict"; + Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); + /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "polyfill", function() { return polyfill; }); + /** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ - if (popupPlacement && builtinPlacements) { - return Object(__WEBPACK_IMPORTED_MODULE_13__utils__["a" /* getAlignFromPlacement */])(builtinPlacements, popupPlacement, popupAlign); - } - return popupAlign; - }; + function componentWillMount() { + // Call this.constructor.gDSFP to support sub-classes. + var state = this.constructor.getDerivedStateFromProps(this.props, this.state); + if (state !== null && state !== undefined) { + this.setState(state); + } + } - /** - * @param popupVisible Show or not the popup element - * @param event SyntheticEvent, used for `pointAlign` - */ - Trigger.prototype.setPopupVisible = function setPopupVisible(popupVisible, event) { - var alignPoint = this.props.alignPoint; - var prevPopupVisible = this.state.popupVisible; + function componentWillReceiveProps(nextProps) { + // Call this.constructor.gDSFP to support sub-classes. + // Use the setState() updater to ensure state isn't stale in certain edge cases. + function updater(prevState) { + var state = this.constructor.getDerivedStateFromProps(nextProps, prevState); + return state !== null && state !== undefined ? state : null; + } + // Binding "this" is important for shallow renderer support. + this.setState(updater.bind(this)); + } + function componentWillUpdate(nextProps, nextState) { + try { + var prevProps = this.props; + var prevState = this.state; + this.props = nextProps; + this.state = nextState; + this.__reactInternalSnapshotFlag = true; + this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate( + prevProps, + prevState + ); + } finally { + this.props = prevProps; + this.state = prevState; + } + } - this.clearDelayTimer(); + // React may warn about cWM/cWRP/cWU methods being deprecated. + // Add a flag to suppress these warnings for this special case. + componentWillMount.__suppressDeprecationWarning = true; + componentWillReceiveProps.__suppressDeprecationWarning = true; + componentWillUpdate.__suppressDeprecationWarning = true; - if (prevPopupVisible !== popupVisible) { - if (!('popupVisible' in this.props)) { - this.setState({ popupVisible: popupVisible, prevPopupVisible: prevPopupVisible }); - } - this.props.onPopupVisibleChange(popupVisible); - } + function polyfill(Component) { + var prototype = Component.prototype; - // Always record the point position since mouseEnterDelay will delay the show - if (alignPoint && event) { - this.setPoint(event); - } - }; + if (!prototype || !prototype.isReactComponent) { + throw new Error('Can only polyfill class components'); + } - Trigger.prototype.delaySetPopupVisible = function delaySetPopupVisible(visible, delayS, event) { - var _this2 = this; + if ( + typeof Component.getDerivedStateFromProps !== 'function' && + typeof prototype.getSnapshotBeforeUpdate !== 'function' + ) { + return Component; + } - var delay = delayS * 1000; - this.clearDelayTimer(); - if (delay) { - var point = event ? { pageX: event.pageX, pageY: event.pageY } : null; - this.delayTimer = setTimeout(function () { - _this2.setPopupVisible(visible, point); - _this2.clearDelayTimer(); - }, delay); - } else { - this.setPopupVisible(visible, event); - } - }; + // If new component APIs are defined, "unsafe" lifecycles won't be called. + // Error if any of these lifecycles are present, + // Because they would work differently between older and newer (16.3+) versions of React. + var foundWillMountName = null; + var foundWillReceivePropsName = null; + var foundWillUpdateName = null; + if (typeof prototype.componentWillMount === 'function') { + foundWillMountName = 'componentWillMount'; + } else if (typeof prototype.UNSAFE_componentWillMount === 'function') { + foundWillMountName = 'UNSAFE_componentWillMount'; + } + if (typeof prototype.componentWillReceiveProps === 'function') { + foundWillReceivePropsName = 'componentWillReceiveProps'; + } else if (typeof prototype.UNSAFE_componentWillReceiveProps === 'function') { + foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps'; + } + if (typeof prototype.componentWillUpdate === 'function') { + foundWillUpdateName = 'componentWillUpdate'; + } else if (typeof prototype.UNSAFE_componentWillUpdate === 'function') { + foundWillUpdateName = 'UNSAFE_componentWillUpdate'; + } + if ( + foundWillMountName !== null || + foundWillReceivePropsName !== null || + foundWillUpdateName !== null + ) { + var componentName = Component.displayName || Component.name; + var newApiName = + typeof Component.getDerivedStateFromProps === 'function' + ? 'getDerivedStateFromProps()' + : 'getSnapshotBeforeUpdate()'; - Trigger.prototype.clearDelayTimer = function clearDelayTimer() { - if (this.delayTimer) { - clearTimeout(this.delayTimer); - this.delayTimer = null; - } - }; + throw Error( + 'Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n' + + componentName + + ' uses ' + + newApiName + + ' but also contains the following legacy lifecycles:' + + (foundWillMountName !== null ? '\n ' + foundWillMountName : '') + + (foundWillReceivePropsName !== null + ? '\n ' + foundWillReceivePropsName + : '') + + (foundWillUpdateName !== null ? '\n ' + foundWillUpdateName : '') + + '\n\nThe above lifecycles should be removed. Learn more about this warning here:\n' + + 'https://fb.me/react-async-component-lifecycle-hooks' + ); + } - Trigger.prototype.clearOutsideHandler = function clearOutsideHandler() { - if (this.clickOutsideHandler) { - this.clickOutsideHandler.remove(); - this.clickOutsideHandler = null; - } + // React <= 16.2 does not support static getDerivedStateFromProps. + // As a workaround, use cWM and cWRP to invoke the new static lifecycle. + // Newer versions of React will ignore these lifecycles if gDSFP exists. + if (typeof Component.getDerivedStateFromProps === 'function') { + prototype.componentWillMount = componentWillMount; + prototype.componentWillReceiveProps = componentWillReceiveProps; + } - if (this.contextMenuOutsideHandler1) { - this.contextMenuOutsideHandler1.remove(); - this.contextMenuOutsideHandler1 = null; + // React <= 16.2 does not support getSnapshotBeforeUpdate. + // As a workaround, use cWU to invoke the new lifecycle. + // Newer versions of React will ignore that lifecycle if gSBU exists. + if (typeof prototype.getSnapshotBeforeUpdate === 'function') { + if (typeof prototype.componentDidUpdate !== 'function') { + throw new Error( + 'Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype' + ); } - if (this.contextMenuOutsideHandler2) { - this.contextMenuOutsideHandler2.remove(); - this.contextMenuOutsideHandler2 = null; - } + prototype.componentWillUpdate = componentWillUpdate; - if (this.touchOutsideHandler) { - this.touchOutsideHandler.remove(); - this.touchOutsideHandler = null; - } - }; + var componentDidUpdate = prototype.componentDidUpdate; - Trigger.prototype.createTwoChains = function createTwoChains(event) { - var childPros = this.props.children.props; - var props = this.props; - if (childPros[event] && props[event]) { - return this['fire' + event]; - } - return childPros[event] || props[event]; - }; + prototype.componentDidUpdate = function componentDidUpdatePolyfill( + prevProps, + prevState, + maybeSnapshot + ) { + // 16.3+ will not execute our will-update method; + // It will pass a snapshot value to did-update though. + // Older versions will require our polyfilled will-update value. + // We need to handle both cases, but can't just check for the presence of "maybeSnapshot", + // Because for <= 15.x versions this might be a "prevContext" object. + // We also can't just check "__reactInternalSnapshot", + // Because get-snapshot might return a falsy value. + // So check for the explicit __reactInternalSnapshotFlag flag to determine behavior. + var snapshot = this.__reactInternalSnapshotFlag + ? this.__reactInternalSnapshot + : maybeSnapshot; - Trigger.prototype.isClickToShow = function isClickToShow() { - var _props = this.props, - action = _props.action, - showAction = _props.showAction; + componentDidUpdate.call(this, prevProps, prevState, snapshot); + }; + } - return action.indexOf('click') !== -1 || showAction.indexOf('click') !== -1; - }; + return Component; + } - Trigger.prototype.isContextMenuToShow = function isContextMenuToShow() { - var _props2 = this.props, - action = _props2.action, - showAction = _props2.showAction; - return action.indexOf('contextMenu') !== -1 || showAction.indexOf('contextMenu') !== -1; - }; - Trigger.prototype.isClickToHide = function isClickToHide() { - var _props3 = this.props, - action = _props3.action, - hideAction = _props3.hideAction; - return action.indexOf('click') !== -1 || hideAction.indexOf('click') !== -1; - }; + /***/ }), + /* 13 */ + /***/ (function(module, exports, __webpack_require__) { - Trigger.prototype.isMouseEnterToShow = function isMouseEnterToShow() { - var _props4 = this.props, - action = _props4.action, - showAction = _props4.showAction; + "use strict"; - return action.indexOf('hover') !== -1 || showAction.indexOf('mouseEnter') !== -1; - }; - Trigger.prototype.isMouseLeaveToHide = function isMouseLeaveToHide() { - var _props5 = this.props, - action = _props5.action, - hideAction = _props5.hideAction; + Object.defineProperty(exports, "__esModule", { + value: true + }); - return action.indexOf('hover') !== -1 || hideAction.indexOf('mouseLeave') !== -1; - }; + var _Icon = __webpack_require__(538); - Trigger.prototype.isFocusToShow = function isFocusToShow() { - var _props6 = this.props, - action = _props6.action, - showAction = _props6.showAction; + var _Icon2 = _interopRequireDefault(_Icon); - return action.indexOf('focus') !== -1 || showAction.indexOf('focus') !== -1; - }; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - Trigger.prototype.isBlurToHide = function isBlurToHide() { - var _props7 = this.props, - action = _props7.action, - hideAction = _props7.hideAction; + exports["default"] = _Icon2["default"]; + module.exports = exports['default']; - return action.indexOf('focus') !== -1 || hideAction.indexOf('blur') !== -1; - }; + /***/ }), + /* 14 */ + /***/ (function(module, exports, __webpack_require__) { - Trigger.prototype.forcePopupAlign = function forcePopupAlign() { - if (this.state.popupVisible && this._component && this._component.alignInstance) { - this._component.alignInstance.forceAlign(); - } - }; + "use strict"; + /* WEBPACK VAR INJECTION */(function(process) { - Trigger.prototype.fireEvents = function fireEvents(type, e) { - var childCallback = this.props.children.props[type]; - if (childCallback) { - childCallback(e); - } - var callback = this.props[type]; - if (callback) { - callback(e); - } - }; + Object.defineProperty(exports, "__esModule", { + value: true + }); - Trigger.prototype.close = function close() { - this.setPopupVisible(false); - }; + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - Trigger.prototype.render = function render() { - var _this3 = this; + var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - var popupVisible = this.state.popupVisible; - var _props8 = this.props, - children = _props8.children, - forceRender = _props8.forceRender, - alignPoint = _props8.alignPoint, - className = _props8.className; + exports.convertFieldsError = convertFieldsError; + exports.format = format; + exports.isEmptyValue = isEmptyValue; + exports.isEmptyObject = isEmptyObject; + exports.asyncMap = asyncMap; + exports.complementError = complementError; + exports.deepMerge = deepMerge; + /* eslint no-console:0 */ - var child = __WEBPACK_IMPORTED_MODULE_4_react___default.a.Children.only(children); - var newChildProps = { key: 'trigger' }; + var formatRegExp = /%[sdj%]/g; - if (this.isContextMenuToShow()) { - newChildProps.onContextMenu = this.onContextMenu; - } else { - newChildProps.onContextMenu = this.createTwoChains('onContextMenu'); - } + var warning = exports.warning = function warning() {}; - if (this.isClickToHide() || this.isClickToShow()) { - newChildProps.onClick = this.onClick; - newChildProps.onMouseDown = this.onMouseDown; - newChildProps.onTouchStart = this.onTouchStart; - } else { - newChildProps.onClick = this.createTwoChains('onClick'); - newChildProps.onMouseDown = this.createTwoChains('onMouseDown'); - newChildProps.onTouchStart = this.createTwoChains('onTouchStart'); - } - if (this.isMouseEnterToShow()) { - newChildProps.onMouseEnter = this.onMouseEnter; - if (alignPoint) { - newChildProps.onMouseMove = this.onMouseMove; + // don't print warning message when in production env or node runtime + if (process.env.NODE_ENV !== 'production' && typeof window !== 'undefined' && typeof document !== 'undefined') { + exports.warning = warning = function warning(type, errors) { + if (typeof console !== 'undefined' && console.warn) { + if (errors.every(function (e) { + return typeof e === 'string'; + })) { + console.warn(type, errors); } - } else { - newChildProps.onMouseEnter = this.createTwoChains('onMouseEnter'); - } - if (this.isMouseLeaveToHide()) { - newChildProps.onMouseLeave = this.onMouseLeave; - } else { - newChildProps.onMouseLeave = this.createTwoChains('onMouseLeave'); - } - if (this.isFocusToShow() || this.isBlurToHide()) { - newChildProps.onFocus = this.onFocus; - newChildProps.onBlur = this.onBlur; - } else { - newChildProps.onFocus = this.createTwoChains('onFocus'); - newChildProps.onBlur = this.createTwoChains('onBlur'); } + }; + } - var childrenClassName = __WEBPACK_IMPORTED_MODULE_12_classnames___default()(child && child.props && child.props.className, className); - if (childrenClassName) { - newChildProps.className = childrenClassName; - } - var trigger = __WEBPACK_IMPORTED_MODULE_4_react___default.a.cloneElement(child, newChildProps); + function convertFieldsError(errors) { + if (!errors || !errors.length) return null; + var fields = {}; + errors.forEach(function (error) { + var field = error.field; + fields[field] = fields[field] || []; + fields[field].push(error); + }); + return fields; + } - if (!IS_REACT_16) { - return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement( - __WEBPACK_IMPORTED_MODULE_10_rc_util_es_ContainerRender__["a" /* default */], - { - parent: this, - visible: popupVisible, - autoMount: false, - forceRender: forceRender, - getComponent: this.getComponent, - getContainer: this.getContainer - }, - function (_ref2) { - var renderComponent = _ref2.renderComponent; + function format() { + for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } - _this3.renderComponent = renderComponent; - return trigger; - } - ); + var i = 1; + var f = args[0]; + var len = args.length; + if (typeof f === 'function') { + return f.apply(null, args.slice(1)); + } + if (typeof f === 'string') { + var str = String(f).replace(formatRegExp, function (x) { + if (x === '%%') { + return '%'; + } + if (i >= len) { + return x; + } + switch (x) { + case '%s': + return String(args[i++]); + case '%d': + return Number(args[i++]); + case '%j': + try { + return JSON.stringify(args[i++]); + } catch (_) { + return '[Circular]'; + } + break; + default: + return x; + } + }); + for (var arg = args[i]; i < len; arg = args[++i]) { + str += ' ' + arg; } + return str; + } + return f; + } - var portal = void 0; - // prevent unmounting after it's rendered - if (popupVisible || this._component || forceRender) { - portal = __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement( - __WEBPACK_IMPORTED_MODULE_11_rc_util_es_Portal__["a" /* default */], - { key: 'portal', getContainer: this.getContainer, didUpdate: this.handlePortalUpdate }, - this.getComponent() - ); - } + function isNativeStringType(type) { + return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'pattern'; + } - return [trigger, portal]; - }; + function isEmptyValue(value, type) { + if (value === undefined || value === null) { + return true; + } + if (type === 'array' && Array.isArray(value) && !value.length) { + return true; + } + if (isNativeStringType(type) && typeof value === 'string' && !value) { + return true; + } + return false; + } - return Trigger; - }(__WEBPACK_IMPORTED_MODULE_4_react___default.a.Component); + function isEmptyObject(obj) { + return Object.keys(obj).length === 0; + } - Trigger.propTypes = { - children: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.any, - action: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string)]), - showAction: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.any, - hideAction: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.any, - getPopupClassNameFromAlign: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.any, - onPopupVisibleChange: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func, - afterPopupVisibleChange: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func, - popup: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.node, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func]).isRequired, - popupStyle: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object, - prefixCls: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, - popupClassName: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, - className: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, - popupPlacement: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, - builtinPlacements: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object, - popupTransitionName: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object]), - popupAnimation: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.any, - mouseEnterDelay: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, - mouseLeaveDelay: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, - zIndex: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, - focusDelay: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, - blurDelay: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, - getPopupContainer: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func, - getDocument: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func, - forceRender: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool, - destroyPopupOnHide: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool, - mask: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool, - maskClosable: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool, - onPopupAlign: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func, - popupAlign: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object, - popupVisible: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool, - defaultPopupVisible: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool, - maskTransitionName: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object]), - maskAnimation: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, - stretch: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, - alignPoint: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool // Maybe we can support user pass position in the future - }; - Trigger.contextTypes = contextTypes; - Trigger.childContextTypes = contextTypes; - Trigger.defaultProps = { - prefixCls: 'rc-trigger-popup', - getPopupClassNameFromAlign: returnEmptyString, - getDocument: returnDocument, - onPopupVisibleChange: noop, - afterPopupVisibleChange: noop, - onPopupAlign: noop, - popupClassName: '', - mouseEnterDelay: 0, - mouseLeaveDelay: 0.1, - focusDelay: 0, - blurDelay: 0.15, - popupStyle: {}, - destroyPopupOnHide: false, - popupAlign: {}, - defaultPopupVisible: false, - mask: false, - maskClosable: true, - action: [], - showAction: [], - hideAction: [] - }; + function asyncParallelArray(arr, func, callback) { + var results = []; + var total = 0; + var arrLength = arr.length; - var _initialiseProps = function _initialiseProps() { - var _this4 = this; + function count(errors) { + results.push.apply(results, errors); + total++; + if (total === arrLength) { + callback(results); + } + } - this.onMouseEnter = function (e) { - var mouseEnterDelay = _this4.props.mouseEnterDelay; + arr.forEach(function (a) { + func(a, count); + }); + } - _this4.fireEvents('onMouseEnter', e); - _this4.delaySetPopupVisible(true, mouseEnterDelay, mouseEnterDelay ? null : e); - }; + function asyncSerialArray(arr, func, callback) { + var index = 0; + var arrLength = arr.length; - this.onMouseMove = function (e) { - _this4.fireEvents('onMouseMove', e); - _this4.setPoint(e); - }; + function next(errors) { + if (errors && errors.length) { + callback(errors); + return; + } + var original = index; + index = index + 1; + if (original < arrLength) { + func(arr[original], next); + } else { + callback([]); + } + } - this.onMouseLeave = function (e) { - _this4.fireEvents('onMouseLeave', e); - _this4.delaySetPopupVisible(false, _this4.props.mouseLeaveDelay); - }; + next([]); + } - this.onPopupMouseEnter = function () { - _this4.clearDelayTimer(); - }; + function flattenObjArr(objArr) { + var ret = []; + Object.keys(objArr).forEach(function (k) { + ret.push.apply(ret, objArr[k]); + }); + return ret; + } - this.onPopupMouseLeave = function (e) { - // https://github.com/react-component/trigger/pull/13 - // react bug? - if (e.relatedTarget && !e.relatedTarget.setTimeout && _this4._component && _this4._component.getPopupDomNode && Object(__WEBPACK_IMPORTED_MODULE_8_rc_util_es_Dom_contains__["a" /* default */])(_this4._component.getPopupDomNode(), e.relatedTarget)) { - return; + function asyncMap(objArr, option, func, callback) { + if (option.first) { + var flattenArr = flattenObjArr(objArr); + return asyncSerialArray(flattenArr, func, callback); + } + var firstFields = option.firstFields || []; + if (firstFields === true) { + firstFields = Object.keys(objArr); + } + var objArrKeys = Object.keys(objArr); + var objArrLength = objArrKeys.length; + var total = 0; + var results = []; + var pending = new Promise(function (resolve, reject) { + var next = function next(errors) { + results.push.apply(results, errors); + total++; + if (total === objArrLength) { + callback(results); + return results.length ? reject({ errors: results, fields: convertFieldsError(results) }) : resolve(); + } + }; + objArrKeys.forEach(function (key) { + var arr = objArr[key]; + if (firstFields.indexOf(key) !== -1) { + asyncSerialArray(arr, func, next); + } else { + asyncParallelArray(arr, func, next); + } + }); + }); + pending['catch'](function (e) { + return e; + }); + return pending; + } + + function complementError(rule) { + return function (oe) { + if (oe && oe.message) { + oe.field = oe.field || rule.fullField; + return oe; } - _this4.delaySetPopupVisible(false, _this4.props.mouseLeaveDelay); + return { + message: typeof oe === 'function' ? oe() : oe, + field: oe.field || rule.fullField + }; }; + } - this.onFocus = function (e) { - _this4.fireEvents('onFocus', e); - // incase focusin and focusout - _this4.clearDelayTimer(); - if (_this4.isFocusToShow()) { - _this4.focusTime = Date.now(); - _this4.delaySetPopupVisible(true, _this4.props.focusDelay); + function deepMerge(target, source) { + if (source) { + for (var s in source) { + if (source.hasOwnProperty(s)) { + var value = source[s]; + if ((typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object' && _typeof(target[s]) === 'object') { + target[s] = _extends({}, target[s], value); + } else { + target[s] = value; + } + } } - }; + } + return target; + } + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) - this.onMouseDown = function (e) { - _this4.fireEvents('onMouseDown', e); - _this4.preClickTime = Date.now(); - }; + /***/ }), + /* 15 */ + /***/ (function(module, exports, __webpack_require__) { - this.onTouchStart = function (e) { - _this4.fireEvents('onTouchStart', e); - _this4.preTouchTime = Date.now(); - }; + /** + * Module dependencies. + */ - this.onBlur = function (e) { - _this4.fireEvents('onBlur', e); - _this4.clearDelayTimer(); - if (_this4.isBlurToHide()) { - _this4.delaySetPopupVisible(false, _this4.props.blurDelay); - } - }; + try { + var index = __webpack_require__(239); + } catch (err) { + var index = __webpack_require__(239); + } - this.onContextMenu = function (e) { - e.preventDefault(); - _this4.fireEvents('onContextMenu', e); - _this4.setPopupVisible(true, e); - }; + /** + * Whitespace regexp. + */ - this.onContextMenuClose = function () { - if (_this4.isContextMenuToShow()) { - _this4.close(); - } - }; + var re = /\s+/; - this.onClick = function (event) { - _this4.fireEvents('onClick', event); - // focus will trigger click - if (_this4.focusTime) { - var preTime = void 0; - if (_this4.preClickTime && _this4.preTouchTime) { - preTime = Math.min(_this4.preClickTime, _this4.preTouchTime); - } else if (_this4.preClickTime) { - preTime = _this4.preClickTime; - } else if (_this4.preTouchTime) { - preTime = _this4.preTouchTime; - } - if (Math.abs(preTime - _this4.focusTime) < 20) { - return; - } - _this4.focusTime = 0; - } - _this4.preClickTime = 0; - _this4.preTouchTime = 0; + /** + * toString reference. + */ - // Only prevent default when all the action is click. - // https://github.com/ant-design/ant-design/issues/17043 - // https://github.com/ant-design/ant-design/issues/17291 - if (_this4.isClickToShow() && (_this4.isClickToHide() || _this4.isBlurToHide()) && event && event.preventDefault) { - event.preventDefault(); - } - var nextVisible = !_this4.state.popupVisible; - if (_this4.isClickToHide() && !nextVisible || nextVisible && _this4.isClickToShow()) { - _this4.setPopupVisible(!_this4.state.popupVisible, event); - } - }; + var toString = Object.prototype.toString; - this.onPopupMouseDown = function () { - var _context$rcTrigger = _this4.context.rcTrigger, - rcTrigger = _context$rcTrigger === undefined ? {} : _context$rcTrigger; + /** + * Wrap `el` in a `ClassList`. + * + * @param {Element} el + * @return {ClassList} + * @api public + */ - _this4.hasPopupMouseDown = true; + module.exports = function(el){ + return new ClassList(el); + }; - clearTimeout(_this4.mouseDownTimeout); - _this4.mouseDownTimeout = setTimeout(function () { - _this4.hasPopupMouseDown = false; - }, 0); + /** + * Initialize a new ClassList for `el`. + * + * @param {Element} el + * @api private + */ - if (rcTrigger.onPopupMouseDown) { - rcTrigger.onPopupMouseDown.apply(rcTrigger, arguments); - } - }; + function ClassList(el) { + if (!el || !el.nodeType) { + throw new Error('A DOM element reference is required'); + } + this.el = el; + this.list = el.classList; + } - this.onDocumentClick = function (event) { - if (_this4.props.mask && !_this4.props.maskClosable) { - return; - } + /** + * Add class `name` if not already present. + * + * @param {String} name + * @return {ClassList} + * @api public + */ - var target = event.target; - var root = Object(__WEBPACK_IMPORTED_MODULE_6_react_dom__["findDOMNode"])(_this4); - if (!Object(__WEBPACK_IMPORTED_MODULE_8_rc_util_es_Dom_contains__["a" /* default */])(root, target) && !_this4.hasPopupMouseDown) { - _this4.close(); - } - }; + ClassList.prototype.add = function(name){ + // classList + if (this.list) { + this.list.add(name); + return this; + } - this.getRootDomNode = function () { - return Object(__WEBPACK_IMPORTED_MODULE_6_react_dom__["findDOMNode"])(_this4); - }; + // fallback + var arr = this.array(); + var i = index(arr, name); + if (!~i) arr.push(name); + this.el.className = arr.join(' '); + return this; + }; - this.getPopupClassNameFromAlign = function (align) { - var className = []; - var _props9 = _this4.props, - popupPlacement = _props9.popupPlacement, - builtinPlacements = _props9.builtinPlacements, - prefixCls = _props9.prefixCls, - alignPoint = _props9.alignPoint, - getPopupClassNameFromAlign = _props9.getPopupClassNameFromAlign; + /** + * Remove class `name` when present, or + * pass a regular expression to remove + * any which match. + * + * @param {String|RegExp} name + * @return {ClassList} + * @api public + */ - if (popupPlacement && builtinPlacements) { - className.push(Object(__WEBPACK_IMPORTED_MODULE_13__utils__["b" /* getAlignPopupClassName */])(builtinPlacements, prefixCls, align, alignPoint)); - } - if (getPopupClassNameFromAlign) { - className.push(getPopupClassNameFromAlign(align)); - } - return className.join(' '); - }; + ClassList.prototype.remove = function(name){ + if ('[object RegExp]' == toString.call(name)) { + return this.removeMatching(name); + } - this.getComponent = function () { - var _props10 = _this4.props, - prefixCls = _props10.prefixCls, - destroyPopupOnHide = _props10.destroyPopupOnHide, - popupClassName = _props10.popupClassName, - action = _props10.action, - onPopupAlign = _props10.onPopupAlign, - popupAnimation = _props10.popupAnimation, - popupTransitionName = _props10.popupTransitionName, - popupStyle = _props10.popupStyle, - mask = _props10.mask, - maskAnimation = _props10.maskAnimation, - maskTransitionName = _props10.maskTransitionName, - zIndex = _props10.zIndex, - popup = _props10.popup, - stretch = _props10.stretch, - alignPoint = _props10.alignPoint; - var _state = _this4.state, - popupVisible = _state.popupVisible, - point = _state.point; + // classList + if (this.list) { + this.list.remove(name); + return this; + } + // fallback + var arr = this.array(); + var i = index(arr, name); + if (~i) arr.splice(i, 1); + this.el.className = arr.join(' '); + return this; + }; - var align = _this4.getPopupAlign(); + /** + * Remove all classes matching `re`. + * + * @param {RegExp} re + * @return {ClassList} + * @api private + */ - var mouseProps = {}; - if (_this4.isMouseEnterToShow()) { - mouseProps.onMouseEnter = _this4.onPopupMouseEnter; - } - if (_this4.isMouseLeaveToHide()) { - mouseProps.onMouseLeave = _this4.onPopupMouseLeave; + ClassList.prototype.removeMatching = function(re){ + var arr = this.array(); + for (var i = 0; i < arr.length; i++) { + if (re.test(arr[i])) { + this.remove(arr[i]); } + } + return this; + }; - mouseProps.onMouseDown = _this4.onPopupMouseDown; - mouseProps.onTouchStart = _this4.onPopupMouseDown; - - return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement( - __WEBPACK_IMPORTED_MODULE_14__Popup__["a" /* default */], - __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({ - prefixCls: prefixCls, - destroyPopupOnHide: destroyPopupOnHide, - visible: popupVisible, - point: alignPoint && point, - className: popupClassName, - action: action, - align: align, - onAlign: onPopupAlign, - animation: popupAnimation, - getClassNameFromAlign: _this4.getPopupClassNameFromAlign - }, mouseProps, { - stretch: stretch, - getRootDomNode: _this4.getRootDomNode, - style: popupStyle, - mask: mask, - zIndex: zIndex, - transitionName: popupTransitionName, - maskAnimation: maskAnimation, - maskTransitionName: maskTransitionName, - ref: _this4.savePopup - }), - typeof popup === 'function' ? popup() : popup - ); - }; + /** + * Toggle class `name`, can force state via `force`. + * + * For browsers that support classList, but do not support `force` yet, + * the mistake will be detected and corrected. + * + * @param {String} name + * @param {Boolean} force + * @return {ClassList} + * @api public + */ - this.getContainer = function () { - var props = _this4.props; + ClassList.prototype.toggle = function(name, force){ + // classList + if (this.list) { + if ("undefined" !== typeof force) { + if (force !== this.list.toggle(name, force)) { + this.list.toggle(name); // toggle again to correct + } + } else { + this.list.toggle(name); + } + return this; + } - var popupContainer = document.createElement('div'); - // Make sure default popup container will never cause scrollbar appearing - // https://github.com/react-component/trigger/issues/41 - popupContainer.style.position = 'absolute'; - popupContainer.style.top = '0'; - popupContainer.style.left = '0'; - popupContainer.style.width = '100%'; - var mountNode = props.getPopupContainer ? props.getPopupContainer(Object(__WEBPACK_IMPORTED_MODULE_6_react_dom__["findDOMNode"])(_this4)) : props.getDocument().body; - mountNode.appendChild(popupContainer); - return popupContainer; - }; + // fallback + if ("undefined" !== typeof force) { + if (!force) { + this.remove(name); + } else { + this.add(name); + } + } else { + if (this.has(name)) { + this.remove(name); + } else { + this.add(name); + } + } - this.setPoint = function (point) { - var alignPoint = _this4.props.alignPoint; + return this; + }; - if (!alignPoint || !point) return; + /** + * Return an array of classes. + * + * @return {Array} + * @api public + */ - _this4.setState({ - point: { - pageX: point.pageX, - pageY: point.pageY - } - }); - }; + ClassList.prototype.array = function(){ + var className = this.el.getAttribute('class') || ''; + var str = className.replace(/^\s+|\s+$/g, ''); + var arr = str.split(re); + if ('' === arr[0]) arr.shift(); + return arr; + }; - this.handlePortalUpdate = function () { - if (_this4.state.prevPopupVisible !== _this4.state.popupVisible) { - _this4.props.afterPopupVisibleChange(_this4.state.popupVisible); - } - }; + /** + * Check if class `name` is present. + * + * @param {String} name + * @return {ClassList} + * @api public + */ - this.savePopup = function (node) { - _this4._component = node; - }; + ClassList.prototype.has = + ClassList.prototype.contains = function(name){ + return this.list + ? this.list.contains(name) + : !! ~index(this.array(), name); }; - Object(__WEBPACK_IMPORTED_MODULE_7_react_lifecycles_compat__["polyfill"])(Trigger); - - /* harmony default export */ __webpack_exports__["default"] = (Trigger); /***/ }), - /* 74 */ + /* 16 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; - Object.defineProperty(exports, "__esModule", { + Object.defineProperty(exports, '__esModule', { value: true }); - exports.default = offset; - - var _contains = __webpack_require__(26); - - var _contains2 = _interopRequireDefault(_contains); - - var _isWindow = __webpack_require__(100); - - var _isWindow2 = _interopRequireDefault(_isWindow); - - var _ownerDocument = __webpack_require__(22); + exports['default'] = addEventListener; - var _ownerDocument2 = _interopRequireDefault(_ownerDocument); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + var _EventObject = __webpack_require__(719); - function offset(node) { - var doc = (0, _ownerDocument2.default)(node), - win = (0, _isWindow2.default)(doc), - docElem = doc && doc.documentElement, - box = { top: 0, left: 0, height: 0, width: 0 }; + var _EventObject2 = _interopRequireDefault(_EventObject); - if (!doc) return; + function addEventListener(target, eventType, callback, option) { + function wrapCallback(e) { + var ne = new _EventObject2['default'](e); + callback.call(target, ne); + } - // Make sure it's not a disconnected DOM node - if (!(0, _contains2.default)(docElem, node)) return box; + if (target.addEventListener) { + var _ret = (function () { + var useCapture = false; + if (typeof option === 'object') { + useCapture = option.capture || false; + } else if (typeof option === 'boolean') { + useCapture = option; + } - if (node.getBoundingClientRect !== undefined) box = node.getBoundingClientRect(); + target.addEventListener(eventType, wrapCallback, option || false); - if (box.width || box.height) { + return { + v: { + remove: function remove() { + target.removeEventListener(eventType, wrapCallback, useCapture); + } + } + }; + })(); - box = { - top: box.top + (win.pageYOffset || docElem.scrollTop) - (docElem.clientTop || 0), - left: box.left + (win.pageXOffset || docElem.scrollLeft) - (docElem.clientLeft || 0), - width: (box.width == null ? node.offsetWidth : box.width) || 0, - height: (box.height == null ? node.offsetHeight : box.height) || 0 + if (typeof _ret === 'object') return _ret.v; + } else if (target.attachEvent) { + target.attachEvent('on' + eventType, wrapCallback); + return { + remove: function remove() { + target.detachEvent('on' + eventType, wrapCallback); + } }; } - - return box; } + module.exports = exports['default']; /***/ }), - /* 75 */ + /* 17 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; - /* WEBPACK VAR INJECTION */(function(process) { - exports.__esModule = true; - exports.noop = undefined; - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + Object.defineProperty(exports, "__esModule", { + value: true + }); - exports.bottom = bottom; - exports.cloneLayout = cloneLayout; - exports.cloneLayoutItem = cloneLayoutItem; - exports.childrenEqual = childrenEqual; - exports.collides = collides; - exports.compact = compact; - exports.compactItem = compactItem; - exports.correctBounds = correctBounds; - exports.getLayoutItem = getLayoutItem; - exports.getFirstCollision = getFirstCollision; - exports.getAllCollisions = getAllCollisions; - exports.getStatics = getStatics; - exports.moveElement = moveElement; - exports.moveElementAwayFromCollision = moveElementAwayFromCollision; - exports.perc = perc; - exports.setTransform = setTransform; - exports.setTopLeft = setTopLeft; - exports.sortLayoutItems = sortLayoutItems; - exports.sortLayoutItemsByRowCol = sortLayoutItemsByRowCol; - exports.sortLayoutItemsByColRow = sortLayoutItemsByColRow; - exports.synchronizeLayoutWithChildren = synchronizeLayoutWithChildren; - exports.validateLayout = validateLayout; - exports.autoBindHandlers = autoBindHandlers; + var _inDOM = __webpack_require__(26); - var _lodash = __webpack_require__(20); + var _inDOM2 = _interopRequireDefault(_inDOM); - var _lodash2 = _interopRequireDefault(_lodash); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var _react = __webpack_require__(0); + var on = function on() {}; + if (_inDOM2.default) { + on = function () { - var _react2 = _interopRequireDefault(_react); + if (document.addEventListener) return function (node, eventName, handler, capture) { + return node.addEventListener(eventName, handler, capture || false); + };else if (document.attachEvent) return function (node, eventName, handler) { + return node.attachEvent('on' + eventName, handler); + }; + }(); + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + exports.default = on; + module.exports = exports['default']; - // All callbacks are of the signature (layout, oldItem, newItem, placeholder, e). - var isProduction = process.env.NODE_ENV === "production"; - var DEBUG = false; + /***/ }), + /* 18 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { - /** - * Return the bottom coordinate of the layout. - * - * @param {Array} layout Layout array. - * @return {Number} Bottom coordinate. - */ - function bottom(layout) { - var max = 0, - bottomY = void 0; - for (var _i = 0, len = layout.length; _i < len; _i++) { - bottomY = layout[_i].y + layout[_i].h; - if (bottomY > max) max = bottomY; + "use strict"; + Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); + /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "alignElement", function() { return alignElement; }); + /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "alignPoint", function() { return alignPoint; }); + function _typeof(obj) { + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + _typeof = function (obj) { + return typeof obj; + }; + } else { + _typeof = function (obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; } - return max; - } - function cloneLayout(layout) { - var newLayout = Array(layout.length); - for (var _i2 = 0, len = layout.length; _i2 < len; _i2++) { - newLayout[_i2] = cloneLayoutItem(layout[_i2]); - } - return newLayout; + return _typeof(obj); } - // Fast path to cloning, since this is monomorphic - function cloneLayoutItem(layoutItem) { - return { - w: layoutItem.w, - h: layoutItem.h, - x: layoutItem.x, - y: layoutItem.y, - i: layoutItem.i, - minW: layoutItem.minW, - maxW: layoutItem.maxW, - minH: layoutItem.minH, - maxH: layoutItem.maxH, - moved: Boolean(layoutItem.moved), - static: Boolean(layoutItem.static), - // These can be null - isDraggable: layoutItem.isDraggable, - isResizable: layoutItem.isResizable - }; - } + function _defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } - /** - * Comparing React `children` is a bit difficult. This is a good way to compare them. - * This will catch differences in keys, order, and length. - */ - function childrenEqual(a, b) { - return (0, _lodash2.default)(_react2.default.Children.map(a, function (c) { - return c.key; - }), _react2.default.Children.map(b, function (c) { - return c.key; - })); + return obj; } - /** - * Given two layoutitems, check if they collide. - */ - function collides(l1, l2) { - if (l1 === l2) return false; // same element - if (l1.x + l1.w <= l2.x) return false; // l1 is left of l2 - if (l1.x >= l2.x + l2.w) return false; // l1 is right of l2 - if (l1.y + l1.h <= l2.y) return false; // l1 is above l2 - if (l1.y >= l2.y + l2.h) return false; // l1 is below l2 - return true; // boxes overlap - } + function ownKeys(object, enumerableOnly) { + var keys = Object.keys(object); - /** - * Given a layout, compact it. This involves going down each y coordinate and removing gaps - * between items. - * - * @param {Array} layout Layout. - * @param {Boolean} verticalCompact Whether or not to compact the layout - * vertically. - * @return {Array} Compacted Layout. - */ - function compact(layout, compactType, cols) { - // Statics go in the compareWith array right away so items flow around them. - var compareWith = getStatics(layout); - // We go through the items by row and column. - var sorted = sortLayoutItems(layout, compactType); - // Holding for new items. - var out = Array(layout.length); + if (Object.getOwnPropertySymbols) { + var symbols = Object.getOwnPropertySymbols(object); + if (enumerableOnly) symbols = symbols.filter(function (sym) { + return Object.getOwnPropertyDescriptor(object, sym).enumerable; + }); + keys.push.apply(keys, symbols); + } - for (var _i3 = 0, len = sorted.length; _i3 < len; _i3++) { - var l = cloneLayoutItem(sorted[_i3]); + return keys; + } - // Don't move static elements - if (!l.static) { - l = compactItem(compareWith, l, compactType, cols, sorted); + function _objectSpread2(target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i] != null ? arguments[i] : {}; - // Add to comparison array. We only collide with items before this one. - // Statics are already in this array. - compareWith.push(l); + if (i % 2) { + ownKeys(source, true).forEach(function (key) { + _defineProperty(target, key, source[key]); + }); + } else if (Object.getOwnPropertyDescriptors) { + Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); + } else { + ownKeys(source).forEach(function (key) { + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); + }); } - - // Add to output array to make sure they still come out in the right order. - out[layout.indexOf(sorted[_i3])] = l; - - // Clear moved flag, if it exists. - l.moved = false; } - return out; + return target; } - var heightWidth = { x: "w", y: "h" }; - /** - * Before moving item down, it will check if the movement will cause collisions and move those items down before. - */ - function resolveCompactionCollision(layout, item, moveToCoord, axis) { - var sizeProp = heightWidth[axis]; - item[axis] += 1; - var itemIndex = layout.indexOf(item); + var vendorPrefix; + var jsCssMap = { + Webkit: '-webkit-', + Moz: '-moz-', + // IE did it wrong again ... + ms: '-ms-', + O: '-o-' + }; - // Go through each item we collide with. - for (var _i4 = itemIndex + 1; _i4 < layout.length; _i4++) { - var otherItem = layout[_i4]; - // Ignore static items - if (otherItem.static) continue; + function getVendorPrefix() { + if (vendorPrefix !== undefined) { + return vendorPrefix; + } - // Optimization: we can break early if we know we're past this el - // We can do this b/c it's a sorted layout - if (otherItem.y > item.y + item.h) break; + vendorPrefix = ''; + var style = document.createElement('p').style; + var testProp = 'Transform'; - if (collides(item, otherItem)) { - resolveCompactionCollision(layout, otherItem, moveToCoord + item[sizeProp], axis); + for (var key in jsCssMap) { + if (key + testProp in style) { + vendorPrefix = key; } } - item[axis] = moveToCoord; + return vendorPrefix; } - /** - * Compact an item in the layout. - */ - function compactItem(compareWith, l, compactType, cols, fullLayout) { - var compactV = compactType === "vertical"; - var compactH = compactType === "horizontal"; - if (compactV) { - // Bottom 'y' possible is the bottom of the layout. - // This allows you to do nice stuff like specify {y: Infinity} - // This is here because the layout must be sorted in order to get the correct bottom `y`. - l.y = Math.min(bottom(compareWith), l.y); - // Move the element up as far as it can go without colliding. - while (l.y > 0 && !getFirstCollision(compareWith, l)) { - l.y--; - } - } else if (compactH) { - l.y = Math.min(bottom(compareWith), l.y); - // Move the element left as far as it can go without colliding. - while (l.x > 0 && !getFirstCollision(compareWith, l)) { - l.x--; - } - } + function getTransitionName() { + return getVendorPrefix() ? "".concat(getVendorPrefix(), "TransitionProperty") : 'transitionProperty'; + } - // Move it down, and keep moving it down if it's colliding. - var collides = void 0; - while (collides = getFirstCollision(compareWith, l)) { - if (compactH) { - resolveCompactionCollision(fullLayout, l, collides.x + collides.w, "x"); - } else { - resolveCompactionCollision(fullLayout, l, collides.y + collides.h, "y"); - } - // Since we can't grow without bounds horizontally, if we've overflown, let's move it down and try again. - if (compactH && l.x + l.w > cols) { - l.x = cols - l.w; - l.y++; - } - } - return l; + function getTransformName() { + return getVendorPrefix() ? "".concat(getVendorPrefix(), "Transform") : 'transform'; } + function setTransitionProperty(node, value) { + var name = getTransitionName(); - /** - * Given a layout, make sure all elements fit within its bounds. - * - * @param {Array} layout Layout array. - * @param {Number} bounds Number of columns. - */ - function correctBounds(layout, bounds) { - var collidesWith = getStatics(layout); - for (var _i5 = 0, len = layout.length; _i5 < len; _i5++) { - var l = layout[_i5]; - // Overflows right - if (l.x + l.w > bounds.cols) l.x = bounds.cols - l.w; - // Overflows left - if (l.x < 0) { - l.x = 0; - l.w = bounds.cols; - } - if (!l.static) collidesWith.push(l);else { - // If this is static and collides with other statics, we must move it down. - // We have to do something nicer than just letting them overlap. - while (getFirstCollision(collidesWith, l)) { - l.y++; - } + if (name) { + node.style[name] = value; + + if (name !== 'transitionProperty') { + node.style.transitionProperty = value; } } - return layout; } - /** - * Get a layout item by ID. Used so we can override later on if necessary. - * - * @param {Array} layout Layout array. - * @param {String} id ID - * @return {LayoutItem} Item at ID. - */ - function getLayoutItem(layout, id) { - for (var _i6 = 0, len = layout.length; _i6 < len; _i6++) { - if (layout[_i6].i === id) return layout[_i6]; - } - } + function setTransform(node, value) { + var name = getTransformName(); - /** - * Returns the first item this layout collides with. - * It doesn't appear to matter which order we approach this from, although - * perhaps that is the wrong thing to do. - * - * @param {Object} layoutItem Layout item. - * @return {Object|undefined} A colliding layout item, or undefined. - */ - function getFirstCollision(layout, layoutItem) { - for (var _i7 = 0, len = layout.length; _i7 < len; _i7++) { - if (collides(layout[_i7], layoutItem)) return layout[_i7]; - } - } + if (name) { + node.style[name] = value; - function getAllCollisions(layout, layoutItem) { - return layout.filter(function (l) { - return collides(l, layoutItem); - }); + if (name !== 'transform') { + node.style.transform = value; + } + } } - /** - * Get all static elements. - * @param {Array} layout Array of layout objects. - * @return {Array} Array of static layout items.. - */ - function getStatics(layout) { - return layout.filter(function (l) { - return l.static; - }); + function getTransitionProperty(node) { + return node.style.transitionProperty || node.style[getTransitionName()]; } + function getTransformXY(node) { + var style = window.getComputedStyle(node, null); + var transform = style.getPropertyValue('transform') || style.getPropertyValue(getTransformName()); - /** - * Move an element. Responsible for doing cascading movements of other elements. - * - * @param {Array} layout Full layout to modify. - * @param {LayoutItem} l element to move. - * @param {Number} [x] X position in grid units. - * @param {Number} [y] Y position in grid units. - */ - function moveElement(layout, l, x, y, isUserAction, preventCollision, compactType, cols) { - if (l.static) return layout; - - // Short-circuit if nothing to do. - if (l.y === y && l.x === x) return layout; - - log("Moving element " + l.i + " to [" + String(x) + "," + String(y) + "] from [" + l.x + "," + l.y + "]"); - var oldX = l.x; - var oldY = l.y; - - // This is quite a bit faster than extending the object - if (typeof x === 'number') l.x = x; - if (typeof y === 'number') l.y = y; - l.moved = true; - - // If this collides with anything, move it. - // When doing this comparison, we have to sort the items we compare with - // to ensure, in the case of multiple collisions, that we're getting the - // nearest collision. - var sorted = sortLayoutItems(layout, compactType); - var movingUp = compactType === "vertical" && typeof y === 'number' ? oldY >= y : compactType === "horizontal" && typeof x === 'number' ? oldX >= x : false; - if (movingUp) sorted = sorted.reverse(); - var collisions = getAllCollisions(sorted, l); - - // There was a collision; abort - if (preventCollision && collisions.length) { - log("Collision prevented on " + l.i + ", reverting."); - l.x = oldX; - l.y = oldY; - l.moved = false; - return layout; + if (transform && transform !== 'none') { + var matrix = transform.replace(/[^0-9\-.,]/g, '').split(','); + return { + x: parseFloat(matrix[12] || matrix[4], 0), + y: parseFloat(matrix[13] || matrix[5], 0) + }; } - // Move each item that collides away from this element. - for (var _i8 = 0, len = collisions.length; _i8 < len; _i8++) { - var collision = collisions[_i8]; - log("Resolving collision between " + l.i + " at [" + l.x + "," + l.y + "] and " + collision.i + " at [" + collision.x + "," + collision.y + "]"); + return { + x: 0, + y: 0 + }; + } + var matrix2d = /matrix\((.*)\)/; + var matrix3d = /matrix3d\((.*)\)/; + function setTransformXY(node, xy) { + var style = window.getComputedStyle(node, null); + var transform = style.getPropertyValue('transform') || style.getPropertyValue(getTransformName()); - // Short circuit so we can't infinite loop - if (collision.moved) continue; + if (transform && transform !== 'none') { + var arr; + var match2d = transform.match(matrix2d); - // Don't move static items - we have to move *this* element away - if (collision.static) { - layout = moveElementAwayFromCollision(layout, collision, l, isUserAction, compactType, cols); + if (match2d) { + match2d = match2d[1]; + arr = match2d.split(',').map(function (item) { + return parseFloat(item, 10); + }); + arr[4] = xy.x; + arr[5] = xy.y; + setTransform(node, "matrix(".concat(arr.join(','), ")")); } else { - layout = moveElementAwayFromCollision(layout, l, collision, isUserAction, compactType, cols); + var match3d = transform.match(matrix3d)[1]; + arr = match3d.split(',').map(function (item) { + return parseFloat(item, 10); + }); + arr[12] = xy.x; + arr[13] = xy.y; + setTransform(node, "matrix3d(".concat(arr.join(','), ")")); } + } else { + setTransform(node, "translateX(".concat(xy.x, "px) translateY(").concat(xy.y, "px) translateZ(0)")); } + } - return layout; + var RE_NUM = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source; + var getComputedStyleX; // https://stackoverflow.com/a/3485654/3040605 + + function forceRelayout(elem) { + var originalStyle = elem.style.display; + elem.style.display = 'none'; + elem.offsetHeight; // eslint-disable-line + + elem.style.display = originalStyle; } - /** - * This is where the magic needs to happen - given a collision, move an element away from the collision. - * We attempt to move it up if there's room, otherwise it goes below. - * - * @param {Array} layout Full layout to modify. - * @param {LayoutItem} collidesWith Layout item we're colliding with. - * @param {LayoutItem} itemToMove Layout item we're moving. - */ - function moveElementAwayFromCollision(layout, collidesWith, itemToMove, isUserAction, compactType, cols) { - var compactH = compactType === "horizontal"; - var compactV = compactType === "vertical"; - var preventCollision = false; // we're already colliding + function css(el, name, v) { + var value = v; - // If there is enough space above the collision to put this element, move it there. - // We only do this on the main collision as this can get funky in cascades and cause - // unwanted swapping behavior. - if (isUserAction) { - // Reset isUserAction flag because we're not in the main collision anymore. - isUserAction = false; + if (_typeof(name) === 'object') { + for (var i in name) { + if (name.hasOwnProperty(i)) { + css(el, i, name[i]); + } + } - // Make a mock item so we don't modify the item here, only modify in moveElement. - var fakeItem = { - x: compactH ? Math.max(collidesWith.x - itemToMove.w, 0) : itemToMove.x, - y: compactV ? Math.max(collidesWith.y - itemToMove.h, 0) : itemToMove.y, - w: itemToMove.w, - h: itemToMove.h, - i: "-1" - }; + return undefined; + } - // No collision? If so, we can go up there; otherwise, we'll end up moving down as normal - if (!getFirstCollision(layout, fakeItem)) { - log("Doing reverse collision on " + itemToMove.i + " up to [" + fakeItem.x + "," + fakeItem.y + "]."); - return moveElement(layout, itemToMove, compactH ? fakeItem.x : undefined, compactV ? fakeItem.y : undefined, isUserAction, preventCollision, compactType, cols); + if (typeof value !== 'undefined') { + if (typeof value === 'number') { + value = "".concat(value, "px"); } + + el.style[name] = value; + return undefined; } - return moveElement(layout, itemToMove, compactH ? itemToMove.x + 1 : undefined, compactV ? itemToMove.y + 1 : undefined, isUserAction, preventCollision, compactType, cols); + return getComputedStyleX(el, name); } - /** - * Helper to convert a number to a percentage string. - * - * @param {Number} num Any number - * @return {String} That number as a percentage. - */ - function perc(num) { - return num * 100 + "%"; - } + function getClientPosition(elem) { + var box; + var x; + var y; + var doc = elem.ownerDocument; + var body = doc.body; + var docElem = doc && doc.documentElement; // 根据 GBS 最新数据,A-Grade Browsers 都已支持 getBoundingClientRect 方法,不用再考虑传统的实现方式 - function setTransform(_ref) { - var top = _ref.top, - left = _ref.left, - width = _ref.width, - height = _ref.height; + box = elem.getBoundingClientRect(); // 注:jQuery 还考虑减去 docElem.clientLeft/clientTop + // 但测试发现,这样反而会导致当 html 和 body 有边距/边框样式时,获取的值不正确 + // 此外,ie6 会忽略 html 的 margin 值,幸运地是没有谁会去设置 html 的 margin - // Replace unitless items with px - var translate = "translate(" + left + "px," + top + "px)"; + x = box.left; + y = box.top; // In IE, most of the time, 2 extra pixels are added to the top and left + // due to the implicit 2-pixel inset border. In IE6/7 quirks mode and + // IE6 standards mode, this border can be overridden by setting the + // document element's border to zero -- thus, we cannot rely on the + // offset always being 2 pixels. + // In quirks mode, the offset can be determined by querying the body's + // clientLeft/clientTop, but in standards mode, it is found by querying + // the document element's clientLeft/clientTop. Since we already called + // getClientBoundingRect we have already forced a reflow, so it is not + // too expensive just to query them all. + // ie 下应该减去窗口的边框吧,毕竟默认 absolute 都是相对窗口定位的 + // 窗口边框标准是设 documentElement ,quirks 时设置 body + // 最好禁止在 body 和 html 上边框 ,但 ie < 9 html 默认有 2px ,减去 + // 但是非 ie 不可能设置窗口边框,body html 也不是窗口 ,ie 可以通过 html,body 设置 + // 标准 ie 下 docElem.clientTop 就是 border-top + // ie7 html 即窗口边框改变不了。永远为 2 + // 但标准 firefox/chrome/ie9 下 docElem.clientTop 是窗口边框,即使设了 border-top 也为 0 + + x -= docElem.clientLeft || body.clientLeft || 0; + y -= docElem.clientTop || body.clientTop || 0; return { - transform: translate, - WebkitTransform: translate, - MozTransform: translate, - msTransform: translate, - OTransform: translate, - width: width + "px", - height: height + "px", - position: "absolute" + left: x, + top: y }; } - function setTopLeft(_ref2) { - var top = _ref2.top, - left = _ref2.left, - width = _ref2.width, - height = _ref2.height; + function getScroll(w, top) { + var ret = w["page".concat(top ? 'Y' : 'X', "Offset")]; + var method = "scroll".concat(top ? 'Top' : 'Left'); + + if (typeof ret !== 'number') { + var d = w.document; // ie6,7,8 standard mode + + ret = d.documentElement[method]; + + if (typeof ret !== 'number') { + // quirks mode + ret = d.body[method]; + } + } - return { - top: top + "px", - left: left + "px", - width: width + "px", - height: height + "px", - position: "absolute" - }; + return ret; } - /** - * Get layout items sorted from top left to right and down. - * - * @return {Array} Array of layout objects. - * @return {Array} Layout, sorted static items first. - */ - function sortLayoutItems(layout, compactType) { - if (compactType === "horizontal") return sortLayoutItemsByColRow(layout);else return sortLayoutItemsByRowCol(layout); + function getScrollLeft(w) { + return getScroll(w); } - function sortLayoutItemsByRowCol(layout) { - return [].concat(layout).sort(function (a, b) { - if (a.y > b.y || a.y === b.y && a.x > b.x) { - return 1; - } else if (a.y === b.y && a.x === b.x) { - // Without this, we can get different sort results in IE vs. Chrome/FF - return 0; - } - return -1; - }); + function getScrollTop(w) { + return getScroll(w, true); } - function sortLayoutItemsByColRow(layout) { - return [].concat(layout).sort(function (a, b) { - if (a.x > b.x || a.x === b.x && a.y > b.y) { - return 1; - } - return -1; - }); + function getOffset(el) { + var pos = getClientPosition(el); + var doc = el.ownerDocument; + var w = doc.defaultView || doc.parentWindow; + pos.left += getScrollLeft(w); + pos.top += getScrollTop(w); + return pos; } - /** - * Generate a layout using the initialLayout and children as a template. - * Missing entries will be added, extraneous ones will be truncated. - * - * @param {Array} initialLayout Layout passed in through props. - * @param {String} breakpoint Current responsive breakpoint. - * @param {?String} compact Compaction option. - * @return {Array} Working layout. + * A crude way of determining if an object is a window + * @member util */ - function synchronizeLayoutWithChildren(initialLayout, children, cols, compactType) { - initialLayout = initialLayout || []; - - // Generate one layout item per child. - var layout = []; - _react2.default.Children.forEach(children, function (child, i) { - // Don't overwrite if it already exists. - var exists = getLayoutItem(initialLayout, String(child.key)); - if (exists) { - layout[i] = cloneLayoutItem(exists); - } else { - if (!isProduction && child.props._grid) { - console.warn("`_grid` properties on children have been deprecated as of React 15.2. " + // eslint-disable-line - "Please use `data-grid` or add your properties directly to the `layout`."); - } - var g = child.props["data-grid"] || child.props._grid; - // Hey, this item has a data-grid property, use it. - if (g) { - if (!isProduction) { - validateLayout([g], "ReactGridLayout.children"); - } - layout[i] = cloneLayoutItem(_extends({}, g, { i: child.key })); - } else { - // Nothing provided: ensure this is added to the bottom - layout[i] = cloneLayoutItem({ - w: 1, - h: 1, - x: 0, - y: bottom(layout), - i: String(child.key) - }); - } - } - }); - // Correct the layout. - layout = correctBounds(layout, { cols: cols }); - layout = compact(layout, compactType, cols); + function isWindow(obj) { + // must use == for ie8 - return layout; + /* eslint eqeqeq:0 */ + return obj !== null && obj !== undefined && obj == obj.window; } - /** - * Validate a layout. Throws errors. - * - * @param {Array} layout Array of layout items. - * @param {String} [contextName] Context name for errors. - * @throw {Error} Validation error. - */ - function validateLayout(layout) { - var contextName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "Layout"; + function getDocument(node) { + if (isWindow(node)) { + return node.document; + } - var subProps = ["x", "y", "w", "h"]; - if (!Array.isArray(layout)) throw new Error(contextName + " must be an array!"); - for (var _i9 = 0, len = layout.length; _i9 < len; _i9++) { - var item = layout[_i9]; - for (var j = 0; j < subProps.length; j++) { - if (typeof item[subProps[j]] !== "number") { - throw new Error("ReactGridLayout: " + contextName + "[" + _i9 + "]." + subProps[j] + " must be a number!"); - } - } - if (item.i && typeof item.i !== "string") { - throw new Error("ReactGridLayout: " + contextName + "[" + _i9 + "].i must be a string!"); - } - if (item.static !== undefined && typeof item.static !== "boolean") { - throw new Error("ReactGridLayout: " + contextName + "[" + _i9 + "].static must be a boolean!"); - } + if (node.nodeType === 9) { + return node; } - } - // Flow can't really figure this out, so we just use Object - function autoBindHandlers(el, fns) { - fns.forEach(function (key) { - return el[key] = el[key].bind(el); - }); + return node.ownerDocument; } - function log() { - var _console; - - if (!DEBUG) return; - // eslint-disable-next-line no-console - (_console = console).log.apply(_console, arguments); - } + function _getComputedStyle(elem, name, cs) { + var computedStyle = cs; + var val = ''; + var d = getDocument(elem); + computedStyle = computedStyle || d.defaultView.getComputedStyle(elem, null); // https://github.com/kissyteam/kissy/issues/61 - var noop = exports.noop = function noop() {}; - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) + if (computedStyle) { + val = computedStyle.getPropertyValue(name) || computedStyle[name]; + } - /***/ }), - /* 76 */ - /***/ (function(module, exports, __webpack_require__) { + return val; + } - "use strict"; + var _RE_NUM_NO_PX = new RegExp("^(".concat(RE_NUM, ")(?!px)[a-z%]+$"), 'i'); + var RE_POS = /^(top|right|bottom|left)$/; + var CURRENT_STYLE = 'currentStyle'; + var RUNTIME_STYLE = 'runtimeStyle'; + var LEFT = 'left'; + var PX = 'px'; - Object.defineProperty(exports, "__esModule", { - value: true - }); + function _getComputedStyleIE(elem, name) { + // currentStyle maybe null + // http://msdn.microsoft.com/en-us/library/ms535231.aspx + var ret = elem[CURRENT_STYLE] && elem[CURRENT_STYLE][name]; // 当 width/height 设置为百分比时,通过 pixelLeft 方式转换的 width/height 值 + // 一开始就处理了! CUSTOM_STYLE.height,CUSTOM_STYLE.width ,cssHook 解决@2011-08-19 + // 在 ie 下不对,需要直接用 offset 方式 + // borderWidth 等值也有问题,但考虑到 borderWidth 设为百分比的概率很小,这里就不考虑了 + // From the awesome hack by Dean Edwards + // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 + // If we're not dealing with a regular pixel number + // but a number that has a weird ending, we need to convert it to pixels + // exclude left right for relativity - var _react = __webpack_require__(0); + if (_RE_NUM_NO_PX.test(ret) && !RE_POS.test(name)) { + // Remember the original values + var style = elem.style; + var left = style[LEFT]; + var rsLeft = elem[RUNTIME_STYLE][LEFT]; // prevent flashing of content - var _react2 = _interopRequireDefault(_react); + elem[RUNTIME_STYLE][LEFT] = elem[CURRENT_STYLE][LEFT]; // Put in the new values to get a computed value out - var _reactDom = __webpack_require__(3); + style[LEFT] = name === 'fontSize' ? '1em' : ret || 0; + ret = style.pixelLeft + PX; // Revert the changed values - var _reactDom2 = _interopRequireDefault(_reactDom); + style[LEFT] = left; + elem[RUNTIME_STYLE][LEFT] = rsLeft; + } - var _propTypes = __webpack_require__(1); + return ret === '' ? 'auto' : ret; + } - var _propTypes2 = _interopRequireDefault(_propTypes); + if (typeof window !== 'undefined') { + getComputedStyleX = window.getComputedStyle ? _getComputedStyle : _getComputedStyleIE; + } - var _ownerDocument = __webpack_require__(42); + function getOffsetDirection(dir, option) { + if (dir === 'left') { + return option.useCssRight ? 'right' : dir; + } - var _ownerDocument2 = _interopRequireDefault(_ownerDocument); + return option.useCssBottom ? 'bottom' : dir; + } - var _getContainer = __webpack_require__(329); + function oppositeOffsetDirection(dir) { + if (dir === 'left') { + return 'right'; + } else if (dir === 'right') { + return 'left'; + } else if (dir === 'top') { + return 'bottom'; + } else if (dir === 'bottom') { + return 'top'; + } + } // 设置 elem 相对 elem.ownerDocument 的坐标 - var _getContainer2 = _interopRequireDefault(_getContainer); - var _tinperBeeCore = __webpack_require__(60); + function setLeftTop(elem, offset, option) { + // set position first, in-case top/left are set even on static elem + if (css(elem, 'position') === 'static') { + elem.style.position = 'relative'; + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var presetH = -999; + var presetV = -999; + var horizontalProperty = getOffsetDirection('left', option); + var verticalProperty = getOffsetDirection('top', option); + var oppositeHorizontalProperty = oppositeOffsetDirection(horizontalProperty); + var oppositeVerticalProperty = oppositeOffsetDirection(verticalProperty); - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + if (horizontalProperty !== 'left') { + presetH = 999; + } - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + if (verticalProperty !== 'top') { + presetV = 999; + } - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + var originalTransition = ''; + var originalOffset = getOffset(elem); - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + if ('left' in offset || 'top' in offset) { + originalTransition = getTransitionProperty(elem) || ''; + setTransitionProperty(elem, 'none'); + } - var isReact16 = _reactDom2["default"].createPortal !== undefined; - var createPortal = isReact16 ? _reactDom2["default"].createPortal : _reactDom2["default"].unstable_renderSubtreeIntoContainer; + if ('left' in offset) { + elem.style[oppositeHorizontalProperty] = ''; + elem.style[horizontalProperty] = "".concat(presetH, "px"); + } - var propTypes = { - /** - * 存放子组件的容器 - */ - container: _propTypes2["default"].oneOfType([_tinperBeeCore.componentOrElement, _propTypes2["default"].func]) - }; + if ('top' in offset) { + elem.style[oppositeVerticalProperty] = ''; + elem.style[verticalProperty] = "".concat(presetV, "px"); + } // force relayout - var defaultProps = {}; - /** - * Portal组件是将子组件渲染 - */ + forceRelayout(elem); + var old = getOffset(elem); + var originalStyle = {}; - var Portal = function (_Component) { - _inherits(Portal, _Component); + for (var key in offset) { + if (offset.hasOwnProperty(key)) { + var dir = getOffsetDirection(key, option); + var preset = key === 'left' ? presetH : presetV; + var off = originalOffset[key] - old[key]; - function Portal(props) { - _classCallCheck(this, Portal); + if (dir === key) { + originalStyle[dir] = preset + off; + } else { + originalStyle[dir] = preset - off; + } + } + } - var _this = _possibleConstructorReturn(this, _Component.call(this, props)); + css(elem, originalStyle); // force relayout - _this.getMountNode = _this.getMountNode.bind(_this); - _this.getOverlayDOMNode = _this.getOverlayDOMNode.bind(_this); - _this.mountOverlayTarget = _this.mountOverlayTarget.bind(_this); - _this.unmountOverlayTarget = _this.unmountOverlayTarget.bind(_this); - _this.renderOverlay = _this.renderOverlay.bind(_this); - _this.unrenderOverlay = _this.unrenderOverlay.bind(_this); + forceRelayout(elem); - _this.overlayTarget = isReact16 ? document.createElement('div') : null; - return _this; + if ('left' in offset || 'top' in offset) { + setTransitionProperty(elem, originalTransition); } - Portal.prototype.componentDidMount = function componentDidMount() { - if (isReact16) { - this.portalContainerNode = (0, _getContainer2["default"])(this.props.container, (0, _ownerDocument2["default"])(this).body); - this.portalContainerNode.appendChild(this.overlayTarget); - } else { - this.renderOverlay(); - } + var ret = {}; - this.mounted = true; - }; + for (var _key in offset) { + if (offset.hasOwnProperty(_key)) { + var _dir = getOffsetDirection(_key, option); - Portal.prototype.componentDidUpdate = function componentDidUpdate() { - if (isReact16) { - var overlay = !this.props.children ? null : _react2["default"].Children.only(this.props.children); - if (overlay === null) { - this.unrenderOverlay(); - this.unmountOverlayTarget(); - } else {} - } else { - this.renderOverlay(); + var _off = offset[_key] - originalOffset[_key]; + + if (_key === _dir) { + ret[_dir] = originalStyle[_dir] + _off; + } else { + ret[_dir] = originalStyle[_dir] - _off; + } } - }; - //this._overlayTarget为当前的要添加的子组件, this._portalContainerNode要添加组件的容器元素 + } + css(elem, ret); + } - Portal.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - if (this.overlayTarget && nextProps.container !== this.props.container) { - this.portalContainerNode.removeChild(this.overlayTarget); - this.portalContainerNode = (0, _getContainer2["default"])(nextProps.container, (0, _ownerDocument2["default"])(this).body); - this.portalContainerNode.appendChild(this.overlayTarget); - } + function setTransform$1(elem, offset) { + var originalOffset = getOffset(elem); + var originalXY = getTransformXY(elem); + var resultXY = { + x: originalXY.x, + y: originalXY.y }; - Portal.prototype.componentWillUnmount = function componentWillUnmount() { - this.unrenderOverlay(); - this.unmountOverlayTarget(); + if ('left' in offset) { + resultXY.x = originalXY.x + offset.left - originalOffset.left; + } - this.mounted = false; - }; + if ('top' in offset) { + resultXY.y = originalXY.y + offset.top - originalOffset.top; + } - Portal.prototype.getMountNode = function getMountNode() { - return this.overlayTarget; - }; + setTransformXY(elem, resultXY); + } - Portal.prototype.getOverlayDOMNode = function getOverlayDOMNode() { - if (!this.mounted) { - throw new Error('getOverlayDOMNode(): A component must be mounted to have a DOM node.'); - } + function setOffset(elem, offset, option) { + if (option.ignoreShake) { + var oriOffset = getOffset(elem); + var oLeft = oriOffset.left.toFixed(0); + var oTop = oriOffset.top.toFixed(0); + var tLeft = offset.left.toFixed(0); + var tTop = offset.top.toFixed(0); - if (this.overlayInstance) { - return _reactDom2["default"].findDOMNode(this.overlayInstance); + if (oLeft === tLeft && oTop === tTop) { + return; } + } - return null; - }; + if (option.useCssRight || option.useCssBottom) { + setLeftTop(elem, offset, option); + } else if (option.useCssTransform && getTransformName() in document.body.style) { + setTransform$1(elem, offset); + } else { + setLeftTop(elem, offset, option); + } + } - /** - * 如果要添加的子组件不存在,就将div添加到要添加容器的DOM中; - */ + function each(arr, fn) { + for (var i = 0; i < arr.length; i++) { + fn(arr[i]); + } + } - Portal.prototype.mountOverlayTarget = function mountOverlayTarget() { - if (!this.overlayTarget) { - this.overlayTarget = document.createElement('div'); - this.portalContainerNode = (0, _getContainer2["default"])(this.props.container, (0, _ownerDocument2["default"])(this).body); - this.portalContainerNode.appendChild(this.overlayTarget); - } - }; - /** - * 将要添加的子元素从容器中移除,并把变量置为null - */ + function isBorderBoxFn(elem) { + return getComputedStyleX(elem, 'boxSizing') === 'border-box'; + } + + var BOX_MODELS = ['margin', 'border', 'padding']; + var CONTENT_INDEX = -1; + var PADDING_INDEX = 2; + var BORDER_INDEX = 1; + var MARGIN_INDEX = 0; + function swap(elem, options, callback) { + var old = {}; + var style = elem.style; + var name; // Remember the old values, and insert the new ones - Portal.prototype.unmountOverlayTarget = function unmountOverlayTarget() { - if (this.overlayTarget) { - this.portalContainerNode.removeChild(this.overlayTarget); - this.overlayTarget = null; + for (name in options) { + if (options.hasOwnProperty(name)) { + old[name] = style[name]; + style[name] = options[name]; } - this.portalContainerNode = null; - }; - /** - * 手动渲染_overlayTarget - */ + } + callback.call(elem); // Revert the old values - Portal.prototype.renderOverlay = function renderOverlay() { + for (name in options) { + if (options.hasOwnProperty(name)) { + style[name] = old[name]; + } + } + } - var overlay = !this.props.children ? null : _react2["default"].Children.only(this.props.children); + function getPBMWidth(elem, props, which) { + var value = 0; + var prop; + var j; + var i; - // Save reference for future access. - if (overlay !== null) { - this.mountOverlayTarget(); - this.overlayInstance = _reactDom2["default"].unstable_renderSubtreeIntoContainer(this, overlay, this.overlayTarget); - } else { - // Unrender if the component is null for transitions to null - this.unrenderOverlay(); - this.unmountOverlayTarget(); - } - }; - /** - * 销毁_overlayTarget组件。并把_overlayInstance置为null - */ + for (j = 0; j < props.length; j++) { + prop = props[j]; + if (prop) { + for (i = 0; i < which.length; i++) { + var cssProp = void 0; - Portal.prototype.unrenderOverlay = function unrenderOverlay() { - if (this.overlayTarget) { - !isReact16 && _reactDom2["default"].unmountComponentAtNode(this.overlayTarget); - this.overlayInstance = null; - } - }; + if (prop === 'border') { + cssProp = "".concat(prop).concat(which[i], "Width"); + } else { + cssProp = prop + which[i]; + } - Portal.prototype.render = function render() { - if (!isReact16) { - return null; + value += parseFloat(getComputedStyleX(elem, cssProp)) || 0; + } } + } - var overlay = !this.props.children ? null : _react2["default"].Children.only(this.props.children); + return value; + } - return _reactDom2["default"].createPortal(overlay, this.overlayTarget); - }; + var domUtils = { + getParent: function getParent(element) { + var parent = element; - return Portal; - }(_react.Component); + do { + if (parent.nodeType === 11 && parent.host) { + parent = parent.host; + } else { + parent = parent.parentNode; + } + } while (parent && parent.nodeType !== 1 && parent.nodeType !== 9); - ; + return parent; + } + }; + each(['Width', 'Height'], function (name) { + domUtils["doc".concat(name)] = function (refWin) { + var d = refWin.document; + return Math.max( // firefox chrome documentElement.scrollHeight< body.scrollHeight + // ie standard mode : documentElement.scrollHeight> body.scrollHeight + d.documentElement["scroll".concat(name)], // quirks : documentElement.scrollHeight 最大等于可视窗口多一点? + d.body["scroll".concat(name)], domUtils["viewport".concat(name)](d)); + }; - Portal.propTypes = propTypes; - Portal.defaultProps = defaultProps; + domUtils["viewport".concat(name)] = function (win) { + // pc browser includes scrollbar in window.innerWidth + var prop = "client".concat(name); + var doc = win.document; + var body = doc.body; + var documentElement = doc.documentElement; + var documentElementProp = documentElement[prop]; // 标准模式取 documentElement + // backcompat 取 body - exports["default"] = Portal; - module.exports = exports['default']; + return doc.compatMode === 'CSS1Compat' && documentElementProp || body && body[prop] || documentElementProp; + }; + }); + /* + 得到元素的大小信息 + @param elem + @param name + @param {String} [extra] 'padding' : (css width) + padding + 'border' : (css width) + padding + border + 'margin' : (css width) + padding + border + margin + */ - /***/ }), - /* 77 */ - /***/ (function(module, exports, __webpack_require__) { + function getWH(elem, name, ex) { + var extra = ex; - "use strict"; + if (isWindow(elem)) { + return name === 'width' ? domUtils.viewportWidth(elem) : domUtils.viewportHeight(elem); + } else if (elem.nodeType === 9) { + return name === 'width' ? domUtils.docWidth(elem) : domUtils.docHeight(elem); + } + var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom']; + var borderBoxValue = name === 'width' ? elem.getBoundingClientRect().width : elem.getBoundingClientRect().height; + var computedStyle = getComputedStyleX(elem); + var isBorderBox = isBorderBoxFn(elem); + var cssBoxValue = 0; - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.toArray = toArray; - exports.getActiveIndex = getActiveIndex; - exports.getActiveKey = getActiveKey; - exports.setTransform = setTransform; - exports.isTransformSupported = isTransformSupported; - exports.setTransition = setTransition; - exports.getTransformPropValue = getTransformPropValue; - exports.isVertical = isVertical; - exports.getTransformByIndex = getTransformByIndex; - exports.getMarginStyle = getMarginStyle; - exports.getStyle = getStyle; - exports.setPxStyle = setPxStyle; - exports.getLeft = getLeft; - exports.getTop = getTop; - exports.getDataAttr = getDataAttr; + if (borderBoxValue === null || borderBoxValue === undefined || borderBoxValue <= 0) { + borderBoxValue = undefined; // Fall back to computed then un computed css if necessary - var _react = __webpack_require__(0); + cssBoxValue = getComputedStyleX(elem, name); - var _react2 = _interopRequireDefault(_react); + if (cssBoxValue === null || cssBoxValue === undefined || Number(cssBoxValue) < 0) { + cssBoxValue = elem.style[name] || 0; + } // Normalize '', auto, and prepare for extra - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } /** - * This source code is quoted from rc-tabs. - * homepage: https://github.com/react-component/tabs - */ + cssBoxValue = parseFloat(cssBoxValue) || 0; + } + if (extra === undefined) { + extra = isBorderBox ? BORDER_INDEX : CONTENT_INDEX; + } - function toArray(children) { - // allow [c,[a,b]] - var c = []; - _react2["default"].Children.forEach(children, function (child) { - if (child) { - c.push(child); - } - }); - return c; - } + var borderBoxValueOrIsBorderBox = borderBoxValue !== undefined || isBorderBox; + var val = borderBoxValue || cssBoxValue; - function getActiveIndex(children, activeKey) { - var c = toArray(children); - for (var i = 0; i < c.length; i++) { - if (c[i].key === activeKey) { - return i; + if (extra === CONTENT_INDEX) { + if (borderBoxValueOrIsBorderBox) { + return val - getPBMWidth(elem, ['border', 'padding'], which); } - } - return -1; - } - function getActiveKey(children, index) { - var c = toArray(children); - return c[index].key; - } + return cssBoxValue; + } else if (borderBoxValueOrIsBorderBox) { + if (extra === BORDER_INDEX) { + return val; + } - function setTransform(style, v) { - style.transform = v; - style.webkitTransform = v; - style.mozTransform = v; - } + return val + (extra === PADDING_INDEX ? -getPBMWidth(elem, ['border'], which) : getPBMWidth(elem, ['margin'], which)); + } - function isTransformSupported(style) { - return 'transform' in style || 'webkitTransform' in style || 'MozTransform' in style; + return cssBoxValue + getPBMWidth(elem, BOX_MODELS.slice(extra), which); } - function setTransition(style, v) { - style.transition = v; - style.webkitTransition = v; - style.MozTransition = v; - } - function getTransformPropValue(v) { - return { - transform: v, - WebkitTransform: v, - MozTransform: v - }; - } + var cssShow = { + position: 'absolute', + visibility: 'hidden', + display: 'block' + }; // fix #119 : https://github.com/kissyteam/kissy/issues/119 - function isVertical(tabBarPosition) { - return tabBarPosition === 'left' || tabBarPosition === 'right'; - } + function getWHIgnoreDisplay() { + for (var _len = arguments.length, args = new Array(_len), _key2 = 0; _key2 < _len; _key2++) { + args[_key2] = arguments[_key2]; + } - function getTransformByIndex(index, tabBarPosition) { - var translate = isVertical(tabBarPosition) ? 'translateY' : 'translateX'; - return translate + '(' + -index * 100 + '%) translateZ(0)'; - } + var val; + var elem = args[0]; // in case elem is window + // elem.offsetWidth === undefined - function getMarginStyle(index, tabBarPosition) { - var marginDirection = isVertical(tabBarPosition) ? 'marginTop' : 'marginLeft'; - return _defineProperty({}, marginDirection, -index * 100 + '%'); - } + if (elem.offsetWidth !== 0) { + val = getWH.apply(undefined, args); + } else { + swap(elem, cssShow, function () { + val = getWH.apply(undefined, args); + }); + } - function getStyle(el, property) { - return +getComputedStyle(el).getPropertyValue(property).replace('px', ''); + return val; } - function setPxStyle(el, property, value) { - el.style[property] = value + 'px'; - } + each(['width', 'height'], function (name) { + var first = name.charAt(0).toUpperCase() + name.slice(1); - function toNum(style, property) { - return +style.getPropertyValue(property).replace('px', ''); - } + domUtils["outer".concat(first)] = function (el, includeMargin) { + return el && getWHIgnoreDisplay(el, name, includeMargin ? MARGIN_INDEX : BORDER_INDEX); + }; - function getTypeValue(start, current, end, tabNode, wrapperNode) { - var total = getStyle(wrapperNode, 'padding-' + start); - if (!tabNode || !tabNode.parentNode) { - return total; - } + var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom']; - var childNodes = tabNode.parentNode.childNodes; + domUtils[name] = function (elem, v) { + var val = v; - Array.prototype.some.call(childNodes, function (node) { - var style = window.getComputedStyle(node); + if (val !== undefined) { + if (elem) { + var computedStyle = getComputedStyleX(elem); + var isBorderBox = isBorderBoxFn(elem); - if (node !== tabNode) { - total += toNum(style, 'margin-' + start); - total += node[current]; - total += toNum(style, 'margin-' + end); + if (isBorderBox) { + val += getPBMWidth(elem, ['padding', 'border'], which); + } - if (style.boxSizing === 'content-box') { - total += toNum(style, 'border-' + start + '-width') + toNum(style, 'border-' + end + '-width'); + return css(elem, name, val); } - return false; + + return undefined; } - // We need count current node margin - // ref: https://github.com/react-component/tabs/pull/139#issuecomment-431005262 - total += toNum(style, 'margin-' + start); + return elem && getWHIgnoreDisplay(elem, name, CONTENT_INDEX); + }; + }); - return true; - }); + function mix(to, from) { + for (var i in from) { + if (from.hasOwnProperty(i)) { + to[i] = from[i]; + } + } - return total; + return to; } - function getLeft(tabNode, wrapperNode) { - return getTypeValue('left', 'offsetWidth', 'right', tabNode, wrapperNode); - } + var utils = { + getWindow: function getWindow(node) { + if (node && node.document && node.setTimeout) { + return node; + } - function getTop(tabNode, wrapperNode) { - return getTypeValue('top', 'offsetHeight', 'bottom', tabNode, wrapperNode); - } + var doc = node.ownerDocument || node; + return doc.defaultView || doc.parentWindow; + }, + getDocument: getDocument, + offset: function offset(el, value, option) { + if (typeof value !== 'undefined') { + setOffset(el, value, option || {}); + } else { + return getOffset(el); + } + }, + isWindow: isWindow, + each: each, + css: css, + clone: function clone(obj) { + var i; + var ret = {}; - function getDataAttr(props) { - return Object.keys(props).reduce(function (prev, key) { - if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') { - prev[key] = props[key]; + for (i in obj) { + if (obj.hasOwnProperty(i)) { + ret[i] = obj[i]; + } } - return prev; - }, {}); - } - /***/ }), - /* 78 */ - /***/ (function(module, exports, __webpack_require__) { + var overflow = obj.overflow; - "use strict"; + if (overflow) { + for (i in obj) { + if (obj.hasOwnProperty(i)) { + ret.overflow[i] = obj.overflow[i]; + } + } + } + return ret; + }, + mix: mix, + getWindowScrollLeft: function getWindowScrollLeft(w) { + return getScrollLeft(w); + }, + getWindowScrollTop: function getWindowScrollTop(w) { + return getScrollTop(w); + }, + merge: function merge() { + var ret = {}; - Object.defineProperty(exports, "__esModule", { - value: true - }); + for (var i = 0; i < arguments.length; i++) { + utils.mix(ret, i < 0 || arguments.length <= i ? undefined : arguments[i]); + } - var _react = __webpack_require__(0); + return ret; + }, + viewportWidth: 0, + viewportHeight: 0 + }; + mix(utils, domUtils); - var _react2 = _interopRequireDefault(_react); + /** + * 得到会导致元素显示不全的祖先元素 + */ - var _reactDom = __webpack_require__(3); + var getParent = utils.getParent; - var _reactDom2 = _interopRequireDefault(_reactDom); + function getOffsetParent(element) { + if (utils.isWindow(element) || element.nodeType === 9) { + return null; + } // ie 这个也不是完全可行 - var _propTypes = __webpack_require__(1); + /* +
    +
    + 元素 6 高 100px 宽 50px
    +
    +
    + */ + // element.offsetParent does the right thing in ie7 and below. Return parent with layout! + // In other browsers it only includes elements with position absolute, relative or + // fixed, not elements with overflow set to auto or scroll. + // if (UA.ie && ieMode < 8) { + // return element.offsetParent; + // } + // 统一的 offsetParent 方法 - var _propTypes2 = _interopRequireDefault(_propTypes); - var _tinperBeeCore = __webpack_require__(79); + var doc = utils.getDocument(element); + var body = doc.body; + var parent; + var positionStyle = utils.css(element, 'position'); + var skipStatic = positionStyle === 'fixed' || positionStyle === 'absolute'; - var _reactLifecyclesCompat = __webpack_require__(14); + if (!skipStatic) { + return element.nodeName.toLowerCase() === 'html' ? null : getParent(element); + } - var _moment = __webpack_require__(4); + for (parent = getParent(element); parent && parent !== body && parent.nodeType !== 9; parent = getParent(parent)) { + positionStyle = utils.css(parent, 'position'); - var _moment2 = _interopRequireDefault(_moment); + if (positionStyle !== 'static') { + return parent; + } + } - var _util = __webpack_require__(32); + return null; + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var getParent$1 = utils.getParent; + function isAncestorFixed(element) { + if (utils.isWindow(element) || element.nodeType === 9) { + return false; + } - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + var doc = utils.getDocument(element); + var body = doc.body; + var parent = null; - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + for (parent = getParent$1(element); parent && parent !== body; parent = getParent$1(parent)) { + var positionStyle = utils.css(parent, 'position'); - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + if (positionStyle === 'fixed') { + return true; + } + } - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + return false; + } - var cachedSelectionStart = void 0; - var cachedSelectionEnd = void 0; - var dateInputInstance = void 0; + /** + * 获得元素的显示部分的区域 + */ - var DateInput = function (_React$Component) { - _inherits(DateInput, _React$Component); + function getVisibleRectForElement(element, alwaysByViewport) { + var visibleRect = { + left: 0, + right: Infinity, + top: 0, + bottom: Infinity + }; + var el = getOffsetParent(element); + var doc = utils.getDocument(element); + var win = doc.defaultView || doc.parentWindow; + var body = doc.body; + var documentElement = doc.documentElement; // Determine the size of the visible rect by climbing the dom accounting for + // all scrollable containers. - function DateInput(props) { - _classCallCheck(this, DateInput); + while (el) { + // clientWidth is zero for inline block elements in ie. + if ((navigator.userAgent.indexOf('MSIE') === -1 || el.clientWidth !== 0) && // body may have overflow set on it, yet we still get the entire + // viewport. In some browsers, el.offsetParent may be + // document.documentElement, so check for that too. + el !== body && el !== documentElement && utils.css(el, 'overflow') !== 'visible') { + var pos = utils.offset(el); // add border - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); + pos.left += el.clientLeft; + pos.top += el.clientTop; + visibleRect.top = Math.max(visibleRect.top, pos.top); + visibleRect.right = Math.min(visibleRect.right, // consider area without scrollBar + pos.left + el.clientWidth); + visibleRect.bottom = Math.min(visibleRect.bottom, pos.top + el.clientHeight); + visibleRect.left = Math.max(visibleRect.left, pos.left); + } else if (el === body || el === documentElement) { + break; + } - _initialiseProps.call(_this); + el = getOffsetParent(el); + } // Set element position to fixed + // make sure absolute element itself don't affect it's visible area + // https://github.com/ant-design/ant-design/issues/7601 - var selectedValue = props.selectedValue; - _this.state = { - str: (0, _util.formatDate)(selectedValue, _this.props.format), - invalid: false, - hasFocus: false - }; - return _this; - } + var originalPosition = null; - DateInput.prototype.componentDidUpdate = function componentDidUpdate() { - if (dateInputInstance && this.state.hasFocus && !this.state.invalid && !(cachedSelectionStart === 0 && cachedSelectionEnd === 0)) { - dateInputInstance.setSelectionRange(cachedSelectionStart, cachedSelectionEnd); + if (!utils.isWindow(element) && element.nodeType !== 9) { + originalPosition = element.style.position; + var position = utils.css(element, 'position'); + + if (position === 'absolute') { + element.style.position = 'fixed'; } - }; + } - DateInput.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, state) { - var newState = {}; + var scrollX = utils.getWindowScrollLeft(win); + var scrollY = utils.getWindowScrollTop(win); + var viewportWidth = utils.viewportWidth(win); + var viewportHeight = utils.viewportHeight(win); + var documentWidth = documentElement.scrollWidth; + var documentHeight = documentElement.scrollHeight; // scrollXXX on html is sync with body which means overflow: hidden on body gets wrong scrollXXX. + // We should cut this ourself. - if (dateInputInstance) { - cachedSelectionStart = dateInputInstance.selectionStart; - cachedSelectionEnd = dateInputInstance.selectionEnd; - } - // when popup show, click body will call this, bug! - var selectedValue = nextProps.selectedValue; - if (!state.hasFocus) { - newState = { - str: (0, _util.formatDate)(selectedValue, nextProps.format), - invalid: false - }; - } + var bodyStyle = window.getComputedStyle(body); - return newState; - }; + if (bodyStyle.overflowX === 'hidden') { + documentWidth = win.innerWidth; + } - DateInput.getInstance = function getInstance() { - return dateInputInstance; - }; + if (bodyStyle.overflowY === 'hidden') { + documentHeight = win.innerHeight; + } // Reset element position after calculate the visible area - DateInput.prototype.render = function render() { - var props = this.props; - var _state = this.state, - invalid = _state.invalid, - str = _state.str; - var locale = props.locale, - prefixCls = props.prefixCls, - placeholder = props.placeholder, - clearIcon = props.clearIcon, - renderError = props.renderError, - inputTabIndex = props.inputTabIndex; - var invalidClass = invalid ? prefixCls + '-input-invalid' : ''; - return _react2["default"].createElement( - 'div', - { className: prefixCls + '-input-wrap' }, - _react2["default"].createElement( - 'div', - { className: prefixCls + '-date-input-wrap' }, - _react2["default"].createElement('input', { - ref: this.saveDateInput, - className: prefixCls + '-input ' + invalidClass, - value: str ? str : (0, _util.formatDate)(props.selectedValue, props.format), - disabled: props.disabled, - placeholder: placeholder, - onChange: this.onInputChange, - onKeyDown: this.onKeyDown, - onFocus: this.onFocus, - onBlur: this.onBlur, - tabIndex: inputTabIndex - }), - invalid && renderError ? renderError() : '' - ), - props.showClear ? _react2["default"].createElement( - 'a', - { - role: 'button', - title: locale.clear, - onClick: this.onClear - }, - clearIcon || _react2["default"].createElement('span', { className: prefixCls + '-clear-btn uf uf-close-c' }) - ) : null - ); + if (element.style) { + element.style.position = originalPosition; + } + + if (alwaysByViewport || isAncestorFixed(element)) { + // Clip by viewport's size. + visibleRect.left = Math.max(visibleRect.left, scrollX); + visibleRect.top = Math.max(visibleRect.top, scrollY); + visibleRect.right = Math.min(visibleRect.right, scrollX + viewportWidth); + visibleRect.bottom = Math.min(visibleRect.bottom, scrollY + viewportHeight); + } else { + // Clip by document's size. + var maxVisibleWidth = Math.max(documentWidth, scrollX + viewportWidth); + visibleRect.right = Math.min(visibleRect.right, maxVisibleWidth); + var maxVisibleHeight = Math.max(documentHeight, scrollY + viewportHeight); + visibleRect.bottom = Math.min(visibleRect.bottom, maxVisibleHeight); + } + + return visibleRect.top >= 0 && visibleRect.left >= 0 && visibleRect.bottom > visibleRect.top && visibleRect.right > visibleRect.left ? visibleRect : null; + } + + function adjustForViewport(elFuturePos, elRegion, visibleRect, overflow) { + var pos = utils.clone(elFuturePos); + var size = { + width: elRegion.width, + height: elRegion.height }; - return DateInput; - }(_react2["default"].Component); + if (overflow.adjustX && pos.left < visibleRect.left) { + pos.left = visibleRect.left; + } // Left edge inside and right edge outside viewport, try to resize it. - DateInput.propTypes = { - prefixCls: _propTypes2["default"].string, - timePicker: _propTypes2["default"].object, - value: _propTypes2["default"].object, - disabledTime: _propTypes2["default"].any, - format: _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].arrayOf(_propTypes2["default"].string)]), - locale: _propTypes2["default"].object, - disabledDate: _propTypes2["default"].func, - onChange: _propTypes2["default"].func, - onClear: _propTypes2["default"].func, - placeholder: _propTypes2["default"].string, - onSelect: _propTypes2["default"].func, - selectedValue: _propTypes2["default"].object, - clearIcon: _propTypes2["default"].node - }; - var _initialiseProps = function _initialiseProps() { - var _this2 = this; + if (overflow.resizeWidth && pos.left >= visibleRect.left && pos.left + size.width > visibleRect.right) { + size.width -= pos.left + size.width - visibleRect.right; + } // Right edge outside viewport, try to move it. - this.onClear = function () { - _this2.setState({ - str: '' - }); - _this2.props.onClear(null); - }; - this.onInputChange = function (event) { - var str = event.target.value; - var _props = _this2.props, - disabledDate = _props.disabledDate, - format = _props.format, - onChange = _props.onChange, - selectedValue = _props.selectedValue, - validatorFunc = _props.validatorFunc; + if (overflow.adjustX && pos.left + size.width > visibleRect.right) { + // 保证左边界和可视区域左边界对齐 + pos.left = Math.max(visibleRect.right - size.width, visibleRect.left); + } // Top edge outside viewport, try to move it. - // 没有内容,合法并直接退出 - if (!str) { - onChange(null); - _this2.setState({ - // invalid: false, - str: str - }); - return; - } + if (overflow.adjustY && pos.top < visibleRect.top) { + pos.top = visibleRect.top; + } // Top edge inside and bottom edge outside viewport, try to resize it. - // 不合法直接退出 - var parsed = (0, _moment2["default"])(str, format, true); - if (!parsed.isValid()) { - _this2.setState({ - // invalid: true, - str: str - }); - return; - } - if (!_this2.props.validatorFunc(str)) { - _this2.setState({ - str: str - }); - return; + + if (overflow.resizeHeight && pos.top >= visibleRect.top && pos.top + size.height > visibleRect.bottom) { + size.height -= pos.top + size.height - visibleRect.bottom; + } // Bottom edge outside viewport, try to move it. + + + if (overflow.adjustY && pos.top + size.height > visibleRect.bottom) { + // 保证上边界和可视区域上边界对齐 + pos.top = Math.max(visibleRect.bottom - size.height, visibleRect.top); + } + + return utils.mix(pos, size); + } + + function getRegion(node) { + var offset; + var w; + var h; + + if (!utils.isWindow(node) && node.nodeType !== 9) { + offset = utils.offset(node); + w = utils.outerWidth(node); + h = utils.outerHeight(node); + } else { + var win = utils.getWindow(node); + offset = { + left: utils.getWindowScrollLeft(win), + top: utils.getWindowScrollTop(win) }; + w = utils.viewportWidth(win); + h = utils.viewportHeight(win); + } - var value = _this2.props.value.clone(); - value.year(parsed.year()).month(parsed.month()).date(parsed.date()).hour(parsed.hour()).minute(parsed.minute()).second(parsed.second()); + offset.width = w; + offset.height = h; + return offset; + } - if (!value || disabledDate && disabledDate(value)) { - _this2.setState({ - // invalid: true, - str: str - }); - return; - } + /** + * 获取 node 上的 align 对齐点 相对于页面的坐标 + */ + function getAlignOffset(region, align) { + var V = align.charAt(0); + var H = align.charAt(1); + var w = region.width; + var h = region.height; + var x = region.left; + var y = region.top; - if (selectedValue !== value || selectedValue && value && !selectedValue.isSame(value)) { - _this2.setState({ - // invalid: false, - str: str - }); - onChange(value); - } + if (V === 'c') { + y += h / 2; + } else if (V === 'b') { + y += h; + } + + if (H === 'c') { + x += w / 2; + } else if (H === 'r') { + x += w; + } + + return { + left: x, + top: y }; + } - this.onFocus = function () { - _this2.setState({ hasFocus: true }); + function getElFuturePos(elRegion, refNodeRegion, points, offset, targetOffset) { + var p1 = getAlignOffset(refNodeRegion, points[1]); + var p2 = getAlignOffset(elRegion, points[0]); + var diff = [p2.left - p1.left, p2.top - p1.top]; + return { + left: Math.round(elRegion.left - diff[0] + offset[0] - targetOffset[0]), + top: Math.round(elRegion.top - diff[1] + offset[1] - targetOffset[1]) }; + } - this.onBlur = function (e) { - var str = e.target.value; - var _props2 = _this2.props, - disabledDate = _props2.disabledDate, - format = _props2.format, - onChange = _props2.onChange, - selectedValue = _props2.selectedValue; + /** + * align dom node flexibly + * @author yiminghe@gmail.com + */ - // 没有内容,合法并直接退出 + function isFailX(elFuturePos, elRegion, visibleRect) { + return elFuturePos.left < visibleRect.left || elFuturePos.left + elRegion.width > visibleRect.right; + } - if (!str) { - _this2.setState({ - invalid: false - }); - return; - } + function isFailY(elFuturePos, elRegion, visibleRect) { + return elFuturePos.top < visibleRect.top || elFuturePos.top + elRegion.height > visibleRect.bottom; + } - // 不合法直接退出 - var parsed = (0, _moment2["default"])(str, format, true); - if (!parsed.isValid()) { - _this2.setState({ - invalid: true - }); - return; - } - if (!_this2.props.validatorFunc(str)) { - _this2.setState({ - invalid: true - }); - return; - }; + function isCompleteFailX(elFuturePos, elRegion, visibleRect) { + return elFuturePos.left > visibleRect.right || elFuturePos.left + elRegion.width < visibleRect.left; + } - var value = _this2.props.value.clone(); - value.year(parsed.year()).month(parsed.month()).date(parsed.date()).hour(parsed.hour()).minute(parsed.minute()).second(parsed.second()); + function isCompleteFailY(elFuturePos, elRegion, visibleRect) { + return elFuturePos.top > visibleRect.bottom || elFuturePos.top + elRegion.height < visibleRect.top; + } - if (!value || disabledDate && disabledDate(value)) { - _this2.setState({ - invalid: true - }); - return; - } + function flip(points, reg, map) { + var ret = []; + utils.each(points, function (p) { + ret.push(p.replace(reg, function (m) { + return map[m]; + })); + }); + return ret; + } - if (selectedValue !== value || selectedValue && value && !selectedValue.isSame(value)) { - _this2.setState({ - invalid: false - }); - } + function flipOffset(offset, index) { + offset[index] = -offset[index]; + return offset; + } - _this2.setState(function (prevState, prevProps) { - return { - hasFocus: false, - str: (0, _util.formatDate)(prevProps.value, prevProps.format) - }; - }); - _this2.props.onBlur && _this2.props.onBlur(e); - }; + function convertOffset(str, offsetLen) { + var n; - this.onKeyDown = function (e) { - var _props3 = _this2.props, - onSelect = _props3.onSelect, - value = _props3.value, - onKeyDown = _props3.onKeyDown, - format = _props3.format, - isRange = _props3.isRange, - validatorFunc = _props3.validatorFunc, - disabledDate = _props3.disabledDate; + if (/%$/.test(str)) { + n = parseInt(str.substring(0, str.length - 1), 10) / 100 * offsetLen; + } else { + n = parseInt(str, 10); + } - var str = e.target.value; - var parsed = (0, _moment2["default"])(str, format, true); - if (e.keyCode === _tinperBeeCore.KeyCode.ENTER) { - if (parsed.isValid() && onSelect) { - isRange ? onSelect(parsed.clone()) : onSelect(value.clone()); //FIX https://github.com/iuap-design/tinper-bee/issues/183 - } - // 没有内容,回填默认值,并关闭面板 - if (!str) { - _this2.setState({ - invalid: false - }); - onSelect && onSelect((0, _moment2["default"])()); - return; - } - // 有内容,判断是否合法 - if (!parsed.isValid()) { - _this2.setState({ - invalid: true - }); - } - if (!validatorFunc(str)) { - _this2.setState({ - invalid: true - }); - } - value.year(parsed.year()).month(parsed.month()).date(parsed.date()).hour(parsed.hour()).minute(parsed.minute()).second(parsed.second()); + return n || 0; + } - if (!value || disabledDate && disabledDate(value)) { - _this2.setState({ - invalid: true - }); - } - } - // if (e.keyCode === KeyCode.ENTER && onSelect) { - // onSelect(value.clone()); - // } - onKeyDown && onKeyDown(e); - }; + function normalizeOffset(offset, el) { + offset[0] = convertOffset(offset[0], el.width); + offset[1] = convertOffset(offset[1], el.height); + } + /** + * @param el + * @param tgtRegion 参照节点所占的区域: { left, top, width, height } + * @param align + */ - this.getRootDOMNode = function () { - return _reactDom2["default"].findDOMNode(_this2); - }; - this.focus = function () { - if (dateInputInstance) { - dateInputInstance.focus(); - } - }; + function doAlign(el, tgtRegion, align, isTgtRegionVisible) { + var points = align.points; + var offset = align.offset || [0, 0]; + var targetOffset = align.targetOffset || [0, 0]; + var overflow = align.overflow; + var source = align.source || el; + offset = [].concat(offset); + targetOffset = [].concat(targetOffset); + overflow = overflow || {}; + var newOverflowCfg = {}; + var fail = 0; + var alwaysByViewport = !!(overflow && overflow.alwaysByViewport); // 当前节点可以被放置的显示区域 - this.saveDateInput = function (dateInput) { - dateInputInstance = dateInput; - }; - }; + var visibleRect = getVisibleRectForElement(source, alwaysByViewport); // 当前节点所占的区域, left/top/width/height - (0, _reactLifecyclesCompat.polyfill)(DateInput); + var elRegion = getRegion(source); // 将 offset 转换成数值,支持百分比 - exports["default"] = DateInput; - module.exports = exports['default']; + normalizeOffset(offset, elRegion); + normalizeOffset(targetOffset, tgtRegion); // 当前节点将要被放置的位置 - /***/ }), - /* 79 */ - /***/ (function(module, exports, __webpack_require__) { + var elFuturePos = getElFuturePos(elRegion, tgtRegion, points, offset, targetOffset); // 当前节点将要所处的区域 - "use strict"; + var newElRegion = utils.merge(elRegion, elFuturePos); // 如果可视区域不能完全放置当前节点时允许调整 + if (visibleRect && (overflow.adjustX || overflow.adjustY) && isTgtRegionVisible) { + if (overflow.adjustX) { + // 如果横向不能放下 + if (isFailX(elFuturePos, elRegion, visibleRect)) { + // 对齐位置反下 + var newPoints = flip(points, /[lr]/gi, { + l: 'r', + r: 'l' + }); // 偏移量也反下 - exports.__esModule = true; - exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined; + var newOffset = flipOffset(offset, 0); + var newTargetOffset = flipOffset(targetOffset, 0); + var newElFuturePos = getElFuturePos(elRegion, tgtRegion, newPoints, newOffset, newTargetOffset); - var _all2 = __webpack_require__(1276); + if (!isCompleteFailX(newElFuturePos, elRegion, visibleRect)) { + fail = 1; + points = newPoints; + offset = newOffset; + targetOffset = newTargetOffset; + } + } + } - var _all3 = _interopRequireDefault(_all2); + if (overflow.adjustY) { + // 如果纵向不能放下 + if (isFailY(elFuturePos, elRegion, visibleRect)) { + // 对齐位置反下 + var _newPoints = flip(points, /[tb]/gi, { + t: 'b', + b: 't' + }); // 偏移量也反下 - var _componentOrElement2 = __webpack_require__(1277); - var _componentOrElement3 = _interopRequireDefault(_componentOrElement2); + var _newOffset = flipOffset(offset, 1); - var _deprecated2 = __webpack_require__(1278); + var _newTargetOffset = flipOffset(targetOffset, 1); - var _deprecated3 = _interopRequireDefault(_deprecated2); + var _newElFuturePos = getElFuturePos(elRegion, tgtRegion, _newPoints, _newOffset, _newTargetOffset); - var _elementType2 = __webpack_require__(1279); + if (!isCompleteFailY(_newElFuturePos, elRegion, visibleRect)) { + fail = 1; + points = _newPoints; + offset = _newOffset; + targetOffset = _newTargetOffset; + } + } + } // 如果失败,重新计算当前节点将要被放置的位置 - var _elementType3 = _interopRequireDefault(_elementType2); - var _isRequiredForA11y2 = __webpack_require__(1280); + if (fail) { + elFuturePos = getElFuturePos(elRegion, tgtRegion, points, offset, targetOffset); + utils.mix(newElRegion, elFuturePos); + } - var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2); + var isStillFailX = isFailX(elFuturePos, elRegion, visibleRect); + var isStillFailY = isFailY(elFuturePos, elRegion, visibleRect); // 检查反下后的位置是否可以放下了,如果仍然放不下: + // 1. 复原修改过的定位参数 - var _splitComponent2 = __webpack_require__(1281); + if (isStillFailX || isStillFailY) { + points = align.points; + offset = align.offset || [0, 0]; + targetOffset = align.targetOffset || [0, 0]; + } // 2. 只有指定了可以调整当前方向才调整 - var _splitComponent3 = _interopRequireDefault(_splitComponent2); - var _createChainedFunction2 = __webpack_require__(1282); + newOverflowCfg.adjustX = overflow.adjustX && isStillFailX; + newOverflowCfg.adjustY = overflow.adjustY && isStillFailY; // 确实要调整,甚至可能会调整高度宽度 - var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2); + if (newOverflowCfg.adjustX || newOverflowCfg.adjustY) { + newElRegion = adjustForViewport(elFuturePos, elRegion, visibleRect, newOverflowCfg); + } + } // need judge to in case set fixed with in css on height auto element - var _keyCode = __webpack_require__(1283); - var _keyCode2 = _interopRequireDefault(_keyCode); + if (newElRegion.width !== elRegion.width) { + utils.css(source, 'width', utils.width(source) + newElRegion.width - elRegion.width); + } - var _contains2 = __webpack_require__(1284); + if (newElRegion.height !== elRegion.height) { + utils.css(source, 'height', utils.height(source) + newElRegion.height - elRegion.height); + } // https://github.com/kissyteam/kissy/issues/190 + // 相对于屏幕位置没变,而 left/top 变了 + // 例如
    - var _contains3 = _interopRequireDefault(_contains2); - var _addEventListener2 = __webpack_require__(467); + utils.offset(source, { + left: newElRegion.left, + top: newElRegion.top + }, { + useCssRight: align.useCssRight, + useCssBottom: align.useCssBottom, + useCssTransform: align.useCssTransform, + ignoreShake: align.ignoreShake + }); + return { + points: points, + offset: offset, + targetOffset: targetOffset, + overflow: newOverflowCfg + }; + } + /** + * 2012-04-26 yiminghe@gmail.com + * - 优化智能对齐算法 + * - 慎用 resizeXX + * + * 2011-07-13 yiminghe@gmail.com note: + * - 增加智能对齐,以及大小调整选项 + **/ - var _addEventListener3 = _interopRequireDefault(_addEventListener2); + function isOutOfVisibleRect(target, alwaysByViewport) { + var visibleRect = getVisibleRectForElement(target, alwaysByViewport); + var targetRegion = getRegion(target); + return !visibleRect || targetRegion.left + targetRegion.width <= visibleRect.left || targetRegion.top + targetRegion.height <= visibleRect.top || targetRegion.left >= visibleRect.right || targetRegion.top >= visibleRect.bottom; + } - var _cssAnimation2 = __webpack_require__(1285); + function alignElement(el, refNode, align) { + var target = align.target || refNode; + var refNodeRegion = getRegion(target); + var isTargetNotOutOfVisible = !isOutOfVisibleRect(target, align.overflow && align.overflow.alwaysByViewport); + return doAlign(el, refNodeRegion, align, isTargetNotOutOfVisible); + } - var _cssAnimation3 = _interopRequireDefault(_cssAnimation2); + alignElement.__getOffsetParent = getOffsetParent; + alignElement.__getVisibleRectForElement = getVisibleRectForElement; - var _toArray2 = __webpack_require__(1287); + /** + * `tgtPoint`: { pageX, pageY } or { clientX, clientY }. + * If client position provided, will internal convert to page position. + */ - var _toArray3 = _interopRequireDefault(_toArray2); + function alignPoint(el, tgtPoint, align) { + var pageX; + var pageY; + var doc = utils.getDocument(el); + var win = doc.defaultView || doc.parentWindow; + var scrollX = utils.getWindowScrollLeft(win); + var scrollY = utils.getWindowScrollTop(win); + var viewportWidth = utils.viewportWidth(win); + var viewportHeight = utils.viewportHeight(win); - var _Align2 = __webpack_require__(1288); + if ('pageX' in tgtPoint) { + pageX = tgtPoint.pageX; + } else { + pageX = scrollX + tgtPoint.clientX; + } - var _Align3 = _interopRequireDefault(_Align2); + if ('pageY' in tgtPoint) { + pageY = tgtPoint.pageY; + } else { + pageY = scrollY + tgtPoint.clientY; + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + var tgtRegion = { + left: pageX, + top: pageY, + width: 0, + height: 0 + }; + var pointInView = pageX >= 0 && pageX <= scrollX + viewportWidth && pageY >= 0 && pageY <= scrollY + viewportHeight; // Provide default target point - exports.all = _all3.default; - exports.componentOrElement = _componentOrElement3.default; - exports.deprecated = _deprecated3.default; - exports.elementType = _elementType3.default; - exports.isRequiredForA11y = _isRequiredForA11y3.default; - exports.splitComponent = _splitComponent3.default; - exports.createChainedFunction = _createChainedFunction3.default; - exports.KeyCode = _keyCode2.default; - exports.contains = _contains3.default; - exports.addEventListener = _addEventListener3.default; - exports.cssAnimation = _cssAnimation3.default; - exports.toArray = _toArray3.default; - //export getContainerRenderMixin from './getContainerRenderMixin'; + var points = [align.points[0], 'cc']; + return doAlign(el, tgtRegion, _objectSpread2({}, align, { + points: points + }), pointInView); + } + + /* harmony default export */ __webpack_exports__["default"] = (alignElement); + + //# sourceMappingURL=index.js.map - exports.Align = _Align3.default; /***/ }), - /* 80 */ + /* 19 */ + /***/ (function(module, exports) { + + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + "default": obj + }; + } + + module.exports = _interopRequireDefault; + + /***/ }), + /* 20 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -113692,535 +100736,1333 @@ value: true }); - var _react = __webpack_require__(0); - - var _react2 = _interopRequireDefault(_react); + var _required = __webpack_require__(222); - var _reactDom = __webpack_require__(3); + var _required2 = _interopRequireDefault(_required); - var _reactDom2 = _interopRequireDefault(_reactDom); + var _whitespace = __webpack_require__(617); - var _propTypes = __webpack_require__(1); + var _whitespace2 = _interopRequireDefault(_whitespace); - var _propTypes2 = _interopRequireDefault(_propTypes); + var _type = __webpack_require__(618); - var _reactLifecyclesCompat = __webpack_require__(14); + var _type2 = _interopRequireDefault(_type); - var _createChainedFunction = __webpack_require__(296); + var _range = __webpack_require__(619); - var _createChainedFunction2 = _interopRequireDefault(_createChainedFunction); + var _range2 = _interopRequireDefault(_range); - var _KeyCode = __webpack_require__(59); + var _enum = __webpack_require__(620); - var _KeyCode2 = _interopRequireDefault(_KeyCode); + var _enum2 = _interopRequireDefault(_enum); - var _placements = __webpack_require__(1291); + var _pattern = __webpack_require__(621); - var _placements2 = _interopRequireDefault(_placements); + var _pattern2 = _interopRequireDefault(_pattern); - var _rcTrigger = __webpack_require__(73); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - var _rcTrigger2 = _interopRequireDefault(_rcTrigger); + exports['default'] = { + required: _required2['default'], + whitespace: _whitespace2['default'], + type: _type2['default'], + range: _range2['default'], + 'enum': _enum2['default'], + pattern: _pattern2['default'] + }; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + /***/ }), + /* 21 */ + /***/ (function(module, exports, __webpack_require__) { - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + /* WEBPACK VAR INJECTION */(function(global, module) {/** + * Lodash (Custom Build) + * Build: `lodash modularize exports="npm" -o ./` + * Copyright JS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */ - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + /** Used as the size to enable large array optimizations. */ + var LARGE_ARRAY_SIZE = 200; - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + /** Used to stand-in for `undefined` hash values. */ + var HASH_UNDEFINED = '__lodash_hash_undefined__'; - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + /** Used to compose bitmasks for value comparisons. */ + var COMPARE_PARTIAL_FLAG = 1, + COMPARE_UNORDERED_FLAG = 2; - function noop() {} + /** Used as references for various `Number` constants. */ + var MAX_SAFE_INTEGER = 9007199254740991; - function refFn(field, component) { - this[field] = component; - } + /** `Object#toString` result references. */ + var argsTag = '[object Arguments]', + arrayTag = '[object Array]', + asyncTag = '[object AsyncFunction]', + boolTag = '[object Boolean]', + dateTag = '[object Date]', + errorTag = '[object Error]', + funcTag = '[object Function]', + genTag = '[object GeneratorFunction]', + mapTag = '[object Map]', + numberTag = '[object Number]', + nullTag = '[object Null]', + objectTag = '[object Object]', + promiseTag = '[object Promise]', + proxyTag = '[object Proxy]', + regexpTag = '[object RegExp]', + setTag = '[object Set]', + stringTag = '[object String]', + symbolTag = '[object Symbol]', + undefinedTag = '[object Undefined]', + weakMapTag = '[object WeakMap]'; - var Picker = function (_React$Component) { - _inherits(Picker, _React$Component); + var arrayBufferTag = '[object ArrayBuffer]', + dataViewTag = '[object DataView]', + float32Tag = '[object Float32Array]', + float64Tag = '[object Float64Array]', + int8Tag = '[object Int8Array]', + int16Tag = '[object Int16Array]', + int32Tag = '[object Int32Array]', + uint8Tag = '[object Uint8Array]', + uint8ClampedTag = '[object Uint8ClampedArray]', + uint16Tag = '[object Uint16Array]', + uint32Tag = '[object Uint32Array]'; - function Picker(props) { - _classCallCheck(this, Picker); + /** + * Used to match `RegExp` + * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). + */ + var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); + /** Used to detect host constructors (Safari). */ + var reIsHostCtor = /^\[object .+?Constructor\]$/; - _initialiseProps.call(_this); + /** Used to detect unsigned integer values. */ + var reIsUint = /^(?:0|[1-9]\d*)$/; - var open = void 0; - if ('open' in props) { - open = props.open; - } else { - open = props.defaultOpen; - } - var value = props.value || props.defaultValue; - _this.saveCalendarRef = refFn.bind(_this, 'calendarInstance'); + /** Used to identify `toStringTag` values of typed arrays. */ + var typedArrayTags = {}; + typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = + typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = + typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = + typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = + typedArrayTags[uint32Tag] = true; + typedArrayTags[argsTag] = typedArrayTags[arrayTag] = + typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = + typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = + typedArrayTags[errorTag] = typedArrayTags[funcTag] = + typedArrayTags[mapTag] = typedArrayTags[numberTag] = + typedArrayTags[objectTag] = typedArrayTags[regexpTag] = + typedArrayTags[setTag] = typedArrayTags[stringTag] = + typedArrayTags[weakMapTag] = false; - _this.state = { - open: open, - value: value - }; - return _this; - } + /** Detect free variable `global` from Node.js. */ + var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; - Picker.prototype.componentDidUpdate = function componentDidUpdate(_, prevState) { - if (!prevState.open && this.state.open) { - // setTimeout is for making sure saveCalendarRef happen before focusCalendar - this.focusTimeout = setTimeout(this.focusCalendar, 0, this); - } - }; + /** Detect free variable `self`. */ + var freeSelf = typeof self == 'object' && self && self.Object === Object && self; - Picker.prototype.componentWillUnmount = function componentWillUnmount() { - clearTimeout(this.focusTimeout); - }; + /** Used as a reference to the global object. */ + var root = freeGlobal || freeSelf || Function('return this')(); - Picker.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps) { - var newState = {}; - var value = nextProps.value, - open = nextProps.open; + /** Detect free variable `exports`. */ + var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; - if ('value' in nextProps) { - newState.value = value; - } - if (open !== undefined) { - newState.open = open; - } - return newState; - }; + /** Detect free variable `module`. */ + var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; - Picker.prototype.render = function render() { - var props = this.props; - var prefixCls = props.prefixCls, - placement = props.placement, - style = props.style, - getCalendarContainer = props.getCalendarContainer, - align = props.align, - animation = props.animation, - disabled = props.disabled, - dropdownClassName = props.dropdownClassName, - transitionName = props.transitionName, - children = props.children; + /** Detect the popular CommonJS extension `module.exports`. */ + var moduleExports = freeModule && freeModule.exports === freeExports; - var state = this.state; - return _react2["default"].createElement( - _rcTrigger2["default"], - { - popup: this.getCalendarElement(), - popupAlign: align, - builtinPlacements: _placements2["default"], - popupPlacement: placement, - action: disabled && !state.open ? [] : ['click'], - destroyPopupOnHide: true, - getPopupContainer: getCalendarContainer, - popupStyle: style, - popupAnimation: animation, - popupTransitionName: transitionName, - popupVisible: state.open, - onPopupVisibleChange: this.onVisibleChange, - prefixCls: prefixCls, - popupClassName: dropdownClassName - }, - _react2["default"].cloneElement(children(state, props), { onKeyDown: this.onKeyDown }) - ); - }; + /** Detect free variable `process` from Node.js. */ + var freeProcess = moduleExports && freeGlobal.process; - return Picker; - }(_react2["default"].Component); + /** Used to access faster Node.js helpers. */ + var nodeUtil = (function() { + try { + return freeProcess && freeProcess.binding && freeProcess.binding('util'); + } catch (e) {} + }()); - Picker.propTypes = { - animation: _propTypes2["default"].oneOfType([_propTypes2["default"].func, _propTypes2["default"].string]), - disabled: _propTypes2["default"].bool, - transitionName: _propTypes2["default"].string, - onChange: _propTypes2["default"].func, - onOpenChange: _propTypes2["default"].func, - children: _propTypes2["default"].func, - getCalendarContainer: _propTypes2["default"].func, - calendar: _propTypes2["default"].element, - style: _propTypes2["default"].object, - open: _propTypes2["default"].bool, - defaultOpen: _propTypes2["default"].bool, - prefixCls: _propTypes2["default"].string, - placement: _propTypes2["default"].any, - value: _propTypes2["default"].oneOfType([_propTypes2["default"].object, _propTypes2["default"].array]), - defaultValue: _propTypes2["default"].oneOfType([_propTypes2["default"].object, _propTypes2["default"].array]), - align: _propTypes2["default"].object, - enterKeyDown: _propTypes2["default"].bool //enter 键是否打开日期面板 - }; - Picker.defaultProps = { - prefixCls: 'rc-calendar-picker', - style: {}, - align: {}, - placement: 'bottomLeft', - defaultOpen: false, - onChange: noop, - onOpenChange: noop, - enterKeyDown: true - }; + /* Node.js helper references. */ + var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; - var _initialiseProps = function _initialiseProps() { - var _this2 = this; + /** + * A specialized version of `_.filter` for arrays without support for + * iteratee shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} predicate The function invoked per iteration. + * @returns {Array} Returns the new filtered array. + */ + function arrayFilter(array, predicate) { + var index = -1, + length = array == null ? 0 : array.length, + resIndex = 0, + result = []; - this.onCalendarKeyDown = function (event) { - if (event.keyCode === _KeyCode2["default"].ESC) { - event.stopPropagation(); - _this2.close(_this2.focus); + while (++index < length) { + var value = array[index]; + if (predicate(value, index, array)) { + result[resIndex++] = value; } - _this2.props.onKeyDown && _this2.props.onKeyDown(event); - }; + } + return result; + } - this.onCalendarSelect = function (value) { - var cause = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + /** + * Appends the elements of `values` to `array`. + * + * @private + * @param {Array} array The array to modify. + * @param {Array} values The values to append. + * @returns {Array} Returns `array`. + */ + function arrayPush(array, values) { + var index = -1, + length = values.length, + offset = array.length; - var props = _this2.props; - var isDisabled = props.disabledDate && props.disabledDate(value); - if (isDisabled) return; - if (!('value' in props)) { - _this2.setState({ - value: value - }); - } - if (cause.source === 'keyboard' || cause.source === 'dateInputSelect' || !props.calendar.props.timePicker && cause.source !== 'dateInput' || cause.source === 'todayButton') { - _this2.close(_this2.focus); - } - props.onChange(value); - }; + while (++index < length) { + array[offset + index] = values[index]; + } + return array; + } - this.onKeyDown = function (event) { - var enterKeyDown = _this2.props.enterKeyDown; + /** + * A specialized version of `_.some` for arrays without support for iteratee + * shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} predicate The function invoked per iteration. + * @returns {boolean} Returns `true` if any element passes the predicate check, + * else `false`. + */ + function arraySome(array, predicate) { + var index = -1, + length = array == null ? 0 : array.length; - if (event.keyCode === _KeyCode2["default"].DOWN || enterKeyDown && event.keyCode === _KeyCode2["default"].ENTER) { - if (!_this2.state.open) _this2.open(); - event.preventDefault(); + while (++index < length) { + if (predicate(array[index], index, array)) { + return true; } - _this2.props.onKeyDown && _this2.props.onKeyDown(event); - }; - - this.onCalendarOk = function () { - _this2.close(_this2.focus); - }; - - this.onCalendarClear = function () { - _this2.close(_this2.focus); - }; - - this.onVisibleChange = function (open) { - _this2.setOpen(open); - }; + } + return false; + } - this.getCalendarElement = function () { - var props = _this2.props; - var state = _this2.state; - var calendarProps = props.calendar.props; - var value = state.value; + /** + * The base implementation of `_.times` without support for iteratee shorthands + * or max array length checks. + * + * @private + * @param {number} n The number of times to invoke `iteratee`. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns the array of results. + */ + function baseTimes(n, iteratee) { + var index = -1, + result = Array(n); - var defaultValue = value; - var extraProps = { - ref: _this2.saveCalendarRef, - defaultValue: defaultValue || calendarProps.defaultValue, - selectedValue: value, - onKeyDown: _this2.onCalendarKeyDown, - onOk: (0, _createChainedFunction2["default"])(calendarProps.onOk, _this2.onCalendarOk), - onSelect: (0, _createChainedFunction2["default"])(calendarProps.onSelect, _this2.onCalendarSelect), - onClear: (0, _createChainedFunction2["default"])(calendarProps.onClear, _this2.onCalendarClear) - }; + while (++index < n) { + result[index] = iteratee(index); + } + return result; + } - return _react2["default"].cloneElement(props.calendar, extraProps); + /** + * The base implementation of `_.unary` without support for storing metadata. + * + * @private + * @param {Function} func The function to cap arguments for. + * @returns {Function} Returns the new capped function. + */ + function baseUnary(func) { + return function(value) { + return func(value); }; + } - this.setOpen = function (open, callback) { - var onOpenChange = _this2.props.onOpenChange; - - if (_this2.state.open !== open) { - if (!('open' in _this2.props)) { - _this2.setState({ - open: open - }, callback); - } - onOpenChange(open); - } - }; + /** + * Checks if a `cache` value for `key` exists. + * + * @private + * @param {Object} cache The cache to query. + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ + function cacheHas(cache, key) { + return cache.has(key); + } - this.open = function (callback) { - _this2.setOpen(true, callback); - }; + /** + * Gets the value at `key` of `object`. + * + * @private + * @param {Object} [object] The object to query. + * @param {string} key The key of the property to get. + * @returns {*} Returns the property value. + */ + function getValue(object, key) { + return object == null ? undefined : object[key]; + } - this.close = function (callback) { - _this2.setOpen(false, callback); - }; + /** + * Converts `map` to its key-value pairs. + * + * @private + * @param {Object} map The map to convert. + * @returns {Array} Returns the key-value pairs. + */ + function mapToArray(map) { + var index = -1, + result = Array(map.size); - this.focus = function () { - if (!_this2.state.open) { - _reactDom2["default"].findDOMNode(_this2).focus(); - } - }; + map.forEach(function(value, key) { + result[++index] = [key, value]; + }); + return result; + } - this.focusCalendar = function () { - if (_this2.state.open && !!_this2.calendarInstance) { - _this2.calendarInstance.focus(); - } + /** + * Creates a unary function that invokes `func` with its argument transformed. + * + * @private + * @param {Function} func The function to wrap. + * @param {Function} transform The argument transform. + * @returns {Function} Returns the new function. + */ + function overArg(func, transform) { + return function(arg) { + return func(transform(arg)); }; - }; + } - (0, _reactLifecyclesCompat.polyfill)(Picker); + /** + * Converts `set` to an array of its values. + * + * @private + * @param {Object} set The set to convert. + * @returns {Array} Returns the values. + */ + function setToArray(set) { + var index = -1, + result = Array(set.size); - exports["default"] = Picker; - module.exports = exports['default']; + set.forEach(function(value) { + result[++index] = value; + }); + return result; + } - /***/ }), - /* 81 */ - /***/ (function(module, exports, __webpack_require__) { + /** Used for built-in method references. */ + var arrayProto = Array.prototype, + funcProto = Function.prototype, + objectProto = Object.prototype; - "use strict"; + /** Used to detect overreaching core-js shims. */ + var coreJsData = root['__core-js_shared__']; + /** Used to resolve the decompiled source of functions. */ + var funcToString = funcProto.toString; - Object.defineProperty(exports, "__esModule", { - value: true - }); + /** Used to check objects for own properties. */ + var hasOwnProperty = objectProto.hasOwnProperty; - var _FormControl = __webpack_require__(1292); + /** Used to detect methods masquerading as native. */ + var maskSrcKey = (function() { + var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); + return uid ? ('Symbol(src)_1.' + uid) : ''; + }()); - var _FormControl2 = _interopRequireDefault(_FormControl); + /** + * Used to resolve the + * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) + * of values. + */ + var nativeObjectToString = objectProto.toString; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + /** Used to detect if a method is native. */ + var reIsNative = RegExp('^' + + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') + .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' + ); - exports["default"] = _FormControl2["default"]; - module.exports = exports['default']; + /** Built-in value references. */ + var Buffer = moduleExports ? root.Buffer : undefined, + Symbol = root.Symbol, + Uint8Array = root.Uint8Array, + propertyIsEnumerable = objectProto.propertyIsEnumerable, + splice = arrayProto.splice, + symToStringTag = Symbol ? Symbol.toStringTag : undefined; - /***/ }), - /* 82 */ - /***/ (function(module, exports, __webpack_require__) { + /* Built-in method references for those with the same name as other `lodash` methods. */ + var nativeGetSymbols = Object.getOwnPropertySymbols, + nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined, + nativeKeys = overArg(Object.keys, Object); - "use strict"; + /* Built-in method references that are verified to be native. */ + var DataView = getNative(root, 'DataView'), + Map = getNative(root, 'Map'), + Promise = getNative(root, 'Promise'), + Set = getNative(root, 'Set'), + WeakMap = getNative(root, 'WeakMap'), + nativeCreate = getNative(Object, 'create'); + /** Used to detect maps, sets, and weakmaps. */ + var dataViewCtorString = toSource(DataView), + mapCtorString = toSource(Map), + promiseCtorString = toSource(Promise), + setCtorString = toSource(Set), + weakMapCtorString = toSource(WeakMap); - module.exports = __webpack_require__(1296); + /** Used to convert symbols to primitives and strings. */ + var symbolProto = Symbol ? Symbol.prototype : undefined, + symbolValueOf = symbolProto ? symbolProto.valueOf : undefined; - /***/ }), - /* 83 */ - /***/ (function(module, exports, __webpack_require__) { + /** + * Creates a hash object. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ + function Hash(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; - "use strict"; + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } + } + /** + * Removes all key-value entries from the hash. + * + * @private + * @name clear + * @memberOf Hash + */ + function hashClear() { + this.__data__ = nativeCreate ? nativeCreate(null) : {}; + this.size = 0; + } - Object.defineProperty(exports, "__esModule", { - value: true - }); + /** + * Removes `key` and its value from the hash. + * + * @private + * @name delete + * @memberOf Hash + * @param {Object} hash The hash to modify. + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ + function hashDelete(key) { + var result = this.has(key) && delete this.__data__[key]; + this.size -= result ? 1 : 0; + return result; + } - var _Icon = __webpack_require__(1350); + /** + * Gets the hash value for `key`. + * + * @private + * @name get + * @memberOf Hash + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ + function hashGet(key) { + var data = this.__data__; + if (nativeCreate) { + var result = data[key]; + return result === HASH_UNDEFINED ? undefined : result; + } + return hasOwnProperty.call(data, key) ? data[key] : undefined; + } - var _Icon2 = _interopRequireDefault(_Icon); + /** + * Checks if a hash value for `key` exists. + * + * @private + * @name has + * @memberOf Hash + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ + function hashHas(key) { + var data = this.__data__; + return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key); + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + /** + * Sets the hash `key` to `value`. + * + * @private + * @name set + * @memberOf Hash + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the hash instance. + */ + function hashSet(key, value) { + var data = this.__data__; + this.size += this.has(key) ? 0 : 1; + data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; + return this; + } - exports["default"] = _Icon2["default"]; - module.exports = exports['default']; + // Add methods to `Hash`. + Hash.prototype.clear = hashClear; + Hash.prototype['delete'] = hashDelete; + Hash.prototype.get = hashGet; + Hash.prototype.has = hashHas; + Hash.prototype.set = hashSet; - /***/ }), - /* 84 */ - /***/ (function(module, exports, __webpack_require__) { + /** + * Creates an list cache object. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ + function ListCache(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; - "use strict"; + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } + } + /** + * Removes all key-value entries from the list cache. + * + * @private + * @name clear + * @memberOf ListCache + */ + function listCacheClear() { + this.__data__ = []; + this.size = 0; + } - exports.__esModule = true; - exports.default = void 0; + /** + * Removes `key` and its value from the list cache. + * + * @private + * @name delete + * @memberOf ListCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ + function listCacheDelete(key) { + var data = this.__data__, + index = assocIndexOf(data, key); - var _default = !!(typeof window !== 'undefined' && window.document && window.document.createElement); + if (index < 0) { + return false; + } + var lastIndex = data.length - 1; + if (index == lastIndex) { + data.pop(); + } else { + splice.call(data, index, 1); + } + --this.size; + return true; + } - exports.default = _default; - module.exports = exports["default"]; + /** + * Gets the list cache value for `key`. + * + * @private + * @name get + * @memberOf ListCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ + function listCacheGet(key) { + var data = this.__data__, + index = assocIndexOf(data, key); - /***/ }), - /* 85 */ - /***/ (function(module, exports, __webpack_require__) { + return index < 0 ? undefined : data[index][1]; + } - "use strict"; + /** + * Checks if a list cache value for `key` exists. + * + * @private + * @name has + * @memberOf ListCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ + function listCacheHas(key) { + return assocIndexOf(this.__data__, key) > -1; + } + /** + * Sets the list cache `key` to `value`. + * + * @private + * @name set + * @memberOf ListCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the list cache instance. + */ + function listCacheSet(key, value) { + var data = this.__data__, + index = assocIndexOf(data, key); - Object.defineProperty(exports, "__esModule", { - value: true - }); + if (index < 0) { + ++this.size; + data.push([key, value]); + } else { + data[index][1] = value; + } + return this; + } - var _Icon = __webpack_require__(1579); + // Add methods to `ListCache`. + ListCache.prototype.clear = listCacheClear; + ListCache.prototype['delete'] = listCacheDelete; + ListCache.prototype.get = listCacheGet; + ListCache.prototype.has = listCacheHas; + ListCache.prototype.set = listCacheSet; - var _Icon2 = _interopRequireDefault(_Icon); + /** + * Creates a map cache object to store key-value pairs. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ + function MapCache(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } + } - exports["default"] = _Icon2["default"]; - module.exports = exports['default']; + /** + * Removes all key-value entries from the map. + * + * @private + * @name clear + * @memberOf MapCache + */ + function mapCacheClear() { + this.size = 0; + this.__data__ = { + 'hash': new Hash, + 'map': new (Map || ListCache), + 'string': new Hash + }; + } - /***/ }), - /* 86 */ - /***/ (function(module, exports, __webpack_require__) { + /** + * Removes `key` and its value from the map. + * + * @private + * @name delete + * @memberOf MapCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ + function mapCacheDelete(key) { + var result = getMapData(this, key)['delete'](key); + this.size -= result ? 1 : 0; + return result; + } - "use strict"; + /** + * Gets the map value for `key`. + * + * @private + * @name get + * @memberOf MapCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ + function mapCacheGet(key) { + return getMapData(this, key).get(key); + } + /** + * Checks if a map value for `key` exists. + * + * @private + * @name has + * @memberOf MapCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ + function mapCacheHas(key) { + return getMapData(this, key).has(key); + } - exports.__esModule = true; + /** + * Sets the map `key` to `value`. + * + * @private + * @name set + * @memberOf MapCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the map cache instance. + */ + function mapCacheSet(key, value) { + var data = getMapData(this, key), + size = data.size; - var _defineProperty = __webpack_require__(215); + data.set(key, value); + this.size += data.size == size ? 0 : 1; + return this; + } - var _defineProperty2 = _interopRequireDefault(_defineProperty); + // Add methods to `MapCache`. + MapCache.prototype.clear = mapCacheClear; + MapCache.prototype['delete'] = mapCacheDelete; + MapCache.prototype.get = mapCacheGet; + MapCache.prototype.has = mapCacheHas; + MapCache.prototype.set = mapCacheSet; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + /** + * + * Creates an array cache object to store unique values. + * + * @private + * @constructor + * @param {Array} [values] The values to cache. + */ + function SetCache(values) { + var index = -1, + length = values == null ? 0 : values.length; - exports.default = function (obj, key, value) { - if (key in obj) { - (0, _defineProperty2.default)(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; + this.__data__ = new MapCache; + while (++index < length) { + this.add(values[index]); } + } - return obj; - }; + /** + * Adds `value` to the array cache. + * + * @private + * @name add + * @memberOf SetCache + * @alias push + * @param {*} value The value to cache. + * @returns {Object} Returns the cache instance. + */ + function setCacheAdd(value) { + this.__data__.set(value, HASH_UNDEFINED); + return this; + } - /***/ }), - /* 87 */ - /***/ (function(module, exports) { + /** + * Checks if `value` is in the array cache. + * + * @private + * @name has + * @memberOf SetCache + * @param {*} value The value to search for. + * @returns {number} Returns `true` if `value` is found, else `false`. + */ + function setCacheHas(value) { + return this.__data__.has(value); + } - module.exports = true; + // Add methods to `SetCache`. + SetCache.prototype.add = SetCache.prototype.push = setCacheAdd; + SetCache.prototype.has = setCacheHas; + /** + * Creates a stack cache object to store key-value pairs. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ + function Stack(entries) { + var data = this.__data__ = new ListCache(entries); + this.size = data.size; + } - /***/ }), - /* 88 */ - /***/ (function(module, exports) { + /** + * Removes all key-value entries from the stack. + * + * @private + * @name clear + * @memberOf Stack + */ + function stackClear() { + this.__data__ = new ListCache; + this.size = 0; + } - var id = 0; - var px = Math.random(); - module.exports = function (key) { - return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); - }; + /** + * Removes `key` and its value from the stack. + * + * @private + * @name delete + * @memberOf Stack + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ + function stackDelete(key) { + var data = this.__data__, + result = data['delete'](key); + this.size = data.size; + return result; + } - /***/ }), - /* 89 */ - /***/ (function(module, exports) { + /** + * Gets the stack value for `key`. + * + * @private + * @name get + * @memberOf Stack + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ + function stackGet(key) { + return this.__data__.get(key); + } - exports.f = {}.propertyIsEnumerable; + /** + * Checks if a stack value for `key` exists. + * + * @private + * @name has + * @memberOf Stack + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ + function stackHas(key) { + return this.__data__.has(key); + } + /** + * Sets the stack `key` to `value`. + * + * @private + * @name set + * @memberOf Stack + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the stack cache instance. + */ + function stackSet(key, value) { + var data = this.__data__; + if (data instanceof ListCache) { + var pairs = data.__data__; + if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) { + pairs.push([key, value]); + this.size = ++data.size; + return this; + } + data = this.__data__ = new MapCache(pairs); + } + data.set(key, value); + this.size = data.size; + return this; + } - /***/ }), - /* 90 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + // Add methods to `Stack`. + Stack.prototype.clear = stackClear; + Stack.prototype['delete'] = stackDelete; + Stack.prototype.get = stackGet; + Stack.prototype.has = stackHas; + Stack.prototype.set = stackSet; - "use strict"; - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); + /** + * Creates an array of the enumerable property names of the array-like `value`. + * + * @private + * @param {*} value The value to query. + * @param {boolean} inherited Specify returning inherited property names. + * @returns {Array} Returns the array of property names. + */ + function arrayLikeKeys(value, inherited) { + var isArr = isArray(value), + isArg = !isArr && isArguments(value), + isBuff = !isArr && !isArg && isBuffer(value), + isType = !isArr && !isArg && !isBuff && isTypedArray(value), + skipIndexes = isArr || isArg || isBuff || isType, + result = skipIndexes ? baseTimes(value.length, String) : [], + length = result.length; + for (var key in value) { + if ((inherited || hasOwnProperty.call(value, key)) && + !(skipIndexes && ( + // Safari 9 has enumerable `arguments.length` in strict mode. + key == 'length' || + // Node.js 0.10 has enumerable non-index properties on buffers. + (isBuff && (key == 'offset' || key == 'parent')) || + // PhantomJS 2 has enumerable non-index properties on typed arrays. + (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) || + // Skip index properties. + isIndex(key, length) + ))) { + result.push(key); + } + } + return result; + } - var unsafeLifecyclesPolyfill = function unsafeLifecyclesPolyfill(Component) { - var prototype = Component.prototype; + /** + * Gets the index at which the `key` is found in `array` of key-value pairs. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} key The key to search for. + * @returns {number} Returns the index of the matched value, else `-1`. + */ + function assocIndexOf(array, key) { + var length = array.length; + while (length--) { + if (eq(array[length][0], key)) { + return length; + } + } + return -1; + } - if (!prototype || !prototype.isReactComponent) { - throw new Error('Can only polyfill class components'); - } // only handle componentWillReceiveProps + /** + * The base implementation of `getAllKeys` and `getAllKeysIn` which uses + * `keysFunc` and `symbolsFunc` to get the enumerable property names and + * symbols of `object`. + * + * @private + * @param {Object} object The object to query. + * @param {Function} keysFunc The function to get the keys of `object`. + * @param {Function} symbolsFunc The function to get the symbols of `object`. + * @returns {Array} Returns the array of property names and symbols. + */ + function baseGetAllKeys(object, keysFunc, symbolsFunc) { + var result = keysFunc(object); + return isArray(object) ? result : arrayPush(result, symbolsFunc(object)); + } + /** + * The base implementation of `getTag` without fallbacks for buggy environments. + * + * @private + * @param {*} value The value to query. + * @returns {string} Returns the `toStringTag`. + */ + function baseGetTag(value) { + if (value == null) { + return value === undefined ? undefinedTag : nullTag; + } + return (symToStringTag && symToStringTag in Object(value)) + ? getRawTag(value) + : objectToString(value); + } - if (typeof prototype.componentWillReceiveProps !== 'function') { - return Component; - } // In React 16.9, React.Profiler was introduced together with UNSAFE_componentWillReceiveProps - // https://reactjs.org/blog/2019/08/08/react-v16.9.0.html#performance-measurements-with-reactprofiler + /** + * The base implementation of `_.isArguments`. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an `arguments` object, + */ + function baseIsArguments(value) { + return isObjectLike(value) && baseGetTag(value) == argsTag; + } + /** + * The base implementation of `_.isEqual` which supports partial comparisons + * and tracks traversed objects. + * + * @private + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @param {boolean} bitmask The bitmask flags. + * 1 - Unordered comparison + * 2 - Partial comparison + * @param {Function} [customizer] The function to customize comparisons. + * @param {Object} [stack] Tracks traversed `value` and `other` objects. + * @returns {boolean} Returns `true` if the values are equivalent, else `false`. + */ + function baseIsEqual(value, other, bitmask, customizer, stack) { + if (value === other) { + return true; + } + if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) { + return value !== value && other !== other; + } + return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack); + } - if (!__WEBPACK_IMPORTED_MODULE_0_react___default.a.Profiler) { - return Component; - } // Here polyfill get started + /** + * A specialized version of `baseIsEqual` for arrays and objects which performs + * deep comparisons and tracks traversed objects enabling objects with circular + * references to be compared. + * + * @private + * @param {Object} object The object to compare. + * @param {Object} other The other object to compare. + * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. + * @param {Function} customizer The function to customize comparisons. + * @param {Function} equalFunc The function to determine equivalents of values. + * @param {Object} [stack] Tracks traversed `object` and `other` objects. + * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. + */ + function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) { + var objIsArr = isArray(object), + othIsArr = isArray(other), + objTag = objIsArr ? arrayTag : getTag(object), + othTag = othIsArr ? arrayTag : getTag(other); + objTag = objTag == argsTag ? objectTag : objTag; + othTag = othTag == argsTag ? objectTag : othTag; - prototype.UNSAFE_componentWillReceiveProps = prototype.componentWillReceiveProps; - delete prototype.componentWillReceiveProps; - return Component; - }; + var objIsObj = objTag == objectTag, + othIsObj = othTag == objectTag, + isSameTag = objTag == othTag; - /* harmony default export */ __webpack_exports__["a"] = (unsafeLifecyclesPolyfill); + if (isSameTag && isBuffer(object)) { + if (!isBuffer(other)) { + return false; + } + objIsArr = true; + objIsObj = false; + } + if (isSameTag && !objIsObj) { + stack || (stack = new Stack); + return (objIsArr || isTypedArray(object)) + ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) + : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack); + } + if (!(bitmask & COMPARE_PARTIAL_FLAG)) { + var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'), + othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__'); - /***/ }), - /* 91 */ - /***/ (function(module, exports, __webpack_require__) { + if (objIsWrapped || othIsWrapped) { + var objUnwrapped = objIsWrapped ? object.value() : object, + othUnwrapped = othIsWrapped ? other.value() : other; - var baseGetTag = __webpack_require__(228), - isObjectLike = __webpack_require__(635); + stack || (stack = new Stack); + return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack); + } + } + if (!isSameTag) { + return false; + } + stack || (stack = new Stack); + return equalObjects(object, other, bitmask, customizer, equalFunc, stack); + } - /** `Object#toString` result references. */ - var symbolTag = '[object Symbol]'; + /** + * The base implementation of `_.isNative` without bad shim checks. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a native function, + * else `false`. + */ + function baseIsNative(value) { + if (!isObject(value) || isMasked(value)) { + return false; + } + var pattern = isFunction(value) ? reIsNative : reIsHostCtor; + return pattern.test(toSource(value)); + } /** - * Checks if `value` is classified as a `Symbol` primitive or object. + * The base implementation of `_.isTypedArray` without Node.js optimizations. * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang + * @private * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. - * @example + * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. + */ + function baseIsTypedArray(value) { + return isObjectLike(value) && + isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; + } + + /** + * The base implementation of `_.keys` which doesn't treat sparse arrays as dense. * - * _.isSymbol(Symbol.iterator); - * // => true + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + */ + function baseKeys(object) { + if (!isPrototype(object)) { + return nativeKeys(object); + } + var result = []; + for (var key in Object(object)) { + if (hasOwnProperty.call(object, key) && key != 'constructor') { + result.push(key); + } + } + return result; + } + + /** + * A specialized version of `baseIsEqualDeep` for arrays with support for + * partial deep comparisons. * - * _.isSymbol('abc'); - * // => false + * @private + * @param {Array} array The array to compare. + * @param {Array} other The other array to compare. + * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. + * @param {Function} customizer The function to customize comparisons. + * @param {Function} equalFunc The function to determine equivalents of values. + * @param {Object} stack Tracks traversed `array` and `other` objects. + * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`. */ - function isSymbol(value) { - return typeof value == 'symbol' || - (isObjectLike(value) && baseGetTag(value) == symbolTag); + function equalArrays(array, other, bitmask, customizer, equalFunc, stack) { + var isPartial = bitmask & COMPARE_PARTIAL_FLAG, + arrLength = array.length, + othLength = other.length; + + if (arrLength != othLength && !(isPartial && othLength > arrLength)) { + return false; + } + // Assume cyclic values are equal. + var stacked = stack.get(array); + if (stacked && stack.get(other)) { + return stacked == other; + } + var index = -1, + result = true, + seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined; + + stack.set(array, other); + stack.set(other, array); + + // Ignore non-index properties. + while (++index < arrLength) { + var arrValue = array[index], + othValue = other[index]; + + if (customizer) { + var compared = isPartial + ? customizer(othValue, arrValue, index, other, array, stack) + : customizer(arrValue, othValue, index, array, other, stack); + } + if (compared !== undefined) { + if (compared) { + continue; + } + result = false; + break; + } + // Recursively compare arrays (susceptible to call stack limits). + if (seen) { + if (!arraySome(other, function(othValue, othIndex) { + if (!cacheHas(seen, othIndex) && + (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) { + return seen.push(othIndex); + } + })) { + result = false; + break; + } + } else if (!( + arrValue === othValue || + equalFunc(arrValue, othValue, bitmask, customizer, stack) + )) { + result = false; + break; + } + } + stack['delete'](array); + stack['delete'](other); + return result; } - module.exports = isSymbol; + /** + * A specialized version of `baseIsEqualDeep` for comparing objects of + * the same `toStringTag`. + * + * **Note:** This function only supports comparing values with tags of + * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`. + * + * @private + * @param {Object} object The object to compare. + * @param {Object} other The other object to compare. + * @param {string} tag The `toStringTag` of the objects to compare. + * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. + * @param {Function} customizer The function to customize comparisons. + * @param {Function} equalFunc The function to determine equivalents of values. + * @param {Object} stack Tracks traversed `object` and `other` objects. + * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. + */ + function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) { + switch (tag) { + case dataViewTag: + if ((object.byteLength != other.byteLength) || + (object.byteOffset != other.byteOffset)) { + return false; + } + object = object.buffer; + other = other.buffer; + case arrayBufferTag: + if ((object.byteLength != other.byteLength) || + !equalFunc(new Uint8Array(object), new Uint8Array(other))) { + return false; + } + return true; - /***/ }), - /* 92 */ - /***/ (function(module, exports, __webpack_require__) { + case boolTag: + case dateTag: + case numberTag: + // Coerce booleans to `1` or `0` and dates to milliseconds. + // Invalid dates are coerced to `NaN`. + return eq(+object, +other); - var getNative = __webpack_require__(133); + case errorTag: + return object.name == other.name && object.message == other.message; - /* Built-in method references that are verified to be native. */ - var nativeCreate = getNative(Object, 'create'); + case regexpTag: + case stringTag: + // Coerce regexes to strings and treat strings, primitives and objects, + // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring + // for more details. + return object == (other + ''); - module.exports = nativeCreate; + case mapTag: + var convert = mapToArray; + case setTag: + var isPartial = bitmask & COMPARE_PARTIAL_FLAG; + convert || (convert = setToArray); - /***/ }), - /* 93 */ - /***/ (function(module, exports, __webpack_require__) { + if (object.size != other.size && !isPartial) { + return false; + } + // Assume cyclic values are equal. + var stacked = stack.get(object); + if (stacked) { + return stacked == other; + } + bitmask |= COMPARE_UNORDERED_FLAG; - var eq = __webpack_require__(134); + // Recursively compare objects (susceptible to call stack limits). + stack.set(object, other); + var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack); + stack['delete'](object); + return result; + + case symbolTag: + if (symbolValueOf) { + return symbolValueOf.call(object) == symbolValueOf.call(other); + } + } + return false; + } + + /** + * A specialized version of `baseIsEqualDeep` for objects with support for + * partial deep comparisons. + * + * @private + * @param {Object} object The object to compare. + * @param {Object} other The other object to compare. + * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. + * @param {Function} customizer The function to customize comparisons. + * @param {Function} equalFunc The function to determine equivalents of values. + * @param {Object} stack Tracks traversed `object` and `other` objects. + * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. + */ + function equalObjects(object, other, bitmask, customizer, equalFunc, stack) { + var isPartial = bitmask & COMPARE_PARTIAL_FLAG, + objProps = getAllKeys(object), + objLength = objProps.length, + othProps = getAllKeys(other), + othLength = othProps.length; + + if (objLength != othLength && !isPartial) { + return false; + } + var index = objLength; + while (index--) { + var key = objProps[index]; + if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) { + return false; + } + } + // Assume cyclic values are equal. + var stacked = stack.get(object); + if (stacked && stack.get(other)) { + return stacked == other; + } + var result = true; + stack.set(object, other); + stack.set(other, object); + + var skipCtor = isPartial; + while (++index < objLength) { + key = objProps[index]; + var objValue = object[key], + othValue = other[key]; + + if (customizer) { + var compared = isPartial + ? customizer(othValue, objValue, key, other, object, stack) + : customizer(objValue, othValue, key, object, other, stack); + } + // Recursively compare objects (susceptible to call stack limits). + if (!(compared === undefined + ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack)) + : compared + )) { + result = false; + break; + } + skipCtor || (skipCtor = key == 'constructor'); + } + if (result && !skipCtor) { + var objCtor = object.constructor, + othCtor = other.constructor; + + // Non `Object` object instances with different constructors are not equal. + if (objCtor != othCtor && + ('constructor' in object && 'constructor' in other) && + !(typeof objCtor == 'function' && objCtor instanceof objCtor && + typeof othCtor == 'function' && othCtor instanceof othCtor)) { + result = false; + } + } + stack['delete'](object); + stack['delete'](other); + return result; + } /** - * Gets the index at which the `key` is found in `array` of key-value pairs. + * Creates an array of own enumerable property names and symbols of `object`. * * @private - * @param {Array} array The array to inspect. - * @param {*} key The key to search for. - * @returns {number} Returns the index of the matched value, else `-1`. + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names and symbols. */ - function assocIndexOf(array, key) { - var length = array.length; - while (length--) { - if (eq(array[length][0], key)) { - return length; - } - } - return -1; + function getAllKeys(object) { + return baseGetAllKeys(object, keys, getSymbols); } - module.exports = assocIndexOf; - - - /***/ }), - /* 94 */ - /***/ (function(module, exports, __webpack_require__) { - - var isKeyable = __webpack_require__(661); - /** * Gets the data for `map`. * @@ -114236,6931 +102078,7327 @@ : data.map; } - module.exports = getMapData; + /** + * Gets the native function at `key` of `object`. + * + * @private + * @param {Object} object The object to query. + * @param {string} key The key of the method to get. + * @returns {*} Returns the function if it's native, else `undefined`. + */ + function getNative(object, key) { + var value = getValue(object, key); + return baseIsNative(value) ? value : undefined; + } + /** + * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values. + * + * @private + * @param {*} value The value to query. + * @returns {string} Returns the raw `toStringTag`. + */ + function getRawTag(value) { + var isOwn = hasOwnProperty.call(value, symToStringTag), + tag = value[symToStringTag]; - /***/ }), - /* 95 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + try { + value[symToStringTag] = undefined; + var unmasked = true; + } catch (e) {} - "use strict"; - Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); - /* WEBPACK VAR INJECTION */(function(global) {/** - * A collection of shims that provide minimal functionality of the ES6 collections. + var result = nativeObjectToString.call(value); + if (unmasked) { + if (isOwn) { + value[symToStringTag] = tag; + } else { + delete value[symToStringTag]; + } + } + return result; + } + + /** + * Creates an array of the own enumerable symbols of `object`. * - * These implementations are not meant to be used outside of the ResizeObserver - * modules as they cover only a limited range of use cases. + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of symbols. */ - /* eslint-disable require-jsdoc, valid-jsdoc */ - var MapShim = (function () { - if (typeof Map !== 'undefined') { - return Map; - } - /** - * Returns index in provided array that matches the specified key. - * - * @param {Array} arr - * @param {*} key - * @returns {number} - */ - function getIndex(arr, key) { - var result = -1; - arr.some(function (entry, index) { - if (entry[0] === key) { - result = index; - return true; - } - return false; - }); - return result; - } - return /** @class */ (function () { - function class_1() { - this.__entries__ = []; - } - Object.defineProperty(class_1.prototype, "size", { - /** - * @returns {boolean} - */ - get: function () { - return this.__entries__.length; - }, - enumerable: true, - configurable: true - }); - /** - * @param {*} key - * @returns {*} - */ - class_1.prototype.get = function (key) { - var index = getIndex(this.__entries__, key); - var entry = this.__entries__[index]; - return entry && entry[1]; - }; - /** - * @param {*} key - * @param {*} value - * @returns {void} - */ - class_1.prototype.set = function (key, value) { - var index = getIndex(this.__entries__, key); - if (~index) { - this.__entries__[index][1] = value; - } - else { - this.__entries__.push([key, value]); - } - }; - /** - * @param {*} key - * @returns {void} - */ - class_1.prototype.delete = function (key) { - var entries = this.__entries__; - var index = getIndex(entries, key); - if (~index) { - entries.splice(index, 1); - } - }; - /** - * @param {*} key - * @returns {void} - */ - class_1.prototype.has = function (key) { - return !!~getIndex(this.__entries__, key); - }; - /** - * @returns {void} - */ - class_1.prototype.clear = function () { - this.__entries__.splice(0); - }; - /** - * @param {Function} callback - * @param {*} [ctx=null] - * @returns {void} - */ - class_1.prototype.forEach = function (callback, ctx) { - if (ctx === void 0) { ctx = null; } - for (var _i = 0, _a = this.__entries__; _i < _a.length; _i++) { - var entry = _a[_i]; - callback.call(ctx, entry[1], entry[0]); - } - }; - return class_1; - }()); - })(); + var getSymbols = !nativeGetSymbols ? stubArray : function(object) { + if (object == null) { + return []; + } + object = Object(object); + return arrayFilter(nativeGetSymbols(object), function(symbol) { + return propertyIsEnumerable.call(object, symbol); + }); + }; /** - * Detects whether window and document objects are available in current environment. + * Gets the `toStringTag` of `value`. + * + * @private + * @param {*} value The value to query. + * @returns {string} Returns the `toStringTag`. */ - var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && window.document === document; + var getTag = baseGetTag; - // Returns global object of a current environment. - var global$1 = (function () { - if (typeof global !== 'undefined' && global.Math === Math) { - return global; - } - if (typeof self !== 'undefined' && self.Math === Math) { - return self; - } - if (typeof window !== 'undefined' && window.Math === Math) { - return window; + // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6. + if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) || + (Map && getTag(new Map) != mapTag) || + (Promise && getTag(Promise.resolve()) != promiseTag) || + (Set && getTag(new Set) != setTag) || + (WeakMap && getTag(new WeakMap) != weakMapTag)) { + getTag = function(value) { + var result = baseGetTag(value), + Ctor = result == objectTag ? value.constructor : undefined, + ctorString = Ctor ? toSource(Ctor) : ''; + + if (ctorString) { + switch (ctorString) { + case dataViewCtorString: return dataViewTag; + case mapCtorString: return mapTag; + case promiseCtorString: return promiseTag; + case setCtorString: return setTag; + case weakMapCtorString: return weakMapTag; + } } - // eslint-disable-next-line no-new-func - return Function('return this')(); - })(); + return result; + }; + } /** - * A shim for the requestAnimationFrame which falls back to the setTimeout if - * first one is not supported. + * Checks if `value` is a valid array-like index. * - * @returns {number} Requests' identifier. + * @private + * @param {*} value The value to check. + * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index. + * @returns {boolean} Returns `true` if `value` is a valid index, else `false`. */ - var requestAnimationFrame$1 = (function () { - if (typeof requestAnimationFrame === 'function') { - // It's required to use a bounded function because IE sometimes throws - // an "Invalid calling object" error if rAF is invoked without the global - // object on the left hand side. - return requestAnimationFrame.bind(global$1); - } - return function (callback) { return setTimeout(function () { return callback(Date.now()); }, 1000 / 60); }; - })(); + function isIndex(value, length) { + length = length == null ? MAX_SAFE_INTEGER : length; + return !!length && + (typeof value == 'number' || reIsUint.test(value)) && + (value > -1 && value % 1 == 0 && value < length); + } - // Defines minimum timeout before adding a trailing call. - var trailingTimeout = 2; /** - * Creates a wrapper function which ensures that provided callback will be - * invoked only once during the specified delay period. + * Checks if `value` is suitable for use as unique object key. * - * @param {Function} callback - Function to be invoked after the delay period. - * @param {number} delay - Delay after which to invoke callback. - * @returns {Function} + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is suitable, else `false`. */ - function throttle (callback, delay) { - var leadingCall = false, trailingCall = false, lastCallTime = 0; - /** - * Invokes the original callback function and schedules new invocation if - * the "proxy" was called during current request. - * - * @returns {void} - */ - function resolvePending() { - if (leadingCall) { - leadingCall = false; - callback(); - } - if (trailingCall) { - proxy(); - } - } - /** - * Callback invoked after the specified delay. It will further postpone - * invocation of the original function delegating it to the - * requestAnimationFrame. - * - * @returns {void} - */ - function timeoutCallback() { - requestAnimationFrame$1(resolvePending); - } - /** - * Schedules invocation of the original function. - * - * @returns {void} - */ - function proxy() { - var timeStamp = Date.now(); - if (leadingCall) { - // Reject immediately following calls. - if (timeStamp - lastCallTime < trailingTimeout) { - return; - } - // Schedule new call to be in invoked when the pending one is resolved. - // This is important for "transitions" which never actually start - // immediately so there is a chance that we might miss one if change - // happens amids the pending invocation. - trailingCall = true; - } - else { - leadingCall = true; - trailingCall = false; - setTimeout(timeoutCallback, delay); - } - lastCallTime = timeStamp; - } - return proxy; + function isKeyable(value) { + var type = typeof value; + return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') + ? (value !== '__proto__') + : (value === null); } - // Minimum delay before invoking the update of observers. - var REFRESH_DELAY = 20; - // A list of substrings of CSS properties used to find transition events that - // might affect dimensions of observed elements. - var transitionKeys = ['top', 'right', 'bottom', 'left', 'width', 'height', 'size', 'weight']; - // Check if MutationObserver is available. - var mutationObserverSupported = typeof MutationObserver !== 'undefined'; /** - * Singleton controller class which handles updates of ResizeObserver instances. + * Checks if `func` has its source masked. + * + * @private + * @param {Function} func The function to check. + * @returns {boolean} Returns `true` if `func` is masked, else `false`. */ - var ResizeObserverController = /** @class */ (function () { - /** - * Creates a new instance of ResizeObserverController. - * - * @private - */ - function ResizeObserverController() { - /** - * Indicates whether DOM listeners have been added. - * - * @private {boolean} - */ - this.connected_ = false; - /** - * Tells that controller has subscribed for Mutation Events. - * - * @private {boolean} - */ - this.mutationEventsAdded_ = false; - /** - * Keeps reference to the instance of MutationObserver. - * - * @private {MutationObserver} - */ - this.mutationsObserver_ = null; - /** - * A list of connected observers. - * - * @private {Array} - */ - this.observers_ = []; - this.onTransitionEnd_ = this.onTransitionEnd_.bind(this); - this.refresh = throttle(this.refresh.bind(this), REFRESH_DELAY); - } - /** - * Adds observer to observers list. - * - * @param {ResizeObserverSPI} observer - Observer to be added. - * @returns {void} - */ - ResizeObserverController.prototype.addObserver = function (observer) { - if (!~this.observers_.indexOf(observer)) { - this.observers_.push(observer); - } - // Add listeners if they haven't been added yet. - if (!this.connected_) { - this.connect_(); - } - }; - /** - * Removes observer from observers list. - * - * @param {ResizeObserverSPI} observer - Observer to be removed. - * @returns {void} - */ - ResizeObserverController.prototype.removeObserver = function (observer) { - var observers = this.observers_; - var index = observers.indexOf(observer); - // Remove observer if it's present in registry. - if (~index) { - observers.splice(index, 1); - } - // Remove listeners if controller has no connected observers. - if (!observers.length && this.connected_) { - this.disconnect_(); - } - }; - /** - * Invokes the update of observers. It will continue running updates insofar - * it detects changes. - * - * @returns {void} - */ - ResizeObserverController.prototype.refresh = function () { - var changesDetected = this.updateObservers_(); - // Continue running updates if changes have been detected as there might - // be future ones caused by CSS transitions. - if (changesDetected) { - this.refresh(); - } - }; - /** - * Updates every observer from observers list and notifies them of queued - * entries. - * - * @private - * @returns {boolean} Returns "true" if any observer has detected changes in - * dimensions of it's elements. - */ - ResizeObserverController.prototype.updateObservers_ = function () { - // Collect observers that have active observations. - var activeObservers = this.observers_.filter(function (observer) { - return observer.gatherActive(), observer.hasActive(); - }); - // Deliver notifications in a separate cycle in order to avoid any - // collisions between observers, e.g. when multiple instances of - // ResizeObserver are tracking the same element and the callback of one - // of them changes content dimensions of the observed target. Sometimes - // this may result in notifications being blocked for the rest of observers. - activeObservers.forEach(function (observer) { return observer.broadcastActive(); }); - return activeObservers.length > 0; - }; - /** - * Initializes DOM listeners. - * - * @private - * @returns {void} - */ - ResizeObserverController.prototype.connect_ = function () { - // Do nothing if running in a non-browser environment or if listeners - // have been already added. - if (!isBrowser || this.connected_) { - return; - } - // Subscription to the "Transitionend" event is used as a workaround for - // delayed transitions. This way it's possible to capture at least the - // final state of an element. - document.addEventListener('transitionend', this.onTransitionEnd_); - window.addEventListener('resize', this.refresh); - if (mutationObserverSupported) { - this.mutationsObserver_ = new MutationObserver(this.refresh); - this.mutationsObserver_.observe(document, { - attributes: true, - childList: true, - characterData: true, - subtree: true - }); - } - else { - document.addEventListener('DOMSubtreeModified', this.refresh); - this.mutationEventsAdded_ = true; - } - this.connected_ = true; - }; - /** - * Removes DOM listeners. - * - * @private - * @returns {void} - */ - ResizeObserverController.prototype.disconnect_ = function () { - // Do nothing if running in a non-browser environment or if listeners - // have been already removed. - if (!isBrowser || !this.connected_) { - return; - } - document.removeEventListener('transitionend', this.onTransitionEnd_); - window.removeEventListener('resize', this.refresh); - if (this.mutationsObserver_) { - this.mutationsObserver_.disconnect(); - } - if (this.mutationEventsAdded_) { - document.removeEventListener('DOMSubtreeModified', this.refresh); - } - this.mutationsObserver_ = null; - this.mutationEventsAdded_ = false; - this.connected_ = false; - }; - /** - * "Transitionend" event handler. - * - * @private - * @param {TransitionEvent} event - * @returns {void} - */ - ResizeObserverController.prototype.onTransitionEnd_ = function (_a) { - var _b = _a.propertyName, propertyName = _b === void 0 ? '' : _b; - // Detect whether transition may affect dimensions of an element. - var isReflowProperty = transitionKeys.some(function (key) { - return !!~propertyName.indexOf(key); - }); - if (isReflowProperty) { - this.refresh(); - } - }; - /** - * Returns instance of the ResizeObserverController. - * - * @returns {ResizeObserverController} - */ - ResizeObserverController.getInstance = function () { - if (!this.instance_) { - this.instance_ = new ResizeObserverController(); - } - return this.instance_; - }; - /** - * Holds reference to the controller's instance. - * - * @private {ResizeObserverController} - */ - ResizeObserverController.instance_ = null; - return ResizeObserverController; - }()); + function isMasked(func) { + return !!maskSrcKey && (maskSrcKey in func); + } /** - * Defines non-writable/enumerable properties of the provided target object. + * Checks if `value` is likely a prototype object. * - * @param {Object} target - Object for which to define properties. - * @param {Object} props - Properties to be defined. - * @returns {Object} Target object. + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a prototype, else `false`. */ - var defineConfigurable = (function (target, props) { - for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) { - var key = _a[_i]; - Object.defineProperty(target, key, { - value: props[key], - enumerable: false, - writable: false, - configurable: true - }); - } - return target; - }); + function isPrototype(value) { + var Ctor = value && value.constructor, + proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto; + + return value === proto; + } /** - * Returns the global object associated with provided element. + * Converts `value` to a string using `Object.prototype.toString`. * - * @param {Object} target - * @returns {Object} + * @private + * @param {*} value The value to convert. + * @returns {string} Returns the converted string. */ - var getWindowOf = (function (target) { - // Assume that the element is an instance of Node, which means that it - // has the "ownerDocument" property from which we can retrieve a - // corresponding global object. - var ownerGlobal = target && target.ownerDocument && target.ownerDocument.defaultView; - // Return the local global object if it's not possible extract one from - // provided element. - return ownerGlobal || global$1; - }); + function objectToString(value) { + return nativeObjectToString.call(value); + } - // Placeholder of an empty content rectangle. - var emptyRect = createRectInit(0, 0, 0, 0); /** - * Converts provided string to a number. + * Converts `func` to its source code. * - * @param {number|string} value - * @returns {number} + * @private + * @param {Function} func The function to convert. + * @returns {string} Returns the source code. */ - function toFloat(value) { - return parseFloat(value) || 0; + function toSource(func) { + if (func != null) { + try { + return funcToString.call(func); + } catch (e) {} + try { + return (func + ''); + } catch (e) {} + } + return ''; } + /** - * Extracts borders size from provided styles. + * Performs a + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * comparison between two values to determine if they are equivalent. * - * @param {CSSStyleDeclaration} styles - * @param {...string} positions - Borders positions (top, right, ...) - * @returns {number} + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {boolean} Returns `true` if the values are equivalent, else `false`. + * @example + * + * var object = { 'a': 1 }; + * var other = { 'a': 1 }; + * + * _.eq(object, object); + * // => true + * + * _.eq(object, other); + * // => false + * + * _.eq('a', 'a'); + * // => true + * + * _.eq('a', Object('a')); + * // => false + * + * _.eq(NaN, NaN); + * // => true */ - function getBordersSize(styles) { - var positions = []; - for (var _i = 1; _i < arguments.length; _i++) { - positions[_i - 1] = arguments[_i]; - } - return positions.reduce(function (size, position) { - var value = styles['border-' + position + '-width']; - return size + toFloat(value); - }, 0); + function eq(value, other) { + return value === other || (value !== value && other !== other); } + /** - * Extracts paddings sizes from provided styles. + * Checks if `value` is likely an `arguments` object. * - * @param {CSSStyleDeclaration} styles - * @returns {Object} Paddings box. + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an `arguments` object, + * else `false`. + * @example + * + * _.isArguments(function() { return arguments; }()); + * // => true + * + * _.isArguments([1, 2, 3]); + * // => false */ - function getPaddings(styles) { - var positions = ['top', 'right', 'bottom', 'left']; - var paddings = {}; - for (var _i = 0, positions_1 = positions; _i < positions_1.length; _i++) { - var position = positions_1[_i]; - var value = styles['padding-' + position]; - paddings[position] = toFloat(value); - } - return paddings; + var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) { + return isObjectLike(value) && hasOwnProperty.call(value, 'callee') && + !propertyIsEnumerable.call(value, 'callee'); + }; + + /** + * Checks if `value` is classified as an `Array` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an array, else `false`. + * @example + * + * _.isArray([1, 2, 3]); + * // => true + * + * _.isArray(document.body.children); + * // => false + * + * _.isArray('abc'); + * // => false + * + * _.isArray(_.noop); + * // => false + */ + var isArray = Array.isArray; + + /** + * Checks if `value` is array-like. A value is considered array-like if it's + * not a function and has a `value.length` that's an integer greater than or + * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is array-like, else `false`. + * @example + * + * _.isArrayLike([1, 2, 3]); + * // => true + * + * _.isArrayLike(document.body.children); + * // => true + * + * _.isArrayLike('abc'); + * // => true + * + * _.isArrayLike(_.noop); + * // => false + */ + function isArrayLike(value) { + return value != null && isLength(value.length) && !isFunction(value); } + /** - * Calculates content rectangle of provided SVG element. + * Checks if `value` is a buffer. * - * @param {SVGGraphicsElement} target - Element content rectangle of which needs - * to be calculated. - * @returns {DOMRectInit} + * @static + * @memberOf _ + * @since 4.3.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a buffer, else `false`. + * @example + * + * _.isBuffer(new Buffer(2)); + * // => true + * + * _.isBuffer(new Uint8Array(2)); + * // => false */ - function getSVGContentRect(target) { - var bbox = target.getBBox(); - return createRectInit(0, 0, bbox.width, bbox.height); + var isBuffer = nativeIsBuffer || stubFalse; + + /** + * Performs a deep comparison between two values to determine if they are + * equivalent. + * + * **Note:** This method supports comparing arrays, array buffers, booleans, + * date objects, error objects, maps, numbers, `Object` objects, regexes, + * sets, strings, symbols, and typed arrays. `Object` objects are compared + * by their own, not inherited, enumerable properties. Functions and DOM + * nodes are compared by strict equality, i.e. `===`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {boolean} Returns `true` if the values are equivalent, else `false`. + * @example + * + * var object = { 'a': 1 }; + * var other = { 'a': 1 }; + * + * _.isEqual(object, other); + * // => true + * + * object === other; + * // => false + */ + function isEqual(value, other) { + return baseIsEqual(value, other); } + /** - * Calculates content rectangle of provided HTMLElement. + * Checks if `value` is classified as a `Function` object. * - * @param {HTMLElement} target - Element for which to calculate the content rectangle. - * @returns {DOMRectInit} + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a function, else `false`. + * @example + * + * _.isFunction(_); + * // => true + * + * _.isFunction(/abc/); + * // => false */ - function getHTMLElementContentRect(target) { - // Client width & height properties can't be - // used exclusively as they provide rounded values. - var clientWidth = target.clientWidth, clientHeight = target.clientHeight; - // By this condition we can catch all non-replaced inline, hidden and - // detached elements. Though elements with width & height properties less - // than 0.5 will be discarded as well. - // - // Without it we would need to implement separate methods for each of - // those cases and it's not possible to perform a precise and performance - // effective test for hidden elements. E.g. even jQuery's ':visible' filter - // gives wrong results for elements with width & height less than 0.5. - if (!clientWidth && !clientHeight) { - return emptyRect; - } - var styles = getWindowOf(target).getComputedStyle(target); - var paddings = getPaddings(styles); - var horizPad = paddings.left + paddings.right; - var vertPad = paddings.top + paddings.bottom; - // Computed styles of width & height are being used because they are the - // only dimensions available to JS that contain non-rounded values. It could - // be possible to utilize the getBoundingClientRect if only it's data wasn't - // affected by CSS transformations let alone paddings, borders and scroll bars. - var width = toFloat(styles.width), height = toFloat(styles.height); - // Width & height include paddings and borders when the 'border-box' box - // model is applied (except for IE). - if (styles.boxSizing === 'border-box') { - // Following conditions are required to handle Internet Explorer which - // doesn't include paddings and borders to computed CSS dimensions. - // - // We can say that if CSS dimensions + paddings are equal to the "client" - // properties then it's either IE, and thus we don't need to subtract - // anything, or an element merely doesn't have paddings/borders styles. - if (Math.round(width + horizPad) !== clientWidth) { - width -= getBordersSize(styles, 'left', 'right') + horizPad; - } - if (Math.round(height + vertPad) !== clientHeight) { - height -= getBordersSize(styles, 'top', 'bottom') + vertPad; - } - } - // Following steps can't be applied to the document's root element as its - // client[Width/Height] properties represent viewport area of the window. - // Besides, it's as well not necessary as the itself neither has - // rendered scroll bars nor it can be clipped. - if (!isDocumentElement(target)) { - // In some browsers (only in Firefox, actually) CSS width & height - // include scroll bars size which can be removed at this step as scroll - // bars are the only difference between rounded dimensions + paddings - // and "client" properties, though that is not always true in Chrome. - var vertScrollbar = Math.round(width + horizPad) - clientWidth; - var horizScrollbar = Math.round(height + vertPad) - clientHeight; - // Chrome has a rather weird rounding of "client" properties. - // E.g. for an element with content width of 314.2px it sometimes gives - // the client width of 315px and for the width of 314.7px it may give - // 314px. And it doesn't happen all the time. So just ignore this delta - // as a non-relevant. - if (Math.abs(vertScrollbar) !== 1) { - width -= vertScrollbar; - } - if (Math.abs(horizScrollbar) !== 1) { - height -= horizScrollbar; - } - } - return createRectInit(paddings.left, paddings.top, width, height); + function isFunction(value) { + if (!isObject(value)) { + return false; + } + // The use of `Object#toString` avoids issues with the `typeof` operator + // in Safari 9 which returns 'object' for typed arrays and other constructors. + var tag = baseGetTag(value); + return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; } + /** - * Checks whether provided element is an instance of the SVGGraphicsElement. + * Checks if `value` is a valid array-like length. * - * @param {Element} target - Element to be checked. - * @returns {boolean} + * **Note:** This method is loosely based on + * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. + * @example + * + * _.isLength(3); + * // => true + * + * _.isLength(Number.MIN_VALUE); + * // => false + * + * _.isLength(Infinity); + * // => false + * + * _.isLength('3'); + * // => false */ - var isSVGGraphicsElement = (function () { - // Some browsers, namely IE and Edge, don't have the SVGGraphicsElement - // interface. - if (typeof SVGGraphicsElement !== 'undefined') { - return function (target) { return target instanceof getWindowOf(target).SVGGraphicsElement; }; - } - // If it's so, then check that element is at least an instance of the - // SVGElement and that it has the "getBBox" method. - // eslint-disable-next-line no-extra-parens - return function (target) { return (target instanceof getWindowOf(target).SVGElement && - typeof target.getBBox === 'function'); }; - })(); + function isLength(value) { + return typeof value == 'number' && + value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; + } + /** - * Checks whether provided element is a document element (). + * Checks if `value` is the + * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) + * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) * - * @param {Element} target - Element to be checked. - * @returns {boolean} + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an object, else `false`. + * @example + * + * _.isObject({}); + * // => true + * + * _.isObject([1, 2, 3]); + * // => true + * + * _.isObject(_.noop); + * // => true + * + * _.isObject(null); + * // => false */ - function isDocumentElement(target) { - return target === getWindowOf(target).document.documentElement; + function isObject(value) { + var type = typeof value; + return value != null && (type == 'object' || type == 'function'); } + /** - * Calculates an appropriate content rectangle for provided html or svg element. + * Checks if `value` is object-like. A value is object-like if it's not `null` + * and has a `typeof` result of "object". + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is object-like, else `false`. + * @example + * + * _.isObjectLike({}); + * // => true + * + * _.isObjectLike([1, 2, 3]); + * // => true + * + * _.isObjectLike(_.noop); + * // => false + * + * _.isObjectLike(null); + * // => false + */ + function isObjectLike(value) { + return value != null && typeof value == 'object'; + } + + /** + * Checks if `value` is classified as a typed array. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. + * @example + * + * _.isTypedArray(new Uint8Array); + * // => true + * + * _.isTypedArray([]); + * // => false + */ + var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; + + /** + * Creates an array of the own enumerable property names of `object`. + * + * **Note:** Non-object values are coerced to objects. See the + * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) + * for more details. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Object + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.keys(new Foo); + * // => ['a', 'b'] (iteration order is not guaranteed) * - * @param {Element} target - Element content rectangle of which needs to be calculated. - * @returns {DOMRectInit} + * _.keys('hi'); + * // => ['0', '1'] */ - function getContentRect(target) { - if (!isBrowser) { - return emptyRect; - } - if (isSVGGraphicsElement(target)) { - return getSVGContentRect(target); - } - return getHTMLElementContentRect(target); + function keys(object) { + return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); } + /** - * Creates rectangle with an interface of the DOMRectReadOnly. - * Spec: https://drafts.fxtf.org/geometry/#domrectreadonly + * This method returns a new empty array. * - * @param {DOMRectInit} rectInit - Object with rectangle's x/y coordinates and dimensions. - * @returns {DOMRectReadOnly} + * @static + * @memberOf _ + * @since 4.13.0 + * @category Util + * @returns {Array} Returns the new empty array. + * @example + * + * var arrays = _.times(2, _.stubArray); + * + * console.log(arrays); + * // => [[], []] + * + * console.log(arrays[0] === arrays[1]); + * // => false */ - function createReadOnlyRect(_a) { - var x = _a.x, y = _a.y, width = _a.width, height = _a.height; - // If DOMRectReadOnly is available use it as a prototype for the rectangle. - var Constr = typeof DOMRectReadOnly !== 'undefined' ? DOMRectReadOnly : Object; - var rect = Object.create(Constr.prototype); - // Rectangle's properties are not writable and non-enumerable. - defineConfigurable(rect, { - x: x, y: y, width: width, height: height, - top: y, - right: x + width, - bottom: height + y, - left: x - }); - return rect; + function stubArray() { + return []; } + /** - * Creates DOMRectInit object based on the provided dimensions and the x/y coordinates. - * Spec: https://drafts.fxtf.org/geometry/#dictdef-domrectinit + * This method returns `false`. * - * @param {number} x - X coordinate. - * @param {number} y - Y coordinate. - * @param {number} width - Rectangle's width. - * @param {number} height - Rectangle's height. - * @returns {DOMRectInit} + * @static + * @memberOf _ + * @since 4.13.0 + * @category Util + * @returns {boolean} Returns `false`. + * @example + * + * _.times(2, _.stubFalse); + * // => [false, false] */ - function createRectInit(x, y, width, height) { - return { x: x, y: y, width: width, height: height }; + function stubFalse() { + return false; } - /** - * Class that is responsible for computations of the content rectangle of - * provided DOM element and for keeping track of it's changes. - */ - var ResizeObservation = /** @class */ (function () { - /** - * Creates an instance of ResizeObservation. - * - * @param {Element} target - Element to be observed. - */ - function ResizeObservation(target) { - /** - * Broadcasted width of content rectangle. - * - * @type {number} - */ - this.broadcastWidth = 0; - /** - * Broadcasted height of content rectangle. - * - * @type {number} - */ - this.broadcastHeight = 0; - /** - * Reference to the last observed content rectangle. - * - * @private {DOMRectInit} - */ - this.contentRect_ = createRectInit(0, 0, 0, 0); - this.target = target; - } - /** - * Updates content rectangle and tells whether it's width or height properties - * have changed since the last broadcast. - * - * @returns {boolean} - */ - ResizeObservation.prototype.isActive = function () { - var rect = getContentRect(this.target); - this.contentRect_ = rect; - return (rect.width !== this.broadcastWidth || - rect.height !== this.broadcastHeight); - }; - /** - * Updates 'broadcastWidth' and 'broadcastHeight' properties with a data - * from the corresponding properties of the last observed content rectangle. - * - * @returns {DOMRectInit} Last observed content rectangle. - */ - ResizeObservation.prototype.broadcastRect = function () { - var rect = this.contentRect_; - this.broadcastWidth = rect.width; - this.broadcastHeight = rect.height; - return rect; - }; - return ResizeObservation; - }()); + module.exports = isEqual; - var ResizeObserverEntry = /** @class */ (function () { - /** - * Creates an instance of ResizeObserverEntry. - * - * @param {Element} target - Element that is being observed. - * @param {DOMRectInit} rectInit - Data of the element's content rectangle. - */ - function ResizeObserverEntry(target, rectInit) { - var contentRect = createReadOnlyRect(rectInit); - // According to the specification following properties are not writable - // and are also not enumerable in the native implementation. - // - // Property accessors are not being used as they'd require to define a - // private WeakMap storage which may cause memory leaks in browsers that - // don't support this type of collections. - defineConfigurable(this, { target: target, contentRect: contentRect }); - } - return ResizeObserverEntry; - }()); + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35), __webpack_require__(242)(module))) - var ResizeObserverSPI = /** @class */ (function () { - /** - * Creates a new instance of ResizeObserver. - * - * @param {ResizeObserverCallback} callback - Callback function that is invoked - * when one of the observed elements changes it's content dimensions. - * @param {ResizeObserverController} controller - Controller instance which - * is responsible for the updates of observer. - * @param {ResizeObserver} callbackCtx - Reference to the public - * ResizeObserver instance which will be passed to callback function. - */ - function ResizeObserverSPI(callback, controller, callbackCtx) { - /** - * Collection of resize observations that have detected changes in dimensions - * of elements. - * - * @private {Array} - */ - this.activeObservations_ = []; - /** - * Registry of the ResizeObservation instances. - * - * @private {Map} - */ - this.observations_ = new MapShim(); - if (typeof callback !== 'function') { - throw new TypeError('The callback provided as parameter 1 is not a function.'); - } - this.callback_ = callback; - this.controller_ = controller; - this.callbackCtx_ = callbackCtx; - } - /** - * Starts observing provided element. - * - * @param {Element} target - Element to be observed. - * @returns {void} - */ - ResizeObserverSPI.prototype.observe = function (target) { - if (!arguments.length) { - throw new TypeError('1 argument required, but only 0 present.'); - } - // Do nothing if current environment doesn't have the Element interface. - if (typeof Element === 'undefined' || !(Element instanceof Object)) { - return; - } - if (!(target instanceof getWindowOf(target).Element)) { - throw new TypeError('parameter 1 is not of type "Element".'); - } - var observations = this.observations_; - // Do nothing if element is already being observed. - if (observations.has(target)) { - return; - } - observations.set(target, new ResizeObservation(target)); - this.controller_.addObserver(this); - // Force the update of observations. - this.controller_.refresh(); - }; - /** - * Stops observing provided element. - * - * @param {Element} target - Element to stop observing. - * @returns {void} - */ - ResizeObserverSPI.prototype.unobserve = function (target) { - if (!arguments.length) { - throw new TypeError('1 argument required, but only 0 present.'); - } - // Do nothing if current environment doesn't have the Element interface. - if (typeof Element === 'undefined' || !(Element instanceof Object)) { - return; - } - if (!(target instanceof getWindowOf(target).Element)) { - throw new TypeError('parameter 1 is not of type "Element".'); - } - var observations = this.observations_; - // Do nothing if element is not being observed. - if (!observations.has(target)) { - return; - } - observations.delete(target); - if (!observations.size) { - this.controller_.removeObserver(this); - } - }; - /** - * Stops observing all elements. - * - * @returns {void} - */ - ResizeObserverSPI.prototype.disconnect = function () { - this.clearActive(); - this.observations_.clear(); - this.controller_.removeObserver(this); - }; - /** - * Collects observation instances the associated element of which has changed - * it's content rectangle. - * - * @returns {void} - */ - ResizeObserverSPI.prototype.gatherActive = function () { - var _this = this; - this.clearActive(); - this.observations_.forEach(function (observation) { - if (observation.isActive()) { - _this.activeObservations_.push(observation); - } - }); - }; - /** - * Invokes initial callback function with a list of ResizeObserverEntry - * instances collected from active resize observations. - * - * @returns {void} - */ - ResizeObserverSPI.prototype.broadcastActive = function () { - // Do nothing if observer doesn't have active observations. - if (!this.hasActive()) { - return; - } - var ctx = this.callbackCtx_; - // Create ResizeObserverEntry instance for every active observation. - var entries = this.activeObservations_.map(function (observation) { - return new ResizeObserverEntry(observation.target, observation.broadcastRect()); - }); - this.callback_.call(ctx, entries, ctx); - this.clearActive(); - }; - /** - * Clears the collection of active observations. - * - * @returns {void} - */ - ResizeObserverSPI.prototype.clearActive = function () { - this.activeObservations_.splice(0); - }; - /** - * Tells whether observer has active observations. - * - * @returns {boolean} - */ - ResizeObserverSPI.prototype.hasActive = function () { - return this.activeObservations_.length > 0; - }; - return ResizeObserverSPI; - }()); + /***/ }), + /* 22 */ + /***/ (function(module, exports, __webpack_require__) { - // Registry of internal observers. If WeakMap is not available use current shim - // for the Map collection as it has all required methods and because WeakMap - // can't be fully polyfilled anyway. - var observers = typeof WeakMap !== 'undefined' ? new WeakMap() : new MapShim(); - /** - * ResizeObserver API. Encapsulates the ResizeObserver SPI implementation - * exposing only those methods and properties that are defined in the spec. - */ - var ResizeObserver = /** @class */ (function () { - /** - * Creates a new instance of ResizeObserver. - * - * @param {ResizeObserverCallback} callback - Callback that is invoked when - * dimensions of the observed elements change. - */ - function ResizeObserver(callback) { - if (!(this instanceof ResizeObserver)) { - throw new TypeError('Cannot call a class as a function.'); - } - if (!arguments.length) { - throw new TypeError('1 argument required, but only 0 present.'); - } - var controller = ResizeObserverController.getInstance(); - var observer = new ResizeObserverSPI(callback, controller, this); - observers.set(this, observer); - } - return ResizeObserver; - }()); - // Expose public methods of ResizeObserver. - [ - 'observe', - 'unobserve', - 'disconnect' - ].forEach(function (method) { - ResizeObserver.prototype[method] = function () { - var _a; - return (_a = observers.get(this))[method].apply(_a, arguments); - }; + "use strict"; + + + Object.defineProperty(exports, "__esModule", { + value: true }); + exports.create = exports.connect = exports.Provider = undefined; - var index = (function () { - // Export existing implementation if available. - if (typeof global$1.ResizeObserver !== 'undefined') { - return global$1.ResizeObserver; - } - return ResizeObserver; - })(); + var _Provider2 = __webpack_require__(796); - /* harmony default export */ __webpack_exports__["default"] = (index); + var _Provider3 = _interopRequireDefault(_Provider2); - /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(35))) + var _connect2 = __webpack_require__(797); + + var _connect3 = _interopRequireDefault(_connect2); + + var _create2 = __webpack_require__(799); + + var _create3 = _interopRequireDefault(_create2); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + exports.Provider = _Provider3.default; + exports.connect = _connect3.default; + exports.create = _create3.default; /***/ }), - /* 96 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + /* 23 */ + /***/ (function(module, exports, __webpack_require__) { "use strict"; - Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(8); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty__ = __webpack_require__(86); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(7); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass__ = __webpack_require__(55); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(9); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__ = __webpack_require__(10); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(1); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_rc_util_es_unsafeLifecyclesPolyfill__ = __webpack_require__(90); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__ = __webpack_require__(801); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__AnimateChild__ = __webpack_require__(802); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__util_animate__ = __webpack_require__(262); + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = ownerDocument; + function ownerDocument(node) { + return node && node.ownerDocument || document; + } + module.exports = exports["default"]; + /***/ }), + /* 24 */ + /***/ (function(module, exports, __webpack_require__) { + "use strict"; + exports.__esModule = true; + exports.default = function (obj, keys) { + var target = {}; + for (var i in obj) { + if (keys.indexOf(i) >= 0) continue; + if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; + target[i] = obj[i]; + } + return target; + }; + /***/ }), + /* 25 */ + /***/ (function(module, exports) { + var core = module.exports = { version: '2.6.11' }; + if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef - var defaultKey = 'rc_animate_' + Date.now(); + /***/ }), + /* 26 */ + /***/ (function(module, exports, __webpack_require__) { - function getChildrenFromProps(props) { - var children = props.children; - if (__WEBPACK_IMPORTED_MODULE_6_react___default.a.isValidElement(children)) { - if (!children.key) { - return __WEBPACK_IMPORTED_MODULE_6_react___default.a.cloneElement(children, { - key: defaultKey - }); - } - } - return children; - } + "use strict"; - function noop() {} - var Animate = function (_React$Component) { - __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default()(Animate, _React$Component); + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = !!(typeof window !== 'undefined' && window.document && window.document.createElement); + module.exports = exports['default']; - // eslint-disable-line + /***/ }), + /* 27 */ + /***/ (function(module, exports, __webpack_require__) { - function Animate(props) { - __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, Animate); + "use strict"; - var _this = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default()(this, (Animate.__proto__ || Object.getPrototypeOf(Animate)).call(this, props)); - _initialiseProps.call(_this); + Object.defineProperty(exports, "__esModule", { + value: true + }); - _this.currentlyAnimatingKeys = {}; - _this.keysToEnter = []; - _this.keysToLeave = []; + var _inDOM = __webpack_require__(26); - _this.state = { - children: Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__["e" /* toArrayChildren */])(getChildrenFromProps(props)) - }; + var _inDOM2 = _interopRequireDefault(_inDOM); - _this.childrenRefs = {}; - return _this; - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass___default()(Animate, [{ - key: 'componentDidMount', - value: function componentDidMount() { - var _this2 = this; + exports.default = function () { + var root = _inDOM2.default && document.documentElement; - var showProp = this.props.showProp; - var children = this.state.children; - if (showProp) { - children = children.filter(function (child) { - return !!child.props[showProp]; - }); - } - children.forEach(function (child) { - if (child) { - _this2.performAppear(child.key); - } - }); - } - }, { - key: 'componentWillReceiveProps', - value: function componentWillReceiveProps(nextProps) { - var _this3 = this; + return root && root.contains ? function (context, node) { + return context.contains(node); + } : root && root.compareDocumentPosition ? function (context, node) { + return context === node || !!(context.compareDocumentPosition(node) & 16); + } : function (context, node) { + if (node) do { + if (node === context) return true; + } while (node = node.parentNode); - this.nextProps = nextProps; - var nextChildren = Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__["e" /* toArrayChildren */])(getChildrenFromProps(nextProps)); - var props = this.props; - // exclusive needs immediate response - if (props.exclusive) { - Object.keys(this.currentlyAnimatingKeys).forEach(function (key) { - _this3.stop(key); - }); - } - var showProp = props.showProp; - var currentlyAnimatingKeys = this.currentlyAnimatingKeys; - // last props children if exclusive - var currentChildren = props.exclusive ? Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__["e" /* toArrayChildren */])(getChildrenFromProps(props)) : this.state.children; - // in case destroy in showProp mode - var newChildren = []; - if (showProp) { - currentChildren.forEach(function (currentChild) { - var nextChild = currentChild && Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__["a" /* findChildInChildrenByKey */])(nextChildren, currentChild.key); - var newChild = void 0; - if ((!nextChild || !nextChild.props[showProp]) && currentChild.props[showProp]) { - newChild = __WEBPACK_IMPORTED_MODULE_6_react___default.a.cloneElement(nextChild || currentChild, __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default()({}, showProp, true)); - } else { - newChild = nextChild; - } - if (newChild) { - newChildren.push(newChild); - } - }); - nextChildren.forEach(function (nextChild) { - if (!nextChild || !Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__["a" /* findChildInChildrenByKey */])(currentChildren, nextChild.key)) { - newChildren.push(nextChild); - } - }); - } else { - newChildren = Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__["d" /* mergeChildren */])(currentChildren, nextChildren); - } + return false; + }; + }(); - // need render to avoid update - this.setState({ - children: newChildren - }); + module.exports = exports['default']; - nextChildren.forEach(function (child) { - var key = child && child.key; - if (child && currentlyAnimatingKeys[key]) { - return; - } - var hasPrev = child && Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__["a" /* findChildInChildrenByKey */])(currentChildren, key); - if (showProp) { - var showInNext = child.props[showProp]; - if (hasPrev) { - var showInNow = Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__["b" /* findShownChildInChildrenByKey */])(currentChildren, key, showProp); - if (!showInNow && showInNext) { - _this3.keysToEnter.push(key); - } - } else if (showInNext) { - _this3.keysToEnter.push(key); - } - } else if (!hasPrev) { - _this3.keysToEnter.push(key); - } - }); + /***/ }), + /* 28 */ + /***/ (function(module, exports, __webpack_require__) { - currentChildren.forEach(function (child) { - var key = child && child.key; - if (child && currentlyAnimatingKeys[key]) { - return; - } - var hasNext = child && Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__["a" /* findChildInChildrenByKey */])(nextChildren, key); - if (showProp) { - var showInNow = child.props[showProp]; - if (hasNext) { - var showInNext = Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__["b" /* findShownChildInChildrenByKey */])(nextChildren, key, showProp); - if (!showInNext && showInNow) { - _this3.keysToLeave.push(key); - } - } else if (showInNow) { - _this3.keysToLeave.push(key); - } - } else if (!hasNext) { - _this3.keysToLeave.push(key); - } - }); - } - }, { - key: 'componentDidUpdate', - value: function componentDidUpdate() { - var keysToEnter = this.keysToEnter; - this.keysToEnter = []; - keysToEnter.forEach(this.performEnter); - var keysToLeave = this.keysToLeave; - this.keysToLeave = []; - keysToLeave.forEach(this.performLeave); - } - }, { - key: 'isValidChildByKey', - value: function isValidChildByKey(currentChildren, key) { - var showProp = this.props.showProp; - if (showProp) { - return Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__["b" /* findShownChildInChildrenByKey */])(currentChildren, key, showProp); - } - return Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__["a" /* findChildInChildrenByKey */])(currentChildren, key); - } - }, { - key: 'stop', - value: function stop(key) { - delete this.currentlyAnimatingKeys[key]; - var component = this.childrenRefs[key]; - if (component) { - component.stop(); - } - } - }, { - key: 'render', - value: function render() { - var _this4 = this; + "use strict"; - var props = this.props; - this.nextProps = props; - var stateChildren = this.state.children; - var children = null; - if (stateChildren) { - children = stateChildren.map(function (child) { - if (child === null || child === undefined) { - return child; - } - if (!child.key) { - throw new Error('must set key for children'); - } - return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( - __WEBPACK_IMPORTED_MODULE_10__AnimateChild__["a" /* default */], - { - key: child.key, - ref: function ref(node) { - _this4.childrenRefs[child.key] = node; - }, - animation: props.animation, - transitionName: props.transitionName, - transitionEnter: props.transitionEnter, - transitionAppear: props.transitionAppear, - transitionLeave: props.transitionLeave - }, - child - ); - }); - } - var Component = props.component; - if (Component) { - var passedProps = props; - if (typeof Component === 'string') { - passedProps = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({ - className: props.className, - style: props.style - }, props.componentProps); - } - return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( - Component, - passedProps, - children - ); + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.transitionEnd = exports.transitionDuration = exports.transitionDelay = exports.transitionTiming = exports.transitionProperty = exports.transform = undefined; + + var _inDOM = __webpack_require__(26); + + var _inDOM2 = _interopRequireDefault(_inDOM); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var transform = 'transform'; + var prefix = void 0, + transitionEnd = void 0; + var transitionTiming = void 0, + transitionDuration = void 0; + var transitionProperty = void 0, + transitionDelay = void 0; + + if (_inDOM2.default) { + var _getTransitionPropert = getTransitionProperties(); + + prefix = _getTransitionPropert.prefix; + exports.transitionEnd = transitionEnd = _getTransitionPropert.transitionEnd; + + + exports.transform = transform = prefix + '-' + transform; + exports.transitionProperty = transitionProperty = prefix + '-transition-property'; + exports.transitionDuration = transitionDuration = prefix + '-transition-duration'; + exports.transitionDelay = transitionDelay = prefix + '-transition-delay'; + exports.transitionTiming = transitionTiming = prefix + '-transition-timing-function'; + } + + exports.transform = transform; + exports.transitionProperty = transitionProperty; + exports.transitionTiming = transitionTiming; + exports.transitionDelay = transitionDelay; + exports.transitionDuration = transitionDuration; + exports.transitionEnd = transitionEnd; + exports.default = { + transform: transform, + end: transitionEnd, + property: transitionProperty, + timing: transitionTiming, + delay: transitionDelay, + duration: transitionDuration + }; + + + function getTransitionProperties() { + var transitionEnd = void 0; + var prefix = ''; + var eventNames = { + O: 'otransitionend', + Moz: 'transitionend', + Webkit: 'webkitTransitionEnd', + ms: 'MSTransitionEnd' + }; + + var element = document.createElement('div'); + for (var vendor in eventNames) { + if (eventNames.hasOwnProperty(vendor)) { + if (element.style[vendor + 'TransitionProperty'] !== undefined) { + prefix = '-' + vendor.toLowerCase(); + transitionEnd = eventNames[vendor]; + break; } - return children[0] || null; } - }]); + }if (!transitionEnd && element.style.transitionProperty !== undefined) transitionEnd = 'transitionend'; - return Animate; - }(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); + element = null; - Animate.isAnimate = true; - Animate.propTypes = { - className: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string, - style: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.object, - component: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.any, - componentProps: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.object, - animation: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.object, - transitionName: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.object]), - transitionEnter: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, - transitionAppear: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, - exclusive: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, - transitionLeave: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, - onEnd: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, - onEnter: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, - onLeave: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, - onAppear: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, - showProp: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string, - children: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.node + return { transitionEnd: transitionEnd, prefix: prefix }; + } + + /***/ }), + /* 29 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { + + "use strict"; + Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); + /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DragDropContext", function() { return DragDropContext; }); + /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Droppable", function() { return connectedDroppable; }); + /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Draggable", function() { return ConnectedDraggable; }); + /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resetServerContext", function() { return resetServerContext; }); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__ = __webpack_require__(1069); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_tiny_invariant__ = __webpack_require__(300); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_css_box_model__ = __webpack_require__(1070); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_corejs2_core_js_object_keys__ = __webpack_require__(1071); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_corejs2_core_js_object_keys___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_corejs2_core_js_object_keys__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_memoize_one__ = __webpack_require__(1075); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_redux__ = __webpack_require__(301); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__babel_runtime_corejs2_core_js_object_assign__ = __webpack_require__(299); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__babel_runtime_corejs2_core_js_object_assign___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_corejs2_core_js_object_assign__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_raf_schd__ = __webpack_require__(1079); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__babel_runtime_corejs2_helpers_esm_inheritsLoose__ = __webpack_require__(1080); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_react__ = __webpack_require__(0); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_react__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_prop_types__ = __webpack_require__(1); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_prop_types__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react_redux__ = __webpack_require__(1082); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_react_motion__ = __webpack_require__(1095); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_react_motion___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_12_react_motion__); + + + + + + + + + + + + + + + var vertical = { + direction: 'vertical', + line: 'y', + crossAxisLine: 'x', + start: 'top', + end: 'bottom', + size: 'height', + crossAxisStart: 'left', + crossAxisEnd: 'right', + crossAxisSize: 'width' }; - Animate.defaultProps = { - animation: {}, - component: 'span', - componentProps: {}, - transitionEnter: true, - transitionLeave: true, - transitionAppear: false, - onEnd: noop, - onEnter: noop, - onLeave: noop, - onAppear: noop + var horizontal = { + direction: 'horizontal', + line: 'x', + crossAxisLine: 'y', + start: 'left', + end: 'right', + size: 'width', + crossAxisStart: 'top', + crossAxisEnd: 'bottom', + crossAxisSize: 'height' }; - var _initialiseProps = function _initialiseProps() { - var _this5 = this; + var origin = { + x: 0, + y: 0 + }; + var add = function add(point1, point2) { + return { + x: point1.x + point2.x, + y: point1.y + point2.y + }; + }; + var subtract = function subtract(point1, point2) { + return { + x: point1.x - point2.x, + y: point1.y - point2.y + }; + }; + var isEqual = function isEqual(point1, point2) { + return point1.x === point2.x && point1.y === point2.y; + }; + var negate = function negate(point) { + return { + x: point.x !== 0 ? -point.x : 0, + y: point.y !== 0 ? -point.y : 0 + }; + }; + var absolute = function absolute(point) { + return { + x: Math.abs(point.x), + y: Math.abs(point.y) + }; + }; + var patch = function patch(line, value, otherValue) { + var _ref; - this.performEnter = function (key) { - // may already remove by exclusive - if (_this5.childrenRefs[key]) { - _this5.currentlyAnimatingKeys[key] = true; - _this5.childrenRefs[key].componentWillEnter(_this5.handleDoneAdding.bind(_this5, key, 'enter')); - } + if (otherValue === void 0) { + otherValue = 0; + } + + return _ref = {}, _ref[line] = value, _ref[line === 'x' ? 'y' : 'x'] = otherValue, _ref; + }; + var distance = function distance(point1, point2) { + return Math.sqrt(Math.pow(point2.x - point1.x, 2) + Math.pow(point2.y - point1.y, 2)); + }; + var closest = function closest(target, points) { + return Math.min.apply(Math, points.map(function (point) { + return distance(target, point); + })); + }; + var apply = function apply(fn) { + return function (point) { + return { + x: fn(point.x), + y: fn(point.y) + }; }; + }; - this.performAppear = function (key) { - if (_this5.childrenRefs[key]) { - _this5.currentlyAnimatingKeys[key] = true; - _this5.childrenRefs[key].componentWillAppear(_this5.handleDoneAdding.bind(_this5, key, 'appear')); - } + var offsetByPosition = function offsetByPosition(spacing, point) { + return { + top: spacing.top + point.y, + left: spacing.left + point.x, + bottom: spacing.bottom + point.y, + right: spacing.right + point.x + }; + }; + var expandByPosition = function expandByPosition(spacing, position) { + return { + top: spacing.top - position.y, + left: spacing.left - position.x, + right: spacing.right + position.x, + bottom: spacing.bottom + position.y + }; + }; + var getCorners = function getCorners(spacing) { + return [{ + x: spacing.left, + y: spacing.top + }, { + x: spacing.right, + y: spacing.top + }, { + x: spacing.left, + y: spacing.bottom + }, { + x: spacing.right, + y: spacing.bottom + }]; + }; + + var getMaxScroll = (function (_ref) { + var scrollHeight = _ref.scrollHeight, + scrollWidth = _ref.scrollWidth, + height = _ref.height, + width = _ref.width; + var maxScroll = subtract({ + x: scrollWidth, + y: scrollHeight + }, { + x: width, + y: height + }); + var adjustedMaxScroll = { + x: Math.max(0, maxScroll.x), + y: Math.max(0, maxScroll.y) }; + return adjustedMaxScroll; + }); - this.handleDoneAdding = function (key, type) { - var props = _this5.props; - delete _this5.currentlyAnimatingKeys[key]; - // if update on exclusive mode, skip check - if (props.exclusive && props !== _this5.nextProps) { - return; + var clip = function clip(frame, subject) { + var result = Object(__WEBPACK_IMPORTED_MODULE_2_css_box_model__["d" /* getRect */])({ + top: Math.max(subject.top, frame.top), + right: Math.min(subject.right, frame.right), + bottom: Math.min(subject.bottom, frame.bottom), + left: Math.max(subject.left, frame.left) + }); + + if (result.width <= 0 || result.height <= 0) { + return null; + } + + return result; + }; + var getDroppableDimension = function getDroppableDimension(_ref) { + var descriptor = _ref.descriptor, + isEnabled = _ref.isEnabled, + direction = _ref.direction, + client = _ref.client, + page = _ref.page, + closest$$1 = _ref.closest; + + var scrollable = function () { + if (!closest$$1) { + return null; } - var currentChildren = Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__["e" /* toArrayChildren */])(getChildrenFromProps(props)); - if (!_this5.isValidChildByKey(currentChildren, key)) { - // exclusive will not need this - _this5.performLeave(key); - } else if (type === 'appear') { - if (__WEBPACK_IMPORTED_MODULE_11__util_animate__["a" /* default */].allowAppearCallback(props)) { - props.onAppear(key); - props.onEnd(key, true); + + var maxScroll = getMaxScroll({ + scrollHeight: closest$$1.scrollHeight, + scrollWidth: closest$$1.scrollWidth, + height: closest$$1.client.paddingBox.height, + width: closest$$1.client.paddingBox.width + }); + return { + framePageMarginBox: closest$$1.page.marginBox, + shouldClipSubject: closest$$1.shouldClipSubject, + scroll: { + initial: closest$$1.scroll, + current: closest$$1.scroll, + max: maxScroll, + diff: { + value: origin, + displacement: origin + } } - } else if (__WEBPACK_IMPORTED_MODULE_11__util_animate__["a" /* default */].allowEnterCallback(props)) { - props.onEnter(key); - props.onEnd(key, true); - } - }; + }; + }(); - this.performLeave = function (key) { - // may already remove by exclusive - if (_this5.childrenRefs[key]) { - _this5.currentlyAnimatingKeys[key] = true; - _this5.childrenRefs[key].componentWillLeave(_this5.handleDoneLeaving.bind(_this5, key)); + var subjectPageMarginBox = page.marginBox; + var clippedPageMarginBox = scrollable && scrollable.shouldClipSubject ? clip(scrollable.framePageMarginBox, subjectPageMarginBox) : subjectPageMarginBox; + var viewport = { + closestScrollable: scrollable, + subjectPageMarginBox: subjectPageMarginBox, + clippedPageMarginBox: clippedPageMarginBox + }; + var dimension = { + descriptor: descriptor, + axis: direction === 'vertical' ? vertical : horizontal, + isEnabled: isEnabled, + client: client, + page: page, + viewport: viewport + }; + return dimension; + }; + var scrollDroppable = function scrollDroppable(droppable, newScroll) { + !droppable.viewport.closestScrollable ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + var scrollable = droppable.viewport.closestScrollable; + var framePageMarginBox = scrollable.framePageMarginBox; + var scrollDiff = subtract(newScroll, scrollable.scroll.initial); + var scrollDisplacement = negate(scrollDiff); + var closestScrollable = { + framePageMarginBox: scrollable.framePageMarginBox, + shouldClipSubject: scrollable.shouldClipSubject, + scroll: { + initial: scrollable.scroll.initial, + current: newScroll, + diff: { + value: scrollDiff, + displacement: scrollDisplacement + }, + max: scrollable.scroll.max } }; - - this.handleDoneLeaving = function (key) { - var props = _this5.props; - delete _this5.currentlyAnimatingKeys[key]; - // if update on exclusive mode, skip check - if (props.exclusive && props !== _this5.nextProps) { - return; - } - var currentChildren = Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__["e" /* toArrayChildren */])(getChildrenFromProps(props)); - // in case state change is too fast - if (_this5.isValidChildByKey(currentChildren, key)) { - _this5.performEnter(key); - } else { - var end = function end() { - if (__WEBPACK_IMPORTED_MODULE_11__util_animate__["a" /* default */].allowLeaveCallback(props)) { - props.onLeave(key); - props.onEnd(key, false); - } - }; - if (!Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__["c" /* isSameChildren */])(_this5.state.children, currentChildren, props.showProp)) { - _this5.setState({ - children: currentChildren - }, end); - } else { - end(); - } - } + var displacedSubject = offsetByPosition(droppable.viewport.subjectPageMarginBox, scrollDisplacement); + var clippedPageMarginBox = closestScrollable.shouldClipSubject ? clip(framePageMarginBox, displacedSubject) : Object(__WEBPACK_IMPORTED_MODULE_2_css_box_model__["d" /* getRect */])(displacedSubject); + var viewport = { + closestScrollable: closestScrollable, + subjectPageMarginBox: droppable.viewport.subjectPageMarginBox, + clippedPageMarginBox: clippedPageMarginBox }; - }; - - /* harmony default export */ __webpack_exports__["default"] = (Object(__WEBPACK_IMPORTED_MODULE_8_rc_util_es_unsafeLifecyclesPolyfill__["a" /* default */])(Animate)); - - /***/ }), - /* 97 */ - /***/ (function(module, exports, __webpack_require__) { - - "use strict"; + var result = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({}, droppable, { + viewport: viewport + }); - Object.defineProperty(exports, "__esModule", { - value: true - }); - - exports["default"] = function (componentOrElement) { - return (0, _ownerDocument2["default"])(_reactDom2["default"].findDOMNode(componentOrElement)); + return result; }; - var _reactDom = __webpack_require__(3); - - var _reactDom2 = _interopRequireDefault(_reactDom); - - var _ownerDocument = __webpack_require__(22); - - var _ownerDocument2 = _interopRequireDefault(_ownerDocument); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - - module.exports = exports['default']; - - /***/ }), - /* 98 */ - /***/ (function(module, exports, __webpack_require__) { - - "use strict"; - - - exports.__esModule = true; - exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined; - - var _all2 = __webpack_require__(861); - - var _all3 = _interopRequireDefault(_all2); - - var _componentOrElement2 = __webpack_require__(862); + var toDroppableMap = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (droppables) { + return droppables.reduce(function (previous, current) { + previous[current.descriptor.id] = current; + return previous; + }, {}); + }); + var toDraggableMap = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (draggables) { + return draggables.reduce(function (previous, current) { + previous[current.descriptor.id] = current; + return previous; + }, {}); + }); + var toDroppableList = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (droppables) { + return __WEBPACK_IMPORTED_MODULE_3__babel_runtime_corejs2_core_js_object_keys___default()(droppables).map(function (id) { + return droppables[id]; + }); + }); + var toDraggableList = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (draggables) { + return __WEBPACK_IMPORTED_MODULE_3__babel_runtime_corejs2_core_js_object_keys___default()(draggables).map(function (id) { + return draggables[id]; + }); + }); - var _componentOrElement3 = _interopRequireDefault(_componentOrElement2); + var getDraggablesInsideDroppable = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (droppable, draggables) { + return toDraggableList(draggables).filter(function (draggable) { + return droppable.descriptor.id === draggable.descriptor.droppableId; + }).sort(function (a, b) { + return a.descriptor.index - b.descriptor.index; + }); + }); - var _deprecated2 = __webpack_require__(863); + var isWithin = (function (lowerBound, upperBound) { + return function (value) { + return value <= upperBound && value >= lowerBound; + }; + }); - var _deprecated3 = _interopRequireDefault(_deprecated2); + var isPositionInFrame = (function (frame) { + var isWithinVertical = isWithin(frame.top, frame.bottom); + var isWithinHorizontal = isWithin(frame.left, frame.right); + return function (point) { + return isWithinVertical(point.y) && isWithinVertical(point.y) && isWithinHorizontal(point.x) && isWithinHorizontal(point.x); + }; + }); - var _elementType2 = __webpack_require__(864); + var getRequiredGrowth = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (draggable, draggables, droppable) { + var getResult = function getResult(existingSpace) { + var requiredSpace = draggable.page.marginBox[droppable.axis.size]; - var _elementType3 = _interopRequireDefault(_elementType2); + if (requiredSpace <= existingSpace) { + return null; + } - var _isRequiredForA11y2 = __webpack_require__(865); + var requiredGrowth = patch(droppable.axis.line, requiredSpace - existingSpace); + return requiredGrowth; + }; - var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2); + var dimensions = getDraggablesInsideDroppable(droppable, draggables); - var _splitComponent2 = __webpack_require__(866); + if (!dimensions.length) { + var _existingSpace = droppable.page.marginBox[droppable.axis.size]; + return getResult(_existingSpace); + } - var _splitComponent3 = _interopRequireDefault(_splitComponent2); + var endOfDraggables = dimensions[dimensions.length - 1].page.marginBox[droppable.axis.end]; + var endOfDroppable = droppable.page.marginBox[droppable.axis.end]; + var existingSpace = endOfDroppable - endOfDraggables; + return getResult(existingSpace); + }); + var getWithGrowth = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (area, growth) { + return Object(__WEBPACK_IMPORTED_MODULE_2_css_box_model__["d" /* getRect */])(expandByPosition(area, growth)); + }); - var _createChainedFunction2 = __webpack_require__(867); + var getClippedRectWithPlaceholder = function getClippedRectWithPlaceholder(_ref) { + var draggable = _ref.draggable, + draggables = _ref.draggables, + droppable = _ref.droppable, + previousDroppableOverId = _ref.previousDroppableOverId; + var isHome = draggable.descriptor.droppableId === droppable.descriptor.id; + var wasOver = Boolean(previousDroppableOverId && previousDroppableOverId === droppable.descriptor.id); + var clippedPageMarginBox = droppable.viewport.clippedPageMarginBox; - var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2); + if (!clippedPageMarginBox) { + return clippedPageMarginBox; + } - var _keyCode = __webpack_require__(868); + if (isHome || !wasOver) { + return clippedPageMarginBox; + } - var _keyCode2 = _interopRequireDefault(_keyCode); + var requiredGrowth = getRequiredGrowth(draggable, draggables, droppable); - var _contains2 = __webpack_require__(869); + if (!requiredGrowth) { + return clippedPageMarginBox; + } - var _contains3 = _interopRequireDefault(_contains2); + var subjectWithGrowth = getWithGrowth(clippedPageMarginBox, requiredGrowth); + var closestScrollable = droppable.viewport.closestScrollable; - var _addEventListener2 = __webpack_require__(274); + if (!closestScrollable) { + return subjectWithGrowth; + } - var _addEventListener3 = _interopRequireDefault(_addEventListener2); + if (!closestScrollable.shouldClipSubject) { + return subjectWithGrowth; + } - var _cssAnimation2 = __webpack_require__(870); + return clip(closestScrollable.framePageMarginBox, subjectWithGrowth); + }; - var _cssAnimation3 = _interopRequireDefault(_cssAnimation2); + var getDroppableOver = (function (_ref2) { + var target = _ref2.target, + draggable = _ref2.draggable, + draggables = _ref2.draggables, + droppables = _ref2.droppables, + previousDroppableOverId = _ref2.previousDroppableOverId; + var maybe = toDroppableList(droppables).filter(function (droppable) { + return droppable.isEnabled; + }).find(function (droppable) { + var withPlaceholder = getClippedRectWithPlaceholder({ + draggable: draggable, + draggables: draggables, + droppable: droppable, + previousDroppableOverId: previousDroppableOverId + }); - var _toArray2 = __webpack_require__(872); + if (!withPlaceholder) { + return false; + } - var _toArray3 = _interopRequireDefault(_toArray2); + return isPositionInFrame(withPlaceholder)(target); + }); + return maybe ? maybe.descriptor.id : null; + }); - var _Align2 = __webpack_require__(873); + var noMovement = { + displaced: [], + amount: origin, + isBeyondStartPosition: false + }; + var noImpact = { + movement: noMovement, + direction: null, + destination: null + }; - var _Align3 = _interopRequireDefault(_Align2); + var getDisplacementMap = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (displaced) { + return displaced.reduce(function (map, displacement) { + map[displacement.draggableId] = displacement; + return map; + }, {}); + }); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + var isPartiallyVisibleThroughFrame = (function (frame) { + var isWithinVertical = isWithin(frame.top, frame.bottom); + var isWithinHorizontal = isWithin(frame.left, frame.right); + return function (subject) { + var isContained = isWithinVertical(subject.top) && isWithinVertical(subject.bottom) && isWithinHorizontal(subject.left) && isWithinHorizontal(subject.right); - exports.all = _all3.default; - exports.componentOrElement = _componentOrElement3.default; - exports.deprecated = _deprecated3.default; - exports.elementType = _elementType3.default; - exports.isRequiredForA11y = _isRequiredForA11y3.default; - exports.splitComponent = _splitComponent3.default; - exports.createChainedFunction = _createChainedFunction3.default; - exports.KeyCode = _keyCode2.default; - exports.contains = _contains3.default; - exports.addEventListener = _addEventListener3.default; - exports.cssAnimation = _cssAnimation3.default; - exports.toArray = _toArray3.default; - //export getContainerRenderMixin from './getContainerRenderMixin'; + if (isContained) { + return true; + } - exports.Align = _Align3.default; + var isPartiallyVisibleVertically = isWithinVertical(subject.top) || isWithinVertical(subject.bottom); + var isPartiallyVisibleHorizontally = isWithinHorizontal(subject.left) || isWithinHorizontal(subject.right); + var isPartiallyContained = isPartiallyVisibleVertically && isPartiallyVisibleHorizontally; - /***/ }), - /* 99 */ - /***/ (function(module, exports, __webpack_require__) { + if (isPartiallyContained) { + return true; + } - "use strict"; + var isBiggerVertically = subject.top < frame.top && subject.bottom > frame.bottom; + var isBiggerHorizontally = subject.left < frame.left && subject.right > frame.right; + var isTargetBiggerThanFrame = isBiggerVertically && isBiggerHorizontally; + if (isTargetBiggerThanFrame) { + return true; + } - Object.defineProperty(exports, "__esModule", { - value: true + var isTargetBiggerOnOneAxis = isBiggerVertically && isPartiallyVisibleHorizontally || isBiggerHorizontally && isPartiallyVisibleVertically; + return isTargetBiggerOnOneAxis; + }; }); - var _inDOM = __webpack_require__(25); - - var _inDOM2 = _interopRequireDefault(_inDOM); + var isTotallyVisibleThroughFrame = (function (frame) { + var isWithinVertical = isWithin(frame.top, frame.bottom); + var isWithinHorizontal = isWithin(frame.left, frame.right); + return function (subject) { + var isContained = isWithinVertical(subject.top) && isWithinVertical(subject.bottom) && isWithinHorizontal(subject.left) && isWithinHorizontal(subject.right); + return isContained; + }; + }); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + var isVisible = function isVisible(_ref) { + var target = _ref.target, + destination = _ref.destination, + viewport = _ref.viewport, + isVisibleThroughFrameFn = _ref.isVisibleThroughFrameFn; + var displacement = destination.viewport.closestScrollable ? destination.viewport.closestScrollable.scroll.diff.displacement : origin; + var withDisplacement = offsetByPosition(target, displacement); - var vendors = ['', 'webkit', 'moz', 'o', 'ms']; - var cancel = 'clearTimeout'; - var raf = fallback; - var compatRaf = void 0; + if (!destination.viewport.clippedPageMarginBox) { + return false; + } - var getKey = function getKey(vendor, k) { - return vendor + (!vendor ? k : k[0].toUpperCase() + k.substr(1)) + 'AnimationFrame'; + var isVisibleInDroppable = isVisibleThroughFrameFn(destination.viewport.clippedPageMarginBox)(withDisplacement); + var isVisibleInViewport = isVisibleThroughFrameFn(viewport)(withDisplacement); + return isVisibleInDroppable && isVisibleInViewport; }; - if (_inDOM2.default) { - vendors.some(function (vendor) { - var rafKey = getKey(vendor, 'request'); - - if (rafKey in window) { - cancel = getKey(vendor, 'cancel'); - return raf = function raf(cb) { - return window[rafKey](cb); - }; - } + var isPartiallyVisible = function isPartiallyVisible(_ref2) { + var target = _ref2.target, + destination = _ref2.destination, + viewport = _ref2.viewport; + return isVisible({ + target: target, + destination: destination, + viewport: viewport, + isVisibleThroughFrameFn: isPartiallyVisibleThroughFrame }); - } - - /* https://github.com/component/raf */ - var prev = new Date().getTime(); - - function fallback(fn) { - var curr = new Date().getTime(), - ms = Math.max(0, 16 - (curr - prev)), - req = setTimeout(fn, ms); - - prev = curr; - return req; - } - - compatRaf = function compatRaf(cb) { - return raf(cb); }; - compatRaf.cancel = function (id) { - return window[cancel](id); + var isTotallyVisible = function isTotallyVisible(_ref3) { + var target = _ref3.target, + destination = _ref3.destination, + viewport = _ref3.viewport; + return isVisible({ + target: target, + destination: destination, + viewport: viewport, + isVisibleThroughFrameFn: isTotallyVisibleThroughFrame + }); }; - exports.default = compatRaf; - module.exports = exports['default']; + var getDisplacement = (function (_ref) { + var draggable = _ref.draggable, + destination = _ref.destination, + previousImpact = _ref.previousImpact, + viewport = _ref.viewport; + var id = draggable.descriptor.id; + var map = getDisplacementMap(previousImpact.movement.displaced); + var isVisible = isPartiallyVisible({ + target: draggable.page.marginBox, + destination: destination, + viewport: viewport + }); - /***/ }), - /* 100 */ - /***/ (function(module, exports, __webpack_require__) { + var shouldAnimate = function () { + if (!isVisible) { + return false; + } - "use strict"; + var previous = map[id]; + if (!previous) { + return true; + } - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = getWindow; - function getWindow(node) { - return node === node.window ? node : node.nodeType === 9 ? node.defaultView || node.parentWindow : false; - } - module.exports = exports["default"]; + return previous.shouldAnimate; + }(); - /***/ }), - /* 101 */ - /***/ (function(module, exports, __webpack_require__) { + var displacement = { + draggableId: id, + isVisible: isVisible, + shouldAnimate: shouldAnimate + }; + return displacement; + }); - "use strict"; + var withDroppableScroll = (function (droppable, point) { + var closestScrollable = droppable.viewport.closestScrollable; + if (!closestScrollable) { + return point; + } - Object.defineProperty(exports, "__esModule", { - value: true + return add(point, closestScrollable.scroll.diff.value); }); - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + var inHomeList = (function (_ref) { + var pageBorderBoxCenter = _ref.pageBorderBoxCenter, + draggable = _ref.draggable, + home = _ref.home, + insideHome = _ref.insideHome, + previousImpact = _ref.previousImpact, + viewport = _ref.viewport; + var axis = home.axis; + var originalCenter = draggable.page.borderBox.center; + var currentCenter = withDroppableScroll(home, pageBorderBoxCenter); + var isBeyondStartPosition = currentCenter[axis.line] - originalCenter[axis.line] > 0; + var amount = patch(axis.line, draggable.client.marginBox[axis.size]); + var displaced = insideHome.filter(function (child) { + if (child === draggable) { + return false; + } - exports.default = position; + var borderBox = child.page.borderBox; - var _offset = __webpack_require__(74); + if (isBeyondStartPosition) { + if (borderBox.center[axis.line] < originalCenter[axis.line]) { + return false; + } - var _offset2 = _interopRequireDefault(_offset); + return currentCenter[axis.line] > borderBox[axis.start]; + } - var _offsetParent = __webpack_require__(878); + if (originalCenter[axis.line] < borderBox.center[axis.line]) { + return false; + } - var _offsetParent2 = _interopRequireDefault(_offsetParent); + return currentCenter[axis.line] < borderBox[axis.end]; + }).map(function (dimension) { + return getDisplacement({ + draggable: dimension, + destination: home, + previousImpact: previousImpact, + viewport: viewport.frame + }); + }); + var ordered = isBeyondStartPosition ? displaced.reverse() : displaced; - var _scrollTop = __webpack_require__(45); + var index = function () { + var startIndex = draggable.descriptor.index; + var length = ordered.length; - var _scrollTop2 = _interopRequireDefault(_scrollTop); + if (!length) { + return startIndex; + } - var _scrollLeft = __webpack_require__(885); + if (isBeyondStartPosition) { + return startIndex + length; + } - var _scrollLeft2 = _interopRequireDefault(_scrollLeft); + return startIndex - length; + }(); - var _style = __webpack_require__(31); + var movement = { + amount: amount, + displaced: ordered, + isBeyondStartPosition: isBeyondStartPosition + }; + var impact = { + movement: movement, + direction: axis.direction, + destination: { + droppableId: home.descriptor.id, + index: index + } + }; + return impact; + }); - var _style2 = _interopRequireDefault(_style); + var inForeignList = (function (_ref) { + var pageBorderBoxCenter = _ref.pageBorderBoxCenter, + draggable = _ref.draggable, + destination = _ref.destination, + insideDestination = _ref.insideDestination, + previousImpact = _ref.previousImpact, + viewport = _ref.viewport; + var axis = destination.axis; + var currentCenter = withDroppableScroll(destination, pageBorderBoxCenter); + var displaced = insideDestination.filter(function (child) { + var threshold = child.page.borderBox[axis.end]; + return threshold > currentCenter[axis.line]; + }).map(function (dimension) { + return getDisplacement({ + draggable: dimension, + destination: destination, + previousImpact: previousImpact, + viewport: viewport.frame + }); + }); + var newIndex = insideDestination.length - displaced.length; + var movement = { + amount: patch(axis.line, draggable.page.marginBox[axis.size]), + displaced: displaced, + isBeyondStartPosition: false + }; + var impact = { + movement: movement, + direction: axis.direction, + destination: { + droppableId: destination.descriptor.id, + index: newIndex + } + }; + return impact; + }); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + var getDragImpact = (function (_ref) { + var pageBorderBoxCenter = _ref.pageBorderBoxCenter, + draggable = _ref.draggable, + draggables = _ref.draggables, + droppables = _ref.droppables, + previousImpact = _ref.previousImpact, + viewport = _ref.viewport; + var previousDroppableOverId = previousImpact.destination && previousImpact.destination.droppableId; + var destinationId = getDroppableOver({ + target: pageBorderBoxCenter, + draggable: draggable, + draggables: draggables, + droppables: droppables, + previousDroppableOverId: previousDroppableOverId + }); - function nodeName(node) { - return node.nodeName && node.nodeName.toLowerCase(); - } + if (!destinationId) { + return noImpact; + } - function position(node, offsetParent) { - var parentOffset = { top: 0, left: 0 }, - offset; + var destination = droppables[destinationId]; - // Fixed elements are offset from window (parentOffset = {top:0, left: 0}, - // because it is its only offset parent - if ((0, _style2.default)(node, 'position') === 'fixed') { - offset = node.getBoundingClientRect(); - } else { - offsetParent = offsetParent || (0, _offsetParent2.default)(node); - offset = (0, _offset2.default)(node); + if (!destination.isEnabled) { + return noImpact; + } - if (nodeName(offsetParent) !== 'html') parentOffset = (0, _offset2.default)(offsetParent); + var home = droppables[draggable.descriptor.droppableId]; + var isWithinHomeDroppable = home.descriptor.id === destinationId; + var insideDestination = getDraggablesInsideDroppable(destination, draggables); - parentOffset.top += parseInt((0, _style2.default)(offsetParent, 'borderTopWidth'), 10) - (0, _scrollTop2.default)(offsetParent) || 0; - parentOffset.left += parseInt((0, _style2.default)(offsetParent, 'borderLeftWidth'), 10) - (0, _scrollLeft2.default)(offsetParent) || 0; + if (isWithinHomeDroppable) { + return inHomeList({ + pageBorderBoxCenter: pageBorderBoxCenter, + draggable: draggable, + home: home, + insideHome: insideDestination, + previousImpact: previousImpact || noImpact, + viewport: viewport + }); } - // Subtract parent offsets and node margins - return _extends({}, offset, { - top: offset.top - parentOffset.top - (parseInt((0, _style2.default)(node, 'marginTop'), 10) || 0), - left: offset.left - parentOffset.left - (parseInt((0, _style2.default)(node, 'marginLeft'), 10) || 0) + return inForeignList({ + pageBorderBoxCenter: pageBorderBoxCenter, + draggable: draggable, + destination: destination, + insideDestination: insideDestination, + previousImpact: previousImpact || noImpact, + viewport: viewport }); - } - module.exports = exports['default']; - - /***/ }), - /* 102 */ - /***/ (function(module, exports, __webpack_require__) { - - "use strict"; - - - Object.defineProperty(exports, "__esModule", { - value: true }); - exports.default = ownerWindow; - - var _ownerDocument = __webpack_require__(22); - - var _ownerDocument2 = _interopRequireDefault(_ownerDocument); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function ownerWindow(node) { - var doc = (0, _ownerDocument2.default)(node); - return doc && doc.defaultView || doc.parentWindow; - } - module.exports = exports['default']; - - /***/ }), - /* 103 */ - /***/ (function(module, exports, __webpack_require__) { - - "use strict"; - - - exports.__esModule = true; - exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined; - - var _all2 = __webpack_require__(1012); - - var _all3 = _interopRequireDefault(_all2); - var _componentOrElement2 = __webpack_require__(1013); + var getHomeLocation = (function (critical) { + return { + index: critical.draggable.index, + droppableId: critical.droppable.id + }; + }); - var _componentOrElement3 = _interopRequireDefault(_componentOrElement2); + var getSafeClipped = function getSafeClipped(droppable) { + var rect = droppable.viewport.clippedPageMarginBox; + !rect ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot get clipped area from droppable') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + return rect; + }; - var _deprecated2 = __webpack_require__(1014); + var getBestCrossAxisDroppable = (function (_ref) { + var isMovingForward = _ref.isMovingForward, + pageBorderBoxCenter = _ref.pageBorderBoxCenter, + source = _ref.source, + droppables = _ref.droppables, + viewport = _ref.viewport; + var sourceClipped = source.viewport.clippedPageMarginBox; - var _deprecated3 = _interopRequireDefault(_deprecated2); + if (!sourceClipped) { + return null; + } - var _elementType2 = __webpack_require__(1015); + var axis = source.axis; + var isBetweenSourceClipped = isWithin(sourceClipped[axis.start], sourceClipped[axis.end]); + var candidates = toDroppableList(droppables).filter(function (droppable) { + return droppable !== source; + }).filter(function (droppable) { + return droppable.isEnabled; + }).filter(function (droppable) { + var clippedPageMarginBox = droppable.viewport.clippedPageMarginBox; - var _elementType3 = _interopRequireDefault(_elementType2); + if (!clippedPageMarginBox) { + return false; + } - var _isRequiredForA11y2 = __webpack_require__(1016); + return isPartiallyVisibleThroughFrame(viewport.frame)(clippedPageMarginBox); + }).filter(function (droppable) { + var targetClipped = getSafeClipped(droppable); - var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2); + if (isMovingForward) { + return sourceClipped[axis.crossAxisEnd] < targetClipped[axis.crossAxisEnd]; + } - var _splitComponent2 = __webpack_require__(1017); + return targetClipped[axis.crossAxisStart] < sourceClipped[axis.crossAxisStart]; + }).filter(function (droppable) { + var targetClipped = getSafeClipped(droppable); + var isBetweenDestinationClipped = isWithin(targetClipped[axis.start], targetClipped[axis.end]); + return isBetweenSourceClipped(targetClipped[axis.start]) || isBetweenSourceClipped(targetClipped[axis.end]) || isBetweenDestinationClipped(sourceClipped[axis.start]) || isBetweenDestinationClipped(sourceClipped[axis.end]); + }).sort(function (a, b) { + var first = getSafeClipped(a)[axis.crossAxisStart]; + var second = getSafeClipped(b)[axis.crossAxisStart]; - var _splitComponent3 = _interopRequireDefault(_splitComponent2); + if (isMovingForward) { + return first - second; + } - var _createChainedFunction2 = __webpack_require__(294); + return second - first; + }).filter(function (droppable, index, array) { + return getSafeClipped(droppable)[axis.crossAxisStart] === getSafeClipped(array[0])[axis.crossAxisStart]; + }); - var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2); + if (!candidates.length) { + return null; + } - var _keyCode = __webpack_require__(1018); + if (candidates.length === 1) { + return candidates[0]; + } - var _keyCode2 = _interopRequireDefault(_keyCode); + var contains = candidates.filter(function (droppable) { + var isWithinDroppable = isWithin(getSafeClipped(droppable)[axis.start], getSafeClipped(droppable)[axis.end]); + return isWithinDroppable(pageBorderBoxCenter[axis.line]); + }); - var _contains2 = __webpack_require__(1019); + if (contains.length === 1) { + return contains[0]; + } - var _contains3 = _interopRequireDefault(_contains2); + if (contains.length > 1) { + return contains.sort(function (a, b) { + return getSafeClipped(a)[axis.start] - getSafeClipped(b)[axis.start]; + })[0]; + } - var _addEventListener2 = __webpack_require__(295); + return candidates.sort(function (a, b) { + var first = closest(pageBorderBoxCenter, getCorners(getSafeClipped(a))); + var second = closest(pageBorderBoxCenter, getCorners(getSafeClipped(b))); - var _addEventListener3 = _interopRequireDefault(_addEventListener2); + if (first !== second) { + return first - second; + } - var _cssAnimation2 = __webpack_require__(1020); + return getSafeClipped(a)[axis.start] - getSafeClipped(b)[axis.start]; + })[0]; + }); - var _cssAnimation3 = _interopRequireDefault(_cssAnimation2); + var withDroppableDisplacement = (function (droppable, point) { + var closestScrollable = droppable.viewport.closestScrollable; - var _toArray2 = __webpack_require__(1022); + if (!closestScrollable) { + return point; + } - var _toArray3 = _interopRequireDefault(_toArray2); + return add(point, closestScrollable.scroll.diff.displacement); + }); - var _Align2 = __webpack_require__(1023); + var getClosestDraggable = (function (_ref) { + var axis = _ref.axis, + viewport = _ref.viewport, + pageBorderBoxCenter = _ref.pageBorderBoxCenter, + destination = _ref.destination, + insideDestination = _ref.insideDestination; - var _Align3 = _interopRequireDefault(_Align2); + if (!insideDestination.length) { + return null; + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + var result = insideDestination.filter(function (draggable) { + return isTotallyVisible({ + target: draggable.page.borderBox, + destination: destination, + viewport: viewport.frame + }); + }).sort(function (a, b) { + var distanceToA = distance(pageBorderBoxCenter, withDroppableDisplacement(destination, a.page.borderBox.center)); + var distanceToB = distance(pageBorderBoxCenter, withDroppableDisplacement(destination, b.page.borderBox.center)); - exports.all = _all3.default; - exports.componentOrElement = _componentOrElement3.default; - exports.deprecated = _deprecated3.default; - exports.elementType = _elementType3.default; - exports.isRequiredForA11y = _isRequiredForA11y3.default; - exports.splitComponent = _splitComponent3.default; - exports.createChainedFunction = _createChainedFunction3.default; - exports.KeyCode = _keyCode2.default; - exports.contains = _contains3.default; - exports.addEventListener = _addEventListener3.default; - exports.cssAnimation = _cssAnimation3.default; - exports.toArray = _toArray3.default; - //export getContainerRenderMixin from './getContainerRenderMixin'; + if (distanceToA < distanceToB) { + return -1; + } - exports.Align = _Align3.default; + if (distanceToB < distanceToA) { + return 1; + } - /***/ }), - /* 104 */ - /***/ (function(module, exports, __webpack_require__) { + return a.page.borderBox[axis.start] - b.page.borderBox[axis.start]; + }); + return result.length ? result[0] : null; + }); - "use strict"; + var moveToEdge = (function (_ref) { + var source = _ref.source, + sourceEdge = _ref.sourceEdge, + destination = _ref.destination, + destinationEdge = _ref.destinationEdge, + destinationAxis = _ref.destinationAxis; + var getCorner = function getCorner(area) { + return patch(destinationAxis.line, area[destinationAxis[destinationEdge]], area[destinationAxis.crossAxisStart]); + }; - Object.defineProperty(exports, "__esModule", { - value: true + var corner = getCorner(destination); + var centerDiff = absolute(subtract(source.center, getCorner(source))); + var signed = patch(destinationAxis.line, (sourceEdge === 'end' ? -1 : 1) * centerDiff[destinationAxis.line], centerDiff[destinationAxis.crossAxisLine]); + return add(corner, signed); }); - exports.default = function (recalc) { - if (!size || recalc) { - if (_inDOM2.default) { - var scrollDiv = document.createElement('div'); - - scrollDiv.style.position = 'absolute'; - scrollDiv.style.top = '-9999px'; - scrollDiv.style.width = '50px'; - scrollDiv.style.height = '50px'; - scrollDiv.style.overflow = 'scroll'; + var toHomeList = (function (_ref) { + var amount = _ref.amount, + homeIndex = _ref.homeIndex, + movingRelativeTo = _ref.movingRelativeTo, + insideDestination = _ref.insideDestination, + draggable = _ref.draggable, + destination = _ref.destination, + previousImpact = _ref.previousImpact, + viewport = _ref.viewport; + var axis = destination.axis; + var targetIndex = insideDestination.indexOf(movingRelativeTo); + !(targetIndex !== -1) ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Unable to find target in destination droppable') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - document.body.appendChild(scrollDiv); - size = scrollDiv.offsetWidth - scrollDiv.clientWidth; - document.body.removeChild(scrollDiv); - } + if (targetIndex === homeIndex) { + var _newCenter = draggable.page.borderBox.center; + var _newImpact = { + movement: { + displaced: [], + amount: amount, + isBeyondStartPosition: false + }, + direction: destination.axis.direction, + destination: { + droppableId: destination.descriptor.id, + index: homeIndex + } + }; + return { + pageBorderBoxCenter: withDroppableDisplacement(destination, _newCenter), + impact: _newImpact + }; } - return size; - }; - - var _inDOM = __webpack_require__(25); - - var _inDOM2 = _interopRequireDefault(_inDOM); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var size = void 0; - - module.exports = exports['default']; - - /***/ }), - /* 105 */ - /***/ (function(module, exports, __webpack_require__) { + var isMovingPastOriginalIndex = targetIndex > homeIndex; + var edge = isMovingPastOriginalIndex ? 'end' : 'start'; + var newCenter = moveToEdge({ + source: draggable.page.borderBox, + sourceEdge: edge, + destination: isMovingPastOriginalIndex ? movingRelativeTo.page.borderBox : movingRelativeTo.page.marginBox, + destinationEdge: edge, + destinationAxis: axis + }); - "use strict"; + var modified = function () { + if (!isMovingPastOriginalIndex) { + return insideDestination.slice(targetIndex, homeIndex); + } + var from = homeIndex + 1; + var to = targetIndex + 1; + return insideDestination.slice(from, to).reverse(); + }(); - Object.defineProperty(exports, "__esModule", { - value: true + var displaced = modified.map(function (dimension) { + return getDisplacement({ + draggable: dimension, + destination: destination, + previousImpact: previousImpact, + viewport: viewport.frame + }); + }); + var newImpact = { + movement: { + displaced: displaced, + amount: amount, + isBeyondStartPosition: isMovingPastOriginalIndex + }, + direction: axis.direction, + destination: { + droppableId: destination.descriptor.id, + index: targetIndex + } + }; + return { + pageBorderBoxCenter: withDroppableDisplacement(destination, newCenter), + impact: newImpact + }; }); - exports["default"] = isOverflowing; - - var _isWindow = __webpack_require__(100); - - var _isWindow2 = _interopRequireDefault(_isWindow); - - var _ownerDocument = __webpack_require__(22); - - var _ownerDocument2 = _interopRequireDefault(_ownerDocument); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - - function isBody(node) { - return node && node.tagName.toLowerCase() === 'body'; - } + var toForeignList = (function (_ref) { + var amount = _ref.amount, + pageBorderBoxCenter = _ref.pageBorderBoxCenter, + movingRelativeTo = _ref.movingRelativeTo, + insideDestination = _ref.insideDestination, + draggable = _ref.draggable, + destination = _ref.destination, + previousImpact = _ref.previousImpact, + viewport = _ref.viewport; + var axis = destination.axis; + var isGoingBeforeTarget = Boolean(movingRelativeTo && pageBorderBoxCenter[destination.axis.line] < movingRelativeTo.page.borderBox.center[destination.axis.line]); - function bodyIsOverflowing(node) { - var doc = (0, _ownerDocument2["default"])(node); - var win = (0, _isWindow2["default"])(doc); - var fullWidth = win.innerWidth; + if (!movingRelativeTo) { + var _newCenter = moveToEdge({ + source: draggable.page.borderBox, + sourceEdge: 'start', + destination: destination.page.contentBox, + destinationEdge: 'start', + destinationAxis: axis + }); - // Support: ie8, no innerWidth - if (!fullWidth) { - var documentElementRect = doc.documentElement.getBoundingClientRect(); - fullWidth = documentElementRect.right - Math.abs(documentElementRect.left); + var _newImpact = { + movement: { + displaced: [], + amount: amount, + isBeyondStartPosition: false + }, + direction: axis.direction, + destination: { + droppableId: destination.descriptor.id, + index: 0 + } + }; + return { + pageBorderBoxCenter: withDroppableDisplacement(destination, _newCenter), + impact: _newImpact + }; } - return doc.body.clientWidth < fullWidth; - } - - function isOverflowing(container) { - var win = (0, _isWindow2["default"])(container); - return win || isBody(container) ? false : container.scrollHeight > container.clientHeight; - } - module.exports = exports['default']; - - /***/ }), - /* 106 */ - /***/ (function(module, exports, __webpack_require__) { - - "use strict"; + var targetIndex = insideDestination.indexOf(movingRelativeTo); + !(targetIndex !== -1) ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'The target was not found within its droppable') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + var proposedIndex = isGoingBeforeTarget ? targetIndex : targetIndex + 1; + var newCenter = moveToEdge({ + source: draggable.page.borderBox, + sourceEdge: 'start', + destination: movingRelativeTo.page.marginBox, + destinationEdge: isGoingBeforeTarget ? 'start' : 'end', + destinationAxis: axis + }); + var displaced = insideDestination.slice(proposedIndex, insideDestination.length).map(function (dimension) { + return getDisplacement({ + draggable: dimension, + destination: destination, + viewport: viewport.frame, + previousImpact: previousImpact + }); + }); + var newImpact = { + movement: { + displaced: displaced, + amount: amount, + isBeyondStartPosition: false + }, + direction: axis.direction, + destination: { + droppableId: destination.descriptor.id, + index: proposedIndex + } + }; + return { + pageBorderBoxCenter: withDroppableDisplacement(destination, newCenter), + impact: newImpact + }; + }); - // turn {x: {val: 1, stiffness: 1, damping: 2}, y: 2} generated by - // `{x: spring(1, {stiffness: 1, damping: 2}), y: 2}` into {x: 1, y: 2} + var moveToNewDroppable = (function (_ref) { + var pageBorderBoxCenter = _ref.pageBorderBoxCenter, + destination = _ref.destination, + insideDestination = _ref.insideDestination, + draggable = _ref.draggable, + movingRelativeTo = _ref.movingRelativeTo, + home = _ref.home, + previousImpact = _ref.previousImpact, + viewport = _ref.viewport; + var amount = patch(destination.axis.line, draggable.client.marginBox[destination.axis.size]); + if (destination.descriptor.id === draggable.descriptor.droppableId) { + !movingRelativeTo ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'There will always be a target in the original list') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + return toHomeList({ + amount: amount, + homeIndex: home.index, + movingRelativeTo: movingRelativeTo, + insideDestination: insideDestination, + draggable: draggable, + destination: destination, + previousImpact: previousImpact, + viewport: viewport + }); + } + return toForeignList({ + amount: amount, + pageBorderBoxCenter: pageBorderBoxCenter, + movingRelativeTo: movingRelativeTo, + insideDestination: insideDestination, + draggable: draggable, + destination: destination, + previousImpact: previousImpact, + viewport: viewport + }); + }); - exports.__esModule = true; - exports['default'] = stripStyle; + var moveCrossAxis = (function (_ref) { + var isMovingForward = _ref.isMovingForward, + pageBorderBoxCenter = _ref.pageBorderBoxCenter, + draggableId = _ref.draggableId, + droppableId = _ref.droppableId, + home = _ref.home, + draggables = _ref.draggables, + droppables = _ref.droppables, + previousImpact = _ref.previousImpact, + viewport = _ref.viewport; + var draggable = draggables[draggableId]; + var source = droppables[droppableId]; + var destination = getBestCrossAxisDroppable({ + isMovingForward: isMovingForward, + pageBorderBoxCenter: pageBorderBoxCenter, + source: source, + droppables: droppables, + viewport: viewport + }); - function stripStyle(style) { - var ret = {}; - for (var key in style) { - if (!Object.prototype.hasOwnProperty.call(style, key)) { - continue; - } - ret[key] = typeof style[key] === 'number' ? style[key] : style[key].val; + if (!destination) { + return null; } - return ret; - } - - module.exports = exports['default']; - /***/ }), - /* 107 */ - /***/ (function(module, exports, __webpack_require__) { + var insideDestination = getDraggablesInsideDroppable(destination, draggables); + var movingRelativeTo = getClosestDraggable({ + axis: destination.axis, + pageBorderBoxCenter: pageBorderBoxCenter, + destination: destination, + insideDestination: insideDestination, + viewport: viewport + }); - (function (global, factory) { - true ? module.exports = factory(__webpack_require__(3), __webpack_require__(0)) : - typeof define === 'function' && define.amd ? define(['react-dom', 'react'], factory) : - (global.ReactDraggable = factory(global.ReactDOM,global.React)); - }(this, (function (ReactDOM,React) { 'use strict'; + if (insideDestination.length && !movingRelativeTo) { + return null; + } - ReactDOM = ReactDOM && ReactDOM.hasOwnProperty('default') ? ReactDOM['default'] : ReactDOM; - React = React && React.hasOwnProperty('default') ? React['default'] : React; + return moveToNewDroppable({ + pageBorderBoxCenter: pageBorderBoxCenter, + destination: destination, + draggable: draggable, + movingRelativeTo: movingRelativeTo, + insideDestination: insideDestination, + home: home, + previousImpact: previousImpact || noImpact, + viewport: viewport + }); + }); - function createCommonjsModule(fn, module) { - return module = { exports: {} }, fn(module, module.exports), module.exports; - } + var isTotallyVisibleInNewLocation = (function (_ref) { + var draggable = _ref.draggable, + destination = _ref.destination, + newPageBorderBoxCenter = _ref.newPageBorderBoxCenter, + viewport = _ref.viewport; + var diff = subtract(newPageBorderBoxCenter, draggable.page.borderBox.center); + var shifted = offsetByPosition(draggable.page.borderBox, diff); + return isTotallyVisible({ + target: shifted, + destination: destination, + viewport: viewport + }); + }); - /** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * - */ + var withFirstAdded = function withFirstAdded(_ref) { + var add = _ref.add, + previousImpact = _ref.previousImpact, + droppable = _ref.droppable, + draggables = _ref.draggables, + viewport = _ref.viewport; + var newDisplacement = { + draggableId: add, + isVisible: true, + shouldAnimate: true + }; + var added = [newDisplacement].concat(previousImpact.movement.displaced); + var withUpdatedVisibility = added.map(function (current) { + if (current === newDisplacement) { + return current; + } - function makeEmptyFunction(arg) { - return function () { - return arg; - }; - } + var updated = getDisplacement({ + draggable: draggables[current.draggableId], + destination: droppable, + previousImpact: previousImpact, + viewport: viewport.frame + }); + return updated; + }); + return withUpdatedVisibility; + }; - /** - * This function accepts and discards inputs; it has no side effects. This is - * primarily useful idiomatically for overridable function endpoints which - * always need to be callable, since JS lacks a null-call idiom ala Cocoa. - */ - var emptyFunction = function emptyFunction() {}; + var forceVisibleDisplacement = function forceVisibleDisplacement(current) { + if (current.isVisible) { + return current; + } - emptyFunction.thatReturns = makeEmptyFunction; - emptyFunction.thatReturnsFalse = makeEmptyFunction(false); - emptyFunction.thatReturnsTrue = makeEmptyFunction(true); - emptyFunction.thatReturnsNull = makeEmptyFunction(null); - emptyFunction.thatReturnsThis = function () { - return this; - }; - emptyFunction.thatReturnsArgument = function (arg) { - return arg; - }; + return { + draggableId: current.draggableId, + isVisible: true, + shouldAnimate: false + }; + }; - var emptyFunction_1 = emptyFunction; + var withFirstRemoved = function withFirstRemoved(_ref2) { + var dragging = _ref2.dragging, + isVisibleInNewLocation = _ref2.isVisibleInNewLocation, + previousImpact = _ref2.previousImpact, + droppable = _ref2.droppable, + draggables = _ref2.draggables; + var last = previousImpact.movement.displaced; + !last.length ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot remove displacement from empty list') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + var withFirstRestored = last.slice(1, last.length); - /** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - */ + if (!withFirstRestored.length) { + return withFirstRestored; + } - /** - * Use invariant() to assert state which your program assumes to be true. - * - * Provide sprintf-style format (only %s is supported) and arguments - * to provide information about what broke and what you were - * expecting. - * - * The invariant message will be stripped in production, but the invariant - * will remain to ensure logic does not differ in production. - */ + if (isVisibleInNewLocation) { + return withFirstRestored; + } - var validateFormat = function validateFormat(format) {}; + var axis = droppable.axis; + var sizeOfRestored = draggables[last[0].draggableId].page.marginBox[axis.size]; + var sizeOfDragging = draggables[dragging].page.marginBox[axis.size]; + var buffer = sizeOfRestored + sizeOfDragging; + var withUpdatedVisibility = withFirstRestored.map(function (displacement, index) { + if (index === 0) { + return forceVisibleDisplacement(displacement); + } - { - validateFormat = function validateFormat(format) { - if (format === undefined) { - throw new Error('invariant requires an error message argument'); - } - }; - } + if (buffer > 0) { + var current = draggables[displacement.draggableId]; + var size = current.page.marginBox[axis.size]; + buffer -= size; + return forceVisibleDisplacement(displacement); + } - function invariant(condition, format, a, b, c, d, e, f) { - validateFormat(format); + return { + draggableId: displacement.draggableId, + isVisible: false, + shouldAnimate: false + }; + }); + return withUpdatedVisibility; + }; - if (!condition) { - var error; - if (format === undefined) { - error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.'); - } else { - var args = [a, b, c, d, e, f]; - var argIndex = 0; - error = new Error(format.replace(/%s/g, function () { - return args[argIndex++]; - })); - error.name = 'Invariant Violation'; - } + var inHomeList$1 = (function (_ref) { + var isMovingForward = _ref.isMovingForward, + draggableId = _ref.draggableId, + previousPageBorderBoxCenter = _ref.previousPageBorderBoxCenter, + previousImpact = _ref.previousImpact, + droppable = _ref.droppable, + draggables = _ref.draggables, + viewport = _ref.viewport; + var location = previousImpact.destination; + !location ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot move to next index in home list when there is no previous destination') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + var draggable = draggables[draggableId]; + var axis = droppable.axis; + var insideDroppable = getDraggablesInsideDroppable(droppable, draggables); + var startIndex = draggable.descriptor.index; + var currentIndex = location.index; + var proposedIndex = isMovingForward ? currentIndex + 1 : currentIndex - 1; - error.framesToPop = 1; // we don't care about invariant's own frame - throw error; - } - } + if (proposedIndex > insideDroppable.length - 1) { + return null; + } - var invariant_1 = invariant; + if (proposedIndex < 0) { + return null; + } - /** - * Similar to invariant but only logs a warning if the condition is not met. - * This can be used to log issues in development environments in critical - * paths. Removing the logging code for production environments will keep the - * same logic and follow the same code paths. - */ + var destination = insideDroppable[proposedIndex]; + var isMovingTowardStart = isMovingForward && proposedIndex <= startIndex || !isMovingForward && proposedIndex >= startIndex; - var warning = emptyFunction_1; + var edge = function () { + if (!isMovingTowardStart) { + return isMovingForward ? 'end' : 'start'; + } - { - var printWarning = function printWarning(format) { - for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } + return isMovingForward ? 'start' : 'end'; + }(); - var argIndex = 0; - var message = 'Warning: ' + format.replace(/%s/g, function () { - return args[argIndex++]; - }); - if (typeof console !== 'undefined') { - console.error(message); - } - try { - // --- Welcome to debugging React --- - // This error was thrown as a convenience so that you can use this stack - // to find the callsite that caused this warning to fire. - throw new Error(message); - } catch (x) {} - }; + var newPageBorderBoxCenter = moveToEdge({ + source: draggable.page.borderBox, + sourceEdge: edge, + destination: destination.page.borderBox, + destinationEdge: edge, + destinationAxis: droppable.axis + }); + var isVisibleInNewLocation = isTotallyVisibleInNewLocation({ + draggable: draggable, + destination: droppable, + newPageBorderBoxCenter: newPageBorderBoxCenter, + viewport: viewport.frame + }); + var displaced = isMovingTowardStart ? withFirstRemoved({ + dragging: draggableId, + isVisibleInNewLocation: isVisibleInNewLocation, + previousImpact: previousImpact, + droppable: droppable, + draggables: draggables + }) : withFirstAdded({ + add: destination.descriptor.id, + previousImpact: previousImpact, + droppable: droppable, + draggables: draggables, + viewport: viewport + }); + var newImpact = { + movement: { + displaced: displaced, + amount: patch(axis.line, draggable.page.marginBox[axis.size]), + isBeyondStartPosition: proposedIndex > startIndex + }, + destination: { + droppableId: droppable.descriptor.id, + index: proposedIndex + }, + direction: droppable.axis.direction + }; - warning = function warning(condition, format) { - if (format === undefined) { - throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument'); - } + if (isVisibleInNewLocation) { + return { + pageBorderBoxCenter: withDroppableDisplacement(droppable, newPageBorderBoxCenter), + impact: newImpact, + scrollJumpRequest: null + }; + } - if (format.indexOf('Failed Composite propType: ') === 0) { - return; // Ignore CompositeComponent proptype check. - } + var distance$$1 = subtract(newPageBorderBoxCenter, previousPageBorderBoxCenter); + var distanceWithScroll = withDroppableDisplacement(droppable, distance$$1); + return { + pageBorderBoxCenter: previousPageBorderBoxCenter, + impact: newImpact, + scrollJumpRequest: distanceWithScroll + }; + }); - if (!condition) { - for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { - args[_key2 - 2] = arguments[_key2]; - } + var inForeignList$1 = (function (_ref) { + var isMovingForward = _ref.isMovingForward, + draggableId = _ref.draggableId, + previousImpact = _ref.previousImpact, + previousPageBorderBoxCenter = _ref.previousPageBorderBoxCenter, + droppable = _ref.droppable, + draggables = _ref.draggables, + viewport = _ref.viewport; + !previousImpact.destination ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot move to next index where there is no previous destination') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + var location = previousImpact.destination; + var draggable = draggables[draggableId]; + var axis = droppable.axis; + var insideForeignDroppable = getDraggablesInsideDroppable(droppable, draggables); + var currentIndex = location.index; + var proposedIndex = isMovingForward ? currentIndex + 1 : currentIndex - 1; + var lastIndex = insideForeignDroppable.length - 1; - printWarning.apply(undefined, [format].concat(args)); - } - }; - } + if (proposedIndex > insideForeignDroppable.length) { + return null; + } - var warning_1 = warning; + if (proposedIndex < 0) { + return null; + } - /* - object-assign - (c) Sindre Sorhus - @license MIT - */ - /* eslint-disable no-unused-vars */ - var getOwnPropertySymbols = Object.getOwnPropertySymbols; - var hasOwnProperty = Object.prototype.hasOwnProperty; - var propIsEnumerable = Object.prototype.propertyIsEnumerable; + var movingRelativeTo = insideForeignDroppable[Math.min(proposedIndex, lastIndex)]; + var isMovingPastLastIndex = proposedIndex > lastIndex; + var sourceEdge = 'start'; - function toObject(val) { - if (val === null || val === undefined) { - throw new TypeError('Object.assign cannot be called with null or undefined'); - } + var destinationEdge = function () { + if (isMovingPastLastIndex) { + return 'end'; + } - return Object(val); - } + return 'start'; + }(); - function shouldUseNative() { - try { - if (!Object.assign) { - return false; - } + var newPageBorderBoxCenter = moveToEdge({ + source: draggable.page.borderBox, + sourceEdge: sourceEdge, + destination: movingRelativeTo.page.marginBox, + destinationEdge: destinationEdge, + destinationAxis: droppable.axis + }); + var isVisibleInNewLocation = isTotallyVisibleInNewLocation({ + draggable: draggable, + destination: droppable, + newPageBorderBoxCenter: newPageBorderBoxCenter, + viewport: viewport.frame + }); - // Detect buggy property enumeration order in older V8 versions. + var displaced = function () { + if (isMovingForward) { + return withFirstRemoved({ + dragging: draggableId, + isVisibleInNewLocation: isVisibleInNewLocation, + previousImpact: previousImpact, + droppable: droppable, + draggables: draggables + }); + } - // https://bugs.chromium.org/p/v8/issues/detail?id=4118 - var test1 = new String('abc'); // eslint-disable-line no-new-wrappers - test1[5] = 'de'; - if (Object.getOwnPropertyNames(test1)[0] === '5') { - return false; - } + return withFirstAdded({ + add: movingRelativeTo.descriptor.id, + previousImpact: previousImpact, + droppable: droppable, + draggables: draggables, + viewport: viewport + }); + }(); - // https://bugs.chromium.org/p/v8/issues/detail?id=3056 - var test2 = {}; - for (var i = 0; i < 10; i++) { - test2['_' + String.fromCharCode(i)] = i; - } - var order2 = Object.getOwnPropertyNames(test2).map(function (n) { - return test2[n]; - }); - if (order2.join('') !== '0123456789') { - return false; - } + var newImpact = { + movement: { + displaced: displaced, + amount: patch(axis.line, draggable.page.marginBox[axis.size]), + isBeyondStartPosition: false + }, + destination: { + droppableId: droppable.descriptor.id, + index: proposedIndex + }, + direction: droppable.axis.direction + }; - // https://bugs.chromium.org/p/v8/issues/detail?id=3056 - var test3 = {}; - 'abcdefghijklmnopqrst'.split('').forEach(function (letter) { - test3[letter] = letter; - }); - if (Object.keys(Object.assign({}, test3)).join('') !== - 'abcdefghijklmnopqrst') { - return false; - } + if (isVisibleInNewLocation) { + return { + pageBorderBoxCenter: withDroppableDisplacement(droppable, newPageBorderBoxCenter), + impact: newImpact, + scrollJumpRequest: null + }; + } - return true; - } catch (err) { - // We don't expect any of the above to throw, but better to be safe. - return false; - } - } + var distanceMoving = subtract(newPageBorderBoxCenter, previousPageBorderBoxCenter); + var distanceWithScroll = withDroppableDisplacement(droppable, distanceMoving); + return { + pageBorderBoxCenter: previousPageBorderBoxCenter, + impact: newImpact, + scrollJumpRequest: distanceWithScroll + }; + }); - var objectAssign = shouldUseNative() ? Object.assign : function (target, source) { - var from; - var to = toObject(target); - var symbols; + var moveToNextIndex = (function (args) { + var draggableId = args.draggableId, + draggables = args.draggables, + droppable = args.droppable; + var draggable = draggables[draggableId]; + var isInHomeList = draggable.descriptor.droppableId === droppable.descriptor.id; - for (var s = 1; s < arguments.length; s++) { - from = Object(arguments[s]); + if (!droppable.isEnabled) { + return null; + } - for (var key in from) { - if (hasOwnProperty.call(from, key)) { - to[key] = from[key]; - } - } + if (isInHomeList) { + return inHomeList$1(args); + } - if (getOwnPropertySymbols) { - symbols = getOwnPropertySymbols(from); - for (var i = 0; i < symbols.length; i++) { - if (propIsEnumerable.call(from, symbols[i])) { - to[symbols[i]] = from[symbols[i]]; - } - } - } - } + return inForeignList$1(args); + }); - return to; - }; + var getClientSelection = function getClientSelection(pageBorderBoxCenter, currentScroll) { + return subtract(pageBorderBoxCenter, currentScroll); + }; - /** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ + var moveInDirection = (function (_ref) { + var state = _ref.state, + type = _ref.type; - var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; + var _ref2 = function () { + if (state.impact.destination) { + return { + droppable: state.dimensions.droppables[state.impact.destination.droppableId], + isMainAxisMovementAllowed: true + }; + } - var ReactPropTypesSecret_1 = ReactPropTypesSecret; + return { + droppable: state.dimensions.droppables[state.critical.droppable.id], + isMainAxisMovementAllowed: false + }; + }(), + droppable = _ref2.droppable, + isMainAxisMovementAllowed = _ref2.isMainAxisMovementAllowed; - { - var invariant$1 = invariant_1; - var warning$1 = warning_1; - var ReactPropTypesSecret$1 = ReactPropTypesSecret_1; - var loggedTypeFailures = {}; - } + var direction = droppable.axis.direction; + var isMovingOnMainAxis = direction === 'vertical' && (type === 'MOVE_UP' || type === 'MOVE_DOWN') || direction === 'horizontal' && (type === 'MOVE_LEFT' || type === 'MOVE_RIGHT'); - /** - * Assert that the values match with the type specs. - * Error messages are memorized and will only be shown once. - * - * @param {object} typeSpecs Map of name to a ReactPropType - * @param {object} values Runtime values that need to be type-checked - * @param {string} location e.g. "prop", "context", "child context" - * @param {string} componentName Name of the component for error messages. - * @param {?Function} getStack Returns the component stack. - * @private - */ - function checkPropTypes(typeSpecs, values, location, componentName, getStack) { - { - for (var typeSpecName in typeSpecs) { - if (typeSpecs.hasOwnProperty(typeSpecName)) { - var error; - // Prop type validation may throw. In case they do, we don't want to - // fail the render phase where it didn't fail before. So we log it. - // After these have been cleaned up, we'll let them throw. - try { - // This is intentionally an invariant that gets caught. It's the same - // behavior as without this statement except with a better message. - invariant$1(typeof typeSpecs[typeSpecName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'the `prop-types` package, but received `%s`.', componentName || 'React class', location, typeSpecName, typeof typeSpecs[typeSpecName]); - error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$1); - } catch (ex) { - error = ex; - } - warning$1(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error); - if (error instanceof Error && !(error.message in loggedTypeFailures)) { - // Only monitor this failure once because there tends to be a lot of the - // same error. - loggedTypeFailures[error.message] = true; + if (isMovingOnMainAxis && !isMainAxisMovementAllowed) { + return null; + } - var stack = getStack ? getStack() : ''; + var isMovingForward = type === 'MOVE_DOWN' || type === 'MOVE_RIGHT'; - warning$1(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : ''); - } - } - } - } - } + if (isMovingOnMainAxis) { + var _result = moveToNextIndex({ + isMovingForward: isMovingForward, + draggableId: state.critical.draggable.id, + droppable: droppable, + draggables: state.dimensions.draggables, + previousPageBorderBoxCenter: state.current.page.borderBoxCenter, + previousImpact: state.impact, + viewport: state.viewport + }); - var checkPropTypes_1 = checkPropTypes; + if (!_result) { + return null; + } - var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) { - /* global Symbol */ - var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator; - var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec. + return { + impact: _result.impact, + clientSelection: getClientSelection(_result.pageBorderBoxCenter, state.viewport.scroll.current), + scrollJumpRequest: _result.scrollJumpRequest + }; + } - /** - * Returns the iterator method function contained on the iterable object. - * - * Be sure to invoke the function with the iterable as context: - * - * var iteratorFn = getIteratorFn(myIterable); - * if (iteratorFn) { - * var iterator = iteratorFn.call(myIterable); - * ... - * } - * - * @param {?object} maybeIterable - * @return {?function} - */ - function getIteratorFn(maybeIterable) { - var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]); - if (typeof iteratorFn === 'function') { - return iteratorFn; - } - } + var home = getHomeLocation(state.critical); + var result = moveCrossAxis({ + isMovingForward: isMovingForward, + pageBorderBoxCenter: state.current.page.borderBoxCenter, + draggableId: state.critical.draggable.id, + droppableId: droppable.descriptor.id, + home: home, + draggables: state.dimensions.draggables, + droppables: state.dimensions.droppables, + previousImpact: state.impact, + viewport: state.viewport + }); - /** - * Collection of methods that allow declaration and validation of props that are - * supplied to React components. Example usage: - * - * var Props = require('ReactPropTypes'); - * var MyArticle = React.createClass({ - * propTypes: { - * // An optional string prop named "description". - * description: Props.string, - * - * // A required enum prop named "category". - * category: Props.oneOf(['News','Photos']).isRequired, - * - * // A prop named "dialog" that requires an instance of Dialog. - * dialog: Props.instanceOf(Dialog).isRequired - * }, - * render: function() { ... } - * }); - * - * A more formal specification of how these methods are used: - * - * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...) - * decl := ReactPropTypes.{type}(.isRequired)? - * - * Each and every declaration produces a function with the same signature. This - * allows the creation of custom validation functions. For example: - * - * var MyLink = React.createClass({ - * propTypes: { - * // An optional string or URI prop named "href". - * href: function(props, propName, componentName) { - * var propValue = props[propName]; - * if (propValue != null && typeof propValue !== 'string' && - * !(propValue instanceof URI)) { - * return new Error( - * 'Expected a string or an URI for ' + propName + ' in ' + - * componentName - * ); - * } - * } - * }, - * render: function() {...} - * }); - * - * @internal - */ + if (!result) { + return null; + } - var ANONYMOUS = '<>'; + return { + clientSelection: getClientSelection(result.pageBorderBoxCenter, state.viewport.scroll.current), + impact: result.impact, + scrollJumpRequest: null + }; + }); - // Important! - // Keep this list in sync with production version in `./factoryWithThrowingShims.js`. - var ReactPropTypes = { - array: createPrimitiveTypeChecker('array'), - bool: createPrimitiveTypeChecker('boolean'), - func: createPrimitiveTypeChecker('function'), - number: createPrimitiveTypeChecker('number'), - object: createPrimitiveTypeChecker('object'), - string: createPrimitiveTypeChecker('string'), - symbol: createPrimitiveTypeChecker('symbol'), + var scrollViewport = (function (viewport, newScroll) { + var diff = subtract(newScroll, viewport.scroll.initial); + var displacement = negate(diff); + var frame = Object(__WEBPACK_IMPORTED_MODULE_2_css_box_model__["d" /* getRect */])({ + top: newScroll.y, + bottom: newScroll.y + viewport.frame.height, + left: newScroll.x, + right: newScroll.x + viewport.frame.width + }); + var updated = { + frame: frame, + scroll: { + initial: viewport.scroll.initial, + max: viewport.scroll.max, + current: newScroll, + diff: { + value: diff, + displacement: displacement + } + } + }; + return updated; + }); - any: createAnyTypeChecker(), - arrayOf: createArrayOfTypeChecker, - element: createElementTypeChecker(), - instanceOf: createInstanceTypeChecker, - node: createNodeChecker(), - objectOf: createObjectOfTypeChecker, - oneOf: createEnumTypeChecker, - oneOfType: createUnionTypeChecker, - shape: createShapeTypeChecker, - exact: createStrictShapeTypeChecker, - }; + var getHomeImpact = (function (critical, dimensions) { + var home = dimensions.droppables[critical.droppable.id]; + var axis = home.axis; + var draggable = dimensions.draggables[critical.draggable.id]; + return { + movement: { + displaced: [], + isBeyondStartPosition: false, + amount: patch(axis.line, draggable.client.marginBox[axis.size]) + }, + direction: axis.direction, + destination: getHomeLocation(critical) + }; + }); - /** - * inlined Object.is polyfill to avoid requiring consumers ship their own - * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is - */ - /*eslint-disable no-self-compare*/ - function is(x, y) { - // SameValue algorithm - if (x === y) { - // Steps 1-5, 7-10 - // Steps 6.b-6.e: +0 != -0 - return x !== 0 || 1 / x === 1 / y; - } else { - // Step 6.a: NaN == NaN - return x !== x && y !== y; - } - } - /*eslint-enable no-self-compare*/ + var getPageItemPositions = (function (client, windowScroll) { + return { + selection: add(client.selection, windowScroll), + borderBoxCenter: add(client.borderBoxCenter, windowScroll), + offset: add(client.offset, windowScroll) + }; + }); - /** - * We use an Error-like object for backward compatibility as people may call - * PropTypes directly and inspect their output. However, we don't use real - * Errors anymore. We don't inspect their stack anyway, and creating them - * is prohibitively expensive if they are created too often, such as what - * happens in oneOfType() for any type before the one that matched. - */ - function PropTypeError(message) { - this.message = message; - this.stack = ''; - } - // Make `instanceof Error` still work for returned errors. - PropTypeError.prototype = Error.prototype; + function isMovementAllowed(state) { + return state.phase === 'DRAGGING' || state.phase === 'COLLECTING'; + } - function createChainableTypeChecker(validate) { - { - var manualPropTypeCallCache = {}; - var manualPropTypeWarningCount = 0; - } - function checkType(isRequired, props, propName, componentName, location, propFullName, secret) { - componentName = componentName || ANONYMOUS; - propFullName = propFullName || propName; + var idle = { + phase: 'IDLE' + }; + var preparing = { + phase: 'PREPARING' + }; - if (secret !== ReactPropTypesSecret_1) { - if (throwOnDirectAccess) { - // New behavior only for users of `prop-types` package - invariant_1( - false, - 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' + - 'Use `PropTypes.checkPropTypes()` to call them. ' + - 'Read more at http://fb.me/use-check-prop-types' - ); - } else if ("development" !== 'production' && typeof console !== 'undefined') { - // Old behavior for people using React.PropTypes - var cacheKey = componentName + ':' + propName; - if ( - !manualPropTypeCallCache[cacheKey] && - // Avoid spamming the console because they are often not actionable except for lib authors - manualPropTypeWarningCount < 3 - ) { - warning_1( - false, - 'You are manually calling a React.PropTypes validation ' + - 'function for the `%s` prop on `%s`. This is deprecated ' + - 'and will throw in the standalone `prop-types` package. ' + - 'You may be seeing this warning due to a third-party PropTypes ' + - 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.', - propFullName, - componentName - ); - manualPropTypeCallCache[cacheKey] = true; - manualPropTypeWarningCount++; - } - } - } - if (props[propName] == null) { - if (isRequired) { - if (props[propName] === null) { - return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.')); - } - return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.')); - } - return null; - } else { - return validate(props, propName, componentName, location, propFullName); - } - } + var moveWithPositionUpdates = function moveWithPositionUpdates(_ref) { + var state = _ref.state, + clientSelection = _ref.clientSelection, + shouldAnimate = _ref.shouldAnimate, + viewport = _ref.viewport, + impact = _ref.impact, + scrollJumpRequest = _ref.scrollJumpRequest; + var newViewport = viewport || state.viewport; + var currentWindowScroll = newViewport.scroll.current; - var chainedCheckType = checkType.bind(null, false); - chainedCheckType.isRequired = checkType.bind(null, true); + var client = function () { + var offset = subtract(clientSelection, state.initial.client.selection); + return { + offset: offset, + selection: clientSelection, + borderBoxCenter: add(state.initial.client.borderBoxCenter, offset) + }; + }(); - return chainedCheckType; - } + var page = getPageItemPositions(client, currentWindowScroll); + var current = { + client: client, + page: page + }; - function createPrimitiveTypeChecker(expectedType) { - function validate(props, propName, componentName, location, propFullName, secret) { - var propValue = props[propName]; - var propType = getPropType(propValue); - if (propType !== expectedType) { - // `propValue` being instance of, say, date/regexp, pass the 'object' - // check, but we can offer a more precise error message here rather than - // 'of type `object`'. - var preciseType = getPreciseType(propValue); + if (state.phase === 'COLLECTING') { + return Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({ + phase: 'COLLECTING' + }, state, { + current: current + }); + } - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.')); - } - return null; - } - return createChainableTypeChecker(validate); - } + var newImpact = impact || getDragImpact({ + pageBorderBoxCenter: page.borderBoxCenter, + draggable: state.dimensions.draggables[state.critical.draggable.id], + draggables: state.dimensions.draggables, + droppables: state.dimensions.droppables, + previousImpact: state.impact, + viewport: newViewport + }); - function createAnyTypeChecker() { - return createChainableTypeChecker(emptyFunction_1.thatReturnsNull); - } + var result = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({}, state, { + current: current, + shouldAnimate: shouldAnimate, + impact: newImpact, + scrollJumpRequest: scrollJumpRequest || null, + viewport: newViewport + }); - function createArrayOfTypeChecker(typeChecker) { - function validate(props, propName, componentName, location, propFullName) { - if (typeof typeChecker !== 'function') { - return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.'); - } - var propValue = props[propName]; - if (!Array.isArray(propValue)) { - var propType = getPropType(propValue); - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.')); - } - for (var i = 0; i < propValue.length; i++) { - var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret_1); - if (error instanceof Error) { - return error; - } - } - return null; - } - return createChainableTypeChecker(validate); - } + return result; + }; - function createElementTypeChecker() { - function validate(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - if (!isValidElement(propValue)) { - var propType = getPropType(propValue); - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.')); - } - return null; - } - return createChainableTypeChecker(validate); - } + var reducer = (function (state, action) { + if (state === void 0) { + state = idle; + } - function createInstanceTypeChecker(expectedClass) { - function validate(props, propName, componentName, location, propFullName) { - if (!(props[propName] instanceof expectedClass)) { - var expectedClassName = expectedClass.name || ANONYMOUS; - var actualClassName = getClassName(props[propName]); - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.')); - } - return null; - } - return createChainableTypeChecker(validate); - } + if (action.type === 'CLEAN') { + return idle; + } - function createEnumTypeChecker(expectedValues) { - if (!Array.isArray(expectedValues)) { - warning_1(false, 'Invalid argument supplied to oneOf, expected an instance of array.'); - return emptyFunction_1.thatReturnsNull; - } + if (action.type === 'PREPARE') { + return preparing; + } - function validate(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - for (var i = 0; i < expectedValues.length; i++) { - if (is(propValue, expectedValues[i])) { - return null; - } - } + if (action.type === 'INITIAL_PUBLISH') { + !(state.phase === 'PREPARING') ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'INITIAL_PUBLISH must come after a PREPARING phase') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + var _action$payload = action.payload, + critical = _action$payload.critical, + client = _action$payload.client, + viewport = _action$payload.viewport, + dimensions = _action$payload.dimensions, + autoScrollMode = _action$payload.autoScrollMode; + var initial = { + client: client, + page: { + selection: add(client.selection, viewport.scroll.initial), + borderBoxCenter: add(client.selection, viewport.scroll.initial), + offset: origin + } + }; + var result = { + phase: 'DRAGGING', + isDragging: true, + critical: critical, + autoScrollMode: autoScrollMode, + dimensions: dimensions, + initial: initial, + current: initial, + impact: getHomeImpact(critical, dimensions), + viewport: viewport, + scrollJumpRequest: null, + shouldAnimate: false + }; + return result; + } - var valuesString = JSON.stringify(expectedValues); - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.')); - } - return createChainableTypeChecker(validate); - } + if (action.type === 'COLLECTION_STARTING') { + var _extends2; - function createObjectOfTypeChecker(typeChecker) { - function validate(props, propName, componentName, location, propFullName) { - if (typeof typeChecker !== 'function') { - return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.'); - } - var propValue = props[propName]; - var propType = getPropType(propValue); - if (propType !== 'object') { - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.')); - } - for (var key in propValue) { - if (propValue.hasOwnProperty(key)) { - var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1); - if (error instanceof Error) { - return error; - } - } - } - return null; - } - return createChainableTypeChecker(validate); - } + if (state.phase === 'COLLECTING' || state.phase === 'DROP_PENDING') { + return state; + } - function createUnionTypeChecker(arrayOfTypeCheckers) { - if (!Array.isArray(arrayOfTypeCheckers)) { - warning_1(false, 'Invalid argument supplied to oneOfType, expected an instance of array.'); - return emptyFunction_1.thatReturnsNull; - } + !(state.phase === 'DRAGGING') ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, "Collection cannot start from phase " + state.phase) : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - for (var i = 0; i < arrayOfTypeCheckers.length; i++) { - var checker = arrayOfTypeCheckers[i]; - if (typeof checker !== 'function') { - warning_1( - false, - 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + - 'received %s at index %s.', - getPostfixForTypeWarning(checker), - i - ); - return emptyFunction_1.thatReturnsNull; - } - } + var _result = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({ + phase: 'COLLECTING' + }, state, (_extends2 = {}, _extends2["phase"] = 'COLLECTING', _extends2)); - function validate(props, propName, componentName, location, propFullName) { - for (var i = 0; i < arrayOfTypeCheckers.length; i++) { - var checker = arrayOfTypeCheckers[i]; - if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret_1) == null) { - return null; - } - } + return _result; + } - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.')); - } - return createChainableTypeChecker(validate); - } + if (action.type === 'PUBLISH') { + !(state.phase === 'COLLECTING' || state.phase === 'DROP_PENDING') ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, "Unexpected " + action.type + " received in phase " + state.phase) : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, "Dynamic additions and removals of Draggable and Droppable components\n is currently not supported. But will be soon!") : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false); + } - function createNodeChecker() { - function validate(props, propName, componentName, location, propFullName) { - if (!isNode(props[propName])) { - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.')); - } - return null; - } - return createChainableTypeChecker(validate); - } + if (action.type === 'MOVE') { + if (state.phase === 'PREPARING') { + return state; + } - function createShapeTypeChecker(shapeTypes) { - function validate(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - var propType = getPropType(propValue); - if (propType !== 'object') { - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); - } - for (var key in shapeTypes) { - var checker = shapeTypes[key]; - if (!checker) { - continue; - } - var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1); - if (error) { - return error; - } - } - return null; - } - return createChainableTypeChecker(validate); - } + if (state.phase === 'DROP_PENDING') { + return state; + } - function createStrictShapeTypeChecker(shapeTypes) { - function validate(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - var propType = getPropType(propValue); - if (propType !== 'object') { - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); - } - // We need to check all keys in case some are required but missing from - // props. - var allKeys = objectAssign({}, props[propName], shapeTypes); - for (var key in allKeys) { - var checker = shapeTypes[key]; - if (!checker) { - return new PropTypeError( - 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' + - '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + - '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ') - ); - } - var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1); - if (error) { - return error; - } - } - return null; - } + !isMovementAllowed(state) ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, action.type + " not permitted in phase " + state.phase) : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + var _action$payload2 = action.payload, + _client = _action$payload2.client, + shouldAnimate = _action$payload2.shouldAnimate; - return createChainableTypeChecker(validate); - } + if (state.shouldAnimate === shouldAnimate && isEqual(_client, state.current.client.selection)) { + return state; + } - function isNode(propValue) { - switch (typeof propValue) { - case 'number': - case 'string': - case 'undefined': - return true; - case 'boolean': - return !propValue; - case 'object': - if (Array.isArray(propValue)) { - return propValue.every(isNode); - } - if (propValue === null || isValidElement(propValue)) { - return true; - } + var impact = state.autoScrollMode === 'JUMP' ? state.impact : null; + return moveWithPositionUpdates({ + state: state, + clientSelection: _client, + impact: impact, + shouldAnimate: shouldAnimate + }); + } - var iteratorFn = getIteratorFn(propValue); - if (iteratorFn) { - var iterator = iteratorFn.call(propValue); - var step; - if (iteratorFn !== propValue.entries) { - while (!(step = iterator.next()).done) { - if (!isNode(step.value)) { - return false; - } - } - } else { - // Iterator will provide entry [k,v] tuples rather than values. - while (!(step = iterator.next()).done) { - var entry = step.value; - if (entry) { - if (!isNode(entry[1])) { - return false; - } - } - } - } - } else { - return false; - } + if (action.type === 'UPDATE_DROPPABLE_SCROLL') { + var _extends3, _extends4; - return true; - default: - return false; - } - } + if (state.phase === 'PREPARING') { + return state; + } - function isSymbol(propType, propValue) { - // Native Symbol. - if (propType === 'symbol') { - return true; - } + if (state.phase === 'DROP_PENDING') { + return state; + } - // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol' - if (propValue['@@toStringTag'] === 'Symbol') { - return true; - } + !isMovementAllowed(state) ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, action.type + " not permitted in phase " + state.phase) : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + var _action$payload3 = action.payload, + id = _action$payload3.id, + offset = _action$payload3.offset; + var target = state.dimensions.droppables[id]; - // Fallback for non-spec compliant Symbols which are polyfilled. - if (typeof Symbol === 'function' && propValue instanceof Symbol) { - return true; - } + if (!target) { + return state; + } - return false; - } + var updated = scrollDroppable(target, offset); - // Equivalent of `typeof` but with special handling for array and regexp. - function getPropType(propValue) { - var propType = typeof propValue; - if (Array.isArray(propValue)) { - return 'array'; - } - if (propValue instanceof RegExp) { - // Old webkits (at least until Android 4.0) return 'function' rather than - // 'object' for typeof a RegExp. We'll normalize this here so that /bla/ - // passes PropTypes.object. - return 'object'; - } - if (isSymbol(propType, propValue)) { - return 'symbol'; - } - return propType; - } + var _dimensions = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({}, state.dimensions, { + droppables: Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({}, state.dimensions.droppables, (_extends3 = {}, _extends3[id] = updated, _extends3)) + }); - // This handles more types than `getPropType`. Only used for error messages. - // See `createPrimitiveTypeChecker`. - function getPreciseType(propValue) { - if (typeof propValue === 'undefined' || propValue === null) { - return '' + propValue; - } - var propType = getPropType(propValue); - if (propType === 'object') { - if (propValue instanceof Date) { - return 'date'; - } else if (propValue instanceof RegExp) { - return 'regexp'; - } - } - return propType; - } + var _impact = function () { + !isMovementAllowed(state) ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - // Returns a string that is postfixed to a warning about an invalid type. - // For example, "undefined" or "of type array" - function getPostfixForTypeWarning(value) { - var type = getPreciseType(value); - switch (type) { - case 'array': - case 'object': - return 'an ' + type; - case 'boolean': - case 'date': - case 'regexp': - return 'a ' + type; - default: - return type; - } - } + if (state.autoScrollMode === 'JUMP') { + return state.impact; + } - // Returns class name of the object, if any. - function getClassName(propValue) { - if (!propValue.constructor || !propValue.constructor.name) { - return ANONYMOUS; - } - return propValue.constructor.name; - } + return getDragImpact({ + pageBorderBoxCenter: state.current.page.borderBoxCenter, + draggable: _dimensions.draggables[state.critical.draggable.id], + draggables: _dimensions.draggables, + droppables: _dimensions.droppables, + previousImpact: state.impact, + viewport: state.viewport + }); + }(); - ReactPropTypes.checkPropTypes = checkPropTypes_1; - ReactPropTypes.PropTypes = ReactPropTypes; + return Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({ + phase: 'DRAGGING' + }, state, (_extends4 = {}, _extends4["phase"] = state.phase, _extends4.impact = _impact, _extends4.dimensions = _dimensions, _extends4.scrollJumpRequest = null, _extends4)); + } - return ReactPropTypes; - }; + if (action.type === 'UPDATE_DROPPABLE_IS_ENABLED') { + var _extends5, _extends6; - var propTypes = createCommonjsModule(function (module) { - /** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ + if (state.phase === 'DROP_PENDING') { + return state; + } - { - var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' && - Symbol.for && - Symbol.for('react.element')) || - 0xeac7; + !isMovementAllowed(state) ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, "Attempting to move in an unsupported phase " + state.phase) : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + var _action$payload4 = action.payload, + _id = _action$payload4.id, + isEnabled = _action$payload4.isEnabled; + var _target = state.dimensions.droppables[_id]; + !_target ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, "Cannot find Droppable[id: " + _id + "] to toggle its enabled state") : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + !(_target.isEnabled !== isEnabled) ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, "Trying to set droppable isEnabled to " + String(isEnabled) + "\n but it is already " + String(_target.isEnabled)) : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - var isValidElement = function(object) { - return typeof object === 'object' && - object !== null && - object.$$typeof === REACT_ELEMENT_TYPE; - }; + var _updated = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({}, _target, { + isEnabled: isEnabled + }); - // By explicitly using `prop-types` you are opting into new development behavior. - // http://fb.me/prop-types-in-prod - var throwOnDirectAccess = true; - module.exports = factoryWithTypeCheckers(isValidElement, throwOnDirectAccess); - } - }); + var _dimensions2 = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({}, state.dimensions, { + droppables: Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({}, state.dimensions.droppables, (_extends5 = {}, _extends5[_id] = _updated, _extends5)) + }); - var classnames = createCommonjsModule(function (module) { - /*! - Copyright (c) 2016 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames - */ - /* global define */ + var _impact2 = getDragImpact({ + pageBorderBoxCenter: state.current.page.borderBoxCenter, + draggable: _dimensions2.draggables[state.critical.draggable.id], + draggables: _dimensions2.draggables, + droppables: _dimensions2.droppables, + previousImpact: state.impact, + viewport: state.viewport + }); - (function () { + return Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({ + phase: 'DRAGGING' + }, state, (_extends6 = {}, _extends6["phase"] = state.phase, _extends6.impact = _impact2, _extends6.dimensions = _dimensions2, _extends6)); + } - var hasOwn = {}.hasOwnProperty; + if (action.type === 'MOVE_BY_WINDOW_SCROLL') { + if (state.phase === 'PREPARING') { + return state; + } - function classNames () { - var classes = []; + if (state.phase === 'DROP_PENDING' || state.phase === 'DROP_ANIMATING') { + return state; + } - for (var i = 0; i < arguments.length; i++) { - var arg = arguments[i]; - if (!arg) continue; + !isMovementAllowed(state) ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, "Cannot move by window in phase " + state.phase) : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + var newScroll = action.payload.scroll; - var argType = typeof arg; + if (isEqual(state.viewport.scroll.current, newScroll)) { + return state; + } - if (argType === 'string' || argType === 'number') { - classes.push(arg); - } else if (Array.isArray(arg)) { - classes.push(classNames.apply(null, arg)); - } else if (argType === 'object') { - for (var key in arg) { - if (hasOwn.call(arg, key) && arg[key]) { - classes.push(key); - } - } - } - } + var isJumpScrolling = state.autoScrollMode === 'JUMP'; - return classes.join(' '); - } + var _impact3 = isJumpScrolling ? state.impact : null; - if ('object' !== 'undefined' && module.exports) { - module.exports = classNames; - } else if (false) { - // register as 'classnames', consistent with npm package name - undefined('classnames', [], function () { - return classNames; - }); - } else { - window.classNames = classNames; - } - }()); - }); + var _viewport = scrollViewport(state.viewport, newScroll); - // @credits https://gist.github.com/rogozhnikoff/a43cfed27c41e4e68cdc - function findInArray(array /*: Array | TouchList*/, callback /*: Function*/) /*: any*/ { - for (var i = 0, length = array.length; i < length; i++) { - if (callback.apply(callback, [array[i], i, array])) return array[i]; - } - } + return moveWithPositionUpdates({ + state: state, + clientSelection: state.current.client.selection, + viewport: _viewport, + shouldAnimate: false, + impact: _impact3 + }); + } - function isFunction(func /*: any*/) /*: boolean*/ { - return typeof func === 'function' || Object.prototype.toString.call(func) === '[object Function]'; - } + if (action.type === 'UPDATE_VIEWPORT_MAX_SCROLL') { + var _extends7; - function isNum(num /*: any*/) /*: boolean*/ { - return typeof num === 'number' && !isNaN(num); - } + !state.isDragging ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot update the max viewport scroll if not dragging') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + var existing = state.viewport; - function int(a /*: string*/) /*: number*/ { - return parseInt(a, 10); - } + var _viewport2 = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({}, existing, { + scroll: Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({}, existing.scroll, { + max: action.payload + }) + }); - function dontSetMe(props /*: Object*/, propName /*: string*/, componentName /*: string*/) { - if (props[propName]) { - return new Error('Invalid prop ' + propName + ' passed to ' + componentName + ' - do not set this, set it on the child.'); - } - } + return Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({ + phase: 'DRAGGING' + }, state, (_extends7 = {}, _extends7["phase"] = state.phase, _extends7.viewport = _viewport2, _extends7)); + } - var prefixes = ['Moz', 'Webkit', 'O', 'ms']; - function getPrefix() /*: string*/ { - var prop /*: string*/ = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'transform'; + if (action.type === 'MOVE_UP' || action.type === 'MOVE_DOWN' || action.type === 'MOVE_LEFT' || action.type === 'MOVE_RIGHT') { + if (state.phase === 'PREPARING') { + return state; + } - // Checking specifically for 'window.document' is for pseudo-browser server-side - // environments that define 'window' as the global context. - // E.g. React-rails (see https://github.com/reactjs/react-rails/pull/84) - if (typeof window === 'undefined' || typeof window.document === 'undefined') return ''; + if (state.phase === 'COLLECTING' || state.phase === 'DROP_PENDING') { + return state; + } - var style = window.document.documentElement.style; + !(state.phase === 'DRAGGING') ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, action.type + " received while not in DRAGGING phase") : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - if (prop in style) return ''; + var _result2 = moveInDirection({ + state: state, + type: action.type + }); - for (var i = 0; i < prefixes.length; i++) { - if (browserPrefixToKey(prop, prefixes[i]) in style) return prefixes[i]; - } + if (!_result2) { + return state; + } - return ''; - } + return moveWithPositionUpdates({ + state: state, + impact: _result2.impact, + clientSelection: _result2.clientSelection, + shouldAnimate: true, + scrollJumpRequest: _result2.scrollJumpRequest + }); + } - function browserPrefixToKey(prop /*: string*/, prefix /*: string*/) /*: string*/ { - return prefix ? '' + prefix + kebabToTitleCase(prop) : prop; - } + if (action.type === 'DROP_PENDING') { + var _extends8; - function kebabToTitleCase(str /*: string*/) /*: string*/ { - var out = ''; - var shouldCapitalize = true; - for (var i = 0; i < str.length; i++) { - if (shouldCapitalize) { - out += str[i].toUpperCase(); - shouldCapitalize = false; - } else if (str[i] === '-') { - shouldCapitalize = true; - } else { - out += str[i]; - } - } - return out; - } + var reason = action.payload.reason; + !(state.phase === 'COLLECTING') ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Can only move into the DROP_PENDING phase from the COLLECTING phase') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - // Default export is the prefix itself, like 'Moz', 'Webkit', etc - // Note that you may have to re-test for certain things; for instance, Chrome 50 - // can handle unprefixed `transform`, but not unprefixed `user-select` - var browserPrefix = getPrefix(); + var newState = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({ + phase: 'DROP_PENDING' + }, state, (_extends8 = {}, _extends8["phase"] = 'DROP_PENDING', _extends8.isWaiting = true, _extends8.reason = reason, _extends8)); - var classCallCheck = function (instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } - }; + return newState; + } - var createClass = function () { - function defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); - } - } + if (action.type === 'DROP_ANIMATE') { + var pending = action.payload; + !(state.phase === 'DRAGGING' || state.phase === 'DROP_PENDING') ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, "Cannot animate drop from phase " + state.phase) : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + var _result3 = { + phase: 'DROP_ANIMATING', + pending: pending, + dimensions: state.dimensions + }; + return _result3; + } - return function (Constructor, protoProps, staticProps) { - if (protoProps) defineProperties(Constructor.prototype, protoProps); - if (staticProps) defineProperties(Constructor, staticProps); - return Constructor; - }; - }(); + if (action.type === 'DROP_COMPLETE') { + return idle; + } - var defineProperty = function (obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } + return state; + }); - return obj; - }; + var lift = function lift(args) { + return { + type: 'LIFT', + payload: args + }; + }; + var initialPublish = function initialPublish(args) { + return { + type: 'INITIAL_PUBLISH', + payload: args + }; + }; + var publish = function publish(args) { + return { + type: 'PUBLISH', + payload: args + }; + }; + var collectionStarting = function collectionStarting() { + return { + type: 'COLLECTION_STARTING', + payload: null + }; + }; + var updateDroppableScroll = function updateDroppableScroll(args) { + return { + type: 'UPDATE_DROPPABLE_SCROLL', + payload: args + }; + }; + var updateDroppableIsEnabled = function updateDroppableIsEnabled(args) { + return { + type: 'UPDATE_DROPPABLE_IS_ENABLED', + payload: args + }; + }; + var move = function move(args) { + return { + type: 'MOVE', + payload: args + }; + }; + var moveByWindowScroll = function moveByWindowScroll(args) { + return { + type: 'MOVE_BY_WINDOW_SCROLL', + payload: args + }; + }; + var updateViewportMaxScroll = function updateViewportMaxScroll(max) { + return { + type: 'UPDATE_VIEWPORT_MAX_SCROLL', + payload: max + }; + }; + var moveUp = function moveUp() { + return { + type: 'MOVE_UP', + payload: null + }; + }; + var moveDown = function moveDown() { + return { + type: 'MOVE_DOWN', + payload: null + }; + }; + var moveRight = function moveRight() { + return { + type: 'MOVE_RIGHT', + payload: null + }; + }; + var moveLeft = function moveLeft() { + return { + type: 'MOVE_LEFT', + payload: null + }; + }; + var clean = function clean() { + return { + type: 'CLEAN', + payload: null + }; + }; + var prepare = function prepare() { + return { + type: 'PREPARE', + payload: null + }; + }; + var animateDrop = function animateDrop(pending) { + return { + type: 'DROP_ANIMATE', + payload: pending + }; + }; + var completeDrop = function completeDrop(result) { + return { + type: 'DROP_COMPLETE', + payload: result + }; + }; + var drop = function drop(args) { + return { + type: 'DROP', + payload: args + }; + }; + var dropPending = function dropPending(args) { + return { + type: 'DROP_PENDING', + payload: args + }; + }; + var dropAnimationFinished = function dropAnimationFinished() { + return { + type: 'DROP_ANIMATION_FINISHED', + payload: null + }; + }; - var _extends = Object.assign || function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; + var lift$1 = (function (getMarshal) { + var timeoutId = null; - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } + var tryAbortCriticalCollection = function tryAbortCriticalCollection() { + if (timeoutId == null) { + return; + } - return target; - }; + clearTimeout(timeoutId); + timeoutId = null; + }; - var inherits = function (subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); - } + return function (_ref) { + var getState = _ref.getState, + dispatch = _ref.dispatch; + return function (next) { + return function (action) { + if (action.type === 'CLEAN') { + tryAbortCriticalCollection(); + next(action); + return; + } - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - enumerable: false, - writable: true, - configurable: true - } - }); - if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; - }; + if (action.type !== 'LIFT') { + next(action); + return; + } - var possibleConstructorReturn = function (self, call) { - if (!self) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } + !!timeoutId ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'There should not be a pending complete lift phase when a lift action is fired') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + var marshal = getMarshal(); + var _action$payload = action.payload, + id = _action$payload.id, + client = _action$payload.client, + autoScrollMode = _action$payload.autoScrollMode, + viewport = _action$payload.viewport; + var initial = getState(); - return call && (typeof call === "object" || typeof call === "function") ? call : self; - }; + if (initial.phase === 'DROP_ANIMATING') { + dispatch(completeDrop(initial.pending.result)); + } - var slicedToArray = function () { - function sliceIterator(arr, i) { - var _arr = []; - var _n = true; - var _d = false; - var _e = undefined; + var postFlushState = getState(); + !(postFlushState.phase === 'IDLE') ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Incorrect phase to start a drag') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + dispatch(prepare()); + timeoutId = setTimeout(function () { + timeoutId = null; + var state = getState(); + !(state.phase === 'PREPARING') ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Invalid phase for completing lift') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + var scrollOptions = { + shouldPublishImmediately: autoScrollMode === 'JUMP' + }; + var request = { + draggableId: id, + scrollOptions: scrollOptions + }; - try { - for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { - _arr.push(_s.value); + var _marshal$startPublish = marshal.startPublishing(request, viewport.scroll.current), + critical = _marshal$startPublish.critical, + dimensions = _marshal$startPublish.dimensions; - if (i && _arr.length === i) break; - } - } catch (err) { - _d = true; - _e = err; - } finally { - try { - if (!_n && _i["return"]) _i["return"](); - } finally { - if (_d) throw _e; - } - } + dispatch(initialPublish({ + critical: critical, + dimensions: dimensions, + client: client, + autoScrollMode: autoScrollMode, + viewport: viewport + })); + }); + }; + }; + }; + }); - return _arr; - } + var style = (function (marshal) { + return function () { + return function (next) { + return function (action) { + if (action.type === 'INITIAL_PUBLISH') { + marshal.dragging(); + } - return function (arr, i) { - if (Array.isArray(arr)) { - return arr; - } else if (Symbol.iterator in Object(arr)) { - return sliceIterator(arr, i); - } else { - throw new TypeError("Invalid attempt to destructure non-iterable instance"); - } - }; - }(); + if (action.type === 'COLLECTION_STARTING') { + marshal.collecting(); + } - /*:: import type {ControlPosition, PositionOffsetControlPosition, MouseTouchEvent} from './types';*/ + if (action.type === 'PUBLISH') { + marshal.dragging(); + } + if (action.type === 'DROP_ANIMATE') { + marshal.dropping(action.payload.result.reason); + } - var matchesSelectorFunc = ''; - function matchesSelector(el /*: Node*/, selector /*: string*/) /*: boolean*/ { - if (!matchesSelectorFunc) { - matchesSelectorFunc = findInArray(['matches', 'webkitMatchesSelector', 'mozMatchesSelector', 'msMatchesSelector', 'oMatchesSelector'], function (method) { - // $FlowIgnore: Doesn't think elements are indexable - return isFunction(el[method]); - }); - } + if (action.type === 'CLEAN' || action.type === 'DROP_COMPLETE') { + marshal.resting(); + } - // Might not be found entirely (not an Element?) - in that case, bail - // $FlowIgnore: Doesn't think elements are indexable - if (!isFunction(el[matchesSelectorFunc])) return false; + next(action); + }; + }; + }; + }); - // $FlowIgnore: Doesn't think elements are indexable - return el[matchesSelectorFunc](selector); - } + var getNewHomeClientBorderBoxCenter = (function (_ref) { + var movement = _ref.movement, + draggable = _ref.draggable, + draggables = _ref.draggables, + destination = _ref.destination; + var originalCenter = draggable.client.borderBox.center; - // Works up the tree to the draggable itself attempting to match selector. - function matchesSelectorAndParentsTo(el /*: Node*/, selector /*: string*/, baseNode /*: Node*/) /*: boolean*/ { - var node = el; - do { - if (matchesSelector(node, selector)) return true; - if (node === baseNode) return false; - node = node.parentNode; - } while (node); + if (destination == null) { + return originalCenter; + } - return false; - } + var displaced = movement.displaced, + isBeyondStartPosition = movement.isBeyondStartPosition; + var axis = destination.axis; + var isWithinHomeDroppable = destination.descriptor.id === draggable.descriptor.droppableId; - function addEvent(el /*: ?Node*/, event /*: string*/, handler /*: Function*/) /*: void*/ { - if (!el) { - return; - } - if (el.attachEvent) { - el.attachEvent('on' + event, handler); - } else if (el.addEventListener) { - el.addEventListener(event, handler, true); - } else { - // $FlowIgnore: Doesn't think elements are indexable - el['on' + event] = handler; - } - } + if (isWithinHomeDroppable && !displaced.length) { + return originalCenter; + } - function removeEvent(el /*: ?Node*/, event /*: string*/, handler /*: Function*/) /*: void*/ { - if (!el) { - return; - } - if (el.detachEvent) { - el.detachEvent('on' + event, handler); - } else if (el.removeEventListener) { - el.removeEventListener(event, handler, true); - } else { - // $FlowIgnore: Doesn't think elements are indexable - el['on' + event] = null; - } - } + var draggablesInDestination = getDraggablesInsideDroppable(destination, draggables); - function outerHeight(node /*: HTMLElement*/) /*: number*/ { - // This is deliberately excluding margin for our calculations, since we are using - // offsetTop which is including margin. See getBoundPosition - var height = node.clientHeight; - var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node); - height += int(computedStyle.borderTopWidth); - height += int(computedStyle.borderBottomWidth); - return height; - } + var movingRelativeTo = function () { + if (isWithinHomeDroppable) { + return draggables[displaced[0].draggableId].client.borderBox; + } - function outerWidth(node /*: HTMLElement*/) /*: number*/ { - // This is deliberately excluding margin for our calculations, since we are using - // offsetLeft which is including margin. See getBoundPosition - var width = node.clientWidth; - var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node); - width += int(computedStyle.borderLeftWidth); - width += int(computedStyle.borderRightWidth); - return width; - } - function innerHeight(node /*: HTMLElement*/) /*: number*/ { - var height = node.clientHeight; - var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node); - height -= int(computedStyle.paddingTop); - height -= int(computedStyle.paddingBottom); - return height; - } + if (displaced.length) { + return draggables[displaced[0].draggableId].client.borderBox; + } - function innerWidth(node /*: HTMLElement*/) /*: number*/ { - var width = node.clientWidth; - var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node); - width -= int(computedStyle.paddingLeft); - width -= int(computedStyle.paddingRight); - return width; - } + if (draggablesInDestination.length) { + return draggablesInDestination[draggablesInDestination.length - 1].client.marginBox; + } - // Get from offsetParent - function offsetXYFromParent(evt /*: {clientX: number, clientY: number}*/, offsetParent /*: HTMLElement*/) /*: ControlPosition*/ { - var isBody = offsetParent === offsetParent.ownerDocument.body; - var offsetParentRect = isBody ? { left: 0, top: 0 } : offsetParent.getBoundingClientRect(); + return destination.client.contentBox; + }(); - var x = evt.clientX + offsetParent.scrollLeft - offsetParentRect.left; - var y = evt.clientY + offsetParent.scrollTop - offsetParentRect.top; + var _ref2 = function () { + if (isWithinHomeDroppable) { + if (isBeyondStartPosition) { + return { + sourceEdge: 'end', + destinationEdge: 'end' + }; + } - return { x: x, y: y }; - } + return { + sourceEdge: 'start', + destinationEdge: 'start' + }; + } - function createCSSTransform(controlPos /*: ControlPosition*/, positionOffset /*: PositionOffsetControlPosition*/) /*: Object*/ { - var translation = getTranslation(controlPos, positionOffset, 'px'); - return defineProperty({}, browserPrefixToKey('transform', browserPrefix), translation); - } + if (!displaced.length && draggablesInDestination.length) { + return { + sourceEdge: 'start', + destinationEdge: 'end' + }; + } - function createSVGTransform(controlPos /*: ControlPosition*/, positionOffset /*: PositionOffsetControlPosition*/) /*: string*/ { - var translation = getTranslation(controlPos, positionOffset, ''); - return translation; - } - function getTranslation(_ref2, positionOffset /*: PositionOffsetControlPosition*/, unitSuffix /*: string*/) /*: string*/ { - var x = _ref2.x, - y = _ref2.y; + return { + sourceEdge: 'start', + destinationEdge: 'start' + }; + }(), + sourceEdge = _ref2.sourceEdge, + destinationEdge = _ref2.destinationEdge; - var translation = 'translate(' + x + unitSuffix + ',' + y + unitSuffix + ')'; - if (positionOffset) { - var defaultX = '' + (typeof positionOffset.x === 'string' ? positionOffset.x : positionOffset.x + unitSuffix); - var defaultY = '' + (typeof positionOffset.y === 'string' ? positionOffset.y : positionOffset.y + unitSuffix); - translation = 'translate(' + defaultX + ', ' + defaultY + ')' + translation; - } - return translation; - } + var source = draggable.client.borderBox; + var targetCenter = moveToEdge({ + source: source, + sourceEdge: sourceEdge, + destination: movingRelativeTo, + destinationEdge: destinationEdge, + destinationAxis: axis + }); + return targetCenter; + }); - function getTouch(e /*: MouseTouchEvent*/, identifier /*: number*/) /*: ?{clientX: number, clientY: number}*/ { - return e.targetTouches && findInArray(e.targetTouches, function (t) { - return identifier === t.identifier; - }) || e.changedTouches && findInArray(e.changedTouches, function (t) { - return identifier === t.identifier; - }); - } + var getScrollDisplacement = function getScrollDisplacement(droppable, viewport) { + return withDroppableDisplacement(droppable, viewport.scroll.diff.displacement); + }; - function getTouchIdentifier(e /*: MouseTouchEvent*/) /*: ?number*/ { - if (e.targetTouches && e.targetTouches[0]) return e.targetTouches[0].identifier; - if (e.changedTouches && e.changedTouches[0]) return e.changedTouches[0].identifier; - } + var drop$1 = (function (_ref) { + var getState = _ref.getState, + dispatch = _ref.dispatch; + return function (next) { + return function (action) { + if (action.type !== 'DROP') { + next(action); + return; + } - // User-select Hacks: - // - // Useful for preventing blue highlights all over everything when dragging. + var state = getState(); + var reason = action.payload.reason; - // Note we're passing `document` b/c we could be iframed - function addUserSelectStyles(doc /*: ?Document*/) { - if (!doc) return; - var styleEl = doc.getElementById('react-draggable-style-el'); - if (!styleEl) { - styleEl = doc.createElement('style'); - styleEl.type = 'text/css'; - styleEl.id = 'react-draggable-style-el'; - styleEl.innerHTML = '.react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n'; - styleEl.innerHTML += '.react-draggable-transparent-selection *::selection {all: inherit;}\n'; - doc.getElementsByTagName('head')[0].appendChild(styleEl); - } - if (doc.body) addClassName(doc.body, 'react-draggable-transparent-selection'); - } + if (state.phase === 'COLLECTING') { + dispatch(dropPending({ + reason: reason + })); + return; + } - function removeUserSelectStyles(doc /*: ?Document*/) { - try { - if (doc && doc.body) removeClassName(doc.body, 'react-draggable-transparent-selection'); - // $FlowIgnore: IE - if (doc.selection) { - // $FlowIgnore: IE - doc.selection.empty(); - } else { - window.getSelection().removeAllRanges(); // remove selection caused by scroll - } - } catch (e) { - // probably IE - } - } + if (state.phase === 'PREPARING') { + dispatch(clean()); + return; + } - function styleHacks() /*: Object*/ { - var childStyle /*: Object*/ = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + if (state.phase === 'IDLE') { + return; + } - // Workaround IE pointer events; see #51 - // https://github.com/mzabriskie/react-draggable/issues/51#issuecomment-103488278 - return _extends({ - touchAction: 'none' - }, childStyle); - } + var isWaitingForDrop = state.phase === 'DROP_PENDING' && state.isWaiting; + !!isWaitingForDrop ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'A DROP action occurred while DROP_PENDING and still waiting') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + !(state.phase === 'DRAGGING' || state.phase === 'DROP_PENDING') ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, "Cannot drop in phase: " + state.phase) : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + var critical = state.critical; + var dimensions = state.dimensions; + var impact = reason === 'DROP' ? state.impact : noImpact; + var home = dimensions.droppables[state.critical.droppable.id]; + var draggable = dimensions.draggables[state.critical.draggable.id]; + var droppable = impact && impact.destination ? dimensions.droppables[impact.destination.droppableId] : null; + var source = { + index: critical.draggable.index, + droppableId: critical.droppable.id + }; + var destination = reason === 'DROP' ? impact.destination : null; + var result = { + draggableId: draggable.descriptor.id, + type: home.descriptor.type, + source: source, + destination: destination, + reason: reason + }; - function addClassName(el /*: HTMLElement*/, className /*: string*/) { - if (el.classList) { - el.classList.add(className); - } else { - if (!el.className.match(new RegExp('(?:^|\\s)' + className + '(?!\\S)'))) { - el.className += ' ' + className; - } - } - } + var clientOffset = function () { + if (reason === 'CANCEL') { + return origin; + } - function removeClassName(el /*: HTMLElement*/, className /*: string*/) { - if (el.classList) { - el.classList.remove(className); - } else { - el.className = el.className.replace(new RegExp('(?:^|\\s)' + className + '(?!\\S)', 'g'), ''); - } - } + var newBorderBoxClientCenter = getNewHomeClientBorderBoxCenter({ + movement: impact.movement, + draggable: draggable, + draggables: dimensions.draggables, + destination: droppable + }); + return subtract(newBorderBoxClientCenter, draggable.client.borderBox.center); + }(); - /*:: import type Draggable from '../Draggable';*/ - /*:: import type {Bounds, ControlPosition, DraggableData, MouseTouchEvent} from './types';*/ - /*:: import type DraggableCore from '../DraggableCore';*/ + var newHomeOffset = add(clientOffset, getScrollDisplacement(droppable || home, state.viewport)); + var isAnimationRequired = !isEqual(state.current.client.offset, newHomeOffset); + var pending = { + newHomeOffset: newHomeOffset, + result: result, + impact: impact + }; + if (isAnimationRequired) { + dispatch(animateDrop(pending)); + return; + } - function getBoundPosition(draggable /*: Draggable*/, x /*: number*/, y /*: number*/) /*: [number, number]*/ { - // If no bounds, short-circuit and move on - if (!draggable.props.bounds) return [x, y]; + dispatch(completeDrop(result)); + }; + }; + }); - // Clone new bounds - var bounds = draggable.props.bounds; + var onDragStart = function onDragStart(start) { + return "\n You have lifted an item in position " + (start.source.index + 1) + ".\n Use the arrow keys to move, space bar to drop, and escape to cancel.\n"; + }; - bounds = typeof bounds === 'string' ? bounds : cloneBounds(bounds); - var node = findDOMNode(draggable); + var onDragUpdate = function onDragUpdate(update) { + if (!update.destination) { + return 'You are currently not dragging over a droppable area'; + } - if (typeof bounds === 'string') { - var ownerDocument = node.ownerDocument; + if (update.source.droppableId === update.destination.droppableId) { + return "You have moved the item to position " + (update.destination.index + 1); + } - var ownerWindow = ownerDocument.defaultView; - var boundNode = void 0; - if (bounds === 'parent') { - boundNode = node.parentNode; - } else { - boundNode = ownerDocument.querySelector(bounds); - } - if (!(boundNode instanceof ownerWindow.HTMLElement)) { - throw new Error('Bounds selector "' + bounds + '" could not find an element.'); - } - var nodeStyle = ownerWindow.getComputedStyle(node); - var boundNodeStyle = ownerWindow.getComputedStyle(boundNode); - // Compute bounds. This is a pain with padding and offsets but this gets it exactly right. - bounds = { - left: -node.offsetLeft + int(boundNodeStyle.paddingLeft) + int(nodeStyle.marginLeft), - top: -node.offsetTop + int(boundNodeStyle.paddingTop) + int(nodeStyle.marginTop), - right: innerWidth(boundNode) - outerWidth(node) - node.offsetLeft + int(boundNodeStyle.paddingRight) - int(nodeStyle.marginRight), - bottom: innerHeight(boundNode) - outerHeight(node) - node.offsetTop + int(boundNodeStyle.paddingBottom) - int(nodeStyle.marginBottom) - }; - } + return "\n You have moved the item from list " + update.source.droppableId + " in position " + (update.source.index + 1) + "\n to list " + update.destination.droppableId + " in position " + (update.destination.index + 1) + "\n "; + }; - // Keep x and y below right and bottom limits... - if (isNum(bounds.right)) x = Math.min(x, bounds.right); - if (isNum(bounds.bottom)) y = Math.min(y, bounds.bottom); + var onDragEnd = function onDragEnd(result) { + if (result.reason === 'CANCEL') { + return "\n Movement cancelled.\n The item has returned to its starting position of " + (result.source.index + 1) + "\n "; + } - // But above left and top limits. - if (isNum(bounds.left)) x = Math.max(x, bounds.left); - if (isNum(bounds.top)) y = Math.max(y, bounds.top); + if (!result.destination) { + return "\n The item has been dropped while not over a droppable location.\n The item has returned to its starting position of " + (result.source.index + 1) + "\n "; + } - return [x, y]; - } + if (result.source.droppableId === result.destination.droppableId) { + if (result.source.index === result.destination.index) { + return "\n You have dropped the item.\n It has been dropped on its starting position of " + (result.source.index + 1) + "\n "; + } - function snapToGrid(grid /*: [number, number]*/, pendingX /*: number*/, pendingY /*: number*/) /*: [number, number]*/ { - var x = Math.round(pendingX / grid[0]) * grid[0]; - var y = Math.round(pendingY / grid[1]) * grid[1]; - return [x, y]; - } + return "\n You have dropped the item.\n It has moved from position " + (result.source.index + 1) + " to " + (result.destination.index + 1) + "\n "; + } - function canDragX(draggable /*: Draggable*/) /*: boolean*/ { - return draggable.props.axis === 'both' || draggable.props.axis === 'x'; - } + return "\n You have dropped the item.\n It has moved from position " + (result.source.index + 1) + " in list " + result.source.droppableId + "\n to position " + (result.destination.index + 1) + " in list " + result.destination.droppableId + "\n "; + }; - function canDragY(draggable /*: Draggable*/) /*: boolean*/ { - return draggable.props.axis === 'both' || draggable.props.axis === 'y'; - } + var preset = { + onDragStart: onDragStart, + onDragUpdate: onDragUpdate, + onDragEnd: onDragEnd + }; - // Get {x, y} positions from event. - function getControlPosition(e /*: MouseTouchEvent*/, touchIdentifier /*: ?number*/, draggableCore /*: DraggableCore*/) /*: ?ControlPosition*/ { - var touchObj = typeof touchIdentifier === 'number' ? getTouch(e, touchIdentifier) : null; - if (typeof touchIdentifier === 'number' && !touchObj) return null; // not the right touch - var node = findDOMNode(draggableCore); - // User can provide an offsetParent if desired. - var offsetParent = draggableCore.props.offsetParent || node.offsetParent || node.ownerDocument.body; - return offsetXYFromParent(touchObj || e, offsetParent); - } + var records = {}; + var flag = '__react-beautiful-dnd-debug-timings-hook__'; - // Create an data object exposed by 's events - function createCoreData(draggable /*: DraggableCore*/, x /*: number*/, y /*: number*/) /*: DraggableData*/ { - var state = draggable.state; - var isStart = !isNum(state.lastX); - var node = findDOMNode(draggable); + var isTimingsEnabled = function isTimingsEnabled() { + return Boolean(window[flag]); + }; - if (isStart) { - // If this is our first move, use the x and y as last coords. - return { - node: node, - deltaX: 0, deltaY: 0, - lastX: x, lastY: y, - x: x, y: y - }; - } else { - // Otherwise calculate proper values. - return { - node: node, - deltaX: x - state.lastX, deltaY: y - state.lastY, - lastX: state.lastX, lastY: state.lastY, - x: x, y: y - }; - } - } + var start = function start(key) { + if (process.env.NODE_ENV !== 'production') { + if (!isTimingsEnabled()) { + return; + } - // Create an data exposed by 's events - function createDraggableData(draggable /*: Draggable*/, coreData /*: DraggableData*/) /*: DraggableData*/ { - var scale = draggable.props.scale; - return { - node: coreData.node, - x: draggable.state.x + coreData.deltaX / scale, - y: draggable.state.y + coreData.deltaY / scale, - deltaX: coreData.deltaX / scale, - deltaY: coreData.deltaY / scale, - lastX: draggable.state.x, - lastY: draggable.state.y - }; - } + var now = performance.now(); + records[key] = now; + } + }; + var finish = function finish(key) { + if (process.env.NODE_ENV !== 'production') { + if (!isTimingsEnabled()) { + return; + } - // A lot faster than stringify/parse - function cloneBounds(bounds /*: Bounds*/) /*: Bounds*/ { - return { - left: bounds.left, - top: bounds.top, - right: bounds.right, - bottom: bounds.bottom - }; - } + var now = performance.now(); + var previous = records[key]; + !previous ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'cannot finish timing as no previous time found') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + var result = now - previous; + var rounded = result.toFixed(2); - function findDOMNode(draggable /*: Draggable | DraggableCore*/) /*: HTMLElement*/ { - var node = ReactDOM.findDOMNode(draggable); - if (!node) { - throw new Error(': Unmounted during event!'); - } - // $FlowIgnore we can't assert on HTMLElement due to tests... FIXME - return node; - } + var style = function () { + if (result < 12) { + return { + textColor: 'green', + symbol: '✅' + }; + } - /*eslint no-console:0*/ - function log() { - } + if (result < 40) { + return { + textColor: 'orange', + symbol: '⚠️' + }; + } - /*:: import type {EventHandler, MouseTouchEvent} from './utils/types';*/ + return { + textColor: 'red', + symbol: '❌' + }; + }(); + console.log(style.symbol + " %cTiming %c" + rounded + " %cms %c" + key, 'color: blue; font-weight: bold; ', "color: " + style.textColor + "; font-size: 1.1em;", 'color: grey;', 'color: purple; font-weight: bold;'); + } + }; - // Simple abstraction for dragging events names. - /*:: import type {Element as ReactElement} from 'react';*/ - var eventsFor = { - touch: { - start: 'touchstart', - move: 'touchmove', - stop: 'touchend' - }, - mouse: { - start: 'mousedown', - move: 'mousemove', - stop: 'mouseup' - } - }; + var withTimings = function withTimings(key, fn) { + start(key); + fn(); + finish(key); + }; - // Default to mouse events. - var dragEventFor = eventsFor.mouse; + var areLocationsEqual = function areLocationsEqual(first, second) { + if (first == null && second == null) { + return true; + } - /*:: type DraggableCoreState = { - dragging: boolean, - lastX: number, - lastY: number, - touchIdentifier: ?number - };*/ - /*:: export type DraggableBounds = { - left: number, - right: number, - top: number, - bottom: number, - };*/ - /*:: export type DraggableData = { - node: HTMLElement, - x: number, y: number, - deltaX: number, deltaY: number, - lastX: number, lastY: number, - };*/ - /*:: export type DraggableEventHandler = (e: MouseEvent, data: DraggableData) => void;*/ - /*:: export type ControlPosition = {x: number, y: number};*/ - /*:: export type PositionOffsetControlPosition = {x: number|string, y: number|string};*/ + if (first == null || second == null) { + return false; + } + return first.droppableId === second.droppableId && first.index === second.index; + }; - // - // Define . - // - // is for advanced usage of . It maintains minimal internal state so it can - // work well with libraries that require more control over the element. - // + var isCriticalEqual = function isCriticalEqual(first, second) { + if (first === second) { + return true; + } - /*:: export type DraggableCoreProps = { - allowAnyClick: boolean, - cancel: string, - children: ReactElement, - disabled: boolean, - enableUserSelectHack: boolean, - offsetParent: HTMLElement, - grid: [number, number], - handle: string, - onStart: DraggableEventHandler, - onDrag: DraggableEventHandler, - onStop: DraggableEventHandler, - onMouseDown: (e: MouseEvent) => void, - };*/ + var isDraggableEqual = first.draggable.id === second.draggable.id && first.draggable.droppableId === second.draggable.droppableId && first.draggable.type === second.draggable.type && first.draggable.index === second.draggable.index; + var isDroppableEqual = first.droppable.id === second.droppable.id && first.droppable.type === second.droppable.type; + return isDraggableEqual && isDroppableEqual; + }; - var DraggableCore = function (_React$Component) { - inherits(DraggableCore, _React$Component); + var getExpiringAnnounce = function getExpiringAnnounce(announce) { + var wasCalled = false; + var isExpired = false; + setTimeout(function () { + isExpired = true; + }); - function DraggableCore() { - var _ref; + var result = function result(message) { + if (wasCalled) { + if (process.env.NODE_ENV !== 'production') { + console.warn('Announcement already made. Not making a second announcement'); + } - var _temp, _this, _ret; + return; + } - classCallCheck(this, DraggableCore); + if (isExpired) { + if (process.env.NODE_ENV !== 'production') { + console.warn("\n Announcements cannot be made asynchronously.\n Default message has already been announced.\n "); + } - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } + return; + } - return _ret = (_temp = (_this = possibleConstructorReturn(this, (_ref = DraggableCore.__proto__ || Object.getPrototypeOf(DraggableCore)).call.apply(_ref, [this].concat(args))), _this), _this.state = { - dragging: false, - // Used while dragging to determine deltas. - lastX: NaN, lastY: NaN, - touchIdentifier: null - }, _this.handleDragStart = function (e) { - // Make it possible to attach event handlers on top of this one. - _this.props.onMouseDown(e); + wasCalled = true; + announce(message); + }; - // Only accept left-clicks. - if (!_this.props.allowAnyClick && typeof e.button === 'number' && e.button !== 0) return false; + result.wasCalled = function () { + return wasCalled; + }; - // Get nodes. Be sure to grab relative document (could be iframed) - var thisNode = ReactDOM.findDOMNode(_this); - if (!thisNode || !thisNode.ownerDocument || !thisNode.ownerDocument.body) { - throw new Error(' not mounted on DragStart!'); - } - var ownerDocument = thisNode.ownerDocument; + return result; + }; - // Short circuit if handle or cancel prop was provided and selector doesn't match. + var getDragStart = function getDragStart(critical) { + return { + draggableId: critical.draggable.id, + type: critical.droppable.type, + source: { + droppableId: critical.droppable.id, + index: critical.draggable.index + } + }; + }; - if (_this.props.disabled || !(e.target instanceof ownerDocument.defaultView.Node) || _this.props.handle && !matchesSelectorAndParentsTo(e.target, _this.props.handle, thisNode) || _this.props.cancel && matchesSelectorAndParentsTo(e.target, _this.props.cancel, thisNode)) { - return; - } + var hooks = (function (getHooks, announce) { + var execute = function execute(hook, data, getDefaultMessage) { + if (!hook) { + announce(getDefaultMessage(data)); + return; + } - // Set touch identifier in component state if this is a touch event. This allows us to - // distinguish between individual touches on multitouch screens by identifying which - // touchpoint was set to this element. - var touchIdentifier = getTouchIdentifier(e); - _this.setState({ touchIdentifier: touchIdentifier }); + var willExpire = getExpiringAnnounce(announce); + var provided = { + announce: willExpire + }; + hook(data, provided); - // Get the current drag point from the event. This is used as the offset. - var position = getControlPosition(e, touchIdentifier, _this); - if (position == null) return; // not possible but satisfies flow - var x = position.x, - y = position.y; + if (!willExpire.wasCalled()) { + announce(getDefaultMessage(data)); + } + }; - // Create an event object with all the data parents need to make a decision here. + var publisher = function () { + var lastLocation = null; + var lastCritical = null; + var _isDragStartPublished = false; - var coreEvent = createCoreData(_this, x, y); + var beforeStart = function beforeStart(critical) { + !!_isDragStartPublished ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot fire onBeforeDragStart as a drag start has already been published') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + withTimings('onBeforeDragStart', function () { + var fn = getHooks().onBeforeDragStart; - // Call event handler. If it returns explicit false, cancel. - log('calling', _this.props.onStart); - var shouldUpdate = _this.props.onStart(e, coreEvent); - if (shouldUpdate === false) return; + if (fn) { + fn(getDragStart(critical)); + } + }); + }; - // Add a style to the body to disable user-select. This prevents text from - // being selected all over the page. - if (_this.props.enableUserSelectHack) addUserSelectStyles(ownerDocument); + var start$$1 = function start$$1(critical) { + !!_isDragStartPublished ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot fire onBeforeDragStart as a drag start has already been published') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + var data = getDragStart(critical); + lastCritical = critical; + lastLocation = data.source; + _isDragStartPublished = true; + withTimings('onDragStart', function () { + return execute(getHooks().onDragStart, data, preset.onDragStart); + }); + }; - // Initiate dragging. Set the current x and y as offsets - // so we know how much we've moved during the drag. This allows us - // to drag elements around even if they have been moved, without issue. - _this.setState({ - dragging: true, + var move = function move(critical, location) { + !(_isDragStartPublished && lastCritical) ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot fire onDragMove when onDragStart has not been called') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + var hasCriticalChanged = !isCriticalEqual(critical, lastCritical); - lastX: x, - lastY: y - }); + if (hasCriticalChanged) { + lastCritical = critical; + } - // Add events to the document directly so we catch when the user's mouse/touch moves outside of - // this element. We use different events depending on whether or not we have detected that this - // is a touch-capable device. - addEvent(ownerDocument, dragEventFor.move, _this.handleDrag); - addEvent(ownerDocument, dragEventFor.stop, _this.handleDragStop); - }, _this.handleDrag = function (e) { + var hasLocationChanged = !areLocationsEqual(lastLocation, location); - // Prevent scrolling on mobile devices, like ipad/iphone. - if (e.type === 'touchmove') e.preventDefault(); + if (hasLocationChanged) { + lastLocation = location; + } - // Get the current drag point from the event. This is used as the offset. - var position = getControlPosition(e, _this.state.touchIdentifier, _this); - if (position == null) return; - var x = position.x, - y = position.y; + if (!hasCriticalChanged && !hasLocationChanged) { + return; + } - // Snap to grid if prop has been provided + var data = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({}, getDragStart(critical), { + destination: location + }); - if (Array.isArray(_this.props.grid)) { - var _deltaX = x - _this.state.lastX, - _deltaY = y - _this.state.lastY; + withTimings('onDragUpdate', function () { + return execute(getHooks().onDragUpdate, data, preset.onDragUpdate); + }); + }; - var _snapToGrid = snapToGrid(_this.props.grid, _deltaX, _deltaY); + var drop = function drop(result) { + !_isDragStartPublished ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot fire onDragEnd when there is no matching onDragStart') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + _isDragStartPublished = false; + lastLocation = null; + lastCritical = null; + withTimings('onDragEnd', function () { + return execute(getHooks().onDragEnd, result, preset.onDragEnd); + }); + }; - var _snapToGrid2 = slicedToArray(_snapToGrid, 2); + var abort = function abort() { + !(_isDragStartPublished && lastCritical) ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot cancel when onDragStart not fired') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - _deltaX = _snapToGrid2[0]; - _deltaY = _snapToGrid2[1]; + var result = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({}, getDragStart(lastCritical), { + destination: null, + reason: 'CANCEL' + }); - if (!_deltaX && !_deltaY) return; // skip useless drag - x = _this.state.lastX + _deltaX, y = _this.state.lastY + _deltaY; - } + drop(result); + }; - var coreEvent = createCoreData(_this, x, y); + return { + beforeStart: beforeStart, + start: start$$1, + move: move, + drop: drop, + abort: abort, + isDragStartPublished: function isDragStartPublished() { + return _isDragStartPublished; + } + }; + }(); - // Call event handler. If it returns explicit false, trigger end. - var shouldUpdate = _this.props.onDrag(e, coreEvent); - if (shouldUpdate === false) { - try { - // $FlowIgnore - _this.handleDragStop(new MouseEvent('mouseup')); - } catch (err) { - // Old browsers - var event = ((document.createEvent('MouseEvents') /*: any*/) /*: MouseTouchEvent*/); - // I see why this insanity was deprecated - // $FlowIgnore - event.initMouseEvent('mouseup', true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null); - _this.handleDragStop(event); - } - return; - } + return function (store) { + return function (next) { + return function (action) { + if (action.type === 'INITIAL_PUBLISH') { + var critical = action.payload.critical; + publisher.beforeStart(critical); + next(action); + publisher.start(critical); + return; + } - _this.setState({ - lastX: x, - lastY: y - }); - }, _this.handleDragStop = function (e) { - if (!_this.state.dragging) return; + next(action); - var position = getControlPosition(e, _this.state.touchIdentifier, _this); - if (position == null) return; - var x = position.x, - y = position.y; + if (action.type === 'DROP_COMPLETE') { + var result = action.payload; + publisher.drop(result); + return; + } - var coreEvent = createCoreData(_this, x, y); + if (action.type === 'CLEAN') { + if (publisher.isDragStartPublished()) { + publisher.abort(); + } - var thisNode = ReactDOM.findDOMNode(_this); - if (thisNode) { - // Remove user-select hack - if (_this.props.enableUserSelectHack) removeUserSelectStyles(thisNode.ownerDocument); - } + return; + } - // Reset the el. - _this.setState({ - dragging: false, - lastX: NaN, - lastY: NaN - }); + if (!publisher.isDragStartPublished()) { + return; + } - // Call event handler - _this.props.onStop(e, coreEvent); + var state = store.getState(); - if (thisNode) { - removeEvent(thisNode.ownerDocument, dragEventFor.move, _this.handleDrag); - removeEvent(thisNode.ownerDocument, dragEventFor.stop, _this.handleDragStop); - } - }, _this.onMouseDown = function (e) { - dragEventFor = eventsFor.mouse; // on touchscreen laptops we could switch back to mouse + if (state.phase === 'DRAGGING') { + publisher.move(state.critical, state.impact.destination); + } + }; + }; + }; + }); - return _this.handleDragStart(e); - }, _this.onMouseUp = function (e) { - dragEventFor = eventsFor.mouse; + var dropAnimationFinish = (function (store) { + return function (next) { + return function (action) { + if (action.type !== 'DROP_ANIMATION_FINISHED') { + next(action); + return; + } - return _this.handleDragStop(e); - }, _this.onTouchStart = function (e) { - // We're on a touch device now, so change the event handlers - dragEventFor = eventsFor.touch; + var state = store.getState(); + !(state.phase === 'DROP_ANIMATING') ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot finish a drop animating when no drop is occurring') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + store.dispatch(completeDrop(state.pending.result)); + }; + }; + }); - return _this.handleDragStart(e); - }, _this.onTouchEnd = function (e) { - // We're on a touch device now, so change the event handlers - dragEventFor = eventsFor.touch; + var dimensionMarshalStopper = (function (getMarshal) { + return function () { + return function (next) { + return function (action) { + if (action.type === 'DROP_COMPLETE' || action.type === 'CLEAN' || action.type === 'DROP_ANIMATE') { + var marshal = getMarshal(); + marshal.stopPublishing(); + } - return _this.handleDragStop(e); - }, _temp), possibleConstructorReturn(_this, _ret); - } + next(action); + }; + }; + }; + }); - createClass(DraggableCore, [{ - key: 'componentWillUnmount', - value: function componentWillUnmount() { - // Remove any leftover event handlers. Remove both touch and mouse handlers in case - // some browser quirk caused a touch event to fire during a mouse move, or vice versa. - var thisNode = ReactDOM.findDOMNode(this); - if (thisNode) { - var ownerDocument = thisNode.ownerDocument; + var shouldCancel = function shouldCancel(action) { + return action.type === 'CANCEL' || action.type === 'DROP_ANIMATE' || action.type === 'DROP' || action.type === 'DROP_COMPLETE' || action.type === 'COLLECTION_STARTING'; + }; - removeEvent(ownerDocument, eventsFor.mouse.move, this.handleDrag); - removeEvent(ownerDocument, eventsFor.touch.move, this.handleDrag); - removeEvent(ownerDocument, eventsFor.mouse.stop, this.handleDragStop); - removeEvent(ownerDocument, eventsFor.touch.stop, this.handleDragStop); - if (this.props.enableUserSelectHack) removeUserSelectStyles(ownerDocument); - } - } + var autoScroll = (function (getScroller) { + return function (store) { + return function (next) { + return function (action) { + if (shouldCancel(action)) { + getScroller().cancel(); + next(action); + return; + } - // Same as onMouseDown (start drag), but now consider this a touch device. + next(action); + var state = store.getState(); - }, { - key: 'render', - value: function render() { - // Reuse the child provided - // This makes it flexible to use whatever element is wanted (div, ul, etc) - return React.cloneElement(React.Children.only(this.props.children), { - style: styleHacks(this.props.children.props.style), + if (state.phase !== 'DRAGGING') { + return; + } - // Note: mouseMove handler is attached to document so it will still function - // when the user drags quickly and leaves the bounds of the element. - onMouseDown: this.onMouseDown, - onTouchStart: this.onTouchStart, - onMouseUp: this.onMouseUp, - onTouchEnd: this.onTouchEnd - }); - } - }]); - return DraggableCore; - }(React.Component); + if (state.autoScrollMode === 'FLUID') { + getScroller().fluidScroll(state); + return; + } - DraggableCore.displayName = 'DraggableCore'; - DraggableCore.propTypes = { - /** - * `allowAnyClick` allows dragging using any mouse button. - * By default, we only accept the left button. - * - * Defaults to `false`. - */ - allowAnyClick: propTypes.bool, + if (!state.scrollJumpRequest) { + return; + } - /** - * `disabled`, if true, stops the from dragging. All handlers, - * with the exception of `onMouseDown`, will not fire. - */ - disabled: propTypes.bool, + getScroller().jumpScroll(state); + }; + }; + }; + }); - /** - * By default, we add 'user-select:none' attributes to the document body - * to prevent ugly text selection during drag. If this is causing problems - * for your app, set this to `false`. - */ - enableUserSelectHack: propTypes.bool, + var shouldCheckOnAction = function shouldCheckOnAction(action) { + return action.type === 'MOVE' || action.type === 'MOVE_UP' || action.type === 'MOVE_RIGHT' || action.type === 'MOVE_DOWN' || action.type === 'MOVE_LEFT' || action.type === 'MOVE_BY_WINDOW_SCROLL'; + }; - /** - * `offsetParent`, if set, uses the passed DOM node to compute drag offsets - * instead of using the parent node. - */ - offsetParent: function offsetParent(props /*: DraggableCoreProps*/, propName /*: $Keys*/) { - if (props[propName] && props[propName].nodeType !== 1) { - throw new Error('Draggable\'s offsetParent must be a DOM Node.'); - } - }, + var hasDroppableOverChanged = function hasDroppableOverChanged(previous, current) { + if (!previous) { + return Boolean(current); + } - /** - * `grid` specifies the x and y that dragging should snap to. - */ - grid: propTypes.arrayOf(propTypes.number), + if (!current) { + return Boolean(previous); + } - /** - * `scale` specifies the scale of the area you are dragging inside of. It allows - * the drag deltas to scale correctly with how far zoomed in/out you are. - */ - scale: propTypes.number, + return previous.droppableId !== current.droppableId; + }; - /** - * `handle` specifies a selector to be used as the handle that initiates drag. - * - * Example: - * - * ```jsx - * let App = React.createClass({ - * render: function () { - * return ( - * - *
    - *
    Click me to drag
    - *
    This is some other content
    - *
    - *
    - * ); - * } - * }); - * ``` - */ - handle: propTypes.string, + var getNewMaxScroll = function getNewMaxScroll(previous, current, action) { + if (!shouldCheckOnAction(action)) { + return null; + } - /** - * `cancel` specifies a selector to be used to prevent drag initialization. - * - * Example: - * - * ```jsx - * let App = React.createClass({ - * render: function () { - * return( - * - *
    - *
    You can't drag from here
    - *
    Dragging here works fine
    - *
    - *
    - * ); - * } - * }); - * ``` - */ - cancel: propTypes.string, + if (!isMovementAllowed(previous) || !isMovementAllowed(current)) { + return null; + } - /** - * Called when dragging starts. - * If this function returns the boolean false, dragging will be canceled. - */ - onStart: propTypes.func, + if (!hasDroppableOverChanged(previous.impact.destination, current.impact.destination)) { + return null; + } - /** - * Called while dragging. - * If this function returns the boolean false, dragging will be canceled. - */ - onDrag: propTypes.func, + var viewport = current.viewport; + var doc = document.documentElement; + !doc ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Could not find document.documentElement') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + var maxScroll = getMaxScroll({ + scrollHeight: doc.scrollHeight, + scrollWidth: doc.scrollWidth, + width: viewport.frame.width, + height: viewport.frame.height + }); - /** - * Called when dragging stops. - * If this function returns the boolean false, the drag will remain active. - */ - onStop: propTypes.func, + if (isEqual(maxScroll, viewport.scroll.max)) { + return null; + } - /** - * A workaround option which can be passed if onMouseDown needs to be accessed, - * since it'll always be blocked (as there is internal use of onMouseDown) - */ - onMouseDown: propTypes.func, + return maxScroll; + }; - /** - * These properties should be defined on the child, not here. - */ - className: dontSetMe, - style: dontSetMe, - transform: dontSetMe - }; - DraggableCore.defaultProps = { - allowAnyClick: false, // by default only accept left click - cancel: null, - disabled: false, - enableUserSelectHack: true, - offsetParent: null, - handle: null, - grid: null, - transform: null, - onStart: function onStart() {}, - onDrag: function onDrag() {}, - onStop: function onStop() {}, - onMouseDown: function onMouseDown() {} - }; + var maxScrollUpdater = (function (store) { + return function (next) { + return function (action) { + var previous = store.getState(); + next(action); + var current = store.getState(); + var maxScroll = getNewMaxScroll(previous, current, action); - /*:: import type {DraggableEventHandler} from './utils/types';*/ - /*:: import type {Element as ReactElement} from 'react';*/ - /*:: type DraggableState = { - dragging: boolean, - dragged: boolean, - x: number, y: number, - slackX: number, slackY: number, - isElementSVG: boolean - };*/ + if (maxScroll) { + next(updateViewportMaxScroll(maxScroll)); + } + }; + }; + }); + var composeEnhancers = typeof window === 'object' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : __WEBPACK_IMPORTED_MODULE_5_redux__["c" /* compose */]; + var createStore$1 = (function (_ref) { + var getDimensionMarshal = _ref.getDimensionMarshal, + styleMarshal = _ref.styleMarshal, + getHooks = _ref.getHooks, + announce = _ref.announce, + getScroller = _ref.getScroller; + return Object(__WEBPACK_IMPORTED_MODULE_5_redux__["d" /* createStore */])(reducer, composeEnhancers(Object(__WEBPACK_IMPORTED_MODULE_5_redux__["a" /* applyMiddleware */])(style(styleMarshal), dimensionMarshalStopper(getDimensionMarshal), lift$1(getDimensionMarshal), drop$1, dropAnimationFinish, maxScrollUpdater, autoScroll(getScroller), hooks(getHooks, announce)))); + }); - // - // Define - // + var getEmptyMap = function getEmptyMap() { + return { + draggables: {}, + droppables: {} + }; + }; - /*:: export type DraggableProps = { - ...$Exact, - axis: 'both' | 'x' | 'y' | 'none', - bounds: DraggableBounds | string | false, - defaultClassName: string, - defaultClassNameDragging: string, - defaultClassNameDragged: string, - defaultPosition: ControlPosition, - positionOffset: PositionOffsetControlPosition, - position: ControlPosition, - scale: number - };*/ + var timingKey = 'Publish collection from DOM'; + var createPublisher = (function (_ref) { + var getProvided = _ref.getProvided, + callbacks = _ref.callbacks; + + var advancedUsageWarning = function () { + if (process.env.NODE_ENV === 'production') { + return function () {}; + } + + var hasAnnounced = false; + return function () { + if (hasAnnounced) { + return; + } - var Draggable = function (_React$Component) { - inherits(Draggable, _React$Component); + hasAnnounced = true; - function Draggable(props /*: DraggableProps*/) { - classCallCheck(this, Draggable); + if (process.env.NODE_ENV === 'production') { + return; + } - var _this = possibleConstructorReturn(this, (Draggable.__proto__ || Object.getPrototypeOf(Draggable)).call(this, props)); + console.warn("\n Advanced usage warning: you are adding or removing a dimension during a drag\n This an advanced feature used to support dynamic interactions such as lazy loading lists.\n\n Keep in mind the following restrictions:\n\n - Draggable's can only be added to Droppable's that are scroll containers\n - Adding a Droppable cannot impact the placement of other Droppables\n (it cannot push a Droppable on the page)\n\n (This warning will be stripped in production builds)\n ".trim()); + }; + }(); - _this.onDragStart = function (e, coreData) { + var additions = getEmptyMap(); + var removals = getEmptyMap(); + var frameId = null; - // Short-circuit if user's callback killed it. - var shouldStart = _this.props.onStart(e, createDraggableData(_this, coreData)); - // Kills start event on core as well, so move handlers are never bound. - if (shouldStart === false) return false; + var reset = function reset() { + additions = getEmptyMap(); + removals = getEmptyMap(); + }; - _this.setState({ dragging: true, dragged: true }); - }; + var collect = function collect() { + advancedUsageWarning(); - _this.onDrag = function (e, coreData) { - if (!_this.state.dragging) return false; + if (frameId) { + return; + } - var uiData = createDraggableData(_this, coreData); + frameId = requestAnimationFrame(function () { + frameId = null; + callbacks.collectionStarting(); + start(timingKey); - var newState /*: $Shape*/ = { - x: uiData.x, - y: uiData.y - }; + var _getProvided = getProvided(), + entries = _getProvided.entries, + collection = _getProvided.collection; - // Keep within bounds. - if (_this.props.bounds) { - // Save original x and y. - var _x = newState.x, - _y = newState.y; + var windowScroll = collection.initialWindowScroll; - // Add slack to the values used to calculate bound position. This will ensure that if - // we start removing slack, the element won't react to it right away until it's been - // completely removed. + var draggables = __WEBPACK_IMPORTED_MODULE_3__babel_runtime_corejs2_core_js_object_keys___default()(additions.draggables).map(function (id) { + return entries.draggables[id].getDimension(windowScroll); + }); - newState.x += _this.state.slackX; - newState.y += _this.state.slackY; + var droppables = __WEBPACK_IMPORTED_MODULE_3__babel_runtime_corejs2_core_js_object_keys___default()(additions.droppables).map(function (id) { + return entries.droppables[id].callbacks.getDimensionAndWatchScroll(windowScroll, collection.scrollOptions); + }); - // Get bound position. This will ceil/floor the x and y within the boundaries. + var result = { + additions: { + draggables: draggables, + droppables: droppables + }, + removals: { + draggables: __WEBPACK_IMPORTED_MODULE_3__babel_runtime_corejs2_core_js_object_keys___default()(removals.draggables), + droppables: __WEBPACK_IMPORTED_MODULE_3__babel_runtime_corejs2_core_js_object_keys___default()(removals.droppables) + } + }; + reset(); + finish(timingKey); + callbacks.publish(result); + }); + }; - var _getBoundPosition = getBoundPosition(_this, newState.x, newState.y), - _getBoundPosition2 = slicedToArray(_getBoundPosition, 2), - newStateX = _getBoundPosition2[0], - newStateY = _getBoundPosition2[1]; + var addDraggable = function addDraggable(id) { + additions.draggables[id] = true; - newState.x = newStateX; - newState.y = newStateY; + if (removals.draggables[id]) { + delete removals.draggables[id]; + } - // Recalculate slack by noting how much was shaved by the boundPosition handler. - newState.slackX = _this.state.slackX + (_x - newState.x); - newState.slackY = _this.state.slackY + (_y - newState.y); + collect(); + }; - // Update the event we fire to reflect what really happened after bounds took effect. - uiData.x = newState.x; - uiData.y = newState.y; - uiData.deltaX = newState.x - _this.state.x; - uiData.deltaY = newState.y - _this.state.y; - } + var removeDraggable = function removeDraggable(id) { + removals.draggables[id] = true; - // Short-circuit if user's callback killed it. - var shouldUpdate = _this.props.onDrag(e, uiData); - if (shouldUpdate === false) return false; + if (additions.draggables[id]) { + delete additions.draggables[id]; + } - _this.setState(newState); - }; + collect(); + }; - _this.onDragStop = function (e, coreData) { - if (!_this.state.dragging) return false; + var addDroppable = function addDroppable(id) { + additions.droppables[id] = true; - // Short-circuit if user's callback killed it. - var shouldStop = _this.props.onStop(e, createDraggableData(_this, coreData)); - if (shouldStop === false) return false; + if (removals.droppables[id]) { + delete removals.droppables[id]; + } - var newState /*: $Shape*/ = { - dragging: false, - slackX: 0, - slackY: 0 - }; + collect(); + }; - // If this is a controlled component, the result of this operation will be to - // revert back to the old position. We expect a handler on `onDragStop`, at the least. - var controlled = Boolean(_this.props.position); - if (controlled) { - var _this$props$position = _this.props.position, - _x2 = _this$props$position.x, - _y2 = _this$props$position.y; + var removeDroppable = function removeDroppable(id) { + removals.droppables[id] = true; - newState.x = _x2; - newState.y = _y2; - } + if (additions.droppables[id]) { + delete additions.droppables[id]; + } - _this.setState(newState); - }; + collect(); + }; - _this.state = { - // Whether or not we are currently dragging. - dragging: false, + var stop = function stop() { + if (!frameId) { + return; + } - // Whether or not we have been dragged before. - dragged: false, + cancelAnimationFrame(frameId); + frameId = null; + reset(); + }; - // Current transform x and y. - x: props.position ? props.position.x : props.defaultPosition.x, - y: props.position ? props.position.y : props.defaultPosition.y, + return { + addDraggable: addDraggable, + removeDraggable: removeDraggable, + addDroppable: addDroppable, + removeDroppable: removeDroppable, + stop: stop + }; + }); - // Used for compensating for out-of-bounds drags - slackX: 0, slackY: 0, + var createDimensionMarshal = (function (callbacks) { + var entries = { + droppables: {}, + draggables: {} + }; + var collection = null; + var publisher = createPublisher({ + callbacks: { + publish: callbacks.publish, + collectionStarting: callbacks.collectionStarting + }, + getProvided: function getProvided() { + !collection ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot get scroll options when there is no collection') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + return { + entries: entries, + collection: collection + }; + } + }); - // Can only determine if SVG after mounting - isElementSVG: false - }; + var registerDraggable = function registerDraggable(descriptor, getDimension) { + var entry = { + descriptor: descriptor, + getDimension: getDimension + }; + entries.draggables[descriptor.id] = entry; - if (props.position && !(props.onDrag || props.onStop)) { - // eslint-disable-next-line no-console - console.warn('A `position` was applied to this , without drag handlers. This will make this ' + 'component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the ' + '`position` of this element.'); - } - return _this; - } + if (!collection) { + return; + } - createClass(Draggable, [{ - key: 'componentDidMount', - value: function componentDidMount() { - // Check to see if the element passed is an instanceof SVGElement - if (typeof window.SVGElement !== 'undefined' && ReactDOM.findDOMNode(this) instanceof window.SVGElement) { - this.setState({ isElementSVG: true }); - } - } - }, { - key: 'componentWillReceiveProps', - value: function componentWillReceiveProps(nextProps /*: Object*/) { - // Set x/y if position has changed - if (nextProps.position && (!this.props.position || nextProps.position.x !== this.props.position.x || nextProps.position.y !== this.props.position.y)) { - this.setState({ x: nextProps.position.x, y: nextProps.position.y }); - } - } - }, { - key: 'componentWillUnmount', - value: function componentWillUnmount() { - this.setState({ dragging: false }); // prevents invariant if unmounted while dragging - } - }, { - key: 'render', - value: function render() /*: ReactElement*/ { - var _classNames; + if (collection.critical.draggable.type !== descriptor.type) { + return; + } - var style = {}, - svgTransform = null; + publisher.addDraggable(descriptor.id); + }; - // If this is controlled, we don't want to move it - unless it's dragging. - var controlled = Boolean(this.props.position); - var draggable = !controlled || this.state.dragging; + var updateDraggable = function updateDraggable(previous, descriptor, getDimension) { + !entries.draggables[previous.id] ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot update draggable registration as no previous registration was found') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + delete entries.draggables[previous.id]; + var entry = { + descriptor: descriptor, + getDimension: getDimension + }; + entries.draggables[descriptor.id] = entry; + }; - var position = this.props.position || this.props.defaultPosition; - var transformOpts = { - // Set left if horizontal drag is enabled - x: canDragX(this) && draggable ? this.state.x : position.x, + var unregisterDraggable = function unregisterDraggable(descriptor) { + var entry = entries.draggables[descriptor.id]; + !entry ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, "Cannot unregister Draggable with id " + descriptor.id + " as it is not registered") : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - // Set top if vertical drag is enabled - y: canDragY(this) && draggable ? this.state.y : position.y - }; + if (entry.descriptor !== descriptor) { + return; + } - // If this element was SVG, we use the `transform` attribute. - if (this.state.isElementSVG) { - svgTransform = createSVGTransform(transformOpts, this.props.positionOffset); - } else { - // Add a CSS transform to move the element around. This allows us to move the element around - // without worrying about whether or not it is relatively or absolutely positioned. - // If the item you are dragging already has a transform set, wrap it in a so - // has a clean slate. - style = createCSSTransform(transformOpts, this.props.positionOffset); - } + delete entries.draggables[descriptor.id]; - var _props = this.props, - defaultClassName = _props.defaultClassName, - defaultClassNameDragging = _props.defaultClassNameDragging, - defaultClassNameDragged = _props.defaultClassNameDragged; + if (!collection) { + return; + } + !(collection.critical.draggable.id !== descriptor.id) ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot remove the dragging item during a drag') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - var children = React.Children.only(this.props.children); + if (descriptor.type !== collection.critical.draggable.type) { + return; + } - // Mark with class while dragging - var className = classnames(children.props.className || '', defaultClassName, (_classNames = {}, defineProperty(_classNames, defaultClassNameDragging, this.state.dragging), defineProperty(_classNames, defaultClassNameDragged, this.state.dragged), _classNames)); + publisher.removeDraggable(descriptor.id); + }; - // Reuse the child provided - // This makes it flexible to use whatever element is wanted (div, ul, etc) - return React.createElement( - DraggableCore, - _extends({}, this.props, { onStart: this.onDragStart, onDrag: this.onDrag, onStop: this.onDragStop }), - React.cloneElement(children, { - className: className, - style: _extends({}, children.props.style, style), - transform: svgTransform - }) - ); - } - }]); - return Draggable; - }(React.Component); + var registerDroppable = function registerDroppable(descriptor, droppableCallbacks) { + var id = descriptor.id; + entries.droppables[id] = { + descriptor: descriptor, + callbacks: droppableCallbacks + }; - Draggable.displayName = 'Draggable'; - Draggable.propTypes = _extends({}, DraggableCore.propTypes, { + if (!collection) { + return; + } - /** - * `axis` determines which axis the draggable can move. - * - * Note that all callbacks will still return data as normal. This only - * controls flushing to the DOM. - * - * 'both' allows movement horizontally and vertically. - * 'x' limits movement to horizontal axis. - * 'y' limits movement to vertical axis. - * 'none' limits all movement. - * - * Defaults to 'both'. - */ - axis: propTypes.oneOf(['both', 'x', 'y', 'none']), + if (descriptor.type !== collection.critical.droppable.type) { + return; + } - /** - * `bounds` determines the range of movement available to the element. - * Available values are: - * - * 'parent' restricts movement within the Draggable's parent node. - * - * Alternatively, pass an object with the following properties, all of which are optional: - * - * {left: LEFT_BOUND, right: RIGHT_BOUND, bottom: BOTTOM_BOUND, top: TOP_BOUND} - * - * All values are in px. - * - * Example: - * - * ```jsx - * let App = React.createClass({ - * render: function () { - * return ( - * - *
    Content
    - *
    - * ); - * } - * }); - * ``` - */ - bounds: propTypes.oneOfType([propTypes.shape({ - left: propTypes.number, - right: propTypes.number, - top: propTypes.number, - bottom: propTypes.number - }), propTypes.string, propTypes.oneOf([false])]), + publisher.addDroppable(id); + }; - defaultClassName: propTypes.string, - defaultClassNameDragging: propTypes.string, - defaultClassNameDragged: propTypes.string, + var updateDroppable = function updateDroppable(previous, descriptor, droppableCallbacks) { + !entries.droppables[previous.id] ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot update droppable registration as no previous registration was found') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + delete entries.droppables[previous.id]; + var entry = { + descriptor: descriptor, + callbacks: droppableCallbacks + }; + entries.droppables[descriptor.id] = entry; - /** - * `defaultPosition` specifies the x and y that the dragged item should start at - * - * Example: - * - * ```jsx - * let App = React.createClass({ - * render: function () { - * return ( - * - *
    I start with transformX: 25px and transformY: 25px;
    - *
    - * ); - * } - * }); - * ``` - */ - defaultPosition: propTypes.shape({ - x: propTypes.number, - y: propTypes.number - }), - positionOffset: propTypes.shape({ - x: propTypes.oneOfType([propTypes.number, propTypes.string]), - y: propTypes.oneOfType([propTypes.number, propTypes.string]) - }), + if (collection) { + process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'You are not able to update the id or type of a droppable during a drag') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false); + } + }; - /** - * `position`, if present, defines the current position of the element. - * - * This is similar to how form elements in React work - if no `position` is supplied, the component - * is uncontrolled. - * - * Example: - * - * ```jsx - * let App = React.createClass({ - * render: function () { - * return ( - * - *
    I start with transformX: 25px and transformY: 25px;
    - *
    - * ); - * } - * }); - * ``` - */ - position: propTypes.shape({ - x: propTypes.number, - y: propTypes.number - }), + var unregisterDroppable = function unregisterDroppable(descriptor) { + var entry = entries.droppables[descriptor.id]; + !entry ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, "Cannot unregister Droppable with id " + descriptor.id + " as as it is not registered") : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - /** - * These properties should be defined on the child, not here. - */ - className: dontSetMe, - style: dontSetMe, - transform: dontSetMe - }); - Draggable.defaultProps = _extends({}, DraggableCore.defaultProps, { - axis: 'both', - bounds: false, - defaultClassName: 'react-draggable', - defaultClassNameDragging: 'react-draggable-dragging', - defaultClassNameDragged: 'react-draggable-dragged', - defaultPosition: { x: 0, y: 0 }, - position: null, - scale: 1 - }); + if (entry.descriptor !== descriptor) { + return; + } - // Previous versions of this lib exported as the root export. As to not break - // them, or TypeScript, we export *both* as the root and as 'default'. - // See https://github.com/mzabriskie/react-draggable/pull/254 - // and https://github.com/mzabriskie/react-draggable/issues/266 - Draggable.default = Draggable; - Draggable.DraggableCore = DraggableCore; + delete entries.droppables[descriptor.id]; - return Draggable; + if (!collection) { + return; + } - }))); - //# sourceMappingURL=react-draggable.js.map + !(collection.critical.droppable.id !== descriptor.id) ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot remove the home Droppable during a drag') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + if (collection.critical.droppable.type !== descriptor.type) { + return; + } - /***/ }), - /* 108 */ - /***/ (function(module, exports, __webpack_require__) { + publisher.removeDroppable(descriptor.id); + }; - "use strict"; + var updateDroppableIsEnabled = function updateDroppableIsEnabled(id, isEnabled) { + !entries.droppables[id] ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, "Cannot update the scroll on Droppable " + id + " as it is not registered") : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + if (!collection) { + return; + } - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.findInArray = findInArray; - exports.isFunction = isFunction; - exports.isNum = isNum; - exports.int = int; - exports.dontSetMe = dontSetMe; + callbacks.updateDroppableIsEnabled({ + id: id, + isEnabled: isEnabled + }); + }; - // @credits https://gist.github.com/rogozhnikoff/a43cfed27c41e4e68cdc - function findInArray(array - /*: Array | TouchList*/ - , callback - /*: Function*/ - ) - /*: any*/ - { - for (var i = 0, length = array.length; i < length; i++) { - if (callback.apply(callback, [array[i], i, array])) return array[i]; - } - } + var updateDroppableScroll = function updateDroppableScroll(id, newScroll) { + !entries.droppables[id] ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, "Cannot update the scroll on Droppable " + id + " as it is not registered") : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - function isFunction(func - /*: any*/ - ) - /*: boolean %checks*/ - { - return typeof func === 'function' || Object.prototype.toString.call(func) === '[object Function]'; - } + if (!collection) { + return; + } - function isNum(num - /*: any*/ - ) - /*: boolean %checks*/ - { - return typeof num === 'number' && !isNaN(num); - } + callbacks.updateDroppableScroll({ + id: id, + offset: newScroll + }); + }; - function int(a - /*: string*/ - ) - /*: number*/ - { - return parseInt(a, 10); - } + var scrollDroppable = function scrollDroppable(id, change) { + var entry = entries.droppables[id]; + !entry ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, "Cannot scroll Droppable " + id + " as it is not registered") : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - function dontSetMe(props - /*: Object*/ - , propName - /*: string*/ - , componentName - /*: string*/ - ) { - if (props[propName]) { - return new Error("Invalid prop ".concat(propName, " passed to ").concat(componentName, " - do not set this, set it on the child.")); - } - } + if (!collection) { + return; + } - /***/ }), - /* 109 */ - /***/ (function(module, exports, __webpack_require__) { + entry.callbacks.scroll(change); + }; - "use strict"; + var getInitialPublish = function getInitialPublish(args) { + var critical = args.critical, + scrollOptions = args.scrollOptions, + windowScroll = args.initialWindowScroll; + var timingKey = 'Initial collection from DOM'; + start(timingKey); + var home = critical.droppable; + var droppables = __WEBPACK_IMPORTED_MODULE_3__babel_runtime_corejs2_core_js_object_keys___default()(entries.droppables).map(function (id) { + return entries.droppables[id]; + }).filter(function (entry) { + return entry.descriptor.type === home.type; + }).map(function (entry) { + return entry.callbacks.getDimensionAndWatchScroll(windowScroll, scrollOptions); + }).reduce(function (previous, dimension) { + previous[dimension.descriptor.id] = dimension; + return previous; + }, {}); - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.Event = exports.EventUtil = exports.tryParseInt = undefined; + var draggables = __WEBPACK_IMPORTED_MODULE_3__babel_runtime_corejs2_core_js_object_keys___default()(entries.draggables).map(function (id) { + return entries.draggables[id]; + }).filter(function (entry) { + return entry.descriptor.type === critical.draggable.type; + }).map(function (entry) { + return entry.getDimension(windowScroll); + }).reduce(function (previous, dimension) { + previous[dimension.descriptor.id] = dimension; + return previous; + }, {}); - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + finish(timingKey); + var dimensions = { + draggables: draggables, + droppables: droppables + }; + var result = { + dimensions: dimensions, + critical: critical + }; + return result; + }; - exports.measureScrollbar = measureScrollbar; - exports.debounce = debounce; - exports.warningOnce = warningOnce; - exports.getOffset = getOffset; - exports.addClass = addClass; - exports.removeClass = removeClass; - exports.ObjectAssign = ObjectAssign; - exports.closest = closest; - exports.getMaxColChildrenLength = getMaxColChildrenLength; - exports.getColChildrenLength = getColChildrenLength; - exports.DicimalFormater = DicimalFormater; - exports.checkDicimalInvalid = checkDicimalInvalid; - exports.formatMoney = formatMoney; - exports.convertListToTree = convertListToTree; + var stopPublishing = function stopPublishing() { + if (!collection) { + return; + } - var _warning = __webpack_require__(6); + publisher.stop(); + var home = collection.critical.droppable; - var _warning2 = _interopRequireDefault(_warning); + __WEBPACK_IMPORTED_MODULE_3__babel_runtime_corejs2_core_js_object_keys___default()(entries.droppables).filter(function (id) { + return entries.droppables[id].descriptor.type === home.type; + }).forEach(function (id) { + return entries.droppables[id].callbacks.unwatchScroll(); + }); - var _parseInt = __webpack_require__(1261); + collection = null; + }; - var _parseInt2 = _interopRequireDefault(_parseInt); + var startPublishing = function startPublishing(request, windowScroll) { + !!collection ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot start capturing critical dimensions as there is already a collection') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + var entry = entries.draggables[request.draggableId]; + !entry ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot find critical draggable entry') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + var home = entries.droppables[entry.descriptor.droppableId]; + !home ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot find critical droppable entry') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + var critical = { + draggable: entry.descriptor, + droppable: home.descriptor + }; + collection = { + scrollOptions: request.scrollOptions, + critical: critical, + initialWindowScroll: windowScroll + }; + return getInitialPublish(collection); + }; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var marshal = { + registerDraggable: registerDraggable, + updateDraggable: updateDraggable, + unregisterDraggable: unregisterDraggable, + registerDroppable: registerDroppable, + updateDroppable: updateDroppable, + unregisterDroppable: unregisterDroppable, + updateDroppableIsEnabled: updateDroppableIsEnabled, + scrollDroppable: scrollDroppable, + updateDroppableScroll: updateDroppableScroll, + startPublishing: startPublishing, + stopPublishing: stopPublishing + }; + return marshal; + }); - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + var physics = function () { + var base = { + stiffness: 1000, + damping: 60, + precision: 0.99 + }; - var scrollbarSize = void 0; + var standard = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({}, base); - // Measure scrollbar width for padding body during modal show/hide - var scrollbarMeasure = { - position: 'absolute', - top: '-9999px', - width: '50px', - height: '50px', - overflow: 'scroll' + var fast = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({}, base, { + stiffness: base.stiffness * 2 + }); + + return { + standard: standard, + fast: fast + }; + }(); + var css = { + outOfTheWay: 'transform 0.2s cubic-bezier(0.2, 0, 0, 1)' }; - function measureScrollbar() { - var direction = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'vertical'; + var prefix = 'data-react-beautiful-dnd'; + var dragHandle = prefix + "-drag-handle"; + var draggable = prefix + "-draggable"; + var droppable = prefix + "-droppable"; + var getStyles = (function (styleContext) { + var dragHandleSelector = "[" + dragHandle + "=\"" + styleContext + "\"]"; + var draggableSelector = "[" + draggable + "=\"" + styleContext + "\"]"; + var droppableSelector = "[" + droppable + "=\"" + styleContext + "\"]"; + var dragHandleStyles = { + base: "\n " + dragHandleSelector + " {\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n }\n ", + grabCursor: "\n " + dragHandleSelector + " {\n cursor: -webkit-grab;\n cursor: grab;\n }\n ", + blockPointerEvents: "\n " + dragHandleSelector + " {\n pointer-events: none;\n }\n " + }; + var draggableStyles = { + animateMovement: "\n " + draggableSelector + " {\n transition: " + css.outOfTheWay + ";\n }\n " + }; + var droppableStyles = { + base: "\n " + droppableSelector + " {\n overflow-anchor: none;\n }\n " + }; + var bodyStyles = { + whileActiveDragging: "\n body {\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n }\n " + }; + var base = [dragHandleStyles.base, droppableStyles.base]; + var resting = base.concat([dragHandleStyles.grabCursor]); + var collecting = base.concat([dragHandleStyles.blockPointerEvents, bodyStyles.whileActiveDragging]); + var dragging = collecting.concat([draggableStyles.animateMovement]); + var dropAnimating = base.concat([dragHandleStyles.grabCursor, draggableStyles.animateMovement]); + var userCancel = base.concat([draggableStyles.animateMovement]); + return { + resting: resting.join(''), + dragging: dragging.join(''), + dropAnimating: dropAnimating.join(''), + collecting: collecting.join(''), + userCancel: userCancel.join('') + }; + }); - if (typeof document === 'undefined' || typeof window === 'undefined') { - return 0; - } - var tableDom = document.querySelector('.u-table'); - var currentDom = tableDom ? tableDom : document.body; + var count = 0; + var resetStyleContext = function resetStyleContext() { + count = 0; + }; - if (scrollbarSize) { - return scrollbarSize; - } - var scrollDiv = document.createElement('div'); - Object.keys(scrollbarMeasure).forEach(function (scrollProp) { - scrollDiv.style[scrollProp] = scrollbarMeasure[scrollProp]; + var getHead = function getHead() { + var head = document.querySelector('head'); + !head ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot find the head to append a style to') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + return head; + }; + + var createStyleMarshal = (function () { + var context = "" + count++; + var styles = getStyles(context); + var el = null; + var setStyle = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (proposed) { + !el ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot set style of style tag if not mounted') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + el.innerHTML = proposed; }); - currentDom.appendChild(scrollDiv); - var size = 0; - if (direction === 'vertical') { - size = scrollDiv.offsetWidth - scrollDiv.clientWidth; - } else if (direction === 'horizontal') { - size = scrollDiv.offsetHeight - scrollDiv.clientHeight; - } - currentDom.removeChild(scrollDiv); - scrollbarSize = size; - return scrollbarSize; - } + var mount = function mount() { + !!el ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Style marshal already mounted') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + el = document.createElement('style'); + el.type = 'text/css'; + el.setAttribute(prefix, context); + getHead().appendChild(el); + setStyle(styles.resting); + }; - function debounce(func, wait, immediate) { - var timeout = void 0; - return function debounceFunc() { - var context = this; - var args = arguments; - // https://fb.me/react-event-pooling - if (args[0] && args[0].persist) { - args[0].persist(); - } - var later = function later() { - timeout = null; - if (!immediate) { - func.apply(context, args); - } - }; - var callNow = immediate && !timeout; - clearTimeout(timeout); - timeout = setTimeout(later, wait); - if (callNow) { - func.apply(context, args); + var collecting = function collecting() { + return setStyle(styles.collecting); + }; + + var dragging = function dragging() { + return setStyle(styles.dragging); + }; + + var dropping = function dropping(reason) { + if (reason === 'DROP') { + setStyle(styles.dropAnimating); + return; } + + setStyle(styles.userCancel); }; - } - var warned = {}; - function warningOnce(condition, format, args) { - if (!warned[format]) { - (0, _warning2["default"])(condition, format, args); - warned[format] = true; - } - } - function getOffset(Node, offset) { - if (!offset) { - offset = {}; - offset.top = 0; - offset.left = 0; - } - if (Node == document.body) { - return offset; - } - offset.top += Node.offsetTop; - offset.left += Node.offsetLeft; - if (Node.offsetParent) return getOffset(Node.offsetParent, offset);else return offset; - }; + var resting = function resting() { + return setStyle(styles.resting); + }; - var tryParseInt = exports.tryParseInt = function tryParseInt(value) { - var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; + var unmount = function unmount() { + !el ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot unmount style marshal as it is already unmounted') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + getHead().removeChild(el); + el = null; + }; - var resultValue = (0, _parseInt2["default"])(value); + var marshal = { + collecting: collecting, + dragging: dragging, + dropping: dropping, + resting: resting, + styleContext: context, + mount: mount, + unmount: unmount + }; + return marshal; + }); - if (isNaN(resultValue)) { - return defaultValue; + var canStartDrag = (function (state, id) { + if (state.phase === 'IDLE') { + return true; } - return resultValue; - }; - function addClass(elm, className) { - if (!className) return; + if (state.phase !== 'DROP_ANIMATING') { + return false; + } - var els = Array.isArray(elm) ? elm : [elm]; + if (state.pending.result.draggableId === id) { + return false; + } - els.forEach(function (el) { - if (el.classList) { - el.classList.add(className.split(' ')); - } else { - el.className += ' ' + className; - } - }); - } + return state.pending.result.reason === 'DROP'; + }); - function removeClass(elm, className) { - if (!className) return; + var scrollWindow = (function (change) { + window.scrollBy(change.x, change.y); + }); - var els = Array.isArray(elm) ? elm : [elm]; + var count$1 = 0; + var visuallyHidden = { + position: 'absolute', + width: '1px', + height: '1px', + margin: '-1px', + border: '0', + padding: '0', + overflow: 'hidden', + clip: 'rect(0 0 0 0)', + 'clip-path': 'inset(100%)' + }; - els.forEach(function (el) { - if (el.classList) { - el.classList.remove(className.split(' ')); - } else { - el.className = el.className.replace(new RegExp('(^|\\b)' + className.split(' ').join('|') + '(\\b|$)', 'gi'), ' '); - } - }); - } + var getBody = function getBody() { + !document.body ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Announcer cannot find document.body') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + return document.body; + }; - /** - * 简单数组数据对象拷贝 - * @param {*} obj 要拷贝的对象 - */ - function ObjectAssign(obj) { - var b = obj instanceof Array; - var tagObj = b ? [] : {}; - if (b) { - //数组 - obj.forEach(function (da) { - var _da = {}; - _extends(_da, da); - tagObj.push(_da); - }); - } else { - _extends(tagObj, obj); - } - return tagObj; - } - /** - * 获取某个父元素 - * */ + var createAnnouncer = (function () { + var id = "react-beautiful-dnd-announcement-" + count$1++; + var el = null; - function closest(ele, selector) { - var matches = ele.matches || ele.webkitMatchesSelector || ele.mozMatchesSelector || ele.msMatchesSelector; - if (matches) { - while (ele) { - if (matches.call(ele, selector)) { - return ele; - } else { - ele = ele.parentElement; - } - } - } - return null; - } + var announce = function announce(message) { + !el ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot announce to unmounted node') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + el.textContent = message; + }; - function getMaxColChildrenLength(columns) { - var arr = []; - arr = columns.map(function (item, index) { - var chilrenLen = 0; - if (item.children) { - chilrenLen = getColChildrenLength(item.children, chilrenLen + 1); - } - return chilrenLen; - }); - var max = Math.max.apply(null, arr); - return max; - } + var mount = function mount() { + !!el ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Announcer already mounted') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + el = document.createElement('div'); + el.id = id; + el.setAttribute('aria-live', 'assertive'); + el.setAttribute('role', 'log'); + el.setAttribute('aria-atomic', 'true'); - function getColChildrenLength(columns, chilrenLen) { - columns.forEach(function (item, index) { - if (item.children) { - chilrenLen = getColChildrenLength(item.children, chilrenLen + 1); - } - }); - return chilrenLen; - } + __WEBPACK_IMPORTED_MODULE_6__babel_runtime_corejs2_core_js_object_assign___default()(el.style, visuallyHidden); - function addHandler(element, type, handler) { - var event = null; - if (element.addEventListener) { - //检测是否为DOM2级方法 - event = element.addEventListener(type, handler, false); - } else if (element.attachEvent) { - //检测是否为IE级方法 - event = element.attachEvent("on" + type, handler); - } else { - //检测是否为DOM0级方法 - event = element["on" + type] = handler; - } - return event; - } + getBody().appendChild(el); + }; - function removeHandler(element, type, handler) { - if (element && element.removeEventListener) { - //element&& ie11报错兼容 - element.removeEventListener(type, handler, false); - } else if (element && element.detachEvent) { - element.detachEvent("on" + type, handler); - } else if (element) { - element["on" + type] = null; - } - } + var unmount = function unmount() { + !el ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Will not unmount annoucer as it is already unmounted') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + getBody().removeChild(el); + el = null; + }; + + var announcer = { + announce: announce, + id: id, + mount: mount, + unmount: unmount + }; + return announcer; + }); - //获取事件对象的兼容性写法 - function getEvent(event) { - return event ? event : window.event; - } + var getScrollableDroppables = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (droppables) { + return toDroppableList(droppables).filter(function (droppable) { + if (!droppable.isEnabled) { + return false; + } - //获取事件对象目标的兼容性写法 - function getTarget(event) { - return event.target || event.srcElement; - } + if (!droppable.viewport.closestScrollable) { + return false; + } - function preventDefault(event) { - if (event.preventDefault) { - event.preventDefault(); - } else { - event.returnValue = false; - } - } + return true; + }); + }); - function stopPropagation(event) { - if (event.stopPropagation) { - event.stopPropagation(); - } else { - event.cancelBubble = true; - } - } + var getScrollableDroppableOver = function getScrollableDroppableOver(target, droppables) { + var maybe = getScrollableDroppables(droppables).find(function (droppable) { + !droppable.viewport.closestScrollable ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Invalid result') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + return isPositionInFrame(droppable.viewport.closestScrollable.framePageMarginBox)(target); + }); + return maybe; + }; - //用事件冒泡方式,如果想兼容事件捕获只需要添加个bool参数 - var EventUtil = exports.EventUtil = { - addHandler: function addHandler(element, type, handler) { - if (element.addEventListener) { - element.addEventListener(type, handler, false); - } else if (element.attachEvent) { - element.attachEvent('on' + type, handler); - } else { - element['on' + type] = handler; - } - }, + var getBestScrollableDroppable = (function (_ref) { + var center = _ref.center, + destination = _ref.destination, + droppables = _ref.droppables; - removeHandler: function removeHandler(element, type, handler) { - //element&& ie11报错兼容 - if (element && element.removeEventListener) { - element.removeEventListener(type, handler, false); - } else if (element && element.detachEvent) { - element.detachEvent('on' + type, handler); - } else if (element) { - element['on' + type] = null; + if (destination) { + var _dimension = droppables[destination.droppableId]; + + if (!_dimension.viewport.closestScrollable) { + return null; } - } - /* - * 处理精度 - */ - };function DicimalFormater(value, precision) { - var value = value + '', - precision = precision ? precision : 0; - for (var i = 0; i < value.length; i++) { - if ("-0123456789.".indexOf(value.charAt(i)) == -1) return ""; + return _dimension; } - return checkDicimalInvalid(value, precision); - }; - function checkDicimalInvalid(value, precision) { - if (value == null || isNaN(value)) return ""; - // 浮点数总位数不能超过10位 - var digit = parseFloat(value); - var result = (digit * Math.pow(10, precision) / Math.pow(10, precision)).toFixed(precision); - if (result == "NaN") return ""; - return result; - }; - - /** - * 将数值转化为货币类型 - * @param {*} number 数值 - * @param {*} places 精度 - * @param {*} thousand 是否展示千分位 - */ - function formatMoney(number, places, thousand) { - number = number || 0; - places = !isNaN(places = Math.abs(places)) ? places : 2; - var thousandSymbol = thousand ? "," : ''; - var negative = number < 0 ? "-" : ""; - var i = (0, _parseInt2["default"])(number = Math.abs(+number || 0).toFixed(places), 10) + ""; - var j = (j = i.length) > 3 ? j % 3 : 0; - return negative + (j ? i.substr(0, j) + thousandSymbol : "") + i.substr(j).replace(/(\d{3})(?=\d)/g, "$1" + thousandSymbol) + (places ? '.' + Math.abs(number - i).toFixed(places).slice(2) : ""); - } - var Event = exports.Event = { - addHandler: addHandler, - removeHandler: removeHandler, - getEvent: getEvent, - getTarget: getTarget, - preventDefault: preventDefault, - stopPropagation: stopPropagation + var dimension = getScrollableDroppableOver(center, droppables); + return dimension; + }); - /** - * 将一维数组转换为树结构 - * @param {*} treeData 扁平结构的 List 数组 - * @param {*} attr 属性配置设置 - * @param {*} flatTreeKeysMap 存储所有 key-value 的映射,方便获取各节点信息 - */ - };function convertListToTree(treeData, attr, flatTreeKeysMap) { - var tree = []; //存储所有一级节点 - var resData = treeData, - //resData 存储截取的节点 + 父节点(除一级节点外) - resKeysMap = {}, - //resData 的Map映射 - treeKeysMap = {}; //tree 的Map映射 - resData.map(function (element) { - var key = attr.id; - resKeysMap[element[key]] = element; - }); - // 查找父节点,为了补充不完整的数据结构 - var findParentNode = function findParentNode(node) { - var parentKey = node[attr.parendId]; - if (parentKey !== attr.rootId) { - //如果不是根节点,则继续递归 - var item = flatTreeKeysMap[parentKey]; - // 用 resKeysMap 判断,避免重复计算某节点的父节点 - if (resKeysMap.hasOwnProperty(item[attr.id])) return; - resData.unshift(item); - resKeysMap[item[attr.id]] = item; - findParentNode(item); - } else { - // 用 treeKeysMap 判断,避免重复累加 - if (!treeKeysMap.hasOwnProperty(node[attr.id])) { - var key = node.key, - title = node.title, - children = node.children, - _isLeaf = node._isLeaf, - otherProps = _objectWithoutProperties(node, ['key', 'title', 'children', '_isLeaf']); + var smallestSigned = apply(function (value) { + if (value === 0) { + return 0; + } - var obj = { - key: key, - title: title, - _isLeaf: _isLeaf, - children: [] - }; - tree.push(_extends(obj, _extends({}, otherProps))); - treeKeysMap[key] = node; - } + return value > 0 ? 1 : -1; + }); + var getOverlap = function () { + var getRemainder = function getRemainder(target, max) { + if (target < 0) { + return target; } - }; - // 遍历 resData ,找到所有的一级节点 - for (var i = 0; i < resData.length; i++) { - var item = resData[i]; - if (item[attr.parendId] === attr.rootId && !treeKeysMap.hasOwnProperty(item[attr.id])) { - //如果是根节点,就存放进 tree 对象中 - var key = item.key, - title = item.title, - children = item.children, - otherProps = _objectWithoutProperties(item, ['key', 'title', 'children']); - var obj = { - key: item[attr.id], - _isLeaf: item[attr._isLeaf], - children: [] - }; - tree.push(_extends(obj, _extends({}, otherProps))); - treeKeysMap[key] = item; - resData.splice(i, 1); - i--; - } else { - //递归查找根节点信息 - findParentNode(item); + if (target > max) { + return target - max; } - } - // console.log('resData',resKeysMap); - var run = function run(treeArrs) { - if (resData.length > 0) { - for (var _i = 0; _i < treeArrs.length; _i++) { - for (var j = 0; j < resData.length; j++) { - var _item = resData[j]; - if (treeArrs[_i].key === _item[attr.parendId]) { - var _key = _item.key, - _title = _item.title, - _children = _item.children, - _otherProps = _objectWithoutProperties(_item, ['key', 'title', 'children']); - var _obj = { - key: _item[attr.id], - _isLeaf: _item[attr._isLeaf], - children: [] - }; - treeArrs[_i].children.push(_extends(_obj, _extends({}, _otherProps))); - resData.splice(j, 1); - j--; - } - } - run(treeArrs[_i].children); - } - } + return 0; }; - run(tree); - return tree; - } - /***/ }), - /* 110 */ - /***/ (function(module, exports, __webpack_require__) { + return function (_ref) { + var current = _ref.current, + max = _ref.max, + change = _ref.change; + var targetScroll = add(current, change); + var overlap = { + x: getRemainder(targetScroll.x, max.x), + y: getRemainder(targetScroll.y, max.y) + }; - //! moment.js locale configuration - //! locale : Chinese (China) [zh-cn] - //! author : suupic : https://github.com/suupic - //! author : Zeno Zeng : https://github.com/zenozeng + if (isEqual(overlap, origin)) { + return null; + } - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + return overlap; + }; + }(); + var canPartiallyScroll = function canPartiallyScroll(_ref2) { + var rawMax = _ref2.max, + current = _ref2.current, + change = _ref2.change; + var max = { + x: Math.max(current.x, rawMax.x), + y: Math.max(current.y, rawMax.y) + }; + var smallestChange = smallestSigned(change); + var overlap = getOverlap({ + max: max, + current: current, + change: smallestChange + }); - //! moment.js locale configuration + if (!overlap) { + return true; + } - var zhCn = moment.defineLocale('zh-cn', { - months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split( - '_' - ), - monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split( - '_' - ), - weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), - weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'), - weekdaysMin: '日_一_二_三_四_五_六'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY/MM/DD', - LL: 'YYYY年M月D日', - LLL: 'YYYY年M月D日Ah点mm分', - LLLL: 'YYYY年M月D日ddddAh点mm分', - l: 'YYYY/M/D', - ll: 'YYYY年M月D日', - lll: 'YYYY年M月D日 HH:mm', - llll: 'YYYY年M月D日dddd HH:mm', - }, - meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') { - return hour; - } else if (meridiem === '下午' || meridiem === '晚上') { - return hour + 12; - } else { - // '中午' - return hour >= 11 ? hour : hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - var hm = hour * 100 + minute; - if (hm < 600) { - return '凌晨'; - } else if (hm < 900) { - return '早上'; - } else if (hm < 1130) { - return '上午'; - } else if (hm < 1230) { - return '中午'; - } else if (hm < 1800) { - return '下午'; - } else { - return '晚上'; - } - }, - calendar: { - sameDay: '[今天]LT', - nextDay: '[明天]LT', - nextWeek: '[下]ddddLT', - lastDay: '[昨天]LT', - lastWeek: '[上]ddddLT', - sameElse: 'L', - }, - dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/, - ordinal: function (number, period) { - switch (period) { - case 'd': - case 'D': - case 'DDD': - return number + '日'; - case 'M': - return number + '月'; - case 'w': - case 'W': - return number + '周'; - default: - return number; - } - }, - relativeTime: { - future: '%s后', - past: '%s前', - s: '几秒', - ss: '%d 秒', - m: '1 分钟', - mm: '%d 分钟', - h: '1 小时', - hh: '%d 小时', - d: '1 天', - dd: '%d 天', - M: '1 个月', - MM: '%d 个月', - y: '1 年', - yy: '%d 年', - }, - week: { - // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效 - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + if (smallestChange.x !== 0 && overlap.x === 0) { + return true; + } - return zhCn; + if (smallestChange.y !== 0 && overlap.y === 0) { + return true; + } - }))); + return false; + }; + var canScrollWindow = function canScrollWindow(viewport, change) { + return canPartiallyScroll({ + current: viewport.scroll.current, + max: viewport.scroll.max, + change: change + }); + }; + var getWindowOverlap = function getWindowOverlap(viewport, change) { + if (!canScrollWindow(viewport, change)) { + return null; + } + var max = viewport.scroll.max; + var current = viewport.scroll.current; + return getOverlap({ + current: current, + max: max, + change: change + }); + }; + var canScrollDroppable = function canScrollDroppable(droppable, change) { + var closest$$1 = droppable.viewport.closestScrollable; - /***/ }), - /* 111 */ - /***/ (function(module, exports, __webpack_require__) { + if (!closest$$1) { + return false; + } - "use strict"; + return canPartiallyScroll({ + current: closest$$1.scroll.current, + max: closest$$1.scroll.max, + change: change + }); + }; + var getDroppableOverlap = function getDroppableOverlap(droppable, change) { + var closest$$1 = droppable.viewport.closestScrollable; + if (!closest$$1) { + return null; + } - Object.defineProperty(exports, "__esModule", { - value: true - }); + if (!canScrollDroppable(droppable, change)) { + return null; + } - var _Icon = __webpack_require__(1309); + return getOverlap({ + current: closest$$1.scroll.current, + max: closest$$1.scroll.max, + change: change + }); + }; - var _Icon2 = _interopRequireDefault(_Icon); + var config = { + startFrom: 0.25, + maxSpeedAt: 0.05, + maxScrollSpeed: 28, + ease: function ease(percentage) { + return Math.pow(percentage, 2); + } + }; + var clean$1 = apply(function (value) { + return value === 0 ? 0 : value; + }); + var getPixelThresholds = function getPixelThresholds(container, axis) { + var startFrom = container[axis.size] * config.startFrom; + var maxSpeedAt = container[axis.size] * config.maxSpeedAt; + var accelerationPlane = startFrom - maxSpeedAt; + var thresholds = { + startFrom: startFrom, + maxSpeedAt: maxSpeedAt, + accelerationPlane: accelerationPlane + }; + return thresholds; + }; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var getSpeed = function getSpeed(distance$$1, thresholds) { + if (distance$$1 >= thresholds.startFrom) { + return 0; + } - exports["default"] = _Icon2["default"]; - module.exports = exports['default']; + if (distance$$1 <= thresholds.maxSpeedAt) { + return config.maxScrollSpeed; + } - /***/ }), - /* 112 */ - /***/ (function(module, exports, __webpack_require__) { + var distancePastStart = thresholds.startFrom - distance$$1; + var percentage = distancePastStart / thresholds.accelerationPlane; + var transformed = config.ease(percentage); + var speed = config.maxScrollSpeed * transformed; + return speed; + }; - "use strict"; + var adjustForSizeLimits = function adjustForSizeLimits(_ref) { + var container = _ref.container, + subject = _ref.subject, + proposedScroll = _ref.proposedScroll; + var isTooBigVertically = subject.height > container.height; + var isTooBigHorizontally = subject.width > container.width; + if (!isTooBigHorizontally && !isTooBigVertically) { + return proposedScroll; + } - Object.defineProperty(exports, "__esModule", { - value: true - }); + if (isTooBigHorizontally && isTooBigVertically) { + return null; + } - exports["default"] = function (componentOrElement) { - return (0, _ownerDocument2["default"])(_reactDom2["default"].findDOMNode(componentOrElement)); + return { + x: isTooBigHorizontally ? 0 : proposedScroll.x, + y: isTooBigVertically ? 0 : proposedScroll.y + }; }; - var _reactDom = __webpack_require__(3); + var getRequiredScroll = function getRequiredScroll(_ref2) { + var container = _ref2.container, + subject = _ref2.subject, + center = _ref2.center; + var distance$$1 = { + top: center.y - container.top, + right: container.right - center.x, + bottom: container.bottom - center.y, + left: center.x - container.left + }; - var _reactDom2 = _interopRequireDefault(_reactDom); + var y = function () { + var thresholds = getPixelThresholds(container, vertical); + var isCloserToBottom = distance$$1.bottom < distance$$1.top; - var _ownerDocument = __webpack_require__(22); + if (isCloserToBottom) { + return getSpeed(distance$$1.bottom, thresholds); + } - var _ownerDocument2 = _interopRequireDefault(_ownerDocument); + return -1 * getSpeed(distance$$1.top, thresholds); + }(); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var x = function () { + var thresholds = getPixelThresholds(container, horizontal); + var isCloserToRight = distance$$1.right < distance$$1.left; - module.exports = exports['default']; + if (isCloserToRight) { + return getSpeed(distance$$1.right, thresholds); + } - /***/ }), - /* 113 */ - /***/ (function(module, exports, __webpack_require__) { + return -1 * getSpeed(distance$$1.left, thresholds); + }(); - "use strict"; + var required = clean$1({ + x: x, + y: y + }); + if (isEqual(required, origin)) { + return null; + } - Object.defineProperty(exports, "__esModule", { - value: true - }); + var limited = adjustForSizeLimits({ + container: container, + subject: subject, + proposedScroll: required + }); - var _Icon = __webpack_require__(1422); + if (!limited) { + return null; + } - var _Icon2 = _interopRequireDefault(_Icon); + return isEqual(limited, origin) ? null : limited; + }; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var withPlaceholder = function withPlaceholder(droppable, draggable) { + var closest$$1 = droppable.viewport.closestScrollable; - exports["default"] = _Icon2["default"]; - module.exports = exports['default']; + if (!closest$$1) { + return null; + } - /***/ }), - /* 114 */ - /***/ (function(module, exports, __webpack_require__) { + var isOverHome = droppable.descriptor.id === draggable.descriptor.droppableId; + var max = closest$$1.scroll.max; + var current = closest$$1.scroll.current; - "use strict"; + if (isOverHome) { + return { + max: max, + current: current + }; + } + var spaceForPlaceholder = patch(droppable.axis.line, draggable.placeholder.client.borderBox[droppable.axis.size]); + var newMax = add(max, spaceForPlaceholder); + var newCurrent = { + x: Math.min(current.x, newMax.x), + y: Math.min(current.y, newMax.y) + }; + return { + max: newMax, + current: newCurrent + }; + }; - Object.defineProperty(exports, "__esModule", { - value: true - }); + var createFluidScroller = (function (_ref3) { + var scrollWindow = _ref3.scrollWindow, + scrollDroppable = _ref3.scrollDroppable; + var scheduleWindowScroll = Object(__WEBPACK_IMPORTED_MODULE_7_raf_schd__["a" /* default */])(scrollWindow); + var scheduleDroppableScroll = Object(__WEBPACK_IMPORTED_MODULE_7_raf_schd__["a" /* default */])(scrollDroppable); - exports["default"] = function (componentOrElement) { - return (0, _ownerDocument2["default"])(_reactDom2["default"].findDOMNode(componentOrElement)); - }; + var scroller = function scroller(state) { + var center = state.current.page.borderBoxCenter; + var draggable = state.dimensions.draggables[state.critical.draggable.id]; + var subject = draggable.page.marginBox; + var viewport = state.viewport; + var requiredWindowScroll = getRequiredScroll({ + container: viewport.frame, + subject: subject, + center: center + }); - var _reactDom = __webpack_require__(3); + if (requiredWindowScroll && canScrollWindow(viewport, requiredWindowScroll)) { + scheduleWindowScroll(requiredWindowScroll); + return; + } - var _reactDom2 = _interopRequireDefault(_reactDom); + var droppable = getBestScrollableDroppable({ + center: center, + destination: state.impact.destination, + droppables: state.dimensions.droppables + }); - var _ownerDocument = __webpack_require__(22); + if (!droppable) { + return; + } - var _ownerDocument2 = _interopRequireDefault(_ownerDocument); + var closestScrollable = droppable.viewport.closestScrollable; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + if (!closestScrollable) { + return; + } - module.exports = exports['default']; + var requiredFrameScroll = getRequiredScroll({ + container: closestScrollable.framePageMarginBox, + subject: subject, + center: center + }); - /***/ }), - /* 115 */ - /***/ (function(module, exports, __webpack_require__) { + if (!requiredFrameScroll) { + return; + } - "use strict"; + var result = withPlaceholder(droppable, draggable); + if (!result) { + return; + } - exports.__esModule = true; - exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined; + var closest$$1 = droppable.viewport.closestScrollable; - var _all2 = __webpack_require__(1487); + if (!closest$$1) { + return; + } - var _all3 = _interopRequireDefault(_all2); + var canScrollDroppable$$1 = canPartiallyScroll({ + current: result.current, + max: result.max, + change: requiredFrameScroll + }); - var _componentOrElement2 = __webpack_require__(1488); + if (canScrollDroppable$$1) { + scheduleDroppableScroll(droppable.descriptor.id, requiredFrameScroll); + } + }; - var _componentOrElement3 = _interopRequireDefault(_componentOrElement2); + scroller.cancel = function () { + scheduleWindowScroll.cancel(); + scheduleDroppableScroll.cancel(); + }; - var _deprecated2 = __webpack_require__(1489); + return scroller; + }); - var _deprecated3 = _interopRequireDefault(_deprecated2); + var createJumpScroller = (function (_ref) { + var move = _ref.move, + scrollDroppable = _ref.scrollDroppable, + scrollWindow = _ref.scrollWindow; - var _elementType2 = __webpack_require__(1490); + var moveByOffset = function moveByOffset(state, offset) { + var client = add(state.current.client.selection, offset); + move({ + client: client, + shouldAnimate: true + }); + }; - var _elementType3 = _interopRequireDefault(_elementType2); + var scrollDroppableAsMuchAsItCan = function scrollDroppableAsMuchAsItCan(droppable, change) { + if (!canScrollDroppable(droppable, change)) { + return change; + } - var _isRequiredForA11y2 = __webpack_require__(1491); + var overlap = getDroppableOverlap(droppable, change); - var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2); + if (!overlap) { + scrollDroppable(droppable.descriptor.id, change); + return null; + } - var _splitComponent2 = __webpack_require__(1492); + var whatTheDroppableCanScroll = subtract(change, overlap); + scrollDroppable(droppable.descriptor.id, whatTheDroppableCanScroll); + var remainder = subtract(change, whatTheDroppableCanScroll); + return remainder; + }; - var _splitComponent3 = _interopRequireDefault(_splitComponent2); + var scrollWindowAsMuchAsItCan = function scrollWindowAsMuchAsItCan(viewport, change) { + if (!canScrollWindow(viewport, change)) { + return change; + } - var _createChainedFunction2 = __webpack_require__(1493); + var overlap = getWindowOverlap(viewport, change); - var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2); + if (!overlap) { + scrollWindow(change); + return null; + } - var _keyCode = __webpack_require__(501); + var whatTheWindowCanScroll = subtract(change, overlap); + scrollWindow(whatTheWindowCanScroll); + var remainder = subtract(change, whatTheWindowCanScroll); + return remainder; + }; - var _keyCode2 = _interopRequireDefault(_keyCode); + var jumpScroller = function jumpScroller(state) { + var request = state.scrollJumpRequest; - var _contains2 = __webpack_require__(1494); + if (!request) { + return; + } - var _contains3 = _interopRequireDefault(_contains2); + var destination = state.impact.destination; + !destination ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot perform a jump scroll when there is no destination') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + var droppableRemainder = scrollDroppableAsMuchAsItCan(state.dimensions.droppables[destination.droppableId], request); - var _addEventListener2 = __webpack_require__(504); + if (!droppableRemainder) { + return; + } - var _addEventListener3 = _interopRequireDefault(_addEventListener2); + var viewport = state.viewport; + var windowRemainder = scrollWindowAsMuchAsItCan(viewport, droppableRemainder); - var _cssAnimation2 = __webpack_require__(1495); + if (!windowRemainder) { + return; + } - var _cssAnimation3 = _interopRequireDefault(_cssAnimation2); + moveByOffset(state, windowRemainder); + }; - var _toArray2 = __webpack_require__(1497); + return jumpScroller; + }); - var _toArray3 = _interopRequireDefault(_toArray2); + var createAutoScroller = (function (_ref) { + var scrollDroppable = _ref.scrollDroppable, + scrollWindow = _ref.scrollWindow, + move = _ref.move; + var fluidScroll = createFluidScroller({ + scrollWindow: scrollWindow, + scrollDroppable: scrollDroppable + }); + var jumpScroll = createJumpScroller({ + move: move, + scrollWindow: scrollWindow, + scrollDroppable: scrollDroppable + }); + var marshal = { + cancel: fluidScroll.cancel, + fluidScroll: fluidScroll, + jumpScroll: jumpScroll + }; + return marshal; + }); - var _Align2 = __webpack_require__(1498); + var prefix$1 = function prefix(key) { + return "private-react-beautiful-dnd-key-do-not-use-" + key; + }; - var _Align3 = _interopRequireDefault(_Align2); + var storeKey = prefix$1('store'); + var droppableIdKey = prefix$1('droppable-id'); + var droppableTypeKey = prefix$1('droppable-type'); + var dimensionMarshalKey = prefix$1('dimension-marshal'); + var styleContextKey = prefix$1('style-context'); + var canLiftContextKey = prefix$1('can-lift'); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + var _DragDropContext$chil; + var resetServerContext = function resetServerContext() { + resetStyleContext(); + }; - exports.all = _all3.default; - exports.componentOrElement = _componentOrElement3.default; - exports.deprecated = _deprecated3.default; - exports.elementType = _elementType3.default; - exports.isRequiredForA11y = _isRequiredForA11y3.default; - exports.splitComponent = _splitComponent3.default; - exports.createChainedFunction = _createChainedFunction3.default; - exports.KeyCode = _keyCode2.default; - exports.contains = _contains3.default; - exports.addEventListener = _addEventListener3.default; - exports.cssAnimation = _cssAnimation3.default; - exports.toArray = _toArray3.default; - //export getContainerRenderMixin from './getContainerRenderMixin'; + var printFatalDevError = function printFatalDevError(error) { + if (process.env.NODE_ENV === 'production') { + return; + } - exports.Align = _Align3.default; + console.warn("\n An error has occurred while a drag is occurring.\n Any existing drag will be cancelled.\n\n Raw error:\n "); + console.error(error); + }; - /***/ }), - /* 116 */ - /***/ (function(module, exports, __webpack_require__) { + var DragDropContext = function (_React$Component) { + Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_corejs2_helpers_esm_inheritsLoose__["a" /* default */])(DragDropContext, _React$Component); - "use strict"; + function DragDropContext(props, context) { + var _this; + _this = _React$Component.call(this, props, context) || this; + _this.store = void 0; + _this.dimensionMarshal = void 0; + _this.styleMarshal = void 0; + _this.autoScroller = void 0; + _this.announcer = void 0; + _this.unsubscribe = void 0; - Object.defineProperty(exports, "__esModule", { - value: true - }); + _this.canLift = function (id) { + return canStartDrag(_this.store.getState(), id); + }; - exports["default"] = function (componentOrElement) { - return (0, _ownerDocument2["default"])(_reactDom2["default"].findDOMNode(componentOrElement)); - }; + _this.onFatalError = function (error) { + printFatalDevError(error); - var _reactDom = __webpack_require__(3); + var state = _this.store.getState(); - var _reactDom2 = _interopRequireDefault(_reactDom); + if (state.phase !== 'IDLE') { + _this.store.dispatch(clean()); + } + }; - var _ownerDocument = __webpack_require__(117); + _this.onWindowError = function (error) { + return _this.onFatalError(error); + }; - var _ownerDocument2 = _interopRequireDefault(_ownerDocument); + _this.announcer = createAnnouncer(); + _this.styleMarshal = createStyleMarshal(); + _this.store = createStore$1({ + getDimensionMarshal: function getDimensionMarshal() { + return _this.dimensionMarshal; + }, + styleMarshal: _this.styleMarshal, + getHooks: function getHooks() { + return { + onBeforeDragStart: _this.props.onBeforeDragStart, + onDragStart: _this.props.onDragStart, + onDragEnd: _this.props.onDragEnd, + onDragUpdate: _this.props.onDragUpdate + }; + }, + announce: _this.announcer.announce, + getScroller: function getScroller() { + return _this.autoScroller; + } + }); + var callbacks = Object(__WEBPACK_IMPORTED_MODULE_5_redux__["b" /* bindActionCreators */])({ + collectionStarting: collectionStarting, + publish: publish, + updateDroppableScroll: updateDroppableScroll, + updateDroppableIsEnabled: updateDroppableIsEnabled + }, _this.store.dispatch); + _this.dimensionMarshal = createDimensionMarshal(callbacks); + _this.autoScroller = createAutoScroller(Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({ + scrollWindow: scrollWindow, + scrollDroppable: _this.dimensionMarshal.scrollDroppable + }, Object(__WEBPACK_IMPORTED_MODULE_5_redux__["b" /* bindActionCreators */])({ + move: move + }, _this.store.dispatch))); + return _this; + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var _proto = DragDropContext.prototype; - module.exports = exports['default']; + _proto.getChildContext = function getChildContext() { + var _ref; - /***/ }), - /* 117 */ - /***/ (function(module, exports, __webpack_require__) { + return _ref = {}, _ref[storeKey] = this.store, _ref[dimensionMarshalKey] = this.dimensionMarshal, _ref[styleContextKey] = this.styleMarshal.styleContext, _ref[canLiftContextKey] = this.canLift, _ref; + }; - "use strict"; + _proto.componentDidMount = function componentDidMount() { + window.addEventListener('error', this.onWindowError); + this.styleMarshal.mount(); + this.announcer.mount(); + }; + _proto.componentDidCatch = function componentDidCatch(error) { + this.onFatalError(error); - exports.__esModule = true; - exports.default = ownerDocument; + if (error.message.indexOf('Invariant failed') !== -1) { + this.setState({}); + return; + } - function ownerDocument(node) { - return node && node.ownerDocument || document; - } + throw error; + }; - module.exports = exports["default"]; + _proto.componentWillUnmount = function componentWillUnmount() { + window.removeEventListener('error', this.onWindowError); + var state = this.store.getState(); - /***/ }), - /* 118 */ - /***/ (function(module, exports, __webpack_require__) { + if (state.phase !== 'IDLE') { + this.store.dispatch(clean()); + } - "use strict"; + this.styleMarshal.unmount(); + this.announcer.unmount(); + }; + _proto.render = function render() { + return this.props.children; + }; - exports.__esModule = true; - exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined; + return DragDropContext; + }(__WEBPACK_IMPORTED_MODULE_9_react___default.a.Component); - var _all2 = __webpack_require__(1531); + DragDropContext.childContextTypes = (_DragDropContext$chil = {}, _DragDropContext$chil[storeKey] = __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.shape({ + dispatch: __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.func.isRequired, + subscribe: __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.func.isRequired, + getState: __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.func.isRequired + }).isRequired, _DragDropContext$chil[dimensionMarshalKey] = __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.object.isRequired, _DragDropContext$chil[styleContextKey] = __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.string.isRequired, _DragDropContext$chil[canLiftContextKey] = __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.func.isRequired, _DragDropContext$chil); - var _all3 = _interopRequireDefault(_all2); + var isScrollable = function isScrollable() { + for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) { + values[_key] = arguments[_key]; + } - var _componentOrElement2 = __webpack_require__(1532); + return values.some(function (value) { + return value === 'auto' || value === 'scroll'; + }); + }; - var _componentOrElement3 = _interopRequireDefault(_componentOrElement2); + var isElementScrollable = function isElementScrollable(el) { + var style = window.getComputedStyle(el); + return isScrollable(style.overflow, style.overflowY, style.overflowX); + }; - var _deprecated2 = __webpack_require__(1533); + var getClosestScrollable = function getClosestScrollable(el) { + if (el == null) { + return null; + } - var _deprecated3 = _interopRequireDefault(_deprecated2); + if (!isElementScrollable(el)) { + return getClosestScrollable(el.parentElement); + } - var _elementType2 = __webpack_require__(1534); + return el; + }; - var _elementType3 = _interopRequireDefault(_elementType2); + var _DroppableDimensionPu; - var _isRequiredForA11y2 = __webpack_require__(511); + var getScroll = function getScroll(el) { + return { + x: el.scrollLeft, + y: el.scrollTop + }; + }; - var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2); + var checkForNestedScrollContainers = function checkForNestedScrollContainers(scrollable) { + if (process.env.NODE_ENV === 'production') { + return; + } - var _splitComponent2 = __webpack_require__(507); + if (!scrollable) { + return; + } - var _splitComponent3 = _interopRequireDefault(_splitComponent2); + var anotherScrollParent = getClosestScrollable(scrollable.parentElement); - var _createChainedFunction2 = __webpack_require__(506); + if (!anotherScrollParent) { + return; + } - var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2); + console.warn("\n Droppable: unsupported nested scroll container detected.\n A Droppable can only have one scroll parent (which can be itself)\n Nested scroll containers are currently not supported.\n\n We hope to support nested scroll containers soon: https://github.com/atlassian/react-beautiful-dnd/issues/131\n "); + }; - var _keyCode = __webpack_require__(1535); + var listenerOptions = { + passive: true + }; - var _keyCode2 = _interopRequireDefault(_keyCode); + var DroppableDimensionPublisher = function (_React$Component) { + Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_corejs2_helpers_esm_inheritsLoose__["a" /* default */])(DroppableDimensionPublisher, _React$Component); - var _contains2 = __webpack_require__(1536); + function DroppableDimensionPublisher(props, context) { + var _this; - var _contains3 = _interopRequireDefault(_contains2); + _this = _React$Component.call(this, props, context) || this; + _this.watchingScroll = null; + _this.callbacks = void 0; + _this.publishedDescriptor = null; - var _addEventListener2 = __webpack_require__(512); + _this.getClosestScroll = function () { + if (!_this.watchingScroll) { + return origin; + } - var _addEventListener3 = _interopRequireDefault(_addEventListener2); + return getScroll(_this.watchingScroll.closestScrollable); + }; - var _cssAnimation2 = __webpack_require__(1537); + _this.memoizedUpdateScroll = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (x, y) { + !_this.publishedDescriptor ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot update scroll on unpublished droppable') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + var newScroll = { + x: x, + y: y + }; + var marshal = _this.context[dimensionMarshalKey]; + marshal.updateDroppableScroll(_this.publishedDescriptor.id, newScroll); + }); - var _cssAnimation3 = _interopRequireDefault(_cssAnimation2); + _this.updateScroll = function () { + var offset = _this.getClosestScroll(); - var _toArray2 = __webpack_require__(1539); + _this.memoizedUpdateScroll(offset.x, offset.y); + }; - var _toArray3 = _interopRequireDefault(_toArray2); + _this.scheduleScrollUpdate = Object(__WEBPACK_IMPORTED_MODULE_7_raf_schd__["a" /* default */])(_this.updateScroll); - var _Align2 = __webpack_require__(1540); + _this.onClosestScroll = function () { + !_this.watchingScroll ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Could not find scroll options while scrolling') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + var options = _this.watchingScroll.options; - var _Align3 = _interopRequireDefault(_Align2); + if (options.shouldPublishImmediately) { + _this.updateScroll(); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + return; + } - exports.all = _all3.default; - exports.componentOrElement = _componentOrElement3.default; - exports.deprecated = _deprecated3.default; - exports.elementType = _elementType3.default; - exports.isRequiredForA11y = _isRequiredForA11y3.default; - exports.splitComponent = _splitComponent3.default; - exports.createChainedFunction = _createChainedFunction3.default; - exports.KeyCode = _keyCode2.default; - exports.contains = _contains3.default; - exports.addEventListener = _addEventListener3.default; - exports.cssAnimation = _cssAnimation3.default; - exports.toArray = _toArray3.default; - //export getContainerRenderMixin from './getContainerRenderMixin'; + _this.scheduleScrollUpdate(); + }; - exports.Align = _Align3.default; + _this.scroll = function (change) { + !_this.watchingScroll ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot scroll a droppable with no closest scrollable') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + var closestScrollable = _this.watchingScroll.closestScrollable; + closestScrollable.scrollTop += change.y; + closestScrollable.scrollLeft += change.x; + }; - /***/ }), - /* 119 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + _this.watchScroll = function (closestScrollable, options) { + !!_this.watchingScroll ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Droppable cannot watch scroll as it is already watching scroll') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - "use strict"; - /* harmony export (immutable) */ __webpack_exports__["a"] = toArray; - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_is__ = __webpack_require__(135); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_is___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_is__); + if (!closestScrollable) { + return; + } + _this.watchingScroll = { + options: options, + closestScrollable: closestScrollable + }; + closestScrollable.addEventListener('scroll', _this.onClosestScroll, listenerOptions); + }; - function toArray(children) { - var ret = []; - __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (child) { - if (child === undefined || child === null) { - return; - } + _this.unwatchScroll = function () { + var watching = _this.watchingScroll; - if (Array.isArray(child)) { - ret = ret.concat(toArray(child)); - } else if (Object(__WEBPACK_IMPORTED_MODULE_1_react_is__["isFragment"])(child) && child.props) { - ret = ret.concat(toArray(child.props.children)); - } else { - ret.push(child); - } - }); - return ret; - } + if (!watching) { + return; + } - /***/ }), - /* 120 */ - /***/ (function(module, exports, __webpack_require__) { + _this.scheduleScrollUpdate.cancel(); - // optional / simple context binding - var aFunction = __webpack_require__(581); - module.exports = function (fn, that, length) { - aFunction(fn); - if (that === undefined) return fn; - switch (length) { - case 1: return function (a) { - return fn.call(that, a); - }; - case 2: return function (a, b) { - return fn.call(that, a, b); - }; - case 3: return function (a, b, c) { - return fn.call(that, a, b, c); + watching.closestScrollable.removeEventListener('scroll', _this.onClosestScroll, listenerOptions); + _this.watchingScroll = null; }; - } - return function (/* ...args */) { - return fn.apply(that, arguments); - }; - }; + _this.getMemoizedDescriptor = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (id, type) { + return { + id: id, + type: type + }; + }); - /***/ }), - /* 121 */ - /***/ (function(module, exports, __webpack_require__) { - - // 7.1.1 ToPrimitive(input [, PreferredType]) - var isObject = __webpack_require__(52); - // instead of the ES6 spec version, we didn't implement @@toPrimitive case - // and the second argument - flag - preferred type is a string - module.exports = function (it, S) { - if (!isObject(it)) return it; - var fn, val; - if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; - if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; - if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; - throw TypeError("Can't convert object to primitive value"); - }; + _this.publish = function () { + var marshal = _this.context[dimensionMarshalKey]; + var descriptor = _this.getMemoizedDescriptor(_this.props.droppableId, _this.props.type); - /***/ }), - /* 122 */ - /***/ (function(module, exports) { + if (!_this.publishedDescriptor) { + marshal.registerDroppable(descriptor, _this.callbacks); + _this.publishedDescriptor = descriptor; + return; + } - var toString = {}.toString; + if (_this.publishedDescriptor === descriptor) { + return; + } - module.exports = function (it) { - return toString.call(it).slice(8, -1); - }; + marshal.updateDroppable(_this.publishedDescriptor, descriptor, _this.callbacks); + _this.publishedDescriptor = descriptor; + }; + _this.unpublish = function () { + !_this.publishedDescriptor ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot unpublish descriptor when none is published') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + var marshal = _this.context[dimensionMarshalKey]; + marshal.unregisterDroppable(_this.publishedDescriptor); + _this.publishedDescriptor = null; + }; - /***/ }), - /* 123 */ - /***/ (function(module, exports) { + _this.getDimensionAndWatchScroll = function (windowScroll, options) { + var _this$props = _this.props, + direction = _this$props.direction, + ignoreContainerClipping = _this$props.ignoreContainerClipping, + isDropDisabled = _this$props.isDropDisabled, + getDroppableRef = _this$props.getDroppableRef; + var targetRef = getDroppableRef(); + var descriptor = _this.publishedDescriptor; + !targetRef ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot calculate a dimension when not attached to the DOM') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + !descriptor ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot get dimension for unpublished droppable') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + var scrollableRef = getClosestScrollable(targetRef); + checkForNestedScrollContainers(scrollableRef); - // 7.2.1 RequireObjectCoercible(argument) - module.exports = function (it) { - if (it == undefined) throw TypeError("Can't call method on " + it); - return it; - }; + _this.watchScroll(scrollableRef, options); + var client = function () { + var base = Object(__WEBPACK_IMPORTED_MODULE_2_css_box_model__["c" /* getBox */])(targetRef); - /***/ }), - /* 124 */ - /***/ (function(module, exports) { + if (!scrollableRef) { + return base; + } - // 7.1.4 ToInteger - var ceil = Math.ceil; - var floor = Math.floor; - module.exports = function (it) { - return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); - }; + if (targetRef !== scrollableRef) { + return base; + } + var top = base.paddingBox.top - scrollableRef.scrollTop; + var left = base.paddingBox.left - scrollableRef.scrollLeft; + var bottom = top + scrollableRef.scrollHeight; + var right = left + scrollableRef.scrollWidth; + var paddingBox = { + top: top, + right: right, + bottom: bottom, + left: left + }; + var borderBox = { + top: paddingBox.top - base.border.top, + right: paddingBox.right + base.border.right, + bottom: paddingBox.bottom + base.border.bottom, + left: paddingBox.left - base.border.left + }; + return Object(__WEBPACK_IMPORTED_MODULE_2_css_box_model__["b" /* createBox */])({ + borderBox: borderBox, + margin: base.margin, + border: base.border, + padding: base.padding + }); + }(); - /***/ }), - /* 125 */ - /***/ (function(module, exports, __webpack_require__) { + var page = Object(__WEBPACK_IMPORTED_MODULE_2_css_box_model__["e" /* withScroll */])(client, windowScroll); - var shared = __webpack_require__(126)('keys'); - var uid = __webpack_require__(88); - module.exports = function (key) { - return shared[key] || (shared[key] = uid(key)); - }; + var closest$$1 = function () { + if (!scrollableRef) { + return null; + } + var frameClient = Object(__WEBPACK_IMPORTED_MODULE_2_css_box_model__["c" /* getBox */])(scrollableRef); + return { + client: frameClient, + page: Object(__WEBPACK_IMPORTED_MODULE_2_css_box_model__["e" /* withScroll */])(frameClient), + scrollHeight: scrollableRef.scrollHeight, + scrollWidth: scrollableRef.scrollWidth, + scroll: getScroll(scrollableRef), + shouldClipSubject: !ignoreContainerClipping + }; + }(); - /***/ }), - /* 126 */ - /***/ (function(module, exports, __webpack_require__) { + return getDroppableDimension({ + descriptor: descriptor, + isEnabled: !isDropDisabled, + direction: direction, + client: client, + page: page, + closest: closest$$1 + }); + }; - var core = __webpack_require__(24); - var global = __webpack_require__(39); - var SHARED = '__core-js_shared__'; - var store = global[SHARED] || (global[SHARED] = {}); + var callbacks = { + getDimensionAndWatchScroll: _this.getDimensionAndWatchScroll, + unwatchScroll: _this.unwatchScroll, + scroll: _this.scroll + }; + _this.callbacks = callbacks; + return _this; + } - (module.exports = function (key, value) { - return store[key] || (store[key] = value !== undefined ? value : {}); - })('versions', []).push({ - version: core.version, - mode: __webpack_require__(87) ? 'pure' : 'global', - copyright: '© 2019 Denis Pushkarev (zloirock.ru)' - }); + var _proto = DroppableDimensionPublisher.prototype; + _proto.componentDidMount = function componentDidMount() { + this.publish(); + }; - /***/ }), - /* 127 */ - /***/ (function(module, exports) { + _proto.componentDidUpdate = function componentDidUpdate(prevProps) { + this.publish(); - // IE 8- don't enum bug keys - module.exports = ( - 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' - ).split(','); + if (this.props.isDropDisabled === prevProps.isDropDisabled) { + return; + } + var marshal = this.context[dimensionMarshalKey]; + marshal.updateDroppableIsEnabled(this.props.droppableId, !this.props.isDropDisabled); + }; - /***/ }), - /* 128 */ - /***/ (function(module, exports) { + _proto.componentWillUnmount = function componentWillUnmount() { + if (this.watchingScroll) { + if (process.env.NODE_ENV !== 'production') { + console.warn('Unmounting droppable while it was watching scroll'); + } - exports.f = Object.getOwnPropertySymbols; + this.unwatchScroll(); + } + this.unpublish(); + }; - /***/ }), - /* 129 */ - /***/ (function(module, exports, __webpack_require__) { + _proto.render = function render() { + return this.props.children; + }; - // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) - var anObject = __webpack_require__(51); - var dPs = __webpack_require__(592); - var enumBugKeys = __webpack_require__(127); - var IE_PROTO = __webpack_require__(125)('IE_PROTO'); - var Empty = function () { /* empty */ }; - var PROTOTYPE = 'prototype'; + return DroppableDimensionPublisher; + }(__WEBPACK_IMPORTED_MODULE_9_react___default.a.Component); - // Create object with fake `null` prototype: use iframe Object with cleared prototype - var createDict = function () { - // Thrash, waste and sodomy: IE GC bug - var iframe = __webpack_require__(217)('iframe'); - var i = enumBugKeys.length; - var lt = '<'; - var gt = '>'; - var iframeDocument; - iframe.style.display = 'none'; - __webpack_require__(593).appendChild(iframe); - iframe.src = 'javascript:'; // eslint-disable-line no-script-url - // createDict = iframe.contentWindow.Object; - // html.removeChild(iframe); - iframeDocument = iframe.contentWindow.document; - iframeDocument.open(); - iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); - iframeDocument.close(); - createDict = iframeDocument.F; - while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; - return createDict(); - }; + DroppableDimensionPublisher.contextTypes = (_DroppableDimensionPu = {}, _DroppableDimensionPu[dimensionMarshalKey] = __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.object.isRequired, _DroppableDimensionPu); - module.exports = Object.create || function create(O, Properties) { - var result; - if (O !== null) { - Empty[PROTOTYPE] = anObject(O); - result = new Empty(); - Empty[PROTOTYPE] = null; - // add "__proto__" for Object.getPrototypeOf polyfill - result[IE_PROTO] = O; - } else result = createDict(); - return Properties === undefined ? result : dPs(result, Properties); - }; + var Placeholder = function (_PureComponent) { + Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_corejs2_helpers_esm_inheritsLoose__["a" /* default */])(Placeholder, _PureComponent); + function Placeholder() { + return _PureComponent.apply(this, arguments) || this; + } - /***/ }), - /* 130 */ - /***/ (function(module, exports, __webpack_require__) { + var _proto = Placeholder.prototype; - var def = __webpack_require__(40).f; - var has = __webpack_require__(47); - var TAG = __webpack_require__(29)('toStringTag'); + _proto.componentDidMount = function componentDidMount() { + if (this.props.onMount) { + this.props.onMount(); + } + }; - module.exports = function (it, tag, stat) { - if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag }); - }; + _proto.componentWillUnmount = function componentWillUnmount() { + if (this.props.onUnmount) { + this.props.onUnmount(); + } + }; + _proto.render = function render() { + var placeholder = this.props.placeholder; + var client = placeholder.client, + display = placeholder.display, + tagName = placeholder.tagName; + var style = { + display: display, + boxSizing: 'border-box', + width: client.borderBox.width, + height: client.borderBox.height, + marginTop: client.margin.top, + marginRight: client.margin.right, + marginBottom: client.margin.bottom, + marginLeft: client.margin.left, + flexShrink: '0', + flexGrow: '0', + pointerEvents: 'none' + }; + return __WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement(tagName, { + style: style + }); + }; - /***/ }), - /* 131 */ - /***/ (function(module, exports) { + return Placeholder; + }(__WEBPACK_IMPORTED_MODULE_9_react__["PureComponent"]); - /** - * Checks if `value` is classified as an `Array` object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an array, else `false`. - * @example - * - * _.isArray([1, 2, 3]); - * // => true - * - * _.isArray(document.body.children); - * // => false - * - * _.isArray('abc'); - * // => false - * - * _.isArray(_.noop); - * // => false - */ - var isArray = Array.isArray; + var throwIfRefIsInvalid = (function (ref) { + !(ref && ref instanceof HTMLElement) ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, "\n provided.innerRef has not been provided with a HTMLElement.\n\n You can find a guide on using the innerRef callback functions at:\n https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/using-inner-ref.md\n ") : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + }); - module.exports = isArray; + var _Droppable$contextTyp, _Droppable$childConte; + var Droppable = function (_Component) { + Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_corejs2_helpers_esm_inheritsLoose__["a" /* default */])(Droppable, _Component); - /***/ }), - /* 132 */ - /***/ (function(module, exports, __webpack_require__) { + function Droppable(props, context) { + var _this; - var root = __webpack_require__(70); + _this = _Component.call(this, props, context) || this; + _this.styleContext = void 0; + _this.ref = null; + _this.isPlaceholderMounted = false; - /** Built-in value references. */ - var Symbol = root.Symbol; + _this.onPlaceholderMount = function () { + _this.isPlaceholderMounted = true; + }; - module.exports = Symbol; + _this.onPlaceholderUnmount = function () { + _this.isPlaceholderMounted = false; + }; + _this.setRef = function (ref) { + if (ref === null) { + return; + } - /***/ }), - /* 133 */ - /***/ (function(module, exports, __webpack_require__) { + if (ref === _this.ref) { + return; + } - var baseIsNative = __webpack_require__(643), - getValue = __webpack_require__(648); + _this.ref = ref; + throwIfRefIsInvalid(ref); + }; - /** - * Gets the native function at `key` of `object`. - * - * @private - * @param {Object} object The object to query. - * @param {string} key The key of the method to get. - * @returns {*} Returns the function if it's native, else `undefined`. - */ - function getNative(object, key) { - var value = getValue(object, key); - return baseIsNative(value) ? value : undefined; - } + _this.getDroppableRef = function () { + return _this.ref; + }; - module.exports = getNative; + _this.styleContext = context[styleContextKey]; + return _this; + } + var _proto = Droppable.prototype; - /***/ }), - /* 134 */ - /***/ (function(module, exports) { + _proto.getChildContext = function getChildContext() { + var _value; - /** - * Performs a - * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) - * comparison between two values to determine if they are equivalent. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to compare. - * @param {*} other The other value to compare. - * @returns {boolean} Returns `true` if the values are equivalent, else `false`. - * @example - * - * var object = { 'a': 1 }; - * var other = { 'a': 1 }; - * - * _.eq(object, object); - * // => true - * - * _.eq(object, other); - * // => false - * - * _.eq('a', 'a'); - * // => true - * - * _.eq('a', Object('a')); - * // => false - * - * _.eq(NaN, NaN); - * // => true - */ - function eq(value, other) { - return value === other || (value !== value && other !== other); - } + var value = (_value = {}, _value[droppableIdKey] = this.props.droppableId, _value[droppableTypeKey] = this.props.type, _value); + return value; + }; - module.exports = eq; + _proto.componentDidMount = function componentDidMount() { + throwIfRefIsInvalid(this.ref); + this.warnIfPlaceholderNotMounted(); + }; + _proto.componentDidUpdate = function componentDidUpdate() { + this.warnIfPlaceholderNotMounted(); + }; - /***/ }), - /* 135 */ - /***/ (function(module, exports, __webpack_require__) { + _proto.warnIfPlaceholderNotMounted = function warnIfPlaceholderNotMounted() { + if (process.env.NODE_ENV === 'production') { + return; + } - "use strict"; - /* WEBPACK VAR INJECTION */(function(process) { + if (!this.props.placeholder) { + return; + } - if (process.env.NODE_ENV === 'production') { - module.exports = __webpack_require__(673); - } else { - module.exports = __webpack_require__(674); - } + if (this.isPlaceholderMounted) { + return; + } - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) + console.warn("\n Droppable setup issue: DroppableProvided > placeholder could not be found.\n Please be sure to add the {provided.placeholder} Node as a child of your Droppable\n\n More information: https://github.com/atlassian/react-beautiful-dnd#1-provided-droppableprovided\n "); + }; - /***/ }), - /* 136 */ - /***/ (function(module, exports, __webpack_require__) { + _proto.getPlaceholder = function getPlaceholder() { + if (!this.props.placeholder) { + return null; + } - "use strict"; + return __WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement(Placeholder, { + placeholder: this.props.placeholder, + onMount: this.onPlaceholderMount, + onUnmount: this.onPlaceholderUnmount + }); + }; + _proto.render = function render() { + var _this$props = this.props, + children = _this$props.children, + direction = _this$props.direction, + droppableId = _this$props.droppableId, + ignoreContainerClipping = _this$props.ignoreContainerClipping, + isDraggingOver = _this$props.isDraggingOver, + isDropDisabled = _this$props.isDropDisabled, + draggingOverWith = _this$props.draggingOverWith, + type = _this$props.type; + var provided = { + innerRef: this.setRef, + placeholder: this.getPlaceholder(), + droppableProps: { + 'data-react-beautiful-dnd-droppable': this.styleContext + } + }; + var snapshot = { + isDraggingOver: isDraggingOver, + draggingOverWith: draggingOverWith + }; + return __WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement(DroppableDimensionPublisher, { + droppableId: droppableId, + type: type, + direction: direction, + ignoreContainerClipping: ignoreContainerClipping, + isDropDisabled: isDropDisabled, + getDroppableRef: this.getDroppableRef + }, children(provided, snapshot)); + }; - exports.__esModule = true; - exports.default = createChainableTypeChecker; - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ + return Droppable; + }(__WEBPACK_IMPORTED_MODULE_9_react__["Component"]); - // Mostly taken from ReactPropTypes. + Droppable.contextTypes = (_Droppable$contextTyp = {}, _Droppable$contextTyp[styleContextKey] = __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.string.isRequired, _Droppable$contextTyp); + Droppable.childContextTypes = (_Droppable$childConte = {}, _Droppable$childConte[droppableIdKey] = __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.string.isRequired, _Droppable$childConte[droppableTypeKey] = __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.string.isRequired, _Droppable$childConte); - /* This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ + var isStrictEqual = (function (a, b) { + return a === b; + }); - function createChainableTypeChecker(validate) { - function checkType(isRequired, props, propName, componentName, location, propFullName) { - var componentNameSafe = componentName || '<>'; - var propFullNameSafe = propFullName || propName; + var makeMapStateToProps = function makeMapStateToProps() { + var getIsDraggingOver = function getIsDraggingOver(id, destination) { + if (!destination) { + return false; + } - if (props[propName] == null) { - if (isRequired) { - return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); - } + return destination.droppableId === id; + }; - return null; + var shouldUsePlaceholder = function shouldUsePlaceholder(id, descriptor, destination) { + if (!destination) { + return false; } - for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { - args[_key - 6] = arguments[_key]; + if (id === descriptor.droppableId) { + return false; } - return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); - } + return id === destination.droppableId; + }; - var chainedCheckType = checkType.bind(null, false); - chainedCheckType.isRequired = checkType.bind(null, true); + var getMapProps = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (isDraggingOver, draggingOverWith, placeholder) { + return { + isDraggingOver: isDraggingOver, + draggingOverWith: draggingOverWith, + placeholder: placeholder + }; + }); - return chainedCheckType; - } + var getDefault = function getDefault() { + return getMapProps(false, null, null); + }; - /***/ }), - /* 137 */ - /***/ (function(module, exports, __webpack_require__) { + var selector = function selector(state, ownProps) { + if (ownProps.isDropDisabled) { + return getDefault(); + } - "use strict"; + var id = ownProps.droppableId; + if (state.isDragging) { + var destination = state.impact.destination; + var isDraggingOver = getIsDraggingOver(id, destination); + var draggableId = state.critical.draggable.id; + var draggingOverWith = isDraggingOver ? draggableId : null; + var draggable = state.dimensions.draggables[draggableId]; + var placeholder = shouldUsePlaceholder(id, draggable.descriptor, destination) ? draggable.placeholder : null; + return getMapProps(isDraggingOver, draggingOverWith, placeholder); + } - Object.defineProperty(exports, "__esModule", { - value: true - }); + if (state.phase === 'DROP_ANIMATING') { + var _destination = state.pending.impact.destination; - var _Select = __webpack_require__(738); + var _isDraggingOver = getIsDraggingOver(id, _destination); - var _Select2 = _interopRequireDefault(_Select); + var _draggableId = state.pending.result.draggableId; - var _Option = __webpack_require__(146); + var _draggingOverWith = _isDraggingOver ? _draggableId : null; - var _Option2 = _interopRequireDefault(_Option); + var _draggable = state.dimensions.draggables[_draggableId]; - var _PropTypes = __webpack_require__(268); + var _placeholder = shouldUsePlaceholder(id, _draggable.descriptor, _destination) ? _draggable.placeholder : null; - var _OptGroup = __webpack_require__(269); + return getMapProps(_isDraggingOver, _draggingOverWith, _placeholder); + } - var _OptGroup2 = _interopRequireDefault(_OptGroup); + return getDefault(); + }; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + return selector; + }; + var connectedDroppable = Object(__WEBPACK_IMPORTED_MODULE_11_react_redux__["a" /* connect */])(makeMapStateToProps, null, null, { + storeKey: storeKey, + pure: true, + areStatePropsEqual: isStrictEqual + })(Droppable); + connectedDroppable.defaultProps = { + type: 'DEFAULT', + isDropDisabled: false, + direction: 'vertical', + ignoreContainerClipping: false + }; - _Select2["default"].Option = _Option2["default"]; - _Select2["default"].OptGroup = _OptGroup2["default"]; - exports["default"] = _Select2["default"]; - module.exports = exports['default']; + var _DraggableDimensionPu; - /***/ }), - /* 138 */ - /***/ (function(module, exports, __webpack_require__) { + var DraggableDimensionPublisher = function (_Component) { + Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_corejs2_helpers_esm_inheritsLoose__["a" /* default */])(DraggableDimensionPublisher, _Component); - "use strict"; + function DraggableDimensionPublisher() { + var _this; + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } - exports.__esModule = true; - exports.default = createChainableTypeChecker; - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ + _this = _Component.call.apply(_Component, [this].concat(args)) || this; + _this.publishedDescriptor = null; + _this.getMemoizedDescriptor = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (id, index, droppableId, type) { + return { + id: id, + index: index, + droppableId: droppableId, + type: type + }; + }); - // Mostly taken from ReactPropTypes. + _this.publish = function () { + var marshal = _this.context[dimensionMarshalKey]; - /* This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ + var descriptor = _this.getMemoizedDescriptor(_this.props.draggableId, _this.props.index, _this.props.droppableId, _this.props.type); - function createChainableTypeChecker(validate) { - function checkType(isRequired, props, propName, componentName, location, propFullName) { - var componentNameSafe = componentName || '<>'; - var propFullNameSafe = propFullName || propName; + if (!_this.publishedDescriptor) { + marshal.registerDraggable(descriptor, _this.getDimension); + _this.publishedDescriptor = descriptor; + return; + } - if (props[propName] == null) { - if (isRequired) { - return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); + if (descriptor === _this.publishedDescriptor) { + return; } - return null; - } + marshal.updateDraggable(_this.publishedDescriptor, descriptor, _this.getDimension); + _this.publishedDescriptor = descriptor; + }; - for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { - args[_key - 6] = arguments[_key]; - } + _this.unpublish = function () { + !_this.publishedDescriptor ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot unpublish descriptor when none is published') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + var marshal = _this.context[dimensionMarshalKey]; + marshal.unregisterDraggable(_this.publishedDescriptor); + _this.publishedDescriptor = null; + }; - return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); + _this.getDimension = function (windowScroll) { + var targetRef = _this.props.getDraggableRef(); + + var descriptor = _this.publishedDescriptor; + !targetRef ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'DraggableDimensionPublisher cannot calculate a dimension when not attached to the DOM') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + !descriptor ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot get dimension for unpublished draggable') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + var computedStyles = window.getComputedStyle(targetRef); + var borderBox = targetRef.getBoundingClientRect(); + var client = Object(__WEBPACK_IMPORTED_MODULE_2_css_box_model__["a" /* calculateBox */])(borderBox, computedStyles); + var page = Object(__WEBPACK_IMPORTED_MODULE_2_css_box_model__["e" /* withScroll */])(client, windowScroll); + var placeholder = { + client: client, + tagName: targetRef.tagName.toLowerCase(), + display: computedStyles.display + }; + var dimension = { + descriptor: descriptor, + placeholder: placeholder, + client: client, + page: page + }; + return dimension; + }; + + return _this; } - var chainedCheckType = checkType.bind(null, false); - chainedCheckType.isRequired = checkType.bind(null, true); + var _proto = DraggableDimensionPublisher.prototype; - return chainedCheckType; - } + _proto.componentDidMount = function componentDidMount() { + this.publish(); + }; - /***/ }), - /* 139 */ - /***/ (function(module, exports, __webpack_require__) { + _proto.componentDidUpdate = function componentDidUpdate() { + this.publish(); + }; - "use strict"; + _proto.componentWillUnmount = function componentWillUnmount() { + this.unpublish(); + }; + _proto.render = function render() { + return this.props.children; + }; - exports.__esModule = true; - exports.default = createChainableTypeChecker; - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ + return DraggableDimensionPublisher; + }(__WEBPACK_IMPORTED_MODULE_9_react__["Component"]); - // Mostly taken from ReactPropTypes. + DraggableDimensionPublisher.contextTypes = (_DraggableDimensionPu = {}, _DraggableDimensionPu[dimensionMarshalKey] = __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.object.isRequired, _DraggableDimensionPu); - /* This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ + var DoubleRenderBlocker = function (_React$Component) { + Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_corejs2_helpers_esm_inheritsLoose__["a" /* default */])(DoubleRenderBlocker, _React$Component); - function createChainableTypeChecker(validate) { - function checkType(isRequired, props, propName, componentName, location, propFullName) { - var componentNameSafe = componentName || '<>'; - var propFullNameSafe = propFullName || propName; + function DoubleRenderBlocker() { + return _React$Component.apply(this, arguments) || this; + } - if (props[propName] == null) { - if (isRequired) { - return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); - } + var _proto = DoubleRenderBlocker.prototype; - return null; + _proto.shouldComponentUpdate = function shouldComponentUpdate(nextProps) { + if (isEqual(origin, nextProps.change)) { + return true; } - for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { - args[_key - 6] = arguments[_key]; + if (isEqual(this.props.change, nextProps.change)) { + return false; } - return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); - } - - var chainedCheckType = checkType.bind(null, false); - chainedCheckType.isRequired = checkType.bind(null, true); + return true; + }; - return chainedCheckType; - } + _proto.render = function render() { + return this.props.children(this.props.change); + }; - /***/ }), - /* 140 */ - /***/ (function(module, exports, __webpack_require__) { + return DoubleRenderBlocker; + }(__WEBPACK_IMPORTED_MODULE_9_react___default.a.Component); - "use strict"; + var Moveable = function (_Component) { + Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_corejs2_helpers_esm_inheritsLoose__["a" /* default */])(Moveable, _Component); + function Moveable() { + return _Component.apply(this, arguments) || this; + } - exports.__esModule = true; + var _proto2 = Moveable.prototype; - var _iterator = __webpack_require__(771); + _proto2.getFinal = function getFinal() { + var destination = this.props.destination; + var speed = this.props.speed; - var _iterator2 = _interopRequireDefault(_iterator); + if (speed === 'INSTANT') { + return destination; + } - var _symbol = __webpack_require__(777); + var config = speed === 'FAST' ? physics.fast : physics.standard; + return { + x: Object(__WEBPACK_IMPORTED_MODULE_12_react_motion__["spring"])(destination.x, config), + y: Object(__WEBPACK_IMPORTED_MODULE_12_react_motion__["spring"])(destination.y, config) + }; + }; - var _symbol2 = _interopRequireDefault(_symbol); + _proto2.render = function render() { + var _this = this; - var _typeof = typeof _symbol2.default === "function" && typeof _iterator2.default === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj; }; + var final = this.getFinal(); + return __WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_12_react_motion__["Motion"], { + defaultStyle: origin, + style: final, + onRest: this.props.onMoveEnd + }, function (current) { + var _this$props = _this.props, + speed = _this$props.speed, + destination = _this$props.destination, + children = _this$props.children; + var target = speed === 'INSTANT' ? destination : current; + return __WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement(DoubleRenderBlocker, { + change: target + }, children); + }); + }; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + return Moveable; + }(__WEBPACK_IMPORTED_MODULE_9_react__["Component"]); - exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) { - return typeof obj === "undefined" ? "undefined" : _typeof(obj); - } : function (obj) { - return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj); + Moveable.defaultProps = { + destination: origin }; - /***/ }), - /* 141 */ - /***/ (function(module, exports, __webpack_require__) { - - exports.f = __webpack_require__(29); + var getWindowFromRef = (function (ref) { + return ref ? ref.ownerDocument.defaultView : window; + }); + var selector = "[" + dragHandle + "]"; - /***/ }), - /* 142 */ - /***/ (function(module, exports, __webpack_require__) { + var isSVG = function isSVG(el) { + if (typeof SVGElement === 'undefined') { + return false; + } - var global = __webpack_require__(39); - var core = __webpack_require__(24); - var LIBRARY = __webpack_require__(87); - var wksExt = __webpack_require__(141); - var defineProperty = __webpack_require__(40).f; - module.exports = function (name) { - var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {}); - if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) }); + return el instanceof SVGElement; }; + var throwIfSVG = function throwIfSVG(el) { + !!isSVG(el) ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, "A drag handle cannot be an SVGElement: it has inconsistent focus support.\n\n More information: https://github.com/atlassian/react-beautiful-dnd/tree/master/docs/guides/dragging-svgs.md") : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + }; - /***/ }), - /* 143 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { - - "use strict"; - /* harmony export (immutable) */ __webpack_exports__["a"] = contains; - function contains(root, n) { - var node = n; - - while (node) { - if (node === root) { - return true; - } - - node = node.parentNode; + var getDragHandleRef = function getDragHandleRef(draggableRef) { + if (draggableRef.hasAttribute(dragHandle)) { + throwIfSVG(draggableRef); + return draggableRef; } - return false; - } - - /***/ }), - /* 144 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + var el = draggableRef.querySelector(selector); + throwIfSVG(draggableRef); + !el ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, "\n Cannot find drag handle element inside of Draggable.\n Please be sure to apply the {...provided.dragHandleProps} to your Draggable\n\n More information: https://github.com/atlassian/react-beautiful-dnd#draggable\n ") : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + !(el instanceof HTMLElement) ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'A drag handle must be a HTMLElement') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + return el; + }; - "use strict"; - /* harmony export (immutable) */ __webpack_exports__["a"] = addEventListenerWrap; - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_add_dom_event_listener__ = __webpack_require__(12); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_add_dom_event_listener___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_add_dom_event_listener__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom__ = __webpack_require__(3); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_dom__); + var retainingFocusFor = null; + var listenerOptions$1 = { + capture: true + }; + var clearRetentionOnFocusChange = function () { + var isBound = false; - function addEventListenerWrap(target, eventType, cb, option) { - /* eslint camelcase: 2 */ - var callback = __WEBPACK_IMPORTED_MODULE_1_react_dom___default.a.unstable_batchedUpdates ? function run(e) { - __WEBPACK_IMPORTED_MODULE_1_react_dom___default.a.unstable_batchedUpdates(cb, e); - } : cb; - return __WEBPACK_IMPORTED_MODULE_0_add_dom_event_listener___default()(target, eventType, callback, option); - } + var bind = function bind() { + if (isBound) { + return; + } - /***/ }), - /* 145 */ - /***/ (function(module, exports) { + isBound = true; + window.addEventListener('focus', onWindowFocusChange, listenerOptions$1); + }; - // mutationobserver-shim v0.3.3 (github.com/megawac/MutationObserver.js) - // Authors: Graeme Yeates (github.com/megawac) - /* - Shim for MutationObserver interface - Author: Graeme Yeates (github.com/megawac) - Repository: https://github.com/megawac/MutationObserver.js - License: WTFPL V2, 2004 (wtfpl.net). - Though credit and staring the repo will make me feel pretty, you can modify and redistribute as you please. - Attempts to follow spec (https://www.w3.org/TR/dom/#mutation-observers) as closely as possible for native javascript - See https://github.com/WebKit/webkit/blob/master/Source/WebCore/dom/MutationObserver.cpp for current webkit source c++ implementation - */ - window.MutationObserver||(window.MutationObserver=function(y){function z(a){this.i=[];this.m=a}function K(a){(function c(){var d=a.takeRecords();d.length&&a.m(d,a);a.h=setTimeout(c,z._period)})()}function r(a){var b={type:null,target:null,addedNodes:[],removedNodes:[],previousSibling:null,nextSibling:null,attributeName:null,attributeNamespace:null,oldValue:null},c;for(c in a)b[c]!==y&&a[c]!==y&&(b[c]=a[c]);return b}function L(a,b){var c=E(a,b);return function(d){var f=d.length;b.a&&3===a.nodeType&& - a.nodeValue!==c.a&&d.push(new r({type:"characterData",target:a,oldValue:c.a}));b.b&&c.b&&C(d,a,c.b,b.f);if(b.c||b.g)var m=M(d,a,c,b);if(m||d.length!==f)c=E(a,b)}}function N(a,b){return b.value}function O(a,b){return"style"!==b.name?b.value:a.style.cssText}function C(a,b,c,d){for(var f={},m=b.attributes,k,g,p=m.length;p--;)k=m[p],g=k.name,d&&d[g]===y||(F(b,k)!==c[g]&&a.push(r({type:"attributes",target:b,attributeName:g,oldValue:c[g],attributeNamespace:k.namespaceURI})),f[g]=!0);for(g in c)f[g]||a.push(r({target:b, - type:"attributes",attributeName:g,oldValue:c[g]}))}function M(a,b,c,d){function f(g,p,t,q,x){var A=g.length-1;x=-~((A-x)/2);for(var h,l,e;e=g.pop();)h=t[e.j],l=q[e.l],d.c&&x&&Math.abs(e.j-e.l)>=A&&(a.push(r({type:"childList",target:p,addedNodes:[h],removedNodes:[h],nextSibling:h.nextSibling,previousSibling:h.previousSibling})),x--),d.b&&l.b&&C(a,h,l.b,d.f),d.a&&3===h.nodeType&&h.nodeValue!==l.a&&a.push(r({type:"characterData",target:h,oldValue:l.a})),d.g&&m(h,l)}function m(g,p){for(var t=g.childNodes, - q=p.c,x=t.length,A=q?q.length:0,h,l,e,n,v,B=0,w=0,u=0;w= sloppyClickThreshold || Math.abs(current.y - original.y) >= sloppyClickThreshold; + }); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var tab = 9; + var enter = 13; + var escape = 27; + var space = 32; + var pageUp = 33; + var pageDown = 34; + var end = 35; + var home = 36; + var arrowLeft = 37; + var arrowUp = 38; + var arrowRight = 39; + var arrowDown = 40; - function toTitle(title) { - if (typeof title === 'string') { - return title; + var _preventedKeys; + var preventedKeys = (_preventedKeys = {}, _preventedKeys[enter] = true, _preventedKeys[tab] = true, _preventedKeys); + var preventStandardKeyEvents = (function (event) { + if (preventedKeys[event.keyCode]) { + event.preventDefault(); } - return null; - } + }); - function getValuePropValue(child) { - if (!child) { - return null; - } + var getOptions = function getOptions(shared, fromBinding) { + return Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({}, shared, fromBinding); + }; - var props = child.props; - if ('value' in props) { - return props.value; - } - if (child.key) { - return child.key; - } - if (child.type && child.type.isSelectOptGroup && props.label) { - return props.label; - } - throw new Error('Need at least a key or a value or a label (only for OptGroup) for ' + child); - } + var bindEvents = function bindEvents(el, bindings, sharedOptions) { + bindings.forEach(function (binding) { + var options = getOptions(sharedOptions, binding.options); + el.addEventListener(binding.eventName, binding.fn, options); + }); + }; + var unbindEvents = function unbindEvents(el, bindings, sharedOptions) { + bindings.forEach(function (binding) { + var options = getOptions(sharedOptions, binding.options); + el.removeEventListener(binding.eventName, binding.fn, options); + }); + }; - function getPropValue(child, prop) { - if (prop === 'value') { - return getValuePropValue(child); - } - return child.props[prop]; - } + var sharedOptions = { + capture: true + }; + var createPostDragEventPreventer = (function (getWindow) { + var isBound = false; - function isMultiple(props) { - return props.multiple; - } + var bind = function bind() { + if (isBound) { + return; + } - function isCombobox(props) { - return props.combobox; - } + isBound = true; + bindEvents(getWindow(), pointerEvents, sharedOptions); + }; - function isMultipleOrTags(props) { - return props.multiple || props.tags; - } + var unbind = function unbind() { + if (!isBound) { + return; + } - function isMultipleOrTagsOrCombobox(props) { - return isMultipleOrTags(props) || isCombobox(props); - } + isBound = false; + unbindEvents(getWindow(), pointerEvents, sharedOptions); + }; - function isSingleMode(props) { - return !isMultipleOrTagsOrCombobox(props); - } + var pointerEvents = [{ + eventName: 'click', + fn: function fn(event) { + event.preventDefault(); + unbind(); + } + }, { + eventName: 'mousedown', + fn: unbind + }, { + eventName: 'touchstart', + fn: unbind + }]; - function toArray(value) { - var ret = value; - if (value === undefined) { - ret = []; - } else if (!Array.isArray(value)) { - ret = [value]; - } - return ret; - } + var preventNext = function preventNext() { + if (isBound) { + unbind(); + } - function getMapKey(value) { - return (typeof value === 'undefined' ? 'undefined' : _typeof(value)) + '-' + value; - } + bind(); + }; - function preventDefaultEvent(e) { - e.preventDefault(); - } + var preventer = { + preventNext: preventNext, + abort: unbind + }; + return preventer; + }); - function findIndexInValueBySingleValue(value, singleValue) { - var index = -1; - for (var i = 0; i < value.length; i++) { - if (value[i] === singleValue) { - index = i; - break; - } - } - return index; - } + var createEventMarshal = (function () { + var isMouseDownHandled = false; - function getLabelFromPropsValue(value, key) { - var label = void 0; - value = toArray(value); - for (var i = 0; i < value.length; i++) { - if (value[i].key === key) { - label = value[i].label; - break; - } - } - return label; - } + var handle = function handle() { + !!isMouseDownHandled ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot handle mouse down as it is already handled') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + isMouseDownHandled = true; + }; - function getSelectKeys(menuItems, value) { - if (value === null || value === undefined) { - return []; - } - var selectedKeys = []; - _react2["default"].Children.forEach(menuItems, function (item) { - if (item.type.isMenuItemGroup) { - selectedKeys = selectedKeys.concat(getSelectKeys(item.props.children, value)); - } else { - var itemValue = getValuePropValue(item); - var itemKey = item.key; - if (findIndexInValueBySingleValue(value, itemValue) !== -1 && itemKey) { - selectedKeys.push(itemKey); - } - } - }); - return selectedKeys; - } + var isHandled = function isHandled() { + return isMouseDownHandled; + }; - var UNSELECTABLE_STYLE = exports.UNSELECTABLE_STYLE = { - userSelect: 'none', - WebkitUserSelect: 'none' - }; + var reset = function reset() { + isMouseDownHandled = false; + }; - var UNSELECTABLE_ATTRIBUTE = exports.UNSELECTABLE_ATTRIBUTE = { - unselectable: 'on' - }; + return { + handle: handle, + isHandled: isHandled, + reset: reset + }; + }); - function findFirstMenuItem(children) { - for (var i = 0; i < children.length; i++) { - var child = children[i]; - if (child.type.isMenuItemGroup) { - var found = findFirstMenuItem(child.props.children); - if (found) { - return found; - } - } else if (!child.props.disabled) { - return child; - } - } - return null; - } + var supportedEventName = function () { + var base = 'visibilitychange'; - function includesSeparators(string, separators) { - for (var i = 0; i < separators.length; ++i) { - if (string.lastIndexOf(separators[i]) > 0) { - return true; - } + if (typeof document === 'undefined') { + return base; } - return false; - } - function splitBySeparators(string, separators) { - var reg = new RegExp('[' + separators.join() + ']'); - return string.split(reg).filter(function (token) { - return token; - }); + var candidates = [base, "ms" + base, "webkit" + base, "moz" + base, "o" + base]; + var supported = ""; + for(var k = 0; k++; k < candidates.length) { + if(candidates[k] === "on" + eventName in document){ + supported = candidates[k]; + } } + return supported || base; + }(); - function defaultFilterFn(input, child) { - if (child.props.disabled) { - return false; - } - var value = toArray(getPropValue(child, this.props.optionFilterProp)).join(''); - return value.toLowerCase().indexOf(input.toLowerCase()) > -1; - } + var primaryButton = 0; - function validateOptionValue(value, props) { - if (isSingleMode(props) || isMultiple(props)) { - return; - } - if (typeof value !== 'string') { - throw new Error('Invalid `value` of type `' + (typeof value === 'undefined' ? 'undefined' : _typeof(value)) + '` supplied to Option, ' + 'expected `string` when `tags/combobox` is `true`.'); - } - } + var noop = function noop() {}; - function saveRef(instance, name) { - return function (node) { - instance[name] = node; + var mouseDownMarshal = createEventMarshal(); + var createMouseSensor = (function (_ref) { + var callbacks = _ref.callbacks, + getWindow = _ref.getWindow, + canStartCapturing = _ref.canStartCapturing; + var state = { + isDragging: false, + pending: null }; - } - /***/ }), - /* 148 */ - /***/ (function(module, exports, __webpack_require__) { + var setState = function setState(newState) { + state = newState; + }; - "use strict"; + var isDragging = function isDragging() { + return state.isDragging; + }; + var isCapturing = function isCapturing() { + return Boolean(state.pending || state.isDragging); + }; - module.exports = __webpack_require__(815); + var schedule = createScheduler(callbacks); + var postDragEventPreventer = createPostDragEventPreventer(getWindow); - /***/ }), - /* 149 */ - /***/ (function(module, exports, __webpack_require__) { + var startDragging = function startDragging(fn) { + if (fn === void 0) { + fn = noop; + } - "use strict"; + setState({ + pending: null, + isDragging: true + }); + fn(); + }; + var stopDragging = function stopDragging(fn, shouldBlockClick) { + if (fn === void 0) { + fn = noop; + } - exports.__esModule = true; - exports.default = createChainableTypeChecker; - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ + if (shouldBlockClick === void 0) { + shouldBlockClick = true; + } - // Mostly taken from ReactPropTypes. + schedule.cancel(); + unbindWindowEvents(); + mouseDownMarshal.reset(); - /* This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ + if (shouldBlockClick) { + postDragEventPreventer.preventNext(); + } - function createChainableTypeChecker(validate) { - function checkType(isRequired, props, propName, componentName, location, propFullName) { - var componentNameSafe = componentName || '<>'; - var propFullNameSafe = propFullName || propName; + setState({ + isDragging: false, + pending: null + }); + fn(); + }; - if (props[propName] == null) { - if (isRequired) { - return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); - } + var startPendingDrag = function startPendingDrag(point) { + setState({ + pending: point, + isDragging: false + }); + bindWindowEvents(); + }; - return null; - } + var stopPendingDrag = function stopPendingDrag() { + stopDragging(noop, false); + }; - for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { - args[_key - 6] = arguments[_key]; + var kill = function kill(fn) { + if (fn === void 0) { + fn = noop; } - return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); - } + if (state.pending) { + stopPendingDrag(); + return; + } - var chainedCheckType = checkType.bind(null, false); - chainedCheckType.isRequired = checkType.bind(null, true); + stopDragging(fn); + }; - return chainedCheckType; - } + var unmount = function unmount() { + kill(); + postDragEventPreventer.abort(); + }; - /***/ }), - /* 150 */ - /***/ (function(module, exports, __webpack_require__) { + var cancel = function cancel() { + kill(callbacks.onCancel); + }; - "use strict"; + var windowBindings = [{ + eventName: 'mousemove', + fn: function fn(event) { + var button = event.button, + clientX = event.clientX, + clientY = event.clientY; + if (button !== primaryButton) { + return; + } - exports.__esModule = true; - exports.default = createChainableTypeChecker; - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ + var point = { + x: clientX, + y: clientY + }; - // Mostly taken from ReactPropTypes. + if (state.isDragging) { + event.preventDefault(); + schedule.move(point); + return; + } - /* This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ + if (!state.pending) { + kill(); + process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Expected there to be a pending drag') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false); + } - function createChainableTypeChecker(validate) { - function checkType(isRequired, props, propName, componentName, location, propFullName) { - var componentNameSafe = componentName || '<>'; - var propFullNameSafe = propFullName || propName; + if (!isSloppyClickThresholdExceeded(state.pending, point)) { + return; + } - if (props[propName] == null) { - if (isRequired) { - return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); + event.preventDefault(); + startDragging(function () { + return callbacks.onLift({ + clientSelection: point, + autoScrollMode: 'FLUID' + }); + }); + } + }, { + eventName: 'mouseup', + fn: function fn(event) { + if (state.pending) { + stopPendingDrag(); + return; } - return null; + event.preventDefault(); + stopDragging(callbacks.onDrop); } + }, { + eventName: 'mousedown', + fn: function fn(event) { + if (state.isDragging) { + event.preventDefault(); + } - for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { - args[_key - 6] = arguments[_key]; + stopDragging(callbacks.onCancel); } + }, { + eventName: 'keydown', + fn: function fn(event) { + if (!state.isDragging) { + cancel(); + return; + } - return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); - } + if (event.keyCode === escape) { + event.preventDefault(); + cancel(); + return; + } - var chainedCheckType = checkType.bind(null, false); - chainedCheckType.isRequired = checkType.bind(null, true); + preventStandardKeyEvents(event); + } + }, { + eventName: 'resize', + fn: cancel + }, { + eventName: 'scroll', + options: { + passive: true, + capture: false + }, + fn: function fn() { + if (state.pending) { + stopPendingDrag(); + return; + } - return chainedCheckType; - } + schedule.windowScrollMove(); + } + }, { + eventName: 'webkitmouseforcechanged', + fn: function fn(event) { + if (event.webkitForce == null || MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN == null) { + if (process.env.NODE_ENV !== 'production') { + console.warn('handling a mouse force changed event when it is not supported'); + } - /***/ }), - /* 151 */ - /***/ (function(module, exports, __webpack_require__) { + return; + } - "use strict"; + var forcePressThreshold = MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN; + var isForcePressing = event.webkitForce >= forcePressThreshold; + if (isForcePressing) { + cancel(); + } + } + }, { + eventName: supportedEventName, + fn: cancel + }]; - Object.defineProperty(exports, "__esModule", { - value: true - }); + var bindWindowEvents = function bindWindowEvents() { + var win = getWindow(); + bindEvents(win, windowBindings, { + capture: true + }); + }; - var _Dropdown = __webpack_require__(893); + var unbindWindowEvents = function unbindWindowEvents() { + var win = getWindow(); + unbindEvents(win, windowBindings, { + capture: true + }); + }; - var _Dropdown2 = _interopRequireDefault(_Dropdown); + var onMouseDown = function onMouseDown(event) { + if (mouseDownMarshal.isHandled()) { + return; + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + !!isCapturing() ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Should not be able to perform a mouse down while a drag or pending drag is occurring') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - exports["default"] = _Dropdown2["default"]; - module.exports = exports['default']; + if (!canStartCapturing(event)) { + return; + } - /***/ }), - /* 152 */ - /***/ (function(module, exports, __webpack_require__) { + if (event.button !== primaryButton) { + return; + } - "use strict"; + if (event.ctrlKey || event.metaKey || event.shiftKey || event.altKey) { + return; + } + mouseDownMarshal.handle(); + event.preventDefault(); + var point = { + x: event.clientX, + y: event.clientY + }; + startPendingDrag(point); + }; - Object.defineProperty(exports, "__esModule", { - value: true + var sensor = { + onMouseDown: onMouseDown, + kill: kill, + isCapturing: isCapturing, + isDragging: isDragging, + unmount: unmount + }; + return sensor; }); - exports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = undefined; - - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - - var _react = __webpack_require__(0); - - var _react2 = _interopRequireDefault(_react); - - var _reactDom = __webpack_require__(3); - var _reactDom2 = _interopRequireDefault(_reactDom); + var getBorderBoxCenterPosition = (function (el) { + return Object(__WEBPACK_IMPORTED_MODULE_2_css_box_model__["d" /* getRect */])(el.getBoundingClientRect()).center; + }); - var _properties = __webpack_require__(27); + var _scrollJumpKeys; + var scrollJumpKeys = (_scrollJumpKeys = {}, _scrollJumpKeys[pageDown] = true, _scrollJumpKeys[pageUp] = true, _scrollJumpKeys[home] = true, _scrollJumpKeys[end] = true, _scrollJumpKeys); - var _properties2 = _interopRequireDefault(_properties); + var noop$1 = function noop() {}; - var _on = __webpack_require__(17); + var createKeyboardSensor = (function (_ref) { + var callbacks = _ref.callbacks, + getWindow = _ref.getWindow, + getDraggableRef = _ref.getDraggableRef, + canStartCapturing = _ref.canStartCapturing; + var state = { + isDragging: false + }; - var _on2 = _interopRequireDefault(_on); + var setState = function setState(newState) { + state = newState; + }; - var _classnames = __webpack_require__(37); + var startDragging = function startDragging(fn) { + if (fn === void 0) { + fn = noop$1; + } - var _classnames2 = _interopRequireDefault(_classnames); + setState({ + isDragging: true + }); + bindWindowEvents(); + fn(); + }; - var _propTypes = __webpack_require__(1); + var stopDragging = function stopDragging(fn) { + if (fn === void 0) { + fn = noop$1; + } - var _propTypes2 = _interopRequireDefault(_propTypes); + schedule.cancel(); + unbindWindowEvents(); + setState({ + isDragging: false + }); + fn(); + }; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var kill = function kill() { + return stopDragging(); + }; - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + var cancel = function cancel() { + stopDragging(callbacks.onCancel); + }; - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + var isDragging = function isDragging() { + return state.isDragging; + }; - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + var schedule = createScheduler(callbacks); - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + var onKeyDown = function onKeyDown(event) { + if (!isDragging()) { + if (event.defaultPrevented) { + return; + } - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + if (!canStartCapturing(event)) { + return; + } - var transitionEndEvent = _properties2["default"].end; + if (event.keyCode !== space) { + return; + } - //设置状态码 - var UNMOUNTED = exports.UNMOUNTED = 0; - var EXITED = exports.EXITED = 1; - var ENTERING = exports.ENTERING = 2; - var ENTERED = exports.ENTERED = 3; - var EXITING = exports.EXITING = 4; + var ref = getDraggableRef(); + !ref ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot start a keyboard drag without a draggable ref') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + var center = getBorderBoxCenterPosition(ref); + event.preventDefault(); + startDragging(function () { + return callbacks.onLift({ + clientSelection: center, + autoScrollMode: 'JUMP' + }); + }); + return; + } - var propTypes = { - /** - * 是否触发动画 - */ - "in": _propTypes2["default"].bool, + if (event.keyCode === escape) { + event.preventDefault(); + cancel(); + return; + } - /** - * 不显示的时候是否移除组件 - */ - unmountOnExit: _propTypes2["default"].bool, + if (event.keyCode === space) { + event.preventDefault(); + stopDragging(callbacks.onDrop); + return; + } - /** - * 如果设置为默认显示,挂载时显示动画 - */ - transitionAppear: _propTypes2["default"].bool, + if (event.keyCode === arrowDown) { + event.preventDefault(); + schedule.moveDown(); + return; + } - /** - * 设置超时时间,防止出现问题,可设置为>=动画时间 - */ - timeout: _propTypes2["default"].number, + if (event.keyCode === arrowUp) { + event.preventDefault(); + schedule.moveUp(); + return; + } - /** - * 退出组件时添加的class - */ - exitedClassName: _propTypes2["default"].string, - /** - * 退出组件中添加的class - */ - exitingClassName: _propTypes2["default"].string, - /** - * 进入动画后添加的class - */ - enteredClassName: _propTypes2["default"].string, - /** - * 进入动画时添加的class - */ - enteringClassName: _propTypes2["default"].string, + if (event.keyCode === arrowRight) { + event.preventDefault(); + schedule.moveRight(); + return; + } - /** - * 进入动画开始时的钩子函数 - */ - onEnter: _propTypes2["default"].func, - /** - * 进入动画中的钩子函数 - */ - onEntering: _propTypes2["default"].func, - /** - * 进入动画后的钩子函数 - */ - onEntered: _propTypes2["default"].func, - /** - * 退出动画开始时的钩子函数 - */ - onExit: _propTypes2["default"].func, - /** - * 退出动画中的钩子函数 - */ - onExiting: _propTypes2["default"].func, - /** - * 退出动画后的钩子函数 - */ - onExited: _propTypes2["default"].func - }; + if (event.keyCode === arrowLeft) { + event.preventDefault(); + schedule.moveLeft(); + return; + } - function noop() {} + if (scrollJumpKeys[event.keyCode]) { + event.preventDefault(); + return; + } - var defaultProps = { - "in": false, - unmountOnExit: false, - transitionAppear: false, - timeout: 5000, - onEnter: noop, - onEntering: noop, - onEntered: noop, - onExit: noop, - onExiting: noop, - onExited: noop - }; + preventStandardKeyEvents(event); + }; - /** - * 动画组件 - */ + var windowBindings = [{ + eventName: 'mousedown', + fn: cancel + }, { + eventName: 'mouseup', + fn: cancel + }, { + eventName: 'click', + fn: cancel + }, { + eventName: 'touchstart', + fn: cancel + }, { + eventName: 'resize', + fn: cancel + }, { + eventName: 'wheel', + fn: cancel + }, { + eventName: 'scroll', + options: { + capture: false + }, + fn: callbacks.onWindowScroll + }, { + eventName: supportedEventName, + fn: cancel + }]; - var Transition = function (_Component) { - _inherits(Transition, _Component); + var bindWindowEvents = function bindWindowEvents() { + bindEvents(getWindow(), windowBindings, { + capture: true + }); + }; - function Transition(props, context) { - _classCallCheck(this, Transition); + var unbindWindowEvents = function unbindWindowEvents() { + unbindEvents(getWindow(), windowBindings, { + capture: true + }); + }; - var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); + var sensor = { + onKeyDown: onKeyDown, + kill: kill, + isDragging: isDragging, + isCapturing: isDragging, + unmount: kill + }; + return sensor; + }); - var initialStatus = void 0; - if (props["in"]) { - // 在componentdidmount时开始执行动画 - initialStatus = props.transitionAppear ? EXITED : ENTERED; - } else { - initialStatus = props.unmountOnExit ? UNMOUNTED : EXITED; - } - _this.state = { status: initialStatus }; + var timeForLongPress = 150; + var forcePressThreshold = 0.15; + var touchStartMarshal = createEventMarshal(); - _this.nextCallback = null; - return _this; - } + var noop$2 = function noop() {}; - Transition.prototype.componentDidMount = function componentDidMount() { - if (this.props.transitionAppear && this.props["in"]) { - this.performEnter(this.props); - } + var webkitHack = function () { + var stub = { + preventTouchMove: noop$2, + releaseTouchMove: noop$2 }; - Transition.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - if (nextProps["in"] && this.props.unmountOnExit) { - if (this.state.status === UNMOUNTED) { - // 在componentDidUpdate执行动画. - this.setState({ status: EXITED }); - } - } else { - this._needsUpdate = true; - } - }; + if (typeof window === 'undefined') { + return stub; + } - Transition.prototype.componentDidUpdate = function componentDidUpdate() { - var status = this.state.status; + if (!('ontouchstart' in window)) { + return stub; + } - if (this.props.unmountOnExit && status === EXITED) { - // 当使用unmountOnExit时,exited为exiting和unmont的过渡状态 - if (this.props["in"]) { - this.performEnter(this.props); - } else { - this.setState({ status: UNMOUNTED }); - } + var isBlocking = false; + window.addEventListener('touchmove', function (event) { + if (!isBlocking) { + return; + } + if (event.defaultPrevented) { return; } - // 确保只响应prop变化 - if (this._needsUpdate) { - this._needsUpdate = false; + event.preventDefault(); + }, { + passive: false, + capture: false + }); - if (this.props["in"]) { - if (status === EXITING) { - this.performEnter(this.props); - } else if (status === EXITED) { - this.performEnter(this.props); - } - // 其他,当我们已经输入或输出 - } else { - if (status === ENTERING || status === ENTERED) { - this.performExit(this.props); - } - // 我们已经输入或输出完成 - } - } + var preventTouchMove = function preventTouchMove() { + isBlocking = true; }; - Transition.prototype.componentWillUnmount = function componentWillUnmount() { - this.cancelNextCallback(); + var releaseTouchMove = function releaseTouchMove() { + isBlocking = false; }; - Transition.prototype.performEnter = function performEnter(props) { - var _this2 = this; - - this.cancelNextCallback(); - var node = _reactDom2["default"].findDOMNode(this); + return { + preventTouchMove: preventTouchMove, + releaseTouchMove: releaseTouchMove + }; + }(); - // 这里接收新props - props.onEnter(node); + var initial = { + isDragging: false, + pending: null, + hasMoved: false, + longPressTimerId: null + }; + var createTouchSensor = (function (_ref) { + var callbacks = _ref.callbacks, + getWindow = _ref.getWindow, + canStartCapturing = _ref.canStartCapturing; + var state = initial; - this.safeSetState({ status: ENTERING }, function () { - _this2.props.onEntering(node); + var setState = function setState(partial) { + state = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__["a" /* default */])({}, state, partial); + }; - _this2.onTransitionEnd(node, function () { - _this2.safeSetState({ status: ENTERED }, function () { - _this2.props.onEntered(node); - }); - }); - }); + var isDragging = function isDragging() { + return state.isDragging; }; - Transition.prototype.performExit = function performExit(props) { - var _this3 = this; + var isCapturing = function isCapturing() { + return Boolean(state.pending || state.isDragging || state.longPressTimerId); + }; - this.cancelNextCallback(); - var node = _reactDom2["default"].findDOMNode(this); + var schedule = createScheduler(callbacks); + var postDragEventPreventer = createPostDragEventPreventer(getWindow); - props.onExit(node); + var startDragging = function startDragging() { + var pending = state.pending; - this.safeSetState({ status: EXITING }, function () { - _this3.props.onExiting(node); + if (!pending) { + kill(); + process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'cannot start a touch drag without a pending position') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false); + } - _this3.onTransitionEnd(node, function () { - _this3.safeSetState({ status: EXITED }, function () { - _this3.props.onExited(node); - }); - }); + setState({ + isDragging: true, + hasMoved: false, + pending: null, + longPressTimerId: null + }); + callbacks.onLift({ + clientSelection: pending, + autoScrollMode: 'FLUID' }); }; - Transition.prototype.cancelNextCallback = function cancelNextCallback() { - if (this.nextCallback !== null) { - this.nextCallback.cancel(); - this.nextCallback = null; + var stopDragging = function stopDragging(fn) { + if (fn === void 0) { + fn = noop$2; } - }; - Transition.prototype.safeSetState = function safeSetState(nextState, callback) { - // 确保在组件销毁后挂起的setState被消除 - this.setState(nextState, this.setNextCallback(callback)); + schedule.cancel(); + touchStartMarshal.reset(); + webkitHack.releaseTouchMove(); + unbindWindowEvents(); + postDragEventPreventer.preventNext(); + setState(initial); + fn(); }; - Transition.prototype.setNextCallback = function setNextCallback(callback) { - var _this4 = this; - - var active = true; - - this.nextCallback = function (event) { - if (active) { - active = false; - _this4.nextCallback = null; - - callback(event); - } - }; - - this.nextCallback.cancel = function () { - active = false; + var startPendingDrag = function startPendingDrag(event) { + var touch = event.touches[0]; + var clientX = touch.clientX, + clientY = touch.clientY; + var point = { + x: clientX, + y: clientY }; - - return this.nextCallback; + var longPressTimerId = setTimeout(startDragging, timeForLongPress); + setState({ + longPressTimerId: longPressTimerId, + pending: point, + isDragging: false, + hasMoved: false + }); + bindWindowEvents(); }; - Transition.prototype.onTransitionEnd = function onTransitionEnd(node, handler) { - this.setNextCallback(handler); - - if (node) { - if (transitionEndEvent == undefined) { - this.nextCallback(); - } else { - (0, _on2["default"])(node, transitionEndEvent, this.nextCallback); - } - setTimeout(this.nextCallback, this.props.timeout); - } else { - setTimeout(this.nextCallback, 0); + var stopPendingDrag = function stopPendingDrag() { + if (state.longPressTimerId) { + clearTimeout(state.longPressTimerId); } + + schedule.cancel(); + touchStartMarshal.reset(); + webkitHack.releaseTouchMove(); + unbindWindowEvents(); + setState(initial); }; - Transition.prototype.render = function render() { - var status = this.state.status; - if (status === UNMOUNTED) { - return null; + var kill = function kill(fn) { + if (fn === void 0) { + fn = noop$2; } - var _props = this.props, - children = _props.children, - className = _props.className, - childProps = _objectWithoutProperties(_props, ['children', 'className']); + if (state.pending) { + stopPendingDrag(); + return; + } - Object.keys(Transition.propTypes).forEach(function (key) { - return delete childProps[key]; - }); + stopDragging(fn); + }; - var transitionClassName = void 0; - if (status === EXITED) { - transitionClassName = this.props.exitedClassName; - } else if (status === ENTERING) { - transitionClassName = this.props.enteringClassName; - } else if (status === ENTERED) { - transitionClassName = this.props.enteredClassName; - } else if (status === EXITING) { - transitionClassName = this.props.exitingClassName; - } + var unmount = function unmount() { + kill(); + postDragEventPreventer.abort(); + }; - var child = _react2["default"].Children.only(children); - return _react2["default"].cloneElement(child, _extends({}, childProps, { - className: (0, _classnames2["default"])(child.props.className, className, transitionClassName) - })); + var cancel = function cancel() { + kill(callbacks.onCancel); }; - return Transition; - }(_react.Component); + var windowBindings = [{ + eventName: 'touchmove', + options: { + passive: false + }, + fn: function fn(event) { + if (!state.isDragging) { + stopPendingDrag(); + return; + } - Transition.propTypes = propTypes; + if (!state.hasMoved) { + setState({ + hasMoved: true + }); + } - Transition.defaultProps = defaultProps; + var _event$touches$ = event.touches[0], + clientX = _event$touches$.clientX, + clientY = _event$touches$.clientY; + var point = { + x: clientX, + y: clientY + }; + event.preventDefault(); + schedule.move(point); + } + }, { + eventName: 'touchend', + fn: function fn(event) { + if (!state.isDragging) { + stopPendingDrag(); + return; + } - exports["default"] = Transition; + event.preventDefault(); + stopDragging(callbacks.onDrop); + } + }, { + eventName: 'touchcancel', + fn: function fn(event) { + if (!state.isDragging) { + stopPendingDrag(); + return; + } - /***/ }), - /* 153 */ - /***/ (function(module, exports, __webpack_require__) { + event.preventDefault(); + stopDragging(callbacks.onCancel); + } + }, { + eventName: 'touchstart', + fn: cancel + }, { + eventName: 'orientationchange', + fn: cancel + }, { + eventName: 'resize', + fn: cancel + }, { + eventName: 'scroll', + options: { + passive: true, + capture: false + }, + fn: function fn() { + if (state.pending) { + stopPendingDrag(); + return; + } - "use strict"; + schedule.windowScrollMove(); + } + }, { + eventName: 'contextmenu', + fn: function fn(event) { + event.preventDefault(); + } + }, { + eventName: 'keydown', + fn: function fn(event) { + if (!state.isDragging) { + cancel(); + return; + } + if (event.keyCode === escape) { + event.preventDefault(); + } - exports.__esModule = true; - exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined; + cancel(); + } + }, { + eventName: 'touchforcechange', + fn: function fn(event) { + if (state.hasMoved) { + event.preventDefault(); + return; + } - var _all2 = __webpack_require__(900); + var touch = event.touches[0]; - var _all3 = _interopRequireDefault(_all2); + if (touch.force >= forcePressThreshold) { + cancel(); + } + } + }, { + eventName: supportedEventName, + fn: cancel + }]; - var _componentOrElement2 = __webpack_require__(901); + var bindWindowEvents = function bindWindowEvents() { + bindEvents(getWindow(), windowBindings, { + capture: true + }); + }; - var _componentOrElement3 = _interopRequireDefault(_componentOrElement2); + var unbindWindowEvents = function unbindWindowEvents() { + unbindEvents(getWindow(), windowBindings, { + capture: true + }); + }; - var _deprecated2 = __webpack_require__(902); + var onTouchStart = function onTouchStart(event) { + if (touchStartMarshal.isHandled()) { + return; + } - var _deprecated3 = _interopRequireDefault(_deprecated2); + !!isCapturing() ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Should not be able to perform a touch start while a drag or pending drag is occurring') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - var _elementType2 = __webpack_require__(904); + if (!canStartCapturing(event)) { + return; + } - var _elementType3 = _interopRequireDefault(_elementType2); + touchStartMarshal.handle(); + webkitHack.preventTouchMove(); + startPendingDrag(event); + }; - var _isRequiredForA11y2 = __webpack_require__(905); + var sensor = { + onTouchStart: onTouchStart, + kill: kill, + isCapturing: isCapturing, + isDragging: isDragging, + unmount: unmount + }; + return sensor; + }); - var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2); + var _DragHandle$contextTy; - var _splitComponent2 = __webpack_require__(906); + var preventHtml5Dnd = function preventHtml5Dnd(event) { + event.preventDefault(); + }; - var _splitComponent3 = _interopRequireDefault(_splitComponent2); + var DragHandle = function (_Component) { + Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_corejs2_helpers_esm_inheritsLoose__["a" /* default */])(DragHandle, _Component); - var _createChainedFunction2 = __webpack_require__(279); + function DragHandle(props, context) { + var _this; - var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2); + _this = _Component.call(this, props, context) || this; + _this.mouseSensor = void 0; + _this.keyboardSensor = void 0; + _this.touchSensor = void 0; + _this.sensors = void 0; + _this.styleContext = void 0; + _this.canLift = void 0; + _this.isFocused = false; + _this.lastDraggableRef = void 0; - var _keyCode = __webpack_require__(907); + _this.onFocus = function () { + _this.isFocused = true; + }; - var _keyCode2 = _interopRequireDefault(_keyCode); + _this.onBlur = function () { + _this.isFocused = false; + }; - var _contains2 = __webpack_require__(908); + _this.onKeyDown = function (event) { + if (_this.mouseSensor.isCapturing() || _this.touchSensor.isCapturing()) { + return; + } - var _contains3 = _interopRequireDefault(_contains2); + _this.keyboardSensor.onKeyDown(event); + }; - var _addEventListener2 = __webpack_require__(280); + _this.onMouseDown = function (event) { + if (_this.keyboardSensor.isCapturing() || _this.mouseSensor.isCapturing()) { + return; + } - var _addEventListener3 = _interopRequireDefault(_addEventListener2); + _this.mouseSensor.onMouseDown(event); + }; - var _cssAnimation2 = __webpack_require__(909); + _this.onTouchStart = function (event) { + if (_this.mouseSensor.isCapturing() || _this.keyboardSensor.isCapturing()) { + return; + } - var _cssAnimation3 = _interopRequireDefault(_cssAnimation2); + _this.touchSensor.onTouchStart(event); + }; - var _toArray2 = __webpack_require__(911); + _this.canStartCapturing = function (event) { + if (_this.isAnySensorCapturing()) { + return false; + } - var _toArray3 = _interopRequireDefault(_toArray2); + if (!_this.canLift(_this.props.draggableId)) { + return false; + } - var _Align2 = __webpack_require__(912); + return shouldAllowDraggingFromTarget(event, _this.props); + }; - var _Align3 = _interopRequireDefault(_Align2); + _this.isAnySensorCapturing = function () { + return _this.sensors.some(function (sensor) { + return sensor.isCapturing(); + }); + }; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + _this.getProvided = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (isEnabled) { + if (!isEnabled) { + return null; + } - exports.all = _all3.default; - exports.componentOrElement = _componentOrElement3.default; - exports.deprecated = _deprecated3.default; - exports.elementType = _elementType3.default; - exports.isRequiredForA11y = _isRequiredForA11y3.default; - exports.splitComponent = _splitComponent3.default; - exports.createChainedFunction = _createChainedFunction3.default; - exports.KeyCode = _keyCode2.default; - exports.contains = _contains3.default; - exports.addEventListener = _addEventListener3.default; - exports.cssAnimation = _cssAnimation3.default; - exports.toArray = _toArray3.default; - //export getContainerRenderMixin from './getContainerRenderMixin'; + var provided = { + onMouseDown: _this.onMouseDown, + onKeyDown: _this.onKeyDown, + onTouchStart: _this.onTouchStart, + onFocus: _this.onFocus, + onBlur: _this.onBlur, + tabIndex: 0, + 'data-react-beautiful-dnd-drag-handle': _this.styleContext, + 'aria-roledescription': 'Draggable item. Press space bar to lift', + draggable: false, + onDragStart: preventHtml5Dnd + }; + return provided; + }); - exports.Align = _Align3.default; + var getWindow = function getWindow() { + return getWindowFromRef(_this.props.getDraggableRef()); + }; - /***/ }), - /* 154 */ - /***/ (function(module, exports, __webpack_require__) { + var args = { + callbacks: _this.props.callbacks, + getDraggableRef: _this.props.getDraggableRef, + getWindow: getWindow, + canStartCapturing: _this.canStartCapturing + }; + _this.mouseSensor = createMouseSensor(args); + _this.keyboardSensor = createKeyboardSensor(args); + _this.touchSensor = createTouchSensor(args); + _this.sensors = [_this.mouseSensor, _this.keyboardSensor, _this.touchSensor]; + _this.styleContext = context[styleContextKey]; + _this.canLift = context[canLiftContextKey]; + return _this; + } - "use strict"; + var _proto = DragHandle.prototype; + _proto.componentDidMount = function componentDidMount() { + var draggableRef = this.props.getDraggableRef(); + this.lastDraggableRef = draggableRef; + !draggableRef ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot get draggable ref from drag handle') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; - exports.__esModule = true; - exports.default = createChainableTypeChecker; - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ + if (!this.props.isEnabled) { + return; + } - // Mostly taken from ReactPropTypes. + var dragHandleRef = getDragHandleRef(draggableRef); + retainer.tryRestoreFocus(this.props.draggableId, dragHandleRef); + }; - /* This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ + _proto.componentDidUpdate = function componentDidUpdate(prevProps) { + var _this2 = this; - function createChainableTypeChecker(validate) { - function checkType(isRequired, props, propName, componentName, location, propFullName) { - var componentNameSafe = componentName || '<>'; - var propFullNameSafe = propFullName || propName; + var ref = this.props.getDraggableRef(); - if (props[propName] == null) { - if (isRequired) { - return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); + if (ref !== this.lastDraggableRef) { + this.lastDraggableRef = ref; + + if (!ref || !this.isFocused) { + return; } - return null; - } + if (!this.props.isEnabled) { + return; + } - for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { - args[_key - 6] = arguments[_key]; + getDragHandleRef(ref).focus(); } - return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); - } - - var chainedCheckType = checkType.bind(null, false); - chainedCheckType.isRequired = checkType.bind(null, true); + var isCapturing = this.isAnySensorCapturing(); - return chainedCheckType; - } + if (!isCapturing) { + return; + } - /***/ }), - /* 155 */ - /***/ (function(module, exports, __webpack_require__) { + var isDragStopping = prevProps.isDragging && !this.props.isDragging; - "use strict"; + if (isDragStopping) { + this.sensors.forEach(function (sensor) { + if (sensor.isCapturing()) { + sensor.kill(); + } + }); + } + if (this.props.isEnabled) { + return; + } - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = undefined; + this.sensors.forEach(function (sensor) { + if (!sensor.isCapturing()) { + return; + } - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + var wasDragging = sensor.isDragging(); + sensor.kill(); - var _react = __webpack_require__(0); + if (wasDragging) { + if (process.env.NODE_ENV !== 'production') { + console.warn('You have disabled dragging on a Draggable while it was dragging. The drag has been cancelled'); + } - var _react2 = _interopRequireDefault(_react); + _this2.props.callbacks.onCancel(); + } + }); + }; - var _reactDom = __webpack_require__(3); + _proto.componentWillUnmount = function componentWillUnmount() { + var _this3 = this; - var _reactDom2 = _interopRequireDefault(_reactDom); + this.sensors.forEach(function (sensor) { + var wasDragging = sensor.isDragging(); + sensor.unmount(); - var _properties = __webpack_require__(27); + if (wasDragging) { + _this3.props.callbacks.onCancel(); + } + }); - var _properties2 = _interopRequireDefault(_properties); + var shouldRetainFocus = function () { + if (!_this3.props.isEnabled) { + return false; + } - var _on = __webpack_require__(17); + if (!_this3.isFocused) { + return false; + } - var _on2 = _interopRequireDefault(_on); + return _this3.props.isDragging || _this3.props.isDropAnimating; + }(); - var _classnames = __webpack_require__(2); + if (shouldRetainFocus) { + retainer.retain(this.props.draggableId); + } + }; - var _classnames2 = _interopRequireDefault(_classnames); + _proto.render = function render() { + var _this$props = this.props, + children = _this$props.children, + isEnabled = _this$props.isEnabled; + return children(this.getProvided(isEnabled)); + }; - var _propTypes = __webpack_require__(1); + return DragHandle; + }(__WEBPACK_IMPORTED_MODULE_9_react__["Component"]); - var _propTypes2 = _interopRequireDefault(_propTypes); + DragHandle.contextTypes = (_DragHandle$contextTy = {}, _DragHandle$contextTy[styleContextKey] = __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.string.isRequired, _DragHandle$contextTy[canLiftContextKey] = __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.func.isRequired, _DragHandle$contextTy); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var getWindowScroll = (function () { + return { + x: window.pageXOffset, + y: window.pageYOffset + }; + }); - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + var getViewport = (function () { + var scroll = getWindowScroll(); + var top = scroll.y; + var left = scroll.x; + var doc = document.documentElement; + !doc ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Could not find document.documentElement') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + var width = doc.clientWidth; + var height = doc.clientHeight; + var right = left + width; + var bottom = top + height; + var frame = Object(__WEBPACK_IMPORTED_MODULE_2_css_box_model__["d" /* getRect */])({ + top: top, + left: left, + right: right, + bottom: bottom + }); + var maxScroll = getMaxScroll({ + scrollHeight: doc.scrollHeight, + scrollWidth: doc.scrollWidth, + width: frame.width, + height: frame.height + }); + var viewport = { + frame: frame, + scroll: { + initial: scroll, + current: scroll, + max: maxScroll, + diff: { + value: origin, + displacement: origin + } + } + }; + return viewport; + }); - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + var _Draggable$contextTyp; + var zIndexOptions = { + dragging: 5000, + dropAnimating: 4500 + }; - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + var getTranslate = function getTranslate(offset) { + if (isEqual(offset, origin)) { + return null; + } - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + return "translate(" + offset.x + "px, " + offset.y + "px)"; + }; - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + var getSpeed$1 = function getSpeed(isDragging, shouldAnimateDragMovement, isDropAnimating) { + if (isDropAnimating) { + return 'STANDARD'; + } - var transitionEndEvent = _properties2["default"].end; + if (isDragging && shouldAnimateDragMovement) { + return 'FAST'; + } - //设置状态码 - var UNMOUNTED = exports.UNMOUNTED = 0; - var EXITED = exports.EXITED = 1; - var ENTERING = exports.ENTERING = 2; - var ENTERED = exports.ENTERED = 3; - var EXITING = exports.EXITING = 4; + return 'INSTANT'; + }; - var propTypes = { - /** - * 是否触发动画 - */ - "in": _propTypes2["default"].bool, + var Draggable = function (_Component) { + Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_corejs2_helpers_esm_inheritsLoose__["a" /* default */])(Draggable, _Component); - /** - * 不显示的时候是否移除组件 - */ - unmountOnExit: _propTypes2["default"].bool, + function Draggable(props, context) { + var _this; - /** - * 如果设置为默认显示,挂载时显示动画 - */ - transitionAppear: _propTypes2["default"].bool, + _this = _Component.call(this, props, context) || this; + _this.callbacks = void 0; + _this.styleContext = void 0; + _this.ref = null; - /** - * 设置超时时间,防止出现问题,可设置为>=动画时间 - */ - timeout: _propTypes2["default"].number, + _this.onMoveEnd = function () { + if (_this.props.isDropAnimating) { + _this.props.dropAnimationFinished(); + } + }; - /** - * 退出组件时添加的class - */ - exitedClassName: _propTypes2["default"].string, - /** - * 退出组件中添加的class - */ - exitingClassName: _propTypes2["default"].string, - /** - * 进入动画后添加的class - */ - enteredClassName: _propTypes2["default"].string, - /** - * 进入动画时添加的class - */ - enteringClassName: _propTypes2["default"].string, + _this.onLift = function (options) { + start('LIFT'); + var ref = _this.ref; + !ref ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + !!_this.props.isDragDisabled ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Cannot lift a Draggable when it is disabled') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + var clientSelection = options.clientSelection, + autoScrollMode = options.autoScrollMode; + var _this$props = _this.props, + lift = _this$props.lift, + draggableId = _this$props.draggableId; + var client = { + selection: clientSelection, + borderBoxCenter: getBorderBoxCenterPosition(ref), + offset: origin + }; + lift({ + id: draggableId, + client: client, + autoScrollMode: autoScrollMode, + viewport: getViewport() + }); + finish('LIFT'); + }; - /** - * 进入动画开始时的钩子函数 - */ - onEnter: _propTypes2["default"].func, - /** - * 进入动画中的钩子函数 - */ - onEntering: _propTypes2["default"].func, - /** - * 进入动画后的钩子函数 - */ - onEntered: _propTypes2["default"].func, - /** - * 退出动画开始时的钩子函数 - */ - onExit: _propTypes2["default"].func, - /** - * 退出动画中的钩子函数 - */ - onExiting: _propTypes2["default"].func, - /** - * 退出动画后的钩子函数 - */ - onExited: _propTypes2["default"].func - }; + _this.setRef = function (ref) { + if (ref === null) { + return; + } - function noop() {} + if (ref === _this.ref) { + return; + } - var defaultProps = { - "in": false, - unmountOnExit: false, - transitionAppear: false, - timeout: 5000, - onEnter: noop, - onEntering: noop, - onEntered: noop, - onExit: noop, - onExiting: noop, - onExited: noop - }; + _this.ref = ref; + throwIfRefIsInvalid(ref); + }; - /** - * 动画组件 - */ + _this.getDraggableRef = function () { + return _this.ref; + }; - var Transition = function (_Component) { - _inherits(Transition, _Component); + _this.getDraggingStyle = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (change, dimension, isDropAnimating) { + var box = dimension.client; + var style = { + position: 'fixed', + top: box.marginBox.top, + left: box.marginBox.left, + boxSizing: 'border-box', + width: box.borderBox.width, + height: box.borderBox.height, + transition: 'none', + zIndex: isDropAnimating ? zIndexOptions.dropAnimating : zIndexOptions.dragging, + transform: getTranslate(change), + pointerEvents: 'none' + }; + return style; + }); + _this.getNotDraggingStyle = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (current, shouldAnimateDisplacement) { + var style = { + transform: getTranslate(current), + transition: shouldAnimateDisplacement ? null : 'none' + }; + return style; + }); + _this.getProvided = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (change, isDragging, isDropAnimating, shouldAnimateDisplacement, dimension, dragHandleProps) { + var useDraggingStyle = isDragging || isDropAnimating; - function Transition(props, context) { - _classCallCheck(this, Transition); + var draggableStyle = function () { + if (!useDraggingStyle) { + return _this.getNotDraggingStyle(change, shouldAnimateDisplacement); + } - var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); + !dimension ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'draggable dimension required for dragging') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + return _this.getDraggingStyle(change, dimension, isDropAnimating); + }(); - var initialStatus = void 0; - if (props["in"]) { - // 在componentdidmount时开始执行动画 - initialStatus = props.transitionAppear ? EXITED : ENTERED; - } else { - initialStatus = props.unmountOnExit ? UNMOUNTED : EXITED; - } - _this.state = { status: initialStatus }; + var provided = { + innerRef: _this.setRef, + draggableProps: { + 'data-react-beautiful-dnd-draggable': _this.styleContext, + style: draggableStyle + }, + dragHandleProps: dragHandleProps + }; + return provided; + }); + _this.getSnapshot = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (isDragging, isDropAnimating, draggingOver) { + return { + isDragging: isDragging || isDropAnimating, + isDropAnimating: isDropAnimating, + draggingOver: draggingOver + }; + }); - _this.nextCallback = null; - return _this; - } + _this.renderChildren = function (change, dragHandleProps) { + var _this$props2 = _this.props, + isDragging = _this$props2.isDragging, + isDropAnimating = _this$props2.isDropAnimating, + dimension = _this$props2.dimension, + draggingOver = _this$props2.draggingOver, + shouldAnimateDisplacement = _this$props2.shouldAnimateDisplacement, + children = _this$props2.children; + var child = children(_this.getProvided(change, isDragging, isDropAnimating, shouldAnimateDisplacement, dimension, dragHandleProps), _this.getSnapshot(isDragging, isDropAnimating, draggingOver)); + var isDraggingOrDropping = isDragging || isDropAnimating; - Transition.prototype.componentDidMount = function componentDidMount() { - if (this.props.transitionAppear && this.props["in"]) { - this.performEnter(this.props); - } - }; + var placeholder = function () { + if (!isDraggingOrDropping) { + return null; + } - Transition.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - if (nextProps["in"] && this.props.unmountOnExit) { - if (this.state.status === UNMOUNTED) { - // 在componentDidUpdate执行动画. - this.setState({ status: EXITED }); - } - } else { - this._needsUpdate = true; - } - }; + !dimension ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false, 'Draggable: Dimension is required for dragging') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__["a" /* default */])(false) : void 0; + return __WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement(Placeholder, { + placeholder: dimension.placeholder + }); + }(); - Transition.prototype.componentDidUpdate = function componentDidUpdate() { - var status = this.state.status; + return __WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9_react__["Fragment"], null, child, placeholder); + }; - if (this.props.unmountOnExit && status === EXITED) { - // 当使用unmountOnExit时,exited为exiting和unmont的过渡状态 - if (this.props["in"]) { - this.performEnter(this.props); - } else { - this.setState({ status: UNMOUNTED }); + var callbacks = { + onLift: _this.onLift, + onMove: function onMove(clientSelection) { + return props.move({ + client: clientSelection, + shouldAnimate: false + }); + }, + onDrop: function onDrop() { + return props.drop({ + reason: 'DROP' + }); + }, + onCancel: function onCancel() { + return props.drop({ + reason: 'CANCEL' + }); + }, + onMoveUp: props.moveUp, + onMoveDown: props.moveDown, + onMoveRight: props.moveRight, + onMoveLeft: props.moveLeft, + onWindowScroll: function onWindowScroll() { + return props.moveByWindowScroll({ + scroll: getWindowScroll() + }); } + }; + _this.callbacks = callbacks; + _this.styleContext = context[styleContextKey]; + return _this; + } - return; - } - - // 确保只响应prop变化 - if (this._needsUpdate) { - this._needsUpdate = false; - - if (this.props["in"]) { - if (status === EXITING) { - this.performEnter(this.props); - } else if (status === EXITED) { - this.performEnter(this.props); - } - // 其他,当我们已经输入或输出 - } else { - if (status === ENTERING || status === ENTERED) { - this.performExit(this.props); - } - // 我们已经输入或输出完成 - } - } - }; + var _proto = Draggable.prototype; - Transition.prototype.componentWillUnmount = function componentWillUnmount() { - this.cancelNextCallback(); + _proto.componentWillUnmount = function componentWillUnmount() { + this.ref = null; }; - Transition.prototype.performEnter = function performEnter(props) { + _proto.render = function render() { var _this2 = this; - this.cancelNextCallback(); - var node = _reactDom2["default"].findDOMNode(this); - - // 这里接收新props - props.onEnter(node); - - this.safeSetState({ status: ENTERING }, function () { - _this2.props.onEntering(node); - - _this2.onTransitionEnd(node, function () { - _this2.safeSetState({ status: ENTERED }, function () { - _this2.props.onEntered(node); - }); + var _this$props3 = this.props, + draggableId = _this$props3.draggableId, + index = _this$props3.index, + offset = _this$props3.offset, + isDragging = _this$props3.isDragging, + isDropAnimating = _this$props3.isDropAnimating, + isDragDisabled = _this$props3.isDragDisabled, + shouldAnimateDragMovement = _this$props3.shouldAnimateDragMovement, + disableInteractiveElementBlocking = _this$props3.disableInteractiveElementBlocking; + var droppableId = this.context[droppableIdKey]; + var type = this.context[droppableTypeKey]; + var speed = getSpeed$1(isDragging, shouldAnimateDragMovement, isDropAnimating); + return __WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement(DraggableDimensionPublisher, { + key: draggableId, + draggableId: draggableId, + droppableId: droppableId, + type: type, + index: index, + getDraggableRef: this.getDraggableRef + }, __WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement(Moveable, { + speed: speed, + destination: offset, + onMoveEnd: this.onMoveEnd + }, function (change) { + return __WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement(DragHandle, { + draggableId: draggableId, + isDragging: isDragging, + isDropAnimating: isDropAnimating, + isEnabled: !isDragDisabled, + callbacks: _this2.callbacks, + getDraggableRef: _this2.getDraggableRef, + canDragInteractiveElements: disableInteractiveElementBlocking + }, function (dragHandleProps) { + return _this2.renderChildren(change, dragHandleProps); }); - }); + })); }; - Transition.prototype.performExit = function performExit(props) { - var _this3 = this; + return Draggable; + }(__WEBPACK_IMPORTED_MODULE_9_react__["Component"]); - this.cancelNextCallback(); - var node = _reactDom2["default"].findDOMNode(this); + Draggable.contextTypes = (_Draggable$contextTyp = {}, _Draggable$contextTyp[droppableIdKey] = __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.string.isRequired, _Draggable$contextTyp[droppableTypeKey] = __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.string.isRequired, _Draggable$contextTyp[styleContextKey] = __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.string.isRequired, _Draggable$contextTyp); - props.onExit(node); + var defaultMapProps = { + isDropAnimating: false, + isDragging: false, + offset: origin, + shouldAnimateDragMovement: false, + shouldAnimateDisplacement: true, + dimension: null, + draggingOver: null + }; + var makeMapStateToProps$1 = function makeMapStateToProps() { + var memoizedOffset = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (x, y) { + return { + x: x, + y: y + }; + }); + var getNotDraggingProps = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (offset, shouldAnimateDisplacement) { + return { + isDropAnimating: false, + isDragging: false, + offset: offset, + shouldAnimateDisplacement: shouldAnimateDisplacement, + shouldAnimateDragMovement: false, + dimension: null, + draggingOver: null + }; + }); + var getDraggingProps = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__["a" /* default */])(function (offset, shouldAnimateDragMovement, dimension, draggingOver) { + return { + isDragging: true, + isDropAnimating: false, + shouldAnimateDisplacement: false, + offset: offset, + shouldAnimateDragMovement: shouldAnimateDragMovement, + dimension: dimension, + draggingOver: draggingOver + }; + }); - this.safeSetState({ status: EXITING }, function () { - _this3.props.onExiting(node); + var getOutOfTheWayMovement = function getOutOfTheWayMovement(id, movement) { + var map = getDisplacementMap(movement.displaced); + var displacement = map[id]; - _this3.onTransitionEnd(node, function () { - _this3.safeSetState({ status: EXITED }, function () { - _this3.props.onExited(node); - }); - }); - }); - }; + if (!displacement) { + return null; + } - Transition.prototype.cancelNextCallback = function cancelNextCallback() { - if (this.nextCallback !== null) { - this.nextCallback.cancel(); - this.nextCallback = null; + if (!displacement.isVisible) { + return null; } - }; - Transition.prototype.safeSetState = function safeSetState(nextState, callback) { - // 确保在组件销毁后挂起的setState被消除 - this.setState(nextState, this.setNextCallback(callback)); + var amount = movement.isBeyondStartPosition ? negate(movement.amount) : movement.amount; + return getNotDraggingProps(memoizedOffset(amount.x, amount.y), displacement.shouldAnimate); }; - Transition.prototype.setNextCallback = function setNextCallback(callback) { - var _this4 = this; + var draggingSelector = function draggingSelector(state, ownProps) { + if (state.isDragging) { + if (state.critical.draggable.id !== ownProps.draggableId) { + return null; + } - var active = true; + var offset = state.current.client.offset; + var dimension = state.dimensions.draggables[ownProps.draggableId]; + var shouldAnimateDragMovement = state.shouldAnimate; + var draggingOver = state.impact.destination ? state.impact.destination.droppableId : null; + return getDraggingProps(memoizedOffset(offset.x, offset.y), shouldAnimateDragMovement, dimension, draggingOver); + } - this.nextCallback = function (event) { - if (active) { - active = false; - _this4.nextCallback = null; + if (state.phase === 'DROP_ANIMATING') { + var pending = state.pending; - callback(event); + if (pending.result.draggableId !== ownProps.draggableId) { + return null; } - }; - this.nextCallback.cancel = function () { - active = false; - }; + var _draggingOver = pending.result.destination ? pending.result.destination.droppableId : null; - return this.nextCallback; - }; + return { + isDragging: false, + isDropAnimating: true, + offset: pending.newHomeOffset, + dimension: state.dimensions.draggables[ownProps.draggableId], + draggingOver: _draggingOver, + shouldAnimateDragMovement: false, + shouldAnimateDisplacement: false + }; + } - Transition.prototype.onTransitionEnd = function onTransitionEnd(node, handler) { - this.setNextCallback(handler); + return null; + }; - if (node) { - if (transitionEndEvent == undefined) { - this.nextCallback(); - } else { - (0, _on2["default"])(node, transitionEndEvent, this.nextCallback); + var movingOutOfTheWaySelector = function movingOutOfTheWaySelector(state, ownProps) { + if (state.isDragging) { + if (state.critical.draggable.id === ownProps.draggableId) { + return null; } - setTimeout(this.nextCallback, this.props.timeout); - } else { - setTimeout(this.nextCallback, 0); - } - }; - Transition.prototype.render = function render() { - var status = this.state.status; - if (status === UNMOUNTED) { - return null; + return getOutOfTheWayMovement(ownProps.draggableId, state.impact.movement); } - var _props = this.props, - children = _props.children, - className = _props.className, - childProps = _objectWithoutProperties(_props, ['children', 'className']); - - Object.keys(Transition.propTypes).forEach(function (key) { - return delete childProps[key]; - }); + if (state.phase === 'DROP_ANIMATING') { + if (state.pending.result.draggableId === ownProps.draggableId) { + return null; + } - var transitionClassName = void 0; - if (status === EXITED) { - transitionClassName = this.props.exitedClassName; - } else if (status === ENTERING) { - transitionClassName = this.props.enteringClassName; - } else if (status === ENTERED) { - transitionClassName = this.props.enteredClassName; - } else if (status === EXITING) { - transitionClassName = this.props.exitingClassName; + return getOutOfTheWayMovement(ownProps.draggableId, state.pending.impact.movement); } - var child = _react2["default"].Children.only(children); - return _react2["default"].cloneElement(child, _extends({}, childProps, { - className: (0, _classnames2["default"])(child.props.className, className, transitionClassName) - })); + return null; }; - return Transition; - }(_react.Component); - - Transition.propTypes = propTypes; + var selector = function selector(state, ownProps) { + var dragging = draggingSelector(state, ownProps); - Transition.defaultProps = defaultProps; + if (dragging) { + return dragging; + } - exports["default"] = Transition; + var movingOutOfTheWay = movingOutOfTheWaySelector(state, ownProps); - /***/ }), - /* 156 */ - /***/ (function(module, exports, __webpack_require__) { + if (movingOutOfTheWay) { + return movingOutOfTheWay; + } - "use strict"; + return defaultMapProps; + }; + return selector; + }; + var mapDispatchToProps = { + lift: lift, + move: move, + moveUp: moveUp, + moveDown: moveDown, + moveLeft: moveLeft, + moveRight: moveRight, + moveByWindowScroll: moveByWindowScroll, + drop: drop, + dropAnimationFinished: dropAnimationFinished + }; + var ConnectedDraggable = Object(__WEBPACK_IMPORTED_MODULE_11_react_redux__["a" /* connect */])(makeMapStateToProps$1, mapDispatchToProps, null, { + storeKey: storeKey, + pure: true, + areStatePropsEqual: isStrictEqual + })(Draggable); + ConnectedDraggable.defaultProps = { + isDragDisabled: false, + disableInteractiveElementBlocking: false + }; - exports.__esModule = true; - exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined; - var _all2 = __webpack_require__(938); - var _all3 = _interopRequireDefault(_all2); + /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(5))) - var _componentOrElement2 = __webpack_require__(939); + /***/ }), + /* 30 */ + /***/ (function(module, exports, __webpack_require__) { - var _componentOrElement3 = _interopRequireDefault(_componentOrElement2); + var store = __webpack_require__(126)('wks'); + var uid = __webpack_require__(89); + var Symbol = __webpack_require__(39).Symbol; + var USE_SYMBOL = typeof Symbol == 'function'; - var _deprecated2 = __webpack_require__(940); + var $exports = module.exports = function (name) { + return store[name] || (store[name] = + USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); + }; - var _deprecated3 = _interopRequireDefault(_deprecated2); + $exports.store = store; - var _elementType2 = __webpack_require__(941); - var _elementType3 = _interopRequireDefault(_elementType2); + /***/ }), + /* 31 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { - var _isRequiredForA11y2 = __webpack_require__(942); + "use strict"; + Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(8); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); - var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2); + function omit(obj, fields) { + var shallowCopy = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, obj); + for (var i = 0; i < fields.length; i++) { + var key = fields[i]; + delete shallowCopy[key]; + } + return shallowCopy; + } - var _splitComponent2 = __webpack_require__(943); + /* harmony default export */ __webpack_exports__["default"] = (omit); - var _splitComponent3 = _interopRequireDefault(_splitComponent2); + /***/ }), + /* 32 */ + /***/ (function(module, exports, __webpack_require__) { - var _createChainedFunction2 = __webpack_require__(284); + "use strict"; - var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2); - var _keyCode = __webpack_require__(944); + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = style; - var _keyCode2 = _interopRequireDefault(_keyCode); + var _camelizeStyle = __webpack_require__(271); - var _contains2 = __webpack_require__(945); + var _camelizeStyle2 = _interopRequireDefault(_camelizeStyle); - var _contains3 = _interopRequireDefault(_contains2); + var _hyphenateStyle = __webpack_require__(883); - var _addEventListener2 = __webpack_require__(285); + var _hyphenateStyle2 = _interopRequireDefault(_hyphenateStyle); - var _addEventListener3 = _interopRequireDefault(_addEventListener2); + var _getComputedStyle2 = __webpack_require__(885); - var _cssAnimation2 = __webpack_require__(946); + var _getComputedStyle3 = _interopRequireDefault(_getComputedStyle2); - var _cssAnimation3 = _interopRequireDefault(_cssAnimation2); + var _removeStyle = __webpack_require__(886); - var _toArray2 = __webpack_require__(948); + var _removeStyle2 = _interopRequireDefault(_removeStyle); - var _toArray3 = _interopRequireDefault(_toArray2); + var _properties = __webpack_require__(28); - var _Align2 = __webpack_require__(949); + var _isTransform = __webpack_require__(887); - var _Align3 = _interopRequireDefault(_Align2); + var _isTransform2 = _interopRequireDefault(_isTransform); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - exports.all = _all3.default; - exports.componentOrElement = _componentOrElement3.default; - exports.deprecated = _deprecated3.default; - exports.elementType = _elementType3.default; - exports.isRequiredForA11y = _isRequiredForA11y3.default; - exports.splitComponent = _splitComponent3.default; - exports.createChainedFunction = _createChainedFunction3.default; - exports.KeyCode = _keyCode2.default; - exports.contains = _contains3.default; - exports.addEventListener = _addEventListener3.default; - exports.cssAnimation = _cssAnimation3.default; - exports.toArray = _toArray3.default; - //export getContainerRenderMixin from './getContainerRenderMixin'; - - exports.Align = _Align3.default; - - /***/ }), - /* 157 */ - /***/ (function(module, exports, __webpack_require__) { - - "use strict"; - - - exports.__esModule = true; - exports.default = createChainableTypeChecker; - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - - // Mostly taken from ReactPropTypes. - - /* This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ - - function createChainableTypeChecker(validate) { - function checkType(isRequired, props, propName, componentName, location, propFullName) { - var componentNameSafe = componentName || '<>'; - var propFullNameSafe = propFullName || propName; - - if (props[propName] == null) { - if (isRequired) { - return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); - } + function style(node, property, value) { + var css = ''; + var transforms = ''; + var props = property; - return null; + if (typeof property === 'string') { + if (value === undefined) { + return node.style[(0, _camelizeStyle2.default)(property)] || (0, _getComputedStyle3.default)(node).getPropertyValue((0, _hyphenateStyle2.default)(property)); + } else { + (props = {})[property] = value; } + } - for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { - args[_key - 6] = arguments[_key]; + Object.keys(props).forEach(function (key) { + var value = props[key]; + if (!value && value !== 0) { + (0, _removeStyle2.default)(node, (0, _hyphenateStyle2.default)(key)); + } else if ((0, _isTransform2.default)(key)) { + transforms += key + '(' + value + ') '; + } else { + css += (0, _hyphenateStyle2.default)(key) + ': ' + value + ';'; } + }); - return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); + if (transforms) { + css += _properties.transform + ': ' + transforms + ';'; } - var chainedCheckType = checkType.bind(null, false); - chainedCheckType.isRequired = checkType.bind(null, true); - - return chainedCheckType; + node.style.cssText += ';' + css; } + module.exports = exports['default']; /***/ }), - /* 158 */ + /* 33 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -121169,3961 +109407,4878 @@ Object.defineProperty(exports, "__esModule", { value: true }); - exports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = undefined; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _react = __webpack_require__(0); + exports.getTodayTime = getTodayTime; + exports.getTitleString = getTitleString; + exports.getTodayTimeStr = getTodayTimeStr; + exports.getMonthName = getMonthName; + exports.syncTime = syncTime; + exports.getTimeConfig = getTimeConfig; + exports.isTimeValidByConfig = isTimeValidByConfig; + exports.isTimeValid = isTimeValid; + exports.isAllowedDate = isAllowedDate; + exports.formatDate = formatDate; - var _react2 = _interopRequireDefault(_react); + var _moment = __webpack_require__(4); - var _reactDom = __webpack_require__(3); + var _moment2 = _interopRequireDefault(_moment); - var _reactDom2 = _interopRequireDefault(_reactDom); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - var _properties = __webpack_require__(27); + var defaultDisabledTime = { + disabledHours: function disabledHours() { + return []; + }, + disabledMinutes: function disabledMinutes() { + return []; + }, + disabledSeconds: function disabledSeconds() { + return []; + } + }; - var _properties2 = _interopRequireDefault(_properties); + function getTodayTime(value) { + var today = (0, _moment2["default"])(); + if (typeof value !== 'undefined') { + today.locale(value.locale()).utcOffset(value.utcOffset()); + } + return today; + } - var _on = __webpack_require__(17); + function getTitleString(value) { + return value.format('LL'); + } - var _on2 = _interopRequireDefault(_on); + function getTodayTimeStr(value) { + var today = getTodayTime(value); + return getTitleString(today); + } - var _classnames = __webpack_require__(2); + function getMonthName(month) { + var locale = month.locale(); + var localeData = month.localeData(); + return localeData[locale === 'zh-cn' ? 'months' : 'monthsShort'](month); + } - var _classnames2 = _interopRequireDefault(_classnames); + function syncTime(from, to) { + if (!_moment2["default"].isMoment(from) || !_moment2["default"].isMoment(to)) return; + to.hour(from.hour()); + to.minute(from.minute()); + to.second(from.second()); + } - var _propTypes = __webpack_require__(1); + function getTimeConfig(value, disabledTime) { + var disabledTimeConfig = disabledTime ? disabledTime(value) : {}; + disabledTimeConfig = _extends({}, defaultDisabledTime, disabledTimeConfig); + return disabledTimeConfig; + } - var _propTypes2 = _interopRequireDefault(_propTypes); + function isTimeValidByConfig(value, disabledTimeConfig) { + var invalidTime = false; + if (value) { + var hour = value.hour(); + var minutes = value.minute(); + var seconds = value.second(); + var disabledHours = disabledTimeConfig.disabledHours(); + if (disabledHours.indexOf(hour) === -1) { + var disabledMinutes = disabledTimeConfig.disabledMinutes(hour); + if (disabledMinutes.indexOf(minutes) === -1) { + var disabledSeconds = disabledTimeConfig.disabledSeconds(hour, minutes); + invalidTime = disabledSeconds.indexOf(seconds) !== -1; + } else { + invalidTime = true; + } + } else { + invalidTime = true; + } + } + return !invalidTime; + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + function isTimeValid(value, disabledTime) { + var disabledTimeConfig = getTimeConfig(value, disabledTime); + return isTimeValidByConfig(value, disabledTimeConfig); + } - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + function isAllowedDate(value, disabledDate, disabledTime) { + if (disabledDate) { + if (disabledDate(value)) { + return false; + } + } + if (disabledTime) { + if (!isTimeValid(value, disabledTime)) { + return false; + } + } + return true; + } - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + function formatDate(value, format) { + if (!value) { + return ''; + } - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + if (Array.isArray(format)) { + format = format[0]; + } - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + return value.format(format); + } - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + /***/ }), + /* 34 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { - var transitionEndEvent = _properties2["default"].end; + "use strict"; + /* harmony export (immutable) */ __webpack_exports__["h"] = findPopupContainer; + /* harmony export (immutable) */ __webpack_exports__["r"] = toTitle; + /* unused harmony export toArray */ + /* harmony export (immutable) */ __webpack_exports__["g"] = createRef; + /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return UNSELECTABLE_STYLE; }); + /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return UNSELECTABLE_ATTRIBUTE; }); + /* harmony export (immutable) */ __webpack_exports__["i"] = flatToHierarchy; + /* unused harmony export resetAriaId */ + /* harmony export (immutable) */ __webpack_exports__["l"] = generateAriaId; + /* harmony export (immutable) */ __webpack_exports__["o"] = isLabelInValue; + /* harmony export (immutable) */ __webpack_exports__["q"] = parseSimpleTreeData; + /* harmony export (immutable) */ __webpack_exports__["p"] = isPosRelated; + /* harmony export (immutable) */ __webpack_exports__["c"] = cleanEntity; + /* harmony export (immutable) */ __webpack_exports__["m"] = getFilterTree; + /* harmony export (immutable) */ __webpack_exports__["j"] = formatInternalValue; + /* unused harmony export getLabel */ + /* harmony export (immutable) */ __webpack_exports__["k"] = formatSelectorValue; + /* harmony export (immutable) */ __webpack_exports__["e"] = convertDataToTree; + /* harmony export (immutable) */ __webpack_exports__["f"] = convertTreeToEntities; + /* harmony export (immutable) */ __webpack_exports__["n"] = getHalfCheckedKeys; + /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return conductCheck; }); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_warning__ = __webpack_require__(1585); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_warning___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_warning__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rc_tree_es_util__ = __webpack_require__(200); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rc_util_es_Children_toArray__ = __webpack_require__(119); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_util_es_Dom_class__ = __webpack_require__(1590); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__strategies__ = __webpack_require__(201); + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - //设置状态码 - var UNMOUNTED = exports.UNMOUNTED = 0; - var EXITED = exports.EXITED = 1; - var ENTERING = exports.ENTERING = 2; - var ENTERED = exports.ENTERED = 3; - var EXITING = exports.EXITING = 4; + function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - var propTypes = { - /** - * 是否触发动画 - */ - "in": _propTypes2["default"].bool, + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - /** - * 不显示的时候是否移除组件 - */ - unmountOnExit: _propTypes2["default"].bool, + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - /** - * 如果设置为默认显示,挂载时显示动画 - */ - transitionAppear: _propTypes2["default"].bool, - /** - * 设置超时时间,防止出现问题,可设置为>=动画时间 - */ - timeout: _propTypes2["default"].number, - /** - * 退出组件时添加的class - */ - exitedClassName: _propTypes2["default"].string, - /** - * 退出组件中添加的class - */ - exitingClassName: _propTypes2["default"].string, - /** - * 进入动画后添加的class - */ - enteredClassName: _propTypes2["default"].string, - /** - * 进入动画时添加的class - */ - enteringClassName: _propTypes2["default"].string, - /** - * 进入动画开始时的钩子函数 - */ - onEnter: _propTypes2["default"].func, - /** - * 进入动画中的钩子函数 - */ - onEntering: _propTypes2["default"].func, - /** - * 进入动画后的钩子函数 - */ - onEntered: _propTypes2["default"].func, - /** - * 退出动画开始时的钩子函数 - */ - onExit: _propTypes2["default"].func, - /** - * 退出动画中的钩子函数 - */ - onExiting: _propTypes2["default"].func, - /** - * 退出动画后的钩子函数 - */ - onExited: _propTypes2["default"].func - }; - function noop() {} - var defaultProps = { - "in": false, - unmountOnExit: false, - transitionAppear: false, - timeout: 5000, - onEnter: noop, - onEntering: noop, - onEntered: noop, - onExit: noop, - onExiting: noop, - onExited: noop - }; - /** - * 动画组件 - */ + var warnDeprecatedLabel = false; // =================== DOM ===================== - var Transition = function (_Component) { - _inherits(Transition, _Component); + function findPopupContainer(node, prefixClass) { + var current = node; - function Transition(props, context) { - _classCallCheck(this, Transition); + while (current) { + if (Object(__WEBPACK_IMPORTED_MODULE_4_rc_util_es_Dom_class__["a" /* hasClass */])(current, prefixClass)) { + return current; + } - var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); + current = current.parentNode; + } - var initialStatus = void 0; - if (props["in"]) { - // 在componentdidmount时开始执行动画 - initialStatus = props.transitionAppear ? EXITED : ENTERED; - } else { - initialStatus = props.unmountOnExit ? UNMOUNTED : EXITED; - } - _this.state = { status: initialStatus }; + return null; + } // =================== MISC ==================== - _this.nextCallback = null; - return _this; + function toTitle(title) { + if (typeof title === 'string') { + return title; } - Transition.prototype.componentDidMount = function componentDidMount() { - if (this.props.transitionAppear && this.props["in"]) { - this.performEnter(this.props); - } - }; + return null; + } + function toArray(data) { + if (data === undefined || data === null) return []; + return Array.isArray(data) ? data : [data]; + } // Shallow copy of React 16.3 createRef api - Transition.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - if (nextProps["in"] && this.props.unmountOnExit) { - if (this.state.status === UNMOUNTED) { - // 在componentDidUpdate执行动画. - this.setState({ status: EXITED }); - } - } else { - this._needsUpdate = true; - } + function createRef() { + var func = function setRef(node) { + func.current = node; }; - Transition.prototype.componentDidUpdate = function componentDidUpdate() { - var status = this.state.status; + return func; + } // =============== Legacy =============== - if (this.props.unmountOnExit && status === EXITED) { - // 当使用unmountOnExit时,exited为exiting和unmont的过渡状态 - if (this.props["in"]) { - this.performEnter(this.props); - } else { - this.setState({ status: UNMOUNTED }); - } + var UNSELECTABLE_STYLE = { + userSelect: 'none', + WebkitUserSelect: 'none' + }; + var UNSELECTABLE_ATTRIBUTE = { + unselectable: 'unselectable' + }; + /** + * Convert position list to hierarchy structure. + * This is little hack since use '-' to split the position. + */ - return; - } + function flatToHierarchy(positionList) { + if (!positionList.length) { + return []; + } - // 确保只响应prop变化 - if (this._needsUpdate) { - this._needsUpdate = false; + var entrances = {}; // Prepare the position map - if (this.props["in"]) { - if (status === EXITING) { - this.performEnter(this.props); - } else if (status === EXITED) { - this.performEnter(this.props); - } - // 其他,当我们已经输入或输出 - } else { - if (status === ENTERING || status === ENTERED) { - this.performExit(this.props); - } - // 我们已经输入或输出完成 - } - } - }; + var posMap = {}; + var parsedList = positionList.slice().map(function (entity) { + var clone = _objectSpread({}, entity, { + fields: entity.pos.split('-') + }); - Transition.prototype.componentWillUnmount = function componentWillUnmount() { - this.cancelNextCallback(); - }; + delete clone.children; + return clone; + }); + parsedList.forEach(function (entity) { + posMap[entity.pos] = entity; + }); + parsedList.sort(function (a, b) { + return a.fields.length - b.fields.length; + }); // Create the hierarchy - Transition.prototype.performEnter = function performEnter(props) { - var _this2 = this; + parsedList.forEach(function (entity) { + var parentPos = entity.fields.slice(0, -1).join('-'); + var parentEntity = posMap[parentPos]; - this.cancelNextCallback(); - var node = _reactDom2["default"].findDOMNode(this); + if (!parentEntity) { + entrances[entity.pos] = entity; + } else { + parentEntity.children = parentEntity.children || []; + parentEntity.children.push(entity); + } // Some time position list provide `key`, we don't need it - // 这里接收新props - props.onEnter(node); - this.safeSetState({ status: ENTERING }, function () { - _this2.props.onEntering(node); + delete entity.key; + delete entity.fields; + }); + return Object.keys(entrances).map(function (key) { + return entrances[key]; + }); + } // =============== Accessibility =============== - _this2.onTransitionEnd(node, function () { - _this2.safeSetState({ status: ENTERED }, function () { - _this2.props.onEntered(node); - }); - }); - }); - }; + var ariaId = 0; + function resetAriaId() { + ariaId = 0; + } + function generateAriaId(prefix) { + ariaId += 1; + return "".concat(prefix, "_").concat(ariaId); + } + function isLabelInValue(props) { + var treeCheckable = props.treeCheckable, + treeCheckStrictly = props.treeCheckStrictly, + labelInValue = props.labelInValue; - Transition.prototype.performExit = function performExit(props) { - var _this3 = this; + if (treeCheckable && treeCheckStrictly) { + return true; + } - this.cancelNextCallback(); - var node = _reactDom2["default"].findDOMNode(this); + return labelInValue || false; + } // =================== Tree ==================== - props.onExit(node); + function parseSimpleTreeData(treeData, _ref) { + var id = _ref.id, + pId = _ref.pId, + rootPId = _ref.rootPId; + var keyNodes = {}; + var rootNodeList = []; // Fill in the map - this.safeSetState({ status: EXITING }, function () { - _this3.props.onExiting(node); + var nodeList = treeData.map(function (node) { + var clone = _objectSpread({}, node); - _this3.onTransitionEnd(node, function () { - _this3.safeSetState({ status: EXITED }, function () { - _this3.props.onExited(node); - }); - }); - }); - }; + var key = clone[id]; + keyNodes[key] = clone; + clone.key = clone.key || key; + return clone; + }); // Connect tree - Transition.prototype.cancelNextCallback = function cancelNextCallback() { - if (this.nextCallback !== null) { - this.nextCallback.cancel(); - this.nextCallback = null; - } - }; + nodeList.forEach(function (node) { + var parentKey = node[pId]; + var parent = keyNodes[parentKey]; // Fill parent - Transition.prototype.safeSetState = function safeSetState(nextState, callback) { - // 确保在组件销毁后挂起的setState被消除 - this.setState(nextState, this.setNextCallback(callback)); - }; + if (parent) { + parent.children = parent.children || []; + parent.children.push(node); + } // Fill root tree node - Transition.prototype.setNextCallback = function setNextCallback(callback) { - var _this4 = this; - var active = true; + if (parentKey === rootPId || !parent && rootPId === null) { + rootNodeList.push(node); + } + }); + return rootNodeList; + } + /** + * Detect if position has relation. + * e.g. 1-2 related with 1-2-3 + * e.g. 1-3-2 related with 1 + * e.g. 1-2 not related with 1-21 + */ - this.nextCallback = function (event) { - if (active) { - active = false; - _this4.nextCallback = null; + function isPosRelated(pos1, pos2) { + var fields1 = pos1.split('-'); + var fields2 = pos2.split('-'); + var minLen = Math.min(fields1.length, fields2.length); - callback(event); - } - }; + for (var i = 0; i < minLen; i += 1) { + if (fields1[i] !== fields2[i]) { + return false; + } + } - this.nextCallback.cancel = function () { - active = false; - }; + return true; + } + /** + * This function is only used on treeNode check (none treeCheckStrictly but has searchInput). + * We convert entity to { node, pos, children } format. + * This is legacy bug but we still need to do with it. + * @param entity + */ - return this.nextCallback; + function cleanEntity(_ref2) { + var node = _ref2.node, + pos = _ref2.pos, + children = _ref2.children; + var instance = { + node: node, + pos: pos }; - Transition.prototype.onTransitionEnd = function onTransitionEnd(node, handler) { - this.setNextCallback(handler); + if (children) { + instance.children = children.map(cleanEntity); + } - if (node) { - if (transitionEndEvent == undefined) { - this.nextCallback(); - } else { - (0, _on2["default"])(node, transitionEndEvent, this.nextCallback); - } - setTimeout(this.nextCallback, this.props.timeout); - } else { - setTimeout(this.nextCallback, 0); - } - }; + return instance; + } + /** + * Get a filtered TreeNode list by provided treeNodes. + * [Legacy] Since `Tree` use `key` as map but `key` will changed by React, + * we have to convert `treeNodes > data > treeNodes` to keep the key. + * Such performance hungry! + * + * We pass `Component` as argument is to fix eslint issue. + */ - Transition.prototype.render = function render() { - var status = this.state.status; - if (status === UNMOUNTED) { - return null; - } + function getFilterTree(treeNodes, searchValue, filterFunc, valueEntities, Component) { + if (!searchValue) { + return null; + } - var _props = this.props, - children = _props.children, - className = _props.className, - childProps = _objectWithoutProperties(_props, ['children', 'className']); + function mapFilteredNodeToData(node) { + if (!node) return null; + var match = false; - Object.keys(Transition.propTypes).forEach(function (key) { - return delete childProps[key]; + if (filterFunc(searchValue, node)) { + match = true; + } + + var children = Object(__WEBPACK_IMPORTED_MODULE_3_rc_util_es_Children_toArray__["a" /* default */])(node.props.children).map(mapFilteredNodeToData).filter(function (n) { + return n; }); - var transitionClassName = void 0; - if (status === EXITED) { - transitionClassName = this.props.exitedClassName; - } else if (status === ENTERING) { - transitionClassName = this.props.enteringClassName; - } else if (status === ENTERED) { - transitionClassName = this.props.enteredClassName; - } else if (status === EXITING) { - transitionClassName = this.props.exitingClassName; + if (children.length || match) { + return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Component, _extends({}, node.props, { + key: valueEntities[node.props.value].key + }), children); } - var child = _react2["default"].Children.only(children); - return _react2["default"].cloneElement(child, _extends({}, childProps, { - className: (0, _classnames2["default"])(child.props.className, className, transitionClassName) - })); - }; + return null; + } - return Transition; - }(_react.Component); + return treeNodes.map(mapFilteredNodeToData).filter(function (node) { + return node; + }); + } // =================== Value =================== - Transition.propTypes = propTypes; + /** + * Convert value to array format to make logic simplify. + */ - Transition.defaultProps = defaultProps; + function formatInternalValue(value, props) { + var valueList = toArray(value); // Parse label in value - exports["default"] = Transition; + if (isLabelInValue(props)) { + return valueList.map(function (val) { + if (typeof val !== 'object' || !val) { + return { + value: '', + label: '' + }; + } - /***/ }), - /* 159 */ - /***/ (function(module, exports, __webpack_require__) { + return val; + }); + } - "use strict"; + return valueList.map(function (val) { + return { + value: val + }; + }); + } + function getLabel(wrappedValue, entity, treeNodeLabelProp) { + if (wrappedValue.label) { + return wrappedValue.label; + } + if (entity && entity.node.props) { + return entity.node.props[treeNodeLabelProp]; + } // Since value without entity will be in missValueList. + // This code will never reached, but we still need this in case. - exports.__esModule = true; - exports.default = createChainableTypeChecker; + + return wrappedValue.value; + } /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. + * Convert internal state `valueList` to user needed value list. + * This will return an array list. You need check if is not multiple when return. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * `allCheckedNodes` is used for `treeCheckStrictly` */ - // Mostly taken from ReactPropTypes. + function formatSelectorValue(valueList, props, valueEntities) { + var treeNodeLabelProp = props.treeNodeLabelProp, + treeCheckable = props.treeCheckable, + treeCheckStrictly = props.treeCheckStrictly, + showCheckedStrategy = props.showCheckedStrategy; // Will hide some value if `showCheckedStrategy` is set - /* This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util + if (treeCheckable && !treeCheckStrictly) { + var values = {}; + valueList.forEach(function (wrappedValue) { + values[wrappedValue.value] = wrappedValue; + }); + var hierarchyList = flatToHierarchy(valueList.map(function (_ref3) { + var value = _ref3.value; + return valueEntities[value]; + })); + + if (showCheckedStrategy === __WEBPACK_IMPORTED_MODULE_5__strategies__["c" /* SHOW_PARENT */]) { + // Only get the parent checked value + return hierarchyList.map(function (_ref4) { + var value = _ref4.node.props.value; + return { + label: getLabel(values[value], valueEntities[value], treeNodeLabelProp), + value: value + }; + }); + } + + if (showCheckedStrategy === __WEBPACK_IMPORTED_MODULE_5__strategies__["b" /* SHOW_CHILD */]) { + // Only get the children checked value + var targetValueList = []; // Find the leaf children + + var traverse = function traverse(_ref5) { + var value = _ref5.node.props.value, + children = _ref5.children; + + if (!children || children.length === 0) { + targetValueList.push({ + label: getLabel(values[value], valueEntities[value], treeNodeLabelProp), + value: value + }); + return; + } + + children.forEach(function (entity) { + traverse(entity); + }); + }; + + hierarchyList.forEach(function (entity) { + traverse(entity); + }); + return targetValueList; + } + } + + return valueList.map(function (wrappedValue) { + return { + label: getLabel(wrappedValue, valueEntities[wrappedValue.value], treeNodeLabelProp), + value: wrappedValue.value + }; + }); + } + /** + * Use `rc-tree` convertDataToTree to convert treeData to TreeNodes. + * This will change the label to title value */ - function createChainableTypeChecker(validate) { - function checkType(isRequired, props, propName, componentName, location, propFullName) { - var componentNameSafe = componentName || '<>'; - var propFullNameSafe = propFullName || propName; + function processProps(props) { + var title = props.title, + label = props.label, + key = props.key, + value = props.value; - if (props[propName] == null) { - if (isRequired) { - return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); - } + var cloneProps = _objectSpread({}, props); // Warning user not to use deprecated label prop. - return null; - } - for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { - args[_key - 6] = arguments[_key]; + if (label && !title) { + if (!warnDeprecatedLabel) { + __WEBPACK_IMPORTED_MODULE_1_warning___default()(false, "'label' in treeData is deprecated. Please use 'title' instead."); + warnDeprecatedLabel = true; } - return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); + cloneProps.title = label; } - var chainedCheckType = checkType.bind(null, false); - chainedCheckType.isRequired = checkType.bind(null, true); + if (!key) { + cloneProps.key = value; + } - return chainedCheckType; + return cloneProps; } - /***/ }), - /* 160 */ - /***/ (function(module, exports, __webpack_require__) { - - "use strict"; - - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _VerticalMenu = __webpack_require__(1009); - - var _VerticalMenu2 = _interopRequireDefault(_VerticalMenu); + function convertDataToTree(treeData) { + return Object(__WEBPACK_IMPORTED_MODULE_2_rc_tree_es_util__["g" /* convertDataToTree */])(treeData, { + processProps: processProps + }); + } + /** + * Use `rc-tree` convertTreeToEntities for entities calculation. + * We have additional entities of `valueEntities` + */ - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + function initWrapper(wrapper) { + return _objectSpread({}, wrapper, { + valueEntities: {} + }); + } - exports["default"] = _VerticalMenu2["default"]; - module.exports = exports['default']; + function processEntity(entity, wrapper) { + var value = entity.node.props.value; + entity.value = value; // This should be empty, or will get error message. - /***/ }), - /* 161 */ - /***/ (function(module, exports, __webpack_require__) { + var currentEntity = wrapper.valueEntities[value]; - "use strict"; + if (currentEntity) { + __WEBPACK_IMPORTED_MODULE_1_warning___default()(false, "Conflict! value of node '".concat(entity.key, "' (").concat(value, ") has already used by node '").concat(currentEntity.key, "'.")); + } + wrapper.valueEntities[value] = entity; + } - exports.__esModule = true; - exports.default = createChainableTypeChecker; + function convertTreeToEntities(treeNodes) { + return Object(__WEBPACK_IMPORTED_MODULE_2_rc_tree_es_util__["h" /* convertTreeToEntities */])(treeNodes, { + initWrapper: initWrapper, + processEntity: processEntity + }); + } /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * https://github.com/ant-design/ant-design/issues/13328 + * We need calculate the half check key when searchValue is set. */ + // TODO: This logic may better move to rc-tree - // Mostly taken from ReactPropTypes. - - /* This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ + function getHalfCheckedKeys(valueList, valueEntities) { + var values = {}; // Fill checked keys - function createChainableTypeChecker(validate) { - function checkType(isRequired, props, propName, componentName, location, propFullName) { - var componentNameSafe = componentName || '<>'; - var propFullNameSafe = propFullName || propName; + valueList.forEach(function (_ref6) { + var value = _ref6.value; + values[value] = false; + }); // Fill half checked keys - if (props[propName] == null) { - if (isRequired) { - return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); - } + valueList.forEach(function (_ref7) { + var value = _ref7.value; + var current = valueEntities[value]; - return null; + while (current && current.parent) { + var parentValue = current.parent.value; + if (parentValue in values) break; + values[parentValue] = true; + current = current.parent; } + }); // Get half keys - for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { - args[_key - 6] = arguments[_key]; - } + return Object.keys(values).filter(function (value) { + return values[value]; + }).map(function (value) { + return valueEntities[value].key; + }); + } + var conductCheck = __WEBPACK_IMPORTED_MODULE_2_rc_tree_es_util__["e" /* conductCheck */]; - return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); - } + /***/ }), + /* 35 */ + /***/ (function(module, exports) { - var chainedCheckType = checkType.bind(null, false); - chainedCheckType.isRequired = checkType.bind(null, true); + var g; - return chainedCheckType; - } + // This works in non-strict mode + g = (function() { + return this; + })(); - /***/ }), - /* 162 */ - /***/ (function(module, exports, __webpack_require__) { + try { + // This works if eval is allowed (see CSP) + g = g || Function("return this")() || (1,eval)("this"); + } catch(e) { + // This works if the window reference is available + if(typeof window === "object") + g = window; + } - "use strict"; + // g can still be undefined, but nothing to do about it... + // We return undefined, instead of nothing here, so it's + // easier to handle this case. if(!global) { ...} + module.exports = g; - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.destroyFns = undefined; - var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }(); + /***/ }), + /* 36 */ + /***/ (function(module, exports, __webpack_require__) { - var _extends2; + /* WEBPACK VAR INJECTION */(function(global) {var now = __webpack_require__(839) + , root = typeof window === 'undefined' ? global : window + , vendors = ['moz', 'webkit'] + , suffix = 'AnimationFrame' + , raf = root['request' + suffix] + , caf = root['cancel' + suffix] || root['cancelRequest' + suffix] - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + for(var i = 0; !raf && i < vendors.length; i++) { + raf = root[vendors[i] + 'Request' + suffix] + caf = root[vendors[i] + 'Cancel' + suffix] + || root[vendors[i] + 'CancelRequest' + suffix] + } - var _classnames = __webpack_require__(2); + // Some versions of FF have rAF but not cAF + if(!raf || !caf) { + var last = 0 + , id = 0 + , queue = [] + , frameDuration = 1000 / 60 - var _classnames2 = _interopRequireDefault(_classnames); + raf = function(callback) { + if(queue.length === 0) { + var _now = now() + , next = Math.max(0, frameDuration - (_now - last)) + last = next + _now + setTimeout(function() { + var cp = queue.slice(0) + // Clear queue here to prevent + // callbacks from appending listeners + // to the current frame's queue + queue.length = 0 + for(var i = 0; i < cp.length; i++) { + if(!cp[i].cancelled) { + try{ + cp[i].callback(last) + } catch(e) { + setTimeout(function() { throw e }, 0) + } + } + } + }, Math.round(next)) + } + queue.push({ + handle: ++id, + callback: callback, + cancelled: false + }) + return id + } - var _events = __webpack_require__(163); + caf = function(handle) { + for(var i = 0; i < queue.length; i++) { + if(queue[i].handle === handle) { + queue[i].cancelled = true + } + } + } + } - var _events2 = _interopRequireDefault(_events); + module.exports = function(fn) { + // Wrap in a new function to prevent + // `cancel` potentially being assigned + // to the native rAF function + return raf.call(root, fn) + } + module.exports.cancel = function() { + caf.apply(root, arguments) + } + module.exports.polyfill = function(object) { + if (!object) { + object = root; + } + object.requestAnimationFrame = raf + object.cancelAnimationFrame = caf + } - var _ownerDocument = __webpack_require__(22); + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) - var _ownerDocument2 = _interopRequireDefault(_ownerDocument); + /***/ }), + /* 37 */ + /***/ (function(module, exports, __webpack_require__) { - var _inDOM = __webpack_require__(25); + var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! + Copyright (c) 2017 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames + */ + /* global define */ - var _inDOM2 = _interopRequireDefault(_inDOM); + (function () { + 'use strict'; - var _scrollbarSize = __webpack_require__(104); + var hasOwn = {}.hasOwnProperty; - var _scrollbarSize2 = _interopRequireDefault(_scrollbarSize); + function classNames () { + var classes = []; - var _scrollTop = __webpack_require__(45); + for (var i = 0; i < arguments.length; i++) { + var arg = arguments[i]; + if (!arg) continue; - var _scrollTop2 = _interopRequireDefault(_scrollTop); + var argType = typeof arg; - var _react = __webpack_require__(0); + if (argType === 'string' || argType === 'number') { + classes.push(arg); + } else if (Array.isArray(arg) && arg.length) { + var inner = classNames.apply(null, arg); + if (inner) { + classes.push(inner); + } + } else if (argType === 'object') { + for (var key in arg) { + if (hasOwn.call(arg, key) && arg[key]) { + classes.push(key); + } + } + } + } - var _react2 = _interopRequireDefault(_react); + return classes.join(' '); + } - var _reactDom = __webpack_require__(3); + if (typeof module !== 'undefined' && module.exports) { + classNames.default = classNames; + module.exports = classNames; + } else if (true) { + // register as 'classnames', consistent with npm package name + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () { + return classNames; + }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), + __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + } else { + window.classNames = classNames; + } + }()); - var _reactDom2 = _interopRequireDefault(_reactDom); - var _Modal = __webpack_require__(164); + /***/ }), + /* 38 */ + /***/ (function(module, exports, __webpack_require__) { - var _Modal2 = _interopRequireDefault(_Modal); + var global = __webpack_require__(39); + var core = __webpack_require__(25); + var ctx = __webpack_require__(120); + var hide = __webpack_require__(50); + var has = __webpack_require__(47); + var PROTOTYPE = 'prototype'; - var _isOverflowing = __webpack_require__(105); + var $export = function (type, name, source) { + var IS_FORCED = type & $export.F; + var IS_GLOBAL = type & $export.G; + var IS_STATIC = type & $export.S; + var IS_PROTO = type & $export.P; + var IS_BIND = type & $export.B; + var IS_WRAP = type & $export.W; + var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); + var expProto = exports[PROTOTYPE]; + var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]; + var key, own, out; + if (IS_GLOBAL) source = name; + for (key in source) { + // contains in native + own = !IS_FORCED && target && target[key] !== undefined; + if (own && has(exports, key)) continue; + // export native or passed + out = own ? target[key] : source[key]; + // prevent global pollution for namespaces + exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key] + // bind timers to global for call from export context + : IS_BIND && own ? ctx(out, global) + // wrap global constructors for prevent change them in library + : IS_WRAP && target[key] == out ? (function (C) { + var F = function (a, b, c) { + if (this instanceof C) { + switch (arguments.length) { + case 0: return new C(); + case 1: return new C(a); + case 2: return new C(a, b); + } return new C(a, b, c); + } return C.apply(this, arguments); + }; + F[PROTOTYPE] = C[PROTOTYPE]; + return F; + // make static versions for prototype methods + })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; + // export proto methods to core.%CONSTRUCTOR%.methods.%NAME% + if (IS_PROTO) { + (exports.virtual || (exports.virtual = {}))[key] = out; + // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME% + if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out); + } + } + }; + // type bitmap + $export.F = 1; // forced + $export.G = 2; // global + $export.S = 4; // static + $export.P = 8; // proto + $export.B = 16; // bind + $export.W = 32; // wrap + $export.U = 64; // safe + $export.R = 128; // real proto method for `library` + module.exports = $export; - var _isOverflowing2 = _interopRequireDefault(_isOverflowing); - var _tinperBeeCore = __webpack_require__(62); + /***/ }), + /* 39 */ + /***/ (function(module, exports) { - var _beeTransition = __webpack_require__(1083); + // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 + var global = module.exports = typeof window != 'undefined' && window.Math == Math + ? window : typeof self != 'undefined' && self.Math == Math ? self + // eslint-disable-next-line no-new-func + : Function('return this')(); + if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef - var _ModalBody = __webpack_require__(1087); - var _ModalBody2 = _interopRequireDefault(_ModalBody); + /***/ }), + /* 40 */ + /***/ (function(module, exports, __webpack_require__) { - var _ModalDialog = __webpack_require__(1088); + var anObject = __webpack_require__(51); + var IE8_DOM_DEFINE = __webpack_require__(213); + var toPrimitive = __webpack_require__(121); + var dP = Object.defineProperty; - var _ModalDialog2 = _interopRequireDefault(_ModalDialog); + exports.f = __webpack_require__(41) ? Object.defineProperty : function defineProperty(O, P, Attributes) { + anObject(O); + P = toPrimitive(P, true); + anObject(Attributes); + if (IE8_DOM_DEFINE) try { + return dP(O, P, Attributes); + } catch (e) { /* empty */ } + if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); + if ('value' in Attributes) O[P] = Attributes.value; + return O; + }; - var _ModalFooter = __webpack_require__(1137); - var _ModalFooter2 = _interopRequireDefault(_ModalFooter); + /***/ }), + /* 41 */ + /***/ (function(module, exports, __webpack_require__) { - var _ModalHeader = __webpack_require__(1138); + // Thank's IE8 for his funny defineProperty + module.exports = !__webpack_require__(53)(function () { + return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; + }); - var _ModalHeader2 = _interopRequireDefault(_ModalHeader); - var _ModalTitle = __webpack_require__(1139); + /***/ }), + /* 42 */ + /***/ (function(module, exports, __webpack_require__) { - var _ModalTitle2 = _interopRequireDefault(_ModalTitle); + "use strict"; - var _propTypes = __webpack_require__(1); - var _propTypes2 = _interopRequireDefault(_propTypes); + Object.defineProperty(exports, "__esModule", { + value: true + }); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + exports["default"] = function (componentOrElement) { + return (0, _ownerDocument2["default"])(_reactDom2["default"].findDOMNode(componentOrElement)); + }; - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + var _reactDom = __webpack_require__(3); - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + var _reactDom2 = _interopRequireDefault(_reactDom); - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + var _ownerDocument = __webpack_require__(23); - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + var _ownerDocument2 = _interopRequireDefault(_ownerDocument); - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + module.exports = exports['default']; - var propTypes = _extends({}, _Modal2["default"].propTypes, _ModalDialog2["default"].propTypes, (_extends2 = { + /***/ }), + /* 43 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { + "use strict"; + /** + * @ignore + * some key-codes definition and utils from closure-library + * @author yiminghe@gmail.com + */ + var KeyCode = { /** - * 是否弹出遮罩层/遮罩层点击是否触发关闭 + * MAC_ENTER */ - backdrop: _propTypes2["default"].oneOf(['static', true, false]), + MAC_ENTER: 3, /** - * 点击遮罩层是否允许关闭 + * BACKSPACE */ - backdropClosable: _propTypes2["default"].bool, + BACKSPACE: 8, + /** - * esc触发关闭 + * TAB */ - keyboard: _propTypes2["default"].bool, + TAB: 9, /** - * 显隐时是否使用动画 + * NUMLOCK on FF/Safari Mac */ - animation: _propTypes2["default"].bool, + NUM_CENTER: 12, /** - * 传递给模态框的样式 + * ENTER */ - dialogComponentClass: _tinperBeeCore.elementType, + ENTER: 13, /** - * 自动设置焦点 + * SHIFT */ - autoFocus: _propTypes2["default"].bool, + SHIFT: 16, /** - * 防止打开时焦点离开模态框 + * CTRL */ - enforceFocus: _propTypes2["default"].bool, + CTRL: 17, /** - * 是否打开模态框 + * ALT */ - show: _propTypes2["default"].bool, + ALT: 18, /** - * 关闭时的钩子函数 + * PAUSE */ - onHide: _propTypes2["default"].func, - - onEnter: _propTypes2["default"].func, - - onEntering: _propTypes2["default"].func, - - onEntered: _propTypes2["default"].func, - - onExit: _propTypes2["default"].func, - - onExiting: _propTypes2["default"].func, - - onExited: _propTypes2["default"].func, - - containerClassName: _propTypes2["default"].string - }, _defineProperty(_extends2, 'containerClassName', _propTypes2["default"].string), _defineProperty(_extends2, 'container', _Modal2["default"].propTypes.container), _defineProperty(_extends2, 'size', _propTypes2["default"].oneOf(["sm", "lg", "xlg", ""])), _defineProperty(_extends2, 'width', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'draggable', _propTypes2["default"].bool), _defineProperty(_extends2, 'resizable', _propTypes2["default"].bool), _defineProperty(_extends2, 'resizeClassName', _propTypes2["default"].string), _defineProperty(_extends2, 'onResizeStart', _propTypes2["default"].func), _defineProperty(_extends2, 'onResize', _propTypes2["default"].func), _defineProperty(_extends2, 'onResizeStop', _propTypes2["default"].func), _defineProperty(_extends2, 'minWidth', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'minHeight', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'maxWidth', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'maxHeight', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'bounds', _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].object])), _defineProperty(_extends2, 'className', _propTypes2["default"].string), _defineProperty(_extends2, 'centered', _propTypes2["default"].bool), _extends2)); - - var defaultProps = _extends({}, _Modal2["default"].defaultProps, { - backdropClosable: true, - animation: true, - dialogComponentClass: _ModalDialog2["default"], - draggable: false, - resizable: false, - clsPrefix: 'u-modal', - className: '' - }); - - var ModalFuncProps = { - prefixCls: _propTypes2["default"].string, - className: _propTypes2["default"].string, - show: _propTypes2["default"].bool, - title: _react2["default"].ReactNode, - content: _react2["default"].ReactNode, - onOk: _propTypes2["default"].func, - onCancel: _propTypes2["default"].func, - width: _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string]), - okText: _propTypes2["default"].string, - okType: _propTypes2["default"].string, - cancelText: _propTypes2["default"].string, - icon: _react2["default"].ReactNode, - backdrop: _propTypes2["default"].oneOf(['static', true, false]) - }; - - var ModalFunc = function ModalFunc(props) { - destroy = function destroy() {}; - update = function update(newConfig) {}; - }; - - var destroyFns = exports.destroyFns = []; - - var childContextTypes = { - $u_modal: _propTypes2["default"].shape({ - onHide: _propTypes2["default"].func - }) - }; - - var Modal = function (_React$Component) { - _inherits(Modal, _React$Component); - - function Modal(props, context) { - _classCallCheck(this, Modal); - - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context)); - - _this.clearCenteredCls = function () { - var centered = _this.state.centered; - - if (!centered) { - return; - } - _this.offsetTop = _this.getOffsetTop(); - _this.setState({ - centered: false - }); - }; - - _this.state = { - style: {}, - centered: props.centered, - draging: false, - draged: false - }; - _this.offsetTop = 0; - _this.handleEntering = _this.handleEntering.bind(_this); - _this.handleExited = _this.handleExited.bind(_this); - _this.handleWindowResize = _this.handleWindowResize.bind(_this); - _this.handleDialogClick = _this.handleDialogClick.bind(_this); - return _this; - } - - Modal.prototype.getChildContext = function getChildContext() { - return { - $u_modal: { - onHide: this.props.onHide - } - }; - }; - - Modal.prototype.componentWillUnmount = function componentWillUnmount() { - // Clean up the listener if we need to. - this.handleExited(); - }; - - Modal.prototype.handleEntering = function handleEntering() { - // FIXME: This should work even when animation is disabled. - _events2["default"].on(window, 'resize', this.handleWindowResize); - this.updateStyle(); - }; - - Modal.prototype.handleExited = function handleExited() { - this.setState({ - draging: false, - draged: false - }); - // FIXME: This should work even when animation is disabled. - _events2["default"].off(window, 'resize', this.handleWindowResize); - }; - - Modal.prototype.handleWindowResize = function handleWindowResize() { - this.updateStyle(); - }; - - Modal.prototype.handleDialogClick = function handleDialogClick(e) { - if (e.target !== e.currentTarget) { - return; - } - - this.props.onHide(); - }; - - Modal.prototype.updateStyle = function updateStyle() { - if (!_inDOM2["default"] || !this._modal) { - return; - } - - var dialogNode = this._modal.getDialogElement(); - var dialogHeight = dialogNode.scrollHeight; - - var document = (0, _ownerDocument2["default"])(dialogNode); - var bodyIsOverflowing = false; - if (this.props.container) { - bodyIsOverflowing = (0, _isOverflowing2["default"])(_reactDom2["default"].findDOMNode(this.props.container)); - } - var modalIsOverflowing = dialogHeight > document.documentElement.clientHeight; + PAUSE: 19, - this.setState({ - style: { - paddingRight: bodyIsOverflowing && !modalIsOverflowing ? (0, _scrollbarSize2["default"])() : undefined, - paddingLeft: !bodyIsOverflowing && modalIsOverflowing ? (0, _scrollbarSize2["default"])() : undefined - } - }); - }; - //ResizeStart 时,若模态框设置了 `centered` ,需要把居中属性移除,并通过 offsetTop 制造垂直居中的假象 - //fixbug: Resize 和 centered 一起使用时,拖拽交互不正确 + /** + * CAPS_LOCK + */ + CAPS_LOCK: 20, + /** + * ESC + */ + ESC: 27, - //计算 ModalDialog 的 offsetTop - Modal.prototype.getOffsetTop = function getOffsetTop() { - var modalDialog = document.getElementsByClassName("u-modal-dialog") && document.getElementsByClassName("u-modal-dialog")[0]; - var topPos = modalDialog && modalDialog.offsetTop; - return topPos; - }; + /** + * SPACE + */ + SPACE: 32, - Modal.prototype.render = function render() { - var _this2 = this; + /** + * PAGE_UP + */ + PAGE_UP: 33, - var _props = this.props, - backdrop = _props.backdrop, - backdropClosable = _props.backdropClosable, - animation = _props.animation, - show = _props.show, - Dialog = _props.dialogComponentClass, - className = _props.className, - clsPrefix = _props.clsPrefix, - _props$style = _props.style, - style = _props$style === undefined ? {} : _props$style, - size = _props.size, - width = _props.width, - children = _props.children, - onEntering = _props.onEntering, - onExited = _props.onExited, - backdropClassName = _props.backdropClassName, - containerClassName = _props.containerClassName, - draggable = _props.draggable, - resizeClassName = _props.resizeClassName, - bounds = _props.bounds, - container = _props.container, - onStart = _props.onStart, - onStop = _props.onStop, - props = _objectWithoutProperties(_props, ['backdrop', 'backdropClosable', 'animation', 'show', 'dialogComponentClass', 'className', 'clsPrefix', 'style', 'size', 'width', 'children', 'onEntering', 'onExited', 'backdropClassName', 'containerClassName', 'draggable', 'resizeClassName', 'bounds', 'container', 'onStart', 'onStop']); + /** + * PAGE_DOWN + */ + PAGE_DOWN: 34, - var _state = this.state, - centered = _state.centered, - draging = _state.draging, - draged = _state.draged; + /** + * END + */ + END: 35, - var dialogMarginTop = 30; - //ResizeStart 时,计算 ModalDialog 的 offsetTop - var topPosStyle = this.offsetTop > 0 ? { top: this.offsetTop - dialogMarginTop } : null; + /** + * HOME + */ + HOME: 36, - var _splitComponent = (0, _tinperBeeCore.splitComponent)(props, _Modal2["default"]), - _splitComponent2 = _slicedToArray(_splitComponent, 2), - baseModalProps = _splitComponent2[0], - dialogProps = _splitComponent2[1]; + /** + * LEFT + */ + LEFT: 37, - var inClassName = show && !animation && 'in'; + /** + * UP + */ + UP: 38, - var backdropClasses = _defineProperty({}, clsPrefix + '-backdrop', true); - var containerClasses = _defineProperty({}, clsPrefix + '-open', true); - if (!!centered) { - className += ' ' + clsPrefix + '-centered'; - } - if (draging) { - className += ' draging'; - } - if (draged) { - className += ' draged'; - } - if (Number(width)) width += 'px'; + /** + * RIGHT + */ + RIGHT: 39, - var styleRes = _extends({}, this.state.style, style, topPosStyle); - if (width) { - _extends(styleRes, { width: width }); - } - return _react2["default"].createElement( - _Modal2["default"], - _extends({}, baseModalProps, { - ref: function ref(c) { - _this2._modal = c; - }, - show: show, - onEntering: (0, _tinperBeeCore.createChainedFunction)(onEntering, this.handleEntering), - onExited: (0, _tinperBeeCore.createChainedFunction)(onExited, this.handleExited), - backdrop: backdrop, - backdropClassName: (0, _classnames2["default"])(backdropClasses, inClassName, backdropClassName), - containerClassName: (0, _classnames2["default"])(containerClasses, containerClassName), - transition: animation ? _beeTransition.Fade : undefined, - dialogTransitionTimeout: Modal.TRANSITION_DURATION, - backdropTransitionTimeout: Modal.BACKDROP_TRANSITION_DURATION, - container: container - }), - _react2["default"].createElement( - Dialog, - _extends({}, dialogProps, { - style: styleRes, - className: (0, _classnames2["default"])(className, inClassName, backdropClassName), - onClick: backdrop === true && !!backdropClosable ? this.handleDialogClick : null, - size: size, - draggable: draggable, - bounds: bounds, - resizeClassName: resizeClassName, - clearCenteredCls: this.clearCenteredCls, - onStart: function onStart() { - _this2.setState({ - draging: true, - draged: false - }); - }, - onStop: function onStop() { - _this2.setState({ - draging: false, - draged: true - }); - } - }), - children - ) - ); - }; + /** + * DOWN + */ + DOWN: 40, - return Modal; - }(_react2["default"].Component); + /** + * PRINT_SCREEN + */ + PRINT_SCREEN: 44, - Modal.info = ModalFunc; - Modal.success = ModalFunc; - Modal.error = ModalFunc; - Modal.warn = ModalFunc; - Modal.warning = ModalFunc; - Modal.confirm = ModalFunc; + /** + * INSERT + */ + INSERT: 45, - Modal.destroyAll = function () { - return; - }; + /** + * DELETE + */ + DELETE: 46, - Modal.propTypes = propTypes; - Modal.defaultProps = defaultProps; - Modal.childContextTypes = childContextTypes; + /** + * ZERO + */ + ZERO: 48, - Modal.Body = _ModalBody2["default"]; - Modal.Header = _ModalHeader2["default"]; - Modal.Title = _ModalTitle2["default"]; - Modal.Footer = _ModalFooter2["default"]; + /** + * ONE + */ + ONE: 49, - Modal.Dialog = _ModalDialog2["default"]; + /** + * TWO + */ + TWO: 50, - Modal.TRANSITION_DURATION = 200000; - Modal.BACKDROP_TRANSITION_DURATION = 10000; + /** + * THREE + */ + THREE: 51, - exports["default"] = Modal; + /** + * FOUR + */ + FOUR: 52, - /***/ }), - /* 163 */ - /***/ (function(module, exports, __webpack_require__) { + /** + * FIVE + */ + FIVE: 53, - "use strict"; + /** + * SIX + */ + SIX: 54, + /** + * SEVEN + */ + SEVEN: 55, - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.listen = exports.filter = exports.off = exports.on = undefined; + /** + * EIGHT + */ + EIGHT: 56, - var _on = __webpack_require__(17); + /** + * NINE + */ + NINE: 57, - var _on2 = _interopRequireDefault(_on); + /** + * QUESTION_MARK + */ + QUESTION_MARK: 63, - var _off = __webpack_require__(49); + /** + * A + */ + A: 65, - var _off2 = _interopRequireDefault(_off); + /** + * B + */ + B: 66, - var _filter = __webpack_require__(1045); + /** + * C + */ + C: 67, - var _filter2 = _interopRequireDefault(_filter); + /** + * D + */ + D: 68, - var _listen = __webpack_require__(1047); + /** + * E + */ + E: 69, - var _listen2 = _interopRequireDefault(_listen); + /** + * F + */ + F: 70, - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + /** + * G + */ + G: 71, - exports.on = _on2.default; - exports.off = _off2.default; - exports.filter = _filter2.default; - exports.listen = _listen2.default; - exports.default = { on: _on2.default, off: _off2.default, filter: _filter2.default, listen: _listen2.default }; + /** + * H + */ + H: 72, - /***/ }), - /* 164 */ - /***/ (function(module, exports, __webpack_require__) { + /** + * I + */ + I: 73, - "use strict"; + /** + * J + */ + J: 74, + /** + * K + */ + K: 75, - Object.defineProperty(exports, "__esModule", { - value: true - }); + /** + * L + */ + L: 76, - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; /*eslint-disable react/prop-types */ + /** + * M + */ + M: 77, + /** + * N + */ + N: 78, - var _react = __webpack_require__(0); + /** + * O + */ + O: 79, - var _react2 = _interopRequireDefault(_react); + /** + * P + */ + P: 80, - var _propTypes = __webpack_require__(1); + /** + * Q + */ + Q: 81, - var _propTypes2 = _interopRequireDefault(_propTypes); + /** + * R + */ + R: 82, - var _warning = __webpack_require__(6); + /** + * S + */ + S: 83, - var _warning2 = _interopRequireDefault(_warning); + /** + * T + */ + T: 84, - var _tinperBeeCore = __webpack_require__(300); + /** + * U + */ + U: 85, - var _Portal = __webpack_require__(1061); + /** + * V + */ + V: 86, - var _Portal2 = _interopRequireDefault(_Portal); + /** + * W + */ + W: 87, - var _ModalManager = __webpack_require__(1062); + /** + * X + */ + X: 88, - var _ModalManager2 = _interopRequireDefault(_ModalManager); + /** + * Y + */ + Y: 89, - var _ownerDocument = __webpack_require__(302); + /** + * Z + */ + Z: 90, - var _ownerDocument2 = _interopRequireDefault(_ownerDocument); + /** + * META + */ + META: 91, - var _addEventListener = __webpack_require__(1067); + /** + * WIN_KEY_RIGHT + */ + WIN_KEY_RIGHT: 92, - var _addEventListener2 = _interopRequireDefault(_addEventListener); + /** + * CONTEXT_MENU + */ + CONTEXT_MENU: 93, - var _addFocusListener = __webpack_require__(1068); + /** + * NUM_ZERO + */ + NUM_ZERO: 96, - var _addFocusListener2 = _interopRequireDefault(_addFocusListener); + /** + * NUM_ONE + */ + NUM_ONE: 97, - var _inDOM = __webpack_require__(25); + /** + * NUM_TWO + */ + NUM_TWO: 98, - var _inDOM2 = _interopRequireDefault(_inDOM); + /** + * NUM_THREE + */ + NUM_THREE: 99, - var _activeElement = __webpack_require__(1069); + /** + * NUM_FOUR + */ + NUM_FOUR: 100, - var _activeElement2 = _interopRequireDefault(_activeElement); + /** + * NUM_FIVE + */ + NUM_FIVE: 101, - var _contains = __webpack_require__(26); + /** + * NUM_SIX + */ + NUM_SIX: 102, - var _contains2 = _interopRequireDefault(_contains); + /** + * NUM_SEVEN + */ + NUM_SEVEN: 103, - var _getContainer = __webpack_require__(303); + /** + * NUM_EIGHT + */ + NUM_EIGHT: 104, - var _getContainer2 = _interopRequireDefault(_getContainer); + /** + * NUM_NINE + */ + NUM_NINE: 105, - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + /** + * NUM_MULTIPLY + */ + NUM_MULTIPLY: 106, - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + /** + * NUM_PLUS + */ + NUM_PLUS: 107, - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + /** + * NUM_MINUS + */ + NUM_MINUS: 109, - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + /** + * NUM_PERIOD + */ + NUM_PERIOD: 110, - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + /** + * NUM_DIVISION + */ + NUM_DIVISION: 111, - var modalManager = new _ModalManager2["default"](); + /** + * F1 + */ + F1: 112, - /** - * 模态框 - */ + /** + * F2 + */ + F2: 113, - var propTypes = _extends({}, _Portal2["default"].propTypes, { + /** + * F3 + */ + F3: 114, /** - * 是否显示 + * F4 */ - show: _propTypes2["default"].bool, + F4: 115, /** - * 容器 + * F5 */ - container: _propTypes2["default"].oneOfType([_tinperBeeCore.componentOrElement, _propTypes2["default"].func]), + F5: 116, /** - * 当模态框打开时的钩子函数 + * F6 */ - onShow: _propTypes2["default"].func, + F6: 117, /** - * 当show参数为false时触发的模态框关闭时的钩子函数 + * F7 */ - onHide: _propTypes2["default"].func, + F7: 118, /** - * 是否包含背景 + * F8 */ - backdrop: _propTypes2["default"].oneOfType([_propTypes2["default"].bool, _propTypes2["default"].oneOf(['static'])]), + F8: 119, /** - *返回背景组件的函数 + * F9 */ - renderBackdrop: _propTypes2["default"].func, + F9: 120, /** - * 设置esc键特殊钩子函数 + * F10 */ - onEscapeKeyUp: _propTypes2["default"].func, + F10: 121, /** - * 当点击背景时触发的函数 + * F11 */ - onBackdropClick: _propTypes2["default"].func, + F11: 122, /** - * 背景的style + * F12 */ - backdropStyle: _propTypes2["default"].object, + F12: 123, /** - * 背景的class + * NUMLOCK */ - backdropClassName: _propTypes2["default"].string, + NUMLOCK: 144, /** - *容器的class + * SEMICOLON */ - containerClassName: _propTypes2["default"].string, + SEMICOLON: 186, /** - * 按esc键是否关闭模态框 + * DASH */ - keyboard: _propTypes2["default"].bool, + DASH: 189, /** - * 动画组件 + * EQUALS */ - transition: _tinperBeeCore.elementType, + EQUALS: 187, /** - * 设置动画超时时间 + * COMMA */ - dialogTransitionTimeout: _propTypes2["default"].number, + COMMA: 188, /** - * 设置背景动画超时时间 + * PERIOD */ - backdropTransitionTimeout: _propTypes2["default"].number, + PERIOD: 190, /** - * 是否自动设置焦点 + * SLASH */ - autoFocus: _propTypes2["default"].bool, + SLASH: 191, /** - * 防止焦点离开模态框 + * APOSTROPHE */ - enforceFocus: _propTypes2["default"].bool, + APOSTROPHE: 192, /** - * 模态框进入时的钩子函数 + * SINGLE_QUOTE */ - onEnter: _propTypes2["default"].func, + SINGLE_QUOTE: 222, /** - * 模态框开始进入时的钩子函数 + * OPEN_SQUARE_BRACKET */ - onEntering: _propTypes2["default"].func, + OPEN_SQUARE_BRACKET: 219, /** - * 模态框进入后的钩子函数 + * BACKSLASH */ - onEntered: _propTypes2["default"].func, + BACKSLASH: 220, /** - * 模态框退出时的钩子函数 + * CLOSE_SQUARE_BRACKET */ - onExit: _propTypes2["default"].func, + CLOSE_SQUARE_BRACKET: 221, /** - * 模态框开始退出时的钩子函数 + * WIN_KEY */ - onExiting: _propTypes2["default"].func, + WIN_KEY: 224, /** - * 模态框推出后的钩子函数 + * MAC_FF_META */ - onExited: _propTypes2["default"].func, + MAC_FF_META: 224, /** - *管理model状态的实例 + * WIN_IME */ - manager: _propTypes2["default"].object.isRequired - }); + WIN_IME: 229, + // ======================== Function ======================== - var defaultProps = { - show: false, - backdrop: true, - keyboard: true, - autoFocus: true, - enforceFocus: true, - onHide: function onHide() {}, - manager: modalManager, - renderBackdrop: function renderBackdrop(props) { - return _react2["default"].createElement('div', props); - } - }; + /** + * whether text and modified key is entered at the same time. + */ + isTextModifyingKeyEvent: function isTextModifyingKeyEvent(e) { + var keyCode = e.keyCode; - var BaseModal = function (_Component) { - _inherits(BaseModal, _Component); + if (e.altKey && !e.ctrlKey || e.metaKey || // Function keys don't generate text + keyCode >= KeyCode.F1 && keyCode <= KeyCode.F12) { + return false; + } // The following keys are quite harmless, even in combination with + // CTRL, ALT or SHIFT. - function BaseModal(props, content) { - _classCallCheck(this, BaseModal); - var _this = _possibleConstructorReturn(this, _Component.call(this, props)); + switch (keyCode) { + case KeyCode.ALT: + case KeyCode.CAPS_LOCK: + case KeyCode.CONTEXT_MENU: + case KeyCode.CTRL: + case KeyCode.DOWN: + case KeyCode.END: + case KeyCode.ESC: + case KeyCode.HOME: + case KeyCode.INSERT: + case KeyCode.LEFT: + case KeyCode.MAC_FF_META: + case KeyCode.META: + case KeyCode.NUMLOCK: + case KeyCode.NUM_CENTER: + case KeyCode.PAGE_DOWN: + case KeyCode.PAGE_UP: + case KeyCode.PAUSE: + case KeyCode.PRINT_SCREEN: + case KeyCode.RIGHT: + case KeyCode.SHIFT: + case KeyCode.UP: + case KeyCode.WIN_KEY: + case KeyCode.WIN_KEY_RIGHT: + return false; - _this.state = { - exited: !_this.props.show - }; + default: + return true; + } + }, - _this.onShow = _this.onShow.bind(_this); - _this.onHide = _this.onHide.bind(_this); - _this.setMountNode = _this.setMountNode.bind(_this); - _this.handleHidden = _this.handleHidden.bind(_this); - _this.handleBackdropClick = _this.handleBackdropClick.bind(_this); - _this.handleDocumentKeyUp = _this.handleDocumentKeyUp.bind(_this); - _this.checkForFocus = _this.checkForFocus.bind(_this); - _this.focus = _this.focus.bind(_this); - _this.restoreLastFocus = _this.restoreLastFocus.bind(_this); - _this.enforceFocus = _this.enforceFocus.bind(_this); - _this.getDialogElement = _this.getDialogElement.bind(_this); - _this.isTopModal = _this.isTopModal.bind(_this); - _this.renderBackdrop = _this.renderBackdrop.bind(_this); - return _this; - } + /** + * whether character is entered. + */ + isCharacterKey: function isCharacterKey(keyCode) { + if (keyCode >= KeyCode.ZERO && keyCode <= KeyCode.NINE) { + return true; + } - BaseModal.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - if (nextProps.show) { - this.setState({ exited: false }); - } else if (!nextProps.transition) { - // Otherwise let handleHidden take care of marking exited. - this.setState({ exited: true }); + if (keyCode >= KeyCode.NUM_ZERO && keyCode <= KeyCode.NUM_MULTIPLY) { + return true; } - }; - BaseModal.prototype.componentWillUpdate = function componentWillUpdate(nextProps) { - if (!this.props.show && nextProps.show) { - this.checkForFocus(); + if (keyCode >= KeyCode.A && keyCode <= KeyCode.Z) { + return true; + } // Safari sends zero key code for non-latin characters. + + + if (window.navigator.userAgent.indexOf('WebKit') !== -1 && keyCode === 0) { + return true; } - }; - BaseModal.prototype.componentDidMount = function componentDidMount() { - if (this.props.show) { - this.onShow(); + switch (keyCode) { + case KeyCode.SPACE: + case KeyCode.QUESTION_MARK: + case KeyCode.NUM_PLUS: + case KeyCode.NUM_MINUS: + case KeyCode.NUM_PERIOD: + case KeyCode.NUM_DIVISION: + case KeyCode.SEMICOLON: + case KeyCode.DASH: + case KeyCode.EQUALS: + case KeyCode.COMMA: + case KeyCode.PERIOD: + case KeyCode.SLASH: + case KeyCode.APOSTROPHE: + case KeyCode.SINGLE_QUOTE: + case KeyCode.OPEN_SQUARE_BRACKET: + case KeyCode.BACKSLASH: + case KeyCode.CLOSE_SQUARE_BRACKET: + return true; + + default: + return false; } - this.mounted = true; - }; + } + }; + /* harmony default export */ __webpack_exports__["a"] = (KeyCode); - BaseModal.prototype.componentDidUpdate = function componentDidUpdate(prevProps) { - var transition = this.props.transition; + /***/ }), + /* 44 */ + /***/ (function(module, exports, __webpack_require__) { + "use strict"; - if (prevProps.show && !this.props.show && !transition) { - // Otherwise handleHidden will call this. - this.onHide(); - } else if (!prevProps.show && this.props.show) { - this.onShow(); - } - }; - BaseModal.prototype.componentWillUnmount = function componentWillUnmount() { - var _props = this.props, - show = _props.show, - transition = _props.transition; + module.exports = __webpack_require__(811); + /***/ }), + /* 45 */ + /***/ (function(module, exports, __webpack_require__) { - if (show || transition && !this.state.exited) { - this.onHide(); - } + "use strict"; - this.mounted = false; - }; - BaseModal.prototype.onShow = function onShow() { - var doc = (0, _ownerDocument2["default"])(this); - var container = (0, _getContainer2["default"])(this.props.container, doc.body); + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = scrollTop; - this.props.manager.add(this, container, this.props.containerClassName); + var _isWindow = __webpack_require__(101); - this._onDocumentKeyupListener = (0, _addEventListener2["default"])(doc, 'keyup', this.handleDocumentKeyUp); + var _isWindow2 = _interopRequireDefault(_isWindow); - this._onFocusinListener = (0, _addFocusListener2["default"])(this.enforceFocus); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - this.focus(); + function scrollTop(node, val) { + var win = (0, _isWindow2.default)(node); - if (this.props.onShow) { - this.props.onShow(); - } - }; + if (val === undefined) return win ? 'pageYOffset' in win ? win.pageYOffset : win.document.documentElement.scrollTop : node.scrollTop; - BaseModal.prototype.onHide = function onHide() { - this.props.manager.remove(this); + if (win) win.scrollTo('pageXOffset' in win ? win.pageXOffset : win.document.documentElement.scrollLeft, val);else node.scrollTop = val; + } + module.exports = exports['default']; - this._onDocumentKeyupListener.remove(); + /***/ }), + /* 46 */ + /***/ (function(module, exports, __webpack_require__) { - this._onFocusinListener.remove(); + "use strict"; - this.restoreLastFocus(); - }; - BaseModal.prototype.setMountNode = function setMountNode(ref) { - this.mountNode = ref ? ref.getMountNode() : ref; - }; + exports.__esModule = true; + exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined; - BaseModal.prototype.handleHidden = function handleHidden() { - this.setState({ exited: true }); - this.onHide(); + var _all2 = __webpack_require__(1501); - if (this.props.onExited) { - var _props2; + var _all3 = _interopRequireDefault(_all2); - (_props2 = this.props).onExited.apply(_props2, arguments); - } - }; + var _componentOrElement2 = __webpack_require__(1502); - BaseModal.prototype.handleBackdropClick = function handleBackdropClick(e) { - if (e.target !== e.currentTarget) { - return; - } + var _componentOrElement3 = _interopRequireDefault(_componentOrElement2); - if (this.props.onBackdropClick) { - this.props.onBackdropClick(e); - } + var _deprecated2 = __webpack_require__(1503); - if (this.props.backdrop === true) { - this.props.onHide(); - } - }; + var _deprecated3 = _interopRequireDefault(_deprecated2); - BaseModal.prototype.handleDocumentKeyUp = function handleDocumentKeyUp(e) { - if (this.props.keyboard && e.keyCode === 27 && this.isTopModal()) { - if (this.props.onEscapeKeyUp) { - this.props.onEscapeKeyUp(e); - } - this.props.onHide(); - } - }; + var _elementType2 = __webpack_require__(1504); - BaseModal.prototype.checkForFocus = function checkForFocus() { - if (_inDOM2["default"]) { - this.lastFocus = (0, _activeElement2["default"])(); - } - }; + var _elementType3 = _interopRequireDefault(_elementType2); - BaseModal.prototype.focus = function focus() { - var autoFocus = this.props.autoFocus; - var modalContent = this.getDialogElement(); - var current = (0, _activeElement2["default"])((0, _ownerDocument2["default"])(this)); - var focusInModal = current && (0, _contains2["default"])(modalContent, current); + var _isRequiredForA11y2 = __webpack_require__(1505); - if (modalContent && autoFocus && !focusInModal) { - this.lastFocus = current; + var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2); - if (!modalContent.hasAttribute('tabIndex')) { - modalContent.setAttribute('tabIndex', -1); - (0, _warning2["default"])(false, 'The modal content node does not accept focus. ' + 'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'); - } + var _splitComponent2 = __webpack_require__(1506); - modalContent.focus(); - } - }; + var _splitComponent3 = _interopRequireDefault(_splitComponent2); - BaseModal.prototype.restoreLastFocus = function restoreLastFocus() { - // Support: <=IE11 doesn't support `focus()` on svg elements (RB: #917) - if (this.lastFocus && this.lastFocus.focus) { - this.lastFocus.focus(); - this.lastFocus = null; - } - }; + var _createChainedFunction2 = __webpack_require__(1507); - BaseModal.prototype.enforceFocus = function enforceFocus() { - var enforceFocus = this.props.enforceFocus; + var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2); + var _keyCode = __webpack_require__(1508); - if (!enforceFocus || !this.mounted || !this.isTopModal()) { - return; - } + var _keyCode2 = _interopRequireDefault(_keyCode); - var active = (0, _activeElement2["default"])((0, _ownerDocument2["default"])(this)); - var modal = this.getDialogElement(); + var _contains2 = __webpack_require__(1509); - if (modal && modal !== active && !(0, _contains2["default"])(modal, active)) { - modal.focus(); - } - }; + var _contains3 = _interopRequireDefault(_contains2); - //instead of a ref, which might conflict with one the parent applied. + var _addEventListener2 = __webpack_require__(504); + var _addEventListener3 = _interopRequireDefault(_addEventListener2); - BaseModal.prototype.getDialogElement = function getDialogElement() { - var node = this.refs.modal; - return node && node.lastChild; - }; + var _cssAnimation2 = __webpack_require__(1510); - BaseModal.prototype.isTopModal = function isTopModal() { - return this.props.manager.isTopModal(this); - }; + var _cssAnimation3 = _interopRequireDefault(_cssAnimation2); - BaseModal.prototype.renderBackdrop = function renderBackdrop() { - var _this2 = this; + var _toArray2 = __webpack_require__(1512); - var _props3 = this.props, - backdropStyle = _props3.backdropStyle, - backdropClassName = _props3.backdropClassName, - renderBackdrop = _props3.renderBackdrop, - Transition = _props3.transition, - backdropTransitionTimeout = _props3.backdropTransitionTimeout; + var _toArray3 = _interopRequireDefault(_toArray2); + var _Align2 = __webpack_require__(1513); - var backdropRef = function backdropRef(ref) { - return _this2.backdrop = ref; + var _Align3 = _interopRequireDefault(_Align2); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + exports.all = _all3.default; + exports.componentOrElement = _componentOrElement3.default; + exports.deprecated = _deprecated3.default; + exports.elementType = _elementType3.default; + exports.isRequiredForA11y = _isRequiredForA11y3.default; + exports.splitComponent = _splitComponent3.default; + exports.createChainedFunction = _createChainedFunction3.default; + exports.KeyCode = _keyCode2.default; + exports.contains = _contains3.default; + exports.addEventListener = _addEventListener3.default; + exports.cssAnimation = _cssAnimation3.default; + exports.toArray = _toArray3.default; + //export getContainerRenderMixin from './getContainerRenderMixin'; + + exports.Align = _Align3.default; + + /***/ }), + /* 47 */ + /***/ (function(module, exports) { + + var hasOwnProperty = {}.hasOwnProperty; + module.exports = function (it, key) { + return hasOwnProperty.call(it, key); + }; + + + /***/ }), + /* 48 */ + /***/ (function(module, exports, __webpack_require__) { + + "use strict"; + /* + object-assign + (c) Sindre Sorhus + @license MIT + */ + + + /* eslint-disable no-unused-vars */ + var getOwnPropertySymbols = Object.getOwnPropertySymbols; + var hasOwnProperty = Object.prototype.hasOwnProperty; + var propIsEnumerable = Object.prototype.propertyIsEnumerable; + + function toObject(val) { + if (val === null || val === undefined) { + throw new TypeError('Object.assign cannot be called with null or undefined'); + } + + return Object(val); + } + + function shouldUseNative() { + try { + if (!Object.assign) { + return false; + } + + // Detect buggy property enumeration order in older V8 versions. + + // https://bugs.chromium.org/p/v8/issues/detail?id=4118 + var test1 = new String('abc'); // eslint-disable-line no-new-wrappers + test1[5] = 'de'; + if (Object.getOwnPropertyNames(test1)[0] === '5') { + return false; + } + + // https://bugs.chromium.org/p/v8/issues/detail?id=3056 + var test2 = {}; + for (var i = 0; i < 10; i++) { + test2['_' + String.fromCharCode(i)] = i; + } + var order2 = Object.getOwnPropertyNames(test2).map(function (n) { + return test2[n]; + }); + if (order2.join('') !== '0123456789') { + return false; + } + + // https://bugs.chromium.org/p/v8/issues/detail?id=3056 + var test3 = {}; + 'abcdefghijklmnopqrst'.split('').forEach(function (letter) { + test3[letter] = letter; + }); + if (Object.keys(Object.assign({}, test3)).join('') !== + 'abcdefghijklmnopqrst') { + return false; + } + + return true; + } catch (err) { + // We don't expect any of the above to throw, but better to be safe. + return false; + } + } + + module.exports = shouldUseNative() ? Object.assign : function (target, source) { + var from; + var to = toObject(target); + var symbols; + + for (var s = 1; s < arguments.length; s++) { + from = Object(arguments[s]); + + for (var key in from) { + if (hasOwnProperty.call(from, key)) { + to[key] = from[key]; + } + } + + if (getOwnPropertySymbols) { + symbols = getOwnPropertySymbols(from); + for (var i = 0; i < symbols.length; i++) { + if (propIsEnumerable.call(from, symbols[i])) { + to[symbols[i]] = from[symbols[i]]; + } + } + } + } + + return to; + }; + + + /***/ }), + /* 49 */ + /***/ (function(module, exports, __webpack_require__) { + + "use strict"; + + + Object.defineProperty(exports, "__esModule", { + value: true + }); + + var _inDOM = __webpack_require__(26); + + var _inDOM2 = _interopRequireDefault(_inDOM); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var off = function off() {}; + if (_inDOM2.default) { + off = function () { + if (document.addEventListener) return function (node, eventName, handler, capture) { + return node.removeEventListener(eventName, handler, capture || false); + };else if (document.attachEvent) return function (node, eventName, handler) { + return node.detachEvent('on' + eventName, handler); }; + }(); + } - var backdrop = _react2["default"].createElement('div', { - ref: backdropRef, - style: this.props.backdropStyle, - className: this.props.backdropClassName, - onClick: this.handleBackdropClick - }); + exports.default = off; + module.exports = exports['default']; - if (Transition) { - backdrop = _react2["default"].createElement( - Transition, - { transitionAppear: true, - 'in': this.props.show, - timeout: backdropTransitionTimeout - }, - renderBackdrop({ - ref: backdropRef, - style: backdropStyle, - className: backdropClassName, - onClick: this.handleBackdropClick - }) - ); - } + /***/ }), + /* 50 */ + /***/ (function(module, exports, __webpack_require__) { - return backdrop; - }; + var dP = __webpack_require__(40); + var createDesc = __webpack_require__(66); + module.exports = __webpack_require__(41) ? function (object, key, value) { + return dP.f(object, key, createDesc(1, value)); + } : function (object, key, value) { + object[key] = value; + return object; + }; - BaseModal.prototype.render = function render() { - var _props4 = this.props, - show = _props4.show, - container = _props4.container, - children = _props4.children, - Transition = _props4.transition, - backdrop = _props4.backdrop, - dialogTransitionTimeout = _props4.dialogTransitionTimeout, - className = _props4.className, - style = _props4.style, - onExit = _props4.onExit, - onExiting = _props4.onExiting, - onEnter = _props4.onEnter, - onEntering = _props4.onEntering, - onEntered = _props4.onEntered; + /***/ }), + /* 51 */ + /***/ (function(module, exports, __webpack_require__) { - var dialog = _react2["default"].Children.only(children); + var isObject = __webpack_require__(52); + module.exports = function (it) { + if (!isObject(it)) throw TypeError(it + ' is not an object!'); + return it; + }; - var mountModal = show || Transition && !this.state.exited; - if (!mountModal) { - return null; - } - var _dialog$props = dialog.props, - role = _dialog$props.role, - tabIndex = _dialog$props.tabIndex; + /***/ }), + /* 52 */ + /***/ (function(module, exports) { + module.exports = function (it) { + return typeof it === 'object' ? it !== null : typeof it === 'function'; + }; - if (role === undefined || tabIndex === undefined) { - dialog = (0, _react.cloneElement)(dialog, { - role: role === undefined ? 'document' : role, - tabIndex: tabIndex == null ? '-1' : tabIndex - }); - } - if (Transition) { - dialog = _react2["default"].createElement( - Transition, - { - transitionAppear: true, - unmountOnExit: true, - 'in': show, - timeout: dialogTransitionTimeout, - onExit: onExit, - onExiting: onExiting, - onExited: this.handleHidden, - onEnter: onEnter, - onEntering: onEntering, - onEntered: onEntered - }, - dialog - ); + /***/ }), + /* 53 */ + /***/ (function(module, exports) { + + module.exports = function (exec) { + try { + return !!exec(); + } catch (e) { + return true; + } + }; + + + /***/ }), + /* 54 */ + /***/ (function(module, exports, __webpack_require__) { + + // to indexed object, toObject with fallback for non-array-like ES3 strings + var IObject = __webpack_require__(217); + var defined = __webpack_require__(123); + module.exports = function (it) { + return IObject(defined(it)); + }; + + + /***/ }), + /* 55 */ + /***/ (function(module, exports, __webpack_require__) { + + "use strict"; + + + exports.__esModule = true; + + var _defineProperty = __webpack_require__(212); + + var _defineProperty2 = _interopRequireDefault(_defineProperty); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + exports.default = function () { + function defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + (0, _defineProperty2.default)(target, descriptor.key, descriptor); } + } - return _react2["default"].createElement( - _Portal2["default"], - { - ref: this.setMountNode, - container: container - }, - _react2["default"].createElement( - 'div', - { - ref: 'modal', - role: role || 'dialog', - style: style, - className: className - }, - backdrop && this.renderBackdrop(), - dialog - ) - ); + return function (Constructor, protoProps, staticProps) { + if (protoProps) defineProperties(Constructor.prototype, protoProps); + if (staticProps) defineProperties(Constructor, staticProps); + return Constructor; }; + }(); - return BaseModal; - }(_react.Component); + /***/ }), + /* 56 */ + /***/ (function(module, exports, __webpack_require__) { - ; + "use strict"; - BaseModal.Manager = _ModalManager2["default"]; - BaseModal.propTypes = propTypes; - BaseModal.defaultProps = defaultProps; + Object.defineProperty(exports, "__esModule", { + value: true + }); + + exports["default"] = function (node, event, handler, capture) { + (0, _on2["default"])(node, event, handler, capture); + + return { + remove: function remove() { + (0, _off2["default"])(node, event, handler, capture); + } + }; + }; + + var _on = __webpack_require__(17); + + var _on2 = _interopRequireDefault(_on); + + var _off = __webpack_require__(49); + + var _off2 = _interopRequireDefault(_off); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - exports["default"] = BaseModal; module.exports = exports['default']; /***/ }), - /* 165 */ + /* 57 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; - exports.__esModule = true; - exports.default = createChainableTypeChecker; - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ + Object.defineProperty(exports, "__esModule", { + value: true + }); - // Mostly taken from ReactPropTypes. + var _Animate = __webpack_require__(756); - /* This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ + var _Animate2 = _interopRequireDefault(_Animate); - function createChainableTypeChecker(validate) { - function checkType(isRequired, props, propName, componentName, location, propFullName) { - var componentNameSafe = componentName || '<>'; - var propFullNameSafe = propFullName || propName; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - if (props[propName] == null) { - if (isRequired) { - return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); - } + exports["default"] = _Animate2["default"]; + module.exports = exports['default']; - return null; - } + /***/ }), + /* 58 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { - for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { - args[_key - 6] = arguments[_key]; + "use strict"; + /* harmony export (immutable) */ __webpack_exports__["g"] = noop; + /* harmony export (immutable) */ __webpack_exports__["a"] = getKeyFromChildrenIndex; + /* harmony export (immutable) */ __webpack_exports__["b"] = getMenuIdFromSubMenuEventKey; + /* harmony export (immutable) */ __webpack_exports__["d"] = loopMenuItem; + /* harmony export (immutable) */ __webpack_exports__["e"] = loopMenuItemRecursively; + /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return menuAllProps; }); + /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getWidth; }); + /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return setStyle; }); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); + + + function noop() {} + + function getKeyFromChildrenIndex(child, menuEventKey, index) { + var prefix = menuEventKey || ''; + return child.key || prefix + 'item_' + index; + } + + function getMenuIdFromSubMenuEventKey(eventKey) { + return eventKey + '-menu-'; + } + + function loopMenuItem(children, cb) { + var index = -1; + __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (c) { + index++; + if (c && c.type && c.type.isMenuItemGroup) { + __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(c.props.children, function (c2) { + index++; + cb(c2, index); + }); + } else { + cb(c, index); } + }); + } - return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); + function loopMenuItemRecursively(children, keys, ret) { + /* istanbul ignore if */ + if (!children || ret.find) { + return; } + __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (c) { + if (c) { + var construct = c.type; + if (!construct || !(construct.isSubMenu || construct.isMenuItem || construct.isMenuItemGroup)) { + return; + } + if (keys.indexOf(c.key) !== -1) { + ret.find = true; + } else if (c.props.children) { + loopMenuItemRecursively(c.props.children, keys, ret); + } + } + }); + } - var chainedCheckType = checkType.bind(null, false); - chainedCheckType.isRequired = checkType.bind(null, true); + var menuAllProps = ['defaultSelectedKeys', 'selectedKeys', 'defaultOpenKeys', 'openKeys', 'mode', 'getPopupContainer', 'onSelect', 'onDeselect', 'onDestroy', 'openTransitionName', 'openAnimation', 'subMenuOpenDelay', 'subMenuCloseDelay', 'forceSubMenuRender', 'triggerSubMenuAction', 'level', 'selectable', 'multiple', 'onOpenChange', 'visible', 'focusable', 'defaultActiveFirst', 'prefixCls', 'inlineIndent', 'parentMenu', 'title', 'rootPrefixCls', 'eventKey', 'active', 'onItemHover', 'onTitleMouseEnter', 'onTitleMouseLeave', 'onTitleClick', 'popupAlign', 'popupOffset', 'isOpen', 'renderMenuItem', 'manualRef', 'subMenuKey', 'disabled', 'index', 'isSelected', 'store', 'activeKey', 'builtinPlacements', 'overflowedIndicator', - return chainedCheckType; - } + // the following keys found need to be removed from test regression + 'attribute', 'value', 'popupClassName', 'inlineCollapsed', 'menu', 'theme', 'itemIcon', 'expandIcon']; + + var getWidth = function getWidth(elem) { + return elem && typeof elem.getBoundingClientRect === 'function' && elem.getBoundingClientRect().width || 0; + }; + + var setStyle = function setStyle(elem, styleProperty, value) { + if (elem && typeof elem.style === 'object') { + elem.style[styleProperty] = value; + } + }; /***/ }), - /* 166 */ + /* 59 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; - exports.__esModule = true; - exports.default = createChainableTypeChecker; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * @ignore + * some key-codes definition and utils from closure-library + * @author yiminghe@gmail.com */ + var KeyCode = { + /** + * MAC_ENTER + */ + MAC_ENTER: 3, - // Mostly taken from ReactPropTypes. + /** + * BACKSPACE + */ + BACKSPACE: 8, - /* This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ + /** + * TAB + */ + TAB: 9, - function createChainableTypeChecker(validate) { - function checkType(isRequired, props, propName, componentName, location, propFullName) { - var componentNameSafe = componentName || '<>'; - var propFullNameSafe = propFullName || propName; + /** + * NUMLOCK on FF/Safari Mac + */ + NUM_CENTER: 12, - if (props[propName] == null) { - if (isRequired) { - return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); - } + /** + * ENTER + */ + ENTER: 13, - return null; - } + /** + * SHIFT + */ + SHIFT: 16, - for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { - args[_key - 6] = arguments[_key]; - } + /** + * CTRL + */ + CTRL: 17, - return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); - } + /** + * ALT + */ + ALT: 18, - var chainedCheckType = checkType.bind(null, false); - chainedCheckType.isRequired = checkType.bind(null, true); + /** + * PAUSE + */ + PAUSE: 19, - return chainedCheckType; - } + /** + * CAPS_LOCK + */ + CAPS_LOCK: 20, - /***/ }), - /* 167 */ - /***/ (function(module, exports, __webpack_require__) { + /** + * ESC + */ + ESC: 27, + + /** + * SPACE + */ + SPACE: 32, + + /** + * PAGE_UP + */ + PAGE_UP: 33, - "use strict"; + /** + * PAGE_DOWN + */ + PAGE_DOWN: 34, + /** + * END + */ + END: 35, - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = undefined; + /** + * HOME + */ + HOME: 36, - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + /** + * LEFT + */ + LEFT: 37, - var _react = __webpack_require__(0); + /** + * UP + */ + UP: 38, - var _react2 = _interopRequireDefault(_react); + /** + * RIGHT + */ + RIGHT: 39, - var _reactDom = __webpack_require__(3); + /** + * DOWN + */ + DOWN: 40, - var _reactDom2 = _interopRequireDefault(_reactDom); + /** + * PRINT_SCREEN + */ + PRINT_SCREEN: 44, - var _properties = __webpack_require__(27); + /** + * INSERT + */ + INSERT: 45, - var _properties2 = _interopRequireDefault(_properties); + /** + * DELETE + */ + DELETE: 46, - var _on = __webpack_require__(17); + /** + * ZERO + */ + ZERO: 48, - var _on2 = _interopRequireDefault(_on); + /** + * ONE + */ + ONE: 49, - var _classnames = __webpack_require__(2); + /** + * TWO + */ + TWO: 50, - var _classnames2 = _interopRequireDefault(_classnames); + /** + * THREE + */ + THREE: 51, - var _propTypes = __webpack_require__(1); + /** + * FOUR + */ + FOUR: 52, - var _propTypes2 = _interopRequireDefault(_propTypes); + /** + * FIVE + */ + FIVE: 53, - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + /** + * SIX + */ + SIX: 54, - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + /** + * SEVEN + */ + SEVEN: 55, - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + /** + * EIGHT + */ + EIGHT: 56, - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + /** + * NINE + */ + NINE: 57, - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + /** + * QUESTION_MARK + */ + QUESTION_MARK: 63, - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + /** + * A + */ + A: 65, - var transitionEndEvent = _properties2["default"].end; + /** + * B + */ + B: 66, - //设置状态码 - var UNMOUNTED = exports.UNMOUNTED = 0; - var EXITED = exports.EXITED = 1; - var ENTERING = exports.ENTERING = 2; - var ENTERED = exports.ENTERED = 3; - var EXITING = exports.EXITING = 4; + /** + * C + */ + C: 67, - var propTypes = { /** - * 是否触发动画 + * D */ - "in": _propTypes2["default"].bool, + D: 68, /** - * 不显示的时候是否移除组件 + * E */ - unmountOnExit: _propTypes2["default"].bool, + E: 69, /** - * 如果设置为默认显示,挂载时显示动画 + * F */ - transitionAppear: _propTypes2["default"].bool, + F: 70, /** - * 设置超时时间,防止出现问题,可设置为>=动画时间 + * G */ - timeout: _propTypes2["default"].number, + G: 71, /** - * 退出组件时添加的class + * H */ - exitedClassName: _propTypes2["default"].string, + H: 72, + /** - * 退出组件中添加的class + * I */ - exitingClassName: _propTypes2["default"].string, + I: 73, + /** - * 进入动画后添加的class + * J */ - enteredClassName: _propTypes2["default"].string, + J: 74, + /** - * 进入动画时添加的class + * K */ - enteringClassName: _propTypes2["default"].string, + K: 75, /** - * 进入动画开始时的钩子函数 + * L */ - onEnter: _propTypes2["default"].func, + L: 76, + /** - * 进入动画中的钩子函数 + * M */ - onEntering: _propTypes2["default"].func, + M: 77, + /** - * 进入动画后的钩子函数 + * N */ - onEntered: _propTypes2["default"].func, + N: 78, + /** - * 退出动画开始时的钩子函数 + * O */ - onExit: _propTypes2["default"].func, + O: 79, + /** - * 退出动画中的钩子函数 + * P */ - onExiting: _propTypes2["default"].func, + P: 80, + /** - * 退出动画后的钩子函数 + * Q */ - onExited: _propTypes2["default"].func - }; + Q: 81, - function noop() {} + /** + * R + */ + R: 82, - var defaultProps = { - "in": false, - unmountOnExit: false, - transitionAppear: false, - timeout: 5000, - onEnter: noop, - onEntering: noop, - onEntered: noop, - onExit: noop, - onExiting: noop, - onExited: noop - }; + /** + * S + */ + S: 83, - /** - * 动画组件 - */ + /** + * T + */ + T: 84, - var Transition = function (_Component) { - _inherits(Transition, _Component); + /** + * U + */ + U: 85, - function Transition(props, context) { - _classCallCheck(this, Transition); + /** + * V + */ + V: 86, - var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); + /** + * W + */ + W: 87, - var initialStatus = void 0; - if (props["in"]) { - // 在componentdidmount时开始执行动画 - initialStatus = props.transitionAppear ? EXITED : ENTERED; - } else { - initialStatus = props.unmountOnExit ? UNMOUNTED : EXITED; - } - _this.state = { status: initialStatus }; + /** + * X + */ + X: 88, - _this.nextCallback = null; - return _this; - } + /** + * Y + */ + Y: 89, - Transition.prototype.componentDidMount = function componentDidMount() { - if (this.props.transitionAppear && this.props["in"]) { - this.performEnter(this.props); - } - }; + /** + * Z + */ + Z: 90, - Transition.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - if (nextProps["in"] && this.props.unmountOnExit) { - if (this.state.status === UNMOUNTED) { - // 在componentDidUpdate执行动画. - this.setState({ status: EXITED }); - } - } else { - this._needsUpdate = true; - } - }; + /** + * META + */ + META: 91, - Transition.prototype.componentDidUpdate = function componentDidUpdate() { - var status = this.state.status; + /** + * WIN_KEY_RIGHT + */ + WIN_KEY_RIGHT: 92, - if (this.props.unmountOnExit && status === EXITED) { - // 当使用unmountOnExit时,exited为exiting和unmont的过渡状态 - if (this.props["in"]) { - this.performEnter(this.props); - } else { - this.setState({ status: UNMOUNTED }); - } + /** + * CONTEXT_MENU + */ + CONTEXT_MENU: 93, - return; - } + /** + * NUM_ZERO + */ + NUM_ZERO: 96, - // 确保只响应prop变化 - if (this._needsUpdate) { - this._needsUpdate = false; + /** + * NUM_ONE + */ + NUM_ONE: 97, - if (this.props["in"]) { - if (status === EXITING) { - this.performEnter(this.props); - } else if (status === EXITED) { - this.performEnter(this.props); - } - // 其他,当我们已经输入或输出 - } else { - if (status === ENTERING || status === ENTERED) { - this.performExit(this.props); - } - // 我们已经输入或输出完成 - } - } - }; + /** + * NUM_TWO + */ + NUM_TWO: 98, - Transition.prototype.componentWillUnmount = function componentWillUnmount() { - this.cancelNextCallback(); - }; + /** + * NUM_THREE + */ + NUM_THREE: 99, - Transition.prototype.performEnter = function performEnter(props) { - var _this2 = this; + /** + * NUM_FOUR + */ + NUM_FOUR: 100, - this.cancelNextCallback(); - var node = _reactDom2["default"].findDOMNode(this); + /** + * NUM_FIVE + */ + NUM_FIVE: 101, - // 这里接收新props - props.onEnter(node); + /** + * NUM_SIX + */ + NUM_SIX: 102, - this.safeSetState({ status: ENTERING }, function () { - _this2.props.onEntering(node); + /** + * NUM_SEVEN + */ + NUM_SEVEN: 103, - _this2.onTransitionEnd(node, function () { - _this2.safeSetState({ status: ENTERED }, function () { - _this2.props.onEntered(node); - }); - }); - }); - }; + /** + * NUM_EIGHT + */ + NUM_EIGHT: 104, - Transition.prototype.performExit = function performExit(props) { - var _this3 = this; + /** + * NUM_NINE + */ + NUM_NINE: 105, - this.cancelNextCallback(); - var node = _reactDom2["default"].findDOMNode(this); + /** + * NUM_MULTIPLY + */ + NUM_MULTIPLY: 106, - props.onExit(node); + /** + * NUM_PLUS + */ + NUM_PLUS: 107, - this.safeSetState({ status: EXITING }, function () { - _this3.props.onExiting(node); + /** + * NUM_MINUS + */ + NUM_MINUS: 109, - _this3.onTransitionEnd(node, function () { - _this3.safeSetState({ status: EXITED }, function () { - _this3.props.onExited(node); - }); - }); - }); - }; + /** + * NUM_PERIOD + */ + NUM_PERIOD: 110, - Transition.prototype.cancelNextCallback = function cancelNextCallback() { - if (this.nextCallback !== null) { - this.nextCallback.cancel(); - this.nextCallback = null; - } - }; + /** + * NUM_DIVISION + */ + NUM_DIVISION: 111, - Transition.prototype.safeSetState = function safeSetState(nextState, callback) { - // 确保在组件销毁后挂起的setState被消除 - this.setState(nextState, this.setNextCallback(callback)); - }; + /** + * F1 + */ + F1: 112, - Transition.prototype.setNextCallback = function setNextCallback(callback) { - var _this4 = this; + /** + * F2 + */ + F2: 113, - var active = true; + /** + * F3 + */ + F3: 114, - this.nextCallback = function (event) { - if (active) { - active = false; - _this4.nextCallback = null; + /** + * F4 + */ + F4: 115, - callback(event); - } - }; + /** + * F5 + */ + F5: 116, - this.nextCallback.cancel = function () { - active = false; - }; + /** + * F6 + */ + F6: 117, - return this.nextCallback; - }; + /** + * F7 + */ + F7: 118, - Transition.prototype.onTransitionEnd = function onTransitionEnd(node, handler) { - this.setNextCallback(handler); + /** + * F8 + */ + F8: 119, - if (node) { - if (transitionEndEvent == undefined) { - this.nextCallback(); - } else { - (0, _on2["default"])(node, transitionEndEvent, this.nextCallback); - } - setTimeout(this.nextCallback, this.props.timeout); - } else { - setTimeout(this.nextCallback, 0); - } - }; + /** + * F9 + */ + F9: 120, - Transition.prototype.render = function render() { - var status = this.state.status; - if (status === UNMOUNTED) { - return null; - } + /** + * F10 + */ + F10: 121, - var _props = this.props, - children = _props.children, - className = _props.className, - childProps = _objectWithoutProperties(_props, ['children', 'className']); + /** + * F11 + */ + F11: 122, - Object.keys(Transition.propTypes).forEach(function (key) { - return delete childProps[key]; - }); + /** + * F12 + */ + F12: 123, - var transitionClassName = void 0; - if (status === EXITED) { - transitionClassName = this.props.exitedClassName; - } else if (status === ENTERING) { - transitionClassName = this.props.enteringClassName; - } else if (status === ENTERED) { - transitionClassName = this.props.enteredClassName; - } else if (status === EXITING) { - transitionClassName = this.props.exitingClassName; - } + /** + * NUMLOCK + */ + NUMLOCK: 144, - var child = _react2["default"].Children.only(children); - return _react2["default"].cloneElement(child, _extends({}, childProps, { - className: (0, _classnames2["default"])(child.props.className, className, transitionClassName) - })); - }; + /** + * SEMICOLON + */ + SEMICOLON: 186, - return Transition; - }(_react.Component); + /** + * DASH + */ + DASH: 189, - Transition.propTypes = propTypes; + /** + * EQUALS + */ + EQUALS: 187, - Transition.defaultProps = defaultProps; + /** + * COMMA + */ + COMMA: 188, - exports["default"] = Transition; + /** + * PERIOD + */ + PERIOD: 190, - /***/ }), - /* 168 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + /** + * SLASH + */ + SLASH: 191, - "use strict"; - /* harmony export (immutable) */ __webpack_exports__["a"] = warning; - /** - * Prints a warning in the console if it exists. - * - * @param {String} message The warning message. - * @returns {void} - */ - function warning(message) { - /* eslint-disable no-console */ - if (typeof console !== 'undefined' && typeof console.error === 'function') { - console.error(message); - } - /* eslint-enable no-console */ + /** + * APOSTROPHE + */ + APOSTROPHE: 192, + /** + * SINGLE_QUOTE + */ + SINGLE_QUOTE: 222, - try { - // This error was thrown as a convenience so that if you enable - // "break on all exceptions" in your console, - // it would pause the execution at this line. - throw new Error(message); - /* eslint-disable no-empty */ - } catch (e) {} - /* eslint-enable no-empty */ + /** + * OPEN_SQUARE_BRACKET + */ + OPEN_SQUARE_BRACKET: 219, - } + /** + * BACKSLASH + */ + BACKSLASH: 220, - /***/ }), - /* 169 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + /** + * CLOSE_SQUARE_BRACKET + */ + CLOSE_SQUARE_BRACKET: 221, - "use strict"; - /* harmony export (immutable) */ __webpack_exports__["a"] = _extends; - function _extends() { - _extends = Object.assign || function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; + /** + * WIN_KEY + */ + WIN_KEY: 224, - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } + /** + * MAC_FF_META + */ + MAC_FF_META: 224, - return target; - }; + /** + * WIN_IME + */ + WIN_IME: 229, + // ======================== Function ======================== - return _extends.apply(this, arguments); - } + /** + * whether text and modified key is entered at the same time. + */ + isTextModifyingKeyEvent: function isTextModifyingKeyEvent(e) { + var keyCode = e.keyCode; - /***/ }), - /* 170 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + if (e.altKey && !e.ctrlKey || e.metaKey || // Function keys don't generate text + keyCode >= KeyCode.F1 && keyCode <= KeyCode.F12) { + return false; + } // The following keys are quite harmless, even in combination with + // CTRL, ALT or SHIFT. - "use strict"; - /* harmony export (immutable) */ __webpack_exports__["a"] = _objectWithoutPropertiesLoose; - function _objectWithoutPropertiesLoose(source, excluded) { - if (source == null) return {}; - var target = {}; - var sourceKeys = Object.keys(source); - var key, i; - for (i = 0; i < sourceKeys.length; i++) { - key = sourceKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - target[key] = source[key]; - } + switch (keyCode) { + case KeyCode.ALT: + case KeyCode.CAPS_LOCK: + case KeyCode.CONTEXT_MENU: + case KeyCode.CTRL: + case KeyCode.DOWN: + case KeyCode.END: + case KeyCode.ESC: + case KeyCode.HOME: + case KeyCode.INSERT: + case KeyCode.LEFT: + case KeyCode.MAC_FF_META: + case KeyCode.META: + case KeyCode.NUMLOCK: + case KeyCode.NUM_CENTER: + case KeyCode.PAGE_DOWN: + case KeyCode.PAGE_UP: + case KeyCode.PAUSE: + case KeyCode.PRINT_SCREEN: + case KeyCode.RIGHT: + case KeyCode.SHIFT: + case KeyCode.UP: + case KeyCode.WIN_KEY: + case KeyCode.WIN_KEY_RIGHT: + return false; - return target; - } + default: + return true; + } + }, - /***/ }), - /* 171 */ - /***/ (function(module, exports, __webpack_require__) { + /** + * whether character is entered. + */ + isCharacterKey: function isCharacterKey(keyCode) { + if (keyCode >= KeyCode.ZERO && keyCode <= KeyCode.NINE) { + return true; + } - "use strict"; + if (keyCode >= KeyCode.NUM_ZERO && keyCode <= KeyCode.NUM_MULTIPLY) { + return true; + } + if (keyCode >= KeyCode.A && keyCode <= KeyCode.Z) { + return true; + } // Safari sends zero key code for non-latin characters. - // currently used to initiate the velocity style object to 0 + if (window.navigator.userAgent.indexOf('WebKit') !== -1 && keyCode === 0) { + return true; + } - exports.__esModule = true; - exports['default'] = mapToZero; + switch (keyCode) { + case KeyCode.SPACE: + case KeyCode.QUESTION_MARK: + case KeyCode.NUM_PLUS: + case KeyCode.NUM_MINUS: + case KeyCode.NUM_PERIOD: + case KeyCode.NUM_DIVISION: + case KeyCode.SEMICOLON: + case KeyCode.DASH: + case KeyCode.EQUALS: + case KeyCode.COMMA: + case KeyCode.PERIOD: + case KeyCode.SLASH: + case KeyCode.APOSTROPHE: + case KeyCode.SINGLE_QUOTE: + case KeyCode.OPEN_SQUARE_BRACKET: + case KeyCode.BACKSLASH: + case KeyCode.CLOSE_SQUARE_BRACKET: + return true; - function mapToZero(obj) { - var ret = {}; - for (var key in obj) { - if (Object.prototype.hasOwnProperty.call(obj, key)) { - ret[key] = 0; + default: + return false; } } - return ret; - } - - module.exports = exports['default']; + }; + var _default = KeyCode; + exports.default = _default; /***/ }), - /* 172 */ + /* 60 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; - // stepper is used a lot. Saves allocation to return the same array wrapper. - // This is fine and danger-free against mutations because the callsite - // immediately destructures it and gets the numbers inside without passing the - - exports.__esModule = true; - exports["default"] = stepper; + exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined; - var reusedTuple = [0, 0]; + var _all2 = __webpack_require__(819); - function stepper(secondPerFrame, x, v, destX, k, b, precision) { - // Spring stiffness, in kg / s^2 + var _all3 = _interopRequireDefault(_all2); - // for animations, destX is really spring length (spring at rest). initial - // position is considered as the stretched/compressed position of a spring - var Fspring = -k * (x - destX); + var _componentOrElement2 = __webpack_require__(820); - // Damping, in kg / s - var Fdamper = -b * v; + var _componentOrElement3 = _interopRequireDefault(_componentOrElement2); - // usually we put mass here, but for animation purposes, specifying mass is a - // bit redundant. you could simply adjust k and b accordingly - // let a = (Fspring + Fdamper) / mass; - var a = Fspring + Fdamper; + var _deprecated2 = __webpack_require__(821); - var newV = v + a * secondPerFrame; - var newX = x + newV * secondPerFrame; + var _deprecated3 = _interopRequireDefault(_deprecated2); - if (Math.abs(newV) < precision && Math.abs(newX - destX) < precision) { - reusedTuple[0] = destX; - reusedTuple[1] = 0; - return reusedTuple; - } + var _elementType2 = __webpack_require__(822); - reusedTuple[0] = newX; - reusedTuple[1] = newV; - return reusedTuple; - } + var _elementType3 = _interopRequireDefault(_elementType2); - module.exports = exports["default"]; - // array reference around. + var _isRequiredForA11y2 = __webpack_require__(823); - /***/ }), - /* 173 */ - /***/ (function(module, exports, __webpack_require__) { + var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2); - /* WEBPACK VAR INJECTION */(function(process) {// Generated by CoffeeScript 1.7.1 - (function() { - var getNanoSeconds, hrtime, loadTime; + var _splitComponent2 = __webpack_require__(824); - if ((typeof performance !== "undefined" && performance !== null) && performance.now) { - module.exports = function() { - return performance.now(); - }; - } else if ((typeof process !== "undefined" && process !== null) && process.hrtime) { - module.exports = function() { - return (getNanoSeconds() - loadTime) / 1e6; - }; - hrtime = process.hrtime; - getNanoSeconds = function() { - var hr; - hr = hrtime(); - return hr[0] * 1e9 + hr[1]; - }; - loadTime = getNanoSeconds(); - } else if (Date.now) { - module.exports = function() { - return Date.now() - loadTime; - }; - loadTime = Date.now(); - } else { - module.exports = function() { - return new Date().getTime() - loadTime; - }; - loadTime = new Date().getTime(); - } + var _splitComponent3 = _interopRequireDefault(_splitComponent2); - }).call(this); + var _createChainedFunction2 = __webpack_require__(825); - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) + var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2); - /***/ }), - /* 174 */ - /***/ (function(module, exports, __webpack_require__) { + var _keyCode = __webpack_require__(826); - "use strict"; + var _keyCode2 = _interopRequireDefault(_keyCode); + var _contains2 = __webpack_require__(827); - // usage assumption: currentStyle values have already been rendered but it says - // nothing of whether currentStyle is stale (see unreadPropStyle) + var _contains3 = _interopRequireDefault(_contains2); + var _addEventListener2 = __webpack_require__(260); - exports.__esModule = true; - exports['default'] = shouldStopAnimation; + var _addEventListener3 = _interopRequireDefault(_addEventListener2); - function shouldStopAnimation(currentStyle, style, currentVelocity) { - for (var key in style) { - if (!Object.prototype.hasOwnProperty.call(style, key)) { - continue; - } + var _cssAnimation2 = __webpack_require__(828); - if (currentVelocity[key] !== 0) { - return false; - } + var _cssAnimation3 = _interopRequireDefault(_cssAnimation2); - var styleValue = typeof style[key] === 'number' ? style[key] : style[key].val; - // stepper will have already taken care of rounding precision errors, so - // won't have such thing as 0.9999 !=== 1 - if (currentStyle[key] !== styleValue) { - return false; - } - } + var _toArray2 = __webpack_require__(830); - return true; - } + var _toArray3 = _interopRequireDefault(_toArray2); - module.exports = exports['default']; + var _Align2 = __webpack_require__(261); - /***/ }), - /* 175 */ - /***/ (function(module, exports, __webpack_require__) { + var _Align3 = _interopRequireDefault(_Align2); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - module.exports = __webpack_require__(316).default; - module.exports.utils = __webpack_require__(75); - module.exports.Responsive = __webpack_require__(1135).default; - module.exports.Responsive.utils = __webpack_require__(320); - module.exports.WidthProvider = __webpack_require__(1136).default; + exports.all = _all3.default; + exports.componentOrElement = _componentOrElement3.default; + exports.deprecated = _deprecated3.default; + exports.elementType = _elementType3.default; + exports.isRequiredForA11y = _isRequiredForA11y3.default; + exports.splitComponent = _splitComponent3.default; + exports.createChainedFunction = _createChainedFunction3.default; + exports.KeyCode = _keyCode2.default; + exports.contains = _contains3.default; + exports.addEventListener = _addEventListener3.default; + exports.cssAnimation = _cssAnimation3.default; + exports.toArray = _toArray3.default; + //export getContainerRenderMixin from './getContainerRenderMixin'; + exports.Align = _Align3.default; /***/ }), - /* 176 */ + /* 61 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; - function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - Object.defineProperty(exports, "__esModule", { value: true }); - exports.matchesSelector = matchesSelector; - exports.matchesSelectorAndParentsTo = matchesSelectorAndParentsTo; - exports.addEvent = addEvent; - exports.removeEvent = removeEvent; - exports.outerHeight = outerHeight; - exports.outerWidth = outerWidth; - exports.innerHeight = innerHeight; - exports.innerWidth = innerWidth; - exports.offsetXYFromParent = offsetXYFromParent; - exports.createCSSTransform = createCSSTransform; - exports.createSVGTransform = createSVGTransform; - exports.getTranslation = getTranslation; - exports.getTouch = getTouch; - exports.getTouchIdentifier = getTouchIdentifier; - exports.addUserSelectStyles = addUserSelectStyles; - exports.removeUserSelectStyles = removeUserSelectStyles; - exports.addClassName = addClassName; - exports.removeClassName = removeClassName; - - var _shims = __webpack_require__(108); + exports.setStyle = exports.getWidth = exports.menuAllProps = undefined; - var _getPrefix = _interopRequireWildcard(__webpack_require__(1131)); + var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; /** + * This source code is quoted from rc-menu. + * homepage: https://github.com/react-component/menu + */ - function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; } - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + exports.noop = noop; + exports.getKeyFromChildrenIndex = getKeyFromChildrenIndex; + exports.getMenuIdFromSubMenuEventKey = getMenuIdFromSubMenuEventKey; + exports.loopMenuItem = loopMenuItem; + exports.loopMenuItemRecursively = loopMenuItemRecursively; + exports.fireKeyEvent = fireKeyEvent; - function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + var _react = __webpack_require__(0); - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + var _react2 = _interopRequireDefault(_react); - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - var matchesSelectorFunc = ''; + function noop() {} - function matchesSelector(el - /*: Node*/ - , selector - /*: string*/ - ) - /*: boolean*/ - { - if (!matchesSelectorFunc) { - matchesSelectorFunc = (0, _shims.findInArray)(['matches', 'webkitMatchesSelector', 'mozMatchesSelector', 'msMatchesSelector', 'oMatchesSelector'], function (method) { - // $FlowIgnore: Doesn't think elements are indexable - return (0, _shims.isFunction)(el[method]); - }); - } // Might not be found entirely (not an Element?) - in that case, bail - // $FlowIgnore: Doesn't think elements are indexable + function getKeyFromChildrenIndex(child, menuEventKey, index) { + var prefix = menuEventKey || ''; + return child.key || prefix + 'item_' + index; + } + function getMenuIdFromSubMenuEventKey(eventKey) { + return eventKey + '-menu-'; + } - if (!(0, _shims.isFunction)(el[matchesSelectorFunc])) return false; // $FlowIgnore: Doesn't think elements are indexable + function loopMenuItem(children, cb) { + var index = -1; + _react2["default"].Children.forEach(children, function (c) { + index++; + if (c && c.type && c.type.isMenuItemGroup) { + _react2["default"].Children.forEach(c.props.children, function (c2) { + index++; + cb(c2, index); + }); + } else { + cb(c, index); + } + }); + } - return el[matchesSelectorFunc](selector); - } // Works up the tree to the draggable itself attempting to match selector. + function loopMenuItemRecursively(children, keys, ret) { + /* istanbul ignore if */ + if (!children || ret.find) { + return; + } + _react2["default"].Children.forEach(children, function (c) { + if (c) { + var construct = c.type; + if (!construct || !(construct.isSubMenu || construct.isMenuItem || construct.isMenuItemGroup)) { + return; + } + if (keys.indexOf(c.key) !== -1) { + ret.find = true; + } else if (c.props.children) { + loopMenuItemRecursively(c.props.children, keys, ret); + } + } + }); + } + var menuAllProps = exports.menuAllProps = ['defaultSelectedKeys', 'selectedKeys', 'defaultOpenKeys', 'openKeys', 'mode', 'getPopupContainer', 'onSelect', 'onDeselect', 'onDestroy', 'openTransitionName', 'openAnimation', 'subMenuOpenDelay', 'subMenuCloseDelay', 'forceSubMenuRender', 'triggerSubMenuAction', 'level', 'selectable', 'multiple', 'onOpenChange', 'visible', 'focusable', 'defaultActiveFirst', 'prefixCls', 'inlineIndent', 'parentMenu', 'title', 'rootPrefixCls', 'eventKey', 'active', 'onItemHover', 'onTitleMouseEnter', 'onTitleMouseLeave', 'onTitleClick', 'popupAlign', 'popupOffset', 'isOpen', 'renderMenuItem', 'manualRef', 'subMenuKey', 'disabled', 'index', 'isSelected', 'store', 'activeKey', 'builtinPlacements', 'overflowedIndicator', - function matchesSelectorAndParentsTo(el - /*: Node*/ - , selector - /*: string*/ - , baseNode - /*: Node*/ - ) - /*: boolean*/ - { - var node = el; + // the following keys found need to be removed from test regression + 'attribute', 'value', 'popupClassName', 'inlineCollapsed', 'menu', 'theme', 'itemIcon', 'expandIcon']; - do { - if (matchesSelector(node, selector)) return true; - if (node === baseNode) return false; - node = node.parentNode; - } while (node); + var getWidth = exports.getWidth = function getWidth(elem) { + return elem && typeof elem.getBoundingClientRect === 'function' && elem.getBoundingClientRect().width || 0; + }; - return false; - } + var setStyle = exports.setStyle = function setStyle(elem, styleProperty, value) { + if (elem && _typeof(elem.style) === 'object') { + elem.style[styleProperty] = value; + } + }; - function addEvent(el - /*: ?Node*/ - , event - /*: string*/ - , handler - /*: Function*/ - , inputOptions - /*: Object*/ - ) - /*: void*/ - { - if (!el) return; + function fireKeyEvent(el, evtType, keyCode) { + var evtObj; + if (document.createEvent) { + if (window.KeyEvent) { + //firefox 浏览器下模拟事件 + evtObj = document.createEvent('KeyEvents'); + evtObj.initKeyEvent(evtType, true, true, window, true, false, false, false, keyCode, 0); + } else { + //chrome 浏览器下模拟事件 + evtObj = document.createEvent('UIEvents'); + evtObj.initUIEvent(evtType, true, true, window, 1); - var options = _objectSpread({ - capture: true - }, inputOptions); + delete evtObj.keyCode; + if (typeof evtObj.keyCode === "undefined") { + //为了模拟keycode + Object.defineProperty(evtObj, "keyCode", { value: keyCode }); + } else { + evtObj.key = String.fromCharCode(keyCode); + } - if (el.addEventListener) { - el.addEventListener(event, handler, options); - } else if (el.attachEvent) { - el.attachEvent('on' + event, handler); - } else { - // $FlowIgnore: Doesn't think elements are indexable - el['on' + event] = handler; + if (typeof evtObj.ctrlKey === 'undefined') { + //为了模拟ctrl键 + Object.defineProperty(evtObj, "ctrlKey", { value: true }); + } else { + evtObj.ctrlKey = true; + } + } + el.dispatchEvent(evtObj); + } else if (document.createEventObject) { + //IE 浏览器下模拟事件 + evtObj = document.createEventObject(); + evtObj.keyCode = keyCode; + el.fireEvent('on' + evtType, evtObj); } } - function removeEvent(el - /*: ?Node*/ - , event - /*: string*/ - , handler - /*: Function*/ - , inputOptions - /*: Object*/ - ) - /*: void*/ - { - if (!el) return; + /***/ }), + /* 62 */ + /***/ (function(module, exports, __webpack_require__) { - var options = _objectSpread({ - capture: true - }, inputOptions); + "use strict"; - if (el.removeEventListener) { - el.removeEventListener(event, handler, options); - } else if (el.detachEvent) { - el.detachEvent('on' + event, handler); - } else { - // $FlowIgnore: Doesn't think elements are indexable - el['on' + event] = null; - } - } - function outerHeight(node - /*: HTMLElement*/ - ) - /*: number*/ - { - // This is deliberately excluding margin for our calculations, since we are using - // offsetTop which is including margin. See getBoundPosition - var height = node.clientHeight; - var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node); - height += (0, _shims.int)(computedStyle.borderTopWidth); - height += (0, _shims.int)(computedStyle.borderBottomWidth); - return height; - } + exports.__esModule = true; + exports['default'] = { + today: '今天', + now: '此刻', + backToToday: '返回今天', + ok: '确定', + timeSelect: '选择时间', + dateSelect: '选择日期', + weekSelect: '选择周', + clear: '清除', + month: '月', + year: '年', + previousMonth: '上个月 (翻页上键)', + nextMonth: '下个月 (翻页下键)', + monthSelect: '选择月份', + yearSelect: '选择年份', + decadeSelect: '选择年代', + yearFormat: 'YYYY年', + dayFormat: 'D日', + dateFormat: 'YYYY年M月D日', + dateTimeFormat: 'YYYY年M月D日 HH时mm分ss秒', + previousYear: '上一年 (Control键加左方向键)', + nextYear: '下一年 (Control键加右方向键)', + previousDecade: '上一年代', + nextDecade: '下一年代', + previousCentury: '上一世纪', + nextCentury: '下一世纪' + }; + module.exports = exports['default']; - function outerWidth(node - /*: HTMLElement*/ - ) - /*: number*/ - { - // This is deliberately excluding margin for our calculations, since we are using - // offsetLeft which is including margin. See getBoundPosition - var width = node.clientWidth; - var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node); - width += (0, _shims.int)(computedStyle.borderLeftWidth); - width += (0, _shims.int)(computedStyle.borderRightWidth); - return width; - } + /***/ }), + /* 63 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { - function innerHeight(node - /*: HTMLElement*/ - ) - /*: number*/ - { - var height = node.clientHeight; - var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node); - height -= (0, _shims.int)(computedStyle.paddingTop); - height -= (0, _shims.int)(computedStyle.paddingBottom); - return height; - } + "use strict"; + /* harmony export (immutable) */ __webpack_exports__["g"] = noop; + /* harmony export (immutable) */ __webpack_exports__["a"] = getKeyFromChildrenIndex; + /* harmony export (immutable) */ __webpack_exports__["b"] = getMenuIdFromSubMenuEventKey; + /* harmony export (immutable) */ __webpack_exports__["d"] = loopMenuItem; + /* harmony export (immutable) */ __webpack_exports__["e"] = loopMenuItemRecursively; + /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return menuAllProps; }); + /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getWidth; }); + /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return setStyle; }); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); - function innerWidth(node - /*: HTMLElement*/ - ) - /*: number*/ - { - var width = node.clientWidth; - var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node); - width -= (0, _shims.int)(computedStyle.paddingLeft); - width -= (0, _shims.int)(computedStyle.paddingRight); - return width; - } // Get from offsetParent + function noop() {} - function offsetXYFromParent(evt - /*: {clientX: number, clientY: number}*/ - , offsetParent - /*: HTMLElement*/ - , scale - /*: number*/ - ) - /*: ControlPosition*/ - { - var isBody = offsetParent === offsetParent.ownerDocument.body; - var offsetParentRect = isBody ? { - left: 0, - top: 0 - } : offsetParent.getBoundingClientRect(); - var x = (evt.clientX + offsetParent.scrollLeft - offsetParentRect.left) / scale; - var y = (evt.clientY + offsetParent.scrollTop - offsetParentRect.top) / scale; - return { - x: x, - y: y - }; + function getKeyFromChildrenIndex(child, menuEventKey, index) { + var prefix = menuEventKey || ''; + return child.key || prefix + 'item_' + index; } - function createCSSTransform(controlPos - /*: ControlPosition*/ - , positionOffset - /*: PositionOffsetControlPosition*/ - ) - /*: Object*/ - { - var translation = getTranslation(controlPos, positionOffset, 'px'); - return _defineProperty({}, (0, _getPrefix.browserPrefixToKey)('transform', _getPrefix.default), translation); + function getMenuIdFromSubMenuEventKey(eventKey) { + return eventKey + '-menu-'; } - function createSVGTransform(controlPos - /*: ControlPosition*/ - , positionOffset - /*: PositionOffsetControlPosition*/ - ) - /*: string*/ - { - var translation = getTranslation(controlPos, positionOffset, ''); - return translation; + function loopMenuItem(children, cb) { + var index = -1; + __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (c) { + index++; + if (c && c.type && c.type.isMenuItemGroup) { + __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(c.props.children, function (c2) { + index++; + cb(c2, index); + }); + } else { + cb(c, index); + } + }); } - function getTranslation(_ref2, positionOffset - /*: PositionOffsetControlPosition*/ - , unitSuffix - /*: string*/ - ) - /*: string*/ - { - var x = _ref2.x, - y = _ref2.y; - var translation = "translate(".concat(x).concat(unitSuffix, ",").concat(y).concat(unitSuffix, ")"); + function loopMenuItemRecursively(children, keys, ret) { + /* istanbul ignore if */ + if (!children || ret.find) { + return; + } + __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (c) { + if (c) { + var construct = c.type; + if (!construct || !(construct.isSubMenu || construct.isMenuItem || construct.isMenuItemGroup)) { + return; + } + if (keys.indexOf(c.key) !== -1) { + ret.find = true; + } else if (c.props.children) { + loopMenuItemRecursively(c.props.children, keys, ret); + } + } + }); + } - if (positionOffset) { - var defaultX = "".concat(typeof positionOffset.x === 'string' ? positionOffset.x : positionOffset.x + unitSuffix); - var defaultY = "".concat(typeof positionOffset.y === 'string' ? positionOffset.y : positionOffset.y + unitSuffix); - translation = "translate(".concat(defaultX, ", ").concat(defaultY, ")") + translation; + var menuAllProps = ['defaultSelectedKeys', 'selectedKeys', 'defaultOpenKeys', 'openKeys', 'mode', 'getPopupContainer', 'onSelect', 'onDeselect', 'onDestroy', 'openTransitionName', 'openAnimation', 'subMenuOpenDelay', 'subMenuCloseDelay', 'forceSubMenuRender', 'triggerSubMenuAction', 'level', 'selectable', 'multiple', 'onOpenChange', 'visible', 'focusable', 'defaultActiveFirst', 'prefixCls', 'inlineIndent', 'parentMenu', 'title', 'rootPrefixCls', 'eventKey', 'active', 'onItemHover', 'onTitleMouseEnter', 'onTitleMouseLeave', 'onTitleClick', 'popupAlign', 'popupOffset', 'isOpen', 'renderMenuItem', 'manualRef', 'subMenuKey', 'disabled', 'index', 'isSelected', 'store', 'activeKey', 'builtinPlacements', 'overflowedIndicator', + + // the following keys found need to be removed from test regression + 'attribute', 'value', 'popupClassName', 'inlineCollapsed', 'menu', 'theme', 'itemIcon', 'expandIcon']; + + var getWidth = function getWidth(elem) { + return elem && typeof elem.getBoundingClientRect === 'function' && elem.getBoundingClientRect().width || 0; + }; + + var setStyle = function setStyle(elem, styleProperty, value) { + if (elem && typeof elem.style === 'object') { + elem.style[styleProperty] = value; } + }; - return translation; - } + /***/ }), + /* 64 */ + /***/ (function(module, exports, __webpack_require__) { - function getTouch(e - /*: MouseTouchEvent*/ - , identifier - /*: number*/ - ) - /*: ?{clientX: number, clientY: number}*/ - { - return e.targetTouches && (0, _shims.findInArray)(e.targetTouches, function (t) { - return identifier === t.identifier; - }) || e.changedTouches && (0, _shims.findInArray)(e.changedTouches, function (t) { - return identifier === t.identifier; - }); + "use strict"; + /* WEBPACK VAR INJECTION */(function(process) { + + if (process.env.NODE_ENV === 'production') { + module.exports = __webpack_require__(570); + } else { + module.exports = __webpack_require__(571); } - function getTouchIdentifier(e - /*: MouseTouchEvent*/ - ) - /*: ?number*/ - { - if (e.targetTouches && e.targetTouches[0]) return e.targetTouches[0].identifier; - if (e.changedTouches && e.changedTouches[0]) return e.changedTouches[0].identifier; - } // User-select Hacks: - // - // Useful for preventing blue highlights all over everything when dragging. - // Note we're passing `document` b/c we could be iframed + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) + /***/ }), + /* 65 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { - function addUserSelectStyles(doc - /*: ?Document*/ - ) { - if (!doc) return; - var styleEl = doc.getElementById('react-draggable-style-el'); + "use strict"; + Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); + /* WEBPACK VAR INJECTION */(function(global) {/** + * A collection of shims that provide minimal functionality of the ES6 collections. + * + * These implementations are not meant to be used outside of the ResizeObserver + * modules as they cover only a limited range of use cases. + */ + /* eslint-disable require-jsdoc, valid-jsdoc */ + var MapShim = (function () { + if (typeof Map !== 'undefined') { + return Map; + } + /** + * Returns index in provided array that matches the specified key. + * + * @param {Array} arr + * @param {*} key + * @returns {number} + */ + function getIndex(arr, key) { + var result = -1; + arr.some(function (entry, index) { + if (entry[0] === key) { + result = index; + return true; + } + return false; + }); + return result; + } + return /** @class */ (function () { + function class_1() { + this.__entries__ = []; + } + Object.defineProperty(class_1.prototype, "size", { + /** + * @returns {boolean} + */ + get: function () { + return this.__entries__.length; + }, + enumerable: true, + configurable: true + }); + /** + * @param {*} key + * @returns {*} + */ + class_1.prototype.get = function (key) { + var index = getIndex(this.__entries__, key); + var entry = this.__entries__[index]; + return entry && entry[1]; + }; + /** + * @param {*} key + * @param {*} value + * @returns {void} + */ + class_1.prototype.set = function (key, value) { + var index = getIndex(this.__entries__, key); + if (~index) { + this.__entries__[index][1] = value; + } + else { + this.__entries__.push([key, value]); + } + }; + /** + * @param {*} key + * @returns {void} + */ + class_1.prototype.delete = function (key) { + var entries = this.__entries__; + var index = getIndex(entries, key); + if (~index) { + entries.splice(index, 1); + } + }; + /** + * @param {*} key + * @returns {void} + */ + class_1.prototype.has = function (key) { + return !!~getIndex(this.__entries__, key); + }; + /** + * @returns {void} + */ + class_1.prototype.clear = function () { + this.__entries__.splice(0); + }; + /** + * @param {Function} callback + * @param {*} [ctx=null] + * @returns {void} + */ + class_1.prototype.forEach = function (callback, ctx) { + if (ctx === void 0) { ctx = null; } + for (var _i = 0, _a = this.__entries__; _i < _a.length; _i++) { + var entry = _a[_i]; + callback.call(ctx, entry[1], entry[0]); + } + }; + return class_1; + }()); + })(); - if (!styleEl) { - styleEl = doc.createElement('style'); - styleEl.type = 'text/css'; - styleEl.id = 'react-draggable-style-el'; - styleEl.innerHTML = '.react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n'; - styleEl.innerHTML += '.react-draggable-transparent-selection *::selection {all: inherit;}\n'; - doc.getElementsByTagName('head')[0].appendChild(styleEl); - } + /** + * Detects whether window and document objects are available in current environment. + */ + var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && window.document === document; - if (doc.body) addClassName(doc.body, 'react-draggable-transparent-selection'); + // Returns global object of a current environment. + var global$1 = (function () { + if (typeof global !== 'undefined' && global.Math === Math) { + return global; + } + if (typeof self !== 'undefined' && self.Math === Math) { + return self; + } + if (typeof window !== 'undefined' && window.Math === Math) { + return window; + } + // eslint-disable-next-line no-new-func + return Function('return this')(); + })(); + + /** + * A shim for the requestAnimationFrame which falls back to the setTimeout if + * first one is not supported. + * + * @returns {number} Requests' identifier. + */ + var requestAnimationFrame$1 = (function () { + if (typeof requestAnimationFrame === 'function') { + // It's required to use a bounded function because IE sometimes throws + // an "Invalid calling object" error if rAF is invoked without the global + // object on the left hand side. + return requestAnimationFrame.bind(global$1); + } + return function (callback) { return setTimeout(function () { return callback(Date.now()); }, 1000 / 60); }; + })(); + + // Defines minimum timeout before adding a trailing call. + var trailingTimeout = 2; + /** + * Creates a wrapper function which ensures that provided callback will be + * invoked only once during the specified delay period. + * + * @param {Function} callback - Function to be invoked after the delay period. + * @param {number} delay - Delay after which to invoke callback. + * @returns {Function} + */ + function throttle (callback, delay) { + var leadingCall = false, trailingCall = false, lastCallTime = 0; + /** + * Invokes the original callback function and schedules new invocation if + * the "proxy" was called during current request. + * + * @returns {void} + */ + function resolvePending() { + if (leadingCall) { + leadingCall = false; + callback(); + } + if (trailingCall) { + proxy(); + } + } + /** + * Callback invoked after the specified delay. It will further postpone + * invocation of the original function delegating it to the + * requestAnimationFrame. + * + * @returns {void} + */ + function timeoutCallback() { + requestAnimationFrame$1(resolvePending); + } + /** + * Schedules invocation of the original function. + * + * @returns {void} + */ + function proxy() { + var timeStamp = Date.now(); + if (leadingCall) { + // Reject immediately following calls. + if (timeStamp - lastCallTime < trailingTimeout) { + return; + } + // Schedule new call to be in invoked when the pending one is resolved. + // This is important for "transitions" which never actually start + // immediately so there is a chance that we might miss one if change + // happens amids the pending invocation. + trailingCall = true; + } + else { + leadingCall = true; + trailingCall = false; + setTimeout(timeoutCallback, delay); + } + lastCallTime = timeStamp; + } + return proxy; } - function removeUserSelectStyles(doc - /*: ?Document*/ - ) { - if (!doc) return; + // Minimum delay before invoking the update of observers. + var REFRESH_DELAY = 20; + // A list of substrings of CSS properties used to find transition events that + // might affect dimensions of observed elements. + var transitionKeys = ['top', 'right', 'bottom', 'left', 'width', 'height', 'size', 'weight']; + // Check if MutationObserver is available. + var mutationObserverSupported = typeof MutationObserver !== 'undefined'; + /** + * Singleton controller class which handles updates of ResizeObserver instances. + */ + var ResizeObserverController = /** @class */ (function () { + /** + * Creates a new instance of ResizeObserverController. + * + * @private + */ + function ResizeObserverController() { + /** + * Indicates whether DOM listeners have been added. + * + * @private {boolean} + */ + this.connected_ = false; + /** + * Tells that controller has subscribed for Mutation Events. + * + * @private {boolean} + */ + this.mutationEventsAdded_ = false; + /** + * Keeps reference to the instance of MutationObserver. + * + * @private {MutationObserver} + */ + this.mutationsObserver_ = null; + /** + * A list of connected observers. + * + * @private {Array} + */ + this.observers_ = []; + this.onTransitionEnd_ = this.onTransitionEnd_.bind(this); + this.refresh = throttle(this.refresh.bind(this), REFRESH_DELAY); + } + /** + * Adds observer to observers list. + * + * @param {ResizeObserverSPI} observer - Observer to be added. + * @returns {void} + */ + ResizeObserverController.prototype.addObserver = function (observer) { + if (!~this.observers_.indexOf(observer)) { + this.observers_.push(observer); + } + // Add listeners if they haven't been added yet. + if (!this.connected_) { + this.connect_(); + } + }; + /** + * Removes observer from observers list. + * + * @param {ResizeObserverSPI} observer - Observer to be removed. + * @returns {void} + */ + ResizeObserverController.prototype.removeObserver = function (observer) { + var observers = this.observers_; + var index = observers.indexOf(observer); + // Remove observer if it's present in registry. + if (~index) { + observers.splice(index, 1); + } + // Remove listeners if controller has no connected observers. + if (!observers.length && this.connected_) { + this.disconnect_(); + } + }; + /** + * Invokes the update of observers. It will continue running updates insofar + * it detects changes. + * + * @returns {void} + */ + ResizeObserverController.prototype.refresh = function () { + var changesDetected = this.updateObservers_(); + // Continue running updates if changes have been detected as there might + // be future ones caused by CSS transitions. + if (changesDetected) { + this.refresh(); + } + }; + /** + * Updates every observer from observers list and notifies them of queued + * entries. + * + * @private + * @returns {boolean} Returns "true" if any observer has detected changes in + * dimensions of it's elements. + */ + ResizeObserverController.prototype.updateObservers_ = function () { + // Collect observers that have active observations. + var activeObservers = this.observers_.filter(function (observer) { + return observer.gatherActive(), observer.hasActive(); + }); + // Deliver notifications in a separate cycle in order to avoid any + // collisions between observers, e.g. when multiple instances of + // ResizeObserver are tracking the same element and the callback of one + // of them changes content dimensions of the observed target. Sometimes + // this may result in notifications being blocked for the rest of observers. + activeObservers.forEach(function (observer) { return observer.broadcastActive(); }); + return activeObservers.length > 0; + }; + /** + * Initializes DOM listeners. + * + * @private + * @returns {void} + */ + ResizeObserverController.prototype.connect_ = function () { + // Do nothing if running in a non-browser environment or if listeners + // have been already added. + if (!isBrowser || this.connected_) { + return; + } + // Subscription to the "Transitionend" event is used as a workaround for + // delayed transitions. This way it's possible to capture at least the + // final state of an element. + document.addEventListener('transitionend', this.onTransitionEnd_); + window.addEventListener('resize', this.refresh); + if (mutationObserverSupported) { + this.mutationsObserver_ = new MutationObserver(this.refresh); + this.mutationsObserver_.observe(document, { + attributes: true, + childList: true, + characterData: true, + subtree: true + }); + } + else { + document.addEventListener('DOMSubtreeModified', this.refresh); + this.mutationEventsAdded_ = true; + } + this.connected_ = true; + }; + /** + * Removes DOM listeners. + * + * @private + * @returns {void} + */ + ResizeObserverController.prototype.disconnect_ = function () { + // Do nothing if running in a non-browser environment or if listeners + // have been already removed. + if (!isBrowser || !this.connected_) { + return; + } + document.removeEventListener('transitionend', this.onTransitionEnd_); + window.removeEventListener('resize', this.refresh); + if (this.mutationsObserver_) { + this.mutationsObserver_.disconnect(); + } + if (this.mutationEventsAdded_) { + document.removeEventListener('DOMSubtreeModified', this.refresh); + } + this.mutationsObserver_ = null; + this.mutationEventsAdded_ = false; + this.connected_ = false; + }; + /** + * "Transitionend" event handler. + * + * @private + * @param {TransitionEvent} event + * @returns {void} + */ + ResizeObserverController.prototype.onTransitionEnd_ = function (_a) { + var _b = _a.propertyName, propertyName = _b === void 0 ? '' : _b; + // Detect whether transition may affect dimensions of an element. + var isReflowProperty = transitionKeys.some(function (key) { + return !!~propertyName.indexOf(key); + }); + if (isReflowProperty) { + this.refresh(); + } + }; + /** + * Returns instance of the ResizeObserverController. + * + * @returns {ResizeObserverController} + */ + ResizeObserverController.getInstance = function () { + if (!this.instance_) { + this.instance_ = new ResizeObserverController(); + } + return this.instance_; + }; + /** + * Holds reference to the controller's instance. + * + * @private {ResizeObserverController} + */ + ResizeObserverController.instance_ = null; + return ResizeObserverController; + }()); - try { - if (doc.body) removeClassName(doc.body, 'react-draggable-transparent-selection'); // $FlowIgnore: IE + /** + * Defines non-writable/enumerable properties of the provided target object. + * + * @param {Object} target - Object for which to define properties. + * @param {Object} props - Properties to be defined. + * @returns {Object} Target object. + */ + var defineConfigurable = (function (target, props) { + for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) { + var key = _a[_i]; + Object.defineProperty(target, key, { + value: props[key], + enumerable: false, + writable: false, + configurable: true + }); + } + return target; + }); - if (doc.selection) { - // $FlowIgnore: IE - doc.selection.empty(); - } else { - // Remove selection caused by scroll, unless it's a focused input - // (we use doc.defaultView in case we're in an iframe) - var selection = (doc.defaultView || window).getSelection(); + /** + * Returns the global object associated with provided element. + * + * @param {Object} target + * @returns {Object} + */ + var getWindowOf = (function (target) { + // Assume that the element is an instance of Node, which means that it + // has the "ownerDocument" property from which we can retrieve a + // corresponding global object. + var ownerGlobal = target && target.ownerDocument && target.ownerDocument.defaultView; + // Return the local global object if it's not possible extract one from + // provided element. + return ownerGlobal || global$1; + }); - if (selection && selection.type !== 'Caret') { - selection.removeAllRanges(); - } + // Placeholder of an empty content rectangle. + var emptyRect = createRectInit(0, 0, 0, 0); + /** + * Converts provided string to a number. + * + * @param {number|string} value + * @returns {number} + */ + function toFloat(value) { + return parseFloat(value) || 0; + } + /** + * Extracts borders size from provided styles. + * + * @param {CSSStyleDeclaration} styles + * @param {...string} positions - Borders positions (top, right, ...) + * @returns {number} + */ + function getBordersSize(styles) { + var positions = []; + for (var _i = 1; _i < arguments.length; _i++) { + positions[_i - 1] = arguments[_i]; } - } catch (e) {// probably IE - } + return positions.reduce(function (size, position) { + var value = styles['border-' + position + '-width']; + return size + toFloat(value); + }, 0); + } + /** + * Extracts paddings sizes from provided styles. + * + * @param {CSSStyleDeclaration} styles + * @returns {Object} Paddings box. + */ + function getPaddings(styles) { + var positions = ['top', 'right', 'bottom', 'left']; + var paddings = {}; + for (var _i = 0, positions_1 = positions; _i < positions_1.length; _i++) { + var position = positions_1[_i]; + var value = styles['padding-' + position]; + paddings[position] = toFloat(value); + } + return paddings; + } + /** + * Calculates content rectangle of provided SVG element. + * + * @param {SVGGraphicsElement} target - Element content rectangle of which needs + * to be calculated. + * @returns {DOMRectInit} + */ + function getSVGContentRect(target) { + var bbox = target.getBBox(); + return createRectInit(0, 0, bbox.width, bbox.height); + } + /** + * Calculates content rectangle of provided HTMLElement. + * + * @param {HTMLElement} target - Element for which to calculate the content rectangle. + * @returns {DOMRectInit} + */ + function getHTMLElementContentRect(target) { + // Client width & height properties can't be + // used exclusively as they provide rounded values. + var clientWidth = target.clientWidth, clientHeight = target.clientHeight; + // By this condition we can catch all non-replaced inline, hidden and + // detached elements. Though elements with width & height properties less + // than 0.5 will be discarded as well. + // + // Without it we would need to implement separate methods for each of + // those cases and it's not possible to perform a precise and performance + // effective test for hidden elements. E.g. even jQuery's ':visible' filter + // gives wrong results for elements with width & height less than 0.5. + if (!clientWidth && !clientHeight) { + return emptyRect; + } + var styles = getWindowOf(target).getComputedStyle(target); + var paddings = getPaddings(styles); + var horizPad = paddings.left + paddings.right; + var vertPad = paddings.top + paddings.bottom; + // Computed styles of width & height are being used because they are the + // only dimensions available to JS that contain non-rounded values. It could + // be possible to utilize the getBoundingClientRect if only it's data wasn't + // affected by CSS transformations let alone paddings, borders and scroll bars. + var width = toFloat(styles.width), height = toFloat(styles.height); + // Width & height include paddings and borders when the 'border-box' box + // model is applied (except for IE). + if (styles.boxSizing === 'border-box') { + // Following conditions are required to handle Internet Explorer which + // doesn't include paddings and borders to computed CSS dimensions. + // + // We can say that if CSS dimensions + paddings are equal to the "client" + // properties then it's either IE, and thus we don't need to subtract + // anything, or an element merely doesn't have paddings/borders styles. + if (Math.round(width + horizPad) !== clientWidth) { + width -= getBordersSize(styles, 'left', 'right') + horizPad; + } + if (Math.round(height + vertPad) !== clientHeight) { + height -= getBordersSize(styles, 'top', 'bottom') + vertPad; + } + } + // Following steps can't be applied to the document's root element as its + // client[Width/Height] properties represent viewport area of the window. + // Besides, it's as well not necessary as the itself neither has + // rendered scroll bars nor it can be clipped. + if (!isDocumentElement(target)) { + // In some browsers (only in Firefox, actually) CSS width & height + // include scroll bars size which can be removed at this step as scroll + // bars are the only difference between rounded dimensions + paddings + // and "client" properties, though that is not always true in Chrome. + var vertScrollbar = Math.round(width + horizPad) - clientWidth; + var horizScrollbar = Math.round(height + vertPad) - clientHeight; + // Chrome has a rather weird rounding of "client" properties. + // E.g. for an element with content width of 314.2px it sometimes gives + // the client width of 315px and for the width of 314.7px it may give + // 314px. And it doesn't happen all the time. So just ignore this delta + // as a non-relevant. + if (Math.abs(vertScrollbar) !== 1) { + width -= vertScrollbar; + } + if (Math.abs(horizScrollbar) !== 1) { + height -= horizScrollbar; + } + } + return createRectInit(paddings.left, paddings.top, width, height); + } + /** + * Checks whether provided element is an instance of the SVGGraphicsElement. + * + * @param {Element} target - Element to be checked. + * @returns {boolean} + */ + var isSVGGraphicsElement = (function () { + // Some browsers, namely IE and Edge, don't have the SVGGraphicsElement + // interface. + if (typeof SVGGraphicsElement !== 'undefined') { + return function (target) { return target instanceof getWindowOf(target).SVGGraphicsElement; }; + } + // If it's so, then check that element is at least an instance of the + // SVGElement and that it has the "getBBox" method. + // eslint-disable-next-line no-extra-parens + return function (target) { return (target instanceof getWindowOf(target).SVGElement && + typeof target.getBBox === 'function'); }; + })(); + /** + * Checks whether provided element is a document element (). + * + * @param {Element} target - Element to be checked. + * @returns {boolean} + */ + function isDocumentElement(target) { + return target === getWindowOf(target).document.documentElement; + } + /** + * Calculates an appropriate content rectangle for provided html or svg element. + * + * @param {Element} target - Element content rectangle of which needs to be calculated. + * @returns {DOMRectInit} + */ + function getContentRect(target) { + if (!isBrowser) { + return emptyRect; + } + if (isSVGGraphicsElement(target)) { + return getSVGContentRect(target); + } + return getHTMLElementContentRect(target); + } + /** + * Creates rectangle with an interface of the DOMRectReadOnly. + * Spec: https://drafts.fxtf.org/geometry/#domrectreadonly + * + * @param {DOMRectInit} rectInit - Object with rectangle's x/y coordinates and dimensions. + * @returns {DOMRectReadOnly} + */ + function createReadOnlyRect(_a) { + var x = _a.x, y = _a.y, width = _a.width, height = _a.height; + // If DOMRectReadOnly is available use it as a prototype for the rectangle. + var Constr = typeof DOMRectReadOnly !== 'undefined' ? DOMRectReadOnly : Object; + var rect = Object.create(Constr.prototype); + // Rectangle's properties are not writable and non-enumerable. + defineConfigurable(rect, { + x: x, y: y, width: width, height: height, + top: y, + right: x + width, + bottom: height + y, + left: x + }); + return rect; + } + /** + * Creates DOMRectInit object based on the provided dimensions and the x/y coordinates. + * Spec: https://drafts.fxtf.org/geometry/#dictdef-domrectinit + * + * @param {number} x - X coordinate. + * @param {number} y - Y coordinate. + * @param {number} width - Rectangle's width. + * @param {number} height - Rectangle's height. + * @returns {DOMRectInit} + */ + function createRectInit(x, y, width, height) { + return { x: x, y: y, width: width, height: height }; } - function addClassName(el - /*: HTMLElement*/ - , className - /*: string*/ - ) { - if (el.classList) { - el.classList.add(className); - } else { - if (!el.className.match(new RegExp("(?:^|\\s)".concat(className, "(?!\\S)")))) { - el.className += " ".concat(className); + /** + * Class that is responsible for computations of the content rectangle of + * provided DOM element and for keeping track of it's changes. + */ + var ResizeObservation = /** @class */ (function () { + /** + * Creates an instance of ResizeObservation. + * + * @param {Element} target - Element to be observed. + */ + function ResizeObservation(target) { + /** + * Broadcasted width of content rectangle. + * + * @type {number} + */ + this.broadcastWidth = 0; + /** + * Broadcasted height of content rectangle. + * + * @type {number} + */ + this.broadcastHeight = 0; + /** + * Reference to the last observed content rectangle. + * + * @private {DOMRectInit} + */ + this.contentRect_ = createRectInit(0, 0, 0, 0); + this.target = target; + } + /** + * Updates content rectangle and tells whether it's width or height properties + * have changed since the last broadcast. + * + * @returns {boolean} + */ + ResizeObservation.prototype.isActive = function () { + var rect = getContentRect(this.target); + this.contentRect_ = rect; + return (rect.width !== this.broadcastWidth || + rect.height !== this.broadcastHeight); + }; + /** + * Updates 'broadcastWidth' and 'broadcastHeight' properties with a data + * from the corresponding properties of the last observed content rectangle. + * + * @returns {DOMRectInit} Last observed content rectangle. + */ + ResizeObservation.prototype.broadcastRect = function () { + var rect = this.contentRect_; + this.broadcastWidth = rect.width; + this.broadcastHeight = rect.height; + return rect; + }; + return ResizeObservation; + }()); + + var ResizeObserverEntry = /** @class */ (function () { + /** + * Creates an instance of ResizeObserverEntry. + * + * @param {Element} target - Element that is being observed. + * @param {DOMRectInit} rectInit - Data of the element's content rectangle. + */ + function ResizeObserverEntry(target, rectInit) { + var contentRect = createReadOnlyRect(rectInit); + // According to the specification following properties are not writable + // and are also not enumerable in the native implementation. + // + // Property accessors are not being used as they'd require to define a + // private WeakMap storage which may cause memory leaks in browsers that + // don't support this type of collections. + defineConfigurable(this, { target: target, contentRect: contentRect }); } - } - } - - function removeClassName(el - /*: HTMLElement*/ - , className - /*: string*/ - ) { - if (el.classList) { - el.classList.remove(className); - } else { - el.className = el.className.replace(new RegExp("(?:^|\\s)".concat(className, "(?!\\S)"), 'g'), ''); - } - } - - /***/ }), - /* 177 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { - - "use strict"; - Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); - - - var classCallCheck = function (instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } - }; + return ResizeObserverEntry; + }()); - var createClass = function () { - function defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); + var ResizeObserverSPI = /** @class */ (function () { + /** + * Creates a new instance of ResizeObserver. + * + * @param {ResizeObserverCallback} callback - Callback function that is invoked + * when one of the observed elements changes it's content dimensions. + * @param {ResizeObserverController} controller - Controller instance which + * is responsible for the updates of observer. + * @param {ResizeObserver} callbackCtx - Reference to the public + * ResizeObserver instance which will be passed to callback function. + */ + function ResizeObserverSPI(callback, controller, callbackCtx) { + /** + * Collection of resize observations that have detected changes in dimensions + * of elements. + * + * @private {Array} + */ + this.activeObservations_ = []; + /** + * Registry of the ResizeObservation instances. + * + * @private {Map} + */ + this.observations_ = new MapShim(); + if (typeof callback !== 'function') { + throw new TypeError('The callback provided as parameter 1 is not a function.'); + } + this.callback_ = callback; + this.controller_ = controller; + this.callbackCtx_ = callbackCtx; } - } - - return function (Constructor, protoProps, staticProps) { - if (protoProps) defineProperties(Constructor.prototype, protoProps); - if (staticProps) defineProperties(Constructor, staticProps); - return Constructor; - }; - }(); - - var _extends = Object.assign || function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; + /** + * Starts observing provided element. + * + * @param {Element} target - Element to be observed. + * @returns {void} + */ + ResizeObserverSPI.prototype.observe = function (target) { + if (!arguments.length) { + throw new TypeError('1 argument required, but only 0 present.'); + } + // Do nothing if current environment doesn't have the Element interface. + if (typeof Element === 'undefined' || !(Element instanceof Object)) { + return; + } + if (!(target instanceof getWindowOf(target).Element)) { + throw new TypeError('parameter 1 is not of type "Element".'); + } + var observations = this.observations_; + // Do nothing if element is already being observed. + if (observations.has(target)) { + return; + } + observations.set(target, new ResizeObservation(target)); + this.controller_.addObserver(this); + // Force the update of observations. + this.controller_.refresh(); + }; + /** + * Stops observing provided element. + * + * @param {Element} target - Element to stop observing. + * @returns {void} + */ + ResizeObserverSPI.prototype.unobserve = function (target) { + if (!arguments.length) { + throw new TypeError('1 argument required, but only 0 present.'); + } + // Do nothing if current environment doesn't have the Element interface. + if (typeof Element === 'undefined' || !(Element instanceof Object)) { + return; + } + if (!(target instanceof getWindowOf(target).Element)) { + throw new TypeError('parameter 1 is not of type "Element".'); + } + var observations = this.observations_; + // Do nothing if element is not being observed. + if (!observations.has(target)) { + return; + } + observations.delete(target); + if (!observations.size) { + this.controller_.removeObserver(this); + } + }; + /** + * Stops observing all elements. + * + * @returns {void} + */ + ResizeObserverSPI.prototype.disconnect = function () { + this.clearActive(); + this.observations_.clear(); + this.controller_.removeObserver(this); + }; + /** + * Collects observation instances the associated element of which has changed + * it's content rectangle. + * + * @returns {void} + */ + ResizeObserverSPI.prototype.gatherActive = function () { + var _this = this; + this.clearActive(); + this.observations_.forEach(function (observation) { + if (observation.isActive()) { + _this.activeObservations_.push(observation); + } + }); + }; + /** + * Invokes initial callback function with a list of ResizeObserverEntry + * instances collected from active resize observations. + * + * @returns {void} + */ + ResizeObserverSPI.prototype.broadcastActive = function () { + // Do nothing if observer doesn't have active observations. + if (!this.hasActive()) { + return; + } + var ctx = this.callbackCtx_; + // Create ResizeObserverEntry instance for every active observation. + var entries = this.activeObservations_.map(function (observation) { + return new ResizeObserverEntry(observation.target, observation.broadcastRect()); + }); + this.callback_.call(ctx, entries, ctx); + this.clearActive(); + }; + /** + * Clears the collection of active observations. + * + * @returns {void} + */ + ResizeObserverSPI.prototype.clearActive = function () { + this.activeObservations_.splice(0); + }; + /** + * Tells whether observer has active observations. + * + * @returns {boolean} + */ + ResizeObserverSPI.prototype.hasActive = function () { + return this.activeObservations_.length > 0; + }; + return ResizeObserverSPI; + }()); - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } + // Registry of internal observers. If WeakMap is not available use current shim + // for the Map collection as it has all required methods and because WeakMap + // can't be fully polyfilled anyway. + var observers = typeof WeakMap !== 'undefined' ? new WeakMap() : new MapShim(); + /** + * ResizeObserver API. Encapsulates the ResizeObserver SPI implementation + * exposing only those methods and properties that are defined in the spec. + */ + var ResizeObserver = /** @class */ (function () { + /** + * Creates a new instance of ResizeObserver. + * + * @param {ResizeObserverCallback} callback - Callback that is invoked when + * dimensions of the observed elements change. + */ + function ResizeObserver(callback) { + if (!(this instanceof ResizeObserver)) { + throw new TypeError('Cannot call a class as a function.'); + } + if (!arguments.length) { + throw new TypeError('1 argument required, but only 0 present.'); + } + var controller = ResizeObserverController.getInstance(); + var observer = new ResizeObserverSPI(callback, controller, this); + observers.set(this, observer); } - } - - return target; - }; - - var inherits = function (subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); - } + return ResizeObserver; + }()); + // Expose public methods of ResizeObserver. + [ + 'observe', + 'unobserve', + 'disconnect' + ].forEach(function (method) { + ResizeObserver.prototype[method] = function () { + var _a; + return (_a = observers.get(this))[method].apply(_a, arguments); + }; + }); - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - enumerable: false, - writable: true, - configurable: true + var index = (function () { + // Export existing implementation if available. + if (typeof global$1.ResizeObserver !== 'undefined') { + return global$1.ResizeObserver; } - }); - if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; - }; - - var possibleConstructorReturn = function (self, call) { - if (!self) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - - return call && (typeof call === "object" || typeof call === "function") ? call : self; - }; + return ResizeObserver; + })(); - var styles = { - base: { - position: 'absolute', - userSelect: 'none', - MsUserSelect: 'none' - }, - top: { - width: '100%', - height: '10px', - top: '-5px', - left: '0px', - cursor: 'row-resize' - }, - right: { - width: '10px', - height: '100%', - top: '0px', - right: '-5px', - cursor: 'col-resize' - }, - bottom: { - width: '100%', - height: '10px', - bottom: '-5px', - left: '0px', - cursor: 'row-resize' - }, - left: { - width: '10px', - height: '100%', - top: '0px', - left: '-5px', - cursor: 'col-resize' - }, - topRight: { - width: '20px', - height: '20px', - position: 'absolute', - right: '-10px', - top: '-10px', - cursor: 'ne-resize' - }, - bottomRight: { - width: '20px', - height: '20px', - position: 'absolute', - right: '-10px', - bottom: '-10px', - cursor: 'se-resize' - }, - bottomLeft: { - width: '20px', - height: '20px', - position: 'absolute', - left: '-10px', - bottom: '-10px', - cursor: 'sw-resize' - }, - topLeft: { - width: '20px', - height: '20px', - position: 'absolute', - left: '-10px', - top: '-10px', - cursor: 'nw-resize' - } - }; + /* harmony default export */ __webpack_exports__["default"] = (index); - var Resizer = (function (props) { - return Object(__WEBPACK_IMPORTED_MODULE_0_react__["createElement"])( - 'div', - { - className: props.className, - style: _extends({}, styles.base, styles[props.direction], props.replaceStyles || {}), - onMouseDown: function onMouseDown(e) { - props.onResizeStart(e, props.direction); - }, - onTouchStart: function onTouchStart(e) { - props.onResizeStart(e, props.direction); - } - }, - props.children - ); - }); + /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(35))) - var userSelectNone = { - userSelect: 'none', - MozUserSelect: 'none', - WebkitUserSelect: 'none', - MsUserSelect: 'none' - }; + /***/ }), + /* 66 */ + /***/ (function(module, exports) { - var userSelectAuto = { - userSelect: 'auto', - MozUserSelect: 'auto', - WebkitUserSelect: 'auto', - MsUserSelect: 'auto' + module.exports = function (bitmap, value) { + return { + enumerable: !(bitmap & 1), + configurable: !(bitmap & 2), + writable: !(bitmap & 4), + value: value + }; }; - var clamp = function clamp(n, min, max) { - return Math.max(Math.min(n, max), min); - }; - var snap = function snap(n, size) { - return Math.round(n / size) * size; - }; - var findClosestSnap = function findClosestSnap(n, snapArray) { - return snapArray.reduce(function (prev, curr) { - return Math.abs(curr - n) < Math.abs(prev - n) ? curr : prev; - }); - }; + /***/ }), + /* 67 */ + /***/ (function(module, exports, __webpack_require__) { - var endsWith = function endsWith(str, searchStr) { - return str.substr(str.length - searchStr.length, searchStr.length) === searchStr; - }; + // 19.1.2.14 / 15.2.3.14 Object.keys(O) + var $keys = __webpack_require__(216); + var enumBugKeys = __webpack_require__(127); - var getStringSize = function getStringSize(n) { - if (n.toString() === 'auto') return n.toString(); - if (endsWith(n.toString(), 'px')) return n.toString(); - if (endsWith(n.toString(), '%')) return n.toString(); - if (endsWith(n.toString(), 'vh')) return n.toString(); - if (endsWith(n.toString(), 'vw')) return n.toString(); - if (endsWith(n.toString(), 'vmax')) return n.toString(); - if (endsWith(n.toString(), 'vmin')) return n.toString(); - return n + 'px'; + module.exports = Object.keys || function keys(O) { + return $keys(O, enumBugKeys); }; - var definedProps = ['style', 'className', 'grid', 'snap', 'bounds', 'size', 'defaultSize', 'minWidth', 'minHeight', 'maxWidth', 'maxHeight', 'lockAspectRatio', 'lockAspectRatioExtraWidth', 'lockAspectRatioExtraHeight', 'enable', 'handleStyles', 'handleClasses', 'handleWrapperStyle', 'handleWrapperClass', 'children', 'onResizeStart', 'onResize', 'onResizeStop', 'handleComponent', 'scale', 'resizeRatio']; - var baseClassName = '__resizable_base__'; + /***/ }), + /* 68 */ + /***/ (function(module, exports, __webpack_require__) { - var Resizable = function (_React$Component) { - inherits(Resizable, _React$Component); + // 7.1.13 ToObject(argument) + var defined = __webpack_require__(123); + module.exports = function (it) { + return Object(defined(it)); + }; - function Resizable(props) { - classCallCheck(this, Resizable); - var _this = possibleConstructorReturn(this, (Resizable.__proto__ || Object.getPrototypeOf(Resizable)).call(this, props)); + /***/ }), + /* 69 */ + /***/ (function(module, exports) { - _this.state = { - isResizing: false, - resizeCursor: 'auto', - width: typeof (_this.propsSize && _this.propsSize.width) === 'undefined' ? 'auto' : _this.propsSize && _this.propsSize.width, - height: typeof (_this.propsSize && _this.propsSize.height) === 'undefined' ? 'auto' : _this.propsSize && _this.propsSize.height, - direction: 'right', - original: { - x: 0, - y: 0, - width: 0, - height: 0 - } - }; + module.exports = {}; - _this.updateExtendsProps(props); - _this.onResizeStart = _this.onResizeStart.bind(_this); - _this.onMouseMove = _this.onMouseMove.bind(_this); - _this.onMouseUp = _this.onMouseUp.bind(_this); - if (typeof window !== 'undefined') { - window.addEventListener('mouseup', _this.onMouseUp); - window.addEventListener('mousemove', _this.onMouseMove); - window.addEventListener('mouseleave', _this.onMouseUp); - window.addEventListener('touchmove', _this.onMouseMove); - window.addEventListener('touchend', _this.onMouseUp); - } - return _this; - } + /***/ }), + /* 70 */ + /***/ (function(module, exports, __webpack_require__) { - createClass(Resizable, [{ - key: 'updateExtendsProps', - value: function updateExtendsProps(props) { - this.extendsProps = Object.keys(props).reduce(function (acc, key) { - if (definedProps.indexOf(key) !== -1) return acc; - acc[key] = props[key]; - return acc; - }, {}); - } - }, { - key: 'getParentSize', - value: function getParentSize() { - var base = this.base; + "use strict"; + /** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + */ - if (!base) return { width: window.innerWidth, height: window.innerHeight }; - // INFO: To calculate parent width with flex layout - var wrapChanged = false; - var wrap = this.parentNode.style.flexWrap; - var minWidth = base.style.minWidth; - if (wrap !== 'wrap') { - wrapChanged = true; - this.parentNode.style.flexWrap = 'wrap'; - // HACK: Use relative to get parent padding size - } - base.style.position = 'relative'; - base.style.minWidth = '100%'; - var size = { - width: base.offsetWidth, - height: base.offsetHeight - }; - base.style.position = 'absolute'; - if (wrapChanged) this.parentNode.style.flexWrap = wrap; - base.style.minWidth = minWidth; - return size; - } - }, { - key: 'componentDidMount', - value: function componentDidMount() { - var size = this.size; - this.setState({ - width: this.state.width || size.width, - height: this.state.height || size.height - }); - var parent = this.parentNode; - if (!(parent instanceof HTMLElement)) return; - if (this.base) return; - var element = document.createElement('div'); - element.style.width = '100%'; - element.style.height = '100%'; - element.style.position = 'absolute'; - element.style.transform = 'scale(0, 0)'; - element.style.left = '0'; - element.style.flex = '0'; - if (element.classList) { - element.classList.add(baseClassName); - } else { - element.className += baseClassName; - } - parent.appendChild(element); - } - }, { - key: 'componentWillReceiveProps', - value: function componentWillReceiveProps(next) { - this.updateExtendsProps(next); - } - }, { - key: 'componentWillUnmount', - value: function componentWillUnmount() { - if (typeof window !== 'undefined') { - window.removeEventListener('mouseup', this.onMouseUp); - window.removeEventListener('mousemove', this.onMouseMove); - window.removeEventListener('mouseleave', this.onMouseUp); - window.removeEventListener('touchmove', this.onMouseMove); - window.removeEventListener('touchend', this.onMouseUp); - var parent = this.parentNode; - var base = this.base; - if (!base || !parent) return; - if (!(parent instanceof HTMLElement) || !(base instanceof Node)) return; - parent.removeChild(base); - } - } - }, { - key: 'calculateNewSize', - value: function calculateNewSize(newSize, kind) { - var propsSize = this.propsSize && this.propsSize[kind]; - return this.state[kind] === 'auto' && this.state.original[kind] === newSize && (typeof propsSize === 'undefined' || propsSize === 'auto') ? 'auto' : newSize; - } - }, { - key: 'onResizeStart', - value: function onResizeStart(event, direction) { - var clientX = 0; - var clientY = 0; - if (event.nativeEvent instanceof MouseEvent) { - clientX = event.nativeEvent.clientX; - clientY = event.nativeEvent.clientY; + var React = __webpack_require__(0); + var factory = __webpack_require__(609); - // When user click with right button the resize is stuck in resizing mode - // until users clicks again, dont continue if right click is used. - // HACK: MouseEvent does not have `which` from flow-bin v0.68. - if (event.nativeEvent.which === 3) { - return; - } - } else if (event.nativeEvent instanceof TouchEvent) { - clientX = event.nativeEvent.touches[0].clientX; - clientY = event.nativeEvent.touches[0].clientY; - } - if (this.props.onResizeStart) { - this.props.onResizeStart(event, direction, this.resizable); - } + if (typeof React === 'undefined') { + throw Error( + 'create-react-class could not find the React object. If you are using script tags, ' + + 'make sure that React is being loaded before create-react-class.' + ); + } - // Fix #168 - if (this.props.size) { - if (typeof this.props.size.height !== 'undefined' && this.props.size.height !== this.state.height) { - this.setState({ height: this.props.size.height }); - } - if (typeof this.props.size.width !== 'undefined' && this.props.size.width !== this.state.width) { - this.setState({ width: this.props.size.width }); - } - } + // Hack to grab NoopUpdateQueue from isomorphic React + var ReactNoopUpdateQueue = new React.Component().updater; - this.setState({ - original: { - x: clientX, - y: clientY, - width: this.size.width, - height: this.size.height - }, - isResizing: true, - resizeCursor: window.getComputedStyle(event.target).cursor, - direction: direction - }); - } - }, { - key: 'onMouseMove', - value: function onMouseMove(event) { - if (!this.state.isResizing) return; - var clientX = event instanceof MouseEvent ? event.clientX : event.touches[0].clientX; - var clientY = event instanceof MouseEvent ? event.clientY : event.touches[0].clientY; - var _state = this.state, - direction = _state.direction, - original = _state.original, - width = _state.width, - height = _state.height; - var _props = this.props, - lockAspectRatio = _props.lockAspectRatio, - lockAspectRatioExtraHeight = _props.lockAspectRatioExtraHeight, - lockAspectRatioExtraWidth = _props.lockAspectRatioExtraWidth; + module.exports = factory( + React.Component, + React.isValidElement, + ReactNoopUpdateQueue + ); - var scale = this.props.scale || 1; - var _props2 = this.props, - maxWidth = _props2.maxWidth, - maxHeight = _props2.maxHeight, - minWidth = _props2.minWidth, - minHeight = _props2.minHeight; - var resizeRatio = this.props.resizeRatio || 1; + /***/ }), + /* 71 */ + /***/ (function(module, exports, __webpack_require__) { - // TODO: refactor - var parentSize = this.getParentSize(); - if (maxWidth && typeof maxWidth === 'string' && endsWith(maxWidth, '%')) { - var _ratio = Number(maxWidth.replace('%', '')) / 100; - maxWidth = parentSize.width * _ratio; - } - if (maxHeight && typeof maxHeight === 'string' && endsWith(maxHeight, '%')) { - var _ratio2 = Number(maxHeight.replace('%', '')) / 100; - maxHeight = parentSize.height * _ratio2; - } - if (minWidth && typeof minWidth === 'string' && endsWith(minWidth, '%')) { - var _ratio3 = Number(minWidth.replace('%', '')) / 100; - minWidth = parentSize.width * _ratio3; - } - if (minHeight && typeof minHeight === 'string' && endsWith(minHeight, '%')) { - var _ratio4 = Number(minHeight.replace('%', '')) / 100; - minHeight = parentSize.height * _ratio4; - } - maxWidth = typeof maxWidth === 'undefined' ? undefined : Number(maxWidth); - maxHeight = typeof maxHeight === 'undefined' ? undefined : Number(maxHeight); - minWidth = typeof minWidth === 'undefined' ? undefined : Number(minWidth); - minHeight = typeof minHeight === 'undefined' ? undefined : Number(minHeight); + var freeGlobal = __webpack_require__(639); - var ratio = typeof lockAspectRatio === 'number' ? lockAspectRatio : original.width / original.height; - var newWidth = original.width; - var newHeight = original.height; - if (/right/i.test(direction)) { - newWidth = original.width + (clientX - original.x) * resizeRatio / scale; - if (lockAspectRatio) newHeight = (newWidth - lockAspectRatioExtraWidth) / ratio + lockAspectRatioExtraHeight; - } - if (/left/i.test(direction)) { - newWidth = original.width - (clientX - original.x) * resizeRatio / scale; - if (lockAspectRatio) newHeight = (newWidth - lockAspectRatioExtraWidth) / ratio + lockAspectRatioExtraHeight; - } - if (/bottom/i.test(direction)) { - newHeight = original.height + (clientY - original.y) * resizeRatio / scale; - if (lockAspectRatio) newWidth = (newHeight - lockAspectRatioExtraHeight) * ratio + lockAspectRatioExtraWidth; - } - if (/top/i.test(direction)) { - newHeight = original.height - (clientY - original.y) * resizeRatio / scale; - if (lockAspectRatio) newWidth = (newHeight - lockAspectRatioExtraHeight) * ratio + lockAspectRatioExtraWidth; - } + /** Detect free variable `self`. */ + var freeSelf = typeof self == 'object' && self && self.Object === Object && self; - if (this.props.bounds === 'parent') { - var parent = this.parentNode; - if (parent instanceof HTMLElement) { - var parentRect = parent.getBoundingClientRect(); - var parentLeft = parentRect.left; - var parentTop = parentRect.top; + /** Used as a reference to the global object. */ + var root = freeGlobal || freeSelf || Function('return this')(); - var _resizable$getBoundin = this.resizable.getBoundingClientRect(), - _left = _resizable$getBoundin.left, - _top = _resizable$getBoundin.top; + module.exports = root; - var boundWidth = parent.offsetWidth + (parentLeft - _left); - var boundHeight = parent.offsetHeight + (parentTop - _top); - maxWidth = maxWidth && maxWidth < boundWidth ? maxWidth : boundWidth; - maxHeight = maxHeight && maxHeight < boundHeight ? maxHeight : boundHeight; - } - } else if (this.props.bounds === 'window') { - if (typeof window !== 'undefined') { - var _resizable$getBoundin2 = this.resizable.getBoundingClientRect(), - _left2 = _resizable$getBoundin2.left, - _top2 = _resizable$getBoundin2.top; - var _boundWidth = window.innerWidth - _left2; - var _boundHeight = window.innerHeight - _top2; - maxWidth = maxWidth && maxWidth < _boundWidth ? maxWidth : _boundWidth; - maxHeight = maxHeight && maxHeight < _boundHeight ? maxHeight : _boundHeight; - } - } else if (this.props.bounds instanceof HTMLElement) { - var targetRect = this.props.bounds.getBoundingClientRect(); - var targetLeft = targetRect.left; - var targetTop = targetRect.top; + /***/ }), + /* 72 */ + /***/ (function(module, exports) { - var _resizable$getBoundin3 = this.resizable.getBoundingClientRect(), - _left3 = _resizable$getBoundin3.left, - _top3 = _resizable$getBoundin3.top; + /** + * Checks if `value` is the + * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) + * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an object, else `false`. + * @example + * + * _.isObject({}); + * // => true + * + * _.isObject([1, 2, 3]); + * // => true + * + * _.isObject(_.noop); + * // => true + * + * _.isObject(null); + * // => false + */ + function isObject(value) { + var type = typeof value; + return value != null && (type == 'object' || type == 'function'); + } - if (!(this.props.bounds instanceof HTMLElement)) return; - var _boundWidth2 = this.props.bounds.offsetWidth + (targetLeft - _left3); - var _boundHeight2 = this.props.bounds.offsetHeight + (targetTop - _top3); - maxWidth = maxWidth && maxWidth < _boundWidth2 ? maxWidth : _boundWidth2; - maxHeight = maxHeight && maxHeight < _boundHeight2 ? maxHeight : _boundHeight2; - } + module.exports = isObject; - var computedMinWidth = typeof minWidth === 'undefined' ? 10 : minWidth; - var computedMaxWidth = typeof maxWidth === 'undefined' || maxWidth < 0 ? newWidth : maxWidth; - var computedMinHeight = typeof minHeight === 'undefined' ? 10 : minHeight; - var computedMaxHeight = typeof maxHeight === 'undefined' || maxHeight < 0 ? newHeight : maxHeight; - if (lockAspectRatio) { - var extraMinWidth = (computedMinHeight - lockAspectRatioExtraHeight) * ratio + lockAspectRatioExtraWidth; - var extraMaxWidth = (computedMaxHeight - lockAspectRatioExtraHeight) * ratio + lockAspectRatioExtraWidth; - var extraMinHeight = (computedMinWidth - lockAspectRatioExtraWidth) / ratio + lockAspectRatioExtraHeight; - var extraMaxHeight = (computedMaxWidth - lockAspectRatioExtraWidth) / ratio + lockAspectRatioExtraHeight; - var lockedMinWidth = Math.max(computedMinWidth, extraMinWidth); - var lockedMaxWidth = Math.min(computedMaxWidth, extraMaxWidth); - var lockedMinHeight = Math.max(computedMinHeight, extraMinHeight); - var lockedMaxHeight = Math.min(computedMaxHeight, extraMaxHeight); - newWidth = clamp(newWidth, lockedMinWidth, lockedMaxWidth); - newHeight = clamp(newHeight, lockedMinHeight, lockedMaxHeight); - } else { - newWidth = clamp(newWidth, computedMinWidth, computedMaxWidth); - newHeight = clamp(newHeight, computedMinHeight, computedMaxHeight); - } - if (this.props.grid) { - newWidth = snap(newWidth, this.props.grid[0]); - } - if (this.props.grid) { - newHeight = snap(newHeight, this.props.grid[1]); - } + /***/ }), + /* 73 */ + /***/ (function(module, exports) { - if (this.props.snap && this.props.snap.x) { - newWidth = findClosestSnap(newWidth, this.props.snap.x); - } - if (this.props.snap && this.props.snap.y) { - newHeight = findClosestSnap(newHeight, this.props.snap.y); - } + // - var delta = { - width: newWidth - original.width, - height: newHeight - original.height - }; + module.exports = function shallowEqual(objA, objB, compare, compareContext) { + var ret = compare ? compare.call(compareContext, objA, objB) : void 0; - if (width && typeof width === 'string' && endsWith(width, '%')) { - var percent = newWidth / parentSize.width * 100; - newWidth = percent + '%'; - } + if (ret !== void 0) { + return !!ret; + } - if (height && typeof height === 'string' && endsWith(height, '%')) { - var _percent = newHeight / parentSize.height * 100; - newHeight = _percent + '%'; - } + if (objA === objB) { + return true; + } - this.setState({ - width: this.calculateNewSize(newWidth, 'width'), - height: this.calculateNewSize(newHeight, 'height') - }); + if (typeof objA !== "object" || !objA || typeof objB !== "object" || !objB) { + return false; + } - if (this.props.onResize) { - this.props.onResize(event, direction, this.resizable, delta); - } - } - }, { - key: 'onMouseUp', - value: function onMouseUp(event) { - var _state2 = this.state, - isResizing = _state2.isResizing, - direction = _state2.direction, - original = _state2.original; + var keysA = Object.keys(objA); + var keysB = Object.keys(objB); - if (!isResizing) return; - var delta = { - width: this.size.width - original.width, - height: this.size.height - original.height - }; - if (this.props.onResizeStop) { - this.props.onResizeStop(event, direction, this.resizable, delta); - } - if (this.props.size) { - this.setState(this.props.size); - } - this.setState({ isResizing: false, resizeCursor: 'auto' }); - } - }, { - key: 'updateSize', - value: function updateSize(size) { - this.setState({ width: size.width, height: size.height }); - } - }, { - key: 'renderResizer', - value: function renderResizer() { - var _this2 = this; + if (keysA.length !== keysB.length) { + return false; + } - var _props3 = this.props, - enable = _props3.enable, - handleStyles = _props3.handleStyles, - handleClasses = _props3.handleClasses, - handleWrapperStyle = _props3.handleWrapperStyle, - handleWrapperClass = _props3.handleWrapperClass, - handleComponent = _props3.handleComponent; + var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB); - if (!enable) return null; - var resizers = Object.keys(enable).map(function (dir) { - if (enable[dir] !== false) { - return Object(__WEBPACK_IMPORTED_MODULE_0_react__["createElement"])( - Resizer, - { - key: dir, - direction: dir, - onResizeStart: _this2.onResizeStart, - replaceStyles: handleStyles && handleStyles[dir], - className: handleClasses && handleClasses[dir] - }, - handleComponent && handleComponent[dir] ? Object(__WEBPACK_IMPORTED_MODULE_0_react__["createElement"])(handleComponent[dir]) : null - ); - } - return null; - }); - // #93 Wrap the resize box in span (will not break 100% width/height) - return Object(__WEBPACK_IMPORTED_MODULE_0_react__["createElement"])( - 'span', - { className: handleWrapperClass, style: handleWrapperStyle }, - resizers - ); - } - }, { - key: 'render', - value: function render() { - var _this3 = this; + // Test for A's keys different from B. + for (var idx = 0; idx < keysA.length; idx++) { + var key = keysA[idx]; - var userSelect = this.state.isResizing ? userSelectNone : userSelectAuto; - return Object(__WEBPACK_IMPORTED_MODULE_0_react__["createElement"])( - 'div', - _extends({ - ref: function ref(c) { - if (c) { - _this3.resizable = c; - } - }, - style: _extends({ - position: 'relative' - }, userSelect, this.props.style, this.sizeStyle, { - maxWidth: this.props.maxWidth, - maxHeight: this.props.maxHeight, - minWidth: this.props.minWidth, - minHeight: this.props.minHeight, - boxSizing: 'border-box' - }), - className: this.props.className - }, this.extendsProps), - this.state.isResizing && Object(__WEBPACK_IMPORTED_MODULE_0_react__["createElement"])('div', { - style: { - height: '100%', - width: '100%', - backgroundColor: 'rgba(0,0,0,0)', - cursor: '' + (this.state.resizeCursor || 'auto'), - opacity: '0', - position: 'fixed', - zIndex: '9999', - top: '0', - left: '0', - bottom: '0', - right: '0' - } - }), - this.props.children, - this.renderResizer() - ); - } - }, { - key: 'parentNode', - get: function get$$1() { - return this.resizable.parentNode; - } - }, { - key: 'propsSize', - get: function get$$1() { - return this.props.size || this.props.defaultSize; - } - }, { - key: 'base', - get: function get$$1() { - var parent = this.parentNode; - if (!parent) return undefined; - var children = [].slice.call(parent.children); - for (var i = 0; i < children.length; i += 1) { - var n = children[i]; - if (n instanceof HTMLElement) { - if (n.classList.contains(baseClassName)) { - return n; - } - } - } - return undefined; - } - }, { - key: 'size', - get: function get$$1() { - var width = 0; - var height = 0; - if (typeof window !== 'undefined') { - var orgWidth = this.resizable.offsetWidth; - var orgHeight = this.resizable.offsetHeight; - // HACK: Set position `relative` to get parent size. - // This is because when re-resizable set `absolute`, I can not get base width correctly. - var orgPosition = this.resizable.style.position; - if (orgPosition !== 'relative') { - this.resizable.style.position = 'relative'; - } - // INFO: Use original width or height if set auto. - width = this.resizable.style.width !== 'auto' ? this.resizable.offsetWidth : orgWidth; - height = this.resizable.style.height !== 'auto' ? this.resizable.offsetHeight : orgHeight; - // Restore original position - this.resizable.style.position = orgPosition; - } - return { width: width, height: height }; + if (!bHasOwnProperty(key)) { + return false; } - }, { - key: 'sizeStyle', - get: function get$$1() { - var _this4 = this; - var size = this.props.size; + var valueA = objA[key]; + var valueB = objB[key]; - var getSize = function getSize(key) { - if (typeof _this4.state[key] === 'undefined' || _this4.state[key] === 'auto') return 'auto'; - if (_this4.propsSize && _this4.propsSize[key] && endsWith(_this4.propsSize[key].toString(), '%')) { - if (endsWith(_this4.state[key].toString(), '%')) return _this4.state[key].toString(); - var parentSize = _this4.getParentSize(); - var value = Number(_this4.state[key].toString().replace('px', '')); - var percent = value / parentSize[key] * 100; - return percent + '%'; - } - return getStringSize(_this4.state[key]); - }; - var width = size && typeof size.width !== 'undefined' && !this.state.isResizing ? getStringSize(size.width) : getSize('width'); - var height = size && typeof size.height !== 'undefined' && !this.state.isResizing ? getStringSize(size.height) : getSize('height'); - return { width: width, height: height }; + ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0; + + if (ret === false || (ret === void 0 && valueA !== valueB)) { + return false; } - }]); - return Resizable; - }(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]); + } - Resizable.defaultProps = { - onResizeStart: function onResizeStart() {}, - onResize: function onResize() {}, - onResizeStop: function onResizeStop() {}, - enable: { - top: true, - right: true, - bottom: true, - left: true, - topRight: true, - bottomRight: true, - bottomLeft: true, - topLeft: true - }, - style: {}, - grid: [1, 1], - lockAspectRatio: false, - lockAspectRatioExtraWidth: 0, - lockAspectRatioExtraHeight: 0, - scale: 1, - resizeRatio: 1 + return true; }; - /* harmony default export */ __webpack_exports__["default"] = (Resizable); - /***/ }), - /* 178 */ - /***/ (function(module, exports, __webpack_require__) { + /* 74 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; + Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(8); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(7); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(9); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(10); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react__ = __webpack_require__(0); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types__ = __webpack_require__(1); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_prop_types__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_dom__ = __webpack_require__(3); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react_dom__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react_lifecycles_compat__ = __webpack_require__(12); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_rc_util_es_Dom_contains__ = __webpack_require__(143); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_rc_util_es_Dom_addEventListener__ = __webpack_require__(144); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_rc_util_es_ContainerRender__ = __webpack_require__(254); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_rc_util_es_Portal__ = __webpack_require__(255); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_classnames__ = __webpack_require__(2); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_12_classnames__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__utils__ = __webpack_require__(256); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__Popup__ = __webpack_require__(801); - exports.__esModule = true; - exports.default = createChainableTypeChecker; - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - // Mostly taken from ReactPropTypes. - /* This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ - function createChainableTypeChecker(validate) { - function checkType(isRequired, props, propName, componentName, location, propFullName) { - var componentNameSafe = componentName || '<>'; - var propFullNameSafe = propFullName || propName; - if (props[propName] == null) { - if (isRequired) { - return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); - } - return null; - } - for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { - args[_key - 6] = arguments[_key]; - } - return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); - } - var chainedCheckType = checkType.bind(null, false); - chainedCheckType.isRequired = checkType.bind(null, true); - return chainedCheckType; - } - /***/ }), - /* 179 */ - /***/ (function(module, exports, __webpack_require__) { - "use strict"; - exports.__esModule = true; - exports.default = createChainableTypeChecker; - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - // Mostly taken from ReactPropTypes. - /* This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ + function noop() {} - function createChainableTypeChecker(validate) { - function checkType(isRequired, props, propName, componentName, location, propFullName) { - var componentNameSafe = componentName || '<>'; - var propFullNameSafe = propFullName || propName; + function returnEmptyString() { + return ''; + } - if (props[propName] == null) { - if (isRequired) { - return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); - } + function returnDocument() { + return window.document; + } - return null; - } + var ALL_HANDLERS = ['onClick', 'onMouseDown', 'onTouchStart', 'onMouseEnter', 'onMouseLeave', 'onFocus', 'onBlur', 'onContextMenu']; - for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { - args[_key - 6] = arguments[_key]; - } + var IS_REACT_16 = !!__WEBPACK_IMPORTED_MODULE_6_react_dom__["createPortal"]; - return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); - } + var contextTypes = { + rcTrigger: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.shape({ + onPopupMouseDown: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func + }) + }; - var chainedCheckType = checkType.bind(null, false); - chainedCheckType.isRequired = checkType.bind(null, true); + var Trigger = function (_React$Component) { + __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default()(Trigger, _React$Component); - return chainedCheckType; - } + function Trigger(props) { + __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, Trigger); - /***/ }), - /* 180 */ - /***/ (function(module, exports, __webpack_require__) { + var _this = __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.call(this, props)); - "use strict"; + _initialiseProps.call(_this); + var popupVisible = void 0; + if ('popupVisible' in props) { + popupVisible = !!props.popupVisible; + } else { + popupVisible = !!props.defaultPopupVisible; + } - exports.__esModule = true; - exports.default = createChainableTypeChecker; - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ + _this.state = { + prevPopupVisible: popupVisible, + popupVisible: popupVisible + }; - // Mostly taken from ReactPropTypes. + ALL_HANDLERS.forEach(function (h) { + _this['fire' + h] = function (e) { + _this.fireEvents(h, e); + }; + }); + return _this; + } - /* This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ + Trigger.prototype.getChildContext = function getChildContext() { + return { + rcTrigger: { + onPopupMouseDown: this.onPopupMouseDown + } + }; + }; - function createChainableTypeChecker(validate) { - function checkType(isRequired, props, propName, componentName, location, propFullName) { - var componentNameSafe = componentName || '<>'; - var propFullNameSafe = propFullName || propName; + Trigger.prototype.componentDidMount = function componentDidMount() { + this.componentDidUpdate({}, { + popupVisible: this.state.popupVisible + }); + }; - if (props[propName] == null) { - if (isRequired) { - return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); + Trigger.prototype.componentDidUpdate = function componentDidUpdate(_, prevState) { + var props = this.props; + var state = this.state; + var triggerAfterPopupVisibleChange = function triggerAfterPopupVisibleChange() { + if (prevState.popupVisible !== state.popupVisible) { + props.afterPopupVisibleChange(state.popupVisible); } - - return null; + }; + if (!IS_REACT_16) { + this.renderComponent(null, triggerAfterPopupVisibleChange); } - for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { - args[_key - 6] = arguments[_key]; + // We must listen to `mousedown` or `touchstart`, edge case: + // https://github.com/ant-design/ant-design/issues/5804 + // https://github.com/react-component/calendar/issues/250 + // https://github.com/react-component/trigger/issues/50 + if (state.popupVisible) { + var currentDocument = void 0; + if (!this.clickOutsideHandler && (this.isClickToHide() || this.isContextMenuToShow())) { + currentDocument = props.getDocument(); + this.clickOutsideHandler = Object(__WEBPACK_IMPORTED_MODULE_9_rc_util_es_Dom_addEventListener__["a" /* default */])(currentDocument, 'mousedown', this.onDocumentClick); + } + // always hide on mobile + if (!this.touchOutsideHandler) { + currentDocument = currentDocument || props.getDocument(); + this.touchOutsideHandler = Object(__WEBPACK_IMPORTED_MODULE_9_rc_util_es_Dom_addEventListener__["a" /* default */])(currentDocument, 'touchstart', this.onDocumentClick); + } + // close popup when trigger type contains 'onContextMenu' and document is scrolling. + if (!this.contextMenuOutsideHandler1 && this.isContextMenuToShow()) { + currentDocument = currentDocument || props.getDocument(); + this.contextMenuOutsideHandler1 = Object(__WEBPACK_IMPORTED_MODULE_9_rc_util_es_Dom_addEventListener__["a" /* default */])(currentDocument, 'scroll', this.onContextMenuClose); + } + // close popup when trigger type contains 'onContextMenu' and window is blur. + if (!this.contextMenuOutsideHandler2 && this.isContextMenuToShow()) { + this.contextMenuOutsideHandler2 = Object(__WEBPACK_IMPORTED_MODULE_9_rc_util_es_Dom_addEventListener__["a" /* default */])(window, 'blur', this.onContextMenuClose); + } + return; } - return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); - } + this.clearOutsideHandler(); + }; - var chainedCheckType = checkType.bind(null, false); - chainedCheckType.isRequired = checkType.bind(null, true); + Trigger.prototype.componentWillUnmount = function componentWillUnmount() { + this.clearDelayTimer(); + this.clearOutsideHandler(); + clearTimeout(this.mouseDownTimeout); + }; - return chainedCheckType; - } + Trigger.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) { + var popupVisible = _ref.popupVisible; - /***/ }), - /* 181 */ - /***/ (function(module, exports, __webpack_require__) { + var newState = {}; - "use strict"; + if (popupVisible !== undefined && prevState.popupVisible !== popupVisible) { + newState.popupVisible = popupVisible; + newState.prevPopupVisible = prevState.popupVisible; + } + return newState; + }; - module.exports = { - 'lang': 'zh-cn', - 'resetSettings': '还原设置', - 'include': '包含', - 'exclusive': '不包含', - 'equal': '等于', - 'unequal': '不等于', - 'begin': '以开始', - 'end': '以结尾', - 'greater_than': '大于', - 'great_than_equal_to': '大于等于', - 'less_than': '小于', - 'less_than_equal_to': '小于等于', - 'be_equal_to': '等于', - 'not_equal_to': '不等于', - "no_data": '暂无数据', - "bool_true": "是", - "bool_false": "否", - 'en-us': { - 'resetSettings': 'Reset', - 'include': 'Include', - 'exclusive': 'Not include', - 'equal': 'Equal to', - 'unequal': 'Not equal to', - 'begin': 'Begin with', - 'end': 'End with', - 'greater_than': 'Greater than', - 'great_than_equal_to': 'Greater than or equal to', - 'less_than': 'Less than', - 'less_than_equal_to': 'Less than or equal to', - 'be_equal_to': 'Equal to', - 'not_equal_to': 'Not equal to', - "no_data": 'No data', - "bool_true": "true", - "bool_false": "false" - }, - 'zh-tw': { - 'resetSettings': '還原設置', - 'include': '包含', - 'exclusive': '不包含', - 'equal': '等於', - 'unequal': '不等於', - 'begin': '以開始', - 'end': '以結尾', - 'greater_than': '大於', - 'great_than_equal_to': '大於等於', - 'less_than': '小於', - 'less_than_equal to': '小於等於', - 'be_equal_to': '等於', - 'not_equal_to': '不等於', - "no_data": '暫無數據', - "bool_true": "是", - "bool_false": "否" + Trigger.prototype.getPopupDomNode = function getPopupDomNode() { + // for test + if (this._component && this._component.getPopupDomNode) { + return this._component.getPopupDomNode(); } - }; - - /***/ }), - /* 182 */ - /***/ (function(module, exports, __webpack_require__) { + return null; + }; - "use strict"; + Trigger.prototype.getPopupAlign = function getPopupAlign() { + var props = this.props; + var popupPlacement = props.popupPlacement, + popupAlign = props.popupAlign, + builtinPlacements = props.builtinPlacements; + if (popupPlacement && builtinPlacements) { + return Object(__WEBPACK_IMPORTED_MODULE_13__utils__["a" /* getAlignFromPlacement */])(builtinPlacements, popupPlacement, popupAlign); + } + return popupAlign; + }; - Object.defineProperty(exports, "__esModule", { - value: true - }); + /** + * @param popupVisible Show or not the popup element + * @param event SyntheticEvent, used for `pointAlign` + */ + Trigger.prototype.setPopupVisible = function setPopupVisible(popupVisible, event) { + var alignPoint = this.props.alignPoint; + var prevPopupVisible = this.state.popupVisible; - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - exports.getComponentLocale = getComponentLocale; - exports.getLocaleCode = getLocaleCode; - function getComponentLocale(props, context, componentName, getDefaultLocale) { - var locale = {}; - if (context && context.beeLocale && context.beeLocale[componentName]) { - locale = context.beeLocale[componentName]; - } else { - var defaultLocale = getDefaultLocale(); + this.clearDelayTimer(); - locale = defaultLocale["default"] || defaultLocale; + if (prevPopupVisible !== popupVisible) { + if (!('popupVisible' in this.props)) { + this.setState({ popupVisible: popupVisible, prevPopupVisible: prevPopupVisible }); + } + this.props.onPopupVisibleChange(popupVisible); } - var result = _extends({}, locale, props.locale); - if (props.locale) { - result.lang = _extends({}, locale.lang, props.locale.lang); - } else { - result.lang = _extends({}, locale.lang); + // Always record the point position since mouseEnterDelay will delay the show + if (alignPoint && event) { + this.setPoint(event); } + }; - return result; - } + Trigger.prototype.delaySetPopupVisible = function delaySetPopupVisible(visible, delayS, event) { + var _this2 = this; - function getLocaleCode(context) { - var localeCode = context.beeLocale && context.beeLocale.lang; - // Had use LocaleProvide but didn't set locale - if (context.beeLocale && context.beeLocale.exist && !localeCode) { - return 'zh-cn'; + var delay = delayS * 1000; + this.clearDelayTimer(); + if (delay) { + var point = event ? { pageX: event.pageX, pageY: event.pageY } : null; + this.delayTimer = setTimeout(function () { + _this2.setPopupVisible(visible, point); + _this2.clearDelayTimer(); + }, delay); + } else { + this.setPopupVisible(visible, event); } - return localeCode; - } + }; - /***/ }), - /* 183 */ - /***/ (function(module, exports, __webpack_require__) { + Trigger.prototype.clearDelayTimer = function clearDelayTimer() { + if (this.delayTimer) { + clearTimeout(this.delayTimer); + this.delayTimer = null; + } + }; - //! moment.js locale configuration - //! locale : English (United Kingdom) [en-gb] - //! author : Chris Gedrim : https://github.com/chrisgedrim + Trigger.prototype.clearOutsideHandler = function clearOutsideHandler() { + if (this.clickOutsideHandler) { + this.clickOutsideHandler.remove(); + this.clickOutsideHandler = null; + } - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + if (this.contextMenuOutsideHandler1) { + this.contextMenuOutsideHandler1.remove(); + this.contextMenuOutsideHandler1 = null; + } - //! moment.js locale configuration + if (this.contextMenuOutsideHandler2) { + this.contextMenuOutsideHandler2.remove(); + this.contextMenuOutsideHandler2 = null; + } - var enGb = moment.defineLocale('en-gb', { - months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), - weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( - '_' - ), - weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Today at] LT', - nextDay: '[Tomorrow at] LT', - nextWeek: 'dddd [at] LT', - lastDay: '[Yesterday at] LT', - lastWeek: '[Last] dddd [at] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'in %s', - past: '%s ago', - s: 'a few seconds', - ss: '%d seconds', - m: 'a minute', - mm: '%d minutes', - h: 'an hour', - hh: '%d hours', - d: 'a day', - dd: '%d days', - M: 'a month', - MM: '%d months', - y: 'a year', - yy: '%d years', - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal: function (number) { - var b = number % 10, - output = - ~~((number % 100) / 10) === 1 - ? 'th' - : b === 1 - ? 'st' - : b === 2 - ? 'nd' - : b === 3 - ? 'rd' - : 'th'; - return number + output; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + if (this.touchOutsideHandler) { + this.touchOutsideHandler.remove(); + this.touchOutsideHandler = null; + } + }; - return enGb; + Trigger.prototype.createTwoChains = function createTwoChains(event) { + var childPros = this.props.children.props; + var props = this.props; + if (childPros[event] && props[event]) { + return this['fire' + event]; + } + return childPros[event] || props[event]; + }; - }))); + Trigger.prototype.isClickToShow = function isClickToShow() { + var _props = this.props, + action = _props.action, + showAction = _props.showAction; + return action.indexOf('click') !== -1 || showAction.indexOf('click') !== -1; + }; - /***/ }), - /* 184 */ - /***/ (function(module, exports, __webpack_require__) { + Trigger.prototype.isContextMenuToShow = function isContextMenuToShow() { + var _props2 = this.props, + action = _props2.action, + showAction = _props2.showAction; - "use strict"; + return action.indexOf('contextMenu') !== -1 || showAction.indexOf('contextMenu') !== -1; + }; + Trigger.prototype.isClickToHide = function isClickToHide() { + var _props3 = this.props, + action = _props3.action, + hideAction = _props3.hideAction; - Object.defineProperty(exports, "__esModule", { - value: true - }); + return action.indexOf('click') !== -1 || hideAction.indexOf('click') !== -1; + }; - var _react = __webpack_require__(0); + Trigger.prototype.isMouseEnterToShow = function isMouseEnterToShow() { + var _props4 = this.props, + action = _props4.action, + showAction = _props4.showAction; - var _react2 = _interopRequireDefault(_react); + return action.indexOf('hover') !== -1 || showAction.indexOf('mouseEnter') !== -1; + }; - var _propTypes = __webpack_require__(1); + Trigger.prototype.isMouseLeaveToHide = function isMouseLeaveToHide() { + var _props5 = this.props, + action = _props5.action, + hideAction = _props5.hideAction; - var _propTypes2 = _interopRequireDefault(_propTypes); + return action.indexOf('hover') !== -1 || hideAction.indexOf('mouseLeave') !== -1; + }; - var _mapSelf = __webpack_require__(466); + Trigger.prototype.isFocusToShow = function isFocusToShow() { + var _props6 = this.props, + action = _props6.action, + showAction = _props6.showAction; - var _mapSelf2 = _interopRequireDefault(_mapSelf); + return action.indexOf('focus') !== -1 || showAction.indexOf('focus') !== -1; + }; - var _MonthPanel = __webpack_require__(1274); + Trigger.prototype.isBlurToHide = function isBlurToHide() { + var _props7 = this.props, + action = _props7.action, + hideAction = _props7.hideAction; - var _MonthPanel2 = _interopRequireDefault(_MonthPanel); + return action.indexOf('focus') !== -1 || hideAction.indexOf('blur') !== -1; + }; - var _YearPanel = __webpack_require__(468); + Trigger.prototype.forcePopupAlign = function forcePopupAlign() { + if (this.state.popupVisible && this._component && this._component.alignInstance) { + this._component.alignInstance.forceAlign(); + } + }; - var _YearPanel2 = _interopRequireDefault(_YearPanel); + Trigger.prototype.fireEvents = function fireEvents(type, e) { + var childCallback = this.props.children.props[type]; + if (childCallback) { + childCallback(e); + } + var callback = this.props[type]; + if (callback) { + callback(e); + } + }; - var _DecadePanel = __webpack_require__(469); + Trigger.prototype.close = function close() { + this.setPopupVisible(false); + }; - var _DecadePanel2 = _interopRequireDefault(_DecadePanel); + Trigger.prototype.render = function render() { + var _this3 = this; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var popupVisible = this.state.popupVisible; + var _props8 = this.props, + children = _props8.children, + forceRender = _props8.forceRender, + alignPoint = _props8.alignPoint, + className = _props8.className; - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + var child = __WEBPACK_IMPORTED_MODULE_4_react___default.a.Children.only(children); + var newChildProps = { key: 'trigger' }; - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + if (this.isContextMenuToShow()) { + newChildProps.onContextMenu = this.onContextMenu; + } else { + newChildProps.onContextMenu = this.createTwoChains('onContextMenu'); + } - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + if (this.isClickToHide() || this.isClickToShow()) { + newChildProps.onClick = this.onClick; + newChildProps.onMouseDown = this.onMouseDown; + newChildProps.onTouchStart = this.onTouchStart; + } else { + newChildProps.onClick = this.createTwoChains('onClick'); + newChildProps.onMouseDown = this.createTwoChains('onMouseDown'); + newChildProps.onTouchStart = this.createTwoChains('onTouchStart'); + } + if (this.isMouseEnterToShow()) { + newChildProps.onMouseEnter = this.onMouseEnter; + if (alignPoint) { + newChildProps.onMouseMove = this.onMouseMove; + } + } else { + newChildProps.onMouseEnter = this.createTwoChains('onMouseEnter'); + } + if (this.isMouseLeaveToHide()) { + newChildProps.onMouseLeave = this.onMouseLeave; + } else { + newChildProps.onMouseLeave = this.createTwoChains('onMouseLeave'); + } + if (this.isFocusToShow() || this.isBlurToHide()) { + newChildProps.onFocus = this.onFocus; + newChildProps.onBlur = this.onBlur; + } else { + newChildProps.onFocus = this.createTwoChains('onFocus'); + newChildProps.onBlur = this.createTwoChains('onBlur'); + } - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + var childrenClassName = __WEBPACK_IMPORTED_MODULE_12_classnames___default()(child && child.props && child.props.className, className); + if (childrenClassName) { + newChildProps.className = childrenClassName; + } + var trigger = __WEBPACK_IMPORTED_MODULE_4_react___default.a.cloneElement(child, newChildProps); - function goMonth(direction) { - var next = this.props.value.clone(); - next.add(direction, 'months'); - this.props.onValueChange(next); - } + if (!IS_REACT_16) { + return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement( + __WEBPACK_IMPORTED_MODULE_10_rc_util_es_ContainerRender__["a" /* default */], + { + parent: this, + visible: popupVisible, + autoMount: false, + forceRender: forceRender, + getComponent: this.getComponent, + getContainer: this.getContainer + }, + function (_ref2) { + var renderComponent = _ref2.renderComponent; - function goYear(direction) { - var next = this.props.value.clone(); - next.add(direction, 'years'); - this.props.onValueChange(next); - } + _this3.renderComponent = renderComponent; + return trigger; + } + ); + } - function showIf(condition, el) { - return condition ? el : null; - } + var portal = void 0; + // prevent unmounting after it's rendered + if (popupVisible || this._component || forceRender) { + portal = __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement( + __WEBPACK_IMPORTED_MODULE_11_rc_util_es_Portal__["a" /* default */], + { key: 'portal', getContainer: this.getContainer, didUpdate: this.handlePortalUpdate }, + this.getComponent() + ); + } - var CalendarHeader = function (_React$Component) { - _inherits(CalendarHeader, _React$Component); + return [trigger, portal]; + }; - function CalendarHeader(props) { - _classCallCheck(this, CalendarHeader); + return Trigger; + }(__WEBPACK_IMPORTED_MODULE_4_react___default.a.Component); - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); + Trigger.propTypes = { + children: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.any, + action: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string)]), + showAction: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.any, + hideAction: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.any, + getPopupClassNameFromAlign: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.any, + onPopupVisibleChange: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func, + afterPopupVisibleChange: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func, + popup: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.node, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func]).isRequired, + popupStyle: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object, + prefixCls: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, + popupClassName: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, + className: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, + popupPlacement: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, + builtinPlacements: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object, + popupTransitionName: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object]), + popupAnimation: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.any, + mouseEnterDelay: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, + mouseLeaveDelay: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, + zIndex: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, + focusDelay: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, + blurDelay: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, + getPopupContainer: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func, + getDocument: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func, + forceRender: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool, + destroyPopupOnHide: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool, + mask: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool, + maskClosable: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool, + onPopupAlign: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func, + popupAlign: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object, + popupVisible: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool, + defaultPopupVisible: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool, + maskTransitionName: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object]), + maskAnimation: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, + stretch: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, + alignPoint: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool // Maybe we can support user pass position in the future + }; + Trigger.contextTypes = contextTypes; + Trigger.childContextTypes = contextTypes; + Trigger.defaultProps = { + prefixCls: 'rc-trigger-popup', + getPopupClassNameFromAlign: returnEmptyString, + getDocument: returnDocument, + onPopupVisibleChange: noop, + afterPopupVisibleChange: noop, + onPopupAlign: noop, + popupClassName: '', + mouseEnterDelay: 0, + mouseLeaveDelay: 0.1, + focusDelay: 0, + blurDelay: 0.15, + popupStyle: {}, + destroyPopupOnHide: false, + popupAlign: {}, + defaultPopupVisible: false, + mask: false, + maskClosable: true, + action: [], + showAction: [], + hideAction: [] + }; - _initialiseProps.call(_this); + var _initialiseProps = function _initialiseProps() { + var _this4 = this; - _this.nextMonth = goMonth.bind(_this, 1); - _this.previousMonth = goMonth.bind(_this, -1); - _this.nextYear = goYear.bind(_this, 1); - _this.previousYear = goYear.bind(_this, -1); + this.onMouseEnter = function (e) { + var mouseEnterDelay = _this4.props.mouseEnterDelay; - _this.state = { yearPanelReferer: null }; - return _this; - } + _this4.fireEvents('onMouseEnter', e); + _this4.delaySetPopupVisible(true, mouseEnterDelay, mouseEnterDelay ? null : e); + }; - CalendarHeader.prototype.render = function render() { - var _this2 = this; + this.onMouseMove = function (e) { + _this4.fireEvents('onMouseMove', e); + _this4.setPoint(e); + }; - var props = this.props; - var prefixCls = props.prefixCls, - locale = props.locale, - mode = props.mode, - value = props.value, - showTimePicker = props.showTimePicker, - enableNext = props.enableNext, - enablePrev = props.enablePrev, - disabledMonth = props.disabledMonth, - renderFooter = props.renderFooter, - onChange = props.onChange, - onClear = props.onClear, - showMonthInput = props.showMonthInput; + this.onMouseLeave = function (e) { + _this4.fireEvents('onMouseLeave', e); + _this4.delaySetPopupVisible(false, _this4.props.mouseLeaveDelay); + }; + this.onPopupMouseEnter = function () { + _this4.clearDelayTimer(); + }; - var panel = null; - if (mode === 'month') { - panel = _react2["default"].createElement(_MonthPanel2["default"], { - showDateInput: true, - locale: locale, - showMonthInput: showMonthInput, - defaultValue: value, - rootPrefixCls: prefixCls, - onSelect: this.onMonthSelect, - onYearPanelShow: function onYearPanelShow() { - return _this2.showYearPanel('month'); - }, - disabledDate: disabledMonth, - cellRender: props.monthCellRender, - contentRender: props.monthCellContentRender, - renderFooter: renderFooter, - onChange: onChange, - onClear: onClear, - value: value - }); - } - if (mode === 'year') { - panel = _react2["default"].createElement(_YearPanel2["default"], { - locale: locale, - defaultValue: value, - rootPrefixCls: prefixCls, - onSelect: this.onYearSelect, - onDecadePanelShow: this.showDecadePanel, - renderFooter: renderFooter - }); + this.onPopupMouseLeave = function (e) { + // https://github.com/react-component/trigger/pull/13 + // react bug? + if (e.relatedTarget && !e.relatedTarget.setTimeout && _this4._component && _this4._component.getPopupDomNode && Object(__WEBPACK_IMPORTED_MODULE_8_rc_util_es_Dom_contains__["a" /* default */])(_this4._component.getPopupDomNode(), e.relatedTarget)) { + return; } - if (mode === 'decade') { - panel = _react2["default"].createElement(_DecadePanel2["default"], { - locale: locale, - defaultValue: value, - rootPrefixCls: prefixCls, - onSelect: this.onDecadeSelect, - renderFooter: renderFooter - }); + _this4.delaySetPopupVisible(false, _this4.props.mouseLeaveDelay); + }; + + this.onFocus = function (e) { + _this4.fireEvents('onFocus', e); + // incase focusin and focusout + _this4.clearDelayTimer(); + if (_this4.isFocusToShow()) { + _this4.focusTime = Date.now(); + _this4.delaySetPopupVisible(true, _this4.props.focusDelay); } + }; - return _react2["default"].createElement( - 'div', - { className: prefixCls + '-header' }, - _react2["default"].createElement( - 'div', - { style: { position: 'relative' }, className: prefixCls + '-header-btns' }, - showIf(enablePrev && !showTimePicker, _react2["default"].createElement('a', { - className: prefixCls + '-prev-year-btn', - role: 'button', - onClick: this.previousYear, - title: locale.previousYear - })), - showIf(enablePrev && !showTimePicker, _react2["default"].createElement('a', { - className: prefixCls + '-prev-month-btn', - role: 'button', - onClick: this.previousMonth, - title: locale.previousMonth - })), - this.monthYearElement(showTimePicker), - showIf(enableNext && !showTimePicker, _react2["default"].createElement('a', { - className: prefixCls + '-next-month-btn', - onClick: this.nextMonth, - title: locale.nextMonth - })), - showIf(enableNext && !showTimePicker, _react2["default"].createElement('a', { - className: prefixCls + '-next-year-btn', - onClick: this.nextYear, - title: locale.nextYear - })) - ), - panel - ); + this.onMouseDown = function (e) { + _this4.fireEvents('onMouseDown', e); + _this4.preClickTime = Date.now(); }; - return CalendarHeader; - }(_react2["default"].Component); + this.onTouchStart = function (e) { + _this4.fireEvents('onTouchStart', e); + _this4.preTouchTime = Date.now(); + }; - CalendarHeader.propTypes = { - prefixCls: _propTypes2["default"].string, - value: _propTypes2["default"].object, - onValueChange: _propTypes2["default"].func, - showTimePicker: _propTypes2["default"].bool, - onPanelChange: _propTypes2["default"].func, - locale: _propTypes2["default"].object, - enablePrev: _propTypes2["default"].any, - enableNext: _propTypes2["default"].any, - disabledMonth: _propTypes2["default"].func, - renderFooter: _propTypes2["default"].func, - onMonthSelect: _propTypes2["default"].func - }; - CalendarHeader.defaultProps = { - enableNext: 1, - enablePrev: 1, - onPanelChange: function onPanelChange() {}, - onValueChange: function onValueChange() {} - }; + this.onBlur = function (e) { + _this4.fireEvents('onBlur', e); + _this4.clearDelayTimer(); + if (_this4.isBlurToHide()) { + _this4.delaySetPopupVisible(false, _this4.props.blurDelay); + } + }; - var _initialiseProps = function _initialiseProps() { - var _this3 = this; + this.onContextMenu = function (e) { + e.preventDefault(); + _this4.fireEvents('onContextMenu', e); + _this4.setPopupVisible(true, e); + }; - this.onMonthSelect = function (value) { - _this3.props.onPanelChange(value, 'date'); - if (_this3.props.onMonthSelect) { - _this3.props.onMonthSelect(value); - } else { - _this3.props.onValueChange(value); + this.onContextMenuClose = function () { + if (_this4.isContextMenuToShow()) { + _this4.close(); } }; - this.onYearSelect = function (value) { - var referer = _this3.state.yearPanelReferer; - _this3.setState({ yearPanelReferer: null }); - _this3.props.onPanelChange(value, referer); - _this3.props.onValueChange(value); + this.onClick = function (event) { + _this4.fireEvents('onClick', event); + // focus will trigger click + if (_this4.focusTime) { + var preTime = void 0; + if (_this4.preClickTime && _this4.preTouchTime) { + preTime = Math.min(_this4.preClickTime, _this4.preTouchTime); + } else if (_this4.preClickTime) { + preTime = _this4.preClickTime; + } else if (_this4.preTouchTime) { + preTime = _this4.preTouchTime; + } + if (Math.abs(preTime - _this4.focusTime) < 20) { + return; + } + _this4.focusTime = 0; + } + _this4.preClickTime = 0; + _this4.preTouchTime = 0; + + // Only prevent default when all the action is click. + // https://github.com/ant-design/ant-design/issues/17043 + // https://github.com/ant-design/ant-design/issues/17291 + if (_this4.isClickToShow() && (_this4.isClickToHide() || _this4.isBlurToHide()) && event && event.preventDefault) { + event.preventDefault(); + } + var nextVisible = !_this4.state.popupVisible; + if (_this4.isClickToHide() && !nextVisible || nextVisible && _this4.isClickToShow()) { + _this4.setPopupVisible(!_this4.state.popupVisible, event); + } }; - this.onDecadeSelect = function (value) { - _this3.props.onPanelChange(value, 'year'); - _this3.props.onValueChange(value); + this.onPopupMouseDown = function () { + var _context$rcTrigger = _this4.context.rcTrigger, + rcTrigger = _context$rcTrigger === undefined ? {} : _context$rcTrigger; + + _this4.hasPopupMouseDown = true; + + clearTimeout(_this4.mouseDownTimeout); + _this4.mouseDownTimeout = setTimeout(function () { + _this4.hasPopupMouseDown = false; + }, 0); + + if (rcTrigger.onPopupMouseDown) { + rcTrigger.onPopupMouseDown.apply(rcTrigger, arguments); + } }; - this.monthYearElement = function (showTimePicker) { - var props = _this3.props; - var prefixCls = props.prefixCls; - var locale = props.locale; - var value = props.value; - var localeData = value.localeData && value.localeData(); - var monthBeforeYear = locale.monthBeforeYear; - var selectClassName = prefixCls + '-' + (monthBeforeYear ? 'my-select' : 'ym-select'); - var timeClassName = showTimePicker ? ' ' + prefixCls + '-time-status' : ''; - var year = _react2["default"].createElement( - 'a', - { - className: prefixCls + '-year-select' + timeClassName, - role: 'button', - onClick: showTimePicker ? null : function () { - return _this3.showYearPanel('date'); - }, - title: showTimePicker ? null : locale.yearSelect - }, - value.format(locale.yearFormat) - ); - var month = _react2["default"].createElement( - 'a', - { - className: prefixCls + '-month-select' + timeClassName, - role: 'button', - onClick: showTimePicker ? null : _this3.showMonthPanel, - title: showTimePicker ? null : locale.monthSelect - }, - locale.monthFormat ? value.format(locale.monthFormat) : localeData.monthsShort(value) - ); - var day = void 0; - if (showTimePicker) { - day = _react2["default"].createElement( - 'a', - { - className: prefixCls + '-day-select' + timeClassName, - role: 'button' - }, - value.format(locale.dayFormat) - ); + this.onDocumentClick = function (event) { + if (_this4.props.mask && !_this4.props.maskClosable) { + return; } - var my = []; - if (monthBeforeYear) { - my = [month, day, year]; - } else { - my = [year, month, day]; + + var target = event.target; + var root = Object(__WEBPACK_IMPORTED_MODULE_6_react_dom__["findDOMNode"])(_this4); + if (!Object(__WEBPACK_IMPORTED_MODULE_8_rc_util_es_Dom_contains__["a" /* default */])(root, target) && !_this4.hasPopupMouseDown) { + _this4.close(); } - return _react2["default"].createElement( - 'span', - { className: selectClassName }, - (0, _mapSelf2["default"])(my) - ); }; - this.showMonthPanel = function () { - // null means that users' interaction doesn't change value - _this3.props.onPanelChange(null, 'month'); + this.getRootDomNode = function () { + return Object(__WEBPACK_IMPORTED_MODULE_6_react_dom__["findDOMNode"])(_this4); }; - this.showYearPanel = function (referer) { - _this3.setState({ yearPanelReferer: referer }); - _this3.props.onPanelChange(null, 'year'); - }; + this.getPopupClassNameFromAlign = function (align) { + var className = []; + var _props9 = _this4.props, + popupPlacement = _props9.popupPlacement, + builtinPlacements = _props9.builtinPlacements, + prefixCls = _props9.prefixCls, + alignPoint = _props9.alignPoint, + getPopupClassNameFromAlign = _props9.getPopupClassNameFromAlign; - this.showDecadePanel = function () { - _this3.props.onPanelChange(null, 'decade'); + if (popupPlacement && builtinPlacements) { + className.push(Object(__WEBPACK_IMPORTED_MODULE_13__utils__["b" /* getAlignPopupClassName */])(builtinPlacements, prefixCls, align, alignPoint)); + } + if (getPopupClassNameFromAlign) { + className.push(getPopupClassNameFromAlign(align)); + } + return className.join(' '); }; - }; - exports["default"] = CalendarHeader; - module.exports = exports['default']; + this.getComponent = function () { + var _props10 = _this4.props, + prefixCls = _props10.prefixCls, + destroyPopupOnHide = _props10.destroyPopupOnHide, + popupClassName = _props10.popupClassName, + action = _props10.action, + onPopupAlign = _props10.onPopupAlign, + popupAnimation = _props10.popupAnimation, + popupTransitionName = _props10.popupTransitionName, + popupStyle = _props10.popupStyle, + mask = _props10.mask, + maskAnimation = _props10.maskAnimation, + maskTransitionName = _props10.maskTransitionName, + zIndex = _props10.zIndex, + popup = _props10.popup, + stretch = _props10.stretch, + alignPoint = _props10.alignPoint; + var _state = _this4.state, + popupVisible = _state.popupVisible, + point = _state.point; - /***/ }), - /* 185 */ - /***/ (function(module, exports, __webpack_require__) { - "use strict"; + var align = _this4.getPopupAlign(); + var mouseProps = {}; + if (_this4.isMouseEnterToShow()) { + mouseProps.onMouseEnter = _this4.onPopupMouseEnter; + } + if (_this4.isMouseLeaveToHide()) { + mouseProps.onMouseLeave = _this4.onPopupMouseLeave; + } - exports.__esModule = true; - exports.default = createChainableTypeChecker; - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ + mouseProps.onMouseDown = _this4.onPopupMouseDown; + mouseProps.onTouchStart = _this4.onPopupMouseDown; - // Mostly taken from ReactPropTypes. + return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement( + __WEBPACK_IMPORTED_MODULE_14__Popup__["a" /* default */], + __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({ + prefixCls: prefixCls, + destroyPopupOnHide: destroyPopupOnHide, + visible: popupVisible, + point: alignPoint && point, + className: popupClassName, + action: action, + align: align, + onAlign: onPopupAlign, + animation: popupAnimation, + getClassNameFromAlign: _this4.getPopupClassNameFromAlign + }, mouseProps, { + stretch: stretch, + getRootDomNode: _this4.getRootDomNode, + style: popupStyle, + mask: mask, + zIndex: zIndex, + transitionName: popupTransitionName, + maskAnimation: maskAnimation, + maskTransitionName: maskTransitionName, + ref: _this4.savePopup + }), + typeof popup === 'function' ? popup() : popup + ); + }; - /* This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ + this.getContainer = function () { + var props = _this4.props; - function createChainableTypeChecker(validate) { - function checkType(isRequired, props, propName, componentName, location, propFullName) { - var componentNameSafe = componentName || '<>'; - var propFullNameSafe = propFullName || propName; + var popupContainer = document.createElement('div'); + // Make sure default popup container will never cause scrollbar appearing + // https://github.com/react-component/trigger/issues/41 + popupContainer.style.position = 'absolute'; + popupContainer.style.top = '0'; + popupContainer.style.left = '0'; + popupContainer.style.width = '100%'; + var mountNode = props.getPopupContainer ? props.getPopupContainer(Object(__WEBPACK_IMPORTED_MODULE_6_react_dom__["findDOMNode"])(_this4)) : props.getDocument().body; + mountNode.appendChild(popupContainer); + return popupContainer; + }; - if (props[propName] == null) { - if (isRequired) { - return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); - } + this.setPoint = function (point) { + var alignPoint = _this4.props.alignPoint; - return null; - } + if (!alignPoint || !point) return; - for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { - args[_key - 6] = arguments[_key]; + _this4.setState({ + point: { + pageX: point.pageX, + pageY: point.pageY + } + }); + }; + + this.handlePortalUpdate = function () { + if (_this4.state.prevPopupVisible !== _this4.state.popupVisible) { + _this4.props.afterPopupVisibleChange(_this4.state.popupVisible); } + }; - return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); - } + this.savePopup = function (node) { + _this4._component = node; + }; + }; - var chainedCheckType = checkType.bind(null, false); - chainedCheckType.isRequired = checkType.bind(null, true); + Object(__WEBPACK_IMPORTED_MODULE_7_react_lifecycles_compat__["polyfill"])(Trigger); - return chainedCheckType; - } + /* harmony default export */ __webpack_exports__["default"] = (Trigger); /***/ }), - /* 186 */ + /* 75 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -125132,835 +114287,829 @@ Object.defineProperty(exports, "__esModule", { value: true }); - exports.commonMixinWrapper = exports.defaultProp = exports.propType = undefined; - - var _propTypes = __webpack_require__(1); - - var _propTypes2 = _interopRequireDefault(_propTypes); - - var _en_US = __webpack_require__(475); - - var _en_US2 = _interopRequireDefault(_en_US); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + exports.default = offset; - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + var _contains = __webpack_require__(27); - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + var _contains2 = _interopRequireDefault(_contains); - function noop() {} + var _isWindow = __webpack_require__(101); - var propType = exports.propType = { - className: _propTypes2["default"].string, - locale: _propTypes2["default"].object, - style: _propTypes2["default"].object, - visible: _propTypes2["default"].bool, - onSelect: _propTypes2["default"].func, - prefixCls: _propTypes2["default"].string, - onChange: _propTypes2["default"].func, - onOk: _propTypes2["default"].func - }; + var _isWindow2 = _interopRequireDefault(_isWindow); - var defaultProp = exports.defaultProp = { - locale: _en_US2["default"], - style: {}, - visible: true, - prefixCls: 'rc-calendar', - className: '', - onSelect: noop, - onChange: noop, - onClear: noop, - renderFooter: function renderFooter() { - return null; - }, - renderSidebar: function renderSidebar() { - return null; - } - }; + var _ownerDocument = __webpack_require__(23); - var commonMixinWrapper = exports.commonMixinWrapper = function commonMixinWrapper(ComposeComponent) { - var _class, _temp2; + var _ownerDocument2 = _interopRequireDefault(_ownerDocument); - return _temp2 = _class = function (_ComposeComponent) { - _inherits(_class, _ComposeComponent); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - function _class() { - var _temp, _this, _ret; + function offset(node) { + var doc = (0, _ownerDocument2.default)(node), + win = (0, _isWindow2.default)(doc), + docElem = doc && doc.documentElement, + box = { top: 0, left: 0, height: 0, width: 0 }; - _classCallCheck(this, _class); + if (!doc) return; - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } + // Make sure it's not a disconnected DOM node + if (!(0, _contains2.default)(docElem, node)) return box; - return _ret = (_temp = (_this = _possibleConstructorReturn(this, _ComposeComponent.call.apply(_ComposeComponent, [this].concat(args))), _this), _this.getFormat = function () { - var format = _this.props.format; - var _this$props = _this.props, - locale = _this$props.locale, - timePicker = _this$props.timePicker; + if (node.getBoundingClientRect !== undefined) box = node.getBoundingClientRect(); - if (!format) { - if (timePicker) { - format = locale.dateTimeFormat; - } else { - format = locale.dateFormat; - } - } - return format; - }, _this.focus = function () { - if (_this.focusElement) { - _this.focusElement.focus(); - } else if (_this.rootInstance) { - _this.rootInstance.focus(); - } - }, _this.saveFocusElement = function (focusElement) { - _this.focusElement = focusElement; - }, _this.saveRoot = function (root) { - _this.rootInstance = root; - }, _temp), _possibleConstructorReturn(_this, _ret); - } + if (box.width || box.height) { - _class.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) { - return this.props.visible || nextProps.visible; + box = { + top: box.top + (win.pageYOffset || docElem.scrollTop) - (docElem.clientTop || 0), + left: box.left + (win.pageXOffset || docElem.scrollLeft) - (docElem.clientLeft || 0), + width: (box.width == null ? node.offsetWidth : box.width) || 0, + height: (box.height == null ? node.offsetHeight : box.height) || 0 }; + } - return _class; - }(ComposeComponent), _class.displayName = 'CommonMixinWrapper', _class.defaultProps = ComposeComponent.defaultProps, _class.getDerivedStateFromProps = ComposeComponent.getDerivedStateFromProps, _temp2; - }; + return box; + } + module.exports = exports['default']; /***/ }), - /* 187 */ + /* 76 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; + /* WEBPACK VAR INJECTION */(function(process) { + exports.__esModule = true; + exports.noop = undefined; - Object.defineProperty(exports, "__esModule", { - value: true - }); + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + exports.bottom = bottom; + exports.cloneLayout = cloneLayout; + exports.cloneLayoutItem = cloneLayoutItem; + exports.childrenEqual = childrenEqual; + exports.collides = collides; + exports.compact = compact; + exports.compactItem = compactItem; + exports.correctBounds = correctBounds; + exports.getLayoutItem = getLayoutItem; + exports.getFirstCollision = getFirstCollision; + exports.getAllCollisions = getAllCollisions; + exports.getStatics = getStatics; + exports.moveElement = moveElement; + exports.moveElementAwayFromCollision = moveElementAwayFromCollision; + exports.perc = perc; + exports.setTransform = setTransform; + exports.setTopLeft = setTopLeft; + exports.sortLayoutItems = sortLayoutItems; + exports.sortLayoutItemsByRowCol = sortLayoutItemsByRowCol; + exports.sortLayoutItemsByColRow = sortLayoutItemsByColRow; + exports.synchronizeLayoutWithChildren = synchronizeLayoutWithChildren; + exports.validateLayout = validateLayout; + exports.autoBindHandlers = autoBindHandlers; - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + var _lodash = __webpack_require__(21); - exports.browser = browser; - exports.getOffset = getOffset; - exports.loopAllChildren = loopAllChildren; - exports.isInclude = isInclude; - exports.filterParentPosition = filterParentPosition; - exports.handleCheckState = handleCheckState; - exports.getCheck = getCheck; - exports.getStrictlyValue = getStrictlyValue; - exports.arraysEqual = arraysEqual; - exports.closest = closest; - exports.isTreeNode = isTreeNode; - exports.toArray = toArray; - exports.getNodeChildren = getNodeChildren; - exports.warnOnlyTreeNode = warnOnlyTreeNode; - exports.convertListToTree = convertListToTree; - exports.debounce = debounce; - exports.throttle = throttle; + var _lodash2 = _interopRequireDefault(_lodash); var _react = __webpack_require__(0); var _react2 = _interopRequireDefault(_react); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } /* eslint no-loop-func: 0*/ + // All callbacks are of the signature (layout, oldItem, newItem, placeholder, e). + var isProduction = process.env.NODE_ENV === "production"; + var DEBUG = false; - function browser(navigator) { - var tem = void 0; - var ua = navigator.userAgent; - var M = ua.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i) || []; - if (/trident/i.test(M[1])) { - tem = /\brv[ :]+(\d+)/g.exec(ua) || []; - return 'IE ' + (tem[1] || ''); - } - if (M[1] === 'Chrome') { - tem = ua.match(/\b(OPR|Edge)\/(\d+)/); - if (tem) return tem.slice(1).join(' ').replace('OPR', 'Opera'); - } - M = M[2] ? [M[1], M[2]] : [navigator.appName, navigator.appVersion, '-?']; - tem = ua.match(/version\/(\d+)/i); - if (tem) { - M.splice(1, 1, tem[1]); + /** + * Return the bottom coordinate of the layout. + * + * @param {Array} layout Layout array. + * @return {Number} Bottom coordinate. + */ + function bottom(layout) { + var max = 0, + bottomY = void 0; + for (var _i = 0, len = layout.length; _i < len; _i++) { + bottomY = layout[_i].y + layout[_i].h; + if (bottomY > max) max = bottomY; } - return M.join(' '); + return max; } - // export function getOffset(el) { - // const obj = el.getBoundingClientRect(); - // return { - // left: obj.left + document.body.scrollLeft, - // top: obj.top + document.body.scrollTop, - // width: obj.width, - // height: obj.height - // }; - // } - - // // iscroll offset - // offset = function (el) { - // var left = -el.offsetLeft, - // top = -el.offsetTop; + function cloneLayout(layout) { + var newLayout = Array(layout.length); + for (var _i2 = 0, len = layout.length; _i2 < len; _i2++) { + newLayout[_i2] = cloneLayoutItem(layout[_i2]); + } + return newLayout; + } - // // jshint -W084 - // while (el = el.offsetParent) { - // left -= el.offsetLeft; - // top -= el.offsetTop; - // } - // // jshint +W084 + // Fast path to cloning, since this is monomorphic + function cloneLayoutItem(layoutItem) { + return { + w: layoutItem.w, + h: layoutItem.h, + x: layoutItem.x, + y: layoutItem.y, + i: layoutItem.i, + minW: layoutItem.minW, + maxW: layoutItem.maxW, + minH: layoutItem.minH, + maxH: layoutItem.maxH, + moved: Boolean(layoutItem.moved), + static: Boolean(layoutItem.static), + // These can be null + isDraggable: layoutItem.isDraggable, + isResizable: layoutItem.isResizable + }; + } - // return { - // left: left, - // top: top - // }; - // } + /** + * Comparing React `children` is a bit difficult. This is a good way to compare them. + * This will catch differences in keys, order, and length. + */ + function childrenEqual(a, b) { + return (0, _lodash2.default)(_react2.default.Children.map(a, function (c) { + return c.key; + }), _react2.default.Children.map(b, function (c) { + return c.key; + })); + } - /* eslint-disable */ - function getOffset(ele) { - var doc = void 0, - win = void 0, - docElem = void 0, - rect = void 0; + /** + * Given two layoutitems, check if they collide. + */ + function collides(l1, l2) { + if (l1 === l2) return false; // same element + if (l1.x + l1.w <= l2.x) return false; // l1 is left of l2 + if (l1.x >= l2.x + l2.w) return false; // l1 is right of l2 + if (l1.y + l1.h <= l2.y) return false; // l1 is above l2 + if (l1.y >= l2.y + l2.h) return false; // l1 is below l2 + return true; // boxes overlap + } - if (!ele.getClientRects().length) { - return { top: 0, left: 0 }; - } + /** + * Given a layout, compact it. This involves going down each y coordinate and removing gaps + * between items. + * + * @param {Array} layout Layout. + * @param {Boolean} verticalCompact Whether or not to compact the layout + * vertically. + * @return {Array} Compacted Layout. + */ + function compact(layout, compactType, cols) { + // Statics go in the compareWith array right away so items flow around them. + var compareWith = getStatics(layout); + // We go through the items by row and column. + var sorted = sortLayoutItems(layout, compactType); + // Holding for new items. + var out = Array(layout.length); - rect = ele.getBoundingClientRect(); + for (var _i3 = 0, len = sorted.length; _i3 < len; _i3++) { + var l = cloneLayoutItem(sorted[_i3]); - if (rect.width || rect.height) { - doc = ele.ownerDocument; - win = doc.defaultView; - docElem = doc.documentElement; + // Don't move static elements + if (!l.static) { + l = compactItem(compareWith, l, compactType, cols, sorted); - return { - top: rect.top + win.pageYOffset - docElem.clientTop, - left: rect.left + win.pageXOffset - docElem.clientLeft - }; - } + // Add to comparison array. We only collide with items before this one. + // Statics are already in this array. + compareWith.push(l); + } - return rect; - } - /* eslint-enable */ + // Add to output array to make sure they still come out in the right order. + out[layout.indexOf(sorted[_i3])] = l; - function getChildrenlength(children) { - var len = 1; - if (Array.isArray(children)) { - len = children.length; + // Clear moved flag, if it exists. + l.moved = false; } - return len; - } - function getSiblingPosition(index, len, siblingPosition) { - if (len === 1) { - siblingPosition.first = true; - siblingPosition.last = true; - } else { - siblingPosition.first = index === 0; - siblingPosition.last = index === len - 1; - } - return siblingPosition; + return out; } - function loopAllChildren(childs, callback, parent) { - var loop = function loop(children, level, _parent) { - var len = getChildrenlength(children); - _react2["default"].Children.forEach(children, function (item, index) { - var pos = level + '-' + index; - if (item.props.children && item.type && item.type.isTreeNode) { - loop(item.props.children, pos, { node: item, pos: pos }); - } - callback(item, index, pos, item.key || pos, getSiblingPosition(index, len, {}), _parent); - }); - }; - loop(childs, 0, parent); - } + var heightWidth = { x: "w", y: "h" }; + /** + * Before moving item down, it will check if the movement will cause collisions and move those items down before. + */ + function resolveCompactionCollision(layout, item, moveToCoord, axis) { + var sizeProp = heightWidth[axis]; + item[axis] += 1; + var itemIndex = layout.indexOf(item); - function isInclude(smallArray, bigArray) { - return smallArray.every(function (ii, i) { - return ii === bigArray[i]; - }); - } - // console.log(isInclude(['0', '1'], ['0', '10', '1'])); + // Go through each item we collide with. + for (var _i4 = itemIndex + 1; _i4 < layout.length; _i4++) { + var otherItem = layout[_i4]; + // Ignore static items + if (otherItem.static) continue; + // Optimization: we can break early if we know we're past this el + // We can do this b/c it's a sorted layout + if (otherItem.y > item.y + item.h) break; - // arr.length === 628, use time: ~20ms - function filterParentPosition(arr) { - var levelObj = {}; - arr.forEach(function (item) { - var posLen = item.split('-').length; - if (!levelObj[posLen]) { - levelObj[posLen] = []; + if (collides(item, otherItem)) { + resolveCompactionCollision(layout, otherItem, moveToCoord + item[sizeProp], axis); } - levelObj[posLen].push(item); - }); - var levelArr = Object.keys(levelObj).sort(); + } - var _loop = function _loop(i) { - if (levelArr[i + 1]) { - levelObj[levelArr[i]].forEach(function (ii) { - var _loop2 = function _loop2(j) { - levelObj[levelArr[j]].forEach(function (_i, index) { - if (isInclude(ii.split('-'), _i.split('-'))) { - levelObj[levelArr[j]][index] = null; - } - }); - levelObj[levelArr[j]] = levelObj[levelArr[j]].filter(function (p) { - return p; - }); - }; + item[axis] = moveToCoord; + } - for (var j = i + 1; j < levelArr.length; j++) { - _loop2(j); - } - }); + /** + * Compact an item in the layout. + */ + function compactItem(compareWith, l, compactType, cols, fullLayout) { + var compactV = compactType === "vertical"; + var compactH = compactType === "horizontal"; + if (compactV) { + // Bottom 'y' possible is the bottom of the layout. + // This allows you to do nice stuff like specify {y: Infinity} + // This is here because the layout must be sorted in order to get the correct bottom `y`. + l.y = Math.min(bottom(compareWith), l.y); + // Move the element up as far as it can go without colliding. + while (l.y > 0 && !getFirstCollision(compareWith, l)) { + l.y--; + } + } else if (compactH) { + l.y = Math.min(bottom(compareWith), l.y); + // Move the element left as far as it can go without colliding. + while (l.x > 0 && !getFirstCollision(compareWith, l)) { + l.x--; } - }; - - for (var i = 0; i < levelArr.length; i++) { - _loop(i); } - var nArr = []; - levelArr.forEach(function (i) { - nArr = nArr.concat(levelObj[i]); - }); - return nArr; - } - // console.log(filterParentPosition( - // ['0-2', '0-3-3', '0-10', '0-10-0', '0-0-1', '0-0', '0-1-1', '0-1'] - // )); - - function stripTail(str) { - var arr = str.match(/(.+)(-[^-]+)$/); - var st = ''; - if (arr && arr.length === 3) { - st = arr[1]; + // Move it down, and keep moving it down if it's colliding. + var collides = void 0; + while (collides = getFirstCollision(compareWith, l)) { + if (compactH) { + resolveCompactionCollision(fullLayout, l, collides.x + collides.w, "x"); + } else { + resolveCompactionCollision(fullLayout, l, collides.y + collides.h, "y"); + } + // Since we can't grow without bounds horizontally, if we've overflown, let's move it down and try again. + if (compactH && l.x + l.w > cols) { + l.x = cols - l.w; + l.y++; + } } - return st; - } - function splitPosition(pos) { - return pos.split('-'); + return l; } - function handleCheckState(obj, checkedPositionArr, checkIt) { - // console.log(stripTail('0-101-000')); - var objKeys = Object.keys(obj); - // let s = Date.now(); - objKeys.forEach(function (i, index) { - var iArr = splitPosition(i); - var saved = false; - checkedPositionArr.forEach(function (_pos) { - // 设置子节点,全选或全不选 - var _posArr = splitPosition(_pos); - if (iArr.length > _posArr.length && isInclude(_posArr, iArr)) { - obj[i].halfChecked = false; - obj[i].checked = checkIt; - objKeys[index] = null; - } - if (iArr[0] === _posArr[0] && iArr[1] === _posArr[1]) { - // 如果 - saved = true; + /** + * Given a layout, make sure all elements fit within its bounds. + * + * @param {Array} layout Layout array. + * @param {Number} bounds Number of columns. + */ + function correctBounds(layout, bounds) { + var collidesWith = getStatics(layout); + for (var _i5 = 0, len = layout.length; _i5 < len; _i5++) { + var l = layout[_i5]; + // Overflows right + if (l.x + l.w > bounds.cols) l.x = bounds.cols - l.w; + // Overflows left + if (l.x < 0) { + l.x = 0; + l.w = bounds.cols; + } + if (!l.static) collidesWith.push(l);else { + // If this is static and collides with other statics, we must move it down. + // We have to do something nicer than just letting them overlap. + while (getFirstCollision(collidesWith, l)) { + l.y++; } - }); - if (!saved) { - objKeys[index] = null; } - }); - // TODO: 循环 2470000 次耗时约 1400 ms。 性能瓶颈! - // console.log(Date.now()-s, checkedPositionArr.length * objKeys.length); - objKeys = objKeys.filter(function (i) { - return i; - }); // filter non null; + } + return layout; + } - var _loop3 = function _loop3(_pIndex) { - // 循环设置父节点的 选中 或 半选状态 - var loop = function loop(__pos) { - var _posLen = splitPosition(__pos).length; - if (_posLen <= 2) { - // e.g. '0-0', '0-1' - return; - } - var sibling = 0; - var siblingChecked = 0; - var parentPosition = stripTail(__pos); - objKeys.forEach(function (i /* , index*/) { - var iArr = splitPosition(i); - if (iArr.length === _posLen && isInclude(splitPosition(parentPosition), iArr)) { - sibling++; - if (obj[i].checked) { - siblingChecked++; - var _i = checkedPositionArr.indexOf(i); - if (_i > -1) { - checkedPositionArr.splice(_i, 1); - if (_i <= _pIndex) { - _pIndex--; - } - } - } else if (obj[i].halfChecked) { - siblingChecked += 0.5; - } - // objKeys[index] = null; - } - }); - // objKeys = objKeys.filter(i => i); // filter non null; - var parent = obj[parentPosition]; - // sibling 不会等于0 - // 全不选 - 全选 - 半选 - if (siblingChecked === 0) { - parent.checked = false; - parent.halfChecked = false; - } else if (siblingChecked === sibling) { - parent.checked = true; - parent.halfChecked = false; - } else { - parent.halfChecked = true; - parent.checked = false; - } - loop(parentPosition); - }; - loop(checkedPositionArr[_pIndex], _pIndex); - pIndex = _pIndex; - }; + /** + * Get a layout item by ID. Used so we can override later on if necessary. + * + * @param {Array} layout Layout array. + * @param {String} id ID + * @return {LayoutItem} Item at ID. + */ + function getLayoutItem(layout, id) { + for (var _i6 = 0, len = layout.length; _i6 < len; _i6++) { + if (layout[_i6].i === id) return layout[_i6]; + } + } - for (var pIndex = 0; pIndex < checkedPositionArr.length; pIndex++) { - _loop3(pIndex); + /** + * Returns the first item this layout collides with. + * It doesn't appear to matter which order we approach this from, although + * perhaps that is the wrong thing to do. + * + * @param {Object} layoutItem Layout item. + * @return {Object|undefined} A colliding layout item, or undefined. + */ + function getFirstCollision(layout, layoutItem) { + for (var _i7 = 0, len = layout.length; _i7 < len; _i7++) { + if (collides(layout[_i7], layoutItem)) return layout[_i7]; } - // console.log(Date.now()-s, objKeys.length, checkIt); } - function getCheck(treeNodesStates) { - var halfCheckedKeys = []; - var checkedKeys = []; - var checkedNodes = []; - var checkedNodesPositions = []; - Object.keys(treeNodesStates).forEach(function (item) { - var itemObj = treeNodesStates[item]; - if (itemObj.checked) { - checkedKeys.push(itemObj.key); - checkedNodes.push(itemObj.node); - checkedNodesPositions.push({ node: itemObj.node, pos: item }); - } else if (itemObj.halfChecked) { - halfCheckedKeys.push(itemObj.key); - } + function getAllCollisions(layout, layoutItem) { + return layout.filter(function (l) { + return collides(l, layoutItem); }); - return { - halfCheckedKeys: halfCheckedKeys, checkedKeys: checkedKeys, checkedNodes: checkedNodes, checkedNodesPositions: checkedNodesPositions, treeNodesStates: treeNodesStates - }; } - function getStrictlyValue(checkedKeys, halfChecked) { - if (halfChecked) { - return { checked: checkedKeys, halfChecked: halfChecked }; - } - return checkedKeys; + /** + * Get all static elements. + * @param {Array} layout Array of layout objects. + * @return {Array} Array of static layout items.. + */ + function getStatics(layout) { + return layout.filter(function (l) { + return l.static; + }); } - function arraysEqual(a, b) { - if (a === b) return true; - if (a === null || typeof a === 'undefined' || b === null || typeof b === 'undefined') { - return false; - } - if (a.length !== b.length) return false; + /** + * Move an element. Responsible for doing cascading movements of other elements. + * + * @param {Array} layout Full layout to modify. + * @param {LayoutItem} l element to move. + * @param {Number} [x] X position in grid units. + * @param {Number} [y] Y position in grid units. + */ + function moveElement(layout, l, x, y, isUserAction, preventCollision, compactType, cols) { + if (l.static) return layout; - // If you don't care about the order of the elements inside - // the array, you should sort both arrays here. + // Short-circuit if nothing to do. + if (l.y === y && l.x === x) return layout; - for (var i = 0; i < a.length; ++i) { - if (a[i] !== b[i]) return false; + log("Moving element " + l.i + " to [" + String(x) + "," + String(y) + "] from [" + l.x + "," + l.y + "]"); + var oldX = l.x; + var oldY = l.y; + + // This is quite a bit faster than extending the object + if (typeof x === 'number') l.x = x; + if (typeof y === 'number') l.y = y; + l.moved = true; + + // If this collides with anything, move it. + // When doing this comparison, we have to sort the items we compare with + // to ensure, in the case of multiple collisions, that we're getting the + // nearest collision. + var sorted = sortLayoutItems(layout, compactType); + var movingUp = compactType === "vertical" && typeof y === 'number' ? oldY >= y : compactType === "horizontal" && typeof x === 'number' ? oldX >= x : false; + if (movingUp) sorted = sorted.reverse(); + var collisions = getAllCollisions(sorted, l); + + // There was a collision; abort + if (preventCollision && collisions.length) { + log("Collision prevented on " + l.i + ", reverting."); + l.x = oldX; + l.y = oldY; + l.moved = false; + return layout; } - return true; - } - function closest(el, selector) { - var matchesSelector = el.matches || el.webkitMatchesSelector || el.mozMatchesSelector || el.msMatchesSelector; + // Move each item that collides away from this element. + for (var _i8 = 0, len = collisions.length; _i8 < len; _i8++) { + var collision = collisions[_i8]; + log("Resolving collision between " + l.i + " at [" + l.x + "," + l.y + "] and " + collision.i + " at [" + collision.x + "," + collision.y + "]"); - while (el) { - if (matchesSelector.call(el, selector)) { - return el; + // Short circuit so we can't infinite loop + if (collision.moved) continue; + + // Don't move static items - we have to move *this* element away + if (collision.static) { + layout = moveElementAwayFromCollision(layout, collision, l, isUserAction, compactType, cols); } else { - el = el.parentElement; + layout = moveElementAwayFromCollision(layout, l, collision, isUserAction, compactType, cols); } } - return null; - } - function isTreeNode(node) { - return node && node.type && node.type.isTreeNode; + return layout; } - function toArray(children) { - var ret = []; - _react2["default"].Children.forEach(children, function (c) { - ret.push(c); - }); - return ret; - } + /** + * This is where the magic needs to happen - given a collision, move an element away from the collision. + * We attempt to move it up if there's room, otherwise it goes below. + * + * @param {Array} layout Full layout to modify. + * @param {LayoutItem} collidesWith Layout item we're colliding with. + * @param {LayoutItem} itemToMove Layout item we're moving. + */ + function moveElementAwayFromCollision(layout, collidesWith, itemToMove, isUserAction, compactType, cols) { + var compactH = compactType === "horizontal"; + var compactV = compactType === "vertical"; + var preventCollision = false; // we're already colliding - function getNodeChildren(children) { - return toArray(children).filter(isTreeNode); - } + // If there is enough space above the collision to put this element, move it there. + // We only do this on the main collision as this can get funky in cascades and cause + // unwanted swapping behavior. + if (isUserAction) { + // Reset isUserAction flag because we're not in the main collision anymore. + isUserAction = false; - var onlyTreeNodeWarned = false; + // Make a mock item so we don't modify the item here, only modify in moveElement. + var fakeItem = { + x: compactH ? Math.max(collidesWith.x - itemToMove.w, 0) : itemToMove.x, + y: compactV ? Math.max(collidesWith.y - itemToMove.h, 0) : itemToMove.y, + w: itemToMove.w, + h: itemToMove.h, + i: "-1" + }; - function warnOnlyTreeNode() { - if (onlyTreeNodeWarned) return; - onlyTreeNodeWarned = true; - console.warn('Tree only accept TreeNode as children.'); + // No collision? If so, we can go up there; otherwise, we'll end up moving down as normal + if (!getFirstCollision(layout, fakeItem)) { + log("Doing reverse collision on " + itemToMove.i + " up to [" + fakeItem.x + "," + fakeItem.y + "]."); + return moveElement(layout, itemToMove, compactH ? fakeItem.x : undefined, compactV ? fakeItem.y : undefined, isUserAction, preventCollision, compactType, cols); + } + } + + return moveElement(layout, itemToMove, compactH ? itemToMove.x + 1 : undefined, compactV ? itemToMove.y + 1 : undefined, isUserAction, preventCollision, compactType, cols); } /** - * 将一维数组转换为树结构 - * @param {*} treeData 扁平结构的 List 数组 - * @param {*} attr 属性配置设置 - * @param {*} flatTreeKeysMap 存储所有 key-value 的映射,方便获取各节点信息 + * Helper to convert a number to a percentage string. + * + * @param {Number} num Any number + * @return {String} That number as a percentage. */ - function convertListToTree(treeData, attr, flatTreeKeysMap) { - var tree = []; //存储所有一级节点 - var resData = treeData, - //resData 存储截取的节点 + 父节点(除一级节点外) - resKeysMap = {}, - //resData 的Map映射 - treeKeysMap = {}; //tree 的Map映射 - resData.map(function (element) { - var key = attr.id; - resKeysMap[element[key]] = element; - }); - // 查找父节点,为了补充不完整的数据结构 - var findParentNode = function findParentNode(node) { - var parentKey = node[attr.parendId]; - if (parentKey !== attr.rootId) { - //如果不是根节点,则继续递归 - var item = flatTreeKeysMap[parentKey]; - // 用 resKeysMap 判断,避免重复计算某节点的父节点 - if (resKeysMap.hasOwnProperty(item[attr.id])) return; - resData.unshift(item); - resKeysMap[item[attr.id]] = item; - findParentNode(item); - } else { - // 用 treeKeysMap 判断,避免重复累加 - if (!treeKeysMap.hasOwnProperty(node[attr.id])) { - var key = node.key, - title = node.title, - children = node.children, - isLeaf = node.isLeaf, - otherProps = _objectWithoutProperties(node, ['key', 'title', 'children', 'isLeaf']); + function perc(num) { + return num * 100 + "%"; + } - var obj = { - key: key, - title: title, - isLeaf: isLeaf, - children: [] - }; - tree.push(_extends(obj, _extends({}, otherProps))); - treeKeysMap[key] = node; - } - } + function setTransform(_ref) { + var top = _ref.top, + left = _ref.left, + width = _ref.width, + height = _ref.height; + + // Replace unitless items with px + var translate = "translate(" + left + "px," + top + "px)"; + return { + transform: translate, + WebkitTransform: translate, + MozTransform: translate, + msTransform: translate, + OTransform: translate, + width: width + "px", + height: height + "px", + position: "absolute" }; - // 遍历 resData ,找到所有的一级节点 - for (var i = 0; i < resData.length; i++) { - var item = resData[i]; - if (item[attr.parendId] === attr.rootId && !treeKeysMap.hasOwnProperty(item[attr.id])) { - //如果是根节点,就存放进 tree 对象中 - var key = item.key, - title = item.title, - children = item.children, - otherProps = _objectWithoutProperties(item, ['key', 'title', 'children']); + } - var obj = { - key: item[attr.id], - title: item[attr.name], - isLeaf: item[attr.isLeaf], - children: [] - }; - tree.push(_extends(obj, _extends({}, otherProps))); - treeKeysMap[key] = item; - resData.splice(i, 1); - i--; - } else { - //递归查找根节点信息 - findParentNode(item); - } - } - // console.log('resData',resKeysMap); - var run = function run(treeArrs) { - if (resData.length > 0) { - for (var _i2 = 0; _i2 < treeArrs.length; _i2++) { - for (var j = 0; j < resData.length; j++) { - var _item = resData[j]; - if (treeArrs[_i2].key === _item[attr.parendId]) { - var _key = _item.key, - _title = _item.title, - _children = _item.children, - _otherProps = _objectWithoutProperties(_item, ['key', 'title', 'children']); + function setTopLeft(_ref2) { + var top = _ref2.top, + left = _ref2.left, + width = _ref2.width, + height = _ref2.height; + + return { + top: top + "px", + left: left + "px", + width: width + "px", + height: height + "px", + position: "absolute" + }; + } + + /** + * Get layout items sorted from top left to right and down. + * + * @return {Array} Array of layout objects. + * @return {Array} Layout, sorted static items first. + */ + function sortLayoutItems(layout, compactType) { + if (compactType === "horizontal") return sortLayoutItemsByColRow(layout);else return sortLayoutItemsByRowCol(layout); + } - var _obj = { - key: _item[attr.id], - title: _item[attr.name], - isLeaf: _item[attr.isLeaf], - children: [] - }; - treeArrs[_i2].children.push(_extends(_obj, _extends({}, _otherProps))); - resData.splice(j, 1); - j--; - } - } - run(treeArrs[_i2].children); - } + function sortLayoutItemsByRowCol(layout) { + return [].concat(layout).sort(function (a, b) { + if (a.y > b.y || a.y === b.y && a.x > b.x) { + return 1; + } else if (a.y === b.y && a.x === b.x) { + // Without this, we can get different sort results in IE vs. Chrome/FF + return 0; } - }; - run(tree); - return tree; + return -1; + }); } - function isObject(value) { - var type = typeof value === 'undefined' ? 'undefined' : _typeof(value); - return value != null && (type == 'object' || type == 'function'); + function sortLayoutItemsByColRow(layout) { + return [].concat(layout).sort(function (a, b) { + if (a.x > b.x || a.x === b.x && a.y > b.y) { + return 1; + } + return -1; + }); } /** - * 函数防抖 - * @param {*} func - * @param {*} wait - * @param {*} immediate + * Generate a layout using the initialLayout and children as a template. + * Missing entries will be added, extraneous ones will be truncated. + * + * @param {Array} initialLayout Layout passed in through props. + * @param {String} breakpoint Current responsive breakpoint. + * @param {?String} compact Compaction option. + * @return {Array} Working layout. */ - function debounce(func, wait, immediate) { - var timeout = void 0; - return function debounceFunc() { - var context = this; - var args = arguments; - // https://fb.me/react-event-pooling - if (args[0] && args[0].persist) { - args[0].persist(); - } - var later = function later() { - timeout = null; - if (!immediate) { - func.apply(context, args); + function synchronizeLayoutWithChildren(initialLayout, children, cols, compactType) { + initialLayout = initialLayout || []; + + // Generate one layout item per child. + var layout = []; + _react2.default.Children.forEach(children, function (child, i) { + // Don't overwrite if it already exists. + var exists = getLayoutItem(initialLayout, String(child.key)); + if (exists) { + layout[i] = cloneLayoutItem(exists); + } else { + if (!isProduction && child.props._grid) { + console.warn("`_grid` properties on children have been deprecated as of React 15.2. " + // eslint-disable-line + "Please use `data-grid` or add your properties directly to the `layout`."); + } + var g = child.props["data-grid"] || child.props._grid; + + // Hey, this item has a data-grid property, use it. + if (g) { + if (!isProduction) { + validateLayout([g], "ReactGridLayout.children"); + } + layout[i] = cloneLayoutItem(_extends({}, g, { i: child.key })); + } else { + // Nothing provided: ensure this is added to the bottom + layout[i] = cloneLayoutItem({ + w: 1, + h: 1, + x: 0, + y: bottom(layout), + i: String(child.key) + }); } - }; - var callNow = immediate && !timeout; - clearTimeout(timeout); - timeout = setTimeout(later, wait); - if (callNow) { - func.apply(context, args); } - }; + }); + + // Correct the layout. + layout = correctBounds(layout, { cols: cols }); + layout = compact(layout, compactType, cols); + + return layout; } /** - * 函数节流 - * @param {*} func 延时调用函数 - * @param {*} wait 延迟多长时间 - * @param {*} options 至少多长时间触发一次 - * @return Function 延迟执行的方法 + * Validate a layout. Throws errors. + * + * @param {Array} layout Array of layout items. + * @param {String} [contextName] Context name for errors. + * @throw {Error} Validation error. */ - function throttle(func, wait, options) { - var leading = true; - var trailing = true; + function validateLayout(layout) { + var contextName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "Layout"; - if (typeof func !== 'function') { - throw new TypeError('Expected a function'); - } - if (isObject(options)) { - leading = 'leading' in options ? !!options.leading : leading; - trailing = 'trailing' in options ? !!options.trailing : trailing; + var subProps = ["x", "y", "w", "h"]; + if (!Array.isArray(layout)) throw new Error(contextName + " must be an array!"); + for (var _i9 = 0, len = layout.length; _i9 < len; _i9++) { + var item = layout[_i9]; + for (var j = 0; j < subProps.length; j++) { + if (typeof item[subProps[j]] !== "number") { + throw new Error("ReactGridLayout: " + contextName + "[" + _i9 + "]." + subProps[j] + " must be a number!"); + } + } + if (item.i && typeof item.i !== "string") { + throw new Error("ReactGridLayout: " + contextName + "[" + _i9 + "].i must be a string!"); + } + if (item.static !== undefined && typeof item.static !== "boolean") { + throw new Error("ReactGridLayout: " + contextName + "[" + _i9 + "].static must be a boolean!"); + } } - return debounce(func, wait, { - leading: leading, - trailing: trailing, - 'maxWait': wait - }); } - /***/ }), - /* 188 */ - /***/ (function(module, exports, __webpack_require__) { + // Flow can't really figure this out, so we just use Object + function autoBindHandlers(el, fns) { + fns.forEach(function (key) { + return el[key] = el[key].bind(el); + }); + } - "use strict"; + function log() { + var _console; + if (!DEBUG) return; + // eslint-disable-next-line no-console + (_console = console).log.apply(_console, arguments); + } - exports.__esModule = true; - exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined; + var noop = exports.noop = function noop() {}; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) - var _all2 = __webpack_require__(1322); + /***/ }), + /* 77 */ + /***/ (function(module, exports, __webpack_require__) { - var _all3 = _interopRequireDefault(_all2); + "use strict"; - var _componentOrElement2 = __webpack_require__(1323); - var _componentOrElement3 = _interopRequireDefault(_componentOrElement2); + Object.defineProperty(exports, "__esModule", { + value: true + }); - var _deprecated2 = __webpack_require__(1324); + var _react = __webpack_require__(0); - var _deprecated3 = _interopRequireDefault(_deprecated2); + var _react2 = _interopRequireDefault(_react); - var _elementType2 = __webpack_require__(1325); + var _reactDom = __webpack_require__(3); - var _elementType3 = _interopRequireDefault(_elementType2); + var _reactDom2 = _interopRequireDefault(_reactDom); - var _isRequiredForA11y2 = __webpack_require__(1326); + var _propTypes = __webpack_require__(1); - var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2); + var _propTypes2 = _interopRequireDefault(_propTypes); - var _splitComponent2 = __webpack_require__(1327); + var _ownerDocument = __webpack_require__(42); - var _splitComponent3 = _interopRequireDefault(_splitComponent2); + var _ownerDocument2 = _interopRequireDefault(_ownerDocument); - var _createChainedFunction2 = __webpack_require__(1328); + var _getContainer = __webpack_require__(316); - var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2); + var _getContainer2 = _interopRequireDefault(_getContainer); - var _keyCode = __webpack_require__(1329); + var _tinperBeeCore = __webpack_require__(60); - var _keyCode2 = _interopRequireDefault(_keyCode); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - var _contains2 = __webpack_require__(1330); + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - var _contains3 = _interopRequireDefault(_contains2); + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - var _addEventListener2 = __webpack_require__(481); + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - var _addEventListener3 = _interopRequireDefault(_addEventListener2); + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - var _cssAnimation2 = __webpack_require__(1331); + var isReact16 = _reactDom2["default"].createPortal !== undefined; + var createPortal = isReact16 ? _reactDom2["default"].createPortal : _reactDom2["default"].unstable_renderSubtreeIntoContainer; - var _cssAnimation3 = _interopRequireDefault(_cssAnimation2); + var propTypes = { + /** + * 存放子组件的容器 + */ + container: _propTypes2["default"].oneOfType([_tinperBeeCore.componentOrElement, _propTypes2["default"].func]) + }; - var _toArray2 = __webpack_require__(1333); + var defaultProps = {}; - var _toArray3 = _interopRequireDefault(_toArray2); + /** + * Portal组件是将子组件渲染 + */ - var _Align2 = __webpack_require__(1334); + var Portal = function (_Component) { + _inherits(Portal, _Component); - var _Align3 = _interopRequireDefault(_Align2); + function Portal(props) { + _classCallCheck(this, Portal); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + var _this = _possibleConstructorReturn(this, _Component.call(this, props)); - exports.all = _all3.default; - exports.componentOrElement = _componentOrElement3.default; - exports.deprecated = _deprecated3.default; - exports.elementType = _elementType3.default; - exports.isRequiredForA11y = _isRequiredForA11y3.default; - exports.splitComponent = _splitComponent3.default; - exports.createChainedFunction = _createChainedFunction3.default; - exports.KeyCode = _keyCode2.default; - exports.contains = _contains3.default; - exports.addEventListener = _addEventListener3.default; - exports.cssAnimation = _cssAnimation3.default; - exports.toArray = _toArray3.default; - //export getContainerRenderMixin from './getContainerRenderMixin'; + _this.getMountNode = _this.getMountNode.bind(_this); + _this.getOverlayDOMNode = _this.getOverlayDOMNode.bind(_this); + _this.mountOverlayTarget = _this.mountOverlayTarget.bind(_this); + _this.unmountOverlayTarget = _this.unmountOverlayTarget.bind(_this); + _this.renderOverlay = _this.renderOverlay.bind(_this); + _this.unrenderOverlay = _this.unrenderOverlay.bind(_this); - exports.Align = _Align3.default; + _this.overlayTarget = isReact16 ? document.createElement('div') : null; + return _this; + } - /***/ }), - /* 189 */ - /***/ (function(module, exports, __webpack_require__) { + Portal.prototype.componentDidMount = function componentDidMount() { + if (isReact16) { + this.portalContainerNode = (0, _getContainer2["default"])(this.props.container, (0, _ownerDocument2["default"])(this).body); + this.portalContainerNode.appendChild(this.overlayTarget); + } else { + this.renderOverlay(); + } - "use strict"; + this.mounted = true; + }; + Portal.prototype.componentDidUpdate = function componentDidUpdate() { + if (isReact16) { + var overlay = !this.props.children ? null : _react2["default"].Children.only(this.props.children); + if (overlay === null) { + this.unrenderOverlay(); + this.unmountOverlayTarget(); + } else {} + } else { + this.renderOverlay(); + } + }; + //this._overlayTarget为当前的要添加的子组件, this._portalContainerNode要添加组件的容器元素 - exports.__esModule = true; - exports.default = createChainableTypeChecker; - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - // Mostly taken from ReactPropTypes. + Portal.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { + if (this.overlayTarget && nextProps.container !== this.props.container) { + this.portalContainerNode.removeChild(this.overlayTarget); + this.portalContainerNode = (0, _getContainer2["default"])(nextProps.container, (0, _ownerDocument2["default"])(this).body); + this.portalContainerNode.appendChild(this.overlayTarget); + } + }; - /* This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ + Portal.prototype.componentWillUnmount = function componentWillUnmount() { + this.unrenderOverlay(); + this.unmountOverlayTarget(); - function createChainableTypeChecker(validate) { - function checkType(isRequired, props, propName, componentName, location, propFullName) { - var componentNameSafe = componentName || '<>'; - var propFullNameSafe = propFullName || propName; + this.mounted = false; + }; - if (props[propName] == null) { - if (isRequired) { - return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); - } + Portal.prototype.getMountNode = function getMountNode() { + return this.overlayTarget; + }; - return null; + Portal.prototype.getOverlayDOMNode = function getOverlayDOMNode() { + if (!this.mounted) { + throw new Error('getOverlayDOMNode(): A component must be mounted to have a DOM node.'); } - for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { - args[_key - 6] = arguments[_key]; + if (this.overlayInstance) { + return _reactDom2["default"].findDOMNode(this.overlayInstance); } - return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); - } + return null; + }; - var chainedCheckType = checkType.bind(null, false); - chainedCheckType.isRequired = checkType.bind(null, true); + /** + * 如果要添加的子组件不存在,就将div添加到要添加容器的DOM中; + */ - return chainedCheckType; - } + Portal.prototype.mountOverlayTarget = function mountOverlayTarget() { + if (!this.overlayTarget) { + this.overlayTarget = document.createElement('div'); + this.portalContainerNode = (0, _getContainer2["default"])(this.props.container, (0, _ownerDocument2["default"])(this).body); + this.portalContainerNode.appendChild(this.overlayTarget); + } + }; + /** + * 将要添加的子元素从容器中移除,并把变量置为null + */ - /***/ }), - /* 190 */ - /***/ (function(module, exports, __webpack_require__) { - "use strict"; + Portal.prototype.unmountOverlayTarget = function unmountOverlayTarget() { + if (this.overlayTarget) { + this.portalContainerNode.removeChild(this.overlayTarget); + this.overlayTarget = null; + } + this.portalContainerNode = null; + }; + /** + * 手动渲染_overlayTarget + */ - exports.__esModule = true; - exports.default = createChainableTypeChecker; - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ + Portal.prototype.renderOverlay = function renderOverlay() { - // Mostly taken from ReactPropTypes. + var overlay = !this.props.children ? null : _react2["default"].Children.only(this.props.children); - /* This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ + // Save reference for future access. + if (overlay !== null) { + this.mountOverlayTarget(); + this.overlayInstance = _reactDom2["default"].unstable_renderSubtreeIntoContainer(this, overlay, this.overlayTarget); + } else { + // Unrender if the component is null for transitions to null + this.unrenderOverlay(); + this.unmountOverlayTarget(); + } + }; + /** + * 销毁_overlayTarget组件。并把_overlayInstance置为null + */ - function createChainableTypeChecker(validate) { - function checkType(isRequired, props, propName, componentName, location, propFullName) { - var componentNameSafe = componentName || '<>'; - var propFullNameSafe = propFullName || propName; - if (props[propName] == null) { - if (isRequired) { - return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); - } + Portal.prototype.unrenderOverlay = function unrenderOverlay() { + if (this.overlayTarget) { + !isReact16 && _reactDom2["default"].unmountComponentAtNode(this.overlayTarget); + this.overlayInstance = null; + } + }; + Portal.prototype.render = function render() { + if (!isReact16) { return null; } - for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { - args[_key - 6] = arguments[_key]; - } + var overlay = !this.props.children ? null : _react2["default"].Children.only(this.props.children); - return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); - } + return _reactDom2["default"].createPortal(overlay, this.overlayTarget); + }; - var chainedCheckType = checkType.bind(null, false); - chainedCheckType.isRequired = checkType.bind(null, true); + return Portal; + }(_react.Component); - return chainedCheckType; - } + ; + + Portal.propTypes = propTypes; + Portal.defaultProps = defaultProps; + + exports["default"] = Portal; + module.exports = exports['default']; /***/ }), - /* 191 */ + /* 78 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -125969,442 +115118,516 @@ Object.defineProperty(exports, "__esModule", { value: true }); - exports.destroyFns = undefined; + exports.toArray = toArray; + exports.getActiveIndex = getActiveIndex; + exports.getActiveKey = getActiveKey; + exports.setTransform = setTransform; + exports.isTransformSupported = isTransformSupported; + exports.setTransition = setTransition; + exports.getTransformPropValue = getTransformPropValue; + exports.isVertical = isVertical; + exports.getTransformByIndex = getTransformByIndex; + exports.getMarginStyle = getMarginStyle; + exports.getStyle = getStyle; + exports.setPxStyle = setPxStyle; + exports.getLeft = getLeft; + exports.getTop = getTop; + exports.getDataAttr = getDataAttr; - var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }(); + var _react = __webpack_require__(0); - var _extends2; + var _react2 = _interopRequireDefault(_react); - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - var _classnames = __webpack_require__(2); + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } /** + * This source code is quoted from rc-tabs. + * homepage: https://github.com/react-component/tabs + */ - var _classnames2 = _interopRequireDefault(_classnames); - var _events = __webpack_require__(163); + function toArray(children) { + // allow [c,[a,b]] + var c = []; + _react2["default"].Children.forEach(children, function (child) { + if (child) { + c.push(child); + } + }); + return c; + } - var _events2 = _interopRequireDefault(_events); + function getActiveIndex(children, activeKey) { + var c = toArray(children); + for (var i = 0; i < c.length; i++) { + if (c[i].key === activeKey) { + return i; + } + } + return -1; + } - var _ownerDocument = __webpack_require__(22); + function getActiveKey(children, index) { + var c = toArray(children); + return c[index].key; + } - var _ownerDocument2 = _interopRequireDefault(_ownerDocument); + function setTransform(style, v) { + style.transform = v; + style.webkitTransform = v; + style.mozTransform = v; + } - var _inDOM = __webpack_require__(25); + function isTransformSupported(style) { + return 'transform' in style || 'webkitTransform' in style || 'MozTransform' in style; + } - var _inDOM2 = _interopRequireDefault(_inDOM); + function setTransition(style, v) { + style.transition = v; + style.webkitTransition = v; + style.MozTransition = v; + } + function getTransformPropValue(v) { + return { + transform: v, + WebkitTransform: v, + MozTransform: v + }; + } - var _scrollbarSize = __webpack_require__(104); + function isVertical(tabBarPosition) { + return tabBarPosition === 'left' || tabBarPosition === 'right'; + } - var _scrollbarSize2 = _interopRequireDefault(_scrollbarSize); + function getTransformByIndex(index, tabBarPosition) { + var translate = isVertical(tabBarPosition) ? 'translateY' : 'translateX'; + return translate + '(' + -index * 100 + '%) translateZ(0)'; + } - var _scrollTop = __webpack_require__(45); + function getMarginStyle(index, tabBarPosition) { + var marginDirection = isVertical(tabBarPosition) ? 'marginTop' : 'marginLeft'; + return _defineProperty({}, marginDirection, -index * 100 + '%'); + } - var _scrollTop2 = _interopRequireDefault(_scrollTop); + function getStyle(el, property) { + return +getComputedStyle(el).getPropertyValue(property).replace('px', ''); + } - var _react = __webpack_require__(0); + function setPxStyle(el, property, value) { + el.style[property] = value + 'px'; + } - var _react2 = _interopRequireDefault(_react); + function toNum(style, property) { + return +style.getPropertyValue(property).replace('px', ''); + } - var _reactDom = __webpack_require__(3); + function getTypeValue(start, current, end, tabNode, wrapperNode) { + var total = getStyle(wrapperNode, 'padding-' + start); + if (!tabNode || !tabNode.parentNode) { + return total; + } - var _reactDom2 = _interopRequireDefault(_reactDom); + var childNodes = tabNode.parentNode.childNodes; - var _Modal = __webpack_require__(164); + Array.prototype.some.call(childNodes, function (node) { + var style = window.getComputedStyle(node); - var _Modal2 = _interopRequireDefault(_Modal); + if (node !== tabNode) { + total += toNum(style, 'margin-' + start); + total += node[current]; + total += toNum(style, 'margin-' + end); - var _isOverflowing = __webpack_require__(105); + if (style.boxSizing === 'content-box') { + total += toNum(style, 'border-' + start + '-width') + toNum(style, 'border-' + end + '-width'); + } + return false; + } - var _isOverflowing2 = _interopRequireDefault(_isOverflowing); + // We need count current node margin + // ref: https://github.com/react-component/tabs/pull/139#issuecomment-431005262 + total += toNum(style, 'margin-' + start); - var _tinperBeeCore = __webpack_require__(33); + return true; + }); - var _beeTransition = __webpack_require__(1379); + return total; + } - var _ModalBody = __webpack_require__(1383); + function getLeft(tabNode, wrapperNode) { + return getTypeValue('left', 'offsetWidth', 'right', tabNode, wrapperNode); + } - var _ModalBody2 = _interopRequireDefault(_ModalBody); + function getTop(tabNode, wrapperNode) { + return getTypeValue('top', 'offsetHeight', 'bottom', tabNode, wrapperNode); + } + + function getDataAttr(props) { + return Object.keys(props).reduce(function (prev, key) { + if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') { + prev[key] = props[key]; + } + return prev; + }, {}); + } - var _ModalDialog = __webpack_require__(1384); + /***/ }), + /* 79 */ + /***/ (function(module, exports, __webpack_require__) { - var _ModalDialog2 = _interopRequireDefault(_ModalDialog); + "use strict"; - var _ModalFooter = __webpack_require__(1390); - var _ModalFooter2 = _interopRequireDefault(_ModalFooter); + Object.defineProperty(exports, "__esModule", { + value: true + }); - var _ModalHeader = __webpack_require__(1391); + var _react = __webpack_require__(0); - var _ModalHeader2 = _interopRequireDefault(_ModalHeader); + var _react2 = _interopRequireDefault(_react); - var _ModalTitle = __webpack_require__(1392); + var _reactDom = __webpack_require__(3); - var _ModalTitle2 = _interopRequireDefault(_ModalTitle); + var _reactDom2 = _interopRequireDefault(_reactDom); var _propTypes = __webpack_require__(1); var _propTypes2 = _interopRequireDefault(_propTypes); + var _tinperBeeCore = __webpack_require__(6); + + var _reactLifecyclesCompat = __webpack_require__(12); + + var _moment = __webpack_require__(4); + + var _moment2 = _interopRequireDefault(_moment); + + var _util = __webpack_require__(33); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var propTypes = _extends({}, _Modal2["default"].propTypes, _ModalDialog2["default"].propTypes, (_extends2 = { - - /** - * 是否弹出遮罩层/遮罩层点击是否触发关闭 - */ - backdrop: _propTypes2["default"].oneOf(['static', true, false]), - - /** - * 点击遮罩层是否允许关闭 - */ - backdropClosable: _propTypes2["default"].bool, - /** - * esc触发关闭 - */ - keyboard: _propTypes2["default"].bool, + var cachedSelectionStart = void 0; + var cachedSelectionEnd = void 0; + var dateInputInstance = void 0; - /** - * 显隐时是否使用动画 - */ - animation: _propTypes2["default"].bool, + var DateInput = function (_React$Component) { + _inherits(DateInput, _React$Component); - /** - * 传递给模态框的样式 - */ - dialogComponentClass: _tinperBeeCore.elementType, + function DateInput(props) { + _classCallCheck(this, DateInput); - /** - * 自动设置焦点 - */ - autoFocus: _propTypes2["default"].bool, + var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); - /** - * 防止打开时焦点离开模态框 - */ - enforceFocus: _propTypes2["default"].bool, + _initialiseProps.call(_this); - /** - * 是否打开模态框 - */ - show: _propTypes2["default"].bool, + var selectedValue = props.selectedValue; - /** - * 关闭时的钩子函数 - */ - onHide: _propTypes2["default"].func, + _this.state = { + str: (0, _util.formatDate)(selectedValue, _this.props.format), + invalid: false, + hasFocus: false + }; + return _this; + } - onEnter: _propTypes2["default"].func, + DateInput.prototype.componentDidUpdate = function componentDidUpdate() { + if (dateInputInstance && this.state.hasFocus && !this.state.invalid && !(cachedSelectionStart === 0 && cachedSelectionEnd === 0)) { + dateInputInstance.setSelectionRange(cachedSelectionStart, cachedSelectionEnd); + } + }; - onEntering: _propTypes2["default"].func, + DateInput.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, state) { + var newState = {}; - onEntered: _propTypes2["default"].func, + if (dateInputInstance) { + cachedSelectionStart = dateInputInstance.selectionStart; + cachedSelectionEnd = dateInputInstance.selectionEnd; + } + // when popup show, click body will call this, bug! + var selectedValue = nextProps.selectedValue; + if (!state.hasFocus) { + newState = { + str: (0, _util.formatDate)(selectedValue, nextProps.format), + invalid: false + }; + } - onExit: _propTypes2["default"].func, + return newState; + }; - onExiting: _propTypes2["default"].func, + DateInput.getInstance = function getInstance() { + return dateInputInstance; + }; - onExited: _propTypes2["default"].func, + DateInput.prototype.render = function render() { + var props = this.props; + var _state = this.state, + invalid = _state.invalid, + str = _state.str; + var locale = props.locale, + prefixCls = props.prefixCls, + placeholder = props.placeholder, + clearIcon = props.clearIcon, + renderError = props.renderError, + inputTabIndex = props.inputTabIndex; - containerClassName: _propTypes2["default"].string - }, _defineProperty(_extends2, 'containerClassName', _propTypes2["default"].string), _defineProperty(_extends2, 'container', _Modal2["default"].propTypes.container), _defineProperty(_extends2, 'size', _propTypes2["default"].oneOf(["sm", "lg", "xlg", ""])), _defineProperty(_extends2, 'width', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'draggable', _propTypes2["default"].bool), _defineProperty(_extends2, 'resizable', _propTypes2["default"].bool), _defineProperty(_extends2, 'resizeClassName', _propTypes2["default"].string), _defineProperty(_extends2, 'onResizeStart', _propTypes2["default"].func), _defineProperty(_extends2, 'onResize', _propTypes2["default"].func), _defineProperty(_extends2, 'onResizeStop', _propTypes2["default"].func), _defineProperty(_extends2, 'minWidth', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'minHeight', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'maxWidth', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'maxHeight', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'bounds', _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].object])), _defineProperty(_extends2, 'className', _propTypes2["default"].string), _defineProperty(_extends2, 'centered', _propTypes2["default"].bool), _extends2)); + var invalidClass = invalid ? prefixCls + '-input-invalid' : ''; + return _react2["default"].createElement( + 'div', + { className: prefixCls + '-input-wrap' }, + _react2["default"].createElement( + 'div', + { className: prefixCls + '-date-input-wrap' }, + _react2["default"].createElement('input', { + ref: this.saveDateInput, + className: prefixCls + '-input ' + invalidClass, + value: str ? str : (0, _util.formatDate)(props.selectedValue, props.format), + disabled: props.disabled, + placeholder: placeholder, + onChange: this.onInputChange, + onKeyDown: this.onKeyDown, + onFocus: this.onFocus, + onBlur: this.onBlur, + tabIndex: inputTabIndex + }), + invalid && renderError ? renderError() : '' + ), + props.showClear ? _react2["default"].createElement( + 'a', + { + role: 'button', + title: locale.clear, + onClick: this.onClear + }, + clearIcon || _react2["default"].createElement('span', { className: prefixCls + '-clear-btn uf uf-close-c' }) + ) : null + ); + }; - var defaultProps = _extends({}, _Modal2["default"].defaultProps, { - backdropClosable: true, - animation: true, - dialogComponentClass: _ModalDialog2["default"], - draggable: false, - resizable: false, - clsPrefix: 'u-modal', - className: '' - }); + return DateInput; + }(_react2["default"].Component); - var ModalFuncProps = { + DateInput.propTypes = { prefixCls: _propTypes2["default"].string, - className: _propTypes2["default"].string, - show: _propTypes2["default"].bool, - title: _react2["default"].ReactNode, - content: _react2["default"].ReactNode, - onOk: _propTypes2["default"].func, - onCancel: _propTypes2["default"].func, - width: _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string]), - okText: _propTypes2["default"].string, - okType: _propTypes2["default"].string, - cancelText: _propTypes2["default"].string, - icon: _react2["default"].ReactNode, - backdrop: _propTypes2["default"].oneOf(['static', true, false]) - }; - - var ModalFunc = function ModalFunc(props) { - destroy = function destroy() {}; - update = function update(newConfig) {}; - }; - - var destroyFns = exports.destroyFns = []; - - var childContextTypes = { - $u_modal: _propTypes2["default"].shape({ - onHide: _propTypes2["default"].func - }) + timePicker: _propTypes2["default"].object, + value: _propTypes2["default"].object, + disabledTime: _propTypes2["default"].any, + format: _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].arrayOf(_propTypes2["default"].string)]), + locale: _propTypes2["default"].object, + disabledDate: _propTypes2["default"].func, + onChange: _propTypes2["default"].func, + onClear: _propTypes2["default"].func, + placeholder: _propTypes2["default"].string, + onSelect: _propTypes2["default"].func, + selectedValue: _propTypes2["default"].object, + clearIcon: _propTypes2["default"].node }; - var Modal = function (_React$Component) { - _inherits(Modal, _React$Component); - - function Modal(props, context) { - _classCallCheck(this, Modal); - - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context)); - - _this.clearCenteredCls = function () { - var centered = _this.state.centered; - - if (!centered) { - return; - } - _this.offsetTop = _this.getOffsetTop(); - _this.setState({ - centered: false - }); - }; - - _this.state = { - style: {}, - centered: props.centered, - draging: false, - draged: false - }; - _this.offsetTop = 0; - _this.handleEntering = _this.handleEntering.bind(_this); - _this.handleExited = _this.handleExited.bind(_this); - _this.handleWindowResize = _this.handleWindowResize.bind(_this); - _this.handleDialogClick = _this.handleDialogClick.bind(_this); - return _this; - } - - Modal.prototype.getChildContext = function getChildContext() { - return { - $u_modal: { - onHide: this.props.onHide - } - }; - }; - - Modal.prototype.componentWillUnmount = function componentWillUnmount() { - // Clean up the listener if we need to. - this.handleExited(); - }; - - Modal.prototype.handleEntering = function handleEntering() { - // FIXME: This should work even when animation is disabled. - _events2["default"].on(window, 'resize', this.handleWindowResize); - this.updateStyle(); - }; + var _initialiseProps = function _initialiseProps() { + var _this2 = this; - Modal.prototype.handleExited = function handleExited() { - this.setState({ - draging: false, - draged: false + this.onClear = function () { + _this2.setState({ + str: '' }); - // FIXME: This should work even when animation is disabled. - _events2["default"].off(window, 'resize', this.handleWindowResize); + _this2.props.onClear(null); }; - Modal.prototype.handleWindowResize = function handleWindowResize() { - this.updateStyle(); - }; + this.onInputChange = function (event) { + var str = event.target.value; + var _props = _this2.props, + disabledDate = _props.disabledDate, + format = _props.format, + onChange = _props.onChange, + selectedValue = _props.selectedValue, + validatorFunc = _props.validatorFunc; - Modal.prototype.handleDialogClick = function handleDialogClick(e) { - if (e.target !== e.currentTarget) { + // 没有内容,合法并直接退出 + + if (!str) { + onChange(null); + _this2.setState({ + // invalid: false, + str: str + }); return; } - this.props.onHide(); - }; - - Modal.prototype.updateStyle = function updateStyle() { - if (!_inDOM2["default"] || !this._modal) { + // 不合法直接退出 + var parsed = (0, _moment2["default"])(str, format, true); + if (!parsed.isValid()) { + _this2.setState({ + // invalid: true, + str: str + }); return; } + if (!_this2.props.validatorFunc(str)) { + _this2.setState({ + str: str + }); + return; + }; - var dialogNode = this._modal.getDialogElement(); - var dialogHeight = dialogNode.scrollHeight; + var value = _this2.props.value.clone(); + value.year(parsed.year()).month(parsed.month()).date(parsed.date()).hour(parsed.hour()).minute(parsed.minute()).second(parsed.second()); - var document = (0, _ownerDocument2["default"])(dialogNode); - var bodyIsOverflowing = false; - if (this.props.container) { - bodyIsOverflowing = (0, _isOverflowing2["default"])(_reactDom2["default"].findDOMNode(this.props.container)); + if (!value || disabledDate && disabledDate(value)) { + _this2.setState({ + // invalid: true, + str: str + }); + return; } - var modalIsOverflowing = dialogHeight > document.documentElement.clientHeight; - this.setState({ - style: { - paddingRight: bodyIsOverflowing && !modalIsOverflowing ? (0, _scrollbarSize2["default"])() : undefined, - paddingLeft: !bodyIsOverflowing && modalIsOverflowing ? (0, _scrollbarSize2["default"])() : undefined - } - }); + if (selectedValue !== value || selectedValue && value && !selectedValue.isSame(value)) { + _this2.setState({ + // invalid: false, + str: str + }); + onChange(value); + } }; - //ResizeStart 时,若模态框设置了 `centered` ,需要把居中属性移除,并通过 offsetTop 制造垂直居中的假象 - //fixbug: Resize 和 centered 一起使用时,拖拽交互不正确 - - //计算 ModalDialog 的 offsetTop - Modal.prototype.getOffsetTop = function getOffsetTop() { - var modalDialog = document.getElementsByClassName("u-modal-dialog") && document.getElementsByClassName("u-modal-dialog")[0]; - var topPos = modalDialog && modalDialog.offsetTop; - return topPos; + this.onFocus = function () { + _this2.setState({ hasFocus: true }); }; - Modal.prototype.render = function render() { - var _this2 = this; - - var _props = this.props, - backdrop = _props.backdrop, - backdropClosable = _props.backdropClosable, - animation = _props.animation, - show = _props.show, - Dialog = _props.dialogComponentClass, - className = _props.className, - clsPrefix = _props.clsPrefix, - _props$style = _props.style, - style = _props$style === undefined ? {} : _props$style, - size = _props.size, - width = _props.width, - children = _props.children, - onEntering = _props.onEntering, - onExited = _props.onExited, - backdropClassName = _props.backdropClassName, - containerClassName = _props.containerClassName, - draggable = _props.draggable, - resizeClassName = _props.resizeClassName, - bounds = _props.bounds, - container = _props.container, - onStart = _props.onStart, - onStop = _props.onStop, - props = _objectWithoutProperties(_props, ['backdrop', 'backdropClosable', 'animation', 'show', 'dialogComponentClass', 'className', 'clsPrefix', 'style', 'size', 'width', 'children', 'onEntering', 'onExited', 'backdropClassName', 'containerClassName', 'draggable', 'resizeClassName', 'bounds', 'container', 'onStart', 'onStop']); - - var _state = this.state, - centered = _state.centered, - draging = _state.draging, - draged = _state.draged; - - var dialogMarginTop = 30; - //ResizeStart 时,计算 ModalDialog 的 offsetTop - var topPosStyle = this.offsetTop > 0 ? { top: this.offsetTop - dialogMarginTop } : null; - - var _splitComponent = (0, _tinperBeeCore.splitComponent)(props, _Modal2["default"]), - _splitComponent2 = _slicedToArray(_splitComponent, 2), - baseModalProps = _splitComponent2[0], - dialogProps = _splitComponent2[1]; + this.onBlur = function (e) { + var str = e.target.value; + var _props2 = _this2.props, + disabledDate = _props2.disabledDate, + format = _props2.format, + onChange = _props2.onChange, + selectedValue = _props2.selectedValue; - var inClassName = show && !animation && 'in'; + // 没有内容,合法并直接退出 - var backdropClasses = _defineProperty({}, clsPrefix + '-backdrop', true); - var containerClasses = _defineProperty({}, clsPrefix + '-open', true); - if (!!centered) { - className += ' ' + clsPrefix + '-centered'; - } - if (draging) { - className += ' draging'; - } - if (draged) { - className += ' draged'; + if (!str) { + _this2.setState({ + invalid: false + }); + return; } - if (Number(width)) width += 'px'; - var styleRes = _extends({}, this.state.style, style, topPosStyle); - if (width) { - _extends(styleRes, { width: width }); - } - return _react2["default"].createElement( - _Modal2["default"], - _extends({}, baseModalProps, { - ref: function ref(c) { - _this2._modal = c; - }, - show: show, - onEntering: (0, _tinperBeeCore.createChainedFunction)(onEntering, this.handleEntering), - onExited: (0, _tinperBeeCore.createChainedFunction)(onExited, this.handleExited), - backdrop: backdrop, - backdropClassName: (0, _classnames2["default"])(backdropClasses, inClassName, backdropClassName), - containerClassName: (0, _classnames2["default"])(containerClasses, containerClassName), - transition: animation ? _beeTransition.Fade : undefined, - dialogTransitionTimeout: Modal.TRANSITION_DURATION, - backdropTransitionTimeout: Modal.BACKDROP_TRANSITION_DURATION, - container: container - }), - _react2["default"].createElement( - Dialog, - _extends({}, dialogProps, { - style: styleRes, - className: (0, _classnames2["default"])(className, inClassName, backdropClassName), - onClick: backdrop === true && !!backdropClosable ? this.handleDialogClick : null, - size: size, - draggable: draggable, - bounds: bounds, - resizeClassName: resizeClassName, - clearCenteredCls: this.clearCenteredCls, - onStart: function onStart() { - _this2.setState({ - draging: true, - draged: false - }); - }, - onStop: function onStop() { - _this2.setState({ - draging: false, - draged: true - }); - } - }), - children - ) - ); + // 不合法直接退出 + var parsed = (0, _moment2["default"])(str, format, true); + if (!parsed.isValid()) { + _this2.setState({ + invalid: true + }); + return; + } + if (!_this2.props.validatorFunc(str)) { + _this2.setState({ + invalid: true + }); + return; + }; + + var value = _this2.props.value.clone(); + value.year(parsed.year()).month(parsed.month()).date(parsed.date()).hour(parsed.hour()).minute(parsed.minute()).second(parsed.second()); + + if (!value || disabledDate && disabledDate(value)) { + _this2.setState({ + invalid: true + }); + return; + } + + if (selectedValue !== value || selectedValue && value && !selectedValue.isSame(value)) { + _this2.setState({ + invalid: false + }); + } + + _this2.setState(function (prevState, prevProps) { + return { + hasFocus: false, + str: (0, _util.formatDate)(prevProps.value, prevProps.format) + }; + }); + _this2.props.onBlur && _this2.props.onBlur(e); }; - return Modal; - }(_react2["default"].Component); + this.onKeyDown = function (e) { + var _props3 = _this2.props, + onSelect = _props3.onSelect, + value = _props3.value, + onKeyDown = _props3.onKeyDown, + format = _props3.format, + isRange = _props3.isRange, + validatorFunc = _props3.validatorFunc, + disabledDate = _props3.disabledDate; - Modal.info = ModalFunc; - Modal.success = ModalFunc; - Modal.error = ModalFunc; - Modal.warn = ModalFunc; - Modal.warning = ModalFunc; - Modal.confirm = ModalFunc; + var str = e.target.value; + var parsed = (0, _moment2["default"])(str, format, true); + if (e.keyCode === _tinperBeeCore.KeyCode.ENTER) { + if (parsed.isValid() && onSelect) { + isRange ? onSelect(parsed.clone()) : onSelect(value.clone()); //FIX https://github.com/iuap-design/tinper-bee/issues/183 + } + // 没有内容,回填默认值,并关闭面板 + if (!str) { + _this2.setState({ + invalid: false + }); + onSelect && onSelect((0, _moment2["default"])()); + return; + } + // 有内容,判断是否合法 + if (!parsed.isValid()) { + _this2.setState({ + invalid: true + }); + } + if (!validatorFunc(str)) { + _this2.setState({ + invalid: true + }); + } + value.year(parsed.year()).month(parsed.month()).date(parsed.date()).hour(parsed.hour()).minute(parsed.minute()).second(parsed.second()); - Modal.destroyAll = function () { - return; - }; + if (!value || disabledDate && disabledDate(value)) { + _this2.setState({ + invalid: true + }); + } + } + // if (e.keyCode === KeyCode.ENTER && onSelect) { + // onSelect(value.clone()); + // } + onKeyDown && onKeyDown(e); + }; - Modal.propTypes = propTypes; - Modal.defaultProps = defaultProps; - Modal.childContextTypes = childContextTypes; + this.getRootDOMNode = function () { + return _reactDom2["default"].findDOMNode(_this2); + }; - Modal.Body = _ModalBody2["default"]; - Modal.Header = _ModalHeader2["default"]; - Modal.Title = _ModalTitle2["default"]; - Modal.Footer = _ModalFooter2["default"]; + this.focus = function () { + if (dateInputInstance) { + dateInputInstance.focus(); + } + }; - Modal.Dialog = _ModalDialog2["default"]; + this.saveDateInput = function (dateInput) { + dateInputInstance = dateInput; + }; + }; - Modal.TRANSITION_DURATION = 200000; - Modal.BACKDROP_TRANSITION_DURATION = 10000; + (0, _reactLifecyclesCompat.polyfill)(DateInput); - exports["default"] = Modal; + exports["default"] = DateInput; + module.exports = exports['default']; /***/ }), - /* 192 */ + /* 80 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -126413,9 +115636,6 @@ Object.defineProperty(exports, "__esModule", { value: true }); - exports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = undefined; - - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _react = __webpack_require__(0); @@ -126425,332 +115645,275 @@ var _reactDom2 = _interopRequireDefault(_reactDom); - var _properties = __webpack_require__(27); - - var _properties2 = _interopRequireDefault(_properties); - - var _on = __webpack_require__(17); - - var _on2 = _interopRequireDefault(_on); - - var _classnames = __webpack_require__(2); - - var _classnames2 = _interopRequireDefault(_classnames); - var _propTypes = __webpack_require__(1); var _propTypes2 = _interopRequireDefault(_propTypes); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var _reactLifecyclesCompat = __webpack_require__(12); - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + var _createChainedFunction = __webpack_require__(290); - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + var _createChainedFunction2 = _interopRequireDefault(_createChainedFunction); - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + var _KeyCode = __webpack_require__(59); - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + var _KeyCode2 = _interopRequireDefault(_KeyCode); - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + var _placements = __webpack_require__(1234); - var transitionEndEvent = _properties2["default"].end; + var _placements2 = _interopRequireDefault(_placements); - //设置状态码 - var UNMOUNTED = exports.UNMOUNTED = 0; - var EXITED = exports.EXITED = 1; - var ENTERING = exports.ENTERING = 2; - var ENTERED = exports.ENTERED = 3; - var EXITING = exports.EXITING = 4; + var _rcTrigger = __webpack_require__(74); - var propTypes = { - /** - * 是否触发动画 - */ - "in": _propTypes2["default"].bool, + var _rcTrigger2 = _interopRequireDefault(_rcTrigger); - /** - * 不显示的时候是否移除组件 - */ - unmountOnExit: _propTypes2["default"].bool, + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - /** - * 如果设置为默认显示,挂载时显示动画 - */ - transitionAppear: _propTypes2["default"].bool, + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - /** - * 设置超时时间,防止出现问题,可设置为>=动画时间 - */ - timeout: _propTypes2["default"].number, + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - /** - * 退出组件时添加的class - */ - exitedClassName: _propTypes2["default"].string, - /** - * 退出组件中添加的class - */ - exitingClassName: _propTypes2["default"].string, - /** - * 进入动画后添加的class - */ - enteredClassName: _propTypes2["default"].string, - /** - * 进入动画时添加的class - */ - enteringClassName: _propTypes2["default"].string, + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - /** - * 进入动画开始时的钩子函数 - */ - onEnter: _propTypes2["default"].func, - /** - * 进入动画中的钩子函数 - */ - onEntering: _propTypes2["default"].func, - /** - * 进入动画后的钩子函数 - */ - onEntered: _propTypes2["default"].func, - /** - * 退出动画开始时的钩子函数 - */ - onExit: _propTypes2["default"].func, - /** - * 退出动画中的钩子函数 - */ - onExiting: _propTypes2["default"].func, - /** - * 退出动画后的钩子函数 - */ - onExited: _propTypes2["default"].func - }; + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } function noop() {} - var defaultProps = { - "in": false, - unmountOnExit: false, - transitionAppear: false, - timeout: 5000, - onEnter: noop, - onEntering: noop, - onEntered: noop, - onExit: noop, - onExiting: noop, - onExited: noop - }; + function refFn(field, component) { + this[field] = component; + } - /** - * 动画组件 - */ + var Picker = function (_React$Component) { + _inherits(Picker, _React$Component); - var Transition = function (_Component) { - _inherits(Transition, _Component); + function Picker(props) { + _classCallCheck(this, Picker); - function Transition(props, context) { - _classCallCheck(this, Transition); + var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); - var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); + _initialiseProps.call(_this); - var initialStatus = void 0; - if (props["in"]) { - // 在componentdidmount时开始执行动画 - initialStatus = props.transitionAppear ? EXITED : ENTERED; + var open = void 0; + if ('open' in props) { + open = props.open; } else { - initialStatus = props.unmountOnExit ? UNMOUNTED : EXITED; + open = props.defaultOpen; } - _this.state = { status: initialStatus }; + var value = props.value || props.defaultValue; + _this.saveCalendarRef = refFn.bind(_this, 'calendarInstance'); - _this.nextCallback = null; + _this.state = { + open: open, + value: value + }; return _this; } - Transition.prototype.componentDidMount = function componentDidMount() { - if (this.props.transitionAppear && this.props["in"]) { - this.performEnter(this.props); + Picker.prototype.componentDidUpdate = function componentDidUpdate(_, prevState) { + if (!prevState.open && this.state.open) { + // setTimeout is for making sure saveCalendarRef happen before focusCalendar + this.focusTimeout = setTimeout(this.focusCalendar, 0, this); } }; - Transition.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - if (nextProps["in"] && this.props.unmountOnExit) { - if (this.state.status === UNMOUNTED) { - // 在componentDidUpdate执行动画. - this.setState({ status: EXITED }); - } - } else { - this._needsUpdate = true; - } + Picker.prototype.componentWillUnmount = function componentWillUnmount() { + clearTimeout(this.focusTimeout); }; - Transition.prototype.componentDidUpdate = function componentDidUpdate() { - var status = this.state.status; - - if (this.props.unmountOnExit && status === EXITED) { - // 当使用unmountOnExit时,exited为exiting和unmont的过渡状态 - if (this.props["in"]) { - this.performEnter(this.props); - } else { - this.setState({ status: UNMOUNTED }); - } + Picker.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps) { + var newState = {}; + var value = nextProps.value, + open = nextProps.open; - return; + if ('value' in nextProps) { + newState.value = value; } - - // 确保只响应prop变化 - if (this._needsUpdate) { - this._needsUpdate = false; - - if (this.props["in"]) { - if (status === EXITING) { - this.performEnter(this.props); - } else if (status === EXITED) { - this.performEnter(this.props); - } - // 其他,当我们已经输入或输出 - } else { - if (status === ENTERING || status === ENTERED) { - this.performExit(this.props); - } - // 我们已经输入或输出完成 - } + if (open !== undefined) { + newState.open = open; } + return newState; }; - Transition.prototype.componentWillUnmount = function componentWillUnmount() { - this.cancelNextCallback(); - }; + Picker.prototype.render = function render() { + var props = this.props; + var prefixCls = props.prefixCls, + placement = props.placement, + style = props.style, + getCalendarContainer = props.getCalendarContainer, + align = props.align, + animation = props.animation, + disabled = props.disabled, + dropdownClassName = props.dropdownClassName, + transitionName = props.transitionName, + children = props.children; - Transition.prototype.performEnter = function performEnter(props) { - var _this2 = this; + var state = this.state; + return _react2["default"].createElement( + _rcTrigger2["default"], + { + popup: this.getCalendarElement(), + popupAlign: align, + builtinPlacements: _placements2["default"], + popupPlacement: placement, + action: disabled && !state.open ? [] : ['click'], + destroyPopupOnHide: true, + getPopupContainer: getCalendarContainer, + popupStyle: style, + popupAnimation: animation, + popupTransitionName: transitionName, + popupVisible: state.open, + onPopupVisibleChange: this.onVisibleChange, + prefixCls: prefixCls, + popupClassName: dropdownClassName + }, + _react2["default"].cloneElement(children(state, props), { onKeyDown: this.onKeyDown }) + ); + }; - this.cancelNextCallback(); - var node = _reactDom2["default"].findDOMNode(this); + return Picker; + }(_react2["default"].Component); - // 这里接收新props - props.onEnter(node); + Picker.propTypes = { + animation: _propTypes2["default"].oneOfType([_propTypes2["default"].func, _propTypes2["default"].string]), + disabled: _propTypes2["default"].bool, + transitionName: _propTypes2["default"].string, + onChange: _propTypes2["default"].func, + onOpenChange: _propTypes2["default"].func, + children: _propTypes2["default"].func, + getCalendarContainer: _propTypes2["default"].func, + calendar: _propTypes2["default"].element, + style: _propTypes2["default"].object, + open: _propTypes2["default"].bool, + defaultOpen: _propTypes2["default"].bool, + prefixCls: _propTypes2["default"].string, + placement: _propTypes2["default"].any, + value: _propTypes2["default"].oneOfType([_propTypes2["default"].object, _propTypes2["default"].array]), + defaultValue: _propTypes2["default"].oneOfType([_propTypes2["default"].object, _propTypes2["default"].array]), + align: _propTypes2["default"].object, + enterKeyDown: _propTypes2["default"].bool //enter 键是否打开日期面板 + }; + Picker.defaultProps = { + prefixCls: 'rc-calendar-picker', + style: {}, + align: {}, + placement: 'bottomLeft', + defaultOpen: false, + onChange: noop, + onOpenChange: noop, + enterKeyDown: true + }; - this.safeSetState({ status: ENTERING }, function () { - _this2.props.onEntering(node); + var _initialiseProps = function _initialiseProps() { + var _this2 = this; - _this2.onTransitionEnd(node, function () { - _this2.safeSetState({ status: ENTERED }, function () { - _this2.props.onEntered(node); - }); - }); - }); + this.onCalendarKeyDown = function (event) { + if (event.keyCode === _KeyCode2["default"].ESC) { + event.stopPropagation(); + _this2.close(_this2.focus); + } + _this2.props.onKeyDown && _this2.props.onKeyDown(event); }; - Transition.prototype.performExit = function performExit(props) { - var _this3 = this; - - this.cancelNextCallback(); - var node = _reactDom2["default"].findDOMNode(this); - - props.onExit(node); - - this.safeSetState({ status: EXITING }, function () { - _this3.props.onExiting(node); + this.onCalendarSelect = function (value) { + var cause = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - _this3.onTransitionEnd(node, function () { - _this3.safeSetState({ status: EXITED }, function () { - _this3.props.onExited(node); - }); + var props = _this2.props; + var isDisabled = props.disabledDate && props.disabledDate(value); + if (isDisabled) return; + if (!('value' in props)) { + _this2.setState({ + value: value }); - }); + } + if (cause.source === 'keyboard' || cause.source === 'dateInputSelect' || !props.calendar.props.timePicker && cause.source !== 'dateInput' || cause.source === 'todayButton') { + _this2.close(_this2.focus); + } + props.onChange(value); }; - Transition.prototype.cancelNextCallback = function cancelNextCallback() { - if (this.nextCallback !== null) { - this.nextCallback.cancel(); - this.nextCallback = null; + this.onKeyDown = function (event) { + var enterKeyDown = _this2.props.enterKeyDown; + + if (event.keyCode === _KeyCode2["default"].DOWN || enterKeyDown && event.keyCode === _KeyCode2["default"].ENTER) { + if (!_this2.state.open) _this2.open(); + event.preventDefault(); } + _this2.props.onKeyDown && _this2.props.onKeyDown(event); }; - Transition.prototype.safeSetState = function safeSetState(nextState, callback) { - // 确保在组件销毁后挂起的setState被消除 - this.setState(nextState, this.setNextCallback(callback)); + this.onCalendarOk = function () { + _this2.close(_this2.focus); }; - Transition.prototype.setNextCallback = function setNextCallback(callback) { - var _this4 = this; - - var active = true; + this.onCalendarClear = function () { + _this2.close(_this2.focus); + }; - this.nextCallback = function (event) { - if (active) { - active = false; - _this4.nextCallback = null; + this.onVisibleChange = function (open) { + _this2.setOpen(open); + }; - callback(event); - } - }; + this.getCalendarElement = function () { + var props = _this2.props; + var state = _this2.state; + var calendarProps = props.calendar.props; + var value = state.value; - this.nextCallback.cancel = function () { - active = false; + var defaultValue = value; + var extraProps = { + ref: _this2.saveCalendarRef, + defaultValue: defaultValue || calendarProps.defaultValue, + selectedValue: value, + onKeyDown: _this2.onCalendarKeyDown, + onOk: (0, _createChainedFunction2["default"])(calendarProps.onOk, _this2.onCalendarOk), + onSelect: (0, _createChainedFunction2["default"])(calendarProps.onSelect, _this2.onCalendarSelect), + onClear: (0, _createChainedFunction2["default"])(calendarProps.onClear, _this2.onCalendarClear) }; - return this.nextCallback; + return _react2["default"].cloneElement(props.calendar, extraProps); }; - Transition.prototype.onTransitionEnd = function onTransitionEnd(node, handler) { - this.setNextCallback(handler); + this.setOpen = function (open, callback) { + var onOpenChange = _this2.props.onOpenChange; - if (node) { - if (transitionEndEvent == undefined) { - this.nextCallback(); - } else { - (0, _on2["default"])(node, transitionEndEvent, this.nextCallback); + if (_this2.state.open !== open) { + if (!('open' in _this2.props)) { + _this2.setState({ + open: open + }, callback); } - setTimeout(this.nextCallback, this.props.timeout); - } else { - setTimeout(this.nextCallback, 0); + onOpenChange(open); } }; - Transition.prototype.render = function render() { - var status = this.state.status; - if (status === UNMOUNTED) { - return null; - } - - var _props = this.props, - children = _props.children, - className = _props.className, - childProps = _objectWithoutProperties(_props, ['children', 'className']); + this.open = function (callback) { + _this2.setOpen(true, callback); + }; - Object.keys(Transition.propTypes).forEach(function (key) { - return delete childProps[key]; - }); + this.close = function (callback) { + _this2.setOpen(false, callback); + }; - var transitionClassName = void 0; - if (status === EXITED) { - transitionClassName = this.props.exitedClassName; - } else if (status === ENTERING) { - transitionClassName = this.props.enteringClassName; - } else if (status === ENTERED) { - transitionClassName = this.props.enteredClassName; - } else if (status === EXITING) { - transitionClassName = this.props.exitingClassName; + this.focus = function () { + if (!_this2.state.open) { + _reactDom2["default"].findDOMNode(_this2).focus(); } - - var child = _react2["default"].Children.only(children); - return _react2["default"].cloneElement(child, _extends({}, childProps, { - className: (0, _classnames2["default"])(child.props.className, className, transitionClassName) - })); }; - return Transition; - }(_react.Component); - - Transition.propTypes = propTypes; + this.focusCalendar = function () { + if (_this2.state.open && !!_this2.calendarInstance) { + _this2.calendarInstance.focus(); + } + }; + }; - Transition.defaultProps = defaultProps; + (0, _reactLifecyclesCompat.polyfill)(Picker); - exports["default"] = Transition; + exports["default"] = Picker; + module.exports = exports['default']; /***/ }), - /* 193 */ + /* 81 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -126760,1017 +115923,1089 @@ value: true }); - var _Button = __webpack_require__(1394); + var _FormControl = __webpack_require__(1235); - var _Button2 = _interopRequireDefault(_Button); + var _FormControl2 = _interopRequireDefault(_FormControl); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - exports["default"] = _Button2["default"]; + exports["default"] = _FormControl2["default"]; module.exports = exports['default']; /***/ }), - /* 194 */ + /* 82 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; - exports.__esModule = true; - exports.default = createChainableTypeChecker; - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - - // Mostly taken from ReactPropTypes. + module.exports = __webpack_require__(1239); - /* This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ + /***/ }), + /* 83 */ + /***/ (function(module, exports, __webpack_require__) { - function createChainableTypeChecker(validate) { - function checkType(isRequired, props, propName, componentName, location, propFullName) { - var componentNameSafe = componentName || '<>'; - var propFullNameSafe = propFullName || propName; + "use strict"; - if (props[propName] == null) { - if (isRequired) { - return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); - } - return null; - } + Object.defineProperty(exports, "__esModule", { + value: true + }); - for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { - args[_key - 6] = arguments[_key]; - } + var _Icon = __webpack_require__(1279); - return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); - } + var _Icon2 = _interopRequireDefault(_Icon); - var chainedCheckType = checkType.bind(null, false); - chainedCheckType.isRequired = checkType.bind(null, true); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - return chainedCheckType; - } + exports["default"] = _Icon2["default"]; + module.exports = exports['default']; /***/ }), - /* 195 */ + /* 84 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; exports.__esModule = true; - exports.default = createChainableTypeChecker; - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ + exports.default = void 0; - // Mostly taken from ReactPropTypes. + var _default = !!(typeof window !== 'undefined' && window.document && window.document.createElement); - /* This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ + exports.default = _default; + module.exports = exports["default"]; - function createChainableTypeChecker(validate) { - function checkType(isRequired, props, propName, componentName, location, propFullName) { - var componentNameSafe = componentName || '<>'; - var propFullNameSafe = propFullName || propName; + /***/ }), + /* 85 */ + /***/ (function(module, exports, __webpack_require__) { - if (props[propName] == null) { - if (isRequired) { - return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); - } + "use strict"; - return null; - } - for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { - args[_key - 6] = arguments[_key]; - } + Object.defineProperty(exports, "__esModule", { + value: true + }); - return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); - } + var _Icon = __webpack_require__(1497); - var chainedCheckType = checkType.bind(null, false); - chainedCheckType.isRequired = checkType.bind(null, true); + var _Icon2 = _interopRequireDefault(_Icon); - return chainedCheckType; - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + + exports["default"] = _Icon2["default"]; + module.exports = exports['default']; /***/ }), - /* 196 */ - /***/ (function(module, exports, __webpack_require__) { + /* 86 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; + Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_classCallCheck__ = __webpack_require__(206); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_createClass__ = __webpack_require__(207); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_inherits__ = __webpack_require__(208); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_possibleConstructorReturn__ = __webpack_require__(209); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_getPrototypeOf__ = __webpack_require__(210); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(0); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__ResizableTextArea__ = __webpack_require__(556); + /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "ResizableTextArea", function() { return __WEBPACK_IMPORTED_MODULE_6__ResizableTextArea__["a"]; }); - Object.defineProperty(exports, "__esModule", { - value: true - }); - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _react = __webpack_require__(0); - var _react2 = _interopRequireDefault(_react); - var _propTypes = __webpack_require__(1); + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_possibleConstructorReturn__["a" /* default */])(this, result); }; } - var _propTypes2 = _interopRequireDefault(_propTypes); + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + var TextArea = /*#__PURE__*/function (_React$Component) { + Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_inherits__["a" /* default */])(TextArea, _React$Component); - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + var _super = _createSuper(TextArea); - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** - * This source code is quoted from rc-slider. - * homepage: https://github.com/react-component/slider - */ + function TextArea(props) { + var _this; + Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_classCallCheck__["a" /* default */])(this, TextArea); - var Handle = function (_React$Component) { - _inherits(Handle, _React$Component); + _this = _super.call(this, props); - function Handle() { - _classCallCheck(this, Handle); + _this.focus = function () { + _this.resizableTextArea.textArea.focus(); + }; - return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); - } + _this.saveTextArea = function (resizableTextArea) { + _this.resizableTextArea = resizableTextArea; + }; - Handle.prototype.render = function render() { - var _props = this.props, - className = _props.className, - vertical = _props.vertical, - offset = _props.offset, - style = _props.style, - disabled = _props.disabled, - min = _props.min, - max = _props.max, - value = _props.value, - restProps = _objectWithoutProperties(_props, ['className', 'vertical', 'offset', 'style', 'disabled', 'min', 'max', 'value']); + _this.handleChange = function (e) { + var onChange = _this.props.onChange; - var postionStyle = vertical ? { bottom: offset + '%' } : { left: offset + '%' }; - var elStyle = _extends({}, style, postionStyle); - var ariaProps = {}; - if (value !== undefined) { - ariaProps = _extends({}, ariaProps, { - 'aria-valuemin': min, - 'aria-valuemax': max, - 'aria-valuenow': value, - 'aria-disabled': !!disabled + _this.setValue(e.target.value, function () { + _this.resizableTextArea.resizeTextarea(); }); + + if (onChange) { + onChange(e); + } + }; + + _this.handleKeyDown = function (e) { + var _this$props = _this.props, + onPressEnter = _this$props.onPressEnter, + onKeyDown = _this$props.onKeyDown; + + if (e.keyCode === 13 && onPressEnter) { + onPressEnter(e); + } + + if (onKeyDown) { + onKeyDown(e); + } + }; + + var value = typeof props.value === 'undefined' || props.value === null ? props.defaultValue : props.value; + _this.state = { + value: value + }; + return _this; + } + + Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_createClass__["a" /* default */])(TextArea, [{ + key: "setValue", + value: function setValue(value, callback) { + if (!('value' in this.props)) { + this.setState({ + value: value + }, callback); + } + } + }, { + key: "blur", + value: function blur() { + this.resizableTextArea.textArea.blur(); + } + }, { + key: "render", + value: function render() { + return __WEBPACK_IMPORTED_MODULE_5_react__["createElement"](__WEBPACK_IMPORTED_MODULE_6__ResizableTextArea__["a" /* default */], Object.assign({}, this.props, { + value: this.state.value, + onKeyDown: this.handleKeyDown, + onChange: this.handleChange, + ref: this.saveTextArea + })); } + }], [{ + key: "getDerivedStateFromProps", + value: function getDerivedStateFromProps(nextProps) { + if ('value' in nextProps) { + return { + value: nextProps.value + }; + } - return _react2["default"].createElement('div', _extends({ - role: 'slider', - tabIndex: '0' - }, ariaProps, restProps, { - className: className, - style: elStyle - })); - }; + return null; + } + }]); - return Handle; - }(_react2["default"].Component); + return TextArea; + }(__WEBPACK_IMPORTED_MODULE_5_react__["Component"]); - exports["default"] = Handle; + /* harmony default export */ __webpack_exports__["default"] = (TextArea); - Handle.propTypes = { - className: _propTypes2["default"].string, - vertical: _propTypes2["default"].bool, - offset: _propTypes2["default"].number, - style: _propTypes2["default"].object, - disabled: _propTypes2["default"].bool, - min: _propTypes2["default"].number, - max: _propTypes2["default"].number, - value: _propTypes2["default"].number + /***/ }), + /* 87 */ + /***/ (function(module, exports, __webpack_require__) { + + "use strict"; + + + exports.__esModule = true; + + var _defineProperty = __webpack_require__(212); + + var _defineProperty2 = _interopRequireDefault(_defineProperty); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + exports.default = function (obj, key, value) { + if (key in obj) { + (0, _defineProperty2.default)(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + + return obj; }; - module.exports = exports['default']; /***/ }), - /* 197 */ - /***/ (function(module, exports, __webpack_require__) { + /* 88 */ + /***/ (function(module, exports) { + + module.exports = true; + + + /***/ }), + /* 89 */ + /***/ (function(module, exports) { + + var id = 0; + var px = Math.random(); + module.exports = function (key) { + return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); + }; + + + /***/ }), + /* 90 */ + /***/ (function(module, exports) { + + exports.f = {}.propertyIsEnumerable; + + + /***/ }), + /* 91 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.isEventFromHandle = isEventFromHandle; - exports.isValueOutOfRange = isValueOutOfRange; - exports.isNotTouchEvent = isNotTouchEvent; - exports.getClosestPoint = getClosestPoint; - exports.getPrecision = getPrecision; - exports.getMousePosition = getMousePosition; - exports.getTouchPosition = getTouchPosition; - exports.getHandleCenterPosition = getHandleCenterPosition; - exports.ensureValueInRange = ensureValueInRange; - exports.ensureValuePrecision = ensureValuePrecision; - exports.pauseEvent = pauseEvent; - exports.getKeyboardValueMutator = getKeyboardValueMutator; + var unsafeLifecyclesPolyfill = function unsafeLifecyclesPolyfill(Component) { + var prototype = Component.prototype; - var _reactDom = __webpack_require__(3); + if (!prototype || !prototype.isReactComponent) { + throw new Error('Can only polyfill class components'); + } // only handle componentWillReceiveProps - var _keyCode = __webpack_require__(501); - var _keyCode2 = _interopRequireDefault(_keyCode); + if (typeof prototype.componentWillReceiveProps !== 'function') { + return Component; + } // In React 16.9, React.Profiler was introduced together with UNSAFE_componentWillReceiveProps + // https://reactjs.org/blog/2019/08/08/react-v16.9.0.html#performance-measurements-with-reactprofiler - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } /** - * This source code is quoted from rc-slider. - * homepage: https://github.com/react-component/slider - */ + if (!__WEBPACK_IMPORTED_MODULE_0_react___default.a.Profiler) { + return Component; + } // Here polyfill get started - function isEventFromHandle(e, handles) { - return Object.keys(handles).some(function (key) { - return e.target === (0, _reactDom.findDOMNode)(handles[key]); - }); - } + prototype.UNSAFE_componentWillReceiveProps = prototype.componentWillReceiveProps; + delete prototype.componentWillReceiveProps; + return Component; + }; - function isValueOutOfRange(value, _ref) { - var min = _ref.min, - max = _ref.max; + /* harmony default export */ __webpack_exports__["a"] = (unsafeLifecyclesPolyfill); - return value < min || value > max; - } + /***/ }), + /* 92 */ + /***/ (function(module, exports, __webpack_require__) { - function isNotTouchEvent(e) { - //event.touches,多点触碰时的位置数组,比如缩放手势必须要用两指的触摸点,就是一个数组 - return e.touches.length > 1 || e.type.toLowerCase() === 'touchend' && e.touches.length > 0; - } + var baseGetTag = __webpack_require__(225), + isObjectLike = __webpack_require__(642); - function getClosestPoint(val, _ref2) { - var marks = _ref2.marks, - step = _ref2.step, - min = _ref2.min; + /** `Object#toString` result references. */ + var symbolTag = '[object Symbol]'; - var points = Object.keys(marks).map(parseFloat); - if (step !== null) { - var closestStep = Math.round((val - min) / step) * step + min; //Math.round(((val - min) / step) * step) + min; - points.push(closestStep); - } - var diffs = points.map(function (point) { - return Math.abs(val - point); - }); - return points[diffs.indexOf(Math.min.apply(Math, _toConsumableArray(diffs)))]; + /** + * Checks if `value` is classified as a `Symbol` primitive or object. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. + * @example + * + * _.isSymbol(Symbol.iterator); + * // => true + * + * _.isSymbol('abc'); + * // => false + */ + function isSymbol(value) { + return typeof value == 'symbol' || + (isObjectLike(value) && baseGetTag(value) == symbolTag); } - function getPrecision(step) { - var stepString = step.toString(); - var precision = 0; - if (stepString.indexOf('.') >= 0) { - precision = stepString.length - stepString.indexOf('.') - 1; - } - return precision; - } + module.exports = isSymbol; - function getMousePosition(vertical, e) { - return vertical ? e.clientY : e.pageX; - } - function getTouchPosition(vertical, e) { - return vertical ? e.touches[0].clientY : e.touches[0].pageX; - } + /***/ }), + /* 93 */ + /***/ (function(module, exports, __webpack_require__) { - function getHandleCenterPosition(vertical, handle) { - var coords = handle.getBoundingClientRect(); - return vertical ? coords.top + coords.height * 0.5 : coords.left + coords.width * 0.5; - } + var getNative = __webpack_require__(133); - function ensureValueInRange(val, _ref3) { - var max = _ref3.max, - min = _ref3.min; + /* Built-in method references that are verified to be native. */ + var nativeCreate = getNative(Object, 'create'); - if (val <= min) { - return min; - } - if (val >= max) { - return max; - } - return val; - } + module.exports = nativeCreate; - function ensureValuePrecision(val, props) { - var step = props.step; - var closestPoint = getClosestPoint(val, props); - return step === null ? closestPoint : parseFloat(closestPoint.toFixed(getPrecision(step))); - } + /***/ }), + /* 94 */ + /***/ (function(module, exports, __webpack_require__) { - function pauseEvent(e) { - e.stopPropagation(); - e.preventDefault(); + var eq = __webpack_require__(134); + + /** + * Gets the index at which the `key` is found in `array` of key-value pairs. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} key The key to search for. + * @returns {number} Returns the index of the matched value, else `-1`. + */ + function assocIndexOf(array, key) { + var length = array.length; + while (length--) { + if (eq(array[length][0], key)) { + return length; + } + } + return -1; } - function getKeyboardValueMutator(e) { - switch (e.keyCode) { - case _keyCode2["default"].UP: - case _keyCode2["default"].RIGHT: - return function (value, props) { - return value + props.step; - }; + module.exports = assocIndexOf; - case _keyCode2["default"].DOWN: - case _keyCode2["default"].LEFT: - return function (value, props) { - return value - props.step; - }; - case _keyCode2["default"].END: - return function (value, props) { - return props.max; - }; - case _keyCode2["default"].HOME: - return function (value, props) { - return props.min; - }; - case _keyCode2["default"].PAGE_UP: - return function (value, props) { - return value + props.step * 2; - }; - case _keyCode2["default"].PAGE_DOWN: - return function (value, props) { - return value - props.step * 2; - }; + /***/ }), + /* 95 */ + /***/ (function(module, exports, __webpack_require__) { - default: - return undefined; - } + var isKeyable = __webpack_require__(668); + + /** + * Gets the data for `map`. + * + * @private + * @param {Object} map The map to query. + * @param {string} key The reference key. + * @returns {*} Returns the map data. + */ + function getMapData(map, key) { + var data = map.__data__; + return isKeyable(key) + ? data[typeof key == 'string' ? 'string' : 'hash'] + : data.map; } + module.exports = getMapData; + + /***/ }), - /* 198 */ + /* 96 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; exports.__esModule = true; - exports.default = createChainableTypeChecker; /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - - // Mostly taken from ReactPropTypes. - - /* This source code is quoted from rc-util. + * This source code is quoted from rc-util. * homepage: https://github.com/react-component/util */ + function createChainedFunction() { + for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) { + funcs[_key] = arguments[_key]; + } - function createChainableTypeChecker(validate) { - function checkType(isRequired, props, propName, componentName, location, propFullName) { - var componentNameSafe = componentName || '<>'; - var propFullNameSafe = propFullName || propName; - - if (props[propName] == null) { - if (isRequired) { - return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); - } - - return null; + return funcs.filter(function (f) { + return f != null; + }).reduce(function (acc, f) { + if (typeof f !== 'function') { + throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.'); } - for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { - args[_key - 6] = arguments[_key]; + if (acc === null) { + return f; } - return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); - } - - var chainedCheckType = checkType.bind(null, false); - chainedCheckType.isRequired = checkType.bind(null, true); + return function chainedFunction() { + for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + args[_key2] = arguments[_key2]; + } - return chainedCheckType; + acc.apply(this, args); + f.apply(this, args); + }; + }, null); } + exports.default = createChainedFunction; /***/ }), - /* 199 */ - /***/ (function(module, exports, __webpack_require__) { + /* 97 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; + Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(8); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty__ = __webpack_require__(87); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(7); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass__ = __webpack_require__(55); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(9); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__ = __webpack_require__(10); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(1); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_rc_util_es_unsafeLifecyclesPolyfill__ = __webpack_require__(91); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__ = __webpack_require__(804); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__AnimateChild__ = __webpack_require__(805); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__util_animate__ = __webpack_require__(258); - exports.__esModule = true; - exports.default = createChainableTypeChecker; - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - - // Mostly taken from ReactPropTypes. - - /* This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ - - function createChainableTypeChecker(validate) { - function checkType(isRequired, props, propName, componentName, location, propFullName) { - var componentNameSafe = componentName || '<>'; - var propFullNameSafe = propFullName || propName; - - if (props[propName] == null) { - if (isRequired) { - return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); - } - return null; - } - for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { - args[_key - 6] = arguments[_key]; - } - return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); - } - var chainedCheckType = checkType.bind(null, false); - chainedCheckType.isRequired = checkType.bind(null, true); - return chainedCheckType; - } - /***/ }), - /* 200 */ - /***/ (function(module, exports, __webpack_require__) { - "use strict"; - var _interopRequireDefault = __webpack_require__(18); - exports.__esModule = true; - exports.default = void 0; - var _inDOM = _interopRequireDefault(__webpack_require__(84)); + var defaultKey = 'rc_animate_' + Date.now(); - var _default = function () { - // HTML DOM and SVG DOM may have different support levels, - // so we need to check on context instead of a document root element. - return _inDOM.default ? function (context, node) { - if (context.contains) { - return context.contains(node); - } else if (context.compareDocumentPosition) { - return context === node || !!(context.compareDocumentPosition(node) & 16); - } else { - return fallback(context, node); + function getChildrenFromProps(props) { + var children = props.children; + if (__WEBPACK_IMPORTED_MODULE_6_react___default.a.isValidElement(children)) { + if (!children.key) { + return __WEBPACK_IMPORTED_MODULE_6_react___default.a.cloneElement(children, { + key: defaultKey + }); } - } : fallback; - }(); + } + return children; + } - exports.default = _default; + function noop() {} - function fallback(context, node) { - if (node) do { - if (node === context) return true; - } while (node = node.parentNode); - return false; - } + var Animate = function (_React$Component) { + __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default()(Animate, _React$Component); - module.exports = exports["default"]; + // eslint-disable-line - /***/ }), - /* 201 */ - /***/ (function(module, exports, __webpack_require__) { + function Animate(props) { + __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, Animate); - "use strict"; + var _this = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default()(this, (Animate.__proto__ || Object.getPrototypeOf(Animate)).call(this, props)); + _initialiseProps.call(_this); - exports.__esModule = true; - exports.default = getWindow; + _this.currentlyAnimatingKeys = {}; + _this.keysToEnter = []; + _this.keysToLeave = []; - function getWindow(node) { - return node === node.window ? node : node.nodeType === 9 ? node.defaultView || node.parentWindow : false; - } + _this.state = { + children: Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__["e" /* toArrayChildren */])(getChildrenFromProps(props)) + }; - module.exports = exports["default"]; + _this.childrenRefs = {}; + return _this; + } - /***/ }), - /* 202 */ - /***/ (function(module, exports, __webpack_require__) { + __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass___default()(Animate, [{ + key: 'componentDidMount', + value: function componentDidMount() { + var _this2 = this; - "use strict"; + var showProp = this.props.showProp; + var children = this.state.children; + if (showProp) { + children = children.filter(function (child) { + return !!child.props[showProp]; + }); + } + children.forEach(function (child) { + if (child) { + _this2.performAppear(child.key); + } + }); + } + }, { + key: 'componentWillReceiveProps', + value: function componentWillReceiveProps(nextProps) { + var _this3 = this; + this.nextProps = nextProps; + var nextChildren = Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__["e" /* toArrayChildren */])(getChildrenFromProps(nextProps)); + var props = this.props; + // exclusive needs immediate response + if (props.exclusive) { + Object.keys(this.currentlyAnimatingKeys).forEach(function (key) { + _this3.stop(key); + }); + } + var showProp = props.showProp; + var currentlyAnimatingKeys = this.currentlyAnimatingKeys; + // last props children if exclusive + var currentChildren = props.exclusive ? Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__["e" /* toArrayChildren */])(getChildrenFromProps(props)) : this.state.children; + // in case destroy in showProp mode + var newChildren = []; + if (showProp) { + currentChildren.forEach(function (currentChild) { + var nextChild = currentChild && Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__["a" /* findChildInChildrenByKey */])(nextChildren, currentChild.key); + var newChild = void 0; + if ((!nextChild || !nextChild.props[showProp]) && currentChild.props[showProp]) { + newChild = __WEBPACK_IMPORTED_MODULE_6_react___default.a.cloneElement(nextChild || currentChild, __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default()({}, showProp, true)); + } else { + newChild = nextChild; + } + if (newChild) { + newChildren.push(newChild); + } + }); + nextChildren.forEach(function (nextChild) { + if (!nextChild || !Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__["a" /* findChildInChildrenByKey */])(currentChildren, nextChild.key)) { + newChildren.push(nextChild); + } + }); + } else { + newChildren = Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__["d" /* mergeChildren */])(currentChildren, nextChildren); + } - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.destroyFns = undefined; + // need render to avoid update + this.setState({ + children: newChildren + }); - var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }(); + nextChildren.forEach(function (child) { + var key = child && child.key; + if (child && currentlyAnimatingKeys[key]) { + return; + } + var hasPrev = child && Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__["a" /* findChildInChildrenByKey */])(currentChildren, key); + if (showProp) { + var showInNext = child.props[showProp]; + if (hasPrev) { + var showInNow = Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__["b" /* findShownChildInChildrenByKey */])(currentChildren, key, showProp); + if (!showInNow && showInNext) { + _this3.keysToEnter.push(key); + } + } else if (showInNext) { + _this3.keysToEnter.push(key); + } + } else if (!hasPrev) { + _this3.keysToEnter.push(key); + } + }); - var _extends2; + currentChildren.forEach(function (child) { + var key = child && child.key; + if (child && currentlyAnimatingKeys[key]) { + return; + } + var hasNext = child && Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__["a" /* findChildInChildrenByKey */])(nextChildren, key); + if (showProp) { + var showInNow = child.props[showProp]; + if (hasNext) { + var showInNext = Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__["b" /* findShownChildInChildrenByKey */])(nextChildren, key, showProp); + if (!showInNext && showInNow) { + _this3.keysToLeave.push(key); + } + } else if (showInNow) { + _this3.keysToLeave.push(key); + } + } else if (!hasNext) { + _this3.keysToLeave.push(key); + } + }); + } + }, { + key: 'componentDidUpdate', + value: function componentDidUpdate() { + var keysToEnter = this.keysToEnter; + this.keysToEnter = []; + keysToEnter.forEach(this.performEnter); + var keysToLeave = this.keysToLeave; + this.keysToLeave = []; + keysToLeave.forEach(this.performLeave); + } + }, { + key: 'isValidChildByKey', + value: function isValidChildByKey(currentChildren, key) { + var showProp = this.props.showProp; + if (showProp) { + return Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__["b" /* findShownChildInChildrenByKey */])(currentChildren, key, showProp); + } + return Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__["a" /* findChildInChildrenByKey */])(currentChildren, key); + } + }, { + key: 'stop', + value: function stop(key) { + delete this.currentlyAnimatingKeys[key]; + var component = this.childrenRefs[key]; + if (component) { + component.stop(); + } + } + }, { + key: 'render', + value: function render() { + var _this4 = this; - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + var props = this.props; + this.nextProps = props; + var stateChildren = this.state.children; + var children = null; + if (stateChildren) { + children = stateChildren.map(function (child) { + if (child === null || child === undefined) { + return child; + } + if (!child.key) { + throw new Error('must set key for children'); + } + return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( + __WEBPACK_IMPORTED_MODULE_10__AnimateChild__["a" /* default */], + { + key: child.key, + ref: function ref(node) { + _this4.childrenRefs[child.key] = node; + }, + animation: props.animation, + transitionName: props.transitionName, + transitionEnter: props.transitionEnter, + transitionAppear: props.transitionAppear, + transitionLeave: props.transitionLeave + }, + child + ); + }); + } + var Component = props.component; + if (Component) { + var passedProps = props; + if (typeof Component === 'string') { + passedProps = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({ + className: props.className, + style: props.style + }, props.componentProps); + } + return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( + Component, + passedProps, + children + ); + } + return children[0] || null; + } + }]); - var _classnames = __webpack_require__(2); + return Animate; + }(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); - var _classnames2 = _interopRequireDefault(_classnames); + Animate.isAnimate = true; + Animate.propTypes = { + className: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string, + style: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.object, + component: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.any, + componentProps: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.object, + animation: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.object, + transitionName: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.object]), + transitionEnter: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, + transitionAppear: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, + exclusive: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, + transitionLeave: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, + onEnd: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, + onEnter: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, + onLeave: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, + onAppear: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, + showProp: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string, + children: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.node + }; + Animate.defaultProps = { + animation: {}, + component: 'span', + componentProps: {}, + transitionEnter: true, + transitionLeave: true, + transitionAppear: false, + onEnd: noop, + onEnter: noop, + onLeave: noop, + onAppear: noop + }; - var _events = __webpack_require__(163); + var _initialiseProps = function _initialiseProps() { + var _this5 = this; - var _events2 = _interopRequireDefault(_events); + this.performEnter = function (key) { + // may already remove by exclusive + if (_this5.childrenRefs[key]) { + _this5.currentlyAnimatingKeys[key] = true; + _this5.childrenRefs[key].componentWillEnter(_this5.handleDoneAdding.bind(_this5, key, 'enter')); + } + }; - var _ownerDocument = __webpack_require__(22); + this.performAppear = function (key) { + if (_this5.childrenRefs[key]) { + _this5.currentlyAnimatingKeys[key] = true; + _this5.childrenRefs[key].componentWillAppear(_this5.handleDoneAdding.bind(_this5, key, 'appear')); + } + }; - var _ownerDocument2 = _interopRequireDefault(_ownerDocument); + this.handleDoneAdding = function (key, type) { + var props = _this5.props; + delete _this5.currentlyAnimatingKeys[key]; + // if update on exclusive mode, skip check + if (props.exclusive && props !== _this5.nextProps) { + return; + } + var currentChildren = Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__["e" /* toArrayChildren */])(getChildrenFromProps(props)); + if (!_this5.isValidChildByKey(currentChildren, key)) { + // exclusive will not need this + _this5.performLeave(key); + } else if (type === 'appear') { + if (__WEBPACK_IMPORTED_MODULE_11__util_animate__["a" /* default */].allowAppearCallback(props)) { + props.onAppear(key); + props.onEnd(key, true); + } + } else if (__WEBPACK_IMPORTED_MODULE_11__util_animate__["a" /* default */].allowEnterCallback(props)) { + props.onEnter(key); + props.onEnd(key, true); + } + }; - var _inDOM = __webpack_require__(25); + this.performLeave = function (key) { + // may already remove by exclusive + if (_this5.childrenRefs[key]) { + _this5.currentlyAnimatingKeys[key] = true; + _this5.childrenRefs[key].componentWillLeave(_this5.handleDoneLeaving.bind(_this5, key)); + } + }; - var _inDOM2 = _interopRequireDefault(_inDOM); + this.handleDoneLeaving = function (key) { + var props = _this5.props; + delete _this5.currentlyAnimatingKeys[key]; + // if update on exclusive mode, skip check + if (props.exclusive && props !== _this5.nextProps) { + return; + } + var currentChildren = Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__["e" /* toArrayChildren */])(getChildrenFromProps(props)); + // in case state change is too fast + if (_this5.isValidChildByKey(currentChildren, key)) { + _this5.performEnter(key); + } else { + var end = function end() { + if (__WEBPACK_IMPORTED_MODULE_11__util_animate__["a" /* default */].allowLeaveCallback(props)) { + props.onLeave(key); + props.onEnd(key, false); + } + }; + if (!Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__["c" /* isSameChildren */])(_this5.state.children, currentChildren, props.showProp)) { + _this5.setState({ + children: currentChildren + }, end); + } else { + end(); + } + } + }; + }; - var _scrollbarSize = __webpack_require__(104); + /* harmony default export */ __webpack_exports__["default"] = (Object(__WEBPACK_IMPORTED_MODULE_8_rc_util_es_unsafeLifecyclesPolyfill__["a" /* default */])(Animate)); - var _scrollbarSize2 = _interopRequireDefault(_scrollbarSize); + /***/ }), + /* 98 */ + /***/ (function(module, exports, __webpack_require__) { - var _scrollTop = __webpack_require__(45); + "use strict"; - var _scrollTop2 = _interopRequireDefault(_scrollTop); - var _react = __webpack_require__(0); + Object.defineProperty(exports, "__esModule", { + value: true + }); - var _react2 = _interopRequireDefault(_react); + exports["default"] = function (componentOrElement) { + return (0, _ownerDocument2["default"])(_reactDom2["default"].findDOMNode(componentOrElement)); + }; var _reactDom = __webpack_require__(3); var _reactDom2 = _interopRequireDefault(_reactDom); - var _Modal = __webpack_require__(164); + var _ownerDocument = __webpack_require__(23); - var _Modal2 = _interopRequireDefault(_Modal); - - var _isOverflowing = __webpack_require__(105); + var _ownerDocument2 = _interopRequireDefault(_ownerDocument); - var _isOverflowing2 = _interopRequireDefault(_isOverflowing); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - var _tinperBeeCore = __webpack_require__(46); + module.exports = exports['default']; - var _beeTransition = __webpack_require__(1596); + /***/ }), + /* 99 */ + /***/ (function(module, exports, __webpack_require__) { - var _ModalBody = __webpack_require__(1600); + "use strict"; - var _ModalBody2 = _interopRequireDefault(_ModalBody); - var _ModalDialog = __webpack_require__(1601); + exports.__esModule = true; + exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined; - var _ModalDialog2 = _interopRequireDefault(_ModalDialog); + var _all2 = __webpack_require__(864); - var _ModalFooter = __webpack_require__(1607); + var _all3 = _interopRequireDefault(_all2); - var _ModalFooter2 = _interopRequireDefault(_ModalFooter); + var _componentOrElement2 = __webpack_require__(865); - var _ModalHeader = __webpack_require__(1608); + var _componentOrElement3 = _interopRequireDefault(_componentOrElement2); - var _ModalHeader2 = _interopRequireDefault(_ModalHeader); + var _deprecated2 = __webpack_require__(866); - var _ModalTitle = __webpack_require__(1609); + var _deprecated3 = _interopRequireDefault(_deprecated2); - var _ModalTitle2 = _interopRequireDefault(_ModalTitle); + var _elementType2 = __webpack_require__(867); - var _propTypes = __webpack_require__(1); + var _elementType3 = _interopRequireDefault(_elementType2); - var _propTypes2 = _interopRequireDefault(_propTypes); + var _isRequiredForA11y2 = __webpack_require__(868); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2); - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + var _splitComponent2 = __webpack_require__(869); - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + var _splitComponent3 = _interopRequireDefault(_splitComponent2); - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + var _createChainedFunction2 = __webpack_require__(870); - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2); - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + var _keyCode = __webpack_require__(871); - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + var _keyCode2 = _interopRequireDefault(_keyCode); - var propTypes = _extends({}, _Modal2["default"].propTypes, _ModalDialog2["default"].propTypes, (_extends2 = { + var _contains2 = __webpack_require__(872); - /** - * 是否弹出遮罩层/遮罩层点击是否触发关闭 - */ - backdrop: _propTypes2["default"].oneOf(['static', true, false]), + var _contains3 = _interopRequireDefault(_contains2); - /** - * 点击遮罩层是否允许关闭 - */ - backdropClosable: _propTypes2["default"].bool, - /** - * esc触发关闭 - */ - keyboard: _propTypes2["default"].bool, + var _addEventListener2 = __webpack_require__(270); - /** - * 显隐时是否使用动画 - */ - animation: _propTypes2["default"].bool, + var _addEventListener3 = _interopRequireDefault(_addEventListener2); - /** - * 传递给模态框的样式 - */ - dialogComponentClass: _tinperBeeCore.elementType, + var _cssAnimation2 = __webpack_require__(873); - /** - * 自动设置焦点 - */ - autoFocus: _propTypes2["default"].bool, + var _cssAnimation3 = _interopRequireDefault(_cssAnimation2); - /** - * 防止打开时焦点离开模态框 - */ - enforceFocus: _propTypes2["default"].bool, + var _toArray2 = __webpack_require__(875); - /** - * 是否打开模态框 - */ - show: _propTypes2["default"].bool, + var _toArray3 = _interopRequireDefault(_toArray2); - /** - * 关闭时的钩子函数 - */ - onHide: _propTypes2["default"].func, + var _Align2 = __webpack_require__(876); - onEnter: _propTypes2["default"].func, + var _Align3 = _interopRequireDefault(_Align2); - onEntering: _propTypes2["default"].func, + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - onEntered: _propTypes2["default"].func, + exports.all = _all3.default; + exports.componentOrElement = _componentOrElement3.default; + exports.deprecated = _deprecated3.default; + exports.elementType = _elementType3.default; + exports.isRequiredForA11y = _isRequiredForA11y3.default; + exports.splitComponent = _splitComponent3.default; + exports.createChainedFunction = _createChainedFunction3.default; + exports.KeyCode = _keyCode2.default; + exports.contains = _contains3.default; + exports.addEventListener = _addEventListener3.default; + exports.cssAnimation = _cssAnimation3.default; + exports.toArray = _toArray3.default; + //export getContainerRenderMixin from './getContainerRenderMixin'; - onExit: _propTypes2["default"].func, + exports.Align = _Align3.default; - onExiting: _propTypes2["default"].func, + /***/ }), + /* 100 */ + /***/ (function(module, exports, __webpack_require__) { - onExited: _propTypes2["default"].func, + "use strict"; - containerClassName: _propTypes2["default"].string - }, _defineProperty(_extends2, 'containerClassName', _propTypes2["default"].string), _defineProperty(_extends2, 'container', _Modal2["default"].propTypes.container), _defineProperty(_extends2, 'size', _propTypes2["default"].oneOf(["sm", "lg", "xlg", ""])), _defineProperty(_extends2, 'width', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'draggable', _propTypes2["default"].bool), _defineProperty(_extends2, 'resizable', _propTypes2["default"].bool), _defineProperty(_extends2, 'resizeClassName', _propTypes2["default"].string), _defineProperty(_extends2, 'onResizeStart', _propTypes2["default"].func), _defineProperty(_extends2, 'onResize', _propTypes2["default"].func), _defineProperty(_extends2, 'onResizeStop', _propTypes2["default"].func), _defineProperty(_extends2, 'minWidth', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'minHeight', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'maxWidth', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'maxHeight', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'bounds', _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].object])), _defineProperty(_extends2, 'className', _propTypes2["default"].string), _defineProperty(_extends2, 'centered', _propTypes2["default"].bool), _extends2)); - var defaultProps = _extends({}, _Modal2["default"].defaultProps, { - backdropClosable: true, - animation: true, - dialogComponentClass: _ModalDialog2["default"], - draggable: false, - resizable: false, - clsPrefix: 'u-modal', - className: '' + Object.defineProperty(exports, "__esModule", { + value: true }); - var ModalFuncProps = { - prefixCls: _propTypes2["default"].string, - className: _propTypes2["default"].string, - show: _propTypes2["default"].bool, - title: _react2["default"].ReactNode, - content: _react2["default"].ReactNode, - onOk: _propTypes2["default"].func, - onCancel: _propTypes2["default"].func, - width: _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string]), - okText: _propTypes2["default"].string, - okType: _propTypes2["default"].string, - cancelText: _propTypes2["default"].string, - icon: _react2["default"].ReactNode, - backdrop: _propTypes2["default"].oneOf(['static', true, false]) - }; + var _inDOM = __webpack_require__(26); - var ModalFunc = function ModalFunc(props) { - destroy = function destroy() {}; - update = function update(newConfig) {}; - }; + var _inDOM2 = _interopRequireDefault(_inDOM); - var destroyFns = exports.destroyFns = []; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var childContextTypes = { - $u_modal: _propTypes2["default"].shape({ - onHide: _propTypes2["default"].func - }) - }; + var vendors = ['', 'webkit', 'moz', 'o', 'ms']; + var cancel = 'clearTimeout'; + var raf = fallback; + var compatRaf = void 0; - var Modal = function (_React$Component) { - _inherits(Modal, _React$Component); + var getKey = function getKey(vendor, k) { + return vendor + (!vendor ? k : k[0].toUpperCase() + k.substr(1)) + 'AnimationFrame'; + }; - function Modal(props, context) { - _classCallCheck(this, Modal); + if (_inDOM2.default) { + vendors.some(function (vendor) { + var rafKey = getKey(vendor, 'request'); - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context)); + if (rafKey in window) { + cancel = getKey(vendor, 'cancel'); + return raf = function raf(cb) { + return window[rafKey](cb); + }; + } + }); + } - _this.clearCenteredCls = function () { - var centered = _this.state.centered; + /* https://github.com/component/raf */ + var prev = new Date().getTime(); - if (!centered) { - return; - } - _this.offsetTop = _this.getOffsetTop(); - _this.setState({ - centered: false - }); - }; + function fallback(fn) { + var curr = new Date().getTime(), + ms = Math.max(0, 16 - (curr - prev)), + req = setTimeout(fn, ms); - _this.state = { - style: {}, - centered: props.centered, - draging: false, - draged: false - }; - _this.offsetTop = 0; - _this.handleEntering = _this.handleEntering.bind(_this); - _this.handleExited = _this.handleExited.bind(_this); - _this.handleWindowResize = _this.handleWindowResize.bind(_this); - _this.handleDialogClick = _this.handleDialogClick.bind(_this); - return _this; - } + prev = curr; + return req; + } - Modal.prototype.getChildContext = function getChildContext() { - return { - $u_modal: { - onHide: this.props.onHide - } - }; - }; + compatRaf = function compatRaf(cb) { + return raf(cb); + }; + compatRaf.cancel = function (id) { + return window[cancel](id); + }; - Modal.prototype.componentWillUnmount = function componentWillUnmount() { - // Clean up the listener if we need to. - this.handleExited(); - }; + exports.default = compatRaf; + module.exports = exports['default']; - Modal.prototype.handleEntering = function handleEntering() { - // FIXME: This should work even when animation is disabled. - _events2["default"].on(window, 'resize', this.handleWindowResize); - this.updateStyle(); - }; + /***/ }), + /* 101 */ + /***/ (function(module, exports, __webpack_require__) { - Modal.prototype.handleExited = function handleExited() { - this.setState({ - draging: false, - draged: false - }); - // FIXME: This should work even when animation is disabled. - _events2["default"].off(window, 'resize', this.handleWindowResize); - }; + "use strict"; - Modal.prototype.handleWindowResize = function handleWindowResize() { - this.updateStyle(); - }; - Modal.prototype.handleDialogClick = function handleDialogClick(e) { - if (e.target !== e.currentTarget) { - return; - } + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = getWindow; + function getWindow(node) { + return node === node.window ? node : node.nodeType === 9 ? node.defaultView || node.parentWindow : false; + } + module.exports = exports["default"]; - this.props.onHide(); - }; + /***/ }), + /* 102 */ + /***/ (function(module, exports, __webpack_require__) { - Modal.prototype.updateStyle = function updateStyle() { - if (!_inDOM2["default"] || !this._modal) { - return; - } + "use strict"; - var dialogNode = this._modal.getDialogElement(); - var dialogHeight = dialogNode.scrollHeight; - var document = (0, _ownerDocument2["default"])(dialogNode); - var bodyIsOverflowing = false; - if (this.props.container) { - bodyIsOverflowing = (0, _isOverflowing2["default"])(_reactDom2["default"].findDOMNode(this.props.container)); - } - var modalIsOverflowing = dialogHeight > document.documentElement.clientHeight; + Object.defineProperty(exports, "__esModule", { + value: true + }); - this.setState({ - style: { - paddingRight: bodyIsOverflowing && !modalIsOverflowing ? (0, _scrollbarSize2["default"])() : undefined, - paddingLeft: !bodyIsOverflowing && modalIsOverflowing ? (0, _scrollbarSize2["default"])() : undefined - } - }); - }; - //ResizeStart 时,若模态框设置了 `centered` ,需要把居中属性移除,并通过 offsetTop 制造垂直居中的假象 - //fixbug: Resize 和 centered 一起使用时,拖拽交互不正确 + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + exports.default = position; - //计算 ModalDialog 的 offsetTop - Modal.prototype.getOffsetTop = function getOffsetTop() { - var modalDialog = document.getElementsByClassName("u-modal-dialog") && document.getElementsByClassName("u-modal-dialog")[0]; - var topPos = modalDialog && modalDialog.offsetTop; - return topPos; - }; + var _offset = __webpack_require__(75); - Modal.prototype.render = function render() { - var _this2 = this; + var _offset2 = _interopRequireDefault(_offset); - var _props = this.props, - backdrop = _props.backdrop, - backdropClosable = _props.backdropClosable, - animation = _props.animation, - show = _props.show, - Dialog = _props.dialogComponentClass, - className = _props.className, - clsPrefix = _props.clsPrefix, - _props$style = _props.style, - style = _props$style === undefined ? {} : _props$style, - size = _props.size, - width = _props.width, - children = _props.children, - onEntering = _props.onEntering, - onExited = _props.onExited, - backdropClassName = _props.backdropClassName, - containerClassName = _props.containerClassName, - draggable = _props.draggable, - resizeClassName = _props.resizeClassName, - bounds = _props.bounds, - container = _props.container, - onStart = _props.onStart, - onStop = _props.onStop, - props = _objectWithoutProperties(_props, ['backdrop', 'backdropClosable', 'animation', 'show', 'dialogComponentClass', 'className', 'clsPrefix', 'style', 'size', 'width', 'children', 'onEntering', 'onExited', 'backdropClassName', 'containerClassName', 'draggable', 'resizeClassName', 'bounds', 'container', 'onStart', 'onStop']); + var _offsetParent = __webpack_require__(881); - var _state = this.state, - centered = _state.centered, - draging = _state.draging, - draged = _state.draged; + var _offsetParent2 = _interopRequireDefault(_offsetParent); - var dialogMarginTop = 30; - //ResizeStart 时,计算 ModalDialog 的 offsetTop - var topPosStyle = this.offsetTop > 0 ? { top: this.offsetTop - dialogMarginTop } : null; + var _scrollTop = __webpack_require__(45); - var _splitComponent = (0, _tinperBeeCore.splitComponent)(props, _Modal2["default"]), - _splitComponent2 = _slicedToArray(_splitComponent, 2), - baseModalProps = _splitComponent2[0], - dialogProps = _splitComponent2[1]; + var _scrollTop2 = _interopRequireDefault(_scrollTop); - var inClassName = show && !animation && 'in'; + var _scrollLeft = __webpack_require__(888); - var backdropClasses = _defineProperty({}, clsPrefix + '-backdrop', true); - var containerClasses = _defineProperty({}, clsPrefix + '-open', true); - if (!!centered) { - className += ' ' + clsPrefix + '-centered'; - } - if (draging) { - className += ' draging'; - } - if (draged) { - className += ' draged'; - } - if (Number(width)) width += 'px'; + var _scrollLeft2 = _interopRequireDefault(_scrollLeft); - var styleRes = _extends({}, this.state.style, style, topPosStyle); - if (width) { - _extends(styleRes, { width: width }); - } - return _react2["default"].createElement( - _Modal2["default"], - _extends({}, baseModalProps, { - ref: function ref(c) { - _this2._modal = c; - }, - show: show, - onEntering: (0, _tinperBeeCore.createChainedFunction)(onEntering, this.handleEntering), - onExited: (0, _tinperBeeCore.createChainedFunction)(onExited, this.handleExited), - backdrop: backdrop, - backdropClassName: (0, _classnames2["default"])(backdropClasses, inClassName, backdropClassName), - containerClassName: (0, _classnames2["default"])(containerClasses, containerClassName), - transition: animation ? _beeTransition.Fade : undefined, - dialogTransitionTimeout: Modal.TRANSITION_DURATION, - backdropTransitionTimeout: Modal.BACKDROP_TRANSITION_DURATION, - container: container - }), - _react2["default"].createElement( - Dialog, - _extends({}, dialogProps, { - style: styleRes, - className: (0, _classnames2["default"])(className, inClassName, backdropClassName), - onClick: backdrop === true && !!backdropClosable ? this.handleDialogClick : null, - size: size, - draggable: draggable, - bounds: bounds, - resizeClassName: resizeClassName, - clearCenteredCls: this.clearCenteredCls, - onStart: function onStart() { - _this2.setState({ - draging: true, - draged: false - }); - }, - onStop: function onStop() { - _this2.setState({ - draging: false, - draged: true - }); - } - }), - children - ) - ); - }; + var _style = __webpack_require__(32); - return Modal; - }(_react2["default"].Component); + var _style2 = _interopRequireDefault(_style); - Modal.info = ModalFunc; - Modal.success = ModalFunc; - Modal.error = ModalFunc; - Modal.warn = ModalFunc; - Modal.warning = ModalFunc; - Modal.confirm = ModalFunc; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - Modal.destroyAll = function () { - return; - }; + function nodeName(node) { + return node.nodeName && node.nodeName.toLowerCase(); + } - Modal.propTypes = propTypes; - Modal.defaultProps = defaultProps; - Modal.childContextTypes = childContextTypes; + function position(node, offsetParent) { + var parentOffset = { top: 0, left: 0 }, + offset; - Modal.Body = _ModalBody2["default"]; - Modal.Header = _ModalHeader2["default"]; - Modal.Title = _ModalTitle2["default"]; - Modal.Footer = _ModalFooter2["default"]; + // Fixed elements are offset from window (parentOffset = {top:0, left: 0}, + // because it is its only offset parent + if ((0, _style2.default)(node, 'position') === 'fixed') { + offset = node.getBoundingClientRect(); + } else { + offsetParent = offsetParent || (0, _offsetParent2.default)(node); + offset = (0, _offset2.default)(node); - Modal.Dialog = _ModalDialog2["default"]; + if (nodeName(offsetParent) !== 'html') parentOffset = (0, _offset2.default)(offsetParent); - Modal.TRANSITION_DURATION = 200000; - Modal.BACKDROP_TRANSITION_DURATION = 10000; + parentOffset.top += parseInt((0, _style2.default)(offsetParent, 'borderTopWidth'), 10) - (0, _scrollTop2.default)(offsetParent) || 0; + parentOffset.left += parseInt((0, _style2.default)(offsetParent, 'borderLeftWidth'), 10) - (0, _scrollLeft2.default)(offsetParent) || 0; + } - exports["default"] = Modal; + // Subtract parent offsets and node margins + return _extends({}, offset, { + top: offset.top - parentOffset.top - (parseInt((0, _style2.default)(node, 'marginTop'), 10) || 0), + left: offset.left - parentOffset.left - (parseInt((0, _style2.default)(node, 'marginLeft'), 10) || 0) + }); + } + module.exports = exports['default']; /***/ }), - /* 203 */ + /* 103 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; - exports.__esModule = true; - exports.default = createChainableTypeChecker; - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - - // Mostly taken from ReactPropTypes. - - /* This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ - - function createChainableTypeChecker(validate) { - function checkType(isRequired, props, propName, componentName, location, propFullName) { - var componentNameSafe = componentName || '<>'; - var propFullNameSafe = propFullName || propName; - - if (props[propName] == null) { - if (isRequired) { - return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); - } - - return null; - } + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = ownerWindow; - for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { - args[_key - 6] = arguments[_key]; - } + var _ownerDocument = __webpack_require__(23); - return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); - } + var _ownerDocument2 = _interopRequireDefault(_ownerDocument); - var chainedCheckType = checkType.bind(null, false); - chainedCheckType.isRequired = checkType.bind(null, true); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - return chainedCheckType; + function ownerWindow(node) { + var doc = (0, _ownerDocument2.default)(node); + return doc && doc.defaultView || doc.parentWindow; } + module.exports = exports['default']; /***/ }), - /* 204 */ + /* 104 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -127779,3501 +117014,3635 @@ Object.defineProperty(exports, "__esModule", { value: true }); - exports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = undefined; - - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _react = __webpack_require__(0); - - var _react2 = _interopRequireDefault(_react); - - var _reactDom = __webpack_require__(3); - - var _reactDom2 = _interopRequireDefault(_reactDom); + exports.default = function (recalc) { + if (!size || recalc) { + if (_inDOM2.default) { + var scrollDiv = document.createElement('div'); - var _properties = __webpack_require__(27); + scrollDiv.style.position = 'absolute'; + scrollDiv.style.top = '-9999px'; + scrollDiv.style.width = '50px'; + scrollDiv.style.height = '50px'; + scrollDiv.style.overflow = 'scroll'; - var _properties2 = _interopRequireDefault(_properties); + document.body.appendChild(scrollDiv); + size = scrollDiv.offsetWidth - scrollDiv.clientWidth; + document.body.removeChild(scrollDiv); + } + } - var _on = __webpack_require__(17); + return size; + }; - var _on2 = _interopRequireDefault(_on); + var _inDOM = __webpack_require__(26); - var _classnames = __webpack_require__(2); + var _inDOM2 = _interopRequireDefault(_inDOM); - var _classnames2 = _interopRequireDefault(_classnames); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var _propTypes = __webpack_require__(1); + var size = void 0; - var _propTypes2 = _interopRequireDefault(_propTypes); + module.exports = exports['default']; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + /***/ }), + /* 105 */ + /***/ (function(module, exports, __webpack_require__) { - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + "use strict"; - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports["default"] = isOverflowing; - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + var _isWindow = __webpack_require__(101); - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + var _isWindow2 = _interopRequireDefault(_isWindow); - var transitionEndEvent = _properties2["default"].end; + var _ownerDocument = __webpack_require__(23); - //设置状态码 - var UNMOUNTED = exports.UNMOUNTED = 0; - var EXITED = exports.EXITED = 1; - var ENTERING = exports.ENTERING = 2; - var ENTERED = exports.ENTERED = 3; - var EXITING = exports.EXITING = 4; + var _ownerDocument2 = _interopRequireDefault(_ownerDocument); - var propTypes = { - /** - * 是否触发动画 - */ - "in": _propTypes2["default"].bool, + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - /** - * 不显示的时候是否移除组件 - */ - unmountOnExit: _propTypes2["default"].bool, + function isBody(node) { + return node && node.tagName.toLowerCase() === 'body'; + } - /** - * 如果设置为默认显示,挂载时显示动画 - */ - transitionAppear: _propTypes2["default"].bool, + function bodyIsOverflowing(node) { + var doc = (0, _ownerDocument2["default"])(node); + var win = (0, _isWindow2["default"])(doc); + var fullWidth = win.innerWidth; - /** - * 设置超时时间,防止出现问题,可设置为>=动画时间 - */ - timeout: _propTypes2["default"].number, + // Support: ie8, no innerWidth + if (!fullWidth) { + var documentElementRect = doc.documentElement.getBoundingClientRect(); + fullWidth = documentElementRect.right - Math.abs(documentElementRect.left); + } - /** - * 退出组件时添加的class - */ - exitedClassName: _propTypes2["default"].string, - /** - * 退出组件中添加的class - */ - exitingClassName: _propTypes2["default"].string, - /** - * 进入动画后添加的class - */ - enteredClassName: _propTypes2["default"].string, - /** - * 进入动画时添加的class - */ - enteringClassName: _propTypes2["default"].string, + return doc.body.clientWidth < fullWidth; + } - /** - * 进入动画开始时的钩子函数 - */ - onEnter: _propTypes2["default"].func, - /** - * 进入动画中的钩子函数 - */ - onEntering: _propTypes2["default"].func, - /** - * 进入动画后的钩子函数 - */ - onEntered: _propTypes2["default"].func, - /** - * 退出动画开始时的钩子函数 - */ - onExit: _propTypes2["default"].func, - /** - * 退出动画中的钩子函数 - */ - onExiting: _propTypes2["default"].func, - /** - * 退出动画后的钩子函数 - */ - onExited: _propTypes2["default"].func - }; + function isOverflowing(container) { + var win = (0, _isWindow2["default"])(container); + return win || isBody(container) ? false : container.scrollHeight > container.clientHeight; + } + module.exports = exports['default']; - function noop() {} + /***/ }), + /* 106 */ + /***/ (function(module, exports, __webpack_require__) { - var defaultProps = { - "in": false, - unmountOnExit: false, - transitionAppear: false, - timeout: 5000, - onEnter: noop, - onEntering: noop, - onEntered: noop, - onExit: noop, - onExiting: noop, - onExited: noop - }; + "use strict"; - /** - * 动画组件 - */ + // turn {x: {val: 1, stiffness: 1, damping: 2}, y: 2} generated by + // `{x: spring(1, {stiffness: 1, damping: 2}), y: 2}` into {x: 1, y: 2} - var Transition = function (_Component) { - _inherits(Transition, _Component); - function Transition(props, context) { - _classCallCheck(this, Transition); - var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); + exports.__esModule = true; + exports['default'] = stripStyle; - var initialStatus = void 0; - if (props["in"]) { - // 在componentdidmount时开始执行动画 - initialStatus = props.transitionAppear ? EXITED : ENTERED; - } else { - initialStatus = props.unmountOnExit ? UNMOUNTED : EXITED; + function stripStyle(style) { + var ret = {}; + for (var key in style) { + if (!Object.prototype.hasOwnProperty.call(style, key)) { + continue; } - _this.state = { status: initialStatus }; - - _this.nextCallback = null; - return _this; + ret[key] = typeof style[key] === 'number' ? style[key] : style[key].val; } + return ret; + } - Transition.prototype.componentDidMount = function componentDidMount() { - if (this.props.transitionAppear && this.props["in"]) { - this.performEnter(this.props); - } - }; - - Transition.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - if (nextProps["in"] && this.props.unmountOnExit) { - if (this.state.status === UNMOUNTED) { - // 在componentDidUpdate执行动画. - this.setState({ status: EXITED }); - } - } else { - this._needsUpdate = true; - } - }; - - Transition.prototype.componentDidUpdate = function componentDidUpdate() { - var status = this.state.status; + module.exports = exports['default']; - if (this.props.unmountOnExit && status === EXITED) { - // 当使用unmountOnExit时,exited为exiting和unmont的过渡状态 - if (this.props["in"]) { - this.performEnter(this.props); - } else { - this.setState({ status: UNMOUNTED }); - } + /***/ }), + /* 107 */ + /***/ (function(module, exports, __webpack_require__) { - return; - } + (function (global, factory) { + true ? module.exports = factory(__webpack_require__(3), __webpack_require__(0)) : + typeof define === 'function' && define.amd ? define(['react-dom', 'react'], factory) : + (global.ReactDraggable = factory(global.ReactDOM,global.React)); + }(this, (function (ReactDOM,React) { 'use strict'; - // 确保只响应prop变化 - if (this._needsUpdate) { - this._needsUpdate = false; + ReactDOM = ReactDOM && ReactDOM.hasOwnProperty('default') ? ReactDOM['default'] : ReactDOM; + React = React && React.hasOwnProperty('default') ? React['default'] : React; - if (this.props["in"]) { - if (status === EXITING) { - this.performEnter(this.props); - } else if (status === EXITED) { - this.performEnter(this.props); - } - // 其他,当我们已经输入或输出 - } else { - if (status === ENTERING || status === ENTERED) { - this.performExit(this.props); - } - // 我们已经输入或输出完成 - } - } - }; + function createCommonjsModule(fn, module) { + return module = { exports: {} }, fn(module, module.exports), module.exports; + } - Transition.prototype.componentWillUnmount = function componentWillUnmount() { - this.cancelNextCallback(); - }; + /** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + */ - Transition.prototype.performEnter = function performEnter(props) { - var _this2 = this; + function makeEmptyFunction(arg) { + return function () { + return arg; + }; + } - this.cancelNextCallback(); - var node = _reactDom2["default"].findDOMNode(this); + /** + * This function accepts and discards inputs; it has no side effects. This is + * primarily useful idiomatically for overridable function endpoints which + * always need to be callable, since JS lacks a null-call idiom ala Cocoa. + */ + var emptyFunction = function emptyFunction() {}; - // 这里接收新props - props.onEnter(node); + emptyFunction.thatReturns = makeEmptyFunction; + emptyFunction.thatReturnsFalse = makeEmptyFunction(false); + emptyFunction.thatReturnsTrue = makeEmptyFunction(true); + emptyFunction.thatReturnsNull = makeEmptyFunction(null); + emptyFunction.thatReturnsThis = function () { + return this; + }; + emptyFunction.thatReturnsArgument = function (arg) { + return arg; + }; - this.safeSetState({ status: ENTERING }, function () { - _this2.props.onEntering(node); + var emptyFunction_1 = emptyFunction; - _this2.onTransitionEnd(node, function () { - _this2.safeSetState({ status: ENTERED }, function () { - _this2.props.onEntered(node); - }); - }); - }); - }; + /** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + */ - Transition.prototype.performExit = function performExit(props) { - var _this3 = this; + /** + * Use invariant() to assert state which your program assumes to be true. + * + * Provide sprintf-style format (only %s is supported) and arguments + * to provide information about what broke and what you were + * expecting. + * + * The invariant message will be stripped in production, but the invariant + * will remain to ensure logic does not differ in production. + */ - this.cancelNextCallback(); - var node = _reactDom2["default"].findDOMNode(this); + var validateFormat = function validateFormat(format) {}; - props.onExit(node); + { + validateFormat = function validateFormat(format) { + if (format === undefined) { + throw new Error('invariant requires an error message argument'); + } + }; + } - this.safeSetState({ status: EXITING }, function () { - _this3.props.onExiting(node); + function invariant(condition, format, a, b, c, d, e, f) { + validateFormat(format); - _this3.onTransitionEnd(node, function () { - _this3.safeSetState({ status: EXITED }, function () { - _this3.props.onExited(node); - }); - }); - }); - }; + if (!condition) { + var error; + if (format === undefined) { + error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.'); + } else { + var args = [a, b, c, d, e, f]; + var argIndex = 0; + error = new Error(format.replace(/%s/g, function () { + return args[argIndex++]; + })); + error.name = 'Invariant Violation'; + } - Transition.prototype.cancelNextCallback = function cancelNextCallback() { - if (this.nextCallback !== null) { - this.nextCallback.cancel(); - this.nextCallback = null; - } - }; + error.framesToPop = 1; // we don't care about invariant's own frame + throw error; + } + } - Transition.prototype.safeSetState = function safeSetState(nextState, callback) { - // 确保在组件销毁后挂起的setState被消除 - this.setState(nextState, this.setNextCallback(callback)); - }; + var invariant_1 = invariant; - Transition.prototype.setNextCallback = function setNextCallback(callback) { - var _this4 = this; + /** + * Similar to invariant but only logs a warning if the condition is not met. + * This can be used to log issues in development environments in critical + * paths. Removing the logging code for production environments will keep the + * same logic and follow the same code paths. + */ - var active = true; + var warning = emptyFunction_1; - this.nextCallback = function (event) { - if (active) { - active = false; - _this4.nextCallback = null; + { + var printWarning = function printWarning(format) { + for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } - callback(event); - } - }; + var argIndex = 0; + var message = 'Warning: ' + format.replace(/%s/g, function () { + return args[argIndex++]; + }); + if (typeof console !== 'undefined') { + console.error(message); + } + try { + // --- Welcome to debugging React --- + // This error was thrown as a convenience so that you can use this stack + // to find the callsite that caused this warning to fire. + throw new Error(message); + } catch (x) {} + }; - this.nextCallback.cancel = function () { - active = false; - }; + warning = function warning(condition, format) { + if (format === undefined) { + throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument'); + } - return this.nextCallback; - }; + if (format.indexOf('Failed Composite propType: ') === 0) { + return; // Ignore CompositeComponent proptype check. + } - Transition.prototype.onTransitionEnd = function onTransitionEnd(node, handler) { - this.setNextCallback(handler); + if (!condition) { + for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { + args[_key2 - 2] = arguments[_key2]; + } - if (node) { - if (transitionEndEvent == undefined) { - this.nextCallback(); - } else { - (0, _on2["default"])(node, transitionEndEvent, this.nextCallback); - } - setTimeout(this.nextCallback, this.props.timeout); - } else { - setTimeout(this.nextCallback, 0); - } - }; + printWarning.apply(undefined, [format].concat(args)); + } + }; + } - Transition.prototype.render = function render() { - var status = this.state.status; - if (status === UNMOUNTED) { - return null; - } + var warning_1 = warning; - var _props = this.props, - children = _props.children, - className = _props.className, - childProps = _objectWithoutProperties(_props, ['children', 'className']); + /* + object-assign + (c) Sindre Sorhus + @license MIT + */ + /* eslint-disable no-unused-vars */ + var getOwnPropertySymbols = Object.getOwnPropertySymbols; + var hasOwnProperty = Object.prototype.hasOwnProperty; + var propIsEnumerable = Object.prototype.propertyIsEnumerable; - Object.keys(Transition.propTypes).forEach(function (key) { - return delete childProps[key]; - }); + function toObject(val) { + if (val === null || val === undefined) { + throw new TypeError('Object.assign cannot be called with null or undefined'); + } - var transitionClassName = void 0; - if (status === EXITED) { - transitionClassName = this.props.exitedClassName; - } else if (status === ENTERING) { - transitionClassName = this.props.enteringClassName; - } else if (status === ENTERED) { - transitionClassName = this.props.enteredClassName; - } else if (status === EXITING) { - transitionClassName = this.props.exitingClassName; - } + return Object(val); + } - var child = _react2["default"].Children.only(children); - return _react2["default"].cloneElement(child, _extends({}, childProps, { - className: (0, _classnames2["default"])(child.props.className, className, transitionClassName) - })); - }; + function shouldUseNative() { + try { + if (!Object.assign) { + return false; + } - return Transition; - }(_react.Component); + // Detect buggy property enumeration order in older V8 versions. - Transition.propTypes = propTypes; + // https://bugs.chromium.org/p/v8/issues/detail?id=4118 + var test1 = new String('abc'); // eslint-disable-line no-new-wrappers + test1[5] = 'de'; + if (Object.getOwnPropertyNames(test1)[0] === '5') { + return false; + } - Transition.defaultProps = defaultProps; + // https://bugs.chromium.org/p/v8/issues/detail?id=3056 + var test2 = {}; + for (var i = 0; i < 10; i++) { + test2['_' + String.fromCharCode(i)] = i; + } + var order2 = Object.getOwnPropertyNames(test2).map(function (n) { + return test2[n]; + }); + if (order2.join('') !== '0123456789') { + return false; + } - exports["default"] = Transition; + // https://bugs.chromium.org/p/v8/issues/detail?id=3056 + var test3 = {}; + 'abcdefghijklmnopqrst'.split('').forEach(function (letter) { + test3[letter] = letter; + }); + if (Object.keys(Object.assign({}, test3)).join('') !== + 'abcdefghijklmnopqrst') { + return false; + } - /***/ }), - /* 205 */ - /***/ (function(module, exports, __webpack_require__) { + return true; + } catch (err) { + // We don't expect any of the above to throw, but better to be safe. + return false; + } + } - "use strict"; + var objectAssign = shouldUseNative() ? Object.assign : function (target, source) { + var from; + var to = toObject(target); + var symbols; + for (var s = 1; s < arguments.length; s++) { + from = Object(arguments[s]); - Object.defineProperty(exports, "__esModule", { - value: true - }); + for (var key in from) { + if (hasOwnProperty.call(from, key)) { + to[key] = from[key]; + } + } - var _Button = __webpack_require__(1611); + if (getOwnPropertySymbols) { + symbols = getOwnPropertySymbols(from); + for (var i = 0; i < symbols.length; i++) { + if (propIsEnumerable.call(from, symbols[i])) { + to[symbols[i]] = from[symbols[i]]; + } + } + } + } - var _Button2 = _interopRequireDefault(_Button); + return to; + }; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + /** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ - exports["default"] = _Button2["default"]; - module.exports = exports['default']; + var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; - /***/ }), - /* 206 */ - /***/ (function(module, exports, __webpack_require__) { + var ReactPropTypesSecret_1 = ReactPropTypesSecret; - "use strict"; + { + var invariant$1 = invariant_1; + var warning$1 = warning_1; + var ReactPropTypesSecret$1 = ReactPropTypesSecret_1; + var loggedTypeFailures = {}; + } + /** + * Assert that the values match with the type specs. + * Error messages are memorized and will only be shown once. + * + * @param {object} typeSpecs Map of name to a ReactPropType + * @param {object} values Runtime values that need to be type-checked + * @param {string} location e.g. "prop", "context", "child context" + * @param {string} componentName Name of the component for error messages. + * @param {?Function} getStack Returns the component stack. + * @private + */ + function checkPropTypes(typeSpecs, values, location, componentName, getStack) { + { + for (var typeSpecName in typeSpecs) { + if (typeSpecs.hasOwnProperty(typeSpecName)) { + var error; + // Prop type validation may throw. In case they do, we don't want to + // fail the render phase where it didn't fail before. So we log it. + // After these have been cleaned up, we'll let them throw. + try { + // This is intentionally an invariant that gets caught. It's the same + // behavior as without this statement except with a better message. + invariant$1(typeof typeSpecs[typeSpecName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'the `prop-types` package, but received `%s`.', componentName || 'React class', location, typeSpecName, typeof typeSpecs[typeSpecName]); + error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$1); + } catch (ex) { + error = ex; + } + warning$1(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error); + if (error instanceof Error && !(error.message in loggedTypeFailures)) { + // Only monitor this failure once because there tends to be a lot of the + // same error. + loggedTypeFailures[error.message] = true; - Object.defineProperty(exports, "__esModule", { - value: true - }); + var stack = getStack ? getStack() : ''; - var _react = __webpack_require__(0); + warning$1(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : ''); + } + } + } + } + } - var _react2 = _interopRequireDefault(_react); + var checkPropTypes_1 = checkPropTypes; - var _propTypes = __webpack_require__(1); + var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) { + /* global Symbol */ + var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator; + var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec. - var _propTypes2 = _interopRequireDefault(_propTypes); + /** + * Returns the iterator method function contained on the iterable object. + * + * Be sure to invoke the function with the iterable as context: + * + * var iteratorFn = getIteratorFn(myIterable); + * if (iteratorFn) { + * var iterator = iteratorFn.call(myIterable); + * ... + * } + * + * @param {?object} maybeIterable + * @return {?function} + */ + function getIteratorFn(maybeIterable) { + var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]); + if (typeof iteratorFn === 'function') { + return iteratorFn; + } + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + /** + * Collection of methods that allow declaration and validation of props that are + * supplied to React components. Example usage: + * + * var Props = require('ReactPropTypes'); + * var MyArticle = React.createClass({ + * propTypes: { + * // An optional string prop named "description". + * description: Props.string, + * + * // A required enum prop named "category". + * category: Props.oneOf(['News','Photos']).isRequired, + * + * // A prop named "dialog" that requires an instance of Dialog. + * dialog: Props.instanceOf(Dialog).isRequired + * }, + * render: function() { ... } + * }); + * + * A more formal specification of how these methods are used: + * + * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...) + * decl := ReactPropTypes.{type}(.isRequired)? + * + * Each and every declaration produces a function with the same signature. This + * allows the creation of custom validation functions. For example: + * + * var MyLink = React.createClass({ + * propTypes: { + * // An optional string or URI prop named "href". + * href: function(props, propName, componentName) { + * var propValue = props[propName]; + * if (propValue != null && typeof propValue !== 'string' && + * !(propValue instanceof URI)) { + * return new Error( + * 'Expected a string or an URI for ' + propName + ' in ' + + * componentName + * ); + * } + * } + * }, + * render: function() {...} + * }); + * + * @internal + */ - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + var ANONYMOUS = '<>'; - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + // Important! + // Keep this list in sync with production version in `./factoryWithThrowingShims.js`. + var ReactPropTypes = { + array: createPrimitiveTypeChecker('array'), + bool: createPrimitiveTypeChecker('boolean'), + func: createPrimitiveTypeChecker('function'), + number: createPrimitiveTypeChecker('number'), + object: createPrimitiveTypeChecker('object'), + string: createPrimitiveTypeChecker('string'), + symbol: createPrimitiveTypeChecker('symbol'), - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + any: createAnyTypeChecker(), + arrayOf: createArrayOfTypeChecker, + element: createElementTypeChecker(), + instanceOf: createInstanceTypeChecker, + node: createNodeChecker(), + objectOf: createObjectOfTypeChecker, + oneOf: createEnumTypeChecker, + oneOfType: createUnionTypeChecker, + shape: createShapeTypeChecker, + exact: createStrictShapeTypeChecker, + }; - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** - * This source code is quoted from rc-select. - * homepage: https://github.com/react-component/select - */ + /** + * inlined Object.is polyfill to avoid requiring consumers ship their own + * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is + */ + /*eslint-disable no-self-compare*/ + function is(x, y) { + // SameValue algorithm + if (x === y) { + // Steps 1-5, 7-10 + // Steps 6.b-6.e: +0 != -0 + return x !== 0 || 1 / x === 1 / y; + } else { + // Step 6.a: NaN == NaN + return x !== x && y !== y; + } + } + /*eslint-enable no-self-compare*/ + /** + * We use an Error-like object for backward compatibility as people may call + * PropTypes directly and inspect their output. However, we don't use real + * Errors anymore. We don't inspect their stack anyway, and creating them + * is prohibitively expensive if they are created too often, such as what + * happens in oneOfType() for any type before the one that matched. + */ + function PropTypeError(message) { + this.message = message; + this.stack = ''; + } + // Make `instanceof Error` still work for returned errors. + PropTypeError.prototype = Error.prototype; - var Option = function (_React$Component) { - _inherits(Option, _React$Component); + function createChainableTypeChecker(validate) { + { + var manualPropTypeCallCache = {}; + var manualPropTypeWarningCount = 0; + } + function checkType(isRequired, props, propName, componentName, location, propFullName, secret) { + componentName = componentName || ANONYMOUS; + propFullName = propFullName || propName; - function Option() { - _classCallCheck(this, Option); + if (secret !== ReactPropTypesSecret_1) { + if (throwOnDirectAccess) { + // New behavior only for users of `prop-types` package + invariant_1( + false, + 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' + + 'Use `PropTypes.checkPropTypes()` to call them. ' + + 'Read more at http://fb.me/use-check-prop-types' + ); + } else if ("development" !== 'production' && typeof console !== 'undefined') { + // Old behavior for people using React.PropTypes + var cacheKey = componentName + ':' + propName; + if ( + !manualPropTypeCallCache[cacheKey] && + // Avoid spamming the console because they are often not actionable except for lib authors + manualPropTypeWarningCount < 3 + ) { + warning_1( + false, + 'You are manually calling a React.PropTypes validation ' + + 'function for the `%s` prop on `%s`. This is deprecated ' + + 'and will throw in the standalone `prop-types` package. ' + + 'You may be seeing this warning due to a third-party PropTypes ' + + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.', + propFullName, + componentName + ); + manualPropTypeCallCache[cacheKey] = true; + manualPropTypeWarningCount++; + } + } + } + if (props[propName] == null) { + if (isRequired) { + if (props[propName] === null) { + return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.')); + } + return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.')); + } + return null; + } else { + return validate(props, propName, componentName, location, propFullName); + } + } - return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); - } + var chainedCheckType = checkType.bind(null, false); + chainedCheckType.isRequired = checkType.bind(null, true); - return Option; - }(_react2["default"].Component); + return chainedCheckType; + } - Option.propTypes = { - value: _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].number]) - }; - Option.isSelectOption = true; - exports["default"] = Option; - module.exports = exports['default']; + function createPrimitiveTypeChecker(expectedType) { + function validate(props, propName, componentName, location, propFullName, secret) { + var propValue = props[propName]; + var propType = getPropType(propValue); + if (propType !== expectedType) { + // `propValue` being instance of, say, date/regexp, pass the 'object' + // check, but we can offer a more precise error message here rather than + // 'of type `object`'. + var preciseType = getPreciseType(propValue); - /***/ }), - /* 207 */ - /***/ (function(module, exports, __webpack_require__) { + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.')); + } + return null; + } + return createChainableTypeChecker(validate); + } - "use strict"; + function createAnyTypeChecker() { + return createChainableTypeChecker(emptyFunction_1.thatReturnsNull); + } + function createArrayOfTypeChecker(typeChecker) { + function validate(props, propName, componentName, location, propFullName) { + if (typeof typeChecker !== 'function') { + return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.'); + } + var propValue = props[propName]; + if (!Array.isArray(propValue)) { + var propType = getPropType(propValue); + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.')); + } + for (var i = 0; i < propValue.length; i++) { + var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret_1); + if (error instanceof Error) { + return error; + } + } + return null; + } + return createChainableTypeChecker(validate); + } - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.UNSELECTABLE_ATTRIBUTE = exports.UNSELECTABLE_STYLE = undefined; + function createElementTypeChecker() { + function validate(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + if (!isValidElement(propValue)) { + var propType = getPropType(propValue); + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.')); + } + return null; + } + return createChainableTypeChecker(validate); + } - var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + function createInstanceTypeChecker(expectedClass) { + function validate(props, propName, componentName, location, propFullName) { + if (!(props[propName] instanceof expectedClass)) { + var expectedClassName = expectedClass.name || ANONYMOUS; + var actualClassName = getClassName(props[propName]); + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.')); + } + return null; + } + return createChainableTypeChecker(validate); + } - exports.toTitle = toTitle; - exports.getValuePropValue = getValuePropValue; - exports.getPropValue = getPropValue; - exports.isMultiple = isMultiple; - exports.isCombobox = isCombobox; - exports.isMultipleOrTags = isMultipleOrTags; - exports.isMultipleOrTagsOrCombobox = isMultipleOrTagsOrCombobox; - exports.isSingleMode = isSingleMode; - exports.toArray = toArray; - exports.getMapKey = getMapKey; - exports.preventDefaultEvent = preventDefaultEvent; - exports.findIndexInValueBySingleValue = findIndexInValueBySingleValue; - exports.getLabelFromPropsValue = getLabelFromPropsValue; - exports.getSelectKeys = getSelectKeys; - exports.findFirstMenuItem = findFirstMenuItem; - exports.includesSeparators = includesSeparators; - exports.splitBySeparators = splitBySeparators; - exports.defaultFilterFn = defaultFilterFn; - exports.validateOptionValue = validateOptionValue; - exports.saveRef = saveRef; + function createEnumTypeChecker(expectedValues) { + if (!Array.isArray(expectedValues)) { + warning_1(false, 'Invalid argument supplied to oneOf, expected an instance of array.'); + return emptyFunction_1.thatReturnsNull; + } - var _react = __webpack_require__(0); + function validate(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + for (var i = 0; i < expectedValues.length; i++) { + if (is(propValue, expectedValues[i])) { + return null; + } + } - var _react2 = _interopRequireDefault(_react); + var valuesString = JSON.stringify(expectedValues); + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.')); + } + return createChainableTypeChecker(validate); + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + function createObjectOfTypeChecker(typeChecker) { + function validate(props, propName, componentName, location, propFullName) { + if (typeof typeChecker !== 'function') { + return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.'); + } + var propValue = props[propName]; + var propType = getPropType(propValue); + if (propType !== 'object') { + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.')); + } + for (var key in propValue) { + if (propValue.hasOwnProperty(key)) { + var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1); + if (error instanceof Error) { + return error; + } + } + } + return null; + } + return createChainableTypeChecker(validate); + } - function toTitle(title) { - if (typeof title === 'string') { - return title; - } - return null; - } + function createUnionTypeChecker(arrayOfTypeCheckers) { + if (!Array.isArray(arrayOfTypeCheckers)) { + warning_1(false, 'Invalid argument supplied to oneOfType, expected an instance of array.'); + return emptyFunction_1.thatReturnsNull; + } - function getValuePropValue(child) { - if (!child) { - return null; - } + for (var i = 0; i < arrayOfTypeCheckers.length; i++) { + var checker = arrayOfTypeCheckers[i]; + if (typeof checker !== 'function') { + warning_1( + false, + 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + + 'received %s at index %s.', + getPostfixForTypeWarning(checker), + i + ); + return emptyFunction_1.thatReturnsNull; + } + } - var props = child.props; - if ('value' in props) { - return props.value; - } - if (child.key) { - return child.key; - } - if (child.type && child.type.isSelectOptGroup && props.label) { - return props.label; - } - throw new Error('Need at least a key or a value or a label (only for OptGroup) for ' + child); - } + function validate(props, propName, componentName, location, propFullName) { + for (var i = 0; i < arrayOfTypeCheckers.length; i++) { + var checker = arrayOfTypeCheckers[i]; + if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret_1) == null) { + return null; + } + } - function getPropValue(child, prop) { - if (prop === 'value') { - return getValuePropValue(child); - } - return child.props[prop]; - } + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.')); + } + return createChainableTypeChecker(validate); + } - function isMultiple(props) { - return props.multiple; - } + function createNodeChecker() { + function validate(props, propName, componentName, location, propFullName) { + if (!isNode(props[propName])) { + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.')); + } + return null; + } + return createChainableTypeChecker(validate); + } - function isCombobox(props) { - return props.combobox; - } + function createShapeTypeChecker(shapeTypes) { + function validate(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + var propType = getPropType(propValue); + if (propType !== 'object') { + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); + } + for (var key in shapeTypes) { + var checker = shapeTypes[key]; + if (!checker) { + continue; + } + var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1); + if (error) { + return error; + } + } + return null; + } + return createChainableTypeChecker(validate); + } - function isMultipleOrTags(props) { - return props.multiple || props.tags; - } + function createStrictShapeTypeChecker(shapeTypes) { + function validate(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + var propType = getPropType(propValue); + if (propType !== 'object') { + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); + } + // We need to check all keys in case some are required but missing from + // props. + var allKeys = objectAssign({}, props[propName], shapeTypes); + for (var key in allKeys) { + var checker = shapeTypes[key]; + if (!checker) { + return new PropTypeError( + 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' + + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ') + ); + } + var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1); + if (error) { + return error; + } + } + return null; + } - function isMultipleOrTagsOrCombobox(props) { - return isMultipleOrTags(props) || isCombobox(props); - } + return createChainableTypeChecker(validate); + } - function isSingleMode(props) { - return !isMultipleOrTagsOrCombobox(props); - } + function isNode(propValue) { + switch (typeof propValue) { + case 'number': + case 'string': + case 'undefined': + return true; + case 'boolean': + return !propValue; + case 'object': + if (Array.isArray(propValue)) { + return propValue.every(isNode); + } + if (propValue === null || isValidElement(propValue)) { + return true; + } - function toArray(value) { - var ret = value; - if (value === undefined) { - ret = []; - } else if (!Array.isArray(value)) { - ret = [value]; - } - return ret; - } + var iteratorFn = getIteratorFn(propValue); + if (iteratorFn) { + var iterator = iteratorFn.call(propValue); + var step; + if (iteratorFn !== propValue.entries) { + while (!(step = iterator.next()).done) { + if (!isNode(step.value)) { + return false; + } + } + } else { + // Iterator will provide entry [k,v] tuples rather than values. + while (!(step = iterator.next()).done) { + var entry = step.value; + if (entry) { + if (!isNode(entry[1])) { + return false; + } + } + } + } + } else { + return false; + } - function getMapKey(value) { - return (typeof value === 'undefined' ? 'undefined' : _typeof(value)) + '-' + value; - } + return true; + default: + return false; + } + } - function preventDefaultEvent(e) { - e.preventDefault(); - } + function isSymbol(propType, propValue) { + // Native Symbol. + if (propType === 'symbol') { + return true; + } - function findIndexInValueBySingleValue(value, singleValue) { - var index = -1; - for (var i = 0; i < value.length; i++) { - if (value[i] === singleValue) { - index = i; - break; - } - } - return index; - } + // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol' + if (propValue['@@toStringTag'] === 'Symbol') { + return true; + } - function getLabelFromPropsValue(value, key) { - var label = void 0; - value = toArray(value); - for (var i = 0; i < value.length; i++) { - if (value[i].key === key) { - label = value[i].label; - break; - } - } - return label; - } + // Fallback for non-spec compliant Symbols which are polyfilled. + if (typeof Symbol === 'function' && propValue instanceof Symbol) { + return true; + } - function getSelectKeys(menuItems, value) { - if (value === null || value === undefined) { - return []; - } - var selectedKeys = []; - _react2["default"].Children.forEach(menuItems, function (item) { - if (item.type.isMenuItemGroup) { - selectedKeys = selectedKeys.concat(getSelectKeys(item.props.children, value)); - } else { - var itemValue = getValuePropValue(item); - var itemKey = item.key; - if (findIndexInValueBySingleValue(value, itemValue) !== -1 && itemKey) { - selectedKeys.push(itemKey); - } - } - }); - return selectedKeys; - } + return false; + } - var UNSELECTABLE_STYLE = exports.UNSELECTABLE_STYLE = { - userSelect: 'none', - WebkitUserSelect: 'none' - }; + // Equivalent of `typeof` but with special handling for array and regexp. + function getPropType(propValue) { + var propType = typeof propValue; + if (Array.isArray(propValue)) { + return 'array'; + } + if (propValue instanceof RegExp) { + // Old webkits (at least until Android 4.0) return 'function' rather than + // 'object' for typeof a RegExp. We'll normalize this here so that /bla/ + // passes PropTypes.object. + return 'object'; + } + if (isSymbol(propType, propValue)) { + return 'symbol'; + } + return propType; + } - var UNSELECTABLE_ATTRIBUTE = exports.UNSELECTABLE_ATTRIBUTE = { - unselectable: 'on' - }; + // This handles more types than `getPropType`. Only used for error messages. + // See `createPrimitiveTypeChecker`. + function getPreciseType(propValue) { + if (typeof propValue === 'undefined' || propValue === null) { + return '' + propValue; + } + var propType = getPropType(propValue); + if (propType === 'object') { + if (propValue instanceof Date) { + return 'date'; + } else if (propValue instanceof RegExp) { + return 'regexp'; + } + } + return propType; + } - function findFirstMenuItem(children) { - for (var i = 0; i < children.length; i++) { - var child = children[i]; - if (child.type.isMenuItemGroup) { - var found = findFirstMenuItem(child.props.children); - if (found) { - return found; - } - } else if (!child.props.disabled) { - return child; - } - } - return null; - } + // Returns a string that is postfixed to a warning about an invalid type. + // For example, "undefined" or "of type array" + function getPostfixForTypeWarning(value) { + var type = getPreciseType(value); + switch (type) { + case 'array': + case 'object': + return 'an ' + type; + case 'boolean': + case 'date': + case 'regexp': + return 'a ' + type; + default: + return type; + } + } - function includesSeparators(string, separators) { - for (var i = 0; i < separators.length; ++i) { - if (string.lastIndexOf(separators[i]) > 0) { - return true; - } - } - return false; - } + // Returns class name of the object, if any. + function getClassName(propValue) { + if (!propValue.constructor || !propValue.constructor.name) { + return ANONYMOUS; + } + return propValue.constructor.name; + } - function splitBySeparators(string, separators) { - var reg = new RegExp('[' + separators.join() + ']'); - return string.split(reg).filter(function (token) { - return token; - }); - } + ReactPropTypes.checkPropTypes = checkPropTypes_1; + ReactPropTypes.PropTypes = ReactPropTypes; - function defaultFilterFn(input, child) { - if (child.props.disabled) { - return false; - } - var value = toArray(getPropValue(child, this.props.optionFilterProp)).join(''); - return value.toLowerCase().indexOf(input.toLowerCase()) > -1; - } + return ReactPropTypes; + }; - function validateOptionValue(value, props) { - if (isSingleMode(props) || isMultiple(props)) { - return; - } - if (typeof value !== 'string') { - throw new Error('Invalid `value` of type `' + (typeof value === 'undefined' ? 'undefined' : _typeof(value)) + '` supplied to Option, ' + 'expected `string` when `tags/combobox` is `true`.'); - } - } + var propTypes = createCommonjsModule(function (module) { + /** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ - function saveRef(instance, name) { - return function (node) { - instance[name] = node; - }; - } + { + var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' && + Symbol.for && + Symbol.for('react.element')) || + 0xeac7; - /***/ }), - /* 208 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + var isValidElement = function(object) { + return typeof object === 'object' && + object !== null && + object.$$typeof === REACT_ELEMENT_TYPE; + }; - "use strict"; - /* harmony export (immutable) */ __webpack_exports__["p"] = warnOnlyTreeNode; - /* harmony export (immutable) */ __webpack_exports__["b"] = arrDel; - /* harmony export (immutable) */ __webpack_exports__["a"] = arrAdd; - /* harmony export (immutable) */ __webpack_exports__["o"] = posToArr; - /* harmony export (immutable) */ __webpack_exports__["l"] = getPosition; - /* unused harmony export isTreeNode */ - /* harmony export (immutable) */ __webpack_exports__["k"] = getNodeChildren; - /* unused harmony export isCheckDisabled */ - /* unused harmony export traverseTreeNodes */ - /* harmony export (immutable) */ __webpack_exports__["m"] = mapChildren; - /* harmony export (immutable) */ __webpack_exports__["j"] = getDragNodesKeys; - /* harmony export (immutable) */ __webpack_exports__["c"] = calcDropPosition; - /* harmony export (immutable) */ __webpack_exports__["d"] = calcSelectedKeys; - /* harmony export (immutable) */ __webpack_exports__["g"] = convertDataToTree; - /* harmony export (immutable) */ __webpack_exports__["h"] = convertTreeToEntities; - /* harmony export (immutable) */ __webpack_exports__["n"] = parseCheckedKeys; - /* harmony export (immutable) */ __webpack_exports__["e"] = conductCheck; - /* harmony export (immutable) */ __webpack_exports__["f"] = conductExpandParent; - /* harmony export (immutable) */ __webpack_exports__["i"] = getDataAndAria; - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_rc_util_es_Children_toArray__ = __webpack_require__(119); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_warning__ = __webpack_require__(533); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_warning___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_warning__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__TreeNode__ = __webpack_require__(534); - function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + // By explicitly using `prop-types` you are opting into new development behavior. + // http://fb.me/prop-types-in-prod + var throwOnDirectAccess = true; + module.exports = factoryWithTypeCheckers(isValidElement, throwOnDirectAccess); + } + }); - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } + var classnames = createCommonjsModule(function (module) { + /*! + Copyright (c) 2016 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames + */ + /* global define */ - function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } + (function () { + var hasOwn = {}.hasOwnProperty; + function classNames () { + var classes = []; + for (var i = 0; i < arguments.length; i++) { + var arg = arguments[i]; + if (!arg) continue; + var argType = typeof arg; - var DRAG_SIDE_RANGE = 0.25; - var DRAG_MIN_GAP = 2; - var onlyTreeNodeWarned = false; - function warnOnlyTreeNode() { - if (onlyTreeNodeWarned) return; - onlyTreeNodeWarned = true; - __WEBPACK_IMPORTED_MODULE_2_warning___default()(false, 'Tree only accept TreeNode as children.'); - } - function arrDel(list, value) { - var clone = list.slice(); - var index = clone.indexOf(value); + if (argType === 'string' || argType === 'number') { + classes.push(arg); + } else if (Array.isArray(arg)) { + classes.push(classNames.apply(null, arg)); + } else if (argType === 'object') { + for (var key in arg) { + if (hasOwn.call(arg, key) && arg[key]) { + classes.push(key); + } + } + } + } - if (index >= 0) { - clone.splice(index, 1); - } + return classes.join(' '); + } - return clone; - } - function arrAdd(list, value) { - var clone = list.slice(); + if ('object' !== 'undefined' && module.exports) { + module.exports = classNames; + } else if (false) { + // register as 'classnames', consistent with npm package name + undefined('classnames', [], function () { + return classNames; + }); + } else { + window.classNames = classNames; + } + }()); + }); - if (clone.indexOf(value) === -1) { - clone.push(value); - } + // @credits https://gist.github.com/rogozhnikoff/a43cfed27c41e4e68cdc + function findInArray(array /*: Array | TouchList*/, callback /*: Function*/) /*: any*/ { + for (var i = 0, length = array.length; i < length; i++) { + if (callback.apply(callback, [array[i], i, array])) return array[i]; + } + } - return clone; - } - function posToArr(pos) { - return pos.split('-'); - } - function getPosition(level, index) { - return "".concat(level, "-").concat(index); - } - function isTreeNode(node) { - return node && node.type && node.type.isTreeNode; - } - function getNodeChildren(children) { - return Object(__WEBPACK_IMPORTED_MODULE_1_rc_util_es_Children_toArray__["a" /* default */])(children).filter(isTreeNode); - } - function isCheckDisabled(node) { - var _ref = node.props || {}, - disabled = _ref.disabled, - disableCheckbox = _ref.disableCheckbox, - checkable = _ref.checkable; + function isFunction(func /*: any*/) /*: boolean*/ { + return typeof func === 'function' || Object.prototype.toString.call(func) === '[object Function]'; + } - return !!(disabled || disableCheckbox) || checkable === false; - } - function traverseTreeNodes(treeNodes, callback) { - function processNode(node, index, parent) { - var children = node ? node.props.children : treeNodes; - var pos = node ? getPosition(parent.pos, index) : 0; // Filter children + function isNum(num /*: any*/) /*: boolean*/ { + return typeof num === 'number' && !isNaN(num); + } - var childList = getNodeChildren(children); // Process node if is not root + function int(a /*: string*/) /*: number*/ { + return parseInt(a, 10); + } - if (node) { - var data = { - node: node, - index: index, - pos: pos, - key: node.key || pos, - parentPos: parent.node ? parent.pos : null - }; - callback(data); - } // Process children node + function dontSetMe(props /*: Object*/, propName /*: string*/, componentName /*: string*/) { + if (props[propName]) { + return new Error('Invalid prop ' + propName + ' passed to ' + componentName + ' - do not set this, set it on the child.'); + } + } + var prefixes = ['Moz', 'Webkit', 'O', 'ms']; + function getPrefix() /*: string*/ { + var prop /*: string*/ = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'transform'; - __WEBPACK_IMPORTED_MODULE_0_react__["Children"].forEach(childList, function (subNode, subIndex) { - processNode(subNode, subIndex, { - node: node, - pos: pos - }); - }); - } + // Checking specifically for 'window.document' is for pseudo-browser server-side + // environments that define 'window' as the global context. + // E.g. React-rails (see https://github.com/reactjs/react-rails/pull/84) + if (typeof window === 'undefined' || typeof window.document === 'undefined') return ''; - processNode(null); - } - /** - * Use `rc-util` `toArray` to get the children list which keeps the key. - * And return single node if children is only one(This can avoid `key` missing check). - */ + var style = window.document.documentElement.style; - function mapChildren(children, func) { - var list = Object(__WEBPACK_IMPORTED_MODULE_1_rc_util_es_Children_toArray__["a" /* default */])(children).map(func); + if (prop in style) return ''; - if (list.length === 1) { - return list[0]; - } + for (var i = 0; i < prefixes.length; i++) { + if (browserPrefixToKey(prop, prefixes[i]) in style) return prefixes[i]; + } - return list; - } - function getDragNodesKeys(treeNodes, node) { - var _node$props = node.props, - eventKey = _node$props.eventKey, - pos = _node$props.pos; - var dragNodesKeys = []; - traverseTreeNodes(treeNodes, function (_ref2) { - var key = _ref2.key; - dragNodesKeys.push(key); - }); - dragNodesKeys.push(eventKey || pos); - return dragNodesKeys; - } // Only used when drag, not affect SSR. + return ''; + } - function calcDropPosition(event, treeNode) { - var clientY = event.clientY; + function browserPrefixToKey(prop /*: string*/, prefix /*: string*/) /*: string*/ { + return prefix ? '' + prefix + kebabToTitleCase(prop) : prop; + } - var _treeNode$selectHandl = treeNode.selectHandle.getBoundingClientRect(), - top = _treeNode$selectHandl.top, - bottom = _treeNode$selectHandl.bottom, - height = _treeNode$selectHandl.height; + function kebabToTitleCase(str /*: string*/) /*: string*/ { + var out = ''; + var shouldCapitalize = true; + for (var i = 0; i < str.length; i++) { + if (shouldCapitalize) { + out += str[i].toUpperCase(); + shouldCapitalize = false; + } else if (str[i] === '-') { + shouldCapitalize = true; + } else { + out += str[i]; + } + } + return out; + } - var des = Math.max(height * DRAG_SIDE_RANGE, DRAG_MIN_GAP); + // Default export is the prefix itself, like 'Moz', 'Webkit', etc + // Note that you may have to re-test for certain things; for instance, Chrome 50 + // can handle unprefixed `transform`, but not unprefixed `user-select` + var browserPrefix = getPrefix(); - if (clientY <= top + des) { - return -1; - } + var classCallCheck = function (instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } + }; - if (clientY >= bottom - des) { - return 1; - } + var createClass = function () { + function defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } + } - return 0; - } - /** - * Return selectedKeys according with multiple prop - * @param selectedKeys - * @param props - * @returns [string] - */ + return function (Constructor, protoProps, staticProps) { + if (protoProps) defineProperties(Constructor.prototype, protoProps); + if (staticProps) defineProperties(Constructor, staticProps); + return Constructor; + }; + }(); - function calcSelectedKeys(selectedKeys, props) { - if (!selectedKeys) return undefined; - var multiple = props.multiple; + var defineProperty = function (obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } - if (multiple) { - return selectedKeys.slice(); - } + return obj; + }; - if (selectedKeys.length) { - return [selectedKeys[0]]; - } + var _extends = Object.assign || function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; - return selectedKeys; - } - /** - * Since React internal will convert key to string, - * we need do this to avoid `checkStrictly` use number match - */ + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key]; + } + } + } - function keyListToString(keyList) { - if (!keyList) return keyList; - return keyList.map(function (key) { - return String(key); - }); - } + return target; + }; - var internalProcessProps = function internalProcessProps(props) { - return props; - }; + var inherits = function (subClass, superClass) { + if (typeof superClass !== "function" && superClass !== null) { + throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); + } - function convertDataToTree(treeData, processor) { - if (!treeData) return []; + subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { + value: subClass, + enumerable: false, + writable: true, + configurable: true + } + }); + if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; + }; - var _ref3 = processor || {}, - _ref3$processProps = _ref3.processProps, - processProps = _ref3$processProps === void 0 ? internalProcessProps : _ref3$processProps; + var possibleConstructorReturn = function (self, call) { + if (!self) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } - var list = Array.isArray(treeData) ? treeData : [treeData]; - return list.map(function (_ref4) { - var children = _ref4.children, - props = _objectWithoutProperties(_ref4, ["children"]); + return call && (typeof call === "object" || typeof call === "function") ? call : self; + }; - var childrenNodes = convertDataToTree(children, processor); - return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__TreeNode__["a" /* default */], Object.assign({}, processProps(props)), childrenNodes); - }); - } - /** - * Calculate treeNodes entities. `processTreeEntity` is used for `rc-tree-select` - * @param treeNodes - * @param processTreeEntity User can customize the entity - */ + var slicedToArray = function () { + function sliceIterator(arr, i) { + var _arr = []; + var _n = true; + var _d = false; + var _e = undefined; - function convertTreeToEntities(treeNodes) { - var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, - initWrapper = _ref5.initWrapper, - processEntity = _ref5.processEntity, - onProcessFinished = _ref5.onProcessFinished; + try { + for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { + _arr.push(_s.value); - var posEntities = {}; - var keyEntities = {}; - var wrapper = { - posEntities: posEntities, - keyEntities: keyEntities - }; + if (i && _arr.length === i) break; + } + } catch (err) { + _d = true; + _e = err; + } finally { + try { + if (!_n && _i["return"]) _i["return"](); + } finally { + if (_d) throw _e; + } + } - if (initWrapper) { - wrapper = initWrapper(wrapper) || wrapper; - } + return _arr; + } - traverseTreeNodes(treeNodes, function (item) { - var node = item.node, - index = item.index, - pos = item.pos, - key = item.key, - parentPos = item.parentPos; - var entity = { - node: node, - index: index, - key: key, - pos: pos - }; - posEntities[pos] = entity; - keyEntities[key] = entity; // Fill children + return function (arr, i) { + if (Array.isArray(arr)) { + return arr; + } else if (Symbol.iterator in Object(arr)) { + return sliceIterator(arr, i); + } else { + throw new TypeError("Invalid attempt to destructure non-iterable instance"); + } + }; + }(); - entity.parent = posEntities[parentPos]; + /*:: import type {ControlPosition, PositionOffsetControlPosition, MouseTouchEvent} from './types';*/ - if (entity.parent) { - entity.parent.children = entity.parent.children || []; - entity.parent.children.push(entity); - } - if (processEntity) { - processEntity(entity, wrapper); - } - }); + var matchesSelectorFunc = ''; + function matchesSelector(el /*: Node*/, selector /*: string*/) /*: boolean*/ { + if (!matchesSelectorFunc) { + matchesSelectorFunc = findInArray(['matches', 'webkitMatchesSelector', 'mozMatchesSelector', 'msMatchesSelector', 'oMatchesSelector'], function (method) { + // $FlowIgnore: Doesn't think elements are indexable + return isFunction(el[method]); + }); + } - if (onProcessFinished) { - onProcessFinished(wrapper); - } + // Might not be found entirely (not an Element?) - in that case, bail + // $FlowIgnore: Doesn't think elements are indexable + if (!isFunction(el[matchesSelectorFunc])) return false; - return wrapper; - } - /** - * Parse `checkedKeys` to { checkedKeys, halfCheckedKeys } style - */ + // $FlowIgnore: Doesn't think elements are indexable + return el[matchesSelectorFunc](selector); + } - function parseCheckedKeys(keys) { - if (!keys) { - return null; - } // Convert keys to object format + // Works up the tree to the draggable itself attempting to match selector. + function matchesSelectorAndParentsTo(el /*: Node*/, selector /*: string*/, baseNode /*: Node*/) /*: boolean*/ { + var node = el; + do { + if (matchesSelector(node, selector)) return true; + if (node === baseNode) return false; + node = node.parentNode; + } while (node); + return false; + } - var keyProps; + function addEvent(el /*: ?Node*/, event /*: string*/, handler /*: Function*/) /*: void*/ { + if (!el) { + return; + } + if (el.attachEvent) { + el.attachEvent('on' + event, handler); + } else if (el.addEventListener) { + el.addEventListener(event, handler, true); + } else { + // $FlowIgnore: Doesn't think elements are indexable + el['on' + event] = handler; + } + } - if (Array.isArray(keys)) { - // [Legacy] Follow the api doc - keyProps = { - checkedKeys: keys, - halfCheckedKeys: undefined - }; - } else if (_typeof(keys) === 'object') { - keyProps = { - checkedKeys: keys.checked || undefined, - halfCheckedKeys: keys.halfChecked || undefined - }; - } else { - __WEBPACK_IMPORTED_MODULE_2_warning___default()(false, '`checkedKeys` is not an array or an object'); - return null; - } + function removeEvent(el /*: ?Node*/, event /*: string*/, handler /*: Function*/) /*: void*/ { + if (!el) { + return; + } + if (el.detachEvent) { + el.detachEvent('on' + event, handler); + } else if (el.removeEventListener) { + el.removeEventListener(event, handler, true); + } else { + // $FlowIgnore: Doesn't think elements are indexable + el['on' + event] = null; + } + } - keyProps.checkedKeys = keyListToString(keyProps.checkedKeys); - keyProps.halfCheckedKeys = keyListToString(keyProps.halfCheckedKeys); - return keyProps; - } - /** - * Conduct check state by the keyList. It will conduct up & from the provided key. - * If the conduct path reach the disabled or already checked / unchecked node will stop conduct. - */ + function outerHeight(node /*: HTMLElement*/) /*: number*/ { + // This is deliberately excluding margin for our calculations, since we are using + // offsetTop which is including margin. See getBoundPosition + var height = node.clientHeight; + var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node); + height += int(computedStyle.borderTopWidth); + height += int(computedStyle.borderBottomWidth); + return height; + } - function conductCheck( - /** list of keys */ - keyList, - /** is check the node or not */ - isCheck, - /** parsed by `convertTreeToEntities` function in Tree */ - keyEntities) { - var checkStatus = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; - var checkedKeys = {}; - var halfCheckedKeys = {}; // Record the key has some child checked (include child half checked) + function outerWidth(node /*: HTMLElement*/) /*: number*/ { + // This is deliberately excluding margin for our calculations, since we are using + // offsetLeft which is including margin. See getBoundPosition + var width = node.clientWidth; + var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node); + width += int(computedStyle.borderLeftWidth); + width += int(computedStyle.borderRightWidth); + return width; + } + function innerHeight(node /*: HTMLElement*/) /*: number*/ { + var height = node.clientHeight; + var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node); + height -= int(computedStyle.paddingTop); + height -= int(computedStyle.paddingBottom); + return height; + } - (checkStatus.checkedKeys || []).forEach(function (key) { - checkedKeys[key] = true; - }); - (checkStatus.halfCheckedKeys || []).forEach(function (key) { - halfCheckedKeys[key] = true; - }); // Conduct up + function innerWidth(node /*: HTMLElement*/) /*: number*/ { + var width = node.clientWidth; + var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node); + width -= int(computedStyle.paddingLeft); + width -= int(computedStyle.paddingRight); + return width; + } - function conductUp(key) { - if (checkedKeys[key] === isCheck) return; - var entity = keyEntities[key]; - if (!entity) return; - var children = entity.children, - parent = entity.parent, - node = entity.node; - if (isCheckDisabled(node)) return; // Check child node checked status + // Get from offsetParent + function offsetXYFromParent(evt /*: {clientX: number, clientY: number}*/, offsetParent /*: HTMLElement*/) /*: ControlPosition*/ { + var isBody = offsetParent === offsetParent.ownerDocument.body; + var offsetParentRect = isBody ? { left: 0, top: 0 } : offsetParent.getBoundingClientRect(); - var everyChildChecked = true; - var someChildChecked = false; // Child checked or half checked + var x = evt.clientX + offsetParent.scrollLeft - offsetParentRect.left; + var y = evt.clientY + offsetParent.scrollTop - offsetParentRect.top; - (children || []).filter(function (child) { - return !isCheckDisabled(child.node); - }).forEach(function (_ref6) { - var childKey = _ref6.key; - var childChecked = checkedKeys[childKey]; - var childHalfChecked = halfCheckedKeys[childKey]; - if (childChecked || childHalfChecked) someChildChecked = true; - if (!childChecked) everyChildChecked = false; - }); // Update checked status + return { x: x, y: y }; + } - if (isCheck) { - checkedKeys[key] = everyChildChecked; - } else { - checkedKeys[key] = false; - } + function createCSSTransform(controlPos /*: ControlPosition*/, positionOffset /*: PositionOffsetControlPosition*/) /*: Object*/ { + var translation = getTranslation(controlPos, positionOffset, 'px'); + return defineProperty({}, browserPrefixToKey('transform', browserPrefix), translation); + } - halfCheckedKeys[key] = someChildChecked; + function createSVGTransform(controlPos /*: ControlPosition*/, positionOffset /*: PositionOffsetControlPosition*/) /*: string*/ { + var translation = getTranslation(controlPos, positionOffset, ''); + return translation; + } + function getTranslation(_ref2, positionOffset /*: PositionOffsetControlPosition*/, unitSuffix /*: string*/) /*: string*/ { + var x = _ref2.x, + y = _ref2.y; - if (parent) { - conductUp(parent.key); - } - } // Conduct down + var translation = 'translate(' + x + unitSuffix + ',' + y + unitSuffix + ')'; + if (positionOffset) { + var defaultX = '' + (typeof positionOffset.x === 'string' ? positionOffset.x : positionOffset.x + unitSuffix); + var defaultY = '' + (typeof positionOffset.y === 'string' ? positionOffset.y : positionOffset.y + unitSuffix); + translation = 'translate(' + defaultX + ', ' + defaultY + ')' + translation; + } + return translation; + } + function getTouch(e /*: MouseTouchEvent*/, identifier /*: number*/) /*: ?{clientX: number, clientY: number}*/ { + return e.targetTouches && findInArray(e.targetTouches, function (t) { + return identifier === t.identifier; + }) || e.changedTouches && findInArray(e.changedTouches, function (t) { + return identifier === t.identifier; + }); + } - function conductDown(key) { - if (checkedKeys[key] === isCheck) return; - var entity = keyEntities[key]; - if (!entity) return; - var children = entity.children, - node = entity.node; - if (isCheckDisabled(node)) return; - checkedKeys[key] = isCheck; - (children || []).forEach(function (child) { - conductDown(child.key); - }); - } + function getTouchIdentifier(e /*: MouseTouchEvent*/) /*: ?number*/ { + if (e.targetTouches && e.targetTouches[0]) return e.targetTouches[0].identifier; + if (e.changedTouches && e.changedTouches[0]) return e.changedTouches[0].identifier; + } - function conduct(key) { - var entity = keyEntities[key]; + // User-select Hacks: + // + // Useful for preventing blue highlights all over everything when dragging. - if (!entity) { - __WEBPACK_IMPORTED_MODULE_2_warning___default()(false, "'".concat(key, "' does not exist in the tree.")); - return; - } + // Note we're passing `document` b/c we could be iframed + function addUserSelectStyles(doc /*: ?Document*/) { + if (!doc) return; + var styleEl = doc.getElementById('react-draggable-style-el'); + if (!styleEl) { + styleEl = doc.createElement('style'); + styleEl.type = 'text/css'; + styleEl.id = 'react-draggable-style-el'; + styleEl.innerHTML = '.react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n'; + styleEl.innerHTML += '.react-draggable-transparent-selection *::selection {all: inherit;}\n'; + doc.getElementsByTagName('head')[0].appendChild(styleEl); + } + if (doc.body) addClassName(doc.body, 'react-draggable-transparent-selection'); + } - var children = entity.children, - parent = entity.parent, - node = entity.node; - checkedKeys[key] = isCheck; - if (isCheckDisabled(node)) return; // Conduct down + function removeUserSelectStyles(doc /*: ?Document*/) { + try { + if (doc && doc.body) removeClassName(doc.body, 'react-draggable-transparent-selection'); + // $FlowIgnore: IE + if (doc.selection) { + // $FlowIgnore: IE + doc.selection.empty(); + } else { + window.getSelection().removeAllRanges(); // remove selection caused by scroll + } + } catch (e) { + // probably IE + } + } - (children || []).filter(function (child) { - return !isCheckDisabled(child.node); - }).forEach(function (child) { - conductDown(child.key); - }); // Conduct up + function styleHacks() /*: Object*/ { + var childStyle /*: Object*/ = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - if (parent) { - conductUp(parent.key); - } - } + // Workaround IE pointer events; see #51 + // https://github.com/mzabriskie/react-draggable/issues/51#issuecomment-103488278 + return _extends({ + touchAction: 'none' + }, childStyle); + } - (keyList || []).forEach(function (key) { - conduct(key); - }); - var checkedKeyList = []; - var halfCheckedKeyList = []; // Fill checked list + function addClassName(el /*: HTMLElement*/, className /*: string*/) { + if (el.classList) { + el.classList.add(className); + } else { + if (!el.className.match(new RegExp('(?:^|\\s)' + className + '(?!\\S)'))) { + el.className += ' ' + className; + } + } + } - Object.keys(checkedKeys).forEach(function (key) { - if (checkedKeys[key]) { - checkedKeyList.push(key); - } - }); // Fill half checked list + function removeClassName(el /*: HTMLElement*/, className /*: string*/) { + if (el.classList) { + el.classList.remove(className); + } else { + el.className = el.className.replace(new RegExp('(?:^|\\s)' + className + '(?!\\S)', 'g'), ''); + } + } - Object.keys(halfCheckedKeys).forEach(function (key) { - if (!checkedKeys[key] && halfCheckedKeys[key]) { - halfCheckedKeyList.push(key); - } - }); - return { - checkedKeys: checkedKeyList, - halfCheckedKeys: halfCheckedKeyList - }; - } - /** - * If user use `autoExpandParent` we should get the list of parent node - * @param keyList - * @param keyEntities - */ + /*:: import type Draggable from '../Draggable';*/ + /*:: import type {Bounds, ControlPosition, DraggableData, MouseTouchEvent} from './types';*/ + /*:: import type DraggableCore from '../DraggableCore';*/ - function conductExpandParent(keyList, keyEntities) { - var expandedKeys = {}; - function conductUp(key) { - if (expandedKeys[key]) return; - var entity = keyEntities[key]; - if (!entity) return; - expandedKeys[key] = true; - var parent = entity.parent, - node = entity.node; - if (node.props && node.props.disabled) return; + function getBoundPosition(draggable /*: Draggable*/, x /*: number*/, y /*: number*/) /*: [number, number]*/ { + // If no bounds, short-circuit and move on + if (!draggable.props.bounds) return [x, y]; - if (parent) { - conductUp(parent.key); - } - } + // Clone new bounds + var bounds = draggable.props.bounds; - (keyList || []).forEach(function (key) { - conductUp(key); - }); - return Object.keys(expandedKeys); - } - /** - * Returns only the data- and aria- key/value pairs - */ + bounds = typeof bounds === 'string' ? bounds : cloneBounds(bounds); + var node = findDOMNode(draggable); - function getDataAndAria(props) { - return Object.keys(props).reduce(function (prev, key) { - if (key.substr(0, 5) === 'data-' || key.substr(0, 5) === 'aria-') { - prev[key] = props[key]; - } + if (typeof bounds === 'string') { + var ownerDocument = node.ownerDocument; - return prev; - }, {}); - } + var ownerWindow = ownerDocument.defaultView; + var boundNode = void 0; + if (bounds === 'parent') { + boundNode = node.parentNode; + } else { + boundNode = ownerDocument.querySelector(bounds); + } + if (!(boundNode instanceof ownerWindow.HTMLElement)) { + throw new Error('Bounds selector "' + bounds + '" could not find an element.'); + } + var nodeStyle = ownerWindow.getComputedStyle(node); + var boundNodeStyle = ownerWindow.getComputedStyle(boundNode); + // Compute bounds. This is a pain with padding and offsets but this gets it exactly right. + bounds = { + left: -node.offsetLeft + int(boundNodeStyle.paddingLeft) + int(nodeStyle.marginLeft), + top: -node.offsetTop + int(boundNodeStyle.paddingTop) + int(nodeStyle.marginTop), + right: innerWidth(boundNode) - outerWidth(node) - node.offsetLeft + int(boundNodeStyle.paddingRight) - int(nodeStyle.marginRight), + bottom: innerHeight(boundNode) - outerHeight(node) - node.offsetTop + int(boundNodeStyle.paddingBottom) - int(nodeStyle.marginBottom) + }; + } - /***/ }), - /* 209 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + // Keep x and y below right and bottom limits... + if (isNum(bounds.right)) x = Math.min(x, bounds.right); + if (isNum(bounds.bottom)) y = Math.min(y, bounds.bottom); - "use strict"; - /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return SHOW_ALL; }); - /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return SHOW_PARENT; }); - /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return SHOW_CHILD; }); - var SHOW_ALL = 'SHOW_ALL'; - var SHOW_PARENT = 'SHOW_PARENT'; - var SHOW_CHILD = 'SHOW_CHILD'; + // But above left and top limits. + if (isNum(bounds.left)) x = Math.max(x, bounds.left); + if (isNum(bounds.top)) y = Math.max(y, bounds.top); - /***/ }), - /* 210 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + return [x, y]; + } - "use strict"; - /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return selectorPropTypes; }); - /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return selectorContextTypes; }); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames__ = __webpack_require__(2); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_classnames__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_lifecycles_compat__ = __webpack_require__(14); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util__ = __webpack_require__(34); - function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + function snapToGrid(grid /*: [number, number]*/, pendingX /*: number*/, pendingY /*: number*/) /*: [number, number]*/ { + var x = Math.round(pendingX / grid[0]) * grid[0]; + var y = Math.round(pendingY / grid[1]) * grid[1]; + return [x, y]; + } - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + function canDragX(draggable /*: Draggable*/) /*: boolean*/ { + return draggable.props.axis === 'both' || draggable.props.axis === 'x'; + } - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + function canDragY(draggable /*: Draggable*/) /*: boolean*/ { + return draggable.props.axis === 'both' || draggable.props.axis === 'y'; + } - function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + // Get {x, y} positions from event. + function getControlPosition(e /*: MouseTouchEvent*/, touchIdentifier /*: ?number*/, draggableCore /*: DraggableCore*/) /*: ?ControlPosition*/ { + var touchObj = typeof touchIdentifier === 'number' ? getTouch(e, touchIdentifier) : null; + if (typeof touchIdentifier === 'number' && !touchObj) return null; // not the right touch + var node = findDOMNode(draggableCore); + // User can provide an offsetParent if desired. + var offsetParent = draggableCore.props.offsetParent || node.offsetParent || node.ownerDocument.body; + return offsetXYFromParent(touchObj || e, offsetParent); + } - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + // Create an data object exposed by 's events + function createCoreData(draggable /*: DraggableCore*/, x /*: number*/, y /*: number*/) /*: DraggableData*/ { + var state = draggable.state; + var isStart = !isNum(state.lastX); + var node = findDOMNode(draggable); - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + if (isStart) { + // If this is our first move, use the x and y as last coords. + return { + node: node, + deltaX: 0, deltaY: 0, + lastX: x, lastY: y, + x: x, y: y + }; + } else { + // Otherwise calculate proper values. + return { + node: node, + deltaX: x - state.lastX, deltaY: y - state.lastY, + lastX: state.lastX, lastY: state.lastY, + x: x, y: y + }; + } + } - function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + // Create an data exposed by 's events + function createDraggableData(draggable /*: Draggable*/, coreData /*: DraggableData*/) /*: DraggableData*/ { + var scale = draggable.props.scale; + return { + node: coreData.node, + x: draggable.state.x + coreData.deltaX / scale, + y: draggable.state.y + coreData.deltaY / scale, + deltaX: coreData.deltaX / scale, + deltaY: coreData.deltaY / scale, + lastX: draggable.state.x, + lastY: draggable.state.y + }; + } - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + // A lot faster than stringify/parse + function cloneBounds(bounds /*: Bounds*/) /*: Bounds*/ { + return { + left: bounds.left, + top: bounds.top, + right: bounds.right, + bottom: bounds.bottom + }; + } - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + function findDOMNode(draggable /*: Draggable | DraggableCore*/) /*: HTMLElement*/ { + var node = ReactDOM.findDOMNode(draggable); + if (!node) { + throw new Error(': Unmounted during event!'); + } + // $FlowIgnore we can't assert on HTMLElement due to tests... FIXME + return node; + } - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + /*eslint no-console:0*/ + function log() { + } - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + /*:: import type {EventHandler, MouseTouchEvent} from './utils/types';*/ - /** - * Input Box is in different position for different mode. - * This not the same design as `Select` cause it's followed by antd 0.x `Select`. - * We will not follow the new design immediately since antd 3.x is already released. - * - * So this file named as Selector to avoid confuse. - */ + // Simple abstraction for dragging events names. + /*:: import type {Element as ReactElement} from 'react';*/ + var eventsFor = { + touch: { + start: 'touchstart', + move: 'touchmove', + stop: 'touchend' + }, + mouse: { + start: 'mousedown', + move: 'mousemove', + stop: 'mouseup' + } + }; + // Default to mouse events. + var dragEventFor = eventsFor.mouse; + /*:: type DraggableCoreState = { + dragging: boolean, + lastX: number, + lastY: number, + touchIdentifier: ?number + };*/ + /*:: export type DraggableBounds = { + left: number, + right: number, + top: number, + bottom: number, + };*/ + /*:: export type DraggableData = { + node: HTMLElement, + x: number, y: number, + deltaX: number, deltaY: number, + lastX: number, lastY: number, + };*/ + /*:: export type DraggableEventHandler = (e: MouseEvent, data: DraggableData) => void;*/ + /*:: export type ControlPosition = {x: number, y: number};*/ + /*:: export type PositionOffsetControlPosition = {x: number|string, y: number|string};*/ - var selectorPropTypes = { - prefixCls: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, - className: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, - style: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object, - open: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, - selectorValueList: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.array, - allowClear: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, - showArrow: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, - onClick: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func, - onBlur: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func, - onFocus: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func, - removeSelected: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func, - // Pass by component - ariaId: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, - inputIcon: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func]), - clearIcon: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func]) - }; - var selectorContextTypes = { - onSelectorFocus: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired, - onSelectorBlur: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired, - onSelectorKeyDown: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired, - onSelectorClear: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired - }; - /* harmony default export */ __webpack_exports__["a"] = (function (modeName) { - var BaseSelector = - /*#__PURE__*/ - function (_React$Component) { - _inherits(BaseSelector, _React$Component); + // + // Define . + // + // is for advanced usage of . It maintains minimal internal state so it can + // work well with libraries that require more control over the element. + // - function BaseSelector() { - var _this; + /*:: export type DraggableCoreProps = { + allowAnyClick: boolean, + cancel: string, + children: ReactElement, + disabled: boolean, + enableUserSelectHack: boolean, + offsetParent: HTMLElement, + grid: [number, number], + handle: string, + onStart: DraggableEventHandler, + onDrag: DraggableEventHandler, + onStop: DraggableEventHandler, + onMouseDown: (e: MouseEvent) => void, + };*/ - _classCallCheck(this, BaseSelector); + var DraggableCore = function (_React$Component) { + inherits(DraggableCore, _React$Component); - _this = _possibleConstructorReturn(this, _getPrototypeOf(BaseSelector).call(this)); + function DraggableCore() { + var _ref; - _defineProperty(_assertThisInitialized(_this), "onFocus", function () { - var _this$props = _this.props, - onFocus = _this$props.onFocus, - focused = _this$props.focused; - var onSelectorFocus = _this.context.rcTreeSelect.onSelectorFocus; + var _temp, _this, _ret; - if (!focused) { - onSelectorFocus(); - } + classCallCheck(this, DraggableCore); - if (onFocus) { - onFocus.apply(void 0, arguments); - } - }); + for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } - _defineProperty(_assertThisInitialized(_this), "onBlur", function () { - var onBlur = _this.props.onBlur; - var onSelectorBlur = _this.context.rcTreeSelect.onSelectorBlur; // TODO: Not trigger when is inner component get focused + return _ret = (_temp = (_this = possibleConstructorReturn(this, (_ref = DraggableCore.__proto__ || Object.getPrototypeOf(DraggableCore)).call.apply(_ref, [this].concat(args))), _this), _this.state = { + dragging: false, + // Used while dragging to determine deltas. + lastX: NaN, lastY: NaN, + touchIdentifier: null + }, _this.handleDragStart = function (e) { + // Make it possible to attach event handlers on top of this one. + _this.props.onMouseDown(e); - onSelectorBlur(); + // Only accept left-clicks. + if (!_this.props.allowAnyClick && typeof e.button === 'number' && e.button !== 0) return false; - if (onBlur) { - onBlur.apply(void 0, arguments); - } - }); + // Get nodes. Be sure to grab relative document (could be iframed) + var thisNode = ReactDOM.findDOMNode(_this); + if (!thisNode || !thisNode.ownerDocument || !thisNode.ownerDocument.body) { + throw new Error(' not mounted on DragStart!'); + } + var ownerDocument = thisNode.ownerDocument; - _defineProperty(_assertThisInitialized(_this), "focus", function () { - _this.domRef.current.focus(); - }); + // Short circuit if handle or cancel prop was provided and selector doesn't match. - _defineProperty(_assertThisInitialized(_this), "blur", function () { - _this.domRef.current.focus(); - }); + if (_this.props.disabled || !(e.target instanceof ownerDocument.defaultView.Node) || _this.props.handle && !matchesSelectorAndParentsTo(e.target, _this.props.handle, thisNode) || _this.props.cancel && matchesSelectorAndParentsTo(e.target, _this.props.cancel, thisNode)) { + return; + } - _this.domRef = Object(__WEBPACK_IMPORTED_MODULE_4__util__["g" /* createRef */])(); - return _this; - } + // Set touch identifier in component state if this is a touch event. This allows us to + // distinguish between individual touches on multitouch screens by identifying which + // touchpoint was set to this element. + var touchIdentifier = getTouchIdentifier(e); + _this.setState({ touchIdentifier: touchIdentifier }); - _createClass(BaseSelector, [{ - key: "renderClear", - value: function renderClear() { - var _this$props2 = this.props, - prefixCls = _this$props2.prefixCls, - allowClear = _this$props2.allowClear, - selectorValueList = _this$props2.selectorValueList, - clearIcon = _this$props2.clearIcon; - var onSelectorClear = this.context.rcTreeSelect.onSelectorClear; + // Get the current drag point from the event. This is used as the offset. + var position = getControlPosition(e, touchIdentifier, _this); + if (position == null) return; // not possible but satisfies flow + var x = position.x, + y = position.y; - if (!allowClear || !selectorValueList.length || !selectorValueList[0].value) { - return null; - } + // Create an event object with all the data parents need to make a decision here. - return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("span", { - key: "clear", - className: "".concat(prefixCls, "-selection__clear"), - onClick: onSelectorClear - }, typeof clearIcon === 'function' ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(clearIcon, _objectSpread({}, this.props)) : clearIcon); - } - }, { - key: "renderArrow", - value: function renderArrow() { - var _this$props3 = this.props, - prefixCls = _this$props3.prefixCls, - showArrow = _this$props3.showArrow, - inputIcon = _this$props3.inputIcon; + var coreEvent = createCoreData(_this, x, y); - if (!showArrow) { - return null; - } + // Call event handler. If it returns explicit false, cancel. + log('calling', _this.props.onStart); + var shouldUpdate = _this.props.onStart(e, coreEvent); + if (shouldUpdate === false) return; - return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("span", { - key: "arrow", - className: "".concat(prefixCls, "-arrow"), - style: { - outline: 'none' - } - }, typeof inputIcon === 'function' ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(inputIcon, _objectSpread({}, this.props)) : inputIcon); - } - }, { - key: "render", - value: function render() { - var _classNames; + // Add a style to the body to disable user-select. This prevents text from + // being selected all over the page. + if (_this.props.enableUserSelectHack) addUserSelectStyles(ownerDocument); - var _this$props4 = this.props, - prefixCls = _this$props4.prefixCls, - className = _this$props4.className, - style = _this$props4.style, - open = _this$props4.open, - focused = _this$props4.focused, - disabled = _this$props4.disabled, - allowClear = _this$props4.allowClear, - onClick = _this$props4.onClick, - ariaId = _this$props4.ariaId, - renderSelection = _this$props4.renderSelection, - renderPlaceholder = _this$props4.renderPlaceholder, - tabIndex = _this$props4.tabIndex; - var onSelectorKeyDown = this.context.rcTreeSelect.onSelectorKeyDown; - var myTabIndex = tabIndex; + // Initiate dragging. Set the current x and y as offsets + // so we know how much we've moved during the drag. This allows us + // to drag elements around even if they have been moved, without issue. + _this.setState({ + dragging: true, - if (disabled) { - myTabIndex = null; - } + lastX: x, + lastY: y + }); - return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("span", { - style: style, - onClick: onClick, - className: __WEBPACK_IMPORTED_MODULE_2_classnames___default()(className, prefixCls, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-open"), open), _defineProperty(_classNames, "".concat(prefixCls, "-focused"), open || focused), _defineProperty(_classNames, "".concat(prefixCls, "-disabled"), disabled), _defineProperty(_classNames, "".concat(prefixCls, "-enabled"), !disabled), _defineProperty(_classNames, "".concat(prefixCls, "-allow-clear"), allowClear), _classNames)), - ref: this.domRef, - role: "combobox", - "aria-expanded": open, - "aria-owns": open ? ariaId : undefined, - "aria-controls": open ? ariaId : undefined, - "aria-haspopup": "listbox", - "aria-disabled": disabled, - tabIndex: myTabIndex, - onFocus: this.onFocus, - onBlur: this.onBlur, - onKeyDown: onSelectorKeyDown - }, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("span", { - key: "selection", - className: __WEBPACK_IMPORTED_MODULE_2_classnames___default()("".concat(prefixCls, "-selection"), "".concat(prefixCls, "-selection--").concat(modeName)) - }, renderSelection(), this.renderClear(), this.renderArrow(), renderPlaceholder && renderPlaceholder())); - } - }]); + // Add events to the document directly so we catch when the user's mouse/touch moves outside of + // this element. We use different events depending on whether or not we have detected that this + // is a touch-capable device. + addEvent(ownerDocument, dragEventFor.move, _this.handleDrag); + addEvent(ownerDocument, dragEventFor.stop, _this.handleDragStop); + }, _this.handleDrag = function (e) { - return BaseSelector; - }(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component); + // Prevent scrolling on mobile devices, like ipad/iphone. + if (e.type === 'touchmove') e.preventDefault(); - _defineProperty(BaseSelector, "propTypes", _objectSpread({}, selectorPropTypes, { - // Pass by HOC - renderSelection: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired, - renderPlaceholder: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func, - tabIndex: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number - })); + // Get the current drag point from the event. This is used as the offset. + var position = getControlPosition(e, _this.state.touchIdentifier, _this); + if (position == null) return; + var x = position.x, + y = position.y; - _defineProperty(BaseSelector, "contextTypes", { - rcTreeSelect: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.shape(_objectSpread({}, selectorContextTypes)) - }); + // Snap to grid if prop has been provided - _defineProperty(BaseSelector, "defaultProps", { - tabIndex: 0 - }); + if (Array.isArray(_this.props.grid)) { + var _deltaX = x - _this.state.lastX, + _deltaY = y - _this.state.lastY; - Object(__WEBPACK_IMPORTED_MODULE_3_react_lifecycles_compat__["polyfill"])(BaseSelector); - return BaseSelector; - }); + var _snapToGrid = snapToGrid(_this.props.grid, _deltaX, _deltaY); - /***/ }), - /* 211 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + var _snapToGrid2 = slicedToArray(_snapToGrid, 2); - "use strict"; - /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return popupContextTypes; }); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_lifecycles_compat__ = __webpack_require__(14); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rc_tree__ = __webpack_require__(538); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util__ = __webpack_require__(34); - function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + _deltaX = _snapToGrid2[0]; + _deltaY = _snapToGrid2[1]; - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + if (!_deltaX && !_deltaY) return; // skip useless drag + x = _this.state.lastX + _deltaX, y = _this.state.lastY + _deltaY; + } - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + var coreEvent = createCoreData(_this, x, y); - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + // Call event handler. If it returns explicit false, trigger end. + var shouldUpdate = _this.props.onDrag(e, coreEvent); + if (shouldUpdate === false) { + try { + // $FlowIgnore + _this.handleDragStop(new MouseEvent('mouseup')); + } catch (err) { + // Old browsers + var event = ((document.createEvent('MouseEvents') /*: any*/) /*: MouseTouchEvent*/); + // I see why this insanity was deprecated + // $FlowIgnore + event.initMouseEvent('mouseup', true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null); + _this.handleDragStop(event); + } + return; + } - function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + _this.setState({ + lastX: x, + lastY: y + }); + }, _this.handleDragStop = function (e) { + if (!_this.state.dragging) return; - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + var position = getControlPosition(e, _this.state.touchIdentifier, _this); + if (position == null) return; + var x = position.x, + y = position.y; - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + var coreEvent = createCoreData(_this, x, y); - function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + var thisNode = ReactDOM.findDOMNode(_this); + if (thisNode) { + // Remove user-select hack + if (_this.props.enableUserSelectHack) removeUserSelectStyles(thisNode.ownerDocument); + } - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + // Reset the el. + _this.setState({ + dragging: false, + lastX: NaN, + lastY: NaN + }); - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + // Call event handler + _this.props.onStop(e, coreEvent); - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + if (thisNode) { + removeEvent(thisNode.ownerDocument, dragEventFor.move, _this.handleDrag); + removeEvent(thisNode.ownerDocument, dragEventFor.stop, _this.handleDragStop); + } + }, _this.onMouseDown = function (e) { + dragEventFor = eventsFor.mouse; // on touchscreen laptops we could switch back to mouse - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + return _this.handleDragStart(e); + }, _this.onMouseUp = function (e) { + dragEventFor = eventsFor.mouse; + return _this.handleDragStop(e); + }, _this.onTouchStart = function (e) { + // We're on a touch device now, so change the event handlers + dragEventFor = eventsFor.touch; + return _this.handleDragStart(e); + }, _this.onTouchEnd = function (e) { + // We're on a touch device now, so change the event handlers + dragEventFor = eventsFor.touch; + return _this.handleDragStop(e); + }, _temp), possibleConstructorReturn(_this, _ret); + } + createClass(DraggableCore, [{ + key: 'componentWillUnmount', + value: function componentWillUnmount() { + // Remove any leftover event handlers. Remove both touch and mouse handlers in case + // some browser quirk caused a touch event to fire during a mouse move, or vice versa. + var thisNode = ReactDOM.findDOMNode(this); + if (thisNode) { + var ownerDocument = thisNode.ownerDocument; + removeEvent(ownerDocument, eventsFor.mouse.move, this.handleDrag); + removeEvent(ownerDocument, eventsFor.touch.move, this.handleDrag); + removeEvent(ownerDocument, eventsFor.mouse.stop, this.handleDragStop); + removeEvent(ownerDocument, eventsFor.touch.stop, this.handleDragStop); + if (this.props.enableUserSelectHack) removeUserSelectStyles(ownerDocument); + } + } - var popupContextTypes = { - onPopupKeyDown: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired, - onTreeNodeSelect: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired, - onTreeNodeCheck: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired - }; + // Same as onMouseDown (start drag), but now consider this a touch device. - var BasePopup = - /*#__PURE__*/ - function (_React$Component) { - _inherits(BasePopup, _React$Component); + }, { + key: 'render', + value: function render() { + // Reuse the child provided + // This makes it flexible to use whatever element is wanted (div, ul, etc) + return React.cloneElement(React.Children.only(this.props.children), { + style: styleHacks(this.props.children.props.style), - function BasePopup(props) { - var _this; + // Note: mouseMove handler is attached to document so it will still function + // when the user drags quickly and leaves the bounds of the element. + onMouseDown: this.onMouseDown, + onTouchStart: this.onTouchStart, + onMouseUp: this.onMouseUp, + onTouchEnd: this.onTouchEnd + }); + } + }]); + return DraggableCore; + }(React.Component); - _classCallCheck(this, BasePopup); + DraggableCore.displayName = 'DraggableCore'; + DraggableCore.propTypes = { + /** + * `allowAnyClick` allows dragging using any mouse button. + * By default, we only accept the left button. + * + * Defaults to `false`. + */ + allowAnyClick: propTypes.bool, - _this = _possibleConstructorReturn(this, _getPrototypeOf(BasePopup).call(this)); + /** + * `disabled`, if true, stops the from dragging. All handlers, + * with the exception of `onMouseDown`, will not fire. + */ + disabled: propTypes.bool, - _defineProperty(_assertThisInitialized(_this), "onTreeExpand", function (expandedKeyList) { - var _this$props = _this.props, - treeExpandedKeys = _this$props.treeExpandedKeys, - onTreeExpand = _this$props.onTreeExpand, - onTreeExpanded = _this$props.onTreeExpanded; // Set uncontrolled state + /** + * By default, we add 'user-select:none' attributes to the document body + * to prevent ugly text selection during drag. If this is causing problems + * for your app, set this to `false`. + */ + enableUserSelectHack: propTypes.bool, - if (!treeExpandedKeys) { - _this.setState({ - expandedKeyList: expandedKeyList - }, onTreeExpanded); - } + /** + * `offsetParent`, if set, uses the passed DOM node to compute drag offsets + * instead of using the parent node. + */ + offsetParent: function offsetParent(props /*: DraggableCoreProps*/, propName /*: $Keys*/) { + if (props[propName] && props[propName].nodeType !== 1) { + throw new Error('Draggable\'s offsetParent must be a DOM Node.'); + } + }, - if (onTreeExpand) { - onTreeExpand(expandedKeyList); - } - }); + /** + * `grid` specifies the x and y that dragging should snap to. + */ + grid: propTypes.arrayOf(propTypes.number), - _defineProperty(_assertThisInitialized(_this), "onLoad", function (loadedKeys) { - _this.setState({ - loadedKeys: loadedKeys - }); - }); + /** + * `scale` specifies the scale of the area you are dragging inside of. It allows + * the drag deltas to scale correctly with how far zoomed in/out you are. + */ + scale: propTypes.number, - _defineProperty(_assertThisInitialized(_this), "getTree", function () { - return _this.treeRef.current; - }); + /** + * `handle` specifies a selector to be used as the handle that initiates drag. + * + * Example: + * + * ```jsx + * let App = React.createClass({ + * render: function () { + * return ( + * + *
    + *
    Click me to drag
    + *
    This is some other content
    + *
    + *
    + * ); + * } + * }); + * ``` + */ + handle: propTypes.string, - _defineProperty(_assertThisInitialized(_this), "getLoadData", function () { - var _this$props2 = _this.props, - loadData = _this$props2.loadData, - upperSearchValue = _this$props2.upperSearchValue; - if (upperSearchValue) return null; - return loadData; - }); + /** + * `cancel` specifies a selector to be used to prevent drag initialization. + * + * Example: + * + * ```jsx + * let App = React.createClass({ + * render: function () { + * return( + * + *
    + *
    You can't drag from here
    + *
    Dragging here works fine
    + *
    + *
    + * ); + * } + * }); + * ``` + */ + cancel: propTypes.string, - _defineProperty(_assertThisInitialized(_this), "filterTreeNode", function (treeNode) { - var _this$props3 = _this.props, - upperSearchValue = _this$props3.upperSearchValue, - treeNodeFilterProp = _this$props3.treeNodeFilterProp; - var filterVal = treeNode.props[treeNodeFilterProp]; + /** + * Called when dragging starts. + * If this function returns the boolean false, dragging will be canceled. + */ + onStart: propTypes.func, - if (typeof filterVal === 'string') { - return upperSearchValue && filterVal.toUpperCase().indexOf(upperSearchValue) !== -1; - } + /** + * Called while dragging. + * If this function returns the boolean false, dragging will be canceled. + */ + onDrag: propTypes.func, - return false; - }); + /** + * Called when dragging stops. + * If this function returns the boolean false, the drag will remain active. + */ + onStop: propTypes.func, - _defineProperty(_assertThisInitialized(_this), "renderNotFound", function () { - var _this$props4 = _this.props, - prefixCls = _this$props4.prefixCls, - notFoundContent = _this$props4.notFoundContent; - return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("span", { - className: "".concat(prefixCls, "-not-found") - }, notFoundContent); - }); + /** + * A workaround option which can be passed if onMouseDown needs to be accessed, + * since it'll always be blocked (as there is internal use of onMouseDown) + */ + onMouseDown: propTypes.func, - var treeDefaultExpandAll = props.treeDefaultExpandAll, - treeDefaultExpandedKeys = props.treeDefaultExpandedKeys, - keyEntities = props.keyEntities; // TODO: make `expandedKeyList` control + /** + * These properties should be defined on the child, not here. + */ + className: dontSetMe, + style: dontSetMe, + transform: dontSetMe + }; + DraggableCore.defaultProps = { + allowAnyClick: false, // by default only accept left click + cancel: null, + disabled: false, + enableUserSelectHack: true, + offsetParent: null, + handle: null, + grid: null, + transform: null, + onStart: function onStart() {}, + onDrag: function onDrag() {}, + onStop: function onStop() {}, + onMouseDown: function onMouseDown() {} + }; - var _expandedKeyList = treeDefaultExpandedKeys; + /*:: import type {DraggableEventHandler} from './utils/types';*/ + /*:: import type {Element as ReactElement} from 'react';*/ + /*:: type DraggableState = { + dragging: boolean, + dragged: boolean, + x: number, y: number, + slackX: number, slackY: number, + isElementSVG: boolean + };*/ - if (treeDefaultExpandAll) { - _expandedKeyList = Object.keys(keyEntities); - } - _this.state = { - keyList: [], - expandedKeyList: _expandedKeyList, - // Cache `expandedKeyList` when tree is in filter. This is used in `getDerivedStateFromProps` - cachedExpandedKeyList: [], - // eslint-disable-line react/no-unused-state - loadedKeys: [] - }; - _this.treeRef = Object(__WEBPACK_IMPORTED_MODULE_4__util__["g" /* createRef */])(); - return _this; - } + // + // Define + // - _createClass(BasePopup, [{ - key: "render", - value: function render() { - var _this$state = this.state, - keyList = _this$state.keyList, - expandedKeyList = _this$state.expandedKeyList, - loadedKeys = _this$state.loadedKeys; - var _this$props5 = this.props, - prefixCls = _this$props5.prefixCls, - treeNodes = _this$props5.treeNodes, - filteredTreeNodes = _this$props5.filteredTreeNodes, - treeIcon = _this$props5.treeIcon, - treeLine = _this$props5.treeLine, - treeCheckable = _this$props5.treeCheckable, - treeCheckStrictly = _this$props5.treeCheckStrictly, - multiple = _this$props5.multiple, - ariaId = _this$props5.ariaId, - renderSearch = _this$props5.renderSearch, - switcherIcon = _this$props5.switcherIcon, - searchHalfCheckedKeys = _this$props5.searchHalfCheckedKeys; - var _this$context$rcTreeS = this.context.rcTreeSelect, - onPopupKeyDown = _this$context$rcTreeS.onPopupKeyDown, - onTreeNodeSelect = _this$context$rcTreeS.onTreeNodeSelect, - onTreeNodeCheck = _this$context$rcTreeS.onTreeNodeCheck; - var loadData = this.getLoadData(); - var treeProps = {}; + /*:: export type DraggableProps = { + ...$Exact, + axis: 'both' | 'x' | 'y' | 'none', + bounds: DraggableBounds | string | false, + defaultClassName: string, + defaultClassNameDragging: string, + defaultClassNameDragged: string, + defaultPosition: ControlPosition, + positionOffset: PositionOffsetControlPosition, + position: ControlPosition, + scale: number + };*/ - if (treeCheckable) { - treeProps.checkedKeys = keyList; - } else { - treeProps.selectedKeys = keyList; - } + var Draggable = function (_React$Component) { + inherits(Draggable, _React$Component); - var $notFound; - var $treeNodes; + function Draggable(props /*: DraggableProps*/) { + classCallCheck(this, Draggable); - if (filteredTreeNodes) { - if (filteredTreeNodes.length) { - treeProps.checkStrictly = true; - $treeNodes = filteredTreeNodes; // Fill halfCheckedKeys + var _this = possibleConstructorReturn(this, (Draggable.__proto__ || Object.getPrototypeOf(Draggable)).call(this, props)); - if (treeCheckable && !treeCheckStrictly) { - treeProps.checkedKeys = { - checked: keyList, - halfChecked: searchHalfCheckedKeys - }; - } - } else { - $notFound = this.renderNotFound(); - } - } else if (!treeNodes || !treeNodes.length) { - $notFound = this.renderNotFound(); - } else { - $treeNodes = treeNodes; - } + _this.onDragStart = function (e, coreData) { - var $tree; + // Short-circuit if user's callback killed it. + var shouldStart = _this.props.onStart(e, createDraggableData(_this, coreData)); + // Kills start event on core as well, so move handlers are never bound. + if (shouldStart === false) return false; - if ($notFound) { - $tree = $notFound; - } else { - $tree = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3_rc_tree__["b" /* default */], _extends({ - ref: this.treeRef, - prefixCls: "".concat(prefixCls, "-tree"), - showIcon: treeIcon, - showLine: treeLine, - selectable: !treeCheckable, - checkable: treeCheckable, - checkStrictly: treeCheckStrictly, - multiple: multiple, - loadData: loadData, - loadedKeys: loadedKeys, - expandedKeys: expandedKeyList, - filterTreeNode: this.filterTreeNode, - onSelect: onTreeNodeSelect, - onCheck: onTreeNodeCheck, - onExpand: this.onTreeExpand, - onLoad: this.onLoad, - switcherIcon: switcherIcon - }, treeProps), $treeNodes); - } + _this.setState({ dragging: true, dragged: true }); + }; - return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", { - role: "listbox", - id: ariaId, - onKeyDown: onPopupKeyDown, - tabIndex: -1 - }, renderSearch ? renderSearch() : null, $tree); - } - }], [{ - key: "getDerivedStateFromProps", - value: function getDerivedStateFromProps(nextProps, prevState) { - var _ref = prevState || {}, - _ref$prevProps = _ref.prevProps, - prevProps = _ref$prevProps === void 0 ? {} : _ref$prevProps, - loadedKeys = _ref.loadedKeys, - expandedKeyList = _ref.expandedKeyList, - cachedExpandedKeyList = _ref.cachedExpandedKeyList; + _this.onDrag = function (e, coreData) { + if (!_this.state.dragging) return false; - var valueList = nextProps.valueList, - valueEntities = nextProps.valueEntities, - keyEntities = nextProps.keyEntities, - treeExpandedKeys = nextProps.treeExpandedKeys, - filteredTreeNodes = nextProps.filteredTreeNodes, - upperSearchValue = nextProps.upperSearchValue; - var newState = { - prevProps: nextProps - }; // Check value update + var uiData = createDraggableData(_this, coreData); - if (valueList !== prevProps.valueList) { - newState.keyList = valueList.map(function (_ref2) { - var value = _ref2.value; - return valueEntities[value]; - }).filter(function (entity) { - return entity; - }).map(function (_ref3) { - var key = _ref3.key; - return key; - }); - } // Show all when tree is in filter mode + var newState /*: $Shape*/ = { + x: uiData.x, + y: uiData.y + }; + + // Keep within bounds. + if (_this.props.bounds) { + // Save original x and y. + var _x = newState.x, + _y = newState.y; + // Add slack to the values used to calculate bound position. This will ensure that if + // we start removing slack, the element won't react to it right away until it's been + // completely removed. - if (!treeExpandedKeys && filteredTreeNodes && filteredTreeNodes.length && filteredTreeNodes !== prevProps.filteredTreeNodes) { - newState.expandedKeyList = Object.keys(keyEntities); - } // Cache `expandedKeyList` when filter set + newState.x += _this.state.slackX; + newState.y += _this.state.slackY; + // Get bound position. This will ceil/floor the x and y within the boundaries. - if (upperSearchValue && !prevProps.upperSearchValue) { - newState.cachedExpandedKeyList = expandedKeyList; - } else if (!upperSearchValue && prevProps.upperSearchValue && !treeExpandedKeys) { - newState.expandedKeyList = cachedExpandedKeyList || []; - newState.cachedExpandedKeyList = []; - } // Use expandedKeys if provided + var _getBoundPosition = getBoundPosition(_this, newState.x, newState.y), + _getBoundPosition2 = slicedToArray(_getBoundPosition, 2), + newStateX = _getBoundPosition2[0], + newStateY = _getBoundPosition2[1]; + newState.x = newStateX; + newState.y = newStateY; - if (prevProps.treeExpandedKeys !== treeExpandedKeys) { - newState.expandedKeyList = treeExpandedKeys; - } // Clean loadedKeys if key not exist in keyEntities anymore + // Recalculate slack by noting how much was shaved by the boundPosition handler. + newState.slackX = _this.state.slackX + (_x - newState.x); + newState.slackY = _this.state.slackY + (_y - newState.y); + // Update the event we fire to reflect what really happened after bounds took effect. + uiData.x = newState.x; + uiData.y = newState.y; + uiData.deltaX = newState.x - _this.state.x; + uiData.deltaY = newState.y - _this.state.y; + } - if (nextProps.loadData) { - newState.loadedKeys = loadedKeys.filter(function (key) { - return key in keyEntities; - }); - } + // Short-circuit if user's callback killed it. + var shouldUpdate = _this.props.onDrag(e, uiData); + if (shouldUpdate === false) return false; - return newState; - } - }]); + _this.setState(newState); + }; - return BasePopup; - }(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component); + _this.onDragStop = function (e, coreData) { + if (!_this.state.dragging) return false; - _defineProperty(BasePopup, "propTypes", { - prefixCls: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, - upperSearchValue: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, - valueList: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.array, - searchHalfCheckedKeys: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.array, - valueEntities: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object, - keyEntities: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object, - treeIcon: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, - treeLine: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, - treeNodeFilterProp: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, - treeCheckable: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node]), - treeCheckStrictly: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, - treeDefaultExpandAll: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, - treeDefaultExpandedKeys: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.array, - treeExpandedKeys: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.array, - loadData: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func, - multiple: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, - onTreeExpand: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func, - treeNodes: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node, - filteredTreeNodes: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node, - notFoundContent: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node, - ariaId: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, - switcherIcon: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func]), - // HOC - renderSearch: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func, - onTreeExpanded: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func - }); + // Short-circuit if user's callback killed it. + var shouldStop = _this.props.onStop(e, createDraggableData(_this, coreData)); + if (shouldStop === false) return false; - _defineProperty(BasePopup, "contextTypes", { - rcTreeSelect: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.shape(_objectSpread({}, popupContextTypes)) - }); + var newState /*: $Shape*/ = { + dragging: false, + slackX: 0, + slackY: 0 + }; - Object(__WEBPACK_IMPORTED_MODULE_2_react_lifecycles_compat__["polyfill"])(BasePopup); - /* harmony default export */ __webpack_exports__["a"] = (BasePopup); + // If this is a controlled component, the result of this operation will be to + // revert back to the old position. We expect a handler on `onDragStop`, at the least. + var controlled = Boolean(_this.props.position); + if (controlled) { + var _this$props$position = _this.props.position, + _x2 = _this$props$position.x, + _y2 = _this$props$position.y; - /***/ }), - /* 212 */ - /***/ (function(module, exports, __webpack_require__) { + newState.x = _x2; + newState.y = _y2; + } - "use strict"; + _this.setState(newState); + }; + _this.state = { + // Whether or not we are currently dragging. + dragging: false, - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.Con = exports.Row = exports.Col = undefined; + // Whether or not we have been dragged before. + dragged: false, - var _Col2 = __webpack_require__(1689); + // Current transform x and y. + x: props.position ? props.position.x : props.defaultPosition.x, + y: props.position ? props.position.y : props.defaultPosition.y, - var _Col3 = _interopRequireDefault(_Col2); + // Used for compensating for out-of-bounds drags + slackX: 0, slackY: 0, - var _Row2 = __webpack_require__(1690); + // Can only determine if SVG after mounting + isElementSVG: false + }; - var _Row3 = _interopRequireDefault(_Row2); + if (props.position && !(props.onDrag || props.onStop)) { + // eslint-disable-next-line no-console + console.warn('A `position` was applied to this , without drag handlers. This will make this ' + 'component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the ' + '`position` of this element.'); + } + return _this; + } - var _Layout = __webpack_require__(1691); + createClass(Draggable, [{ + key: 'componentDidMount', + value: function componentDidMount() { + // Check to see if the element passed is an instanceof SVGElement + if (typeof window.SVGElement !== 'undefined' && ReactDOM.findDOMNode(this) instanceof window.SVGElement) { + this.setState({ isElementSVG: true }); + } + } + }, { + key: 'componentWillReceiveProps', + value: function componentWillReceiveProps(nextProps /*: Object*/) { + // Set x/y if position has changed + if (nextProps.position && (!this.props.position || nextProps.position.x !== this.props.position.x || nextProps.position.y !== this.props.position.y)) { + this.setState({ x: nextProps.position.x, y: nextProps.position.y }); + } + } + }, { + key: 'componentWillUnmount', + value: function componentWillUnmount() { + this.setState({ dragging: false }); // prevents invariant if unmounted while dragging + } + }, { + key: 'render', + value: function render() /*: ReactElement*/ { + var _classNames; - var _Layout2 = _interopRequireDefault(_Layout); + var style = {}, + svgTransform = null; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + // If this is controlled, we don't want to move it - unless it's dragging. + var controlled = Boolean(this.props.position); + var draggable = !controlled || this.state.dragging; - exports.Col = _Col3["default"]; - exports.Row = _Row3["default"]; - exports.Con = _Layout2["default"]; + var position = this.props.position || this.props.defaultPosition; + var transformOpts = { + // Set left if horizontal drag is enabled + x: canDragX(this) && draggable ? this.state.x : position.x, - /***/ }), - /* 213 */ - /***/ (function(module, exports, __webpack_require__) { + // Set top if vertical drag is enabled + y: canDragY(this) && draggable ? this.state.y : position.y + }; - "use strict"; + // If this element was SVG, we use the `transform` attribute. + if (this.state.isElementSVG) { + svgTransform = createSVGTransform(transformOpts, this.props.positionOffset); + } else { + // Add a CSS transform to move the element around. This allows us to move the element around + // without worrying about whether or not it is relatively or absolutely positioned. + // If the item you are dragging already has a transform set, wrap it in a so + // has a clean slate. + style = createCSSTransform(transformOpts, this.props.positionOffset); + } + var _props = this.props, + defaultClassName = _props.defaultClassName, + defaultClassNameDragging = _props.defaultClassNameDragging, + defaultClassNameDragged = _props.defaultClassNameDragged; - Object.defineProperty(exports, "__esModule", { - value: true - }); - var _Button = __webpack_require__(545); + var children = React.Children.only(this.props.children); - var _Button2 = _interopRequireDefault(_Button); + // Mark with class while dragging + var className = classnames(children.props.className || '', defaultClassName, (_classNames = {}, defineProperty(_classNames, defaultClassNameDragging, this.state.dragging), defineProperty(_classNames, defaultClassNameDragged, this.state.dragged), _classNames)); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + // Reuse the child provided + // This makes it flexible to use whatever element is wanted (div, ul, etc) + return React.createElement( + DraggableCore, + _extends({}, this.props, { onStart: this.onDragStart, onDrag: this.onDrag, onStop: this.onDragStop }), + React.cloneElement(children, { + className: className, + style: _extends({}, children.props.style, style), + transform: svgTransform + }) + ); + } + }]); + return Draggable; + }(React.Component); - exports["default"] = _Button2["default"]; - module.exports = exports['default']; + Draggable.displayName = 'Draggable'; + Draggable.propTypes = _extends({}, DraggableCore.propTypes, { - /***/ }), - /* 214 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + /** + * `axis` determines which axis the draggable can move. + * + * Note that all callbacks will still return data as normal. This only + * controls flushing to the DOM. + * + * 'both' allows movement horizontally and vertically. + * 'x' limits movement to horizontal axis. + * 'y' limits movement to vertical axis. + * 'none' limits all movement. + * + * Defaults to 'both'. + */ + axis: propTypes.oneOf(['both', 'x', 'y', 'none']), - "use strict"; - Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__createForm__ = __webpack_require__(577); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__createFormField__ = __webpack_require__(232); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__propTypes__ = __webpack_require__(675); - /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "createFormField", function() { return __WEBPACK_IMPORTED_MODULE_1__createFormField__["a"]; }); - /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "formShape", function() { return __WEBPACK_IMPORTED_MODULE_2__propTypes__["a"]; }); - /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "createForm", function() { return __WEBPACK_IMPORTED_MODULE_0__createForm__["a"]; }); - // export this package's api + /** + * `bounds` determines the range of movement available to the element. + * Available values are: + * + * 'parent' restricts movement within the Draggable's parent node. + * + * Alternatively, pass an object with the following properties, all of which are optional: + * + * {left: LEFT_BOUND, right: RIGHT_BOUND, bottom: BOTTOM_BOUND, top: TOP_BOUND} + * + * All values are in px. + * + * Example: + * + * ```jsx + * let App = React.createClass({ + * render: function () { + * return ( + * + *
    Content
    + *
    + * ); + * } + * }); + * ``` + */ + bounds: propTypes.oneOfType([propTypes.shape({ + left: propTypes.number, + right: propTypes.number, + top: propTypes.number, + bottom: propTypes.number + }), propTypes.string, propTypes.oneOf([false])]), + + defaultClassName: propTypes.string, + defaultClassNameDragging: propTypes.string, + defaultClassNameDragged: propTypes.string, + /** + * `defaultPosition` specifies the x and y that the dragged item should start at + * + * Example: + * + * ```jsx + * let App = React.createClass({ + * render: function () { + * return ( + * + *
    I start with transformX: 25px and transformY: 25px;
    + *
    + * ); + * } + * }); + * ``` + */ + defaultPosition: propTypes.shape({ + x: propTypes.number, + y: propTypes.number + }), + positionOffset: propTypes.shape({ + x: propTypes.oneOfType([propTypes.number, propTypes.string]), + y: propTypes.oneOfType([propTypes.number, propTypes.string]) + }), + /** + * `position`, if present, defines the current position of the element. + * + * This is similar to how form elements in React work - if no `position` is supplied, the component + * is uncontrolled. + * + * Example: + * + * ```jsx + * let App = React.createClass({ + * render: function () { + * return ( + * + *
    I start with transformX: 25px and transformY: 25px;
    + *
    + * ); + * } + * }); + * ``` + */ + position: propTypes.shape({ + x: propTypes.number, + y: propTypes.number + }), + /** + * These properties should be defined on the child, not here. + */ + className: dontSetMe, + style: dontSetMe, + transform: dontSetMe + }); + Draggable.defaultProps = _extends({}, DraggableCore.defaultProps, { + axis: 'both', + bounds: false, + defaultClassName: 'react-draggable', + defaultClassNameDragging: 'react-draggable-dragging', + defaultClassNameDragged: 'react-draggable-dragged', + defaultPosition: { x: 0, y: 0 }, + position: null, + scale: 1 + }); + // Previous versions of this lib exported as the root export. As to not break + // them, or TypeScript, we export *both* as the root and as 'default'. + // See https://github.com/mzabriskie/react-draggable/pull/254 + // and https://github.com/mzabriskie/react-draggable/issues/266 + Draggable.default = Draggable; + Draggable.DraggableCore = DraggableCore; + return Draggable; - /***/ }), - /* 215 */ - /***/ (function(module, exports, __webpack_require__) { + }))); + //# sourceMappingURL=react-draggable.js.map - module.exports = { "default": __webpack_require__(579), __esModule: true }; /***/ }), - /* 216 */ + /* 108 */ /***/ (function(module, exports, __webpack_require__) { - module.exports = !__webpack_require__(41) && !__webpack_require__(53)(function () { - return Object.defineProperty(__webpack_require__(217)('div'), 'a', { get: function () { return 7; } }).a != 7; - }); + "use strict"; - /***/ }), - /* 217 */ - /***/ (function(module, exports, __webpack_require__) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.findInArray = findInArray; + exports.isFunction = isFunction; + exports.isNum = isNum; + exports.int = int; + exports.dontSetMe = dontSetMe; - var isObject = __webpack_require__(52); - var document = __webpack_require__(39).document; - // typeof document.createElement is 'object' in old IE - var is = isObject(document) && isObject(document.createElement); - module.exports = function (it) { - return is ? document.createElement(it) : {}; - }; + // @credits https://gist.github.com/rogozhnikoff/a43cfed27c41e4e68cdc + function findInArray(array + /*: Array | TouchList*/ + , callback + /*: Function*/ + ) + /*: any*/ + { + for (var i = 0, length = array.length; i < length; i++) { + if (callback.apply(callback, [array[i], i, array])) return array[i]; + } + } + function isFunction(func + /*: any*/ + ) + /*: boolean %checks*/ + { + return typeof func === 'function' || Object.prototype.toString.call(func) === '[object Function]'; + } - /***/ }), - /* 218 */ - /***/ (function(module, exports, __webpack_require__) { + function isNum(num + /*: any*/ + ) + /*: boolean %checks*/ + { + return typeof num === 'number' && !isNaN(num); + } - __webpack_require__(583); - module.exports = __webpack_require__(24).Object.assign; + function int(a + /*: string*/ + ) + /*: number*/ + { + return parseInt(a, 10); + } + function dontSetMe(props + /*: Object*/ + , propName + /*: string*/ + , componentName + /*: string*/ + ) { + if (props[propName]) { + return new Error("Invalid prop ".concat(propName, " passed to ").concat(componentName, " - do not set this, set it on the child.")); + } + } /***/ }), - /* 219 */ + /* 109 */ /***/ (function(module, exports, __webpack_require__) { - var has = __webpack_require__(47); - var toIObject = __webpack_require__(54); - var arrayIndexOf = __webpack_require__(585)(false); - var IE_PROTO = __webpack_require__(125)('IE_PROTO'); + "use strict"; - module.exports = function (object, names) { - var O = toIObject(object); - var i = 0; - var result = []; - var key; - for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); - // Don't enum bug & hidden keys - while (names.length > i) if (has(O, key = names[i++])) { - ~arrayIndexOf(result, key) || result.push(key); - } - return result; - }; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.Event = exports.EventUtil = exports.tryParseInt = undefined; - /***/ }), - /* 220 */ - /***/ (function(module, exports, __webpack_require__) { + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - // fallback for non-array-like ES3 and non-enumerable old V8 strings - var cof = __webpack_require__(122); - // eslint-disable-next-line no-prototype-builtins - module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { - return cof(it) == 'String' ? it.split('') : Object(it); - }; + exports.measureScrollbar = measureScrollbar; + exports.debounce = debounce; + exports.warningOnce = warningOnce; + exports.getOffset = getOffset; + exports.addClass = addClass; + exports.removeClass = removeClass; + exports.ObjectAssign = ObjectAssign; + exports.closest = closest; + exports.getMaxColChildrenLength = getMaxColChildrenLength; + exports.getColChildrenLength = getColChildrenLength; + exports.DicimalFormater = DicimalFormater; + exports.checkDicimalInvalid = checkDicimalInvalid; + exports.formatMoney = formatMoney; + exports.convertListToTree = convertListToTree; + var _warning = __webpack_require__(11); - /***/ }), - /* 221 */ - /***/ (function(module, exports, __webpack_require__) { + var _warning2 = _interopRequireDefault(_warning); - // 7.1.15 ToLength - var toInteger = __webpack_require__(124); - var min = Math.min; - module.exports = function (it) { - return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 - }; + var _parseInt = __webpack_require__(1217); + var _parseInt2 = _interopRequireDefault(_parseInt); - /***/ }), - /* 222 */ - /***/ (function(module, exports, __webpack_require__) { + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - "use strict"; + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - var $at = __webpack_require__(590)(true); + var scrollbarSize = void 0; - // 21.1.3.27 String.prototype[@@iterator]() - __webpack_require__(223)(String, 'String', function (iterated) { - this._t = String(iterated); // target - this._i = 0; // next index - // 21.1.5.2.1 %StringIteratorPrototype%.next() - }, function () { - var O = this._t; - var index = this._i; - var point; - if (index >= O.length) return { value: undefined, done: true }; - point = $at(O, index); - this._i += point.length; - return { value: point, done: false }; - }); + // Measure scrollbar width for padding body during modal show/hide + var scrollbarMeasure = { + position: 'absolute', + top: '-9999px', + width: '50px', + height: '50px', + overflow: 'scroll' + }; + function measureScrollbar() { + var direction = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'vertical'; - /***/ }), - /* 223 */ - /***/ (function(module, exports, __webpack_require__) { - "use strict"; + if (typeof document === 'undefined' || typeof window === 'undefined') { + return 0; + } + var tableDom = document.querySelector('.u-table'); + var currentDom = tableDom ? tableDom : document.body; - var LIBRARY = __webpack_require__(87); - var $export = __webpack_require__(38); - var redefine = __webpack_require__(224); - var hide = __webpack_require__(50); - var Iterators = __webpack_require__(68); - var $iterCreate = __webpack_require__(591); - var setToStringTag = __webpack_require__(130); - var getPrototypeOf = __webpack_require__(594); - var ITERATOR = __webpack_require__(29)('iterator'); - var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` - var FF_ITERATOR = '@@iterator'; - var KEYS = 'keys'; - var VALUES = 'values'; + if (scrollbarSize) { + return scrollbarSize; + } + var scrollDiv = document.createElement('div'); + Object.keys(scrollbarMeasure).forEach(function (scrollProp) { + scrollDiv.style[scrollProp] = scrollbarMeasure[scrollProp]; + }); + currentDom.appendChild(scrollDiv); + var size = 0; + if (direction === 'vertical') { + size = scrollDiv.offsetWidth - scrollDiv.clientWidth; + } else if (direction === 'horizontal') { + size = scrollDiv.offsetHeight - scrollDiv.clientHeight; + } - var returnThis = function () { return this; }; + currentDom.removeChild(scrollDiv); + scrollbarSize = size; + return scrollbarSize; + } - module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { - $iterCreate(Constructor, NAME, next); - var getMethod = function (kind) { - if (!BUGGY && kind in proto) return proto[kind]; - switch (kind) { - case KEYS: return function keys() { return new Constructor(this, kind); }; - case VALUES: return function values() { return new Constructor(this, kind); }; - } return function entries() { return new Constructor(this, kind); }; - }; - var TAG = NAME + ' Iterator'; - var DEF_VALUES = DEFAULT == VALUES; - var VALUES_BUG = false; - var proto = Base.prototype; - var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]; - var $default = $native || getMethod(DEFAULT); - var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined; - var $anyNative = NAME == 'Array' ? proto.entries || $native : $native; - var methods, key, IteratorPrototype; - // Fix native - if ($anyNative) { - IteratorPrototype = getPrototypeOf($anyNative.call(new Base())); - if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) { - // Set @@toStringTag to native iterators - setToStringTag(IteratorPrototype, TAG, true); - // fix for some old engines - if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis); + function debounce(func, wait, immediate) { + var timeout = void 0; + return function debounceFunc() { + var context = this; + var args = arguments; + // https://fb.me/react-event-pooling + if (args[0] && args[0].persist) { + args[0].persist(); + } + var later = function later() { + timeout = null; + if (!immediate) { + func.apply(context, args); + } + }; + var callNow = immediate && !timeout; + clearTimeout(timeout); + timeout = setTimeout(later, wait); + if (callNow) { + func.apply(context, args); } + }; + } + + var warned = {}; + function warningOnce(condition, format, args) { + if (!warned[format]) { + (0, _warning2["default"])(condition, format, args); + warned[format] = true; } - // fix Array#{values, @@iterator}.name in V8 / FF - if (DEF_VALUES && $native && $native.name !== VALUES) { - VALUES_BUG = true; - $default = function values() { return $native.call(this); }; + } + function getOffset(Node, offset) { + if (!offset) { + offset = {}; + offset.top = 0; + offset.left = 0; } - // Define iterator - if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) { - hide(proto, ITERATOR, $default); + if (Node == document.body) { + return offset; } - // Plug for library - Iterators[NAME] = $default; - Iterators[TAG] = returnThis; - if (DEFAULT) { - methods = { - values: DEF_VALUES ? $default : getMethod(VALUES), - keys: IS_SET ? $default : getMethod(KEYS), - entries: $entries - }; - if (FORCED) for (key in methods) { - if (!(key in proto)) redefine(proto, key, methods[key]); - } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); + offset.top += Node.offsetTop; + offset.left += Node.offsetLeft; + if (Node.offsetParent) return getOffset(Node.offsetParent, offset);else return offset; + }; + + var tryParseInt = exports.tryParseInt = function tryParseInt(value) { + var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; + + var resultValue = (0, _parseInt2["default"])(value); + + if (isNaN(resultValue)) { + return defaultValue; } - return methods; + return resultValue; }; + function addClass(elm, className) { + if (!className) return; - /***/ }), - /* 224 */ - /***/ (function(module, exports, __webpack_require__) { + var els = Array.isArray(elm) ? elm : [elm]; - module.exports = __webpack_require__(50); + els.forEach(function (el) { + if (el.classList) { + el.classList.add(className.split(' ')); + } else { + el.className += ' ' + className; + } + }); + } + function removeClass(elm, className) { + if (!className) return; - /***/ }), - /* 225 */ - /***/ (function(module, exports, __webpack_require__) { + var els = Array.isArray(elm) ? elm : [elm]; - "use strict"; + els.forEach(function (el) { + if (el.classList) { + el.classList.remove(className.split(' ')); + } else { + el.className = el.className.replace(new RegExp('(^|\\b)' + className.split(' ').join('|') + '(\\b|$)', 'gi'), ' '); + } + }); + } + /** + * 简单数组数据对象拷贝 + * @param {*} obj 要拷贝的对象 + */ + function ObjectAssign(obj) { + var b = obj instanceof Array; + var tagObj = b ? [] : {}; + if (b) { + //数组 + obj.forEach(function (da) { + var _da = {}; + _extends(_da, da); + tagObj.push(_da); + }); + } else { + _extends(tagObj, obj); + } + return tagObj; + } + /** + * 获取某个父元素 + * */ - Object.defineProperty(exports, "__esModule", { - value: true - }); + function closest(ele, selector) { + var matches = ele.matches || ele.webkitMatchesSelector || ele.mozMatchesSelector || ele.msMatchesSelector; + if (matches) { + while (ele) { + if (matches.call(ele, selector)) { + return ele; + } else { + ele = ele.parentElement; + } + } + } + return null; + } - var _util = __webpack_require__(16); + function getMaxColChildrenLength(columns) { + var arr = []; + arr = columns.map(function (item, index) { + var chilrenLen = 0; + if (item.children) { + chilrenLen = getColChildrenLength(item.children, chilrenLen + 1); + } + return chilrenLen; + }); + var max = Math.max.apply(null, arr); + return max; + } - var util = _interopRequireWildcard(_util); + function getColChildrenLength(columns, chilrenLen) { + columns.forEach(function (item, index) { + if (item.children) { + chilrenLen = getColChildrenLength(item.children, chilrenLen + 1); + } + }); + return chilrenLen; + } - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } + function addHandler(element, type, handler) { + var event = null; + if (element.addEventListener) { + //检测是否为DOM2级方法 + event = element.addEventListener(type, handler, false); + } else if (element.attachEvent) { + //检测是否为IE级方法 + event = element.attachEvent("on" + type, handler); + } else { + //检测是否为DOM0级方法 + event = element["on" + type] = handler; + } + return event; + } - /** - * Rule for validating required fields. - * - * @param rule The validation rule. - * @param value The value of the field on the source object. - * @param source The source object being validated. - * @param errors An array of errors that this rule may add - * validation errors to. - * @param options The validation options. - * @param options.messages The validation messages. - */ - function required(rule, value, source, errors, options, type) { - if (rule.required && (!source.hasOwnProperty(rule.field) || util.isEmptyValue(value, type || rule.type))) { - errors.push(util.format(options.messages.required, rule.fullField)); + function removeHandler(element, type, handler) { + if (element && element.removeEventListener) { + //element&& ie11报错兼容 + element.removeEventListener(type, handler, false); + } else if (element && element.detachEvent) { + element.detachEvent("on" + type, handler); + } else if (element) { + element["on" + type] = null; } } - exports['default'] = required; + //获取事件对象的兼容性写法 + function getEvent(event) { + return event ? event : window.event; + } - /***/ }), - /* 226 */ - /***/ (function(module, exports, __webpack_require__) { + //获取事件对象目标的兼容性写法 + function getTarget(event) { + return event.target || event.srcElement; + } - "use strict"; - /* WEBPACK VAR INJECTION */(function(process) {/** - * Copyright (c) 2014-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ + function preventDefault(event) { + if (event.preventDefault) { + event.preventDefault(); + } else { + event.returnValue = false; + } + } + + function stopPropagation(event) { + if (event.stopPropagation) { + event.stopPropagation(); + } else { + event.cancelBubble = true; + } + } + + //用事件冒泡方式,如果想兼容事件捕获只需要添加个bool参数 + var EventUtil = exports.EventUtil = { + addHandler: function addHandler(element, type, handler) { + if (element.addEventListener) { + element.addEventListener(type, handler, false); + } else if (element.attachEvent) { + element.attachEvent('on' + type, handler); + } else { + element['on' + type] = handler; + } + }, + removeHandler: function removeHandler(element, type, handler) { + //element&& ie11报错兼容 + if (element && element.removeEventListener) { + element.removeEventListener(type, handler, false); + } else if (element && element.detachEvent) { + element.detachEvent('on' + type, handler); + } else if (element) { + element['on' + type] = null; + } + } + /* + * 处理精度 + */ + };function DicimalFormater(value, precision) { + var value = value + '', + precision = precision ? precision : 0; + for (var i = 0; i < value.length; i++) { + if ("-0123456789.".indexOf(value.charAt(i)) == -1) return ""; + } + return checkDicimalInvalid(value, precision); + }; + function checkDicimalInvalid(value, precision) { + if (value == null || isNaN(value)) return ""; + // 浮点数总位数不能超过10位 + var digit = parseFloat(value); + var result = (digit * Math.pow(10, precision) / Math.pow(10, precision)).toFixed(precision); + if (result == "NaN") return ""; + return result; + }; /** - * Similar to invariant but only logs a warning if the condition is not met. - * This can be used to log issues in development environments in critical - * paths. Removing the logging code for production environments will keep the - * same logic and follow the same code paths. + * 将数值转化为货币类型 + * @param {*} number 数值 + * @param {*} places 精度 + * @param {*} thousand 是否展示千分位 */ + function formatMoney(number, places, thousand) { + number = number || 0; + places = !isNaN(places = Math.abs(places)) ? places : 2; + var thousandSymbol = thousand ? "," : ''; + var negative = number < 0 ? "-" : ""; + var i = (0, _parseInt2["default"])(number = Math.abs(+number || 0).toFixed(places), 10) + ""; + var j = (j = i.length) > 3 ? j % 3 : 0; + return negative + (j ? i.substr(0, j) + thousandSymbol : "") + i.substr(j).replace(/(\d{3})(?=\d)/g, "$1" + thousandSymbol) + (places ? '.' + Math.abs(number - i).toFixed(places).slice(2) : ""); + } - var __DEV__ = process.env.NODE_ENV !== 'production'; + var Event = exports.Event = { + addHandler: addHandler, + removeHandler: removeHandler, + getEvent: getEvent, + getTarget: getTarget, + preventDefault: preventDefault, + stopPropagation: stopPropagation - var warning = function() {}; + /** + * 将一维数组转换为树结构 + * @param {*} treeData 扁平结构的 List 数组 + * @param {*} attr 属性配置设置 + * @param {*} flatTreeKeysMap 存储所有 key-value 的映射,方便获取各节点信息 + */ + };function convertListToTree(treeData, attr, flatTreeKeysMap) { + var tree = []; //存储所有一级节点 + var resData = treeData, + //resData 存储截取的节点 + 父节点(除一级节点外) + resKeysMap = {}, + //resData 的Map映射 + treeKeysMap = {}; //tree 的Map映射 + resData.map(function (element) { + var key = attr.id; + resKeysMap[element[key]] = element; + }); + // 查找父节点,为了补充不完整的数据结构 + var findParentNode = function findParentNode(node) { + var parentKey = node[attr.parendId]; + if (parentKey !== attr.rootId) { + //如果不是根节点,则继续递归 + var item = flatTreeKeysMap[parentKey]; + // 用 resKeysMap 判断,避免重复计算某节点的父节点 + if (resKeysMap.hasOwnProperty(item[attr.id])) return; + resData.unshift(item); + resKeysMap[item[attr.id]] = item; + findParentNode(item); + } else { + // 用 treeKeysMap 判断,避免重复累加 + if (!treeKeysMap.hasOwnProperty(node[attr.id])) { + var key = node.key, + title = node.title, + children = node.children, + _isLeaf = node._isLeaf, + otherProps = _objectWithoutProperties(node, ['key', 'title', 'children', '_isLeaf']); - if (__DEV__) { - var printWarning = function printWarning(format, args) { - var len = arguments.length; - args = new Array(len > 1 ? len - 1 : 0); - for (var key = 1; key < len; key++) { - args[key - 1] = arguments[key]; + var obj = { + key: key, + title: title, + _isLeaf: _isLeaf, + children: [] + }; + tree.push(_extends(obj, _extends({}, otherProps))); + treeKeysMap[key] = node; + } } - var argIndex = 0; - var message = 'Warning: ' + - format.replace(/%s/g, function() { - return args[argIndex++]; - }); - if (typeof console !== 'undefined') { - console.error(message); + }; + // 遍历 resData ,找到所有的一级节点 + for (var i = 0; i < resData.length; i++) { + var item = resData[i]; + if (item[attr.parendId] === attr.rootId && !treeKeysMap.hasOwnProperty(item[attr.id])) { + //如果是根节点,就存放进 tree 对象中 + var key = item.key, + title = item.title, + children = item.children, + otherProps = _objectWithoutProperties(item, ['key', 'title', 'children']); + + var obj = { + key: item[attr.id], + _isLeaf: item[attr._isLeaf], + children: [] + }; + tree.push(_extends(obj, _extends({}, otherProps))); + treeKeysMap[key] = item; + resData.splice(i, 1); + i--; + } else { + //递归查找根节点信息 + findParentNode(item); } - try { - // --- Welcome to debugging React --- - // This error was thrown as a convenience so that you can use this stack - // to find the callsite that caused this warning to fire. - throw new Error(message); - } catch (x) {} } + // console.log('resData',resKeysMap); + var run = function run(treeArrs) { + if (resData.length > 0) { + for (var _i = 0; _i < treeArrs.length; _i++) { + for (var j = 0; j < resData.length; j++) { + var _item = resData[j]; + if (treeArrs[_i].key === _item[attr.parendId]) { + var _key = _item.key, + _title = _item.title, + _children = _item.children, + _otherProps = _objectWithoutProperties(_item, ['key', 'title', 'children']); - warning = function(condition, format, args) { - var len = arguments.length; - args = new Array(len > 2 ? len - 2 : 0); - for (var key = 2; key < len; key++) { - args[key - 2] = arguments[key]; - } - if (format === undefined) { - throw new Error( - '`warning(condition, format, ...args)` requires a warning ' + - 'message argument' - ); - } - if (!condition) { - printWarning.apply(null, [format].concat(args)); + var _obj = { + key: _item[attr.id], + _isLeaf: _item[attr._isLeaf], + children: [] + }; + treeArrs[_i].children.push(_extends(_obj, _extends({}, _otherProps))); + resData.splice(j, 1); + j--; + } + } + run(treeArrs[_i].children); + } } }; + run(tree); + return tree; } - module.exports = warning; - - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) - /***/ }), - /* 227 */ + /* 110 */ /***/ (function(module, exports, __webpack_require__) { - var isArray = __webpack_require__(131), - isKey = __webpack_require__(631), - stringToPath = __webpack_require__(636), - toString = __webpack_require__(229); + //! moment.js locale configuration + //! locale : Chinese (China) [zh-cn] + //! author : suupic : https://github.com/suupic + //! author : Zeno Zeng : https://github.com/zenozeng + + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; + + //! moment.js locale configuration + + var zhCn = moment.defineLocale('zh-cn', { + months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split( + '_' + ), + monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split( + '_' + ), + weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), + weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'), + weekdaysMin: '日_一_二_三_四_五_六'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY/MM/DD', + LL: 'YYYY年M月D日', + LLL: 'YYYY年M月D日Ah点mm分', + LLLL: 'YYYY年M月D日ddddAh点mm分', + l: 'YYYY/M/D', + ll: 'YYYY年M月D日', + lll: 'YYYY年M月D日 HH:mm', + llll: 'YYYY年M月D日dddd HH:mm', + }, + meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') { + return hour; + } else if (meridiem === '下午' || meridiem === '晚上') { + return hour + 12; + } else { + // '中午' + return hour >= 11 ? hour : hour + 12; + } + }, + meridiem: function (hour, minute, isLower) { + var hm = hour * 100 + minute; + if (hm < 600) { + return '凌晨'; + } else if (hm < 900) { + return '早上'; + } else if (hm < 1130) { + return '上午'; + } else if (hm < 1230) { + return '中午'; + } else if (hm < 1800) { + return '下午'; + } else { + return '晚上'; + } + }, + calendar: { + sameDay: '[今天]LT', + nextDay: '[明天]LT', + nextWeek: '[下]ddddLT', + lastDay: '[昨天]LT', + lastWeek: '[上]ddddLT', + sameElse: 'L', + }, + dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/, + ordinal: function (number, period) { + switch (period) { + case 'd': + case 'D': + case 'DDD': + return number + '日'; + case 'M': + return number + '月'; + case 'w': + case 'W': + return number + '周'; + default: + return number; + } + }, + relativeTime: { + future: '%s后', + past: '%s前', + s: '几秒', + ss: '%d 秒', + m: '1 分钟', + mm: '%d 分钟', + h: '1 小时', + hh: '%d 小时', + d: '1 天', + dd: '%d 天', + M: '1 个月', + MM: '%d 个月', + y: '1 年', + yy: '%d 年', + }, + week: { + // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效 + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - /** - * Casts `value` to a path array if it's not one. - * - * @private - * @param {*} value The value to inspect. - * @param {Object} [object] The object to query keys on. - * @returns {Array} Returns the cast property path array. - */ - function castPath(value, object) { - if (isArray(value)) { - return value; - } - return isKey(value, object) ? [value] : stringToPath(toString(value)); - } + return zhCn; - module.exports = castPath; + }))); /***/ }), - /* 228 */ + /* 111 */ /***/ (function(module, exports, __webpack_require__) { - var Symbol = __webpack_require__(132), - getRawTag = __webpack_require__(633), - objectToString = __webpack_require__(634); - - /** `Object#toString` result references. */ - var nullTag = '[object Null]', - undefinedTag = '[object Undefined]'; - - /** Built-in value references. */ - var symToStringTag = Symbol ? Symbol.toStringTag : undefined; - - /** - * The base implementation of `getTag` without fallbacks for buggy environments. - * - * @private - * @param {*} value The value to query. - * @returns {string} Returns the `toStringTag`. - */ - function baseGetTag(value) { - if (value == null) { - return value === undefined ? undefinedTag : nullTag; - } - return (symToStringTag && symToStringTag in Object(value)) - ? getRawTag(value) - : objectToString(value); - } - - module.exports = baseGetTag; + "use strict"; - /***/ }), - /* 229 */ - /***/ (function(module, exports, __webpack_require__) { + Object.defineProperty(exports, "__esModule", { + value: true + }); - var baseToString = __webpack_require__(665); + var _Icon = __webpack_require__(1252); - /** - * Converts `value` to a string. An empty string is returned for `null` - * and `undefined` values. The sign of `-0` is preserved. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to convert. - * @returns {string} Returns the converted string. - * @example - * - * _.toString(null); - * // => '' - * - * _.toString(-0); - * // => '-0' - * - * _.toString([1, 2, 3]); - * // => '1,2,3' - */ - function toString(value) { - return value == null ? '' : baseToString(value); - } + var _Icon2 = _interopRequireDefault(_Icon); - module.exports = toString; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + exports["default"] = _Icon2["default"]; + module.exports = exports['default']; /***/ }), - /* 230 */ + /* 112 */ /***/ (function(module, exports, __webpack_require__) { - var isSymbol = __webpack_require__(91); + "use strict"; - /** Used as references for various `Number` constants. */ - var INFINITY = 1 / 0; - /** - * Converts `value` to a string key if it's not a string or symbol. - * - * @private - * @param {*} value The value to inspect. - * @returns {string|symbol} Returns the key. - */ - function toKey(value) { - if (typeof value == 'string' || isSymbol(value)) { - return value; - } - var result = (value + ''); - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; - } + Object.defineProperty(exports, "__esModule", { + value: true + }); - module.exports = toKey; + exports["default"] = function (componentOrElement) { + return (0, _ownerDocument2["default"])(_reactDom2["default"].findDOMNode(componentOrElement)); + }; + var _reactDom = __webpack_require__(3); - /***/ }), - /* 231 */ - /***/ (function(module, exports, __webpack_require__) { + var _reactDom2 = _interopRequireDefault(_reactDom); - var baseSet = __webpack_require__(667); + var _ownerDocument = __webpack_require__(23); - /** - * Sets the value at `path` of `object`. If a portion of `path` doesn't exist, - * it's created. Arrays are created for missing index properties while objects - * are created for all other missing properties. Use `_.setWith` to customize - * `path` creation. - * - * **Note:** This method mutates `object`. - * - * @static - * @memberOf _ - * @since 3.7.0 - * @category Object - * @param {Object} object The object to modify. - * @param {Array|string} path The path of the property to set. - * @param {*} value The value to set. - * @returns {Object} Returns `object`. - * @example - * - * var object = { 'a': [{ 'b': { 'c': 3 } }] }; - * - * _.set(object, 'a[0].b.c', 4); - * console.log(object.a[0].b.c); - * // => 4 - * - * _.set(object, ['x', '0', 'y', 'z'], 5); - * console.log(object.x[0].y.z); - * // => 5 - */ - function set(object, path, value) { - return object == null ? object : baseSet(object, path, value); - } + var _ownerDocument2 = _interopRequireDefault(_ownerDocument); - module.exports = set; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + module.exports = exports['default']; /***/ }), - /* 232 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + /* 113 */ + /***/ (function(module, exports, __webpack_require__) { "use strict"; - /* harmony export (immutable) */ __webpack_exports__["b"] = isFormField; - /* harmony export (immutable) */ __webpack_exports__["a"] = createFormField; - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(8); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(7); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__); + Object.defineProperty(exports, "__esModule", { + value: true + }); - var Field = function Field(fields) { - __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, Field); + var _Icon = __webpack_require__(1338); - __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()(this, fields); - }; + var _Icon2 = _interopRequireDefault(_Icon); - function isFormField(obj) { - return obj instanceof Field; - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - function createFormField(field) { - if (isFormField(field)) { - return field; - } - return new Field(field); - } + exports["default"] = _Icon2["default"]; + module.exports = exports['default']; /***/ }), - /* 233 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + /* 114 */ + /***/ (function(module, exports, __webpack_require__) { "use strict"; - /* harmony export (immutable) */ __webpack_exports__["a"] = argumentContainer; - /* harmony export (immutable) */ __webpack_exports__["i"] = identity; - /* harmony export (immutable) */ __webpack_exports__["b"] = flattenArray; - /* unused harmony export treeTraverse */ - /* harmony export (immutable) */ __webpack_exports__["c"] = flattenFields; - /* harmony export (immutable) */ __webpack_exports__["k"] = normalizeValidateRules; - /* harmony export (immutable) */ __webpack_exports__["f"] = getValidateTriggers; - /* harmony export (immutable) */ __webpack_exports__["g"] = getValueFromEvent; - /* harmony export (immutable) */ __webpack_exports__["d"] = getErrorStrs; - /* harmony export (immutable) */ __webpack_exports__["e"] = getParams; - /* harmony export (immutable) */ __webpack_exports__["j"] = isEmptyObject; - /* harmony export (immutable) */ __webpack_exports__["h"] = hasRules; - /* harmony export (immutable) */ __webpack_exports__["l"] = startsWith; - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(8); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_hoist_non_react_statics__ = __webpack_require__(234); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_hoist_non_react_statics___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_hoist_non_react_statics__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_warning__ = __webpack_require__(226); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_warning___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_warning__); - - - - - function getDisplayName(WrappedComponent) { - return WrappedComponent.displayName || WrappedComponent.name || 'WrappedComponent'; - } - - function argumentContainer(Container, WrappedComponent) { - /* eslint no-param-reassign:0 */ - Container.displayName = 'Form(' + getDisplayName(WrappedComponent) + ')'; - Container.WrappedComponent = WrappedComponent; - return __WEBPACK_IMPORTED_MODULE_1_hoist_non_react_statics___default()(Container, WrappedComponent); - } - - function identity(obj) { - return obj; - } - - function flattenArray(arr) { - return Array.prototype.concat.apply([], arr); - } - - function treeTraverse() { - var path = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; - var tree = arguments[1]; - var isLeafNode = arguments[2]; - var errorMessage = arguments[3]; - var callback = arguments[4]; - - if (isLeafNode(path, tree)) { - callback(path, tree); - } else if (tree === undefined || tree === null) { - // Do nothing - } else if (Array.isArray(tree)) { - tree.forEach(function (subTree, index) { - return treeTraverse(path + '[' + index + ']', subTree, isLeafNode, errorMessage, callback); - }); - } else { - // It's object and not a leaf node - if (typeof tree !== 'object') { - __WEBPACK_IMPORTED_MODULE_2_warning___default()(false, errorMessage); - return; - } - Object.keys(tree).forEach(function (subTreeKey) { - var subTree = tree[subTreeKey]; - treeTraverse('' + path + (path ? '.' : '') + subTreeKey, subTree, isLeafNode, errorMessage, callback); - }); - } - } - - function flattenFields(maybeNestedFields, isLeafNode, errorMessage) { - var fields = {}; - treeTraverse(undefined, maybeNestedFields, isLeafNode, errorMessage, function (path, node) { - fields[path] = node; - }); - return fields; - } - function normalizeValidateRules(validate, rules, validateTrigger) { - var validateRules = validate.map(function (item) { - var newItem = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, item, { - trigger: item.trigger || [] - }); - if (typeof newItem.trigger === 'string') { - newItem.trigger = [newItem.trigger]; - } - return newItem; - }); - if (rules) { - validateRules.push({ - trigger: validateTrigger ? [].concat(validateTrigger) : [], - rules: rules - }); - } - return validateRules; - } - function getValidateTriggers(validateRules) { - return validateRules.filter(function (item) { - return !!item.rules && item.rules.length; - }).map(function (item) { - return item.trigger; - }).reduce(function (pre, curr) { - return pre.concat(curr); - }, []); - } + Object.defineProperty(exports, "__esModule", { + value: true + }); - function getValueFromEvent(e) { - // To support custom element - if (!e || !e.target) { - return e; - } - var target = e.target; + exports["default"] = function (componentOrElement) { + return (0, _ownerDocument2["default"])(_reactDom2["default"].findDOMNode(componentOrElement)); + }; - return target.type === 'checkbox' ? target.checked : target.value; - } + var _reactDom = __webpack_require__(3); - function getErrorStrs(errors) { - if (errors) { - return errors.map(function (e) { - if (e && e.message) { - return e.message; - } - return e; - }); - } - return errors; - } + var _reactDom2 = _interopRequireDefault(_reactDom); - function getParams(ns, opt, cb) { - var names = ns; - var options = opt; - var callback = cb; - if (cb === undefined) { - if (typeof names === 'function') { - callback = names; - options = {}; - names = undefined; - } else if (Array.isArray(names)) { - if (typeof options === 'function') { - callback = options; - options = {}; - } else { - options = options || {}; - } - } else { - callback = options; - options = names || {}; - names = undefined; - } - } - return { - names: names, - options: options, - callback: callback - }; - } + var _ownerDocument = __webpack_require__(23); - function isEmptyObject(obj) { - return Object.keys(obj).length === 0; - } + var _ownerDocument2 = _interopRequireDefault(_ownerDocument); - function hasRules(validate) { - if (validate) { - return validate.some(function (item) { - return item.rules && item.rules.length; - }); - } - return false; - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - function startsWith(str, prefix) { - return str.lastIndexOf(prefix, 0) === 0; - } + module.exports = exports['default']; /***/ }), - /* 234 */ + /* 115 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; - var reactIs = __webpack_require__(135); - - /** - * Copyright 2015, Yahoo! Inc. - * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. - */ - var REACT_STATICS = { - childContextTypes: true, - contextType: true, - contextTypes: true, - defaultProps: true, - displayName: true, - getDefaultProps: true, - getDerivedStateFromError: true, - getDerivedStateFromProps: true, - mixins: true, - propTypes: true, - type: true - }; - var KNOWN_STATICS = { - name: true, - length: true, - prototype: true, - caller: true, - callee: true, - arguments: true, - arity: true - }; - var FORWARD_REF_STATICS = { - '$$typeof': true, - render: true, - defaultProps: true, - displayName: true, - propTypes: true - }; - var MEMO_STATICS = { - '$$typeof': true, - compare: true, - defaultProps: true, - displayName: true, - propTypes: true, - type: true - }; - var TYPE_STATICS = {}; - TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS; - TYPE_STATICS[reactIs.Memo] = MEMO_STATICS; + exports.__esModule = true; + exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined; - function getStatics(component) { - // React v16.11 and below - if (reactIs.isMemo(component)) { - return MEMO_STATICS; - } // React v16.12 and above + var _all2 = __webpack_require__(1403); + var _all3 = _interopRequireDefault(_all2); - return TYPE_STATICS[component['$$typeof']] || REACT_STATICS; - } + var _componentOrElement2 = __webpack_require__(1404); - var defineProperty = Object.defineProperty; - var getOwnPropertyNames = Object.getOwnPropertyNames; - var getOwnPropertySymbols = Object.getOwnPropertySymbols; - var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; - var getPrototypeOf = Object.getPrototypeOf; - var objectPrototype = Object.prototype; - function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) { - if (typeof sourceComponent !== 'string') { - // don't hoist over string (html) components - if (objectPrototype) { - var inheritedComponent = getPrototypeOf(sourceComponent); + var _componentOrElement3 = _interopRequireDefault(_componentOrElement2); - if (inheritedComponent && inheritedComponent !== objectPrototype) { - hoistNonReactStatics(targetComponent, inheritedComponent, blacklist); - } - } + var _deprecated2 = __webpack_require__(1405); - var keys = getOwnPropertyNames(sourceComponent); + var _deprecated3 = _interopRequireDefault(_deprecated2); - if (getOwnPropertySymbols) { - keys = keys.concat(getOwnPropertySymbols(sourceComponent)); - } + var _elementType2 = __webpack_require__(1406); - var targetStatics = getStatics(targetComponent); - var sourceStatics = getStatics(sourceComponent); + var _elementType3 = _interopRequireDefault(_elementType2); - for (var i = 0; i < keys.length; ++i) { - var key = keys[i]; + var _isRequiredForA11y2 = __webpack_require__(1407); - if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) { - var descriptor = getOwnPropertyDescriptor(sourceComponent, key); + var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2); - try { - // Avoid failures from read-only properties - defineProperty(targetComponent, key, descriptor); - } catch (e) {} - } - } - } + var _splitComponent2 = __webpack_require__(1408); - return targetComponent; - } + var _splitComponent3 = _interopRequireDefault(_splitComponent2); - module.exports = hoistNonReactStatics; + var _createChainedFunction2 = __webpack_require__(1409); + var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2); - /***/ }), - /* 235 */ - /***/ (function(module, exports, __webpack_require__) { + var _keyCode = __webpack_require__(485); - "use strict"; + var _keyCode2 = _interopRequireDefault(_keyCode); + var _contains2 = __webpack_require__(1410); - Object.defineProperty(exports, "__esModule", { - value: true - }); + var _contains3 = _interopRequireDefault(_contains2); - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + var _addEventListener2 = __webpack_require__(488); - var _classnames = __webpack_require__(2); + var _addEventListener3 = _interopRequireDefault(_addEventListener2); - var _classnames2 = _interopRequireDefault(_classnames); + var _cssAnimation2 = __webpack_require__(1411); - var _react = __webpack_require__(0); + var _cssAnimation3 = _interopRequireDefault(_cssAnimation2); - var _react2 = _interopRequireDefault(_react); + var _toArray2 = __webpack_require__(1413); - var _propTypes = __webpack_require__(1); + var _toArray3 = _interopRequireDefault(_toArray2); - var _propTypes2 = _interopRequireDefault(_propTypes); + var _Align2 = __webpack_require__(1414); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var _Align3 = _interopRequireDefault(_Align2); - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + exports.all = _all3.default; + exports.componentOrElement = _componentOrElement3.default; + exports.deprecated = _deprecated3.default; + exports.elementType = _elementType3.default; + exports.isRequiredForA11y = _isRequiredForA11y3.default; + exports.splitComponent = _splitComponent3.default; + exports.createChainedFunction = _createChainedFunction3.default; + exports.KeyCode = _keyCode2.default; + exports.contains = _contains3.default; + exports.addEventListener = _addEventListener3.default; + exports.cssAnimation = _cssAnimation3.default; + exports.toArray = _toArray3.default; + //export getContainerRenderMixin from './getContainerRenderMixin'; - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + exports.Align = _Align3.default; - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + /***/ }), + /* 116 */ + /***/ (function(module, exports, __webpack_require__) { - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + "use strict"; - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - var propTypes = { - /** - * Adds `container-fluid` class. - */ - fluid: _propTypes2["default"].bool, - /** - * You can use a custom element for this component - */ - componentClass: _propTypes2["default"].oneOfType([_propTypes2["default"].element, _propTypes2["default"].string]) - }; + Object.defineProperty(exports, "__esModule", { + value: true + }); - var defaultProps = { - componentClass: 'div', - fluid: false, - clsPrefix: 'u-container' + exports["default"] = function (componentOrElement) { + return (0, _ownerDocument2["default"])(_reactDom2["default"].findDOMNode(componentOrElement)); }; - var Con = function (_React$Component) { - _inherits(Con, _React$Component); - - function Con() { - _classCallCheck(this, Con); - - return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); - } - - Con.prototype.render = function render() { - var _tbclass; - - var _props = this.props, - fluid = _props.fluid, - Component = _props.componentClass, - clsPrefix = _props.clsPrefix, - className = _props.className, - others = _objectWithoutProperties(_props, ['fluid', 'componentClass', 'clsPrefix', 'className']); + var _reactDom = __webpack_require__(3); - var tbclass = (_tbclass = {}, _defineProperty(_tbclass, '' + clsPrefix, !fluid), _defineProperty(_tbclass, clsPrefix + '-fluid', fluid), _tbclass); + var _reactDom2 = _interopRequireDefault(_reactDom); - return _react2["default"].createElement( - Component, - _extends({}, others, { - className: (0, _classnames2["default"])(tbclass, className) - }), - this.props.children - ); - }; + var _ownerDocument = __webpack_require__(117); - return Con; - }(_react2["default"].Component); + var _ownerDocument2 = _interopRequireDefault(_ownerDocument); - Con.propTypes = propTypes; - Con.defaultProps = defaultProps; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - exports["default"] = Con; module.exports = exports['default']; /***/ }), - /* 236 */ + /* 117 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; - module.exports = __webpack_require__(684); + exports.__esModule = true; + exports.default = ownerDocument; + + function ownerDocument(node) { + return node && node.ownerDocument || document; + } + + module.exports = exports["default"]; /***/ }), - /* 237 */ + /* 118 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _InputNumber = __webpack_require__(238); - - var _InputNumber2 = _interopRequireDefault(_InputNumber); - - var _InputNumberGroup = __webpack_require__(726); - - var _InputNumberGroup2 = _interopRequireDefault(_InputNumberGroup); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + exports.__esModule = true; + exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined; - _InputNumber2["default"].InputNumberGroup = _InputNumberGroup2["default"]; + var _all2 = __webpack_require__(1449); - exports["default"] = _InputNumber2["default"]; - module.exports = exports['default']; + var _all3 = _interopRequireDefault(_all2); - /***/ }), - /* 238 */ - /***/ (function(module, exports, __webpack_require__) { + var _componentOrElement2 = __webpack_require__(1450); - "use strict"; + var _componentOrElement3 = _interopRequireDefault(_componentOrElement2); + var _deprecated2 = __webpack_require__(1451); - Object.defineProperty(exports, "__esModule", { - value: true - }); + var _deprecated3 = _interopRequireDefault(_deprecated2); - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + var _elementType2 = __webpack_require__(1452); - var _react = __webpack_require__(0); + var _elementType3 = _interopRequireDefault(_elementType2); - var _react2 = _interopRequireDefault(_react); + var _isRequiredForA11y2 = __webpack_require__(495); - var _classnames = __webpack_require__(2); + var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2); - var _classnames2 = _interopRequireDefault(_classnames); + var _splitComponent2 = __webpack_require__(491); - var _beeInputGroup = __webpack_require__(690); + var _splitComponent3 = _interopRequireDefault(_splitComponent2); - var _beeInputGroup2 = _interopRequireDefault(_beeInputGroup); + var _createChainedFunction2 = __webpack_require__(490); - var _beeFormControl = __webpack_require__(695); + var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2); - var _beeFormControl2 = _interopRequireDefault(_beeFormControl); + var _keyCode = __webpack_require__(1453); - var _beeMessage = __webpack_require__(239); + var _keyCode2 = _interopRequireDefault(_keyCode); - var _beeMessage2 = _interopRequireDefault(_beeMessage); + var _contains2 = __webpack_require__(1454); - var _propTypes = __webpack_require__(1); + var _contains3 = _interopRequireDefault(_contains2); - var _propTypes2 = _interopRequireDefault(_propTypes); + var _addEventListener2 = __webpack_require__(496); - var _i18n = __webpack_require__(724); + var _addEventListener3 = _interopRequireDefault(_addEventListener2); - var _i18n2 = _interopRequireDefault(_i18n); + var _cssAnimation2 = __webpack_require__(1455); - var _tool = __webpack_require__(725); + var _cssAnimation3 = _interopRequireDefault(_cssAnimation2); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var _toArray2 = __webpack_require__(1457); - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + var _toArray3 = _interopRequireDefault(_toArray2); - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + var _Align2 = __webpack_require__(1458); - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + var _Align3 = _interopRequireDefault(_Align2); - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + exports.all = _all3.default; + exports.componentOrElement = _componentOrElement3.default; + exports.deprecated = _deprecated3.default; + exports.elementType = _elementType3.default; + exports.isRequiredForA11y = _isRequiredForA11y3.default; + exports.splitComponent = _splitComponent3.default; + exports.createChainedFunction = _createChainedFunction3.default; + exports.KeyCode = _keyCode2.default; + exports.contains = _contains3.default; + exports.addEventListener = _addEventListener3.default; + exports.cssAnimation = _cssAnimation3.default; + exports.toArray = _toArray3.default; + //export getContainerRenderMixin from './getContainerRenderMixin'; - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + exports.Align = _Align3.default; - var propTypes = { - max: _propTypes2["default"].number, - min: _propTypes2["default"].number, - step: _propTypes2["default"].number, - autoWidth: _propTypes2["default"].bool, - precision: _propTypes2["default"].number, - format: _propTypes2["default"].func, - delay: _propTypes2["default"].number, - disabled: _propTypes2["default"].bool, - toThousands: _propTypes2["default"].bool, - locale: _propTypes2["default"].object, - toNumber: _propTypes2["default"].bool, //回调函数内的值是否转换为数值类型 - displayCheckPrompt: _propTypes2["default"].bool, //是否显示超出限制范围之后的检验提示 - minusRight: _propTypes2["default"].bool, //负号是否在右边 - handleBtnClick: _propTypes2["default"].func //加减按钮点击回调 - }; + /***/ }), + /* 119 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { - var defaultProps = { - value: "", - step: 1, - clsPrefix: 'u-input-number', - iconStyle: 'double', - autoWidth: false, - delay: 300, - toNumber: false, - displayCheckPrompt: false, - locale: {}, - handleBtnClick: function handleBtnClick() {} - }; + "use strict"; + /* harmony export (immutable) */ __webpack_exports__["a"] = toArray; + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_is__ = __webpack_require__(64); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_is___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_is__); - //校验提示 - function prompt(content) { - _beeMessage2["default"].destroy(); - _beeMessage2["default"].create({ content: content, color: 'warninglight' }); - } - /** - * 千分符 - * @param {要转换的数据} num - */ - function toThousands(number) { - if (number === '') return ''; - if (number === '0') return '0'; - var num = (number || 0).toString(); - var integer = num.split('.')[0]; - var decimal = num.split('.')[1] || ''; - var result = ''; - while (integer.length > 3) { - result = ',' + integer.slice(-3) + result; - integer = integer.slice(0, integer.length - 3); - } - if (integer) { - result = integer + result; - if (num == '.' || num.indexOf('.') == num.length - 1) { - result = result + '.' + decimal; - } else if (decimal) { - result = result + '.' + decimal; - } - } - if (result[0] == '-') { - result = result.replace('-,', '-'); + function toArray(children) { + var ret = []; + __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (child) { + if (child === undefined || child === null) { + return; } - return result; - } - - function setCaretPosition(ctrl, pos, need) { - if (ctrl && need) { - if (ctrl.setSelectionRange) { - ctrl.focus(); - ctrl.setSelectionRange(pos, pos); - // IE8 and below - } else if (ctrl.createTextRange) { - var range = ctrl.createTextRange(); - range.collapse(true); - range.moveEnd('character', pos); - range.moveStart('character', pos); - range.select(); - } + if (Array.isArray(child)) { + ret = ret.concat(toArray(child)); + } else if (Object(__WEBPACK_IMPORTED_MODULE_1_react_is__["isFragment"])(child) && child.props) { + ret = ret.concat(toArray(child.props.children)); + } else { + ret.push(child); } + }); + return ret; } - var InputNumber = function (_Component) { - _inherits(InputNumber, _Component); + /***/ }), + /* 120 */ + /***/ (function(module, exports, __webpack_require__) { - function InputNumber(props) { - _classCallCheck(this, InputNumber); + // optional / simple context binding + var aFunction = __webpack_require__(588); + module.exports = function (fn, that, length) { + aFunction(fn); + if (that === undefined) return fn; + switch (length) { + case 1: return function (a) { + return fn.call(that, a); + }; + case 2: return function (a, b) { + return fn.call(that, a, b); + }; + case 3: return function (a, b, c) { + return fn.call(that, a, b, c); + }; + } + return function (/* ...args */) { + return fn.apply(that, arguments); + }; + }; - // 初始化状态,加减按钮是否可用,根据当前值判断 - var _this = _possibleConstructorReturn(this, _Component.call(this, props)); + /***/ }), + /* 121 */ + /***/ (function(module, exports, __webpack_require__) { - _initialiseProps.call(_this); + // 7.1.1 ToPrimitive(input [, PreferredType]) + var isObject = __webpack_require__(52); + // instead of the ES6 spec version, we didn't implement @@toPrimitive case + // and the second argument - flag - preferred type is a string + module.exports = function (it, S) { + if (!isObject(it)) return it; + var fn, val; + if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; + if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; + if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; + throw TypeError("Can't convert object to primitive value"); + }; - var data = _this.judgeValue(props); - _this.state = { - value: data.value, - minusDisabled: data.minusDisabled, - plusDisabled: data.plusDisabled, - showValue: toThousands(data.value) - }; - _this.timer = null; - _this.focus = false; - _this.selectionStart = 0; - return _this; - } + /***/ }), + /* 122 */ + /***/ (function(module, exports) { - // unThousands = (number) =>{ - // if(!number || number === "")return number; - // number = number.toString(); - // return number.replace(new RegExp(this.props.formatSymbol,'g'),''); - // // return number.replace(/\,/g,''); - // } + var toString = {}.toString; - /** - * 校验value - * @param {*} props - * @param {原来的值} oldValue - */ + module.exports = function (it) { + return toString.call(it).slice(8, -1); + }; - InputNumber.prototype.componentDidMount = function componentDidMount() { - this.setState({ - value: this.props.value, - showValue: toThousands(this.props.value) - }); - }; + /***/ }), + /* 123 */ + /***/ (function(module, exports) { - InputNumber.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - if (this.focus) { - if (nextProps.value == Infinity || nextProps.value == -Infinity) {} else { - this.setState({ - value: nextProps.value, - showValue: toThousands(nextProps.value) - }); - } - } else { - var data = this.judgeValue(nextProps, this.state.value); - this.setState({ - value: data.value, - showValue: toThousands(data.value), - minusDisabled: data.minusDisabled, - plusDisabled: data.plusDisabled - }); - } - }; + // 7.2.1 RequireObjectCoercible(argument) + module.exports = function (it) { + if (it == undefined) throw TypeError("Can't call method on " + it); + return it; + }; - InputNumber.prototype.ComponentWillUnMount = function ComponentWillUnMount() { - this.clear(); - }; - /** - * @memberof InputNumber - * type 是否要四舍五入(此参数无效,超长不让输入) - */ + /***/ }), + /* 124 */ + /***/ (function(module, exports) { - /** - * 恢复科学技术法的问题 - */ + // 7.1.4 ToInteger + var ceil = Math.ceil; + var floor = Math.floor; + module.exports = function (it) { + return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); + }; - /** - * 设置增加减少按钮是否可用 - */ - /** - * 减法 - */ + /***/ }), + /* 125 */ + /***/ (function(module, exports, __webpack_require__) { - /** - * 加法 - */ + var shared = __webpack_require__(126)('keys'); + var uid = __webpack_require__(89); + module.exports = function (key) { + return shared[key] || (shared[key] = uid(key)); + }; - /** - * 分离小数和整数 - * @param value - * @returns {*} - */ + /***/ }), + /* 126 */ + /***/ (function(module, exports, __webpack_require__) { + var core = __webpack_require__(25); + var global = __webpack_require__(39); + var SHARED = '__core-js_shared__'; + var store = global[SHARED] || (global[SHARED] = {}); - InputNumber.prototype.render = function render() { - var _classes, - _this2 = this; + (module.exports = function (key, value) { + return store[key] || (store[key] = value !== undefined ? value : {}); + })('versions', []).push({ + version: core.version, + mode: __webpack_require__(88) ? 'pure' : 'global', + copyright: '© 2019 Denis Pushkarev (zloirock.ru)' + }); - var _props = this.props, - toThousands = _props.toThousands, - minusRight = _props.minusRight, - max = _props.max, - min = _props.min, - step = _props.step, - disabled = _props.disabled, - clsPrefix = _props.clsPrefix, - className = _props.className, - delay = _props.delay, - onBlur = _props.onBlur, - onFocus = _props.onFocus, - iconStyle = _props.iconStyle, - autoWidth = _props.autoWidth, - onChange = _props.onChange, - format = _props.format, - precision = _props.precision, - toNumber = _props.toNumber, - others = _objectWithoutProperties(_props, ['toThousands', 'minusRight', 'max', 'min', 'step', 'disabled', 'clsPrefix', 'className', 'delay', 'onBlur', 'onFocus', 'iconStyle', 'autoWidth', 'onChange', 'format', 'precision', 'toNumber']); - var classes = (_classes = {}, _defineProperty(_classes, clsPrefix + '-auto', autoWidth), _defineProperty(_classes, '' + clsPrefix, true), _defineProperty(_classes, clsPrefix + '-lg', others.size === "lg"), _defineProperty(_classes, clsPrefix + '-sm', others.size === "sm"), _classes); + /***/ }), + /* 127 */ + /***/ (function(module, exports) { - var _state = this.state, - value = _state.value, - minusDisabled = _state.minusDisabled, - plusDisabled = _state.plusDisabled, - showValue = _state.showValue; + // IE 8- don't enum bug keys + module.exports = ( + 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' + ).split(','); - value = precision != null && !this.focus ? this.getPrecision(value) : value; - value = format && !this.focus ? format(value) : value; - value = String(value).indexOf("e") !== -1 ? this.getFullNum(value) : value; - if (minusRight && String(value).indexOf('-') != -1) { - value = String(value).replace("-", "") + "-"; - } - var disabledCursor = disabled ? ' disabled-cursor' : ''; - var disabledCon = disabled ? ' disabled-con' : ''; - return _react2["default"].createElement( - 'div', - { className: clsPrefix + '-out' }, - iconStyle === 'double' ? _react2["default"].createElement( - _beeInputGroup2["default"], - { className: (0, _classnames2["default"])(className, classes, disabledCon) }, - _react2["default"].createElement( - _beeInputGroup2["default"].Addon, - { - // onClick={()=>{minusDisabled?'':this.handleBtnClick('down')}} - className: (minusDisabled && 'disabled') + disabledCursor, - onMouseDown: this.handleReduceMouseDown, - onMouseLeave: this.clear, - onMouseUp: this.clear }, - '-' - ), - _react2["default"].createElement(_beeFormControl2["default"], _extends({}, others, { - value: toThousands ? showValue : value, - disabled: disabled, - onBlur: this.handleBlur, - onFocus: this.handleFocus, - onChange: this.handleChange, - ref: function ref(_ref) { - return _this2.input = _ref; - } - })), - _react2["default"].createElement( - _beeInputGroup2["default"].Addon, - { - // onClick={()=>{plusDisabled?'':this.handleBtnClick('up')}} - className: (plusDisabled && 'disabled') + disabledCursor, - onMouseDown: this.handlePlusMouseDown, - onMouseLeave: this.clear, - onMouseUp: this.clear }, - '+' - ) - ) : _react2["default"].createElement( - _beeInputGroup2["default"], - { - className: (0, _classnames2["default"])(className, classes, disabledCon), - simple: true - }, - _react2["default"].createElement(_beeFormControl2["default"], _extends({}, others, { - value: toThousands ? showValue : value, - disabled: disabled, - onBlur: this.handleBlur, - onFocus: this.handleFocus, - onChange: this.handleChange, - ref: function ref(_ref2) { - return _this2.input = _ref2; - } - })), - _react2["default"].createElement( - _beeInputGroup2["default"].Button, - null, - _react2["default"].createElement( - 'div', - { className: (0, _classnames2["default"])("icon-group") }, - _react2["default"].createElement( - 'span', - { - // onClick={()=>{plusDisabled?'':this.handleBtnClick('up')}} - onMouseDown: this.handlePlusMouseDown, - onMouseLeave: this.clear, - onMouseUp: this.clear, - className: (0, _classnames2["default"])('plus', { 'disabled': plusDisabled, 'disabled-cursor': disabledCursor }) }, - _react2["default"].createElement('span', { className: 'uf uf-arrow-up' }) - ), - _react2["default"].createElement( - 'span', - { - // onClick={()=> minusDisabled?'':this.handleBtnClick('down')} - onMouseDown: this.handleReduceMouseDown, - onMouseLeave: this.clear, - onMouseUp: this.clear, - className: (0, _classnames2["default"])("reduce", { 'disabled': minusDisabled, 'disabled-cursor': disabledCursor }) }, - _react2["default"].createElement('span', { className: ' uf uf-arrow-down' }) - ) - ) - ) - ) - ); - }; - return InputNumber; - }(_react.Component); + /***/ }), + /* 128 */ + /***/ (function(module, exports) { + + exports.f = Object.getOwnPropertySymbols; - var _initialiseProps = function _initialiseProps() { - var _this3 = this; - this.judgeValue = function (props, oldValue) { - var currentValue = void 0; - var currentMinusDisabled = false; - var currentPlusDisabled = false; - var value = props.value, - min = props.min, - max = props.max, - precision = props.precision, - onChange = props.onChange, - displayCheckPrompt = props.displayCheckPrompt; + /***/ }), + /* 129 */ + /***/ (function(module, exports, __webpack_require__) { - if (props.minusRight) { - value = value.toString(); - if (value.indexOf('-') != -1) { - //所有位置的负号转到前边 - value = value.replace('-', ''); - value = '-' + value; - } - value = Number(value); - } - if (value != undefined && value != null) { - if (value === '') { - currentValue = ''; - return { - value: '', - minusDisabled: false, - plusDisabled: false - }; - } else { - currentValue = Number(value) || 0; - } - } //lse if (min&&(value!='')) {//mdd中提出bug - //currentValue = min; - //} - else if (value === '0' || value === 0) { - currentValue = 0; - } else { - //NaN - if (oldValue || oldValue === 0 || oldValue === '0') { - currentValue = oldValue; - } else { - //value为空 - return { - value: '', - minusDisabled: false, - plusDisabled: false - }; - } - } - if (currentValue == -Infinity) { - return { - value: min, - minusDisabled: true, - plusDisabled: false - }; - } - if (currentValue == Infinity) { - return { - value: max, - minusDisabled: false, - plusDisabled: true - }; - } - var local = (0, _tool.getComponentLocale)(props, _this3.context, 'InputNumber', function () { - return _i18n2["default"]; - }); - if (currentValue <= min) { - if (displayCheckPrompt) prompt(local['msgMin']); - currentMinusDisabled = true; - currentValue = min; - } - if (currentValue >= max) { - if (displayCheckPrompt) prompt(local['msgMax']); - currentPlusDisabled = true; - currentValue = max; - } + // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) + var anObject = __webpack_require__(51); + var dPs = __webpack_require__(599); + var enumBugKeys = __webpack_require__(127); + var IE_PROTO = __webpack_require__(125)('IE_PROTO'); + var Empty = function () { /* empty */ }; + var PROTOTYPE = 'prototype'; - if (props.hasOwnProperty('precision')) { - // currentValue = Number(currentValue).toFixed(precision); - currentValue = _this3.getPrecision(currentValue); - } - if (props.minusRight) { - currentValue = currentValue.toString(); - if (currentValue.indexOf('-') != -1) { - //负号转到后边 - currentValue = currentValue.replace('-', ''); - currentValue = currentValue + '-'; - } - } + // Create object with fake `null` prototype: use iframe Object with cleared prototype + var createDict = function () { + // Thrash, waste and sodomy: IE GC bug + var iframe = __webpack_require__(214)('iframe'); + var i = enumBugKeys.length; + var lt = '<'; + var gt = '>'; + var iframeDocument; + iframe.style.display = 'none'; + __webpack_require__(600).appendChild(iframe); + iframe.src = 'javascript:'; // eslint-disable-line no-script-url + // createDict = iframe.contentWindow.Object; + // html.removeChild(iframe); + iframeDocument = iframe.contentWindow.document; + iframeDocument.open(); + iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); + iframeDocument.close(); + createDict = iframeDocument.F; + while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; + return createDict(); + }; - return { - value: currentValue, - minusDisabled: currentMinusDisabled, - plusDisabled: currentPlusDisabled - }; - }; + module.exports = Object.create || function create(O, Properties) { + var result; + if (O !== null) { + Empty[PROTOTYPE] = anObject(O); + result = new Empty(); + Empty[PROTOTYPE] = null; + // add "__proto__" for Object.getPrototypeOf polyfill + result[IE_PROTO] = O; + } else result = createDict(); + return Properties === undefined ? result : dPs(result, Properties); + }; - this.numToFixed = function (value, fixed, type) { - value = String(value); - if (!value && value !== "0") return value; - if (!fixed && String(fixed) !== "0") return value; - var preIndex = value.indexOf("."); - if (value.indexOf(".") === -1) return value; - preIndex++; - var endIndex = preIndex + fixed; - var precValue = value.substr(preIndex, endIndex) + "0000000000"; - if (type) { - return Number(value).toFixed(fixed); - } - return value.split(".")[0] + "." + precValue.substr(0, fixed); - }; - this.handleChange = function (value) { - var selectionStart = _this3.input.selectionStart == undefined ? _this3.input.input.selectionStart : _this3.input.selectionStart; - _this3.selectionStart = selectionStart; - var _props2 = _this3.props, - onChange = _props2.onChange, - toNumber = _props2.toNumber, - minusRight = _props2.minusRight; + /***/ }), + /* 130 */ + /***/ (function(module, exports, __webpack_require__) { - if (value === '') { - onChange && onChange(value); - _this3.setState({ - value: value, - showValue: '' - }); - return; - } - // value = this.unThousands(value); - if (minusRight) { - if (value.match(/-/g) && value.match(/-/g).length > 1) return; - } - if (isNaN(value) && value !== '.' && value !== '-') return; - if (value.indexOf(".") !== -1) { - //小数最大值处理 - var prec = String(value.split(".")[1]).replace("-", ""); - if (_this3.props.precision === 0 && (prec === "" || prec != "")) return; - if (_this3.props.precision && prec.length > _this3.props.precision) return; - if (prec.length > 8) return; - } - _this3.setState({ - value: value, - showValue: toThousands(value) - }); - if (value === '-') { - onChange && onChange(value); - } else if (value == '.' || value.indexOf('.') == value.length - 1) { - //当输入小数点的时候 - onChange && onChange(value); - } else if (value[value.indexOf('.') + 1] == 0) { - //当输入 d.0 的时候,不转换Number - onChange && onChange(value); - } else { - toNumber ? onChange && onChange(Number(value)) : onChange && onChange(value); - } - if (_this3.props.toThousands) { - var stateShowValue = toThousands(_this3.state.value); - var showValue = toThousands(value); - var addNumber = 0; - var delNumber = 0; - var reg = /[0-9]/; - for (var i = 0; i < selectionStart; i++) { - if (!reg.test(showValue[i])) addNumber += 1; - } - for (var j = 0; j < selectionStart; j++) { - if (stateShowValue[j]) { - if (!reg.test(stateShowValue[j])) delNumber += 1; - } - } - var position = selectionStart + addNumber - delNumber; - setCaretPosition(_this3.input && _this3.input.input, position, true); - } - }; + var def = __webpack_require__(40).f; + var has = __webpack_require__(47); + var TAG = __webpack_require__(30)('toStringTag'); - this.handleFocus = function (value, e) { - _this3.focus = true; - var _props3 = _this3.props, - onFocus = _props3.onFocus, - min = _props3.min, - max = _props3.max; + module.exports = function (it, tag, stat) { + if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag }); + }; - onFocus && onFocus(_this3.getPrecision(_this3.state.value), e); - }; - this.getFullNum = function (num) { - //处理非数字 - if (isNaN(num)) { - return num; - }; + /***/ }), + /* 131 */ + /***/ (function(module, exports) { - //处理不需要转换的数字 - var str = '' + num; - if (!/e/i.test(str)) { - return num; - }; - var _precision = _this3.props.precision ? _this3.props.precision : 18; - return Number(num).toFixed(_precision).replace(/\.?0+$/, ""); - }; + /** + * Checks if `value` is classified as an `Array` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an array, else `false`. + * @example + * + * _.isArray([1, 2, 3]); + * // => true + * + * _.isArray(document.body.children); + * // => false + * + * _.isArray('abc'); + * // => false + * + * _.isArray(_.noop); + * // => false + */ + var isArray = Array.isArray; - this.handleBlur = function (v, e) { - _this3.focus = false; - var _props4 = _this3.props, - onBlur = _props4.onBlur, - precision = _props4.precision, - onChange = _props4.onChange, - toNumber = _props4.toNumber, - max = _props4.max, - min = _props4.min, - displayCheckPrompt = _props4.displayCheckPrompt, - minusRight = _props4.minusRight, - round = _props4.round; + module.exports = isArray; - var local = (0, _tool.getComponentLocale)(_this3.props, _this3.context, 'InputNumber', function () { - return _i18n2["default"]; - }); - v = _this3.state.value; //在onBlur的时候不需要活输入框的只,而是要获取state中的值,因为有format的时候就会有问题。 - if (v === '' || !v) { - _this3.setState({ - value: v - }); - onChange && onChange(v); - onBlur && onBlur(v, e); - return; - } - // let value = this.unThousands(v); - var value = _this3.numToFixed(v, precision, round); - if (minusRight) { - if (value.indexOf('-') != -1) { - //所有位置的负号转到前边 - value = value.replace('-', ''); - value = '-' + value; - } - } - value = isNaN(Number(value)) ? 0 : Number(value); - if (value > max) { - if (displayCheckPrompt) prompt(local['msgMax']); - value = max; - } - if (value < min) { - if (displayCheckPrompt) prompt(local['msgMin']); - value = min; - } - if (_this3.props.hasOwnProperty('precision')) { - // value = value.toFixed(precision); - value = _this3.getPrecision(value); - } - value = value.toString(); - if (minusRight && value.indexOf('-') != -1) { - //负号转到后边 - value = value.replace('-', ''); - value = value + '-'; - } - _this3.setState({ - value: value, - showValue: toThousands(value) - }); - _this3.detailDisable(value); - if (toNumber && !minusRight) { - onChange && onChange(value); - onBlur && onBlur(value, e); - } else { - onChange && onChange(value); - onBlur && onBlur(value, e); - } - }; - this.detailDisable = function (value) { - var _props5 = _this3.props, - max = _props5.max, - min = _props5.min, - step = _props5.step; + /***/ }), + /* 132 */ + /***/ (function(module, exports, __webpack_require__) { + var root = __webpack_require__(71); - if (value >= max || Number(value) + Number(step) > max) { - _this3.setState({ - plusDisabled: true - }); - } else { - _this3.setState({ - plusDisabled: false - }); - } - if (value <= min || value - step < min) { - _this3.setState({ - minusDisabled: true - }); - } else { - _this3.setState({ - minusDisabled: false - }); - } - }; + /** Built-in value references. */ + var Symbol = root.Symbol; - this.minus = function (value) { - var _props6 = _this3.props, - min = _props6.min, - max = _props6.max, - step = _props6.step, - onChange = _props6.onChange, - toNumber = _props6.toNumber; + module.exports = Symbol; - value = value === '-' ? 0 : value; - if (typeof min === "undefined") { - value = _this3.detail(value, step, 'reduce'); - } else { - if (value < min) { - value = min; - } else { - var reducedValue = _this3.detail(value, step, 'reduce'); - if (reducedValue >= min) { - value = reducedValue; - } - } - } - if (value > max) { - value = max; - } + /***/ }), + /* 133 */ + /***/ (function(module, exports, __webpack_require__) { - _this3.setState({ - value: value, - showValue: toThousands(value) - }, function () { - _this3.input.input.focus && _this3.input.input.focus(); - }); - toNumber ? onChange && onChange(Number(value)) : onChange && onChange(value); - _this3.handleBtnClick('down', value); - _this3.detailDisable(value); - }; + var baseIsNative = __webpack_require__(650), + getValue = __webpack_require__(655); - this.plus = function (value) { - var _props7 = _this3.props, - max = _props7.max, - min = _props7.min, - step = _props7.step, - onChange = _props7.onChange, - toNumber = _props7.toNumber; + /** + * Gets the native function at `key` of `object`. + * + * @private + * @param {Object} object The object to query. + * @param {string} key The key of the method to get. + * @returns {*} Returns the function if it's native, else `undefined`. + */ + function getNative(object, key) { + var value = getValue(object, key); + return baseIsNative(value) ? value : undefined; + } - value = value === '-' ? 0 : value; - if (typeof max === "undefined") { - value = _this3.detail(value, step, 'add'); - } else { - if (value > max) { - value = max; - } else { - var addedValue = _this3.detail(value, step, 'add'); - if (addedValue <= max) { - value = addedValue; - } - } - } - if (value < min) { - value = min; - } - _this3.setState({ - value: value, - showValue: toThousands(value) - }, function () { - _this3.input.input.focus && _this3.input.input.focus(); - }); - toNumber ? onChange && onChange(Number(value)) : onChange && onChange(value); - _this3.handleBtnClick('up', value); - _this3.detailDisable(value); - }; + module.exports = getNative; - this.detail = function (value, step, type) { - var precision = _this3.props.precision; + /***/ }), + /* 134 */ + /***/ (function(module, exports) { - var valueFloat = _this3.separate(value); - var stepFloat = _this3.separate(step); + /** + * Performs a + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * comparison between two values to determine if they are equivalent. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {boolean} Returns `true` if the values are equivalent, else `false`. + * @example + * + * var object = { 'a': 1 }; + * var other = { 'a': 1 }; + * + * _.eq(object, object); + * // => true + * + * _.eq(object, other); + * // => false + * + * _.eq('a', 'a'); + * // => true + * + * _.eq('a', Object('a')); + * // => false + * + * _.eq(NaN, NaN); + * // => true + */ + function eq(value, other) { + return value === other || (value !== value && other !== other); + } - var ans = void 0; - var stepFloatLength = stepFloat.toString().length; - var valueFloatLength = valueFloat.toString().length; + module.exports = eq; - if (typeof precision === 'undefined') { - precision = Math.max(stepFloatLength, valueFloatLength); - } - var coefficient = Math.pow(10, Math.abs(stepFloatLength - valueFloatLength)); - if (type === 'add') { - ans = (value * coefficient + step * coefficient) / coefficient; - } else { - ans = (value * coefficient - step * coefficient) / coefficient; - } - return ans.toFixed(precision); - }; + /***/ }), + /* 135 */ + /***/ (function(module, exports, __webpack_require__) { - this.separate = function (value) { - if (value == null || value == undefined) { - return ""; - } else { - value = value.toString(); - if (value.indexOf('.') > -1) { - return value.split('.')[1]; - } else { - return ""; - } - } - }; + "use strict"; - this.clear = function () { - if (_this3.timer) { - clearTimeout(_this3.timer); - } - }; - this.handlePlusMouseDown = function (e) { - e.preventDefault && e.preventDefault(); - var _props8 = _this3.props, - delay = _props8.delay, - disabled = _props8.disabled; - var value = _this3.state.value; + exports.__esModule = true; + exports.default = createChainableTypeChecker; + /** + * Copyright 2013-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ - if (disabled) return; - _this3.plus(value); - _this3.clear(); - _this3.timer = setTimeout(function () { - _this3.handlePlusMouseDown(e); - }, delay); - }; + // Mostly taken from ReactPropTypes. - this.handleReduceMouseDown = function (e) { - e.preventDefault && e.preventDefault(); - var _props9 = _this3.props, - delay = _props9.delay, - disabled = _props9.disabled; - var value = _this3.state.value; + /* This source code is quoted from rc-util. + * homepage: https://github.com/react-component/util + */ - if (disabled) return; - _this3.minus(value); - _this3.clear(); - _this3.timer = setTimeout(function () { - _this3.handleReduceMouseDown(e); - }, delay); - }; + function createChainableTypeChecker(validate) { + function checkType(isRequired, props, propName, componentName, location, propFullName) { + var componentNameSafe = componentName || '<>'; + var propFullNameSafe = propFullName || propName; - this.getPrecision = function (value) { - if (value == null || value == undefined) return value; - if (!value && value === "") return value; - value = String(value); - value = value.indexOf("e") !== -1 ? _this3.getFullNum(value) : value; - var precision = _this3.props.precision; + if (props[propName] == null) { + if (isRequired) { + return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); + } - if (precision === 0) return value; - if (precision == undefined || value.indexOf(".") !== -1 && String(value.split(".")[1]).length === precision) { - return value; - } - var before = value.substring(0, 1), - len = value.length, - after = value.substring(len - 1, len); - before = before === "-" ? before : ""; - after = after === "-" ? after : ""; - //是科学计数法,不replace - - if (before) value = value.substring(1, len - 1); - if (after) value = value.substring(0, len - 1); - // value = value.replace("-",''); - var precV = "000000000000000000000000000000000000000000000000000000000000000000000000"; - if (value.indexOf(".") === -1) { - precV = precV.substr(0, precision); - precV = precV ? "." + precV : precV; - if (!isNaN(value) && (value.indexOf('-') != -1 || value.indexOf('+') != -1) && value.indexOf('e') != -1) {//是科学计数法,不拼接0000000 + return null; + } - } else { - value = value + precV; - } - } - return before + Number(value).toFixed(precision) + after; - }; + for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { + args[_key - 6] = arguments[_key]; + } - this.handleBtnClick = function (type, value) { - _this3.props.handleBtnClick(type, value); - }; - }; + return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); + } - ; + var chainedCheckType = checkType.bind(null, false); + chainedCheckType.isRequired = checkType.bind(null, true); - InputNumber.defaultProps = defaultProps; - InputNumber.propTypes = propTypes; - InputNumber.contextTypes = { - beeLocale: _propTypes2["default"].object - }; - exports["default"] = InputNumber; - module.exports = exports['default']; + return chainedCheckType; + } /***/ }), - /* 239 */ + /* 136 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -131283,57 +120652,79 @@ value: true }); - var _Message = __webpack_require__(697); + var _Select = __webpack_require__(743); - var _Message2 = _interopRequireDefault(_Message); + var _Select2 = _interopRequireDefault(_Select); + + var _Option = __webpack_require__(146); + + var _Option2 = _interopRequireDefault(_Option); + + var _PropTypes = __webpack_require__(264); + + var _OptGroup = __webpack_require__(265); + + var _OptGroup2 = _interopRequireDefault(_OptGroup); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - exports["default"] = _Message2["default"]; + _Select2["default"].Option = _Option2["default"]; + _Select2["default"].OptGroup = _OptGroup2["default"]; + exports["default"] = _Select2["default"]; module.exports = exports['default']; /***/ }), - /* 240 */ + /* 137 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; exports.__esModule = true; + exports.default = createChainableTypeChecker; /** - * This source code is quoted from rc-util. + * Copyright 2013-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + + // Mostly taken from ReactPropTypes. + + /* This source code is quoted from rc-util. * homepage: https://github.com/react-component/util */ - function createChainedFunction() { - for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) { - funcs[_key] = arguments[_key]; - } - return funcs.filter(function (f) { - return f != null; - }).reduce(function (acc, f) { - if (typeof f !== 'function') { - throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.'); + function createChainableTypeChecker(validate) { + function checkType(isRequired, props, propName, componentName, location, propFullName) { + var componentNameSafe = componentName || '<>'; + var propFullNameSafe = propFullName || propName; + + if (props[propName] == null) { + if (isRequired) { + return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); + } + + return null; } - if (acc === null) { - return f; + for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { + args[_key - 6] = arguments[_key]; } - return function chainedFunction() { - for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - args[_key2] = arguments[_key2]; - } + return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); + } - acc.apply(this, args); - f.apply(this, args); - }; - }, null); + var chainedCheckType = checkType.bind(null, false); + chainedCheckType.isRequired = checkType.bind(null, true); + + return chainedCheckType; } - exports.default = createChainedFunction; /***/ }), - /* 241 */ + /* 138 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -131342,7 +120733,7 @@ exports.__esModule = true; exports.default = addEventListenerWrap; - var _addDomEventListener = __webpack_require__(12); + var _addDomEventListener = __webpack_require__(16); var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener); @@ -131365,547 +120756,568 @@ } /***/ }), - /* 242 */ - /***/ (function(module, exports) { - - module.exports = function(arr, obj){ - if (arr.indexOf) return arr.indexOf(obj); - for (var i = 0; i < arr.length; ++i) { - if (arr[i] === obj) return i; - } - return -1; - }; - - /***/ }), - /* 243 */ - /***/ (function(module, exports, __webpack_require__) { - - "use strict"; - - - Object.defineProperty(exports, "__esModule", { - value: true - }); - var util = { - isAppearSupported: function isAppearSupported(props) { - return props.transitionName && props.transitionAppear || props.animation.appear; - }, - isEnterSupported: function isEnterSupported(props) { - return props.transitionName && props.transitionEnter || props.animation.enter; - }, - isLeaveSupported: function isLeaveSupported(props) { - return props.transitionName && props.transitionLeave || props.animation.leave; - }, - allowAppearCallback: function allowAppearCallback(props) { - return props.transitionAppear || props.animation.appear; - }, - allowEnterCallback: function allowEnterCallback(props) { - return props.transitionEnter || props.animation.enter; - }, - allowLeaveCallback: function allowLeaveCallback(props) { - return props.transitionLeave || props.animation.leave; - } - }; - exports["default"] = util; - module.exports = exports["default"]; - - /***/ }), - /* 244 */ + /* 139 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; - Object.defineProperty(exports, "__esModule", { - value: true - }); + exports.__esModule = true; + exports.default = createChainableTypeChecker; + /** + * Copyright 2013-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + // Mostly taken from ReactPropTypes. - var _classnames = __webpack_require__(2); + /* This source code is quoted from rc-util. + * homepage: https://github.com/react-component/util + */ - var _classnames2 = _interopRequireDefault(_classnames); + function createChainableTypeChecker(validate) { + function checkType(isRequired, props, propName, componentName, location, propFullName) { + var componentNameSafe = componentName || '<>'; + var propFullNameSafe = propFullName || propName; - var _react = __webpack_require__(0); + if (props[propName] == null) { + if (isRequired) { + return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); + } - var _react2 = _interopRequireDefault(_react); + return null; + } - var _propTypes = __webpack_require__(1); + for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { + args[_key - 6] = arguments[_key]; + } - var _propTypes2 = _interopRequireDefault(_propTypes); + return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var chainedCheckType = checkType.bind(null, false); + chainedCheckType.isRequired = checkType.bind(null, true); - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + return chainedCheckType; + } - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + /***/ }), + /* 140 */ + /***/ (function(module, exports, __webpack_require__) { - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + "use strict"; - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + exports.__esModule = true; - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + var _iterator = __webpack_require__(774); - var propTypes = { + var _iterator2 = _interopRequireDefault(_iterator); - colors: _propTypes2["default"].oneOf(['', 'dark', 'success', 'info', 'warning', 'danger', 'primary']), + var _symbol = __webpack_require__(780); - disabled: _propTypes2["default"].bool, + var _symbol2 = _interopRequireDefault(_symbol); - inverse: _propTypes2["default"].bool + var _typeof = typeof _symbol2.default === "function" && typeof _iterator2.default === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj; }; - }; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var defaultProps = { - disabled: false, - inverse: false, - colors: 'primary', - clsPrefix: 'u-checkbox', - defaultChecked: false, - onClick: function onClick() {} + exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) { + return typeof obj === "undefined" ? "undefined" : _typeof(obj); + } : function (obj) { + return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj); }; - var clsPrefix = 'u-checkbox'; - - var Checkbox = function (_React$Component) { - _inherits(Checkbox, _React$Component); - - function Checkbox(props) { - _classCallCheck(this, Checkbox); - - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); - - _initialiseProps.call(_this); - - _this.state = { - checked: 'checked' in props ? props.checked : props.defaultChecked, - focused: false - }; - _this.doubleClickFlag = null; - return _this; - } - - Checkbox.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - if ('checked' in nextProps) { - this.setState({ - checked: nextProps.checked - }); - } - }; - - Checkbox.prototype.render = function render() { - var _classes; - - var _props = this.props, - disabled = _props.disabled, - inverse = _props.inverse, - colors = _props.colors, - size = _props.size, - className = _props.className, - indeterminate = _props.indeterminate, - onClick = _props.onClick, - children = _props.children, - checked = _props.checked, - clsPrefix = _props.clsPrefix, - onDoubleClick = _props.onDoubleClick, - onChange = _props.onChange, - others = _objectWithoutProperties(_props, ['disabled', 'inverse', 'colors', 'size', 'className', 'indeterminate', 'onClick', 'children', 'checked', 'clsPrefix', 'onDoubleClick', 'onChange']); - - var input = _react2["default"].createElement('input', _extends({}, others, { - type: 'checkbox', - disabled: this.props.disabled, - onFocus: this.handleFocus, - onBlur: this.handleBlur - })); - - var classes = (_classes = {}, _defineProperty(_classes, clsPrefix + '-focused', this.state.focused), _defineProperty(_classes, 'is-checked', this.state.checked), _defineProperty(_classes, 'disabled', disabled), _classes); - - if (inverse) { - classes[clsPrefix + '-inverse'] = true; - } - - if (colors) { - classes[clsPrefix + '-' + colors] = true; - } - - if (size) { - classes[clsPrefix + '-' + size] = true; - } - if (!checked && indeterminate) { - classes[clsPrefix + '-indeterminate'] = true; - } + /***/ }), + /* 141 */ + /***/ (function(module, exports, __webpack_require__) { - var classNames = (0, _classnames2["default"])(clsPrefix, classes); + exports.f = __webpack_require__(30); - return _react2["default"].createElement( - 'label', - { - className: (0, _classnames2["default"])(classNames, className), - onDoubleClick: this.handledbClick, - onClick: this.changeState }, - input, - _react2["default"].createElement( - 'label', - { className: clsPrefix + '-label' }, - children - ) - ); - }; - return Checkbox; - }(_react2["default"].Component); + /***/ }), + /* 142 */ + /***/ (function(module, exports, __webpack_require__) { - var _initialiseProps = function _initialiseProps() { - var _this2 = this; + var global = __webpack_require__(39); + var core = __webpack_require__(25); + var LIBRARY = __webpack_require__(88); + var wksExt = __webpack_require__(141); + var defineProperty = __webpack_require__(40).f; + module.exports = function (name) { + var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {}); + if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) }); + }; - this.changeState = function (e) { - var props = _this2.props; - var checked = _this2.state.checked; - clearTimeout(_this2.doubleClickFlag); - if (props.onClick instanceof Function) { - props.onClick(e); - } - if (props.onDoubleClick instanceof Function) { - _this2.doubleClickFlag = setTimeout(function () { - //do function在此处写单击事件要执行的代码 - _this2.change(props, checked); - }, 300); - } else { - _this2.change(props, checked); - } - e.stopPropagation(); - e.preventDefault(); - //执行延时 - }; + /***/ }), + /* 143 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { - this.change = function (props, checked) { - if (props.disabled) { - return; - } - if (!('checked' in props)) { - _this2.setState({ - checked: !checked - }); - } + "use strict"; + /* harmony export (immutable) */ __webpack_exports__["a"] = contains; + function contains(root, n) { + var node = n; - if (props.onChange instanceof Function) { - props.onChange(!checked); - } - }; + while (node) { + if (node === root) { + return true; + } - this.handledbClick = function (e) { - var onDoubleClick = _this2.props.onDoubleClick; + node = node.parentNode; + } - clearTimeout(_this2.doubleClickFlag); - onDoubleClick && onDoubleClick(_this2.state.checked, e); - }; + return false; + } - this.handleFocus = function (e) { - if (e.target && e.target.type == 'checkbox') { - _this2.setState({ - focused: true - }); - } - }; + /***/ }), + /* 144 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { - this.handleBlur = function (e) { - if (e.target && e.target.type == 'checkbox') { - _this2.setState({ - focused: false - }); - } - }; - }; + "use strict"; + /* harmony export (immutable) */ __webpack_exports__["a"] = addEventListenerWrap; + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_add_dom_event_listener__ = __webpack_require__(16); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_add_dom_event_listener___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_add_dom_event_listener__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom__ = __webpack_require__(3); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_dom__); - Checkbox.propTypes = propTypes; - Checkbox.defaultProps = defaultProps; - exports["default"] = Checkbox; - module.exports = exports['default']; + function addEventListenerWrap(target, eventType, cb, option) { + /* eslint camelcase: 2 */ + var callback = __WEBPACK_IMPORTED_MODULE_1_react_dom___default.a.unstable_batchedUpdates ? function run(e) { + __WEBPACK_IMPORTED_MODULE_1_react_dom___default.a.unstable_batchedUpdates(cb, e); + } : cb; + return __WEBPACK_IMPORTED_MODULE_0_add_dom_event_listener___default()(target, eventType, callback, option); + } /***/ }), - /* 245 */ + /* 145 */ /***/ (function(module, exports) { - module.exports = function(module) { - if(!module.webpackPolyfill) { - module.deprecate = function() {}; - module.paths = []; - // module.parent = undefined by default - if(!module.children) module.children = []; - Object.defineProperty(module, "loaded", { - enumerable: true, - get: function() { - return module.l; - } - }); - Object.defineProperty(module, "id", { - enumerable: true, - get: function() { - return module.i; - } - }); - module.webpackPolyfill = 1; - } - return module; - }; + // mutationobserver-shim v0.3.3 (github.com/megawac/MutationObserver.js) + // Authors: Graeme Yeates (github.com/megawac) + /* + Shim for MutationObserver interface + Author: Graeme Yeates (github.com/megawac) + Repository: https://github.com/megawac/MutationObserver.js + License: WTFPL V2, 2004 (wtfpl.net). + Though credit and staring the repo will make me feel pretty, you can modify and redistribute as you please. + Attempts to follow spec (https://www.w3.org/TR/dom/#mutation-observers) as closely as possible for native javascript + See https://github.com/WebKit/webkit/blob/master/Source/WebCore/dom/MutationObserver.cpp for current webkit source c++ implementation + */ + window.MutationObserver||(window.MutationObserver=function(y){function z(a){this.i=[];this.m=a}function K(a){(function c(){var d=a.takeRecords();d.length&&a.m(d,a);a.h=setTimeout(c,z._period)})()}function r(a){var b={type:null,target:null,addedNodes:[],removedNodes:[],previousSibling:null,nextSibling:null,attributeName:null,attributeNamespace:null,oldValue:null},c;for(c in a)b[c]!==y&&a[c]!==y&&(b[c]=a[c]);return b}function L(a,b){var c=E(a,b);return function(d){var f=d.length;b.a&&3===a.nodeType&& + a.nodeValue!==c.a&&d.push(new r({type:"characterData",target:a,oldValue:c.a}));b.b&&c.b&&C(d,a,c.b,b.f);if(b.c||b.g)var m=M(d,a,c,b);if(m||d.length!==f)c=E(a,b)}}function N(a,b){return b.value}function O(a,b){return"style"!==b.name?b.value:a.style.cssText}function C(a,b,c,d){for(var f={},m=b.attributes,k,g,p=m.length;p--;)k=m[p],g=k.name,d&&d[g]===y||(F(b,k)!==c[g]&&a.push(r({type:"attributes",target:b,attributeName:g,oldValue:c[g],attributeNamespace:k.namespaceURI})),f[g]=!0);for(g in c)f[g]||a.push(r({target:b, + type:"attributes",attributeName:g,oldValue:c[g]}))}function M(a,b,c,d){function f(g,p,t,q,x){var A=g.length-1;x=-~((A-x)/2);for(var h,l,e;e=g.pop();)h=t[e.j],l=q[e.l],d.c&&x&&Math.abs(e.j-e.l)>=A&&(a.push(r({type:"childList",target:p,addedNodes:[h],removedNodes:[h],nextSibling:h.nextSibling,previousSibling:h.previousSibling})),x--),d.b&&l.b&&C(a,h,l.b,d.f),d.a&&3===h.nodeType&&h.nodeValue!==l.a&&a.push(r({type:"characterData",target:h,oldValue:l.a})),d.g&&m(h,l)}function m(g,p){for(var t=g.childNodes, + q=p.c,x=t.length,A=q?q.length:0,h,l,e,n,v,B=0,w=0,u=0;w 0) { + return true; + } + } + return false; + } + + function splitBySeparators(string, separators) { + var reg = new RegExp('[' + separators.join() + ']'); + return string.split(reg).filter(function (token) { + return token; + }); + } + + function defaultFilterFn(input, child) { + if (child.props.disabled) { + return false; + } + var value = toArray(getPropValue(child, this.props.optionFilterProp)).join(''); + return value.toLowerCase().indexOf(input.toLowerCase()) > -1; + } + + function validateOptionValue(value, props) { + if (isSingleMode(props) || isMultiple(props)) { + return; + } + if (typeof value !== 'string') { + throw new Error('Invalid `value` of type `' + (typeof value === 'undefined' ? 'undefined' : _typeof(value)) + '` supplied to Option, ' + 'expected `string` when `tags/combobox` is `true`.'); + } + } + + function saveRef(instance, name) { + return function (node) { + instance[name] = node; + }; } /***/ }), - /* 248 */ + /* 148 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; - exports.__esModule = true; - exports.default = addEventListenerWrap; + module.exports = __webpack_require__(818); - var _addDomEventListener = __webpack_require__(12); + /***/ }), + /* 149 */ + /***/ (function(module, exports, __webpack_require__) { - var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener); + "use strict"; - var _reactDom = __webpack_require__(3); - var _reactDom2 = _interopRequireDefault(_reactDom); + exports.__esModule = true; + exports.default = createChainableTypeChecker; + /** + * Copyright 2013-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + // Mostly taken from ReactPropTypes. - /** - * This source code is quoted from rc-util. + /* This source code is quoted from rc-util. * homepage: https://github.com/react-component/util */ - function addEventListenerWrap(target, eventType, cb) { - /* eslint camelcase: 2 */ - var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) { - _reactDom2.default.unstable_batchedUpdates(cb, e); - } : cb; - return (0, _addDomEventListener2.default)(target, eventType, callback); - } - /***/ }), - /* 249 */ - /***/ (function(module, exports, __webpack_require__) { + function createChainableTypeChecker(validate) { + function checkType(isRequired, props, propName, componentName, location, propFullName) { + var componentNameSafe = componentName || '<>'; + var propFullNameSafe = propFullName || propName; - "use strict"; + if (props[propName] == null) { + if (isRequired) { + return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); + } + return null; + } - Object.defineProperty(exports, "__esModule", { - value: true - }); - var util = { - isAppearSupported: function isAppearSupported(props) { - return props.transitionName && props.transitionAppear || props.animation.appear; - }, - isEnterSupported: function isEnterSupported(props) { - return props.transitionName && props.transitionEnter || props.animation.enter; - }, - isLeaveSupported: function isLeaveSupported(props) { - return props.transitionName && props.transitionLeave || props.animation.leave; - }, - allowAppearCallback: function allowAppearCallback(props) { - return props.transitionAppear || props.animation.appear; - }, - allowEnterCallback: function allowEnterCallback(props) { - return props.transitionEnter || props.animation.enter; - }, - allowLeaveCallback: function allowLeaveCallback(props) { - return props.transitionLeave || props.animation.leave; + for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { + args[_key - 6] = arguments[_key]; + } + + return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); } - }; - exports["default"] = util; - module.exports = exports["default"]; + + var chainedCheckType = checkType.bind(null, false); + chainedCheckType.isRequired = checkType.bind(null, true); + + return chainedCheckType; + } /***/ }), - /* 250 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + /* 150 */ + /***/ (function(module, exports, __webpack_require__) { "use strict"; - Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Menu__ = __webpack_require__(770); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__SubMenu__ = __webpack_require__(257); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__MenuItem__ = __webpack_require__(807); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__MenuItemGroup__ = __webpack_require__(810); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Divider__ = __webpack_require__(811); - /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "SubMenu", function() { return __WEBPACK_IMPORTED_MODULE_1__SubMenu__["a"]; }); - /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Item", function() { return __WEBPACK_IMPORTED_MODULE_2__MenuItem__["a"]; }); - /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MenuItem", function() { return __WEBPACK_IMPORTED_MODULE_2__MenuItem__["a"]; }); - /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MenuItemGroup", function() { return __WEBPACK_IMPORTED_MODULE_3__MenuItemGroup__["a"]; }); - /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "ItemGroup", function() { return __WEBPACK_IMPORTED_MODULE_3__MenuItemGroup__["a"]; }); - /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Divider", function() { return __WEBPACK_IMPORTED_MODULE_4__Divider__["a"]; }); - + exports.__esModule = true; + exports.default = createChainableTypeChecker; + /** + * Copyright 2013-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + // Mostly taken from ReactPropTypes. + /* This source code is quoted from rc-util. + * homepage: https://github.com/react-component/util + */ + function createChainableTypeChecker(validate) { + function checkType(isRequired, props, propName, componentName, location, propFullName) { + var componentNameSafe = componentName || '<>'; + var propFullNameSafe = propFullName || propName; + if (props[propName] == null) { + if (isRequired) { + return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); + } - /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__Menu__["a" /* default */]); + return null; + } - /***/ }), - /* 251 */ - /***/ (function(module, exports, __webpack_require__) { + for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { + args[_key - 6] = arguments[_key]; + } - // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) - var $keys = __webpack_require__(219); - var hiddenKeys = __webpack_require__(127).concat('length', 'prototype'); + return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); + } - exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { - return $keys(O, hiddenKeys); - }; + var chainedCheckType = checkType.bind(null, false); + chainedCheckType.isRequired = checkType.bind(null, true); + return chainedCheckType; + } /***/ }), - /* 252 */ + /* 151 */ /***/ (function(module, exports, __webpack_require__) { - var pIE = __webpack_require__(89); - var createDesc = __webpack_require__(65); - var toIObject = __webpack_require__(54); - var toPrimitive = __webpack_require__(121); - var has = __webpack_require__(47); - var IE8_DOM_DEFINE = __webpack_require__(216); - var gOPD = Object.getOwnPropertyDescriptor; + "use strict"; - exports.f = __webpack_require__(41) ? gOPD : function getOwnPropertyDescriptor(O, P) { - O = toIObject(O); - P = toPrimitive(P, true); - if (IE8_DOM_DEFINE) try { - return gOPD(O, P); - } catch (e) { /* empty */ } - if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); - }; + Object.defineProperty(exports, "__esModule", { + value: true + }); - /***/ }), - /* 253 */ - /***/ (function(module, exports, __webpack_require__) { + var _Dropdown = __webpack_require__(896); - __webpack_require__(792); - var $Object = __webpack_require__(24).Object; - module.exports = function create(P, D) { - return $Object.create(P, D); - }; + var _Dropdown2 = _interopRequireDefault(_Dropdown); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + exports["default"] = _Dropdown2["default"]; + module.exports = exports['default']; /***/ }), - /* 254 */ + /* 152 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -131914,1719 +121326,1842 @@ Object.defineProperty(exports, "__esModule", { value: true }); - exports.storeShape = undefined; + exports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = undefined; - var _propTypes = __webpack_require__(1); + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _propTypes2 = _interopRequireDefault(_propTypes); + var _react = __webpack_require__(0); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + var _react2 = _interopRequireDefault(_react); - var storeShape = exports.storeShape = _propTypes2.default.shape({ - subscribe: _propTypes2.default.func.isRequired, - setState: _propTypes2.default.func.isRequired, - getState: _propTypes2.default.func.isRequired - }); + var _reactDom = __webpack_require__(3); - /***/ }), - /* 255 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + var _reactDom2 = _interopRequireDefault(_reactDom); - "use strict"; - /* harmony export (immutable) */ __webpack_exports__["b"] = getActiveKey; - /* unused harmony export saveRef */ - /* unused harmony export SubPopupMenu */ - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(23); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(7); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(9); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(10); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends__ = __webpack_require__(8); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(0); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types__ = __webpack_require__(1); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_prop_types__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_mini_store__ = __webpack_require__(21); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_mini_store___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_mini_store__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__ = __webpack_require__(43); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_rc_util_es_createChainedFunction__ = __webpack_require__(256); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_classnames__ = __webpack_require__(2); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_classnames__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__util__ = __webpack_require__(58); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__DOMWrap__ = __webpack_require__(797); + var _properties = __webpack_require__(28); + var _properties2 = _interopRequireDefault(_properties); + var _on = __webpack_require__(17); + var _on2 = _interopRequireDefault(_on); + var _classnames = __webpack_require__(37); + var _classnames2 = _interopRequireDefault(_classnames); + var _propTypes = __webpack_require__(1); + var _propTypes2 = _interopRequireDefault(_propTypes); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - function allDisabled(arr) { - if (!arr.length) { - return true; - } - return arr.every(function (c) { - return !!c.props.disabled; - }); - } + var transitionEndEvent = _properties2["default"].end; - function updateActiveKey(store, menuId, activeKey) { - var _extends2; + //设置状态码 + var UNMOUNTED = exports.UNMOUNTED = 0; + var EXITED = exports.EXITED = 1; + var ENTERING = exports.ENTERING = 2; + var ENTERED = exports.ENTERED = 3; + var EXITING = exports.EXITING = 4; - var state = store.getState(); - store.setState({ - activeKey: __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({}, state.activeKey, (_extends2 = {}, _extends2[menuId] = activeKey, _extends2)) - }); - } + var propTypes = { + /** + * 是否触发动画 + */ + "in": _propTypes2["default"].bool, - function getEventKey(props) { - // when eventKey not available ,it's menu and return menu id '0-menu-' - return props.eventKey || '0-menu-'; - } + /** + * 不显示的时候是否移除组件 + */ + unmountOnExit: _propTypes2["default"].bool, - function getActiveKey(props, originalActiveKey) { - var activeKey = originalActiveKey; - var children = props.children, - eventKey = props.eventKey; + /** + * 如果设置为默认显示,挂载时显示动画 + */ + transitionAppear: _propTypes2["default"].bool, - if (activeKey) { - var found = void 0; - Object(__WEBPACK_IMPORTED_MODULE_11__util__["d" /* loopMenuItem */])(children, function (c, i) { - if (c && !c.props.disabled && activeKey === Object(__WEBPACK_IMPORTED_MODULE_11__util__["a" /* getKeyFromChildrenIndex */])(c, eventKey, i)) { - found = true; - } - }); - if (found) { - return activeKey; - } - } - activeKey = null; - if (props.defaultActiveFirst) { - Object(__WEBPACK_IMPORTED_MODULE_11__util__["d" /* loopMenuItem */])(children, function (c, i) { - if (!activeKey && c && !c.props.disabled) { - activeKey = Object(__WEBPACK_IMPORTED_MODULE_11__util__["a" /* getKeyFromChildrenIndex */])(c, eventKey, i); - } - }); - return activeKey; - } - return activeKey; - } + /** + * 设置超时时间,防止出现问题,可设置为>=动画时间 + */ + timeout: _propTypes2["default"].number, - function saveRef(c) { - if (c) { - var index = this.instanceArray.indexOf(c); - if (index !== -1) { - // update component if it's already inside instanceArray - this.instanceArray[index] = c; - } else { - // add component if it's not in instanceArray yet; - this.instanceArray.push(c); - } - } - } + /** + * 退出组件时添加的class + */ + exitedClassName: _propTypes2["default"].string, + /** + * 退出组件中添加的class + */ + exitingClassName: _propTypes2["default"].string, + /** + * 进入动画后添加的class + */ + enteredClassName: _propTypes2["default"].string, + /** + * 进入动画时添加的class + */ + enteringClassName: _propTypes2["default"].string, - var SubPopupMenu = function (_React$Component) { - __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default()(SubPopupMenu, _React$Component); + /** + * 进入动画开始时的钩子函数 + */ + onEnter: _propTypes2["default"].func, + /** + * 进入动画中的钩子函数 + */ + onEntering: _propTypes2["default"].func, + /** + * 进入动画后的钩子函数 + */ + onEntered: _propTypes2["default"].func, + /** + * 退出动画开始时的钩子函数 + */ + onExit: _propTypes2["default"].func, + /** + * 退出动画中的钩子函数 + */ + onExiting: _propTypes2["default"].func, + /** + * 退出动画后的钩子函数 + */ + onExited: _propTypes2["default"].func + }; - function SubPopupMenu(props) { - var _extends3; + function noop() {} - __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, SubPopupMenu); + var defaultProps = { + "in": false, + unmountOnExit: false, + transitionAppear: false, + timeout: 5000, + onEnter: noop, + onEntering: noop, + onEntered: noop, + onExit: noop, + onExiting: noop, + onExited: noop + }; - var _this = __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.call(this, props)); + /** + * 动画组件 + */ - _initialiseProps.call(_this); + var Transition = function (_Component) { + _inherits(Transition, _Component); - props.store.setState({ - activeKey: __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({}, props.store.getState().activeKey, (_extends3 = {}, _extends3[props.eventKey] = getActiveKey(props, props.activeKey), _extends3)) - }); + function Transition(props, context) { + _classCallCheck(this, Transition); - _this.instanceArray = []; + var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); + + var initialStatus = void 0; + if (props["in"]) { + // 在componentdidmount时开始执行动画 + initialStatus = props.transitionAppear ? EXITED : ENTERED; + } else { + initialStatus = props.unmountOnExit ? UNMOUNTED : EXITED; + } + _this.state = { status: initialStatus }; + + _this.nextCallback = null; return _this; } - SubPopupMenu.prototype.componentDidMount = function componentDidMount() { - // invoke customized ref to expose component to mixin - if (this.props.manualRef) { - this.props.manualRef(this); + Transition.prototype.componentDidMount = function componentDidMount() { + if (this.props.transitionAppear && this.props["in"]) { + this.performEnter(this.props); } }; - SubPopupMenu.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) { - return this.props.visible || nextProps.visible; - }; - - SubPopupMenu.prototype.componentDidUpdate = function componentDidUpdate() { - var props = this.props; - var originalActiveKey = 'activeKey' in props ? props.activeKey : props.store.getState().activeKey[getEventKey(props)]; - var activeKey = getActiveKey(props, originalActiveKey); - if (activeKey !== originalActiveKey) { - updateActiveKey(props.store, getEventKey(props), activeKey); + Transition.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { + if (nextProps["in"] && this.props.unmountOnExit) { + if (this.state.status === UNMOUNTED) { + // 在componentDidUpdate执行动画. + this.setState({ status: EXITED }); + } + } else { + this._needsUpdate = true; } }; - // all keyboard events callbacks run from here at first + Transition.prototype.componentDidUpdate = function componentDidUpdate() { + var status = this.state.status; + if (this.props.unmountOnExit && status === EXITED) { + // 当使用unmountOnExit时,exited为exiting和unmont的过渡状态 + if (this.props["in"]) { + this.performEnter(this.props); + } else { + this.setState({ status: UNMOUNTED }); + } - SubPopupMenu.prototype.render = function render() { - var _this2 = this; + return; + } - var props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default()(this.props, []); + // 确保只响应prop变化 + if (this._needsUpdate) { + this._needsUpdate = false; - this.instanceArray = []; - var className = __WEBPACK_IMPORTED_MODULE_10_classnames___default()(props.prefixCls, props.className, props.prefixCls + '-' + props.mode); - var domProps = { - className: className, - // role could be 'select' and by default set to menu - role: props.role || 'menu' - }; - if (props.id) { - domProps.id = props.id; - } - if (props.focusable) { - domProps.tabIndex = '0'; - domProps.onKeyDown = this.onKeyDown; + if (this.props["in"]) { + if (status === EXITING) { + this.performEnter(this.props); + } else if (status === EXITED) { + this.performEnter(this.props); + } + // 其他,当我们已经输入或输出 + } else { + if (status === ENTERING || status === ENTERED) { + this.performExit(this.props); + } + // 我们已经输入或输出完成 + } } - var prefixCls = props.prefixCls, - eventKey = props.eventKey, - visible = props.visible, - level = props.level, - mode = props.mode, - overflowedIndicator = props.overflowedIndicator, - theme = props.theme; + }; - __WEBPACK_IMPORTED_MODULE_11__util__["f" /* menuAllProps */].forEach(function (key) { - return delete props[key]; - }); + Transition.prototype.componentWillUnmount = function componentWillUnmount() { + this.cancelNextCallback(); + }; - // Otherwise, the propagated click event will trigger another onClick - delete props.onClick; + Transition.prototype.performEnter = function performEnter(props) { + var _this2 = this; - return ( - // ESLint is not smart enough to know that the type of `children` was checked. - /* eslint-disable */ - __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement( - __WEBPACK_IMPORTED_MODULE_12__DOMWrap__["a" /* default */], - __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({}, props, { - prefixCls: prefixCls, - mode: mode, - tag: 'ul', - level: level, - theme: theme, - hiddenClassName: prefixCls + '-hidden', - visible: visible, - overflowedIndicator: overflowedIndicator - }, domProps), - __WEBPACK_IMPORTED_MODULE_5_react___default.a.Children.map(props.children, function (c, i) { - return _this2.renderMenuItem(c, i, eventKey || '0-menu-'); - }) - ) - /*eslint-enable */ + this.cancelNextCallback(); + var node = _reactDom2["default"].findDOMNode(this); - ); + // 这里接收新props + props.onEnter(node); + + this.safeSetState({ status: ENTERING }, function () { + _this2.props.onEntering(node); + + _this2.onTransitionEnd(node, function () { + _this2.safeSetState({ status: ENTERED }, function () { + _this2.props.onEntered(node); + }); + }); + }); }; - return SubPopupMenu; - }(__WEBPACK_IMPORTED_MODULE_5_react___default.a.Component); - SubPopupMenu.propTypes = { - onSelect: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, - onClick: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, - onDeselect: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, - onOpenChange: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, - onDestroy: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, - openTransitionName: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, - openAnimation: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object]), - openKeys: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string), - visible: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, - children: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.any, - parentMenu: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object, - eventKey: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, - store: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.shape({ - getState: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, - setState: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func - }), + Transition.prototype.performExit = function performExit(props) { + var _this3 = this; - // adding in refactor - focusable: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, - multiple: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, - style: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object, - defaultActiveFirst: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, - activeKey: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, - selectedKeys: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string), - defaultSelectedKeys: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string), - defaultOpenKeys: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string), - level: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, - mode: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']), - triggerSubMenuAction: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf(['click', 'hover']), - inlineIndent: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string]), - manualRef: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, - itemIcon: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.node]), - expandIcon: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.node]) - }; - SubPopupMenu.defaultProps = { - prefixCls: 'rc-menu', - className: '', - mode: 'vertical', - level: 1, - inlineIndent: 24, - visible: true, - focusable: true, - style: {}, - manualRef: __WEBPACK_IMPORTED_MODULE_11__util__["g" /* noop */] - }; + this.cancelNextCallback(); + var node = _reactDom2["default"].findDOMNode(this); - var _initialiseProps = function _initialiseProps() { - var _this3 = this; + props.onExit(node); - this.onKeyDown = function (e, callback) { - var keyCode = e.keyCode; - var handled = void 0; - _this3.getFlatInstanceArray().forEach(function (obj) { - if (obj && obj.props.active && obj.onKeyDown) { - handled = obj.onKeyDown(e); - } - }); - if (handled) { - return 1; - } - var activeItem = null; - if (keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__["a" /* default */].UP || keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__["a" /* default */].DOWN) { - activeItem = _this3.step(keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__["a" /* default */].UP ? -1 : 1); - } - if (activeItem) { - e.preventDefault(); - updateActiveKey(_this3.props.store, getEventKey(_this3.props), activeItem.props.eventKey); + this.safeSetState({ status: EXITING }, function () { + _this3.props.onExiting(node); - if (typeof callback === 'function') { - callback(activeItem); - } + _this3.onTransitionEnd(node, function () { + _this3.safeSetState({ status: EXITED }, function () { + _this3.props.onExited(node); + }); + }); + }); + }; - return 1; + Transition.prototype.cancelNextCallback = function cancelNextCallback() { + if (this.nextCallback !== null) { + this.nextCallback.cancel(); + this.nextCallback = null; } }; - this.onItemHover = function (e) { - var key = e.key, - hover = e.hover; - - updateActiveKey(_this3.props.store, getEventKey(_this3.props), hover ? key : null); + Transition.prototype.safeSetState = function safeSetState(nextState, callback) { + // 确保在组件销毁后挂起的setState被消除 + this.setState(nextState, this.setNextCallback(callback)); }; - this.onDeselect = function (selectInfo) { - _this3.props.onDeselect(selectInfo); - }; + Transition.prototype.setNextCallback = function setNextCallback(callback) { + var _this4 = this; - this.onSelect = function (selectInfo) { - _this3.props.onSelect(selectInfo); - }; + var active = true; - this.onClick = function (e) { - _this3.props.onClick(e); - }; + this.nextCallback = function (event) { + if (active) { + active = false; + _this4.nextCallback = null; - this.onOpenChange = function (e) { - _this3.props.onOpenChange(e); - }; + callback(event); + } + }; - this.onDestroy = function (key) { - /* istanbul ignore next */ - _this3.props.onDestroy(key); - }; + this.nextCallback.cancel = function () { + active = false; + }; - this.getFlatInstanceArray = function () { - return _this3.instanceArray; + return this.nextCallback; }; - this.getOpenTransitionName = function () { - return _this3.props.openTransitionName; + Transition.prototype.onTransitionEnd = function onTransitionEnd(node, handler) { + this.setNextCallback(handler); + + if (node) { + if (transitionEndEvent == undefined) { + this.nextCallback(); + } else { + (0, _on2["default"])(node, transitionEndEvent, this.nextCallback); + } + setTimeout(this.nextCallback, this.props.timeout); + } else { + setTimeout(this.nextCallback, 0); + } }; - this.step = function (direction) { - var children = _this3.getFlatInstanceArray(); - var activeKey = _this3.props.store.getState().activeKey[getEventKey(_this3.props)]; - var len = children.length; - if (!len) { + Transition.prototype.render = function render() { + var status = this.state.status; + if (status === UNMOUNTED) { return null; } - if (direction < 0) { - children = children.concat().reverse(); - } - // find current activeIndex - var activeIndex = -1; - children.every(function (c, ci) { - if (c && c.props.eventKey === activeKey) { - activeIndex = ci; - return false; - } - return true; - }); - if (!_this3.props.defaultActiveFirst && activeIndex !== -1 && allDisabled(children.slice(activeIndex, len - 1))) { - return undefined; - } - var start = (activeIndex + 1) % len; - var i = start; - do { - var child = children[i]; - if (!child || child.props.disabled) { - i = (i + 1) % len; - } else { - return child; - } - } while (i !== start); + var _props = this.props, + children = _props.children, + className = _props.className, + childProps = _objectWithoutProperties(_props, ['children', 'className']); - return null; - }; + Object.keys(Transition.propTypes).forEach(function (key) { + return delete childProps[key]; + }); - this.renderCommonMenuItem = function (child, i, extraProps) { - var state = _this3.props.store.getState(); - var props = _this3.props; - var key = Object(__WEBPACK_IMPORTED_MODULE_11__util__["a" /* getKeyFromChildrenIndex */])(child, props.eventKey, i); - var childProps = child.props; - var isActive = key === state.activeKey; - var newChildProps = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({ - mode: childProps.mode || props.mode, - level: props.level, - inlineIndent: props.inlineIndent, - renderMenuItem: _this3.renderMenuItem, - rootPrefixCls: props.prefixCls, - index: i, - parentMenu: props.parentMenu, - // customized ref function, need to be invoked manually in child's componentDidMount - manualRef: childProps.disabled ? undefined : Object(__WEBPACK_IMPORTED_MODULE_9_rc_util_es_createChainedFunction__["a" /* default */])(child.ref, saveRef.bind(_this3)), - eventKey: key, - active: !childProps.disabled && isActive, - multiple: props.multiple, - onClick: function onClick(e) { - (childProps.onClick || __WEBPACK_IMPORTED_MODULE_11__util__["g" /* noop */])(e); - _this3.onClick(e); - }, - onItemHover: _this3.onItemHover, - openTransitionName: _this3.getOpenTransitionName(), - openAnimation: props.openAnimation, - subMenuOpenDelay: props.subMenuOpenDelay, - subMenuCloseDelay: props.subMenuCloseDelay, - forceSubMenuRender: props.forceSubMenuRender, - onOpenChange: _this3.onOpenChange, - onDeselect: _this3.onDeselect, - onSelect: _this3.onSelect, - builtinPlacements: props.builtinPlacements, - itemIcon: childProps.itemIcon || _this3.props.itemIcon, - expandIcon: childProps.expandIcon || _this3.props.expandIcon - }, extraProps); - if (props.mode === 'inline') { - newChildProps.triggerSubMenuAction = 'click'; + var transitionClassName = void 0; + if (status === EXITED) { + transitionClassName = this.props.exitedClassName; + } else if (status === ENTERING) { + transitionClassName = this.props.enteringClassName; + } else if (status === ENTERED) { + transitionClassName = this.props.enteredClassName; + } else if (status === EXITING) { + transitionClassName = this.props.exitingClassName; } - return __WEBPACK_IMPORTED_MODULE_5_react___default.a.cloneElement(child, newChildProps); - }; - this.renderMenuItem = function (c, i, subMenuKey) { - /* istanbul ignore if */ - if (!c) { - return null; - } - var state = _this3.props.store.getState(); - var extraProps = { - openKeys: state.openKeys, - selectedKeys: state.selectedKeys, - triggerSubMenuAction: _this3.props.triggerSubMenuAction, - subMenuKey: subMenuKey - }; - return _this3.renderCommonMenuItem(c, i, extraProps); + var child = _react2["default"].Children.only(children); + return _react2["default"].cloneElement(child, _extends({}, childProps, { + className: (0, _classnames2["default"])(child.props.className, className, transitionClassName) + })); }; - }; - var connected = Object(__WEBPACK_IMPORTED_MODULE_7_mini_store__["connect"])()(SubPopupMenu); + return Transition; + }(_react.Component); - /* harmony default export */ __webpack_exports__["a"] = (connected); + Transition.propTypes = propTypes; + + Transition.defaultProps = defaultProps; + + exports["default"] = Transition; /***/ }), - /* 256 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + /* 153 */ + /***/ (function(module, exports, __webpack_require__) { "use strict"; - /* harmony export (immutable) */ __webpack_exports__["a"] = createChainedFunction; - /** - * Safe chained function - * - * Will only create a new function if needed, - * otherwise will pass back existing functions or null. - * - * @returns {function|null} - */ - function createChainedFunction() { - var args = [].slice.call(arguments, 0); - if (args.length === 1) { - return args[0]; - } - return function chainedFunction() { - for (var i = 0; i < args.length; i++) { - if (args[i] && args[i].apply) { - args[i].apply(this, arguments); - } - } - }; - } + exports.__esModule = true; + exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined; - /***/ }), - /* 257 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + var _all2 = __webpack_require__(903); - "use strict"; - /* unused harmony export SubMenu */ - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__ = __webpack_require__(7); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(9); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_possibleConstructorReturn__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_inherits__ = __webpack_require__(10); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_inherits__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends__ = __webpack_require__(8); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react__ = __webpack_require__(0); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react_dom__ = __webpack_require__(3); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react_dom__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types__ = __webpack_require__(1); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_prop_types__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_rc_trigger__ = __webpack_require__(73); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__ = __webpack_require__(43); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_classnames__ = __webpack_require__(2); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_classnames__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_mini_store__ = __webpack_require__(21); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_mini_store___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_mini_store__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__SubPopupMenu__ = __webpack_require__(255); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__placements__ = __webpack_require__(806); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_rc_animate__ = __webpack_require__(96); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__util__ = __webpack_require__(58); + var _all3 = _interopRequireDefault(_all2); + var _componentOrElement2 = __webpack_require__(904); + var _componentOrElement3 = _interopRequireDefault(_componentOrElement2); + var _deprecated2 = __webpack_require__(905); + var _deprecated3 = _interopRequireDefault(_deprecated2); + var _elementType2 = __webpack_require__(907); + var _elementType3 = _interopRequireDefault(_elementType2); + var _isRequiredForA11y2 = __webpack_require__(908); + var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2); + var _splitComponent2 = __webpack_require__(909); + var _splitComponent3 = _interopRequireDefault(_splitComponent2); + var _createChainedFunction2 = __webpack_require__(275); + var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2); + var _keyCode = __webpack_require__(910); + var _keyCode2 = _interopRequireDefault(_keyCode); + var _contains2 = __webpack_require__(911); - var guid = 0; + var _contains3 = _interopRequireDefault(_contains2); - var popupPlacementMap = { - horizontal: 'bottomLeft', - vertical: 'rightTop', - 'vertical-left': 'rightTop', - 'vertical-right': 'leftTop' - }; + var _addEventListener2 = __webpack_require__(276); - var updateDefaultActiveFirst = function updateDefaultActiveFirst(store, eventKey, defaultActiveFirst) { - var _extends2; + var _addEventListener3 = _interopRequireDefault(_addEventListener2); - var menuId = Object(__WEBPACK_IMPORTED_MODULE_14__util__["b" /* getMenuIdFromSubMenuEventKey */])(eventKey); - var state = store.getState(); - store.setState({ - defaultActiveFirst: __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, state.defaultActiveFirst, (_extends2 = {}, _extends2[menuId] = defaultActiveFirst, _extends2)) - }); - }; + var _cssAnimation2 = __webpack_require__(912); - var SubMenu = function (_React$Component) { - __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_inherits___default()(SubMenu, _React$Component); + var _cssAnimation3 = _interopRequireDefault(_cssAnimation2); - function SubMenu(props) { - __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default()(this, SubMenu); + var _toArray2 = __webpack_require__(914); - var _this = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.call(this, props)); + var _toArray3 = _interopRequireDefault(_toArray2); - _initialiseProps.call(_this); + var _Align2 = __webpack_require__(915); - var store = props.store; - var eventKey = props.eventKey; - var defaultActiveFirst = store.getState().defaultActiveFirst; + var _Align3 = _interopRequireDefault(_Align2); - _this.isRootMenu = false; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var value = false; + exports.all = _all3.default; + exports.componentOrElement = _componentOrElement3.default; + exports.deprecated = _deprecated3.default; + exports.elementType = _elementType3.default; + exports.isRequiredForA11y = _isRequiredForA11y3.default; + exports.splitComponent = _splitComponent3.default; + exports.createChainedFunction = _createChainedFunction3.default; + exports.KeyCode = _keyCode2.default; + exports.contains = _contains3.default; + exports.addEventListener = _addEventListener3.default; + exports.cssAnimation = _cssAnimation3.default; + exports.toArray = _toArray3.default; + //export getContainerRenderMixin from './getContainerRenderMixin'; - if (defaultActiveFirst) { - value = defaultActiveFirst[eventKey]; - } + exports.Align = _Align3.default; - updateDefaultActiveFirst(store, eventKey, value); - return _this; - } + /***/ }), + /* 154 */ + /***/ (function(module, exports, __webpack_require__) { - SubMenu.prototype.componentDidMount = function componentDidMount() { - this.componentDidUpdate(); - }; + "use strict"; - SubMenu.prototype.componentDidUpdate = function componentDidUpdate() { - var _this2 = this; - var _props = this.props, - mode = _props.mode, - parentMenu = _props.parentMenu, - manualRef = _props.manualRef; + exports.__esModule = true; + exports.default = createChainableTypeChecker; + /** + * Copyright 2013-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ - // invoke customized ref to expose component to mixin + // Mostly taken from ReactPropTypes. - if (manualRef) { - manualRef(this); + /* This source code is quoted from rc-util. + * homepage: https://github.com/react-component/util + */ + + function createChainableTypeChecker(validate) { + function checkType(isRequired, props, propName, componentName, location, propFullName) { + var componentNameSafe = componentName || '<>'; + var propFullNameSafe = propFullName || propName; + + if (props[propName] == null) { + if (isRequired) { + return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); + } + + return null; } - if (mode !== 'horizontal' || !parentMenu.isRootMenu || !this.props.isOpen) { - return; + for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { + args[_key - 6] = arguments[_key]; } - this.minWidthTimeout = setTimeout(function () { - return _this2.adjustWidth(); - }, 0); - }; + return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); + } - SubMenu.prototype.componentWillUnmount = function componentWillUnmount() { - var _props2 = this.props, - onDestroy = _props2.onDestroy, - eventKey = _props2.eventKey; + var chainedCheckType = checkType.bind(null, false); + chainedCheckType.isRequired = checkType.bind(null, true); - if (onDestroy) { - onDestroy(eventKey); - } + return chainedCheckType; + } - /* istanbul ignore if */ - if (this.minWidthTimeout) { - clearTimeout(this.minWidthTimeout); - } + /***/ }), + /* 155 */ + /***/ (function(module, exports, __webpack_require__) { - /* istanbul ignore if */ - if (this.mouseenterTimeout) { - clearTimeout(this.mouseenterTimeout); - } - }; + "use strict"; - SubMenu.prototype.renderChildren = function renderChildren(children) { - var props = this.props; - var baseProps = { - mode: props.mode === 'horizontal' ? 'vertical' : props.mode, - visible: this.props.isOpen, - level: props.level + 1, - inlineIndent: props.inlineIndent, - focusable: false, - onClick: this.onSubMenuClick, - onSelect: this.onSelect, - onDeselect: this.onDeselect, - onDestroy: this.onDestroy, - selectedKeys: props.selectedKeys, - eventKey: props.eventKey + '-menu-', - openKeys: props.openKeys, - openTransitionName: props.openTransitionName, - openAnimation: props.openAnimation, - onOpenChange: this.onOpenChange, - subMenuOpenDelay: props.subMenuOpenDelay, - parentMenu: this, - subMenuCloseDelay: props.subMenuCloseDelay, - forceSubMenuRender: props.forceSubMenuRender, - triggerSubMenuAction: props.triggerSubMenuAction, - builtinPlacements: props.builtinPlacements, - defaultActiveFirst: props.store.getState().defaultActiveFirst[Object(__WEBPACK_IMPORTED_MODULE_14__util__["b" /* getMenuIdFromSubMenuEventKey */])(props.eventKey)], - multiple: props.multiple, - prefixCls: props.rootPrefixCls, - id: this._menuId, - manualRef: this.saveMenuInstance, - itemIcon: props.itemIcon, - expandIcon: props.expandIcon - }; - var haveRendered = this.haveRendered; - this.haveRendered = true; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = undefined; - this.haveOpened = this.haveOpened || baseProps.visible || baseProps.forceSubMenuRender; - // never rendered not planning to, don't render - if (!this.haveOpened) { - return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement('div', null); - } + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - // don't show transition on first rendering (no animation for opened menu) - // show appear transition if it's not visible (not sure why) - // show appear transition if it's not inline mode - var transitionAppear = haveRendered || !baseProps.visible || !baseProps.mode === 'inline'; + var _react = __webpack_require__(0); - baseProps.className = ' ' + baseProps.prefixCls + '-sub'; - var animProps = {}; + var _react2 = _interopRequireDefault(_react); - if (baseProps.openTransitionName) { - animProps.transitionName = baseProps.openTransitionName; - } else if (typeof baseProps.openAnimation === 'object') { - animProps.animation = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, baseProps.openAnimation); - if (!transitionAppear) { - delete animProps.animation.appear; - } - } + var _reactDom = __webpack_require__(3); - return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement( - __WEBPACK_IMPORTED_MODULE_13_rc_animate__["default"], - __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, animProps, { - showProp: 'visible', - component: '', - transitionAppear: transitionAppear - }), - __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement( - __WEBPACK_IMPORTED_MODULE_11__SubPopupMenu__["a" /* default */], - __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, baseProps, { id: this._menuId }), - children - ) - ); - }; + var _reactDom2 = _interopRequireDefault(_reactDom); - SubMenu.prototype.render = function render() { - var _classNames; + var _properties = __webpack_require__(28); - var props = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, this.props); - var isOpen = props.isOpen; - var prefixCls = this.getPrefixCls(); - var isInlineMode = props.mode === 'inline'; - var className = __WEBPACK_IMPORTED_MODULE_9_classnames___default()(prefixCls, prefixCls + '-' + props.mode, (_classNames = {}, _classNames[props.className] = !!props.className, _classNames[this.getOpenClassName()] = isOpen, _classNames[this.getActiveClassName()] = props.active || isOpen && !isInlineMode, _classNames[this.getDisabledClassName()] = props.disabled, _classNames[this.getSelectedClassName()] = this.isChildrenSelected(), _classNames)); + var _properties2 = _interopRequireDefault(_properties); - if (!this._menuId) { - if (props.eventKey) { - this._menuId = props.eventKey + '$Menu'; - } else { - this._menuId = '$__$' + ++guid + '$Menu'; - } - } + var _on = __webpack_require__(17); - var mouseEvents = {}; - var titleClickEvents = {}; - var titleMouseEvents = {}; - if (!props.disabled) { - mouseEvents = { - onMouseLeave: this.onMouseLeave, - onMouseEnter: this.onMouseEnter - }; + var _on2 = _interopRequireDefault(_on); - // only works in title, not outer li - titleClickEvents = { - onClick: this.onTitleClick - }; - titleMouseEvents = { - onMouseEnter: this.onTitleMouseEnter, - onMouseLeave: this.onTitleMouseLeave - }; - } + var _classnames = __webpack_require__(2); - var style = {}; - if (isInlineMode) { - style.paddingLeft = props.inlineIndent * props.level; - } + var _classnames2 = _interopRequireDefault(_classnames); - var ariaOwns = {}; - // only set aria-owns when menu is open - // otherwise it would be an invalid aria-owns value - // since corresponding node cannot be found - if (this.props.isOpen) { - ariaOwns = { - 'aria-owns': this._menuId - }; - } + var _propTypes = __webpack_require__(1); - // expand custom icon should NOT be displayed in menu with horizontal mode. - var icon = null; - if (props.mode !== 'horizontal') { - icon = this.props.expandIcon; // ReactNode - if (typeof this.props.expandIcon === 'function') { - icon = __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(this.props.expandIcon, __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, this.props)); - } - } + var _propTypes2 = _interopRequireDefault(_propTypes); - var title = __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement( - 'div', - __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({ - ref: this.saveSubMenuTitle, - style: style, - className: prefixCls + '-title' - }, titleMouseEvents, titleClickEvents, { - 'aria-expanded': isOpen - }, ariaOwns, { - 'aria-haspopup': 'true', - title: typeof props.title === 'string' ? props.title : undefined - }), - props.title, - icon || __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement('i', { className: prefixCls + '-arrow' }) - ); - var children = this.renderChildren(props.children); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - var getPopupContainer = props.parentMenu.isRootMenu ? props.parentMenu.props.getPopupContainer : function (triggerNode) { - return triggerNode.parentNode; - }; - var popupPlacement = popupPlacementMap[props.mode]; - var popupAlign = props.popupOffset ? { offset: props.popupOffset } : {}; - var popupClassName = props.mode === 'inline' ? '' : props.popupClassName; - var disabled = props.disabled, - triggerSubMenuAction = props.triggerSubMenuAction, - subMenuOpenDelay = props.subMenuOpenDelay, - forceSubMenuRender = props.forceSubMenuRender, - subMenuCloseDelay = props.subMenuCloseDelay, - builtinPlacements = props.builtinPlacements; + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - __WEBPACK_IMPORTED_MODULE_14__util__["f" /* menuAllProps */].forEach(function (key) { - return delete props[key]; - }); - // Set onClick to null, to ignore propagated onClick event - delete props.onClick; + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement( - 'li', - __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, props, mouseEvents, { - className: className, - role: 'menuitem' - }), - isInlineMode && title, - isInlineMode && children, - !isInlineMode && __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement( - __WEBPACK_IMPORTED_MODULE_7_rc_trigger__["default"], - { - prefixCls: prefixCls, - popupClassName: prefixCls + '-popup ' + popupClassName, - getPopupContainer: getPopupContainer, - builtinPlacements: __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, __WEBPACK_IMPORTED_MODULE_12__placements__["a" /* default */], builtinPlacements), - popupPlacement: popupPlacement, - popupVisible: isOpen, - popupAlign: popupAlign, - popup: children, - action: disabled ? [] : [triggerSubMenuAction], - mouseEnterDelay: subMenuOpenDelay, - mouseLeaveDelay: subMenuCloseDelay, - onPopupVisibleChange: this.onPopupVisibleChange, - forceRender: forceSubMenuRender - }, - title - ) - ); - }; + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - return SubMenu; - }(__WEBPACK_IMPORTED_MODULE_4_react___default.a.Component); + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - SubMenu.propTypes = { - parentMenu: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object, - title: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.node, - children: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.any, - selectedKeys: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.array, - openKeys: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.array, - onClick: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, - onOpenChange: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, - rootPrefixCls: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, - eventKey: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, - multiple: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, - active: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, // TODO: remove - onItemHover: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, - onSelect: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, - triggerSubMenuAction: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, - onDeselect: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, - onDestroy: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, - onMouseEnter: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, - onMouseLeave: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, - onTitleMouseEnter: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, - onTitleMouseLeave: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, - onTitleClick: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, - popupOffset: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.array, - isOpen: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, - store: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object, - mode: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']), - manualRef: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, - itemIcon: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.node]), - expandIcon: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.node]) + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + + var transitionEndEvent = _properties2["default"].end; + + //设置状态码 + var UNMOUNTED = exports.UNMOUNTED = 0; + var EXITED = exports.EXITED = 1; + var ENTERING = exports.ENTERING = 2; + var ENTERED = exports.ENTERED = 3; + var EXITING = exports.EXITING = 4; + + var propTypes = { + /** + * 是否触发动画 + */ + "in": _propTypes2["default"].bool, + + /** + * 不显示的时候是否移除组件 + */ + unmountOnExit: _propTypes2["default"].bool, + + /** + * 如果设置为默认显示,挂载时显示动画 + */ + transitionAppear: _propTypes2["default"].bool, + + /** + * 设置超时时间,防止出现问题,可设置为>=动画时间 + */ + timeout: _propTypes2["default"].number, + + /** + * 退出组件时添加的class + */ + exitedClassName: _propTypes2["default"].string, + /** + * 退出组件中添加的class + */ + exitingClassName: _propTypes2["default"].string, + /** + * 进入动画后添加的class + */ + enteredClassName: _propTypes2["default"].string, + /** + * 进入动画时添加的class + */ + enteringClassName: _propTypes2["default"].string, + + /** + * 进入动画开始时的钩子函数 + */ + onEnter: _propTypes2["default"].func, + /** + * 进入动画中的钩子函数 + */ + onEntering: _propTypes2["default"].func, + /** + * 进入动画后的钩子函数 + */ + onEntered: _propTypes2["default"].func, + /** + * 退出动画开始时的钩子函数 + */ + onExit: _propTypes2["default"].func, + /** + * 退出动画中的钩子函数 + */ + onExiting: _propTypes2["default"].func, + /** + * 退出动画后的钩子函数 + */ + onExited: _propTypes2["default"].func }; - SubMenu.defaultProps = { - onMouseEnter: __WEBPACK_IMPORTED_MODULE_14__util__["g" /* noop */], - onMouseLeave: __WEBPACK_IMPORTED_MODULE_14__util__["g" /* noop */], - onTitleMouseEnter: __WEBPACK_IMPORTED_MODULE_14__util__["g" /* noop */], - onTitleMouseLeave: __WEBPACK_IMPORTED_MODULE_14__util__["g" /* noop */], - onTitleClick: __WEBPACK_IMPORTED_MODULE_14__util__["g" /* noop */], - manualRef: __WEBPACK_IMPORTED_MODULE_14__util__["g" /* noop */], - mode: 'vertical', - title: '' + + function noop() {} + + var defaultProps = { + "in": false, + unmountOnExit: false, + transitionAppear: false, + timeout: 5000, + onEnter: noop, + onEntering: noop, + onEntered: noop, + onExit: noop, + onExiting: noop, + onExited: noop }; - var _initialiseProps = function _initialiseProps() { - var _this3 = this; + /** + * 动画组件 + */ - this.onDestroy = function (key) { - _this3.props.onDestroy(key); - }; + var Transition = function (_Component) { + _inherits(Transition, _Component); - this.onKeyDown = function (e) { - var keyCode = e.keyCode; - var menu = _this3.menuInstance; - var _props3 = _this3.props, - isOpen = _props3.isOpen, - store = _props3.store; + function Transition(props, context) { + _classCallCheck(this, Transition); + var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); - if (keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__["a" /* default */].ENTER) { - _this3.onTitleClick(e); - updateDefaultActiveFirst(store, _this3.props.eventKey, true); - return true; + var initialStatus = void 0; + if (props["in"]) { + // 在componentdidmount时开始执行动画 + initialStatus = props.transitionAppear ? EXITED : ENTERED; + } else { + initialStatus = props.unmountOnExit ? UNMOUNTED : EXITED; } + _this.state = { status: initialStatus }; - if (keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__["a" /* default */].RIGHT) { - if (isOpen) { - menu.onKeyDown(e); - } else { - _this3.triggerOpenChange(true); - // need to update current menu's defaultActiveFirst value - updateDefaultActiveFirst(store, _this3.props.eventKey, true); + _this.nextCallback = null; + return _this; + } + + Transition.prototype.componentDidMount = function componentDidMount() { + if (this.props.transitionAppear && this.props["in"]) { + this.performEnter(this.props); + } + }; + + Transition.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { + if (nextProps["in"] && this.props.unmountOnExit) { + if (this.state.status === UNMOUNTED) { + // 在componentDidUpdate执行动画. + this.setState({ status: EXITED }); } - return true; + } else { + this._needsUpdate = true; } - if (keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__["a" /* default */].LEFT) { - var handled = void 0; - if (isOpen) { - handled = menu.onKeyDown(e); + }; + + Transition.prototype.componentDidUpdate = function componentDidUpdate() { + var status = this.state.status; + + if (this.props.unmountOnExit && status === EXITED) { + // 当使用unmountOnExit时,exited为exiting和unmont的过渡状态 + if (this.props["in"]) { + this.performEnter(this.props); } else { - return undefined; - } - if (!handled) { - _this3.triggerOpenChange(false); - handled = true; + this.setState({ status: UNMOUNTED }); } - return handled; + + return; } - if (isOpen && (keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__["a" /* default */].UP || keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__["a" /* default */].DOWN)) { - return menu.onKeyDown(e); + // 确保只响应prop变化 + if (this._needsUpdate) { + this._needsUpdate = false; + + if (this.props["in"]) { + if (status === EXITING) { + this.performEnter(this.props); + } else if (status === EXITED) { + this.performEnter(this.props); + } + // 其他,当我们已经输入或输出 + } else { + if (status === ENTERING || status === ENTERED) { + this.performExit(this.props); + } + // 我们已经输入或输出完成 + } } }; - this.onOpenChange = function (e) { - _this3.props.onOpenChange(e); + Transition.prototype.componentWillUnmount = function componentWillUnmount() { + this.cancelNextCallback(); }; - this.onPopupVisibleChange = function (visible) { - _this3.triggerOpenChange(visible, visible ? 'mouseenter' : 'mouseleave'); - }; + Transition.prototype.performEnter = function performEnter(props) { + var _this2 = this; - this.onMouseEnter = function (e) { - var _props4 = _this3.props, - key = _props4.eventKey, - onMouseEnter = _props4.onMouseEnter, - store = _props4.store; + this.cancelNextCallback(); + var node = _reactDom2["default"].findDOMNode(this); - updateDefaultActiveFirst(store, _this3.props.eventKey, false); - onMouseEnter({ - key: key, - domEvent: e - }); - }; + // 这里接收新props + props.onEnter(node); - this.onMouseLeave = function (e) { - var _props5 = _this3.props, - parentMenu = _props5.parentMenu, - eventKey = _props5.eventKey, - onMouseLeave = _props5.onMouseLeave; + this.safeSetState({ status: ENTERING }, function () { + _this2.props.onEntering(node); - parentMenu.subMenuInstance = _this3; - onMouseLeave({ - key: eventKey, - domEvent: e + _this2.onTransitionEnd(node, function () { + _this2.safeSetState({ status: ENTERED }, function () { + _this2.props.onEntered(node); + }); + }); }); }; - this.onTitleMouseEnter = function (domEvent) { - var _props6 = _this3.props, - key = _props6.eventKey, - onItemHover = _props6.onItemHover, - onTitleMouseEnter = _props6.onTitleMouseEnter; - - onItemHover({ - key: key, - hover: true - }); - onTitleMouseEnter({ - key: key, - domEvent: domEvent - }); - }; + Transition.prototype.performExit = function performExit(props) { + var _this3 = this; - this.onTitleMouseLeave = function (e) { - var _props7 = _this3.props, - parentMenu = _props7.parentMenu, - eventKey = _props7.eventKey, - onItemHover = _props7.onItemHover, - onTitleMouseLeave = _props7.onTitleMouseLeave; + this.cancelNextCallback(); + var node = _reactDom2["default"].findDOMNode(this); - parentMenu.subMenuInstance = _this3; - onItemHover({ - key: eventKey, - hover: false - }); - onTitleMouseLeave({ - key: eventKey, - domEvent: e - }); - }; + props.onExit(node); - this.onTitleClick = function (e) { - var props = _this3.props; + this.safeSetState({ status: EXITING }, function () { + _this3.props.onExiting(node); - props.onTitleClick({ - key: props.eventKey, - domEvent: e + _this3.onTransitionEnd(node, function () { + _this3.safeSetState({ status: EXITED }, function () { + _this3.props.onExited(node); + }); + }); }); - if (props.triggerSubMenuAction === 'hover') { - return; - } - _this3.triggerOpenChange(!props.isOpen, 'click'); - updateDefaultActiveFirst(props.store, _this3.props.eventKey, false); }; - this.onSubMenuClick = function (info) { - // in the case of overflowed submenu - // onClick is not copied over - if (typeof _this3.props.onClick === 'function') { - _this3.props.onClick(_this3.addKeyPath(info)); + Transition.prototype.cancelNextCallback = function cancelNextCallback() { + if (this.nextCallback !== null) { + this.nextCallback.cancel(); + this.nextCallback = null; } }; - this.onSelect = function (info) { - _this3.props.onSelect(info); + Transition.prototype.safeSetState = function safeSetState(nextState, callback) { + // 确保在组件销毁后挂起的setState被消除 + this.setState(nextState, this.setNextCallback(callback)); }; - this.onDeselect = function (info) { - _this3.props.onDeselect(info); - }; + Transition.prototype.setNextCallback = function setNextCallback(callback) { + var _this4 = this; - this.getPrefixCls = function () { - return _this3.props.rootPrefixCls + '-submenu'; - }; + var active = true; - this.getActiveClassName = function () { - return _this3.getPrefixCls() + '-active'; - }; + this.nextCallback = function (event) { + if (active) { + active = false; + _this4.nextCallback = null; - this.getDisabledClassName = function () { - return _this3.getPrefixCls() + '-disabled'; - }; + callback(event); + } + }; - this.getSelectedClassName = function () { - return _this3.getPrefixCls() + '-selected'; - }; + this.nextCallback.cancel = function () { + active = false; + }; - this.getOpenClassName = function () { - return _this3.props.rootPrefixCls + '-submenu-open'; + return this.nextCallback; }; - this.saveMenuInstance = function (c) { - // children menu instance - _this3.menuInstance = c; + Transition.prototype.onTransitionEnd = function onTransitionEnd(node, handler) { + this.setNextCallback(handler); + + if (node) { + if (transitionEndEvent == undefined) { + this.nextCallback(); + } else { + (0, _on2["default"])(node, transitionEndEvent, this.nextCallback); + } + setTimeout(this.nextCallback, this.props.timeout); + } else { + setTimeout(this.nextCallback, 0); + } }; - this.addKeyPath = function (info) { - return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, info, { - keyPath: (info.keyPath || []).concat(_this3.props.eventKey) + Transition.prototype.render = function render() { + var status = this.state.status; + if (status === UNMOUNTED) { + return null; + } + + var _props = this.props, + children = _props.children, + className = _props.className, + childProps = _objectWithoutProperties(_props, ['children', 'className']); + + Object.keys(Transition.propTypes).forEach(function (key) { + return delete childProps[key]; }); - }; - this.triggerOpenChange = function (open, type) { - var key = _this3.props.eventKey; - var openChange = function openChange() { - _this3.onOpenChange({ - key: key, - item: _this3, - trigger: type, - open: open - }); - }; - if (type === 'mouseenter') { - // make sure mouseenter happen after other menu item's mouseleave - _this3.mouseenterTimeout = setTimeout(function () { - openChange(); - }, 0); - } else { - openChange(); + var transitionClassName = void 0; + if (status === EXITED) { + transitionClassName = this.props.exitedClassName; + } else if (status === ENTERING) { + transitionClassName = this.props.enteringClassName; + } else if (status === ENTERED) { + transitionClassName = this.props.enteredClassName; + } else if (status === EXITING) { + transitionClassName = this.props.exitingClassName; } - }; - this.isChildrenSelected = function () { - var ret = { find: false }; - Object(__WEBPACK_IMPORTED_MODULE_14__util__["e" /* loopMenuItemRecursively */])(_this3.props.children, _this3.props.selectedKeys, ret); - return ret.find; + var child = _react2["default"].Children.only(children); + return _react2["default"].cloneElement(child, _extends({}, childProps, { + className: (0, _classnames2["default"])(child.props.className, className, transitionClassName) + })); }; - this.isOpen = function () { - return _this3.props.openKeys.indexOf(_this3.props.eventKey) !== -1; - }; + return Transition; + }(_react.Component); - this.adjustWidth = function () { - /* istanbul ignore if */ - if (!_this3.subMenuTitle || !_this3.menuInstance) { - return; + Transition.propTypes = propTypes; + + Transition.defaultProps = defaultProps; + + exports["default"] = Transition; + + /***/ }), + /* 156 */ + /***/ (function(module, exports, __webpack_require__) { + + "use strict"; + + + exports.__esModule = true; + exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined; + + var _all2 = __webpack_require__(941); + + var _all3 = _interopRequireDefault(_all2); + + var _componentOrElement2 = __webpack_require__(942); + + var _componentOrElement3 = _interopRequireDefault(_componentOrElement2); + + var _deprecated2 = __webpack_require__(943); + + var _deprecated3 = _interopRequireDefault(_deprecated2); + + var _elementType2 = __webpack_require__(944); + + var _elementType3 = _interopRequireDefault(_elementType2); + + var _isRequiredForA11y2 = __webpack_require__(945); + + var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2); + + var _splitComponent2 = __webpack_require__(946); + + var _splitComponent3 = _interopRequireDefault(_splitComponent2); + + var _createChainedFunction2 = __webpack_require__(280); + + var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2); + + var _keyCode = __webpack_require__(947); + + var _keyCode2 = _interopRequireDefault(_keyCode); + + var _contains2 = __webpack_require__(948); + + var _contains3 = _interopRequireDefault(_contains2); + + var _addEventListener2 = __webpack_require__(281); + + var _addEventListener3 = _interopRequireDefault(_addEventListener2); + + var _cssAnimation2 = __webpack_require__(949); + + var _cssAnimation3 = _interopRequireDefault(_cssAnimation2); + + var _toArray2 = __webpack_require__(951); + + var _toArray3 = _interopRequireDefault(_toArray2); + + var _Align2 = __webpack_require__(952); + + var _Align3 = _interopRequireDefault(_Align2); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + exports.all = _all3.default; + exports.componentOrElement = _componentOrElement3.default; + exports.deprecated = _deprecated3.default; + exports.elementType = _elementType3.default; + exports.isRequiredForA11y = _isRequiredForA11y3.default; + exports.splitComponent = _splitComponent3.default; + exports.createChainedFunction = _createChainedFunction3.default; + exports.KeyCode = _keyCode2.default; + exports.contains = _contains3.default; + exports.addEventListener = _addEventListener3.default; + exports.cssAnimation = _cssAnimation3.default; + exports.toArray = _toArray3.default; + //export getContainerRenderMixin from './getContainerRenderMixin'; + + exports.Align = _Align3.default; + + /***/ }), + /* 157 */ + /***/ (function(module, exports, __webpack_require__) { + + "use strict"; + + + exports.__esModule = true; + exports.default = createChainableTypeChecker; + /** + * Copyright 2013-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + + // Mostly taken from ReactPropTypes. + + /* This source code is quoted from rc-util. + * homepage: https://github.com/react-component/util + */ + + function createChainableTypeChecker(validate) { + function checkType(isRequired, props, propName, componentName, location, propFullName) { + var componentNameSafe = componentName || '<>'; + var propFullNameSafe = propFullName || propName; + + if (props[propName] == null) { + if (isRequired) { + return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); + } + + return null; } - var popupMenu = __WEBPACK_IMPORTED_MODULE_5_react_dom___default.a.findDOMNode(_this3.menuInstance); - if (popupMenu.offsetWidth >= _this3.subMenuTitle.offsetWidth) { - return; + + for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { + args[_key - 6] = arguments[_key]; } - /* istanbul ignore next */ - popupMenu.style.minWidth = _this3.subMenuTitle.offsetWidth + 'px'; - }; + return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); + } - this.saveSubMenuTitle = function (subMenuTitle) { - _this3.subMenuTitle = subMenuTitle; - }; - }; + var chainedCheckType = checkType.bind(null, false); + chainedCheckType.isRequired = checkType.bind(null, true); - var connected = Object(__WEBPACK_IMPORTED_MODULE_10_mini_store__["connect"])(function (_ref, _ref2) { - var openKeys = _ref.openKeys, - activeKey = _ref.activeKey, - selectedKeys = _ref.selectedKeys; - var eventKey = _ref2.eventKey, - subMenuKey = _ref2.subMenuKey; - return { - isOpen: openKeys.indexOf(eventKey) > -1, - active: activeKey[subMenuKey] === eventKey, - selectedKeys: selectedKeys - }; - })(SubMenu); + return chainedCheckType; + } - connected.isSubMenu = true; + /***/ }), + /* 158 */ + /***/ (function(module, exports, __webpack_require__) { + + "use strict"; + + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = undefined; + + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + + var _react = __webpack_require__(0); + + var _react2 = _interopRequireDefault(_react); + + var _reactDom = __webpack_require__(3); + + var _reactDom2 = _interopRequireDefault(_reactDom); - /* harmony default export */ __webpack_exports__["a"] = (connected); + var _properties = __webpack_require__(28); - /***/ }), - /* 258 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + var _properties2 = _interopRequireDefault(_properties); - "use strict"; - /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ContainerRender; }); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom__ = __webpack_require__(3); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_dom__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types__ = __webpack_require__(1); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_prop_types__); - function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + var _on = __webpack_require__(17); - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + var _on2 = _interopRequireDefault(_on); - function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + var _classnames = __webpack_require__(2); - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + var _classnames2 = _interopRequireDefault(_classnames); - function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + var _propTypes = __webpack_require__(1); - function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + var _propTypes2 = _interopRequireDefault(_propTypes); - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + var transitionEndEvent = _properties2["default"].end; + //设置状态码 + var UNMOUNTED = exports.UNMOUNTED = 0; + var EXITED = exports.EXITED = 1; + var ENTERING = exports.ENTERING = 2; + var ENTERED = exports.ENTERED = 3; + var EXITING = exports.EXITING = 4; + var propTypes = { + /** + * 是否触发动画 + */ + "in": _propTypes2["default"].bool, - var ContainerRender = /*#__PURE__*/function (_React$Component) { - _inherits(ContainerRender, _React$Component); + /** + * 不显示的时候是否移除组件 + */ + unmountOnExit: _propTypes2["default"].bool, - var _super = _createSuper(ContainerRender); + /** + * 如果设置为默认显示,挂载时显示动画 + */ + transitionAppear: _propTypes2["default"].bool, - function ContainerRender() { - var _this; + /** + * 设置超时时间,防止出现问题,可设置为>=动画时间 + */ + timeout: _propTypes2["default"].number, - _classCallCheck(this, ContainerRender); + /** + * 退出组件时添加的class + */ + exitedClassName: _propTypes2["default"].string, + /** + * 退出组件中添加的class + */ + exitingClassName: _propTypes2["default"].string, + /** + * 进入动画后添加的class + */ + enteredClassName: _propTypes2["default"].string, + /** + * 进入动画时添加的class + */ + enteringClassName: _propTypes2["default"].string, - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } + /** + * 进入动画开始时的钩子函数 + */ + onEnter: _propTypes2["default"].func, + /** + * 进入动画中的钩子函数 + */ + onEntering: _propTypes2["default"].func, + /** + * 进入动画后的钩子函数 + */ + onEntered: _propTypes2["default"].func, + /** + * 退出动画开始时的钩子函数 + */ + onExit: _propTypes2["default"].func, + /** + * 退出动画中的钩子函数 + */ + onExiting: _propTypes2["default"].func, + /** + * 退出动画后的钩子函数 + */ + onExited: _propTypes2["default"].func + }; - _this = _super.call.apply(_super, [this].concat(args)); + function noop() {} - _this.removeContainer = function () { - if (_this.container) { - __WEBPACK_IMPORTED_MODULE_1_react_dom___default.a.unmountComponentAtNode(_this.container); + var defaultProps = { + "in": false, + unmountOnExit: false, + transitionAppear: false, + timeout: 5000, + onEnter: noop, + onEntering: noop, + onEntered: noop, + onExit: noop, + onExiting: noop, + onExited: noop + }; - _this.container.parentNode.removeChild(_this.container); + /** + * 动画组件 + */ - _this.container = null; - } - }; + var Transition = function (_Component) { + _inherits(Transition, _Component); - _this.renderComponent = function (props, ready) { - var _this$props = _this.props, - visible = _this$props.visible, - getComponent = _this$props.getComponent, - forceRender = _this$props.forceRender, - getContainer = _this$props.getContainer, - parent = _this$props.parent; + function Transition(props, context) { + _classCallCheck(this, Transition); - if (visible || parent._component || forceRender) { - if (!_this.container) { - _this.container = getContainer(); - } + var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); - __WEBPACK_IMPORTED_MODULE_1_react_dom___default.a.unstable_renderSubtreeIntoContainer(parent, getComponent(props), _this.container, function callback() { - if (ready) { - ready.call(this); - } - }); - } - }; + var initialStatus = void 0; + if (props["in"]) { + // 在componentdidmount时开始执行动画 + initialStatus = props.transitionAppear ? EXITED : ENTERED; + } else { + initialStatus = props.unmountOnExit ? UNMOUNTED : EXITED; + } + _this.state = { status: initialStatus }; + _this.nextCallback = null; return _this; } - _createClass(ContainerRender, [{ - key: "componentDidMount", - value: function componentDidMount() { - if (this.props.autoMount) { - this.renderComponent(); - } - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate() { - if (this.props.autoMount) { - this.renderComponent(); - } + Transition.prototype.componentDidMount = function componentDidMount() { + if (this.props.transitionAppear && this.props["in"]) { + this.performEnter(this.props); } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - if (this.props.autoDestroy) { - this.removeContainer(); + }; + + Transition.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { + if (nextProps["in"] && this.props.unmountOnExit) { + if (this.state.status === UNMOUNTED) { + // 在componentDidUpdate执行动画. + this.setState({ status: EXITED }); } + } else { + this._needsUpdate = true; } - }, { - key: "render", - value: function render() { - return this.props.children({ - renderComponent: this.renderComponent, - removeContainer: this.removeContainer - }); - } - }]); + }; - return ContainerRender; - }(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component); + Transition.prototype.componentDidUpdate = function componentDidUpdate() { + var status = this.state.status; - ContainerRender.propTypes = { - autoMount: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, - autoDestroy: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, - visible: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, - forceRender: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, - parent: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.any, - getComponent: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func.isRequired, - getContainer: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func.isRequired, - children: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func.isRequired - }; - ContainerRender.defaultProps = { - autoMount: true, - autoDestroy: true, - forceRender: false - }; + if (this.props.unmountOnExit && status === EXITED) { + // 当使用unmountOnExit时,exited为exiting和unmont的过渡状态 + if (this.props["in"]) { + this.performEnter(this.props); + } else { + this.setState({ status: UNMOUNTED }); + } + return; + } - /***/ }), - /* 259 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + // 确保只响应prop变化 + if (this._needsUpdate) { + this._needsUpdate = false; - "use strict"; - /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Portal; }); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom__ = __webpack_require__(3); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_dom__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types__ = __webpack_require__(1); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_prop_types__); - function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + if (this.props["in"]) { + if (status === EXITING) { + this.performEnter(this.props); + } else if (status === EXITED) { + this.performEnter(this.props); + } + // 其他,当我们已经输入或输出 + } else { + if (status === ENTERING || status === ENTERED) { + this.performExit(this.props); + } + // 我们已经输入或输出完成 + } + } + }; - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + Transition.prototype.componentWillUnmount = function componentWillUnmount() { + this.cancelNextCallback(); + }; - function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + Transition.prototype.performEnter = function performEnter(props) { + var _this2 = this; - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + this.cancelNextCallback(); + var node = _reactDom2["default"].findDOMNode(this); - function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + // 这里接收新props + props.onEnter(node); - function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + this.safeSetState({ status: ENTERING }, function () { + _this2.props.onEntering(node); - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + _this2.onTransitionEnd(node, function () { + _this2.safeSetState({ status: ENTERED }, function () { + _this2.props.onEntered(node); + }); + }); + }); + }; - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + Transition.prototype.performExit = function performExit(props) { + var _this3 = this; - function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + this.cancelNextCallback(); + var node = _reactDom2["default"].findDOMNode(this); - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + props.onExit(node); - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + this.safeSetState({ status: EXITING }, function () { + _this3.props.onExiting(node); + _this3.onTransitionEnd(node, function () { + _this3.safeSetState({ status: EXITED }, function () { + _this3.props.onExited(node); + }); + }); + }); + }; + Transition.prototype.cancelNextCallback = function cancelNextCallback() { + if (this.nextCallback !== null) { + this.nextCallback.cancel(); + this.nextCallback = null; + } + }; + Transition.prototype.safeSetState = function safeSetState(nextState, callback) { + // 确保在组件销毁后挂起的setState被消除 + this.setState(nextState, this.setNextCallback(callback)); + }; + Transition.prototype.setNextCallback = function setNextCallback(callback) { + var _this4 = this; - var Portal = /*#__PURE__*/function (_React$Component) { - _inherits(Portal, _React$Component); + var active = true; - var _super = _createSuper(Portal); + this.nextCallback = function (event) { + if (active) { + active = false; + _this4.nextCallback = null; - function Portal() { - _classCallCheck(this, Portal); + callback(event); + } + }; - return _super.apply(this, arguments); - } + this.nextCallback.cancel = function () { + active = false; + }; - _createClass(Portal, [{ - key: "componentDidMount", - value: function componentDidMount() { - this.createContainer(); - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - var didUpdate = this.props.didUpdate; + return this.nextCallback; + }; - if (didUpdate) { - didUpdate(prevProps); - } - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - this.removeContainer(); - } - }, { - key: "createContainer", - value: function createContainer() { - this._container = this.props.getContainer(); - this.forceUpdate(); - } - }, { - key: "removeContainer", - value: function removeContainer() { - if (this._container) { - this._container.parentNode.removeChild(this._container); + Transition.prototype.onTransitionEnd = function onTransitionEnd(node, handler) { + this.setNextCallback(handler); + + if (node) { + if (transitionEndEvent == undefined) { + this.nextCallback(); + } else { + (0, _on2["default"])(node, transitionEndEvent, this.nextCallback); } + setTimeout(this.nextCallback, this.props.timeout); + } else { + setTimeout(this.nextCallback, 0); } - }, { - key: "render", - value: function render() { - if (this._container) { - return __WEBPACK_IMPORTED_MODULE_1_react_dom___default.a.createPortal(this.props.children, this._container); - } + }; + Transition.prototype.render = function render() { + var status = this.state.status; + if (status === UNMOUNTED) { return null; } - }]); - return Portal; - }(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component); + var _props = this.props, + children = _props.children, + className = _props.className, + childProps = _objectWithoutProperties(_props, ['children', 'className']); - Portal.propTypes = { - getContainer: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func.isRequired, - children: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.node.isRequired, - didUpdate: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func - }; + Object.keys(Transition.propTypes).forEach(function (key) { + return delete childProps[key]; + }); + + var transitionClassName = void 0; + if (status === EXITED) { + transitionClassName = this.props.exitedClassName; + } else if (status === ENTERING) { + transitionClassName = this.props.enteringClassName; + } else if (status === ENTERED) { + transitionClassName = this.props.enteredClassName; + } else if (status === EXITING) { + transitionClassName = this.props.exitingClassName; + } + + var child = _react2["default"].Children.only(children); + return _react2["default"].cloneElement(child, _extends({}, childProps, { + className: (0, _classnames2["default"])(child.props.className, className, transitionClassName) + })); + }; + + return Transition; + }(_react.Component); + + Transition.propTypes = propTypes; + + Transition.defaultProps = defaultProps; + exports["default"] = Transition; /***/ }), - /* 260 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + /* 159 */ + /***/ (function(module, exports, __webpack_require__) { "use strict"; - /* harmony export (immutable) */ __webpack_exports__["a"] = getAlignFromPlacement; - /* harmony export (immutable) */ __webpack_exports__["b"] = getAlignPopupClassName; - /* harmony export (immutable) */ __webpack_exports__["c"] = saveRef; - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(8); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); - function isPointsEq(a1, a2, isAlignPoint) { - if (isAlignPoint) { - return a1[0] === a2[0]; - } - return a1[0] === a2[0] && a1[1] === a2[1]; - } - function getAlignFromPlacement(builtinPlacements, placementStr, align) { - var baseAlign = builtinPlacements[placementStr] || {}; - return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, baseAlign, align); - } + exports.__esModule = true; + exports.default = createChainableTypeChecker; + /** + * Copyright 2013-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ - function getAlignPopupClassName(builtinPlacements, prefixCls, align, isAlignPoint) { - var points = align.points; - for (var placement in builtinPlacements) { - if (builtinPlacements.hasOwnProperty(placement)) { - if (isPointsEq(builtinPlacements[placement].points, points, isAlignPoint)) { - return prefixCls + '-placement-' + placement; + // Mostly taken from ReactPropTypes. + + /* This source code is quoted from rc-util. + * homepage: https://github.com/react-component/util + */ + + function createChainableTypeChecker(validate) { + function checkType(isRequired, props, propName, componentName, location, propFullName) { + var componentNameSafe = componentName || '<>'; + var propFullNameSafe = propFullName || propName; + + if (props[propName] == null) { + if (isRequired) { + return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); } + + return null; + } + + for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { + args[_key - 6] = arguments[_key]; } + + return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); } - return ''; - } - function saveRef(name, component) { - this[name] = component; + var chainedCheckType = checkType.bind(null, false); + chainedCheckType.isRequired = checkType.bind(null, true); + + return chainedCheckType; } /***/ }), - /* 261 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + /* 160 */ + /***/ (function(module, exports, __webpack_require__) { "use strict"; - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Align__ = __webpack_require__(799); - // export this package's api - /* harmony default export */ __webpack_exports__["a"] = (__WEBPACK_IMPORTED_MODULE_0__Align__["a" /* default */]); + Object.defineProperty(exports, "__esModule", { + value: true + }); - /***/ }), - /* 262 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + var _VerticalMenu = __webpack_require__(1012); - "use strict"; - var util = { - isAppearSupported: function isAppearSupported(props) { - return props.transitionName && props.transitionAppear || props.animation.appear; - }, - isEnterSupported: function isEnterSupported(props) { - return props.transitionName && props.transitionEnter || props.animation.enter; - }, - isLeaveSupported: function isLeaveSupported(props) { - return props.transitionName && props.transitionLeave || props.animation.leave; - }, - allowAppearCallback: function allowAppearCallback(props) { - return props.transitionAppear || props.animation.appear; - }, - allowEnterCallback: function allowEnterCallback(props) { - return props.transitionEnter || props.animation.enter; - }, - allowLeaveCallback: function allowLeaveCallback(props) { - return props.transitionLeave || props.animation.leave; - } - }; - /* harmony default export */ __webpack_exports__["a"] = (util); + var _VerticalMenu2 = _interopRequireDefault(_VerticalMenu); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + + exports["default"] = _VerticalMenu2["default"]; + module.exports = exports['default']; /***/ }), - /* 263 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + /* 161 */ + /***/ (function(module, exports, __webpack_require__) { "use strict"; - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(23); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(7); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(9); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(10); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react__ = __webpack_require__(0); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types__ = __webpack_require__(1); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_prop_types__); + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.destroyFns = undefined; + var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }(); + var _extends2; + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + var _classnames = __webpack_require__(2); - var LazyRenderBox = function (_Component) { - __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default()(LazyRenderBox, _Component); + var _classnames2 = _interopRequireDefault(_classnames); - function LazyRenderBox() { - __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, LazyRenderBox); + var _events = __webpack_require__(162); - return __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(this, _Component.apply(this, arguments)); - } + var _events2 = _interopRequireDefault(_events); - LazyRenderBox.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) { - return nextProps.hiddenClassName || nextProps.visible; - }; + var _ownerDocument = __webpack_require__(23); - LazyRenderBox.prototype.render = function render() { - var _props = this.props, - hiddenClassName = _props.hiddenClassName, - visible = _props.visible, - props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['hiddenClassName', 'visible']); + var _ownerDocument2 = _interopRequireDefault(_ownerDocument); - if (hiddenClassName || __WEBPACK_IMPORTED_MODULE_4_react___default.a.Children.count(props.children) > 1) { - if (!visible && hiddenClassName) { - props.className += ' ' + hiddenClassName; - } - return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement('div', props); - } + var _inDOM = __webpack_require__(26); - return __WEBPACK_IMPORTED_MODULE_4_react___default.a.Children.only(props.children); - }; + var _inDOM2 = _interopRequireDefault(_inDOM); - return LazyRenderBox; - }(__WEBPACK_IMPORTED_MODULE_4_react__["Component"]); + var _scrollbarSize = __webpack_require__(104); - LazyRenderBox.propTypes = { - children: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.any, - className: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, - visible: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool, - hiddenClassName: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string - }; + var _scrollbarSize2 = _interopRequireDefault(_scrollbarSize); + var _scrollTop = __webpack_require__(45); - /* harmony default export */ __webpack_exports__["a"] = (LazyRenderBox); + var _scrollTop2 = _interopRequireDefault(_scrollTop); - /***/ }), - /* 264 */ - /***/ (function(module, exports, __webpack_require__) { + var _react = __webpack_require__(0); - "use strict"; + var _react2 = _interopRequireDefault(_react); + var _reactDom = __webpack_require__(3); - exports.__esModule = true; - exports.default = addEventListenerWrap; + var _reactDom2 = _interopRequireDefault(_reactDom); - var _addDomEventListener = __webpack_require__(12); + var _Modal = __webpack_require__(163); - var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener); + var _Modal2 = _interopRequireDefault(_Modal); - var _reactDom = __webpack_require__(3); + var _isOverflowing = __webpack_require__(105); - var _reactDom2 = _interopRequireDefault(_reactDom); + var _isOverflowing2 = _interopRequireDefault(_isOverflowing); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + var _tinperBeeCore = __webpack_require__(6); - /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ - function addEventListenerWrap(target, eventType, cb) { - /* eslint camelcase: 2 */ - var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) { - _reactDom2.default.unstable_batchedUpdates(cb, e); - } : cb; - return (0, _addDomEventListener2.default)(target, eventType, callback); - } + var _beeTransition = __webpack_require__(1061); - /***/ }), - /* 265 */ - /***/ (function(module, exports, __webpack_require__) { + var _ModalBody = __webpack_require__(1065); - "use strict"; + var _ModalBody2 = _interopRequireDefault(_ModalBody); + var _ModalDialog = __webpack_require__(1066); - exports.__esModule = true; + var _ModalDialog2 = _interopRequireDefault(_ModalDialog); - var _react = __webpack_require__(0); + var _ModalFooter = __webpack_require__(1115); - var _react2 = _interopRequireDefault(_react); + var _ModalFooter2 = _interopRequireDefault(_ModalFooter); - var _propTypes = __webpack_require__(1); + var _ModalHeader = __webpack_require__(1116); - var _propTypes2 = _interopRequireDefault(_propTypes); + var _ModalHeader2 = _interopRequireDefault(_ModalHeader); - var _reactDom = __webpack_require__(3); + var _ModalTitle = __webpack_require__(1117); - var _reactDom2 = _interopRequireDefault(_reactDom); + var _ModalTitle2 = _interopRequireDefault(_ModalTitle); - var _domAlign = __webpack_require__(13); + var _propTypes = __webpack_require__(1); - var _domAlign2 = _interopRequireDefault(_domAlign); + var _propTypes2 = _interopRequireDefault(_propTypes); - var _addEventListener = __webpack_require__(264); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - var _addEventListener2 = _interopRequireDefault(_addEventListener); + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - //import isWindow from './isWindow'; + var propTypes = _extends({}, _Modal2["default"].propTypes, _ModalDialog2["default"].propTypes, (_extends2 = { - function isWindow(obj) { - /* eslint no-eq-null: 0 */ - /* eslint eqeqeq: 0 */ - return obj != null && obj == obj.window; - } + /** + * 是否弹出遮罩层/遮罩层点击是否触发关闭 + */ + backdrop: _propTypes2["default"].oneOf(['static', true, false]), - function buffer(fn, ms) { - var timer = void 0; + /** + * 点击遮罩层是否允许关闭 + */ + backdropClosable: _propTypes2["default"].bool, + /** + * esc触发关闭 + */ + keyboard: _propTypes2["default"].bool, - function clear() { - if (timer) { - clearTimeout(timer); - timer = null; - } - } + /** + * 显隐时是否使用动画 + */ + animation: _propTypes2["default"].bool, - function bufferFn() { - clear(); - timer = setTimeout(fn, ms); - } + /** + * 传递给模态框的样式 + */ + dialogComponentClass: _tinperBeeCore.elementType, - bufferFn.clear = clear; + /** + * 自动设置焦点 + */ + autoFocus: _propTypes2["default"].bool, - return bufferFn; - } + /** + * 防止打开时焦点离开模态框 + */ + enforceFocus: _propTypes2["default"].bool, - var propTypes = { - childrenProps: _propTypes2.default.object, - align: _propTypes2.default.object.isRequired, - target: _propTypes2.default.func, - onAlign: _propTypes2.default.func, - monitorBufferTime: _propTypes2.default.number, - monitorWindowResize: _propTypes2.default.bool, - disabled: _propTypes2.default.bool, - children: _propTypes2.default.any + /** + * 是否打开模态框 + */ + show: _propTypes2["default"].bool, + + /** + * 关闭时的钩子函数 + */ + onHide: _propTypes2["default"].func, + + onEnter: _propTypes2["default"].func, + + onEntering: _propTypes2["default"].func, + + onEntered: _propTypes2["default"].func, + + onExit: _propTypes2["default"].func, + + onExiting: _propTypes2["default"].func, + + onExited: _propTypes2["default"].func, + + containerClassName: _propTypes2["default"].string + }, _defineProperty(_extends2, 'containerClassName', _propTypes2["default"].string), _defineProperty(_extends2, 'container', _Modal2["default"].propTypes.container), _defineProperty(_extends2, 'size', _propTypes2["default"].oneOf(["sm", "lg", "xlg", ""])), _defineProperty(_extends2, 'width', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'draggable', _propTypes2["default"].bool), _defineProperty(_extends2, 'resizable', _propTypes2["default"].bool), _defineProperty(_extends2, 'resizeClassName', _propTypes2["default"].string), _defineProperty(_extends2, 'onResizeStart', _propTypes2["default"].func), _defineProperty(_extends2, 'onResize', _propTypes2["default"].func), _defineProperty(_extends2, 'onResizeStop', _propTypes2["default"].func), _defineProperty(_extends2, 'minWidth', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'minHeight', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'maxWidth', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'maxHeight', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'bounds', _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].object])), _defineProperty(_extends2, 'className', _propTypes2["default"].string), _defineProperty(_extends2, 'centered', _propTypes2["default"].bool), _defineProperty(_extends2, 'needScroll', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].bool])), _extends2)); + + var defaultProps = _extends({}, _Modal2["default"].defaultProps, { + backdropClosable: true, + animation: true, + dialogComponentClass: _ModalDialog2["default"], + draggable: false, + resizable: false, + clsPrefix: 'u-modal', + className: '', + needScroll: false + }); + + var ModalFuncProps = { + prefixCls: _propTypes2["default"].string, + className: _propTypes2["default"].string, + show: _propTypes2["default"].bool, + title: _react2["default"].ReactNode, + content: _react2["default"].ReactNode, + onOk: _propTypes2["default"].func, + onCancel: _propTypes2["default"].func, + width: _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string]), + okText: _propTypes2["default"].string, + okType: _propTypes2["default"].string, + cancelText: _propTypes2["default"].string, + icon: _react2["default"].ReactNode, + backdrop: _propTypes2["default"].oneOf(['static', true, false]) }; - var defaultProps = { - target: function target() { - return window; - }, - onAlign: function onAlign() {}, + var ModalFunc = function ModalFunc(props) { + destroy = function destroy() {}; + update = function update(newConfig) {}; + }; - monitorBufferTime: 50, - monitorWindowResize: false, - disabled: false + var destroyFns = exports.destroyFns = []; + + var childContextTypes = { + $u_modal: _propTypes2["default"].shape({ + onHide: _propTypes2["default"].func + }) }; - var Align = function (_React$Component) { - _inherits(Align, _React$Component); + var Modal = function (_React$Component) { + _inherits(Modal, _React$Component); - function Align(props) { - _classCallCheck(this, Align); + function Modal(props, context) { + _classCallCheck(this, Modal); - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); + var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context)); - _initialiseProps.call(_this); + _this.scrollTo = function () { + var needScroll = _this.props.needScroll; + if (needScroll) { + if (typeof needScroll == 'number') { + window.scrollTo(0, needScroll); + } else { + window.scrollTo(0, _this.scrollY); + } + } + }; + + _this.onEnter = function (param) { + if (_this.props.needScroll) { + _this.scrollY = window.scrollY; + } + _this.props.onEnter && _this.props.onEnter(param); + }; + + _this.onEntered = function (param) { + if (_this.props.needScroll) { + var scrollY = window.scrollY; + if (scrollY != _this.scrollY || typeof _this.props.needScroll == 'number') { + _this.scrollTo(); + } + } + _this.props.onEntered && _this.props.onEntered(param); + }; + + _this.clearCenteredCls = function () { + var centered = _this.state.centered; + + if (!centered) { + return; + } + _this.offsetTop = _this.getOffsetTop(); + _this.setState({ + centered: false + }); + }; + _this.state = { + style: {}, + centered: props.centered, + draging: false, + draged: false + }; + _this.offsetTop = 0; + _this.handleEntering = _this.handleEntering.bind(_this); + _this.handleExited = _this.handleExited.bind(_this); + _this.handleWindowResize = _this.handleWindowResize.bind(_this); + _this.handleDialogClick = _this.handleDialogClick.bind(_this); return _this; } - Align.prototype.componentDidMount = function componentDidMount() { - var props = this.props; - // if parent ref not attached .... use document.getElementById - this.forceAlign(); - if (!props.disabled && props.monitorWindowResize) { - this.startMonitorWindowResize(); - } + Modal.prototype.getChildContext = function getChildContext() { + return { + $u_modal: { + onHide: this.props.onHide + } + }; }; - Align.prototype.componentDidUpdate = function componentDidUpdate(prevProps) { - var reAlign = false; - var props = this.props; + Modal.prototype.componentWillUnmount = function componentWillUnmount() { + // Clean up the listener if we need to. + this.handleExited(); + }; - if (!props.disabled) { - if (prevProps.disabled || prevProps.align !== props.align) { - reAlign = true; - } else { - var lastTarget = prevProps.target(); - var currentTarget = props.target(); - if (isWindow(lastTarget) && isWindow(currentTarget)) { - reAlign = false; - } else if (lastTarget !== currentTarget) { - reAlign = true; - } - } + Modal.prototype.handleEntering = function handleEntering() { + // FIXME: This should work even when animation is disabled. + _events2["default"].on(window, 'resize', this.handleWindowResize); + this.updateStyle(); + }; + + Modal.prototype.handleExited = function handleExited() { + this.scrollTo(); + this.setState({ + draging: false, + draged: false + }); + // FIXME: This should work even when animation is disabled. + _events2["default"].off(window, 'resize', this.handleWindowResize); + }; + + Modal.prototype.handleWindowResize = function handleWindowResize() { + this.updateStyle(); + }; + + Modal.prototype.handleDialogClick = function handleDialogClick(e) { + if (e.target !== e.currentTarget) { + return; } - if (reAlign) { - this.forceAlign(); + this.props.onHide(); + }; + + Modal.prototype.updateStyle = function updateStyle() { + if (!_inDOM2["default"] || !this._modal) { + return; } - if (props.monitorWindowResize && !props.disabled) { - this.startMonitorWindowResize(); - } else { - this.stopMonitorWindowResize(); + var dialogNode = this._modal.getDialogElement(); + var dialogHeight = dialogNode.scrollHeight; + + var document = (0, _ownerDocument2["default"])(dialogNode); + var bodyIsOverflowing = false; + if (this.props.container) { + bodyIsOverflowing = (0, _isOverflowing2["default"])(_reactDom2["default"].findDOMNode(this.props.container)); } + var modalIsOverflowing = dialogHeight > document.documentElement.clientHeight; + + this.setState({ + style: { + paddingRight: bodyIsOverflowing && !modalIsOverflowing ? (0, _scrollbarSize2["default"])() : undefined, + paddingLeft: !bodyIsOverflowing && modalIsOverflowing ? (0, _scrollbarSize2["default"])() : undefined + } + }); }; + //ResizeStart 时,若模态框设置了 `centered` ,需要把居中属性移除,并通过 offsetTop 制造垂直居中的假象 + //fixbug: Resize 和 centered 一起使用时,拖拽交互不正确 - Align.prototype.componentWillUnmount = function componentWillUnmount() { - this.stopMonitorWindowResize(); + + //计算 ModalDialog 的 offsetTop + Modal.prototype.getOffsetTop = function getOffsetTop() { + var modalDialog = document.getElementsByClassName("u-modal-dialog") && document.getElementsByClassName("u-modal-dialog")[0]; + var topPos = modalDialog && modalDialog.offsetTop; + return topPos; }; - Align.prototype.render = function render() { + Modal.prototype.render = function render() { + var _this2 = this; + var _props = this.props, - childrenProps = _props.childrenProps, - children = _props.children; + backdrop = _props.backdrop, + backdropClosable = _props.backdropClosable, + animation = _props.animation, + show = _props.show, + Dialog = _props.dialogComponentClass, + className = _props.className, + clsPrefix = _props.clsPrefix, + _props$style = _props.style, + style = _props$style === undefined ? {} : _props$style, + size = _props.size, + width = _props.width, + children = _props.children, + onEntering = _props.onEntering, + onExited = _props.onExited, + backdropClassName = _props.backdropClassName, + containerClassName = _props.containerClassName, + draggable = _props.draggable, + resizeClassName = _props.resizeClassName, + bounds = _props.bounds, + container = _props.container, + onStart = _props.onStart, + onStop = _props.onStop, + props = _objectWithoutProperties(_props, ['backdrop', 'backdropClosable', 'animation', 'show', 'dialogComponentClass', 'className', 'clsPrefix', 'style', 'size', 'width', 'children', 'onEntering', 'onExited', 'backdropClassName', 'containerClassName', 'draggable', 'resizeClassName', 'bounds', 'container', 'onStart', 'onStop']); - var child = _react2.default.Children.only(children); - if (childrenProps) { - var newProps = {}; - for (var prop in childrenProps) { - if (childrenProps.hasOwnProperty(prop)) { - newProps[prop] = this.props[childrenProps[prop]]; - } - } - return _react2.default.cloneElement(child, newProps); + var _state = this.state, + centered = _state.centered, + draging = _state.draging, + draged = _state.draged; + + var dialogMarginTop = 30; + //ResizeStart 时,计算 ModalDialog 的 offsetTop + var topPosStyle = this.offsetTop > 0 ? { top: this.offsetTop - dialogMarginTop } : null; + + var _splitComponent = (0, _tinperBeeCore.splitComponent)(props, _Modal2["default"]), + _splitComponent2 = _slicedToArray(_splitComponent, 2), + baseModalProps = _splitComponent2[0], + dialogProps = _splitComponent2[1]; + + var inClassName = show && !animation && 'in'; + + var backdropClasses = _defineProperty({}, clsPrefix + '-backdrop', true); + var containerClasses = _defineProperty({}, clsPrefix + '-open', true); + if (!!centered) { + className += ' ' + clsPrefix + '-centered'; } - return child; + if (draging) { + className += ' draging'; + } + if (draged) { + className += ' draged'; + } + if (Number(width)) width += 'px'; + + var styleRes = _extends({}, this.state.style, style, topPosStyle); + if (width) { + _extends(styleRes, { width: width }); + } + return _react2["default"].createElement( + _Modal2["default"], + _extends({}, baseModalProps, { + ref: function ref(c) { + _this2._modal = c; + }, + show: show, + onEnter: this.onEnter, + onEntered: this.onEntered, + onEntering: (0, _tinperBeeCore.createChainedFunction)(onEntering, this.handleEntering), + onExited: (0, _tinperBeeCore.createChainedFunction)(onExited, this.handleExited), + backdrop: backdrop, + backdropClassName: (0, _classnames2["default"])(backdropClasses, inClassName, backdropClassName), + containerClassName: (0, _classnames2["default"])(containerClasses, containerClassName), + transition: animation ? _beeTransition.Fade : undefined, + dialogTransitionTimeout: Modal.TRANSITION_DURATION, + backdropTransitionTimeout: Modal.BACKDROP_TRANSITION_DURATION, + container: container + }), + _react2["default"].createElement( + Dialog, + _extends({}, dialogProps, { + style: styleRes, + className: (0, _classnames2["default"])(className, inClassName, backdropClassName), + onClick: backdrop === true && !!backdropClosable ? this.handleDialogClick : null, + size: size, + draggable: draggable, + bounds: bounds, + resizeClassName: resizeClassName, + clearCenteredCls: this.clearCenteredCls, + onStart: function onStart() { + _this2.setState({ + draging: true, + draged: false + }); + }, + onStop: function onStop() { + _this2.setState({ + draging: false, + draged: true + }); + } + }), + children + ) + ); }; - return Align; - }(_react2.default.Component); + return Modal; + }(_react2["default"].Component); - var _initialiseProps = function _initialiseProps() { - var _this2 = this; + Modal.info = ModalFunc; + Modal.success = ModalFunc; + Modal.error = ModalFunc; + Modal.warn = ModalFunc; + Modal.warning = ModalFunc; + Modal.confirm = ModalFunc; - this.startMonitorWindowResize = function () { - if (!_this2.resizeHandler) { - _this2.bufferMonitor = buffer(_this2.forceAlign, _this2.props.monitorBufferTime); - _this2.resizeHandler = (0, _addEventListener2.default)(window, 'resize', _this2.bufferMonitor); - } - }; + Modal.destroyAll = function () { + return; + }; - this.stopMonitorWindowResize = function () { - if (_this2.resizeHandler) { - _this2.bufferMonitor.clear(); - _this2.resizeHandler.remove(); - _this2.resizeHandler = null; - } - }; + Modal.propTypes = propTypes; + Modal.defaultProps = defaultProps; + Modal.childContextTypes = childContextTypes; - this.forceAlign = function () { - var props = _this2.props; - if (!props.disabled) { - var source = _reactDom2.default.findDOMNode(_this2); - props.onAlign(source, (0, _domAlign2.default)(source, props.target(), props.align)); - } - }; - }; + Modal.Body = _ModalBody2["default"]; + Modal.Header = _ModalHeader2["default"]; + Modal.Title = _ModalTitle2["default"]; + Modal.Footer = _ModalFooter2["default"]; - ; + Modal.Dialog = _ModalDialog2["default"]; - Align.defaultProps = defaultProps; - Align.propTypes = propTypes; + Modal.TRANSITION_DURATION = 200000; + Modal.BACKDROP_TRANSITION_DURATION = 10000; - exports.default = Align; + exports["default"] = Modal; /***/ }), - /* 266 */ + /* 162 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -133635,211 +123170,95 @@ Object.defineProperty(exports, "__esModule", { value: true }); - var util = { - isAppearSupported: function isAppearSupported(props) { - return props.transitionName && props.transitionAppear || props.animation.appear; - }, - isEnterSupported: function isEnterSupported(props) { - return props.transitionName && props.transitionEnter || props.animation.enter; - }, - isLeaveSupported: function isLeaveSupported(props) { - return props.transitionName && props.transitionLeave || props.animation.leave; - }, - allowAppearCallback: function allowAppearCallback(props) { - return props.transitionAppear || props.animation.appear; - }, - allowEnterCallback: function allowEnterCallback(props) { - return props.transitionEnter || props.animation.enter; - }, - allowLeaveCallback: function allowLeaveCallback(props) { - return props.transitionLeave || props.animation.leave; - } - }; - exports["default"] = util; - module.exports = exports["default"]; + exports.listen = exports.filter = exports.off = exports.on = undefined; - /***/ }), - /* 267 */ - /***/ (function(module, exports, __webpack_require__) { + var _on = __webpack_require__(17); - "use strict"; + var _on2 = _interopRequireDefault(_on); + var _off = __webpack_require__(49); - Object.defineProperty(exports, "__esModule", { - value: true - }); + var _off2 = _interopRequireDefault(_off); - var _react = __webpack_require__(0); + var _filter = __webpack_require__(1036); - var _react2 = _interopRequireDefault(_react); + var _filter2 = _interopRequireDefault(_filter); - var _propTypes = __webpack_require__(1); + var _listen = __webpack_require__(1038); - var _propTypes2 = _interopRequireDefault(_propTypes); + var _listen2 = _interopRequireDefault(_listen); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + exports.on = _on2.default; + exports.off = _off2.default; + exports.filter = _filter2.default; + exports.listen = _listen2.default; + exports.default = { on: _on2.default, off: _off2.default, filter: _filter2.default, listen: _listen2.default }; - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + /***/ }), + /* 163 */ + /***/ (function(module, exports, __webpack_require__) { - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + "use strict"; - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** - * This source code is quoted from rc-trigger. - * homepage: https://github.com/react-component/trigger - */ + Object.defineProperty(exports, "__esModule", { + value: true + }); + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; /*eslint-disable react/prop-types */ - var propTypes = { - children: _propTypes2["default"].any, - className: _propTypes2["default"].string, - visible: _propTypes2["default"].bool, - hiddenClassName: _propTypes2["default"].string - }; - var LazyRenderBox = function (_Component) { - _inherits(LazyRenderBox, _Component); + var _react = __webpack_require__(0); - function LazyRenderBox() { - _classCallCheck(this, LazyRenderBox); + var _react2 = _interopRequireDefault(_react); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + var _propTypes = __webpack_require__(1); - LazyRenderBox.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) { - return nextProps.hiddenClassName || nextProps.visible; - }; + var _propTypes2 = _interopRequireDefault(_propTypes); - LazyRenderBox.prototype.render = function render() { - var _props = this.props, - hiddenClassName = _props.hiddenClassName, - visible = _props.visible, - props = _objectWithoutProperties(_props, ['hiddenClassName', 'visible']); + var _warning = __webpack_require__(11); - if (hiddenClassName || _react2["default"].Children.count(props.children) > 1) { - if (!visible && hiddenClassName) { - props.className += ' ' + hiddenClassName; - } - return _react2["default"].createElement('div', props); - } + var _warning2 = _interopRequireDefault(_warning); - return _react2["default"].Children.only(props.children); - }; + var _tinperBeeCore = __webpack_require__(294); - return LazyRenderBox; - }(_react.Component); + var _Portal = __webpack_require__(1052); - ; - LazyRenderBox.propTypes = propTypes; + var _Portal2 = _interopRequireDefault(_Portal); - exports["default"] = LazyRenderBox; - module.exports = exports['default']; + var _ModalManager = __webpack_require__(1053); - /***/ }), - /* 268 */ - /***/ (function(module, exports, __webpack_require__) { + var _ModalManager2 = _interopRequireDefault(_ModalManager); - "use strict"; + var _ownerDocument = __webpack_require__(296); + var _ownerDocument2 = _interopRequireDefault(_ownerDocument); - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.SelectPropTypes = undefined; + var _addEventListener = __webpack_require__(1058); - var _propTypes = __webpack_require__(1); + var _addEventListener2 = _interopRequireDefault(_addEventListener); - var _propTypes2 = _interopRequireDefault(_propTypes); + var _addFocusListener = __webpack_require__(1059); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var _addFocusListener2 = _interopRequireDefault(_addFocusListener); - function valueType(props, propName, componentName) { - var basicType = _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].number]); + var _inDOM = __webpack_require__(26); - var labelInValueShape = _propTypes2["default"].shape({ - key: basicType.isRequired, - label: _propTypes2["default"].node - }); - if (props.labelInValue) { - var validate = _propTypes2["default"].oneOfType([_propTypes2["default"].arrayOf(labelInValueShape), labelInValueShape]); - var error = validate.apply(undefined, arguments); - if (error) { - return new Error('Invalid prop `' + propName + '` supplied to `' + componentName + '`, ' + ('when you set `labelInValue` to `true`, `' + propName + '` should in ') + 'shape of `{ key: string | number, label?: ReactNode }`.'); - } - } else if ((props.mode === 'multiple' || props.mode === 'tags' || props.multiple || props.tags) && props[propName] === '') { - return new Error('Invalid prop `' + propName + '` of type `string` supplied to `' + componentName + '`, ' + 'expected `array` when `multiple` or `tags` is `true`.'); - } else { - var _validate = _propTypes2["default"].oneOfType([_propTypes2["default"].arrayOf(basicType), basicType]); - return _validate.apply(undefined, arguments); - } - } /** - * This source code is quoted from rc-select. - * homepage: https://github.com/react-component/select - */ - var SelectPropTypes = exports.SelectPropTypes = { - id: _propTypes2["default"].string, - defaultActiveFirstOption: _propTypes2["default"].bool, - multiple: _propTypes2["default"].bool, - filterOption: _propTypes2["default"].any, - children: _propTypes2["default"].any, - showSearch: _propTypes2["default"].bool, - disabled: _propTypes2["default"].bool, - allowClear: _propTypes2["default"].bool, - showArrow: _propTypes2["default"].bool, - tags: _propTypes2["default"].bool, - prefixCls: _propTypes2["default"].string, - className: _propTypes2["default"].string, - transitionName: _propTypes2["default"].string, - optionLabelProp: _propTypes2["default"].string, - optionFilterProp: _propTypes2["default"].string, - animation: _propTypes2["default"].string, - choiceTransitionName: _propTypes2["default"].string, - open: _propTypes2["default"].bool, - defaultOpen: _propTypes2["default"].bool, - onChange: _propTypes2["default"].func, - onBlur: _propTypes2["default"].func, - onFocus: _propTypes2["default"].func, - onSelect: _propTypes2["default"].func, - onSearch: _propTypes2["default"].func, - onPopupScroll: _propTypes2["default"].func, - onMouseEnter: _propTypes2["default"].func, - onMouseLeave: _propTypes2["default"].func, - onInputKeyDown: _propTypes2["default"].func, - placeholder: _propTypes2["default"].any, - onDeselect: _propTypes2["default"].func, - labelInValue: _propTypes2["default"].bool, - value: valueType, - defaultValue: valueType, - dropdownStyle: _propTypes2["default"].object, - maxTagTextLength: _propTypes2["default"].number, - maxTagCount: _propTypes2["default"].number, - maxTagPlaceholder: _propTypes2["default"].oneOfType([_propTypes2["default"].node, _propTypes2["default"].func]), - tokenSeparators: _propTypes2["default"].arrayOf(_propTypes2["default"].string), - getInputElement: _propTypes2["default"].func, - showAction: _propTypes2["default"].arrayOf(_propTypes2["default"].string), - clearIcon: _propTypes2["default"].node, - inputIcon: _propTypes2["default"].node, - removeIcon: _propTypes2["default"].node, - menuItemSelectedIcon: _propTypes2["default"].oneOfType([_propTypes2["default"].func, _propTypes2["default"].node]) - }; + var _inDOM2 = _interopRequireDefault(_inDOM); - /***/ }), - /* 269 */ - /***/ (function(module, exports, __webpack_require__) { + var _activeElement = __webpack_require__(1060); - "use strict"; + var _activeElement2 = _interopRequireDefault(_activeElement); + var _contains = __webpack_require__(27); - Object.defineProperty(exports, "__esModule", { - value: true - }); + var _contains2 = _interopRequireDefault(_contains); - var _react = __webpack_require__(0); + var _getContainer = __webpack_require__(297); - var _react2 = _interopRequireDefault(_react); + var _getContainer2 = _interopRequireDefault(_getContainer); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -133851,510 +123270,529 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - var OptGroup = function (_React$Component) { - _inherits(OptGroup, _React$Component); - - function OptGroup() { - _classCallCheck(this, OptGroup); + var modalManager = new _ModalManager2["default"](); - return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); - } + /** + * 模态框 + */ - return OptGroup; - }(_react2["default"].Component); + var propTypes = _extends({}, _Portal2["default"].propTypes, { - OptGroup.isSelectOptGroup = true; - exports["default"] = OptGroup; - module.exports = exports['default']; + /** + * 是否显示 + */ + show: _propTypes2["default"].bool, - /***/ }), - /* 270 */ - /***/ (function(module, exports, __webpack_require__) { + /** + * 容器 + */ + container: _propTypes2["default"].oneOfType([_tinperBeeCore.componentOrElement, _propTypes2["default"].func]), - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress - * @license MIT */ + /** + * 当模态框打开时的钩子函数 + */ + onShow: _propTypes2["default"].func, - ;(function(root, factory) { + /** + * 当show参数为false时触发的模态框关闭时的钩子函数 + */ + onHide: _propTypes2["default"].func, - if (true) { - !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory), - __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? - (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) : - __WEBPACK_AMD_DEFINE_FACTORY__), - __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof exports === 'object') { - module.exports = factory(); - } else { - root.NProgress = factory(); - } + /** + * 是否包含背景 + */ + backdrop: _propTypes2["default"].oneOfType([_propTypes2["default"].bool, _propTypes2["default"].oneOf(['static'])]), - })(this, function() { - var NProgress = {}; + /** + *返回背景组件的函数 + */ + renderBackdrop: _propTypes2["default"].func, - NProgress.version = '0.2.0'; + /** + * 设置esc键特殊钩子函数 + */ + onEscapeKeyUp: _propTypes2["default"].func, - var Settings = NProgress.settings = { - minimum: 0.08, - easing: 'ease', - positionUsing: '', - speed: 200, - trickle: true, - trickleRate: 0.02, - trickleSpeed: 800, - showSpinner: true, - barSelector: '[role="bar"]', - spinnerSelector: '[role="spinner"]', - parent: 'body', - template: '
    ' - }; + /** + * 当点击背景时触发的函数 + */ + onBackdropClick: _propTypes2["default"].func, /** - * Updates configuration. - * - * NProgress.configure({ - * minimum: 0.1 - * }); + * 背景的style */ - NProgress.configure = function(options) { - var key, value; - for (key in options) { - value = options[key]; - if (value !== undefined && options.hasOwnProperty(key)) Settings[key] = value; - } + backdropStyle: _propTypes2["default"].object, - return this; - }; + /** + * 背景的class + */ + backdropClassName: _propTypes2["default"].string, /** - * Last number. + *容器的class */ + containerClassName: _propTypes2["default"].string, - NProgress.status = null; + /** + * 按esc键是否关闭模态框 + */ + keyboard: _propTypes2["default"].bool, /** - * Sets the progress bar status, where `n` is a number from `0.0` to `1.0`. - * - * NProgress.set(0.4); - * NProgress.set(1.0); + * 动画组件 */ + transition: _tinperBeeCore.elementType, - NProgress.set = function(n) { - var started = NProgress.isStarted(); + /** + * 设置动画超时时间 + */ + dialogTransitionTimeout: _propTypes2["default"].number, - n = clamp(n, Settings.minimum, 1); - NProgress.status = (n === 1 ? null : n); + /** + * 设置背景动画超时时间 + */ + backdropTransitionTimeout: _propTypes2["default"].number, - var progress = NProgress.render(!started), - bar = progress.querySelector(Settings.barSelector), - speed = Settings.speed, - ease = Settings.easing; + /** + * 是否自动设置焦点 + */ + autoFocus: _propTypes2["default"].bool, - progress.offsetWidth; /* Repaint */ + /** + * 防止焦点离开模态框 + */ + enforceFocus: _propTypes2["default"].bool, - queue(function(next) { - // Set positionUsing if it hasn't already been set - if (Settings.positionUsing === '') Settings.positionUsing = NProgress.getPositioningCSS(); + /** + * 模态框进入时的钩子函数 + */ + onEnter: _propTypes2["default"].func, - // Add transition - css(bar, barPositionCSS(n, speed, ease)); + /** + * 模态框开始进入时的钩子函数 + */ + onEntering: _propTypes2["default"].func, - if (n === 1) { - // Fade out - css(progress, { - transition: 'none', - opacity: 1 - }); - progress.offsetWidth; /* Repaint */ + /** + * 模态框进入后的钩子函数 + */ + onEntered: _propTypes2["default"].func, - setTimeout(function() { - css(progress, { - transition: 'all ' + speed + 'ms linear', - opacity: 0 - }); - setTimeout(function() { - NProgress.remove(); - next(); - }, speed); - }, speed); - } else { - setTimeout(next, speed); - } - }); + /** + * 模态框退出时的钩子函数 + */ + onExit: _propTypes2["default"].func, - return this; - }; + /** + * 模态框开始退出时的钩子函数 + */ + onExiting: _propTypes2["default"].func, - NProgress.isStarted = function() { - return typeof NProgress.status === 'number'; - }; + /** + * 模态框推出后的钩子函数 + */ + onExited: _propTypes2["default"].func, /** - * Shows the progress bar. - * This is the same as setting the status to 0%, except that it doesn't go backwards. - * - * NProgress.start(); - * + *管理model状态的实例 */ - NProgress.start = function() { - if (!NProgress.status) NProgress.set(0); + manager: _propTypes2["default"].object.isRequired + }); - var work = function() { - setTimeout(function() { - if (!NProgress.status) return; - NProgress.trickle(); - work(); - }, Settings.trickleSpeed); - }; + var defaultProps = { + show: false, + backdrop: true, + keyboard: true, + autoFocus: true, + enforceFocus: true, + onHide: function onHide() {}, + manager: modalManager, + renderBackdrop: function renderBackdrop(props) { + return _react2["default"].createElement('div', props); + } + }; - if (Settings.trickle) work(); + var BaseModal = function (_Component) { + _inherits(BaseModal, _Component); - return this; - }; + function BaseModal(props, content) { + _classCallCheck(this, BaseModal); - /** - * Hides the progress bar. - * This is the *sort of* the same as setting the status to 100%, with the - * difference being `done()` makes some placebo effect of some realistic motion. - * - * NProgress.done(); - * - * If `true` is passed, it will show the progress bar even if its hidden. - * - * NProgress.done(true); - */ + var _this = _possibleConstructorReturn(this, _Component.call(this, props)); - NProgress.done = function(force) { - if (!force && !NProgress.status) return this; + _this.state = { + exited: !_this.props.show + }; - return NProgress.inc(0.3 + 0.5 * Math.random()).set(1); + _this.onShow = _this.onShow.bind(_this); + _this.onHide = _this.onHide.bind(_this); + _this.setMountNode = _this.setMountNode.bind(_this); + _this.handleHidden = _this.handleHidden.bind(_this); + _this.handleBackdropClick = _this.handleBackdropClick.bind(_this); + _this.handleDocumentKeyUp = _this.handleDocumentKeyUp.bind(_this); + _this.checkForFocus = _this.checkForFocus.bind(_this); + _this.focus = _this.focus.bind(_this); + _this.restoreLastFocus = _this.restoreLastFocus.bind(_this); + _this.enforceFocus = _this.enforceFocus.bind(_this); + _this.getDialogElement = _this.getDialogElement.bind(_this); + _this.isTopModal = _this.isTopModal.bind(_this); + _this.renderBackdrop = _this.renderBackdrop.bind(_this); + return _this; + } + + BaseModal.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { + if (nextProps.show) { + this.setState({ exited: false }); + } else if (!nextProps.transition) { + // Otherwise let handleHidden take care of marking exited. + this.setState({ exited: true }); + } }; - /** - * Increments by a random amount. - */ + BaseModal.prototype.componentWillUpdate = function componentWillUpdate(nextProps) { + if (!this.props.show && nextProps.show) { + this.checkForFocus(); + } + }; - NProgress.inc = function(amount) { - var n = NProgress.status; + BaseModal.prototype.componentDidMount = function componentDidMount() { + if (this.props.show) { + this.onShow(); + } + this.mounted = true; + }; - if (!n) { - return NProgress.start(); - } else { - if (typeof amount !== 'number') { - amount = (1 - n) * clamp(Math.random() * n, 0.1, 0.95); - } + BaseModal.prototype.componentDidUpdate = function componentDidUpdate(prevProps) { + var transition = this.props.transition; - n = clamp(n + amount, 0, 0.994); - return NProgress.set(n); + + if (prevProps.show && !this.props.show && !transition) { + // Otherwise handleHidden will call this. + this.onHide(); + } else if (!prevProps.show && this.props.show) { + this.onShow(); } }; - NProgress.trickle = function() { - return NProgress.inc(Math.random() * Settings.trickleRate); + BaseModal.prototype.componentWillUnmount = function componentWillUnmount() { + var _props = this.props, + show = _props.show, + transition = _props.transition; + + + if (show || transition && !this.state.exited) { + this.onHide(); + } + + this.mounted = false; }; - /** - * Waits for all supplied jQuery promises and - * increases the progress as the promises resolve. - * - * @param $promise jQUery Promise - */ - (function() { - var initial = 0, current = 0; + BaseModal.prototype.onShow = function onShow() { + var doc = (0, _ownerDocument2["default"])(this); + var container = (0, _getContainer2["default"])(this.props.container, doc.body); - NProgress.promise = function($promise) { - if (!$promise || $promise.state() === "resolved") { - return this; - } + this.props.manager.add(this, container, this.props.containerClassName); - if (current === 0) { - NProgress.start(); - } + this._onDocumentKeyupListener = (0, _addEventListener2["default"])(doc, 'keyup', this.handleDocumentKeyUp); - initial++; - current++; + this._onFocusinListener = (0, _addFocusListener2["default"])(this.enforceFocus); - $promise.always(function() { - current--; - if (current === 0) { - initial = 0; - NProgress.done(); - } else { - NProgress.set((initial - current) / initial); - } - }); + this.focus(); - return this; - }; + if (this.props.onShow) { + this.props.onShow(); + } + }; - })(); + BaseModal.prototype.onHide = function onHide() { + this.props.manager.remove(this); - /** - * (Internal) renders the progress bar markup based on the `template` - * setting. - */ + this._onDocumentKeyupListener.remove(); - NProgress.render = function(fromStart) { - if (NProgress.isRendered()) return document.getElementById('nprogress'); + this._onFocusinListener.remove(); - addClass(document.documentElement, 'nprogress-busy'); - - var progress = document.createElement('div'); - progress.id = 'nprogress'; - progress.innerHTML = Settings.template; + this.restoreLastFocus(); + }; - var bar = progress.querySelector(Settings.barSelector), - perc = fromStart ? '-100' : toBarPerc(NProgress.status || 0), - parent = document.querySelector(Settings.parent), - spinner; - - css(bar, { - transition: 'all 0 linear', - transform: 'translate3d(' + perc + '%,0,0)' - }); + BaseModal.prototype.setMountNode = function setMountNode(ref) { + this.mountNode = ref ? ref.getMountNode() : ref; + }; - if (!Settings.showSpinner) { - spinner = progress.querySelector(Settings.spinnerSelector); - spinner && removeElement(spinner); - } + BaseModal.prototype.handleHidden = function handleHidden() { + this.setState({ exited: true }); + this.onHide(); - if (parent != document.body) { - addClass(parent, 'nprogress-custom-parent'); - } + if (this.props.onExited) { + var _props2; - parent.appendChild(progress); - return progress; + (_props2 = this.props).onExited.apply(_props2, arguments); + } }; - /** - * Removes the element. Opposite of render(). - */ + BaseModal.prototype.handleBackdropClick = function handleBackdropClick(e) { + if (e.target !== e.currentTarget) { + return; + } - NProgress.remove = function() { - removeClass(document.documentElement, 'nprogress-busy'); - removeClass(document.querySelector(Settings.parent), 'nprogress-custom-parent'); - var progress = document.getElementById('nprogress'); - progress && removeElement(progress); + if (this.props.onBackdropClick) { + this.props.onBackdropClick(e); + } + + if (this.props.backdrop === true) { + this.props.onHide(); + } }; - /** - * Checks if the progress bar is rendered. - */ + BaseModal.prototype.handleDocumentKeyUp = function handleDocumentKeyUp(e) { + if (this.props.keyboard && e.keyCode === 27 && this.isTopModal()) { + if (this.props.onEscapeKeyUp) { + this.props.onEscapeKeyUp(e); + } + this.props.onHide(); + } + }; - NProgress.isRendered = function() { - return !!document.getElementById('nprogress'); + BaseModal.prototype.checkForFocus = function checkForFocus() { + if (_inDOM2["default"]) { + this.lastFocus = (0, _activeElement2["default"])(); + } }; - /** - * Determine which positioning CSS rule to use. - */ + BaseModal.prototype.focus = function focus() { + var autoFocus = this.props.autoFocus; + var modalContent = this.getDialogElement(); + var current = (0, _activeElement2["default"])((0, _ownerDocument2["default"])(this)); + var focusInModal = current && (0, _contains2["default"])(modalContent, current); - NProgress.getPositioningCSS = function() { - // Sniff on document.body.style - var bodyStyle = document.body.style; + if (modalContent && autoFocus && !focusInModal) { + this.lastFocus = current; - // Sniff prefixes - var vendorPrefix = ('WebkitTransform' in bodyStyle) ? 'Webkit' : - ('MozTransform' in bodyStyle) ? 'Moz' : - ('msTransform' in bodyStyle) ? 'ms' : - ('OTransform' in bodyStyle) ? 'O' : ''; + if (!modalContent.hasAttribute('tabIndex')) { + modalContent.setAttribute('tabIndex', -1); + (0, _warning2["default"])(false, 'The modal content node does not accept focus. ' + 'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'); + } - if (vendorPrefix + 'Perspective' in bodyStyle) { - // Modern browsers with 3D support, e.g. Webkit, IE10 - return 'translate3d'; - } else if (vendorPrefix + 'Transform' in bodyStyle) { - // Browsers without 3D support, e.g. IE9 - return 'translate'; - } else { - // Browsers without translate() support, e.g. IE7-8 - return 'margin'; + modalContent.focus(); } }; - /** - * Helpers - */ + BaseModal.prototype.restoreLastFocus = function restoreLastFocus() { + // Support: <=IE11 doesn't support `focus()` on svg elements (RB: #917) + if (this.lastFocus && this.lastFocus.focus) { + this.lastFocus.focus(); + this.lastFocus = null; + } + }; - function clamp(n, min, max) { - if (n < min) return min; - if (n > max) return max; - return n; - } + BaseModal.prototype.enforceFocus = function enforceFocus() { + var enforceFocus = this.props.enforceFocus; - /** - * (Internal) converts a percentage (`0..1`) to a bar translateX - * percentage (`-100%..0%`). - */ - function toBarPerc(n) { - return (-1 + n) * 100; - } + if (!enforceFocus || !this.mounted || !this.isTopModal()) { + return; + } + var active = (0, _activeElement2["default"])((0, _ownerDocument2["default"])(this)); + var modal = this.getDialogElement(); - /** - * (Internal) returns the correct CSS for changing the bar's - * position given an n percentage, and speed and ease from Settings - */ + if (modal && modal !== active && !(0, _contains2["default"])(modal, active)) { + modal.focus(); + } + }; - function barPositionCSS(n, speed, ease) { - var barCSS; + //instead of a ref, which might conflict with one the parent applied. - if (Settings.positionUsing === 'translate3d') { - barCSS = { transform: 'translate3d('+toBarPerc(n)+'%,0,0)' }; - } else if (Settings.positionUsing === 'translate') { - barCSS = { transform: 'translate('+toBarPerc(n)+'%,0)' }; - } else { - barCSS = { 'margin-left': toBarPerc(n)+'%' }; - } - barCSS.transition = 'all '+speed+'ms '+ease; + BaseModal.prototype.getDialogElement = function getDialogElement() { + var node = this.refs.modal; + return node && node.lastChild; + }; - return barCSS; - } + BaseModal.prototype.isTopModal = function isTopModal() { + return this.props.manager.isTopModal(this); + }; - /** - * (Internal) Queues a function to be executed. - */ + BaseModal.prototype.renderBackdrop = function renderBackdrop() { + var _this2 = this; - var queue = (function() { - var pending = []; - - function next() { - var fn = pending.shift(); - if (fn) { - fn(next); - } - } + var _props3 = this.props, + backdropStyle = _props3.backdropStyle, + backdropClassName = _props3.backdropClassName, + renderBackdrop = _props3.renderBackdrop, + Transition = _props3.transition, + backdropTransitionTimeout = _props3.backdropTransitionTimeout; - return function(fn) { - pending.push(fn); - if (pending.length == 1) next(); - }; - })(); - /** - * (Internal) Applies css properties to an element, similar to the jQuery - * css method. - * - * While this helper does assist with vendor prefixed property names, it - * does not perform any manipulation of values prior to setting styles. - */ + var backdropRef = function backdropRef(ref) { + return _this2.backdrop = ref; + }; - var css = (function() { - var cssPrefixes = [ 'Webkit', 'O', 'Moz', 'ms' ], - cssProps = {}; + var backdrop = _react2["default"].createElement('div', { + ref: backdropRef, + style: this.props.backdropStyle, + className: this.props.backdropClassName, + onClick: this.handleBackdropClick + }); - function camelCase(string) { - return string.replace(/^-ms-/, 'ms-').replace(/-([\da-z])/gi, function(match, letter) { - return letter.toUpperCase(); - }); + if (Transition) { + backdrop = _react2["default"].createElement( + Transition, + { transitionAppear: true, + 'in': this.props.show, + timeout: backdropTransitionTimeout + }, + renderBackdrop({ + ref: backdropRef, + style: backdropStyle, + className: backdropClassName, + onClick: this.handleBackdropClick + }) + ); } - function getVendorProp(name) { - var style = document.body.style; - if (name in style) return name; + return backdrop; + }; - var i = cssPrefixes.length, - capName = name.charAt(0).toUpperCase() + name.slice(1), - vendorName; - while (i--) { - vendorName = cssPrefixes[i] + capName; - if (vendorName in style) return vendorName; - } + BaseModal.prototype.render = function render() { + var _props4 = this.props, + show = _props4.show, + container = _props4.container, + children = _props4.children, + Transition = _props4.transition, + backdrop = _props4.backdrop, + dialogTransitionTimeout = _props4.dialogTransitionTimeout, + className = _props4.className, + style = _props4.style, + onExit = _props4.onExit, + onExiting = _props4.onExiting, + onEnter = _props4.onEnter, + onEntering = _props4.onEntering, + onEntered = _props4.onEntered; - return name; + + var dialog = _react2["default"].Children.only(children); + + var mountModal = show || Transition && !this.state.exited; + if (!mountModal) { + return null; } - function getStyleProp(name) { - name = camelCase(name); - return cssProps[name] || (cssProps[name] = getVendorProp(name)); + var _dialog$props = dialog.props, + role = _dialog$props.role, + tabIndex = _dialog$props.tabIndex; + + + if (role === undefined || tabIndex === undefined) { + dialog = (0, _react.cloneElement)(dialog, { + role: role === undefined ? 'document' : role, + tabIndex: tabIndex == null ? '-1' : tabIndex + }); } - function applyCss(element, prop, value) { - prop = getStyleProp(prop); - element.style[prop] = value; + if (Transition) { + dialog = _react2["default"].createElement( + Transition, + { + transitionAppear: true, + unmountOnExit: true, + 'in': show, + timeout: dialogTransitionTimeout, + onExit: onExit, + onExiting: onExiting, + onExited: this.handleHidden, + onEnter: onEnter, + onEntering: onEntering, + onEntered: onEntered + }, + dialog + ); } - return function(element, properties) { - var args = arguments, - prop, - value; + return _react2["default"].createElement( + _Portal2["default"], + { + ref: this.setMountNode, + container: container + }, + _react2["default"].createElement( + 'div', + { + ref: 'modal', + role: role || 'dialog', + style: style, + className: className + }, + backdrop && this.renderBackdrop(), + dialog + ) + ); + }; - if (args.length == 2) { - for (prop in properties) { - value = properties[prop]; - if (value !== undefined && properties.hasOwnProperty(prop)) applyCss(element, prop, value); - } - } else { - applyCss(element, args[1], args[2]); - } - } - })(); + return BaseModal; + }(_react.Component); - /** - * (Internal) Determines if an element or space separated list of class names contains a class name. - */ + ; - function hasClass(element, name) { - var list = typeof element == 'string' ? element : classList(element); - return list.indexOf(' ' + name + ' ') >= 0; - } + BaseModal.Manager = _ModalManager2["default"]; - /** - * (Internal) Adds a class to an element. - */ + BaseModal.propTypes = propTypes; + BaseModal.defaultProps = defaultProps; - function addClass(element, name) { - var oldList = classList(element), - newList = oldList + name; + exports["default"] = BaseModal; + module.exports = exports['default']; - if (hasClass(oldList, name)) return; + /***/ }), + /* 164 */ + /***/ (function(module, exports, __webpack_require__) { - // Trim the opening space. - element.className = newList.substring(1); - } + "use strict"; - /** - * (Internal) Removes a class from an element. - */ - function removeClass(element, name) { - var oldList = classList(element), - newList; + exports.__esModule = true; + exports.default = createChainableTypeChecker; + /** + * Copyright 2013-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ - if (!hasClass(element, name)) return; + // Mostly taken from ReactPropTypes. - // Replace the class name. - newList = oldList.replace(' ' + name + ' ', ' '); + /* This source code is quoted from rc-util. + * homepage: https://github.com/react-component/util + */ - // Trim the opening and closing spaces. - element.className = newList.substring(1, newList.length - 1); - } + function createChainableTypeChecker(validate) { + function checkType(isRequired, props, propName, componentName, location, propFullName) { + var componentNameSafe = componentName || '<>'; + var propFullNameSafe = propFullName || propName; - /** - * (Internal) Gets a space separated list of the class names on the element. - * The list is wrapped with a single space on each end to facilitate finding - * matches within the list. - */ + if (props[propName] == null) { + if (isRequired) { + return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); + } - function classList(element) { - return (' ' + (element.className || '') + ' ').replace(/\s+/gi, ' '); - } + return null; + } - /** - * (Internal) Removes an element from the DOM. - */ + for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { + args[_key - 6] = arguments[_key]; + } - function removeElement(element) { - element && element.parentNode && element.parentNode.removeChild(element); + return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); } - return NProgress; - }); - + var chainedCheckType = checkType.bind(null, false); + chainedCheckType.isRequired = checkType.bind(null, true); + return chainedCheckType; + } /***/ }), - /* 271 */ + /* 165 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -134363,17 +123801,30 @@ Object.defineProperty(exports, "__esModule", { value: true }); + exports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = undefined; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _classnames = __webpack_require__(2); - - var _classnames2 = _interopRequireDefault(_classnames); - var _react = __webpack_require__(0); var _react2 = _interopRequireDefault(_react); + var _reactDom = __webpack_require__(3); + + var _reactDom2 = _interopRequireDefault(_reactDom); + + var _properties = __webpack_require__(28); + + var _properties2 = _interopRequireDefault(_properties); + + var _on = __webpack_require__(17); + + var _on2 = _interopRequireDefault(_on); + + var _classnames = __webpack_require__(2); + + var _classnames2 = _interopRequireDefault(_classnames); + var _propTypes = __webpack_require__(1); var _propTypes2 = _interopRequireDefault(_propTypes); @@ -134382,8 +123833,6 @@ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } @@ -134392,1074 +123841,1887 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + var transitionEndEvent = _properties2["default"].end; + + //设置状态码 + var UNMOUNTED = exports.UNMOUNTED = 0; + var EXITED = exports.EXITED = 1; + var ENTERING = exports.ENTERING = 2; + var ENTERED = exports.ENTERED = 3; + var EXITING = exports.EXITING = 4; + var propTypes = { /** - * radio 颜色 样式 - */ - colors: _propTypes2["default"].oneOf(['', 'dark', 'success', 'info', 'warning', 'danger', 'primary']), + * 是否触发动画 + */ + "in": _propTypes2["default"].bool, + /** - * radio 大小 - */ - size: _propTypes2["default"].oneOf(['lg', 'sm']), + * 不显示的时候是否移除组件 + */ + unmountOnExit: _propTypes2["default"].bool, + /** - * radio 是否可用 - */ - disabled: _propTypes2["default"].bool, + * 如果设置为默认显示,挂载时显示动画 + */ + transitionAppear: _propTypes2["default"].bool, + /** - * radio 样式 是否使用红色填充 - */ - inverse: _propTypes2["default"].bool, - checked: _propTypes2["default"].bool, - onChange: _propTypes2["default"].func + * 设置超时时间,防止出现问题,可设置为>=动画时间 + */ + timeout: _propTypes2["default"].number, + + /** + * 退出组件时添加的class + */ + exitedClassName: _propTypes2["default"].string, + /** + * 退出组件中添加的class + */ + exitingClassName: _propTypes2["default"].string, + /** + * 进入动画后添加的class + */ + enteredClassName: _propTypes2["default"].string, + /** + * 进入动画时添加的class + */ + enteringClassName: _propTypes2["default"].string, + + /** + * 进入动画开始时的钩子函数 + */ + onEnter: _propTypes2["default"].func, + /** + * 进入动画中的钩子函数 + */ + onEntering: _propTypes2["default"].func, + /** + * 进入动画后的钩子函数 + */ + onEntered: _propTypes2["default"].func, + /** + * 退出动画开始时的钩子函数 + */ + onExit: _propTypes2["default"].func, + /** + * 退出动画中的钩子函数 + */ + onExiting: _propTypes2["default"].func, + /** + * 退出动画后的钩子函数 + */ + onExited: _propTypes2["default"].func }; + function noop() {} + var defaultProps = { - inverse: false, - disabled: false, - clsPrefix: 'u-radio' + "in": false, + unmountOnExit: false, + transitionAppear: false, + timeout: 5000, + onEnter: noop, + onEntering: noop, + onEntered: noop, + onExit: noop, + onExiting: noop, + onExited: noop }; /** - * 建立与RadioGroup通信 + * 动画组件 */ - var contextTypes = { - radioGroup: _propTypes2["default"].object - }; - var Radio = function (_React$Component) { - _inherits(Radio, _React$Component); + var Transition = function (_Component) { + _inherits(Transition, _Component); - function Radio(props, context) { - _classCallCheck(this, Radio); + function Transition(props, context) { + _classCallCheck(this, Transition); - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context)); + var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); - _this.handleClick = function (event) { - if (_this.props.disabled) { - return; + var initialStatus = void 0; + if (props["in"]) { + // 在componentdidmount时开始执行动画 + initialStatus = props.transitionAppear ? EXITED : ENTERED; + } else { + initialStatus = props.unmountOnExit ? UNMOUNTED : EXITED; + } + _this.state = { status: initialStatus }; + + _this.nextCallback = null; + return _this; + } + + Transition.prototype.componentDidMount = function componentDidMount() { + if (this.props.transitionAppear && this.props["in"]) { + this.performEnter(this.props); + } + }; + + Transition.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { + if (nextProps["in"] && this.props.unmountOnExit) { + if (this.state.status === UNMOUNTED) { + // 在componentDidUpdate执行动画. + this.setState({ status: EXITED }); } - if (_this.context.radioGroup && _this.context.radioGroup.onChange) { - _this.context.radioGroup.onChange(_this.props.value); + } else { + this._needsUpdate = true; + } + }; + + Transition.prototype.componentDidUpdate = function componentDidUpdate() { + var status = this.state.status; + + if (this.props.unmountOnExit && status === EXITED) { + // 当使用unmountOnExit时,exited为exiting和unmont的过渡状态 + if (this.props["in"]) { + this.performEnter(this.props); } else { - if (!('checked' in _this.props)) { - _this.setState({ - checked: !_this.state.checked - }); - } - event.target.checked = !_this.state.checked; - _this.props.onChange && _this.props.onChange(event, !_this.state.checked); + this.setState({ status: UNMOUNTED }); } - }; - _this.handleFocus = function (e) { - if (e.target && e.target.type == 'radio') { - _this.setState({ - focused: true - }); + return; + } + + // 确保只响应prop变化 + if (this._needsUpdate) { + this._needsUpdate = false; + + if (this.props["in"]) { + if (status === EXITING) { + this.performEnter(this.props); + } else if (status === EXITED) { + this.performEnter(this.props); + } + // 其他,当我们已经输入或输出 + } else { + if (status === ENTERING || status === ENTERED) { + this.performExit(this.props); + } + // 我们已经输入或输出完成 } - }; + } + }; - _this.handleBlur = function (e) { - if (e.target && e.target.type == 'radio') { - _this.setState({ - focused: false + Transition.prototype.componentWillUnmount = function componentWillUnmount() { + this.cancelNextCallback(); + }; + + Transition.prototype.performEnter = function performEnter(props) { + var _this2 = this; + + this.cancelNextCallback(); + var node = _reactDom2["default"].findDOMNode(this); + + // 这里接收新props + props.onEnter(node); + + this.safeSetState({ status: ENTERING }, function () { + _this2.props.onEntering(node); + + _this2.onTransitionEnd(node, function () { + _this2.safeSetState({ status: ENTERED }, function () { + _this2.props.onEntered(node); }); - } - }; + }); + }); + }; - var initChecked = typeof props.checked !== 'undefined' ? props.checked : props.defaultChecked; - _this.state = { - checked: initChecked, - focused: false - }; - return _this; - } + Transition.prototype.performExit = function performExit(props) { + var _this3 = this; - Radio.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - if ('checked' in nextProps) { - this.setState({ - checked: nextProps.checked + this.cancelNextCallback(); + var node = _reactDom2["default"].findDOMNode(this); + + props.onExit(node); + + this.safeSetState({ status: EXITING }, function () { + _this3.props.onExiting(node); + + _this3.onTransitionEnd(node, function () { + _this3.safeSetState({ status: EXITED }, function () { + _this3.props.onExited(node); + }); }); + }); + }; + + Transition.prototype.cancelNextCallback = function cancelNextCallback() { + if (this.nextCallback !== null) { + this.nextCallback.cancel(); + this.nextCallback = null; } }; - Radio.prototype.render = function render() { - var _classes; + Transition.prototype.safeSetState = function safeSetState(nextState, callback) { + // 确保在组件销毁后挂起的setState被消除 + this.setState(nextState, this.setNextCallback(callback)); + }; - var state = this.state, - props = this.props, - context = this.context; - var checked = state.checked; - /** - * 自身的属性 - */ + Transition.prototype.setNextCallback = function setNextCallback(callback) { + var _this4 = this; - var inverse = props.inverse, - disabled = props.disabled, - colors = props.colors, - className = props.className, - children = props.children, - clsPrefix = props.clsPrefix, - style = props.style, - onChange = props.onChange, - others = _objectWithoutProperties(props, ['inverse', 'disabled', 'colors', 'className', 'children', 'clsPrefix', 'style', 'onChange']); + var active = true; - var radioGroup = context.radioGroup; + this.nextCallback = function (event) { + if (active) { + active = false; + _this4.nextCallback = null; - var radioProps = _extends({}, others); - // 包裹 radioGroup - if (radioGroup) { - radioProps.name = radioGroup.name; - radioProps.selectedValue = radioGroup.selectedValue; - radioProps.size = radioGroup.size; - radioProps.focusvalue = radioGroup.focusvalue; - } - var name = radioProps.name, - selectedValue = radioProps.selectedValue, - size = radioProps.size, - focusvalue = radioProps.focusvalue; + callback(event); + } + }; + this.nextCallback.cancel = function () { + active = false; + }; - var optional = {}; - /** - * 若父级selectedValue与本身的value值相同,则改radio被选中 - */ - if (selectedValue !== undefined) { - optional.checked = this.props.value === selectedValue; - } + return this.nextCallback; + }; - var classes = (_classes = {}, _defineProperty(_classes, clsPrefix + '-focused', this.state.focused), _defineProperty(_classes, 'is-checked', typeof optional.checked !== 'undefined' ? optional.checked : checked), _defineProperty(_classes, 'disabled', disabled), _classes); + Transition.prototype.onTransitionEnd = function onTransitionEnd(node, handler) { + this.setNextCallback(handler); - if (colors) { - classes[clsPrefix + '-' + colors] = true; - } - if (size) { - classes[clsPrefix + '-' + size] = true; - } - if (inverse) { - classes[clsPrefix + '-inverse'] = true; + if (node) { + if (transitionEndEvent == undefined) { + this.nextCallback(); + } else { + (0, _on2["default"])(node, transitionEndEvent, this.nextCallback); + } + setTimeout(this.nextCallback, this.props.timeout); + } else { + setTimeout(this.nextCallback, 0); } - if (children == null) { - classes[clsPrefix + '-noContent'] = true; + }; + + Transition.prototype.render = function render() { + var status = this.state.status; + if (status === UNMOUNTED) { + return null; } - var classNames = (0, _classnames2["default"])(clsPrefix, classes); - var tabIndex = optional.checked ? 0 : -1; - if (focusvalue && focusvalue == this.props.value) { - tabIndex = 0; + + var _props = this.props, + children = _props.children, + className = _props.className, + childProps = _objectWithoutProperties(_props, ['children', 'className']); + + Object.keys(Transition.propTypes).forEach(function (key) { + return delete childProps[key]; + }); + + var transitionClassName = void 0; + if (status === EXITED) { + transitionClassName = this.props.exitedClassName; + } else if (status === ENTERING) { + transitionClassName = this.props.enteringClassName; + } else if (status === ENTERED) { + transitionClassName = this.props.enteredClassName; + } else if (status === EXITING) { + transitionClassName = this.props.exitingClassName; } - var input = _react2["default"].createElement('input', _extends({}, radioProps, { - type: 'radio', - name: name, - disabled: this.props.disabled, - tabIndex: tabIndex, - onFocus: this.handleFocus, - onBlur: this.handleBlur + + var child = _react2["default"].Children.only(children); + return _react2["default"].cloneElement(child, _extends({}, childProps, { + className: (0, _classnames2["default"])(child.props.className, className, transitionClassName) })); - return _react2["default"].createElement( - 'label', - { style: style, onClick: this.handleClick, className: (0, _classnames2["default"])(className, classNames) }, - input, - _react2["default"].createElement( - 'label', - { className: clsPrefix + '-label' }, - children - ) - ); }; - return Radio; - }(_react2["default"].Component); + return Transition; + }(_react.Component); - Radio.contextTypes = contextTypes; - Radio.propTypes = propTypes; - Radio.defaultProps = defaultProps; + Transition.propTypes = propTypes; - exports["default"] = Radio; - module.exports = exports['default']; + Transition.defaultProps = defaultProps; + + exports["default"] = Transition; /***/ }), - /* 272 */ - /***/ (function(module, exports, __webpack_require__) { + /* 166 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; + /* harmony export (immutable) */ __webpack_exports__["a"] = warning; + /** + * Prints a warning in the console if it exists. + * + * @param {String} message The warning message. + * @returns {void} + */ + function warning(message) { + /* eslint-disable no-console */ + if (typeof console !== 'undefined' && typeof console.error === 'function') { + console.error(message); + } + /* eslint-enable no-console */ - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _react = __webpack_require__(0); + try { + // This error was thrown as a convenience so that if you enable + // "break on all exceptions" in your console, + // it would pause the execution at this line. + throw new Error(message); + /* eslint-disable no-empty */ + } catch (e) {} + /* eslint-enable no-empty */ - var _react2 = _interopRequireDefault(_react); + } - var _reactDom = __webpack_require__(3); + /***/ }), + /* 167 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { - var _reactDom2 = _interopRequireDefault(_reactDom); + "use strict"; + /* harmony export (immutable) */ __webpack_exports__["a"] = _extends; + function _extends() { + _extends = Object.assign || function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; - var _propTypes = __webpack_require__(1); + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key]; + } + } + } - var _propTypes2 = _interopRequireDefault(_propTypes); + return target; + }; - var _ownerDocument = __webpack_require__(97); + return _extends.apply(this, arguments); + } - var _ownerDocument2 = _interopRequireDefault(_ownerDocument); + /***/ }), + /* 168 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { - var _getContainer = __webpack_require__(273); + "use strict"; + /* harmony export (immutable) */ __webpack_exports__["a"] = _objectWithoutPropertiesLoose; + function _objectWithoutPropertiesLoose(source, excluded) { + if (source == null) return {}; + var target = {}; + var sourceKeys = Object.keys(source); + var key, i; - var _getContainer2 = _interopRequireDefault(_getContainer); + for (i = 0; i < sourceKeys.length; i++) { + key = sourceKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + target[key] = source[key]; + } - var _tinperBeeCore = __webpack_require__(98); + return target; + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + /***/ }), + /* 169 */ + /***/ (function(module, exports, __webpack_require__) { - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + "use strict"; - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + // currently used to initiate the velocity style object to 0 - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - var isReact16 = _reactDom2["default"].createPortal !== undefined; - var createPortal = isReact16 ? _reactDom2["default"].createPortal : _reactDom2["default"].unstable_renderSubtreeIntoContainer; + exports.__esModule = true; + exports['default'] = mapToZero; - var propTypes = { - /** - * 存放子组件的容器 - */ - container: _propTypes2["default"].oneOfType([_tinperBeeCore.componentOrElement, _propTypes2["default"].func]) - }; + function mapToZero(obj) { + var ret = {}; + for (var key in obj) { + if (Object.prototype.hasOwnProperty.call(obj, key)) { + ret[key] = 0; + } + } + return ret; + } - var defaultProps = {}; + module.exports = exports['default']; - /** - * Portal组件是将子组件渲染 - */ + /***/ }), + /* 170 */ + /***/ (function(module, exports, __webpack_require__) { - var Portal = function (_Component) { - _inherits(Portal, _Component); + "use strict"; - function Portal(props) { - _classCallCheck(this, Portal); - var _this = _possibleConstructorReturn(this, _Component.call(this, props)); + // stepper is used a lot. Saves allocation to return the same array wrapper. + // This is fine and danger-free against mutations because the callsite + // immediately destructures it and gets the numbers inside without passing the - _this.getMountNode = _this.getMountNode.bind(_this); - _this.getOverlayDOMNode = _this.getOverlayDOMNode.bind(_this); - _this.mountOverlayTarget = _this.mountOverlayTarget.bind(_this); - _this.unmountOverlayTarget = _this.unmountOverlayTarget.bind(_this); - _this.renderOverlay = _this.renderOverlay.bind(_this); - _this.unrenderOverlay = _this.unrenderOverlay.bind(_this); - _this.overlayTarget = isReact16 ? document.createElement('div') : null; - return _this; - } + exports.__esModule = true; + exports["default"] = stepper; - Portal.prototype.componentDidMount = function componentDidMount() { - if (isReact16) { - this.portalContainerNode = (0, _getContainer2["default"])(this.props.container, (0, _ownerDocument2["default"])(this).body); - this.portalContainerNode.appendChild(this.overlayTarget); - } else { - this.renderOverlay(); - } + var reusedTuple = [0, 0]; - this.mounted = true; - }; + function stepper(secondPerFrame, x, v, destX, k, b, precision) { + // Spring stiffness, in kg / s^2 - Portal.prototype.componentDidUpdate = function componentDidUpdate() { - if (isReact16) { - var overlay = !this.props.children ? null : _react2["default"].Children.only(this.props.children); - if (overlay === null) { - this.unrenderOverlay(); - this.unmountOverlayTarget(); - } else {} - } else { - this.renderOverlay(); - } - }; - //this._overlayTarget为当前的要添加的子组件, this._portalContainerNode要添加组件的容器元素 + // for animations, destX is really spring length (spring at rest). initial + // position is considered as the stretched/compressed position of a spring + var Fspring = -k * (x - destX); + // Damping, in kg / s + var Fdamper = -b * v; - Portal.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - if (this.overlayTarget && nextProps.container !== this.props.container) { - this.portalContainerNode.removeChild(this.overlayTarget); - this.portalContainerNode = (0, _getContainer2["default"])(nextProps.container, (0, _ownerDocument2["default"])(this).body); - this.portalContainerNode.appendChild(this.overlayTarget); - } - }; + // usually we put mass here, but for animation purposes, specifying mass is a + // bit redundant. you could simply adjust k and b accordingly + // let a = (Fspring + Fdamper) / mass; + var a = Fspring + Fdamper; - Portal.prototype.componentWillUnmount = function componentWillUnmount() { - this.unrenderOverlay(); - this.unmountOverlayTarget(); + var newV = v + a * secondPerFrame; + var newX = x + newV * secondPerFrame; - this.mounted = false; - }; + if (Math.abs(newV) < precision && Math.abs(newX - destX) < precision) { + reusedTuple[0] = destX; + reusedTuple[1] = 0; + return reusedTuple; + } - Portal.prototype.getMountNode = function getMountNode() { - return this.overlayTarget; - }; + reusedTuple[0] = newX; + reusedTuple[1] = newV; + return reusedTuple; + } - Portal.prototype.getOverlayDOMNode = function getOverlayDOMNode() { - if (!this.mounted) { - throw new Error('getOverlayDOMNode(): A component must be mounted to have a DOM node.'); - } + module.exports = exports["default"]; + // array reference around. - if (this.overlayInstance) { - return _reactDom2["default"].findDOMNode(this.overlayInstance); - } + /***/ }), + /* 171 */ + /***/ (function(module, exports, __webpack_require__) { - return null; - }; + /* WEBPACK VAR INJECTION */(function(process) {// Generated by CoffeeScript 1.7.1 + (function() { + var getNanoSeconds, hrtime, loadTime; - /** - * 如果要添加的子组件不存在,就将div添加到要添加容器的DOM中; - */ + if ((typeof performance !== "undefined" && performance !== null) && performance.now) { + module.exports = function() { + return performance.now(); + }; + } else if ((typeof process !== "undefined" && process !== null) && process.hrtime) { + module.exports = function() { + return (getNanoSeconds() - loadTime) / 1e6; + }; + hrtime = process.hrtime; + getNanoSeconds = function() { + var hr; + hr = hrtime(); + return hr[0] * 1e9 + hr[1]; + }; + loadTime = getNanoSeconds(); + } else if (Date.now) { + module.exports = function() { + return Date.now() - loadTime; + }; + loadTime = Date.now(); + } else { + module.exports = function() { + return new Date().getTime() - loadTime; + }; + loadTime = new Date().getTime(); + } - Portal.prototype.mountOverlayTarget = function mountOverlayTarget() { - if (!this.overlayTarget) { - this.overlayTarget = document.createElement('div'); - this.portalContainerNode = (0, _getContainer2["default"])(this.props.container, (0, _ownerDocument2["default"])(this).body); - this.portalContainerNode.appendChild(this.overlayTarget); - } - }; - /** - * 将要添加的子元素从容器中移除,并把变量置为null - */ + }).call(this); + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) - Portal.prototype.unmountOverlayTarget = function unmountOverlayTarget() { - if (this.overlayTarget) { - this.portalContainerNode.removeChild(this.overlayTarget); - this.overlayTarget = null; - } - this.portalContainerNode = null; - }; - /** - * 手动渲染_overlayTarget - */ + /***/ }), + /* 172 */ + /***/ (function(module, exports, __webpack_require__) { + "use strict"; - Portal.prototype.renderOverlay = function renderOverlay() { - var overlay = !this.props.children ? null : _react2["default"].Children.only(this.props.children); + // usage assumption: currentStyle values have already been rendered but it says + // nothing of whether currentStyle is stale (see unreadPropStyle) - // Save reference for future access. - if (overlay !== null) { - this.mountOverlayTarget(); - this.overlayInstance = _reactDom2["default"].unstable_renderSubtreeIntoContainer(this, overlay, this.overlayTarget); - } else { - // Unrender if the component is null for transitions to null - this.unrenderOverlay(); - this.unmountOverlayTarget(); - } - }; - /** - * 销毁_overlayTarget组件。并把_overlayInstance置为null - */ + exports.__esModule = true; + exports['default'] = shouldStopAnimation; - Portal.prototype.unrenderOverlay = function unrenderOverlay() { - if (this.overlayTarget) { - !isReact16 && _reactDom2["default"].unmountComponentAtNode(this.overlayTarget); - this.overlayInstance = null; + function shouldStopAnimation(currentStyle, style, currentVelocity) { + for (var key in style) { + if (!Object.prototype.hasOwnProperty.call(style, key)) { + continue; } - }; - Portal.prototype.render = function render() { - if (!isReact16) { - return null; + if (currentVelocity[key] !== 0) { + return false; } - var overlay = !this.props.children ? null : _react2["default"].Children.only(this.props.children); + var styleValue = typeof style[key] === 'number' ? style[key] : style[key].val; + // stepper will have already taken care of rounding precision errors, so + // won't have such thing as 0.9999 !=== 1 + if (currentStyle[key] !== styleValue) { + return false; + } + } - return _reactDom2["default"].createPortal(overlay, this.overlayTarget); - }; + return true; + } - return Portal; - }(_react.Component); + module.exports = exports['default']; - ; + /***/ }), + /* 173 */ + /***/ (function(module, exports, __webpack_require__) { - Portal.propTypes = propTypes; - Portal.defaultProps = defaultProps; + module.exports = __webpack_require__(309).default; + module.exports.utils = __webpack_require__(76); + module.exports.Responsive = __webpack_require__(1113).default; + module.exports.Responsive.utils = __webpack_require__(313); + module.exports.WidthProvider = __webpack_require__(1114).default; - exports["default"] = Portal; - module.exports = exports['default']; /***/ }), - /* 273 */ + /* 174 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; + function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + Object.defineProperty(exports, "__esModule", { value: true }); - exports["default"] = getContainer; + exports.matchesSelector = matchesSelector; + exports.matchesSelectorAndParentsTo = matchesSelectorAndParentsTo; + exports.addEvent = addEvent; + exports.removeEvent = removeEvent; + exports.outerHeight = outerHeight; + exports.outerWidth = outerWidth; + exports.innerHeight = innerHeight; + exports.innerWidth = innerWidth; + exports.offsetXYFromParent = offsetXYFromParent; + exports.createCSSTransform = createCSSTransform; + exports.createSVGTransform = createSVGTransform; + exports.getTranslation = getTranslation; + exports.getTouch = getTouch; + exports.getTouchIdentifier = getTouchIdentifier; + exports.addUserSelectStyles = addUserSelectStyles; + exports.removeUserSelectStyles = removeUserSelectStyles; + exports.addClassName = addClassName; + exports.removeClassName = removeClassName; - var _reactDom = __webpack_require__(3); + var _shims = __webpack_require__(108); - var _reactDom2 = _interopRequireDefault(_reactDom); + var _getPrefix = _interopRequireWildcard(__webpack_require__(1109)); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; } - /** - * 获取容器组件 - * @param {[type]} container [description] - * @param {[type]} defaultContainer [description] - * @return {[type]} [description] - */ - function getContainer(container, defaultContainer) { - container = typeof container === 'function' ? container() : container; - return _reactDom2["default"].findDOMNode(container) || defaultContainer; + function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + + function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + var matchesSelectorFunc = ''; + + function matchesSelector(el + /*: Node*/ + , selector + /*: string*/ + ) + /*: boolean*/ + { + if (!matchesSelectorFunc) { + matchesSelectorFunc = (0, _shims.findInArray)(['matches', 'webkitMatchesSelector', 'mozMatchesSelector', 'msMatchesSelector', 'oMatchesSelector'], function (method) { + // $FlowIgnore: Doesn't think elements are indexable + return (0, _shims.isFunction)(el[method]); + }); + } // Might not be found entirely (not an Element?) - in that case, bail + // $FlowIgnore: Doesn't think elements are indexable + + + if (!(0, _shims.isFunction)(el[matchesSelectorFunc])) return false; // $FlowIgnore: Doesn't think elements are indexable + + return el[matchesSelectorFunc](selector); + } // Works up the tree to the draggable itself attempting to match selector. + + + function matchesSelectorAndParentsTo(el + /*: Node*/ + , selector + /*: string*/ + , baseNode + /*: Node*/ + ) + /*: boolean*/ + { + var node = el; + + do { + if (matchesSelector(node, selector)) return true; + if (node === baseNode) return false; + node = node.parentNode; + } while (node); + + return false; } - module.exports = exports['default']; - /***/ }), - /* 274 */ - /***/ (function(module, exports, __webpack_require__) { + function addEvent(el + /*: ?Node*/ + , event + /*: string*/ + , handler + /*: Function*/ + , inputOptions + /*: Object*/ + ) + /*: void*/ + { + if (!el) return; - "use strict"; + var options = _objectSpread({ + capture: true + }, inputOptions); + if (el.addEventListener) { + el.addEventListener(event, handler, options); + } else if (el.attachEvent) { + el.attachEvent('on' + event, handler); + } else { + // $FlowIgnore: Doesn't think elements are indexable + el['on' + event] = handler; + } + } - exports.__esModule = true; - exports.default = addEventListenerWrap; + function removeEvent(el + /*: ?Node*/ + , event + /*: string*/ + , handler + /*: Function*/ + , inputOptions + /*: Object*/ + ) + /*: void*/ + { + if (!el) return; + + var options = _objectSpread({ + capture: true + }, inputOptions); + + if (el.removeEventListener) { + el.removeEventListener(event, handler, options); + } else if (el.detachEvent) { + el.detachEvent('on' + event, handler); + } else { + // $FlowIgnore: Doesn't think elements are indexable + el['on' + event] = null; + } + } + + function outerHeight(node + /*: HTMLElement*/ + ) + /*: number*/ + { + // This is deliberately excluding margin for our calculations, since we are using + // offsetTop which is including margin. See getBoundPosition + var height = node.clientHeight; + var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node); + height += (0, _shims.int)(computedStyle.borderTopWidth); + height += (0, _shims.int)(computedStyle.borderBottomWidth); + return height; + } + + function outerWidth(node + /*: HTMLElement*/ + ) + /*: number*/ + { + // This is deliberately excluding margin for our calculations, since we are using + // offsetLeft which is including margin. See getBoundPosition + var width = node.clientWidth; + var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node); + width += (0, _shims.int)(computedStyle.borderLeftWidth); + width += (0, _shims.int)(computedStyle.borderRightWidth); + return width; + } + + function innerHeight(node + /*: HTMLElement*/ + ) + /*: number*/ + { + var height = node.clientHeight; + var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node); + height -= (0, _shims.int)(computedStyle.paddingTop); + height -= (0, _shims.int)(computedStyle.paddingBottom); + return height; + } + + function innerWidth(node + /*: HTMLElement*/ + ) + /*: number*/ + { + var width = node.clientWidth; + var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node); + width -= (0, _shims.int)(computedStyle.paddingLeft); + width -= (0, _shims.int)(computedStyle.paddingRight); + return width; + } // Get from offsetParent + + + function offsetXYFromParent(evt + /*: {clientX: number, clientY: number}*/ + , offsetParent + /*: HTMLElement*/ + , scale + /*: number*/ + ) + /*: ControlPosition*/ + { + var isBody = offsetParent === offsetParent.ownerDocument.body; + var offsetParentRect = isBody ? { + left: 0, + top: 0 + } : offsetParent.getBoundingClientRect(); + var x = (evt.clientX + offsetParent.scrollLeft - offsetParentRect.left) / scale; + var y = (evt.clientY + offsetParent.scrollTop - offsetParentRect.top) / scale; + return { + x: x, + y: y + }; + } + + function createCSSTransform(controlPos + /*: ControlPosition*/ + , positionOffset + /*: PositionOffsetControlPosition*/ + ) + /*: Object*/ + { + var translation = getTranslation(controlPos, positionOffset, 'px'); + return _defineProperty({}, (0, _getPrefix.browserPrefixToKey)('transform', _getPrefix.default), translation); + } + + function createSVGTransform(controlPos + /*: ControlPosition*/ + , positionOffset + /*: PositionOffsetControlPosition*/ + ) + /*: string*/ + { + var translation = getTranslation(controlPos, positionOffset, ''); + return translation; + } + + function getTranslation(_ref2, positionOffset + /*: PositionOffsetControlPosition*/ + , unitSuffix + /*: string*/ + ) + /*: string*/ + { + var x = _ref2.x, + y = _ref2.y; + var translation = "translate(".concat(x).concat(unitSuffix, ",").concat(y).concat(unitSuffix, ")"); + + if (positionOffset) { + var defaultX = "".concat(typeof positionOffset.x === 'string' ? positionOffset.x : positionOffset.x + unitSuffix); + var defaultY = "".concat(typeof positionOffset.y === 'string' ? positionOffset.y : positionOffset.y + unitSuffix); + translation = "translate(".concat(defaultX, ", ").concat(defaultY, ")") + translation; + } + + return translation; + } - var _addDomEventListener = __webpack_require__(12); + function getTouch(e + /*: MouseTouchEvent*/ + , identifier + /*: number*/ + ) + /*: ?{clientX: number, clientY: number}*/ + { + return e.targetTouches && (0, _shims.findInArray)(e.targetTouches, function (t) { + return identifier === t.identifier; + }) || e.changedTouches && (0, _shims.findInArray)(e.changedTouches, function (t) { + return identifier === t.identifier; + }); + } - var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener); + function getTouchIdentifier(e + /*: MouseTouchEvent*/ + ) + /*: ?number*/ + { + if (e.targetTouches && e.targetTouches[0]) return e.targetTouches[0].identifier; + if (e.changedTouches && e.changedTouches[0]) return e.changedTouches[0].identifier; + } // User-select Hacks: + // + // Useful for preventing blue highlights all over everything when dragging. + // Note we're passing `document` b/c we could be iframed - var _reactDom = __webpack_require__(3); - var _reactDom2 = _interopRequireDefault(_reactDom); + function addUserSelectStyles(doc + /*: ?Document*/ + ) { + if (!doc) return; + var styleEl = doc.getElementById('react-draggable-style-el'); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + if (!styleEl) { + styleEl = doc.createElement('style'); + styleEl.type = 'text/css'; + styleEl.id = 'react-draggable-style-el'; + styleEl.innerHTML = '.react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n'; + styleEl.innerHTML += '.react-draggable-transparent-selection *::selection {all: inherit;}\n'; + doc.getElementsByTagName('head')[0].appendChild(styleEl); + } - /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ - function addEventListenerWrap(target, eventType, cb) { - /* eslint camelcase: 2 */ - var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) { - _reactDom2.default.unstable_batchedUpdates(cb, e); - } : cb; - return (0, _addDomEventListener2.default)(target, eventType, callback); + if (doc.body) addClassName(doc.body, 'react-draggable-transparent-selection'); } - /***/ }), - /* 275 */ - /***/ (function(module, exports, __webpack_require__) { - - "use strict"; - + function removeUserSelectStyles(doc + /*: ?Document*/ + ) { + if (!doc) return; - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = camelizeStyleName; + try { + if (doc.body) removeClassName(doc.body, 'react-draggable-transparent-selection'); // $FlowIgnore: IE - var _camelize = __webpack_require__(879); + if (doc.selection) { + // $FlowIgnore: IE + doc.selection.empty(); + } else { + // Remove selection caused by scroll, unless it's a focused input + // (we use doc.defaultView in case we're in an iframe) + var selection = (doc.defaultView || window).getSelection(); - var _camelize2 = _interopRequireDefault(_camelize); + if (selection && selection.type !== 'Caret') { + selection.removeAllRanges(); + } + } + } catch (e) {// probably IE + } + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + function addClassName(el + /*: HTMLElement*/ + , className + /*: string*/ + ) { + if (el.classList) { + el.classList.add(className); + } else { + if (!el.className.match(new RegExp("(?:^|\\s)".concat(className, "(?!\\S)")))) { + el.className += " ".concat(className); + } + } + } - var msPattern = /^-ms-/; /** - * Copyright 2014-2015, Facebook, Inc. - * All rights reserved. - * https://github.com/facebook/react/blob/2aeb8a2a6beb00617a4217f7f8284924fa2ad819/src/vendor/core/camelizeStyleName.js - */ - function camelizeStyleName(string) { - return (0, _camelize2.default)(string.replace(msPattern, 'ms-')); + function removeClassName(el + /*: HTMLElement*/ + , className + /*: string*/ + ) { + if (el.classList) { + el.classList.remove(className); + } else { + el.className = el.className.replace(new RegExp("(?:^|\\s)".concat(className, "(?!\\S)"), 'g'), ''); + } } - module.exports = exports['default']; /***/ }), - /* 276 */ - /***/ (function(module, exports, __webpack_require__) { + /* 175 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; + Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); - Object.defineProperty(exports, "__esModule", { - value: true - }); - - exports["default"] = function (node, event, handler, capture) { - (0, _on2["default"])(node, event, handler, capture); + var classCallCheck = function (instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } + }; - return { - remove: function remove() { - (0, _off2["default"])(node, event, handler, capture); + var createClass = function () { + function defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); } + } + + return function (Constructor, protoProps, staticProps) { + if (protoProps) defineProperties(Constructor.prototype, protoProps); + if (staticProps) defineProperties(Constructor, staticProps); + return Constructor; }; - }; + }(); - var _on = __webpack_require__(17); + var _extends = Object.assign || function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; - var _on2 = _interopRequireDefault(_on); + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key]; + } + } + } - var _off = __webpack_require__(49); + return target; + }; - var _off2 = _interopRequireDefault(_off); + var inherits = function (subClass, superClass) { + if (typeof superClass !== "function" && superClass !== null) { + throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { + value: subClass, + enumerable: false, + writable: true, + configurable: true + } + }); + if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; + }; - module.exports = exports['default']; + var possibleConstructorReturn = function (self, call) { + if (!self) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } - /***/ }), - /* 277 */ - /***/ (function(module, exports) { + return call && (typeof call === "object" || typeof call === "function") ? call : self; + }; - // removed by extract-text-webpack-plugin + var styles = { + base: { + position: 'absolute', + userSelect: 'none', + MsUserSelect: 'none' + }, + top: { + width: '100%', + height: '10px', + top: '-5px', + left: '0px', + cursor: 'row-resize' + }, + right: { + width: '10px', + height: '100%', + top: '0px', + right: '-5px', + cursor: 'col-resize' + }, + bottom: { + width: '100%', + height: '10px', + bottom: '-5px', + left: '0px', + cursor: 'row-resize' + }, + left: { + width: '10px', + height: '100%', + top: '0px', + left: '-5px', + cursor: 'col-resize' + }, + topRight: { + width: '20px', + height: '20px', + position: 'absolute', + right: '-10px', + top: '-10px', + cursor: 'ne-resize' + }, + bottomRight: { + width: '20px', + height: '20px', + position: 'absolute', + right: '-10px', + bottom: '-10px', + cursor: 'se-resize' + }, + bottomLeft: { + width: '20px', + height: '20px', + position: 'absolute', + left: '-10px', + bottom: '-10px', + cursor: 'sw-resize' + }, + topLeft: { + width: '20px', + height: '20px', + position: 'absolute', + left: '-10px', + top: '-10px', + cursor: 'nw-resize' + } + }; - /***/ }), - /* 278 */ - /***/ (function(module, exports, __webpack_require__) { + var Resizer = (function (props) { + return Object(__WEBPACK_IMPORTED_MODULE_0_react__["createElement"])( + 'div', + { + className: props.className, + style: _extends({}, styles.base, styles[props.direction], props.replaceStyles || {}), + onMouseDown: function onMouseDown(e) { + props.onResizeStart(e, props.direction); + }, + onTouchStart: function onTouchStart(e) { + props.onResizeStart(e, props.direction); + } + }, + props.children + ); + }); - "use strict"; + var userSelectNone = { + userSelect: 'none', + MozUserSelect: 'none', + WebkitUserSelect: 'none', + MsUserSelect: 'none' + }; + var userSelectAuto = { + userSelect: 'auto', + MozUserSelect: 'auto', + WebkitUserSelect: 'auto', + MsUserSelect: 'auto' + }; - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.PanelGroup = exports.Panel = undefined; + var clamp = function clamp(n, min, max) { + return Math.max(Math.min(n, max), min); + }; + var snap = function snap(n, size) { + return Math.round(n / size) * size; + }; - var _Panel2 = __webpack_require__(896); + var findClosestSnap = function findClosestSnap(n, snapArray) { + return snapArray.reduce(function (prev, curr) { + return Math.abs(curr - n) < Math.abs(prev - n) ? curr : prev; + }); + }; - var _Panel3 = _interopRequireDefault(_Panel2); + var endsWith = function endsWith(str, searchStr) { + return str.substr(str.length - searchStr.length, searchStr.length) === searchStr; + }; - var _PanelGroup2 = __webpack_require__(927); + var getStringSize = function getStringSize(n) { + if (n.toString() === 'auto') return n.toString(); + if (endsWith(n.toString(), 'px')) return n.toString(); + if (endsWith(n.toString(), '%')) return n.toString(); + if (endsWith(n.toString(), 'vh')) return n.toString(); + if (endsWith(n.toString(), 'vw')) return n.toString(); + if (endsWith(n.toString(), 'vmax')) return n.toString(); + if (endsWith(n.toString(), 'vmin')) return n.toString(); + return n + 'px'; + }; - var _PanelGroup3 = _interopRequireDefault(_PanelGroup2); + var definedProps = ['style', 'className', 'grid', 'snap', 'bounds', 'size', 'defaultSize', 'minWidth', 'minHeight', 'maxWidth', 'maxHeight', 'lockAspectRatio', 'lockAspectRatioExtraWidth', 'lockAspectRatioExtraHeight', 'enable', 'handleStyles', 'handleClasses', 'handleWrapperStyle', 'handleWrapperClass', 'children', 'onResizeStart', 'onResize', 'onResizeStop', 'handleComponent', 'scale', 'resizeRatio']; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var baseClassName = '__resizable_base__'; - exports.Panel = _Panel3["default"]; - exports.PanelGroup = _PanelGroup3["default"]; + var Resizable = function (_React$Component) { + inherits(Resizable, _React$Component); - /***/ }), - /* 279 */ - /***/ (function(module, exports, __webpack_require__) { + function Resizable(props) { + classCallCheck(this, Resizable); - "use strict"; + var _this = possibleConstructorReturn(this, (Resizable.__proto__ || Object.getPrototypeOf(Resizable)).call(this, props)); + _this.state = { + isResizing: false, + resizeCursor: 'auto', + width: typeof (_this.propsSize && _this.propsSize.width) === 'undefined' ? 'auto' : _this.propsSize && _this.propsSize.width, + height: typeof (_this.propsSize && _this.propsSize.height) === 'undefined' ? 'auto' : _this.propsSize && _this.propsSize.height, + direction: 'right', + original: { + x: 0, + y: 0, + width: 0, + height: 0 + } + }; - exports.__esModule = true; - /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ - function createChainedFunction() { - for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) { - funcs[_key] = arguments[_key]; - } + _this.updateExtendsProps(props); + _this.onResizeStart = _this.onResizeStart.bind(_this); + _this.onMouseMove = _this.onMouseMove.bind(_this); + _this.onMouseUp = _this.onMouseUp.bind(_this); - return funcs.filter(function (f) { - return f != null; - }).reduce(function (acc, f) { - if (typeof f !== 'function') { - throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.'); + if (typeof window !== 'undefined') { + window.addEventListener('mouseup', _this.onMouseUp); + window.addEventListener('mousemove', _this.onMouseMove); + window.addEventListener('mouseleave', _this.onMouseUp); + window.addEventListener('touchmove', _this.onMouseMove); + window.addEventListener('touchend', _this.onMouseUp); } + return _this; + } - if (acc === null) { - return f; + createClass(Resizable, [{ + key: 'updateExtendsProps', + value: function updateExtendsProps(props) { + this.extendsProps = Object.keys(props).reduce(function (acc, key) { + if (definedProps.indexOf(key) !== -1) return acc; + acc[key] = props[key]; + return acc; + }, {}); } + }, { + key: 'getParentSize', + value: function getParentSize() { + var base = this.base; - return function chainedFunction() { - for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - args[_key2] = arguments[_key2]; + if (!base) return { width: window.innerWidth, height: window.innerHeight }; + // INFO: To calculate parent width with flex layout + var wrapChanged = false; + var wrap = this.parentNode.style.flexWrap; + var minWidth = base.style.minWidth; + if (wrap !== 'wrap') { + wrapChanged = true; + this.parentNode.style.flexWrap = 'wrap'; + // HACK: Use relative to get parent padding size } + base.style.position = 'relative'; + base.style.minWidth = '100%'; + var size = { + width: base.offsetWidth, + height: base.offsetHeight + }; + base.style.position = 'absolute'; + if (wrapChanged) this.parentNode.style.flexWrap = wrap; + base.style.minWidth = minWidth; + return size; + } + }, { + key: 'componentDidMount', + value: function componentDidMount() { + var size = this.size; - acc.apply(this, args); - f.apply(this, args); - }; - }, null); - } - exports.default = createChainedFunction; - - /***/ }), - /* 280 */ - /***/ (function(module, exports, __webpack_require__) { + this.setState({ + width: this.state.width || size.width, + height: this.state.height || size.height + }); + var parent = this.parentNode; + if (!(parent instanceof HTMLElement)) return; + if (this.base) return; + var element = document.createElement('div'); + element.style.width = '100%'; + element.style.height = '100%'; + element.style.position = 'absolute'; + element.style.transform = 'scale(0, 0)'; + element.style.left = '0'; + element.style.flex = '0'; + if (element.classList) { + element.classList.add(baseClassName); + } else { + element.className += baseClassName; + } + parent.appendChild(element); + } + }, { + key: 'componentWillReceiveProps', + value: function componentWillReceiveProps(next) { + this.updateExtendsProps(next); + } + }, { + key: 'componentWillUnmount', + value: function componentWillUnmount() { + if (typeof window !== 'undefined') { + window.removeEventListener('mouseup', this.onMouseUp); + window.removeEventListener('mousemove', this.onMouseMove); + window.removeEventListener('mouseleave', this.onMouseUp); + window.removeEventListener('touchmove', this.onMouseMove); + window.removeEventListener('touchend', this.onMouseUp); + var parent = this.parentNode; + var base = this.base; - "use strict"; + if (!base || !parent) return; + if (!(parent instanceof HTMLElement) || !(base instanceof Node)) return; + parent.removeChild(base); + } + } + }, { + key: 'calculateNewSize', + value: function calculateNewSize(newSize, kind) { + var propsSize = this.propsSize && this.propsSize[kind]; + return this.state[kind] === 'auto' && this.state.original[kind] === newSize && (typeof propsSize === 'undefined' || propsSize === 'auto') ? 'auto' : newSize; + } + }, { + key: 'onResizeStart', + value: function onResizeStart(event, direction) { + var clientX = 0; + var clientY = 0; + if (event.nativeEvent instanceof MouseEvent) { + clientX = event.nativeEvent.clientX; + clientY = event.nativeEvent.clientY; + // When user click with right button the resize is stuck in resizing mode + // until users clicks again, dont continue if right click is used. + // HACK: MouseEvent does not have `which` from flow-bin v0.68. + if (event.nativeEvent.which === 3) { + return; + } + } else if (event.nativeEvent instanceof TouchEvent) { + clientX = event.nativeEvent.touches[0].clientX; + clientY = event.nativeEvent.touches[0].clientY; + } + if (this.props.onResizeStart) { + this.props.onResizeStart(event, direction, this.resizable); + } - exports.__esModule = true; - exports.default = addEventListenerWrap; + // Fix #168 + if (this.props.size) { + if (typeof this.props.size.height !== 'undefined' && this.props.size.height !== this.state.height) { + this.setState({ height: this.props.size.height }); + } + if (typeof this.props.size.width !== 'undefined' && this.props.size.width !== this.state.width) { + this.setState({ width: this.props.size.width }); + } + } - var _addDomEventListener = __webpack_require__(12); + this.setState({ + original: { + x: clientX, + y: clientY, + width: this.size.width, + height: this.size.height + }, + isResizing: true, + resizeCursor: window.getComputedStyle(event.target).cursor, + direction: direction + }); + } + }, { + key: 'onMouseMove', + value: function onMouseMove(event) { + if (!this.state.isResizing) return; + var clientX = event instanceof MouseEvent ? event.clientX : event.touches[0].clientX; + var clientY = event instanceof MouseEvent ? event.clientY : event.touches[0].clientY; + var _state = this.state, + direction = _state.direction, + original = _state.original, + width = _state.width, + height = _state.height; + var _props = this.props, + lockAspectRatio = _props.lockAspectRatio, + lockAspectRatioExtraHeight = _props.lockAspectRatioExtraHeight, + lockAspectRatioExtraWidth = _props.lockAspectRatioExtraWidth; - var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener); + var scale = this.props.scale || 1; + var _props2 = this.props, + maxWidth = _props2.maxWidth, + maxHeight = _props2.maxHeight, + minWidth = _props2.minWidth, + minHeight = _props2.minHeight; - var _reactDom = __webpack_require__(3); + var resizeRatio = this.props.resizeRatio || 1; - var _reactDom2 = _interopRequireDefault(_reactDom); + // TODO: refactor + var parentSize = this.getParentSize(); + if (maxWidth && typeof maxWidth === 'string' && endsWith(maxWidth, '%')) { + var _ratio = Number(maxWidth.replace('%', '')) / 100; + maxWidth = parentSize.width * _ratio; + } + if (maxHeight && typeof maxHeight === 'string' && endsWith(maxHeight, '%')) { + var _ratio2 = Number(maxHeight.replace('%', '')) / 100; + maxHeight = parentSize.height * _ratio2; + } + if (minWidth && typeof minWidth === 'string' && endsWith(minWidth, '%')) { + var _ratio3 = Number(minWidth.replace('%', '')) / 100; + minWidth = parentSize.width * _ratio3; + } + if (minHeight && typeof minHeight === 'string' && endsWith(minHeight, '%')) { + var _ratio4 = Number(minHeight.replace('%', '')) / 100; + minHeight = parentSize.height * _ratio4; + } + maxWidth = typeof maxWidth === 'undefined' ? undefined : Number(maxWidth); + maxHeight = typeof maxHeight === 'undefined' ? undefined : Number(maxHeight); + minWidth = typeof minWidth === 'undefined' ? undefined : Number(minWidth); + minHeight = typeof minHeight === 'undefined' ? undefined : Number(minHeight); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + var ratio = typeof lockAspectRatio === 'number' ? lockAspectRatio : original.width / original.height; + var newWidth = original.width; + var newHeight = original.height; + if (/right/i.test(direction)) { + newWidth = original.width + (clientX - original.x) * resizeRatio / scale; + if (lockAspectRatio) newHeight = (newWidth - lockAspectRatioExtraWidth) / ratio + lockAspectRatioExtraHeight; + } + if (/left/i.test(direction)) { + newWidth = original.width - (clientX - original.x) * resizeRatio / scale; + if (lockAspectRatio) newHeight = (newWidth - lockAspectRatioExtraWidth) / ratio + lockAspectRatioExtraHeight; + } + if (/bottom/i.test(direction)) { + newHeight = original.height + (clientY - original.y) * resizeRatio / scale; + if (lockAspectRatio) newWidth = (newHeight - lockAspectRatioExtraHeight) * ratio + lockAspectRatioExtraWidth; + } + if (/top/i.test(direction)) { + newHeight = original.height - (clientY - original.y) * resizeRatio / scale; + if (lockAspectRatio) newWidth = (newHeight - lockAspectRatioExtraHeight) * ratio + lockAspectRatioExtraWidth; + } - /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ - function addEventListenerWrap(target, eventType, cb) { - /* eslint camelcase: 2 */ - var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) { - _reactDom2.default.unstable_batchedUpdates(cb, e); - } : cb; - return (0, _addDomEventListener2.default)(target, eventType, callback); - } + if (this.props.bounds === 'parent') { + var parent = this.parentNode; + if (parent instanceof HTMLElement) { + var parentRect = parent.getBoundingClientRect(); + var parentLeft = parentRect.left; + var parentTop = parentRect.top; - /***/ }), - /* 281 */ - /***/ (function(module, exports, __webpack_require__) { + var _resizable$getBoundin = this.resizable.getBoundingClientRect(), + _left = _resizable$getBoundin.left, + _top = _resizable$getBoundin.top; - "use strict"; + var boundWidth = parent.offsetWidth + (parentLeft - _left); + var boundHeight = parent.offsetHeight + (parentTop - _top); + maxWidth = maxWidth && maxWidth < boundWidth ? maxWidth : boundWidth; + maxHeight = maxHeight && maxHeight < boundHeight ? maxHeight : boundHeight; + } + } else if (this.props.bounds === 'window') { + if (typeof window !== 'undefined') { + var _resizable$getBoundin2 = this.resizable.getBoundingClientRect(), + _left2 = _resizable$getBoundin2.left, + _top2 = _resizable$getBoundin2.top; + var _boundWidth = window.innerWidth - _left2; + var _boundHeight = window.innerHeight - _top2; + maxWidth = maxWidth && maxWidth < _boundWidth ? maxWidth : _boundWidth; + maxHeight = maxHeight && maxHeight < _boundHeight ? maxHeight : _boundHeight; + } + } else if (this.props.bounds instanceof HTMLElement) { + var targetRect = this.props.bounds.getBoundingClientRect(); + var targetLeft = targetRect.left; + var targetTop = targetRect.top; - Object.defineProperty(exports, "__esModule", { - value: true - }); - var util = { - isAppearSupported: function isAppearSupported(props) { - return props.transitionName && props.transitionAppear || props.animation.appear; - }, - isEnterSupported: function isEnterSupported(props) { - return props.transitionName && props.transitionEnter || props.animation.enter; - }, - isLeaveSupported: function isLeaveSupported(props) { - return props.transitionName && props.transitionLeave || props.animation.leave; - }, - allowAppearCallback: function allowAppearCallback(props) { - return props.transitionAppear || props.animation.appear; - }, - allowEnterCallback: function allowEnterCallback(props) { - return props.transitionEnter || props.animation.enter; - }, - allowLeaveCallback: function allowLeaveCallback(props) { - return props.transitionLeave || props.animation.leave; - } - }; - exports["default"] = util; - module.exports = exports["default"]; + var _resizable$getBoundin3 = this.resizable.getBoundingClientRect(), + _left3 = _resizable$getBoundin3.left, + _top3 = _resizable$getBoundin3.top; - /***/ }), - /* 282 */ - /***/ (function(module, exports, __webpack_require__) { + if (!(this.props.bounds instanceof HTMLElement)) return; + var _boundWidth2 = this.props.bounds.offsetWidth + (targetLeft - _left3); + var _boundHeight2 = this.props.bounds.offsetHeight + (targetTop - _top3); + maxWidth = maxWidth && maxWidth < _boundWidth2 ? maxWidth : _boundWidth2; + maxHeight = maxHeight && maxHeight < _boundHeight2 ? maxHeight : _boundHeight2; + } - "use strict"; + var computedMinWidth = typeof minWidth === 'undefined' ? 10 : minWidth; + var computedMaxWidth = typeof maxWidth === 'undefined' || maxWidth < 0 ? newWidth : maxWidth; + var computedMinHeight = typeof minHeight === 'undefined' ? 10 : minHeight; + var computedMaxHeight = typeof maxHeight === 'undefined' || maxHeight < 0 ? newHeight : maxHeight; + if (lockAspectRatio) { + var extraMinWidth = (computedMinHeight - lockAspectRatioExtraHeight) * ratio + lockAspectRatioExtraWidth; + var extraMaxWidth = (computedMaxHeight - lockAspectRatioExtraHeight) * ratio + lockAspectRatioExtraWidth; + var extraMinHeight = (computedMinWidth - lockAspectRatioExtraWidth) / ratio + lockAspectRatioExtraHeight; + var extraMaxHeight = (computedMaxWidth - lockAspectRatioExtraWidth) / ratio + lockAspectRatioExtraHeight; + var lockedMinWidth = Math.max(computedMinWidth, extraMinWidth); + var lockedMaxWidth = Math.min(computedMaxWidth, extraMaxWidth); + var lockedMinHeight = Math.max(computedMinHeight, extraMinHeight); + var lockedMaxHeight = Math.min(computedMaxHeight, extraMaxHeight); + newWidth = clamp(newWidth, lockedMinWidth, lockedMaxWidth); + newHeight = clamp(newHeight, lockedMinHeight, lockedMaxHeight); + } else { + newWidth = clamp(newWidth, computedMinWidth, computedMaxWidth); + newHeight = clamp(newHeight, computedMinHeight, computedMaxHeight); + } + if (this.props.grid) { + newWidth = snap(newWidth, this.props.grid[0]); + } + if (this.props.grid) { + newHeight = snap(newHeight, this.props.grid[1]); + } - var deselectCurrent = __webpack_require__(926); + if (this.props.snap && this.props.snap.x) { + newWidth = findClosestSnap(newWidth, this.props.snap.x); + } + if (this.props.snap && this.props.snap.y) { + newHeight = findClosestSnap(newHeight, this.props.snap.y); + } - var clipboardToIE11Formatting = { - "text/plain": "Text", - "text/html": "Url", - "default": "Text" - } + var delta = { + width: newWidth - original.width, + height: newHeight - original.height + }; - var defaultMessage = "Copy to clipboard: #{key}, Enter"; + if (width && typeof width === 'string' && endsWith(width, '%')) { + var percent = newWidth / parentSize.width * 100; + newWidth = percent + '%'; + } - function format(message) { - var copyKey = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C"; - return message.replace(/#{\s*key\s*}/g, copyKey); - } + if (height && typeof height === 'string' && endsWith(height, '%')) { + var _percent = newHeight / parentSize.height * 100; + newHeight = _percent + '%'; + } - function copy(text, options) { - var debug, - message, - reselectPrevious, - range, - selection, - mark, - success = false; - if (!options) { - options = {}; - } - debug = options.debug || false; - try { - reselectPrevious = deselectCurrent(); + this.setState({ + width: this.calculateNewSize(newWidth, 'width'), + height: this.calculateNewSize(newHeight, 'height') + }); - range = document.createRange(); - selection = document.getSelection(); + if (this.props.onResize) { + this.props.onResize(event, direction, this.resizable, delta); + } + } + }, { + key: 'onMouseUp', + value: function onMouseUp(event) { + var _state2 = this.state, + isResizing = _state2.isResizing, + direction = _state2.direction, + original = _state2.original; - mark = document.createElement("span"); - mark.textContent = text; - // reset user styles for span element - mark.style.all = "unset"; - // prevents scrolling to the end of the page - mark.style.position = "fixed"; - mark.style.top = 0; - mark.style.clip = "rect(0, 0, 0, 0)"; - // used to preserve spaces and line breaks - mark.style.whiteSpace = "pre"; - // do not inherit user-select (it may be `none`) - mark.style.webkitUserSelect = "text"; - mark.style.MozUserSelect = "text"; - mark.style.msUserSelect = "text"; - mark.style.userSelect = "text"; - mark.addEventListener("copy", function(e) { - e.stopPropagation(); - if (options.format) { - e.preventDefault(); - if (typeof e.clipboardData === "undefined") { // IE 11 - debug && console.warn("unable to use e.clipboardData"); - debug && console.warn("trying IE specific stuff"); - window.clipboardData.clearData(); - var format = clipboardToIE11Formatting[options.format] || clipboardToIE11Formatting["default"] - window.clipboardData.setData(format, text); - } else { // all other browsers - e.clipboardData.clearData(); - e.clipboardData.setData(options.format, text); - } + if (!isResizing) return; + var delta = { + width: this.size.width - original.width, + height: this.size.height - original.height + }; + if (this.props.onResizeStop) { + this.props.onResizeStop(event, direction, this.resizable, delta); } - if (options.onCopy) { - e.preventDefault(); - options.onCopy(e.clipboardData); + if (this.props.size) { + this.setState(this.props.size); } - }); + this.setState({ isResizing: false, resizeCursor: 'auto' }); + } + }, { + key: 'updateSize', + value: function updateSize(size) { + this.setState({ width: size.width, height: size.height }); + } + }, { + key: 'renderResizer', + value: function renderResizer() { + var _this2 = this; - document.body.appendChild(mark); + var _props3 = this.props, + enable = _props3.enable, + handleStyles = _props3.handleStyles, + handleClasses = _props3.handleClasses, + handleWrapperStyle = _props3.handleWrapperStyle, + handleWrapperClass = _props3.handleWrapperClass, + handleComponent = _props3.handleComponent; - range.selectNodeContents(mark); - selection.addRange(range); + if (!enable) return null; + var resizers = Object.keys(enable).map(function (dir) { + if (enable[dir] !== false) { + return Object(__WEBPACK_IMPORTED_MODULE_0_react__["createElement"])( + Resizer, + { + key: dir, + direction: dir, + onResizeStart: _this2.onResizeStart, + replaceStyles: handleStyles && handleStyles[dir], + className: handleClasses && handleClasses[dir] + }, + handleComponent && handleComponent[dir] ? Object(__WEBPACK_IMPORTED_MODULE_0_react__["createElement"])(handleComponent[dir]) : null + ); + } + return null; + }); + // #93 Wrap the resize box in span (will not break 100% width/height) + return Object(__WEBPACK_IMPORTED_MODULE_0_react__["createElement"])( + 'span', + { className: handleWrapperClass, style: handleWrapperStyle }, + resizers + ); + } + }, { + key: 'render', + value: function render() { + var _this3 = this; - var successful = document.execCommand("copy"); - if (!successful) { - throw new Error("copy command was unsuccessful"); + var userSelect = this.state.isResizing ? userSelectNone : userSelectAuto; + return Object(__WEBPACK_IMPORTED_MODULE_0_react__["createElement"])( + 'div', + _extends({ + ref: function ref(c) { + if (c) { + _this3.resizable = c; + } + }, + style: _extends({ + position: 'relative' + }, userSelect, this.props.style, this.sizeStyle, { + maxWidth: this.props.maxWidth, + maxHeight: this.props.maxHeight, + minWidth: this.props.minWidth, + minHeight: this.props.minHeight, + boxSizing: 'border-box' + }), + className: this.props.className + }, this.extendsProps), + this.state.isResizing && Object(__WEBPACK_IMPORTED_MODULE_0_react__["createElement"])('div', { + style: { + height: '100%', + width: '100%', + backgroundColor: 'rgba(0,0,0,0)', + cursor: '' + (this.state.resizeCursor || 'auto'), + opacity: '0', + position: 'fixed', + zIndex: '9999', + top: '0', + left: '0', + bottom: '0', + right: '0' + } + }), + this.props.children, + this.renderResizer() + ); } - success = true; - } catch (err) { - debug && console.error("unable to copy using execCommand: ", err); - debug && console.warn("trying IE specific stuff"); - try { - window.clipboardData.setData(options.format || "text", text); - options.onCopy && options.onCopy(window.clipboardData); - success = true; - } catch (err) { - debug && console.error("unable to copy using clipboardData: ", err); - debug && console.error("falling back to prompt"); - message = format("message" in options ? options.message : defaultMessage); - window.prompt(message, text); + }, { + key: 'parentNode', + get: function get$$1() { + return this.resizable.parentNode; } - } finally { - if (selection) { - if (typeof selection.removeRange == "function") { - selection.removeRange(range); - } else { - selection.removeAllRanges(); + }, { + key: 'propsSize', + get: function get$$1() { + return this.props.size || this.props.defaultSize; + } + }, { + key: 'base', + get: function get$$1() { + var parent = this.parentNode; + if (!parent) return undefined; + var children = [].slice.call(parent.children); + for (var i = 0; i < children.length; i += 1) { + var n = children[i]; + if (n instanceof HTMLElement) { + if (n.classList.contains(baseClassName)) { + return n; + } + } } + return undefined; } - - if (mark) { - document.body.removeChild(mark); + }, { + key: 'size', + get: function get$$1() { + var width = 0; + var height = 0; + if (typeof window !== 'undefined') { + var orgWidth = this.resizable.offsetWidth; + var orgHeight = this.resizable.offsetHeight; + // HACK: Set position `relative` to get parent size. + // This is because when re-resizable set `absolute`, I can not get base width correctly. + var orgPosition = this.resizable.style.position; + if (orgPosition !== 'relative') { + this.resizable.style.position = 'relative'; + } + // INFO: Use original width or height if set auto. + width = this.resizable.style.width !== 'auto' ? this.resizable.offsetWidth : orgWidth; + height = this.resizable.style.height !== 'auto' ? this.resizable.offsetHeight : orgHeight; + // Restore original position + this.resizable.style.position = orgPosition; + } + return { width: width, height: height }; } - reselectPrevious(); - } - - return success; - } - - module.exports = copy; - - - /***/ }), - /* 283 */ - /***/ (function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! - Copyright (c) 2017 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames - */ - /* global define */ - - (function () { - 'use strict'; - - var hasOwn = {}.hasOwnProperty; - - function classNames () { - var classes = []; - - for (var i = 0; i < arguments.length; i++) { - var arg = arguments[i]; - if (!arg) continue; - - var argType = typeof arg; - - if (argType === 'string' || argType === 'number') { - classes.push(arg); - } else if (Array.isArray(arg) && arg.length) { - var inner = classNames.apply(null, arg); - if (inner) { - classes.push(inner); - } - } else if (argType === 'object') { - for (var key in arg) { - if (hasOwn.call(arg, key) && arg[key]) { - classes.push(key); - } - } - } - } - - return classes.join(' '); - } - - if (typeof module !== 'undefined' && module.exports) { - classNames.default = classNames; - module.exports = classNames; - } else if (true) { - // register as 'classnames', consistent with npm package name - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () { - return classNames; - }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), - __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else { - window.classNames = classNames; - } - }()); - - - /***/ }), - /* 284 */ - /***/ (function(module, exports, __webpack_require__) { - - "use strict"; - + }, { + key: 'sizeStyle', + get: function get$$1() { + var _this4 = this; - exports.__esModule = true; - /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ - function createChainedFunction() { - for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) { - funcs[_key] = arguments[_key]; - } + var size = this.props.size; - return funcs.filter(function (f) { - return f != null; - }).reduce(function (acc, f) { - if (typeof f !== 'function') { - throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.'); + var getSize = function getSize(key) { + if (typeof _this4.state[key] === 'undefined' || _this4.state[key] === 'auto') return 'auto'; + if (_this4.propsSize && _this4.propsSize[key] && endsWith(_this4.propsSize[key].toString(), '%')) { + if (endsWith(_this4.state[key].toString(), '%')) return _this4.state[key].toString(); + var parentSize = _this4.getParentSize(); + var value = Number(_this4.state[key].toString().replace('px', '')); + var percent = value / parentSize[key] * 100; + return percent + '%'; + } + return getStringSize(_this4.state[key]); + }; + var width = size && typeof size.width !== 'undefined' && !this.state.isResizing ? getStringSize(size.width) : getSize('width'); + var height = size && typeof size.height !== 'undefined' && !this.state.isResizing ? getStringSize(size.height) : getSize('height'); + return { width: width, height: height }; } + }]); + return Resizable; + }(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]); - if (acc === null) { - return f; - } + Resizable.defaultProps = { + onResizeStart: function onResizeStart() {}, + onResize: function onResize() {}, + onResizeStop: function onResizeStop() {}, + enable: { + top: true, + right: true, + bottom: true, + left: true, + topRight: true, + bottomRight: true, + bottomLeft: true, + topLeft: true + }, + style: {}, + grid: [1, 1], + lockAspectRatio: false, + lockAspectRatioExtraWidth: 0, + lockAspectRatioExtraHeight: 0, + scale: 1, + resizeRatio: 1 + }; - return function chainedFunction() { - for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - args[_key2] = arguments[_key2]; - } + /* harmony default export */ __webpack_exports__["default"] = (Resizable); - acc.apply(this, args); - f.apply(this, args); - }; - }, null); - } - exports.default = createChainedFunction; /***/ }), - /* 285 */ + /* 176 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; exports.__esModule = true; - exports.default = addEventListenerWrap; - - var _addDomEventListener = __webpack_require__(12); - - var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener); - - var _reactDom = __webpack_require__(3); - - var _reactDom2 = _interopRequireDefault(_reactDom); + exports.default = createChainableTypeChecker; + /** + * Copyright 2013-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + // Mostly taken from ReactPropTypes. - /** - * This source code is quoted from rc-util. + /* This source code is quoted from rc-util. * homepage: https://github.com/react-component/util */ - function addEventListenerWrap(target, eventType, cb) { - /* eslint camelcase: 2 */ - var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) { - _reactDom2.default.unstable_batchedUpdates(cb, e); - } : cb; - return (0, _addDomEventListener2.default)(target, eventType, callback); - } - /***/ }), - /* 286 */ - /***/ (function(module, exports, __webpack_require__) { + function createChainableTypeChecker(validate) { + function checkType(isRequired, props, propName, componentName, location, propFullName) { + var componentNameSafe = componentName || '<>'; + var propFullNameSafe = propFullName || propName; - "use strict"; + if (props[propName] == null) { + if (isRequired) { + return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); + } + return null; + } - Object.defineProperty(exports, "__esModule", { - value: true - }); - var util = { - isAppearSupported: function isAppearSupported(props) { - return props.transitionName && props.transitionAppear || props.animation.appear; - }, - isEnterSupported: function isEnterSupported(props) { - return props.transitionName && props.transitionEnter || props.animation.enter; - }, - isLeaveSupported: function isLeaveSupported(props) { - return props.transitionName && props.transitionLeave || props.animation.leave; - }, - allowAppearCallback: function allowAppearCallback(props) { - return props.transitionAppear || props.animation.appear; - }, - allowEnterCallback: function allowEnterCallback(props) { - return props.transitionEnter || props.animation.enter; - }, - allowLeaveCallback: function allowLeaveCallback(props) { - return props.transitionLeave || props.animation.leave; + for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { + args[_key - 6] = arguments[_key]; + } + + return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); } - }; - exports["default"] = util; - module.exports = exports["default"]; + + var chainedCheckType = checkType.bind(null, false); + chainedCheckType.isRequired = checkType.bind(null, true); + + return chainedCheckType; + } /***/ }), - /* 287 */ + /* 177 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _react = __webpack_require__(0); - - var _react2 = _interopRequireDefault(_react); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - - var AdvancedContainer = function (_React$Component) { - _inherits(AdvancedContainer, _React$Component); - - function AdvancedContainer() { - _classCallCheck(this, AdvancedContainer); - - return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); - } - - AdvancedContainer.prototype.render = function render() { - return this.props.children; - }; - - return AdvancedContainer; - }(_react2["default"].Component); - - AdvancedContainer.show = true; - exports["default"] = AdvancedContainer; - module.exports = exports['default']; + module.exports = { + 'lang': 'zh-cn', + 'resetSettings': '还原设置', + 'include': '包含', + 'exclusive': '不包含', + 'equal': '等于', + 'unequal': '不等于', + 'begin': '以开始', + 'end': '以结尾', + 'greater_than': '大于', + 'great_than_equal_to': '大于等于', + 'less_than': '小于', + 'less_than_equal_to': '小于等于', + 'be_equal_to': '等于', + 'not_equal_to': '不等于', + "no_data": '暂无数据', + "bool_true": "是", + "bool_false": "否", + 'en-us': { + 'resetSettings': 'Reset', + 'include': 'Include', + 'exclusive': 'Not include', + 'equal': 'Equal to', + 'unequal': 'Not equal to', + 'begin': 'Begin with', + 'end': 'End with', + 'greater_than': 'Greater than', + 'great_than_equal_to': 'Greater than or equal to', + 'less_than': 'Less than', + 'less_than_equal_to': 'Less than or equal to', + 'be_equal_to': 'Equal to', + 'not_equal_to': 'Not equal to', + "no_data": 'No data', + "bool_true": "true", + "bool_false": "false" + }, + 'zh-tw': { + 'resetSettings': '還原設置', + 'include': '包含', + 'exclusive': '不包含', + 'equal': '等於', + 'unequal': '不等於', + 'begin': '以開始', + 'end': '以結尾', + 'greater_than': '大於', + 'great_than_equal_to': '大於等於', + 'less_than': '小於', + 'less_than_equal to': '小於等於', + 'be_equal_to': '等於', + 'not_equal_to': '不等於', + "no_data": '暫無數據', + "bool_true": "是", + "bool_false": "否" + } + }; /***/ }), - /* 288 */ + /* 178 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { - value: true + value: true }); - var _react = __webpack_require__(0); - - var _react2 = _interopRequireDefault(_react); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - - var HeadContainer = function (_React$Component) { - _inherits(HeadContainer, _React$Component); - - function HeadContainer() { - _classCallCheck(this, HeadContainer); + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); - } + exports.getComponentLocale = getComponentLocale; + exports.getLocaleCode = getLocaleCode; + function getComponentLocale(props, context, componentName, getDefaultLocale) { + var locale = {}; + if (context && context.beeLocale && context.beeLocale[componentName]) { + locale = context.beeLocale[componentName]; + } else { + var defaultLocale = getDefaultLocale(); - HeadContainer.prototype.render = function render() { - var _props = this.props, - children = _props.children, - clsPrefix = _props.clsPrefix, - _className = _props.className; + locale = defaultLocale["default"] || defaultLocale; + } - var ht = children ? _react2["default"].createElement( - 'div', - null, - children - ) : null; - return ht; - }; + var result = _extends({}, locale, props.locale); + if (props.locale) { + result.lang = _extends({}, locale.lang, props.locale.lang); + } else { + result.lang = _extends({}, locale.lang); + } - return HeadContainer; - }(_react2["default"].Component); + return result; + } - exports["default"] = HeadContainer; - module.exports = exports['default']; + function getLocaleCode(context) { + var localeCode = context.beeLocale && context.beeLocale.lang; + // Had use LocaleProvide but didn't set locale + if (context.beeLocale && context.beeLocale.exist && !localeCode) { + return 'zh-cn'; + } + return localeCode; + } /***/ }), - /* 289 */ + /* 179 */ /***/ (function(module, exports, __webpack_require__) { - "use strict"; - - - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.Fade = exports.Collapse = exports.Transition = undefined; - - var _Transition2 = __webpack_require__(158); - - var _Transition3 = _interopRequireDefault(_Transition2); + //! moment.js locale configuration + //! locale : English (United Kingdom) [en-gb] + //! author : Chris Gedrim : https://github.com/chrisgedrim - var _Collapse2 = __webpack_require__(290); + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _Collapse3 = _interopRequireDefault(_Collapse2); + //! moment.js locale configuration - var _Fade2 = __webpack_require__(983); + var enGb = moment.defineLocale('en-gb', { + months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), + weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( + '_' + ), + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + ss: '%d seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years', + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal: function (number) { + var b = number % 10, + output = + ~~((number % 100) / 10) === 1 + ? 'th' + : b === 1 + ? 'st' + : b === 2 + ? 'nd' + : b === 3 + ? 'rd' + : 'th'; + return number + output; + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - var _Fade3 = _interopRequireDefault(_Fade2); + return enGb; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + }))); - exports.Transition = _Transition3["default"]; - exports.Collapse = _Collapse3["default"]; - exports.Fade = _Fade3["default"]; /***/ }), - /* 290 */ + /* 180 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -135469,16 +125731,6 @@ value: true }); - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - - var _classnames = __webpack_require__(2); - - var _classnames2 = _interopRequireDefault(_classnames); - - var _style = __webpack_require__(31); - - var _style2 = _interopRequireDefault(_style); - var _react = __webpack_require__(0); var _react2 = _interopRequireDefault(_react); @@ -135487,319 +125739,282 @@ var _propTypes2 = _interopRequireDefault(_propTypes); - var _Transition = __webpack_require__(158); + var _mapSelf = __webpack_require__(453); - var _Transition2 = _interopRequireDefault(_Transition); + var _mapSelf2 = _interopRequireDefault(_mapSelf); - var _capitalize = __webpack_require__(968); + var _MonthPanel = __webpack_require__(1230); - var _capitalize2 = _interopRequireDefault(_capitalize); + var _MonthPanel2 = _interopRequireDefault(_MonthPanel); + + var _YearPanel = __webpack_require__(454); + + var _YearPanel2 = _interopRequireDefault(_YearPanel); + + var _DecadePanel = __webpack_require__(455); - var _tinperBeeCore = __webpack_require__(969); + var _DecadePanel2 = _interopRequireDefault(_DecadePanel); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - var MARGINS = { - height: ['marginTop', 'marginBottom'], - width: ['marginLeft', 'marginRight'] - }; - - // reading a dimension prop will cause the browser to recalculate, - // which will let our animations work - function triggerBrowserReflow(node) { - node.offsetHeight; // eslint-disable-line no-unused-expressions + function goMonth(direction) { + var next = this.props.value.clone(); + next.add(direction, 'months'); + this.props.onValueChange(next); } - function getDimensionValue(dimension, elem) { - var value = elem['offset' + (0, _capitalize2["default"])(dimension)]; - var margins = MARGINS[dimension]; - - return value + parseInt((0, _style2["default"])(elem, margins[0]), 10) + parseInt((0, _style2["default"])(elem, margins[1]), 10); + function goYear(direction) { + var next = this.props.value.clone(); + next.add(direction, 'years'); + this.props.onValueChange(next); } - var propTypes = { - /** - * Show the component; triggers the expand or collapse animation - */ - "in": _propTypes2["default"].bool, - - /** - * Unmount the component (remove it from the DOM) when it is collapsed - */ - unmountOnExit: _propTypes2["default"].bool, - - /** - * Run the expand animation when the component mounts, if it is initially - * shown - */ - transitionAppear: _propTypes2["default"].bool, - - /** - * Duration of the collapse animation in milliseconds, to ensure that - * finishing callbacks are fired even if the original browser transition end - * events are canceled - */ - timeout: _propTypes2["default"].number, - - /** - * Callback fired before the component expands - */ - onEnter: _propTypes2["default"].func, - /** - * Callback fired after the component starts to expand - */ - onEntering: _propTypes2["default"].func, - /** - * Callback fired after the component has expanded - */ - onEntered: _propTypes2["default"].func, - /** - * Callback fired before the component collapses - */ - onExit: _propTypes2["default"].func, - /** - * Callback fired after the component starts to collapse - */ - onExiting: _propTypes2["default"].func, - /** - * Callback fired after the component has collapsed - */ - onExited: _propTypes2["default"].func, - - /** - * The dimension used when collapsing, or a function that returns the - * dimension - * - * _Note: Bootstrap only partially supports 'width'! - * You will need to supply your own CSS animation for the `.width` CSS class._ - */ - dimension: _propTypes2["default"].oneOfType([_propTypes2["default"].oneOf(['height', 'width']), _propTypes2["default"].func]), - - /** - * Function that returns the height or width of the animating DOM node - * - * Allows for providing some custom logic for how much the Collapse component - * should animate in its specified dimension. Called with the current - * dimension prop value and the DOM node. - */ - getDimensionValue: _propTypes2["default"].func, - - /** - * ARIA role of collapsible element - */ - role: _propTypes2["default"].string - }; + function showIf(condition, el) { + return condition ? el : null; + } - var defaultProps = { - "in": false, - timeout: 300, - unmountOnExit: false, - transitionAppear: false, + var CalendarHeader = function (_React$Component) { + _inherits(CalendarHeader, _React$Component); - dimension: 'height', - getDimensionValue: getDimensionValue - }; + function CalendarHeader(props) { + _classCallCheck(this, CalendarHeader); - var Collapse = function (_React$Component) { - _inherits(Collapse, _React$Component); + var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); - function Collapse(props, context) { - _classCallCheck(this, Collapse); + _initialiseProps.call(_this); - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context)); + _this.nextMonth = goMonth.bind(_this, 1); + _this.previousMonth = goMonth.bind(_this, -1); + _this.nextYear = goYear.bind(_this, 1); + _this.previousYear = goYear.bind(_this, -1); - _this.handleEnter = _this.handleEnter.bind(_this); - _this.handleEntering = _this.handleEntering.bind(_this); - _this.handleEntered = _this.handleEntered.bind(_this); - _this.handleExit = _this.handleExit.bind(_this); - _this.handleExiting = _this.handleExiting.bind(_this); + _this.state = { yearPanelReferer: null }; return _this; } - /* -- Expanding -- */ + CalendarHeader.prototype.render = function render() { + var _this2 = this; + var props = this.props; + var prefixCls = props.prefixCls, + locale = props.locale, + mode = props.mode, + value = props.value, + showTimePicker = props.showTimePicker, + enableNext = props.enableNext, + enablePrev = props.enablePrev, + disabledMonth = props.disabledMonth, + renderFooter = props.renderFooter, + onChange = props.onChange, + onClear = props.onClear, + showMonthInput = props.showMonthInput; - Collapse.prototype.handleEnter = function handleEnter(elem) { - var dimension = this._dimension(); - elem.style[dimension] = '0'; - }; - Collapse.prototype.handleEntering = function handleEntering(elem) { - var dimension = this._dimension(); - elem.style[dimension] = this._getScrollDimensionValue(elem, dimension); - }; + var panel = null; + if (mode === 'month') { + panel = _react2["default"].createElement(_MonthPanel2["default"], { + showDateInput: true, + locale: locale, + showMonthInput: showMonthInput, + defaultValue: value, + rootPrefixCls: prefixCls, + onSelect: this.onMonthSelect, + onYearPanelShow: function onYearPanelShow() { + return _this2.showYearPanel('month'); + }, + disabledDate: disabledMonth, + cellRender: props.monthCellRender, + contentRender: props.monthCellContentRender, + renderFooter: renderFooter, + onChange: onChange, + onClear: onClear, + value: value + }); + } + if (mode === 'year') { + panel = _react2["default"].createElement(_YearPanel2["default"], { + locale: locale, + defaultValue: value, + rootPrefixCls: prefixCls, + onSelect: this.onYearSelect, + onDecadePanelShow: this.showDecadePanel, + renderFooter: renderFooter + }); + } + if (mode === 'decade') { + panel = _react2["default"].createElement(_DecadePanel2["default"], { + locale: locale, + defaultValue: value, + rootPrefixCls: prefixCls, + onSelect: this.onDecadeSelect, + renderFooter: renderFooter + }); + } - Collapse.prototype.handleEntered = function handleEntered(elem) { - var dimension = this._dimension(); - elem.style[dimension] = null; + return _react2["default"].createElement( + 'div', + { className: prefixCls + '-header' }, + _react2["default"].createElement( + 'div', + { style: { position: 'relative' }, className: prefixCls + '-header-btns' }, + showIf(enablePrev && !showTimePicker, _react2["default"].createElement('a', { + className: prefixCls + '-prev-year-btn', + role: 'button', + onClick: this.previousYear, + title: locale.previousYear + })), + showIf(enablePrev && !showTimePicker, _react2["default"].createElement('a', { + className: prefixCls + '-prev-month-btn', + role: 'button', + onClick: this.previousMonth, + title: locale.previousMonth + })), + this.monthYearElement(showTimePicker), + showIf(enableNext && !showTimePicker, _react2["default"].createElement('a', { + className: prefixCls + '-next-month-btn', + onClick: this.nextMonth, + title: locale.nextMonth + })), + showIf(enableNext && !showTimePicker, _react2["default"].createElement('a', { + className: prefixCls + '-next-year-btn', + onClick: this.nextYear, + title: locale.nextYear + })) + ), + panel + ); }; - /* -- Collapsing -- */ + return CalendarHeader; + }(_react2["default"].Component); + CalendarHeader.propTypes = { + prefixCls: _propTypes2["default"].string, + value: _propTypes2["default"].object, + onValueChange: _propTypes2["default"].func, + showTimePicker: _propTypes2["default"].bool, + onPanelChange: _propTypes2["default"].func, + locale: _propTypes2["default"].object, + enablePrev: _propTypes2["default"].any, + enableNext: _propTypes2["default"].any, + disabledMonth: _propTypes2["default"].func, + renderFooter: _propTypes2["default"].func, + onMonthSelect: _propTypes2["default"].func + }; + CalendarHeader.defaultProps = { + enableNext: 1, + enablePrev: 1, + onPanelChange: function onPanelChange() {}, + onValueChange: function onValueChange() {} + }; - Collapse.prototype.handleExit = function handleExit(elem) { - var dimension = this._dimension(); - elem.style[dimension] = this.props.getDimensionValue(dimension, elem) + 'px'; - triggerBrowserReflow(elem); - }; + var _initialiseProps = function _initialiseProps() { + var _this3 = this; - Collapse.prototype.handleExiting = function handleExiting(elem) { - var dimension = this._dimension(); - elem.style[dimension] = '0'; + this.onMonthSelect = function (value) { + _this3.props.onPanelChange(value, 'date'); + if (_this3.props.onMonthSelect) { + _this3.props.onMonthSelect(value); + } else { + _this3.props.onValueChange(value); + } }; - Collapse.prototype._dimension = function _dimension() { - return typeof this.props.dimension === 'function' ? this.props.dimension() : this.props.dimension; + this.onYearSelect = function (value) { + var referer = _this3.state.yearPanelReferer; + _this3.setState({ yearPanelReferer: null }); + _this3.props.onPanelChange(value, referer); + _this3.props.onValueChange(value); }; - // for testing - - - Collapse.prototype._getScrollDimensionValue = function _getScrollDimensionValue(elem, dimension) { - return elem['scroll' + (0, _capitalize2["default"])(dimension)] + 'px'; + this.onDecadeSelect = function (value) { + _this3.props.onPanelChange(value, 'year'); + _this3.props.onValueChange(value); }; - Collapse.prototype.render = function render() { - var _props = this.props, - onEnter = _props.onEnter, - onEntering = _props.onEntering, - onEntered = _props.onEntered, - onExit = _props.onExit, - onExiting = _props.onExiting, - className = _props.className, - props = _objectWithoutProperties(_props, ['onEnter', 'onEntering', 'onEntered', 'onExit', 'onExiting', 'className']); - - delete props.dimension; - delete props.getDimensionValue; - - var handleEnter = (0, _tinperBeeCore.createChainedFunction)(this.handleEnter, onEnter); - var handleEntering = (0, _tinperBeeCore.createChainedFunction)(this.handleEntering, onEntering); - var handleEntered = (0, _tinperBeeCore.createChainedFunction)(this.handleEntered, onEntered); - var handleExit = (0, _tinperBeeCore.createChainedFunction)(this.handleExit, onExit); - var handleExiting = (0, _tinperBeeCore.createChainedFunction)(this.handleExiting, onExiting); - - var classes = { - width: this._dimension() === 'width' - }; + this.monthYearElement = function (showTimePicker) { + var props = _this3.props; + var prefixCls = props.prefixCls; + var locale = props.locale; + var value = props.value; + var localeData = value.localeData && value.localeData(); + var monthBeforeYear = locale.monthBeforeYear; + var selectClassName = prefixCls + '-' + (monthBeforeYear ? 'my-select' : 'ym-select'); + var timeClassName = showTimePicker ? ' ' + prefixCls + '-time-status' : ''; + var year = _react2["default"].createElement( + 'a', + { + className: prefixCls + '-year-select' + timeClassName, + role: 'button', + onClick: showTimePicker ? null : function () { + return _this3.showYearPanel('date'); + }, + title: showTimePicker ? null : locale.yearSelect + }, + value.format(locale.yearFormat) + ); + var month = _react2["default"].createElement( + 'a', + { + className: prefixCls + '-month-select' + timeClassName, + role: 'button', + onClick: showTimePicker ? null : _this3.showMonthPanel, + title: showTimePicker ? null : locale.monthSelect + }, + locale.monthFormat ? value.format(locale.monthFormat) : localeData.monthsShort(value) + ); + var day = void 0; + if (showTimePicker) { + day = _react2["default"].createElement( + 'a', + { + className: prefixCls + '-day-select' + timeClassName, + role: 'button' + }, + value.format(locale.dayFormat) + ); + } + var my = []; + if (monthBeforeYear) { + my = [month, day, year]; + } else { + my = [year, month, day]; + } + return _react2["default"].createElement( + 'span', + { className: selectClassName }, + (0, _mapSelf2["default"])(my) + ); + }; - return _react2["default"].createElement(_Transition2["default"], _extends({}, props, { - 'aria-expanded': props.role ? props["in"] : null, - className: (0, _classnames2["default"])(className, classes), - exitedClassName: 'collapse', - exitingClassName: 'collapsing', - enteredClassName: 'collapse in', - enteringClassName: 'collapsing', - onEnter: handleEnter, - onEntering: handleEntering, - onEntered: handleEntered, - onExit: handleExit, - onExiting: handleExiting - })); + this.showMonthPanel = function () { + // null means that users' interaction doesn't change value + _this3.props.onPanelChange(null, 'month'); }; - return Collapse; - }(_react2["default"].Component); + this.showYearPanel = function (referer) { + _this3.setState({ yearPanelReferer: referer }); + _this3.props.onPanelChange(null, 'year'); + }; - Collapse.propTypes = propTypes; - Collapse.defaultProps = defaultProps; + this.showDecadePanel = function () { + _this3.props.onPanelChange(null, 'decade'); + }; + }; - exports["default"] = Collapse; + exports["default"] = CalendarHeader; module.exports = exports['default']; /***/ }), - /* 291 */ - /***/ (function(module, exports, __webpack_require__) { - - "use strict"; - - - exports.__esModule = true; - exports.default = addEventListenerWrap; - - var _addDomEventListener = __webpack_require__(12); - - var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener); - - var _reactDom = __webpack_require__(3); - - var _reactDom2 = _interopRequireDefault(_reactDom); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ - function addEventListenerWrap(target, eventType, cb) { - /* eslint camelcase: 2 */ - var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) { - _reactDom2.default.unstable_batchedUpdates(cb, e); - } : cb; - return (0, _addDomEventListener2.default)(target, eventType, callback); - } - - /***/ }), - /* 292 */ - /***/ (function(module, exports, __webpack_require__) { - - "use strict"; - - - exports.__esModule = true; - exports.default = createChainableTypeChecker; - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - - // Mostly taken from ReactPropTypes. - - /* This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ - - function createChainableTypeChecker(validate) { - function checkType(isRequired, props, propName, componentName, location, propFullName) { - var componentNameSafe = componentName || '<>'; - var propFullNameSafe = propFullName || propName; - - if (props[propName] == null) { - if (isRequired) { - return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); - } - - return null; - } - - for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { - args[_key - 6] = arguments[_key]; - } - - return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); - } - - var chainedCheckType = checkType.bind(null, false); - chainedCheckType.isRequired = checkType.bind(null, true); - - return chainedCheckType; - } - - /***/ }), - /* 293 */ + /* 181 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -135808,556 +126023,623 @@ Object.defineProperty(exports, "__esModule", { value: true }); - exports.SubPopupMenu = undefined; - - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; /** - * This source code is quoted from rc-menu. - * homepage: https://github.com/react-component/menu - */ - - - exports.getActiveKey = getActiveKey; - exports.saveRef = saveRef; - - var _react = __webpack_require__(0); - - var _react2 = _interopRequireDefault(_react); + exports.commonMixinWrapper = exports.defaultProp = exports.propType = undefined; var _propTypes = __webpack_require__(1); var _propTypes2 = _interopRequireDefault(_propTypes); - var _miniStore = __webpack_require__(21); - - var _tinperBeeCore = __webpack_require__(103); - - var _createChainedFunction = __webpack_require__(296); - - var _createChainedFunction2 = _interopRequireDefault(_createChainedFunction); - - var _classnames = __webpack_require__(2); - - var _classnames2 = _interopRequireDefault(_classnames); - - var _util = __webpack_require__(61); - - var _DOMWrap = __webpack_require__(1024); + var _en_US = __webpack_require__(461); - var _DOMWrap2 = _interopRequireDefault(_DOMWrap); + var _en_US2 = _interopRequireDefault(_en_US); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + function noop() {} - function allDisabled(arr) { - if (!arr.length) { - return true; + var propType = exports.propType = { + className: _propTypes2["default"].string, + locale: _propTypes2["default"].object, + style: _propTypes2["default"].object, + visible: _propTypes2["default"].bool, + onSelect: _propTypes2["default"].func, + prefixCls: _propTypes2["default"].string, + onChange: _propTypes2["default"].func, + onOk: _propTypes2["default"].func + }; + + var defaultProp = exports.defaultProp = { + locale: _en_US2["default"], + style: {}, + visible: true, + prefixCls: 'rc-calendar', + className: '', + onSelect: noop, + onChange: noop, + onClear: noop, + renderFooter: function renderFooter() { + return null; + }, + renderSidebar: function renderSidebar() { + return null; } - return arr.every(function (c) { - return !!c.props.disabled; - }); - } + }; - function updateActiveKey(store, menuId, activeKey) { - var state = store.getState(); - store.setState({ - activeKey: _extends({}, state.activeKey, _defineProperty({}, menuId, activeKey)) - }); - } + var commonMixinWrapper = exports.commonMixinWrapper = function commonMixinWrapper(ComposeComponent) { + var _class, _temp2; - function getEventKey(props) { - // when eventKey not available ,it's menu and return menu id '0-menu-' - return props.eventKey || '0-menu-'; - } + return _temp2 = _class = function (_ComposeComponent) { + _inherits(_class, _ComposeComponent); - function getActiveKey(props, originalActiveKey) { - var activeKey = originalActiveKey; - var children = props.children, - eventKey = props.eventKey; + function _class() { + var _temp, _this, _ret; - if (activeKey) { - var found = void 0; - (0, _util.loopMenuItem)(children, function (c, i) { - if (c && !c.props.disabled && activeKey === (0, _util.getKeyFromChildrenIndex)(c, eventKey, i)) { - found = true; - } - }); - if (found) { - return activeKey; - } - } - activeKey = null; - if (props.defaultActiveFirst) { - (0, _util.loopMenuItem)(children, function (c, i) { - if (!activeKey && c && !c.props.disabled) { - activeKey = (0, _util.getKeyFromChildrenIndex)(c, eventKey, i); + _classCallCheck(this, _class); + + for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; } - }); - return activeKey; - } - return activeKey; - } - function saveRef(c) { - if (c) { - var index = this.instanceArray.indexOf(c); - if (index !== -1) { - // update component if it's already inside instanceArray - this.instanceArray[index] = c; - } else { - // add component if it's not in instanceArray yet; - this.instanceArray.push(c); + return _ret = (_temp = (_this = _possibleConstructorReturn(this, _ComposeComponent.call.apply(_ComposeComponent, [this].concat(args))), _this), _this.getFormat = function () { + var format = _this.props.format; + var _this$props = _this.props, + locale = _this$props.locale, + timePicker = _this$props.timePicker; + + if (!format) { + if (timePicker) { + format = locale.dateTimeFormat; + } else { + format = locale.dateFormat; + } + } + return format; + }, _this.focus = function () { + if (_this.focusElement) { + _this.focusElement.focus(); + } else if (_this.rootInstance) { + _this.rootInstance.focus(); + } + }, _this.saveFocusElement = function (focusElement) { + _this.focusElement = focusElement; + }, _this.saveRoot = function (root) { + _this.rootInstance = root; + }, _temp), _possibleConstructorReturn(_this, _ret); } - } - } - var SubPopupMenu = exports.SubPopupMenu = function (_React$Component) { - _inherits(SubPopupMenu, _React$Component); + _class.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) { + return this.props.visible || nextProps.visible; + }; - function SubPopupMenu(props) { - _classCallCheck(this, SubPopupMenu); + return _class; + }(ComposeComponent), _class.displayName = 'CommonMixinWrapper', _class.defaultProps = ComposeComponent.defaultProps, _class.getDerivedStateFromProps = ComposeComponent.getDerivedStateFromProps, _temp2; + }; - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); + /***/ }), + /* 182 */ + /***/ (function(module, exports, __webpack_require__) { - _initialiseProps.call(_this); + "use strict"; - props.store.setState({ - activeKey: _extends({}, props.store.getState().activeKey, _defineProperty({}, props.eventKey, getActiveKey(props, props.activeKey))) - }); - _this.instanceArray = []; - return _this; - } + Object.defineProperty(exports, "__esModule", { + value: true + }); - SubPopupMenu.prototype.componentDidMount = function componentDidMount() { - // invoke customized ref to expose component to mixin - if (this.props.manualRef) { - this.props.manualRef(this); - } - }; + var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - SubPopupMenu.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) { - return this.props.visible || nextProps.visible; - }; + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - SubPopupMenu.prototype.componentDidUpdate = function componentDidUpdate(prevProps) { - var props = this.props; - var originalActiveKey = 'activeKey' in props ? props.activeKey : props.store.getState().activeKey[getEventKey(props)]; - var activeKey = getActiveKey(props, originalActiveKey); - if (activeKey !== originalActiveKey) { - updateActiveKey(props.store, getEventKey(props), activeKey); - } else if ('activeKey' in prevProps) { - // If prev activeKey is not same as current activeKey, - // we should set it. - var prevActiveKey = getActiveKey(prevProps, prevProps.activeKey); - if (activeKey !== prevActiveKey) { - updateActiveKey(props.store, getEventKey(props), activeKey); - } - } - }; + exports.browser = browser; + exports.getOffset = getOffset; + exports.loopAllChildren = loopAllChildren; + exports.isInclude = isInclude; + exports.filterParentPosition = filterParentPosition; + exports.handleCheckState = handleCheckState; + exports.getCheck = getCheck; + exports.getStrictlyValue = getStrictlyValue; + exports.arraysEqual = arraysEqual; + exports.closest = closest; + exports.isTreeNode = isTreeNode; + exports.toArray = toArray; + exports.getNodeChildren = getNodeChildren; + exports.warnOnlyTreeNode = warnOnlyTreeNode; + exports.convertListToTree = convertListToTree; + exports.throttle = throttle; - // all keyboard events callbacks run from here at first + var _react = __webpack_require__(0); + var _react2 = _interopRequireDefault(_react); - SubPopupMenu.prototype.render = function render() { - var _this2 = this; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - var props = _objectWithoutProperties(this.props, []); + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } /* eslint no-loop-func: 0*/ - this.instanceArray = []; - var className = (0, _classnames2["default"])(props.prefixCls, props.className, props.prefixCls + '-' + props.mode); - var domProps = { - className: className, - // role could be 'select' and by default set to menu - role: props.role || 'menu' - }; - if (props.id) { - domProps.id = props.id; - } - if (props.focusable) { - domProps.tabIndex = this.props.tabIndex; - domProps.onKeyDown = props.keyboard && this.onKeyDown; - } - var prefixCls = props.prefixCls, - eventKey = props.eventKey, - visible = props.visible, - level = props.level, - mode = props.mode, - overflowedIndicator = props.overflowedIndicator, - theme = props.theme; + function browser(navigator) { + var tem = void 0; + var ua = navigator.userAgent; + var M = ua.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i) || []; + if (/trident/i.test(M[1])) { + tem = /\brv[ :]+(\d+)/g.exec(ua) || []; + return 'IE ' + (tem[1] || ''); + } + if (M[1] === 'Chrome') { + tem = ua.match(/\b(OPR|Edge)\/(\d+)/); + if (tem) return tem.slice(1).join(' ').replace('OPR', 'Opera'); + } + M = M[2] ? [M[1], M[2]] : [navigator.appName, navigator.appVersion, '-?']; + tem = ua.match(/version\/(\d+)/i); + if (tem) { + M.splice(1, 1, tem[1]); + } + return M.join(' '); + } - _util.menuAllProps.forEach(function (key) { - return delete props[key]; - }); + // export function getOffset(el) { + // const obj = el.getBoundingClientRect(); + // return { + // left: obj.left + document.body.scrollLeft, + // top: obj.top + document.body.scrollTop, + // width: obj.width, + // height: obj.height + // }; + // } - // Otherwise, the propagated click event will trigger another onClick - delete props.onClick; - delete props.keyboard; + // // iscroll offset + // offset = function (el) { + // var left = -el.offsetLeft, + // top = -el.offsetTop; - return ( - // ESLint is not smart enough to know that the type of `children` was checked. - /* eslint-disable */ - _react2["default"].createElement( - _DOMWrap2["default"], - _extends({}, props, { - prefixCls: prefixCls, - mode: mode, - tag: 'ul', - level: level, - theme: theme, - hiddenClassName: prefixCls + '-hidden', - visible: visible, - overflowedIndicator: overflowedIndicator - }, domProps), - _react2["default"].Children.map(props.children, function (c, i) { - return _this2.renderMenuItem(c, i, eventKey || '0-menu-'); - }) - ) - /*eslint-enable */ + // // jshint -W084 + // while (el = el.offsetParent) { + // left -= el.offsetLeft; + // top -= el.offsetTop; + // } + // // jshint +W084 - ); - }; + // return { + // left: left, + // top: top + // }; + // } - return SubPopupMenu; - }(_react2["default"].Component); + /* eslint-disable */ + function getOffset(ele) { + var doc = void 0, + win = void 0, + docElem = void 0, + rect = void 0; - SubPopupMenu.propTypes = { - onSelect: _propTypes2["default"].func, - onClick: _propTypes2["default"].func, - onDeselect: _propTypes2["default"].func, - onOpenChange: _propTypes2["default"].func, - onDestroy: _propTypes2["default"].func, - openTransitionName: _propTypes2["default"].string, - openAnimation: _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].object]), - openKeys: _propTypes2["default"].arrayOf(_propTypes2["default"].string), - visible: _propTypes2["default"].bool, - children: _propTypes2["default"].any, - parentMenu: _propTypes2["default"].object, - eventKey: _propTypes2["default"].string, - store: _propTypes2["default"].shape({ - getState: _propTypes2["default"].func, - setState: _propTypes2["default"].func - }), + if (!ele.getClientRects().length) { + return { top: 0, left: 0 }; + } - // adding in refactor - focusable: _propTypes2["default"].bool, - multiple: _propTypes2["default"].bool, - style: _propTypes2["default"].object, - defaultActiveFirst: _propTypes2["default"].bool, - activeKey: _propTypes2["default"].string, - selectedKeys: _propTypes2["default"].arrayOf(_propTypes2["default"].string), - defaultSelectedKeys: _propTypes2["default"].arrayOf(_propTypes2["default"].string), - defaultOpenKeys: _propTypes2["default"].arrayOf(_propTypes2["default"].string), - level: _propTypes2["default"].number, - mode: _propTypes2["default"].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']), - triggerSubMenuAction: _propTypes2["default"].oneOf(['click', 'hover']), - inlineIndent: _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string]), - manualRef: _propTypes2["default"].func, - itemIcon: _propTypes2["default"].oneOfType([_propTypes2["default"].func, _propTypes2["default"].node]), - expandIcon: _propTypes2["default"].oneOfType([_propTypes2["default"].func, _propTypes2["default"].node]) - }; - SubPopupMenu.defaultProps = { - prefixCls: 'rc-menu', - className: '', - mode: 'vertical', - level: 1, - inlineIndent: 24, - visible: true, - focusable: true, - style: {}, - manualRef: _util.noop - }; + rect = ele.getBoundingClientRect(); - var _initialiseProps = function _initialiseProps() { - var _this3 = this; + if (rect.width || rect.height) { + doc = ele.ownerDocument; + win = doc.defaultView; + docElem = doc.documentElement; - this.onKeyDown = function (e, callback) { - var keyCode = e.keyCode; - var handled = void 0; - _this3.getFlatInstanceArray().forEach(function (obj) { - if (obj && obj.props.active && obj.onKeyDown) { - handled = obj.onKeyDown(e); - } - }); - if (handled) { - return 1; - } - var activeItem = null; - if (keyCode === _tinperBeeCore.KeyCode.UP || keyCode === _tinperBeeCore.KeyCode.DOWN) { - if (_this3.props.store.getState().keyboard) { - //是否启用键盘操作 - activeItem = _this3.step(keyCode === _tinperBeeCore.KeyCode.UP ? -2 : 2); - } - } + return { + top: rect.top + win.pageYOffset - docElem.clientTop, + left: rect.left + win.pageXOffset - docElem.clientLeft + }; + } - if (activeItem) { - e.preventDefault(); - updateActiveKey(_this3.props.store, getEventKey(_this3.props), activeItem.props.eventKey); + return rect; + } + /* eslint-enable */ - if (typeof callback === 'function') { - callback(activeItem); - } + function getChildrenlength(children) { + var len = 1; + if (Array.isArray(children)) { + len = children.length; + } + return len; + } - return 1; - } - }; + function getSiblingPosition(index, len, siblingPosition) { + if (len === 1) { + siblingPosition.first = true; + siblingPosition.last = true; + } else { + siblingPosition.first = index === 0; + siblingPosition.last = index === len - 1; + } + return siblingPosition; + } - this.onItemHover = function (e) { - var key = e.key, - hover = e.hover; + function loopAllChildren(childs, callback, parent) { + var baseNum = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0; - updateActiveKey(_this3.props.store, getEventKey(_this3.props), hover ? key : null); + var loop = function loop(children, level, _parent) { + var len = getChildrenlength(children); + _react2["default"].Children.forEach(children, function (item, index) { + var pos = level + '-' + (index + parseInt(baseNum)); + if (item.props.children && item.type && item.type.isTreeNode) { + loop(item.props.children, pos, { node: item, pos: pos }); + } + callback(item, index, pos, item.key || pos, getSiblingPosition(index, len, {}), _parent); + }); }; + loop(childs, 0, parent); + } - this.onDeselect = function (selectInfo) { - _this3.props.onDeselect(selectInfo); - }; + function isInclude(smallArray, bigArray) { + return smallArray.every(function (ii, i) { + return ii === bigArray[i]; + }); + } + // console.log(isInclude(['0', '1'], ['0', '10', '1'])); - this.onSelect = function (selectInfo) { - _this3.props.onSelect(selectInfo); - }; - this.onClick = function (e) { - _this3.props.onClick(e); - }; + // arr.length === 628, use time: ~20ms + function filterParentPosition(arr) { + var levelObj = {}; + arr.forEach(function (item) { + var posLen = item.split('-').length; + if (!levelObj[posLen]) { + levelObj[posLen] = []; + } + levelObj[posLen].push(item); + }); + var levelArr = Object.keys(levelObj).sort(); - this.onOpenChange = function (e) { - _this3.props.onOpenChange(e); - }; + var _loop = function _loop(i) { + if (levelArr[i + 1]) { + levelObj[levelArr[i]].forEach(function (ii) { + var _loop2 = function _loop2(j) { + levelObj[levelArr[j]].forEach(function (_i, index) { + if (isInclude(ii.split('-'), _i.split('-'))) { + levelObj[levelArr[j]][index] = null; + } + }); + levelObj[levelArr[j]] = levelObj[levelArr[j]].filter(function (p) { + return p; + }); + }; - this.onDestroy = function (key) { - /* istanbul ignore next */ - _this3.props.onDestroy(key); + for (var j = i + 1; j < levelArr.length; j++) { + _loop2(j); + } + }); + } }; - this.getFlatInstanceArray = function () { - return _this3.instanceArray; - }; + for (var i = 0; i < levelArr.length; i++) { + _loop(i); + } + var nArr = []; + levelArr.forEach(function (i) { + nArr = nArr.concat(levelObj[i]); + }); + return nArr; + } + // console.log(filterParentPosition( + // ['0-2', '0-3-3', '0-10', '0-10-0', '0-0-1', '0-0', '0-1-1', '0-1'] + // )); - this.getOpenTransitionName = function () { - return _this3.props.openTransitionName; - }; - this.step = function (direction) { - var children = _this3.getFlatInstanceArray(); - var activeKey = _this3.props.store.getState().activeKey[getEventKey(_this3.props)]; - var len = children.length; - if (!len) { - return null; - } - if (direction < 0) { - children = children.concat().reverse(); - } - // find current activeIndex - var activeIndex = -1; - children.every(function (c, ci) { - if (c && c.props.eventKey === activeKey) { - activeIndex = ci; - return false; + function stripTail(str) { + var arr = str.match(/(.+)(-[^-]+)$/); + var st = ''; + if (arr && arr.length === 3) { + st = arr[1]; + } + return st; + } + function splitPosition(pos) { + return pos.split('-'); + } + + function handleCheckState(obj, checkedPositionArr, checkIt) { + // console.log(stripTail('0-101-000')); + var objKeys = Object.keys(obj); + // let s = Date.now(); + objKeys.forEach(function (i, index) { + var iArr = splitPosition(i); + var saved = false; + checkedPositionArr.forEach(function (_pos) { + // 设置子节点,全选或全不选 + var _posArr = splitPosition(_pos); + if (iArr.length > _posArr.length && isInclude(_posArr, iArr)) { + obj[i].halfChecked = false; + obj[i].checked = checkIt; + objKeys[index] = null; + } + if (iArr[0] === _posArr[0] && iArr[1] === _posArr[1]) { + // 如果 + saved = true; } - return true; }); - if (!_this3.props.defaultActiveFirst && activeIndex !== -1 && allDisabled(children.slice(activeIndex, len - 1))) { - return undefined; + if (!saved) { + objKeys[index] = null; } - var start = (activeIndex + 1) % len; - var i = start; + }); + // TODO: 循环 2470000 次耗时约 1400 ms。 性能瓶颈! + // console.log(Date.now()-s, checkedPositionArr.length * objKeys.length); + objKeys = objKeys.filter(function (i) { + return i; + }); // filter non null; - do { - var child = children[i]; - if (!child || child.props.disabled) { - i = (i + 1) % len; + var _loop3 = function _loop3(_pIndex) { + // 循环设置父节点的 选中 或 半选状态 + var loop = function loop(__pos) { + var _posLen = splitPosition(__pos).length; + if (_posLen <= 2) { + // e.g. '0-0', '0-1' + return; + } + var sibling = 0; + var siblingChecked = 0; + var parentPosition = stripTail(__pos); + objKeys.forEach(function (i /* , index*/) { + var iArr = splitPosition(i); + if (iArr.length === _posLen && isInclude(splitPosition(parentPosition), iArr)) { + sibling++; + if (obj[i].checked) { + siblingChecked++; + var _i = checkedPositionArr.indexOf(i); + if (_i > -1) { + checkedPositionArr.splice(_i, 1); + if (_i <= _pIndex) { + _pIndex--; + } + } + } else if (obj[i].halfChecked) { + siblingChecked += 0.5; + } + // objKeys[index] = null; + } + }); + // objKeys = objKeys.filter(i => i); // filter non null; + var parent = obj[parentPosition]; + // sibling 不会等于0 + // 全不选 - 全选 - 半选 + if (siblingChecked === 0) { + parent.checked = false; + parent.halfChecked = false; + } else if (siblingChecked === sibling) { + parent.checked = true; + parent.halfChecked = false; } else { - return child; + parent.halfChecked = true; + parent.checked = false; } - } while (i !== start); - - return null; - }; - - this.renderCommonMenuItem = function (child, i, extraProps) { - var state = _this3.props.store.getState(); - var props = _this3.props; - var key = (0, _util.getKeyFromChildrenIndex)(child, props.eventKey, i); - var childProps = child.props; - var isActive = key === state.activeKey; - var newChildProps = _extends({ - mode: childProps.mode || props.mode, - level: props.level, - inlineIndent: props.inlineIndent, - renderMenuItem: _this3.renderMenuItem, - rootPrefixCls: props.prefixCls, - index: i, - parentMenu: props.parentMenu, - // customized ref function, need to be invoked manually in child's componentDidMount - manualRef: childProps.disabled ? undefined : (0, _createChainedFunction2["default"])(child.ref, saveRef.bind(_this3)), - eventKey: key, - active: !childProps.disabled && isActive, - multiple: props.multiple, - onClick: function onClick(e) { - (childProps.onClick || _util.noop)(e); - _this3.onClick(e); - }, - onItemHover: _this3.onItemHover, - openTransitionName: _this3.getOpenTransitionName(), - openAnimation: props.openAnimation, - subMenuOpenDelay: props.subMenuOpenDelay, - subMenuCloseDelay: props.subMenuCloseDelay, - forceSubMenuRender: props.forceSubMenuRender, - onOpenChange: _this3.onOpenChange, - onDeselect: _this3.onDeselect, - onSelect: _this3.onSelect, - builtinPlacements: props.builtinPlacements, - itemIcon: childProps.itemIcon || _this3.props.itemIcon, - expandIcon: childProps.expandIcon || _this3.props.expandIcon - }, extraProps); - if (props.mode === 'inline') { - newChildProps.triggerSubMenuAction = 'click'; - } - return _react2["default"].cloneElement(child, newChildProps); + loop(parentPosition); + }; + loop(checkedPositionArr[_pIndex], _pIndex); + pIndex = _pIndex; }; - this.renderMenuItem = function (c, i, subMenuKey) { - /* istanbul ignore if */ + for (var pIndex = 0; pIndex < checkedPositionArr.length; pIndex++) { + _loop3(pIndex); + } + // console.log(Date.now()-s, objKeys.length, checkIt); + } - if (!c) { - return null; + function getCheck(treeNodesStates) { + var halfCheckedKeys = []; + var checkedKeys = []; + var checkedNodes = []; + var checkedNodesPositions = []; + Object.keys(treeNodesStates).forEach(function (item) { + var itemObj = treeNodesStates[item]; + if (itemObj.checked) { + checkedKeys.push(itemObj.key); + checkedNodes.push(itemObj.node); + checkedNodesPositions.push({ node: itemObj.node, pos: item }); + } else if (itemObj.halfChecked) { + halfCheckedKeys.push(itemObj.key); } - var state = _this3.props.store.getState(); - var extraProps = { - openKeys: state.openKeys, - selectedKeys: state.selectedKeys, - triggerSubMenuAction: _this3.props.triggerSubMenuAction, - subMenuKey: subMenuKey - }; - return _this3.renderCommonMenuItem(c, i, extraProps); + }); + return { + halfCheckedKeys: halfCheckedKeys, checkedKeys: checkedKeys, checkedNodes: checkedNodes, checkedNodesPositions: checkedNodesPositions, treeNodesStates: treeNodesStates }; - }; - - var connected = (0, _miniStore.connect)()(SubPopupMenu); - - exports["default"] = connected; + } - /***/ }), - /* 294 */ - /***/ (function(module, exports, __webpack_require__) { + function getStrictlyValue(checkedKeys, halfChecked) { + if (halfChecked) { + return { checked: checkedKeys, halfChecked: halfChecked }; + } + return checkedKeys; + } - "use strict"; + function arraysEqual(a, b) { + if (a === b) return true; + if (a === null || typeof a === 'undefined' || b === null || typeof b === 'undefined') { + return false; + } + if (a.length !== b.length) return false; + // If you don't care about the order of the elements inside + // the array, you should sort both arrays here. - exports.__esModule = true; - /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ - function createChainedFunction() { - for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) { - funcs[_key] = arguments[_key]; + for (var i = 0; i < a.length; ++i) { + if (a[i] !== b[i]) return false; } + return true; + } - return funcs.filter(function (f) { - return f != null; - }).reduce(function (acc, f) { - if (typeof f !== 'function') { - throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.'); - } + function closest(el, selector) { + var matchesSelector = el.matches || el.webkitMatchesSelector || el.mozMatchesSelector || el.msMatchesSelector; - if (acc === null) { - return f; + while (el) { + if (matchesSelector.call(el, selector)) { + return el; + } else { + el = el.parentElement; } - - return function chainedFunction() { - for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - args[_key2] = arguments[_key2]; - } - - acc.apply(this, args); - f.apply(this, args); - }; - }, null); + } + return null; } - exports.default = createChainedFunction; - - /***/ }), - /* 295 */ - /***/ (function(module, exports, __webpack_require__) { - - "use strict"; - - - exports.__esModule = true; - exports.default = addEventListenerWrap; - var _addDomEventListener = __webpack_require__(12); + function isTreeNode(node) { + return node && node.type && node.type.isTreeNode; + } - var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener); + function toArray(children) { + var ret = []; + _react2["default"].Children.forEach(children, function (c) { + ret.push(c); + }); + return ret; + } - var _reactDom = __webpack_require__(3); + function getNodeChildren(children) { + return toArray(children).filter(isTreeNode); + } - var _reactDom2 = _interopRequireDefault(_reactDom); + var onlyTreeNodeWarned = false; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + function warnOnlyTreeNode() { + if (onlyTreeNodeWarned) return; + onlyTreeNodeWarned = true; + console.warn('Tree only accept TreeNode as children.'); + } /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util + * 将一维数组转换为树结构 + * @param {*} treeData 扁平结构的 List 数组 + * @param {*} attr 属性配置设置 + * @param {*} flatTreeKeysMap 存储所有 key-value 的映射,方便获取各节点信息 */ - function addEventListenerWrap(target, eventType, cb) { - /* eslint camelcase: 2 */ - var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) { - _reactDom2.default.unstable_batchedUpdates(cb, e); - } : cb; - return (0, _addDomEventListener2.default)(target, eventType, callback); - } + function convertListToTree(treeData, attr, flatTreeKeysMap) { + var tree = []; //存储所有一级节点 + var resData = treeData, + //resData 存储截取的节点 + 父节点(除一级节点外) + resKeysMap = {}, + //resData 的Map映射 + treeKeysMap = {}; //tree 的Map映射 + resData.map(function (element) { + var key = attr.id; + resKeysMap[element[key]] = element; + }); + // 查找父节点,为了补充不完整的数据结构 + var findParentNode = function findParentNode(node) { + var parentKey = node[attr.parendId]; + if (parentKey !== attr.rootId) { + //如果不是根节点,则继续递归 + var item = flatTreeKeysMap[parentKey]; + // 用 resKeysMap 判断,避免重复计算某节点的父节点 + if (resKeysMap.hasOwnProperty(item[attr.id])) return; + resData.unshift(item); + resKeysMap[item[attr.id]] = item; + findParentNode(item); + } else { + // 用 treeKeysMap 判断,避免重复累加 + if (!treeKeysMap.hasOwnProperty(node[attr.id])) { + var key = node.key, + title = node.title, + children = node.children, + isLeaf = node.isLeaf, + otherProps = _objectWithoutProperties(node, ['key', 'title', 'children', 'isLeaf']); - /***/ }), - /* 296 */ - /***/ (function(module, exports, __webpack_require__) { + var obj = { + key: key, + title: title, + isLeaf: isLeaf, + children: [] + }; + tree.push(_extends(obj, _extends({}, otherProps))); + treeKeysMap[key] = node; + } + } + }; + // 遍历 resData ,找到所有的一级节点 + for (var i = 0; i < resData.length; i++) { + var item = resData[i]; + if (item[attr.parendId] === attr.rootId && !treeKeysMap.hasOwnProperty(item[attr.id])) { + //如果是根节点,就存放进 tree 对象中 + var key = item.key, + title = item.title, + children = item.children, + otherProps = _objectWithoutProperties(item, ['key', 'title', 'children']); - "use strict"; + var obj = { + key: item[attr.id], + title: item[attr.name], + isLeaf: item[attr.isLeaf], + children: [] + }; + tree.push(_extends(obj, _extends({}, otherProps))); + treeKeysMap[key] = item; + resData.splice(i, 1); + i--; + } else { + //递归查找根节点信息 + findParentNode(item); + } + } + // console.log('resData',resKeysMap); + var run = function run(treeArrs) { + if (resData.length > 0) { + for (var _i2 = 0; _i2 < treeArrs.length; _i2++) { + for (var j = 0; j < resData.length; j++) { + var _item = resData[j]; + if (treeArrs[_i2].key === _item[attr.parendId]) { + var _key = _item.key, + _title = _item.title, + _children = _item.children, + _otherProps = _objectWithoutProperties(_item, ['key', 'title', 'children']); + var _obj = { + key: _item[attr.id], + title: _item[attr.name], + isLeaf: _item[attr.isLeaf], + children: [] + }; + treeArrs[_i2].children.push(_extends(_obj, _extends({}, _otherProps))); + resData.splice(j, 1); + j--; + } + } + run(treeArrs[_i2].children); + } + } + }; + run(tree); + return tree; + } - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = createChainedFunction; + function isObject(value) { + var type = typeof value === 'undefined' ? 'undefined' : _typeof(value); + return value != null && (type == 'object' || type == 'function'); + } /** - * Safe chained function - * - * Will only create a new function if needed, - * otherwise will pass back existing functions or null. - * - * @returns {function|null} + * 函数节流 + * @param {*} func 延时调用函数 + * @param {*} wait 延迟多长时间 + * @return Function 延迟执行的方法 */ - function createChainedFunction() { - var args = [].slice.call(arguments, 0); - - if (args.length === 1) { - return args[0]; - } - - return function chainedFunction() { - for (var i = 0; i < args.length; i++) { - if (args[i] && args[i].apply) { - args[i].apply(this, arguments); - } + function throttle(fn, wait) { + var last = void 0; + return function () { + var now = Date.now(); + if (!last) { + fn.apply(this, arguments); + last = now; + return; + } + if (now - last >= wait) { + fn.apply(this, arguments); + last = now; } }; } /***/ }), - /* 297 */ + /* 183 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -136366,673 +126648,483 @@ Object.defineProperty(exports, "__esModule", { value: true }); - exports.SubMenu = undefined; - - var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; /** - * This source code is quoted from rc-menu. - * homepage: https://github.com/react-component/menu - */ - - - var _react = __webpack_require__(0); - - var _react2 = _interopRequireDefault(_react); - - var _reactDom = __webpack_require__(3); - - var _reactDom2 = _interopRequireDefault(_reactDom); - - var _propTypes = __webpack_require__(1); - - var _propTypes2 = _interopRequireDefault(_propTypes); + exports.destroyFns = undefined; - var _rcTrigger = __webpack_require__(73); + var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }(); - var _rcTrigger2 = _interopRequireDefault(_rcTrigger); + var _extends2; - var _tinperBeeCore = __webpack_require__(103); + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _classnames = __webpack_require__(2); var _classnames2 = _interopRequireDefault(_classnames); - var _miniStore = __webpack_require__(21); + var _events = __webpack_require__(162); - var _SubPopupMenu = __webpack_require__(293); + var _events2 = _interopRequireDefault(_events); - var _SubPopupMenu2 = _interopRequireDefault(_SubPopupMenu); + var _ownerDocument = __webpack_require__(23); - var _placements = __webpack_require__(1025); + var _ownerDocument2 = _interopRequireDefault(_ownerDocument); - var _placements2 = _interopRequireDefault(_placements); + var _inDOM = __webpack_require__(26); - var _rcAnimate = __webpack_require__(96); + var _inDOM2 = _interopRequireDefault(_inDOM); - var _rcAnimate2 = _interopRequireDefault(_rcAnimate); + var _scrollbarSize = __webpack_require__(104); - var _util = __webpack_require__(61); + var _scrollbarSize2 = _interopRequireDefault(_scrollbarSize); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var _scrollTop = __webpack_require__(45); - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + var _scrollTop2 = _interopRequireDefault(_scrollTop); - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + var _react = __webpack_require__(0); - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + var _react2 = _interopRequireDefault(_react); - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + var _reactDom = __webpack_require__(3); - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + var _reactDom2 = _interopRequireDefault(_reactDom); - var guid = 0; + var _Modal = __webpack_require__(163); - var popupPlacementMap = { - horizontal: 'bottomLeft', - vertical: 'rightTop', - 'vertical-left': 'rightTop', - 'vertical-right': 'leftTop' - }; + var _Modal2 = _interopRequireDefault(_Modal); - var updateDefaultActiveFirst = function updateDefaultActiveFirst(store, eventKey, defaultActiveFirst) { - var menuId = (0, _util.getMenuIdFromSubMenuEventKey)(eventKey); - var state = store.getState(); - store.setState({ - defaultActiveFirst: _extends({}, state.defaultActiveFirst, _defineProperty({}, menuId, defaultActiveFirst)) - }); - }; + var _isOverflowing = __webpack_require__(105); - var SubMenu = exports.SubMenu = function (_React$Component) { - _inherits(SubMenu, _React$Component); + var _isOverflowing2 = _interopRequireDefault(_isOverflowing); - function SubMenu(props) { - _classCallCheck(this, SubMenu); + var _tinperBeeCore = __webpack_require__(6); - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); + var _beeTransition = __webpack_require__(1295); - _initialiseProps.call(_this); + var _ModalBody = __webpack_require__(1299); - var store = props.store; - var eventKey = props.eventKey; - var defaultActiveFirst = store.getState().defaultActiveFirst; + var _ModalBody2 = _interopRequireDefault(_ModalBody); - _this.isRootMenu = false; + var _ModalDialog = __webpack_require__(1300); - var value = false; + var _ModalDialog2 = _interopRequireDefault(_ModalDialog); - if (defaultActiveFirst) { - value = defaultActiveFirst[eventKey]; - } + var _ModalFooter = __webpack_require__(1306); - updateDefaultActiveFirst(store, eventKey, value); - return _this; - } + var _ModalFooter2 = _interopRequireDefault(_ModalFooter); - SubMenu.prototype.componentDidMount = function componentDidMount() { - this.componentDidUpdate(); - }; + var _ModalHeader = __webpack_require__(1307); - SubMenu.prototype.componentDidUpdate = function componentDidUpdate() { - var _props = this.props, - mode = _props.mode, - parentMenu = _props.parentMenu, - manualRef = _props.manualRef; + var _ModalHeader2 = _interopRequireDefault(_ModalHeader); - // invoke customized ref to expose component to mixin + var _ModalTitle = __webpack_require__(1308); - if (manualRef) { - manualRef(this); - } + var _ModalTitle2 = _interopRequireDefault(_ModalTitle); - if (mode !== 'horizontal' || !parentMenu.isRootMenu || !this.props.isOpen) { - return; - } + var _propTypes = __webpack_require__(1); - // this.minWidthTimeout = setTimeout(() => this.adjustWidth(), 0); - this.adjustWidth(); - }; + var _propTypes2 = _interopRequireDefault(_propTypes); - SubMenu.prototype.componentWillUnmount = function componentWillUnmount() { - var _props2 = this.props, - onDestroy = _props2.onDestroy, - eventKey = _props2.eventKey; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - if (onDestroy) { - onDestroy(eventKey); - } + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - /* istanbul ignore if */ - /* if (this.minWidthTimeout) { - clearTimeout(this.minWidthTimeout); - }*/ + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - /* istanbul ignore if */ - if (this.mouseenterTimeout) { - clearTimeout(this.mouseenterTimeout); - } - }; + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - SubMenu.prototype.renderChildren = function renderChildren(children) { - var props = this.props; - var baseProps = { - mode: props.mode === 'horizontal' ? 'vertical' : props.mode, - visible: this.props.isOpen, - level: props.level + 1, - inlineIndent: props.inlineIndent, - focusable: false, - onClick: this.onSubMenuClick, - onSelect: this.onSelect, - onDeselect: this.onDeselect, - onDestroy: this.onDestroy, - selectedKeys: props.selectedKeys, - eventKey: props.eventKey + '-menu-', - openKeys: props.openKeys, - openTransitionName: props.openTransitionName, - openAnimation: props.openAnimation, - onOpenChange: this.onOpenChange, - subMenuOpenDelay: props.subMenuOpenDelay, - parentMenu: this, - subMenuCloseDelay: props.subMenuCloseDelay, - forceSubMenuRender: props.forceSubMenuRender, - triggerSubMenuAction: props.triggerSubMenuAction, - builtinPlacements: props.builtinPlacements, - defaultActiveFirst: props.store.getState().defaultActiveFirst[(0, _util.getMenuIdFromSubMenuEventKey)(props.eventKey)], - multiple: props.multiple, - prefixCls: props.rootPrefixCls, - id: this._menuId, - manualRef: this.saveMenuInstance, - itemIcon: props.itemIcon, - expandIcon: props.expandIcon - }; + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - var haveRendered = this.haveRendered; - this.haveRendered = true; + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - this.haveOpened = this.haveOpened || baseProps.visible || baseProps.forceSubMenuRender; - // never rendered not planning to, don't render - if (!this.haveOpened) { - return _react2["default"].createElement('div', null); - } + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - // don't show transition on first rendering (no animation for opened menu) - // show appear transition if it's not visible (not sure why) - // show appear transition if it's not inline mode - var transitionAppear = haveRendered || !baseProps.visible || !baseProps.mode === 'inline'; + var propTypes = _extends({}, _Modal2["default"].propTypes, _ModalDialog2["default"].propTypes, (_extends2 = { - baseProps.className = ' ' + baseProps.prefixCls + '-sub'; - var animProps = {}; + /** + * 是否弹出遮罩层/遮罩层点击是否触发关闭 + */ + backdrop: _propTypes2["default"].oneOf(['static', true, false]), - if (baseProps.openTransitionName) { - animProps.transitionName = baseProps.openTransitionName; - } else if (_typeof(baseProps.openAnimation) === 'object') { - animProps.animation = _extends({}, baseProps.openAnimation); - if (!transitionAppear) { - delete animProps.animation.appear; - } - } + /** + * 点击遮罩层是否允许关闭 + */ + backdropClosable: _propTypes2["default"].bool, + /** + * esc触发关闭 + */ + keyboard: _propTypes2["default"].bool, - return _react2["default"].createElement( - _rcAnimate2["default"], - _extends({}, animProps, { - showProp: 'visible', - component: '', - transitionAppear: transitionAppear - }), - _react2["default"].createElement( - _SubPopupMenu2["default"], - _extends({}, baseProps, { id: this._menuId }), - children - ) - ); - }; + /** + * 显隐时是否使用动画 + */ + animation: _propTypes2["default"].bool, - SubMenu.prototype.render = function render() { - var _classNames; + /** + * 传递给模态框的样式 + */ + dialogComponentClass: _tinperBeeCore.elementType, - var props = _extends({}, this.props); - var isOpen = props.isOpen; - var prefixCls = this.getPrefixCls(); - var isInlineMode = props.mode === 'inline'; - var className = (0, _classnames2["default"])(prefixCls, prefixCls + '-' + props.mode, (_classNames = {}, _defineProperty(_classNames, props.className, !!props.className), _defineProperty(_classNames, this.getOpenClassName(), isOpen), _defineProperty(_classNames, this.getActiveClassName(), props.active || isOpen && !isInlineMode), _defineProperty(_classNames, this.getDisabledClassName(), props.disabled), _defineProperty(_classNames, this.getSelectedClassName(), this.isChildrenSelected()), _classNames)); + /** + * 自动设置焦点 + */ + autoFocus: _propTypes2["default"].bool, - if (!this._menuId) { - if (props.eventKey) { - this._menuId = props.eventKey + '$Menu'; - } else { - this._menuId = '$__$' + ++guid + '$Menu'; - } - } + /** + * 防止打开时焦点离开模态框 + */ + enforceFocus: _propTypes2["default"].bool, - var mouseEvents = {}; - var titleClickEvents = {}; - var titleMouseEvents = {}; - if (!props.disabled) { - mouseEvents = { - onMouseLeave: this.onMouseLeave, - onMouseEnter: this.onMouseEnter - }; + /** + * 是否打开模态框 + */ + show: _propTypes2["default"].bool, - // only works in title, not outer li - titleClickEvents = { - onClick: this.onTitleClick - }; - titleMouseEvents = { - onMouseEnter: this.onTitleMouseEnter, - onMouseLeave: this.onTitleMouseLeave - }; - } + /** + * 关闭时的钩子函数 + */ + onHide: _propTypes2["default"].func, - var style = {}; - if (isInlineMode) { - style.paddingLeft = props.inlineIndent * props.level; - } + onEnter: _propTypes2["default"].func, - var ariaOwns = {}; - // only set aria-owns when menu is open - // otherwise it would be an invalid aria-owns value - // since corresponding node cannot be found - if (this.props.isOpen) { - ariaOwns = { - 'aria-owns': this._menuId - }; - } + onEntering: _propTypes2["default"].func, - // expand custom icon should NOT be displayed in menu with horizontal mode. - var icon = null; - if (props.mode !== 'horizontal') { - icon = this.props.expandIcon; // ReactNode - if (typeof this.props.expandIcon === 'function') { - icon = _react2["default"].createElement(this.props.expandIcon, _extends({}, this.props)); - } - } + onEntered: _propTypes2["default"].func, - var title = _react2["default"].createElement( - 'div', - _extends({ - ref: this.saveSubMenuTitle, - style: style, - className: prefixCls + '-title' - }, titleMouseEvents, titleClickEvents, { - 'aria-expanded': isOpen - }, ariaOwns, { - 'aria-haspopup': 'true', - title: typeof props.title === 'string' ? props.title : undefined - }), - props.title, - icon || _react2["default"].createElement('i', { className: prefixCls + '-arrow' }) - ); - var children = this.renderChildren(props.children); + onExit: _propTypes2["default"].func, - var getPopupContainer = function getPopupContainer(triggerNode) { - return triggerNode.parentNode; - }; - var popupPlacement = popupPlacementMap[props.mode]; - var popupAlign = props.popupOffset ? { offset: props.popupOffset } : {}; - var popupClassName = props.mode === 'inline' ? '' : props.popupClassName; - var disabled = props.disabled, - triggerSubMenuAction = props.triggerSubMenuAction, - subMenuOpenDelay = props.subMenuOpenDelay, - forceSubMenuRender = props.forceSubMenuRender, - subMenuCloseDelay = props.subMenuCloseDelay, - builtinPlacements = props.builtinPlacements; + onExiting: _propTypes2["default"].func, - _util.menuAllProps.forEach(function (key) { - return delete props[key]; - }); - // Set onClick to null, to ignore propagated onClick event - delete props.onClick; - return _react2["default"].createElement( - 'li', - _extends({}, props, mouseEvents, { - className: className, - role: 'menuitem' - }), - isInlineMode && title, - isInlineMode && children, - !isInlineMode && _react2["default"].createElement( - _rcTrigger2["default"], - { - prefixCls: prefixCls, - popupClassName: prefixCls + '-popup ' + popupClassName, - getPopupContainer: getPopupContainer, - builtinPlacements: _extends({}, _placements2["default"], builtinPlacements), - popupPlacement: this.props.mode == 'vertical' ? this.props.position || popupPlacement : popupPlacement, - popupVisible: isOpen, - popupAlign: popupAlign, - popup: children, - action: disabled ? [] : [triggerSubMenuAction], - mouseEnterDelay: subMenuOpenDelay, - mouseLeaveDelay: subMenuCloseDelay, - onPopupVisibleChange: this.onPopupVisibleChange, - forceRender: forceSubMenuRender - }, - title - ) - ); - }; + onExited: _propTypes2["default"].func, - return SubMenu; - }(_react2["default"].Component); + containerClassName: _propTypes2["default"].string + }, _defineProperty(_extends2, 'containerClassName', _propTypes2["default"].string), _defineProperty(_extends2, 'container', _Modal2["default"].propTypes.container), _defineProperty(_extends2, 'size', _propTypes2["default"].oneOf(["sm", "lg", "xlg", ""])), _defineProperty(_extends2, 'width', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'draggable', _propTypes2["default"].bool), _defineProperty(_extends2, 'resizable', _propTypes2["default"].bool), _defineProperty(_extends2, 'resizeClassName', _propTypes2["default"].string), _defineProperty(_extends2, 'onResizeStart', _propTypes2["default"].func), _defineProperty(_extends2, 'onResize', _propTypes2["default"].func), _defineProperty(_extends2, 'onResizeStop', _propTypes2["default"].func), _defineProperty(_extends2, 'minWidth', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'minHeight', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'maxWidth', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'maxHeight', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'bounds', _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].object])), _defineProperty(_extends2, 'className', _propTypes2["default"].string), _defineProperty(_extends2, 'centered', _propTypes2["default"].bool), _defineProperty(_extends2, 'needScroll', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].bool])), _extends2)); - SubMenu.propTypes = { - parentMenu: _propTypes2["default"].object, - title: _propTypes2["default"].node, - children: _propTypes2["default"].any, - selectedKeys: _propTypes2["default"].array, - openKeys: _propTypes2["default"].array, - onClick: _propTypes2["default"].func, - onOpenChange: _propTypes2["default"].func, - rootPrefixCls: _propTypes2["default"].string, - eventKey: _propTypes2["default"].string, - multiple: _propTypes2["default"].bool, - active: _propTypes2["default"].bool, // TODO: remove - onItemHover: _propTypes2["default"].func, - onSelect: _propTypes2["default"].func, - triggerSubMenuAction: _propTypes2["default"].string, - onDeselect: _propTypes2["default"].func, - onDestroy: _propTypes2["default"].func, - onMouseEnter: _propTypes2["default"].func, - onMouseLeave: _propTypes2["default"].func, - onTitleMouseEnter: _propTypes2["default"].func, - onTitleMouseLeave: _propTypes2["default"].func, - onTitleClick: _propTypes2["default"].func, - popupOffset: _propTypes2["default"].array, - isOpen: _propTypes2["default"].bool, - store: _propTypes2["default"].object, - mode: _propTypes2["default"].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']), - manualRef: _propTypes2["default"].func, - itemIcon: _propTypes2["default"].oneOfType([_propTypes2["default"].func, _propTypes2["default"].node]), - expandIcon: _propTypes2["default"].oneOfType([_propTypes2["default"].func, _propTypes2["default"].node]), - position: _propTypes2["default"].oneOf(['bottomLeft', 'topLeft', 'leftTop', 'rightTop']) + var defaultProps = _extends({}, _Modal2["default"].defaultProps, { + backdropClosable: true, + animation: true, + dialogComponentClass: _ModalDialog2["default"], + draggable: false, + resizable: false, + clsPrefix: 'u-modal', + className: '', + needScroll: false + }); + + var ModalFuncProps = { + prefixCls: _propTypes2["default"].string, + className: _propTypes2["default"].string, + show: _propTypes2["default"].bool, + title: _react2["default"].ReactNode, + content: _react2["default"].ReactNode, + onOk: _propTypes2["default"].func, + onCancel: _propTypes2["default"].func, + width: _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string]), + okText: _propTypes2["default"].string, + okType: _propTypes2["default"].string, + cancelText: _propTypes2["default"].string, + icon: _react2["default"].ReactNode, + backdrop: _propTypes2["default"].oneOf(['static', true, false]) }; - SubMenu.defaultProps = { - onMouseEnter: _util.noop, - onMouseLeave: _util.noop, - onTitleMouseEnter: _util.noop, - onTitleMouseLeave: _util.noop, - onTitleClick: _util.noop, - manualRef: _util.noop, - mode: 'vertical', - title: '' + + var ModalFunc = function ModalFunc(props) { + destroy = function destroy() {}; + update = function update(newConfig) {}; }; - var _initialiseProps = function _initialiseProps() { - var _this2 = this; + var destroyFns = exports.destroyFns = []; - this.onDestroy = function (key) { - _this2.props.onDestroy(key); - }; + var childContextTypes = { + $u_modal: _propTypes2["default"].shape({ + onHide: _propTypes2["default"].func + }) + }; - this.onKeyDown = function (e) { - var keyCode = e.keyCode; - var menu = _this2.menuInstance; - var _props3 = _this2.props, - isOpen = _props3.isOpen, - store = _props3.store; + var Modal = function (_React$Component) { + _inherits(Modal, _React$Component); - if (_this2.props.store.getState().keyboard) { - //是否启用键盘操作 - if (keyCode === _tinperBeeCore.KeyCode.ENTER) { - // this.onTitleClick(e); - menu && menu.onKeyDown && menu.onKeyDown(e); - updateDefaultActiveFirst(store, _this2.props.eventKey, true); - return true; - } + function Modal(props, context) { + _classCallCheck(this, Modal); - if (keyCode === _tinperBeeCore.KeyCode.RIGHT) { - if (isOpen) { - menu.onKeyDown(e); + var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context)); + + _this.scrollTo = function () { + var needScroll = _this.props.needScroll; + if (needScroll) { + if (typeof needScroll == 'number') { + window.scrollTo(0, needScroll); } else { - _this2.triggerOpenChange(true); - // need to update current menu's defaultActiveFirst value - updateDefaultActiveFirst(store, _this2.props.eventKey, true); + window.scrollTo(0, _this.scrollY); } - return true; } - if (keyCode === _tinperBeeCore.KeyCode.LEFT) { - var handled = void 0; - if (isOpen) { - handled = menu.onKeyDown(e); - } else { - return undefined; - } - if (!handled) { - _this2.triggerOpenChange(false); - handled = true; - } - return handled; + }; + + _this.onEnter = function (param) { + if (_this.props.needScroll) { + _this.scrollY = window.scrollY; } - if (isOpen && (keyCode === _tinperBeeCore.KeyCode.UP || keyCode === _tinperBeeCore.KeyCode.DOWN)) { - return menu.onKeyDown(e); + _this.props.onEnter && _this.props.onEnter(param); + }; + + _this.onEntered = function (param) { + if (_this.props.needScroll) { + var scrollY = window.scrollY; + if (scrollY != _this.scrollY || typeof _this.props.needScroll == 'number') { + _this.scrollTo(); + } } - } - }; + _this.props.onEntered && _this.props.onEntered(param); + }; - this.onOpenChange = function (e) { - _this2.props.onOpenChange(e); - }; + _this.clearCenteredCls = function () { + var centered = _this.state.centered; - this.onPopupVisibleChange = function (visible) { - _this2.triggerOpenChange(visible, visible ? 'mouseenter' : 'mouseleave'); - }; + if (!centered) { + return; + } + _this.offsetTop = _this.getOffsetTop(); + _this.setState({ + centered: false + }); + }; - this.onMouseEnter = function (e) { - var _props4 = _this2.props, - key = _props4.eventKey, - onMouseEnter = _props4.onMouseEnter, - store = _props4.store; + _this.state = { + style: {}, + centered: props.centered, + draging: false, + draged: false + }; + _this.offsetTop = 0; + _this.handleEntering = _this.handleEntering.bind(_this); + _this.handleExited = _this.handleExited.bind(_this); + _this.handleWindowResize = _this.handleWindowResize.bind(_this); + _this.handleDialogClick = _this.handleDialogClick.bind(_this); + return _this; + } - updateDefaultActiveFirst(store, _this2.props.eventKey, false); - onMouseEnter({ - key: key, - domEvent: e - }); + Modal.prototype.getChildContext = function getChildContext() { + return { + $u_modal: { + onHide: this.props.onHide + } + }; }; - this.onMouseLeave = function (e) { - var _props5 = _this2.props, - parentMenu = _props5.parentMenu, - eventKey = _props5.eventKey, - onMouseLeave = _props5.onMouseLeave; - - parentMenu.subMenuInstance = _this2; - onMouseLeave({ - key: eventKey, - domEvent: e - }); + Modal.prototype.componentWillUnmount = function componentWillUnmount() { + // Clean up the listener if we need to. + this.handleExited(); }; - this.onTitleMouseEnter = function (domEvent) { - var _props6 = _this2.props, - key = _props6.eventKey, - onItemHover = _props6.onItemHover, - onTitleMouseEnter = _props6.onTitleMouseEnter; - - onItemHover({ - key: key, - hover: true - }); - onTitleMouseEnter({ - key: key, - domEvent: domEvent - }); + Modal.prototype.handleEntering = function handleEntering() { + // FIXME: This should work even when animation is disabled. + _events2["default"].on(window, 'resize', this.handleWindowResize); + this.updateStyle(); }; - this.onTitleMouseLeave = function (e) { - var _props7 = _this2.props, - parentMenu = _props7.parentMenu, - eventKey = _props7.eventKey, - onItemHover = _props7.onItemHover, - onTitleMouseLeave = _props7.onTitleMouseLeave; - - parentMenu.subMenuInstance = _this2; - onItemHover({ - key: eventKey, - hover: false - }); - onTitleMouseLeave({ - key: eventKey, - domEvent: e + Modal.prototype.handleExited = function handleExited() { + this.scrollTo(); + this.setState({ + draging: false, + draged: false }); + // FIXME: This should work even when animation is disabled. + _events2["default"].off(window, 'resize', this.handleWindowResize); }; - this.onTitleClick = function (e) { - var props = _this2.props; + Modal.prototype.handleWindowResize = function handleWindowResize() { + this.updateStyle(); + }; - props.onTitleClick({ - key: props.eventKey, - domEvent: e - }); - if (props.triggerSubMenuAction === 'hover') { + Modal.prototype.handleDialogClick = function handleDialogClick(e) { + if (e.target !== e.currentTarget) { return; } - _this2.triggerOpenChange(!props.isOpen, 'click'); - updateDefaultActiveFirst(props.store, _this2.props.eventKey, false); - }; - this.onSubMenuClick = function (info) { - // in the case of overflowed submenu - // onClick is not copied over - if (typeof _this2.props.onClick === 'function') { - _this2.props.onClick(_this2.addKeyPath(info)); - } + this.props.onHide(); }; - this.onSelect = function (info) { - _this2.props.onSelect(info); - }; + Modal.prototype.updateStyle = function updateStyle() { + if (!_inDOM2["default"] || !this._modal) { + return; + } - this.onDeselect = function (info) { - _this2.props.onDeselect(info); - }; + var dialogNode = this._modal.getDialogElement(); + var dialogHeight = dialogNode.scrollHeight; - this.getPrefixCls = function () { - return _this2.props.rootPrefixCls + '-submenu'; - }; + var document = (0, _ownerDocument2["default"])(dialogNode); + var bodyIsOverflowing = false; + if (this.props.container) { + bodyIsOverflowing = (0, _isOverflowing2["default"])(_reactDom2["default"].findDOMNode(this.props.container)); + } + var modalIsOverflowing = dialogHeight > document.documentElement.clientHeight; - this.getActiveClassName = function () { - return _this2.getPrefixCls() + '-active'; + this.setState({ + style: { + paddingRight: bodyIsOverflowing && !modalIsOverflowing ? (0, _scrollbarSize2["default"])() : undefined, + paddingLeft: !bodyIsOverflowing && modalIsOverflowing ? (0, _scrollbarSize2["default"])() : undefined + } + }); }; + //ResizeStart 时,若模态框设置了 `centered` ,需要把居中属性移除,并通过 offsetTop 制造垂直居中的假象 + //fixbug: Resize 和 centered 一起使用时,拖拽交互不正确 - this.getDisabledClassName = function () { - return _this2.getPrefixCls() + '-disabled'; - }; - this.getSelectedClassName = function () { - return _this2.getPrefixCls() + '-selected'; + //计算 ModalDialog 的 offsetTop + Modal.prototype.getOffsetTop = function getOffsetTop() { + var modalDialog = document.getElementsByClassName("u-modal-dialog") && document.getElementsByClassName("u-modal-dialog")[0]; + var topPos = modalDialog && modalDialog.offsetTop; + return topPos; }; - this.getOpenClassName = function () { - return _this2.props.rootPrefixCls + '-submenu-open'; - }; + Modal.prototype.render = function render() { + var _this2 = this; - this.saveMenuInstance = function (c) { - // children menu instance - _this2.menuInstance = c; - }; + var _props = this.props, + backdrop = _props.backdrop, + backdropClosable = _props.backdropClosable, + animation = _props.animation, + show = _props.show, + Dialog = _props.dialogComponentClass, + className = _props.className, + clsPrefix = _props.clsPrefix, + _props$style = _props.style, + style = _props$style === undefined ? {} : _props$style, + size = _props.size, + width = _props.width, + children = _props.children, + onEntering = _props.onEntering, + onExited = _props.onExited, + backdropClassName = _props.backdropClassName, + containerClassName = _props.containerClassName, + draggable = _props.draggable, + resizeClassName = _props.resizeClassName, + bounds = _props.bounds, + container = _props.container, + onStart = _props.onStart, + onStop = _props.onStop, + props = _objectWithoutProperties(_props, ['backdrop', 'backdropClosable', 'animation', 'show', 'dialogComponentClass', 'className', 'clsPrefix', 'style', 'size', 'width', 'children', 'onEntering', 'onExited', 'backdropClassName', 'containerClassName', 'draggable', 'resizeClassName', 'bounds', 'container', 'onStart', 'onStop']); - this.addKeyPath = function (info) { - return _extends({}, info, { - keyPath: (info.keyPath || []).concat(_this2.props.eventKey) - }); - }; + var _state = this.state, + centered = _state.centered, + draging = _state.draging, + draged = _state.draged; - this.triggerOpenChange = function (open, type) { - var key = _this2.props.eventKey; - var openChange = function openChange() { - _this2.onOpenChange({ - key: key, - item: _this2, - trigger: type, - open: open - }); - }; - if (type === 'mouseenter') { - // make sure mouseenter happen after other menu item's mouseleave - _this2.mouseenterTimeout = setTimeout(function () { - openChange(); - }, 0); - } else { - openChange(); - } - }; + var dialogMarginTop = 30; + //ResizeStart 时,计算 ModalDialog 的 offsetTop + var topPosStyle = this.offsetTop > 0 ? { top: this.offsetTop - dialogMarginTop } : null; - this.isChildrenSelected = function () { - var ret = { find: false }; - (0, _util.loopMenuItemRecursively)(_this2.props.children, _this2.props.selectedKeys, ret); - return ret.find; - }; + var _splitComponent = (0, _tinperBeeCore.splitComponent)(props, _Modal2["default"]), + _splitComponent2 = _slicedToArray(_splitComponent, 2), + baseModalProps = _splitComponent2[0], + dialogProps = _splitComponent2[1]; - this.isOpen = function () { - return _this2.props.openKeys.indexOf(_this2.props.eventKey) !== -1; - }; + var inClassName = show && !animation && 'in'; - this.adjustWidth = function () { - /* istanbul ignore if */ - if (!_this2.subMenuTitle || !_this2.menuInstance) { - return; + var backdropClasses = _defineProperty({}, clsPrefix + '-backdrop', true); + var containerClasses = _defineProperty({}, clsPrefix + '-open', true); + if (!!centered) { + className += ' ' + clsPrefix + '-centered'; } - var popupMenu = _reactDom2["default"].findDOMNode(_this2.menuInstance); - if (popupMenu.offsetWidth >= _this2.subMenuTitle.offsetWidth) { - return; + if (draging) { + className += ' draging'; } + if (draged) { + className += ' draged'; + } + if (Number(width)) width += 'px'; - /* istanbul ignore next */ - popupMenu.style.minWidth = _this2.subMenuTitle.offsetWidth + 'px'; //bug是因为在这里加了一个minWidth - }; - - this.saveSubMenuTitle = function (subMenuTitle) { - _this2.subMenuTitle = subMenuTitle; + var styleRes = _extends({}, this.state.style, style, topPosStyle); + if (width) { + _extends(styleRes, { width: width }); + } + return _react2["default"].createElement( + _Modal2["default"], + _extends({}, baseModalProps, { + ref: function ref(c) { + _this2._modal = c; + }, + show: show, + onEnter: this.onEnter, + onEntered: this.onEntered, + onEntering: (0, _tinperBeeCore.createChainedFunction)(onEntering, this.handleEntering), + onExited: (0, _tinperBeeCore.createChainedFunction)(onExited, this.handleExited), + backdrop: backdrop, + backdropClassName: (0, _classnames2["default"])(backdropClasses, inClassName, backdropClassName), + containerClassName: (0, _classnames2["default"])(containerClasses, containerClassName), + transition: animation ? _beeTransition.Fade : undefined, + dialogTransitionTimeout: Modal.TRANSITION_DURATION, + backdropTransitionTimeout: Modal.BACKDROP_TRANSITION_DURATION, + container: container + }), + _react2["default"].createElement( + Dialog, + _extends({}, dialogProps, { + style: styleRes, + className: (0, _classnames2["default"])(className, inClassName, backdropClassName), + onClick: backdrop === true && !!backdropClosable ? this.handleDialogClick : null, + size: size, + draggable: draggable, + bounds: bounds, + resizeClassName: resizeClassName, + clearCenteredCls: this.clearCenteredCls, + onStart: function onStart() { + _this2.setState({ + draging: true, + draged: false + }); + }, + onStop: function onStop() { + _this2.setState({ + draging: false, + draged: true + }); + } + }), + children + ) + ); }; - }; - var connected = (0, _miniStore.connect)(function (_ref, _ref2) { - var openKeys = _ref.openKeys, - activeKey = _ref.activeKey, - selectedKeys = _ref.selectedKeys; - var eventKey = _ref2.eventKey, - subMenuKey = _ref2.subMenuKey; - return { - isOpen: openKeys.indexOf(eventKey) > -1, - active: activeKey[subMenuKey] === eventKey, - selectedKeys: selectedKeys - }; - })(SubMenu); + return Modal; + }(_react2["default"].Component); - connected.isSubMenu = true; + Modal.info = ModalFunc; + Modal.success = ModalFunc; + Modal.error = ModalFunc; + Modal.warn = ModalFunc; + Modal.warning = ModalFunc; + Modal.confirm = ModalFunc; - exports["default"] = connected; + Modal.destroyAll = function () { + return; + }; - /***/ }), - /* 298 */ - /***/ (function(module, exports, __webpack_require__) { + Modal.propTypes = propTypes; + Modal.defaultProps = defaultProps; + Modal.childContextTypes = childContextTypes; - "use strict"; + Modal.Body = _ModalBody2["default"]; + Modal.Header = _ModalHeader2["default"]; + Modal.Title = _ModalTitle2["default"]; + Modal.Footer = _ModalFooter2["default"]; + Modal.Dialog = _ModalDialog2["default"]; - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports["default"] = uid; - var now = +new Date(); - var index = 0; + Modal.TRANSITION_DURATION = 200000; + Modal.BACKDROP_TRANSITION_DURATION = 10000; - function uid() { - return "u-upload-" + now + "-" + ++index; - } - module.exports = exports["default"]; + exports["default"] = Modal; /***/ }), - /* 299 */ + /* 184 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { - value: true + value: true }); + exports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = undefined; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; @@ -137040,201 +127132,336 @@ var _react2 = _interopRequireDefault(_react); - var _Modal = __webpack_require__(162); + var _reactDom = __webpack_require__(3); - var _Modal2 = _interopRequireDefault(_Modal); + var _reactDom2 = _interopRequireDefault(_reactDom); - var _confirm = __webpack_require__(1140); + var _properties = __webpack_require__(28); - var _confirm2 = _interopRequireDefault(_confirm); + var _properties2 = _interopRequireDefault(_properties); - var _beeIcon = __webpack_require__(15); + var _on = __webpack_require__(17); - var _beeIcon2 = _interopRequireDefault(_beeIcon); + var _on2 = _interopRequireDefault(_on); + + var _classnames = __webpack_require__(2); + + var _classnames2 = _interopRequireDefault(_classnames); + + var _propTypes = __webpack_require__(1); + + var _propTypes2 = _interopRequireDefault(_propTypes); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - _Modal2["default"].info = function (props) { - var config = _extends({ - type: 'info', - icon: _react2["default"].createElement(_beeIcon2["default"], { type: 'uf-i-c-2' }), - okCancel: false - }, props); - return (0, _confirm2["default"])(config); - }; + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - _Modal2["default"].success = function (props) { - var config = _extends({ - type: 'success', - icon: _react2["default"].createElement(_beeIcon2["default"], { type: 'uf-correct' }), - okCancel: false - }, props); - return (0, _confirm2["default"])(config); - }; + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - _Modal2["default"].error = function (props) { - var config = _extends({ - type: 'error', - icon: _react2["default"].createElement(_beeIcon2["default"], { type: 'uf-exc-c' }), - okCancel: false - }, props); - return (0, _confirm2["default"])(config); - }; + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - _Modal2["default"].warning = function (props) { - var config = _extends({ - type: 'warning', - icon: _react2["default"].createElement(_beeIcon2["default"], { type: 'uf-exc-t' }), - okCancel: false - }, props); - return (0, _confirm2["default"])(config); - }; + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - _Modal2["default"].confirm = function (props) { - var config = _extends({ - type: 'confirm', - okCancel: true, - confirmType: 'one' - }, props); - return (0, _confirm2["default"])(config); - }; + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - // onOk: ()=>{ - // console.log('onOk') - // }, - // onCancel:()=>{ - // console.log('onCancel') - // }, - // title:'提示信息', - // keyword:'删除', - // content:"确定要删除吗?", + var transitionEndEvent = _properties2["default"].end; - _Modal2["default"].destroyAll = function () { - while (_Modal.destroyFns.length) { - var close = _Modal.destroyFns.pop(); - if (close) { - close(); - } - } + //设置状态码 + var UNMOUNTED = exports.UNMOUNTED = 0; + var EXITED = exports.EXITED = 1; + var ENTERING = exports.ENTERING = 2; + var ENTERED = exports.ENTERED = 3; + var EXITING = exports.EXITING = 4; + + var propTypes = { + /** + * 是否触发动画 + */ + "in": _propTypes2["default"].bool, + + /** + * 不显示的时候是否移除组件 + */ + unmountOnExit: _propTypes2["default"].bool, + + /** + * 如果设置为默认显示,挂载时显示动画 + */ + transitionAppear: _propTypes2["default"].bool, + + /** + * 设置超时时间,防止出现问题,可设置为>=动画时间 + */ + timeout: _propTypes2["default"].number, + + /** + * 退出组件时添加的class + */ + exitedClassName: _propTypes2["default"].string, + /** + * 退出组件中添加的class + */ + exitingClassName: _propTypes2["default"].string, + /** + * 进入动画后添加的class + */ + enteredClassName: _propTypes2["default"].string, + /** + * 进入动画时添加的class + */ + enteringClassName: _propTypes2["default"].string, + + /** + * 进入动画开始时的钩子函数 + */ + onEnter: _propTypes2["default"].func, + /** + * 进入动画中的钩子函数 + */ + onEntering: _propTypes2["default"].func, + /** + * 进入动画后的钩子函数 + */ + onEntered: _propTypes2["default"].func, + /** + * 退出动画开始时的钩子函数 + */ + onExit: _propTypes2["default"].func, + /** + * 退出动画中的钩子函数 + */ + onExiting: _propTypes2["default"].func, + /** + * 退出动画后的钩子函数 + */ + onExited: _propTypes2["default"].func }; - exports["default"] = _Modal2["default"]; - module.exports = exports['default']; + function noop() {} - /***/ }), - /* 300 */ - /***/ (function(module, exports, __webpack_require__) { + var defaultProps = { + "in": false, + unmountOnExit: false, + transitionAppear: false, + timeout: 5000, + onEnter: noop, + onEntering: noop, + onEntered: noop, + onExit: noop, + onExiting: noop, + onExited: noop + }; - "use strict"; + /** + * 动画组件 + */ + var Transition = function (_Component) { + _inherits(Transition, _Component); - exports.__esModule = true; - exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined; + function Transition(props, context) { + _classCallCheck(this, Transition); - var _all2 = __webpack_require__(1048); + var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); - var _all3 = _interopRequireDefault(_all2); + var initialStatus = void 0; + if (props["in"]) { + // 在componentdidmount时开始执行动画 + initialStatus = props.transitionAppear ? EXITED : ENTERED; + } else { + initialStatus = props.unmountOnExit ? UNMOUNTED : EXITED; + } + _this.state = { status: initialStatus }; - var _componentOrElement2 = __webpack_require__(1049); + _this.nextCallback = null; + return _this; + } - var _componentOrElement3 = _interopRequireDefault(_componentOrElement2); + Transition.prototype.componentDidMount = function componentDidMount() { + if (this.props.transitionAppear && this.props["in"]) { + this.performEnter(this.props); + } + }; - var _deprecated2 = __webpack_require__(1050); + Transition.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { + if (nextProps["in"] && this.props.unmountOnExit) { + if (this.state.status === UNMOUNTED) { + // 在componentDidUpdate执行动画. + this.setState({ status: EXITED }); + } + } else { + this._needsUpdate = true; + } + }; - var _deprecated3 = _interopRequireDefault(_deprecated2); + Transition.prototype.componentDidUpdate = function componentDidUpdate() { + var status = this.state.status; - var _elementType2 = __webpack_require__(1051); + if (this.props.unmountOnExit && status === EXITED) { + // 当使用unmountOnExit时,exited为exiting和unmont的过渡状态 + if (this.props["in"]) { + this.performEnter(this.props); + } else { + this.setState({ status: UNMOUNTED }); + } - var _elementType3 = _interopRequireDefault(_elementType2); + return; + } - var _isRequiredForA11y2 = __webpack_require__(1052); + // 确保只响应prop变化 + if (this._needsUpdate) { + this._needsUpdate = false; - var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2); + if (this.props["in"]) { + if (status === EXITING) { + this.performEnter(this.props); + } else if (status === EXITED) { + this.performEnter(this.props); + } + // 其他,当我们已经输入或输出 + } else { + if (status === ENTERING || status === ENTERED) { + this.performExit(this.props); + } + // 我们已经输入或输出完成 + } + } + }; - var _splitComponent2 = __webpack_require__(1053); + Transition.prototype.componentWillUnmount = function componentWillUnmount() { + this.cancelNextCallback(); + }; - var _splitComponent3 = _interopRequireDefault(_splitComponent2); + Transition.prototype.performEnter = function performEnter(props) { + var _this2 = this; - var _createChainedFunction2 = __webpack_require__(1054); + this.cancelNextCallback(); + var node = _reactDom2["default"].findDOMNode(this); - var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2); + // 这里接收新props + props.onEnter(node); - var _keyCode = __webpack_require__(1055); + this.safeSetState({ status: ENTERING }, function () { + _this2.props.onEntering(node); - var _keyCode2 = _interopRequireDefault(_keyCode); + _this2.onTransitionEnd(node, function () { + _this2.safeSetState({ status: ENTERED }, function () { + _this2.props.onEntered(node); + }); + }); + }); + }; - var _contains2 = __webpack_require__(1056); + Transition.prototype.performExit = function performExit(props) { + var _this3 = this; - var _contains3 = _interopRequireDefault(_contains2); + this.cancelNextCallback(); + var node = _reactDom2["default"].findDOMNode(this); - var _addEventListener2 = __webpack_require__(301); + props.onExit(node); - var _addEventListener3 = _interopRequireDefault(_addEventListener2); + this.safeSetState({ status: EXITING }, function () { + _this3.props.onExiting(node); - var _cssAnimation2 = __webpack_require__(1057); + _this3.onTransitionEnd(node, function () { + _this3.safeSetState({ status: EXITED }, function () { + _this3.props.onExited(node); + }); + }); + }); + }; - var _cssAnimation3 = _interopRequireDefault(_cssAnimation2); + Transition.prototype.cancelNextCallback = function cancelNextCallback() { + if (this.nextCallback !== null) { + this.nextCallback.cancel(); + this.nextCallback = null; + } + }; - var _toArray2 = __webpack_require__(1059); + Transition.prototype.safeSetState = function safeSetState(nextState, callback) { + // 确保在组件销毁后挂起的setState被消除 + this.setState(nextState, this.setNextCallback(callback)); + }; - var _toArray3 = _interopRequireDefault(_toArray2); + Transition.prototype.setNextCallback = function setNextCallback(callback) { + var _this4 = this; - var _Align2 = __webpack_require__(1060); + var active = true; - var _Align3 = _interopRequireDefault(_Align2); + this.nextCallback = function (event) { + if (active) { + active = false; + _this4.nextCallback = null; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + callback(event); + } + }; - exports.all = _all3.default; - exports.componentOrElement = _componentOrElement3.default; - exports.deprecated = _deprecated3.default; - exports.elementType = _elementType3.default; - exports.isRequiredForA11y = _isRequiredForA11y3.default; - exports.splitComponent = _splitComponent3.default; - exports.createChainedFunction = _createChainedFunction3.default; - exports.KeyCode = _keyCode2.default; - exports.contains = _contains3.default; - exports.addEventListener = _addEventListener3.default; - exports.cssAnimation = _cssAnimation3.default; - exports.toArray = _toArray3.default; - //export getContainerRenderMixin from './getContainerRenderMixin'; + this.nextCallback.cancel = function () { + active = false; + }; - exports.Align = _Align3.default; + return this.nextCallback; + }; - /***/ }), - /* 301 */ - /***/ (function(module, exports, __webpack_require__) { + Transition.prototype.onTransitionEnd = function onTransitionEnd(node, handler) { + this.setNextCallback(handler); - "use strict"; + if (node) { + if (transitionEndEvent == undefined) { + this.nextCallback(); + } else { + (0, _on2["default"])(node, transitionEndEvent, this.nextCallback); + } + setTimeout(this.nextCallback, this.props.timeout); + } else { + setTimeout(this.nextCallback, 0); + } + }; + + Transition.prototype.render = function render() { + var status = this.state.status; + if (status === UNMOUNTED) { + return null; + } + var _props = this.props, + children = _props.children, + className = _props.className, + childProps = _objectWithoutProperties(_props, ['children', 'className']); - exports.__esModule = true; - exports.default = addEventListenerWrap; + Object.keys(Transition.propTypes).forEach(function (key) { + return delete childProps[key]; + }); - var _addDomEventListener = __webpack_require__(12); + var transitionClassName = void 0; + if (status === EXITED) { + transitionClassName = this.props.exitedClassName; + } else if (status === ENTERING) { + transitionClassName = this.props.enteringClassName; + } else if (status === ENTERED) { + transitionClassName = this.props.enteredClassName; + } else if (status === EXITING) { + transitionClassName = this.props.exitingClassName; + } - var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener); + var child = _react2["default"].Children.only(children); + return _react2["default"].cloneElement(child, _extends({}, childProps, { + className: (0, _classnames2["default"])(child.props.className, className, transitionClassName) + })); + }; - var _reactDom = __webpack_require__(3); + return Transition; + }(_react.Component); - var _reactDom2 = _interopRequireDefault(_reactDom); + Transition.propTypes = propTypes; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + Transition.defaultProps = defaultProps; - /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ - function addEventListenerWrap(target, eventType, cb) { - /* eslint camelcase: 2 */ - var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) { - _reactDom2.default.unstable_batchedUpdates(cb, e); - } : cb; - return (0, _addDomEventListener2.default)(target, eventType, callback); - } + exports["default"] = Transition; /***/ }), - /* 302 */ + /* 185 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -137244,1330 +127471,1026 @@ value: true }); - exports["default"] = function (componentOrElement) { - return (0, _ownerDocument2["default"])(_reactDom2["default"].findDOMNode(componentOrElement)); - }; - - var _reactDom = __webpack_require__(3); - - var _reactDom2 = _interopRequireDefault(_reactDom); - - var _ownerDocument = __webpack_require__(22); + var _Button = __webpack_require__(1310); - var _ownerDocument2 = _interopRequireDefault(_ownerDocument); + var _Button2 = _interopRequireDefault(_Button); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + exports["default"] = _Button2["default"]; module.exports = exports['default']; /***/ }), - /* 303 */ + /* 186 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports["default"] = getContainer; + exports.__esModule = true; + exports.default = createChainableTypeChecker; + /** + * Copyright 2013-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ - var _reactDom = __webpack_require__(3); + // Mostly taken from ReactPropTypes. - var _reactDom2 = _interopRequireDefault(_reactDom); + /* This source code is quoted from rc-util. + * homepage: https://github.com/react-component/util + */ - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + function createChainableTypeChecker(validate) { + function checkType(isRequired, props, propName, componentName, location, propFullName) { + var componentNameSafe = componentName || '<>'; + var propFullNameSafe = propFullName || propName; - /** - * 获取容器组件 - * @param {[type]} container [description] - * @param {[type]} defaultContainer [description] - * @return {[type]} [description] - */ - function getContainer(container, defaultContainer) { - container = typeof container === 'function' ? container() : container; - return _reactDom2["default"].findDOMNode(container) || defaultContainer; - } - module.exports = exports['default']; + if (props[propName] == null) { + if (isRequired) { + return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); + } - /***/ }), - /* 304 */ - /***/ (function(module, exports, __webpack_require__) { + return null; + } - "use strict"; + for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { + args[_key - 6] = arguments[_key]; + } + + return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); + } + var chainedCheckType = checkType.bind(null, false); + chainedCheckType.isRequired = checkType.bind(null, true); - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = hasClass; - function hasClass(element, className) { - if (element.classList) return !!className && element.classList.contains(className);else return (" " + element.className + " ").indexOf(" " + className + " ") !== -1; + return chainedCheckType; } - module.exports = exports["default"]; /***/ }), - /* 305 */ + /* 187 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; exports.__esModule = true; - exports.default = addEventListenerWrap; - - var _addDomEventListener = __webpack_require__(12); - - var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener); - - var _reactDom = __webpack_require__(3); - - var _reactDom2 = _interopRequireDefault(_reactDom); + exports.default = createChainableTypeChecker; + /** + * Copyright 2013-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + // Mostly taken from ReactPropTypes. - /** - * This source code is quoted from rc-util. + /* This source code is quoted from rc-util. * homepage: https://github.com/react-component/util */ - function addEventListenerWrap(target, eventType, cb) { - /* eslint camelcase: 2 */ - var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) { - _reactDom2.default.unstable_batchedUpdates(cb, e); - } : cb; - return (0, _addDomEventListener2.default)(target, eventType, callback); - } - - /***/ }), - /* 306 */ - /***/ (function(module, exports, __webpack_require__) { - module.exports = __webpack_require__(218); + function createChainableTypeChecker(validate) { + function checkType(isRequired, props, propName, componentName, location, propFullName) { + var componentNameSafe = componentName || '<>'; + var propFullNameSafe = propFullName || propName; - /***/ }), - /* 307 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + if (props[propName] == null) { + if (isRequired) { + return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); + } - "use strict"; - /* WEBPACK VAR INJECTION */(function(process) {var isProduction = process.env.NODE_ENV === 'production'; - var prefix = 'Invariant failed'; - function invariant(condition, message) { - if (condition) { - return; + return null; } - if (isProduction) { - throw new Error(prefix); + + for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { + args[_key - 6] = arguments[_key]; } - throw new Error(prefix + ": " + (message || '')); - } - /* harmony default export */ __webpack_exports__["a"] = (invariant); + return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); + } - /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(5))) + var chainedCheckType = checkType.bind(null, false); + chainedCheckType.isRequired = checkType.bind(null, true); + + return chainedCheckType; + } /***/ }), - /* 308 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + /* 188 */ + /***/ (function(module, exports, __webpack_require__) { "use strict"; - /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export __DO_NOT_USE__ActionTypes */ - /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return applyMiddleware; }); - /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return bindActionCreators; }); - /* unused harmony export combineReducers */ - /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return compose; }); - /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return createStore; }); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_symbol_observable__ = __webpack_require__(1098); - - /** - * These are private action types reserved by Redux. - * For any unknown actions, you must return the current state. - * If the current state is undefined, you must return the initial state. - * Do not reference these action types directly in your code. - */ - var randomString = function randomString() { - return Math.random().toString(36).substring(7).split('').join('.'); - }; - var ActionTypes = { - INIT: "@@redux/INIT" + randomString(), - REPLACE: "@@redux/REPLACE" + randomString(), - PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() { - return "@@redux/PROBE_UNKNOWN_ACTION" + randomString(); - } - }; + Object.defineProperty(exports, "__esModule", { + value: true + }); - /** - * @param {any} obj The object to inspect. - * @returns {boolean} True if the argument appears to be a plain object. - */ - function isPlainObject(obj) { - if (typeof obj !== 'object' || obj === null) return false; - var proto = obj; + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - while (Object.getPrototypeOf(proto) !== null) { - proto = Object.getPrototypeOf(proto); - } + var _react = __webpack_require__(0); - return Object.getPrototypeOf(obj) === proto; - } + var _react2 = _interopRequireDefault(_react); - /** - * Creates a Redux store that holds the state tree. - * The only way to change the data in the store is to call `dispatch()` on it. - * - * There should only be a single store in your app. To specify how different - * parts of the state tree respond to actions, you may combine several reducers - * into a single reducer function by using `combineReducers`. - * - * @param {Function} reducer A function that returns the next state tree, given - * the current state tree and the action to handle. - * - * @param {any} [preloadedState] The initial state. You may optionally specify it - * to hydrate the state from the server in universal apps, or to restore a - * previously serialized user session. - * If you use `combineReducers` to produce the root reducer function, this must be - * an object with the same shape as `combineReducers` keys. - * - * @param {Function} [enhancer] The store enhancer. You may optionally specify it - * to enhance the store with third-party capabilities such as middleware, - * time travel, persistence, etc. The only store enhancer that ships with Redux - * is `applyMiddleware()`. - * - * @returns {Store} A Redux store that lets you read the state, dispatch actions - * and subscribe to changes. - */ + var _propTypes = __webpack_require__(1); - function createStore(reducer, preloadedState, enhancer) { - var _ref2; + var _propTypes2 = _interopRequireDefault(_propTypes); - if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') { - throw new Error('It looks like you are passing several store enhancers to ' + 'createStore(). This is not supported. Instead, compose them ' + 'together to a single function.'); - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') { - enhancer = preloadedState; - preloadedState = undefined; - } + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - if (typeof enhancer !== 'undefined') { - if (typeof enhancer !== 'function') { - throw new Error('Expected the enhancer to be a function.'); - } + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - return enhancer(createStore)(reducer, preloadedState); - } + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - if (typeof reducer !== 'function') { - throw new Error('Expected the reducer to be a function.'); - } + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - var currentReducer = reducer; - var currentState = preloadedState; - var currentListeners = []; - var nextListeners = currentListeners; - var isDispatching = false; - /** - * This makes a shallow copy of currentListeners so we can use - * nextListeners as a temporary list while dispatching. - * - * This prevents any bugs around consumers calling - * subscribe/unsubscribe in the middle of a dispatch. - */ + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** + * This source code is quoted from rc-slider. + * homepage: https://github.com/react-component/slider + */ - function ensureCanMutateNextListeners() { - if (nextListeners === currentListeners) { - nextListeners = currentListeners.slice(); - } - } - /** - * Reads the state tree managed by the store. - * - * @returns {any} The current state tree of your application. - */ + var Handle = function (_React$Component) { + _inherits(Handle, _React$Component); - function getState() { - if (isDispatching) { - throw new Error('You may not call store.getState() while the reducer is executing. ' + 'The reducer has already received the state as an argument. ' + 'Pass it down from the top reducer instead of reading it from the store.'); - } + function Handle() { + _classCallCheck(this, Handle); - return currentState; + return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); } - /** - * Adds a change listener. It will be called any time an action is dispatched, - * and some part of the state tree may potentially have changed. You may then - * call `getState()` to read the current state tree inside the callback. - * - * You may call `dispatch()` from a change listener, with the following - * caveats: - * - * 1. The subscriptions are snapshotted just before every `dispatch()` call. - * If you subscribe or unsubscribe while the listeners are being invoked, this - * will not have any effect on the `dispatch()` that is currently in progress. - * However, the next `dispatch()` call, whether nested or not, will use a more - * recent snapshot of the subscription list. - * - * 2. The listener should not expect to see all state changes, as the state - * might have been updated multiple times during a nested `dispatch()` before - * the listener is called. It is, however, guaranteed that all subscribers - * registered before the `dispatch()` started will be called with the latest - * state by the time it exits. - * - * @param {Function} listener A callback to be invoked on every dispatch. - * @returns {Function} A function to remove this change listener. - */ - - function subscribe(listener) { - if (typeof listener !== 'function') { - throw new Error('Expected the listener to be a function.'); - } + Handle.prototype.render = function render() { + var _props = this.props, + className = _props.className, + vertical = _props.vertical, + offset = _props.offset, + style = _props.style, + disabled = _props.disabled, + min = _props.min, + max = _props.max, + value = _props.value, + restProps = _objectWithoutProperties(_props, ['className', 'vertical', 'offset', 'style', 'disabled', 'min', 'max', 'value']); - if (isDispatching) { - throw new Error('You may not call store.subscribe() while the reducer is executing. ' + 'If you would like to be notified after the store has been updated, subscribe from a ' + 'component and invoke store.getState() in the callback to access the latest state. ' + 'See https://redux.js.org/api-reference/store#subscribelistener for more details.'); + var postionStyle = vertical ? { bottom: offset + '%' } : { left: offset + '%' }; + var elStyle = _extends({}, style, postionStyle); + var ariaProps = {}; + if (value !== undefined) { + ariaProps = _extends({}, ariaProps, { + 'aria-valuemin': min, + 'aria-valuemax': max, + 'aria-valuenow': value, + 'aria-disabled': !!disabled + }); } - var isSubscribed = true; - ensureCanMutateNextListeners(); - nextListeners.push(listener); - return function unsubscribe() { - if (!isSubscribed) { - return; - } - - if (isDispatching) { - throw new Error('You may not unsubscribe from a store listener while the reducer is executing. ' + 'See https://redux.js.org/api-reference/store#subscribelistener for more details.'); - } + return _react2["default"].createElement('div', _extends({ + role: 'slider', + tabIndex: '0' + }, ariaProps, restProps, { + className: className, + style: elStyle + })); + }; - isSubscribed = false; - ensureCanMutateNextListeners(); - var index = nextListeners.indexOf(listener); - nextListeners.splice(index, 1); - currentListeners = null; - }; - } - /** - * Dispatches an action. It is the only way to trigger a state change. - * - * The `reducer` function, used to create the store, will be called with the - * current state tree and the given `action`. Its return value will - * be considered the **next** state of the tree, and the change listeners - * will be notified. - * - * The base implementation only supports plain object actions. If you want to - * dispatch a Promise, an Observable, a thunk, or something else, you need to - * wrap your store creating function into the corresponding middleware. For - * example, see the documentation for the `redux-thunk` package. Even the - * middleware will eventually dispatch plain object actions using this method. - * - * @param {Object} action A plain object representing “what changed”. It is - * a good idea to keep actions serializable so you can record and replay user - * sessions, or use the time travelling `redux-devtools`. An action must have - * a `type` property which may not be `undefined`. It is a good idea to use - * string constants for action types. - * - * @returns {Object} For convenience, the same action object you dispatched. - * - * Note that, if you use a custom middleware, it may wrap `dispatch()` to - * return something else (for example, a Promise you can await). - */ + return Handle; + }(_react2["default"].Component); + exports["default"] = Handle; - function dispatch(action) { - if (!isPlainObject(action)) { - throw new Error('Actions must be plain objects. ' + 'Use custom middleware for async actions.'); - } - if (typeof action.type === 'undefined') { - throw new Error('Actions may not have an undefined "type" property. ' + 'Have you misspelled a constant?'); - } + Handle.propTypes = { + className: _propTypes2["default"].string, + vertical: _propTypes2["default"].bool, + offset: _propTypes2["default"].number, + style: _propTypes2["default"].object, + disabled: _propTypes2["default"].bool, + min: _propTypes2["default"].number, + max: _propTypes2["default"].number, + value: _propTypes2["default"].number + }; + module.exports = exports['default']; - if (isDispatching) { - throw new Error('Reducers may not dispatch actions.'); - } + /***/ }), + /* 189 */ + /***/ (function(module, exports, __webpack_require__) { - try { - isDispatching = true; - currentState = currentReducer(currentState, action); - } finally { - isDispatching = false; - } + "use strict"; - var listeners = currentListeners = nextListeners; - for (var i = 0; i < listeners.length; i++) { - var listener = listeners[i]; - listener(); - } + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.isEventFromHandle = isEventFromHandle; + exports.isValueOutOfRange = isValueOutOfRange; + exports.isNotTouchEvent = isNotTouchEvent; + exports.getClosestPoint = getClosestPoint; + exports.getPrecision = getPrecision; + exports.getMousePosition = getMousePosition; + exports.getTouchPosition = getTouchPosition; + exports.getHandleCenterPosition = getHandleCenterPosition; + exports.ensureValueInRange = ensureValueInRange; + exports.ensureValuePrecision = ensureValuePrecision; + exports.pauseEvent = pauseEvent; + exports.getKeyboardValueMutator = getKeyboardValueMutator; - return action; - } - /** - * Replaces the reducer currently used by the store to calculate the state. - * - * You might need this if your app implements code splitting and you want to - * load some of the reducers dynamically. You might also need this if you - * implement a hot reloading mechanism for Redux. - * - * @param {Function} nextReducer The reducer for the store to use instead. - * @returns {void} - */ + var _reactDom = __webpack_require__(3); + var _keyCode = __webpack_require__(485); - function replaceReducer(nextReducer) { - if (typeof nextReducer !== 'function') { - throw new Error('Expected the nextReducer to be a function.'); - } + var _keyCode2 = _interopRequireDefault(_keyCode); - currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT. - // Any reducers that existed in both the new and old rootReducer - // will receive the previous state. This effectively populates - // the new state tree with any relevant data from the old one. + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - dispatch({ - type: ActionTypes.REPLACE - }); - } - /** - * Interoperability point for observable/reactive libraries. - * @returns {observable} A minimal observable of state changes. - * For more information, see the observable proposal: - * https://github.com/tc39/proposal-observable - */ + function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } /** + * This source code is quoted from rc-slider. + * homepage: https://github.com/react-component/slider + */ - function observable() { - var _ref; + function isEventFromHandle(e, handles) { + return Object.keys(handles).some(function (key) { + return e.target === (0, _reactDom.findDOMNode)(handles[key]); + }); + } - var outerSubscribe = subscribe; - return _ref = { - /** - * The minimal observable subscription method. - * @param {Object} observer Any object that can be used as an observer. - * The observer object should have a `next` method. - * @returns {subscription} An object with an `unsubscribe` method that can - * be used to unsubscribe the observable from the store, and prevent further - * emission of values from the observable. - */ - subscribe: function subscribe(observer) { - if (typeof observer !== 'object' || observer === null) { - throw new TypeError('Expected the observer to be an object.'); - } + function isValueOutOfRange(value, _ref) { + var min = _ref.min, + max = _ref.max; - function observeState() { - if (observer.next) { - observer.next(getState()); - } - } + return value < min || value > max; + } - observeState(); - var unsubscribe = outerSubscribe(observeState); - return { - unsubscribe: unsubscribe - }; - } - }, _ref[__WEBPACK_IMPORTED_MODULE_0_symbol_observable__["a" /* default */]] = function () { - return this; - }, _ref; - } // When a store is created, an "INIT" action is dispatched so that every - // reducer returns their initial state. This effectively populates - // the initial state tree. + function isNotTouchEvent(e) { + //event.touches,多点触碰时的位置数组,比如缩放手势必须要用两指的触摸点,就是一个数组 + return e.touches.length > 1 || e.type.toLowerCase() === 'touchend' && e.touches.length > 0; + } + function getClosestPoint(val, _ref2) { + var marks = _ref2.marks, + step = _ref2.step, + min = _ref2.min; - dispatch({ - type: ActionTypes.INIT + var points = Object.keys(marks).map(parseFloat); + if (step !== null) { + var closestStep = Math.round((val - min) / step) * step + min; //Math.round(((val - min) / step) * step) + min; + points.push(closestStep); + } + var diffs = points.map(function (point) { + return Math.abs(val - point); }); - return _ref2 = { - dispatch: dispatch, - subscribe: subscribe, - getState: getState, - replaceReducer: replaceReducer - }, _ref2[__WEBPACK_IMPORTED_MODULE_0_symbol_observable__["a" /* default */]] = observable, _ref2; + return points[diffs.indexOf(Math.min.apply(Math, _toConsumableArray(diffs)))]; } - /** - * Prints a warning in the console if it exists. - * - * @param {String} message The warning message. - * @returns {void} - */ - function warning(message) { - /* eslint-disable no-console */ - if (typeof console !== 'undefined' && typeof console.error === 'function') { - console.error(message); + function getPrecision(step) { + var stepString = step.toString(); + var precision = 0; + if (stepString.indexOf('.') >= 0) { + precision = stepString.length - stepString.indexOf('.') - 1; } - /* eslint-enable no-console */ - + return precision; + } - try { - // This error was thrown as a convenience so that if you enable - // "break on all exceptions" in your console, - // it would pause the execution at this line. - throw new Error(message); - } catch (e) {} // eslint-disable-line no-empty + function getMousePosition(vertical, e) { + return vertical ? e.clientY : e.pageX; + } + function getTouchPosition(vertical, e) { + return vertical ? e.touches[0].clientY : e.touches[0].pageX; } - function getUndefinedStateErrorMessage(key, action) { - var actionType = action && action.type; - var actionDescription = actionType && "action \"" + String(actionType) + "\"" || 'an action'; - return "Given " + actionDescription + ", reducer \"" + key + "\" returned undefined. " + "To ignore an action, you must explicitly return the previous state. " + "If you want this reducer to hold no value, you can return null instead of undefined."; + function getHandleCenterPosition(vertical, handle) { + var coords = handle.getBoundingClientRect(); + return vertical ? coords.top + coords.height * 0.5 : coords.left + coords.width * 0.5; } - function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) { - var reducerKeys = Object.keys(reducers); - var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer'; + function ensureValueInRange(val, _ref3) { + var max = _ref3.max, + min = _ref3.min; - if (reducerKeys.length === 0) { - return 'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.'; + if (val <= min) { + return min; } - - if (!isPlainObject(inputState)) { - return "The " + argumentName + " has unexpected type of \"" + {}.toString.call(inputState).match(/\s([a-z|A-Z]+)/)[1] + "\". Expected argument to be an object with the following " + ("keys: \"" + reducerKeys.join('", "') + "\""); + if (val >= max) { + return max; } + return val; + } - var unexpectedKeys = Object.keys(inputState).filter(function (key) { - return !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key]; - }); - unexpectedKeys.forEach(function (key) { - unexpectedKeyCache[key] = true; - }); - if (action && action.type === ActionTypes.REPLACE) return; + function ensureValuePrecision(val, props) { + var step = props.step; - if (unexpectedKeys.length > 0) { - return "Unexpected " + (unexpectedKeys.length > 1 ? 'keys' : 'key') + " " + ("\"" + unexpectedKeys.join('", "') + "\" found in " + argumentName + ". ") + "Expected to find one of the known reducer keys instead: " + ("\"" + reducerKeys.join('", "') + "\". Unexpected keys will be ignored."); - } + var closestPoint = getClosestPoint(val, props); + return step === null ? closestPoint : parseFloat(closestPoint.toFixed(getPrecision(step))); } - function assertReducerShape(reducers) { - Object.keys(reducers).forEach(function (key) { - var reducer = reducers[key]; - var initialState = reducer(undefined, { - type: ActionTypes.INIT - }); + function pauseEvent(e) { + e.stopPropagation(); + e.preventDefault(); + } - if (typeof initialState === 'undefined') { - throw new Error("Reducer \"" + key + "\" returned undefined during initialization. " + "If the state passed to the reducer is undefined, you must " + "explicitly return the initial state. The initial state may " + "not be undefined. If you don't want to set a value for this reducer, " + "you can use null instead of undefined."); - } + function getKeyboardValueMutator(e) { + switch (e.keyCode) { + case _keyCode2["default"].UP: + case _keyCode2["default"].RIGHT: + return function (value, props) { + return value + props.step; + }; - if (typeof reducer(undefined, { - type: ActionTypes.PROBE_UNKNOWN_ACTION() - }) === 'undefined') { - throw new Error("Reducer \"" + key + "\" returned undefined when probed with a random type. " + ("Don't try to handle " + ActionTypes.INIT + " or other actions in \"redux/*\" ") + "namespace. They are considered private. Instead, you must return the " + "current state for any unknown actions, unless it is undefined, " + "in which case you must return the initial state, regardless of the " + "action type. The initial state may not be undefined, but can be null."); - } - }); - } - /** - * Turns an object whose values are different reducer functions, into a single - * reducer function. It will call every child reducer, and gather their results - * into a single state object, whose keys correspond to the keys of the passed - * reducer functions. - * - * @param {Object} reducers An object whose values correspond to different - * reducer functions that need to be combined into one. One handy way to obtain - * it is to use ES6 `import * as reducers` syntax. The reducers may never return - * undefined for any action. Instead, they should return their initial state - * if the state passed to them was undefined, and the current state for any - * unrecognized action. - * - * @returns {Function} A reducer function that invokes every reducer inside the - * passed object, and builds a state object with the same shape. - */ + case _keyCode2["default"].DOWN: + case _keyCode2["default"].LEFT: + return function (value, props) { + return value - props.step; + }; + case _keyCode2["default"].END: + return function (value, props) { + return props.max; + }; + case _keyCode2["default"].HOME: + return function (value, props) { + return props.min; + }; + case _keyCode2["default"].PAGE_UP: + return function (value, props) { + return value + props.step * 2; + }; + case _keyCode2["default"].PAGE_DOWN: + return function (value, props) { + return value - props.step * 2; + }; - function combineReducers(reducers) { - var reducerKeys = Object.keys(reducers); - var finalReducers = {}; + default: + return undefined; + } + } - for (var i = 0; i < reducerKeys.length; i++) { - var key = reducerKeys[i]; + /***/ }), + /* 190 */ + /***/ (function(module, exports, __webpack_require__) { - if (process.env.NODE_ENV !== 'production') { - if (typeof reducers[key] === 'undefined') { - warning("No reducer provided for key \"" + key + "\""); - } - } + "use strict"; - if (typeof reducers[key] === 'function') { - finalReducers[key] = reducers[key]; - } - } - var finalReducerKeys = Object.keys(finalReducers); // This is used to make sure we don't warn about the same - // keys multiple times. + exports.__esModule = true; + exports.default = createChainableTypeChecker; + /** + * Copyright 2013-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ - var unexpectedKeyCache; + // Mostly taken from ReactPropTypes. - if (process.env.NODE_ENV !== 'production') { - unexpectedKeyCache = {}; - } + /* This source code is quoted from rc-util. + * homepage: https://github.com/react-component/util + */ - var shapeAssertionError; + function createChainableTypeChecker(validate) { + function checkType(isRequired, props, propName, componentName, location, propFullName) { + var componentNameSafe = componentName || '<>'; + var propFullNameSafe = propFullName || propName; - try { - assertReducerShape(finalReducers); - } catch (e) { - shapeAssertionError = e; - } + if (props[propName] == null) { + if (isRequired) { + return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); + } - return function combination(state, action) { - if (state === void 0) { - state = {}; + return null; } - if (shapeAssertionError) { - throw shapeAssertionError; + for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { + args[_key - 6] = arguments[_key]; } - if (process.env.NODE_ENV !== 'production') { - var warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache); - - if (warningMessage) { - warning(warningMessage); - } - } + return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); + } - var hasChanged = false; - var nextState = {}; + var chainedCheckType = checkType.bind(null, false); + chainedCheckType.isRequired = checkType.bind(null, true); - for (var _i = 0; _i < finalReducerKeys.length; _i++) { - var _key = finalReducerKeys[_i]; - var reducer = finalReducers[_key]; - var previousStateForKey = state[_key]; - var nextStateForKey = reducer(previousStateForKey, action); + return chainedCheckType; + } - if (typeof nextStateForKey === 'undefined') { - var errorMessage = getUndefinedStateErrorMessage(_key, action); - throw new Error(errorMessage); - } + /***/ }), + /* 191 */ + /***/ (function(module, exports, __webpack_require__) { - nextState[_key] = nextStateForKey; - hasChanged = hasChanged || nextStateForKey !== previousStateForKey; - } + "use strict"; - hasChanged = hasChanged || finalReducerKeys.length !== Object.keys(state).length; - return hasChanged ? nextState : state; - }; - } - function bindActionCreator(actionCreator, dispatch) { - return function () { - return dispatch(actionCreator.apply(this, arguments)); - }; - } + exports.__esModule = true; + exports.default = createChainableTypeChecker; /** - * Turns an object whose values are action creators, into an object with the - * same keys, but with every function wrapped into a `dispatch` call so they - * may be invoked directly. This is just a convenience method, as you can call - * `store.dispatch(MyActionCreators.doSomething())` yourself just fine. - * - * For convenience, you can also pass an action creator as the first argument, - * and get a dispatch wrapped function in return. - * - * @param {Function|Object} actionCreators An object whose values are action - * creator functions. One handy way to obtain it is to use ES6 `import * as` - * syntax. You may also pass a single function. - * - * @param {Function} dispatch The `dispatch` function available on your Redux - * store. + * Copyright 2013-present, Facebook, Inc. + * All rights reserved. * - * @returns {Function|Object} The object mimicking the original object, but with - * every action creator wrapped into the `dispatch` call. If you passed a - * function as `actionCreators`, the return value will also be a single - * function. + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. */ + // Mostly taken from ReactPropTypes. - function bindActionCreators(actionCreators, dispatch) { - if (typeof actionCreators === 'function') { - return bindActionCreator(actionCreators, dispatch); - } + /* This source code is quoted from rc-util. + * homepage: https://github.com/react-component/util + */ - if (typeof actionCreators !== 'object' || actionCreators === null) { - throw new Error("bindActionCreators expected an object or a function, instead received " + (actionCreators === null ? 'null' : typeof actionCreators) + ". " + "Did you write \"import ActionCreators from\" instead of \"import * as ActionCreators from\"?"); - } + function createChainableTypeChecker(validate) { + function checkType(isRequired, props, propName, componentName, location, propFullName) { + var componentNameSafe = componentName || '<>'; + var propFullNameSafe = propFullName || propName; - var boundActionCreators = {}; + if (props[propName] == null) { + if (isRequired) { + return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); + } - for (var key in actionCreators) { - var actionCreator = actionCreators[key]; + return null; + } - if (typeof actionCreator === 'function') { - boundActionCreators[key] = bindActionCreator(actionCreator, dispatch); + for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { + args[_key - 6] = arguments[_key]; } + + return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); } - return boundActionCreators; + var chainedCheckType = checkType.bind(null, false); + chainedCheckType.isRequired = checkType.bind(null, true); + + return chainedCheckType; } - function _defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } + /***/ }), + /* 192 */ + /***/ (function(module, exports, __webpack_require__) { - return obj; - } + "use strict"; - function ownKeys(object, enumerableOnly) { - var keys = Object.keys(object); - if (Object.getOwnPropertySymbols) { - keys.push.apply(keys, Object.getOwnPropertySymbols(object)); - } + var _interopRequireDefault = __webpack_require__(19); - if (enumerableOnly) keys = keys.filter(function (sym) { - return Object.getOwnPropertyDescriptor(object, sym).enumerable; - }); - return keys; - } + exports.__esModule = true; + exports.default = void 0; - function _objectSpread2(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i] != null ? arguments[i] : {}; + var _inDOM = _interopRequireDefault(__webpack_require__(84)); - if (i % 2) { - ownKeys(source, true).forEach(function (key) { - _defineProperty(target, key, source[key]); - }); - } else if (Object.getOwnPropertyDescriptors) { - Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); + var _default = function () { + // HTML DOM and SVG DOM may have different support levels, + // so we need to check on context instead of a document root element. + return _inDOM.default ? function (context, node) { + if (context.contains) { + return context.contains(node); + } else if (context.compareDocumentPosition) { + return context === node || !!(context.compareDocumentPosition(node) & 16); } else { - ownKeys(source).forEach(function (key) { - Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); - }); + return fallback(context, node); } - } + } : fallback; + }(); - return target; + exports.default = _default; + + function fallback(context, node) { + if (node) do { + if (node === context) return true; + } while (node = node.parentNode); + return false; } - /** - * Composes single-argument functions from right to left. The rightmost - * function can take multiple arguments as it provides the signature for - * the resulting composite function. - * - * @param {...Function} funcs The functions to compose. - * @returns {Function} A function obtained by composing the argument functions - * from right to left. For example, compose(f, g, h) is identical to doing - * (...args) => f(g(h(...args))). - */ - function compose() { - for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) { - funcs[_key] = arguments[_key]; - } + module.exports = exports["default"]; - if (funcs.length === 0) { - return function (arg) { - return arg; - }; - } + /***/ }), + /* 193 */ + /***/ (function(module, exports, __webpack_require__) { - if (funcs.length === 1) { - return funcs[0]; - } + "use strict"; - return funcs.reduce(function (a, b) { - return function () { - return a(b.apply(void 0, arguments)); - }; - }); + + exports.__esModule = true; + exports.default = getWindow; + + function getWindow(node) { + return node === node.window ? node : node.nodeType === 9 ? node.defaultView || node.parentWindow : false; } - /** - * Creates a store enhancer that applies middleware to the dispatch method - * of the Redux store. This is handy for a variety of tasks, such as expressing - * asynchronous actions in a concise manner, or logging every action payload. - * - * See `redux-thunk` package as an example of the Redux middleware. - * - * Because middleware is potentially asynchronous, this should be the first - * store enhancer in the composition chain. - * - * Note that each middleware will be given the `dispatch` and `getState` functions - * as named arguments. - * - * @param {...Function} middlewares The middleware chain to be applied. - * @returns {Function} A store enhancer applying the middleware. - */ + module.exports = exports["default"]; - function applyMiddleware() { - for (var _len = arguments.length, middlewares = new Array(_len), _key = 0; _key < _len; _key++) { - middlewares[_key] = arguments[_key]; - } + /***/ }), + /* 194 */ + /***/ (function(module, exports, __webpack_require__) { - return function (createStore) { - return function () { - var store = createStore.apply(void 0, arguments); + "use strict"; - var _dispatch = function dispatch() { - throw new Error('Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.'); - }; - var middlewareAPI = { - getState: store.getState, - dispatch: function dispatch() { - return _dispatch.apply(void 0, arguments); - } - }; - var chain = middlewares.map(function (middleware) { - return middleware(middlewareAPI); - }); - _dispatch = compose.apply(void 0, chain)(store.dispatch); - return _objectSpread2({}, store, { - dispatch: _dispatch - }); - }; - }; - } + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.destroyFns = undefined; - /* - * This is a dummy function to check if the function name has been altered by minification. - * If the function has been minified and NODE_ENV !== 'production', warn the user. - */ + var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }(); - function isCrushed() {} + var _extends2; - if (process.env.NODE_ENV !== 'production' && typeof isCrushed.name === 'string' && isCrushed.name !== 'isCrushed') { - warning('You are currently using minified code outside of NODE_ENV === "production". ' + 'This means that you are running a slower development build of Redux. ' + 'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify ' + 'or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) ' + 'to ensure you have the correct code for your production build.'); - } + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + var _classnames = __webpack_require__(2); + var _classnames2 = _interopRequireDefault(_classnames); - /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(5))) + var _events = __webpack_require__(162); - /***/ }), - /* 309 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + var _events2 = _interopRequireDefault(_events); - "use strict"; - /* harmony export (immutable) */ __webpack_exports__["a"] = _inheritsLoose; - function _inheritsLoose(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - subClass.__proto__ = superClass; - } + var _ownerDocument = __webpack_require__(23); - /***/ }), - /* 310 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + var _ownerDocument2 = _interopRequireDefault(_ownerDocument); - "use strict"; - /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return subscriptionShape; }); - /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return storeShape; }); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types__ = __webpack_require__(1); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_prop_types__); + var _inDOM = __webpack_require__(26); - var subscriptionShape = __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.shape({ - trySubscribe: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.func.isRequired, - tryUnsubscribe: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.func.isRequired, - notifyNestedSubs: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.func.isRequired, - isSubscribed: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.func.isRequired - }); - var storeShape = __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.shape({ - subscribe: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.func.isRequired, - dispatch: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.func.isRequired, - getState: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.func.isRequired - }); + var _inDOM2 = _interopRequireDefault(_inDOM); - /***/ }), - /* 311 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + var _scrollbarSize = __webpack_require__(104); - "use strict"; - /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = connectAdvanced; - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__ = __webpack_require__(309); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_assertThisInitialized__ = __webpack_require__(1106); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_extends__ = __webpack_require__(169); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__ = __webpack_require__(170); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_hoist_non_react_statics__ = __webpack_require__(234); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_hoist_non_react_statics___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_hoist_non_react_statics__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_invariant__ = __webpack_require__(1107); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_invariant___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_invariant__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react_is__ = __webpack_require__(135); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react_is___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_react_is__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utils_Subscription__ = __webpack_require__(1108); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_PropTypes__ = __webpack_require__(310); + var _scrollbarSize2 = _interopRequireDefault(_scrollbarSize); + var _scrollTop = __webpack_require__(45); + var _scrollTop2 = _interopRequireDefault(_scrollTop); + var _react = __webpack_require__(0); + var _react2 = _interopRequireDefault(_react); + var _reactDom = __webpack_require__(3); + var _reactDom2 = _interopRequireDefault(_reactDom); + var _Modal = __webpack_require__(163); + var _Modal2 = _interopRequireDefault(_Modal); + var _isOverflowing = __webpack_require__(105); - var prefixUnsafeLifecycleMethods = typeof __WEBPACK_IMPORTED_MODULE_6_react___default.a.forwardRef !== "undefined"; - var hotReloadingVersion = 0; - var dummyState = {}; + var _isOverflowing2 = _interopRequireDefault(_isOverflowing); - function noop() {} + var _tinperBeeCore = __webpack_require__(46); - function makeSelectorStateful(sourceSelector, store) { - // wrap the selector in an object that tracks its results between runs. - var selector = { - run: function runComponentSelector(props) { - try { - var nextProps = sourceSelector(store.getState(), props); + var _beeTransition = __webpack_require__(1514); - if (nextProps !== selector.props || selector.error) { - selector.shouldComponentUpdate = true; - selector.props = nextProps; - selector.error = null; - } - } catch (error) { - selector.shouldComponentUpdate = true; - selector.error = error; - } - } - }; - return selector; - } + var _ModalBody = __webpack_require__(1518); - function connectAdvanced( - /* - selectorFactory is a func that is responsible for returning the selector function used to - compute new props from state, props, and dispatch. For example: - export default connectAdvanced((dispatch, options) => (state, props) => ({ - thing: state.things[props.thingId], - saveThing: fields => dispatch(actionCreators.saveThing(props.thingId, fields)), - }))(YourComponent) - Access to dispatch is provided to the factory so selectorFactories can bind actionCreators - outside of their selector as an optimization. Options passed to connectAdvanced are passed to - the selectorFactory, along with displayName and WrappedComponent, as the second argument. - Note that selectorFactory is responsible for all caching/memoization of inbound and outbound - props. Do not use connectAdvanced directly without memoizing results between calls to your - selector, otherwise the Connect component will re-render on every state or props change. - */ - selectorFactory, // options object: - _ref) { - var _contextTypes, _childContextTypes; + var _ModalBody2 = _interopRequireDefault(_ModalBody); - if (_ref === void 0) { - _ref = {}; - } + var _ModalDialog = __webpack_require__(1519); - var _ref2 = _ref, - _ref2$getDisplayName = _ref2.getDisplayName, - getDisplayName = _ref2$getDisplayName === void 0 ? function (name) { - return "ConnectAdvanced(" + name + ")"; - } : _ref2$getDisplayName, - _ref2$methodName = _ref2.methodName, - methodName = _ref2$methodName === void 0 ? 'connectAdvanced' : _ref2$methodName, - _ref2$renderCountProp = _ref2.renderCountProp, - renderCountProp = _ref2$renderCountProp === void 0 ? undefined : _ref2$renderCountProp, - _ref2$shouldHandleSta = _ref2.shouldHandleStateChanges, - shouldHandleStateChanges = _ref2$shouldHandleSta === void 0 ? true : _ref2$shouldHandleSta, - _ref2$storeKey = _ref2.storeKey, - storeKey = _ref2$storeKey === void 0 ? 'store' : _ref2$storeKey, - _ref2$withRef = _ref2.withRef, - withRef = _ref2$withRef === void 0 ? false : _ref2$withRef, - connectOptions = Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__["a" /* default */])(_ref2, ["getDisplayName", "methodName", "renderCountProp", "shouldHandleStateChanges", "storeKey", "withRef"]); + var _ModalDialog2 = _interopRequireDefault(_ModalDialog); - var subscriptionKey = storeKey + 'Subscription'; - var version = hotReloadingVersion++; - var contextTypes = (_contextTypes = {}, _contextTypes[storeKey] = __WEBPACK_IMPORTED_MODULE_9__utils_PropTypes__["a" /* storeShape */], _contextTypes[subscriptionKey] = __WEBPACK_IMPORTED_MODULE_9__utils_PropTypes__["b" /* subscriptionShape */], _contextTypes); - var childContextTypes = (_childContextTypes = {}, _childContextTypes[subscriptionKey] = __WEBPACK_IMPORTED_MODULE_9__utils_PropTypes__["b" /* subscriptionShape */], _childContextTypes); - return function wrapWithConnect(WrappedComponent) { - __WEBPACK_IMPORTED_MODULE_5_invariant___default()(Object(__WEBPACK_IMPORTED_MODULE_7_react_is__["isValidElementType"])(WrappedComponent), "You must pass a component to the function returned by " + (methodName + ". Instead received " + JSON.stringify(WrappedComponent))); - var wrappedComponentName = WrappedComponent.displayName || WrappedComponent.name || 'Component'; - var displayName = getDisplayName(wrappedComponentName); + var _ModalFooter = __webpack_require__(1525); - var selectorFactoryOptions = Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_extends__["a" /* default */])({}, connectOptions, { - getDisplayName: getDisplayName, - methodName: methodName, - renderCountProp: renderCountProp, - shouldHandleStateChanges: shouldHandleStateChanges, - storeKey: storeKey, - withRef: withRef, - displayName: displayName, - wrappedComponentName: wrappedComponentName, - WrappedComponent: WrappedComponent // TODO Actually fix our use of componentWillReceiveProps + var _ModalFooter2 = _interopRequireDefault(_ModalFooter); - /* eslint-disable react/no-deprecated */ + var _ModalHeader = __webpack_require__(1526); - }); + var _ModalHeader2 = _interopRequireDefault(_ModalHeader); - var Connect = - /*#__PURE__*/ - function (_Component) { - Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(Connect, _Component); + var _ModalTitle = __webpack_require__(1527); - function Connect(props, context) { - var _this; + var _ModalTitle2 = _interopRequireDefault(_ModalTitle); - _this = _Component.call(this, props, context) || this; - _this.version = version; - _this.state = {}; - _this.renderCount = 0; - _this.store = props[storeKey] || context[storeKey]; - _this.propsMode = Boolean(props[storeKey]); - _this.setWrappedInstance = _this.setWrappedInstance.bind(Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_assertThisInitialized__["a" /* default */])(Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_assertThisInitialized__["a" /* default */])(_this))); - __WEBPACK_IMPORTED_MODULE_5_invariant___default()(_this.store, "Could not find \"" + storeKey + "\" in either the context or props of " + ("\"" + displayName + "\". Either wrap the root component in a , ") + ("or explicitly pass \"" + storeKey + "\" as a prop to \"" + displayName + "\".")); + var _propTypes = __webpack_require__(1); - _this.initSelector(); + var _propTypes2 = _interopRequireDefault(_propTypes); - _this.initSubscription(); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - return _this; - } + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - var _proto = Connect.prototype; + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - _proto.getChildContext = function getChildContext() { - var _ref3; + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - // If this component received store from props, its subscription should be transparent - // to any descendants receiving store+subscription from context; it passes along - // subscription passed to it. Otherwise, it shadows the parent subscription, which allows - // Connect to control ordering of notifications to flow top-down. - var subscription = this.propsMode ? null : this.subscription; - return _ref3 = {}, _ref3[subscriptionKey] = subscription || this.context[subscriptionKey], _ref3; - }; + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - _proto.componentDidMount = function componentDidMount() { - if (!shouldHandleStateChanges) return; // componentWillMount fires during server side rendering, but componentDidMount and - // componentWillUnmount do not. Because of this, trySubscribe happens during ...didMount. - // Otherwise, unsubscription would never take place during SSR, causing a memory leak. - // To handle the case where a child component may have triggered a state change by - // dispatching an action in its componentWillMount, we have to re-run the select and maybe - // re-render. + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - this.subscription.trySubscribe(); - this.selector.run(this.props); - if (this.selector.shouldComponentUpdate) this.forceUpdate(); - }; // Note: this is renamed below to the UNSAFE_ version in React >=16.3.0 + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + var propTypes = _extends({}, _Modal2["default"].propTypes, _ModalDialog2["default"].propTypes, (_extends2 = { - _proto.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - this.selector.run(nextProps); - }; + /** + * 是否弹出遮罩层/遮罩层点击是否触发关闭 + */ + backdrop: _propTypes2["default"].oneOf(['static', true, false]), - _proto.shouldComponentUpdate = function shouldComponentUpdate() { - return this.selector.shouldComponentUpdate; - }; + /** + * 点击遮罩层是否允许关闭 + */ + backdropClosable: _propTypes2["default"].bool, + /** + * esc触发关闭 + */ + keyboard: _propTypes2["default"].bool, - _proto.componentWillUnmount = function componentWillUnmount() { - if (this.subscription) this.subscription.tryUnsubscribe(); - this.subscription = null; - this.notifyNestedSubs = noop; - this.store = null; - this.selector.run = noop; - this.selector.shouldComponentUpdate = false; - }; + /** + * 显隐时是否使用动画 + */ + animation: _propTypes2["default"].bool, - _proto.getWrappedInstance = function getWrappedInstance() { - __WEBPACK_IMPORTED_MODULE_5_invariant___default()(withRef, "To access the wrapped instance, you need to specify " + ("{ withRef: true } in the options argument of the " + methodName + "() call.")); - return this.wrappedInstance; - }; + /** + * 传递给模态框的样式 + */ + dialogComponentClass: _tinperBeeCore.elementType, - _proto.setWrappedInstance = function setWrappedInstance(ref) { - this.wrappedInstance = ref; - }; + /** + * 自动设置焦点 + */ + autoFocus: _propTypes2["default"].bool, - _proto.initSelector = function initSelector() { - var sourceSelector = selectorFactory(this.store.dispatch, selectorFactoryOptions); - this.selector = makeSelectorStateful(sourceSelector, this.store); - this.selector.run(this.props); - }; + /** + * 防止打开时焦点离开模态框 + */ + enforceFocus: _propTypes2["default"].bool, - _proto.initSubscription = function initSubscription() { - if (!shouldHandleStateChanges) return; // parentSub's source should match where store came from: props vs. context. A component - // connected to the store via props shouldn't use subscription from context, or vice versa. + /** + * 是否打开模态框 + */ + show: _propTypes2["default"].bool, - var parentSub = (this.propsMode ? this.props : this.context)[subscriptionKey]; - this.subscription = new __WEBPACK_IMPORTED_MODULE_8__utils_Subscription__["a" /* default */](this.store, parentSub, this.onStateChange.bind(this)); // `notifyNestedSubs` is duplicated to handle the case where the component is unmounted in - // the middle of the notification loop, where `this.subscription` will then be null. An - // extra null check every change can be avoided by copying the method onto `this` and then - // replacing it with a no-op on unmount. This can probably be avoided if Subscription's - // listeners logic is changed to not call listeners that have been unsubscribed in the - // middle of the notification loop. + /** + * 关闭时的钩子函数 + */ + onHide: _propTypes2["default"].func, - this.notifyNestedSubs = this.subscription.notifyNestedSubs.bind(this.subscription); - }; + onEnter: _propTypes2["default"].func, - _proto.onStateChange = function onStateChange() { - this.selector.run(this.props); + onEntering: _propTypes2["default"].func, - if (!this.selector.shouldComponentUpdate) { - this.notifyNestedSubs(); - } else { - this.componentDidUpdate = this.notifyNestedSubsOnComponentDidUpdate; - this.setState(dummyState); - } - }; + onEntered: _propTypes2["default"].func, - _proto.notifyNestedSubsOnComponentDidUpdate = function notifyNestedSubsOnComponentDidUpdate() { - // `componentDidUpdate` is conditionally implemented when `onStateChange` determines it - // needs to notify nested subs. Once called, it unimplements itself until further state - // changes occur. Doing it this way vs having a permanent `componentDidUpdate` that does - // a boolean check every time avoids an extra method call most of the time, resulting - // in some perf boost. - this.componentDidUpdate = undefined; - this.notifyNestedSubs(); - }; + onExit: _propTypes2["default"].func, - _proto.isSubscribed = function isSubscribed() { - return Boolean(this.subscription) && this.subscription.isSubscribed(); - }; + onExiting: _propTypes2["default"].func, - _proto.addExtraProps = function addExtraProps(props) { - if (!withRef && !renderCountProp && !(this.propsMode && this.subscription)) return props; // make a shallow copy so that fields added don't leak to the original selector. - // this is especially important for 'ref' since that's a reference back to the component - // instance. a singleton memoized selector would then be holding a reference to the - // instance, preventing the instance from being garbage collected, and that would be bad + onExited: _propTypes2["default"].func, - var withExtras = Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_extends__["a" /* default */])({}, props); + containerClassName: _propTypes2["default"].string + }, _defineProperty(_extends2, 'containerClassName', _propTypes2["default"].string), _defineProperty(_extends2, 'container', _Modal2["default"].propTypes.container), _defineProperty(_extends2, 'size', _propTypes2["default"].oneOf(["sm", "lg", "xlg", ""])), _defineProperty(_extends2, 'width', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'draggable', _propTypes2["default"].bool), _defineProperty(_extends2, 'resizable', _propTypes2["default"].bool), _defineProperty(_extends2, 'resizeClassName', _propTypes2["default"].string), _defineProperty(_extends2, 'onResizeStart', _propTypes2["default"].func), _defineProperty(_extends2, 'onResize', _propTypes2["default"].func), _defineProperty(_extends2, 'onResizeStop', _propTypes2["default"].func), _defineProperty(_extends2, 'minWidth', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'minHeight', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'maxWidth', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'maxHeight', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'bounds', _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].object])), _defineProperty(_extends2, 'className', _propTypes2["default"].string), _defineProperty(_extends2, 'centered', _propTypes2["default"].bool), _extends2)); - if (withRef) withExtras.ref = this.setWrappedInstance; - if (renderCountProp) withExtras[renderCountProp] = this.renderCount++; - if (this.propsMode && this.subscription) withExtras[subscriptionKey] = this.subscription; - return withExtras; - }; + var defaultProps = _extends({}, _Modal2["default"].defaultProps, { + backdropClosable: true, + animation: true, + dialogComponentClass: _ModalDialog2["default"], + draggable: false, + resizable: false, + clsPrefix: 'u-modal', + className: '' + }); - _proto.render = function render() { - var selector = this.selector; - selector.shouldComponentUpdate = false; + var ModalFuncProps = { + prefixCls: _propTypes2["default"].string, + className: _propTypes2["default"].string, + show: _propTypes2["default"].bool, + title: _react2["default"].ReactNode, + content: _react2["default"].ReactNode, + onOk: _propTypes2["default"].func, + onCancel: _propTypes2["default"].func, + width: _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string]), + okText: _propTypes2["default"].string, + okType: _propTypes2["default"].string, + cancelText: _propTypes2["default"].string, + icon: _react2["default"].ReactNode, + backdrop: _propTypes2["default"].oneOf(['static', true, false]) + }; - if (selector.error) { - throw selector.error; - } else { - return Object(__WEBPACK_IMPORTED_MODULE_6_react__["createElement"])(WrappedComponent, this.addExtraProps(selector.props)); - } - }; + var ModalFunc = function ModalFunc(props) { + destroy = function destroy() {}; + update = function update(newConfig) {}; + }; - return Connect; - }(__WEBPACK_IMPORTED_MODULE_6_react__["Component"]); + var destroyFns = exports.destroyFns = []; - if (prefixUnsafeLifecycleMethods) { - // Use UNSAFE_ event name where supported - Connect.prototype.UNSAFE_componentWillReceiveProps = Connect.prototype.componentWillReceiveProps; - delete Connect.prototype.componentWillReceiveProps; - } - /* eslint-enable react/no-deprecated */ + var childContextTypes = { + $u_modal: _propTypes2["default"].shape({ + onHide: _propTypes2["default"].func + }) + }; + var Modal = function (_React$Component) { + _inherits(Modal, _React$Component); - Connect.WrappedComponent = WrappedComponent; - Connect.displayName = displayName; - Connect.childContextTypes = childContextTypes; - Connect.contextTypes = contextTypes; - Connect.propTypes = contextTypes; + function Modal(props, context) { + _classCallCheck(this, Modal); - if (process.env.NODE_ENV !== 'production') { - // Use UNSAFE_ event name where supported - var eventName = prefixUnsafeLifecycleMethods ? 'UNSAFE_componentWillUpdate' : 'componentWillUpdate'; + var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context)); - Connect.prototype[eventName] = function componentWillUpdate() { - var _this2 = this; + _this.clearCenteredCls = function () { + var centered = _this.state.centered; - // We are hot reloading! - if (this.version !== version) { - this.version = version; - this.initSelector(); // If any connected descendants don't hot reload (and resubscribe in the process), their - // listeners will be lost when we unsubscribe. Unfortunately, by copying over all - // listeners, this does mean that the old versions of connected descendants will still be - // notified of state changes; however, their onStateChange function is a no-op so this - // isn't a huge deal. + if (!centered) { + return; + } + _this.offsetTop = _this.getOffsetTop(); + _this.setState({ + centered: false + }); + }; - var oldListeners = []; + _this.state = { + style: {}, + centered: props.centered, + draging: false, + draged: false + }; + _this.offsetTop = 0; + _this.handleEntering = _this.handleEntering.bind(_this); + _this.handleExited = _this.handleExited.bind(_this); + _this.handleWindowResize = _this.handleWindowResize.bind(_this); + _this.handleDialogClick = _this.handleDialogClick.bind(_this); + return _this; + } - if (this.subscription) { - oldListeners = this.subscription.listeners.get(); - this.subscription.tryUnsubscribe(); - } + Modal.prototype.getChildContext = function getChildContext() { + return { + $u_modal: { + onHide: this.props.onHide + } + }; + }; - this.initSubscription(); + Modal.prototype.componentWillUnmount = function componentWillUnmount() { + // Clean up the listener if we need to. + this.handleExited(); + }; - if (shouldHandleStateChanges) { - this.subscription.trySubscribe(); - oldListeners.forEach(function (listener) { - return _this2.subscription.listeners.subscribe(listener); - }); - } - } - }; - } + Modal.prototype.handleEntering = function handleEntering() { + // FIXME: This should work even when animation is disabled. + _events2["default"].on(window, 'resize', this.handleWindowResize); + this.updateStyle(); + }; - return __WEBPACK_IMPORTED_MODULE_4_hoist_non_react_statics___default()(Connect, WrappedComponent); + Modal.prototype.handleExited = function handleExited() { + this.setState({ + draging: false, + draged: false + }); + // FIXME: This should work even when animation is disabled. + _events2["default"].off(window, 'resize', this.handleWindowResize); }; - } - /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(5))) - /***/ }), - /* 312 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + Modal.prototype.handleWindowResize = function handleWindowResize() { + this.updateStyle(); + }; - "use strict"; - /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = wrapMapToPropsConstant; - /* unused harmony export getDependsOnOwnProps */ - /* harmony export (immutable) */ __webpack_exports__["b"] = wrapMapToPropsFunc; - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_verifyPlainObject__ = __webpack_require__(313); + Modal.prototype.handleDialogClick = function handleDialogClick(e) { + if (e.target !== e.currentTarget) { + return; + } - function wrapMapToPropsConstant(getConstant) { - return function initConstantSelector(dispatch, options) { - var constant = getConstant(dispatch, options); + this.props.onHide(); + }; - function constantSelector() { - return constant; + Modal.prototype.updateStyle = function updateStyle() { + if (!_inDOM2["default"] || !this._modal) { + return; } - constantSelector.dependsOnOwnProps = false; - return constantSelector; + var dialogNode = this._modal.getDialogElement(); + var dialogHeight = dialogNode.scrollHeight; + + var document = (0, _ownerDocument2["default"])(dialogNode); + var bodyIsOverflowing = false; + if (this.props.container) { + bodyIsOverflowing = (0, _isOverflowing2["default"])(_reactDom2["default"].findDOMNode(this.props.container)); + } + var modalIsOverflowing = dialogHeight > document.documentElement.clientHeight; + + this.setState({ + style: { + paddingRight: bodyIsOverflowing && !modalIsOverflowing ? (0, _scrollbarSize2["default"])() : undefined, + paddingLeft: !bodyIsOverflowing && modalIsOverflowing ? (0, _scrollbarSize2["default"])() : undefined + } + }); }; - } // dependsOnOwnProps is used by createMapToPropsProxy to determine whether to pass props as args - // to the mapToProps function being wrapped. It is also used by makePurePropsSelector to determine - // whether mapToProps needs to be invoked when props have changed. - // - // A length of one signals that mapToProps does not depend on props from the parent component. - // A length of zero is assumed to mean mapToProps is getting args via arguments or ...args and - // therefore not reporting its length accurately.. + //ResizeStart 时,若模态框设置了 `centered` ,需要把居中属性移除,并通过 offsetTop 制造垂直居中的假象 + //fixbug: Resize 和 centered 一起使用时,拖拽交互不正确 - function getDependsOnOwnProps(mapToProps) { - return mapToProps.dependsOnOwnProps !== null && mapToProps.dependsOnOwnProps !== undefined ? Boolean(mapToProps.dependsOnOwnProps) : mapToProps.length !== 1; - } // Used by whenMapStateToPropsIsFunction and whenMapDispatchToPropsIsFunction, - // this function wraps mapToProps in a proxy function which does several things: - // - // * Detects whether the mapToProps function being called depends on props, which - // is used by selectorFactory to decide if it should reinvoke on props changes. - // - // * On first call, handles mapToProps if returns another function, and treats that - // new function as the true mapToProps for subsequent calls. - // - // * On first call, verifies the first result is a plain object, in order to warn - // the developer that their mapToProps function is not returning a valid result. - // - function wrapMapToPropsFunc(mapToProps, methodName) { - return function initProxySelector(dispatch, _ref) { - var displayName = _ref.displayName; + //计算 ModalDialog 的 offsetTop + Modal.prototype.getOffsetTop = function getOffsetTop() { + var modalDialog = document.getElementsByClassName("u-modal-dialog") && document.getElementsByClassName("u-modal-dialog")[0]; + var topPos = modalDialog && modalDialog.offsetTop; + return topPos; + }; - var proxy = function mapToPropsProxy(stateOrDispatch, ownProps) { - return proxy.dependsOnOwnProps ? proxy.mapToProps(stateOrDispatch, ownProps) : proxy.mapToProps(stateOrDispatch); - }; // allow detectFactoryAndVerify to get ownProps + Modal.prototype.render = function render() { + var _this2 = this; + + var _props = this.props, + backdrop = _props.backdrop, + backdropClosable = _props.backdropClosable, + animation = _props.animation, + show = _props.show, + Dialog = _props.dialogComponentClass, + className = _props.className, + clsPrefix = _props.clsPrefix, + _props$style = _props.style, + style = _props$style === undefined ? {} : _props$style, + size = _props.size, + width = _props.width, + children = _props.children, + onEntering = _props.onEntering, + onExited = _props.onExited, + backdropClassName = _props.backdropClassName, + containerClassName = _props.containerClassName, + draggable = _props.draggable, + resizeClassName = _props.resizeClassName, + bounds = _props.bounds, + container = _props.container, + onStart = _props.onStart, + onStop = _props.onStop, + props = _objectWithoutProperties(_props, ['backdrop', 'backdropClosable', 'animation', 'show', 'dialogComponentClass', 'className', 'clsPrefix', 'style', 'size', 'width', 'children', 'onEntering', 'onExited', 'backdropClassName', 'containerClassName', 'draggable', 'resizeClassName', 'bounds', 'container', 'onStart', 'onStop']); + var _state = this.state, + centered = _state.centered, + draging = _state.draging, + draged = _state.draged; - proxy.dependsOnOwnProps = true; + var dialogMarginTop = 30; + //ResizeStart 时,计算 ModalDialog 的 offsetTop + var topPosStyle = this.offsetTop > 0 ? { top: this.offsetTop - dialogMarginTop } : null; - proxy.mapToProps = function detectFactoryAndVerify(stateOrDispatch, ownProps) { - proxy.mapToProps = mapToProps; - proxy.dependsOnOwnProps = getDependsOnOwnProps(mapToProps); - var props = proxy(stateOrDispatch, ownProps); + var _splitComponent = (0, _tinperBeeCore.splitComponent)(props, _Modal2["default"]), + _splitComponent2 = _slicedToArray(_splitComponent, 2), + baseModalProps = _splitComponent2[0], + dialogProps = _splitComponent2[1]; - if (typeof props === 'function') { - proxy.mapToProps = props; - proxy.dependsOnOwnProps = getDependsOnOwnProps(props); - props = proxy(stateOrDispatch, ownProps); - } + var inClassName = show && !animation && 'in'; - if (process.env.NODE_ENV !== 'production') Object(__WEBPACK_IMPORTED_MODULE_0__utils_verifyPlainObject__["a" /* default */])(props, displayName, methodName); - return props; - }; + var backdropClasses = _defineProperty({}, clsPrefix + '-backdrop', true); + var containerClasses = _defineProperty({}, clsPrefix + '-open', true); + if (!!centered) { + className += ' ' + clsPrefix + '-centered'; + } + if (draging) { + className += ' draging'; + } + if (draged) { + className += ' draged'; + } + if (Number(width)) width += 'px'; - return proxy; + var styleRes = _extends({}, this.state.style, style, topPosStyle); + if (width) { + _extends(styleRes, { width: width }); + } + return _react2["default"].createElement( + _Modal2["default"], + _extends({}, baseModalProps, { + ref: function ref(c) { + _this2._modal = c; + }, + show: show, + onEntering: (0, _tinperBeeCore.createChainedFunction)(onEntering, this.handleEntering), + onExited: (0, _tinperBeeCore.createChainedFunction)(onExited, this.handleExited), + backdrop: backdrop, + backdropClassName: (0, _classnames2["default"])(backdropClasses, inClassName, backdropClassName), + containerClassName: (0, _classnames2["default"])(containerClasses, containerClassName), + transition: animation ? _beeTransition.Fade : undefined, + dialogTransitionTimeout: Modal.TRANSITION_DURATION, + backdropTransitionTimeout: Modal.BACKDROP_TRANSITION_DURATION, + container: container + }), + _react2["default"].createElement( + Dialog, + _extends({}, dialogProps, { + style: styleRes, + className: (0, _classnames2["default"])(className, inClassName, backdropClassName), + onClick: backdrop === true && !!backdropClosable ? this.handleDialogClick : null, + size: size, + draggable: draggable, + bounds: bounds, + resizeClassName: resizeClassName, + clearCenteredCls: this.clearCenteredCls, + onStart: function onStart() { + _this2.setState({ + draging: true, + draged: false + }); + }, + onStop: function onStop() { + _this2.setState({ + draging: false, + draged: true + }); + } + }), + children + ) + ); }; - } - /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(5))) - /***/ }), - /* 313 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + return Modal; + }(_react2["default"].Component); - "use strict"; - /* harmony export (immutable) */ __webpack_exports__["a"] = verifyPlainObject; - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isPlainObject__ = __webpack_require__(1112); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__warning__ = __webpack_require__(168); + Modal.info = ModalFunc; + Modal.success = ModalFunc; + Modal.error = ModalFunc; + Modal.warn = ModalFunc; + Modal.warning = ModalFunc; + Modal.confirm = ModalFunc; + Modal.destroyAll = function () { + return; + }; - function verifyPlainObject(value, displayName, methodName) { - if (!Object(__WEBPACK_IMPORTED_MODULE_0__isPlainObject__["a" /* default */])(value)) { - Object(__WEBPACK_IMPORTED_MODULE_1__warning__["a" /* default */])(methodName + "() in " + displayName + " must return a plain object. Instead received " + value + "."); - } - } + Modal.propTypes = propTypes; + Modal.defaultProps = defaultProps; + Modal.childContextTypes = childContextTypes; - /***/ }), - /* 314 */ - /***/ (function(module, exports, __webpack_require__) { + Modal.Body = _ModalBody2["default"]; + Modal.Header = _ModalHeader2["default"]; + Modal.Title = _ModalTitle2["default"]; + Modal.Footer = _ModalFooter2["default"]; - "use strict"; + Modal.Dialog = _ModalDialog2["default"]; + Modal.TRANSITION_DURATION = 200000; + Modal.BACKDROP_TRANSITION_DURATION = 10000; - exports.__esModule = true; - exports["default"] = { - noWobble: { stiffness: 170, damping: 26 }, // the default, if nothing provided - gentle: { stiffness: 120, damping: 14 }, - wobbly: { stiffness: 180, damping: 12 }, - stiff: { stiffness: 210, damping: 20 } - }; - module.exports = exports["default"]; + exports["default"] = Modal; /***/ }), - /* 315 */ + /* 195 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; - Object.defineProperty(exports, "__esModule", { - value: true - }); - var getClass = exports.getClass = function getClass(props, doing) { - var dropClass = props.dropClass, - dropOverClass = props.dropOverClass, - dragClass = props.dragClass, - dragingClass = props.dragingClass, - type = props.type; + exports.__esModule = true; + exports.default = createChainableTypeChecker; + /** + * Copyright 2013-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + // Mostly taken from ReactPropTypes. - var verticalObj = { - drop: {}, drag: {} - }; - verticalObj.drop['u-drop ' + dropClass] = true; - verticalObj.drop['u-droping ' + dropOverClass] = doing; - verticalObj.drag['u-drag ' + dragClass] = true; - verticalObj.drag['u-draging ' + dragingClass] = doing; + /* This source code is quoted from rc-util. + * homepage: https://github.com/react-component/util + */ - var horizontalObj = { - drop: {}, drag: {} - }; - horizontalObj.drop['u-drop u-drop-horizontal ' + dropClass] = true; - horizontalObj.drop['u-droping u-droping-horizontal ' + dropOverClass] = doing; - horizontalObj.drag['u-drag u-drag-horizontal ' + dragClass] = true; - horizontalObj.drag['u-draging u-draging-horizontal ' + dragingClass] = doing; + function createChainableTypeChecker(validate) { + function checkType(isRequired, props, propName, componentName, location, propFullName) { + var componentNameSafe = componentName || '<>'; + var propFullNameSafe = propFullName || propName; - switch (type) { - case 'vertical': - return verticalObj; - break; - case 'horizontal': - return horizontalObj; - break; - case 'betweenVertical': - return verticalObj; - break; - case 'betweenHorizontal': - return horizontalObj; - break; + if (props[propName] == null) { + if (isRequired) { + return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); + } + + return null; } - }; + + for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { + args[_key - 6] = arguments[_key]; + } + + return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); + } + + var chainedCheckType = checkType.bind(null, false); + chainedCheckType.isRequired = checkType.bind(null, true); + + return chainedCheckType; + } /***/ }), - /* 316 */ + /* 196 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; - /* WEBPACK VAR INJECTION */(function(process) { - exports.__esModule = true; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = undefined; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; @@ -138575,1667 +128498,1660 @@ var _react2 = _interopRequireDefault(_react); - var _propTypes = __webpack_require__(1); + var _reactDom = __webpack_require__(3); - var _propTypes2 = _interopRequireDefault(_propTypes); + var _reactDom2 = _interopRequireDefault(_reactDom); - var _lodash = __webpack_require__(20); + var _properties = __webpack_require__(28); - var _lodash2 = _interopRequireDefault(_lodash); + var _properties2 = _interopRequireDefault(_properties); + + var _on = __webpack_require__(17); + + var _on2 = _interopRequireDefault(_on); var _classnames = __webpack_require__(2); var _classnames2 = _interopRequireDefault(_classnames); - var _utils = __webpack_require__(75); + var _propTypes = __webpack_require__(1); - var _GridItem = __webpack_require__(1127); + var _propTypes2 = _interopRequireDefault(_propTypes); - var _GridItem2 = _interopRequireDefault(_GridItem); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - - // End Types - - /** - * A reactive, fluid grid layout with draggable, resizable components. - */ - - // Types - var ReactGridLayout = function (_React$Component) { - _inherits(ReactGridLayout, _React$Component); - - // TODO publish internal ReactClass displayName transform - function ReactGridLayout(props, context) { - _classCallCheck(this, ReactGridLayout); - - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context)); - - _initialiseProps.call(_this); - - (0, _utils.autoBindHandlers)(_this, ["onDragStart", "onDrag", "onDragStop", "onResizeStart", "onResize", "onResizeStop"]); - return _this; - } - - ReactGridLayout.prototype.componentDidMount = function componentDidMount() { - this.setState({ mounted: true }); - // Possibly call back with layout on mount. This should be done after correcting the layout width - // to ensure we don't rerender with the wrong width. - this.onLayoutMaybeChanged(this.state.layout, this.props.layout); - }; + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - ReactGridLayout.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - var newLayoutBase = void 0; - // Legacy support for compactType - // Allow parent to set layout directly. - if (!(0, _lodash2.default)(nextProps.layout, this.props.layout) || nextProps.compactType !== this.props.compactType) { - newLayoutBase = nextProps.layout; - } else if (!(0, _utils.childrenEqual)(this.props.children, nextProps.children)) { - // If children change, also regenerate the layout. Use our state - // as the base in case because it may be more up to date than - // what is in props. - newLayoutBase = this.state.layout; - } + var transitionEndEvent = _properties2["default"].end; - // We need to regenerate the layout. - if (newLayoutBase) { - var newLayout = (0, _utils.synchronizeLayoutWithChildren)(newLayoutBase, nextProps.children, nextProps.cols, this.compactType(nextProps)); - var _oldLayout = this.state.layout; - this.setState({ layout: newLayout }); - this.onLayoutMaybeChanged(newLayout, _oldLayout); - } - }; + //设置状态码 + var UNMOUNTED = exports.UNMOUNTED = 0; + var EXITED = exports.EXITED = 1; + var ENTERING = exports.ENTERING = 2; + var ENTERED = exports.ENTERED = 3; + var EXITING = exports.EXITING = 4; + var propTypes = { /** - * Calculates a pixel value for the container. - * @return {String} Container height in pixels. + * 是否触发动画 */ - - - ReactGridLayout.prototype.containerHeight = function containerHeight() { - if (!this.props.autoSize) return; - var nbRow = (0, _utils.bottom)(this.state.layout); - var containerPaddingY = this.props.containerPadding ? this.props.containerPadding[1] : this.props.margin[1]; - return nbRow * this.props.rowHeight + (nbRow - 1) * this.props.margin[1] + containerPaddingY * 2 + "px"; - }; - - ReactGridLayout.prototype.compactType = function compactType(props) { - if (!props) props = this.props; - return props.verticalCompact === false ? null : props.compactType; - }; + "in": _propTypes2["default"].bool, /** - * When dragging starts - * @param {String} i Id of the child - * @param {Number} x X position of the move - * @param {Number} y Y position of the move - * @param {Event} e The mousedown event - * @param {Element} node The current dragging DOM element + * 不显示的时候是否移除组件 */ - - - ReactGridLayout.prototype.onDragStart = function onDragStart(i, x, y, _ref) { - var e = _ref.e, - node = _ref.node; - var layout = this.state.layout; - - var l = (0, _utils.getLayoutItem)(layout, i); - if (!l) return; - - this.setState({ - oldDragItem: (0, _utils.cloneLayoutItem)(l), - oldLayout: this.state.layout - }); - - return this.props.onDragStart(layout, l, l, null, e, node); - }; + unmountOnExit: _propTypes2["default"].bool, /** - * Each drag movement create a new dragelement and move the element to the dragged location - * @param {String} i Id of the child - * @param {Number} x X position of the move - * @param {Number} y Y position of the move - * @param {Event} e The mousedown event - * @param {Element} node The current dragging DOM element + * 如果设置为默认显示,挂载时显示动画 */ - - - ReactGridLayout.prototype.onDrag = function onDrag(i, x, y, _ref2) { - var e = _ref2.e, - node = _ref2.node; - var oldDragItem = this.state.oldDragItem; - var layout = this.state.layout; - var cols = this.props.cols; - - var l = (0, _utils.getLayoutItem)(layout, i); - if (!l) return; - - // Create placeholder (display only) - var placeholder = { - w: l.w, - h: l.h, - x: l.x, - y: l.y, - placeholder: true, - i: i - }; - - // Move the element to the dragged location. - var isUserAction = true; - layout = (0, _utils.moveElement)(layout, l, x, y, isUserAction, this.props.preventCollision, this.compactType(), cols); - - this.props.onDrag(layout, oldDragItem, l, placeholder, e, node); - - this.setState({ - layout: (0, _utils.compact)(layout, this.compactType(), cols), - activeDrag: placeholder - }); - }; + transitionAppear: _propTypes2["default"].bool, /** - * When dragging stops, figure out which position the element is closest to and update its x and y. - * @param {String} i Index of the child. - * @param {Number} x X position of the move - * @param {Number} y Y position of the move - * @param {Event} e The mousedown event - * @param {Element} node The current dragging DOM element + * 设置超时时间,防止出现问题,可设置为>=动画时间 */ + timeout: _propTypes2["default"].number, + /** + * 退出组件时添加的class + */ + exitedClassName: _propTypes2["default"].string, + /** + * 退出组件中添加的class + */ + exitingClassName: _propTypes2["default"].string, + /** + * 进入动画后添加的class + */ + enteredClassName: _propTypes2["default"].string, + /** + * 进入动画时添加的class + */ + enteringClassName: _propTypes2["default"].string, - ReactGridLayout.prototype.onDragStop = function onDragStop(i, x, y, _ref3) { - var e = _ref3.e, - node = _ref3.node; - var oldDragItem = this.state.oldDragItem; - var layout = this.state.layout; - var _props = this.props, - cols = _props.cols, - preventCollision = _props.preventCollision; + /** + * 进入动画开始时的钩子函数 + */ + onEnter: _propTypes2["default"].func, + /** + * 进入动画中的钩子函数 + */ + onEntering: _propTypes2["default"].func, + /** + * 进入动画后的钩子函数 + */ + onEntered: _propTypes2["default"].func, + /** + * 退出动画开始时的钩子函数 + */ + onExit: _propTypes2["default"].func, + /** + * 退出动画中的钩子函数 + */ + onExiting: _propTypes2["default"].func, + /** + * 退出动画后的钩子函数 + */ + onExited: _propTypes2["default"].func + }; - var l = (0, _utils.getLayoutItem)(layout, i); - if (!l) return; + function noop() {} - // Move the element here - var isUserAction = true; - layout = (0, _utils.moveElement)(layout, l, x, y, isUserAction, preventCollision, this.compactType(), cols); + var defaultProps = { + "in": false, + unmountOnExit: false, + transitionAppear: false, + timeout: 5000, + onEnter: noop, + onEntering: noop, + onEntered: noop, + onExit: noop, + onExiting: noop, + onExited: noop + }; - this.props.onDragStop(layout, oldDragItem, l, null, e, node); + /** + * 动画组件 + */ - // Set state - var newLayout = (0, _utils.compact)(layout, this.compactType(), cols); - var oldLayout = this.state.oldLayout; + var Transition = function (_Component) { + _inherits(Transition, _Component); - this.setState({ - activeDrag: null, - layout: newLayout, - oldDragItem: null, - oldLayout: null - }); + function Transition(props, context) { + _classCallCheck(this, Transition); - this.onLayoutMaybeChanged(newLayout, oldLayout); - }; + var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); - ReactGridLayout.prototype.onLayoutMaybeChanged = function onLayoutMaybeChanged(newLayout, oldLayout) { - if (!oldLayout) oldLayout = this.state.layout; - if (!(0, _lodash2.default)(oldLayout, newLayout)) { - this.props.onLayoutChange(newLayout); + var initialStatus = void 0; + if (props["in"]) { + // 在componentdidmount时开始执行动画 + initialStatus = props.transitionAppear ? EXITED : ENTERED; + } else { + initialStatus = props.unmountOnExit ? UNMOUNTED : EXITED; } - }; - - ReactGridLayout.prototype.onResizeStart = function onResizeStart(i, w, h, _ref4) { - var e = _ref4.e, - node = _ref4.node; - var layout = this.state.layout; + _this.state = { status: initialStatus }; - var l = (0, _utils.getLayoutItem)(layout, i); - if (!l) return; + _this.nextCallback = null; + return _this; + } - this.setState({ - oldResizeItem: (0, _utils.cloneLayoutItem)(l), - oldLayout: this.state.layout - }); + Transition.prototype.componentDidMount = function componentDidMount() { + if (this.props.transitionAppear && this.props["in"]) { + this.performEnter(this.props); + } + }; - this.props.onResizeStart(layout, l, l, null, e, node); + Transition.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { + if (nextProps["in"] && this.props.unmountOnExit) { + if (this.state.status === UNMOUNTED) { + // 在componentDidUpdate执行动画. + this.setState({ status: EXITED }); + } + } else { + this._needsUpdate = true; + } }; - ReactGridLayout.prototype.onResize = function onResize(i, w, h, _ref5) { - var e = _ref5.e, - node = _ref5.node; - var _state = this.state, - layout = _state.layout, - oldResizeItem = _state.oldResizeItem; - var _props2 = this.props, - cols = _props2.cols, - preventCollision = _props2.preventCollision; + Transition.prototype.componentDidUpdate = function componentDidUpdate() { + var status = this.state.status; - var l = (0, _utils.getLayoutItem)(layout, i); - if (!l) return; + if (this.props.unmountOnExit && status === EXITED) { + // 当使用unmountOnExit时,exited为exiting和unmont的过渡状态 + if (this.props["in"]) { + this.performEnter(this.props); + } else { + this.setState({ status: UNMOUNTED }); + } - // Something like quad tree should be used - // to find collisions faster - var hasCollisions = void 0; - if (preventCollision) { - var collisions = (0, _utils.getAllCollisions)(layout, _extends({}, l, { w: w, h: h })).filter(function (layoutItem) { - return layoutItem.i !== l.i; - }); - hasCollisions = collisions.length > 0; + return; + } - // If we're colliding, we need adjust the placeholder. - if (hasCollisions) { - // adjust w && h to maximum allowed space - var leastX = Infinity, - leastY = Infinity; - collisions.forEach(function (layoutItem) { - if (layoutItem.x > l.x) leastX = Math.min(leastX, layoutItem.x); - if (layoutItem.y > l.y) leastY = Math.min(leastY, layoutItem.y); - }); + // 确保只响应prop变化 + if (this._needsUpdate) { + this._needsUpdate = false; - if (Number.isFinite(leastX)) l.w = leastX - l.x; - if (Number.isFinite(leastY)) l.h = leastY - l.y; + if (this.props["in"]) { + if (status === EXITING) { + this.performEnter(this.props); + } else if (status === EXITED) { + this.performEnter(this.props); + } + // 其他,当我们已经输入或输出 + } else { + if (status === ENTERING || status === ENTERED) { + this.performExit(this.props); + } + // 我们已经输入或输出完成 } } + }; - if (!hasCollisions) { - // Set new width and height. - l.w = w; - l.h = h; - } + Transition.prototype.componentWillUnmount = function componentWillUnmount() { + this.cancelNextCallback(); + }; - // Create placeholder element (display only) - var placeholder = { - w: l.w, - h: l.h, - x: l.x, - y: l.y, - static: true, - i: i - }; + Transition.prototype.performEnter = function performEnter(props) { + var _this2 = this; - this.props.onResize(layout, oldResizeItem, l, placeholder, e, node); + this.cancelNextCallback(); + var node = _reactDom2["default"].findDOMNode(this); - // Re-compact the layout and set the drag placeholder. - this.setState({ - layout: (0, _utils.compact)(layout, this.compactType(), cols), - activeDrag: placeholder + // 这里接收新props + props.onEnter(node); + + this.safeSetState({ status: ENTERING }, function () { + _this2.props.onEntering(node); + + _this2.onTransitionEnd(node, function () { + _this2.safeSetState({ status: ENTERED }, function () { + _this2.props.onEntered(node); + }); + }); }); }; - ReactGridLayout.prototype.onResizeStop = function onResizeStop(i, w, h, _ref6) { - var e = _ref6.e, - node = _ref6.node; - var _state2 = this.state, - layout = _state2.layout, - oldResizeItem = _state2.oldResizeItem; - var cols = this.props.cols; + Transition.prototype.performExit = function performExit(props) { + var _this3 = this; - var l = (0, _utils.getLayoutItem)(layout, i); + this.cancelNextCallback(); + var node = _reactDom2["default"].findDOMNode(this); - this.props.onResizeStop(layout, oldResizeItem, l, null, e, node); + props.onExit(node); - // Set state - var newLayout = (0, _utils.compact)(layout, this.compactType(), cols); - var oldLayout = this.state.oldLayout; + this.safeSetState({ status: EXITING }, function () { + _this3.props.onExiting(node); - this.setState({ - activeDrag: null, - layout: newLayout, - oldResizeItem: null, - oldLayout: null + _this3.onTransitionEnd(node, function () { + _this3.safeSetState({ status: EXITED }, function () { + _this3.props.onExited(node); + }); + }); }); - - this.onLayoutMaybeChanged(newLayout, oldLayout); }; - /** - * Create a placeholder object. - * @return {Element} Placeholder div. - */ - - - ReactGridLayout.prototype.placeholder = function placeholder() { - var activeDrag = this.state.activeDrag; + Transition.prototype.cancelNextCallback = function cancelNextCallback() { + if (this.nextCallback !== null) { + this.nextCallback.cancel(); + this.nextCallback = null; + } + }; - if (!activeDrag) return null; - var _props3 = this.props, - width = _props3.width, - cols = _props3.cols, - margin = _props3.margin, - containerPadding = _props3.containerPadding, - rowHeight = _props3.rowHeight, - maxRows = _props3.maxRows, - useCSSTransforms = _props3.useCSSTransforms; + Transition.prototype.safeSetState = function safeSetState(nextState, callback) { + // 确保在组件销毁后挂起的setState被消除 + this.setState(nextState, this.setNextCallback(callback)); + }; - // {...this.state.activeDrag} is pretty slow, actually + Transition.prototype.setNextCallback = function setNextCallback(callback) { + var _this4 = this; - return _react2.default.createElement( - _GridItem2.default, - { - w: activeDrag.w, - h: activeDrag.h, - x: activeDrag.x, - y: activeDrag.y, - i: activeDrag.i, - className: "react-grid-placeholder", - containerWidth: width, - cols: cols, - margin: margin, - containerPadding: containerPadding || margin, - maxRows: maxRows, - rowHeight: rowHeight, - isDraggable: false, - isResizable: false, - useCSSTransforms: useCSSTransforms - }, - _react2.default.createElement("div", null) - ); - }; + var active = true; - /** - * Given a grid item, set its style attributes & surround in a . - * @param {Element} child React element. - * @return {Element} Element wrapped in draggable and properly placed. - */ + this.nextCallback = function (event) { + if (active) { + active = false; + _this4.nextCallback = null; + callback(event); + } + }; - ReactGridLayout.prototype.processGridItem = function processGridItem(child) { - if (!child || !child.key) return; - var l = (0, _utils.getLayoutItem)(this.state.layout, String(child.key)); - if (!l) return null; - var _props4 = this.props, - width = _props4.width, - cols = _props4.cols, - margin = _props4.margin, - containerPadding = _props4.containerPadding, - rowHeight = _props4.rowHeight, - maxRows = _props4.maxRows, - isDraggable = _props4.isDraggable, - isResizable = _props4.isResizable, - useCSSTransforms = _props4.useCSSTransforms, - draggableCancel = _props4.draggableCancel, - draggableHandle = _props4.draggableHandle; - var mounted = this.state.mounted; + this.nextCallback.cancel = function () { + active = false; + }; - // Parse 'static'. Any properties defined directly on the grid item will take precedence. + return this.nextCallback; + }; - var draggable = Boolean(!l.static && isDraggable && (l.isDraggable || l.isDraggable == null)); - var resizable = Boolean(!l.static && isResizable && (l.isResizable || l.isResizable == null)); + Transition.prototype.onTransitionEnd = function onTransitionEnd(node, handler) { + this.setNextCallback(handler); - return _react2.default.createElement( - _GridItem2.default, - { - containerWidth: width, - cols: cols, - margin: margin, - containerPadding: containerPadding || margin, - maxRows: maxRows, - rowHeight: rowHeight, - cancel: draggableCancel, - handle: draggableHandle, - onDragStop: this.onDragStop, - onDragStart: this.onDragStart, - onDrag: this.onDrag, - onResizeStart: this.onResizeStart, - onResize: this.onResize, - onResizeStop: this.onResizeStop, - isDraggable: draggable, - isResizable: resizable, - useCSSTransforms: useCSSTransforms && mounted, - usePercentages: !mounted, - w: l.w, - h: l.h, - x: l.x, - y: l.y, - i: l.i, - minH: l.minH, - minW: l.minW, - maxH: l.maxH, - maxW: l.maxW, - "static": l.static - }, - child - ); + if (node) { + if (transitionEndEvent == undefined) { + this.nextCallback(); + } else { + (0, _on2["default"])(node, transitionEndEvent, this.nextCallback); + } + setTimeout(this.nextCallback, this.props.timeout); + } else { + setTimeout(this.nextCallback, 0); + } }; - ReactGridLayout.prototype.render = function render() { - var _this2 = this; + Transition.prototype.render = function render() { + var status = this.state.status; + if (status === UNMOUNTED) { + return null; + } - var _props5 = this.props, - className = _props5.className, - style = _props5.style; + var _props = this.props, + children = _props.children, + className = _props.className, + childProps = _objectWithoutProperties(_props, ['children', 'className']); + Object.keys(Transition.propTypes).forEach(function (key) { + return delete childProps[key]; + }); - var mergedClassName = (0, _classnames2.default)("react-grid-layout", className); - var mergedStyle = _extends({ - height: this.containerHeight() - }, style); + var transitionClassName = void 0; + if (status === EXITED) { + transitionClassName = this.props.exitedClassName; + } else if (status === ENTERING) { + transitionClassName = this.props.enteringClassName; + } else if (status === ENTERED) { + transitionClassName = this.props.enteredClassName; + } else if (status === EXITING) { + transitionClassName = this.props.exitingClassName; + } - return _react2.default.createElement( - "div", - { className: mergedClassName, style: mergedStyle }, - _react2.default.Children.map(this.props.children, function (child) { - return _this2.processGridItem(child); - }), - this.placeholder() - ); + var child = _react2["default"].Children.only(children); + return _react2["default"].cloneElement(child, _extends({}, childProps, { + className: (0, _classnames2["default"])(child.props.className, className, transitionClassName) + })); }; - return ReactGridLayout; - }(_react2.default.Component); + return Transition; + }(_react.Component); - ReactGridLayout.displayName = "ReactGridLayout"; - ReactGridLayout.propTypes = { - // - // Basic props - // - className: _propTypes2.default.string, - style: _propTypes2.default.object, + Transition.propTypes = propTypes; - // This can be set explicitly. If it is not set, it will automatically - // be set to the container width. Note that resizes will *not* cause this to adjust. - // If you need that behavior, use WidthProvider. - width: _propTypes2.default.number, + Transition.defaultProps = defaultProps; - // If true, the container height swells and contracts to fit contents - autoSize: _propTypes2.default.bool, - // # of cols. - cols: _propTypes2.default.number, + exports["default"] = Transition; - // A selector that will not be draggable. - draggableCancel: _propTypes2.default.string, - // A selector for the draggable handler - draggableHandle: _propTypes2.default.string, + /***/ }), + /* 197 */ + /***/ (function(module, exports, __webpack_require__) { - // Deprecated - verticalCompact: function verticalCompact(props) { - if (props.verticalCompact === false && process.env.NODE_ENV !== "production") { - console.warn( - // eslint-disable-line no-console - "`verticalCompact` on is deprecated and will be removed soon. " + 'Use `compactType`: "horizontal" | "vertical" | null.'); - } - }, - // Choose vertical or hotizontal compaction - compactType: _propTypes2.default.oneOf(["vertical", "horizontal"]), + "use strict"; - // layout is an array of object with the format: - // {x: Number, y: Number, w: Number, h: Number, i: String} - layout: function layout(props) { - var layout = props.layout; - // I hope you're setting the data-grid property on the grid items - if (layout === undefined) return; - (0, _utils.validateLayout)(layout, "layout"); - }, - // - // Grid Dimensions - // + Object.defineProperty(exports, "__esModule", { + value: true + }); - // Margin between items [x, y] in px - margin: _propTypes2.default.arrayOf(_propTypes2.default.number), - // Padding inside the container [x, y] in px - containerPadding: _propTypes2.default.arrayOf(_propTypes2.default.number), - // Rows have a static height, but you can change this based on breakpoints if you like - rowHeight: _propTypes2.default.number, - // Default Infinity, but you can specify a max here if you like. - // Note that this isn't fully fleshed out and won't error if you specify a layout that - // extends beyond the row capacity. It will, however, not allow users to drag/resize - // an item past the barrier. They can push items beyond the barrier, though. - // Intentionally not documented for this reason. - maxRows: _propTypes2.default.number, + var _Button = __webpack_require__(1529); - // - // Flags - // - isDraggable: _propTypes2.default.bool, - isResizable: _propTypes2.default.bool, - // If true, grid items won't change position when being dragged over. - preventCollision: _propTypes2.default.bool, - // Use CSS transforms instead of top/left - useCSSTransforms: _propTypes2.default.bool, + var _Button2 = _interopRequireDefault(_Button); - // - // Callbacks - // + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - // Callback so you can save the layout. Calls after each drag & resize stops. - onLayoutChange: _propTypes2.default.func, + exports["default"] = _Button2["default"]; + module.exports = exports['default']; - // Calls when drag starts. Callback is of the signature (layout, oldItem, newItem, placeholder, e, ?node). - // All callbacks below have the same signature. 'start' and 'stop' callbacks omit the 'placeholder'. - onDragStart: _propTypes2.default.func, - // Calls on each drag movement. - onDrag: _propTypes2.default.func, - // Calls when drag is complete. - onDragStop: _propTypes2.default.func, - //Calls when resize starts. - onResizeStart: _propTypes2.default.func, - // Calls when resize movement happens. - onResize: _propTypes2.default.func, - // Calls when resize is complete. - onResizeStop: _propTypes2.default.func, + /***/ }), + /* 198 */ + /***/ (function(module, exports, __webpack_require__) { - // - // Other validations - // + "use strict"; - // Children must not have duplicate keys. - children: function children(props, propName) { - var children = props[propName]; - // Check children keys for duplicates. Throw if found. - var keys = {}; - _react2.default.Children.forEach(children, function (child) { - if (keys[child.key]) { - throw new Error('Duplicate child key "' + child.key + '" found! This will cause problems in ReactGridLayout.'); - } - keys[child.key] = true; - }); - } - }; - ReactGridLayout.defaultProps = { - autoSize: true, - cols: 12, - className: "", - style: {}, - draggableHandle: "", - draggableCancel: "", - containerPadding: null, - rowHeight: 150, - maxRows: Infinity, // infinite vertical growth - layout: [], - margin: [10, 10], - isDraggable: true, - isResizable: true, - useCSSTransforms: true, - verticalCompact: true, - compactType: "vertical", - preventCollision: false, - onLayoutChange: _utils.noop, - onDragStart: _utils.noop, - onDrag: _utils.noop, - onDragStop: _utils.noop, - onResizeStart: _utils.noop, - onResize: _utils.noop, - onResizeStop: _utils.noop - }; + Object.defineProperty(exports, "__esModule", { + value: true + }); - var _initialiseProps = function _initialiseProps() { - this.state = { - activeDrag: null, - layout: (0, _utils.synchronizeLayoutWithChildren)(this.props.layout, this.props.children, this.props.cols, - // Legacy support for verticalCompact: false - this.compactType()), - mounted: false, - oldDragItem: null, - oldLayout: null, - oldResizeItem: null - }; - }; + var _react = __webpack_require__(0); - exports.default = ReactGridLayout; - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) + var _react2 = _interopRequireDefault(_react); - /***/ }), - /* 317 */ - /***/ (function(module, exports, __webpack_require__) { + var _propTypes = __webpack_require__(1); - "use strict"; + var _propTypes2 = _interopRequireDefault(_propTypes); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - exports.__esModule = true; - exports.default = void 0; + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - var _react = _interopRequireDefault(__webpack_require__(0)); + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - var _propTypes = _interopRequireDefault(__webpack_require__(1)); + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - var _reactDraggable = __webpack_require__(1129); + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** + * This source code is quoted from rc-select. + * homepage: https://github.com/react-component/select + */ - var _utils = __webpack_require__(1133); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + var Option = function (_React$Component) { + _inherits(Option, _React$Component); - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + function Option() { + _classCallCheck(this, Option); - function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); + } - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + return Option; + }(_react2["default"].Component); - function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } + Option.propTypes = { + value: _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].number]) + }; + Option.isSelectOption = true; + exports["default"] = Option; + module.exports = exports['default']; - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + /***/ }), + /* 199 */ + /***/ (function(module, exports, __webpack_require__) { - function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } + "use strict"; - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - var Resizable = - /*#__PURE__*/ - function (_React$Component) { - _inheritsLoose(Resizable, _React$Component); + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.UNSELECTABLE_ATTRIBUTE = exports.UNSELECTABLE_STYLE = undefined; - function Resizable() { - var _this; + var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } + exports.toTitle = toTitle; + exports.getValuePropValue = getValuePropValue; + exports.getPropValue = getPropValue; + exports.isMultiple = isMultiple; + exports.isCombobox = isCombobox; + exports.isMultipleOrTags = isMultipleOrTags; + exports.isMultipleOrTagsOrCombobox = isMultipleOrTagsOrCombobox; + exports.isSingleMode = isSingleMode; + exports.toArray = toArray; + exports.getMapKey = getMapKey; + exports.preventDefaultEvent = preventDefaultEvent; + exports.findIndexInValueBySingleValue = findIndexInValueBySingleValue; + exports.getLabelFromPropsValue = getLabelFromPropsValue; + exports.getSelectKeys = getSelectKeys; + exports.findFirstMenuItem = findFirstMenuItem; + exports.includesSeparators = includesSeparators; + exports.splitBySeparators = splitBySeparators; + exports.defaultFilterFn = defaultFilterFn; + exports.validateOptionValue = validateOptionValue; + exports.saveRef = saveRef; - _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this; + var _react = __webpack_require__(0); - _defineProperty(_assertThisInitialized(_this), "state", { - slackW: 0, - slackH: 0 - }); + var _react2 = _interopRequireDefault(_react); - return _this; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + + function toTitle(title) { + if (typeof title === 'string') { + return title; } + return null; + } - var _proto = Resizable.prototype; + function getValuePropValue(child) { + if (!child) { + return null; + } - _proto.lockAspectRatio = function lockAspectRatio(width, height, aspectRatio) { - height = width / aspectRatio; - width = height * aspectRatio; - return [width, height]; - } // If you do this, be careful of constraints - ; + var props = child.props; + if ('value' in props) { + return props.value; + } + if (child.key) { + return child.key; + } + if (child.type && child.type.isSelectOptGroup && props.label) { + return props.label; + } + throw new Error('Need at least a key or a value or a label (only for OptGroup) for ' + child); + } - _proto.runConstraints = function runConstraints(width, height) { - var _ref = [this.props.minConstraints, this.props.maxConstraints], - min = _ref[0], - max = _ref[1]; - if (!min && !max) return [width, height]; // Fit width & height to aspect ratio + function getPropValue(child, prop) { + if (prop === 'value') { + return getValuePropValue(child); + } + return child.props[prop]; + } - if (this.props.lockAspectRatio) { - if (height === this.props.height) { - var ratio = this.props.width / this.props.height; - height = width / ratio; - width = height * ratio; - } else { - // Take into account vertical resize with N/S handles on locked aspect - // ratio. Calculate the change height-first, instead of width-first - var _ratio = this.props.height / this.props.width; + function isMultiple(props) { + return props.multiple; + } - width = height / _ratio; - height = width * _ratio; - } - } + function isCombobox(props) { + return props.combobox; + } - var oldW = width, - oldH = height; // Add slack to the values used to calculate bound position. This will ensure that if - // we start removing slack, the element won't react to it right away until it's been - // completely removed. + function isMultipleOrTags(props) { + return props.multiple || props.tags; + } - var _this$state = this.state, - slackW = _this$state.slackW, - slackH = _this$state.slackH; - width += slackW; - height += slackH; + function isMultipleOrTagsOrCombobox(props) { + return isMultipleOrTags(props) || isCombobox(props); + } - if (min) { - width = Math.max(min[0], width); - height = Math.max(min[1], height); - } + function isSingleMode(props) { + return !isMultipleOrTagsOrCombobox(props); + } - if (max) { - width = Math.min(max[0], width); - height = Math.min(max[1], height); - } // If the numbers changed, we must have introduced some slack. Record it for the next iteration. + function toArray(value) { + var ret = value; + if (value === undefined) { + ret = []; + } else if (!Array.isArray(value)) { + ret = [value]; + } + return ret; + } + function getMapKey(value) { + return (typeof value === 'undefined' ? 'undefined' : _typeof(value)) + '-' + value; + } - slackW += oldW - width; - slackH += oldH - height; + function preventDefaultEvent(e) { + e.preventDefault(); + } - if (slackW !== this.state.slackW || slackH !== this.state.slackH) { - this.setState({ - slackW: slackW, - slackH: slackH - }); + function findIndexInValueBySingleValue(value, singleValue) { + var index = -1; + for (var i = 0; i < value.length; i++) { + if (value[i] === singleValue) { + index = i; + break; } + } + return index; + } - return [width, height]; + function getLabelFromPropsValue(value, key) { + var label = void 0; + value = toArray(value); + for (var i = 0; i < value.length; i++) { + if (value[i].key === key) { + label = value[i].label; + break; + } } - /** - * Wrapper around drag events to provide more useful data. - * - * @param {String} handlerName Handler name to wrap. - * @return {Function} Handler function. - */ - ; + return label; + } - _proto.resizeHandler = function resizeHandler(handlerName, axis) { - var _this2 = this; + function getSelectKeys(menuItems, value) { + if (value === null || value === undefined) { + return []; + } + var selectedKeys = []; + _react2["default"].Children.forEach(menuItems, function (item) { + if (item.type.isMenuItemGroup) { + selectedKeys = selectedKeys.concat(getSelectKeys(item.props.children, value)); + } else { + var itemValue = getValuePropValue(item); + var itemKey = item.key; + if (findIndexInValueBySingleValue(value, itemValue) !== -1 && itemKey) { + selectedKeys.push(itemKey); + } + } + }); + return selectedKeys; + } - return function (e, _ref2) { - var node = _ref2.node, - deltaX = _ref2.deltaX, - deltaY = _ref2.deltaY; - deltaX /= _this2.props.transformScale; - deltaY /= _this2.props.transformScale; // Axis restrictions + var UNSELECTABLE_STYLE = exports.UNSELECTABLE_STYLE = { + userSelect: 'none', + WebkitUserSelect: 'none' + }; - var canDragX = (_this2.props.axis === 'both' || _this2.props.axis === 'x') && ['n', 's'].indexOf(axis) === -1; - var canDragY = (_this2.props.axis === 'both' || _this2.props.axis === 'y') && ['e', 'w'].indexOf(axis) === -1; // reverse delta if using top or left drag handles + var UNSELECTABLE_ATTRIBUTE = exports.UNSELECTABLE_ATTRIBUTE = { + unselectable: 'on' + }; - if (canDragX && axis[axis.length - 1] === 'w') { - deltaX = -deltaX; + function findFirstMenuItem(children) { + for (var i = 0; i < children.length; i++) { + var child = children[i]; + if (child.type.isMenuItemGroup) { + var found = findFirstMenuItem(child.props.children); + if (found) { + return found; } + } else if (!child.props.disabled) { + return child; + } + } + return null; + } - if (canDragY && axis[0] === 'n') { - deltaY = -deltaY; - } // Update w/h - + function includesSeparators(string, separators) { + for (var i = 0; i < separators.length; ++i) { + if (string.lastIndexOf(separators[i]) > 0) { + return true; + } + } + return false; + } - var width = _this2.props.width + (canDragX ? deltaX : 0); - var height = _this2.props.height + (canDragY ? deltaY : 0); // Early return if no change + function splitBySeparators(string, separators) { + var reg = new RegExp('[' + separators.join() + ']'); + return string.split(reg).filter(function (token) { + return token; + }); + } - var widthChanged = width !== _this2.props.width, - heightChanged = height !== _this2.props.height; - if (handlerName === 'onResize' && !widthChanged && !heightChanged) return; + function defaultFilterFn(input, child) { + if (child.props.disabled) { + return false; + } + var value = toArray(getPropValue(child, this.props.optionFilterProp)).join(''); + return value.toLowerCase().indexOf(input.toLowerCase()) > -1; + } - var _this2$runConstraints = _this2.runConstraints(width, height); + function validateOptionValue(value, props) { + if (isSingleMode(props) || isMultiple(props)) { + return; + } + if (typeof value !== 'string') { + throw new Error('Invalid `value` of type `' + (typeof value === 'undefined' ? 'undefined' : _typeof(value)) + '` supplied to Option, ' + 'expected `string` when `tags/combobox` is `true`.'); + } + } - width = _this2$runConstraints[0]; - height = _this2$runConstraints[1]; - // Set the appropriate state for this handler. - var newState = {}; + function saveRef(instance, name) { + return function (node) { + instance[name] = node; + }; + } - if (handlerName === 'onResizeStart') {// nothing - } else if (handlerName === 'onResizeStop') { - newState.slackW = newState.slackH = 0; - } else { - // Early return if no change after constraints - if (width === _this2.props.width && height === _this2.props.height) return; - } + /***/ }), + /* 200 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { - var hasCb = typeof _this2.props[handlerName] === 'function'; + "use strict"; + /* harmony export (immutable) */ __webpack_exports__["p"] = warnOnlyTreeNode; + /* harmony export (immutable) */ __webpack_exports__["b"] = arrDel; + /* harmony export (immutable) */ __webpack_exports__["a"] = arrAdd; + /* harmony export (immutable) */ __webpack_exports__["o"] = posToArr; + /* harmony export (immutable) */ __webpack_exports__["l"] = getPosition; + /* unused harmony export isTreeNode */ + /* harmony export (immutable) */ __webpack_exports__["k"] = getNodeChildren; + /* unused harmony export isCheckDisabled */ + /* unused harmony export traverseTreeNodes */ + /* harmony export (immutable) */ __webpack_exports__["m"] = mapChildren; + /* harmony export (immutable) */ __webpack_exports__["j"] = getDragNodesKeys; + /* harmony export (immutable) */ __webpack_exports__["c"] = calcDropPosition; + /* harmony export (immutable) */ __webpack_exports__["d"] = calcSelectedKeys; + /* harmony export (immutable) */ __webpack_exports__["g"] = convertDataToTree; + /* harmony export (immutable) */ __webpack_exports__["h"] = convertTreeToEntities; + /* harmony export (immutable) */ __webpack_exports__["n"] = parseCheckedKeys; + /* harmony export (immutable) */ __webpack_exports__["e"] = conductCheck; + /* harmony export (immutable) */ __webpack_exports__["f"] = conductExpandParent; + /* harmony export (immutable) */ __webpack_exports__["i"] = getDataAndAria; + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_rc_util_es_Children_toArray__ = __webpack_require__(119); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_warning__ = __webpack_require__(517); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_warning___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_warning__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__TreeNode__ = __webpack_require__(518); + function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - if (hasCb) { - // $FlowIgnore isn't refining this correctly to SyntheticEvent - if (typeof e.persist === 'function') e.persist(); + function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - _this2.setState(newState, function () { - return _this2.props[handlerName](e, { - node: node, - size: { - width: width, - height: height - }, - handle: axis - }); - }); - } else { - _this2.setState(newState); - } - }; - }; + function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } - _proto.renderResizeHandle = function renderResizeHandle(resizeHandle) { - var handle = this.props.handle; - if (handle) { - if (typeof handle === 'function') { - return handle(resizeHandle); - } - return handle; - } - return _react.default.createElement("span", { - className: "react-resizable-handle react-resizable-handle-" + resizeHandle - }); - }; - _proto.render = function render() { - var _this3 = this; + var DRAG_SIDE_RANGE = 0.25; + var DRAG_MIN_GAP = 2; + var onlyTreeNodeWarned = false; + function warnOnlyTreeNode() { + if (onlyTreeNodeWarned) return; + onlyTreeNodeWarned = true; + __WEBPACK_IMPORTED_MODULE_2_warning___default()(false, 'Tree only accept TreeNode as children.'); + } + function arrDel(list, value) { + var clone = list.slice(); + var index = clone.indexOf(value); - // eslint-disable-next-line no-unused-vars - var _this$props = this.props, - children = _this$props.children, - draggableOpts = _this$props.draggableOpts, - width = _this$props.width, - height = _this$props.height, - handleSize = _this$props.handleSize, - lockAspectRatio = _this$props.lockAspectRatio, - axis = _this$props.axis, - minConstraints = _this$props.minConstraints, - maxConstraints = _this$props.maxConstraints, - onResize = _this$props.onResize, - onResizeStop = _this$props.onResizeStop, - onResizeStart = _this$props.onResizeStart, - resizeHandles = _this$props.resizeHandles, - transformScale = _this$props.transformScale, - p = _objectWithoutPropertiesLoose(_this$props, ["children", "draggableOpts", "width", "height", "handleSize", "lockAspectRatio", "axis", "minConstraints", "maxConstraints", "onResize", "onResizeStop", "onResizeStart", "resizeHandles", "transformScale"]); + if (index >= 0) { + clone.splice(index, 1); + } - var className = p.className ? p.className + " react-resizable" : 'react-resizable'; // What we're doing here is getting the child of this element, and cloning it with this element's props. - // We are then defining its children as: - // Its original children (resizable's child's children), and - // One or more draggable handles. + return clone; + } + function arrAdd(list, value) { + var clone = list.slice(); - return (0, _utils.cloneElement)(children, _objectSpread({}, p, { - className: className, - children: [children.props.children, resizeHandles.map(function (h) { - return _react.default.createElement(_reactDraggable.DraggableCore, _extends({}, draggableOpts, { - key: "resizableHandle-" + h, - onStop: _this3.resizeHandler('onResizeStop', h), - onStart: _this3.resizeHandler('onResizeStart', h), - onDrag: _this3.resizeHandler('onResize', h) - }), _this3.renderResizeHandle(h)); - })] - })); - }; + if (clone.indexOf(value) === -1) { + clone.push(value); + } - return Resizable; - }(_react.default.Component); + return clone; + } + function posToArr(pos) { + return pos.split('-'); + } + function getPosition(level, index) { + return "".concat(level, "-").concat(index); + } + function isTreeNode(node) { + return node && node.type && node.type.isTreeNode; + } + function getNodeChildren(children) { + return Object(__WEBPACK_IMPORTED_MODULE_1_rc_util_es_Children_toArray__["a" /* default */])(children).filter(isTreeNode); + } + function isCheckDisabled(node) { + var _ref = node.props || {}, + disabled = _ref.disabled, + disableCheckbox = _ref.disableCheckbox, + checkable = _ref.checkable; - exports.default = Resizable; + return !!(disabled || disableCheckbox) || checkable === false; + } + function traverseTreeNodes(treeNodes, callback) { + function processNode(node, index, parent) { + var children = node ? node.props.children : treeNodes; + var pos = node ? getPosition(parent.pos, index) : 0; // Filter children - _defineProperty(Resizable, "propTypes", { - // - // Required Props - // - // Require that one and only one child be present. - children: _propTypes.default.element.isRequired, - // Initial w/h - width: _propTypes.default.number.isRequired, - height: _propTypes.default.number.isRequired, - // - // Optional props - // - // Custom resize handle - handle: _propTypes.default.element, - // If you change this, be sure to update your css - handleSize: _propTypes.default.array, - // Defines which resize handles should be rendered (default: 'se') - // Allows for any combination of: - // 's' - South handle (bottom-center) - // 'w' - West handle (left-center) - // 'e' - East handle (right-center) - // 'n' - North handle (top-center) - // 'sw' - Southwest handle (bottom-left) - // 'nw' - Northwest handle (top-left) - // 'se' - Southeast handle (bottom-right) - // 'ne' - Northeast handle (top-center) - resizeHandles: _propTypes.default.arrayOf(_propTypes.default.oneOf(['s', 'w', 'e', 'n', 'sw', 'nw', 'se', 'ne'])), - transformScale: _propTypes.default.number, - // If true, will only allow width/height to move in lockstep - lockAspectRatio: _propTypes.default.bool, - // Restricts resizing to a particular axis (default: 'both') - // 'both' - allows resizing by width or height - // 'x' - only allows the width to be changed - // 'y' - only allows the height to be changed - // 'none' - disables resizing altogether - axis: _propTypes.default.oneOf(['both', 'x', 'y', 'none']), - // Min/max size - minConstraints: _propTypes.default.arrayOf(_propTypes.default.number), - maxConstraints: _propTypes.default.arrayOf(_propTypes.default.number), - // Callbacks - onResizeStop: _propTypes.default.func, - onResizeStart: _propTypes.default.func, - onResize: _propTypes.default.func, - // These will be passed wholesale to react-draggable's DraggableCore - draggableOpts: _propTypes.default.object - }); + var childList = getNodeChildren(children); // Process node if is not root - _defineProperty(Resizable, "defaultProps", { - handleSize: [20, 20], - lockAspectRatio: false, - axis: 'both', - minConstraints: [20, 20], - maxConstraints: [Infinity, Infinity], - resizeHandles: ['se'], - transformScale: 1 - }); + if (node) { + var data = { + node: node, + index: index, + pos: pos, + key: node.key || pos, + parentPos: parent.node ? parent.pos : null + }; + callback(data); + } // Process children node - /***/ }), - /* 318 */ - /***/ (function(module, exports, __webpack_require__) { - "use strict"; + __WEBPACK_IMPORTED_MODULE_0_react__["Children"].forEach(childList, function (subNode, subIndex) { + processNode(subNode, subIndex, { + node: node, + pos: pos + }); + }); + } + processNode(null); + } + /** + * Use `rc-util` `toArray` to get the children list which keeps the key. + * And return single node if children is only one(This can avoid `key` missing check). + */ - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.getBoundPosition = getBoundPosition; - exports.snapToGrid = snapToGrid; - exports.canDragX = canDragX; - exports.canDragY = canDragY; - exports.getControlPosition = getControlPosition; - exports.createCoreData = createCoreData; - exports.createDraggableData = createDraggableData; + function mapChildren(children, func) { + var list = Object(__WEBPACK_IMPORTED_MODULE_1_rc_util_es_Children_toArray__["a" /* default */])(children).map(func); - var _shims = __webpack_require__(108); + if (list.length === 1) { + return list[0]; + } - var _domFns = __webpack_require__(176); + return list; + } + function getDragNodesKeys(treeNodes, node) { + var _node$props = node.props, + eventKey = _node$props.eventKey, + pos = _node$props.pos; + var dragNodesKeys = []; + traverseTreeNodes(treeNodes, function (_ref2) { + var key = _ref2.key; + dragNodesKeys.push(key); + }); + dragNodesKeys.push(eventKey || pos); + return dragNodesKeys; + } // Only used when drag, not affect SSR. - function getBoundPosition(draggable - /*: Draggable*/ - , x - /*: number*/ - , y - /*: number*/ - ) - /*: [number, number]*/ - { - // If no bounds, short-circuit and move on - if (!draggable.props.bounds) return [x, y]; // Clone new bounds + function calcDropPosition(event, treeNode) { + var clientY = event.clientY; - var bounds = draggable.props.bounds; - bounds = typeof bounds === 'string' ? bounds : cloneBounds(bounds); - var node = findDOMNode(draggable); + var _treeNode$selectHandl = treeNode.selectHandle.getBoundingClientRect(), + top = _treeNode$selectHandl.top, + bottom = _treeNode$selectHandl.bottom, + height = _treeNode$selectHandl.height; - if (typeof bounds === 'string') { - var ownerDocument = node.ownerDocument; - var ownerWindow = ownerDocument.defaultView; - var boundNode; + var des = Math.max(height * DRAG_SIDE_RANGE, DRAG_MIN_GAP); - if (bounds === 'parent') { - boundNode = node.parentNode; - } else { - boundNode = ownerDocument.querySelector(bounds); - } + if (clientY <= top + des) { + return -1; + } - if (!(boundNode instanceof ownerWindow.HTMLElement)) { - throw new Error('Bounds selector "' + bounds + '" could not find an element.'); - } + if (clientY >= bottom - des) { + return 1; + } - var nodeStyle = ownerWindow.getComputedStyle(node); - var boundNodeStyle = ownerWindow.getComputedStyle(boundNode); // Compute bounds. This is a pain with padding and offsets but this gets it exactly right. + return 0; + } + /** + * Return selectedKeys according with multiple prop + * @param selectedKeys + * @param props + * @returns [string] + */ - bounds = { - left: -node.offsetLeft + (0, _shims.int)(boundNodeStyle.paddingLeft) + (0, _shims.int)(nodeStyle.marginLeft), - top: -node.offsetTop + (0, _shims.int)(boundNodeStyle.paddingTop) + (0, _shims.int)(nodeStyle.marginTop), - right: (0, _domFns.innerWidth)(boundNode) - (0, _domFns.outerWidth)(node) - node.offsetLeft + (0, _shims.int)(boundNodeStyle.paddingRight) - (0, _shims.int)(nodeStyle.marginRight), - bottom: (0, _domFns.innerHeight)(boundNode) - (0, _domFns.outerHeight)(node) - node.offsetTop + (0, _shims.int)(boundNodeStyle.paddingBottom) - (0, _shims.int)(nodeStyle.marginBottom) - }; - } // Keep x and y below right and bottom limits... + function calcSelectedKeys(selectedKeys, props) { + if (!selectedKeys) return undefined; + var multiple = props.multiple; + if (multiple) { + return selectedKeys.slice(); + } - if ((0, _shims.isNum)(bounds.right)) x = Math.min(x, bounds.right); - if ((0, _shims.isNum)(bounds.bottom)) y = Math.min(y, bounds.bottom); // But above left and top limits. + if (selectedKeys.length) { + return [selectedKeys[0]]; + } - if ((0, _shims.isNum)(bounds.left)) x = Math.max(x, bounds.left); - if ((0, _shims.isNum)(bounds.top)) y = Math.max(y, bounds.top); - return [x, y]; + return selectedKeys; } + /** + * Since React internal will convert key to string, + * we need do this to avoid `checkStrictly` use number match + */ - function snapToGrid(grid - /*: [number, number]*/ - , pendingX - /*: number*/ - , pendingY - /*: number*/ - ) - /*: [number, number]*/ - { - var x = Math.round(pendingX / grid[0]) * grid[0]; - var y = Math.round(pendingY / grid[1]) * grid[1]; - return [x, y]; + function keyListToString(keyList) { + if (!keyList) return keyList; + return keyList.map(function (key) { + return String(key); + }); } - function canDragX(draggable - /*: Draggable*/ - ) - /*: boolean*/ - { - return draggable.props.axis === 'both' || draggable.props.axis === 'x'; - } + var internalProcessProps = function internalProcessProps(props) { + return props; + }; - function canDragY(draggable - /*: Draggable*/ - ) - /*: boolean*/ - { - return draggable.props.axis === 'both' || draggable.props.axis === 'y'; - } // Get {x, y} positions from event. + function convertDataToTree(treeData, processor) { + if (!treeData) return []; + var _ref3 = processor || {}, + _ref3$processProps = _ref3.processProps, + processProps = _ref3$processProps === void 0 ? internalProcessProps : _ref3$processProps; - function getControlPosition(e - /*: MouseTouchEvent*/ - , touchIdentifier - /*: ?number*/ - , draggableCore - /*: DraggableCore*/ - ) - /*: ?ControlPosition*/ - { - var touchObj = typeof touchIdentifier === 'number' ? (0, _domFns.getTouch)(e, touchIdentifier) : null; - if (typeof touchIdentifier === 'number' && !touchObj) return null; // not the right touch + var list = Array.isArray(treeData) ? treeData : [treeData]; + return list.map(function (_ref4) { + var children = _ref4.children, + props = _objectWithoutProperties(_ref4, ["children"]); - var node = findDOMNode(draggableCore); // User can provide an offsetParent if desired. + var childrenNodes = convertDataToTree(children, processor); + return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__TreeNode__["a" /* default */], Object.assign({}, processProps(props)), childrenNodes); + }); + } + /** + * Calculate treeNodes entities. `processTreeEntity` is used for `rc-tree-select` + * @param treeNodes + * @param processTreeEntity User can customize the entity + */ - var offsetParent = draggableCore.props.offsetParent || node.offsetParent || node.ownerDocument.body; - return (0, _domFns.offsetXYFromParent)(touchObj || e, offsetParent, draggableCore.props.scale); - } // Create an data object exposed by 's events + function convertTreeToEntities(treeNodes) { + var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + initWrapper = _ref5.initWrapper, + processEntity = _ref5.processEntity, + onProcessFinished = _ref5.onProcessFinished; + var posEntities = {}; + var keyEntities = {}; + var wrapper = { + posEntities: posEntities, + keyEntities: keyEntities + }; - function createCoreData(draggable - /*: DraggableCore*/ - , x - /*: number*/ - , y - /*: number*/ - ) - /*: DraggableData*/ - { - var state = draggable.state; - var isStart = !(0, _shims.isNum)(state.lastX); - var node = findDOMNode(draggable); + if (initWrapper) { + wrapper = initWrapper(wrapper) || wrapper; + } - if (isStart) { - // If this is our first move, use the x and y as last coords. - return { - node: node, - deltaX: 0, - deltaY: 0, - lastX: x, - lastY: y, - x: x, - y: y - }; - } else { - // Otherwise calculate proper values. - return { + traverseTreeNodes(treeNodes, function (item) { + var node = item.node, + index = item.index, + pos = item.pos, + key = item.key, + parentPos = item.parentPos; + var entity = { node: node, - deltaX: x - state.lastX, - deltaY: y - state.lastY, - lastX: state.lastX, - lastY: state.lastY, - x: x, - y: y + index: index, + key: key, + pos: pos }; - } - } // Create an data exposed by 's events - - - function createDraggableData(draggable - /*: Draggable*/ - , coreData - /*: DraggableData*/ - ) - /*: DraggableData*/ - { - var scale = draggable.props.scale; - return { - node: coreData.node, - x: draggable.state.x + coreData.deltaX / scale, - y: draggable.state.y + coreData.deltaY / scale, - deltaX: coreData.deltaX / scale, - deltaY: coreData.deltaY / scale, - lastX: draggable.state.x, - lastY: draggable.state.y - }; - } // A lot faster than stringify/parse - + posEntities[pos] = entity; + keyEntities[key] = entity; // Fill children - function cloneBounds(bounds - /*: Bounds*/ - ) - /*: Bounds*/ - { - return { - left: bounds.left, - top: bounds.top, - right: bounds.right, - bottom: bounds.bottom - }; - } + entity.parent = posEntities[parentPos]; - function findDOMNode(draggable - /*: Draggable | DraggableCore*/ - ) - /*: HTMLElement*/ - { - var node = draggable.findDOMNode(); + if (entity.parent) { + entity.parent.children = entity.parent.children || []; + entity.parent.children.push(entity); + } - if (!node) { - throw new Error(': Unmounted during event!'); - } // $FlowIgnore we can't assert on HTMLElement due to tests... FIXME + if (processEntity) { + processEntity(entity, wrapper); + } + }); + if (onProcessFinished) { + onProcessFinished(wrapper); + } - return node; + return wrapper; } + /** + * Parse `checkedKeys` to { checkedKeys, halfCheckedKeys } style + */ - /***/ }), - /* 319 */ - /***/ (function(module, exports, __webpack_require__) { - - "use strict"; + function parseCheckedKeys(keys) { + if (!keys) { + return null; + } // Convert keys to object format - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = log; + var keyProps; - /*eslint no-console:0*/ - function log() { - var _console; + if (Array.isArray(keys)) { + // [Legacy] Follow the api doc + keyProps = { + checkedKeys: keys, + halfCheckedKeys: undefined + }; + } else if (_typeof(keys) === 'object') { + keyProps = { + checkedKeys: keys.checked || undefined, + halfCheckedKeys: keys.halfChecked || undefined + }; + } else { + __WEBPACK_IMPORTED_MODULE_2_warning___default()(false, '`checkedKeys` is not an array or an object'); + return null; + } - if (undefined) (_console = console).log.apply(_console, arguments); + keyProps.checkedKeys = keyListToString(keyProps.checkedKeys); + keyProps.halfCheckedKeys = keyListToString(keyProps.halfCheckedKeys); + return keyProps; } + /** + * Conduct check state by the keyList. It will conduct up & from the provided key. + * If the conduct path reach the disabled or already checked / unchecked node will stop conduct. + */ - /***/ }), - /* 320 */ - /***/ (function(module, exports, __webpack_require__) { + function conductCheck( + /** list of keys */ + keyList, + /** is check the node or not */ + isCheck, + /** parsed by `convertTreeToEntities` function in Tree */ + keyEntities) { + var checkStatus = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; + var checkedKeys = {}; + var halfCheckedKeys = {}; // Record the key has some child checked (include child half checked) - "use strict"; + (checkStatus.checkedKeys || []).forEach(function (key) { + checkedKeys[key] = true; + }); + (checkStatus.halfCheckedKeys || []).forEach(function (key) { + halfCheckedKeys[key] = true; + }); // Conduct up + function conductUp(key) { + if (checkedKeys[key] === isCheck) return; + var entity = keyEntities[key]; + if (!entity) return; + var children = entity.children, + parent = entity.parent, + node = entity.node; + if (isCheckDisabled(node)) return; // Check child node checked status - exports.__esModule = true; - exports.getBreakpointFromWidth = getBreakpointFromWidth; - exports.getColsFromBreakpoint = getColsFromBreakpoint; - exports.findOrGenerateResponsiveLayout = findOrGenerateResponsiveLayout; - exports.sortBreakpoints = sortBreakpoints; + var everyChildChecked = true; + var someChildChecked = false; // Child checked or half checked - var _utils = __webpack_require__(75); + (children || []).filter(function (child) { + return !isCheckDisabled(child.node); + }).forEach(function (_ref6) { + var childKey = _ref6.key; + var childChecked = checkedKeys[childKey]; + var childHalfChecked = halfCheckedKeys[childKey]; + if (childChecked || childHalfChecked) someChildChecked = true; + if (!childChecked) everyChildChecked = false; + }); // Update checked status - /** - * Given a width, find the highest breakpoint that matches is valid for it (width > breakpoint). - * - * @param {Object} breakpoints Breakpoints object (e.g. {lg: 1200, md: 960, ...}) - * @param {Number} width Screen width. - * @return {String} Highest breakpoint that is less than width. - */ - function getBreakpointFromWidth(breakpoints, width) { - var sorted = sortBreakpoints(breakpoints); - var matching = sorted[0]; - for (var i = 1, len = sorted.length; i < len; i++) { - var breakpointName = sorted[i]; - if (width > breakpoints[breakpointName]) matching = breakpointName; - } - return matching; - } + if (isCheck) { + checkedKeys[key] = everyChildChecked; + } else { + checkedKeys[key] = false; + } - /** - * Given a breakpoint, get the # of cols set for it. - * @param {String} breakpoint Breakpoint name. - * @param {Object} cols Map of breakpoints to cols. - * @return {Number} Number of cols. - */ + halfCheckedKeys[key] = someChildChecked; + if (parent) { + conductUp(parent.key); + } + } // Conduct down - function getColsFromBreakpoint(breakpoint, cols) { - if (!cols[breakpoint]) { - throw new Error("ResponsiveReactGridLayout: `cols` entry for breakpoint " + breakpoint + " is missing!"); - } - return cols[breakpoint]; - } - /** - * Given existing layouts and a new breakpoint, find or generate a new layout. - * - * This finds the layout above the new one and generates from it, if it exists. - * - * @param {Object} layouts Existing layouts. - * @param {Array} breakpoints All breakpoints. - * @param {String} breakpoint New breakpoint. - * @param {String} breakpoint Last breakpoint (for fallback). - * @param {Number} cols Column count at new breakpoint. - * @param {Boolean} verticalCompact Whether or not to compact the layout - * vertically. - * @return {Array} New layout. - */ - function findOrGenerateResponsiveLayout(layouts, breakpoints, breakpoint, lastBreakpoint, cols, compactType) { - // If it already exists, just return it. - if (layouts[breakpoint]) return (0, _utils.cloneLayout)(layouts[breakpoint]); - // Find or generate the next layout - var layout = layouts[lastBreakpoint]; - var breakpointsSorted = sortBreakpoints(breakpoints); - var breakpointsAbove = breakpointsSorted.slice(breakpointsSorted.indexOf(breakpoint)); - for (var i = 0, len = breakpointsAbove.length; i < len; i++) { - var b = breakpointsAbove[i]; - if (layouts[b]) { - layout = layouts[b]; - break; - } + function conductDown(key) { + if (checkedKeys[key] === isCheck) return; + var entity = keyEntities[key]; + if (!entity) return; + var children = entity.children, + node = entity.node; + if (isCheckDisabled(node)) return; + checkedKeys[key] = isCheck; + (children || []).forEach(function (child) { + conductDown(child.key); + }); } - layout = (0, _utils.cloneLayout)(layout || []); // clone layout so we don't modify existing items - return (0, _utils.compact)((0, _utils.correctBounds)(layout, { cols: cols }), compactType, cols); - } - - /** - * Given breakpoints, return an array of breakpoints sorted by width. This is usually - * e.g. ['xxs', 'xs', 'sm', ...] - * - * @param {Object} breakpoints Key/value pair of breakpoint names to widths. - * @return {Array} Sorted breakpoints. - */ - function sortBreakpoints(breakpoints) { - var keys = Object.keys(breakpoints); - return keys.sort(function (a, b) { - return breakpoints[a] - breakpoints[b]; - }); - } - /***/ }), - /* 321 */ - /***/ (function(module, exports, __webpack_require__) { + function conduct(key) { + var entity = keyEntities[key]; - "use strict"; + if (!entity) { + __WEBPACK_IMPORTED_MODULE_2_warning___default()(false, "'".concat(key, "' does not exist in the tree.")); + return; + } + var children = entity.children, + parent = entity.parent, + node = entity.node; + checkedKeys[key] = isCheck; + if (isCheckDisabled(node)) return; // Conduct down - Object.defineProperty(exports, "__esModule", { - value: true - }); + (children || []).filter(function (child) { + return !isCheckDisabled(child.node); + }).forEach(function (child) { + conductDown(child.key); + }); // Conduct up - var _Button = __webpack_require__(1141); + if (parent) { + conductUp(parent.key); + } + } - var _Button2 = _interopRequireDefault(_Button); + (keyList || []).forEach(function (key) { + conduct(key); + }); + var checkedKeyList = []; + var halfCheckedKeyList = []; // Fill checked list - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + Object.keys(checkedKeys).forEach(function (key) { + if (checkedKeys[key]) { + checkedKeyList.push(key); + } + }); // Fill half checked list - exports["default"] = _Button2["default"]; - module.exports = exports['default']; + Object.keys(halfCheckedKeys).forEach(function (key) { + if (!checkedKeys[key] && halfCheckedKeys[key]) { + halfCheckedKeyList.push(key); + } + }); + return { + checkedKeys: checkedKeyList, + halfCheckedKeys: halfCheckedKeyList + }; + } + /** + * If user use `autoExpandParent` we should get the list of parent node + * @param keyList + * @param keyEntities + */ - /***/ }), - /* 322 */ - /***/ (function(module, exports, __webpack_require__) { + function conductExpandParent(keyList, keyEntities) { + var expandedKeys = {}; - "use strict"; + function conductUp(key) { + if (expandedKeys[key]) return; + var entity = keyEntities[key]; + if (!entity) return; + expandedKeys[key] = true; + var parent = entity.parent, + node = entity.node; + if (node.props && node.props.disabled) return; + if (parent) { + conductUp(parent.key); + } + } - exports.__esModule = true; + (keyList || []).forEach(function (key) { + conductUp(key); + }); + return Object.keys(expandedKeys); + } /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util + * Returns only the data- and aria- key/value pairs */ - function createChainedFunction() { - for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) { - funcs[_key] = arguments[_key]; - } - return funcs.filter(function (f) { - return f != null; - }).reduce(function (acc, f) { - if (typeof f !== 'function') { - throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.'); + function getDataAndAria(props) { + return Object.keys(props).reduce(function (prev, key) { + if (key.substr(0, 5) === 'data-' || key.substr(0, 5) === 'aria-') { + prev[key] = props[key]; } - if (acc === null) { - return f; - } + return prev; + }, {}); + } - return function chainedFunction() { - for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - args[_key2] = arguments[_key2]; - } + /***/ }), + /* 201 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { - acc.apply(this, args); - f.apply(this, args); - }; - }, null); - } - exports.default = createChainedFunction; + "use strict"; + /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return SHOW_ALL; }); + /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return SHOW_PARENT; }); + /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return SHOW_CHILD; }); + var SHOW_ALL = 'SHOW_ALL'; + var SHOW_PARENT = 'SHOW_PARENT'; + var SHOW_CHILD = 'SHOW_CHILD'; /***/ }), - /* 323 */ - /***/ (function(module, exports, __webpack_require__) { + /* 202 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; + /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return selectorPropTypes; }); + /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return selectorContextTypes; }); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames__ = __webpack_require__(2); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_classnames__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_lifecycles_compat__ = __webpack_require__(12); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util__ = __webpack_require__(34); + function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - exports.__esModule = true; - exports.default = addEventListenerWrap; + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - var _addDomEventListener = __webpack_require__(12); + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener); + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - var _reactDom = __webpack_require__(3); + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - var _reactDom2 = _interopRequireDefault(_reactDom); + function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util + * Input Box is in different position for different mode. + * This not the same design as `Select` cause it's followed by antd 0.x `Select`. + * We will not follow the new design immediately since antd 3.x is already released. + * + * So this file named as Selector to avoid confuse. */ - function addEventListenerWrap(target, eventType, cb) { - /* eslint camelcase: 2 */ - var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) { - _reactDom2.default.unstable_batchedUpdates(cb, e); - } : cb; - return (0, _addDomEventListener2.default)(target, eventType, callback); - } - /***/ }), - /* 324 */ - /***/ (function(module, exports, __webpack_require__) { - "use strict"; - Object.defineProperty(exports, "__esModule", { - value: true - }); - var util = { - isAppearSupported: function isAppearSupported(props) { - return props.transitionName && props.transitionAppear || props.animation.appear; - }, - isEnterSupported: function isEnterSupported(props) { - return props.transitionName && props.transitionEnter || props.animation.enter; - }, - isLeaveSupported: function isLeaveSupported(props) { - return props.transitionName && props.transitionLeave || props.animation.leave; - }, - allowAppearCallback: function allowAppearCallback(props) { - return props.transitionAppear || props.animation.appear; - }, - allowEnterCallback: function allowEnterCallback(props) { - return props.transitionEnter || props.animation.enter; - }, - allowLeaveCallback: function allowLeaveCallback(props) { - return props.transitionLeave || props.animation.leave; - } + + var selectorPropTypes = { + prefixCls: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, + className: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, + style: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object, + open: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, + selectorValueList: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.array, + allowClear: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, + showArrow: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, + onClick: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func, + onBlur: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func, + onFocus: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func, + removeSelected: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func, + // Pass by component + ariaId: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, + inputIcon: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func]), + clearIcon: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func]) }; - exports["default"] = util; - module.exports = exports["default"]; + var selectorContextTypes = { + onSelectorFocus: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired, + onSelectorBlur: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired, + onSelectorKeyDown: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired, + onSelectorClear: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired + }; + /* harmony default export */ __webpack_exports__["a"] = (function (modeName) { + var BaseSelector = + /*#__PURE__*/ + function (_React$Component) { + _inherits(BaseSelector, _React$Component); - /***/ }), - /* 325 */ - /***/ (function(module, exports, __webpack_require__) { + function BaseSelector() { + var _this; - "use strict"; + _classCallCheck(this, BaseSelector); + _this = _possibleConstructorReturn(this, _getPrototypeOf(BaseSelector).call(this)); - exports.__esModule = true; - exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined; + _defineProperty(_assertThisInitialized(_this), "onFocus", function () { + var _this$props = _this.props, + onFocus = _this$props.onFocus, + focused = _this$props.focused; + var onSelectorFocus = _this.context.rcTreeSelect.onSelectorFocus; - var _all2 = __webpack_require__(1176); + if (!focused) { + onSelectorFocus(); + } - var _all3 = _interopRequireDefault(_all2); + if (onFocus) { + onFocus.apply(void 0, arguments); + } + }); - var _componentOrElement2 = __webpack_require__(1177); + _defineProperty(_assertThisInitialized(_this), "onBlur", function () { + var onBlur = _this.props.onBlur; + var onSelectorBlur = _this.context.rcTreeSelect.onSelectorBlur; // TODO: Not trigger when is inner component get focused - var _componentOrElement3 = _interopRequireDefault(_componentOrElement2); + onSelectorBlur(); - var _deprecated2 = __webpack_require__(1178); + if (onBlur) { + onBlur.apply(void 0, arguments); + } + }); - var _deprecated3 = _interopRequireDefault(_deprecated2); + _defineProperty(_assertThisInitialized(_this), "focus", function () { + _this.domRef.current.focus(); + }); - var _elementType2 = __webpack_require__(1179); + _defineProperty(_assertThisInitialized(_this), "blur", function () { + _this.domRef.current.focus(); + }); - var _elementType3 = _interopRequireDefault(_elementType2); + _this.domRef = Object(__WEBPACK_IMPORTED_MODULE_4__util__["g" /* createRef */])(); + return _this; + } - var _isRequiredForA11y2 = __webpack_require__(1180); + _createClass(BaseSelector, [{ + key: "renderClear", + value: function renderClear() { + var _this$props2 = this.props, + prefixCls = _this$props2.prefixCls, + allowClear = _this$props2.allowClear, + selectorValueList = _this$props2.selectorValueList, + clearIcon = _this$props2.clearIcon; + var onSelectorClear = this.context.rcTreeSelect.onSelectorClear; - var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2); + if (!allowClear || !selectorValueList.length || !selectorValueList[0].value) { + return null; + } - var _splitComponent2 = __webpack_require__(326); + return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("span", { + key: "clear", + className: "".concat(prefixCls, "-selection__clear"), + onClick: onSelectorClear + }, typeof clearIcon === 'function' ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(clearIcon, _objectSpread({}, this.props)) : clearIcon); + } + }, { + key: "renderArrow", + value: function renderArrow() { + var _this$props3 = this.props, + prefixCls = _this$props3.prefixCls, + showArrow = _this$props3.showArrow, + inputIcon = _this$props3.inputIcon; - var _splitComponent3 = _interopRequireDefault(_splitComponent2); + if (!showArrow) { + return null; + } - var _createChainedFunction2 = __webpack_require__(327); + return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("span", { + key: "arrow", + className: "".concat(prefixCls, "-arrow"), + style: { + outline: 'none' + } + }, typeof inputIcon === 'function' ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(inputIcon, _objectSpread({}, this.props)) : inputIcon); + } + }, { + key: "render", + value: function render() { + var _classNames; - var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2); + var _this$props4 = this.props, + prefixCls = _this$props4.prefixCls, + className = _this$props4.className, + style = _this$props4.style, + open = _this$props4.open, + focused = _this$props4.focused, + disabled = _this$props4.disabled, + allowClear = _this$props4.allowClear, + onClick = _this$props4.onClick, + ariaId = _this$props4.ariaId, + renderSelection = _this$props4.renderSelection, + renderPlaceholder = _this$props4.renderPlaceholder, + tabIndex = _this$props4.tabIndex; + var onSelectorKeyDown = this.context.rcTreeSelect.onSelectorKeyDown; + var myTabIndex = tabIndex; - var _keyCode = __webpack_require__(1181); + if (disabled) { + myTabIndex = null; + } - var _keyCode2 = _interopRequireDefault(_keyCode); + return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("span", { + style: style, + onClick: onClick, + className: __WEBPACK_IMPORTED_MODULE_2_classnames___default()(className, prefixCls, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-open"), open), _defineProperty(_classNames, "".concat(prefixCls, "-focused"), open || focused), _defineProperty(_classNames, "".concat(prefixCls, "-disabled"), disabled), _defineProperty(_classNames, "".concat(prefixCls, "-enabled"), !disabled), _defineProperty(_classNames, "".concat(prefixCls, "-allow-clear"), allowClear), _classNames)), + ref: this.domRef, + role: "combobox", + "aria-expanded": open, + "aria-owns": open ? ariaId : undefined, + "aria-controls": open ? ariaId : undefined, + "aria-haspopup": "listbox", + "aria-disabled": disabled, + tabIndex: myTabIndex, + onFocus: this.onFocus, + onBlur: this.onBlur, + onKeyDown: onSelectorKeyDown + }, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("span", { + key: "selection", + className: __WEBPACK_IMPORTED_MODULE_2_classnames___default()("".concat(prefixCls, "-selection"), "".concat(prefixCls, "-selection--").concat(modeName)) + }, renderSelection(), this.renderClear(), this.renderArrow(), renderPlaceholder && renderPlaceholder())); + } + }]); - var _contains2 = __webpack_require__(1182); + return BaseSelector; + }(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component); - var _contains3 = _interopRequireDefault(_contains2); + _defineProperty(BaseSelector, "propTypes", _objectSpread({}, selectorPropTypes, { + // Pass by HOC + renderSelection: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired, + renderPlaceholder: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func, + tabIndex: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number + })); - var _addEventListener2 = __webpack_require__(328); + _defineProperty(BaseSelector, "contextTypes", { + rcTreeSelect: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.shape(_objectSpread({}, selectorContextTypes)) + }); - var _addEventListener3 = _interopRequireDefault(_addEventListener2); + _defineProperty(BaseSelector, "defaultProps", { + tabIndex: 0 + }); - var _cssAnimation2 = __webpack_require__(1183); + Object(__WEBPACK_IMPORTED_MODULE_3_react_lifecycles_compat__["polyfill"])(BaseSelector); + return BaseSelector; + }); - var _cssAnimation3 = _interopRequireDefault(_cssAnimation2); + /***/ }), + /* 203 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { - var _toArray2 = __webpack_require__(1185); + "use strict"; + /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return popupContextTypes; }); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_lifecycles_compat__ = __webpack_require__(12); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rc_tree__ = __webpack_require__(522); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util__ = __webpack_require__(34); + function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - var _toArray3 = _interopRequireDefault(_toArray2); + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - var _Align2 = __webpack_require__(1186); + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - var _Align3 = _interopRequireDefault(_Align2); + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - exports.all = _all3.default; - exports.componentOrElement = _componentOrElement3.default; - exports.deprecated = _deprecated3.default; - exports.elementType = _elementType3.default; - exports.isRequiredForA11y = _isRequiredForA11y3.default; - exports.splitComponent = _splitComponent3.default; - exports.createChainedFunction = _createChainedFunction3.default; - exports.KeyCode = _keyCode2.default; - exports.contains = _contains3.default; - exports.addEventListener = _addEventListener3.default; - exports.cssAnimation = _cssAnimation3.default; - exports.toArray = _toArray3.default; - //export getContainerRenderMixin from './getContainerRenderMixin'; + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - exports.Align = _Align3.default; + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - /***/ }), - /* 326 */ - /***/ (function(module, exports, __webpack_require__) { + function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } - "use strict"; + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } - exports.__esModule = true; - exports.default = splitComponentProps; - /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ - function _objectEntries(obj) { - var entries = []; - var keys = Object.keys(obj); + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - for (var k = 0; k < keys.length; ++k) { - entries.push([keys[k], obj[keys[k]]]); - }return entries; - } + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - /** - * 分割要传入父元素和子元素的props - * @param {[object]} props 传入的属性 - * @param {[reactElement]} Component 组件 - * @return {[array]} 返回数组,第一个元素为父元素props对象,第二个子元素props对象 - */ - function splitComponentProps(props, Component) { - var componentPropTypes = Component.propTypes; - var parentProps = {}; - var childProps = {}; - _objectEntries(props).forEach(function (_ref) { - var propName = _ref[0], - propValue = _ref[1]; - if (componentPropTypes[propName]) { - parentProps[propName] = propValue; - } else { - childProps[propName] = propValue; - } - }); - return [parentProps, childProps]; - } - /***/ }), - /* 327 */ - /***/ (function(module, exports, __webpack_require__) { + var popupContextTypes = { + onPopupKeyDown: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired, + onTreeNodeSelect: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired, + onTreeNodeCheck: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired + }; - "use strict"; + var BasePopup = + /*#__PURE__*/ + function (_React$Component) { + _inherits(BasePopup, _React$Component); + function BasePopup(props) { + var _this; - exports.__esModule = true; - /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ - function createChainedFunction() { - for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) { - funcs[_key] = arguments[_key]; - } + _classCallCheck(this, BasePopup); - return funcs.filter(function (f) { - return f != null; - }).reduce(function (acc, f) { - if (typeof f !== 'function') { - throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.'); - } + _this = _possibleConstructorReturn(this, _getPrototypeOf(BasePopup).call(this)); - if (acc === null) { - return f; - } + _defineProperty(_assertThisInitialized(_this), "onTreeExpand", function (expandedKeyList) { + var _this$props = _this.props, + treeExpandedKeys = _this$props.treeExpandedKeys, + onTreeExpand = _this$props.onTreeExpand, + onTreeExpanded = _this$props.onTreeExpanded; // Set uncontrolled state - return function chainedFunction() { - for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - args[_key2] = arguments[_key2]; + if (!treeExpandedKeys) { + _this.setState({ + expandedKeyList: expandedKeyList + }, onTreeExpanded); } - acc.apply(this, args); - f.apply(this, args); - }; - }, null); - } - exports.default = createChainedFunction; + if (onTreeExpand) { + onTreeExpand(expandedKeyList); + } + }); - /***/ }), - /* 328 */ - /***/ (function(module, exports, __webpack_require__) { + _defineProperty(_assertThisInitialized(_this), "onLoad", function (loadedKeys) { + _this.setState({ + loadedKeys: loadedKeys + }); + }); - "use strict"; + _defineProperty(_assertThisInitialized(_this), "getTree", function () { + return _this.treeRef.current; + }); + _defineProperty(_assertThisInitialized(_this), "getLoadData", function () { + var _this$props2 = _this.props, + loadData = _this$props2.loadData, + upperSearchValue = _this$props2.upperSearchValue; + if (upperSearchValue) return null; + return loadData; + }); - exports.__esModule = true; - exports.default = addEventListenerWrap; + _defineProperty(_assertThisInitialized(_this), "filterTreeNode", function (treeNode) { + var _this$props3 = _this.props, + upperSearchValue = _this$props3.upperSearchValue, + treeNodeFilterProp = _this$props3.treeNodeFilterProp; + var filterVal = treeNode.props[treeNodeFilterProp]; - var _addDomEventListener = __webpack_require__(12); + if (typeof filterVal === 'string') { + return upperSearchValue && filterVal.toUpperCase().indexOf(upperSearchValue) !== -1; + } - var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener); + return false; + }); - var _reactDom = __webpack_require__(3); + _defineProperty(_assertThisInitialized(_this), "renderNotFound", function () { + var _this$props4 = _this.props, + prefixCls = _this$props4.prefixCls, + notFoundContent = _this$props4.notFoundContent; + return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("span", { + className: "".concat(prefixCls, "-not-found") + }, notFoundContent); + }); - var _reactDom2 = _interopRequireDefault(_reactDom); + var treeDefaultExpandAll = props.treeDefaultExpandAll, + treeDefaultExpandedKeys = props.treeDefaultExpandedKeys, + keyEntities = props.keyEntities; // TODO: make `expandedKeyList` control - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + var _expandedKeyList = treeDefaultExpandedKeys; - /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ - function addEventListenerWrap(target, eventType, cb) { - /* eslint camelcase: 2 */ - var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) { - _reactDom2.default.unstable_batchedUpdates(cb, e); - } : cb; - return (0, _addDomEventListener2.default)(target, eventType, callback); - } + if (treeDefaultExpandAll) { + _expandedKeyList = Object.keys(keyEntities); + } - /***/ }), - /* 329 */ - /***/ (function(module, exports, __webpack_require__) { + _this.state = { + keyList: [], + expandedKeyList: _expandedKeyList, + // Cache `expandedKeyList` when tree is in filter. This is used in `getDerivedStateFromProps` + cachedExpandedKeyList: [], + // eslint-disable-line react/no-unused-state + loadedKeys: [] + }; + _this.treeRef = Object(__WEBPACK_IMPORTED_MODULE_4__util__["g" /* createRef */])(); + return _this; + } - "use strict"; + _createClass(BasePopup, [{ + key: "render", + value: function render() { + var _this$state = this.state, + keyList = _this$state.keyList, + expandedKeyList = _this$state.expandedKeyList, + loadedKeys = _this$state.loadedKeys; + var _this$props5 = this.props, + prefixCls = _this$props5.prefixCls, + treeNodes = _this$props5.treeNodes, + filteredTreeNodes = _this$props5.filteredTreeNodes, + treeIcon = _this$props5.treeIcon, + treeLine = _this$props5.treeLine, + treeCheckable = _this$props5.treeCheckable, + treeCheckStrictly = _this$props5.treeCheckStrictly, + multiple = _this$props5.multiple, + ariaId = _this$props5.ariaId, + renderSearch = _this$props5.renderSearch, + switcherIcon = _this$props5.switcherIcon, + searchHalfCheckedKeys = _this$props5.searchHalfCheckedKeys; + var _this$context$rcTreeS = this.context.rcTreeSelect, + onPopupKeyDown = _this$context$rcTreeS.onPopupKeyDown, + onTreeNodeSelect = _this$context$rcTreeS.onTreeNodeSelect, + onTreeNodeCheck = _this$context$rcTreeS.onTreeNodeCheck; + var loadData = this.getLoadData(); + var treeProps = {}; + if (treeCheckable) { + treeProps.checkedKeys = keyList; + } else { + treeProps.selectedKeys = keyList; + } - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports["default"] = getContainer; + var $notFound; + var $treeNodes; - var _reactDom = __webpack_require__(3); + if (filteredTreeNodes) { + if (filteredTreeNodes.length) { + treeProps.checkStrictly = true; + $treeNodes = filteredTreeNodes; // Fill halfCheckedKeys - var _reactDom2 = _interopRequireDefault(_reactDom); + if (treeCheckable && !treeCheckStrictly) { + treeProps.checkedKeys = { + checked: keyList, + halfChecked: searchHalfCheckedKeys + }; + } + } else { + $notFound = this.renderNotFound(); + } + } else if (!treeNodes || !treeNodes.length) { + $notFound = this.renderNotFound(); + } else { + $treeNodes = treeNodes; + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var $tree; - /** - * 获取容器组件 - * @param {[type]} container [description] - * @param {[type]} defaultContainer [description] - * @return {[type]} [description] - */ - function getContainer(container, defaultContainer) { - container = typeof container === 'function' ? container() : container; - return _reactDom2["default"].findDOMNode(container) || defaultContainer; - } - module.exports = exports['default']; + if ($notFound) { + $tree = $notFound; + } else { + $tree = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3_rc_tree__["b" /* default */], _extends({ + ref: this.treeRef, + prefixCls: "".concat(prefixCls, "-tree"), + showIcon: treeIcon, + showLine: treeLine, + selectable: !treeCheckable, + checkable: treeCheckable, + checkStrictly: treeCheckStrictly, + multiple: multiple, + loadData: loadData, + loadedKeys: loadedKeys, + expandedKeys: expandedKeyList, + filterTreeNode: this.filterTreeNode, + onSelect: onTreeNodeSelect, + onCheck: onTreeNodeCheck, + onExpand: this.onTreeExpand, + onLoad: this.onLoad, + switcherIcon: switcherIcon + }, treeProps), $treeNodes); + } - /***/ }), - /* 330 */ - /***/ (function(module, exports, __webpack_require__) { + return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", { + role: "listbox", + id: ariaId, + onKeyDown: onPopupKeyDown, + tabIndex: -1 + }, renderSearch ? renderSearch() : null, $tree); + } + }], [{ + key: "getDerivedStateFromProps", + value: function getDerivedStateFromProps(nextProps, prevState) { + var _ref = prevState || {}, + _ref$prevProps = _ref.prevProps, + prevProps = _ref$prevProps === void 0 ? {} : _ref$prevProps, + loadedKeys = _ref.loadedKeys, + expandedKeyList = _ref.expandedKeyList, + cachedExpandedKeyList = _ref.cachedExpandedKeyList; - "use strict"; + var valueList = nextProps.valueList, + valueEntities = nextProps.valueEntities, + keyEntities = nextProps.keyEntities, + treeExpandedKeys = nextProps.treeExpandedKeys, + filteredTreeNodes = nextProps.filteredTreeNodes, + upperSearchValue = nextProps.upperSearchValue; + var newState = { + prevProps: nextProps + }; // Check value update + if (valueList !== prevProps.valueList) { + newState.keyList = valueList.map(function (_ref2) { + var value = _ref2.value; + return valueEntities[value]; + }).filter(function (entity) { + return entity; + }).map(function (_ref3) { + var key = _ref3.key; + return key; + }); + } // Show all when tree is in filter mode - exports.__esModule = true; - exports.default = addEventListenerWrap; - var _addDomEventListener = __webpack_require__(12); + if (!treeExpandedKeys && filteredTreeNodes && filteredTreeNodes.length && filteredTreeNodes !== prevProps.filteredTreeNodes) { + newState.expandedKeyList = Object.keys(keyEntities); + } // Cache `expandedKeyList` when filter set - var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener); - var _reactDom = __webpack_require__(3); + if (upperSearchValue && !prevProps.upperSearchValue) { + newState.cachedExpandedKeyList = expandedKeyList; + } else if (!upperSearchValue && prevProps.upperSearchValue && !treeExpandedKeys) { + newState.expandedKeyList = cachedExpandedKeyList || []; + newState.cachedExpandedKeyList = []; + } // Use expandedKeys if provided - var _reactDom2 = _interopRequireDefault(_reactDom); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + if (prevProps.treeExpandedKeys !== treeExpandedKeys) { + newState.expandedKeyList = treeExpandedKeys; + } // Clean loadedKeys if key not exist in keyEntities anymore - /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ - function addEventListenerWrap(target, eventType, cb) { - /* eslint camelcase: 2 */ - var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) { - _reactDom2.default.unstable_batchedUpdates(cb, e); - } : cb; - return (0, _addDomEventListener2.default)(target, eventType, callback); - } - /***/ }), - /* 331 */ - /***/ (function(module, exports, __webpack_require__) { + if (nextProps.loadData) { + newState.loadedKeys = loadedKeys.filter(function (key) { + return key in keyEntities; + }); + } - (function (global, factory) { - true ? module.exports = factory() : - typeof define === 'function' && define.amd ? define(factory) : - (global.arrayTreeFilter = factory()); - }(this, (function () { 'use strict'; + return newState; + } + }]); - function arrayTreeFilter(data, filterFn, options) { - options = options || {}; - options.childrenKeyName = options.childrenKeyName || "children"; - var children = data || []; - var result = []; - var level = 0; - do { - var foundItem = children.filter(function (item) { - return filterFn(item, level); - })[0]; - if (!foundItem) { - break; - } - result.push(foundItem); - children = foundItem[options.childrenKeyName] || []; - level += 1; - } while (children.length > 0); - return result; - } + return BasePopup; + }(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component); - return arrayTreeFilter; + _defineProperty(BasePopup, "propTypes", { + prefixCls: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, + upperSearchValue: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, + valueList: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.array, + searchHalfCheckedKeys: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.array, + valueEntities: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object, + keyEntities: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object, + treeIcon: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, + treeLine: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, + treeNodeFilterProp: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, + treeCheckable: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node]), + treeCheckStrictly: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, + treeDefaultExpandAll: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, + treeDefaultExpandedKeys: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.array, + treeExpandedKeys: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.array, + loadData: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func, + multiple: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, + onTreeExpand: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func, + treeNodes: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node, + filteredTreeNodes: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node, + notFoundContent: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node, + ariaId: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, + switcherIcon: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func]), + // HOC + renderSearch: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func, + onTreeExpanded: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func + }); - }))); + _defineProperty(BasePopup, "contextTypes", { + rcTreeSelect: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.shape(_objectSpread({}, popupContextTypes)) + }); + Object(__WEBPACK_IMPORTED_MODULE_2_react_lifecycles_compat__["polyfill"])(BasePopup); + /* harmony default export */ __webpack_exports__["a"] = (BasePopup); /***/ }), - /* 332 */ + /* 204 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -140244,18 +130160,28 @@ Object.defineProperty(exports, "__esModule", { value: true }); + exports.Con = exports.Row = exports.Col = undefined; - var _Icon = __webpack_require__(1244); + var _Col2 = __webpack_require__(1607); - var _Icon2 = _interopRequireDefault(_Icon); + var _Col3 = _interopRequireDefault(_Col2); + + var _Row2 = __webpack_require__(1608); + + var _Row3 = _interopRequireDefault(_Row2); + + var _Layout = __webpack_require__(1609); + + var _Layout2 = _interopRequireDefault(_Layout); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - exports["default"] = _Icon2["default"]; - module.exports = exports['default']; + exports.Col = _Col3["default"]; + exports.Row = _Row3["default"]; + exports.Con = _Layout2["default"]; /***/ }), - /* 333 */ + /* 205 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -140265,14821 +130191,7805 @@ value: true }); - var _Calendar = __webpack_require__(1270); + var _Button = __webpack_require__(529); - var _Calendar2 = _interopRequireDefault(_Calendar); + var _Button2 = _interopRequireDefault(_Button); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - exports["default"] = _Calendar2["default"]; + exports["default"] = _Button2["default"]; module.exports = exports['default']; /***/ }), - /* 334 */ - /***/ (function(module, exports, __webpack_require__) { + /* 206 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; + /* harmony export (immutable) */ __webpack_exports__["a"] = _classCallCheck; + function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } + } + /***/ }), + /* 207 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _react = __webpack_require__(0); - - var _react2 = _interopRequireDefault(_react); - - var _DateTHead = __webpack_require__(1271); - - var _DateTHead2 = _interopRequireDefault(_DateTHead); - - var _DateTBody = __webpack_require__(1273); + "use strict"; + /* harmony export (immutable) */ __webpack_exports__["a"] = _createClass; + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } + } - var _DateTBody2 = _interopRequireDefault(_DateTBody); + function _createClass(Constructor, protoProps, staticProps) { + if (protoProps) _defineProperties(Constructor.prototype, protoProps); + if (staticProps) _defineProperties(Constructor, staticProps); + return Constructor; + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + /***/ }), + /* 208 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + "use strict"; + /* harmony export (immutable) */ __webpack_exports__["a"] = _inherits; + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__setPrototypeOf__ = __webpack_require__(553); - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + function _inherits(subClass, superClass) { + if (typeof superClass !== "function" && superClass !== null) { + throw new TypeError("Super expression must either be null or a function"); + } - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { + value: subClass, + writable: true, + configurable: true + } + }); + if (superClass) Object(__WEBPACK_IMPORTED_MODULE_0__setPrototypeOf__["a" /* default */])(subClass, superClass); + } - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + /***/ }), + /* 209 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { - var DateTable = function (_React$Component) { - _inherits(DateTable, _React$Component); + "use strict"; + /* harmony export (immutable) */ __webpack_exports__["a"] = _possibleConstructorReturn; + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__helpers_esm_typeof__ = __webpack_require__(554); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__assertThisInitialized__ = __webpack_require__(555); - function DateTable() { - _classCallCheck(this, DateTable); - return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); + function _possibleConstructorReturn(self, call) { + if (call && (Object(__WEBPACK_IMPORTED_MODULE_0__helpers_esm_typeof__["a" /* default */])(call) === "object" || typeof call === "function")) { + return call; } - DateTable.prototype.render = function render() { - var props = this.props; - var prefixCls = props.prefixCls; - return _react2["default"].createElement( - 'table', - { className: prefixCls + '-table', cellSpacing: '0', role: 'grid' }, - _react2["default"].createElement(_DateTHead2["default"], props), - _react2["default"].createElement(_DateTBody2["default"], props) - ); - }; - - return DateTable; - }(_react2["default"].Component); - - exports["default"] = DateTable; - module.exports = exports['default']; + return Object(__WEBPACK_IMPORTED_MODULE_1__assertThisInitialized__["a" /* default */])(self); + } /***/ }), - /* 335 */ - /***/ (function(module, exports, __webpack_require__) { + /* 210 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; - - - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports["default"] = { - DATE_ROW_COUNT: 6, - DATE_COL_COUNT: 7 - }; - module.exports = exports["default"]; + /* harmony export (immutable) */ __webpack_exports__["a"] = _getPrototypeOf; + function _getPrototypeOf(o) { + _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }; + return _getPrototypeOf(o); + } /***/ }), - /* 336 */ - /***/ (function(module, exports, __webpack_require__) { + /* 211 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { - //! moment.js locale configuration - //! locale : Afrikaans [af] - //! author : Werner Mollentze : https://github.com/wernerm + "use strict"; + Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__createForm__ = __webpack_require__(584); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__createFormField__ = __webpack_require__(229); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__propTypes__ = __webpack_require__(680); + /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "createFormField", function() { return __WEBPACK_IMPORTED_MODULE_1__createFormField__["a"]; }); + /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "formShape", function() { return __WEBPACK_IMPORTED_MODULE_2__propTypes__["a"]; }); + /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "createForm", function() { return __WEBPACK_IMPORTED_MODULE_0__createForm__["a"]; }); + // export this package's api - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration - var af = moment.defineLocale('af', { - months: 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'), - weekdays: 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split( - '_' - ), - weekdaysShort: 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'), - weekdaysMin: 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'), - meridiemParse: /vm|nm/i, - isPM: function (input) { - return /^nm$/i.test(input); - }, - meridiem: function (hours, minutes, isLower) { - if (hours < 12) { - return isLower ? 'vm' : 'VM'; - } else { - return isLower ? 'nm' : 'NM'; - } - }, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Vandag om] LT', - nextDay: '[Môre om] LT', - nextWeek: 'dddd [om] LT', - lastDay: '[Gister om] LT', - lastWeek: '[Laas] dddd [om] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'oor %s', - past: '%s gelede', - s: "'n paar sekondes", - ss: '%d sekondes', - m: "'n minuut", - mm: '%d minute', - h: "'n uur", - hh: '%d ure', - d: "'n dag", - dd: '%d dae', - M: "'n maand", - MM: '%d maande', - y: "'n jaar", - yy: '%d jaar', - }, - dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, - ordinal: function (number) { - return ( - number + - (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de') - ); // Thanks to Joris Röling : https://github.com/jjupiter - }, - week: { - dow: 1, // Maandag is die eerste dag van die week. - doy: 4, // Die week wat die 4de Januarie bevat is die eerste week van die jaar. - }, - }); - return af; - }))); + /***/ }), + /* 212 */ + /***/ (function(module, exports, __webpack_require__) { + + module.exports = { "default": __webpack_require__(586), __esModule: true }; /***/ }), - /* 337 */ + /* 213 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Arabic [ar] - //! author : Abdel Said: https://github.com/abdelsaid - //! author : Ahmed Elkhatib - //! author : forabi https://github.com/forabi + module.exports = !__webpack_require__(41) && !__webpack_require__(53)(function () { + return Object.defineProperty(__webpack_require__(214)('div'), 'a', { get: function () { return 7; } }).a != 7; + }); - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration + /***/ }), + /* 214 */ + /***/ (function(module, exports, __webpack_require__) { - var symbolMap = { - '1': '١', - '2': '٢', - '3': '٣', - '4': '٤', - '5': '٥', - '6': '٦', - '7': '٧', - '8': '٨', - '9': '٩', - '0': '٠', - }, - numberMap = { - '١': '1', - '٢': '2', - '٣': '3', - '٤': '4', - '٥': '5', - '٦': '6', - '٧': '7', - '٨': '8', - '٩': '9', - '٠': '0', - }, - pluralForm = function (n) { - return n === 0 - ? 0 - : n === 1 - ? 1 - : n === 2 - ? 2 - : n % 100 >= 3 && n % 100 <= 10 - ? 3 - : n % 100 >= 11 - ? 4 - : 5; - }, - plurals = { - s: [ - 'أقل من ثانية', - 'ثانية واحدة', - ['ثانيتان', 'ثانيتين'], - '%d ثوان', - '%d ثانية', - '%d ثانية', - ], - m: [ - 'أقل من دقيقة', - 'دقيقة واحدة', - ['دقيقتان', 'دقيقتين'], - '%d دقائق', - '%d دقيقة', - '%d دقيقة', - ], - h: [ - 'أقل من ساعة', - 'ساعة واحدة', - ['ساعتان', 'ساعتين'], - '%d ساعات', - '%d ساعة', - '%d ساعة', - ], - d: [ - 'أقل من يوم', - 'يوم واحد', - ['يومان', 'يومين'], - '%d أيام', - '%d يومًا', - '%d يوم', - ], - M: [ - 'أقل من شهر', - 'شهر واحد', - ['شهران', 'شهرين'], - '%d أشهر', - '%d شهرا', - '%d شهر', - ], - y: [ - 'أقل من عام', - 'عام واحد', - ['عامان', 'عامين'], - '%d أعوام', - '%d عامًا', - '%d عام', - ], - }, - pluralize = function (u) { - return function (number, withoutSuffix, string, isFuture) { - var f = pluralForm(number), - str = plurals[u][pluralForm(number)]; - if (f === 2) { - str = str[withoutSuffix ? 0 : 1]; - } - return str.replace(/%d/i, number); - }; - }, - months = [ - 'يناير', - 'فبراير', - 'مارس', - 'أبريل', - 'مايو', - 'يونيو', - 'يوليو', - 'أغسطس', - 'سبتمبر', - 'أكتوبر', - 'نوفمبر', - 'ديسمبر', - ]; + var isObject = __webpack_require__(52); + var document = __webpack_require__(39).document; + // typeof document.createElement is 'object' in old IE + var is = isObject(document) && isObject(document.createElement); + module.exports = function (it) { + return is ? document.createElement(it) : {}; + }; - var ar = moment.defineLocale('ar', { - months: months, - monthsShort: months, - weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'D/\u200FM/\u200FYYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - meridiemParse: /ص|م/, - isPM: function (input) { - return 'م' === input; - }, - meridiem: function (hour, minute, isLower) { - if (hour < 12) { - return 'ص'; - } else { - return 'م'; - } - }, - calendar: { - sameDay: '[اليوم عند الساعة] LT', - nextDay: '[غدًا عند الساعة] LT', - nextWeek: 'dddd [عند الساعة] LT', - lastDay: '[أمس عند الساعة] LT', - lastWeek: 'dddd [عند الساعة] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'بعد %s', - past: 'منذ %s', - s: pluralize('s'), - ss: pluralize('s'), - m: pluralize('m'), - mm: pluralize('m'), - h: pluralize('h'), - hh: pluralize('h'), - d: pluralize('d'), - dd: pluralize('d'), - M: pluralize('M'), - MM: pluralize('M'), - y: pluralize('y'), - yy: pluralize('y'), - }, - preparse: function (string) { - return string - .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) { - return numberMap[match]; - }) - .replace(/،/g, ','); - }, - postformat: function (string) { - return string - .replace(/\d/g, function (match) { - return symbolMap[match]; - }) - .replace(/,/g, '،'); - }, - week: { - dow: 6, // Saturday is the first day of the week. - doy: 12, // The week that contains Jan 12th is the first week of the year. - }, - }); - return ar; + /***/ }), + /* 215 */ + /***/ (function(module, exports, __webpack_require__) { - }))); + __webpack_require__(590); + module.exports = __webpack_require__(25).Object.assign; /***/ }), - /* 338 */ + /* 216 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Arabic (Algeria) [ar-dz] - //! author : Noureddine LOUAHEDJ : https://github.com/noureddineme - - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var has = __webpack_require__(47); + var toIObject = __webpack_require__(54); + var arrayIndexOf = __webpack_require__(592)(false); + var IE_PROTO = __webpack_require__(125)('IE_PROTO'); - //! moment.js locale configuration + module.exports = function (object, names) { + var O = toIObject(object); + var i = 0; + var result = []; + var key; + for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); + // Don't enum bug & hidden keys + while (names.length > i) if (has(O, key = names[i++])) { + ~arrayIndexOf(result, key) || result.push(key); + } + return result; + }; - var arDz = moment.defineLocale('ar-dz', { - months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( - '_' - ), - monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( - '_' - ), - weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin: 'أح_إث_ثلا_أر_خم_جم_سب'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[اليوم على الساعة] LT', - nextDay: '[غدا على الساعة] LT', - nextWeek: 'dddd [على الساعة] LT', - lastDay: '[أمس على الساعة] LT', - lastWeek: 'dddd [على الساعة] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'في %s', - past: 'منذ %s', - s: 'ثوان', - ss: '%d ثانية', - m: 'دقيقة', - mm: '%d دقائق', - h: 'ساعة', - hh: '%d ساعات', - d: 'يوم', - dd: '%d أيام', - M: 'شهر', - MM: '%d أشهر', - y: 'سنة', - yy: '%d سنوات', - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - return arDz; + /***/ }), + /* 217 */ + /***/ (function(module, exports, __webpack_require__) { - }))); + // fallback for non-array-like ES3 and non-enumerable old V8 strings + var cof = __webpack_require__(122); + // eslint-disable-next-line no-prototype-builtins + module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { + return cof(it) == 'String' ? it.split('') : Object(it); + }; /***/ }), - /* 339 */ + /* 218 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Arabic (Kuwait) [ar-kw] - //! author : Nusret Parlak: https://github.com/nusretparlak + // 7.1.15 ToLength + var toInteger = __webpack_require__(124); + var min = Math.min; + module.exports = function (it) { + return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration + /***/ }), + /* 219 */ + /***/ (function(module, exports, __webpack_require__) { - var arKw = moment.defineLocale('ar-kw', { - months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( - '_' - ), - monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( - '_' - ), - weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[اليوم على الساعة] LT', - nextDay: '[غدا على الساعة] LT', - nextWeek: 'dddd [على الساعة] LT', - lastDay: '[أمس على الساعة] LT', - lastWeek: 'dddd [على الساعة] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'في %s', - past: 'منذ %s', - s: 'ثوان', - ss: '%d ثانية', - m: 'دقيقة', - mm: '%d دقائق', - h: 'ساعة', - hh: '%d ساعات', - d: 'يوم', - dd: '%d أيام', - M: 'شهر', - MM: '%d أشهر', - y: 'سنة', - yy: '%d سنوات', - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 12, // The week that contains Jan 12th is the first week of the year. - }, - }); + "use strict"; - return arKw; + var $at = __webpack_require__(597)(true); - }))); + // 21.1.3.27 String.prototype[@@iterator]() + __webpack_require__(220)(String, 'String', function (iterated) { + this._t = String(iterated); // target + this._i = 0; // next index + // 21.1.5.2.1 %StringIteratorPrototype%.next() + }, function () { + var O = this._t; + var index = this._i; + var point; + if (index >= O.length) return { value: undefined, done: true }; + point = $at(O, index); + this._i += point.length; + return { value: point, done: false }; + }); /***/ }), - /* 340 */ + /* 220 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Arabic (Lybia) [ar-ly] - //! author : Ali Hmer: https://github.com/kikoanis + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var LIBRARY = __webpack_require__(88); + var $export = __webpack_require__(38); + var redefine = __webpack_require__(221); + var hide = __webpack_require__(50); + var Iterators = __webpack_require__(69); + var $iterCreate = __webpack_require__(598); + var setToStringTag = __webpack_require__(130); + var getPrototypeOf = __webpack_require__(601); + var ITERATOR = __webpack_require__(30)('iterator'); + var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` + var FF_ITERATOR = '@@iterator'; + var KEYS = 'keys'; + var VALUES = 'values'; - //! moment.js locale configuration + var returnThis = function () { return this; }; - var symbolMap = { - '1': '1', - '2': '2', - '3': '3', - '4': '4', - '5': '5', - '6': '6', - '7': '7', - '8': '8', - '9': '9', - '0': '0', - }, - pluralForm = function (n) { - return n === 0 - ? 0 - : n === 1 - ? 1 - : n === 2 - ? 2 - : n % 100 >= 3 && n % 100 <= 10 - ? 3 - : n % 100 >= 11 - ? 4 - : 5; - }, - plurals = { - s: [ - 'أقل من ثانية', - 'ثانية واحدة', - ['ثانيتان', 'ثانيتين'], - '%d ثوان', - '%d ثانية', - '%d ثانية', - ], - m: [ - 'أقل من دقيقة', - 'دقيقة واحدة', - ['دقيقتان', 'دقيقتين'], - '%d دقائق', - '%d دقيقة', - '%d دقيقة', - ], - h: [ - 'أقل من ساعة', - 'ساعة واحدة', - ['ساعتان', 'ساعتين'], - '%d ساعات', - '%d ساعة', - '%d ساعة', - ], - d: [ - 'أقل من يوم', - 'يوم واحد', - ['يومان', 'يومين'], - '%d أيام', - '%d يومًا', - '%d يوم', - ], - M: [ - 'أقل من شهر', - 'شهر واحد', - ['شهران', 'شهرين'], - '%d أشهر', - '%d شهرا', - '%d شهر', - ], - y: [ - 'أقل من عام', - 'عام واحد', - ['عامان', 'عامين'], - '%d أعوام', - '%d عامًا', - '%d عام', - ], - }, - pluralize = function (u) { - return function (number, withoutSuffix, string, isFuture) { - var f = pluralForm(number), - str = plurals[u][pluralForm(number)]; - if (f === 2) { - str = str[withoutSuffix ? 0 : 1]; - } - return str.replace(/%d/i, number); - }; - }, - months = [ - 'يناير', - 'فبراير', - 'مارس', - 'أبريل', - 'مايو', - 'يونيو', - 'يوليو', - 'أغسطس', - 'سبتمبر', - 'أكتوبر', - 'نوفمبر', - 'ديسمبر', - ]; + module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { + $iterCreate(Constructor, NAME, next); + var getMethod = function (kind) { + if (!BUGGY && kind in proto) return proto[kind]; + switch (kind) { + case KEYS: return function keys() { return new Constructor(this, kind); }; + case VALUES: return function values() { return new Constructor(this, kind); }; + } return function entries() { return new Constructor(this, kind); }; + }; + var TAG = NAME + ' Iterator'; + var DEF_VALUES = DEFAULT == VALUES; + var VALUES_BUG = false; + var proto = Base.prototype; + var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]; + var $default = $native || getMethod(DEFAULT); + var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined; + var $anyNative = NAME == 'Array' ? proto.entries || $native : $native; + var methods, key, IteratorPrototype; + // Fix native + if ($anyNative) { + IteratorPrototype = getPrototypeOf($anyNative.call(new Base())); + if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) { + // Set @@toStringTag to native iterators + setToStringTag(IteratorPrototype, TAG, true); + // fix for some old engines + if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis); + } + } + // fix Array#{values, @@iterator}.name in V8 / FF + if (DEF_VALUES && $native && $native.name !== VALUES) { + VALUES_BUG = true; + $default = function values() { return $native.call(this); }; + } + // Define iterator + if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) { + hide(proto, ITERATOR, $default); + } + // Plug for library + Iterators[NAME] = $default; + Iterators[TAG] = returnThis; + if (DEFAULT) { + methods = { + values: DEF_VALUES ? $default : getMethod(VALUES), + keys: IS_SET ? $default : getMethod(KEYS), + entries: $entries + }; + if (FORCED) for (key in methods) { + if (!(key in proto)) redefine(proto, key, methods[key]); + } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); + } + return methods; + }; - var arLy = moment.defineLocale('ar-ly', { - months: months, - monthsShort: months, - weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'D/\u200FM/\u200FYYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - meridiemParse: /ص|م/, - isPM: function (input) { - return 'م' === input; - }, - meridiem: function (hour, minute, isLower) { - if (hour < 12) { - return 'ص'; - } else { - return 'م'; - } - }, - calendar: { - sameDay: '[اليوم عند الساعة] LT', - nextDay: '[غدًا عند الساعة] LT', - nextWeek: 'dddd [عند الساعة] LT', - lastDay: '[أمس عند الساعة] LT', - lastWeek: 'dddd [عند الساعة] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'بعد %s', - past: 'منذ %s', - s: pluralize('s'), - ss: pluralize('s'), - m: pluralize('m'), - mm: pluralize('m'), - h: pluralize('h'), - hh: pluralize('h'), - d: pluralize('d'), - dd: pluralize('d'), - M: pluralize('M'), - MM: pluralize('M'), - y: pluralize('y'), - yy: pluralize('y'), - }, - preparse: function (string) { - return string.replace(/،/g, ','); - }, - postformat: function (string) { - return string - .replace(/\d/g, function (match) { - return symbolMap[match]; - }) - .replace(/,/g, '،'); - }, - week: { - dow: 6, // Saturday is the first day of the week. - doy: 12, // The week that contains Jan 12th is the first week of the year. - }, - }); - return arLy; + /***/ }), + /* 221 */ + /***/ (function(module, exports, __webpack_require__) { - }))); + module.exports = __webpack_require__(50); /***/ }), - /* 341 */ + /* 222 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Arabic (Morocco) [ar-ma] - //! author : ElFadili Yassine : https://github.com/ElFadiliY - //! author : Abdel Said : https://github.com/abdelsaid + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration + Object.defineProperty(exports, "__esModule", { + value: true + }); - var arMa = moment.defineLocale('ar-ma', { - months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( - '_' - ), - monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( - '_' - ), - weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[اليوم على الساعة] LT', - nextDay: '[غدا على الساعة] LT', - nextWeek: 'dddd [على الساعة] LT', - lastDay: '[أمس على الساعة] LT', - lastWeek: 'dddd [على الساعة] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'في %s', - past: 'منذ %s', - s: 'ثوان', - ss: '%d ثانية', - m: 'دقيقة', - mm: '%d دقائق', - h: 'ساعة', - hh: '%d ساعات', - d: 'يوم', - dd: '%d أيام', - M: 'شهر', - MM: '%d أشهر', - y: 'سنة', - yy: '%d سنوات', - }, - week: { - dow: 6, // Saturday is the first day of the week. - doy: 12, // The week that contains Jan 12th is the first week of the year. - }, - }); + var _util = __webpack_require__(14); - return arMa; + var util = _interopRequireWildcard(_util); - }))); + function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } + + /** + * Rule for validating required fields. + * + * @param rule The validation rule. + * @param value The value of the field on the source object. + * @param source The source object being validated. + * @param errors An array of errors that this rule may add + * validation errors to. + * @param options The validation options. + * @param options.messages The validation messages. + */ + function required(rule, value, source, errors, options, type) { + if (rule.required && (!source.hasOwnProperty(rule.field) || util.isEmptyValue(value, type || rule.type))) { + errors.push(util.format(options.messages.required, rule.fullField)); + } + } + exports['default'] = required; /***/ }), - /* 342 */ + /* 223 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Arabic (Saudi Arabia) [ar-sa] - //! author : Suhail Alkowaileet : https://github.com/xsoh + "use strict"; + /* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright (c) 2014-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration - var symbolMap = { - '1': '١', - '2': '٢', - '3': '٣', - '4': '٤', - '5': '٥', - '6': '٦', - '7': '٧', - '8': '٨', - '9': '٩', - '0': '٠', - }, - numberMap = { - '١': '1', - '٢': '2', - '٣': '3', - '٤': '4', - '٥': '5', - '٦': '6', - '٧': '7', - '٨': '8', - '٩': '9', - '٠': '0', - }; + /** + * Similar to invariant but only logs a warning if the condition is not met. + * This can be used to log issues in development environments in critical + * paths. Removing the logging code for production environments will keep the + * same logic and follow the same code paths. + */ - var arSa = moment.defineLocale('ar-sa', { - months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( - '_' - ), - monthsShort: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( - '_' - ), - weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - meridiemParse: /ص|م/, - isPM: function (input) { - return 'م' === input; - }, - meridiem: function (hour, minute, isLower) { - if (hour < 12) { - return 'ص'; - } else { - return 'م'; - } - }, - calendar: { - sameDay: '[اليوم على الساعة] LT', - nextDay: '[غدا على الساعة] LT', - nextWeek: 'dddd [على الساعة] LT', - lastDay: '[أمس على الساعة] LT', - lastWeek: 'dddd [على الساعة] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'في %s', - past: 'منذ %s', - s: 'ثوان', - ss: '%d ثانية', - m: 'دقيقة', - mm: '%d دقائق', - h: 'ساعة', - hh: '%d ساعات', - d: 'يوم', - dd: '%d أيام', - M: 'شهر', - MM: '%d أشهر', - y: 'سنة', - yy: '%d سنوات', - }, - preparse: function (string) { - return string - .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) { - return numberMap[match]; - }) - .replace(/،/g, ','); - }, - postformat: function (string) { - return string - .replace(/\d/g, function (match) { - return symbolMap[match]; - }) - .replace(/,/g, '،'); - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }, - }); + var __DEV__ = process.env.NODE_ENV !== 'production'; - return arSa; + var warning = function() {}; - }))); + if (__DEV__) { + var printWarning = function printWarning(format, args) { + var len = arguments.length; + args = new Array(len > 1 ? len - 1 : 0); + for (var key = 1; key < len; key++) { + args[key - 1] = arguments[key]; + } + var argIndex = 0; + var message = 'Warning: ' + + format.replace(/%s/g, function() { + return args[argIndex++]; + }); + if (typeof console !== 'undefined') { + console.error(message); + } + try { + // --- Welcome to debugging React --- + // This error was thrown as a convenience so that you can use this stack + // to find the callsite that caused this warning to fire. + throw new Error(message); + } catch (x) {} + } + + warning = function(condition, format, args) { + var len = arguments.length; + args = new Array(len > 2 ? len - 2 : 0); + for (var key = 2; key < len; key++) { + args[key - 2] = arguments[key]; + } + if (format === undefined) { + throw new Error( + '`warning(condition, format, ...args)` requires a warning ' + + 'message argument' + ); + } + if (!condition) { + printWarning.apply(null, [format].concat(args)); + } + }; + } + + module.exports = warning; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) /***/ }), - /* 343 */ + /* 224 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Arabic (Tunisia) [ar-tn] - //! author : Nader Toukabri : https://github.com/naderio + var isArray = __webpack_require__(131), + isKey = __webpack_require__(638), + stringToPath = __webpack_require__(643), + toString = __webpack_require__(226); - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + /** + * Casts `value` to a path array if it's not one. + * + * @private + * @param {*} value The value to inspect. + * @param {Object} [object] The object to query keys on. + * @returns {Array} Returns the cast property path array. + */ + function castPath(value, object) { + if (isArray(value)) { + return value; + } + return isKey(value, object) ? [value] : stringToPath(toString(value)); + } - //! moment.js locale configuration + module.exports = castPath; - var arTn = moment.defineLocale('ar-tn', { - months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( - '_' - ), - monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( - '_' - ), - weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[اليوم على الساعة] LT', - nextDay: '[غدا على الساعة] LT', - nextWeek: 'dddd [على الساعة] LT', - lastDay: '[أمس على الساعة] LT', - lastWeek: 'dddd [على الساعة] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'في %s', - past: 'منذ %s', - s: 'ثوان', - ss: '%d ثانية', - m: 'دقيقة', - mm: '%d دقائق', - h: 'ساعة', - hh: '%d ساعات', - d: 'يوم', - dd: '%d أيام', - M: 'شهر', - MM: '%d أشهر', - y: 'سنة', - yy: '%d سنوات', - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - return arTn; + /***/ }), + /* 225 */ + /***/ (function(module, exports, __webpack_require__) { - }))); + var Symbol = __webpack_require__(132), + getRawTag = __webpack_require__(640), + objectToString = __webpack_require__(641); + + /** `Object#toString` result references. */ + var nullTag = '[object Null]', + undefinedTag = '[object Undefined]'; + + /** Built-in value references. */ + var symToStringTag = Symbol ? Symbol.toStringTag : undefined; + + /** + * The base implementation of `getTag` without fallbacks for buggy environments. + * + * @private + * @param {*} value The value to query. + * @returns {string} Returns the `toStringTag`. + */ + function baseGetTag(value) { + if (value == null) { + return value === undefined ? undefinedTag : nullTag; + } + return (symToStringTag && symToStringTag in Object(value)) + ? getRawTag(value) + : objectToString(value); + } + + module.exports = baseGetTag; /***/ }), - /* 344 */ + /* 226 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Azerbaijani [az] - //! author : topchiyev : https://github.com/topchiyev + var baseToString = __webpack_require__(672); - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + /** + * Converts `value` to a string. An empty string is returned for `null` + * and `undefined` values. The sign of `-0` is preserved. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to convert. + * @returns {string} Returns the converted string. + * @example + * + * _.toString(null); + * // => '' + * + * _.toString(-0); + * // => '-0' + * + * _.toString([1, 2, 3]); + * // => '1,2,3' + */ + function toString(value) { + return value == null ? '' : baseToString(value); + } - //! moment.js locale configuration + module.exports = toString; - var suffixes = { - 1: '-inci', - 5: '-inci', - 8: '-inci', - 70: '-inci', - 80: '-inci', - 2: '-nci', - 7: '-nci', - 20: '-nci', - 50: '-nci', - 3: '-üncü', - 4: '-üncü', - 100: '-üncü', - 6: '-ncı', - 9: '-uncu', - 10: '-uncu', - 30: '-uncu', - 60: '-ıncı', - 90: '-ıncı', - }; - var az = moment.defineLocale('az', { - months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split( - '_' - ), - monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'), - weekdays: 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split( - '_' - ), - weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'), - weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[bugün saat] LT', - nextDay: '[sabah saat] LT', - nextWeek: '[gələn həftə] dddd [saat] LT', - lastDay: '[dünən] LT', - lastWeek: '[keçən həftə] dddd [saat] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s sonra', - past: '%s əvvəl', - s: 'birneçə saniyə', - ss: '%d saniyə', - m: 'bir dəqiqə', - mm: '%d dəqiqə', - h: 'bir saat', - hh: '%d saat', - d: 'bir gün', - dd: '%d gün', - M: 'bir ay', - MM: '%d ay', - y: 'bir il', - yy: '%d il', - }, - meridiemParse: /gecə|səhər|gündüz|axşam/, - isPM: function (input) { - return /^(gündüz|axşam)$/.test(input); - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'gecə'; - } else if (hour < 12) { - return 'səhər'; - } else if (hour < 17) { - return 'gündüz'; - } else { - return 'axşam'; - } - }, - dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/, - ordinal: function (number) { - if (number === 0) { - // special case for zero - return number + '-ıncı'; - } - var a = number % 10, - b = (number % 100) - a, - c = number >= 100 ? 100 : null; - return number + (suffixes[a] || suffixes[b] || suffixes[c]); - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); + /***/ }), + /* 227 */ + /***/ (function(module, exports, __webpack_require__) { - return az; + var isSymbol = __webpack_require__(92); - }))); + /** Used as references for various `Number` constants. */ + var INFINITY = 1 / 0; + + /** + * Converts `value` to a string key if it's not a string or symbol. + * + * @private + * @param {*} value The value to inspect. + * @returns {string|symbol} Returns the key. + */ + function toKey(value) { + if (typeof value == 'string' || isSymbol(value)) { + return value; + } + var result = (value + ''); + return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; + } + + module.exports = toKey; /***/ }), - /* 345 */ + /* 228 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Belarusian [be] - //! author : Dmitry Demidov : https://github.com/demidov91 - //! author: Praleska: http://praleska.pro/ - //! Author : Menelion Elensúle : https://github.com/Oire + var baseSet = __webpack_require__(674); - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + /** + * Sets the value at `path` of `object`. If a portion of `path` doesn't exist, + * it's created. Arrays are created for missing index properties while objects + * are created for all other missing properties. Use `_.setWith` to customize + * `path` creation. + * + * **Note:** This method mutates `object`. + * + * @static + * @memberOf _ + * @since 3.7.0 + * @category Object + * @param {Object} object The object to modify. + * @param {Array|string} path The path of the property to set. + * @param {*} value The value to set. + * @returns {Object} Returns `object`. + * @example + * + * var object = { 'a': [{ 'b': { 'c': 3 } }] }; + * + * _.set(object, 'a[0].b.c', 4); + * console.log(object.a[0].b.c); + * // => 4 + * + * _.set(object, ['x', '0', 'y', 'z'], 5); + * console.log(object.x[0].y.z); + * // => 5 + */ + function set(object, path, value) { + return object == null ? object : baseSet(object, path, value); + } - //! moment.js locale configuration + module.exports = set; - function plural(word, num) { - var forms = word.split('_'); - return num % 10 === 1 && num % 100 !== 11 - ? forms[0] - : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) - ? forms[1] - : forms[2]; - } - function relativeTimeWithPlural(number, withoutSuffix, key) { - var format = { - ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд', - mm: withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін', - hh: withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін', - dd: 'дзень_дні_дзён', - MM: 'месяц_месяцы_месяцаў', - yy: 'год_гады_гадоў', - }; - if (key === 'm') { - return withoutSuffix ? 'хвіліна' : 'хвіліну'; - } else if (key === 'h') { - return withoutSuffix ? 'гадзіна' : 'гадзіну'; - } else { - return number + ' ' + plural(format[key], +number); - } - } - var be = moment.defineLocale('be', { - months: { - format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split( - '_' - ), - standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split( - '_' - ), - }, - monthsShort: 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split( - '_' - ), - weekdays: { - format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split( - '_' - ), - standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split( - '_' - ), - isFormat: /\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/, - }, - weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'), - weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY г.', - LLL: 'D MMMM YYYY г., HH:mm', - LLLL: 'dddd, D MMMM YYYY г., HH:mm', - }, - calendar: { - sameDay: '[Сёння ў] LT', - nextDay: '[Заўтра ў] LT', - lastDay: '[Учора ў] LT', - nextWeek: function () { - return '[У] dddd [ў] LT'; - }, - lastWeek: function () { - switch (this.day()) { - case 0: - case 3: - case 5: - case 6: - return '[У мінулую] dddd [ў] LT'; - case 1: - case 2: - case 4: - return '[У мінулы] dddd [ў] LT'; - } - }, - sameElse: 'L', - }, - relativeTime: { - future: 'праз %s', - past: '%s таму', - s: 'некалькі секунд', - m: relativeTimeWithPlural, - mm: relativeTimeWithPlural, - h: relativeTimeWithPlural, - hh: relativeTimeWithPlural, - d: 'дзень', - dd: relativeTimeWithPlural, - M: 'месяц', - MM: relativeTimeWithPlural, - y: 'год', - yy: relativeTimeWithPlural, - }, - meridiemParse: /ночы|раніцы|дня|вечара/, - isPM: function (input) { - return /^(дня|вечара)$/.test(input); - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'ночы'; - } else if (hour < 12) { - return 'раніцы'; - } else if (hour < 17) { - return 'дня'; - } else { - return 'вечара'; - } - }, - dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/, - ordinal: function (number, period) { - switch (period) { - case 'M': - case 'd': - case 'DDD': - case 'w': - case 'W': - return (number % 10 === 2 || number % 10 === 3) && - number % 100 !== 12 && - number % 100 !== 13 - ? number + '-і' - : number + '-ы'; - case 'D': - return number + '-га'; - default: - return number; - } - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); + /***/ }), + /* 229 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { - return be; + "use strict"; + /* harmony export (immutable) */ __webpack_exports__["b"] = isFormField; + /* harmony export (immutable) */ __webpack_exports__["a"] = createFormField; + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(8); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(7); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__); - }))); + var Field = function Field(fields) { + __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, Field); + + __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()(this, fields); + }; + + function isFormField(obj) { + return obj instanceof Field; + } + + function createFormField(field) { + if (isFormField(field)) { + return field; + } + return new Field(field); + } + /***/ }), - /* 346 */ - /***/ (function(module, exports, __webpack_require__) { + /* 230 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { - //! moment.js locale configuration - //! locale : Bulgarian [bg] - //! author : Krasen Borisov : https://github.com/kraz + "use strict"; + /* harmony export (immutable) */ __webpack_exports__["a"] = argumentContainer; + /* harmony export (immutable) */ __webpack_exports__["i"] = identity; + /* harmony export (immutable) */ __webpack_exports__["b"] = flattenArray; + /* unused harmony export treeTraverse */ + /* harmony export (immutable) */ __webpack_exports__["c"] = flattenFields; + /* harmony export (immutable) */ __webpack_exports__["k"] = normalizeValidateRules; + /* harmony export (immutable) */ __webpack_exports__["f"] = getValidateTriggers; + /* harmony export (immutable) */ __webpack_exports__["g"] = getValueFromEvent; + /* harmony export (immutable) */ __webpack_exports__["d"] = getErrorStrs; + /* harmony export (immutable) */ __webpack_exports__["e"] = getParams; + /* harmony export (immutable) */ __webpack_exports__["j"] = isEmptyObject; + /* harmony export (immutable) */ __webpack_exports__["h"] = hasRules; + /* harmony export (immutable) */ __webpack_exports__["l"] = startsWith; + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(8); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_hoist_non_react_statics__ = __webpack_require__(231); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_hoist_non_react_statics___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_hoist_non_react_statics__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_warning__ = __webpack_require__(223); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_warning___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_warning__); - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration - var bg = moment.defineLocale('bg', { - months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split( - '_' - ), - monthsShort: 'яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'), - weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split( - '_' - ), - weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'), - weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'), - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'D.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY H:mm', - LLLL: 'dddd, D MMMM YYYY H:mm', - }, - calendar: { - sameDay: '[Днес в] LT', - nextDay: '[Утре в] LT', - nextWeek: 'dddd [в] LT', - lastDay: '[Вчера в] LT', - lastWeek: function () { - switch (this.day()) { - case 0: - case 3: - case 6: - return '[Миналата] dddd [в] LT'; - case 1: - case 2: - case 4: - case 5: - return '[Миналия] dddd [в] LT'; - } - }, - sameElse: 'L', - }, - relativeTime: { - future: 'след %s', - past: 'преди %s', - s: 'няколко секунди', - ss: '%d секунди', - m: 'минута', - mm: '%d минути', - h: 'час', - hh: '%d часа', - d: 'ден', - dd: '%d дена', - M: 'месец', - MM: '%d месеца', - y: 'година', - yy: '%d години', - }, - dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/, - ordinal: function (number) { - var lastDigit = number % 10, - last2Digits = number % 100; - if (number === 0) { - return number + '-ев'; - } else if (last2Digits === 0) { - return number + '-ен'; - } else if (last2Digits > 10 && last2Digits < 20) { - return number + '-ти'; - } else if (lastDigit === 1) { - return number + '-ви'; - } else if (lastDigit === 2) { - return number + '-ри'; - } else if (lastDigit === 7 || lastDigit === 8) { - return number + '-ми'; - } else { - return number + '-ти'; - } - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); - return bg; + function getDisplayName(WrappedComponent) { + return WrappedComponent.displayName || WrappedComponent.name || 'WrappedComponent'; + } - }))); + function argumentContainer(Container, WrappedComponent) { + /* eslint no-param-reassign:0 */ + Container.displayName = 'Form(' + getDisplayName(WrappedComponent) + ')'; + Container.WrappedComponent = WrappedComponent; + return __WEBPACK_IMPORTED_MODULE_1_hoist_non_react_statics___default()(Container, WrappedComponent); + } + function identity(obj) { + return obj; + } - /***/ }), - /* 347 */ - /***/ (function(module, exports, __webpack_require__) { + function flattenArray(arr) { + return Array.prototype.concat.apply([], arr); + } - //! moment.js locale configuration - //! locale : Bambara [bm] - //! author : Estelle Comment : https://github.com/estellecomment + function treeTraverse() { + var path = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; + var tree = arguments[1]; + var isLeafNode = arguments[2]; + var errorMessage = arguments[3]; + var callback = arguments[4]; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + if (isLeafNode(path, tree)) { + callback(path, tree); + } else if (tree === undefined || tree === null) { + // Do nothing + } else if (Array.isArray(tree)) { + tree.forEach(function (subTree, index) { + return treeTraverse(path + '[' + index + ']', subTree, isLeafNode, errorMessage, callback); + }); + } else { + // It's object and not a leaf node + if (typeof tree !== 'object') { + __WEBPACK_IMPORTED_MODULE_2_warning___default()(false, errorMessage); + return; + } + Object.keys(tree).forEach(function (subTreeKey) { + var subTree = tree[subTreeKey]; + treeTraverse('' + path + (path ? '.' : '') + subTreeKey, subTree, isLeafNode, errorMessage, callback); + }); + } + } - //! moment.js locale configuration + function flattenFields(maybeNestedFields, isLeafNode, errorMessage) { + var fields = {}; + treeTraverse(undefined, maybeNestedFields, isLeafNode, errorMessage, function (path, node) { + fields[path] = node; + }); + return fields; + } - var bm = moment.defineLocale('bm', { - months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split( - '_' - ), - monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'), - weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'), - weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'), - weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'MMMM [tile] D [san] YYYY', - LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm', - LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm', - }, - calendar: { - sameDay: '[Bi lɛrɛ] LT', - nextDay: '[Sini lɛrɛ] LT', - nextWeek: 'dddd [don lɛrɛ] LT', - lastDay: '[Kunu lɛrɛ] LT', - lastWeek: 'dddd [tɛmɛnen lɛrɛ] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s kɔnɔ', - past: 'a bɛ %s bɔ', - s: 'sanga dama dama', - ss: 'sekondi %d', - m: 'miniti kelen', - mm: 'miniti %d', - h: 'lɛrɛ kelen', - hh: 'lɛrɛ %d', - d: 'tile kelen', - dd: 'tile %d', - M: 'kalo kelen', - MM: 'kalo %d', - y: 'san kelen', - yy: 'san %d', - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, + function normalizeValidateRules(validate, rules, validateTrigger) { + var validateRules = validate.map(function (item) { + var newItem = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, item, { + trigger: item.trigger || [] + }); + if (typeof newItem.trigger === 'string') { + newItem.trigger = [newItem.trigger]; + } + return newItem; + }); + if (rules) { + validateRules.push({ + trigger: validateTrigger ? [].concat(validateTrigger) : [], + rules: rules }); + } + return validateRules; + } - return bm; - - }))); - + function getValidateTriggers(validateRules) { + return validateRules.filter(function (item) { + return !!item.rules && item.rules.length; + }).map(function (item) { + return item.trigger; + }).reduce(function (pre, curr) { + return pre.concat(curr); + }, []); + } - /***/ }), - /* 348 */ - /***/ (function(module, exports, __webpack_require__) { + function getValueFromEvent(e) { + // To support custom element + if (!e || !e.target) { + return e; + } + var target = e.target; - //! moment.js locale configuration - //! locale : Bengali [bn] - //! author : Kaushik Gandhi : https://github.com/kaushikgandhi + return target.type === 'checkbox' ? target.checked : target.value; + } - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + function getErrorStrs(errors) { + if (errors) { + return errors.map(function (e) { + if (e && e.message) { + return e.message; + } + return e; + }); + } + return errors; + } - //! moment.js locale configuration + function getParams(ns, opt, cb) { + var names = ns; + var options = opt; + var callback = cb; + if (cb === undefined) { + if (typeof names === 'function') { + callback = names; + options = {}; + names = undefined; + } else if (Array.isArray(names)) { + if (typeof options === 'function') { + callback = options; + options = {}; + } else { + options = options || {}; + } + } else { + callback = options; + options = names || {}; + names = undefined; + } + } + return { + names: names, + options: options, + callback: callback + }; + } - var symbolMap = { - '1': '১', - '2': '২', - '3': '৩', - '4': '৪', - '5': '৫', - '6': '৬', - '7': '৭', - '8': '৮', - '9': '৯', - '0': '০', - }, - numberMap = { - '১': '1', - '২': '2', - '৩': '3', - '৪': '4', - '৫': '5', - '৬': '6', - '৭': '7', - '৮': '8', - '৯': '9', - '০': '0', - }; + function isEmptyObject(obj) { + return Object.keys(obj).length === 0; + } - var bn = moment.defineLocale('bn', { - months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split( - '_' - ), - monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split( - '_' - ), - weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split( - '_' - ), - weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'), - weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'), - longDateFormat: { - LT: 'A h:mm সময়', - LTS: 'A h:mm:ss সময়', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm সময়', - LLLL: 'dddd, D MMMM YYYY, A h:mm সময়', - }, - calendar: { - sameDay: '[আজ] LT', - nextDay: '[আগামীকাল] LT', - nextWeek: 'dddd, LT', - lastDay: '[গতকাল] LT', - lastWeek: '[গত] dddd, LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s পরে', - past: '%s আগে', - s: 'কয়েক সেকেন্ড', - ss: '%d সেকেন্ড', - m: 'এক মিনিট', - mm: '%d মিনিট', - h: 'এক ঘন্টা', - hh: '%d ঘন্টা', - d: 'এক দিন', - dd: '%d দিন', - M: 'এক মাস', - MM: '%d মাস', - y: 'এক বছর', - yy: '%d বছর', - }, - preparse: function (string) { - return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if ( - (meridiem === 'রাত' && hour >= 4) || - (meridiem === 'দুপুর' && hour < 5) || - meridiem === 'বিকাল' - ) { - return hour + 12; - } else { - return hour; - } - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'রাত'; - } else if (hour < 10) { - return 'সকাল'; - } else if (hour < 17) { - return 'দুপুর'; - } else if (hour < 20) { - return 'বিকাল'; - } else { - return 'রাত'; - } - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }, + function hasRules(validate) { + if (validate) { + return validate.some(function (item) { + return item.rules && item.rules.length; }); + } + return false; + } - return bn; - - }))); - + function startsWith(str, prefix) { + return str.lastIndexOf(prefix, 0) === 0; + } /***/ }), - /* 349 */ + /* 231 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Tibetan [bo] - //! author : Thupten N. Chakrishar : https://github.com/vajradog + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration + var reactIs = __webpack_require__(64); - var symbolMap = { - '1': '༡', - '2': '༢', - '3': '༣', - '4': '༤', - '5': '༥', - '6': '༦', - '7': '༧', - '8': '༨', - '9': '༩', - '0': '༠', - }, - numberMap = { - '༡': '1', - '༢': '2', - '༣': '3', - '༤': '4', - '༥': '5', - '༦': '6', - '༧': '7', - '༨': '8', - '༩': '9', - '༠': '0', - }; + /** + * Copyright 2015, Yahoo! Inc. + * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. + */ + var REACT_STATICS = { + childContextTypes: true, + contextType: true, + contextTypes: true, + defaultProps: true, + displayName: true, + getDefaultProps: true, + getDerivedStateFromError: true, + getDerivedStateFromProps: true, + mixins: true, + propTypes: true, + type: true + }; + var KNOWN_STATICS = { + name: true, + length: true, + prototype: true, + caller: true, + callee: true, + arguments: true, + arity: true + }; + var FORWARD_REF_STATICS = { + '$$typeof': true, + render: true, + defaultProps: true, + displayName: true, + propTypes: true + }; + var MEMO_STATICS = { + '$$typeof': true, + compare: true, + defaultProps: true, + displayName: true, + propTypes: true, + type: true + }; + var TYPE_STATICS = {}; + TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS; + TYPE_STATICS[reactIs.Memo] = MEMO_STATICS; - var bo = moment.defineLocale('bo', { - months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split( - '_' - ), - monthsShort: 'ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12'.split( - '_' - ), - monthsShortRegex: /^(ཟླ་\d{1,2})/, - monthsParseExact: true, - weekdays: 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split( - '_' - ), - weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split( - '_' - ), - weekdaysMin: 'ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན'.split('_'), - longDateFormat: { - LT: 'A h:mm', - LTS: 'A h:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm', - LLLL: 'dddd, D MMMM YYYY, A h:mm', - }, - calendar: { - sameDay: '[དི་རིང] LT', - nextDay: '[སང་ཉིན] LT', - nextWeek: '[བདུན་ཕྲག་རྗེས་མ], LT', - lastDay: '[ཁ་སང] LT', - lastWeek: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s ལ་', - past: '%s སྔན་ལ', - s: 'ལམ་སང', - ss: '%d སྐར་ཆ།', - m: 'སྐར་མ་གཅིག', - mm: '%d སྐར་མ', - h: 'ཆུ་ཚོད་གཅིག', - hh: '%d ཆུ་ཚོད', - d: 'ཉིན་གཅིག', - dd: '%d ཉིན་', - M: 'ཟླ་བ་གཅིག', - MM: '%d ཟླ་བ', - y: 'ལོ་གཅིག', - yy: '%d ལོ', - }, - preparse: function (string) { - return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if ( - (meridiem === 'མཚན་མོ' && hour >= 4) || - (meridiem === 'ཉིན་གུང' && hour < 5) || - meridiem === 'དགོང་དག' - ) { - return hour + 12; - } else { - return hour; - } - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'མཚན་མོ'; - } else if (hour < 10) { - return 'ཞོགས་ཀས'; - } else if (hour < 17) { - return 'ཉིན་གུང'; - } else if (hour < 20) { - return 'དགོང་དག'; - } else { - return 'མཚན་མོ'; - } - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }, - }); + function getStatics(component) { + // React v16.11 and below + if (reactIs.isMemo(component)) { + return MEMO_STATICS; + } // React v16.12 and above - return bo; - }))); + return TYPE_STATICS[component['$$typeof']] || REACT_STATICS; + } + var defineProperty = Object.defineProperty; + var getOwnPropertyNames = Object.getOwnPropertyNames; + var getOwnPropertySymbols = Object.getOwnPropertySymbols; + var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; + var getPrototypeOf = Object.getPrototypeOf; + var objectPrototype = Object.prototype; + function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) { + if (typeof sourceComponent !== 'string') { + // don't hoist over string (html) components + if (objectPrototype) { + var inheritedComponent = getPrototypeOf(sourceComponent); - /***/ }), - /* 350 */ - /***/ (function(module, exports, __webpack_require__) { + if (inheritedComponent && inheritedComponent !== objectPrototype) { + hoistNonReactStatics(targetComponent, inheritedComponent, blacklist); + } + } - //! moment.js locale configuration - //! locale : Breton [br] - //! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou + var keys = getOwnPropertyNames(sourceComponent); - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + if (getOwnPropertySymbols) { + keys = keys.concat(getOwnPropertySymbols(sourceComponent)); + } - //! moment.js locale configuration + var targetStatics = getStatics(targetComponent); + var sourceStatics = getStatics(sourceComponent); - function relativeTimeWithMutation(number, withoutSuffix, key) { - var format = { - mm: 'munutenn', - MM: 'miz', - dd: 'devezh', - }; - return number + ' ' + mutation(format[key], number); - } - function specialMutationForYears(number) { - switch (lastNumber(number)) { - case 1: - case 3: - case 4: - case 5: - case 9: - return number + ' bloaz'; - default: - return number + ' vloaz'; - } - } - function lastNumber(number) { - if (number > 9) { - return lastNumber(number % 10); - } - return number; - } - function mutation(text, number) { - if (number === 2) { - return softMutation(text); - } - return text; - } - function softMutation(text) { - var mutationTable = { - m: 'v', - b: 'v', - d: 'z', - }; - if (mutationTable[text.charAt(0)] === undefined) { - return text; - } - return mutationTable[text.charAt(0)] + text.substring(1); - } + for (var i = 0; i < keys.length; ++i) { + var key = keys[i]; - var br = moment.defineLocale('br', { - months: "Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split( - '_' - ), - monthsShort: "Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split('_'), - weekdays: "Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split('_'), - weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'), - weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D [a viz] MMMM YYYY', - LLL: 'D [a viz] MMMM YYYY HH:mm', - LLLL: 'dddd, D [a viz] MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Hiziv da] LT', - nextDay: "[Warc'hoazh da] LT", - nextWeek: 'dddd [da] LT', - lastDay: "[Dec'h da] LT", - lastWeek: 'dddd [paset da] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'a-benn %s', - past: "%s 'zo", - s: 'un nebeud segondennoù', - ss: '%d eilenn', - m: 'ur vunutenn', - mm: relativeTimeWithMutation, - h: 'un eur', - hh: '%d eur', - d: 'un devezh', - dd: relativeTimeWithMutation, - M: 'ur miz', - MM: relativeTimeWithMutation, - y: 'ur bloaz', - yy: specialMutationForYears, - }, - dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/, - ordinal: function (number) { - var output = number === 1 ? 'añ' : 'vet'; - return number + output; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) { + var descriptor = getOwnPropertyDescriptor(sourceComponent, key); - return br; + try { + // Avoid failures from read-only properties + defineProperty(targetComponent, key, descriptor); + } catch (e) {} + } + } + } - }))); + return targetComponent; + } + + module.exports = hoistNonReactStatics; /***/ }), - /* 351 */ + /* 232 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Bosnian [bs] - //! author : Nedim Cholich : https://github.com/frontyard - //! based on (hr) translation by Bojan Marković + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration + Object.defineProperty(exports, "__esModule", { + value: true + }); - function translate(number, withoutSuffix, key) { - var result = number + ' '; - switch (key) { - case 'ss': - if (number === 1) { - result += 'sekunda'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'sekunde'; - } else { - result += 'sekundi'; - } - return result; - case 'm': - return withoutSuffix ? 'jedna minuta' : 'jedne minute'; - case 'mm': - if (number === 1) { - result += 'minuta'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'minute'; - } else { - result += 'minuta'; - } - return result; - case 'h': - return withoutSuffix ? 'jedan sat' : 'jednog sata'; - case 'hh': - if (number === 1) { - result += 'sat'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'sata'; - } else { - result += 'sati'; - } - return result; - case 'dd': - if (number === 1) { - result += 'dan'; - } else { - result += 'dana'; - } - return result; - case 'MM': - if (number === 1) { - result += 'mjesec'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'mjeseca'; - } else { - result += 'mjeseci'; - } - return result; - case 'yy': - if (number === 1) { - result += 'godina'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'godine'; - } else { - result += 'godina'; - } - return result; - } - } + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var bs = moment.defineLocale('bs', { - months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split( - '_' - ), - monthsShort: 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split( - '_' - ), - weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), - weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd, D. MMMM YYYY H:mm', - }, - calendar: { - sameDay: '[danas u] LT', - nextDay: '[sutra u] LT', - nextWeek: function () { - switch (this.day()) { - case 0: - return '[u] [nedjelju] [u] LT'; - case 3: - return '[u] [srijedu] [u] LT'; - case 6: - return '[u] [subotu] [u] LT'; - case 1: - case 2: - case 4: - case 5: - return '[u] dddd [u] LT'; - } - }, - lastDay: '[jučer u] LT', - lastWeek: function () { - switch (this.day()) { - case 0: - case 3: - return '[prošlu] dddd [u] LT'; - case 6: - return '[prošle] [subote] [u] LT'; - case 1: - case 2: - case 4: - case 5: - return '[prošli] dddd [u] LT'; - } - }, - sameElse: 'L', - }, - relativeTime: { - future: 'za %s', - past: 'prije %s', - s: 'par sekundi', - ss: translate, - m: translate, - mm: translate, - h: translate, - hh: translate, - d: 'dan', - dd: translate, - M: 'mjesec', - MM: translate, - y: 'godinu', - yy: translate, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); + var _classnames = __webpack_require__(2); - return bs; + var _classnames2 = _interopRequireDefault(_classnames); - }))); + var _react = __webpack_require__(0); + var _react2 = _interopRequireDefault(_react); - /***/ }), - /* 352 */ - /***/ (function(module, exports, __webpack_require__) { + var _propTypes = __webpack_require__(1); - //! moment.js locale configuration - //! locale : Catalan [ca] - //! author : Juan G. Hurtado : https://github.com/juanghurtado + var _propTypes2 = _interopRequireDefault(_propTypes); - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - //! moment.js locale configuration + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - var ca = moment.defineLocale('ca', { - months: { - standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split( - '_' - ), - format: "de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split( - '_' - ), - isFormat: /D[oD]?(\s)+MMMM/, - }, - monthsShort: 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split( - '_' - ), - weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'), - weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM [de] YYYY', - ll: 'D MMM YYYY', - LLL: 'D MMMM [de] YYYY [a les] H:mm', - lll: 'D MMM YYYY, H:mm', - LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm', - llll: 'ddd D MMM YYYY, H:mm', - }, - calendar: { - sameDay: function () { - return '[avui a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT'; - }, - nextDay: function () { - return '[demà a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT'; - }, - nextWeek: function () { - return 'dddd [a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT'; - }, - lastDay: function () { - return '[ahir a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT'; - }, - lastWeek: function () { - return ( - '[el] dddd [passat a ' + - (this.hours() !== 1 ? 'les' : 'la') + - '] LT' - ); - }, - sameElse: 'L', - }, - relativeTime: { - future: "d'aquí %s", - past: 'fa %s', - s: 'uns segons', - ss: '%d segons', - m: 'un minut', - mm: '%d minuts', - h: 'una hora', - hh: '%d hores', - d: 'un dia', - dd: '%d dies', - M: 'un mes', - MM: '%d mesos', - y: 'un any', - yy: '%d anys', - }, - dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/, - ordinal: function (number, period) { - var output = - number === 1 - ? 'r' - : number === 2 - ? 'n' - : number === 3 - ? 'r' - : number === 4 - ? 't' - : 'è'; - if (period === 'w' || period === 'W') { - output = 'a'; - } - return number + output; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - return ca; + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - }))); + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - /***/ }), - /* 353 */ - /***/ (function(module, exports, __webpack_require__) { + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - //! moment.js locale configuration - //! locale : Czech [cs] - //! author : petrbela : https://github.com/petrbela + var propTypes = { + /** + * Adds `container-fluid` class. + */ + fluid: _propTypes2["default"].bool, + /** + * You can use a custom element for this component + */ + componentClass: _propTypes2["default"].oneOfType([_propTypes2["default"].element, _propTypes2["default"].string]) + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var defaultProps = { + componentClass: 'div', + fluid: false, + clsPrefix: 'u-container' + }; - //! moment.js locale configuration + var Con = function (_React$Component) { + _inherits(Con, _React$Component); - var months = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split( - '_' - ), - monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'), - monthsParse = [ - /^led/i, - /^úno/i, - /^bře/i, - /^dub/i, - /^kvě/i, - /^(čvn|červen$|června)/i, - /^(čvc|červenec|července)/i, - /^srp/i, - /^zář/i, - /^říj/i, - /^lis/i, - /^pro/i, - ], - // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched. - // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'. - monthsRegex = /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i; + function Con() { + _classCallCheck(this, Con); - function plural(n) { - return n > 1 && n < 5 && ~~(n / 10) !== 1; - } - function translate(number, withoutSuffix, key, isFuture) { - var result = number + ' '; - switch (key) { - case 's': // a few seconds / in a few seconds / a few seconds ago - return withoutSuffix || isFuture ? 'pár sekund' : 'pár sekundami'; - case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'sekundy' : 'sekund'); - } else { - return result + 'sekundami'; - } - case 'm': // a minute / in a minute / a minute ago - return withoutSuffix ? 'minuta' : isFuture ? 'minutu' : 'minutou'; - case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'minuty' : 'minut'); - } else { - return result + 'minutami'; - } - case 'h': // an hour / in an hour / an hour ago - return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou'; - case 'hh': // 9 hours / in 9 hours / 9 hours ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'hodiny' : 'hodin'); - } else { - return result + 'hodinami'; - } - case 'd': // a day / in a day / a day ago - return withoutSuffix || isFuture ? 'den' : 'dnem'; - case 'dd': // 9 days / in 9 days / 9 days ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'dny' : 'dní'); - } else { - return result + 'dny'; - } - case 'M': // a month / in a month / a month ago - return withoutSuffix || isFuture ? 'měsíc' : 'měsícem'; - case 'MM': // 9 months / in 9 months / 9 months ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'měsíce' : 'měsíců'); - } else { - return result + 'měsíci'; - } - case 'y': // a year / in a year / a year ago - return withoutSuffix || isFuture ? 'rok' : 'rokem'; - case 'yy': // 9 years / in 9 years / 9 years ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'roky' : 'let'); - } else { - return result + 'lety'; - } - } - } + return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); + } - var cs = moment.defineLocale('cs', { - months: months, - monthsShort: monthsShort, - monthsRegex: monthsRegex, - monthsShortRegex: monthsRegex, - // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched. - // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'. - monthsStrictRegex: /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i, - monthsShortStrictRegex: /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i, - monthsParse: monthsParse, - longMonthsParse: monthsParse, - shortMonthsParse: monthsParse, - weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'), - weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'), - weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'), - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd D. MMMM YYYY H:mm', - l: 'D. M. YYYY', - }, - calendar: { - sameDay: '[dnes v] LT', - nextDay: '[zítra v] LT', - nextWeek: function () { - switch (this.day()) { - case 0: - return '[v neděli v] LT'; - case 1: - case 2: - return '[v] dddd [v] LT'; - case 3: - return '[ve středu v] LT'; - case 4: - return '[ve čtvrtek v] LT'; - case 5: - return '[v pátek v] LT'; - case 6: - return '[v sobotu v] LT'; - } - }, - lastDay: '[včera v] LT', - lastWeek: function () { - switch (this.day()) { - case 0: - return '[minulou neděli v] LT'; - case 1: - case 2: - return '[minulé] dddd [v] LT'; - case 3: - return '[minulou středu v] LT'; - case 4: - case 5: - return '[minulý] dddd [v] LT'; - case 6: - return '[minulou sobotu v] LT'; - } - }, - sameElse: 'L', - }, - relativeTime: { - future: 'za %s', - past: 'před %s', - s: translate, - ss: translate, - m: translate, - mm: translate, - h: translate, - hh: translate, - d: translate, - dd: translate, - M: translate, - MM: translate, - y: translate, - yy: translate, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + Con.prototype.render = function render() { + var _tbclass; + + var _props = this.props, + fluid = _props.fluid, + Component = _props.componentClass, + clsPrefix = _props.clsPrefix, + className = _props.className, + others = _objectWithoutProperties(_props, ['fluid', 'componentClass', 'clsPrefix', 'className']); + + var tbclass = (_tbclass = {}, _defineProperty(_tbclass, '' + clsPrefix, !fluid), _defineProperty(_tbclass, clsPrefix + '-fluid', fluid), _tbclass); + + return _react2["default"].createElement( + Component, + _extends({}, others, { + className: (0, _classnames2["default"])(tbclass, className) + }), + this.props.children + ); + }; + + return Con; + }(_react2["default"].Component); + + Con.propTypes = propTypes; + Con.defaultProps = defaultProps; - return cs; + exports["default"] = Con; + module.exports = exports['default']; + + /***/ }), + /* 233 */ + /***/ (function(module, exports, __webpack_require__) { + + "use strict"; - }))); + module.exports = __webpack_require__(689); /***/ }), - /* 354 */ + /* 234 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Chuvash [cv] - //! author : Anatoly Mironov : https://github.com/mirontoli + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration + Object.defineProperty(exports, "__esModule", { + value: true + }); - var cv = moment.defineLocale('cv', { - months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split( - '_' - ), - monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'), - weekdays: 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split( - '_' - ), - weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'), - weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD-MM-YYYY', - LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]', - LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm', - LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm', - }, - calendar: { - sameDay: '[Паян] LT [сехетре]', - nextDay: '[Ыран] LT [сехетре]', - lastDay: '[Ӗнер] LT [сехетре]', - nextWeek: '[Ҫитес] dddd LT [сехетре]', - lastWeek: '[Иртнӗ] dddd LT [сехетре]', - sameElse: 'L', - }, - relativeTime: { - future: function (output) { - var affix = /сехет$/i.exec(output) - ? 'рен' - : /ҫул$/i.exec(output) - ? 'тан' - : 'ран'; - return output + affix; - }, - past: '%s каялла', - s: 'пӗр-ик ҫеккунт', - ss: '%d ҫеккунт', - m: 'пӗр минут', - mm: '%d минут', - h: 'пӗр сехет', - hh: '%d сехет', - d: 'пӗр кун', - dd: '%d кун', - M: 'пӗр уйӑх', - MM: '%d уйӑх', - y: 'пӗр ҫул', - yy: '%d ҫул', - }, - dayOfMonthOrdinalParse: /\d{1,2}-мӗш/, - ordinal: '%d-мӗш', - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); + var _InputNumber = __webpack_require__(235); - return cv; + var _InputNumber2 = _interopRequireDefault(_InputNumber); - }))); + var _InputNumberGroup = __webpack_require__(731); + + var _InputNumberGroup2 = _interopRequireDefault(_InputNumberGroup); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + + _InputNumber2["default"].InputNumberGroup = _InputNumberGroup2["default"]; + + exports["default"] = _InputNumber2["default"]; + module.exports = exports['default']; /***/ }), - /* 355 */ + /* 235 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Welsh [cy] - //! author : Robert Allen : https://github.com/robgallen - //! author : https://github.com/ryangreaves + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration + Object.defineProperty(exports, "__esModule", { + value: true + }); - var cy = moment.defineLocale('cy', { - months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split( - '_' - ), - monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split( - '_' - ), - weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split( - '_' - ), - weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'), - weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'), - weekdaysParseExact: true, - // time formats are the same as en-gb - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Heddiw am] LT', - nextDay: '[Yfory am] LT', - nextWeek: 'dddd [am] LT', - lastDay: '[Ddoe am] LT', - lastWeek: 'dddd [diwethaf am] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'mewn %s', - past: '%s yn ôl', - s: 'ychydig eiliadau', - ss: '%d eiliad', - m: 'munud', - mm: '%d munud', - h: 'awr', - hh: '%d awr', - d: 'diwrnod', - dd: '%d diwrnod', - M: 'mis', - MM: '%d mis', - y: 'blwyddyn', - yy: '%d flynedd', - }, - dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/, - // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh - ordinal: function (number) { - var b = number, - output = '', - lookup = [ - '', - 'af', - 'il', - 'ydd', - 'ydd', - 'ed', - 'ed', - 'ed', - 'fed', - 'fed', - 'fed', // 1af to 10fed - 'eg', - 'fed', - 'eg', - 'eg', - 'fed', - 'eg', - 'eg', - 'fed', - 'eg', - 'fed', // 11eg to 20fed - ]; - if (b > 20) { - if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) { - output = 'fed'; // not 30ain, 70ain or 90ain - } else { - output = 'ain'; - } - } else if (b > 0) { - output = lookup[b]; - } - return number + output; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - return cy; + var _react = __webpack_require__(0); - }))); + var _react2 = _interopRequireDefault(_react); + var _classnames = __webpack_require__(2); - /***/ }), - /* 356 */ - /***/ (function(module, exports, __webpack_require__) { + var _classnames2 = _interopRequireDefault(_classnames); - //! moment.js locale configuration - //! locale : Danish [da] - //! author : Ulrik Nielsen : https://github.com/mrbase + var _beeInputGroup = __webpack_require__(695); - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _beeInputGroup2 = _interopRequireDefault(_beeInputGroup); - //! moment.js locale configuration + var _beeFormControl = __webpack_require__(700); - var da = moment.defineLocale('da', { - months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split( - '_' - ), - monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'), - weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'), - weekdaysShort: 'søn_man_tir_ons_tor_fre_lør'.split('_'), - weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY HH:mm', - LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm', - }, - calendar: { - sameDay: '[i dag kl.] LT', - nextDay: '[i morgen kl.] LT', - nextWeek: 'på dddd [kl.] LT', - lastDay: '[i går kl.] LT', - lastWeek: '[i] dddd[s kl.] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'om %s', - past: '%s siden', - s: 'få sekunder', - ss: '%d sekunder', - m: 'et minut', - mm: '%d minutter', - h: 'en time', - hh: '%d timer', - d: 'en dag', - dd: '%d dage', - M: 'en måned', - MM: '%d måneder', - y: 'et år', - yy: '%d år', - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var _beeFormControl2 = _interopRequireDefault(_beeFormControl); - return da; + var _beeMessage = __webpack_require__(236); - }))); + var _beeMessage2 = _interopRequireDefault(_beeMessage); + var _propTypes = __webpack_require__(1); - /***/ }), - /* 357 */ - /***/ (function(module, exports, __webpack_require__) { + var _propTypes2 = _interopRequireDefault(_propTypes); - //! moment.js locale configuration - //! locale : German [de] - //! author : lluchs : https://github.com/lluchs - //! author: Menelion Elensúle: https://github.com/Oire - //! author : Mikolaj Dadela : https://github.com/mik01aj + var _i18n = __webpack_require__(729); - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _i18n2 = _interopRequireDefault(_i18n); - //! moment.js locale configuration + var _tool = __webpack_require__(730); - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - m: ['eine Minute', 'einer Minute'], - h: ['eine Stunde', 'einer Stunde'], - d: ['ein Tag', 'einem Tag'], - dd: [number + ' Tage', number + ' Tagen'], - M: ['ein Monat', 'einem Monat'], - MM: [number + ' Monate', number + ' Monaten'], - y: ['ein Jahr', 'einem Jahr'], - yy: [number + ' Jahre', number + ' Jahren'], + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + + var propTypes = { + max: _propTypes2["default"].number, + min: _propTypes2["default"].number, + step: _propTypes2["default"].number, + autoWidth: _propTypes2["default"].bool, + precision: _propTypes2["default"].number, + format: _propTypes2["default"].func, + delay: _propTypes2["default"].number, + disabled: _propTypes2["default"].bool, + toThousands: _propTypes2["default"].bool, + locale: _propTypes2["default"].object, + toNumber: _propTypes2["default"].bool, //回调函数内的值是否转换为数值类型 + displayCheckPrompt: _propTypes2["default"].bool, //是否显示超出限制范围之后的检验提示 + minusRight: _propTypes2["default"].bool, //负号是否在右边 + handleBtnClick: _propTypes2["default"].func, //加减按钮点击回调 + hideActionButton: _propTypes2["default"].bool //隐藏加减按钮 + }; + + var defaultProps = { + value: "", + step: 1, + clsPrefix: 'u-input-number', + iconStyle: 'double', + autoWidth: false, + delay: 300, + toNumber: false, + displayCheckPrompt: false, + locale: {}, + handleBtnClick: function handleBtnClick() {} + }; + + //校验提示 + function prompt(content) { + _beeMessage2["default"].destroy(); + _beeMessage2["default"].create({ content: content, color: 'warninglight' }); + } + + /** + * 千分符 + * @param {要转换的数据} num + */ + function toThousands(number) { + if (number === '') return ''; + if (number === '0') return '0'; + var num = (number || 0).toString(); + var integer = num.split('.')[0]; + var decimal = num.split('.')[1] || ''; + var result = ''; + while (integer.length > 3) { + result = ',' + integer.slice(-3) + result; + integer = integer.slice(0, integer.length - 3); + } + if (integer) { + result = integer + result; + if (num == '.' || num.indexOf('.') == num.length - 1) { + result = result + '.' + decimal; + } else if (decimal) { + result = result + '.' + decimal; + } + } + if (result[0] == '-') { + result = result.replace('-,', '-'); + } + return result; + } + + function setCaretPosition(ctrl, pos, need) { + + if (ctrl && need) { + if (ctrl.setSelectionRange) { + ctrl.focus(); + ctrl.setSelectionRange(pos, pos); + // IE8 and below + } else if (ctrl.createTextRange) { + var range = ctrl.createTextRange(); + range.collapse(true); + range.moveEnd('character', pos); + range.moveStart('character', pos); + range.select(); + } + } + } + + var InputNumber = function (_Component) { + _inherits(InputNumber, _Component); + + function InputNumber(props) { + _classCallCheck(this, InputNumber); + + // 初始化状态,加减按钮是否可用,根据当前值判断 + + var _this = _possibleConstructorReturn(this, _Component.call(this, props)); + + _initialiseProps.call(_this); + + var data = _this.judgeValue(props); + _this.state = { + value: data.value, + minusDisabled: data.minusDisabled, + plusDisabled: data.plusDisabled, + showValue: toThousands(data.value), + placeholderShow: true }; - return withoutSuffix ? format[key][0] : format[key][1]; + + _this.timer = null; + _this.focus = false; + _this.selectionStart = 0; + return _this; } - var de = moment.defineLocale('de', { - months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split( - '_' - ), - monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split( - '_' - ), - weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'), - weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY HH:mm', - LLLL: 'dddd, D. MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[heute um] LT [Uhr]', - sameElse: 'L', - nextDay: '[morgen um] LT [Uhr]', - nextWeek: 'dddd [um] LT [Uhr]', - lastDay: '[gestern um] LT [Uhr]', - lastWeek: '[letzten] dddd [um] LT [Uhr]', - }, - relativeTime: { - future: 'in %s', - past: 'vor %s', - s: 'ein paar Sekunden', - ss: '%d Sekunden', - m: processRelativeTime, - mm: '%d Minuten', - h: processRelativeTime, - hh: '%d Stunden', - d: processRelativeTime, - dd: processRelativeTime, - M: processRelativeTime, - MM: processRelativeTime, - y: processRelativeTime, - yy: processRelativeTime, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + // unThousands = (number) =>{ + // if(!number || number === "")return number; + // number = number.toString(); + // return number.replace(new RegExp(this.props.formatSymbol,'g'),''); + // // return number.replace(/\,/g,''); + // } - return de; + /** + * 校验value + * @param {*} props + * @param {原来的值} oldValue + */ - }))); + InputNumber.prototype.componentDidMount = function componentDidMount() { + this.setState({ + value: this.props.value, + showValue: toThousands(this.props.value) + }); + }; - /***/ }), - /* 358 */ - /***/ (function(module, exports, __webpack_require__) { + InputNumber.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { + if (this.focus) { + if (nextProps.value == Infinity || nextProps.value == -Infinity) {} else { + this.setState({ + value: nextProps.value, + showValue: toThousands(nextProps.value) + }); + } + } else { + var data = this.judgeValue(nextProps, this.state.value); + this.setState({ + value: data.value, + showValue: toThousands(data.value), + minusDisabled: data.minusDisabled, + plusDisabled: data.plusDisabled + }); + } + }; - //! moment.js locale configuration - //! locale : German (Austria) [de-at] - //! author : lluchs : https://github.com/lluchs - //! author: Menelion Elensúle: https://github.com/Oire - //! author : Martin Groller : https://github.com/MadMG - //! author : Mikolaj Dadela : https://github.com/mik01aj + InputNumber.prototype.ComponentWillUnMount = function ComponentWillUnMount() { + this.clear(); + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + /** + * @memberof InputNumber + * type 是否要四舍五入(此参数无效,超长不让输入) + */ - //! moment.js locale configuration + /** + * 恢复科学技术法的问题 + */ - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - m: ['eine Minute', 'einer Minute'], - h: ['eine Stunde', 'einer Stunde'], - d: ['ein Tag', 'einem Tag'], - dd: [number + ' Tage', number + ' Tagen'], - M: ['ein Monat', 'einem Monat'], - MM: [number + ' Monate', number + ' Monaten'], - y: ['ein Jahr', 'einem Jahr'], - yy: [number + ' Jahre', number + ' Jahren'], + /** + * 设置增加减少按钮是否可用 + */ + + /** + * 减法 + */ + + /** + * 加法 + */ + + + /** + * 分离小数和整数 + * @param value + * @returns {*} + */ + + + InputNumber.prototype.render = function render() { + var _classes, + _this2 = this; + + var _props = this.props, + toThousands = _props.toThousands, + minusRight = _props.minusRight, + max = _props.max, + min = _props.min, + step = _props.step, + disabled = _props.disabled, + clsPrefix = _props.clsPrefix, + className = _props.className, + delay = _props.delay, + onBlur = _props.onBlur, + onFocus = _props.onFocus, + iconStyle = _props.iconStyle, + autoWidth = _props.autoWidth, + onChange = _props.onChange, + format = _props.format, + precision = _props.precision, + toNumber = _props.toNumber, + hideActionButton = _props.hideActionButton, + others = _objectWithoutProperties(_props, ['toThousands', 'minusRight', 'max', 'min', 'step', 'disabled', 'clsPrefix', 'className', 'delay', 'onBlur', 'onFocus', 'iconStyle', 'autoWidth', 'onChange', 'format', 'precision', 'toNumber', 'hideActionButton']); + + var classes = (_classes = {}, _defineProperty(_classes, clsPrefix + '-auto', autoWidth), _defineProperty(_classes, '' + clsPrefix, true), _defineProperty(_classes, clsPrefix + '-lg', others.size === "lg"), _defineProperty(_classes, clsPrefix + '-sm', others.size === "sm"), _classes); + + var _state = this.state, + value = _state.value, + minusDisabled = _state.minusDisabled, + plusDisabled = _state.plusDisabled, + showValue = _state.showValue; + + value = precision != null && !this.focus ? this.getPrecision(value) : value; + value = format && !this.focus ? format(value) : value; + value = String(value).indexOf("e") !== -1 ? this.getFullNum(value) : value; + if (minusRight && String(value).indexOf('-') != -1) { + value = String(value).replace("-", "") + "-"; + } + var disabledCursor = disabled ? ' disabled-cursor' : ''; + var disabledCon = disabled ? ' disabled-con' : ''; + return _react2["default"].createElement( + 'div', + { className: clsPrefix + '-out' }, + iconStyle === 'double' ? _react2["default"].createElement( + _beeInputGroup2["default"], + { className: (0, _classnames2["default"])(className, classes, disabledCon) }, + this.isIE() && !value ? _react2["default"].createElement( + 'div', + { onClick: this.placeholderClick, style: { 'display': this.state.placeholderShow ? 'block' : 'none' }, className: clsPrefix + '-placeholder' }, + this.props.placeholder + ) : '', + hideActionButton ? '' : _react2["default"].createElement( + _beeInputGroup2["default"].Addon, + { + // onClick={()=>{minusDisabled?'':this.handleBtnClick('down')}} + className: (minusDisabled && 'disabled') + disabledCursor, + onMouseDown: this.handleReduceMouseDown, + onMouseLeave: this.clear, + onMouseUp: this.clear }, + '-' + ), + _react2["default"].createElement(_beeFormControl2["default"], _extends({}, others, { + value: toThousands ? showValue : value, + disabled: disabled, + onBlur: this.handleBlur, + onFocus: this.handleFocus, + onChange: this.handleChange, + ref: function ref(_ref) { + return _this2.input = _ref; + } + })), + hideActionButton ? '' : _react2["default"].createElement( + _beeInputGroup2["default"].Addon, + { + // onClick={()=>{plusDisabled?'':this.handleBtnClick('up')}} + className: (plusDisabled && 'disabled') + disabledCursor, + onMouseDown: this.handlePlusMouseDown, + onMouseLeave: this.clear, + onMouseUp: this.clear }, + '+' + ) + ) : _react2["default"].createElement( + _beeInputGroup2["default"], + { + className: (0, _classnames2["default"])(className, classes, disabledCon), + simple: true + }, + this.isIE() && !value ? _react2["default"].createElement( + 'div', + { onClick: this.placeholderClick, style: { 'display': this.state.placeholderShow ? 'block' : 'none' }, className: clsPrefix + '-placeholder' }, + this.props.placeholder + ) : '', + _react2["default"].createElement(_beeFormControl2["default"], _extends({}, others, { + value: toThousands ? showValue : value, + disabled: disabled, + onBlur: this.handleBlur, + onFocus: this.handleFocus, + onChange: this.handleChange, + ref: function ref(_ref2) { + return _this2.input = _ref2; + } + })), + hideActionButton ? '' : _react2["default"].createElement( + _beeInputGroup2["default"].Button, + null, + _react2["default"].createElement( + 'div', + { className: (0, _classnames2["default"])("icon-group") }, + _react2["default"].createElement( + 'span', + { + // onClick={()=>{plusDisabled?'':this.handleBtnClick('up')}} + onMouseDown: this.handlePlusMouseDown, + onMouseLeave: this.clear, + onMouseUp: this.clear, + className: (0, _classnames2["default"])('plus', { 'disabled': plusDisabled, 'disabled-cursor': disabledCursor }) }, + _react2["default"].createElement('span', { className: 'uf uf-arrow-up' }) + ), + _react2["default"].createElement( + 'span', + { + // onClick={()=> minusDisabled?'':this.handleBtnClick('down')} + onMouseDown: this.handleReduceMouseDown, + onMouseLeave: this.clear, + onMouseUp: this.clear, + className: (0, _classnames2["default"])("reduce", { 'disabled': minusDisabled, 'disabled-cursor': disabledCursor }) }, + _react2["default"].createElement('span', { className: ' uf uf-arrow-down' }) + ) + ) + ) + ) + ); + }; + + return InputNumber; + }(_react.Component); + + var _initialiseProps = function _initialiseProps() { + var _this3 = this; + + this.judgeValue = function (props, oldValue) { + var currentValue = void 0; + var currentMinusDisabled = false; + var currentPlusDisabled = false; + var value = props.value, + min = props.min, + max = props.max, + precision = props.precision, + onChange = props.onChange, + displayCheckPrompt = props.displayCheckPrompt; + + if (props.minusRight) { + value = value.toString(); + if (value.indexOf('-') != -1) { + //所有位置的负号转到前边 + value = value.replace('-', ''); + value = '-' + value; + } + value = Number(value); + } + if (value != undefined && value != null) { + if (value === '') { + currentValue = ''; + return { + value: '', + minusDisabled: false, + plusDisabled: false + }; + } else { + currentValue = Number(value) || 0; + } + } //lse if (min&&(value!='')) {//mdd中提出bug + //currentValue = min; + //} + else if (value === '0' || value === 0) { + currentValue = 0; + } else { + //NaN + if (oldValue || oldValue === 0 || oldValue === '0') { + currentValue = oldValue; + } else { + //value为空 + return { + value: '', + minusDisabled: false, + plusDisabled: false + }; + } + } + if (currentValue == -Infinity) { + return { + value: min, + minusDisabled: true, + plusDisabled: false + }; + } + if (currentValue == Infinity) { + return { + value: max, + minusDisabled: false, + plusDisabled: true + }; + } + var local = (0, _tool.getComponentLocale)(props, _this3.context, 'InputNumber', function () { + return _i18n2["default"]; + }); + if (min && currentValue <= min) { + if (displayCheckPrompt) prompt(local['msgMin']); + currentMinusDisabled = true; + currentValue = min; + } + if (max && currentValue >= max) { + if (displayCheckPrompt) prompt(local['msgMax']); + currentPlusDisabled = true; + currentValue = max; + } + + if (props.hasOwnProperty('precision')) { + // currentValue = Number(currentValue).toFixed(precision); + currentValue = _this3.getPrecision(currentValue); + } + if (props.minusRight) { + currentValue = currentValue.toString(); + if (currentValue.indexOf('-') != -1) { + //负号转到后边 + currentValue = currentValue.replace('-', ''); + currentValue = currentValue + '-'; + } + } + + return { + value: currentValue, + minusDisabled: currentMinusDisabled, + plusDisabled: currentPlusDisabled }; - return withoutSuffix ? format[key][0] : format[key][1]; - } + }; - var deAt = moment.defineLocale('de-at', { - months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split( - '_' - ), - monthsShort: 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split( - '_' - ), - weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'), - weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY HH:mm', - LLLL: 'dddd, D. MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[heute um] LT [Uhr]', - sameElse: 'L', - nextDay: '[morgen um] LT [Uhr]', - nextWeek: 'dddd [um] LT [Uhr]', - lastDay: '[gestern um] LT [Uhr]', - lastWeek: '[letzten] dddd [um] LT [Uhr]', - }, - relativeTime: { - future: 'in %s', - past: 'vor %s', - s: 'ein paar Sekunden', - ss: '%d Sekunden', - m: processRelativeTime, - mm: '%d Minuten', - h: processRelativeTime, - hh: '%d Stunden', - d: processRelativeTime, - dd: processRelativeTime, - M: processRelativeTime, - MM: processRelativeTime, - y: processRelativeTime, - yy: processRelativeTime, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + this.numToFixed = function (value, fixed, type) { + value = String(value); + if (!value && value !== "0") return value; + if (!fixed && String(fixed) !== "0") return value; + var preIndex = value.indexOf("."); + if (value.indexOf(".") === -1) return value; + preIndex++; + var endIndex = preIndex + fixed; + var precValue = value.substr(preIndex, endIndex) + "0000000000"; + if (type) { + return Number(value).toFixed(fixed); + } + return value.split(".")[0] + "." + precValue.substr(0, fixed); + }; - return deAt; + this.handleChange = function (value) { + var selectionStart = _this3.input.selectionStart == undefined ? _this3.input.input.selectionStart : _this3.input.selectionStart; + _this3.selectionStart = selectionStart; + var _props2 = _this3.props, + onChange = _props2.onChange, + toNumber = _props2.toNumber, + minusRight = _props2.minusRight; - }))); + if (value === '') { + onChange && onChange(value); + _this3.setState({ + value: value, + showValue: '' + }); + return; + } + // value = this.unThousands(value); + if (minusRight) { + if (value.match(/-/g) && value.match(/-/g).length > 1) return; + } + if (isNaN(value) && value !== '.' && value !== '-') return; + if (value.indexOf(".") !== -1) { + //小数最大值处理 + var prec = String(value.split(".")[1]).replace("-", ""); + if (_this3.props.precision === 0 && (prec === "" || prec != "")) return; + if (_this3.props.precision && prec.length > _this3.props.precision) return; + if (prec.length > 8) return; + } + _this3.setState({ + value: value, + showValue: toThousands(value) + }); + if (value === '-') { + onChange && onChange(value); + } else if (value == '.' || value.indexOf('.') == value.length - 1) { + //当输入小数点的时候 + onChange && onChange(value); + } else if (value[value.indexOf('.') + 1] == 0) { + //当输入 d.0 的时候,不转换Number + onChange && onChange(value); + } else { + toNumber ? onChange && onChange(Number(value)) : onChange && onChange(value); + } + if (_this3.props.toThousands) { + var stateShowValue = toThousands(_this3.state.value); + var showValue = toThousands(value); + var addNumber = 0; + var delNumber = 0; + var reg = /[0-9]/; + for (var i = 0; i < selectionStart; i++) { + if (!reg.test(showValue[i])) addNumber += 1; + } + for (var j = 0; j < selectionStart; j++) { + if (stateShowValue[j]) { + if (!reg.test(stateShowValue[j])) delNumber += 1; + } + } + var position = selectionStart + addNumber - delNumber; + setCaretPosition(_this3.input && _this3.input.input, position, true); + } + }; + this.handleFocus = function (value, e) { + _this3.focus = true; + var _props3 = _this3.props, + onFocus = _props3.onFocus, + min = _props3.min, + max = _props3.max; - /***/ }), - /* 359 */ - /***/ (function(module, exports, __webpack_require__) { + onFocus && onFocus(_this3.getPrecision(_this3.state.value), e); + }; - //! moment.js locale configuration - //! locale : German (Switzerland) [de-ch] - //! author : sschueller : https://github.com/sschueller + this.getFullNum = function (num) { + //处理非数字 + if (isNaN(num)) { + return num; + }; + + //处理不需要转换的数字 + var str = '' + num; + if (!/e/i.test(str)) { + return num; + }; + var _precision = _this3.props.precision ? _this3.props.precision : 18; + return Number(num).toFixed(_precision).replace(/\.?0+$/, ""); + }; + + this.handleBlur = function (v, e) { + _this3.focus = false; + var _props4 = _this3.props, + onBlur = _props4.onBlur, + precision = _props4.precision, + onChange = _props4.onChange, + toNumber = _props4.toNumber, + max = _props4.max, + min = _props4.min, + displayCheckPrompt = _props4.displayCheckPrompt, + minusRight = _props4.minusRight, + round = _props4.round; + + var local = (0, _tool.getComponentLocale)(_this3.props, _this3.context, 'InputNumber', function () { + return _i18n2["default"]; + }); + v = _this3.state.value; //在onBlur的时候不需要活输入框的只,而是要获取state中的值,因为有format的时候就会有问题。 + if (v === '' || !v) { + _this3.setState({ + value: v + }); + onChange && onChange(v); + onBlur && onBlur(v, e); + return; + } + // let value = this.unThousands(v); + var value = _this3.numToFixed(v, precision, round); + if (minusRight) { + if (value.indexOf('-') != -1) { + //所有位置的负号转到前边 + value = value.replace('-', ''); + value = '-' + value; + } + } + value = isNaN(Number(value)) ? 0 : Number(value); + if ((max || max === 0) && value > max) { + if (displayCheckPrompt) prompt(local['msgMax']); + value = max; + } + if ((min || min === 0) && value < min) { + if (displayCheckPrompt) prompt(local['msgMin']); + value = min; + } + if (_this3.props.hasOwnProperty('precision')) { + // value = value.toFixed(precision); + value = _this3.getPrecision(value); + } + value = value.toString(); + if (minusRight && value.indexOf('-') != -1) { + //负号转到后边 + value = value.replace('-', ''); + value = value + '-'; + } + _this3.setState({ + value: value, + showValue: toThousands(value), + placeholderShow: true + }); + _this3.detailDisable(value); + if (toNumber && !minusRight) { + onChange && onChange(value); + onBlur && onBlur(value, e); + } else { + onChange && onChange(value); + onBlur && onBlur(value, e); + } + }; + + this.detailDisable = function (value) { + var _props5 = _this3.props, + max = _props5.max, + min = _props5.min, + step = _props5.step; + + if (max && (value >= max || Number(value) + Number(step) > max)) { + _this3.setState({ + plusDisabled: true + }); + } else { + _this3.setState({ + plusDisabled: false + }); + } + if (min && (value <= min || value - step < min)) { + _this3.setState({ + minusDisabled: true + }); + } else { + _this3.setState({ + minusDisabled: false + }); + } + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + this.minus = function (value) { + var _props6 = _this3.props, + min = _props6.min, + max = _props6.max, + step = _props6.step, + onChange = _props6.onChange, + toNumber = _props6.toNumber; - //! moment.js locale configuration + value = value === '-' ? 0 : value; + if (typeof min === "undefined") { + value = _this3.detail(value, step, 'reduce'); + } else { + min = Number(min); + if (value < min) { + value = min; + } else { + var reducedValue = _this3.detail(value, step, 'reduce'); + if (reducedValue >= min) { + value = reducedValue; + } + } + } + if (max) { + max = Number(max); + if (value > max) { + value = max; + } + } - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - m: ['eine Minute', 'einer Minute'], - h: ['eine Stunde', 'einer Stunde'], - d: ['ein Tag', 'einem Tag'], - dd: [number + ' Tage', number + ' Tagen'], - M: ['ein Monat', 'einem Monat'], - MM: [number + ' Monate', number + ' Monaten'], - y: ['ein Jahr', 'einem Jahr'], - yy: [number + ' Jahre', number + ' Jahren'], - }; - return withoutSuffix ? format[key][0] : format[key][1]; - } + _this3.setState({ + value: value, + showValue: toThousands(value) + }, function () { + _this3.input.input.focus && _this3.input.input.focus(); + }); + toNumber ? onChange && onChange(Number(value)) : onChange && onChange(value); + _this3.handleBtnClick('down', value); + _this3.detailDisable(value); + }; - var deCh = moment.defineLocale('de-ch', { - months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split( - '_' - ), - monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split( - '_' - ), - weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), - weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY HH:mm', - LLLL: 'dddd, D. MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[heute um] LT [Uhr]', - sameElse: 'L', - nextDay: '[morgen um] LT [Uhr]', - nextWeek: 'dddd [um] LT [Uhr]', - lastDay: '[gestern um] LT [Uhr]', - lastWeek: '[letzten] dddd [um] LT [Uhr]', - }, - relativeTime: { - future: 'in %s', - past: 'vor %s', - s: 'ein paar Sekunden', - ss: '%d Sekunden', - m: processRelativeTime, - mm: '%d Minuten', - h: processRelativeTime, - hh: '%d Stunden', - d: processRelativeTime, - dd: processRelativeTime, - M: processRelativeTime, - MM: processRelativeTime, - y: processRelativeTime, - yy: processRelativeTime, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + this.plus = function (value) { + var _props7 = _this3.props, + max = _props7.max, + min = _props7.min, + step = _props7.step, + onChange = _props7.onChange, + toNumber = _props7.toNumber; - return deCh; + value = value === '-' ? 0 : value; + if (typeof max === "undefined") { + value = _this3.detail(value, step, 'add'); + } else { + max = Number(max); + if (max && value > max) { + value = max; + } else { + var addedValue = _this3.detail(value, step, 'add'); + if (max && addedValue <= max) { + value = addedValue; + } + } + } + if (min) { + min = Number(min); + if (value < min) { + value = min; + } + } - }))); + _this3.setState({ + value: value, + showValue: toThousands(value) + }, function () { + _this3.input.input.focus && _this3.input.input.focus(); + }); + toNumber ? onChange && onChange(Number(value)) : onChange && onChange(value); + _this3.handleBtnClick('up', value); + _this3.detailDisable(value); + }; + this.detail = function (value, step, type) { + var precision = _this3.props.precision; - /***/ }), - /* 360 */ - /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Maldivian [dv] - //! author : Jawish Hameed : https://github.com/jawish + var valueFloat = _this3.separate(value); + var stepFloat = _this3.separate(step); - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var ans = void 0; + var stepFloatLength = stepFloat.toString().length; + var valueFloatLength = valueFloat.toString().length; - //! moment.js locale configuration + if (typeof precision === 'undefined') { + precision = Math.max(stepFloatLength, valueFloatLength); + } + var coefficient = Math.pow(10, Math.abs(stepFloatLength - valueFloatLength)); + if (type === 'add') { + ans = (value * coefficient + step * coefficient) / coefficient; + } else { + ans = (value * coefficient - step * coefficient) / coefficient; + } - var months = [ - 'ޖެނުއަރީ', - 'ފެބްރުއަރީ', - 'މާރިޗު', - 'އޭޕްރީލު', - 'މޭ', - 'ޖޫން', - 'ޖުލައި', - 'އޯގަސްޓު', - 'ސެޕްޓެމްބަރު', - 'އޮކްޓޯބަރު', - 'ނޮވެމްބަރު', - 'ޑިސެމްބަރު', - ], - weekdays = [ - 'އާދިއްތަ', - 'ހޯމަ', - 'އަންގާރަ', - 'ބުދަ', - 'ބުރާސްފަތި', - 'ހުކުރު', - 'ހޮނިހިރު', - ]; + return ans.toFixed(precision); + }; - var dv = moment.defineLocale('dv', { - months: months, - monthsShort: months, - weekdays: weekdays, - weekdaysShort: weekdays, - weekdaysMin: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'D/M/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - meridiemParse: /މކ|މފ/, - isPM: function (input) { - return 'މފ' === input; - }, - meridiem: function (hour, minute, isLower) { - if (hour < 12) { - return 'މކ'; + this.separate = function (value) { + if (value == null || value == undefined) { + return ""; + } else { + value = value.toString(); + if (value.indexOf('.') > -1) { + return value.split('.')[1]; } else { - return 'މފ'; + return ""; } - }, - calendar: { - sameDay: '[މިއަދު] LT', - nextDay: '[މާދަމާ] LT', - nextWeek: 'dddd LT', - lastDay: '[އިއްޔެ] LT', - lastWeek: '[ފާއިތުވި] dddd LT', - sameElse: 'L', - }, - relativeTime: { - future: 'ތެރޭގައި %s', - past: 'ކުރިން %s', - s: 'ސިކުންތުކޮޅެއް', - ss: 'd% ސިކުންތު', - m: 'މިނިޓެއް', - mm: 'މިނިޓު %d', - h: 'ގަޑިއިރެއް', - hh: 'ގަޑިއިރު %d', - d: 'ދުވަހެއް', - dd: 'ދުވަސް %d', - M: 'މަހެއް', - MM: 'މަސް %d', - y: 'އަހަރެއް', - yy: 'އަހަރު %d', - }, - preparse: function (string) { - return string.replace(/،/g, ','); - }, - postformat: function (string) { - return string.replace(/,/g, '،'); - }, - week: { - dow: 7, // Sunday is the first day of the week. - doy: 12, // The week that contains Jan 12th is the first week of the year. - }, - }); - - return dv; + } + }; - }))); + this.clear = function () { + if (_this3.timer) { + clearTimeout(_this3.timer); + } + }; + this.handlePlusMouseDown = function (e) { + e.preventDefault && e.preventDefault(); + var _props8 = _this3.props, + delay = _props8.delay, + disabled = _props8.disabled; + var value = _this3.state.value; - /***/ }), - /* 361 */ - /***/ (function(module, exports, __webpack_require__) { + if (disabled) return; + _this3.plus(value); + _this3.clear(); + _this3.timer = setTimeout(function () { + _this3.handlePlusMouseDown(e); + }, delay); + }; - //! moment.js locale configuration - //! locale : Greek [el] - //! author : Aggelos Karalias : https://github.com/mehiel + this.handleReduceMouseDown = function (e) { + e.preventDefault && e.preventDefault(); + var _props9 = _this3.props, + delay = _props9.delay, + disabled = _props9.disabled; + var value = _this3.state.value; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + if (disabled) return; + _this3.minus(value); + _this3.clear(); + _this3.timer = setTimeout(function () { + _this3.handleReduceMouseDown(e); + }, delay); + }; - //! moment.js locale configuration + this.getPrecision = function (value) { + if (value == null || value == undefined) return value; + if (!value && value === "") return value; + value = String(value); + value = value.indexOf("e") !== -1 ? _this3.getFullNum(value) : value; + var precision = _this3.props.precision; - function isFunction(input) { - return ( - (typeof Function !== 'undefined' && input instanceof Function) || - Object.prototype.toString.call(input) === '[object Function]' - ); - } + if (precision === 0) return value; + if (precision == undefined || value.indexOf(".") !== -1 && String(value.split(".")[1]).length === precision) { + return value; + } + var before = value.substring(0, 1), + len = value.length, + after = value.substring(len - 1, len); + before = before === "-" ? before : ""; + after = after === "-" ? after : ""; + //是科学计数法,不replace - + if (before) value = value.substring(1, len); + if (after) value = value.substring(0, len - 1); + // value = value.replace("-",''); + var precV = "000000000000000000000000000000000000000000000000000000000000000000000000"; + if (value.indexOf(".") === -1) { + precV = precV.substr(0, precision); + precV = precV ? "." + precV : precV; + if (!isNaN(value) && (value.indexOf('-') != -1 || value.indexOf('+') != -1) && value.indexOf('e') != -1) {//是科学计数法,不拼接0000000 - var el = moment.defineLocale('el', { - monthsNominativeEl: 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split( - '_' - ), - monthsGenitiveEl: 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split( - '_' - ), - months: function (momentToFormat, format) { - if (!momentToFormat) { - return this._monthsNominativeEl; - } else if ( - typeof format === 'string' && - /D/.test(format.substring(0, format.indexOf('MMMM'))) - ) { - // if there is a day number before 'MMMM' - return this._monthsGenitiveEl[momentToFormat.month()]; - } else { - return this._monthsNominativeEl[momentToFormat.month()]; - } - }, - monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'), - weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split( - '_' - ), - weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'), - weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'), - meridiem: function (hours, minutes, isLower) { - if (hours > 11) { - return isLower ? 'μμ' : 'ΜΜ'; } else { - return isLower ? 'πμ' : 'ΠΜ'; - } - }, - isPM: function (input) { - return (input + '').toLowerCase()[0] === 'μ'; - }, - meridiemParse: /[ΠΜ]\.?Μ?\.?/i, - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY h:mm A', - LLLL: 'dddd, D MMMM YYYY h:mm A', - }, - calendarEl: { - sameDay: '[Σήμερα {}] LT', - nextDay: '[Αύριο {}] LT', - nextWeek: 'dddd [{}] LT', - lastDay: '[Χθες {}] LT', - lastWeek: function () { - switch (this.day()) { - case 6: - return '[το προηγούμενο] dddd [{}] LT'; - default: - return '[την προηγούμενη] dddd [{}] LT'; - } - }, - sameElse: 'L', - }, - calendar: function (key, mom) { - var output = this._calendarEl[key], - hours = mom && mom.hours(); - if (isFunction(output)) { - output = output.apply(mom); + value = value + precV; } - return output.replace('{}', hours % 12 === 1 ? 'στη' : 'στις'); - }, - relativeTime: { - future: 'σε %s', - past: '%s πριν', - s: 'λίγα δευτερόλεπτα', - ss: '%d δευτερόλεπτα', - m: 'ένα λεπτό', - mm: '%d λεπτά', - h: 'μία ώρα', - hh: '%d ώρες', - d: 'μία μέρα', - dd: '%d μέρες', - M: 'ένας μήνας', - MM: '%d μήνες', - y: 'ένας χρόνος', - yy: '%d χρόνια', - }, - dayOfMonthOrdinalParse: /\d{1,2}η/, - ordinal: '%dη', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4st is the first week of the year. - }, - }); + } + return before + Number(value).toFixed(precision) + after; + }; - return el; + this.handleBtnClick = function (type, value) { + _this3.props.handleBtnClick(type, value); + }; - }))); + this.isIE = function () { + if (window) { + if (!!window.ActiveXObject || "ActiveXObject" in window) return true; + } + return false; + }; + + this.placeholderClick = function () { + _this3.input.input.focus(); + _this3.setState({ + placeholderShow: false + }); + }; + }; + + ; + InputNumber.defaultProps = defaultProps; + InputNumber.propTypes = propTypes; + InputNumber.contextTypes = { + beeLocale: _propTypes2["default"].object + }; + exports["default"] = InputNumber; + module.exports = exports['default']; /***/ }), - /* 362 */ + /* 236 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : English (Australia) [en-au] - //! author : Jared Morse : https://github.com/jarcoal + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration + Object.defineProperty(exports, "__esModule", { + value: true + }); - var enAu = moment.defineLocale('en-au', { - months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), - weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( - '_' - ), - weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY h:mm A', - LLLL: 'dddd, D MMMM YYYY h:mm A', - }, - calendar: { - sameDay: '[Today at] LT', - nextDay: '[Tomorrow at] LT', - nextWeek: 'dddd [at] LT', - lastDay: '[Yesterday at] LT', - lastWeek: '[Last] dddd [at] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'in %s', - past: '%s ago', - s: 'a few seconds', - ss: '%d seconds', - m: 'a minute', - mm: '%d minutes', - h: 'an hour', - hh: '%d hours', - d: 'a day', - dd: '%d days', - M: 'a month', - MM: '%d months', - y: 'a year', - yy: '%d years', - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal: function (number) { - var b = number % 10, - output = - ~~((number % 100) / 10) === 1 - ? 'th' - : b === 1 - ? 'st' - : b === 2 - ? 'nd' - : b === 3 - ? 'rd' - : 'th'; - return number + output; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var _Message = __webpack_require__(702); - return enAu; + var _Message2 = _interopRequireDefault(_Message); - }))); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + exports["default"] = _Message2["default"]; + module.exports = exports['default']; /***/ }), - /* 363 */ + /* 237 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : English (Canada) [en-ca] - //! author : Jonathan Abourbih : https://github.com/jonbca + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration + exports.__esModule = true; + /** + * This source code is quoted from rc-util. + * homepage: https://github.com/react-component/util + */ + function createChainedFunction() { + for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) { + funcs[_key] = arguments[_key]; + } - var enCa = moment.defineLocale('en-ca', { - months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), - weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( - '_' - ), - weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'YYYY-MM-DD', - LL: 'MMMM D, YYYY', - LLL: 'MMMM D, YYYY h:mm A', - LLLL: 'dddd, MMMM D, YYYY h:mm A', - }, - calendar: { - sameDay: '[Today at] LT', - nextDay: '[Tomorrow at] LT', - nextWeek: 'dddd [at] LT', - lastDay: '[Yesterday at] LT', - lastWeek: '[Last] dddd [at] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'in %s', - past: '%s ago', - s: 'a few seconds', - ss: '%d seconds', - m: 'a minute', - mm: '%d minutes', - h: 'an hour', - hh: '%d hours', - d: 'a day', - dd: '%d days', - M: 'a month', - MM: '%d months', - y: 'a year', - yy: '%d years', - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal: function (number) { - var b = number % 10, - output = - ~~((number % 100) / 10) === 1 - ? 'th' - : b === 1 - ? 'st' - : b === 2 - ? 'nd' - : b === 3 - ? 'rd' - : 'th'; - return number + output; - }, - }); + return funcs.filter(function (f) { + return f != null; + }).reduce(function (acc, f) { + if (typeof f !== 'function') { + throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.'); + } - return enCa; + if (acc === null) { + return f; + } - }))); + return function chainedFunction() { + for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + args[_key2] = arguments[_key2]; + } + acc.apply(this, args); + f.apply(this, args); + }; + }, null); + } + exports.default = createChainedFunction; /***/ }), - /* 364 */ + /* 238 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : English (Ireland) [en-ie] - //! author : Chris Cartlidge : https://github.com/chriscartlidge + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration + exports.__esModule = true; + exports.default = addEventListenerWrap; - var enIe = moment.defineLocale('en-ie', { - months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), - weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( - '_' - ), - weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Today at] LT', - nextDay: '[Tomorrow at] LT', - nextWeek: 'dddd [at] LT', - lastDay: '[Yesterday at] LT', - lastWeek: '[Last] dddd [at] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'in %s', - past: '%s ago', - s: 'a few seconds', - ss: '%d seconds', - m: 'a minute', - mm: '%d minutes', - h: 'an hour', - hh: '%d hours', - d: 'a day', - dd: '%d days', - M: 'a month', - MM: '%d months', - y: 'a year', - yy: '%d years', - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal: function (number) { - var b = number % 10, - output = - ~~((number % 100) / 10) === 1 - ? 'th' - : b === 1 - ? 'st' - : b === 2 - ? 'nd' - : b === 3 - ? 'rd' - : 'th'; - return number + output; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var _addDomEventListener = __webpack_require__(16); - return enIe; + var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener); - }))); + var _reactDom = __webpack_require__(3); + var _reactDom2 = _interopRequireDefault(_reactDom); - /***/ }), - /* 365 */ - /***/ (function(module, exports, __webpack_require__) { + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - //! moment.js locale configuration - //! locale : English (Israel) [en-il] - //! author : Chris Gedrim : https://github.com/chrisgedrim + /** + * This source code is quoted from rc-util. + * homepage: https://github.com/react-component/util + */ + function addEventListenerWrap(target, eventType, cb) { + /* eslint camelcase: 2 */ + var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) { + _reactDom2.default.unstable_batchedUpdates(cb, e); + } : cb; + return (0, _addDomEventListener2.default)(target, eventType, callback); + } - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + /***/ }), + /* 239 */ + /***/ (function(module, exports) { - //! moment.js locale configuration + module.exports = function(arr, obj){ + if (arr.indexOf) return arr.indexOf(obj); + for (var i = 0; i < arr.length; ++i) { + if (arr[i] === obj) return i; + } + return -1; + }; - var enIl = moment.defineLocale('en-il', { - months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), - weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( - '_' - ), - weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Today at] LT', - nextDay: '[Tomorrow at] LT', - nextWeek: 'dddd [at] LT', - lastDay: '[Yesterday at] LT', - lastWeek: '[Last] dddd [at] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'in %s', - past: '%s ago', - s: 'a few seconds', - ss: '%d seconds', - m: 'a minute', - mm: '%d minutes', - h: 'an hour', - hh: '%d hours', - d: 'a day', - dd: '%d days', - M: 'a month', - MM: '%d months', - y: 'a year', - yy: '%d years', - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal: function (number) { - var b = number % 10, - output = - ~~((number % 100) / 10) === 1 - ? 'th' - : b === 1 - ? 'st' - : b === 2 - ? 'nd' - : b === 3 - ? 'rd' - : 'th'; - return number + output; - }, - }); + /***/ }), + /* 240 */ + /***/ (function(module, exports, __webpack_require__) { - return enIl; + "use strict"; - }))); + Object.defineProperty(exports, "__esModule", { + value: true + }); + var util = { + isAppearSupported: function isAppearSupported(props) { + return props.transitionName && props.transitionAppear || props.animation.appear; + }, + isEnterSupported: function isEnterSupported(props) { + return props.transitionName && props.transitionEnter || props.animation.enter; + }, + isLeaveSupported: function isLeaveSupported(props) { + return props.transitionName && props.transitionLeave || props.animation.leave; + }, + allowAppearCallback: function allowAppearCallback(props) { + return props.transitionAppear || props.animation.appear; + }, + allowEnterCallback: function allowEnterCallback(props) { + return props.transitionEnter || props.animation.enter; + }, + allowLeaveCallback: function allowLeaveCallback(props) { + return props.transitionLeave || props.animation.leave; + } + }; + exports["default"] = util; + module.exports = exports["default"]; /***/ }), - /* 366 */ + /* 241 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : English (India) [en-in] - //! author : Jatin Agrawal : https://github.com/jatinag22 + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration + Object.defineProperty(exports, "__esModule", { + value: true + }); - var enIn = moment.defineLocale('en-in', { - months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), - weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( - '_' - ), - weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY h:mm A', - LLLL: 'dddd, D MMMM YYYY h:mm A', - }, - calendar: { - sameDay: '[Today at] LT', - nextDay: '[Tomorrow at] LT', - nextWeek: 'dddd [at] LT', - lastDay: '[Yesterday at] LT', - lastWeek: '[Last] dddd [at] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'in %s', - past: '%s ago', - s: 'a few seconds', - ss: '%d seconds', - m: 'a minute', - mm: '%d minutes', - h: 'an hour', - hh: '%d hours', - d: 'a day', - dd: '%d days', - M: 'a month', - MM: '%d months', - y: 'a year', - yy: '%d years', - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal: function (number) { - var b = number % 10, - output = - ~~((number % 100) / 10) === 1 - ? 'th' - : b === 1 - ? 'st' - : b === 2 - ? 'nd' - : b === 3 - ? 'rd' - : 'th'; - return number + output; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - return enIn; + var _classnames = __webpack_require__(2); - }))); + var _classnames2 = _interopRequireDefault(_classnames); + var _react = __webpack_require__(0); - /***/ }), - /* 367 */ - /***/ (function(module, exports, __webpack_require__) { + var _react2 = _interopRequireDefault(_react); - //! moment.js locale configuration - //! locale : English (New Zealand) [en-nz] - //! author : Luke McGregor : https://github.com/lukemcgregor + var _propTypes = __webpack_require__(1); - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _propTypes2 = _interopRequireDefault(_propTypes); - //! moment.js locale configuration + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - var enNz = moment.defineLocale('en-nz', { - months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), - weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( - '_' - ), - weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY h:mm A', - LLLL: 'dddd, D MMMM YYYY h:mm A', - }, - calendar: { - sameDay: '[Today at] LT', - nextDay: '[Tomorrow at] LT', - nextWeek: 'dddd [at] LT', - lastDay: '[Yesterday at] LT', - lastWeek: '[Last] dddd [at] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'in %s', - past: '%s ago', - s: 'a few seconds', - ss: '%d seconds', - m: 'a minute', - mm: '%d minutes', - h: 'an hour', - hh: '%d hours', - d: 'a day', - dd: '%d days', - M: 'a month', - MM: '%d months', - y: 'a year', - yy: '%d years', - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal: function (number) { - var b = number % 10, - output = - ~~((number % 100) / 10) === 1 - ? 'th' - : b === 1 - ? 'st' - : b === 2 - ? 'nd' - : b === 3 - ? 'rd' - : 'th'; - return number + output; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - return enNz; + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - }))); + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - /***/ }), - /* 368 */ - /***/ (function(module, exports, __webpack_require__) { + var propTypes = { - //! moment.js locale configuration - //! locale : English (Singapore) [en-sg] - //! author : Matthew Castrillon-Madrigal : https://github.com/techdimension + colors: _propTypes2["default"].oneOf(['', 'dark', 'success', 'info', 'warning', 'danger', 'primary']), - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + disabled: _propTypes2["default"].bool, - //! moment.js locale configuration + inverse: _propTypes2["default"].bool - var enSg = moment.defineLocale('en-sg', { - months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), - weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( - '_' - ), - weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Today at] LT', - nextDay: '[Tomorrow at] LT', - nextWeek: 'dddd [at] LT', - lastDay: '[Yesterday at] LT', - lastWeek: '[Last] dddd [at] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'in %s', - past: '%s ago', - s: 'a few seconds', - ss: '%d seconds', - m: 'a minute', - mm: '%d minutes', - h: 'an hour', - hh: '%d hours', - d: 'a day', - dd: '%d days', - M: 'a month', - MM: '%d months', - y: 'a year', - yy: '%d years', - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal: function (number) { - var b = number % 10, - output = - ~~((number % 100) / 10) === 1 - ? 'th' - : b === 1 - ? 'st' - : b === 2 - ? 'nd' - : b === 3 - ? 'rd' - : 'th'; - return number + output; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + }; - return enSg; + var defaultProps = { + disabled: false, + inverse: false, + colors: 'primary', + clsPrefix: 'u-checkbox', + defaultChecked: false, + onClick: function onClick() {} + }; + var clsPrefix = 'u-checkbox'; - }))); + var Checkbox = function (_React$Component) { + _inherits(Checkbox, _React$Component); + function Checkbox(props) { + _classCallCheck(this, Checkbox); - /***/ }), - /* 369 */ - /***/ (function(module, exports, __webpack_require__) { + var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); - //! moment.js locale configuration - //! locale : Esperanto [eo] - //! author : Colin Dean : https://github.com/colindean - //! author : Mia Nordentoft Imperatori : https://github.com/miestasmia - //! comment : miestasmia corrected the translation by colindean - //! comment : Vivakvo corrected the translation by colindean and miestasmia + _initialiseProps.call(_this); - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + _this.state = { + checked: 'checked' in props ? props.checked : props.defaultChecked, + focused: false + }; + _this.doubleClickFlag = null; + return _this; + } - //! moment.js locale configuration + Checkbox.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { + if ('checked' in nextProps) { + this.setState({ + checked: nextProps.checked + }); + } + }; - var eo = moment.defineLocale('eo', { - months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split( - '_' - ), - monthsShort: 'jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec'.split('_'), - weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'), - weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'), - weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY-MM-DD', - LL: '[la] D[-an de] MMMM, YYYY', - LLL: '[la] D[-an de] MMMM, YYYY HH:mm', - LLLL: 'dddd[n], [la] D[-an de] MMMM, YYYY HH:mm', - llll: 'ddd, [la] D[-an de] MMM, YYYY HH:mm', - }, - meridiemParse: /[ap]\.t\.m/i, - isPM: function (input) { - return input.charAt(0).toLowerCase() === 'p'; - }, - meridiem: function (hours, minutes, isLower) { - if (hours > 11) { - return isLower ? 'p.t.m.' : 'P.T.M.'; - } else { - return isLower ? 'a.t.m.' : 'A.T.M.'; - } - }, - calendar: { - sameDay: '[Hodiaŭ je] LT', - nextDay: '[Morgaŭ je] LT', - nextWeek: 'dddd[n je] LT', - lastDay: '[Hieraŭ je] LT', - lastWeek: '[pasintan] dddd[n je] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'post %s', - past: 'antaŭ %s', - s: 'kelkaj sekundoj', - ss: '%d sekundoj', - m: 'unu minuto', - mm: '%d minutoj', - h: 'unu horo', - hh: '%d horoj', - d: 'unu tago', //ne 'diurno', ĉar estas uzita por proksimumo - dd: '%d tagoj', - M: 'unu monato', - MM: '%d monatoj', - y: 'unu jaro', - yy: '%d jaroj', - }, - dayOfMonthOrdinalParse: /\d{1,2}a/, - ordinal: '%da', - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); + Checkbox.prototype.render = function render() { + var _classes; - return eo; + var _props = this.props, + disabled = _props.disabled, + inverse = _props.inverse, + colors = _props.colors, + size = _props.size, + className = _props.className, + indeterminate = _props.indeterminate, + onClick = _props.onClick, + children = _props.children, + checked = _props.checked, + clsPrefix = _props.clsPrefix, + onDoubleClick = _props.onDoubleClick, + onChange = _props.onChange, + others = _objectWithoutProperties(_props, ['disabled', 'inverse', 'colors', 'size', 'className', 'indeterminate', 'onClick', 'children', 'checked', 'clsPrefix', 'onDoubleClick', 'onChange']); - }))); + var input = _react2["default"].createElement('input', _extends({}, others, { + type: 'checkbox', + disabled: this.props.disabled, + onFocus: this.handleFocus, + onBlur: this.handleBlur + })); + var classes = (_classes = {}, _defineProperty(_classes, clsPrefix + '-focused', this.state.focused), _defineProperty(_classes, 'is-checked', this.state.checked), _defineProperty(_classes, 'disabled', disabled), _classes); - /***/ }), - /* 370 */ - /***/ (function(module, exports, __webpack_require__) { + if (inverse) { + classes[clsPrefix + '-inverse'] = true; + } - //! moment.js locale configuration - //! locale : Spanish [es] - //! author : Julio Napurí : https://github.com/julionc + if (colors) { + classes[clsPrefix + '-' + colors] = true; + } - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + if (size) { + classes[clsPrefix + '-' + size] = true; + } - //! moment.js locale configuration + if (!checked && indeterminate) { + classes[clsPrefix + '-indeterminate'] = true; + } - var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split( - '_' - ), - monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), - monthsParse = [ - /^ene/i, - /^feb/i, - /^mar/i, - /^abr/i, - /^may/i, - /^jun/i, - /^jul/i, - /^ago/i, - /^sep/i, - /^oct/i, - /^nov/i, - /^dic/i, - ], - monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i; + var classNames = (0, _classnames2["default"])(clsPrefix, classes); - var es = moment.defineLocale('es', { - months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split( - '_' - ), - monthsShort: function (m, format) { - if (!m) { - return monthsShortDot; - } else if (/-MMM-/.test(format)) { - return monthsShort[m.month()]; - } else { - return monthsShortDot[m.month()]; - } - }, - monthsRegex: monthsRegex, - monthsShortRegex: monthsRegex, - monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, - monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, - monthsParse: monthsParse, - longMonthsParse: monthsParse, - shortMonthsParse: monthsParse, - weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), - weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), - weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D [de] MMMM [de] YYYY', - LLL: 'D [de] MMMM [de] YYYY H:mm', - LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm', - }, - calendar: { - sameDay: function () { - return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; - }, - nextDay: function () { - return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; - }, - nextWeek: function () { - return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; - }, - lastDay: function () { - return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; - }, - lastWeek: function () { - return ( - '[el] dddd [pasado a la' + - (this.hours() !== 1 ? 's' : '') + - '] LT' - ); - }, - sameElse: 'L', - }, - relativeTime: { - future: 'en %s', - past: 'hace %s', - s: 'unos segundos', - ss: '%d segundos', - m: 'un minuto', - mm: '%d minutos', - h: 'una hora', - hh: '%d horas', - d: 'un día', - dd: '%d días', - M: 'un mes', - MM: '%d meses', - y: 'un año', - yy: '%d años', - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - invalidDate: 'Fecha invalida', - }); + return _react2["default"].createElement( + 'label', + { + className: (0, _classnames2["default"])(classNames, className), + onDoubleClick: this.handledbClick, + onClick: this.changeState }, + input, + _react2["default"].createElement( + 'label', + { className: clsPrefix + '-label' }, + children + ) + ); + }; - return es; + return Checkbox; + }(_react2["default"].Component); - }))); + var _initialiseProps = function _initialiseProps() { + var _this2 = this; + this.changeState = function (e) { + var props = _this2.props; + var checked = _this2.state.checked; - /***/ }), - /* 371 */ - /***/ (function(module, exports, __webpack_require__) { + clearTimeout(_this2.doubleClickFlag); + if (props.onClick instanceof Function) { + props.onClick(e); + } + if (props.onDoubleClick instanceof Function) { + _this2.doubleClickFlag = setTimeout(function () { + //do function在此处写单击事件要执行的代码 + _this2.change(props, checked); + }, 300); + } else { + _this2.change(props, checked); + } + e.stopPropagation(); + e.preventDefault(); + //执行延时 + }; - //! moment.js locale configuration - //! locale : Spanish (Dominican Republic) [es-do] + this.change = function (props, checked) { + if (props.disabled) { + return; + } + if (!('checked' in props)) { + _this2.setState({ + checked: !checked + }); + } - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + if (props.onChange instanceof Function) { + props.onChange(!checked); + } + }; - //! moment.js locale configuration + this.handledbClick = function (e) { + var onDoubleClick = _this2.props.onDoubleClick; - var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split( - '_' - ), - monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), - monthsParse = [ - /^ene/i, - /^feb/i, - /^mar/i, - /^abr/i, - /^may/i, - /^jun/i, - /^jul/i, - /^ago/i, - /^sep/i, - /^oct/i, - /^nov/i, - /^dic/i, - ], - monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i; + clearTimeout(_this2.doubleClickFlag); + onDoubleClick && onDoubleClick(_this2.state.checked, e); + }; - var esDo = moment.defineLocale('es-do', { - months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split( - '_' - ), - monthsShort: function (m, format) { - if (!m) { - return monthsShortDot; - } else if (/-MMM-/.test(format)) { - return monthsShort[m.month()]; - } else { - return monthsShortDot[m.month()]; - } - }, - monthsRegex: monthsRegex, - monthsShortRegex: monthsRegex, - monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, - monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, - monthsParse: monthsParse, - longMonthsParse: monthsParse, - shortMonthsParse: monthsParse, - weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), - weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), - weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'DD/MM/YYYY', - LL: 'D [de] MMMM [de] YYYY', - LLL: 'D [de] MMMM [de] YYYY h:mm A', - LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A', - }, - calendar: { - sameDay: function () { - return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; - }, - nextDay: function () { - return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; - }, - nextWeek: function () { - return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; - }, - lastDay: function () { - return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; - }, - lastWeek: function () { - return ( - '[el] dddd [pasado a la' + - (this.hours() !== 1 ? 's' : '') + - '] LT' - ); - }, - sameElse: 'L', - }, - relativeTime: { - future: 'en %s', - past: 'hace %s', - s: 'unos segundos', - ss: '%d segundos', - m: 'un minuto', - mm: '%d minutos', - h: 'una hora', - hh: '%d horas', - d: 'un día', - dd: '%d días', - M: 'un mes', - MM: '%d meses', - y: 'un año', - yy: '%d años', - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + this.handleFocus = function (e) { + if (e.target && e.target.type == 'checkbox') { + _this2.setState({ + focused: true + }); + } + }; - return esDo; + this.handleBlur = function (e) { + if (e.target && e.target.type == 'checkbox') { + _this2.setState({ + focused: false + }); + } + }; + }; - }))); + Checkbox.propTypes = propTypes; + Checkbox.defaultProps = defaultProps; + exports["default"] = Checkbox; + module.exports = exports['default']; /***/ }), - /* 372 */ + /* 242 */ + /***/ (function(module, exports) { + + module.exports = function(module) { + if(!module.webpackPolyfill) { + module.deprecate = function() {}; + module.paths = []; + // module.parent = undefined by default + if(!module.children) module.children = []; + Object.defineProperty(module, "loaded", { + enumerable: true, + get: function() { + return module.l; + } + }); + Object.defineProperty(module, "id", { + enumerable: true, + get: function() { + return module.i; + } + }); + module.webpackPolyfill = 1; + } + return module; + }; + + + /***/ }), + /* 243 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Spanish (United States) [es-us] - //! author : bustta : https://github.com/bustta - //! author : chrisrodz : https://github.com/chrisrodz + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration + exports.__esModule = true; + exports.default = splitComponentProps; + /** + * This source code is quoted from rc-util. + * homepage: https://github.com/react-component/util + */ + function _objectEntries(obj) { + var entries = []; + var keys = Object.keys(obj); - var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split( - '_' - ), - monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), - monthsParse = [ - /^ene/i, - /^feb/i, - /^mar/i, - /^abr/i, - /^may/i, - /^jun/i, - /^jul/i, - /^ago/i, - /^sep/i, - /^oct/i, - /^nov/i, - /^dic/i, - ], - monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i; + for (var k = 0; k < keys.length; ++k) { + entries.push([keys[k], obj[keys[k]]]); + }return entries; + } - var esUs = moment.defineLocale('es-us', { - months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split( - '_' - ), - monthsShort: function (m, format) { - if (!m) { - return monthsShortDot; - } else if (/-MMM-/.test(format)) { - return monthsShort[m.month()]; - } else { - return monthsShortDot[m.month()]; - } - }, - monthsRegex: monthsRegex, - monthsShortRegex: monthsRegex, - monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, - monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, - monthsParse: monthsParse, - longMonthsParse: monthsParse, - shortMonthsParse: monthsParse, - weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), - weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), - weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'MM/DD/YYYY', - LL: 'D [de] MMMM [de] YYYY', - LLL: 'D [de] MMMM [de] YYYY h:mm A', - LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A', - }, - calendar: { - sameDay: function () { - return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; - }, - nextDay: function () { - return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; - }, - nextWeek: function () { - return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; - }, - lastDay: function () { - return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; - }, - lastWeek: function () { - return ( - '[el] dddd [pasado a la' + - (this.hours() !== 1 ? 's' : '') + - '] LT' - ); - }, - sameElse: 'L', - }, - relativeTime: { - future: 'en %s', - past: 'hace %s', - s: 'unos segundos', - ss: '%d segundos', - m: 'un minuto', - mm: '%d minutos', - h: 'una hora', - hh: '%d horas', - d: 'un día', - dd: '%d días', - M: 'un mes', - MM: '%d meses', - y: 'un año', - yy: '%d años', - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }, - }); + /** + * 分割要传入父元素和子元素的props + * @param {[object]} props 传入的属性 + * @param {[reactElement]} Component 组件 + * @return {[array]} 返回数组,第一个元素为父元素props对象,第二个子元素props对象 + */ + function splitComponentProps(props, Component) { + var componentPropTypes = Component.propTypes; - return esUs; + var parentProps = {}; + var childProps = {}; - }))); + _objectEntries(props).forEach(function (_ref) { + var propName = _ref[0], + propValue = _ref[1]; + + if (componentPropTypes[propName]) { + parentProps[propName] = propValue; + } else { + childProps[propName] = propValue; + } + }); + return [parentProps, childProps]; + } /***/ }), - /* 373 */ + /* 244 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Estonian [et] - //! author : Henry Kehlmann : https://github.com/madhenry - //! improvements : Illimar Tambek : https://github.com/ragulka + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration + exports.__esModule = true; + exports.default = addEventListenerWrap; - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - s: ['mõne sekundi', 'mõni sekund', 'paar sekundit'], - ss: [number + 'sekundi', number + 'sekundit'], - m: ['ühe minuti', 'üks minut'], - mm: [number + ' minuti', number + ' minutit'], - h: ['ühe tunni', 'tund aega', 'üks tund'], - hh: [number + ' tunni', number + ' tundi'], - d: ['ühe päeva', 'üks päev'], - M: ['kuu aja', 'kuu aega', 'üks kuu'], - MM: [number + ' kuu', number + ' kuud'], - y: ['ühe aasta', 'aasta', 'üks aasta'], - yy: [number + ' aasta', number + ' aastat'], - }; - if (withoutSuffix) { - return format[key][2] ? format[key][2] : format[key][1]; - } - return isFuture ? format[key][0] : format[key][1]; - } + var _addDomEventListener = __webpack_require__(16); - var et = moment.defineLocale('et', { - months: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split( - '_' - ), - monthsShort: 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split( - '_' - ), - weekdays: 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split( - '_' - ), - weekdaysShort: 'P_E_T_K_N_R_L'.split('_'), - weekdaysMin: 'P_E_T_K_N_R_L'.split('_'), - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd, D. MMMM YYYY H:mm', - }, - calendar: { - sameDay: '[Täna,] LT', - nextDay: '[Homme,] LT', - nextWeek: '[Järgmine] dddd LT', - lastDay: '[Eile,] LT', - lastWeek: '[Eelmine] dddd LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s pärast', - past: '%s tagasi', - s: processRelativeTime, - ss: processRelativeTime, - m: processRelativeTime, - mm: processRelativeTime, - h: processRelativeTime, - hh: processRelativeTime, - d: processRelativeTime, - dd: '%d päeva', - M: processRelativeTime, - MM: processRelativeTime, - y: processRelativeTime, - yy: processRelativeTime, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener); - return et; + var _reactDom = __webpack_require__(3); - }))); + var _reactDom2 = _interopRequireDefault(_reactDom); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + /** + * This source code is quoted from rc-util. + * homepage: https://github.com/react-component/util + */ + function addEventListenerWrap(target, eventType, cb) { + /* eslint camelcase: 2 */ + var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) { + _reactDom2.default.unstable_batchedUpdates(cb, e); + } : cb; + return (0, _addDomEventListener2.default)(target, eventType, callback); + } /***/ }), - /* 374 */ + /* 245 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Basque [eu] - //! author : Eneko Illarramendi : https://github.com/eillarra + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration + Object.defineProperty(exports, "__esModule", { + value: true + }); + var util = { + isAppearSupported: function isAppearSupported(props) { + return props.transitionName && props.transitionAppear || props.animation.appear; + }, + isEnterSupported: function isEnterSupported(props) { + return props.transitionName && props.transitionEnter || props.animation.enter; + }, + isLeaveSupported: function isLeaveSupported(props) { + return props.transitionName && props.transitionLeave || props.animation.leave; + }, + allowAppearCallback: function allowAppearCallback(props) { + return props.transitionAppear || props.animation.appear; + }, + allowEnterCallback: function allowEnterCallback(props) { + return props.transitionEnter || props.animation.enter; + }, + allowLeaveCallback: function allowLeaveCallback(props) { + return props.transitionLeave || props.animation.leave; + } + }; + exports["default"] = util; + module.exports = exports["default"]; - var eu = moment.defineLocale('eu', { - months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split( - '_' - ), - monthsShort: 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split( - '_' - ), - weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'), - weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY-MM-DD', - LL: 'YYYY[ko] MMMM[ren] D[a]', - LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm', - LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm', - l: 'YYYY-M-D', - ll: 'YYYY[ko] MMM D[a]', - lll: 'YYYY[ko] MMM D[a] HH:mm', - llll: 'ddd, YYYY[ko] MMM D[a] HH:mm', - }, - calendar: { - sameDay: '[gaur] LT[etan]', - nextDay: '[bihar] LT[etan]', - nextWeek: 'dddd LT[etan]', - lastDay: '[atzo] LT[etan]', - lastWeek: '[aurreko] dddd LT[etan]', - sameElse: 'L', - }, - relativeTime: { - future: '%s barru', - past: 'duela %s', - s: 'segundo batzuk', - ss: '%d segundo', - m: 'minutu bat', - mm: '%d minutu', - h: 'ordu bat', - hh: '%d ordu', - d: 'egun bat', - dd: '%d egun', - M: 'hilabete bat', - MM: '%d hilabete', - y: 'urte bat', - yy: '%d urte', - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); + /***/ }), + /* 246 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { - return eu; + "use strict"; + Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Menu__ = __webpack_require__(773); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__SubMenu__ = __webpack_require__(253); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__MenuItem__ = __webpack_require__(810); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__MenuItemGroup__ = __webpack_require__(813); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Divider__ = __webpack_require__(814); + /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "SubMenu", function() { return __WEBPACK_IMPORTED_MODULE_1__SubMenu__["a"]; }); + /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Item", function() { return __WEBPACK_IMPORTED_MODULE_2__MenuItem__["a"]; }); + /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MenuItem", function() { return __WEBPACK_IMPORTED_MODULE_2__MenuItem__["a"]; }); + /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MenuItemGroup", function() { return __WEBPACK_IMPORTED_MODULE_3__MenuItemGroup__["a"]; }); + /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "ItemGroup", function() { return __WEBPACK_IMPORTED_MODULE_3__MenuItemGroup__["a"]; }); + /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Divider", function() { return __WEBPACK_IMPORTED_MODULE_4__Divider__["a"]; }); - }))); - /***/ }), - /* 375 */ - /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Persian [fa] - //! author : Ebrahim Byagowi : https://github.com/ebraminio - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration - var symbolMap = { - '1': '۱', - '2': '۲', - '3': '۳', - '4': '۴', - '5': '۵', - '6': '۶', - '7': '۷', - '8': '۸', - '9': '۹', - '0': '۰', - }, - numberMap = { - '۱': '1', - '۲': '2', - '۳': '3', - '۴': '4', - '۵': '5', - '۶': '6', - '۷': '7', - '۸': '8', - '۹': '9', - '۰': '0', - }; - var fa = moment.defineLocale('fa', { - months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split( - '_' - ), - monthsShort: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split( - '_' - ), - weekdays: 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split( - '_' - ), - weekdaysShort: 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split( - '_' - ), - weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - meridiemParse: /قبل از ظهر|بعد از ظهر/, - isPM: function (input) { - return /بعد از ظهر/.test(input); - }, - meridiem: function (hour, minute, isLower) { - if (hour < 12) { - return 'قبل از ظهر'; - } else { - return 'بعد از ظهر'; - } - }, - calendar: { - sameDay: '[امروز ساعت] LT', - nextDay: '[فردا ساعت] LT', - nextWeek: 'dddd [ساعت] LT', - lastDay: '[دیروز ساعت] LT', - lastWeek: 'dddd [پیش] [ساعت] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'در %s', - past: '%s پیش', - s: 'چند ثانیه', - ss: '%d ثانیه', - m: 'یک دقیقه', - mm: '%d دقیقه', - h: 'یک ساعت', - hh: '%d ساعت', - d: 'یک روز', - dd: '%d روز', - M: 'یک ماه', - MM: '%d ماه', - y: 'یک سال', - yy: '%d سال', - }, - preparse: function (string) { - return string - .replace(/[۰-۹]/g, function (match) { - return numberMap[match]; - }) - .replace(/،/g, ','); - }, - postformat: function (string) { - return string - .replace(/\d/g, function (match) { - return symbolMap[match]; - }) - .replace(/,/g, '،'); - }, - dayOfMonthOrdinalParse: /\d{1,2}م/, - ordinal: '%dم', - week: { - dow: 6, // Saturday is the first day of the week. - doy: 12, // The week that contains Jan 12th is the first week of the year. - }, - }); + /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__Menu__["a" /* default */]); + + /***/ }), + /* 247 */ + /***/ (function(module, exports, __webpack_require__) { - return fa; + // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) + var $keys = __webpack_require__(216); + var hiddenKeys = __webpack_require__(127).concat('length', 'prototype'); - }))); + exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { + return $keys(O, hiddenKeys); + }; /***/ }), - /* 376 */ + /* 248 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Finnish [fi] - //! author : Tarmo Aidantausta : https://github.com/bleadof - - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration + var pIE = __webpack_require__(90); + var createDesc = __webpack_require__(66); + var toIObject = __webpack_require__(54); + var toPrimitive = __webpack_require__(121); + var has = __webpack_require__(47); + var IE8_DOM_DEFINE = __webpack_require__(213); + var gOPD = Object.getOwnPropertyDescriptor; - var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split( - ' ' - ), - numbersFuture = [ - 'nolla', - 'yhden', - 'kahden', - 'kolmen', - 'neljän', - 'viiden', - 'kuuden', - numbersPast[7], - numbersPast[8], - numbersPast[9], - ]; - function translate(number, withoutSuffix, key, isFuture) { - var result = ''; - switch (key) { - case 's': - return isFuture ? 'muutaman sekunnin' : 'muutama sekunti'; - case 'ss': - return isFuture ? 'sekunnin' : 'sekuntia'; - case 'm': - return isFuture ? 'minuutin' : 'minuutti'; - case 'mm': - result = isFuture ? 'minuutin' : 'minuuttia'; - break; - case 'h': - return isFuture ? 'tunnin' : 'tunti'; - case 'hh': - result = isFuture ? 'tunnin' : 'tuntia'; - break; - case 'd': - return isFuture ? 'päivän' : 'päivä'; - case 'dd': - result = isFuture ? 'päivän' : 'päivää'; - break; - case 'M': - return isFuture ? 'kuukauden' : 'kuukausi'; - case 'MM': - result = isFuture ? 'kuukauden' : 'kuukautta'; - break; - case 'y': - return isFuture ? 'vuoden' : 'vuosi'; - case 'yy': - result = isFuture ? 'vuoden' : 'vuotta'; - break; - } - result = verbalNumber(number, isFuture) + ' ' + result; - return result; - } - function verbalNumber(number, isFuture) { - return number < 10 - ? isFuture - ? numbersFuture[number] - : numbersPast[number] - : number; - } + exports.f = __webpack_require__(41) ? gOPD : function getOwnPropertyDescriptor(O, P) { + O = toIObject(O); + P = toPrimitive(P, true); + if (IE8_DOM_DEFINE) try { + return gOPD(O, P); + } catch (e) { /* empty */ } + if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); + }; - var fi = moment.defineLocale('fi', { - months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split( - '_' - ), - monthsShort: 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split( - '_' - ), - weekdays: 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split( - '_' - ), - weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'), - weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'), - longDateFormat: { - LT: 'HH.mm', - LTS: 'HH.mm.ss', - L: 'DD.MM.YYYY', - LL: 'Do MMMM[ta] YYYY', - LLL: 'Do MMMM[ta] YYYY, [klo] HH.mm', - LLLL: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm', - l: 'D.M.YYYY', - ll: 'Do MMM YYYY', - lll: 'Do MMM YYYY, [klo] HH.mm', - llll: 'ddd, Do MMM YYYY, [klo] HH.mm', - }, - calendar: { - sameDay: '[tänään] [klo] LT', - nextDay: '[huomenna] [klo] LT', - nextWeek: 'dddd [klo] LT', - lastDay: '[eilen] [klo] LT', - lastWeek: '[viime] dddd[na] [klo] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s päästä', - past: '%s sitten', - s: translate, - ss: translate, - m: translate, - mm: translate, - h: translate, - hh: translate, - d: translate, - dd: translate, - M: translate, - MM: translate, - y: translate, - yy: translate, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - return fi; + /***/ }), + /* 249 */ + /***/ (function(module, exports, __webpack_require__) { - }))); + __webpack_require__(795); + var $Object = __webpack_require__(25).Object; + module.exports = function create(P, D) { + return $Object.create(P, D); + }; /***/ }), - /* 377 */ + /* 250 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Filipino [fil] - //! author : Dan Hagman : https://github.com/hagmandan - //! author : Matthew Co : https://github.com/matthewdeeco + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.storeShape = undefined; - var fil = moment.defineLocale('fil', { - months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split( - '_' - ), - monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'), - weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split( - '_' - ), - weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'), - weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'MM/D/YYYY', - LL: 'MMMM D, YYYY', - LLL: 'MMMM D, YYYY HH:mm', - LLLL: 'dddd, MMMM DD, YYYY HH:mm', - }, - calendar: { - sameDay: 'LT [ngayong araw]', - nextDay: '[Bukas ng] LT', - nextWeek: 'LT [sa susunod na] dddd', - lastDay: 'LT [kahapon]', - lastWeek: 'LT [noong nakaraang] dddd', - sameElse: 'L', - }, - relativeTime: { - future: 'sa loob ng %s', - past: '%s ang nakalipas', - s: 'ilang segundo', - ss: '%d segundo', - m: 'isang minuto', - mm: '%d minuto', - h: 'isang oras', - hh: '%d oras', - d: 'isang araw', - dd: '%d araw', - M: 'isang buwan', - MM: '%d buwan', - y: 'isang taon', - yy: '%d taon', - }, - dayOfMonthOrdinalParse: /\d{1,2}/, - ordinal: function (number) { - return number; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var _propTypes = __webpack_require__(1); - return fil; + var _propTypes2 = _interopRequireDefault(_propTypes); - }))); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + var storeShape = exports.storeShape = _propTypes2.default.shape({ + subscribe: _propTypes2.default.func.isRequired, + setState: _propTypes2.default.func.isRequired, + getState: _propTypes2.default.func.isRequired + }); /***/ }), - /* 378 */ - /***/ (function(module, exports, __webpack_require__) { + /* 251 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { - //! moment.js locale configuration - //! locale : Faroese [fo] - //! author : Ragnar Johannesen : https://github.com/ragnar123 - //! author : Kristian Sakarisson : https://github.com/sakarisson + "use strict"; + /* harmony export (immutable) */ __webpack_exports__["b"] = getActiveKey; + /* unused harmony export saveRef */ + /* unused harmony export SubPopupMenu */ + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(24); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(7); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(9); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(10); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends__ = __webpack_require__(8); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(0); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types__ = __webpack_require__(1); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_prop_types__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_mini_store__ = __webpack_require__(22); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_mini_store___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_mini_store__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__ = __webpack_require__(43); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_rc_util_es_createChainedFunction__ = __webpack_require__(252); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_classnames__ = __webpack_require__(2); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_classnames__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__util__ = __webpack_require__(58); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__DOMWrap__ = __webpack_require__(800); - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration - var fo = moment.defineLocale('fo', { - months: 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split( - '_' - ), - monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'), - weekdays: 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split( - '_' - ), - weekdaysShort: 'sun_mán_týs_mik_hós_frí_ley'.split('_'), - weekdaysMin: 'su_má_tý_mi_hó_fr_le'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D. MMMM, YYYY HH:mm', - }, - calendar: { - sameDay: '[Í dag kl.] LT', - nextDay: '[Í morgin kl.] LT', - nextWeek: 'dddd [kl.] LT', - lastDay: '[Í gjár kl.] LT', - lastWeek: '[síðstu] dddd [kl] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'um %s', - past: '%s síðani', - s: 'fá sekund', - ss: '%d sekundir', - m: 'ein minuttur', - mm: '%d minuttir', - h: 'ein tími', - hh: '%d tímar', - d: 'ein dagur', - dd: '%d dagar', - M: 'ein mánaður', - MM: '%d mánaðir', - y: 'eitt ár', - yy: '%d ár', - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - return fo; - }))); - /***/ }), - /* 379 */ - /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : French [fr] - //! author : John Fischer : https://github.com/jfroffice - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration - var fr = moment.defineLocale('fr', { - months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split( - '_' - ), - monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), - weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), - weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Aujourd’hui à] LT', - nextDay: '[Demain à] LT', - nextWeek: 'dddd [à] LT', - lastDay: '[Hier à] LT', - lastWeek: 'dddd [dernier à] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'dans %s', - past: 'il y a %s', - s: 'quelques secondes', - ss: '%d secondes', - m: 'une minute', - mm: '%d minutes', - h: 'une heure', - hh: '%d heures', - d: 'un jour', - dd: '%d jours', - M: 'un mois', - MM: '%d mois', - y: 'un an', - yy: '%d ans', - }, - dayOfMonthOrdinalParse: /\d{1,2}(er|)/, - ordinal: function (number, period) { - switch (period) { - // TODO: Return 'e' when day of month > 1. Move this case inside - // block for masculine words below. - // See https://github.com/moment/moment/issues/3375 - case 'D': - return number + (number === 1 ? 'er' : ''); - // Words with masculine grammatical gender: mois, trimestre, jour - default: - case 'M': - case 'Q': - case 'DDD': - case 'd': - return number + (number === 1 ? 'er' : 'e'); - // Words with feminine grammatical gender: semaine - case 'w': - case 'W': - return number + (number === 1 ? 're' : 'e'); - } - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, + + function allDisabled(arr) { + if (!arr.length) { + return true; + } + return arr.every(function (c) { + return !!c.props.disabled; + }); + } + + function updateActiveKey(store, menuId, activeKey) { + var _extends2; + + var state = store.getState(); + store.setState({ + activeKey: __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({}, state.activeKey, (_extends2 = {}, _extends2[menuId] = activeKey, _extends2)) + }); + } + + function getEventKey(props) { + // when eventKey not available ,it's menu and return menu id '0-menu-' + return props.eventKey || '0-menu-'; + } + + function getActiveKey(props, originalActiveKey) { + var activeKey = originalActiveKey; + var children = props.children, + eventKey = props.eventKey; + + if (activeKey) { + var found = void 0; + Object(__WEBPACK_IMPORTED_MODULE_11__util__["d" /* loopMenuItem */])(children, function (c, i) { + if (c && !c.props.disabled && activeKey === Object(__WEBPACK_IMPORTED_MODULE_11__util__["a" /* getKeyFromChildrenIndex */])(c, eventKey, i)) { + found = true; + } + }); + if (found) { + return activeKey; + } + } + activeKey = null; + if (props.defaultActiveFirst) { + Object(__WEBPACK_IMPORTED_MODULE_11__util__["d" /* loopMenuItem */])(children, function (c, i) { + if (!activeKey && c && !c.props.disabled) { + activeKey = Object(__WEBPACK_IMPORTED_MODULE_11__util__["a" /* getKeyFromChildrenIndex */])(c, eventKey, i); + } }); + return activeKey; + } + return activeKey; + } - return fr; + function saveRef(c) { + if (c) { + var index = this.instanceArray.indexOf(c); + if (index !== -1) { + // update component if it's already inside instanceArray + this.instanceArray[index] = c; + } else { + // add component if it's not in instanceArray yet; + this.instanceArray.push(c); + } + } + } - }))); + var SubPopupMenu = function (_React$Component) { + __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default()(SubPopupMenu, _React$Component); + function SubPopupMenu(props) { + var _extends3; - /***/ }), - /* 380 */ - /***/ (function(module, exports, __webpack_require__) { + __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, SubPopupMenu); - //! moment.js locale configuration - //! locale : French (Canada) [fr-ca] - //! author : Jonathan Abourbih : https://github.com/jonbca + var _this = __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.call(this, props)); - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + _initialiseProps.call(_this); - //! moment.js locale configuration + props.store.setState({ + activeKey: __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({}, props.store.getState().activeKey, (_extends3 = {}, _extends3[props.eventKey] = getActiveKey(props, props.activeKey), _extends3)) + }); - var frCa = moment.defineLocale('fr-ca', { - months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split( - '_' - ), - monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), - weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), - weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY-MM-DD', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Aujourd’hui à] LT', - nextDay: '[Demain à] LT', - nextWeek: 'dddd [à] LT', - lastDay: '[Hier à] LT', - lastWeek: 'dddd [dernier à] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'dans %s', - past: 'il y a %s', - s: 'quelques secondes', - ss: '%d secondes', - m: 'une minute', - mm: '%d minutes', - h: 'une heure', - hh: '%d heures', - d: 'un jour', - dd: '%d jours', - M: 'un mois', - MM: '%d mois', - y: 'un an', - yy: '%d ans', - }, - dayOfMonthOrdinalParse: /\d{1,2}(er|e)/, - ordinal: function (number, period) { - switch (period) { - // Words with masculine grammatical gender: mois, trimestre, jour - default: - case 'M': - case 'Q': - case 'D': - case 'DDD': - case 'd': - return number + (number === 1 ? 'er' : 'e'); + _this.instanceArray = []; + return _this; + } - // Words with feminine grammatical gender: semaine - case 'w': - case 'W': - return number + (number === 1 ? 're' : 'e'); - } - }, + SubPopupMenu.prototype.componentDidMount = function componentDidMount() { + // invoke customized ref to expose component to mixin + if (this.props.manualRef) { + this.props.manualRef(this); + } + }; + + SubPopupMenu.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) { + return this.props.visible || nextProps.visible; + }; + + SubPopupMenu.prototype.componentDidUpdate = function componentDidUpdate() { + var props = this.props; + var originalActiveKey = 'activeKey' in props ? props.activeKey : props.store.getState().activeKey[getEventKey(props)]; + var activeKey = getActiveKey(props, originalActiveKey); + if (activeKey !== originalActiveKey) { + updateActiveKey(props.store, getEventKey(props), activeKey); + } + }; + + // all keyboard events callbacks run from here at first + + + SubPopupMenu.prototype.render = function render() { + var _this2 = this; + + var props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default()(this.props, []); + + this.instanceArray = []; + var className = __WEBPACK_IMPORTED_MODULE_10_classnames___default()(props.prefixCls, props.className, props.prefixCls + '-' + props.mode); + var domProps = { + className: className, + // role could be 'select' and by default set to menu + role: props.role || 'menu' + }; + if (props.id) { + domProps.id = props.id; + } + if (props.focusable) { + domProps.tabIndex = '0'; + domProps.onKeyDown = this.onKeyDown; + } + var prefixCls = props.prefixCls, + eventKey = props.eventKey, + visible = props.visible, + level = props.level, + mode = props.mode, + overflowedIndicator = props.overflowedIndicator, + theme = props.theme; + + __WEBPACK_IMPORTED_MODULE_11__util__["f" /* menuAllProps */].forEach(function (key) { + return delete props[key]; }); - return frCa; + // Otherwise, the propagated click event will trigger another onClick + delete props.onClick; - }))); + return ( + // ESLint is not smart enough to know that the type of `children` was checked. + /* eslint-disable */ + __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement( + __WEBPACK_IMPORTED_MODULE_12__DOMWrap__["a" /* default */], + __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({}, props, { + prefixCls: prefixCls, + mode: mode, + tag: 'ul', + level: level, + theme: theme, + hiddenClassName: prefixCls + '-hidden', + visible: visible, + overflowedIndicator: overflowedIndicator + }, domProps), + __WEBPACK_IMPORTED_MODULE_5_react___default.a.Children.map(props.children, function (c, i) { + return _this2.renderMenuItem(c, i, eventKey || '0-menu-'); + }) + ) + /*eslint-enable */ + ); + }; - /***/ }), - /* 381 */ - /***/ (function(module, exports, __webpack_require__) { + return SubPopupMenu; + }(__WEBPACK_IMPORTED_MODULE_5_react___default.a.Component); + SubPopupMenu.propTypes = { + onSelect: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, + onClick: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, + onDeselect: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, + onOpenChange: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, + onDestroy: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, + openTransitionName: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, + openAnimation: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object]), + openKeys: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string), + visible: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, + children: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.any, + parentMenu: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object, + eventKey: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, + store: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.shape({ + getState: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, + setState: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func + }), - //! moment.js locale configuration - //! locale : French (Switzerland) [fr-ch] - //! author : Gaspard Bucher : https://github.com/gaspard + // adding in refactor + focusable: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, + multiple: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, + style: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object, + defaultActiveFirst: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, + activeKey: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, + selectedKeys: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string), + defaultSelectedKeys: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string), + defaultOpenKeys: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string), + level: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, + mode: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']), + triggerSubMenuAction: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf(['click', 'hover']), + inlineIndent: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string]), + manualRef: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, + itemIcon: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.node]), + expandIcon: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.node]) + }; + SubPopupMenu.defaultProps = { + prefixCls: 'rc-menu', + className: '', + mode: 'vertical', + level: 1, + inlineIndent: 24, + visible: true, + focusable: true, + style: {}, + manualRef: __WEBPACK_IMPORTED_MODULE_11__util__["g" /* noop */] + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _initialiseProps = function _initialiseProps() { + var _this3 = this; - //! moment.js locale configuration + this.onKeyDown = function (e, callback) { + var keyCode = e.keyCode; + var handled = void 0; + _this3.getFlatInstanceArray().forEach(function (obj) { + if (obj && obj.props.active && obj.onKeyDown) { + handled = obj.onKeyDown(e); + } + }); + if (handled) { + return 1; + } + var activeItem = null; + if (keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__["a" /* default */].UP || keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__["a" /* default */].DOWN) { + activeItem = _this3.step(keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__["a" /* default */].UP ? -1 : 1); + } + if (activeItem) { + e.preventDefault(); + updateActiveKey(_this3.props.store, getEventKey(_this3.props), activeItem.props.eventKey); - var frCh = moment.defineLocale('fr-ch', { - months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split( - '_' - ), - monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), - weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), - weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Aujourd’hui à] LT', - nextDay: '[Demain à] LT', - nextWeek: 'dddd [à] LT', - lastDay: '[Hier à] LT', - lastWeek: 'dddd [dernier à] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'dans %s', - past: 'il y a %s', - s: 'quelques secondes', - ss: '%d secondes', - m: 'une minute', - mm: '%d minutes', - h: 'une heure', - hh: '%d heures', - d: 'un jour', - dd: '%d jours', - M: 'un mois', - MM: '%d mois', - y: 'un an', - yy: '%d ans', - }, - dayOfMonthOrdinalParse: /\d{1,2}(er|e)/, - ordinal: function (number, period) { - switch (period) { - // Words with masculine grammatical gender: mois, trimestre, jour - default: - case 'M': - case 'Q': - case 'D': - case 'DDD': - case 'd': - return number + (number === 1 ? 'er' : 'e'); + if (typeof callback === 'function') { + callback(activeItem); + } - // Words with feminine grammatical gender: semaine - case 'w': - case 'W': - return number + (number === 1 ? 're' : 'e'); - } - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, + return 1; + } + }; + + this.onItemHover = function (e) { + var key = e.key, + hover = e.hover; + + updateActiveKey(_this3.props.store, getEventKey(_this3.props), hover ? key : null); + }; + + this.onDeselect = function (selectInfo) { + _this3.props.onDeselect(selectInfo); + }; + + this.onSelect = function (selectInfo) { + _this3.props.onSelect(selectInfo); + }; + + this.onClick = function (e) { + _this3.props.onClick(e); + }; + + this.onOpenChange = function (e) { + _this3.props.onOpenChange(e); + }; + + this.onDestroy = function (key) { + /* istanbul ignore next */ + _this3.props.onDestroy(key); + }; + + this.getFlatInstanceArray = function () { + return _this3.instanceArray; + }; + + this.getOpenTransitionName = function () { + return _this3.props.openTransitionName; + }; + + this.step = function (direction) { + var children = _this3.getFlatInstanceArray(); + var activeKey = _this3.props.store.getState().activeKey[getEventKey(_this3.props)]; + var len = children.length; + if (!len) { + return null; + } + if (direction < 0) { + children = children.concat().reverse(); + } + // find current activeIndex + var activeIndex = -1; + children.every(function (c, ci) { + if (c && c.props.eventKey === activeKey) { + activeIndex = ci; + return false; + } + return true; }); + if (!_this3.props.defaultActiveFirst && activeIndex !== -1 && allDisabled(children.slice(activeIndex, len - 1))) { + return undefined; + } + var start = (activeIndex + 1) % len; + var i = start; - return frCh; + do { + var child = children[i]; + if (!child || child.props.disabled) { + i = (i + 1) % len; + } else { + return child; + } + } while (i !== start); - }))); + return null; + }; + + this.renderCommonMenuItem = function (child, i, extraProps) { + var state = _this3.props.store.getState(); + var props = _this3.props; + var key = Object(__WEBPACK_IMPORTED_MODULE_11__util__["a" /* getKeyFromChildrenIndex */])(child, props.eventKey, i); + var childProps = child.props; + var isActive = key === state.activeKey; + var newChildProps = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({ + mode: childProps.mode || props.mode, + level: props.level, + inlineIndent: props.inlineIndent, + renderMenuItem: _this3.renderMenuItem, + rootPrefixCls: props.prefixCls, + index: i, + parentMenu: props.parentMenu, + // customized ref function, need to be invoked manually in child's componentDidMount + manualRef: childProps.disabled ? undefined : Object(__WEBPACK_IMPORTED_MODULE_9_rc_util_es_createChainedFunction__["a" /* default */])(child.ref, saveRef.bind(_this3)), + eventKey: key, + active: !childProps.disabled && isActive, + multiple: props.multiple, + onClick: function onClick(e) { + (childProps.onClick || __WEBPACK_IMPORTED_MODULE_11__util__["g" /* noop */])(e); + _this3.onClick(e); + }, + onItemHover: _this3.onItemHover, + openTransitionName: _this3.getOpenTransitionName(), + openAnimation: props.openAnimation, + subMenuOpenDelay: props.subMenuOpenDelay, + subMenuCloseDelay: props.subMenuCloseDelay, + forceSubMenuRender: props.forceSubMenuRender, + onOpenChange: _this3.onOpenChange, + onDeselect: _this3.onDeselect, + onSelect: _this3.onSelect, + builtinPlacements: props.builtinPlacements, + itemIcon: childProps.itemIcon || _this3.props.itemIcon, + expandIcon: childProps.expandIcon || _this3.props.expandIcon + }, extraProps); + if (props.mode === 'inline') { + newChildProps.triggerSubMenuAction = 'click'; + } + return __WEBPACK_IMPORTED_MODULE_5_react___default.a.cloneElement(child, newChildProps); + }; + + this.renderMenuItem = function (c, i, subMenuKey) { + /* istanbul ignore if */ + if (!c) { + return null; + } + var state = _this3.props.store.getState(); + var extraProps = { + openKeys: state.openKeys, + selectedKeys: state.selectedKeys, + triggerSubMenuAction: _this3.props.triggerSubMenuAction, + subMenuKey: subMenuKey + }; + return _this3.renderCommonMenuItem(c, i, extraProps); + }; + }; + var connected = Object(__WEBPACK_IMPORTED_MODULE_7_mini_store__["connect"])()(SubPopupMenu); + + /* harmony default export */ __webpack_exports__["a"] = (connected); /***/ }), - /* 382 */ - /***/ (function(module, exports, __webpack_require__) { + /* 252 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { - //! moment.js locale configuration - //! locale : Frisian [fy] - //! author : Robin van der Vliet : https://github.com/robin0van0der0v + "use strict"; + /* harmony export (immutable) */ __webpack_exports__["a"] = createChainedFunction; + /** + * Safe chained function + * + * Will only create a new function if needed, + * otherwise will pass back existing functions or null. + * + * @returns {function|null} + */ + function createChainedFunction() { + var args = [].slice.call(arguments, 0); - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + if (args.length === 1) { + return args[0]; + } - //! moment.js locale configuration + return function chainedFunction() { + for (var i = 0; i < args.length; i++) { + if (args[i] && args[i].apply) { + args[i].apply(this, arguments); + } + } + }; + } - var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split( - '_' - ), - monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split( - '_' - ); + /***/ }), + /* 253 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { - var fy = moment.defineLocale('fy', { - months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split( - '_' - ), - monthsShort: function (m, format) { - if (!m) { - return monthsShortWithDots; - } else if (/-MMM-/.test(format)) { - return monthsShortWithoutDots[m.month()]; - } else { - return monthsShortWithDots[m.month()]; - } - }, - monthsParseExact: true, - weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split( - '_' - ), - weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'), - weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD-MM-YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[hjoed om] LT', - nextDay: '[moarn om] LT', - nextWeek: 'dddd [om] LT', - lastDay: '[juster om] LT', - lastWeek: '[ôfrûne] dddd [om] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'oer %s', - past: '%s lyn', - s: 'in pear sekonden', - ss: '%d sekonden', - m: 'ien minút', - mm: '%d minuten', - h: 'ien oere', - hh: '%d oeren', - d: 'ien dei', - dd: '%d dagen', - M: 'ien moanne', - MM: '%d moannen', - y: 'ien jier', - yy: '%d jierren', - }, - dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, - ordinal: function (number) { - return ( - number + - (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de') - ); - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + "use strict"; + /* unused harmony export SubMenu */ + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__ = __webpack_require__(7); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(9); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_possibleConstructorReturn__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_inherits__ = __webpack_require__(10); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_inherits__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends__ = __webpack_require__(8); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react__ = __webpack_require__(0); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react_dom__ = __webpack_require__(3); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react_dom__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types__ = __webpack_require__(1); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_prop_types__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_rc_trigger__ = __webpack_require__(74); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__ = __webpack_require__(43); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_classnames__ = __webpack_require__(2); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_classnames__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_mini_store__ = __webpack_require__(22); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_mini_store___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_mini_store__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__SubPopupMenu__ = __webpack_require__(251); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__placements__ = __webpack_require__(809); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_rc_animate__ = __webpack_require__(97); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__util__ = __webpack_require__(58); - return fy; - }))); - /***/ }), - /* 383 */ - /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Irish or Irish Gaelic [ga] - //! author : André Silva : https://github.com/askpt - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration - var months = [ - 'Eanáir', - 'Feabhra', - 'Márta', - 'Aibreán', - 'Bealtaine', - 'Meitheamh', - 'Iúil', - 'Lúnasa', - 'Meán Fómhair', - 'Deireadh Fómhair', - 'Samhain', - 'Nollaig', - ], - monthsShort = [ - 'Ean', - 'Feabh', - 'Márt', - 'Aib', - 'Beal', - 'Meith', - 'Iúil', - 'Lún', - 'M.F.', - 'D.F.', - 'Samh', - 'Noll', - ], - weekdays = [ - 'Dé Domhnaigh', - 'Dé Luain', - 'Dé Máirt', - 'Dé Céadaoin', - 'Déardaoin', - 'Dé hAoine', - 'Dé Sathairn', - ], - weekdaysShort = ['Domh', 'Luan', 'Máirt', 'Céad', 'Déar', 'Aoine', 'Sath'], - weekdaysMin = ['Do', 'Lu', 'Má', 'Cé', 'Dé', 'A', 'Sa']; - var ga = moment.defineLocale('ga', { - months: months, - monthsShort: monthsShort, - monthsParseExact: true, - weekdays: weekdays, - weekdaysShort: weekdaysShort, - weekdaysMin: weekdaysMin, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Inniu ag] LT', - nextDay: '[Amárach ag] LT', - nextWeek: 'dddd [ag] LT', - lastDay: '[Inné ag] LT', - lastWeek: 'dddd [seo caite] [ag] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'i %s', - past: '%s ó shin', - s: 'cúpla soicind', - ss: '%d soicind', - m: 'nóiméad', - mm: '%d nóiméad', - h: 'uair an chloig', - hh: '%d uair an chloig', - d: 'lá', - dd: '%d lá', - M: 'mí', - MM: '%d míonna', - y: 'bliain', - yy: '%d bliain', - }, - dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/, - ordinal: function (number) { - var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh'; - return number + output; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - return ga; - }))); - /***/ }), - /* 384 */ - /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Scottish Gaelic [gd] - //! author : Jon Ashdown : https://github.com/jonashdown - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration + var guid = 0; - var months = [ - 'Am Faoilleach', - 'An Gearran', - 'Am Màrt', - 'An Giblean', - 'An Cèitean', - 'An t-Ògmhios', - 'An t-Iuchar', - 'An Lùnastal', - 'An t-Sultain', - 'An Dàmhair', - 'An t-Samhain', - 'An Dùbhlachd', - ], - monthsShort = [ - 'Faoi', - 'Gear', - 'Màrt', - 'Gibl', - 'Cèit', - 'Ògmh', - 'Iuch', - 'Lùn', - 'Sult', - 'Dàmh', - 'Samh', - 'Dùbh', - ], - weekdays = [ - 'Didòmhnaich', - 'Diluain', - 'Dimàirt', - 'Diciadain', - 'Diardaoin', - 'Dihaoine', - 'Disathairne', - ], - weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'], - weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa']; + var popupPlacementMap = { + horizontal: 'bottomLeft', + vertical: 'rightTop', + 'vertical-left': 'rightTop', + 'vertical-right': 'leftTop' + }; - var gd = moment.defineLocale('gd', { - months: months, - monthsShort: monthsShort, - monthsParseExact: true, - weekdays: weekdays, - weekdaysShort: weekdaysShort, - weekdaysMin: weekdaysMin, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[An-diugh aig] LT', - nextDay: '[A-màireach aig] LT', - nextWeek: 'dddd [aig] LT', - lastDay: '[An-dè aig] LT', - lastWeek: 'dddd [seo chaidh] [aig] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'ann an %s', - past: 'bho chionn %s', - s: 'beagan diogan', - ss: '%d diogan', - m: 'mionaid', - mm: '%d mionaidean', - h: 'uair', - hh: '%d uairean', - d: 'latha', - dd: '%d latha', - M: 'mìos', - MM: '%d mìosan', - y: 'bliadhna', - yy: '%d bliadhna', - }, - dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/, - ordinal: function (number) { - var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh'; - return number + output; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var updateDefaultActiveFirst = function updateDefaultActiveFirst(store, eventKey, defaultActiveFirst) { + var _extends2; - return gd; + var menuId = Object(__WEBPACK_IMPORTED_MODULE_14__util__["b" /* getMenuIdFromSubMenuEventKey */])(eventKey); + var state = store.getState(); + store.setState({ + defaultActiveFirst: __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, state.defaultActiveFirst, (_extends2 = {}, _extends2[menuId] = defaultActiveFirst, _extends2)) + }); + }; - }))); + var SubMenu = function (_React$Component) { + __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_inherits___default()(SubMenu, _React$Component); + function SubMenu(props) { + __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default()(this, SubMenu); - /***/ }), - /* 385 */ - /***/ (function(module, exports, __webpack_require__) { + var _this = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.call(this, props)); - //! moment.js locale configuration - //! locale : Galician [gl] - //! author : Juan G. Hurtado : https://github.com/juanghurtado + _initialiseProps.call(_this); - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var store = props.store; + var eventKey = props.eventKey; + var defaultActiveFirst = store.getState().defaultActiveFirst; - //! moment.js locale configuration + _this.isRootMenu = false; - var gl = moment.defineLocale('gl', { - months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split( - '_' - ), - monthsShort: 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'), - weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'), - weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D [de] MMMM [de] YYYY', - LLL: 'D [de] MMMM [de] YYYY H:mm', - LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm', - }, - calendar: { - sameDay: function () { - return '[hoxe ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT'; - }, - nextDay: function () { - return '[mañá ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT'; - }, - nextWeek: function () { - return 'dddd [' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT'; - }, - lastDay: function () { - return '[onte ' + (this.hours() !== 1 ? 'á' : 'a') + '] LT'; - }, - lastWeek: function () { - return ( - '[o] dddd [pasado ' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT' - ); - }, - sameElse: 'L', - }, - relativeTime: { - future: function (str) { - if (str.indexOf('un') === 0) { - return 'n' + str; - } - return 'en ' + str; - }, - past: 'hai %s', - s: 'uns segundos', - ss: '%d segundos', - m: 'un minuto', - mm: '%d minutos', - h: 'unha hora', - hh: '%d horas', - d: 'un día', - dd: '%d días', - M: 'un mes', - MM: '%d meses', - y: 'un ano', - yy: '%d anos', - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var value = false; - return gl; + if (defaultActiveFirst) { + value = defaultActiveFirst[eventKey]; + } - }))); + updateDefaultActiveFirst(store, eventKey, value); + return _this; + } + SubMenu.prototype.componentDidMount = function componentDidMount() { + this.componentDidUpdate(); + }; - /***/ }), - /* 386 */ - /***/ (function(module, exports, __webpack_require__) { + SubMenu.prototype.componentDidUpdate = function componentDidUpdate() { + var _this2 = this; - //! moment.js locale configuration - //! locale : Konkani Devanagari script [gom-deva] - //! author : The Discoverer : https://github.com/WikiDiscoverer + var _props = this.props, + mode = _props.mode, + parentMenu = _props.parentMenu, + manualRef = _props.manualRef; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + // invoke customized ref to expose component to mixin - //! moment.js locale configuration + if (manualRef) { + manualRef(this); + } - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - s: ['थोडया सॅकंडांनी', 'थोडे सॅकंड'], - ss: [number + ' सॅकंडांनी', number + ' सॅकंड'], - m: ['एका मिणटान', 'एक मिनूट'], - mm: [number + ' मिणटांनी', number + ' मिणटां'], - h: ['एका वरान', 'एक वर'], - hh: [number + ' वरांनी', number + ' वरां'], - d: ['एका दिसान', 'एक दीस'], - dd: [number + ' दिसांनी', number + ' दीस'], - M: ['एका म्हयन्यान', 'एक म्हयनो'], - MM: [number + ' म्हयन्यानी', number + ' म्हयने'], - y: ['एका वर्सान', 'एक वर्स'], - yy: [number + ' वर्सांनी', number + ' वर्सां'], - }; - return isFuture ? format[key][0] : format[key][1]; + if (mode !== 'horizontal' || !parentMenu.isRootMenu || !this.props.isOpen) { + return; } - var gomDeva = moment.defineLocale('gom-deva', { - months: { - standalone: 'जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split( - '_' - ), - format: 'जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या'.split( - '_' - ), - isFormat: /MMMM(\s)+D[oD]?/, - }, - monthsShort: 'जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार'.split('_'), - weekdaysShort: 'आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.'.split('_'), - weekdaysMin: 'आ_सो_मं_बु_ब्रे_सु_शे'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'A h:mm [वाजतां]', - LTS: 'A h:mm:ss [वाजतां]', - L: 'DD-MM-YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY A h:mm [वाजतां]', - LLLL: 'dddd, MMMM Do, YYYY, A h:mm [वाजतां]', - llll: 'ddd, D MMM YYYY, A h:mm [वाजतां]', - }, - calendar: { - sameDay: '[आयज] LT', - nextDay: '[फाल्यां] LT', - nextWeek: '[फुडलो] dddd[,] LT', - lastDay: '[काल] LT', - lastWeek: '[फाटलो] dddd[,] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s', - past: '%s आदीं', - s: processRelativeTime, - ss: processRelativeTime, - m: processRelativeTime, - mm: processRelativeTime, - h: processRelativeTime, - hh: processRelativeTime, - d: processRelativeTime, - dd: processRelativeTime, - M: processRelativeTime, - MM: processRelativeTime, - y: processRelativeTime, - yy: processRelativeTime, - }, - dayOfMonthOrdinalParse: /\d{1,2}(वेर)/, - ordinal: function (number, period) { - switch (period) { - // the ordinal 'वेर' only applies to day of the month - case 'D': - return number + 'वेर'; - default: - case 'M': - case 'Q': - case 'DDD': - case 'd': - case 'w': - case 'W': - return number; - } - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - meridiemParse: /राती|सकाळीं|दनपारां|सांजे/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'राती') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'सकाळीं') { - return hour; - } else if (meridiem === 'दनपारां') { - return hour > 12 ? hour : hour + 12; - } else if (meridiem === 'सांजे') { - return hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'राती'; - } else if (hour < 12) { - return 'सकाळीं'; - } else if (hour < 16) { - return 'दनपारां'; - } else if (hour < 20) { - return 'सांजे'; - } else { - return 'राती'; - } - }, - }); + this.minWidthTimeout = setTimeout(function () { + return _this2.adjustWidth(); + }, 0); + }; - return gomDeva; + SubMenu.prototype.componentWillUnmount = function componentWillUnmount() { + var _props2 = this.props, + onDestroy = _props2.onDestroy, + eventKey = _props2.eventKey; - }))); + if (onDestroy) { + onDestroy(eventKey); + } + /* istanbul ignore if */ + if (this.minWidthTimeout) { + clearTimeout(this.minWidthTimeout); + } - /***/ }), - /* 387 */ - /***/ (function(module, exports, __webpack_require__) { + /* istanbul ignore if */ + if (this.mouseenterTimeout) { + clearTimeout(this.mouseenterTimeout); + } + }; - //! moment.js locale configuration - //! locale : Konkani Latin script [gom-latn] - //! author : The Discoverer : https://github.com/WikiDiscoverer + SubMenu.prototype.renderChildren = function renderChildren(children) { + var props = this.props; + var baseProps = { + mode: props.mode === 'horizontal' ? 'vertical' : props.mode, + visible: this.props.isOpen, + level: props.level + 1, + inlineIndent: props.inlineIndent, + focusable: false, + onClick: this.onSubMenuClick, + onSelect: this.onSelect, + onDeselect: this.onDeselect, + onDestroy: this.onDestroy, + selectedKeys: props.selectedKeys, + eventKey: props.eventKey + '-menu-', + openKeys: props.openKeys, + openTransitionName: props.openTransitionName, + openAnimation: props.openAnimation, + onOpenChange: this.onOpenChange, + subMenuOpenDelay: props.subMenuOpenDelay, + parentMenu: this, + subMenuCloseDelay: props.subMenuCloseDelay, + forceSubMenuRender: props.forceSubMenuRender, + triggerSubMenuAction: props.triggerSubMenuAction, + builtinPlacements: props.builtinPlacements, + defaultActiveFirst: props.store.getState().defaultActiveFirst[Object(__WEBPACK_IMPORTED_MODULE_14__util__["b" /* getMenuIdFromSubMenuEventKey */])(props.eventKey)], + multiple: props.multiple, + prefixCls: props.rootPrefixCls, + id: this._menuId, + manualRef: this.saveMenuInstance, + itemIcon: props.itemIcon, + expandIcon: props.expandIcon + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var haveRendered = this.haveRendered; + this.haveRendered = true; - //! moment.js locale configuration + this.haveOpened = this.haveOpened || baseProps.visible || baseProps.forceSubMenuRender; + // never rendered not planning to, don't render + if (!this.haveOpened) { + return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement('div', null); + } - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - s: ['thoddea sekondamni', 'thodde sekond'], - ss: [number + ' sekondamni', number + ' sekond'], - m: ['eka mintan', 'ek minut'], - mm: [number + ' mintamni', number + ' mintam'], - h: ['eka voran', 'ek vor'], - hh: [number + ' voramni', number + ' voram'], - d: ['eka disan', 'ek dis'], - dd: [number + ' disamni', number + ' dis'], - M: ['eka mhoinean', 'ek mhoino'], - MM: [number + ' mhoineamni', number + ' mhoine'], - y: ['eka vorsan', 'ek voros'], - yy: [number + ' vorsamni', number + ' vorsam'], - }; - return isFuture ? format[key][0] : format[key][1]; + // don't show transition on first rendering (no animation for opened menu) + // show appear transition if it's not visible (not sure why) + // show appear transition if it's not inline mode + var transitionAppear = haveRendered || !baseProps.visible || !baseProps.mode === 'inline'; + + baseProps.className = ' ' + baseProps.prefixCls + '-sub'; + var animProps = {}; + + if (baseProps.openTransitionName) { + animProps.transitionName = baseProps.openTransitionName; + } else if (typeof baseProps.openAnimation === 'object') { + animProps.animation = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, baseProps.openAnimation); + if (!transitionAppear) { + delete animProps.animation.appear; + } } - var gomLatn = moment.defineLocale('gom-latn', { - months: { - standalone: 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split( - '_' - ), - format: 'Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea'.split( - '_' - ), - isFormat: /MMMM(\s)+D[oD]?/, - }, - monthsShort: 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split( - '_' - ), - monthsParseExact: true, - weekdays: "Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split('_'), - weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'), - weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'A h:mm [vazta]', - LTS: 'A h:mm:ss [vazta]', - L: 'DD-MM-YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY A h:mm [vazta]', - LLLL: 'dddd, MMMM Do, YYYY, A h:mm [vazta]', - llll: 'ddd, D MMM YYYY, A h:mm [vazta]', - }, - calendar: { - sameDay: '[Aiz] LT', - nextDay: '[Faleam] LT', - nextWeek: '[Fuddlo] dddd[,] LT', - lastDay: '[Kal] LT', - lastWeek: '[Fattlo] dddd[,] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s', - past: '%s adim', - s: processRelativeTime, - ss: processRelativeTime, - m: processRelativeTime, - mm: processRelativeTime, - h: processRelativeTime, - hh: processRelativeTime, - d: processRelativeTime, - dd: processRelativeTime, - M: processRelativeTime, - MM: processRelativeTime, - y: processRelativeTime, - yy: processRelativeTime, - }, - dayOfMonthOrdinalParse: /\d{1,2}(er)/, - ordinal: function (number, period) { - switch (period) { - // the ordinal 'er' only applies to day of the month - case 'D': - return number + 'er'; - default: - case 'M': - case 'Q': - case 'DDD': - case 'd': - case 'w': - case 'W': - return number; - } - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - meridiemParse: /rati|sokallim|donparam|sanje/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'rati') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'sokallim') { - return hour; - } else if (meridiem === 'donparam') { - return hour > 12 ? hour : hour + 12; - } else if (meridiem === 'sanje') { - return hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'rati'; - } else if (hour < 12) { - return 'sokallim'; - } else if (hour < 16) { - return 'donparam'; - } else if (hour < 20) { - return 'sanje'; - } else { - return 'rati'; - } - }, - }); + return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement( + __WEBPACK_IMPORTED_MODULE_13_rc_animate__["default"], + __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, animProps, { + showProp: 'visible', + component: '', + transitionAppear: transitionAppear + }), + __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement( + __WEBPACK_IMPORTED_MODULE_11__SubPopupMenu__["a" /* default */], + __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, baseProps, { id: this._menuId }), + children + ) + ); + }; - return gomLatn; + SubMenu.prototype.render = function render() { + var _classNames; - }))); + var props = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, this.props); + var isOpen = props.isOpen; + var prefixCls = this.getPrefixCls(); + var isInlineMode = props.mode === 'inline'; + var className = __WEBPACK_IMPORTED_MODULE_9_classnames___default()(prefixCls, prefixCls + '-' + props.mode, (_classNames = {}, _classNames[props.className] = !!props.className, _classNames[this.getOpenClassName()] = isOpen, _classNames[this.getActiveClassName()] = props.active || isOpen && !isInlineMode, _classNames[this.getDisabledClassName()] = props.disabled, _classNames[this.getSelectedClassName()] = this.isChildrenSelected(), _classNames)); + if (!this._menuId) { + if (props.eventKey) { + this._menuId = props.eventKey + '$Menu'; + } else { + this._menuId = '$__$' + ++guid + '$Menu'; + } + } - /***/ }), - /* 388 */ - /***/ (function(module, exports, __webpack_require__) { + var mouseEvents = {}; + var titleClickEvents = {}; + var titleMouseEvents = {}; + if (!props.disabled) { + mouseEvents = { + onMouseLeave: this.onMouseLeave, + onMouseEnter: this.onMouseEnter + }; - //! moment.js locale configuration - //! locale : Gujarati [gu] - //! author : Kaushik Thanki : https://github.com/Kaushik1987 + // only works in title, not outer li + titleClickEvents = { + onClick: this.onTitleClick + }; + titleMouseEvents = { + onMouseEnter: this.onTitleMouseEnter, + onMouseLeave: this.onTitleMouseLeave + }; + } - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var style = {}; + if (isInlineMode) { + style.paddingLeft = props.inlineIndent * props.level; + } - //! moment.js locale configuration + var ariaOwns = {}; + // only set aria-owns when menu is open + // otherwise it would be an invalid aria-owns value + // since corresponding node cannot be found + if (this.props.isOpen) { + ariaOwns = { + 'aria-owns': this._menuId + }; + } - var symbolMap = { - '1': '૧', - '2': '૨', - '3': '૩', - '4': '૪', - '5': '૫', - '6': '૬', - '7': '૭', - '8': '૮', - '9': '૯', - '0': '૦', - }, - numberMap = { - '૧': '1', - '૨': '2', - '૩': '3', - '૪': '4', - '૫': '5', - '૬': '6', - '૭': '7', - '૮': '8', - '૯': '9', - '૦': '0', - }; + // expand custom icon should NOT be displayed in menu with horizontal mode. + var icon = null; + if (props.mode !== 'horizontal') { + icon = this.props.expandIcon; // ReactNode + if (typeof this.props.expandIcon === 'function') { + icon = __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(this.props.expandIcon, __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, this.props)); + } + } - var gu = moment.defineLocale('gu', { - months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split( - '_' - ), - monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split( - '_' - ), - weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'), - weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'), - longDateFormat: { - LT: 'A h:mm વાગ્યે', - LTS: 'A h:mm:ss વાગ્યે', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm વાગ્યે', - LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે', - }, - calendar: { - sameDay: '[આજ] LT', - nextDay: '[કાલે] LT', - nextWeek: 'dddd, LT', - lastDay: '[ગઇકાલે] LT', - lastWeek: '[પાછલા] dddd, LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s મા', - past: '%s પેહલા', - s: 'અમુક પળો', - ss: '%d સેકંડ', - m: 'એક મિનિટ', - mm: '%d મિનિટ', - h: 'એક કલાક', - hh: '%d કલાક', - d: 'એક દિવસ', - dd: '%d દિવસ', - M: 'એક મહિનો', - MM: '%d મહિનો', - y: 'એક વર્ષ', - yy: '%d વર્ષ', - }, - preparse: function (string) { - return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - // Gujarati notation for meridiems are quite fuzzy in practice. While there exists - // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati. - meridiemParse: /રાત|બપોર|સવાર|સાંજ/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'રાત') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'સવાર') { - return hour; - } else if (meridiem === 'બપોર') { - return hour >= 10 ? hour : hour + 12; - } else if (meridiem === 'સાંજ') { - return hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'રાત'; - } else if (hour < 10) { - return 'સવાર'; - } else if (hour < 17) { - return 'બપોર'; - } else if (hour < 20) { - return 'સાંજ'; - } else { - return 'રાત'; - } - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }, + var title = __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement( + 'div', + __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({ + ref: this.saveSubMenuTitle, + style: style, + className: prefixCls + '-title' + }, titleMouseEvents, titleClickEvents, { + 'aria-expanded': isOpen + }, ariaOwns, { + 'aria-haspopup': 'true', + title: typeof props.title === 'string' ? props.title : undefined + }), + props.title, + icon || __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement('i', { className: prefixCls + '-arrow' }) + ); + var children = this.renderChildren(props.children); + + var getPopupContainer = props.parentMenu.isRootMenu ? props.parentMenu.props.getPopupContainer : function (triggerNode) { + return triggerNode.parentNode; + }; + var popupPlacement = popupPlacementMap[props.mode]; + var popupAlign = props.popupOffset ? { offset: props.popupOffset } : {}; + var popupClassName = props.mode === 'inline' ? '' : props.popupClassName; + var disabled = props.disabled, + triggerSubMenuAction = props.triggerSubMenuAction, + subMenuOpenDelay = props.subMenuOpenDelay, + forceSubMenuRender = props.forceSubMenuRender, + subMenuCloseDelay = props.subMenuCloseDelay, + builtinPlacements = props.builtinPlacements; + + __WEBPACK_IMPORTED_MODULE_14__util__["f" /* menuAllProps */].forEach(function (key) { + return delete props[key]; }); + // Set onClick to null, to ignore propagated onClick event + delete props.onClick; + + return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement( + 'li', + __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, props, mouseEvents, { + className: className, + role: 'menuitem' + }), + isInlineMode && title, + isInlineMode && children, + !isInlineMode && __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement( + __WEBPACK_IMPORTED_MODULE_7_rc_trigger__["default"], + { + prefixCls: prefixCls, + popupClassName: prefixCls + '-popup ' + popupClassName, + getPopupContainer: getPopupContainer, + builtinPlacements: __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, __WEBPACK_IMPORTED_MODULE_12__placements__["a" /* default */], builtinPlacements), + popupPlacement: popupPlacement, + popupVisible: isOpen, + popupAlign: popupAlign, + popup: children, + action: disabled ? [] : [triggerSubMenuAction], + mouseEnterDelay: subMenuOpenDelay, + mouseLeaveDelay: subMenuCloseDelay, + onPopupVisibleChange: this.onPopupVisibleChange, + forceRender: forceSubMenuRender + }, + title + ) + ); + }; + + return SubMenu; + }(__WEBPACK_IMPORTED_MODULE_4_react___default.a.Component); + + SubMenu.propTypes = { + parentMenu: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object, + title: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.node, + children: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.any, + selectedKeys: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.array, + openKeys: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.array, + onClick: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, + onOpenChange: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, + rootPrefixCls: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, + eventKey: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, + multiple: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, + active: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, // TODO: remove + onItemHover: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, + onSelect: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, + triggerSubMenuAction: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, + onDeselect: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, + onDestroy: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, + onMouseEnter: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, + onMouseLeave: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, + onTitleMouseEnter: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, + onTitleMouseLeave: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, + onTitleClick: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, + popupOffset: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.array, + isOpen: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, + store: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object, + mode: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']), + manualRef: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, + itemIcon: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.node]), + expandIcon: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.node]) + }; + SubMenu.defaultProps = { + onMouseEnter: __WEBPACK_IMPORTED_MODULE_14__util__["g" /* noop */], + onMouseLeave: __WEBPACK_IMPORTED_MODULE_14__util__["g" /* noop */], + onTitleMouseEnter: __WEBPACK_IMPORTED_MODULE_14__util__["g" /* noop */], + onTitleMouseLeave: __WEBPACK_IMPORTED_MODULE_14__util__["g" /* noop */], + onTitleClick: __WEBPACK_IMPORTED_MODULE_14__util__["g" /* noop */], + manualRef: __WEBPACK_IMPORTED_MODULE_14__util__["g" /* noop */], + mode: 'vertical', + title: '' + }; + + var _initialiseProps = function _initialiseProps() { + var _this3 = this; + + this.onDestroy = function (key) { + _this3.props.onDestroy(key); + }; + + this.onKeyDown = function (e) { + var keyCode = e.keyCode; + var menu = _this3.menuInstance; + var _props3 = _this3.props, + isOpen = _props3.isOpen, + store = _props3.store; + + + if (keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__["a" /* default */].ENTER) { + _this3.onTitleClick(e); + updateDefaultActiveFirst(store, _this3.props.eventKey, true); + return true; + } + + if (keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__["a" /* default */].RIGHT) { + if (isOpen) { + menu.onKeyDown(e); + } else { + _this3.triggerOpenChange(true); + // need to update current menu's defaultActiveFirst value + updateDefaultActiveFirst(store, _this3.props.eventKey, true); + } + return true; + } + if (keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__["a" /* default */].LEFT) { + var handled = void 0; + if (isOpen) { + handled = menu.onKeyDown(e); + } else { + return undefined; + } + if (!handled) { + _this3.triggerOpenChange(false); + handled = true; + } + return handled; + } - return gu; + if (isOpen && (keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__["a" /* default */].UP || keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__["a" /* default */].DOWN)) { + return menu.onKeyDown(e); + } + }; - }))); + this.onOpenChange = function (e) { + _this3.props.onOpenChange(e); + }; + this.onPopupVisibleChange = function (visible) { + _this3.triggerOpenChange(visible, visible ? 'mouseenter' : 'mouseleave'); + }; - /***/ }), - /* 389 */ - /***/ (function(module, exports, __webpack_require__) { + this.onMouseEnter = function (e) { + var _props4 = _this3.props, + key = _props4.eventKey, + onMouseEnter = _props4.onMouseEnter, + store = _props4.store; - //! moment.js locale configuration - //! locale : Hebrew [he] - //! author : Tomer Cohen : https://github.com/tomer - //! author : Moshe Simantov : https://github.com/DevelopmentIL - //! author : Tal Ater : https://github.com/TalAter + updateDefaultActiveFirst(store, _this3.props.eventKey, false); + onMouseEnter({ + key: key, + domEvent: e + }); + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + this.onMouseLeave = function (e) { + var _props5 = _this3.props, + parentMenu = _props5.parentMenu, + eventKey = _props5.eventKey, + onMouseLeave = _props5.onMouseLeave; - //! moment.js locale configuration + parentMenu.subMenuInstance = _this3; + onMouseLeave({ + key: eventKey, + domEvent: e + }); + }; - var he = moment.defineLocale('he', { - months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split( - '_' - ), - monthsShort: 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split( - '_' - ), - weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'), - weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'), - weekdaysMin: 'א_ב_ג_ד_ה_ו_ש'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D [ב]MMMM YYYY', - LLL: 'D [ב]MMMM YYYY HH:mm', - LLLL: 'dddd, D [ב]MMMM YYYY HH:mm', - l: 'D/M/YYYY', - ll: 'D MMM YYYY', - lll: 'D MMM YYYY HH:mm', - llll: 'ddd, D MMM YYYY HH:mm', - }, - calendar: { - sameDay: '[היום ב־]LT', - nextDay: '[מחר ב־]LT', - nextWeek: 'dddd [בשעה] LT', - lastDay: '[אתמול ב־]LT', - lastWeek: '[ביום] dddd [האחרון בשעה] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'בעוד %s', - past: 'לפני %s', - s: 'מספר שניות', - ss: '%d שניות', - m: 'דקה', - mm: '%d דקות', - h: 'שעה', - hh: function (number) { - if (number === 2) { - return 'שעתיים'; - } - return number + ' שעות'; - }, - d: 'יום', - dd: function (number) { - if (number === 2) { - return 'יומיים'; - } - return number + ' ימים'; - }, - M: 'חודש', - MM: function (number) { - if (number === 2) { - return 'חודשיים'; - } - return number + ' חודשים'; - }, - y: 'שנה', - yy: function (number) { - if (number === 2) { - return 'שנתיים'; - } else if (number % 10 === 0 && number !== 10) { - return number + ' שנה'; - } - return number + ' שנים'; - }, - }, - meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i, - isPM: function (input) { - return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input); - }, - meridiem: function (hour, minute, isLower) { - if (hour < 5) { - return 'לפנות בוקר'; - } else if (hour < 10) { - return 'בבוקר'; - } else if (hour < 12) { - return isLower ? 'לפנה"צ' : 'לפני הצהריים'; - } else if (hour < 18) { - return isLower ? 'אחה"צ' : 'אחרי הצהריים'; - } else { - return 'בערב'; - } - }, + this.onTitleMouseEnter = function (domEvent) { + var _props6 = _this3.props, + key = _props6.eventKey, + onItemHover = _props6.onItemHover, + onTitleMouseEnter = _props6.onTitleMouseEnter; + + onItemHover({ + key: key, + hover: true + }); + onTitleMouseEnter({ + key: key, + domEvent: domEvent }); + }; - return he; + this.onTitleMouseLeave = function (e) { + var _props7 = _this3.props, + parentMenu = _props7.parentMenu, + eventKey = _props7.eventKey, + onItemHover = _props7.onItemHover, + onTitleMouseLeave = _props7.onTitleMouseLeave; - }))); + parentMenu.subMenuInstance = _this3; + onItemHover({ + key: eventKey, + hover: false + }); + onTitleMouseLeave({ + key: eventKey, + domEvent: e + }); + }; + this.onTitleClick = function (e) { + var props = _this3.props; - /***/ }), - /* 390 */ - /***/ (function(module, exports, __webpack_require__) { + props.onTitleClick({ + key: props.eventKey, + domEvent: e + }); + if (props.triggerSubMenuAction === 'hover') { + return; + } + _this3.triggerOpenChange(!props.isOpen, 'click'); + updateDefaultActiveFirst(props.store, _this3.props.eventKey, false); + }; - //! moment.js locale configuration - //! locale : Hindi [hi] - //! author : Mayank Singhal : https://github.com/mayanksinghal + this.onSubMenuClick = function (info) { + // in the case of overflowed submenu + // onClick is not copied over + if (typeof _this3.props.onClick === 'function') { + _this3.props.onClick(_this3.addKeyPath(info)); + } + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + this.onSelect = function (info) { + _this3.props.onSelect(info); + }; - //! moment.js locale configuration + this.onDeselect = function (info) { + _this3.props.onDeselect(info); + }; - var symbolMap = { - '1': '१', - '2': '२', - '3': '३', - '4': '४', - '5': '५', - '6': '६', - '7': '७', - '8': '८', - '9': '९', - '0': '०', - }, - numberMap = { - '१': '1', - '२': '2', - '३': '3', - '४': '4', - '५': '5', - '६': '6', - '७': '7', - '८': '8', - '९': '9', - '०': '0', - }; + this.getPrefixCls = function () { + return _this3.props.rootPrefixCls + '-submenu'; + }; - var hi = moment.defineLocale('hi', { - months: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split( - '_' - ), - monthsShort: 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'), - weekdaysShort: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'), - weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'), - longDateFormat: { - LT: 'A h:mm बजे', - LTS: 'A h:mm:ss बजे', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm बजे', - LLLL: 'dddd, D MMMM YYYY, A h:mm बजे', - }, - calendar: { - sameDay: '[आज] LT', - nextDay: '[कल] LT', - nextWeek: 'dddd, LT', - lastDay: '[कल] LT', - lastWeek: '[पिछले] dddd, LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s में', - past: '%s पहले', - s: 'कुछ ही क्षण', - ss: '%d सेकंड', - m: 'एक मिनट', - mm: '%d मिनट', - h: 'एक घंटा', - hh: '%d घंटे', - d: 'एक दिन', - dd: '%d दिन', - M: 'एक महीने', - MM: '%d महीने', - y: 'एक वर्ष', - yy: '%d वर्ष', - }, - preparse: function (string) { - return string.replace(/[१२३४५६७८९०]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - // Hindi notation for meridiems are quite fuzzy in practice. While there exists - // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi. - meridiemParse: /रात|सुबह|दोपहर|शाम/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'रात') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'सुबह') { - return hour; - } else if (meridiem === 'दोपहर') { - return hour >= 10 ? hour : hour + 12; - } else if (meridiem === 'शाम') { - return hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'रात'; - } else if (hour < 10) { - return 'सुबह'; - } else if (hour < 17) { - return 'दोपहर'; - } else if (hour < 20) { - return 'शाम'; - } else { - return 'रात'; - } - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }, - }); + this.getActiveClassName = function () { + return _this3.getPrefixCls() + '-active'; + }; - return hi; + this.getDisabledClassName = function () { + return _this3.getPrefixCls() + '-disabled'; + }; - }))); + this.getSelectedClassName = function () { + return _this3.getPrefixCls() + '-selected'; + }; + this.getOpenClassName = function () { + return _this3.props.rootPrefixCls + '-submenu-open'; + }; - /***/ }), - /* 391 */ - /***/ (function(module, exports, __webpack_require__) { + this.saveMenuInstance = function (c) { + // children menu instance + _this3.menuInstance = c; + }; - //! moment.js locale configuration - //! locale : Croatian [hr] - //! author : Bojan Marković : https://github.com/bmarkovic + this.addKeyPath = function (info) { + return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, info, { + keyPath: (info.keyPath || []).concat(_this3.props.eventKey) + }); + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + this.triggerOpenChange = function (open, type) { + var key = _this3.props.eventKey; + var openChange = function openChange() { + _this3.onOpenChange({ + key: key, + item: _this3, + trigger: type, + open: open + }); + }; + if (type === 'mouseenter') { + // make sure mouseenter happen after other menu item's mouseleave + _this3.mouseenterTimeout = setTimeout(function () { + openChange(); + }, 0); + } else { + openChange(); + } + }; - //! moment.js locale configuration + this.isChildrenSelected = function () { + var ret = { find: false }; + Object(__WEBPACK_IMPORTED_MODULE_14__util__["e" /* loopMenuItemRecursively */])(_this3.props.children, _this3.props.selectedKeys, ret); + return ret.find; + }; - function translate(number, withoutSuffix, key) { - var result = number + ' '; - switch (key) { - case 'ss': - if (number === 1) { - result += 'sekunda'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'sekunde'; - } else { - result += 'sekundi'; - } - return result; - case 'm': - return withoutSuffix ? 'jedna minuta' : 'jedne minute'; - case 'mm': - if (number === 1) { - result += 'minuta'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'minute'; - } else { - result += 'minuta'; - } - return result; - case 'h': - return withoutSuffix ? 'jedan sat' : 'jednog sata'; - case 'hh': - if (number === 1) { - result += 'sat'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'sata'; - } else { - result += 'sati'; - } - return result; - case 'dd': - if (number === 1) { - result += 'dan'; - } else { - result += 'dana'; - } - return result; - case 'MM': - if (number === 1) { - result += 'mjesec'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'mjeseca'; - } else { - result += 'mjeseci'; - } - return result; - case 'yy': - if (number === 1) { - result += 'godina'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'godine'; - } else { - result += 'godina'; - } - return result; - } + this.isOpen = function () { + return _this3.props.openKeys.indexOf(_this3.props.eventKey) !== -1; + }; + + this.adjustWidth = function () { + /* istanbul ignore if */ + if (!_this3.subMenuTitle || !_this3.menuInstance) { + return; + } + var popupMenu = __WEBPACK_IMPORTED_MODULE_5_react_dom___default.a.findDOMNode(_this3.menuInstance); + if (popupMenu.offsetWidth >= _this3.subMenuTitle.offsetWidth) { + return; } - var hr = moment.defineLocale('hr', { - months: { - format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split( - '_' - ), - standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split( - '_' - ), - }, - monthsShort: 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split( - '_' - ), - weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), - weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'Do MMMM YYYY', - LLL: 'Do MMMM YYYY H:mm', - LLLL: 'dddd, Do MMMM YYYY H:mm', - }, - calendar: { - sameDay: '[danas u] LT', - nextDay: '[sutra u] LT', - nextWeek: function () { - switch (this.day()) { - case 0: - return '[u] [nedjelju] [u] LT'; - case 3: - return '[u] [srijedu] [u] LT'; - case 6: - return '[u] [subotu] [u] LT'; - case 1: - case 2: - case 4: - case 5: - return '[u] dddd [u] LT'; - } - }, - lastDay: '[jučer u] LT', - lastWeek: function () { - switch (this.day()) { - case 0: - return '[prošlu] [nedjelju] [u] LT'; - case 3: - return '[prošlu] [srijedu] [u] LT'; - case 6: - return '[prošle] [subote] [u] LT'; - case 1: - case 2: - case 4: - case 5: - return '[prošli] dddd [u] LT'; - } - }, - sameElse: 'L', - }, - relativeTime: { - future: 'za %s', - past: 'prije %s', - s: 'par sekundi', - ss: translate, - m: translate, - mm: translate, - h: translate, - hh: translate, - d: 'dan', - dd: translate, - M: 'mjesec', - MM: translate, - y: 'godinu', - yy: translate, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); + /* istanbul ignore next */ + popupMenu.style.minWidth = _this3.subMenuTitle.offsetWidth + 'px'; + }; - return hr; + this.saveSubMenuTitle = function (subMenuTitle) { + _this3.subMenuTitle = subMenuTitle; + }; + }; - }))); + var connected = Object(__WEBPACK_IMPORTED_MODULE_10_mini_store__["connect"])(function (_ref, _ref2) { + var openKeys = _ref.openKeys, + activeKey = _ref.activeKey, + selectedKeys = _ref.selectedKeys; + var eventKey = _ref2.eventKey, + subMenuKey = _ref2.subMenuKey; + return { + isOpen: openKeys.indexOf(eventKey) > -1, + active: activeKey[subMenuKey] === eventKey, + selectedKeys: selectedKeys + }; + })(SubMenu); + + connected.isSubMenu = true; + /* harmony default export */ __webpack_exports__["a"] = (connected); /***/ }), - /* 392 */ - /***/ (function(module, exports, __webpack_require__) { + /* 254 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { - //! moment.js locale configuration - //! locale : Hungarian [hu] - //! author : Adam Brunner : https://github.com/adambrunner + "use strict"; + /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ContainerRender; }); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom__ = __webpack_require__(3); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_dom__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types__ = __webpack_require__(1); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_prop_types__); + function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - //! moment.js locale configuration + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split( - ' ' - ); - function translate(number, withoutSuffix, key, isFuture) { - var num = number; - switch (key) { - case 's': - return isFuture || withoutSuffix - ? 'néhány másodperc' - : 'néhány másodperce'; - case 'ss': - return num + (isFuture || withoutSuffix) - ? ' másodperc' - : ' másodperce'; - case 'm': - return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce'); - case 'mm': - return num + (isFuture || withoutSuffix ? ' perc' : ' perce'); - case 'h': - return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája'); - case 'hh': - return num + (isFuture || withoutSuffix ? ' óra' : ' órája'); - case 'd': - return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja'); - case 'dd': - return num + (isFuture || withoutSuffix ? ' nap' : ' napja'); - case 'M': - return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja'); - case 'MM': - return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja'); - case 'y': - return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve'); - case 'yy': - return num + (isFuture || withoutSuffix ? ' év' : ' éve'); - } - return ''; - } - function week(isFuture) { - return ( - (isFuture ? '' : '[múlt] ') + - '[' + - weekEndings[this.day()] + - '] LT[-kor]' - ); - } + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - var hu = moment.defineLocale('hu', { - months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split( - '_' - ), - monthsShort: 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split( - '_' - ), - weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'), - weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'), - weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'), - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'YYYY.MM.DD.', - LL: 'YYYY. MMMM D.', - LLL: 'YYYY. MMMM D. H:mm', - LLLL: 'YYYY. MMMM D., dddd H:mm', - }, - meridiemParse: /de|du/i, - isPM: function (input) { - return input.charAt(1).toLowerCase() === 'u'; - }, - meridiem: function (hours, minutes, isLower) { - if (hours < 12) { - return isLower === true ? 'de' : 'DE'; - } else { - return isLower === true ? 'du' : 'DU'; - } - }, - calendar: { - sameDay: '[ma] LT[-kor]', - nextDay: '[holnap] LT[-kor]', - nextWeek: function () { - return week.call(this, true); - }, - lastDay: '[tegnap] LT[-kor]', - lastWeek: function () { - return week.call(this, false); - }, - sameElse: 'L', - }, - relativeTime: { - future: '%s múlva', - past: '%s', - s: translate, - ss: translate, - m: translate, - mm: translate, - h: translate, - hh: translate, - d: translate, - dd: translate, - M: translate, - MM: translate, - y: translate, - yy: translate, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } - return hu; + function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - }))); + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } - /***/ }), - /* 393 */ - /***/ (function(module, exports, __webpack_require__) { + function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } - //! moment.js locale configuration - //! locale : Armenian [hy-am] - //! author : Armendarabyan : https://github.com/armendarabyan + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - //! moment.js locale configuration - var hyAm = moment.defineLocale('hy-am', { - months: { - format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split( - '_' - ), - standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split( - '_' - ), - }, - monthsShort: 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'), - weekdays: 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split( - '_' - ), - weekdaysShort: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'), - weekdaysMin: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY թ.', - LLL: 'D MMMM YYYY թ., HH:mm', - LLLL: 'dddd, D MMMM YYYY թ., HH:mm', - }, - calendar: { - sameDay: '[այսօր] LT', - nextDay: '[վաղը] LT', - lastDay: '[երեկ] LT', - nextWeek: function () { - return 'dddd [օրը ժամը] LT'; - }, - lastWeek: function () { - return '[անցած] dddd [օրը ժամը] LT'; - }, - sameElse: 'L', - }, - relativeTime: { - future: '%s հետո', - past: '%s առաջ', - s: 'մի քանի վայրկյան', - ss: '%d վայրկյան', - m: 'րոպե', - mm: '%d րոպե', - h: 'ժամ', - hh: '%d ժամ', - d: 'օր', - dd: '%d օր', - M: 'ամիս', - MM: '%d ամիս', - y: 'տարի', - yy: '%d տարի', - }, - meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/, - isPM: function (input) { - return /^(ցերեկվա|երեկոյան)$/.test(input); - }, - meridiem: function (hour) { - if (hour < 4) { - return 'գիշերվա'; - } else if (hour < 12) { - return 'առավոտվա'; - } else if (hour < 17) { - return 'ցերեկվա'; - } else { - return 'երեկոյան'; - } - }, - dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/, - ordinal: function (number, period) { - switch (period) { - case 'DDD': - case 'w': - case 'W': - case 'DDDo': - if (number === 1) { - return number + '-ին'; - } - return number + '-րդ'; - default: - return number; - } - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); - return hyAm; - }))); + var ContainerRender = /*#__PURE__*/function (_React$Component) { + _inherits(ContainerRender, _React$Component); - /***/ }), - /* 394 */ - /***/ (function(module, exports, __webpack_require__) { + var _super = _createSuper(ContainerRender); - //! moment.js locale configuration - //! locale : Indonesian [id] - //! author : Mohammad Satrio Utomo : https://github.com/tyok - //! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan + function ContainerRender() { + var _this; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + _classCallCheck(this, ContainerRender); - //! moment.js locale configuration + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } - var id = moment.defineLocale('id', { - months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'), - weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'), - weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'), - weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'), - longDateFormat: { - LT: 'HH.mm', - LTS: 'HH.mm.ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY [pukul] HH.mm', - LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm', - }, - meridiemParse: /pagi|siang|sore|malam/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'pagi') { - return hour; - } else if (meridiem === 'siang') { - return hour >= 11 ? hour : hour + 12; - } else if (meridiem === 'sore' || meridiem === 'malam') { - return hour + 12; - } - }, - meridiem: function (hours, minutes, isLower) { - if (hours < 11) { - return 'pagi'; - } else if (hours < 15) { - return 'siang'; - } else if (hours < 19) { - return 'sore'; - } else { - return 'malam'; - } - }, - calendar: { - sameDay: '[Hari ini pukul] LT', - nextDay: '[Besok pukul] LT', - nextWeek: 'dddd [pukul] LT', - lastDay: '[Kemarin pukul] LT', - lastWeek: 'dddd [lalu pukul] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'dalam %s', - past: '%s yang lalu', - s: 'beberapa detik', - ss: '%d detik', - m: 'semenit', - mm: '%d menit', - h: 'sejam', - hh: '%d jam', - d: 'sehari', - dd: '%d hari', - M: 'sebulan', - MM: '%d bulan', - y: 'setahun', - yy: '%d tahun', - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); + _this = _super.call.apply(_super, [this].concat(args)); - return id; + _this.removeContainer = function () { + if (_this.container) { + __WEBPACK_IMPORTED_MODULE_1_react_dom___default.a.unmountComponentAtNode(_this.container); - }))); + _this.container.parentNode.removeChild(_this.container); + _this.container = null; + } + }; - /***/ }), - /* 395 */ - /***/ (function(module, exports, __webpack_require__) { + _this.renderComponent = function (props, ready) { + var _this$props = _this.props, + visible = _this$props.visible, + getComponent = _this$props.getComponent, + forceRender = _this$props.forceRender, + getContainer = _this$props.getContainer, + parent = _this$props.parent; - //! moment.js locale configuration - //! locale : Icelandic [is] - //! author : Hinrik Örn Sigurðsson : https://github.com/hinrik + if (visible || parent._component || forceRender) { + if (!_this.container) { + _this.container = getContainer(); + } - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + __WEBPACK_IMPORTED_MODULE_1_react_dom___default.a.unstable_renderSubtreeIntoContainer(parent, getComponent(props), _this.container, function callback() { + if (ready) { + ready.call(this); + } + }); + } + }; - //! moment.js locale configuration + return _this; + } - function plural(n) { - if (n % 100 === 11) { - return true; - } else if (n % 10 === 1) { - return false; - } - return true; - } - function translate(number, withoutSuffix, key, isFuture) { - var result = number + ' '; - switch (key) { - case 's': - return withoutSuffix || isFuture - ? 'nokkrar sekúndur' - : 'nokkrum sekúndum'; - case 'ss': - if (plural(number)) { - return ( - result + - (withoutSuffix || isFuture ? 'sekúndur' : 'sekúndum') - ); - } - return result + 'sekúnda'; - case 'm': - return withoutSuffix ? 'mínúta' : 'mínútu'; - case 'mm': - if (plural(number)) { - return ( - result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum') - ); - } else if (withoutSuffix) { - return result + 'mínúta'; - } - return result + 'mínútu'; - case 'hh': - if (plural(number)) { - return ( - result + - (withoutSuffix || isFuture - ? 'klukkustundir' - : 'klukkustundum') - ); - } - return result + 'klukkustund'; - case 'd': - if (withoutSuffix) { - return 'dagur'; - } - return isFuture ? 'dag' : 'degi'; - case 'dd': - if (plural(number)) { - if (withoutSuffix) { - return result + 'dagar'; - } - return result + (isFuture ? 'daga' : 'dögum'); - } else if (withoutSuffix) { - return result + 'dagur'; - } - return result + (isFuture ? 'dag' : 'degi'); - case 'M': - if (withoutSuffix) { - return 'mánuður'; - } - return isFuture ? 'mánuð' : 'mánuði'; - case 'MM': - if (plural(number)) { - if (withoutSuffix) { - return result + 'mánuðir'; - } - return result + (isFuture ? 'mánuði' : 'mánuðum'); - } else if (withoutSuffix) { - return result + 'mánuður'; - } - return result + (isFuture ? 'mánuð' : 'mánuði'); - case 'y': - return withoutSuffix || isFuture ? 'ár' : 'ári'; - case 'yy': - if (plural(number)) { - return result + (withoutSuffix || isFuture ? 'ár' : 'árum'); - } - return result + (withoutSuffix || isFuture ? 'ár' : 'ári'); - } + _createClass(ContainerRender, [{ + key: "componentDidMount", + value: function componentDidMount() { + if (this.props.autoMount) { + this.renderComponent(); + } } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate() { + if (this.props.autoMount) { + this.renderComponent(); + } + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + if (this.props.autoDestroy) { + this.removeContainer(); + } + } + }, { + key: "render", + value: function render() { + return this.props.children({ + renderComponent: this.renderComponent, + removeContainer: this.removeContainer + }); + } + }]); - var is = moment.defineLocale('is', { - months: 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split( - '_' - ), - monthsShort: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'), - weekdays: 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split( - '_' - ), - weekdaysShort: 'sun_mán_þri_mið_fim_fös_lau'.split('_'), - weekdaysMin: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'), - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY [kl.] H:mm', - LLLL: 'dddd, D. MMMM YYYY [kl.] H:mm', - }, - calendar: { - sameDay: '[í dag kl.] LT', - nextDay: '[á morgun kl.] LT', - nextWeek: 'dddd [kl.] LT', - lastDay: '[í gær kl.] LT', - lastWeek: '[síðasta] dddd [kl.] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'eftir %s', - past: 'fyrir %s síðan', - s: translate, - ss: translate, - m: translate, - mm: translate, - h: 'klukkustund', - hh: translate, - d: translate, - dd: translate, - M: translate, - MM: translate, - y: translate, - yy: translate, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return is; + return ContainerRender; + }(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component); - }))); + ContainerRender.propTypes = { + autoMount: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, + autoDestroy: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, + visible: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, + forceRender: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, + parent: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.any, + getComponent: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func.isRequired, + getContainer: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func.isRequired, + children: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func.isRequired + }; + ContainerRender.defaultProps = { + autoMount: true, + autoDestroy: true, + forceRender: false + }; /***/ }), - /* 396 */ - /***/ (function(module, exports, __webpack_require__) { + /* 255 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { - //! moment.js locale configuration - //! locale : Italian [it] - //! author : Lorenzo : https://github.com/aliem - //! author: Mattia Larentis: https://github.com/nostalgiaz - //! author: Marco : https://github.com/Manfre98 + "use strict"; + /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Portal; }); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom__ = __webpack_require__(3); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_dom__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types__ = __webpack_require__(1); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_prop_types__); + function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - //! moment.js locale configuration + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - var it = moment.defineLocale('it', { - months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split( - '_' - ), - monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'), - weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split( - '_' - ), - weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'), - weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: function () { - return ( - '[Oggi a' + - (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + - ']LT' - ); - }, - nextDay: function () { - return ( - '[Domani a' + - (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + - ']LT' - ); - }, - nextWeek: function () { - return ( - 'dddd [a' + - (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + - ']LT' - ); - }, - lastDay: function () { - return ( - '[Ieri a' + - (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + - ']LT' - ); - }, - lastWeek: function () { - switch (this.day()) { - case 0: - return ( - '[La scorsa] dddd [a' + - (this.hours() > 1 - ? 'lle ' - : this.hours() === 0 - ? ' ' - : "ll'") + - ']LT' - ); - default: - return ( - '[Lo scorso] dddd [a' + - (this.hours() > 1 - ? 'lle ' - : this.hours() === 0 - ? ' ' - : "ll'") + - ']LT' - ); - } - }, - sameElse: 'L', - }, - relativeTime: { - future: function (s) { - return (/^[0-9].+$/.test(s) ? 'tra' : 'in') + ' ' + s; - }, - past: '%s fa', - s: 'alcuni secondi', - ss: '%d secondi', - m: 'un minuto', - mm: '%d minuti', - h: "un'ora", - hh: '%d ore', - d: 'un giorno', - dd: '%d giorni', - M: 'un mese', - MM: '%d mesi', - y: 'un anno', - yy: '%d anni', - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - return it; + function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } - }))); + function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - /***/ }), - /* 397 */ - /***/ (function(module, exports, __webpack_require__) { + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } - //! moment.js locale configuration - //! locale : Italian (Switzerland) [it-ch] - //! author : xfh : https://github.com/xfh + function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } - //! moment.js locale configuration + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - var itCh = moment.defineLocale('it-ch', { - months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split( - '_' - ), - monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'), - weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split( - '_' - ), - weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'), - weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Oggi alle] LT', - nextDay: '[Domani alle] LT', - nextWeek: 'dddd [alle] LT', - lastDay: '[Ieri alle] LT', - lastWeek: function () { - switch (this.day()) { - case 0: - return '[la scorsa] dddd [alle] LT'; - default: - return '[lo scorso] dddd [alle] LT'; - } - }, - sameElse: 'L', - }, - relativeTime: { - future: function (s) { - return (/^[0-9].+$/.test(s) ? 'tra' : 'in') + ' ' + s; - }, - past: '%s fa', - s: 'alcuni secondi', - ss: '%d secondi', - m: 'un minuto', - mm: '%d minuti', - h: "un'ora", - hh: '%d ore', - d: 'un giorno', - dd: '%d giorni', - M: 'un mese', - MM: '%d mesi', - y: 'un anno', - yy: '%d anni', - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - return itCh; - }))); - /***/ }), - /* 398 */ - /***/ (function(module, exports, __webpack_require__) { + var Portal = /*#__PURE__*/function (_React$Component) { + _inherits(Portal, _React$Component); - //! moment.js locale configuration - //! locale : Japanese [ja] - //! author : LI Long : https://github.com/baryon + var _super = _createSuper(Portal); - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + function Portal() { + _classCallCheck(this, Portal); - //! moment.js locale configuration + return _super.apply(this, arguments); + } - var ja = moment.defineLocale('ja', { - eras: [ - { - since: '2019-05-01', - offset: 1, - name: '令和', - narrow: '㋿', - abbr: 'R', - }, - { - since: '1989-01-08', - until: '2019-04-30', - offset: 1, - name: '平成', - narrow: '㍻', - abbr: 'H', - }, - { - since: '1926-12-25', - until: '1989-01-07', - offset: 1, - name: '昭和', - narrow: '㍼', - abbr: 'S', - }, - { - since: '1912-07-30', - until: '1926-12-24', - offset: 1, - name: '大正', - narrow: '㍽', - abbr: 'T', - }, - { - since: '1873-01-01', - until: '1912-07-29', - offset: 6, - name: '明治', - narrow: '㍾', - abbr: 'M', - }, - { - since: '0001-01-01', - until: '1873-12-31', - offset: 1, - name: '西暦', - narrow: 'AD', - abbr: 'AD', - }, - { - since: '0000-12-31', - until: -Infinity, - offset: 1, - name: '紀元前', - narrow: 'BC', - abbr: 'BC', - }, - ], - eraYearOrdinalRegex: /(元|\d+)年/, - eraYearOrdinalParse: function (input, match) { - return match[1] === '元' ? 1 : parseInt(match[1] || input, 10); - }, - months: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), - monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split( - '_' - ), - weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'), - weekdaysShort: '日_月_火_水_木_金_土'.split('_'), - weekdaysMin: '日_月_火_水_木_金_土'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY/MM/DD', - LL: 'YYYY年M月D日', - LLL: 'YYYY年M月D日 HH:mm', - LLLL: 'YYYY年M月D日 dddd HH:mm', - l: 'YYYY/MM/DD', - ll: 'YYYY年M月D日', - lll: 'YYYY年M月D日 HH:mm', - llll: 'YYYY年M月D日(ddd) HH:mm', - }, - meridiemParse: /午前|午後/i, - isPM: function (input) { - return input === '午後'; - }, - meridiem: function (hour, minute, isLower) { - if (hour < 12) { - return '午前'; - } else { - return '午後'; - } - }, - calendar: { - sameDay: '[今日] LT', - nextDay: '[明日] LT', - nextWeek: function (now) { - if (now.week() !== this.week()) { - return '[来週]dddd LT'; - } else { - return 'dddd LT'; - } - }, - lastDay: '[昨日] LT', - lastWeek: function (now) { - if (this.week() !== now.week()) { - return '[先週]dddd LT'; - } else { - return 'dddd LT'; - } - }, - sameElse: 'L', - }, - dayOfMonthOrdinalParse: /\d{1,2}日/, - ordinal: function (number, period) { - switch (period) { - case 'y': - return number === 1 ? '元年' : number + '年'; - case 'd': - case 'D': - case 'DDD': - return number + '日'; - default: - return number; - } - }, - relativeTime: { - future: '%s後', - past: '%s前', - s: '数秒', - ss: '%d秒', - m: '1分', - mm: '%d分', - h: '1時間', - hh: '%d時間', - d: '1日', - dd: '%d日', - M: '1ヶ月', - MM: '%dヶ月', - y: '1年', - yy: '%d年', - }, - }); + _createClass(Portal, [{ + key: "componentDidMount", + value: function componentDidMount() { + this.createContainer(); + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + var didUpdate = this.props.didUpdate; - return ja; + if (didUpdate) { + didUpdate(prevProps); + } + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + this.removeContainer(); + } + }, { + key: "createContainer", + value: function createContainer() { + this._container = this.props.getContainer(); + this.forceUpdate(); + } + }, { + key: "removeContainer", + value: function removeContainer() { + if (this._container) { + this._container.parentNode.removeChild(this._container); + } + } + }, { + key: "render", + value: function render() { + if (this._container) { + return __WEBPACK_IMPORTED_MODULE_1_react_dom___default.a.createPortal(this.props.children, this._container); + } - }))); + return null; + } + }]); + + return Portal; + }(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component); + + Portal.propTypes = { + getContainer: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func.isRequired, + children: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.node.isRequired, + didUpdate: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func + }; /***/ }), - /* 399 */ - /***/ (function(module, exports, __webpack_require__) { + /* 256 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { - //! moment.js locale configuration - //! locale : Javanese [jv] - //! author : Rony Lantip : https://github.com/lantip - //! reference: http://jv.wikipedia.org/wiki/Basa_Jawa + "use strict"; + /* harmony export (immutable) */ __webpack_exports__["a"] = getAlignFromPlacement; + /* harmony export (immutable) */ __webpack_exports__["b"] = getAlignPopupClassName; + /* harmony export (immutable) */ __webpack_exports__["c"] = saveRef; + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(8); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + function isPointsEq(a1, a2, isAlignPoint) { + if (isAlignPoint) { + return a1[0] === a2[0]; + } + return a1[0] === a2[0] && a1[1] === a2[1]; + } - //! moment.js locale configuration + function getAlignFromPlacement(builtinPlacements, placementStr, align) { + var baseAlign = builtinPlacements[placementStr] || {}; + return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, baseAlign, align); + } - var jv = moment.defineLocale('jv', { - months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'), - weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'), - weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'), - weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'), - longDateFormat: { - LT: 'HH.mm', - LTS: 'HH.mm.ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY [pukul] HH.mm', - LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm', - }, - meridiemParse: /enjing|siyang|sonten|ndalu/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'enjing') { - return hour; - } else if (meridiem === 'siyang') { - return hour >= 11 ? hour : hour + 12; - } else if (meridiem === 'sonten' || meridiem === 'ndalu') { - return hour + 12; - } - }, - meridiem: function (hours, minutes, isLower) { - if (hours < 11) { - return 'enjing'; - } else if (hours < 15) { - return 'siyang'; - } else if (hours < 19) { - return 'sonten'; - } else { - return 'ndalu'; - } - }, - calendar: { - sameDay: '[Dinten puniko pukul] LT', - nextDay: '[Mbenjang pukul] LT', - nextWeek: 'dddd [pukul] LT', - lastDay: '[Kala wingi pukul] LT', - lastWeek: 'dddd [kepengker pukul] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'wonten ing %s', - past: '%s ingkang kepengker', - s: 'sawetawis detik', - ss: '%d detik', - m: 'setunggal menit', - mm: '%d menit', - h: 'setunggal jam', - hh: '%d jam', - d: 'sedinten', - dd: '%d dinten', - M: 'sewulan', - MM: '%d wulan', - y: 'setaun', - yy: '%d taun', - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); + function getAlignPopupClassName(builtinPlacements, prefixCls, align, isAlignPoint) { + var points = align.points; + for (var placement in builtinPlacements) { + if (builtinPlacements.hasOwnProperty(placement)) { + if (isPointsEq(builtinPlacements[placement].points, points, isAlignPoint)) { + return prefixCls + '-placement-' + placement; + } + } + } + return ''; + } - return jv; + function saveRef(name, component) { + this[name] = component; + } - }))); + /***/ }), + /* 257 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { + "use strict"; + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Align__ = __webpack_require__(802); + // export this package's api + + + /* harmony default export */ __webpack_exports__["a"] = (__WEBPACK_IMPORTED_MODULE_0__Align__["a" /* default */]); /***/ }), - /* 400 */ - /***/ (function(module, exports, __webpack_require__) { + /* 258 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { - //! moment.js locale configuration - //! locale : Georgian [ka] - //! author : Irakli Janiashvili : https://github.com/IrakliJani + "use strict"; + var util = { + isAppearSupported: function isAppearSupported(props) { + return props.transitionName && props.transitionAppear || props.animation.appear; + }, + isEnterSupported: function isEnterSupported(props) { + return props.transitionName && props.transitionEnter || props.animation.enter; + }, + isLeaveSupported: function isLeaveSupported(props) { + return props.transitionName && props.transitionLeave || props.animation.leave; + }, + allowAppearCallback: function allowAppearCallback(props) { + return props.transitionAppear || props.animation.appear; + }, + allowEnterCallback: function allowEnterCallback(props) { + return props.transitionEnter || props.animation.enter; + }, + allowLeaveCallback: function allowLeaveCallback(props) { + return props.transitionLeave || props.animation.leave; + } + }; + /* harmony default export */ __webpack_exports__["a"] = (util); - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + /***/ }), + /* 259 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { - //! moment.js locale configuration + "use strict"; + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(24); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(7); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(9); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(10); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react__ = __webpack_require__(0); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types__ = __webpack_require__(1); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_prop_types__); - var ka = moment.defineLocale('ka', { - months: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split( - '_' - ), - monthsShort: 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'), - weekdays: { - standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split( - '_' - ), - format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split( - '_' - ), - isFormat: /(წინა|შემდეგ)/, - }, - weekdaysShort: 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'), - weekdaysMin: 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[დღეს] LT[-ზე]', - nextDay: '[ხვალ] LT[-ზე]', - lastDay: '[გუშინ] LT[-ზე]', - nextWeek: '[შემდეგ] dddd LT[-ზე]', - lastWeek: '[წინა] dddd LT-ზე', - sameElse: 'L', - }, - relativeTime: { - future: function (s) { - return s.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/, function ( - $0, - $1, - $2 - ) { - return $2 === 'ი' ? $1 + 'ში' : $1 + $2 + 'ში'; - }); - }, - past: function (s) { - if (/(წამი|წუთი|საათი|დღე|თვე)/.test(s)) { - return s.replace(/(ი|ე)$/, 'ის წინ'); - } - if (/წელი/.test(s)) { - return s.replace(/წელი$/, 'წლის წინ'); - } - return s; - }, - s: 'რამდენიმე წამი', - ss: '%d წამი', - m: 'წუთი', - mm: '%d წუთი', - h: 'საათი', - hh: '%d საათი', - d: 'დღე', - dd: '%d დღე', - M: 'თვე', - MM: '%d თვე', - y: 'წელი', - yy: '%d წელი', - }, - dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/, - ordinal: function (number) { - if (number === 0) { - return number; - } - if (number === 1) { - return number + '-ლი'; - } - if ( - number < 20 || - (number <= 100 && number % 20 === 0) || - number % 100 === 0 - ) { - return 'მე-' + number; - } - return number + '-ე'; - }, - week: { - dow: 1, - doy: 7, - }, - }); - return ka; - }))); - /***/ }), - /* 401 */ - /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Kazakh [kk] - //! authors : Nurlan Rakhimzhanov : https://github.com/nurlan - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var LazyRenderBox = function (_Component) { + __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default()(LazyRenderBox, _Component); - //! moment.js locale configuration + function LazyRenderBox() { + __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, LazyRenderBox); - var suffixes = { - 0: '-ші', - 1: '-ші', - 2: '-ші', - 3: '-ші', - 4: '-ші', - 5: '-ші', - 6: '-шы', - 7: '-ші', - 8: '-ші', - 9: '-шы', - 10: '-шы', - 20: '-шы', - 30: '-шы', - 40: '-шы', - 50: '-ші', - 60: '-шы', - 70: '-ші', - 80: '-ші', - 90: '-шы', - 100: '-ші', - }; + return __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(this, _Component.apply(this, arguments)); + } - var kk = moment.defineLocale('kk', { - months: 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split( - '_' - ), - monthsShort: 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'), - weekdays: 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split( - '_' - ), - weekdaysShort: 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'), - weekdaysMin: 'жк_дй_сй_ср_бй_жм_сн'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Бүгін сағат] LT', - nextDay: '[Ертең сағат] LT', - nextWeek: 'dddd [сағат] LT', - lastDay: '[Кеше сағат] LT', - lastWeek: '[Өткен аптаның] dddd [сағат] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s ішінде', - past: '%s бұрын', - s: 'бірнеше секунд', - ss: '%d секунд', - m: 'бір минут', - mm: '%d минут', - h: 'бір сағат', - hh: '%d сағат', - d: 'бір күн', - dd: '%d күн', - M: 'бір ай', - MM: '%d ай', - y: 'бір жыл', - yy: '%d жыл', - }, - dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/, - ordinal: function (number) { - var a = number % 10, - b = number >= 100 ? 100 : null; - return number + (suffixes[number] || suffixes[a] || suffixes[b]); - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); + LazyRenderBox.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) { + return nextProps.hiddenClassName || nextProps.visible; + }; - return kk; + LazyRenderBox.prototype.render = function render() { + var _props = this.props, + hiddenClassName = _props.hiddenClassName, + visible = _props.visible, + props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['hiddenClassName', 'visible']); + + if (hiddenClassName || __WEBPACK_IMPORTED_MODULE_4_react___default.a.Children.count(props.children) > 1) { + if (!visible && hiddenClassName) { + props.className += ' ' + hiddenClassName; + } + return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement('div', props); + } + + return __WEBPACK_IMPORTED_MODULE_4_react___default.a.Children.only(props.children); + }; + + return LazyRenderBox; + }(__WEBPACK_IMPORTED_MODULE_4_react__["Component"]); + + LazyRenderBox.propTypes = { + children: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.any, + className: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, + visible: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool, + hiddenClassName: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string + }; - }))); + /* harmony default export */ __webpack_exports__["a"] = (LazyRenderBox); /***/ }), - /* 402 */ + /* 260 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Cambodian [km] - //! author : Kruy Vanna : https://github.com/kruyvanna + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration + exports.__esModule = true; + exports.default = addEventListenerWrap; - var symbolMap = { - '1': '១', - '2': '២', - '3': '៣', - '4': '៤', - '5': '៥', - '6': '៦', - '7': '៧', - '8': '៨', - '9': '៩', - '0': '០', - }, - numberMap = { - '១': '1', - '២': '2', - '៣': '3', - '៤': '4', - '៥': '5', - '៦': '6', - '៧': '7', - '៨': '8', - '៩': '9', - '០': '0', - }; + var _addDomEventListener = __webpack_require__(16); - var km = moment.defineLocale('km', { - months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split( - '_' - ), - monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split( - '_' - ), - weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'), - weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'), - weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - meridiemParse: /ព្រឹក|ល្ងាច/, - isPM: function (input) { - return input === 'ល្ងាច'; - }, - meridiem: function (hour, minute, isLower) { - if (hour < 12) { - return 'ព្រឹក'; - } else { - return 'ល្ងាច'; - } - }, - calendar: { - sameDay: '[ថ្ងៃនេះ ម៉ោង] LT', - nextDay: '[ស្អែក ម៉ោង] LT', - nextWeek: 'dddd [ម៉ោង] LT', - lastDay: '[ម្សិលមិញ ម៉ោង] LT', - lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%sទៀត', - past: '%sមុន', - s: 'ប៉ុន្មានវិនាទី', - ss: '%d វិនាទី', - m: 'មួយនាទី', - mm: '%d នាទី', - h: 'មួយម៉ោង', - hh: '%d ម៉ោង', - d: 'មួយថ្ងៃ', - dd: '%d ថ្ងៃ', - M: 'មួយខែ', - MM: '%d ខែ', - y: 'មួយឆ្នាំ', - yy: '%d ឆ្នាំ', - }, - dayOfMonthOrdinalParse: /ទី\d{1,2}/, - ordinal: 'ទី%d', - preparse: function (string) { - return string.replace(/[១២៣៤៥៦៧៨៩០]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener); - return km; + var _reactDom = __webpack_require__(3); - }))); + var _reactDom2 = _interopRequireDefault(_reactDom); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + /** + * This source code is quoted from rc-util. + * homepage: https://github.com/react-component/util + */ + function addEventListenerWrap(target, eventType, cb) { + /* eslint camelcase: 2 */ + var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) { + _reactDom2.default.unstable_batchedUpdates(cb, e); + } : cb; + return (0, _addDomEventListener2.default)(target, eventType, callback); + } /***/ }), - /* 403 */ + /* 261 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Kannada [kn] - //! author : Rajeev Naik : https://github.com/rajeevnaikte - - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + "use strict"; - //! moment.js locale configuration - var symbolMap = { - '1': '೧', - '2': '೨', - '3': '೩', - '4': '೪', - '5': '೫', - '6': '೬', - '7': '೭', - '8': '೮', - '9': '೯', - '0': '೦', - }, - numberMap = { - '೧': '1', - '೨': '2', - '೩': '3', - '೪': '4', - '೫': '5', - '೬': '6', - '೭': '7', - '೮': '8', - '೯': '9', - '೦': '0', - }; + exports.__esModule = true; - var kn = moment.defineLocale('kn', { - months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split( - '_' - ), - monthsShort: 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split( - '_' - ), - weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'), - weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'), - longDateFormat: { - LT: 'A h:mm', - LTS: 'A h:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm', - LLLL: 'dddd, D MMMM YYYY, A h:mm', - }, - calendar: { - sameDay: '[ಇಂದು] LT', - nextDay: '[ನಾಳೆ] LT', - nextWeek: 'dddd, LT', - lastDay: '[ನಿನ್ನೆ] LT', - lastWeek: '[ಕೊನೆಯ] dddd, LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s ನಂತರ', - past: '%s ಹಿಂದೆ', - s: 'ಕೆಲವು ಕ್ಷಣಗಳು', - ss: '%d ಸೆಕೆಂಡುಗಳು', - m: 'ಒಂದು ನಿಮಿಷ', - mm: '%d ನಿಮಿಷ', - h: 'ಒಂದು ಗಂಟೆ', - hh: '%d ಗಂಟೆ', - d: 'ಒಂದು ದಿನ', - dd: '%d ದಿನ', - M: 'ಒಂದು ತಿಂಗಳು', - MM: '%d ತಿಂಗಳು', - y: 'ಒಂದು ವರ್ಷ', - yy: '%d ವರ್ಷ', - }, - preparse: function (string) { - return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'ರಾತ್ರಿ') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') { - return hour; - } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') { - return hour >= 10 ? hour : hour + 12; - } else if (meridiem === 'ಸಂಜೆ') { - return hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'ರಾತ್ರಿ'; - } else if (hour < 10) { - return 'ಬೆಳಿಗ್ಗೆ'; - } else if (hour < 17) { - return 'ಮಧ್ಯಾಹ್ನ'; - } else if (hour < 20) { - return 'ಸಂಜೆ'; - } else { - return 'ರಾತ್ರಿ'; - } - }, - dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/, - ordinal: function (number) { - return number + 'ನೇ'; - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }, - }); + var _react = __webpack_require__(0); - return kn; + var _react2 = _interopRequireDefault(_react); - }))); + var _propTypes = __webpack_require__(1); + var _propTypes2 = _interopRequireDefault(_propTypes); - /***/ }), - /* 404 */ - /***/ (function(module, exports, __webpack_require__) { + var _reactDom = __webpack_require__(3); - //! moment.js locale configuration - //! locale : Korean [ko] - //! author : Kyungwook, Park : https://github.com/kyungw00k - //! author : Jeeeyul Lee + var _reactDom2 = _interopRequireDefault(_reactDom); - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _domAlign = __webpack_require__(18); - //! moment.js locale configuration + var _domAlign2 = _interopRequireDefault(_domAlign); - var ko = moment.defineLocale('ko', { - months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'), - monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split( - '_' - ), - weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'), - weekdaysShort: '일_월_화_수_목_금_토'.split('_'), - weekdaysMin: '일_월_화_수_목_금_토'.split('_'), - longDateFormat: { - LT: 'A h:mm', - LTS: 'A h:mm:ss', - L: 'YYYY.MM.DD.', - LL: 'YYYY년 MMMM D일', - LLL: 'YYYY년 MMMM D일 A h:mm', - LLLL: 'YYYY년 MMMM D일 dddd A h:mm', - l: 'YYYY.MM.DD.', - ll: 'YYYY년 MMMM D일', - lll: 'YYYY년 MMMM D일 A h:mm', - llll: 'YYYY년 MMMM D일 dddd A h:mm', - }, - calendar: { - sameDay: '오늘 LT', - nextDay: '내일 LT', - nextWeek: 'dddd LT', - lastDay: '어제 LT', - lastWeek: '지난주 dddd LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s 후', - past: '%s 전', - s: '몇 초', - ss: '%d초', - m: '1분', - mm: '%d분', - h: '한 시간', - hh: '%d시간', - d: '하루', - dd: '%d일', - M: '한 달', - MM: '%d달', - y: '일 년', - yy: '%d년', - }, - dayOfMonthOrdinalParse: /\d{1,2}(일|월|주)/, - ordinal: function (number, period) { - switch (period) { - case 'd': - case 'D': - case 'DDD': - return number + '일'; - case 'M': - return number + '월'; - case 'w': - case 'W': - return number + '주'; - default: - return number; - } - }, - meridiemParse: /오전|오후/, - isPM: function (token) { - return token === '오후'; - }, - meridiem: function (hour, minute, isUpper) { - return hour < 12 ? '오전' : '오후'; - }, - }); + var _addEventListener = __webpack_require__(260); - return ko; + var _addEventListener2 = _interopRequireDefault(_addEventListener); - }))); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - /***/ }), - /* 405 */ - /***/ (function(module, exports, __webpack_require__) { + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - //! moment.js locale configuration - //! locale : Kurdish [ku] - //! author : Shahram Mebashar : https://github.com/ShahramMebashar + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /** + * This source code is quoted from rc-util. + * homepage: https://github.com/react-component/util + */ - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration + //import isWindow from './isWindow'; - var symbolMap = { - '1': '١', - '2': '٢', - '3': '٣', - '4': '٤', - '5': '٥', - '6': '٦', - '7': '٧', - '8': '٨', - '9': '٩', - '0': '٠', - }, - numberMap = { - '١': '1', - '٢': '2', - '٣': '3', - '٤': '4', - '٥': '5', - '٦': '6', - '٧': '7', - '٨': '8', - '٩': '9', - '٠': '0', - }, - months = [ - 'کانونی دووەم', - 'شوبات', - 'ئازار', - 'نیسان', - 'ئایار', - 'حوزەیران', - 'تەمموز', - 'ئاب', - 'ئەیلوول', - 'تشرینی یەكەم', - 'تشرینی دووەم', - 'كانونی یەکەم', - ]; + function isWindow(obj) { + /* eslint no-eq-null: 0 */ + /* eslint eqeqeq: 0 */ + return obj != null && obj == obj.window; + } - var ku = moment.defineLocale('ku', { - months: months, - monthsShort: months, - weekdays: 'یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌'.split( - '_' - ), - weekdaysShort: 'یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌'.split( - '_' - ), - weekdaysMin: 'ی_د_س_چ_پ_ه_ش'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - meridiemParse: /ئێواره‌|به‌یانی/, - isPM: function (input) { - return /ئێواره‌/.test(input); - }, - meridiem: function (hour, minute, isLower) { - if (hour < 12) { - return 'به‌یانی'; - } else { - return 'ئێواره‌'; - } - }, - calendar: { - sameDay: '[ئه‌مرۆ كاتژمێر] LT', - nextDay: '[به‌یانی كاتژمێر] LT', - nextWeek: 'dddd [كاتژمێر] LT', - lastDay: '[دوێنێ كاتژمێر] LT', - lastWeek: 'dddd [كاتژمێر] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'له‌ %s', - past: '%s', - s: 'چه‌ند چركه‌یه‌ك', - ss: 'چركه‌ %d', - m: 'یه‌ك خوله‌ك', - mm: '%d خوله‌ك', - h: 'یه‌ك كاتژمێر', - hh: '%d كاتژمێر', - d: 'یه‌ك ڕۆژ', - dd: '%d ڕۆژ', - M: 'یه‌ك مانگ', - MM: '%d مانگ', - y: 'یه‌ك ساڵ', - yy: '%d ساڵ', - }, - preparse: function (string) { - return string - .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) { - return numberMap[match]; - }) - .replace(/،/g, ','); - }, - postformat: function (string) { - return string - .replace(/\d/g, function (match) { - return symbolMap[match]; - }) - .replace(/,/g, '،'); - }, - week: { - dow: 6, // Saturday is the first day of the week. - doy: 12, // The week that contains Jan 12th is the first week of the year. - }, - }); + function buffer(fn, ms) { + var timer = void 0; - return ku; + function clear() { + if (timer) { + clearTimeout(timer); + timer = null; + } + } - }))); + function bufferFn() { + clear(); + timer = setTimeout(fn, ms); + } + bufferFn.clear = clear; - /***/ }), - /* 406 */ - /***/ (function(module, exports, __webpack_require__) { + return bufferFn; + } - //! moment.js locale configuration - //! locale : Kyrgyz [ky] - //! author : Chyngyz Arystan uulu : https://github.com/chyngyz + var propTypes = { + childrenProps: _propTypes2.default.object, + align: _propTypes2.default.object.isRequired, + target: _propTypes2.default.func, + onAlign: _propTypes2.default.func, + monitorBufferTime: _propTypes2.default.number, + monitorWindowResize: _propTypes2.default.bool, + disabled: _propTypes2.default.bool, + children: _propTypes2.default.any + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var defaultProps = { + target: function target() { + return window; + }, + onAlign: function onAlign() {}, - //! moment.js locale configuration + monitorBufferTime: 50, + monitorWindowResize: false, + disabled: false + }; - var suffixes = { - 0: '-чү', - 1: '-чи', - 2: '-чи', - 3: '-чү', - 4: '-чү', - 5: '-чи', - 6: '-чы', - 7: '-чи', - 8: '-чи', - 9: '-чу', - 10: '-чу', - 20: '-чы', - 30: '-чу', - 40: '-чы', - 50: '-чү', - 60: '-чы', - 70: '-чи', - 80: '-чи', - 90: '-чу', - 100: '-чү', - }; + var Align = function (_React$Component) { + _inherits(Align, _React$Component); - var ky = moment.defineLocale('ky', { - months: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split( - '_' - ), - monthsShort: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split( - '_' - ), - weekdays: 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split( - '_' - ), - weekdaysShort: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'), - weekdaysMin: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Бүгүн саат] LT', - nextDay: '[Эртең саат] LT', - nextWeek: 'dddd [саат] LT', - lastDay: '[Кечээ саат] LT', - lastWeek: '[Өткөн аптанын] dddd [күнү] [саат] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s ичинде', - past: '%s мурун', - s: 'бирнече секунд', - ss: '%d секунд', - m: 'бир мүнөт', - mm: '%d мүнөт', - h: 'бир саат', - hh: '%d саат', - d: 'бир күн', - dd: '%d күн', - M: 'бир ай', - MM: '%d ай', - y: 'бир жыл', - yy: '%d жыл', - }, - dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/, - ordinal: function (number) { - var a = number % 10, - b = number >= 100 ? 100 : null; - return number + (suffixes[number] || suffixes[a] || suffixes[b]); - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); + function Align(props) { + _classCallCheck(this, Align); - return ky; + var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); - }))); + _initialiseProps.call(_this); + return _this; + } - /***/ }), - /* 407 */ - /***/ (function(module, exports, __webpack_require__) { + Align.prototype.componentDidMount = function componentDidMount() { + var props = this.props; + // if parent ref not attached .... use document.getElementById + this.forceAlign(); + if (!props.disabled && props.monitorWindowResize) { + this.startMonitorWindowResize(); + } + }; - //! moment.js locale configuration - //! locale : Luxembourgish [lb] - //! author : mweimerskirch : https://github.com/mweimerskirch - //! author : David Raison : https://github.com/kwisatz + Align.prototype.componentDidUpdate = function componentDidUpdate(prevProps) { + var reAlign = false; + var props = this.props; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + if (!props.disabled) { + if (prevProps.disabled || prevProps.align !== props.align) { + reAlign = true; + } else { + var lastTarget = prevProps.target(); + var currentTarget = props.target(); + if (isWindow(lastTarget) && isWindow(currentTarget)) { + reAlign = false; + } else if (lastTarget !== currentTarget) { + reAlign = true; + } + } + } - //! moment.js locale configuration + if (reAlign) { + this.forceAlign(); + } - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - m: ['eng Minutt', 'enger Minutt'], - h: ['eng Stonn', 'enger Stonn'], - d: ['een Dag', 'engem Dag'], - M: ['ee Mount', 'engem Mount'], - y: ['ee Joer', 'engem Joer'], - }; - return withoutSuffix ? format[key][0] : format[key][1]; + if (props.monitorWindowResize && !props.disabled) { + this.startMonitorWindowResize(); + } else { + this.stopMonitorWindowResize(); } - function processFutureTime(string) { - var number = string.substr(0, string.indexOf(' ')); - if (eifelerRegelAppliesToNumber(number)) { - return 'a ' + string; + }; + + Align.prototype.componentWillUnmount = function componentWillUnmount() { + this.stopMonitorWindowResize(); + }; + + Align.prototype.render = function render() { + var _props = this.props, + childrenProps = _props.childrenProps, + children = _props.children; + + var child = _react2.default.Children.only(children); + if (childrenProps) { + var newProps = {}; + for (var prop in childrenProps) { + if (childrenProps.hasOwnProperty(prop)) { + newProps[prop] = this.props[childrenProps[prop]]; } - return 'an ' + string; + } + return _react2.default.cloneElement(child, newProps); } - function processPastTime(string) { - var number = string.substr(0, string.indexOf(' ')); - if (eifelerRegelAppliesToNumber(number)) { - return 'viru ' + string; - } - return 'virun ' + string; + return child; + }; + + return Align; + }(_react2.default.Component); + + var _initialiseProps = function _initialiseProps() { + var _this2 = this; + + this.startMonitorWindowResize = function () { + if (!_this2.resizeHandler) { + _this2.bufferMonitor = buffer(_this2.forceAlign, _this2.props.monitorBufferTime); + _this2.resizeHandler = (0, _addEventListener2.default)(window, 'resize', _this2.bufferMonitor); } - /** - * Returns true if the word before the given number loses the '-n' ending. - * e.g. 'an 10 Deeg' but 'a 5 Deeg' - * - * @param number {integer} - * @returns {boolean} - */ - function eifelerRegelAppliesToNumber(number) { - number = parseInt(number, 10); - if (isNaN(number)) { - return false; - } - if (number < 0) { - // Negative Number --> always true - return true; - } else if (number < 10) { - // Only 1 digit - if (4 <= number && number <= 7) { - return true; - } - return false; - } else if (number < 100) { - // 2 digits - var lastDigit = number % 10, - firstDigit = number / 10; - if (lastDigit === 0) { - return eifelerRegelAppliesToNumber(firstDigit); - } - return eifelerRegelAppliesToNumber(lastDigit); - } else if (number < 10000) { - // 3 or 4 digits --> recursively check first digit - while (number >= 10) { - number = number / 10; - } - return eifelerRegelAppliesToNumber(number); - } else { - // Anything larger than 4 digits: recursively check first n-3 digits - number = number / 1000; - return eifelerRegelAppliesToNumber(number); - } + }; + + this.stopMonitorWindowResize = function () { + if (_this2.resizeHandler) { + _this2.bufferMonitor.clear(); + _this2.resizeHandler.remove(); + _this2.resizeHandler = null; } + }; - var lb = moment.defineLocale('lb', { - months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split( - '_' - ), - monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split( - '_' - ), - weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'), - weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'H:mm [Auer]', - LTS: 'H:mm:ss [Auer]', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm [Auer]', - LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]', - }, - calendar: { - sameDay: '[Haut um] LT', - sameElse: 'L', - nextDay: '[Muer um] LT', - nextWeek: 'dddd [um] LT', - lastDay: '[Gëschter um] LT', - lastWeek: function () { - // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule - switch (this.day()) { - case 2: - case 4: - return '[Leschten] dddd [um] LT'; - default: - return '[Leschte] dddd [um] LT'; - } - }, - }, - relativeTime: { - future: processFutureTime, - past: processPastTime, - s: 'e puer Sekonnen', - ss: '%d Sekonnen', - m: processRelativeTime, - mm: '%d Minutten', - h: processRelativeTime, - hh: '%d Stonnen', - d: processRelativeTime, - dd: '%d Deeg', - M: processRelativeTime, - MM: '%d Méint', - y: processRelativeTime, - yy: '%d Joer', - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + this.forceAlign = function () { + var props = _this2.props; + if (!props.disabled) { + var source = _reactDom2.default.findDOMNode(_this2); + props.onAlign(source, (0, _domAlign2.default)(source, props.target(), props.align)); + } + }; + }; - return lb; + ; - }))); + Align.defaultProps = defaultProps; + Align.propTypes = propTypes; + exports.default = Align; /***/ }), - /* 408 */ + /* 262 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Lao [lo] - //! author : Ryan Hart : https://github.com/ryanhart2 + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration + Object.defineProperty(exports, "__esModule", { + value: true + }); + var util = { + isAppearSupported: function isAppearSupported(props) { + return props.transitionName && props.transitionAppear || props.animation.appear; + }, + isEnterSupported: function isEnterSupported(props) { + return props.transitionName && props.transitionEnter || props.animation.enter; + }, + isLeaveSupported: function isLeaveSupported(props) { + return props.transitionName && props.transitionLeave || props.animation.leave; + }, + allowAppearCallback: function allowAppearCallback(props) { + return props.transitionAppear || props.animation.appear; + }, + allowEnterCallback: function allowEnterCallback(props) { + return props.transitionEnter || props.animation.enter; + }, + allowLeaveCallback: function allowLeaveCallback(props) { + return props.transitionLeave || props.animation.leave; + } + }; + exports["default"] = util; + module.exports = exports["default"]; - var lo = moment.defineLocale('lo', { - months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split( - '_' - ), - monthsShort: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split( - '_' - ), - weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'), - weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'), - weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'ວັນdddd D MMMM YYYY HH:mm', - }, - meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/, - isPM: function (input) { - return input === 'ຕອນແລງ'; - }, - meridiem: function (hour, minute, isLower) { - if (hour < 12) { - return 'ຕອນເຊົ້າ'; - } else { - return 'ຕອນແລງ'; - } - }, - calendar: { - sameDay: '[ມື້ນີ້ເວລາ] LT', - nextDay: '[ມື້ອື່ນເວລາ] LT', - nextWeek: '[ວັນ]dddd[ໜ້າເວລາ] LT', - lastDay: '[ມື້ວານນີ້ເວລາ] LT', - lastWeek: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'ອີກ %s', - past: '%sຜ່ານມາ', - s: 'ບໍ່ເທົ່າໃດວິນາທີ', - ss: '%d ວິນາທີ', - m: '1 ນາທີ', - mm: '%d ນາທີ', - h: '1 ຊົ່ວໂມງ', - hh: '%d ຊົ່ວໂມງ', - d: '1 ມື້', - dd: '%d ມື້', - M: '1 ເດືອນ', - MM: '%d ເດືອນ', - y: '1 ປີ', - yy: '%d ປີ', - }, - dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/, - ordinal: function (number) { - return 'ທີ່' + number; - }, - }); + /***/ }), + /* 263 */ + /***/ (function(module, exports, __webpack_require__) { - return lo; + "use strict"; - }))); + Object.defineProperty(exports, "__esModule", { + value: true + }); + + var _react = __webpack_require__(0); + + var _react2 = _interopRequireDefault(_react); + + var _propTypes = __webpack_require__(1); + + var _propTypes2 = _interopRequireDefault(_propTypes); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** + * This source code is quoted from rc-trigger. + * homepage: https://github.com/react-component/trigger + */ + + + var propTypes = { + children: _propTypes2["default"].any, + className: _propTypes2["default"].string, + visible: _propTypes2["default"].bool, + hiddenClassName: _propTypes2["default"].string + }; + + var LazyRenderBox = function (_Component) { + _inherits(LazyRenderBox, _Component); + + function LazyRenderBox() { + _classCallCheck(this, LazyRenderBox); + + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } + + LazyRenderBox.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) { + return nextProps.hiddenClassName || nextProps.visible; + }; + + LazyRenderBox.prototype.render = function render() { + var _props = this.props, + hiddenClassName = _props.hiddenClassName, + visible = _props.visible, + props = _objectWithoutProperties(_props, ['hiddenClassName', 'visible']); + + if (hiddenClassName || _react2["default"].Children.count(props.children) > 1) { + if (!visible && hiddenClassName) { + props.className += ' ' + hiddenClassName; + } + return _react2["default"].createElement('div', props); + } + + return _react2["default"].Children.only(props.children); + }; + + return LazyRenderBox; + }(_react.Component); + + ; + LazyRenderBox.propTypes = propTypes; + + exports["default"] = LazyRenderBox; + module.exports = exports['default']; /***/ }), - /* 409 */ + /* 264 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Lithuanian [lt] - //! author : Mindaugas Mozūras : https://github.com/mmozuras + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.SelectPropTypes = undefined; - var units = { - ss: 'sekundė_sekundžių_sekundes', - m: 'minutė_minutės_minutę', - mm: 'minutės_minučių_minutes', - h: 'valanda_valandos_valandą', - hh: 'valandos_valandų_valandas', - d: 'diena_dienos_dieną', - dd: 'dienos_dienų_dienas', - M: 'mėnuo_mėnesio_mėnesį', - MM: 'mėnesiai_mėnesių_mėnesius', - y: 'metai_metų_metus', - yy: 'metai_metų_metus', - }; - function translateSeconds(number, withoutSuffix, key, isFuture) { - if (withoutSuffix) { - return 'kelios sekundės'; - } else { - return isFuture ? 'kelių sekundžių' : 'kelias sekundes'; - } - } - function translateSingular(number, withoutSuffix, key, isFuture) { - return withoutSuffix - ? forms(key)[0] - : isFuture - ? forms(key)[1] - : forms(key)[2]; - } - function special(number) { - return number % 10 === 0 || (number > 10 && number < 20); - } - function forms(key) { - return units[key].split('_'); - } - function translate(number, withoutSuffix, key, isFuture) { - var result = number + ' '; - if (number === 1) { - return ( - result + translateSingular(number, withoutSuffix, key[0], isFuture) - ); - } else if (withoutSuffix) { - return result + (special(number) ? forms(key)[1] : forms(key)[0]); - } else { - if (isFuture) { - return result + forms(key)[1]; - } else { - return result + (special(number) ? forms(key)[1] : forms(key)[2]); - } - } - } - var lt = moment.defineLocale('lt', { - months: { - format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split( - '_' - ), - standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split( - '_' - ), - isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/, - }, - monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'), - weekdays: { - format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split( - '_' - ), - standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split( - '_' - ), - isFormat: /dddd HH:mm/, - }, - weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'), - weekdaysMin: 'S_P_A_T_K_Pn_Š'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY-MM-DD', - LL: 'YYYY [m.] MMMM D [d.]', - LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]', - LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]', - l: 'YYYY-MM-DD', - ll: 'YYYY [m.] MMMM D [d.]', - lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]', - llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]', - }, - calendar: { - sameDay: '[Šiandien] LT', - nextDay: '[Rytoj] LT', - nextWeek: 'dddd LT', - lastDay: '[Vakar] LT', - lastWeek: '[Praėjusį] dddd LT', - sameElse: 'L', - }, - relativeTime: { - future: 'po %s', - past: 'prieš %s', - s: translateSeconds, - ss: translate, - m: translateSingular, - mm: translate, - h: translateSingular, - hh: translate, - d: translateSingular, - dd: translate, - M: translateSingular, - MM: translate, - y: translateSingular, - yy: translate, - }, - dayOfMonthOrdinalParse: /\d{1,2}-oji/, - ordinal: function (number) { - return number + '-oji'; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var _propTypes = __webpack_require__(1); - return lt; + var _propTypes2 = _interopRequireDefault(_propTypes); - }))); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + function valueType(props, propName, componentName) { + var basicType = _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].number]); + + var labelInValueShape = _propTypes2["default"].shape({ + key: basicType.isRequired, + label: _propTypes2["default"].node + }); + if (props.labelInValue) { + var validate = _propTypes2["default"].oneOfType([_propTypes2["default"].arrayOf(labelInValueShape), labelInValueShape]); + var error = validate.apply(undefined, arguments); + if (error) { + return new Error('Invalid prop `' + propName + '` supplied to `' + componentName + '`, ' + ('when you set `labelInValue` to `true`, `' + propName + '` should in ') + 'shape of `{ key: string | number, label?: ReactNode }`.'); + } + } else if ((props.mode === 'multiple' || props.mode === 'tags' || props.multiple || props.tags) && props[propName] === '') { + return new Error('Invalid prop `' + propName + '` of type `string` supplied to `' + componentName + '`, ' + 'expected `array` when `multiple` or `tags` is `true`.'); + } else { + var _validate = _propTypes2["default"].oneOfType([_propTypes2["default"].arrayOf(basicType), basicType]); + return _validate.apply(undefined, arguments); + } + } /** + * This source code is quoted from rc-select. + * homepage: https://github.com/react-component/select + */ + var SelectPropTypes = exports.SelectPropTypes = { + id: _propTypes2["default"].string, + defaultActiveFirstOption: _propTypes2["default"].bool, + multiple: _propTypes2["default"].bool, + filterOption: _propTypes2["default"].any, + children: _propTypes2["default"].any, + showSearch: _propTypes2["default"].bool, + disabled: _propTypes2["default"].bool, + allowClear: _propTypes2["default"].bool, + showArrow: _propTypes2["default"].bool, + tags: _propTypes2["default"].bool, + prefixCls: _propTypes2["default"].string, + className: _propTypes2["default"].string, + transitionName: _propTypes2["default"].string, + optionLabelProp: _propTypes2["default"].string, + optionFilterProp: _propTypes2["default"].string, + animation: _propTypes2["default"].string, + choiceTransitionName: _propTypes2["default"].string, + open: _propTypes2["default"].bool, + defaultOpen: _propTypes2["default"].bool, + onChange: _propTypes2["default"].func, + onBlur: _propTypes2["default"].func, + onFocus: _propTypes2["default"].func, + onSelect: _propTypes2["default"].func, + onSearch: _propTypes2["default"].func, + onPopupScroll: _propTypes2["default"].func, + onMouseEnter: _propTypes2["default"].func, + onMouseLeave: _propTypes2["default"].func, + onInputKeyDown: _propTypes2["default"].func, + placeholder: _propTypes2["default"].any, + onDeselect: _propTypes2["default"].func, + labelInValue: _propTypes2["default"].bool, + value: valueType, + defaultValue: valueType, + dropdownStyle: _propTypes2["default"].object, + maxTagTextLength: _propTypes2["default"].number, + maxTagCount: _propTypes2["default"].number, + maxTagPlaceholder: _propTypes2["default"].oneOfType([_propTypes2["default"].node, _propTypes2["default"].func]), + tokenSeparators: _propTypes2["default"].arrayOf(_propTypes2["default"].string), + getInputElement: _propTypes2["default"].func, + showAction: _propTypes2["default"].arrayOf(_propTypes2["default"].string), + clearIcon: _propTypes2["default"].node, + inputIcon: _propTypes2["default"].node, + removeIcon: _propTypes2["default"].node, + menuItemSelectedIcon: _propTypes2["default"].oneOfType([_propTypes2["default"].func, _propTypes2["default"].node]) + }; /***/ }), - /* 410 */ + /* 265 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Latvian [lv] - //! author : Kristaps Karlsons : https://github.com/skakri - //! author : Jānis Elmeris : https://github.com/JanisE + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration + Object.defineProperty(exports, "__esModule", { + value: true + }); - var units = { - ss: 'sekundes_sekundēm_sekunde_sekundes'.split('_'), - m: 'minūtes_minūtēm_minūte_minūtes'.split('_'), - mm: 'minūtes_minūtēm_minūte_minūtes'.split('_'), - h: 'stundas_stundām_stunda_stundas'.split('_'), - hh: 'stundas_stundām_stunda_stundas'.split('_'), - d: 'dienas_dienām_diena_dienas'.split('_'), - dd: 'dienas_dienām_diena_dienas'.split('_'), - M: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'), - MM: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'), - y: 'gada_gadiem_gads_gadi'.split('_'), - yy: 'gada_gadiem_gads_gadi'.split('_'), - }; - /** - * @param withoutSuffix boolean true = a length of time; false = before/after a period of time. - */ - function format(forms, number, withoutSuffix) { - if (withoutSuffix) { - // E.g. "21 minūte", "3 minūtes". - return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3]; - } else { - // E.g. "21 minūtes" as in "pēc 21 minūtes". - // E.g. "3 minūtēm" as in "pēc 3 minūtēm". - return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1]; - } - } - function relativeTimeWithPlural(number, withoutSuffix, key) { - return number + ' ' + format(units[key], number, withoutSuffix); - } - function relativeTimeWithSingular(number, withoutSuffix, key) { - return format(units[key], number, withoutSuffix); - } - function relativeSeconds(number, withoutSuffix) { - return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm'; - } + var _react = __webpack_require__(0); - var lv = moment.defineLocale('lv', { - months: 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split( - '_' - ), - monthsShort: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'), - weekdays: 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split( - '_' - ), - weekdaysShort: 'Sv_P_O_T_C_Pk_S'.split('_'), - weekdaysMin: 'Sv_P_O_T_C_Pk_S'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY.', - LL: 'YYYY. [gada] D. MMMM', - LLL: 'YYYY. [gada] D. MMMM, HH:mm', - LLLL: 'YYYY. [gada] D. MMMM, dddd, HH:mm', - }, - calendar: { - sameDay: '[Šodien pulksten] LT', - nextDay: '[Rīt pulksten] LT', - nextWeek: 'dddd [pulksten] LT', - lastDay: '[Vakar pulksten] LT', - lastWeek: '[Pagājušā] dddd [pulksten] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'pēc %s', - past: 'pirms %s', - s: relativeSeconds, - ss: relativeTimeWithPlural, - m: relativeTimeWithSingular, - mm: relativeTimeWithPlural, - h: relativeTimeWithSingular, - hh: relativeTimeWithPlural, - d: relativeTimeWithSingular, - dd: relativeTimeWithPlural, - M: relativeTimeWithSingular, - MM: relativeTimeWithPlural, - y: relativeTimeWithSingular, - yy: relativeTimeWithPlural, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var _react2 = _interopRequireDefault(_react); - return lv; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - }))); + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + + var OptGroup = function (_React$Component) { + _inherits(OptGroup, _React$Component); + + function OptGroup() { + _classCallCheck(this, OptGroup); + return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); + } + + return OptGroup; + }(_react2["default"].Component); + + OptGroup.isSelectOptGroup = true; + exports["default"] = OptGroup; + module.exports = exports['default']; /***/ }), - /* 411 */ + /* 266 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Montenegrin [me] - //! author : Miodrag Nikač : https://github.com/miodragnikac + var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress + * @license MIT */ - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + ;(function(root, factory) { - //! moment.js locale configuration + if (true) { + !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? + (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) : + __WEBPACK_AMD_DEFINE_FACTORY__), + __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + } else if (typeof exports === 'object') { + module.exports = factory(); + } else { + root.NProgress = factory(); + } - var translator = { - words: { - //Different grammatical cases - ss: ['sekund', 'sekunda', 'sekundi'], - m: ['jedan minut', 'jednog minuta'], - mm: ['minut', 'minuta', 'minuta'], - h: ['jedan sat', 'jednog sata'], - hh: ['sat', 'sata', 'sati'], - dd: ['dan', 'dana', 'dana'], - MM: ['mjesec', 'mjeseca', 'mjeseci'], - yy: ['godina', 'godine', 'godina'], - }, - correctGrammaticalCase: function (number, wordKey) { - return number === 1 - ? wordKey[0] - : number >= 2 && number <= 4 - ? wordKey[1] - : wordKey[2]; - }, - translate: function (number, withoutSuffix, key) { - var wordKey = translator.words[key]; - if (key.length === 1) { - return withoutSuffix ? wordKey[0] : wordKey[1]; - } else { - return ( - number + - ' ' + - translator.correctGrammaticalCase(number, wordKey) - ); - } - }, - }; + })(this, function() { + var NProgress = {}; - var me = moment.defineLocale('me', { - months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split( - '_' - ), - monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split( - '_' - ), - weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), - weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd, D. MMMM YYYY H:mm', - }, - calendar: { - sameDay: '[danas u] LT', - nextDay: '[sjutra u] LT', + NProgress.version = '0.2.0'; - nextWeek: function () { - switch (this.day()) { - case 0: - return '[u] [nedjelju] [u] LT'; - case 3: - return '[u] [srijedu] [u] LT'; - case 6: - return '[u] [subotu] [u] LT'; - case 1: - case 2: - case 4: - case 5: - return '[u] dddd [u] LT'; - } - }, - lastDay: '[juče u] LT', - lastWeek: function () { - var lastWeekDays = [ - '[prošle] [nedjelje] [u] LT', - '[prošlog] [ponedjeljka] [u] LT', - '[prošlog] [utorka] [u] LT', - '[prošle] [srijede] [u] LT', - '[prošlog] [četvrtka] [u] LT', - '[prošlog] [petka] [u] LT', - '[prošle] [subote] [u] LT', - ]; - return lastWeekDays[this.day()]; - }, - sameElse: 'L', - }, - relativeTime: { - future: 'za %s', - past: 'prije %s', - s: 'nekoliko sekundi', - ss: translator.translate, - m: translator.translate, - mm: translator.translate, - h: translator.translate, - hh: translator.translate, - d: 'dan', - dd: translator.translate, - M: 'mjesec', - MM: translator.translate, - y: 'godinu', - yy: translator.translate, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); + var Settings = NProgress.settings = { + minimum: 0.08, + easing: 'ease', + positionUsing: '', + speed: 200, + trickle: true, + trickleRate: 0.02, + trickleSpeed: 800, + showSpinner: true, + barSelector: '[role="bar"]', + spinnerSelector: '[role="spinner"]', + parent: 'body', + template: '
    ' + }; - return me; + /** + * Updates configuration. + * + * NProgress.configure({ + * minimum: 0.1 + * }); + */ + NProgress.configure = function(options) { + var key, value; + for (key in options) { + value = options[key]; + if (value !== undefined && options.hasOwnProperty(key)) Settings[key] = value; + } - }))); + return this; + }; + /** + * Last number. + */ - /***/ }), - /* 412 */ - /***/ (function(module, exports, __webpack_require__) { + NProgress.status = null; - //! moment.js locale configuration - //! locale : Maori [mi] - //! author : John Corrigan : https://github.com/johnideal + /** + * Sets the progress bar status, where `n` is a number from `0.0` to `1.0`. + * + * NProgress.set(0.4); + * NProgress.set(1.0); + */ - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + NProgress.set = function(n) { + var started = NProgress.isStarted(); - //! moment.js locale configuration + n = clamp(n, Settings.minimum, 1); + NProgress.status = (n === 1 ? null : n); - var mi = moment.defineLocale('mi', { - months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split( - '_' - ), - monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split( - '_' - ), - monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, - monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, - monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, - monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i, - weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'), - weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'), - weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY [i] HH:mm', - LLLL: 'dddd, D MMMM YYYY [i] HH:mm', - }, - calendar: { - sameDay: '[i teie mahana, i] LT', - nextDay: '[apopo i] LT', - nextWeek: 'dddd [i] LT', - lastDay: '[inanahi i] LT', - lastWeek: 'dddd [whakamutunga i] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'i roto i %s', - past: '%s i mua', - s: 'te hēkona ruarua', - ss: '%d hēkona', - m: 'he meneti', - mm: '%d meneti', - h: 'te haora', - hh: '%d haora', - d: 'he ra', - dd: '%d ra', - M: 'he marama', - MM: '%d marama', - y: 'he tau', - yy: '%d tau', - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var progress = NProgress.render(!started), + bar = progress.querySelector(Settings.barSelector), + speed = Settings.speed, + ease = Settings.easing; - return mi; + progress.offsetWidth; /* Repaint */ - }))); + queue(function(next) { + // Set positionUsing if it hasn't already been set + if (Settings.positionUsing === '') Settings.positionUsing = NProgress.getPositioningCSS(); + // Add transition + css(bar, barPositionCSS(n, speed, ease)); - /***/ }), - /* 413 */ - /***/ (function(module, exports, __webpack_require__) { + if (n === 1) { + // Fade out + css(progress, { + transition: 'none', + opacity: 1 + }); + progress.offsetWidth; /* Repaint */ - //! moment.js locale configuration - //! locale : Macedonian [mk] - //! author : Borislav Mickov : https://github.com/B0k0 - //! author : Sashko Todorov : https://github.com/bkyceh + setTimeout(function() { + css(progress, { + transition: 'all ' + speed + 'ms linear', + opacity: 0 + }); + setTimeout(function() { + NProgress.remove(); + next(); + }, speed); + }, speed); + } else { + setTimeout(next, speed); + } + }); - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + return this; + }; - //! moment.js locale configuration + NProgress.isStarted = function() { + return typeof NProgress.status === 'number'; + }; - var mk = moment.defineLocale('mk', { - months: 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split( - '_' - ), - monthsShort: 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'), - weekdays: 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split( - '_' - ), - weekdaysShort: 'нед_пон_вто_сре_чет_пет_саб'.split('_'), - weekdaysMin: 'нe_пo_вт_ср_че_пе_сa'.split('_'), - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'D.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY H:mm', - LLLL: 'dddd, D MMMM YYYY H:mm', - }, - calendar: { - sameDay: '[Денес во] LT', - nextDay: '[Утре во] LT', - nextWeek: '[Во] dddd [во] LT', - lastDay: '[Вчера во] LT', - lastWeek: function () { - switch (this.day()) { - case 0: - case 3: - case 6: - return '[Изминатата] dddd [во] LT'; - case 1: - case 2: - case 4: - case 5: - return '[Изминатиот] dddd [во] LT'; - } - }, - sameElse: 'L', - }, - relativeTime: { - future: 'за %s', - past: 'пред %s', - s: 'неколку секунди', - ss: '%d секунди', - m: 'една минута', - mm: '%d минути', - h: 'еден час', - hh: '%d часа', - d: 'еден ден', - dd: '%d дена', - M: 'еден месец', - MM: '%d месеци', - y: 'една година', - yy: '%d години', - }, - dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/, - ordinal: function (number) { - var lastDigit = number % 10, - last2Digits = number % 100; - if (number === 0) { - return number + '-ев'; - } else if (last2Digits === 0) { - return number + '-ен'; - } else if (last2Digits > 10 && last2Digits < 20) { - return number + '-ти'; - } else if (lastDigit === 1) { - return number + '-ви'; - } else if (lastDigit === 2) { - return number + '-ри'; - } else if (lastDigit === 7 || lastDigit === 8) { - return number + '-ми'; - } else { - return number + '-ти'; - } - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); + /** + * Shows the progress bar. + * This is the same as setting the status to 0%, except that it doesn't go backwards. + * + * NProgress.start(); + * + */ + NProgress.start = function() { + if (!NProgress.status) NProgress.set(0); - return mk; + var work = function() { + setTimeout(function() { + if (!NProgress.status) return; + NProgress.trickle(); + work(); + }, Settings.trickleSpeed); + }; - }))); + if (Settings.trickle) work(); + return this; + }; - /***/ }), - /* 414 */ - /***/ (function(module, exports, __webpack_require__) { + /** + * Hides the progress bar. + * This is the *sort of* the same as setting the status to 100%, with the + * difference being `done()` makes some placebo effect of some realistic motion. + * + * NProgress.done(); + * + * If `true` is passed, it will show the progress bar even if its hidden. + * + * NProgress.done(true); + */ - //! moment.js locale configuration - //! locale : Malayalam [ml] - //! author : Floyd Pink : https://github.com/floydpink + NProgress.done = function(force) { + if (!force && !NProgress.status) return this; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + return NProgress.inc(0.3 + 0.5 * Math.random()).set(1); + }; - //! moment.js locale configuration + /** + * Increments by a random amount. + */ - var ml = moment.defineLocale('ml', { - months: 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split( - '_' - ), - monthsShort: 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split( - '_' - ), - weekdaysShort: 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'), - weekdaysMin: 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'), - longDateFormat: { - LT: 'A h:mm -നു', - LTS: 'A h:mm:ss -നു', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm -നു', - LLLL: 'dddd, D MMMM YYYY, A h:mm -നു', - }, - calendar: { - sameDay: '[ഇന്ന്] LT', - nextDay: '[നാളെ] LT', - nextWeek: 'dddd, LT', - lastDay: '[ഇന്നലെ] LT', - lastWeek: '[കഴിഞ്ഞ] dddd, LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s കഴിഞ്ഞ്', - past: '%s മുൻപ്', - s: 'അൽപ നിമിഷങ്ങൾ', - ss: '%d സെക്കൻഡ്', - m: 'ഒരു മിനിറ്റ്', - mm: '%d മിനിറ്റ്', - h: 'ഒരു മണിക്കൂർ', - hh: '%d മണിക്കൂർ', - d: 'ഒരു ദിവസം', - dd: '%d ദിവസം', - M: 'ഒരു മാസം', - MM: '%d മാസം', - y: 'ഒരു വർഷം', - yy: '%d വർഷം', - }, - meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if ( - (meridiem === 'രാത്രി' && hour >= 4) || - meridiem === 'ഉച്ച കഴിഞ്ഞ്' || - meridiem === 'വൈകുന്നേരം' - ) { - return hour + 12; - } else { - return hour; - } - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'രാത്രി'; - } else if (hour < 12) { - return 'രാവിലെ'; - } else if (hour < 17) { - return 'ഉച്ച കഴിഞ്ഞ്'; - } else if (hour < 20) { - return 'വൈകുന്നേരം'; - } else { - return 'രാത്രി'; - } - }, - }); + NProgress.inc = function(amount) { + var n = NProgress.status; - return ml; + if (!n) { + return NProgress.start(); + } else { + if (typeof amount !== 'number') { + amount = (1 - n) * clamp(Math.random() * n, 0.1, 0.95); + } - }))); + n = clamp(n + amount, 0, 0.994); + return NProgress.set(n); + } + }; + NProgress.trickle = function() { + return NProgress.inc(Math.random() * Settings.trickleRate); + }; - /***/ }), - /* 415 */ - /***/ (function(module, exports, __webpack_require__) { + /** + * Waits for all supplied jQuery promises and + * increases the progress as the promises resolve. + * + * @param $promise jQUery Promise + */ + (function() { + var initial = 0, current = 0; - //! moment.js locale configuration - //! locale : Mongolian [mn] - //! author : Javkhlantugs Nyamdorj : https://github.com/javkhaanj7 + NProgress.promise = function($promise) { + if (!$promise || $promise.state() === "resolved") { + return this; + } - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + if (current === 0) { + NProgress.start(); + } - //! moment.js locale configuration + initial++; + current++; - function translate(number, withoutSuffix, key, isFuture) { - switch (key) { - case 's': - return withoutSuffix ? 'хэдхэн секунд' : 'хэдхэн секундын'; - case 'ss': - return number + (withoutSuffix ? ' секунд' : ' секундын'); - case 'm': - case 'mm': - return number + (withoutSuffix ? ' минут' : ' минутын'); - case 'h': - case 'hh': - return number + (withoutSuffix ? ' цаг' : ' цагийн'); - case 'd': - case 'dd': - return number + (withoutSuffix ? ' өдөр' : ' өдрийн'); - case 'M': - case 'MM': - return number + (withoutSuffix ? ' сар' : ' сарын'); - case 'y': - case 'yy': - return number + (withoutSuffix ? ' жил' : ' жилийн'); - default: - return number; + $promise.always(function() { + current--; + if (current === 0) { + initial = 0; + NProgress.done(); + } else { + NProgress.set((initial - current) / initial); } - } + }); - var mn = moment.defineLocale('mn', { - months: 'Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар'.split( - '_' - ), - monthsShort: '1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба'.split('_'), - weekdaysShort: 'Ням_Дав_Мяг_Лха_Пүр_Баа_Бям'.split('_'), - weekdaysMin: 'Ня_Да_Мя_Лх_Пү_Ба_Бя'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY-MM-DD', - LL: 'YYYY оны MMMMын D', - LLL: 'YYYY оны MMMMын D HH:mm', - LLLL: 'dddd, YYYY оны MMMMын D HH:mm', - }, - meridiemParse: /ҮӨ|ҮХ/i, - isPM: function (input) { - return input === 'ҮХ'; - }, - meridiem: function (hour, minute, isLower) { - if (hour < 12) { - return 'ҮӨ'; - } else { - return 'ҮХ'; - } - }, - calendar: { - sameDay: '[Өнөөдөр] LT', - nextDay: '[Маргааш] LT', - nextWeek: '[Ирэх] dddd LT', - lastDay: '[Өчигдөр] LT', - lastWeek: '[Өнгөрсөн] dddd LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s дараа', - past: '%s өмнө', - s: translate, - ss: translate, - m: translate, - mm: translate, - h: translate, - hh: translate, - d: translate, - dd: translate, - M: translate, - MM: translate, - y: translate, - yy: translate, - }, - dayOfMonthOrdinalParse: /\d{1,2} өдөр/, - ordinal: function (number, period) { - switch (period) { - case 'd': - case 'D': - case 'DDD': - return number + ' өдөр'; - default: - return number; - } - }, - }); + return this; + }; - return mn; + })(); - }))); + /** + * (Internal) renders the progress bar markup based on the `template` + * setting. + */ + NProgress.render = function(fromStart) { + if (NProgress.isRendered()) return document.getElementById('nprogress'); - /***/ }), - /* 416 */ - /***/ (function(module, exports, __webpack_require__) { + addClass(document.documentElement, 'nprogress-busy'); + + var progress = document.createElement('div'); + progress.id = 'nprogress'; + progress.innerHTML = Settings.template; - //! moment.js locale configuration - //! locale : Marathi [mr] - //! author : Harshad Kale : https://github.com/kalehv - //! author : Vivek Athalye : https://github.com/vnathalye + var bar = progress.querySelector(Settings.barSelector), + perc = fromStart ? '-100' : toBarPerc(NProgress.status || 0), + parent = document.querySelector(Settings.parent), + spinner; + + css(bar, { + transition: 'all 0 linear', + transform: 'translate3d(' + perc + '%,0,0)' + }); - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + if (!Settings.showSpinner) { + spinner = progress.querySelector(Settings.spinnerSelector); + spinner && removeElement(spinner); + } - //! moment.js locale configuration + if (parent != document.body) { + addClass(parent, 'nprogress-custom-parent'); + } - var symbolMap = { - '1': '१', - '2': '२', - '3': '३', - '4': '४', - '5': '५', - '6': '६', - '7': '७', - '8': '८', - '9': '९', - '0': '०', - }, - numberMap = { - '१': '1', - '२': '2', - '३': '3', - '४': '4', - '५': '5', - '६': '6', - '७': '7', - '८': '8', - '९': '9', - '०': '0', - }; + parent.appendChild(progress); + return progress; + }; - function relativeTimeMr(number, withoutSuffix, string, isFuture) { - var output = ''; - if (withoutSuffix) { - switch (string) { - case 's': - output = 'काही सेकंद'; - break; - case 'ss': - output = '%d सेकंद'; - break; - case 'm': - output = 'एक मिनिट'; - break; - case 'mm': - output = '%d मिनिटे'; - break; - case 'h': - output = 'एक तास'; - break; - case 'hh': - output = '%d तास'; - break; - case 'd': - output = 'एक दिवस'; - break; - case 'dd': - output = '%d दिवस'; - break; - case 'M': - output = 'एक महिना'; - break; - case 'MM': - output = '%d महिने'; - break; - case 'y': - output = 'एक वर्ष'; - break; - case 'yy': - output = '%d वर्षे'; - break; - } - } else { - switch (string) { - case 's': - output = 'काही सेकंदां'; - break; - case 'ss': - output = '%d सेकंदां'; - break; - case 'm': - output = 'एका मिनिटा'; - break; - case 'mm': - output = '%d मिनिटां'; - break; - case 'h': - output = 'एका तासा'; - break; - case 'hh': - output = '%d तासां'; - break; - case 'd': - output = 'एका दिवसा'; - break; - case 'dd': - output = '%d दिवसां'; - break; - case 'M': - output = 'एका महिन्या'; - break; - case 'MM': - output = '%d महिन्यां'; - break; - case 'y': - output = 'एका वर्षा'; - break; - case 'yy': - output = '%d वर्षां'; - break; - } - } - return output.replace(/%d/i, number); + /** + * Removes the element. Opposite of render(). + */ + + NProgress.remove = function() { + removeClass(document.documentElement, 'nprogress-busy'); + removeClass(document.querySelector(Settings.parent), 'nprogress-custom-parent'); + var progress = document.getElementById('nprogress'); + progress && removeElement(progress); + }; + + /** + * Checks if the progress bar is rendered. + */ + + NProgress.isRendered = function() { + return !!document.getElementById('nprogress'); + }; + + /** + * Determine which positioning CSS rule to use. + */ + + NProgress.getPositioningCSS = function() { + // Sniff on document.body.style + var bodyStyle = document.body.style; + + // Sniff prefixes + var vendorPrefix = ('WebkitTransform' in bodyStyle) ? 'Webkit' : + ('MozTransform' in bodyStyle) ? 'Moz' : + ('msTransform' in bodyStyle) ? 'ms' : + ('OTransform' in bodyStyle) ? 'O' : ''; + + if (vendorPrefix + 'Perspective' in bodyStyle) { + // Modern browsers with 3D support, e.g. Webkit, IE10 + return 'translate3d'; + } else if (vendorPrefix + 'Transform' in bodyStyle) { + // Browsers without 3D support, e.g. IE9 + return 'translate'; + } else { + // Browsers without translate() support, e.g. IE7-8 + return 'margin'; } + }; - var mr = moment.defineLocale('mr', { - months: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split( - '_' - ), - monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'), - weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'), - weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'), - longDateFormat: { - LT: 'A h:mm वाजता', - LTS: 'A h:mm:ss वाजता', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm वाजता', - LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता', - }, - calendar: { - sameDay: '[आज] LT', - nextDay: '[उद्या] LT', - nextWeek: 'dddd, LT', - lastDay: '[काल] LT', - lastWeek: '[मागील] dddd, LT', - sameElse: 'L', - }, - relativeTime: { - future: '%sमध्ये', - past: '%sपूर्वी', - s: relativeTimeMr, - ss: relativeTimeMr, - m: relativeTimeMr, - mm: relativeTimeMr, - h: relativeTimeMr, - hh: relativeTimeMr, - d: relativeTimeMr, - dd: relativeTimeMr, - M: relativeTimeMr, - MM: relativeTimeMr, - y: relativeTimeMr, - yy: relativeTimeMr, - }, - preparse: function (string) { - return string.replace(/[१२३४५६७८९०]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - meridiemParse: /पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'पहाटे' || meridiem === 'सकाळी') { - return hour; - } else if ( - meridiem === 'दुपारी' || - meridiem === 'सायंकाळी' || - meridiem === 'रात्री' - ) { - return hour >= 12 ? hour : hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - if (hour >= 0 && hour < 6) { - return 'पहाटे'; - } else if (hour < 12) { - return 'सकाळी'; - } else if (hour < 17) { - return 'दुपारी'; - } else if (hour < 20) { - return 'सायंकाळी'; - } else { - return 'रात्री'; - } - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }, - }); + /** + * Helpers + */ - return mr; + function clamp(n, min, max) { + if (n < min) return min; + if (n > max) return max; + return n; + } - }))); + /** + * (Internal) converts a percentage (`0..1`) to a bar translateX + * percentage (`-100%..0%`). + */ + function toBarPerc(n) { + return (-1 + n) * 100; + } - /***/ }), - /* 417 */ - /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Malay [ms] - //! author : Weldan Jamili : https://github.com/weldan + /** + * (Internal) returns the correct CSS for changing the bar's + * position given an n percentage, and speed and ease from Settings + */ - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + function barPositionCSS(n, speed, ease) { + var barCSS; - //! moment.js locale configuration + if (Settings.positionUsing === 'translate3d') { + barCSS = { transform: 'translate3d('+toBarPerc(n)+'%,0,0)' }; + } else if (Settings.positionUsing === 'translate') { + barCSS = { transform: 'translate('+toBarPerc(n)+'%,0)' }; + } else { + barCSS = { 'margin-left': toBarPerc(n)+'%' }; + } - var ms = moment.defineLocale('ms', { - months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'), - weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'), - weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'), - weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'), - longDateFormat: { - LT: 'HH.mm', - LTS: 'HH.mm.ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY [pukul] HH.mm', - LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm', - }, - meridiemParse: /pagi|tengahari|petang|malam/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'pagi') { - return hour; - } else if (meridiem === 'tengahari') { - return hour >= 11 ? hour : hour + 12; - } else if (meridiem === 'petang' || meridiem === 'malam') { - return hour + 12; - } - }, - meridiem: function (hours, minutes, isLower) { - if (hours < 11) { - return 'pagi'; - } else if (hours < 15) { - return 'tengahari'; - } else if (hours < 19) { - return 'petang'; - } else { - return 'malam'; - } - }, - calendar: { - sameDay: '[Hari ini pukul] LT', - nextDay: '[Esok pukul] LT', - nextWeek: 'dddd [pukul] LT', - lastDay: '[Kelmarin pukul] LT', - lastWeek: 'dddd [lepas pukul] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'dalam %s', - past: '%s yang lepas', - s: 'beberapa saat', - ss: '%d saat', - m: 'seminit', - mm: '%d minit', - h: 'sejam', - hh: '%d jam', - d: 'sehari', - dd: '%d hari', - M: 'sebulan', - MM: '%d bulan', - y: 'setahun', - yy: '%d tahun', - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); + barCSS.transition = 'all '+speed+'ms '+ease; - return ms; + return barCSS; + } - }))); + /** + * (Internal) Queues a function to be executed. + */ + var queue = (function() { + var pending = []; + + function next() { + var fn = pending.shift(); + if (fn) { + fn(next); + } + } - /***/ }), - /* 418 */ - /***/ (function(module, exports, __webpack_require__) { + return function(fn) { + pending.push(fn); + if (pending.length == 1) next(); + }; + })(); - //! moment.js locale configuration - //! locale : Malay [ms-my] - //! note : DEPRECATED, the correct one is [ms] - //! author : Weldan Jamili : https://github.com/weldan + /** + * (Internal) Applies css properties to an element, similar to the jQuery + * css method. + * + * While this helper does assist with vendor prefixed property names, it + * does not perform any manipulation of values prior to setting styles. + */ - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var css = (function() { + var cssPrefixes = [ 'Webkit', 'O', 'Moz', 'ms' ], + cssProps = {}; - //! moment.js locale configuration + function camelCase(string) { + return string.replace(/^-ms-/, 'ms-').replace(/-([\da-z])/gi, function(match, letter) { + return letter.toUpperCase(); + }); + } - var msMy = moment.defineLocale('ms-my', { - months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'), - weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'), - weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'), - weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'), - longDateFormat: { - LT: 'HH.mm', - LTS: 'HH.mm.ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY [pukul] HH.mm', - LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm', - }, - meridiemParse: /pagi|tengahari|petang|malam/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'pagi') { - return hour; - } else if (meridiem === 'tengahari') { - return hour >= 11 ? hour : hour + 12; - } else if (meridiem === 'petang' || meridiem === 'malam') { - return hour + 12; - } - }, - meridiem: function (hours, minutes, isLower) { - if (hours < 11) { - return 'pagi'; - } else if (hours < 15) { - return 'tengahari'; - } else if (hours < 19) { - return 'petang'; - } else { - return 'malam'; - } - }, - calendar: { - sameDay: '[Hari ini pukul] LT', - nextDay: '[Esok pukul] LT', - nextWeek: 'dddd [pukul] LT', - lastDay: '[Kelmarin pukul] LT', - lastWeek: 'dddd [lepas pukul] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'dalam %s', - past: '%s yang lepas', - s: 'beberapa saat', - ss: '%d saat', - m: 'seminit', - mm: '%d minit', - h: 'sejam', - hh: '%d jam', - d: 'sehari', - dd: '%d hari', - M: 'sebulan', - MM: '%d bulan', - y: 'setahun', - yy: '%d tahun', - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); + function getVendorProp(name) { + var style = document.body.style; + if (name in style) return name; - return msMy; + var i = cssPrefixes.length, + capName = name.charAt(0).toUpperCase() + name.slice(1), + vendorName; + while (i--) { + vendorName = cssPrefixes[i] + capName; + if (vendorName in style) return vendorName; + } - }))); + return name; + } + function getStyleProp(name) { + name = camelCase(name); + return cssProps[name] || (cssProps[name] = getVendorProp(name)); + } - /***/ }), - /* 419 */ - /***/ (function(module, exports, __webpack_require__) { + function applyCss(element, prop, value) { + prop = getStyleProp(prop); + element.style[prop] = value; + } - //! moment.js locale configuration - //! locale : Maltese (Malta) [mt] - //! author : Alessandro Maruccia : https://github.com/alesma + return function(element, properties) { + var args = arguments, + prop, + value; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + if (args.length == 2) { + for (prop in properties) { + value = properties[prop]; + if (value !== undefined && properties.hasOwnProperty(prop)) applyCss(element, prop, value); + } + } else { + applyCss(element, args[1], args[2]); + } + } + })(); - //! moment.js locale configuration + /** + * (Internal) Determines if an element or space separated list of class names contains a class name. + */ - var mt = moment.defineLocale('mt', { - months: 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split( - '_' - ), - monthsShort: 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'), - weekdays: 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split( - '_' - ), - weekdaysShort: 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'), - weekdaysMin: 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Illum fil-]LT', - nextDay: '[Għada fil-]LT', - nextWeek: 'dddd [fil-]LT', - lastDay: '[Il-bieraħ fil-]LT', - lastWeek: 'dddd [li għadda] [fil-]LT', - sameElse: 'L', - }, - relativeTime: { - future: 'f’ %s', - past: '%s ilu', - s: 'ftit sekondi', - ss: '%d sekondi', - m: 'minuta', - mm: '%d minuti', - h: 'siegħa', - hh: '%d siegħat', - d: 'ġurnata', - dd: '%d ġranet', - M: 'xahar', - MM: '%d xhur', - y: 'sena', - yy: '%d sni', - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + function hasClass(element, name) { + var list = typeof element == 'string' ? element : classList(element); + return list.indexOf(' ' + name + ' ') >= 0; + } - return mt; + /** + * (Internal) Adds a class to an element. + */ - }))); + function addClass(element, name) { + var oldList = classList(element), + newList = oldList + name; + if (hasClass(oldList, name)) return; - /***/ }), - /* 420 */ - /***/ (function(module, exports, __webpack_require__) { + // Trim the opening space. + element.className = newList.substring(1); + } - //! moment.js locale configuration - //! locale : Burmese [my] - //! author : Squar team, mysquar.com - //! author : David Rossellat : https://github.com/gholadr - //! author : Tin Aung Lin : https://github.com/thanyawzinmin + /** + * (Internal) Removes a class from an element. + */ - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + function removeClass(element, name) { + var oldList = classList(element), + newList; - //! moment.js locale configuration + if (!hasClass(element, name)) return; - var symbolMap = { - '1': '၁', - '2': '၂', - '3': '၃', - '4': '၄', - '5': '၅', - '6': '၆', - '7': '၇', - '8': '၈', - '9': '၉', - '0': '၀', - }, - numberMap = { - '၁': '1', - '၂': '2', - '၃': '3', - '၄': '4', - '၅': '5', - '၆': '6', - '၇': '7', - '၈': '8', - '၉': '9', - '၀': '0', - }; + // Replace the class name. + newList = oldList.replace(' ' + name + ' ', ' '); - var my = moment.defineLocale('my', { - months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split( - '_' - ), - monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'), - weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split( - '_' - ), - weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'), - weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'), + // Trim the opening and closing spaces. + element.className = newList.substring(1, newList.length - 1); + } - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[ယနေ.] LT [မှာ]', - nextDay: '[မနက်ဖြန်] LT [မှာ]', - nextWeek: 'dddd LT [မှာ]', - lastDay: '[မနေ.က] LT [မှာ]', - lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]', - sameElse: 'L', - }, - relativeTime: { - future: 'လာမည့် %s မှာ', - past: 'လွန်ခဲ့သော %s က', - s: 'စက္ကန်.အနည်းငယ်', - ss: '%d စက္ကန့်', - m: 'တစ်မိနစ်', - mm: '%d မိနစ်', - h: 'တစ်နာရီ', - hh: '%d နာရီ', - d: 'တစ်ရက်', - dd: '%d ရက်', - M: 'တစ်လ', - MM: '%d လ', - y: 'တစ်နှစ်', - yy: '%d နှစ်', - }, - preparse: function (string) { - return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + /** + * (Internal) Gets a space separated list of the class names on the element. + * The list is wrapped with a single space on each end to facilitate finding + * matches within the list. + */ - return my; + function classList(element) { + return (' ' + (element.className || '') + ' ').replace(/\s+/gi, ' '); + } + + /** + * (Internal) Removes an element from the DOM. + */ + + function removeElement(element) { + element && element.parentNode && element.parentNode.removeChild(element); + } + + return NProgress; + }); - }))); /***/ }), - /* 421 */ + /* 267 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Norwegian Bokmål [nb] - //! authors : Espen Hovlandsdal : https://github.com/rexxars - //! Sigurd Gartmann : https://github.com/sigurdga - //! Stephen Ramthun : https://github.com/stephenramthun + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration + Object.defineProperty(exports, "__esModule", { + value: true + }); - var nb = moment.defineLocale('nb', { - months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split( - '_' - ), - monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'), - weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'), - weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY [kl.] HH:mm', - LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm', - }, - calendar: { - sameDay: '[i dag kl.] LT', - nextDay: '[i morgen kl.] LT', - nextWeek: 'dddd [kl.] LT', - lastDay: '[i går kl.] LT', - lastWeek: '[forrige] dddd [kl.] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'om %s', - past: '%s siden', - s: 'noen sekunder', - ss: '%d sekunder', - m: 'ett minutt', - mm: '%d minutter', - h: 'en time', - hh: '%d timer', - d: 'en dag', - dd: '%d dager', - M: 'en måned', - MM: '%d måneder', - y: 'ett år', - yy: '%d år', - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - return nb; + var _classnames = __webpack_require__(2); - }))); + var _classnames2 = _interopRequireDefault(_classnames); + var _react = __webpack_require__(0); - /***/ }), - /* 422 */ - /***/ (function(module, exports, __webpack_require__) { + var _react2 = _interopRequireDefault(_react); - //! moment.js locale configuration - //! locale : Nepalese [ne] - //! author : suvash : https://github.com/suvash + var _propTypes = __webpack_require__(1); - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _propTypes2 = _interopRequireDefault(_propTypes); - //! moment.js locale configuration + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - var symbolMap = { - '1': '१', - '2': '२', - '3': '३', - '4': '४', - '5': '५', - '6': '६', - '7': '७', - '8': '८', - '9': '९', - '0': '०', - }, - numberMap = { - '१': '1', - '२': '2', - '३': '3', - '४': '4', - '५': '5', - '६': '6', - '७': '7', - '८': '8', - '९': '9', - '०': '0', - }; + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - var ne = moment.defineLocale('ne', { - months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split( - '_' - ), - monthsShort: 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split( - '_' - ), - weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'), - weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'Aको h:mm बजे', - LTS: 'Aको h:mm:ss बजे', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, Aको h:mm बजे', - LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे', - }, - preparse: function (string) { - return string.replace(/[१२३४५६७८९०]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - meridiemParse: /राति|बिहान|दिउँसो|साँझ/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'राति') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'बिहान') { - return hour; - } else if (meridiem === 'दिउँसो') { - return hour >= 10 ? hour : hour + 12; - } else if (meridiem === 'साँझ') { - return hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - if (hour < 3) { - return 'राति'; - } else if (hour < 12) { - return 'बिहान'; - } else if (hour < 16) { - return 'दिउँसो'; - } else if (hour < 20) { - return 'साँझ'; - } else { - return 'राति'; - } - }, - calendar: { - sameDay: '[आज] LT', - nextDay: '[भोलि] LT', - nextWeek: '[आउँदो] dddd[,] LT', - lastDay: '[हिजो] LT', - lastWeek: '[गएको] dddd[,] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%sमा', - past: '%s अगाडि', - s: 'केही क्षण', - ss: '%d सेकेण्ड', - m: 'एक मिनेट', - mm: '%d मिनेट', - h: 'एक घण्टा', - hh: '%d घण्टा', - d: 'एक दिन', - dd: '%d दिन', - M: 'एक महिना', - MM: '%d महिना', - y: 'एक बर्ष', - yy: '%d बर्ष', - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }, - }); + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - return ne; + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - }))); + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - /***/ }), - /* 423 */ - /***/ (function(module, exports, __webpack_require__) { + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - //! moment.js locale configuration - //! locale : Dutch [nl] - //! author : Joris Röling : https://github.com/jorisroling - //! author : Jacob Middag : https://github.com/middagj + var propTypes = { + /** + * radio 颜色 样式 + */ + colors: _propTypes2["default"].oneOf(['', 'dark', 'success', 'info', 'warning', 'danger', 'primary']), + /** + * radio 大小 + */ + size: _propTypes2["default"].oneOf(['lg', 'sm']), + /** + * radio 是否可用 + */ + disabled: _propTypes2["default"].bool, + /** + * radio 样式 是否使用红色填充 + */ + inverse: _propTypes2["default"].bool, + checked: _propTypes2["default"].bool, + onChange: _propTypes2["default"].func + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var defaultProps = { + inverse: false, + disabled: false, + clsPrefix: 'u-radio' + }; - //! moment.js locale configuration + /** + * 建立与RadioGroup通信 + */ + var contextTypes = { + radioGroup: _propTypes2["default"].object + }; - var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split( - '_' - ), - monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split( - '_' - ), - monthsParse = [ - /^jan/i, - /^feb/i, - /^maart|mrt.?$/i, - /^apr/i, - /^mei$/i, - /^jun[i.]?$/i, - /^jul[i.]?$/i, - /^aug/i, - /^sep/i, - /^okt/i, - /^nov/i, - /^dec/i, - ], - monthsRegex = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i; + var Radio = function (_React$Component) { + _inherits(Radio, _React$Component); - var nl = moment.defineLocale('nl', { - months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split( - '_' - ), - monthsShort: function (m, format) { - if (!m) { - return monthsShortWithDots; - } else if (/-MMM-/.test(format)) { - return monthsShortWithoutDots[m.month()]; - } else { - return monthsShortWithDots[m.month()]; - } - }, + function Radio(props, context) { + _classCallCheck(this, Radio); - monthsRegex: monthsRegex, - monthsShortRegex: monthsRegex, - monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i, - monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i, + var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context)); - monthsParse: monthsParse, - longMonthsParse: monthsParse, - shortMonthsParse: monthsParse, + _this.handleClick = function (event) { + if (_this.props.disabled) { + return; + } + if (_this.context.radioGroup && _this.context.radioGroup.onChange) { + _this.context.radioGroup.onChange(_this.props.value); + } else { + if (!('checked' in _this.props)) { + _this.setState({ + checked: !_this.state.checked + }); + } + event.target.checked = !_this.state.checked; + _this.props.onChange && _this.props.onChange(event, !_this.state.checked); + } + }; - weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split( - '_' - ), - weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'), - weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD-MM-YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[vandaag om] LT', - nextDay: '[morgen om] LT', - nextWeek: 'dddd [om] LT', - lastDay: '[gisteren om] LT', - lastWeek: '[afgelopen] dddd [om] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'over %s', - past: '%s geleden', - s: 'een paar seconden', - ss: '%d seconden', - m: 'één minuut', - mm: '%d minuten', - h: 'één uur', - hh: '%d uur', - d: 'één dag', - dd: '%d dagen', - M: 'één maand', - MM: '%d maanden', - y: 'één jaar', - yy: '%d jaar', - }, - dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, - ordinal: function (number) { - return ( - number + - (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de') - ); - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + _this.handleFocus = function (e) { + if (e.target && e.target.type == 'radio') { + _this.setState({ + focused: true + }); + } + }; + + _this.handleBlur = function (e) { + if (e.target && e.target.type == 'radio') { + _this.setState({ + focused: false + }); + } + }; + + var initChecked = typeof props.checked !== 'undefined' ? props.checked : props.defaultChecked; + _this.state = { + checked: initChecked, + focused: false + }; + return _this; + } + + Radio.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { + if ('checked' in nextProps) { + this.setState({ + checked: nextProps.checked + }); + } + }; + + Radio.prototype.render = function render() { + var _classes; + + var state = this.state, + props = this.props, + context = this.context; + var checked = state.checked; + /** + * 自身的属性 + */ + + var inverse = props.inverse, + disabled = props.disabled, + colors = props.colors, + className = props.className, + children = props.children, + clsPrefix = props.clsPrefix, + style = props.style, + onChange = props.onChange, + others = _objectWithoutProperties(props, ['inverse', 'disabled', 'colors', 'className', 'children', 'clsPrefix', 'style', 'onChange']); + + var radioGroup = context.radioGroup; + + var radioProps = _extends({}, others); + // 包裹 radioGroup + if (radioGroup) { + radioProps.name = radioGroup.name; + radioProps.selectedvalue = radioGroup.selectedValue; + radioProps.size = radioGroup.size; + radioProps.focusvalue = radioGroup.focusvalue; + } + var name = radioProps.name, + selectedvalue = radioProps.selectedvalue, + size = radioProps.size, + focusvalue = radioProps.focusvalue; + + + var optional = {}; + /** + * 若父级selectedValue与本身的value值相同,则改radio被选中 + */ + if (selectedvalue !== undefined) { + optional.checked = this.props.value === selectedvalue; + } - return nl; + var classes = (_classes = {}, _defineProperty(_classes, clsPrefix + '-focused', this.state.focused), _defineProperty(_classes, 'is-checked', typeof optional.checked !== 'undefined' ? optional.checked : checked), _defineProperty(_classes, 'disabled', disabled), _classes); - }))); + if (colors) { + classes[clsPrefix + '-' + colors] = true; + } + if (size) { + classes[clsPrefix + '-' + size] = true; + } + if (inverse) { + classes[clsPrefix + '-inverse'] = true; + } + if (children == null) { + classes[clsPrefix + '-noContent'] = true; + } + var classNames = (0, _classnames2["default"])(clsPrefix, classes); + var tabIndex = optional.checked ? 0 : -1; + if (focusvalue && focusvalue == this.props.value) { + tabIndex = 0; + } + var input = _react2["default"].createElement('input', _extends({}, radioProps, { + type: 'radio', + name: name, + disabled: this.props.disabled, + tabIndex: tabIndex, + onFocus: this.handleFocus, + onBlur: this.handleBlur + })); + return _react2["default"].createElement( + 'label', + { style: style, onClick: this.handleClick, className: (0, _classnames2["default"])(className, classNames) }, + input, + _react2["default"].createElement( + 'label', + { className: clsPrefix + '-label' }, + children + ) + ); + }; + return Radio; + }(_react2["default"].Component); + + Radio.contextTypes = contextTypes; + Radio.propTypes = propTypes; + Radio.defaultProps = defaultProps; + + exports["default"] = Radio; + module.exports = exports['default']; /***/ }), - /* 424 */ + /* 268 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Dutch (Belgium) [nl-be] - //! author : Joris Röling : https://github.com/jorisroling - //! author : Jacob Middag : https://github.com/middagj + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration + Object.defineProperty(exports, "__esModule", { + value: true + }); - var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split( - '_' - ), - monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split( - '_' - ), - monthsParse = [ - /^jan/i, - /^feb/i, - /^maart|mrt.?$/i, - /^apr/i, - /^mei$/i, - /^jun[i.]?$/i, - /^jul[i.]?$/i, - /^aug/i, - /^sep/i, - /^okt/i, - /^nov/i, - /^dec/i, - ], - monthsRegex = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i; + var _react = __webpack_require__(0); - var nlBe = moment.defineLocale('nl-be', { - months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split( - '_' - ), - monthsShort: function (m, format) { - if (!m) { - return monthsShortWithDots; - } else if (/-MMM-/.test(format)) { - return monthsShortWithoutDots[m.month()]; - } else { - return monthsShortWithDots[m.month()]; - } - }, + var _react2 = _interopRequireDefault(_react); - monthsRegex: monthsRegex, - monthsShortRegex: monthsRegex, - monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i, - monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i, + var _reactDom = __webpack_require__(3); - monthsParse: monthsParse, - longMonthsParse: monthsParse, - shortMonthsParse: monthsParse, + var _reactDom2 = _interopRequireDefault(_reactDom); - weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split( - '_' - ), - weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'), - weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[vandaag om] LT', - nextDay: '[morgen om] LT', - nextWeek: 'dddd [om] LT', - lastDay: '[gisteren om] LT', - lastWeek: '[afgelopen] dddd [om] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'over %s', - past: '%s geleden', - s: 'een paar seconden', - ss: '%d seconden', - m: 'één minuut', - mm: '%d minuten', - h: 'één uur', - hh: '%d uur', - d: 'één dag', - dd: '%d dagen', - M: 'één maand', - MM: '%d maanden', - y: 'één jaar', - yy: '%d jaar', - }, - dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, - ordinal: function (number) { - return ( - number + - (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de') - ); - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var _propTypes = __webpack_require__(1); - return nlBe; + var _propTypes2 = _interopRequireDefault(_propTypes); - }))); + var _ownerDocument = __webpack_require__(98); + var _ownerDocument2 = _interopRequireDefault(_ownerDocument); - /***/ }), - /* 425 */ - /***/ (function(module, exports, __webpack_require__) { + var _getContainer = __webpack_require__(269); - //! moment.js locale configuration - //! locale : Nynorsk [nn] - //! authors : https://github.com/mechuwind - //! Stephen Ramthun : https://github.com/stephenramthun + var _getContainer2 = _interopRequireDefault(_getContainer); - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _tinperBeeCore = __webpack_require__(99); - //! moment.js locale configuration + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - var nn = moment.defineLocale('nn', { - months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split( - '_' - ), - monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'), - weekdaysShort: 'su._må._ty._on._to._fr._lau.'.split('_'), - weekdaysMin: 'su_må_ty_on_to_fr_la'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY [kl.] H:mm', - LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm', - }, - calendar: { - sameDay: '[I dag klokka] LT', - nextDay: '[I morgon klokka] LT', - nextWeek: 'dddd [klokka] LT', - lastDay: '[I går klokka] LT', - lastWeek: '[Føregåande] dddd [klokka] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'om %s', - past: '%s sidan', - s: 'nokre sekund', - ss: '%d sekund', - m: 'eit minutt', - mm: '%d minutt', - h: 'ein time', - hh: '%d timar', - d: 'ein dag', - dd: '%d dagar', - M: 'ein månad', - MM: '%d månader', - y: 'eit år', - yy: '%d år', - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - return nn; + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - }))); + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - /***/ }), - /* 426 */ - /***/ (function(module, exports, __webpack_require__) { + var isReact16 = _reactDom2["default"].createPortal !== undefined; + var createPortal = isReact16 ? _reactDom2["default"].createPortal : _reactDom2["default"].unstable_renderSubtreeIntoContainer; - //! moment.js locale configuration - //! locale : Occitan, lengadocian dialecte [oc-lnc] - //! author : Quentin PAGÈS : https://github.com/Quenty31 + var propTypes = { + /** + * 存放子组件的容器 + */ + container: _propTypes2["default"].oneOfType([_tinperBeeCore.componentOrElement, _propTypes2["default"].func]) + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var defaultProps = {}; - //! moment.js locale configuration + /** + * Portal组件是将子组件渲染 + */ - var ocLnc = moment.defineLocale('oc-lnc', { - months: { - standalone: 'genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre'.split( - '_' - ), - format: "de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split( - '_' - ), - isFormat: /D[oD]?(\s)+MMMM/, - }, - monthsShort: 'gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte'.split( - '_' - ), - weekdaysShort: 'dg._dl._dm._dc._dj._dv._ds.'.split('_'), - weekdaysMin: 'dg_dl_dm_dc_dj_dv_ds'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM [de] YYYY', - ll: 'D MMM YYYY', - LLL: 'D MMMM [de] YYYY [a] H:mm', - lll: 'D MMM YYYY, H:mm', - LLLL: 'dddd D MMMM [de] YYYY [a] H:mm', - llll: 'ddd D MMM YYYY, H:mm', - }, - calendar: { - sameDay: '[uèi a] LT', - nextDay: '[deman a] LT', - nextWeek: 'dddd [a] LT', - lastDay: '[ièr a] LT', - lastWeek: 'dddd [passat a] LT', - sameElse: 'L', - }, - relativeTime: { - future: "d'aquí %s", - past: 'fa %s', - s: 'unas segondas', - ss: '%d segondas', - m: 'una minuta', - mm: '%d minutas', - h: 'una ora', - hh: '%d oras', - d: 'un jorn', - dd: '%d jorns', - M: 'un mes', - MM: '%d meses', - y: 'un an', - yy: '%d ans', - }, - dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/, - ordinal: function (number, period) { - var output = - number === 1 - ? 'r' - : number === 2 - ? 'n' - : number === 3 - ? 'r' - : number === 4 - ? 't' - : 'è'; - if (period === 'w' || period === 'W') { - output = 'a'; - } - return number + output; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, - }, - }); + var Portal = function (_Component) { + _inherits(Portal, _Component); - return ocLnc; + function Portal(props) { + _classCallCheck(this, Portal); - }))); + var _this = _possibleConstructorReturn(this, _Component.call(this, props)); + _this.getMountNode = _this.getMountNode.bind(_this); + _this.getOverlayDOMNode = _this.getOverlayDOMNode.bind(_this); + _this.mountOverlayTarget = _this.mountOverlayTarget.bind(_this); + _this.unmountOverlayTarget = _this.unmountOverlayTarget.bind(_this); + _this.renderOverlay = _this.renderOverlay.bind(_this); + _this.unrenderOverlay = _this.unrenderOverlay.bind(_this); - /***/ }), - /* 427 */ - /***/ (function(module, exports, __webpack_require__) { + _this.overlayTarget = isReact16 ? document.createElement('div') : null; + return _this; + } - //! moment.js locale configuration - //! locale : Punjabi (India) [pa-in] - //! author : Harpreet Singh : https://github.com/harpreetkhalsagtbit + Portal.prototype.componentDidMount = function componentDidMount() { + if (isReact16) { + this.portalContainerNode = (0, _getContainer2["default"])(this.props.container, (0, _ownerDocument2["default"])(this).body); + this.portalContainerNode.appendChild(this.overlayTarget); + } else { + this.renderOverlay(); + } - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + this.mounted = true; + }; - //! moment.js locale configuration + Portal.prototype.componentDidUpdate = function componentDidUpdate() { + if (isReact16) { + var overlay = !this.props.children ? null : _react2["default"].Children.only(this.props.children); + if (overlay === null) { + this.unrenderOverlay(); + this.unmountOverlayTarget(); + } else {} + } else { + this.renderOverlay(); + } + }; + //this._overlayTarget为当前的要添加的子组件, this._portalContainerNode要添加组件的容器元素 - var symbolMap = { - '1': '੧', - '2': '੨', - '3': '੩', - '4': '੪', - '5': '੫', - '6': '੬', - '7': '੭', - '8': '੮', - '9': '੯', - '0': '੦', - }, - numberMap = { - '੧': '1', - '੨': '2', - '੩': '3', - '੪': '4', - '੫': '5', - '੬': '6', - '੭': '7', - '੮': '8', - '੯': '9', - '੦': '0', - }; - var paIn = moment.defineLocale('pa-in', { - // There are months name as per Nanakshahi Calendar but they are not used as rigidly in modern Punjabi. - months: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split( - '_' - ), - monthsShort: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split( - '_' - ), - weekdays: 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split( - '_' - ), - weekdaysShort: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'), - weekdaysMin: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'), - longDateFormat: { - LT: 'A h:mm ਵਜੇ', - LTS: 'A h:mm:ss ਵਜੇ', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm ਵਜੇ', - LLLL: 'dddd, D MMMM YYYY, A h:mm ਵਜੇ', - }, - calendar: { - sameDay: '[ਅਜ] LT', - nextDay: '[ਕਲ] LT', - nextWeek: '[ਅਗਲਾ] dddd, LT', - lastDay: '[ਕਲ] LT', - lastWeek: '[ਪਿਛਲੇ] dddd, LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s ਵਿੱਚ', - past: '%s ਪਿਛਲੇ', - s: 'ਕੁਝ ਸਕਿੰਟ', - ss: '%d ਸਕਿੰਟ', - m: 'ਇਕ ਮਿੰਟ', - mm: '%d ਮਿੰਟ', - h: 'ਇੱਕ ਘੰਟਾ', - hh: '%d ਘੰਟੇ', - d: 'ਇੱਕ ਦਿਨ', - dd: '%d ਦਿਨ', - M: 'ਇੱਕ ਮਹੀਨਾ', - MM: '%d ਮਹੀਨੇ', - y: 'ਇੱਕ ਸਾਲ', - yy: '%d ਸਾਲ', - }, - preparse: function (string) { - return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - // Punjabi notation for meridiems are quite fuzzy in practice. While there exists - // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi. - meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'ਰਾਤ') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'ਸਵੇਰ') { - return hour; - } else if (meridiem === 'ਦੁਪਹਿਰ') { - return hour >= 10 ? hour : hour + 12; - } else if (meridiem === 'ਸ਼ਾਮ') { - return hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'ਰਾਤ'; - } else if (hour < 10) { - return 'ਸਵੇਰ'; - } else if (hour < 17) { - return 'ਦੁਪਹਿਰ'; - } else if (hour < 20) { - return 'ਸ਼ਾਮ'; - } else { - return 'ਰਾਤ'; - } - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }, - }); + Portal.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { + if (this.overlayTarget && nextProps.container !== this.props.container) { + this.portalContainerNode.removeChild(this.overlayTarget); + this.portalContainerNode = (0, _getContainer2["default"])(nextProps.container, (0, _ownerDocument2["default"])(this).body); + this.portalContainerNode.appendChild(this.overlayTarget); + } + }; - return paIn; + Portal.prototype.componentWillUnmount = function componentWillUnmount() { + this.unrenderOverlay(); + this.unmountOverlayTarget(); - }))); + this.mounted = false; + }; + Portal.prototype.getMountNode = function getMountNode() { + return this.overlayTarget; + }; - /***/ }), - /* 428 */ - /***/ (function(module, exports, __webpack_require__) { + Portal.prototype.getOverlayDOMNode = function getOverlayDOMNode() { + if (!this.mounted) { + throw new Error('getOverlayDOMNode(): A component must be mounted to have a DOM node.'); + } - //! moment.js locale configuration - //! locale : Polish [pl] - //! author : Rafal Hirsz : https://github.com/evoL + if (this.overlayInstance) { + return _reactDom2["default"].findDOMNode(this.overlayInstance); + } - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + return null; + }; - //! moment.js locale configuration + /** + * 如果要添加的子组件不存在,就将div添加到要添加容器的DOM中; + */ - var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split( - '_' - ), - monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split( - '_' - ); - function plural(n) { - return n % 10 < 5 && n % 10 > 1 && ~~(n / 10) % 10 !== 1; + Portal.prototype.mountOverlayTarget = function mountOverlayTarget() { + if (!this.overlayTarget) { + this.overlayTarget = document.createElement('div'); + this.portalContainerNode = (0, _getContainer2["default"])(this.props.container, (0, _ownerDocument2["default"])(this).body); + this.portalContainerNode.appendChild(this.overlayTarget); } - function translate(number, withoutSuffix, key) { - var result = number + ' '; - switch (key) { - case 'ss': - return result + (plural(number) ? 'sekundy' : 'sekund'); - case 'm': - return withoutSuffix ? 'minuta' : 'minutę'; - case 'mm': - return result + (plural(number) ? 'minuty' : 'minut'); - case 'h': - return withoutSuffix ? 'godzina' : 'godzinę'; - case 'hh': - return result + (plural(number) ? 'godziny' : 'godzin'); - case 'MM': - return result + (plural(number) ? 'miesiące' : 'miesięcy'); - case 'yy': - return result + (plural(number) ? 'lata' : 'lat'); - } + }; + /** + * 将要添加的子元素从容器中移除,并把变量置为null + */ + + + Portal.prototype.unmountOverlayTarget = function unmountOverlayTarget() { + if (this.overlayTarget) { + this.portalContainerNode.removeChild(this.overlayTarget); + this.overlayTarget = null; } + this.portalContainerNode = null; + }; + /** + * 手动渲染_overlayTarget + */ - var pl = moment.defineLocale('pl', { - months: function (momentToFormat, format) { - if (!momentToFormat) { - return monthsNominative; - } else if (format === '') { - // Hack: if format empty we know this is used to generate - // RegExp by moment. Give then back both valid forms of months - // in RegExp ready format. - return ( - '(' + - monthsSubjective[momentToFormat.month()] + - '|' + - monthsNominative[momentToFormat.month()] + - ')' - ); - } else if (/D MMMM/.test(format)) { - return monthsSubjective[momentToFormat.month()]; - } else { - return monthsNominative[momentToFormat.month()]; - } - }, - monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'), - weekdays: 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split( - '_' - ), - weekdaysShort: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'), - weekdaysMin: 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Dziś o] LT', - nextDay: '[Jutro o] LT', - nextWeek: function () { - switch (this.day()) { - case 0: - return '[W niedzielę o] LT'; - case 2: - return '[We wtorek o] LT'; + Portal.prototype.renderOverlay = function renderOverlay() { - case 3: - return '[W środę o] LT'; + var overlay = !this.props.children ? null : _react2["default"].Children.only(this.props.children); - case 6: - return '[W sobotę o] LT'; + // Save reference for future access. + if (overlay !== null) { + this.mountOverlayTarget(); + this.overlayInstance = _reactDom2["default"].unstable_renderSubtreeIntoContainer(this, overlay, this.overlayTarget); + } else { + // Unrender if the component is null for transitions to null + this.unrenderOverlay(); + this.unmountOverlayTarget(); + } + }; + /** + * 销毁_overlayTarget组件。并把_overlayInstance置为null + */ - default: - return '[W] dddd [o] LT'; - } - }, - lastDay: '[Wczoraj o] LT', - lastWeek: function () { - switch (this.day()) { - case 0: - return '[W zeszłą niedzielę o] LT'; - case 3: - return '[W zeszłą środę o] LT'; - case 6: - return '[W zeszłą sobotę o] LT'; - default: - return '[W zeszły] dddd [o] LT'; - } - }, - sameElse: 'L', - }, - relativeTime: { - future: 'za %s', - past: '%s temu', - s: 'kilka sekund', - ss: translate, - m: translate, - mm: translate, - h: translate, - hh: translate, - d: '1 dzień', - dd: '%d dni', - M: 'miesiąc', - MM: translate, - y: 'rok', - yy: translate, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - return pl; + Portal.prototype.unrenderOverlay = function unrenderOverlay() { + if (this.overlayTarget) { + !isReact16 && _reactDom2["default"].unmountComponentAtNode(this.overlayTarget); + this.overlayInstance = null; + } + }; - }))); + Portal.prototype.render = function render() { + if (!isReact16) { + return null; + } + + var overlay = !this.props.children ? null : _react2["default"].Children.only(this.props.children); + + return _reactDom2["default"].createPortal(overlay, this.overlayTarget); + }; + + return Portal; + }(_react.Component); + + ; + + Portal.propTypes = propTypes; + Portal.defaultProps = defaultProps; + exports["default"] = Portal; + module.exports = exports['default']; /***/ }), - /* 429 */ + /* 269 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Portuguese [pt] - //! author : Jefferson : https://github.com/jalex79 + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports["default"] = getContainer; - var pt = moment.defineLocale('pt', { - months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split( - '_' - ), - monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'), - weekdays: 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split( - '_' - ), - weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'), - weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D [de] MMMM [de] YYYY', - LLL: 'D [de] MMMM [de] YYYY HH:mm', - LLLL: 'dddd, D [de] MMMM [de] YYYY HH:mm', - }, - calendar: { - sameDay: '[Hoje às] LT', - nextDay: '[Amanhã às] LT', - nextWeek: 'dddd [às] LT', - lastDay: '[Ontem às] LT', - lastWeek: function () { - return this.day() === 0 || this.day() === 6 - ? '[Último] dddd [às] LT' // Saturday + Sunday - : '[Última] dddd [às] LT'; // Monday - Friday - }, - sameElse: 'L', - }, - relativeTime: { - future: 'em %s', - past: 'há %s', - s: 'segundos', - ss: '%d segundos', - m: 'um minuto', - mm: '%d minutos', - h: 'uma hora', - hh: '%d horas', - d: 'um dia', - dd: '%d dias', - M: 'um mês', - MM: '%d meses', - y: 'um ano', - yy: '%d anos', - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var _reactDom = __webpack_require__(3); - return pt; + var _reactDom2 = _interopRequireDefault(_reactDom); - }))); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + /** + * 获取容器组件 + * @param {[type]} container [description] + * @param {[type]} defaultContainer [description] + * @return {[type]} [description] + */ + function getContainer(container, defaultContainer) { + container = typeof container === 'function' ? container() : container; + return _reactDom2["default"].findDOMNode(container) || defaultContainer; + } + module.exports = exports['default']; /***/ }), - /* 430 */ + /* 270 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Portuguese (Brazil) [pt-br] - //! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration + exports.__esModule = true; + exports.default = addEventListenerWrap; - var ptBr = moment.defineLocale('pt-br', { - months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split( - '_' - ), - monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'), - weekdays: 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split( - '_' - ), - weekdaysShort: 'dom_seg_ter_qua_qui_sex_sáb'.split('_'), - weekdaysMin: 'do_2ª_3ª_4ª_5ª_6ª_sá'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D [de] MMMM [de] YYYY', - LLL: 'D [de] MMMM [de] YYYY [às] HH:mm', - LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm', - }, - calendar: { - sameDay: '[Hoje às] LT', - nextDay: '[Amanhã às] LT', - nextWeek: 'dddd [às] LT', - lastDay: '[Ontem às] LT', - lastWeek: function () { - return this.day() === 0 || this.day() === 6 - ? '[Último] dddd [às] LT' // Saturday + Sunday - : '[Última] dddd [às] LT'; // Monday - Friday - }, - sameElse: 'L', - }, - relativeTime: { - future: 'em %s', - past: 'há %s', - s: 'poucos segundos', - ss: '%d segundos', - m: 'um minuto', - mm: '%d minutos', - h: 'uma hora', - hh: '%d horas', - d: 'um dia', - dd: '%d dias', - M: 'um mês', - MM: '%d meses', - y: 'um ano', - yy: '%d anos', - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - }); + var _addDomEventListener = __webpack_require__(16); - return ptBr; + var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener); - }))); + var _reactDom = __webpack_require__(3); + + var _reactDom2 = _interopRequireDefault(_reactDom); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + /** + * This source code is quoted from rc-util. + * homepage: https://github.com/react-component/util + */ + function addEventListenerWrap(target, eventType, cb) { + /* eslint camelcase: 2 */ + var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) { + _reactDom2.default.unstable_batchedUpdates(cb, e); + } : cb; + return (0, _addDomEventListener2.default)(target, eventType, callback); + } /***/ }), - /* 431 */ + /* 271 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Romanian [ro] - //! author : Vlad Gurdiga : https://github.com/gurdiga - //! author : Valentin Agachi : https://github.com/avaly - //! author : Emanuel Cepoi : https://github.com/cepem + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = camelizeStyleName; - function relativeTimeWithPlural(number, withoutSuffix, key) { - var format = { - ss: 'secunde', - mm: 'minute', - hh: 'ore', - dd: 'zile', - MM: 'luni', - yy: 'ani', - }, - separator = ' '; - if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) { - separator = ' de '; - } - return number + separator + format[key]; + var _camelize = __webpack_require__(882); + + var _camelize2 = _interopRequireDefault(_camelize); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var msPattern = /^-ms-/; /** + * Copyright 2014-2015, Facebook, Inc. + * All rights reserved. + * https://github.com/facebook/react/blob/2aeb8a2a6beb00617a4217f7f8284924fa2ad819/src/vendor/core/camelizeStyleName.js + */ + function camelizeStyleName(string) { + return (0, _camelize2.default)(string.replace(msPattern, 'ms-')); + } + module.exports = exports['default']; + + /***/ }), + /* 272 */ + /***/ (function(module, exports, __webpack_require__) { + + "use strict"; + + + Object.defineProperty(exports, "__esModule", { + value: true + }); + + exports["default"] = function (node, event, handler, capture) { + (0, _on2["default"])(node, event, handler, capture); + + return { + remove: function remove() { + (0, _off2["default"])(node, event, handler, capture); } + }; + }; - var ro = moment.defineLocale('ro', { - months: 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split( - '_' - ), - monthsShort: 'ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'), - weekdaysShort: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'), - weekdaysMin: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'), - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY H:mm', - LLLL: 'dddd, D MMMM YYYY H:mm', - }, - calendar: { - sameDay: '[azi la] LT', - nextDay: '[mâine la] LT', - nextWeek: 'dddd [la] LT', - lastDay: '[ieri la] LT', - lastWeek: '[fosta] dddd [la] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'peste %s', - past: '%s în urmă', - s: 'câteva secunde', - ss: relativeTimeWithPlural, - m: 'un minut', - mm: relativeTimeWithPlural, - h: 'o oră', - hh: relativeTimeWithPlural, - d: 'o zi', - dd: relativeTimeWithPlural, - M: 'o lună', - MM: relativeTimeWithPlural, - y: 'un an', - yy: relativeTimeWithPlural, - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); + var _on = __webpack_require__(17); + + var _on2 = _interopRequireDefault(_on); + + var _off = __webpack_require__(49); + + var _off2 = _interopRequireDefault(_off); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + + module.exports = exports['default']; + + /***/ }), + /* 273 */ + /***/ (function(module, exports) { + + // removed by extract-text-webpack-plugin + + /***/ }), + /* 274 */ + /***/ (function(module, exports, __webpack_require__) { - return ro; + "use strict"; - }))); + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.PanelGroup = exports.Panel = undefined; - /***/ }), - /* 432 */ - /***/ (function(module, exports, __webpack_require__) { + var _Panel2 = __webpack_require__(899); - //! moment.js locale configuration - //! locale : Russian [ru] - //! author : Viktorminator : https://github.com/Viktorminator - //! Author : Menelion Elensúle : https://github.com/Oire - //! author : Коренберг Марк : https://github.com/socketpair + var _Panel3 = _interopRequireDefault(_Panel2); - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _PanelGroup2 = __webpack_require__(930); - //! moment.js locale configuration + var _PanelGroup3 = _interopRequireDefault(_PanelGroup2); - function plural(word, num) { - var forms = word.split('_'); - return num % 10 === 1 && num % 100 !== 11 - ? forms[0] - : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) - ? forms[1] - : forms[2]; - } - function relativeTimeWithPlural(number, withoutSuffix, key) { - var format = { - ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд', - mm: withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут', - hh: 'час_часа_часов', - dd: 'день_дня_дней', - MM: 'месяц_месяца_месяцев', - yy: 'год_года_лет', - }; - if (key === 'm') { - return withoutSuffix ? 'минута' : 'минуту'; - } else { - return number + ' ' + plural(format[key], +number); - } - } - var monthsParse = [ - /^янв/i, - /^фев/i, - /^мар/i, - /^апр/i, - /^ма[йя]/i, - /^июн/i, - /^июл/i, - /^авг/i, - /^сен/i, - /^окт/i, - /^ноя/i, - /^дек/i, - ]; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - // http://new.gramota.ru/spravka/rules/139-prop : § 103 - // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637 - // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753 - var ru = moment.defineLocale('ru', { - months: { - format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split( - '_' - ), - standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split( - '_' - ), - }, - monthsShort: { - // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку ? - format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split( - '_' - ), - standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split( - '_' - ), - }, - weekdays: { - standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split( - '_' - ), - format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split( - '_' - ), - isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/, - }, - weekdaysShort: 'вс_пн_вт_ср_чт_пт_сб'.split('_'), - weekdaysMin: 'вс_пн_вт_ср_чт_пт_сб'.split('_'), - monthsParse: monthsParse, - longMonthsParse: monthsParse, - shortMonthsParse: monthsParse, + exports.Panel = _Panel3["default"]; + exports.PanelGroup = _PanelGroup3["default"]; - // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки - monthsRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i, + /***/ }), + /* 275 */ + /***/ (function(module, exports, __webpack_require__) { - // копия предыдущего - monthsShortRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i, + "use strict"; - // полные названия с падежами - monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i, - // Выражение, которое соотвествует только сокращённым формам - monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY г.', - LLL: 'D MMMM YYYY г., H:mm', - LLLL: 'dddd, D MMMM YYYY г., H:mm', - }, - calendar: { - sameDay: '[Сегодня, в] LT', - nextDay: '[Завтра, в] LT', - lastDay: '[Вчера, в] LT', - nextWeek: function (now) { - if (now.week() !== this.week()) { - switch (this.day()) { - case 0: - return '[В следующее] dddd, [в] LT'; - case 1: - case 2: - case 4: - return '[В следующий] dddd, [в] LT'; - case 3: - case 5: - case 6: - return '[В следующую] dddd, [в] LT'; - } - } else { - if (this.day() === 2) { - return '[Во] dddd, [в] LT'; - } else { - return '[В] dddd, [в] LT'; - } - } - }, - lastWeek: function (now) { - if (now.week() !== this.week()) { - switch (this.day()) { - case 0: - return '[В прошлое] dddd, [в] LT'; - case 1: - case 2: - case 4: - return '[В прошлый] dddd, [в] LT'; - case 3: - case 5: - case 6: - return '[В прошлую] dddd, [в] LT'; - } - } else { - if (this.day() === 2) { - return '[Во] dddd, [в] LT'; - } else { - return '[В] dddd, [в] LT'; - } - } - }, - sameElse: 'L', - }, - relativeTime: { - future: 'через %s', - past: '%s назад', - s: 'несколько секунд', - ss: relativeTimeWithPlural, - m: relativeTimeWithPlural, - mm: relativeTimeWithPlural, - h: 'час', - hh: relativeTimeWithPlural, - d: 'день', - dd: relativeTimeWithPlural, - M: 'месяц', - MM: relativeTimeWithPlural, - y: 'год', - yy: relativeTimeWithPlural, - }, - meridiemParse: /ночи|утра|дня|вечера/i, - isPM: function (input) { - return /^(дня|вечера)$/.test(input); - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'ночи'; - } else if (hour < 12) { - return 'утра'; - } else if (hour < 17) { - return 'дня'; - } else { - return 'вечера'; - } - }, - dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/, - ordinal: function (number, period) { - switch (period) { - case 'M': - case 'd': - case 'DDD': - return number + '-й'; - case 'D': - return number + '-го'; - case 'w': - case 'W': - return number + '-я'; - default: - return number; - } - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + exports.__esModule = true; + /** + * This source code is quoted from rc-util. + * homepage: https://github.com/react-component/util + */ + function createChainedFunction() { + for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) { + funcs[_key] = arguments[_key]; + } - return ru; + return funcs.filter(function (f) { + return f != null; + }).reduce(function (acc, f) { + if (typeof f !== 'function') { + throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.'); + } - }))); + if (acc === null) { + return f; + } + return function chainedFunction() { + for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + args[_key2] = arguments[_key2]; + } + + acc.apply(this, args); + f.apply(this, args); + }; + }, null); + } + exports.default = createChainedFunction; /***/ }), - /* 433 */ + /* 276 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Sindhi [sd] - //! author : Narain Sagar : https://github.com/narainsagar + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration + exports.__esModule = true; + exports.default = addEventListenerWrap; - var months = [ - 'جنوري', - 'فيبروري', - 'مارچ', - 'اپريل', - 'مئي', - 'جون', - 'جولاءِ', - 'آگسٽ', - 'سيپٽمبر', - 'آڪٽوبر', - 'نومبر', - 'ڊسمبر', - ], - days = ['آچر', 'سومر', 'اڱارو', 'اربع', 'خميس', 'جمع', 'ڇنڇر']; + var _addDomEventListener = __webpack_require__(16); - var sd = moment.defineLocale('sd', { - months: months, - monthsShort: months, - weekdays: days, - weekdaysShort: days, - weekdaysMin: days, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd، D MMMM YYYY HH:mm', - }, - meridiemParse: /صبح|شام/, - isPM: function (input) { - return 'شام' === input; - }, - meridiem: function (hour, minute, isLower) { - if (hour < 12) { - return 'صبح'; - } - return 'شام'; - }, - calendar: { - sameDay: '[اڄ] LT', - nextDay: '[سڀاڻي] LT', - nextWeek: 'dddd [اڳين هفتي تي] LT', - lastDay: '[ڪالهه] LT', - lastWeek: '[گزريل هفتي] dddd [تي] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s پوء', - past: '%s اڳ', - s: 'چند سيڪنڊ', - ss: '%d سيڪنڊ', - m: 'هڪ منٽ', - mm: '%d منٽ', - h: 'هڪ ڪلاڪ', - hh: '%d ڪلاڪ', - d: 'هڪ ڏينهن', - dd: '%d ڏينهن', - M: 'هڪ مهينو', - MM: '%d مهينا', - y: 'هڪ سال', - yy: '%d سال', - }, - preparse: function (string) { - return string.replace(/،/g, ','); - }, - postformat: function (string) { - return string.replace(/,/g, '،'); - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener); - return sd; + var _reactDom = __webpack_require__(3); - }))); + var _reactDom2 = _interopRequireDefault(_reactDom); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + /** + * This source code is quoted from rc-util. + * homepage: https://github.com/react-component/util + */ + function addEventListenerWrap(target, eventType, cb) { + /* eslint camelcase: 2 */ + var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) { + _reactDom2.default.unstable_batchedUpdates(cb, e); + } : cb; + return (0, _addDomEventListener2.default)(target, eventType, callback); + } /***/ }), - /* 434 */ + /* 277 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Northern Sami [se] - //! authors : Bård Rolstad Henriksen : https://github.com/karamell + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration + Object.defineProperty(exports, "__esModule", { + value: true + }); + var util = { + isAppearSupported: function isAppearSupported(props) { + return props.transitionName && props.transitionAppear || props.animation.appear; + }, + isEnterSupported: function isEnterSupported(props) { + return props.transitionName && props.transitionEnter || props.animation.enter; + }, + isLeaveSupported: function isLeaveSupported(props) { + return props.transitionName && props.transitionLeave || props.animation.leave; + }, + allowAppearCallback: function allowAppearCallback(props) { + return props.transitionAppear || props.animation.appear; + }, + allowEnterCallback: function allowEnterCallback(props) { + return props.transitionEnter || props.animation.enter; + }, + allowLeaveCallback: function allowLeaveCallback(props) { + return props.transitionLeave || props.animation.leave; + } + }; + exports["default"] = util; + module.exports = exports["default"]; - var se = moment.defineLocale('se', { - months: 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split( - '_' - ), - monthsShort: 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split( - '_' - ), - weekdays: 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split( - '_' - ), - weekdaysShort: 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'), - weekdaysMin: 's_v_m_g_d_b_L'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'MMMM D. [b.] YYYY', - LLL: 'MMMM D. [b.] YYYY [ti.] HH:mm', - LLLL: 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm', - }, - calendar: { - sameDay: '[otne ti] LT', - nextDay: '[ihttin ti] LT', - nextWeek: 'dddd [ti] LT', - lastDay: '[ikte ti] LT', - lastWeek: '[ovddit] dddd [ti] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s geažes', - past: 'maŋit %s', - s: 'moadde sekunddat', - ss: '%d sekunddat', - m: 'okta minuhta', - mm: '%d minuhtat', - h: 'okta diimmu', - hh: '%d diimmut', - d: 'okta beaivi', - dd: '%d beaivvit', - M: 'okta mánnu', - MM: '%d mánut', - y: 'okta jahki', - yy: '%d jagit', - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + /***/ }), + /* 278 */ + /***/ (function(module, exports, __webpack_require__) { - return se; + "use strict"; - }))); + var deselectCurrent = __webpack_require__(929); - /***/ }), - /* 435 */ - /***/ (function(module, exports, __webpack_require__) { + var clipboardToIE11Formatting = { + "text/plain": "Text", + "text/html": "Url", + "default": "Text" + } - //! moment.js locale configuration - //! locale : Sinhalese [si] - //! author : Sampath Sitinamaluwa : https://github.com/sampathsris + var defaultMessage = "Copy to clipboard: #{key}, Enter"; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + function format(message) { + var copyKey = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C"; + return message.replace(/#{\s*key\s*}/g, copyKey); + } - //! moment.js locale configuration + function copy(text, options) { + var debug, + message, + reselectPrevious, + range, + selection, + mark, + success = false; + if (!options) { + options = {}; + } + debug = options.debug || false; + try { + reselectPrevious = deselectCurrent(); - /*jshint -W100*/ - var si = moment.defineLocale('si', { - months: 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split( - '_' - ), - monthsShort: 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split( - '_' - ), - weekdays: 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split( - '_' - ), - weekdaysShort: 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'), - weekdaysMin: 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'a h:mm', - LTS: 'a h:mm:ss', - L: 'YYYY/MM/DD', - LL: 'YYYY MMMM D', - LLL: 'YYYY MMMM D, a h:mm', - LLLL: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss', - }, - calendar: { - sameDay: '[අද] LT[ට]', - nextDay: '[හෙට] LT[ට]', - nextWeek: 'dddd LT[ට]', - lastDay: '[ඊයේ] LT[ට]', - lastWeek: '[පසුගිය] dddd LT[ට]', - sameElse: 'L', - }, - relativeTime: { - future: '%sකින්', - past: '%sකට පෙර', - s: 'තත්පර කිහිපය', - ss: 'තත්පර %d', - m: 'මිනිත්තුව', - mm: 'මිනිත්තු %d', - h: 'පැය', - hh: 'පැය %d', - d: 'දිනය', - dd: 'දින %d', - M: 'මාසය', - MM: 'මාස %d', - y: 'වසර', - yy: 'වසර %d', - }, - dayOfMonthOrdinalParse: /\d{1,2} වැනි/, - ordinal: function (number) { - return number + ' වැනි'; - }, - meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./, - isPM: function (input) { - return input === 'ප.ව.' || input === 'පස් වරු'; - }, - meridiem: function (hours, minutes, isLower) { - if (hours > 11) { - return isLower ? 'ප.ව.' : 'පස් වරු'; - } else { - return isLower ? 'පෙ.ව.' : 'පෙර වරු'; - } - }, + range = document.createRange(); + selection = document.getSelection(); + + mark = document.createElement("span"); + mark.textContent = text; + // reset user styles for span element + mark.style.all = "unset"; + // prevents scrolling to the end of the page + mark.style.position = "fixed"; + mark.style.top = 0; + mark.style.clip = "rect(0, 0, 0, 0)"; + // used to preserve spaces and line breaks + mark.style.whiteSpace = "pre"; + // do not inherit user-select (it may be `none`) + mark.style.webkitUserSelect = "text"; + mark.style.MozUserSelect = "text"; + mark.style.msUserSelect = "text"; + mark.style.userSelect = "text"; + mark.addEventListener("copy", function(e) { + e.stopPropagation(); + if (options.format) { + e.preventDefault(); + if (typeof e.clipboardData === "undefined") { // IE 11 + debug && console.warn("unable to use e.clipboardData"); + debug && console.warn("trying IE specific stuff"); + window.clipboardData.clearData(); + var format = clipboardToIE11Formatting[options.format] || clipboardToIE11Formatting["default"] + window.clipboardData.setData(format, text); + } else { // all other browsers + e.clipboardData.clearData(); + e.clipboardData.setData(options.format, text); + } + } + if (options.onCopy) { + e.preventDefault(); + options.onCopy(e.clipboardData); + } }); - return si; + document.body.appendChild(mark); - }))); + range.selectNodeContents(mark); + selection.addRange(range); + + var successful = document.execCommand("copy"); + if (!successful) { + throw new Error("copy command was unsuccessful"); + } + success = true; + } catch (err) { + debug && console.error("unable to copy using execCommand: ", err); + debug && console.warn("trying IE specific stuff"); + try { + window.clipboardData.setData(options.format || "text", text); + options.onCopy && options.onCopy(window.clipboardData); + success = true; + } catch (err) { + debug && console.error("unable to copy using clipboardData: ", err); + debug && console.error("falling back to prompt"); + message = format("message" in options ? options.message : defaultMessage); + window.prompt(message, text); + } + } finally { + if (selection) { + if (typeof selection.removeRange == "function") { + selection.removeRange(range); + } else { + selection.removeAllRanges(); + } + } + + if (mark) { + document.body.removeChild(mark); + } + reselectPrevious(); + } + + return success; + } + + module.exports = copy; /***/ }), - /* 436 */ + /* 279 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Slovak [sk] - //! author : Martin Minka : https://github.com/k2s - //! based on work of petrbela : https://github.com/petrbela + var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! + Copyright (c) 2017 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames + */ + /* global define */ - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + (function () { + 'use strict'; - //! moment.js locale configuration + var hasOwn = {}.hasOwnProperty; - var months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split( - '_' - ), - monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_'); - function plural(n) { - return n > 1 && n < 5; - } - function translate(number, withoutSuffix, key, isFuture) { - var result = number + ' '; - switch (key) { - case 's': // a few seconds / in a few seconds / a few seconds ago - return withoutSuffix || isFuture ? 'pár sekúnd' : 'pár sekundami'; - case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'sekundy' : 'sekúnd'); - } else { - return result + 'sekundami'; - } - case 'm': // a minute / in a minute / a minute ago - return withoutSuffix ? 'minúta' : isFuture ? 'minútu' : 'minútou'; - case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'minúty' : 'minút'); - } else { - return result + 'minútami'; - } - case 'h': // an hour / in an hour / an hour ago - return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou'; - case 'hh': // 9 hours / in 9 hours / 9 hours ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'hodiny' : 'hodín'); - } else { - return result + 'hodinami'; - } - case 'd': // a day / in a day / a day ago - return withoutSuffix || isFuture ? 'deň' : 'dňom'; - case 'dd': // 9 days / in 9 days / 9 days ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'dni' : 'dní'); - } else { - return result + 'dňami'; - } - case 'M': // a month / in a month / a month ago - return withoutSuffix || isFuture ? 'mesiac' : 'mesiacom'; - case 'MM': // 9 months / in 9 months / 9 months ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'mesiace' : 'mesiacov'); - } else { - return result + 'mesiacmi'; - } - case 'y': // a year / in a year / a year ago - return withoutSuffix || isFuture ? 'rok' : 'rokom'; - case 'yy': // 9 years / in 9 years / 9 years ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'roky' : 'rokov'); - } else { - return result + 'rokmi'; - } - } - } + function classNames () { + var classes = []; - var sk = moment.defineLocale('sk', { - months: months, - monthsShort: monthsShort, - weekdays: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'), - weekdaysShort: 'ne_po_ut_st_št_pi_so'.split('_'), - weekdaysMin: 'ne_po_ut_st_št_pi_so'.split('_'), - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd D. MMMM YYYY H:mm', - }, - calendar: { - sameDay: '[dnes o] LT', - nextDay: '[zajtra o] LT', - nextWeek: function () { - switch (this.day()) { - case 0: - return '[v nedeľu o] LT'; - case 1: - case 2: - return '[v] dddd [o] LT'; - case 3: - return '[v stredu o] LT'; - case 4: - return '[vo štvrtok o] LT'; - case 5: - return '[v piatok o] LT'; - case 6: - return '[v sobotu o] LT'; - } - }, - lastDay: '[včera o] LT', - lastWeek: function () { - switch (this.day()) { - case 0: - return '[minulú nedeľu o] LT'; - case 1: - case 2: - return '[minulý] dddd [o] LT'; - case 3: - return '[minulú stredu o] LT'; - case 4: - case 5: - return '[minulý] dddd [o] LT'; - case 6: - return '[minulú sobotu o] LT'; - } - }, - sameElse: 'L', - }, - relativeTime: { - future: 'za %s', - past: 'pred %s', - s: translate, - ss: translate, - m: translate, - mm: translate, - h: translate, - hh: translate, - d: translate, - dd: translate, - M: translate, - MM: translate, - y: translate, - yy: translate, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + for (var i = 0; i < arguments.length; i++) { + var arg = arguments[i]; + if (!arg) continue; - return sk; + var argType = typeof arg; - }))); + if (argType === 'string' || argType === 'number') { + classes.push(arg); + } else if (Array.isArray(arg) && arg.length) { + var inner = classNames.apply(null, arg); + if (inner) { + classes.push(inner); + } + } else if (argType === 'object') { + for (var key in arg) { + if (hasOwn.call(arg, key) && arg[key]) { + classes.push(key); + } + } + } + } + + return classes.join(' '); + } + + if (typeof module !== 'undefined' && module.exports) { + classNames.default = classNames; + module.exports = classNames; + } else if (true) { + // register as 'classnames', consistent with npm package name + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () { + return classNames; + }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), + __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + } else { + window.classNames = classNames; + } + }()); /***/ }), - /* 437 */ + /* 280 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Slovenian [sl] - //! author : Robert Sedovšek : https://github.com/sedovsek + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration + exports.__esModule = true; + /** + * This source code is quoted from rc-util. + * homepage: https://github.com/react-component/util + */ + function createChainedFunction() { + for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) { + funcs[_key] = arguments[_key]; + } - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var result = number + ' '; - switch (key) { - case 's': - return withoutSuffix || isFuture - ? 'nekaj sekund' - : 'nekaj sekundami'; - case 'ss': - if (number === 1) { - result += withoutSuffix ? 'sekundo' : 'sekundi'; - } else if (number === 2) { - result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah'; - } else if (number < 5) { - result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah'; - } else { - result += 'sekund'; - } - return result; - case 'm': - return withoutSuffix ? 'ena minuta' : 'eno minuto'; - case 'mm': - if (number === 1) { - result += withoutSuffix ? 'minuta' : 'minuto'; - } else if (number === 2) { - result += withoutSuffix || isFuture ? 'minuti' : 'minutama'; - } else if (number < 5) { - result += withoutSuffix || isFuture ? 'minute' : 'minutami'; - } else { - result += withoutSuffix || isFuture ? 'minut' : 'minutami'; - } - return result; - case 'h': - return withoutSuffix ? 'ena ura' : 'eno uro'; - case 'hh': - if (number === 1) { - result += withoutSuffix ? 'ura' : 'uro'; - } else if (number === 2) { - result += withoutSuffix || isFuture ? 'uri' : 'urama'; - } else if (number < 5) { - result += withoutSuffix || isFuture ? 'ure' : 'urami'; - } else { - result += withoutSuffix || isFuture ? 'ur' : 'urami'; - } - return result; - case 'd': - return withoutSuffix || isFuture ? 'en dan' : 'enim dnem'; - case 'dd': - if (number === 1) { - result += withoutSuffix || isFuture ? 'dan' : 'dnem'; - } else if (number === 2) { - result += withoutSuffix || isFuture ? 'dni' : 'dnevoma'; - } else { - result += withoutSuffix || isFuture ? 'dni' : 'dnevi'; - } - return result; - case 'M': - return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem'; - case 'MM': - if (number === 1) { - result += withoutSuffix || isFuture ? 'mesec' : 'mesecem'; - } else if (number === 2) { - result += withoutSuffix || isFuture ? 'meseca' : 'mesecema'; - } else if (number < 5) { - result += withoutSuffix || isFuture ? 'mesece' : 'meseci'; - } else { - result += withoutSuffix || isFuture ? 'mesecev' : 'meseci'; - } - return result; - case 'y': - return withoutSuffix || isFuture ? 'eno leto' : 'enim letom'; - case 'yy': - if (number === 1) { - result += withoutSuffix || isFuture ? 'leto' : 'letom'; - } else if (number === 2) { - result += withoutSuffix || isFuture ? 'leti' : 'letoma'; - } else if (number < 5) { - result += withoutSuffix || isFuture ? 'leta' : 'leti'; - } else { - result += withoutSuffix || isFuture ? 'let' : 'leti'; - } - return result; - } + return funcs.filter(function (f) { + return f != null; + }).reduce(function (acc, f) { + if (typeof f !== 'function') { + throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.'); } - var sl = moment.defineLocale('sl', { - months: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split( - '_' - ), - monthsShort: 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'), - weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'), - weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD. MM. YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd, D. MMMM YYYY H:mm', - }, - calendar: { - sameDay: '[danes ob] LT', - nextDay: '[jutri ob] LT', + if (acc === null) { + return f; + } - nextWeek: function () { - switch (this.day()) { - case 0: - return '[v] [nedeljo] [ob] LT'; - case 3: - return '[v] [sredo] [ob] LT'; - case 6: - return '[v] [soboto] [ob] LT'; - case 1: - case 2: - case 4: - case 5: - return '[v] dddd [ob] LT'; - } - }, - lastDay: '[včeraj ob] LT', - lastWeek: function () { - switch (this.day()) { - case 0: - return '[prejšnjo] [nedeljo] [ob] LT'; - case 3: - return '[prejšnjo] [sredo] [ob] LT'; - case 6: - return '[prejšnjo] [soboto] [ob] LT'; - case 1: - case 2: - case 4: - case 5: - return '[prejšnji] dddd [ob] LT'; - } - }, - sameElse: 'L', - }, - relativeTime: { - future: 'čez %s', - past: 'pred %s', - s: processRelativeTime, - ss: processRelativeTime, - m: processRelativeTime, - mm: processRelativeTime, - h: processRelativeTime, - hh: processRelativeTime, - d: processRelativeTime, - dd: processRelativeTime, - M: processRelativeTime, - MM: processRelativeTime, - y: processRelativeTime, - yy: processRelativeTime, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); + return function chainedFunction() { + for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + args[_key2] = arguments[_key2]; + } + + acc.apply(this, args); + f.apply(this, args); + }; + }, null); + } + exports.default = createChainedFunction; - return sl; + /***/ }), + /* 281 */ + /***/ (function(module, exports, __webpack_require__) { - }))); + "use strict"; - /***/ }), - /* 438 */ - /***/ (function(module, exports, __webpack_require__) { + exports.__esModule = true; + exports.default = addEventListenerWrap; - //! moment.js locale configuration - //! locale : Albanian [sq] - //! author : Flakërim Ismani : https://github.com/flakerimi - //! author : Menelion Elensúle : https://github.com/Oire - //! author : Oerd Cukalla : https://github.com/oerd + var _addDomEventListener = __webpack_require__(16); - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener); - //! moment.js locale configuration + var _reactDom = __webpack_require__(3); - var sq = moment.defineLocale('sq', { - months: 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split( - '_' - ), - monthsShort: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'), - weekdays: 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split( - '_' - ), - weekdaysShort: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'), - weekdaysMin: 'D_H_Ma_Më_E_P_Sh'.split('_'), - weekdaysParseExact: true, - meridiemParse: /PD|MD/, - isPM: function (input) { - return input.charAt(0) === 'M'; - }, - meridiem: function (hours, minutes, isLower) { - return hours < 12 ? 'PD' : 'MD'; - }, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Sot në] LT', - nextDay: '[Nesër në] LT', - nextWeek: 'dddd [në] LT', - lastDay: '[Dje në] LT', - lastWeek: 'dddd [e kaluar në] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'në %s', - past: '%s më parë', - s: 'disa sekonda', - ss: '%d sekonda', - m: 'një minutë', - mm: '%d minuta', - h: 'një orë', - hh: '%d orë', - d: 'një ditë', - dd: '%d ditë', - M: 'një muaj', - MM: '%d muaj', - y: 'një vit', - yy: '%d vite', - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var _reactDom2 = _interopRequireDefault(_reactDom); - return sq; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - }))); + /** + * This source code is quoted from rc-util. + * homepage: https://github.com/react-component/util + */ + function addEventListenerWrap(target, eventType, cb) { + /* eslint camelcase: 2 */ + var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) { + _reactDom2.default.unstable_batchedUpdates(cb, e); + } : cb; + return (0, _addDomEventListener2.default)(target, eventType, callback); + } + + /***/ }), + /* 282 */ + /***/ (function(module, exports, __webpack_require__) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + var util = { + isAppearSupported: function isAppearSupported(props) { + return props.transitionName && props.transitionAppear || props.animation.appear; + }, + isEnterSupported: function isEnterSupported(props) { + return props.transitionName && props.transitionEnter || props.animation.enter; + }, + isLeaveSupported: function isLeaveSupported(props) { + return props.transitionName && props.transitionLeave || props.animation.leave; + }, + allowAppearCallback: function allowAppearCallback(props) { + return props.transitionAppear || props.animation.appear; + }, + allowEnterCallback: function allowEnterCallback(props) { + return props.transitionEnter || props.animation.enter; + }, + allowLeaveCallback: function allowLeaveCallback(props) { + return props.transitionLeave || props.animation.leave; + } + }; + exports["default"] = util; + module.exports = exports["default"]; + /***/ }), - /* 439 */ + /* 283 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Serbian [sr] - //! author : Milan Janačković : https://github.com/milan-j + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration + Object.defineProperty(exports, "__esModule", { + value: true + }); - var translator = { - words: { - //Different grammatical cases - ss: ['sekunda', 'sekunde', 'sekundi'], - m: ['jedan minut', 'jedne minute'], - mm: ['minut', 'minute', 'minuta'], - h: ['jedan sat', 'jednog sata'], - hh: ['sat', 'sata', 'sati'], - dd: ['dan', 'dana', 'dana'], - MM: ['mesec', 'meseca', 'meseci'], - yy: ['godina', 'godine', 'godina'], - }, - correctGrammaticalCase: function (number, wordKey) { - return number === 1 - ? wordKey[0] - : number >= 2 && number <= 4 - ? wordKey[1] - : wordKey[2]; - }, - translate: function (number, withoutSuffix, key) { - var wordKey = translator.words[key]; - if (key.length === 1) { - return withoutSuffix ? wordKey[0] : wordKey[1]; - } else { - return ( - number + - ' ' + - translator.correctGrammaticalCase(number, wordKey) - ); - } - }, - }; + var _react = __webpack_require__(0); - var sr = moment.defineLocale('sr', { - months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split( - '_' - ), - monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split( - '_' - ), - weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'), - weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd, D. MMMM YYYY H:mm', - }, - calendar: { - sameDay: '[danas u] LT', - nextDay: '[sutra u] LT', - nextWeek: function () { - switch (this.day()) { - case 0: - return '[u] [nedelju] [u] LT'; - case 3: - return '[u] [sredu] [u] LT'; - case 6: - return '[u] [subotu] [u] LT'; - case 1: - case 2: - case 4: - case 5: - return '[u] dddd [u] LT'; - } - }, - lastDay: '[juče u] LT', - lastWeek: function () { - var lastWeekDays = [ - '[prošle] [nedelje] [u] LT', - '[prošlog] [ponedeljka] [u] LT', - '[prošlog] [utorka] [u] LT', - '[prošle] [srede] [u] LT', - '[prošlog] [četvrtka] [u] LT', - '[prošlog] [petka] [u] LT', - '[prošle] [subote] [u] LT', - ]; - return lastWeekDays[this.day()]; - }, - sameElse: 'L', - }, - relativeTime: { - future: 'za %s', - past: 'pre %s', - s: 'nekoliko sekundi', - ss: translator.translate, - m: translator.translate, - mm: translator.translate, - h: translator.translate, - hh: translator.translate, - d: 'dan', - dd: translator.translate, - M: 'mesec', - MM: translator.translate, - y: 'godinu', - yy: translator.translate, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); + var _react2 = _interopRequireDefault(_react); - return sr; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - }))); + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + + var AdvancedContainer = function (_React$Component) { + _inherits(AdvancedContainer, _React$Component); + + function AdvancedContainer() { + _classCallCheck(this, AdvancedContainer); + + return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); + } + + AdvancedContainer.prototype.render = function render() { + return this.props.children; + }; + return AdvancedContainer; + }(_react2["default"].Component); + + AdvancedContainer.show = true; + exports["default"] = AdvancedContainer; + module.exports = exports['default']; /***/ }), - /* 440 */ + /* 284 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Serbian Cyrillic [sr-cyrl] - //! author : Milan Janačković : https://github.com/milan-j + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration + Object.defineProperty(exports, "__esModule", { + value: true + }); - var translator = { - words: { - //Different grammatical cases - ss: ['секунда', 'секунде', 'секунди'], - m: ['један минут', 'једне минуте'], - mm: ['минут', 'минуте', 'минута'], - h: ['један сат', 'једног сата'], - hh: ['сат', 'сата', 'сати'], - dd: ['дан', 'дана', 'дана'], - MM: ['месец', 'месеца', 'месеци'], - yy: ['година', 'године', 'година'], - }, - correctGrammaticalCase: function (number, wordKey) { - return number === 1 - ? wordKey[0] - : number >= 2 && number <= 4 - ? wordKey[1] - : wordKey[2]; - }, - translate: function (number, withoutSuffix, key) { - var wordKey = translator.words[key]; - if (key.length === 1) { - return withoutSuffix ? wordKey[0] : wordKey[1]; - } else { - return ( - number + - ' ' + - translator.correctGrammaticalCase(number, wordKey) - ); - } - }, - }; + var _react = __webpack_require__(0); - var srCyrl = moment.defineLocale('sr-cyrl', { - months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split( - '_' - ), - monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'), - weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'), - weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd, D. MMMM YYYY H:mm', - }, - calendar: { - sameDay: '[данас у] LT', - nextDay: '[сутра у] LT', - nextWeek: function () { - switch (this.day()) { - case 0: - return '[у] [недељу] [у] LT'; - case 3: - return '[у] [среду] [у] LT'; - case 6: - return '[у] [суботу] [у] LT'; - case 1: - case 2: - case 4: - case 5: - return '[у] dddd [у] LT'; - } - }, - lastDay: '[јуче у] LT', - lastWeek: function () { - var lastWeekDays = [ - '[прошле] [недеље] [у] LT', - '[прошлог] [понедељка] [у] LT', - '[прошлог] [уторка] [у] LT', - '[прошле] [среде] [у] LT', - '[прошлог] [четвртка] [у] LT', - '[прошлог] [петка] [у] LT', - '[прошле] [суботе] [у] LT', - ]; - return lastWeekDays[this.day()]; - }, - sameElse: 'L', - }, - relativeTime: { - future: 'за %s', - past: 'пре %s', - s: 'неколико секунди', - ss: translator.translate, - m: translator.translate, - mm: translator.translate, - h: translator.translate, - hh: translator.translate, - d: 'дан', - dd: translator.translate, - M: 'месец', - MM: translator.translate, - y: 'годину', - yy: translator.translate, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); + var _react2 = _interopRequireDefault(_react); - return srCyrl; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - }))); + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - /***/ }), - /* 441 */ - /***/ (function(module, exports, __webpack_require__) { + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - //! moment.js locale configuration - //! locale : siSwati [ss] - //! author : Nicolai Davies : https://github.com/nicolaidavies + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var HeadContainer = function (_React$Component) { + _inherits(HeadContainer, _React$Component); - //! moment.js locale configuration + function HeadContainer() { + _classCallCheck(this, HeadContainer); - var ss = moment.defineLocale('ss', { - months: "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split( - '_' - ), - monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'), - weekdays: 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split( - '_' - ), - weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'), - weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY h:mm A', - LLLL: 'dddd, D MMMM YYYY h:mm A', - }, - calendar: { - sameDay: '[Namuhla nga] LT', - nextDay: '[Kusasa nga] LT', - nextWeek: 'dddd [nga] LT', - lastDay: '[Itolo nga] LT', - lastWeek: 'dddd [leliphelile] [nga] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'nga %s', - past: 'wenteka nga %s', - s: 'emizuzwana lomcane', - ss: '%d mzuzwana', - m: 'umzuzu', - mm: '%d emizuzu', - h: 'lihora', - hh: '%d emahora', - d: 'lilanga', - dd: '%d emalanga', - M: 'inyanga', - MM: '%d tinyanga', - y: 'umnyaka', - yy: '%d iminyaka', - }, - meridiemParse: /ekuseni|emini|entsambama|ebusuku/, - meridiem: function (hours, minutes, isLower) { - if (hours < 11) { - return 'ekuseni'; - } else if (hours < 15) { - return 'emini'; - } else if (hours < 19) { - return 'entsambama'; - } else { - return 'ebusuku'; - } - }, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'ekuseni') { - return hour; - } else if (meridiem === 'emini') { - return hour >= 11 ? hour : hour + 12; - } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') { - if (hour === 0) { - return 0; - } - return hour + 12; - } - }, - dayOfMonthOrdinalParse: /\d{1,2}/, - ordinal: '%d', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); + } - return ss; + HeadContainer.prototype.render = function render() { + var _props = this.props, + children = _props.children, + clsPrefix = _props.clsPrefix, + _className = _props.className; - }))); + var ht = children ? _react2["default"].createElement( + 'div', + null, + children + ) : null; + return ht; + }; + + return HeadContainer; + }(_react2["default"].Component); + exports["default"] = HeadContainer; + module.exports = exports['default']; /***/ }), - /* 442 */ + /* 285 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Swedish [sv] - //! author : Jens Alm : https://github.com/ulmus + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.Fade = exports.Collapse = exports.Transition = undefined; - var sv = moment.defineLocale('sv', { - months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split( - '_' - ), - monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'), - weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'), - weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'), - weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY-MM-DD', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY [kl.] HH:mm', - LLLL: 'dddd D MMMM YYYY [kl.] HH:mm', - lll: 'D MMM YYYY HH:mm', - llll: 'ddd D MMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Idag] LT', - nextDay: '[Imorgon] LT', - lastDay: '[Igår] LT', - nextWeek: '[På] dddd LT', - lastWeek: '[I] dddd[s] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'om %s', - past: 'för %s sedan', - s: 'några sekunder', - ss: '%d sekunder', - m: 'en minut', - mm: '%d minuter', - h: 'en timme', - hh: '%d timmar', - d: 'en dag', - dd: '%d dagar', - M: 'en månad', - MM: '%d månader', - y: 'ett år', - yy: '%d år', - }, - dayOfMonthOrdinalParse: /\d{1,2}(\:e|\:a)/, - ordinal: function (number) { - var b = number % 10, - output = - ~~((number % 100) / 10) === 1 - ? ':e' - : b === 1 - ? ':a' - : b === 2 - ? ':a' - : b === 3 - ? ':e' - : ':e'; - return number + output; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var _Transition2 = __webpack_require__(158); - return sv; + var _Transition3 = _interopRequireDefault(_Transition2); - }))); + var _Collapse2 = __webpack_require__(286); + + var _Collapse3 = _interopRequireDefault(_Collapse2); + var _Fade2 = __webpack_require__(986); + + var _Fade3 = _interopRequireDefault(_Fade2); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + + exports.Transition = _Transition3["default"]; + exports.Collapse = _Collapse3["default"]; + exports.Fade = _Fade3["default"]; /***/ }), - /* 443 */ + /* 286 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Swahili [sw] - //! author : Fahad Kassim : https://github.com/fadsel + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration + Object.defineProperty(exports, "__esModule", { + value: true + }); - var sw = moment.defineLocale('sw', { - months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'), - weekdays: 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split( - '_' - ), - weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'), - weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[leo saa] LT', - nextDay: '[kesho saa] LT', - nextWeek: '[wiki ijayo] dddd [saat] LT', - lastDay: '[jana] LT', - lastWeek: '[wiki iliyopita] dddd [saat] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s baadaye', - past: 'tokea %s', - s: 'hivi punde', - ss: 'sekunde %d', - m: 'dakika moja', - mm: 'dakika %d', - h: 'saa limoja', - hh: 'masaa %d', - d: 'siku moja', - dd: 'masiku %d', - M: 'mwezi mmoja', - MM: 'miezi %d', - y: 'mwaka mmoja', - yy: 'miaka %d', - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - return sw; + var _classnames = __webpack_require__(2); - }))); + var _classnames2 = _interopRequireDefault(_classnames); + var _style = __webpack_require__(32); - /***/ }), - /* 444 */ - /***/ (function(module, exports, __webpack_require__) { + var _style2 = _interopRequireDefault(_style); - //! moment.js locale configuration - //! locale : Tamil [ta] - //! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404 + var _react = __webpack_require__(0); - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _react2 = _interopRequireDefault(_react); - //! moment.js locale configuration + var _propTypes = __webpack_require__(1); - var symbolMap = { - '1': '௧', - '2': '௨', - '3': '௩', - '4': '௪', - '5': '௫', - '6': '௬', - '7': '௭', - '8': '௮', - '9': '௯', - '0': '௦', - }, - numberMap = { - '௧': '1', - '௨': '2', - '௩': '3', - '௪': '4', - '௫': '5', - '௬': '6', - '௭': '7', - '௮': '8', - '௯': '9', - '௦': '0', - }; + var _propTypes2 = _interopRequireDefault(_propTypes); - var ta = moment.defineLocale('ta', { - months: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split( - '_' - ), - monthsShort: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split( - '_' - ), - weekdays: 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split( - '_' - ), - weekdaysShort: 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split( - '_' - ), - weekdaysMin: 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, HH:mm', - LLLL: 'dddd, D MMMM YYYY, HH:mm', - }, - calendar: { - sameDay: '[இன்று] LT', - nextDay: '[நாளை] LT', - nextWeek: 'dddd, LT', - lastDay: '[நேற்று] LT', - lastWeek: '[கடந்த வாரம்] dddd, LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s இல்', - past: '%s முன்', - s: 'ஒரு சில விநாடிகள்', - ss: '%d விநாடிகள்', - m: 'ஒரு நிமிடம்', - mm: '%d நிமிடங்கள்', - h: 'ஒரு மணி நேரம்', - hh: '%d மணி நேரம்', - d: 'ஒரு நாள்', - dd: '%d நாட்கள்', - M: 'ஒரு மாதம்', - MM: '%d மாதங்கள்', - y: 'ஒரு வருடம்', - yy: '%d ஆண்டுகள்', - }, - dayOfMonthOrdinalParse: /\d{1,2}வது/, - ordinal: function (number) { - return number + 'வது'; - }, - preparse: function (string) { - return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - // refer http://ta.wikipedia.org/s/1er1 - meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/, - meridiem: function (hour, minute, isLower) { - if (hour < 2) { - return ' யாமம்'; - } else if (hour < 6) { - return ' வைகறை'; // வைகறை - } else if (hour < 10) { - return ' காலை'; // காலை - } else if (hour < 14) { - return ' நண்பகல்'; // நண்பகல் - } else if (hour < 18) { - return ' எற்பாடு'; // எற்பாடு - } else if (hour < 22) { - return ' மாலை'; // மாலை - } else { - return ' யாமம்'; - } - }, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'யாமம்') { - return hour < 2 ? hour : hour + 12; - } else if (meridiem === 'வைகறை' || meridiem === 'காலை') { - return hour; - } else if (meridiem === 'நண்பகல்') { - return hour >= 10 ? hour : hour + 12; - } else { - return hour + 12; - } - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }, - }); + var _Transition = __webpack_require__(158); + + var _Transition2 = _interopRequireDefault(_Transition); + + var _capitalize = __webpack_require__(971); + + var _capitalize2 = _interopRequireDefault(_capitalize); + + var _tinperBeeCore = __webpack_require__(972); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + + var MARGINS = { + height: ['marginTop', 'marginBottom'], + width: ['marginLeft', 'marginRight'] + }; + + // reading a dimension prop will cause the browser to recalculate, + // which will let our animations work + function triggerBrowserReflow(node) { + node.offsetHeight; // eslint-disable-line no-unused-expressions + } + + function getDimensionValue(dimension, elem) { + var value = elem['offset' + (0, _capitalize2["default"])(dimension)]; + var margins = MARGINS[dimension]; + + return value + parseInt((0, _style2["default"])(elem, margins[0]), 10) + parseInt((0, _style2["default"])(elem, margins[1]), 10); + } + + var propTypes = { + /** + * Show the component; triggers the expand or collapse animation + */ + "in": _propTypes2["default"].bool, + + /** + * Unmount the component (remove it from the DOM) when it is collapsed + */ + unmountOnExit: _propTypes2["default"].bool, + + /** + * Run the expand animation when the component mounts, if it is initially + * shown + */ + transitionAppear: _propTypes2["default"].bool, + + /** + * Duration of the collapse animation in milliseconds, to ensure that + * finishing callbacks are fired even if the original browser transition end + * events are canceled + */ + timeout: _propTypes2["default"].number, + + /** + * Callback fired before the component expands + */ + onEnter: _propTypes2["default"].func, + /** + * Callback fired after the component starts to expand + */ + onEntering: _propTypes2["default"].func, + /** + * Callback fired after the component has expanded + */ + onEntered: _propTypes2["default"].func, + /** + * Callback fired before the component collapses + */ + onExit: _propTypes2["default"].func, + /** + * Callback fired after the component starts to collapse + */ + onExiting: _propTypes2["default"].func, + /** + * Callback fired after the component has collapsed + */ + onExited: _propTypes2["default"].func, + + /** + * The dimension used when collapsing, or a function that returns the + * dimension + * + * _Note: Bootstrap only partially supports 'width'! + * You will need to supply your own CSS animation for the `.width` CSS class._ + */ + dimension: _propTypes2["default"].oneOfType([_propTypes2["default"].oneOf(['height', 'width']), _propTypes2["default"].func]), + + /** + * Function that returns the height or width of the animating DOM node + * + * Allows for providing some custom logic for how much the Collapse component + * should animate in its specified dimension. Called with the current + * dimension prop value and the DOM node. + */ + getDimensionValue: _propTypes2["default"].func, + + /** + * ARIA role of collapsible element + */ + role: _propTypes2["default"].string + }; + + var defaultProps = { + "in": false, + timeout: 300, + unmountOnExit: false, + transitionAppear: false, + + dimension: 'height', + getDimensionValue: getDimensionValue + }; + + var Collapse = function (_React$Component) { + _inherits(Collapse, _React$Component); + + function Collapse(props, context) { + _classCallCheck(this, Collapse); + + var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context)); + + _this.handleEnter = _this.handleEnter.bind(_this); + _this.handleEntering = _this.handleEntering.bind(_this); + _this.handleEntered = _this.handleEntered.bind(_this); + _this.handleExit = _this.handleExit.bind(_this); + _this.handleExiting = _this.handleExiting.bind(_this); + return _this; + } + + /* -- Expanding -- */ + + + Collapse.prototype.handleEnter = function handleEnter(elem) { + var dimension = this._dimension(); + elem.style[dimension] = '0'; + }; + + Collapse.prototype.handleEntering = function handleEntering(elem) { + var dimension = this._dimension(); + elem.style[dimension] = this._getScrollDimensionValue(elem, dimension); + }; + + Collapse.prototype.handleEntered = function handleEntered(elem) { + var dimension = this._dimension(); + elem.style[dimension] = null; + }; + + /* -- Collapsing -- */ + + + Collapse.prototype.handleExit = function handleExit(elem) { + var dimension = this._dimension(); + elem.style[dimension] = this.props.getDimensionValue(dimension, elem) + 'px'; + triggerBrowserReflow(elem); + }; + + Collapse.prototype.handleExiting = function handleExiting(elem) { + var dimension = this._dimension(); + elem.style[dimension] = '0'; + }; + + Collapse.prototype._dimension = function _dimension() { + return typeof this.props.dimension === 'function' ? this.props.dimension() : this.props.dimension; + }; + + // for testing + + + Collapse.prototype._getScrollDimensionValue = function _getScrollDimensionValue(elem, dimension) { + return elem['scroll' + (0, _capitalize2["default"])(dimension)] + 'px'; + }; + + Collapse.prototype.render = function render() { + var _props = this.props, + onEnter = _props.onEnter, + onEntering = _props.onEntering, + onEntered = _props.onEntered, + onExit = _props.onExit, + onExiting = _props.onExiting, + className = _props.className, + props = _objectWithoutProperties(_props, ['onEnter', 'onEntering', 'onEntered', 'onExit', 'onExiting', 'className']); + + delete props.dimension; + delete props.getDimensionValue; + + var handleEnter = (0, _tinperBeeCore.createChainedFunction)(this.handleEnter, onEnter); + var handleEntering = (0, _tinperBeeCore.createChainedFunction)(this.handleEntering, onEntering); + var handleEntered = (0, _tinperBeeCore.createChainedFunction)(this.handleEntered, onEntered); + var handleExit = (0, _tinperBeeCore.createChainedFunction)(this.handleExit, onExit); + var handleExiting = (0, _tinperBeeCore.createChainedFunction)(this.handleExiting, onExiting); - return ta; + var classes = { + width: this._dimension() === 'width' + }; - }))); + return _react2["default"].createElement(_Transition2["default"], _extends({}, props, { + 'aria-expanded': props.role ? props["in"] : null, + className: (0, _classnames2["default"])(className, classes), + exitedClassName: 'collapse', + exitingClassName: 'collapsing', + enteredClassName: 'collapse in', + enteringClassName: 'collapsing', + onEnter: handleEnter, + onEntering: handleEntering, + onEntered: handleEntered, + onExit: handleExit, + onExiting: handleExiting + })); + }; + return Collapse; + }(_react2["default"].Component); + + Collapse.propTypes = propTypes; + Collapse.defaultProps = defaultProps; + + exports["default"] = Collapse; + module.exports = exports['default']; /***/ }), - /* 445 */ + /* 287 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Telugu [te] - //! author : Krishna Chaitanya Thota : https://github.com/kcthota + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration + exports.__esModule = true; + exports.default = addEventListenerWrap; - var te = moment.defineLocale('te', { - months: 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split( - '_' - ), - monthsShort: 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split( - '_' - ), - weekdaysShort: 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'), - weekdaysMin: 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'), - longDateFormat: { - LT: 'A h:mm', - LTS: 'A h:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm', - LLLL: 'dddd, D MMMM YYYY, A h:mm', - }, - calendar: { - sameDay: '[నేడు] LT', - nextDay: '[రేపు] LT', - nextWeek: 'dddd, LT', - lastDay: '[నిన్న] LT', - lastWeek: '[గత] dddd, LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s లో', - past: '%s క్రితం', - s: 'కొన్ని క్షణాలు', - ss: '%d సెకన్లు', - m: 'ఒక నిమిషం', - mm: '%d నిమిషాలు', - h: 'ఒక గంట', - hh: '%d గంటలు', - d: 'ఒక రోజు', - dd: '%d రోజులు', - M: 'ఒక నెల', - MM: '%d నెలలు', - y: 'ఒక సంవత్సరం', - yy: '%d సంవత్సరాలు', - }, - dayOfMonthOrdinalParse: /\d{1,2}వ/, - ordinal: '%dవ', - meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'రాత్రి') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'ఉదయం') { - return hour; - } else if (meridiem === 'మధ్యాహ్నం') { - return hour >= 10 ? hour : hour + 12; - } else if (meridiem === 'సాయంత్రం') { - return hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'రాత్రి'; - } else if (hour < 10) { - return 'ఉదయం'; - } else if (hour < 17) { - return 'మధ్యాహ్నం'; - } else if (hour < 20) { - return 'సాయంత్రం'; - } else { - return 'రాత్రి'; - } - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }, - }); + var _addDomEventListener = __webpack_require__(16); - return te; + var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener); - }))); + var _reactDom = __webpack_require__(3); + + var _reactDom2 = _interopRequireDefault(_reactDom); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + /** + * This source code is quoted from rc-util. + * homepage: https://github.com/react-component/util + */ + function addEventListenerWrap(target, eventType, cb) { + /* eslint camelcase: 2 */ + var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) { + _reactDom2.default.unstable_batchedUpdates(cb, e); + } : cb; + return (0, _addDomEventListener2.default)(target, eventType, callback); + } /***/ }), - /* 446 */ + /* 288 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Tetun Dili (East Timor) [tet] - //! author : Joshua Brooks : https://github.com/joshbrooks - //! author : Onorio De J. Afonso : https://github.com/marobo - //! author : Sonia Simoes : https://github.com/soniasimoes + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration + exports.__esModule = true; + exports.default = createChainableTypeChecker; + /** + * Copyright 2013-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ - var tet = moment.defineLocale('tet', { - months: 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split( - '_' - ), - monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'), - weekdays: 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split('_'), - weekdaysShort: 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'), - weekdaysMin: 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Ohin iha] LT', - nextDay: '[Aban iha] LT', - nextWeek: 'dddd [iha] LT', - lastDay: '[Horiseik iha] LT', - lastWeek: 'dddd [semana kotuk] [iha] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'iha %s', - past: '%s liuba', - s: 'segundu balun', - ss: 'segundu %d', - m: 'minutu ida', - mm: 'minutu %d', - h: 'oras ida', - hh: 'oras %d', - d: 'loron ida', - dd: 'loron %d', - M: 'fulan ida', - MM: 'fulan %d', - y: 'tinan ida', - yy: 'tinan %d', - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal: function (number) { - var b = number % 10, - output = - ~~((number % 100) / 10) === 1 - ? 'th' - : b === 1 - ? 'st' - : b === 2 - ? 'nd' - : b === 3 - ? 'rd' - : 'th'; - return number + output; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + // Mostly taken from ReactPropTypes. - return tet; + /* This source code is quoted from rc-util. + * homepage: https://github.com/react-component/util + */ - }))); + function createChainableTypeChecker(validate) { + function checkType(isRequired, props, propName, componentName, location, propFullName) { + var componentNameSafe = componentName || '<>'; + var propFullNameSafe = propFullName || propName; + + if (props[propName] == null) { + if (isRequired) { + return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); + } + + return null; + } + + for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { + args[_key - 6] = arguments[_key]; + } + + return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); + } + + var chainedCheckType = checkType.bind(null, false); + chainedCheckType.isRequired = checkType.bind(null, true); + return chainedCheckType; + } /***/ }), - /* 447 */ + /* 289 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Tajik [tg] - //! author : Orif N. Jr. : https://github.com/orif-jr + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.SubPopupMenu = undefined; - var suffixes = { - 0: '-ум', - 1: '-ум', - 2: '-юм', - 3: '-юм', - 4: '-ум', - 5: '-ум', - 6: '-ум', - 7: '-ум', - 8: '-ум', - 9: '-ум', - 10: '-ум', - 12: '-ум', - 13: '-ум', - 20: '-ум', - 30: '-юм', - 40: '-ум', - 50: '-ум', - 60: '-ум', - 70: '-ум', - 80: '-ум', - 90: '-ум', - 100: '-ум', - }; + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; /** + * This source code is quoted from rc-menu. + * homepage: https://github.com/react-component/menu + */ - var tg = moment.defineLocale('tg', { - months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split( - '_' - ), - monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'), - weekdays: 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split( - '_' - ), - weekdaysShort: 'яшб_дшб_сшб_чшб_пшб_ҷум_шнб'.split('_'), - weekdaysMin: 'яш_дш_сш_чш_пш_ҷм_шб'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Имрӯз соати] LT', - nextDay: '[Пагоҳ соати] LT', - lastDay: '[Дирӯз соати] LT', - nextWeek: 'dddd[и] [ҳафтаи оянда соати] LT', - lastWeek: 'dddd[и] [ҳафтаи гузашта соати] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'баъди %s', - past: '%s пеш', - s: 'якчанд сония', - m: 'як дақиқа', - mm: '%d дақиқа', - h: 'як соат', - hh: '%d соат', - d: 'як рӯз', - dd: '%d рӯз', - M: 'як моҳ', - MM: '%d моҳ', - y: 'як сол', - yy: '%d сол', - }, - meridiemParse: /шаб|субҳ|рӯз|бегоҳ/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'шаб') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'субҳ') { - return hour; - } else if (meridiem === 'рӯз') { - return hour >= 11 ? hour : hour + 12; - } else if (meridiem === 'бегоҳ') { - return hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'шаб'; - } else if (hour < 11) { - return 'субҳ'; - } else if (hour < 16) { - return 'рӯз'; - } else if (hour < 19) { - return 'бегоҳ'; - } else { - return 'шаб'; - } - }, - dayOfMonthOrdinalParse: /\d{1,2}-(ум|юм)/, - ordinal: function (number) { - var a = number % 10, - b = number >= 100 ? 100 : null; - return number + (suffixes[number] || suffixes[a] || suffixes[b]); - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 1th is the first week of the year. - }, - }); - return tg; + exports.getActiveKey = getActiveKey; + exports.saveRef = saveRef; - }))); + var _react = __webpack_require__(0); + var _react2 = _interopRequireDefault(_react); - /***/ }), - /* 448 */ - /***/ (function(module, exports, __webpack_require__) { + var _propTypes = __webpack_require__(1); - //! moment.js locale configuration - //! locale : Thai [th] - //! author : Kridsada Thanabulpong : https://github.com/sirn + var _propTypes2 = _interopRequireDefault(_propTypes); - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _miniStore = __webpack_require__(22); - //! moment.js locale configuration + var _tinperBeeCore = __webpack_require__(6); - var th = moment.defineLocale('th', { - months: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split( - '_' - ), - monthsShort: 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'), - weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference - weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY เวลา H:mm', - LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm', - }, - meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/, - isPM: function (input) { - return input === 'หลังเที่ยง'; - }, - meridiem: function (hour, minute, isLower) { - if (hour < 12) { - return 'ก่อนเที่ยง'; - } else { - return 'หลังเที่ยง'; - } - }, - calendar: { - sameDay: '[วันนี้ เวลา] LT', - nextDay: '[พรุ่งนี้ เวลา] LT', - nextWeek: 'dddd[หน้า เวลา] LT', - lastDay: '[เมื่อวานนี้ เวลา] LT', - lastWeek: '[วัน]dddd[ที่แล้ว เวลา] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'อีก %s', - past: '%sที่แล้ว', - s: 'ไม่กี่วินาที', - ss: '%d วินาที', - m: '1 นาที', - mm: '%d นาที', - h: '1 ชั่วโมง', - hh: '%d ชั่วโมง', - d: '1 วัน', - dd: '%d วัน', - M: '1 เดือน', - MM: '%d เดือน', - y: '1 ปี', - yy: '%d ปี', - }, - }); + var _createChainedFunction = __webpack_require__(290); - return th; + var _createChainedFunction2 = _interopRequireDefault(_createChainedFunction); - }))); + var _classnames = __webpack_require__(2); + var _classnames2 = _interopRequireDefault(_classnames); - /***/ }), - /* 449 */ - /***/ (function(module, exports, __webpack_require__) { + var _util = __webpack_require__(61); - //! moment.js locale configuration - //! locale : Tagalog (Philippines) [tl-ph] - //! author : Dan Hagman : https://github.com/hagmandan + var _DOMWrap = __webpack_require__(1015); - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _DOMWrap2 = _interopRequireDefault(_DOMWrap); - //! moment.js locale configuration + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - var tlPh = moment.defineLocale('tl-ph', { - months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split( - '_' - ), - monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'), - weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split( - '_' - ), - weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'), - weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'MM/D/YYYY', - LL: 'MMMM D, YYYY', - LLL: 'MMMM D, YYYY HH:mm', - LLLL: 'dddd, MMMM DD, YYYY HH:mm', - }, - calendar: { - sameDay: 'LT [ngayong araw]', - nextDay: '[Bukas ng] LT', - nextWeek: 'LT [sa susunod na] dddd', - lastDay: 'LT [kahapon]', - lastWeek: 'LT [noong nakaraang] dddd', - sameElse: 'L', - }, - relativeTime: { - future: 'sa loob ng %s', - past: '%s ang nakalipas', - s: 'ilang segundo', - ss: '%d segundo', - m: 'isang minuto', - mm: '%d minuto', - h: 'isang oras', - hh: '%d oras', - d: 'isang araw', - dd: '%d araw', - M: 'isang buwan', - MM: '%d buwan', - y: 'isang taon', - yy: '%d taon', - }, - dayOfMonthOrdinalParse: /\d{1,2}/, - ordinal: function (number) { - return number; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - return tlPh; + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - }))); + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - /***/ }), - /* 450 */ - /***/ (function(module, exports, __webpack_require__) { + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - //! moment.js locale configuration - //! locale : Klingon [tlh] - //! author : Dominika Kruk : https://github.com/amaranthrose + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + function allDisabled(arr) { + if (!arr.length) { + return true; + } + return arr.every(function (c) { + return !!c.props.disabled; + }); + } - //! moment.js locale configuration + function updateActiveKey(store, menuId, activeKey) { + var state = store.getState(); + store.setState({ + activeKey: _extends({}, state.activeKey, _defineProperty({}, menuId, activeKey)) + }); + } - var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_'); + function getEventKey(props) { + // when eventKey not available ,it's menu and return menu id '0-menu-' + return props.eventKey || '0-menu-'; + } - function translateFuture(output) { - var time = output; - time = - output.indexOf('jaj') !== -1 - ? time.slice(0, -3) + 'leS' - : output.indexOf('jar') !== -1 - ? time.slice(0, -3) + 'waQ' - : output.indexOf('DIS') !== -1 - ? time.slice(0, -3) + 'nem' - : time + ' pIq'; - return time; - } + function getActiveKey(props, originalActiveKey) { + var activeKey = originalActiveKey; + var children = props.children, + eventKey = props.eventKey; - function translatePast(output) { - var time = output; - time = - output.indexOf('jaj') !== -1 - ? time.slice(0, -3) + 'Hu’' - : output.indexOf('jar') !== -1 - ? time.slice(0, -3) + 'wen' - : output.indexOf('DIS') !== -1 - ? time.slice(0, -3) + 'ben' - : time + ' ret'; - return time; + if (activeKey) { + var found = void 0; + (0, _util.loopMenuItem)(children, function (c, i) { + if (c && !c.props.disabled && activeKey === (0, _util.getKeyFromChildrenIndex)(c, eventKey, i)) { + found = true; + } + }); + if (found) { + return activeKey; } + } + activeKey = null; + if (props.defaultActiveFirst) { + (0, _util.loopMenuItem)(children, function (c, i) { + if (!activeKey && c && !c.props.disabled) { + activeKey = (0, _util.getKeyFromChildrenIndex)(c, eventKey, i); + } + }); + return activeKey; + } + return activeKey; + } - function translate(number, withoutSuffix, string, isFuture) { - var numberNoun = numberAsNoun(number); - switch (string) { - case 'ss': - return numberNoun + ' lup'; - case 'mm': - return numberNoun + ' tup'; - case 'hh': - return numberNoun + ' rep'; - case 'dd': - return numberNoun + ' jaj'; - case 'MM': - return numberNoun + ' jar'; - case 'yy': - return numberNoun + ' DIS'; - } + function saveRef(c) { + if (c) { + var index = this.instanceArray.indexOf(c); + if (index !== -1) { + // update component if it's already inside instanceArray + this.instanceArray[index] = c; + } else { + // add component if it's not in instanceArray yet; + this.instanceArray.push(c); } + } + } - function numberAsNoun(number) { - var hundred = Math.floor((number % 1000) / 100), - ten = Math.floor((number % 100) / 10), - one = number % 10, - word = ''; - if (hundred > 0) { - word += numbersNouns[hundred] + 'vatlh'; - } - if (ten > 0) { - word += (word !== '' ? ' ' : '') + numbersNouns[ten] + 'maH'; - } - if (one > 0) { - word += (word !== '' ? ' ' : '') + numbersNouns[one]; - } - return word === '' ? 'pagh' : word; - } + var SubPopupMenu = exports.SubPopupMenu = function (_React$Component) { + _inherits(SubPopupMenu, _React$Component); - var tlh = moment.defineLocale('tlh', { - months: 'tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’'.split( - '_' - ), - monthsShort: 'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split( - '_' - ), - weekdaysShort: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split( - '_' - ), - weekdaysMin: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split( - '_' - ), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[DaHjaj] LT', - nextDay: '[wa’leS] LT', - nextWeek: 'LLL', - lastDay: '[wa’Hu’] LT', - lastWeek: 'LLL', - sameElse: 'L', - }, - relativeTime: { - future: translateFuture, - past: translatePast, - s: 'puS lup', - ss: translate, - m: 'wa’ tup', - mm: translate, - h: 'wa’ rep', - hh: translate, - d: 'wa’ jaj', - dd: translate, - M: 'wa’ jar', - MM: translate, - y: 'wa’ DIS', - yy: translate, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, + function SubPopupMenu(props) { + _classCallCheck(this, SubPopupMenu); + + var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); + + _initialiseProps.call(_this); + + props.store.setState({ + activeKey: _extends({}, props.store.getState().activeKey, _defineProperty({}, props.eventKey, getActiveKey(props, props.activeKey))) }); - return tlh; + _this.instanceArray = []; + return _this; + } - }))); + SubPopupMenu.prototype.componentDidMount = function componentDidMount() { + // invoke customized ref to expose component to mixin + if (this.props.manualRef) { + this.props.manualRef(this); + } + }; + SubPopupMenu.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) { + return this.props.visible || nextProps.visible; + }; - /***/ }), - /* 451 */ - /***/ (function(module, exports, __webpack_require__) { + SubPopupMenu.prototype.componentDidUpdate = function componentDidUpdate(prevProps) { + var props = this.props; + var originalActiveKey = 'activeKey' in props ? props.activeKey : props.store.getState().activeKey[getEventKey(props)]; + var activeKey = getActiveKey(props, originalActiveKey); + if (activeKey !== originalActiveKey) { + updateActiveKey(props.store, getEventKey(props), activeKey); + } else if ('activeKey' in prevProps) { + // If prev activeKey is not same as current activeKey, + // we should set it. + var prevActiveKey = getActiveKey(prevProps, prevProps.activeKey); + if (activeKey !== prevActiveKey) { + updateActiveKey(props.store, getEventKey(props), activeKey); + } + } + }; - //! moment.js locale configuration - //! locale : Turkish [tr] - //! authors : Erhan Gundogan : https://github.com/erhangundogan, - //! Burak Yiğit Kaya: https://github.com/BYK + // all keyboard events callbacks run from here at first - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js locale configuration + SubPopupMenu.prototype.render = function render() { + var _this2 = this; - var suffixes = { - 1: "'inci", - 5: "'inci", - 8: "'inci", - 70: "'inci", - 80: "'inci", - 2: "'nci", - 7: "'nci", - 20: "'nci", - 50: "'nci", - 3: "'üncü", - 4: "'üncü", - 100: "'üncü", - 6: "'ncı", - 9: "'uncu", - 10: "'uncu", - 30: "'uncu", - 60: "'ıncı", - 90: "'ıncı", + var props = _objectWithoutProperties(this.props, []); + + this.instanceArray = []; + var className = (0, _classnames2["default"])(props.prefixCls, props.className, props.prefixCls + '-' + props.mode); + var domProps = { + className: className, + // role could be 'select' and by default set to menu + role: props.role || 'menu' }; + if (props.id) { + domProps.id = props.id; + } + if (props.focusable) { + domProps.tabIndex = this.props.tabIndex; + domProps.onKeyDown = props.keyboard && this.onKeyDown; + } + var prefixCls = props.prefixCls, + eventKey = props.eventKey, + visible = props.visible, + level = props.level, + mode = props.mode, + overflowedIndicator = props.overflowedIndicator, + theme = props.theme; - var tr = moment.defineLocale('tr', { - months: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split( - '_' - ), - monthsShort: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'), - weekdays: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split( - '_' - ), - weekdaysShort: 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'), - weekdaysMin: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[bugün saat] LT', - nextDay: '[yarın saat] LT', - nextWeek: '[gelecek] dddd [saat] LT', - lastDay: '[dün] LT', - lastWeek: '[geçen] dddd [saat] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s sonra', - past: '%s önce', - s: 'birkaç saniye', - ss: '%d saniye', - m: 'bir dakika', - mm: '%d dakika', - h: 'bir saat', - hh: '%d saat', - d: 'bir gün', - dd: '%d gün', - M: 'bir ay', - MM: '%d ay', - y: 'bir yıl', - yy: '%d yıl', - }, - ordinal: function (number, period) { - switch (period) { - case 'd': - case 'D': - case 'Do': - case 'DD': - return number; - default: - if (number === 0) { - // special case for zero - return number + "'ıncı"; - } - var a = number % 10, - b = (number % 100) - a, - c = number >= 100 ? 100 : null; - return number + (suffixes[a] || suffixes[b] || suffixes[c]); - } - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, + _util.menuAllProps.forEach(function (key) { + return delete props[key]; }); - return tr; - - }))); - + // Otherwise, the propagated click event will trigger another onClick + delete props.onClick; + delete props.keyboard; - /***/ }), - /* 452 */ - /***/ (function(module, exports, __webpack_require__) { + return ( + // ESLint is not smart enough to know that the type of `children` was checked. + /* eslint-disable */ + _react2["default"].createElement( + _DOMWrap2["default"], + _extends({}, props, { + prefixCls: prefixCls, + mode: mode, + tag: 'ul', + level: level, + theme: theme, + hiddenClassName: prefixCls + '-hidden', + visible: visible, + overflowedIndicator: overflowedIndicator + }, domProps), + _react2["default"].Children.map(props.children, function (c, i) { + return _this2.renderMenuItem(c, i, eventKey || '0-menu-'); + }) + ) + /*eslint-enable */ - //! moment.js locale configuration - //! locale : Talossan [tzl] - //! author : Robin van der Vliet : https://github.com/robin0van0der0v - //! author : Iustì Canun + ); + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + return SubPopupMenu; + }(_react2["default"].Component); - //! moment.js locale configuration + SubPopupMenu.propTypes = { + onSelect: _propTypes2["default"].func, + onClick: _propTypes2["default"].func, + onDeselect: _propTypes2["default"].func, + onOpenChange: _propTypes2["default"].func, + onDestroy: _propTypes2["default"].func, + openTransitionName: _propTypes2["default"].string, + openAnimation: _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].object]), + openKeys: _propTypes2["default"].arrayOf(_propTypes2["default"].string), + visible: _propTypes2["default"].bool, + children: _propTypes2["default"].any, + parentMenu: _propTypes2["default"].object, + eventKey: _propTypes2["default"].string, + store: _propTypes2["default"].shape({ + getState: _propTypes2["default"].func, + setState: _propTypes2["default"].func + }), - // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals. - // This is currently too difficult (maybe even impossible) to add. - var tzl = moment.defineLocale('tzl', { - months: 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split( - '_' - ), - monthsShort: 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'), - weekdays: 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'), - weekdaysShort: 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'), - weekdaysMin: 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'), - longDateFormat: { - LT: 'HH.mm', - LTS: 'HH.mm.ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM [dallas] YYYY', - LLL: 'D. MMMM [dallas] YYYY HH.mm', - LLLL: 'dddd, [li] D. MMMM [dallas] YYYY HH.mm', - }, - meridiemParse: /d\'o|d\'a/i, - isPM: function (input) { - return "d'o" === input.toLowerCase(); - }, - meridiem: function (hours, minutes, isLower) { - if (hours > 11) { - return isLower ? "d'o" : "D'O"; - } else { - return isLower ? "d'a" : "D'A"; - } - }, - calendar: { - sameDay: '[oxhi à] LT', - nextDay: '[demà à] LT', - nextWeek: 'dddd [à] LT', - lastDay: '[ieiri à] LT', - lastWeek: '[sür el] dddd [lasteu à] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'osprei %s', - past: 'ja%s', - s: processRelativeTime, - ss: processRelativeTime, - m: processRelativeTime, - mm: processRelativeTime, - h: processRelativeTime, - hh: processRelativeTime, - d: processRelativeTime, - dd: processRelativeTime, - M: processRelativeTime, - MM: processRelativeTime, - y: processRelativeTime, - yy: processRelativeTime, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, + // adding in refactor + focusable: _propTypes2["default"].bool, + multiple: _propTypes2["default"].bool, + style: _propTypes2["default"].object, + defaultActiveFirst: _propTypes2["default"].bool, + activeKey: _propTypes2["default"].string, + selectedKeys: _propTypes2["default"].arrayOf(_propTypes2["default"].string), + defaultSelectedKeys: _propTypes2["default"].arrayOf(_propTypes2["default"].string), + defaultOpenKeys: _propTypes2["default"].arrayOf(_propTypes2["default"].string), + level: _propTypes2["default"].number, + mode: _propTypes2["default"].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']), + triggerSubMenuAction: _propTypes2["default"].oneOf(['click', 'hover']), + inlineIndent: _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string]), + manualRef: _propTypes2["default"].func, + itemIcon: _propTypes2["default"].oneOfType([_propTypes2["default"].func, _propTypes2["default"].node]), + expandIcon: _propTypes2["default"].oneOfType([_propTypes2["default"].func, _propTypes2["default"].node]) + }; + SubPopupMenu.defaultProps = { + prefixCls: 'rc-menu', + className: '', + mode: 'vertical', + level: 1, + inlineIndent: 24, + visible: true, + focusable: true, + style: {}, + manualRef: _util.noop + }; + + var _initialiseProps = function _initialiseProps() { + var _this3 = this; + + this.onKeyDown = function (e, callback) { + var keyCode = e.keyCode; + var handled = void 0; + _this3.getFlatInstanceArray().forEach(function (obj) { + if (obj && obj.props.active && obj.onKeyDown) { + handled = obj.onKeyDown(e); + } }); + if (handled) { + return 1; + } + var activeItem = null; + if (keyCode === _tinperBeeCore.KeyCode.UP || keyCode === _tinperBeeCore.KeyCode.DOWN) { + if (_this3.props.store.getState().keyboard) { + //是否启用键盘操作 + activeItem = _this3.step(keyCode === _tinperBeeCore.KeyCode.UP ? -2 : 2); + } + } - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - s: ['viensas secunds', "'iensas secunds"], - ss: [number + ' secunds', '' + number + ' secunds'], - m: ["'n míut", "'iens míut"], - mm: [number + ' míuts', '' + number + ' míuts'], - h: ["'n þora", "'iensa þora"], - hh: [number + ' þoras', '' + number + ' þoras'], - d: ["'n ziua", "'iensa ziua"], - dd: [number + ' ziuas', '' + number + ' ziuas'], - M: ["'n mes", "'iens mes"], - MM: [number + ' mesen', '' + number + ' mesen'], - y: ["'n ar", "'iens ar"], - yy: [number + ' ars', '' + number + ' ars'], - }; - return isFuture - ? format[key][0] - : withoutSuffix - ? format[key][0] - : format[key][1]; + if (activeItem) { + e.preventDefault(); + updateActiveKey(_this3.props.store, getEventKey(_this3.props), activeItem.props.eventKey); + + if (typeof callback === 'function') { + callback(activeItem); + } + + return 1; } + }; - return tzl; + this.onItemHover = function (e) { + var key = e.key, + hover = e.hover; - }))); + updateActiveKey(_this3.props.store, getEventKey(_this3.props), hover ? key : null); + }; + this.onDeselect = function (selectInfo) { + _this3.props.onDeselect(selectInfo); + }; - /***/ }), - /* 453 */ - /***/ (function(module, exports, __webpack_require__) { + this.onSelect = function (selectInfo) { + _this3.props.onSelect(selectInfo); + }; - //! moment.js locale configuration - //! locale : Central Atlas Tamazight [tzm] - //! author : Abdel Said : https://github.com/abdelsaid + this.onClick = function (e) { + _this3.props.onClick(e); + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + this.onOpenChange = function (e) { + _this3.props.onOpenChange(e); + }; - //! moment.js locale configuration + this.onDestroy = function (key) { + /* istanbul ignore next */ + _this3.props.onDestroy(key); + }; - var tzm = moment.defineLocale('tzm', { - months: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split( - '_' - ), - monthsShort: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split( - '_' - ), - weekdays: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'), - weekdaysShort: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'), - weekdaysMin: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[ⴰⵙⴷⵅ ⴴ] LT', - nextDay: '[ⴰⵙⴽⴰ ⴴ] LT', - nextWeek: 'dddd [ⴴ] LT', - lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT', - lastWeek: 'dddd [ⴴ] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s', - past: 'ⵢⴰⵏ %s', - s: 'ⵉⵎⵉⴽ', - ss: '%d ⵉⵎⵉⴽ', - m: 'ⵎⵉⵏⵓⴺ', - mm: '%d ⵎⵉⵏⵓⴺ', - h: 'ⵙⴰⵄⴰ', - hh: '%d ⵜⴰⵙⵙⴰⵄⵉⵏ', - d: 'ⴰⵙⵙ', - dd: '%d oⵙⵙⴰⵏ', - M: 'ⴰⵢoⵓⵔ', - MM: '%d ⵉⵢⵢⵉⵔⵏ', - y: 'ⴰⵙⴳⴰⵙ', - yy: '%d ⵉⵙⴳⴰⵙⵏ', - }, - week: { - dow: 6, // Saturday is the first day of the week. - doy: 12, // The week that contains Jan 12th is the first week of the year. - }, + this.getFlatInstanceArray = function () { + return _this3.instanceArray; + }; + + this.getOpenTransitionName = function () { + return _this3.props.openTransitionName; + }; + + this.step = function (direction) { + var children = _this3.getFlatInstanceArray(); + var activeKey = _this3.props.store.getState().activeKey[getEventKey(_this3.props)]; + var len = children.length; + if (!len) { + return null; + } + if (direction < 0) { + children = children.concat().reverse(); + } + // find current activeIndex + var activeIndex = -1; + children.every(function (c, ci) { + if (c && c.props.eventKey === activeKey) { + activeIndex = ci; + return false; + } + return true; }); + if (!_this3.props.defaultActiveFirst && activeIndex !== -1 && allDisabled(children.slice(activeIndex, len - 1))) { + return undefined; + } + var start = (activeIndex + 1) % len; + var i = start; - return tzm; + do { + var child = children[i]; + if (!child || child.props.disabled) { + i = (i + 1) % len; + } else { + return child; + } + } while (i !== start); - }))); + return null; + }; + + this.renderCommonMenuItem = function (child, i, extraProps) { + var state = _this3.props.store.getState(); + var props = _this3.props; + var key = (0, _util.getKeyFromChildrenIndex)(child, props.eventKey, i); + var childProps = child.props; + var isActive = key === state.activeKey; + var newChildProps = _extends({ + mode: childProps.mode || props.mode, + level: props.level, + inlineIndent: props.inlineIndent, + renderMenuItem: _this3.renderMenuItem, + rootPrefixCls: props.prefixCls, + index: i, + parentMenu: props.parentMenu, + // customized ref function, need to be invoked manually in child's componentDidMount + manualRef: childProps.disabled ? undefined : (0, _createChainedFunction2["default"])(child.ref, saveRef.bind(_this3)), + eventKey: key, + active: !childProps.disabled && isActive, + multiple: props.multiple, + onClick: function onClick(e) { + (childProps.onClick || _util.noop)(e); + _this3.onClick(e); + }, + onItemHover: _this3.onItemHover, + openTransitionName: _this3.getOpenTransitionName(), + openAnimation: props.openAnimation, + subMenuOpenDelay: props.subMenuOpenDelay, + subMenuCloseDelay: props.subMenuCloseDelay, + forceSubMenuRender: props.forceSubMenuRender, + onOpenChange: _this3.onOpenChange, + onDeselect: _this3.onDeselect, + onSelect: _this3.onSelect, + builtinPlacements: props.builtinPlacements, + itemIcon: childProps.itemIcon || _this3.props.itemIcon, + expandIcon: childProps.expandIcon || _this3.props.expandIcon + }, extraProps); + if (props.mode === 'inline') { + newChildProps.triggerSubMenuAction = 'click'; + } + return _react2["default"].cloneElement(child, newChildProps); + }; + + this.renderMenuItem = function (c, i, subMenuKey) { + /* istanbul ignore if */ + + if (!c) { + return null; + } + var state = _this3.props.store.getState(); + var extraProps = { + openKeys: state.openKeys, + selectedKeys: state.selectedKeys, + triggerSubMenuAction: _this3.props.triggerSubMenuAction, + subMenuKey: subMenuKey + }; + return _this3.renderCommonMenuItem(c, i, extraProps); + }; + }; + var connected = (0, _miniStore.connect)()(SubPopupMenu); + + exports["default"] = connected; /***/ }), - /* 454 */ + /* 290 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Central Atlas Tamazight Latin [tzm-latn] - //! author : Abdel Said : https://github.com/abdelsaid - - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + "use strict"; - //! moment.js locale configuration - var tzmLatn = moment.defineLocale('tzm-latn', { - months: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split( - '_' - ), - monthsShort: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split( - '_' - ), - weekdays: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'), - weekdaysShort: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'), - weekdaysMin: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[asdkh g] LT', - nextDay: '[aska g] LT', - nextWeek: 'dddd [g] LT', - lastDay: '[assant g] LT', - lastWeek: 'dddd [g] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'dadkh s yan %s', - past: 'yan %s', - s: 'imik', - ss: '%d imik', - m: 'minuḍ', - mm: '%d minuḍ', - h: 'saɛa', - hh: '%d tassaɛin', - d: 'ass', - dd: '%d ossan', - M: 'ayowr', - MM: '%d iyyirn', - y: 'asgas', - yy: '%d isgasn', - }, - week: { - dow: 6, // Saturday is the first day of the week. - doy: 12, // The week that contains Jan 12th is the first week of the year. - }, - }); + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = createChainedFunction; - return tzmLatn; + /** + * Safe chained function + * + * Will only create a new function if needed, + * otherwise will pass back existing functions or null. + * + * @returns {function|null} + */ + function createChainedFunction() { + var args = [].slice.call(arguments, 0); - }))); + if (args.length === 1) { + return args[0]; + } + return function chainedFunction() { + for (var i = 0; i < args.length; i++) { + if (args[i] && args[i].apply) { + args[i].apply(this, arguments); + } + } + }; + } /***/ }), - /* 455 */ + /* 291 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js language configuration - //! locale : Uyghur (China) [ug-cn] - //! author: boyaq : https://github.com/boyaq + "use strict"; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - //! moment.js language configuration + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.SubMenu = undefined; - var ugCn = moment.defineLocale('ug-cn', { - months: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split( - '_' - ), - monthsShort: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split( - '_' - ), - weekdays: 'يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە'.split( - '_' - ), - weekdaysShort: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'), - weekdaysMin: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY-MM-DD', - LL: 'YYYY-يىلىM-ئاينىڭD-كۈنى', - LLL: 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm', - LLLL: 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm', - }, - meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if ( - meridiem === 'يېرىم كېچە' || - meridiem === 'سەھەر' || - meridiem === 'چۈشتىن بۇرۇن' - ) { - return hour; - } else if (meridiem === 'چۈشتىن كېيىن' || meridiem === 'كەچ') { - return hour + 12; - } else { - return hour >= 11 ? hour : hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - var hm = hour * 100 + minute; - if (hm < 600) { - return 'يېرىم كېچە'; - } else if (hm < 900) { - return 'سەھەر'; - } else if (hm < 1130) { - return 'چۈشتىن بۇرۇن'; - } else if (hm < 1230) { - return 'چۈش'; - } else if (hm < 1800) { - return 'چۈشتىن كېيىن'; - } else { - return 'كەچ'; - } - }, - calendar: { - sameDay: '[بۈگۈن سائەت] LT', - nextDay: '[ئەتە سائەت] LT', - nextWeek: '[كېلەركى] dddd [سائەت] LT', - lastDay: '[تۆنۈگۈن] LT', - lastWeek: '[ئالدىنقى] dddd [سائەت] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s كېيىن', - past: '%s بۇرۇن', - s: 'نەچچە سېكونت', - ss: '%d سېكونت', - m: 'بىر مىنۇت', - mm: '%d مىنۇت', - h: 'بىر سائەت', - hh: '%d سائەت', - d: 'بىر كۈن', - dd: '%d كۈن', - M: 'بىر ئاي', - MM: '%d ئاي', - y: 'بىر يىل', - yy: '%d يىل', - }, + var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - dayOfMonthOrdinalParse: /\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/, - ordinal: function (number, period) { - switch (period) { - case 'd': - case 'D': - case 'DDD': - return number + '-كۈنى'; - case 'w': - case 'W': - return number + '-ھەپتە'; - default: - return number; - } - }, - preparse: function (string) { - return string.replace(/،/g, ','); - }, - postformat: function (string) { - return string.replace(/,/g, '،'); - }, - week: { - // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效 - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 1st is the first week of the year. - }, - }); + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; /** + * This source code is quoted from rc-menu. + * homepage: https://github.com/react-component/menu + */ - return ugCn; - }))); + var _react = __webpack_require__(0); + var _react2 = _interopRequireDefault(_react); - /***/ }), - /* 456 */ - /***/ (function(module, exports, __webpack_require__) { + var _reactDom = __webpack_require__(3); - //! moment.js locale configuration - //! locale : Ukrainian [uk] - //! author : zemlanin : https://github.com/zemlanin - //! Author : Menelion Elensúle : https://github.com/Oire + var _reactDom2 = _interopRequireDefault(_reactDom); - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _propTypes = __webpack_require__(1); - //! moment.js locale configuration + var _propTypes2 = _interopRequireDefault(_propTypes); - function plural(word, num) { - var forms = word.split('_'); - return num % 10 === 1 && num % 100 !== 11 - ? forms[0] - : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) - ? forms[1] - : forms[2]; - } - function relativeTimeWithPlural(number, withoutSuffix, key) { - var format = { - ss: withoutSuffix ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд', - mm: withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин', - hh: withoutSuffix ? 'година_години_годин' : 'годину_години_годин', - dd: 'день_дні_днів', - MM: 'місяць_місяці_місяців', - yy: 'рік_роки_років', - }; - if (key === 'm') { - return withoutSuffix ? 'хвилина' : 'хвилину'; - } else if (key === 'h') { - return withoutSuffix ? 'година' : 'годину'; - } else { - return number + ' ' + plural(format[key], +number); - } - } - function weekdaysCaseReplace(m, format) { - var weekdays = { - nominative: 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split( - '_' - ), - accusative: 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split( - '_' - ), - genitive: 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split( - '_' - ), - }, - nounCase; + var _rcTrigger = __webpack_require__(74); - if (m === true) { - return weekdays['nominative'] - .slice(1, 7) - .concat(weekdays['nominative'].slice(0, 1)); - } - if (!m) { - return weekdays['nominative']; - } + var _rcTrigger2 = _interopRequireDefault(_rcTrigger); - nounCase = /(\[[ВвУу]\]) ?dddd/.test(format) - ? 'accusative' - : /\[?(?:минулої|наступної)? ?\] ?dddd/.test(format) - ? 'genitive' - : 'nominative'; - return weekdays[nounCase][m.day()]; - } - function processHoursFunction(str) { - return function () { - return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT'; - }; - } + var _tinperBeeCore = __webpack_require__(6); - var uk = moment.defineLocale('uk', { - months: { - format: 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split( - '_' - ), - standalone: 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split( - '_' - ), - }, - monthsShort: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split( - '_' - ), - weekdays: weekdaysCaseReplace, - weekdaysShort: 'нд_пн_вт_ср_чт_пт_сб'.split('_'), - weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY р.', - LLL: 'D MMMM YYYY р., HH:mm', - LLLL: 'dddd, D MMMM YYYY р., HH:mm', - }, - calendar: { - sameDay: processHoursFunction('[Сьогодні '), - nextDay: processHoursFunction('[Завтра '), - lastDay: processHoursFunction('[Вчора '), - nextWeek: processHoursFunction('[У] dddd ['), - lastWeek: function () { - switch (this.day()) { - case 0: - case 3: - case 5: - case 6: - return processHoursFunction('[Минулої] dddd [').call(this); - case 1: - case 2: - case 4: - return processHoursFunction('[Минулого] dddd [').call(this); - } - }, - sameElse: 'L', - }, - relativeTime: { - future: 'за %s', - past: '%s тому', - s: 'декілька секунд', - ss: relativeTimeWithPlural, - m: relativeTimeWithPlural, - mm: relativeTimeWithPlural, - h: 'годину', - hh: relativeTimeWithPlural, - d: 'день', - dd: relativeTimeWithPlural, - M: 'місяць', - MM: relativeTimeWithPlural, - y: 'рік', - yy: relativeTimeWithPlural, - }, - // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason - meridiemParse: /ночі|ранку|дня|вечора/, - isPM: function (input) { - return /^(дня|вечора)$/.test(input); - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'ночі'; - } else if (hour < 12) { - return 'ранку'; - } else if (hour < 17) { - return 'дня'; - } else { - return 'вечора'; - } - }, - dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/, - ordinal: function (number, period) { - switch (period) { - case 'M': - case 'd': - case 'DDD': - case 'w': - case 'W': - return number + '-й'; - case 'D': - return number + '-го'; - default: - return number; - } - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); + var _classnames = __webpack_require__(2); - return uk; + var _classnames2 = _interopRequireDefault(_classnames); - }))); + var _miniStore = __webpack_require__(22); + var _SubPopupMenu = __webpack_require__(289); - /***/ }), - /* 457 */ - /***/ (function(module, exports, __webpack_require__) { + var _SubPopupMenu2 = _interopRequireDefault(_SubPopupMenu); - //! moment.js locale configuration - //! locale : Urdu [ur] - //! author : Sawood Alam : https://github.com/ibnesayeed - //! author : Zack : https://github.com/ZackVision + var _placements = __webpack_require__(1016); - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _placements2 = _interopRequireDefault(_placements); - //! moment.js locale configuration + var _rcAnimate = __webpack_require__(97); - var months = [ - 'جنوری', - 'فروری', - 'مارچ', - 'اپریل', - 'مئی', - 'جون', - 'جولائی', - 'اگست', - 'ستمبر', - 'اکتوبر', - 'نومبر', - 'دسمبر', - ], - days = ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ']; + var _rcAnimate2 = _interopRequireDefault(_rcAnimate); - var ur = moment.defineLocale('ur', { - months: months, - monthsShort: months, - weekdays: days, - weekdaysShort: days, - weekdaysMin: days, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd، D MMMM YYYY HH:mm', - }, - meridiemParse: /صبح|شام/, - isPM: function (input) { - return 'شام' === input; - }, - meridiem: function (hour, minute, isLower) { - if (hour < 12) { - return 'صبح'; - } - return 'شام'; - }, - calendar: { - sameDay: '[آج بوقت] LT', - nextDay: '[کل بوقت] LT', - nextWeek: 'dddd [بوقت] LT', - lastDay: '[گذشتہ روز بوقت] LT', - lastWeek: '[گذشتہ] dddd [بوقت] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s بعد', - past: '%s قبل', - s: 'چند سیکنڈ', - ss: '%d سیکنڈ', - m: 'ایک منٹ', - mm: '%d منٹ', - h: 'ایک گھنٹہ', - hh: '%d گھنٹے', - d: 'ایک دن', - dd: '%d دن', - M: 'ایک ماہ', - MM: '%d ماہ', - y: 'ایک سال', - yy: '%d سال', - }, - preparse: function (string) { - return string.replace(/،/g, ','); - }, - postformat: function (string) { - return string.replace(/,/g, '،'); - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var _util = __webpack_require__(61); - return ur; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - }))); + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - /***/ }), - /* 458 */ - /***/ (function(module, exports, __webpack_require__) { + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - //! moment.js locale configuration - //! locale : Uzbek [uz] - //! author : Sardor Muminov : https://github.com/muminoff + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - //! moment.js locale configuration + var guid = 0; - var uz = moment.defineLocale('uz', { - months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split( - '_' - ), - monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'), - weekdays: 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'), - weekdaysShort: 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'), - weekdaysMin: 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'D MMMM YYYY, dddd HH:mm', - }, - calendar: { - sameDay: '[Бугун соат] LT [да]', - nextDay: '[Эртага] LT [да]', - nextWeek: 'dddd [куни соат] LT [да]', - lastDay: '[Кеча соат] LT [да]', - lastWeek: '[Утган] dddd [куни соат] LT [да]', - sameElse: 'L', - }, - relativeTime: { - future: 'Якин %s ичида', - past: 'Бир неча %s олдин', - s: 'фурсат', - ss: '%d фурсат', - m: 'бир дакика', - mm: '%d дакика', - h: 'бир соат', - hh: '%d соат', - d: 'бир кун', - dd: '%d кун', - M: 'бир ой', - MM: '%d ой', - y: 'бир йил', - yy: '%d йил', - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 4th is the first week of the year. - }, - }); + var popupPlacementMap = { + horizontal: 'bottomLeft', + vertical: 'rightTop', + 'vertical-left': 'rightTop', + 'vertical-right': 'leftTop' + }; - return uz; + var updateDefaultActiveFirst = function updateDefaultActiveFirst(store, eventKey, defaultActiveFirst) { + var menuId = (0, _util.getMenuIdFromSubMenuEventKey)(eventKey); + var state = store.getState(); + store.setState({ + defaultActiveFirst: _extends({}, state.defaultActiveFirst, _defineProperty({}, menuId, defaultActiveFirst)) + }); + }; - }))); + var SubMenu = exports.SubMenu = function (_React$Component) { + _inherits(SubMenu, _React$Component); + function SubMenu(props) { + _classCallCheck(this, SubMenu); - /***/ }), - /* 459 */ - /***/ (function(module, exports, __webpack_require__) { + var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); - //! moment.js locale configuration - //! locale : Uzbek Latin [uz-latn] - //! author : Rasulbek Mirzayev : github.com/Rasulbeeek + _initialiseProps.call(_this); - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var store = props.store; + var eventKey = props.eventKey; + var defaultActiveFirst = store.getState().defaultActiveFirst; - //! moment.js locale configuration + _this.isRootMenu = false; - var uzLatn = moment.defineLocale('uz-latn', { - months: 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split( - '_' - ), - monthsShort: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'), - weekdays: 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split( - '_' - ), - weekdaysShort: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'), - weekdaysMin: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'D MMMM YYYY, dddd HH:mm', - }, - calendar: { - sameDay: '[Bugun soat] LT [da]', - nextDay: '[Ertaga] LT [da]', - nextWeek: 'dddd [kuni soat] LT [da]', - lastDay: '[Kecha soat] LT [da]', - lastWeek: "[O'tgan] dddd [kuni soat] LT [da]", - sameElse: 'L', - }, - relativeTime: { - future: 'Yaqin %s ichida', - past: 'Bir necha %s oldin', - s: 'soniya', - ss: '%d soniya', - m: 'bir daqiqa', - mm: '%d daqiqa', - h: 'bir soat', - hh: '%d soat', - d: 'bir kun', - dd: '%d kun', - M: 'bir oy', - MM: '%d oy', - y: 'bir yil', - yy: '%d yil', - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); + var value = false; - return uzLatn; + if (defaultActiveFirst) { + value = defaultActiveFirst[eventKey]; + } - }))); + updateDefaultActiveFirst(store, eventKey, value); + return _this; + } + SubMenu.prototype.componentDidMount = function componentDidMount() { + this.componentDidUpdate(); + }; - /***/ }), - /* 460 */ - /***/ (function(module, exports, __webpack_require__) { + SubMenu.prototype.componentDidUpdate = function componentDidUpdate() { + var _props = this.props, + mode = _props.mode, + parentMenu = _props.parentMenu, + manualRef = _props.manualRef; - //! moment.js locale configuration - //! locale : Vietnamese [vi] - //! author : Bang Nguyen : https://github.com/bangnk - //! author : Chien Kira : https://github.com/chienkira + // invoke customized ref to expose component to mixin - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + if (manualRef) { + manualRef(this); + } - //! moment.js locale configuration + if (mode !== 'horizontal' || !parentMenu.isRootMenu || !this.props.isOpen) { + return; + } - var vi = moment.defineLocale('vi', { - months: 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split( - '_' - ), - monthsShort: 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split( - '_' - ), - weekdaysShort: 'CN_T2_T3_T4_T5_T6_T7'.split('_'), - weekdaysMin: 'CN_T2_T3_T4_T5_T6_T7'.split('_'), - weekdaysParseExact: true, - meridiemParse: /sa|ch/i, - isPM: function (input) { - return /^ch$/i.test(input); - }, - meridiem: function (hours, minutes, isLower) { - if (hours < 12) { - return isLower ? 'sa' : 'SA'; - } else { - return isLower ? 'ch' : 'CH'; - } - }, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM [năm] YYYY', - LLL: 'D MMMM [năm] YYYY HH:mm', - LLLL: 'dddd, D MMMM [năm] YYYY HH:mm', - l: 'DD/M/YYYY', - ll: 'D MMM YYYY', - lll: 'D MMM YYYY HH:mm', - llll: 'ddd, D MMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Hôm nay lúc] LT', - nextDay: '[Ngày mai lúc] LT', - nextWeek: 'dddd [tuần tới lúc] LT', - lastDay: '[Hôm qua lúc] LT', - lastWeek: 'dddd [tuần trước lúc] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s tới', - past: '%s trước', - s: 'vài giây', - ss: '%d giây', - m: 'một phút', - mm: '%d phút', - h: 'một giờ', - hh: '%d giờ', - d: 'một ngày', - dd: '%d ngày', - M: 'một tháng', - MM: '%d tháng', - y: 'một năm', - yy: '%d năm', - }, - dayOfMonthOrdinalParse: /\d{1,2}/, - ordinal: function (number) { - return number; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + // this.minWidthTimeout = setTimeout(() => this.adjustWidth(), 0); + this.adjustWidth(); + }; + + SubMenu.prototype.componentWillUnmount = function componentWillUnmount() { + var _props2 = this.props, + onDestroy = _props2.onDestroy, + eventKey = _props2.eventKey; + + if (onDestroy) { + onDestroy(eventKey); + } + + /* istanbul ignore if */ + /* if (this.minWidthTimeout) { + clearTimeout(this.minWidthTimeout); + }*/ + + /* istanbul ignore if */ + if (this.mouseenterTimeout) { + clearTimeout(this.mouseenterTimeout); + } + }; + + SubMenu.prototype.renderChildren = function renderChildren(children) { + var props = this.props; + var baseProps = { + mode: props.mode === 'horizontal' ? 'vertical' : props.mode, + visible: this.props.isOpen, + level: props.level + 1, + inlineIndent: props.inlineIndent, + focusable: false, + onClick: this.onSubMenuClick, + onSelect: this.onSelect, + onDeselect: this.onDeselect, + onDestroy: this.onDestroy, + selectedKeys: props.selectedKeys, + eventKey: props.eventKey + '-menu-', + openKeys: props.openKeys, + openTransitionName: props.openTransitionName, + openAnimation: props.openAnimation, + onOpenChange: this.onOpenChange, + subMenuOpenDelay: props.subMenuOpenDelay, + parentMenu: this, + subMenuCloseDelay: props.subMenuCloseDelay, + forceSubMenuRender: props.forceSubMenuRender, + triggerSubMenuAction: props.triggerSubMenuAction, + builtinPlacements: props.builtinPlacements, + defaultActiveFirst: props.store.getState().defaultActiveFirst[(0, _util.getMenuIdFromSubMenuEventKey)(props.eventKey)], + multiple: props.multiple, + prefixCls: props.rootPrefixCls, + id: this._menuId, + manualRef: this.saveMenuInstance, + itemIcon: props.itemIcon, + expandIcon: props.expandIcon + }; - return vi; + var haveRendered = this.haveRendered; + this.haveRendered = true; - }))); + this.haveOpened = this.haveOpened || baseProps.visible || baseProps.forceSubMenuRender; + // never rendered not planning to, don't render + if (!this.haveOpened) { + return _react2["default"].createElement('div', null); + } + // don't show transition on first rendering (no animation for opened menu) + // show appear transition if it's not visible (not sure why) + // show appear transition if it's not inline mode + var transitionAppear = haveRendered || !baseProps.visible || !baseProps.mode === 'inline'; - /***/ }), - /* 461 */ - /***/ (function(module, exports, __webpack_require__) { + baseProps.className = ' ' + baseProps.prefixCls + '-sub'; + var animProps = {}; - //! moment.js locale configuration - //! locale : Pseudo [x-pseudo] - //! author : Andrew Hood : https://github.com/andrewhood125 + if (baseProps.openTransitionName) { + animProps.transitionName = baseProps.openTransitionName; + } else if (_typeof(baseProps.openAnimation) === 'object') { + animProps.animation = _extends({}, baseProps.openAnimation); + if (!transitionAppear) { + delete animProps.animation.appear; + } + } - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + return _react2["default"].createElement( + _rcAnimate2["default"], + _extends({}, animProps, { + showProp: 'visible', + component: '', + transitionAppear: transitionAppear + }), + _react2["default"].createElement( + _SubPopupMenu2["default"], + _extends({}, baseProps, { id: this._menuId }), + children + ) + ); + }; - //! moment.js locale configuration + SubMenu.prototype.render = function render() { + var _classNames; - var xPseudo = moment.defineLocale('x-pseudo', { - months: 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split( - '_' - ), - monthsShort: 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split( - '_' - ), - weekdaysShort: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'), - weekdaysMin: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[T~ódá~ý át] LT', - nextDay: '[T~ómó~rró~w át] LT', - nextWeek: 'dddd [át] LT', - lastDay: '[Ý~ést~érdá~ý át] LT', - lastWeek: '[L~ást] dddd [át] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'í~ñ %s', - past: '%s á~gó', - s: 'á ~féw ~sécó~ñds', - ss: '%d s~écóñ~ds', - m: 'á ~míñ~úté', - mm: '%d m~íñú~tés', - h: 'á~ñ hó~úr', - hh: '%d h~óúrs', - d: 'á ~dáý', - dd: '%d d~áýs', - M: 'á ~móñ~th', - MM: '%d m~óñt~hs', - y: 'á ~ýéár', - yy: '%d ý~éárs', - }, - dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, - ordinal: function (number) { - var b = number % 10, - output = - ~~((number % 100) / 10) === 1 - ? 'th' - : b === 1 - ? 'st' - : b === 2 - ? 'nd' - : b === 3 - ? 'rd' - : 'th'; - return number + output; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); + var props = _extends({}, this.props); + var isOpen = props.isOpen; + var prefixCls = this.getPrefixCls(); + var isInlineMode = props.mode === 'inline'; + var className = (0, _classnames2["default"])(prefixCls, prefixCls + '-' + props.mode, (_classNames = {}, _defineProperty(_classNames, props.className, !!props.className), _defineProperty(_classNames, this.getOpenClassName(), isOpen), _defineProperty(_classNames, this.getActiveClassName(), props.active || isOpen && !isInlineMode), _defineProperty(_classNames, this.getDisabledClassName(), props.disabled), _defineProperty(_classNames, this.getSelectedClassName(), this.isChildrenSelected()), _classNames)); - return xPseudo; + if (!this._menuId) { + if (props.eventKey) { + this._menuId = props.eventKey + '$Menu'; + } else { + this._menuId = '$__$' + ++guid + '$Menu'; + } + } - }))); + var mouseEvents = {}; + var titleClickEvents = {}; + var titleMouseEvents = {}; + if (!props.disabled) { + mouseEvents = { + onMouseLeave: this.onMouseLeave, + onMouseEnter: this.onMouseEnter + }; + // only works in title, not outer li + titleClickEvents = { + onClick: this.onTitleClick + }; + titleMouseEvents = { + onMouseEnter: this.onTitleMouseEnter, + onMouseLeave: this.onTitleMouseLeave + }; + } - /***/ }), - /* 462 */ - /***/ (function(module, exports, __webpack_require__) { + var style = {}; + if (isInlineMode) { + style.paddingLeft = props.inlineIndent * props.level; + } - //! moment.js locale configuration - //! locale : Yoruba Nigeria [yo] - //! author : Atolagbe Abisoye : https://github.com/andela-batolagbe + var ariaOwns = {}; + // only set aria-owns when menu is open + // otherwise it would be an invalid aria-owns value + // since corresponding node cannot be found + if (this.props.isOpen) { + ariaOwns = { + 'aria-owns': this._menuId + }; + } - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + // expand custom icon should NOT be displayed in menu with horizontal mode. + var icon = null; + if (props.mode !== 'horizontal') { + icon = this.props.expandIcon; // ReactNode + if (typeof this.props.expandIcon === 'function') { + icon = _react2["default"].createElement(this.props.expandIcon, _extends({}, this.props)); + } + } - //! moment.js locale configuration + var title = _react2["default"].createElement( + 'div', + _extends({ + ref: this.saveSubMenuTitle, + style: style, + className: prefixCls + '-title' + }, titleMouseEvents, titleClickEvents, { + 'aria-expanded': isOpen + }, ariaOwns, { + 'aria-haspopup': 'true', + title: typeof props.title === 'string' ? props.title : undefined + }), + props.title, + icon || _react2["default"].createElement('i', { className: prefixCls + '-arrow' }) + ); + var children = this.renderChildren(props.children); - var yo = moment.defineLocale('yo', { - months: 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split( - '_' - ), - monthsShort: 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'), - weekdays: 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'), - weekdaysShort: 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'), - weekdaysMin: 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'), - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY h:mm A', - LLLL: 'dddd, D MMMM YYYY h:mm A', - }, - calendar: { - sameDay: '[Ònì ni] LT', - nextDay: '[Ọ̀la ni] LT', - nextWeek: "dddd [Ọsẹ̀ tón'bọ] [ni] LT", - lastDay: '[Àna ni] LT', - lastWeek: 'dddd [Ọsẹ̀ tólọ́] [ni] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'ní %s', - past: '%s kọjá', - s: 'ìsẹjú aayá die', - ss: 'aayá %d', - m: 'ìsẹjú kan', - mm: 'ìsẹjú %d', - h: 'wákati kan', - hh: 'wákati %d', - d: 'ọjọ́ kan', - dd: 'ọjọ́ %d', - M: 'osù kan', - MM: 'osù %d', - y: 'ọdún kan', - yy: 'ọdún %d', - }, - dayOfMonthOrdinalParse: /ọjọ́\s\d{1,2}/, - ordinal: 'ọjọ́ %d', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, + var getPopupContainer = function getPopupContainer(triggerNode) { + return triggerNode.parentNode; + }; + var popupPlacement = popupPlacementMap[props.mode]; + var popupAlign = props.popupOffset ? { offset: props.popupOffset } : {}; + var popupClassName = props.mode === 'inline' ? '' : props.popupClassName; + var disabled = props.disabled, + triggerSubMenuAction = props.triggerSubMenuAction, + subMenuOpenDelay = props.subMenuOpenDelay, + forceSubMenuRender = props.forceSubMenuRender, + subMenuCloseDelay = props.subMenuCloseDelay, + builtinPlacements = props.builtinPlacements; + + _util.menuAllProps.forEach(function (key) { + return delete props[key]; }); + // Set onClick to null, to ignore propagated onClick event + delete props.onClick; + return _react2["default"].createElement( + 'li', + _extends({}, props, mouseEvents, { + className: className, + role: 'menuitem' + }), + isInlineMode && title, + isInlineMode && children, + !isInlineMode && _react2["default"].createElement( + _rcTrigger2["default"], + { + prefixCls: prefixCls, + popupClassName: prefixCls + '-popup ' + popupClassName, + getPopupContainer: getPopupContainer, + builtinPlacements: _extends({}, _placements2["default"], builtinPlacements), + popupPlacement: this.props.mode == 'vertical' ? this.props.position || popupPlacement : popupPlacement, + popupVisible: isOpen, + popupAlign: popupAlign, + popup: children, + action: disabled ? [] : [triggerSubMenuAction], + mouseEnterDelay: subMenuOpenDelay, + mouseLeaveDelay: subMenuCloseDelay, + onPopupVisibleChange: this.onPopupVisibleChange, + forceRender: forceSubMenuRender + }, + title + ) + ); + }; - return yo; + return SubMenu; + }(_react2["default"].Component); - }))); + SubMenu.propTypes = { + parentMenu: _propTypes2["default"].object, + title: _propTypes2["default"].node, + children: _propTypes2["default"].any, + selectedKeys: _propTypes2["default"].array, + openKeys: _propTypes2["default"].array, + onClick: _propTypes2["default"].func, + onOpenChange: _propTypes2["default"].func, + rootPrefixCls: _propTypes2["default"].string, + eventKey: _propTypes2["default"].string, + multiple: _propTypes2["default"].bool, + active: _propTypes2["default"].bool, // TODO: remove + onItemHover: _propTypes2["default"].func, + onSelect: _propTypes2["default"].func, + triggerSubMenuAction: _propTypes2["default"].string, + onDeselect: _propTypes2["default"].func, + onDestroy: _propTypes2["default"].func, + onMouseEnter: _propTypes2["default"].func, + onMouseLeave: _propTypes2["default"].func, + onTitleMouseEnter: _propTypes2["default"].func, + onTitleMouseLeave: _propTypes2["default"].func, + onTitleClick: _propTypes2["default"].func, + popupOffset: _propTypes2["default"].array, + isOpen: _propTypes2["default"].bool, + store: _propTypes2["default"].object, + mode: _propTypes2["default"].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']), + manualRef: _propTypes2["default"].func, + itemIcon: _propTypes2["default"].oneOfType([_propTypes2["default"].func, _propTypes2["default"].node]), + expandIcon: _propTypes2["default"].oneOfType([_propTypes2["default"].func, _propTypes2["default"].node]), + position: _propTypes2["default"].oneOf(['bottomLeft', 'topLeft', 'leftTop', 'rightTop']) + }; + SubMenu.defaultProps = { + onMouseEnter: _util.noop, + onMouseLeave: _util.noop, + onTitleMouseEnter: _util.noop, + onTitleMouseLeave: _util.noop, + onTitleClick: _util.noop, + manualRef: _util.noop, + mode: 'vertical', + title: '' + }; + var _initialiseProps = function _initialiseProps() { + var _this2 = this; - /***/ }), - /* 463 */ - /***/ (function(module, exports, __webpack_require__) { + this.onDestroy = function (key) { + _this2.props.onDestroy(key); + }; - //! moment.js locale configuration - //! locale : Chinese (Hong Kong) [zh-hk] - //! author : Ben : https://github.com/ben-lin - //! author : Chris Lam : https://github.com/hehachris - //! author : Konstantin : https://github.com/skfd - //! author : Anthony : https://github.com/anthonylau + this.onKeyDown = function (e) { + var keyCode = e.keyCode; + var menu = _this2.menuInstance; + var _props3 = _this2.props, + isOpen = _props3.isOpen, + store = _props3.store; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + if (_this2.props.store.getState().keyboard) { + //是否启用键盘操作 + if (keyCode === _tinperBeeCore.KeyCode.ENTER) { + // this.onTitleClick(e); + menu && menu.onKeyDown && menu.onKeyDown(e); + updateDefaultActiveFirst(store, _this2.props.eventKey, true); + return true; + } - //! moment.js locale configuration + if (keyCode === _tinperBeeCore.KeyCode.RIGHT) { + if (isOpen) { + menu.onKeyDown(e); + } else { + _this2.triggerOpenChange(true); + // need to update current menu's defaultActiveFirst value + updateDefaultActiveFirst(store, _this2.props.eventKey, true); + } + return true; + } + if (keyCode === _tinperBeeCore.KeyCode.LEFT) { + var handled = void 0; + if (isOpen) { + handled = menu.onKeyDown(e); + } else { + return undefined; + } + if (!handled) { + _this2.triggerOpenChange(false); + handled = true; + } + return handled; + } + if (isOpen && (keyCode === _tinperBeeCore.KeyCode.UP || keyCode === _tinperBeeCore.KeyCode.DOWN)) { + return menu.onKeyDown(e); + } + } + }; - var zhHk = moment.defineLocale('zh-hk', { - months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split( - '_' - ), - monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split( - '_' - ), - weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), - weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'), - weekdaysMin: '日_一_二_三_四_五_六'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY/MM/DD', - LL: 'YYYY年M月D日', - LLL: 'YYYY年M月D日 HH:mm', - LLLL: 'YYYY年M月D日dddd HH:mm', - l: 'YYYY/M/D', - ll: 'YYYY年M月D日', - lll: 'YYYY年M月D日 HH:mm', - llll: 'YYYY年M月D日dddd HH:mm', - }, - meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') { - return hour; - } else if (meridiem === '中午') { - return hour >= 11 ? hour : hour + 12; - } else if (meridiem === '下午' || meridiem === '晚上') { - return hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - var hm = hour * 100 + minute; - if (hm < 600) { - return '凌晨'; - } else if (hm < 900) { - return '早上'; - } else if (hm < 1200) { - return '上午'; - } else if (hm === 1200) { - return '中午'; - } else if (hm < 1800) { - return '下午'; - } else { - return '晚上'; - } - }, - calendar: { - sameDay: '[今天]LT', - nextDay: '[明天]LT', - nextWeek: '[下]ddddLT', - lastDay: '[昨天]LT', - lastWeek: '[上]ddddLT', - sameElse: 'L', - }, - dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/, - ordinal: function (number, period) { - switch (period) { - case 'd': - case 'D': - case 'DDD': - return number + '日'; - case 'M': - return number + '月'; - case 'w': - case 'W': - return number + '週'; - default: - return number; - } - }, - relativeTime: { - future: '%s後', - past: '%s前', - s: '幾秒', - ss: '%d 秒', - m: '1 分鐘', - mm: '%d 分鐘', - h: '1 小時', - hh: '%d 小時', - d: '1 天', - dd: '%d 天', - M: '1 個月', - MM: '%d 個月', - y: '1 年', - yy: '%d 年', - }, + this.onOpenChange = function (e) { + _this2.props.onOpenChange(e); + }; + + this.onPopupVisibleChange = function (visible) { + _this2.triggerOpenChange(visible, visible ? 'mouseenter' : 'mouseleave'); + }; + + this.onMouseEnter = function (e) { + var _props4 = _this2.props, + key = _props4.eventKey, + onMouseEnter = _props4.onMouseEnter, + store = _props4.store; + + updateDefaultActiveFirst(store, _this2.props.eventKey, false); + onMouseEnter({ + key: key, + domEvent: e }); + }; - return zhHk; + this.onMouseLeave = function (e) { + var _props5 = _this2.props, + parentMenu = _props5.parentMenu, + eventKey = _props5.eventKey, + onMouseLeave = _props5.onMouseLeave; - }))); + parentMenu.subMenuInstance = _this2; + onMouseLeave({ + key: eventKey, + domEvent: e + }); + }; + this.onTitleMouseEnter = function (domEvent) { + var _props6 = _this2.props, + key = _props6.eventKey, + onItemHover = _props6.onItemHover, + onTitleMouseEnter = _props6.onTitleMouseEnter; - /***/ }), - /* 464 */ - /***/ (function(module, exports, __webpack_require__) { + onItemHover({ + key: key, + hover: true + }); + onTitleMouseEnter({ + key: key, + domEvent: domEvent + }); + }; - //! moment.js locale configuration - //! locale : Chinese (Macau) [zh-mo] - //! author : Ben : https://github.com/ben-lin - //! author : Chris Lam : https://github.com/hehachris - //! author : Tan Yuanhong : https://github.com/le0tan + this.onTitleMouseLeave = function (e) { + var _props7 = _this2.props, + parentMenu = _props7.parentMenu, + eventKey = _props7.eventKey, + onItemHover = _props7.onItemHover, + onTitleMouseLeave = _props7.onTitleMouseLeave; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + parentMenu.subMenuInstance = _this2; + onItemHover({ + key: eventKey, + hover: false + }); + onTitleMouseLeave({ + key: eventKey, + domEvent: e + }); + }; - //! moment.js locale configuration + this.onTitleClick = function (e) { + var props = _this2.props; - var zhMo = moment.defineLocale('zh-mo', { - months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split( - '_' - ), - monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split( - '_' - ), - weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), - weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'), - weekdaysMin: '日_一_二_三_四_五_六'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'YYYY年M月D日', - LLL: 'YYYY年M月D日 HH:mm', - LLLL: 'YYYY年M月D日dddd HH:mm', - l: 'D/M/YYYY', - ll: 'YYYY年M月D日', - lll: 'YYYY年M月D日 HH:mm', - llll: 'YYYY年M月D日dddd HH:mm', - }, - meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') { - return hour; - } else if (meridiem === '中午') { - return hour >= 11 ? hour : hour + 12; - } else if (meridiem === '下午' || meridiem === '晚上') { - return hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - var hm = hour * 100 + minute; - if (hm < 600) { - return '凌晨'; - } else if (hm < 900) { - return '早上'; - } else if (hm < 1130) { - return '上午'; - } else if (hm < 1230) { - return '中午'; - } else if (hm < 1800) { - return '下午'; - } else { - return '晚上'; - } - }, - calendar: { - sameDay: '[今天] LT', - nextDay: '[明天] LT', - nextWeek: '[下]dddd LT', - lastDay: '[昨天] LT', - lastWeek: '[上]dddd LT', - sameElse: 'L', - }, - dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/, - ordinal: function (number, period) { - switch (period) { - case 'd': - case 'D': - case 'DDD': - return number + '日'; - case 'M': - return number + '月'; - case 'w': - case 'W': - return number + '週'; - default: - return number; - } - }, - relativeTime: { - future: '%s內', - past: '%s前', - s: '幾秒', - ss: '%d 秒', - m: '1 分鐘', - mm: '%d 分鐘', - h: '1 小時', - hh: '%d 小時', - d: '1 天', - dd: '%d 天', - M: '1 個月', - MM: '%d 個月', - y: '1 年', - yy: '%d 年', - }, + props.onTitleClick({ + key: props.eventKey, + domEvent: e }); + if (props.triggerSubMenuAction === 'hover') { + return; + } + _this2.triggerOpenChange(!props.isOpen, 'click'); + updateDefaultActiveFirst(props.store, _this2.props.eventKey, false); + }; - return zhMo; + this.onSubMenuClick = function (info) { + // in the case of overflowed submenu + // onClick is not copied over + if (typeof _this2.props.onClick === 'function') { + _this2.props.onClick(_this2.addKeyPath(info)); + } + }; - }))); + this.onSelect = function (info) { + _this2.props.onSelect(info); + }; + this.onDeselect = function (info) { + _this2.props.onDeselect(info); + }; - /***/ }), - /* 465 */ - /***/ (function(module, exports, __webpack_require__) { + this.getPrefixCls = function () { + return _this2.props.rootPrefixCls + '-submenu'; + }; - //! moment.js locale configuration - //! locale : Chinese (Taiwan) [zh-tw] - //! author : Ben : https://github.com/ben-lin - //! author : Chris Lam : https://github.com/hehachris + this.getActiveClassName = function () { + return _this2.getPrefixCls() + '-active'; + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(4)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + this.getDisabledClassName = function () { + return _this2.getPrefixCls() + '-disabled'; + }; - //! moment.js locale configuration + this.getSelectedClassName = function () { + return _this2.getPrefixCls() + '-selected'; + }; - var zhTw = moment.defineLocale('zh-tw', { - months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split( - '_' - ), - monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split( - '_' - ), - weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), - weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'), - weekdaysMin: '日_一_二_三_四_五_六'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY/MM/DD', - LL: 'YYYY年M月D日', - LLL: 'YYYY年M月D日 HH:mm', - LLLL: 'YYYY年M月D日dddd HH:mm', - l: 'YYYY/M/D', - ll: 'YYYY年M月D日', - lll: 'YYYY年M月D日 HH:mm', - llll: 'YYYY年M月D日dddd HH:mm', - }, - meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') { - return hour; - } else if (meridiem === '中午') { - return hour >= 11 ? hour : hour + 12; - } else if (meridiem === '下午' || meridiem === '晚上') { - return hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - var hm = hour * 100 + minute; - if (hm < 600) { - return '凌晨'; - } else if (hm < 900) { - return '早上'; - } else if (hm < 1130) { - return '上午'; - } else if (hm < 1230) { - return '中午'; - } else if (hm < 1800) { - return '下午'; - } else { - return '晚上'; - } - }, - calendar: { - sameDay: '[今天] LT', - nextDay: '[明天] LT', - nextWeek: '[下]dddd LT', - lastDay: '[昨天] LT', - lastWeek: '[上]dddd LT', - sameElse: 'L', - }, - dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/, - ordinal: function (number, period) { - switch (period) { - case 'd': - case 'D': - case 'DDD': - return number + '日'; - case 'M': - return number + '月'; - case 'w': - case 'W': - return number + '週'; - default: - return number; - } - }, - relativeTime: { - future: '%s後', - past: '%s前', - s: '幾秒', - ss: '%d 秒', - m: '1 分鐘', - mm: '%d 分鐘', - h: '1 小時', - hh: '%d 小時', - d: '1 天', - dd: '%d 天', - M: '1 個月', - MM: '%d 個月', - y: '1 年', - yy: '%d 年', - }, - }); + this.getOpenClassName = function () { + return _this2.props.rootPrefixCls + '-submenu-open'; + }; - return zhTw; + this.saveMenuInstance = function (c) { + // children menu instance + _this2.menuInstance = c; + }; - }))); + this.addKeyPath = function (info) { + return _extends({}, info, { + keyPath: (info.keyPath || []).concat(_this2.props.eventKey) + }); + }; + this.triggerOpenChange = function (open, type) { + var key = _this2.props.eventKey; + var openChange = function openChange() { + _this2.onOpenChange({ + key: key, + item: _this2, + trigger: type, + open: open + }); + }; + if (type === 'mouseenter') { + // make sure mouseenter happen after other menu item's mouseleave + _this2.mouseenterTimeout = setTimeout(function () { + openChange(); + }, 0); + } else { + openChange(); + } + }; - /***/ }), - /* 466 */ - /***/ (function(module, exports, __webpack_require__) { + this.isChildrenSelected = function () { + var ret = { find: false }; + (0, _util.loopMenuItemRecursively)(_this2.props.children, _this2.props.selectedKeys, ret); + return ret.find; + }; - "use strict"; + this.isOpen = function () { + return _this2.props.openKeys.indexOf(_this2.props.eventKey) !== -1; + }; + this.adjustWidth = function () { + /* istanbul ignore if */ + if (!_this2.subMenuTitle || !_this2.menuInstance) { + return; + } + var popupMenu = _reactDom2["default"].findDOMNode(_this2.menuInstance); + if (popupMenu.offsetWidth >= _this2.subMenuTitle.offsetWidth) { + return; + } - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = mapSelf; + /* istanbul ignore next */ + popupMenu.style.minWidth = _this2.subMenuTitle.offsetWidth + 'px'; //bug是因为在这里加了一个minWidth + }; - var _react = _interopRequireDefault(__webpack_require__(0)); + this.saveSubMenuTitle = function (subMenuTitle) { + _this2.subMenuTitle = subMenuTitle; + }; + }; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + var connected = (0, _miniStore.connect)(function (_ref, _ref2) { + var openKeys = _ref.openKeys, + activeKey = _ref.activeKey, + selectedKeys = _ref.selectedKeys; + var eventKey = _ref2.eventKey, + subMenuKey = _ref2.subMenuKey; + return { + isOpen: openKeys.indexOf(eventKey) > -1, + active: activeKey[subMenuKey] === eventKey, + selectedKeys: selectedKeys + }; + })(SubMenu); - function mirror(o) { - return o; - } + connected.isSubMenu = true; - function mapSelf(children) { - // return ReactFragment - return _react.default.Children.map(children, mirror); - } + exports["default"] = connected; /***/ }), - /* 467 */ + /* 292 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; - exports.__esModule = true; - exports.default = addEventListenerWrap; - - var _addDomEventListener = __webpack_require__(12); - - var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener); - - var _reactDom = __webpack_require__(3); - - var _reactDom2 = _interopRequireDefault(_reactDom); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports["default"] = uid; + var now = +new Date(); + var index = 0; - /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ - function addEventListenerWrap(target, eventType, cb) { - /* eslint camelcase: 2 */ - var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) { - _reactDom2.default.unstable_batchedUpdates(cb, e); - } : cb; - return (0, _addDomEventListener2.default)(target, eventType, callback); + function uid() { + return "u-upload-" + now + "-" + ++index; } + module.exports = exports["default"]; /***/ }), - /* 468 */ + /* 293 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { - value: true + value: true }); + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + var _react = __webpack_require__(0); var _react2 = _interopRequireDefault(_react); - var _propTypes = __webpack_require__(1); - - var _propTypes2 = _interopRequireDefault(_propTypes); - - var _classnames = __webpack_require__(2); - - var _classnames2 = _interopRequireDefault(_classnames); - - var _DecadePanel = __webpack_require__(469); + var _Modal = __webpack_require__(161); - var _DecadePanel2 = _interopRequireDefault(_DecadePanel); + var _Modal2 = _interopRequireDefault(_Modal); - var _DateInput = __webpack_require__(78); + var _confirm = __webpack_require__(1118); - var _DateInput2 = _interopRequireDefault(_DateInput); + var _confirm2 = _interopRequireDefault(_confirm); - var _moment = __webpack_require__(4); + var _beeIcon = __webpack_require__(13); - var _moment2 = _interopRequireDefault(_moment); + var _beeIcon2 = _interopRequireDefault(_beeIcon); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + _Modal2["default"].info = function (props) { + var config = _extends({ + type: 'info', + icon: _react2["default"].createElement(_beeIcon2["default"], { type: 'uf-i-c-2' }), + okCancel: false + }, props); + return (0, _confirm2["default"])(config); + }; - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + _Modal2["default"].success = function (props) { + var config = _extends({ + type: 'success', + icon: _react2["default"].createElement(_beeIcon2["default"], { type: 'uf-correct' }), + okCancel: false + }, props); + return (0, _confirm2["default"])(config); + }; - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + _Modal2["default"].error = function (props) { + var config = _extends({ + type: 'error', + icon: _react2["default"].createElement(_beeIcon2["default"], { type: 'uf-exc-c' }), + okCancel: false + }, props); + return (0, _confirm2["default"])(config); + }; - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + _Modal2["default"].warning = function (props) { + var config = _extends({ + type: 'warning', + icon: _react2["default"].createElement(_beeIcon2["default"], { type: 'uf-exc-t' }), + okCancel: false + }, props); + return (0, _confirm2["default"])(config); + }; - var ROW = 4; - var COL = 3; + _Modal2["default"].confirm = function (props) { + var config = _extends({ + type: 'confirm', + okCancel: true, + confirmType: 'one' + }, props); + return (0, _confirm2["default"])(config); + }; - function goYear(direction) { - var value = this.state.value.clone(); - value.add(direction, 'year'); - this.setState({ - value: value - }); - } + // onOk: ()=>{ + // console.log('onOk') + // }, + // onCancel:()=>{ + // console.log('onCancel') + // }, + // title:'提示信息', + // keyword:'删除', + // content:"确定要删除吗?", - function chooseYear(year) { - var value = this.state.value.clone(); - value.year(year); - value.month(this.state.value.month()); - this.props.onSelect(value); - } + _Modal2["default"].destroyAll = function () { + while (_Modal.destroyFns.length) { + var close = _Modal.destroyFns.pop(); + if (close) { + close(); + } + } + }; - var YearPanel = function (_React$Component) { - _inherits(YearPanel, _React$Component); + exports["default"] = _Modal2["default"]; + module.exports = exports['default']; - function YearPanel(props) { - _classCallCheck(this, YearPanel); + /***/ }), + /* 294 */ + /***/ (function(module, exports, __webpack_require__) { - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); + "use strict"; - _this.yearSelect = function (value) { - var _this$props = _this.props, - onSelect = _this$props.onSelect, - format = _this$props.format; - onSelect && onSelect(value, value ? value.format(format) : ''); - }; + exports.__esModule = true; + exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined; - _this.onInputChange = function (value) { - var _this$props2 = _this.props, - onChange = _this$props2.onChange, - format = _this$props2.format; + var _all2 = __webpack_require__(1039); - _this.setState({ - value: value ? value : (0, _moment2["default"])() - }); - onChange && onChange(value, value ? value.format(format) : ''); - }; + var _all3 = _interopRequireDefault(_all2); - _this.onClear = function () { - var _this$props3 = _this.props, - onChange = _this$props3.onChange, - format = _this$props3.format, - onClear = _this$props3.onClear; + var _componentOrElement2 = __webpack_require__(1040); - _this.setState({ - value: (0, _moment2["default"])() - }); - onChange && onChange('', ''); - onClear && onClear('', ''); - }; + var _componentOrElement3 = _interopRequireDefault(_componentOrElement2); - _this.prefixCls = props.rootPrefixCls + '-year-panel'; - _this.state = { - value: props.value || props.defaultValue || (0, _moment2["default"])() - }; - _this.nextDecade = goYear.bind(_this, 10); - _this.previousDecade = goYear.bind(_this, -10); - ['showDecadePanel', 'onDecadePanelSelect'].forEach(function (method) { - _this[method] = _this[method].bind(_this); - }); - return _this; - } + var _deprecated2 = __webpack_require__(1041); - YearPanel.prototype.onDecadePanelSelect = function onDecadePanelSelect(current) { - this.setState({ - value: current, - showDecadePanel: 0 - }); - }; + var _deprecated3 = _interopRequireDefault(_deprecated2); - YearPanel.prototype.years = function years() { - var value = this.state.value; - var currentYear = value.year(); - var startYear = parseInt(currentYear / 10, 10) * 10; - var previousYear = startYear - 1; - var years = []; - var index = 0; - for (var rowIndex = 0; rowIndex < ROW; rowIndex++) { - years[rowIndex] = []; - for (var colIndex = 0; colIndex < COL; colIndex++) { - var year = previousYear + index; - var content = String(year); - years[rowIndex][colIndex] = { - content: content, - year: year, - title: content - }; - index++; - } - } - return years; - }; + var _elementType2 = __webpack_require__(1042); - YearPanel.prototype.showDecadePanel = function showDecadePanel() { - this.setState({ - showDecadePanel: 1 - }); - }; + var _elementType3 = _interopRequireDefault(_elementType2); - YearPanel.prototype.render = function render() { - var _this2 = this; + var _isRequiredForA11y2 = __webpack_require__(1043); - var props = this.props; - var value = this.state.value; - var locale = props.locale; - var years = this.years(); - var currentYear = value.year(); - var startYear = parseInt(currentYear / 10, 10) * 10; - var endYear = startYear + 9; - var prefixCls = this.prefixCls; + var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2); - var yeasEls = years.map(function (row, index) { - var tds = row.map(function (yearData) { - var _classNameMap; + var _splitComponent2 = __webpack_require__(1044); - var classNameMap = (_classNameMap = {}, _defineProperty(_classNameMap, prefixCls + '-cell', 1), _defineProperty(_classNameMap, prefixCls + '-selected-cell', yearData.year === currentYear), _defineProperty(_classNameMap, prefixCls + '-last-decade-cell', yearData.year < startYear), _defineProperty(_classNameMap, prefixCls + '-next-decade-cell', yearData.year > endYear), _classNameMap); - var clickHandler = void 0; - if (yearData.year < startYear) { - clickHandler = _this2.previousDecade; - } else if (yearData.year > endYear) { - clickHandler = _this2.nextDecade; - } else { - clickHandler = chooseYear.bind(_this2, yearData.year); - } - return _react2["default"].createElement( - 'td', - { - role: 'gridcell', - title: yearData.title, - key: yearData.content, - onClick: clickHandler, - className: (0, _classnames2["default"])(classNameMap) - }, - _react2["default"].createElement( - 'a', - { - className: prefixCls + '-year' - }, - yearData.content - ) - ); - }); - return _react2["default"].createElement( - 'tr', - { key: index, role: 'row' }, - tds - ); - }); + var _splitComponent3 = _interopRequireDefault(_splitComponent2); - var decadePanel = void 0; - if (this.state.showDecadePanel) { - decadePanel = _react2["default"].createElement(_DecadePanel2["default"], { - locale: locale, - value: value, - rootPrefixCls: props.rootPrefixCls, - onSelect: this.onDecadePanelSelect - }); - } - var showDateInput = props.showDateInput, - rootPrefixCls = props.rootPrefixCls, - format = props.format, - validatorFunc = props.validatorFunc; + var _createChainedFunction2 = __webpack_require__(1045); - return _react2["default"].createElement( - 'div', - { className: this.prefixCls }, - _react2["default"].createElement( - 'div', - null, - showDateInput ? _react2["default"].createElement(_DateInput2["default"], { - value: value, - prefixCls: this.props.rootPrefixCls, - showClear: true, - locale: locale, - format: format, - onChange: this.onInputChange, - selectedValue: value, - onClear: this.onClear, - onSelect: this.yearSelect, - validatorFunc: validatorFunc - }) : '', - _react2["default"].createElement( - 'div', - { className: prefixCls + '-header' }, - _react2["default"].createElement('a', { - className: prefixCls + '-prev-decade-btn', - role: 'button', - onClick: this.previousDecade, - title: locale.previousDecade - }), - _react2["default"].createElement( - 'a', - { - className: prefixCls + '-decade-select', - role: 'button', - onClick: this.showDecadePanel, - title: locale.decadeSelect - }, - _react2["default"].createElement( - 'span', - { className: prefixCls + '-decade-select-content' }, - startYear, - '-', - endYear - ), - _react2["default"].createElement( - 'span', - { className: prefixCls + '-decade-select-arrow' }, - 'x' - ) - ), - _react2["default"].createElement('a', { - className: prefixCls + '-next-decade-btn', - role: 'button', - onClick: this.nextDecade, - title: locale.nextDecade - }) - ), - _react2["default"].createElement( - 'div', - { className: prefixCls + '-body' }, - _react2["default"].createElement( - 'table', - { className: prefixCls + '-table', cellSpacing: '0', role: 'grid' }, - _react2["default"].createElement( - 'tbody', - { className: prefixCls + '-tbody' }, - yeasEls - ) - ) - ) - ), - decadePanel - ); - }; + var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2); - return YearPanel; - }(_react2["default"].Component); + var _keyCode = __webpack_require__(1046); - exports["default"] = YearPanel; + var _keyCode2 = _interopRequireDefault(_keyCode); + var _contains2 = __webpack_require__(1047); - YearPanel.propTypes = { - rootPrefixCls: _propTypes2["default"].string, - value: _propTypes2["default"].object, - defaultValue: _propTypes2["default"].object - }; + var _contains3 = _interopRequireDefault(_contains2); - YearPanel.defaultProps = { - onSelect: function onSelect() {}, + var _addEventListener2 = __webpack_require__(295); - format: 'YYYY', - showDateInput: false - }; - module.exports = exports['default']; + var _addEventListener3 = _interopRequireDefault(_addEventListener2); - /***/ }), - /* 469 */ - /***/ (function(module, exports, __webpack_require__) { + var _cssAnimation2 = __webpack_require__(1048); - "use strict"; + var _cssAnimation3 = _interopRequireDefault(_cssAnimation2); + var _toArray2 = __webpack_require__(1050); - Object.defineProperty(exports, "__esModule", { - value: true - }); + var _toArray3 = _interopRequireDefault(_toArray2); - var _react = __webpack_require__(0); + var _Align2 = __webpack_require__(1051); - var _react2 = _interopRequireDefault(_react); + var _Align3 = _interopRequireDefault(_Align2); - var _propTypes = __webpack_require__(1); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var _propTypes2 = _interopRequireDefault(_propTypes); + exports.all = _all3.default; + exports.componentOrElement = _componentOrElement3.default; + exports.deprecated = _deprecated3.default; + exports.elementType = _elementType3.default; + exports.isRequiredForA11y = _isRequiredForA11y3.default; + exports.splitComponent = _splitComponent3.default; + exports.createChainedFunction = _createChainedFunction3.default; + exports.KeyCode = _keyCode2.default; + exports.contains = _contains3.default; + exports.addEventListener = _addEventListener3.default; + exports.cssAnimation = _cssAnimation3.default; + exports.toArray = _toArray3.default; + //export getContainerRenderMixin from './getContainerRenderMixin'; - var _classnames = __webpack_require__(2); + exports.Align = _Align3.default; - var _classnames2 = _interopRequireDefault(_classnames); + /***/ }), + /* 295 */ + /***/ (function(module, exports, __webpack_require__) { - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + "use strict"; - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + exports.__esModule = true; + exports.default = addEventListenerWrap; - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + var _addDomEventListener = __webpack_require__(16); - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener); - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + var _reactDom = __webpack_require__(3); - var ROW = 4; - var COL = 3; + var _reactDom2 = _interopRequireDefault(_reactDom); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - function goYear(direction) { - var next = this.state.value.clone(); - next.add(direction, 'years'); - this.setState({ - value: next - }); + /** + * This source code is quoted from rc-util. + * homepage: https://github.com/react-component/util + */ + function addEventListenerWrap(target, eventType, cb) { + /* eslint camelcase: 2 */ + var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) { + _reactDom2.default.unstable_batchedUpdates(cb, e); + } : cb; + return (0, _addDomEventListener2.default)(target, eventType, callback); } - function chooseDecade(year, event) { - var next = this.state.value.clone(); - next.year(year); - next.month(this.state.value.month()); - this.props.onSelect(next); - event.preventDefault(); - } + /***/ }), + /* 296 */ + /***/ (function(module, exports, __webpack_require__) { - var DecadePanel = function (_React$Component) { - _inherits(DecadePanel, _React$Component); + "use strict"; - function DecadePanel(props) { - _classCallCheck(this, DecadePanel); - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); + Object.defineProperty(exports, "__esModule", { + value: true + }); - _this.state = { - value: props.value || props.defaultValue - }; + exports["default"] = function (componentOrElement) { + return (0, _ownerDocument2["default"])(_reactDom2["default"].findDOMNode(componentOrElement)); + }; - // bind methods - _this.prefixCls = props.rootPrefixCls + '-decade-panel'; - _this.nextCentury = goYear.bind(_this, 100); - _this.previousCentury = goYear.bind(_this, -100); - return _this; - } + var _reactDom = __webpack_require__(3); - DecadePanel.prototype.render = function render() { - var _this2 = this; + var _reactDom2 = _interopRequireDefault(_reactDom); - var value = this.state.value; - var _props = this.props, - locale = _props.locale, - renderFooter = _props.renderFooter; + var _ownerDocument = __webpack_require__(23); - var currentYear = value.year(); - var startYear = parseInt(currentYear / 100, 10) * 100; - var preYear = startYear - 10; - var endYear = startYear + 99; - var decades = []; - var index = 0; - var prefixCls = this.prefixCls; + var _ownerDocument2 = _interopRequireDefault(_ownerDocument); - for (var rowIndex = 0; rowIndex < ROW; rowIndex++) { - decades[rowIndex] = []; - for (var colIndex = 0; colIndex < COL; colIndex++) { - var startDecade = preYear + index * 10; - var endDecade = preYear + index * 10 + 9; - decades[rowIndex][colIndex] = { - startDecade: startDecade, - endDecade: endDecade - }; - index++; - } - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - var footer = renderFooter && renderFooter('decade'); + module.exports = exports['default']; - var decadesEls = decades.map(function (row, decadeIndex) { - var tds = row.map(function (decadeData) { - var _classNameMap; + /***/ }), + /* 297 */ + /***/ (function(module, exports, __webpack_require__) { - var dStartDecade = decadeData.startDecade; - var dEndDecade = decadeData.endDecade; - var isLast = dStartDecade < startYear; - var isNext = dEndDecade > endYear; - var classNameMap = (_classNameMap = {}, _defineProperty(_classNameMap, prefixCls + '-cell', 1), _defineProperty(_classNameMap, prefixCls + '-selected-cell', dStartDecade <= currentYear && currentYear <= dEndDecade), _defineProperty(_classNameMap, prefixCls + '-last-century-cell', isLast), _defineProperty(_classNameMap, prefixCls + '-next-century-cell', isNext), _classNameMap); - var content = dStartDecade + '-' + dEndDecade; - var clickHandler = void 0; - if (isLast) { - clickHandler = _this2.previousCentury; - } else if (isNext) { - clickHandler = _this2.nextCentury; - } else { - clickHandler = chooseDecade.bind(_this2, dStartDecade); - } - return _react2["default"].createElement( - 'td', - { - key: dStartDecade, - onClick: clickHandler, - role: 'gridcell', - className: (0, _classnames2["default"])(classNameMap) - }, - _react2["default"].createElement( - 'a', - { - className: prefixCls + '-decade' - }, - content - ) - ); - }); - return _react2["default"].createElement( - 'tr', - { key: decadeIndex, role: 'row' }, - tds - ); - }); + "use strict"; - return _react2["default"].createElement( - 'div', - { className: this.prefixCls }, - _react2["default"].createElement( - 'div', - { className: prefixCls + '-header' }, - _react2["default"].createElement('a', { - className: prefixCls + '-prev-century-btn', - role: 'button', - onClick: this.previousCentury, - title: locale.previousCentury - }), - _react2["default"].createElement( - 'div', - { className: prefixCls + '-century' }, - startYear, - '-', - endYear - ), - _react2["default"].createElement('a', { - className: prefixCls + '-next-century-btn', - role: 'button', - onClick: this.nextCentury, - title: locale.nextCentury - }) - ), - _react2["default"].createElement( - 'div', - { className: prefixCls + '-body' }, - _react2["default"].createElement( - 'table', - { className: prefixCls + '-table', cellSpacing: '0', role: 'grid' }, - _react2["default"].createElement( - 'tbody', - { className: prefixCls + '-tbody' }, - decadesEls - ) - ) - ), - footer && _react2["default"].createElement( - 'div', - { className: prefixCls + '-footer' }, - footer - ) - ); - }; - return DecadePanel; - }(_react2["default"].Component); + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports["default"] = getContainer; - exports["default"] = DecadePanel; + var _reactDom = __webpack_require__(3); + var _reactDom2 = _interopRequireDefault(_reactDom); - DecadePanel.propTypes = { - locale: _propTypes2["default"].object, - value: _propTypes2["default"].object, - defaultValue: _propTypes2["default"].object, - rootPrefixCls: _propTypes2["default"].string, - renderFooter: _propTypes2["default"].func - }; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - DecadePanel.defaultProps = { - onSelect: function onSelect() {} - }; + /** + * 获取容器组件 + * @param {[type]} container [description] + * @param {[type]} defaultContainer [description] + * @return {[type]} [description] + */ + function getContainer(container, defaultContainer) { + container = typeof container === 'function' ? container() : container; + return _reactDom2["default"].findDOMNode(container) || defaultContainer; + } module.exports = exports['default']; /***/ }), - /* 470 */ + /* 298 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -155088,2463 +137998,2488 @@ Object.defineProperty(exports, "__esModule", { value: true }); + exports.default = hasClass; + function hasClass(element, className) { + if (element.classList) return !!className && element.classList.contains(className);else return (" " + element.className + " ").indexOf(" " + className + " ") !== -1; + } + module.exports = exports["default"]; - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + /***/ }), + /* 299 */ + /***/ (function(module, exports, __webpack_require__) { - var _react = __webpack_require__(0); + module.exports = __webpack_require__(215); - var _react2 = _interopRequireDefault(_react); + /***/ }), + /* 300 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { - var _reactDom = __webpack_require__(3); + "use strict"; + /* WEBPACK VAR INJECTION */(function(process) {var isProduction = process.env.NODE_ENV === 'production'; + var prefix = 'Invariant failed'; + function invariant(condition, message) { + if (condition) { + return; + } + if (isProduction) { + throw new Error(prefix); + } + throw new Error(prefix + ": " + (message || '')); + } - var _reactDom2 = _interopRequireDefault(_reactDom); + /* harmony default export */ __webpack_exports__["a"] = (invariant); - var _propTypes = __webpack_require__(1); + /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(5))) - var _propTypes2 = _interopRequireDefault(_propTypes); + /***/ }), + /* 301 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { - var _mapSelf = __webpack_require__(466); + "use strict"; + /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export __DO_NOT_USE__ActionTypes */ + /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return applyMiddleware; }); + /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return bindActionCreators; }); + /* unused harmony export combineReducers */ + /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return compose; }); + /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return createStore; }); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_symbol_observable__ = __webpack_require__(1076); - var _mapSelf2 = _interopRequireDefault(_mapSelf); - var _classnames = __webpack_require__(2); + /** + * These are private action types reserved by Redux. + * For any unknown actions, you must return the current state. + * If the current state is undefined, you must return the initial state. + * Do not reference these action types directly in your code. + */ + var randomString = function randomString() { + return Math.random().toString(36).substring(7).split('').join('.'); + }; - var _classnames2 = _interopRequireDefault(_classnames); + var ActionTypes = { + INIT: "@@redux/INIT" + randomString(), + REPLACE: "@@redux/REPLACE" + randomString(), + PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() { + return "@@redux/PROBE_UNKNOWN_ACTION" + randomString(); + } + }; - var _TodayButton = __webpack_require__(471); + /** + * @param {any} obj The object to inspect. + * @returns {boolean} True if the argument appears to be a plain object. + */ + function isPlainObject(obj) { + if (typeof obj !== 'object' || obj === null) return false; + var proto = obj; - var _TodayButton2 = _interopRequireDefault(_TodayButton); + while (Object.getPrototypeOf(proto) !== null) { + proto = Object.getPrototypeOf(proto); + } - var _OkButton = __webpack_require__(472); + return Object.getPrototypeOf(obj) === proto; + } - var _OkButton2 = _interopRequireDefault(_OkButton); + /** + * Creates a Redux store that holds the state tree. + * The only way to change the data in the store is to call `dispatch()` on it. + * + * There should only be a single store in your app. To specify how different + * parts of the state tree respond to actions, you may combine several reducers + * into a single reducer function by using `combineReducers`. + * + * @param {Function} reducer A function that returns the next state tree, given + * the current state tree and the action to handle. + * + * @param {any} [preloadedState] The initial state. You may optionally specify it + * to hydrate the state from the server in universal apps, or to restore a + * previously serialized user session. + * If you use `combineReducers` to produce the root reducer function, this must be + * an object with the same shape as `combineReducers` keys. + * + * @param {Function} [enhancer] The store enhancer. You may optionally specify it + * to enhance the store with third-party capabilities such as middleware, + * time travel, persistence, etc. The only store enhancer that ships with Redux + * is `applyMiddleware()`. + * + * @returns {Store} A Redux store that lets you read the state, dispatch actions + * and subscribe to changes. + */ - var _TimePickerButton = __webpack_require__(473); + function createStore(reducer, preloadedState, enhancer) { + var _ref2; - var _TimePickerButton2 = _interopRequireDefault(_TimePickerButton); + if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') { + throw new Error('It looks like you are passing several store enhancers to ' + 'createStore(). This is not supported. Instead, compose them ' + 'together to a single function.'); + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') { + enhancer = preloadedState; + preloadedState = undefined; + } - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + if (typeof enhancer !== 'undefined') { + if (typeof enhancer !== 'function') { + throw new Error('Expected the enhancer to be a function.'); + } - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + return enhancer(createStore)(reducer, preloadedState); + } - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + if (typeof reducer !== 'function') { + throw new Error('Expected the reducer to be a function.'); + } - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + var currentReducer = reducer; + var currentState = preloadedState; + var currentListeners = []; + var nextListeners = currentListeners; + var isDispatching = false; + /** + * This makes a shallow copy of currentListeners so we can use + * nextListeners as a temporary list while dispatching. + * + * This prevents any bugs around consumers calling + * subscribe/unsubscribe in the middle of a dispatch. + */ - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + function ensureCanMutateNextListeners() { + if (nextListeners === currentListeners) { + nextListeners = currentListeners.slice(); + } + } + /** + * Reads the state tree managed by the store. + * + * @returns {any} The current state tree of your application. + */ - var CalendarFooter = function (_React$Component) { - _inherits(CalendarFooter, _React$Component); - function CalendarFooter() { - _classCallCheck(this, CalendarFooter); + function getState() { + if (isDispatching) { + throw new Error('You may not call store.getState() while the reducer is executing. ' + 'The reducer has already received the state as an argument. ' + 'Pass it down from the top reducer instead of reading it from the store.'); + } - return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); + return currentState; } + /** + * Adds a change listener. It will be called any time an action is dispatched, + * and some part of the state tree may potentially have changed. You may then + * call `getState()` to read the current state tree inside the callback. + * + * You may call `dispatch()` from a change listener, with the following + * caveats: + * + * 1. The subscriptions are snapshotted just before every `dispatch()` call. + * If you subscribe or unsubscribe while the listeners are being invoked, this + * will not have any effect on the `dispatch()` that is currently in progress. + * However, the next `dispatch()` call, whether nested or not, will use a more + * recent snapshot of the subscription list. + * + * 2. The listener should not expect to see all state changes, as the state + * might have been updated multiple times during a nested `dispatch()` before + * the listener is called. It is, however, guaranteed that all subscribers + * registered before the `dispatch()` started will be called with the latest + * state by the time it exits. + * + * @param {Function} listener A callback to be invoked on every dispatch. + * @returns {Function} A function to remove this change listener. + */ - CalendarFooter.prototype.onSelect = function onSelect(value) { - this.props.onSelect(value); - }; - CalendarFooter.prototype.getRootDOMNode = function getRootDOMNode() { - return _reactDom2["default"].findDOMNode(this); - }; + function subscribe(listener) { + if (typeof listener !== 'function') { + throw new Error('Expected the listener to be a function.'); + } - CalendarFooter.prototype.render = function render() { - var props = this.props; - var value = props.value, - prefixCls = props.prefixCls, - showOk = props.showOk, - timePicker = props.timePicker, - renderFooter = props.renderFooter, - mode = props.mode; + if (isDispatching) { + throw new Error('You may not call store.subscribe() while the reducer is executing. ' + 'If you would like to be notified after the store has been updated, subscribe from a ' + 'component and invoke store.getState() in the callback to access the latest state. ' + 'See https://redux.js.org/api-reference/store#subscribelistener for more details.'); + } - var footerEl = null; - var extraFooter = renderFooter && renderFooter(mode); - if (props.showToday || timePicker || extraFooter) { - var nowEl = void 0; - if (props.showToday) { - nowEl = _react2["default"].createElement(_TodayButton2["default"], _extends({}, props, { value: value })); - } - var okBtn = void 0; - if (showOk === true || showOk !== false && !!props.timePicker) { - okBtn = _react2["default"].createElement(_OkButton2["default"], props); - } - var timePickerBtn = void 0; - if (!!props.timePicker) { - timePickerBtn = _react2["default"].createElement(_TimePickerButton2["default"], props); + var isSubscribed = true; + ensureCanMutateNextListeners(); + nextListeners.push(listener); + return function unsubscribe() { + if (!isSubscribed) { + return; } - var footerBtn = void 0; - if (nowEl || timePickerBtn || okBtn || extraFooter) { - footerBtn = _react2["default"].createElement( - 'span', - { className: prefixCls + '-footer-btn' }, - extraFooter ? _react2["default"].createElement( - 'div', - { className: prefixCls + '-footer-extra' }, - extraFooter - ) : null, - (0, _mapSelf2["default"])([nowEl, timePickerBtn, okBtn]) - ); + if (isDispatching) { + throw new Error('You may not unsubscribe from a store listener while the reducer is executing. ' + 'See https://redux.js.org/api-reference/store#subscribelistener for more details.'); } - var cls = (0, _classnames2["default"])(prefixCls + '-footer', _defineProperty({}, prefixCls + '-footer-show-ok', okBtn)); - footerEl = _react2["default"].createElement( - 'div', - { className: cls }, - footerBtn - ); + + isSubscribed = false; + ensureCanMutateNextListeners(); + var index = nextListeners.indexOf(listener); + nextListeners.splice(index, 1); + currentListeners = null; + }; + } + /** + * Dispatches an action. It is the only way to trigger a state change. + * + * The `reducer` function, used to create the store, will be called with the + * current state tree and the given `action`. Its return value will + * be considered the **next** state of the tree, and the change listeners + * will be notified. + * + * The base implementation only supports plain object actions. If you want to + * dispatch a Promise, an Observable, a thunk, or something else, you need to + * wrap your store creating function into the corresponding middleware. For + * example, see the documentation for the `redux-thunk` package. Even the + * middleware will eventually dispatch plain object actions using this method. + * + * @param {Object} action A plain object representing “what changed”. It is + * a good idea to keep actions serializable so you can record and replay user + * sessions, or use the time travelling `redux-devtools`. An action must have + * a `type` property which may not be `undefined`. It is a good idea to use + * string constants for action types. + * + * @returns {Object} For convenience, the same action object you dispatched. + * + * Note that, if you use a custom middleware, it may wrap `dispatch()` to + * return something else (for example, a Promise you can await). + */ + + + function dispatch(action) { + if (!isPlainObject(action)) { + throw new Error('Actions must be plain objects. ' + 'Use custom middleware for async actions.'); } - return footerEl; - }; - return CalendarFooter; - }(_react2["default"].Component); + if (typeof action.type === 'undefined') { + throw new Error('Actions may not have an undefined "type" property. ' + 'Have you misspelled a constant?'); + } - CalendarFooter.propTypes = { - prefixCls: _propTypes2["default"].string, - showDateInput: _propTypes2["default"].bool, - disabledTime: _propTypes2["default"].any, - timePicker: _propTypes2["default"].element, - selectedValue: _propTypes2["default"].any, - showOk: _propTypes2["default"].bool, - onSelect: _propTypes2["default"].func, - value: _propTypes2["default"].object, - renderFooter: _propTypes2["default"].func, - defaultValue: _propTypes2["default"].object, - mode: _propTypes2["default"].string - }; - exports["default"] = CalendarFooter; - module.exports = exports['default']; + if (isDispatching) { + throw new Error('Reducers may not dispatch actions.'); + } - /***/ }), - /* 471 */ - /***/ (function(module, exports, __webpack_require__) { + try { + isDispatching = true; + currentState = currentReducer(currentState, action); + } finally { + isDispatching = false; + } - "use strict"; + var listeners = currentListeners = nextListeners; + for (var i = 0; i < listeners.length; i++) { + var listener = listeners[i]; + listener(); + } - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports["default"] = TodayButton; + return action; + } + /** + * Replaces the reducer currently used by the store to calculate the state. + * + * You might need this if your app implements code splitting and you want to + * load some of the reducers dynamically. You might also need this if you + * implement a hot reloading mechanism for Redux. + * + * @param {Function} nextReducer The reducer for the store to use instead. + * @returns {void} + */ - var _react = __webpack_require__(0); - var _react2 = _interopRequireDefault(_react); + function replaceReducer(nextReducer) { + if (typeof nextReducer !== 'function') { + throw new Error('Expected the nextReducer to be a function.'); + } + + currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT. + // Any reducers that existed in both the new and old rootReducer + // will receive the previous state. This effectively populates + // the new state tree with any relevant data from the old one. - var _util = __webpack_require__(32); + dispatch({ + type: ActionTypes.REPLACE + }); + } + /** + * Interoperability point for observable/reactive libraries. + * @returns {observable} A minimal observable of state changes. + * For more information, see the observable proposal: + * https://github.com/tc39/proposal-observable + */ - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - function TodayButton(_ref) { - var prefixCls = _ref.prefixCls, - locale = _ref.locale, - value = _ref.value, - timePicker = _ref.timePicker, - disabled = _ref.disabled, - disabledDate = _ref.disabledDate, - onToday = _ref.onToday, - text = _ref.text; + function observable() { + var _ref; - var localeNow = (!text && timePicker ? locale.now : text) || locale.today; - var disabledToday = disabledDate && !(0, _util.isAllowedDate)((0, _util.getTodayTime)(value), disabledDate); - var isDisabled = disabledToday || disabled; - var disabledTodayClass = isDisabled ? prefixCls + '-today-btn-disabled' : ''; - return _react2["default"].createElement( - 'a', - { - className: prefixCls + '-today-btn ' + disabledTodayClass, - role: 'button', - onClick: isDisabled ? null : onToday, - title: (0, _util.getTodayTimeStr)(value) - }, - localeNow - ); - } - module.exports = exports['default']; + var outerSubscribe = subscribe; + return _ref = { + /** + * The minimal observable subscription method. + * @param {Object} observer Any object that can be used as an observer. + * The observer object should have a `next` method. + * @returns {subscription} An object with an `unsubscribe` method that can + * be used to unsubscribe the observable from the store, and prevent further + * emission of values from the observable. + */ + subscribe: function subscribe(observer) { + if (typeof observer !== 'object' || observer === null) { + throw new TypeError('Expected the observer to be an object.'); + } - /***/ }), - /* 472 */ - /***/ (function(module, exports, __webpack_require__) { + function observeState() { + if (observer.next) { + observer.next(getState()); + } + } - "use strict"; + observeState(); + var unsubscribe = outerSubscribe(observeState); + return { + unsubscribe: unsubscribe + }; + } + }, _ref[__WEBPACK_IMPORTED_MODULE_0_symbol_observable__["a" /* default */]] = function () { + return this; + }, _ref; + } // When a store is created, an "INIT" action is dispatched so that every + // reducer returns their initial state. This effectively populates + // the initial state tree. - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports["default"] = OkButton; + dispatch({ + type: ActionTypes.INIT + }); + return _ref2 = { + dispatch: dispatch, + subscribe: subscribe, + getState: getState, + replaceReducer: replaceReducer + }, _ref2[__WEBPACK_IMPORTED_MODULE_0_symbol_observable__["a" /* default */]] = observable, _ref2; + } - var _react = __webpack_require__(0); + /** + * Prints a warning in the console if it exists. + * + * @param {String} message The warning message. + * @returns {void} + */ + function warning(message) { + /* eslint-disable no-console */ + if (typeof console !== 'undefined' && typeof console.error === 'function') { + console.error(message); + } + /* eslint-enable no-console */ - var _react2 = _interopRequireDefault(_react); - var _beeButton = __webpack_require__(1289); + try { + // This error was thrown as a convenience so that if you enable + // "break on all exceptions" in your console, + // it would pause the execution at this line. + throw new Error(message); + } catch (e) {} // eslint-disable-line no-empty - var _beeButton2 = _interopRequireDefault(_beeButton); + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + function getUndefinedStateErrorMessage(key, action) { + var actionType = action && action.type; + var actionDescription = actionType && "action \"" + String(actionType) + "\"" || 'an action'; + return "Given " + actionDescription + ", reducer \"" + key + "\" returned undefined. " + "To ignore an action, you must explicitly return the previous state. " + "If you want this reducer to hold no value, you can return null instead of undefined."; + } - function OkButton(_ref) { - var prefixCls = _ref.prefixCls, - locale = _ref.locale, - okDisabled = _ref.okDisabled, - onOk = _ref.onOk; + function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) { + var reducerKeys = Object.keys(reducers); + var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer'; - var className = prefixCls + '-btn-ok'; - // if (okDisabled) { - // className += ` ${prefixCls}-ok-btn-disabled`; - // } - return _react2["default"].createElement( - _beeButton2["default"], - { - className: className, - size: 'sm', colors: 'primary', - disabled: !!okDisabled, - onClick: okDisabled ? null : onOk - }, - locale.ok - ); + if (reducerKeys.length === 0) { + return 'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.'; + } + + if (!isPlainObject(inputState)) { + return "The " + argumentName + " has unexpected type of \"" + {}.toString.call(inputState).match(/\s([a-z|A-Z]+)/)[1] + "\". Expected argument to be an object with the following " + ("keys: \"" + reducerKeys.join('", "') + "\""); + } + + var unexpectedKeys = Object.keys(inputState).filter(function (key) { + return !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key]; + }); + unexpectedKeys.forEach(function (key) { + unexpectedKeyCache[key] = true; + }); + if (action && action.type === ActionTypes.REPLACE) return; + + if (unexpectedKeys.length > 0) { + return "Unexpected " + (unexpectedKeys.length > 1 ? 'keys' : 'key') + " " + ("\"" + unexpectedKeys.join('", "') + "\" found in " + argumentName + ". ") + "Expected to find one of the known reducer keys instead: " + ("\"" + reducerKeys.join('", "') + "\". Unexpected keys will be ignored."); + } } - module.exports = exports['default']; - /***/ }), - /* 473 */ - /***/ (function(module, exports, __webpack_require__) { + function assertReducerShape(reducers) { + Object.keys(reducers).forEach(function (key) { + var reducer = reducers[key]; + var initialState = reducer(undefined, { + type: ActionTypes.INIT + }); - "use strict"; + if (typeof initialState === 'undefined') { + throw new Error("Reducer \"" + key + "\" returned undefined during initialization. " + "If the state passed to the reducer is undefined, you must " + "explicitly return the initial state. The initial state may " + "not be undefined. If you don't want to set a value for this reducer, " + "you can use null instead of undefined."); + } + if (typeof reducer(undefined, { + type: ActionTypes.PROBE_UNKNOWN_ACTION() + }) === 'undefined') { + throw new Error("Reducer \"" + key + "\" returned undefined when probed with a random type. " + ("Don't try to handle " + ActionTypes.INIT + " or other actions in \"redux/*\" ") + "namespace. They are considered private. Instead, you must return the " + "current state for any unknown actions, unless it is undefined, " + "in which case you must return the initial state, regardless of the " + "action type. The initial state may not be undefined, but can be null."); + } + }); + } + /** + * Turns an object whose values are different reducer functions, into a single + * reducer function. It will call every child reducer, and gather their results + * into a single state object, whose keys correspond to the keys of the passed + * reducer functions. + * + * @param {Object} reducers An object whose values correspond to different + * reducer functions that need to be combined into one. One handy way to obtain + * it is to use ES6 `import * as reducers` syntax. The reducers may never return + * undefined for any action. Instead, they should return their initial state + * if the state passed to them was undefined, and the current state for any + * unrecognized action. + * + * @returns {Function} A reducer function that invokes every reducer inside the + * passed object, and builds a state object with the same shape. + */ - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports["default"] = TimePickerButton; - var _react = __webpack_require__(0); + function combineReducers(reducers) { + var reducerKeys = Object.keys(reducers); + var finalReducers = {}; - var _react2 = _interopRequireDefault(_react); + for (var i = 0; i < reducerKeys.length; i++) { + var key = reducerKeys[i]; - var _classnames2 = __webpack_require__(2); + if (process.env.NODE_ENV !== 'production') { + if (typeof reducers[key] === 'undefined') { + warning("No reducer provided for key \"" + key + "\""); + } + } - var _classnames3 = _interopRequireDefault(_classnames2); + if (typeof reducers[key] === 'function') { + finalReducers[key] = reducers[key]; + } + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var finalReducerKeys = Object.keys(finalReducers); // This is used to make sure we don't warn about the same + // keys multiple times. - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + var unexpectedKeyCache; - function TimePickerButton(_ref) { - var _classnames; + if (process.env.NODE_ENV !== 'production') { + unexpectedKeyCache = {}; + } - var prefixCls = _ref.prefixCls, - locale = _ref.locale, - showTimePicker = _ref.showTimePicker, - onOpenTimePicker = _ref.onOpenTimePicker, - onCloseTimePicker = _ref.onCloseTimePicker, - timePickerDisabled = _ref.timePickerDisabled; + var shapeAssertionError; - var className = (0, _classnames3["default"])((_classnames = {}, _defineProperty(_classnames, prefixCls + '-time-picker-btn', true), _defineProperty(_classnames, prefixCls + '-time-picker-btn-disabled', timePickerDisabled), _classnames)); - var onClick = null; - if (!timePickerDisabled) { - onClick = showTimePicker ? onCloseTimePicker : onOpenTimePicker; + try { + assertReducerShape(finalReducers); + } catch (e) { + shapeAssertionError = e; } - return _react2["default"].createElement( - 'a', - { - className: className, - role: 'button', - onClick: onClick - }, - showTimePicker ? locale.dateSelect : locale.timeSelect - ); - } - module.exports = exports['default']; - /***/ }), - /* 474 */ - /***/ (function(module, exports, __webpack_require__) { + return function combination(state, action) { + if (state === void 0) { + state = {}; + } - "use strict"; + if (shapeAssertionError) { + throw shapeAssertionError; + } + if (process.env.NODE_ENV !== 'production') { + var warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache); - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.calendarMixinWrapper = exports.calendarMixinDefaultProps = exports.calendarMixinPropTypes = undefined; - exports.getNowByCurrentStateValue = getNowByCurrentStateValue; + if (warningMessage) { + warning(warningMessage); + } + } - var _react = __webpack_require__(0); + var hasChanged = false; + var nextState = {}; - var _react2 = _interopRequireDefault(_react); + for (var _i = 0; _i < finalReducerKeys.length; _i++) { + var _key = finalReducerKeys[_i]; + var reducer = finalReducers[_key]; + var previousStateForKey = state[_key]; + var nextStateForKey = reducer(previousStateForKey, action); - var _propTypes = __webpack_require__(1); + if (typeof nextStateForKey === 'undefined') { + var errorMessage = getUndefinedStateErrorMessage(_key, action); + throw new Error(errorMessage); + } - var _propTypes2 = _interopRequireDefault(_propTypes); + nextState[_key] = nextStateForKey; + hasChanged = hasChanged || nextStateForKey !== previousStateForKey; + } - var _classnames = __webpack_require__(2); + hasChanged = hasChanged || finalReducerKeys.length !== Object.keys(state).length; + return hasChanged ? nextState : state; + }; + } - var _classnames2 = _interopRequireDefault(_classnames); + function bindActionCreator(actionCreator, dispatch) { + return function () { + return dispatch(actionCreator.apply(this, arguments)); + }; + } + /** + * Turns an object whose values are action creators, into an object with the + * same keys, but with every function wrapped into a `dispatch` call so they + * may be invoked directly. This is just a convenience method, as you can call + * `store.dispatch(MyActionCreators.doSomething())` yourself just fine. + * + * For convenience, you can also pass an action creator as the first argument, + * and get a dispatch wrapped function in return. + * + * @param {Function|Object} actionCreators An object whose values are action + * creator functions. One handy way to obtain it is to use ES6 `import * as` + * syntax. You may also pass a single function. + * + * @param {Function} dispatch The `dispatch` function available on your Redux + * store. + * + * @returns {Function|Object} The object mimicking the original object, but with + * every action creator wrapped into the `dispatch` call. If you passed a + * function as `actionCreators`, the return value will also be a single + * function. + */ - var _moment = __webpack_require__(4); - var _moment2 = _interopRequireDefault(_moment); + function bindActionCreators(actionCreators, dispatch) { + if (typeof actionCreators === 'function') { + return bindActionCreator(actionCreators, dispatch); + } - var _index = __webpack_require__(32); + if (typeof actionCreators !== 'object' || actionCreators === null) { + throw new Error("bindActionCreators expected an object or a function, instead received " + (actionCreators === null ? 'null' : typeof actionCreators) + ". " + "Did you write \"import ActionCreators from\" instead of \"import * as ActionCreators from\"?"); + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var boundActionCreators = {}; - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + for (var key in actionCreators) { + var actionCreator = actionCreators[key]; - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + if (typeof actionCreator === 'function') { + boundActionCreators[key] = bindActionCreator(actionCreator, dispatch); + } + } - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + return boundActionCreators; + } - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + function _defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + return obj; + } - function noop() {} + function ownKeys(object, enumerableOnly) { + var keys = Object.keys(object); - function getNowByCurrentStateValue(value) { - var ret = void 0; - if (value) { - ret = (0, _index.getTodayTime)(value); - } else { - ret = (0, _moment2["default"])(); + if (Object.getOwnPropertySymbols) { + keys.push.apply(keys, Object.getOwnPropertySymbols(object)); } - return ret; + + if (enumerableOnly) keys = keys.filter(function (sym) { + return Object.getOwnPropertyDescriptor(object, sym).enumerable; + }); + return keys; } - var calendarMixinPropTypes = exports.calendarMixinPropTypes = { - value: _propTypes2["default"].object, - defaultValue: _propTypes2["default"].object, - onKeyDown: _propTypes2["default"].func - }; + function _objectSpread2(target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i] != null ? arguments[i] : {}; - var calendarMixinDefaultProps = exports.calendarMixinDefaultProps = { - onKeyDown: noop - }; + if (i % 2) { + ownKeys(source, true).forEach(function (key) { + _defineProperty(target, key, source[key]); + }); + } else if (Object.getOwnPropertyDescriptors) { + Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); + } else { + ownKeys(source).forEach(function (key) { + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); + }); + } + } - var calendarMixinWrapper = exports.calendarMixinWrapper = function calendarMixinWrapper(ComposeComponent) { - var _class, _temp2; + return target; + } - return _temp2 = _class = function (_ComposeComponent) { - _inherits(_class, _ComposeComponent); + /** + * Composes single-argument functions from right to left. The rightmost + * function can take multiple arguments as it provides the signature for + * the resulting composite function. + * + * @param {...Function} funcs The functions to compose. + * @returns {Function} A function obtained by composing the argument functions + * from right to left. For example, compose(f, g, h) is identical to doing + * (...args) => f(g(h(...args))). + */ + function compose() { + for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) { + funcs[_key] = arguments[_key]; + } - function _class() { - var _temp, _this, _ret; + if (funcs.length === 0) { + return function (arg) { + return arg; + }; + } - _classCallCheck(this, _class); + if (funcs.length === 1) { + return funcs[0]; + } - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } + return funcs.reduce(function (a, b) { + return function () { + return a(b.apply(void 0, arguments)); + }; + }); + } - return _ret = (_temp = (_this = _possibleConstructorReturn(this, _ComposeComponent.call.apply(_ComposeComponent, [this].concat(args))), _this), _this.onSelect = function (value, cause) { - if (value) { - _this.setValue(value); - } - _this.setSelectedValue(value, cause); - }, _this.renderRoot = function (newProps) { - var _className; + /** + * Creates a store enhancer that applies middleware to the dispatch method + * of the Redux store. This is handy for a variety of tasks, such as expressing + * asynchronous actions in a concise manner, or logging every action payload. + * + * See `redux-thunk` package as an example of the Redux middleware. + * + * Because middleware is potentially asynchronous, this should be the first + * store enhancer in the composition chain. + * + * Note that each middleware will be given the `dispatch` and `getState` functions + * as named arguments. + * + * @param {...Function} middlewares The middleware chain to be applied. + * @returns {Function} A store enhancer applying the middleware. + */ - var props = _this.props; - var prefixCls = props.prefixCls; + function applyMiddleware() { + for (var _len = arguments.length, middlewares = new Array(_len), _key = 0; _key < _len; _key++) { + middlewares[_key] = arguments[_key]; + } - var className = (_className = {}, _defineProperty(_className, prefixCls, 1), _defineProperty(_className, prefixCls + '-hidden', !props.visible), _defineProperty(_className, props.className, !!props.className), _defineProperty(_className, newProps.className, !!newProps.className), _className); + return function (createStore) { + return function () { + var store = createStore.apply(void 0, arguments); - return _react2["default"].createElement( - 'div', - { - ref: _this.saveRoot, - className: '' + (0, _classnames2["default"])(className), - style: _this.props.style, - tabIndex: '0', - onKeyDown: _this.onKeyDown - }, - newProps.children - ); - }, _this.setSelectedValue = function (selectedValue, cause) { - // if (this.isAllowedDate(selectedValue)) { - if (!('selectedValue' in _this.props)) { - _this.setState({ - selectedValue: selectedValue - }); - } - if (_this.props.onSelect) { - _this.props.onSelect(selectedValue, cause); - } - // } - }, _this.setValue = function (value) { - var originalValue = _this.state.value; - if (!('value' in _this.props)) { - _this.setState({ - value: value - }); - } - if (originalValue && value && !originalValue.isSame(value) || !originalValue && value || originalValue && !value) { - _this.props.onChange(value); + var _dispatch = function dispatch() { + throw new Error('Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.'); + }; + + var middlewareAPI = { + getState: store.getState, + dispatch: function dispatch() { + return _dispatch.apply(void 0, arguments); } - }, _this.isAllowedDate = function (value) { - var disabledDate = _this.props.disabledDate; - var disabledTime = _this.props.disabledTime; - return (0, _index.isAllowedDate)(value, disabledDate, disabledTime); - }, _temp), _possibleConstructorReturn(_this, _ret); - } + }; + var chain = middlewares.map(function (middleware) { + return middleware(middlewareAPI); + }); + _dispatch = compose.apply(void 0, chain)(store.dispatch); + return _objectSpread2({}, store, { + dispatch: _dispatch + }); + }; + }; + } - _class.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, prevState) { - // Use origin function if provided - if (ComposeComponent.getDerivedStateFromProps) { - return ComposeComponent.getDerivedStateFromProps(nextProps, prevState); - } + /* + * This is a dummy function to check if the function name has been altered by minification. + * If the function has been minified and NODE_ENV !== 'production', warn the user. + */ - var value = nextProps.value, - selectedValue = nextProps.selectedValue; + function isCrushed() {} - var newState = {}; + if (process.env.NODE_ENV !== 'production' && typeof isCrushed.name === 'string' && isCrushed.name !== 'isCrushed') { + warning('You are currently using minified code outside of NODE_ENV === "production". ' + 'This means that you are running a slower development build of Redux. ' + 'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify ' + 'or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) ' + 'to ensure you have the correct code for your production build.'); + } - if ('value' in nextProps) { - newState.value = value || nextProps.defaultValue || getNowByCurrentStateValue(prevState.value); - } - if ('selectedValue' in nextProps) { - newState.selectedValue = selectedValue; - } - return newState; - }; - return _class; - }(ComposeComponent), _class.displayName = 'CalendarMixinWrapper', _class.defaultProps = ComposeComponent.defaultProps, _temp2; - }; + /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(5))) /***/ }), - /* 475 */ - /***/ (function(module, exports, __webpack_require__) { + /* 302 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; + /* harmony export (immutable) */ __webpack_exports__["a"] = _inheritsLoose; + function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + subClass.__proto__ = superClass; + } + /***/ }), + /* 303 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { - exports.__esModule = true; - exports['default'] = { - today: 'Today', - now: 'Now', - backToToday: 'Back to today', - ok: 'Ok', - clear: 'Clear', - month: 'Month', - year: 'Year', - timeSelect: 'select time', - dateSelect: 'select date', - weekSelect: 'Choose a week', - monthSelect: 'Choose a month', - yearSelect: 'Choose a year', - decadeSelect: 'Choose a decade', - yearFormat: 'YYYY', - dateFormat: 'M/D/YYYY', - dayFormat: 'D', - dateTimeFormat: 'M/D/YYYY HH:mm:ss', - monthBeforeYear: true, - previousMonth: 'Previous month (PageUp)', - nextMonth: 'Next month (PageDown)', - previousYear: 'Last year (Control + left)', - nextYear: 'Next year (Control + right)', - previousDecade: 'Last decade', - nextDecade: 'Next decade', - previousCentury: 'Last century', - nextCentury: 'Next century' - }; - module.exports = exports['default']; + "use strict"; + /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return subscriptionShape; }); + /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return storeShape; }); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types__ = __webpack_require__(1); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_prop_types__); + + var subscriptionShape = __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.shape({ + trySubscribe: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.func.isRequired, + tryUnsubscribe: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.func.isRequired, + notifyNestedSubs: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.func.isRequired, + isSubscribed: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.func.isRequired + }); + var storeShape = __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.shape({ + subscribe: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.func.isRequired, + dispatch: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.func.isRequired, + getState: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.func.isRequired + }); /***/ }), - /* 476 */ - /***/ (function(module, exports, __webpack_require__) { + /* 304 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; + /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = connectAdvanced; + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__ = __webpack_require__(302); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_assertThisInitialized__ = __webpack_require__(1084); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_extends__ = __webpack_require__(167); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__ = __webpack_require__(168); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_hoist_non_react_statics__ = __webpack_require__(231); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_hoist_non_react_statics___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_hoist_non_react_statics__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_invariant__ = __webpack_require__(1085); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_invariant___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_invariant__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react_is__ = __webpack_require__(64); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react_is___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_react_is__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utils_Subscription__ = __webpack_require__(1086); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_PropTypes__ = __webpack_require__(303); - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.goStartMonth = goStartMonth; - exports.goEndMonth = goEndMonth; - exports.goTime = goTime; - exports.includesTime = includesTime; - function goStartMonth(time) { - return time.clone().startOf('month'); - } - function goEndMonth(time) { - return time.clone().endOf('month'); - } - function goTime(time, direction, unit) { - return time.clone().add(direction, unit); - } - function includesTime() { - var timeList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; - var time = arguments[1]; - var unit = arguments[2]; - return timeList.some(function (t) { - return t.isSame(time, unit); - }); - } - /***/ }), - /* 477 */ - /***/ (function(module, exports, __webpack_require__) { - "use strict"; - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports["default"] = void 0; + var prefixUnsafeLifecycleMethods = typeof __WEBPACK_IMPORTED_MODULE_6_react___default.a.forwardRef !== "undefined"; + var hotReloadingVersion = 0; + var dummyState = {}; - var _react = _interopRequireWildcard(__webpack_require__(0)); + function noop() {} - var _propTypes = _interopRequireDefault(__webpack_require__(1)); + function makeSelectorStateful(sourceSelector, store) { + // wrap the selector in an object that tracks its results between runs. + var selector = { + run: function runComponentSelector(props) { + try { + var nextProps = sourceSelector(store.getState(), props); - var _moment = _interopRequireDefault(__webpack_require__(4)); + if (nextProps !== selector.props || selector.error) { + selector.shouldComponentUpdate = true; + selector.props = nextProps; + selector.error = null; + } + } catch (error) { + selector.shouldComponentUpdate = true; + selector.error = error; + } + } + }; + return selector; + } - var _classnames = _interopRequireDefault(__webpack_require__(2)); + function connectAdvanced( + /* + selectorFactory is a func that is responsible for returning the selector function used to + compute new props from state, props, and dispatch. For example: + export default connectAdvanced((dispatch, options) => (state, props) => ({ + thing: state.things[props.thingId], + saveThing: fields => dispatch(actionCreators.saveThing(props.thingId, fields)), + }))(YourComponent) + Access to dispatch is provided to the factory so selectorFactories can bind actionCreators + outside of their selector as an optimization. Options passed to connectAdvanced are passed to + the selectorFactory, along with displayName and WrappedComponent, as the second argument. + Note that selectorFactory is responsible for all caching/memoization of inbound and outbound + props. Do not use connectAdvanced directly without memoizing results between calls to your + selector, otherwise the Connect component will re-render on every state or props change. + */ + selectorFactory, // options object: + _ref) { + var _contextTypes, _childContextTypes; - var _reactLifecyclesCompat = __webpack_require__(14); + if (_ref === void 0) { + _ref = {}; + } - var _Header = _interopRequireDefault(__webpack_require__(1293)); + var _ref2 = _ref, + _ref2$getDisplayName = _ref2.getDisplayName, + getDisplayName = _ref2$getDisplayName === void 0 ? function (name) { + return "ConnectAdvanced(" + name + ")"; + } : _ref2$getDisplayName, + _ref2$methodName = _ref2.methodName, + methodName = _ref2$methodName === void 0 ? 'connectAdvanced' : _ref2$methodName, + _ref2$renderCountProp = _ref2.renderCountProp, + renderCountProp = _ref2$renderCountProp === void 0 ? undefined : _ref2$renderCountProp, + _ref2$shouldHandleSta = _ref2.shouldHandleStateChanges, + shouldHandleStateChanges = _ref2$shouldHandleSta === void 0 ? true : _ref2$shouldHandleSta, + _ref2$storeKey = _ref2.storeKey, + storeKey = _ref2$storeKey === void 0 ? 'store' : _ref2$storeKey, + _ref2$withRef = _ref2.withRef, + withRef = _ref2$withRef === void 0 ? false : _ref2$withRef, + connectOptions = Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__["a" /* default */])(_ref2, ["getDisplayName", "methodName", "renderCountProp", "shouldHandleStateChanges", "storeKey", "withRef"]); - var _Combobox = _interopRequireDefault(__webpack_require__(1294)); + var subscriptionKey = storeKey + 'Subscription'; + var version = hotReloadingVersion++; + var contextTypes = (_contextTypes = {}, _contextTypes[storeKey] = __WEBPACK_IMPORTED_MODULE_9__utils_PropTypes__["a" /* storeShape */], _contextTypes[subscriptionKey] = __WEBPACK_IMPORTED_MODULE_9__utils_PropTypes__["b" /* subscriptionShape */], _contextTypes); + var childContextTypes = (_childContextTypes = {}, _childContextTypes[subscriptionKey] = __WEBPACK_IMPORTED_MODULE_9__utils_PropTypes__["b" /* subscriptionShape */], _childContextTypes); + return function wrapWithConnect(WrappedComponent) { + __WEBPACK_IMPORTED_MODULE_5_invariant___default()(Object(__WEBPACK_IMPORTED_MODULE_7_react_is__["isValidElementType"])(WrappedComponent), "You must pass a component to the function returned by " + (methodName + ". Instead received " + JSON.stringify(WrappedComponent))); + var wrappedComponentName = WrappedComponent.displayName || WrappedComponent.name || 'Component'; + var displayName = getDisplayName(wrappedComponentName); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var selectorFactoryOptions = Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_extends__["a" /* default */])({}, connectOptions, { + getDisplayName: getDisplayName, + methodName: methodName, + renderCountProp: renderCountProp, + shouldHandleStateChanges: shouldHandleStateChanges, + storeKey: storeKey, + withRef: withRef, + displayName: displayName, + wrappedComponentName: wrappedComponentName, + WrappedComponent: WrappedComponent // TODO Actually fix our use of componentWillReceiveProps - function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; } + /* eslint-disable react/no-deprecated */ - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + }); - function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + var Connect = + /*#__PURE__*/ + function (_Component) { + Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(Connect, _Component); - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + function Connect(props, context) { + var _this; - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + _this = _Component.call(this, props, context) || this; + _this.version = version; + _this.state = {}; + _this.renderCount = 0; + _this.store = props[storeKey] || context[storeKey]; + _this.propsMode = Boolean(props[storeKey]); + _this.setWrappedInstance = _this.setWrappedInstance.bind(Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_assertThisInitialized__["a" /* default */])(Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_assertThisInitialized__["a" /* default */])(_this))); + __WEBPACK_IMPORTED_MODULE_5_invariant___default()(_this.store, "Could not find \"" + storeKey + "\" in either the context or props of " + ("\"" + displayName + "\". Either wrap the root component in a , ") + ("or explicitly pass \"" + storeKey + "\" as a prop to \"" + displayName + "\".")); - function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + _this.initSelector(); - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + _this.initSubscription(); - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + return _this; + } - function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + var _proto = Connect.prototype; - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + _proto.getChildContext = function getChildContext() { + var _ref3; - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + // If this component received store from props, its subscription should be transparent + // to any descendants receiving store+subscription from context; it passes along + // subscription passed to it. Otherwise, it shadows the parent subscription, which allows + // Connect to control ordering of notifications to flow top-down. + var subscription = this.propsMode ? null : this.subscription; + return _ref3 = {}, _ref3[subscriptionKey] = subscription || this.context[subscriptionKey], _ref3; + }; - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + _proto.componentDidMount = function componentDidMount() { + if (!shouldHandleStateChanges) return; // componentWillMount fires during server side rendering, but componentDidMount and + // componentWillUnmount do not. Because of this, trySubscribe happens during ...didMount. + // Otherwise, unsubscription would never take place during SSR, causing a memory leak. + // To handle the case where a child component may have triggered a state change by + // dispatching an action in its componentWillMount, we have to re-run the select and maybe + // re-render. - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + this.subscription.trySubscribe(); + this.selector.run(this.props); + if (this.selector.shouldComponentUpdate) this.forceUpdate(); + }; // Note: this is renamed below to the UNSAFE_ version in React >=16.3.0 - function noop() {} - function generateOptions(length, disabledOptions, hideDisabledOptions) { - var step = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1; - var arr = []; + _proto.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { + this.selector.run(nextProps); + }; - for (var value = 0; value < length; value += step) { - if (!disabledOptions || disabledOptions.indexOf(value) < 0 || !hideDisabledOptions) { - arr.push(value); - } - } + _proto.shouldComponentUpdate = function shouldComponentUpdate() { + return this.selector.shouldComponentUpdate; + }; - return arr; - } + _proto.componentWillUnmount = function componentWillUnmount() { + if (this.subscription) this.subscription.tryUnsubscribe(); + this.subscription = null; + this.notifyNestedSubs = noop; + this.store = null; + this.selector.run = noop; + this.selector.shouldComponentUpdate = false; + }; - function toNearestValidTime(time, hourOptions, minuteOptions, secondOptions) { - var hour = hourOptions.slice().sort(function (a, b) { - return Math.abs(time.hour() - a) - Math.abs(time.hour() - b); - })[0]; - var minute = minuteOptions.slice().sort(function (a, b) { - return Math.abs(time.minute() - a) - Math.abs(time.minute() - b); - })[0]; - var second = secondOptions.slice().sort(function (a, b) { - return Math.abs(time.second() - a) - Math.abs(time.second() - b); - })[0]; - return (0, _moment["default"])("".concat(hour, ":").concat(minute, ":").concat(second), 'HH:mm:ss'); - } + _proto.getWrappedInstance = function getWrappedInstance() { + __WEBPACK_IMPORTED_MODULE_5_invariant___default()(withRef, "To access the wrapped instance, you need to specify " + ("{ withRef: true } in the options argument of the " + methodName + "() call.")); + return this.wrappedInstance; + }; - var Panel = - /*#__PURE__*/ - function (_Component) { - _inherits(Panel, _Component); + _proto.setWrappedInstance = function setWrappedInstance(ref) { + this.wrappedInstance = ref; + }; - function Panel() { - var _getPrototypeOf2; + _proto.initSelector = function initSelector() { + var sourceSelector = selectorFactory(this.store.dispatch, selectorFactoryOptions); + this.selector = makeSelectorStateful(sourceSelector, this.store); + this.selector.run(this.props); + }; - var _this; + _proto.initSubscription = function initSubscription() { + if (!shouldHandleStateChanges) return; // parentSub's source should match where store came from: props vs. context. A component + // connected to the store via props shouldn't use subscription from context, or vice versa. - _classCallCheck(this, Panel); + var parentSub = (this.propsMode ? this.props : this.context)[subscriptionKey]; + this.subscription = new __WEBPACK_IMPORTED_MODULE_8__utils_Subscription__["a" /* default */](this.store, parentSub, this.onStateChange.bind(this)); // `notifyNestedSubs` is duplicated to handle the case where the component is unmounted in + // the middle of the notification loop, where `this.subscription` will then be null. An + // extra null check every change can be avoided by copying the method onto `this` and then + // replacing it with a no-op on unmount. This can probably be avoided if Subscription's + // listeners logic is changed to not call listeners that have been unsubscribed in the + // middle of the notification loop. - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } + this.notifyNestedSubs = this.subscription.notifyNestedSubs.bind(this.subscription); + }; - _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Panel)).call.apply(_getPrototypeOf2, [this].concat(args))); + _proto.onStateChange = function onStateChange() { + this.selector.run(this.props); - _defineProperty(_assertThisInitialized(_this), "state", {}); + if (!this.selector.shouldComponentUpdate) { + this.notifyNestedSubs(); + } else { + this.componentDidUpdate = this.notifyNestedSubsOnComponentDidUpdate; + this.setState(dummyState); + } + }; - _defineProperty(_assertThisInitialized(_this), "onChange", function (newValue) { - var onChange = _this.props.onChange; + _proto.notifyNestedSubsOnComponentDidUpdate = function notifyNestedSubsOnComponentDidUpdate() { + // `componentDidUpdate` is conditionally implemented when `onStateChange` determines it + // needs to notify nested subs. Once called, it unimplements itself until further state + // changes occur. Doing it this way vs having a permanent `componentDidUpdate` that does + // a boolean check every time avoids an extra method call most of the time, resulting + // in some perf boost. + this.componentDidUpdate = undefined; + this.notifyNestedSubs(); + }; - _this.setState({ - value: newValue - }); + _proto.isSubscribed = function isSubscribed() { + return Boolean(this.subscription) && this.subscription.isSubscribed(); + }; - onChange(newValue); - }); + _proto.addExtraProps = function addExtraProps(props) { + if (!withRef && !renderCountProp && !(this.propsMode && this.subscription)) return props; // make a shallow copy so that fields added don't leak to the original selector. + // this is especially important for 'ref' since that's a reference back to the component + // instance. a singleton memoized selector would then be holding a reference to the + // instance, preventing the instance from being garbage collected, and that would be bad - _defineProperty(_assertThisInitialized(_this), "onAmPmChange", function (ampm) { - var onAmPmChange = _this.props.onAmPmChange; - onAmPmChange(ampm); - }); + var withExtras = Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_extends__["a" /* default */])({}, props); - _defineProperty(_assertThisInitialized(_this), "onCurrentSelectPanelChange", function (currentSelectPanel) { - _this.setState({ - currentSelectPanel: currentSelectPanel - }); - }); + if (withRef) withExtras.ref = this.setWrappedInstance; + if (renderCountProp) withExtras[renderCountProp] = this.renderCount++; + if (this.propsMode && this.subscription) withExtras[subscriptionKey] = this.subscription; + return withExtras; + }; - _defineProperty(_assertThisInitialized(_this), "disabledHours", function () { - var _this$props = _this.props, - use12Hours = _this$props.use12Hours, - disabledHours = _this$props.disabledHours; - var disabledOptions = disabledHours(); + _proto.render = function render() { + var selector = this.selector; + selector.shouldComponentUpdate = false; - if (use12Hours && Array.isArray(disabledOptions)) { - if (_this.isAM()) { - disabledOptions = disabledOptions.filter(function (h) { - return h < 12; - }).map(function (h) { - return h === 0 ? 12 : h; - }); + if (selector.error) { + throw selector.error; } else { - disabledOptions = disabledOptions.map(function (h) { - return h === 12 ? 12 : h - 12; - }); + return Object(__WEBPACK_IMPORTED_MODULE_6_react__["createElement"])(WrappedComponent, this.addExtraProps(selector.props)); } - } - - return disabledOptions; - }); - - return _this; - } + }; - _createClass(Panel, [{ - key: "close", - // https://github.com/ant-design/ant-design/issues/5829 - value: function close() { - var onEsc = this.props.onEsc; - onEsc(); - } - }, { - key: "isAM", - value: function isAM() { - var defaultOpenValue = this.props.defaultOpenValue; - var value = this.state.value; - var realValue = value || defaultOpenValue; - return realValue.hour() >= 0 && realValue.hour() < 12; - } - }, { - key: "render", - value: function render() { - var _this$props2 = this.props, - prefixCls = _this$props2.prefixCls, - className = _this$props2.className, - placeholder = _this$props2.placeholder, - disabledMinutes = _this$props2.disabledMinutes, - disabledSeconds = _this$props2.disabledSeconds, - hideDisabledOptions = _this$props2.hideDisabledOptions, - showHour = _this$props2.showHour, - showMinute = _this$props2.showMinute, - showSecond = _this$props2.showSecond, - format = _this$props2.format, - defaultOpenValue = _this$props2.defaultOpenValue, - clearText = _this$props2.clearText, - onEsc = _this$props2.onEsc, - addon = _this$props2.addon, - use12Hours = _this$props2.use12Hours, - focusOnOpen = _this$props2.focusOnOpen, - onKeyDown = _this$props2.onKeyDown, - hourStep = _this$props2.hourStep, - minuteStep = _this$props2.minuteStep, - secondStep = _this$props2.secondStep, - inputReadOnly = _this$props2.inputReadOnly, - clearIcon = _this$props2.clearIcon; - var _this$state = this.state, - value = _this$state.value, - currentSelectPanel = _this$state.currentSelectPanel; - var disabledHourOptions = this.disabledHours(); - var disabledMinuteOptions = disabledMinutes(value ? value.hour() : null); - var disabledSecondOptions = disabledSeconds(value ? value.hour() : null, value ? value.minute() : null); - var hourOptions = generateOptions(24, disabledHourOptions, hideDisabledOptions, hourStep); - var minuteOptions = generateOptions(60, disabledMinuteOptions, hideDisabledOptions, minuteStep); - var secondOptions = generateOptions(60, disabledSecondOptions, hideDisabledOptions, secondStep); - var validDefaultOpenValue = toNearestValidTime(defaultOpenValue, hourOptions, minuteOptions, secondOptions); - return _react["default"].createElement("div", { - className: (0, _classnames["default"])(className, "".concat(prefixCls, "-inner")) - }, _react["default"].createElement(_Header["default"], { - clearText: clearText, - prefixCls: prefixCls, - defaultOpenValue: validDefaultOpenValue, - value: value, - currentSelectPanel: currentSelectPanel, - onEsc: onEsc, - format: format, - placeholder: placeholder, - hourOptions: hourOptions, - minuteOptions: minuteOptions, - secondOptions: secondOptions, - disabledHours: this.disabledHours, - disabledMinutes: disabledMinutes, - disabledSeconds: disabledSeconds, - onChange: this.onChange, - focusOnOpen: focusOnOpen, - onKeyDown: onKeyDown, - inputReadOnly: inputReadOnly, - clearIcon: clearIcon - }), _react["default"].createElement(_Combobox["default"], { - prefixCls: prefixCls, - value: value, - defaultOpenValue: validDefaultOpenValue, - format: format, - onChange: this.onChange, - onAmPmChange: this.onAmPmChange, - showHour: showHour, - showMinute: showMinute, - showSecond: showSecond, - hourOptions: hourOptions, - minuteOptions: minuteOptions, - secondOptions: secondOptions, - disabledHours: this.disabledHours, - disabledMinutes: disabledMinutes, - disabledSeconds: disabledSeconds, - onCurrentSelectPanelChange: this.onCurrentSelectPanelChange, - use12Hours: use12Hours, - onEsc: onEsc, - isAM: this.isAM() - }), addon(this)); - } - }], [{ - key: "getDerivedStateFromProps", - value: function getDerivedStateFromProps(props, state) { - if ('value' in props) { - return _objectSpread({}, state, { - value: props.value - }); - } + return Connect; + }(__WEBPACK_IMPORTED_MODULE_6_react__["Component"]); - return null; + if (prefixUnsafeLifecycleMethods) { + // Use UNSAFE_ event name where supported + Connect.prototype.UNSAFE_componentWillReceiveProps = Connect.prototype.componentWillReceiveProps; + delete Connect.prototype.componentWillReceiveProps; } - }]); - - return Panel; - }(_react.Component); + /* eslint-enable react/no-deprecated */ - _defineProperty(Panel, "propTypes", { - clearText: _propTypes["default"].string, - prefixCls: _propTypes["default"].string, - className: _propTypes["default"].string, - defaultOpenValue: _propTypes["default"].object, - value: _propTypes["default"].object, - placeholder: _propTypes["default"].string, - format: _propTypes["default"].string, - inputReadOnly: _propTypes["default"].bool, - disabledHours: _propTypes["default"].func, - disabledMinutes: _propTypes["default"].func, - disabledSeconds: _propTypes["default"].func, - hideDisabledOptions: _propTypes["default"].bool, - onChange: _propTypes["default"].func, - onAmPmChange: _propTypes["default"].func, - onEsc: _propTypes["default"].func, - showHour: _propTypes["default"].bool, - showMinute: _propTypes["default"].bool, - showSecond: _propTypes["default"].bool, - use12Hours: _propTypes["default"].bool, - hourStep: _propTypes["default"].number, - minuteStep: _propTypes["default"].number, - secondStep: _propTypes["default"].number, - addon: _propTypes["default"].func, - focusOnOpen: _propTypes["default"].bool, - onKeyDown: _propTypes["default"].func, - clearIcon: _propTypes["default"].node - }); - _defineProperty(Panel, "defaultProps", { - prefixCls: 'rc-time-picker-panel', - onChange: noop, - disabledHours: noop, - disabledMinutes: noop, - disabledSeconds: noop, - defaultOpenValue: (0, _moment["default"])(), - use12Hours: false, - addon: noop, - onKeyDown: noop, - onAmPmChange: noop, - inputReadOnly: false - }); + Connect.WrappedComponent = WrappedComponent; + Connect.displayName = displayName; + Connect.childContextTypes = childContextTypes; + Connect.contextTypes = contextTypes; + Connect.propTypes = contextTypes; - (0, _reactLifecyclesCompat.polyfill)(Panel); - var _default = Panel; - exports["default"] = _default; + if (process.env.NODE_ENV !== 'production') { + // Use UNSAFE_ event name where supported + var eventName = prefixUnsafeLifecycleMethods ? 'UNSAFE_componentWillUpdate' : 'componentWillUpdate'; - /***/ }), - /* 478 */ - /***/ (function(module, exports, __webpack_require__) { + Connect.prototype[eventName] = function componentWillUpdate() { + var _this2 = this; - "use strict"; + // We are hot reloading! + if (this.version !== version) { + this.version = version; + this.initSelector(); // If any connected descendants don't hot reload (and resubscribe in the process), their + // listeners will be lost when we unsubscribe. Unfortunately, by copying over all + // listeners, this does mean that the old versions of connected descendants will still be + // notified of state changes; however, their onStateChange function is a no-op so this + // isn't a huge deal. + var oldListeners = []; - Object.defineProperty(exports, "__esModule", { - value: true - }); + if (this.subscription) { + oldListeners = this.subscription.listeners.get(); + this.subscription.tryUnsubscribe(); + } - var _react = __webpack_require__(0); + this.initSubscription(); - var _propTypes = __webpack_require__(1); + if (shouldHandleStateChanges) { + this.subscription.trySubscribe(); + oldListeners.forEach(function (listener) { + return _this2.subscription.listeners.subscribe(listener); + }); + } + } + }; + } - var _propTypes2 = _interopRequireDefault(_propTypes); + return __WEBPACK_IMPORTED_MODULE_4_hoist_non_react_statics___default()(Connect, WrappedComponent); + }; + } + /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(5))) - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + /***/ }), + /* 305 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + "use strict"; + /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = wrapMapToPropsConstant; + /* unused harmony export getDependsOnOwnProps */ + /* harmony export (immutable) */ __webpack_exports__["b"] = wrapMapToPropsFunc; + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_verifyPlainObject__ = __webpack_require__(306); - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + function wrapMapToPropsConstant(getConstant) { + return function initConstantSelector(dispatch, options) { + var constant = getConstant(dispatch, options); - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + function constantSelector() { + return constant; + } - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + constantSelector.dependsOnOwnProps = false; + return constantSelector; + }; + } // dependsOnOwnProps is used by createMapToPropsProxy to determine whether to pass props as args + // to the mapToProps function being wrapped. It is also used by makePurePropsSelector to determine + // whether mapToProps needs to be invoked when props have changed. + // + // A length of one signals that mapToProps does not depend on props from the parent component. + // A length of zero is assumed to mean mapToProps is getting args via arguments or ...args and + // therefore not reporting its length accurately.. - var propTypes = { - className: _propTypes2["default"].string, - colSpan: _propTypes2["default"].number, - title: _propTypes2["default"].node, - dataIndex: _propTypes2["default"].string, - width: _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string]), - fixed: _propTypes2["default"].oneOf([true, 'left', 'right']), - render: _propTypes2["default"].func, - onCellClick: _propTypes2["default"].func, - ifshow: _propTypes2["default"].bool, - fieldType: _propTypes2["default"].string // 类型 - }; + function getDependsOnOwnProps(mapToProps) { + return mapToProps.dependsOnOwnProps !== null && mapToProps.dependsOnOwnProps !== undefined ? Boolean(mapToProps.dependsOnOwnProps) : mapToProps.length !== 1; + } // Used by whenMapStateToPropsIsFunction and whenMapDispatchToPropsIsFunction, + // this function wraps mapToProps in a proxy function which does several things: + // + // * Detects whether the mapToProps function being called depends on props, which + // is used by selectorFactory to decide if it should reinvoke on props changes. + // + // * On first call, handles mapToProps if returns another function, and treats that + // new function as the true mapToProps for subsequent calls. + // + // * On first call, verifies the first result is a plain object, in order to warn + // the developer that their mapToProps function is not returning a valid result. + // - var Column = function (_Component) { - _inherits(Column, _Component); + function wrapMapToPropsFunc(mapToProps, methodName) { + return function initProxySelector(dispatch, _ref) { + var displayName = _ref.displayName; - function Column() { - _classCallCheck(this, Column); + var proxy = function mapToPropsProxy(stateOrDispatch, ownProps) { + return proxy.dependsOnOwnProps ? proxy.mapToProps(stateOrDispatch, ownProps) : proxy.mapToProps(stateOrDispatch); + }; // allow detectFactoryAndVerify to get ownProps - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } - return Column; - }(_react.Component); + proxy.dependsOnOwnProps = true; - Column.defaultProps = { - ifshow: true - }; + proxy.mapToProps = function detectFactoryAndVerify(stateOrDispatch, ownProps) { + proxy.mapToProps = mapToProps; + proxy.dependsOnOwnProps = getDependsOnOwnProps(mapToProps); + var props = proxy(stateOrDispatch, ownProps); + if (typeof props === 'function') { + proxy.mapToProps = props; + proxy.dependsOnOwnProps = getDependsOnOwnProps(props); + props = proxy(stateOrDispatch, ownProps); + } - Column.propTypes = propTypes; + if (process.env.NODE_ENV !== 'production') Object(__WEBPACK_IMPORTED_MODULE_0__utils_verifyPlainObject__["a" /* default */])(props, displayName, methodName); + return props; + }; - exports["default"] = Column; - module.exports = exports['default']; + return proxy; + }; + } + /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(5))) /***/ }), - /* 479 */ - /***/ (function(module, exports, __webpack_require__) { + /* 306 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; + /* harmony export (immutable) */ __webpack_exports__["a"] = verifyPlainObject; + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isPlainObject__ = __webpack_require__(1090); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__warning__ = __webpack_require__(166); - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _react = __webpack_require__(0); + function verifyPlainObject(value, displayName, methodName) { + if (!Object(__WEBPACK_IMPORTED_MODULE_0__isPlainObject__["a" /* default */])(value)) { + Object(__WEBPACK_IMPORTED_MODULE_1__warning__["a" /* default */])(methodName + "() in " + displayName + " must return a plain object. Instead received " + value + "."); + } + } - var _propTypes = __webpack_require__(1); + /***/ }), + /* 307 */ + /***/ (function(module, exports, __webpack_require__) { - var _propTypes2 = _interopRequireDefault(_propTypes); + "use strict"; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + exports.__esModule = true; + exports["default"] = { + noWobble: { stiffness: 170, damping: 26 }, // the default, if nothing provided + gentle: { stiffness: 120, damping: 14 }, + wobbly: { stiffness: 180, damping: 12 }, + stiff: { stiffness: 210, damping: 20 } + }; + module.exports = exports["default"]; - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + /***/ }), + /* 308 */ + /***/ (function(module, exports, __webpack_require__) { - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + "use strict"; - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - var ColumnGroup = function (_Component) { - _inherits(ColumnGroup, _Component); + Object.defineProperty(exports, "__esModule", { + value: true + }); + var getClass = exports.getClass = function getClass(props, doing) { + var dropClass = props.dropClass, + dropOverClass = props.dropOverClass, + dragClass = props.dragClass, + dragingClass = props.dragingClass, + type = props.type; - function ColumnGroup() { - _classCallCheck(this, ColumnGroup); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + var verticalObj = { + drop: {}, drag: {} + }; + verticalObj.drop['u-drop ' + dropClass] = true; + verticalObj.drop['u-droping ' + dropOverClass] = doing; + verticalObj.drag['u-drag ' + dragClass] = true; + verticalObj.drag['u-draging ' + dragingClass] = doing; - return ColumnGroup; - }(_react.Component); + var horizontalObj = { + drop: {}, drag: {} + }; + horizontalObj.drop['u-drop u-drop-horizontal ' + dropClass] = true; + horizontalObj.drop['u-droping u-droping-horizontal ' + dropOverClass] = doing; + horizontalObj.drag['u-drag u-drag-horizontal ' + dragClass] = true; + horizontalObj.drag['u-draging u-draging-horizontal ' + dragingClass] = doing; - ColumnGroup.propTypes = { - title: _propTypes2["default"].node + switch (type) { + case 'vertical': + return verticalObj; + break; + case 'horizontal': + return horizontalObj; + break; + case 'betweenVertical': + return verticalObj; + break; + case 'betweenHorizontal': + return horizontalObj; + break; + } }; - exports["default"] = ColumnGroup; - module.exports = exports['default']; /***/ }), - /* 480 */ + /* 309 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; + /* WEBPACK VAR INJECTION */(function(process) { - - Object.defineProperty(exports, "__esModule", { - value: true - }); + exports.__esModule = true; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - var _react = __webpack_require__(0); var _react2 = _interopRequireDefault(_react); - var _reactDom = __webpack_require__(3); - - var _reactDom2 = _interopRequireDefault(_reactDom); - - var _classnames = __webpack_require__(2); - - var _classnames2 = _interopRequireDefault(_classnames); + var _propTypes = __webpack_require__(1); - var _beeAnimate = __webpack_require__(57); + var _propTypes2 = _interopRequireDefault(_propTypes); - var _beeAnimate2 = _interopRequireDefault(_beeAnimate); + var _lodash = __webpack_require__(21); - var _util = __webpack_require__(187); + var _lodash2 = _interopRequireDefault(_lodash); - var _propTypes = __webpack_require__(1); + var _classnames = __webpack_require__(2); - var _propTypes2 = _interopRequireDefault(_propTypes); + var _classnames2 = _interopRequireDefault(_classnames); - var _tinperBeeCore = __webpack_require__(188); + var _utils = __webpack_require__(76); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var _GridItem = __webpack_require__(1105); - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + var _GridItem2 = _interopRequireDefault(_GridItem); - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - - var browserUa = typeof window !== 'undefined' ? (0, _util.browser)(window.navigator) : ''; - var ieOrEdge = /.*(IE|Edge).+/.test(browserUa); - // const uaArray = browserUa.split(' '); - // const gtIE8 = uaArray.length !== 2 || uaArray[0].indexOf('IE') === -1 || Number(uaArray[1]) > 8; - - var defaultTitle = '---'; - - var TreeNode = function (_React$Component) { - _inherits(TreeNode, _React$Component); + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - function TreeNode(props) { - _classCallCheck(this, TreeNode); + // End Types - var _this2 = _possibleConstructorReturn(this, _React$Component.call(this, props)); + /** + * A reactive, fluid grid layout with draggable, resizable components. + */ - _this2.getNodeChildren = function () { - var children = _this2.props.children; + // Types + var ReactGridLayout = function (_React$Component) { + _inherits(ReactGridLayout, _React$Component); - var originList = (0, _util.toArray)(children).filter(function (node) { - return node; - }); - var targetList = (0, _util.getNodeChildren)(originList); + // TODO publish internal ReactClass displayName transform + function ReactGridLayout(props, context) { + _classCallCheck(this, ReactGridLayout); - if (originList.length !== targetList.length) { - (0, _util.warnOnlyTreeNode)(); - } + var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context)); - return targetList; - }; + _initialiseProps.call(_this); - ['onExpand', 'onCheck', 'onContextMenu', 'onMouseEnter', 'onMouseLeave', 'onDragStart', 'onDragEnter', 'onDragOver', 'onDragLeave', 'onDrop', 'onDragEnd', 'onDoubleClick', 'onKeyDown'].forEach(function (m) { - _this2[m] = _this2[m].bind(_this2); - }); - _this2.state = { - dataLoading: false, - dragNodeHighlight: false - }; - return _this2; + (0, _utils.autoBindHandlers)(_this, ["onDragStart", "onDrag", "onDragStop", "onResizeStart", "onResize", "onResizeStop"]); + return _this; } - TreeNode.prototype.componentDidMount = function componentDidMount() { - if (!this.props.root._treeNodeInstances) { - this.props.root._treeNodeInstances = []; - } - this.props.root._treeNodeInstances.push(this); - }; - // shouldComponentUpdate(nextProps) { - // if (!nextProps.expanded) { - // return false; - // } - // return true; - // } - - TreeNode.prototype.onCheck = function onCheck() { - - this.props.root.onCheck(this); + ReactGridLayout.prototype.componentDidMount = function componentDidMount() { + this.setState({ mounted: true }); + // Possibly call back with layout on mount. This should be done after correcting the layout width + // to ensure we don't rerender with the wrong width. + this.onLayoutMaybeChanged(this.state.layout, this.props.layout); }; - TreeNode.prototype.onSelect = function onSelect() { - clearTimeout(this.doubleClickFlag); - var _this = this; - if (this.props.onDoubleClick) { - //执行延时 - this.doubleClickFlag = setTimeout(function () { - //do function在此处写单击事件要执行的代码 - _this.props.root.onSelect(_this); - }, 300); - } else { - _this.props.root.onSelect(_this); + ReactGridLayout.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { + var newLayoutBase = void 0; + // Legacy support for compactType + // Allow parent to set layout directly. + if (!(0, _lodash2.default)(nextProps.layout, this.props.layout) || nextProps.compactType !== this.props.compactType) { + newLayoutBase = nextProps.layout; + } else if (!(0, _utils.childrenEqual)(this.props.children, nextProps.children)) { + // If children change, also regenerate the layout. Use our state + // as the base in case because it may be more up to date than + // what is in props. + newLayoutBase = this.state.layout; } - }; - TreeNode.prototype.onDoubleClick = function onDoubleClick() { - clearTimeout(this.doubleClickFlag); - this.props.root.onDoubleClick(this); + // We need to regenerate the layout. + if (newLayoutBase) { + var newLayout = (0, _utils.synchronizeLayoutWithChildren)(newLayoutBase, nextProps.children, nextProps.cols, this.compactType(nextProps)); + var _oldLayout = this.state.layout; + this.setState({ layout: newLayout }); + this.onLayoutMaybeChanged(newLayout, _oldLayout); + } }; - TreeNode.prototype.onMouseEnter = function onMouseEnter(e) { - e.preventDefault(); - this.props.root.onMouseEnter(e, this); - }; + /** + * Calculates a pixel value for the container. + * @return {String} Container height in pixels. + */ - TreeNode.prototype.onMouseLeave = function onMouseLeave(e) { - e.preventDefault(); - this.props.root.onMouseLeave(e, this); - }; - TreeNode.prototype.onContextMenu = function onContextMenu(e) { - e.preventDefault(); - this.props.root.onContextMenu(e, this); + ReactGridLayout.prototype.containerHeight = function containerHeight() { + if (!this.props.autoSize) return; + var nbRow = (0, _utils.bottom)(this.state.layout); + var containerPaddingY = this.props.containerPadding ? this.props.containerPadding[1] : this.props.margin[1]; + return nbRow * this.props.rowHeight + (nbRow - 1) * this.props.margin[1] + containerPaddingY * 2 + "px"; }; - TreeNode.prototype.onDragStart = function onDragStart(e) { - // console.log('dragstart', this.props.eventKey, e); - // e.preventDefault(); - e.stopPropagation(); - this.setState({ - dragNodeHighlight: true - }); - this.props.root.onDragStart(e, this); - try { - // ie throw error - // firefox-need-it - e.dataTransfer.setData('text/plain', ''); - } finally { - // empty - } + ReactGridLayout.prototype.compactType = function compactType(props) { + if (!props) props = this.props; + return props.verticalCompact === false ? null : props.compactType; }; - TreeNode.prototype.onDragEnter = function onDragEnter(e) { - e.preventDefault(); - e.stopPropagation(); - this.props.root.onDragEnter(e, this); - }; + /** + * When dragging starts + * @param {String} i Id of the child + * @param {Number} x X position of the move + * @param {Number} y Y position of the move + * @param {Event} e The mousedown event + * @param {Element} node The current dragging DOM element + */ - TreeNode.prototype.onDragOver = function onDragOver(e) { - // todo disabled - e.preventDefault(); - e.stopPropagation(); - this.props.root.onDragOver(e, this); - return false; - }; - TreeNode.prototype.onDragLeave = function onDragLeave(e) { - e.stopPropagation(); - this.props.root.onDragLeave(e, this); - }; + ReactGridLayout.prototype.onDragStart = function onDragStart(i, x, y, _ref) { + var e = _ref.e, + node = _ref.node; + var layout = this.state.layout; - TreeNode.prototype.onDrop = function onDrop(e) { - e.preventDefault(); - e.stopPropagation(); - this.setState({ - dragNodeHighlight: false - }); - this.props.root.onDrop(e, this); - }; + var l = (0, _utils.getLayoutItem)(layout, i); + if (!l) return; - TreeNode.prototype.onDragEnd = function onDragEnd(e) { - e.stopPropagation(); this.setState({ - dragNodeHighlight: false + oldDragItem: (0, _utils.cloneLayoutItem)(l), + oldLayout: this.state.layout }); - this.props.root.onDragEnd(e, this); - }; - - TreeNode.prototype.onExpand = function onExpand() { - var _this3 = this; - var callbackPromise = this.props.root.onExpand(this); - if (callbackPromise && (typeof callbackPromise === 'undefined' ? 'undefined' : _typeof(callbackPromise)) === 'object') { - var setLoading = function setLoading(dataLoading) { - _this3.setState({ - dataLoading: dataLoading - }); - }; - setLoading(true); - callbackPromise.then(function () { - setLoading(false); - }, function () { - setLoading(false); - }); - } + return this.props.onDragStart(layout, l, l, null, e, node); }; - // keyboard event support + /** + * Each drag movement create a new dragelement and move the element to the dragged location + * @param {String} i Id of the child + * @param {Number} x X position of the move + * @param {Number} y Y position of the move + * @param {Event} e The mousedown event + * @param {Element} node The current dragging DOM element + */ - TreeNode.prototype.onKeyDown = function onKeyDown(e) { - this.props.root.onKeyDown(e, this); - if (e.keyCode == _tinperBeeCore.KeyCode.SPACE || e.keyCode == _tinperBeeCore.KeyCode.DOWN || e.keyCode == _tinperBeeCore.KeyCode.LEFT || e.keyCode == _tinperBeeCore.KeyCode.RIGHT || e.keyCode == _tinperBeeCore.KeyCode.UP) { - e.preventDefault(); - } - }; + ReactGridLayout.prototype.onDrag = function onDrag(i, x, y, _ref2) { + var e = _ref2.e, + node = _ref2.node; + var oldDragItem = this.state.oldDragItem; + var layout = this.state.layout; + var cols = this.props.cols; - TreeNode.prototype.renderSwitcher = function renderSwitcher(props, expandedState) { - var stateIcon = void 0; - var prefixCls = props.prefixCls; - var switcherCls = _defineProperty({}, prefixCls + '-switcher', true); - if (!props.showLine) { - switcherCls[prefixCls + '-noline_' + expandedState] = true; - } else if (props.pos === '0-0') { - switcherCls[prefixCls + '-roots_' + expandedState] = true; - } else { - switcherCls[prefixCls + '-center_' + expandedState] = !props.last; - switcherCls[prefixCls + '-bottom_' + expandedState] = props.last; - } + var l = (0, _utils.getLayoutItem)(layout, i); + if (!l) return; - if (expandedState === 'open' && props.openIcon) { - stateIcon = props.openIcon; - switcherCls['icon-none'] = true; - } - if (expandedState === 'close' && props.closeIcon) { - stateIcon = props.closeIcon; - switcherCls['icon-none'] = true; - } - //switcherCls[stateIcon] = stateIcon; - props.switcherClass ? switcherCls['' + props.switcherClass] = true : ''; - if (props.disabled && !props.mustExpandable) { - switcherCls[prefixCls + '-switcher-disabled'] = true; - return _react2["default"].createElement( - 'span', - { className: (0, _classnames2["default"])(switcherCls), style: props.switcherStyle }, - stateIcon - ); - } - return _react2["default"].createElement( - 'span', - { className: (0, _classnames2["default"])(switcherCls), style: props.switcherStyle, onClick: this.onExpand }, - stateIcon - ); - }; + // Create placeholder (display only) + var placeholder = { + w: l.w, + h: l.h, + x: l.x, + y: l.y, + placeholder: true, + i: i + }; - TreeNode.prototype.renderCheckbox = function renderCheckbox(props) { - var prefixCls = props.prefixCls; - var checkboxCls = _defineProperty({}, prefixCls + '-checkbox', true); - if (props.checked) { - checkboxCls[prefixCls + '-checkbox-checked'] = true; - } else if (props.halfChecked) { - checkboxCls[prefixCls + '-checkbox-indeterminate'] = true; - } - var customEle = null; - if (typeof props.checkable !== 'boolean') { - customEle = props.checkable; - } - if (props.disabled || props.disableCheckbox) { - checkboxCls[prefixCls + '-checkbox-disabled'] = true; - return _react2["default"].createElement( - 'span', - { className: (0, _classnames2["default"])(checkboxCls) }, - customEle - ); - } - return _react2["default"].createElement( - 'span', - { - className: (0, _classnames2["default"])(checkboxCls), - onClick: this.onCheck - }, - customEle - ); - }; + // Move the element to the dragged location. + var isUserAction = true; + layout = (0, _utils.moveElement)(layout, l, x, y, isUserAction, this.props.preventCollision, this.compactType(), cols); - TreeNode.prototype.renderChildren = function renderChildren(props) { - var renderFirst = this.renderFirst; - this.renderFirst = 1; - var transitionAppear = true; - if (!renderFirst && props.expanded) { - transitionAppear = false; - } - var children = props.children; - var newChildren = children; - // 确定所有子节点是否是TreeNode - var allTreeNode = false; - if (Array.isArray(children)) { - for (var index = 0; index < children.length; index++) { - var item = children[index]; - allTreeNode = item.type.isTreeNode == 1; - if (!allTreeNode) { - //当检查到子节点中有不是 TreeNode 的,则直接结束检查。同时不会渲染所有子节点 - break; - } - } - } else if (children && children.type && children.type.isTreeNode == 1) { - allTreeNode = true; - } - // 如果props.children的长度大于0才可以生成子对象 - if (allTreeNode && _react2["default"].Children.count(children)) { - var _cls; + this.props.onDrag(layout, oldDragItem, l, placeholder, e, node); - var cls = (_cls = {}, _defineProperty(_cls, props.prefixCls + '-child-tree', true), _defineProperty(_cls, props.prefixCls + '-child-tree-open', props.expanded), _cls); - if (props.showLine) { - cls[props.prefixCls + '-line'] = !props.last; - } - var animProps = {}; - if (props.openTransitionName) { - animProps.transitionName = props.openTransitionName; - } else if (_typeof(props.openAnimation) === 'object') { - animProps.animation = _extends({}, props.openAnimation); - if (!transitionAppear) { - delete animProps.animation.appear; - } - } - newChildren = _react2["default"].createElement( - _beeAnimate2["default"], - _extends({}, animProps, { - showProp: 'data-expanded', - transitionAppear: transitionAppear, - component: '' - }), - !props.expanded ? null : _react2["default"].createElement( - 'ul', - { className: (0, _classnames2["default"])(cls), 'data-expanded': props.expanded }, - _react2["default"].Children.map(children, function (item, index) { - return props.root.renderTreeNode(item, index, props.pos); - }, props.root) - ) - ); - } - return newChildren; + this.setState({ + layout: (0, _utils.compact)(layout, this.compactType(), cols), + activeDrag: placeholder + }); }; /** - *判断是否为叶子节点,isLeaf的优先级>props.children。如果是异步加载是根据isLeaf的值进行判断的 - * - * @returns - * @memberof TreeNode + * When dragging stops, figure out which position the element is closest to and update its x and y. + * @param {String} i Index of the child. + * @param {Number} x X position of the move + * @param {Number} y Y position of the move + * @param {Event} e The mousedown event + * @param {Element} node The current dragging DOM element */ - TreeNode.prototype.checkIsLeaf = function checkIsLeaf() { - var _props = this.props, - isLeaf = _props.isLeaf, - loadData = _props.loadData; - - var rs = isLeaf; - if (rs === false || rs === true) { - return rs; - } else { - var hasChildren = this.getNodeChildren().length !== 0; - return !loadData && !hasChildren; - } - }; - - TreeNode.prototype.render = function render() { - var _iconEleCls, - _this4 = this; - - var props = this.props; - var prefixCls = props.prefixCls; - var expandedState = props.expanded ? 'open' : 'close'; - var iconState = expandedState; - var canRenderSwitcher = true; - var content = props.title; - var newChildren = this.renderChildren(props); - var openIconCls = false, - closeIconCls = false; - - //以下变量控制是否鼠标单机双击方法中的变量 - var timer = 0; - var delay = 500; - var prevent = false; - // if (!newChildren || newChildren === props.children) { - // // content = newChildren; - // newChildren = null; - // if (!props.loadData || props.isLeaf) { - // canRenderSwitcher = false; - // iconState = 'docu'; - // } - // } - if (this.checkIsLeaf()) { - canRenderSwitcher = false; - iconState = 'docu'; - } - // For performance, does't render children into dom when `!props.expanded` (move to Animate) - // if (!props.expanded) { - // newChildren = null; - // } + ReactGridLayout.prototype.onDragStop = function onDragStop(i, x, y, _ref3) { + var e = _ref3.e, + node = _ref3.node; + var oldDragItem = this.state.oldDragItem; + var layout = this.state.layout; + var _props = this.props, + cols = _props.cols, + preventCollision = _props.preventCollision; - var iconEleCls = (_iconEleCls = {}, _defineProperty(_iconEleCls, prefixCls + '-iconEle', true), _defineProperty(_iconEleCls, prefixCls + '-icon_loading', this.state.dataLoading), _defineProperty(_iconEleCls, prefixCls + '-icon__' + iconState, true), _iconEleCls); - var selectHandle = function selectHandle() { - var titleClass = props.titleClass ? prefixCls + '-title' + ' ' + props.className : prefixCls + '-title'; - // const icon = (props.showIcon || props.loadData && this.state.dataLoading) ? - // : null; - var icon = void 0; - if (props.showIcon && props.icon) { - icon = _react2["default"].createElement( - 'span', - { - className: (0, _classnames2["default"])(prefixCls + '-iconEle', prefixCls + '-icon__customize') - }, - typeof currentIcon === 'function' ? _react2["default"].createElement(props.icon, _extends({}, _this4.props)) : props.icon - ); - } else if (props.showIcon || props.loadData && _this4.state.dataLoading) { - icon = _react2["default"].createElement('span', { className: (0, _classnames2["default"])(iconEleCls) }); - } - var title = _react2["default"].createElement( - 'span', - { className: titleClass, style: props.titleStyle }, - content - ); - var wrap = prefixCls + '-node-content-wrapper'; - var domProps = { - className: wrap + ' ' + wrap + '-' + (iconState === expandedState ? iconState : 'normal') - }; - if (!props.disabled) { - if (props.selected || !props._dropTrigger && _this4.state.dragNodeHighlight) { - domProps.className += ' ' + prefixCls + '-node-selected'; - } - domProps.onClick = function (e) { - var _this = _this4; - e.preventDefault(); - if (props.selectable) { - _this.onSelect(); - } + var l = (0, _utils.getLayoutItem)(layout, i); + if (!l) return; - // not fire check event - // if (props.checkable) { - // this.onCheck(); - // } - }; + // Move the element here + var isUserAction = true; + layout = (0, _utils.moveElement)(layout, l, x, y, isUserAction, preventCollision, this.compactType(), cols); - if (props.onDoubleClick) { - domProps.onDoubleClick = _this4.onDoubleClick; - } + this.props.onDragStop(layout, oldDragItem, l, null, e, node); - if (props.onRightClick) { - domProps.onContextMenu = _this4.onContextMenu; - } - if (props.onMouseEnter) { - domProps.onMouseEnter = _this4.onMouseEnter; - } - if (props.onMouseLeave) { - domProps.onMouseLeave = _this4.onMouseLeave; - } + // Set state + var newLayout = (0, _utils.compact)(layout, this.compactType(), cols); + var oldLayout = this.state.oldLayout; - if (props.draggable) { - domProps.className += ' draggable'; - if (ieOrEdge) { - // ie bug! - domProps.href = '#'; - } - domProps.draggable = true; - domProps['aria-grabbed'] = true; - domProps.onDragStart = _this4.onDragStart; - } - } - //设置tabIndex - if (props.focusable) { - domProps.onKeyDown = _this4.onKeyDown; - domProps.tabIndex = -1; - if (props.tabIndexKey) { - if (props.eventKey == props.tabIndexKey) { - domProps.tabIndex = props.tabIndexValue; - } - } else if (props.pos == '0-0') { - domProps.tabIndex = props.tabIndexValue; - } - } + this.setState({ + activeDrag: null, + layout: newLayout, + oldDragItem: null, + oldLayout: null + }); - return _react2["default"].createElement( - 'a', - _extends({ ref: function ref(el) { - _this4.selectHandle = el; - }, pos: props.pos, title: typeof content === 'string' ? content : '' }, domProps), - icon, - title - ); - }; + this.onLayoutMaybeChanged(newLayout, oldLayout); + }; - var liProps = {}; - if (props.liAttr) { - liProps = _extends({}, props.liAttr); - } - if (props.draggable) { - liProps.onDragEnter = this.onDragEnter; - liProps.onDragOver = this.onDragOver; - liProps.onDragLeave = this.onDragLeave; - liProps.onDrop = this.onDrop; - liProps.onDragEnd = this.onDragEnd; - } - var disabledCls = ''; - var dragOverCls = ''; - if (props.disabled) { - disabledCls = prefixCls + '-treenode-disabled'; - } else if (props.dragOver) { - dragOverCls = 'drag-over'; - } else if (props.dragOverGapTop) { - dragOverCls = 'drag-over-gap-top'; - } else if (props.dragOverGapBottom) { - dragOverCls = 'drag-over-gap-bottom'; + ReactGridLayout.prototype.onLayoutMaybeChanged = function onLayoutMaybeChanged(newLayout, oldLayout) { + if (!oldLayout) oldLayout = this.state.layout; + if (!(0, _lodash2.default)(oldLayout, newLayout)) { + this.props.onLayoutChange(newLayout); } - - var filterCls = props.filterTreeNode ? props.filterTreeNode(this) ? 'filter-node' : '' : ''; - - var noopSwitcher = function noopSwitcher() { - var _cls2; - - var cls = (_cls2 = {}, _defineProperty(_cls2, prefixCls + '-switcher', true), _defineProperty(_cls2, prefixCls + '-switcher-noop', true), _cls2); - if (props.showLine) { - // console.log('line---------'); - cls[prefixCls + '-center_docu'] = !props.last; - cls[prefixCls + '-bottom_docu'] = props.last; - } else { - cls[prefixCls + '-noline_docu'] = true; - } - return _react2["default"].createElement('span', { className: (0, _classnames2["default"])(cls) }); - }; - var selectedCls = props.selected ? prefixCls + '-treenode-selected' : ''; - var focusedCls = props.focused ? prefixCls + '-treenode-focused' : ''; - var expandedCls = prefixCls + '-treenode-' + expandedState; - return _react2["default"].createElement( - 'li', - _extends({}, liProps, { style: props.style, - className: (0, _classnames2["default"])(props.className, disabledCls, dragOverCls, filterCls, selectedCls, focusedCls, expandedCls) - }), - canRenderSwitcher ? this.renderSwitcher(props, expandedState) : noopSwitcher(), - props.checkable ? this.renderCheckbox(props) : null, - selectHandle(), - newChildren - ); }; - return TreeNode; - }(_react2["default"].Component); - - TreeNode.isTreeNode = 1; - - TreeNode.propTypes = { - prefixCls: _propTypes2["default"].string, - disabled: _propTypes2["default"].bool, - disableCheckbox: _propTypes2["default"].bool, - expanded: _propTypes2["default"].bool, - isLeaf: _propTypes2["default"].bool, - root: _propTypes2["default"].object, - onSelect: _propTypes2["default"].func, - openIcon: _propTypes2["default"].element, - closeIcon: _propTypes2["default"].element, - style: _propTypes2["default"].object, - className: _propTypes2["default"].string, - titleClass: _propTypes2["default"].string, - titleStyle: _propTypes2["default"].object, - switcherClass: _propTypes2["default"].string, - switcherStyle: _propTypes2["default"].object - }; - - TreeNode.defaultProps = { - title: defaultTitle, - tabIndexValue: 0, - mustExpandable: false - }; - - exports["default"] = TreeNode; - module.exports = exports['default']; - - /***/ }), - /* 481 */ - /***/ (function(module, exports, __webpack_require__) { - - "use strict"; - - - exports.__esModule = true; - exports.default = addEventListenerWrap; - - var _addDomEventListener = __webpack_require__(12); - - var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener); - - var _reactDom = __webpack_require__(3); - - var _reactDom2 = _interopRequireDefault(_reactDom); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ - function addEventListenerWrap(target, eventType, cb) { - /* eslint camelcase: 2 */ - var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) { - _reactDom2.default.unstable_batchedUpdates(cb, e); - } : cb; - return (0, _addDomEventListener2.default)(target, eventType, callback); - } - - /***/ }), - /* 482 */ - /***/ (function(module, exports, __webpack_require__) { - - "use strict"; - - - Object.defineProperty(exports, "__esModule", { - value: true - }); - /** - * 在此存储全局配置项 - */ - - // 树懒加载功能,需要用到的变量 - exports["default"] = { - loadBuffer: 5, //懒加载时缓冲区数据量 - defaultRowsInView: 20, //可视区数据量 - rowDiff: 3 //行差值,需要重新截取数据的阈值 - }; - module.exports = exports["default"]; - - /***/ }), - /* 483 */ - /***/ (function(module, exports, __webpack_require__) { - - "use strict"; - + ReactGridLayout.prototype.onResizeStart = function onResizeStart(i, w, h, _ref4) { + var e = _ref4.e, + node = _ref4.node; + var layout = this.state.layout; - Object.defineProperty(exports, "__esModule", { - value: true - }); + var l = (0, _utils.getLayoutItem)(layout, i); + if (!l) return; - var _react = __webpack_require__(0); + this.setState({ + oldResizeItem: (0, _utils.cloneLayoutItem)(l), + oldLayout: this.state.layout + }); - var _react2 = _interopRequireDefault(_react); + this.props.onResizeStart(layout, l, l, null, e, node); + }; - var _reactDom = __webpack_require__(3); + ReactGridLayout.prototype.onResize = function onResize(i, w, h, _ref5) { + var e = _ref5.e, + node = _ref5.node; + var _state = this.state, + layout = _state.layout, + oldResizeItem = _state.oldResizeItem; + var _props2 = this.props, + cols = _props2.cols, + preventCollision = _props2.preventCollision; - var _reactDom2 = _interopRequireDefault(_reactDom); + var l = (0, _utils.getLayoutItem)(layout, i); + if (!l) return; - var _propTypes = __webpack_require__(1); + // Something like quad tree should be used + // to find collisions faster + var hasCollisions = void 0; + if (preventCollision) { + var collisions = (0, _utils.getAllCollisions)(layout, _extends({}, l, { w: w, h: h })).filter(function (layoutItem) { + return layoutItem.i !== l.i; + }); + hasCollisions = collisions.length > 0; - var _propTypes2 = _interopRequireDefault(_propTypes); + // If we're colliding, we need adjust the placeholder. + if (hasCollisions) { + // adjust w && h to maximum allowed space + var leastX = Infinity, + leastY = Infinity; + collisions.forEach(function (layoutItem) { + if (layoutItem.x > l.x) leastX = Math.min(leastX, layoutItem.x); + if (layoutItem.y > l.y) leastY = Math.min(leastY, layoutItem.y); + }); - var _ownerDocument = __webpack_require__(112); + if (Number.isFinite(leastX)) l.w = leastX - l.x; + if (Number.isFinite(leastY)) l.h = leastY - l.y; + } + } - var _ownerDocument2 = _interopRequireDefault(_ownerDocument); + if (!hasCollisions) { + // Set new width and height. + l.w = w; + l.h = h; + } - var _getContainer = __webpack_require__(484); + // Create placeholder element (display only) + var placeholder = { + w: l.w, + h: l.h, + x: l.x, + y: l.y, + static: true, + i: i + }; - var _getContainer2 = _interopRequireDefault(_getContainer); + this.props.onResize(layout, oldResizeItem, l, placeholder, e, node); - var _tinperBeeCore = __webpack_require__(33); + // Re-compact the layout and set the drag placeholder. + this.setState({ + layout: (0, _utils.compact)(layout, this.compactType(), cols), + activeDrag: placeholder + }); + }; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + ReactGridLayout.prototype.onResizeStop = function onResizeStop(i, w, h, _ref6) { + var e = _ref6.e, + node = _ref6.node; + var _state2 = this.state, + layout = _state2.layout, + oldResizeItem = _state2.oldResizeItem; + var cols = this.props.cols; - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + var l = (0, _utils.getLayoutItem)(layout, i); - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + this.props.onResizeStop(layout, oldResizeItem, l, null, e, node); - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + // Set state + var newLayout = (0, _utils.compact)(layout, this.compactType(), cols); + var oldLayout = this.state.oldLayout; - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + this.setState({ + activeDrag: null, + layout: newLayout, + oldResizeItem: null, + oldLayout: null + }); - var isReact16 = _reactDom2["default"].createPortal !== undefined; - var createPortal = isReact16 ? _reactDom2["default"].createPortal : _reactDom2["default"].unstable_renderSubtreeIntoContainer; + this.onLayoutMaybeChanged(newLayout, oldLayout); + }; - var propTypes = { /** - * 存放子组件的容器 + * Create a placeholder object. + * @return {Element} Placeholder div. */ - container: _propTypes2["default"].oneOfType([_tinperBeeCore.componentOrElement, _propTypes2["default"].func]) - }; - - var defaultProps = {}; - - /** - * Portal组件是将子组件渲染 - */ - - var Portal = function (_Component) { - _inherits(Portal, _Component); - - function Portal(props) { - _classCallCheck(this, Portal); - - var _this = _possibleConstructorReturn(this, _Component.call(this, props)); - - _this.getMountNode = _this.getMountNode.bind(_this); - _this.getOverlayDOMNode = _this.getOverlayDOMNode.bind(_this); - _this.mountOverlayTarget = _this.mountOverlayTarget.bind(_this); - _this.unmountOverlayTarget = _this.unmountOverlayTarget.bind(_this); - _this.renderOverlay = _this.renderOverlay.bind(_this); - _this.unrenderOverlay = _this.unrenderOverlay.bind(_this); - - _this.overlayTarget = isReact16 ? document.createElement('div') : null; - return _this; - } - - Portal.prototype.componentDidMount = function componentDidMount() { - if (isReact16) { - this.portalContainerNode = (0, _getContainer2["default"])(this.props.container, (0, _ownerDocument2["default"])(this).body); - this.portalContainerNode.appendChild(this.overlayTarget); - } else { - this.renderOverlay(); - } - - this.mounted = true; - }; - Portal.prototype.componentDidUpdate = function componentDidUpdate() { - if (isReact16) { - var overlay = !this.props.children ? null : _react2["default"].Children.only(this.props.children); - if (overlay === null) { - this.unrenderOverlay(); - this.unmountOverlayTarget(); - } else {} - } else { - this.renderOverlay(); - } - }; - //this._overlayTarget为当前的要添加的子组件, this._portalContainerNode要添加组件的容器元素 + ReactGridLayout.prototype.placeholder = function placeholder() { + var activeDrag = this.state.activeDrag; - Portal.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - if (this.overlayTarget && nextProps.container !== this.props.container) { - this.portalContainerNode.removeChild(this.overlayTarget); - this.portalContainerNode = (0, _getContainer2["default"])(nextProps.container, (0, _ownerDocument2["default"])(this).body); - this.portalContainerNode.appendChild(this.overlayTarget); - } - }; + if (!activeDrag) return null; + var _props3 = this.props, + width = _props3.width, + cols = _props3.cols, + margin = _props3.margin, + containerPadding = _props3.containerPadding, + rowHeight = _props3.rowHeight, + maxRows = _props3.maxRows, + useCSSTransforms = _props3.useCSSTransforms; - Portal.prototype.componentWillUnmount = function componentWillUnmount() { - this.unrenderOverlay(); - this.unmountOverlayTarget(); + // {...this.state.activeDrag} is pretty slow, actually - this.mounted = false; + return _react2.default.createElement( + _GridItem2.default, + { + w: activeDrag.w, + h: activeDrag.h, + x: activeDrag.x, + y: activeDrag.y, + i: activeDrag.i, + className: "react-grid-placeholder", + containerWidth: width, + cols: cols, + margin: margin, + containerPadding: containerPadding || margin, + maxRows: maxRows, + rowHeight: rowHeight, + isDraggable: false, + isResizable: false, + useCSSTransforms: useCSSTransforms + }, + _react2.default.createElement("div", null) + ); }; - Portal.prototype.getMountNode = function getMountNode() { - return this.overlayTarget; - }; + /** + * Given a grid item, set its style attributes & surround in a . + * @param {Element} child React element. + * @return {Element} Element wrapped in draggable and properly placed. + */ - Portal.prototype.getOverlayDOMNode = function getOverlayDOMNode() { - if (!this.mounted) { - throw new Error('getOverlayDOMNode(): A component must be mounted to have a DOM node.'); - } - if (this.overlayInstance) { - return _reactDom2["default"].findDOMNode(this.overlayInstance); - } + ReactGridLayout.prototype.processGridItem = function processGridItem(child) { + if (!child || !child.key) return; + var l = (0, _utils.getLayoutItem)(this.state.layout, String(child.key)); + if (!l) return null; + var _props4 = this.props, + width = _props4.width, + cols = _props4.cols, + margin = _props4.margin, + containerPadding = _props4.containerPadding, + rowHeight = _props4.rowHeight, + maxRows = _props4.maxRows, + isDraggable = _props4.isDraggable, + isResizable = _props4.isResizable, + useCSSTransforms = _props4.useCSSTransforms, + draggableCancel = _props4.draggableCancel, + draggableHandle = _props4.draggableHandle; + var mounted = this.state.mounted; - return null; - }; + // Parse 'static'. Any properties defined directly on the grid item will take precedence. - /** - * 如果要添加的子组件不存在,就将div添加到要添加容器的DOM中; - */ + var draggable = Boolean(!l.static && isDraggable && (l.isDraggable || l.isDraggable == null)); + var resizable = Boolean(!l.static && isResizable && (l.isResizable || l.isResizable == null)); - Portal.prototype.mountOverlayTarget = function mountOverlayTarget() { - if (!this.overlayTarget) { - this.overlayTarget = document.createElement('div'); - this.portalContainerNode = (0, _getContainer2["default"])(this.props.container, (0, _ownerDocument2["default"])(this).body); - this.portalContainerNode.appendChild(this.overlayTarget); - } + return _react2.default.createElement( + _GridItem2.default, + { + containerWidth: width, + cols: cols, + margin: margin, + containerPadding: containerPadding || margin, + maxRows: maxRows, + rowHeight: rowHeight, + cancel: draggableCancel, + handle: draggableHandle, + onDragStop: this.onDragStop, + onDragStart: this.onDragStart, + onDrag: this.onDrag, + onResizeStart: this.onResizeStart, + onResize: this.onResize, + onResizeStop: this.onResizeStop, + isDraggable: draggable, + isResizable: resizable, + useCSSTransforms: useCSSTransforms && mounted, + usePercentages: !mounted, + w: l.w, + h: l.h, + x: l.x, + y: l.y, + i: l.i, + minH: l.minH, + minW: l.minW, + maxH: l.maxH, + maxW: l.maxW, + "static": l.static + }, + child + ); }; - /** - * 将要添加的子元素从容器中移除,并把变量置为null - */ + ReactGridLayout.prototype.render = function render() { + var _this2 = this; - Portal.prototype.unmountOverlayTarget = function unmountOverlayTarget() { - if (this.overlayTarget) { - this.portalContainerNode.removeChild(this.overlayTarget); - this.overlayTarget = null; - } - this.portalContainerNode = null; - }; - /** - * 手动渲染_overlayTarget - */ - + var _props5 = this.props, + className = _props5.className, + style = _props5.style; - Portal.prototype.renderOverlay = function renderOverlay() { - var overlay = !this.props.children ? null : _react2["default"].Children.only(this.props.children); + var mergedClassName = (0, _classnames2.default)("react-grid-layout", className); + var mergedStyle = _extends({ + height: this.containerHeight() + }, style); - // Save reference for future access. - if (overlay !== null) { - this.mountOverlayTarget(); - this.overlayInstance = _reactDom2["default"].unstable_renderSubtreeIntoContainer(this, overlay, this.overlayTarget); - } else { - // Unrender if the component is null for transitions to null - this.unrenderOverlay(); - this.unmountOverlayTarget(); - } + return _react2.default.createElement( + "div", + { className: mergedClassName, style: mergedStyle }, + _react2.default.Children.map(this.props.children, function (child) { + return _this2.processGridItem(child); + }), + this.placeholder() + ); }; - /** - * 销毁_overlayTarget组件。并把_overlayInstance置为null - */ + return ReactGridLayout; + }(_react2.default.Component); - Portal.prototype.unrenderOverlay = function unrenderOverlay() { - if (this.overlayTarget) { - !isReact16 && _reactDom2["default"].unmountComponentAtNode(this.overlayTarget); - this.overlayInstance = null; - } - }; + ReactGridLayout.displayName = "ReactGridLayout"; + ReactGridLayout.propTypes = { + // + // Basic props + // + className: _propTypes2.default.string, + style: _propTypes2.default.object, - Portal.prototype.render = function render() { - if (!isReact16) { - return null; - } + // This can be set explicitly. If it is not set, it will automatically + // be set to the container width. Note that resizes will *not* cause this to adjust. + // If you need that behavior, use WidthProvider. + width: _propTypes2.default.number, - var overlay = !this.props.children ? null : _react2["default"].Children.only(this.props.children); + // If true, the container height swells and contracts to fit contents + autoSize: _propTypes2.default.bool, + // # of cols. + cols: _propTypes2.default.number, - return _reactDom2["default"].createPortal(overlay, this.overlayTarget); - }; + // A selector that will not be draggable. + draggableCancel: _propTypes2.default.string, + // A selector for the draggable handler + draggableHandle: _propTypes2.default.string, - return Portal; - }(_react.Component); + // Deprecated + verticalCompact: function verticalCompact(props) { + if (props.verticalCompact === false && process.env.NODE_ENV !== "production") { + console.warn( + // eslint-disable-line no-console + "`verticalCompact` on is deprecated and will be removed soon. " + 'Use `compactType`: "horizontal" | "vertical" | null.'); + } + }, + // Choose vertical or hotizontal compaction + compactType: _propTypes2.default.oneOf(["vertical", "horizontal"]), - ; + // layout is an array of object with the format: + // {x: Number, y: Number, w: Number, h: Number, i: String} + layout: function layout(props) { + var layout = props.layout; + // I hope you're setting the data-grid property on the grid items + if (layout === undefined) return; + (0, _utils.validateLayout)(layout, "layout"); + }, - Portal.propTypes = propTypes; - Portal.defaultProps = defaultProps; + // + // Grid Dimensions + // - exports["default"] = Portal; - module.exports = exports['default']; + // Margin between items [x, y] in px + margin: _propTypes2.default.arrayOf(_propTypes2.default.number), + // Padding inside the container [x, y] in px + containerPadding: _propTypes2.default.arrayOf(_propTypes2.default.number), + // Rows have a static height, but you can change this based on breakpoints if you like + rowHeight: _propTypes2.default.number, + // Default Infinity, but you can specify a max here if you like. + // Note that this isn't fully fleshed out and won't error if you specify a layout that + // extends beyond the row capacity. It will, however, not allow users to drag/resize + // an item past the barrier. They can push items beyond the barrier, though. + // Intentionally not documented for this reason. + maxRows: _propTypes2.default.number, - /***/ }), - /* 484 */ - /***/ (function(module, exports, __webpack_require__) { + // + // Flags + // + isDraggable: _propTypes2.default.bool, + isResizable: _propTypes2.default.bool, + // If true, grid items won't change position when being dragged over. + preventCollision: _propTypes2.default.bool, + // Use CSS transforms instead of top/left + useCSSTransforms: _propTypes2.default.bool, - "use strict"; + // + // Callbacks + // + // Callback so you can save the layout. Calls after each drag & resize stops. + onLayoutChange: _propTypes2.default.func, - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports["default"] = getContainer; + // Calls when drag starts. Callback is of the signature (layout, oldItem, newItem, placeholder, e, ?node). + // All callbacks below have the same signature. 'start' and 'stop' callbacks omit the 'placeholder'. + onDragStart: _propTypes2.default.func, + // Calls on each drag movement. + onDrag: _propTypes2.default.func, + // Calls when drag is complete. + onDragStop: _propTypes2.default.func, + //Calls when resize starts. + onResizeStart: _propTypes2.default.func, + // Calls when resize movement happens. + onResize: _propTypes2.default.func, + // Calls when resize is complete. + onResizeStop: _propTypes2.default.func, - var _reactDom = __webpack_require__(3); + // + // Other validations + // - var _reactDom2 = _interopRequireDefault(_reactDom); + // Children must not have duplicate keys. + children: function children(props, propName) { + var children = props[propName]; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + // Check children keys for duplicates. Throw if found. + var keys = {}; + _react2.default.Children.forEach(children, function (child) { + if (keys[child.key]) { + throw new Error('Duplicate child key "' + child.key + '" found! This will cause problems in ReactGridLayout.'); + } + keys[child.key] = true; + }); + } + }; + ReactGridLayout.defaultProps = { + autoSize: true, + cols: 12, + className: "", + style: {}, + draggableHandle: "", + draggableCancel: "", + containerPadding: null, + rowHeight: 150, + maxRows: Infinity, // infinite vertical growth + layout: [], + margin: [10, 10], + isDraggable: true, + isResizable: true, + useCSSTransforms: true, + verticalCompact: true, + compactType: "vertical", + preventCollision: false, + onLayoutChange: _utils.noop, + onDragStart: _utils.noop, + onDrag: _utils.noop, + onDragStop: _utils.noop, + onResizeStart: _utils.noop, + onResize: _utils.noop, + onResizeStop: _utils.noop + }; - /** - * 获取容器组件 - * @param {[type]} container [description] - * @param {[type]} defaultContainer [description] - * @return {[type]} [description] - */ - function getContainer(container, defaultContainer) { - container = typeof container === 'function' ? container() : container; - return _reactDom2["default"].findDOMNode(container) || defaultContainer; - } - module.exports = exports['default']; + var _initialiseProps = function _initialiseProps() { + this.state = { + activeDrag: null, + layout: (0, _utils.synchronizeLayoutWithChildren)(this.props.layout, this.props.children, this.props.cols, + // Legacy support for verticalCompact: false + this.compactType()), + mounted: false, + oldDragItem: null, + oldLayout: null, + oldResizeItem: null + }; + }; + + exports.default = ReactGridLayout; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) /***/ }), - /* 485 */ + /* 310 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; exports.__esModule = true; - exports.default = addEventListenerWrap; + exports.default = void 0; - var _addDomEventListener = __webpack_require__(12); + var _react = _interopRequireDefault(__webpack_require__(0)); - var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener); + var _propTypes = _interopRequireDefault(__webpack_require__(1)); - var _reactDom = __webpack_require__(3); + var _reactDraggable = __webpack_require__(1107); - var _reactDom2 = _interopRequireDefault(_reactDom); + var _utils = __webpack_require__(1111); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ - function addEventListenerWrap(target, eventType, cb) { - /* eslint camelcase: 2 */ - var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) { - _reactDom2.default.unstable_batchedUpdates(cb, e); - } : cb; - return (0, _addDomEventListener2.default)(target, eventType, callback); - } - - /***/ }), - /* 486 */ - /***/ (function(module, exports, __webpack_require__) { - - "use strict"; - + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - Object.defineProperty(exports, "__esModule", { - value: true - }); + function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - exports["default"] = function (node, event, handler, capture) { - (0, _on2["default"])(node, event, handler, capture); + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - return { - remove: function remove() { - (0, _off2["default"])(node, event, handler, capture); - } - }; - }; + function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } - var _on = __webpack_require__(17); + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - var _on2 = _interopRequireDefault(_on); + function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } - var _off = __webpack_require__(49); + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - var _off2 = _interopRequireDefault(_off); + var Resizable = + /*#__PURE__*/ + function (_React$Component) { + _inheritsLoose(Resizable, _React$Component); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + function Resizable() { + var _this; - module.exports = exports['default']; + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } - /***/ }), - /* 487 */ - /***/ (function(module, exports, __webpack_require__) { + _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this; - "use strict"; + _defineProperty(_assertThisInitialized(_this), "state", { + slackW: 0, + slackH: 0 + }); + return _this; + } - Object.defineProperty(exports, "__esModule", { - value: true - }); - var getClass = exports.getClass = function getClass(props, doing) { - var dropClass = props.dropClass, - dropOverClass = props.dropOverClass, - dragClass = props.dragClass, - dragingClass = props.dragingClass, - type = props.type; + var _proto = Resizable.prototype; + _proto.lockAspectRatio = function lockAspectRatio(width, height, aspectRatio) { + height = width / aspectRatio; + width = height * aspectRatio; + return [width, height]; + } // If you do this, be careful of constraints + ; - var verticalObj = { - drop: {}, drag: {} - }; - verticalObj.drop['u-drop ' + dropClass] = true; - verticalObj.drop['u-droping ' + dropOverClass] = doing; - verticalObj.drag['u-drag ' + dragClass] = true; - verticalObj.drag['u-draging ' + dragingClass] = doing; + _proto.runConstraints = function runConstraints(width, height) { + var _ref = [this.props.minConstraints, this.props.maxConstraints], + min = _ref[0], + max = _ref[1]; + if (!min && !max) return [width, height]; // Fit width & height to aspect ratio - var horizontalObj = { - drop: {}, drag: {} - }; - horizontalObj.drop['u-drop u-drop-horizontal ' + dropClass] = true; - horizontalObj.drop['u-droping u-droping-horizontal ' + dropOverClass] = doing; - horizontalObj.drag['u-drag u-drag-horizontal ' + dragClass] = true; - horizontalObj.drag['u-draging u-draging-horizontal ' + dragingClass] = doing; + if (this.props.lockAspectRatio) { + if (height === this.props.height) { + var ratio = this.props.width / this.props.height; + height = width / ratio; + width = height * ratio; + } else { + // Take into account vertical resize with N/S handles on locked aspect + // ratio. Calculate the change height-first, instead of width-first + var _ratio = this.props.height / this.props.width; - switch (type) { - case 'vertical': - return verticalObj; - break; - case 'horizontal': - return horizontalObj; - break; - case 'betweenVertical': - return verticalObj; - break; - case 'betweenHorizontal': - return horizontalObj; - break; + width = height / _ratio; + height = width * _ratio; + } } - }; - - /***/ }), - /* 488 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { - - "use strict"; - /* harmony export (immutable) */ __webpack_exports__["a"] = findDOMNode; - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react_dom__ = __webpack_require__(3); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react_dom__); - /** - * Return if a node is a DOM node. Else will return by `findDOMNode` - */ + var oldW = width, + oldH = height; // Add slack to the values used to calculate bound position. This will ensure that if + // we start removing slack, the element won't react to it right away until it's been + // completely removed. - function findDOMNode(node) { - if (node instanceof HTMLElement) { - return node; - } + var _this$state = this.state, + slackW = _this$state.slackW, + slackH = _this$state.slackH; + width += slackW; + height += slackH; - return __WEBPACK_IMPORTED_MODULE_0_react_dom___default.a.findDOMNode(node); - } + if (min) { + width = Math.max(min[0], width); + height = Math.max(min[1], height); + } - /***/ }), - /* 489 */ - /***/ (function(module, exports, __webpack_require__) { + if (max) { + width = Math.min(max[0], width); + height = Math.min(max[1], height); + } // If the numbers changed, we must have introduced some slack. Record it for the next iteration. - /* WEBPACK VAR INJECTION */(function(global) {/** - * lodash (Custom Build) - * Build: `lodash modularize exports="npm" -o ./` - * Copyright jQuery Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */ - /** Used as the `TypeError` message for "Functions" methods. */ - var FUNC_ERROR_TEXT = 'Expected a function'; + slackW += oldW - width; + slackH += oldH - height; - /** Used as references for various `Number` constants. */ - var NAN = 0 / 0; + if (slackW !== this.state.slackW || slackH !== this.state.slackH) { + this.setState({ + slackW: slackW, + slackH: slackH + }); + } - /** `Object#toString` result references. */ - var symbolTag = '[object Symbol]'; + return [width, height]; + } + /** + * Wrapper around drag events to provide more useful data. + * + * @param {String} handlerName Handler name to wrap. + * @return {Function} Handler function. + */ + ; - /** Used to match leading and trailing whitespace. */ - var reTrim = /^\s+|\s+$/g; + _proto.resizeHandler = function resizeHandler(handlerName, axis) { + var _this2 = this; - /** Used to detect bad signed hexadecimal string values. */ - var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; + return function (e, _ref2) { + var node = _ref2.node, + deltaX = _ref2.deltaX, + deltaY = _ref2.deltaY; + deltaX /= _this2.props.transformScale; + deltaY /= _this2.props.transformScale; // Axis restrictions - /** Used to detect binary string values. */ - var reIsBinary = /^0b[01]+$/i; + var canDragX = (_this2.props.axis === 'both' || _this2.props.axis === 'x') && ['n', 's'].indexOf(axis) === -1; + var canDragY = (_this2.props.axis === 'both' || _this2.props.axis === 'y') && ['e', 'w'].indexOf(axis) === -1; // reverse delta if using top or left drag handles - /** Used to detect octal string values. */ - var reIsOctal = /^0o[0-7]+$/i; + if (canDragX && axis[axis.length - 1] === 'w') { + deltaX = -deltaX; + } - /** Built-in method references without a dependency on `root`. */ - var freeParseInt = parseInt; + if (canDragY && axis[0] === 'n') { + deltaY = -deltaY; + } // Update w/h - /** Detect free variable `global` from Node.js. */ - var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; - /** Detect free variable `self`. */ - var freeSelf = typeof self == 'object' && self && self.Object === Object && self; + var width = _this2.props.width + (canDragX ? deltaX : 0); + var height = _this2.props.height + (canDragY ? deltaY : 0); // Early return if no change - /** Used as a reference to the global object. */ - var root = freeGlobal || freeSelf || Function('return this')(); + var widthChanged = width !== _this2.props.width, + heightChanged = height !== _this2.props.height; + if (handlerName === 'onResize' && !widthChanged && !heightChanged) return; - /** Used for built-in method references. */ - var objectProto = Object.prototype; + var _this2$runConstraints = _this2.runConstraints(width, height); - /** - * Used to resolve the - * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) - * of values. - */ - var objectToString = objectProto.toString; + width = _this2$runConstraints[0]; + height = _this2$runConstraints[1]; + // Set the appropriate state for this handler. + var newState = {}; - /* Built-in method references for those with the same name as other `lodash` methods. */ - var nativeMax = Math.max, - nativeMin = Math.min; + if (handlerName === 'onResizeStart') {// nothing + } else if (handlerName === 'onResizeStop') { + newState.slackW = newState.slackH = 0; + } else { + // Early return if no change after constraints + if (width === _this2.props.width && height === _this2.props.height) return; + } - /** - * Gets the timestamp of the number of milliseconds that have elapsed since - * the Unix epoch (1 January 1970 00:00:00 UTC). - * - * @static - * @memberOf _ - * @since 2.4.0 - * @category Date - * @returns {number} Returns the timestamp. - * @example - * - * _.defer(function(stamp) { - * console.log(_.now() - stamp); - * }, _.now()); - * // => Logs the number of milliseconds it took for the deferred invocation. - */ - var now = function() { - return root.Date.now(); - }; + var hasCb = typeof _this2.props[handlerName] === 'function'; - /** - * Creates a debounced function that delays invoking `func` until after `wait` - * milliseconds have elapsed since the last time the debounced function was - * invoked. The debounced function comes with a `cancel` method to cancel - * delayed `func` invocations and a `flush` method to immediately invoke them. - * Provide `options` to indicate whether `func` should be invoked on the - * leading and/or trailing edge of the `wait` timeout. The `func` is invoked - * with the last arguments provided to the debounced function. Subsequent - * calls to the debounced function return the result of the last `func` - * invocation. - * - * **Note:** If `leading` and `trailing` options are `true`, `func` is - * invoked on the trailing edge of the timeout only if the debounced function - * is invoked more than once during the `wait` timeout. - * - * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred - * until to the next tick, similar to `setTimeout` with a timeout of `0`. - * - * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/) - * for details over the differences between `_.debounce` and `_.throttle`. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Function - * @param {Function} func The function to debounce. - * @param {number} [wait=0] The number of milliseconds to delay. - * @param {Object} [options={}] The options object. - * @param {boolean} [options.leading=false] - * Specify invoking on the leading edge of the timeout. - * @param {number} [options.maxWait] - * The maximum time `func` is allowed to be delayed before it's invoked. - * @param {boolean} [options.trailing=true] - * Specify invoking on the trailing edge of the timeout. - * @returns {Function} Returns the new debounced function. - * @example - * - * // Avoid costly calculations while the window size is in flux. - * jQuery(window).on('resize', _.debounce(calculateLayout, 150)); - * - * // Invoke `sendMail` when clicked, debouncing subsequent calls. - * jQuery(element).on('click', _.debounce(sendMail, 300, { - * 'leading': true, - * 'trailing': false - * })); - * - * // Ensure `batchLog` is invoked once after 1 second of debounced calls. - * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 }); - * var source = new EventSource('/stream'); - * jQuery(source).on('message', debounced); - * - * // Cancel the trailing debounced invocation. - * jQuery(window).on('popstate', debounced.cancel); - */ - function debounce(func, wait, options) { - var lastArgs, - lastThis, - maxWait, - result, - timerId, - lastCallTime, - lastInvokeTime = 0, - leading = false, - maxing = false, - trailing = true; + if (hasCb) { + // $FlowIgnore isn't refining this correctly to SyntheticEvent + if (typeof e.persist === 'function') e.persist(); - if (typeof func != 'function') { - throw new TypeError(FUNC_ERROR_TEXT); - } - wait = toNumber(wait) || 0; - if (isObject(options)) { - leading = !!options.leading; - maxing = 'maxWait' in options; - maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait; - trailing = 'trailing' in options ? !!options.trailing : trailing; - } + _this2.setState(newState, function () { + return _this2.props[handlerName](e, { + node: node, + size: { + width: width, + height: height + }, + handle: axis + }); + }); + } else { + _this2.setState(newState); + } + }; + }; - function invokeFunc(time) { - var args = lastArgs, - thisArg = lastThis; + _proto.renderResizeHandle = function renderResizeHandle(resizeHandle) { + var handle = this.props.handle; - lastArgs = lastThis = undefined; - lastInvokeTime = time; - result = func.apply(thisArg, args); - return result; - } + if (handle) { + if (typeof handle === 'function') { + return handle(resizeHandle); + } - function leadingEdge(time) { - // Reset any `maxWait` timer. - lastInvokeTime = time; - // Start the timer for the trailing edge. - timerId = setTimeout(timerExpired, wait); - // Invoke the leading edge. - return leading ? invokeFunc(time) : result; - } + return handle; + } - function remainingWait(time) { - var timeSinceLastCall = time - lastCallTime, - timeSinceLastInvoke = time - lastInvokeTime, - result = wait - timeSinceLastCall; + return _react.default.createElement("span", { + className: "react-resizable-handle react-resizable-handle-" + resizeHandle + }); + }; - return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result; - } + _proto.render = function render() { + var _this3 = this; - function shouldInvoke(time) { - var timeSinceLastCall = time - lastCallTime, - timeSinceLastInvoke = time - lastInvokeTime; + // eslint-disable-next-line no-unused-vars + var _this$props = this.props, + children = _this$props.children, + draggableOpts = _this$props.draggableOpts, + width = _this$props.width, + height = _this$props.height, + handleSize = _this$props.handleSize, + lockAspectRatio = _this$props.lockAspectRatio, + axis = _this$props.axis, + minConstraints = _this$props.minConstraints, + maxConstraints = _this$props.maxConstraints, + onResize = _this$props.onResize, + onResizeStop = _this$props.onResizeStop, + onResizeStart = _this$props.onResizeStart, + resizeHandles = _this$props.resizeHandles, + transformScale = _this$props.transformScale, + p = _objectWithoutPropertiesLoose(_this$props, ["children", "draggableOpts", "width", "height", "handleSize", "lockAspectRatio", "axis", "minConstraints", "maxConstraints", "onResize", "onResizeStop", "onResizeStart", "resizeHandles", "transformScale"]); - // Either this is the first call, activity has stopped and we're at the - // trailing edge, the system time has gone backwards and we're treating - // it as the trailing edge, or we've hit the `maxWait` limit. - return (lastCallTime === undefined || (timeSinceLastCall >= wait) || - (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait)); - } + var className = p.className ? p.className + " react-resizable" : 'react-resizable'; // What we're doing here is getting the child of this element, and cloning it with this element's props. + // We are then defining its children as: + // Its original children (resizable's child's children), and + // One or more draggable handles. - function timerExpired() { - var time = now(); - if (shouldInvoke(time)) { - return trailingEdge(time); - } - // Restart the timer. - timerId = setTimeout(timerExpired, remainingWait(time)); - } + return (0, _utils.cloneElement)(children, _objectSpread({}, p, { + className: className, + children: [children.props.children, resizeHandles.map(function (h) { + return _react.default.createElement(_reactDraggable.DraggableCore, _extends({}, draggableOpts, { + key: "resizableHandle-" + h, + onStop: _this3.resizeHandler('onResizeStop', h), + onStart: _this3.resizeHandler('onResizeStart', h), + onDrag: _this3.resizeHandler('onResize', h) + }), _this3.renderResizeHandle(h)); + })] + })); + }; - function trailingEdge(time) { - timerId = undefined; + return Resizable; + }(_react.default.Component); - // Only invoke if we have `lastArgs` which means `func` has been - // debounced at least once. - if (trailing && lastArgs) { - return invokeFunc(time); - } - lastArgs = lastThis = undefined; - return result; - } + exports.default = Resizable; - function cancel() { - if (timerId !== undefined) { - clearTimeout(timerId); - } - lastInvokeTime = 0; - lastArgs = lastCallTime = lastThis = timerId = undefined; - } + _defineProperty(Resizable, "propTypes", { + // + // Required Props + // + // Require that one and only one child be present. + children: _propTypes.default.element.isRequired, + // Initial w/h + width: _propTypes.default.number.isRequired, + height: _propTypes.default.number.isRequired, + // + // Optional props + // + // Custom resize handle + handle: _propTypes.default.element, + // If you change this, be sure to update your css + handleSize: _propTypes.default.array, + // Defines which resize handles should be rendered (default: 'se') + // Allows for any combination of: + // 's' - South handle (bottom-center) + // 'w' - West handle (left-center) + // 'e' - East handle (right-center) + // 'n' - North handle (top-center) + // 'sw' - Southwest handle (bottom-left) + // 'nw' - Northwest handle (top-left) + // 'se' - Southeast handle (bottom-right) + // 'ne' - Northeast handle (top-center) + resizeHandles: _propTypes.default.arrayOf(_propTypes.default.oneOf(['s', 'w', 'e', 'n', 'sw', 'nw', 'se', 'ne'])), + transformScale: _propTypes.default.number, + // If true, will only allow width/height to move in lockstep + lockAspectRatio: _propTypes.default.bool, + // Restricts resizing to a particular axis (default: 'both') + // 'both' - allows resizing by width or height + // 'x' - only allows the width to be changed + // 'y' - only allows the height to be changed + // 'none' - disables resizing altogether + axis: _propTypes.default.oneOf(['both', 'x', 'y', 'none']), + // Min/max size + minConstraints: _propTypes.default.arrayOf(_propTypes.default.number), + maxConstraints: _propTypes.default.arrayOf(_propTypes.default.number), + // Callbacks + onResizeStop: _propTypes.default.func, + onResizeStart: _propTypes.default.func, + onResize: _propTypes.default.func, + // These will be passed wholesale to react-draggable's DraggableCore + draggableOpts: _propTypes.default.object + }); - function flush() { - return timerId === undefined ? result : trailingEdge(now()); - } + _defineProperty(Resizable, "defaultProps", { + handleSize: [20, 20], + lockAspectRatio: false, + axis: 'both', + minConstraints: [20, 20], + maxConstraints: [Infinity, Infinity], + resizeHandles: ['se'], + transformScale: 1 + }); - function debounced() { - var time = now(), - isInvoking = shouldInvoke(time); + /***/ }), + /* 311 */ + /***/ (function(module, exports, __webpack_require__) { - lastArgs = arguments; - lastThis = this; - lastCallTime = time; + "use strict"; - if (isInvoking) { - if (timerId === undefined) { - return leadingEdge(lastCallTime); - } - if (maxing) { - // Handle invocations in a tight loop. - timerId = setTimeout(timerExpired, wait); - return invokeFunc(lastCallTime); - } - } - if (timerId === undefined) { - timerId = setTimeout(timerExpired, wait); - } - return result; - } - debounced.cancel = cancel; - debounced.flush = flush; - return debounced; - } - /** - * Checks if `value` is the - * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) - * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an object, else `false`. - * @example - * - * _.isObject({}); - * // => true - * - * _.isObject([1, 2, 3]); - * // => true - * - * _.isObject(_.noop); - * // => true - * - * _.isObject(null); - * // => false - */ - function isObject(value) { - var type = typeof value; - return !!value && (type == 'object' || type == 'function'); - } + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.getBoundPosition = getBoundPosition; + exports.snapToGrid = snapToGrid; + exports.canDragX = canDragX; + exports.canDragY = canDragY; + exports.getControlPosition = getControlPosition; + exports.createCoreData = createCoreData; + exports.createDraggableData = createDraggableData; - /** - * Checks if `value` is object-like. A value is object-like if it's not `null` - * and has a `typeof` result of "object". - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - * @example - * - * _.isObjectLike({}); - * // => true - * - * _.isObjectLike([1, 2, 3]); - * // => true - * - * _.isObjectLike(_.noop); - * // => false - * - * _.isObjectLike(null); - * // => false - */ - function isObjectLike(value) { - return !!value && typeof value == 'object'; - } + var _shims = __webpack_require__(108); - /** - * Checks if `value` is classified as a `Symbol` primitive or object. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. - * @example - * - * _.isSymbol(Symbol.iterator); - * // => true - * - * _.isSymbol('abc'); - * // => false - */ - function isSymbol(value) { - return typeof value == 'symbol' || - (isObjectLike(value) && objectToString.call(value) == symbolTag); - } + var _domFns = __webpack_require__(174); - /** - * Converts `value` to a number. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to process. - * @returns {number} Returns the number. - * @example - * - * _.toNumber(3.2); - * // => 3.2 - * - * _.toNumber(Number.MIN_VALUE); - * // => 5e-324 - * - * _.toNumber(Infinity); - * // => Infinity - * - * _.toNumber('3.2'); - * // => 3.2 - */ - function toNumber(value) { - if (typeof value == 'number') { - return value; - } - if (isSymbol(value)) { - return NAN; - } - if (isObject(value)) { - var other = typeof value.valueOf == 'function' ? value.valueOf() : value; - value = isObject(other) ? (other + '') : other; - } - if (typeof value != 'string') { - return value === 0 ? value : +value; - } - value = value.replace(reTrim, ''); - var isBinary = reIsBinary.test(value); - return (isBinary || reIsOctal.test(value)) - ? freeParseInt(value.slice(2), isBinary ? 2 : 8) - : (reIsBadHex.test(value) ? NAN : +value); - } + function getBoundPosition(draggable + /*: Draggable*/ + , x + /*: number*/ + , y + /*: number*/ + ) + /*: [number, number]*/ + { + // If no bounds, short-circuit and move on + if (!draggable.props.bounds) return [x, y]; // Clone new bounds - module.exports = debounce; + var bounds = draggable.props.bounds; + bounds = typeof bounds === 'string' ? bounds : cloneBounds(bounds); + var node = findDOMNode(draggable); - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) + if (typeof bounds === 'string') { + var ownerDocument = node.ownerDocument; + var ownerWindow = ownerDocument.defaultView; + var boundNode; - /***/ }), - /* 490 */ - /***/ (function(module, exports, __webpack_require__) { + if (bounds === 'parent') { + boundNode = node.parentNode; + } else { + boundNode = ownerDocument.querySelector(bounds); + } - "use strict"; + if (!(boundNode instanceof ownerWindow.HTMLElement)) { + throw new Error('Bounds selector "' + bounds + '" could not find an element.'); + } + var nodeStyle = ownerWindow.getComputedStyle(node); + var boundNodeStyle = ownerWindow.getComputedStyle(boundNode); // Compute bounds. This is a pain with padding and offsets but this gets it exactly right. - Object.defineProperty(exports, "__esModule", { - value: true - }); + bounds = { + left: -node.offsetLeft + (0, _shims.int)(boundNodeStyle.paddingLeft) + (0, _shims.int)(nodeStyle.marginLeft), + top: -node.offsetTop + (0, _shims.int)(boundNodeStyle.paddingTop) + (0, _shims.int)(nodeStyle.marginTop), + right: (0, _domFns.innerWidth)(boundNode) - (0, _domFns.outerWidth)(node) - node.offsetLeft + (0, _shims.int)(boundNodeStyle.paddingRight) - (0, _shims.int)(nodeStyle.marginRight), + bottom: (0, _domFns.innerHeight)(boundNode) - (0, _domFns.outerHeight)(node) - node.offsetTop + (0, _shims.int)(boundNodeStyle.paddingBottom) - (0, _shims.int)(nodeStyle.marginBottom) + }; + } // Keep x and y below right and bottom limits... - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }(); + if ((0, _shims.isNum)(bounds.right)) x = Math.min(x, bounds.right); + if ((0, _shims.isNum)(bounds.bottom)) y = Math.min(y, bounds.bottom); // But above left and top limits. - var _react = __webpack_require__(0); + if ((0, _shims.isNum)(bounds.left)) x = Math.max(x, bounds.left); + if ((0, _shims.isNum)(bounds.top)) y = Math.max(y, bounds.top); + return [x, y]; + } - var _react2 = _interopRequireDefault(_react); + function snapToGrid(grid + /*: [number, number]*/ + , pendingX + /*: number*/ + , pendingY + /*: number*/ + ) + /*: [number, number]*/ + { + var x = Math.round(pendingX / grid[0]) * grid[0]; + var y = Math.round(pendingY / grid[1]) * grid[1]; + return [x, y]; + } - var _classnames = __webpack_require__(2); + function canDragX(draggable + /*: Draggable*/ + ) + /*: boolean*/ + { + return draggable.props.axis === 'both' || draggable.props.axis === 'x'; + } - var _classnames2 = _interopRequireDefault(_classnames); + function canDragY(draggable + /*: Draggable*/ + ) + /*: boolean*/ + { + return draggable.props.axis === 'both' || draggable.props.axis === 'y'; + } // Get {x, y} positions from event. - var _splitObject3 = __webpack_require__(491); - var _splitObject4 = _interopRequireDefault(_splitObject3); + function getControlPosition(e + /*: MouseTouchEvent*/ + , touchIdentifier + /*: ?number*/ + , draggableCore + /*: DraggableCore*/ + ) + /*: ?ControlPosition*/ + { + var touchObj = typeof touchIdentifier === 'number' ? (0, _domFns.getTouch)(e, touchIdentifier) : null; + if (typeof touchIdentifier === 'number' && !touchObj) return null; // not the right touch - var _propTypes = __webpack_require__(1); + var node = findDOMNode(draggableCore); // User can provide an offsetParent if desired. - var _propTypes2 = _interopRequireDefault(_propTypes); + var offsetParent = draggableCore.props.offsetParent || node.offsetParent || node.ownerDocument.body; + return (0, _domFns.offsetXYFromParent)(touchObj || e, offsetParent, draggableCore.props.scale); + } // Create an data object exposed by 's events - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + function createCoreData(draggable + /*: DraggableCore*/ + , x + /*: number*/ + , y + /*: number*/ + ) + /*: DraggableData*/ + { + var state = draggable.state; + var isStart = !(0, _shims.isNum)(state.lastX); + var node = findDOMNode(draggable); - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + if (isStart) { + // If this is our first move, use the x and y as last coords. + return { + node: node, + deltaX: 0, + deltaY: 0, + lastX: x, + lastY: y, + x: x, + y: y + }; + } else { + // Otherwise calculate proper values. + return { + node: node, + deltaX: x - state.lastX, + deltaY: y - state.lastY, + lastX: state.lastX, + lastY: state.lastY, + x: x, + y: y + }; + } + } // Create an data exposed by 's events - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + function createDraggableData(draggable + /*: Draggable*/ + , coreData + /*: DraggableData*/ + ) + /*: DraggableData*/ + { + var scale = draggable.props.scale; + return { + node: coreData.node, + x: draggable.state.x + coreData.deltaX / scale, + y: draggable.state.y + coreData.deltaY / scale, + deltaX: coreData.deltaX / scale, + deltaY: coreData.deltaY / scale, + lastX: draggable.state.x, + lastY: draggable.state.y + }; + } // A lot faster than stringify/parse - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - // Timeline - var propTypes = { - /** 指定圆圈颜色 */ - color: _propTypes2["default"].string, - dot: _propTypes2["default"].node, - pending: _propTypes2["default"].bool - }; - var defaultProps = { - prefixCls: 'u-timeline', - color: 'primary', - last: false, - pending: false - }; + function cloneBounds(bounds + /*: Bounds*/ + ) + /*: Bounds*/ + { + return { + left: bounds.left, + top: bounds.top, + right: bounds.right, + bottom: bounds.bottom + }; + } - var TimelineItem = function (_React$Component) { - _inherits(TimelineItem, _React$Component); + function findDOMNode(draggable + /*: Draggable | DraggableCore*/ + ) + /*: HTMLElement*/ + { + var node = draggable.findDOMNode(); - function TimelineItem() { - _classCallCheck(this, TimelineItem); + if (!node) { + throw new Error(': Unmounted during event!'); + } // $FlowIgnore we can't assert on HTMLElement due to tests... FIXME - return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); - } - TimelineItem.prototype.render = function render() { - var _classNames, _classNames2; + return node; + } - var _splitObject = (0, _splitObject4["default"])(this.props, ['prefixCls', 'color', 'last', 'children', 'pending', 'className', 'dot']), - _splitObject2 = _slicedToArray(_splitObject, 2), - _splitObject2$ = _splitObject2[0], - prefixCls = _splitObject2$.prefixCls, - color = _splitObject2$.color, - last = _splitObject2$.last, - children = _splitObject2$.children, - pending = _splitObject2$.pending, - className = _splitObject2$.className, - dot = _splitObject2$.dot, - restProps = _splitObject2[1]; + /***/ }), + /* 312 */ + /***/ (function(module, exports, __webpack_require__) { - var itemClassName = (0, _classnames2["default"])((_classNames = {}, _defineProperty(_classNames, prefixCls + '-item', true), _defineProperty(_classNames, prefixCls + '-item-last', last), _defineProperty(_classNames, prefixCls + '-item-pending', pending), _classNames), className); + "use strict"; - var dotClassName = (0, _classnames2["default"])((_classNames2 = {}, _defineProperty(_classNames2, prefixCls + '-item-head', true), _defineProperty(_classNames2, prefixCls + '-item-head-custom', dot), _defineProperty(_classNames2, prefixCls + '-item-head-' + color, true), _classNames2)); - return _react2["default"].createElement( - 'li', - _extends({}, restProps, { className: itemClassName }), - _react2["default"].createElement('div', { className: prefixCls + '-item-tail' }), - _react2["default"].createElement( - 'div', - { - className: dotClassName, - style: { borderColor: /blue|red|green/.test(color) ? null : color } - }, - dot - ), - _react2["default"].createElement( - 'div', - { className: prefixCls + '-item-content' }, - children - ) - ); - }; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = log; - return TimelineItem; - }(_react2["default"].Component); + /*eslint no-console:0*/ + function log() { + var _console; - TimelineItem.propTypes = propTypes; - TimelineItem.defaultProps = defaultProps; - exports["default"] = TimelineItem; - module.exports = exports['default']; + if (undefined) (_console = console).log.apply(_console, arguments); + } /***/ }), - /* 491 */ + /* 313 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports["default"] = splitObject; - function splitObject(obj, parts) { - var left = {}; - var right = {}; - Object.keys(obj).forEach(function (k) { - if (parts.indexOf(k) !== -1) { - left[k] = obj[k]; - } else { - right[k] = obj[k]; + exports.__esModule = true; + exports.getBreakpointFromWidth = getBreakpointFromWidth; + exports.getColsFromBreakpoint = getColsFromBreakpoint; + exports.findOrGenerateResponsiveLayout = findOrGenerateResponsiveLayout; + exports.sortBreakpoints = sortBreakpoints; + + var _utils = __webpack_require__(76); + + /** + * Given a width, find the highest breakpoint that matches is valid for it (width > breakpoint). + * + * @param {Object} breakpoints Breakpoints object (e.g. {lg: 1200, md: 960, ...}) + * @param {Number} width Screen width. + * @return {String} Highest breakpoint that is less than width. + */ + function getBreakpointFromWidth(breakpoints, width) { + var sorted = sortBreakpoints(breakpoints); + var matching = sorted[0]; + for (var i = 1, len = sorted.length; i < len; i++) { + var breakpointName = sorted[i]; + if (width > breakpoints[breakpointName]) matching = breakpointName; + } + return matching; + } + + /** + * Given a breakpoint, get the # of cols set for it. + * @param {String} breakpoint Breakpoint name. + * @param {Object} cols Map of breakpoints to cols. + * @return {Number} Number of cols. + */ + + + function getColsFromBreakpoint(breakpoint, cols) { + if (!cols[breakpoint]) { + throw new Error("ResponsiveReactGridLayout: `cols` entry for breakpoint " + breakpoint + " is missing!"); + } + return cols[breakpoint]; + } + + /** + * Given existing layouts and a new breakpoint, find or generate a new layout. + * + * This finds the layout above the new one and generates from it, if it exists. + * + * @param {Object} layouts Existing layouts. + * @param {Array} breakpoints All breakpoints. + * @param {String} breakpoint New breakpoint. + * @param {String} breakpoint Last breakpoint (for fallback). + * @param {Number} cols Column count at new breakpoint. + * @param {Boolean} verticalCompact Whether or not to compact the layout + * vertically. + * @return {Array} New layout. + */ + function findOrGenerateResponsiveLayout(layouts, breakpoints, breakpoint, lastBreakpoint, cols, compactType) { + // If it already exists, just return it. + if (layouts[breakpoint]) return (0, _utils.cloneLayout)(layouts[breakpoint]); + // Find or generate the next layout + var layout = layouts[lastBreakpoint]; + var breakpointsSorted = sortBreakpoints(breakpoints); + var breakpointsAbove = breakpointsSorted.slice(breakpointsSorted.indexOf(breakpoint)); + for (var i = 0, len = breakpointsAbove.length; i < len; i++) { + var b = breakpointsAbove[i]; + if (layouts[b]) { + layout = layouts[b]; + break; } + } + layout = (0, _utils.cloneLayout)(layout || []); // clone layout so we don't modify existing items + return (0, _utils.compact)((0, _utils.correctBounds)(layout, { cols: cols }), compactType, cols); + } + + /** + * Given breakpoints, return an array of breakpoints sorted by width. This is usually + * e.g. ['xxs', 'xs', 'sm', ...] + * + * @param {Object} breakpoints Key/value pair of breakpoint names to widths. + * @return {Array} Sorted breakpoints. + */ + function sortBreakpoints(breakpoints) { + var keys = Object.keys(breakpoints); + return keys.sort(function (a, b) { + return breakpoints[a] - breakpoints[b]; }); - return [left, right]; } - module.exports = exports["default"]; /***/ }), - /* 492 */ + /* 314 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -157554,17 +140489,17 @@ value: true }); - var _Transfer = __webpack_require__(1420); + var _Button = __webpack_require__(1119); - var _Transfer2 = _interopRequireDefault(_Transfer); + var _Button2 = _interopRequireDefault(_Button); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - exports["default"] = _Transfer2["default"]; + exports["default"] = _Button2["default"]; module.exports = exports['default']; /***/ }), - /* 493 */ + /* 315 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -157573,171 +140508,148 @@ Object.defineProperty(exports, "__esModule", { value: true }); + var util = { + isAppearSupported: function isAppearSupported(props) { + return props.transitionName && props.transitionAppear || props.animation.appear; + }, + isEnterSupported: function isEnterSupported(props) { + return props.transitionName && props.transitionEnter || props.animation.enter; + }, + isLeaveSupported: function isLeaveSupported(props) { + return props.transitionName && props.transitionLeave || props.animation.leave; + }, + allowAppearCallback: function allowAppearCallback(props) { + return props.transitionAppear || props.animation.appear; + }, + allowEnterCallback: function allowEnterCallback(props) { + return props.transitionEnter || props.animation.enter; + }, + allowLeaveCallback: function allowLeaveCallback(props) { + return props.transitionLeave || props.animation.leave; + } + }; + exports["default"] = util; + module.exports = exports["default"]; - var _react = __webpack_require__(0); - - var _react2 = _interopRequireDefault(_react); - - var _beeIcon = __webpack_require__(113); + /***/ }), + /* 316 */ + /***/ (function(module, exports, __webpack_require__) { - var _beeIcon2 = _interopRequireDefault(_beeIcon); + "use strict"; - var _beeFormControl = __webpack_require__(1423); - var _beeFormControl2 = _interopRequireDefault(_beeFormControl); + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports["default"] = getContainer; - var _propTypes = __webpack_require__(1); + var _reactDom = __webpack_require__(3); - var _propTypes2 = _interopRequireDefault(_propTypes); + var _reactDom2 = _interopRequireDefault(_reactDom); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + /** + * 获取容器组件 + * @param {[type]} container [description] + * @param {[type]} defaultContainer [description] + * @return {[type]} [description] + */ + function getContainer(container, defaultContainer) { + container = typeof container === 'function' ? container() : container; + return _reactDom2["default"].findDOMNode(container) || defaultContainer; + } + module.exports = exports['default']; - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + /***/ }), + /* 317 */ + /***/ (function(module, exports, __webpack_require__) { - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + "use strict"; - var propTypes = { - prefixCls: _propTypes2["default"].string, - placeholder: _propTypes2["default"].string, - onChange: _propTypes2["default"].func, - handleClear: _propTypes2["default"].func - }; - var defaultProps = { - placeholder: '' - }; + exports.__esModule = true; + exports.default = addEventListenerWrap; - var Search = function (_React$Component) { - _inherits(Search, _React$Component); + var _addDomEventListener = __webpack_require__(16); - function Search() { - var _temp, _this, _ret; + var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener); - _classCallCheck(this, Search); + var _reactDom = __webpack_require__(3); - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } + var _reactDom2 = _interopRequireDefault(_reactDom); - return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.handleChange = function (e) { - var onChange = _this.props.onChange; - if (onChange) { - onChange(e); - } - }, _this.handleClear = function (e) { - e.preventDefault(); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var handleClear = _this.props.handleClear; - if (handleClear) { - handleClear(e); - } - }, _temp), _possibleConstructorReturn(_this, _ret); - } + /** + * This source code is quoted from rc-util. + * homepage: https://github.com/react-component/util + */ + function addEventListenerWrap(target, eventType, cb) { + /* eslint camelcase: 2 */ + var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) { + _reactDom2.default.unstable_batchedUpdates(cb, e); + } : cb; + return (0, _addDomEventListener2.default)(target, eventType, callback); + } - Search.prototype.render = function render() { - var _props = this.props, - placeholder = _props.placeholder, - value = _props.value, - prefixCls = _props.prefixCls; + /***/ }), + /* 318 */ + /***/ (function(module, exports, __webpack_require__) { - var icon = value && value.length > 0 ? _react2["default"].createElement( - 'a', - { href: '#', className: prefixCls + '-action', onClick: this.handleClear }, - _react2["default"].createElement(_beeIcon2["default"], { type: 'uf-close-c' }) - ) : _react2["default"].createElement( - 'span', - { className: prefixCls + '-action' }, - _react2["default"].createElement(_beeIcon2["default"], { type: 'uf-search' }) - ); + (function (global, factory) { + true ? module.exports = factory() : + typeof define === 'function' && define.amd ? define(factory) : + (global.arrayTreeFilter = factory()); + }(this, (function () { 'use strict'; - return _react2["default"].createElement( - 'div', - null, - _react2["default"].createElement(_beeFormControl2["default"], { - size: 'sm', - placeholder: placeholder, - className: prefixCls, - value: value, - ref: 'input', - onChange: this.handleChange - }), - icon - ); - }; + function arrayTreeFilter(data, filterFn, options) { + options = options || {}; + options.childrenKeyName = options.childrenKeyName || "children"; + var children = data || []; + var result = []; + var level = 0; + do { + var foundItem = children.filter(function (item) { + return filterFn(item, level); + })[0]; + if (!foundItem) { + break; + } + result.push(foundItem); + children = foundItem[options.childrenKeyName] || []; + level += 1; + } while (children.length > 0); + return result; + } - return Search; - }(_react2["default"].Component); + return arrayTreeFilter; - Search.propTypes = propTypes; - Search.defaultProps = defaultProps; + }))); - exports["default"] = Search; - module.exports = exports['default']; /***/ }), - /* 494 */ + /* 319 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * @providesModule ReactComponentWithPureRenderMixin - */ + Object.defineProperty(exports, "__esModule", { + value: true + }); - var shallowEqual = __webpack_require__(72); + var _Icon = __webpack_require__(1198); - function shallowCompare(instance, nextProps, nextState) { - return !shallowEqual(instance.props, nextProps) || !shallowEqual(instance.state, nextState); - } + var _Icon2 = _interopRequireDefault(_Icon); - /** - * If your React component's render function is "pure", e.g. it will render the - * same result given the same props and state, provide this mixin for a - * considerable performance boost. - * - * Most React components have pure render functions. - * - * Example: - * - * var ReactComponentWithPureRenderMixin = - * require('ReactComponentWithPureRenderMixin'); - * React.createClass({ - * mixins: [ReactComponentWithPureRenderMixin], - * - * render: function() { - * return
    foo
    ; - * } - * }); - * - * Note: This only checks shallow equality for props and state. If these contain - * complex data structures this mixin may have false-negatives for deeper - * differences. Only mixin to components which have simple props and state, or - * use `forceUpdate()` when you know deep data structures have changed. - * - * See https://facebook.github.io/react/docs/pure-render-mixin.html - */ - var ReactComponentWithPureRenderMixin = { - shouldComponentUpdate: function shouldComponentUpdate(nextProps, nextState) { - return shallowCompare(this, nextProps, nextState); - } - }; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - module.exports = ReactComponentWithPureRenderMixin; + exports["default"] = _Icon2["default"]; + module.exports = exports['default']; /***/ }), - /* 495 */ + /* 320 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -157747,52 +140659,41 @@ value: true }); - var _Checkbox = __webpack_require__(496); + var _Calendar = __webpack_require__(1226); - var _Checkbox2 = _interopRequireDefault(_Checkbox); - - var _CheckboxGroup = __webpack_require__(1432); - - var _CheckboxGroup2 = _interopRequireDefault(_CheckboxGroup); + var _Calendar2 = _interopRequireDefault(_Calendar); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - _Checkbox2["default"].CheckboxGroup = _CheckboxGroup2["default"]; - exports["default"] = _Checkbox2["default"]; + exports["default"] = _Calendar2["default"]; module.exports = exports['default']; /***/ }), - /* 496 */ + /* 321 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { - value: true + value: true }); - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - - var _classnames = __webpack_require__(2); - - var _classnames2 = _interopRequireDefault(_classnames); - var _react = __webpack_require__(0); var _react2 = _interopRequireDefault(_react); - var _propTypes = __webpack_require__(1); + var _DateTHead = __webpack_require__(1227); - var _propTypes2 = _interopRequireDefault(_propTypes); + var _DateTHead2 = _interopRequireDefault(_DateTHead); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var _DateTBody = __webpack_require__(1229); - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + var _DateTBody2 = _interopRequireDefault(_DateTBody); - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } @@ -157800,7001 +140701,14199 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - var propTypes = { - - colors: _propTypes2["default"].oneOf(['', 'dark', 'success', 'info', 'warning', 'danger', 'primary']), - - disabled: _propTypes2["default"].bool, - - inverse: _propTypes2["default"].bool - - }; - - var defaultProps = { - disabled: false, - inverse: false, - colors: 'primary', - clsPrefix: 'u-checkbox', - defaultChecked: false, - onClick: function onClick() {} - }; - var clsPrefix = 'u-checkbox'; - - var Checkbox = function (_React$Component) { - _inherits(Checkbox, _React$Component); - - function Checkbox(props) { - _classCallCheck(this, Checkbox); + var DateTable = function (_React$Component) { + _inherits(DateTable, _React$Component); - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); + function DateTable() { + _classCallCheck(this, DateTable); - _initialiseProps.call(_this); + return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); + } - _this.state = { - checked: 'checked' in props ? props.checked : props.defaultChecked, - focused: false - }; - _this.doubleClickFlag = null; - return _this; - } + DateTable.prototype.render = function render() { + var props = this.props; + var prefixCls = props.prefixCls; + return _react2["default"].createElement( + 'table', + { className: prefixCls + '-table', cellSpacing: '0', role: 'grid' }, + _react2["default"].createElement(_DateTHead2["default"], props), + _react2["default"].createElement(_DateTBody2["default"], props) + ); + }; - Checkbox.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - if ('checked' in nextProps) { - this.setState({ - checked: nextProps.checked - }); - } - }; + return DateTable; + }(_react2["default"].Component); - Checkbox.prototype.render = function render() { - var _classes; + exports["default"] = DateTable; + module.exports = exports['default']; - var _props = this.props, - disabled = _props.disabled, - inverse = _props.inverse, - colors = _props.colors, - size = _props.size, - className = _props.className, - indeterminate = _props.indeterminate, - onClick = _props.onClick, - children = _props.children, - checked = _props.checked, - clsPrefix = _props.clsPrefix, - onDoubleClick = _props.onDoubleClick, - onChange = _props.onChange, - others = _objectWithoutProperties(_props, ['disabled', 'inverse', 'colors', 'size', 'className', 'indeterminate', 'onClick', 'children', 'checked', 'clsPrefix', 'onDoubleClick', 'onChange']); + /***/ }), + /* 322 */ + /***/ (function(module, exports, __webpack_require__) { - var input = _react2["default"].createElement('input', _extends({}, others, { - type: 'checkbox', - disabled: this.props.disabled, - onFocus: this.handleFocus, - onBlur: this.handleBlur - })); + "use strict"; - var classes = (_classes = {}, _defineProperty(_classes, clsPrefix + '-focused', this.state.focused), _defineProperty(_classes, 'is-checked', this.state.checked), _defineProperty(_classes, 'disabled', disabled), _classes); - if (inverse) { - classes[clsPrefix + '-inverse'] = true; - } + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports["default"] = { + DATE_ROW_COUNT: 6, + DATE_COL_COUNT: 7 + }; + module.exports = exports["default"]; - if (colors) { - classes[clsPrefix + '-' + colors] = true; - } + /***/ }), + /* 323 */ + /***/ (function(module, exports, __webpack_require__) { - if (size) { - classes[clsPrefix + '-' + size] = true; - } + //! moment.js locale configuration + //! locale : Afrikaans [af] + //! author : Werner Mollentze : https://github.com/wernerm - if (!checked && indeterminate) { - classes[clsPrefix + '-indeterminate'] = true; - } + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var classNames = (0, _classnames2["default"])(clsPrefix, classes); + //! moment.js locale configuration - return _react2["default"].createElement( - 'label', - { - className: (0, _classnames2["default"])(classNames, className), - onDoubleClick: this.handledbClick, - onClick: this.changeState }, - input, - _react2["default"].createElement( - 'label', - { className: clsPrefix + '-label' }, - children - ) - ); - }; + var af = moment.defineLocale('af', { + months: 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'), + weekdays: 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split( + '_' + ), + weekdaysShort: 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'), + weekdaysMin: 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'), + meridiemParse: /vm|nm/i, + isPM: function (input) { + return /^nm$/i.test(input); + }, + meridiem: function (hours, minutes, isLower) { + if (hours < 12) { + return isLower ? 'vm' : 'VM'; + } else { + return isLower ? 'nm' : 'NM'; + } + }, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Vandag om] LT', + nextDay: '[Môre om] LT', + nextWeek: 'dddd [om] LT', + lastDay: '[Gister om] LT', + lastWeek: '[Laas] dddd [om] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'oor %s', + past: '%s gelede', + s: "'n paar sekondes", + ss: '%d sekondes', + m: "'n minuut", + mm: '%d minute', + h: "'n uur", + hh: '%d ure', + d: "'n dag", + dd: '%d dae', + M: "'n maand", + MM: '%d maande', + y: "'n jaar", + yy: '%d jaar', + }, + dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, + ordinal: function (number) { + return ( + number + + (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de') + ); // Thanks to Joris Röling : https://github.com/jjupiter + }, + week: { + dow: 1, // Maandag is die eerste dag van die week. + doy: 4, // Die week wat die 4de Januarie bevat is die eerste week van die jaar. + }, + }); - return Checkbox; - }(_react2["default"].Component); + return af; - var _initialiseProps = function _initialiseProps() { - var _this2 = this; + }))); - this.changeState = function (e) { - var props = _this2.props; - var checked = _this2.state.checked; - clearTimeout(_this2.doubleClickFlag); - if (props.onClick instanceof Function) { - props.onClick(e); - } - if (props.onDoubleClick instanceof Function) { - _this2.doubleClickFlag = setTimeout(function () { - //do function在此处写单击事件要执行的代码 - _this2.change(props, checked); - }, 300); - } else { - _this2.change(props, checked); - } - e.stopPropagation(); - e.preventDefault(); - //执行延时 - }; + /***/ }), + /* 324 */ + /***/ (function(module, exports, __webpack_require__) { - this.change = function (props, checked) { - if (props.disabled) { - return; - } - if (!('checked' in props)) { - _this2.setState({ - checked: !checked - }); - } + //! moment.js locale configuration + //! locale : Arabic [ar] + //! author : Abdel Said: https://github.com/abdelsaid + //! author : Ahmed Elkhatib + //! author : forabi https://github.com/forabi - if (props.onChange instanceof Function) { - props.onChange(!checked); - } - }; + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - this.handledbClick = function (e) { - var onDoubleClick = _this2.props.onDoubleClick; + //! moment.js locale configuration - clearTimeout(_this2.doubleClickFlag); - onDoubleClick && onDoubleClick(_this2.state.checked, e); - }; + var symbolMap = { + '1': '١', + '2': '٢', + '3': '٣', + '4': '٤', + '5': '٥', + '6': '٦', + '7': '٧', + '8': '٨', + '9': '٩', + '0': '٠', + }, + numberMap = { + '١': '1', + '٢': '2', + '٣': '3', + '٤': '4', + '٥': '5', + '٦': '6', + '٧': '7', + '٨': '8', + '٩': '9', + '٠': '0', + }, + pluralForm = function (n) { + return n === 0 + ? 0 + : n === 1 + ? 1 + : n === 2 + ? 2 + : n % 100 >= 3 && n % 100 <= 10 + ? 3 + : n % 100 >= 11 + ? 4 + : 5; + }, + plurals = { + s: [ + 'أقل من ثانية', + 'ثانية واحدة', + ['ثانيتان', 'ثانيتين'], + '%d ثوان', + '%d ثانية', + '%d ثانية', + ], + m: [ + 'أقل من دقيقة', + 'دقيقة واحدة', + ['دقيقتان', 'دقيقتين'], + '%d دقائق', + '%d دقيقة', + '%d دقيقة', + ], + h: [ + 'أقل من ساعة', + 'ساعة واحدة', + ['ساعتان', 'ساعتين'], + '%d ساعات', + '%d ساعة', + '%d ساعة', + ], + d: [ + 'أقل من يوم', + 'يوم واحد', + ['يومان', 'يومين'], + '%d أيام', + '%d يومًا', + '%d يوم', + ], + M: [ + 'أقل من شهر', + 'شهر واحد', + ['شهران', 'شهرين'], + '%d أشهر', + '%d شهرا', + '%d شهر', + ], + y: [ + 'أقل من عام', + 'عام واحد', + ['عامان', 'عامين'], + '%d أعوام', + '%d عامًا', + '%d عام', + ], + }, + pluralize = function (u) { + return function (number, withoutSuffix, string, isFuture) { + var f = pluralForm(number), + str = plurals[u][pluralForm(number)]; + if (f === 2) { + str = str[withoutSuffix ? 0 : 1]; + } + return str.replace(/%d/i, number); + }; + }, + months = [ + 'يناير', + 'فبراير', + 'مارس', + 'أبريل', + 'مايو', + 'يونيو', + 'يوليو', + 'أغسطس', + 'سبتمبر', + 'أكتوبر', + 'نوفمبر', + 'ديسمبر', + ]; - this.handleFocus = function (e) { - if (e.target && e.target.type == 'checkbox') { - _this2.setState({ - focused: true - }); - } - }; + var ar = moment.defineLocale('ar', { + months: months, + monthsShort: months, + weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), + weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), + weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'D/\u200FM/\u200FYYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + meridiemParse: /ص|م/, + isPM: function (input) { + return 'م' === input; + }, + meridiem: function (hour, minute, isLower) { + if (hour < 12) { + return 'ص'; + } else { + return 'م'; + } + }, + calendar: { + sameDay: '[اليوم عند الساعة] LT', + nextDay: '[غدًا عند الساعة] LT', + nextWeek: 'dddd [عند الساعة] LT', + lastDay: '[أمس عند الساعة] LT', + lastWeek: 'dddd [عند الساعة] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'بعد %s', + past: 'منذ %s', + s: pluralize('s'), + ss: pluralize('s'), + m: pluralize('m'), + mm: pluralize('m'), + h: pluralize('h'), + hh: pluralize('h'), + d: pluralize('d'), + dd: pluralize('d'), + M: pluralize('M'), + MM: pluralize('M'), + y: pluralize('y'), + yy: pluralize('y'), + }, + preparse: function (string) { + return string + .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) { + return numberMap[match]; + }) + .replace(/،/g, ','); + }, + postformat: function (string) { + return string + .replace(/\d/g, function (match) { + return symbolMap[match]; + }) + .replace(/,/g, '،'); + }, + week: { + dow: 6, // Saturday is the first day of the week. + doy: 12, // The week that contains Jan 12th is the first week of the year. + }, + }); - this.handleBlur = function (e) { - if (e.target && e.target.type == 'checkbox') { - _this2.setState({ - focused: false - }); - } - }; - }; + return ar; - Checkbox.propTypes = propTypes; - Checkbox.defaultProps = defaultProps; + }))); - exports["default"] = Checkbox; - module.exports = exports['default']; /***/ }), - /* 497 */ + /* 325 */ /***/ (function(module, exports, __webpack_require__) { - "use strict"; - - - exports.__esModule = true; - exports.default = addEventListenerWrap; + //! moment.js locale configuration + //! locale : Arabic (Algeria) [ar-dz] + //! author : Noureddine LOUAHEDJ : https://github.com/noureddineme - var _addDomEventListener = __webpack_require__(12); + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener); + //! moment.js locale configuration - var _reactDom = __webpack_require__(3); + var arDz = moment.defineLocale('ar-dz', { + months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( + '_' + ), + monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( + '_' + ), + weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), + weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), + weekdaysMin: 'أح_إث_ثلا_أر_خم_جم_سب'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[اليوم على الساعة] LT', + nextDay: '[غدا على الساعة] LT', + nextWeek: 'dddd [على الساعة] LT', + lastDay: '[أمس على الساعة] LT', + lastWeek: 'dddd [على الساعة] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'في %s', + past: 'منذ %s', + s: 'ثوان', + ss: '%d ثانية', + m: 'دقيقة', + mm: '%d دقائق', + h: 'ساعة', + hh: '%d ساعات', + d: 'يوم', + dd: '%d أيام', + M: 'شهر', + MM: '%d أشهر', + y: 'سنة', + yy: '%d سنوات', + }, + week: { + dow: 0, // Sunday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - var _reactDom2 = _interopRequireDefault(_reactDom); + return arDz; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + }))); - /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ - function addEventListenerWrap(target, eventType, cb) { - /* eslint camelcase: 2 */ - var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) { - _reactDom2.default.unstable_batchedUpdates(cb, e); - } : cb; - return (0, _addDomEventListener2.default)(target, eventType, callback); - } /***/ }), - /* 498 */ + /* 326 */ /***/ (function(module, exports, __webpack_require__) { - "use strict"; - - - exports.__esModule = true; - exports.default = addEventListenerWrap; + //! moment.js locale configuration + //! locale : Arabic (Kuwait) [ar-kw] + //! author : Nusret Parlak: https://github.com/nusretparlak - var _addDomEventListener = __webpack_require__(12); + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener); + //! moment.js locale configuration - var _reactDom = __webpack_require__(3); + var arKw = moment.defineLocale('ar-kw', { + months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( + '_' + ), + monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( + '_' + ), + weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), + weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), + weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[اليوم على الساعة] LT', + nextDay: '[غدا على الساعة] LT', + nextWeek: 'dddd [على الساعة] LT', + lastDay: '[أمس على الساعة] LT', + lastWeek: 'dddd [على الساعة] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'في %s', + past: 'منذ %s', + s: 'ثوان', + ss: '%d ثانية', + m: 'دقيقة', + mm: '%d دقائق', + h: 'ساعة', + hh: '%d ساعات', + d: 'يوم', + dd: '%d أيام', + M: 'شهر', + MM: '%d أشهر', + y: 'سنة', + yy: '%d سنوات', + }, + week: { + dow: 0, // Sunday is the first day of the week. + doy: 12, // The week that contains Jan 12th is the first week of the year. + }, + }); - var _reactDom2 = _interopRequireDefault(_reactDom); + return arKw; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + }))); - /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ - function addEventListenerWrap(target, eventType, cb) { - /* eslint camelcase: 2 */ - var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) { - _reactDom2.default.unstable_batchedUpdates(cb, e); - } : cb; - return (0, _addDomEventListener2.default)(target, eventType, callback); - } /***/ }), - /* 499 */ + /* 327 */ /***/ (function(module, exports, __webpack_require__) { - "use strict"; - - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - /** - * This source code is quoted from rc-slider. - * homepage: https://github.com/react-component/slider - */ - - - var _react = __webpack_require__(0); + //! moment.js locale configuration + //! locale : Arabic (Lybia) [ar-ly] + //! author : Ali Hmer: https://github.com/kikoanis - var _react2 = _interopRequireDefault(_react); + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + //! moment.js locale configuration - var Track = function Track(props) { - //处于激活状态的track - var className = props.className, - included = props.included, - vertical = props.vertical, - offset = props.offset, - length = props.length, - style = props.style; + var symbolMap = { + '1': '1', + '2': '2', + '3': '3', + '4': '4', + '5': '5', + '6': '6', + '7': '7', + '8': '8', + '9': '9', + '0': '0', + }, + pluralForm = function (n) { + return n === 0 + ? 0 + : n === 1 + ? 1 + : n === 2 + ? 2 + : n % 100 >= 3 && n % 100 <= 10 + ? 3 + : n % 100 >= 11 + ? 4 + : 5; + }, + plurals = { + s: [ + 'أقل من ثانية', + 'ثانية واحدة', + ['ثانيتان', 'ثانيتين'], + '%d ثوان', + '%d ثانية', + '%d ثانية', + ], + m: [ + 'أقل من دقيقة', + 'دقيقة واحدة', + ['دقيقتان', 'دقيقتين'], + '%d دقائق', + '%d دقيقة', + '%d دقيقة', + ], + h: [ + 'أقل من ساعة', + 'ساعة واحدة', + ['ساعتان', 'ساعتين'], + '%d ساعات', + '%d ساعة', + '%d ساعة', + ], + d: [ + 'أقل من يوم', + 'يوم واحد', + ['يومان', 'يومين'], + '%d أيام', + '%d يومًا', + '%d يوم', + ], + M: [ + 'أقل من شهر', + 'شهر واحد', + ['شهران', 'شهرين'], + '%d أشهر', + '%d شهرا', + '%d شهر', + ], + y: [ + 'أقل من عام', + 'عام واحد', + ['عامان', 'عامين'], + '%d أعوام', + '%d عامًا', + '%d عام', + ], + }, + pluralize = function (u) { + return function (number, withoutSuffix, string, isFuture) { + var f = pluralForm(number), + str = plurals[u][pluralForm(number)]; + if (f === 2) { + str = str[withoutSuffix ? 0 : 1]; + } + return str.replace(/%d/i, number); + }; + }, + months = [ + 'يناير', + 'فبراير', + 'مارس', + 'أبريل', + 'مايو', + 'يونيو', + 'يوليو', + 'أغسطس', + 'سبتمبر', + 'أكتوبر', + 'نوفمبر', + 'ديسمبر', + ]; + var arLy = moment.defineLocale('ar-ly', { + months: months, + monthsShort: months, + weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), + weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), + weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'D/\u200FM/\u200FYYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + meridiemParse: /ص|م/, + isPM: function (input) { + return 'م' === input; + }, + meridiem: function (hour, minute, isLower) { + if (hour < 12) { + return 'ص'; + } else { + return 'م'; + } + }, + calendar: { + sameDay: '[اليوم عند الساعة] LT', + nextDay: '[غدًا عند الساعة] LT', + nextWeek: 'dddd [عند الساعة] LT', + lastDay: '[أمس عند الساعة] LT', + lastWeek: 'dddd [عند الساعة] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'بعد %s', + past: 'منذ %s', + s: pluralize('s'), + ss: pluralize('s'), + m: pluralize('m'), + mm: pluralize('m'), + h: pluralize('h'), + hh: pluralize('h'), + d: pluralize('d'), + dd: pluralize('d'), + M: pluralize('M'), + MM: pluralize('M'), + y: pluralize('y'), + yy: pluralize('y'), + }, + preparse: function (string) { + return string.replace(/،/g, ','); + }, + postformat: function (string) { + return string + .replace(/\d/g, function (match) { + return symbolMap[match]; + }) + .replace(/,/g, '،'); + }, + week: { + dow: 6, // Saturday is the first day of the week. + doy: 12, // The week that contains Jan 12th is the first week of the year. + }, + }); - var positonStyle = vertical ? { - bottom: offset + '%', - height: length + '%' - } : { - left: offset + '%', - width: length + '%' - }; + return arLy; - var elStyle = _extends({ - visibility: included ? 'visible' : 'hidden' - }, style, positonStyle); - return _react2["default"].createElement('div', { className: className, style: elStyle }); - }; + }))); - exports["default"] = Track; - module.exports = exports['default']; /***/ }), - /* 500 */ + /* 328 */ /***/ (function(module, exports, __webpack_require__) { - "use strict"; - /* WEBPACK VAR INJECTION */(function(process) { - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - - exports["default"] = createSlider; - - var _react = __webpack_require__(0); - - var _react2 = _interopRequireDefault(_react); - - var _propTypes = __webpack_require__(1); - - var _propTypes2 = _interopRequireDefault(_propTypes); - - var _addEventListener = __webpack_require__(1478); - - var _addEventListener2 = _interopRequireDefault(_addEventListener); - - var _classnames = __webpack_require__(2); - - var _classnames2 = _interopRequireDefault(_classnames); - - var _warning = __webpack_require__(6); - - var _warning2 = _interopRequireDefault(_warning); - - var _Steps = __webpack_require__(1479); - - var _Steps2 = _interopRequireDefault(_Steps); - - var _Marks = __webpack_require__(1480); - - var _Marks2 = _interopRequireDefault(_Marks); - - var _Handle = __webpack_require__(196); - - var _Handle2 = _interopRequireDefault(_Handle); - - var _utils = __webpack_require__(197); - - var utils = _interopRequireWildcard(_utils); - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj["default"] = obj; return newObj; } } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** - * This source code is quoted from rc-slider. - * homepage: https://github.com/react-component/slider - */ - - - function noop() {} - - function createSlider(Component) { - var _class, _temp; - - return _temp = _class = function (_Component) { - _inherits(ComponentEnhancer, _Component); - - function ComponentEnhancer(props) { - _classCallCheck(this, ComponentEnhancer); - - var _this = _possibleConstructorReturn(this, _Component.call(this, props)); - - _this.onMouseDown = function (e) { - //鼠标落下的操作 - //指示当事件被触发时哪个鼠标按键被点击 - //参数 描述 - //0 规定鼠标左键。 - //1 规定鼠标中键。 - //2 规定鼠标右键。 - if (e.button !== 0) { - return; - } - //1.getMousePosition:获得鼠标的位置 clientY或者pageX - //2.isEventFromHandle:是直接落下还是拖动handle - //3.getHandleCenterPosition:获得handle的中点位置 - //4.onStart:在slider.jsx中 - var isVertical = _this.props.vertical; - var position = utils.getMousePosition(isVertical, e); - if (!utils.isEventFromHandle(e, _this.handlesRefs)) { - _this.dragOffset = 0; - } else { - var handlePosition = utils.getHandleCenterPosition(isVertical, e.target); //handle的位置 - _this.dragOffset = position - handlePosition; //鼠标落下的位置-handle的中间位置,这是偏差 - position = handlePosition; //position是 - } - _this.onStart(position); - _this.addDocumentMouseEvents(); - utils.pauseEvent(e); - }; - - _this.onTouchStart = function (e) { - //touch事件 - //event.touches,多点触碰时的位置数组,比如缩放手势必须要用两指的触摸点,就是一个数组 - //多点触碰不算 - if (utils.isNotTouchEvent(e)) return; - //1.getMousePosition:获得鼠标的位置 clientY或者pageX - //2.isEventFromHandle:是直接落下还是拖动handle - //3.getHandleCenterPosition:获得handle的中点位置 - //4.onStart:在slider.jsx中 - var isVertical = _this.props.vertical; - var position = utils.getTouchPosition(isVertical, e); - if (!utils.isEventFromHandle(e, _this.handlesRefs)) { - _this.dragOffset = 0; - } else { - var handlePosition = utils.getHandleCenterPosition(isVertical, e.target); - _this.dragOffset = position - handlePosition; - position = handlePosition; - } - _this.onStart(position); - _this.addDocumentTouchEvents(); - utils.pauseEvent(e); - }; - - _this.onMouseMove = function (e) { - if (!_this.sliderRef) { - _this.onEnd(); - return; - } - var position = utils.getMousePosition(_this.props.vertical, e); - _this.onMove(e, position - _this.dragOffset); - }; - - _this.onTouchMove = function (e) { - //1.isNotTouchEvent:是不是touch事件 - //2.getTouchPosition:return vertical ? e.touches[0].clientY : e.touches[0].pageX; - if (utils.isNotTouchEvent(e) || !_this.sliderRef) { - _this.onEnd(); - return; - } - var position = utils.getTouchPosition(_this.props.vertical, e); - _this.onMove(e, position - _this.dragOffset); - }; - - _this.onKeyDown = function (e) { - //对应不同的keycode - if (_this.sliderRef && utils.isEventFromHandle(e, _this.handlesRefs)) { - _this.onKeyboard(e); - } - }; - - _this.onFocus = function (e) { - //Focus事件 - //1.isEventFromHandle:是直接落下还是拖动handle - //2.getHandleCenterPosition:获得handle的中点位置 - //3.onStart:在slider.jsx中 - var isVertical = _this.props.vertical; - - if (utils.isEventFromHandle(e, _this.handlesRefs)) { - var handlePosition = utils.getHandleCenterPosition(isVertical, e.target); + //! moment.js locale configuration + //! locale : Arabic (Morocco) [ar-ma] + //! author : ElFadili Yassine : https://github.com/ElFadiliY + //! author : Abdel Said : https://github.com/abdelsaid - _this.dragOffset = 0; - _this.onStart(handlePosition); - utils.pauseEvent(e); - } - }; + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - _this.onBlur = function (e) { - _this.onEnd(e); - }; + //! moment.js locale configuration - _this.saveSlider = function (slider) { - _this.sliderRef = slider; - }; + var arMa = moment.defineLocale('ar-ma', { + months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( + '_' + ), + monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( + '_' + ), + weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), + weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), + weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[اليوم على الساعة] LT', + nextDay: '[غدا على الساعة] LT', + nextWeek: 'dddd [على الساعة] LT', + lastDay: '[أمس على الساعة] LT', + lastWeek: 'dddd [على الساعة] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'في %s', + past: 'منذ %s', + s: 'ثوان', + ss: '%d ثانية', + m: 'دقيقة', + mm: '%d دقائق', + h: 'ساعة', + hh: '%d ساعات', + d: 'يوم', + dd: '%d أيام', + M: 'شهر', + MM: '%d أشهر', + y: 'سنة', + yy: '%d سنوات', + }, + week: { + dow: 6, // Saturday is the first day of the week. + doy: 12, // The week that contains Jan 12th is the first week of the year. + }, + }); - if (process.env.NODE_ENV !== 'production') { - var step = props.step, - max = props.max, - min = props.min; + return arMa; - (0, _warning2["default"])(step && Math.floor(step) === step ? (max - min) % step === 0 : true, 'Slider[max] - Slider[min] (%s) should be a multiple of Slider[step] (%s)', max - min, step); - } - _this.handlesRefs = {}; - return _this; - } - //这里是超级关键的:采用高阶组件的写法 + }))); - ComponentEnhancer.prototype.componentWillUnmount = function componentWillUnmount() { - if (_Component.prototype.componentWillUnmount) _Component.prototype.componentWillUnmount.call(this); - this.removeDocumentEvents(); - }; + /***/ }), + /* 329 */ + /***/ (function(module, exports, __webpack_require__) { - ComponentEnhancer.prototype.addDocumentTouchEvents = function addDocumentTouchEvents() { - // just work for Chrome iOS Safari and Android Browser - this.onTouchMoveListener = (0, _addEventListener2["default"])(document, 'touchmove', this.onTouchMove); - this.onTouchUpListener = (0, _addEventListener2["default"])(document, 'touchend', this.onEnd); - }; + //! moment.js locale configuration + //! locale : Arabic (Saudi Arabia) [ar-sa] + //! author : Suhail Alkowaileet : https://github.com/xsoh - ComponentEnhancer.prototype.addDocumentMouseEvents = function addDocumentMouseEvents() { - this.onMouseMoveListener = (0, _addEventListener2["default"])(document, 'mousemove', this.onMouseMove); - this.onMouseUpListener = (0, _addEventListener2["default"])(document, 'mouseup', this.onEnd); - }; + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - ComponentEnhancer.prototype.removeDocumentEvents = function removeDocumentEvents() { - /* eslint-disable no-unused-expressions */ - this.onTouchMoveListener && this.onTouchMoveListener.remove(); - this.onTouchUpListener && this.onTouchUpListener.remove(); + //! moment.js locale configuration - this.onMouseMoveListener && this.onMouseMoveListener.remove(); - this.onMouseUpListener && this.onMouseUpListener.remove(); - /* eslint-enable no-unused-expressions */ - }; + var symbolMap = { + '1': '١', + '2': '٢', + '3': '٣', + '4': '٤', + '5': '٥', + '6': '٦', + '7': '٧', + '8': '٨', + '9': '٩', + '0': '٠', + }, + numberMap = { + '١': '1', + '٢': '2', + '٣': '3', + '٤': '4', + '٥': '5', + '٦': '6', + '٧': '7', + '٨': '8', + '٩': '9', + '٠': '0', + }; - //slider的开始位置 + var arSa = moment.defineLocale('ar-sa', { + months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( + '_' + ), + monthsShort: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( + '_' + ), + weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), + weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), + weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + meridiemParse: /ص|م/, + isPM: function (input) { + return 'م' === input; + }, + meridiem: function (hour, minute, isLower) { + if (hour < 12) { + return 'ص'; + } else { + return 'م'; + } + }, + calendar: { + sameDay: '[اليوم على الساعة] LT', + nextDay: '[غدا على الساعة] LT', + nextWeek: 'dddd [على الساعة] LT', + lastDay: '[أمس على الساعة] LT', + lastWeek: 'dddd [على الساعة] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'في %s', + past: 'منذ %s', + s: 'ثوان', + ss: '%d ثانية', + m: 'دقيقة', + mm: '%d دقائق', + h: 'ساعة', + hh: '%d ساعات', + d: 'يوم', + dd: '%d أيام', + M: 'شهر', + MM: '%d أشهر', + y: 'سنة', + yy: '%d سنوات', + }, + preparse: function (string) { + return string + .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) { + return numberMap[match]; + }) + .replace(/،/g, ','); + }, + postformat: function (string) { + return string + .replace(/\d/g, function (match) { + return symbolMap[match]; + }) + .replace(/,/g, '،'); + }, + week: { + dow: 0, // Sunday is the first day of the week. + doy: 6, // The week that contains Jan 6th is the first week of the year. + }, + }); + return arSa; - ComponentEnhancer.prototype.getSliderStart = function getSliderStart() { - var slider = this.sliderRef; - var rect = slider.getBoundingClientRect(); + }))); - return this.props.vertical ? rect.top : rect.left; - }; - //slider的高度 + /***/ }), + /* 330 */ + /***/ (function(module, exports, __webpack_require__) { + //! moment.js locale configuration + //! locale : Arabic (Tunisia) [ar-tn] + //! author : Nader Toukabri : https://github.com/naderio - ComponentEnhancer.prototype.getSliderLength = function getSliderLength() { - var slider = this.sliderRef; - if (!slider) { - return 0; - } + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var coords = slider.getBoundingClientRect(); - return this.props.vertical ? coords.height : coords.width; - }; + //! moment.js locale configuration - //计算实际的value值 + var arTn = moment.defineLocale('ar-tn', { + months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( + '_' + ), + monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( + '_' + ), + weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), + weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), + weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[اليوم على الساعة] LT', + nextDay: '[غدا على الساعة] LT', + nextWeek: 'dddd [على الساعة] LT', + lastDay: '[أمس على الساعة] LT', + lastWeek: 'dddd [على الساعة] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'في %s', + past: 'منذ %s', + s: 'ثوان', + ss: '%d ثانية', + m: 'دقيقة', + mm: '%d دقائق', + h: 'ساعة', + hh: '%d ساعات', + d: 'يوم', + dd: '%d أيام', + M: 'شهر', + MM: '%d أشهر', + y: 'سنة', + yy: '%d سنوات', + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); + return arTn; - ComponentEnhancer.prototype.calcValue = function calcValue(offset) { - var _props = this.props, - vertical = _props.vertical, - min = _props.min, - max = _props.max; + }))); - var ratio = Math.abs(Math.max(offset, 0) / this.getSliderLength()); - var value = vertical ? (1 - ratio) * (max - min) + min : ratio * (max - min) + min; - return value; - }; - //这里才是最终的value + /***/ }), + /* 331 */ + /***/ (function(module, exports, __webpack_require__) { - ComponentEnhancer.prototype.calcValueByPos = function calcValueByPos(position) { - //mouseposition 或者 handlePosition - slider的top(或者left); - var pixelOffset = position - this.getSliderStart(); - //calValue():radio来算出真正的value - //trimAlignValue():在slider.jsx中1.ensureValueInRange 先算出是否可取 v 或者 min 或者 max 2.ensureValuePrecision:来获取真的前进数值closest数值 - var nextValue = this.trimAlignValue(this.calcValue(pixelOffset)); - return nextValue; - }; + //! moment.js locale configuration + //! locale : Azerbaijani [az] + //! author : topchiyev : https://github.com/topchiyev - ComponentEnhancer.prototype.calcOffset = function calcOffset(value) { - var _props2 = this.props, - min = _props2.min, - max = _props2.max; + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var ratio = (value - min) / (max - min); - return ratio * 100; - }; + //! moment.js locale configuration - ComponentEnhancer.prototype.saveHandle = function saveHandle(index, handle) { - this.handlesRefs[index] = handle; + var suffixes = { + 1: '-inci', + 5: '-inci', + 8: '-inci', + 70: '-inci', + 80: '-inci', + 2: '-nci', + 7: '-nci', + 20: '-nci', + 50: '-nci', + 3: '-üncü', + 4: '-üncü', + 100: '-üncü', + 6: '-ncı', + 9: '-uncu', + 10: '-uncu', + 30: '-uncu', + 60: '-ıncı', + 90: '-ıncı', }; - ComponentEnhancer.prototype.render = function render() { - var _classNames; - - var _props3 = this.props, - prefixCls = _props3.prefixCls, - className = _props3.className, - marks = _props3.marks, - dots = _props3.dots, - step = _props3.step, - included = _props3.included, - disabled = _props3.disabled, - vertical = _props3.vertical, - min = _props3.min, - max = _props3.max, - children = _props3.children, - style = _props3.style, - railStyle = _props3.railStyle, - dotStyle = _props3.dotStyle, - activeDotStyle = _props3.activeDotStyle; - - var _Component$prototype$ = _Component.prototype.render.call(this), - tracks = _Component$prototype$.tracks, - handles = _Component$prototype$.handles; - - var sliderClassName = (0, _classnames2["default"])(prefixCls, (_classNames = {}, _defineProperty(_classNames, prefixCls + '-with-marks', Object.keys(marks).length), _defineProperty(_classNames, prefixCls + '-disabled', disabled), _defineProperty(_classNames, prefixCls + '-vertical', vertical), _defineProperty(_classNames, className, className), _classNames)); - return _react2["default"].createElement( - 'div', - { - ref: this.saveSlider, - className: sliderClassName, - onTouchStart: disabled ? noop : this.onTouchStart, - onMouseDown: disabled ? noop : this.onMouseDown, - onKeyDown: disabled ? noop : this.onKeyDown, - onFocus: disabled ? noop : this.onFocus, - onBlur: disabled ? noop : this.onBlur, - style: style + var az = moment.defineLocale('az', { + months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split( + '_' + ), + monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'), + weekdays: 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split( + '_' + ), + weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'), + weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[bugün saat] LT', + nextDay: '[sabah saat] LT', + nextWeek: '[gələn həftə] dddd [saat] LT', + lastDay: '[dünən] LT', + lastWeek: '[keçən həftə] dddd [saat] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s sonra', + past: '%s əvvəl', + s: 'birneçə saniyə', + ss: '%d saniyə', + m: 'bir dəqiqə', + mm: '%d dəqiqə', + h: 'bir saat', + hh: '%d saat', + d: 'bir gün', + dd: '%d gün', + M: 'bir ay', + MM: '%d ay', + y: 'bir il', + yy: '%d il', + }, + meridiemParse: /gecə|səhər|gündüz|axşam/, + isPM: function (input) { + return /^(gündüz|axşam)$/.test(input); + }, + meridiem: function (hour, minute, isLower) { + if (hour < 4) { + return 'gecə'; + } else if (hour < 12) { + return 'səhər'; + } else if (hour < 17) { + return 'gündüz'; + } else { + return 'axşam'; + } + }, + dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/, + ordinal: function (number) { + if (number === 0) { + // special case for zero + return number + '-ıncı'; + } + var a = number % 10, + b = (number % 100) - a, + c = number >= 100 ? 100 : null; + return number + (suffixes[a] || suffixes[b] || suffixes[c]); }, - _react2["default"].createElement('div', { - className: prefixCls + '-rail', - style: _extends({}, railStyle) - }), - tracks, - _react2["default"].createElement(_Steps2["default"], { - prefixCls: prefixCls, - vertical: vertical, - marks: marks, - dots: dots, - step: step, - included: included, - lowerBound: this.getLowerBound(), - upperBound: this.getUpperBound(), - max: max, - min: min, - dotStyle: dotStyle, - activeDotStyle: activeDotStyle - }), - handles, - _react2["default"].createElement(_Marks2["default"], { - className: prefixCls + '-mark', - vertical: vertical, - marks: marks, - included: included, - lowerBound: this.getLowerBound(), - upperBound: this.getUpperBound(), - max: max, - min: min - }), - children - ); - }; + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, + }); - return ComponentEnhancer; - }(Component), _class.displayName = 'ComponentEnhancer(' + Component.displayName + ')', _class.propTypes = _extends({}, Component.propTypes, { - min: _propTypes2["default"].number, - max: _propTypes2["default"].number, - step: _propTypes2["default"].number, - marks: _propTypes2["default"].object, - included: _propTypes2["default"].bool, - className: _propTypes2["default"].string, - prefixCls: _propTypes2["default"].string, - disabled: _propTypes2["default"].bool, - children: _propTypes2["default"].any, - onBeforeChange: _propTypes2["default"].func, - onChange: _propTypes2["default"].func, - onAfterChange: _propTypes2["default"].func, - handle: _propTypes2["default"].func, - dots: _propTypes2["default"].bool, - vertical: _propTypes2["default"].bool, - style: _propTypes2["default"].object, - //minimumTrackStyle: PropTypes.object, // just for compatibility, will be deperecate - //maximumTrackStyle: PropTypes.object, // just for compatibility, will be deperecate - handleStyle: _propTypes2["default"].oneOfType([_propTypes2["default"].object, _propTypes2["default"].arrayOf(_propTypes2["default"].object)]), - trackStyle: _propTypes2["default"].oneOfType([_propTypes2["default"].object, _propTypes2["default"].arrayOf(_propTypes2["default"].object)]), - railStyle: _propTypes2["default"].object, - dotStyle: _propTypes2["default"].object, - activeDotStyle: _propTypes2["default"].object - }), _class.defaultProps = _extends({}, Component.defaultProps, { - prefixCls: 'u-slider', - className: '', - min: 0, - max: 100, - step: 1, - marks: {}, - handle: function handle(_ref) { - var index = _ref.index, - restProps = _objectWithoutProperties(_ref, ['index']); + return az; - delete restProps.dragging; - return _react2["default"].createElement(_Handle2["default"], _extends({}, restProps, { key: index })); - }, + }))); - onBeforeChange: noop, - onChange: noop, - onAfterChange: noop, - included: true, - disabled: false, - dots: false, - vertical: false, - trackStyle: [{}], - handleStyle: [{}], - railStyle: {}, - dotStyle: {}, - activeDotStyle: {} - }), _temp; - } - module.exports = exports['default']; - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) /***/ }), - /* 501 */ + /* 332 */ /***/ (function(module, exports, __webpack_require__) { - "use strict"; - /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ - - - /** - * @ignore - * some key-codes definition and utils from closure-library - * @author yiminghe@gmail.com - */ - - var KeyCode = { - /** - * MAC_ENTER - */ - MAC_ENTER: 3, - /** - * BACKSPACE - */ - BACKSPACE: 8, - /** - * TAB - */ - TAB: 9, - /** - * NUMLOCK on FF/Safari Mac - */ - NUM_CENTER: 12, // NUMLOCK on FF/Safari Mac - /** - * ENTER - */ - ENTER: 13, - /** - * SHIFT - */ - SHIFT: 16, - /** - * CTRL - */ - CTRL: 17, - /** - * ALT - */ - ALT: 18, - /** - * PAUSE - */ - PAUSE: 19, - /** - * CAPS_LOCK - */ - CAPS_LOCK: 20, - /** - * ESC - */ - ESC: 27, - /** - * SPACE - */ - SPACE: 32, - /** - * PAGE_UP - */ - PAGE_UP: 33, // also NUM_NORTH_EAST - /** - * PAGE_DOWN - */ - PAGE_DOWN: 34, // also NUM_SOUTH_EAST - /** - * END - */ - END: 35, // also NUM_SOUTH_WEST - /** - * HOME - */ - HOME: 36, // also NUM_NORTH_WEST - /** - * LEFT - */ - LEFT: 37, // also NUM_WEST - /** - * UP - */ - UP: 38, // also NUM_NORTH - /** - * RIGHT - */ - RIGHT: 39, // also NUM_EAST - /** - * DOWN - */ - DOWN: 40, // also NUM_SOUTH - /** - * PRINT_SCREEN - */ - PRINT_SCREEN: 44, - /** - * INSERT - */ - INSERT: 45, // also NUM_INSERT - /** - * DELETE - */ - DELETE: 46, // also NUM_DELETE - /** - * ZERO - */ - ZERO: 48, - /** - * ONE - */ - ONE: 49, - /** - * TWO - */ - TWO: 50, - /** - * THREE - */ - THREE: 51, - /** - * FOUR - */ - FOUR: 52, - /** - * FIVE - */ - FIVE: 53, - /** - * SIX - */ - SIX: 54, - /** - * SEVEN - */ - SEVEN: 55, - /** - * EIGHT - */ - EIGHT: 56, - /** - * NINE - */ - NINE: 57, - /** - * QUESTION_MARK - */ - QUESTION_MARK: 63, // needs localization - /** - * A - */ - A: 65, - /** - * B - */ - B: 66, - /** - * C - */ - C: 67, - /** - * D - */ - D: 68, - /** - * E - */ - E: 69, - /** - * F - */ - F: 70, - /** - * G - */ - G: 71, - /** - * H - */ - H: 72, - /** - * I - */ - I: 73, - /** - * J - */ - J: 74, - /** - * K - */ - K: 75, - /** - * L - */ - L: 76, - /** - * M - */ - M: 77, - /** - * N - */ - N: 78, - /** - * O - */ - O: 79, - /** - * P - */ - P: 80, - /** - * Q - */ - Q: 81, - /** - * R - */ - R: 82, - /** - * S - */ - S: 83, - /** - * T - */ - T: 84, - /** - * U - */ - U: 85, - /** - * V - */ - V: 86, - /** - * W - */ - W: 87, - /** - * X - */ - X: 88, - /** - * Y - */ - Y: 89, - /** - * Z - */ - Z: 90, - /** - * META - */ - META: 91, // WIN_KEY_LEFT - /** - * WIN_KEY_RIGHT - */ - WIN_KEY_RIGHT: 92, - /** - * CONTEXT_MENU - */ - CONTEXT_MENU: 93, - /** - * NUM_ZERO - */ - NUM_ZERO: 96, - /** - * NUM_ONE - */ - NUM_ONE: 97, - /** - * NUM_TWO - */ - NUM_TWO: 98, - /** - * NUM_THREE - */ - NUM_THREE: 99, - /** - * NUM_FOUR - */ - NUM_FOUR: 100, - /** - * NUM_FIVE - */ - NUM_FIVE: 101, - /** - * NUM_SIX - */ - NUM_SIX: 102, - /** - * NUM_SEVEN - */ - NUM_SEVEN: 103, - /** - * NUM_EIGHT - */ - NUM_EIGHT: 104, - /** - * NUM_NINE - */ - NUM_NINE: 105, - /** - * NUM_MULTIPLY - */ - NUM_MULTIPLY: 106, - /** - * NUM_PLUS - */ - NUM_PLUS: 107, - /** - * NUM_MINUS - */ - NUM_MINUS: 109, - /** - * NUM_PERIOD - */ - NUM_PERIOD: 110, - /** - * NUM_DIVISION - */ - NUM_DIVISION: 111, - /** - * F1 - */ - F1: 112, - /** - * F2 - */ - F2: 113, - /** - * F3 - */ - F3: 114, - /** - * F4 - */ - F4: 115, - /** - * F5 - */ - F5: 116, - /** - * F6 - */ - F6: 117, - /** - * F7 - */ - F7: 118, - /** - * F8 - */ - F8: 119, - /** - * F9 - */ - F9: 120, - /** - * F10 - */ - F10: 121, - /** - * F11 - */ - F11: 122, - /** - * F12 - */ - F12: 123, - /** - * NUMLOCK - */ - NUMLOCK: 144, - /** - * SEMICOLON - */ - SEMICOLON: 186, // needs localization - /** - * DASH - */ - DASH: 189, // needs localization - /** - * EQUALS - */ - EQUALS: 187, // needs localization - /** - * COMMA - */ - COMMA: 188, // needs localization - /** - * PERIOD - */ - PERIOD: 190, // needs localization - /** - * SLASH - */ - SLASH: 191, // needs localization - /** - * APOSTROPHE - */ - APOSTROPHE: 192, // needs localization - /** - * SINGLE_QUOTE - */ - SINGLE_QUOTE: 222, // needs localization - /** - * OPEN_SQUARE_BRACKET - */ - OPEN_SQUARE_BRACKET: 219, // needs localization - /** - * BACKSLASH - */ - BACKSLASH: 220, // needs localization - /** - * CLOSE_SQUARE_BRACKET - */ - CLOSE_SQUARE_BRACKET: 221, // needs localization - /** - * WIN_KEY - */ - WIN_KEY: 224, - /** - * MAC_FF_META - */ - MAC_FF_META: 224, // Firefox (Gecko) fires this for the meta key instead of 91 - /** - * WIN_IME - */ - WIN_IME: 229 - }; - - /* - whether text and modified key is entered at the same time. - */ - KeyCode.isTextModifyingKeyEvent = function isTextModifyingKeyEvent(e) { - var keyCode = e.keyCode; - if (e.altKey && !e.ctrlKey || e.metaKey || - // Function keys don't generate text - keyCode >= KeyCode.F1 && keyCode <= KeyCode.F12) { - return false; - } + //! moment.js locale configuration + //! locale : Belarusian [be] + //! author : Dmitry Demidov : https://github.com/demidov91 + //! author: Praleska: http://praleska.pro/ + //! Author : Menelion Elensúle : https://github.com/Oire - // The following keys are quite harmless, even in combination with - // CTRL, ALT or SHIFT. - switch (keyCode) { - case KeyCode.ALT: - case KeyCode.CAPS_LOCK: - case KeyCode.CONTEXT_MENU: - case KeyCode.CTRL: - case KeyCode.DOWN: - case KeyCode.END: - case KeyCode.ESC: - case KeyCode.HOME: - case KeyCode.INSERT: - case KeyCode.LEFT: - case KeyCode.MAC_FF_META: - case KeyCode.META: - case KeyCode.NUMLOCK: - case KeyCode.NUM_CENTER: - case KeyCode.PAGE_DOWN: - case KeyCode.PAGE_UP: - case KeyCode.PAUSE: - case KeyCode.PRINT_SCREEN: - case KeyCode.RIGHT: - case KeyCode.SHIFT: - case KeyCode.UP: - case KeyCode.WIN_KEY: - case KeyCode.WIN_KEY_RIGHT: - return false; - default: - return true; - } - }; + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - /* - whether character is entered. - */ - KeyCode.isCharacterKey = function isCharacterKey(keyCode) { - if (keyCode >= KeyCode.ZERO && keyCode <= KeyCode.NINE) { - return true; - } + //! moment.js locale configuration - if (keyCode >= KeyCode.NUM_ZERO && keyCode <= KeyCode.NUM_MULTIPLY) { - return true; - } + function plural(word, num) { + var forms = word.split('_'); + return num % 10 === 1 && num % 100 !== 11 + ? forms[0] + : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) + ? forms[1] + : forms[2]; + } + function relativeTimeWithPlural(number, withoutSuffix, key) { + var format = { + ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд', + mm: withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін', + hh: withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін', + dd: 'дзень_дні_дзён', + MM: 'месяц_месяцы_месяцаў', + yy: 'год_гады_гадоў', + }; + if (key === 'm') { + return withoutSuffix ? 'хвіліна' : 'хвіліну'; + } else if (key === 'h') { + return withoutSuffix ? 'гадзіна' : 'гадзіну'; + } else { + return number + ' ' + plural(format[key], +number); + } + } - if (keyCode >= KeyCode.A && keyCode <= KeyCode.Z) { - return true; - } + var be = moment.defineLocale('be', { + months: { + format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split( + '_' + ), + standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split( + '_' + ), + }, + monthsShort: 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split( + '_' + ), + weekdays: { + format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split( + '_' + ), + standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split( + '_' + ), + isFormat: /\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/, + }, + weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'), + weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY г.', + LLL: 'D MMMM YYYY г., HH:mm', + LLLL: 'dddd, D MMMM YYYY г., HH:mm', + }, + calendar: { + sameDay: '[Сёння ў] LT', + nextDay: '[Заўтра ў] LT', + lastDay: '[Учора ў] LT', + nextWeek: function () { + return '[У] dddd [ў] LT'; + }, + lastWeek: function () { + switch (this.day()) { + case 0: + case 3: + case 5: + case 6: + return '[У мінулую] dddd [ў] LT'; + case 1: + case 2: + case 4: + return '[У мінулы] dddd [ў] LT'; + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'праз %s', + past: '%s таму', + s: 'некалькі секунд', + m: relativeTimeWithPlural, + mm: relativeTimeWithPlural, + h: relativeTimeWithPlural, + hh: relativeTimeWithPlural, + d: 'дзень', + dd: relativeTimeWithPlural, + M: 'месяц', + MM: relativeTimeWithPlural, + y: 'год', + yy: relativeTimeWithPlural, + }, + meridiemParse: /ночы|раніцы|дня|вечара/, + isPM: function (input) { + return /^(дня|вечара)$/.test(input); + }, + meridiem: function (hour, minute, isLower) { + if (hour < 4) { + return 'ночы'; + } else if (hour < 12) { + return 'раніцы'; + } else if (hour < 17) { + return 'дня'; + } else { + return 'вечара'; + } + }, + dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/, + ordinal: function (number, period) { + switch (period) { + case 'M': + case 'd': + case 'DDD': + case 'w': + case 'W': + return (number % 10 === 2 || number % 10 === 3) && + number % 100 !== 12 && + number % 100 !== 13 + ? number + '-і' + : number + '-ы'; + case 'D': + return number + '-га'; + default: + return number; + } + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, + }); - // Safari sends zero key code for non-latin characters. - if (window.navigation.userAgent.indexOf('WebKit') !== -1 && keyCode === 0) { - return true; - } + return be; - switch (keyCode) { - case KeyCode.SPACE: - case KeyCode.QUESTION_MARK: - case KeyCode.NUM_PLUS: - case KeyCode.NUM_MINUS: - case KeyCode.NUM_PERIOD: - case KeyCode.NUM_DIVISION: - case KeyCode.SEMICOLON: - case KeyCode.DASH: - case KeyCode.EQUALS: - case KeyCode.COMMA: - case KeyCode.PERIOD: - case KeyCode.SLASH: - case KeyCode.APOSTROPHE: - case KeyCode.SINGLE_QUOTE: - case KeyCode.OPEN_SQUARE_BRACKET: - case KeyCode.BACKSLASH: - case KeyCode.CLOSE_SQUARE_BRACKET: - return true; - default: - return false; - } - }; + }))); - module.exports = KeyCode; /***/ }), - /* 502 */ + /* 333 */ /***/ (function(module, exports, __webpack_require__) { - "use strict"; - - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _react = __webpack_require__(0); + //! moment.js locale configuration + //! locale : Bulgarian [bg] + //! author : Krasen Borisov : https://github.com/kraz - var _react2 = _interopRequireDefault(_react); + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _reactDom = __webpack_require__(3); + //! moment.js locale configuration - var _reactDom2 = _interopRequireDefault(_reactDom); + var bg = moment.defineLocale('bg', { + months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split( + '_' + ), + monthsShort: 'яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'), + weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split( + '_' + ), + weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'), + weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'), + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'D.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY H:mm', + LLLL: 'dddd, D MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[Днес в] LT', + nextDay: '[Утре в] LT', + nextWeek: 'dddd [в] LT', + lastDay: '[Вчера в] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + case 3: + case 6: + return '[Миналата] dddd [в] LT'; + case 1: + case 2: + case 4: + case 5: + return '[Миналия] dddd [в] LT'; + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'след %s', + past: 'преди %s', + s: 'няколко секунди', + ss: '%d секунди', + m: 'минута', + mm: '%d минути', + h: 'час', + hh: '%d часа', + d: 'ден', + dd: '%d дена', + M: 'месец', + MM: '%d месеца', + y: 'година', + yy: '%d години', + }, + dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/, + ordinal: function (number) { + var lastDigit = number % 10, + last2Digits = number % 100; + if (number === 0) { + return number + '-ев'; + } else if (last2Digits === 0) { + return number + '-ен'; + } else if (last2Digits > 10 && last2Digits < 20) { + return number + '-ти'; + } else if (lastDigit === 1) { + return number + '-ви'; + } else if (lastDigit === 2) { + return number + '-ри'; + } else if (lastDigit === 7 || lastDigit === 8) { + return number + '-ми'; + } else { + return number + '-ти'; + } + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, + }); - var _propTypes = __webpack_require__(1); + return bg; - var _propTypes2 = _interopRequireDefault(_propTypes); + }))); - var _ownerDocument = __webpack_require__(114); - var _ownerDocument2 = _interopRequireDefault(_ownerDocument); + /***/ }), + /* 334 */ + /***/ (function(module, exports, __webpack_require__) { - var _getContainer = __webpack_require__(503); + //! moment.js locale configuration + //! locale : Bambara [bm] + //! author : Estelle Comment : https://github.com/estellecomment - var _getContainer2 = _interopRequireDefault(_getContainer); + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _tinperBeeCore = __webpack_require__(115); + //! moment.js locale configuration - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var bm = moment.defineLocale('bm', { + months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split( + '_' + ), + monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'), + weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'), + weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'), + weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'MMMM [tile] D [san] YYYY', + LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm', + LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm', + }, + calendar: { + sameDay: '[Bi lɛrɛ] LT', + nextDay: '[Sini lɛrɛ] LT', + nextWeek: 'dddd [don lɛrɛ] LT', + lastDay: '[Kunu lɛrɛ] LT', + lastWeek: 'dddd [tɛmɛnen lɛrɛ] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s kɔnɔ', + past: 'a bɛ %s bɔ', + s: 'sanga dama dama', + ss: 'sekondi %d', + m: 'miniti kelen', + mm: 'miniti %d', + h: 'lɛrɛ kelen', + hh: 'lɛrɛ %d', + d: 'tile kelen', + dd: 'tile %d', + M: 'kalo kelen', + MM: 'kalo %d', + y: 'san kelen', + yy: 'san %d', + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + return bm; - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + }))); - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + /***/ }), + /* 335 */ + /***/ (function(module, exports, __webpack_require__) { - var isReact16 = _reactDom2["default"].createPortal !== undefined; - var createPortal = isReact16 ? _reactDom2["default"].createPortal : _reactDom2["default"].unstable_renderSubtreeIntoContainer; + //! moment.js locale configuration + //! locale : Bengali [bn] + //! author : Kaushik Gandhi : https://github.com/kaushikgandhi - var propTypes = { - /** - * 存放子组件的容器 - */ - container: _propTypes2["default"].oneOfType([_tinperBeeCore.componentOrElement, _propTypes2["default"].func]) - }; + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var defaultProps = {}; + //! moment.js locale configuration - /** - * Portal组件是将子组件渲染 - */ + var symbolMap = { + '1': '১', + '2': '২', + '3': '৩', + '4': '৪', + '5': '৫', + '6': '৬', + '7': '৭', + '8': '৮', + '9': '৯', + '0': '০', + }, + numberMap = { + '১': '1', + '২': '2', + '৩': '3', + '৪': '4', + '৫': '5', + '৬': '6', + '৭': '7', + '৮': '8', + '৯': '9', + '০': '0', + }; - var Portal = function (_Component) { - _inherits(Portal, _Component); + var bn = moment.defineLocale('bn', { + months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split( + '_' + ), + monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split( + '_' + ), + weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split( + '_' + ), + weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'), + weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'), + longDateFormat: { + LT: 'A h:mm সময়', + LTS: 'A h:mm:ss সময়', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm সময়', + LLLL: 'dddd, D MMMM YYYY, A h:mm সময়', + }, + calendar: { + sameDay: '[আজ] LT', + nextDay: '[আগামীকাল] LT', + nextWeek: 'dddd, LT', + lastDay: '[গতকাল] LT', + lastWeek: '[গত] dddd, LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s পরে', + past: '%s আগে', + s: 'কয়েক সেকেন্ড', + ss: '%d সেকেন্ড', + m: 'এক মিনিট', + mm: '%d মিনিট', + h: 'এক ঘন্টা', + hh: '%d ঘন্টা', + d: 'এক দিন', + dd: '%d দিন', + M: 'এক মাস', + MM: '%d মাস', + y: 'এক বছর', + yy: '%d বছর', + }, + preparse: function (string) { + return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) { + return numberMap[match]; + }); + }, + postformat: function (string) { + return string.replace(/\d/g, function (match) { + return symbolMap[match]; + }); + }, + meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if ( + (meridiem === 'রাত' && hour >= 4) || + (meridiem === 'দুপুর' && hour < 5) || + meridiem === 'বিকাল' + ) { + return hour + 12; + } else { + return hour; + } + }, + meridiem: function (hour, minute, isLower) { + if (hour < 4) { + return 'রাত'; + } else if (hour < 10) { + return 'সকাল'; + } else if (hour < 17) { + return 'দুপুর'; + } else if (hour < 20) { + return 'বিকাল'; + } else { + return 'রাত'; + } + }, + week: { + dow: 0, // Sunday is the first day of the week. + doy: 6, // The week that contains Jan 6th is the first week of the year. + }, + }); - function Portal(props) { - _classCallCheck(this, Portal); + return bn; - var _this = _possibleConstructorReturn(this, _Component.call(this, props)); + }))); - _this.getMountNode = _this.getMountNode.bind(_this); - _this.getOverlayDOMNode = _this.getOverlayDOMNode.bind(_this); - _this.mountOverlayTarget = _this.mountOverlayTarget.bind(_this); - _this.unmountOverlayTarget = _this.unmountOverlayTarget.bind(_this); - _this.renderOverlay = _this.renderOverlay.bind(_this); - _this.unrenderOverlay = _this.unrenderOverlay.bind(_this); - _this.overlayTarget = isReact16 ? document.createElement('div') : null; - return _this; - } + /***/ }), + /* 336 */ + /***/ (function(module, exports, __webpack_require__) { - Portal.prototype.componentDidMount = function componentDidMount() { - if (isReact16) { - this.portalContainerNode = (0, _getContainer2["default"])(this.props.container, (0, _ownerDocument2["default"])(this).body); - this.portalContainerNode.appendChild(this.overlayTarget); - } else { - this.renderOverlay(); - } + //! moment.js locale configuration + //! locale : Tibetan [bo] + //! author : Thupten N. Chakrishar : https://github.com/vajradog - this.mounted = true; - }; + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - Portal.prototype.componentDidUpdate = function componentDidUpdate() { - if (isReact16) { - var overlay = !this.props.children ? null : _react2["default"].Children.only(this.props.children); - if (overlay === null) { - this.unrenderOverlay(); - this.unmountOverlayTarget(); - } else {} - } else { - this.renderOverlay(); - } - }; - //this._overlayTarget为当前的要添加的子组件, this._portalContainerNode要添加组件的容器元素 + //! moment.js locale configuration + var symbolMap = { + '1': '༡', + '2': '༢', + '3': '༣', + '4': '༤', + '5': '༥', + '6': '༦', + '7': '༧', + '8': '༨', + '9': '༩', + '0': '༠', + }, + numberMap = { + '༡': '1', + '༢': '2', + '༣': '3', + '༤': '4', + '༥': '5', + '༦': '6', + '༧': '7', + '༨': '8', + '༩': '9', + '༠': '0', + }; - Portal.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - if (this.overlayTarget && nextProps.container !== this.props.container) { - this.portalContainerNode.removeChild(this.overlayTarget); - this.portalContainerNode = (0, _getContainer2["default"])(nextProps.container, (0, _ownerDocument2["default"])(this).body); - this.portalContainerNode.appendChild(this.overlayTarget); - } - }; + var bo = moment.defineLocale('bo', { + months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split( + '_' + ), + monthsShort: 'ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12'.split( + '_' + ), + monthsShortRegex: /^(ཟླ་\d{1,2})/, + monthsParseExact: true, + weekdays: 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split( + '_' + ), + weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split( + '_' + ), + weekdaysMin: 'ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན'.split('_'), + longDateFormat: { + LT: 'A h:mm', + LTS: 'A h:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm', + LLLL: 'dddd, D MMMM YYYY, A h:mm', + }, + calendar: { + sameDay: '[དི་རིང] LT', + nextDay: '[སང་ཉིན] LT', + nextWeek: '[བདུན་ཕྲག་རྗེས་མ], LT', + lastDay: '[ཁ་སང] LT', + lastWeek: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s ལ་', + past: '%s སྔན་ལ', + s: 'ལམ་སང', + ss: '%d སྐར་ཆ།', + m: 'སྐར་མ་གཅིག', + mm: '%d སྐར་མ', + h: 'ཆུ་ཚོད་གཅིག', + hh: '%d ཆུ་ཚོད', + d: 'ཉིན་གཅིག', + dd: '%d ཉིན་', + M: 'ཟླ་བ་གཅིག', + MM: '%d ཟླ་བ', + y: 'ལོ་གཅིག', + yy: '%d ལོ', + }, + preparse: function (string) { + return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) { + return numberMap[match]; + }); + }, + postformat: function (string) { + return string.replace(/\d/g, function (match) { + return symbolMap[match]; + }); + }, + meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if ( + (meridiem === 'མཚན་མོ' && hour >= 4) || + (meridiem === 'ཉིན་གུང' && hour < 5) || + meridiem === 'དགོང་དག' + ) { + return hour + 12; + } else { + return hour; + } + }, + meridiem: function (hour, minute, isLower) { + if (hour < 4) { + return 'མཚན་མོ'; + } else if (hour < 10) { + return 'ཞོགས་ཀས'; + } else if (hour < 17) { + return 'ཉིན་གུང'; + } else if (hour < 20) { + return 'དགོང་དག'; + } else { + return 'མཚན་མོ'; + } + }, + week: { + dow: 0, // Sunday is the first day of the week. + doy: 6, // The week that contains Jan 6th is the first week of the year. + }, + }); - Portal.prototype.componentWillUnmount = function componentWillUnmount() { - this.unrenderOverlay(); - this.unmountOverlayTarget(); + return bo; - this.mounted = false; - }; + }))); - Portal.prototype.getMountNode = function getMountNode() { - return this.overlayTarget; - }; - Portal.prototype.getOverlayDOMNode = function getOverlayDOMNode() { - if (!this.mounted) { - throw new Error('getOverlayDOMNode(): A component must be mounted to have a DOM node.'); - } + /***/ }), + /* 337 */ + /***/ (function(module, exports, __webpack_require__) { - if (this.overlayInstance) { - return _reactDom2["default"].findDOMNode(this.overlayInstance); - } + //! moment.js locale configuration + //! locale : Breton [br] + //! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou - return null; - }; + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - /** - * 如果要添加的子组件不存在,就将div添加到要添加容器的DOM中; - */ + //! moment.js locale configuration - Portal.prototype.mountOverlayTarget = function mountOverlayTarget() { - if (!this.overlayTarget) { - this.overlayTarget = document.createElement('div'); - this.portalContainerNode = (0, _getContainer2["default"])(this.props.container, (0, _ownerDocument2["default"])(this).body); - this.portalContainerNode.appendChild(this.overlayTarget); + function relativeTimeWithMutation(number, withoutSuffix, key) { + var format = { + mm: 'munutenn', + MM: 'miz', + dd: 'devezh', + }; + return number + ' ' + mutation(format[key], number); } - }; - /** - * 将要添加的子元素从容器中移除,并把变量置为null - */ - - - Portal.prototype.unmountOverlayTarget = function unmountOverlayTarget() { - if (this.overlayTarget) { - this.portalContainerNode.removeChild(this.overlayTarget); - this.overlayTarget = null; + function specialMutationForYears(number) { + switch (lastNumber(number)) { + case 1: + case 3: + case 4: + case 5: + case 9: + return number + ' bloaz'; + default: + return number + ' vloaz'; + } } - this.portalContainerNode = null; - }; - /** - * 手动渲染_overlayTarget - */ - - - Portal.prototype.renderOverlay = function renderOverlay() { - - var overlay = !this.props.children ? null : _react2["default"].Children.only(this.props.children); - - // Save reference for future access. - if (overlay !== null) { - this.mountOverlayTarget(); - this.overlayInstance = _reactDom2["default"].unstable_renderSubtreeIntoContainer(this, overlay, this.overlayTarget); - } else { - // Unrender if the component is null for transitions to null - this.unrenderOverlay(); - this.unmountOverlayTarget(); + function lastNumber(number) { + if (number > 9) { + return lastNumber(number % 10); + } + return number; } - }; - /** - * 销毁_overlayTarget组件。并把_overlayInstance置为null - */ - - - Portal.prototype.unrenderOverlay = function unrenderOverlay() { - if (this.overlayTarget) { - !isReact16 && _reactDom2["default"].unmountComponentAtNode(this.overlayTarget); - this.overlayInstance = null; + function mutation(text, number) { + if (number === 2) { + return softMutation(text); + } + return text; } - }; - - Portal.prototype.render = function render() { - if (!isReact16) { - return null; + function softMutation(text) { + var mutationTable = { + m: 'v', + b: 'v', + d: 'z', + }; + if (mutationTable[text.charAt(0)] === undefined) { + return text; + } + return mutationTable[text.charAt(0)] + text.substring(1); } - var overlay = !this.props.children ? null : _react2["default"].Children.only(this.props.children); - - return _reactDom2["default"].createPortal(overlay, this.overlayTarget); - }; - - return Portal; - }(_react.Component); + var br = moment.defineLocale('br', { + months: "Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split( + '_' + ), + monthsShort: "Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split('_'), + weekdays: "Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split('_'), + weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'), + weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D [a viz] MMMM YYYY', + LLL: 'D [a viz] MMMM YYYY HH:mm', + LLLL: 'dddd, D [a viz] MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Hiziv da] LT', + nextDay: "[Warc'hoazh da] LT", + nextWeek: 'dddd [da] LT', + lastDay: "[Dec'h da] LT", + lastWeek: 'dddd [paset da] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'a-benn %s', + past: "%s 'zo", + s: 'un nebeud segondennoù', + ss: '%d eilenn', + m: 'ur vunutenn', + mm: relativeTimeWithMutation, + h: 'un eur', + hh: '%d eur', + d: 'un devezh', + dd: relativeTimeWithMutation, + M: 'ur miz', + MM: relativeTimeWithMutation, + y: 'ur bloaz', + yy: specialMutationForYears, + }, + dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/, + ordinal: function (number) { + var output = number === 1 ? 'añ' : 'vet'; + return number + output; + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - ; + return br; - Portal.propTypes = propTypes; - Portal.defaultProps = defaultProps; + }))); - exports["default"] = Portal; - module.exports = exports['default']; /***/ }), - /* 503 */ + /* 338 */ /***/ (function(module, exports, __webpack_require__) { - "use strict"; + //! moment.js locale configuration + //! locale : Bosnian [bs] + //! author : Nedim Cholich : https://github.com/frontyard + //! based on (hr) translation by Bojan Marković + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports["default"] = getContainer; + //! moment.js locale configuration - var _reactDom = __webpack_require__(3); + function translate(number, withoutSuffix, key) { + var result = number + ' '; + switch (key) { + case 'ss': + if (number === 1) { + result += 'sekunda'; + } else if (number === 2 || number === 3 || number === 4) { + result += 'sekunde'; + } else { + result += 'sekundi'; + } + return result; + case 'm': + return withoutSuffix ? 'jedna minuta' : 'jedne minute'; + case 'mm': + if (number === 1) { + result += 'minuta'; + } else if (number === 2 || number === 3 || number === 4) { + result += 'minute'; + } else { + result += 'minuta'; + } + return result; + case 'h': + return withoutSuffix ? 'jedan sat' : 'jednog sata'; + case 'hh': + if (number === 1) { + result += 'sat'; + } else if (number === 2 || number === 3 || number === 4) { + result += 'sata'; + } else { + result += 'sati'; + } + return result; + case 'dd': + if (number === 1) { + result += 'dan'; + } else { + result += 'dana'; + } + return result; + case 'MM': + if (number === 1) { + result += 'mjesec'; + } else if (number === 2 || number === 3 || number === 4) { + result += 'mjeseca'; + } else { + result += 'mjeseci'; + } + return result; + case 'yy': + if (number === 1) { + result += 'godina'; + } else if (number === 2 || number === 3 || number === 4) { + result += 'godine'; + } else { + result += 'godina'; + } + return result; + } + } - var _reactDom2 = _interopRequireDefault(_reactDom); + var bs = moment.defineLocale('bs', { + months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split( + '_' + ), + monthsShort: 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split( + '_' + ), + weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), + weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd, D. MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[danas u] LT', + nextDay: '[sutra u] LT', + nextWeek: function () { + switch (this.day()) { + case 0: + return '[u] [nedjelju] [u] LT'; + case 3: + return '[u] [srijedu] [u] LT'; + case 6: + return '[u] [subotu] [u] LT'; + case 1: + case 2: + case 4: + case 5: + return '[u] dddd [u] LT'; + } + }, + lastDay: '[jučer u] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + case 3: + return '[prošlu] dddd [u] LT'; + case 6: + return '[prošle] [subote] [u] LT'; + case 1: + case 2: + case 4: + case 5: + return '[prošli] dddd [u] LT'; + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'za %s', + past: 'prije %s', + s: 'par sekundi', + ss: translate, + m: translate, + mm: translate, + h: translate, + hh: translate, + d: 'dan', + dd: translate, + M: 'mjesec', + MM: translate, + y: 'godinu', + yy: translate, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, + }); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + return bs; + + }))); - /** - * 获取容器组件 - * @param {[type]} container [description] - * @param {[type]} defaultContainer [description] - * @return {[type]} [description] - */ - function getContainer(container, defaultContainer) { - container = typeof container === 'function' ? container() : container; - return _reactDom2["default"].findDOMNode(container) || defaultContainer; - } - module.exports = exports['default']; /***/ }), - /* 504 */ + /* 339 */ /***/ (function(module, exports, __webpack_require__) { - "use strict"; - - - exports.__esModule = true; - exports.default = addEventListenerWrap; + //! moment.js locale configuration + //! locale : Catalan [ca] + //! author : Juan G. Hurtado : https://github.com/juanghurtado - var _addDomEventListener = __webpack_require__(12); + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener); + //! moment.js locale configuration - var _reactDom = __webpack_require__(3); + var ca = moment.defineLocale('ca', { + months: { + standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split( + '_' + ), + format: "de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split( + '_' + ), + isFormat: /D[oD]?(\s)+MMMM/, + }, + monthsShort: 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split( + '_' + ), + weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'), + weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM [de] YYYY', + ll: 'D MMM YYYY', + LLL: 'D MMMM [de] YYYY [a les] H:mm', + lll: 'D MMM YYYY, H:mm', + LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm', + llll: 'ddd D MMM YYYY, H:mm', + }, + calendar: { + sameDay: function () { + return '[avui a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT'; + }, + nextDay: function () { + return '[demà a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT'; + }, + nextWeek: function () { + return 'dddd [a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT'; + }, + lastDay: function () { + return '[ahir a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT'; + }, + lastWeek: function () { + return ( + '[el] dddd [passat a ' + + (this.hours() !== 1 ? 'les' : 'la') + + '] LT' + ); + }, + sameElse: 'L', + }, + relativeTime: { + future: "d'aquí %s", + past: 'fa %s', + s: 'uns segons', + ss: '%d segons', + m: 'un minut', + mm: '%d minuts', + h: 'una hora', + hh: '%d hores', + d: 'un dia', + dd: '%d dies', + M: 'un mes', + MM: '%d mesos', + y: 'un any', + yy: '%d anys', + }, + dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/, + ordinal: function (number, period) { + var output = + number === 1 + ? 'r' + : number === 2 + ? 'n' + : number === 3 + ? 'r' + : number === 4 + ? 't' + : 'è'; + if (period === 'w' || period === 'W') { + output = 'a'; + } + return number + output; + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - var _reactDom2 = _interopRequireDefault(_reactDom); + return ca; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + }))); - /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ - function addEventListenerWrap(target, eventType, cb) { - /* eslint camelcase: 2 */ - var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) { - _reactDom2.default.unstable_batchedUpdates(cb, e); - } : cb; - return (0, _addDomEventListener2.default)(target, eventType, callback); - } /***/ }), - /* 505 */ + /* 340 */ /***/ (function(module, exports, __webpack_require__) { - "use strict"; + //! moment.js locale configuration + //! locale : Czech [cs] + //! author : petrbela : https://github.com/petrbela + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - Object.defineProperty(exports, "__esModule", { - value: true - }); + //! moment.js locale configuration - exports["default"] = function (node, event, handler, capture) { - (0, _on2["default"])(node, event, handler, capture); + var months = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split( + '_' + ), + monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'), + monthsParse = [ + /^led/i, + /^úno/i, + /^bře/i, + /^dub/i, + /^kvě/i, + /^(čvn|červen$|června)/i, + /^(čvc|červenec|července)/i, + /^srp/i, + /^zář/i, + /^říj/i, + /^lis/i, + /^pro/i, + ], + // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched. + // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'. + monthsRegex = /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i; - return { - remove: function remove() { - (0, _off2["default"])(node, event, handler, capture); + function plural(n) { + return n > 1 && n < 5 && ~~(n / 10) !== 1; } - }; - }; - - var _on = __webpack_require__(17); - - var _on2 = _interopRequireDefault(_on); - - var _off = __webpack_require__(49); - - var _off2 = _interopRequireDefault(_off); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - - module.exports = exports['default']; - - /***/ }), - /* 506 */ - /***/ (function(module, exports, __webpack_require__) { - - "use strict"; - - - exports.__esModule = true; - /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ - function createChainedFunction() { - for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) { - funcs[_key] = arguments[_key]; - } - - return funcs.filter(function (f) { - return f != null; - }).reduce(function (acc, f) { - if (typeof f !== 'function') { - throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.'); + function translate(number, withoutSuffix, key, isFuture) { + var result = number + ' '; + switch (key) { + case 's': // a few seconds / in a few seconds / a few seconds ago + return withoutSuffix || isFuture ? 'pár sekund' : 'pár sekundami'; + case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago + if (withoutSuffix || isFuture) { + return result + (plural(number) ? 'sekundy' : 'sekund'); + } else { + return result + 'sekundami'; + } + case 'm': // a minute / in a minute / a minute ago + return withoutSuffix ? 'minuta' : isFuture ? 'minutu' : 'minutou'; + case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago + if (withoutSuffix || isFuture) { + return result + (plural(number) ? 'minuty' : 'minut'); + } else { + return result + 'minutami'; + } + case 'h': // an hour / in an hour / an hour ago + return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou'; + case 'hh': // 9 hours / in 9 hours / 9 hours ago + if (withoutSuffix || isFuture) { + return result + (plural(number) ? 'hodiny' : 'hodin'); + } else { + return result + 'hodinami'; + } + case 'd': // a day / in a day / a day ago + return withoutSuffix || isFuture ? 'den' : 'dnem'; + case 'dd': // 9 days / in 9 days / 9 days ago + if (withoutSuffix || isFuture) { + return result + (plural(number) ? 'dny' : 'dní'); + } else { + return result + 'dny'; + } + case 'M': // a month / in a month / a month ago + return withoutSuffix || isFuture ? 'měsíc' : 'měsícem'; + case 'MM': // 9 months / in 9 months / 9 months ago + if (withoutSuffix || isFuture) { + return result + (plural(number) ? 'měsíce' : 'měsíců'); + } else { + return result + 'měsíci'; + } + case 'y': // a year / in a year / a year ago + return withoutSuffix || isFuture ? 'rok' : 'rokem'; + case 'yy': // 9 years / in 9 years / 9 years ago + if (withoutSuffix || isFuture) { + return result + (plural(number) ? 'roky' : 'let'); + } else { + return result + 'lety'; + } + } } - if (acc === null) { - return f; - } + var cs = moment.defineLocale('cs', { + months: months, + monthsShort: monthsShort, + monthsRegex: monthsRegex, + monthsShortRegex: monthsRegex, + // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched. + // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'. + monthsStrictRegex: /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i, + monthsShortStrictRegex: /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i, + monthsParse: monthsParse, + longMonthsParse: monthsParse, + shortMonthsParse: monthsParse, + weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'), + weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'), + weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'), + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd D. MMMM YYYY H:mm', + l: 'D. M. YYYY', + }, + calendar: { + sameDay: '[dnes v] LT', + nextDay: '[zítra v] LT', + nextWeek: function () { + switch (this.day()) { + case 0: + return '[v neděli v] LT'; + case 1: + case 2: + return '[v] dddd [v] LT'; + case 3: + return '[ve středu v] LT'; + case 4: + return '[ve čtvrtek v] LT'; + case 5: + return '[v pátek v] LT'; + case 6: + return '[v sobotu v] LT'; + } + }, + lastDay: '[včera v] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + return '[minulou neděli v] LT'; + case 1: + case 2: + return '[minulé] dddd [v] LT'; + case 3: + return '[minulou středu v] LT'; + case 4: + case 5: + return '[minulý] dddd [v] LT'; + case 6: + return '[minulou sobotu v] LT'; + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'za %s', + past: 'před %s', + s: translate, + ss: translate, + m: translate, + mm: translate, + h: translate, + hh: translate, + d: translate, + dd: translate, + M: translate, + MM: translate, + y: translate, + yy: translate, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - return function chainedFunction() { - for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - args[_key2] = arguments[_key2]; - } + return cs; + + }))); - acc.apply(this, args); - f.apply(this, args); - }; - }, null); - } - exports.default = createChainedFunction; /***/ }), - /* 507 */ + /* 341 */ /***/ (function(module, exports, __webpack_require__) { - "use strict"; - - - exports.__esModule = true; - exports.default = splitComponentProps; - /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ - function _objectEntries(obj) { - var entries = []; - var keys = Object.keys(obj); + //! moment.js locale configuration + //! locale : Chuvash [cv] + //! author : Anatoly Mironov : https://github.com/mirontoli - for (var k = 0; k < keys.length; ++k) { - entries.push([keys[k], obj[keys[k]]]); - }return entries; - } + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - /** - * 分割要传入父元素和子元素的props - * @param {[object]} props 传入的属性 - * @param {[reactElement]} Component 组件 - * @return {[array]} 返回数组,第一个元素为父元素props对象,第二个子元素props对象 - */ - function splitComponentProps(props, Component) { - var componentPropTypes = Component.propTypes; + //! moment.js locale configuration - var parentProps = {}; - var childProps = {}; + var cv = moment.defineLocale('cv', { + months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split( + '_' + ), + monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'), + weekdays: 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split( + '_' + ), + weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'), + weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD-MM-YYYY', + LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]', + LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm', + LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm', + }, + calendar: { + sameDay: '[Паян] LT [сехетре]', + nextDay: '[Ыран] LT [сехетре]', + lastDay: '[Ӗнер] LT [сехетре]', + nextWeek: '[Ҫитес] dddd LT [сехетре]', + lastWeek: '[Иртнӗ] dddd LT [сехетре]', + sameElse: 'L', + }, + relativeTime: { + future: function (output) { + var affix = /сехет$/i.exec(output) + ? 'рен' + : /ҫул$/i.exec(output) + ? 'тан' + : 'ран'; + return output + affix; + }, + past: '%s каялла', + s: 'пӗр-ик ҫеккунт', + ss: '%d ҫеккунт', + m: 'пӗр минут', + mm: '%d минут', + h: 'пӗр сехет', + hh: '%d сехет', + d: 'пӗр кун', + dd: '%d кун', + M: 'пӗр уйӑх', + MM: '%d уйӑх', + y: 'пӗр ҫул', + yy: '%d ҫул', + }, + dayOfMonthOrdinalParse: /\d{1,2}-мӗш/, + ordinal: '%d-мӗш', + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, + }); - _objectEntries(props).forEach(function (_ref) { - var propName = _ref[0], - propValue = _ref[1]; + return cv; - if (componentPropTypes[propName]) { - parentProps[propName] = propValue; - } else { - childProps[propName] = propValue; - } - }); + }))); - return [parentProps, childProps]; - } /***/ }), - /* 508 */ + /* 342 */ /***/ (function(module, exports, __webpack_require__) { - "use strict"; - - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - - var _classnames = __webpack_require__(2); - - var _classnames2 = _interopRequireDefault(_classnames); - - var _react = __webpack_require__(0); - - var _react2 = _interopRequireDefault(_react); - - var _propTypes = __webpack_require__(1); - - var _propTypes2 = _interopRequireDefault(_propTypes); - - var _BaseOverlay = __webpack_require__(1530); - - var _BaseOverlay2 = _interopRequireDefault(_BaseOverlay); - - var _tinperBeeCore = __webpack_require__(118); - - var _Fade = __webpack_require__(1558); - - var _Fade2 = _interopRequireDefault(_Fade); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + //! moment.js locale configuration + //! locale : Welsh [cy] + //! author : Robert Allen : https://github.com/robgallen + //! author : https://github.com/ryangreaves - var propTypes = _extends({}, _BaseOverlay2["default"].propTypes, { + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - /** - * 是否显示 - */ - show: _propTypes2["default"].bool, - /** - * 是 - */ - rootClose: _propTypes2["default"].bool, - /** - * 当点击rootClose触发close时的回调函数 - */ - onHide: _propTypes2["default"].func, + //! moment.js locale configuration - /** - * 使用动画 - */ - animation: _propTypes2["default"].oneOfType([_tinperBeeCore.elementType, _propTypes2["default"].func]), + var cy = moment.defineLocale('cy', { + months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split( + '_' + ), + monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split( + '_' + ), + weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split( + '_' + ), + weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'), + weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'), + weekdaysParseExact: true, + // time formats are the same as en-gb + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Heddiw am] LT', + nextDay: '[Yfory am] LT', + nextWeek: 'dddd [am] LT', + lastDay: '[Ddoe am] LT', + lastWeek: 'dddd [diwethaf am] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'mewn %s', + past: '%s yn ôl', + s: 'ychydig eiliadau', + ss: '%d eiliad', + m: 'munud', + mm: '%d munud', + h: 'awr', + hh: '%d awr', + d: 'diwrnod', + dd: '%d diwrnod', + M: 'mis', + MM: '%d mis', + y: 'blwyddyn', + yy: '%d flynedd', + }, + dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/, + // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh + ordinal: function (number) { + var b = number, + output = '', + lookup = [ + '', + 'af', + 'il', + 'ydd', + 'ydd', + 'ed', + 'ed', + 'ed', + 'fed', + 'fed', + 'fed', // 1af to 10fed + 'eg', + 'fed', + 'eg', + 'eg', + 'fed', + 'eg', + 'eg', + 'fed', + 'eg', + 'fed', // 11eg to 20fed + ]; + if (b > 20) { + if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) { + output = 'fed'; // not 30ain, 70ain or 90ain + } else { + output = 'ain'; + } + } else if (b > 0) { + output = lookup[b]; + } + return number + output; + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - /** - * Callback fired before the Overlay transitions in - */ - onEnter: _propTypes2["default"].func, + return cy; - /** - * Callback fired as the Overlay begins to transition in - */ - onEntering: _propTypes2["default"].func, + }))); - /** - * Callback fired after the Overlay finishes transitioning in - */ - onEntered: _propTypes2["default"].func, - /** - * Callback fired right before the Overlay transitions out - */ - onExit: _propTypes2["default"].func, + /***/ }), + /* 343 */ + /***/ (function(module, exports, __webpack_require__) { - /** - * Callback fired as the Overlay begins to transition out - */ - onExiting: _propTypes2["default"].func, + //! moment.js locale configuration + //! locale : Danish [da] + //! author : Ulrik Nielsen : https://github.com/mrbase - /** - * Callback fired after the Overlay finishes transitioning out - */ - onExited: _propTypes2["default"].func, + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - /** - * Sets the direction of the Overlay. - */ - placement: _propTypes2["default"].oneOf(["top", "right", "bottom", "left", "topLeft", "rightTop", "bottomLeft", "leftTop", "topRight", "rightBottom", "bottomRight", "leftBottom"]), + //! moment.js locale configuration - /** - * 当Overlay在placement方向放不下时的第二优先级方向 - */ - secondPlacement: _propTypes2["default"].oneOf(['top', 'right', 'bottom', 'left']) - }); + var da = moment.defineLocale('da', { + months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split( + '_' + ), + monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'), + weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'), + weekdaysShort: 'søn_man_tir_ons_tor_fre_lør'.split('_'), + weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY HH:mm', + LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm', + }, + calendar: { + sameDay: '[i dag kl.] LT', + nextDay: '[i morgen kl.] LT', + nextWeek: 'på dddd [kl.] LT', + lastDay: '[i går kl.] LT', + lastWeek: '[i] dddd[s kl.] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'om %s', + past: '%s siden', + s: 'få sekunder', + ss: '%d sekunder', + m: 'et minut', + mm: '%d minutter', + h: 'en time', + hh: '%d timer', + d: 'en dag', + dd: '%d dage', + M: 'en måned', + MM: '%d måneder', + y: 'et år', + yy: '%d år', + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - var defaultProps = { - animation: _Fade2["default"], - rootClose: false, - show: false, - placement: 'right' - }; + return da; - var Overlay = function (_Component) { - _inherits(Overlay, _Component); + }))); - function Overlay() { - _classCallCheck(this, Overlay); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + /***/ }), + /* 344 */ + /***/ (function(module, exports, __webpack_require__) { - Overlay.prototype.render = function render() { - var _props = this.props, - animation = _props.animation, - children = _props.children, - props = _objectWithoutProperties(_props, ['animation', 'children']); + //! moment.js locale configuration + //! locale : German [de] + //! author : lluchs : https://github.com/lluchs + //! author: Menelion Elensúle: https://github.com/Oire + //! author : Mikolaj Dadela : https://github.com/mik01aj - var transition = animation === true ? _Fade2["default"] : animation || null; + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var child = void 0; + //! moment.js locale configuration - if (!transition) { - child = (0, _react.cloneElement)(children, { - className: (0, _classnames2["default"])(children.props.className, 'in') - }); - } else { - child = children; + function processRelativeTime(number, withoutSuffix, key, isFuture) { + var format = { + m: ['eine Minute', 'einer Minute'], + h: ['eine Stunde', 'einer Stunde'], + d: ['ein Tag', 'einem Tag'], + dd: [number + ' Tage', number + ' Tagen'], + M: ['ein Monat', 'einem Monat'], + MM: [number + ' Monate', number + ' Monaten'], + y: ['ein Jahr', 'einem Jahr'], + yy: [number + ' Jahre', number + ' Jahren'], + }; + return withoutSuffix ? format[key][0] : format[key][1]; } - return _react2["default"].createElement( - _BaseOverlay2["default"], - _extends({}, props, { - transition: transition, - onHide: props.onHide - }), - child - ); - }; + var de = moment.defineLocale('de', { + months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split( + '_' + ), + monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split( + '_' + ), + weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'), + weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY HH:mm', + LLLL: 'dddd, D. MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[heute um] LT [Uhr]', + sameElse: 'L', + nextDay: '[morgen um] LT [Uhr]', + nextWeek: 'dddd [um] LT [Uhr]', + lastDay: '[gestern um] LT [Uhr]', + lastWeek: '[letzten] dddd [um] LT [Uhr]', + }, + relativeTime: { + future: 'in %s', + past: 'vor %s', + s: 'ein paar Sekunden', + ss: '%d Sekunden', + m: processRelativeTime, + mm: '%d Minuten', + h: processRelativeTime, + hh: '%d Stunden', + d: processRelativeTime, + dd: processRelativeTime, + M: processRelativeTime, + MM: processRelativeTime, + y: processRelativeTime, + yy: processRelativeTime, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - return Overlay; - }(_react.Component); + return de; - Overlay.propTypes = propTypes; - Overlay.defaultProps = defaultProps; + }))); - exports["default"] = Overlay; - module.exports = exports['default']; /***/ }), - /* 509 */ + /* 345 */ /***/ (function(module, exports, __webpack_require__) { - "use strict"; - - - Object.defineProperty(exports, "__esModule", { - value: true - }); + //! moment.js locale configuration + //! locale : German (Austria) [de-at] + //! author : lluchs : https://github.com/lluchs + //! author: Menelion Elensúle: https://github.com/Oire + //! author : Martin Groller : https://github.com/MadMG + //! author : Mikolaj Dadela : https://github.com/mik01aj - var _react = __webpack_require__(0); + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _react2 = _interopRequireDefault(_react); + //! moment.js locale configuration - var _reactDom = __webpack_require__(3); + function processRelativeTime(number, withoutSuffix, key, isFuture) { + var format = { + m: ['eine Minute', 'einer Minute'], + h: ['eine Stunde', 'einer Stunde'], + d: ['ein Tag', 'einem Tag'], + dd: [number + ' Tage', number + ' Tagen'], + M: ['ein Monat', 'einem Monat'], + MM: [number + ' Monate', number + ' Monaten'], + y: ['ein Jahr', 'einem Jahr'], + yy: [number + ' Jahre', number + ' Jahren'], + }; + return withoutSuffix ? format[key][0] : format[key][1]; + } - var _reactDom2 = _interopRequireDefault(_reactDom); + var deAt = moment.defineLocale('de-at', { + months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split( + '_' + ), + monthsShort: 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split( + '_' + ), + weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'), + weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY HH:mm', + LLLL: 'dddd, D. MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[heute um] LT [Uhr]', + sameElse: 'L', + nextDay: '[morgen um] LT [Uhr]', + nextWeek: 'dddd [um] LT [Uhr]', + lastDay: '[gestern um] LT [Uhr]', + lastWeek: '[letzten] dddd [um] LT [Uhr]', + }, + relativeTime: { + future: 'in %s', + past: 'vor %s', + s: 'ein paar Sekunden', + ss: '%d Sekunden', + m: processRelativeTime, + mm: '%d Minuten', + h: processRelativeTime, + hh: '%d Stunden', + d: processRelativeTime, + dd: processRelativeTime, + M: processRelativeTime, + MM: processRelativeTime, + y: processRelativeTime, + yy: processRelativeTime, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - var _propTypes = __webpack_require__(1); + return deAt; - var _propTypes2 = _interopRequireDefault(_propTypes); + }))); - var _ownerDocument = __webpack_require__(116); - var _ownerDocument2 = _interopRequireDefault(_ownerDocument); + /***/ }), + /* 346 */ + /***/ (function(module, exports, __webpack_require__) { - var _getContainer = __webpack_require__(510); + //! moment.js locale configuration + //! locale : German (Switzerland) [de-ch] + //! author : sschueller : https://github.com/sschueller - var _getContainer2 = _interopRequireDefault(_getContainer); + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _tinperBeeCore = __webpack_require__(118); + //! moment.js locale configuration - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + function processRelativeTime(number, withoutSuffix, key, isFuture) { + var format = { + m: ['eine Minute', 'einer Minute'], + h: ['eine Stunde', 'einer Stunde'], + d: ['ein Tag', 'einem Tag'], + dd: [number + ' Tage', number + ' Tagen'], + M: ['ein Monat', 'einem Monat'], + MM: [number + ' Monate', number + ' Monaten'], + y: ['ein Jahr', 'einem Jahr'], + yy: [number + ' Jahre', number + ' Jahren'], + }; + return withoutSuffix ? format[key][0] : format[key][1]; + } - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + var deCh = moment.defineLocale('de-ch', { + months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split( + '_' + ), + monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split( + '_' + ), + weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), + weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY HH:mm', + LLLL: 'dddd, D. MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[heute um] LT [Uhr]', + sameElse: 'L', + nextDay: '[morgen um] LT [Uhr]', + nextWeek: 'dddd [um] LT [Uhr]', + lastDay: '[gestern um] LT [Uhr]', + lastWeek: '[letzten] dddd [um] LT [Uhr]', + }, + relativeTime: { + future: 'in %s', + past: 'vor %s', + s: 'ein paar Sekunden', + ss: '%d Sekunden', + m: processRelativeTime, + mm: '%d Minuten', + h: processRelativeTime, + hh: '%d Stunden', + d: processRelativeTime, + dd: processRelativeTime, + M: processRelativeTime, + MM: processRelativeTime, + y: processRelativeTime, + yy: processRelativeTime, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + return deCh; - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + }))); - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - var isReact16 = _reactDom2["default"].createPortal !== undefined; - var createPortal = isReact16 ? _reactDom2["default"].createPortal : _reactDom2["default"].unstable_renderSubtreeIntoContainer; + /***/ }), + /* 347 */ + /***/ (function(module, exports, __webpack_require__) { - var propTypes = { - /** - * 存放子组件的容器 - */ - container: _propTypes2["default"].oneOfType([_tinperBeeCore.componentOrElement, _propTypes2["default"].func]) - }; + //! moment.js locale configuration + //! locale : Maldivian [dv] + //! author : Jawish Hameed : https://github.com/jawish - var defaultProps = {}; + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - /** - * Portal组件是将子组件渲染 - */ + //! moment.js locale configuration - var Portal = function (_Component) { - _inherits(Portal, _Component); + var months = [ + 'ޖެނުއަރީ', + 'ފެބްރުއަރީ', + 'މާރިޗު', + 'އޭޕްރީލު', + 'މޭ', + 'ޖޫން', + 'ޖުލައި', + 'އޯގަސްޓު', + 'ސެޕްޓެމްބަރު', + 'އޮކްޓޯބަރު', + 'ނޮވެމްބަރު', + 'ޑިސެމްބަރު', + ], + weekdays = [ + 'އާދިއްތަ', + 'ހޯމަ', + 'އަންގާރަ', + 'ބުދަ', + 'ބުރާސްފަތި', + 'ހުކުރު', + 'ހޮނިހިރު', + ]; - function Portal(props) { - _classCallCheck(this, Portal); + var dv = moment.defineLocale('dv', { + months: months, + monthsShort: months, + weekdays: weekdays, + weekdaysShort: weekdays, + weekdaysMin: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'D/M/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + meridiemParse: /މކ|މފ/, + isPM: function (input) { + return 'މފ' === input; + }, + meridiem: function (hour, minute, isLower) { + if (hour < 12) { + return 'މކ'; + } else { + return 'މފ'; + } + }, + calendar: { + sameDay: '[މިއަދު] LT', + nextDay: '[މާދަމާ] LT', + nextWeek: 'dddd LT', + lastDay: '[އިއްޔެ] LT', + lastWeek: '[ފާއިތުވި] dddd LT', + sameElse: 'L', + }, + relativeTime: { + future: 'ތެރޭގައި %s', + past: 'ކުރިން %s', + s: 'ސިކުންތުކޮޅެއް', + ss: 'd% ސިކުންތު', + m: 'މިނިޓެއް', + mm: 'މިނިޓު %d', + h: 'ގަޑިއިރެއް', + hh: 'ގަޑިއިރު %d', + d: 'ދުވަހެއް', + dd: 'ދުވަސް %d', + M: 'މަހެއް', + MM: 'މަސް %d', + y: 'އަހަރެއް', + yy: 'އަހަރު %d', + }, + preparse: function (string) { + return string.replace(/،/g, ','); + }, + postformat: function (string) { + return string.replace(/,/g, '،'); + }, + week: { + dow: 7, // Sunday is the first day of the week. + doy: 12, // The week that contains Jan 12th is the first week of the year. + }, + }); - var _this = _possibleConstructorReturn(this, _Component.call(this, props)); + return dv; - _this.getMountNode = _this.getMountNode.bind(_this); - _this.getOverlayDOMNode = _this.getOverlayDOMNode.bind(_this); - _this.mountOverlayTarget = _this.mountOverlayTarget.bind(_this); - _this.unmountOverlayTarget = _this.unmountOverlayTarget.bind(_this); - _this.renderOverlay = _this.renderOverlay.bind(_this); - _this.unrenderOverlay = _this.unrenderOverlay.bind(_this); + }))); - _this.overlayTarget = isReact16 ? document.createElement('div') : null; - return _this; - } - Portal.prototype.componentDidMount = function componentDidMount() { - if (isReact16) { - this.portalContainerNode = (0, _getContainer2["default"])(this.props.container, (0, _ownerDocument2["default"])(this).body); - this.portalContainerNode.appendChild(this.overlayTarget); - } else { - this.renderOverlay(); - } + /***/ }), + /* 348 */ + /***/ (function(module, exports, __webpack_require__) { - this.mounted = true; - }; + //! moment.js locale configuration + //! locale : Greek [el] + //! author : Aggelos Karalias : https://github.com/mehiel - Portal.prototype.componentDidUpdate = function componentDidUpdate() { - if (isReact16) { - var overlay = !this.props.children ? null : _react2["default"].Children.only(this.props.children); - if (overlay === null) { - this.unrenderOverlay(); - this.unmountOverlayTarget(); - } else {} - } else { - this.renderOverlay(); - } - }; - //this._overlayTarget为当前的要添加的子组件, this._portalContainerNode要添加组件的容器元素 + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; + //! moment.js locale configuration - Portal.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - if (this.overlayTarget && nextProps.container !== this.props.container) { - this.portalContainerNode.removeChild(this.overlayTarget); - this.portalContainerNode = (0, _getContainer2["default"])(nextProps.container, (0, _ownerDocument2["default"])(this).body); - this.portalContainerNode.appendChild(this.overlayTarget); + function isFunction(input) { + return ( + (typeof Function !== 'undefined' && input instanceof Function) || + Object.prototype.toString.call(input) === '[object Function]' + ); } - }; - - Portal.prototype.componentWillUnmount = function componentWillUnmount() { - this.unrenderOverlay(); - this.unmountOverlayTarget(); - - this.mounted = false; - }; - - Portal.prototype.getMountNode = function getMountNode() { - return this.overlayTarget; - }; - Portal.prototype.getOverlayDOMNode = function getOverlayDOMNode() { - if (!this.mounted) { - throw new Error('getOverlayDOMNode(): A component must be mounted to have a DOM node.'); - } + var el = moment.defineLocale('el', { + monthsNominativeEl: 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split( + '_' + ), + monthsGenitiveEl: 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split( + '_' + ), + months: function (momentToFormat, format) { + if (!momentToFormat) { + return this._monthsNominativeEl; + } else if ( + typeof format === 'string' && + /D/.test(format.substring(0, format.indexOf('MMMM'))) + ) { + // if there is a day number before 'MMMM' + return this._monthsGenitiveEl[momentToFormat.month()]; + } else { + return this._monthsNominativeEl[momentToFormat.month()]; + } + }, + monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'), + weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split( + '_' + ), + weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'), + weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'), + meridiem: function (hours, minutes, isLower) { + if (hours > 11) { + return isLower ? 'μμ' : 'ΜΜ'; + } else { + return isLower ? 'πμ' : 'ΠΜ'; + } + }, + isPM: function (input) { + return (input + '').toLowerCase()[0] === 'μ'; + }, + meridiemParse: /[ΠΜ]\.?Μ?\.?/i, + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY h:mm A', + LLLL: 'dddd, D MMMM YYYY h:mm A', + }, + calendarEl: { + sameDay: '[Σήμερα {}] LT', + nextDay: '[Αύριο {}] LT', + nextWeek: 'dddd [{}] LT', + lastDay: '[Χθες {}] LT', + lastWeek: function () { + switch (this.day()) { + case 6: + return '[το προηγούμενο] dddd [{}] LT'; + default: + return '[την προηγούμενη] dddd [{}] LT'; + } + }, + sameElse: 'L', + }, + calendar: function (key, mom) { + var output = this._calendarEl[key], + hours = mom && mom.hours(); + if (isFunction(output)) { + output = output.apply(mom); + } + return output.replace('{}', hours % 12 === 1 ? 'στη' : 'στις'); + }, + relativeTime: { + future: 'σε %s', + past: '%s πριν', + s: 'λίγα δευτερόλεπτα', + ss: '%d δευτερόλεπτα', + m: 'ένα λεπτό', + mm: '%d λεπτά', + h: 'μία ώρα', + hh: '%d ώρες', + d: 'μία μέρα', + dd: '%d μέρες', + M: 'ένας μήνας', + MM: '%d μήνες', + y: 'ένας χρόνος', + yy: '%d χρόνια', + }, + dayOfMonthOrdinalParse: /\d{1,2}η/, + ordinal: '%dη', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4st is the first week of the year. + }, + }); - if (this.overlayInstance) { - return _reactDom2["default"].findDOMNode(this.overlayInstance); - } + return el; - return null; - }; + }))); - /** - * 如果要添加的子组件不存在,就将div添加到要添加容器的DOM中; - */ - Portal.prototype.mountOverlayTarget = function mountOverlayTarget() { - if (!this.overlayTarget) { - this.overlayTarget = document.createElement('div'); - this.portalContainerNode = (0, _getContainer2["default"])(this.props.container, (0, _ownerDocument2["default"])(this).body); - this.portalContainerNode.appendChild(this.overlayTarget); - } - }; - /** - * 将要添加的子元素从容器中移除,并把变量置为null - */ + /***/ }), + /* 349 */ + /***/ (function(module, exports, __webpack_require__) { + //! moment.js locale configuration + //! locale : English (Australia) [en-au] + //! author : Jared Morse : https://github.com/jarcoal - Portal.prototype.unmountOverlayTarget = function unmountOverlayTarget() { - if (this.overlayTarget) { - this.portalContainerNode.removeChild(this.overlayTarget); - this.overlayTarget = null; - } - this.portalContainerNode = null; - }; - /** - * 手动渲染_overlayTarget - */ + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; + //! moment.js locale configuration - Portal.prototype.renderOverlay = function renderOverlay() { + var enAu = moment.defineLocale('en-au', { + months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), + weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( + '_' + ), + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY h:mm A', + LLLL: 'dddd, D MMMM YYYY h:mm A', + }, + calendar: { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + ss: '%d seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years', + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal: function (number) { + var b = number % 10, + output = + ~~((number % 100) / 10) === 1 + ? 'th' + : b === 1 + ? 'st' + : b === 2 + ? 'nd' + : b === 3 + ? 'rd' + : 'th'; + return number + output; + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - var overlay = !this.props.children ? null : _react2["default"].Children.only(this.props.children); + return enAu; - // Save reference for future access. - if (overlay !== null) { - this.mountOverlayTarget(); - this.overlayInstance = _reactDom2["default"].unstable_renderSubtreeIntoContainer(this, overlay, this.overlayTarget); - } else { - // Unrender if the component is null for transitions to null - this.unrenderOverlay(); - this.unmountOverlayTarget(); - } - }; - /** - * 销毁_overlayTarget组件。并把_overlayInstance置为null - */ + }))); - Portal.prototype.unrenderOverlay = function unrenderOverlay() { - if (this.overlayTarget) { - !isReact16 && _reactDom2["default"].unmountComponentAtNode(this.overlayTarget); - this.overlayInstance = null; - } - }; + /***/ }), + /* 350 */ + /***/ (function(module, exports, __webpack_require__) { - Portal.prototype.render = function render() { - if (!isReact16) { - return null; - } + //! moment.js locale configuration + //! locale : English (Canada) [en-ca] + //! author : Jonathan Abourbih : https://github.com/jonbca - var overlay = !this.props.children ? null : _react2["default"].Children.only(this.props.children); + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - return _reactDom2["default"].createPortal(overlay, this.overlayTarget); - }; + //! moment.js locale configuration - return Portal; - }(_react.Component); + var enCa = moment.defineLocale('en-ca', { + months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), + weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( + '_' + ), + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'YYYY-MM-DD', + LL: 'MMMM D, YYYY', + LLL: 'MMMM D, YYYY h:mm A', + LLLL: 'dddd, MMMM D, YYYY h:mm A', + }, + calendar: { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + ss: '%d seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years', + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal: function (number) { + var b = number % 10, + output = + ~~((number % 100) / 10) === 1 + ? 'th' + : b === 1 + ? 'st' + : b === 2 + ? 'nd' + : b === 3 + ? 'rd' + : 'th'; + return number + output; + }, + }); - ; + return enCa; - Portal.propTypes = propTypes; - Portal.defaultProps = defaultProps; + }))); - exports["default"] = Portal; - module.exports = exports['default']; /***/ }), - /* 510 */ + /* 351 */ /***/ (function(module, exports, __webpack_require__) { - "use strict"; + //! moment.js locale configuration + //! locale : English (Ireland) [en-ie] + //! author : Chris Cartlidge : https://github.com/chriscartlidge + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports["default"] = getContainer; + //! moment.js locale configuration - var _reactDom = __webpack_require__(3); + var enIe = moment.defineLocale('en-ie', { + months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), + weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( + '_' + ), + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + ss: '%d seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years', + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal: function (number) { + var b = number % 10, + output = + ~~((number % 100) / 10) === 1 + ? 'th' + : b === 1 + ? 'st' + : b === 2 + ? 'nd' + : b === 3 + ? 'rd' + : 'th'; + return number + output; + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - var _reactDom2 = _interopRequireDefault(_reactDom); + return enIe; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + }))); - /** - * 获取容器组件 - * @param {[type]} container [description] - * @param {[type]} defaultContainer [description] - * @return {[type]} [description] - */ - function getContainer(container, defaultContainer) { - container = typeof container === 'function' ? container() : container; - return _reactDom2["default"].findDOMNode(container) || defaultContainer; - } - module.exports = exports['default']; /***/ }), - /* 511 */ + /* 352 */ /***/ (function(module, exports, __webpack_require__) { - "use strict"; + //! moment.js locale configuration + //! locale : English (Israel) [en-il] + //! author : Chris Gedrim : https://github.com/chrisgedrim + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - exports.__esModule = true; - exports.default = isRequiredForA11y; - /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ - function isRequiredForA11y(validator) { - return function validate(props, propName, componentName, location, propFullName) { - var componentNameSafe = componentName || '<>'; - var propFullNameSafe = propFullName || propName; + //! moment.js locale configuration - if (props[propName] == null) { - return new Error('The ' + location + ' `' + propFullNameSafe + '` is required to make ' + ('`' + componentNameSafe + '` accessible for users of assistive ') + 'technologies such as screen readers.'); - } + var enIl = moment.defineLocale('en-il', { + months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), + weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( + '_' + ), + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + ss: '%d seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years', + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal: function (number) { + var b = number % 10, + output = + ~~((number % 100) / 10) === 1 + ? 'th' + : b === 1 + ? 'st' + : b === 2 + ? 'nd' + : b === 3 + ? 'rd' + : 'th'; + return number + output; + }, + }); - for (var _len = arguments.length, args = Array(_len > 5 ? _len - 5 : 0), _key = 5; _key < _len; _key++) { - args[_key - 5] = arguments[_key]; - } + return enIl; + + }))); - return validator.apply(undefined, [props, propName, componentName, location, propFullName].concat(args)); - }; - } /***/ }), - /* 512 */ + /* 353 */ /***/ (function(module, exports, __webpack_require__) { - "use strict"; - - - exports.__esModule = true; - exports.default = addEventListenerWrap; + //! moment.js locale configuration + //! locale : English (India) [en-in] + //! author : Jatin Agrawal : https://github.com/jatinag22 - var _addDomEventListener = __webpack_require__(12); + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener); + //! moment.js locale configuration - var _reactDom = __webpack_require__(3); + var enIn = moment.defineLocale('en-in', { + months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), + weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( + '_' + ), + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY h:mm A', + LLLL: 'dddd, D MMMM YYYY h:mm A', + }, + calendar: { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + ss: '%d seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years', + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal: function (number) { + var b = number % 10, + output = + ~~((number % 100) / 10) === 1 + ? 'th' + : b === 1 + ? 'st' + : b === 2 + ? 'nd' + : b === 3 + ? 'rd' + : 'th'; + return number + output; + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - var _reactDom2 = _interopRequireDefault(_reactDom); + return enIn; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + }))); - /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ - function addEventListenerWrap(target, eventType, cb) { - /* eslint camelcase: 2 */ - var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) { - _reactDom2.default.unstable_batchedUpdates(cb, e); - } : cb; - return (0, _addDomEventListener2.default)(target, eventType, callback); - } /***/ }), - /* 513 */ + /* 354 */ /***/ (function(module, exports, __webpack_require__) { - "use strict"; - - - var _interopRequireDefault = __webpack_require__(18); - - exports.__esModule = true; - exports.default = offset; - - var _contains = _interopRequireDefault(__webpack_require__(200)); + //! moment.js locale configuration + //! locale : English (New Zealand) [en-nz] + //! author : Luke McGregor : https://github.com/lukemcgregor - var _isWindow = _interopRequireDefault(__webpack_require__(201)); + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _ownerDocument = _interopRequireDefault(__webpack_require__(117)); + //! moment.js locale configuration - function offset(node) { - var doc = (0, _ownerDocument.default)(node), - win = (0, _isWindow.default)(doc), - docElem = doc && doc.documentElement, - box = { - top: 0, - left: 0, - height: 0, - width: 0 - }; - if (!doc) return; // Make sure it's not a disconnected DOM node + var enNz = moment.defineLocale('en-nz', { + months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), + weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( + '_' + ), + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY h:mm A', + LLLL: 'dddd, D MMMM YYYY h:mm A', + }, + calendar: { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + ss: '%d seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years', + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal: function (number) { + var b = number % 10, + output = + ~~((number % 100) / 10) === 1 + ? 'th' + : b === 1 + ? 'st' + : b === 2 + ? 'nd' + : b === 3 + ? 'rd' + : 'th'; + return number + output; + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - if (!(0, _contains.default)(docElem, node)) return box; - if (node.getBoundingClientRect !== undefined) box = node.getBoundingClientRect(); // IE8 getBoundingClientRect doesn't support width & height + return enNz; - box = { - top: box.top + (win.pageYOffset || docElem.scrollTop) - (docElem.clientTop || 0), - left: box.left + (win.pageXOffset || docElem.scrollLeft) - (docElem.clientLeft || 0), - width: (box.width == null ? node.offsetWidth : box.width) || 0, - height: (box.height == null ? node.offsetHeight : box.height) || 0 - }; - return box; - } + }))); - module.exports = exports["default"]; /***/ }), - /* 514 */ + /* 355 */ /***/ (function(module, exports, __webpack_require__) { - "use strict"; - - - var _interopRequireDefault = __webpack_require__(18); + //! moment.js locale configuration + //! locale : English (Singapore) [en-sg] + //! author : Matthew Castrillon-Madrigal : https://github.com/techdimension - exports.__esModule = true; - exports.default = style; + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _camelizeStyle = _interopRequireDefault(__webpack_require__(515)); + //! moment.js locale configuration - var _hyphenateStyle = _interopRequireDefault(__webpack_require__(1548)); + var enSg = moment.defineLocale('en-sg', { + months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), + weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( + '_' + ), + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + ss: '%d seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years', + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal: function (number) { + var b = number % 10, + output = + ~~((number % 100) / 10) === 1 + ? 'th' + : b === 1 + ? 'st' + : b === 2 + ? 'nd' + : b === 3 + ? 'rd' + : 'th'; + return number + output; + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - var _getComputedStyle2 = _interopRequireDefault(__webpack_require__(1550)); + return enSg; - var _removeStyle = _interopRequireDefault(__webpack_require__(1551)); + }))); - var _properties = __webpack_require__(516); - var _isTransform = _interopRequireDefault(__webpack_require__(1552)); + /***/ }), + /* 356 */ + /***/ (function(module, exports, __webpack_require__) { - function style(node, property, value) { - var css = ''; - var transforms = ''; - var props = property; + //! moment.js locale configuration + //! locale : Esperanto [eo] + //! author : Colin Dean : https://github.com/colindean + //! author : Mia Nordentoft Imperatori : https://github.com/miestasmia + //! comment : miestasmia corrected the translation by colindean + //! comment : Vivakvo corrected the translation by colindean and miestasmia - if (typeof property === 'string') { - if (value === undefined) { - return node.style[(0, _camelizeStyle.default)(property)] || (0, _getComputedStyle2.default)(node).getPropertyValue((0, _hyphenateStyle.default)(property)); - } else { - (props = {})[property] = value; - } - } + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - Object.keys(props).forEach(function (key) { - var value = props[key]; + //! moment.js locale configuration - if (!value && value !== 0) { - (0, _removeStyle.default)(node, (0, _hyphenateStyle.default)(key)); - } else if ((0, _isTransform.default)(key)) { - transforms += key + "(" + value + ") "; - } else { - css += (0, _hyphenateStyle.default)(key) + ": " + value + ";"; - } - }); + var eo = moment.defineLocale('eo', { + months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split( + '_' + ), + monthsShort: 'jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec'.split('_'), + weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'), + weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'), + weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY-MM-DD', + LL: '[la] D[-an de] MMMM, YYYY', + LLL: '[la] D[-an de] MMMM, YYYY HH:mm', + LLLL: 'dddd[n], [la] D[-an de] MMMM, YYYY HH:mm', + llll: 'ddd, [la] D[-an de] MMM, YYYY HH:mm', + }, + meridiemParse: /[ap]\.t\.m/i, + isPM: function (input) { + return input.charAt(0).toLowerCase() === 'p'; + }, + meridiem: function (hours, minutes, isLower) { + if (hours > 11) { + return isLower ? 'p.t.m.' : 'P.T.M.'; + } else { + return isLower ? 'a.t.m.' : 'A.T.M.'; + } + }, + calendar: { + sameDay: '[Hodiaŭ je] LT', + nextDay: '[Morgaŭ je] LT', + nextWeek: 'dddd[n je] LT', + lastDay: '[Hieraŭ je] LT', + lastWeek: '[pasintan] dddd[n je] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'post %s', + past: 'antaŭ %s', + s: 'kelkaj sekundoj', + ss: '%d sekundoj', + m: 'unu minuto', + mm: '%d minutoj', + h: 'unu horo', + hh: '%d horoj', + d: 'unu tago', //ne 'diurno', ĉar estas uzita por proksimumo + dd: '%d tagoj', + M: 'unu monato', + MM: '%d monatoj', + y: 'unu jaro', + yy: '%d jaroj', + }, + dayOfMonthOrdinalParse: /\d{1,2}a/, + ordinal: '%da', + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, + }); - if (transforms) { - css += _properties.transform + ": " + transforms + ";"; - } + return eo; - node.style.cssText += ';' + css; - } + }))); - module.exports = exports["default"]; /***/ }), - /* 515 */ + /* 357 */ /***/ (function(module, exports, __webpack_require__) { - "use strict"; + //! moment.js locale configuration + //! locale : Spanish [es] + //! author : Julio Napurí : https://github.com/julionc + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _interopRequireDefault = __webpack_require__(18); + //! moment.js locale configuration - exports.__esModule = true; - exports.default = camelizeStyleName; + var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split( + '_' + ), + monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), + monthsParse = [ + /^ene/i, + /^feb/i, + /^mar/i, + /^abr/i, + /^may/i, + /^jun/i, + /^jul/i, + /^ago/i, + /^sep/i, + /^oct/i, + /^nov/i, + /^dic/i, + ], + monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i; - var _camelize = _interopRequireDefault(__webpack_require__(1547)); + var es = moment.defineLocale('es', { + months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split( + '_' + ), + monthsShort: function (m, format) { + if (!m) { + return monthsShortDot; + } else if (/-MMM-/.test(format)) { + return monthsShort[m.month()]; + } else { + return monthsShortDot[m.month()]; + } + }, + monthsRegex: monthsRegex, + monthsShortRegex: monthsRegex, + monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, + monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, + monthsParse: monthsParse, + longMonthsParse: monthsParse, + shortMonthsParse: monthsParse, + weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), + weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), + weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D [de] MMMM [de] YYYY', + LLL: 'D [de] MMMM [de] YYYY H:mm', + LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm', + }, + calendar: { + sameDay: function () { + return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; + }, + nextDay: function () { + return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; + }, + nextWeek: function () { + return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; + }, + lastDay: function () { + return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; + }, + lastWeek: function () { + return ( + '[el] dddd [pasado a la' + + (this.hours() !== 1 ? 's' : '') + + '] LT' + ); + }, + sameElse: 'L', + }, + relativeTime: { + future: 'en %s', + past: 'hace %s', + s: 'unos segundos', + ss: '%d segundos', + m: 'un minuto', + mm: '%d minutos', + h: 'una hora', + hh: '%d horas', + d: 'un día', + dd: '%d días', + M: 'un mes', + MM: '%d meses', + y: 'un año', + yy: '%d años', + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + invalidDate: 'Fecha invalida', + }); - /** - * Copyright 2014-2015, Facebook, Inc. - * All rights reserved. - * https://github.com/facebook/react/blob/2aeb8a2a6beb00617a4217f7f8284924fa2ad819/src/vendor/core/camelizeStyleName.js - */ - var msPattern = /^-ms-/; + return es; - function camelizeStyleName(string) { - return (0, _camelize.default)(string.replace(msPattern, 'ms-')); - } + }))); - module.exports = exports["default"]; /***/ }), - /* 516 */ + /* 358 */ /***/ (function(module, exports, __webpack_require__) { - "use strict"; - - - var _interopRequireDefault = __webpack_require__(18); - - exports.__esModule = true; - exports.default = exports.animationEnd = exports.animationDelay = exports.animationTiming = exports.animationDuration = exports.animationName = exports.transitionEnd = exports.transitionDuration = exports.transitionDelay = exports.transitionTiming = exports.transitionProperty = exports.transform = void 0; - - var _inDOM = _interopRequireDefault(__webpack_require__(84)); - - var transform = 'transform'; - exports.transform = transform; - var prefix, transitionEnd, animationEnd; - exports.animationEnd = animationEnd; - exports.transitionEnd = transitionEnd; - var transitionProperty, transitionDuration, transitionTiming, transitionDelay; - exports.transitionDelay = transitionDelay; - exports.transitionTiming = transitionTiming; - exports.transitionDuration = transitionDuration; - exports.transitionProperty = transitionProperty; - var animationName, animationDuration, animationTiming, animationDelay; - exports.animationDelay = animationDelay; - exports.animationTiming = animationTiming; - exports.animationDuration = animationDuration; - exports.animationName = animationName; + //! moment.js locale configuration + //! locale : Spanish (Dominican Republic) [es-do] - if (_inDOM.default) { - var _getTransitionPropert = getTransitionProperties(); + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - prefix = _getTransitionPropert.prefix; - exports.transitionEnd = transitionEnd = _getTransitionPropert.transitionEnd; - exports.animationEnd = animationEnd = _getTransitionPropert.animationEnd; - exports.transform = transform = prefix + "-" + transform; - exports.transitionProperty = transitionProperty = prefix + "-transition-property"; - exports.transitionDuration = transitionDuration = prefix + "-transition-duration"; - exports.transitionDelay = transitionDelay = prefix + "-transition-delay"; - exports.transitionTiming = transitionTiming = prefix + "-transition-timing-function"; - exports.animationName = animationName = prefix + "-animation-name"; - exports.animationDuration = animationDuration = prefix + "-animation-duration"; - exports.animationTiming = animationTiming = prefix + "-animation-delay"; - exports.animationDelay = animationDelay = prefix + "-animation-timing-function"; - } + //! moment.js locale configuration - var _default = { - transform: transform, - end: transitionEnd, - property: transitionProperty, - timing: transitionTiming, - delay: transitionDelay, - duration: transitionDuration - }; - exports.default = _default; + var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split( + '_' + ), + monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), + monthsParse = [ + /^ene/i, + /^feb/i, + /^mar/i, + /^abr/i, + /^may/i, + /^jun/i, + /^jul/i, + /^ago/i, + /^sep/i, + /^oct/i, + /^nov/i, + /^dic/i, + ], + monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i; - function getTransitionProperties() { - var style = document.createElement('div').style; - var vendorMap = { - O: function O(e) { - return "o" + e.toLowerCase(); - }, - Moz: function Moz(e) { - return e.toLowerCase(); - }, - Webkit: function Webkit(e) { - return "webkit" + e; - }, - ms: function ms(e) { - return "MS" + e; - } - }; - var vendors = Object.keys(vendorMap); - var transitionEnd, animationEnd; - var prefix = ''; + var esDo = moment.defineLocale('es-do', { + months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split( + '_' + ), + monthsShort: function (m, format) { + if (!m) { + return monthsShortDot; + } else if (/-MMM-/.test(format)) { + return monthsShort[m.month()]; + } else { + return monthsShortDot[m.month()]; + } + }, + monthsRegex: monthsRegex, + monthsShortRegex: monthsRegex, + monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, + monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, + monthsParse: monthsParse, + longMonthsParse: monthsParse, + shortMonthsParse: monthsParse, + weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), + weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), + weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'DD/MM/YYYY', + LL: 'D [de] MMMM [de] YYYY', + LLL: 'D [de] MMMM [de] YYYY h:mm A', + LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A', + }, + calendar: { + sameDay: function () { + return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; + }, + nextDay: function () { + return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; + }, + nextWeek: function () { + return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; + }, + lastDay: function () { + return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; + }, + lastWeek: function () { + return ( + '[el] dddd [pasado a la' + + (this.hours() !== 1 ? 's' : '') + + '] LT' + ); + }, + sameElse: 'L', + }, + relativeTime: { + future: 'en %s', + past: 'hace %s', + s: 'unos segundos', + ss: '%d segundos', + m: 'un minuto', + mm: '%d minutos', + h: 'una hora', + hh: '%d horas', + d: 'un día', + dd: '%d días', + M: 'un mes', + MM: '%d meses', + y: 'un año', + yy: '%d años', + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - for (var i = 0; i < vendors.length; i++) { - var vendor = vendors[i]; + return esDo; - if (vendor + "TransitionProperty" in style) { - prefix = "-" + vendor.toLowerCase(); - transitionEnd = vendorMap[vendor]('TransitionEnd'); - animationEnd = vendorMap[vendor]('AnimationEnd'); - break; - } - } + }))); - if (!transitionEnd && 'transitionProperty' in style) transitionEnd = 'transitionend'; - if (!animationEnd && 'animationName' in style) animationEnd = 'animationend'; - style = null; - return { - animationEnd: animationEnd, - transitionEnd: transitionEnd, - prefix: prefix - }; - } /***/ }), - /* 517 */ + /* 359 */ /***/ (function(module, exports, __webpack_require__) { - "use strict"; + //! moment.js locale configuration + //! locale : Spanish (United States) [es-us] + //! author : bustta : https://github.com/bustta + //! author : chrisrodz : https://github.com/chrisrodz + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _interopRequireDefault = __webpack_require__(18); + //! moment.js locale configuration - exports.__esModule = true; - exports.default = scrollTop; + var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split( + '_' + ), + monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), + monthsParse = [ + /^ene/i, + /^feb/i, + /^mar/i, + /^abr/i, + /^may/i, + /^jun/i, + /^jul/i, + /^ago/i, + /^sep/i, + /^oct/i, + /^nov/i, + /^dic/i, + ], + monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i; + + var esUs = moment.defineLocale('es-us', { + months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split( + '_' + ), + monthsShort: function (m, format) { + if (!m) { + return monthsShortDot; + } else if (/-MMM-/.test(format)) { + return monthsShort[m.month()]; + } else { + return monthsShortDot[m.month()]; + } + }, + monthsRegex: monthsRegex, + monthsShortRegex: monthsRegex, + monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, + monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, + monthsParse: monthsParse, + longMonthsParse: monthsParse, + shortMonthsParse: monthsParse, + weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), + weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), + weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'MM/DD/YYYY', + LL: 'D [de] MMMM [de] YYYY', + LLL: 'D [de] MMMM [de] YYYY h:mm A', + LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A', + }, + calendar: { + sameDay: function () { + return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; + }, + nextDay: function () { + return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; + }, + nextWeek: function () { + return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; + }, + lastDay: function () { + return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; + }, + lastWeek: function () { + return ( + '[el] dddd [pasado a la' + + (this.hours() !== 1 ? 's' : '') + + '] LT' + ); + }, + sameElse: 'L', + }, + relativeTime: { + future: 'en %s', + past: 'hace %s', + s: 'unos segundos', + ss: '%d segundos', + m: 'un minuto', + mm: '%d minutos', + h: 'una hora', + hh: '%d horas', + d: 'un día', + dd: '%d días', + M: 'un mes', + MM: '%d meses', + y: 'un año', + yy: '%d años', + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { + dow: 0, // Sunday is the first day of the week. + doy: 6, // The week that contains Jan 6th is the first week of the year. + }, + }); - var _isWindow = _interopRequireDefault(__webpack_require__(201)); + return esUs; - function scrollTop(node, val) { - var win = (0, _isWindow.default)(node); - if (val === undefined) return win ? 'pageYOffset' in win ? win.pageYOffset : win.document.documentElement.scrollTop : node.scrollTop; - if (win) win.scrollTo('pageXOffset' in win ? win.pageXOffset : win.document.documentElement.scrollLeft, val);else node.scrollTop = val; - } + }))); - module.exports = exports["default"]; /***/ }), - /* 518 */ + /* 360 */ /***/ (function(module, exports, __webpack_require__) { - "use strict"; - + //! moment.js locale configuration + //! locale : Estonian [et] + //! author : Henry Kehlmann : https://github.com/madhenry + //! improvements : Illimar Tambek : https://github.com/ragulka - Object.defineProperty(exports, "__esModule", { - value: true - }); + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - exports["default"] = function (node, event, handler, capture) { - (0, _on2["default"])(node, event, handler, capture); + //! moment.js locale configuration - return { - remove: function remove() { - (0, _off2["default"])(node, event, handler, capture); + function processRelativeTime(number, withoutSuffix, key, isFuture) { + var format = { + s: ['mõne sekundi', 'mõni sekund', 'paar sekundit'], + ss: [number + 'sekundi', number + 'sekundit'], + m: ['ühe minuti', 'üks minut'], + mm: [number + ' minuti', number + ' minutit'], + h: ['ühe tunni', 'tund aega', 'üks tund'], + hh: [number + ' tunni', number + ' tundi'], + d: ['ühe päeva', 'üks päev'], + M: ['kuu aja', 'kuu aega', 'üks kuu'], + MM: [number + ' kuu', number + ' kuud'], + y: ['ühe aasta', 'aasta', 'üks aasta'], + yy: [number + ' aasta', number + ' aastat'], + }; + if (withoutSuffix) { + return format[key][2] ? format[key][2] : format[key][1]; + } + return isFuture ? format[key][0] : format[key][1]; } - }; - }; - - var _on = __webpack_require__(519); - var _on2 = _interopRequireDefault(_on); - - var _off = __webpack_require__(1556); + var et = moment.defineLocale('et', { + months: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split( + '_' + ), + monthsShort: 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split( + '_' + ), + weekdays: 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split( + '_' + ), + weekdaysShort: 'P_E_T_K_N_R_L'.split('_'), + weekdaysMin: 'P_E_T_K_N_R_L'.split('_'), + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd, D. MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[Täna,] LT', + nextDay: '[Homme,] LT', + nextWeek: '[Järgmine] dddd LT', + lastDay: '[Eile,] LT', + lastWeek: '[Eelmine] dddd LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s pärast', + past: '%s tagasi', + s: processRelativeTime, + ss: processRelativeTime, + m: processRelativeTime, + mm: processRelativeTime, + h: processRelativeTime, + hh: processRelativeTime, + d: processRelativeTime, + dd: '%d päeva', + M: processRelativeTime, + MM: processRelativeTime, + y: processRelativeTime, + yy: processRelativeTime, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - var _off2 = _interopRequireDefault(_off); + return et; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + }))); - module.exports = exports['default']; /***/ }), - /* 519 */ + /* 361 */ /***/ (function(module, exports, __webpack_require__) { - "use strict"; - + //! moment.js locale configuration + //! locale : Basque [eu] + //! author : Eneko Illarramendi : https://github.com/eillarra - var _interopRequireDefault = __webpack_require__(18); + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - exports.__esModule = true; - exports.default = void 0; + //! moment.js locale configuration - var _inDOM = _interopRequireDefault(__webpack_require__(84)); + var eu = moment.defineLocale('eu', { + months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split( + '_' + ), + monthsShort: 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split( + '_' + ), + weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'), + weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY-MM-DD', + LL: 'YYYY[ko] MMMM[ren] D[a]', + LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm', + LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm', + l: 'YYYY-M-D', + ll: 'YYYY[ko] MMM D[a]', + lll: 'YYYY[ko] MMM D[a] HH:mm', + llll: 'ddd, YYYY[ko] MMM D[a] HH:mm', + }, + calendar: { + sameDay: '[gaur] LT[etan]', + nextDay: '[bihar] LT[etan]', + nextWeek: 'dddd LT[etan]', + lastDay: '[atzo] LT[etan]', + lastWeek: '[aurreko] dddd LT[etan]', + sameElse: 'L', + }, + relativeTime: { + future: '%s barru', + past: 'duela %s', + s: 'segundo batzuk', + ss: '%d segundo', + m: 'minutu bat', + mm: '%d minutu', + h: 'ordu bat', + hh: '%d ordu', + d: 'egun bat', + dd: '%d egun', + M: 'hilabete bat', + MM: '%d hilabete', + y: 'urte bat', + yy: '%d urte', + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, + }); - var on = function on() {}; + return eu; - if (_inDOM.default) { - on = function () { - if (document.addEventListener) return function (node, eventName, handler, capture) { - return node.addEventListener(eventName, handler, capture || false); - };else if (document.attachEvent) return function (node, eventName, handler) { - return node.attachEvent('on' + eventName, function (e) { - e = e || window.event; - e.target = e.target || e.srcElement; - e.currentTarget = node; - handler.call(node, e); - }); - }; - }(); - } + }))); - var _default = on; - exports.default = _default; - module.exports = exports["default"]; /***/ }), - /* 520 */ + /* 362 */ /***/ (function(module, exports, __webpack_require__) { - "use strict"; - + //! moment.js locale configuration + //! locale : Persian [fa] + //! author : Ebrahim Byagowi : https://github.com/ebraminio - exports.__esModule = true; - exports.default = addEventListenerWrap; + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _addDomEventListener = __webpack_require__(12); + //! moment.js locale configuration - var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener); + var symbolMap = { + '1': '۱', + '2': '۲', + '3': '۳', + '4': '۴', + '5': '۵', + '6': '۶', + '7': '۷', + '8': '۸', + '9': '۹', + '0': '۰', + }, + numberMap = { + '۱': '1', + '۲': '2', + '۳': '3', + '۴': '4', + '۵': '5', + '۶': '6', + '۷': '7', + '۸': '8', + '۹': '9', + '۰': '0', + }; - var _reactDom = __webpack_require__(3); + var fa = moment.defineLocale('fa', { + months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split( + '_' + ), + monthsShort: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split( + '_' + ), + weekdays: 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split( + '_' + ), + weekdaysShort: 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split( + '_' + ), + weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + meridiemParse: /قبل از ظهر|بعد از ظهر/, + isPM: function (input) { + return /بعد از ظهر/.test(input); + }, + meridiem: function (hour, minute, isLower) { + if (hour < 12) { + return 'قبل از ظهر'; + } else { + return 'بعد از ظهر'; + } + }, + calendar: { + sameDay: '[امروز ساعت] LT', + nextDay: '[فردا ساعت] LT', + nextWeek: 'dddd [ساعت] LT', + lastDay: '[دیروز ساعت] LT', + lastWeek: 'dddd [پیش] [ساعت] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'در %s', + past: '%s پیش', + s: 'چند ثانیه', + ss: '%d ثانیه', + m: 'یک دقیقه', + mm: '%d دقیقه', + h: 'یک ساعت', + hh: '%d ساعت', + d: 'یک روز', + dd: '%d روز', + M: 'یک ماه', + MM: '%d ماه', + y: 'یک سال', + yy: '%d سال', + }, + preparse: function (string) { + return string + .replace(/[۰-۹]/g, function (match) { + return numberMap[match]; + }) + .replace(/،/g, ','); + }, + postformat: function (string) { + return string + .replace(/\d/g, function (match) { + return symbolMap[match]; + }) + .replace(/,/g, '،'); + }, + dayOfMonthOrdinalParse: /\d{1,2}م/, + ordinal: '%dم', + week: { + dow: 6, // Saturday is the first day of the week. + doy: 12, // The week that contains Jan 12th is the first week of the year. + }, + }); - var _reactDom2 = _interopRequireDefault(_reactDom); + return fa; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + }))); - /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ - function addEventListenerWrap(target, eventType, cb) { - /* eslint camelcase: 2 */ - var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) { - _reactDom2.default.unstable_batchedUpdates(cb, e); - } : cb; - return (0, _addDomEventListener2.default)(target, eventType, callback); - } /***/ }), - /* 521 */ + /* 363 */ /***/ (function(module, exports, __webpack_require__) { - "use strict"; - - - Object.defineProperty(exports, "__esModule", { - value: true - }); - var getClass = exports.getClass = function getClass(props, doing) { - var dropClass = props.dropClass, - dropOverClass = props.dropOverClass, - dragClass = props.dragClass, - dragingClass = props.dragingClass, - type = props.type; - - - var verticalObj = { - drop: {}, drag: {} - }; - verticalObj.drop['u-drop ' + dropClass] = true; - verticalObj.drop['u-droping ' + dropOverClass] = doing; - verticalObj.drag['u-drag ' + dragClass] = true; - verticalObj.drag['u-draging ' + dragingClass] = doing; - - var horizontalObj = { - drop: {}, drag: {} - }; - horizontalObj.drop['u-drop u-drop-horizontal ' + dropClass] = true; - horizontalObj.drop['u-droping u-droping-horizontal ' + dropOverClass] = doing; - horizontalObj.drag['u-drag u-drag-horizontal ' + dragClass] = true; - horizontalObj.drag['u-draging u-draging-horizontal ' + dragingClass] = doing; - - switch (type) { - case 'vertical': - return verticalObj; - break; - case 'horizontal': - return horizontalObj; - break; - case 'betweenVertical': - return verticalObj; - break; - case 'betweenHorizontal': - return horizontalObj; - break; - } - }; - - /***/ }), - /* 522 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { - - "use strict"; - Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Menu__ = __webpack_require__(1616); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__SubMenu__ = __webpack_require__(524); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__MenuItem__ = __webpack_require__(1619); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__MenuItemGroup__ = __webpack_require__(1620); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Divider__ = __webpack_require__(1621); - /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "SubMenu", function() { return __WEBPACK_IMPORTED_MODULE_1__SubMenu__["a"]; }); - /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Item", function() { return __WEBPACK_IMPORTED_MODULE_2__MenuItem__["a"]; }); - /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MenuItem", function() { return __WEBPACK_IMPORTED_MODULE_2__MenuItem__["a"]; }); - /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MenuItemGroup", function() { return __WEBPACK_IMPORTED_MODULE_3__MenuItemGroup__["a"]; }); - /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "ItemGroup", function() { return __WEBPACK_IMPORTED_MODULE_3__MenuItemGroup__["a"]; }); - /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Divider", function() { return __WEBPACK_IMPORTED_MODULE_4__Divider__["a"]; }); - - - - - - - - - /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__Menu__["a" /* default */]); - - /***/ }), - /* 523 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { - - "use strict"; - /* harmony export (immutable) */ __webpack_exports__["b"] = getActiveKey; - /* unused harmony export saveRef */ - /* unused harmony export SubPopupMenu */ - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(23); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(7); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(9); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(10); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends__ = __webpack_require__(8); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(0); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types__ = __webpack_require__(1); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_prop_types__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_mini_store__ = __webpack_require__(21); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_mini_store___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_mini_store__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__ = __webpack_require__(43); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_rc_util_es_createChainedFunction__ = __webpack_require__(256); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_classnames__ = __webpack_require__(2); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_classnames__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__util__ = __webpack_require__(64); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__DOMWrap__ = __webpack_require__(1617); - - - - - - - - - - - - - - - function allDisabled(arr) { - if (!arr.length) { - return true; - } - return arr.every(function (c) { - return !!c.props.disabled; - }); - } - - function updateActiveKey(store, menuId, activeKey) { - var _extends2; - - var state = store.getState(); - store.setState({ - activeKey: __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({}, state.activeKey, (_extends2 = {}, _extends2[menuId] = activeKey, _extends2)) - }); - } + //! moment.js locale configuration + //! locale : Finnish [fi] + //! author : Tarmo Aidantausta : https://github.com/bleadof - function getEventKey(props) { - // when eventKey not available ,it's menu and return menu id '0-menu-' - return props.eventKey || '0-menu-'; - } + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function getActiveKey(props, originalActiveKey) { - var activeKey = originalActiveKey; - var children = props.children, - eventKey = props.eventKey; + //! moment.js locale configuration - if (activeKey) { - var found = void 0; - Object(__WEBPACK_IMPORTED_MODULE_11__util__["d" /* loopMenuItem */])(children, function (c, i) { - if (c && !c.props.disabled && activeKey === Object(__WEBPACK_IMPORTED_MODULE_11__util__["a" /* getKeyFromChildrenIndex */])(c, eventKey, i)) { - found = true; - } - }); - if (found) { - return activeKey; + var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split( + ' ' + ), + numbersFuture = [ + 'nolla', + 'yhden', + 'kahden', + 'kolmen', + 'neljän', + 'viiden', + 'kuuden', + numbersPast[7], + numbersPast[8], + numbersPast[9], + ]; + function translate(number, withoutSuffix, key, isFuture) { + var result = ''; + switch (key) { + case 's': + return isFuture ? 'muutaman sekunnin' : 'muutama sekunti'; + case 'ss': + return isFuture ? 'sekunnin' : 'sekuntia'; + case 'm': + return isFuture ? 'minuutin' : 'minuutti'; + case 'mm': + result = isFuture ? 'minuutin' : 'minuuttia'; + break; + case 'h': + return isFuture ? 'tunnin' : 'tunti'; + case 'hh': + result = isFuture ? 'tunnin' : 'tuntia'; + break; + case 'd': + return isFuture ? 'päivän' : 'päivä'; + case 'dd': + result = isFuture ? 'päivän' : 'päivää'; + break; + case 'M': + return isFuture ? 'kuukauden' : 'kuukausi'; + case 'MM': + result = isFuture ? 'kuukauden' : 'kuukautta'; + break; + case 'y': + return isFuture ? 'vuoden' : 'vuosi'; + case 'yy': + result = isFuture ? 'vuoden' : 'vuotta'; + break; + } + result = verbalNumber(number, isFuture) + ' ' + result; + return result; } - } - activeKey = null; - if (props.defaultActiveFirst) { - Object(__WEBPACK_IMPORTED_MODULE_11__util__["d" /* loopMenuItem */])(children, function (c, i) { - if (!activeKey && c && !c.props.disabled) { - activeKey = Object(__WEBPACK_IMPORTED_MODULE_11__util__["a" /* getKeyFromChildrenIndex */])(c, eventKey, i); - } - }); - return activeKey; - } - return activeKey; - } - - function saveRef(c) { - if (c) { - var index = this.instanceArray.indexOf(c); - if (index !== -1) { - // update component if it's already inside instanceArray - this.instanceArray[index] = c; - } else { - // add component if it's not in instanceArray yet; - this.instanceArray.push(c); + function verbalNumber(number, isFuture) { + return number < 10 + ? isFuture + ? numbersFuture[number] + : numbersPast[number] + : number; } - } - } - - var SubPopupMenu = function (_React$Component) { - __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default()(SubPopupMenu, _React$Component); - - function SubPopupMenu(props) { - var _extends3; - __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, SubPopupMenu); - - var _this = __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.call(this, props)); - - _initialiseProps.call(_this); - - props.store.setState({ - activeKey: __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({}, props.store.getState().activeKey, (_extends3 = {}, _extends3[props.eventKey] = getActiveKey(props, props.activeKey), _extends3)) + var fi = moment.defineLocale('fi', { + months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split( + '_' + ), + monthsShort: 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split( + '_' + ), + weekdays: 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split( + '_' + ), + weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'), + weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'), + longDateFormat: { + LT: 'HH.mm', + LTS: 'HH.mm.ss', + L: 'DD.MM.YYYY', + LL: 'Do MMMM[ta] YYYY', + LLL: 'Do MMMM[ta] YYYY, [klo] HH.mm', + LLLL: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm', + l: 'D.M.YYYY', + ll: 'Do MMM YYYY', + lll: 'Do MMM YYYY, [klo] HH.mm', + llll: 'ddd, Do MMM YYYY, [klo] HH.mm', + }, + calendar: { + sameDay: '[tänään] [klo] LT', + nextDay: '[huomenna] [klo] LT', + nextWeek: 'dddd [klo] LT', + lastDay: '[eilen] [klo] LT', + lastWeek: '[viime] dddd[na] [klo] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s päästä', + past: '%s sitten', + s: translate, + ss: translate, + m: translate, + mm: translate, + h: translate, + hh: translate, + d: translate, + dd: translate, + M: translate, + MM: translate, + y: translate, + yy: translate, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, }); - _this.instanceArray = []; - return _this; - } - - SubPopupMenu.prototype.componentDidMount = function componentDidMount() { - // invoke customized ref to expose component to mixin - if (this.props.manualRef) { - this.props.manualRef(this); - } - }; - - SubPopupMenu.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) { - return this.props.visible || nextProps.visible; - }; + return fi; - SubPopupMenu.prototype.componentDidUpdate = function componentDidUpdate() { - var props = this.props; - var originalActiveKey = 'activeKey' in props ? props.activeKey : props.store.getState().activeKey[getEventKey(props)]; - var activeKey = getActiveKey(props, originalActiveKey); - if (activeKey !== originalActiveKey) { - updateActiveKey(props.store, getEventKey(props), activeKey); - } - }; + }))); - // all keyboard events callbacks run from here at first + /***/ }), + /* 364 */ + /***/ (function(module, exports, __webpack_require__) { - SubPopupMenu.prototype.render = function render() { - var _this2 = this; + //! moment.js locale configuration + //! locale : Filipino [fil] + //! author : Dan Hagman : https://github.com/hagmandan + //! author : Matthew Co : https://github.com/matthewdeeco - var props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default()(this.props, []); + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - this.instanceArray = []; - var className = __WEBPACK_IMPORTED_MODULE_10_classnames___default()(props.prefixCls, props.className, props.prefixCls + '-' + props.mode); - var domProps = { - className: className, - // role could be 'select' and by default set to menu - role: props.role || 'menu' - }; - if (props.id) { - domProps.id = props.id; - } - if (props.focusable) { - domProps.tabIndex = '0'; - domProps.onKeyDown = this.onKeyDown; - } - var prefixCls = props.prefixCls, - eventKey = props.eventKey, - visible = props.visible, - level = props.level, - mode = props.mode, - overflowedIndicator = props.overflowedIndicator, - theme = props.theme; + //! moment.js locale configuration - __WEBPACK_IMPORTED_MODULE_11__util__["f" /* menuAllProps */].forEach(function (key) { - return delete props[key]; + var fil = moment.defineLocale('fil', { + months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split( + '_' + ), + monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'), + weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split( + '_' + ), + weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'), + weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'MM/D/YYYY', + LL: 'MMMM D, YYYY', + LLL: 'MMMM D, YYYY HH:mm', + LLLL: 'dddd, MMMM DD, YYYY HH:mm', + }, + calendar: { + sameDay: 'LT [ngayong araw]', + nextDay: '[Bukas ng] LT', + nextWeek: 'LT [sa susunod na] dddd', + lastDay: 'LT [kahapon]', + lastWeek: 'LT [noong nakaraang] dddd', + sameElse: 'L', + }, + relativeTime: { + future: 'sa loob ng %s', + past: '%s ang nakalipas', + s: 'ilang segundo', + ss: '%d segundo', + m: 'isang minuto', + mm: '%d minuto', + h: 'isang oras', + hh: '%d oras', + d: 'isang araw', + dd: '%d araw', + M: 'isang buwan', + MM: '%d buwan', + y: 'isang taon', + yy: '%d taon', + }, + dayOfMonthOrdinalParse: /\d{1,2}/, + ordinal: function (number) { + return number; + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, }); - // Otherwise, the propagated click event will trigger another onClick - delete props.onClick; - - return ( - // ESLint is not smart enough to know that the type of `children` was checked. - /* eslint-disable */ - __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement( - __WEBPACK_IMPORTED_MODULE_12__DOMWrap__["a" /* default */], - __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({}, props, { - prefixCls: prefixCls, - mode: mode, - tag: 'ul', - level: level, - theme: theme, - hiddenClassName: prefixCls + '-hidden', - visible: visible, - overflowedIndicator: overflowedIndicator - }, domProps), - __WEBPACK_IMPORTED_MODULE_5_react___default.a.Children.map(props.children, function (c, i) { - return _this2.renderMenuItem(c, i, eventKey || '0-menu-'); - }) - ) - /*eslint-enable */ - - ); - }; - - return SubPopupMenu; - }(__WEBPACK_IMPORTED_MODULE_5_react___default.a.Component); - SubPopupMenu.propTypes = { - onSelect: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, - onClick: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, - onDeselect: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, - onOpenChange: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, - onDestroy: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, - openTransitionName: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, - openAnimation: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object]), - openKeys: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string), - visible: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, - children: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.any, - parentMenu: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object, - eventKey: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, - store: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.shape({ - getState: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, - setState: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func - }), - - // adding in refactor - focusable: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, - multiple: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, - style: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object, - defaultActiveFirst: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, - activeKey: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, - selectedKeys: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string), - defaultSelectedKeys: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string), - defaultOpenKeys: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string), - level: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, - mode: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']), - triggerSubMenuAction: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf(['click', 'hover']), - inlineIndent: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string]), - manualRef: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, - itemIcon: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.node]), - expandIcon: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.node]) - }; - SubPopupMenu.defaultProps = { - prefixCls: 'rc-menu', - className: '', - mode: 'vertical', - level: 1, - inlineIndent: 24, - visible: true, - focusable: true, - style: {}, - manualRef: __WEBPACK_IMPORTED_MODULE_11__util__["g" /* noop */] - }; + return fil; - var _initialiseProps = function _initialiseProps() { - var _this3 = this; + }))); - this.onKeyDown = function (e, callback) { - var keyCode = e.keyCode; - var handled = void 0; - _this3.getFlatInstanceArray().forEach(function (obj) { - if (obj && obj.props.active && obj.onKeyDown) { - handled = obj.onKeyDown(e); - } - }); - if (handled) { - return 1; - } - var activeItem = null; - if (keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__["a" /* default */].UP || keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__["a" /* default */].DOWN) { - activeItem = _this3.step(keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__["a" /* default */].UP ? -1 : 1); - } - if (activeItem) { - e.preventDefault(); - updateActiveKey(_this3.props.store, getEventKey(_this3.props), activeItem.props.eventKey); - if (typeof callback === 'function') { - callback(activeItem); - } + /***/ }), + /* 365 */ + /***/ (function(module, exports, __webpack_require__) { - return 1; - } - }; + //! moment.js locale configuration + //! locale : Faroese [fo] + //! author : Ragnar Johannesen : https://github.com/ragnar123 + //! author : Kristian Sakarisson : https://github.com/sakarisson - this.onItemHover = function (e) { - var key = e.key, - hover = e.hover; + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - updateActiveKey(_this3.props.store, getEventKey(_this3.props), hover ? key : null); - }; + //! moment.js locale configuration - this.onDeselect = function (selectInfo) { - _this3.props.onDeselect(selectInfo); - }; + var fo = moment.defineLocale('fo', { + months: 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split( + '_' + ), + monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'), + weekdays: 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split( + '_' + ), + weekdaysShort: 'sun_mán_týs_mik_hós_frí_ley'.split('_'), + weekdaysMin: 'su_má_tý_mi_hó_fr_le'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D. MMMM, YYYY HH:mm', + }, + calendar: { + sameDay: '[Í dag kl.] LT', + nextDay: '[Í morgin kl.] LT', + nextWeek: 'dddd [kl.] LT', + lastDay: '[Í gjár kl.] LT', + lastWeek: '[síðstu] dddd [kl] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'um %s', + past: '%s síðani', + s: 'fá sekund', + ss: '%d sekundir', + m: 'ein minuttur', + mm: '%d minuttir', + h: 'ein tími', + hh: '%d tímar', + d: 'ein dagur', + dd: '%d dagar', + M: 'ein mánaður', + MM: '%d mánaðir', + y: 'eitt ár', + yy: '%d ár', + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - this.onSelect = function (selectInfo) { - _this3.props.onSelect(selectInfo); - }; + return fo; - this.onClick = function (e) { - _this3.props.onClick(e); - }; + }))); - this.onOpenChange = function (e) { - _this3.props.onOpenChange(e); - }; - this.onDestroy = function (key) { - /* istanbul ignore next */ - _this3.props.onDestroy(key); - }; + /***/ }), + /* 366 */ + /***/ (function(module, exports, __webpack_require__) { - this.getFlatInstanceArray = function () { - return _this3.instanceArray; - }; + //! moment.js locale configuration + //! locale : French [fr] + //! author : John Fischer : https://github.com/jfroffice - this.getOpenTransitionName = function () { - return _this3.props.openTransitionName; - }; + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - this.step = function (direction) { - var children = _this3.getFlatInstanceArray(); - var activeKey = _this3.props.store.getState().activeKey[getEventKey(_this3.props)]; - var len = children.length; - if (!len) { - return null; - } - if (direction < 0) { - children = children.concat().reverse(); - } - // find current activeIndex - var activeIndex = -1; - children.every(function (c, ci) { - if (c && c.props.eventKey === activeKey) { - activeIndex = ci; - return false; - } - return true; - }); - if (!_this3.props.defaultActiveFirst && activeIndex !== -1 && allDisabled(children.slice(activeIndex, len - 1))) { - return undefined; - } - var start = (activeIndex + 1) % len; - var i = start; + //! moment.js locale configuration - do { - var child = children[i]; - if (!child || child.props.disabled) { - i = (i + 1) % len; - } else { - return child; - } - } while (i !== start); + var fr = moment.defineLocale('fr', { + months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split( + '_' + ), + monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), + weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), + weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Aujourd’hui à] LT', + nextDay: '[Demain à] LT', + nextWeek: 'dddd [à] LT', + lastDay: '[Hier à] LT', + lastWeek: 'dddd [dernier à] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'dans %s', + past: 'il y a %s', + s: 'quelques secondes', + ss: '%d secondes', + m: 'une minute', + mm: '%d minutes', + h: 'une heure', + hh: '%d heures', + d: 'un jour', + dd: '%d jours', + M: 'un mois', + MM: '%d mois', + y: 'un an', + yy: '%d ans', + }, + dayOfMonthOrdinalParse: /\d{1,2}(er|)/, + ordinal: function (number, period) { + switch (period) { + // TODO: Return 'e' when day of month > 1. Move this case inside + // block for masculine words below. + // See https://github.com/moment/moment/issues/3375 + case 'D': + return number + (number === 1 ? 'er' : ''); - return null; - }; + // Words with masculine grammatical gender: mois, trimestre, jour + default: + case 'M': + case 'Q': + case 'DDD': + case 'd': + return number + (number === 1 ? 'er' : 'e'); - this.renderCommonMenuItem = function (child, i, extraProps) { - var state = _this3.props.store.getState(); - var props = _this3.props; - var key = Object(__WEBPACK_IMPORTED_MODULE_11__util__["a" /* getKeyFromChildrenIndex */])(child, props.eventKey, i); - var childProps = child.props; - var isActive = key === state.activeKey; - var newChildProps = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({ - mode: childProps.mode || props.mode, - level: props.level, - inlineIndent: props.inlineIndent, - renderMenuItem: _this3.renderMenuItem, - rootPrefixCls: props.prefixCls, - index: i, - parentMenu: props.parentMenu, - // customized ref function, need to be invoked manually in child's componentDidMount - manualRef: childProps.disabled ? undefined : Object(__WEBPACK_IMPORTED_MODULE_9_rc_util_es_createChainedFunction__["a" /* default */])(child.ref, saveRef.bind(_this3)), - eventKey: key, - active: !childProps.disabled && isActive, - multiple: props.multiple, - onClick: function onClick(e) { - (childProps.onClick || __WEBPACK_IMPORTED_MODULE_11__util__["g" /* noop */])(e); - _this3.onClick(e); - }, - onItemHover: _this3.onItemHover, - openTransitionName: _this3.getOpenTransitionName(), - openAnimation: props.openAnimation, - subMenuOpenDelay: props.subMenuOpenDelay, - subMenuCloseDelay: props.subMenuCloseDelay, - forceSubMenuRender: props.forceSubMenuRender, - onOpenChange: _this3.onOpenChange, - onDeselect: _this3.onDeselect, - onSelect: _this3.onSelect, - builtinPlacements: props.builtinPlacements, - itemIcon: childProps.itemIcon || _this3.props.itemIcon, - expandIcon: childProps.expandIcon || _this3.props.expandIcon - }, extraProps); - if (props.mode === 'inline') { - newChildProps.triggerSubMenuAction = 'click'; - } - return __WEBPACK_IMPORTED_MODULE_5_react___default.a.cloneElement(child, newChildProps); - }; + // Words with feminine grammatical gender: semaine + case 'w': + case 'W': + return number + (number === 1 ? 're' : 'e'); + } + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - this.renderMenuItem = function (c, i, subMenuKey) { - /* istanbul ignore if */ - if (!c) { - return null; - } - var state = _this3.props.store.getState(); - var extraProps = { - openKeys: state.openKeys, - selectedKeys: state.selectedKeys, - triggerSubMenuAction: _this3.props.triggerSubMenuAction, - subMenuKey: subMenuKey - }; - return _this3.renderCommonMenuItem(c, i, extraProps); - }; - }; + return fr; - var connected = Object(__WEBPACK_IMPORTED_MODULE_7_mini_store__["connect"])()(SubPopupMenu); + }))); - /* harmony default export */ __webpack_exports__["a"] = (connected); /***/ }), - /* 524 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { - - "use strict"; - /* unused harmony export SubMenu */ - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__ = __webpack_require__(7); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(9); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_possibleConstructorReturn__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_inherits__ = __webpack_require__(10); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_inherits__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends__ = __webpack_require__(8); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react__ = __webpack_require__(0); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react_dom__ = __webpack_require__(3); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react_dom__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types__ = __webpack_require__(1); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_prop_types__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_rc_trigger__ = __webpack_require__(73); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__ = __webpack_require__(43); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_classnames__ = __webpack_require__(2); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_classnames__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_mini_store__ = __webpack_require__(21); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_mini_store___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_mini_store__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__SubPopupMenu__ = __webpack_require__(523); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__placements__ = __webpack_require__(1618); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_rc_animate__ = __webpack_require__(96); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__util__ = __webpack_require__(64); + /* 367 */ + /***/ (function(module, exports, __webpack_require__) { + //! moment.js locale configuration + //! locale : French (Canada) [fr-ca] + //! author : Jonathan Abourbih : https://github.com/jonbca + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; + //! moment.js locale configuration + var frCa = moment.defineLocale('fr-ca', { + months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split( + '_' + ), + monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), + weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), + weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY-MM-DD', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Aujourd’hui à] LT', + nextDay: '[Demain à] LT', + nextWeek: 'dddd [à] LT', + lastDay: '[Hier à] LT', + lastWeek: 'dddd [dernier à] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'dans %s', + past: 'il y a %s', + s: 'quelques secondes', + ss: '%d secondes', + m: 'une minute', + mm: '%d minutes', + h: 'une heure', + hh: '%d heures', + d: 'un jour', + dd: '%d jours', + M: 'un mois', + MM: '%d mois', + y: 'un an', + yy: '%d ans', + }, + dayOfMonthOrdinalParse: /\d{1,2}(er|e)/, + ordinal: function (number, period) { + switch (period) { + // Words with masculine grammatical gender: mois, trimestre, jour + default: + case 'M': + case 'Q': + case 'D': + case 'DDD': + case 'd': + return number + (number === 1 ? 'er' : 'e'); + // Words with feminine grammatical gender: semaine + case 'w': + case 'W': + return number + (number === 1 ? 're' : 'e'); + } + }, + }); + return frCa; + }))); + /***/ }), + /* 368 */ + /***/ (function(module, exports, __webpack_require__) { + //! moment.js locale configuration + //! locale : French (Switzerland) [fr-ch] + //! author : Gaspard Bucher : https://github.com/gaspard + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; + //! moment.js locale configuration + var frCh = moment.defineLocale('fr-ch', { + months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split( + '_' + ), + monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), + weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), + weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Aujourd’hui à] LT', + nextDay: '[Demain à] LT', + nextWeek: 'dddd [à] LT', + lastDay: '[Hier à] LT', + lastWeek: 'dddd [dernier à] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'dans %s', + past: 'il y a %s', + s: 'quelques secondes', + ss: '%d secondes', + m: 'une minute', + mm: '%d minutes', + h: 'une heure', + hh: '%d heures', + d: 'un jour', + dd: '%d jours', + M: 'un mois', + MM: '%d mois', + y: 'un an', + yy: '%d ans', + }, + dayOfMonthOrdinalParse: /\d{1,2}(er|e)/, + ordinal: function (number, period) { + switch (period) { + // Words with masculine grammatical gender: mois, trimestre, jour + default: + case 'M': + case 'Q': + case 'D': + case 'DDD': + case 'd': + return number + (number === 1 ? 'er' : 'e'); + // Words with feminine grammatical gender: semaine + case 'w': + case 'W': + return number + (number === 1 ? 're' : 'e'); + } + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); + return frCh; - var guid = 0; + }))); - var popupPlacementMap = { - horizontal: 'bottomLeft', - vertical: 'rightTop', - 'vertical-left': 'rightTop', - 'vertical-right': 'leftTop' - }; - var updateDefaultActiveFirst = function updateDefaultActiveFirst(store, eventKey, defaultActiveFirst) { - var _extends2; + /***/ }), + /* 369 */ + /***/ (function(module, exports, __webpack_require__) { - var menuId = Object(__WEBPACK_IMPORTED_MODULE_14__util__["b" /* getMenuIdFromSubMenuEventKey */])(eventKey); - var state = store.getState(); - store.setState({ - defaultActiveFirst: __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, state.defaultActiveFirst, (_extends2 = {}, _extends2[menuId] = defaultActiveFirst, _extends2)) - }); - }; + //! moment.js locale configuration + //! locale : Frisian [fy] + //! author : Robin van der Vliet : https://github.com/robin0van0der0v - var SubMenu = function (_React$Component) { - __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_inherits___default()(SubMenu, _React$Component); + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function SubMenu(props) { - __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default()(this, SubMenu); + //! moment.js locale configuration - var _this = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.call(this, props)); + var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split( + '_' + ), + monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split( + '_' + ); - _initialiseProps.call(_this); + var fy = moment.defineLocale('fy', { + months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split( + '_' + ), + monthsShort: function (m, format) { + if (!m) { + return monthsShortWithDots; + } else if (/-MMM-/.test(format)) { + return monthsShortWithoutDots[m.month()]; + } else { + return monthsShortWithDots[m.month()]; + } + }, + monthsParseExact: true, + weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split( + '_' + ), + weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'), + weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD-MM-YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[hjoed om] LT', + nextDay: '[moarn om] LT', + nextWeek: 'dddd [om] LT', + lastDay: '[juster om] LT', + lastWeek: '[ôfrûne] dddd [om] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'oer %s', + past: '%s lyn', + s: 'in pear sekonden', + ss: '%d sekonden', + m: 'ien minút', + mm: '%d minuten', + h: 'ien oere', + hh: '%d oeren', + d: 'ien dei', + dd: '%d dagen', + M: 'ien moanne', + MM: '%d moannen', + y: 'ien jier', + yy: '%d jierren', + }, + dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, + ordinal: function (number) { + return ( + number + + (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de') + ); + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - var store = props.store; - var eventKey = props.eventKey; - var defaultActiveFirst = store.getState().defaultActiveFirst; + return fy; - _this.isRootMenu = false; + }))); - var value = false; - if (defaultActiveFirst) { - value = defaultActiveFirst[eventKey]; - } + /***/ }), + /* 370 */ + /***/ (function(module, exports, __webpack_require__) { - updateDefaultActiveFirst(store, eventKey, value); - return _this; - } + //! moment.js locale configuration + //! locale : Irish or Irish Gaelic [ga] + //! author : André Silva : https://github.com/askpt - SubMenu.prototype.componentDidMount = function componentDidMount() { - this.componentDidUpdate(); - }; + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - SubMenu.prototype.componentDidUpdate = function componentDidUpdate() { - var _this2 = this; + //! moment.js locale configuration - var _props = this.props, - mode = _props.mode, - parentMenu = _props.parentMenu, - manualRef = _props.manualRef; + var months = [ + 'Eanáir', + 'Feabhra', + 'Márta', + 'Aibreán', + 'Bealtaine', + 'Meitheamh', + 'Iúil', + 'Lúnasa', + 'Meán Fómhair', + 'Deireadh Fómhair', + 'Samhain', + 'Nollaig', + ], + monthsShort = [ + 'Ean', + 'Feabh', + 'Márt', + 'Aib', + 'Beal', + 'Meith', + 'Iúil', + 'Lún', + 'M.F.', + 'D.F.', + 'Samh', + 'Noll', + ], + weekdays = [ + 'Dé Domhnaigh', + 'Dé Luain', + 'Dé Máirt', + 'Dé Céadaoin', + 'Déardaoin', + 'Dé hAoine', + 'Dé Sathairn', + ], + weekdaysShort = ['Domh', 'Luan', 'Máirt', 'Céad', 'Déar', 'Aoine', 'Sath'], + weekdaysMin = ['Do', 'Lu', 'Má', 'Cé', 'Dé', 'A', 'Sa']; - // invoke customized ref to expose component to mixin + var ga = moment.defineLocale('ga', { + months: months, + monthsShort: monthsShort, + monthsParseExact: true, + weekdays: weekdays, + weekdaysShort: weekdaysShort, + weekdaysMin: weekdaysMin, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Inniu ag] LT', + nextDay: '[Amárach ag] LT', + nextWeek: 'dddd [ag] LT', + lastDay: '[Inné ag] LT', + lastWeek: 'dddd [seo caite] [ag] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'i %s', + past: '%s ó shin', + s: 'cúpla soicind', + ss: '%d soicind', + m: 'nóiméad', + mm: '%d nóiméad', + h: 'uair an chloig', + hh: '%d uair an chloig', + d: 'lá', + dd: '%d lá', + M: 'mí', + MM: '%d míonna', + y: 'bliain', + yy: '%d bliain', + }, + dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/, + ordinal: function (number) { + var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh'; + return number + output; + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - if (manualRef) { - manualRef(this); - } + return ga; - if (mode !== 'horizontal' || !parentMenu.isRootMenu || !this.props.isOpen) { - return; - } + }))); - this.minWidthTimeout = setTimeout(function () { - return _this2.adjustWidth(); - }, 0); - }; - SubMenu.prototype.componentWillUnmount = function componentWillUnmount() { - var _props2 = this.props, - onDestroy = _props2.onDestroy, - eventKey = _props2.eventKey; + /***/ }), + /* 371 */ + /***/ (function(module, exports, __webpack_require__) { - if (onDestroy) { - onDestroy(eventKey); - } + //! moment.js locale configuration + //! locale : Scottish Gaelic [gd] + //! author : Jon Ashdown : https://github.com/jonashdown - /* istanbul ignore if */ - if (this.minWidthTimeout) { - clearTimeout(this.minWidthTimeout); - } + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - /* istanbul ignore if */ - if (this.mouseenterTimeout) { - clearTimeout(this.mouseenterTimeout); - } - }; + //! moment.js locale configuration - SubMenu.prototype.renderChildren = function renderChildren(children) { - var props = this.props; - var baseProps = { - mode: props.mode === 'horizontal' ? 'vertical' : props.mode, - visible: this.props.isOpen, - level: props.level + 1, - inlineIndent: props.inlineIndent, - focusable: false, - onClick: this.onSubMenuClick, - onSelect: this.onSelect, - onDeselect: this.onDeselect, - onDestroy: this.onDestroy, - selectedKeys: props.selectedKeys, - eventKey: props.eventKey + '-menu-', - openKeys: props.openKeys, - openTransitionName: props.openTransitionName, - openAnimation: props.openAnimation, - onOpenChange: this.onOpenChange, - subMenuOpenDelay: props.subMenuOpenDelay, - parentMenu: this, - subMenuCloseDelay: props.subMenuCloseDelay, - forceSubMenuRender: props.forceSubMenuRender, - triggerSubMenuAction: props.triggerSubMenuAction, - builtinPlacements: props.builtinPlacements, - defaultActiveFirst: props.store.getState().defaultActiveFirst[Object(__WEBPACK_IMPORTED_MODULE_14__util__["b" /* getMenuIdFromSubMenuEventKey */])(props.eventKey)], - multiple: props.multiple, - prefixCls: props.rootPrefixCls, - id: this._menuId, - manualRef: this.saveMenuInstance, - itemIcon: props.itemIcon, - expandIcon: props.expandIcon - }; + var months = [ + 'Am Faoilleach', + 'An Gearran', + 'Am Màrt', + 'An Giblean', + 'An Cèitean', + 'An t-Ògmhios', + 'An t-Iuchar', + 'An Lùnastal', + 'An t-Sultain', + 'An Dàmhair', + 'An t-Samhain', + 'An Dùbhlachd', + ], + monthsShort = [ + 'Faoi', + 'Gear', + 'Màrt', + 'Gibl', + 'Cèit', + 'Ògmh', + 'Iuch', + 'Lùn', + 'Sult', + 'Dàmh', + 'Samh', + 'Dùbh', + ], + weekdays = [ + 'Didòmhnaich', + 'Diluain', + 'Dimàirt', + 'Diciadain', + 'Diardaoin', + 'Dihaoine', + 'Disathairne', + ], + weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'], + weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa']; - var haveRendered = this.haveRendered; - this.haveRendered = true; + var gd = moment.defineLocale('gd', { + months: months, + monthsShort: monthsShort, + monthsParseExact: true, + weekdays: weekdays, + weekdaysShort: weekdaysShort, + weekdaysMin: weekdaysMin, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[An-diugh aig] LT', + nextDay: '[A-màireach aig] LT', + nextWeek: 'dddd [aig] LT', + lastDay: '[An-dè aig] LT', + lastWeek: 'dddd [seo chaidh] [aig] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'ann an %s', + past: 'bho chionn %s', + s: 'beagan diogan', + ss: '%d diogan', + m: 'mionaid', + mm: '%d mionaidean', + h: 'uair', + hh: '%d uairean', + d: 'latha', + dd: '%d latha', + M: 'mìos', + MM: '%d mìosan', + y: 'bliadhna', + yy: '%d bliadhna', + }, + dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/, + ordinal: function (number) { + var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh'; + return number + output; + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - this.haveOpened = this.haveOpened || baseProps.visible || baseProps.forceSubMenuRender; - // never rendered not planning to, don't render - if (!this.haveOpened) { - return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement('div', null); - } + return gd; - // don't show transition on first rendering (no animation for opened menu) - // show appear transition if it's not visible (not sure why) - // show appear transition if it's not inline mode - var transitionAppear = haveRendered || !baseProps.visible || !baseProps.mode === 'inline'; + }))); - baseProps.className = ' ' + baseProps.prefixCls + '-sub'; - var animProps = {}; - if (baseProps.openTransitionName) { - animProps.transitionName = baseProps.openTransitionName; - } else if (typeof baseProps.openAnimation === 'object') { - animProps.animation = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, baseProps.openAnimation); - if (!transitionAppear) { - delete animProps.animation.appear; - } - } + /***/ }), + /* 372 */ + /***/ (function(module, exports, __webpack_require__) { - return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement( - __WEBPACK_IMPORTED_MODULE_13_rc_animate__["default"], - __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, animProps, { - showProp: 'visible', - component: '', - transitionAppear: transitionAppear - }), - __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement( - __WEBPACK_IMPORTED_MODULE_11__SubPopupMenu__["a" /* default */], - __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, baseProps, { id: this._menuId }), - children - ) - ); - }; + //! moment.js locale configuration + //! locale : Galician [gl] + //! author : Juan G. Hurtado : https://github.com/juanghurtado - SubMenu.prototype.render = function render() { - var _classNames; + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var props = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, this.props); - var isOpen = props.isOpen; - var prefixCls = this.getPrefixCls(); - var isInlineMode = props.mode === 'inline'; - var className = __WEBPACK_IMPORTED_MODULE_9_classnames___default()(prefixCls, prefixCls + '-' + props.mode, (_classNames = {}, _classNames[props.className] = !!props.className, _classNames[this.getOpenClassName()] = isOpen, _classNames[this.getActiveClassName()] = props.active || isOpen && !isInlineMode, _classNames[this.getDisabledClassName()] = props.disabled, _classNames[this.getSelectedClassName()] = this.isChildrenSelected(), _classNames)); + //! moment.js locale configuration - if (!this._menuId) { - if (props.eventKey) { - this._menuId = props.eventKey + '$Menu'; - } else { - this._menuId = '$__$' + ++guid + '$Menu'; - } - } + var gl = moment.defineLocale('gl', { + months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split( + '_' + ), + monthsShort: 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'), + weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'), + weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D [de] MMMM [de] YYYY', + LLL: 'D [de] MMMM [de] YYYY H:mm', + LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm', + }, + calendar: { + sameDay: function () { + return '[hoxe ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT'; + }, + nextDay: function () { + return '[mañá ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT'; + }, + nextWeek: function () { + return 'dddd [' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT'; + }, + lastDay: function () { + return '[onte ' + (this.hours() !== 1 ? 'á' : 'a') + '] LT'; + }, + lastWeek: function () { + return ( + '[o] dddd [pasado ' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT' + ); + }, + sameElse: 'L', + }, + relativeTime: { + future: function (str) { + if (str.indexOf('un') === 0) { + return 'n' + str; + } + return 'en ' + str; + }, + past: 'hai %s', + s: 'uns segundos', + ss: '%d segundos', + m: 'un minuto', + mm: '%d minutos', + h: 'unha hora', + hh: '%d horas', + d: 'un día', + dd: '%d días', + M: 'un mes', + MM: '%d meses', + y: 'un ano', + yy: '%d anos', + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - var mouseEvents = {}; - var titleClickEvents = {}; - var titleMouseEvents = {}; - if (!props.disabled) { - mouseEvents = { - onMouseLeave: this.onMouseLeave, - onMouseEnter: this.onMouseEnter - }; + return gl; - // only works in title, not outer li - titleClickEvents = { - onClick: this.onTitleClick - }; - titleMouseEvents = { - onMouseEnter: this.onTitleMouseEnter, - onMouseLeave: this.onTitleMouseLeave - }; - } + }))); - var style = {}; - if (isInlineMode) { - style.paddingLeft = props.inlineIndent * props.level; - } - var ariaOwns = {}; - // only set aria-owns when menu is open - // otherwise it would be an invalid aria-owns value - // since corresponding node cannot be found - if (this.props.isOpen) { - ariaOwns = { - 'aria-owns': this._menuId - }; - } + /***/ }), + /* 373 */ + /***/ (function(module, exports, __webpack_require__) { - // expand custom icon should NOT be displayed in menu with horizontal mode. - var icon = null; - if (props.mode !== 'horizontal') { - icon = this.props.expandIcon; // ReactNode - if (typeof this.props.expandIcon === 'function') { - icon = __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(this.props.expandIcon, __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, this.props)); - } - } + //! moment.js locale configuration + //! locale : Konkani Devanagari script [gom-deva] + //! author : The Discoverer : https://github.com/WikiDiscoverer - var title = __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement( - 'div', - __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({ - ref: this.saveSubMenuTitle, - style: style, - className: prefixCls + '-title' - }, titleMouseEvents, titleClickEvents, { - 'aria-expanded': isOpen - }, ariaOwns, { - 'aria-haspopup': 'true', - title: typeof props.title === 'string' ? props.title : undefined - }), - props.title, - icon || __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement('i', { className: prefixCls + '-arrow' }) - ); - var children = this.renderChildren(props.children); + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var getPopupContainer = props.parentMenu.isRootMenu ? props.parentMenu.props.getPopupContainer : function (triggerNode) { - return triggerNode.parentNode; - }; - var popupPlacement = popupPlacementMap[props.mode]; - var popupAlign = props.popupOffset ? { offset: props.popupOffset } : {}; - var popupClassName = props.mode === 'inline' ? '' : props.popupClassName; - var disabled = props.disabled, - triggerSubMenuAction = props.triggerSubMenuAction, - subMenuOpenDelay = props.subMenuOpenDelay, - forceSubMenuRender = props.forceSubMenuRender, - subMenuCloseDelay = props.subMenuCloseDelay, - builtinPlacements = props.builtinPlacements; + //! moment.js locale configuration - __WEBPACK_IMPORTED_MODULE_14__util__["f" /* menuAllProps */].forEach(function (key) { - return delete props[key]; - }); - // Set onClick to null, to ignore propagated onClick event - delete props.onClick; + function processRelativeTime(number, withoutSuffix, key, isFuture) { + var format = { + s: ['थोडया सॅकंडांनी', 'थोडे सॅकंड'], + ss: [number + ' सॅकंडांनी', number + ' सॅकंड'], + m: ['एका मिणटान', 'एक मिनूट'], + mm: [number + ' मिणटांनी', number + ' मिणटां'], + h: ['एका वरान', 'एक वर'], + hh: [number + ' वरांनी', number + ' वरां'], + d: ['एका दिसान', 'एक दीस'], + dd: [number + ' दिसांनी', number + ' दीस'], + M: ['एका म्हयन्यान', 'एक म्हयनो'], + MM: [number + ' म्हयन्यानी', number + ' म्हयने'], + y: ['एका वर्सान', 'एक वर्स'], + yy: [number + ' वर्सांनी', number + ' वर्सां'], + }; + return isFuture ? format[key][0] : format[key][1]; + } - return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement( - 'li', - __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, props, mouseEvents, { - className: className, - role: 'menuitem' - }), - isInlineMode && title, - isInlineMode && children, - !isInlineMode && __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement( - __WEBPACK_IMPORTED_MODULE_7_rc_trigger__["default"], - { - prefixCls: prefixCls, - popupClassName: prefixCls + '-popup ' + popupClassName, - getPopupContainer: getPopupContainer, - builtinPlacements: __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, __WEBPACK_IMPORTED_MODULE_12__placements__["a" /* default */], builtinPlacements), - popupPlacement: popupPlacement, - popupVisible: isOpen, - popupAlign: popupAlign, - popup: children, - action: disabled ? [] : [triggerSubMenuAction], - mouseEnterDelay: subMenuOpenDelay, - mouseLeaveDelay: subMenuCloseDelay, - onPopupVisibleChange: this.onPopupVisibleChange, - forceRender: forceSubMenuRender + var gomDeva = moment.defineLocale('gom-deva', { + months: { + standalone: 'जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split( + '_' + ), + format: 'जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या'.split( + '_' + ), + isFormat: /MMMM(\s)+D[oD]?/, + }, + monthsShort: 'जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार'.split('_'), + weekdaysShort: 'आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.'.split('_'), + weekdaysMin: 'आ_सो_मं_बु_ब्रे_सु_शे'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'A h:mm [वाजतां]', + LTS: 'A h:mm:ss [वाजतां]', + L: 'DD-MM-YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY A h:mm [वाजतां]', + LLLL: 'dddd, MMMM Do, YYYY, A h:mm [वाजतां]', + llll: 'ddd, D MMM YYYY, A h:mm [वाजतां]', + }, + calendar: { + sameDay: '[आयज] LT', + nextDay: '[फाल्यां] LT', + nextWeek: '[फुडलो] dddd[,] LT', + lastDay: '[काल] LT', + lastWeek: '[फाटलो] dddd[,] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s', + past: '%s आदीं', + s: processRelativeTime, + ss: processRelativeTime, + m: processRelativeTime, + mm: processRelativeTime, + h: processRelativeTime, + hh: processRelativeTime, + d: processRelativeTime, + dd: processRelativeTime, + M: processRelativeTime, + MM: processRelativeTime, + y: processRelativeTime, + yy: processRelativeTime, + }, + dayOfMonthOrdinalParse: /\d{1,2}(वेर)/, + ordinal: function (number, period) { + switch (period) { + // the ordinal 'वेर' only applies to day of the month + case 'D': + return number + 'वेर'; + default: + case 'M': + case 'Q': + case 'DDD': + case 'd': + case 'w': + case 'W': + return number; + } + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + meridiemParse: /राती|सकाळीं|दनपारां|सांजे/, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === 'राती') { + return hour < 4 ? hour : hour + 12; + } else if (meridiem === 'सकाळीं') { + return hour; + } else if (meridiem === 'दनपारां') { + return hour > 12 ? hour : hour + 12; + } else if (meridiem === 'सांजे') { + return hour + 12; + } + }, + meridiem: function (hour, minute, isLower) { + if (hour < 4) { + return 'राती'; + } else if (hour < 12) { + return 'सकाळीं'; + } else if (hour < 16) { + return 'दनपारां'; + } else if (hour < 20) { + return 'सांजे'; + } else { + return 'राती'; + } }, - title - ) - ); - }; + }); - return SubMenu; - }(__WEBPACK_IMPORTED_MODULE_4_react___default.a.Component); + return gomDeva; - SubMenu.propTypes = { - parentMenu: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object, - title: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.node, - children: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.any, - selectedKeys: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.array, - openKeys: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.array, - onClick: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, - onOpenChange: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, - rootPrefixCls: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, - eventKey: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, - multiple: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, - active: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, // TODO: remove - onItemHover: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, - onSelect: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, - triggerSubMenuAction: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, - onDeselect: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, - onDestroy: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, - onMouseEnter: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, - onMouseLeave: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, - onTitleMouseEnter: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, - onTitleMouseLeave: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, - onTitleClick: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, - popupOffset: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.array, - isOpen: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, - store: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object, - mode: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']), - manualRef: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, - itemIcon: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.node]), - expandIcon: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.node]) - }; - SubMenu.defaultProps = { - onMouseEnter: __WEBPACK_IMPORTED_MODULE_14__util__["g" /* noop */], - onMouseLeave: __WEBPACK_IMPORTED_MODULE_14__util__["g" /* noop */], - onTitleMouseEnter: __WEBPACK_IMPORTED_MODULE_14__util__["g" /* noop */], - onTitleMouseLeave: __WEBPACK_IMPORTED_MODULE_14__util__["g" /* noop */], - onTitleClick: __WEBPACK_IMPORTED_MODULE_14__util__["g" /* noop */], - manualRef: __WEBPACK_IMPORTED_MODULE_14__util__["g" /* noop */], - mode: 'vertical', - title: '' - }; + }))); - var _initialiseProps = function _initialiseProps() { - var _this3 = this; - this.onDestroy = function (key) { - _this3.props.onDestroy(key); - }; + /***/ }), + /* 374 */ + /***/ (function(module, exports, __webpack_require__) { - this.onKeyDown = function (e) { - var keyCode = e.keyCode; - var menu = _this3.menuInstance; - var _props3 = _this3.props, - isOpen = _props3.isOpen, - store = _props3.store; + //! moment.js locale configuration + //! locale : Konkani Latin script [gom-latn] + //! author : The Discoverer : https://github.com/WikiDiscoverer + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - if (keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__["a" /* default */].ENTER) { - _this3.onTitleClick(e); - updateDefaultActiveFirst(store, _this3.props.eventKey, true); - return true; - } + //! moment.js locale configuration - if (keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__["a" /* default */].RIGHT) { - if (isOpen) { - menu.onKeyDown(e); - } else { - _this3.triggerOpenChange(true); - // need to update current menu's defaultActiveFirst value - updateDefaultActiveFirst(store, _this3.props.eventKey, true); - } - return true; - } - if (keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__["a" /* default */].LEFT) { - var handled = void 0; - if (isOpen) { - handled = menu.onKeyDown(e); - } else { - return undefined; - } - if (!handled) { - _this3.triggerOpenChange(false); - handled = true; - } - return handled; + function processRelativeTime(number, withoutSuffix, key, isFuture) { + var format = { + s: ['thoddea sekondamni', 'thodde sekond'], + ss: [number + ' sekondamni', number + ' sekond'], + m: ['eka mintan', 'ek minut'], + mm: [number + ' mintamni', number + ' mintam'], + h: ['eka voran', 'ek vor'], + hh: [number + ' voramni', number + ' voram'], + d: ['eka disan', 'ek dis'], + dd: [number + ' disamni', number + ' dis'], + M: ['eka mhoinean', 'ek mhoino'], + MM: [number + ' mhoineamni', number + ' mhoine'], + y: ['eka vorsan', 'ek voros'], + yy: [number + ' vorsamni', number + ' vorsam'], + }; + return isFuture ? format[key][0] : format[key][1]; } - if (isOpen && (keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__["a" /* default */].UP || keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__["a" /* default */].DOWN)) { - return menu.onKeyDown(e); - } - }; + var gomLatn = moment.defineLocale('gom-latn', { + months: { + standalone: 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split( + '_' + ), + format: 'Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea'.split( + '_' + ), + isFormat: /MMMM(\s)+D[oD]?/, + }, + monthsShort: 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split( + '_' + ), + monthsParseExact: true, + weekdays: "Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split('_'), + weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'), + weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'A h:mm [vazta]', + LTS: 'A h:mm:ss [vazta]', + L: 'DD-MM-YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY A h:mm [vazta]', + LLLL: 'dddd, MMMM Do, YYYY, A h:mm [vazta]', + llll: 'ddd, D MMM YYYY, A h:mm [vazta]', + }, + calendar: { + sameDay: '[Aiz] LT', + nextDay: '[Faleam] LT', + nextWeek: '[Fuddlo] dddd[,] LT', + lastDay: '[Kal] LT', + lastWeek: '[Fattlo] dddd[,] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s', + past: '%s adim', + s: processRelativeTime, + ss: processRelativeTime, + m: processRelativeTime, + mm: processRelativeTime, + h: processRelativeTime, + hh: processRelativeTime, + d: processRelativeTime, + dd: processRelativeTime, + M: processRelativeTime, + MM: processRelativeTime, + y: processRelativeTime, + yy: processRelativeTime, + }, + dayOfMonthOrdinalParse: /\d{1,2}(er)/, + ordinal: function (number, period) { + switch (period) { + // the ordinal 'er' only applies to day of the month + case 'D': + return number + 'er'; + default: + case 'M': + case 'Q': + case 'DDD': + case 'd': + case 'w': + case 'W': + return number; + } + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + meridiemParse: /rati|sokallim|donparam|sanje/, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === 'rati') { + return hour < 4 ? hour : hour + 12; + } else if (meridiem === 'sokallim') { + return hour; + } else if (meridiem === 'donparam') { + return hour > 12 ? hour : hour + 12; + } else if (meridiem === 'sanje') { + return hour + 12; + } + }, + meridiem: function (hour, minute, isLower) { + if (hour < 4) { + return 'rati'; + } else if (hour < 12) { + return 'sokallim'; + } else if (hour < 16) { + return 'donparam'; + } else if (hour < 20) { + return 'sanje'; + } else { + return 'rati'; + } + }, + }); - this.onOpenChange = function (e) { - _this3.props.onOpenChange(e); - }; + return gomLatn; - this.onPopupVisibleChange = function (visible) { - _this3.triggerOpenChange(visible, visible ? 'mouseenter' : 'mouseleave'); - }; + }))); - this.onMouseEnter = function (e) { - var _props4 = _this3.props, - key = _props4.eventKey, - onMouseEnter = _props4.onMouseEnter, - store = _props4.store; - updateDefaultActiveFirst(store, _this3.props.eventKey, false); - onMouseEnter({ - key: key, - domEvent: e - }); - }; + /***/ }), + /* 375 */ + /***/ (function(module, exports, __webpack_require__) { - this.onMouseLeave = function (e) { - var _props5 = _this3.props, - parentMenu = _props5.parentMenu, - eventKey = _props5.eventKey, - onMouseLeave = _props5.onMouseLeave; + //! moment.js locale configuration + //! locale : Gujarati [gu] + //! author : Kaushik Thanki : https://github.com/Kaushik1987 - parentMenu.subMenuInstance = _this3; - onMouseLeave({ - key: eventKey, - domEvent: e - }); - }; + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - this.onTitleMouseEnter = function (domEvent) { - var _props6 = _this3.props, - key = _props6.eventKey, - onItemHover = _props6.onItemHover, - onTitleMouseEnter = _props6.onTitleMouseEnter; + //! moment.js locale configuration - onItemHover({ - key: key, - hover: true - }); - onTitleMouseEnter({ - key: key, - domEvent: domEvent + var symbolMap = { + '1': '૧', + '2': '૨', + '3': '૩', + '4': '૪', + '5': '૫', + '6': '૬', + '7': '૭', + '8': '૮', + '9': '૯', + '0': '૦', + }, + numberMap = { + '૧': '1', + '૨': '2', + '૩': '3', + '૪': '4', + '૫': '5', + '૬': '6', + '૭': '7', + '૮': '8', + '૯': '9', + '૦': '0', + }; + + var gu = moment.defineLocale('gu', { + months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split( + '_' + ), + monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split( + '_' + ), + weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'), + weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'), + longDateFormat: { + LT: 'A h:mm વાગ્યે', + LTS: 'A h:mm:ss વાગ્યે', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm વાગ્યે', + LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે', + }, + calendar: { + sameDay: '[આજ] LT', + nextDay: '[કાલે] LT', + nextWeek: 'dddd, LT', + lastDay: '[ગઇકાલે] LT', + lastWeek: '[પાછલા] dddd, LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s મા', + past: '%s પેહલા', + s: 'અમુક પળો', + ss: '%d સેકંડ', + m: 'એક મિનિટ', + mm: '%d મિનિટ', + h: 'એક કલાક', + hh: '%d કલાક', + d: 'એક દિવસ', + dd: '%d દિવસ', + M: 'એક મહિનો', + MM: '%d મહિનો', + y: 'એક વર્ષ', + yy: '%d વર્ષ', + }, + preparse: function (string) { + return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) { + return numberMap[match]; + }); + }, + postformat: function (string) { + return string.replace(/\d/g, function (match) { + return symbolMap[match]; + }); + }, + // Gujarati notation for meridiems are quite fuzzy in practice. While there exists + // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati. + meridiemParse: /રાત|બપોર|સવાર|સાંજ/, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === 'રાત') { + return hour < 4 ? hour : hour + 12; + } else if (meridiem === 'સવાર') { + return hour; + } else if (meridiem === 'બપોર') { + return hour >= 10 ? hour : hour + 12; + } else if (meridiem === 'સાંજ') { + return hour + 12; + } + }, + meridiem: function (hour, minute, isLower) { + if (hour < 4) { + return 'રાત'; + } else if (hour < 10) { + return 'સવાર'; + } else if (hour < 17) { + return 'બપોર'; + } else if (hour < 20) { + return 'સાંજ'; + } else { + return 'રાત'; + } + }, + week: { + dow: 0, // Sunday is the first day of the week. + doy: 6, // The week that contains Jan 6th is the first week of the year. + }, }); - }; - this.onTitleMouseLeave = function (e) { - var _props7 = _this3.props, - parentMenu = _props7.parentMenu, - eventKey = _props7.eventKey, - onItemHover = _props7.onItemHover, - onTitleMouseLeave = _props7.onTitleMouseLeave; + return gu; - parentMenu.subMenuInstance = _this3; - onItemHover({ - key: eventKey, - hover: false - }); - onTitleMouseLeave({ - key: eventKey, - domEvent: e - }); - }; + }))); - this.onTitleClick = function (e) { - var props = _this3.props; - props.onTitleClick({ - key: props.eventKey, - domEvent: e - }); - if (props.triggerSubMenuAction === 'hover') { - return; - } - _this3.triggerOpenChange(!props.isOpen, 'click'); - updateDefaultActiveFirst(props.store, _this3.props.eventKey, false); - }; + /***/ }), + /* 376 */ + /***/ (function(module, exports, __webpack_require__) { - this.onSubMenuClick = function (info) { - // in the case of overflowed submenu - // onClick is not copied over - if (typeof _this3.props.onClick === 'function') { - _this3.props.onClick(_this3.addKeyPath(info)); - } - }; + //! moment.js locale configuration + //! locale : Hebrew [he] + //! author : Tomer Cohen : https://github.com/tomer + //! author : Moshe Simantov : https://github.com/DevelopmentIL + //! author : Tal Ater : https://github.com/TalAter - this.onSelect = function (info) { - _this3.props.onSelect(info); - }; + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - this.onDeselect = function (info) { - _this3.props.onDeselect(info); - }; + //! moment.js locale configuration - this.getPrefixCls = function () { - return _this3.props.rootPrefixCls + '-submenu'; - }; + var he = moment.defineLocale('he', { + months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split( + '_' + ), + monthsShort: 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split( + '_' + ), + weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'), + weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'), + weekdaysMin: 'א_ב_ג_ד_ה_ו_ש'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D [ב]MMMM YYYY', + LLL: 'D [ב]MMMM YYYY HH:mm', + LLLL: 'dddd, D [ב]MMMM YYYY HH:mm', + l: 'D/M/YYYY', + ll: 'D MMM YYYY', + lll: 'D MMM YYYY HH:mm', + llll: 'ddd, D MMM YYYY HH:mm', + }, + calendar: { + sameDay: '[היום ב־]LT', + nextDay: '[מחר ב־]LT', + nextWeek: 'dddd [בשעה] LT', + lastDay: '[אתמול ב־]LT', + lastWeek: '[ביום] dddd [האחרון בשעה] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'בעוד %s', + past: 'לפני %s', + s: 'מספר שניות', + ss: '%d שניות', + m: 'דקה', + mm: '%d דקות', + h: 'שעה', + hh: function (number) { + if (number === 2) { + return 'שעתיים'; + } + return number + ' שעות'; + }, + d: 'יום', + dd: function (number) { + if (number === 2) { + return 'יומיים'; + } + return number + ' ימים'; + }, + M: 'חודש', + MM: function (number) { + if (number === 2) { + return 'חודשיים'; + } + return number + ' חודשים'; + }, + y: 'שנה', + yy: function (number) { + if (number === 2) { + return 'שנתיים'; + } else if (number % 10 === 0 && number !== 10) { + return number + ' שנה'; + } + return number + ' שנים'; + }, + }, + meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i, + isPM: function (input) { + return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input); + }, + meridiem: function (hour, minute, isLower) { + if (hour < 5) { + return 'לפנות בוקר'; + } else if (hour < 10) { + return 'בבוקר'; + } else if (hour < 12) { + return isLower ? 'לפנה"צ' : 'לפני הצהריים'; + } else if (hour < 18) { + return isLower ? 'אחה"צ' : 'אחרי הצהריים'; + } else { + return 'בערב'; + } + }, + }); - this.getActiveClassName = function () { - return _this3.getPrefixCls() + '-active'; - }; + return he; - this.getDisabledClassName = function () { - return _this3.getPrefixCls() + '-disabled'; - }; + }))); - this.getSelectedClassName = function () { - return _this3.getPrefixCls() + '-selected'; - }; - this.getOpenClassName = function () { - return _this3.props.rootPrefixCls + '-submenu-open'; - }; + /***/ }), + /* 377 */ + /***/ (function(module, exports, __webpack_require__) { - this.saveMenuInstance = function (c) { - // children menu instance - _this3.menuInstance = c; - }; + //! moment.js locale configuration + //! locale : Hindi [hi] + //! author : Mayank Singhal : https://github.com/mayanksinghal - this.addKeyPath = function (info) { - return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, info, { - keyPath: (info.keyPath || []).concat(_this3.props.eventKey) + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; + + //! moment.js locale configuration + + var symbolMap = { + '1': '१', + '2': '२', + '3': '३', + '4': '४', + '5': '५', + '6': '६', + '7': '७', + '8': '८', + '9': '९', + '0': '०', + }, + numberMap = { + '१': '1', + '२': '2', + '३': '3', + '४': '4', + '५': '5', + '६': '6', + '७': '7', + '८': '8', + '९': '9', + '०': '0', + }; + + var hi = moment.defineLocale('hi', { + months: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split( + '_' + ), + monthsShort: 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'), + weekdaysShort: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'), + weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'), + longDateFormat: { + LT: 'A h:mm बजे', + LTS: 'A h:mm:ss बजे', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm बजे', + LLLL: 'dddd, D MMMM YYYY, A h:mm बजे', + }, + calendar: { + sameDay: '[आज] LT', + nextDay: '[कल] LT', + nextWeek: 'dddd, LT', + lastDay: '[कल] LT', + lastWeek: '[पिछले] dddd, LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s में', + past: '%s पहले', + s: 'कुछ ही क्षण', + ss: '%d सेकंड', + m: 'एक मिनट', + mm: '%d मिनट', + h: 'एक घंटा', + hh: '%d घंटे', + d: 'एक दिन', + dd: '%d दिन', + M: 'एक महीने', + MM: '%d महीने', + y: 'एक वर्ष', + yy: '%d वर्ष', + }, + preparse: function (string) { + return string.replace(/[१२३४५६७८९०]/g, function (match) { + return numberMap[match]; + }); + }, + postformat: function (string) { + return string.replace(/\d/g, function (match) { + return symbolMap[match]; + }); + }, + // Hindi notation for meridiems are quite fuzzy in practice. While there exists + // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi. + meridiemParse: /रात|सुबह|दोपहर|शाम/, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === 'रात') { + return hour < 4 ? hour : hour + 12; + } else if (meridiem === 'सुबह') { + return hour; + } else if (meridiem === 'दोपहर') { + return hour >= 10 ? hour : hour + 12; + } else if (meridiem === 'शाम') { + return hour + 12; + } + }, + meridiem: function (hour, minute, isLower) { + if (hour < 4) { + return 'रात'; + } else if (hour < 10) { + return 'सुबह'; + } else if (hour < 17) { + return 'दोपहर'; + } else if (hour < 20) { + return 'शाम'; + } else { + return 'रात'; + } + }, + week: { + dow: 0, // Sunday is the first day of the week. + doy: 6, // The week that contains Jan 6th is the first week of the year. + }, }); - }; - this.triggerOpenChange = function (open, type) { - var key = _this3.props.eventKey; - var openChange = function openChange() { - _this3.onOpenChange({ - key: key, - item: _this3, - trigger: type, - open: open - }); - }; - if (type === 'mouseenter') { - // make sure mouseenter happen after other menu item's mouseleave - _this3.mouseenterTimeout = setTimeout(function () { - openChange(); - }, 0); - } else { - openChange(); - } - }; + return hi; - this.isChildrenSelected = function () { - var ret = { find: false }; - Object(__WEBPACK_IMPORTED_MODULE_14__util__["e" /* loopMenuItemRecursively */])(_this3.props.children, _this3.props.selectedKeys, ret); - return ret.find; - }; + }))); - this.isOpen = function () { - return _this3.props.openKeys.indexOf(_this3.props.eventKey) !== -1; - }; - this.adjustWidth = function () { - /* istanbul ignore if */ - if (!_this3.subMenuTitle || !_this3.menuInstance) { - return; - } - var popupMenu = __WEBPACK_IMPORTED_MODULE_5_react_dom___default.a.findDOMNode(_this3.menuInstance); - if (popupMenu.offsetWidth >= _this3.subMenuTitle.offsetWidth) { - return; - } + /***/ }), + /* 378 */ + /***/ (function(module, exports, __webpack_require__) { - /* istanbul ignore next */ - popupMenu.style.minWidth = _this3.subMenuTitle.offsetWidth + 'px'; - }; + //! moment.js locale configuration + //! locale : Croatian [hr] + //! author : Bojan Marković : https://github.com/bmarkovic - this.saveSubMenuTitle = function (subMenuTitle) { - _this3.subMenuTitle = subMenuTitle; - }; - }; + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var connected = Object(__WEBPACK_IMPORTED_MODULE_10_mini_store__["connect"])(function (_ref, _ref2) { - var openKeys = _ref.openKeys, - activeKey = _ref.activeKey, - selectedKeys = _ref.selectedKeys; - var eventKey = _ref2.eventKey, - subMenuKey = _ref2.subMenuKey; - return { - isOpen: openKeys.indexOf(eventKey) > -1, - active: activeKey[subMenuKey] === eventKey, - selectedKeys: selectedKeys - }; - })(SubMenu); + //! moment.js locale configuration - connected.isSubMenu = true; + function translate(number, withoutSuffix, key) { + var result = number + ' '; + switch (key) { + case 'ss': + if (number === 1) { + result += 'sekunda'; + } else if (number === 2 || number === 3 || number === 4) { + result += 'sekunde'; + } else { + result += 'sekundi'; + } + return result; + case 'm': + return withoutSuffix ? 'jedna minuta' : 'jedne minute'; + case 'mm': + if (number === 1) { + result += 'minuta'; + } else if (number === 2 || number === 3 || number === 4) { + result += 'minute'; + } else { + result += 'minuta'; + } + return result; + case 'h': + return withoutSuffix ? 'jedan sat' : 'jednog sata'; + case 'hh': + if (number === 1) { + result += 'sat'; + } else if (number === 2 || number === 3 || number === 4) { + result += 'sata'; + } else { + result += 'sati'; + } + return result; + case 'dd': + if (number === 1) { + result += 'dan'; + } else { + result += 'dana'; + } + return result; + case 'MM': + if (number === 1) { + result += 'mjesec'; + } else if (number === 2 || number === 3 || number === 4) { + result += 'mjeseca'; + } else { + result += 'mjeseci'; + } + return result; + case 'yy': + if (number === 1) { + result += 'godina'; + } else if (number === 2 || number === 3 || number === 4) { + result += 'godine'; + } else { + result += 'godina'; + } + return result; + } + } + + var hr = moment.defineLocale('hr', { + months: { + format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split( + '_' + ), + standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split( + '_' + ), + }, + monthsShort: 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split( + '_' + ), + weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), + weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'Do MMMM YYYY', + LLL: 'Do MMMM YYYY H:mm', + LLLL: 'dddd, Do MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[danas u] LT', + nextDay: '[sutra u] LT', + nextWeek: function () { + switch (this.day()) { + case 0: + return '[u] [nedjelju] [u] LT'; + case 3: + return '[u] [srijedu] [u] LT'; + case 6: + return '[u] [subotu] [u] LT'; + case 1: + case 2: + case 4: + case 5: + return '[u] dddd [u] LT'; + } + }, + lastDay: '[jučer u] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + return '[prošlu] [nedjelju] [u] LT'; + case 3: + return '[prošlu] [srijedu] [u] LT'; + case 6: + return '[prošle] [subote] [u] LT'; + case 1: + case 2: + case 4: + case 5: + return '[prošli] dddd [u] LT'; + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'za %s', + past: 'prije %s', + s: 'par sekundi', + ss: translate, + m: translate, + mm: translate, + h: translate, + hh: translate, + d: 'dan', + dd: translate, + M: 'mjesec', + MM: translate, + y: 'godinu', + yy: translate, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, + }); + + return hr; + + }))); - /* harmony default export */ __webpack_exports__["a"] = (connected); /***/ }), - /* 525 */ + /* 379 */ /***/ (function(module, exports, __webpack_require__) { - "use strict"; + //! moment.js locale configuration + //! locale : Hungarian [hu] + //! author : Adam Brunner : https://github.com/adambrunner + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.SelectPropTypes = undefined; + //! moment.js locale configuration - var _propTypes = __webpack_require__(1); + var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split( + ' ' + ); + function translate(number, withoutSuffix, key, isFuture) { + var num = number; + switch (key) { + case 's': + return isFuture || withoutSuffix + ? 'néhány másodperc' + : 'néhány másodperce'; + case 'ss': + return num + (isFuture || withoutSuffix) + ? ' másodperc' + : ' másodperce'; + case 'm': + return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce'); + case 'mm': + return num + (isFuture || withoutSuffix ? ' perc' : ' perce'); + case 'h': + return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája'); + case 'hh': + return num + (isFuture || withoutSuffix ? ' óra' : ' órája'); + case 'd': + return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja'); + case 'dd': + return num + (isFuture || withoutSuffix ? ' nap' : ' napja'); + case 'M': + return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja'); + case 'MM': + return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja'); + case 'y': + return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve'); + case 'yy': + return num + (isFuture || withoutSuffix ? ' év' : ' éve'); + } + return ''; + } + function week(isFuture) { + return ( + (isFuture ? '' : '[múlt] ') + + '[' + + weekEndings[this.day()] + + '] LT[-kor]' + ); + } - var _propTypes2 = _interopRequireDefault(_propTypes); + var hu = moment.defineLocale('hu', { + months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split( + '_' + ), + monthsShort: 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split( + '_' + ), + weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'), + weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'), + weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'), + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'YYYY.MM.DD.', + LL: 'YYYY. MMMM D.', + LLL: 'YYYY. MMMM D. H:mm', + LLLL: 'YYYY. MMMM D., dddd H:mm', + }, + meridiemParse: /de|du/i, + isPM: function (input) { + return input.charAt(1).toLowerCase() === 'u'; + }, + meridiem: function (hours, minutes, isLower) { + if (hours < 12) { + return isLower === true ? 'de' : 'DE'; + } else { + return isLower === true ? 'du' : 'DU'; + } + }, + calendar: { + sameDay: '[ma] LT[-kor]', + nextDay: '[holnap] LT[-kor]', + nextWeek: function () { + return week.call(this, true); + }, + lastDay: '[tegnap] LT[-kor]', + lastWeek: function () { + return week.call(this, false); + }, + sameElse: 'L', + }, + relativeTime: { + future: '%s múlva', + past: '%s', + s: translate, + ss: translate, + m: translate, + mm: translate, + h: translate, + hh: translate, + d: translate, + dd: translate, + M: translate, + MM: translate, + y: translate, + yy: translate, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + return hu; - function valueType(props, propName, componentName) { - var basicType = _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].number]); + }))); - var labelInValueShape = _propTypes2["default"].shape({ - key: basicType.isRequired, - label: _propTypes2["default"].node - }); - if (props.labelInValue) { - var validate = _propTypes2["default"].oneOfType([_propTypes2["default"].arrayOf(labelInValueShape), labelInValueShape]); - var error = validate.apply(undefined, arguments); - if (error) { - return new Error('Invalid prop `' + propName + '` supplied to `' + componentName + '`, ' + ('when you set `labelInValue` to `true`, `' + propName + '` should in ') + 'shape of `{ key: string | number, label?: ReactNode }`.'); - } - } else if ((props.mode === 'multiple' || props.mode === 'tags' || props.multiple || props.tags) && props[propName] === '') { - return new Error('Invalid prop `' + propName + '` of type `string` supplied to `' + componentName + '`, ' + 'expected `array` when `multiple` or `tags` is `true`.'); - } else { - var _validate = _propTypes2["default"].oneOfType([_propTypes2["default"].arrayOf(basicType), basicType]); - return _validate.apply(undefined, arguments); - } - } /** - * This source code is quoted from rc-select. - * homepage: https://github.com/react-component/select - */ - var SelectPropTypes = exports.SelectPropTypes = { - id: _propTypes2["default"].string, - defaultActiveFirstOption: _propTypes2["default"].bool, - multiple: _propTypes2["default"].bool, - filterOption: _propTypes2["default"].any, - children: _propTypes2["default"].any, - showSearch: _propTypes2["default"].bool, - disabled: _propTypes2["default"].bool, - allowClear: _propTypes2["default"].bool, - showArrow: _propTypes2["default"].bool, - tags: _propTypes2["default"].bool, - prefixCls: _propTypes2["default"].string, - className: _propTypes2["default"].string, - transitionName: _propTypes2["default"].string, - optionLabelProp: _propTypes2["default"].string, - optionFilterProp: _propTypes2["default"].string, - animation: _propTypes2["default"].string, - choiceTransitionName: _propTypes2["default"].string, - open: _propTypes2["default"].bool, - defaultOpen: _propTypes2["default"].bool, - onChange: _propTypes2["default"].func, - onBlur: _propTypes2["default"].func, - onFocus: _propTypes2["default"].func, - onSelect: _propTypes2["default"].func, - onSearch: _propTypes2["default"].func, - onPopupScroll: _propTypes2["default"].func, - onMouseEnter: _propTypes2["default"].func, - onMouseLeave: _propTypes2["default"].func, - onInputKeyDown: _propTypes2["default"].func, - placeholder: _propTypes2["default"].any, - onDeselect: _propTypes2["default"].func, - labelInValue: _propTypes2["default"].bool, - value: valueType, - defaultValue: valueType, - dropdownStyle: _propTypes2["default"].object, - maxTagTextLength: _propTypes2["default"].number, - maxTagCount: _propTypes2["default"].number, - maxTagPlaceholder: _propTypes2["default"].oneOfType([_propTypes2["default"].node, _propTypes2["default"].func]), - tokenSeparators: _propTypes2["default"].arrayOf(_propTypes2["default"].string), - getInputElement: _propTypes2["default"].func, - showAction: _propTypes2["default"].arrayOf(_propTypes2["default"].string), - clearIcon: _propTypes2["default"].node, - inputIcon: _propTypes2["default"].node, - removeIcon: _propTypes2["default"].node, - menuItemSelectedIcon: _propTypes2["default"].oneOfType([_propTypes2["default"].func, _propTypes2["default"].node]) - }; /***/ }), - /* 526 */ + /* 380 */ /***/ (function(module, exports, __webpack_require__) { - "use strict"; - - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _react = __webpack_require__(0); - - var _react2 = _interopRequireDefault(_react); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + //! moment.js locale configuration + //! locale : Armenian [hy-am] + //! author : Armendarabyan : https://github.com/armendarabyan - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var OptGroup = function (_React$Component) { - _inherits(OptGroup, _React$Component); + //! moment.js locale configuration - function OptGroup() { - _classCallCheck(this, OptGroup); + var hyAm = moment.defineLocale('hy-am', { + months: { + format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split( + '_' + ), + standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split( + '_' + ), + }, + monthsShort: 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'), + weekdays: 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split( + '_' + ), + weekdaysShort: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'), + weekdaysMin: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY թ.', + LLL: 'D MMMM YYYY թ., HH:mm', + LLLL: 'dddd, D MMMM YYYY թ., HH:mm', + }, + calendar: { + sameDay: '[այսօր] LT', + nextDay: '[վաղը] LT', + lastDay: '[երեկ] LT', + nextWeek: function () { + return 'dddd [օրը ժամը] LT'; + }, + lastWeek: function () { + return '[անցած] dddd [օրը ժամը] LT'; + }, + sameElse: 'L', + }, + relativeTime: { + future: '%s հետո', + past: '%s առաջ', + s: 'մի քանի վայրկյան', + ss: '%d վայրկյան', + m: 'րոպե', + mm: '%d րոպե', + h: 'ժամ', + hh: '%d ժամ', + d: 'օր', + dd: '%d օր', + M: 'ամիս', + MM: '%d ամիս', + y: 'տարի', + yy: '%d տարի', + }, + meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/, + isPM: function (input) { + return /^(ցերեկվա|երեկոյան)$/.test(input); + }, + meridiem: function (hour) { + if (hour < 4) { + return 'գիշերվա'; + } else if (hour < 12) { + return 'առավոտվա'; + } else if (hour < 17) { + return 'ցերեկվա'; + } else { + return 'երեկոյան'; + } + }, + dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/, + ordinal: function (number, period) { + switch (period) { + case 'DDD': + case 'w': + case 'W': + case 'DDDo': + if (number === 1) { + return number + '-ին'; + } + return number + '-րդ'; + default: + return number; + } + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, + }); - return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); - } + return hyAm; - return OptGroup; - }(_react2["default"].Component); + }))); - OptGroup.isSelectOptGroup = true; - exports["default"] = OptGroup; - module.exports = exports['default']; /***/ }), - /* 527 */ + /* 381 */ /***/ (function(module, exports, __webpack_require__) { - "use strict"; - /* WEBPACK VAR INJECTION */(function(process) { - - exports.__esModule = true; - exports.default = exports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = void 0; - - var PropTypes = _interopRequireWildcard(__webpack_require__(1)); - - var _react = _interopRequireDefault(__webpack_require__(0)); - - var _reactDom = _interopRequireDefault(__webpack_require__(3)); - - var _reactLifecyclesCompat = __webpack_require__(14); - - var _PropTypes = __webpack_require__(528); + //! moment.js locale configuration + //! locale : Indonesian [id] + //! author : Mohammad Satrio Utomo : https://github.com/tyok + //! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } + //! moment.js locale configuration - function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } + var id = moment.defineLocale('id', { + months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'), + weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'), + weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'), + weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'), + longDateFormat: { + LT: 'HH.mm', + LTS: 'HH.mm.ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY [pukul] HH.mm', + LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm', + }, + meridiemParse: /pagi|siang|sore|malam/, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === 'pagi') { + return hour; + } else if (meridiem === 'siang') { + return hour >= 11 ? hour : hour + 12; + } else if (meridiem === 'sore' || meridiem === 'malam') { + return hour + 12; + } + }, + meridiem: function (hours, minutes, isLower) { + if (hours < 11) { + return 'pagi'; + } else if (hours < 15) { + return 'siang'; + } else if (hours < 19) { + return 'sore'; + } else { + return 'malam'; + } + }, + calendar: { + sameDay: '[Hari ini pukul] LT', + nextDay: '[Besok pukul] LT', + nextWeek: 'dddd [pukul] LT', + lastDay: '[Kemarin pukul] LT', + lastWeek: 'dddd [lalu pukul] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'dalam %s', + past: '%s yang lalu', + s: 'beberapa detik', + ss: '%d detik', + m: 'semenit', + mm: '%d menit', + h: 'sejam', + hh: '%d jam', + d: 'sehari', + dd: '%d hari', + M: 'sebulan', + MM: '%d bulan', + y: 'setahun', + yy: '%d tahun', + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, + }); - function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } + return id; - var UNMOUNTED = 'unmounted'; - exports.UNMOUNTED = UNMOUNTED; - var EXITED = 'exited'; - exports.EXITED = EXITED; - var ENTERING = 'entering'; - exports.ENTERING = ENTERING; - var ENTERED = 'entered'; - exports.ENTERED = ENTERED; - var EXITING = 'exiting'; - /** - * The Transition component lets you describe a transition from one component - * state to another _over time_ with a simple declarative API. Most commonly - * it's used to animate the mounting and unmounting of a component, but can also - * be used to describe in-place transition states as well. - * - * --- - * - * **Note**: `Transition` is a platform-agnostic base component. If you're using - * transitions in CSS, you'll probably want to use - * [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition) - * instead. It inherits all the features of `Transition`, but contains - * additional features necessary to play nice with CSS transitions (hence the - * name of the component). - * - * --- - * - * By default the `Transition` component does not alter the behavior of the - * component it renders, it only tracks "enter" and "exit" states for the - * components. It's up to you to give meaning and effect to those states. For - * example we can add styles to a component when it enters or exits: - * - * ```jsx - * import { Transition } from 'react-transition-group'; - * - * const duration = 300; - * - * const defaultStyle = { - * transition: `opacity ${duration}ms ease-in-out`, - * opacity: 0, - * } - * - * const transitionStyles = { - * entering: { opacity: 0 }, - * entered: { opacity: 1 }, - * }; - * - * const Fade = ({ in: inProp }) => ( - * - * {state => ( - *
    - * I'm a fade Transition! - *
    - * )} - *
    - * ); - * ``` - * - * There are 4 main states a Transition can be in: - * - `'entering'` - * - `'entered'` - * - `'exiting'` - * - `'exited'` - * - * Transition state is toggled via the `in` prop. When `true` the component - * begins the "Enter" stage. During this stage, the component will shift from - * its current transition state, to `'entering'` for the duration of the - * transition and then to the `'entered'` stage once it's complete. Let's take - * the following example (we'll use the - * [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook): - * - * ```jsx - * function App() { - * const [inProp, setInProp] = useState(false); - * return ( - *
    - * - * {state => ( - * // ... - * )} - * - * - *
    - * ); - * } - * ``` - * - * When the button is clicked the component will shift to the `'entering'` state - * and stay there for 500ms (the value of `timeout`) before it finally switches - * to `'entered'`. - * - * When `in` is `false` the same thing happens except the state moves from - * `'exiting'` to `'exited'`. - */ + }))); - exports.EXITING = EXITING; - var Transition = - /*#__PURE__*/ - function (_React$Component) { - _inheritsLoose(Transition, _React$Component); + /***/ }), + /* 382 */ + /***/ (function(module, exports, __webpack_require__) { - function Transition(props, context) { - var _this; + //! moment.js locale configuration + //! locale : Icelandic [is] + //! author : Hinrik Örn Sigurðsson : https://github.com/hinrik - _this = _React$Component.call(this, props, context) || this; - var parentGroup = context.transitionGroup; // In the context of a TransitionGroup all enters are really appears + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear; - var initialStatus; - _this.appearStatus = null; + //! moment.js locale configuration - if (props.in) { - if (appear) { - initialStatus = EXITED; - _this.appearStatus = ENTERING; - } else { - initialStatus = ENTERED; - } - } else { - if (props.unmountOnExit || props.mountOnEnter) { - initialStatus = UNMOUNTED; - } else { - initialStatus = EXITED; - } + function plural(n) { + if (n % 100 === 11) { + return true; + } else if (n % 10 === 1) { + return false; + } + return true; + } + function translate(number, withoutSuffix, key, isFuture) { + var result = number + ' '; + switch (key) { + case 's': + return withoutSuffix || isFuture + ? 'nokkrar sekúndur' + : 'nokkrum sekúndum'; + case 'ss': + if (plural(number)) { + return ( + result + + (withoutSuffix || isFuture ? 'sekúndur' : 'sekúndum') + ); + } + return result + 'sekúnda'; + case 'm': + return withoutSuffix ? 'mínúta' : 'mínútu'; + case 'mm': + if (plural(number)) { + return ( + result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum') + ); + } else if (withoutSuffix) { + return result + 'mínúta'; + } + return result + 'mínútu'; + case 'hh': + if (plural(number)) { + return ( + result + + (withoutSuffix || isFuture + ? 'klukkustundir' + : 'klukkustundum') + ); + } + return result + 'klukkustund'; + case 'd': + if (withoutSuffix) { + return 'dagur'; + } + return isFuture ? 'dag' : 'degi'; + case 'dd': + if (plural(number)) { + if (withoutSuffix) { + return result + 'dagar'; + } + return result + (isFuture ? 'daga' : 'dögum'); + } else if (withoutSuffix) { + return result + 'dagur'; + } + return result + (isFuture ? 'dag' : 'degi'); + case 'M': + if (withoutSuffix) { + return 'mánuður'; + } + return isFuture ? 'mánuð' : 'mánuði'; + case 'MM': + if (plural(number)) { + if (withoutSuffix) { + return result + 'mánuðir'; + } + return result + (isFuture ? 'mánuði' : 'mánuðum'); + } else if (withoutSuffix) { + return result + 'mánuður'; + } + return result + (isFuture ? 'mánuð' : 'mánuði'); + case 'y': + return withoutSuffix || isFuture ? 'ár' : 'ári'; + case 'yy': + if (plural(number)) { + return result + (withoutSuffix || isFuture ? 'ár' : 'árum'); + } + return result + (withoutSuffix || isFuture ? 'ár' : 'ári'); + } } - _this.state = { - status: initialStatus - }; - _this.nextCallback = null; - return _this; - } - - var _proto = Transition.prototype; - - _proto.getChildContext = function getChildContext() { - return { - transitionGroup: null // allows for nested Transitions + var is = moment.defineLocale('is', { + months: 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split( + '_' + ), + monthsShort: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'), + weekdays: 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split( + '_' + ), + weekdaysShort: 'sun_mán_þri_mið_fim_fös_lau'.split('_'), + weekdaysMin: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'), + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY [kl.] H:mm', + LLLL: 'dddd, D. MMMM YYYY [kl.] H:mm', + }, + calendar: { + sameDay: '[í dag kl.] LT', + nextDay: '[á morgun kl.] LT', + nextWeek: 'dddd [kl.] LT', + lastDay: '[í gær kl.] LT', + lastWeek: '[síðasta] dddd [kl.] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'eftir %s', + past: 'fyrir %s síðan', + s: translate, + ss: translate, + m: translate, + mm: translate, + h: 'klukkustund', + hh: translate, + d: translate, + dd: translate, + M: translate, + MM: translate, + y: translate, + yy: translate, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - }; - }; + return is; - Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) { - var nextIn = _ref.in; + }))); - if (nextIn && prevState.status === UNMOUNTED) { - return { - status: EXITED - }; - } - return null; - }; // getSnapshotBeforeUpdate(prevProps) { - // let nextStatus = null - // if (prevProps !== this.props) { - // const { status } = this.state - // if (this.props.in) { - // if (status !== ENTERING && status !== ENTERED) { - // nextStatus = ENTERING - // } - // } else { - // if (status === ENTERING || status === ENTERED) { - // nextStatus = EXITING - // } - // } - // } - // return { nextStatus } - // } + /***/ }), + /* 383 */ + /***/ (function(module, exports, __webpack_require__) { + //! moment.js locale configuration + //! locale : Italian [it] + //! author : Lorenzo : https://github.com/aliem + //! author: Mattia Larentis: https://github.com/nostalgiaz + //! author: Marco : https://github.com/Manfre98 - _proto.componentDidMount = function componentDidMount() { - this.updateStatus(true, this.appearStatus); - }; + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - _proto.componentDidUpdate = function componentDidUpdate(prevProps) { - var nextStatus = null; + //! moment.js locale configuration - if (prevProps !== this.props) { - var status = this.state.status; + var it = moment.defineLocale('it', { + months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split( + '_' + ), + monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'), + weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split( + '_' + ), + weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'), + weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: function () { + return ( + '[Oggi a' + + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + + ']LT' + ); + }, + nextDay: function () { + return ( + '[Domani a' + + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + + ']LT' + ); + }, + nextWeek: function () { + return ( + 'dddd [a' + + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + + ']LT' + ); + }, + lastDay: function () { + return ( + '[Ieri a' + + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + + ']LT' + ); + }, + lastWeek: function () { + switch (this.day()) { + case 0: + return ( + '[La scorsa] dddd [a' + + (this.hours() > 1 + ? 'lle ' + : this.hours() === 0 + ? ' ' + : "ll'") + + ']LT' + ); + default: + return ( + '[Lo scorso] dddd [a' + + (this.hours() > 1 + ? 'lle ' + : this.hours() === 0 + ? ' ' + : "ll'") + + ']LT' + ); + } + }, + sameElse: 'L', + }, + relativeTime: { + future: function (s) { + return (/^[0-9].+$/.test(s) ? 'tra' : 'in') + ' ' + s; + }, + past: '%s fa', + s: 'alcuni secondi', + ss: '%d secondi', + m: 'un minuto', + mm: '%d minuti', + h: "un'ora", + hh: '%d ore', + d: 'un giorno', + dd: '%d giorni', + M: 'un mese', + MM: '%d mesi', + y: 'un anno', + yy: '%d anni', + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - if (this.props.in) { - if (status !== ENTERING && status !== ENTERED) { - nextStatus = ENTERING; - } - } else { - if (status === ENTERING || status === ENTERED) { - nextStatus = EXITING; - } - } - } + return it; - this.updateStatus(false, nextStatus); - }; + }))); - _proto.componentWillUnmount = function componentWillUnmount() { - this.cancelNextCallback(); - }; - _proto.getTimeouts = function getTimeouts() { - var timeout = this.props.timeout; - var exit, enter, appear; - exit = enter = appear = timeout; + /***/ }), + /* 384 */ + /***/ (function(module, exports, __webpack_require__) { - if (timeout != null && typeof timeout !== 'number') { - exit = timeout.exit; - enter = timeout.enter; // TODO: remove fallback for next major + //! moment.js locale configuration + //! locale : Italian (Switzerland) [it-ch] + //! author : xfh : https://github.com/xfh - appear = timeout.appear !== undefined ? timeout.appear : enter; - } + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - return { - exit: exit, - enter: enter, - appear: appear - }; - }; + //! moment.js locale configuration - _proto.updateStatus = function updateStatus(mounting, nextStatus) { - if (mounting === void 0) { - mounting = false; - } + var itCh = moment.defineLocale('it-ch', { + months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split( + '_' + ), + monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'), + weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split( + '_' + ), + weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'), + weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Oggi alle] LT', + nextDay: '[Domani alle] LT', + nextWeek: 'dddd [alle] LT', + lastDay: '[Ieri alle] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + return '[la scorsa] dddd [alle] LT'; + default: + return '[lo scorso] dddd [alle] LT'; + } + }, + sameElse: 'L', + }, + relativeTime: { + future: function (s) { + return (/^[0-9].+$/.test(s) ? 'tra' : 'in') + ' ' + s; + }, + past: '%s fa', + s: 'alcuni secondi', + ss: '%d secondi', + m: 'un minuto', + mm: '%d minuti', + h: "un'ora", + hh: '%d ore', + d: 'un giorno', + dd: '%d giorni', + M: 'un mese', + MM: '%d mesi', + y: 'un anno', + yy: '%d anni', + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - if (nextStatus !== null) { - // nextStatus will always be ENTERING or EXITING. - this.cancelNextCallback(); + return itCh; - var node = _reactDom.default.findDOMNode(this); + }))); - if (nextStatus === ENTERING) { - this.performEnter(node, mounting); - } else { - this.performExit(node); - } - } else if (this.props.unmountOnExit && this.state.status === EXITED) { - this.setState({ - status: UNMOUNTED - }); - } - }; - _proto.performEnter = function performEnter(node, mounting) { - var _this2 = this; + /***/ }), + /* 385 */ + /***/ (function(module, exports, __webpack_require__) { - var enter = this.props.enter; - var appearing = this.context.transitionGroup ? this.context.transitionGroup.isMounting : mounting; - var timeouts = this.getTimeouts(); - var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED - // if we are mounting and running this it means appear _must_ be set + //! moment.js locale configuration + //! locale : Japanese [ja] + //! author : LI Long : https://github.com/baryon - if (!mounting && !enter) { - this.safeSetState({ - status: ENTERED - }, function () { - _this2.props.onEntered(node); - }); - return; - } + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - this.props.onEnter(node, appearing); - this.safeSetState({ - status: ENTERING - }, function () { - _this2.props.onEntering(node, appearing); + //! moment.js locale configuration - _this2.onTransitionEnd(node, enterTimeout, function () { - _this2.safeSetState({ - status: ENTERED - }, function () { - _this2.props.onEntered(node, appearing); - }); - }); + var ja = moment.defineLocale('ja', { + eras: [ + { + since: '2019-05-01', + offset: 1, + name: '令和', + narrow: '㋿', + abbr: 'R', + }, + { + since: '1989-01-08', + until: '2019-04-30', + offset: 1, + name: '平成', + narrow: '㍻', + abbr: 'H', + }, + { + since: '1926-12-25', + until: '1989-01-07', + offset: 1, + name: '昭和', + narrow: '㍼', + abbr: 'S', + }, + { + since: '1912-07-30', + until: '1926-12-24', + offset: 1, + name: '大正', + narrow: '㍽', + abbr: 'T', + }, + { + since: '1873-01-01', + until: '1912-07-29', + offset: 6, + name: '明治', + narrow: '㍾', + abbr: 'M', + }, + { + since: '0001-01-01', + until: '1873-12-31', + offset: 1, + name: '西暦', + narrow: 'AD', + abbr: 'AD', + }, + { + since: '0000-12-31', + until: -Infinity, + offset: 1, + name: '紀元前', + narrow: 'BC', + abbr: 'BC', + }, + ], + eraYearOrdinalRegex: /(元|\d+)年/, + eraYearOrdinalParse: function (input, match) { + return match[1] === '元' ? 1 : parseInt(match[1] || input, 10); + }, + months: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), + monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split( + '_' + ), + weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'), + weekdaysShort: '日_月_火_水_木_金_土'.split('_'), + weekdaysMin: '日_月_火_水_木_金_土'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY/MM/DD', + LL: 'YYYY年M月D日', + LLL: 'YYYY年M月D日 HH:mm', + LLLL: 'YYYY年M月D日 dddd HH:mm', + l: 'YYYY/MM/DD', + ll: 'YYYY年M月D日', + lll: 'YYYY年M月D日 HH:mm', + llll: 'YYYY年M月D日(ddd) HH:mm', + }, + meridiemParse: /午前|午後/i, + isPM: function (input) { + return input === '午後'; + }, + meridiem: function (hour, minute, isLower) { + if (hour < 12) { + return '午前'; + } else { + return '午後'; + } + }, + calendar: { + sameDay: '[今日] LT', + nextDay: '[明日] LT', + nextWeek: function (now) { + if (now.week() !== this.week()) { + return '[来週]dddd LT'; + } else { + return 'dddd LT'; + } + }, + lastDay: '[昨日] LT', + lastWeek: function (now) { + if (this.week() !== now.week()) { + return '[先週]dddd LT'; + } else { + return 'dddd LT'; + } + }, + sameElse: 'L', + }, + dayOfMonthOrdinalParse: /\d{1,2}日/, + ordinal: function (number, period) { + switch (period) { + case 'y': + return number === 1 ? '元年' : number + '年'; + case 'd': + case 'D': + case 'DDD': + return number + '日'; + default: + return number; + } + }, + relativeTime: { + future: '%s後', + past: '%s前', + s: '数秒', + ss: '%d秒', + m: '1分', + mm: '%d分', + h: '1時間', + hh: '%d時間', + d: '1日', + dd: '%d日', + M: '1ヶ月', + MM: '%dヶ月', + y: '1年', + yy: '%d年', + }, }); - }; - - _proto.performExit = function performExit(node) { - var _this3 = this; - var exit = this.props.exit; - var timeouts = this.getTimeouts(); // no exit animation skip right to EXITED + return ja; - if (!exit) { - this.safeSetState({ - status: EXITED - }, function () { - _this3.props.onExited(node); - }); - return; - } + }))); - this.props.onExit(node); - this.safeSetState({ - status: EXITING - }, function () { - _this3.props.onExiting(node); - _this3.onTransitionEnd(node, timeouts.exit, function () { - _this3.safeSetState({ - status: EXITED - }, function () { - _this3.props.onExited(node); - }); - }); - }); - }; + /***/ }), + /* 386 */ + /***/ (function(module, exports, __webpack_require__) { - _proto.cancelNextCallback = function cancelNextCallback() { - if (this.nextCallback !== null) { - this.nextCallback.cancel(); - this.nextCallback = null; - } - }; + //! moment.js locale configuration + //! locale : Javanese [jv] + //! author : Rony Lantip : https://github.com/lantip + //! reference: http://jv.wikipedia.org/wiki/Basa_Jawa - _proto.safeSetState = function safeSetState(nextState, callback) { - // This shouldn't be necessary, but there are weird race conditions with - // setState callbacks and unmounting in testing, so always make sure that - // we can cancel any pending setState callbacks after we unmount. - callback = this.setNextCallback(callback); - this.setState(nextState, callback); - }; + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - _proto.setNextCallback = function setNextCallback(callback) { - var _this4 = this; + //! moment.js locale configuration - var active = true; + var jv = moment.defineLocale('jv', { + months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'), + weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'), + weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'), + weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'), + longDateFormat: { + LT: 'HH.mm', + LTS: 'HH.mm.ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY [pukul] HH.mm', + LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm', + }, + meridiemParse: /enjing|siyang|sonten|ndalu/, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === 'enjing') { + return hour; + } else if (meridiem === 'siyang') { + return hour >= 11 ? hour : hour + 12; + } else if (meridiem === 'sonten' || meridiem === 'ndalu') { + return hour + 12; + } + }, + meridiem: function (hours, minutes, isLower) { + if (hours < 11) { + return 'enjing'; + } else if (hours < 15) { + return 'siyang'; + } else if (hours < 19) { + return 'sonten'; + } else { + return 'ndalu'; + } + }, + calendar: { + sameDay: '[Dinten puniko pukul] LT', + nextDay: '[Mbenjang pukul] LT', + nextWeek: 'dddd [pukul] LT', + lastDay: '[Kala wingi pukul] LT', + lastWeek: 'dddd [kepengker pukul] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'wonten ing %s', + past: '%s ingkang kepengker', + s: 'sawetawis detik', + ss: '%d detik', + m: 'setunggal menit', + mm: '%d menit', + h: 'setunggal jam', + hh: '%d jam', + d: 'sedinten', + dd: '%d dinten', + M: 'sewulan', + MM: '%d wulan', + y: 'setaun', + yy: '%d taun', + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, + }); - this.nextCallback = function (event) { - if (active) { - active = false; - _this4.nextCallback = null; - callback(event); - } - }; + return jv; - this.nextCallback.cancel = function () { - active = false; - }; + }))); - return this.nextCallback; - }; - _proto.onTransitionEnd = function onTransitionEnd(node, timeout, handler) { - this.setNextCallback(handler); - var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener; + /***/ }), + /* 387 */ + /***/ (function(module, exports, __webpack_require__) { - if (!node || doesNotHaveTimeoutOrListener) { - setTimeout(this.nextCallback, 0); - return; - } + //! moment.js locale configuration + //! locale : Georgian [ka] + //! author : Irakli Janiashvili : https://github.com/IrakliJani - if (this.props.addEndListener) { - this.props.addEndListener(node, this.nextCallback); - } + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - if (timeout != null) { - setTimeout(this.nextCallback, timeout); - } - }; + //! moment.js locale configuration - _proto.render = function render() { - var status = this.state.status; + var ka = moment.defineLocale('ka', { + months: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split( + '_' + ), + monthsShort: 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'), + weekdays: { + standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split( + '_' + ), + format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split( + '_' + ), + isFormat: /(წინა|შემდეგ)/, + }, + weekdaysShort: 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'), + weekdaysMin: 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[დღეს] LT[-ზე]', + nextDay: '[ხვალ] LT[-ზე]', + lastDay: '[გუშინ] LT[-ზე]', + nextWeek: '[შემდეგ] dddd LT[-ზე]', + lastWeek: '[წინა] dddd LT-ზე', + sameElse: 'L', + }, + relativeTime: { + future: function (s) { + return s.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/, function ( + $0, + $1, + $2 + ) { + return $2 === 'ი' ? $1 + 'ში' : $1 + $2 + 'ში'; + }); + }, + past: function (s) { + if (/(წამი|წუთი|საათი|დღე|თვე)/.test(s)) { + return s.replace(/(ი|ე)$/, 'ის წინ'); + } + if (/წელი/.test(s)) { + return s.replace(/წელი$/, 'წლის წინ'); + } + return s; + }, + s: 'რამდენიმე წამი', + ss: '%d წამი', + m: 'წუთი', + mm: '%d წუთი', + h: 'საათი', + hh: '%d საათი', + d: 'დღე', + dd: '%d დღე', + M: 'თვე', + MM: '%d თვე', + y: 'წელი', + yy: '%d წელი', + }, + dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/, + ordinal: function (number) { + if (number === 0) { + return number; + } + if (number === 1) { + return number + '-ლი'; + } + if ( + number < 20 || + (number <= 100 && number % 20 === 0) || + number % 100 === 0 + ) { + return 'მე-' + number; + } + return number + '-ე'; + }, + week: { + dow: 1, + doy: 7, + }, + }); - if (status === UNMOUNTED) { - return null; - } + return ka; - var _this$props = this.props, - children = _this$props.children, - childProps = _objectWithoutPropertiesLoose(_this$props, ["children"]); // filter props for Transtition + }))); - delete childProps.in; - delete childProps.mountOnEnter; - delete childProps.unmountOnExit; - delete childProps.appear; - delete childProps.enter; - delete childProps.exit; - delete childProps.timeout; - delete childProps.addEndListener; - delete childProps.onEnter; - delete childProps.onEntering; - delete childProps.onEntered; - delete childProps.onExit; - delete childProps.onExiting; - delete childProps.onExited; + /***/ }), + /* 388 */ + /***/ (function(module, exports, __webpack_require__) { - if (typeof children === 'function') { - return children(status, childProps); - } + //! moment.js locale configuration + //! locale : Kazakh [kk] + //! authors : Nurlan Rakhimzhanov : https://github.com/nurlan - var child = _react.default.Children.only(children); + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - return _react.default.cloneElement(child, childProps); - }; + //! moment.js locale configuration - return Transition; - }(_react.default.Component); + var suffixes = { + 0: '-ші', + 1: '-ші', + 2: '-ші', + 3: '-ші', + 4: '-ші', + 5: '-ші', + 6: '-шы', + 7: '-ші', + 8: '-ші', + 9: '-шы', + 10: '-шы', + 20: '-шы', + 30: '-шы', + 40: '-шы', + 50: '-ші', + 60: '-шы', + 70: '-ші', + 80: '-ші', + 90: '-шы', + 100: '-ші', + }; - Transition.contextTypes = { - transitionGroup: PropTypes.object - }; - Transition.childContextTypes = { - transitionGroup: function transitionGroup() {} - }; - Transition.propTypes = process.env.NODE_ENV !== "production" ? { - /** - * A `function` child can be used instead of a React element. This function is - * called with the current transition status (`'entering'`, `'entered'`, - * `'exiting'`, `'exited'`, `'unmounted'`), which can be used to apply context - * specific props to a component. - * - * ```jsx - * - * {state => ( - * - * )} - * - * ``` - */ - children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired, + var kk = moment.defineLocale('kk', { + months: 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split( + '_' + ), + monthsShort: 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'), + weekdays: 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split( + '_' + ), + weekdaysShort: 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'), + weekdaysMin: 'жк_дй_сй_ср_бй_жм_сн'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Бүгін сағат] LT', + nextDay: '[Ертең сағат] LT', + nextWeek: 'dddd [сағат] LT', + lastDay: '[Кеше сағат] LT', + lastWeek: '[Өткен аптаның] dddd [сағат] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s ішінде', + past: '%s бұрын', + s: 'бірнеше секунд', + ss: '%d секунд', + m: 'бір минут', + mm: '%d минут', + h: 'бір сағат', + hh: '%d сағат', + d: 'бір күн', + dd: '%d күн', + M: 'бір ай', + MM: '%d ай', + y: 'бір жыл', + yy: '%d жыл', + }, + dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/, + ordinal: function (number) { + var a = number % 10, + b = number >= 100 ? 100 : null; + return number + (suffixes[number] || suffixes[a] || suffixes[b]); + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, + }); - /** - * Show the component; triggers the enter or exit states - */ - in: PropTypes.bool, + return kk; - /** - * By default the child component is mounted immediately along with - * the parent `Transition` component. If you want to "lazy mount" the component on the - * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay - * mounted, even on "exited", unless you also specify `unmountOnExit`. - */ - mountOnEnter: PropTypes.bool, + }))); - /** - * By default the child component stays mounted after it reaches the `'exited'` state. - * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting. - */ - unmountOnExit: PropTypes.bool, - /** - * Normally a component is not transitioned if it is shown when the `` component mounts. - * If you want to transition on the first mount set `appear` to `true`, and the - * component will transition in as soon as the `` mounts. - * - * > Note: there are no specific "appear" states. `appear` only adds an additional `enter` transition. - */ - appear: PropTypes.bool, + /***/ }), + /* 389 */ + /***/ (function(module, exports, __webpack_require__) { - /** - * Enable or disable enter transitions. - */ - enter: PropTypes.bool, + //! moment.js locale configuration + //! locale : Cambodian [km] + //! author : Kruy Vanna : https://github.com/kruyvanna - /** - * Enable or disable exit transitions. - */ - exit: PropTypes.bool, + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - /** - * The duration of the transition, in milliseconds. - * Required unless `addEndListener` is provided. - * - * You may specify a single timeout for all transitions: - * - * ```jsx - * timeout={500} - * ``` - * - * or individually: - * - * ```jsx - * timeout={{ - * appear: 500, - * enter: 300, - * exit: 500, - * }} - * ``` - * - * - `appear` defaults to the value of `enter` - * - `enter` defaults to `0` - * - `exit` defaults to `0` - * - * @type {number | { enter?: number, exit?: number, appear?: number }} - */ - timeout: function timeout(props) { - var pt = _PropTypes.timeoutsShape; - if (!props.addEndListener) pt = pt.isRequired; + //! moment.js locale configuration - for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } + var symbolMap = { + '1': '១', + '2': '២', + '3': '៣', + '4': '៤', + '5': '៥', + '6': '៦', + '7': '៧', + '8': '៨', + '9': '៩', + '0': '០', + }, + numberMap = { + '១': '1', + '២': '2', + '៣': '3', + '៤': '4', + '៥': '5', + '៦': '6', + '៧': '7', + '៨': '8', + '៩': '9', + '០': '0', + }; - return pt.apply(void 0, [props].concat(args)); - }, + var km = moment.defineLocale('km', { + months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split( + '_' + ), + monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split( + '_' + ), + weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'), + weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'), + weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + meridiemParse: /ព្រឹក|ល្ងាច/, + isPM: function (input) { + return input === 'ល្ងាច'; + }, + meridiem: function (hour, minute, isLower) { + if (hour < 12) { + return 'ព្រឹក'; + } else { + return 'ល្ងាច'; + } + }, + calendar: { + sameDay: '[ថ្ងៃនេះ ម៉ោង] LT', + nextDay: '[ស្អែក ម៉ោង] LT', + nextWeek: 'dddd [ម៉ោង] LT', + lastDay: '[ម្សិលមិញ ម៉ោង] LT', + lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%sទៀត', + past: '%sមុន', + s: 'ប៉ុន្មានវិនាទី', + ss: '%d វិនាទី', + m: 'មួយនាទី', + mm: '%d នាទី', + h: 'មួយម៉ោង', + hh: '%d ម៉ោង', + d: 'មួយថ្ងៃ', + dd: '%d ថ្ងៃ', + M: 'មួយខែ', + MM: '%d ខែ', + y: 'មួយឆ្នាំ', + yy: '%d ឆ្នាំ', + }, + dayOfMonthOrdinalParse: /ទី\d{1,2}/, + ordinal: 'ទី%d', + preparse: function (string) { + return string.replace(/[១២៣៤៥៦៧៨៩០]/g, function (match) { + return numberMap[match]; + }); + }, + postformat: function (string) { + return string.replace(/\d/g, function (match) { + return symbolMap[match]; + }); + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - /** - * Add a custom transition end trigger. Called with the transitioning - * DOM node and a `done` callback. Allows for more fine grained transition end - * logic. **Note:** Timeouts are still used as a fallback if provided. - * - * ```jsx - * addEndListener={(node, done) => { - * // use the css transitionend event to mark the finish of a transition - * node.addEventListener('transitionend', done, false); - * }} - * ``` - */ - addEndListener: PropTypes.func, + return km; - /** - * Callback fired before the "entering" status is applied. An extra parameter - * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount - * - * @type Function(node: HtmlElement, isAppearing: bool) -> void - */ - onEnter: PropTypes.func, + }))); - /** - * Callback fired after the "entering" status is applied. An extra parameter - * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount - * - * @type Function(node: HtmlElement, isAppearing: bool) - */ - onEntering: PropTypes.func, - /** - * Callback fired after the "entered" status is applied. An extra parameter - * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount - * - * @type Function(node: HtmlElement, isAppearing: bool) -> void - */ - onEntered: PropTypes.func, + /***/ }), + /* 390 */ + /***/ (function(module, exports, __webpack_require__) { - /** - * Callback fired before the "exiting" status is applied. - * - * @type Function(node: HtmlElement) -> void - */ - onExit: PropTypes.func, + //! moment.js locale configuration + //! locale : Kannada [kn] + //! author : Rajeev Naik : https://github.com/rajeevnaikte - /** - * Callback fired after the "exiting" status is applied. - * - * @type Function(node: HtmlElement) -> void - */ - onExiting: PropTypes.func, + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - /** - * Callback fired after the "exited" status is applied. - * - * @type Function(node: HtmlElement) -> void - */ - onExited: PropTypes.func // Name the function so it is clearer in the documentation + //! moment.js locale configuration - } : {}; + var symbolMap = { + '1': '೧', + '2': '೨', + '3': '೩', + '4': '೪', + '5': '೫', + '6': '೬', + '7': '೭', + '8': '೮', + '9': '೯', + '0': '೦', + }, + numberMap = { + '೧': '1', + '೨': '2', + '೩': '3', + '೪': '4', + '೫': '5', + '೬': '6', + '೭': '7', + '೮': '8', + '೯': '9', + '೦': '0', + }; - function noop() {} + var kn = moment.defineLocale('kn', { + months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split( + '_' + ), + monthsShort: 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split( + '_' + ), + weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'), + weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'), + longDateFormat: { + LT: 'A h:mm', + LTS: 'A h:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm', + LLLL: 'dddd, D MMMM YYYY, A h:mm', + }, + calendar: { + sameDay: '[ಇಂದು] LT', + nextDay: '[ನಾಳೆ] LT', + nextWeek: 'dddd, LT', + lastDay: '[ನಿನ್ನೆ] LT', + lastWeek: '[ಕೊನೆಯ] dddd, LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s ನಂತರ', + past: '%s ಹಿಂದೆ', + s: 'ಕೆಲವು ಕ್ಷಣಗಳು', + ss: '%d ಸೆಕೆಂಡುಗಳು', + m: 'ಒಂದು ನಿಮಿಷ', + mm: '%d ನಿಮಿಷ', + h: 'ಒಂದು ಗಂಟೆ', + hh: '%d ಗಂಟೆ', + d: 'ಒಂದು ದಿನ', + dd: '%d ದಿನ', + M: 'ಒಂದು ತಿಂಗಳು', + MM: '%d ತಿಂಗಳು', + y: 'ಒಂದು ವರ್ಷ', + yy: '%d ವರ್ಷ', + }, + preparse: function (string) { + return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) { + return numberMap[match]; + }); + }, + postformat: function (string) { + return string.replace(/\d/g, function (match) { + return symbolMap[match]; + }); + }, + meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === 'ರಾತ್ರಿ') { + return hour < 4 ? hour : hour + 12; + } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') { + return hour; + } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') { + return hour >= 10 ? hour : hour + 12; + } else if (meridiem === 'ಸಂಜೆ') { + return hour + 12; + } + }, + meridiem: function (hour, minute, isLower) { + if (hour < 4) { + return 'ರಾತ್ರಿ'; + } else if (hour < 10) { + return 'ಬೆಳಿಗ್ಗೆ'; + } else if (hour < 17) { + return 'ಮಧ್ಯಾಹ್ನ'; + } else if (hour < 20) { + return 'ಸಂಜೆ'; + } else { + return 'ರಾತ್ರಿ'; + } + }, + dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/, + ordinal: function (number) { + return number + 'ನೇ'; + }, + week: { + dow: 0, // Sunday is the first day of the week. + doy: 6, // The week that contains Jan 6th is the first week of the year. + }, + }); - Transition.defaultProps = { - in: false, - mountOnEnter: false, - unmountOnExit: false, - appear: false, - enter: true, - exit: true, - onEnter: noop, - onEntering: noop, - onEntered: noop, - onExit: noop, - onExiting: noop, - onExited: noop - }; - Transition.UNMOUNTED = 0; - Transition.EXITED = 1; - Transition.ENTERING = 2; - Transition.ENTERED = 3; - Transition.EXITING = 4; + return kn; - var _default = (0, _reactLifecyclesCompat.polyfill)(Transition); + }))); - exports.default = _default; - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) /***/ }), - /* 528 */ + /* 391 */ /***/ (function(module, exports, __webpack_require__) { - "use strict"; - /* WEBPACK VAR INJECTION */(function(process) { - - exports.__esModule = true; - exports.classNamesShape = exports.timeoutsShape = void 0; - - var _propTypes = _interopRequireDefault(__webpack_require__(1)); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var timeoutsShape = process.env.NODE_ENV !== 'production' ? _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.shape({ - enter: _propTypes.default.number, - exit: _propTypes.default.number, - appear: _propTypes.default.number - }).isRequired]) : null; - exports.timeoutsShape = timeoutsShape; - var classNamesShape = process.env.NODE_ENV !== 'production' ? _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.shape({ - enter: _propTypes.default.string, - exit: _propTypes.default.string, - active: _propTypes.default.string - }), _propTypes.default.shape({ - enter: _propTypes.default.string, - enterDone: _propTypes.default.string, - enterActive: _propTypes.default.string, - exit: _propTypes.default.string, - exitDone: _propTypes.default.string, - exitActive: _propTypes.default.string - })]) : null; - exports.classNamesShape = classNamesShape; - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) - - /***/ }), - /* 529 */ - /***/ (function(module, exports, __webpack_require__) { + //! moment.js locale configuration + //! locale : Korean [ko] + //! author : Kyungwook, Park : https://github.com/kyungw00k + //! author : Jeeeyul Lee - "use strict"; - /* WEBPACK VAR INJECTION */(function(process) { + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - exports.__esModule = true; - exports.default = void 0; + //! moment.js locale configuration - var _propTypes = _interopRequireDefault(__webpack_require__(1)); + var ko = moment.defineLocale('ko', { + months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'), + monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split( + '_' + ), + weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'), + weekdaysShort: '일_월_화_수_목_금_토'.split('_'), + weekdaysMin: '일_월_화_수_목_금_토'.split('_'), + longDateFormat: { + LT: 'A h:mm', + LTS: 'A h:mm:ss', + L: 'YYYY.MM.DD.', + LL: 'YYYY년 MMMM D일', + LLL: 'YYYY년 MMMM D일 A h:mm', + LLLL: 'YYYY년 MMMM D일 dddd A h:mm', + l: 'YYYY.MM.DD.', + ll: 'YYYY년 MMMM D일', + lll: 'YYYY년 MMMM D일 A h:mm', + llll: 'YYYY년 MMMM D일 dddd A h:mm', + }, + calendar: { + sameDay: '오늘 LT', + nextDay: '내일 LT', + nextWeek: 'dddd LT', + lastDay: '어제 LT', + lastWeek: '지난주 dddd LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s 후', + past: '%s 전', + s: '몇 초', + ss: '%d초', + m: '1분', + mm: '%d분', + h: '한 시간', + hh: '%d시간', + d: '하루', + dd: '%d일', + M: '한 달', + MM: '%d달', + y: '일 년', + yy: '%d년', + }, + dayOfMonthOrdinalParse: /\d{1,2}(일|월|주)/, + ordinal: function (number, period) { + switch (period) { + case 'd': + case 'D': + case 'DDD': + return number + '일'; + case 'M': + return number + '월'; + case 'w': + case 'W': + return number + '주'; + default: + return number; + } + }, + meridiemParse: /오전|오후/, + isPM: function (token) { + return token === '오후'; + }, + meridiem: function (hour, minute, isUpper) { + return hour < 12 ? '오전' : '오후'; + }, + }); - var _react = _interopRequireDefault(__webpack_require__(0)); + return ko; - var _reactLifecyclesCompat = __webpack_require__(14); + }))); - var _ChildMapping = __webpack_require__(1651); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + /***/ }), + /* 392 */ + /***/ (function(module, exports, __webpack_require__) { - function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } + //! moment.js locale configuration + //! locale : Kurdish [ku] + //! author : Shahram Mebashar : https://github.com/ShahramMebashar - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } + //! moment.js locale configuration - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + var symbolMap = { + '1': '١', + '2': '٢', + '3': '٣', + '4': '٤', + '5': '٥', + '6': '٦', + '7': '٧', + '8': '٨', + '9': '٩', + '0': '٠', + }, + numberMap = { + '١': '1', + '٢': '2', + '٣': '3', + '٤': '4', + '٥': '5', + '٦': '6', + '٧': '7', + '٨': '8', + '٩': '9', + '٠': '0', + }, + months = [ + 'کانونی دووەم', + 'شوبات', + 'ئازار', + 'نیسان', + 'ئایار', + 'حوزەیران', + 'تەمموز', + 'ئاب', + 'ئەیلوول', + 'تشرینی یەكەم', + 'تشرینی دووەم', + 'كانونی یەکەم', + ]; - var values = Object.values || function (obj) { - return Object.keys(obj).map(function (k) { - return obj[k]; - }); - }; + var ku = moment.defineLocale('ku', { + months: months, + monthsShort: months, + weekdays: 'یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌'.split( + '_' + ), + weekdaysShort: 'یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌'.split( + '_' + ), + weekdaysMin: 'ی_د_س_چ_پ_ه_ش'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + meridiemParse: /ئێواره‌|به‌یانی/, + isPM: function (input) { + return /ئێواره‌/.test(input); + }, + meridiem: function (hour, minute, isLower) { + if (hour < 12) { + return 'به‌یانی'; + } else { + return 'ئێواره‌'; + } + }, + calendar: { + sameDay: '[ئه‌مرۆ كاتژمێر] LT', + nextDay: '[به‌یانی كاتژمێر] LT', + nextWeek: 'dddd [كاتژمێر] LT', + lastDay: '[دوێنێ كاتژمێر] LT', + lastWeek: 'dddd [كاتژمێر] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'له‌ %s', + past: '%s', + s: 'چه‌ند چركه‌یه‌ك', + ss: 'چركه‌ %d', + m: 'یه‌ك خوله‌ك', + mm: '%d خوله‌ك', + h: 'یه‌ك كاتژمێر', + hh: '%d كاتژمێر', + d: 'یه‌ك ڕۆژ', + dd: '%d ڕۆژ', + M: 'یه‌ك مانگ', + MM: '%d مانگ', + y: 'یه‌ك ساڵ', + yy: '%d ساڵ', + }, + preparse: function (string) { + return string + .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) { + return numberMap[match]; + }) + .replace(/،/g, ','); + }, + postformat: function (string) { + return string + .replace(/\d/g, function (match) { + return symbolMap[match]; + }) + .replace(/,/g, '،'); + }, + week: { + dow: 6, // Saturday is the first day of the week. + doy: 12, // The week that contains Jan 12th is the first week of the year. + }, + }); - var defaultProps = { - component: 'div', - childFactory: function childFactory(child) { - return child; - } - /** - * The `` component manages a set of transition components - * (`` and ``) in a list. Like with the transition - * components, `` is a state machine for managing the mounting - * and unmounting of components over time. - * - * Consider the example below. As items are removed or added to the TodoList the - * `in` prop is toggled automatically by the ``. - * - * Note that `` does not define any animation behavior! - * Exactly _how_ a list item animates is up to the individual transition - * component. This means you can mix and match animations across different list - * items. - */ + return ku; - }; + }))); - var TransitionGroup = - /*#__PURE__*/ - function (_React$Component) { - _inheritsLoose(TransitionGroup, _React$Component); - function TransitionGroup(props, context) { - var _this; + /***/ }), + /* 393 */ + /***/ (function(module, exports, __webpack_require__) { - _this = _React$Component.call(this, props, context) || this; + //! moment.js locale configuration + //! locale : Kyrgyz [ky] + //! author : Chyngyz Arystan uulu : https://github.com/chyngyz - var handleExited = _this.handleExited.bind(_assertThisInitialized(_assertThisInitialized(_this))); // Initial children should all be entering, dependent on appear + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; + //! moment.js locale configuration - _this.state = { - handleExited: handleExited, - firstRender: true + var suffixes = { + 0: '-чү', + 1: '-чи', + 2: '-чи', + 3: '-чү', + 4: '-чү', + 5: '-чи', + 6: '-чы', + 7: '-чи', + 8: '-чи', + 9: '-чу', + 10: '-чу', + 20: '-чы', + 30: '-чу', + 40: '-чы', + 50: '-чү', + 60: '-чы', + 70: '-чи', + 80: '-чи', + 90: '-чу', + 100: '-чү', }; - return _this; - } - var _proto = TransitionGroup.prototype; + var ky = moment.defineLocale('ky', { + months: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split( + '_' + ), + monthsShort: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split( + '_' + ), + weekdays: 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split( + '_' + ), + weekdaysShort: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'), + weekdaysMin: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Бүгүн саат] LT', + nextDay: '[Эртең саат] LT', + nextWeek: 'dddd [саат] LT', + lastDay: '[Кечээ саат] LT', + lastWeek: '[Өткөн аптанын] dddd [күнү] [саат] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s ичинде', + past: '%s мурун', + s: 'бирнече секунд', + ss: '%d секунд', + m: 'бир мүнөт', + mm: '%d мүнөт', + h: 'бир саат', + hh: '%d саат', + d: 'бир күн', + dd: '%d күн', + M: 'бир ай', + MM: '%d ай', + y: 'бир жыл', + yy: '%d жыл', + }, + dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/, + ordinal: function (number) { + var a = number % 10, + b = number >= 100 ? 100 : null; + return number + (suffixes[number] || suffixes[a] || suffixes[b]); + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, + }); - _proto.getChildContext = function getChildContext() { - return { - transitionGroup: { - isMounting: !this.appeared - } - }; - }; + return ky; - _proto.componentDidMount = function componentDidMount() { - this.appeared = true; - this.mounted = true; - }; + }))); - _proto.componentWillUnmount = function componentWillUnmount() { - this.mounted = false; - }; - TransitionGroup.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, _ref) { - var prevChildMapping = _ref.children, - handleExited = _ref.handleExited, - firstRender = _ref.firstRender; - return { - children: firstRender ? (0, _ChildMapping.getInitialChildMapping)(nextProps, handleExited) : (0, _ChildMapping.getNextChildMapping)(nextProps, prevChildMapping, handleExited), - firstRender: false - }; - }; + /***/ }), + /* 394 */ + /***/ (function(module, exports, __webpack_require__) { - _proto.handleExited = function handleExited(child, node) { - var currentChildMapping = (0, _ChildMapping.getChildMapping)(this.props.children); - if (child.key in currentChildMapping) return; + //! moment.js locale configuration + //! locale : Luxembourgish [lb] + //! author : mweimerskirch : https://github.com/mweimerskirch + //! author : David Raison : https://github.com/kwisatz - if (child.props.onExited) { - child.props.onExited(node); - } + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - if (this.mounted) { - this.setState(function (state) { - var children = _extends({}, state.children); + //! moment.js locale configuration - delete children[child.key]; - return { - children: children + function processRelativeTime(number, withoutSuffix, key, isFuture) { + var format = { + m: ['eng Minutt', 'enger Minutt'], + h: ['eng Stonn', 'enger Stonn'], + d: ['een Dag', 'engem Dag'], + M: ['ee Mount', 'engem Mount'], + y: ['ee Joer', 'engem Joer'], }; - }); + return withoutSuffix ? format[key][0] : format[key][1]; } - }; - - _proto.render = function render() { - var _this$props = this.props, - Component = _this$props.component, - childFactory = _this$props.childFactory, - props = _objectWithoutPropertiesLoose(_this$props, ["component", "childFactory"]); - - var children = values(this.state.children).map(childFactory); - delete props.appear; - delete props.enter; - delete props.exit; - - if (Component === null) { - return children; + function processFutureTime(string) { + var number = string.substr(0, string.indexOf(' ')); + if (eifelerRegelAppliesToNumber(number)) { + return 'a ' + string; + } + return 'an ' + string; + } + function processPastTime(string) { + var number = string.substr(0, string.indexOf(' ')); + if (eifelerRegelAppliesToNumber(number)) { + return 'viru ' + string; + } + return 'virun ' + string; + } + /** + * Returns true if the word before the given number loses the '-n' ending. + * e.g. 'an 10 Deeg' but 'a 5 Deeg' + * + * @param number {integer} + * @returns {boolean} + */ + function eifelerRegelAppliesToNumber(number) { + number = parseInt(number, 10); + if (isNaN(number)) { + return false; + } + if (number < 0) { + // Negative Number --> always true + return true; + } else if (number < 10) { + // Only 1 digit + if (4 <= number && number <= 7) { + return true; + } + return false; + } else if (number < 100) { + // 2 digits + var lastDigit = number % 10, + firstDigit = number / 10; + if (lastDigit === 0) { + return eifelerRegelAppliesToNumber(firstDigit); + } + return eifelerRegelAppliesToNumber(lastDigit); + } else if (number < 10000) { + // 3 or 4 digits --> recursively check first digit + while (number >= 10) { + number = number / 10; + } + return eifelerRegelAppliesToNumber(number); + } else { + // Anything larger than 4 digits: recursively check first n-3 digits + number = number / 1000; + return eifelerRegelAppliesToNumber(number); + } } - return _react.default.createElement(Component, props, children); - }; + var lb = moment.defineLocale('lb', { + months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split( + '_' + ), + monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split( + '_' + ), + weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'), + weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'H:mm [Auer]', + LTS: 'H:mm:ss [Auer]', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm [Auer]', + LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]', + }, + calendar: { + sameDay: '[Haut um] LT', + sameElse: 'L', + nextDay: '[Muer um] LT', + nextWeek: 'dddd [um] LT', + lastDay: '[Gëschter um] LT', + lastWeek: function () { + // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule + switch (this.day()) { + case 2: + case 4: + return '[Leschten] dddd [um] LT'; + default: + return '[Leschte] dddd [um] LT'; + } + }, + }, + relativeTime: { + future: processFutureTime, + past: processPastTime, + s: 'e puer Sekonnen', + ss: '%d Sekonnen', + m: processRelativeTime, + mm: '%d Minutten', + h: processRelativeTime, + hh: '%d Stonnen', + d: processRelativeTime, + dd: '%d Deeg', + M: processRelativeTime, + MM: '%d Méint', + y: processRelativeTime, + yy: '%d Joer', + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - return TransitionGroup; - }(_react.default.Component); + return lb; - TransitionGroup.childContextTypes = { - transitionGroup: _propTypes.default.object.isRequired - }; - TransitionGroup.propTypes = process.env.NODE_ENV !== "production" ? { - /** - * `` renders a `
    ` by default. You can change this - * behavior by providing a `component` prop. - * If you use React v16+ and would like to avoid a wrapping `
    ` element - * you can pass in `component={null}`. This is useful if the wrapping div - * borks your css styles. - */ - component: _propTypes.default.any, + }))); - /** - * A set of `` components, that are toggled `in` and out as they - * leave. the `` will inject specific transition props, so - * remember to spread them through if you are wrapping the `` as - * with our `` example. - * - * While this component is meant for multiple `Transition` or `CSSTransition` - * children, sometimes you may want to have a single transition child with - * content that you want to be transitioned out and in when you change it - * (e.g. routes, images etc.) In that case you can change the `key` prop of - * the transition child as you change its content, this will cause - * `TransitionGroup` to transition the child out and back in. - */ - children: _propTypes.default.node, - /** - * A convenience prop that enables or disables appear animations - * for all children. Note that specifying this will override any defaults set - * on individual children Transitions. - */ - appear: _propTypes.default.bool, + /***/ }), + /* 395 */ + /***/ (function(module, exports, __webpack_require__) { - /** - * A convenience prop that enables or disables enter animations - * for all children. Note that specifying this will override any defaults set - * on individual children Transitions. - */ - enter: _propTypes.default.bool, + //! moment.js locale configuration + //! locale : Lao [lo] + //! author : Ryan Hart : https://github.com/ryanhart2 - /** - * A convenience prop that enables or disables exit animations - * for all children. Note that specifying this will override any defaults set - * on individual children Transitions. - */ - exit: _propTypes.default.bool, + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - /** - * You may need to apply reactive updates to a child as it is exiting. - * This is generally done by using `cloneElement` however in the case of an exiting - * child the element has already been removed and not accessible to the consumer. - * - * If you do need to update a child as it leaves you can provide a `childFactory` - * to wrap every child, even the ones that are leaving. - * - * @type Function(child: ReactElement) -> ReactElement - */ - childFactory: _propTypes.default.func - } : {}; - TransitionGroup.defaultProps = defaultProps; + //! moment.js locale configuration - var _default = (0, _reactLifecyclesCompat.polyfill)(TransitionGroup); + var lo = moment.defineLocale('lo', { + months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split( + '_' + ), + monthsShort: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split( + '_' + ), + weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'), + weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'), + weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'ວັນdddd D MMMM YYYY HH:mm', + }, + meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/, + isPM: function (input) { + return input === 'ຕອນແລງ'; + }, + meridiem: function (hour, minute, isLower) { + if (hour < 12) { + return 'ຕອນເຊົ້າ'; + } else { + return 'ຕອນແລງ'; + } + }, + calendar: { + sameDay: '[ມື້ນີ້ເວລາ] LT', + nextDay: '[ມື້ອື່ນເວລາ] LT', + nextWeek: '[ວັນ]dddd[ໜ້າເວລາ] LT', + lastDay: '[ມື້ວານນີ້ເວລາ] LT', + lastWeek: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'ອີກ %s', + past: '%sຜ່ານມາ', + s: 'ບໍ່ເທົ່າໃດວິນາທີ', + ss: '%d ວິນາທີ', + m: '1 ນາທີ', + mm: '%d ນາທີ', + h: '1 ຊົ່ວໂມງ', + hh: '%d ຊົ່ວໂມງ', + d: '1 ມື້', + dd: '%d ມື້', + M: '1 ເດືອນ', + MM: '%d ເດືອນ', + y: '1 ປີ', + yy: '%d ປີ', + }, + dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/, + ordinal: function (number) { + return 'ທີ່' + number; + }, + }); - exports.default = _default; - module.exports = exports["default"]; - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) + return lo; - /***/ }), - /* 530 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + }))); - "use strict"; - var util = { - isAppearSupported: function isAppearSupported(props) { - return props.transitionName && props.transitionAppear || props.animation.appear; - }, - isEnterSupported: function isEnterSupported(props) { - return props.transitionName && props.transitionEnter || props.animation.enter; - }, - isLeaveSupported: function isLeaveSupported(props) { - return props.transitionName && props.transitionLeave || props.animation.leave; - }, - allowAppearCallback: function allowAppearCallback(props) { - return props.transitionAppear || props.animation.appear; - }, - allowEnterCallback: function allowEnterCallback(props) { - return props.transitionEnter || props.animation.enter; - }, - allowLeaveCallback: function allowLeaveCallback(props) { - return props.transitionLeave || props.animation.leave; - } - }; - /* harmony default export */ __webpack_exports__["a"] = (util); /***/ }), - /* 531 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { - - "use strict"; - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(23); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(7); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(9); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(10); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react__ = __webpack_require__(0); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types__ = __webpack_require__(1); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_prop_types__); + /* 396 */ + /***/ (function(module, exports, __webpack_require__) { + //! moment.js locale configuration + //! locale : Lithuanian [lt] + //! author : Mindaugas Mozūras : https://github.com/mmozuras + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; + //! moment.js locale configuration + var units = { + ss: 'sekundė_sekundžių_sekundes', + m: 'minutė_minutės_minutę', + mm: 'minutės_minučių_minutes', + h: 'valanda_valandos_valandą', + hh: 'valandos_valandų_valandas', + d: 'diena_dienos_dieną', + dd: 'dienos_dienų_dienas', + M: 'mėnuo_mėnesio_mėnesį', + MM: 'mėnesiai_mėnesių_mėnesius', + y: 'metai_metų_metus', + yy: 'metai_metų_metus', + }; + function translateSeconds(number, withoutSuffix, key, isFuture) { + if (withoutSuffix) { + return 'kelios sekundės'; + } else { + return isFuture ? 'kelių sekundžių' : 'kelias sekundes'; + } + } + function translateSingular(number, withoutSuffix, key, isFuture) { + return withoutSuffix + ? forms(key)[0] + : isFuture + ? forms(key)[1] + : forms(key)[2]; + } + function special(number) { + return number % 10 === 0 || (number > 10 && number < 20); + } + function forms(key) { + return units[key].split('_'); + } + function translate(number, withoutSuffix, key, isFuture) { + var result = number + ' '; + if (number === 1) { + return ( + result + translateSingular(number, withoutSuffix, key[0], isFuture) + ); + } else if (withoutSuffix) { + return result + (special(number) ? forms(key)[1] : forms(key)[0]); + } else { + if (isFuture) { + return result + forms(key)[1]; + } else { + return result + (special(number) ? forms(key)[1] : forms(key)[2]); + } + } + } + var lt = moment.defineLocale('lt', { + months: { + format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split( + '_' + ), + standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split( + '_' + ), + isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/, + }, + monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'), + weekdays: { + format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split( + '_' + ), + standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split( + '_' + ), + isFormat: /dddd HH:mm/, + }, + weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'), + weekdaysMin: 'S_P_A_T_K_Pn_Š'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY-MM-DD', + LL: 'YYYY [m.] MMMM D [d.]', + LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]', + LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]', + l: 'YYYY-MM-DD', + ll: 'YYYY [m.] MMMM D [d.]', + lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]', + llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]', + }, + calendar: { + sameDay: '[Šiandien] LT', + nextDay: '[Rytoj] LT', + nextWeek: 'dddd LT', + lastDay: '[Vakar] LT', + lastWeek: '[Praėjusį] dddd LT', + sameElse: 'L', + }, + relativeTime: { + future: 'po %s', + past: 'prieš %s', + s: translateSeconds, + ss: translate, + m: translateSingular, + mm: translate, + h: translateSingular, + hh: translate, + d: translateSingular, + dd: translate, + M: translateSingular, + MM: translate, + y: translateSingular, + yy: translate, + }, + dayOfMonthOrdinalParse: /\d{1,2}-oji/, + ordinal: function (number) { + return number + '-oji'; + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); + return lt; + }))); - var LazyRenderBox = function (_Component) { - __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default()(LazyRenderBox, _Component); - function LazyRenderBox() { - __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, LazyRenderBox); + /***/ }), + /* 397 */ + /***/ (function(module, exports, __webpack_require__) { - return __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(this, _Component.apply(this, arguments)); - } + //! moment.js locale configuration + //! locale : Latvian [lv] + //! author : Kristaps Karlsons : https://github.com/skakri + //! author : Jānis Elmeris : https://github.com/JanisE - LazyRenderBox.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) { - return nextProps.hiddenClassName || nextProps.visible; - }; + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - LazyRenderBox.prototype.render = function render() { - var _props = this.props, - hiddenClassName = _props.hiddenClassName, - visible = _props.visible, - props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['hiddenClassName', 'visible']); + //! moment.js locale configuration - if (hiddenClassName || __WEBPACK_IMPORTED_MODULE_4_react___default.a.Children.count(props.children) > 1) { - if (!visible && hiddenClassName) { - props.className += ' ' + hiddenClassName; - } - return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement('div', props); + var units = { + ss: 'sekundes_sekundēm_sekunde_sekundes'.split('_'), + m: 'minūtes_minūtēm_minūte_minūtes'.split('_'), + mm: 'minūtes_minūtēm_minūte_minūtes'.split('_'), + h: 'stundas_stundām_stunda_stundas'.split('_'), + hh: 'stundas_stundām_stunda_stundas'.split('_'), + d: 'dienas_dienām_diena_dienas'.split('_'), + dd: 'dienas_dienām_diena_dienas'.split('_'), + M: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'), + MM: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'), + y: 'gada_gadiem_gads_gadi'.split('_'), + yy: 'gada_gadiem_gads_gadi'.split('_'), + }; + /** + * @param withoutSuffix boolean true = a length of time; false = before/after a period of time. + */ + function format(forms, number, withoutSuffix) { + if (withoutSuffix) { + // E.g. "21 minūte", "3 minūtes". + return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3]; + } else { + // E.g. "21 minūtes" as in "pēc 21 minūtes". + // E.g. "3 minūtēm" as in "pēc 3 minūtēm". + return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1]; + } + } + function relativeTimeWithPlural(number, withoutSuffix, key) { + return number + ' ' + format(units[key], number, withoutSuffix); + } + function relativeTimeWithSingular(number, withoutSuffix, key) { + return format(units[key], number, withoutSuffix); + } + function relativeSeconds(number, withoutSuffix) { + return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm'; } - return __WEBPACK_IMPORTED_MODULE_4_react___default.a.Children.only(props.children); - }; - - return LazyRenderBox; - }(__WEBPACK_IMPORTED_MODULE_4_react__["Component"]); + var lv = moment.defineLocale('lv', { + months: 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split( + '_' + ), + monthsShort: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'), + weekdays: 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split( + '_' + ), + weekdaysShort: 'Sv_P_O_T_C_Pk_S'.split('_'), + weekdaysMin: 'Sv_P_O_T_C_Pk_S'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY.', + LL: 'YYYY. [gada] D. MMMM', + LLL: 'YYYY. [gada] D. MMMM, HH:mm', + LLLL: 'YYYY. [gada] D. MMMM, dddd, HH:mm', + }, + calendar: { + sameDay: '[Šodien pulksten] LT', + nextDay: '[Rīt pulksten] LT', + nextWeek: 'dddd [pulksten] LT', + lastDay: '[Vakar pulksten] LT', + lastWeek: '[Pagājušā] dddd [pulksten] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'pēc %s', + past: 'pirms %s', + s: relativeSeconds, + ss: relativeTimeWithPlural, + m: relativeTimeWithSingular, + mm: relativeTimeWithPlural, + h: relativeTimeWithSingular, + hh: relativeTimeWithPlural, + d: relativeTimeWithSingular, + dd: relativeTimeWithPlural, + M: relativeTimeWithSingular, + MM: relativeTimeWithPlural, + y: relativeTimeWithSingular, + yy: relativeTimeWithPlural, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - LazyRenderBox.propTypes = { - children: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.any, - className: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, - visible: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool, - hiddenClassName: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string - }; + return lv; + }))); - /* harmony default export */ __webpack_exports__["a"] = (LazyRenderBox); /***/ }), - /* 532 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + /* 398 */ + /***/ (function(module, exports, __webpack_require__) { - "use strict"; - /* harmony export (immutable) */ __webpack_exports__["a"] = getAlignFromPlacement; - /* harmony export (immutable) */ __webpack_exports__["b"] = getAlignPopupClassName; - /* harmony export (immutable) */ __webpack_exports__["c"] = saveRef; - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(8); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); + //! moment.js locale configuration + //! locale : Montenegrin [me] + //! author : Miodrag Nikač : https://github.com/miodragnikac - function isPointsEq(a1, a2, isAlignPoint) { - if (isAlignPoint) { - return a1[0] === a2[0]; - } - return a1[0] === a2[0] && a1[1] === a2[1]; - } + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function getAlignFromPlacement(builtinPlacements, placementStr, align) { - var baseAlign = builtinPlacements[placementStr] || {}; - return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, baseAlign, align); - } + //! moment.js locale configuration - function getAlignPopupClassName(builtinPlacements, prefixCls, align, isAlignPoint) { - var points = align.points; - for (var placement in builtinPlacements) { - if (builtinPlacements.hasOwnProperty(placement)) { - if (isPointsEq(builtinPlacements[placement].points, points, isAlignPoint)) { - return prefixCls + '-placement-' + placement; - } - } - } - return ''; - } + var translator = { + words: { + //Different grammatical cases + ss: ['sekund', 'sekunda', 'sekundi'], + m: ['jedan minut', 'jednog minuta'], + mm: ['minut', 'minuta', 'minuta'], + h: ['jedan sat', 'jednog sata'], + hh: ['sat', 'sata', 'sati'], + dd: ['dan', 'dana', 'dana'], + MM: ['mjesec', 'mjeseca', 'mjeseci'], + yy: ['godina', 'godine', 'godina'], + }, + correctGrammaticalCase: function (number, wordKey) { + return number === 1 + ? wordKey[0] + : number >= 2 && number <= 4 + ? wordKey[1] + : wordKey[2]; + }, + translate: function (number, withoutSuffix, key) { + var wordKey = translator.words[key]; + if (key.length === 1) { + return withoutSuffix ? wordKey[0] : wordKey[1]; + } else { + return ( + number + + ' ' + + translator.correctGrammaticalCase(number, wordKey) + ); + } + }, + }; - function saveRef(name, component) { - this[name] = component; - } + var me = moment.defineLocale('me', { + months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split( + '_' + ), + monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split( + '_' + ), + weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), + weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd, D. MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[danas u] LT', + nextDay: '[sjutra u] LT', - /***/ }), - /* 533 */ - /***/ (function(module, exports, __webpack_require__) { + nextWeek: function () { + switch (this.day()) { + case 0: + return '[u] [nedjelju] [u] LT'; + case 3: + return '[u] [srijedu] [u] LT'; + case 6: + return '[u] [subotu] [u] LT'; + case 1: + case 2: + case 4: + case 5: + return '[u] dddd [u] LT'; + } + }, + lastDay: '[juče u] LT', + lastWeek: function () { + var lastWeekDays = [ + '[prošle] [nedjelje] [u] LT', + '[prošlog] [ponedjeljka] [u] LT', + '[prošlog] [utorka] [u] LT', + '[prošle] [srijede] [u] LT', + '[prošlog] [četvrtka] [u] LT', + '[prošlog] [petka] [u] LT', + '[prošle] [subote] [u] LT', + ]; + return lastWeekDays[this.day()]; + }, + sameElse: 'L', + }, + relativeTime: { + future: 'za %s', + past: 'prije %s', + s: 'nekoliko sekundi', + ss: translator.translate, + m: translator.translate, + mm: translator.translate, + h: translator.translate, + hh: translator.translate, + d: 'dan', + dd: translator.translate, + M: 'mjesec', + MM: translator.translate, + y: 'godinu', + yy: translator.translate, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, + }); - "use strict"; - /* WEBPACK VAR INJECTION */(function(process) {/** - * Copyright (c) 2014-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ + return me; + }))); - /** - * Similar to invariant but only logs a warning if the condition is not met. - * This can be used to log issues in development environments in critical - * paths. Removing the logging code for production environments will keep the - * same logic and follow the same code paths. - */ + /***/ }), + /* 399 */ + /***/ (function(module, exports, __webpack_require__) { - var __DEV__ = process.env.NODE_ENV !== 'production'; + //! moment.js locale configuration + //! locale : Maori [mi] + //! author : John Corrigan : https://github.com/johnideal - var warning = function() {}; + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - if (__DEV__) { - var printWarning = function printWarning(format, args) { - var len = arguments.length; - args = new Array(len > 1 ? len - 1 : 0); - for (var key = 1; key < len; key++) { - args[key - 1] = arguments[key]; - } - var argIndex = 0; - var message = 'Warning: ' + - format.replace(/%s/g, function() { - return args[argIndex++]; - }); - if (typeof console !== 'undefined') { - console.error(message); - } - try { - // --- Welcome to debugging React --- - // This error was thrown as a convenience so that you can use this stack - // to find the callsite that caused this warning to fire. - throw new Error(message); - } catch (x) {} - } + //! moment.js locale configuration + + var mi = moment.defineLocale('mi', { + months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split( + '_' + ), + monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split( + '_' + ), + monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, + monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, + monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, + monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i, + weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'), + weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'), + weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY [i] HH:mm', + LLLL: 'dddd, D MMMM YYYY [i] HH:mm', + }, + calendar: { + sameDay: '[i teie mahana, i] LT', + nextDay: '[apopo i] LT', + nextWeek: 'dddd [i] LT', + lastDay: '[inanahi i] LT', + lastWeek: 'dddd [whakamutunga i] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'i roto i %s', + past: '%s i mua', + s: 'te hēkona ruarua', + ss: '%d hēkona', + m: 'he meneti', + mm: '%d meneti', + h: 'te haora', + hh: '%d haora', + d: 'he ra', + dd: '%d ra', + M: 'he marama', + MM: '%d marama', + y: 'he tau', + yy: '%d tau', + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - warning = function(condition, format, args) { - var len = arguments.length; - args = new Array(len > 2 ? len - 2 : 0); - for (var key = 2; key < len; key++) { - args[key - 2] = arguments[key]; - } - if (format === undefined) { - throw new Error( - '`warning(condition, format, ...args)` requires a warning ' + - 'message argument' - ); - } - if (!condition) { - printWarning.apply(null, [format].concat(args)); - } - }; - } + return mi; - module.exports = warning; + }))); - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) /***/ }), - /* 534 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { - - "use strict"; - /* unused harmony export InternalTreeNode */ - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames__ = __webpack_require__(2); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_classnames__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rc_animate_es_CSSMotion__ = __webpack_require__(535); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_util_es_Children_toArray__ = __webpack_require__(119); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react_lifecycles_compat__ = __webpack_require__(14); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__contextTypes__ = __webpack_require__(537); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__util__ = __webpack_require__(208); - function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + /* 400 */ + /***/ (function(module, exports, __webpack_require__) { - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } + //! moment.js locale configuration + //! locale : Macedonian [mk] + //! author : Borislav Mickov : https://github.com/B0k0 + //! author : Sashko Todorov : https://github.com/bkyceh - function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + //! moment.js locale configuration - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + var mk = moment.defineLocale('mk', { + months: 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split( + '_' + ), + monthsShort: 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'), + weekdays: 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split( + '_' + ), + weekdaysShort: 'нед_пон_вто_сре_чет_пет_саб'.split('_'), + weekdaysMin: 'нe_пo_вт_ср_че_пе_сa'.split('_'), + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'D.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY H:mm', + LLLL: 'dddd, D MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[Денес во] LT', + nextDay: '[Утре во] LT', + nextWeek: '[Во] dddd [во] LT', + lastDay: '[Вчера во] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + case 3: + case 6: + return '[Изминатата] dddd [во] LT'; + case 1: + case 2: + case 4: + case 5: + return '[Изминатиот] dddd [во] LT'; + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'за %s', + past: 'пред %s', + s: 'неколку секунди', + ss: '%d секунди', + m: 'една минута', + mm: '%d минути', + h: 'еден час', + hh: '%d часа', + d: 'еден ден', + dd: '%d дена', + M: 'еден месец', + MM: '%d месеци', + y: 'една година', + yy: '%d години', + }, + dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/, + ordinal: function (number) { + var lastDigit = number % 10, + last2Digits = number % 100; + if (number === 0) { + return number + '-ев'; + } else if (last2Digits === 0) { + return number + '-ен'; + } else if (last2Digits > 10 && last2Digits < 20) { + return number + '-ти'; + } else if (lastDigit === 1) { + return number + '-ви'; + } else if (lastDigit === 2) { + return number + '-ри'; + } else if (lastDigit === 7 || lastDigit === 8) { + return number + '-ми'; + } else { + return number + '-ти'; + } + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, + }); - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + return mk; - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + }))); - function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /***/ }), + /* 401 */ + /***/ (function(module, exports, __webpack_require__) { - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + //! moment.js locale configuration + //! locale : Malayalam [ml] + //! author : Floyd Pink : https://github.com/floydpink - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + //! moment.js locale configuration - function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + var ml = moment.defineLocale('ml', { + months: 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split( + '_' + ), + monthsShort: 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split( + '_' + ), + weekdaysShort: 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'), + weekdaysMin: 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'), + longDateFormat: { + LT: 'A h:mm -നു', + LTS: 'A h:mm:ss -നു', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm -നു', + LLLL: 'dddd, D MMMM YYYY, A h:mm -നു', + }, + calendar: { + sameDay: '[ഇന്ന്] LT', + nextDay: '[നാളെ] LT', + nextWeek: 'dddd, LT', + lastDay: '[ഇന്നലെ] LT', + lastWeek: '[കഴിഞ്ഞ] dddd, LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s കഴിഞ്ഞ്', + past: '%s മുൻപ്', + s: 'അൽപ നിമിഷങ്ങൾ', + ss: '%d സെക്കൻഡ്', + m: 'ഒരു മിനിറ്റ്', + mm: '%d മിനിറ്റ്', + h: 'ഒരു മണിക്കൂർ', + hh: '%d മണിക്കൂർ', + d: 'ഒരു ദിവസം', + dd: '%d ദിവസം', + M: 'ഒരു മാസം', + MM: '%d മാസം', + y: 'ഒരു വർഷം', + yy: '%d വർഷം', + }, + meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if ( + (meridiem === 'രാത്രി' && hour >= 4) || + meridiem === 'ഉച്ച കഴിഞ്ഞ്' || + meridiem === 'വൈകുന്നേരം' + ) { + return hour + 12; + } else { + return hour; + } + }, + meridiem: function (hour, minute, isLower) { + if (hour < 4) { + return 'രാത്രി'; + } else if (hour < 12) { + return 'രാവിലെ'; + } else if (hour < 17) { + return 'ഉച്ച കഴിഞ്ഞ്'; + } else if (hour < 20) { + return 'വൈകുന്നേരം'; + } else { + return 'രാത്രി'; + } + }, + }); - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + return ml; - function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + }))); - function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + /***/ }), + /* 402 */ + /***/ (function(module, exports, __webpack_require__) { + //! moment.js locale configuration + //! locale : Mongolian [mn] + //! author : Javkhlantugs Nyamdorj : https://github.com/javkhaanj7 - // @ts-ignore + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; + //! moment.js locale configuration + function translate(number, withoutSuffix, key, isFuture) { + switch (key) { + case 's': + return withoutSuffix ? 'хэдхэн секунд' : 'хэдхэн секундын'; + case 'ss': + return number + (withoutSuffix ? ' секунд' : ' секундын'); + case 'm': + case 'mm': + return number + (withoutSuffix ? ' минут' : ' минутын'); + case 'h': + case 'hh': + return number + (withoutSuffix ? ' цаг' : ' цагийн'); + case 'd': + case 'dd': + return number + (withoutSuffix ? ' өдөр' : ' өдрийн'); + case 'M': + case 'MM': + return number + (withoutSuffix ? ' сар' : ' сарын'); + case 'y': + case 'yy': + return number + (withoutSuffix ? ' жил' : ' жилийн'); + default: + return number; + } + } + var mn = moment.defineLocale('mn', { + months: 'Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар'.split( + '_' + ), + monthsShort: '1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба'.split('_'), + weekdaysShort: 'Ням_Дав_Мяг_Лха_Пүр_Баа_Бям'.split('_'), + weekdaysMin: 'Ня_Да_Мя_Лх_Пү_Ба_Бя'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY-MM-DD', + LL: 'YYYY оны MMMMын D', + LLL: 'YYYY оны MMMMын D HH:mm', + LLLL: 'dddd, YYYY оны MMMMын D HH:mm', + }, + meridiemParse: /ҮӨ|ҮХ/i, + isPM: function (input) { + return input === 'ҮХ'; + }, + meridiem: function (hour, minute, isLower) { + if (hour < 12) { + return 'ҮӨ'; + } else { + return 'ҮХ'; + } + }, + calendar: { + sameDay: '[Өнөөдөр] LT', + nextDay: '[Маргааш] LT', + nextWeek: '[Ирэх] dddd LT', + lastDay: '[Өчигдөр] LT', + lastWeek: '[Өнгөрсөн] dddd LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s дараа', + past: '%s өмнө', + s: translate, + ss: translate, + m: translate, + mm: translate, + h: translate, + hh: translate, + d: translate, + dd: translate, + M: translate, + MM: translate, + y: translate, + yy: translate, + }, + dayOfMonthOrdinalParse: /\d{1,2} өдөр/, + ordinal: function (number, period) { + switch (period) { + case 'd': + case 'D': + case 'DDD': + return number + ' өдөр'; + default: + return number; + } + }, + }); + return mn; + }))); - var ICON_OPEN = 'open'; - var ICON_CLOSE = 'close'; - var defaultTitle = '---'; - var TreeNode = /*#__PURE__*/function (_React$Component) { - _inherits(TreeNode, _React$Component); + /***/ }), + /* 403 */ + /***/ (function(module, exports, __webpack_require__) { - var _super = _createSuper(TreeNode); + //! moment.js locale configuration + //! locale : Marathi [mr] + //! author : Harshad Kale : https://github.com/kalehv + //! author : Vivek Athalye : https://github.com/vnathalye - function TreeNode() { - var _this; + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - _classCallCheck(this, TreeNode); + //! moment.js locale configuration - _this = _super.apply(this, arguments); - _this.state = { - dragNodeHighlight: false - }; + var symbolMap = { + '1': '१', + '2': '२', + '3': '३', + '4': '४', + '5': '५', + '6': '६', + '7': '७', + '8': '८', + '9': '९', + '0': '०', + }, + numberMap = { + '१': '1', + '२': '2', + '३': '3', + '४': '4', + '५': '5', + '६': '6', + '७': '7', + '८': '8', + '९': '9', + '०': '0', + }; - _this.onSelectorClick = function (e) { - // Click trigger before select/check operation - var onNodeClick = _this.props.context.onNodeClick; - onNodeClick(e, _assertThisInitialized(_this)); + function relativeTimeMr(number, withoutSuffix, string, isFuture) { + var output = ''; + if (withoutSuffix) { + switch (string) { + case 's': + output = 'काही सेकंद'; + break; + case 'ss': + output = '%d सेकंद'; + break; + case 'm': + output = 'एक मिनिट'; + break; + case 'mm': + output = '%d मिनिटे'; + break; + case 'h': + output = 'एक तास'; + break; + case 'hh': + output = '%d तास'; + break; + case 'd': + output = 'एक दिवस'; + break; + case 'dd': + output = '%d दिवस'; + break; + case 'M': + output = 'एक महिना'; + break; + case 'MM': + output = '%d महिने'; + break; + case 'y': + output = 'एक वर्ष'; + break; + case 'yy': + output = '%d वर्षे'; + break; + } + } else { + switch (string) { + case 's': + output = 'काही सेकंदां'; + break; + case 'ss': + output = '%d सेकंदां'; + break; + case 'm': + output = 'एका मिनिटा'; + break; + case 'mm': + output = '%d मिनिटां'; + break; + case 'h': + output = 'एका तासा'; + break; + case 'hh': + output = '%d तासां'; + break; + case 'd': + output = 'एका दिवसा'; + break; + case 'dd': + output = '%d दिवसां'; + break; + case 'M': + output = 'एका महिन्या'; + break; + case 'MM': + output = '%d महिन्यां'; + break; + case 'y': + output = 'एका वर्षा'; + break; + case 'yy': + output = '%d वर्षां'; + break; + } + } + return output.replace(/%d/i, number); + } - if (_this.isSelectable()) { - _this.onSelect(e); - } else { - _this.onCheck(e); - } - }; + var mr = moment.defineLocale('mr', { + months: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split( + '_' + ), + monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'), + weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'), + weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'), + longDateFormat: { + LT: 'A h:mm वाजता', + LTS: 'A h:mm:ss वाजता', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm वाजता', + LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता', + }, + calendar: { + sameDay: '[आज] LT', + nextDay: '[उद्या] LT', + nextWeek: 'dddd, LT', + lastDay: '[काल] LT', + lastWeek: '[मागील] dddd, LT', + sameElse: 'L', + }, + relativeTime: { + future: '%sमध्ये', + past: '%sपूर्वी', + s: relativeTimeMr, + ss: relativeTimeMr, + m: relativeTimeMr, + mm: relativeTimeMr, + h: relativeTimeMr, + hh: relativeTimeMr, + d: relativeTimeMr, + dd: relativeTimeMr, + M: relativeTimeMr, + MM: relativeTimeMr, + y: relativeTimeMr, + yy: relativeTimeMr, + }, + preparse: function (string) { + return string.replace(/[१२३४५६७८९०]/g, function (match) { + return numberMap[match]; + }); + }, + postformat: function (string) { + return string.replace(/\d/g, function (match) { + return symbolMap[match]; + }); + }, + meridiemParse: /पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === 'पहाटे' || meridiem === 'सकाळी') { + return hour; + } else if ( + meridiem === 'दुपारी' || + meridiem === 'सायंकाळी' || + meridiem === 'रात्री' + ) { + return hour >= 12 ? hour : hour + 12; + } + }, + meridiem: function (hour, minute, isLower) { + if (hour >= 0 && hour < 6) { + return 'पहाटे'; + } else if (hour < 12) { + return 'सकाळी'; + } else if (hour < 17) { + return 'दुपारी'; + } else if (hour < 20) { + return 'सायंकाळी'; + } else { + return 'रात्री'; + } + }, + week: { + dow: 0, // Sunday is the first day of the week. + doy: 6, // The week that contains Jan 6th is the first week of the year. + }, + }); - _this.onSelectorDoubleClick = function (e) { - var onNodeDoubleClick = _this.props.context.onNodeDoubleClick; - onNodeDoubleClick(e, _assertThisInitialized(_this)); - }; + return mr; - _this.onSelect = function (e) { - if (_this.isDisabled()) return; - var onNodeSelect = _this.props.context.onNodeSelect; - e.preventDefault(); - onNodeSelect(e, _assertThisInitialized(_this)); - }; + }))); - _this.onCheck = function (e) { - if (_this.isDisabled()) return; - var _this$props = _this.props, - disableCheckbox = _this$props.disableCheckbox, - checked = _this$props.checked; - var onNodeCheck = _this.props.context.onNodeCheck; - if (!_this.isCheckable() || disableCheckbox) return; - e.preventDefault(); - var targetChecked = !checked; - onNodeCheck(e, _assertThisInitialized(_this), targetChecked); - }; - _this.onMouseEnter = function (e) { - var onNodeMouseEnter = _this.props.context.onNodeMouseEnter; - onNodeMouseEnter(e, _assertThisInitialized(_this)); - }; + /***/ }), + /* 404 */ + /***/ (function(module, exports, __webpack_require__) { - _this.onMouseLeave = function (e) { - var onNodeMouseLeave = _this.props.context.onNodeMouseLeave; - onNodeMouseLeave(e, _assertThisInitialized(_this)); - }; + //! moment.js locale configuration + //! locale : Malay [ms] + //! author : Weldan Jamili : https://github.com/weldan - _this.onContextMenu = function (e) { - var onNodeContextMenu = _this.props.context.onNodeContextMenu; - onNodeContextMenu(e, _assertThisInitialized(_this)); - }; + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - _this.onDragStart = function (e) { - var onNodeDragStart = _this.props.context.onNodeDragStart; - e.stopPropagation(); + //! moment.js locale configuration - _this.setState({ - dragNodeHighlight: true - }); + var ms = moment.defineLocale('ms', { + months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'), + weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'), + weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'), + weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'), + longDateFormat: { + LT: 'HH.mm', + LTS: 'HH.mm.ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY [pukul] HH.mm', + LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm', + }, + meridiemParse: /pagi|tengahari|petang|malam/, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === 'pagi') { + return hour; + } else if (meridiem === 'tengahari') { + return hour >= 11 ? hour : hour + 12; + } else if (meridiem === 'petang' || meridiem === 'malam') { + return hour + 12; + } + }, + meridiem: function (hours, minutes, isLower) { + if (hours < 11) { + return 'pagi'; + } else if (hours < 15) { + return 'tengahari'; + } else if (hours < 19) { + return 'petang'; + } else { + return 'malam'; + } + }, + calendar: { + sameDay: '[Hari ini pukul] LT', + nextDay: '[Esok pukul] LT', + nextWeek: 'dddd [pukul] LT', + lastDay: '[Kelmarin pukul] LT', + lastWeek: 'dddd [lepas pukul] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'dalam %s', + past: '%s yang lepas', + s: 'beberapa saat', + ss: '%d saat', + m: 'seminit', + mm: '%d minit', + h: 'sejam', + hh: '%d jam', + d: 'sehari', + dd: '%d hari', + M: 'sebulan', + MM: '%d bulan', + y: 'setahun', + yy: '%d tahun', + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, + }); - onNodeDragStart(e, _assertThisInitialized(_this)); + return ms; - try { - // ie throw error - // firefox-need-it - e.dataTransfer.setData('text/plain', ''); - } catch (error) {// empty - } - }; + }))); - _this.onDragEnter = function (e) { - var onNodeDragEnter = _this.props.context.onNodeDragEnter; - e.preventDefault(); - e.stopPropagation(); - onNodeDragEnter(e, _assertThisInitialized(_this)); - }; - _this.onDragOver = function (e) { - var onNodeDragOver = _this.props.context.onNodeDragOver; - e.preventDefault(); - e.stopPropagation(); - onNodeDragOver(e, _assertThisInitialized(_this)); - }; + /***/ }), + /* 405 */ + /***/ (function(module, exports, __webpack_require__) { - _this.onDragLeave = function (e) { - var onNodeDragLeave = _this.props.context.onNodeDragLeave; - e.stopPropagation(); - onNodeDragLeave(e, _assertThisInitialized(_this)); - }; + //! moment.js locale configuration + //! locale : Malay [ms-my] + //! note : DEPRECATED, the correct one is [ms] + //! author : Weldan Jamili : https://github.com/weldan - _this.onDragEnd = function (e) { - var onNodeDragEnd = _this.props.context.onNodeDragEnd; - e.stopPropagation(); + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - _this.setState({ - dragNodeHighlight: false - }); + //! moment.js locale configuration - onNodeDragEnd(e, _assertThisInitialized(_this)); - }; + var msMy = moment.defineLocale('ms-my', { + months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'), + weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'), + weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'), + weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'), + longDateFormat: { + LT: 'HH.mm', + LTS: 'HH.mm.ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY [pukul] HH.mm', + LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm', + }, + meridiemParse: /pagi|tengahari|petang|malam/, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === 'pagi') { + return hour; + } else if (meridiem === 'tengahari') { + return hour >= 11 ? hour : hour + 12; + } else if (meridiem === 'petang' || meridiem === 'malam') { + return hour + 12; + } + }, + meridiem: function (hours, minutes, isLower) { + if (hours < 11) { + return 'pagi'; + } else if (hours < 15) { + return 'tengahari'; + } else if (hours < 19) { + return 'petang'; + } else { + return 'malam'; + } + }, + calendar: { + sameDay: '[Hari ini pukul] LT', + nextDay: '[Esok pukul] LT', + nextWeek: 'dddd [pukul] LT', + lastDay: '[Kelmarin pukul] LT', + lastWeek: 'dddd [lepas pukul] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'dalam %s', + past: '%s yang lepas', + s: 'beberapa saat', + ss: '%d saat', + m: 'seminit', + mm: '%d minit', + h: 'sejam', + hh: '%d jam', + d: 'sehari', + dd: '%d hari', + M: 'sebulan', + MM: '%d bulan', + y: 'setahun', + yy: '%d tahun', + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, + }); - _this.onDrop = function (e) { - var onNodeDrop = _this.props.context.onNodeDrop; - e.preventDefault(); - e.stopPropagation(); + return msMy; - _this.setState({ - dragNodeHighlight: false - }); + }))); - onNodeDrop(e, _assertThisInitialized(_this)); - }; // Disabled item still can be switch + /***/ }), + /* 406 */ + /***/ (function(module, exports, __webpack_require__) { - _this.onExpand = function (e) { - var onNodeExpand = _this.props.context.onNodeExpand; - onNodeExpand(e, _assertThisInitialized(_this)); - }; // Drag usage + //! moment.js locale configuration + //! locale : Maltese (Malta) [mt] + //! author : Alessandro Maruccia : https://github.com/alesma + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - _this.setSelectHandle = function (node) { - _this.selectHandle = node; - }; + //! moment.js locale configuration - _this.getNodeChildren = function () { - var children = _this.props.children; - var originList = Object(__WEBPACK_IMPORTED_MODULE_4_rc_util_es_Children_toArray__["a" /* default */])(children).filter(function (node) { - return node; - }); - var targetList = Object(__WEBPACK_IMPORTED_MODULE_7__util__["k" /* getNodeChildren */])(originList); + var mt = moment.defineLocale('mt', { + months: 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split( + '_' + ), + monthsShort: 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'), + weekdays: 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split( + '_' + ), + weekdaysShort: 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'), + weekdaysMin: 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Illum fil-]LT', + nextDay: '[Għada fil-]LT', + nextWeek: 'dddd [fil-]LT', + lastDay: '[Il-bieraħ fil-]LT', + lastWeek: 'dddd [li għadda] [fil-]LT', + sameElse: 'L', + }, + relativeTime: { + future: 'f’ %s', + past: '%s ilu', + s: 'ftit sekondi', + ss: '%d sekondi', + m: 'minuta', + mm: '%d minuti', + h: 'siegħa', + hh: '%d siegħat', + d: 'ġurnata', + dd: '%d ġranet', + M: 'xahar', + MM: '%d xhur', + y: 'sena', + yy: '%d sni', + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - if (originList.length !== targetList.length) { - Object(__WEBPACK_IMPORTED_MODULE_7__util__["p" /* warnOnlyTreeNode */])(); - } + return mt; - return targetList; - }; + }))); - _this.getNodeState = function () { - var expanded = _this.props.expanded; - if (_this.isLeaf()) { - return null; - } + /***/ }), + /* 407 */ + /***/ (function(module, exports, __webpack_require__) { - return expanded ? ICON_OPEN : ICON_CLOSE; - }; + //! moment.js locale configuration + //! locale : Burmese [my] + //! author : Squar team, mysquar.com + //! author : David Rossellat : https://github.com/gholadr + //! author : Tin Aung Lin : https://github.com/thanyawzinmin - _this.isLeaf = function () { - var _this$props2 = _this.props, - isLeaf = _this$props2.isLeaf, - loaded = _this$props2.loaded; - var loadData = _this.props.context.loadData; - var hasChildren = _this.getNodeChildren().length !== 0; + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - if (isLeaf === false) { - return false; - } + //! moment.js locale configuration - return isLeaf || !loadData && !hasChildren || loadData && loaded && !hasChildren; - }; + var symbolMap = { + '1': '၁', + '2': '၂', + '3': '၃', + '4': '၄', + '5': '၅', + '6': '၆', + '7': '၇', + '8': '၈', + '9': '၉', + '0': '၀', + }, + numberMap = { + '၁': '1', + '၂': '2', + '၃': '3', + '၄': '4', + '၅': '5', + '၆': '6', + '၇': '7', + '၈': '8', + '၉': '9', + '၀': '0', + }; - _this.isDisabled = function () { - var disabled = _this.props.disabled; - var treeDisabled = _this.props.context.disabled; // Follow the logic of Selectable + var my = moment.defineLocale('my', { + months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split( + '_' + ), + monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'), + weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split( + '_' + ), + weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'), + weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'), - if (disabled === false) { - return false; - } + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[ယနေ.] LT [မှာ]', + nextDay: '[မနက်ဖြန်] LT [မှာ]', + nextWeek: 'dddd LT [မှာ]', + lastDay: '[မနေ.က] LT [မှာ]', + lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]', + sameElse: 'L', + }, + relativeTime: { + future: 'လာမည့် %s မှာ', + past: 'လွန်ခဲ့သော %s က', + s: 'စက္ကန်.အနည်းငယ်', + ss: '%d စက္ကန့်', + m: 'တစ်မိနစ်', + mm: '%d မိနစ်', + h: 'တစ်နာရီ', + hh: '%d နာရီ', + d: 'တစ်ရက်', + dd: '%d ရက်', + M: 'တစ်လ', + MM: '%d လ', + y: 'တစ်နှစ်', + yy: '%d နှစ်', + }, + preparse: function (string) { + return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) { + return numberMap[match]; + }); + }, + postformat: function (string) { + return string.replace(/\d/g, function (match) { + return symbolMap[match]; + }); + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - return !!(treeDisabled || disabled); - }; + return my; - _this.isCheckable = function () { - var checkable = _this.props.checkable; - var treeCheckable = _this.props.context.checkable; // Return false if tree or treeNode is not checkable + }))); - if (!treeCheckable || checkable === false) return false; - return treeCheckable; - }; // Load data to avoid default expanded tree without data + /***/ }), + /* 408 */ + /***/ (function(module, exports, __webpack_require__) { - _this.syncLoadData = function (props) { - var expanded = props.expanded, - loading = props.loading, - loaded = props.loaded; - var _this$props$context = _this.props.context, - loadData = _this$props$context.loadData, - onNodeLoad = _this$props$context.onNodeLoad; - if (loading) return; // read from state to avoid loadData at same time + //! moment.js locale configuration + //! locale : Norwegian Bokmål [nb] + //! authors : Espen Hovlandsdal : https://github.com/rexxars + //! Sigurd Gartmann : https://github.com/sigurdga + //! Stephen Ramthun : https://github.com/stephenramthun - if (loadData && expanded && !_this.isLeaf()) { - // We needn't reload data when has children in sync logic - // It's only needed in node expanded - var hasChildren = _this.getNodeChildren().length !== 0; + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - if (!hasChildren && !loaded) { - onNodeLoad(_assertThisInitialized(_this)); - } - } - }; // Switcher + //! moment.js locale configuration + var nb = moment.defineLocale('nb', { + months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split( + '_' + ), + monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'), + weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'), + weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY [kl.] HH:mm', + LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm', + }, + calendar: { + sameDay: '[i dag kl.] LT', + nextDay: '[i morgen kl.] LT', + nextWeek: 'dddd [kl.] LT', + lastDay: '[i går kl.] LT', + lastWeek: '[forrige] dddd [kl.] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'om %s', + past: '%s siden', + s: 'noen sekunder', + ss: '%d sekunder', + m: 'ett minutt', + mm: '%d minutter', + h: 'en time', + hh: '%d timer', + d: 'en dag', + dd: '%d dager', + M: 'en måned', + MM: '%d måneder', + y: 'ett år', + yy: '%d år', + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - _this.renderSwitcher = function () { - var _this$props3 = _this.props, - expanded = _this$props3.expanded, - switcherIconFromProps = _this$props3.switcherIcon; - var _this$props$context2 = _this.props.context, - prefixCls = _this$props$context2.prefixCls, - switcherIconFromCtx = _this$props$context2.switcherIcon; - var switcherIcon = switcherIconFromProps || switcherIconFromCtx; + return nb; - if (_this.isLeaf()) { - return __WEBPACK_IMPORTED_MODULE_0_react__["createElement"]("span", { - className: __WEBPACK_IMPORTED_MODULE_2_classnames___default()("".concat(prefixCls, "-switcher"), "".concat(prefixCls, "-switcher-noop")) - }, typeof switcherIcon === 'function' ? switcherIcon(_objectSpread({}, _this.props, { - isLeaf: true - })) : switcherIcon); - } + }))); - var switcherCls = __WEBPACK_IMPORTED_MODULE_2_classnames___default()("".concat(prefixCls, "-switcher"), "".concat(prefixCls, "-switcher_").concat(expanded ? ICON_OPEN : ICON_CLOSE)); - return __WEBPACK_IMPORTED_MODULE_0_react__["createElement"]("span", { - onClick: _this.onExpand, - className: switcherCls - }, typeof switcherIcon === 'function' ? switcherIcon(_objectSpread({}, _this.props, { - isLeaf: false - })) : switcherIcon); - }; // Checkbox + /***/ }), + /* 409 */ + /***/ (function(module, exports, __webpack_require__) { - _this.renderCheckbox = function () { - var _this$props4 = _this.props, - checked = _this$props4.checked, - halfChecked = _this$props4.halfChecked, - disableCheckbox = _this$props4.disableCheckbox; - var prefixCls = _this.props.context.prefixCls; + //! moment.js locale configuration + //! locale : Nepalese [ne] + //! author : suvash : https://github.com/suvash - var disabled = _this.isDisabled(); + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var checkable = _this.isCheckable(); + //! moment.js locale configuration - if (!checkable) return null; // [Legacy] Custom element should be separate with `checkable` in future + var symbolMap = { + '1': '१', + '2': '२', + '3': '३', + '4': '४', + '5': '५', + '6': '६', + '7': '७', + '8': '८', + '9': '९', + '0': '०', + }, + numberMap = { + '१': '1', + '२': '2', + '३': '3', + '४': '4', + '५': '5', + '६': '6', + '७': '7', + '८': '8', + '९': '9', + '०': '0', + }; - var $custom = typeof checkable !== 'boolean' ? checkable : null; - return __WEBPACK_IMPORTED_MODULE_0_react__["createElement"]("span", { - className: __WEBPACK_IMPORTED_MODULE_2_classnames___default()("".concat(prefixCls, "-checkbox"), checked && "".concat(prefixCls, "-checkbox-checked"), !checked && halfChecked && "".concat(prefixCls, "-checkbox-indeterminate"), (disabled || disableCheckbox) && "".concat(prefixCls, "-checkbox-disabled")), - onClick: _this.onCheck - }, $custom); - }; + var ne = moment.defineLocale('ne', { + months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split( + '_' + ), + monthsShort: 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split( + '_' + ), + weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'), + weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'Aको h:mm बजे', + LTS: 'Aको h:mm:ss बजे', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, Aको h:mm बजे', + LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे', + }, + preparse: function (string) { + return string.replace(/[१२३४५६७८९०]/g, function (match) { + return numberMap[match]; + }); + }, + postformat: function (string) { + return string.replace(/\d/g, function (match) { + return symbolMap[match]; + }); + }, + meridiemParse: /राति|बिहान|दिउँसो|साँझ/, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === 'राति') { + return hour < 4 ? hour : hour + 12; + } else if (meridiem === 'बिहान') { + return hour; + } else if (meridiem === 'दिउँसो') { + return hour >= 10 ? hour : hour + 12; + } else if (meridiem === 'साँझ') { + return hour + 12; + } + }, + meridiem: function (hour, minute, isLower) { + if (hour < 3) { + return 'राति'; + } else if (hour < 12) { + return 'बिहान'; + } else if (hour < 16) { + return 'दिउँसो'; + } else if (hour < 20) { + return 'साँझ'; + } else { + return 'राति'; + } + }, + calendar: { + sameDay: '[आज] LT', + nextDay: '[भोलि] LT', + nextWeek: '[आउँदो] dddd[,] LT', + lastDay: '[हिजो] LT', + lastWeek: '[गएको] dddd[,] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%sमा', + past: '%s अगाडि', + s: 'केही क्षण', + ss: '%d सेकेण्ड', + m: 'एक मिनेट', + mm: '%d मिनेट', + h: 'एक घण्टा', + hh: '%d घण्टा', + d: 'एक दिन', + dd: '%d दिन', + M: 'एक महिना', + MM: '%d महिना', + y: 'एक बर्ष', + yy: '%d बर्ष', + }, + week: { + dow: 0, // Sunday is the first day of the week. + doy: 6, // The week that contains Jan 6th is the first week of the year. + }, + }); - _this.renderIcon = function () { - var loading = _this.props.loading; - var prefixCls = _this.props.context.prefixCls; - return __WEBPACK_IMPORTED_MODULE_0_react__["createElement"]("span", { - className: __WEBPACK_IMPORTED_MODULE_2_classnames___default()("".concat(prefixCls, "-iconEle"), "".concat(prefixCls, "-icon__").concat(_this.getNodeState() || 'docu'), loading && "".concat(prefixCls, "-icon_loading")) - }); - }; // Icon + Title + return ne; + }))); - _this.renderSelector = function () { - var dragNodeHighlight = _this.state.dragNodeHighlight; - var _this$props5 = _this.props, - title = _this$props5.title, - selected = _this$props5.selected, - icon = _this$props5.icon, - loading = _this$props5.loading; - var _this$props$context3 = _this.props.context, - prefixCls = _this$props$context3.prefixCls, - showIcon = _this$props$context3.showIcon, - treeIcon = _this$props$context3.icon, - draggable = _this$props$context3.draggable, - loadData = _this$props$context3.loadData; - var disabled = _this.isDisabled(); + /***/ }), + /* 410 */ + /***/ (function(module, exports, __webpack_require__) { - var wrapClass = "".concat(prefixCls, "-node-content-wrapper"); // Icon - Still show loading icon when loading without showIcon + //! moment.js locale configuration + //! locale : Dutch [nl] + //! author : Joris Röling : https://github.com/jorisroling + //! author : Jacob Middag : https://github.com/middagj - var $icon; + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - if (showIcon) { - var currentIcon = icon || treeIcon; - $icon = currentIcon ? __WEBPACK_IMPORTED_MODULE_0_react__["createElement"]("span", { - className: __WEBPACK_IMPORTED_MODULE_2_classnames___default()("".concat(prefixCls, "-iconEle"), "".concat(prefixCls, "-icon__customize")) - }, typeof currentIcon === 'function' ? currentIcon(_this.props) : currentIcon) : _this.renderIcon(); - } else if (loadData && loading) { - $icon = _this.renderIcon(); - } // Title + //! moment.js locale configuration + var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split( + '_' + ), + monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split( + '_' + ), + monthsParse = [ + /^jan/i, + /^feb/i, + /^maart|mrt.?$/i, + /^apr/i, + /^mei$/i, + /^jun[i.]?$/i, + /^jul[i.]?$/i, + /^aug/i, + /^sep/i, + /^okt/i, + /^nov/i, + /^dec/i, + ], + monthsRegex = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i; - var $title = __WEBPACK_IMPORTED_MODULE_0_react__["createElement"]("span", { - className: "".concat(prefixCls, "-title") - }, title); - return __WEBPACK_IMPORTED_MODULE_0_react__["createElement"]("span", { - ref: _this.setSelectHandle, - title: typeof title === 'string' ? title : '', - className: __WEBPACK_IMPORTED_MODULE_2_classnames___default()("".concat(wrapClass), "".concat(wrapClass, "-").concat(_this.getNodeState() || 'normal'), !disabled && (selected || dragNodeHighlight) && "".concat(prefixCls, "-node-selected"), !disabled && draggable && 'draggable'), - draggable: !disabled && draggable || undefined, - "aria-grabbed": !disabled && draggable || undefined, - onMouseEnter: _this.onMouseEnter, - onMouseLeave: _this.onMouseLeave, - onContextMenu: _this.onContextMenu, - onClick: _this.onSelectorClick, - onDoubleClick: _this.onSelectorDoubleClick, - onDragStart: draggable ? _this.onDragStart : undefined - }, $icon, $title); - }; // Children list wrapped with `Animation` + var nl = moment.defineLocale('nl', { + months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split( + '_' + ), + monthsShort: function (m, format) { + if (!m) { + return monthsShortWithDots; + } else if (/-MMM-/.test(format)) { + return monthsShortWithoutDots[m.month()]; + } else { + return monthsShortWithDots[m.month()]; + } + }, + monthsRegex: monthsRegex, + monthsShortRegex: monthsRegex, + monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i, + monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i, - _this.renderChildren = function () { - var _this$props6 = _this.props, - expanded = _this$props6.expanded, - pos = _this$props6.pos; - var _this$props$context4 = _this.props.context, - prefixCls = _this$props$context4.prefixCls, - motion = _this$props$context4.motion, - renderTreeNode = _this$props$context4.renderTreeNode; // Children TreeNode + monthsParse: monthsParse, + longMonthsParse: monthsParse, + shortMonthsParse: monthsParse, - var nodeList = _this.getNodeChildren(); + weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split( + '_' + ), + weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'), + weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD-MM-YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[vandaag om] LT', + nextDay: '[morgen om] LT', + nextWeek: 'dddd [om] LT', + lastDay: '[gisteren om] LT', + lastWeek: '[afgelopen] dddd [om] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'over %s', + past: '%s geleden', + s: 'een paar seconden', + ss: '%d seconden', + m: 'één minuut', + mm: '%d minuten', + h: 'één uur', + hh: '%d uur', + d: 'één dag', + dd: '%d dagen', + M: 'één maand', + MM: '%d maanden', + y: 'één jaar', + yy: '%d jaar', + }, + dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, + ordinal: function (number) { + return ( + number + + (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de') + ); + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - if (nodeList.length === 0) { - return null; - } + return nl; - return __WEBPACK_IMPORTED_MODULE_0_react__["createElement"](__WEBPACK_IMPORTED_MODULE_3_rc_animate_es_CSSMotion__["b" /* default */], Object.assign({ - visible: expanded - }, motion), function (_ref) { - var style = _ref.style, - className = _ref.className; - return __WEBPACK_IMPORTED_MODULE_0_react__["createElement"]("ul", { - className: __WEBPACK_IMPORTED_MODULE_2_classnames___default()(className, "".concat(prefixCls, "-child-tree"), expanded && "".concat(prefixCls, "-child-tree-open")), - style: style, - "data-expanded": expanded, - role: "group" - }, Object(__WEBPACK_IMPORTED_MODULE_7__util__["m" /* mapChildren */])(nodeList, function (node, index) { - return renderTreeNode(node, index, pos); - })); - }); - }; + }))); - return _this; - } // Isomorphic needn't load data in server side + /***/ }), + /* 411 */ + /***/ (function(module, exports, __webpack_require__) { - _createClass(TreeNode, [{ - key: "componentDidMount", - value: function componentDidMount() { - var _this$props7 = this.props, - eventKey = _this$props7.eventKey, - registerTreeNode = _this$props7.context.registerTreeNode; - this.syncLoadData(this.props); - registerTreeNode(eventKey, this); - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate() { - this.syncLoadData(this.props); - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - var _this$props8 = this.props, - eventKey = _this$props8.eventKey, - registerTreeNode = _this$props8.context.registerTreeNode; - registerTreeNode(eventKey, null); - } - }, { - key: "isSelectable", - value: function isSelectable() { - var selectable = this.props.selectable; - var treeSelectable = this.props.context.selectable; // Ignore when selectable is undefined or null + //! moment.js locale configuration + //! locale : Dutch (Belgium) [nl-be] + //! author : Joris Röling : https://github.com/jorisroling + //! author : Jacob Middag : https://github.com/middagj - if (typeof selectable === 'boolean') { - return selectable; - } + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - return treeSelectable; - } - }, { - key: "render", - value: function render() { - var _classNames; + //! moment.js locale configuration - var loading = this.props.loading; + var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split( + '_' + ), + monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split( + '_' + ), + monthsParse = [ + /^jan/i, + /^feb/i, + /^maart|mrt.?$/i, + /^apr/i, + /^mei$/i, + /^jun[i.]?$/i, + /^jul[i.]?$/i, + /^aug/i, + /^sep/i, + /^okt/i, + /^nov/i, + /^dec/i, + ], + monthsRegex = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i; - var _this$props9 = this.props, - className = _this$props9.className, - style = _this$props9.style, - dragOver = _this$props9.dragOver, - dragOverGapTop = _this$props9.dragOverGapTop, - dragOverGapBottom = _this$props9.dragOverGapBottom, - isLeaf = _this$props9.isLeaf, - expanded = _this$props9.expanded, - selected = _this$props9.selected, - checked = _this$props9.checked, - halfChecked = _this$props9.halfChecked, - otherProps = _objectWithoutProperties(_this$props9, ["className", "style", "dragOver", "dragOverGapTop", "dragOverGapBottom", "isLeaf", "expanded", "selected", "checked", "halfChecked"]); + var nlBe = moment.defineLocale('nl-be', { + months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split( + '_' + ), + monthsShort: function (m, format) { + if (!m) { + return monthsShortWithDots; + } else if (/-MMM-/.test(format)) { + return monthsShortWithoutDots[m.month()]; + } else { + return monthsShortWithDots[m.month()]; + } + }, - var _this$props$context5 = this.props.context, - prefixCls = _this$props$context5.prefixCls, - filterTreeNode = _this$props$context5.filterTreeNode, - draggable = _this$props$context5.draggable; - var disabled = this.isDisabled(); - var dataOrAriaAttributeProps = Object(__WEBPACK_IMPORTED_MODULE_7__util__["i" /* getDataAndAria */])(otherProps); - return __WEBPACK_IMPORTED_MODULE_0_react__["createElement"]("li", Object.assign({ - className: __WEBPACK_IMPORTED_MODULE_2_classnames___default()(className, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-treenode-disabled"), disabled), _defineProperty(_classNames, "".concat(prefixCls, "-treenode-switcher-").concat(expanded ? 'open' : 'close'), !isLeaf), _defineProperty(_classNames, "".concat(prefixCls, "-treenode-checkbox-checked"), checked), _defineProperty(_classNames, "".concat(prefixCls, "-treenode-checkbox-indeterminate"), halfChecked), _defineProperty(_classNames, "".concat(prefixCls, "-treenode-selected"), selected), _defineProperty(_classNames, "".concat(prefixCls, "-treenode-loading"), loading), _defineProperty(_classNames, 'drag-over', !disabled && dragOver), _defineProperty(_classNames, 'drag-over-gap-top', !disabled && dragOverGapTop), _defineProperty(_classNames, 'drag-over-gap-bottom', !disabled && dragOverGapBottom), _defineProperty(_classNames, 'filter-node', filterTreeNode && filterTreeNode(this)), _classNames)), - style: style, - role: "treeitem", - onDragEnter: draggable ? this.onDragEnter : undefined, - onDragOver: draggable ? this.onDragOver : undefined, - onDragLeave: draggable ? this.onDragLeave : undefined, - onDrop: draggable ? this.onDrop : undefined, - onDragEnd: draggable ? this.onDragEnd : undefined - }, dataOrAriaAttributeProps), this.renderSwitcher(), this.renderCheckbox(), this.renderSelector(), this.renderChildren()); - } - }]); + monthsRegex: monthsRegex, + monthsShortRegex: monthsRegex, + monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i, + monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i, - return TreeNode; - }(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]); + monthsParse: monthsParse, + longMonthsParse: monthsParse, + shortMonthsParse: monthsParse, - TreeNode.propTypes = { - eventKey: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, - prefixCls: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, - className: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, - style: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object, - onSelect: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func, - // By parent - expanded: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, - selected: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, - checked: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, - loaded: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, - loading: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, - halfChecked: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, - children: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node, - title: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node, - pos: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, - dragOver: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, - dragOverGapTop: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, - dragOverGapBottom: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, - // By user - isLeaf: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, - checkable: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, - selectable: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, - disabled: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, - disableCheckbox: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, - icon: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func]), - switcherIcon: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func]) - }; - Object(__WEBPACK_IMPORTED_MODULE_5_react_lifecycles_compat__["polyfill"])(TreeNode); + weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split( + '_' + ), + weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'), + weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[vandaag om] LT', + nextDay: '[morgen om] LT', + nextWeek: 'dddd [om] LT', + lastDay: '[gisteren om] LT', + lastWeek: '[afgelopen] dddd [om] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'over %s', + past: '%s geleden', + s: 'een paar seconden', + ss: '%d seconden', + m: 'één minuut', + mm: '%d minuten', + h: 'één uur', + hh: '%d uur', + d: 'één dag', + dd: '%d dagen', + M: 'één maand', + MM: '%d maanden', + y: 'één jaar', + yy: '%d jaar', + }, + dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, + ordinal: function (number) { + return ( + number + + (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de') + ); + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - var ContextTreeNode = function ContextTreeNode(props) { - return __WEBPACK_IMPORTED_MODULE_0_react__["createElement"](__WEBPACK_IMPORTED_MODULE_6__contextTypes__["a" /* TreeContext */].Consumer, null, function (context) { - return __WEBPACK_IMPORTED_MODULE_0_react__["createElement"](TreeNode, Object.assign({}, props, { - context: context - })); - }); - }; + return nlBe; - ContextTreeNode.defaultProps = { - title: defaultTitle - }; - ContextTreeNode.isTreeNode = 1; + }))); - /* harmony default export */ __webpack_exports__["a"] = (ContextTreeNode); /***/ }), - /* 535 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { - - "use strict"; - /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MotionPropTypes; }); - /* unused harmony export genCSSMotion */ - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(86); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__ = __webpack_require__(8); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(7); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass__ = __webpack_require__(55); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(9); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__ = __webpack_require__(10); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(1); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react_lifecycles_compat__ = __webpack_require__(14); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_rc_util_es_Dom_findDOMNode__ = __webpack_require__(488); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_classnames__ = __webpack_require__(2); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_classnames__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_raf__ = __webpack_require__(36); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_raf___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_raf__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__util_motion__ = __webpack_require__(536); - - - + /* 412 */ + /***/ (function(module, exports, __webpack_require__) { + //! moment.js locale configuration + //! locale : Nynorsk [nn] + //! authors : https://github.com/mechuwind + //! Stephen Ramthun : https://github.com/stephenramthun + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - /* eslint-disable react/default-props-match-prop-types, react/no-multi-comp */ + //! moment.js locale configuration + var nn = moment.defineLocale('nn', { + months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split( + '_' + ), + monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'), + weekdaysShort: 'su._må._ty._on._to._fr._lau.'.split('_'), + weekdaysMin: 'su_må_ty_on_to_fr_la'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY [kl.] H:mm', + LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm', + }, + calendar: { + sameDay: '[I dag klokka] LT', + nextDay: '[I morgon klokka] LT', + nextWeek: 'dddd [klokka] LT', + lastDay: '[I går klokka] LT', + lastWeek: '[Føregåande] dddd [klokka] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'om %s', + past: '%s sidan', + s: 'nokre sekund', + ss: '%d sekund', + m: 'eit minutt', + mm: '%d minutt', + h: 'ein time', + hh: '%d timar', + d: 'ein dag', + dd: '%d dagar', + M: 'ein månad', + MM: '%d månader', + y: 'eit år', + yy: '%d år', + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); + return nn; + }))); + /***/ }), + /* 413 */ + /***/ (function(module, exports, __webpack_require__) { + //! moment.js locale configuration + //! locale : Occitan, lengadocian dialecte [oc-lnc] + //! author : Quentin PAGÈS : https://github.com/Quenty31 + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var STATUS_NONE = 'none'; - var STATUS_APPEAR = 'appear'; - var STATUS_ENTER = 'enter'; - var STATUS_LEAVE = 'leave'; + //! moment.js locale configuration - var MotionPropTypes = { - eventProps: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.object, // Internal usage. Only pass by CSSMotionList - visible: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, - children: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, - motionName: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.object]), - motionAppear: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, - motionEnter: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, - motionLeave: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, - motionLeaveImmediately: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, // Trigger leave motion immediately - motionDeadline: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number, - removeOnLeave: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, - leavedClassName: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string, - onAppearStart: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, - onAppearActive: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, - onAppearEnd: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, - onEnterStart: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, - onEnterActive: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, - onEnterEnd: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, - onLeaveStart: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, - onLeaveActive: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, - onLeaveEnd: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func - }; + var ocLnc = moment.defineLocale('oc-lnc', { + months: { + standalone: 'genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre'.split( + '_' + ), + format: "de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split( + '_' + ), + isFormat: /D[oD]?(\s)+MMMM/, + }, + monthsShort: 'gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte'.split( + '_' + ), + weekdaysShort: 'dg._dl._dm._dc._dj._dv._ds.'.split('_'), + weekdaysMin: 'dg_dl_dm_dc_dj_dv_ds'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM [de] YYYY', + ll: 'D MMM YYYY', + LLL: 'D MMMM [de] YYYY [a] H:mm', + lll: 'D MMM YYYY, H:mm', + LLLL: 'dddd D MMMM [de] YYYY [a] H:mm', + llll: 'ddd D MMM YYYY, H:mm', + }, + calendar: { + sameDay: '[uèi a] LT', + nextDay: '[deman a] LT', + nextWeek: 'dddd [a] LT', + lastDay: '[ièr a] LT', + lastWeek: 'dddd [passat a] LT', + sameElse: 'L', + }, + relativeTime: { + future: "d'aquí %s", + past: 'fa %s', + s: 'unas segondas', + ss: '%d segondas', + m: 'una minuta', + mm: '%d minutas', + h: 'una ora', + hh: '%d oras', + d: 'un jorn', + dd: '%d jorns', + M: 'un mes', + MM: '%d meses', + y: 'un an', + yy: '%d ans', + }, + dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/, + ordinal: function (number, period) { + var output = + number === 1 + ? 'r' + : number === 2 + ? 'n' + : number === 3 + ? 'r' + : number === 4 + ? 't' + : 'è'; + if (period === 'w' || period === 'W') { + output = 'a'; + } + return number + output; + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, + }, + }); - /** - * `transitionSupport` is used for none transition test case. - * Default we use browser transition event support check. - */ - function genCSSMotion(config) { - var transitionSupport = config; - var forwardRef = !!__WEBPACK_IMPORTED_MODULE_6_react___default.a.forwardRef; + return ocLnc; - if (typeof config === 'object') { - transitionSupport = config.transitionSupport; - forwardRef = 'forwardRef' in config ? config.forwardRef : forwardRef; - } + }))); - function isSupportTransition(props) { - return !!(props.motionName && transitionSupport); - } - var CSSMotion = function (_React$Component) { - __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default()(CSSMotion, _React$Component); + /***/ }), + /* 414 */ + /***/ (function(module, exports, __webpack_require__) { - function CSSMotion() { - __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, CSSMotion); + //! moment.js locale configuration + //! locale : Punjabi (India) [pa-in] + //! author : Harpreet Singh : https://github.com/harpreetkhalsagtbit - var _this = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default()(this, (CSSMotion.__proto__ || Object.getPrototypeOf(CSSMotion)).call(this)); + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - _this.onDomUpdate = function () { - var _this$state = _this.state, - status = _this$state.status, - newStatus = _this$state.newStatus; - var _this$props = _this.props, - onAppearStart = _this$props.onAppearStart, - onEnterStart = _this$props.onEnterStart, - onLeaveStart = _this$props.onLeaveStart, - onAppearActive = _this$props.onAppearActive, - onEnterActive = _this$props.onEnterActive, - onLeaveActive = _this$props.onLeaveActive, - motionAppear = _this$props.motionAppear, - motionEnter = _this$props.motionEnter, - motionLeave = _this$props.motionLeave; + //! moment.js locale configuration + var symbolMap = { + '1': '੧', + '2': '੨', + '3': '੩', + '4': '੪', + '5': '੫', + '6': '੬', + '7': '੭', + '8': '੮', + '9': '੯', + '0': '੦', + }, + numberMap = { + '੧': '1', + '੨': '2', + '੩': '3', + '੪': '4', + '੫': '5', + '੬': '6', + '੭': '7', + '੮': '8', + '੯': '9', + '੦': '0', + }; - if (!isSupportTransition(_this.props)) { - return; - } + var paIn = moment.defineLocale('pa-in', { + // There are months name as per Nanakshahi Calendar but they are not used as rigidly in modern Punjabi. + months: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split( + '_' + ), + monthsShort: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split( + '_' + ), + weekdays: 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split( + '_' + ), + weekdaysShort: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'), + weekdaysMin: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'), + longDateFormat: { + LT: 'A h:mm ਵਜੇ', + LTS: 'A h:mm:ss ਵਜੇ', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm ਵਜੇ', + LLLL: 'dddd, D MMMM YYYY, A h:mm ਵਜੇ', + }, + calendar: { + sameDay: '[ਅਜ] LT', + nextDay: '[ਕਲ] LT', + nextWeek: '[ਅਗਲਾ] dddd, LT', + lastDay: '[ਕਲ] LT', + lastWeek: '[ਪਿਛਲੇ] dddd, LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s ਵਿੱਚ', + past: '%s ਪਿਛਲੇ', + s: 'ਕੁਝ ਸਕਿੰਟ', + ss: '%d ਸਕਿੰਟ', + m: 'ਇਕ ਮਿੰਟ', + mm: '%d ਮਿੰਟ', + h: 'ਇੱਕ ਘੰਟਾ', + hh: '%d ਘੰਟੇ', + d: 'ਇੱਕ ਦਿਨ', + dd: '%d ਦਿਨ', + M: 'ਇੱਕ ਮਹੀਨਾ', + MM: '%d ਮਹੀਨੇ', + y: 'ਇੱਕ ਸਾਲ', + yy: '%d ਸਾਲ', + }, + preparse: function (string) { + return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) { + return numberMap[match]; + }); + }, + postformat: function (string) { + return string.replace(/\d/g, function (match) { + return symbolMap[match]; + }); + }, + // Punjabi notation for meridiems are quite fuzzy in practice. While there exists + // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi. + meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === 'ਰਾਤ') { + return hour < 4 ? hour : hour + 12; + } else if (meridiem === 'ਸਵੇਰ') { + return hour; + } else if (meridiem === 'ਦੁਪਹਿਰ') { + return hour >= 10 ? hour : hour + 12; + } else if (meridiem === 'ਸ਼ਾਮ') { + return hour + 12; + } + }, + meridiem: function (hour, minute, isLower) { + if (hour < 4) { + return 'ਰਾਤ'; + } else if (hour < 10) { + return 'ਸਵੇਰ'; + } else if (hour < 17) { + return 'ਦੁਪਹਿਰ'; + } else if (hour < 20) { + return 'ਸ਼ਾਮ'; + } else { + return 'ਰਾਤ'; + } + }, + week: { + dow: 0, // Sunday is the first day of the week. + doy: 6, // The week that contains Jan 6th is the first week of the year. + }, + }); - // Event injection - var $ele = _this.getElement(); - if (_this.$cacheEle !== $ele) { - _this.removeEventListener(_this.$cacheEle); - _this.addEventListener($ele); - _this.$cacheEle = $ele; - } + return paIn; - // Init status - if (newStatus && status === STATUS_APPEAR && motionAppear) { - _this.updateStatus(onAppearStart, null, null, function () { - _this.updateActiveStatus(onAppearActive, STATUS_APPEAR); - }); - } else if (newStatus && status === STATUS_ENTER && motionEnter) { - _this.updateStatus(onEnterStart, null, null, function () { - _this.updateActiveStatus(onEnterActive, STATUS_ENTER); - }); - } else if (newStatus && status === STATUS_LEAVE && motionLeave) { - _this.updateStatus(onLeaveStart, null, null, function () { - _this.updateActiveStatus(onLeaveActive, STATUS_LEAVE); - }); - } - }; + }))); - _this.onMotionEnd = function (event) { - var _this$state2 = _this.state, - status = _this$state2.status, - statusActive = _this$state2.statusActive; - var _this$props2 = _this.props, - onAppearEnd = _this$props2.onAppearEnd, - onEnterEnd = _this$props2.onEnterEnd, - onLeaveEnd = _this$props2.onLeaveEnd; - if (status === STATUS_APPEAR && statusActive) { - _this.updateStatus(onAppearEnd, { status: STATUS_NONE }, event); - } else if (status === STATUS_ENTER && statusActive) { - _this.updateStatus(onEnterEnd, { status: STATUS_NONE }, event); - } else if (status === STATUS_LEAVE && statusActive) { - _this.updateStatus(onLeaveEnd, { status: STATUS_NONE }, event); - } - }; + /***/ }), + /* 415 */ + /***/ (function(module, exports, __webpack_require__) { - _this.setNodeRef = function (node) { - var internalRef = _this.props.internalRef; + //! moment.js locale configuration + //! locale : Polish [pl] + //! author : Rafal Hirsz : https://github.com/evoL - _this.node = node; + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - if (typeof internalRef === 'function') { - internalRef(node); - } else if (internalRef && 'current' in internalRef) { - internalRef.current = node; - } - }; + //! moment.js locale configuration - _this.getElement = function () { - try { - return Object(__WEBPACK_IMPORTED_MODULE_9_rc_util_es_Dom_findDOMNode__["a" /* default */])(_this.node || _this); - } catch (e) { - /** - * Fallback to cache element. - * This is only happen when `motionDeadline` trigger but element removed. - */ - return _this.$cacheEle; + var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split( + '_' + ), + monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split( + '_' + ); + function plural(n) { + return n % 10 < 5 && n % 10 > 1 && ~~(n / 10) % 10 !== 1; + } + function translate(number, withoutSuffix, key) { + var result = number + ' '; + switch (key) { + case 'ss': + return result + (plural(number) ? 'sekundy' : 'sekund'); + case 'm': + return withoutSuffix ? 'minuta' : 'minutę'; + case 'mm': + return result + (plural(number) ? 'minuty' : 'minut'); + case 'h': + return withoutSuffix ? 'godzina' : 'godzinę'; + case 'hh': + return result + (plural(number) ? 'godziny' : 'godzin'); + case 'MM': + return result + (plural(number) ? 'miesiące' : 'miesięcy'); + case 'yy': + return result + (plural(number) ? 'lata' : 'lat'); } - }; - - _this.addEventListener = function ($ele) { - if (!$ele) return; - - $ele.addEventListener(__WEBPACK_IMPORTED_MODULE_12__util_motion__["d" /* transitionEndName */], _this.onMotionEnd); - $ele.addEventListener(__WEBPACK_IMPORTED_MODULE_12__util_motion__["a" /* animationEndName */], _this.onMotionEnd); - }; + } - _this.removeEventListener = function ($ele) { - if (!$ele) return; + var pl = moment.defineLocale('pl', { + months: function (momentToFormat, format) { + if (!momentToFormat) { + return monthsNominative; + } else if (format === '') { + // Hack: if format empty we know this is used to generate + // RegExp by moment. Give then back both valid forms of months + // in RegExp ready format. + return ( + '(' + + monthsSubjective[momentToFormat.month()] + + '|' + + monthsNominative[momentToFormat.month()] + + ')' + ); + } else if (/D MMMM/.test(format)) { + return monthsSubjective[momentToFormat.month()]; + } else { + return monthsNominative[momentToFormat.month()]; + } + }, + monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'), + weekdays: 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split( + '_' + ), + weekdaysShort: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'), + weekdaysMin: 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Dziś o] LT', + nextDay: '[Jutro o] LT', + nextWeek: function () { + switch (this.day()) { + case 0: + return '[W niedzielę o] LT'; - $ele.removeEventListener(__WEBPACK_IMPORTED_MODULE_12__util_motion__["d" /* transitionEndName */], _this.onMotionEnd); - $ele.removeEventListener(__WEBPACK_IMPORTED_MODULE_12__util_motion__["a" /* animationEndName */], _this.onMotionEnd); - }; + case 2: + return '[We wtorek o] LT'; - _this.updateStatus = function (styleFunc, additionalState, event, callback) { - var statusStyle = styleFunc ? styleFunc(_this.getElement(), event) : null; + case 3: + return '[W środę o] LT'; - if (statusStyle === false || _this._destroyed) return; + case 6: + return '[W sobotę o] LT'; - var nextStep = void 0; - if (callback) { - nextStep = function nextStep() { - _this.nextFrame(callback); - }; - } + default: + return '[W] dddd [o] LT'; + } + }, + lastDay: '[Wczoraj o] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + return '[W zeszłą niedzielę o] LT'; + case 3: + return '[W zeszłą środę o] LT'; + case 6: + return '[W zeszłą sobotę o] LT'; + default: + return '[W zeszły] dddd [o] LT'; + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'za %s', + past: '%s temu', + s: 'kilka sekund', + ss: translate, + m: translate, + mm: translate, + h: translate, + hh: translate, + d: '1 dzień', + dd: '%d dni', + M: 'miesiąc', + MM: translate, + y: 'rok', + yy: translate, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - _this.setState(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({ - statusStyle: typeof statusStyle === 'object' ? statusStyle : null, - newStatus: false - }, additionalState), nextStep); // Trigger before next frame & after `componentDidMount` - }; + return pl; - _this.updateActiveStatus = function (styleFunc, currentStatus) { - // `setState` use `postMessage` to trigger at the end of frame. - // Let's use requestAnimationFrame to update new state in next frame. - _this.nextFrame(function () { - var status = _this.state.status; + }))); - if (status !== currentStatus) return; - var motionDeadline = _this.props.motionDeadline; + /***/ }), + /* 416 */ + /***/ (function(module, exports, __webpack_require__) { + //! moment.js locale configuration + //! locale : Portuguese [pt] + //! author : Jefferson : https://github.com/jalex79 - _this.updateStatus(styleFunc, { statusActive: true }); + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - if (motionDeadline > 0) { - setTimeout(function () { - _this.onMotionEnd({ - deadline: true - }); - }, motionDeadline); - } - }); - }; + //! moment.js locale configuration - _this.nextFrame = function (func) { - _this.cancelNextFrame(); - _this.raf = __WEBPACK_IMPORTED_MODULE_11_raf___default()(func); - }; + var pt = moment.defineLocale('pt', { + months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split( + '_' + ), + monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'), + weekdays: 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split( + '_' + ), + weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'), + weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D [de] MMMM [de] YYYY', + LLL: 'D [de] MMMM [de] YYYY HH:mm', + LLLL: 'dddd, D [de] MMMM [de] YYYY HH:mm', + }, + calendar: { + sameDay: '[Hoje às] LT', + nextDay: '[Amanhã às] LT', + nextWeek: 'dddd [às] LT', + lastDay: '[Ontem às] LT', + lastWeek: function () { + return this.day() === 0 || this.day() === 6 + ? '[Último] dddd [às] LT' // Saturday + Sunday + : '[Última] dddd [às] LT'; // Monday - Friday + }, + sameElse: 'L', + }, + relativeTime: { + future: 'em %s', + past: 'há %s', + s: 'segundos', + ss: '%d segundos', + m: 'um minuto', + mm: '%d minutos', + h: 'uma hora', + hh: '%d horas', + d: 'um dia', + dd: '%d dias', + M: 'um mês', + MM: '%d meses', + y: 'um ano', + yy: '%d anos', + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - _this.cancelNextFrame = function () { - if (_this.raf) { - __WEBPACK_IMPORTED_MODULE_11_raf___default.a.cancel(_this.raf); - _this.raf = null; - } - }; + return pt; - _this.state = { - status: STATUS_NONE, - statusActive: false, - newStatus: false, - statusStyle: null - }; - _this.$cacheEle = null; - _this.node = null; - _this.raf = null; - return _this; - } + }))); - __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass___default()(CSSMotion, [{ - key: 'componentDidMount', - value: function componentDidMount() { - this.onDomUpdate(); - } - }, { - key: 'componentDidUpdate', - value: function componentDidUpdate() { - this.onDomUpdate(); - } - }, { - key: 'componentWillUnmount', - value: function componentWillUnmount() { - this._destroyed = true; - this.removeEventListener(this.$cacheEle); - this.cancelNextFrame(); - } - }, { - key: 'render', - value: function render() { - var _classNames; - var _state = this.state, - status = _state.status, - statusActive = _state.statusActive, - statusStyle = _state.statusStyle; - var _props = this.props, - children = _props.children, - motionName = _props.motionName, - visible = _props.visible, - removeOnLeave = _props.removeOnLeave, - leavedClassName = _props.leavedClassName, - eventProps = _props.eventProps; + /***/ }), + /* 417 */ + /***/ (function(module, exports, __webpack_require__) { + //! moment.js locale configuration + //! locale : Portuguese (Brazil) [pt-br] + //! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira - if (!children) return null; + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - if (status === STATUS_NONE || !isSupportTransition(this.props)) { - if (visible) { - return children(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, eventProps), this.setNodeRef); - } else if (!removeOnLeave) { - return children(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, eventProps, { className: leavedClassName }), this.setNodeRef); - } + //! moment.js locale configuration - return null; - } + var ptBr = moment.defineLocale('pt-br', { + months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split( + '_' + ), + monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'), + weekdays: 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split( + '_' + ), + weekdaysShort: 'dom_seg_ter_qua_qui_sex_sáb'.split('_'), + weekdaysMin: 'do_2ª_3ª_4ª_5ª_6ª_sá'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D [de] MMMM [de] YYYY', + LLL: 'D [de] MMMM [de] YYYY [às] HH:mm', + LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm', + }, + calendar: { + sameDay: '[Hoje às] LT', + nextDay: '[Amanhã às] LT', + nextWeek: 'dddd [às] LT', + lastDay: '[Ontem às] LT', + lastWeek: function () { + return this.day() === 0 || this.day() === 6 + ? '[Último] dddd [às] LT' // Saturday + Sunday + : '[Última] dddd [às] LT'; // Monday - Friday + }, + sameElse: 'L', + }, + relativeTime: { + future: 'em %s', + past: 'há %s', + s: 'poucos segundos', + ss: '%d segundos', + m: 'um minuto', + mm: '%d minutos', + h: 'uma hora', + hh: '%d horas', + d: 'um dia', + dd: '%d dias', + M: 'um mês', + MM: '%d meses', + y: 'um ano', + yy: '%d anos', + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + }); - return children(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, eventProps, { - className: __WEBPACK_IMPORTED_MODULE_10_classnames___default()((_classNames = {}, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_classNames, Object(__WEBPACK_IMPORTED_MODULE_12__util_motion__["b" /* getTransitionName */])(motionName, status), status !== STATUS_NONE), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_classNames, Object(__WEBPACK_IMPORTED_MODULE_12__util_motion__["b" /* getTransitionName */])(motionName, status + '-active'), status !== STATUS_NONE && statusActive), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_classNames, motionName, typeof motionName === 'string'), _classNames)), - style: statusStyle - }), this.setNodeRef); - } - }], [{ - key: 'getDerivedStateFromProps', - value: function getDerivedStateFromProps(props, _ref) { - var prevProps = _ref.prevProps, - prevStatus = _ref.status; + return ptBr; - if (!isSupportTransition(props)) return {}; + }))); - var visible = props.visible, - motionAppear = props.motionAppear, - motionEnter = props.motionEnter, - motionLeave = props.motionLeave, - motionLeaveImmediately = props.motionLeaveImmediately; - var newState = { - prevProps: props - }; + /***/ }), + /* 418 */ + /***/ (function(module, exports, __webpack_require__) { - // Clean up status if prop set to false - if (prevStatus === STATUS_APPEAR && !motionAppear || prevStatus === STATUS_ENTER && !motionEnter || prevStatus === STATUS_LEAVE && !motionLeave) { - newState.status = STATUS_NONE; - newState.statusActive = false; - newState.newStatus = false; - } + //! moment.js locale configuration + //! locale : Romanian [ro] + //! author : Vlad Gurdiga : https://github.com/gurdiga + //! author : Valentin Agachi : https://github.com/avaly + //! author : Emanuel Cepoi : https://github.com/cepem - // Appear - if (!prevProps && visible && motionAppear) { - newState.status = STATUS_APPEAR; - newState.statusActive = false; - newState.newStatus = true; - } + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - // Enter - if (prevProps && !prevProps.visible && visible && motionEnter) { - newState.status = STATUS_ENTER; - newState.statusActive = false; - newState.newStatus = true; - } + //! moment.js locale configuration - // Leave - if (prevProps && prevProps.visible && !visible && motionLeave || !prevProps && motionLeaveImmediately && !visible && motionLeave) { - newState.status = STATUS_LEAVE; - newState.statusActive = false; - newState.newStatus = true; + function relativeTimeWithPlural(number, withoutSuffix, key) { + var format = { + ss: 'secunde', + mm: 'minute', + hh: 'ore', + dd: 'zile', + MM: 'luni', + yy: 'ani', + }, + separator = ' '; + if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) { + separator = ' de '; } + return number + separator + format[key]; + } - return newState; - } - }]); - - return CSSMotion; - }(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); - - CSSMotion.propTypes = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, MotionPropTypes, { - - internalRef: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.object, __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func]) - }); - CSSMotion.defaultProps = { - visible: true, - motionEnter: true, - motionAppear: true, - motionLeave: true, - removeOnLeave: true - }; - - - Object(__WEBPACK_IMPORTED_MODULE_8_react_lifecycles_compat__["polyfill"])(CSSMotion); + var ro = moment.defineLocale('ro', { + months: 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split( + '_' + ), + monthsShort: 'ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'), + weekdaysShort: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'), + weekdaysMin: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'), + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY H:mm', + LLLL: 'dddd, D MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[azi la] LT', + nextDay: '[mâine la] LT', + nextWeek: 'dddd [la] LT', + lastDay: '[ieri la] LT', + lastWeek: '[fosta] dddd [la] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'peste %s', + past: '%s în urmă', + s: 'câteva secunde', + ss: relativeTimeWithPlural, + m: 'un minut', + mm: relativeTimeWithPlural, + h: 'o oră', + hh: relativeTimeWithPlural, + d: 'o zi', + dd: relativeTimeWithPlural, + M: 'o lună', + MM: relativeTimeWithPlural, + y: 'un an', + yy: relativeTimeWithPlural, + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, + }); - if (!forwardRef) { - return CSSMotion; - } + return ro; - return __WEBPACK_IMPORTED_MODULE_6_react___default.a.forwardRef(function (props, ref) { - return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(CSSMotion, __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({ internalRef: ref }, props)); - }); - } + }))); - /* harmony default export */ __webpack_exports__["b"] = (genCSSMotion(__WEBPACK_IMPORTED_MODULE_12__util_motion__["c" /* supportTransition */])); /***/ }), - /* 536 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { - - "use strict"; - /* unused harmony export getVendorPrefixes */ - /* unused harmony export getVendorPrefixedEventName */ - /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return animationEndName; }); - /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return transitionEndName; }); - /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return supportTransition; }); - /* harmony export (immutable) */ __webpack_exports__["b"] = getTransitionName; - var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement); - - // ================= Transition ================= - // Event wrapper. Copy from react source code - function makePrefixMap(styleProp, eventName) { - var prefixes = {}; + /* 419 */ + /***/ (function(module, exports, __webpack_require__) { - prefixes[styleProp.toLowerCase()] = eventName.toLowerCase(); - prefixes['Webkit' + styleProp] = 'webkit' + eventName; - prefixes['Moz' + styleProp] = 'moz' + eventName; - prefixes['ms' + styleProp] = 'MS' + eventName; - prefixes['O' + styleProp] = 'o' + eventName.toLowerCase(); + //! moment.js locale configuration + //! locale : Russian [ru] + //! author : Viktorminator : https://github.com/Viktorminator + //! Author : Menelion Elensúle : https://github.com/Oire + //! author : Коренберг Марк : https://github.com/socketpair - return prefixes; - } + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function getVendorPrefixes(domSupport, win) { - var prefixes = { - animationend: makePrefixMap('Animation', 'AnimationEnd'), - transitionend: makePrefixMap('Transition', 'TransitionEnd') - }; + //! moment.js locale configuration - if (domSupport) { - if (!('AnimationEvent' in win)) { - delete prefixes.animationend.animation; + function plural(word, num) { + var forms = word.split('_'); + return num % 10 === 1 && num % 100 !== 11 + ? forms[0] + : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) + ? forms[1] + : forms[2]; } - - if (!('TransitionEvent' in win)) { - delete prefixes.transitionend.transition; + function relativeTimeWithPlural(number, withoutSuffix, key) { + var format = { + ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд', + mm: withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут', + hh: 'час_часа_часов', + dd: 'день_дня_дней', + MM: 'месяц_месяца_месяцев', + yy: 'год_года_лет', + }; + if (key === 'm') { + return withoutSuffix ? 'минута' : 'минуту'; + } else { + return number + ' ' + plural(format[key], +number); + } } - } + var monthsParse = [ + /^янв/i, + /^фев/i, + /^мар/i, + /^апр/i, + /^ма[йя]/i, + /^июн/i, + /^июл/i, + /^авг/i, + /^сен/i, + /^окт/i, + /^ноя/i, + /^дек/i, + ]; - return prefixes; - } + // http://new.gramota.ru/spravka/rules/139-prop : § 103 + // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637 + // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753 + var ru = moment.defineLocale('ru', { + months: { + format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split( + '_' + ), + standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split( + '_' + ), + }, + monthsShort: { + // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку ? + format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split( + '_' + ), + standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split( + '_' + ), + }, + weekdays: { + standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split( + '_' + ), + format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split( + '_' + ), + isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/, + }, + weekdaysShort: 'вс_пн_вт_ср_чт_пт_сб'.split('_'), + weekdaysMin: 'вс_пн_вт_ср_чт_пт_сб'.split('_'), + monthsParse: monthsParse, + longMonthsParse: monthsParse, + shortMonthsParse: monthsParse, - var vendorPrefixes = getVendorPrefixes(canUseDOM, typeof window !== 'undefined' ? window : {}); + // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки + monthsRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i, - var style = {}; + // копия предыдущего + monthsShortRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i, - if (canUseDOM) { - style = document.createElement('div').style; - } + // полные названия с падежами + monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i, - var prefixedEventNames = {}; + // Выражение, которое соотвествует только сокращённым формам + monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY г.', + LLL: 'D MMMM YYYY г., H:mm', + LLLL: 'dddd, D MMMM YYYY г., H:mm', + }, + calendar: { + sameDay: '[Сегодня, в] LT', + nextDay: '[Завтра, в] LT', + lastDay: '[Вчера, в] LT', + nextWeek: function (now) { + if (now.week() !== this.week()) { + switch (this.day()) { + case 0: + return '[В следующее] dddd, [в] LT'; + case 1: + case 2: + case 4: + return '[В следующий] dddd, [в] LT'; + case 3: + case 5: + case 6: + return '[В следующую] dddd, [в] LT'; + } + } else { + if (this.day() === 2) { + return '[Во] dddd, [в] LT'; + } else { + return '[В] dddd, [в] LT'; + } + } + }, + lastWeek: function (now) { + if (now.week() !== this.week()) { + switch (this.day()) { + case 0: + return '[В прошлое] dddd, [в] LT'; + case 1: + case 2: + case 4: + return '[В прошлый] dddd, [в] LT'; + case 3: + case 5: + case 6: + return '[В прошлую] dddd, [в] LT'; + } + } else { + if (this.day() === 2) { + return '[Во] dddd, [в] LT'; + } else { + return '[В] dddd, [в] LT'; + } + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'через %s', + past: '%s назад', + s: 'несколько секунд', + ss: relativeTimeWithPlural, + m: relativeTimeWithPlural, + mm: relativeTimeWithPlural, + h: 'час', + hh: relativeTimeWithPlural, + d: 'день', + dd: relativeTimeWithPlural, + M: 'месяц', + MM: relativeTimeWithPlural, + y: 'год', + yy: relativeTimeWithPlural, + }, + meridiemParse: /ночи|утра|дня|вечера/i, + isPM: function (input) { + return /^(дня|вечера)$/.test(input); + }, + meridiem: function (hour, minute, isLower) { + if (hour < 4) { + return 'ночи'; + } else if (hour < 12) { + return 'утра'; + } else if (hour < 17) { + return 'дня'; + } else { + return 'вечера'; + } + }, + dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/, + ordinal: function (number, period) { + switch (period) { + case 'M': + case 'd': + case 'DDD': + return number + '-й'; + case 'D': + return number + '-го'; + case 'w': + case 'W': + return number + '-я'; + default: + return number; + } + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - function getVendorPrefixedEventName(eventName) { - if (prefixedEventNames[eventName]) { - return prefixedEventNames[eventName]; - } + return ru; - var prefixMap = vendorPrefixes[eventName]; + }))); - if (prefixMap) { - var stylePropList = Object.keys(prefixMap); - var len = stylePropList.length; - for (var i = 0; i < len; i += 1) { - var styleProp = stylePropList[i]; - if (Object.prototype.hasOwnProperty.call(prefixMap, styleProp) && styleProp in style) { - prefixedEventNames[eventName] = prefixMap[styleProp]; - return prefixedEventNames[eventName]; - } - } - } - return ''; - } + /***/ }), + /* 420 */ + /***/ (function(module, exports, __webpack_require__) { - var animationEndName = getVendorPrefixedEventName('animationend'); - var transitionEndName = getVendorPrefixedEventName('transitionend'); - var supportTransition = !!(animationEndName && transitionEndName); + //! moment.js locale configuration + //! locale : Sindhi [sd] + //! author : Narain Sagar : https://github.com/narainsagar - function getTransitionName(transitionName, transitionType) { - if (!transitionName) return null; + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - if (typeof transitionName === 'object') { - var type = transitionType.replace(/-\w/g, function (match) { - return match[1].toUpperCase(); + //! moment.js locale configuration + + var months = [ + 'جنوري', + 'فيبروري', + 'مارچ', + 'اپريل', + 'مئي', + 'جون', + 'جولاءِ', + 'آگسٽ', + 'سيپٽمبر', + 'آڪٽوبر', + 'نومبر', + 'ڊسمبر', + ], + days = ['آچر', 'سومر', 'اڱارو', 'اربع', 'خميس', 'جمع', 'ڇنڇر']; + + var sd = moment.defineLocale('sd', { + months: months, + monthsShort: months, + weekdays: days, + weekdaysShort: days, + weekdaysMin: days, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd، D MMMM YYYY HH:mm', + }, + meridiemParse: /صبح|شام/, + isPM: function (input) { + return 'شام' === input; + }, + meridiem: function (hour, minute, isLower) { + if (hour < 12) { + return 'صبح'; + } + return 'شام'; + }, + calendar: { + sameDay: '[اڄ] LT', + nextDay: '[سڀاڻي] LT', + nextWeek: 'dddd [اڳين هفتي تي] LT', + lastDay: '[ڪالهه] LT', + lastWeek: '[گزريل هفتي] dddd [تي] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s پوء', + past: '%s اڳ', + s: 'چند سيڪنڊ', + ss: '%d سيڪنڊ', + m: 'هڪ منٽ', + mm: '%d منٽ', + h: 'هڪ ڪلاڪ', + hh: '%d ڪلاڪ', + d: 'هڪ ڏينهن', + dd: '%d ڏينهن', + M: 'هڪ مهينو', + MM: '%d مهينا', + y: 'هڪ سال', + yy: '%d سال', + }, + preparse: function (string) { + return string.replace(/،/g, ','); + }, + postformat: function (string) { + return string.replace(/,/g, '،'); + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, }); - return transitionName[type]; - } - return transitionName + '-' + transitionType; - } + return sd; + + }))); + /***/ }), - /* 537 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + /* 421 */ + /***/ (function(module, exports, __webpack_require__) { - "use strict"; - /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TreeContext; }); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ant_design_create_react_context__ = __webpack_require__(1668); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ant_design_create_react_context___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__ant_design_create_react_context__); + //! moment.js locale configuration + //! locale : Northern Sami [se] + //! authors : Bård Rolstad Henriksen : https://github.com/karamell - var TreeContext = __WEBPACK_IMPORTED_MODULE_0__ant_design_create_react_context___default()(null); + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - /***/ }), - /* 538 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + //! moment.js locale configuration - "use strict"; - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Tree__ = __webpack_require__(1673); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__TreeNode__ = __webpack_require__(534); - /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_1__TreeNode__["a"]; }); + var se = moment.defineLocale('se', { + months: 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split( + '_' + ), + monthsShort: 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split( + '_' + ), + weekdays: 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split( + '_' + ), + weekdaysShort: 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'), + weekdaysMin: 's_v_m_g_d_b_L'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'MMMM D. [b.] YYYY', + LLL: 'MMMM D. [b.] YYYY [ti.] HH:mm', + LLLL: 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm', + }, + calendar: { + sameDay: '[otne ti] LT', + nextDay: '[ihttin ti] LT', + nextWeek: 'dddd [ti] LT', + lastDay: '[ikte ti] LT', + lastWeek: '[ovddit] dddd [ti] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s geažes', + past: 'maŋit %s', + s: 'moadde sekunddat', + ss: '%d sekunddat', + m: 'okta minuhta', + mm: '%d minuhtat', + h: 'okta diimmu', + hh: '%d diimmut', + d: 'okta beaivi', + dd: '%d beaivvit', + M: 'okta mánnu', + MM: '%d mánut', + y: 'okta jahki', + yy: '%d jagit', + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); + return se; - var Tree = __WEBPACK_IMPORTED_MODULE_0__Tree__["a" /* default */]; - Tree.TreeNode = __WEBPACK_IMPORTED_MODULE_1__TreeNode__["a" /* default */]; + }))); - /* harmony default export */ __webpack_exports__["b"] = (Tree); /***/ }), - /* 539 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { - - "use strict"; - /* unused harmony export searchContextTypes */ - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_lifecycles_compat__ = __webpack_require__(14); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util__ = __webpack_require__(34); - function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + /* 422 */ + /***/ (function(module, exports, __webpack_require__) { - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + //! moment.js locale configuration + //! locale : Sinhalese [si] + //! author : Sampath Sitinamaluwa : https://github.com/sampathsris - function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + //! moment.js locale configuration - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + /*jshint -W100*/ + var si = moment.defineLocale('si', { + months: 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split( + '_' + ), + monthsShort: 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split( + '_' + ), + weekdays: 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split( + '_' + ), + weekdaysShort: 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'), + weekdaysMin: 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'a h:mm', + LTS: 'a h:mm:ss', + L: 'YYYY/MM/DD', + LL: 'YYYY MMMM D', + LLL: 'YYYY MMMM D, a h:mm', + LLLL: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss', + }, + calendar: { + sameDay: '[අද] LT[ට]', + nextDay: '[හෙට] LT[ට]', + nextWeek: 'dddd LT[ට]', + lastDay: '[ඊයේ] LT[ට]', + lastWeek: '[පසුගිය] dddd LT[ට]', + sameElse: 'L', + }, + relativeTime: { + future: '%sකින්', + past: '%sකට පෙර', + s: 'තත්පර කිහිපය', + ss: 'තත්පර %d', + m: 'මිනිත්තුව', + mm: 'මිනිත්තු %d', + h: 'පැය', + hh: 'පැය %d', + d: 'දිනය', + dd: 'දින %d', + M: 'මාසය', + MM: 'මාස %d', + y: 'වසර', + yy: 'වසර %d', + }, + dayOfMonthOrdinalParse: /\d{1,2} වැනි/, + ordinal: function (number) { + return number + ' වැනි'; + }, + meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./, + isPM: function (input) { + return input === 'ප.ව.' || input === 'පස් වරු'; + }, + meridiem: function (hours, minutes, isLower) { + if (hours > 11) { + return isLower ? 'ප.ව.' : 'පස් වරු'; + } else { + return isLower ? 'පෙ.ව.' : 'පෙර වරු'; + } + }, + }); - function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + return si; - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + }))); - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + /***/ }), + /* 423 */ + /***/ (function(module, exports, __webpack_require__) { - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + //! moment.js locale configuration + //! locale : Slovak [sk] + //! author : Martin Minka : https://github.com/k2s + //! based on work of petrbela : https://github.com/petrbela - /** - * Since search box is in different position with different mode. - * - Single: in the popup box - * - multiple: in the selector - * Move the code as a SearchInput for easy management. - */ + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; + //! moment.js locale configuration + var months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split( + '_' + ), + monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_'); + function plural(n) { + return n > 1 && n < 5; + } + function translate(number, withoutSuffix, key, isFuture) { + var result = number + ' '; + switch (key) { + case 's': // a few seconds / in a few seconds / a few seconds ago + return withoutSuffix || isFuture ? 'pár sekúnd' : 'pár sekundami'; + case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago + if (withoutSuffix || isFuture) { + return result + (plural(number) ? 'sekundy' : 'sekúnd'); + } else { + return result + 'sekundami'; + } + case 'm': // a minute / in a minute / a minute ago + return withoutSuffix ? 'minúta' : isFuture ? 'minútu' : 'minútou'; + case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago + if (withoutSuffix || isFuture) { + return result + (plural(number) ? 'minúty' : 'minút'); + } else { + return result + 'minútami'; + } + case 'h': // an hour / in an hour / an hour ago + return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou'; + case 'hh': // 9 hours / in 9 hours / 9 hours ago + if (withoutSuffix || isFuture) { + return result + (plural(number) ? 'hodiny' : 'hodín'); + } else { + return result + 'hodinami'; + } + case 'd': // a day / in a day / a day ago + return withoutSuffix || isFuture ? 'deň' : 'dňom'; + case 'dd': // 9 days / in 9 days / 9 days ago + if (withoutSuffix || isFuture) { + return result + (plural(number) ? 'dni' : 'dní'); + } else { + return result + 'dňami'; + } + case 'M': // a month / in a month / a month ago + return withoutSuffix || isFuture ? 'mesiac' : 'mesiacom'; + case 'MM': // 9 months / in 9 months / 9 months ago + if (withoutSuffix || isFuture) { + return result + (plural(number) ? 'mesiace' : 'mesiacov'); + } else { + return result + 'mesiacmi'; + } + case 'y': // a year / in a year / a year ago + return withoutSuffix || isFuture ? 'rok' : 'rokom'; + case 'yy': // 9 years / in 9 years / 9 years ago + if (withoutSuffix || isFuture) { + return result + (plural(number) ? 'roky' : 'rokov'); + } else { + return result + 'rokmi'; + } + } + } + var sk = moment.defineLocale('sk', { + months: months, + monthsShort: monthsShort, + weekdays: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'), + weekdaysShort: 'ne_po_ut_st_št_pi_so'.split('_'), + weekdaysMin: 'ne_po_ut_st_št_pi_so'.split('_'), + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd D. MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[dnes o] LT', + nextDay: '[zajtra o] LT', + nextWeek: function () { + switch (this.day()) { + case 0: + return '[v nedeľu o] LT'; + case 1: + case 2: + return '[v] dddd [o] LT'; + case 3: + return '[v stredu o] LT'; + case 4: + return '[vo štvrtok o] LT'; + case 5: + return '[v piatok o] LT'; + case 6: + return '[v sobotu o] LT'; + } + }, + lastDay: '[včera o] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + return '[minulú nedeľu o] LT'; + case 1: + case 2: + return '[minulý] dddd [o] LT'; + case 3: + return '[minulú stredu o] LT'; + case 4: + case 5: + return '[minulý] dddd [o] LT'; + case 6: + return '[minulú sobotu o] LT'; + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'za %s', + past: 'pred %s', + s: translate, + ss: translate, + m: translate, + mm: translate, + h: translate, + hh: translate, + d: translate, + dd: translate, + M: translate, + MM: translate, + y: translate, + yy: translate, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - var searchContextTypes = { - onSearchInputChange: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired - }; + return sk; - var SearchInput = - /*#__PURE__*/ - function (_React$Component) { - _inherits(SearchInput, _React$Component); + }))); - function SearchInput() { - var _this; - _classCallCheck(this, SearchInput); + /***/ }), + /* 424 */ + /***/ (function(module, exports, __webpack_require__) { - _this = _possibleConstructorReturn(this, _getPrototypeOf(SearchInput).call(this)); + //! moment.js locale configuration + //! locale : Slovenian [sl] + //! author : Robert Sedovšek : https://github.com/sedovsek - _defineProperty(_assertThisInitialized(_this), "alignInputWidth", function () { - _this.inputRef.current.style.width = "".concat(_this.mirrorInputRef.current.clientWidth, "px"); - }); + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - _defineProperty(_assertThisInitialized(_this), "focus", function (isDidMount) { - if (_this.inputRef.current) { - _this.inputRef.current.focus(); + //! moment.js locale configuration - if (isDidMount) { - setTimeout(function () { - _this.inputRef.current.focus(); - }, 0); + function processRelativeTime(number, withoutSuffix, key, isFuture) { + var result = number + ' '; + switch (key) { + case 's': + return withoutSuffix || isFuture + ? 'nekaj sekund' + : 'nekaj sekundami'; + case 'ss': + if (number === 1) { + result += withoutSuffix ? 'sekundo' : 'sekundi'; + } else if (number === 2) { + result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah'; + } else if (number < 5) { + result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah'; + } else { + result += 'sekund'; + } + return result; + case 'm': + return withoutSuffix ? 'ena minuta' : 'eno minuto'; + case 'mm': + if (number === 1) { + result += withoutSuffix ? 'minuta' : 'minuto'; + } else if (number === 2) { + result += withoutSuffix || isFuture ? 'minuti' : 'minutama'; + } else if (number < 5) { + result += withoutSuffix || isFuture ? 'minute' : 'minutami'; + } else { + result += withoutSuffix || isFuture ? 'minut' : 'minutami'; + } + return result; + case 'h': + return withoutSuffix ? 'ena ura' : 'eno uro'; + case 'hh': + if (number === 1) { + result += withoutSuffix ? 'ura' : 'uro'; + } else if (number === 2) { + result += withoutSuffix || isFuture ? 'uri' : 'urama'; + } else if (number < 5) { + result += withoutSuffix || isFuture ? 'ure' : 'urami'; + } else { + result += withoutSuffix || isFuture ? 'ur' : 'urami'; + } + return result; + case 'd': + return withoutSuffix || isFuture ? 'en dan' : 'enim dnem'; + case 'dd': + if (number === 1) { + result += withoutSuffix || isFuture ? 'dan' : 'dnem'; + } else if (number === 2) { + result += withoutSuffix || isFuture ? 'dni' : 'dnevoma'; + } else { + result += withoutSuffix || isFuture ? 'dni' : 'dnevi'; + } + return result; + case 'M': + return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem'; + case 'MM': + if (number === 1) { + result += withoutSuffix || isFuture ? 'mesec' : 'mesecem'; + } else if (number === 2) { + result += withoutSuffix || isFuture ? 'meseca' : 'mesecema'; + } else if (number < 5) { + result += withoutSuffix || isFuture ? 'mesece' : 'meseci'; + } else { + result += withoutSuffix || isFuture ? 'mesecev' : 'meseci'; + } + return result; + case 'y': + return withoutSuffix || isFuture ? 'eno leto' : 'enim letom'; + case 'yy': + if (number === 1) { + result += withoutSuffix || isFuture ? 'leto' : 'letom'; + } else if (number === 2) { + result += withoutSuffix || isFuture ? 'leti' : 'letoma'; + } else if (number < 5) { + result += withoutSuffix || isFuture ? 'leta' : 'leti'; + } else { + result += withoutSuffix || isFuture ? 'let' : 'leti'; + } + return result; } - } - }); + } - _defineProperty(_assertThisInitialized(_this), "blur", function () { - if (_this.inputRef.current) { - _this.inputRef.current.blur(); - } + var sl = moment.defineLocale('sl', { + months: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split( + '_' + ), + monthsShort: 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'), + weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'), + weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD. MM. YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd, D. MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[danes ob] LT', + nextDay: '[jutri ob] LT', + + nextWeek: function () { + switch (this.day()) { + case 0: + return '[v] [nedeljo] [ob] LT'; + case 3: + return '[v] [sredo] [ob] LT'; + case 6: + return '[v] [soboto] [ob] LT'; + case 1: + case 2: + case 4: + case 5: + return '[v] dddd [ob] LT'; + } + }, + lastDay: '[včeraj ob] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + return '[prejšnjo] [nedeljo] [ob] LT'; + case 3: + return '[prejšnjo] [sredo] [ob] LT'; + case 6: + return '[prejšnjo] [soboto] [ob] LT'; + case 1: + case 2: + case 4: + case 5: + return '[prejšnji] dddd [ob] LT'; + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'čez %s', + past: 'pred %s', + s: processRelativeTime, + ss: processRelativeTime, + m: processRelativeTime, + mm: processRelativeTime, + h: processRelativeTime, + hh: processRelativeTime, + d: processRelativeTime, + dd: processRelativeTime, + M: processRelativeTime, + MM: processRelativeTime, + y: processRelativeTime, + yy: processRelativeTime, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, }); - _this.inputRef = Object(__WEBPACK_IMPORTED_MODULE_3__util__["g" /* createRef */])(); - _this.mirrorInputRef = Object(__WEBPACK_IMPORTED_MODULE_3__util__["g" /* createRef */])(); - return _this; - } + return sl; - _createClass(SearchInput, [{ - key: "componentDidMount", - value: function componentDidMount() { - var _this$props = this.props, - open = _this$props.open, - needAlign = _this$props.needAlign; + }))); - if (needAlign) { - this.alignInputWidth(); - } - if (open) { - this.focus(true); - } - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - var _this$props2 = this.props, - open = _this$props2.open, - searchValue = _this$props2.searchValue, - needAlign = _this$props2.needAlign; + /***/ }), + /* 425 */ + /***/ (function(module, exports, __webpack_require__) { - if (open && prevProps.open !== open) { - this.focus(); - } + //! moment.js locale configuration + //! locale : Albanian [sq] + //! author : Flakërim Ismani : https://github.com/flakerimi + //! author : Menelion Elensúle : https://github.com/Oire + //! author : Oerd Cukalla : https://github.com/oerd - if (needAlign && searchValue !== prevProps.searchValue) { - this.alignInputWidth(); - } - } - /** - * `scrollWidth` is not correct in IE, do the workaround. - * ref: https://github.com/react-component/tree-select/issues/65 - */ + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - }, { - key: "render", - value: function render() { - var _this$props3 = this.props, - searchValue = _this$props3.searchValue, - prefixCls = _this$props3.prefixCls, - disabled = _this$props3.disabled, - renderPlaceholder = _this$props3.renderPlaceholder, - open = _this$props3.open, - ariaId = _this$props3.ariaId; - var _this$context$rcTreeS = this.context.rcTreeSelect, - onSearchInputChange = _this$context$rcTreeS.onSearchInputChange, - onSearchInputKeyDown = _this$context$rcTreeS.onSearchInputKeyDown; - return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("span", { - className: "".concat(prefixCls, "-search__field__wrap") - }, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("input", { - type: "text", - ref: this.inputRef, - onChange: onSearchInputChange, - onKeyDown: onSearchInputKeyDown, - value: searchValue, - disabled: disabled, - className: "".concat(prefixCls, "-search__field"), - "aria-label": "filter select", - "aria-autocomplete": "list", - "aria-controls": open ? ariaId : undefined, - "aria-multiline": "false" - }), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("span", { - ref: this.mirrorInputRef, - className: "".concat(prefixCls, "-search__field__mirror") - }, searchValue, "\xA0"), renderPlaceholder ? renderPlaceholder() : null); - } - }]); + //! moment.js locale configuration - return SearchInput; - }(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component); + var sq = moment.defineLocale('sq', { + months: 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split( + '_' + ), + monthsShort: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'), + weekdays: 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split( + '_' + ), + weekdaysShort: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'), + weekdaysMin: 'D_H_Ma_Më_E_P_Sh'.split('_'), + weekdaysParseExact: true, + meridiemParse: /PD|MD/, + isPM: function (input) { + return input.charAt(0) === 'M'; + }, + meridiem: function (hours, minutes, isLower) { + return hours < 12 ? 'PD' : 'MD'; + }, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Sot në] LT', + nextDay: '[Nesër në] LT', + nextWeek: 'dddd [në] LT', + lastDay: '[Dje në] LT', + lastWeek: 'dddd [e kaluar në] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'në %s', + past: '%s më parë', + s: 'disa sekonda', + ss: '%d sekonda', + m: 'një minutë', + mm: '%d minuta', + h: 'një orë', + hh: '%d orë', + d: 'një ditë', + dd: '%d ditë', + M: 'një muaj', + MM: '%d muaj', + y: 'një vit', + yy: '%d vite', + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - _defineProperty(SearchInput, "propTypes", { - open: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, - searchValue: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, - prefixCls: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, - disabled: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, - renderPlaceholder: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func, - needAlign: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, - ariaId: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string - }); + return sq; - _defineProperty(SearchInput, "contextTypes", { - rcTreeSelect: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.shape(_objectSpread({}, searchContextTypes)) - }); + }))); - Object(__WEBPACK_IMPORTED_MODULE_2_react_lifecycles_compat__["polyfill"])(SearchInput); - /* harmony default export */ __webpack_exports__["a"] = (SearchInput); /***/ }), - /* 540 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { - - "use strict"; - /* unused harmony export genArrProps */ - /* harmony export (immutable) */ __webpack_exports__["a"] = valueProp; - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types__ = __webpack_require__(1); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_prop_types__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util__ = __webpack_require__(34); - - - var internalValProp = __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number]); - function genArrProps(propType) { - return __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.oneOfType([propType, __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.arrayOf(propType)]); - } - /** - * Origin code check `multiple` is true when `treeCheckStrictly` & `labelInValue`. - * But in process logic is already cover to array. - * Check array is not necessary. Let's simplify this check logic. - */ + /* 426 */ + /***/ (function(module, exports, __webpack_require__) { - function valueProp() { - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } + //! moment.js locale configuration + //! locale : Serbian [sr] + //! author : Milan Janačković : https://github.com/milan-j - var props = args[0], - propName = args[1], - Component = args[2]; + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - if (Object(__WEBPACK_IMPORTED_MODULE_1__util__["o" /* isLabelInValue */])(props)) { - var _err = genArrProps(__WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.shape({ - label: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.node, - value: internalValProp - })).apply(void 0, args); + //! moment.js locale configuration - if (_err) { - return new Error("Invalid prop `".concat(propName, "` supplied to `").concat(Component, "`. ") + "You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."); - } + var translator = { + words: { + //Different grammatical cases + ss: ['sekunda', 'sekunde', 'sekundi'], + m: ['jedan minut', 'jedne minute'], + mm: ['minut', 'minute', 'minuta'], + h: ['jedan sat', 'jednog sata'], + hh: ['sat', 'sata', 'sati'], + dd: ['dan', 'dana', 'dana'], + MM: ['mesec', 'meseca', 'meseci'], + yy: ['godina', 'godine', 'godina'], + }, + correctGrammaticalCase: function (number, wordKey) { + return number === 1 + ? wordKey[0] + : number >= 2 && number <= 4 + ? wordKey[1] + : wordKey[2]; + }, + translate: function (number, withoutSuffix, key) { + var wordKey = translator.words[key]; + if (key.length === 1) { + return withoutSuffix ? wordKey[0] : wordKey[1]; + } else { + return ( + number + + ' ' + + translator.correctGrammaticalCase(number, wordKey) + ); + } + }, + }; - return null; - } + var sr = moment.defineLocale('sr', { + months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split( + '_' + ), + monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split( + '_' + ), + weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'), + weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd, D. MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[danas u] LT', + nextDay: '[sutra u] LT', + nextWeek: function () { + switch (this.day()) { + case 0: + return '[u] [nedelju] [u] LT'; + case 3: + return '[u] [sredu] [u] LT'; + case 6: + return '[u] [subotu] [u] LT'; + case 1: + case 2: + case 4: + case 5: + return '[u] dddd [u] LT'; + } + }, + lastDay: '[juče u] LT', + lastWeek: function () { + var lastWeekDays = [ + '[prošle] [nedelje] [u] LT', + '[prošlog] [ponedeljka] [u] LT', + '[prošlog] [utorka] [u] LT', + '[prošle] [srede] [u] LT', + '[prošlog] [četvrtka] [u] LT', + '[prošlog] [petka] [u] LT', + '[prošle] [subote] [u] LT', + ]; + return lastWeekDays[this.day()]; + }, + sameElse: 'L', + }, + relativeTime: { + future: 'za %s', + past: 'pre %s', + s: 'nekoliko sekundi', + ss: translator.translate, + m: translator.translate, + mm: translator.translate, + h: translator.translate, + hh: translator.translate, + d: 'dan', + dd: translator.translate, + M: 'mesec', + MM: translator.translate, + y: 'godinu', + yy: translator.translate, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, + }); - var err = genArrProps(internalValProp).apply(void 0, args); + return sr; - if (err) { - return new Error("Invalid prop `".concat(propName, "` supplied to `").concat(Component, "`. ") + "You should use string or [string] instead."); - } + }))); - return null; - } /***/ }), - /* 541 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { - - "use strict"; - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_rc_tree__ = __webpack_require__(538); - /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__propTypes__ = __webpack_require__(540); - function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + /* 427 */ + /***/ (function(module, exports, __webpack_require__) { - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + //! moment.js locale configuration + //! locale : Serbian Cyrillic [sr-cyrl] + //! author : Milan Janačković : https://github.com/milan-j + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; + //! moment.js locale configuration + var translator = { + words: { + //Different grammatical cases + ss: ['секунда', 'секунде', 'секунди'], + m: ['један минут', 'једне минуте'], + mm: ['минут', 'минуте', 'минута'], + h: ['један сат', 'једног сата'], + hh: ['сат', 'сата', 'сати'], + dd: ['дан', 'дана', 'дана'], + MM: ['месец', 'месеца', 'месеци'], + yy: ['година', 'године', 'година'], + }, + correctGrammaticalCase: function (number, wordKey) { + return number === 1 + ? wordKey[0] + : number >= 2 && number <= 4 + ? wordKey[1] + : wordKey[2]; + }, + translate: function (number, withoutSuffix, key) { + var wordKey = translator.words[key]; + if (key.length === 1) { + return withoutSuffix ? wordKey[0] : wordKey[1]; + } else { + return ( + number + + ' ' + + translator.correctGrammaticalCase(number, wordKey) + ); + } + }, + }; - /** - * SelectNode wrapped the tree node. - * Let's use SelectNode instead of TreeNode - * since TreeNode is so confuse here. - */ + var srCyrl = moment.defineLocale('sr-cyrl', { + months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split( + '_' + ), + monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split( + '_' + ), + monthsParseExact: true, + weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'), + weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'), + weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd, D. MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[данас у] LT', + nextDay: '[сутра у] LT', + nextWeek: function () { + switch (this.day()) { + case 0: + return '[у] [недељу] [у] LT'; + case 3: + return '[у] [среду] [у] LT'; + case 6: + return '[у] [суботу] [у] LT'; + case 1: + case 2: + case 4: + case 5: + return '[у] dddd [у] LT'; + } + }, + lastDay: '[јуче у] LT', + lastWeek: function () { + var lastWeekDays = [ + '[прошле] [недеље] [у] LT', + '[прошлог] [понедељка] [у] LT', + '[прошлог] [уторка] [у] LT', + '[прошле] [среде] [у] LT', + '[прошлог] [четвртка] [у] LT', + '[прошлог] [петка] [у] LT', + '[прошле] [суботе] [у] LT', + ]; + return lastWeekDays[this.day()]; + }, + sameElse: 'L', + }, + relativeTime: { + future: 'за %s', + past: 'пре %s', + s: 'неколико секунди', + ss: translator.translate, + m: translator.translate, + mm: translator.translate, + h: translator.translate, + hh: translator.translate, + d: 'дан', + dd: translator.translate, + M: 'месец', + MM: translator.translate, + y: 'годину', + yy: translator.translate, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, + }); - var SelectNode = function SelectNode(props) { - return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1_rc_tree__["a" /* TreeNode */], props); - }; + return srCyrl; - SelectNode.propTypes = _objectSpread({}, __WEBPACK_IMPORTED_MODULE_1_rc_tree__["a" /* TreeNode */].propTypes, { - value: __WEBPACK_IMPORTED_MODULE_2__propTypes__["a" /* valueProp */] - }); // Let Tree trade as TreeNode to reuse this for performance saving. + }))); - SelectNode.isTreeNode = 1; - /* harmony default export */ __webpack_exports__["a"] = (SelectNode); /***/ }), - /* 542 */ + /* 428 */ /***/ (function(module, exports, __webpack_require__) { - var Button = __webpack_require__(543); - var Badge = __webpack_require__(546); - var Alert = __webpack_require__(550); - var ButtonGroup = __webpack_require__(555); - var Label = __webpack_require__(561); - var FormControl = __webpack_require__(565); - var FormGroup = __webpack_require__(569); - var Form = __webpack_require__(573); - var Layout = __webpack_require__(677); - var InputGroup = __webpack_require__(682); - var InputNumber = __webpack_require__(688); - var Checkbox = __webpack_require__(727); - var Pagination = __webpack_require__(731); - var ProgressBar = __webpack_require__(843); - var Radio = __webpack_require__(847); - var Switch = __webpack_require__(852); - var Tooltip = __webpack_require__(856); - var Dropdown = __webpack_require__(891); - var Panel = __webpack_require__(895); - var PanelGroup = __webpack_require__(928); - var SearchPanel = __webpack_require__(929); - var Transition = __webpack_require__(966); - var Navbar = __webpack_require__(984); - var Animate = __webpack_require__(997); - var Select = __webpack_require__(999); - var Tile = __webpack_require__(1001); - var Icon = __webpack_require__(1005); - var Menu = __webpack_require__(1007); - var Upload = __webpack_require__(1033); - var Breadcrumb = __webpack_require__(1143); - - var Message = __webpack_require__(1148); - var Notification = __webpack_require__(1150); - var Popconfirm = __webpack_require__(1172); - var Modal = __webpack_require__(1198); - var Tabs = __webpack_require__(1200); - var Cascader = __webpack_require__(1221); - var Loading = __webpack_require__(1252); - var Table = __webpack_require__(1256); - var Tree = __webpack_require__(1318); - var Clipboard = __webpack_require__(1338); - - var Rate = __webpack_require__(1398); - var Step = __webpack_require__(1408); - var Timeline = __webpack_require__(1414); - var Transfer = __webpack_require__(1418); - var BackTop = __webpack_require__(1451); - var Collapse = __webpack_require__(1455); - - var Slider = __webpack_require__(1474); - var AutoComplete = __webpack_require__(1508); - - var LoadingState = __webpack_require__(1514); - var Locale = __webpack_require__(1522); - var Popover = __webpack_require__(1526); - var Anchor = __webpack_require__(1565); - var ColorPicker = __webpack_require__(1570); - var Tag = __webpack_require__(1631); - var Affix = __webpack_require__(1635); - var Drawer = __webpack_require__(1640); - var TreeSelect = __webpack_require__(1652); - var PageLayout = __webpack_require__(1683); - var SvgIcon = __webpack_require__(1696); - // var Carousel = require('./lib/Carousel'); - - var TinperBee = { - version: '2.3.7', - Slider: Slider, - AutoComplete: AutoComplete, - // Carousel:Carousel, - Button: Button, - Badge: Badge, - Alert: Alert, - ButtonGroup: ButtonGroup, - Label: Label, - FormControl: FormControl, - FormGroup: FormGroup, - Form: Form, - InputGroup: InputGroup, - InputNumber: InputNumber, - Checkbox: Checkbox, - Pagination: Pagination, - ProgressBar: ProgressBar, - Radio: Radio, - Switch: Switch, - Tooltip: Tooltip, - Con: Layout.Con, - Row: Layout.Row, - Col: Layout.Col, - Dropdown: Dropdown, - Panel: Panel, - PanelGroup: PanelGroup, - Transition: Transition, - Select: Select, - Animate: Animate, - Icon: Icon, - Menu: Menu, - Breadcrumb: Breadcrumb, - Upload: Upload, - Tile: Tile, - Navbar: Navbar, - Message: Message, - Notification: Notification, - Popconfirm: Popconfirm, - Modal: Modal, - Tabs: Tabs, - Cascader: Cascader, - Loading: Loading, - Table: Table, - Tree: Tree, - Clipboard: Clipboard, - Rate: Rate, - Step: Step, - Timeline: Timeline, - Transfer: Transfer, - BackTop: BackTop, - Collapse: Collapse, - LoadingState: LoadingState, - Locale: Locale, - Popover: Popover, - Anchor: Anchor, - Tag: Tag, - ColorPicker: ColorPicker, - SearchPanel: SearchPanel, - Affix: Affix, - Drawer: Drawer, - TreeSelect: TreeSelect, - PageLayout: PageLayout, - SvgIcon: SvgIcon, - }; - - module.exports = TinperBee; + //! moment.js locale configuration + //! locale : siSwati [ss] + //! author : Nicolai Davies : https://github.com/nicolaidavies + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - /***/ }), - /* 543 */ - /***/ (function(module, exports, __webpack_require__) { + //! moment.js locale configuration - __webpack_require__(544); - module.exports = __webpack_require__(213); + var ss = moment.defineLocale('ss', { + months: "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split( + '_' + ), + monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'), + weekdays: 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split( + '_' + ), + weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'), + weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY h:mm A', + LLLL: 'dddd, D MMMM YYYY h:mm A', + }, + calendar: { + sameDay: '[Namuhla nga] LT', + nextDay: '[Kusasa nga] LT', + nextWeek: 'dddd [nga] LT', + lastDay: '[Itolo nga] LT', + lastWeek: 'dddd [leliphelile] [nga] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'nga %s', + past: 'wenteka nga %s', + s: 'emizuzwana lomcane', + ss: '%d mzuzwana', + m: 'umzuzu', + mm: '%d emizuzu', + h: 'lihora', + hh: '%d emahora', + d: 'lilanga', + dd: '%d emalanga', + M: 'inyanga', + MM: '%d tinyanga', + y: 'umnyaka', + yy: '%d iminyaka', + }, + meridiemParse: /ekuseni|emini|entsambama|ebusuku/, + meridiem: function (hours, minutes, isLower) { + if (hours < 11) { + return 'ekuseni'; + } else if (hours < 15) { + return 'emini'; + } else if (hours < 19) { + return 'entsambama'; + } else { + return 'ebusuku'; + } + }, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === 'ekuseni') { + return hour; + } else if (meridiem === 'emini') { + return hour >= 11 ? hour : hour + 12; + } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') { + if (hour === 0) { + return 0; + } + return hour + 12; + } + }, + dayOfMonthOrdinalParse: /\d{1,2}/, + ordinal: '%d', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); + return ss; - /***/ }), - /* 544 */ - /***/ (function(module, exports) { + }))); - // removed by extract-text-webpack-plugin /***/ }), - /* 545 */ + /* 429 */ /***/ (function(module, exports, __webpack_require__) { - "use strict"; - - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - - var _react = __webpack_require__(0); - - var _react2 = _interopRequireDefault(_react); + //! moment.js locale configuration + //! locale : Swedish [sv] + //! author : Jens Alm : https://github.com/ulmus - var _reactDom = __webpack_require__(3); + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _reactDom2 = _interopRequireDefault(_reactDom); + //! moment.js locale configuration - var _propTypes = __webpack_require__(1); + var sv = moment.defineLocale('sv', { + months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split( + '_' + ), + monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'), + weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'), + weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'), + weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY-MM-DD', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY [kl.] HH:mm', + LLLL: 'dddd D MMMM YYYY [kl.] HH:mm', + lll: 'D MMM YYYY HH:mm', + llll: 'ddd D MMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Idag] LT', + nextDay: '[Imorgon] LT', + lastDay: '[Igår] LT', + nextWeek: '[På] dddd LT', + lastWeek: '[I] dddd[s] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'om %s', + past: 'för %s sedan', + s: 'några sekunder', + ss: '%d sekunder', + m: 'en minut', + mm: '%d minuter', + h: 'en timme', + hh: '%d timmar', + d: 'en dag', + dd: '%d dagar', + M: 'en månad', + MM: '%d månader', + y: 'ett år', + yy: '%d år', + }, + dayOfMonthOrdinalParse: /\d{1,2}(\:e|\:a)/, + ordinal: function (number) { + var b = number % 10, + output = + ~~((number % 100) / 10) === 1 + ? ':e' + : b === 1 + ? ':a' + : b === 2 + ? ':a' + : b === 3 + ? ':e' + : ':e'; + return number + output; + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4, // The week that contains Jan 4th is the first week of the year. + }, + }); - var _propTypes2 = _interopRequireDefault(_propTypes); + return sv; - var _classnames = __webpack_require__(2); + }))); - var _classnames2 = _interopRequireDefault(_classnames); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + /***/ }), + /* 430 */ + /***/ (function(module, exports, __webpack_require__) { - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + //! moment.js locale configuration + //! locale : Swahili [sw] + //! author : Fahad Kassim : https://github.com/fadsel - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + ;(function (global, factory) { + true ? factory(__webpack_require__(4)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + //! moment.js locale configuration - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + var sw = moment.defineLocale('sw', { + months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'), + weekdays: 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split( + '_' + ), + weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'), + weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'), + weekdaysParseExact: true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[leo saa] LT', + nextDay: '[kesho saa] LT', + nextWeek: '[wiki ijayo] dddd [saat] LT', + lastDay: '[jana] LT', + lastWeek: '[wiki iliyopita] dddd [saat] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s baadaye', + past: 'tokea %s', + s: 'hivi punde', + ss: 'sekunde %d', + m: 'dakika moja', + mm: 'dakika %d', + h: 'saa limoja', + hh: 'masaa %d', + d: 'siku moja', + dd: 'masiku %d', + M: 'mwezi mmoja', + MM: 'miezi %d', + y: 'mwaka mmoja', + yy: 'miaka %d', + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 7, // The week that contains Jan 7th is the first week of the year. + }, + }); - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + return sw; - var propTypes = { - /** - * @title 尺寸 - */ - size: _propTypes2["default"].oneOf(['sm', 'md', 'xg', 'lg']), - /** - * @title 样式 - */ - style: _propTypes2["default"].object, - /** - * @title 形状 - */ - shape: _propTypes2["default"].oneOf(['block', 'round', 'border', 'squared', 'floating', 'pillRight', 'pillLeft', 'icon']), + }))); - bordered: _propTypes2["default"].bool, - /** - * @title 类型 - */ - colors: _propTypes2["default"].oneOf(['primary', 'secondary', 'accent', 'success', 'info', 'warning', 'danger', 'dark', 'light', 'default']), - /** - * @title 是否禁用 - * @veIgnore - */ - disabled: _propTypes2["default"].bool, - /** - * @title 类名 - * @veIgnore - */ - className: _propTypes2["default"].string, - /** - * @title + *
    + * ); + * } + * ``` + * + * When the button is clicked the component will shift to the `'entering'` state + * and stay there for 500ms (the value of `timeout`) before it finally switches + * to `'entered'`. + * + * When `in` is `false` the same thing happens except the state moves from + * `'exiting'` to `'exited'`. + */ - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + exports.EXITING = EXITING; - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + var Transition = + /*#__PURE__*/ + function (_React$Component) { + _inheritsLoose(Transition, _React$Component); - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + function Transition(props, context) { + var _this; - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + _this = _React$Component.call(this, props, context) || this; + var parentGroup = context.transitionGroup; // In the context of a TransitionGroup all enters are really appears - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear; + var initialStatus; + _this.appearStatus = null; - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + if (props.in) { + if (appear) { + initialStatus = EXITED; + _this.appearStatus = ENTERING; + } else { + initialStatus = ENTERED; + } + } else { + if (props.unmountOnExit || props.mountOnEnter) { + initialStatus = UNMOUNTED; + } else { + initialStatus = EXITED; + } + } - var defaultProps = { - clsPrefix: 'u-input-group', - simple: false - }; + _this.state = { + status: initialStatus + }; + _this.nextCallback = null; + return _this; + } - var InputGroup = function (_React$Component) { - _inherits(InputGroup, _React$Component); + var _proto = Transition.prototype; - function InputGroup() { - _classCallCheck(this, InputGroup); + _proto.getChildContext = function getChildContext() { + return { + transitionGroup: null // allows for nested Transitions - return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); - } + }; + }; - InputGroup.prototype.render = function render() { - var _props = this.props, - className = _props.className, - clsPrefix = _props.clsPrefix, - simple = _props.simple, - others = _objectWithoutProperties(_props, ['className', 'clsPrefix', 'simple']); + Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) { + var nextIn = _ref.in; - return _react2["default"].createElement('span', _extends({}, others, { - className: (0, _classnames2["default"])(className, clsPrefix, simple && 'simple') - })); - }; + if (nextIn && prevState.status === UNMOUNTED) { + return { + status: EXITED + }; + } - return InputGroup; - }(_react2["default"].Component); + return null; + }; // getSnapshotBeforeUpdate(prevProps) { + // let nextStatus = null + // if (prevProps !== this.props) { + // const { status } = this.state + // if (this.props.in) { + // if (status !== ENTERING && status !== ENTERED) { + // nextStatus = ENTERING + // } + // } else { + // if (status === ENTERING || status === ENTERED) { + // nextStatus = EXITING + // } + // } + // } + // return { nextStatus } + // } - /** - * 将InputGroupAddon与InputGroupButton组件作为InputGroup的附属组件 - */ + _proto.componentDidMount = function componentDidMount() { + this.updateStatus(true, this.appearStatus); + }; - InputGroup.Addon = _beeInputGroupAddon2["default"]; - InputGroup.Button = _InputGroupButton2["default"]; - InputGroup.defaultProps = defaultProps; - exports["default"] = InputGroup; - module.exports = exports['default']; + _proto.componentDidUpdate = function componentDidUpdate(prevProps) { + var nextStatus = null; - /***/ }), - /* 685 */ - /***/ (function(module, exports, __webpack_require__) { + if (prevProps !== this.props) { + var status = this.state.status; - "use strict"; + if (this.props.in) { + if (status !== ENTERING && status !== ENTERED) { + nextStatus = ENTERING; + } + } else { + if (status === ENTERING || status === ENTERED) { + nextStatus = EXITING; + } + } + } + this.updateStatus(false, nextStatus); + }; - Object.defineProperty(exports, "__esModule", { - value: true - }); + _proto.componentWillUnmount = function componentWillUnmount() { + this.cancelNextCallback(); + }; - var _InputGroupAddon = __webpack_require__(686); + _proto.getTimeouts = function getTimeouts() { + var timeout = this.props.timeout; + var exit, enter, appear; + exit = enter = appear = timeout; - var _InputGroupAddon2 = _interopRequireDefault(_InputGroupAddon); + if (timeout != null && typeof timeout !== 'number') { + exit = timeout.exit; + enter = timeout.enter; // TODO: remove fallback for next major - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + appear = timeout.appear !== undefined ? timeout.appear : enter; + } - exports["default"] = _InputGroupAddon2["default"]; - module.exports = exports['default']; + return { + exit: exit, + enter: enter, + appear: appear + }; + }; - /***/ }), - /* 686 */ - /***/ (function(module, exports, __webpack_require__) { + _proto.updateStatus = function updateStatus(mounting, nextStatus) { + if (mounting === void 0) { + mounting = false; + } - "use strict"; + if (nextStatus !== null) { + // nextStatus will always be ENTERING or EXITING. + this.cancelNextCallback(); + var node = _reactDom.default.findDOMNode(this); - Object.defineProperty(exports, "__esModule", { - value: true - }); + if (nextStatus === ENTERING) { + this.performEnter(node, mounting); + } else { + this.performExit(node); + } + } else if (this.props.unmountOnExit && this.state.status === EXITED) { + this.setState({ + status: UNMOUNTED + }); + } + }; - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + _proto.performEnter = function performEnter(node, mounting) { + var _this2 = this; - var _classnames = __webpack_require__(2); + var enter = this.props.enter; + var appearing = this.context.transitionGroup ? this.context.transitionGroup.isMounting : mounting; + var timeouts = this.getTimeouts(); + var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED + // if we are mounting and running this it means appear _must_ be set - var _classnames2 = _interopRequireDefault(_classnames); + if (!mounting && !enter) { + this.safeSetState({ + status: ENTERED + }, function () { + _this2.props.onEntered(node); + }); + return; + } - var _react = __webpack_require__(0); + this.props.onEnter(node, appearing); + this.safeSetState({ + status: ENTERING + }, function () { + _this2.props.onEntering(node, appearing); - var _react2 = _interopRequireDefault(_react); + _this2.onTransitionEnd(node, enterTimeout, function () { + _this2.safeSetState({ + status: ENTERED + }, function () { + _this2.props.onEntered(node, appearing); + }); + }); + }); + }; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + _proto.performExit = function performExit(node) { + var _this3 = this; - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + var exit = this.props.exit; + var timeouts = this.getTimeouts(); // no exit animation skip right to EXITED - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + if (!exit) { + this.safeSetState({ + status: EXITED + }, function () { + _this3.props.onExited(node); + }); + return; + } - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + this.props.onExit(node); + this.safeSetState({ + status: EXITING + }, function () { + _this3.props.onExiting(node); - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + _this3.onTransitionEnd(node, timeouts.exit, function () { + _this3.safeSetState({ + status: EXITED + }, function () { + _this3.props.onExited(node); + }); + }); + }); + }; - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + _proto.cancelNextCallback = function cancelNextCallback() { + if (this.nextCallback !== null) { + this.nextCallback.cancel(); + this.nextCallback = null; + } + }; - var defaultProps = { - clsPrefix: 'u-input-group-addon' - }; + _proto.safeSetState = function safeSetState(nextState, callback) { + // This shouldn't be necessary, but there are weird race conditions with + // setState callbacks and unmounting in testing, so always make sure that + // we can cancel any pending setState callbacks after we unmount. + callback = this.setNextCallback(callback); + this.setState(nextState, callback); + }; - var InputGroupAddon = function (_React$Component) { - _inherits(InputGroupAddon, _React$Component); + _proto.setNextCallback = function setNextCallback(callback) { + var _this4 = this; - function InputGroupAddon() { - _classCallCheck(this, InputGroupAddon); + var active = true; - return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); - } + this.nextCallback = function (event) { + if (active) { + active = false; + _this4.nextCallback = null; + callback(event); + } + }; - InputGroupAddon.prototype.render = function render() { - var _props = this.props, - className = _props.className, - clsPrefix = _props.clsPrefix, - others = _objectWithoutProperties(_props, ['className', 'clsPrefix']); + this.nextCallback.cancel = function () { + active = false; + }; - return _react2["default"].createElement('span', _extends({}, others, { - className: (0, _classnames2["default"])(className, clsPrefix) - })); + return this.nextCallback; }; - return InputGroupAddon; - }(_react2["default"].Component); + _proto.onTransitionEnd = function onTransitionEnd(node, timeout, handler) { + this.setNextCallback(handler); + var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener; - InputGroupAddon.defaultProps = defaultProps; - exports["default"] = InputGroupAddon; - module.exports = exports['default']; + if (!node || doesNotHaveTimeoutOrListener) { + setTimeout(this.nextCallback, 0); + return; + } - /***/ }), - /* 687 */ - /***/ (function(module, exports, __webpack_require__) { + if (this.props.addEndListener) { + this.props.addEndListener(node, this.nextCallback); + } - "use strict"; + if (timeout != null) { + setTimeout(this.nextCallback, timeout); + } + }; + _proto.render = function render() { + var status = this.state.status; - Object.defineProperty(exports, "__esModule", { - value: true - }); + if (status === UNMOUNTED) { + return null; + } - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + var _this$props = this.props, + children = _this$props.children, + childProps = _objectWithoutPropertiesLoose(_this$props, ["children"]); // filter props for Transtition - var _classnames = __webpack_require__(2); - var _classnames2 = _interopRequireDefault(_classnames); + delete childProps.in; + delete childProps.mountOnEnter; + delete childProps.unmountOnExit; + delete childProps.appear; + delete childProps.enter; + delete childProps.exit; + delete childProps.timeout; + delete childProps.addEndListener; + delete childProps.onEnter; + delete childProps.onEntering; + delete childProps.onEntered; + delete childProps.onExit; + delete childProps.onExiting; + delete childProps.onExited; - var _react = __webpack_require__(0); + if (typeof children === 'function') { + return children(status, childProps); + } - var _react2 = _interopRequireDefault(_react); + var child = _react.default.Children.only(children); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + return _react.default.cloneElement(child, childProps); + }; - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + return Transition; + }(_react.default.Component); - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + Transition.contextTypes = { + transitionGroup: PropTypes.object + }; + Transition.childContextTypes = { + transitionGroup: function transitionGroup() {} + }; + Transition.propTypes = process.env.NODE_ENV !== "production" ? { + /** + * A `function` child can be used instead of a React element. This function is + * called with the current transition status (`'entering'`, `'entered'`, + * `'exiting'`, `'exited'`, `'unmounted'`), which can be used to apply context + * specific props to a component. + * + * ```jsx + * + * {state => ( + * + * )} + * + * ``` + */ + children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired, - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + /** + * Show the component; triggers the enter or exit states + */ + in: PropTypes.bool, - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + /** + * By default the child component is mounted immediately along with + * the parent `Transition` component. If you want to "lazy mount" the component on the + * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay + * mounted, even on "exited", unless you also specify `unmountOnExit`. + */ + mountOnEnter: PropTypes.bool, - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + /** + * By default the child component stays mounted after it reaches the `'exited'` state. + * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting. + */ + unmountOnExit: PropTypes.bool, - var defaultProps = { - clsPrefix: 'u-input-group-btn' - }; + /** + * Normally a component is not transitioned if it is shown when the `` component mounts. + * If you want to transition on the first mount set `appear` to `true`, and the + * component will transition in as soon as the `` mounts. + * + * > Note: there are no specific "appear" states. `appear` only adds an additional `enter` transition. + */ + appear: PropTypes.bool, - var InputGroupButton = function (_React$Component) { - _inherits(InputGroupButton, _React$Component); + /** + * Enable or disable enter transitions. + */ + enter: PropTypes.bool, - function InputGroupButton() { - _classCallCheck(this, InputGroupButton); + /** + * Enable or disable exit transitions. + */ + exit: PropTypes.bool, - return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); - } + /** + * The duration of the transition, in milliseconds. + * Required unless `addEndListener` is provided. + * + * You may specify a single timeout for all transitions: + * + * ```jsx + * timeout={500} + * ``` + * + * or individually: + * + * ```jsx + * timeout={{ + * appear: 500, + * enter: 300, + * exit: 500, + * }} + * ``` + * + * - `appear` defaults to the value of `enter` + * - `enter` defaults to `0` + * - `exit` defaults to `0` + * + * @type {number | { enter?: number, exit?: number, appear?: number }} + */ + timeout: function timeout(props) { + var pt = _PropTypes.timeoutsShape; + if (!props.addEndListener) pt = pt.isRequired; - InputGroupButton.prototype.render = function render() { - var _props = this.props, - className = _props.className, - clsPrefix = _props.clsPrefix, - others = _objectWithoutProperties(_props, ['className', 'clsPrefix']); + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } - return _react2["default"].createElement('span', _extends({}, others, { - className: (0, _classnames2["default"])(className, clsPrefix) - })); - }; + return pt.apply(void 0, [props].concat(args)); + }, - return InputGroupButton; - }(_react2["default"].Component); + /** + * Add a custom transition end trigger. Called with the transitioning + * DOM node and a `done` callback. Allows for more fine grained transition end + * logic. **Note:** Timeouts are still used as a fallback if provided. + * + * ```jsx + * addEndListener={(node, done) => { + * // use the css transitionend event to mark the finish of a transition + * node.addEventListener('transitionend', done, false); + * }} + * ``` + */ + addEndListener: PropTypes.func, - InputGroupButton.defaultProps = defaultProps; - exports["default"] = InputGroupButton; - module.exports = exports['default']; + /** + * Callback fired before the "entering" status is applied. An extra parameter + * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount + * + * @type Function(node: HtmlElement, isAppearing: bool) -> void + */ + onEnter: PropTypes.func, - /***/ }), - /* 688 */ - /***/ (function(module, exports, __webpack_require__) { + /** + * Callback fired after the "entering" status is applied. An extra parameter + * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount + * + * @type Function(node: HtmlElement, isAppearing: bool) + */ + onEntering: PropTypes.func, - __webpack_require__(689); - module.exports = __webpack_require__(237); + /** + * Callback fired after the "entered" status is applied. An extra parameter + * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount + * + * @type Function(node: HtmlElement, isAppearing: bool) -> void + */ + onEntered: PropTypes.func, + /** + * Callback fired before the "exiting" status is applied. + * + * @type Function(node: HtmlElement) -> void + */ + onExit: PropTypes.func, - /***/ }), - /* 689 */ - /***/ (function(module, exports) { + /** + * Callback fired after the "exiting" status is applied. + * + * @type Function(node: HtmlElement) -> void + */ + onExiting: PropTypes.func, - // removed by extract-text-webpack-plugin + /** + * Callback fired after the "exited" status is applied. + * + * @type Function(node: HtmlElement) -> void + */ + onExited: PropTypes.func // Name the function so it is clearer in the documentation - /***/ }), - /* 690 */ - /***/ (function(module, exports, __webpack_require__) { + } : {}; - "use strict"; + function noop() {} + + Transition.defaultProps = { + in: false, + mountOnEnter: false, + unmountOnExit: false, + appear: false, + enter: true, + exit: true, + onEnter: noop, + onEntering: noop, + onEntered: noop, + onExit: noop, + onExiting: noop, + onExited: noop + }; + Transition.UNMOUNTED = 0; + Transition.EXITED = 1; + Transition.ENTERING = 2; + Transition.ENTERED = 3; + Transition.EXITING = 4; + var _default = (0, _reactLifecyclesCompat.polyfill)(Transition); - module.exports = __webpack_require__(691); + exports.default = _default; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) /***/ }), - /* 691 */ + /* 512 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; + /* WEBPACK VAR INJECTION */(function(process) { + exports.__esModule = true; + exports.classNamesShape = exports.timeoutsShape = void 0; - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + var _propTypes = _interopRequireDefault(__webpack_require__(1)); - var _classnames = __webpack_require__(2); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var _classnames2 = _interopRequireDefault(_classnames); + var timeoutsShape = process.env.NODE_ENV !== 'production' ? _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.shape({ + enter: _propTypes.default.number, + exit: _propTypes.default.number, + appear: _propTypes.default.number + }).isRequired]) : null; + exports.timeoutsShape = timeoutsShape; + var classNamesShape = process.env.NODE_ENV !== 'production' ? _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.shape({ + enter: _propTypes.default.string, + exit: _propTypes.default.string, + active: _propTypes.default.string + }), _propTypes.default.shape({ + enter: _propTypes.default.string, + enterDone: _propTypes.default.string, + enterActive: _propTypes.default.string, + exit: _propTypes.default.string, + exitDone: _propTypes.default.string, + exitActive: _propTypes.default.string + })]) : null; + exports.classNamesShape = classNamesShape; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) - var _react = __webpack_require__(0); + /***/ }), + /* 513 */ + /***/ (function(module, exports, __webpack_require__) { - var _react2 = _interopRequireDefault(_react); + "use strict"; + /* WEBPACK VAR INJECTION */(function(process) { - var _beeInputGroupAddon = __webpack_require__(692); + exports.__esModule = true; + exports.default = void 0; - var _beeInputGroupAddon2 = _interopRequireDefault(_beeInputGroupAddon); + var _propTypes = _interopRequireDefault(__webpack_require__(1)); - var _InputGroupButton = __webpack_require__(694); + var _react = _interopRequireDefault(__webpack_require__(0)); - var _InputGroupButton2 = _interopRequireDefault(_InputGroupButton); + var _reactLifecyclesCompat = __webpack_require__(12); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var _ChildMapping = __webpack_require__(1569); - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - var defaultProps = { - clsPrefix: 'u-input-group', - simple: false + var values = Object.values || function (obj) { + return Object.keys(obj).map(function (k) { + return obj[k]; + }); }; - var InputGroup = function (_React$Component) { - _inherits(InputGroup, _React$Component); - - function InputGroup() { - _classCallCheck(this, InputGroup); - - return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); + var defaultProps = { + component: 'div', + childFactory: function childFactory(child) { + return child; } + /** + * The `` component manages a set of transition components + * (`` and ``) in a list. Like with the transition + * components, `` is a state machine for managing the mounting + * and unmounting of components over time. + * + * Consider the example below. As items are removed or added to the TodoList the + * `in` prop is toggled automatically by the ``. + * + * Note that `` does not define any animation behavior! + * Exactly _how_ a list item animates is up to the individual transition + * component. This means you can mix and match animations across different list + * items. + */ - InputGroup.prototype.render = function render() { - var _props = this.props, - className = _props.className, - clsPrefix = _props.clsPrefix, - simple = _props.simple, - others = _objectWithoutProperties(_props, ['className', 'clsPrefix', 'simple']); - - return _react2["default"].createElement('span', _extends({}, others, { - className: (0, _classnames2["default"])(className, clsPrefix, simple && 'simple') - })); - }; - - return InputGroup; - }(_react2["default"].Component); - - /** - * 将InputGroupAddon与InputGroupButton组件作为InputGroup的附属组件 - */ - - - InputGroup.Addon = _beeInputGroupAddon2["default"]; - InputGroup.Button = _InputGroupButton2["default"]; - InputGroup.defaultProps = defaultProps; - exports["default"] = InputGroup; - module.exports = exports['default']; - - /***/ }), - /* 692 */ - /***/ (function(module, exports, __webpack_require__) { - - "use strict"; - + }; - Object.defineProperty(exports, "__esModule", { - value: true - }); + var TransitionGroup = + /*#__PURE__*/ + function (_React$Component) { + _inheritsLoose(TransitionGroup, _React$Component); - var _InputGroupAddon = __webpack_require__(693); + function TransitionGroup(props, context) { + var _this; - var _InputGroupAddon2 = _interopRequireDefault(_InputGroupAddon); + _this = _React$Component.call(this, props, context) || this; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var handleExited = _this.handleExited.bind(_assertThisInitialized(_assertThisInitialized(_this))); // Initial children should all be entering, dependent on appear - exports["default"] = _InputGroupAddon2["default"]; - module.exports = exports['default']; - /***/ }), - /* 693 */ - /***/ (function(module, exports, __webpack_require__) { + _this.state = { + handleExited: handleExited, + firstRender: true + }; + return _this; + } - "use strict"; + var _proto = TransitionGroup.prototype; + _proto.getChildContext = function getChildContext() { + return { + transitionGroup: { + isMounting: !this.appeared + } + }; + }; - Object.defineProperty(exports, "__esModule", { - value: true - }); + _proto.componentDidMount = function componentDidMount() { + this.appeared = true; + this.mounted = true; + }; - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + _proto.componentWillUnmount = function componentWillUnmount() { + this.mounted = false; + }; - var _classnames = __webpack_require__(2); + TransitionGroup.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, _ref) { + var prevChildMapping = _ref.children, + handleExited = _ref.handleExited, + firstRender = _ref.firstRender; + return { + children: firstRender ? (0, _ChildMapping.getInitialChildMapping)(nextProps, handleExited) : (0, _ChildMapping.getNextChildMapping)(nextProps, prevChildMapping, handleExited), + firstRender: false + }; + }; - var _classnames2 = _interopRequireDefault(_classnames); + _proto.handleExited = function handleExited(child, node) { + var currentChildMapping = (0, _ChildMapping.getChildMapping)(this.props.children); + if (child.key in currentChildMapping) return; - var _react = __webpack_require__(0); + if (child.props.onExited) { + child.props.onExited(node); + } - var _react2 = _interopRequireDefault(_react); + if (this.mounted) { + this.setState(function (state) { + var children = _extends({}, state.children); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + delete children[child.key]; + return { + children: children + }; + }); + } + }; - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + _proto.render = function render() { + var _this$props = this.props, + Component = _this$props.component, + childFactory = _this$props.childFactory, + props = _objectWithoutPropertiesLoose(_this$props, ["component", "childFactory"]); - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + var children = values(this.state.children).map(childFactory); + delete props.appear; + delete props.enter; + delete props.exit; - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + if (Component === null) { + return children; + } - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + return _react.default.createElement(Component, props, children); + }; - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + return TransitionGroup; + }(_react.default.Component); - var defaultProps = { - clsPrefix: 'u-input-group-addon' + TransitionGroup.childContextTypes = { + transitionGroup: _propTypes.default.object.isRequired }; + TransitionGroup.propTypes = process.env.NODE_ENV !== "production" ? { + /** + * `` renders a `
    ` by default. You can change this + * behavior by providing a `component` prop. + * If you use React v16+ and would like to avoid a wrapping `
    ` element + * you can pass in `component={null}`. This is useful if the wrapping div + * borks your css styles. + */ + component: _propTypes.default.any, - var InputGroupAddon = function (_React$Component) { - _inherits(InputGroupAddon, _React$Component); + /** + * A set of `` components, that are toggled `in` and out as they + * leave. the `` will inject specific transition props, so + * remember to spread them through if you are wrapping the `` as + * with our `` example. + * + * While this component is meant for multiple `Transition` or `CSSTransition` + * children, sometimes you may want to have a single transition child with + * content that you want to be transitioned out and in when you change it + * (e.g. routes, images etc.) In that case you can change the `key` prop of + * the transition child as you change its content, this will cause + * `TransitionGroup` to transition the child out and back in. + */ + children: _propTypes.default.node, - function InputGroupAddon() { - _classCallCheck(this, InputGroupAddon); + /** + * A convenience prop that enables or disables appear animations + * for all children. Note that specifying this will override any defaults set + * on individual children Transitions. + */ + appear: _propTypes.default.bool, - return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); - } + /** + * A convenience prop that enables or disables enter animations + * for all children. Note that specifying this will override any defaults set + * on individual children Transitions. + */ + enter: _propTypes.default.bool, - InputGroupAddon.prototype.render = function render() { - var _props = this.props, - className = _props.className, - clsPrefix = _props.clsPrefix, - others = _objectWithoutProperties(_props, ['className', 'clsPrefix']); + /** + * A convenience prop that enables or disables exit animations + * for all children. Note that specifying this will override any defaults set + * on individual children Transitions. + */ + exit: _propTypes.default.bool, - return _react2["default"].createElement('span', _extends({}, others, { - className: (0, _classnames2["default"])(className, clsPrefix) - })); - }; + /** + * You may need to apply reactive updates to a child as it is exiting. + * This is generally done by using `cloneElement` however in the case of an exiting + * child the element has already been removed and not accessible to the consumer. + * + * If you do need to update a child as it leaves you can provide a `childFactory` + * to wrap every child, even the ones that are leaving. + * + * @type Function(child: ReactElement) -> ReactElement + */ + childFactory: _propTypes.default.func + } : {}; + TransitionGroup.defaultProps = defaultProps; - return InputGroupAddon; - }(_react2["default"].Component); + var _default = (0, _reactLifecyclesCompat.polyfill)(TransitionGroup); - InputGroupAddon.defaultProps = defaultProps; - exports["default"] = InputGroupAddon; - module.exports = exports['default']; + exports.default = _default; + module.exports = exports["default"]; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) /***/ }), - /* 694 */ - /***/ (function(module, exports, __webpack_require__) { + /* 514 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; + var util = { + isAppearSupported: function isAppearSupported(props) { + return props.transitionName && props.transitionAppear || props.animation.appear; + }, + isEnterSupported: function isEnterSupported(props) { + return props.transitionName && props.transitionEnter || props.animation.enter; + }, + isLeaveSupported: function isLeaveSupported(props) { + return props.transitionName && props.transitionLeave || props.animation.leave; + }, + allowAppearCallback: function allowAppearCallback(props) { + return props.transitionAppear || props.animation.appear; + }, + allowEnterCallback: function allowEnterCallback(props) { + return props.transitionEnter || props.animation.enter; + }, + allowLeaveCallback: function allowLeaveCallback(props) { + return props.transitionLeave || props.animation.leave; + } + }; + /* harmony default export */ __webpack_exports__["a"] = (util); + /***/ }), + /* 515 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - - var _classnames = __webpack_require__(2); + "use strict"; + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(24); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(7); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(9); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(10); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react__ = __webpack_require__(0); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types__ = __webpack_require__(1); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_prop_types__); - var _classnames2 = _interopRequireDefault(_classnames); - var _react = __webpack_require__(0); - var _react2 = _interopRequireDefault(_react); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + var LazyRenderBox = function (_Component) { + __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default()(LazyRenderBox, _Component); - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + function LazyRenderBox() { + __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, LazyRenderBox); - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + return __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(this, _Component.apply(this, arguments)); + } - var defaultProps = { - clsPrefix: 'u-input-group-btn' - }; + LazyRenderBox.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) { + return nextProps.hiddenClassName || nextProps.visible; + }; - var InputGroupButton = function (_React$Component) { - _inherits(InputGroupButton, _React$Component); + LazyRenderBox.prototype.render = function render() { + var _props = this.props, + hiddenClassName = _props.hiddenClassName, + visible = _props.visible, + props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['hiddenClassName', 'visible']); - function InputGroupButton() { - _classCallCheck(this, InputGroupButton); + if (hiddenClassName || __WEBPACK_IMPORTED_MODULE_4_react___default.a.Children.count(props.children) > 1) { + if (!visible && hiddenClassName) { + props.className += ' ' + hiddenClassName; + } + return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement('div', props); + } - return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); - } + return __WEBPACK_IMPORTED_MODULE_4_react___default.a.Children.only(props.children); + }; - InputGroupButton.prototype.render = function render() { - var _props = this.props, - className = _props.className, - clsPrefix = _props.clsPrefix, - others = _objectWithoutProperties(_props, ['className', 'clsPrefix']); + return LazyRenderBox; + }(__WEBPACK_IMPORTED_MODULE_4_react__["Component"]); - return _react2["default"].createElement('span', _extends({}, others, { - className: (0, _classnames2["default"])(className, clsPrefix) - })); - }; + LazyRenderBox.propTypes = { + children: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.any, + className: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, + visible: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool, + hiddenClassName: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string + }; - return InputGroupButton; - }(_react2["default"].Component); - InputGroupButton.defaultProps = defaultProps; - exports["default"] = InputGroupButton; - module.exports = exports['default']; + /* harmony default export */ __webpack_exports__["a"] = (LazyRenderBox); /***/ }), - /* 695 */ - /***/ (function(module, exports, __webpack_require__) { + /* 516 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; + /* harmony export (immutable) */ __webpack_exports__["a"] = getAlignFromPlacement; + /* harmony export (immutable) */ __webpack_exports__["b"] = getAlignPopupClassName; + /* harmony export (immutable) */ __webpack_exports__["c"] = saveRef; + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(8); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); + function isPointsEq(a1, a2, isAlignPoint) { + if (isAlignPoint) { + return a1[0] === a2[0]; + } + return a1[0] === a2[0] && a1[1] === a2[1]; + } - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _FormControl = __webpack_require__(696); - - var _FormControl2 = _interopRequireDefault(_FormControl); + function getAlignFromPlacement(builtinPlacements, placementStr, align) { + var baseAlign = builtinPlacements[placementStr] || {}; + return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, baseAlign, align); + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + function getAlignPopupClassName(builtinPlacements, prefixCls, align, isAlignPoint) { + var points = align.points; + for (var placement in builtinPlacements) { + if (builtinPlacements.hasOwnProperty(placement)) { + if (isPointsEq(builtinPlacements[placement].points, points, isAlignPoint)) { + return prefixCls + '-placement-' + placement; + } + } + } + return ''; + } - exports["default"] = _FormControl2["default"]; - module.exports = exports['default']; + function saveRef(name, component) { + this[name] = component; + } /***/ }), - /* 696 */ + /* 517 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; + /* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright (c) 2014-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - - var _react = __webpack_require__(0); - - var _react2 = _interopRequireDefault(_react); - - var _classnames = __webpack_require__(2); - - var _classnames2 = _interopRequireDefault(_classnames); - - var _beeIcon = __webpack_require__(15); - - var _beeIcon2 = _interopRequireDefault(_beeIcon); - - var _propTypes = __webpack_require__(1); - - var _propTypes2 = _interopRequireDefault(_propTypes); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + /** + * Similar to invariant but only logs a warning if the condition is not met. + * This can be used to log issues in development environments in critical + * paths. Removing the logging code for production environments will keep the + * same logic and follow the same code paths. + */ - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + var __DEV__ = process.env.NODE_ENV !== 'production'; - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + var warning = function() {}; - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + if (__DEV__) { + var printWarning = function printWarning(format, args) { + var len = arguments.length; + args = new Array(len > 1 ? len - 1 : 0); + for (var key = 1; key < len; key++) { + args[key - 1] = arguments[key]; + } + var argIndex = 0; + var message = 'Warning: ' + + format.replace(/%s/g, function() { + return args[argIndex++]; + }); + if (typeof console !== 'undefined') { + console.error(message); + } + try { + // --- Welcome to debugging React --- + // This error was thrown as a convenience so that you can use this stack + // to find the callsite that caused this warning to fire. + throw new Error(message); + } catch (x) {} + } - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + warning = function(condition, format, args) { + var len = arguments.length; + args = new Array(len > 2 ? len - 2 : 0); + for (var key = 2; key < len; key++) { + args[key - 2] = arguments[key]; + } + if (format === undefined) { + throw new Error( + '`warning(condition, format, ...args)` requires a warning ' + + 'message argument' + ); + } + if (!condition) { + printWarning.apply(null, [format].concat(args)); + } + }; + } - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + module.exports = warning; - var propTypes = { - componentClass: _propTypes2["default"].oneOfType([_propTypes2["default"].element, _propTypes2["default"].string]), - type: _propTypes2["default"].string, - size: _propTypes2["default"].oneOf(['sm', 'md', 'lg']), - onSearch: _propTypes2["default"].func, - onChange: _propTypes2["default"].func, - onBlur: _propTypes2["default"].func, - showClose: _propTypes2["default"].bool, - focusSelect: _propTypes2["default"].bool, - debounceDelay: _propTypes2["default"].number - }; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) - var defaultProps = { - componentClass: 'input', - clsPrefix: 'u-form-control', - type: 'text', - size: 'md', - debounceDelay: 0 - }; + /***/ }), + /* 518 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { - var FormControl = function (_React$Component) { - _inherits(FormControl, _React$Component); + "use strict"; + /* unused harmony export InternalTreeNode */ + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames__ = __webpack_require__(2); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_classnames__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rc_animate_es_CSSMotion__ = __webpack_require__(519); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_util_es_Children_toArray__ = __webpack_require__(119); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react_lifecycles_compat__ = __webpack_require__(12); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__contextTypes__ = __webpack_require__(521); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__util__ = __webpack_require__(200); + function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - function FormControl(props) { - _classCallCheck(this, FormControl); + function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); + function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } - _this.handleSearchChange = function (e) { - var onChange = _this.props.onChange; + function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - var value = _this.input.value; - _this.setState({ - value: value, - showSearch: value == null || value === "" - }); - if (onChange) { - onChange(value, e); - } - }; + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - _this.handleChange = function (e) { - var now = new Date().getTime(); - if (now - _this.lastScrollCall < _this.props.debounceDelay) return; - _this.lastScrollCall = now; + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - var onChange = _this.props.onChange; + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - var value = _this.input.value; - _this.setState({ - showClose: true - }); - if (onChange) { - onChange(value, e); - } - }; + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - _this.clearValue = function () { - var onChange = _this.props.onChange; + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - _this.setState({ - showSearch: true, - value: "", - showClose: false - }); - if (onChange) { - onChange(""); - } - _this.input.focus(); - }; + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } - _this.handleKeyDown = function (e) { - var _this$props = _this.props, - onSearch = _this$props.onSearch, - type = _this$props.type, - onKeyDown = _this$props.onKeyDown; + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - if (e.keyCode === 13 && type === "search") { - if (onSearch) { - onSearch(_this.input.value); - } - } - onKeyDown && onKeyDown(e); - }; + function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } - _this.handleSearch = function (e) { - var onSearch = _this.props.onSearch; + function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - if (onSearch) onSearch(_this.input.value); - }; + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - _this.handleBlur = function (e) { - var value = _this.state.value; - var onBlur = _this.props.onBlur; + function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } - if (onBlur) { - onBlur(value, e); - } - }; - _this.handleFocus = function (e) { - var value = _this.state.value; - var onFocus = _this.props.onFocus; - if (_this.props.focusSelect) { - _this.input.select(); - } - if (onFocus) { - onFocus(value, e); - } - }; + // @ts-ignore - _this.renderInput = function () { - var _this$props2 = _this.props, - Component = _this$props2.componentClass, - type = _this$props2.type, - className = _this$props2.className, - size = _this$props2.size, - clsPrefix = _this$props2.clsPrefix, - value = _this$props2.value, - onChange = _this$props2.onChange, - onSearch = _this$props2.onSearch, - onBlur = _this$props2.onBlur, - showClose = _this$props2.showClose, - focusSelect = _this$props2.focusSelect, - others = _objectWithoutProperties(_this$props2, ['componentClass', 'type', 'className', 'size', 'clsPrefix', 'value', 'onChange', 'onSearch', 'onBlur', 'showClose', 'focusSelect']); - // input[type="file"] 不应该有类名 .form-control. - var classes = {}; - if (size) { - classes['' + size] = true; - } - var classNames = void 0; - if (type !== 'file') { - classNames = (0, _classnames2["default"])(clsPrefix, classes); - } - return showClose ? _react2["default"].createElement( - 'div', - { className: (0, _classnames2["default"])(clsPrefix + '-close', clsPrefix + '-affix-wrapper', className) }, - _react2["default"].createElement(Component, _extends({}, others, { - type: type, - ref: function ref(el) { - return _this.input = el; - }, - value: value, - onChange: _this.handleChange, - onBlur: _this.handleBlur, - onFocus: _this.handleFocus, - className: (0, _classnames2["default"])(classNames) - })), - _react2["default"].createElement( - 'div', - { className: clsPrefix + '-suffix' }, - _this.state.showClose ? _react2["default"].createElement(_beeIcon2["default"], { onClick: _this.clearValue, type: 'uf-close-c' }) : '' - ) - ) : _react2["default"].createElement(Component, _extends({}, others, { - type: type, - ref: function ref(el) { - return _this.input = el; - }, - value: value, - onChange: _this.handleChange, - onBlur: _this.handleBlur, - onFocus: _this.handleFocus, - className: (0, _classnames2["default"])(className, classNames) - })); - }; - _this.renderSearch = function () { - var _this$props3 = _this.props, - Component = _this$props3.componentClass, - type = _this$props3.type, - className = _this$props3.className, - size = _this$props3.size, - clsPrefix = _this$props3.clsPrefix, - value = _this$props3.value, - onChange = _this$props3.onChange, - onSearch = _this$props3.onSearch, - onBlur = _this$props3.onBlur, - others = _objectWithoutProperties(_this$props3, ['componentClass', 'type', 'className', 'size', 'clsPrefix', 'value', 'onChange', 'onSearch', 'onBlur']); - // input[type="file"] 不应该有类名 .form-control. + var ICON_OPEN = 'open'; + var ICON_CLOSE = 'close'; + var defaultTitle = '---'; + var TreeNode = /*#__PURE__*/function (_React$Component) { + _inherits(TreeNode, _React$Component); - var classes = {}; - if (size) { - classes['' + size] = true; - } - classes[clsPrefix + '-search'] = true; + var _super = _createSuper(TreeNode); - if (type === "search") { - return _react2["default"].createElement( - 'div', - { className: (0, _classnames2["default"])(clsPrefix + '-search', clsPrefix + '-affix-wrapper', className) }, - _react2["default"].createElement(Component, _extends({}, others, { - type: type, - ref: function ref(el) { - return _this.input = el; - }, - onChange: _this.handleSearchChange, - value: value, - onKeyDown: _this.handleKeyDown, - onBlur: _this.handleBlur, - onFocus: _this.handleFocus, - className: (0, _classnames2["default"])(clsPrefix, classes) - })), - _react2["default"].createElement( - 'div', - { className: clsPrefix + '-suffix' }, - _react2["default"].createElement(_beeIcon2["default"], { type: 'uf-search', onClick: _this.handleSearch }) - ) - ); - } - }; + function TreeNode() { + var _this; - _this.state = { - showSearch: !props.value, - value: props.value == null ? "" : props.value, - showClose: false - }; - _this.input = {}; - return _this; - } + _classCallCheck(this, TreeNode); - FormControl.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProp) { - if (nextProp.value !== this.state.value) { - this.setState({ value: nextProp.value }); - } + _this = _super.apply(this, arguments); + _this.state = { + dragNodeHighlight: false }; - FormControl.prototype.render = function render() { - - if (this.props.type === "search") { - return this.renderSearch(); - } + _this.onSelectorClick = function (e) { + // Click trigger before select/check operation + var onNodeClick = _this.props.context.onNodeClick; + onNodeClick(e, _assertThisInitialized(_this)); - return this.renderInput(); + if (_this.isSelectable()) { + _this.onSelect(e); + } else { + _this.onCheck(e); + } }; - return FormControl; - }(_react2["default"].Component); - - FormControl.propTypes = propTypes; - FormControl.defaultProps = defaultProps; - - exports["default"] = FormControl; - module.exports = exports['default']; - - /***/ }), - /* 697 */ - /***/ (function(module, exports, __webpack_require__) { - - "use strict"; - + _this.onSelectorDoubleClick = function (e) { + var onNodeDoubleClick = _this.props.context.onNodeDoubleClick; + onNodeDoubleClick(e, _assertThisInitialized(_this)); + }; - Object.defineProperty(exports, "__esModule", { - value: true - }); + _this.onSelect = function (e) { + if (_this.isDisabled()) return; + var onNodeSelect = _this.props.context.onNodeSelect; + e.preventDefault(); + onNodeSelect(e, _assertThisInitialized(_this)); + }; - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + _this.onCheck = function (e) { + if (_this.isDisabled()) return; + var _this$props = _this.props, + disableCheckbox = _this$props.disableCheckbox, + checked = _this$props.checked; + var onNodeCheck = _this.props.context.onNodeCheck; + if (!_this.isCheckable() || disableCheckbox) return; + e.preventDefault(); + var targetChecked = !checked; + onNodeCheck(e, _assertThisInitialized(_this), targetChecked); + }; - var _react = __webpack_require__(0); + _this.onMouseEnter = function (e) { + var onNodeMouseEnter = _this.props.context.onNodeMouseEnter; + onNodeMouseEnter(e, _assertThisInitialized(_this)); + }; - var _react2 = _interopRequireDefault(_react); + _this.onMouseLeave = function (e) { + var onNodeMouseLeave = _this.props.context.onNodeMouseLeave; + onNodeMouseLeave(e, _assertThisInitialized(_this)); + }; - var _beeNotification = __webpack_require__(698); + _this.onContextMenu = function (e) { + var onNodeContextMenu = _this.props.context.onNodeContextMenu; + onNodeContextMenu(e, _assertThisInitialized(_this)); + }; - var _beeNotification2 = _interopRequireDefault(_beeNotification); + _this.onDragStart = function (e) { + var onNodeDragStart = _this.props.context.onNodeDragStart; + e.stopPropagation(); - var _classnames = __webpack_require__(2); + _this.setState({ + dragNodeHighlight: true + }); - var _classnames2 = _interopRequireDefault(_classnames); + onNodeDragStart(e, _assertThisInitialized(_this)); - var _warning = __webpack_require__(723); + try { + // ie throw error + // firefox-need-it + e.dataTransfer.setData('text/plain', ''); + } catch (error) {// empty + } + }; - var _warning2 = _interopRequireDefault(_warning); + _this.onDragEnter = function (e) { + var onNodeDragEnter = _this.props.context.onNodeDragEnter; + e.preventDefault(); + e.stopPropagation(); + onNodeDragEnter(e, _assertThisInitialized(_this)); + }; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + _this.onDragOver = function (e) { + var onNodeDragOver = _this.props.context.onNodeDragOver; + e.preventDefault(); + e.stopPropagation(); + onNodeDragOver(e, _assertThisInitialized(_this)); + }; - var defaultDuration = 1.5; - var newDuration = void 0; - var defaultTop = 24; - var defaultBottom = 48; - var bottom = 90; - var padding = 30; - var width = 240; - var messageInstance = void 0; - var key = 1; - var clsPrefix = 'u-message'; - var noop = function noop() {}; - var notificationStyle_copy = {}; - var messageStyle_copy = {}; - var positionType = ['topRight', 'bottomRight', 'top', 'bottom', 'topLeft', 'bottomLeft', '']; - var defaultStyle = {}; + _this.onDragLeave = function (e) { + var onNodeDragLeave = _this.props.context.onNodeDragLeave; + e.stopPropagation(); + onNodeDragLeave(e, _assertThisInitialized(_this)); + }; - var positionObj = { - "top": { - messageStyle: {}, - notificationStyle: { - top: defaultTop, - left: '50%', - transform: 'translateX( -50%)' - }, - transitionName: 'top' - }, - "bottom": { - messageStyle: {}, - notificationStyle: { - bottom: defaultBottom, - left: '50%', - transform: 'translateX( -50%)' - }, - transitionName: 'bottom' - }, - "topRight": { - messageStyle: { - width: width - }, - notificationStyle: { - top: padding, - right: padding, - width: width - }, - transitionName: 'right' - }, - "bottomRight": { - messageStyle: { - width: width - }, - notificationStyle: { - bottom: bottom, - right: padding, - width: width - }, - transitionName: 'right' - }, - "topLeft": { - messageStyle: { - width: width - }, - notificationStyle: { - top: padding, - left: padding, - width: width - }, - transitionName: 'left' - }, - "bottomLeft": { - messageStyle: { - width: width - }, - notificationStyle: { - bottom: bottom, - left: padding, - width: width - }, - transitionName: 'left' - } - }; + _this.onDragEnd = function (e) { + var onNodeDragEnd = _this.props.context.onNodeDragEnd; + e.stopPropagation(); - function getMessageInstance() { - var position = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'top'; - var callback = arguments[1]; - var keyboard = arguments[2]; - var onEscapeKeyUp = arguments[3]; + _this.setState({ + dragNodeHighlight: false + }); - if (messageInstance) { - callback(messageInstance); - return; - } - switch (position) { - case 'top': - notificationStyle_copy.top = defaultTop; - break; - case 'bottom': - notificationStyle_copy.bottom = defaultBottom; - break; - case 'bottomRight': - notificationStyle_copy.bottom = bottom; - break; - case 'bottomLeft': - notificationStyle_copy.bottom = bottom; - break; - default: - break; - } - if (position !== 'top' && position !== 'bottom') { - messageStyle_copy.width = width; - } - var style = JSON.stringify(notificationStyle_copy) == "{}" ? positionObj[position].notificationStyle : notificationStyle_copy; - var instanceObj = { - clsPrefix: clsPrefix, - transitionName: clsPrefix + '-' + positionObj[position].transitionName, - style: _extends({}, style, defaultStyle), // 覆盖原来的样式 - position: position + onNodeDragEnd(e, _assertThisInitialized(_this)); }; - if (typeof keyboard === 'boolean') { - instanceObj.keyboard = keyboard; - } - if (typeof onEscapeKeyUp === 'function') { - instanceObj.onEscapeKeyUp = onEscapeKeyUp; - } - _beeNotification2["default"].newInstance(instanceObj, function (instance) { - messageInstance = instance; - callback(instance); - }); - } - - function notice(content, duration_arg, type, onClose, position, style, keyboard, onEscapeKeyUp, showIcon, icon, props) { - if (positionType.findIndex(function (item) { - return item === position; - }) < 0) { - (0, _warning2["default"])(false, 'Failed prop type: Invalid prop `position` supplied to `Message`, expected one of ["top","bottom","topRight","topLeft","bottomRight","bottomLeft"].'); - return; - } - var duration = duration_arg !== undefined ? duration_arg : defaultDuration; - notificationStyle_copy = _extends({}, positionObj[position].notificationStyle); - messageStyle_copy = _extends({}, positionObj[position].messageStyle); - var iconType = { - info: 'uf uf-i-c-2', - success: 'uf uf-correct', - danger: 'uf uf-exc-c', - warning: 'uf uf-exc-t', - light: 'uf uf-notification', - dark: 'uf uf-notification', - news: 'uf uf-bell', - infolight: 'uf uf-i-c-2', - successlight: 'uf uf-correct', - dangerlight: 'uf uf-exc-c', - warninglight: 'uf uf-exc-t' - }[type]; + _this.onDrop = function (e) { + var onNodeDrop = _this.props.context.onNodeDrop; + e.preventDefault(); + e.stopPropagation(); - var positionStyle = JSON.stringify(messageStyle_copy) == "{}" ? positionObj[position].messageStyle : messageStyle_copy; - defaultStyle = _extends({}, positionStyle, style); - getMessageInstance(position, function (instance) { - instance.notice(_extends({}, props, { - key: key, - duration: duration, - color: type, - style: _extends({}, positionStyle, style), - content: _react2["default"].createElement( - 'div', - null, - showIcon ? _react2["default"].createElement( - 'div', - { className: clsPrefix + '-notice-description-icon' }, - icon ? _react2["default"].createElement('i', { className: (0, _classnames2["default"])('' + icon) }) : _react2["default"].createElement('i', { className: (0, _classnames2["default"])(iconType) }) - ) : null, - _react2["default"].createElement( - 'div', - { className: clsPrefix + '-notice-description-content' }, - content - ) - ), - onClose: onClose - })); - }, keyboard, onEscapeKeyUp); - return function () { - var target = key++; - return function () { - if (messageInstance) { - messageInstance.removeNotice(target); - } - }; - }(); - } + _this.setState({ + dragNodeHighlight: false + }); - exports["default"] = { - create: function create(obj) { - if (newDuration) { - //如果在config方法里设置了duration - obj.duration = newDuration; - } - var content = obj.content || ''; - var duration = typeof obj.duration == 'undefined' ? defaultDuration : obj.duration; - var color = obj.color || 'light'; - var onClose = obj.onClose || noop; - var position = obj.position || "top"; - var style = obj.style || {}; - var showIcon = obj.hasOwnProperty('showIcon') ? obj.showIcon : true; - var icon = obj.hasOwnProperty('icon') ? obj.icon : false; - return notice(content, duration, color, onClose, position, style, obj.keyboard, obj.onEscapeKeyUp, showIcon, icon, obj); - }, - config: function config(options) { - if (options.top !== undefined) { - defaultTop = options.top; - } - if (options.duration !== undefined) { - defaultDuration = options.duration; - newDuration = defaultDuration; - } - if (options.clsPrefix !== undefined) { - clsPrefix = options.clsPrefix; - } - if (options.defaultBottom !== undefined) { - defaultBottom = options.defaultBottom; - } - if (options.bottom !== undefined) { - bottom = options.bottom; - } - if (options.width !== undefined) { - width = options.width; - } - }, - destroy: function destroy() { - if (messageInstance) { - messageInstance.destroy(); - messageInstance = null; - defaultDuration = 1.5; - newDuration = undefined; - defaultTop = 24; - defaultBottom = 48; - bottom = 90; - padding = 30; - width = 240; - notificationStyle_copy = null; - messageStyle_copy = null; - defaultStyle = null; - } - } - }; - module.exports = exports['default']; + onNodeDrop(e, _assertThisInitialized(_this)); + }; // Disabled item still can be switch - /***/ }), - /* 698 */ - /***/ (function(module, exports, __webpack_require__) { - "use strict"; + _this.onExpand = function (e) { + var onNodeExpand = _this.props.context.onNodeExpand; + onNodeExpand(e, _assertThisInitialized(_this)); + }; // Drag usage - Object.defineProperty(exports, "__esModule", { - value: true - }); + _this.setSelectHandle = function (node) { + _this.selectHandle = node; + }; - var _Notification = __webpack_require__(699); + _this.getNodeChildren = function () { + var children = _this.props.children; + var originList = Object(__WEBPACK_IMPORTED_MODULE_4_rc_util_es_Children_toArray__["a" /* default */])(children).filter(function (node) { + return node; + }); + var targetList = Object(__WEBPACK_IMPORTED_MODULE_7__util__["k" /* getNodeChildren */])(originList); - var _Notification2 = _interopRequireDefault(_Notification); + if (originList.length !== targetList.length) { + Object(__WEBPACK_IMPORTED_MODULE_7__util__["p" /* warnOnlyTreeNode */])(); + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + return targetList; + }; - exports["default"] = _Notification2["default"]; - module.exports = exports['default']; + _this.getNodeState = function () { + var expanded = _this.props.expanded; - /***/ }), - /* 699 */ - /***/ (function(module, exports, __webpack_require__) { + if (_this.isLeaf()) { + return null; + } - "use strict"; + return expanded ? ICON_OPEN : ICON_CLOSE; + }; + _this.isLeaf = function () { + var _this$props2 = _this.props, + isLeaf = _this$props2.isLeaf, + loaded = _this$props2.loaded; + var loadData = _this.props.context.loadData; + var hasChildren = _this.getNodeChildren().length !== 0; - Object.defineProperty(exports, "__esModule", { - value: true - }); + if (isLeaf === false) { + return false; + } - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + return isLeaf || !loadData && !hasChildren || loadData && loaded && !hasChildren; + }; - var _react = __webpack_require__(0); + _this.isDisabled = function () { + var disabled = _this.props.disabled; + var treeDisabled = _this.props.context.disabled; // Follow the logic of Selectable - var _react2 = _interopRequireDefault(_react); + if (disabled === false) { + return false; + } - var _propTypes = __webpack_require__(1); + return !!(treeDisabled || disabled); + }; - var _propTypes2 = _interopRequireDefault(_propTypes); + _this.isCheckable = function () { + var checkable = _this.props.checkable; + var treeCheckable = _this.props.context.checkable; // Return false if tree or treeNode is not checkable - var _reactDom = __webpack_require__(3); + if (!treeCheckable || checkable === false) return false; + return treeCheckable; + }; // Load data to avoid default expanded tree without data - var _reactDom2 = _interopRequireDefault(_reactDom); - var _beeAnimate = __webpack_require__(700); + _this.syncLoadData = function (props) { + var expanded = props.expanded, + loading = props.loading, + loaded = props.loaded; + var _this$props$context = _this.props.context, + loadData = _this$props$context.loadData, + onNodeLoad = _this$props$context.onNodeLoad; + if (loading) return; // read from state to avoid loadData at same time - var _beeAnimate2 = _interopRequireDefault(_beeAnimate); + if (loadData && expanded && !_this.isLeaf()) { + // We needn't reload data when has children in sync logic + // It's only needed in node expanded + var hasChildren = _this.getNodeChildren().length !== 0; - var _createChainedFunction = __webpack_require__(240); + if (!hasChildren && !loaded) { + onNodeLoad(_assertThisInitialized(_this)); + } + } + }; // Switcher - var _createChainedFunction2 = _interopRequireDefault(_createChainedFunction); - var _ownerDocument = __webpack_require__(42); + _this.renderSwitcher = function () { + var _this$props3 = _this.props, + expanded = _this$props3.expanded, + switcherIconFromProps = _this$props3.switcherIcon; + var _this$props$context2 = _this.props.context, + prefixCls = _this$props$context2.prefixCls, + switcherIconFromCtx = _this$props$context2.switcherIcon; + var switcherIcon = switcherIconFromProps || switcherIconFromCtx; - var _ownerDocument2 = _interopRequireDefault(_ownerDocument); + if (_this.isLeaf()) { + return __WEBPACK_IMPORTED_MODULE_0_react__["createElement"]("span", { + className: __WEBPACK_IMPORTED_MODULE_2_classnames___default()("".concat(prefixCls, "-switcher"), "".concat(prefixCls, "-switcher-noop")) + }, typeof switcherIcon === 'function' ? switcherIcon(_objectSpread({}, _this.props, { + isLeaf: true + })) : switcherIcon); + } - var _addEventListener = __webpack_require__(56); + var switcherCls = __WEBPACK_IMPORTED_MODULE_2_classnames___default()("".concat(prefixCls, "-switcher"), "".concat(prefixCls, "-switcher_").concat(expanded ? ICON_OPEN : ICON_CLOSE)); + return __WEBPACK_IMPORTED_MODULE_0_react__["createElement"]("span", { + onClick: _this.onExpand, + className: switcherCls + }, typeof switcherIcon === 'function' ? switcherIcon(_objectSpread({}, _this.props, { + isLeaf: false + })) : switcherIcon); + }; // Checkbox - var _addEventListener2 = _interopRequireDefault(_addEventListener); - var _classnames = __webpack_require__(2); + _this.renderCheckbox = function () { + var _this$props4 = _this.props, + checked = _this$props4.checked, + halfChecked = _this$props4.halfChecked, + disableCheckbox = _this$props4.disableCheckbox; + var prefixCls = _this.props.context.prefixCls; - var _classnames2 = _interopRequireDefault(_classnames); + var disabled = _this.isDisabled(); - var _Notice = __webpack_require__(720); + var checkable = _this.isCheckable(); - var _Notice2 = _interopRequireDefault(_Notice); + if (!checkable) return null; // [Legacy] Custom element should be separate with `checkable` in future - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var $custom = typeof checkable !== 'boolean' ? checkable : null; + return __WEBPACK_IMPORTED_MODULE_0_react__["createElement"]("span", { + className: __WEBPACK_IMPORTED_MODULE_2_classnames___default()("".concat(prefixCls, "-checkbox"), checked && "".concat(prefixCls, "-checkbox-checked"), !checked && halfChecked && "".concat(prefixCls, "-checkbox-indeterminate"), (disabled || disableCheckbox) && "".concat(prefixCls, "-checkbox-disabled")), + onClick: _this.onCheck + }, $custom); + }; - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + _this.renderIcon = function () { + var loading = _this.props.loading; + var prefixCls = _this.props.context.prefixCls; + return __WEBPACK_IMPORTED_MODULE_0_react__["createElement"]("span", { + className: __WEBPACK_IMPORTED_MODULE_2_classnames___default()("".concat(prefixCls, "-iconEle"), "".concat(prefixCls, "-icon__").concat(_this.getNodeState() || 'docu'), loading && "".concat(prefixCls, "-icon_loading")) + }); + }; // Icon + Title - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + _this.renderSelector = function () { + var dragNodeHighlight = _this.state.dragNodeHighlight; + var _this$props5 = _this.props, + title = _this$props5.title, + selected = _this$props5.selected, + icon = _this$props5.icon, + loading = _this$props5.loading; + var _this$props$context3 = _this.props.context, + prefixCls = _this$props$context3.prefixCls, + showIcon = _this$props$context3.showIcon, + treeIcon = _this$props$context3.icon, + draggable = _this$props$context3.draggable, + loadData = _this$props$context3.loadData; - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + var disabled = _this.isDisabled(); - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + var wrapClass = "".concat(prefixCls, "-node-content-wrapper"); // Icon - Still show loading icon when loading without showIcon - var seed = 0; - var now = Date.now(); + var $icon; - function getUuid() { - return 'uNotification_' + now + '_' + seed++; - } + if (showIcon) { + var currentIcon = icon || treeIcon; + $icon = currentIcon ? __WEBPACK_IMPORTED_MODULE_0_react__["createElement"]("span", { + className: __WEBPACK_IMPORTED_MODULE_2_classnames___default()("".concat(prefixCls, "-iconEle"), "".concat(prefixCls, "-icon__customize")) + }, typeof currentIcon === 'function' ? currentIcon(_this.props) : currentIcon) : _this.renderIcon(); + } else if (loadData && loading) { + $icon = _this.renderIcon(); + } // Title - var propTypes = { - show: _propTypes2["default"].bool, - clsPrefix: _propTypes2["default"].string, - style: _propTypes2["default"].object, - position: _propTypes2["default"].oneOf(['topRight', 'bottomRight', 'top', 'bottom', 'topLeft', 'bottomLeft', '']), - transitionName: _propTypes2["default"].string, - keyboard: _propTypes2["default"].bool, // 按esc键是否关闭notice - onEscapeKeyUp: _propTypes2["default"].func, // 设置esc键特殊钩子函数 - animation: _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].object]) - }; - var defaultProps = { - clsPrefix: 'u-notification', - animation: 'fade', - keyboard: true, - position: 'topRight' - }; + var $title = __WEBPACK_IMPORTED_MODULE_0_react__["createElement"]("span", { + className: "".concat(prefixCls, "-title") + }, title); + return __WEBPACK_IMPORTED_MODULE_0_react__["createElement"]("span", { + ref: _this.setSelectHandle, + title: typeof title === 'string' ? title : '', + className: __WEBPACK_IMPORTED_MODULE_2_classnames___default()("".concat(wrapClass), "".concat(wrapClass, "-").concat(_this.getNodeState() || 'normal'), !disabled && (selected || dragNodeHighlight) && "".concat(prefixCls, "-node-selected"), !disabled && draggable && 'draggable'), + draggable: !disabled && draggable || undefined, + "aria-grabbed": !disabled && draggable || undefined, + onMouseEnter: _this.onMouseEnter, + onMouseLeave: _this.onMouseLeave, + onContextMenu: _this.onContextMenu, + onClick: _this.onSelectorClick, + onDoubleClick: _this.onSelectorDoubleClick, + onDragStart: draggable ? _this.onDragStart : undefined + }, $icon, $title); + }; // Children list wrapped with `Animation` - var Notification = function (_Component) { - _inherits(Notification, _Component); - function Notification(props) { - _classCallCheck(this, Notification); + _this.renderChildren = function () { + var _this$props6 = _this.props, + expanded = _this$props6.expanded, + pos = _this$props6.pos; + var _this$props$context4 = _this.props.context, + prefixCls = _this$props$context4.prefixCls, + motion = _this$props$context4.motion, + renderTreeNode = _this$props$context4.renderTreeNode; // Children TreeNode - var _this = _possibleConstructorReturn(this, _Component.call(this, props)); + var nodeList = _this.getNodeChildren(); - _this.handleDocumentKeyUp = function (e) { - if (_this.props.keyboard && e.keyCode === 27 && _this.state.notices.length) { - _this.setState(function (previousState) { - previousState.notices.shift(); - return { - notices: previousState.notices - }; - }); - if (_this.props.onEscapeKeyUp) { - _this.props.onEscapeKeyUp(e); - } + if (nodeList.length === 0) { + return null; } - }; - _this.state = { - notices: [] + return __WEBPACK_IMPORTED_MODULE_0_react__["createElement"](__WEBPACK_IMPORTED_MODULE_3_rc_animate_es_CSSMotion__["b" /* default */], Object.assign({ + visible: expanded + }, motion), function (_ref) { + var style = _ref.style, + className = _ref.className; + return __WEBPACK_IMPORTED_MODULE_0_react__["createElement"]("ul", { + className: __WEBPACK_IMPORTED_MODULE_2_classnames___default()(className, "".concat(prefixCls, "-child-tree"), expanded && "".concat(prefixCls, "-child-tree-open")), + style: style, + "data-expanded": expanded, + role: "group" + }, Object(__WEBPACK_IMPORTED_MODULE_7__util__["m" /* mapChildren */])(nodeList, function (node, index) { + return renderTreeNode(node, index, pos); + })); + }); }; - _this.add = _this.add.bind(_this); - _this.remove = _this.remove.bind(_this); return _this; - } - - Notification.prototype.componentDidMount = function componentDidMount() { - // 给document绑定keyup事件 - var doc = (0, _ownerDocument2["default"])(this); - this._onDocumentKeyupListener = (0, _addEventListener2["default"])(doc, 'keyup', this.handleDocumentKeyUp); - }; + } // Isomorphic needn't load data in server side - Notification.prototype.componentWillUnmount = function componentWillUnmount() { - this._onDocumentKeyupListener.remove(); - }; - Notification.prototype.getTransitionName = function getTransitionName() { - var props = this.props; - var transitionName = props.transitionName; - if (!transitionName && props.animation) { - transitionName = props.clsPrefix + '-' + props.animation; + _createClass(TreeNode, [{ + key: "componentDidMount", + value: function componentDidMount() { + var _this$props7 = this.props, + eventKey = _this$props7.eventKey, + registerTreeNode = _this$props7.context.registerTreeNode; + this.syncLoadData(this.props); + registerTreeNode(eventKey, this); } - return transitionName; - }; + }, { + key: "componentDidUpdate", + value: function componentDidUpdate() { + this.syncLoadData(this.props); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + var _this$props8 = this.props, + eventKey = _this$props8.eventKey, + registerTreeNode = _this$props8.context.registerTreeNode; + registerTreeNode(eventKey, null); + } + }, { + key: "isSelectable", + value: function isSelectable() { + var selectable = this.props.selectable; + var treeSelectable = this.props.context.selectable; // Ignore when selectable is undefined or null - Notification.prototype.add = function add(notice) { - var key = notice.key = notice.key || getUuid(); - this.setState(function (previousState) { - var notices = previousState.notices; - if (!notices.filter(function (v) { - return v.key === key; - }).length) { - return { - notices: notices.concat(notice) - }; + if (typeof selectable === 'boolean') { + return selectable; } - }); - }; - Notification.prototype.remove = function remove(key) { - this.setState(function (previousState) { - return { - notices: previousState.notices.filter(function (notice) { - return notice.key !== key; - }) - }; - }); - }; + return treeSelectable; + } + }, { + key: "render", + value: function render() { + var _classNames; - /** - * 处理绑定在document上的keyup事件 - */ + var loading = this.props.loading; + var _this$props9 = this.props, + className = _this$props9.className, + style = _this$props9.style, + dragOver = _this$props9.dragOver, + dragOverGapTop = _this$props9.dragOverGapTop, + dragOverGapBottom = _this$props9.dragOverGapBottom, + isLeaf = _this$props9.isLeaf, + expanded = _this$props9.expanded, + selected = _this$props9.selected, + checked = _this$props9.checked, + halfChecked = _this$props9.halfChecked, + otherProps = _objectWithoutProperties(_this$props9, ["className", "style", "dragOver", "dragOverGapTop", "dragOverGapBottom", "isLeaf", "expanded", "selected", "checked", "halfChecked"]); - Notification.prototype.render = function render() { - var _this2 = this, - _classes; + var _this$props$context5 = this.props.context, + prefixCls = _this$props$context5.prefixCls, + filterTreeNode = _this$props$context5.filterTreeNode, + draggable = _this$props$context5.draggable; + var disabled = this.isDisabled(); + var dataOrAriaAttributeProps = Object(__WEBPACK_IMPORTED_MODULE_7__util__["i" /* getDataAndAria */])(otherProps); + return __WEBPACK_IMPORTED_MODULE_0_react__["createElement"]("li", Object.assign({ + className: __WEBPACK_IMPORTED_MODULE_2_classnames___default()(className, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-treenode-disabled"), disabled), _defineProperty(_classNames, "".concat(prefixCls, "-treenode-switcher-").concat(expanded ? 'open' : 'close'), !isLeaf), _defineProperty(_classNames, "".concat(prefixCls, "-treenode-checkbox-checked"), checked), _defineProperty(_classNames, "".concat(prefixCls, "-treenode-checkbox-indeterminate"), halfChecked), _defineProperty(_classNames, "".concat(prefixCls, "-treenode-selected"), selected), _defineProperty(_classNames, "".concat(prefixCls, "-treenode-loading"), loading), _defineProperty(_classNames, 'drag-over', !disabled && dragOver), _defineProperty(_classNames, 'drag-over-gap-top', !disabled && dragOverGapTop), _defineProperty(_classNames, 'drag-over-gap-bottom', !disabled && dragOverGapBottom), _defineProperty(_classNames, 'filter-node', filterTreeNode && filterTreeNode(this)), _classNames)), + style: style, + role: "treeitem", + onDragEnter: draggable ? this.onDragEnter : undefined, + onDragOver: draggable ? this.onDragOver : undefined, + onDragLeave: draggable ? this.onDragLeave : undefined, + onDrop: draggable ? this.onDrop : undefined, + onDragEnd: draggable ? this.onDragEnd : undefined + }, dataOrAriaAttributeProps), this.renderSwitcher(), this.renderCheckbox(), this.renderSelector(), this.renderChildren()); + } + }]); - var _props = this.props, - clsPrefix = _props.clsPrefix, - className = _props.className, - position = _props.position, - style = _props.style; + return TreeNode; + }(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]); - var noticeNodes = this.state.notices.map(function (notice) { - var onClose = (0, _createChainedFunction2["default"])(_this2.remove.bind(_this2, notice.key), notice.onClose); - return _react2["default"].createElement( - _Notice2["default"], - _extends({ - clsPrefix: clsPrefix - }, notice, { - onClose: onClose - }), - notice.content - ); - }); - var classes = (_classes = {}, _defineProperty(_classes, clsPrefix, 1), _defineProperty(_classes, className, !!className), _classes); - if (position) { - classes[clsPrefix + '-' + position] = !!position; - } + TreeNode.propTypes = { + eventKey: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, + prefixCls: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, + className: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, + style: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object, + onSelect: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func, + // By parent + expanded: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, + selected: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, + checked: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, + loaded: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, + loading: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, + halfChecked: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, + children: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node, + title: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node, + pos: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, + dragOver: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, + dragOverGapTop: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, + dragOverGapBottom: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, + // By user + isLeaf: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, + checkable: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, + selectable: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, + disabled: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, + disableCheckbox: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, + icon: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func]), + switcherIcon: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func]) + }; + Object(__WEBPACK_IMPORTED_MODULE_5_react_lifecycles_compat__["polyfill"])(TreeNode); - return _react2["default"].createElement( - 'div', - { className: (0, _classnames2["default"])(className, classes), style: style }, - _react2["default"].createElement( - _beeAnimate2["default"], - { transitionName: this.getTransitionName() }, - noticeNodes - ) - ); - }; + var ContextTreeNode = function ContextTreeNode(props) { + return __WEBPACK_IMPORTED_MODULE_0_react__["createElement"](__WEBPACK_IMPORTED_MODULE_6__contextTypes__["a" /* TreeContext */].Consumer, null, function (context) { + return __WEBPACK_IMPORTED_MODULE_0_react__["createElement"](TreeNode, Object.assign({}, props, { + context: context + })); + }); + }; - return Notification; - }(_react.Component); + ContextTreeNode.defaultProps = { + title: defaultTitle + }; + ContextTreeNode.isTreeNode = 1; - ; + /* harmony default export */ __webpack_exports__["a"] = (ContextTreeNode); - Notification.propTypes = propTypes; - Notification.defaultProps = defaultProps; + /***/ }), + /* 519 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { - Notification.newInstance = function newNotificationInstance(properties, callback) { - if (typeof callback !== 'function') { - console.error('You must introduce callback as the second parameter of Notification.newInstance().'); - return; - } - var props = properties || {}; - var div = document.createElement('div'); - document.body.appendChild(div); + "use strict"; + /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MotionPropTypes; }); + /* unused harmony export genCSSMotion */ + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(87); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__ = __webpack_require__(8); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(7); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass__ = __webpack_require__(55); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(9); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__ = __webpack_require__(10); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(1); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react_lifecycles_compat__ = __webpack_require__(12); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_rc_util_es_Dom_findDOMNode__ = __webpack_require__(472); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_classnames__ = __webpack_require__(2); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_classnames__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_raf__ = __webpack_require__(36); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_raf___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_raf__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__util_motion__ = __webpack_require__(520); - var called = false; - function ref(notification) { - if (called) { - return; - } - called = true; - callback({ - notice: function notice(noticeProps) { - notification.add(noticeProps); - }, - removeNotice: function removeNotice(key) { - notification.remove(key); - }, - component: notification, - destroy: function destroy() { - _reactDom2["default"].unmountComponentAtNode(div); - document.body.removeChild(div); - } - }); - } - _reactDom2["default"].render(_react2["default"].createElement(Notification, _extends({}, props, { ref: ref })), div); - }; - exports["default"] = Notification; - module.exports = exports['default']; - /***/ }), - /* 700 */ - /***/ (function(module, exports, __webpack_require__) { - "use strict"; + /* eslint-disable react/default-props-match-prop-types, react/no-multi-comp */ - Object.defineProperty(exports, "__esModule", { - value: true - }); - var _Animate = __webpack_require__(701); - var _Animate2 = _interopRequireDefault(_Animate); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - exports["default"] = _Animate2["default"]; - module.exports = exports['default']; - /***/ }), - /* 701 */ - /***/ (function(module, exports, __webpack_require__) { - "use strict"; + var STATUS_NONE = 'none'; + var STATUS_APPEAR = 'appear'; + var STATUS_ENTER = 'enter'; + var STATUS_LEAVE = 'leave'; - Object.defineProperty(exports, "__esModule", { - value: true - }); + var MotionPropTypes = { + eventProps: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.object, // Internal usage. Only pass by CSSMotionList + visible: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, + children: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, + motionName: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.object]), + motionAppear: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, + motionEnter: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, + motionLeave: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, + motionLeaveImmediately: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, // Trigger leave motion immediately + motionDeadline: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number, + removeOnLeave: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, + leavedClassName: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string, + onAppearStart: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, + onAppearActive: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, + onAppearEnd: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, + onEnterStart: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, + onEnterActive: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, + onEnterEnd: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, + onLeaveStart: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, + onLeaveActive: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, + onLeaveEnd: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func + }; - var _react = __webpack_require__(0); + /** + * `transitionSupport` is used for none transition test case. + * Default we use browser transition event support check. + */ + function genCSSMotion(config) { + var transitionSupport = config; + var forwardRef = !!__WEBPACK_IMPORTED_MODULE_6_react___default.a.forwardRef; - var _react2 = _interopRequireDefault(_react); + if (typeof config === 'object') { + transitionSupport = config.transitionSupport; + forwardRef = 'forwardRef' in config ? config.forwardRef : forwardRef; + } - var _propTypes = __webpack_require__(1); + function isSupportTransition(props) { + return !!(props.motionName && transitionSupport); + } - var _propTypes2 = _interopRequireDefault(_propTypes); + var CSSMotion = function (_React$Component) { + __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default()(CSSMotion, _React$Component); - var _ChildrenUtils = __webpack_require__(702); + function CSSMotion() { + __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, CSSMotion); - var _AnimateChild = __webpack_require__(703); + var _this = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default()(this, (CSSMotion.__proto__ || Object.getPrototypeOf(CSSMotion)).call(this)); - var _AnimateChild2 = _interopRequireDefault(_AnimateChild); + _this.onDomUpdate = function () { + var _this$state = _this.state, + status = _this$state.status, + newStatus = _this$state.newStatus; + var _this$props = _this.props, + onAppearStart = _this$props.onAppearStart, + onEnterStart = _this$props.onEnterStart, + onLeaveStart = _this$props.onLeaveStart, + onAppearActive = _this$props.onAppearActive, + onEnterActive = _this$props.onEnterActive, + onLeaveActive = _this$props.onLeaveActive, + motionAppear = _this$props.motionAppear, + motionEnter = _this$props.motionEnter, + motionLeave = _this$props.motionLeave; - var _util = __webpack_require__(243); - var _util2 = _interopRequireDefault(_util); + if (!isSupportTransition(_this.props)) { + return; + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + // Event injection + var $ele = _this.getElement(); + if (_this.$cacheEle !== $ele) { + _this.removeEventListener(_this.$cacheEle); + _this.addEventListener($ele); + _this.$cacheEle = $ele; + } - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + // Init status + if (newStatus && status === STATUS_APPEAR && motionAppear) { + _this.updateStatus(onAppearStart, null, null, function () { + _this.updateActiveStatus(onAppearActive, STATUS_APPEAR); + }); + } else if (newStatus && status === STATUS_ENTER && motionEnter) { + _this.updateStatus(onEnterStart, null, null, function () { + _this.updateActiveStatus(onEnterActive, STATUS_ENTER); + }); + } else if (newStatus && status === STATUS_LEAVE && motionLeave) { + _this.updateStatus(onLeaveStart, null, null, function () { + _this.updateActiveStatus(onLeaveActive, STATUS_LEAVE); + }); + } + }; - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + _this.onMotionEnd = function (event) { + var _this$state2 = _this.state, + status = _this$state2.status, + statusActive = _this$state2.statusActive; + var _this$props2 = _this.props, + onAppearEnd = _this$props2.onAppearEnd, + onEnterEnd = _this$props2.onEnterEnd, + onLeaveEnd = _this$props2.onLeaveEnd; - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + if (status === STATUS_APPEAR && statusActive) { + _this.updateStatus(onAppearEnd, { status: STATUS_NONE }, event); + } else if (status === STATUS_ENTER && statusActive) { + _this.updateStatus(onEnterEnd, { status: STATUS_NONE }, event); + } else if (status === STATUS_LEAVE && statusActive) { + _this.updateStatus(onLeaveEnd, { status: STATUS_NONE }, event); + } + }; - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + _this.setNodeRef = function (node) { + var internalRef = _this.props.internalRef; - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + _this.node = node; - var defaultKey = 'u_animate_' + Date.now(); + if (typeof internalRef === 'function') { + internalRef(node); + } else if (internalRef && 'current' in internalRef) { + internalRef.current = node; + } + }; + _this.getElement = function () { + try { + return Object(__WEBPACK_IMPORTED_MODULE_9_rc_util_es_Dom_findDOMNode__["a" /* default */])(_this.node || _this); + } catch (e) { + /** + * Fallback to cache element. + * This is only happen when `motionDeadline` trigger but element removed. + */ + return _this.$cacheEle; + } + }; - function getChildrenFromProps(props) { - var children = props.children; - if (_react2["default"].isValidElement(children)) { - if (!children.key) { - return _react2["default"].cloneElement(children, { - key: defaultKey - }); - } - } - return children; - } + _this.addEventListener = function ($ele) { + if (!$ele) return; - function noop() {} + $ele.addEventListener(__WEBPACK_IMPORTED_MODULE_12__util_motion__["d" /* transitionEndName */], _this.onMotionEnd); + $ele.addEventListener(__WEBPACK_IMPORTED_MODULE_12__util_motion__["a" /* animationEndName */], _this.onMotionEnd); + }; - var propTypes = { - component: _propTypes2["default"].any, - animation: _propTypes2["default"].object, - transitionName: _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].object]), - transitionEnter: _propTypes2["default"].bool, - transitionAppear: _propTypes2["default"].bool, - exclusive: _propTypes2["default"].bool, - transitionLeave: _propTypes2["default"].bool, - onEnd: _propTypes2["default"].func, - onEnter: _propTypes2["default"].func, - onLeave: _propTypes2["default"].func, - onAppear: _propTypes2["default"].func, - showProp: _propTypes2["default"].string - }; + _this.removeEventListener = function ($ele) { + if (!$ele) return; - var defaultProps = { - animation: {}, - component: 'span', - transitionEnter: true, - transitionLeave: true, - transitionAppear: false, - onEnd: noop, - onEnter: noop, - onLeave: noop, - onAppear: noop - }; + $ele.removeEventListener(__WEBPACK_IMPORTED_MODULE_12__util_motion__["d" /* transitionEndName */], _this.onMotionEnd); + $ele.removeEventListener(__WEBPACK_IMPORTED_MODULE_12__util_motion__["a" /* animationEndName */], _this.onMotionEnd); + }; - var Animate = function (_Component) { - _inherits(Animate, _Component); + _this.updateStatus = function (styleFunc, additionalState, event, callback) { + var statusStyle = styleFunc ? styleFunc(_this.getElement(), event) : null; - function Animate(props) { - _classCallCheck(this, Animate); + if (statusStyle === false || _this._destroyed) return; - var _this = _possibleConstructorReturn(this, _Component.call(this, props)); + var nextStep = void 0; + if (callback) { + nextStep = function nextStep() { + _this.nextFrame(callback); + }; + } - _this.currentlyAnimatingKeys = {}; - _this.keysToEnter = []; - _this.keysToLeave = []; - _this.state = { - children: (0, _ChildrenUtils.toArrayChildren)(getChildrenFromProps(_this.props)) - }; + _this.setState(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({ + statusStyle: typeof statusStyle === 'object' ? statusStyle : null, + newStatus: false + }, additionalState), nextStep); // Trigger before next frame & after `componentDidMount` + }; - _this.performEnter = _this.performEnter.bind(_this); - _this.performAppear = _this.performAppear.bind(_this); - _this.handleDoneAdding = _this.handleDoneAdding.bind(_this); - _this.performLeave = _this.performLeave.bind(_this); + _this.updateActiveStatus = function (styleFunc, currentStatus) { + // `setState` use `postMessage` to trigger at the end of frame. + // Let's use requestAnimationFrame to update new state in next frame. + _this.nextFrame(function () { + var status = _this.state.status; - _this.performLeave = _this.performLeave.bind(_this); - _this.handleDoneLeaving = _this.handleDoneLeaving.bind(_this); - _this.isValidChildByKey = _this.isValidChildByKey.bind(_this); - _this.stop = _this.stop.bind(_this); - return _this; - } + if (status !== currentStatus) return; - Animate.prototype.componentDidMount = function componentDidMount() { - var _this2 = this; + var motionDeadline = _this.props.motionDeadline; - this.mounted = true; - var showProp = this.props.showProp; - var children = this.state.children; - if (showProp) { - children = children.filter(function (child) { - return !!child.props[showProp]; - }); - } - children.forEach(function (child) { - if (child) { - _this2.performAppear(child.key); - } - }); - }; - Animate.prototype.componentWillUnmount = function componentWillUnmount() { - this.mounted = false; - }; + _this.updateStatus(styleFunc, { statusActive: true }); - Animate.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - var _this3 = this; + if (motionDeadline > 0) { + setTimeout(function () { + _this.onMotionEnd({ + deadline: true + }); + }, motionDeadline); + } + }); + }; - this.nextProps = nextProps; - var nextChildren = (0, _ChildrenUtils.toArrayChildren)(getChildrenFromProps(nextProps)); - var props = this.props; - // exclusive needs immediate response - if (props.exclusive) { - Object.keys(this.currentlyAnimatingKeys).forEach(function (key) { - _this3.stop(key); - }); - } - var showProp = props.showProp; - var currentlyAnimatingKeys = this.currentlyAnimatingKeys; - // last props children if exclusive - var currentChildren = props.exclusive ? (0, _ChildrenUtils.toArrayChildren)(getChildrenFromProps(props)) : this.state.children; - // in case destroy in showProp mode - var newChildren = []; - if (showProp) { - currentChildren.forEach(function (currentChild) { - var nextChild = currentChild && (0, _ChildrenUtils.findChildInChildrenByKey)(nextChildren, currentChild.key); - var newChild = void 0; - if ((!nextChild || !nextChild.props[showProp]) && currentChild.props[showProp]) { - newChild = _react2["default"].cloneElement(nextChild || currentChild, _defineProperty({}, showProp, true)); - } else { - newChild = nextChild; - } - if (newChild) { - newChildren.push(newChild); - } - }); - nextChildren.forEach(function (nextChild) { - if (!nextChild || !(0, _ChildrenUtils.findChildInChildrenByKey)(currentChildren, nextChild.key)) { - newChildren.push(nextChild); + _this.nextFrame = function (func) { + _this.cancelNextFrame(); + _this.raf = __WEBPACK_IMPORTED_MODULE_11_raf___default()(func); + }; + + _this.cancelNextFrame = function () { + if (_this.raf) { + __WEBPACK_IMPORTED_MODULE_11_raf___default.a.cancel(_this.raf); + _this.raf = null; } - }); - } else { - newChildren = (0, _ChildrenUtils.mergeChildren)(currentChildren, nextChildren); - } + }; - // need render to avoid update - this.setState({ - children: newChildren - }); + _this.state = { + status: STATUS_NONE, + statusActive: false, + newStatus: false, + statusStyle: null + }; + _this.$cacheEle = null; + _this.node = null; + _this.raf = null; + return _this; + } - nextChildren.forEach(function (child) { - var key = child && child.key; - if (child && currentlyAnimatingKeys[key]) { - return; + __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass___default()(CSSMotion, [{ + key: 'componentDidMount', + value: function componentDidMount() { + this.onDomUpdate(); } - var hasPrev = child && (0, _ChildrenUtils.findChildInChildrenByKey)(currentChildren, key); - if (showProp) { - var showInNext = child.props[showProp]; - if (hasPrev) { - var showInNow = (0, _ChildrenUtils.findShownChildInChildrenByKey)(currentChildren, key, showProp); - if (!showInNow && showInNext) { - _this3.keysToEnter.push(key); - } - } else if (showInNext) { - _this3.keysToEnter.push(key); - } - } else if (!hasPrev) { - _this3.keysToEnter.push(key); + }, { + key: 'componentDidUpdate', + value: function componentDidUpdate() { + this.onDomUpdate(); } - }); - - currentChildren.forEach(function (child) { - var key = child && child.key; - if (child && currentlyAnimatingKeys[key]) { - return; + }, { + key: 'componentWillUnmount', + value: function componentWillUnmount() { + this._destroyed = true; + this.removeEventListener(this.$cacheEle); + this.cancelNextFrame(); } - var hasNext = child && (0, _ChildrenUtils.findChildInChildrenByKey)(nextChildren, key); - if (showProp) { - var showInNow = child.props[showProp]; - if (hasNext) { - var showInNext = (0, _ChildrenUtils.findShownChildInChildrenByKey)(nextChildren, key, showProp); - if (!showInNext && showInNow) { - _this3.keysToLeave.push(key); + }, { + key: 'render', + value: function render() { + var _classNames; + + var _state = this.state, + status = _state.status, + statusActive = _state.statusActive, + statusStyle = _state.statusStyle; + var _props = this.props, + children = _props.children, + motionName = _props.motionName, + visible = _props.visible, + removeOnLeave = _props.removeOnLeave, + leavedClassName = _props.leavedClassName, + eventProps = _props.eventProps; + + + if (!children) return null; + + if (status === STATUS_NONE || !isSupportTransition(this.props)) { + if (visible) { + return children(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, eventProps), this.setNodeRef); + } else if (!removeOnLeave) { + return children(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, eventProps, { className: leavedClassName }), this.setNodeRef); } - } else if (showInNow) { - _this3.keysToLeave.push(key); + + return null; } - } else if (!hasNext) { - _this3.keysToLeave.push(key); + + return children(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, eventProps, { + className: __WEBPACK_IMPORTED_MODULE_10_classnames___default()((_classNames = {}, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_classNames, Object(__WEBPACK_IMPORTED_MODULE_12__util_motion__["b" /* getTransitionName */])(motionName, status), status !== STATUS_NONE), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_classNames, Object(__WEBPACK_IMPORTED_MODULE_12__util_motion__["b" /* getTransitionName */])(motionName, status + '-active'), status !== STATUS_NONE && statusActive), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_classNames, motionName, typeof motionName === 'string'), _classNames)), + style: statusStyle + }), this.setNodeRef); } - }); - }; + }], [{ + key: 'getDerivedStateFromProps', + value: function getDerivedStateFromProps(props, _ref) { + var prevProps = _ref.prevProps, + prevStatus = _ref.status; - Animate.prototype.componentDidUpdate = function componentDidUpdate() { - var keysToEnter = this.keysToEnter; - this.keysToEnter = []; - keysToEnter.forEach(this.performEnter); - var keysToLeave = this.keysToLeave; - this.keysToLeave = []; - keysToLeave.forEach(this.performLeave); - }; + if (!isSupportTransition(props)) return {}; - Animate.prototype.performEnter = function performEnter(key) { - // may already remove by exclusive - if (this.refs[key]) { - this.currentlyAnimatingKeys[key] = true; - this.refs[key].componentWillEnter(this.handleDoneAdding.bind(this, key, 'enter')); - } - }; + var visible = props.visible, + motionAppear = props.motionAppear, + motionEnter = props.motionEnter, + motionLeave = props.motionLeave, + motionLeaveImmediately = props.motionLeaveImmediately; - Animate.prototype.performAppear = function performAppear(key) { - if (this.refs[key]) { - this.currentlyAnimatingKeys[key] = true; - this.refs[key].componentWillAppear(this.handleDoneAdding.bind(this, key, 'appear')); - } - }; + var newState = { + prevProps: props + }; - Animate.prototype.handleDoneAdding = function handleDoneAdding(key, type) { - var props = this.props; - delete this.currentlyAnimatingKeys[key]; - // if update on exclusive mode, skip check - if (props.exclusive && props !== this.nextProps) { - return; - } - var currentChildren = (0, _ChildrenUtils.toArrayChildren)(getChildrenFromProps(props)); - if (!this.isValidChildByKey(currentChildren, key)) { - // exclusive will not need this - this.performLeave(key); - } else { - if (type === 'appear') { - if (_util2["default"].allowAppearCallback(props)) { - props.onAppear(key); - props.onEnd(key, true); + // Clean up status if prop set to false + if (prevStatus === STATUS_APPEAR && !motionAppear || prevStatus === STATUS_ENTER && !motionEnter || prevStatus === STATUS_LEAVE && !motionLeave) { + newState.status = STATUS_NONE; + newState.statusActive = false; + newState.newStatus = false; } - } else { - if (_util2["default"].allowEnterCallback(props)) { - props.onEnter(key); - props.onEnd(key, true); + + // Appear + if (!prevProps && visible && motionAppear) { + newState.status = STATUS_APPEAR; + newState.statusActive = false; + newState.newStatus = true; } - } - } - }; - Animate.prototype.performLeave = function performLeave(key) { - // may already remove by exclusive - if (this.refs[key]) { - this.currentlyAnimatingKeys[key] = true; - this.refs[key].componentWillLeave(this.handleDoneLeaving.bind(this, key)); - } - }; + // Enter + if (prevProps && !prevProps.visible && visible && motionEnter) { + newState.status = STATUS_ENTER; + newState.statusActive = false; + newState.newStatus = true; + } - Animate.prototype.handleDoneLeaving = function handleDoneLeaving(key) { - var props = this.props; - delete this.currentlyAnimatingKeys[key]; - // if update on exclusive mode, skip check - if (props.exclusive && props !== this.nextProps) { - return; - } - var currentChildren = (0, _ChildrenUtils.toArrayChildren)(getChildrenFromProps(props)); - // in case state change is too fast - if (this.isValidChildByKey(currentChildren, key)) { - this.performEnter(key); - } else { - var end = function end() { - if (_util2["default"].allowLeaveCallback(props)) { - props.onLeave(key); - props.onEnd(key, false); + // Leave + if (prevProps && prevProps.visible && !visible && motionLeave || !prevProps && motionLeaveImmediately && !visible && motionLeave) { + newState.status = STATUS_LEAVE; + newState.statusActive = false; + newState.newStatus = true; } - }; - /* eslint react/no-is-mounted:0 */ - if (this.mounted && !(0, _ChildrenUtils.isSameChildren)(this.state.children, currentChildren, props.showProp)) { - this.setState({ - children: currentChildren - }, end); - } else { - end(); + + return newState; } - } - }; + }]); - Animate.prototype.isValidChildByKey = function isValidChildByKey(currentChildren, key) { - var showProp = this.props.showProp; - if (showProp) { - return (0, _ChildrenUtils.findShownChildInChildrenByKey)(currentChildren, key, showProp); - } - return (0, _ChildrenUtils.findChildInChildrenByKey)(currentChildren, key); - }; + return CSSMotion; + }(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); - Animate.prototype.stop = function stop(key) { - delete this.currentlyAnimatingKeys[key]; - var component = this.refs[key]; - if (component) { - component.stop(); - } - }; + CSSMotion.propTypes = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, MotionPropTypes, { - Animate.prototype.render = function render() { - var props = this.props; - this.nextProps = props; - var stateChildren = this.state.children; - var children = null; - if (stateChildren) { - children = stateChildren.map(function (child) { - if (child === null || child === undefined) { - return child; - } - if (!child.key) { - throw new Error('must set key for children'); - } - return _react2["default"].createElement( - _AnimateChild2["default"], - { - key: child.key, - ref: child.key, - animation: props.animation, - transitionName: props.transitionName, - transitionEnter: props.transitionEnter, - transitionAppear: props.transitionAppear, - transitionLeave: props.transitionLeave - }, - child - ); - }); - } - var Component = props.component; - if (Component) { - var passedProps = props; - if (typeof Component === 'string') { - passedProps = { - className: props.className, - style: props.style - }; - } - return _react2["default"].createElement( - Component, - passedProps, - children - ); - } - return children[0] || null; + internalRef: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.object, __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func]) + }); + CSSMotion.defaultProps = { + visible: true, + motionEnter: true, + motionAppear: true, + motionLeave: true, + removeOnLeave: true }; - return Animate; - }(_react.Component); - ; - Animate.defaultProps = defaultProps; - Animate.propTypes = Animate.propTypes; + Object(__WEBPACK_IMPORTED_MODULE_8_react_lifecycles_compat__["polyfill"])(CSSMotion); + + if (!forwardRef) { + return CSSMotion; + } - exports["default"] = Animate; - module.exports = exports['default']; + return __WEBPACK_IMPORTED_MODULE_6_react___default.a.forwardRef(function (props, ref) { + return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(CSSMotion, __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({ internalRef: ref }, props)); + }); + } + + /* harmony default export */ __webpack_exports__["b"] = (genCSSMotion(__WEBPACK_IMPORTED_MODULE_12__util_motion__["c" /* supportTransition */])); /***/ }), - /* 702 */ - /***/ (function(module, exports, __webpack_require__) { + /* 520 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; + /* unused harmony export getVendorPrefixes */ + /* unused harmony export getVendorPrefixedEventName */ + /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return animationEndName; }); + /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return transitionEndName; }); + /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return supportTransition; }); + /* harmony export (immutable) */ __webpack_exports__["b"] = getTransitionName; + var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement); + // ================= Transition ================= + // Event wrapper. Copy from react source code + function makePrefixMap(styleProp, eventName) { + var prefixes = {}; - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.toArrayChildren = toArrayChildren; - exports.findChildInChildrenByKey = findChildInChildrenByKey; - exports.findShownChildInChildrenByKey = findShownChildInChildrenByKey; - exports.findHiddenChildInChildrenByKey = findHiddenChildInChildrenByKey; - exports.isSameChildren = isSameChildren; - exports.mergeChildren = mergeChildren; + prefixes[styleProp.toLowerCase()] = eventName.toLowerCase(); + prefixes['Webkit' + styleProp] = 'webkit' + eventName; + prefixes['Moz' + styleProp] = 'moz' + eventName; + prefixes['ms' + styleProp] = 'MS' + eventName; + prefixes['O' + styleProp] = 'o' + eventName.toLowerCase(); - var _react = __webpack_require__(0); + return prefixes; + } - var _react2 = _interopRequireDefault(_react); + function getVendorPrefixes(domSupport, win) { + var prefixes = { + animationend: makePrefixMap('Animation', 'AnimationEnd'), + transitionend: makePrefixMap('Transition', 'TransitionEnd') + }; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + if (domSupport) { + if (!('AnimationEvent' in win)) { + delete prefixes.animationend.animation; + } - function toArrayChildren(children) { - var ret = []; - _react2["default"].Children.forEach(children, function (child) { - ret.push(child); - }); - return ret; + if (!('TransitionEvent' in win)) { + delete prefixes.transitionend.transition; + } + } + + return prefixes; } - function findChildInChildrenByKey(children, key) { - var ret = null; - if (children) { - children.forEach(function (child) { - if (ret) { - return; - } - if (child && child.key === key) { - ret = child; - } - }); - } - return ret; + var vendorPrefixes = getVendorPrefixes(canUseDOM, typeof window !== 'undefined' ? window : {}); + + var style = {}; + + if (canUseDOM) { + style = document.createElement('div').style; } - function findShownChildInChildrenByKey(children, key, showProp) { - var ret = null; - if (children) { - children.forEach(function (child) { - if (child && child.key === key && child.props[showProp]) { - if (ret) { - throw new Error('two child with same key for children'); - } - ret = child; - } - }); + var prefixedEventNames = {}; + + function getVendorPrefixedEventName(eventName) { + if (prefixedEventNames[eventName]) { + return prefixedEventNames[eventName]; } - return ret; - } - function findHiddenChildInChildrenByKey(children, key, showProp) { - var found = 0; - if (children) { - children.forEach(function (child) { - if (found) { - return; + var prefixMap = vendorPrefixes[eventName]; + + if (prefixMap) { + var stylePropList = Object.keys(prefixMap); + var len = stylePropList.length; + for (var i = 0; i < len; i += 1) { + var styleProp = stylePropList[i]; + if (Object.prototype.hasOwnProperty.call(prefixMap, styleProp) && styleProp in style) { + prefixedEventNames[eventName] = prefixMap[styleProp]; + return prefixedEventNames[eventName]; } - found = child && child.key === key && !child.props[showProp]; - }); + } } - return found; + + return ''; } - function isSameChildren(c1, c2, showProp) { - var same = c1.length === c2.length; - if (same) { - c1.forEach(function (child, index) { - var child2 = c2[index]; - if (child && child2) { - if (child && !child2 || !child && child2) { - same = false; - } else if (child.key !== child2.key) { - same = false; - } else if (showProp && child.props[showProp] !== child2.props[showProp]) { - same = false; - } - } + var animationEndName = getVendorPrefixedEventName('animationend'); + var transitionEndName = getVendorPrefixedEventName('transitionend'); + var supportTransition = !!(animationEndName && transitionEndName); + + function getTransitionName(transitionName, transitionType) { + if (!transitionName) return null; + + if (typeof transitionName === 'object') { + var type = transitionType.replace(/-\w/g, function (match) { + return match[1].toUpperCase(); }); + return transitionName[type]; } - return same; + + return transitionName + '-' + transitionType; } - function mergeChildren(prev, next) { - var ret = []; + /***/ }), + /* 521 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { - // For each key of `next`, the list of keys to insert before that key in - // the combined list - var nextChildrenPending = {}; - var pendingChildren = []; - prev.forEach(function (child) { - if (child && findChildInChildrenByKey(next, child.key)) { - if (pendingChildren.length) { - nextChildrenPending[child.key] = pendingChildren; - pendingChildren = []; - } - } else { - pendingChildren.push(child); - } - }); + "use strict"; + /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TreeContext; }); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ant_design_create_react_context__ = __webpack_require__(1586); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ant_design_create_react_context___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__ant_design_create_react_context__); - next.forEach(function (child) { - if (child && nextChildrenPending.hasOwnProperty(child.key)) { - ret = ret.concat(nextChildrenPending[child.key]); - } - ret.push(child); - }); + var TreeContext = __WEBPACK_IMPORTED_MODULE_0__ant_design_create_react_context___default()(null); - ret = ret.concat(pendingChildren); + /***/ }), + /* 522 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { - return ret; - } + "use strict"; + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Tree__ = __webpack_require__(1591); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__TreeNode__ = __webpack_require__(518); + /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_1__TreeNode__["a"]; }); + + + var Tree = __WEBPACK_IMPORTED_MODULE_0__Tree__["a" /* default */]; + Tree.TreeNode = __WEBPACK_IMPORTED_MODULE_1__TreeNode__["a" /* default */]; + + /* harmony default export */ __webpack_exports__["b"] = (Tree); /***/ }), - /* 703 */ - /***/ (function(module, exports, __webpack_require__) { + /* 523 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; + /* unused harmony export searchContextTypes */ + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_lifecycles_compat__ = __webpack_require__(12); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util__ = __webpack_require__(34); + function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - Object.defineProperty(exports, "__esModule", { - value: true - }); + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - var _react = __webpack_require__(0); + function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - var _react2 = _interopRequireDefault(_react); + function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - var _propTypes = __webpack_require__(1); + function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } - var _propTypes2 = _interopRequireDefault(_propTypes); + function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - var _reactDom = __webpack_require__(3); + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } - var _reactDom2 = _interopRequireDefault(_reactDom); + function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - var _tinperBeeCore = __webpack_require__(704); + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - var _util = __webpack_require__(243); + /** + * Since search box is in different position with different mode. + * - Single: in the popup box + * - multiple: in the selector + * Move the code as a SearchInput for easy management. + */ - var _util2 = _interopRequireDefault(_util); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + var searchContextTypes = { + onSearchInputChange: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired + }; - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + var SearchInput = + /*#__PURE__*/ + function (_React$Component) { + _inherits(SearchInput, _React$Component); - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + function SearchInput() { + var _this; - var transitionMap = { - enter: 'transitionEnter', - appear: 'transitionAppear', - leave: 'transitionLeave' - }; + _classCallCheck(this, SearchInput); - var propTypes = { - children: _propTypes2["default"].any - }; + _this = _possibleConstructorReturn(this, _getPrototypeOf(SearchInput).call(this)); - var AnimateChild = function (_Component) { - _inherits(AnimateChild, _Component); + _defineProperty(_assertThisInitialized(_this), "alignInputWidth", function () { + _this.inputRef.current.style.width = "".concat(_this.mirrorInputRef.current.clientWidth, "px"); + }); - function AnimateChild(props) { - _classCallCheck(this, AnimateChild); + _defineProperty(_assertThisInitialized(_this), "focus", function (isDidMount) { + if (_this.inputRef.current) { + _this.inputRef.current.focus(); - var _this = _possibleConstructorReturn(this, _Component.call(this, props)); + if (isDidMount) { + setTimeout(function () { + _this.inputRef.current.focus(); + }, 0); + } + } + }); - _this.transition = _this.transition.bind(_this); - _this.stop = _this.stop.bind(_this); + _defineProperty(_assertThisInitialized(_this), "blur", function () { + if (_this.inputRef.current) { + _this.inputRef.current.blur(); + } + }); + + _this.inputRef = Object(__WEBPACK_IMPORTED_MODULE_3__util__["g" /* createRef */])(); + _this.mirrorInputRef = Object(__WEBPACK_IMPORTED_MODULE_3__util__["g" /* createRef */])(); return _this; } - AnimateChild.prototype.componentWillUnmount = function componentWillUnmount() { - this.stop(); - }; - - AnimateChild.prototype.componentWillEnter = function componentWillEnter(done) { - if (_util2["default"].isEnterSupported(this.props)) { - this.transition('enter', done); - } else { - done(); - } - }; + _createClass(SearchInput, [{ + key: "componentDidMount", + value: function componentDidMount() { + var _this$props = this.props, + open = _this$props.open, + needAlign = _this$props.needAlign; - AnimateChild.prototype.componentWillAppear = function componentWillAppear(done) { - if (_util2["default"].isAppearSupported(this.props)) { - this.transition('appear', done); - } else { - done(); - } - }; + if (needAlign) { + this.alignInputWidth(); + } - AnimateChild.prototype.componentWillLeave = function componentWillLeave(done) { - if (_util2["default"].isLeaveSupported(this.props)) { - this.transition('leave', done); - } else { - // always sync, do not interupt with react component life cycle - // update hidden -> animate hidden -> - // didUpdate -> animate leave -> unmount (if animate is none) - done(); + if (open) { + this.focus(true); + } } - }; + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + var _this$props2 = this.props, + open = _this$props2.open, + searchValue = _this$props2.searchValue, + needAlign = _this$props2.needAlign; - AnimateChild.prototype.transition = function transition(animationType, finishCallback) { - var _this2 = this; + if (open && prevProps.open !== open) { + this.focus(); + } - var node = _reactDom2["default"].findDOMNode(this); - var props = this.props; - var transitionName = props.transitionName; - var nameIsObj = (typeof transitionName === 'undefined' ? 'undefined' : _typeof(transitionName)) === 'object'; - this.stop(); - var end = function end() { - _this2.stopper = null; - finishCallback(); - }; - if ((_tinperBeeCore.cssAnimation.isCssAnimationSupported || !props.animation[animationType]) && transitionName && props[transitionMap[animationType]]) { - var name = nameIsObj ? transitionName[animationType] : transitionName + '-' + animationType; - var activeName = name + '-active'; - if (nameIsObj && transitionName[animationType + 'Active']) { - activeName = transitionName[animationType + 'Active']; + if (needAlign && searchValue !== prevProps.searchValue) { + this.alignInputWidth(); } - this.stopper = (0, _tinperBeeCore.cssAnimation)(node, { - name: name, - active: activeName - }, end); - } else { - this.stopper = props.animation[animationType](node, end); } - }; + /** + * `scrollWidth` is not correct in IE, do the workaround. + * ref: https://github.com/react-component/tree-select/issues/65 + */ - AnimateChild.prototype.stop = function stop() { - var stopper = this.stopper; - if (stopper) { - this.stopper = null; - stopper.stop(); + }, { + key: "render", + value: function render() { + var _this$props3 = this.props, + searchValue = _this$props3.searchValue, + prefixCls = _this$props3.prefixCls, + disabled = _this$props3.disabled, + renderPlaceholder = _this$props3.renderPlaceholder, + open = _this$props3.open, + ariaId = _this$props3.ariaId; + var _this$context$rcTreeS = this.context.rcTreeSelect, + onSearchInputChange = _this$context$rcTreeS.onSearchInputChange, + onSearchInputKeyDown = _this$context$rcTreeS.onSearchInputKeyDown; + return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("span", { + className: "".concat(prefixCls, "-search__field__wrap") + }, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("input", { + type: "text", + ref: this.inputRef, + onChange: onSearchInputChange, + onKeyDown: onSearchInputKeyDown, + value: searchValue, + disabled: disabled, + className: "".concat(prefixCls, "-search__field"), + "aria-label": "filter select", + "aria-autocomplete": "list", + "aria-controls": open ? ariaId : undefined, + "aria-multiline": "false" + }), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("span", { + ref: this.mirrorInputRef, + className: "".concat(prefixCls, "-search__field__mirror") + }, searchValue, "\xA0"), renderPlaceholder ? renderPlaceholder() : null); } - }; - - AnimateChild.prototype.render = function render() { - return this.props.children; - }; + }]); - return AnimateChild; - }(_react.Component); + return SearchInput; + }(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component); - ; + _defineProperty(SearchInput, "propTypes", { + open: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, + searchValue: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, + prefixCls: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, + disabled: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, + renderPlaceholder: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func, + needAlign: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, + ariaId: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string + }); - AnimateChild.propTypes = propTypes; + _defineProperty(SearchInput, "contextTypes", { + rcTreeSelect: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.shape(_objectSpread({}, searchContextTypes)) + }); - exports["default"] = AnimateChild; - module.exports = exports['default']; + Object(__WEBPACK_IMPORTED_MODULE_2_react_lifecycles_compat__["polyfill"])(SearchInput); + /* harmony default export */ __webpack_exports__["a"] = (SearchInput); /***/ }), - /* 704 */ - /***/ (function(module, exports, __webpack_require__) { + /* 524 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; + /* unused harmony export genArrProps */ + /* harmony export (immutable) */ __webpack_exports__["a"] = valueProp; + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types__ = __webpack_require__(1); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_prop_types__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util__ = __webpack_require__(34); - exports.__esModule = true; - exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined; + var internalValProp = __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number]); + function genArrProps(propType) { + return __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.oneOfType([propType, __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.arrayOf(propType)]); + } + /** + * Origin code check `multiple` is true when `treeCheckStrictly` & `labelInValue`. + * But in process logic is already cover to array. + * Check array is not necessary. Let's simplify this check logic. + */ - var _all2 = __webpack_require__(705); + function valueProp() { + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } - var _all3 = _interopRequireDefault(_all2); + var props = args[0], + propName = args[1], + Component = args[2]; - var _componentOrElement2 = __webpack_require__(706); + if (Object(__WEBPACK_IMPORTED_MODULE_1__util__["o" /* isLabelInValue */])(props)) { + var _err = genArrProps(__WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.shape({ + label: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.node, + value: internalValProp + })).apply(void 0, args); - var _componentOrElement3 = _interopRequireDefault(_componentOrElement2); + if (_err) { + return new Error("Invalid prop `".concat(propName, "` supplied to `").concat(Component, "`. ") + "You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."); + } - var _deprecated2 = __webpack_require__(707); + return null; + } - var _deprecated3 = _interopRequireDefault(_deprecated2); + var err = genArrProps(internalValProp).apply(void 0, args); - var _elementType2 = __webpack_require__(709); + if (err) { + return new Error("Invalid prop `".concat(propName, "` supplied to `").concat(Component, "`. ") + "You should use string or [string] instead."); + } - var _elementType3 = _interopRequireDefault(_elementType2); + return null; + } - var _isRequiredForA11y2 = __webpack_require__(710); + /***/ }), + /* 525 */ + /***/ (function(module, __webpack_exports__, __webpack_require__) { - var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2); + "use strict"; + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_rc_tree__ = __webpack_require__(522); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__propTypes__ = __webpack_require__(524); + function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - var _splitComponent2 = __webpack_require__(711); + function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - var _splitComponent3 = _interopRequireDefault(_splitComponent2); + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - var _createChainedFunction2 = __webpack_require__(240); - var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2); - var _keyCode = __webpack_require__(712); - var _keyCode2 = _interopRequireDefault(_keyCode); + /** + * SelectNode wrapped the tree node. + * Let's use SelectNode instead of TreeNode + * since TreeNode is so confuse here. + */ - var _contains2 = __webpack_require__(713); + var SelectNode = function SelectNode(props) { + return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1_rc_tree__["a" /* TreeNode */], props); + }; - var _contains3 = _interopRequireDefault(_contains2); + SelectNode.propTypes = _objectSpread({}, __WEBPACK_IMPORTED_MODULE_1_rc_tree__["a" /* TreeNode */].propTypes, { + value: __WEBPACK_IMPORTED_MODULE_2__propTypes__["a" /* valueProp */] + }); // Let Tree trade as TreeNode to reuse this for performance saving. - var _addEventListener2 = __webpack_require__(241); + SelectNode.isTreeNode = 1; + /* harmony default export */ __webpack_exports__["a"] = (SelectNode); - var _addEventListener3 = _interopRequireDefault(_addEventListener2); + /***/ }), + /* 526 */ + /***/ (function(module, exports, __webpack_require__) { - var _cssAnimation2 = __webpack_require__(716); + var Button = __webpack_require__(527); + var Badge = __webpack_require__(530); + var Alert = __webpack_require__(534); + var ButtonGroup = __webpack_require__(539); + var Label = __webpack_require__(545); + var FormControl = __webpack_require__(549); + var FormGroup = __webpack_require__(576); + var Form = __webpack_require__(580); + var Layout = __webpack_require__(682); + var InputGroup = __webpack_require__(687); + var InputNumber = __webpack_require__(693); + var Checkbox = __webpack_require__(732); + var Pagination = __webpack_require__(736); + var ProgressBar = __webpack_require__(846); + var Radio = __webpack_require__(850); + var Switch = __webpack_require__(855); + var Tooltip = __webpack_require__(859); + var Dropdown = __webpack_require__(894); + var Panel = __webpack_require__(898); + var PanelGroup = __webpack_require__(931); + var SearchPanel = __webpack_require__(932); + var Transition = __webpack_require__(969); + var Navbar = __webpack_require__(987); + var Animate = __webpack_require__(1000); + var Select = __webpack_require__(1002); + var Tile = __webpack_require__(1004); + var Icon = __webpack_require__(1008); + var Menu = __webpack_require__(1010); + var Upload = __webpack_require__(1024); + var Breadcrumb = __webpack_require__(1121); + + var Message = __webpack_require__(1126); + var Notification = __webpack_require__(1128); + var Popconfirm = __webpack_require__(1137); + var Modal = __webpack_require__(1152); + var Tabs = __webpack_require__(1154); + var Cascader = __webpack_require__(1175); + var Loading = __webpack_require__(1206); + var Table = __webpack_require__(1212); + var Tree = __webpack_require__(1260); + var Clipboard = __webpack_require__(1267); + + var Rate = __webpack_require__(1314); + var Step = __webpack_require__(1324); + var Timeline = __webpack_require__(1330); + var Transfer = __webpack_require__(1334); + var BackTop = __webpack_require__(1367); + var Collapse = __webpack_require__(1371); + + var Slider = __webpack_require__(1390); + var AutoComplete = __webpack_require__(1424); + + var LoadingState = __webpack_require__(1430); + var Locale = __webpack_require__(1440); + var Popover = __webpack_require__(1444); + var Anchor = __webpack_require__(1483); + var ColorPicker = __webpack_require__(1488); + var Tag = __webpack_require__(1549); + var Affix = __webpack_require__(1553); + var Drawer = __webpack_require__(1558); + var TreeSelect = __webpack_require__(1570); + var PageLayout = __webpack_require__(1601); + var SvgIcon = __webpack_require__(1614); + // var Carousel = require('./lib/Carousel'); - var _cssAnimation3 = _interopRequireDefault(_cssAnimation2); + var TinperBee = { + version: '2.4.0', + Slider: Slider, + AutoComplete: AutoComplete, + // Carousel:Carousel, + Button: Button, + Badge: Badge, + Alert: Alert, + ButtonGroup: ButtonGroup, + Label: Label, + FormControl: FormControl, + FormGroup: FormGroup, + Form: Form, + InputGroup: InputGroup, + InputNumber: InputNumber, + Checkbox: Checkbox, + Pagination: Pagination, + ProgressBar: ProgressBar, + Radio: Radio, + Switch: Switch, + Tooltip: Tooltip, + Con: Layout.Con, + Row: Layout.Row, + Col: Layout.Col, + Dropdown: Dropdown, + Panel: Panel, + PanelGroup: PanelGroup, + Transition: Transition, + Select: Select, + Animate: Animate, + Icon: Icon, + Menu: Menu, + Breadcrumb: Breadcrumb, + Upload: Upload, + Tile: Tile, + Navbar: Navbar, + Message: Message, + Notification: Notification, + Popconfirm: Popconfirm, + Modal: Modal, + Tabs: Tabs, + Cascader: Cascader, + Loading: Loading, + Table: Table, + Tree: Tree, + Clipboard: Clipboard, + Rate: Rate, + Step: Step, + Timeline: Timeline, + Transfer: Transfer, + BackTop: BackTop, + Collapse: Collapse, + LoadingState: LoadingState, + Locale: Locale, + Popover: Popover, + Anchor: Anchor, + Tag: Tag, + ColorPicker: ColorPicker, + SearchPanel: SearchPanel, + Affix: Affix, + Drawer: Drawer, + TreeSelect: TreeSelect, + PageLayout: PageLayout, + SvgIcon: SvgIcon, + }; - var _toArray2 = __webpack_require__(718); + module.exports = TinperBee; - var _toArray3 = _interopRequireDefault(_toArray2); - var _Align2 = __webpack_require__(719); + /***/ }), + /* 527 */ + /***/ (function(module, exports, __webpack_require__) { - var _Align3 = _interopRequireDefault(_Align2); + __webpack_require__(528); + module.exports = __webpack_require__(205); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - exports.all = _all3.default; - exports.componentOrElement = _componentOrElement3.default; - exports.deprecated = _deprecated3.default; - exports.elementType = _elementType3.default; - exports.isRequiredForA11y = _isRequiredForA11y3.default; - exports.splitComponent = _splitComponent3.default; - exports.createChainedFunction = _createChainedFunction3.default; - exports.KeyCode = _keyCode2.default; - exports.contains = _contains3.default; - exports.addEventListener = _addEventListener3.default; - exports.cssAnimation = _cssAnimation3.default; - exports.toArray = _toArray3.default; - //export getContainerRenderMixin from './getContainerRenderMixin'; + /***/ }), + /* 528 */ + /***/ (function(module, exports) { - exports.Align = _Align3.default; + // removed by extract-text-webpack-plugin /***/ }), - /* 705 */ + /* 529 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; - exports.__esModule = true; - exports.default = all; + Object.defineProperty(exports, "__esModule", { + value: true + }); + + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _createChainableTypeChecker = __webpack_require__(136); + var _react = __webpack_require__(0); - var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker); + var _react2 = _interopRequireDefault(_react); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + var _reactDom = __webpack_require__(3); - function all() { - for (var _len = arguments.length, validators = Array(_len), _key = 0; _key < _len; _key++) { - validators[_key] = arguments[_key]; - } + var _reactDom2 = _interopRequireDefault(_reactDom); - function allPropTypes() { - for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - args[_key2] = arguments[_key2]; + var _propTypes = __webpack_require__(1); + + var _propTypes2 = _interopRequireDefault(_propTypes); + + var _classnames = __webpack_require__(2); + + var _classnames2 = _interopRequireDefault(_classnames); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + + var propTypes = { + /** + * @title 尺寸 + */ + size: _propTypes2["default"].oneOf(['sm', 'md', 'xg', 'lg']), + /** + * @title 样式 + */ + style: _propTypes2["default"].object, + /** + * @title 形状 + */ + shape: _propTypes2["default"].oneOf(['block', 'round', 'border', 'squared', 'floating', 'pillRight', 'pillLeft', 'icon']), + + bordered: _propTypes2["default"].bool, + /** + * @title 类型 + */ + colors: _propTypes2["default"].oneOf(['primary', 'secondary', 'accent', 'success', 'info', 'warning', 'danger', 'dark', 'light', 'default']), + /** + * @title 是否禁用 + * @veIgnore + */ + disabled: _propTypes2["default"].bool, + /** + * @title 类名 + * @veIgnore + */ + className: _propTypes2["default"].string, + + /** + * @title
  • 对象 - * @memberof TableHeader - */ + var _react = __webpack_require__(0); + var _react2 = _interopRequireDefault(_react); - TableHeader.prototype.getThDome = function getThDome(element) { - var _tagName = element.tagName.toLowerCase(); - if (element.getAttribute('data-filter-type') === 'filterContext') return null; - if (_tagName === 'i') return null; - if (_tagName != 'th') { - return this.getThDome(element.parentElement); - } else { - return element; - } - }; + var _propTypes = __webpack_require__(1); - //---拖拽列交换----end----- + var _propTypes2 = _interopRequireDefault(_propTypes); - /** - * 过滤输入后或下拉条件的回调函数 - */ + var _arrayTreeFilter = __webpack_require__(318); + var _arrayTreeFilter2 = _interopRequireDefault(_arrayTreeFilter); - /** - * 过滤行清除回调 - */ + var _reactDom = __webpack_require__(3); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - /** - * 过滤渲染的组件类型 - */ + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - TableHeader.prototype.render = function render() { - var _this7 = this; + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - var _props2 = this.props, - clsPrefix = _props2.clsPrefix, - rowStyle = _props2.rowStyle, - draggable = _props2.draggable, - dragborder = _props2.dragborder, - rows = _props2.rows, - filterable = _props2.filterable, - fixed = _props2.fixed, - lastShowIndex = _props2.lastShowIndex, - columnsChildrenList = _props2.columnsChildrenList; + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** + * This source code is quoted from rc-cascader. + * homepage: https://github.com/react-component/cascader + */ - var attr = dragborder ? { id: "u-table-drag-thead-" + this.theadKey } : {}; - var lastObj = columnsChildrenList[columnsChildrenList.length - 1]; - return _react2["default"].createElement( - "thead", - _extends({ className: clsPrefix + "-thead" }, attr, { "data-theader-fixed": "scroll", ref: function ref(_thead) { - return _this7._thead = _thead; - } }), - rows.map(function (row, index) { - var _rowLeng = row.length - 1; - return _react2["default"].createElement( - "tr", - { key: index, style: rowStyle, className: filterable && index == rows.length - 1 ? 'filterable' : '' }, - row.map(function (da, columIndex, arr) { - da.children = da.required ? _react2["default"].createElement( - "span", - null, - _react2["default"].createElement( - "span", - { className: "required" }, - "*" - ), - da.children - ) : da.children; - var thHover = da.drgHover ? " " + clsPrefix + "-thead th-drag-hover" : ""; - delete da.drgHover; - var fixedStyle = ""; - var canDotDrag = ""; - //主表格下、固定列或者是过滤行中含有固定列时添加该属性 - if (!fixed && (da.fixed || filterable && index == rows.length - 1 && rows[0][columIndex].fixed)) { - fixedStyle = " " + clsPrefix + "-row-fixed-columns-in-body"; - } - if (lastShowIndex == columIndex) { - canDotDrag = "th-can-not-drag"; - } - var thClassName = "" + da.className ? "" + da.className : ''; - if (da.titleAlign) { - thClassName += " text-" + da.titleAlign + " "; - } else if (da.textAlign) { - thClassName += " text-" + da.textAlign + " "; - } + var Menus = function (_React$Component) { + _inherits(Menus, _React$Component); - delete da.textAlign; - delete da.titleAlign; - var keyTemp = {}; - //避免key为undefined - // if(da.dataindex && da.key ===undefined ){ - keyTemp.key = da.key || da.dataindex || index + '-' + columIndex; + function Menus(props) { + _classCallCheck(this, Menus); - // } - if (filterable && index == rows.length - 1) { - da.children = _this7.filterRenderType(da["filtertype"], da.dataindex, columIndex); - if (da.key === undefined) { - keyTemp.key = keyTemp.key + '-filterable'; - } - delete da.filterdropdownfocus; - } + var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); - var thDefaultObj = {}; + _this.saveMenuItem = function (index) { + return function (node) { + _this.menuItems[index] = node; + }; + }; - if (draggable) { - thClassName += " " + clsPrefix + "-thead th-drag " + thHover + " "; - } - if (dragborder) { - thClassName += " " + clsPrefix + "-thead-th " + canDotDrag; - } - thClassName += " " + fixedStyle; - if (!da.fixed) { - return _react2["default"].createElement( - "th", - _extends({}, da, keyTemp, { className: thClassName, "data-th-fixed": da.fixed, "data-line-key": da.key, - "data-line-index": columIndex, "data-th-width": da.width, "data-type": "draggable" }), - da.children, + _this.menuItems = {}; + return _this; + } - // && columIndex != _rowLeng - dragborder && lastObj && da.key != lastObj.key ? _react2["default"].createElement( - "div", - { ref: function ref(el) { - return _this7.gap = el; - }, "data-line-key": da.key, - "data-line-index": columIndex, "data-th-width": da.width, - "data-type": "online", className: clsPrefix + "-thead-th-drag-gap" }, - _react2["default"].createElement("div", { className: "online" }) - ) : "" - ); - } else { - thDefaultObj = _extends({}, da, { - className: thClassName + " " + fixedStyle - }); - da.onClick ? thDefaultObj.onClick = function (e) { - da.onClick(da, e); - } : ""; - return _react2["default"].createElement("th", _extends({}, thDefaultObj, keyTemp, { "data-th-fixed": da.fixed, style: { maxWidth: da.width } })); - } - }) - ); - }) - ); + Menus.prototype.componentDidMount = function componentDidMount() { + this.scrollActiveItemToView(); }; - return TableHeader; - }(_react.Component); - - TableHeader.defaultProps = { - contentWidthDiff: 0 - }; + Menus.prototype.componentDidUpdate = function componentDidUpdate(prevProps) { + if (!prevProps.visible && this.props.visible) { + this.scrollActiveItemToView(); + } + }; - var _initialiseProps = function _initialiseProps() { - var _this8 = this; + Menus.prototype.getFieldName = function getFieldName(name) { + var _props = this.props, + fieldNames = _props.fieldNames, + defaultFieldNames = _props.defaultFieldNames; + // 防止只设置单个属性的名字 - this.getOnLineObject = function (_element) { - var type = _element.getAttribute('data-type'), - elementObj = null; - if (!type) { - var element = _element.parentElement || parentNode; //兼容写法。 - if (element.getAttribute('data-type')) { - elementObj = element; - } - } else { - elementObj = _element; - } - return elementObj; + return fieldNames[name] || defaultFieldNames[name]; }; - this.onTrMouseDown = function (e) { - _utils.Event.stopPropagation(e); - var event = _utils.Event.getEvent(e), - targetEvent = _utils.Event.getTarget(event); - var _props3 = _this8.props, - clsPrefix = _props3.clsPrefix, - contentTable = _props3.contentTable, - lastShowIndex = _props3.lastShowIndex, - columnsChildrenList = _props3.columnsChildrenList; - // let currentElement = this.getOnLineObject(targetEvent); + Menus.prototype.getOption = function getOption(option, menuIndex) { + var _props2 = this.props, + prefixCls = _props2.prefixCls, + expandTrigger = _props2.expandTrigger, + expandIcon = _props2.expandIcon, + loadingIcon = _props2.loadingIcon; - var currentElement = _this8.getTargetToType(targetEvent); - if (!currentElement) return; - var type = currentElement.getAttribute('data-type'); - if (!_this8.props.dragborder && !_this8.props.draggable) return; - if (type == 'online' && _this8.props.dragborder) { - // if(!this.props.dragborder)return; - targetEvent.setAttribute('draggable', false); //添加交换列效果 - var currentIndex = -1; - var defaultWidth = currentElement.getAttribute("data-th-width"); - _this8.drag.option = "border"; //拖拽操作 - if (columnsChildrenList) { - var columnKey = currentElement.getAttribute("data-line-key"); - if (columnKey) { - currentIndex = columnsChildrenList.findIndex(function (da) { - return (da.key && da.key.toLowerCase()) === columnKey.toLowerCase(); - }); - } - } - if (currentIndex < 0) { - console.log('Key must be set for column!'); - return; - } - var currentObj = _this8.table.cols[currentIndex]; - _this8.drag.currIndex = currentIndex; - _this8.drag.oldLeft = event.x; - _this8.drag.oldWidth = parseInt(currentObj.style.width); - _this8.drag.minWidth = currentObj.style.minWidth != "" ? parseInt(currentObj.style.minWidth) : defaultWidth; - _this8.drag.tableWidth = parseInt(_this8.table.table.style.width ? _this8.table.table.style.width : _this8.table.table.scrollWidth); - if (!_this8.tableOldWidth) { - _this8.tableOldWidth = _this8.drag.tableWidth; //this.getTableWidth(); - } - if (!_this8.lastColumWidth) { - _this8.lastColumWidth = parseInt(_this8.table.cols[lastShowIndex].style.width); + var onSelect = this.props.onSelect.bind(this, option, menuIndex); + var onItemDoubleClick = this.props.onItemDoubleClick.bind(this, option, menuIndex); + var expandProps = { + onClick: onSelect, + onDoubleClick: onItemDoubleClick + }; + var menuItemCls = prefixCls + '-menu-item'; + var expandIconNode = null; + var hasChildren = option[this.getFieldName('children')] && option[this.getFieldName('children')].length > 0; + if (hasChildren || option.isLeaf === false) { + menuItemCls += ' ' + prefixCls + '-menu-item-expand'; + if (!option.loading) { + expandIconNode = _react2["default"].createElement( + 'span', + { className: prefixCls + '-menu-item-expand-icon' }, + expandIcon + ); } - } else if (type != 'online' && _this8.props.draggable) { - // if (!this.props.draggable || targetEvent.nodeName.toUpperCase() != "TH") return; - if (!_this8.props.draggable) return; - var th = _this8.getTargetToType(targetEvent); - th.setAttribute('draggable', true); //添加交换列效果 - _this8.drag.option = 'dragAble'; - _this8.currentDome = th; - var _currentIndex = parseInt(th.getAttribute("data-line-index")); - _this8.drag.currIndex = _currentIndex; - } else { - // console.log("onTrMouseDown dragborder or draggable is all false !"); - return; } - }; - - this.getTableWidth = function () { - var tableWidth = 0, - offWidth = 0; //this.table.cols.length; - for (var index = 0; index < _this8.table.cols.length; index++) { - var da = _this8.table.cols[index]; - tableWidth += parseInt(da.style.width); + if (expandTrigger === 'hover' && hasChildren) { + expandProps = { + onMouseEnter: this.delayOnSelect.bind(this, onSelect), + onMouseLeave: this.delayOnSelect.bind(this), + onClick: onSelect + }; } - return tableWidth - offWidth; - }; - - this.getTargetToType = function (targetEvent) { - var tag = targetEvent; - if (targetEvent && !targetEvent.getAttribute("data-type")) { - tag = _this8.getTargetToType(targetEvent.parentElement); + if (this.isActiveOption(option, menuIndex)) { + menuItemCls += ' ' + prefixCls + '-menu-item-active'; + expandProps.ref = this.saveMenuItem(menuIndex); } - return tag; - }; - - this.getTargetToTh = function (targetEvent) { - var th = targetEvent; - if (targetEvent.nodeName.toUpperCase() != "TH") { - th = _this8.getThDome(targetEvent); + if (option.disabled) { + menuItemCls += ' ' + prefixCls + '-menu-item-disabled'; } - // console.log(" getTargetToTh: ", th); - return th; - }; - - this.onTrMouseMove = function (e) { - if (!_this8.props.dragborder && !_this8.props.draggable) return; - var _props4 = _this8.props, - clsPrefix = _props4.clsPrefix, - dragborder = _props4.dragborder, - contentDomWidth = _props4.contentDomWidth, - scrollbarWidth = _props4.scrollbarWidth, - contentTable = _props4.contentTable, - headerScroll = _props4.headerScroll, - lastShowIndex = _props4.lastShowIndex, - onDraggingBorder = _props4.onDraggingBorder, - leftFixedWidth = _props4.leftFixedWidth, - rightFixedWidth = _props4.rightFixedWidth; - - _utils.Event.stopPropagation(e); - var event = _utils.Event.getEvent(e); - if (_this8.props.dragborder && _this8.drag.option == "border") { - //移动改变宽度 - var currentCols = _this8.table.cols[_this8.drag.currIndex]; - var diff = event.x - _this8.drag.oldLeft; - var newWidth = _this8.drag.oldWidth + diff; - _this8.drag.newWidth = newWidth > 0 ? newWidth : _this8.minWidth; - if (newWidth > _this8.minWidth) { - currentCols.style.width = newWidth + 'px'; - //hao 支持固定表头拖拽 修改表体的width - if (_this8.fixedTable.cols) { - _this8.fixedTable.cols[_this8.drag.currIndex].style.width = newWidth + "px"; - } - var newDiff = parseInt(currentCols.style.minWidth) - parseInt(currentCols.style.width); - if (newDiff > 0) { - //缩小 - var lastWidth = _this8.lastColumWidth + newDiff; - _this8.table.cols[lastShowIndex].style.width = lastWidth + "px"; //同步表头 - _this8.table.tableBodyCols[lastShowIndex].style.width = lastWidth + "px"; //同步表体 - } - var showScroll = contentDomWidth - (leftFixedWidth + rightFixedWidth) - (_this8.drag.tableWidth + diff) - scrollbarWidth; - //表头滚动条处理 - if (headerScroll) { - if (showScroll < 0) { - //小于 0 出现滚动条 - //找到固定列表格,设置表头的marginBottom值为scrollbarWidth; - _this8.table.contentTableHeader.style.overflowX = 'scroll'; - _this8.optTableMargin(_this8.table.fixedLeftHeaderTable, scrollbarWidth); - _this8.optTableMargin(_this8.table.fixedRighHeadertTable, scrollbarWidth); - } else { - //大于 0 不显示滚动条 - _this8.table.contentTableHeader.style.overflowX = 'hidden'; - _this8.optTableMargin(_this8.table.fixedLeftHeaderTable, 0); - _this8.optTableMargin(_this8.table.fixedRighHeadertTable, 0); - } - } else { - if (showScroll < 0) { - _this8.table.tableBody.style.overflowX = 'auto'; - _this8.optTableMargin(_this8.table.fixedLeftBodyTable, '-' + scrollbarWidth); - _this8.optTableMargin(_this8.table.fixedRightBodyTable, '-' + scrollbarWidth); - _this8.optTableScroll(_this8.table.fixedLeftBodyTable, { x: 'scroll' }); - _this8.optTableScroll(_this8.table.fixedRightBodyTable, { x: 'scroll' }); - } else { - _this8.table.tableBody.style.overflowX = 'hidden'; - _this8.optTableMargin(_this8.table.fixedLeftBodyTable, 0); - _this8.optTableMargin(_this8.table.fixedRightBodyTable, 0); - _this8.optTableScroll(_this8.table.fixedLeftBodyTable, { x: 'auto' }); - _this8.optTableScroll(_this8.table.fixedRightBodyTable, { x: 'auto' }); - } - } - } else { - _this8.drag.newWidth = _this8.minWidth; - } + var loadingIconNode = null; + if (option.loading) { + menuItemCls += ' ' + prefixCls + '-menu-item-loading'; + loadingIconNode = loadingIcon || null; + } + var title = ''; + if (option.title) { + title = option.title; + } else if (typeof option[this.getFieldName('label')] === 'string') { + title = option[this.getFieldName('label')]; } - // 增加拖拽列宽动作的回调函数 - _this8.drag.newWidth && onDraggingBorder && onDraggingBorder(event, _this8.drag.newWidth); - }; - this.onTrMouseUp = function (e) { - var event = _utils.Event.getEvent(e); - var width = _this8.drag.newWidth; - var opt = _this8.drag.option; - _this8.mouseClear(); - if (opt !== "border") return; // fix:点击表头会触发onDropBorder事件的问题 - _this8.props.onDropBorder && _this8.props.onDropBorder(event, width); + return _react2["default"].createElement( + 'li', + _extends({ + key: option[this.getFieldName('value')], + className: menuItemCls, + title: title + }, expandProps), + option[this.getFieldName('label')], + expandIconNode, + loadingIconNode + ); }; - this.clearThsDr = function () { - var ths = _this8.table.ths; - for (var index = 0; index < ths.length; index++) { - ths[index].setAttribute('draggable', false); //去掉交换列效果 - } - }; + Menus.prototype.getActiveOptions = function getActiveOptions(values) { + var _this2 = this; - this.bodyonLineMouseUp = function (events, type) { - if (!_this8.drag || !_this8.drag.option) return; - _this8.mouseClear(); + var activeValue = values || this.props.activeValue; + var options = this.props.options; + return (0, _arrayTreeFilter2["default"])(options, function (o, level) { + return o[_this2.getFieldName('value')] === activeValue[level]; + }, { childrenKeyName: this.getFieldName('children') }); }; - this.optTableMargin = function (table, scrollbarWidth) { - if (table) { - table.style.marginBottom = scrollbarWidth + "px"; - } - }; + Menus.prototype.getShowOptions = function getShowOptions() { + var _this3 = this; - this.optTableScroll = function (table) { - var overflow = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var options = this.props.options; - if (table) { - var innerTable = table.querySelector('.u-table-body-inner'); - if (innerTable) { - //fixbug: 拖拽列宽后,滚动条滚到表格底部,会导致固定列和非固定列错行 - overflow.x && (innerTable.style.overflowX = overflow.x); - overflow.y && (innerTable.style.overflowY = overflow.y); - } - } + var result = this.getActiveOptions().map(function (activeOption) { + return activeOption[_this3.getFieldName('children')]; + }).filter(function (activeOption) { + return !!activeOption; + }); + result.unshift(options); + return result; }; - this.onDragStart = function (e) { - if (!_this8.props.draggable) return; - if (_this8.drag && _this8.drag.option != 'dragAble') { - return; - } - var event = _utils.Event.getEvent(e), - - // target = Event.getTarget(event); - target = _this8.getTargetToTh(_utils.Event.getTarget(event)); - var currentIndex = parseInt(target.getAttribute("data-line-index")); - var currentKey = target.getAttribute('data-line-key'); + Menus.prototype.delayOnSelect = function delayOnSelect(onSelect) { + var _this4 = this; - if (event.dataTransfer.setDragImage) { - var crt = target.cloneNode(true); - crt.style.backgroundColor = "#ebecf0"; - crt.style.width = _this8.table.cols[currentIndex].style.width; //拖动后再交换列的时候,阴影效果可同步 - crt.style.height = "40px"; - // crt.style['line-height'] = "40px"; - // document.body.appendChild(crt); - document.getElementById(_this8._table_none_cont_id).appendChild(crt); - event.dataTransfer.setDragImage(crt, 0, 0); + for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; } - event.dataTransfer.effectAllowed = "move"; - event.dataTransfer.setData("Text", currentKey); - _this8.currentObj = _this8.props.rows[0][currentIndex]; - }; - - this.onDragOver = function (e) { - var event = _utils.Event.getEvent(e); - event.preventDefault(); - }; - - this.onDrop = function (e) { - if (!_this8.props.draggable) return; - var props = _this8.getCurrentEventData(_this8._dragCurrent); - e.column = { props: props }; - if (_this8.drag && _this8.drag.option != 'dragAble') { - _this8.props.onDrop(e); - return; + if (this.delayTimer) { + clearTimeout(this.delayTimer); + this.delayTimer = null; + } + if (typeof onSelect === 'function') { + this.delayTimer = setTimeout(function () { + onSelect(args); + _this4.delayTimer = null; + }, 150); } - var event = _utils.Event.getEvent(e), - target = _utils.Event.getTarget(event); - _this8.currentDome.setAttribute('draggable', false); //添加交换列效果 - // let data = this.getCurrentEventData(this._dragCurrent); - // if(!data){ - // this.props.onDrop(e); - // return; - // } - if (!_this8.props.onDrop) return; - // this.props.onDrop(event,target); - _this8.props.onDrop(event, { dragSource: _this8.currentObj, dragTarg: e.column }); }; - this.onDragEnter = function (e) { - var event = _utils.Event.getEvent(e), - target = _utils.Event.getTarget(event); - _this8._dragCurrent = target; - var currentIndex = target.getAttribute("data-line-index"); - if (!currentIndex || parseInt(currentIndex) === _this8.drag.currIndex) return; - if (target.nodeName.toUpperCase() === "TH") { - // target.style.border = "2px dashed rgba(5,0,0,0.25)"; - target.setAttribute("style", "border-right:2px dashed rgb(30, 136, 229)"); - // target.style.backgroundColor = 'rgb(235, 236, 240)'; + Menus.prototype.scrollActiveItemToView = function scrollActiveItemToView() { + // scroll into view + var optionsLength = this.getShowOptions().length; + for (var i = 0; i < optionsLength; i++) { + var itemComponent = this.menuItems[i]; + if (itemComponent) { + var target = (0, _reactDom.findDOMNode)(itemComponent); + target.parentNode.scrollTop = target.offsetTop; + } } }; - this.onDragEnd = function (e) { - var event = _utils.Event.getEvent(e), - target = _utils.Event.getTarget(event); - _this8._dragCurrent.setAttribute("style", ""); - // this._dragCurrent.style = ""; - document.getElementById(_this8._table_none_cont_id).innerHTML = ""; + Menus.prototype.isActiveOption = function isActiveOption(option, menuIndex) { + var _props$activeValue = this.props.activeValue, + activeValue = _props$activeValue === undefined ? [] : _props$activeValue; - var data = _this8.getCurrentEventData(_this8._dragCurrent); - if (!data) return; - if (!_this8.currentObj || _this8.currentObj.key == data.key) return; - if (!_this8.props.onDragEnd) return; - _this8.props.onDragEnd(event, { dragSource: _this8.currentObj, dragTarg: data }); + return activeValue[menuIndex] === option[this.getFieldName('value')]; }; - this.onDragLeave = function (e) { - var event = _utils.Event.getEvent(e), - target = _utils.Event.getTarget(event); - var currentIndex = target.getAttribute("data-line-index"); - if (!currentIndex || parseInt(currentIndex) === _this8.drag.currIndex) return; - if (target.nodeName.toUpperCase() === "TH") { - target.setAttribute("style", ""); - // this._dragCurrent.style = ""; - } - }; + Menus.prototype.render = function render() { + var _this5 = this; - this.handlerFilterChange = function (key, value, condition) { - var onFilterChange = _this8.props.onFilterChange; + var _props3 = this.props, + prefixCls = _props3.prefixCls, + dropdownMenuColumnStyle = _props3.dropdownMenuColumnStyle; - if (onFilterChange) { - onFilterChange(key, value, condition); - } + return _react2["default"].createElement( + 'div', + null, + this.getShowOptions().map(function (options, menuIndex) { + return _react2["default"].createElement( + 'ul', + { className: prefixCls + '-menu', key: menuIndex, style: dropdownMenuColumnStyle }, + options.map(function (option) { + return _this5.getOption(option, menuIndex); + }) + ); + }) + ); }; - this.handlerFilterClear = function (field) { - var onFilterClear = _this8.props.onFilterClear; + return Menus; + }(_react2["default"].Component); - if (onFilterClear) { - onFilterClear(field); - } - }; + Menus.defaultProps = { + options: [], + value: [], + activeValue: [], + onSelect: function onSelect() {}, - this.filterRenderType = function (type, dataIndex, index) { - var _props5 = _this8.props, - clsPrefix = _props5.clsPrefix, - rows = _props5.rows, - filterDelay = _props5.filterDelay, - locale = _props5.locale; + prefixCls: 'rc-cascader-menus', + visible: false, + expandTrigger: 'click' + }; - switch (type) { - //文本输入 - case "text": - return _react2["default"].createElement(_FilterType2["default"], { - locale: locale //多语 - , rendertype: type //渲染类型 - , clsPrefix: clsPrefix //css前缀 - , className: clsPrefix + " filter-text", - dataIndex: dataIndex //字段 - , onFilterChange: _this8.handlerFilterChange //输入框回调 - , onFilterClear: _this8.handlerFilterClear //清除回调 - , filterDropdown: rows[1][index]["filterdropdown"] //是否显示下拉条件 - , filterDropdownType: rows[1][index]["filterdropdowntype"] //下拉的条件类型为string,number - , filterDropdownIncludeKeys: rows[1][index]["filterdropdownincludekeys"] //下拉条件按照指定的keys去显示 - }); - //数值输入 - case "number": - return _react2["default"].createElement(_FilterType2["default"], { - locale: locale, - rendertype: type, - clsPrefix: clsPrefix, - className: clsPrefix + " filter-text", - dataIndex: dataIndex //字段 - , onFilterChange: (0, _throttleDebounce.debounce)(filterDelay || 300, _this8.handlerFilterChange) //输入框回调并且函数防抖动 - , onFilterClear: _this8.handlerFilterClear //清除回调 - , filterDropdown: rows[1][index]["filterdropdown"], - filterDropdownType: rows[1][index]["filterdropdowntype"] //下拉的条件类型为string,number - , filterDropdownIncludeKeys: rows[1][index]["filterdropdownincludekeys"] //下拉条件按照指定的keys去显示 - , filterInputNumberOptions: rows[1][index]["filterinputnumberoptions"] //设置数值框内的详细属性 - }); - //下拉框选择 - case "dropdown": - var selectDataSource = []; - //处理没有输入数据源的时候,系统自动查找自带的数据筛选后注入 - if (rows.length > 0 && (rows[1][index]["filterdropdownauto"] || "auto") == "auto") { - var hash = {}; - //处理下拉重复对象组装dropdown - selectDataSource = Array.from(rows[1][0].datasource, function (x) { - return { - key: x[dataIndex], - value: x[dataIndex] - }; - }); - selectDataSource = selectDataSource.reduceRight(function (item, next) { - hash[next.key] ? "" : hash[next.key] = true && item.push(next); - return item; - }, []); - } else { - //从外部数据源加载系统数据 - selectDataSource = rows[1][index]["filterdropdowndata"]; - } - return _react2["default"].createElement(_FilterType2["default"], { - locale: locale, - rendertype: type, - className: clsPrefix + " filter-dropdown", - data: selectDataSource, - notFoundContent: "Loading" //没有数据显示的默认字 - , dataIndex: dataIndex //字段 - , onFilterChange: _this8.handlerFilterChange //输入框回调 - , onFilterClear: _this8.handlerFilterClear //清除回调 - , filterDropdown: rows[1][index]["filterdropdown"], - onFocus: rows[1][index]["filterdropdownfocus"], - filterDropdownType: rows[1][index]["filterdropdowntype"] //下拉的条件类型为string,number - , filterDropdownIncludeKeys: rows[1][index]["filterdropdownincludekeys"] //下拉条件按照指定的keys去显示 - }); - //日期 - case "date": - return _react2["default"].createElement(_FilterType2["default"], { - locale: locale, - rendertype: type, - className: "filter-date", - onClick: function onClick() {}, - format: rows[1][index]["format"] || "YYYY-MM-DD", - dataIndex: dataIndex //字段 - , onFilterChange: _this8.handlerFilterChange //输入框回调 - , onFilterClear: _this8.handlerFilterClear //清除回调 - , filterDropdown: rows[1][index]["filterdropdown"], - filterDropdownType: rows[1][index]["filterdropdowntype"] //下拉的条件类型为string,number - , filterDropdownIncludeKeys: rows[1][index]["filterdropdownincludekeys"] //下拉条件按照指定的keys去显示 - }); - //日期 年 - case "dateyear": - return _react2["default"].createElement(_FilterType2["default"], { - locale: locale, - rendertype: type, - className: "filter-date", - onClick: function onClick() {}, - format: rows[1][index]["format"] || "YYYY", - dataIndex: dataIndex //字段 - , onFilterChange: _this8.handlerFilterChange //输入框回调 - , onFilterClear: _this8.handlerFilterClear //清除回调 - , filterDropdown: rows[1][index]["filterdropdown"], - filterDropdownType: rows[1][index]["filterdropdowntype"] //下拉的条件类型为string,number - , filterDropdownIncludeKeys: rows[1][index]["filterdropdownincludekeys"] //下拉条件按照指定的keys去显示 - }); - //日期 月 - case "datemonth": - return _react2["default"].createElement(_FilterType2["default"], { - locale: locale, - rendertype: type, - className: "filter-date", - onClick: function onClick() {}, - format: rows[1][index]["format"] || "YYYY-MM", - dataIndex: dataIndex //字段 - , onFilterChange: _this8.handlerFilterChange //输入框回调 - , onFilterClear: _this8.handlerFilterClear //清除回调 - , filterDropdown: rows[1][index]["filterdropdown"], - filterDropdownType: rows[1][index]["filterdropdowntype"] //下拉的条件类型为string,number - , filterDropdownIncludeKeys: rows[1][index]["filterdropdownincludekeys"] //下拉条件按照指定的keys去显示 - }); - //日期 周 - case "dateweek": - return _react2["default"].createElement(_FilterType2["default"], { - locale: locale, - rendertype: type, - className: "filter-date", - onClick: function onClick() {}, - format: rows[1][index]["format"] || "YYYY-Wo", - dataIndex: dataIndex //字段 - , onFilterChange: _this8.handlerFilterChange //输入框回调 - , onFilterClear: _this8.handlerFilterClear //清除回调 - , filterDropdown: rows[1][index]["filterdropdown"], - filterDropdownType: rows[1][index]["filterdropdowntype"] //下拉的条件类型为string,number - , filterDropdownIncludeKeys: rows[1][index]["filterdropdownincludekeys"] //下拉条件按照指定的keys去显示 - }); - //日期范围 - case "daterange": - return _react2["default"].createElement(_FilterType2["default"], { - locale: locale, - rendertype: type, - className: "filter-date", - onClick: function onClick() {}, - format: rows[1][index]["format"] || "YYYY-MM-DD", - dataIndex: dataIndex //字段 - , onFilterChange: _this8.handlerFilterChange //输入框回调 - , onFilterClear: _this8.handlerFilterClear //清除回调 - , filterDropdown: rows[1][index]["filterdropdown"], - filterDropdownType: rows[1][index]["filterdropdowntype"] //下拉的条件类型为string,number - , filterDropdownIncludeKeys: rows[1][index]["filterdropdownincludekeys"] //下拉条件按照指定的keys去显示 - }); - default: - //不匹配类型默认文本输入 - return _react2["default"].createElement("div", null); - } - }; + Menus.propTypes = { + value: _propTypes2["default"].array, + activeValue: _propTypes2["default"].array, + options: _propTypes2["default"].array, + prefixCls: _propTypes2["default"].string, + expandTrigger: _propTypes2["default"].string, + onSelect: _propTypes2["default"].func, + visible: _propTypes2["default"].bool, + dropdownMenuColumnStyle: _propTypes2["default"].object, + defaultFieldNames: _propTypes2["default"].object, + fieldNames: _propTypes2["default"].object, + expandIcon: _propTypes2["default"].node, + loadingIcon: _propTypes2["default"].node, + onItemDoubleClick: _propTypes2["default"].func }; - TableHeader.propTypes = propTypes; - exports["default"] = TableHeader; - module.exports = exports["default"]; + exports["default"] = Menus; + module.exports = exports['default']; /***/ }), - /* 1266 */ - /***/ (function(module, __webpack_exports__, __webpack_require__) { + /* 1198 */ + /***/ (function(module, exports, __webpack_require__) { "use strict"; - Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); - /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "throttle", function() { return throttle; }); - /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "debounce", function() { return debounce; }); - /* eslint-disable no-undefined,no-param-reassign,no-shadow */ - /** - * Throttle execution of a function. Especially useful for rate limiting - * execution of handlers on events like resize and scroll. - * - * @param {Number} delay A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful. - * @param {Boolean} [noTrailing] Optional, defaults to false. If noTrailing is true, callback will only execute every `delay` milliseconds while the - * throttled-function is being called. If noTrailing is false or unspecified, callback will be executed one final time - * after the last throttled-function call. (After the throttled-function has not been called for `delay` milliseconds, - * the internal counter is reset) - * @param {Function} callback A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is, - * to `callback` when the throttled-function is executed. - * @param {Boolean} [debounceMode] If `debounceMode` is true (at begin), schedule `clear` to execute after `delay` ms. If `debounceMode` is false (at end), - * schedule `callback` to execute after `delay` ms. - * - * @return {Function} A new, throttled, function. - */ - function throttle (delay, noTrailing, callback, debounceMode) { - /* - * After wrapper has stopped being called, this timeout ensures that - * `callback` is executed at the proper times in `throttle` and `end` - * debounce modes. - */ - var timeoutID; - var cancelled = false; // Keep track of the last time `callback` was executed. - var lastExec = 0; // Function to clear existing timeout + Object.defineProperty(exports, "__esModule", { + value: true + }); - function clearExistingTimeout() { - if (timeoutID) { - clearTimeout(timeoutID); - } - } // Function to cancel next exec + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + var _react = __webpack_require__(0); - function cancel() { - clearExistingTimeout(); - cancelled = true; - } // `noTrailing` defaults to falsy. + var _react2 = _interopRequireDefault(_react); + var _classnames = __webpack_require__(2); - if (typeof noTrailing !== 'boolean') { - debounceMode = callback; - callback = noTrailing; - noTrailing = undefined; - } - /* - * The `wrapper` function encapsulates all of the throttling / debouncing - * functionality and when executed will limit the rate at which `callback` - * is executed. - */ + var _classnames2 = _interopRequireDefault(_classnames); + var _propTypes = __webpack_require__(1); - function wrapper() { - var self = this; - var elapsed = Date.now() - lastExec; - var args = arguments; + var _propTypes2 = _interopRequireDefault(_propTypes); - if (cancelled) { - return; - } // Execute `callback` and update the `lastExec` timestamp. + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - function exec() { - lastExec = Date.now(); - callback.apply(self, args); - } - /* - * If `debounceMode` is true (at begin) this is used to clear the flag - * to allow future `callback` executions. - */ + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - function clear() { - timeoutID = undefined; - } + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - if (debounceMode && !timeoutID) { - /* - * Since `wrapper` is being called for the first time and - * `debounceMode` is true (at begin), execute `callback`. - */ - exec(); - } + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - clearExistingTimeout(); + var propTypes = { + type: _propTypes2["default"].string - if (debounceMode === undefined && elapsed > delay) { - /* - * In throttle mode, if `delay` time has been exceeded, execute - * `callback`. - */ - exec(); - } else if (noTrailing !== true) { - /* - * In trailing throttle mode, since `delay` time has not been - * exceeded, schedule `callback` to execute `delay` ms after most - * recent execution. - * - * If `debounceMode` is true (at begin), schedule `clear` to execute - * after `delay` ms. - * - * If `debounceMode` is false (at end), schedule `callback` to - * execute after `delay` ms. - */ - timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay); - } - } + }; + /** + * badge 默认显示内容1 + */ + var defaultProps = { + clsPrefix: 'uf' + }; - wrapper.cancel = cancel; // Return the wrapper function. + var Icon = function (_Component) { + _inherits(Icon, _Component); - return wrapper; - } + function Icon(props) { + _classCallCheck(this, Icon); - /* eslint-disable no-undefined */ - /** - * Debounce execution of a function. Debouncing, unlike throttling, - * guarantees that a function is only executed a single time, either at the - * very beginning of a series of calls, or at the very end. - * - * @param {Number} delay A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful. - * @param {Boolean} [atBegin] Optional, defaults to false. If atBegin is false or unspecified, callback will only be executed `delay` milliseconds - * after the last debounced-function call. If atBegin is true, callback will be executed only at the first debounced-function call. - * (After the throttled-function has not been called for `delay` milliseconds, the internal counter is reset). - * @param {Function} callback A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is, - * to `callback` when the debounced-function is executed. - * - * @return {Function} A new, debounced function. - */ + return _possibleConstructorReturn(this, _Component.call(this, props)); + } - function debounce (delay, atBegin, callback) { - return callback === undefined ? throttle(delay, atBegin, false) : throttle(delay, callback, atBegin !== false); - } + Icon.prototype.render = function render() { + var _props = this.props, + type = _props.type, + className = _props.className, + clsPrefix = _props.clsPrefix, + others = _objectWithoutProperties(_props, ['type', 'className', 'clsPrefix']); + + var clsObj = {}; + + var classNames = (0, _classnames2["default"])(clsPrefix, type); + + return _react2["default"].createElement('i', _extends({}, others, { className: (0, _classnames2["default"])(classNames, className) })); + }; + return Icon; + }(_react.Component); + Icon.defaultProps = defaultProps; + Icon.propTypes = propTypes; + exports["default"] = Icon; + module.exports = exports['default']; /***/ }), - /* 1267 */ + /* 1199 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { - value: true + value: true }); - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + var _FormControl = __webpack_require__(1200); - var _react = __webpack_require__(0); + var _FormControl2 = _interopRequireDefault(_FormControl); - var _react2 = _interopRequireDefault(_react); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - var _propTypes = __webpack_require__(1); + exports["default"] = _FormControl2["default"]; + module.exports = exports['default']; - var _propTypes2 = _interopRequireDefault(_propTypes); + /***/ }), + /* 1200 */ + /***/ (function(module, exports, __webpack_require__) { - var _beeDatepicker = __webpack_require__(1268); + "use strict"; - var _beeDatepicker2 = _interopRequireDefault(_beeDatepicker); - var _zh_CN = __webpack_require__(63); + Object.defineProperty(exports, "__esModule", { + value: true + }); - var _zh_CN2 = _interopRequireDefault(_zh_CN); + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _beeFormControl = __webpack_require__(1307); + var _react = __webpack_require__(0); - var _beeFormControl2 = _interopRequireDefault(_beeFormControl); + var _react2 = _interopRequireDefault(_react); - var _beeSelect = __webpack_require__(137); + var _classnames = __webpack_require__(2); - var _beeSelect2 = _interopRequireDefault(_beeSelect); + var _classnames2 = _interopRequireDefault(_classnames); - var _beeInputNumber = __webpack_require__(237); + var _beeIcon = __webpack_require__(319); - var _beeInputNumber2 = _interopRequireDefault(_beeInputNumber); + var _beeIcon2 = _interopRequireDefault(_beeIcon); - var _FilterDropDown = __webpack_require__(1310); + var _propTypes = __webpack_require__(1); - var _FilterDropDown2 = _interopRequireDefault(_FilterDropDown); + var _propTypes2 = _interopRequireDefault(_propTypes); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } @@ -239321,452 +229686,489 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - var RangePicker = _beeDatepicker2["default"].RangePicker, - YearPicker = _beeDatepicker2["default"].YearPicker, - MonthPicker = _beeDatepicker2["default"].MonthPicker, - WeekPicker = _beeDatepicker2["default"].WeekPicker; - - var propTypes = { - filterDropdown: _propTypes2["default"].string + componentClass: _propTypes2["default"].oneOfType([_propTypes2["default"].element, _propTypes2["default"].string]), + type: _propTypes2["default"].string, + size: _propTypes2["default"].oneOf(['sm', 'md', 'lg']), + onSearch: _propTypes2["default"].func, + onChange: _propTypes2["default"].func, + onBlur: _propTypes2["default"].func, + showClose: _propTypes2["default"].bool, + focusSelect: _propTypes2["default"].bool, + debounceDelay: _propTypes2["default"].number }; - var FilterType = function (_Component) { - _inherits(FilterType, _Component); + var defaultProps = { + componentClass: 'input', + clsPrefix: 'u-form-control', + type: 'text', + size: 'md' + }; - function FilterType(props) { - _classCallCheck(this, FilterType); + function fixControlledValue(value) { + if (typeof value === 'undefined' || value === null) { + return ''; + } + return value; + } - var _this = _possibleConstructorReturn(this, _Component.call(this, props)); + var FormControl = function (_React$Component) { + _inherits(FormControl, _React$Component); - _this.clearFilter = function () { - var _this$props = _this.props, - onFilterClear = _this$props.onFilterClear, - dataIndex = _this$props.dataIndex; + function FormControl(props) { + _classCallCheck(this, FormControl); - if (_this.state.value !== "") { - _this.setState({ - value: "", //清空值 - condition: _this.props.filterDropdownType == 'string' ? 'LIKE' : 'EQ' //切回默认查询条件 - }, function () { - //调用清除方法参数为当前字段的field - onFilterClear && onFilterClear(dataIndex); - }); - } - }; + var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); - _this.changeText = function (val) { - _this.setState({ - value: val - }); - }; + _initialiseProps.call(_this); - _this.changeTextCall = function (e) { - var _this$props2 = _this.props, - onFilterChange = _this$props2.onFilterChange, - dataIndex = _this$props2.dataIndex; + var value = typeof props.value === 'undefined' ? props.defaultValue : props.value; + _this.state = { + showSearch: !props.value, + value: value + }; + _this.input = {}; + _this.clickClearBtn = false; + return _this; + } - if (e.keyCode == 13) { - e.target.value !== "" && onFilterChange(dataIndex, e.target.value, _this.state.condition); + FormControl.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProp) { + if ("value" in nextProp) { + if (nextProp.value !== this.state.value) { + this.setState({ value: nextProp.value }); } - }; + } + }; - _this.changeValue = function () { - _this.setState({ - value: "" - }); - }; + FormControl.prototype.render = function render() { - _this.onSelectDropdown = function (item) { - var _this$props3 = _this.props, - onFilterChange = _this$props3.onFilterChange, - dataIndex = _this$props3.dataIndex; + if (this.props.type === "search") { + return this.renderSearch(); + } - _this.setState({ - condition: item.key - }, function () { - _this.state.value !== "" && onFilterChange && onFilterChange(dataIndex, _this.state.value, _this.state.condition); - }); - }; + return this.renderInput(); + }; - _this.changeNumber = function (value) { - var _this$props4 = _this.props, - onFilterChange = _this$props4.onFilterChange, - dataIndex = _this$props4.dataIndex; + return FormControl; + }(_react2["default"].Component); - _this.setState({ - value: value - }, function () { - onFilterChange(dataIndex, value, _this.state.condition); - }); - }; + var _initialiseProps = function _initialiseProps() { + var _this2 = this; - _this.clearNumber = function () { - var onChange = _this.props.onChange; + this.handleSearchChange = function (e) { + var onChange = _this2.props.onChange; - onChange && onChange(""); - _this.setState({ - value: "" - }); - }; + var value = _this2.input.value; + _this2.setState({ + value: value, + showSearch: value == null || value === "" + }); + if (onChange) { + onChange(value, e); + } + }; - _this.changeTextCallBlur = function (val) { - var onChange = _this.props.onChange; + this.handleChange = function (e) { + var _props$debounceDelay = _this2.props.debounceDelay, + debounceDelay = _props$debounceDelay === undefined ? 0 : _props$debounceDelay; - onChange && onChange(val); - }; + var now = new Date().getTime(); + if (now - _this2.lastScrollCall < debounceDelay) return; + _this2.lastScrollCall = now; - _this.changeSelect = function (value) { - var _this$props5 = _this.props, - onFilterChange = _this$props5.onFilterChange, - dataIndex = _this$props5.dataIndex; + var onChange = _this2.props.onChange; - if (onFilterChange) { - onFilterChange(dataIndex, value, _this.state.condition); - _this.setState({ - value: value - }); - } - }; + var value = _this2.input.value; + if (!('value' in _this2.props)) { + _this2.setState({ value: value }); + } + if (onChange) { + onChange(value, e); + } + }; - _this.clearSelectValue = function () { - _this.setState({ - selectValue: "" - }, function () { - _this.changeSelect(""); - }); - }; + this.clearValue = function () { + var _props = _this2.props, + onChange = _props.onChange, + showClose = _props.showClose; - _this.clearDateValue = function () { - _this.setState({ - dateValue: "" - }, function () { - _this.changeDate(""); - }); - }; + _this2.setState({ + showSearch: true, + value: "" + }); + if (_this2.e && _this2.e.target) _this2.e.target.value = ""; + if (onChange) { + onChange("", _this2.e); + } + if (showClose) { + _this2.blurTime && clearTimeout(_this2.blurTime); + _this2.blurTime = null; + } + _this2.input.focus(); + }; - _this.changeDate = function (value) { - var _this$props6 = _this.props, - onFilterChange = _this$props6.onFilterChange, - dataIndex = _this$props6.dataIndex; + this.handleKeyDown = function (e) { + var _props2 = _this2.props, + onSearch = _props2.onSearch, + type = _props2.type, + onKeyDown = _props2.onKeyDown; - if (onFilterChange) { - onFilterChange(dataIndex, value, _this.state.condition); - _this.setState({ - value: value, - open: false - }); + if (e.keyCode === 13 && type === "search") { + if (onSearch) { + onSearch(_this2.input.value); } - }; + } + onKeyDown && onKeyDown(e); + }; - _this.renderControl = function (rendertype) { - var _this$props7 = _this.props, - filterInputNumberOptions = _this$props7.filterInputNumberOptions, - filterDropdownIncludeKeys = _this$props7.filterDropdownIncludeKeys, - dataIndex = _this$props7.dataIndex, - filterDropdown = _this$props7.filterDropdown, - filterDropdownType = _this$props7.filterDropdownType, - format = _this$props7.format, - className = _this$props7.className, - onChange = _this$props7.onChange, - onSelectDropdown = _this$props7.onSelectDropdown, - clsPrefix = _this$props7.clsPrefix, - locale = _this$props7.locale; + this.handleSearch = function (e) { + var onSearch = _this2.props.onSearch; - switch (rendertype) { - case 'text': - return _react2["default"].createElement( - 'div', - { className: clsPrefix + ' filter-wrap' }, - _react2["default"].createElement(_beeFormControl2["default"], { - value: _this.state.value, - className: className, - onChange: _this.changeText, - onKeyDown: _this.changeTextCall - //onBlur={this.changeTextCallBlur} - }), - _react2["default"].createElement(_FilterDropDown2["default"], { - locale: locale, - dataIndex: dataIndex, - dataText: _this.state.value, - onSelectDropdown: _this.onSelectDropdown, - onClickClear: _this.clearFilter, - isShowClear: _this.state.value, - isShowCondition: filterDropdown, - filterDropdownType: filterDropdownType, - filterDropdownIncludeKeys: filterDropdownIncludeKeys - }) - ); - case 'number': - return _react2["default"].createElement( - 'div', - { className: clsPrefix + ' filter-wrap' }, - _react2["default"].createElement(_beeInputNumber2["default"], _extends({}, filterInputNumberOptions, { - className: className, - value: _this.state.value, - onChange: _this.changeNumber, - iconStyle: 'one' - })), - _react2["default"].createElement(_FilterDropDown2["default"], { - locale: locale, - dataIndex: dataIndex, - dataText: _this.state.value, - onSelectDropdown: _this.onSelectDropdown, - onClickClear: _this.clearFilter, - isShowClear: _this.state.value != 0, - isShowCondition: filterDropdown, - filterDropdownType: filterDropdownType, - filterDropdownIncludeKeys: filterDropdownIncludeKeys - }) - ); - case 'dropdown': - return _react2["default"].createElement( - 'div', - { className: clsPrefix + ' filter-wrap' }, - _react2["default"].createElement(_beeSelect2["default"], _extends({}, _this.props, { - size: 'sm', - value: _this.state.value, - onChange: _this.changeSelect - })), - _react2["default"].createElement(_FilterDropDown2["default"], { - locale: locale, - dataIndex: dataIndex, - dataText: _this.state.value, - onSelectDropdown: _this.onSelectDropdown, - onClickClear: _this.clearFilter, - isShowCondition: filterDropdown, - isShowClear: _this.state.value, - filterDropdownType: filterDropdownType, - filterDropdownIncludeKeys: filterDropdownIncludeKeys - }) - ); - case 'date': - return _react2["default"].createElement( - 'div', - { className: clsPrefix + ' filter-wrap' }, - _react2["default"].createElement(_beeDatepicker2["default"], _extends({}, _this.props, { - value: _this.state.value, - onChange: _this.changeDate, - open: _this.state.open, - format: format, - locale: _zh_CN2["default"] - })), - _react2["default"].createElement(_FilterDropDown2["default"], { - locale: locale, - dataIndex: dataIndex, - dataText: _this.state.value, - onSelectDropdown: _this.onSelectDropdown, - onClickClear: _this.clearFilter, - isShowCondition: filterDropdown, - isShowClear: _this.state.value, - filterDropdownType: filterDropdownType, - filterDropdownIncludeKeys: filterDropdownIncludeKeys - }) - ); - case 'dateyear': - return _react2["default"].createElement( - 'div', - { className: clsPrefix + ' filter-wrap' }, - _react2["default"].createElement(YearPicker, _extends({}, _this.props, { - value: _this.state.value, - onChange: _this.changeDate, - open: _this.state.open, - format: format, - locale: _zh_CN2["default"] - })), - _react2["default"].createElement(_FilterDropDown2["default"], { - locale: locale, - dataIndex: dataIndex, - dataText: _this.state.value, - onSelectDropdown: _this.onSelectDropdown, - onClickClear: _this.clearFilter, - isShowCondition: filterDropdown, - isShowClear: _this.state.value, - filterDropdownType: filterDropdownType, - filterDropdownIncludeKeys: filterDropdownIncludeKeys - }) - ); - case 'datemonth': - return _react2["default"].createElement( - 'div', - { className: clsPrefix + ' filter-wrap' }, - _react2["default"].createElement(MonthPicker, _extends({}, _this.props, { - value: _this.state.value, - onChange: _this.changeDate, - open: _this.state.open, - format: format, - locale: _zh_CN2["default"] - })), - _react2["default"].createElement(_FilterDropDown2["default"], { - locale: locale, - dataIndex: dataIndex, - dataText: _this.state.value, - onSelectDropdown: _this.onSelectDropdown, - onClickClear: _this.clearFilter, - isShowCondition: filterDropdown, - isShowClear: _this.state.value, - filterDropdownType: filterDropdownType, - filterDropdownIncludeKeys: filterDropdownIncludeKeys - }) - ); - case 'dateweek': - return _react2["default"].createElement( - 'div', - { className: clsPrefix + ' filter-wrap' }, - _react2["default"].createElement(WeekPicker, _extends({}, _this.props, { - value: _this.state.value, - onChange: _this.changeDate, - open: _this.state.open, - format: format, - locale: _zh_CN2["default"] - })), - _react2["default"].createElement(_FilterDropDown2["default"], { - locale: locale, - dataIndex: dataIndex, - dataText: _this.state.value, - onSelectDropdown: _this.onSelectDropdown, - onClickClear: _this.clearFilter, - isShowCondition: filterDropdown, - isShowClear: _this.state.value, - filterDropdownType: filterDropdownType, - filterDropdownIncludeKeys: filterDropdownIncludeKeys - }) - ); - case 'daterange': - return _react2["default"].createElement( - 'div', - { className: clsPrefix + ' filter-wrap' }, - _react2["default"].createElement(RangePicker, _extends({}, _this.props, { - value: _this.state.value, - onChange: _this.changeDate, - open: _this.state.open, - format: format, - showTime: true, - locale: _zh_CN2["default"], - placeholder: '开始 ~ 结束', - dateInputPlaceholder: ['开始', '结束'], - showClear: true - })), - _react2["default"].createElement(_FilterDropDown2["default"], { - locale: locale, - dataIndex: dataIndex, - dataText: _this.state.value, - onSelectDropdown: _this.onSelectDropdown, - onClickClear: _this.clearFilter, - isShowCondition: filterDropdown, - isShowClear: _this.state.value, - filterDropdownIncludeKeys: filterDropdownIncludeKeys - }) - ); - case 'bool': - return _react2["default"].createElement( - 'div', - { className: clsPrefix + ' filter-wrap' }, - _react2["default"].createElement(Switch, { - className: className, - onChange: onChange - }), - _react2["default"].createElement(_FilterDropDown2["default"], { locale: locale, - onSelectDropdown: onSelectDropdown, - filterDropdownIncludeKeys: filterDropdownIncludeKeys - }) - ); - default: - return _react2["default"].createElement('div', null); + if (onSearch) onSearch(_this2.input.value); + }; + + this.handleBlur = function (e) { + var value = _this2.state.value; + var _props3 = _this2.props, + onBlur = _props3.onBlur, + showClose = _props3.showClose; + + var _e = _extends({}, e); + _this2.e = _e; + if (onBlur) { + if (showClose && _this2.clickClearBtn) { + _this2.clickClearBtn = false; + onBlur(value, _e, true); + } else { + onBlur(value, _e); } - }; + } + }; - _this.state = { - value: "", - text: "", - selectValue: "", - dateValue: "", - open: false, - condition: props.filterDropdownType == 'string' ? 'LIKE' : 'EQ', - number: 0 - }; - return _this; - } + this.handleFocus = function (e) { + var value = _this2.state.value; + var onFocus = _this2.props.onFocus; + + if (_this2.props.focusSelect) { + _this2.input.select(); + } + if (onFocus) { + onFocus(value, e); + } + }; + + this.onClearBtnMouseDown = function () { + _this2.clickClearBtn = true; + }; + + this.renderInput = function () { + var _props4 = _this2.props, + Component = _props4.componentClass, + type = _props4.type, + className = _props4.className, + size = _props4.size, + clsPrefix = _props4.clsPrefix, + onChange = _props4.onChange, + onSearch = _props4.onSearch, + onBlur = _props4.onBlur, + showClose = _props4.showClose, + focusSelect = _props4.focusSelect, + prefix = _props4.prefix, + suffix = _props4.suffix, + others = _objectWithoutProperties(_props4, ['componentClass', 'type', 'className', 'size', 'clsPrefix', 'onChange', 'onSearch', 'onBlur', 'showClose', 'focusSelect', 'prefix', 'suffix']); + // input[type="file"] 不应该有类名 .form-control. + + + var value = _this2.state.value; + + var classes = {}; + if (size) { + classes['' + size] = true; + } + + var classNames = void 0; + if (type !== 'file') { + classNames = (0, _classnames2["default"])(clsPrefix, classes); + } + if (prefix || suffix) classNames += ' ' + clsPrefix + '-prefix-suffix'; + if (className) classNames += ' ' + className; + // 加判断,是否有 前后缀,是否加 wrapper + if (showClose || suffix || prefix) { + return _react2["default"].createElement( + 'div', + { className: (0, _classnames2["default"])(clsPrefix + '-close', clsPrefix + '-affix-wrapper ' + clsPrefix + '-affix-wrapper-' + size, className) }, + prefix ? _react2["default"].createElement( + 'span', + { className: clsPrefix + '-simple-prefix' }, + prefix + ) : '', + _react2["default"].createElement(Component, _extends({}, others, { + type: type, + ref: function ref(el) { + return _this2.input = el; + }, + value: fixControlledValue(value), + onChange: _this2.handleChange, + onBlur: _this2.handleBlur, + onFocus: _this2.handleFocus, + className: (0, _classnames2["default"])(classNames) + })), + showClose && value ? _react2["default"].createElement( + 'div', + { className: clsPrefix + '-suffix has-close', onMouseDown: _this2.onClearBtnMouseDown, onClick: _this2.clearValue }, + _react2["default"].createElement(_beeIcon2["default"], { type: 'uf-close-c' }) + ) : '', + suffix ? _react2["default"].createElement( + 'span', + { className: clsPrefix + '-simple-suffix' }, + suffix + ) : '' + ); + } else { + return _react2["default"].createElement(Component, _extends({}, others, { + type: type, + ref: function ref(el) { + return _this2.input = el; + }, + value: fixControlledValue(value), + onChange: _this2.handleChange, + onBlur: _this2.handleBlur, + onFocus: _this2.handleFocus, + className: (0, _classnames2["default"])(classNames) + })); + } + }; + + this.renderSearch = function () { + var _props5 = _this2.props, + Component = _props5.componentClass, + type = _props5.type, + className = _props5.className, + size = _props5.size, + clsPrefix = _props5.clsPrefix, + onChange = _props5.onChange, + onSearch = _props5.onSearch, + onBlur = _props5.onBlur, + others = _objectWithoutProperties(_props5, ['componentClass', 'type', 'className', 'size', 'clsPrefix', 'onChange', 'onSearch', 'onBlur']); + // input[type="file"] 不应该有类名 .form-control. + + + var value = _this2.state.value; + + var classes = {}; + if (size) { + classes['' + size] = true; + } + classes[clsPrefix + '-search'] = true; + + if (type === "search") { + return _react2["default"].createElement( + 'div', + { className: (0, _classnames2["default"])(clsPrefix + '-search', clsPrefix + '-affix-wrapper', className) }, + _react2["default"].createElement(Component, _extends({}, others, { + type: type, + ref: function ref(el) { + return _this2.input = el; + }, + onChange: _this2.handleSearchChange, + value: fixControlledValue(value), + onKeyDown: _this2.handleKeyDown, + onBlur: _this2.handleBlur, + onFocus: _this2.handleFocus, + className: (0, _classnames2["default"])(clsPrefix, classes) + })), + _react2["default"].createElement( + 'div', + { className: clsPrefix + '-suffix' }, + _react2["default"].createElement(_beeIcon2["default"], { type: 'uf-search', onClick: _this2.handleSearch }) + ) + ); + } + }; + }; + + FormControl.propTypes = propTypes; + FormControl.defaultProps = defaultProps; + + exports["default"] = FormControl; + module.exports = exports['default']; + + /***/ }), + /* 1201 */ + /***/ (function(module, exports, __webpack_require__) { + + "use strict"; + + + module.exports = __webpack_require__(1202); + + /***/ }), + /* 1202 */ + /***/ (function(module, exports, __webpack_require__) { + + "use strict"; + + + Object.defineProperty(exports, "__esModule", { + value: true + }); + + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + + var _classnames = __webpack_require__(2); + + var _classnames2 = _interopRequireDefault(_classnames); + + var _react = __webpack_require__(0); + + var _react2 = _interopRequireDefault(_react); + + var _beeInputGroupAddon = __webpack_require__(1203); + + var _beeInputGroupAddon2 = _interopRequireDefault(_beeInputGroupAddon); + + var _InputGroupButton = __webpack_require__(1205); + + var _InputGroupButton2 = _interopRequireDefault(_InputGroupButton); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + + var defaultProps = { + clsPrefix: 'u-input-group', + simple: false + }; + + var InputGroup = function (_React$Component) { + _inherits(InputGroup, _React$Component); + + function InputGroup() { + _classCallCheck(this, InputGroup); + + return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); + } + + InputGroup.prototype.render = function render() { + var _props = this.props, + className = _props.className, + clsPrefix = _props.clsPrefix, + simple = _props.simple, + others = _objectWithoutProperties(_props, ['className', 'clsPrefix', 'simple']); + + return _react2["default"].createElement('span', _extends({}, others, { + className: (0, _classnames2["default"])(className, clsPrefix, simple && 'simple') + })); + }; + + return InputGroup; + }(_react2["default"].Component); + + /** + * 将InputGroupAddon与InputGroupButton组件作为InputGroup的附属组件 + */ + + + InputGroup.Addon = _beeInputGroupAddon2["default"]; + InputGroup.Button = _InputGroupButton2["default"]; + InputGroup.defaultProps = defaultProps; + exports["default"] = InputGroup; + module.exports = exports['default']; + + /***/ }), + /* 1203 */ + /***/ (function(module, exports, __webpack_require__) { + + "use strict"; - /** - * 清除过滤条件 - * - */ + Object.defineProperty(exports, "__esModule", { + value: true + }); - /** - * 设置输入文本的值 - * - */ + var _InputGroupAddon = __webpack_require__(1204); + var _InputGroupAddon2 = _interopRequireDefault(_InputGroupAddon); - /** - * 输入框回车执行回调 - * - */ + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - /** - * 更改修改值 - * - */ + exports["default"] = _InputGroupAddon2["default"]; + module.exports = exports['default']; - /** - * 下拉条件的回调 - * - * @param {*} key 字段 - * @param {*} value 值1,2,3...6 - */ + /***/ }), + /* 1204 */ + /***/ (function(module, exports, __webpack_require__) { + "use strict"; - /** - * 修改数值型的值 - * - */ - //清除数值 + Object.defineProperty(exports, "__esModule", { + value: true + }); + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - //失去焦点后执行函数 + var _classnames = __webpack_require__(2); - //设置下拉值 + var _classnames2 = _interopRequireDefault(_classnames); - //清除下拉值 + var _react = __webpack_require__(0); - //清除日期值 + var _react2 = _interopRequireDefault(_react); - //设置日期值 + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - //组件渲染 - /** - * 根据不同的类型生成对应的组件类型包含一些参数的适应 - * - * @param {*} rendertype 参数类型,包括['text','dropdown','date','dateyear','datemonth','dateweek',daterange','number'] - * @returns - */ + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - FilterType.prototype.render = function render() { - var rendertype = this.props.rendertype; + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - return _react2["default"].createElement( - 'div', - { 'data-filter-type': 'filterContext' }, - this.renderControl(rendertype) - ); - }; + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - return FilterType; - }(_react.Component); + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - FilterType.propTypes = propTypes; - FilterType.defaultProps = { - filterDropdown: 'show' + var defaultProps = { + clsPrefix: 'u-input-group-addon' }; - exports["default"] = FilterType; + + var InputGroupAddon = function (_React$Component) { + _inherits(InputGroupAddon, _React$Component); + + function InputGroupAddon() { + _classCallCheck(this, InputGroupAddon); + + return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); + } + + InputGroupAddon.prototype.render = function render() { + var _props = this.props, + className = _props.className, + clsPrefix = _props.clsPrefix, + others = _objectWithoutProperties(_props, ['className', 'clsPrefix']); + + return _react2["default"].createElement('span', _extends({}, others, { + className: (0, _classnames2["default"])(className, clsPrefix) + })); + }; + + return InputGroupAddon; + }(_react2["default"].Component); + + InputGroupAddon.defaultProps = defaultProps; + exports["default"] = InputGroupAddon; module.exports = exports['default']; /***/ }), - /* 1268 */ + /* 1205 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -239776,563 +230178,470 @@ value: true }); + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + + var _classnames = __webpack_require__(2); + + var _classnames2 = _interopRequireDefault(_classnames); + var _react = __webpack_require__(0); var _react2 = _interopRequireDefault(_react); - var _DatePicker = __webpack_require__(1269); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - var _DatePicker2 = _interopRequireDefault(_DatePicker); + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - var _MonthPicker = __webpack_require__(1300); + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - var _MonthPicker2 = _interopRequireDefault(_MonthPicker); + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - var _RangePicker = __webpack_require__(1302); + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - var _RangePicker2 = _interopRequireDefault(_RangePicker); + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - var _WeekPicker = __webpack_require__(1305); + var defaultProps = { + clsPrefix: 'u-input-group-btn' + }; - var _WeekPicker2 = _interopRequireDefault(_WeekPicker); + var InputGroupButton = function (_React$Component) { + _inherits(InputGroupButton, _React$Component); - var _YearPicker = __webpack_require__(1306); + function InputGroupButton() { + _classCallCheck(this, InputGroupButton); - var _YearPicker2 = _interopRequireDefault(_YearPicker); + return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + InputGroupButton.prototype.render = function render() { + var _props = this.props, + className = _props.className, + clsPrefix = _props.clsPrefix, + others = _objectWithoutProperties(_props, ['className', 'clsPrefix']); - _DatePicker2["default"].MonthPicker = _MonthPicker2["default"]; - _DatePicker2["default"].RangePicker = _RangePicker2["default"]; - _DatePicker2["default"].WeekPicker = _WeekPicker2["default"]; - _DatePicker2["default"].YearPicker = _YearPicker2["default"]; + return _react2["default"].createElement('span', _extends({}, others, { + className: (0, _classnames2["default"])(className, clsPrefix) + })); + }; - exports["default"] = _DatePicker2["default"]; + return InputGroupButton; + }(_react2["default"].Component); + + InputGroupButton.defaultProps = defaultProps; + exports["default"] = InputGroupButton; module.exports = exports['default']; /***/ }), - /* 1269 */ + /* 1206 */ /***/ (function(module, exports, __webpack_require__) { - "use strict"; + __webpack_require__(1207); + module.exports = __webpack_require__(1208); - Object.defineProperty(exports, "__esModule", { - value: true - }); + /***/ }), + /* 1207 */ + /***/ (function(module, exports) { - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + // removed by extract-text-webpack-plugin - var _rcCalendar = __webpack_require__(333); + /***/ }), + /* 1208 */ + /***/ (function(module, exports, __webpack_require__) { - var _rcCalendar2 = _interopRequireDefault(_rcCalendar); + "use strict"; - var _react = __webpack_require__(0); - var _react2 = _interopRequireDefault(_react); + Object.defineProperty(exports, "__esModule", { + value: true + }); - var _reactDom = __webpack_require__(3); + var _Loading = __webpack_require__(1209); - var _reactDom2 = _interopRequireDefault(_reactDom); + var _Loading2 = _interopRequireDefault(_Loading); - var _tinperBeeCore = __webpack_require__(79); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - var _Picker = __webpack_require__(80); + exports["default"] = _Loading2["default"]; + module.exports = exports['default']; - var _Picker2 = _interopRequireDefault(_Picker); + /***/ }), + /* 1209 */ + /***/ (function(module, exports, __webpack_require__) { - var _beeFormControl = __webpack_require__(81); + "use strict"; - var _beeFormControl2 = _interopRequireDefault(_beeFormControl); - var _Panel = __webpack_require__(477); + Object.defineProperty(exports, "__esModule", { + value: true + }); + + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _Panel2 = _interopRequireDefault(_Panel); + var _react = __webpack_require__(0); - var _moment = __webpack_require__(4); + var _react2 = _interopRequireDefault(_react); - var _moment2 = _interopRequireDefault(_moment); + var _reactDom = __webpack_require__(3); - var _beeIcon = __webpack_require__(15); + var _reactDom2 = _interopRequireDefault(_reactDom); - var _beeIcon2 = _interopRequireDefault(_beeIcon); + var _propTypes = __webpack_require__(1); - var _classnames = __webpack_require__(2); + var _propTypes2 = _interopRequireDefault(_propTypes); - var _classnames2 = _interopRequireDefault(_classnames); + var _classnames2 = __webpack_require__(2); - var _beeInputGroup = __webpack_require__(82); + var _classnames3 = _interopRequireDefault(_classnames2); - var _beeInputGroup2 = _interopRequireDefault(_beeInputGroup); + var _Portal = __webpack_require__(77); - var _zh_CN = __webpack_require__(63); + var _Portal2 = _interopRequireDefault(_Portal); - var _zh_CN2 = _interopRequireDefault(_zh_CN); + var _i18n = __webpack_require__(1210); - var _omit = __webpack_require__(30); + var _i18n2 = _interopRequireDefault(_i18n); - var _omit2 = _interopRequireDefault(_omit); + var _tool = __webpack_require__(1211); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** - * Created by chief on 17/4/6. - */ + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - var timerDatePicker = true; + var loadImg = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNDJweCIgaGVpZ2h0PSI0MXB4IiB2aWV3Qm94PSIwIDAgNDIgNDEiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUzLjIgKDcyNjQzKSAtIGh0dHBzOi8vc2tldGNoYXBwLmNvbSAtLT4KICAgIDx0aXRsZT53aW5kb3U8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZGVmcz4KICAgICAgICA8bGluZWFyR3JhZGllbnQgeDE9IjQ5Ljc3NzAwMDElIiB5MT0iOTkuOTg4NjY2NyUiIHgyPSI0OS43NzcwMDAxJSIgeTI9IjIyLjc5MTY5ODQlIiBpZD0ibGluZWFyR3JhZGllbnQtMSI+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiM4MkQ5MDAiIG9mZnNldD0iMCUiPjwvc3RvcD4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0ZGRkZGRiIgc3RvcC1vcGFjaXR5PSIwIiBvZmZzZXQ9IjEwMCUiPjwvc3RvcD4KICAgICAgICA8L2xpbmVhckdyYWRpZW50PgogICAgICAgIDxsaW5lYXJHcmFkaWVudCB4MT0iMC4wNzY1JSIgeTE9IjQ5LjgwNDUlIiB4Mj0iODQuMDAyMTY0NCUiIHkyPSI0OS44MDQ1JSIgaWQ9ImxpbmVhckdyYWRpZW50LTIiPgogICAgICAgICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjRkZCRTBFIiBvZmZzZXQ9IjAlIj48L3N0b3A+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiNGRkZGRkYiIHN0b3Atb3BhY2l0eT0iMCIgb2Zmc2V0PSIxMDAlIj48L3N0b3A+CiAgICAgICAgPC9saW5lYXJHcmFkaWVudD4KICAgICAgICA8bGluZWFyR3JhZGllbnQgeDE9IjUwLjIyOTUwMDElIiB5MT0iLTAuMDgwOTk5OTQyOSUiIHgyPSI1MC4yMjk1MDAxJSIgeTI9IjgwLjA2MTg4MjglIiBpZD0ibGluZWFyR3JhZGllbnQtMyI+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiNGRjQ3NDciIG9mZnNldD0iMCUiPjwvc3RvcD4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0ZGRkZGRiIgc3RvcC1vcGFjaXR5PSIwIiBvZmZzZXQ9IjEwMCUiPjwvc3RvcD4KICAgICAgICA8L2xpbmVhckdyYWRpZW50PgogICAgICAgIDxsaW5lYXJHcmFkaWVudCB4MT0iOTkuOTI1NjY2NyUiIHkxPSI0OS45MTglIiB4Mj0iMjQuMjY5MjQwMyUiIHkyPSI0OS45MTglIiBpZD0ibGluZWFyR3JhZGllbnQtNCI+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiMwMDhDREMiIG9mZnNldD0iMCUiPjwvc3RvcD4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0ZGRkZGRiIgc3RvcC1vcGFjaXR5PSIwIiBvZmZzZXQ9IjEwMCUiPjwvc3RvcD4KICAgICAgICA8L2xpbmVhckdyYWRpZW50PgogICAgPC9kZWZzPgogICAgPGcgaWQ9IlN5bWJvbHMiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSLop4blm74vbG9hZGluZyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTMuMDAwMDAwLCAtMy4wMDAwMDApIj4KICAgICAgICAgICAgPGcgaWQ9IndpbmRvdSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMy4wMDAwMDAsIDMuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICA8ZyBpZD0i5YiG57uELTMiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDI5LjAwMDAwMCwgMC4wMDAwMDApIj4KICAgICAgICAgICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlIiBmaWxsPSJ1cmwoI2xpbmVhckdyYWRpZW50LTEpIiBvcGFjaXR5PSIwLjQ5OTM3MjIxIiB4PSIwLjQwOTA5MDkwOSIgeT0iMCIgd2lkdGg9IjEyIiBoZWlnaHQ9IjM0Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0iT3ZhbCIgZmlsbD0iIzAwQzg2NCIgY3g9IjYuNDA5MDkwOTEiIGN5PSIzNC4yNjY3MDkxIiByPSI2Ij48L2NpcmNsZT4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgICAgIDxnIGlkPSLliIbnu4QtMiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMC40NTE3MjksIDI4LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgICAgIDxyZWN0IGlkPSJSZWN0YW5nbGUiIGZpbGw9InVybCgjbGluZWFyR3JhZGllbnQtMikiIG9wYWNpdHk9IjAuNTA5MDIxNTc3IiB4PSI2LjI2MjM1NTk1IiB5PSIzLjU1MjcxMzY4ZS0xNSIgd2lkdGg9IjM0IiBoZWlnaHQ9IjEyIj48L3JlY3Q+CiAgICAgICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0iT3ZhbCIgZmlsbD0iI0ZGQkUwRSIgY3g9IjYuNTAyODE2OSIgY3k9IjYiIHI9IjYiPjwvY2lyY2xlPgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICAgICAgPGcgaWQ9IuWIhue7hCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMS4wMDAwMDAsIDAuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICAgICAgPHJlY3QgaWQ9IlJlY3RhbmdsZSIgZmlsbD0idXJsKCNsaW5lYXJHcmFkaWVudC0zKSIgb3BhY2l0eT0iMC41MDEyMzIzMjkiIHg9Ii0yLjY1NTY1MzQ3ZS0xMyIgeT0iNS43ODgyMTI4MSIgd2lkdGg9IjEyIiBoZWlnaHQ9IjM0Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0iT3ZhbCIgZmlsbD0iI0ZGNDc0NyIgY3g9IjYiIGN5PSI2IiByPSI2Ij48L2NpcmNsZT4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgICAgIDxnIGlkPSJHcm91cCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMC45NTQ1NDUsIDAuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICAgICAgPHJlY3QgaWQ9IlJlY3RhbmdsZSIgZmlsbD0idXJsKCNsaW5lYXJHcmFkaWVudC00KSIgb3BhY2l0eT0iMC41MDQxODUyNjgiIHg9IjAiIHk9IjAiIHdpZHRoPSIzNiIgaGVpZ2h0PSIxMS45NDI2NTY5Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0iT3ZhbCIgZmlsbD0iIzAwOENEQyIgY3g9IjM1IiBjeT0iNiIgcj0iNiI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg=='; + var loadDefault = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATQAAAE0CAYAAACigc+fAAAACXBIWXMAABcRAAAXEQHKJvM/AAAS6UlEQVR4Ae3dP05jWRbH8VetRgQgwQ5gB1SvoDwJhKbZQJkMkbQtkbc7R8KVILIyG6BxCJFZwbhWMMUOsAQBImB04Zgy+N/7c6/9zrnfj4RqZjSqsi8+P5/757336fn5OQF8uK/ufU6SZD1JksGfAxX5s5ckyd3Q//7y31c7F11+AfCBQEMu99W9TQmqigTYVsGRvJWAc+HWXe1c9PjNICsCDalJB1aTECsaYLP0kyS5dD+rnYtLfktIg0DDVPfVvXUJsXqSJBsLGq1BuDVXOxc/+Y1hEgINY8mUspkkyW6SJGslGqUbCTbW3TCCQMM7Q0H2teQjQ7BhBIGGN/fVvaZMLcvUkc3Sca+ZqSgSAg3Ja5C5Rf72AtfIiupLt9biFxo3Ai1y99U9FwJ/GRkFNw2t0a3Fi0CLlKyVXc7h+MW89SXUOOoRod9iH4AYyXmynsEwS2T9719ZD0RkCLTI3Ff33Jmy/ypb+M/j7/vqXlvfy0YRTDkjImH2PbK33ZEp6F2K/y+UI9AiEWmYDfxwl2sRavYx5YxA5GGWyFoh088IEGjGEWZvqqyp2UegGSa7mRw2/eUru5+2sYZmlNwlo6f49H9If3JOzSY6NLs0X8oUWlsOFsMYAs2g++qeu8C8Gvs4TLHGJoFNTDmNkc6jF8HBWR8aXNBuCx2aPW3CLLUmU09bCDRD7qt77u6yX2IfhwzW5GaWMIJAs4XpU3Zf5X5wMIBAM0IO0LKrmQ9dmhEEmh0UZX5f6NJsINAMoDvzom7gPUSPQLOBYiyuyo6nfgSacnK9psU7zy4CXwzKEWj6UYT+7Fp5I7Ei0PSjCP3ZkLN8UIpAU0yKj6sC/CLQFCPQdOOogX+MqWIEmm4Un38bstEChQg0peQGjuxuhsEXhVIEml4UXTh0aEoRaHpRdOEwtkoRaHpRdOEwlVeKQNOLy3QCYmNAJwJNL7qIsNYtvzmrCDRgPDo0hQg0hZgOzQUdmkIEmk4UGzAGgQbADAINgBkEGgAzCDQAZhBoAMwg0HTqxT4AwDgEmkKrnYu72MdgDvjSUIhA06sf+wAExpeGQgSaXnQQYTG+ChFoev2MfQAC6jOt14lA04sOIhzGVikCTS+KLpyu1TdmHYGm1GrngqILhy8LpQg03TqxD0AgfFkoRaDpRuH5d8OGgF4Emm6XsQ9AAIypYgSaYqudC3d040fs4+AZgaYYgaZfO/YB8OhGviSgFIGmH4HmD2OpHIGmnCxgn8c+Dh64qwMINOUINBuasQ+ABy317wAEmgWy7nMT+zgU0CfQbCDQ7KjHPgAFtDh7ZgOBZsRq56LHWloudGeGEGi2NLnxY2Z1ujM7CDRDZC2NDYL0btjZtIVAM2a1c9Hi6oFU+qw72kOg2bTL1HOmpqw7whACzSCZetJ9TNaRThbGEGhGydoQu56jbpMkqZXtRcGPT8/PzwylYffVPTet2op9HISbhleYatpFh2ZfhU2CN7uEmW0EmnFyxopQS5J9nsNgH4EWAQm1WsShts95sziwhhaR++reujyHIJY1tb5cCUCYRYJAi0xEocYGQIQItEjdV/dc1/LV6Lv/IRsA3E47MqyhRWq1c+HW1PYNXlFwLp0ZYRYhOrTI3Vf3NuVe+l+Uj4QL5tpq54KnNkWMQMOL++peXe7UsaZwRM65DRASAg3DZMOgpWht7UYuMud8GV4QaBgh09BmiYPtVoKM4xh4h0DDREPBtluSqSgdGaYi0DCTTEV35WqDeW8euG7sUh5kws4lpiLQkIl0bRUJuEqgzu1GDv9ecjAWWRBoKOS+uvc5SRL3Mwi69QxXIbijFi6wfsqfPaaTKIJAQzDSzW1++Pvv6LoQCoEGwAwufQJgBoEGwAwCDYAZBBoAMwg0AGYQaADMINAAmEGgATCDQANgBoEGwAwCDYAZBBoAMwg0AGYQaADMINAAmEGgATCDQANgxu9lfCNPV9frcp/6wZ8DlaH//FN+Bty96O+Wdra5vTOQwkPjKHedrZwcl7LOSnEL7qer68/yFKHBAzc2Cv6VP+ShG27wu0s72zz+DNF7aBxVJKyC1NnKyfHC62xhgfZ0db0rITaPh9gOnu3YpoNDTB4aRwups0V1cHMNNOnE6gt+Ercb9JaE292CXgMQzEPjqFR1tnJyPLc6m0ugPV1duza3uYCnbs9y7l4XU1JYIFPK0tbZPKakQQOtxEH2EcEGtUocZB8FD7YggfZ0db0p7WbV+18ejnuKd2tpZ7up6DUjYg+NI1dnbQVBNuylzlZOjoPUmfdAe7q6bsr8fVFz96Lc3L+2tLPdVfr6EYGHxpGJOls5OfZaZ94CTboybd8W03xb2tmul/flIUbSlbmdxC0jb//bysmxtzrzEmhyBKOt+NtiEnfOZpe1NZSBHMEwW2c+1tYKX/okU8x/DQ5yIt+CPdncABZGppim60yOmxRSqEN7urp23xZffb2rkttf2tluR/JeUSIPjaOo6mzl5Dh3neUKNLnW8tLQellahBrmRq617BpaL0srd6hlDjQJsxgHeYBQQ3ARh9lArlDLs4ZmaYclj+9PV9c1fS8bysQcZs73h8ZR5jrLFGiyZhbbNHMcQg3ByJpZzGE2kDnUUgea7GbGsjCZRksutge8kd1M6uyXVpbdz1RraHLO7F8vL88Wd9r5M3ftgA9yzow6G/VSZ2nu2jGzQxu6AgCjNhgb+DB0XSZGpa6zNFNOiyeTfao+XV1ziRSKos6mqz40jmbW2dQppxTqydxesl59mXpyiRQyk0Klzmbry9RzYp1N7NBkqsmtdNJZY7qAPGSqSZ2lM7POpk05W7TAmXyRzRMgC+osmy+yeTLW2ECTi7E13ZyxLFqxDwDSkzvNUmfZTayzSR0aLXA+Gxy4RQbUWT4bkw7cjgSadGdcDZAfH1LMJN0ZdZbf2Dob16FRkMXQpSEN6qyYsV3au0CTnU2+NYrjXBomkp1N6qy4kTr72KFRiH5scZ0npqDO/Nj6eJ3nx0BjquQPH1pMQp35867O3gJNzlBxHsYfzqRhhJyhos78eVdnwx0aBejXGgdtMQafCb/WZMf4xXCg8WQj/xhTfMRnwr+3L4mXQJMF7A077680+PDijSxgU2f+jXRoFF4YW/JQGSChzoLZkofKvAUaRwzC4UOMAeosnJexJdDCY2wxwGchnJfGYRBoPGEmHD7EGKDOwnnt0DjRHtym8feHFLI8uQi5vK2hsWgdFt/KSKiz4F6ujf2NKREwF9TZHNChzQHTelBn4bm7mKR+cjoK4cMMhEegAbCDQANgBoEGwAwCDYAZBBoAMwi0+ejF8CaBRVo5Oe7+RrGFt7SzfWf9PWIm6mwOXKBRbGH1Lb85pEadhXWbSKDxzREW44uEz0FwP90/8JtMh+giwuGDDLe+Q4cW1kudDTYFKLpwflp9Y8jshiEL5rVDk7+9a+/9lQZjiwEah3Be6owOLaz+0s42Y4sBvtzC6K+cHL+bcjLQYTCuGMbnIYy3cX0JNNkYYH7vHx9gvJGNgR+MiHfvA01cWnhnJcOY4qM2I+LdW50RaOH8WNrZZocTH1Fnfv1YOTl+q7O3QJPiY9rpT8vKG4E/UnzUmT/v6uzjxem0w370+SbGFNSZHyN19i7Qlna221w14MUlF6RjkpWTY+rMj8uPV2CMu30QU6XimtrfAIKjzoobqbNJgca3R37nbAYgBeqsmPPhzYCBkUCTqRLfHvnRnWEmmSpRZ/mNrbNJd6zl2yMfujNkQZ3lM7Y7SyYFmnRp9fK9j1LrM2bIQro0PjPZTK2zic8UkB1Pzsuk12RnE1nJjid1ll5z2r3lZj0kpUZLnMrN0s426yHIiy4tnZuVk+OpdTY10GQ9iEXu6foS/EAucuubBqM3Vao6m/kYO+k8OsFfrl51NgJQlHQe1Nlk9UkbAcPSPpezxm1PxjqXtUbAh9rg6UV451zWGmf69Pz8nGronq6uP8t9h9YY6xdu3axSgtcBQx4aR9TZe27dLHWdpX5yutxKmgJ+5brV3TK8ENgi62l8tl5lrrPUgZb8CrX97K/LFDfIFY5oIJSVk+MudfZaZ1kf/5cp0JJf59NiHWzCDHMha0ZR11meZ5lmDrTkfajFdEaNMMNcDYVadHWW98HMqTcFxoloo8Cd5N4lzLAIEW0UvNRZkafMFwq05DXUNuWukVuF/qLy+ra0s81JbizUQ+PIfJ2tnBwXrrNcU85hcqjU7X5+K/p3lYxr8/cJM5SBHCp1dXZu7Bfi6uxPH2GW+OjQhj1dXe/K/dK1t8au9a1xBQDK6KFxZKrO0lwBkJbXQEteQ21d7vP01etfPB99uWsGF5qj1B4aR+rrbNaF5nl4D7SBp6vrilzY/iXIP+DfuVyXycI/1HhoHKmssyIL/9MEC7QBmYY2S7yYeS5dGdNLqCXT0NLXmc/p5TjBA21AOja38Fedyz84XV/WIFoEGSyRjq10dRY6yAbmFmgDcsyjJj8bc/3HX2/PcslzM2GdHPNYeJ2FmlpOMvdAGyYHcytyAWqINYC+HEgkxBAtOZgbus4uB7U27xAbttBA+0impW7wN4f+TPvt4i6ZuJNBde1tl+kkMEqmpd7qbF7TyTRKFWjTyFR188P/pUfXBfgjU9WROltk15WFmkADgFkKX/oEAGVBoAEwg0ADYAaBBsAMAg2AGQQaADMINABmEGgAzCDQAJhBoAEwg0ADYAaBBsAMAg2AGQQaADMINABmEGgAzCDQAJhBoAEw43d+lfDt8fRsXR6+Mc3P5cMDHmIDr3imAHIbCq7hpwhlfXL3rTw9qCc/XYIOeRFoyOTx9OyzPLy2kiO80rodPONx+fDgkt8Q0iLQMNPj6ZnrvOryoNp5P4V78BDb9vLhQZffFqYh0DDR4+lZRYKsWpJRcp1bUzo3nseKEQQaRkiQueD4UtLRcV1ba/nwoFmC14ISIdDwRtbHWiUOso9eOrblw4N2uV4WFoVAw2C30nU7fykdjRu3UcHuKAi0yMn0sr2Axf4QGsuHB63Yf6cxI9Ai9nh65rqyv42NgOvWdtk0iBOBFiGZYrZLtHvpm9s0qCwfHvRsvS3MwrWckZEzZV3DYeasuff4eHpWK8FrwRzRoUVEdjG7UvCx2GcXNB50aJGINMyc73Rq8SDQIhBxmA0QapFgymmcrJn1Ig6zYUw/jSPQDJPdzG7Au2Jo9Ae7n3Yx5bStTZiN6ErXCoMINKPk0Kzloxl5rcntiGAQgWaQbAJYuwLApy0JfBjDGpoxsm7WM3JtZmj/4aaRttCh2VMnzFLjQnZj6NAMkcXu/8U+Dhn9w40i7aBDs4UzVtnVZZoOAwg0I+S+ZlruNFsma0w97SDQ7GDalN9XzqbZQKAZQHfmRd3Ae4gegWYDF14XV2MtTT8CTTmZKn2NfRw8WJMHKUMxAk0/itAfpp3KEWj6UYT+bLE5oBuBpphcs8lVAX7R8SpGoOlWiX0AAmCDRTECTTe6Cf+22O3Ui0DTjbNnYdD5KkWgKSWHaREGY6sUgabX59gHICDGVikCTS+KLhym8koRaHpxXiogzqPpRKDpRYcWFoGmEIGmFw8ODoujGwoRaAoxHZoLOmCFCDSdCDRgDAINgBkEGgAzCDQAZhBoAMwg0ACYQaDp9DP2AQDGIdAUWj48INDCY4wVItCA8Qg0hQg0vW5iH4DACDSFCDS97mIfgJCY1utEoOnVi30AAvph9p0ZR6Dp1Y19AALiy0IpAk0vii4cviyUItCUWj48uGNqFAyBphSBphuF598tGwJ6EWi6tWMfgAAuzb2jiBBoii0fHrh1tNvYx8EzviQUI9D0o6Pw51a+JKAUgaZfK/YB8IjuTDkCTTlZwOYyKD8INOUINBvo0oo7Z3dTPwLNgOXDg0s2BwprKn/90UsINFMoyPzozowg0IxYPjxoc+VAbnwZGEGg2VKPfQBy+EZ3ZgeBZsjy4YG7FKoT+zhk0Kc7s4VAs6cmhYrZanKRP4wg0IyRAq3FPg4pdGR3GIYQaAZJoZ7HPg5T3BL6NhFodtXZ9Zxol6mmTQSaUVKwu6ynjdjnAnS7CDTD5DhChVB7803O68EoAs046UY4n/Z6NQDjYByBFgHpSvYjHgIXZmwCRIBAi0TEoUaYRYRAi4iE2h8Rran9Q5jFhUCLjKypVYwf6ejLbiaXNUXm0/Pzc+xjEKXH07N1uUNr1dj7v5VzZhzNiBCBFrnH07O6XKC9ZmAkOlyfGTcCDS7UNqVb+6J0NFxXVufaTBBoePN4elaTbm1D0aj8456pQFeGhEDDR7K2VpefMk9D3cX3TW7OiGEEGsYaCrZayTo2ggwTEWiY6fH0bFeCbVE7orfyqL42U0tMQ6AhNenaduUndLi5c3Jukf+SIxhIi0BDbo+nZxU5pPtZfvJOTd1B2J78uOcidOnEkAeBBq8eT89csLlOblN+xrmT8HJ6hBd8IdAA2JAkyf8BQJUuE6Sj2dQAAAAASUVORK5CYII='; - var DatePicker = function (_Component) { - _inherits(DatePicker, _Component); + var propTypes = { + /** + * @title 默认的公共类׺ + */ + clsPrefix: _propTypes2["default"].string, + clsLoadBack: _propTypes2["default"].string, + /** + * @title 不同loading样式 + */ + loadingType: _propTypes2["default"].oneOf(["loadDefault", "rotate", "line", "custom"]), - function DatePicker(props, context) { - _classCallCheck(this, DatePicker); + /** + * @title 不同尺寸 + */ + size: _propTypes2["default"].oneOf(["sm", "lg"]), + /** + * @title 不同颜色 + */ + color: _propTypes2["default"].oneOf(["primary", "success", "warning", ""]), + /** + * @title 是否全屏loading + */ + fullScreen: _propTypes2["default"].bool, + wrapperClassName: _propTypes2["default"].string, + tip: _propTypes2["default"].string + }; - var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); + var defaultProps = { + clsPrefix: "u-loading", + clsLoadBack: "u-loading-back", + loadingType: "default", + color: "", + showBackDrop: true, + fullScreen: false, + wrapperClassName: "" + }; - _initialiseProps.call(_this); + var isReact16 = _reactDom2["default"].createPortal !== undefined; - _this.state = { - type: "month", - value: _this.initValue(props), - open: props.open || false, - inputValue: _this.initValue(props), - showClose: false - }; - _this.fileChange = true; + var Loading = function (_Component) { + _inherits(Loading, _Component); - return _this; + function Loading(props) { + _classCallCheck(this, Loading); + + return _possibleConstructorReturn(this, _Component.call(this, props)); } - DatePicker.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - if ("value" in nextProps) { - this.setState({ - value: this.initValue(nextProps) - }); - } - if ("open" in nextProps) { - this.setState({ - open: nextProps.open - }); - } - if ("renderIcon" in nextProps) { - this.setState({ - renderIcon: nextProps.renderIcon - }); + Loading.prototype.componentDidMount = function componentDidMount() { + var _props = this.props, + clsPrefix = _props.clsPrefix, + container = _props.container; + + if (isReact16 && container) { + this.portalContainerNode = this.getContainer(this.props.container); + if (this.portalContainerNode.className && this.portalContainerNode.className.indexOf(clsPrefix + "-container") == -1) { + this.portalContainerNode.className += " " + clsPrefix + "-container"; + } } }; - //日期面板中输入框的失焦事件 - //fix:更改系统时区后,日期框需要触发 onChange 事件 + Loading.prototype.getContainer = function getContainer(container, defaultContainer) { + container = typeof container === 'function' ? container() : container; + return _reactDom2["default"].findDOMNode(container) || defaultContainer; + }; - //阻止组件内部事件冒泡到组件外部容器 + Loading.prototype.render = function render() { + var _classnames, _backClassObj; + var local = (0, _tool.getComponentLocale)(this.props, this.context, 'Loading', function () { + return _i18n2["default"]; + }); - DatePicker.prototype.render = function render() { - var _this2 = this; + var _props2 = this.props, + clsPrefix = _props2.clsPrefix, + clsLoadBack = _props2.clsLoadBack, + loadingType = _props2.loadingType, + size = _props2.size, + color = _props2.color, + show = _props2.show, + showBackDrop = _props2.showBackDrop, + container = _props2.container, + children = _props2.children, + fullScreen = _props2.fullScreen, + wrapperClassName = _props2.wrapperClassName, + indicator = _props2.indicator, + className = _props2.className, + tip = _props2.tip, + others = _objectWithoutProperties(_props2, ["clsPrefix", "clsLoadBack", "loadingType", "size", "color", "show", "showBackDrop", "container", "children", "fullScreen", "wrapperClassName", "indicator", "className", "tip"]); - var state = this.state; - var props = this.props; + if (!show) return null; - var showClose = props.showClose, - defaultPanelShown = props.defaultPanelShown, - onBlur = props.onBlur, - showHour = props.showHour, - showMinute = props.showMinute, - showSecond = props.showSecond, - others = _objectWithoutProperties(props, ["showClose", "defaultPanelShown", "onBlur", "showHour", "showMinute", "showSecond"]); + var clsObj = (0, _classnames3["default"])(clsPrefix, (_classnames = {}, _defineProperty(_classnames, clsPrefix + "-" + loadingType, true), _defineProperty(_classnames, clsPrefix + "-" + loadingType + "-sm", size === 'sm'), _defineProperty(_classnames, clsPrefix + "-" + loadingType + "-lg", size === 'lg'), _defineProperty(_classnames, clsPrefix + "-" + loadingType + "-" + color, !!color), _defineProperty(_classnames, clsPrefix + "-show-text", !!tip), _classnames), wrapperClassName); - var value = state.value; - var pickerChangeHandler = {}; - var calendarHandler = {}; - var autofocus = this.props.autofocus ? { autofocus: 'autofocus' } : null; + var classes = (0, _classnames3["default"])(clsPrefix, clsObj); - if (props.showTime) { - calendarHandler = { - // fix https://github.com/ant-design/ant-design/issues/1902 - onSelect: this.handleChange - }; - } else { - pickerChangeHandler = { - onChange: this.handleChange - }; - } + if (className) classes += ' ' + className; - var splitNumber = '3'; - if (!showHour) splitNumber -= 1; - if (!showMinute) splitNumber -= 1; - if (!showSecond) splitNumber -= 1; + var dom = ""; - var calendar = _react2["default"].createElement(_rcCalendar2["default"], _extends({ - timePicker: props.showTime ? _react2["default"].createElement(_Panel2["default"], { - className: 'time-split-' + splitNumber, - showHour: showHour, showMinute: showMinute, showSecond: showSecond, - defaultValue: (0, _moment2["default"])((0, _moment2["default"])().format("HH:mm:ss"), "HH:mm:ss") }) : null - }, props, { - onSelect: this.handleSelect, - onChange: this.handleCalendarChange, - value: value, - onInputBlur: this.onDateInputBlur - })); + if (loadingType === "custom" && !!indicator) { + dom = _react2["default"].createElement( + "div", + null, + _react2["default"].createElement( + "div", + _extends({ className: classes }, others), + _react2["default"].createElement( + "div", + { className: clsPrefix + "-spin" }, + indicator + ), + tip ? _react2["default"].createElement( + "div", + { className: clsPrefix + "-desc" }, + tip + ) : null + ), + !tip && children && _react2["default"].createElement( + "div", + { className: clsPrefix + "-desc" }, + children + ) + ); + } else if (loadingType === "rotate") { + dom = _react2["default"].createElement( + "div", + null, + _react2["default"].createElement( + "div", + _extends({ className: classes }, others), + _react2["default"].createElement( + "div", + { className: clsPrefix + "-spin" }, + _react2["default"].createElement("img", { src: loadImg }) + ), + tip ? _react2["default"].createElement( + "p", + { className: clsPrefix + "-desc" }, + tip + ) : null + ), + !tip && children && _react2["default"].createElement( + "div", + { className: clsPrefix + "-desc" }, + children + ) + ); + } else if (loadingType === "default") { + var defaultTip = tip ? tip : local.loading; + dom = _react2["default"].createElement( + "div", + { className: clsPrefix + "-default-container" }, + _react2["default"].createElement( + "div", + _extends({ className: classes }, others), + _react2["default"].createElement( + "div", + { className: clsPrefix + "-spin" }, + _react2["default"].createElement("img", { src: loadDefault }) + ) + ), + _react2["default"].createElement( + "div", + { className: clsPrefix + "-desc" }, + defaultTip + ) + ); + } else if (loadingType === "line") { + dom = _react2["default"].createElement( + "div", + null, + _react2["default"].createElement( + "div", + _extends({ className: classes }, others), + _react2["default"].createElement("div", null), + _react2["default"].createElement("div", null), + _react2["default"].createElement("div", null), + _react2["default"].createElement("div", null), + _react2["default"].createElement("div", null) + ), + tip ? _react2["default"].createElement( + "p", + { className: clsPrefix + "-desc" }, + tip + ) : null, + !tip && children && _react2["default"].createElement( + "div", + { className: clsPrefix + "-desc" }, + children + ) + ); + } - var keyboardInputProps = {}; - if (props.keyboardInput) { - keyboardInputProps.readOnly = false; - keyboardInputProps.onChange = this.inputChange; - keyboardInputProps.value = state.inputValue.format && state.inputValue.isValid() && this.props.validatorFunc(state.inputValue) ? state.inputValue.format(props.format) : state.inputValue; - } else { - keyboardInputProps.readOnly = true; - keyboardInputProps.value = value && this.getValue(value) || ""; + var backClassObj = (_backClassObj = {}, _defineProperty(_backClassObj, clsPrefix + "-backdrop", true), _defineProperty(_backClassObj, "full-screen", fullScreen), _backClassObj); + + if (showBackDrop) { + dom = _react2["default"].createElement( + "div", + { className: (0, _classnames3["default"])(backClassObj) }, + dom + ); } - var classes = (0, _classnames2["default"])(props.className, "datepicker-container"); - return _react2["default"].createElement( + + return typeof window !== 'undefined' ? _react2["default"].createElement( + _Portal2["default"], + { container: container }, + dom + ) : _react2["default"].createElement( "div", - _extends({ className: classes, onMouseEnter: this.onDateHover, onClick: this.stopPropagation - }, (0, _omit2["default"])(others, ['onDateInputBlur', 'getCalendarContainer', 'showToday', 'renderFooter', 'keyboardInput', 'showDateInput', 'showTime', 'closeIcon', 'renderIcon', 'focusOnOpen', 'defultSelect', 'onOpenChange', 'locale', 'showMonthInput', 'onKeyDown', 'renderError', 'format', 'placeholder', 'disabledTime', 'onChange', 'disabledDate', 'iconClick', 'outInputKeydown'])), - _react2["default"].createElement( - _Picker2["default"], - _extends({ - animation: "slide-up" - }, props, pickerChangeHandler, { - onOpenChange: this.onOpenChange, - calendar: calendar, - mode: 'year', - open: 'defaultPanelShown' in props ? defaultPanelShown : this.state.open, - value: state.value - }), - function () { - return _react2["default"].createElement( - _beeInputGroup2["default"], - { simple: true, className: "datepicker-input-group", - onMouseEnter: _this2.onMouseEnter, - onMouseLeave: _this2.onMouseLeave - }, - _react2["default"].createElement(_beeFormControl2["default"], _extends({ - ref: function ref(_ref) { - return _this2.outInput = _ref; - }, - disabled: props.disabled, - placeholder: _this2.props.placeholder, - onClick: function onClick(event) { - _this2.onClick(event); - }, - focusSelect: props.defaultSelected, - onFocus: function onFocus(v, e) { - _this2.outInputFocus(e); - }, - onKeyDown: _this2.outInputKeydown - // value={(value && value.format(props.format)) || ""} - }, keyboardInputProps, autofocus)), - showClose && _this2.state.value && _this2.state.showClose && !props.disabled ? _react2["default"].createElement( - _beeInputGroup2["default"].Button, - { shape: "border", - onClick: _this2.clear }, - props.closeIcon() - ) : _react2["default"].createElement( - _beeInputGroup2["default"].Button, - { shape: "border", - onClick: function onClick(e) { - props.keyboardInput ? _this2.iconClick(e) : ''; - } }, - props.renderIcon() - ) - ); - } - ) + null, + dom ); }; - return DatePicker; + return Loading; }(_react.Component); - var _initialiseProps = function _initialiseProps() { - var _this3 = this; - - this.initValue = function (props) { - var value = props.value || props.defaultValue; - if (value) { - if (typeof value == 'string') { - if ((0, _moment2["default"])(value).isValid()) { - value = (0, _moment2["default"])(value); - } else { - console.error('value is not in the correct format'); - value = ''; - } - } else if (value.format && value.isValid()) { - value = value; - } else { - console.error('value is not in the correct format'); - value = ''; - } - } - return value; - }; + Loading.propTypes = propTypes; + Loading.defaultProps = defaultProps; + Loading.contextTypes = { + beeLocale: _propTypes2["default"].object + }; - this.getValue = function (value) { - var format = _this3.props.format; + exports["default"] = Loading; + module.exports = exports["default"]; - if (typeof format == 'string') { - return value.format(format); - } else { - return value.format(format[0]); - } - }; + /***/ }), + /* 1210 */ + /***/ (function(module, exports, __webpack_require__) { - this.onChange = function (value) { - _this3.setState({ value: value }); - }; + "use strict"; - this.inputFocus = function () { - var _props = _this3.props, - format = _props.format, - validatorFunc = _props.validatorFunc, - disabledDate = _props.disabledDate; - var input = document.querySelector('.rc-calendar-input'); - if (input) { - if (input.value) { - input.select(); - } else { - input.focus(); - } - input.onkeydown = function (e) { - if (e.keyCode == _tinperBeeCore.KeyCode.DELETE) { - input.value = ''; - _this3.fireChange('', ''); - } else if (e.keyCode == _tinperBeeCore.KeyCode.ESC) { - _this3.setState({ - open: false - }); - var v = _this3.state.value; - _this3.props.onOpenChange(false, v, v && _this3.getValue(v) || ''); - _reactDom2["default"].findDOMNode(_this3.outInput).focus(); // 按esc时候焦点回到input输入框 - } else if (e.keyCode == _tinperBeeCore.KeyCode.ENTER) { - var parsed = (0, _moment2["default"])(input.value, format, true); - var isDisabled = disabledDate && disabledDate(parsed); - if (parsed.isValid() && validatorFunc(input.value) && !isDisabled) { - _this3.setState({ - open: false - }); - var _v = _this3.state.value; - _this3.props.onOpenChange(false, _v, _v && _this3.getValue(_v) || ''); - _reactDom2["default"].findDOMNode(_this3.outInput).focus(); - } - if (!input.value) { - _this3.setState({ - open: false - }); - } - } - _this3.props.onKeyDown && _this3.props.onKeyDown(e); - }; + module.exports = { + 'lang': 'zh-cn', + 'loading': '加载中...', + 'en-us': { + 'loading': 'Loading...' + }, + 'zh-tw': { + 'loading': '加載中...' } - }; + }; - this.onOpenChange = function (open) { - var props = _this3.props; - var self = _this3; - _this3.setState({ - open: open - }, function () { - if (open) { - setTimeout(function () { - self.inputFocus(); - }, 0); - } - }); - var value = self.state.value; - props.onOpenChange(open, value, value && _this3.getValue(value) || ''); - if (open) { - setTimeout(function () { - self.inputFocus(); - }, 200); - } - }; + /***/ }), + /* 1211 */ + /***/ (function(module, exports, __webpack_require__) { - this.handleCalendarChange = function (value) { - var props = _this3.props; - _this3.setState({ value: value, inputValue: value && _this3.getValue(value) || '' }); - _this3.fireChange(value, value && _this3.getValue(value) || ''); - }; + "use strict"; - this.handleChange = function (value) { - var props = _this3.props; - _this3.setState({ - value: value && _extends(value, { _type: 'date' }) || value, - inputValue: value && _this3.getValue(value) || '' - }); - if (timerDatePicker) { - clearTimeout(_this3.timerout); - _this3.fireChange(value, value && _this3.getValue(value) || ''); - timerDatePicker = false; - _this3.timerout = window.setTimeout(function () { - timerDatePicker = true; - }, 300); - } - }; - this.onClick = function (e) { - var props = _this3.props; - if (props.keyboardInput) e.stopPropagation(); - var value = _this3.state.value; - if (props.keyboardInput) { - props.onClick && props.onClick(e.nativeEvent, value || null, _this3.state.inputValue); + Object.defineProperty(exports, "__esModule", { + value: true + }); + + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + + exports.getComponentLocale = getComponentLocale; + exports.getLocaleCode = getLocaleCode; + function getComponentLocale(props, context, componentName, getDefaultLocale) { + var locale = {}; + if (context && context.beeLocale && context.beeLocale[componentName]) { + locale = context.beeLocale[componentName]; } else { - props.onClick && props.onClick(e.nativeEvent, value || null, value && _this3.getValue(value) || ''); + var defaultLocale = getDefaultLocale(); + + locale = defaultLocale["default"] || defaultLocale; } - }; - this.inputChange = function (value, e) { - if (_this3.props.keyboardInput) e.stopPropagation(); - _this3.setState({ - inputValue: value - }); - if ((0, _moment2["default"])(value, _this3.props.format).isValid() && _this3.props.validatorFunc(value)) { - _this3.setState({ - value: (0, _moment2["default"])(value, _this3.props.format) - }); - value = (0, _moment2["default"])(value, _this3.props.format); - _this3.fireChange(value, value && _this3.getValue(value) || ''); + var result = _extends({}, locale, props.locale); + if (props.locale) { + result.lang = _extends({}, locale.lang, props.locale.lang); } else { - _this3.fireChange(null, value); + result.lang = _extends({}, locale.lang); } - }; - - this.outInputFocus = function (e) { - if (_this3.props.hasOwnProperty('open')) e.stopPropagation(); - _this3.props.outInputFocus && _this3.props.outInputFocus(e); - }; - this.iconClick = function (e) { - _this3.props.iconClick && _this3.props.iconClick(e); - }; + return result; + } - this.outInputKeydown = function (e) { - if (e.keyCode == _tinperBeeCore.KeyCode.DELETE) { - _this3.setState({ - inputValue: '' - }); - _this3.fireChange('', ''); - } else if (e.keyCode == _tinperBeeCore.KeyCode.ESC) { - _this3.setState({ - open: false - }); - var value = _this3.state.inputValue; - if ((0, _moment2["default"])(value, _this3.props.format).isValid() && _this3.props.validatorFunc(value)) { - _this3.setState({ - value: (0, _moment2["default"])(value, _this3.props.format) - }); - value = (0, _moment2["default"])(value, _this3.props.format); - _this3.fireChange(value, value && _this3.getValue(value) || ''); - } else { - _this3.fireChange(null, value); - } + function getLocaleCode(context) { + var localeCode = context.beeLocale && context.beeLocale.lang; + // Had use LocaleProvide but didn't set locale + if (context.beeLocale && context.beeLocale.exist && !localeCode) { + return 'zh-cn'; } - _this3.props.outInputKeydown && _this3.props.outInputKeydown(e); - }; - - this.onMouseLeave = function (e) { - _this3.setState({ - showClose: false - }); - }; - - this.onMouseEnter = function (e) { - _this3.setState({ - showClose: true - }); - }; + return localeCode; + } - this.clear = function (e) { - e.stopPropagation(); - _this3.setState({ - inputValue: '', - value: '' - }); - _this3.fireChange('', ''); - }; + /***/ }), + /* 1212 */ + /***/ (function(module, exports, __webpack_require__) { - this.handleSelect = function (value) { - _this3.setState({ - value: value - }); - _this3.props.onSelect && _this3.props.onSelect(value, value && _this3.getValue(value) || ''); - // ReactDOM.findDOMNode(this.outInput).focus() - }; + __webpack_require__(1213); + module.exports = __webpack_require__(1214); - this.onDateInputBlur = function (e) { - var input = document.querySelector('.rc-calendar-input'); - var value = void 0; - if (input) { - value = input.value ? input.value : ''; - } - _this3.props.onDateInputBlur && _this3.props.onDateInputBlur(e, value); - }; - this.onDateHover = function () { - var format = _this3.props.format; - var value = _this3.state.value, - newValue = value && _this3.getValue(value); + /***/ }), + /* 1213 */ + /***/ (function(module, exports) { + // removed by extract-text-webpack-plugin - var inputValue = _this3.outInput.state.value; - inputValue = format ? inputValue : inputValue && _this3.getValue((0, _moment2["default"])(inputValue)); + /***/ }), + /* 1214 */ + /***/ (function(module, exports, __webpack_require__) { - if (newValue && inputValue !== newValue) { - _this3.fireChange(value, newValue || ''); - } - }; + "use strict"; - this.stopPropagation = function (e) { - e.stopPropagation(); - }; - this.fireChange = function (value, stringValue) { - _this3.fileChange && _this3.props.onChange(value, stringValue); - _this3.fileChange = false; - _this3.fileChangeTimer = window.setTimeout(function () { - _this3.fileChange = true; - }, 10); - }; - }; + var Table = __webpack_require__(1215); + var Column = __webpack_require__(464); + var ColumnGroup = __webpack_require__(465); - DatePicker.defaultProps = { - closeIcon: function closeIcon() { - return _react2["default"].createElement(_beeIcon2["default"], { type: "uf-close-c" }); - }, - renderIcon: function renderIcon() { - return _react2["default"].createElement(_beeIcon2["default"], { type: "uf-calendar" }); - }, - focusOnOpen: true, - defultSelect: false, - onOpenChange: function onOpenChange() {}, - onChange: function onChange() {}, - locale: _zh_CN2["default"], - showMonthInput: false, - onKeyDown: function onKeyDown() {}, - renderError: function renderError() {}, - showClose: true, - format: "YYYY-MM-DD", - showSecond: true, - showHour: true, - showMinute: true, - validatorFunc: function validatorFunc() { - return true; - } - }; + Table.Column = Column; + Table.ColumnGroup = ColumnGroup; - exports["default"] = DatePicker; - module.exports = exports["default"]; + module.exports = Table; /***/ }), - /* 1270 */ + /* 1215 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -240346,1141 +230655,1718 @@ var _react = __webpack_require__(0); - var _react2 = _interopRequireDefault(_react); + var _react2 = _interopRequireDefault(_react); + + var _propTypes = __webpack_require__(1); + + var _propTypes2 = _interopRequireDefault(_propTypes); + + var _componentClasses = __webpack_require__(15); + + var _componentClasses2 = _interopRequireDefault(_componentClasses); + + var _TableRow = __webpack_require__(1216); + + var _TableRow2 = _interopRequireDefault(_TableRow); + + var _TableHeader = __webpack_require__(1221); + + var _TableHeader2 = _interopRequireDefault(_TableHeader); + + var _utils = __webpack_require__(109); + + var _shallowequal = __webpack_require__(73); + + var _shallowequal2 = _interopRequireDefault(_shallowequal); + + var _addEventListener = __webpack_require__(138); + + var _addEventListener2 = _interopRequireDefault(_addEventListener); + + var _ColumnManager = __webpack_require__(1256); + + var _ColumnManager2 = _interopRequireDefault(_ColumnManager); + + var _createStore = __webpack_require__(1257); + + var _createStore2 = _interopRequireDefault(_createStore); + + var _beeLoading = __webpack_require__(1258); + + var _beeLoading2 = _interopRequireDefault(_beeLoading); + + var _beeIcon = __webpack_require__(111); + + var _beeIcon2 = _interopRequireDefault(_beeIcon); + + var _i18n = __webpack_require__(177); + + var _i18n2 = _interopRequireDefault(_i18n); + + var _tool = __webpack_require__(178); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + + function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + + var propTypes = { + data: _propTypes2["default"].array, + expandIconAsCell: _propTypes2["default"].bool, + defaultExpandAllRows: _propTypes2["default"].bool, + expandedRowKeys: _propTypes2["default"].array, + defaultExpandedRowKeys: _propTypes2["default"].array, + useFixedHeader: _propTypes2["default"].bool, + columns: _propTypes2["default"].array, + clsPrefix: _propTypes2["default"].string, + bodyStyle: _propTypes2["default"].object, + style: _propTypes2["default"].object, + //特殊的渲染规则的key值 + rowKey: _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].func]), + rowClassName: _propTypes2["default"].func, + //column的主键,和 column.key 作用相同 + columnKey: _propTypes2["default"].string, + expandedRowClassName: _propTypes2["default"].func, + childrenColumnName: _propTypes2["default"].string, + onExpand: _propTypes2["default"].func, + onRowHover: _propTypes2["default"].func, + onExpandedRowsChange: _propTypes2["default"].func, + indentSize: _propTypes2["default"].number, + onRowClick: _propTypes2["default"].func, + onRowDoubleClick: _propTypes2["default"].func, + expandIconColumnIndex: _propTypes2["default"].number, + //是否显示表头 + showHeader: _propTypes2["default"].bool, + title: _propTypes2["default"].func, + footer: _propTypes2["default"].func, + emptyText: _propTypes2["default"].func, + scroll: _propTypes2["default"].object, + rowRef: _propTypes2["default"].func, + getBodyWrapper: _propTypes2["default"].func, + children: _propTypes2["default"].node, + draggable: _propTypes2["default"].bool, + minColumnWidth: _propTypes2["default"].number, + filterable: _propTypes2["default"].bool, + filterDelay: _propTypes2["default"].number, + onFilterChange: _propTypes2["default"].func, + onFilterClear: _propTypes2["default"].func, + syncHover: _propTypes2["default"].bool, + tabIndex: _propTypes2["default"].string, + hoverContent: _propTypes2["default"].func, + size: _propTypes2["default"].oneOf(['sm', 'md', 'lg']), + rowDraggAble: _propTypes2["default"].bool, + hideDragHandle: _propTypes2["default"].bool, // 隐藏行拖拽把手 + onDropRow: _propTypes2["default"].func, + onDragRowStart: _propTypes2["default"].func, + onBodyScroll: _propTypes2["default"].func, + bodyDisplayInRow: _propTypes2["default"].bool, // 表格内容超出列宽度时进行换行 or 以...形式展现 + headerDisplayInRow: _propTypes2["default"].bool, // 表头内容超出列宽度时进行换行 or 以...形式展现 + showRowNum: _propTypes2["default"].oneOfType([_propTypes2["default"].bool, _propTypes2["default"].object]), // 表格是否自动生成序号,格式为{base:number || 0,defaultKey:string || '_index',defaultName:string || '序号'} + onPaste: _propTypes2["default"].func + }; + + var defaultProps = { + data: [], + useFixedHeader: false, + expandIconAsCell: false, + defaultExpandAllRows: false, + defaultExpandedRowKeys: [], + columnKey: 'key', + rowKey: 'key', + rowClassName: function rowClassName() { + return ''; + }, + expandedRowClassName: function expandedRowClassName() { + return ''; + }, + onExpand: function onExpand() {}, + onExpandedRowsChange: function onExpandedRowsChange() {}, + onRowClick: function onRowClick() {}, + + // onRowDoubleClick() { }, + clsPrefix: 'u-table', + bodyStyle: {}, + style: {}, + childrenColumnName: 'children', + indentSize: 15, + expandIconColumnIndex: 0, + showHeader: true, + scroll: {}, + rowRef: function rowRef() { + return null; + }, + getBodyWrapper: function getBodyWrapper(body) { + return body; + }, + // emptyText: () =>
    {locale["no_data"]}
    , + columns: [], + minColumnWidth: 80, + locale: {}, + syncHover: true, + // setRowHeight:()=>{}, + setRowParentIndex: function setRowParentIndex() {}, + tabIndex: '0', + heightConsistent: false, + size: 'md', + rowDraggAble: false, + hideDragHandle: false, + onDropRow: function onDropRow() {}, + onDragRowStart: function onDragRowStart() {}, + onBodyScroll: function onBodyScroll() {}, + bodyDisplayInRow: true, + headerDisplayInRow: true, + showRowNum: false, + onPaste: function onPaste() {} + }; + + var expandIconCellWidth = Number(43); + + var Table = function (_Component) { + _inherits(Table, _Component); + + function Table(props) { + _classCallCheck(this, Table); + + var _this = _possibleConstructorReturn(this, _Component.call(this, props)); + + _this.resize = function () { + (0, _utils.debounce)(_this.syncFixedTableRowHeight, 150); + _this.computeTableWidth(); + var renderFlag = _this.state.renderFlag; + _this.setState({ + renderFlag: !renderFlag + }); + }; + + _this.getTableUID = function () { + var uid = "_table_uid_" + new Date().getTime(); + _this.tableUid = uid; + var div = document.createElement("div"); + // div.className = "u-table-drag-hidden-cont"; + div.className = "u-table-drag-hidden-cont"; + div.id = uid; + _this.contentTable.appendChild(div); + }; + + _this.onDragRowStart = function (currentKey) { + var data = _this.state.data, + currentIndex = void 0, + record = void 0; + data.forEach(function (da, i) { + // tr 的唯一标识通过 data.key 或 rowKey 两种方式传进来 + var trKey = da.key ? da.key : _this.getRowKey(da, i); + if (trKey == currentKey) { + currentIndex = i; + record = da; + } + }); + _this.props.onDragRowStart && _this.props.onDragRowStart(record, currentIndex); + }; - var _reactDom = __webpack_require__(3); + _this.onDragRow = function (currentKey, targetKey) { + var data = _this.state.data, + currentIndex = void 0, + targetIndex = void 0, + record = void 0; + data.forEach(function (da, i) { + // tr 的唯一标识通过 data.key 或 rowKey 两种方式传进来 + var trKey = da.key ? da.key : _this.getRowKey(da, i); + if (trKey == currentKey) { + currentIndex = i; + record = da; + } + if (trKey == targetKey) { + targetIndex = i; + } + }); + if (currentIndex > -1) { + data = _this.swapArray(data, currentIndex, targetIndex); + _this.props.onDropRow && _this.props.onDropRow(data, record, targetIndex); + _this.setState({ + data: data + }); + } else { + _this.props.onDropRow && _this.props.onDropRow(data, record, targetIndex); + } + }; - var _reactDom2 = _interopRequireDefault(_reactDom); + _this.swapArray = function (arr, index1, index2) { + var value1 = arr[index1]; + arr.splice(index1, 1); + if (index1 < index2) { + arr.splice(index2, 0, value1); + } else { + arr.splice(index2 + 1, 0, value1); + } - var _propTypes = __webpack_require__(1); + return arr; + }; - var _propTypes2 = _interopRequireDefault(_propTypes); + _this.renderDragHideTable = function () { + var _this$props = _this.props, + columns = _this$props.columns, + dragborder = _this$props.dragborder, + dragborderKey = _this$props.dragborderKey; - var _KeyCode = __webpack_require__(59); + if (!dragborder) return null; + var sum = 0; + return _react2["default"].createElement( + 'div', + { id: 'u-table-drag-hide-table-' + dragborderKey, className: _this.props.clsPrefix + '-hiden-drag' }, + columns.map(function (da, i) { + sum += da.width ? da.width : 0; + return _react2["default"].createElement('div', { className: _this.props.clsPrefix + '-hiden-drag-li', key: da + "_hiden_" + i, style: { left: sum + "px" } }); + }) + ); + }; - var _KeyCode2 = _interopRequireDefault(_KeyCode); + _this.getTdPadding = function (td) { + var tdPaddingTop = _this.getStyle(td, 'paddingTop'), + tdPaddingBottom = _this.getStyle(td, 'paddingBottom'), + tdBorderTop = _this.getStyle(td, 'borderTopWidth'), + tdBorderBottom = _this.getStyle(td, 'borderBottomWidth'); + return Number(tdPaddingTop.replace('px', '')) + Number(tdPaddingBottom.replace('px', '')) + Number(tdBorderTop.replace('px', '')) + Number(tdBorderBottom.replace('px', '')); + }; - var _reactLifecyclesCompat = __webpack_require__(14); + _this.onRowHoverMouseEnter = function () { - var _DateTable = __webpack_require__(334); + _this.store.setState({ + currentHoverKey: _this.currentHoverKey + }); + _this.hoverDom.style.display = 'block'; + }; - var _DateTable2 = _interopRequireDefault(_DateTable); + _this.onRowHoverMouseLeave = function () {}; - var _CalendarHeader = __webpack_require__(184); + _this.onFocus = function (e) { + _this.props.onKeyTab && _this.props.onKeyTab(); + }; - var _CalendarHeader2 = _interopRequireDefault(_CalendarHeader); + _this.onKeyDown = function (e) { + var event = _utils.Event.getEvent(e); + // event.preventDefault?event.preventDefault():event.returnValue = false; + if (event.keyCode === 38) { + //up + event.preventDefault && event.preventDefault(); + _this.props.onKeyUp && _this.props.onKeyUp(); + } else if (event.keyCode === 40) { + //down + event.preventDefault && event.preventDefault(); + _this.props.onKeyDown && _this.props.onKeyDown(); + } + _this.props.onTableKeyDown && _this.props.onTableKeyDown(); + }; - var _CalendarFooter = __webpack_require__(470); + var expandedRowKeys = []; + var rows = [].concat(_toConsumableArray(props.data)); + var showDragHandle = !props.hideDragHandle && props.rowDraggAble; + _this.columnManager = new _ColumnManager2["default"](props.columns, props.children, props.originWidth, showDragHandle, props.showRowNum); // 加入props.showRowNum参数 + _this.store = (0, _createStore2["default"])({ currentHoverKey: null }); + _this.firstDid = true; + if (props.defaultExpandAllRows) { + for (var i = 0; i < rows.length; i++) { + var row = rows[i]; + expandedRowKeys.push(_this.getRowKey(row, i)); + rows = rows.concat(row[props.childrenColumnName] || []); + } + } else { + expandedRowKeys = props.expandedRowKeys || props.defaultExpandedRowKeys; + } - var _CalendarFooter2 = _interopRequireDefault(_CalendarFooter); + _this.state = { + expandedRowKeys: expandedRowKeys, + data: props.data, + currentHoverKey: null, + scrollPosition: 'left', + fixedColumnsHeadRowsHeight: [], + fixedColumnsBodyRowsHeight: [], + fixedColumnsExpandedRowsHeight: {} //扩展行的高度 + }; - var _CalendarMixin = __webpack_require__(474); + _this.onExpandedRowsChange = _this.onExpandedRowsChange.bind(_this); + _this.onExpanded = _this.onExpanded.bind(_this); + _this.onRowDestroy = _this.onRowDestroy.bind(_this); + _this.getRowKey = _this.getRowKey.bind(_this); + _this.getExpandedRows = _this.getExpandedRows.bind(_this); + _this.getHeader = _this.getHeader.bind(_this); + _this.getHeaderRows = _this.getHeaderRows.bind(_this); + _this.getExpandedRow = _this.getExpandedRow.bind(_this); + _this.getRowsByData = _this.getRowsByData.bind(_this); + _this.getRows = _this.getRows.bind(_this); + _this.getColGroup = _this.getColGroup.bind(_this); + _this.getLeftFixedTable = _this.getLeftFixedTable.bind(_this); + _this.getRightFixedTable = _this.getRightFixedTable.bind(_this); + _this.getTable = _this.getTable.bind(_this); + _this.getTitle = _this.getTitle.bind(_this); + _this.getFooter = _this.getFooter.bind(_this); + _this.getEmptyText = _this.getEmptyText.bind(_this); + _this.getHeaderRowStyle = _this.getHeaderRowStyle.bind(_this); + _this.syncFixedTableRowHeight = _this.syncFixedTableRowHeight.bind(_this); + _this.resetScrollX = _this.resetScrollX.bind(_this); + _this.findExpandedRow = _this.findExpandedRow.bind(_this); + _this.isRowExpanded = _this.isRowExpanded.bind(_this); + _this.detectScrollTarget = _this.detectScrollTarget.bind(_this); + _this.handleBodyScroll = _this.handleBodyScroll.bind(_this); + _this.handleRowHover = _this.handleRowHover.bind(_this); + _this.computeTableWidth = _this.computeTableWidth.bind(_this); + _this.onBodyMouseLeave = _this.onBodyMouseLeave.bind(_this); + _this.tableUid = null; + _this.contentTable = null; + _this.leftColumnsLength; //左侧固定列的长度 + _this.centerColumnsLength; //非固定列的长度 + _this.columnsChildrenList = []; //复杂表头、所有叶子节点 + return _this; + } - var _CommonMixin = __webpack_require__(186); + Table.prototype.componentWillMount = function componentWillMount() { + this.centerColumnsLength = this.columnManager.centerColumns().length; + this.leftColumnsLength = this.columnManager.leftColumns().length; + }; - var _DateInput = __webpack_require__(78); + Table.prototype.componentDidMount = function componentDidMount() { + this.getTableUID(); + _utils.EventUtil.addHandler(this.contentTable, 'keydown', this.onKeyDown); + _utils.EventUtil.addHandler(this.contentTable, 'focus', this.onFocus); + setTimeout(this.resetScrollX, 300); + //含有纵向滚动条 + // if(this.props.scroll.y){ + this.scrollbarWidth = (0, _utils.measureScrollbar)(); + // } + //后续也放在recevice里面 + if (!this.props.originWidth) { + this.computeTableWidth(); + } + if (this.columnManager.isAnyColumnsFixed()) { + this.syncFixedTableRowHeight(); + this.resizeEvent = (0, _addEventListener2["default"])(window, 'resize', this.resize); + } + }; - var _DateInput2 = _interopRequireDefault(_DateInput); + Table.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { + var _props = this.props, + hideDragHandle = _props.hideDragHandle, + rowDraggAble = _props.rowDraggAble, + showRowNum = _props.showRowNum; - var _util = __webpack_require__(32); + if ('data' in nextProps) { + this.setState({ + data: nextProps.data + }); + } + if ('expandedRowKeys' in nextProps) { + this.setState({ + expandedRowKeys: nextProps.expandedRowKeys + }); + } + if (nextProps.columns && nextProps.columns !== this.props.columns) { + this.columnManager.reset(nextProps.columns, null, showRowNum, !hideDragHandle && rowDraggAble); // 加入this.props.showRowNum参数 + if (nextProps.columns.length !== this.props.columns.length && this.refs && this.bodyTable) { + this.scrollTop = this.bodyTable.scrollTop; + } + } else if (nextProps.children !== this.props.children) { + this.columnManager.reset(null, nextProps.children, showRowNum, !hideDragHandle && rowDraggAble); // 加入this.props.showRowNum参数 + } + //适配lazyload + if (nextProps.scrollTop > -1) { + // this.bodyTable.scrollTop = nextProps.scrollTop; + this.scrollTop = nextProps.scrollTop; + } + // fix:模态框中使用table,计算的滚动条宽度为0的bug + // fix:表格首次渲染时 display:none,再显示时,未重新计算,导致表行出现错位的bug + if (this.scrollbarWidth <= 0 && this.props.scroll.y) { + this.scrollbarWidth = (0, _utils.measureScrollbar)(); + } + if (!nextProps.originWidth) { + this.computeTableWidth(); + this.firstDid = true; //避免重复update + } + if (nextProps.resetScroll) { + this.resetScrollX(); + } - var _toTime = __webpack_require__(476); + // console.log('this.scrollTop**********',this.scrollTop); + }; - var _moment = __webpack_require__(4); + Table.prototype.componentDidUpdate = function componentDidUpdate(prevProps, prevState) { + // todo: IE 大数据渲染,行高不固定,且设置了 heightConsistent={true} 时,滚动加载操作会导致 ie11 浏览器崩溃 + // https://github.com/tinper-bee/bee-table/commit/bd2092cdbaad236ff89477304e58dea93325bf09 + if (this.columnManager.isAnyColumnsFixed()) { + this.syncFixedTableRowHeight(); + } - var _moment2 = _interopRequireDefault(_moment); + //适应模态框中表格、以及父容器宽度变化的情况 + if (typeof this.props.scroll.x !== 'number' && this.contentTable.getBoundingClientRect().width !== this.contentDomWidth && this.firstDid) { + this.computeTableWidth(); + this.firstDid = false; //避免重复update + } + if (this.scrollTop > -1) { + this.refs.fixedColumnsBodyLeft && (this.refs.fixedColumnsBodyLeft.scrollTop = this.scrollTop); + this.refs.fixedColumnsBodyRight && (this.refs.fixedColumnsBodyRight.scrollTop = this.scrollTop); + this.bodyTable.scrollTop = this.scrollTop; + this.scrollTop = -1; + } + if (prevProps.data.length === 0 || this.props.data.length === 0) { + this.resetScrollX(); + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + // 是否传入 scroll中的y属性,如果传入判断是否是整数,如果是则进行比较 。bodyTable 的clientHeight进行判断 + this.isShowScrollY(); + }; - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + Table.prototype.componentWillUnmount = function componentWillUnmount() { + // 移除绑定事件,避免内存泄漏 + this.contentTable = null; + _utils.EventUtil.removeHandler(this.contentTable, 'keydown', this.onKeyDown); + _utils.EventUtil.removeHandler(this.contentTable, 'focus', this.onFocus); + if (this.resizeEvent) { + this.resizeEvent.remove(); + } + }; - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + Table.prototype.computeTableWidth = function computeTableWidth() { + var expandIconAsCell = this.props.expandIconAsCell; + //如果用户传了scroll.x按用户传的为主 - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + var setWidthParam = this.props.scroll.x; - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + if (typeof setWidthParam == 'number') { + var numSetWidthParam = parseInt(setWidthParam); + this.contentWidth = numSetWidthParam; + } else { + // this.preContentDomWidth = this.contentDomWidth; + //计算总表格宽度、根据表格宽度和各列的宽度和比较,重置最后一列 + this.contentDomWidth = this.contentTable.getBoundingClientRect().width; //表格容器宽度 - function noop() {} + this.contentWidth = this.contentDomWidth; //默认与容器宽度一样 + } + var computeObj = this.columnManager.getColumnWidth(this.contentWidth); + var expandColWidth = expandIconAsCell ? expandIconCellWidth : 0; + var lastShowIndex = computeObj.lastShowIndex; + this.computeWidth = computeObj.computeWidth + expandColWidth; - var Calendar = function (_React$Component) { - _inherits(Calendar, _React$Component); + this.domWidthDiff = this.contentDomWidth - this.computeWidth; + if (typeof setWidthParam == 'string' && setWidthParam.indexOf('%')) { + this.contentWidth = this.contentWidth * parseInt(setWidthParam) / 100; + this.domWidthDiff = this.contentDomWidth - this.contentWidth; + } - function Calendar(props) { - _classCallCheck(this, Calendar); + if (this.computeWidth < this.contentWidth) { + var contentWidthDiff = this.scrollbarWidth ? this.contentWidth - this.computeWidth - this.scrollbarWidth : this.contentWidth - this.computeWidth; + //bordered的表格需要减去边框的差值1 + if (this.props.bordered) { + contentWidthDiff = contentWidthDiff - 1; + } + this.setState({ contentWidthDiff: contentWidthDiff, lastShowIndex: lastShowIndex }); + } else { + this.contentWidth = this.computeWidth; + this.setState({ contentWidthDiff: 0, lastShowIndex: lastShowIndex }); //重新渲染,为了显示滚动条 + } + }; + //根据内容动态的判断是否显示纵向滚动条 - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); - _initialiseProps.call(_this); + Table.prototype.isShowScrollY = function isShowScrollY() { + var props = this.props; + var y = props.scroll && props.scroll.y; + if (y) { + var bodyH = this.bodyTable.clientHeight; + var bodyContentH = this.bodyTable.querySelector('table').clientHeight; + var rightBodyTable = this.refs.fixedColumnsBodyRight; + // const leftBodyTable = this.refs.fixedColumnsBodyLeft; + var overflowy = bodyContentH <= bodyH ? 'auto' : 'scroll'; + this.bodyTable.style.overflowY = overflowy; - _this.state = { - mode: _this.props.mode || 'date', - value: props.value || props.defaultValue || (0, _moment2["default"])(), - selectedValue: props.selectedValue || props.defaultSelectedValue - }; - return _this; - } + this.headTable.style.overflowY = overflowy; + rightBodyTable && (rightBodyTable.style.overflowY = overflowy); + // 没有纵向滚动条时,表头横向滚动条根据内容动态显示 待验证 + // if(overflowy == 'auto'){ + // this.fixedHeadTable && (this.fixedHeadTable.style.overflowX = 'auto'); + // rightBodyTable && (rightBodyTable.style.overflowX = 'auto'); + // leftBodyTable && (leftBodyTable.style.overflowX = 'auto'); + // } - Calendar.prototype.componentDidMount = function componentDidMount() { - if (this.props.showDateInput) { - this.saveFocusElement(_DateInput2["default"].getInstance()); } }; - Calendar.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, state) { - var value = nextProps.value, - selectedValue = nextProps.selectedValue; + Table.prototype.onExpandedRowsChange = function onExpandedRowsChange(expandedRowKeys) { + if (!this.props.expandedRowKeys) { + this.setState({ expandedRowKeys: expandedRowKeys }); + } + this.props.onExpandedRowsChange(expandedRowKeys); + }; - var newState = {}; + Table.prototype.onExpanded = function onExpanded(expanded, record, index, e) { + if (e) { + e.preventDefault(); + e.stopPropagation(); + } + var info = this.findExpandedRow(record); + if (typeof info !== 'undefined' && !expanded) { + this.onRowDestroy(record, index, true); + } else if (!info && expanded) { + var expandedRows = this.getExpandedRows().concat(); + expandedRows.push(this.getRowKey(record, index)); + this.onExpandedRowsChange(expandedRows); + } + this.props.onExpand(expanded, record, index); + }; - if ('mode' in nextProps && state.mode !== nextProps.mode) { - newState = { mode: nextProps.mode }; + Table.prototype.onRowDestroy = function onRowDestroy(record, rowIndex, isExpandOperation) { + var expandedRows = this.getExpandedRows().concat(); + var rowKey = this.getRowKey(record, rowIndex); + var index = -1; + expandedRows.forEach(function (r, i) { + if (r === rowKey) { + index = i; + } + }); + if (index !== -1) { + expandedRows.splice(index, 1); } - if ('value' in nextProps) { - newState.value = value || nextProps.defaultValue || (0, _CalendarMixin.getNowByCurrentStateValue)(state.value); + // + if (this.currentHoverKey == rowKey && this.hoverDom) { + this.hoverDom.style.display = 'none'; } - if ('selectedValue' in nextProps) { - newState.selectedValue = selectedValue; + // todo:如果是TableRow组件卸载触发的该方法,需要加判断,解决懒加载时,持续触发onExpandedRowsChange的问题 + if (isExpandOperation) { + this.onExpandedRowsChange(expandedRows); + } else { + var info = this.findExpandedRow(record); + if (typeof info === 'undefined') { + this.onExpandedRowsChange(expandedRows); + } } + }; - return newState; + Table.prototype.getRowKey = function getRowKey(record, index) { + var rowKey = this.props.rowKey; + var key = typeof rowKey === 'function' ? rowKey(record, index) : record[rowKey]; + (0, _utils.warningOnce)(key !== undefined, 'Each record in table should have a unique `key` prop,' + 'or set `rowKey` to an unique primary key.'); + return key; }; - Calendar.prototype.render = function render() { - var _this2 = this; + Table.prototype.getExpandedRows = function getExpandedRows() { + return this.props.expandedRowKeys || this.state.expandedRowKeys; + }; - var props = this.props, - state = this.state; - var locale = props.locale, - prefixCls = props.prefixCls, - disabledDate = props.disabledDate, - validatorFunc = props.validatorFunc, - format = props.format, - dateInputPlaceholder = props.dateInputPlaceholder, - timePicker = props.timePicker, - disabledTime = props.disabledTime, - clearIcon = props.clearIcon, - renderFooter = props.renderFooter, - showMonthInput = props.showMonthInput, - renderError = props.renderError, - onInputBlur = props.onInputBlur; - var value = state.value, - selectedValue = state.selectedValue, - mode = state.mode; + Table.prototype.getHeader = function getHeader(columns, fixed, leftFixedWidth, rightFixedWidth) { + var lastShowIndex = this.state.lastShowIndex; + var _props2 = this.props, + filterDelay = _props2.filterDelay, + onFilterChange = _props2.onFilterChange, + onFilterClear = _props2.onFilterClear, + filterable = _props2.filterable, + showHeader = _props2.showHeader, + expandIconAsCell = _props2.expandIconAsCell, + clsPrefix = _props2.clsPrefix, + onDragStart = _props2.onDragStart, + onDragEnter = _props2.onDragEnter, + onDragOver = _props2.onDragOver, + onDrop = _props2.onDrop, + onDragEnd = _props2.onDragEnd, + draggable = _props2.draggable, + onMouseDown = _props2.onMouseDown, + onMouseMove = _props2.onMouseMove, + onMouseUp = _props2.onMouseUp, + dragborder = _props2.dragborder, + onThMouseMove = _props2.onThMouseMove, + dragborderKey = _props2.dragborderKey, + minColumnWidth = _props2.minColumnWidth, + headerHeight = _props2.headerHeight, + afterDragColWidth = _props2.afterDragColWidth, + headerScroll = _props2.headerScroll, + bordered = _props2.bordered, + onDropBorder = _props2.onDropBorder, + onDraggingBorder = _props2.onDraggingBorder; - var showTimePicker = mode === 'time'; - var disabledTimeConfig = showTimePicker && disabledTime && timePicker ? (0, _util.getTimeConfig)(selectedValue, disabledTime) : null; + this.columnsChildrenList = []; //复杂表头拖拽,重新render表头前,将其置空 + var rows = this.getHeaderRows(columns); + if (expandIconAsCell && fixed !== 'right') { + rows[0].unshift({ + key: 'u-table-expandIconAsCell', + className: clsPrefix + '-expand-icon-th', + title: '', + rowSpan: rows.length, + width: expandIconCellWidth + }); + this.columnsChildrenList.unshift({ + className: "u-table-expand-icon-column", + key: "expand-icon" + }); + } + var trStyle = headerHeight && !fixed ? { height: headerHeight } : fixed ? this.getHeaderRowStyle(columns, rows) : null; + var drop = draggable ? { onDragStart: onDragStart, onDragOver: onDragOver, onDrop: onDrop, onDragEnd: onDragEnd, onDragEnter: onDragEnter, draggable: draggable } : {}; + var dragBorder = dragborder ? { onMouseDown: onMouseDown, onMouseMove: onMouseMove, onMouseUp: onMouseUp, dragborder: dragborder, onThMouseMove: onThMouseMove, dragborderKey: dragborderKey, onDropBorder: onDropBorder, onDraggingBorder: onDraggingBorder } : {}; + var contentWidthDiff = 0; + //非固定表格,宽度不够时自动扩充 + if (!fixed) { + contentWidthDiff = this.state.contentWidthDiff; + } + return showHeader ? _react2["default"].createElement(_TableHeader2["default"], _extends({}, drop, dragBorder, { + columnsChildrenList: this.columnsChildrenList, + locale: this.props.locale, + minColumnWidth: minColumnWidth, + contentWidthDiff: contentWidthDiff, + contentWidth: this.contentWidth, + lastShowIndex: expandIconAsCell ? parseInt(lastShowIndex) + 1 : lastShowIndex, + clsPrefix: clsPrefix, + rows: rows, + contentTable: this.contentTable, + rowStyle: trStyle, + fixed: fixed, + filterable: filterable, + onFilterChange: onFilterChange, + onFilterClear: onFilterClear, + filterDelay: filterDelay, + afterDragColWidth: afterDragColWidth, + contentDomWidth: this.contentDomWidth, + scrollbarWidth: this.scrollbarWidth, + headerScroll: headerScroll, + bordered: bordered, + leftFixedWidth: leftFixedWidth, + rightFixedWidth: rightFixedWidth + })) : null; + }; - var timePickerEle = null; + Table.prototype.getHeaderRows = function getHeaderRows(columns) { + var _this2 = this; - if (timePicker && showTimePicker) { - var timePickerProps = _extends({ - showHour: true, - showSecond: true, - showMinute: true - }, timePicker.props, disabledTimeConfig, { - onChange: this.onDateInputChange, - value: selectedValue, - disabledTime: disabledTime - }); + var currentRow = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; + var rows = arguments[2]; + var columnKey = this.props.columnKey; + var _state = this.state, + _state$contentWidthDi = _state.contentWidthDiff, + contentWidthDiff = _state$contentWidthDi === undefined ? 0 : _state$contentWidthDi, + _state$lastShowIndex = _state.lastShowIndex, + lastShowIndex = _state$lastShowIndex === undefined ? -1 : _state$lastShowIndex; - if (timePicker.props.defaultValue !== undefined) { - timePickerProps.defaultOpenValue = timePicker.props.defaultValue; + var filterCol = []; + rows = rows || []; + rows[currentRow] = rows[currentRow] || []; + + columns.forEach(function (column, i) { + if (!column.key) { + column.key = column[columnKey]; + } + if (column.rowSpan && rows.length < column.rowSpan) { + while (rows.length < column.rowSpan) { + rows.push([]); + } + } + var width = column.width; + if (typeof width == 'string' && width.indexOf('%') > -1 && _this2.contentWidth) { + width = parseInt(_this2.contentWidth * parseInt(width) / 100); + } else if (width) { + width = parseInt(width); + } + if (!column.fixed && lastShowIndex == i && width) { + width = width + contentWidthDiff; + } + var cell = { + key: column.key, + className: column.className || '', + children: column.title, + drgHover: column.drgHover, + fixed: column.fixed, + width: width, + dataindex: column.dataIndex, + textAlign: column.textAlign, + titleAlign: column.titleAlign, // 标题水平对齐方式 + required: column.required // 标题是否展示必填标志 + }; + if (column.onHeadCellClick) { + cell.onClick = column.onHeadCellClick; + } + if (column.children) { + _this2.getHeaderRows(column.children, currentRow + 1, rows); + } else { + _this2.columnsChildrenList.push(column); //复杂表头拖拽,所有叶子节点 + } + if ('colSpan' in column) { + cell.colSpan = column.colSpan; + } + if ('rowSpan' in column) { + cell.rowSpan = column.rowSpan; + } + if (cell.colSpan !== 0) { + rows[currentRow].push(cell); + } + //判断是否启用过滤 + if (_this2.props.filterable) { + //组装Filter需要的Col + filterCol.push({ + key: column.key, + children: "过滤渲染", + width: column.width, + filtertype: column.filterType, //下拉的类型 包括['text','dropdown','date','daterange','number'] + dataindex: column.dataIndex, //field + datasource: _this2.props.data, //需要单独拿到数据处理 + format: column.format, //设置日期的格式 + filterdropdown: column.filterDropdown, //是否显示 show hide + filterdropdownauto: column.filterDropdownAuto, //是否自定义数据 + filterdropdowndata: column.filterDropdownData, //自定义数据格式 + filterdropdownfocus: column.filterDropdownFocus, //焦点触发函数回调 + filterdropdowntype: column.filterDropdownType, //下拉的类型分为 String,Number 默认是String + filterdropdownincludekeys: column.filterDropdownIncludeKeys, //下拉条件按照指定的keys去显示 + filterinputnumberoptions: column.filterInputNumberOptions //设置数值框内的详细属性 + }); } + }); + if (this.props.filterable) { + rows.push(filterCol); + } + return rows.filter(function (row) { + return row.length > 0; + }); + }; - timePickerEle = _react2["default"].cloneElement(timePicker, timePickerProps); + Table.prototype.getExpandedRow = function getExpandedRow(key, content, visible, className, fixed) { + var _props3 = this.props, + clsPrefix = _props3.clsPrefix, + expandIconAsCell = _props3.expandIconAsCell, + onPaste = _props3.onPaste; + + var colCount = void 0; + if (fixed === 'left') { + colCount = this.columnManager.leftLeafColumns().length; + } else if (fixed === 'right') { + colCount = this.columnManager.rightLeafColumns().length; + } else { + colCount = this.columnManager.centerColumns().length; //计算非固定列的个数,fix: 嵌套表格场景,右侧列断开的问题 } - var dateInputElement = props.showDateInput ? _react2["default"].createElement(_DateInput2["default"], { - format: this.getFormat(), - key: 'date-input', - value: value, - locale: locale, - placeholder: dateInputPlaceholder, - showClear: true, - disabledTime: disabledTime, - disabledDate: disabledDate, - onClear: this.onClear, - prefixCls: prefixCls, - selectedValue: selectedValue, - onChange: this.onDateInputChange, - onSelect: function onSelect(value) { - if ((0, _moment2["default"])(value, format, true) && validatorFunc(value)) { - _this2.onDateInputSelect(value); - } - }, - clearIcon: clearIcon, - renderError: renderError, - onBlur: onInputBlur, - validatorFunc: validatorFunc - }) : null; - var children = []; - if (props.renderSidebar) { - children.push(props.renderSidebar()); + var expandedRowHeight = this.state.fixedColumnsExpandedRowsHeight[key] || 'auto'; + function contentContainer() { + if (content && content.props && content.props.style) { + return _react2["default"].createElement('div', { style: { height: content.props.style.height } }); + } else { + return ' '; + } } - children.push(_react2["default"].createElement( - 'div', - { className: prefixCls + '-panel', key: 'panel' }, - dateInputElement, - _react2["default"].createElement( - 'div', - { - tabIndex: this.props.focusablePanel ? 0 : undefined, - className: prefixCls + '-date-panel', - onMouseOver: this.onMouseOver - }, - _react2["default"].createElement(_CalendarHeader2["default"], { - locale: locale, - mode: mode, - value: value, - onValueChange: this.setValue, - onPanelChange: this.onPanelChange, - renderFooter: renderFooter, - showTimePicker: showTimePicker, - prefixCls: prefixCls, - showMonthInput: showMonthInput - }), - timePicker && showTimePicker ? _react2["default"].createElement( - 'div', - { className: prefixCls + '-time-picker' }, - _react2["default"].createElement( - 'div', - { className: prefixCls + '-time-picker-panel' }, - timePickerEle - ) - ) : null, - _react2["default"].createElement( - 'div', - { className: prefixCls + '-body' }, - _react2["default"].createElement(_DateTable2["default"], { - locale: locale, - value: value, - selectedValue: selectedValue, - prefixCls: prefixCls, - dateRender: props.dateRender, - onSelect: this.onDateTableSelect, - disabledDate: disabledDate, - showWeekNumber: props.showWeekNumber - }) - ), - _react2["default"].createElement(_CalendarFooter2["default"], { - showOk: props.showOk, - mode: mode, - renderFooter: props.renderFooter, - locale: locale, - prefixCls: prefixCls, - showToday: props.showToday, - disabledTime: disabledTime, - showTimePicker: showTimePicker, - showDateInput: props.showDateInput, - timePicker: timePicker, - selectedValue: selectedValue, - value: value, - disabledDate: disabledDate, - okDisabled: props.showOk !== false && (!selectedValue || !this.isAllowedDate(selectedValue)), - onOk: this.onOk, - onSelect: this.onSelect, - onToday: this.onToday, - onOpenTimePicker: this.openTimePicker, - onCloseTimePicker: this.closeTimePicker - }) - ) - )); - return this.renderRoot({ - children: children, - className: props.showWeekNumber ? prefixCls + '-week-number' : '' + var columns = [{ + key: 'extra-row', + render: function render() { + return { + props: { + colSpan: colCount + }, + children: !fixed ? content : contentContainer() + }; + } + }]; + if (expandIconAsCell && fixed !== 'right') { + columns.unshift({ + key: 'expand-icon-placeholder', + render: function render() { + return null; + } + }); + } + return _react2["default"].createElement(_TableRow2["default"], { + onPaste: onPaste, + columns: columns, + visible: visible, + className: className, + key: key + '-extra-row', + clsPrefix: clsPrefix + '-expanded-row', + indent: 1, + expandable: false, + store: this.store, + dragborderKey: this.props.dragborderKey, + rowDraggAble: this.props.rowDraggAble, + useDragHandle: this.props.useDragHandle, + onDragRow: this.onDragRow, + onDragRowStart: this.onDragRowStart, + height: expandedRowHeight }); }; - return Calendar; - }(_react2["default"].Component); + /** + * 行拖拽开始时触发 + * @param currentKey 当前拖拽目标的key + */ - Calendar.propTypes = _extends({}, _CalendarMixin.calendarMixinPropTypes, _CommonMixin.propType, { - prefixCls: _propTypes2["default"].string, - className: _propTypes2["default"].string, - style: _propTypes2["default"].object, - defaultValue: _propTypes2["default"].object, - value: _propTypes2["default"].object, - selectedValue: _propTypes2["default"].object, - defaultSelectedValue: _propTypes2["default"].object, - mode: _propTypes2["default"].oneOf(['time', 'date', 'month', 'year', 'decade']), - locale: _propTypes2["default"].object, - showDateInput: _propTypes2["default"].bool, - showWeekNumber: _propTypes2["default"].bool, - showToday: _propTypes2["default"].bool, - showOk: _propTypes2["default"].bool, - onSelect: _propTypes2["default"].func, - onOk: _propTypes2["default"].func, - onKeyDown: _propTypes2["default"].func, - timePicker: _propTypes2["default"].element, - dateInputPlaceholder: _propTypes2["default"].any, - onClear: _propTypes2["default"].func, - onChange: _propTypes2["default"].func, - onPanelChange: _propTypes2["default"].func, - disabledDate: _propTypes2["default"].func, - disabledTime: _propTypes2["default"].any, - dateRender: _propTypes2["default"].func, - renderFooter: _propTypes2["default"].func, - renderSidebar: _propTypes2["default"].func, - clearIcon: _propTypes2["default"].node, - focusablePanel: _propTypes2["default"].bool - }); - Calendar.defaultProps = _extends({}, _CalendarMixin.calendarMixinDefaultProps, _CommonMixin.defaultProp, { - showToday: true, - showDateInput: true, - timePicker: null, - onOk: noop, - onPanelChange: noop, - focusablePanel: true - }); - var _initialiseProps = function _initialiseProps() { - var _this3 = this; + /** + * 行拖拽结束时触发 + * @param currentKey 当前拖拽目标的key + * @param targetKey 拖拽结束时,目标位置的key + */ - this.onPanelChange = function (value, mode) { - var props = _this3.props, - state = _this3.state; + /** + * 数组元素交换位置 + * @param {array} arr 数组 + * @param {number} index1 添加项目的位置 + * @param {number} index2 删除项目的位置 + */ - if (!('mode' in props)) { - _this3.setState({ mode: mode }); - } - props.onPanelChange(value || state.value, mode); - }; - this.onKeyDown = function (event) { - if (event.target.nodeName.toLowerCase() === 'input') { - return undefined; - } else { - _this3.props.onKeyDown && _this3.props.onKeyDown(event); - } - var keyCode = event.keyCode; - // mac - var ctrlKey = event.ctrlKey || event.metaKey; - var disabledDate = _this3.props.disabledDate; - var value = _this3.state.value; + /** + * + * + * @param {*} data + * @param {*} visible + * @param {*} indent 层级 + * @param {*} columns + * @param {*} fixed + * @param {number} [rootIndex=-1] 祖级节点 + * @returns + * @memberof Table + */ + Table.prototype.getRowsByData = function getRowsByData(data, visible, indent, columns, fixed) { + var rootIndex = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : -1; - switch (keyCode) { - case _KeyCode2["default"].DOWN: - _this3.goTime(1, 'weeks'); - event.preventDefault(); - return 1; - case _KeyCode2["default"].UP: - _this3.goTime(-1, 'weeks'); - event.preventDefault(); - return 1; - case _KeyCode2["default"].LEFT: - if (ctrlKey) { - _this3.goTime(-1, 'years'); - } else { - _this3.goTime(-1, 'days'); - } - event.preventDefault(); - return 1; - case _KeyCode2["default"].RIGHT: - if (ctrlKey) { - _this3.goTime(1, 'years'); - } else { - _this3.goTime(1, 'days'); - } - event.preventDefault(); - return 1; - case _KeyCode2["default"].HOME: - _this3.setValue((0, _toTime.goStartMonth)(_this3.state.value)); - event.preventDefault(); - return 1; - case _KeyCode2["default"].END: - _this3.setValue((0, _toTime.goEndMonth)(_this3.state.value)); - event.preventDefault(); - return 1; - case _KeyCode2["default"].PAGE_DOWN: - _this3.goTime(1, 'month'); - event.preventDefault(); - return 1; - case _KeyCode2["default"].PAGE_UP: - _this3.goTime(-1, 'month'); - event.preventDefault(); - return 1; - case _KeyCode2["default"].ENTER: - if (!disabledDate || !disabledDate(value)) { - _this3.onSelect(value, { - source: 'keyboard' - }); - } - event.preventDefault(); - return 1; + var props = this.props; + var childrenColumnName = props.childrenColumnName; + var expandedRowRender = props.expandedRowRender; + var expandRowByClick = props.expandRowByClick; + var onPaste = props.onPaste; + var fixedColumnsBodyRowsHeight = this.state.fixedColumnsBodyRowsHeight; + + var rst = []; + var height = void 0; + var rowClassName = props.rowClassName; + var rowRef = props.rowRef; + var expandedRowClassName = props.expandedRowClassName; + var needIndentSpaced = props.data.some(function (record) { + return record[childrenColumnName]; + }); + var onRowClick = props.onRowClick; + var onRowDoubleClick = props.onRowDoubleClick; + + var expandIconAsCell = fixed !== 'right' ? props.expandIconAsCell : false; + var expandIconColumnIndex = props.expandIconColumnIndex; + if (props.lazyLoad && props.lazyLoad.preHeight && indent == 0) { + rst.push(_react2["default"].createElement(_TableRow2["default"], { onPaste: onPaste, height: props.lazyLoad.preHeight, columns: [], className: '', key: 'table_row_first', store: this.store, visible: true })); } - }; + var lazyCurrentIndex = props.lazyLoad && props.lazyLoad.startIndex ? props.lazyLoad.startIndex : 0; + var lazyParentIndex = props.lazyLoad && props.lazyLoad.startParentIndex ? props.lazyLoad.startParentIndex : 0; + var lazyEndIndex = props.lazyLoad && props.lazyLoad.endIndex ? props.lazyLoad.endIndex : -1; + for (var i = 0; i < data.length; i++) { + var isHiddenExpandIcon = void 0; + var record = data[i]; + var key = this.getRowKey(record, i); + // 兼容 NCC 以前的业务逻辑,支持外部通过 record 中的 isleaf 字段,判断是否为叶子节点 + record['_isLeaf'] = typeof record['isleaf'] === 'boolean' ? record['isleaf'] : record['_isLeaf']; + // _isLeaf 字段是在 bigData 里添加的,只有层级树大数据场景需要该字段 + // _isLeaf 有三种取值情况:true / false / null。(Table内部字段) + var _isLeaf = typeof record['_isLeaf'] === 'boolean' ? record['_isLeaf'] : null; + var childrenColumn = _isLeaf ? false : record[childrenColumnName]; + var isRowExpanded = this.isRowExpanded(record, i); + var expandedRowContent = void 0; + var expandedContentHeight = 0; + //fixedIndex一般是跟index是一个值的,只有是树结构时,会讲子节点的值也累计上 + var fixedIndex = i; + //判断是否是tree结构 + if (this.treeType) { + fixedIndex = this.treeRowIndex; + } + if (expandedRowRender && isRowExpanded) { + expandedRowContent = expandedRowRender(record, fixedIndex + lazyCurrentIndex, indent); + expandedContentHeight = parseInt(expandedRowContent.props && expandedRowContent.props.style && expandedRowContent.props.style.height ? expandedRowContent.props.style.height : 0); + } + //只有当使用expandedRowRender参数的时候才去识别isHiddenExpandIcon(隐藏行展开的icon) + if (expandedRowRender && typeof props.haveExpandIcon == 'function') { + isHiddenExpandIcon = props.haveExpandIcon(record, i); + } - this.onClear = function () { - _this3.onSelect(null); - _this3.props.onClear(); - }; + var onHoverProps = {}; + + onHoverProps.onHover = this.handleRowHover; + + if (props.bodyDisplayInRow && props.height) { + height = props.height; + } else if (fixed || props.heightConsistent) { + height = fixedColumnsBodyRowsHeight[fixedIndex]; + } + + var leafColumns = void 0; + if (fixed === 'left') { + leafColumns = this.columnManager.leftLeafColumns(); + } else if (fixed === 'right') { + leafColumns = this.columnManager.rightLeafColumns(); + } else { + leafColumns = this.columnManager.leafColumns(); + } + var className = rowClassName(record, fixedIndex + lazyCurrentIndex, indent); + + //合计代码如果是最后一行并且有合计功能时,最后一行为合计列 + if (i == data.length - 1 && props.showSum) { + className = className + ' sumrow'; + } + + var paramRootIndex = rootIndex; + //小于0说明为第一层节点,她的子孙节点要保存自己的根节点 + if (paramRootIndex < 0) { + paramRootIndex = i + lazyParentIndex; + } + var index = i; + if (rootIndex == -1) { + index = i + lazyParentIndex; + } + rst.push(_react2["default"].createElement(_TableRow2["default"], _extends({ + onPaste: onPaste, + indent: indent, + indentSize: props.indentSize, + needIndentSpaced: needIndentSpaced, + className: className + ' ' + (props.rowDraggAble && !props.useDragHandle ? 'row-dragg-able ' : ''), + record: record, + expandIconAsCell: expandIconAsCell, + onDestroy: this.onRowDestroy, + index: index, + visible: visible, + expandRowByClick: expandRowByClick, + onExpand: this.onExpanded, + expandable: expandedRowRender || (childrenColumn && childrenColumn.length > 0 ? true : _isLeaf === false), + expanded: isRowExpanded, + clsPrefix: props.clsPrefix + '-row', + childrenColumnName: childrenColumnName, + columns: leafColumns, + expandIconColumnIndex: expandIconColumnIndex, + onRowClick: onRowClick, + onRowDoubleClick: onRowDoubleClick, + height: height, + isHiddenExpandIcon: isHiddenExpandIcon + }, onHoverProps, { + key: "table_row_" + key + "_" + index, + hoverKey: key, + ref: rowRef, + store: this.store, + fixed: fixed, + expandedContentHeight: expandedContentHeight, + setRowHeight: props.setRowHeight, + setRowParentIndex: props.setRowParentIndex, + treeType: childrenColumn || this.treeType ? true : false, + fixedIndex: fixedIndex + lazyCurrentIndex, + rootIndex: rootIndex, + syncHover: props.syncHover, + bodyDisplayInRow: props.bodyDisplayInRow, + rowDraggAble: props.rowDraggAble, + useDragHandle: props.useDragHandle, + onDragRow: this.onDragRow, + onDragRowStart: this.onDragRowStart, + contentTable: this.contentTable, + tableUid: this.tableUid, + expandedIcon: props.expandedIcon, + collapsedIcon: props.collapsedIcon, + lazyStartIndex: lazyCurrentIndex, + lazyEndIndex: lazyEndIndex, + centerColumnsLength: this.centerColumnsLength, + leftColumnsLength: this.leftColumnsLength, + expandIconCellWidth: expandIconCellWidth + }))); + this.treeRowIndex++; + var subVisible = visible && isRowExpanded; - this.onOk = function () { - var selectedValue = _this3.state.selectedValue; + if (expandedRowContent && isRowExpanded) { + rst.push(this.getExpandedRow(key, expandedRowContent, subVisible, expandedRowClassName(record, i, indent), fixed)); + } + if (childrenColumn) { + this.isTreeType = true; //增加该标志位,为了兼容老版本,不修改以前的 `this.treeType` 的相关逻辑 + this.treeType = true; //证明是tree表形式visible = {true} + rst = rst.concat(this.getRowsByData(childrenColumn, subVisible, indent + 1, columns, fixed, paramRootIndex)); + } + } - if (_this3.isAllowedDate(selectedValue)) { - _this3.props.onOk(selectedValue); + if (props.lazyLoad && props.lazyLoad.sufHeight && indent == 0) { + rst.push(_react2["default"].createElement(_TableRow2["default"], { onPaste: onPaste, height: props.lazyLoad.sufHeight, key: 'table_row_end', columns: [], className: '', store: this.store, visible: true })); + } + if (!this.isTreeType) { + this.treeType = false; } + return rst; }; - this.onDateInputChange = function (value) { - _this3.onSelect(value, { - source: 'dateInput' - }); + Table.prototype.getRows = function getRows(columns, fixed) { + //统计index,只有含有树表结构才有用,因为树表结构时,固定列的索引取值有问题 + this.treeRowIndex = 0; + //每次遍历 data 前,将this.isTreeType置为 false,若遍历完 data,此变量仍为 false,说明是普通表格 + this.isTreeType = false; + var rs = this.getRowsByData(this.state.data, true, 0, columns, fixed); + return rs; }; - this.onDateInputSelect = function (value) { - _this3.onSelect(value, { - source: 'dateInputSelect' - }); - }; + Table.prototype.getColGroup = function getColGroup(columns, fixed) { + var _this3 = this; - this.onDateTableSelect = function (value) { - var timePicker = _this3.props.timePicker; - var selectedValue = _this3.state.selectedValue; + var cols = []; + var self = this; - if (!selectedValue && timePicker) { - var timePickerDefaultValue = timePicker.props.defaultValue; - if (timePickerDefaultValue) { - (0, _util.syncTime)(timePickerDefaultValue, value); - } + var _state2 = this.state, + _state2$contentWidthD = _state2.contentWidthDiff, + contentWidthDiff = _state2$contentWidthD === undefined ? 0 : _state2$contentWidthD, + _state2$lastShowIndex = _state2.lastShowIndex, + lastShowIndex = _state2$lastShowIndex === undefined ? 0 : _state2$lastShowIndex; + + if (this.props.expandIconAsCell && fixed !== 'right') { + cols.push(_react2["default"].createElement('col', { + className: this.props.clsPrefix + '-expand-icon-col', + key: 'u-table-expand-icon-col' + })); } - _this3.onSelect(value); + var leafColumns = void 0; + if (fixed === 'left') { + contentWidthDiff = 0; + leafColumns = this.columnManager.leftLeafColumns(); + } else if (fixed === 'right') { + contentWidthDiff = 0; + leafColumns = this.columnManager.rightLeafColumns(); + } else { + leafColumns = this.columnManager.leafColumns(); + } + cols = cols.concat(leafColumns.map(function (c, i, arr) { + var fixedClass = ''; + var width = c.width; + if (typeof width == 'string' && width.indexOf('%') > -1 && self.contentWidth) { + width = parseInt(self.contentWidth * parseInt(width) / 100); + } else if (width) { + width = parseInt(width); + } + if (lastShowIndex == i && width) { + width = width + contentWidthDiff; + } + if (!fixed && c.fixed) { + fixedClass = ' ' + _this3.props.clsPrefix + '-row-fixed-columns-in-body'; + } + return _react2["default"].createElement('col', { key: c.key, style: { width: width, minWidth: c.width }, className: fixedClass }); + })); + return _react2["default"].createElement( + 'colgroup', + { id: 'bee-table-colgroup' }, + cols + ); }; - this.onToday = function () { - var value = _this3.state.value; - - var now = (0, _util.getTodayTime)(value); - _this3.onSelect(now, { - source: 'todayButton' + Table.prototype.getLeftFixedTable = function getLeftFixedTable() { + return this.getTable({ + columns: this.columnManager.leftColumns(), + fixed: 'left' }); }; - this.getRootDOMNode = function () { - return _reactDom2["default"].findDOMNode(_this3); - }; - - this.openTimePicker = function () { - _this3.onPanelChange(null, 'time'); - }; - - this.closeTimePicker = function () { - _this3.onPanelChange(null, 'date'); - }; - - this.goTime = function (direction, unit) { - _this3.setValue((0, _toTime.goTime)(_this3.state.value, direction, unit)); - }; - - this.onMouseOver = function (e) { - e.stopPropagation(); + Table.prototype.getRightFixedTable = function getRightFixedTable() { + return this.getTable({ + columns: this.columnManager.rightColumns(), + fixed: 'right' + }); }; - }; - - (0, _reactLifecyclesCompat.polyfill)(Calendar); - - exports["default"] = (0, _CalendarMixin.calendarMixinWrapper)((0, _CommonMixin.commonMixinWrapper)(Calendar)); - module.exports = exports['default']; - - /***/ }), - /* 1271 */ - /***/ (function(module, exports, __webpack_require__) { - - "use strict"; - - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _react = __webpack_require__(0); - - var _react2 = _interopRequireDefault(_react); - - var _DateConstants = __webpack_require__(335); - var _DateConstants2 = _interopRequireDefault(_DateConstants); - - var _moment = __webpack_require__(4); + Table.prototype.getTable = function getTable() { + var _this4 = this; - var _moment2 = _interopRequireDefault(_moment); + var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var columns = options.columns, + fixed = options.fixed; + var _props4 = this.props, + clsPrefix = _props4.clsPrefix, + _props4$scroll = _props4.scroll, + scroll = _props4$scroll === undefined ? {} : _props4$scroll, + getBodyWrapper = _props4.getBodyWrapper, + footerScroll = _props4.footerScroll, + headerScroll = _props4.headerScroll, + _props4$hideHeaderScr = _props4.hideHeaderScroll, + hideHeaderScroll = _props4$hideHeaderScr === undefined ? false : _props4$hideHeaderScr, + expandIconAsCell = _props4.expandIconAsCell; + var _props5 = this.props, + useFixedHeader = _props5.useFixedHeader, + data = _props5.data; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var bodyStyle = _extends({}, this.props.bodyStyle); // 这里为什么不写在上面? + var headStyle = {}; + var innerBodyStyle = {}; + var leftFixedWidth = this.columnManager.getLeftColumnsWidth(this.contentWidth); + var rightFixedWidth = this.columnManager.getRightColumnsWidth(this.contentWidth); - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + var tableClassName = ''; + //表格元素的宽度大于容器的宽度也显示滚动条 + if (scroll.x || fixed || this.contentDomWidth < this.contentWidth) { + tableClassName = clsPrefix + '-fixed'; + //没有数据并且含有顶部菜单时 + if (this.props.data.length == 0 && this.props.headerScroll) { + bodyStyle.overflowX = 'hidden'; + } + if (!footerScroll) { + bodyStyle.overflowX = bodyStyle.overflowX || 'auto'; + } + } - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + if (scroll.y) { + // maxHeight will make fixed-Table scrolling not working + // so we only set maxHeight to body-Table here + if (fixed) { + // bodyStyle.height = bodyStyle.height || scroll.y; + innerBodyStyle.maxHeight = bodyStyle.maxHeight || scroll.y; + innerBodyStyle.overflowY = bodyStyle.overflowY || 'scroll'; + } else { + bodyStyle.maxHeight = bodyStyle.maxHeight || scroll.y; + } + bodyStyle.overflowY = bodyStyle.overflowY || 'scroll'; + useFixedHeader = true; - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + // Add negative margin bottom for scroll bar overflow bug + var scrollbarWidth = this.scrollbarWidth; + if (scrollbarWidth >= 0) { + (fixed ? bodyStyle : headStyle).paddingBottom = '0px'; + //显示表头滚动条 + if (headerScroll) { + if (fixed) { - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + if (this.domWidthDiff <= 0) { + headStyle.marginBottom = scrollbarWidth + 'px'; + bodyStyle.marginBottom = '-' + scrollbarWidth + 'px'; + } else { + innerBodyStyle.overflowX = 'auto'; + } + } else { + //内容少,不用显示滚动条 + if (this.domWidthDiff > 0) { + headStyle.overflowX = 'hidden'; + } + headStyle.marginBottom = '0px'; + } + } else { + if (fixed) { + if (this.domWidthDiff > 0) { + headStyle.overflow = 'hidden'; + innerBodyStyle.overflowX = 'auto'; //兼容expand场景、子表格含有固定列的场景 + } else { + bodyStyle.marginBottom = '-' + scrollbarWidth + 'px'; + } + } else { + // 没有数据时,表头滚动条隐藏问题 + if (data.length == 0 && this.domWidthDiff < 0) { + headStyle.marginBottom = '0px'; + } else { + headStyle.marginBottom = '-' + scrollbarWidth + 'px'; + } + } + } + } + } - var DateTHead = function (_React$Component) { - _inherits(DateTHead, _React$Component); + if (data.length == 0 && hideHeaderScroll) { + //支持 NCC 需求:表格无数据时,去掉表头滚动条 (https://github.com/iuap-design/tinper-bee/issues/207) + headStyle.marginBottom = '-' + this.scrollbarWidth + 'px'; + } - function DateTHead() { - _classCallCheck(this, DateTHead); + var renderTable = function renderTable() { + var hasHead = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; + var hasBody = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); - } + var tableStyle = {}; + if (!fixed && scroll.x) { + // not set width, then use content fixed width + if (scroll.x === true) { + tableStyle.tableLayout = 'fixed'; + } else { + tableStyle.width = _this4.contentWidth - _this4.columnManager.getLeftColumnsWidth(_this4.contentWidth) - _this4.columnManager.getRightColumnsWidth(_this4.contentWidth); + } + } + // 自动出现滚动条 + if (!fixed && _this4.contentDomWidth < _this4.contentWidth) { + tableStyle.width = _this4.contentWidth - _this4.columnManager.getLeftColumnsWidth(_this4.contentWidth) - _this4.columnManager.getRightColumnsWidth(_this4.contentWidth); + } + var tableBody = hasBody ? getBodyWrapper(_react2["default"].createElement( + 'tbody', + { className: clsPrefix + '-tbody', onMouseLeave: _this4.onBodyMouseLeave }, + _this4.getRows(columns, fixed) + )) : null; + var _drag_class = _this4.props.dragborder ? "table-drag-bordered" : ""; + return _react2["default"].createElement( + 'table', + { className: ' ' + tableClassName + ' table-bordered ' + _drag_class + ' ', style: tableStyle }, + _this4.getColGroup(columns, fixed), + hasHead ? _this4.getHeader(columns, fixed, leftFixedWidth, rightFixedWidth) : null, + tableBody + ); + }; - DateTHead.prototype.render = function render() { - var props = this.props; - var value = props.value; - var localeData = value.localeData(); - var prefixCls = props.prefixCls; - var veryShortWeekdays = []; - var weekDays = []; - var firstDayOfWeek = localeData.firstDayOfWeek(); - var showWeekNumberEl = void 0; - var now = (0, _moment2["default"])(); - for (var dateColIndex = 0; dateColIndex < _DateConstants2["default"].DATE_COL_COUNT; dateColIndex++) { - var index = (firstDayOfWeek + dateColIndex) % _DateConstants2["default"].DATE_COL_COUNT; - now.day(index); - veryShortWeekdays[dateColIndex] = localeData.weekdaysMin(now); - weekDays[dateColIndex] = localeData.weekdaysShort(now); - } + var headTable = void 0; - if (props.showWeekNumber) { - showWeekNumberEl = _react2["default"].createElement( - 'th', + if (useFixedHeader) { + headTable = _react2["default"].createElement( + 'div', { - role: 'columnheader', - className: prefixCls + '-column-header ' + prefixCls + '-week-number-header' + className: clsPrefix + '-header', + ref: function ref(el) { + fixed ? _this4.fixedHeadTable = el : _this4.headTable = el; + }, + style: headStyle, + onMouseOver: this.detectScrollTarget, + onTouchStart: this.detectScrollTarget, + onScroll: this.handleBodyScroll }, - _react2["default"].createElement( - 'span', - { className: prefixCls + '-column-header-inner' }, - 'x' - ) + renderTable(true, false) ); } - var weekDaysEls = weekDays.map(function (day, xindex) { - return _react2["default"].createElement( - 'th', + var BodyTable = _react2["default"].createElement( + 'div', + { + className: clsPrefix + '-body', + style: bodyStyle, + ref: function ref(el) { + _this4.bodyTable = el; + }, + onMouseOver: this.detectScrollTarget, + onTouchStart: this.detectScrollTarget, + onScroll: this.handleBodyScroll, + onMouseLeave: this.onBodyMouseLeave + }, + this.renderDragHideTable(), + renderTable(!useFixedHeader) + ); + + if (fixed && columns.length) { + var refName = void 0; + if (columns[0].fixed === 'left' || columns[0].fixed === true) { + refName = 'fixedColumnsBodyLeft'; + } else if (columns[0].fixed === 'right') { + refName = 'fixedColumnsBodyRight'; + } + delete bodyStyle.overflowX; + delete bodyStyle.overflowY; + BodyTable = _react2["default"].createElement( + 'div', { - key: xindex, - role: 'columnheader', - title: day, - className: prefixCls + '-column-header' + className: clsPrefix + '-body-outer', + style: _extends({}, bodyStyle) }, _react2["default"].createElement( - 'span', - { className: prefixCls + '-column-header-inner' }, - veryShortWeekdays[xindex] + 'div', + { + style: _extends({}, innerBodyStyle), + className: clsPrefix + '-body-inner', + ref: refName, + onMouseOver: this.detectScrollTarget, + onTouchStart: this.detectScrollTarget, + onScroll: this.handleBodyScroll + }, + renderTable(!useFixedHeader) ) ); - }); + } + // const leftFixedWidth = this.columnManager.getLeftColumnsWidth(this.contentWidth); + // const rightFixedWidth = this.columnManager.getRightColumnsWidth(this.contentWidth); + var expandIconWidth = expandIconAsCell ? 32 : 0; + var parStyle = {}; + if (!fixed) { + parStyle = { 'marginLeft': leftFixedWidth + expandIconWidth, 'marginRight': rightFixedWidth }; + } return _react2["default"].createElement( - 'thead', - null, - _react2["default"].createElement( - 'tr', - { role: 'row' }, - showWeekNumberEl, - weekDaysEls - ) + 'div', + { style: parStyle }, + headTable, + BodyTable ); }; - return DateTHead; - }(_react2["default"].Component); - - exports["default"] = DateTHead; - module.exports = exports['default']; - - /***/ }), - /* 1272 */ - /***/ (function(module, exports, __webpack_require__) { - - var map = { - "./af": 336, - "./af.js": 336, - "./ar": 337, - "./ar-dz": 338, - "./ar-dz.js": 338, - "./ar-kw": 339, - "./ar-kw.js": 339, - "./ar-ly": 340, - "./ar-ly.js": 340, - "./ar-ma": 341, - "./ar-ma.js": 341, - "./ar-sa": 342, - "./ar-sa.js": 342, - "./ar-tn": 343, - "./ar-tn.js": 343, - "./ar.js": 337, - "./az": 344, - "./az.js": 344, - "./be": 345, - "./be.js": 345, - "./bg": 346, - "./bg.js": 346, - "./bm": 347, - "./bm.js": 347, - "./bn": 348, - "./bn.js": 348, - "./bo": 349, - "./bo.js": 349, - "./br": 350, - "./br.js": 350, - "./bs": 351, - "./bs.js": 351, - "./ca": 352, - "./ca.js": 352, - "./cs": 353, - "./cs.js": 353, - "./cv": 354, - "./cv.js": 354, - "./cy": 355, - "./cy.js": 355, - "./da": 356, - "./da.js": 356, - "./de": 357, - "./de-at": 358, - "./de-at.js": 358, - "./de-ch": 359, - "./de-ch.js": 359, - "./de.js": 357, - "./dv": 360, - "./dv.js": 360, - "./el": 361, - "./el.js": 361, - "./en-au": 362, - "./en-au.js": 362, - "./en-ca": 363, - "./en-ca.js": 363, - "./en-gb": 183, - "./en-gb.js": 183, - "./en-ie": 364, - "./en-ie.js": 364, - "./en-il": 365, - "./en-il.js": 365, - "./en-in": 366, - "./en-in.js": 366, - "./en-nz": 367, - "./en-nz.js": 367, - "./en-sg": 368, - "./en-sg.js": 368, - "./eo": 369, - "./eo.js": 369, - "./es": 370, - "./es-do": 371, - "./es-do.js": 371, - "./es-us": 372, - "./es-us.js": 372, - "./es.js": 370, - "./et": 373, - "./et.js": 373, - "./eu": 374, - "./eu.js": 374, - "./fa": 375, - "./fa.js": 375, - "./fi": 376, - "./fi.js": 376, - "./fil": 377, - "./fil.js": 377, - "./fo": 378, - "./fo.js": 378, - "./fr": 379, - "./fr-ca": 380, - "./fr-ca.js": 380, - "./fr-ch": 381, - "./fr-ch.js": 381, - "./fr.js": 379, - "./fy": 382, - "./fy.js": 382, - "./ga": 383, - "./ga.js": 383, - "./gd": 384, - "./gd.js": 384, - "./gl": 385, - "./gl.js": 385, - "./gom-deva": 386, - "./gom-deva.js": 386, - "./gom-latn": 387, - "./gom-latn.js": 387, - "./gu": 388, - "./gu.js": 388, - "./he": 389, - "./he.js": 389, - "./hi": 390, - "./hi.js": 390, - "./hr": 391, - "./hr.js": 391, - "./hu": 392, - "./hu.js": 392, - "./hy-am": 393, - "./hy-am.js": 393, - "./id": 394, - "./id.js": 394, - "./is": 395, - "./is.js": 395, - "./it": 396, - "./it-ch": 397, - "./it-ch.js": 397, - "./it.js": 396, - "./ja": 398, - "./ja.js": 398, - "./jv": 399, - "./jv.js": 399, - "./ka": 400, - "./ka.js": 400, - "./kk": 401, - "./kk.js": 401, - "./km": 402, - "./km.js": 402, - "./kn": 403, - "./kn.js": 403, - "./ko": 404, - "./ko.js": 404, - "./ku": 405, - "./ku.js": 405, - "./ky": 406, - "./ky.js": 406, - "./lb": 407, - "./lb.js": 407, - "./lo": 408, - "./lo.js": 408, - "./lt": 409, - "./lt.js": 409, - "./lv": 410, - "./lv.js": 410, - "./me": 411, - "./me.js": 411, - "./mi": 412, - "./mi.js": 412, - "./mk": 413, - "./mk.js": 413, - "./ml": 414, - "./ml.js": 414, - "./mn": 415, - "./mn.js": 415, - "./mr": 416, - "./mr.js": 416, - "./ms": 417, - "./ms-my": 418, - "./ms-my.js": 418, - "./ms.js": 417, - "./mt": 419, - "./mt.js": 419, - "./my": 420, - "./my.js": 420, - "./nb": 421, - "./nb.js": 421, - "./ne": 422, - "./ne.js": 422, - "./nl": 423, - "./nl-be": 424, - "./nl-be.js": 424, - "./nl.js": 423, - "./nn": 425, - "./nn.js": 425, - "./oc-lnc": 426, - "./oc-lnc.js": 426, - "./pa-in": 427, - "./pa-in.js": 427, - "./pl": 428, - "./pl.js": 428, - "./pt": 429, - "./pt-br": 430, - "./pt-br.js": 430, - "./pt.js": 429, - "./ro": 431, - "./ro.js": 431, - "./ru": 432, - "./ru.js": 432, - "./sd": 433, - "./sd.js": 433, - "./se": 434, - "./se.js": 434, - "./si": 435, - "./si.js": 435, - "./sk": 436, - "./sk.js": 436, - "./sl": 437, - "./sl.js": 437, - "./sq": 438, - "./sq.js": 438, - "./sr": 439, - "./sr-cyrl": 440, - "./sr-cyrl.js": 440, - "./sr.js": 439, - "./ss": 441, - "./ss.js": 441, - "./sv": 442, - "./sv.js": 442, - "./sw": 443, - "./sw.js": 443, - "./ta": 444, - "./ta.js": 444, - "./te": 445, - "./te.js": 445, - "./tet": 446, - "./tet.js": 446, - "./tg": 447, - "./tg.js": 447, - "./th": 448, - "./th.js": 448, - "./tl-ph": 449, - "./tl-ph.js": 449, - "./tlh": 450, - "./tlh.js": 450, - "./tr": 451, - "./tr.js": 451, - "./tzl": 452, - "./tzl.js": 452, - "./tzm": 453, - "./tzm-latn": 454, - "./tzm-latn.js": 454, - "./tzm.js": 453, - "./ug-cn": 455, - "./ug-cn.js": 455, - "./uk": 456, - "./uk.js": 456, - "./ur": 457, - "./ur.js": 457, - "./uz": 458, - "./uz-latn": 459, - "./uz-latn.js": 459, - "./uz.js": 458, - "./vi": 460, - "./vi.js": 460, - "./x-pseudo": 461, - "./x-pseudo.js": 461, - "./yo": 462, - "./yo.js": 462, - "./zh-cn": 110, - "./zh-cn.js": 110, - "./zh-hk": 463, - "./zh-hk.js": 463, - "./zh-mo": 464, - "./zh-mo.js": 464, - "./zh-tw": 465, - "./zh-tw.js": 465 - }; - function webpackContext(req) { - return __webpack_require__(webpackContextResolve(req)); - }; - function webpackContextResolve(req) { - var id = map[req]; - if(!(id + 1)) // check for number or string - throw new Error("Cannot find module '" + req + "'."); - return id; - }; - webpackContext.keys = function webpackContextKeys() { - return Object.keys(map); - }; - webpackContext.resolve = webpackContextResolve; - module.exports = webpackContext; - webpackContext.id = 1272; - - /***/ }), - /* 1273 */ - /***/ (function(module, exports, __webpack_require__) { - - "use strict"; - - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _react = __webpack_require__(0); - - var _react2 = _interopRequireDefault(_react); - - var _propTypes = __webpack_require__(1); + Table.prototype.getTitle = function getTitle() { + var _props6 = this.props, + title = _props6.title, + clsPrefix = _props6.clsPrefix; - var _propTypes2 = _interopRequireDefault(_propTypes); + return title ? _react2["default"].createElement( + 'div', + { className: clsPrefix + '-title' }, + title(this.state.data) + ) : null; + }; - var _classnames = __webpack_require__(2); + Table.prototype.getFooter = function getFooter() { + var _props7 = this.props, + footer = _props7.footer, + clsPrefix = _props7.clsPrefix; - var _classnames2 = _interopRequireDefault(_classnames); + return footer ? _react2["default"].createElement( + 'div', + { className: clsPrefix + '-footer' }, + footer(this.state.data) + ) : null; + }; - var _DateConstants = __webpack_require__(335); + Table.prototype.getEmptyText = function getEmptyText() { + var _props8 = this.props, + defaultEmptyText = _props8.emptyText, + clsPrefix = _props8.clsPrefix, + data = _props8.data; - var _DateConstants2 = _interopRequireDefault(_DateConstants); + var locale = (0, _tool.getComponentLocale)(this.props, this.context, 'Table', function () { + return _i18n2["default"]; + }); + var emptyText = defaultEmptyText !== undefined ? defaultEmptyText : function () { + return _react2["default"].createElement( + 'div', + null, + _react2["default"].createElement(_beeIcon2["default"], { type: 'uf-nodata', className: 'table-nodata' }), + _react2["default"].createElement( + 'span', + null, + locale["no_data"] + ) + ); + }; - var _util = __webpack_require__(32); + return !data.length ? _react2["default"].createElement( + 'div', + { className: clsPrefix + '-placeholder' }, + emptyText() + ) : null; + }; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + Table.prototype.getHeaderRowStyle = function getHeaderRowStyle(columns, rows) { + var fixedColumnsHeadRowsHeight = this.state.fixedColumnsHeadRowsHeight; - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + var headerHeight = fixedColumnsHeadRowsHeight[0]; - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + if (headerHeight && columns) { + if (headerHeight === 'auto') { + return { height: 'auto' }; + } + return { height: headerHeight / rows.length }; + } + return null; + }; - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + Table.prototype.getStyle = function getStyle(obj, attr) { + if (obj.currentStyle) { + return obj.currentStyle[attr]; + } else { + return document.defaultView.getComputedStyle(obj, null)[attr]; + } + }; - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + Table.prototype.syncFixedTableRowHeight = function syncFixedTableRowHeight() { + var _this5 = this; - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + //this.props.height、headerHeight分别为用户传入的行高和表头高度,如果有值,所有行的高度都是固定的,主要为了避免在千行数据中有固定列时获取行高度有问题 + var _props9 = this.props, + clsPrefix = _props9.clsPrefix, + height = _props9.height, + headerHeight = _props9.headerHeight, + columns = _props9.columns, + heightConsistent = _props9.heightConsistent, + bodyDisplayInRow = _props9.bodyDisplayInRow; - function isSameDay(one, two) { - return one && two && one.isSame(two, 'day'); - } + var headRows = this.headTable ? this.headTable.querySelectorAll('thead') : this.bodyTable.querySelectorAll('thead'); + var expandedRows = this.bodyTable.querySelectorAll('.' + clsPrefix + '-expanded-row') || []; + var bodyRows = this.bodyTable.querySelectorAll('.' + clsPrefix + '-row') || []; + var leftBodyRows = this.refs.fixedColumnsBodyLeft && this.refs.fixedColumnsBodyLeft.querySelectorAll('.' + clsPrefix + '-row') || []; + var rightBodyRows = this.refs.fixedColumnsBodyRight && this.refs.fixedColumnsBodyRight.querySelectorAll('.' + clsPrefix + '-row') || []; + var fixedColumnsHeadRowsHeight = [].map.call(headRows, function (row) { + var height = headerHeight; + if (headerHeight) { + height = ((0, _utils.getMaxColChildrenLength)(columns) + 1) * headerHeight; + } + return headerHeight ? height : row.getBoundingClientRect().height || 'auto'; + }); + var fixedColumnsBodyRowsHeight = [].map.call(bodyRows, function (row, index) { + var rsHeight = height; + if (bodyDisplayInRow && rsHeight) { + return rsHeight; + } else { + // 为了提高性能,默认获取主表的高度,但是有的场景中固定列的高度比主表的高度高,所以提供此属性,会统计所有列的高度取最大的,设置 + // 内容折行显示,并又设置了 height 的情况下,也要获取主表高度 + if (heightConsistent || !bodyDisplayInRow && rsHeight) { + var leftHeight = void 0, + rightHeight = void 0, + currentHeight = void 0, + maxHeight = void 0; + leftHeight = leftBodyRows[index] ? leftBodyRows[index].getBoundingClientRect().height : 0; + rightHeight = rightBodyRows[index] ? rightBodyRows[index].getBoundingClientRect().height : 0; + currentHeight = row.getBoundingClientRect().height; + maxHeight = Math.max(leftHeight, rightHeight, currentHeight); + return maxHeight || 'auto'; + } else { + return row.getBoundingClientRect().height || 'auto'; + } + } + }); + var fixedColumnsExpandedRowsHeight = {}; + // expandedRows为NodeList Array.prototype.forEach ie 下报错 对象不支持 “forEach” 方法 + expandedRows.length > 0 && Array.prototype.forEach.call(expandedRows, function (row) { + var parentRowKey = row && row.previousSibling && row.previousSibling.getAttribute("data-row-key"), + height = row && row.getBoundingClientRect().height || 'auto'; + try { + //子表数据减少时,动态计算高度 + var td = row.querySelector('td'); + var tdPadding = _this5.getTdPadding(td); + var trueheight = row.querySelectorAll('.u-table')[0].getBoundingClientRect().height; + height = trueheight + tdPadding; + } catch (error) {} + fixedColumnsExpandedRowsHeight[parentRowKey] = height; + }); + if ((0, _shallowequal2["default"])(this.state.fixedColumnsHeadRowsHeight, fixedColumnsHeadRowsHeight) && (0, _shallowequal2["default"])(this.state.fixedColumnsBodyRowsHeight, fixedColumnsBodyRowsHeight) && (0, _shallowequal2["default"])(this.state.fixedColumnsExpandedRowsHeight, fixedColumnsExpandedRowsHeight)) { + return; + } + this.setState({ + fixedColumnsHeadRowsHeight: fixedColumnsHeadRowsHeight, + fixedColumnsBodyRowsHeight: fixedColumnsBodyRowsHeight, + fixedColumnsExpandedRowsHeight: fixedColumnsExpandedRowsHeight + }); + }; - function beforeCurrentMonthYear(current, today) { - if (current.year() < today.year()) { - return 1; - } - return current.year() === today.year() && current.month() < today.month(); - } + Table.prototype.resetScrollX = function resetScrollX() { + if (this.headTable) { + this.headTable.scrollLeft = 0; + } + if (this.bodyTable) { + this.bodyTable.scrollLeft = 0; + } + }; - function afterCurrentMonthYear(current, today) { - if (current.year() > today.year()) { - return 1; - } - return current.year() === today.year() && current.month() > today.month(); - } + Table.prototype.findExpandedRow = function findExpandedRow(record, index) { + var _this6 = this; - function getIdFromDate(date) { - return 'rc-calendar-' + date.year() + '-' + date.month() + '-' + date.date(); - } + var rows = this.getExpandedRows().filter(function (i) { + return i === _this6.getRowKey(record, index); + }); + return rows[0]; + }; - var DateTBody = function (_React$Component) { - _inherits(DateTBody, _React$Component); + Table.prototype.isRowExpanded = function isRowExpanded(record, index) { + return typeof this.findExpandedRow(record, index) !== 'undefined'; + }; - function DateTBody() { - _classCallCheck(this, DateTBody); + Table.prototype.onBodyMouseLeave = function onBodyMouseLeave(e) { + this.hideHoverDom(e); + }; - return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); - } + Table.prototype.detectScrollTarget = function detectScrollTarget(e) { + if (this.scrollTarget !== e.currentTarget) { + this.scrollTarget = e.currentTarget; + } + }; - DateTBody.prototype.render = function render() { - var props = this.props; - var contentRender = props.contentRender, - prefixCls = props.prefixCls, - selectedValue = props.selectedValue, - value = props.value, - showWeekNumber = props.showWeekNumber, - dateRender = props.dateRender, - disabledDate = props.disabledDate, - hoverValue = props.hoverValue; + Table.prototype.hideHoverDom = function hideHoverDom(e) { + if (this.hoverDom) { + this.hoverDom.style.display = 'none'; + } + }; - var iIndex = void 0; - var jIndex = void 0; - var current = void 0; - var dateTable = []; - var today = (0, _util.getTodayTime)(value); - var cellClass = prefixCls + '-cell'; - var weekNumberCellClass = prefixCls + '-week-number-cell'; - var dateClass = prefixCls + '-date'; - var todayClass = prefixCls + '-today'; - var selectedClass = prefixCls + '-selected-day'; - var selectedDateClass = prefixCls + '-selected-date'; // do not move with mouse operation - var selectedStartDateClass = prefixCls + '-selected-start-date'; - var selectedEndDateClass = prefixCls + '-selected-end-date'; - var inRangeClass = prefixCls + '-in-range-cell'; - var lastMonthDayClass = prefixCls + '-last-month-cell'; - var nextMonthDayClass = prefixCls + '-next-month-btn-day'; - var disabledClass = prefixCls + '-disabled-cell'; - var firstDisableClass = prefixCls + '-disabled-cell-first-of-row'; - var lastDisableClass = prefixCls + '-disabled-cell-last-of-row'; - var lastDayOfMonthClass = prefixCls + '-last-day-of-month'; - var month1 = value.clone(); - month1.date(1); - var day = month1.day(); - var lastMonthDiffDay = (day + 7 - value.localeData().firstDayOfWeek()) % 7; - // calculate last month - var lastMonth1 = month1.clone(); - lastMonth1.add(0 - lastMonthDiffDay, 'days'); - var passed = 0; + Table.prototype.handleBodyScroll = function handleBodyScroll(e) { + var headTable = this.headTable; + var _props10 = this.props, + _props10$scroll = _props10.scroll, + scroll = _props10$scroll === undefined ? {} : _props10$scroll, + clsPrefix = _props10.clsPrefix, + handleScrollY = _props10.handleScrollY, + handleScrollX = _props10.handleScrollX, + onBodyScroll = _props10.onBodyScroll; + var _refs = this.refs, + fixedColumnsBodyLeft = _refs.fixedColumnsBodyLeft, + fixedColumnsBodyRight = _refs.fixedColumnsBodyRight; + // Prevent scrollTop setter trigger onScroll event + // http://stackoverflow.com/q/1386696 - for (iIndex = 0; iIndex < _DateConstants2["default"].DATE_ROW_COUNT; iIndex++) { - for (jIndex = 0; jIndex < _DateConstants2["default"].DATE_COL_COUNT; jIndex++) { - current = lastMonth1; - if (passed) { - current = current.clone(); - current.add(passed, 'days'); - } - dateTable.push(current); - passed++; + if (e.currentTarget !== e.target) { + return; + } + if (e.target.scrollLeft !== this.lastScrollLeft) { + var position = ''; + if (e.target === this.bodyTable && headTable) { + headTable.scrollLeft = e.target.scrollLeft; + } else if (e.target === headTable && this.bodyTable) { + this.bodyTable.scrollLeft = e.target.scrollLeft; + } + if (e.target.scrollLeft === 0) { + position = 'left'; + } else if (e.target.scrollLeft + 1 >= e.target.children[0].getBoundingClientRect().width - e.target.getBoundingClientRect().width) { + position = 'right'; + } else if (this.state.scrollPosition !== 'middle') { + position = 'middle'; + } + if (position) { + (0, _componentClasses2["default"])(this.contentTable).remove(new RegExp('^' + clsPrefix + '-scroll-position-.+$')).add(clsPrefix + '-scroll-position-' + position); + } + if (handleScrollX) { + (0, _utils.debounce)(handleScrollX(e.target.scrollLeft, this.treeType), 300); } } - var tableHtml = []; - passed = 0; - - for (iIndex = 0; iIndex < _DateConstants2["default"].DATE_ROW_COUNT; iIndex++) { - var _cx; - - var isCurrentWeek = void 0; - var weekNumberCell = void 0; - var isActiveWeek = false; - var dateCells = []; - if (showWeekNumber) { - weekNumberCell = _react2["default"].createElement( - 'td', - { - key: dateTable[passed].week(), - role: 'gridcell', - className: weekNumberCellClass - }, - dateTable[passed].week() - ); + // console.log('lastScrollTop--'+this.lastScrollTop+'--eventScrollTop--'+ e.target.scrollTop); + if (scroll.y && this.lastScrollTop != e.target.scrollTop && e.target !== headTable) { + if (fixedColumnsBodyLeft && e.target !== fixedColumnsBodyLeft) { + fixedColumnsBodyLeft.scrollTop = e.target.scrollTop; } - for (jIndex = 0; jIndex < _DateConstants2["default"].DATE_COL_COUNT; jIndex++) { - var next = null; - var last = null; - current = dateTable[passed]; - if (jIndex < _DateConstants2["default"].DATE_COL_COUNT - 1) { - next = dateTable[passed + 1]; - } - if (jIndex > 0) { - last = dateTable[passed - 1]; - } - var cls = cellClass; - var disabled = false; - var selected = false; - - if (isSameDay(current, today)) { - cls += ' ' + todayClass; - isCurrentWeek = true; - } - - var isBeforeCurrentMonthYear = beforeCurrentMonthYear(current, value); - var isAfterCurrentMonthYear = afterCurrentMonthYear(current, value); - - if (selectedValue && Array.isArray(selectedValue)) { - var rangeValue = hoverValue.length ? hoverValue : selectedValue; - if (!isBeforeCurrentMonthYear && !isAfterCurrentMonthYear) { - var startValue = rangeValue[0]; - var endValue = rangeValue[1]; - if (startValue) { - if (isSameDay(current, startValue)) { - selected = true; - isActiveWeek = true; - cls += ' ' + selectedStartDateClass; - } - } - if (startValue && endValue) { - if (isSameDay(current, endValue)) { - selected = true; - isActiveWeek = true; - cls += ' ' + selectedEndDateClass; - } else if (current.isAfter(startValue, 'day') && current.isBefore(endValue, 'day')) { - cls += ' ' + inRangeClass; - } - } - } - } else if (isSameDay(current, value)) { - // keyboard change value, highlight works - selected = true; - isActiveWeek = true; - } - - if (isSameDay(current, selectedValue)) { - cls += ' ' + selectedDateClass; - } - - if (isBeforeCurrentMonthYear) { - cls += ' ' + lastMonthDayClass; - } - - if (isAfterCurrentMonthYear) { - cls += ' ' + nextMonthDayClass; - } + if (fixedColumnsBodyRight && e.target !== fixedColumnsBodyRight) { + fixedColumnsBodyRight.scrollTop = e.target.scrollTop; + } + if (this.bodyTable && e.target !== this.bodyTable) { + this.bodyTable.scrollTop = e.target.scrollTop; + } + if (this.hoverDom) { + this.hoverDom.style.display = 'none'; + } + this.lastScrollTop = e.target.scrollTop; + if (handleScrollY) { + (0, _utils.debounce)(handleScrollY(this.lastScrollTop, this.treeType, onBodyScroll), 300); + } else { + //滚动回调 + onBodyScroll(this.lastScrollTop); + } + } - if (current.clone().endOf('month').date() === current.date()) { - cls += ' ' + lastDayOfMonthClass; - } + // Remember last scrollLeft for scroll direction detecting. + this.lastScrollLeft = e.target.scrollLeft; + }; - if (disabledDate) { - if (disabledDate(current, value)) { - disabled = true; + Table.prototype.handleRowHover = function handleRowHover(isHover, key, event, currentIndex, propsRecord) { + //增加新的API,设置是否同步Hover状态,提高性能,避免无关的渲染 + var _props11 = this.props, + syncHover = _props11.syncHover, + onRowHover = _props11.onRowHover, + data = _props11.data; + //fix:树形表,onRowHover返回参数异常 - if (!last || !disabledDate(last, value)) { - cls += ' ' + firstDisableClass; - } + var isTreeType = this.isTreeType; - if (!next || !disabledDate(next, value)) { - cls += ' ' + lastDisableClass; - } + var record = isTreeType ? propsRecord : data[currentIndex]; + // 固定列、或者含有hoverdom时情况下同步hover状态 + if (this.columnManager.isAnyColumnsFixed() && syncHover) { + this.hoverKey = key; + this.store.setState({ + currentHoverKey: isHover ? key : null + }); + } + if (this.hoverDom) { + if (isHover) { + this.currentHoverKey = key; + var td = (0, _utils.closest)(event.target, 'td'); + if (td) { + var scrollTop = this.lastScrollTop ? this.lastScrollTop : 0; + var top = td.offsetTop - scrollTop; + if (this.headTable) { + top = top + this.headTable.clientHeight; } + this.hoverDom.style.top = top + 'px'; + this.hoverDom.style.height = td.offsetHeight + 'px'; + this.hoverDom.style.lineHeight = td.offsetHeight + 'px'; + this.hoverDom.style.display = 'block'; } + this.setState({ + currentHoverIndex: currentIndex, + currentHoverRecord: record + }); + } + } - if (selected) { - cls += ' ' + selectedClass; - } - - if (disabled) { - cls += ' ' + disabledClass; - } - - var dateHtml = void 0; - if (dateRender) { - dateHtml = dateRender(current, value); - } else { - var content = contentRender ? contentRender(current, value) : current.date(); - dateHtml = _react2["default"].createElement( - 'div', - { - key: getIdFromDate(current), - className: dateClass, - 'aria-selected': selected, - 'aria-disabled': disabled - }, - content - ); - } + onRowHover && onRowHover(currentIndex, record); + }; - dateCells.push(_react2["default"].createElement( - 'td', - { - key: passed, - onClick: disabled ? undefined : props.onSelect.bind(null, current), - onMouseEnter: disabled ? undefined : props.onDayHover && props.onDayHover.bind(null, current) || undefined, - role: 'gridcell', - title: (0, _util.getTitleString)(current), - className: cls - }, - dateHtml - )); + Table.prototype.render = function render() { + var _this7 = this; - passed++; - } + var _state3 = this.state, + currentHoverRecord = _state3.currentHoverRecord, + currentHoverIndex = _state3.currentHoverIndex; - tableHtml.push(_react2["default"].createElement( - 'tr', - { - key: iIndex, - role: 'row', - className: (0, _classnames2["default"])((_cx = {}, _defineProperty(_cx, prefixCls + '-current-week', isCurrentWeek), _defineProperty(_cx, prefixCls + '-active-week', isActiveWeek), _cx)) - }, - weekNumberCell, - dateCells - )); + var props = this.props; + var clsPrefix = props.clsPrefix; + var hasFixedLeft = this.columnManager.isAnyColumnsLeftFixed(); + var className = props.clsPrefix; + if (props.className) { + className += ' ' + props.className; + } + if (props.useFixedHeader || props.scroll && props.scroll.y) { + className += ' ' + clsPrefix + '-fixed-header'; + } + if (!props.showHeader) { + className += ' ' + clsPrefix + '-hide-header'; + } + if (props.bordered) { + className += ' ' + clsPrefix + '-bordered'; + } + className += ' ' + clsPrefix + '-scroll-position-' + this.state.scrollPosition; + //如果传入height说明是固定高度 + //内容过多折行显示时,height 属性会失效,为了避免产生错行 + if (props.bodyDisplayInRow && props.height) { + className += ' fixed-height'; + } + if (props.bodyDisplayInRow) { + className += ' body-dispaly-in-row'; + } + if (props.headerDisplayInRow) { + className += ' header-dispaly-in-row'; + } + var isTableScroll = this.columnManager.isAnyColumnsFixed() || props.scroll.x || props.scroll.y; + var loading = props.loading; + if (typeof loading === 'boolean') { + loading = { + show: loading + }; + } + if (props.size) { + className += ' ' + clsPrefix + '-' + props.size; + } + if (hasFixedLeft) { + className += ' has-fixed-left'; } + return _react2["default"].createElement( - 'tbody', - { className: prefixCls + '-tbody' }, - tableHtml + 'div', + { className: className, style: props.style, ref: function ref(el) { + return _this7.contentTable = el; + }, + tabIndex: props.focusable && (props.tabIndex ? props.tabIndex : '0') }, + this.getTitle(), + _react2["default"].createElement( + 'div', + { className: clsPrefix + '-content' }, + _react2["default"].createElement( + 'div', + { className: isTableScroll ? clsPrefix + '-scroll' : '' }, + this.getTable({ columns: this.columnManager.groupedColumns() }), + this.getEmptyText(), + this.getFooter() + ), + hasFixedLeft && _react2["default"].createElement( + 'div', + { className: clsPrefix + '-fixed-left' }, + this.getLeftFixedTable() + ), + this.columnManager.isAnyColumnsRightFixed() && _react2["default"].createElement( + 'div', + { className: clsPrefix + '-fixed-right' }, + this.getRightFixedTable() + ) + ), + _react2["default"].createElement(_beeLoading2["default"], _extends({ + container: this + }, loading)), + props.hoverContent && _react2["default"].createElement( + 'div', + { className: 'u-row-hover', + onMouseEnter: this.onRowHoverMouseEnter, onMouseLeave: this.onRowHoverMouseLeave, ref: function ref(el) { + return _this7.hoverDom = el; + } }, + props.hoverContent(currentHoverRecord, currentHoverIndex) + ) ); }; - return DateTBody; - }(_react2["default"].Component); + return Table; + }(_react.Component); + + ; - DateTBody.propTypes = { - contentRender: _propTypes2["default"].func, - dateRender: _propTypes2["default"].func, - disabledDate: _propTypes2["default"].func, - prefixCls: _propTypes2["default"].string, - selectedValue: _propTypes2["default"].oneOfType([_propTypes2["default"].object, _propTypes2["default"].arrayOf(_propTypes2["default"].object)]), - value: _propTypes2["default"].object, - hoverValue: _propTypes2["default"].any, - showWeekNumber: _propTypes2["default"].bool - }; - DateTBody.defaultProps = { - hoverValue: [] + Table.propTypes = propTypes; + Table.defaultProps = defaultProps; + Table.contextTypes = { + beeLocale: _propTypes2["default"].object }; - exports["default"] = DateTBody; + + exports["default"] = Table; module.exports = exports['default']; /***/ }), - /* 1274 */ + /* 1216 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -241490,6 +232376,8 @@ value: true }); + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + var _react = __webpack_require__(0); var _react2 = _interopRequireDefault(_react); @@ -241498,19 +232386,15 @@ var _propTypes2 = _interopRequireDefault(_propTypes); - var _reactLifecyclesCompat = __webpack_require__(14); - - var _MonthTable = __webpack_require__(1275); - - var _MonthTable2 = _interopRequireDefault(_MonthTable); + var _utils = __webpack_require__(109); - var _DateInput = __webpack_require__(78); + var _TableCell = __webpack_require__(1218); - var _DateInput2 = _interopRequireDefault(_DateInput); + var _TableCell2 = _interopRequireDefault(_TableCell); - var _moment = __webpack_require__(4); + var _ExpandIcon = __webpack_require__(1220); - var _moment2 = _interopRequireDefault(_moment); + var _ExpandIcon2 = _interopRequireDefault(_ExpandIcon); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -241522,2577 +232406,3287 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - function goYear(direction) { - var next = this.state.value.clone(); - next.add(direction, 'year'); - this.setAndChangeValue(next); - } + var propTypes = { + onDestroy: _propTypes2["default"].func, + onRowClick: _propTypes2["default"].func, + onRowDoubleClick: _propTypes2["default"].func, + record: _propTypes2["default"].object, + clsPrefix: _propTypes2["default"].string, + expandIconColumnIndex: _propTypes2["default"].number, + onHover: _propTypes2["default"].func, + columns: _propTypes2["default"].array, + height: _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].number]), + visible: _propTypes2["default"].bool, + index: _propTypes2["default"].number, + hoverKey: _propTypes2["default"].any, + expanded: _propTypes2["default"].bool, + expandable: _propTypes2["default"].any, + onExpand: _propTypes2["default"].func, + needIndentSpaced: _propTypes2["default"].bool, + className: _propTypes2["default"].string, + indent: _propTypes2["default"].number, + indentSize: _propTypes2["default"].number, + expandIconAsCell: _propTypes2["default"].bool, + expandRowByClick: _propTypes2["default"].bool, + store: _propTypes2["default"].object.isRequired, + rowDraggAble: _propTypes2["default"].bool, + onDragRow: _propTypes2["default"].func, + onDragRowStart: _propTypes2["default"].func, + syncRowHeight: _propTypes2["default"].bool + }; - function noop() {} + var defaultProps = { + onRowClick: function onRowClick() {}, - var MonthPanel = function (_React$Component) { - _inherits(MonthPanel, _React$Component); + // onRowDoubleClick() {}, + onDestroy: function onDestroy() {}, - function MonthPanel(props) { - _classCallCheck(this, MonthPanel); + expandIconColumnIndex: 0, + expandRowByClick: false, + onHover: function onHover() {}, - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); + className: '', + setRowParentIndex: function setRowParentIndex() {}, + rowDraggAble: false, + // onDragRow:()=>{} + syncRowHeight: false + }; - _this.setAndChangeValue = function (value) { - _this.setValue(value); - _this.props.onChange(value); + var TableRow = function (_Component) { + _inherits(TableRow, _Component); + + function TableRow(props) { + _classCallCheck(this, TableRow); + + var _this = _possibleConstructorReturn(this, _Component.call(this, props)); + + _this.initEvent = function () { + var events = [{ key: 'touchstart', fun: _this.onTouchStart }, //手指触摸到一个 DOM 元素时触发 + { key: 'touchmove', fun: _this.onTouchMove }, //手指在一个 DOM 元素上滑动时触发 + { key: 'touchend', fun: _this.onTouchEnd }, //手指从一个 DOM 元素上移开时触发 + + { key: 'dragstart', fun: _this.onDragStart }, //用户开始拖动元素时触发 + { key: 'dragover', fun: _this.onDragOver }, //当某被拖动的对象在另一对象容器范围内拖动时触发此事件 + { key: 'drop', fun: _this.onDrop }, //在一个拖动过程中,释放鼠标键时触发此事件 + { key: 'dragenter', fun: _this.onDragEnter }, { key: 'dragleave', fun: _this.onDragLeave }]; + _this.eventListen(events, '', _this.element); }; - _this.setAndSelectValue = function (value) { - _this.setValue(value); - _this.props.onSelect(value); + _this.removeDragAbleEvent = function () { + var events = [{ key: 'touchstart', fun: _this.onTouchStart }, //手指触摸到一个 DOM 元素时触发 + { key: 'touchmove', fun: _this.onTouchMove }, //手指在一个 DOM 元素上滑动时触发 + { key: 'touchend', fun: _this.onTouchEnd }, //手指从一个 DOM 元素上移开时触发 + + { key: 'dragstart', fun: _this.onDragStart }, //用户开始拖动元素时触发 + { key: 'dragover', fun: _this.onDragOver }, //当某被拖动的对象在另一对象容器范围内拖动时触发此事件 + { key: 'drop', fun: _this.onDrop }, //在一个拖动过程中,释放鼠标键时触发此事件 + { key: 'dragenter', fun: _this.onDragEnter }, { key: 'dragleave', fun: _this.onDragLeave }]; + _this.eventListen(events, 'remove', _this.element); }; - _this.setValue = function (value) { - if (!('value' in _this.props)) { - _this.setState({ - value: value - }); + _this.onDragStart = function (e) { + var onDragRowStart = _this.props.onDragRowStart; + + if (!_this.props.rowDraggAble) return; + var event = _utils.Event.getEvent(e), + target = _utils.Event.getTarget(event); + if (target.tagName === 'TD') { + target = target.parentNode; } + _this.currentIndex = target.getAttribute("data-row-key"); + _this._dragCurrent = target; + event.dataTransfer.effectAllowed = "move"; + event.dataTransfer.setData("Text", _this.currentIndex); + onDragRowStart && onDragRowStart(_this.currentIndex); }; - _this.nextYear = goYear.bind(_this, 1); - _this.previousYear = goYear.bind(_this, -1); - _this.prefixCls = props.rootPrefixCls + '-month-panel'; + _this.onDragOver = function (e) { + var event = _utils.Event.getEvent(e); + event.preventDefault(); + }; + + _this.onDrop = function (e) { + var onDragRow = _this.props.onDragRow; + + var event = _utils.Event.getEvent(e), + _target = _utils.Event.getTarget(event), + target = _target.parentNode; + + var currentKey = event.dataTransfer.getData("text"); + var targetKey = target.getAttribute("data-row-key"); + + if (!targetKey || targetKey === currentKey) return; + if (target.nodeName.toUpperCase() === "TR") { + _this.synchronizeTableTr(currentKey, null); + _this.synchronizeTableTr(targetKey, null); + } + onDragRow && onDragRow(currentKey, targetKey); + }; + + _this.getTouchDom = function (event) { + var currentLocation = event.changedTouches[0]; + var realTarget = document.elementFromPoint(currentLocation.clientX, currentLocation.clientY); + return realTarget; + }; + + _this.onTouchStart = function (e) { + e.stopPropagation(); + var onDragRowStart = _this.props.onDragRowStart; + + var event = _utils.Event.getEvent(e), + _target = _utils.Event.getTarget(event), + target = _target.parentNode; + + if (target.tagName === 'TR') { + + _this.currentIndex = target.getAttribute("data-row-key"); + + onDragRowStart && onDragRowStart(_this.currentIndex); + } else { + + _this.canBeTouch = false; + } + }; + + _this.onTouchMove = function (e) { + + if (!_this.canBeTouch) return; + e.stopPropagation(); + var event = _utils.Event.getEvent(e); + event.preventDefault(); + var touchTarget = _this.getTouchDom(event), + target = touchTarget.parentNode, + targetKey = target.getAttribute("data-row-key"); + if (!targetKey || targetKey === _this.currentIndex) return; + if (target.nodeName.toUpperCase() === "TR") { + if (_this.cacheCurrentIndex !== targetKey) { + //模拟 touchenter toucheleave 事件 + _this.cacheCurrentIndex && _this.synchronizeTableTr(_this.cacheCurrentIndex, null); //去掉虚线 + _this.synchronizeTableTr(targetKey, true); //添加虚线 + } + } + }; + + _this.onTouchEnd = function (e) { + + if (!_this.canBeTouch) { + _this.canBeTouch = true; + return; + } + + e.stopPropagation(); + var onDragRow = _this.props.onDragRow; + + var event = _utils.Event.getEvent(e), + currentKey = _this.currentIndex, + //拖拽行的key + touchTarget = _this.getTouchDom(event), + //当前触摸的DOM节点 + target = touchTarget.parentNode, + //目标位置的行 + targetKey = target.getAttribute("data-row-key"); //目标位置的行key + if (!targetKey || targetKey === currentKey) return; + if (target.nodeName.toUpperCase() === "TR") { + _this.synchronizeTableTr(currentKey, null); + _this.synchronizeTableTr(targetKey, null); + } + + onDragRow && onDragRow(currentKey, targetKey); + }; + + _this.synchronizeTableTrShadow = function () { + var _this$props = _this.props, + contentTable = _this$props.contentTable, + index = _this$props.index; + + + var cont = contentTable.querySelector('.u-table-scroll table tbody').getElementsByTagName("tr")[index], + trs = cont.getBoundingClientRect(), + fixed_left_trs = contentTable.querySelector('.u-table-fixed-left table tbody'), + fixed_right_trs = contentTable.querySelector('.u-table-fixed-right table tbody'); + fixed_left_trs = fixed_left_trs && fixed_left_trs.getElementsByTagName("tr")[index].getBoundingClientRect(); + fixed_right_trs = fixed_right_trs && fixed_right_trs.getElementsByTagName("tr")[index].getBoundingClientRect(); + + var div = document.createElement("div"); + var style = "wdith:" + (trs.width + (fixed_left_trs ? fixed_left_trs.width : 0) + (fixed_right_trs ? fixed_right_trs.width : 0)) + "px"; + style += ";height:" + trs.height + "px"; + style += ";classname:" + cont.className; + div.setAttribute("style", style); + return div; + }; + _this.synchronizeTableTr = function (currentIndex, type) { + if (type) { + //同步 this.cacheCurrentIndex + _this.cacheCurrentIndex = currentIndex; + } + var contentTable = _this.props.contentTable; + + var _table_trs = contentTable.querySelector('.u-table-scroll table tbody'), + _table_fixed_left_trs = contentTable.querySelector('.u-table-fixed-left table tbody'), + _table_fixed_right_trs = contentTable.querySelector('.u-table-fixed-right table tbody'); + + _table_trs = _table_trs ? _table_trs : contentTable.querySelector('.u-table table tbody'); + + _this.synchronizeTrStyle(_table_trs, currentIndex, type); + if (_table_fixed_left_trs) { + _this.synchronizeTrStyle(_table_fixed_left_trs, currentIndex, type); + } + if (_table_fixed_right_trs) { + _this.synchronizeTrStyle(_table_fixed_right_trs, currentIndex, type); + } + }; + + _this.synchronizeTrStyle = function (_elementBody, id, type) { + var contentTable = _this.props.contentTable, + trs = _elementBody.getElementsByTagName("tr"), + currentObj = void 0; + + for (var index = 0; index < trs.length; index++) { + var element = trs[index]; + if (element.getAttribute("data-row-key") == id) { + currentObj = element; + } + } + if (type) { + currentObj && currentObj.setAttribute("style", "border-bottom:2px solid #02B1FD"); + } else { + currentObj && currentObj.setAttribute("style", ""); + } + }; + + _this.onDragEnter = function (e) { + var event = _utils.Event.getEvent(e), + _target = _utils.Event.getTarget(event), + target = _target.parentNode; + var currentIndex = target.getAttribute("data-row-key"); + if (!currentIndex || currentIndex === _this.currentIndex) return; + if (target.nodeName.toUpperCase() === "TR") { + _this.synchronizeTableTr(currentIndex, true); + } + }; + + _this.onDragLeave = function (e) { + var event = _utils.Event.getEvent(e), + _target = _utils.Event.getTarget(event), + target = _target.parentNode; + var currentIndex = target.getAttribute("data-row-key"); + if (!currentIndex || currentIndex === _this.currentIndex) return; + if (target.nodeName.toUpperCase() === "TR") { + _this.synchronizeTableTr(currentIndex, null); + } + }; + + _this.set = function (fn) { + _this.clear(); + _this._timeout = window.setTimeout(fn, 300); + }; + + _this.clear = function (event) { + if (_this._timeout) { + window.clearTimeout(_this._timeout); + } + }; + + _this.bindElement = function (el) { + _this.element = el; + }; + + _this._timeout = null; _this.state = { - value: props.value || props.defaultValue + hovered: false }; + _this.onRowClick = _this.onRowClick.bind(_this); + _this.onRowDoubleClick = _this.onRowDoubleClick.bind(_this); + _this.onMouseEnter = _this.onMouseEnter.bind(_this); + _this.onMouseLeave = _this.onMouseLeave.bind(_this); + _this.expandHeight = 0; + _this.event = false; + _this.cacheCurrentIndex = null; + _this.canBeTouch = true; //受否允许拖动该行 return _this; } - MonthPanel.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps) { - var newState = {}; + TableRow.prototype.componentDidMount = function componentDidMount() { + var _this2 = this; - if ('value' in nextProps) { - newState = { - value: nextProps.value - }; - } + var _props = this.props, + store = _props.store, + hoverKey = _props.hoverKey, + treeType = _props.treeType, + rowDraggAble = _props.rowDraggAble; - return newState; + this.unsubscribe = store.subscribe(function () { + if (store.getState().currentHoverKey === hoverKey) { + _this2.setState({ hovered: true }); + } else if (_this2.state.hovered === true) { + _this2.setState({ hovered: false }); + } + }); + + this.setRowHeight(); + if (treeType) { + this.setRowParentIndex(); + } }; - MonthPanel.prototype.render = function render() { - var props = this.props; - var value = this.state.value; - var locale = props.locale, - cellRender = props.cellRender, - contentRender = props.contentRender, - renderFooter = props.renderFooter, - rootPrefixCls = props.rootPrefixCls; + /** + * 事件初始化 + */ - var year = value.year(); - var prefixCls = this.prefixCls; - var footer = renderFooter && renderFooter('month'); + /** + * 事件移除,提供性能以及内存泄漏等问题。 + */ - return _react2["default"].createElement( - 'div', - { className: prefixCls, style: props.style, tabIndex: '0' }, - _react2["default"].createElement( - 'div', - null, - _react2["default"].createElement( - 'div', - { className: prefixCls + '-header' }, - _react2["default"].createElement('a', { - className: prefixCls + '-prev-year-btn', - role: 'button', - onClick: this.previousYear, - title: locale.previousYear - }), - _react2["default"].createElement( - 'a', - { - className: prefixCls + '-year-select', - role: 'button', - onClick: props.onYearPanelShow, - title: locale.yearSelect - }, - _react2["default"].createElement( - 'span', - { className: prefixCls + '-year-select-content' }, - year - ), - _react2["default"].createElement( - 'span', - { className: prefixCls + '-year-select-arrow' }, - 'x' - ) - ), - _react2["default"].createElement('a', { - className: prefixCls + '-next-year-btn', - role: 'button', - onClick: this.nextYear, - title: locale.nextYear - }) - ), - _react2["default"].createElement( - 'div', - { className: prefixCls + '-body' }, - _react2["default"].createElement(_MonthTable2["default"], { - disabledDate: props.disabledDate, - onSelect: this.setAndSelectValue, - locale: locale, - value: value, - cellRender: cellRender, - contentRender: contentRender, - prefixCls: prefixCls - }) - ), - footer && _react2["default"].createElement( - 'div', - { className: prefixCls + '-footer' }, - footer - ) - ) - ); + + /** + * 事件绑定和移除函数 + */ + TableRow.prototype.eventListen = function eventListen(events, type, eventSource) { + for (var i = 0; i < events.length; i++) { + var _event = events[i]; + if (type === "remove") { + _utils.EventUtil.removeHandler(eventSource, _event.key, _event.fun); + } else { + _utils.EventUtil.addHandler(eventSource, _event.key, _event.fun); + } + } }; - return MonthPanel; - }(_react2["default"].Component); + /** + * 开始调整交换列的事件 + */ - MonthPanel.propTypes = { - onChange: _propTypes2["default"].func, - disabledDate: _propTypes2["default"].func, - onSelect: _propTypes2["default"].func, - renderFooter: _propTypes2["default"].func, - rootPrefixCls: _propTypes2["default"].string, - value: _propTypes2["default"].object, - defaultValue: _propTypes2["default"].object - }; - MonthPanel.defaultProps = { - onChange: noop, - onSelect: noop - }; + /** + * 在一个拖动过程中,释放鼠标键时触发此事件。【目标事件】 + * @memberof TableHeader + */ - (0, _reactLifecyclesCompat.polyfill)(MonthPanel); - exports["default"] = MonthPanel; - module.exports = exports['default']; + /** + * 获取当前触摸的Dom节点 + */ - /***/ }), - /* 1275 */ - /***/ (function(module, exports, __webpack_require__) { - "use strict"; + /** + * 开始调整交换行的事件 + */ - Object.defineProperty(exports, "__esModule", { - value: true - }); + /** + * 手指移开时触发 + */ - var _react = __webpack_require__(0); - var _react2 = _interopRequireDefault(_react); + /** + *同步当前拖拽到阴影 + * @memberof TableRow + */ - var _propTypes = __webpack_require__(1); - var _propTypes2 = _interopRequireDefault(_propTypes); + /** + * 同步自己,也需要同步当前行的行显示 + */ - var _classnames = __webpack_require__(2); - var _classnames2 = _interopRequireDefault(_classnames); + /** + * 设置同步的style + */ - var _index = __webpack_require__(32); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + TableRow.prototype.componentDidUpdate = function componentDidUpdate(prevProps) { + var _props2 = this.props, + rowDraggAble = _props2.rowDraggAble, + syncRowHeight = _props2.syncRowHeight; - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + if (!this.event) { + this.event = true; + if (rowDraggAble) { + this.initEvent(); + } + } + if (this.props.treeType) { + this.setRowParentIndex(); + } + if (syncRowHeight) { + this.setRowHeight(); + } + }; - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + TableRow.prototype.componentWillUnmount = function componentWillUnmount() { + var _props3 = this.props, + record = _props3.record, + onDestroy = _props3.onDestroy, + index = _props3.index, + rowDraggAble = _props3.rowDraggAble; - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + onDestroy(record, index); + if (this.unsubscribe) { + this.unsubscribe(); + } + if (rowDraggAble) { + this.removeDragAbleEvent(); + } + }; - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + TableRow.prototype.setRowHeight = function setRowHeight() { + var _props4 = this.props, + setRowHeight = _props4.setRowHeight, + _props4$expandedConte = _props4.expandedContentHeight, + expandedContentHeight = _props4$expandedConte === undefined ? 0 : _props4$expandedConte, + fixed = _props4.fixed, + fixedIndex = _props4.fixedIndex; - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + if (!setRowHeight || !this.element || fixed) return; + setRowHeight(this.element.clientHeight + expandedContentHeight, fixedIndex); + }; - var ROW = 4; - var COL = 3; + TableRow.prototype.setRowParentIndex = function setRowParentIndex() { + var _props5 = this.props, + index = _props5.index, + setRowParentIndex = _props5.setRowParentIndex, + fixedIndex = _props5.fixedIndex, + rootIndex = _props5.rootIndex; - function chooseMonth(month) { - var next = this.state.value.clone(); - next.month(month); - this.setAndSelectValue(next); - } + setRowParentIndex(rootIndex < 0 ? index : rootIndex, fixedIndex); + }; - function noop() {} + TableRow.prototype.onRowClick = function onRowClick(event) { + // fix: 解决 onRowClick 回调函数中,事件对象属性均为 null 的问题 + // 异步访问事件属性 + // 调用 event.persist() 会从事件池中移除该合成函数并允许对该合成事件的引用被保留下来。 + event.persist(); + var _props6 = this.props, + record = _props6.record, + index = _props6.index, + onRowClick = _props6.onRowClick, + expandable = _props6.expandable, + expandRowByClick = _props6.expandRowByClick, + expanded = _props6.expanded, + onExpand = _props6.onExpand, + fixedIndex = _props6.fixedIndex, + onRowDoubleClick = _props6.onRowDoubleClick; - var MonthTable = function (_Component) { - _inherits(MonthTable, _Component); + if (expandable && expandRowByClick) { + onExpand(!expanded, record, fixedIndex, event); + } + if (!onRowDoubleClick) { + onRowClick(record, fixedIndex, event); + return; + } + this.set(function (e) { + onRowClick(record, fixedIndex, event); + }); + }; - function MonthTable(props) { - _classCallCheck(this, MonthTable); + TableRow.prototype.onRowDoubleClick = function onRowDoubleClick(event) { + var _props7 = this.props, + record = _props7.record, + index = _props7.index, + onRowDoubleClick = _props7.onRowDoubleClick, + fixedIndex = _props7.fixedIndex; - var _this = _possibleConstructorReturn(this, _Component.call(this, props)); + this.clear(); + onRowDoubleClick && onRowDoubleClick(record, fixedIndex, event); + }; - _this.state = { - value: props.value - }; - return _this; - } + TableRow.prototype.onMouseEnter = function onMouseEnter(e) { + var _props8 = this.props, + onHover = _props8.onHover, + hoverKey = _props8.hoverKey, + fixedIndex = _props8.fixedIndex, + syncHover = _props8.syncHover, + record = _props8.record; - MonthTable.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - if ('value' in nextProps) { - this.setState({ - value: nextProps.value - }); + if (syncHover) { + this.setState({ hovered: true }); } + onHover(true, hoverKey, e, fixedIndex, record); }; - MonthTable.prototype.setAndSelectValue = function setAndSelectValue(value) { - this.setState({ - value: value - }); - this.props.onSelect(value); - }; + TableRow.prototype.onMouseLeave = function onMouseLeave(e) { + var _props9 = this.props, + onHover = _props9.onHover, + hoverKey = _props9.hoverKey, + fixedIndex = _props9.fixedIndex, + syncHover = _props9.syncHover, + record = _props9.record; - MonthTable.prototype.months = function months() { - var value = this.state.value; - var current = value.clone(); - var months = []; - var index = 0; - for (var rowIndex = 0; rowIndex < ROW; rowIndex++) { - months[rowIndex] = []; - for (var colIndex = 0; colIndex < COL; colIndex++) { - current.month(index); - var content = (0, _index.getMonthName)(current); - months[rowIndex][colIndex] = { - value: index, - content: content, - title: content - }; - index++; - } + if (syncHover) { + this.setState({ hovered: false }); } - return months; + onHover(false, hoverKey, e, fixedIndex, record); }; - MonthTable.prototype.render = function render() { - var _this2 = this; + TableRow.prototype.render = function render() { + var _props10 = this.props, + clsPrefix = _props10.clsPrefix, + columns = _props10.columns, + record = _props10.record, + height = _props10.height, + visible = _props10.visible, + index = _props10.index, + onPaste = _props10.onPaste, + expandIconColumnIndex = _props10.expandIconColumnIndex, + expandIconAsCell = _props10.expandIconAsCell, + expanded = _props10.expanded, + useDragHandle = _props10.useDragHandle, + rowDraggAble = _props10.rowDraggAble, + expandable = _props10.expandable, + onExpand = _props10.onExpand, + needIndentSpaced = _props10.needIndentSpaced, + indent = _props10.indent, + indentSize = _props10.indentSize, + isHiddenExpandIcon = _props10.isHiddenExpandIcon, + fixed = _props10.fixed, + bodyDisplayInRow = _props10.bodyDisplayInRow, + expandedIcon = _props10.expandedIcon, + collapsedIcon = _props10.collapsedIcon, + hoverKey = _props10.hoverKey, + lazyStartIndex = _props10.lazyStartIndex, + lazyEndIndex = _props10.lazyEndIndex, + expandIconCellWidth = _props10.expandIconCellWidth; - var props = this.props; - var value = this.state.value; - var today = (0, _index.getTodayTime)(value); - var months = this.months(); - var currentMonth = value.month(); - var prefixCls = props.prefixCls, - locale = props.locale, - contentRender = props.contentRender, - cellRender = props.cellRender; + var showSum = false; + var className = this.props.className; - var monthsEls = months.map(function (month, index) { - var tds = month.map(function (monthData) { - var _classNameMap; + if (this.state.hovered) { + className += ' ' + clsPrefix + '-hover'; + } + //判断是否为合计行 + if (className.indexOf('sumrow') > -1) { + showSum = true; + } + var cells = []; - var disabled = false; - if (props.disabledDate) { - var testValue = value.clone(); - testValue.month(monthData.value); - disabled = props.disabledDate(testValue); - } - var classNameMap = (_classNameMap = {}, _defineProperty(_classNameMap, prefixCls + '-cell', 1), _defineProperty(_classNameMap, prefixCls + '-cell-disabled', disabled), _defineProperty(_classNameMap, prefixCls + '-selected-cell', monthData.value === currentMonth), _defineProperty(_classNameMap, prefixCls + '-current-cell', today.year() === value.year() && monthData.value === today.month()), _classNameMap); - var cellEl = void 0; - if (cellRender) { - var currentValue = value.clone(); - currentValue.month(monthData.value); - cellEl = cellRender(currentValue, locale); - } else { - var content = void 0; - if (contentRender) { - var _currentValue = value.clone(); - _currentValue.month(monthData.value); - content = contentRender(_currentValue, locale); - } else { - content = monthData.content; - } - cellEl = _react2["default"].createElement( - 'a', - { className: prefixCls + '-month' }, - content - ); - } - return _react2["default"].createElement( + var expandIcon = _react2["default"].createElement(_ExpandIcon2["default"], { + expandable: expandable, + clsPrefix: clsPrefix, + onExpand: onExpand, + needIndentSpaced: needIndentSpaced, + expanded: expanded, + record: record, + expandedIcon: expandedIcon, + collapsedIcon: collapsedIcon, + isHiddenExpandIcon: isHiddenExpandIcon + }); + var isExpandIconAsCell = expandIconAsCell ? clsPrefix + '-expand-columns-in-body' : ''; + var expandIndexInThisTable; + if (this.props.fixed === 'right') { + expandIndexInThisTable = expandIconColumnIndex - this.props.leftColumnsLength - this.props.centerColumnsLength; + } else { + expandIndexInThisTable = expandIconColumnIndex; + } + for (var i = 0; i < columns.length; i++) { + if (expandIconAsCell && i === 0) { + showSum ? cells.push(_react2["default"].createElement('td', { width: expandIconCellWidth })) : cells.push(_react2["default"].createElement( 'td', { - role: 'gridcell', - key: monthData.value, - onClick: disabled ? null : chooseMonth.bind(_this2, monthData.value), - title: monthData.title, - className: (0, _classnames2["default"])(classNameMap) + className: clsPrefix + '-expand-icon-cell ' + isExpandIconAsCell, + key: 'rc-table-expand-icon-cell-' + i, + width: expandIconCellWidth }, - cellEl - ); - }); - return _react2["default"].createElement( - 'tr', - { key: index, role: 'row' }, - tds - ); - }); - + expandIcon + )); + } + // bugfix 设置expandRowByClick,无法显示箭头,去掉 expandRowByClick 判断 + var isColumnHaveExpandIcon = expandIconAsCell || showSum ? false : i === expandIndexInThisTable; + cells.push(_react2["default"].createElement(_TableCell2["default"], { + clsPrefix: clsPrefix, + record: record, + indentSize: indentSize, + indent: indent, + index: index, + column: columns[i], + key: index + "_" + (columns[i].key || columns[i].dataIndex || i), + fixed: fixed, + showSum: showSum, + expandIcon: isColumnHaveExpandIcon ? expandIcon : null, + bodyDisplayInRow: bodyDisplayInRow, + lazyStartIndex: lazyStartIndex, + lazyEndIndex: lazyEndIndex, + onPaste: onPaste, + col: i + })); + } + var style = _extends({ height: height }, record ? record.style : undefined); + if (!visible) { + style.display = 'none'; + } + if (record && record._checked) { + className += ' selected'; + } return _react2["default"].createElement( - 'table', - { className: prefixCls + '-table', cellSpacing: '0', role: 'grid' }, - _react2["default"].createElement( - 'tbody', - { className: prefixCls + '-tbody' }, - monthsEls - ) + 'tr', + { + draggable: rowDraggAble && !useDragHandle, + onClick: this.onRowClick, + onDoubleClick: this.onRowDoubleClick, + onMouseEnter: this.onMouseEnter, + onMouseLeave: this.onMouseLeave, + className: clsPrefix + ' ' + className + ' ' + clsPrefix + '-level-' + indent, + style: style, + 'data-row-key': record && record.key ? record.key : hoverKey + // key={hoverKey} + , ref: this.bindElement + }, + cells.length > 0 ? cells : _react2["default"].createElement('td', { style: { width: 0, padding: 0 } }) ); }; - return MonthTable; + return TableRow; }(_react.Component); - MonthTable.defaultProps = { - onSelect: noop - }; - MonthTable.propTypes = { - onSelect: _propTypes2["default"].func, - cellRender: _propTypes2["default"].func, - prefixCls: _propTypes2["default"].string, - value: _propTypes2["default"].object - }; - exports["default"] = MonthTable; + ; + + TableRow.propTypes = propTypes; + TableRow.defaultProps = defaultProps; + + exports["default"] = TableRow; module.exports = exports['default']; /***/ }), - /* 1276 */ + /* 1217 */ + /***/ (function(module, exports, __webpack_require__) { + + var root = __webpack_require__(71), + toString = __webpack_require__(226); + + /** Used to match leading and trailing whitespace. */ + var reTrimStart = /^\s+/; + + /* Built-in method references for those with the same name as other `lodash` methods. */ + var nativeParseInt = root.parseInt; + + /** + * Converts `string` to an integer of the specified radix. If `radix` is + * `undefined` or `0`, a `radix` of `10` is used unless `value` is a + * hexadecimal, in which case a `radix` of `16` is used. + * + * **Note:** This method aligns with the + * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`. + * + * @static + * @memberOf _ + * @since 1.1.0 + * @category String + * @param {string} string The string to convert. + * @param {number} [radix=10] The radix to interpret `value` by. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {number} Returns the converted integer. + * @example + * + * _.parseInt('08'); + * // => 8 + * + * _.map(['6', '08', '10'], _.parseInt); + * // => [6, 8, 10] + */ + function parseInt(string, radix, guard) { + if (guard || radix == null) { + radix = 0; + } else if (radix) { + radix = +radix; + } + return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0); + } + + module.exports = parseInt; + + + /***/ }), + /* 1218 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; - exports.__esModule = true; - exports.default = all; + Object.defineProperty(exports, "__esModule", { + value: true + }); - var _createChainableTypeChecker = __webpack_require__(185); + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker); + var _react = __webpack_require__(0); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + var _react2 = _interopRequireDefault(_react); - function all() { - for (var _len = arguments.length, validators = Array(_len), _key = 0; _key < _len; _key++) { - validators[_key] = arguments[_key]; - } + var _propTypes = __webpack_require__(1); - function allPropTypes() { - for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - args[_key2] = arguments[_key2]; - } + var _propTypes2 = _interopRequireDefault(_propTypes); - var error = null; + var _objectPath = __webpack_require__(1219); - validators.forEach(function (validator) { - if (error != null) { - return; - } + var _objectPath2 = _interopRequireDefault(_objectPath); - var result = validator.apply(undefined, args); - if (result != null) { - error = result; - } - }); + var _i18n = __webpack_require__(177); - return error; - } + var _i18n2 = _interopRequireDefault(_i18n); - return (0, _createChainableTypeChecker2.default)(allPropTypes); - } /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ + var _tool = __webpack_require__(178); - /***/ }), - /* 1277 */ - /***/ (function(module, exports, __webpack_require__) { + var _utils = __webpack_require__(109); - "use strict"; + var _beeDropdown = __webpack_require__(151); + var _beeDropdown2 = _interopRequireDefault(_beeDropdown); - exports.__esModule = true; + var _beeMenus = __webpack_require__(160); - var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ + var _beeMenus2 = _interopRequireDefault(_beeMenus); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - var _react = __webpack_require__(0); + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - var _react2 = _interopRequireDefault(_react); + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + + var Item = _beeMenus2["default"].Item; + + var propTypes = { + record: _propTypes2["default"].object, + clsPrefix: _propTypes2["default"].string, + index: _propTypes2["default"].number, + indent: _propTypes2["default"].number, + indentSize: _propTypes2["default"].number, + column: _propTypes2["default"].object, + expandIcon: _propTypes2["default"].node, + onPaste: _propTypes2["default"].func + }; + + var TableCell = function (_Component) { + _inherits(TableCell, _Component); + + function TableCell(props) { + _classCallCheck(this, TableCell); + + var _this = _possibleConstructorReturn(this, _Component.call(this, props)); + + _this.renderLinkType = function (data, record, index) { + var config = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; + var url = config.url, + urlIndex = config.urlIndex, + linkType = config.linkType, + className = config.className, + underline = config.underline, + descIndex = config.descIndex, + desc = config.desc, + linkColor = config.linkColor; - var _createChainableTypeChecker = __webpack_require__(185); + var linkUrl = ''; + if (url) { + linkUrl = url(data, record, index); + } else if (urlIndex) { + linkUrl = record[urlIndex]; + } + if (linkUrl) { + var link = function link() { + window.open(linkUrl, linkType || '_blank'); + }; + var cls = 'u-table-link u-table-fieldtype '; + if (className) { + cls += className + ' '; + } + if (underline) { + cls += 'u-table-link-underline '; + } + var title = ''; - var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker); + if (desc === true) { + title = linkUrl; + } else if (typeof desc === 'string') { + title = desc; + } else if (typeof desc === 'function') { + title = desc(data, record, index); + } else if (descIndex) { + title = record[descIndex]; + } + return _react2["default"].createElement( + 'span', + { onClick: link, className: cls, style: { color: linkColor || '' }, title: title }, + data + ); + } + return data; + }; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + _this.renderBoolType = function (data) { + var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - function validate(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - var propType = typeof propValue === 'undefined' ? 'undefined' : _typeof(propValue); + var locale = (0, _tool.getComponentLocale)(_this.props, _this.context, 'Table', function () { + return _i18n2["default"]; + }); + var boolConfig = _extends({ trueText: locale['bool_true'], falseText: locale['bool_false'] }, config); + if (typeof data === 'string') { + if (data === 'false' || data === '0') { + return boolConfig.falseText; + } + } else if (!data) { + return boolConfig.falseText; + } + return boolConfig.trueText; + }; - if (_react2.default.isValidElement(propValue)) { - return new Error('Invalid ' + location + ' `' + propFullName + '` of type ReactElement ' + ('supplied to `' + componentName + '`, expected a ReactComponent or a ') + 'DOMElement. You can usually obtain a ReactComponent or DOMElement ' + 'from a ReactElement by attaching a ref to it.'); - } + _this.renderNumber = function (data) { + var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 200; + var precision = config.precision, + thousand = config.thousand, + makeUp = config.makeUp, + preSymbol = config.preSymbol, + nextSymbol = config.nextSymbol; - if ((propType !== 'object' || typeof propValue.render !== 'function') && propValue.nodeType !== 1) { - return new Error('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected a ReactComponent or a ') + 'DOMElement.'); - } + var number = (0, _utils.formatMoney)(data, precision, thousand); + if (makeUp === false && number.indexOf('.') !== -1) { + number = number.replace(/0*$/, '').replace(/\.$/, ''); + } + var numberWidth = parseInt(width) - 16; // 减去默认的左右padding共计16px + var res = _react2["default"].createElement( + 'span', + { className: 'u-table-currency-number' }, + number + ); + var pre = preSymbol ? _react2["default"].createElement( + 'span', + { className: 'u-table-currency-pre' }, + preSymbol + ) : null; + var next = nextSymbol ? _react2["default"].createElement( + 'span', + { className: 'u-table-currency-next' }, + nextSymbol + ) : null; + var title = ''; + title += typeof preSymbol === 'string' ? preSymbol : ''; + title += number; + title += typeof nextSymbol === 'string' ? nextSymbol : ''; + return _react2["default"].createElement( + 'span', + { className: 'u-table-currency u-table-fieldtype', style: { width: numberWidth }, title: title }, + pre, + res, + next + ); + }; - return null; - } + _this.renderDate = function (data) { + var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var moment = config.moment, + format = config.format; - exports.default = (0, _createChainableTypeChecker2.default)(validate); + if (!moment) return data; + return moment(data).format(format || 'YYYY-MM-DD'); + }; - /***/ }), - /* 1278 */ - /***/ (function(module, exports, __webpack_require__) { + _this.renderSelect = function (data) { + var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - "use strict"; + if (config.options) { + data = config.options[data] || config.defaultShow; + } + return data; + }; + _this.renderColumnMenu = function (colMenu, text, record, index) { + if (!colMenu) return null; + var menu = colMenu.menu, + _colMenu$trigger = colMenu.trigger, + trigger = _colMenu$trigger === undefined ? 'hover' : _colMenu$trigger, + _colMenu$className = colMenu.className, + className = _colMenu$className === undefined ? '' : _colMenu$className, + _colMenu$icon = colMenu.icon, + icon = _colMenu$icon === undefined ? _react2["default"].createElement('i', { className: 'uf uf-3dot-h' }) : _colMenu$icon, + _colMenu$iconSize = colMenu.iconSize, + iconSize = _colMenu$iconSize === undefined ? 21 : _colMenu$iconSize; - exports.__esModule = true; - exports.default = deprecated; + var items = []; + items = menu.map(function (item) { + return _react2["default"].createElement( + Item, + { key: item.key, onClick: function onClick() { + _this.onClickColMenu(item.callback, text, record, index); + } }, + item.icon, + item.text + ); + }); + if (items.length === 0) return null; + className += ' u-table-inline-op-dropdowm'; + var menus = _react2["default"].createElement( + _beeMenus2["default"], + { className: className }, + items + ); + var top = 'calc(50% - ' + iconSize / 2 + 'px)'; + var visibility = _this.state.showDropdowm ? 'visible' : ''; + var iconClassName = 'u-table-inline-op-icon u-table-inline-op-icon-hover'; + return _react2["default"].createElement( + _beeDropdown2["default"], + { + trigger: [trigger], + overlay: menus, + animation: 'slide-up', + onVisibleChange: _this.changeShowDropdowm + }, + _react2["default"].createElement( + 'span', + { className: iconClassName, style: { fontSize: iconSize, top: top, visibility: visibility } }, + icon + ) + ); + }; - var _warning = __webpack_require__(6); + _this.changeShowDropdowm = function (val) { + _this.setState({ + showDropdowm: val + }); + }; - var _warning2 = _interopRequireDefault(_warning); + _this.onClickColMenu = function (callback, text, record, index) { + if (callback) { + callback(text, record, index); + } + _this.setState({ + showDropdowm: false + }); + }; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + _this.onPaste = function (e) { + var _this$props = _this.props, + row = _this$props.index, + onPaste = _this$props.onPaste, + fixed = _this$props.fixed, + col = _this$props.col; - var warned = {}; /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ - function deprecated(validator, reason) { - return function validate(props, propName, componentName, location, propFullName) { - var componentNameSafe = componentName || '<>'; - var propFullNameSafe = propFullName || propName; + var position = { + row: row, + col: col, + fixed: !!fixed + }; + onPaste(e, position); + }; - if (props[propName] != null) { - var messageKey = componentName + '.' + propName; + _this.isInvalidRenderCellText = _this.isInvalidRenderCellText.bind(_this); + _this.handleClick = _this.handleClick.bind(_this); + _this.state = { + showDropdowm: false + }; + return _this; + } - (0, _warning2.default)(warned[messageKey], 'The ' + location + ' `' + propFullNameSafe + '` of ' + ('`' + componentNameSafe + '` is deprecated. ' + reason + '.')); + TableCell.prototype.isInvalidRenderCellText = function isInvalidRenderCellText(text) { + return text && !_react2["default"].isValidElement(text) && Object.prototype.toString.call(text) === '[object Object]'; + }; - warned[messageKey] = true; - } + TableCell.prototype.handleClick = function handleClick(e) { + var _props = this.props, + record = _props.record, + onCellClick = _props.column.onCellClick; - for (var _len = arguments.length, args = Array(_len > 5 ? _len - 5 : 0), _key = 5; _key < _len; _key++) { - args[_key - 5] = arguments[_key]; + if (onCellClick) { + onCellClick(record, e); } - - return validator.apply(undefined, [props, propName, componentName, location, propFullName].concat(args)); }; - } - /* eslint-disable no-underscore-dangle */ - function _resetWarned() { - warned = {}; - } - - deprecated._resetWarned = _resetWarned; - /* eslint-enable no-underscore-dangle */ + // 渲染链接类型 - /***/ }), - /* 1279 */ - /***/ (function(module, exports, __webpack_require__) { - "use strict"; + // 渲染布尔类型 - exports.__esModule = true; + // 渲染整数/货币类型 - var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ + // 渲染时间类型-l - var _react = __webpack_require__(0); - var _react2 = _interopRequireDefault(_react); + // 渲染下拉类型,主要为编辑表格铺垫 - var _createChainableTypeChecker = __webpack_require__(185); - var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker); + // 渲染行内菜单 - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - function elementType(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - var propType = typeof propValue === 'undefined' ? 'undefined' : _typeof(propValue); + // 下拉按钮状态改变,点击后保持图标常驻 - if (_react2.default.isValidElement(propValue)) { - return new Error('Invalid ' + location + ' `' + propFullName + '` of type ReactElement ' + ('supplied to `' + componentName + '`, expected an element type (a string ') + 'or a ReactClass).'); - } - if (propType !== 'function' && propType !== 'string') { - return new Error('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected an element type (a string ') + 'or a ReactClass).'); - } + // 菜单点击事件 - return null; - } - exports.default = (0, _createChainableTypeChecker2.default)(elementType); + TableCell.prototype.render = function render() { + var _props2 = this.props, + record = _props2.record, + indentSize = _props2.indentSize, + clsPrefix = _props2.clsPrefix, + indent = _props2.indent, + index = _props2.index, + expandIcon = _props2.expandIcon, + column = _props2.column, + fixed = _props2.fixed, + showSum = _props2.showSum, + bodyDisplayInRow = _props2.bodyDisplayInRow, + lazyStartIndex = _props2.lazyStartIndex, + lazyEndIndex = _props2.lazyEndIndex; - /***/ }), - /* 1280 */ - /***/ (function(module, exports, __webpack_require__) { + var dataIndex = column.dataIndex, + render = column.render, + fieldType = column.fieldType, + linkConfig = column.linkConfig, + fontColor = column.fontColor, + bgColor = column.bgColor, + other = _objectWithoutProperties(column, ['dataIndex', 'render', 'fieldType', 'linkConfig', 'fontColor', 'bgColor']); - "use strict"; + var _column$className = column.className, + className = _column$className === undefined ? '' : _column$className; - exports.__esModule = true; - exports.default = isRequiredForA11y; - /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ - function isRequiredForA11y(validator) { - return function validate(props, propName, componentName, location, propFullName) { - var componentNameSafe = componentName || '<>'; - var propFullNameSafe = propFullName || propName; + var text = _objectPath2["default"].get(record, dataIndex); + var tdProps = void 0; + var colSpan = void 0; + var rowSpan = void 0, + title = void 0; - if (props[propName] == null) { - return new Error('The ' + location + ' `' + propFullNameSafe + '` is required to make ' + ('`' + componentNameSafe + '` accessible for users of assistive ') + 'technologies such as screen readers.'); + if (render && !showSum) { + text = render(text, record, index, _extends({ + dataIndex: dataIndex, render: render, fieldType: fieldType, linkConfig: linkConfig, fontColor: fontColor, bgColor: bgColor }, other)); + if (this.isInvalidRenderCellText(text)) { + tdProps = text.props || {}; + rowSpan = tdProps.rowSpan > lazyEndIndex && lazyEndIndex > 5 ? lazyEndIndex - index : tdProps.rowSpan; + colSpan = tdProps.colSpan; + text = text.children; + } } - for (var _len = arguments.length, args = Array(_len > 5 ? _len - 5 : 0), _key = 5; _key < _len; _key++) { - args[_key - 5] = arguments[_key]; + var colMenu = this.renderColumnMenu(column.cellMenu, text, record, index); + // 根据 fieldType 来渲染数据 + if (!render) { + switch (column.fieldType) { + case 'link': + { + text = this.renderLinkType(text, record, index, column.linkConfig); + break; + } + case 'bool': + { + text = this.renderBoolType(text, column.boolConfig); + break; + } + case 'currency': + { + var config = { + precision: 2, // 精度值,需要大于0 + thousand: true, // 是否显示千分符号 + makeUp: true, // 末位是否补零 + preSymbol: '', // 前置符号 + nextSymbol: '' // 后置符号 + }; + text = this.renderNumber(text, _extends({}, config, column.currencyConfig), column.width); + break; + } + case 'number': + { + var _config = { + precision: 0, // 精度值,需要大于0 + thousand: true, // 是否显示千分符号 + makeUp: false, // 末位是否补零 + preSymbol: '', // 前置符号 + nextSymbol: '' // 后置符号 + }; + text = this.renderNumber(text, _extends({}, _config, column.numberConfig), column.width); + break; + } + case 'date': + { + text = this.renderDate(text, column.dateConfig); + break; + } + case 'select': + { + text = this.renderSelect(text, column.selectConfig); + break; + } + default: + { + break; + } + } } - return validator.apply(undefined, [props, propName, componentName, location, propFullName].concat(args)); - }; - } - - /***/ }), - /* 1281 */ - /***/ (function(module, exports, __webpack_require__) { - - "use strict"; - - - exports.__esModule = true; - exports.default = splitComponentProps; - /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ - function _objectEntries(obj) { - var entries = []; - var keys = Object.keys(obj); + if (this.isInvalidRenderCellText(text)) { + text = null; + } - for (var k = 0; k < keys.length; ++k) { - entries.push([keys[k], obj[keys[k]]]); - }return entries; - } + var indentText = expandIcon ? _react2["default"].createElement('span', { + style: { paddingLeft: indentSize * indent + 'px' }, + className: clsPrefix + '-indent indent-level-' + indent + }) : null; - /** - * 分割要传入父元素和子元素的props - * @param {[object]} props 传入的属性 - * @param {[reactElement]} Component 组件 - * @return {[array]} 返回数组,第一个元素为父元素props对象,第二个子元素props对象 - */ - function splitComponentProps(props, Component) { - var componentPropTypes = Component.propTypes; + if (lazyStartIndex !== index && (rowSpan === 0 || colSpan === 0)) { + return null; + } + if (tdProps && tdProps.mergeEndIndex && index < tdProps.mergeEndIndex && rowSpan === 0) { + rowSpan = tdProps.mergeEndIndex - index; + text = ''; + } + //不是固定表格并且当前列是固定,则隐藏当前列 + if (column.fixed && !fixed) { + className = className + (' ' + clsPrefix + '-fixed-columns-in-body'); + } + if (column.contentAlign) { + className = className + (' text-' + column.contentAlign); + } else if (column.textAlign) { + className = className + (' text-' + column.textAlign); + } + if ((typeof text == 'string' || typeof text === 'number') && bodyDisplayInRow) { + title = text; + } + if (expandIcon && expandIcon.props.expandable) { + className = className + (' ' + clsPrefix + '-has-expandIcon'); + } + if (colMenu) { + className += ' u-table-inline-icon'; + } + if (colSpan == 0) return null; + return _react2["default"].createElement( + 'td', + { + draggable: column.draggable, + colSpan: colSpan, + rowSpan: rowSpan, + className: className, + onClick: this.handleClick, + title: title, + onPaste: this.onPaste, + style: _extends({ maxWidth: column.width, color: fontColor, backgroundColor: bgColor }, column.style) }, + indentText, + expandIcon, + text, + colMenu + ); + }; - var parentProps = {}; - var childProps = {}; + return TableCell; + }(_react.Component); - _objectEntries(props).forEach(function (_ref) { - var propName = _ref[0], - propValue = _ref[1]; + ; - if (componentPropTypes[propName]) { - parentProps[propName] = propValue; - } else { - childProps[propName] = propValue; - } - }); + TableCell.propTypes = propTypes; - return [parentProps, childProps]; - } + exports["default"] = TableCell; + module.exports = exports['default']; /***/ }), - /* 1282 */ + /* 1219 */ /***/ (function(module, exports, __webpack_require__) { - "use strict"; - + var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (root, factory){ + 'use strict'; - exports.__esModule = true; - /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ - function createChainedFunction() { - for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) { - funcs[_key] = arguments[_key]; + /*istanbul ignore next:cant test*/ + if (typeof module === 'object' && typeof module.exports === 'object') { + module.exports = factory(); + } else if (true) { + // AMD. Register as an anonymous module. + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? + (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), + __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + } else { + // Browser globals + root.objectPath = factory(); } + })(this, function(){ + 'use strict'; - return funcs.filter(function (f) { - return f != null; - }).reduce(function (acc, f) { - if (typeof f !== 'function') { - throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.'); - } - - if (acc === null) { - return f; + var toStr = Object.prototype.toString; + function hasOwnProperty(obj, prop) { + if(obj == null) { + return false } - - return function chainedFunction() { - for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - args[_key2] = arguments[_key2]; - } - - acc.apply(this, args); - f.apply(this, args); - }; - }, null); - } - exports.default = createChainedFunction; - - /***/ }), - /* 1283 */ - /***/ (function(module, exports, __webpack_require__) { - - "use strict"; - /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ - - - /** - * @ignore - * some key-codes definition and utils from closure-library - * @author yiminghe@gmail.com - */ - - var KeyCode = { - /** - * MAC_ENTER - */ - MAC_ENTER: 3, - /** - * BACKSPACE - */ - BACKSPACE: 8, - /** - * TAB - */ - TAB: 9, - /** - * NUMLOCK on FF/Safari Mac - */ - NUM_CENTER: 12, // NUMLOCK on FF/Safari Mac - /** - * ENTER - */ - ENTER: 13, - /** - * SHIFT - */ - SHIFT: 16, - /** - * CTRL - */ - CTRL: 17, - /** - * ALT - */ - ALT: 18, - /** - * PAUSE - */ - PAUSE: 19, - /** - * CAPS_LOCK - */ - CAPS_LOCK: 20, - /** - * ESC - */ - ESC: 27, - /** - * SPACE - */ - SPACE: 32, - /** - * PAGE_UP - */ - PAGE_UP: 33, // also NUM_NORTH_EAST - /** - * PAGE_DOWN - */ - PAGE_DOWN: 34, // also NUM_SOUTH_EAST - /** - * END - */ - END: 35, // also NUM_SOUTH_WEST - /** - * HOME - */ - HOME: 36, // also NUM_NORTH_WEST - /** - * LEFT - */ - LEFT: 37, // also NUM_WEST - /** - * UP - */ - UP: 38, // also NUM_NORTH - /** - * RIGHT - */ - RIGHT: 39, // also NUM_EAST - /** - * DOWN - */ - DOWN: 40, // also NUM_SOUTH - /** - * PRINT_SCREEN - */ - PRINT_SCREEN: 44, - /** - * INSERT - */ - INSERT: 45, // also NUM_INSERT - /** - * DELETE - */ - DELETE: 46, // also NUM_DELETE - /** - * ZERO - */ - ZERO: 48, - /** - * ONE - */ - ONE: 49, - /** - * TWO - */ - TWO: 50, - /** - * THREE - */ - THREE: 51, - /** - * FOUR - */ - FOUR: 52, - /** - * FIVE - */ - FIVE: 53, - /** - * SIX - */ - SIX: 54, - /** - * SEVEN - */ - SEVEN: 55, - /** - * EIGHT - */ - EIGHT: 56, - /** - * NINE - */ - NINE: 57, - /** - * QUESTION_MARK - */ - QUESTION_MARK: 63, // needs localization - /** - * A - */ - A: 65, - /** - * B - */ - B: 66, - /** - * C - */ - C: 67, - /** - * D - */ - D: 68, - /** - * E - */ - E: 69, - /** - * F - */ - F: 70, - /** - * G - */ - G: 71, - /** - * H - */ - H: 72, - /** - * I - */ - I: 73, - /** - * J - */ - J: 74, - /** - * K - */ - K: 75, - /** - * L - */ - L: 76, - /** - * M - */ - M: 77, - /** - * N - */ - N: 78, - /** - * O - */ - O: 79, - /** - * P - */ - P: 80, - /** - * Q - */ - Q: 81, - /** - * R - */ - R: 82, - /** - * S - */ - S: 83, - /** - * T - */ - T: 84, - /** - * U - */ - U: 85, - /** - * V - */ - V: 86, - /** - * W - */ - W: 87, - /** - * X - */ - X: 88, - /** - * Y - */ - Y: 89, - /** - * Z - */ - Z: 90, - /** - * META - */ - META: 91, // WIN_KEY_LEFT - /** - * WIN_KEY_RIGHT - */ - WIN_KEY_RIGHT: 92, - /** - * CONTEXT_MENU - */ - CONTEXT_MENU: 93, - /** - * NUM_ZERO - */ - NUM_ZERO: 96, - /** - * NUM_ONE - */ - NUM_ONE: 97, - /** - * NUM_TWO - */ - NUM_TWO: 98, - /** - * NUM_THREE - */ - NUM_THREE: 99, - /** - * NUM_FOUR - */ - NUM_FOUR: 100, - /** - * NUM_FIVE - */ - NUM_FIVE: 101, - /** - * NUM_SIX - */ - NUM_SIX: 102, - /** - * NUM_SEVEN - */ - NUM_SEVEN: 103, - /** - * NUM_EIGHT - */ - NUM_EIGHT: 104, - /** - * NUM_NINE - */ - NUM_NINE: 105, - /** - * NUM_MULTIPLY - */ - NUM_MULTIPLY: 106, - /** - * NUM_PLUS - */ - NUM_PLUS: 107, - /** - * NUM_MINUS - */ - NUM_MINUS: 109, - /** - * NUM_PERIOD - */ - NUM_PERIOD: 110, - /** - * NUM_DIVISION - */ - NUM_DIVISION: 111, - /** - * F1 - */ - F1: 112, - /** - * F2 - */ - F2: 113, - /** - * F3 - */ - F3: 114, - /** - * F4 - */ - F4: 115, - /** - * F5 - */ - F5: 116, - /** - * F6 - */ - F6: 117, - /** - * F7 - */ - F7: 118, - /** - * F8 - */ - F8: 119, - /** - * F9 - */ - F9: 120, - /** - * F10 - */ - F10: 121, - /** - * F11 - */ - F11: 122, - /** - * F12 - */ - F12: 123, - /** - * NUMLOCK - */ - NUMLOCK: 144, - /** - * SEMICOLON - */ - SEMICOLON: 186, // needs localization - /** - * DASH - */ - DASH: 189, // needs localization - /** - * EQUALS - */ - EQUALS: 187, // needs localization - /** - * COMMA - */ - COMMA: 188, // needs localization - /** - * PERIOD - */ - PERIOD: 190, // needs localization - /** - * SLASH - */ - SLASH: 191, // needs localization - /** - * APOSTROPHE - */ - APOSTROPHE: 192, // needs localization - /** - * SINGLE_QUOTE - */ - SINGLE_QUOTE: 222, // needs localization - /** - * OPEN_SQUARE_BRACKET - */ - OPEN_SQUARE_BRACKET: 219, // needs localization - /** - * BACKSLASH - */ - BACKSLASH: 220, // needs localization - /** - * CLOSE_SQUARE_BRACKET - */ - CLOSE_SQUARE_BRACKET: 221, // needs localization - /** - * WIN_KEY - */ - WIN_KEY: 224, - /** - * MAC_FF_META - */ - MAC_FF_META: 224, // Firefox (Gecko) fires this for the meta key instead of 91 - /** - * WIN_IME - */ - WIN_IME: 229 - }; - - /* - whether text and modified key is entered at the same time. - */ - KeyCode.isTextModifyingKeyEvent = function isTextModifyingKeyEvent(e) { - var keyCode = e.keyCode; - if (e.altKey && !e.ctrlKey || e.metaKey || - // Function keys don't generate text - keyCode >= KeyCode.F1 && keyCode <= KeyCode.F12) { - return false; + //to handle objects with null prototypes (too edge case?) + return Object.prototype.hasOwnProperty.call(obj, prop) } - // The following keys are quite harmless, even in combination with - // CTRL, ALT or SHIFT. - switch (keyCode) { - case KeyCode.ALT: - case KeyCode.CAPS_LOCK: - case KeyCode.CONTEXT_MENU: - case KeyCode.CTRL: - case KeyCode.DOWN: - case KeyCode.END: - case KeyCode.ESC: - case KeyCode.HOME: - case KeyCode.INSERT: - case KeyCode.LEFT: - case KeyCode.MAC_FF_META: - case KeyCode.META: - case KeyCode.NUMLOCK: - case KeyCode.NUM_CENTER: - case KeyCode.PAGE_DOWN: - case KeyCode.PAGE_UP: - case KeyCode.PAUSE: - case KeyCode.PRINT_SCREEN: - case KeyCode.RIGHT: - case KeyCode.SHIFT: - case KeyCode.UP: - case KeyCode.WIN_KEY: - case KeyCode.WIN_KEY_RIGHT: - return false; - default: + function isEmpty(value){ + if (!value) { return true; - } - }; - - /* - whether character is entered. - */ - KeyCode.isCharacterKey = function isCharacterKey(keyCode) { - if (keyCode >= KeyCode.ZERO && keyCode <= KeyCode.NINE) { - return true; - } - - if (keyCode >= KeyCode.NUM_ZERO && keyCode <= KeyCode.NUM_MULTIPLY) { - return true; + } + if (isArray(value) && value.length === 0) { + return true; + } else if (typeof value !== 'string') { + for (var i in value) { + if (hasOwnProperty(value, i)) { + return false; + } + } + return true; + } + return false; } - if (keyCode >= KeyCode.A && keyCode <= KeyCode.Z) { - return true; + function toString(type){ + return toStr.call(type); } - // Safari sends zero key code for non-latin characters. - if (window.navigation.userAgent.indexOf('WebKit') !== -1 && keyCode === 0) { - return true; + function isObject(obj){ + return typeof obj === 'object' && toString(obj) === "[object Object]"; } - switch (keyCode) { - case KeyCode.SPACE: - case KeyCode.QUESTION_MARK: - case KeyCode.NUM_PLUS: - case KeyCode.NUM_MINUS: - case KeyCode.NUM_PERIOD: - case KeyCode.NUM_DIVISION: - case KeyCode.SEMICOLON: - case KeyCode.DASH: - case KeyCode.EQUALS: - case KeyCode.COMMA: - case KeyCode.PERIOD: - case KeyCode.SLASH: - case KeyCode.APOSTROPHE: - case KeyCode.SINGLE_QUOTE: - case KeyCode.OPEN_SQUARE_BRACKET: - case KeyCode.BACKSLASH: - case KeyCode.CLOSE_SQUARE_BRACKET: - return true; - default: - return false; + var isArray = Array.isArray || function(obj){ + /*istanbul ignore next:cant test*/ + return toStr.call(obj) === '[object Array]'; } - }; - - module.exports = KeyCode; - - /***/ }), - /* 1284 */ - /***/ (function(module, exports, __webpack_require__) { - - "use strict"; + function isBoolean(obj){ + return typeof obj === 'boolean' || toString(obj) === '[object Boolean]'; + } - exports.__esModule = true; - exports.default = contains; - /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ - function contains(root, n) { - var node = n; - while (node) { - if (node === root) { - return true; + function getKey(key){ + var intKey = parseInt(key); + if (intKey.toString() === key) { + return intKey; } - node = node.parentNode; + return key; } - return false; - } + function factory(options) { + options = options || {} - /***/ }), - /* 1285 */ - /***/ (function(module, exports, __webpack_require__) { + var objectPath = function(obj) { + return Object.keys(objectPath).reduce(function(proxy, prop) { + if(prop === 'create') { + return proxy; + } - "use strict"; + /*istanbul ignore else*/ + if (typeof objectPath[prop] === 'function') { + proxy[prop] = objectPath[prop].bind(objectPath, obj); + } + return proxy; + }, {}); + }; - exports.__esModule = true; + function hasShallowProperty(obj, prop) { + return (options.includeInheritedProps || (typeof prop === 'number' && Array.isArray(obj)) || hasOwnProperty(obj, prop)) + } - var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ + function getShallowProperty(obj, prop) { + if (hasShallowProperty(obj, prop)) { + return obj[prop]; + } + } + function set(obj, path, value, doNotReplace){ + if (typeof path === 'number') { + path = [path]; + } + if (!path || path.length === 0) { + return obj; + } + if (typeof path === 'string') { + return set(obj, path.split('.').map(getKey), value, doNotReplace); + } + var currentPath = path[0]; + var currentValue = getShallowProperty(obj, currentPath); + if (path.length === 1) { + if (currentValue === void 0 || !doNotReplace) { + obj[currentPath] = value; + } + return currentValue; + } - var _Event = __webpack_require__(1286); + if (currentValue === void 0) { + //check if we assume an array + if(typeof path[1] === 'number') { + obj[currentPath] = []; + } else { + obj[currentPath] = {}; + } + } - var _Event2 = _interopRequireDefault(_Event); + return set(obj[currentPath], path.slice(1), value, doNotReplace); + } - var _componentClasses = __webpack_require__(11); + objectPath.has = function (obj, path) { + if (typeof path === 'number') { + path = [path]; + } else if (typeof path === 'string') { + path = path.split('.'); + } - var _componentClasses2 = _interopRequireDefault(_componentClasses); + if (!path || path.length === 0) { + return !!obj; + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + for (var i = 0; i < path.length; i++) { + var j = getKey(path[i]); - var isCssAnimationSupported = _Event2.default.endEvents.length !== 0; + if((typeof j === 'number' && isArray(obj) && j < obj.length) || + (options.includeInheritedProps ? (j in Object(obj)) : hasOwnProperty(obj, j))) { + obj = obj[j]; + } else { + return false; + } + } + return true; + }; - var capitalPrefixes = ['Webkit', 'Moz', 'O', - // ms is special .... ! - 'ms']; - var prefixes = ['-webkit-', '-moz-', '-o-', 'ms-', '']; + objectPath.ensureExists = function (obj, path, value){ + return set(obj, path, value, true); + }; - function getStyleProperty(node, name) { - var style = window.getComputedStyle(node); + objectPath.set = function (obj, path, value, doNotReplace){ + return set(obj, path, value, doNotReplace); + }; - var ret = ''; - for (var i = 0; i < prefixes.length; i++) { - ret = style.getPropertyValue(prefixes[i] + name); - if (ret) { - break; - } - } - return ret; - } + objectPath.insert = function (obj, path, value, at){ + var arr = objectPath.get(obj, path); + at = ~~at; + if (!isArray(arr)) { + arr = []; + objectPath.set(obj, path, arr); + } + arr.splice(at, 0, value); + }; - function fixBrowserByTimeout(node) { - if (isCssAnimationSupported) { - var transitionDelay = parseFloat(getStyleProperty(node, 'transition-delay')) || 0; - var transitionDuration = parseFloat(getStyleProperty(node, 'transition-duration')) || 0; - var animationDelay = parseFloat(getStyleProperty(node, 'animation-delay')) || 0; - var animationDuration = parseFloat(getStyleProperty(node, 'animation-duration')) || 0; - var time = Math.max(transitionDuration + transitionDelay, animationDuration + animationDelay); - // sometimes, browser bug - node.rcEndAnimTimeout = setTimeout(function () { - node.rcEndAnimTimeout = null; - if (node.rcEndListener) { - node.rcEndListener(); + objectPath.empty = function(obj, path) { + if (isEmpty(path)) { + return void 0; + } + if (obj == null) { + return void 0; } - }, time * 1000 + 200); - } - } - function clearBrowserBugTimeout(node) { - if (node.rcEndAnimTimeout) { - clearTimeout(node.rcEndAnimTimeout); - node.rcEndAnimTimeout = null; - } - } + var value, i; + if (!(value = objectPath.get(obj, path))) { + return void 0; + } - var cssAnimation = function cssAnimation(node, transitionName, endCallback) { - var nameIsObj = (typeof transitionName === 'undefined' ? 'undefined' : _typeof(transitionName)) === 'object'; - var className = nameIsObj ? transitionName.name : transitionName; - var activeClassName = nameIsObj ? transitionName.active : transitionName + '-active'; - var end = endCallback; - var start = void 0; - var active = void 0; - var nodeClasses = (0, _componentClasses2.default)(node); + if (typeof value === 'string') { + return objectPath.set(obj, path, ''); + } else if (isBoolean(value)) { + return objectPath.set(obj, path, false); + } else if (typeof value === 'number') { + return objectPath.set(obj, path, 0); + } else if (isArray(value)) { + value.length = 0; + } else if (isObject(value)) { + for (i in value) { + if (hasShallowProperty(value, i)) { + delete value[i]; + } + } + } else { + return objectPath.set(obj, path, null); + } + }; - if (endCallback && Object.prototype.toString.call(endCallback) === '[object Object]') { - end = endCallback.end; - start = endCallback.start; - active = endCallback.active; - } + objectPath.push = function (obj, path /*, values */){ + var arr = objectPath.get(obj, path); + if (!isArray(arr)) { + arr = []; + objectPath.set(obj, path, arr); + } - if (node.rcEndListener) { - node.rcEndListener(); - } + arr.push.apply(arr, Array.prototype.slice.call(arguments, 2)); + }; - node.rcEndListener = function (e) { - if (e && e.target !== node) { - return; - } + objectPath.coalesce = function (obj, paths, defaultValue) { + var value; - if (node.rcAnimTimeout) { - clearTimeout(node.rcAnimTimeout); - node.rcAnimTimeout = null; - } + for (var i = 0, len = paths.length; i < len; i++) { + if ((value = objectPath.get(obj, paths[i])) !== void 0) { + return value; + } + } - clearBrowserBugTimeout(node); + return defaultValue; + }; - nodeClasses.remove(className); - nodeClasses.remove(activeClassName); + objectPath.get = function (obj, path, defaultValue){ + if (typeof path === 'number') { + path = [path]; + } + if (!path || path.length === 0) { + return obj; + } + if (obj == null) { + return defaultValue; + } + if (typeof path === 'string') { + return objectPath.get(obj, path.split('.'), defaultValue); + } - _Event2.default.removeEndEventListener(node, node.rcEndListener); - node.rcEndListener = null; + var currentPath = getKey(path[0]); + var nextObj = getShallowProperty(obj, currentPath) + if (nextObj === void 0) { + return defaultValue; + } - // Usually this optional end is used for informing an owner of - // a leave animation and telling it to remove the child. - if (end) { - end(); - } - }; + if (path.length === 1) { + return nextObj; + } - _Event2.default.addEndEventListener(node, node.rcEndListener); + return objectPath.get(obj[currentPath], path.slice(1), defaultValue); + }; - if (start) { - start(); - } - nodeClasses.add(className); + objectPath.del = function del(obj, path) { + if (typeof path === 'number') { + path = [path]; + } - node.rcAnimTimeout = setTimeout(function () { - node.rcAnimTimeout = null; - nodeClasses.add(activeClassName); - if (active) { - setTimeout(active, 0); - } - fixBrowserByTimeout(node); - // 30ms for firefox - }, 30); + if (obj == null) { + return obj; + } - return { - stop: function stop() { - if (node.rcEndListener) { - node.rcEndListener(); + if (isEmpty(path)) { + return obj; + } + if(typeof path === 'string') { + return objectPath.del(obj, path.split('.')); } - } - }; - }; - cssAnimation.style = function (node, style, callback) { - if (node.rcEndListener) { - node.rcEndListener(); - } + var currentPath = getKey(path[0]); + if (!hasShallowProperty(obj, currentPath)) { + return obj; + } - node.rcEndListener = function (e) { - if (e && e.target !== node) { - return; - } + if(path.length === 1) { + if (isArray(obj)) { + obj.splice(currentPath, 1); + } else { + delete obj[currentPath]; + } + } else { + return objectPath.del(obj[currentPath], path.slice(1)); + } - if (node.rcAnimTimeout) { - clearTimeout(node.rcAnimTimeout); - node.rcAnimTimeout = null; + return obj; } - clearBrowserBugTimeout(node); + return objectPath; + } - _Event2.default.removeEndEventListener(node, node.rcEndListener); - node.rcEndListener = null; + var mod = factory(); + mod.create = factory; + mod.withInheritedProps = factory({includeInheritedProps: true}) + return mod; + }); - // Usually this optional callback is used for informing an owner of - // a leave animation and telling it to remove the child. - if (callback) { - callback(); - } - }; - _Event2.default.addEndEventListener(node, node.rcEndListener); + /***/ }), + /* 1220 */ + /***/ (function(module, exports, __webpack_require__) { - node.rcAnimTimeout = setTimeout(function () { - for (var s in style) { - if (style.hasOwnProperty(s)) { - node.style[s] = style[s]; - } - } - node.rcAnimTimeout = null; - fixBrowserByTimeout(node); - }, 0); - }; + "use strict"; - cssAnimation.setTransition = function (node, p, value) { - var property = p; - var v = value; - if (value === undefined) { - v = property; - property = ''; - } - property = property || ''; - capitalPrefixes.forEach(function (prefix) { - node.style[prefix + 'Transition' + property] = v; - }); - }; - cssAnimation.isCssAnimationSupported = isCssAnimationSupported; + Object.defineProperty(exports, "__esModule", { + value: true + }); - exports.default = cssAnimation; + var _react = __webpack_require__(0); - /***/ }), - /* 1286 */ - /***/ (function(module, exports, __webpack_require__) { + var _react2 = _interopRequireDefault(_react); - "use strict"; + var _propTypes = __webpack_require__(1); + var _propTypes2 = _interopRequireDefault(_propTypes); - exports.__esModule = true; - /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ - var EVENT_NAME_MAP = { - transitionend: { - transition: 'transitionend', - WebkitTransition: 'webkitTransitionEnd', - MozTransition: 'mozTransitionEnd', - OTransition: 'oTransitionEnd', - msTransition: 'MSTransitionEnd' - }, + var _shallowequal = __webpack_require__(73); - animationend: { - animation: 'animationend', - WebkitAnimation: 'webkitAnimationEnd', - MozAnimation: 'mozAnimationEnd', - OAnimation: 'oAnimationEnd', - msAnimation: 'MSAnimationEnd' - } - }; + var _shallowequal2 = _interopRequireDefault(_shallowequal); - var endEvents = []; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - function detectEvents() { - var testEl = document.createElement('div'); - var style = testEl.style; + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - if (!('AnimationEvent' in window)) { - delete EVENT_NAME_MAP.animationend.animation; - } + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - if (!('TransitionEvent' in window)) { - delete EVENT_NAME_MAP.transitionend.transition; - } + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - for (var baseEventName in EVENT_NAME_MAP) { - if (EVENT_NAME_MAP.hasOwnProperty(baseEventName)) { - var baseEvents = EVENT_NAME_MAP[baseEventName]; - for (var styleName in baseEvents) { - if (styleName in style) { - endEvents.push(baseEvents[styleName]); - break; - } - } - } - } - } + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - if (typeof window !== 'undefined' && typeof document !== 'undefined') { - detectEvents(); - } + var propTypes = { + record: _propTypes2["default"].object, + clsPrefix: _propTypes2["default"].string, + expandable: _propTypes2["default"].any, + expanded: _propTypes2["default"].bool, + needIndentSpaced: _propTypes2["default"].bool, + onExpand: _propTypes2["default"].func + }; - function addEventListener(node, eventName, eventListener) { - node.addEventListener(eventName, eventListener, false); - } + var ExpandIcon = function (_Component) { + _inherits(ExpandIcon, _Component); - function removeEventListener(node, eventName, eventListener) { - node.removeEventListener(eventName, eventListener, false); - } + function ExpandIcon(props) { + _classCallCheck(this, ExpandIcon); - var TransitionEvents = { - addEndEventListener: function addEndEventListener(node, eventListener) { - if (endEvents.length === 0) { - window.setTimeout(eventListener, 0); - return; - } - endEvents.forEach(function (endEvent) { - addEventListener(node, endEvent, eventListener); - }); - }, + var _this = _possibleConstructorReturn(this, _Component.call(this, props)); + _this.onExpand = function (status, record, e) { + var onExpand = _this.props.onExpand; - endEvents: endEvents, + e.stopPropagation(); + onExpand(status, record, e); + }; - removeEndEventListener: function removeEndEventListener(node, eventListener) { - if (endEvents.length === 0) { - return; - } - endEvents.forEach(function (endEvent) { - removeEventListener(node, endEvent, eventListener); - }); + return _this; } - }; - exports.default = TransitionEvents; - - /***/ }), - /* 1287 */ - /***/ (function(module, exports, __webpack_require__) { + ExpandIcon.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) { + return !(0, _shallowequal2["default"])(nextProps, this.props); + }; - "use strict"; + ExpandIcon.prototype.render = function render() { + var _this2 = this; + var _props = this.props, + expandable = _props.expandable, + clsPrefix = _props.clsPrefix, + onExpand = _props.onExpand, + needIndentSpaced = _props.needIndentSpaced, + expanded = _props.expanded, + record = _props.record, + isHiddenExpandIcon = _props.isHiddenExpandIcon, + expandedIcon = _props.expandedIcon, + collapsedIcon = _props.collapsedIcon; - exports.__esModule = true; - exports.default = toArray; + if (expandable && !isHiddenExpandIcon) { + var expandClassName = expanded ? 'expanded' : 'collapsed'; + var currentIcon = _react2["default"].createElement('span', { + className: clsPrefix + '-expand-icon ' + clsPrefix + '-' + expandClassName + }); + if (expanded && expandedIcon) { + currentIcon = expandedIcon; + } else if (!expanded && collapsedIcon) { + currentIcon = collapsedIcon; + } + return _react2["default"].createElement( + 'span', + { onClick: function onClick(e) { + return _this2.onExpand(!expanded, record, e); + }, className: 'expand-icon-con' }, + currentIcon + ); + } else if (needIndentSpaced || isHiddenExpandIcon) { + return _react2["default"].createElement('span', { className: clsPrefix + '-expand-icon ' + clsPrefix + '-spaced' }); + } + return null; + }; - var _react = __webpack_require__(0); + return ExpandIcon; + }(_react.Component); - var _react2 = _interopRequireDefault(_react); + ; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + ExpandIcon.propTypes = propTypes; - function toArray(children) { - var ret = []; - _react2.default.Children.forEach(children, function (c) { - ret.push(c); - }); - return ret; - } /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ + exports["default"] = ExpandIcon; + module.exports = exports['default']; /***/ }), - /* 1288 */ + /* 1221 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; - exports.__esModule = true; + Object.defineProperty(exports, "__esModule", { + value: true + }); + + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _react = __webpack_require__(0); var _react2 = _interopRequireDefault(_react); + var _reactDom = __webpack_require__(3); + + var _reactDom2 = _interopRequireDefault(_reactDom); + var _propTypes = __webpack_require__(1); var _propTypes2 = _interopRequireDefault(_propTypes); - var _reactDom = __webpack_require__(3); - - var _reactDom2 = _interopRequireDefault(_reactDom); + var _throttleDebounce = __webpack_require__(1222); - var _domAlign = __webpack_require__(13); + var _utils = __webpack_require__(109); - var _domAlign2 = _interopRequireDefault(_domAlign); + var _FilterType = __webpack_require__(1223); - var _addEventListener = __webpack_require__(467); + var _FilterType2 = _interopRequireDefault(_FilterType); - var _addEventListener2 = _interopRequireDefault(_addEventListener); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ - + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - //import isWindow from './isWindow'; + var propTypes = { + clsPrefix: _propTypes2["default"].string, + rowStyle: _propTypes2["default"].object, + rows: _propTypes2["default"].array + }; - function isWindow(obj) { - /* eslint no-eq-null: 0 */ - /* eslint eqeqeq: 0 */ - return obj != null && obj == obj.window; + function getDiv(id) { + var div = document.createElement("div"); + div.className = "u-table-drag-hidden-cont"; + div.id = id; + return div; } - function buffer(fn, ms) { - var timer = void 0; - - function clear() { - if (timer) { - clearTimeout(timer); - timer = null; - } - } - - function bufferFn() { - clear(); - timer = setTimeout(fn, ms); - } + var TableHeader = function (_Component) { + _inherits(TableHeader, _Component); - bufferFn.clear = clear; + function TableHeader(props) { + _classCallCheck(this, TableHeader); - return bufferFn; - } + var _this = _possibleConstructorReturn(this, _Component.call(this, props)); - var propTypes = { - childrenProps: _propTypes2.default.object, - align: _propTypes2.default.object.isRequired, - target: _propTypes2.default.func, - onAlign: _propTypes2.default.func, - monitorBufferTime: _propTypes2.default.number, - monitorWindowResize: _propTypes2.default.bool, - disabled: _propTypes2.default.bool, - children: _propTypes2.default.any - }; + _initialiseProps.call(_this); - var defaultProps = { - target: function target() { - return window; - }, - onAlign: function onAlign() {}, + _this.currentObj = null; + _this.theadKey = new Date().getTime(); + _this.drag = { + option: '' + }; + _this.minWidth = parseInt(props.minColumnWidth); + _this.table = null; + _this._thead = null; //当前对象 + _this.event = false; //避免多次绑定问题 + _this.lastColumWidth = null; //非固定列最后一列的初始化宽度 + _this.fixedTable = {}; + return _this; + } - monitorBufferTime: 50, - monitorWindowResize: false, - disabled: false - }; + TableHeader.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { + var _this2 = this; - var Align = function (_React$Component) { - _inherits(Align, _React$Component); + // 表格column改变时,要重新绑定拖拽事件,否则拖拽不生效 + var oldCols = this.props.columnsChildrenList; + var newCols = nextProps.columnsChildrenList; - function Align(props) { - _classCallCheck(this, Align); + if (this._thead) { + if (newCols.length !== oldCols.length) { + this.event = false; + return; + } + oldCols.some(function (item, index) { + if (newCols[index] && newCols[index].dataIndex !== item.dataIndex) { + _this2.event = false; + return true; + } + }); + } + }; - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); + TableHeader.prototype.componentDidUpdate = function componentDidUpdate() { + this.initTable(); + this.initEvent(); + }; - _initialiseProps.call(_this); + TableHeader.prototype.componentDidMount = function componentDidMount() { + var uid = "_table_uid_" + new Date().getTime(); + this._table_none_cont_id = uid; + var div = getDiv(uid); + document.querySelector("body").appendChild(div); + }; - return _this; - } + TableHeader.prototype.componentWillUnmount = function componentWillUnmount() { + var _this3 = this; - Align.prototype.componentDidMount = function componentDidMount() { - var props = this.props; - // if parent ref not attached .... use document.getElementById - this.forceAlign(); - if (!props.disabled && props.monitorWindowResize) { - this.startMonitorWindowResize(); + this.fixedTable = null; + if (!this.table) return; + if (this.props.draggable) { + this.removeDragAbleEvent(); + } + if (this.props.dragborder) { + this.removeDragBorderEvent(); } + this.doEventList(this.table.tr, function (tr) { + _this3.eventListen([{ key: 'mousedown', fun: _this3.onTrMouseDown }], 'remove', tr); + }); + // this.eventListen([{key:'mousedown',fun:this.onTrMouseDown}],'remove',this.table.tr[0]); + this.eventListen([{ key: 'mouseup', fun: this.bodyonLineMouseUp }], 'remove', document.body); }; - Align.prototype.componentDidUpdate = function componentDidUpdate(prevProps) { - var reAlign = false; - var props = this.props; + /** + * 获取table的属性存放在this.table 中。(公用方法) + * @returns + * @memberof TableHeader + */ - if (!props.disabled) { - if (prevProps.disabled || prevProps.align !== props.align) { - reAlign = true; - } else { - var lastTarget = prevProps.target(); - var currentTarget = props.target(); - if (isWindow(lastTarget) && isWindow(currentTarget)) { - reAlign = false; - } else if (lastTarget !== currentTarget) { - reAlign = true; - } - } - } - if (reAlign) { - this.forceAlign(); - } + TableHeader.prototype.initTable = function initTable() { + var contentTable = this.props.contentTable; - if (props.monitorWindowResize && !props.disabled) { - this.startMonitorWindowResize(); - } else { - this.stopMonitorWindowResize(); + if (!this.props.dragborder && !this.props.draggable) return; + var tableDome = this._thead.parentNode; + var table = {}; + if (tableDome && tableDome.nodeName && tableDome.nodeName.toUpperCase() == "TABLE") { + table.table = tableDome; + table.cols = tableDome.getElementsByTagName("col"); + table.ths = tableDome.getElementsByTagName("th"); + table.tr = tableDome.getElementsByTagName("tr"); + table.tableBody = contentTable.querySelector('.u-table-scroll .u-table-body') && contentTable.querySelector('.u-table-scroll .u-table-body'); + table.tableBodyCols = contentTable.querySelector('.u-table-scroll .u-table-body') && contentTable.querySelector('.u-table-scroll .u-table-body').getElementsByTagName("col"); } - }; - Align.prototype.componentWillUnmount = function componentWillUnmount() { - this.stopMonitorWindowResize(); - }; + table.fixedLeftHeaderTable = contentTable.querySelector('.u-table-fixed-left .u-table-header'); + table.fixedRighHeadertTable = contentTable.querySelector('.u-table-fixed-right .u-table-header'); + table.contentTableHeader = contentTable.querySelector('.u-table-scroll .u-table-header'); + table.fixedLeftBodyTable = contentTable.querySelector('.u-table-fixed-left .u-table-body-outer'); + table.fixedRightBodyTable = contentTable.querySelector('.u-table-fixed-right .u-table-body-outer'); + table.innerTableBody = contentTable.querySelector('.u-table-scroll .u-table-body table'); - Align.prototype.render = function render() { - var _props = this.props, - childrenProps = _props.childrenProps, - children = _props.children; + this.table = table; - var child = _react2.default.Children.only(children); - if (childrenProps) { - var newProps = {}; - for (var prop in childrenProps) { - if (childrenProps.hasOwnProperty(prop)) { - newProps[prop] = this.props[childrenProps[prop]]; - } + if (!this.props.dragborder) return; + if (document.getElementById("u-table-drag-thead-" + this.theadKey)) { + this.fixedTable = {}; + var _fixedParentContext = document.getElementById("u-table-drag-thead-" + this.theadKey).parentNode; + var siblingDom = _fixedParentContext.parentNode.nextElementSibling; + if (siblingDom) { + var fixedTable = siblingDom.querySelector("table"); + this.fixedTable.table = fixedTable; + this.fixedTable.cols = fixedTable.getElementsByTagName("col"); + // this.fixedTable.ths = fixedTable.tableDome.getElementsByTagName("th"); } - return _react2.default.cloneElement(child, newProps); } - return child; }; - return Align; - }(_react2.default.Component); + /** + * 事件初始化 + */ - var _initialiseProps = function _initialiseProps() { - var _this2 = this; - this.startMonitorWindowResize = function () { - if (!_this2.resizeHandler) { - _this2.bufferMonitor = buffer(_this2.forceAlign, _this2.props.monitorBufferTime); - _this2.resizeHandler = (0, _addEventListener2.default)(window, 'resize', _this2.bufferMonitor); - } - }; + TableHeader.prototype.initEvent = function initEvent() { + var _this4 = this; - this.stopMonitorWindowResize = function () { - if (_this2.resizeHandler) { - _this2.bufferMonitor.clear(); - _this2.resizeHandler.remove(); - _this2.resizeHandler = null; + var _props = this.props, + dragborder = _props.dragborder, + draggable = _props.draggable, + rows = _props.rows; + // 当传入的 columns 为空时,不绑定拖拽事件 + + if (Object.prototype.toString.call(rows) === '[object Array]' && rows.length === 0) { + return; + } + if (!this.event) { + //避免多次绑定问题。 + this.event = true; + if (dragborder) { + this.dragBorderEventInit(); //列宽 + } + if (draggable) { + this.dragAbleEventInit(); //交换列 + } + if (this.table && this.table.tr) { + // this.eventListen([{key:'mousedown',fun:this.onTrMouseDown}],'',this.table.tr[0]);//body mouseup + this.doEventList(this.table.tr, function (tr) { + _this4.eventListen([{ key: 'mousedown', fun: _this4.onTrMouseDown }], '', tr); //body mouseup + }); + } + this.eventListen([{ key: 'mouseup', fun: this.bodyonLineMouseUp }], '', document.body); //body mouseup } }; - this.forceAlign = function () { - var props = _this2.props; - if (!props.disabled) { - var source = _reactDom2.default.findDOMNode(_this2); - props.onAlign(source, (0, _domAlign2.default)(source, props.target(), props.align)); + TableHeader.prototype.doEventList = function doEventList(trs, action) { + for (var index = 0; index < trs.length; index++) { + action(trs[index]); } }; - }; - - ; - Align.defaultProps = defaultProps; - Align.propTypes = propTypes; - - exports.default = Align; + /** + * 拖拽列宽事件的监听 + */ - /***/ }), - /* 1289 */ - /***/ (function(module, exports, __webpack_require__) { - "use strict"; + TableHeader.prototype.dragBorderEventInit = function dragBorderEventInit() { + var _this5 = this; + if (!this.props.dragborder) return; + var events = [{ key: 'mouseup', fun: this.onTrMouseUp }, { key: 'mousemove', fun: this.onTrMouseMove }]; + this.doEventList(this.table.tr, function (tr) { + _this5.eventListen(events, '', tr); //表示把事件添加到th元素上 + }); + // this.eventListen(events,'',this.table.tr[0]);//表示把事件添加到th元素上 + }; - Object.defineProperty(exports, "__esModule", { - value: true - }); + /** + * 删除拖动改变列宽的事件监听 + */ - var _Button = __webpack_require__(1290); - var _Button2 = _interopRequireDefault(_Button); + TableHeader.prototype.removeDragBorderEvent = function removeDragBorderEvent() { + var _this6 = this; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var events = [{ key: 'mouseup', fun: this.onTrMouseUp }, { key: 'mousemove', fun: this.onTrMouseMove }]; + // this.eventListen(events,'remove',this.table.tr[0]); + this.doEventList(this.table.tr, function (tr) { + _this6.eventListen(events, 'remove', _this6.table.tr); + }); + }; - exports["default"] = _Button2["default"]; - module.exports = exports['default']; + TableHeader.prototype.eventListen = function eventListen(events, type, eventSource) { + if (!this.table) return; + if (!eventSource) { + console.log("Please set the attributes of column !"); + return; + } + var tr = this.table.tr; - /***/ }), - /* 1290 */ - /***/ (function(module, exports, __webpack_require__) { + for (var i = 0; i < events.length; i++) { + var _event = events[i]; + if (type === "remove") { + _utils.EventUtil.removeHandler(eventSource, _event.key, _event.fun); + } else { + _utils.EventUtil.addHandler(eventSource, _event.key, _event.fun); + } + } + }; - "use strict"; + /** + * + *根据 data-type 来获取当前拖拽的对象的Object,如果为null表示拖动的对象并非是online + * @memberof TableHeader + */ - Object.defineProperty(exports, "__esModule", { - value: true - }); + /** + * 调整列宽的down事件 + * @memberof TableHeader + */ - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _react = __webpack_require__(0); + /** + * 根据当前节点查找到有data-type类型的容器返回。 + * @memberof TableHeader + */ - var _react2 = _interopRequireDefault(_react); - var _reactDom = __webpack_require__(3); + /** + * 判断当前的target 是否是 th,如果不是,直接递归查找。 + * @memberof TableHeader + */ - var _reactDom2 = _interopRequireDefault(_reactDom); + /** + * 调整列宽的move事件 + * @memberof TableHeader + */ - var _propTypes = __webpack_require__(1); - var _propTypes2 = _interopRequireDefault(_propTypes); + /** + * 调整列宽的up事件 + * @memberof TableHeader + */ - var _classnames = __webpack_require__(2); - var _classnames2 = _interopRequireDefault(_classnames); + TableHeader.prototype.mouseClear = function mouseClear() { + if (!this.drag || !this.drag.option) return; + var rows = this.props.rows; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var data = { rows: rows[0], cols: this.table.cols, currIndex: this.drag.currIndex }; + this.props.afterDragColWidth && this.props.afterDragColWidth(data); + this.drag = { + option: "" + }; + this.clearThsDr(); + }; - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + /** + * 当前对象上绑定全局事件,用于拖拽区域以外时的事件处理 + * @param {*} events + * @param {*} type + * @memberof TableHeader + */ - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + /** + *相关滚动条联动操作 + * + * @memberof TableHeader + */ - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + //---拖拽交换列代码----start----- + /** + * 添加换列的事件监听 + */ + TableHeader.prototype.dragAbleEventInit = function dragAbleEventInit() { + if (!this.props.draggable) return; + var events = [{ key: 'dragstart', fun: this.onDragStart }, //用户开始拖动元素时触发 + { key: 'dragover', fun: this.onDragOver }, //当某被拖动的对象在另一对象容器范围内拖动时触发此事件 + { key: 'drop', fun: this.onDrop }, //在一个拖动过程中,释放鼠标键时触发此事件 - var propTypes = { - /** - * @title 尺寸 - */ - size: _propTypes2["default"].oneOf(['sm', 'md', 'xg', 'lg']), - /** - * @title 样式 - */ - style: _propTypes2["default"].object, - /** - * @title 形状 - */ - shape: _propTypes2["default"].oneOf(['block', 'round', 'border', 'squared', 'floating', 'pillRight', 'pillLeft', 'icon']), + { key: 'dragenter', fun: this.onDragEnter }, { key: 'dragend', fun: this.onDragEnd }, { key: 'dragleave', fun: this.onDragLeave }]; + this.eventListen(events, '', this.table.tr[0]); //表示把事件添加到th元素上 + }; - bordered: _propTypes2["default"].bool, - /** - * @title 类型 - */ - colors: _propTypes2["default"].oneOf(['primary', 'secondary', 'accent', 'success', 'info', 'warning', 'danger', 'dark', 'light', 'default']), - /** - * @title 是否禁用 - * @veIgnore - */ - disabled: _propTypes2["default"].bool, - /** - * @title 类名 - * @veIgnore - */ - className: _propTypes2["default"].string, + /** + * 删除换列的事件监听 + */ - /** - * @title
    对象 + * @memberof TableHeader + */ - var clsObj = {}; - if (className) { - clsObj[className] = true; - } - if (sizeMap[size]) { - clsObj[clsPrefix + '-' + sizeMap[size]] = true; - } - if (shapeMap[shape]) { - clsObj[clsPrefix + '-' + shapeMap[shape]] = true; - } - if (colorsMap[colors]) { - clsObj[clsPrefix + '-' + colorsMap[colors]] = true; - } - if (bordered) { - clsObj[clsPrefix + '-border'] = bordered; - } - var classes = (0, _classnames2["default"])(clsPrefix, clsObj); - return _react2["default"].createElement( - 'button', - _extends({ - type: htmlType, - className: classes, - disabled: disabled - }, others), - this.props.children - ); - }; + TableHeader.prototype.getThDome = function getThDome(element) { + var _tagName = element.tagName.toLowerCase(); + if (element.getAttribute('data-filter-type') === 'filterContext') return null; + if (_tagName === 'i') return null; + if (_tagName != 'th') { + return this.getThDome(element.parentElement); + } else { + return element; + } + }; - return Button; - }(_react.Component); + //---拖拽列交换----end----- - Button.propTypes = propTypes; - Button.defaultProps = defaultProps; + /** + * 过滤输入后或下拉条件的回调函数 + */ - exports["default"] = Button; - module.exports = exports['default']; - /***/ }), - /* 1291 */ - /***/ (function(module, exports, __webpack_require__) { + /** + * 过滤行清除回调 + */ - "use strict"; + /** + * 过滤渲染的组件类型 + */ - Object.defineProperty(exports, "__esModule", { - value: true - }); - var autoAdjustOverflow = { - adjustX: 1, - adjustY: 1 - }; - var targetOffset = [0, 0]; + TableHeader.prototype.render = function render() { + var _this7 = this; - var placements = { - bottomLeft: { - points: ['tl', 'tl'], - overflow: autoAdjustOverflow, - offset: [0, -3], - targetOffset: targetOffset - }, - bottomRight: { - points: ['tr', 'tr'], - overflow: autoAdjustOverflow, - offset: [0, -3], - targetOffset: targetOffset - }, - topRight: { - points: ['br', 'br'], - overflow: autoAdjustOverflow, - offset: [0, 3], - targetOffset: targetOffset - }, - topLeft: { - points: ['bl', 'bl'], - overflow: autoAdjustOverflow, - offset: [0, 3], - targetOffset: targetOffset - } - }; + var _props2 = this.props, + clsPrefix = _props2.clsPrefix, + rowStyle = _props2.rowStyle, + draggable = _props2.draggable, + dragborder = _props2.dragborder, + rows = _props2.rows, + filterable = _props2.filterable, + fixed = _props2.fixed, + lastShowIndex = _props2.lastShowIndex, + columnsChildrenList = _props2.columnsChildrenList; - exports["default"] = placements; - module.exports = exports['default']; + var attr = dragborder ? { id: "u-table-drag-thead-" + this.theadKey } : {}; + var lastObj = columnsChildrenList[columnsChildrenList.length - 1]; + return _react2["default"].createElement( + "thead", + _extends({ className: clsPrefix + "-thead" }, attr, { "data-theader-fixed": "scroll", ref: function ref(_thead) { + return _this7._thead = _thead; + } }), + rows.map(function (row, index) { + var _rowLeng = row.length - 1; + return _react2["default"].createElement( + "tr", + { key: index, style: rowStyle, className: filterable && index == rows.length - 1 ? 'filterable' : '' }, + row.map(function (da, columIndex, arr) { + da.children = da.required ? _react2["default"].createElement( + "span", + null, + _react2["default"].createElement( + "span", + { className: "required" }, + "*" + ), + da.children + ) : da.children; + var thHover = da.drgHover ? " " + clsPrefix + "-thead th-drag-hover" : ""; + delete da.drgHover; + var fixedStyle = ""; + var canDotDrag = ""; + //主表格下、固定列或者是过滤行中含有固定列时添加该属性 + if (!fixed && (da.fixed || filterable && index == rows.length - 1 && rows[0][columIndex].fixed)) { + fixedStyle = " " + clsPrefix + "-row-fixed-columns-in-body"; + } - /***/ }), - /* 1292 */ - /***/ (function(module, exports, __webpack_require__) { + if (lastShowIndex == columIndex) { + canDotDrag = "th-can-not-drag"; + } + var thClassName = "" + da.className ? "" + da.className : ''; + if (da.titleAlign) { + thClassName += " text-" + da.titleAlign + " "; + } else if (da.textAlign) { + thClassName += " text-" + da.textAlign + " "; + } - "use strict"; + delete da.textAlign; + delete da.titleAlign; + var keyTemp = {}; + //避免key为undefined + // if(da.dataindex && da.key ===undefined ){ + keyTemp.key = da.key || da.dataindex || index + '-' + columIndex; + // } + if (filterable && index == rows.length - 1) { + da.children = _this7.filterRenderType(da["filtertype"], da.dataindex, columIndex); + if (da.key === undefined) { + keyTemp.key = keyTemp.key + '-filterable'; + } + delete da.filterdropdownfocus; + } - Object.defineProperty(exports, "__esModule", { - value: true - }); + var thDefaultObj = {}; - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + if (draggable) { + thClassName += " " + clsPrefix + "-thead th-drag " + thHover + " "; + } + if (dragborder) { + thClassName += " " + clsPrefix + "-thead-th " + canDotDrag; + } + thClassName += " " + fixedStyle; + if (!da.fixed) { + return _react2["default"].createElement( + "th", + _extends({}, da, keyTemp, { className: thClassName, "data-th-fixed": da.fixed, "data-line-key": da.key, + "data-line-index": columIndex, "data-th-width": da.width, "data-type": "draggable" }), + da.children, - var _react = __webpack_require__(0); + // && columIndex != _rowLeng + dragborder && lastObj && da.key != lastObj.key ? _react2["default"].createElement( + "div", + { ref: function ref(el) { + return _this7.gap = el; + }, "data-line-key": da.key, + "data-line-index": columIndex, "data-th-width": da.width, + "data-type": "online", className: clsPrefix + "-thead-th-drag-gap" }, + _react2["default"].createElement("div", { className: "online" }) + ) : "" + ); + } else { + thDefaultObj = _extends({}, da, { + className: thClassName + " " + fixedStyle + }); + da.onClick ? thDefaultObj.onClick = function (e) { + da.onClick(da, e); + } : ""; + return _react2["default"].createElement("th", _extends({}, thDefaultObj, keyTemp, { "data-th-fixed": da.fixed, style: { maxWidth: da.width } })); + } + }) + ); + }) + ); + }; - var _react2 = _interopRequireDefault(_react); + return TableHeader; + }(_react.Component); - var _classnames = __webpack_require__(2); + TableHeader.defaultProps = { + contentWidthDiff: 0 + }; - var _classnames2 = _interopRequireDefault(_classnames); + var _initialiseProps = function _initialiseProps() { + var _this8 = this; - var _beeIcon = __webpack_require__(15); + this.getOnLineObject = function (_element) { + var type = _element.getAttribute('data-type'), + elementObj = null; + if (!type) { + var element = _element.parentElement || parentNode; //兼容写法。 + if (element.getAttribute('data-type')) { + elementObj = element; + } + } else { + elementObj = _element; + } + return elementObj; + }; - var _beeIcon2 = _interopRequireDefault(_beeIcon); + this.onTrMouseDown = function (e) { + _utils.Event.stopPropagation(e); + var event = _utils.Event.getEvent(e), + targetEvent = _utils.Event.getTarget(event); + var _props3 = _this8.props, + clsPrefix = _props3.clsPrefix, + contentTable = _props3.contentTable, + lastShowIndex = _props3.lastShowIndex, + columnsChildrenList = _props3.columnsChildrenList; + // let currentElement = this.getOnLineObject(targetEvent); - var _propTypes = __webpack_require__(1); + var currentElement = _this8.getTargetToType(targetEvent); + if (!currentElement) return; + var type = currentElement.getAttribute('data-type'); + if (!_this8.props.dragborder && !_this8.props.draggable) return; + if (type == 'online' && _this8.props.dragborder) { + // if(!this.props.dragborder)return; + targetEvent.setAttribute('draggable', false); //添加交换列效果 + var currentIndex = -1; + var defaultWidth = currentElement.getAttribute("data-th-width"); + _this8.drag.option = "border"; //拖拽操作 + if (columnsChildrenList) { + var columnKey = currentElement.getAttribute("data-line-key"); + if (columnKey) { + currentIndex = columnsChildrenList.findIndex(function (da) { + return (da.key && da.key.toLowerCase()) === columnKey.toLowerCase(); + }); + } + } + if (currentIndex < 0) { + console.log('Key must be set for column!'); + return; + } + var currentObj = _this8.table.cols[currentIndex]; + _this8.drag.currIndex = currentIndex; + _this8.drag.oldLeft = event.x; + _this8.drag.oldWidth = parseInt(currentObj.style.width); + _this8.drag.minWidth = currentObj.style.minWidth != "" ? parseInt(currentObj.style.minWidth) : defaultWidth; + _this8.drag.tableWidth = parseInt(_this8.table.table.style.width ? _this8.table.table.style.width : _this8.table.table.scrollWidth); + if (!_this8.tableOldWidth) { + _this8.tableOldWidth = _this8.drag.tableWidth; //this.getTableWidth(); + } + if (!_this8.lastColumWidth) { + _this8.lastColumWidth = parseInt(_this8.table.cols[lastShowIndex].style.width); + } + } else if (type != 'online' && _this8.props.draggable) { + // if (!this.props.draggable || targetEvent.nodeName.toUpperCase() != "TH") return; + if (!_this8.props.draggable) return; + var th = _this8.getTargetToType(targetEvent); + th.setAttribute('draggable', true); //添加交换列效果 + _this8.drag.option = 'dragAble'; + _this8.currentDome = th; + var _currentIndex = parseInt(th.getAttribute("data-line-index")); + _this8.drag.currIndex = _currentIndex; + } else { + // console.log("onTrMouseDown dragborder or draggable is all false !"); + return; + } + }; - var _propTypes2 = _interopRequireDefault(_propTypes); + this.getTableWidth = function () { + var tableWidth = 0, + offWidth = 0; //this.table.cols.length; + for (var index = 0; index < _this8.table.cols.length; index++) { + var da = _this8.table.cols[index]; + tableWidth += parseInt(da.style.width); + } + return tableWidth - offWidth; + }; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + this.getTargetToType = function (targetEvent) { + var tag = targetEvent; + if (targetEvent && !targetEvent.getAttribute("data-type")) { + tag = _this8.getTargetToType(targetEvent.parentElement); + } + return tag; + }; - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + this.getTargetToTh = function (targetEvent) { + var th = targetEvent; + if (targetEvent.nodeName.toUpperCase() != "TH") { + th = _this8.getThDome(targetEvent); + } + // console.log(" getTargetToTh: ", th); + return th; + }; - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + this.onTrMouseMove = function (e) { + if (!_this8.props.dragborder && !_this8.props.draggable) return; + var _props4 = _this8.props, + clsPrefix = _props4.clsPrefix, + dragborder = _props4.dragborder, + contentDomWidth = _props4.contentDomWidth, + scrollbarWidth = _props4.scrollbarWidth, + contentTable = _props4.contentTable, + headerScroll = _props4.headerScroll, + lastShowIndex = _props4.lastShowIndex, + onDraggingBorder = _props4.onDraggingBorder, + leftFixedWidth = _props4.leftFixedWidth, + rightFixedWidth = _props4.rightFixedWidth; - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + _utils.Event.stopPropagation(e); + var event = _utils.Event.getEvent(e); + if (_this8.props.dragborder && _this8.drag.option == "border") { + //移动改变宽度 + var currentCols = _this8.table.cols[_this8.drag.currIndex]; + var diff = event.x - _this8.drag.oldLeft; + var newWidth = _this8.drag.oldWidth + diff; + _this8.drag.newWidth = newWidth > 0 ? newWidth : _this8.minWidth; + if (newWidth > _this8.minWidth) { + currentCols.style.width = newWidth + 'px'; + //hao 支持固定表头拖拽 修改表体的width + if (_this8.fixedTable.cols) { + _this8.fixedTable.cols[_this8.drag.currIndex].style.width = newWidth + "px"; + } - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + var newDiff = parseInt(currentCols.style.minWidth) - parseInt(currentCols.style.width); + if (newDiff > 0) { + //缩小 + var lastWidth = _this8.lastColumWidth + newDiff; + _this8.table.cols[lastShowIndex].style.width = lastWidth + "px"; //同步表头 + _this8.table.tableBodyCols[lastShowIndex].style.width = lastWidth + "px"; //同步表体 + } + var showScroll = contentDomWidth - (leftFixedWidth + rightFixedWidth) - (_this8.drag.tableWidth + diff) - scrollbarWidth; + //表头滚动条处理 + if (headerScroll) { + if (showScroll < 0) { + //小于 0 出现滚动条 + //找到固定列表格,设置表头的marginBottom值为scrollbarWidth; + _this8.table.contentTableHeader.style.overflowX = 'scroll'; + _this8.optTableMargin(_this8.table.fixedLeftHeaderTable, scrollbarWidth); + _this8.optTableMargin(_this8.table.fixedRighHeadertTable, scrollbarWidth); + } else { + //大于 0 不显示滚动条 + _this8.table.contentTableHeader.style.overflowX = 'hidden'; + _this8.optTableMargin(_this8.table.fixedLeftHeaderTable, 0); + _this8.optTableMargin(_this8.table.fixedRighHeadertTable, 0); + } + } else { + if (showScroll < 0) { + _this8.table.tableBody.style.overflowX = 'auto'; + _this8.optTableMargin(_this8.table.fixedLeftBodyTable, '-' + scrollbarWidth); + _this8.optTableMargin(_this8.table.fixedRightBodyTable, '-' + scrollbarWidth); + _this8.optTableScroll(_this8.table.fixedLeftBodyTable, { x: 'scroll' }); + _this8.optTableScroll(_this8.table.fixedRightBodyTable, { x: 'scroll' }); + } else { + _this8.table.tableBody.style.overflowX = 'hidden'; + _this8.optTableMargin(_this8.table.fixedLeftBodyTable, 0); + _this8.optTableMargin(_this8.table.fixedRightBodyTable, 0); + _this8.optTableScroll(_this8.table.fixedLeftBodyTable, { x: 'auto' }); + _this8.optTableScroll(_this8.table.fixedRightBodyTable, { x: 'auto' }); + } + } + } else { + _this8.drag.newWidth = _this8.minWidth; + } + } + // 增加拖拽列宽动作的回调函数 + _this8.drag.newWidth && onDraggingBorder && onDraggingBorder(event, _this8.drag.newWidth); + }; - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + this.onTrMouseUp = function (e) { + var event = _utils.Event.getEvent(e); + var width = _this8.drag.newWidth; + var opt = _this8.drag.option; + _this8.mouseClear(); + if (opt !== "border") return; // fix:点击表头会触发onDropBorder事件的问题 + _this8.props.onDropBorder && _this8.props.onDropBorder(event, width); + }; - var propTypes = { - componentClass: _propTypes2["default"].oneOfType([_propTypes2["default"].element, _propTypes2["default"].string]), - type: _propTypes2["default"].string, - size: _propTypes2["default"].oneOf(['sm', 'md', 'lg']), - onSearch: _propTypes2["default"].func, - onChange: _propTypes2["default"].func, - onBlur: _propTypes2["default"].func, - showClose: _propTypes2["default"].bool, - focusSelect: _propTypes2["default"].bool, - debounceDelay: _propTypes2["default"].number - }; + this.clearThsDr = function () { + var ths = _this8.table.ths; + for (var index = 0; index < ths.length; index++) { + ths[index].setAttribute('draggable', false); //去掉交换列效果 + } + }; - var defaultProps = { - componentClass: 'input', - clsPrefix: 'u-form-control', - type: 'text', - size: 'md' - }; + this.bodyonLineMouseUp = function (events, type) { + if (!_this8.drag || !_this8.drag.option) return; + _this8.mouseClear(); + }; - function fixControlledValue(value) { - if (typeof value === 'undefined' || value === null) { - return ''; + this.optTableMargin = function (table, scrollbarWidth) { + if (table) { + table.style.marginBottom = scrollbarWidth + "px"; } - return value; - } + }; - var FormControl = function (_React$Component) { - _inherits(FormControl, _React$Component); + this.optTableScroll = function (table) { + var overflow = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - function FormControl(props) { - _classCallCheck(this, FormControl); + if (table) { + var innerTable = table.querySelector('.u-table-body-inner'); + if (innerTable) { + //fixbug: 拖拽列宽后,滚动条滚到表格底部,会导致固定列和非固定列错行 + overflow.x && (innerTable.style.overflowX = overflow.x); + overflow.y && (innerTable.style.overflowY = overflow.y); + } + } + }; - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); + this.onDragStart = function (e) { + if (!_this8.props.draggable) return; + if (_this8.drag && _this8.drag.option != 'dragAble') { + return; + } + var event = _utils.Event.getEvent(e), - _initialiseProps.call(_this); + // target = Event.getTarget(event); + target = _this8.getTargetToTh(_utils.Event.getTarget(event)); + var currentIndex = parseInt(target.getAttribute("data-line-index")); + var currentKey = target.getAttribute('data-line-key'); - var value = typeof props.value === 'undefined' ? props.defaultValue : props.value; - _this.state = { - showSearch: !props.value, - value: value - }; - _this.input = {}; - _this.clickClearBtn = false; - return _this; + if (event.dataTransfer.setDragImage) { + var crt = target.cloneNode(true); + crt.style.backgroundColor = "#ebecf0"; + crt.style.width = _this8.table.cols[currentIndex].style.width; //拖动后再交换列的时候,阴影效果可同步 + crt.style.height = "40px"; + // crt.style['line-height'] = "40px"; + // document.body.appendChild(crt); + document.getElementById(_this8._table_none_cont_id).appendChild(crt); + event.dataTransfer.setDragImage(crt, 0, 0); } - FormControl.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProp) { - if ("value" in nextProp) { - if (nextProp.value !== this.state.value) { - this.setState({ value: nextProp.value }); - } - } - }; + event.dataTransfer.effectAllowed = "move"; + event.dataTransfer.setData("Text", currentKey); + _this8.currentObj = _this8.props.rows[0][currentIndex]; + }; - FormControl.prototype.render = function render() { + this.onDragOver = function (e) { + var event = _utils.Event.getEvent(e); + event.preventDefault(); + }; - if (this.props.type === "search") { - return this.renderSearch(); - } + this.onDrop = function (e) { + if (!_this8.props.draggable) return; + var props = _this8.getCurrentEventData(_this8._dragCurrent); + e.column = { props: props }; + if (_this8.drag && _this8.drag.option != 'dragAble') { + _this8.props.onDrop(e); + return; + } + var event = _utils.Event.getEvent(e), + target = _utils.Event.getTarget(event); + _this8.currentDome.setAttribute('draggable', false); //添加交换列效果 + // let data = this.getCurrentEventData(this._dragCurrent); + // if(!data){ + // this.props.onDrop(e); + // return; + // } + if (!_this8.props.onDrop) return; + // this.props.onDrop(event,target); + _this8.props.onDrop(event, { dragSource: _this8.currentObj, dragTarg: e.column }); + }; - return this.renderInput(); - }; + this.onDragEnter = function (e) { + var event = _utils.Event.getEvent(e), + target = _utils.Event.getTarget(event); + _this8._dragCurrent = target; + var currentIndex = target.getAttribute("data-line-index"); + if (!currentIndex || parseInt(currentIndex) === _this8.drag.currIndex) return; + if (target.nodeName.toUpperCase() === "TH") { + // target.style.border = "2px dashed rgba(5,0,0,0.25)"; + target.setAttribute("style", "border-right:2px dashed rgb(30, 136, 229)"); + // target.style.backgroundColor = 'rgb(235, 236, 240)'; + } + }; - return FormControl; - }(_react2["default"].Component); + this.onDragEnd = function (e) { + var event = _utils.Event.getEvent(e), + target = _utils.Event.getTarget(event); + _this8._dragCurrent.setAttribute("style", ""); + // this._dragCurrent.style = ""; + document.getElementById(_this8._table_none_cont_id).innerHTML = ""; - var _initialiseProps = function _initialiseProps() { - var _this2 = this; + var data = _this8.getCurrentEventData(_this8._dragCurrent); + if (!data) return; + if (!_this8.currentObj || _this8.currentObj.key == data.key) return; + if (!_this8.props.onDragEnd) return; + _this8.props.onDragEnd(event, { dragSource: _this8.currentObj, dragTarg: data }); + }; - this.handleSearchChange = function (e) { - var onChange = _this2.props.onChange; + this.onDragLeave = function (e) { + var event = _utils.Event.getEvent(e), + target = _utils.Event.getTarget(event); + var currentIndex = target.getAttribute("data-line-index"); + if (!currentIndex || parseInt(currentIndex) === _this8.drag.currIndex) return; + if (target.nodeName.toUpperCase() === "TH") { + target.setAttribute("style", ""); + // this._dragCurrent.style = ""; + } + }; - var value = _this2.input.value; - _this2.setState({ - value: value, - showSearch: value == null || value === "" + this.handlerFilterChange = function (key, value, condition) { + var onFilterChange = _this8.props.onFilterChange; + + if (onFilterChange) { + onFilterChange(key, value, condition); + } + }; + + this.handlerFilterClear = function (field) { + var onFilterClear = _this8.props.onFilterClear; + + if (onFilterClear) { + onFilterClear(field); + } + }; + + this.filterRenderType = function (type, dataIndex, index) { + var _props5 = _this8.props, + clsPrefix = _props5.clsPrefix, + rows = _props5.rows, + filterDelay = _props5.filterDelay, + locale = _props5.locale; + + switch (type) { + //文本输入 + case "text": + return _react2["default"].createElement(_FilterType2["default"], { + locale: locale //多语 + , rendertype: type //渲染类型 + , clsPrefix: clsPrefix //css前缀 + , className: clsPrefix + " filter-text", + dataIndex: dataIndex //字段 + , onFilterChange: (0, _throttleDebounce.debounce)(filterDelay || 300, _this8.handlerFilterChange) //输入框回调 + , onFilterClear: _this8.handlerFilterClear //清除回调 + , filterDropdown: rows[1][index]["filterdropdown"] //是否显示下拉条件 + , filterDropdownType: rows[1][index]["filterdropdowntype"] //下拉的条件类型为string,number + , filterDropdownIncludeKeys: rows[1][index]["filterdropdownincludekeys"] //下拉条件按照指定的keys去显示 }); - if (onChange) { - onChange(value, e); + //数值输入 + case "number": + return _react2["default"].createElement(_FilterType2["default"], { + locale: locale, + rendertype: type, + clsPrefix: clsPrefix, + className: clsPrefix + " filter-text", + dataIndex: dataIndex //字段 + , onFilterChange: (0, _throttleDebounce.debounce)(filterDelay || 300, _this8.handlerFilterChange) //输入框回调并且函数防抖动 + , onFilterClear: _this8.handlerFilterClear //清除回调 + , filterDropdown: rows[1][index]["filterdropdown"], + filterDropdownType: rows[1][index]["filterdropdowntype"] //下拉的条件类型为string,number + , filterDropdownIncludeKeys: rows[1][index]["filterdropdownincludekeys"] //下拉条件按照指定的keys去显示 + , filterInputNumberOptions: rows[1][index]["filterinputnumberoptions"] //设置数值框内的详细属性 + }); + //下拉框选择 + case "dropdown": + var selectDataSource = []; + //处理没有输入数据源的时候,系统自动查找自带的数据筛选后注入 + if (rows.length > 0 && (rows[1][index]["filterdropdownauto"] || "auto") == "auto") { + var hash = {}; + //处理下拉重复对象组装dropdown + selectDataSource = Array.from(rows[1][0].datasource, function (x) { + return { + key: x[dataIndex], + value: x[dataIndex] + }; + }); + selectDataSource = selectDataSource.reduceRight(function (item, next) { + hash[next.key] ? "" : hash[next.key] = true && item.push(next); + return item; + }, []); + } else { + //从外部数据源加载系统数据 + selectDataSource = rows[1][index]["filterdropdowndata"]; } - }; + return _react2["default"].createElement(_FilterType2["default"], { + locale: locale, + rendertype: type, + className: clsPrefix + " filter-dropdown", + data: selectDataSource, + notFoundContent: "Loading" //没有数据显示的默认字 + , dataIndex: dataIndex //字段 + , onFilterChange: _this8.handlerFilterChange //输入框回调 + , onFilterClear: _this8.handlerFilterClear //清除回调 + , filterDropdown: rows[1][index]["filterdropdown"], + onFocus: rows[1][index]["filterdropdownfocus"], + filterDropdownType: rows[1][index]["filterdropdowntype"] //下拉的条件类型为string,number + , filterDropdownIncludeKeys: rows[1][index]["filterdropdownincludekeys"] //下拉条件按照指定的keys去显示 + }); + //日期 + case "date": + return _react2["default"].createElement(_FilterType2["default"], { + locale: locale, + rendertype: type, + className: "filter-date", + onClick: function onClick() {}, + format: rows[1][index]["format"] || "YYYY-MM-DD", + dataIndex: dataIndex //字段 + , onFilterChange: _this8.handlerFilterChange //输入框回调 + , onFilterClear: _this8.handlerFilterClear //清除回调 + , filterDropdown: rows[1][index]["filterdropdown"], + filterDropdownType: rows[1][index]["filterdropdowntype"] //下拉的条件类型为string,number + , filterDropdownIncludeKeys: rows[1][index]["filterdropdownincludekeys"] //下拉条件按照指定的keys去显示 + }); + //日期 年 + case "dateyear": + return _react2["default"].createElement(_FilterType2["default"], { + locale: locale, + rendertype: type, + className: "filter-date", + onClick: function onClick() {}, + format: rows[1][index]["format"] || "YYYY", + dataIndex: dataIndex //字段 + , onFilterChange: _this8.handlerFilterChange //输入框回调 + , onFilterClear: _this8.handlerFilterClear //清除回调 + , filterDropdown: rows[1][index]["filterdropdown"], + filterDropdownType: rows[1][index]["filterdropdowntype"] //下拉的条件类型为string,number + , filterDropdownIncludeKeys: rows[1][index]["filterdropdownincludekeys"] //下拉条件按照指定的keys去显示 + }); + //日期 月 + case "datemonth": + return _react2["default"].createElement(_FilterType2["default"], { + locale: locale, + rendertype: type, + className: "filter-date", + onClick: function onClick() {}, + format: rows[1][index]["format"] || "YYYY-MM", + dataIndex: dataIndex //字段 + , onFilterChange: _this8.handlerFilterChange //输入框回调 + , onFilterClear: _this8.handlerFilterClear //清除回调 + , filterDropdown: rows[1][index]["filterdropdown"], + filterDropdownType: rows[1][index]["filterdropdowntype"] //下拉的条件类型为string,number + , filterDropdownIncludeKeys: rows[1][index]["filterdropdownincludekeys"] //下拉条件按照指定的keys去显示 + }); + //日期 周 + case "dateweek": + return _react2["default"].createElement(_FilterType2["default"], { + locale: locale, + rendertype: type, + className: "filter-date", + onClick: function onClick() {}, + format: rows[1][index]["format"] || "YYYY-Wo", + dataIndex: dataIndex //字段 + , onFilterChange: _this8.handlerFilterChange //输入框回调 + , onFilterClear: _this8.handlerFilterClear //清除回调 + , filterDropdown: rows[1][index]["filterdropdown"], + filterDropdownType: rows[1][index]["filterdropdowntype"] //下拉的条件类型为string,number + , filterDropdownIncludeKeys: rows[1][index]["filterdropdownincludekeys"] //下拉条件按照指定的keys去显示 + }); + //日期范围 + case "daterange": + return _react2["default"].createElement(_FilterType2["default"], { + locale: locale, + rendertype: type, + className: "filter-date", + onClick: function onClick() {}, + format: rows[1][index]["format"] || "YYYY-MM-DD", + dataIndex: dataIndex //字段 + , onFilterChange: _this8.handlerFilterChange //输入框回调 + , onFilterClear: _this8.handlerFilterClear //清除回调 + , filterDropdown: rows[1][index]["filterdropdown"], + filterDropdownType: rows[1][index]["filterdropdowntype"] //下拉的条件类型为string,number + , filterDropdownIncludeKeys: rows[1][index]["filterdropdownincludekeys"] //下拉条件按照指定的keys去显示 + }); + default: + //不匹配类型默认文本输入 + return _react2["default"].createElement("div", null); + } + }; + }; - this.handleChange = function (e) { - var _props$debounceDelay = _this2.props.debounceDelay, - debounceDelay = _props$debounceDelay === undefined ? 0 : _props$debounceDelay; + TableHeader.propTypes = propTypes; + exports["default"] = TableHeader; + module.exports = exports["default"]; - var now = new Date().getTime(); - if (now - _this2.lastScrollCall < debounceDelay) return; - _this2.lastScrollCall = now; + /***/ }), + /* 1222 */ + /***/ (function(module, exports, __webpack_require__) { - var onChange = _this2.props.onChange; + (function (global, factory) { + true ? factory(exports) : + typeof define === 'function' && define.amd ? define(['exports'], factory) : + (global = global || self, factory(global.throttleDebounce = {})); + }(this, (function (exports) { 'use strict'; - var value = _this2.input.value; - if (!('value' in _this2.props)) { - _this2.setState({ value: value }); - } - if (onChange) { - onChange(value, e); - } - }; + /* eslint-disable no-undefined,no-param-reassign,no-shadow */ - this.clearValue = function () { - var _props = _this2.props, - onChange = _props.onChange, - showClose = _props.showClose; + /** + * Throttle execution of a function. Especially useful for rate limiting + * execution of handlers on events like resize and scroll. + * + * @param {number} delay - A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful. + * @param {boolean} [noTrailing] - Optional, defaults to false. If noTrailing is true, callback will only execute every `delay` milliseconds while the + * throttled-function is being called. If noTrailing is false or unspecified, callback will be executed one final time + * after the last throttled-function call. (After the throttled-function has not been called for `delay` milliseconds, + * the internal counter is reset). + * @param {Function} callback - A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is, + * to `callback` when the throttled-function is executed. + * @param {boolean} [debounceMode] - If `debounceMode` is true (at begin), schedule `clear` to execute after `delay` ms. If `debounceMode` is false (at end), + * schedule `callback` to execute after `delay` ms. + * + * @returns {Function} A new, throttled, function. + */ + function throttle (delay, noTrailing, callback, debounceMode) { + /* + * After wrapper has stopped being called, this timeout ensures that + * `callback` is executed at the proper times in `throttle` and `end` + * debounce modes. + */ + var timeoutID; + var cancelled = false; // Keep track of the last time `callback` was executed. - _this2.setState({ - showSearch: true, - value: "" - }); - if (_this2.e && _this2.e.target) _this2.e.target.value = ""; - if (onChange) { - onChange("", _this2.e); - } - if (showClose) { - _this2.blurTime && clearTimeout(_this2.blurTime); - _this2.blurTime = null; - } - _this2.input.focus(); - }; + var lastExec = 0; // Function to clear existing timeout - this.handleKeyDown = function (e) { - var _props2 = _this2.props, - onSearch = _props2.onSearch, - type = _props2.type, - onKeyDown = _props2.onKeyDown; + function clearExistingTimeout() { + if (timeoutID) { + clearTimeout(timeoutID); + } + } // Function to cancel next exec - if (e.keyCode === 13 && type === "search") { - if (onSearch) { - onSearch(_this2.input.value); - } - } - onKeyDown && onKeyDown(e); - }; - this.handleSearch = function (e) { - var onSearch = _this2.props.onSearch; + function cancel() { + clearExistingTimeout(); + cancelled = true; + } // `noTrailing` defaults to falsy. - if (onSearch) onSearch(_this2.input.value); - }; - this.handleBlur = function (e) { - var value = _this2.state.value; - var _props3 = _this2.props, - onBlur = _props3.onBlur, - showClose = _props3.showClose; + if (typeof noTrailing !== 'boolean') { + debounceMode = callback; + callback = noTrailing; + noTrailing = undefined; + } + /* + * The `wrapper` function encapsulates all of the throttling / debouncing + * functionality and when executed will limit the rate at which `callback` + * is executed. + */ - var _e = _extends({}, e); - _this2.e = _e; - if (onBlur) { - if (showClose && _this2.clickClearBtn) { - _this2.clickClearBtn = false; - onBlur(value, _e, true); - } else { - onBlur(value, _e); - } - } - }; - this.handleFocus = function (e) { - var value = _this2.state.value; - var onFocus = _this2.props.onFocus; + function wrapper() { + for (var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++) { + arguments_[_key] = arguments[_key]; + } - if (_this2.props.focusSelect) { - _this2.input.select(); - } - if (onFocus) { - onFocus(value, e); - } - }; + var self = this; + var elapsed = Date.now() - lastExec; - this.onClearBtnMouseDown = function () { - _this2.clickClearBtn = true; - }; + if (cancelled) { + return; + } // Execute `callback` and update the `lastExec` timestamp. - this.renderInput = function () { - var _props4 = _this2.props, - Component = _props4.componentClass, - type = _props4.type, - className = _props4.className, - size = _props4.size, - clsPrefix = _props4.clsPrefix, - onChange = _props4.onChange, - onSearch = _props4.onSearch, - onBlur = _props4.onBlur, - showClose = _props4.showClose, - focusSelect = _props4.focusSelect, - prefix = _props4.prefix, - suffix = _props4.suffix, - others = _objectWithoutProperties(_props4, ['componentClass', 'type', 'className', 'size', 'clsPrefix', 'onChange', 'onSearch', 'onBlur', 'showClose', 'focusSelect', 'prefix', 'suffix']); - // input[type="file"] 不应该有类名 .form-control. + function exec() { + lastExec = Date.now(); + callback.apply(self, arguments_); + } + /* + * If `debounceMode` is true (at begin) this is used to clear the flag + * to allow future `callback` executions. + */ - var value = _this2.state.value; - var classes = {}; - if (size) { - classes['' + size] = true; - } + function clear() { + timeoutID = undefined; + } - var classNames = void 0; - if (type !== 'file') { - classNames = (0, _classnames2["default"])(clsPrefix, classes); - } - if (prefix || suffix) classNames += ' ' + clsPrefix + '-prefix-suffix'; - if (className) classNames += ' ' + className; - // 加判断,是否有 前后缀,是否加 wrapper - if (showClose || suffix || prefix) { - return _react2["default"].createElement( - 'div', - { className: (0, _classnames2["default"])(clsPrefix + '-close', clsPrefix + '-affix-wrapper ' + clsPrefix + '-affix-wrapper-' + size, className) }, - prefix ? _react2["default"].createElement( - 'span', - { className: clsPrefix + '-simple-prefix' }, - prefix - ) : '', - _react2["default"].createElement(Component, _extends({}, others, { - type: type, - ref: function ref(el) { - return _this2.input = el; - }, - value: fixControlledValue(value), - onChange: _this2.handleChange, - onBlur: _this2.handleBlur, - onFocus: _this2.handleFocus, - className: (0, _classnames2["default"])(classNames) - })), - showClose && value ? _react2["default"].createElement( - 'div', - { className: clsPrefix + '-suffix has-close', onMouseDown: _this2.onClearBtnMouseDown, onClick: _this2.clearValue }, - _react2["default"].createElement(_beeIcon2["default"], { type: 'uf-close-c' }) - ) : '', - suffix ? _react2["default"].createElement( - 'span', - { className: clsPrefix + '-simple-suffix' }, - suffix - ) : '' - ); - } else { - return _react2["default"].createElement(Component, _extends({}, others, { - type: type, - ref: function ref(el) { - return _this2.input = el; - }, - value: fixControlledValue(value), - onChange: _this2.handleChange, - onBlur: _this2.handleBlur, - onFocus: _this2.handleFocus, - className: (0, _classnames2["default"])(classNames) - })); - } - }; + if (debounceMode && !timeoutID) { + /* + * Since `wrapper` is being called for the first time and + * `debounceMode` is true (at begin), execute `callback`. + */ + exec(); + } - this.renderSearch = function () { - var _props5 = _this2.props, - Component = _props5.componentClass, - type = _props5.type, - className = _props5.className, - size = _props5.size, - clsPrefix = _props5.clsPrefix, - onChange = _props5.onChange, - onSearch = _props5.onSearch, - onBlur = _props5.onBlur, - others = _objectWithoutProperties(_props5, ['componentClass', 'type', 'className', 'size', 'clsPrefix', 'onChange', 'onSearch', 'onBlur']); - // input[type="file"] 不应该有类名 .form-control. + clearExistingTimeout(); + + if (debounceMode === undefined && elapsed > delay) { + /* + * In throttle mode, if `delay` time has been exceeded, execute + * `callback`. + */ + exec(); + } else if (noTrailing !== true) { + /* + * In trailing throttle mode, since `delay` time has not been + * exceeded, schedule `callback` to execute `delay` ms after most + * recent execution. + * + * If `debounceMode` is true (at begin), schedule `clear` to execute + * after `delay` ms. + * + * If `debounceMode` is false (at end), schedule `callback` to + * execute after `delay` ms. + */ + timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay); + } + } + + wrapper.cancel = cancel; // Return the wrapper function. + + return wrapper; + } + /* eslint-disable no-undefined */ + /** + * Debounce execution of a function. Debouncing, unlike throttling, + * guarantees that a function is only executed a single time, either at the + * very beginning of a series of calls, or at the very end. + * + * @param {number} delay - A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful. + * @param {boolean} [atBegin] - Optional, defaults to false. If atBegin is false or unspecified, callback will only be executed `delay` milliseconds + * after the last debounced-function call. If atBegin is true, callback will be executed only at the first debounced-function call. + * (After the throttled-function has not been called for `delay` milliseconds, the internal counter is reset). + * @param {Function} callback - A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is, + * to `callback` when the debounced-function is executed. + * + * @returns {Function} A new, debounced function. + */ - var value = _this2.state.value; + function debounce (delay, atBegin, callback) { + return callback === undefined ? throttle(delay, atBegin, false) : throttle(delay, callback, atBegin !== false); + } - var classes = {}; - if (size) { - classes['' + size] = true; - } - classes[clsPrefix + '-search'] = true; + exports.debounce = debounce; + exports.throttle = throttle; - if (type === "search") { - return _react2["default"].createElement( - 'div', - { className: (0, _classnames2["default"])(clsPrefix + '-search', clsPrefix + '-affix-wrapper', className) }, - _react2["default"].createElement(Component, _extends({}, others, { - type: type, - ref: function ref(el) { - return _this2.input = el; - }, - onChange: _this2.handleSearchChange, - value: fixControlledValue(value), - onKeyDown: _this2.handleKeyDown, - onBlur: _this2.handleBlur, - onFocus: _this2.handleFocus, - className: (0, _classnames2["default"])(clsPrefix, classes) - })), - _react2["default"].createElement( - 'div', - { className: clsPrefix + '-suffix' }, - _react2["default"].createElement(_beeIcon2["default"], { type: 'uf-search', onClick: _this2.handleSearch }) - ) - ); - } - }; - }; + Object.defineProperty(exports, '__esModule', { value: true }); - FormControl.propTypes = propTypes; - FormControl.defaultProps = defaultProps; + }))); + //# sourceMappingURL=index.umd.js.map - exports["default"] = FormControl; - module.exports = exports['default']; /***/ }), - /* 1293 */ + /* 1223 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { - value: true + value: true }); - exports["default"] = void 0; - var _react = _interopRequireWildcard(__webpack_require__(0)); + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _propTypes = _interopRequireDefault(__webpack_require__(1)); + var _react = __webpack_require__(0); - var _moment = _interopRequireDefault(__webpack_require__(4)); + var _react2 = _interopRequireDefault(_react); - var _classnames = _interopRequireDefault(__webpack_require__(2)); + var _propTypes = __webpack_require__(1); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var _propTypes2 = _interopRequireDefault(_propTypes); - function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; } + var _beeDatepicker = __webpack_require__(1224); - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _beeDatepicker2 = _interopRequireDefault(_beeDatepicker); - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + var _zh_CN = __webpack_require__(62); - function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + var _zh_CN2 = _interopRequireDefault(_zh_CN); - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + var _beeFormControl = __webpack_require__(1250); - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + var _beeFormControl2 = _interopRequireDefault(_beeFormControl); - function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + var _beeSelect = __webpack_require__(136); - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + var _beeSelect2 = _interopRequireDefault(_beeSelect); - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + var _beeInputNumber = __webpack_require__(234); - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + var _beeInputNumber2 = _interopRequireDefault(_beeInputNumber); - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + var _FilterDropDown = __webpack_require__(1253); - var Header = - /*#__PURE__*/ - function (_Component) { - _inherits(Header, _Component); + var _FilterDropDown2 = _interopRequireDefault(_FilterDropDown); - function Header(props) { - var _this; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - _classCallCheck(this, Header); + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - _this = _possibleConstructorReturn(this, _getPrototypeOf(Header).call(this, props)); + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - _defineProperty(_assertThisInitialized(_this), "onInputChange", function (event) { - var str = event.target.value; + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - _this.setState({ - str: str - }); + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - var _this$props = _this.props, - format = _this$props.format, - hourOptions = _this$props.hourOptions, - minuteOptions = _this$props.minuteOptions, - secondOptions = _this$props.secondOptions, - disabledHours = _this$props.disabledHours, - disabledMinutes = _this$props.disabledMinutes, - disabledSeconds = _this$props.disabledSeconds, - onChange = _this$props.onChange; + var RangePicker = _beeDatepicker2["default"].RangePicker, + YearPicker = _beeDatepicker2["default"].YearPicker, + MonthPicker = _beeDatepicker2["default"].MonthPicker, + WeekPicker = _beeDatepicker2["default"].WeekPicker; - if (str) { - var originalValue = _this.props.value; - var value = _this.getProtoValue().clone(); + var propTypes = { + filterDropdown: _propTypes2["default"].string + }; - var parsed = (0, _moment["default"])(str, format, true); + var FilterType = function (_Component) { + _inherits(FilterType, _Component); - if (!parsed.isValid()) { - _this.setState({ - invalid: true - }); + function FilterType(props) { + _classCallCheck(this, FilterType); - return; - } + var _this = _possibleConstructorReturn(this, _Component.call(this, props)); - value.hour(parsed.hour()).minute(parsed.minute()).second(parsed.second()); // if time value not allowed, response warning. + _this.clearFilter = function () { + var _this$props = _this.props, + onFilterClear = _this$props.onFilterClear, + dataIndex = _this$props.dataIndex; - if (hourOptions.indexOf(value.hour()) < 0 || minuteOptions.indexOf(value.minute()) < 0 || secondOptions.indexOf(value.second()) < 0) { - _this.setState({ - invalid: true - }); + if (_this.state.value !== "") { + _this.setState({ + value: "", //清空值 + condition: _this.props.filterDropdownType == 'string' ? 'LIKE' : 'EQ' //切回默认查询条件 + }, function () { + //调用清除方法参数为当前字段的field + onFilterClear && onFilterClear(dataIndex); + }); + } + }; - return; - } // if time value is disabled, response warning. + _this.changeText = function (val) { + var _this$props2 = _this.props, + onFilterChange = _this$props2.onFilterChange, + dataIndex = _this$props2.dataIndex; + _this.setState({ + value: val + }, function () { + onFilterChange(dataIndex, val, _this.state.condition); + }); + }; - var disabledHourOptions = disabledHours(); - var disabledMinuteOptions = disabledMinutes(value.hour()); - var disabledSecondOptions = disabledSeconds(value.hour(), value.minute()); + _this.changeTextCall = function (e) { + var _this$props3 = _this.props, + onFilterChange = _this$props3.onFilterChange, + dataIndex = _this$props3.dataIndex; - if (disabledHourOptions && disabledHourOptions.indexOf(value.hour()) >= 0 || disabledMinuteOptions && disabledMinuteOptions.indexOf(value.minute()) >= 0 || disabledSecondOptions && disabledSecondOptions.indexOf(value.second()) >= 0) { - _this.setState({ - invalid: true - }); + if (e.keyCode == 13) { + e.target.value !== "" && onFilterChange(dataIndex, e.target.value, _this.state.condition); + } + }; - return; - } + _this.changeValue = function () { + _this.setState({ + value: "" + }); + }; - if (originalValue) { - if (originalValue.hour() !== value.hour() || originalValue.minute() !== value.minute() || originalValue.second() !== value.second()) { - // keep other fields for rc-calendar - var changedValue = originalValue.clone(); - changedValue.hour(value.hour()); - changedValue.minute(value.minute()); - changedValue.second(value.second()); - onChange(changedValue); - } - } else if (originalValue !== value) { - onChange(value); - } - } else { - onChange(null); - } + _this.onSelectDropdown = function (item) { + var _this$props4 = _this.props, + onFilterChange = _this$props4.onFilterChange, + dataIndex = _this$props4.dataIndex; - _this.setState({ - invalid: false - }); - }); + _this.setState({ + condition: item.key + }, function () { + _this.state.value !== "" && onFilterChange && onFilterChange(dataIndex, _this.state.value, _this.state.condition); + }); + }; - _defineProperty(_assertThisInitialized(_this), "onKeyDown", function (e) { - var _this$props2 = _this.props, - onEsc = _this$props2.onEsc, - onKeyDown = _this$props2.onKeyDown; + _this.changeNumber = function (value) { + var _this$props5 = _this.props, + onFilterChange = _this$props5.onFilterChange, + dataIndex = _this$props5.dataIndex; - if (e.keyCode === 27) { - onEsc(); - } + _this.setState({ + value: value + }, function () { + onFilterChange(dataIndex, value, _this.state.condition); + }); + }; - onKeyDown(e); - }); + _this.clearNumber = function () { + var onChange = _this.props.onChange; - var _value = props.value, - _format = props.format; - _this.state = { - str: _value && _value.format(_format) || '', - invalid: false - }; - return _this; - } + onChange && onChange(""); + _this.setState({ + value: "" + }); + }; - _createClass(Header, [{ - key: "componentDidMount", - value: function componentDidMount() { - var _this2 = this; + _this.changeTextCallBlur = function (val) { + var onChange = _this.props.onChange; - var focusOnOpen = this.props.focusOnOpen; + onChange && onChange(val); + }; - if (focusOnOpen) { - // Wait one frame for the panel to be positioned before focusing - var requestAnimationFrame = window.requestAnimationFrame || window.setTimeout; - requestAnimationFrame(function () { - _this2.refInput.focus(); + _this.changeSelect = function (value) { + var _this$props6 = _this.props, + onFilterChange = _this$props6.onFilterChange, + dataIndex = _this$props6.dataIndex; - _this2.refInput.select(); - }); - } - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - var _this$props3 = this.props, - value = _this$props3.value, - format = _this$props3.format; + if (onFilterChange) { + onFilterChange(dataIndex, value, _this.state.condition); + _this.setState({ + value: value + }); + } + }; - if (value !== prevProps.value) { - // eslint-disable-next-line react/no-did-update-set-state - this.setState({ - str: value && value.format(format) || '', - invalid: false - }); - } - } - }, { - key: "getProtoValue", - value: function getProtoValue() { - var _this$props4 = this.props, - value = _this$props4.value, - defaultOpenValue = _this$props4.defaultOpenValue; - return value || defaultOpenValue; - } - }, { - key: "getInput", - value: function getInput() { - var _this3 = this; + _this.clearSelectValue = function () { + _this.setState({ + selectValue: "" + }, function () { + _this.changeSelect(""); + }); + }; - var _this$props5 = this.props, - prefixCls = _this$props5.prefixCls, - placeholder = _this$props5.placeholder, - inputReadOnly = _this$props5.inputReadOnly; - var _this$state = this.state, - invalid = _this$state.invalid, - str = _this$state.str; - var invalidClass = invalid ? "".concat(prefixCls, "-input-invalid") : ''; - return _react["default"].createElement("input", { - className: (0, _classnames["default"])("".concat(prefixCls, "-input"), invalidClass), - ref: function ref(_ref) { - _this3.refInput = _ref; - }, - onKeyDown: this.onKeyDown, - value: str, - placeholder: placeholder, - onChange: this.onInputChange, - readOnly: !!inputReadOnly - }); - } - }, { - key: "render", - value: function render() { - var prefixCls = this.props.prefixCls; - return _react["default"].createElement("div", { - className: "".concat(prefixCls, "-input-wrap") - }, this.getInput()); + _this.clearDateValue = function () { + _this.setState({ + dateValue: "" + }, function () { + _this.changeDate(""); + }); + }; + + _this.changeDate = function (value) { + var _this$props7 = _this.props, + onFilterChange = _this$props7.onFilterChange, + dataIndex = _this$props7.dataIndex; + + if (onFilterChange) { + onFilterChange(dataIndex, value, _this.state.condition); + _this.setState({ + value: value, + open: false + }); + } + }; + + _this.renderControl = function (rendertype) { + var _this$props8 = _this.props, + filterInputNumberOptions = _this$props8.filterInputNumberOptions, + filterDropdownIncludeKeys = _this$props8.filterDropdownIncludeKeys, + dataIndex = _this$props8.dataIndex, + filterDropdown = _this$props8.filterDropdown, + filterDropdownType = _this$props8.filterDropdownType, + format = _this$props8.format, + className = _this$props8.className, + onChange = _this$props8.onChange, + onSelectDropdown = _this$props8.onSelectDropdown, + clsPrefix = _this$props8.clsPrefix, + locale = _this$props8.locale; + + switch (rendertype) { + case 'text': + return _react2["default"].createElement( + 'div', + { className: clsPrefix + ' filter-wrap' }, + _react2["default"].createElement(_beeFormControl2["default"], { + value: _this.state.value, + className: className, + onChange: _this.changeText, + onKeyDown: _this.changeTextCall + //onBlur={this.changeTextCallBlur} + }), + _react2["default"].createElement(_FilterDropDown2["default"], { + locale: locale, + dataIndex: dataIndex, + dataText: _this.state.value, + onSelectDropdown: _this.onSelectDropdown, + onClickClear: _this.clearFilter, + isShowClear: _this.state.value, + isShowCondition: filterDropdown, + filterDropdownType: filterDropdownType, + filterDropdownIncludeKeys: filterDropdownIncludeKeys + }) + ); + case 'number': + return _react2["default"].createElement( + 'div', + { className: clsPrefix + ' filter-wrap' }, + _react2["default"].createElement(_beeInputNumber2["default"], _extends({}, filterInputNumberOptions, { + className: className, + value: _this.state.value, + onChange: _this.changeNumber, + iconStyle: 'one' + })), + _react2["default"].createElement(_FilterDropDown2["default"], { + locale: locale, + dataIndex: dataIndex, + dataText: _this.state.value, + onSelectDropdown: _this.onSelectDropdown, + onClickClear: _this.clearFilter, + isShowClear: _this.state.value != 0, + isShowCondition: filterDropdown, + filterDropdownType: filterDropdownType, + filterDropdownIncludeKeys: filterDropdownIncludeKeys + }) + ); + case 'dropdown': + return _react2["default"].createElement( + 'div', + { className: clsPrefix + ' filter-wrap' }, + _react2["default"].createElement(_beeSelect2["default"], _extends({}, _this.props, { + size: 'sm', + value: _this.state.value, + onChange: _this.changeSelect + })), + _react2["default"].createElement(_FilterDropDown2["default"], { + locale: locale, + dataIndex: dataIndex, + dataText: _this.state.value, + onSelectDropdown: _this.onSelectDropdown, + onClickClear: _this.clearFilter, + isShowCondition: filterDropdown, + isShowClear: _this.state.value, + filterDropdownType: filterDropdownType, + filterDropdownIncludeKeys: filterDropdownIncludeKeys + }) + ); + case 'date': + return _react2["default"].createElement( + 'div', + { className: clsPrefix + ' filter-wrap' }, + _react2["default"].createElement(_beeDatepicker2["default"], _extends({}, _this.props, { + value: _this.state.value, + onChange: _this.changeDate, + open: _this.state.open, + format: format, + locale: _zh_CN2["default"] + })), + _react2["default"].createElement(_FilterDropDown2["default"], { + locale: locale, + dataIndex: dataIndex, + dataText: _this.state.value, + onSelectDropdown: _this.onSelectDropdown, + onClickClear: _this.clearFilter, + isShowCondition: filterDropdown, + isShowClear: _this.state.value, + filterDropdownType: filterDropdownType, + filterDropdownIncludeKeys: filterDropdownIncludeKeys + }) + ); + case 'dateyear': + return _react2["default"].createElement( + 'div', + { className: clsPrefix + ' filter-wrap' }, + _react2["default"].createElement(YearPicker, _extends({}, _this.props, { + value: _this.state.value, + onChange: _this.changeDate, + open: _this.state.open, + format: format, + locale: _zh_CN2["default"] + })), + _react2["default"].createElement(_FilterDropDown2["default"], { + locale: locale, + dataIndex: dataIndex, + dataText: _this.state.value, + onSelectDropdown: _this.onSelectDropdown, + onClickClear: _this.clearFilter, + isShowCondition: filterDropdown, + isShowClear: _this.state.value, + filterDropdownType: filterDropdownType, + filterDropdownIncludeKeys: filterDropdownIncludeKeys + }) + ); + case 'datemonth': + return _react2["default"].createElement( + 'div', + { className: clsPrefix + ' filter-wrap' }, + _react2["default"].createElement(MonthPicker, _extends({}, _this.props, { + value: _this.state.value, + onChange: _this.changeDate, + open: _this.state.open, + format: format, + locale: _zh_CN2["default"] + })), + _react2["default"].createElement(_FilterDropDown2["default"], { + locale: locale, + dataIndex: dataIndex, + dataText: _this.state.value, + onSelectDropdown: _this.onSelectDropdown, + onClickClear: _this.clearFilter, + isShowCondition: filterDropdown, + isShowClear: _this.state.value, + filterDropdownType: filterDropdownType, + filterDropdownIncludeKeys: filterDropdownIncludeKeys + }) + ); + case 'dateweek': + return _react2["default"].createElement( + 'div', + { className: clsPrefix + ' filter-wrap' }, + _react2["default"].createElement(WeekPicker, _extends({}, _this.props, { + value: _this.state.value, + onChange: _this.changeDate, + open: _this.state.open, + format: format, + locale: _zh_CN2["default"] + })), + _react2["default"].createElement(_FilterDropDown2["default"], { + locale: locale, + dataIndex: dataIndex, + dataText: _this.state.value, + onSelectDropdown: _this.onSelectDropdown, + onClickClear: _this.clearFilter, + isShowCondition: filterDropdown, + isShowClear: _this.state.value, + filterDropdownType: filterDropdownType, + filterDropdownIncludeKeys: filterDropdownIncludeKeys + }) + ); + case 'daterange': + return _react2["default"].createElement( + 'div', + { className: clsPrefix + ' filter-wrap' }, + _react2["default"].createElement(RangePicker, _extends({}, _this.props, { + value: _this.state.value, + onChange: _this.changeDate, + open: _this.state.open, + format: format, + showTime: true, + locale: _zh_CN2["default"], + placeholder: '开始 ~ 结束', + dateInputPlaceholder: ['开始', '结束'], + showClear: true + })), + _react2["default"].createElement(_FilterDropDown2["default"], { + locale: locale, + dataIndex: dataIndex, + dataText: _this.state.value, + onSelectDropdown: _this.onSelectDropdown, + onClickClear: _this.clearFilter, + isShowCondition: filterDropdown, + isShowClear: _this.state.value, + filterDropdownIncludeKeys: filterDropdownIncludeKeys + }) + ); + case 'bool': + return _react2["default"].createElement( + 'div', + { className: clsPrefix + ' filter-wrap' }, + _react2["default"].createElement(Switch, { + className: className, + onChange: onChange + }), + _react2["default"].createElement(_FilterDropDown2["default"], { locale: locale, + onSelectDropdown: onSelectDropdown, + filterDropdownIncludeKeys: filterDropdownIncludeKeys + }) + ); + default: + return _react2["default"].createElement('div', null); + } + }; + + _this.state = { + value: "", + text: "", + selectValue: "", + dateValue: "", + open: false, + condition: props.filterDropdownType == 'string' ? 'LIKE' : 'EQ', + number: 0 + }; + return _this; } - }]); - return Header; - }(_react.Component); + /** + * 清除过滤条件 + * + */ - _defineProperty(Header, "propTypes", { - format: _propTypes["default"].string, - prefixCls: _propTypes["default"].string, - disabledDate: _propTypes["default"].func, - placeholder: _propTypes["default"].string, - clearText: _propTypes["default"].string, - value: _propTypes["default"].object, - inputReadOnly: _propTypes["default"].bool, - hourOptions: _propTypes["default"].array, - minuteOptions: _propTypes["default"].array, - secondOptions: _propTypes["default"].array, - disabledHours: _propTypes["default"].func, - disabledMinutes: _propTypes["default"].func, - disabledSeconds: _propTypes["default"].func, - onChange: _propTypes["default"].func, - onEsc: _propTypes["default"].func, - defaultOpenValue: _propTypes["default"].object, - currentSelectPanel: _propTypes["default"].string, - focusOnOpen: _propTypes["default"].bool, - onKeyDown: _propTypes["default"].func, - clearIcon: _propTypes["default"].node - }); - _defineProperty(Header, "defaultProps", { - inputReadOnly: false - }); + /** + * 设置输入文本的值 + * + */ - var _default = Header; - exports["default"] = _default; + + /** + * 输入框回车执行回调 + * + */ + + /** + * 更改修改值 + * + */ + + /** + * 下拉条件的回调 + * + * @param {*} key 字段 + * @param {*} value 值1,2,3...6 + */ + + + /** + * 修改数值型的值 + * + */ + + //清除数值 + + + //失去焦点后执行函数 + + //设置下拉值 + + //清除下拉值 + + //清除日期值 + + //设置日期值 + + //组件渲染 + /** + * 根据不同的类型生成对应的组件类型包含一些参数的适应 + * + * @param {*} rendertype 参数类型,包括['text','dropdown','date','dateyear','datemonth','dateweek',daterange','number'] + * @returns + */ + + + FilterType.prototype.render = function render() { + var rendertype = this.props.rendertype; + + return _react2["default"].createElement( + 'div', + { 'data-filter-type': 'filterContext' }, + this.renderControl(rendertype) + ); + }; + + return FilterType; + }(_react.Component); + + FilterType.propTypes = propTypes; + FilterType.defaultProps = { + filterDropdown: 'show' + }; + exports["default"] = FilterType; + module.exports = exports['default']; /***/ }), - /* 1294 */ + /* 1224 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -244101,714 +235695,1021 @@ Object.defineProperty(exports, "__esModule", { value: true }); - exports["default"] = void 0; - var _react = _interopRequireWildcard(__webpack_require__(0)); + var _react = __webpack_require__(0); - var _propTypes = _interopRequireDefault(__webpack_require__(1)); + var _react2 = _interopRequireDefault(_react); - var _Select = _interopRequireDefault(__webpack_require__(1295)); + var _DatePicker = __webpack_require__(1225); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var _DatePicker2 = _interopRequireDefault(_DatePicker); - function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; } + var _MonthPicker = __webpack_require__(1243); - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var _MonthPicker2 = _interopRequireDefault(_MonthPicker); - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + var _RangePicker = __webpack_require__(1245); - function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + var _RangePicker2 = _interopRequireDefault(_RangePicker); - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + var _WeekPicker = __webpack_require__(1248); - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + var _WeekPicker2 = _interopRequireDefault(_WeekPicker); - function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + var _YearPicker = __webpack_require__(1249); - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + var _YearPicker2 = _interopRequireDefault(_YearPicker); - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + _DatePicker2["default"].MonthPicker = _MonthPicker2["default"]; + _DatePicker2["default"].RangePicker = _RangePicker2["default"]; + _DatePicker2["default"].WeekPicker = _WeekPicker2["default"]; + _DatePicker2["default"].YearPicker = _YearPicker2["default"]; - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + exports["default"] = _DatePicker2["default"]; + module.exports = exports['default']; - var formatOption = function formatOption(option, disabledOptions) { - var value = "".concat(option); + /***/ }), + /* 1225 */ + /***/ (function(module, exports, __webpack_require__) { - if (option < 10) { - value = "0".concat(option); - } + "use strict"; - var disabled = false; - if (disabledOptions && disabledOptions.indexOf(option) >= 0) { - disabled = true; - } + Object.defineProperty(exports, "__esModule", { + value: true + }); - return { - value: value, - disabled: disabled - }; - }; + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var Combobox = - /*#__PURE__*/ - function (_Component) { - _inherits(Combobox, _Component); + var _rcCalendar = __webpack_require__(320); - function Combobox() { - var _getPrototypeOf2; + var _rcCalendar2 = _interopRequireDefault(_rcCalendar); - var _this; + var _react = __webpack_require__(0); - _classCallCheck(this, Combobox); + var _react2 = _interopRequireDefault(_react); - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } + var _reactDom = __webpack_require__(3); - _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Combobox)).call.apply(_getPrototypeOf2, [this].concat(args))); + var _reactDom2 = _interopRequireDefault(_reactDom); - _defineProperty(_assertThisInitialized(_this), "onItemChange", function (type, itemValue) { - var _this$props = _this.props, - onChange = _this$props.onChange, - defaultOpenValue = _this$props.defaultOpenValue, - use12Hours = _this$props.use12Hours, - propValue = _this$props.value, - isAM = _this$props.isAM, - onAmPmChange = _this$props.onAmPmChange; - var value = (propValue || defaultOpenValue).clone(); + var _tinperBeeCore = __webpack_require__(6); - if (type === 'hour') { - if (use12Hours) { - if (isAM) { - value.hour(+itemValue % 12); - } else { - value.hour(+itemValue % 12 + 12); - } - } else { - value.hour(+itemValue); - } - } else if (type === 'minute') { - value.minute(+itemValue); - } else if (type === 'ampm') { - var ampm = itemValue.toUpperCase(); + var _Picker = __webpack_require__(80); - if (use12Hours) { - if (ampm === 'PM' && value.hour() < 12) { - value.hour(value.hour() % 12 + 12); - } + var _Picker2 = _interopRequireDefault(_Picker); - if (ampm === 'AM') { - if (value.hour() >= 12) { - value.hour(value.hour() - 12); - } - } - } + var _beeFormControl = __webpack_require__(81); - onAmPmChange(ampm); - } else { - value.second(+itemValue); - } + var _beeFormControl2 = _interopRequireDefault(_beeFormControl); - onChange(value); - }); + var _Panel = __webpack_require__(463); - _defineProperty(_assertThisInitialized(_this), "onEnterSelectPanel", function (range) { - var onCurrentSelectPanelChange = _this.props.onCurrentSelectPanelChange; - onCurrentSelectPanelChange(range); - }); + var _Panel2 = _interopRequireDefault(_Panel); - return _this; - } + var _moment = __webpack_require__(4); - _createClass(Combobox, [{ - key: "getHourSelect", - value: function getHourSelect(hour) { - var _this2 = this; + var _moment2 = _interopRequireDefault(_moment); - var _this$props2 = this.props, - prefixCls = _this$props2.prefixCls, - hourOptions = _this$props2.hourOptions, - disabledHours = _this$props2.disabledHours, - showHour = _this$props2.showHour, - use12Hours = _this$props2.use12Hours, - onEsc = _this$props2.onEsc; + var _beeIcon = __webpack_require__(13); - if (!showHour) { - return null; - } + var _beeIcon2 = _interopRequireDefault(_beeIcon); - var disabledOptions = disabledHours(); - var hourOptionsAdj; - var hourAdj; + var _classnames = __webpack_require__(2); - if (use12Hours) { - hourOptionsAdj = [12].concat(hourOptions.filter(function (h) { - return h < 12 && h > 0; - })); - hourAdj = hour % 12 || 12; - } else { - hourOptionsAdj = hourOptions; - hourAdj = hour; - } + var _classnames2 = _interopRequireDefault(_classnames); - return _react["default"].createElement(_Select["default"], { - prefixCls: prefixCls, - options: hourOptionsAdj.map(function (option) { - return formatOption(option, disabledOptions); - }), - selectedIndex: hourOptionsAdj.indexOf(hourAdj), - type: "hour", - onSelect: this.onItemChange, - onMouseEnter: function onMouseEnter() { - return _this2.onEnterSelectPanel('hour'); - }, - onEsc: onEsc - }); - } - }, { - key: "getMinuteSelect", - value: function getMinuteSelect(minute) { - var _this3 = this; + var _beeInputGroup = __webpack_require__(82); - var _this$props3 = this.props, - prefixCls = _this$props3.prefixCls, - minuteOptions = _this$props3.minuteOptions, - disabledMinutes = _this$props3.disabledMinutes, - defaultOpenValue = _this$props3.defaultOpenValue, - showMinute = _this$props3.showMinute, - propValue = _this$props3.value, - onEsc = _this$props3.onEsc; + var _beeInputGroup2 = _interopRequireDefault(_beeInputGroup); - if (!showMinute) { - return null; - } + var _zh_CN = __webpack_require__(62); - var value = propValue || defaultOpenValue; - var disabledOptions = disabledMinutes(value.hour()); - return _react["default"].createElement(_Select["default"], { - prefixCls: prefixCls, - options: minuteOptions.map(function (option) { - return formatOption(option, disabledOptions); - }), - selectedIndex: minuteOptions.indexOf(minute), - type: "minute", - onSelect: this.onItemChange, - onMouseEnter: function onMouseEnter() { - return _this3.onEnterSelectPanel('minute'); - }, - onEsc: onEsc - }); - } - }, { - key: "getSecondSelect", - value: function getSecondSelect(second) { - var _this4 = this; + var _zh_CN2 = _interopRequireDefault(_zh_CN); - var _this$props4 = this.props, - prefixCls = _this$props4.prefixCls, - secondOptions = _this$props4.secondOptions, - disabledSeconds = _this$props4.disabledSeconds, - showSecond = _this$props4.showSecond, - defaultOpenValue = _this$props4.defaultOpenValue, - propValue = _this$props4.value, - onEsc = _this$props4.onEsc; + var _omit = __webpack_require__(31); - if (!showSecond) { - return null; - } + var _omit2 = _interopRequireDefault(_omit); - var value = propValue || defaultOpenValue; - var disabledOptions = disabledSeconds(value.hour(), value.minute()); - return _react["default"].createElement(_Select["default"], { - prefixCls: prefixCls, - options: secondOptions.map(function (option) { - return formatOption(option, disabledOptions); - }), - selectedIndex: secondOptions.indexOf(second), - type: "second", - onSelect: this.onItemChange, - onMouseEnter: function onMouseEnter() { - return _this4.onEnterSelectPanel('second'); - }, - onEsc: onEsc - }); - } - }, { - key: "getAMPMSelect", - value: function getAMPMSelect() { - var _this5 = this; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - var _this$props5 = this.props, - prefixCls = _this$props5.prefixCls, - use12Hours = _this$props5.use12Hours, - format = _this$props5.format, - isAM = _this$props5.isAM, - onEsc = _this$props5.onEsc; + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - if (!use12Hours) { - return null; - } + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - var AMPMOptions = ['am', 'pm'] // If format has A char, then we should uppercase AM/PM - .map(function (c) { - return format.match(/\sA/) ? c.toUpperCase() : c; - }).map(function (c) { - return { - value: c - }; - }); - var selected = isAM ? 0 : 1; - return _react["default"].createElement(_Select["default"], { - prefixCls: prefixCls, - options: AMPMOptions, - selectedIndex: selected, - type: "ampm", - onSelect: this.onItemChange, - onMouseEnter: function onMouseEnter() { - return _this5.onEnterSelectPanel('ampm'); - }, - onEsc: onEsc - }); - } - }, { - key: "render", - value: function render() { - var _this$props6 = this.props, - prefixCls = _this$props6.prefixCls, - defaultOpenValue = _this$props6.defaultOpenValue, - propValue = _this$props6.value; - var value = propValue || defaultOpenValue; - return _react["default"].createElement("div", { - className: "".concat(prefixCls, "-combobox") - }, this.getHourSelect(value.hour()), this.getMinuteSelect(value.minute()), this.getSecondSelect(value.second()), this.getAMPMSelect(value.hour())); - } - }]); + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - return Combobox; - }(_react.Component); + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - _defineProperty(Combobox, "propTypes", { - format: _propTypes["default"].string, - defaultOpenValue: _propTypes["default"].object, - prefixCls: _propTypes["default"].string, - value: _propTypes["default"].object, - onChange: _propTypes["default"].func, - onAmPmChange: _propTypes["default"].func, - showHour: _propTypes["default"].bool, - showMinute: _propTypes["default"].bool, - showSecond: _propTypes["default"].bool, - hourOptions: _propTypes["default"].array, - minuteOptions: _propTypes["default"].array, - secondOptions: _propTypes["default"].array, - disabledHours: _propTypes["default"].func, - disabledMinutes: _propTypes["default"].func, - disabledSeconds: _propTypes["default"].func, - onCurrentSelectPanelChange: _propTypes["default"].func, - use12Hours: _propTypes["default"].bool, - onEsc: _propTypes["default"].func, - isAM: _propTypes["default"].bool - }); + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** + * Created by chief on 17/4/6. + */ - var _default = Combobox; - exports["default"] = _default; + function noop() {} + var timerDatePicker = true; - /***/ }), - /* 1295 */ - /***/ (function(module, exports, __webpack_require__) { + var DatePicker = function (_Component) { + _inherits(DatePicker, _Component); - "use strict"; + function DatePicker(props, context) { + _classCallCheck(this, DatePicker); + + var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); + + _initialiseProps.call(_this); + + _this.state = { + type: "month", + value: _this.initValue(props), + open: props.open || false, + inputValue: _this.initValue(props), + showClose: false + }; + _this.fileChange = true; + + return _this; + } + + DatePicker.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { + if ("value" in nextProps) { + this.setState({ + value: this.initValue(nextProps), + inputValue: nextProps.value && this.getValue(nextProps.value) || '' + }); + } + if ("open" in nextProps) { + this.setState({ + open: nextProps.open + }); + } + if ("renderIcon" in nextProps) { + this.setState({ + renderIcon: nextProps.renderIcon + }); + } + }; + //日期面板中输入框的失焦事件 + //fix:更改系统时区后,日期框需要触发 onChange 事件 - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports["default"] = void 0; - var _react = _interopRequireWildcard(__webpack_require__(0)); + DatePicker.prototype.render = function render() { + var _this2 = this; - var _propTypes = _interopRequireDefault(__webpack_require__(1)); + var state = this.state; + var props = this.props; - var _reactDom = _interopRequireDefault(__webpack_require__(3)); + var showClose = props.showClose, + defaultPanelShown = props.defaultPanelShown, + onBlur = props.onBlur, + showHour = props.showHour, + showMinute = props.showMinute, + showSecond = props.showSecond, + autoTriggerChange = props.autoTriggerChange, + others = _objectWithoutProperties(props, ["showClose", "defaultPanelShown", "onBlur", "showHour", "showMinute", "showSecond", "autoTriggerChange"]); - var _classnames = _interopRequireDefault(__webpack_require__(2)); + var value = state.value; + var pickerChangeHandler = {}; + var calendarHandler = {}; + var autofocus = this.props.autofocus ? { autofocus: 'autofocus' } : null; - var _raf = _interopRequireDefault(__webpack_require__(36)); + if (props.showTime) { + calendarHandler = { + // fix https://github.com/ant-design/ant-design/issues/1902 + onSelect: this.handleChange + }; + } else { + pickerChangeHandler = { + onChange: this.handleChange + }; + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + var splitNumber = '3'; + if (!showHour) splitNumber -= 1; + if (!showMinute) splitNumber -= 1; + if (!showSecond) splitNumber -= 1; - function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; } + var calendarProps = {}; + if (autoTriggerChange) { + calendarProps.value = value; + calendarProps.onChange = this.handleCalendarChange; + } else { + calendarProps.onChange = noop; + } - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var calendar = _react2["default"].createElement(_rcCalendar2["default"], _extends({ + timePicker: props.showTime ? _react2["default"].createElement(_Panel2["default"], { + className: 'time-split-' + splitNumber, + showHour: showHour, showMinute: showMinute, showSecond: showSecond, + defaultValue: (0, _moment2["default"])((0, _moment2["default"])().format("HH:mm:ss"), "HH:mm:ss") }) : null + }, props, calendarProps, { + onSelect: this.handleSelect, + onInputBlur: this.onDateInputBlur + })); - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + var keyboardInputProps = {}; + if (props.keyboardInput) { + keyboardInputProps.readOnly = false; + keyboardInputProps.onChange = this.inputChange; + keyboardInputProps.value = state.inputValue && state.inputValue.format && state.inputValue.isValid() && this.props.validatorFunc(state.inputValue) ? state.inputValue.format(props.format) : state.inputValue; + } else { + keyboardInputProps.readOnly = true; + keyboardInputProps.value = value && this.getValue(value) || ""; + } + var classes = (0, _classnames2["default"])(props.className, "datepicker-container"); + return _react2["default"].createElement( + "div", + _extends({ className: classes, onMouseEnter: this.onDateHover + }, (0, _omit2["default"])(others, ['onDateInputBlur', 'getCalendarContainer', 'showToday', 'renderFooter', 'keyboardInput', 'showDateInput', 'showTime', 'closeIcon', 'renderIcon', 'focusOnOpen', 'defultSelect', 'onOpenChange', 'locale', 'showMonthInput', 'onKeyDown', 'renderError', 'format', 'placeholder', 'disabledTime', 'onChange', 'disabledDate', 'iconClick', 'outInputKeydown'])), + _react2["default"].createElement( + _Picker2["default"], + _extends({ + animation: "slide-up" + }, props, pickerChangeHandler, { + onOpenChange: this.onOpenChange, + calendar: calendar, + mode: 'year', + open: 'defaultPanelShown' in props ? defaultPanelShown : this.state.open, + value: state.value + }), + function () { + return _react2["default"].createElement( + _beeInputGroup2["default"], + { simple: true, className: "datepicker-input-group", + onMouseEnter: _this2.onMouseEnter, + onMouseLeave: _this2.onMouseLeave + }, + _react2["default"].createElement(_beeFormControl2["default"], _extends({ + ref: function ref(_ref) { + return _this2.outInput = _ref; + }, + disabled: props.disabled, + placeholder: _this2.props.placeholder, + onClick: function onClick(event) { + _this2.onClick(event); + }, + focusSelect: props.defaultSelected, + onFocus: function onFocus(v, e) { + _this2.outInputFocus(e); + }, + onKeyDown: _this2.outInputKeydown + // value={(value && value.format(props.format)) || ""} + }, keyboardInputProps, autofocus)), + showClose && _this2.state.value && _this2.state.showClose && !props.disabled ? _react2["default"].createElement( + _beeInputGroup2["default"].Button, + { shape: "border", + onClick: _this2.clear }, + props.closeIcon() + ) : _react2["default"].createElement( + _beeInputGroup2["default"].Button, + { shape: "border", + onClick: function onClick(e) { + props.keyboardInput ? _this2.iconClick(e) : ''; + } }, + props.renderIcon() + ) + ); + } + ) + ); + }; - function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + return DatePicker; + }(_react.Component); - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + var _initialiseProps = function _initialiseProps() { + var _this3 = this; - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + this.initValue = function (props) { + var value = props.value || props.defaultValue; + if (value) { + if (typeof value == 'string') { + if ((0, _moment2["default"])(value).isValid()) { + value = (0, _moment2["default"])(value); + } else { + console.error('value is not in the correct format'); + value = ''; + } + } else if (value.format && value.isValid()) { + value = value; + } else { + console.error('value is not in the correct format'); + value = ''; + } + } + return value; + }; - function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + this.getValue = function (value) { + var format = _this3.props.format; - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + if (typeof format == 'string') { + return value.format(format); + } else { + return value.format(format[0]); + } + }; - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + this.onChange = function (value) { + _this3.setState({ value: value }); + }; - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + this.inputFocus = function () { + var _props = _this3.props, + format = _props.format, + validatorFunc = _props.validatorFunc, + disabledDate = _props.disabledDate; - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + var input = document.querySelector('.rc-calendar-input'); + if (input) { + if (input.value) { + input.select(); + } else { + input.focus(); + } + input.onkeydown = function (e) { + if (e.keyCode == _tinperBeeCore.KeyCode.DELETE) { + input.value = ''; + _this3.fireChange('', ''); + } else if (e.keyCode == _tinperBeeCore.KeyCode.ESC) { + _this3.setState({ + open: false + }); + var v = _this3.state.value; + _this3.props.onOpenChange(false, v, v && _this3.getValue(v) || ''); + _reactDom2["default"].findDOMNode(_this3.outInput).focus(); // 按esc时候焦点回到input输入框 + } else if (e.keyCode == _tinperBeeCore.KeyCode.ENTER) { + var parsed = (0, _moment2["default"])(input.value, format, true); + var isDisabled = disabledDate && disabledDate(parsed); + if (parsed.isValid() && validatorFunc(input.value) && !isDisabled) { + _this3.setState({ + open: false + }); + var _v = _this3.state.value; + _this3.props.onOpenChange(false, _v, _v && _this3.getValue(_v) || ''); + _reactDom2["default"].findDOMNode(_this3.outInput).focus(); + } + if (!input.value) { + _this3.setState({ + open: false + }); + } + } + _this3.props.onKeyDown && _this3.props.onKeyDown(e); + }; + } + }; - var scrollTo = function scrollTo(element, to, duration) { - // jump to target if duration zero - if (duration <= 0) { - (0, _raf["default"])(function () { - element.scrollTop = to; + this.onOpenChange = function (open) { + var props = _this3.props; + var self = _this3; + _this3.setState({ + open: open + }, function () { + if (open) { + setTimeout(function () { + self.inputFocus(); + }, 0); + } }); - return; - } - - var difference = to - element.scrollTop; - var perTick = difference / duration * 10; - (0, _raf["default"])(function () { - element.scrollTop += perTick; - if (element.scrollTop === to) return; - scrollTo(element, to, duration - 10); - }); - }; - - var Select = - /*#__PURE__*/ - function (_Component) { - _inherits(Select, _Component); - - function Select() { - var _getPrototypeOf2; - - var _this; + var value = self.state.value; + props.onOpenChange(open, value, value && _this3.getValue(value) || ''); + if (open) { + setTimeout(function () { + self.inputFocus(); + }, 200); + } + }; - _classCallCheck(this, Select); + this.handleCalendarChange = function (value) { + var props = _this3.props; + _this3.setState({ value: value, inputValue: value && _this3.getValue(value) || '' }); + _this3.fireChange(value, value && _this3.getValue(value) || ''); + }; - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; + this.handleChange = function (value) { + var props = _this3.props; + _this3.setState({ + value: value && _extends(value, { _type: 'date' }) || value, + inputValue: value && _this3.getValue(value) || '' + }); + if (timerDatePicker) { + clearTimeout(_this3.timerout); + _this3.fireChange(value, value && _this3.getValue(value) || ''); + timerDatePicker = false; + _this3.timerout = window.setTimeout(function () { + timerDatePicker = true; + }, 300); } + }; - _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Select)).call.apply(_getPrototypeOf2, [this].concat(args))); + this.onClick = function (e) { + var props = _this3.props; + if (props.keyboardInput) e.stopPropagation(); + var value = _this3.state.value; + if (props.keyboardInput) { + props.onClick && props.onClick(e.nativeEvent, value || null, _this3.state.inputValue); + } else { + props.onClick && props.onClick(e.nativeEvent, value || null, value && _this3.getValue(value) || ''); + } + }; - _defineProperty(_assertThisInitialized(_this), "state", { - active: false + this.inputChange = function (value, e) { + if (_this3.props.keyboardInput) e.stopPropagation(); + _this3.setState({ + inputValue: value }); + if ((0, _moment2["default"])(value, _this3.props.format).isValid() && _this3.props.validatorFunc(value)) { + _this3.setState({ + value: (0, _moment2["default"])(value, _this3.props.format) + }); + value = (0, _moment2["default"])(value, _this3.props.format); + _this3.fireChange(value, value && _this3.getValue(value) || ''); + } else { + _this3.fireChange(null, value); + } + }; - _defineProperty(_assertThisInitialized(_this), "onSelect", function (value) { - var _this$props = _this.props, - onSelect = _this$props.onSelect, - type = _this$props.type; - onSelect(type, value); - }); + this.outInputFocus = function (e) { + if (_this3.props.hasOwnProperty('open')) e.stopPropagation(); + _this3.props.outInputFocus && _this3.props.outInputFocus(e); + }; - _defineProperty(_assertThisInitialized(_this), "handleMouseEnter", function (e) { - var onMouseEnter = _this.props.onMouseEnter; + this.iconClick = function (e) { + _this3.props.iconClick && _this3.props.iconClick(e); + }; - _this.setState({ - active: true + this.outInputKeydown = function (e) { + if (e.keyCode == _tinperBeeCore.KeyCode.DELETE) { + _this3.setState({ + inputValue: '' + }); + _this3.fireChange('', ''); + } else if (e.keyCode == _tinperBeeCore.KeyCode.ESC) { + _this3.setState({ + open: false }); + var value = _this3.state.inputValue; + if ((0, _moment2["default"])(value, _this3.props.format).isValid() && _this3.props.validatorFunc(value)) { + _this3.setState({ + value: (0, _moment2["default"])(value, _this3.props.format) + }); + value = (0, _moment2["default"])(value, _this3.props.format); + _this3.fireChange(value, value && _this3.getValue(value) || ''); + } else { + _this3.fireChange(null, value); + } + } + _this3.props.outInputKeydown && _this3.props.outInputKeydown(e); + }; - onMouseEnter(e); + this.onMouseLeave = function (e) { + _this3.setState({ + showClose: false }); + }; - _defineProperty(_assertThisInitialized(_this), "handleMouseLeave", function () { - _this.setState({ - active: false - }); + this.onMouseEnter = function (e) { + _this3.setState({ + showClose: true }); + }; - _defineProperty(_assertThisInitialized(_this), "saveList", function (node) { - _this.list = node; + this.clear = function (e) { + e.stopPropagation(); + _this3.setState({ + inputValue: '', + value: '' }); + _this3.fireChange('', ''); + }; - return _this; - } + this.handleSelect = function (value) { + _this3.setState({ + value: value + }); + _this3.props.onSelect && _this3.props.onSelect(value, value && _this3.getValue(value) || ''); + // ReactDOM.findDOMNode(this.outInput).focus() + }; - _createClass(Select, [{ - key: "componentDidMount", - value: function componentDidMount() { - // jump to selected option - this.scrollToSelected(0); + this.onDateInputBlur = function (e) { + var input = document.querySelector('.rc-calendar-input'); + var value = void 0; + if (input) { + value = input.value ? input.value : ''; } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - var selectedIndex = this.props.selectedIndex; // smooth scroll to selected option + _this3.props.onDateInputBlur && _this3.props.onDateInputBlur(e, value); + }; - if (prevProps.selectedIndex !== selectedIndex) { - this.scrollToSelected(120); - } + this.onDateHover = function () { + var format = _this3.props.format; + var value = _this3.state.value, + newValue = value && _this3.getValue(value); + + + var inputValue = _this3.outInput.state.value; + inputValue = format ? inputValue : inputValue && _this3.getValue((0, _moment2["default"])(inputValue)); + + if (newValue && inputValue !== newValue) { + _this3.fireChange(value, newValue || ''); } - }, { - key: "getOptions", - value: function getOptions() { - var _this2 = this; + }; - var _this$props2 = this.props, - options = _this$props2.options, - selectedIndex = _this$props2.selectedIndex, - prefixCls = _this$props2.prefixCls, - onEsc = _this$props2.onEsc; - return options.map(function (item, index) { - var _classNames; + this.fireChange = function (value, stringValue) { + _this3.fileChange && _this3.props.onChange(value, stringValue); + _this3.fileChange = false; + _this3.fileChangeTimer = window.setTimeout(function () { + _this3.fileChange = true; + }, 10); + }; + }; - var cls = (0, _classnames["default"])((_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-select-option-selected"), selectedIndex === index), _defineProperty(_classNames, "".concat(prefixCls, "-select-option-disabled"), item.disabled), _classNames)); - var onClick = item.disabled ? undefined : function () { - _this2.onSelect(item.value); - }; + DatePicker.defaultProps = { + closeIcon: function closeIcon() { + return _react2["default"].createElement(_beeIcon2["default"], { type: "uf-close-c" }); + }, + renderIcon: function renderIcon() { + return _react2["default"].createElement(_beeIcon2["default"], { type: "uf-calendar" }); + }, + focusOnOpen: true, + defultSelect: false, + onOpenChange: function onOpenChange() {}, + onChange: function onChange() {}, + locale: _zh_CN2["default"], + showMonthInput: false, + onKeyDown: function onKeyDown() {}, + renderError: function renderError() {}, + showClose: true, + format: "YYYY-MM-DD", + showSecond: true, + showHour: true, + showMinute: true, + autoTriggerChange: true, + validatorFunc: function validatorFunc() { + return true; + } + }; - var onKeyDown = function onKeyDown(e) { - if (e.keyCode === 13) onClick();else if (e.keyCode === 27) onEsc(); - }; + exports["default"] = DatePicker; + module.exports = exports["default"]; - return _react["default"].createElement("li", { - role: "button", - onClick: onClick, - className: cls, - key: index, - disabled: item.disabled, - tabIndex: "0", - onKeyDown: onKeyDown - }, item.value); - }); - } - }, { - key: "scrollToSelected", - value: function scrollToSelected(duration) { - // move to selected item - var selectedIndex = this.props.selectedIndex; + /***/ }), + /* 1226 */ + /***/ (function(module, exports, __webpack_require__) { - var select = _reactDom["default"].findDOMNode(this); + "use strict"; - var list = _reactDom["default"].findDOMNode(this.list); - if (!list) { - return; - } + Object.defineProperty(exports, "__esModule", { + value: true + }); - var index = selectedIndex; + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - if (index < 0) { - index = 0; - } + var _react = __webpack_require__(0); - var topOption = list.children[index]; - var to = topOption.offsetTop; - scrollTo(select, to, duration); - } - }, { - key: "render", - value: function render() { - var _this$props3 = this.props, - prefixCls = _this$props3.prefixCls, - options = _this$props3.options; - var active = this.state.active; + var _react2 = _interopRequireDefault(_react); - if (options.length === 0) { - return null; - } + var _reactDom = __webpack_require__(3); - var cls = (0, _classnames["default"])("".concat(prefixCls, "-select"), _defineProperty({}, "".concat(prefixCls, "-select-active"), active)); - return _react["default"].createElement("div", { - className: cls, - onMouseEnter: this.handleMouseEnter, - onMouseLeave: this.handleMouseLeave - }, _react["default"].createElement("ul", { - ref: this.saveList - }, this.getOptions())); - } - }]); + var _reactDom2 = _interopRequireDefault(_reactDom); - return Select; - }(_react.Component); + var _propTypes = __webpack_require__(1); - _defineProperty(Select, "propTypes", { - prefixCls: _propTypes["default"].string, - options: _propTypes["default"].array, - selectedIndex: _propTypes["default"].number, - type: _propTypes["default"].string, - onSelect: _propTypes["default"].func, - onMouseEnter: _propTypes["default"].func, - onEsc: _propTypes["default"].func - }); + var _propTypes2 = _interopRequireDefault(_propTypes); - var _default = Select; - exports["default"] = _default; + var _KeyCode = __webpack_require__(59); - /***/ }), - /* 1296 */ - /***/ (function(module, exports, __webpack_require__) { + var _KeyCode2 = _interopRequireDefault(_KeyCode); - "use strict"; + var _reactLifecyclesCompat = __webpack_require__(12); + var _DateTable = __webpack_require__(321); - Object.defineProperty(exports, "__esModule", { - value: true - }); + var _DateTable2 = _interopRequireDefault(_DateTable); - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + var _CalendarHeader = __webpack_require__(180); - var _classnames = __webpack_require__(2); + var _CalendarHeader2 = _interopRequireDefault(_CalendarHeader); - var _classnames2 = _interopRequireDefault(_classnames); + var _CalendarFooter = __webpack_require__(456); - var _react = __webpack_require__(0); + var _CalendarFooter2 = _interopRequireDefault(_CalendarFooter); - var _react2 = _interopRequireDefault(_react); + var _CalendarMixin = __webpack_require__(460); - var _beeInputGroupAddon = __webpack_require__(1297); + var _CommonMixin = __webpack_require__(181); - var _beeInputGroupAddon2 = _interopRequireDefault(_beeInputGroupAddon); + var _DateInput = __webpack_require__(79); - var _InputGroupButton = __webpack_require__(1299); + var _DateInput2 = _interopRequireDefault(_DateInput); - var _InputGroupButton2 = _interopRequireDefault(_InputGroupButton); + var _util = __webpack_require__(33); + + var _toTime = __webpack_require__(462); + + var _moment = __webpack_require__(4); + + var _moment2 = _interopRequireDefault(_moment); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - var defaultProps = { - clsPrefix: 'u-input-group', - simple: false - }; + function noop() {} - var InputGroup = function (_React$Component) { - _inherits(InputGroup, _React$Component); + var Calendar = function (_React$Component) { + _inherits(Calendar, _React$Component); - function InputGroup() { - _classCallCheck(this, InputGroup); + function Calendar(props) { + _classCallCheck(this, Calendar); - return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); - } + var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); - InputGroup.prototype.render = function render() { - var _props = this.props, - className = _props.className, - clsPrefix = _props.clsPrefix, - simple = _props.simple, - others = _objectWithoutProperties(_props, ['className', 'clsPrefix', 'simple']); + _initialiseProps.call(_this); - return _react2["default"].createElement('span', _extends({}, others, { - className: (0, _classnames2["default"])(className, clsPrefix, simple && 'simple') - })); - }; + _this.state = { + mode: _this.props.mode || 'date', + value: props.value || props.defaultValue || (0, _moment2["default"])(), + selectedValue: props.selectedValue || props.defaultSelectedValue + }; + return _this; + } - return InputGroup; - }(_react2["default"].Component); + Calendar.prototype.componentDidMount = function componentDidMount() { + if (this.props.showDateInput) { + this.saveFocusElement(_DateInput2["default"].getInstance()); + } + }; - /** - * 将InputGroupAddon与InputGroupButton组件作为InputGroup的附属组件 - */ + Calendar.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, state) { + var value = nextProps.value, + selectedValue = nextProps.selectedValue; + var newState = {}; - InputGroup.Addon = _beeInputGroupAddon2["default"]; - InputGroup.Button = _InputGroupButton2["default"]; - InputGroup.defaultProps = defaultProps; - exports["default"] = InputGroup; - module.exports = exports['default']; + if ('mode' in nextProps && state.mode !== nextProps.mode) { + newState = { mode: nextProps.mode }; + } + if ('value' in nextProps) { + newState.value = value || nextProps.defaultValue || (0, _CalendarMixin.getNowByCurrentStateValue)(state.value); + } + if ('selectedValue' in nextProps) { + newState.selectedValue = selectedValue; + } - /***/ }), - /* 1297 */ - /***/ (function(module, exports, __webpack_require__) { + return newState; + }; - "use strict"; + Calendar.prototype.render = function render() { + var _this2 = this; + var props = this.props, + state = this.state; + var locale = props.locale, + prefixCls = props.prefixCls, + disabledDate = props.disabledDate, + validatorFunc = props.validatorFunc, + format = props.format, + dateInputPlaceholder = props.dateInputPlaceholder, + timePicker = props.timePicker, + disabledTime = props.disabledTime, + clearIcon = props.clearIcon, + renderFooter = props.renderFooter, + showMonthInput = props.showMonthInput, + renderError = props.renderError, + onInputBlur = props.onInputBlur; + var value = state.value, + selectedValue = state.selectedValue, + mode = state.mode; - Object.defineProperty(exports, "__esModule", { - value: true - }); + var showTimePicker = mode === 'time'; + var disabledTimeConfig = showTimePicker && disabledTime && timePicker ? (0, _util.getTimeConfig)(selectedValue, disabledTime) : null; - var _InputGroupAddon = __webpack_require__(1298); + var timePickerEle = null; - var _InputGroupAddon2 = _interopRequireDefault(_InputGroupAddon); + if (timePicker && showTimePicker) { + var timePickerProps = _extends({ + showHour: true, + showSecond: true, + showMinute: true + }, timePicker.props, disabledTimeConfig, { + onChange: this.onDateInputChange, + value: selectedValue, + disabledTime: disabledTime + }); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + if (timePicker.props.defaultValue !== undefined) { + timePickerProps.defaultOpenValue = timePicker.props.defaultValue; + } - exports["default"] = _InputGroupAddon2["default"]; - module.exports = exports['default']; + timePickerEle = _react2["default"].cloneElement(timePicker, timePickerProps); + } + var dateInputElement = props.showDateInput ? _react2["default"].createElement(_DateInput2["default"], { + format: this.getFormat(), + key: 'date-input', + value: value, + locale: locale, + placeholder: dateInputPlaceholder, + showClear: true, + disabledTime: disabledTime, + disabledDate: disabledDate, + onClear: this.onClear, + prefixCls: prefixCls, + selectedValue: selectedValue, + onChange: this.onDateInputChange, + onSelect: function onSelect(value) { + if ((0, _moment2["default"])(value, format, true) && validatorFunc(value)) { + _this2.onDateInputSelect(value); + } + }, + clearIcon: clearIcon, + renderError: renderError, + onBlur: onInputBlur, + validatorFunc: validatorFunc + }) : null; - /***/ }), - /* 1298 */ - /***/ (function(module, exports, __webpack_require__) { + var children = []; + if (props.renderSidebar) { + children.push(props.renderSidebar()); + } + children.push(_react2["default"].createElement( + 'div', + { className: prefixCls + '-panel', key: 'panel' }, + dateInputElement, + _react2["default"].createElement( + 'div', + { + tabIndex: this.props.focusablePanel ? 0 : undefined, + className: prefixCls + '-date-panel', + onMouseOver: this.onMouseOver + }, + _react2["default"].createElement(_CalendarHeader2["default"], { + locale: locale, + mode: mode, + value: value, + onValueChange: this.setValue, + onPanelChange: this.onPanelChange, + renderFooter: renderFooter, + showTimePicker: showTimePicker, + prefixCls: prefixCls, + showMonthInput: showMonthInput + }), + timePicker && showTimePicker ? _react2["default"].createElement( + 'div', + { className: prefixCls + '-time-picker' }, + _react2["default"].createElement( + 'div', + { className: prefixCls + '-time-picker-panel' }, + timePickerEle + ) + ) : null, + _react2["default"].createElement( + 'div', + { className: prefixCls + '-body' }, + _react2["default"].createElement(_DateTable2["default"], { + locale: locale, + value: value, + selectedValue: selectedValue, + prefixCls: prefixCls, + dateRender: props.dateRender, + onSelect: this.onDateTableSelect, + disabledDate: disabledDate, + showWeekNumber: props.showWeekNumber + }) + ), + _react2["default"].createElement(_CalendarFooter2["default"], { + showOk: props.showOk, + mode: mode, + renderFooter: props.renderFooter, + locale: locale, + prefixCls: prefixCls, + showToday: props.showToday, + disabledTime: disabledTime, + showTimePicker: showTimePicker, + showDateInput: props.showDateInput, + timePicker: timePicker, + selectedValue: selectedValue, + value: value, + disabledDate: disabledDate, + okDisabled: props.showOk !== false && (!selectedValue || !this.isAllowedDate(selectedValue)), + onOk: this.onOk, + onSelect: this.onSelect, + onToday: this.onToday, + onOpenTimePicker: this.openTimePicker, + onCloseTimePicker: this.closeTimePicker + }) + ) + )); - "use strict"; + return this.renderRoot({ + children: children, + className: props.showWeekNumber ? prefixCls + '-week-number' : '' + }); + }; + return Calendar; + }(_react2["default"].Component); - Object.defineProperty(exports, "__esModule", { - value: true + Calendar.propTypes = _extends({}, _CalendarMixin.calendarMixinPropTypes, _CommonMixin.propType, { + prefixCls: _propTypes2["default"].string, + className: _propTypes2["default"].string, + style: _propTypes2["default"].object, + defaultValue: _propTypes2["default"].object, + value: _propTypes2["default"].object, + selectedValue: _propTypes2["default"].object, + defaultSelectedValue: _propTypes2["default"].object, + mode: _propTypes2["default"].oneOf(['time', 'date', 'month', 'year', 'decade']), + locale: _propTypes2["default"].object, + showDateInput: _propTypes2["default"].bool, + showWeekNumber: _propTypes2["default"].bool, + showToday: _propTypes2["default"].bool, + showOk: _propTypes2["default"].bool, + onSelect: _propTypes2["default"].func, + onOk: _propTypes2["default"].func, + onKeyDown: _propTypes2["default"].func, + timePicker: _propTypes2["default"].element, + dateInputPlaceholder: _propTypes2["default"].any, + onClear: _propTypes2["default"].func, + onChange: _propTypes2["default"].func, + onPanelChange: _propTypes2["default"].func, + disabledDate: _propTypes2["default"].func, + disabledTime: _propTypes2["default"].any, + dateRender: _propTypes2["default"].func, + renderFooter: _propTypes2["default"].func, + renderSidebar: _propTypes2["default"].func, + clearIcon: _propTypes2["default"].node, + focusablePanel: _propTypes2["default"].bool + }); + Calendar.defaultProps = _extends({}, _CalendarMixin.calendarMixinDefaultProps, _CommonMixin.defaultProp, { + showToday: true, + showDateInput: true, + timePicker: null, + onOk: noop, + onPanelChange: noop, + focusablePanel: true }); - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + var _initialiseProps = function _initialiseProps() { + var _this3 = this; - var _classnames = __webpack_require__(2); + this.onPanelChange = function (value, mode) { + var props = _this3.props, + state = _this3.state; - var _classnames2 = _interopRequireDefault(_classnames); + if (!('mode' in props)) { + _this3.setState({ mode: mode }); + } + props.onPanelChange(value || state.value, mode); + }; - var _react = __webpack_require__(0); + this.onKeyDown = function (event) { + if (event.target.nodeName.toLowerCase() === 'input') { + return undefined; + } else { + _this3.props.onKeyDown && _this3.props.onKeyDown(event); + } + var keyCode = event.keyCode; + // mac + var ctrlKey = event.ctrlKey || event.metaKey; + var disabledDate = _this3.props.disabledDate; + var value = _this3.state.value; - var _react2 = _interopRequireDefault(_react); + switch (keyCode) { + case _KeyCode2["default"].DOWN: + _this3.goTime(1, 'weeks'); + event.preventDefault(); + return 1; + case _KeyCode2["default"].UP: + _this3.goTime(-1, 'weeks'); + event.preventDefault(); + return 1; + case _KeyCode2["default"].LEFT: + if (ctrlKey) { + _this3.goTime(-1, 'years'); + } else { + _this3.goTime(-1, 'days'); + } + event.preventDefault(); + return 1; + case _KeyCode2["default"].RIGHT: + if (ctrlKey) { + _this3.goTime(1, 'years'); + } else { + _this3.goTime(1, 'days'); + } + event.preventDefault(); + return 1; + case _KeyCode2["default"].HOME: + _this3.setValue((0, _toTime.goStartMonth)(_this3.state.value)); + event.preventDefault(); + return 1; + case _KeyCode2["default"].END: + _this3.setValue((0, _toTime.goEndMonth)(_this3.state.value)); + event.preventDefault(); + return 1; + case _KeyCode2["default"].PAGE_DOWN: + _this3.goTime(1, 'month'); + event.preventDefault(); + return 1; + case _KeyCode2["default"].PAGE_UP: + _this3.goTime(-1, 'month'); + event.preventDefault(); + return 1; + case _KeyCode2["default"].ENTER: + if (!disabledDate || !disabledDate(value)) { + _this3.onSelect(value, { + source: 'keyboard' + }); + } + event.preventDefault(); + return 1; + } + }; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + this.onClear = function () { + _this3.onSelect(null); + _this3.props.onClear(); + }; - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + this.onOk = function () { + var selectedValue = _this3.state.selectedValue; - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + if (_this3.isAllowedDate(selectedValue)) { + _this3.props.onOk(selectedValue); + } + }; - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + this.onDateInputChange = function (value) { + _this3.onSelect(value, { + source: 'dateInput' + }); + }; - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + this.onDateInputSelect = function (value) { + _this3.onSelect(value, { + source: 'dateInputSelect' + }); + }; - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } + this.onDateTableSelect = function (value) { + var timePicker = _this3.props.timePicker; + var selectedValue = _this3.state.selectedValue; - var defaultProps = { - clsPrefix: 'u-input-group-addon' - }; + if (!selectedValue && timePicker) { + var timePickerDefaultValue = timePicker.props.defaultValue; + if (timePickerDefaultValue) { + (0, _util.syncTime)(timePickerDefaultValue, value); + } + } + _this3.onSelect(value); + }; - var InputGroupAddon = function (_React$Component) { - _inherits(InputGroupAddon, _React$Component); + this.onToday = function () { + var value = _this3.state.value; - function InputGroupAddon() { - _classCallCheck(this, InputGroupAddon); + var now = (0, _util.getTodayTime)(value); + _this3.onSelect(now, { + source: 'todayButton' + }); + }; - return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); - } + this.getRootDOMNode = function () { + return _reactDom2["default"].findDOMNode(_this3); + }; - InputGroupAddon.prototype.render = function render() { - var _props = this.props, - className = _props.className, - clsPrefix = _props.clsPrefix, - others = _objectWithoutProperties(_props, ['className', 'clsPrefix']); + this.openTimePicker = function () { + _this3.onPanelChange(null, 'time'); + }; - return _react2["default"].createElement('span', _extends({}, others, { - className: (0, _classnames2["default"])(className, clsPrefix) - })); + this.closeTimePicker = function () { + _this3.onPanelChange(null, 'date'); }; - return InputGroupAddon; - }(_react2["default"].Component); + this.goTime = function (direction, unit) { + _this3.setValue((0, _toTime.goTime)(_this3.state.value, direction, unit)); + }; - InputGroupAddon.defaultProps = defaultProps; - exports["default"] = InputGroupAddon; + this.onMouseOver = function (e) { + e.stopPropagation(); + }; + }; + + (0, _reactLifecyclesCompat.polyfill)(Calendar); + + exports["default"] = (0, _CalendarMixin.calendarMixinWrapper)((0, _CommonMixin.commonMixinWrapper)(Calendar)); module.exports = exports['default']; /***/ }), - /* 1299 */ + /* 1227 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -244818,61 +236719,390 @@ value: true }); - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + var _react = __webpack_require__(0); - var _classnames = __webpack_require__(2); + var _react2 = _interopRequireDefault(_react); - var _classnames2 = _interopRequireDefault(_classnames); + var _DateConstants = __webpack_require__(322); - var _react = __webpack_require__(0); + var _DateConstants2 = _interopRequireDefault(_DateConstants); - var _react2 = _interopRequireDefault(_react); + var _moment = __webpack_require__(4); + + var _moment2 = _interopRequireDefault(_moment); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - var defaultProps = { - clsPrefix: 'u-input-group-btn' - }; - - var InputGroupButton = function (_React$Component) { - _inherits(InputGroupButton, _React$Component); + var DateTHead = function (_React$Component) { + _inherits(DateTHead, _React$Component); - function InputGroupButton() { - _classCallCheck(this, InputGroupButton); + function DateTHead() { + _classCallCheck(this, DateTHead); return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); } - InputGroupButton.prototype.render = function render() { - var _props = this.props, - className = _props.className, - clsPrefix = _props.clsPrefix, - others = _objectWithoutProperties(_props, ['className', 'clsPrefix']); + DateTHead.prototype.render = function render() { + var props = this.props; + var value = props.value; + var localeData = value.localeData(); + var prefixCls = props.prefixCls; + var veryShortWeekdays = []; + var weekDays = []; + var firstDayOfWeek = localeData.firstDayOfWeek(); + var showWeekNumberEl = void 0; + var now = (0, _moment2["default"])(); + for (var dateColIndex = 0; dateColIndex < _DateConstants2["default"].DATE_COL_COUNT; dateColIndex++) { + var index = (firstDayOfWeek + dateColIndex) % _DateConstants2["default"].DATE_COL_COUNT; + now.day(index); + veryShortWeekdays[dateColIndex] = localeData.weekdaysMin(now); + weekDays[dateColIndex] = localeData.weekdaysShort(now); + } - return _react2["default"].createElement('span', _extends({}, others, { - className: (0, _classnames2["default"])(className, clsPrefix) - })); + if (props.showWeekNumber) { + showWeekNumberEl = _react2["default"].createElement( + 'th', + { + role: 'columnheader', + className: prefixCls + '-column-header ' + prefixCls + '-week-number-header' + }, + _react2["default"].createElement( + 'span', + { className: prefixCls + '-column-header-inner' }, + 'x' + ) + ); + } + var weekDaysEls = weekDays.map(function (day, xindex) { + return _react2["default"].createElement( + 'th', + { + key: xindex, + role: 'columnheader', + title: day, + className: prefixCls + '-column-header' + }, + _react2["default"].createElement( + 'span', + { className: prefixCls + '-column-header-inner' }, + veryShortWeekdays[xindex] + ) + ); + }); + return _react2["default"].createElement( + 'thead', + null, + _react2["default"].createElement( + 'tr', + { role: 'row' }, + showWeekNumberEl, + weekDaysEls + ) + ); }; - return InputGroupButton; + return DateTHead; }(_react2["default"].Component); - InputGroupButton.defaultProps = defaultProps; - exports["default"] = InputGroupButton; + exports["default"] = DateTHead; module.exports = exports['default']; /***/ }), - /* 1300 */ + /* 1228 */ + /***/ (function(module, exports, __webpack_require__) { + + var map = { + "./af": 323, + "./af.js": 323, + "./ar": 324, + "./ar-dz": 325, + "./ar-dz.js": 325, + "./ar-kw": 326, + "./ar-kw.js": 326, + "./ar-ly": 327, + "./ar-ly.js": 327, + "./ar-ma": 328, + "./ar-ma.js": 328, + "./ar-sa": 329, + "./ar-sa.js": 329, + "./ar-tn": 330, + "./ar-tn.js": 330, + "./ar.js": 324, + "./az": 331, + "./az.js": 331, + "./be": 332, + "./be.js": 332, + "./bg": 333, + "./bg.js": 333, + "./bm": 334, + "./bm.js": 334, + "./bn": 335, + "./bn.js": 335, + "./bo": 336, + "./bo.js": 336, + "./br": 337, + "./br.js": 337, + "./bs": 338, + "./bs.js": 338, + "./ca": 339, + "./ca.js": 339, + "./cs": 340, + "./cs.js": 340, + "./cv": 341, + "./cv.js": 341, + "./cy": 342, + "./cy.js": 342, + "./da": 343, + "./da.js": 343, + "./de": 344, + "./de-at": 345, + "./de-at.js": 345, + "./de-ch": 346, + "./de-ch.js": 346, + "./de.js": 344, + "./dv": 347, + "./dv.js": 347, + "./el": 348, + "./el.js": 348, + "./en-au": 349, + "./en-au.js": 349, + "./en-ca": 350, + "./en-ca.js": 350, + "./en-gb": 179, + "./en-gb.js": 179, + "./en-ie": 351, + "./en-ie.js": 351, + "./en-il": 352, + "./en-il.js": 352, + "./en-in": 353, + "./en-in.js": 353, + "./en-nz": 354, + "./en-nz.js": 354, + "./en-sg": 355, + "./en-sg.js": 355, + "./eo": 356, + "./eo.js": 356, + "./es": 357, + "./es-do": 358, + "./es-do.js": 358, + "./es-us": 359, + "./es-us.js": 359, + "./es.js": 357, + "./et": 360, + "./et.js": 360, + "./eu": 361, + "./eu.js": 361, + "./fa": 362, + "./fa.js": 362, + "./fi": 363, + "./fi.js": 363, + "./fil": 364, + "./fil.js": 364, + "./fo": 365, + "./fo.js": 365, + "./fr": 366, + "./fr-ca": 367, + "./fr-ca.js": 367, + "./fr-ch": 368, + "./fr-ch.js": 368, + "./fr.js": 366, + "./fy": 369, + "./fy.js": 369, + "./ga": 370, + "./ga.js": 370, + "./gd": 371, + "./gd.js": 371, + "./gl": 372, + "./gl.js": 372, + "./gom-deva": 373, + "./gom-deva.js": 373, + "./gom-latn": 374, + "./gom-latn.js": 374, + "./gu": 375, + "./gu.js": 375, + "./he": 376, + "./he.js": 376, + "./hi": 377, + "./hi.js": 377, + "./hr": 378, + "./hr.js": 378, + "./hu": 379, + "./hu.js": 379, + "./hy-am": 380, + "./hy-am.js": 380, + "./id": 381, + "./id.js": 381, + "./is": 382, + "./is.js": 382, + "./it": 383, + "./it-ch": 384, + "./it-ch.js": 384, + "./it.js": 383, + "./ja": 385, + "./ja.js": 385, + "./jv": 386, + "./jv.js": 386, + "./ka": 387, + "./ka.js": 387, + "./kk": 388, + "./kk.js": 388, + "./km": 389, + "./km.js": 389, + "./kn": 390, + "./kn.js": 390, + "./ko": 391, + "./ko.js": 391, + "./ku": 392, + "./ku.js": 392, + "./ky": 393, + "./ky.js": 393, + "./lb": 394, + "./lb.js": 394, + "./lo": 395, + "./lo.js": 395, + "./lt": 396, + "./lt.js": 396, + "./lv": 397, + "./lv.js": 397, + "./me": 398, + "./me.js": 398, + "./mi": 399, + "./mi.js": 399, + "./mk": 400, + "./mk.js": 400, + "./ml": 401, + "./ml.js": 401, + "./mn": 402, + "./mn.js": 402, + "./mr": 403, + "./mr.js": 403, + "./ms": 404, + "./ms-my": 405, + "./ms-my.js": 405, + "./ms.js": 404, + "./mt": 406, + "./mt.js": 406, + "./my": 407, + "./my.js": 407, + "./nb": 408, + "./nb.js": 408, + "./ne": 409, + "./ne.js": 409, + "./nl": 410, + "./nl-be": 411, + "./nl-be.js": 411, + "./nl.js": 410, + "./nn": 412, + "./nn.js": 412, + "./oc-lnc": 413, + "./oc-lnc.js": 413, + "./pa-in": 414, + "./pa-in.js": 414, + "./pl": 415, + "./pl.js": 415, + "./pt": 416, + "./pt-br": 417, + "./pt-br.js": 417, + "./pt.js": 416, + "./ro": 418, + "./ro.js": 418, + "./ru": 419, + "./ru.js": 419, + "./sd": 420, + "./sd.js": 420, + "./se": 421, + "./se.js": 421, + "./si": 422, + "./si.js": 422, + "./sk": 423, + "./sk.js": 423, + "./sl": 424, + "./sl.js": 424, + "./sq": 425, + "./sq.js": 425, + "./sr": 426, + "./sr-cyrl": 427, + "./sr-cyrl.js": 427, + "./sr.js": 426, + "./ss": 428, + "./ss.js": 428, + "./sv": 429, + "./sv.js": 429, + "./sw": 430, + "./sw.js": 430, + "./ta": 431, + "./ta.js": 431, + "./te": 432, + "./te.js": 432, + "./tet": 433, + "./tet.js": 433, + "./tg": 434, + "./tg.js": 434, + "./th": 435, + "./th.js": 435, + "./tl-ph": 436, + "./tl-ph.js": 436, + "./tlh": 437, + "./tlh.js": 437, + "./tr": 438, + "./tr.js": 438, + "./tzl": 439, + "./tzl.js": 439, + "./tzm": 440, + "./tzm-latn": 441, + "./tzm-latn.js": 441, + "./tzm.js": 440, + "./ug-cn": 442, + "./ug-cn.js": 442, + "./uk": 443, + "./uk.js": 443, + "./ur": 444, + "./ur.js": 444, + "./uz": 445, + "./uz-latn": 446, + "./uz-latn.js": 446, + "./uz.js": 445, + "./vi": 447, + "./vi.js": 447, + "./x-pseudo": 448, + "./x-pseudo.js": 448, + "./yo": 449, + "./yo.js": 449, + "./zh-cn": 110, + "./zh-cn.js": 110, + "./zh-hk": 450, + "./zh-hk.js": 450, + "./zh-mo": 451, + "./zh-mo.js": 451, + "./zh-tw": 452, + "./zh-tw.js": 452 + }; + function webpackContext(req) { + return __webpack_require__(webpackContextResolve(req)); + }; + function webpackContextResolve(req) { + var id = map[req]; + if(!(id + 1)) // check for number or string + throw new Error("Cannot find module '" + req + "'."); + return id; + }; + webpackContext.keys = function webpackContextKeys() { + return Object.keys(map); + }; + webpackContext.resolve = webpackContextResolve; + module.exports = webpackContext; + webpackContext.id = 1228; + + /***/ }), + /* 1229 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -244882,334 +237112,299 @@ value: true }); - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - - var _MonthCalendar = __webpack_require__(1301); - - var _MonthCalendar2 = _interopRequireDefault(_MonthCalendar); - - var _tinperBeeCore = __webpack_require__(79); - var _react = __webpack_require__(0); var _react2 = _interopRequireDefault(_react); - var _reactDom = __webpack_require__(3); - - var _reactDom2 = _interopRequireDefault(_reactDom); - - var _Picker = __webpack_require__(80); - - var _Picker2 = _interopRequireDefault(_Picker); - - var _beeFormControl = __webpack_require__(81); - - var _beeFormControl2 = _interopRequireDefault(_beeFormControl); - - var _beeIcon = __webpack_require__(15); - - var _beeIcon2 = _interopRequireDefault(_beeIcon); - - var _beeInputGroup = __webpack_require__(82); + var _propTypes = __webpack_require__(1); - var _beeInputGroup2 = _interopRequireDefault(_beeInputGroup); + var _propTypes2 = _interopRequireDefault(_propTypes); var _classnames = __webpack_require__(2); var _classnames2 = _interopRequireDefault(_classnames); - var _zh_CN = __webpack_require__(63); - - var _zh_CN2 = _interopRequireDefault(_zh_CN); - - var _omit = __webpack_require__(30); - - var _omit2 = _interopRequireDefault(_omit); - - var _moment = __webpack_require__(4); + var _DateConstants = __webpack_require__(322); - var _moment2 = _interopRequireDefault(_moment); + var _DateConstants2 = _interopRequireDefault(_DateConstants); - var _util = __webpack_require__(32); + var _util = __webpack_require__(33); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** - * Created by chief on 17/4/6. - */ + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - var MonthPicker = function (_Component) { - _inherits(MonthPicker, _Component); + function isSameDay(one, two) { + return one && two && one.isSame(two, 'day'); + } - function MonthPicker(props, context) { - _classCallCheck(this, MonthPicker); + function beforeCurrentMonthYear(current, today) { + if (current.year() < today.year()) { + return 1; + } + return current.year() === today.year() && current.month() < today.month(); + } - var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); + function afterCurrentMonthYear(current, today) { + if (current.year() > today.year()) { + return 1; + } + return current.year() === today.year() && current.month() > today.month(); + } - _initialiseProps.call(_this); + function getIdFromDate(date) { + return 'rc-calendar-' + date.year() + '-' + date.month() + '-' + date.date(); + } - _this.state = { - type: "month", - value: props.value || props.defaultValue, - open: false, - showClose: false - }; - return _this; + var DateTBody = function (_React$Component) { + _inherits(DateTBody, _React$Component); + + function DateTBody() { + _classCallCheck(this, DateTBody); + + return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); } - MonthPicker.prototype.componentDidMount = function componentDidMount() { - var value = this.props.value || this.props.defaultValue; - if (value) { - if (typeof value == 'string') { - if ((0, _moment2["default"])(value).isValid()) { - value = (0, _moment2["default"])(value); - } else { - console.error('value is not in the correct format'); - value = ''; - } - } else if (value.format && value.isValid()) { - value = value; - } else { - console.error('value is not in the correct format'); - value = ''; - } - } - this.setState({ - value: value - }); - }; + DateTBody.prototype.render = function render() { + var props = this.props; + var contentRender = props.contentRender, + prefixCls = props.prefixCls, + selectedValue = props.selectedValue, + value = props.value, + showWeekNumber = props.showWeekNumber, + dateRender = props.dateRender, + disabledDate = props.disabledDate, + hoverValue = props.hoverValue; - MonthPicker.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - if ('value' in nextProps) { - var value = nextProps.value; - if (value) { - if (value.format && value.isValid()) {} else { - value = (0, _moment2["default"])(value); + var iIndex = void 0; + var jIndex = void 0; + var current = void 0; + var dateTable = []; + var today = (0, _util.getTodayTime)(value); + var cellClass = prefixCls + '-cell'; + var weekNumberCellClass = prefixCls + '-week-number-cell'; + var dateClass = prefixCls + '-date'; + var todayClass = prefixCls + '-today'; + var selectedClass = prefixCls + '-selected-day'; + var selectedDateClass = prefixCls + '-selected-date'; // do not move with mouse operation + var selectedStartDateClass = prefixCls + '-selected-start-date'; + var selectedEndDateClass = prefixCls + '-selected-end-date'; + var inRangeClass = prefixCls + '-in-range-cell'; + var lastMonthDayClass = prefixCls + '-last-month-cell'; + var nextMonthDayClass = prefixCls + '-next-month-btn-day'; + var disabledClass = prefixCls + '-disabled-cell'; + var firstDisableClass = prefixCls + '-disabled-cell-first-of-row'; + var lastDisableClass = prefixCls + '-disabled-cell-last-of-row'; + var lastDayOfMonthClass = prefixCls + '-last-day-of-month'; + var month1 = value.clone(); + month1.date(1); + var day = month1.day(); + var lastMonthDiffDay = (day + 7 - value.localeData().firstDayOfWeek()) % 7; + // calculate last month + var lastMonth1 = month1.clone(); + lastMonth1.add(0 - lastMonthDiffDay, 'days'); + var passed = 0; + + for (iIndex = 0; iIndex < _DateConstants2["default"].DATE_ROW_COUNT; iIndex++) { + for (jIndex = 0; jIndex < _DateConstants2["default"].DATE_COL_COUNT; jIndex++) { + current = lastMonth1; + if (passed) { + current = current.clone(); + current.add(passed, 'days'); } - } else { - value = ''; + dateTable.push(current); + passed++; } - this.setState({ - value: value - }); } - }; - //阻止组件内部事件冒泡到组件外部容器 + var tableHtml = []; + passed = 0; + for (iIndex = 0; iIndex < _DateConstants2["default"].DATE_ROW_COUNT; iIndex++) { + var _cx; - MonthPicker.prototype.render = function render() { - var _this2 = this; + var isCurrentWeek = void 0; + var weekNumberCell = void 0; + var isActiveWeek = false; + var dateCells = []; + if (showWeekNumber) { + weekNumberCell = _react2["default"].createElement( + 'td', + { + key: dateTable[passed].week(), + role: 'gridcell', + className: weekNumberCellClass + }, + dateTable[passed].week() + ); + } + for (jIndex = 0; jIndex < _DateConstants2["default"].DATE_COL_COUNT; jIndex++) { + var next = null; + var last = null; + current = dateTable[passed]; + if (jIndex < _DateConstants2["default"].DATE_COL_COUNT - 1) { + next = dateTable[passed + 1]; + } + if (jIndex > 0) { + last = dateTable[passed - 1]; + } + var cls = cellClass; + var disabled = false; + var selected = false; - var state = this.state; - var props = this.props; + if (isSameDay(current, today)) { + cls += ' ' + todayClass; + isCurrentWeek = true; + } - var showClose = props.showClose, - value = props.value, - others = _objectWithoutProperties(props, ["showClose", "value"]); + var isBeforeCurrentMonthYear = beforeCurrentMonthYear(current, value); + var isAfterCurrentMonthYear = afterCurrentMonthYear(current, value); - var monthCalendar = _react2["default"].createElement(_MonthCalendar2["default"], _extends({}, props, { - value: state.value, - onChange: this.handleCalendarChange - })); - var classes = (0, _classnames2["default"])(props.className, "datepicker-container"); - return _react2["default"].createElement( - "div", - _extends({ className: classes, onClick: this.stopPropagation, onMouseOver: this.stopPropagation - }, (0, _omit2["default"])(others, ['closeIcon', 'renderIcon', 'format', 'showDateInput', 'showMonthInput', 'locale', 'placeholder', 'onClear', 'renderFooter', 'renderError', 'disabledDate', 'disabledTime'])), - _react2["default"].createElement( - _Picker2["default"], - _extends({}, props, { - onOpenChange: this.onOpenChange, - animation: 'animation' in props ? props.animation : "slide-up", - calendar: monthCalendar, - open: this.state.open, - value: state.value, - onChange: this.onChange, - dropdownClassName: props.dropdownClassName, - selectedValue: state.value, - renderError: props.renderError - }), - function (_ref) { - var value = _ref.value; + if (selectedValue && Array.isArray(selectedValue)) { + var rangeValue = hoverValue.length ? hoverValue : selectedValue; + if (!isBeforeCurrentMonthYear && !isAfterCurrentMonthYear) { + var startValue = rangeValue[0]; + var endValue = rangeValue[1]; + if (startValue) { + if (isSameDay(current, startValue)) { + selected = true; + isActiveWeek = true; + cls += ' ' + selectedStartDateClass; + } + } + if (startValue && endValue) { + if (isSameDay(current, endValue)) { + selected = true; + isActiveWeek = true; + cls += ' ' + selectedEndDateClass; + } else if (current.isAfter(startValue, 'day') && current.isBefore(endValue, 'day')) { + cls += ' ' + inRangeClass; + } + } + } + } else if (isSameDay(current, value)) { + // keyboard change value, highlight works + selected = true; + isActiveWeek = true; + } - if (value && value.format) value = (0, _util.formatDate)(value, props.format); - return _react2["default"].createElement( - _beeInputGroup2["default"], - { simple: true, className: "datepicker-input-group", - onMouseEnter: _this2.onMouseEnter, - onMouseLeave: _this2.onMouseLeave - }, - _react2["default"].createElement(_beeFormControl2["default"], { - ref: function ref(_ref2) { - return _this2.outInput = _ref2; - }, - placeholder: _this2.props.placeholder, - className: _this2.props.className, - value: value, - disabled: props.disabled - }), - showClose && _this2.state.value && _this2.state.showClose && !props.disabled ? _react2["default"].createElement( - _beeInputGroup2["default"].Button, - { shape: "border", - onClick: _this2.clear }, - props.closeIcon() - ) : _react2["default"].createElement( - _beeInputGroup2["default"].Button, - { shape: "border" }, - props.renderIcon() - ) - ); + if (isSameDay(current, selectedValue)) { + cls += ' ' + selectedDateClass; } - ) - ); - }; - return MonthPicker; - }(_react.Component); + if (isBeforeCurrentMonthYear) { + cls += ' ' + lastMonthDayClass; + } - var _initialiseProps = function _initialiseProps() { - var _this3 = this; + if (isAfterCurrentMonthYear) { + cls += ' ' + nextMonthDayClass; + } - this.handleCalendarChange = function (value) { - _this3.setState({ - value: value && _extends(value, { _type: 'month' }) || value - }); - }; + if (current.clone().endOf('month').date() === current.date()) { + cls += ' ' + lastDayOfMonthClass; + } - this.onChange = function (value) { - var _props = _this3.props, - onChange = _props.onChange, - onClear = _props.onClear, - onSelect = _props.onSelect, - format = _props.format; + if (disabledDate) { + if (disabledDate(current, value)) { + disabled = true; + if (!last || !disabledDate(last, value)) { + cls += ' ' + firstDisableClass; + } - _this3.setState({ - value: value && _extends(value, { _type: 'month' }) || value - }); - onChange && onChange(value, value ? (0, _util.formatDate)(value, format) : ''); - }; + if (!next || !disabledDate(next, value)) { + cls += ' ' + lastDisableClass; + } + } + } - this.inputFocus = function () { - var self = _this3; - var format = self.props.format; + if (selected) { + cls += ' ' + selectedClass; + } - var input = document.querySelector('.rc-calendar-input'); - if (input) { - if (input.value) { - input.select(); - } else { - input.focus(); - } - input.onkeydown = function (e) { - if (e.keyCode == _tinperBeeCore.KeyCode.DELETE) { - input.value = ''; - self.props.onChange && self.props.onChange('', ''); - } else if (e.keyCode == _tinperBeeCore.KeyCode.ESC) { - self.setState({ - open: false - }); - var v = self.state.value; - self.props.onOpenChange && self.props.onOpenChange(false, v, v && (0, _util.formatDate)(v, self.props.format) || ''); - _reactDom2["default"].findDOMNode(self.outInput).focus(); // 按esc时候焦点回到input输入框 - } else if (e.keyCode == _tinperBeeCore.KeyCode.ENTER) { - var parsed = (0, _moment2["default"])(input.value, format, true); - if (parsed.isValid()) { - self.setState({ - open: false - }); - var _v = self.state.value; - self.props.onOpenChange && self.props.onOpenChange(false, _v, _v && (0, _util.formatDate)(_v, format) || ''); - _reactDom2["default"].findDOMNode(self.outInput).focus(); - } + if (disabled) { + cls += ' ' + disabledClass; } - }; - } - }; - this.onOpenChange = function (open) { - var props = _this3.props; - var self = _this3; - _this3.setState({ - open: open - }, function () { - if (open) { - setTimeout(function () { - self.inputFocus(); - }, 0); - } - }); - var value = self.state.value; - props.onOpenChange && props.onOpenChange(open, value, value && (0, _util.formatDate)(value, self.props.format) || ''); - if (open) { - setTimeout(function () { - self.inputFocus(); - }, 200); - } - }; + var dateHtml = void 0; + if (dateRender) { + dateHtml = dateRender(current, value); + } else { + var content = contentRender ? contentRender(current, value) : current.date(); + dateHtml = _react2["default"].createElement( + 'div', + { + key: getIdFromDate(current), + className: dateClass, + 'aria-selected': selected, + 'aria-disabled': disabled + }, + content + ); + } - this.onTypeChange = function (type) { - _this3.setState({ - type: type - }); - }; + dateCells.push(_react2["default"].createElement( + 'td', + { + key: passed, + onClick: disabled ? undefined : props.onSelect.bind(null, current), + onMouseEnter: disabled ? undefined : props.onDayHover && props.onDayHover.bind(null, current) || undefined, + role: 'gridcell', + title: (0, _util.getTitleString)(current), + className: cls + }, + dateHtml + )); - this.onMouseLeave = function (e) { - _this3.setState({ - showClose: false - }); - }; + passed++; + } - this.onMouseEnter = function (e) { - _this3.setState({ - showClose: true - }); + tableHtml.push(_react2["default"].createElement( + 'tr', + { + key: iIndex, + role: 'row', + className: (0, _classnames2["default"])((_cx = {}, _defineProperty(_cx, prefixCls + '-current-week', isCurrentWeek), _defineProperty(_cx, prefixCls + '-active-week', isActiveWeek), _cx)) + }, + weekNumberCell, + dateCells + )); + } + return _react2["default"].createElement( + 'tbody', + { className: prefixCls + '-tbody' }, + tableHtml + ); }; - this.clear = function (e) { - e.stopPropagation(); - _this3.setState({ - value: '' - }); - _this3.props.onChange && _this3.props.onChange('', ''); - }; + return DateTBody; + }(_react2["default"].Component); - this.stopPropagation = function (e) { - e.stopPropagation(); - }; + DateTBody.propTypes = { + contentRender: _propTypes2["default"].func, + dateRender: _propTypes2["default"].func, + disabledDate: _propTypes2["default"].func, + prefixCls: _propTypes2["default"].string, + selectedValue: _propTypes2["default"].oneOfType([_propTypes2["default"].object, _propTypes2["default"].arrayOf(_propTypes2["default"].object)]), + value: _propTypes2["default"].object, + hoverValue: _propTypes2["default"].any, + showWeekNumber: _propTypes2["default"].bool }; - - MonthPicker.defaultProps = { - closeIcon: function closeIcon() { - return _react2["default"].createElement(_beeIcon2["default"], { type: "uf-close-c" }); - }, - renderIcon: function renderIcon() { - return _react2["default"].createElement(_beeIcon2["default"], { type: "uf-calendar" }); - }, - format: 'YYYY-MM', - renderError: function renderError() {}, - showDateInput: true, - showMonthInput: true, - locale: _zh_CN2["default"], - showClose: true, - validatorFunc: function validatorFunc() { - return true; - } + DateTBody.defaultProps = { + hoverValue: [] }; - - exports["default"] = MonthPicker; - module.exports = exports["default"]; + exports["default"] = DateTBody; + module.exports = exports['default']; /***/ }), - /* 1301 */ + /* 1230 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -245219,8 +237414,6 @@ value: true }); - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _react = __webpack_require__(0); var _react2 = _interopRequireDefault(_react); @@ -245229,23 +237422,13 @@ var _propTypes2 = _interopRequireDefault(_propTypes); - var _KeyCode = __webpack_require__(59); - - var _KeyCode2 = _interopRequireDefault(_KeyCode); - - var _CalendarHeader = __webpack_require__(184); - - var _CalendarHeader2 = _interopRequireDefault(_CalendarHeader); - - var _CalendarFooter = __webpack_require__(470); - - var _CalendarFooter2 = _interopRequireDefault(_CalendarFooter); + var _reactLifecyclesCompat = __webpack_require__(12); - var _CalendarMixin = __webpack_require__(474); + var _MonthTable = __webpack_require__(1231); - var _CommonMixin = __webpack_require__(186); + var _MonthTable2 = _interopRequireDefault(_MonthTable); - var _DateInput = __webpack_require__(78); + var _DateInput = __webpack_require__(79); var _DateInput2 = _interopRequireDefault(_DateInput); @@ -245263,1587 +237446,1223 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - var MonthCalendar = function (_React$Component) { - _inherits(MonthCalendar, _React$Component); + function goYear(direction) { + var next = this.state.value.clone(); + next.add(direction, 'year'); + this.setAndChangeValue(next); + } - function MonthCalendar(props) { - _classCallCheck(this, MonthCalendar); + function noop() {} - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); + var MonthPanel = function (_React$Component) { + _inherits(MonthPanel, _React$Component); - _this.onKeyDown = function (event) { - if (event.target.nodeName.toLowerCase() === 'input') { - return undefined; - } else { - _this.props.onKeyDown && _this.props.onKeyDown(event); - } - var keyCode = event.keyCode; - var ctrlKey = event.ctrlKey || event.metaKey; - var stateValue = _this.state.value; - var disabledDate = _this.props.disabledDate; + function MonthPanel(props) { + _classCallCheck(this, MonthPanel); - var value = stateValue; - switch (keyCode) { - case _KeyCode2["default"].DOWN: - value = stateValue.clone(); - value.add(3, 'months'); - break; - case _KeyCode2["default"].UP: - value = stateValue.clone(); - value.add(-3, 'months'); - break; - case _KeyCode2["default"].LEFT: - value = stateValue.clone(); - if (ctrlKey) { - value.add(-1, 'years'); - } else { - value.add(-1, 'months'); - } - break; - case _KeyCode2["default"].RIGHT: - value = stateValue.clone(); - if (ctrlKey) { - value.add(1, 'years'); - } else { - value.add(1, 'months'); - } - break; - case _KeyCode2["default"].ENTER: - if (!disabledDate || !disabledDate(stateValue)) { - _this.onSelect(stateValue); - } - event.preventDefault(); - return 1; - default: - return undefined; - } - if (value !== stateValue) { - _this.setValue(value); - event.preventDefault(); - return 1; - } - }; + var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); - _this.handlePanelChange = function (_, mode) { - if (mode !== 'date') { - _this.setState({ mode: mode }); - } + _this.setAndChangeValue = function (value) { + _this.setValue(value); + _this.props.onChange(value); }; - _this.onInputChange = function (value) { - var _this$props = _this.props, - onChange = _this$props.onChange, - format = _this$props.format; - - _this.setState({ - value: value ? value : (0, _moment2["default"])() - }); + _this.setAndSelectValue = function (value) { _this.setValue(value); - onChange && onChange(value); + _this.props.onSelect(value); }; - _this.onClear = function () { - var _this$props2 = _this.props, - onChange = _this$props2.onChange, - format = _this$props2.format, - onClear = _this$props2.onClear; - - _this.setState({ - value: (0, _moment2["default"])() - }); - _this.setValue((0, _moment2["default"])()); - onChange && onChange('', ''); - onClear && onClear('', ''); + _this.setValue = function (value) { + if (!('value' in _this.props)) { + _this.setState({ + value: value + }); + } }; + _this.nextYear = goYear.bind(_this, 1); + _this.previousYear = goYear.bind(_this, -1); + _this.prefixCls = props.rootPrefixCls + '-month-panel'; + _this.state = { - mode: 'month', - value: props.value || props.defaultValue || (0, _moment2["default"])(), - selectedValue: props.selectedValue || props.defaultSelectedValue + value: props.value || props.defaultValue }; return _this; } - MonthCalendar.prototype.render = function render() { - var props = this.props, - state = this.state; - var mode = state.mode, - value = state.value; + MonthPanel.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps) { + var newState = {}; - value = value ? value : (0, _moment2["default"])(); - var prefixCls = props.prefixCls, - locale = props.locale, - format = props.format, - showDateInput = props.showDateInput, - onChange = props.onChange, - onSelect = props.onSelect, - onClear = props.onClear, - showMonthInput = props.showMonthInput, - renderError = props.renderError, - validatorFunc = props.validatorFunc; + if ('value' in nextProps) { + newState = { + value: nextProps.value + }; + } - var children = _react2["default"].createElement( + return newState; + }; + + MonthPanel.prototype.render = function render() { + var props = this.props; + var value = this.state.value; + var locale = props.locale, + cellRender = props.cellRender, + contentRender = props.contentRender, + renderFooter = props.renderFooter, + rootPrefixCls = props.rootPrefixCls; + + var year = value.year(); + var prefixCls = this.prefixCls; + + var footer = renderFooter && renderFooter('month'); + + return _react2["default"].createElement( 'div', - { className: props.prefixCls + '-month-calendar-content' }, + { className: prefixCls, style: props.style, tabIndex: '0' }, _react2["default"].createElement( 'div', - { className: props.prefixCls + '-month-header-wrap' }, - showDateInput && showMonthInput ? _react2["default"].createElement(_DateInput2["default"], { - value: value, - prefixCls: prefixCls, - showClear: true, - locale: locale, - format: format, - onChange: this.onInputChange, - selectedValue: value, - onClear: this.onClear, - renderError: renderError, - validatorFunc: validatorFunc - }) : '', - _react2["default"].createElement(_CalendarHeader2["default"], { - prefixCls: props.prefixCls, - mode: mode, - value: value, - locale: props.locale, - disabledMonth: props.disabledDate, - monthCellRender: props.monthCellRender, - monthCellContentRender: props.monthCellContentRender, - onMonthSelect: this.onSelect, - onValueChange: this.setValue, - onPanelChange: this.handlePanelChange, - onChange: onChange, - onClear: onClear - }) - ), - _react2["default"].createElement(_CalendarFooter2["default"], { - prefixCls: props.prefixCls, - renderFooter: props.renderFooter - }) + null, + _react2["default"].createElement( + 'div', + { className: prefixCls + '-header' }, + _react2["default"].createElement('a', { + className: prefixCls + '-prev-year-btn', + role: 'button', + onClick: this.previousYear, + title: locale.previousYear + }), + _react2["default"].createElement( + 'a', + { + className: prefixCls + '-year-select', + role: 'button', + onClick: props.onYearPanelShow, + title: locale.yearSelect + }, + _react2["default"].createElement( + 'span', + { className: prefixCls + '-year-select-content' }, + year + ), + _react2["default"].createElement( + 'span', + { className: prefixCls + '-year-select-arrow' }, + 'x' + ) + ), + _react2["default"].createElement('a', { + className: prefixCls + '-next-year-btn', + role: 'button', + onClick: this.nextYear, + title: locale.nextYear + }) + ), + _react2["default"].createElement( + 'div', + { className: prefixCls + '-body' }, + _react2["default"].createElement(_MonthTable2["default"], { + disabledDate: props.disabledDate, + onSelect: this.setAndSelectValue, + locale: locale, + value: value, + cellRender: cellRender, + contentRender: contentRender, + prefixCls: prefixCls + }) + ), + footer && _react2["default"].createElement( + 'div', + { className: prefixCls + '-footer' }, + footer + ) + ) ); - return this.renderRoot({ - className: props.prefixCls + '-month-calendar', - children: children - }); }; - return MonthCalendar; + return MonthPanel; }(_react2["default"].Component); - MonthCalendar.propTypes = _extends({}, _CalendarMixin.calendarMixinPropTypes, _CommonMixin.propType, { - monthCellRender: _propTypes2["default"].func, - dateCellRender: _propTypes2["default"].func, + MonthPanel.propTypes = { + onChange: _propTypes2["default"].func, + disabledDate: _propTypes2["default"].func, + onSelect: _propTypes2["default"].func, + renderFooter: _propTypes2["default"].func, + rootPrefixCls: _propTypes2["default"].string, value: _propTypes2["default"].object, - defaultValue: _propTypes2["default"].object, - selectedValue: _propTypes2["default"].object, - defaultSelectedValue: _propTypes2["default"].object, - disabledDate: _propTypes2["default"].func - }); - MonthCalendar.defaultProps = _extends({ - showDateInput: false - }, _CommonMixin.defaultProp, _CalendarMixin.calendarMixinDefaultProps); - exports["default"] = (0, _CalendarMixin.calendarMixinWrapper)((0, _CommonMixin.commonMixinWrapper)(MonthCalendar)); + defaultValue: _propTypes2["default"].object + }; + MonthPanel.defaultProps = { + onChange: noop, + onSelect: noop + }; + + + (0, _reactLifecyclesCompat.polyfill)(MonthPanel); + + exports["default"] = MonthPanel; module.exports = exports['default']; /***/ }), - /* 1302 */ + /* 1231 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { - value: true + value: true }); - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _react = __webpack_require__(0); var _react2 = _interopRequireDefault(_react); - var _RangeCalendar = __webpack_require__(1303); + var _propTypes = __webpack_require__(1); - var _RangeCalendar2 = _interopRequireDefault(_RangeCalendar); + var _propTypes2 = _interopRequireDefault(_propTypes); - var _Panel = __webpack_require__(477); + var _classnames = __webpack_require__(2); - var _Panel2 = _interopRequireDefault(_Panel); + var _classnames2 = _interopRequireDefault(_classnames); - var _beeFormControl = __webpack_require__(81); + var _index = __webpack_require__(33); - var _beeFormControl2 = _interopRequireDefault(_beeFormControl); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - var _Picker = __webpack_require__(80); + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - var _Picker2 = _interopRequireDefault(_Picker); + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - var _beeInputGroup = __webpack_require__(82); + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - var _beeInputGroup2 = _interopRequireDefault(_beeInputGroup); + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - var _beeIcon = __webpack_require__(15); + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - var _beeIcon2 = _interopRequireDefault(_beeIcon); + var ROW = 4; + var COL = 3; - var _classnames = __webpack_require__(2); + function chooseMonth(month) { + var next = this.state.value.clone(); + next.month(month); + this.setAndSelectValue(next); + } - var _classnames2 = _interopRequireDefault(_classnames); + function noop() {} - var _tinperBeeCore = __webpack_require__(79); + var MonthTable = function (_Component) { + _inherits(MonthTable, _Component); - var _util = __webpack_require__(32); + function MonthTable(props) { + _classCallCheck(this, MonthTable); - var _zh_CN = __webpack_require__(63); + var _this = _possibleConstructorReturn(this, _Component.call(this, props)); - var _zh_CN2 = _interopRequireDefault(_zh_CN); + _this.state = { + value: props.value + }; + return _this; + } - var _omit = __webpack_require__(30); + MonthTable.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { + if ('value' in nextProps) { + this.setState({ + value: nextProps.value + }); + } + }; - var _omit2 = _interopRequireDefault(_omit); + MonthTable.prototype.setAndSelectValue = function setAndSelectValue(value) { + this.setState({ + value: value + }); + this.props.onSelect(value); + }; - var _moment = __webpack_require__(4); + MonthTable.prototype.months = function months() { + var value = this.state.value; + var current = value.clone(); + var months = []; + var index = 0; + for (var rowIndex = 0; rowIndex < ROW; rowIndex++) { + months[rowIndex] = []; + for (var colIndex = 0; colIndex < COL; colIndex++) { + current.month(index); + var content = (0, _index.getMonthName)(current); + months[rowIndex][colIndex] = { + value: index, + content: content, + title: content + }; + index++; + } + } + return months; + }; - var _moment2 = _interopRequireDefault(_moment); + MonthTable.prototype.render = function render() { + var _this2 = this; - __webpack_require__(110); + var props = this.props; + var value = this.state.value; + var today = (0, _index.getTodayTime)(value); + var months = this.months(); + var currentMonth = value.month(); + var prefixCls = props.prefixCls, + locale = props.locale, + contentRender = props.contentRender, + cellRender = props.cellRender; + + var monthsEls = months.map(function (month, index) { + var tds = month.map(function (monthData) { + var _classNameMap; + + var disabled = false; + if (props.disabledDate) { + var testValue = value.clone(); + testValue.month(monthData.value); + disabled = props.disabledDate(testValue); + } + var classNameMap = (_classNameMap = {}, _defineProperty(_classNameMap, prefixCls + '-cell', 1), _defineProperty(_classNameMap, prefixCls + '-cell-disabled', disabled), _defineProperty(_classNameMap, prefixCls + '-selected-cell', monthData.value === currentMonth), _defineProperty(_classNameMap, prefixCls + '-current-cell', today.year() === value.year() && monthData.value === today.month()), _classNameMap); + var cellEl = void 0; + if (cellRender) { + var currentValue = value.clone(); + currentValue.month(monthData.value); + cellEl = cellRender(currentValue, locale); + } else { + var content = void 0; + if (contentRender) { + var _currentValue = value.clone(); + _currentValue.month(monthData.value); + content = contentRender(_currentValue, locale); + } else { + content = monthData.content; + } + cellEl = _react2["default"].createElement( + 'a', + { className: prefixCls + '-month' }, + content + ); + } + return _react2["default"].createElement( + 'td', + { + role: 'gridcell', + key: monthData.value, + onClick: disabled ? null : chooseMonth.bind(_this2, monthData.value), + title: monthData.title, + className: (0, _classnames2["default"])(classNameMap) + }, + cellEl + ); + }); + return _react2["default"].createElement( + 'tr', + { key: index, role: 'row' }, + tds + ); + }); + + return _react2["default"].createElement( + 'table', + { className: prefixCls + '-table', cellSpacing: '0', role: 'grid' }, + _react2["default"].createElement( + 'tbody', + { className: prefixCls + '-tbody' }, + monthsEls + ) + ); + }; + + return MonthTable; + }(_react.Component); + + MonthTable.defaultProps = { + onSelect: noop + }; + MonthTable.propTypes = { + onSelect: _propTypes2["default"].func, + cellRender: _propTypes2["default"].func, + prefixCls: _propTypes2["default"].string, + value: _propTypes2["default"].object + }; + exports["default"] = MonthTable; + module.exports = exports['default']; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + /***/ }), + /* 1232 */ + /***/ (function(module, exports, __webpack_require__) { - function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } + "use strict"; - function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure undefined"); } - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + Object.defineProperty(exports, "__esModule", { + value: true + }); - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + var _Button = __webpack_require__(1233); - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + var _Button2 = _interopRequireDefault(_Button); - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /** - * Created by chief on 17/4/6. - */ + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + exports["default"] = _Button2["default"]; + module.exports = exports['default']; - // function formatDate(value,format) { - // if (!value) { - // return ''; - // } + /***/ }), + /* 1233 */ + /***/ (function(module, exports, __webpack_require__) { - // if (Array.isArray(format)) { - // format = format[0]; - // } + "use strict"; - // return value.formatDate(format); - // } - var fullFormat = "YYYY-MM-DD"; + Object.defineProperty(exports, "__esModule", { + value: true + }); - var cn = typeof window !== 'undefined' ? location.search.indexOf("cn") !== -1 : true; + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var now = (0, _moment2["default"])(); + var _react = __webpack_require__(0); - function isValidRange(v) { - return v && v[0] && v[1]; - } + var _react2 = _interopRequireDefault(_react); - if (cn) { - now.locale("zh-cn").utcOffset(8); - } else { - now.locale("en-gb").utcOffset(0); - } + var _reactDom = __webpack_require__(3); - var RangePicker = function (_Component) { - _inherits(RangePicker, _Component); + var _reactDom2 = _interopRequireDefault(_reactDom); - function RangePicker(props, context) { - _classCallCheck(this, RangePicker); + var _propTypes = __webpack_require__(1); - var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); + var _propTypes2 = _interopRequireDefault(_propTypes); - _initialiseProps.call(_this); + var _classnames = __webpack_require__(2); - _this.state = { - hoverValue: [], - value: _this.initValue(props), - open: props.open || false - }; - return _this; - } + var _classnames2 = _interopRequireDefault(_classnames); - RangePicker.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - if ("value" in nextProps) { - this.setState({ - value: this.initValue(nextProps) - }); - } - if ("open" in nextProps) { - this.setState({ - open: nextProps.open - }); - } - this.setState({ - renderIcon: nextProps.renderIcon - }); - }; - //判断value是否为空 + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - //日期面板中输入框的失焦事件 + function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - //阻止组件内部事件冒泡到组件外部容器 + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - RangePicker.prototype.render = function render() { - var _this2 = this; + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - var props = this.props; + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } - var showClose = props.showClose, - onChange = props.onChange, - showHour = props.showHour, - showMinute = props.showMinute, - showSecond = props.showSecond, - others = _objectWithoutProperties(props, ["showClose", "onChange", "showHour", "showMinute", "showSecond"]); + var propTypes = { + /** + * @title 尺寸 + */ + size: _propTypes2["default"].oneOf(['sm', 'md', 'xg', 'lg']), + /** + * @title 样式 + */ + style: _propTypes2["default"].object, + /** + * @title 形状 + */ + shape: _propTypes2["default"].oneOf(['block', 'round', 'border', 'squared', 'floating', 'pillRight', 'pillLeft', 'icon']), - var _state = this.state, - value = _state.value, - open = _state.open; + bordered: _propTypes2["default"].bool, + /** + * @title 类型 + */ + colors: _propTypes2["default"].oneOf(['primary', 'secondary', 'accent', 'success', 'info', 'warning', 'danger', 'dark', 'light', 'default']), + /** + * @title 是否禁用 + * @veIgnore + */ + disabled: _propTypes2["default"].bool, + /** + * @title 类名 + * @veIgnore + */ + className: _propTypes2["default"].string, - var formatStr = props.format || 'YYYY-MM-DD'; - var timePickerElement = _react2["default"].createElement(_Panel2["default"], { - showHour: showHour, showMinute: showMinute, showSecond: showSecond, - defaultValue: (0, _moment2["default"])((0, _moment2["default"])().format("HH:mm:ss"), "HH:mm:ss") }); - var calendar = _react2["default"].createElement(_RangeCalendar2["default"], { - hoverValue: this.state.hoverValue, - onHoverChange: this.onHoverChange, - showWeekNumber: false, - format: formatStr, - dateInputPlaceholder: props.dateInputPlaceholder || ['start', 'end'], - locale: props.locale || _zh_CN2["default"], - onChange: this.handleCalendarChange, - disabledDate: props.disabledDate, - showClear: props.showClear, - showOk: props.showOk, - showToday: props.showToday, - renderFooter: props.renderFooter, - timePicker: props.showTime ? timePickerElement : null, - renderError: props.renderError, - onStartInputBlur: this.onStartInputBlur, - onEndInputBlur: this.onEndInputBlur, - onClear: this.clear, - onOk: this.onOk, - validatorFunc: props.validatorFunc - }); - return _react2["default"].createElement( - "div", - _extends({ onClick: this.stopPropagation, onMouseOver: this.stopPropagation - }, (0, _omit2["default"])(others, ['closeIcon', 'renderIcon', 'showClear', 'showToday', 'locale', 'placeholder', 'showOk', 'dateInputPlaceholder', 'onPanelChange', 'onStartInputBlur', 'onEndInputBlur', 'renderFooter', 'showTime', 'disabledDate', 'disabledTime'])), - _react2["default"].createElement( - _Picker2["default"], - _extends({}, props, { - value: value, - animation: 'animation' in props ? props.animation : "slide-up", - calendar: calendar, - disabled: props.disabled, - dropdownClassName: props.dropdownClassName, - onOpenChange: this.onOpenChange, - open: open, - onChange: this.onChange - }), - function (_ref) { - _objectDestructuringEmpty(_ref); + /** + * @title
    对象\n * @memberof TableHeader\n */\n getThDome(element){\n let _tagName = element.tagName.toLowerCase();\n if(element.getAttribute('data-filter-type') === 'filterContext')return null;\n if(_tagName === 'i')return null;\n if(_tagName != 'th'){\n return this.getThDome(element.parentElement);\n }else{\n return element;\n }\n }\n\n\n//---拖拽列交换----end-----\n\n /**\n * 过滤输入后或下拉条件的回调函数\n */\n handlerFilterChange = (key, value, condition) => {\n let { onFilterChange } = this.props;\n if (onFilterChange) {\n onFilterChange(key, value, condition);\n }\n };\n\n /**\n * 过滤行清除回调\n */\n handlerFilterClear = (field) => {\n let { onFilterClear } = this.props;\n if (onFilterClear) {\n onFilterClear(field);\n }\n }\n\n /**\n * 过滤渲染的组件类型\n */\n filterRenderType = (type, dataIndex, index) => {\n const { clsPrefix, rows, filterDelay, locale } = this.props;\n switch (type) {\n //文本输入\n case \"text\":\n return (\n \n );\n //数值输入\n case \"number\":\n return (\n \n );\n //下拉框选择\n case \"dropdown\":\n let selectDataSource = [];\n //处理没有输入数据源的时候,系统自动查找自带的数据筛选后注入\n if (rows.length > 0 && (rows[1][index][\"filterdropdownauto\"] || \"auto\") == \"auto\") {\n let hash = {};\n //处理下拉重复对象组装dropdown\n selectDataSource = Array.from(rows[1][0].datasource, x => ({\n key: x[dataIndex],\n value: x[dataIndex]\n }));\n selectDataSource = selectDataSource.reduceRight((item, next) => {\n hash[next.key] ? \"\" : (hash[next.key] = true && item.push(next));\n return item;\n }, []);\n } else {\n //从外部数据源加载系统数据\n selectDataSource = rows[1][index][\"filterdropdowndata\"];\n }\n return (\n \n );\n //日期\n case \"date\":\n return (\n { }}\n format={rows[1][index][\"format\"] || \"YYYY-MM-DD\"}\n dataIndex={dataIndex}//字段\n onFilterChange={this.handlerFilterChange}//输入框回调\n onFilterClear={this.handlerFilterClear}//清除回调\n filterDropdown={rows[1][index][\"filterdropdown\"]}\n filterDropdownType={rows[1][index][\"filterdropdowntype\"]}//下拉的条件类型为string,number\n filterDropdownIncludeKeys={rows[1][index][\"filterdropdownincludekeys\"]}//下拉条件按照指定的keys去显示\n />\n );\n //日期 年\n case \"dateyear\":\n return (\n { }}\n format={rows[1][index][\"format\"] || \"YYYY\"}\n dataIndex={dataIndex}//字段\n onFilterChange={this.handlerFilterChange}//输入框回调\n onFilterClear={this.handlerFilterClear}//清除回调\n filterDropdown={rows[1][index][\"filterdropdown\"]}\n filterDropdownType={rows[1][index][\"filterdropdowntype\"]}//下拉的条件类型为string,number\n filterDropdownIncludeKeys={rows[1][index][\"filterdropdownincludekeys\"]}//下拉条件按照指定的keys去显示\n />\n );\n //日期 月\n case \"datemonth\":\n return (\n { }}\n format={rows[1][index][\"format\"] || \"YYYY-MM\"}\n dataIndex={dataIndex}//字段\n onFilterChange={this.handlerFilterChange}//输入框回调\n onFilterClear={this.handlerFilterClear}//清除回调\n filterDropdown={rows[1][index][\"filterdropdown\"]}\n filterDropdownType={rows[1][index][\"filterdropdowntype\"]}//下拉的条件类型为string,number\n filterDropdownIncludeKeys={rows[1][index][\"filterdropdownincludekeys\"]}//下拉条件按照指定的keys去显示\n />\n );\n //日期 周\n case \"dateweek\":\n return (\n { }}\n format={rows[1][index][\"format\"] || \"YYYY-Wo\"}\n dataIndex={dataIndex}//字段\n onFilterChange={this.handlerFilterChange}//输入框回调\n onFilterClear={this.handlerFilterClear}//清除回调\n filterDropdown={rows[1][index][\"filterdropdown\"]}\n filterDropdownType={rows[1][index][\"filterdropdowntype\"]}//下拉的条件类型为string,number\n filterDropdownIncludeKeys={rows[1][index][\"filterdropdownincludekeys\"]}//下拉条件按照指定的keys去显示\n />\n );\n //日期范围\n case \"daterange\":\n return (\n { }}\n format={rows[1][index][\"format\"] || \"YYYY-MM-DD\"}\n dataIndex={dataIndex}//字段\n onFilterChange={this.handlerFilterChange}//输入框回调\n onFilterClear={this.handlerFilterClear}//清除回调\n filterDropdown={rows[1][index][\"filterdropdown\"]}\n filterDropdownType={rows[1][index][\"filterdropdowntype\"]}//下拉的条件类型为string,number\n filterDropdownIncludeKeys={rows[1][index][\"filterdropdownincludekeys\"]}//下拉条件按照指定的keys去显示\n />\n );\n default:\n //不匹配类型默认文本输入\n return
    ;\n }\n };\n\n\n render() {\n const { clsPrefix, rowStyle,draggable,\n dragborder, rows,filterable,fixed,lastShowIndex,columnsChildrenList\n } = this.props;\n let attr = dragborder ? { id: `u-table-drag-thead-${this.theadKey}` } : {};\n let lastObj = columnsChildrenList[columnsChildrenList.length-1];\n return (\n
    \n {da.children}\n {\n // && columIndex != _rowLeng\n dragborder && lastObj && da.key != lastObj.key ?
    (this.gap = el)} data-line-key={da.key}\n data-line-index={columIndex} data-th-width={da.width}\n data-type=\"online\" className = {`${clsPrefix}-thead-th-drag-gap`}>\n
    :\"\"\n }\n
    )\n }\n })}\n
    \r\n )\r\n }\r\n}\r\n\r\nexport default Demo02;\n\n\n// WEBPACK FOOTER //\n// ./demo/demolist/Demo0102.js","/**\r\n*\r\n* @title 固定表头\r\n* @parent 基础 Basic\r\n* @description 设置`scroll.y`指定滚动区域的高度,达到固定表头效果。\r\n* demo0103\r\n*/\r\n\r\nimport React, { Component } from 'react';\r\nimport Table from '../../src';\r\n\r\nconst columns03 = [\r\n {\r\n title: \"序号\",\r\n dataIndex: \"index\",\r\n key: \"index\",\r\n width: 80, \r\n render(text, record, index) {\r\n return index + 1;\r\n }\r\n },\r\n {\r\n title: \"订单编号\",\r\n dataIndex: \"orderCode\",\r\n key: \"orderCode\",\r\n width: 200, \r\n },\r\n {\r\n title: \"供应商名称\",\r\n dataIndex: \"supplierName\",\r\n key: \"supplierName\",\r\n width: 200\r\n },\r\n {\r\n title: \"类型\",\r\n dataIndex: \"type_name\",\r\n key: \"type_name\",\r\n width: 200\r\n },\r\n {\r\n title: \"采购组织\",\r\n dataIndex: \"purchasing\",\r\n key: \"purchasing\",\r\n width: 200\r\n },\r\n {\r\n title: \"采购组\",\r\n dataIndex: \"purchasingGroup\",\r\n key: \"purchasingGroup\",\r\n width: 200\r\n },\r\n {\r\n title: \"凭证日期\",\r\n dataIndex: \"voucherDate\",\r\n key: \"voucherDate\",\r\n width: 200,\r\n }\r\n];\r\n\r\nconst data03 = [\r\n { \r\n orderCode:\"NU0391025\", \r\n supplierName: \"xx供应商\",\r\n type_name: \"1\",\r\n purchasing:'组织c', \r\n purchasingGroup:\"aa\",\r\n voucherDate:\"2018年03月18日\",\r\n key: \"1\"\r\n }, \r\n { \r\n orderCode:\"NU0391026\", \r\n supplierName: \"xx供应商\",\r\n type_name: \"2\",\r\n purchasing:'组织a', \r\n purchasingGroup:\"bb\",\r\n voucherDate:\"2018年02月05日\",\r\n key: \"2\"\r\n },\r\n { \r\n orderCode:\"NU0391027\", \r\n supplierName: \"xx供应商\",\r\n type_name: \"3\",\r\n purchasing:'组织b', \r\n purchasingGroup:\"aa\",\r\n voucherDate:\"2018年07月01日\",\r\n key: \"3\"\r\n },\r\n { \r\n orderCode:\"NU0391028\", \r\n supplierName: \"xx供应商\",\r\n type_name: \"4\",\r\n purchasing:'组织c', \r\n purchasingGroup:\"cc\",\r\n voucherDate:\"2019年03月01日\",\r\n key: \"4\"\r\n },\r\n { \r\n orderCode:\"NU0391029\", \r\n supplierName: \"xx供应商\",\r\n type_name: \"5\",\r\n purchasing:'组织d', \r\n purchasingGroup:\"ss\",\r\n voucherDate:\"2019年02月14日\",\r\n key: \"5\"\r\n },\r\n { \r\n orderCode:\"NU0391030\", \r\n supplierName: \"xx供应商\",\r\n type_name: \"1\",\r\n purchasing:'组织e', \r\n purchasingGroup:\"zz\",\r\n voucherDate:\"2019年02月18日\",\r\n key: \"6\"\r\n },\r\n { \r\n orderCode:\"NU0391031\", \r\n supplierName: \"xx供应商\",\r\n type_name: \"2\",\r\n purchasing:'组织f', \r\n purchasingGroup:\"qq\",\r\n voucherDate:\"2019年01月01日\",\r\n key: \"7\"\r\n },\r\n { \r\n orderCode:\"NU0391032\", \r\n supplierName: \"xx供应商\",\r\n type_name: \"3\",\r\n purchasing:'组织g', \r\n purchasingGroup:\"pp\",\r\n voucherDate:\"2019年01月31日\",\r\n key: \"8\"\r\n },\r\n];\r\n\r\nclass Demo03 extends Component {\r\n render() {\r\n return
    ;\r\n }\r\n}\r\n\r\nexport default Demo03; \n\n\n// WEBPACK FOOTER //\n// ./demo/demolist/Demo0103.js","/**\n*\n* @title 隔行换色\n* @parent 基础 Basic\n* @description 可自定义斑马线颜色\n* demo0104\n*/\n\n\nimport React, { Component } from 'react';\nimport Table from '../../src';\n\nconst columns04 = [\n {title: \"序号\",dataIndex: \"index\",key: \"index\",width: 80, \n render(text, record, index) {\n return index + 1;\n }\n },\n {title: \"订单编号\",dataIndex: \"orderCode\",key: \"orderCode\",width: 200},\n {title: \"供应商名称\",dataIndex: \"supplierName\",key: \"supplierName\",width: 200},\n {title: \"类型\",dataIndex: \"type_name\",key: \"type_name\",width: 200},\n {title: \"采购组织\",dataIndex: \"purchasing\",key: \"purchasing\",width: 200},\n {title: \"采购组\",dataIndex: \"purchasingGroup\",key: \"purchasingGroup\",width: 200},\n {title: \"凭证日期\",dataIndex: \"voucherDate\",key: \"voucherDate\",width: 200}\n];\n\nconst data04 = [\n { \n orderCode:\"NU0391025\", \n supplierName: \"xx供应商\",\n type_name: \"1\",\n purchasing:'组织c', \n purchasingGroup:\"aa\",\n voucherDate:\"2018年03月18日\",\n key: \"1\"\n }, \n { \n orderCode:\"NU0391026\", \n supplierName: \"xx供应商\",\n type_name: \"2\",\n purchasing:'组织a', \n purchasingGroup:\"bb\",\n voucherDate:\"2018年02月05日\",\n key: \"2\"\n },\n { \n orderCode:\"NU0391027\", \n supplierName: \"xx供应商\",\n type_name: \"3\",\n purchasing:'组织b', \n purchasingGroup:\"aa\",\n voucherDate:\"2018年07月01日\",\n key: \"3\"\n },\n { \n orderCode:\"NU0391028\", \n supplierName: \"xx供应商\",\n type_name: \"4\",\n purchasing:'组织c', \n purchasingGroup:\"cc\",\n voucherDate:\"2019年03月01日\",\n key: \"4\"\n },\n { \n orderCode:\"NU0391029\", \n supplierName: \"xx供应商\",\n type_name: \"5\",\n purchasing:'组织d', \n purchasingGroup:\"ss\",\n voucherDate:\"2019年02月14日\",\n key: \"5\"\n },\n { \n orderCode:\"NU0391030\", \n supplierName: \"xx供应商\",\n type_name: \"1\",\n purchasing:'组织e', \n purchasingGroup:\"zz\",\n voucherDate:\"2019年02月18日\",\n key: \"6\"\n },\n { \n orderCode:\"NU0391031\", \n supplierName: \"xx供应商\",\n type_name: \"2\",\n purchasing:'组织f', \n purchasingGroup:\"qq\",\n voucherDate:\"2019年01月01日\",\n key: \"7\"\n },\n { \n orderCode:\"NU0391032\", \n supplierName: \"xx供应商\",\n type_name: \"3\",\n purchasing:'组织g', \n purchasingGroup:\"pp\",\n voucherDate:\"2019年01月31日\",\n key: \"8\"\n },\n];\n\nclass Demo04 extends Component {\n render() {\n return
    \n }\n}\n\nexport default Demo04; \n\n\n// WEBPACK FOOTER //\n// ./demo/demolist/Demo0104.js","/**\r\n*\r\n* @title 表格 Loading 加载\r\n* @parent 基础 Basic\r\n* @description loading可以传boolean或者object对象,object为bee-loading组件的参数类型\r\n* demo0105\r\n*/\r\n\r\nimport React, { Component } from \"react\";\r\nimport Table from \"../../src\";\r\nimport {Button,Tooltip} from \"tinper-bee\";\r\n\r\nconst columns05 = [\r\n { title: \"员工编号\", dataIndex: \"a\", key: \"a\", width: 300, className: \"rowClassName\",fixed:'left'},\r\n { title: \"员工姓名\", dataIndex: \"b\", key: \"b\", width: 500 },\r\n { title: \"性别\", dataIndex: \"c\", key: \"c\", width: 500 },\r\n { title: \"部门\", dataIndex: \"d\", key: \"d\", width: 200 }\r\n];\r\n\r\nconst data05 = [\r\n { a: \"ASVAL_201903280005\", b: \"小张\", c: \"男\", d: \"财务二科\", key: \"1\" },\r\n { a: \"ASVAL_201903200004\", b: \"小明\", c: \"男\", d: \"财务一科\", key: \"2\" },\r\n { a: \"ASVAL_201903120002\", b: \"小红\", c: \"女\", d: \"财务一科\", key: \"3\" }\r\n];\r\n\r\nclass Demo05 extends Component {\r\n constructor(props){\r\n super(props);\r\n this.state = {\r\n loading : true\r\n }\r\n }\r\n changeLoading = () => {\r\n this.setState({\r\n loading : !this.state.loading\r\n })\r\n }\r\n render() {\r\n return (\r\n
    \r\n \r\n 切换loading\r\n \r\n \r\n
    \r\n );\r\n }\r\n}\r\n\r\nexport default Demo05;\r\n\n\n\n// WEBPACK FOOTER //\n// ./demo/demolist/Demo0105.js","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./build/tinper-bee.js');\n} else {\n module.exports = require('./build/tinper-bee.js');\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/tinper-bee/environment.js\n// module id = 611\n// module chunks = 0","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"), require(\"prop-types\"), require(\"react-dom\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\", \"prop-types\", \"react-dom\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"TinperBee\"] = factory(require(\"react\"), require(\"prop-types\"), require(\"react-dom\"));\n\telse\n\t\troot[\"TinperBee\"] = factory(root[\"React\"], root[\"PropTypes\"], root[\"ReactDOM\"]);\n})(typeof self !== 'undefined' ? self : this, function(__WEBPACK_EXTERNAL_MODULE_0__, __WEBPACK_EXTERNAL_MODULE_1__, __WEBPACK_EXTERNAL_MODULE_3__) {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, {\n/******/ \t\t\t\tconfigurable: false,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: getter\n/******/ \t\t\t});\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 542);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports) {\n\nmodule.exports = __WEBPACK_EXTERNAL_MODULE_0__;\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports) {\n\nmodule.exports = __WEBPACK_EXTERNAL_MODULE_1__;\n\n/***/ }),\n/* 2 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!\n Copyright (c) 2017 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg) && arg.length) {\n\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\tif (inner) {\n\t\t\t\t\tclasses.push(inner);\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (true) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\t!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {\n\t\t\treturn classNames;\n\t\t}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n\n\n/***/ }),\n/* 3 */\n/***/ (function(module, exports) {\n\nmodule.exports = __WEBPACK_EXTERNAL_MODULE_3__;\n\n/***/ }),\n/* 4 */\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(module) {var require;//! moment.js\n//! version : 2.25.3\n//! authors : Tim Wood, Iskren Chernev, Moment.js contributors\n//! license : MIT\n//! momentjs.com\n\n;(function (global, factory) {\n true ? module.exports = factory() :\n typeof define === 'function' && define.amd ? define(factory) :\n global.moment = factory()\n}(this, (function () { 'use strict';\n\n var hookCallback;\n\n function hooks() {\n return hookCallback.apply(null, arguments);\n }\n\n // This is done to register the method called with moment()\n // without creating circular dependencies.\n function setHookCallback(callback) {\n hookCallback = callback;\n }\n\n function isArray(input) {\n return (\n input instanceof Array ||\n Object.prototype.toString.call(input) === '[object Array]'\n );\n }\n\n function isObject(input) {\n // IE8 will treat undefined and null as object if it wasn't for\n // input != null\n return (\n input != null &&\n Object.prototype.toString.call(input) === '[object Object]'\n );\n }\n\n function hasOwnProp(a, b) {\n return Object.prototype.hasOwnProperty.call(a, b);\n }\n\n function isObjectEmpty(obj) {\n if (Object.getOwnPropertyNames) {\n return Object.getOwnPropertyNames(obj).length === 0;\n } else {\n var k;\n for (k in obj) {\n if (hasOwnProp(obj, k)) {\n return false;\n }\n }\n return true;\n }\n }\n\n function isUndefined(input) {\n return input === void 0;\n }\n\n function isNumber(input) {\n return (\n typeof input === 'number' ||\n Object.prototype.toString.call(input) === '[object Number]'\n );\n }\n\n function isDate(input) {\n return (\n input instanceof Date ||\n Object.prototype.toString.call(input) === '[object Date]'\n );\n }\n\n function map(arr, fn) {\n var res = [],\n i;\n for (i = 0; i < arr.length; ++i) {\n res.push(fn(arr[i], i));\n }\n return res;\n }\n\n function extend(a, b) {\n for (var i in b) {\n if (hasOwnProp(b, i)) {\n a[i] = b[i];\n }\n }\n\n if (hasOwnProp(b, 'toString')) {\n a.toString = b.toString;\n }\n\n if (hasOwnProp(b, 'valueOf')) {\n a.valueOf = b.valueOf;\n }\n\n return a;\n }\n\n function createUTC(input, format, locale, strict) {\n return createLocalOrUTC(input, format, locale, strict, true).utc();\n }\n\n function defaultParsingFlags() {\n // We need to deep clone this object.\n return {\n empty: false,\n unusedTokens: [],\n unusedInput: [],\n overflow: -2,\n charsLeftOver: 0,\n nullInput: false,\n invalidEra: null,\n invalidMonth: null,\n invalidFormat: false,\n userInvalidated: false,\n iso: false,\n parsedDateParts: [],\n era: null,\n meridiem: null,\n rfc2822: false,\n weekdayMismatch: false,\n };\n }\n\n function getParsingFlags(m) {\n if (m._pf == null) {\n m._pf = defaultParsingFlags();\n }\n return m._pf;\n }\n\n var some;\n if (Array.prototype.some) {\n some = Array.prototype.some;\n } else {\n some = function (fun) {\n var t = Object(this),\n len = t.length >>> 0,\n i;\n\n for (i = 0; i < len; i++) {\n if (i in t && fun.call(this, t[i], i, t)) {\n return true;\n }\n }\n\n return false;\n };\n }\n\n function isValid(m) {\n if (m._isValid == null) {\n var flags = getParsingFlags(m),\n parsedParts = some.call(flags.parsedDateParts, function (i) {\n return i != null;\n }),\n isNowValid =\n !isNaN(m._d.getTime()) &&\n flags.overflow < 0 &&\n !flags.empty &&\n !flags.invalidEra &&\n !flags.invalidMonth &&\n !flags.invalidWeekday &&\n !flags.weekdayMismatch &&\n !flags.nullInput &&\n !flags.invalidFormat &&\n !flags.userInvalidated &&\n (!flags.meridiem || (flags.meridiem && parsedParts));\n\n if (m._strict) {\n isNowValid =\n isNowValid &&\n flags.charsLeftOver === 0 &&\n flags.unusedTokens.length === 0 &&\n flags.bigHour === undefined;\n }\n\n if (Object.isFrozen == null || !Object.isFrozen(m)) {\n m._isValid = isNowValid;\n } else {\n return isNowValid;\n }\n }\n return m._isValid;\n }\n\n function createInvalid(flags) {\n var m = createUTC(NaN);\n if (flags != null) {\n extend(getParsingFlags(m), flags);\n } else {\n getParsingFlags(m).userInvalidated = true;\n }\n\n return m;\n }\n\n // Plugins that add properties should also add the key here (null value),\n // so we can properly clone ourselves.\n var momentProperties = (hooks.momentProperties = []),\n updateInProgress = false;\n\n function copyConfig(to, from) {\n var i, prop, val;\n\n if (!isUndefined(from._isAMomentObject)) {\n to._isAMomentObject = from._isAMomentObject;\n }\n if (!isUndefined(from._i)) {\n to._i = from._i;\n }\n if (!isUndefined(from._f)) {\n to._f = from._f;\n }\n if (!isUndefined(from._l)) {\n to._l = from._l;\n }\n if (!isUndefined(from._strict)) {\n to._strict = from._strict;\n }\n if (!isUndefined(from._tzm)) {\n to._tzm = from._tzm;\n }\n if (!isUndefined(from._isUTC)) {\n to._isUTC = from._isUTC;\n }\n if (!isUndefined(from._offset)) {\n to._offset = from._offset;\n }\n if (!isUndefined(from._pf)) {\n to._pf = getParsingFlags(from);\n }\n if (!isUndefined(from._locale)) {\n to._locale = from._locale;\n }\n\n if (momentProperties.length > 0) {\n for (i = 0; i < momentProperties.length; i++) {\n prop = momentProperties[i];\n val = from[prop];\n if (!isUndefined(val)) {\n to[prop] = val;\n }\n }\n }\n\n return to;\n }\n\n // Moment prototype object\n function Moment(config) {\n copyConfig(this, config);\n this._d = new Date(config._d != null ? config._d.getTime() : NaN);\n if (!this.isValid()) {\n this._d = new Date(NaN);\n }\n // Prevent infinite loop in case updateOffset creates new moment\n // objects.\n if (updateInProgress === false) {\n updateInProgress = true;\n hooks.updateOffset(this);\n updateInProgress = false;\n }\n }\n\n function isMoment(obj) {\n return (\n obj instanceof Moment || (obj != null && obj._isAMomentObject != null)\n );\n }\n\n function warn(msg) {\n if (\n hooks.suppressDeprecationWarnings === false &&\n typeof console !== 'undefined' &&\n console.warn\n ) {\n console.warn('Deprecation warning: ' + msg);\n }\n }\n\n function deprecate(msg, fn) {\n var firstTime = true;\n\n return extend(function () {\n if (hooks.deprecationHandler != null) {\n hooks.deprecationHandler(null, msg);\n }\n if (firstTime) {\n var args = [],\n arg,\n i,\n key;\n for (i = 0; i < arguments.length; i++) {\n arg = '';\n if (typeof arguments[i] === 'object') {\n arg += '\\n[' + i + '] ';\n for (key in arguments[0]) {\n if (hasOwnProp(arguments[0], key)) {\n arg += key + ': ' + arguments[0][key] + ', ';\n }\n }\n arg = arg.slice(0, -2); // Remove trailing comma and space\n } else {\n arg = arguments[i];\n }\n args.push(arg);\n }\n warn(\n msg +\n '\\nArguments: ' +\n Array.prototype.slice.call(args).join('') +\n '\\n' +\n new Error().stack\n );\n firstTime = false;\n }\n return fn.apply(this, arguments);\n }, fn);\n }\n\n var deprecations = {};\n\n function deprecateSimple(name, msg) {\n if (hooks.deprecationHandler != null) {\n hooks.deprecationHandler(name, msg);\n }\n if (!deprecations[name]) {\n warn(msg);\n deprecations[name] = true;\n }\n }\n\n hooks.suppressDeprecationWarnings = false;\n hooks.deprecationHandler = null;\n\n function isFunction(input) {\n return (\n (typeof Function !== 'undefined' && input instanceof Function) ||\n Object.prototype.toString.call(input) === '[object Function]'\n );\n }\n\n function set(config) {\n var prop, i;\n for (i in config) {\n if (hasOwnProp(config, i)) {\n prop = config[i];\n if (isFunction(prop)) {\n this[i] = prop;\n } else {\n this['_' + i] = prop;\n }\n }\n }\n this._config = config;\n // Lenient ordinal parsing accepts just a number in addition to\n // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.\n // TODO: Remove \"ordinalParse\" fallback in next major release.\n this._dayOfMonthOrdinalParseLenient = new RegExp(\n (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) +\n '|' +\n /\\d{1,2}/.source\n );\n }\n\n function mergeConfigs(parentConfig, childConfig) {\n var res = extend({}, parentConfig),\n prop;\n for (prop in childConfig) {\n if (hasOwnProp(childConfig, prop)) {\n if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {\n res[prop] = {};\n extend(res[prop], parentConfig[prop]);\n extend(res[prop], childConfig[prop]);\n } else if (childConfig[prop] != null) {\n res[prop] = childConfig[prop];\n } else {\n delete res[prop];\n }\n }\n }\n for (prop in parentConfig) {\n if (\n hasOwnProp(parentConfig, prop) &&\n !hasOwnProp(childConfig, prop) &&\n isObject(parentConfig[prop])\n ) {\n // make sure changes to properties don't modify parent config\n res[prop] = extend({}, res[prop]);\n }\n }\n return res;\n }\n\n function Locale(config) {\n if (config != null) {\n this.set(config);\n }\n }\n\n var keys;\n\n if (Object.keys) {\n keys = Object.keys;\n } else {\n keys = function (obj) {\n var i,\n res = [];\n for (i in obj) {\n if (hasOwnProp(obj, i)) {\n res.push(i);\n }\n }\n return res;\n };\n }\n\n var defaultCalendar = {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L',\n };\n\n function calendar(key, mom, now) {\n var output = this._calendar[key] || this._calendar['sameElse'];\n return isFunction(output) ? output.call(mom, now) : output;\n }\n\n function zeroFill(number, targetLength, forceSign) {\n var absNumber = '' + Math.abs(number),\n zerosToFill = targetLength - absNumber.length,\n sign = number >= 0;\n return (\n (sign ? (forceSign ? '+' : '') : '-') +\n Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) +\n absNumber\n );\n }\n\n var formattingTokens = /(\\[[^\\[]*\\])|(\\\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,\n localFormattingTokens = /(\\[[^\\[]*\\])|(\\\\)?(LTS|LT|LL?L?L?|l{1,4})/g,\n formatFunctions = {},\n formatTokenFunctions = {};\n\n // token: 'M'\n // padded: ['MM', 2]\n // ordinal: 'Mo'\n // callback: function () { this.month() + 1 }\n function addFormatToken(token, padded, ordinal, callback) {\n var func = callback;\n if (typeof callback === 'string') {\n func = function () {\n return this[callback]();\n };\n }\n if (token) {\n formatTokenFunctions[token] = func;\n }\n if (padded) {\n formatTokenFunctions[padded[0]] = function () {\n return zeroFill(func.apply(this, arguments), padded[1], padded[2]);\n };\n }\n if (ordinal) {\n formatTokenFunctions[ordinal] = function () {\n return this.localeData().ordinal(\n func.apply(this, arguments),\n token\n );\n };\n }\n }\n\n function removeFormattingTokens(input) {\n if (input.match(/\\[[\\s\\S]/)) {\n return input.replace(/^\\[|\\]$/g, '');\n }\n return input.replace(/\\\\/g, '');\n }\n\n function makeFormatFunction(format) {\n var array = format.match(formattingTokens),\n i,\n length;\n\n for (i = 0, length = array.length; i < length; i++) {\n if (formatTokenFunctions[array[i]]) {\n array[i] = formatTokenFunctions[array[i]];\n } else {\n array[i] = removeFormattingTokens(array[i]);\n }\n }\n\n return function (mom) {\n var output = '',\n i;\n for (i = 0; i < length; i++) {\n output += isFunction(array[i])\n ? array[i].call(mom, format)\n : array[i];\n }\n return output;\n };\n }\n\n // format date using native date object\n function formatMoment(m, format) {\n if (!m.isValid()) {\n return m.localeData().invalidDate();\n }\n\n format = expandFormat(format, m.localeData());\n formatFunctions[format] =\n formatFunctions[format] || makeFormatFunction(format);\n\n return formatFunctions[format](m);\n }\n\n function expandFormat(format, locale) {\n var i = 5;\n\n function replaceLongDateFormatTokens(input) {\n return locale.longDateFormat(input) || input;\n }\n\n localFormattingTokens.lastIndex = 0;\n while (i >= 0 && localFormattingTokens.test(format)) {\n format = format.replace(\n localFormattingTokens,\n replaceLongDateFormatTokens\n );\n localFormattingTokens.lastIndex = 0;\n i -= 1;\n }\n\n return format;\n }\n\n var defaultLongDateFormat = {\n LTS: 'h:mm:ss A',\n LT: 'h:mm A',\n L: 'MM/DD/YYYY',\n LL: 'MMMM D, YYYY',\n LLL: 'MMMM D, YYYY h:mm A',\n LLLL: 'dddd, MMMM D, YYYY h:mm A',\n };\n\n function longDateFormat(key) {\n var format = this._longDateFormat[key],\n formatUpper = this._longDateFormat[key.toUpperCase()];\n\n if (format || !formatUpper) {\n return format;\n }\n\n this._longDateFormat[key] = formatUpper\n .match(formattingTokens)\n .map(function (tok) {\n if (\n tok === 'MMMM' ||\n tok === 'MM' ||\n tok === 'DD' ||\n tok === 'dddd'\n ) {\n return tok.slice(1);\n }\n return tok;\n })\n .join('');\n\n return this._longDateFormat[key];\n }\n\n var defaultInvalidDate = 'Invalid date';\n\n function invalidDate() {\n return this._invalidDate;\n }\n\n var defaultOrdinal = '%d',\n defaultDayOfMonthOrdinalParse = /\\d{1,2}/;\n\n function ordinal(number) {\n return this._ordinal.replace('%d', number);\n }\n\n var defaultRelativeTime = {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n w: 'a week',\n ww: '%d weeks',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years',\n };\n\n function relativeTime(number, withoutSuffix, string, isFuture) {\n var output = this._relativeTime[string];\n return isFunction(output)\n ? output(number, withoutSuffix, string, isFuture)\n : output.replace(/%d/i, number);\n }\n\n function pastFuture(diff, output) {\n var format = this._relativeTime[diff > 0 ? 'future' : 'past'];\n return isFunction(format) ? format(output) : format.replace(/%s/i, output);\n }\n\n var aliases = {};\n\n function addUnitAlias(unit, shorthand) {\n var lowerCase = unit.toLowerCase();\n aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;\n }\n\n function normalizeUnits(units) {\n return typeof units === 'string'\n ? aliases[units] || aliases[units.toLowerCase()]\n : undefined;\n }\n\n function normalizeObjectUnits(inputObject) {\n var normalizedInput = {},\n normalizedProp,\n prop;\n\n for (prop in inputObject) {\n if (hasOwnProp(inputObject, prop)) {\n normalizedProp = normalizeUnits(prop);\n if (normalizedProp) {\n normalizedInput[normalizedProp] = inputObject[prop];\n }\n }\n }\n\n return normalizedInput;\n }\n\n var priorities = {};\n\n function addUnitPriority(unit, priority) {\n priorities[unit] = priority;\n }\n\n function getPrioritizedUnits(unitsObj) {\n var units = [],\n u;\n for (u in unitsObj) {\n if (hasOwnProp(unitsObj, u)) {\n units.push({ unit: u, priority: priorities[u] });\n }\n }\n units.sort(function (a, b) {\n return a.priority - b.priority;\n });\n return units;\n }\n\n function isLeapYear(year) {\n return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;\n }\n\n function absFloor(number) {\n if (number < 0) {\n // -0 -> 0\n return Math.ceil(number) || 0;\n } else {\n return Math.floor(number);\n }\n }\n\n function toInt(argumentForCoercion) {\n var coercedNumber = +argumentForCoercion,\n value = 0;\n\n if (coercedNumber !== 0 && isFinite(coercedNumber)) {\n value = absFloor(coercedNumber);\n }\n\n return value;\n }\n\n function makeGetSet(unit, keepTime) {\n return function (value) {\n if (value != null) {\n set$1(this, unit, value);\n hooks.updateOffset(this, keepTime);\n return this;\n } else {\n return get(this, unit);\n }\n };\n }\n\n function get(mom, unit) {\n return mom.isValid()\n ? mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]()\n : NaN;\n }\n\n function set$1(mom, unit, value) {\n if (mom.isValid() && !isNaN(value)) {\n if (\n unit === 'FullYear' &&\n isLeapYear(mom.year()) &&\n mom.month() === 1 &&\n mom.date() === 29\n ) {\n value = toInt(value);\n mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](\n value,\n mom.month(),\n daysInMonth(value, mom.month())\n );\n } else {\n mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);\n }\n }\n }\n\n // MOMENTS\n\n function stringGet(units) {\n units = normalizeUnits(units);\n if (isFunction(this[units])) {\n return this[units]();\n }\n return this;\n }\n\n function stringSet(units, value) {\n if (typeof units === 'object') {\n units = normalizeObjectUnits(units);\n var prioritized = getPrioritizedUnits(units),\n i;\n for (i = 0; i < prioritized.length; i++) {\n this[prioritized[i].unit](units[prioritized[i].unit]);\n }\n } else {\n units = normalizeUnits(units);\n if (isFunction(this[units])) {\n return this[units](value);\n }\n }\n return this;\n }\n\n var match1 = /\\d/, // 0 - 9\n match2 = /\\d\\d/, // 00 - 99\n match3 = /\\d{3}/, // 000 - 999\n match4 = /\\d{4}/, // 0000 - 9999\n match6 = /[+-]?\\d{6}/, // -999999 - 999999\n match1to2 = /\\d\\d?/, // 0 - 99\n match3to4 = /\\d\\d\\d\\d?/, // 999 - 9999\n match5to6 = /\\d\\d\\d\\d\\d\\d?/, // 99999 - 999999\n match1to3 = /\\d{1,3}/, // 0 - 999\n match1to4 = /\\d{1,4}/, // 0 - 9999\n match1to6 = /[+-]?\\d{1,6}/, // -999999 - 999999\n matchUnsigned = /\\d+/, // 0 - inf\n matchSigned = /[+-]?\\d+/, // -inf - inf\n matchOffset = /Z|[+-]\\d\\d:?\\d\\d/gi, // +00:00 -00:00 +0000 -0000 or Z\n matchShortOffset = /Z|[+-]\\d\\d(?::?\\d\\d)?/gi, // +00 -00 +00:00 -00:00 +0000 -0000 or Z\n matchTimestamp = /[+-]?\\d+(\\.\\d{1,3})?/, // 123456789 123456789.123\n // any word (or two) characters or numbers including two/three word month in arabic.\n // includes scottish gaelic two word and hyphenated months\n matchWord = /[0-9]{0,256}['a-z\\u00A0-\\u05FF\\u0700-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFF07\\uFF10-\\uFFEF]{1,256}|[\\u0600-\\u06FF\\/]{1,256}(\\s*?[\\u0600-\\u06FF]{1,256}){1,2}/i,\n regexes;\n\n regexes = {};\n\n function addRegexToken(token, regex, strictRegex) {\n regexes[token] = isFunction(regex)\n ? regex\n : function (isStrict, localeData) {\n return isStrict && strictRegex ? strictRegex : regex;\n };\n }\n\n function getParseRegexForToken(token, config) {\n if (!hasOwnProp(regexes, token)) {\n return new RegExp(unescapeFormat(token));\n }\n\n return regexes[token](config._strict, config._locale);\n }\n\n // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript\n function unescapeFormat(s) {\n return regexEscape(\n s\n .replace('\\\\', '')\n .replace(/\\\\(\\[)|\\\\(\\])|\\[([^\\]\\[]*)\\]|\\\\(.)/g, function (\n matched,\n p1,\n p2,\n p3,\n p4\n ) {\n return p1 || p2 || p3 || p4;\n })\n );\n }\n\n function regexEscape(s) {\n return s.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g, '\\\\$&');\n }\n\n var tokens = {};\n\n function addParseToken(token, callback) {\n var i,\n func = callback;\n if (typeof token === 'string') {\n token = [token];\n }\n if (isNumber(callback)) {\n func = function (input, array) {\n array[callback] = toInt(input);\n };\n }\n for (i = 0; i < token.length; i++) {\n tokens[token[i]] = func;\n }\n }\n\n function addWeekParseToken(token, callback) {\n addParseToken(token, function (input, array, config, token) {\n config._w = config._w || {};\n callback(input, config._w, config, token);\n });\n }\n\n function addTimeToArrayFromToken(token, input, config) {\n if (input != null && hasOwnProp(tokens, token)) {\n tokens[token](input, config._a, config, token);\n }\n }\n\n var YEAR = 0,\n MONTH = 1,\n DATE = 2,\n HOUR = 3,\n MINUTE = 4,\n SECOND = 5,\n MILLISECOND = 6,\n WEEK = 7,\n WEEKDAY = 8;\n\n function mod(n, x) {\n return ((n % x) + x) % x;\n }\n\n var indexOf;\n\n if (Array.prototype.indexOf) {\n indexOf = Array.prototype.indexOf;\n } else {\n indexOf = function (o) {\n // I know\n var i;\n for (i = 0; i < this.length; ++i) {\n if (this[i] === o) {\n return i;\n }\n }\n return -1;\n };\n }\n\n function daysInMonth(year, month) {\n if (isNaN(year) || isNaN(month)) {\n return NaN;\n }\n var modMonth = mod(month, 12);\n year += (month - modMonth) / 12;\n return modMonth === 1\n ? isLeapYear(year)\n ? 29\n : 28\n : 31 - ((modMonth % 7) % 2);\n }\n\n // FORMATTING\n\n addFormatToken('M', ['MM', 2], 'Mo', function () {\n return this.month() + 1;\n });\n\n addFormatToken('MMM', 0, 0, function (format) {\n return this.localeData().monthsShort(this, format);\n });\n\n addFormatToken('MMMM', 0, 0, function (format) {\n return this.localeData().months(this, format);\n });\n\n // ALIASES\n\n addUnitAlias('month', 'M');\n\n // PRIORITY\n\n addUnitPriority('month', 8);\n\n // PARSING\n\n addRegexToken('M', match1to2);\n addRegexToken('MM', match1to2, match2);\n addRegexToken('MMM', function (isStrict, locale) {\n return locale.monthsShortRegex(isStrict);\n });\n addRegexToken('MMMM', function (isStrict, locale) {\n return locale.monthsRegex(isStrict);\n });\n\n addParseToken(['M', 'MM'], function (input, array) {\n array[MONTH] = toInt(input) - 1;\n });\n\n addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {\n var month = config._locale.monthsParse(input, token, config._strict);\n // if we didn't find a month name, mark the date as invalid.\n if (month != null) {\n array[MONTH] = month;\n } else {\n getParsingFlags(config).invalidMonth = input;\n }\n });\n\n // LOCALES\n\n var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n '_'\n ),\n defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split(\n '_'\n ),\n MONTHS_IN_FORMAT = /D[oD]?(\\[[^\\[\\]]*\\]|\\s)+MMMM?/,\n defaultMonthsShortRegex = matchWord,\n defaultMonthsRegex = matchWord;\n\n function localeMonths(m, format) {\n if (!m) {\n return isArray(this._months)\n ? this._months\n : this._months['standalone'];\n }\n return isArray(this._months)\n ? this._months[m.month()]\n : this._months[\n (this._months.isFormat || MONTHS_IN_FORMAT).test(format)\n ? 'format'\n : 'standalone'\n ][m.month()];\n }\n\n function localeMonthsShort(m, format) {\n if (!m) {\n return isArray(this._monthsShort)\n ? this._monthsShort\n : this._monthsShort['standalone'];\n }\n return isArray(this._monthsShort)\n ? this._monthsShort[m.month()]\n : this._monthsShort[\n MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'\n ][m.month()];\n }\n\n function handleStrictParse(monthName, format, strict) {\n var i,\n ii,\n mom,\n llc = monthName.toLocaleLowerCase();\n if (!this._monthsParse) {\n // this is not used\n this._monthsParse = [];\n this._longMonthsParse = [];\n this._shortMonthsParse = [];\n for (i = 0; i < 12; ++i) {\n mom = createUTC([2000, i]);\n this._shortMonthsParse[i] = this.monthsShort(\n mom,\n ''\n ).toLocaleLowerCase();\n this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();\n }\n }\n\n if (strict) {\n if (format === 'MMM') {\n ii = indexOf.call(this._shortMonthsParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._longMonthsParse, llc);\n return ii !== -1 ? ii : null;\n }\n } else {\n if (format === 'MMM') {\n ii = indexOf.call(this._shortMonthsParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._longMonthsParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._longMonthsParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._shortMonthsParse, llc);\n return ii !== -1 ? ii : null;\n }\n }\n }\n\n function localeMonthsParse(monthName, format, strict) {\n var i, mom, regex;\n\n if (this._monthsParseExact) {\n return handleStrictParse.call(this, monthName, format, strict);\n }\n\n if (!this._monthsParse) {\n this._monthsParse = [];\n this._longMonthsParse = [];\n this._shortMonthsParse = [];\n }\n\n // TODO: add sorting\n // Sorting makes sure if one month (or abbr) is a prefix of another\n // see sorting in computeMonthsParse\n for (i = 0; i < 12; i++) {\n // make the regex if we don't have it already\n mom = createUTC([2000, i]);\n if (strict && !this._longMonthsParse[i]) {\n this._longMonthsParse[i] = new RegExp(\n '^' + this.months(mom, '').replace('.', '') + '$',\n 'i'\n );\n this._shortMonthsParse[i] = new RegExp(\n '^' + this.monthsShort(mom, '').replace('.', '') + '$',\n 'i'\n );\n }\n if (!strict && !this._monthsParse[i]) {\n regex =\n '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');\n this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');\n }\n // test the regex\n if (\n strict &&\n format === 'MMMM' &&\n this._longMonthsParse[i].test(monthName)\n ) {\n return i;\n } else if (\n strict &&\n format === 'MMM' &&\n this._shortMonthsParse[i].test(monthName)\n ) {\n return i;\n } else if (!strict && this._monthsParse[i].test(monthName)) {\n return i;\n }\n }\n }\n\n // MOMENTS\n\n function setMonth(mom, value) {\n var dayOfMonth;\n\n if (!mom.isValid()) {\n // No op\n return mom;\n }\n\n if (typeof value === 'string') {\n if (/^\\d+$/.test(value)) {\n value = toInt(value);\n } else {\n value = mom.localeData().monthsParse(value);\n // TODO: Another silent failure?\n if (!isNumber(value)) {\n return mom;\n }\n }\n }\n\n dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));\n mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);\n return mom;\n }\n\n function getSetMonth(value) {\n if (value != null) {\n setMonth(this, value);\n hooks.updateOffset(this, true);\n return this;\n } else {\n return get(this, 'Month');\n }\n }\n\n function getDaysInMonth() {\n return daysInMonth(this.year(), this.month());\n }\n\n function monthsShortRegex(isStrict) {\n if (this._monthsParseExact) {\n if (!hasOwnProp(this, '_monthsRegex')) {\n computeMonthsParse.call(this);\n }\n if (isStrict) {\n return this._monthsShortStrictRegex;\n } else {\n return this._monthsShortRegex;\n }\n } else {\n if (!hasOwnProp(this, '_monthsShortRegex')) {\n this._monthsShortRegex = defaultMonthsShortRegex;\n }\n return this._monthsShortStrictRegex && isStrict\n ? this._monthsShortStrictRegex\n : this._monthsShortRegex;\n }\n }\n\n function monthsRegex(isStrict) {\n if (this._monthsParseExact) {\n if (!hasOwnProp(this, '_monthsRegex')) {\n computeMonthsParse.call(this);\n }\n if (isStrict) {\n return this._monthsStrictRegex;\n } else {\n return this._monthsRegex;\n }\n } else {\n if (!hasOwnProp(this, '_monthsRegex')) {\n this._monthsRegex = defaultMonthsRegex;\n }\n return this._monthsStrictRegex && isStrict\n ? this._monthsStrictRegex\n : this._monthsRegex;\n }\n }\n\n function computeMonthsParse() {\n function cmpLenRev(a, b) {\n return b.length - a.length;\n }\n\n var shortPieces = [],\n longPieces = [],\n mixedPieces = [],\n i,\n mom;\n for (i = 0; i < 12; i++) {\n // make the regex if we don't have it already\n mom = createUTC([2000, i]);\n shortPieces.push(this.monthsShort(mom, ''));\n longPieces.push(this.months(mom, ''));\n mixedPieces.push(this.months(mom, ''));\n mixedPieces.push(this.monthsShort(mom, ''));\n }\n // Sorting makes sure if one month (or abbr) is a prefix of another it\n // will match the longer piece.\n shortPieces.sort(cmpLenRev);\n longPieces.sort(cmpLenRev);\n mixedPieces.sort(cmpLenRev);\n for (i = 0; i < 12; i++) {\n shortPieces[i] = regexEscape(shortPieces[i]);\n longPieces[i] = regexEscape(longPieces[i]);\n }\n for (i = 0; i < 24; i++) {\n mixedPieces[i] = regexEscape(mixedPieces[i]);\n }\n\n this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');\n this._monthsShortRegex = this._monthsRegex;\n this._monthsStrictRegex = new RegExp(\n '^(' + longPieces.join('|') + ')',\n 'i'\n );\n this._monthsShortStrictRegex = new RegExp(\n '^(' + shortPieces.join('|') + ')',\n 'i'\n );\n }\n\n // FORMATTING\n\n addFormatToken('Y', 0, 0, function () {\n var y = this.year();\n return y <= 9999 ? zeroFill(y, 4) : '+' + y;\n });\n\n addFormatToken(0, ['YY', 2], 0, function () {\n return this.year() % 100;\n });\n\n addFormatToken(0, ['YYYY', 4], 0, 'year');\n addFormatToken(0, ['YYYYY', 5], 0, 'year');\n addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');\n\n // ALIASES\n\n addUnitAlias('year', 'y');\n\n // PRIORITIES\n\n addUnitPriority('year', 1);\n\n // PARSING\n\n addRegexToken('Y', matchSigned);\n addRegexToken('YY', match1to2, match2);\n addRegexToken('YYYY', match1to4, match4);\n addRegexToken('YYYYY', match1to6, match6);\n addRegexToken('YYYYYY', match1to6, match6);\n\n addParseToken(['YYYYY', 'YYYYYY'], YEAR);\n addParseToken('YYYY', function (input, array) {\n array[YEAR] =\n input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);\n });\n addParseToken('YY', function (input, array) {\n array[YEAR] = hooks.parseTwoDigitYear(input);\n });\n addParseToken('Y', function (input, array) {\n array[YEAR] = parseInt(input, 10);\n });\n\n // HELPERS\n\n function daysInYear(year) {\n return isLeapYear(year) ? 366 : 365;\n }\n\n // HOOKS\n\n hooks.parseTwoDigitYear = function (input) {\n return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);\n };\n\n // MOMENTS\n\n var getSetYear = makeGetSet('FullYear', true);\n\n function getIsLeapYear() {\n return isLeapYear(this.year());\n }\n\n function createDate(y, m, d, h, M, s, ms) {\n // can't just apply() to create a date:\n // https://stackoverflow.com/q/181348\n var date;\n // the date constructor remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0) {\n // preserve leap years using a full 400 year cycle, then reset\n date = new Date(y + 400, m, d, h, M, s, ms);\n if (isFinite(date.getFullYear())) {\n date.setFullYear(y);\n }\n } else {\n date = new Date(y, m, d, h, M, s, ms);\n }\n\n return date;\n }\n\n function createUTCDate(y) {\n var date, args;\n // the Date.UTC function remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0) {\n args = Array.prototype.slice.call(arguments);\n // preserve leap years using a full 400 year cycle, then reset\n args[0] = y + 400;\n date = new Date(Date.UTC.apply(null, args));\n if (isFinite(date.getUTCFullYear())) {\n date.setUTCFullYear(y);\n }\n } else {\n date = new Date(Date.UTC.apply(null, arguments));\n }\n\n return date;\n }\n\n // start-of-first-week - start-of-year\n function firstWeekOffset(year, dow, doy) {\n var // first-week day -- which january is always in the first week (4 for iso, 1 for other)\n fwd = 7 + dow - doy,\n // first-week day local weekday -- which local weekday is fwd\n fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;\n\n return -fwdlw + fwd - 1;\n }\n\n // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday\n function dayOfYearFromWeeks(year, week, weekday, dow, doy) {\n var localWeekday = (7 + weekday - dow) % 7,\n weekOffset = firstWeekOffset(year, dow, doy),\n dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,\n resYear,\n resDayOfYear;\n\n if (dayOfYear <= 0) {\n resYear = year - 1;\n resDayOfYear = daysInYear(resYear) + dayOfYear;\n } else if (dayOfYear > daysInYear(year)) {\n resYear = year + 1;\n resDayOfYear = dayOfYear - daysInYear(year);\n } else {\n resYear = year;\n resDayOfYear = dayOfYear;\n }\n\n return {\n year: resYear,\n dayOfYear: resDayOfYear,\n };\n }\n\n function weekOfYear(mom, dow, doy) {\n var weekOffset = firstWeekOffset(mom.year(), dow, doy),\n week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,\n resWeek,\n resYear;\n\n if (week < 1) {\n resYear = mom.year() - 1;\n resWeek = week + weeksInYear(resYear, dow, doy);\n } else if (week > weeksInYear(mom.year(), dow, doy)) {\n resWeek = week - weeksInYear(mom.year(), dow, doy);\n resYear = mom.year() + 1;\n } else {\n resYear = mom.year();\n resWeek = week;\n }\n\n return {\n week: resWeek,\n year: resYear,\n };\n }\n\n function weeksInYear(year, dow, doy) {\n var weekOffset = firstWeekOffset(year, dow, doy),\n weekOffsetNext = firstWeekOffset(year + 1, dow, doy);\n return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;\n }\n\n // FORMATTING\n\n addFormatToken('w', ['ww', 2], 'wo', 'week');\n addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');\n\n // ALIASES\n\n addUnitAlias('week', 'w');\n addUnitAlias('isoWeek', 'W');\n\n // PRIORITIES\n\n addUnitPriority('week', 5);\n addUnitPriority('isoWeek', 5);\n\n // PARSING\n\n addRegexToken('w', match1to2);\n addRegexToken('ww', match1to2, match2);\n addRegexToken('W', match1to2);\n addRegexToken('WW', match1to2, match2);\n\n addWeekParseToken(['w', 'ww', 'W', 'WW'], function (\n input,\n week,\n config,\n token\n ) {\n week[token.substr(0, 1)] = toInt(input);\n });\n\n // HELPERS\n\n // LOCALES\n\n function localeWeek(mom) {\n return weekOfYear(mom, this._week.dow, this._week.doy).week;\n }\n\n var defaultLocaleWeek = {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n };\n\n function localeFirstDayOfWeek() {\n return this._week.dow;\n }\n\n function localeFirstDayOfYear() {\n return this._week.doy;\n }\n\n // MOMENTS\n\n function getSetWeek(input) {\n var week = this.localeData().week(this);\n return input == null ? week : this.add((input - week) * 7, 'd');\n }\n\n function getSetISOWeek(input) {\n var week = weekOfYear(this, 1, 4).week;\n return input == null ? week : this.add((input - week) * 7, 'd');\n }\n\n // FORMATTING\n\n addFormatToken('d', 0, 'do', 'day');\n\n addFormatToken('dd', 0, 0, function (format) {\n return this.localeData().weekdaysMin(this, format);\n });\n\n addFormatToken('ddd', 0, 0, function (format) {\n return this.localeData().weekdaysShort(this, format);\n });\n\n addFormatToken('dddd', 0, 0, function (format) {\n return this.localeData().weekdays(this, format);\n });\n\n addFormatToken('e', 0, 0, 'weekday');\n addFormatToken('E', 0, 0, 'isoWeekday');\n\n // ALIASES\n\n addUnitAlias('day', 'd');\n addUnitAlias('weekday', 'e');\n addUnitAlias('isoWeekday', 'E');\n\n // PRIORITY\n addUnitPriority('day', 11);\n addUnitPriority('weekday', 11);\n addUnitPriority('isoWeekday', 11);\n\n // PARSING\n\n addRegexToken('d', match1to2);\n addRegexToken('e', match1to2);\n addRegexToken('E', match1to2);\n addRegexToken('dd', function (isStrict, locale) {\n return locale.weekdaysMinRegex(isStrict);\n });\n addRegexToken('ddd', function (isStrict, locale) {\n return locale.weekdaysShortRegex(isStrict);\n });\n addRegexToken('dddd', function (isStrict, locale) {\n return locale.weekdaysRegex(isStrict);\n });\n\n addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {\n var weekday = config._locale.weekdaysParse(input, token, config._strict);\n // if we didn't get a weekday name, mark the date as invalid\n if (weekday != null) {\n week.d = weekday;\n } else {\n getParsingFlags(config).invalidWeekday = input;\n }\n });\n\n addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {\n week[token] = toInt(input);\n });\n\n // HELPERS\n\n function parseWeekday(input, locale) {\n if (typeof input !== 'string') {\n return input;\n }\n\n if (!isNaN(input)) {\n return parseInt(input, 10);\n }\n\n input = locale.weekdaysParse(input);\n if (typeof input === 'number') {\n return input;\n }\n\n return null;\n }\n\n function parseIsoWeekday(input, locale) {\n if (typeof input === 'string') {\n return locale.weekdaysParse(input) % 7 || 7;\n }\n return isNaN(input) ? null : input;\n }\n\n // LOCALES\n function shiftWeekdays(ws, n) {\n return ws.slice(n, 7).concat(ws.slice(0, n));\n }\n\n var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n '_'\n ),\n defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n defaultWeekdaysRegex = matchWord,\n defaultWeekdaysShortRegex = matchWord,\n defaultWeekdaysMinRegex = matchWord;\n\n function localeWeekdays(m, format) {\n var weekdays = isArray(this._weekdays)\n ? this._weekdays\n : this._weekdays[\n m && m !== true && this._weekdays.isFormat.test(format)\n ? 'format'\n : 'standalone'\n ];\n return m === true\n ? shiftWeekdays(weekdays, this._week.dow)\n : m\n ? weekdays[m.day()]\n : weekdays;\n }\n\n function localeWeekdaysShort(m) {\n return m === true\n ? shiftWeekdays(this._weekdaysShort, this._week.dow)\n : m\n ? this._weekdaysShort[m.day()]\n : this._weekdaysShort;\n }\n\n function localeWeekdaysMin(m) {\n return m === true\n ? shiftWeekdays(this._weekdaysMin, this._week.dow)\n : m\n ? this._weekdaysMin[m.day()]\n : this._weekdaysMin;\n }\n\n function handleStrictParse$1(weekdayName, format, strict) {\n var i,\n ii,\n mom,\n llc = weekdayName.toLocaleLowerCase();\n if (!this._weekdaysParse) {\n this._weekdaysParse = [];\n this._shortWeekdaysParse = [];\n this._minWeekdaysParse = [];\n\n for (i = 0; i < 7; ++i) {\n mom = createUTC([2000, 1]).day(i);\n this._minWeekdaysParse[i] = this.weekdaysMin(\n mom,\n ''\n ).toLocaleLowerCase();\n this._shortWeekdaysParse[i] = this.weekdaysShort(\n mom,\n ''\n ).toLocaleLowerCase();\n this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();\n }\n }\n\n if (strict) {\n if (format === 'dddd') {\n ii = indexOf.call(this._weekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else if (format === 'ddd') {\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._minWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n }\n } else {\n if (format === 'dddd') {\n ii = indexOf.call(this._weekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._minWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else if (format === 'ddd') {\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._weekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._minWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._minWeekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._weekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n }\n }\n }\n\n function localeWeekdaysParse(weekdayName, format, strict) {\n var i, mom, regex;\n\n if (this._weekdaysParseExact) {\n return handleStrictParse$1.call(this, weekdayName, format, strict);\n }\n\n if (!this._weekdaysParse) {\n this._weekdaysParse = [];\n this._minWeekdaysParse = [];\n this._shortWeekdaysParse = [];\n this._fullWeekdaysParse = [];\n }\n\n for (i = 0; i < 7; i++) {\n // make the regex if we don't have it already\n\n mom = createUTC([2000, 1]).day(i);\n if (strict && !this._fullWeekdaysParse[i]) {\n this._fullWeekdaysParse[i] = new RegExp(\n '^' + this.weekdays(mom, '').replace('.', '\\\\.?') + '$',\n 'i'\n );\n this._shortWeekdaysParse[i] = new RegExp(\n '^' + this.weekdaysShort(mom, '').replace('.', '\\\\.?') + '$',\n 'i'\n );\n this._minWeekdaysParse[i] = new RegExp(\n '^' + this.weekdaysMin(mom, '').replace('.', '\\\\.?') + '$',\n 'i'\n );\n }\n if (!this._weekdaysParse[i]) {\n regex =\n '^' +\n this.weekdays(mom, '') +\n '|^' +\n this.weekdaysShort(mom, '') +\n '|^' +\n this.weekdaysMin(mom, '');\n this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');\n }\n // test the regex\n if (\n strict &&\n format === 'dddd' &&\n this._fullWeekdaysParse[i].test(weekdayName)\n ) {\n return i;\n } else if (\n strict &&\n format === 'ddd' &&\n this._shortWeekdaysParse[i].test(weekdayName)\n ) {\n return i;\n } else if (\n strict &&\n format === 'dd' &&\n this._minWeekdaysParse[i].test(weekdayName)\n ) {\n return i;\n } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {\n return i;\n }\n }\n }\n\n // MOMENTS\n\n function getSetDayOfWeek(input) {\n if (!this.isValid()) {\n return input != null ? this : NaN;\n }\n var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();\n if (input != null) {\n input = parseWeekday(input, this.localeData());\n return this.add(input - day, 'd');\n } else {\n return day;\n }\n }\n\n function getSetLocaleDayOfWeek(input) {\n if (!this.isValid()) {\n return input != null ? this : NaN;\n }\n var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;\n return input == null ? weekday : this.add(input - weekday, 'd');\n }\n\n function getSetISODayOfWeek(input) {\n if (!this.isValid()) {\n return input != null ? this : NaN;\n }\n\n // behaves the same as moment#day except\n // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)\n // as a setter, sunday should belong to the previous week.\n\n if (input != null) {\n var weekday = parseIsoWeekday(input, this.localeData());\n return this.day(this.day() % 7 ? weekday : weekday - 7);\n } else {\n return this.day() || 7;\n }\n }\n\n function weekdaysRegex(isStrict) {\n if (this._weekdaysParseExact) {\n if (!hasOwnProp(this, '_weekdaysRegex')) {\n computeWeekdaysParse.call(this);\n }\n if (isStrict) {\n return this._weekdaysStrictRegex;\n } else {\n return this._weekdaysRegex;\n }\n } else {\n if (!hasOwnProp(this, '_weekdaysRegex')) {\n this._weekdaysRegex = defaultWeekdaysRegex;\n }\n return this._weekdaysStrictRegex && isStrict\n ? this._weekdaysStrictRegex\n : this._weekdaysRegex;\n }\n }\n\n function weekdaysShortRegex(isStrict) {\n if (this._weekdaysParseExact) {\n if (!hasOwnProp(this, '_weekdaysRegex')) {\n computeWeekdaysParse.call(this);\n }\n if (isStrict) {\n return this._weekdaysShortStrictRegex;\n } else {\n return this._weekdaysShortRegex;\n }\n } else {\n if (!hasOwnProp(this, '_weekdaysShortRegex')) {\n this._weekdaysShortRegex = defaultWeekdaysShortRegex;\n }\n return this._weekdaysShortStrictRegex && isStrict\n ? this._weekdaysShortStrictRegex\n : this._weekdaysShortRegex;\n }\n }\n\n function weekdaysMinRegex(isStrict) {\n if (this._weekdaysParseExact) {\n if (!hasOwnProp(this, '_weekdaysRegex')) {\n computeWeekdaysParse.call(this);\n }\n if (isStrict) {\n return this._weekdaysMinStrictRegex;\n } else {\n return this._weekdaysMinRegex;\n }\n } else {\n if (!hasOwnProp(this, '_weekdaysMinRegex')) {\n this._weekdaysMinRegex = defaultWeekdaysMinRegex;\n }\n return this._weekdaysMinStrictRegex && isStrict\n ? this._weekdaysMinStrictRegex\n : this._weekdaysMinRegex;\n }\n }\n\n function computeWeekdaysParse() {\n function cmpLenRev(a, b) {\n return b.length - a.length;\n }\n\n var minPieces = [],\n shortPieces = [],\n longPieces = [],\n mixedPieces = [],\n i,\n mom,\n minp,\n shortp,\n longp;\n for (i = 0; i < 7; i++) {\n // make the regex if we don't have it already\n mom = createUTC([2000, 1]).day(i);\n minp = regexEscape(this.weekdaysMin(mom, ''));\n shortp = regexEscape(this.weekdaysShort(mom, ''));\n longp = regexEscape(this.weekdays(mom, ''));\n minPieces.push(minp);\n shortPieces.push(shortp);\n longPieces.push(longp);\n mixedPieces.push(minp);\n mixedPieces.push(shortp);\n mixedPieces.push(longp);\n }\n // Sorting makes sure if one weekday (or abbr) is a prefix of another it\n // will match the longer piece.\n minPieces.sort(cmpLenRev);\n shortPieces.sort(cmpLenRev);\n longPieces.sort(cmpLenRev);\n mixedPieces.sort(cmpLenRev);\n\n this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');\n this._weekdaysShortRegex = this._weekdaysRegex;\n this._weekdaysMinRegex = this._weekdaysRegex;\n\n this._weekdaysStrictRegex = new RegExp(\n '^(' + longPieces.join('|') + ')',\n 'i'\n );\n this._weekdaysShortStrictRegex = new RegExp(\n '^(' + shortPieces.join('|') + ')',\n 'i'\n );\n this._weekdaysMinStrictRegex = new RegExp(\n '^(' + minPieces.join('|') + ')',\n 'i'\n );\n }\n\n // FORMATTING\n\n function hFormat() {\n return this.hours() % 12 || 12;\n }\n\n function kFormat() {\n return this.hours() || 24;\n }\n\n addFormatToken('H', ['HH', 2], 0, 'hour');\n addFormatToken('h', ['hh', 2], 0, hFormat);\n addFormatToken('k', ['kk', 2], 0, kFormat);\n\n addFormatToken('hmm', 0, 0, function () {\n return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);\n });\n\n addFormatToken('hmmss', 0, 0, function () {\n return (\n '' +\n hFormat.apply(this) +\n zeroFill(this.minutes(), 2) +\n zeroFill(this.seconds(), 2)\n );\n });\n\n addFormatToken('Hmm', 0, 0, function () {\n return '' + this.hours() + zeroFill(this.minutes(), 2);\n });\n\n addFormatToken('Hmmss', 0, 0, function () {\n return (\n '' +\n this.hours() +\n zeroFill(this.minutes(), 2) +\n zeroFill(this.seconds(), 2)\n );\n });\n\n function meridiem(token, lowercase) {\n addFormatToken(token, 0, 0, function () {\n return this.localeData().meridiem(\n this.hours(),\n this.minutes(),\n lowercase\n );\n });\n }\n\n meridiem('a', true);\n meridiem('A', false);\n\n // ALIASES\n\n addUnitAlias('hour', 'h');\n\n // PRIORITY\n addUnitPriority('hour', 13);\n\n // PARSING\n\n function matchMeridiem(isStrict, locale) {\n return locale._meridiemParse;\n }\n\n addRegexToken('a', matchMeridiem);\n addRegexToken('A', matchMeridiem);\n addRegexToken('H', match1to2);\n addRegexToken('h', match1to2);\n addRegexToken('k', match1to2);\n addRegexToken('HH', match1to2, match2);\n addRegexToken('hh', match1to2, match2);\n addRegexToken('kk', match1to2, match2);\n\n addRegexToken('hmm', match3to4);\n addRegexToken('hmmss', match5to6);\n addRegexToken('Hmm', match3to4);\n addRegexToken('Hmmss', match5to6);\n\n addParseToken(['H', 'HH'], HOUR);\n addParseToken(['k', 'kk'], function (input, array, config) {\n var kInput = toInt(input);\n array[HOUR] = kInput === 24 ? 0 : kInput;\n });\n addParseToken(['a', 'A'], function (input, array, config) {\n config._isPm = config._locale.isPM(input);\n config._meridiem = input;\n });\n addParseToken(['h', 'hh'], function (input, array, config) {\n array[HOUR] = toInt(input);\n getParsingFlags(config).bigHour = true;\n });\n addParseToken('hmm', function (input, array, config) {\n var pos = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos));\n array[MINUTE] = toInt(input.substr(pos));\n getParsingFlags(config).bigHour = true;\n });\n addParseToken('hmmss', function (input, array, config) {\n var pos1 = input.length - 4,\n pos2 = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos1));\n array[MINUTE] = toInt(input.substr(pos1, 2));\n array[SECOND] = toInt(input.substr(pos2));\n getParsingFlags(config).bigHour = true;\n });\n addParseToken('Hmm', function (input, array, config) {\n var pos = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos));\n array[MINUTE] = toInt(input.substr(pos));\n });\n addParseToken('Hmmss', function (input, array, config) {\n var pos1 = input.length - 4,\n pos2 = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos1));\n array[MINUTE] = toInt(input.substr(pos1, 2));\n array[SECOND] = toInt(input.substr(pos2));\n });\n\n // LOCALES\n\n function localeIsPM(input) {\n // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays\n // Using charAt should be more compatible.\n return (input + '').toLowerCase().charAt(0) === 'p';\n }\n\n var defaultLocaleMeridiemParse = /[ap]\\.?m?\\.?/i,\n // Setting the hour should keep the time, because the user explicitly\n // specified which hour they want. So trying to maintain the same hour (in\n // a new timezone) makes sense. Adding/subtracting hours does not follow\n // this rule.\n getSetHour = makeGetSet('Hours', true);\n\n function localeMeridiem(hours, minutes, isLower) {\n if (hours > 11) {\n return isLower ? 'pm' : 'PM';\n } else {\n return isLower ? 'am' : 'AM';\n }\n }\n\n var baseConfig = {\n calendar: defaultCalendar,\n longDateFormat: defaultLongDateFormat,\n invalidDate: defaultInvalidDate,\n ordinal: defaultOrdinal,\n dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,\n relativeTime: defaultRelativeTime,\n\n months: defaultLocaleMonths,\n monthsShort: defaultLocaleMonthsShort,\n\n week: defaultLocaleWeek,\n\n weekdays: defaultLocaleWeekdays,\n weekdaysMin: defaultLocaleWeekdaysMin,\n weekdaysShort: defaultLocaleWeekdaysShort,\n\n meridiemParse: defaultLocaleMeridiemParse,\n };\n\n // internal storage for locale config files\n var locales = {},\n localeFamilies = {},\n globalLocale;\n\n function commonPrefix(arr1, arr2) {\n var i,\n minl = Math.min(arr1.length, arr2.length);\n for (i = 0; i < minl; i += 1) {\n if (arr1[i] !== arr2[i]) {\n return i;\n }\n }\n return minl;\n }\n\n function normalizeLocale(key) {\n return key ? key.toLowerCase().replace('_', '-') : key;\n }\n\n // pick the locale from the array\n // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each\n // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root\n function chooseLocale(names) {\n var i = 0,\n j,\n next,\n locale,\n split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (\n next &&\n next.length >= j &&\n commonPrefix(split, next) >= j - 1\n ) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return globalLocale;\n }\n\n function loadLocale(name) {\n var oldLocale = null,\n aliasedRequire;\n // TODO: Find a better way to register and load all the locales in Node\n if (\n locales[name] === undefined &&\n typeof module !== 'undefined' &&\n module &&\n module.exports\n ) {\n try {\n oldLocale = globalLocale._abbr;\n aliasedRequire = require;\n __webpack_require__(1272)(\"./\" + name);\n getSetGlobalLocale(oldLocale);\n } catch (e) {\n // mark as not found to avoid repeating expensive file require call causing high CPU\n // when trying to find en-US, en_US, en-us for every format call\n locales[name] = null; // null means not found\n }\n }\n return locales[name];\n }\n\n // This function will load locale and then set the global locale. If\n // no arguments are passed in, it will simply return the current global\n // locale key.\n function getSetGlobalLocale(key, values) {\n var data;\n if (key) {\n if (isUndefined(values)) {\n data = getLocale(key);\n } else {\n data = defineLocale(key, values);\n }\n\n if (data) {\n // moment.duration._locale = moment._locale = data;\n globalLocale = data;\n } else {\n if (typeof console !== 'undefined' && console.warn) {\n //warn user if arguments are passed but the locale could not be set\n console.warn(\n 'Locale ' + key + ' not found. Did you forget to load it?'\n );\n }\n }\n }\n\n return globalLocale._abbr;\n }\n\n function defineLocale(name, config) {\n if (config !== null) {\n var locale,\n parentConfig = baseConfig;\n config.abbr = name;\n if (locales[name] != null) {\n deprecateSimple(\n 'defineLocaleOverride',\n 'use moment.updateLocale(localeName, config) to change ' +\n 'an existing locale. moment.defineLocale(localeName, ' +\n 'config) should only be used for creating a new locale ' +\n 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.'\n );\n parentConfig = locales[name]._config;\n } else if (config.parentLocale != null) {\n if (locales[config.parentLocale] != null) {\n parentConfig = locales[config.parentLocale]._config;\n } else {\n locale = loadLocale(config.parentLocale);\n if (locale != null) {\n parentConfig = locale._config;\n } else {\n if (!localeFamilies[config.parentLocale]) {\n localeFamilies[config.parentLocale] = [];\n }\n localeFamilies[config.parentLocale].push({\n name: name,\n config: config,\n });\n return null;\n }\n }\n }\n locales[name] = new Locale(mergeConfigs(parentConfig, config));\n\n if (localeFamilies[name]) {\n localeFamilies[name].forEach(function (x) {\n defineLocale(x.name, x.config);\n });\n }\n\n // backwards compat for now: also set the locale\n // make sure we set the locale AFTER all child locales have been\n // created, so we won't end up with the child locale set.\n getSetGlobalLocale(name);\n\n return locales[name];\n } else {\n // useful for testing\n delete locales[name];\n return null;\n }\n }\n\n function updateLocale(name, config) {\n if (config != null) {\n var locale,\n tmpLocale,\n parentConfig = baseConfig;\n\n if (locales[name] != null && locales[name].parentLocale != null) {\n // Update existing child locale in-place to avoid memory-leaks\n locales[name].set(mergeConfigs(locales[name]._config, config));\n } else {\n // MERGE\n tmpLocale = loadLocale(name);\n if (tmpLocale != null) {\n parentConfig = tmpLocale._config;\n }\n config = mergeConfigs(parentConfig, config);\n if (tmpLocale == null) {\n // updateLocale is called for creating a new locale\n // Set abbr so it will have a name (getters return\n // undefined otherwise).\n config.abbr = name;\n }\n locale = new Locale(config);\n locale.parentLocale = locales[name];\n locales[name] = locale;\n }\n\n // backwards compat for now: also set the locale\n getSetGlobalLocale(name);\n } else {\n // pass null for config to unupdate, useful for tests\n if (locales[name] != null) {\n if (locales[name].parentLocale != null) {\n locales[name] = locales[name].parentLocale;\n if (name === getSetGlobalLocale()) {\n getSetGlobalLocale(name);\n }\n } else if (locales[name] != null) {\n delete locales[name];\n }\n }\n }\n return locales[name];\n }\n\n // returns locale data\n function getLocale(key) {\n var locale;\n\n if (key && key._locale && key._locale._abbr) {\n key = key._locale._abbr;\n }\n\n if (!key) {\n return globalLocale;\n }\n\n if (!isArray(key)) {\n //short-circuit everything else\n locale = loadLocale(key);\n if (locale) {\n return locale;\n }\n key = [key];\n }\n\n return chooseLocale(key);\n }\n\n function listLocales() {\n return keys(locales);\n }\n\n function checkOverflow(m) {\n var overflow,\n a = m._a;\n\n if (a && getParsingFlags(m).overflow === -2) {\n overflow =\n a[MONTH] < 0 || a[MONTH] > 11\n ? MONTH\n : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH])\n ? DATE\n : a[HOUR] < 0 ||\n a[HOUR] > 24 ||\n (a[HOUR] === 24 &&\n (a[MINUTE] !== 0 ||\n a[SECOND] !== 0 ||\n a[MILLISECOND] !== 0))\n ? HOUR\n : a[MINUTE] < 0 || a[MINUTE] > 59\n ? MINUTE\n : a[SECOND] < 0 || a[SECOND] > 59\n ? SECOND\n : a[MILLISECOND] < 0 || a[MILLISECOND] > 999\n ? MILLISECOND\n : -1;\n\n if (\n getParsingFlags(m)._overflowDayOfYear &&\n (overflow < YEAR || overflow > DATE)\n ) {\n overflow = DATE;\n }\n if (getParsingFlags(m)._overflowWeeks && overflow === -1) {\n overflow = WEEK;\n }\n if (getParsingFlags(m)._overflowWeekday && overflow === -1) {\n overflow = WEEKDAY;\n }\n\n getParsingFlags(m).overflow = overflow;\n }\n\n return m;\n }\n\n // iso 8601 regex\n // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)\n var extendedIsoRegex = /^\\s*((?:[+-]\\d{6}|\\d{4})-(?:\\d\\d-\\d\\d|W\\d\\d-\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?::\\d\\d(?::\\d\\d(?:[.,]\\d+)?)?)?)([+-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,\n basicIsoRegex = /^\\s*((?:[+-]\\d{6}|\\d{4})(?:\\d\\d\\d\\d|W\\d\\d\\d|W\\d\\d|\\d\\d\\d|\\d\\d|))(?:(T| )(\\d\\d(?:\\d\\d(?:\\d\\d(?:[.,]\\d+)?)?)?)([+-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,\n tzRegex = /Z|[+-]\\d\\d(?::?\\d\\d)?/,\n isoDates = [\n ['YYYYYY-MM-DD', /[+-]\\d{6}-\\d\\d-\\d\\d/],\n ['YYYY-MM-DD', /\\d{4}-\\d\\d-\\d\\d/],\n ['GGGG-[W]WW-E', /\\d{4}-W\\d\\d-\\d/],\n ['GGGG-[W]WW', /\\d{4}-W\\d\\d/, false],\n ['YYYY-DDD', /\\d{4}-\\d{3}/],\n ['YYYY-MM', /\\d{4}-\\d\\d/, false],\n ['YYYYYYMMDD', /[+-]\\d{10}/],\n ['YYYYMMDD', /\\d{8}/],\n ['GGGG[W]WWE', /\\d{4}W\\d{3}/],\n ['GGGG[W]WW', /\\d{4}W\\d{2}/, false],\n ['YYYYDDD', /\\d{7}/],\n ['YYYYMM', /\\d{6}/, false],\n ['YYYY', /\\d{4}/, false],\n ],\n // iso time formats and regexes\n isoTimes = [\n ['HH:mm:ss.SSSS', /\\d\\d:\\d\\d:\\d\\d\\.\\d+/],\n ['HH:mm:ss,SSSS', /\\d\\d:\\d\\d:\\d\\d,\\d+/],\n ['HH:mm:ss', /\\d\\d:\\d\\d:\\d\\d/],\n ['HH:mm', /\\d\\d:\\d\\d/],\n ['HHmmss.SSSS', /\\d\\d\\d\\d\\d\\d\\.\\d+/],\n ['HHmmss,SSSS', /\\d\\d\\d\\d\\d\\d,\\d+/],\n ['HHmmss', /\\d\\d\\d\\d\\d\\d/],\n ['HHmm', /\\d\\d\\d\\d/],\n ['HH', /\\d\\d/],\n ],\n aspNetJsonRegex = /^\\/?Date\\((-?\\d+)/i,\n // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3\n rfc2822 = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\\s)?(\\d{1,2})\\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\s(\\d{2,4})\\s(\\d\\d):(\\d\\d)(?::(\\d\\d))?\\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\\d{4}))$/,\n obsOffsets = {\n UT: 0,\n GMT: 0,\n EDT: -4 * 60,\n EST: -5 * 60,\n CDT: -5 * 60,\n CST: -6 * 60,\n MDT: -6 * 60,\n MST: -7 * 60,\n PDT: -7 * 60,\n PST: -8 * 60,\n };\n\n // date from iso format\n function configFromISO(config) {\n var i,\n l,\n string = config._i,\n match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),\n allowTime,\n dateFormat,\n timeFormat,\n tzFormat;\n\n if (match) {\n getParsingFlags(config).iso = true;\n\n for (i = 0, l = isoDates.length; i < l; i++) {\n if (isoDates[i][1].exec(match[1])) {\n dateFormat = isoDates[i][0];\n allowTime = isoDates[i][2] !== false;\n break;\n }\n }\n if (dateFormat == null) {\n config._isValid = false;\n return;\n }\n if (match[3]) {\n for (i = 0, l = isoTimes.length; i < l; i++) {\n if (isoTimes[i][1].exec(match[3])) {\n // match[2] should be 'T' or space\n timeFormat = (match[2] || ' ') + isoTimes[i][0];\n break;\n }\n }\n if (timeFormat == null) {\n config._isValid = false;\n return;\n }\n }\n if (!allowTime && timeFormat != null) {\n config._isValid = false;\n return;\n }\n if (match[4]) {\n if (tzRegex.exec(match[4])) {\n tzFormat = 'Z';\n } else {\n config._isValid = false;\n return;\n }\n }\n config._f = dateFormat + (timeFormat || '') + (tzFormat || '');\n configFromStringAndFormat(config);\n } else {\n config._isValid = false;\n }\n }\n\n function extractFromRFC2822Strings(\n yearStr,\n monthStr,\n dayStr,\n hourStr,\n minuteStr,\n secondStr\n ) {\n var result = [\n untruncateYear(yearStr),\n defaultLocaleMonthsShort.indexOf(monthStr),\n parseInt(dayStr, 10),\n parseInt(hourStr, 10),\n parseInt(minuteStr, 10),\n ];\n\n if (secondStr) {\n result.push(parseInt(secondStr, 10));\n }\n\n return result;\n }\n\n function untruncateYear(yearStr) {\n var year = parseInt(yearStr, 10);\n if (year <= 49) {\n return 2000 + year;\n } else if (year <= 999) {\n return 1900 + year;\n }\n return year;\n }\n\n function preprocessRFC2822(s) {\n // Remove comments and folding whitespace and replace multiple-spaces with a single space\n return s\n .replace(/\\([^)]*\\)|[\\n\\t]/g, ' ')\n .replace(/(\\s\\s+)/g, ' ')\n .replace(/^\\s\\s*/, '')\n .replace(/\\s\\s*$/, '');\n }\n\n function checkWeekday(weekdayStr, parsedInput, config) {\n if (weekdayStr) {\n // TODO: Replace the vanilla JS Date object with an independent day-of-week check.\n var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr),\n weekdayActual = new Date(\n parsedInput[0],\n parsedInput[1],\n parsedInput[2]\n ).getDay();\n if (weekdayProvided !== weekdayActual) {\n getParsingFlags(config).weekdayMismatch = true;\n config._isValid = false;\n return false;\n }\n }\n return true;\n }\n\n function calculateOffset(obsOffset, militaryOffset, numOffset) {\n if (obsOffset) {\n return obsOffsets[obsOffset];\n } else if (militaryOffset) {\n // the only allowed military tz is Z\n return 0;\n } else {\n var hm = parseInt(numOffset, 10),\n m = hm % 100,\n h = (hm - m) / 100;\n return h * 60 + m;\n }\n }\n\n // date and time from ref 2822 format\n function configFromRFC2822(config) {\n var match = rfc2822.exec(preprocessRFC2822(config._i)),\n parsedArray;\n if (match) {\n parsedArray = extractFromRFC2822Strings(\n match[4],\n match[3],\n match[2],\n match[5],\n match[6],\n match[7]\n );\n if (!checkWeekday(match[1], parsedArray, config)) {\n return;\n }\n\n config._a = parsedArray;\n config._tzm = calculateOffset(match[8], match[9], match[10]);\n\n config._d = createUTCDate.apply(null, config._a);\n config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);\n\n getParsingFlags(config).rfc2822 = true;\n } else {\n config._isValid = false;\n }\n }\n\n // date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict\n function configFromString(config) {\n var matched = aspNetJsonRegex.exec(config._i);\n if (matched !== null) {\n config._d = new Date(+matched[1]);\n return;\n }\n\n configFromISO(config);\n if (config._isValid === false) {\n delete config._isValid;\n } else {\n return;\n }\n\n configFromRFC2822(config);\n if (config._isValid === false) {\n delete config._isValid;\n } else {\n return;\n }\n\n if (config._strict) {\n config._isValid = false;\n } else {\n // Final attempt, use Input Fallback\n hooks.createFromInputFallback(config);\n }\n }\n\n hooks.createFromInputFallback = deprecate(\n 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' +\n 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' +\n 'discouraged and will be removed in an upcoming major release. Please refer to ' +\n 'http://momentjs.com/guides/#/warnings/js-date/ for more info.',\n function (config) {\n config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));\n }\n );\n\n // Pick the first defined of two or three arguments.\n function defaults(a, b, c) {\n if (a != null) {\n return a;\n }\n if (b != null) {\n return b;\n }\n return c;\n }\n\n function currentDateArray(config) {\n // hooks is actually the exported moment object\n var nowValue = new Date(hooks.now());\n if (config._useUTC) {\n return [\n nowValue.getUTCFullYear(),\n nowValue.getUTCMonth(),\n nowValue.getUTCDate(),\n ];\n }\n return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];\n }\n\n // convert an array to a date.\n // the array should mirror the parameters below\n // note: all values past the year are optional and will default to the lowest possible value.\n // [year, month, day , hour, minute, second, millisecond]\n function configFromArray(config) {\n var i,\n date,\n input = [],\n currentDate,\n expectedWeekday,\n yearToUse;\n\n if (config._d) {\n return;\n }\n\n currentDate = currentDateArray(config);\n\n //compute day of the year from weeks and weekdays\n if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {\n dayOfYearFromWeekInfo(config);\n }\n\n //if the day of the year is set, figure out what it is\n if (config._dayOfYear != null) {\n yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);\n\n if (\n config._dayOfYear > daysInYear(yearToUse) ||\n config._dayOfYear === 0\n ) {\n getParsingFlags(config)._overflowDayOfYear = true;\n }\n\n date = createUTCDate(yearToUse, 0, config._dayOfYear);\n config._a[MONTH] = date.getUTCMonth();\n config._a[DATE] = date.getUTCDate();\n }\n\n // Default to current date.\n // * if no year, month, day of month are given, default to today\n // * if day of month is given, default month and year\n // * if month is given, default only year\n // * if year is given, don't default anything\n for (i = 0; i < 3 && config._a[i] == null; ++i) {\n config._a[i] = input[i] = currentDate[i];\n }\n\n // Zero out whatever was not defaulted, including time\n for (; i < 7; i++) {\n config._a[i] = input[i] =\n config._a[i] == null ? (i === 2 ? 1 : 0) : config._a[i];\n }\n\n // Check for 24:00:00.000\n if (\n config._a[HOUR] === 24 &&\n config._a[MINUTE] === 0 &&\n config._a[SECOND] === 0 &&\n config._a[MILLISECOND] === 0\n ) {\n config._nextDay = true;\n config._a[HOUR] = 0;\n }\n\n config._d = (config._useUTC ? createUTCDate : createDate).apply(\n null,\n input\n );\n expectedWeekday = config._useUTC\n ? config._d.getUTCDay()\n : config._d.getDay();\n\n // Apply timezone offset from input. The actual utcOffset can be changed\n // with parseZone.\n if (config._tzm != null) {\n config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);\n }\n\n if (config._nextDay) {\n config._a[HOUR] = 24;\n }\n\n // check for mismatching day of week\n if (\n config._w &&\n typeof config._w.d !== 'undefined' &&\n config._w.d !== expectedWeekday\n ) {\n getParsingFlags(config).weekdayMismatch = true;\n }\n }\n\n function dayOfYearFromWeekInfo(config) {\n var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek;\n\n w = config._w;\n if (w.GG != null || w.W != null || w.E != null) {\n dow = 1;\n doy = 4;\n\n // TODO: We need to take the current isoWeekYear, but that depends on\n // how we interpret now (local, utc, fixed offset). So create\n // a now version of current config (take local/utc/offset flags, and\n // create now).\n weekYear = defaults(\n w.GG,\n config._a[YEAR],\n weekOfYear(createLocal(), 1, 4).year\n );\n week = defaults(w.W, 1);\n weekday = defaults(w.E, 1);\n if (weekday < 1 || weekday > 7) {\n weekdayOverflow = true;\n }\n } else {\n dow = config._locale._week.dow;\n doy = config._locale._week.doy;\n\n curWeek = weekOfYear(createLocal(), dow, doy);\n\n weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);\n\n // Default to current week.\n week = defaults(w.w, curWeek.week);\n\n if (w.d != null) {\n // weekday -- low day numbers are considered next week\n weekday = w.d;\n if (weekday < 0 || weekday > 6) {\n weekdayOverflow = true;\n }\n } else if (w.e != null) {\n // local weekday -- counting starts from beginning of week\n weekday = w.e + dow;\n if (w.e < 0 || w.e > 6) {\n weekdayOverflow = true;\n }\n } else {\n // default to beginning of week\n weekday = dow;\n }\n }\n if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {\n getParsingFlags(config)._overflowWeeks = true;\n } else if (weekdayOverflow != null) {\n getParsingFlags(config)._overflowWeekday = true;\n } else {\n temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);\n config._a[YEAR] = temp.year;\n config._dayOfYear = temp.dayOfYear;\n }\n }\n\n // constant that refers to the ISO standard\n hooks.ISO_8601 = function () {};\n\n // constant that refers to the RFC 2822 form\n hooks.RFC_2822 = function () {};\n\n // date from string and format string\n function configFromStringAndFormat(config) {\n // TODO: Move this to another part of the creation flow to prevent circular deps\n if (config._f === hooks.ISO_8601) {\n configFromISO(config);\n return;\n }\n if (config._f === hooks.RFC_2822) {\n configFromRFC2822(config);\n return;\n }\n config._a = [];\n getParsingFlags(config).empty = true;\n\n // This array is used to make a Date, either with `new Date` or `Date.UTC`\n var string = '' + config._i,\n i,\n parsedInput,\n tokens,\n token,\n skipped,\n stringLength = string.length,\n totalParsedInputLength = 0,\n era;\n\n tokens =\n expandFormat(config._f, config._locale).match(formattingTokens) || [];\n\n for (i = 0; i < tokens.length; i++) {\n token = tokens[i];\n parsedInput = (string.match(getParseRegexForToken(token, config)) ||\n [])[0];\n // console.log('token', token, 'parsedInput', parsedInput,\n // 'regex', getParseRegexForToken(token, config));\n if (parsedInput) {\n skipped = string.substr(0, string.indexOf(parsedInput));\n if (skipped.length > 0) {\n getParsingFlags(config).unusedInput.push(skipped);\n }\n string = string.slice(\n string.indexOf(parsedInput) + parsedInput.length\n );\n totalParsedInputLength += parsedInput.length;\n }\n // don't parse if it's not a known token\n if (formatTokenFunctions[token]) {\n if (parsedInput) {\n getParsingFlags(config).empty = false;\n } else {\n getParsingFlags(config).unusedTokens.push(token);\n }\n addTimeToArrayFromToken(token, parsedInput, config);\n } else if (config._strict && !parsedInput) {\n getParsingFlags(config).unusedTokens.push(token);\n }\n }\n\n // add remaining unparsed input length to the string\n getParsingFlags(config).charsLeftOver =\n stringLength - totalParsedInputLength;\n if (string.length > 0) {\n getParsingFlags(config).unusedInput.push(string);\n }\n\n // clear _12h flag if hour is <= 12\n if (\n config._a[HOUR] <= 12 &&\n getParsingFlags(config).bigHour === true &&\n config._a[HOUR] > 0\n ) {\n getParsingFlags(config).bigHour = undefined;\n }\n\n getParsingFlags(config).parsedDateParts = config._a.slice(0);\n getParsingFlags(config).meridiem = config._meridiem;\n // handle meridiem\n config._a[HOUR] = meridiemFixWrap(\n config._locale,\n config._a[HOUR],\n config._meridiem\n );\n\n // handle era\n era = getParsingFlags(config).era;\n if (era !== null) {\n config._a[YEAR] = config._locale.erasConvertYear(era, config._a[YEAR]);\n }\n\n configFromArray(config);\n checkOverflow(config);\n }\n\n function meridiemFixWrap(locale, hour, meridiem) {\n var isPm;\n\n if (meridiem == null) {\n // nothing to do\n return hour;\n }\n if (locale.meridiemHour != null) {\n return locale.meridiemHour(hour, meridiem);\n } else if (locale.isPM != null) {\n // Fallback\n isPm = locale.isPM(meridiem);\n if (isPm && hour < 12) {\n hour += 12;\n }\n if (!isPm && hour === 12) {\n hour = 0;\n }\n return hour;\n } else {\n // this is not supposed to happen\n return hour;\n }\n }\n\n // date from string and array of format strings\n function configFromStringAndArray(config) {\n var tempConfig,\n bestMoment,\n scoreToBeat,\n i,\n currentScore,\n validFormatFound,\n bestFormatIsValid = false;\n\n if (config._f.length === 0) {\n getParsingFlags(config).invalidFormat = true;\n config._d = new Date(NaN);\n return;\n }\n\n for (i = 0; i < config._f.length; i++) {\n currentScore = 0;\n validFormatFound = false;\n tempConfig = copyConfig({}, config);\n if (config._useUTC != null) {\n tempConfig._useUTC = config._useUTC;\n }\n tempConfig._f = config._f[i];\n configFromStringAndFormat(tempConfig);\n\n if (isValid(tempConfig)) {\n validFormatFound = true;\n }\n\n // if there is any input that was not parsed add a penalty for that format\n currentScore += getParsingFlags(tempConfig).charsLeftOver;\n\n //or tokens\n currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;\n\n getParsingFlags(tempConfig).score = currentScore;\n\n if (!bestFormatIsValid) {\n if (\n scoreToBeat == null ||\n currentScore < scoreToBeat ||\n validFormatFound\n ) {\n scoreToBeat = currentScore;\n bestMoment = tempConfig;\n if (validFormatFound) {\n bestFormatIsValid = true;\n }\n }\n } else {\n if (currentScore < scoreToBeat) {\n scoreToBeat = currentScore;\n bestMoment = tempConfig;\n }\n }\n }\n\n extend(config, bestMoment || tempConfig);\n }\n\n function configFromObject(config) {\n if (config._d) {\n return;\n }\n\n var i = normalizeObjectUnits(config._i),\n dayOrDate = i.day === undefined ? i.date : i.day;\n config._a = map(\n [i.year, i.month, dayOrDate, i.hour, i.minute, i.second, i.millisecond],\n function (obj) {\n return obj && parseInt(obj, 10);\n }\n );\n\n configFromArray(config);\n }\n\n function createFromConfig(config) {\n var res = new Moment(checkOverflow(prepareConfig(config)));\n if (res._nextDay) {\n // Adding is smart enough around DST\n res.add(1, 'd');\n res._nextDay = undefined;\n }\n\n return res;\n }\n\n function prepareConfig(config) {\n var input = config._i,\n format = config._f;\n\n config._locale = config._locale || getLocale(config._l);\n\n if (input === null || (format === undefined && input === '')) {\n return createInvalid({ nullInput: true });\n }\n\n if (typeof input === 'string') {\n config._i = input = config._locale.preparse(input);\n }\n\n if (isMoment(input)) {\n return new Moment(checkOverflow(input));\n } else if (isDate(input)) {\n config._d = input;\n } else if (isArray(format)) {\n configFromStringAndArray(config);\n } else if (format) {\n configFromStringAndFormat(config);\n } else {\n configFromInput(config);\n }\n\n if (!isValid(config)) {\n config._d = null;\n }\n\n return config;\n }\n\n function configFromInput(config) {\n var input = config._i;\n if (isUndefined(input)) {\n config._d = new Date(hooks.now());\n } else if (isDate(input)) {\n config._d = new Date(input.valueOf());\n } else if (typeof input === 'string') {\n configFromString(config);\n } else if (isArray(input)) {\n config._a = map(input.slice(0), function (obj) {\n return parseInt(obj, 10);\n });\n configFromArray(config);\n } else if (isObject(input)) {\n configFromObject(config);\n } else if (isNumber(input)) {\n // from milliseconds\n config._d = new Date(input);\n } else {\n hooks.createFromInputFallback(config);\n }\n }\n\n function createLocalOrUTC(input, format, locale, strict, isUTC) {\n var c = {};\n\n if (format === true || format === false) {\n strict = format;\n format = undefined;\n }\n\n if (locale === true || locale === false) {\n strict = locale;\n locale = undefined;\n }\n\n if (\n (isObject(input) && isObjectEmpty(input)) ||\n (isArray(input) && input.length === 0)\n ) {\n input = undefined;\n }\n // object construction must be done this way.\n // https://github.com/moment/moment/issues/1423\n c._isAMomentObject = true;\n c._useUTC = c._isUTC = isUTC;\n c._l = locale;\n c._i = input;\n c._f = format;\n c._strict = strict;\n\n return createFromConfig(c);\n }\n\n function createLocal(input, format, locale, strict) {\n return createLocalOrUTC(input, format, locale, strict, false);\n }\n\n var prototypeMin = deprecate(\n 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',\n function () {\n var other = createLocal.apply(null, arguments);\n if (this.isValid() && other.isValid()) {\n return other < this ? this : other;\n } else {\n return createInvalid();\n }\n }\n ),\n prototypeMax = deprecate(\n 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',\n function () {\n var other = createLocal.apply(null, arguments);\n if (this.isValid() && other.isValid()) {\n return other > this ? this : other;\n } else {\n return createInvalid();\n }\n }\n );\n\n // Pick a moment m from moments so that m[fn](other) is true for all\n // other. This relies on the function fn to be transitive.\n //\n // moments should either be an array of moment objects or an array, whose\n // first element is an array of moment objects.\n function pickBy(fn, moments) {\n var res, i;\n if (moments.length === 1 && isArray(moments[0])) {\n moments = moments[0];\n }\n if (!moments.length) {\n return createLocal();\n }\n res = moments[0];\n for (i = 1; i < moments.length; ++i) {\n if (!moments[i].isValid() || moments[i][fn](res)) {\n res = moments[i];\n }\n }\n return res;\n }\n\n // TODO: Use [].sort instead?\n function min() {\n var args = [].slice.call(arguments, 0);\n\n return pickBy('isBefore', args);\n }\n\n function max() {\n var args = [].slice.call(arguments, 0);\n\n return pickBy('isAfter', args);\n }\n\n var now = function () {\n return Date.now ? Date.now() : +new Date();\n };\n\n var ordering = [\n 'year',\n 'quarter',\n 'month',\n 'week',\n 'day',\n 'hour',\n 'minute',\n 'second',\n 'millisecond',\n ];\n\n function isDurationValid(m) {\n var key,\n unitHasDecimal = false,\n i;\n for (key in m) {\n if (\n hasOwnProp(m, key) &&\n !(\n indexOf.call(ordering, key) !== -1 &&\n (m[key] == null || !isNaN(m[key]))\n )\n ) {\n return false;\n }\n }\n\n for (i = 0; i < ordering.length; ++i) {\n if (m[ordering[i]]) {\n if (unitHasDecimal) {\n return false; // only allow non-integers for smallest unit\n }\n if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {\n unitHasDecimal = true;\n }\n }\n }\n\n return true;\n }\n\n function isValid$1() {\n return this._isValid;\n }\n\n function createInvalid$1() {\n return createDuration(NaN);\n }\n\n function Duration(duration) {\n var normalizedInput = normalizeObjectUnits(duration),\n years = normalizedInput.year || 0,\n quarters = normalizedInput.quarter || 0,\n months = normalizedInput.month || 0,\n weeks = normalizedInput.week || normalizedInput.isoWeek || 0,\n days = normalizedInput.day || 0,\n hours = normalizedInput.hour || 0,\n minutes = normalizedInput.minute || 0,\n seconds = normalizedInput.second || 0,\n milliseconds = normalizedInput.millisecond || 0;\n\n this._isValid = isDurationValid(normalizedInput);\n\n // representation for dateAddRemove\n this._milliseconds =\n +milliseconds +\n seconds * 1e3 + // 1000\n minutes * 6e4 + // 1000 * 60\n hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978\n // Because of dateAddRemove treats 24 hours as different from a\n // day when working around DST, we need to store them separately\n this._days = +days + weeks * 7;\n // It is impossible to translate months into days without knowing\n // which months you are are talking about, so we have to store\n // it separately.\n this._months = +months + quarters * 3 + years * 12;\n\n this._data = {};\n\n this._locale = getLocale();\n\n this._bubble();\n }\n\n function isDuration(obj) {\n return obj instanceof Duration;\n }\n\n function absRound(number) {\n if (number < 0) {\n return Math.round(-1 * number) * -1;\n } else {\n return Math.round(number);\n }\n }\n\n // compare two arrays, return the number of differences\n function compareArrays(array1, array2, dontConvert) {\n var len = Math.min(array1.length, array2.length),\n lengthDiff = Math.abs(array1.length - array2.length),\n diffs = 0,\n i;\n for (i = 0; i < len; i++) {\n if (\n (dontConvert && array1[i] !== array2[i]) ||\n (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))\n ) {\n diffs++;\n }\n }\n return diffs + lengthDiff;\n }\n\n // FORMATTING\n\n function offset(token, separator) {\n addFormatToken(token, 0, 0, function () {\n var offset = this.utcOffset(),\n sign = '+';\n if (offset < 0) {\n offset = -offset;\n sign = '-';\n }\n return (\n sign +\n zeroFill(~~(offset / 60), 2) +\n separator +\n zeroFill(~~offset % 60, 2)\n );\n });\n }\n\n offset('Z', ':');\n offset('ZZ', '');\n\n // PARSING\n\n addRegexToken('Z', matchShortOffset);\n addRegexToken('ZZ', matchShortOffset);\n addParseToken(['Z', 'ZZ'], function (input, array, config) {\n config._useUTC = true;\n config._tzm = offsetFromString(matchShortOffset, input);\n });\n\n // HELPERS\n\n // timezone chunker\n // '+10:00' > ['10', '00']\n // '-1530' > ['-15', '30']\n var chunkOffset = /([\\+\\-]|\\d\\d)/gi;\n\n function offsetFromString(matcher, string) {\n var matches = (string || '').match(matcher),\n chunk,\n parts,\n minutes;\n\n if (matches === null) {\n return null;\n }\n\n chunk = matches[matches.length - 1] || [];\n parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];\n minutes = +(parts[1] * 60) + toInt(parts[2]);\n\n return minutes === 0 ? 0 : parts[0] === '+' ? minutes : -minutes;\n }\n\n // Return a moment from input, that is local/utc/zone equivalent to model.\n function cloneWithOffset(input, model) {\n var res, diff;\n if (model._isUTC) {\n res = model.clone();\n diff =\n (isMoment(input) || isDate(input)\n ? input.valueOf()\n : createLocal(input).valueOf()) - res.valueOf();\n // Use low-level api, because this fn is low-level api.\n res._d.setTime(res._d.valueOf() + diff);\n hooks.updateOffset(res, false);\n return res;\n } else {\n return createLocal(input).local();\n }\n }\n\n function getDateOffset(m) {\n // On Firefox.24 Date#getTimezoneOffset returns a floating point.\n // https://github.com/moment/moment/pull/1871\n return -Math.round(m._d.getTimezoneOffset());\n }\n\n // HOOKS\n\n // This function will be called whenever a moment is mutated.\n // It is intended to keep the offset in sync with the timezone.\n hooks.updateOffset = function () {};\n\n // MOMENTS\n\n // keepLocalTime = true means only change the timezone, without\n // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->\n // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset\n // +0200, so we adjust the time as needed, to be valid.\n //\n // Keeping the time actually adds/subtracts (one hour)\n // from the actual represented time. That is why we call updateOffset\n // a second time. In case it wants us to change the offset again\n // _changeInProgress == true case, then we have to adjust, because\n // there is no such time in the given timezone.\n function getSetOffset(input, keepLocalTime, keepMinutes) {\n var offset = this._offset || 0,\n localAdjust;\n if (!this.isValid()) {\n return input != null ? this : NaN;\n }\n if (input != null) {\n if (typeof input === 'string') {\n input = offsetFromString(matchShortOffset, input);\n if (input === null) {\n return this;\n }\n } else if (Math.abs(input) < 16 && !keepMinutes) {\n input = input * 60;\n }\n if (!this._isUTC && keepLocalTime) {\n localAdjust = getDateOffset(this);\n }\n this._offset = input;\n this._isUTC = true;\n if (localAdjust != null) {\n this.add(localAdjust, 'm');\n }\n if (offset !== input) {\n if (!keepLocalTime || this._changeInProgress) {\n addSubtract(\n this,\n createDuration(input - offset, 'm'),\n 1,\n false\n );\n } else if (!this._changeInProgress) {\n this._changeInProgress = true;\n hooks.updateOffset(this, true);\n this._changeInProgress = null;\n }\n }\n return this;\n } else {\n return this._isUTC ? offset : getDateOffset(this);\n }\n }\n\n function getSetZone(input, keepLocalTime) {\n if (input != null) {\n if (typeof input !== 'string') {\n input = -input;\n }\n\n this.utcOffset(input, keepLocalTime);\n\n return this;\n } else {\n return -this.utcOffset();\n }\n }\n\n function setOffsetToUTC(keepLocalTime) {\n return this.utcOffset(0, keepLocalTime);\n }\n\n function setOffsetToLocal(keepLocalTime) {\n if (this._isUTC) {\n this.utcOffset(0, keepLocalTime);\n this._isUTC = false;\n\n if (keepLocalTime) {\n this.subtract(getDateOffset(this), 'm');\n }\n }\n return this;\n }\n\n function setOffsetToParsedOffset() {\n if (this._tzm != null) {\n this.utcOffset(this._tzm, false, true);\n } else if (typeof this._i === 'string') {\n var tZone = offsetFromString(matchOffset, this._i);\n if (tZone != null) {\n this.utcOffset(tZone);\n } else {\n this.utcOffset(0, true);\n }\n }\n return this;\n }\n\n function hasAlignedHourOffset(input) {\n if (!this.isValid()) {\n return false;\n }\n input = input ? createLocal(input).utcOffset() : 0;\n\n return (this.utcOffset() - input) % 60 === 0;\n }\n\n function isDaylightSavingTime() {\n return (\n this.utcOffset() > this.clone().month(0).utcOffset() ||\n this.utcOffset() > this.clone().month(5).utcOffset()\n );\n }\n\n function isDaylightSavingTimeShifted() {\n if (!isUndefined(this._isDSTShifted)) {\n return this._isDSTShifted;\n }\n\n var c = {},\n other;\n\n copyConfig(c, this);\n c = prepareConfig(c);\n\n if (c._a) {\n other = c._isUTC ? createUTC(c._a) : createLocal(c._a);\n this._isDSTShifted =\n this.isValid() && compareArrays(c._a, other.toArray()) > 0;\n } else {\n this._isDSTShifted = false;\n }\n\n return this._isDSTShifted;\n }\n\n function isLocal() {\n return this.isValid() ? !this._isUTC : false;\n }\n\n function isUtcOffset() {\n return this.isValid() ? this._isUTC : false;\n }\n\n function isUtc() {\n return this.isValid() ? this._isUTC && this._offset === 0 : false;\n }\n\n // ASP.NET json date format regex\n var aspNetRegex = /^(-|\\+)?(?:(\\d*)[. ])?(\\d+):(\\d+)(?::(\\d+)(\\.\\d*)?)?$/,\n // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html\n // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere\n // and further modified to allow for strings containing both week and day\n isoRegex = /^(-|\\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;\n\n function createDuration(input, key) {\n var duration = input,\n // matching against regexp is expensive, do it on demand\n match = null,\n sign,\n ret,\n diffRes;\n\n if (isDuration(input)) {\n duration = {\n ms: input._milliseconds,\n d: input._days,\n M: input._months,\n };\n } else if (isNumber(input) || !isNaN(+input)) {\n duration = {};\n if (key) {\n duration[key] = +input;\n } else {\n duration.milliseconds = +input;\n }\n } else if ((match = aspNetRegex.exec(input))) {\n sign = match[1] === '-' ? -1 : 1;\n duration = {\n y: 0,\n d: toInt(match[DATE]) * sign,\n h: toInt(match[HOUR]) * sign,\n m: toInt(match[MINUTE]) * sign,\n s: toInt(match[SECOND]) * sign,\n ms: toInt(absRound(match[MILLISECOND] * 1000)) * sign, // the millisecond decimal point is included in the match\n };\n } else if ((match = isoRegex.exec(input))) {\n sign = match[1] === '-' ? -1 : 1;\n duration = {\n y: parseIso(match[2], sign),\n M: parseIso(match[3], sign),\n w: parseIso(match[4], sign),\n d: parseIso(match[5], sign),\n h: parseIso(match[6], sign),\n m: parseIso(match[7], sign),\n s: parseIso(match[8], sign),\n };\n } else if (duration == null) {\n // checks for null or undefined\n duration = {};\n } else if (\n typeof duration === 'object' &&\n ('from' in duration || 'to' in duration)\n ) {\n diffRes = momentsDifference(\n createLocal(duration.from),\n createLocal(duration.to)\n );\n\n duration = {};\n duration.ms = diffRes.milliseconds;\n duration.M = diffRes.months;\n }\n\n ret = new Duration(duration);\n\n if (isDuration(input) && hasOwnProp(input, '_locale')) {\n ret._locale = input._locale;\n }\n\n if (isDuration(input) && hasOwnProp(input, '_isValid')) {\n ret._isValid = input._isValid;\n }\n\n return ret;\n }\n\n createDuration.fn = Duration.prototype;\n createDuration.invalid = createInvalid$1;\n\n function parseIso(inp, sign) {\n // We'd normally use ~~inp for this, but unfortunately it also\n // converts floats to ints.\n // inp may be undefined, so careful calling replace on it.\n var res = inp && parseFloat(inp.replace(',', '.'));\n // apply sign while we're at it\n return (isNaN(res) ? 0 : res) * sign;\n }\n\n function positiveMomentsDifference(base, other) {\n var res = {};\n\n res.months =\n other.month() - base.month() + (other.year() - base.year()) * 12;\n if (base.clone().add(res.months, 'M').isAfter(other)) {\n --res.months;\n }\n\n res.milliseconds = +other - +base.clone().add(res.months, 'M');\n\n return res;\n }\n\n function momentsDifference(base, other) {\n var res;\n if (!(base.isValid() && other.isValid())) {\n return { milliseconds: 0, months: 0 };\n }\n\n other = cloneWithOffset(other, base);\n if (base.isBefore(other)) {\n res = positiveMomentsDifference(base, other);\n } else {\n res = positiveMomentsDifference(other, base);\n res.milliseconds = -res.milliseconds;\n res.months = -res.months;\n }\n\n return res;\n }\n\n // TODO: remove 'name' arg after deprecation is removed\n function createAdder(direction, name) {\n return function (val, period) {\n var dur, tmp;\n //invert the arguments, but complain about it\n if (period !== null && !isNaN(+period)) {\n deprecateSimple(\n name,\n 'moment().' +\n name +\n '(period, number) is deprecated. Please use moment().' +\n name +\n '(number, period). ' +\n 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.'\n );\n tmp = val;\n val = period;\n period = tmp;\n }\n\n dur = createDuration(val, period);\n addSubtract(this, dur, direction);\n return this;\n };\n }\n\n function addSubtract(mom, duration, isAdding, updateOffset) {\n var milliseconds = duration._milliseconds,\n days = absRound(duration._days),\n months = absRound(duration._months);\n\n if (!mom.isValid()) {\n // No op\n return;\n }\n\n updateOffset = updateOffset == null ? true : updateOffset;\n\n if (months) {\n setMonth(mom, get(mom, 'Month') + months * isAdding);\n }\n if (days) {\n set$1(mom, 'Date', get(mom, 'Date') + days * isAdding);\n }\n if (milliseconds) {\n mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);\n }\n if (updateOffset) {\n hooks.updateOffset(mom, days || months);\n }\n }\n\n var add = createAdder(1, 'add'),\n subtract = createAdder(-1, 'subtract');\n\n function isString(input) {\n return typeof input === 'string' || input instanceof String;\n }\n\n // type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined\n function isMomentInput(input) {\n return (\n isMoment(input) ||\n isDate(input) ||\n isString(input) ||\n isNumber(input) ||\n isNumberOrStringArray(input) ||\n isMomentInputObject(input) ||\n input === null ||\n input === undefined\n );\n }\n\n function isMomentInputObject(input) {\n var objectTest = isObject(input) && !isObjectEmpty(input),\n propertyTest = false,\n properties = [\n 'years',\n 'year',\n 'y',\n 'months',\n 'month',\n 'M',\n 'days',\n 'day',\n 'd',\n 'dates',\n 'date',\n 'D',\n 'hours',\n 'hour',\n 'h',\n 'minutes',\n 'minute',\n 'm',\n 'seconds',\n 'second',\n 's',\n 'milliseconds',\n 'millisecond',\n 'ms',\n ],\n i,\n property;\n\n for (i = 0; i < properties.length; i += 1) {\n property = properties[i];\n propertyTest = propertyTest || hasOwnProp(input, property);\n }\n\n return objectTest && propertyTest;\n }\n\n function isNumberOrStringArray(input) {\n var arrayTest = isArray(input),\n dataTypeTest = false;\n if (arrayTest) {\n dataTypeTest =\n input.filter(function (item) {\n return !isNumber(item) && isString(input);\n }).length === 0;\n }\n return arrayTest && dataTypeTest;\n }\n\n function isCalendarSpec(input) {\n var objectTest = isObject(input) && !isObjectEmpty(input),\n propertyTest = false,\n properties = [\n 'sameDay',\n 'nextDay',\n 'lastDay',\n 'nextWeek',\n 'lastWeek',\n 'sameElse',\n ],\n i,\n property;\n\n for (i = 0; i < properties.length; i += 1) {\n property = properties[i];\n propertyTest = propertyTest || hasOwnProp(input, property);\n }\n\n return objectTest && propertyTest;\n }\n\n function getCalendarFormat(myMoment, now) {\n var diff = myMoment.diff(now, 'days', true);\n return diff < -6\n ? 'sameElse'\n : diff < -1\n ? 'lastWeek'\n : diff < 0\n ? 'lastDay'\n : diff < 1\n ? 'sameDay'\n : diff < 2\n ? 'nextDay'\n : diff < 7\n ? 'nextWeek'\n : 'sameElse';\n }\n\n function calendar$1(time, formats) {\n // Support for single parameter, formats only overload to the calendar function\n if (arguments.length === 1) {\n if (isMomentInput(arguments[0])) {\n time = arguments[0];\n formats = undefined;\n } else if (isCalendarSpec(arguments[0])) {\n formats = arguments[0];\n time = undefined;\n }\n }\n // We want to compare the start of today, vs this.\n // Getting start-of-today depends on whether we're local/utc/offset or not.\n var now = time || createLocal(),\n sod = cloneWithOffset(now, this).startOf('day'),\n format = hooks.calendarFormat(this, sod) || 'sameElse',\n output =\n formats &&\n (isFunction(formats[format])\n ? formats[format].call(this, now)\n : formats[format]);\n\n return this.format(\n output || this.localeData().calendar(format, this, createLocal(now))\n );\n }\n\n function clone() {\n return new Moment(this);\n }\n\n function isAfter(input, units) {\n var localInput = isMoment(input) ? input : createLocal(input);\n if (!(this.isValid() && localInput.isValid())) {\n return false;\n }\n units = normalizeUnits(units) || 'millisecond';\n if (units === 'millisecond') {\n return this.valueOf() > localInput.valueOf();\n } else {\n return localInput.valueOf() < this.clone().startOf(units).valueOf();\n }\n }\n\n function isBefore(input, units) {\n var localInput = isMoment(input) ? input : createLocal(input);\n if (!(this.isValid() && localInput.isValid())) {\n return false;\n }\n units = normalizeUnits(units) || 'millisecond';\n if (units === 'millisecond') {\n return this.valueOf() < localInput.valueOf();\n } else {\n return this.clone().endOf(units).valueOf() < localInput.valueOf();\n }\n }\n\n function isBetween(from, to, units, inclusivity) {\n var localFrom = isMoment(from) ? from : createLocal(from),\n localTo = isMoment(to) ? to : createLocal(to);\n if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) {\n return false;\n }\n inclusivity = inclusivity || '()';\n return (\n (inclusivity[0] === '('\n ? this.isAfter(localFrom, units)\n : !this.isBefore(localFrom, units)) &&\n (inclusivity[1] === ')'\n ? this.isBefore(localTo, units)\n : !this.isAfter(localTo, units))\n );\n }\n\n function isSame(input, units) {\n var localInput = isMoment(input) ? input : createLocal(input),\n inputMs;\n if (!(this.isValid() && localInput.isValid())) {\n return false;\n }\n units = normalizeUnits(units) || 'millisecond';\n if (units === 'millisecond') {\n return this.valueOf() === localInput.valueOf();\n } else {\n inputMs = localInput.valueOf();\n return (\n this.clone().startOf(units).valueOf() <= inputMs &&\n inputMs <= this.clone().endOf(units).valueOf()\n );\n }\n }\n\n function isSameOrAfter(input, units) {\n return this.isSame(input, units) || this.isAfter(input, units);\n }\n\n function isSameOrBefore(input, units) {\n return this.isSame(input, units) || this.isBefore(input, units);\n }\n\n function diff(input, units, asFloat) {\n var that, zoneDelta, output;\n\n if (!this.isValid()) {\n return NaN;\n }\n\n that = cloneWithOffset(input, this);\n\n if (!that.isValid()) {\n return NaN;\n }\n\n zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;\n\n units = normalizeUnits(units);\n\n switch (units) {\n case 'year':\n output = monthDiff(this, that) / 12;\n break;\n case 'month':\n output = monthDiff(this, that);\n break;\n case 'quarter':\n output = monthDiff(this, that) / 3;\n break;\n case 'second':\n output = (this - that) / 1e3;\n break; // 1000\n case 'minute':\n output = (this - that) / 6e4;\n break; // 1000 * 60\n case 'hour':\n output = (this - that) / 36e5;\n break; // 1000 * 60 * 60\n case 'day':\n output = (this - that - zoneDelta) / 864e5;\n break; // 1000 * 60 * 60 * 24, negate dst\n case 'week':\n output = (this - that - zoneDelta) / 6048e5;\n break; // 1000 * 60 * 60 * 24 * 7, negate dst\n default:\n output = this - that;\n }\n\n return asFloat ? output : absFloor(output);\n }\n\n function monthDiff(a, b) {\n if (a.date() < b.date()) {\n // end-of-month calculations work correct when the start month has more\n // days than the end month.\n return -monthDiff(b, a);\n }\n // difference in months\n var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month()),\n // b is in (anchor - 1 month, anchor + 1 month)\n anchor = a.clone().add(wholeMonthDiff, 'months'),\n anchor2,\n adjust;\n\n if (b - anchor < 0) {\n anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');\n // linear across the month\n adjust = (b - anchor) / (anchor - anchor2);\n } else {\n anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');\n // linear across the month\n adjust = (b - anchor) / (anchor2 - anchor);\n }\n\n //check for negative zero, return zero if negative zero\n return -(wholeMonthDiff + adjust) || 0;\n }\n\n hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';\n hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';\n\n function toString() {\n return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');\n }\n\n function toISOString(keepOffset) {\n if (!this.isValid()) {\n return null;\n }\n var utc = keepOffset !== true,\n m = utc ? this.clone().utc() : this;\n if (m.year() < 0 || m.year() > 9999) {\n return formatMoment(\n m,\n utc\n ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]'\n : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ'\n );\n }\n if (isFunction(Date.prototype.toISOString)) {\n // native implementation is ~50x faster, use it when we can\n if (utc) {\n return this.toDate().toISOString();\n } else {\n return new Date(this.valueOf() + this.utcOffset() * 60 * 1000)\n .toISOString()\n .replace('Z', formatMoment(m, 'Z'));\n }\n }\n return formatMoment(\n m,\n utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ'\n );\n }\n\n /**\n * Return a human readable representation of a moment that can\n * also be evaluated to get a new moment which is the same\n *\n * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects\n */\n function inspect() {\n if (!this.isValid()) {\n return 'moment.invalid(/* ' + this._i + ' */)';\n }\n var func = 'moment',\n zone = '',\n prefix,\n year,\n datetime,\n suffix;\n if (!this.isLocal()) {\n func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone';\n zone = 'Z';\n }\n prefix = '[' + func + '(\"]';\n year = 0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY';\n datetime = '-MM-DD[T]HH:mm:ss.SSS';\n suffix = zone + '[\")]';\n\n return this.format(prefix + year + datetime + suffix);\n }\n\n function format(inputString) {\n if (!inputString) {\n inputString = this.isUtc()\n ? hooks.defaultFormatUtc\n : hooks.defaultFormat;\n }\n var output = formatMoment(this, inputString);\n return this.localeData().postformat(output);\n }\n\n function from(time, withoutSuffix) {\n if (\n this.isValid() &&\n ((isMoment(time) && time.isValid()) || createLocal(time).isValid())\n ) {\n return createDuration({ to: this, from: time })\n .locale(this.locale())\n .humanize(!withoutSuffix);\n } else {\n return this.localeData().invalidDate();\n }\n }\n\n function fromNow(withoutSuffix) {\n return this.from(createLocal(), withoutSuffix);\n }\n\n function to(time, withoutSuffix) {\n if (\n this.isValid() &&\n ((isMoment(time) && time.isValid()) || createLocal(time).isValid())\n ) {\n return createDuration({ from: this, to: time })\n .locale(this.locale())\n .humanize(!withoutSuffix);\n } else {\n return this.localeData().invalidDate();\n }\n }\n\n function toNow(withoutSuffix) {\n return this.to(createLocal(), withoutSuffix);\n }\n\n // If passed a locale key, it will set the locale for this\n // instance. Otherwise, it will return the locale configuration\n // variables for this instance.\n function locale(key) {\n var newLocaleData;\n\n if (key === undefined) {\n return this._locale._abbr;\n } else {\n newLocaleData = getLocale(key);\n if (newLocaleData != null) {\n this._locale = newLocaleData;\n }\n return this;\n }\n }\n\n var lang = deprecate(\n 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',\n function (key) {\n if (key === undefined) {\n return this.localeData();\n } else {\n return this.locale(key);\n }\n }\n );\n\n function localeData() {\n return this._locale;\n }\n\n var MS_PER_SECOND = 1000,\n MS_PER_MINUTE = 60 * MS_PER_SECOND,\n MS_PER_HOUR = 60 * MS_PER_MINUTE,\n MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR;\n\n // actual modulo - handles negative numbers (for dates before 1970):\n function mod$1(dividend, divisor) {\n return ((dividend % divisor) + divisor) % divisor;\n }\n\n function localStartOfDate(y, m, d) {\n // the date constructor remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0) {\n // preserve leap years using a full 400 year cycle, then reset\n return new Date(y + 400, m, d) - MS_PER_400_YEARS;\n } else {\n return new Date(y, m, d).valueOf();\n }\n }\n\n function utcStartOfDate(y, m, d) {\n // Date.UTC remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0) {\n // preserve leap years using a full 400 year cycle, then reset\n return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS;\n } else {\n return Date.UTC(y, m, d);\n }\n }\n\n function startOf(units) {\n var time, startOfDate;\n units = normalizeUnits(units);\n if (units === undefined || units === 'millisecond' || !this.isValid()) {\n return this;\n }\n\n startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;\n\n switch (units) {\n case 'year':\n time = startOfDate(this.year(), 0, 1);\n break;\n case 'quarter':\n time = startOfDate(\n this.year(),\n this.month() - (this.month() % 3),\n 1\n );\n break;\n case 'month':\n time = startOfDate(this.year(), this.month(), 1);\n break;\n case 'week':\n time = startOfDate(\n this.year(),\n this.month(),\n this.date() - this.weekday()\n );\n break;\n case 'isoWeek':\n time = startOfDate(\n this.year(),\n this.month(),\n this.date() - (this.isoWeekday() - 1)\n );\n break;\n case 'day':\n case 'date':\n time = startOfDate(this.year(), this.month(), this.date());\n break;\n case 'hour':\n time = this._d.valueOf();\n time -= mod$1(\n time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),\n MS_PER_HOUR\n );\n break;\n case 'minute':\n time = this._d.valueOf();\n time -= mod$1(time, MS_PER_MINUTE);\n break;\n case 'second':\n time = this._d.valueOf();\n time -= mod$1(time, MS_PER_SECOND);\n break;\n }\n\n this._d.setTime(time);\n hooks.updateOffset(this, true);\n return this;\n }\n\n function endOf(units) {\n var time, startOfDate;\n units = normalizeUnits(units);\n if (units === undefined || units === 'millisecond' || !this.isValid()) {\n return this;\n }\n\n startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;\n\n switch (units) {\n case 'year':\n time = startOfDate(this.year() + 1, 0, 1) - 1;\n break;\n case 'quarter':\n time =\n startOfDate(\n this.year(),\n this.month() - (this.month() % 3) + 3,\n 1\n ) - 1;\n break;\n case 'month':\n time = startOfDate(this.year(), this.month() + 1, 1) - 1;\n break;\n case 'week':\n time =\n startOfDate(\n this.year(),\n this.month(),\n this.date() - this.weekday() + 7\n ) - 1;\n break;\n case 'isoWeek':\n time =\n startOfDate(\n this.year(),\n this.month(),\n this.date() - (this.isoWeekday() - 1) + 7\n ) - 1;\n break;\n case 'day':\n case 'date':\n time = startOfDate(this.year(), this.month(), this.date() + 1) - 1;\n break;\n case 'hour':\n time = this._d.valueOf();\n time +=\n MS_PER_HOUR -\n mod$1(\n time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),\n MS_PER_HOUR\n ) -\n 1;\n break;\n case 'minute':\n time = this._d.valueOf();\n time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1;\n break;\n case 'second':\n time = this._d.valueOf();\n time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1;\n break;\n }\n\n this._d.setTime(time);\n hooks.updateOffset(this, true);\n return this;\n }\n\n function valueOf() {\n return this._d.valueOf() - (this._offset || 0) * 60000;\n }\n\n function unix() {\n return Math.floor(this.valueOf() / 1000);\n }\n\n function toDate() {\n return new Date(this.valueOf());\n }\n\n function toArray() {\n var m = this;\n return [\n m.year(),\n m.month(),\n m.date(),\n m.hour(),\n m.minute(),\n m.second(),\n m.millisecond(),\n ];\n }\n\n function toObject() {\n var m = this;\n return {\n years: m.year(),\n months: m.month(),\n date: m.date(),\n hours: m.hours(),\n minutes: m.minutes(),\n seconds: m.seconds(),\n milliseconds: m.milliseconds(),\n };\n }\n\n function toJSON() {\n // new Date(NaN).toJSON() === null\n return this.isValid() ? this.toISOString() : null;\n }\n\n function isValid$2() {\n return isValid(this);\n }\n\n function parsingFlags() {\n return extend({}, getParsingFlags(this));\n }\n\n function invalidAt() {\n return getParsingFlags(this).overflow;\n }\n\n function creationData() {\n return {\n input: this._i,\n format: this._f,\n locale: this._locale,\n isUTC: this._isUTC,\n strict: this._strict,\n };\n }\n\n addFormatToken('N', 0, 0, 'eraAbbr');\n addFormatToken('NN', 0, 0, 'eraAbbr');\n addFormatToken('NNN', 0, 0, 'eraAbbr');\n addFormatToken('NNNN', 0, 0, 'eraName');\n addFormatToken('NNNNN', 0, 0, 'eraNarrow');\n\n addFormatToken('y', ['y', 1], 'yo', 'eraYear');\n addFormatToken('y', ['yy', 2], 0, 'eraYear');\n addFormatToken('y', ['yyy', 3], 0, 'eraYear');\n addFormatToken('y', ['yyyy', 4], 0, 'eraYear');\n\n addRegexToken('N', matchEraAbbr);\n addRegexToken('NN', matchEraAbbr);\n addRegexToken('NNN', matchEraAbbr);\n addRegexToken('NNNN', matchEraName);\n addRegexToken('NNNNN', matchEraNarrow);\n\n addParseToken(['N', 'NN', 'NNN', 'NNNN', 'NNNNN'], function (\n input,\n array,\n config,\n token\n ) {\n var era = config._locale.erasParse(input, token, config._strict);\n if (era) {\n getParsingFlags(config).era = era;\n } else {\n getParsingFlags(config).invalidEra = input;\n }\n });\n\n addRegexToken('y', matchUnsigned);\n addRegexToken('yy', matchUnsigned);\n addRegexToken('yyy', matchUnsigned);\n addRegexToken('yyyy', matchUnsigned);\n addRegexToken('yo', matchEraYearOrdinal);\n\n addParseToken(['y', 'yy', 'yyy', 'yyyy'], YEAR);\n addParseToken(['yo'], function (input, array, config, token) {\n var match;\n if (config._locale._eraYearOrdinalRegex) {\n match = input.match(config._locale._eraYearOrdinalRegex);\n }\n\n if (config._locale.eraYearOrdinalParse) {\n array[YEAR] = config._locale.eraYearOrdinalParse(input, match);\n } else {\n array[YEAR] = parseInt(input, 10);\n }\n });\n\n function localeEras(m, format) {\n var i,\n l,\n date,\n eras = this._eras || getLocale('en')._eras;\n for (i = 0, l = eras.length; i < l; ++i) {\n switch (typeof eras[i].since) {\n case 'string':\n // truncate time\n date = hooks(eras[i].since).startOf('day');\n eras[i].since = date.valueOf();\n break;\n }\n\n switch (typeof eras[i].until) {\n case 'undefined':\n eras[i].until = +Infinity;\n break;\n case 'string':\n // truncate time\n date = hooks(eras[i].until).startOf('day').valueOf();\n eras[i].until = date.valueOf();\n break;\n }\n }\n return eras;\n }\n\n function localeErasParse(eraName, format, strict) {\n var i,\n l,\n eras = this.eras(),\n name,\n abbr,\n narrow;\n eraName = eraName.toUpperCase();\n\n for (i = 0, l = eras.length; i < l; ++i) {\n name = eras[i].name.toUpperCase();\n abbr = eras[i].abbr.toUpperCase();\n narrow = eras[i].narrow.toUpperCase();\n\n if (strict) {\n switch (format) {\n case 'N':\n case 'NN':\n case 'NNN':\n if (abbr === eraName) {\n return eras[i];\n }\n break;\n\n case 'NNNN':\n if (name === eraName) {\n return eras[i];\n }\n break;\n\n case 'NNNNN':\n if (narrow === eraName) {\n return eras[i];\n }\n break;\n }\n } else if ([name, abbr, narrow].indexOf(eraName) >= 0) {\n return eras[i];\n }\n }\n }\n\n function localeErasConvertYear(era, year) {\n var dir = era.since <= era.until ? +1 : -1;\n if (year === undefined) {\n return hooks(era.since).year();\n } else {\n return hooks(era.since).year() + (year - era.offset) * dir;\n }\n }\n\n function getEraName() {\n var i,\n l,\n val,\n eras = this.localeData().eras();\n for (i = 0, l = eras.length; i < l; ++i) {\n // truncate time\n val = this.startOf('day').valueOf();\n\n if (eras[i].since <= val && val <= eras[i].until) {\n return eras[i].name;\n }\n if (eras[i].until <= val && val <= eras[i].since) {\n return eras[i].name;\n }\n }\n\n return '';\n }\n\n function getEraNarrow() {\n var i,\n l,\n val,\n eras = this.localeData().eras();\n for (i = 0, l = eras.length; i < l; ++i) {\n // truncate time\n val = this.startOf('day').valueOf();\n\n if (eras[i].since <= val && val <= eras[i].until) {\n return eras[i].narrow;\n }\n if (eras[i].until <= val && val <= eras[i].since) {\n return eras[i].narrow;\n }\n }\n\n return '';\n }\n\n function getEraAbbr() {\n var i,\n l,\n val,\n eras = this.localeData().eras();\n for (i = 0, l = eras.length; i < l; ++i) {\n // truncate time\n val = this.startOf('day').valueOf();\n\n if (eras[i].since <= val && val <= eras[i].until) {\n return eras[i].abbr;\n }\n if (eras[i].until <= val && val <= eras[i].since) {\n return eras[i].abbr;\n }\n }\n\n return '';\n }\n\n function getEraYear() {\n var i,\n l,\n dir,\n val,\n eras = this.localeData().eras();\n for (i = 0, l = eras.length; i < l; ++i) {\n dir = eras[i].since <= eras[i].until ? +1 : -1;\n\n // truncate time\n val = this.startOf('day').valueOf();\n\n if (\n (eras[i].since <= val && val <= eras[i].until) ||\n (eras[i].until <= val && val <= eras[i].since)\n ) {\n return (\n (this.year() - hooks(eras[i].since).year()) * dir +\n eras[i].offset\n );\n }\n }\n\n return this.year();\n }\n\n function erasNameRegex(isStrict) {\n if (!hasOwnProp(this, '_erasNameRegex')) {\n computeErasParse.call(this);\n }\n return isStrict ? this._erasNameRegex : this._erasRegex;\n }\n\n function erasAbbrRegex(isStrict) {\n if (!hasOwnProp(this, '_erasAbbrRegex')) {\n computeErasParse.call(this);\n }\n return isStrict ? this._erasAbbrRegex : this._erasRegex;\n }\n\n function erasNarrowRegex(isStrict) {\n if (!hasOwnProp(this, '_erasNarrowRegex')) {\n computeErasParse.call(this);\n }\n return isStrict ? this._erasNarrowRegex : this._erasRegex;\n }\n\n function matchEraAbbr(isStrict, locale) {\n return locale.erasAbbrRegex(isStrict);\n }\n\n function matchEraName(isStrict, locale) {\n return locale.erasNameRegex(isStrict);\n }\n\n function matchEraNarrow(isStrict, locale) {\n return locale.erasNarrowRegex(isStrict);\n }\n\n function matchEraYearOrdinal(isStrict, locale) {\n return locale._eraYearOrdinalRegex || matchUnsigned;\n }\n\n function computeErasParse() {\n var abbrPieces = [],\n namePieces = [],\n narrowPieces = [],\n mixedPieces = [],\n i,\n l,\n eras = this.eras();\n\n for (i = 0, l = eras.length; i < l; ++i) {\n namePieces.push(regexEscape(eras[i].name));\n abbrPieces.push(regexEscape(eras[i].abbr));\n narrowPieces.push(regexEscape(eras[i].narrow));\n\n mixedPieces.push(regexEscape(eras[i].name));\n mixedPieces.push(regexEscape(eras[i].abbr));\n mixedPieces.push(regexEscape(eras[i].narrow));\n }\n\n this._erasRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');\n this._erasNameRegex = new RegExp('^(' + namePieces.join('|') + ')', 'i');\n this._erasAbbrRegex = new RegExp('^(' + abbrPieces.join('|') + ')', 'i');\n this._erasNarrowRegex = new RegExp(\n '^(' + narrowPieces.join('|') + ')',\n 'i'\n );\n }\n\n // FORMATTING\n\n addFormatToken(0, ['gg', 2], 0, function () {\n return this.weekYear() % 100;\n });\n\n addFormatToken(0, ['GG', 2], 0, function () {\n return this.isoWeekYear() % 100;\n });\n\n function addWeekYearFormatToken(token, getter) {\n addFormatToken(0, [token, token.length], 0, getter);\n }\n\n addWeekYearFormatToken('gggg', 'weekYear');\n addWeekYearFormatToken('ggggg', 'weekYear');\n addWeekYearFormatToken('GGGG', 'isoWeekYear');\n addWeekYearFormatToken('GGGGG', 'isoWeekYear');\n\n // ALIASES\n\n addUnitAlias('weekYear', 'gg');\n addUnitAlias('isoWeekYear', 'GG');\n\n // PRIORITY\n\n addUnitPriority('weekYear', 1);\n addUnitPriority('isoWeekYear', 1);\n\n // PARSING\n\n addRegexToken('G', matchSigned);\n addRegexToken('g', matchSigned);\n addRegexToken('GG', match1to2, match2);\n addRegexToken('gg', match1to2, match2);\n addRegexToken('GGGG', match1to4, match4);\n addRegexToken('gggg', match1to4, match4);\n addRegexToken('GGGGG', match1to6, match6);\n addRegexToken('ggggg', match1to6, match6);\n\n addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (\n input,\n week,\n config,\n token\n ) {\n week[token.substr(0, 2)] = toInt(input);\n });\n\n addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {\n week[token] = hooks.parseTwoDigitYear(input);\n });\n\n // MOMENTS\n\n function getSetWeekYear(input) {\n return getSetWeekYearHelper.call(\n this,\n input,\n this.week(),\n this.weekday(),\n this.localeData()._week.dow,\n this.localeData()._week.doy\n );\n }\n\n function getSetISOWeekYear(input) {\n return getSetWeekYearHelper.call(\n this,\n input,\n this.isoWeek(),\n this.isoWeekday(),\n 1,\n 4\n );\n }\n\n function getISOWeeksInYear() {\n return weeksInYear(this.year(), 1, 4);\n }\n\n function getISOWeeksInISOWeekYear() {\n return weeksInYear(this.isoWeekYear(), 1, 4);\n }\n\n function getWeeksInYear() {\n var weekInfo = this.localeData()._week;\n return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);\n }\n\n function getWeeksInWeekYear() {\n var weekInfo = this.localeData()._week;\n return weeksInYear(this.weekYear(), weekInfo.dow, weekInfo.doy);\n }\n\n function getSetWeekYearHelper(input, week, weekday, dow, doy) {\n var weeksTarget;\n if (input == null) {\n return weekOfYear(this, dow, doy).year;\n } else {\n weeksTarget = weeksInYear(input, dow, doy);\n if (week > weeksTarget) {\n week = weeksTarget;\n }\n return setWeekAll.call(this, input, week, weekday, dow, doy);\n }\n }\n\n function setWeekAll(weekYear, week, weekday, dow, doy) {\n var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),\n date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);\n\n this.year(date.getUTCFullYear());\n this.month(date.getUTCMonth());\n this.date(date.getUTCDate());\n return this;\n }\n\n // FORMATTING\n\n addFormatToken('Q', 0, 'Qo', 'quarter');\n\n // ALIASES\n\n addUnitAlias('quarter', 'Q');\n\n // PRIORITY\n\n addUnitPriority('quarter', 7);\n\n // PARSING\n\n addRegexToken('Q', match1);\n addParseToken('Q', function (input, array) {\n array[MONTH] = (toInt(input) - 1) * 3;\n });\n\n // MOMENTS\n\n function getSetQuarter(input) {\n return input == null\n ? Math.ceil((this.month() + 1) / 3)\n : this.month((input - 1) * 3 + (this.month() % 3));\n }\n\n // FORMATTING\n\n addFormatToken('D', ['DD', 2], 'Do', 'date');\n\n // ALIASES\n\n addUnitAlias('date', 'D');\n\n // PRIORITY\n addUnitPriority('date', 9);\n\n // PARSING\n\n addRegexToken('D', match1to2);\n addRegexToken('DD', match1to2, match2);\n addRegexToken('Do', function (isStrict, locale) {\n // TODO: Remove \"ordinalParse\" fallback in next major release.\n return isStrict\n ? locale._dayOfMonthOrdinalParse || locale._ordinalParse\n : locale._dayOfMonthOrdinalParseLenient;\n });\n\n addParseToken(['D', 'DD'], DATE);\n addParseToken('Do', function (input, array) {\n array[DATE] = toInt(input.match(match1to2)[0]);\n });\n\n // MOMENTS\n\n var getSetDayOfMonth = makeGetSet('Date', true);\n\n // FORMATTING\n\n addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');\n\n // ALIASES\n\n addUnitAlias('dayOfYear', 'DDD');\n\n // PRIORITY\n addUnitPriority('dayOfYear', 4);\n\n // PARSING\n\n addRegexToken('DDD', match1to3);\n addRegexToken('DDDD', match3);\n addParseToken(['DDD', 'DDDD'], function (input, array, config) {\n config._dayOfYear = toInt(input);\n });\n\n // HELPERS\n\n // MOMENTS\n\n function getSetDayOfYear(input) {\n var dayOfYear =\n Math.round(\n (this.clone().startOf('day') - this.clone().startOf('year')) / 864e5\n ) + 1;\n return input == null ? dayOfYear : this.add(input - dayOfYear, 'd');\n }\n\n // FORMATTING\n\n addFormatToken('m', ['mm', 2], 0, 'minute');\n\n // ALIASES\n\n addUnitAlias('minute', 'm');\n\n // PRIORITY\n\n addUnitPriority('minute', 14);\n\n // PARSING\n\n addRegexToken('m', match1to2);\n addRegexToken('mm', match1to2, match2);\n addParseToken(['m', 'mm'], MINUTE);\n\n // MOMENTS\n\n var getSetMinute = makeGetSet('Minutes', false);\n\n // FORMATTING\n\n addFormatToken('s', ['ss', 2], 0, 'second');\n\n // ALIASES\n\n addUnitAlias('second', 's');\n\n // PRIORITY\n\n addUnitPriority('second', 15);\n\n // PARSING\n\n addRegexToken('s', match1to2);\n addRegexToken('ss', match1to2, match2);\n addParseToken(['s', 'ss'], SECOND);\n\n // MOMENTS\n\n var getSetSecond = makeGetSet('Seconds', false);\n\n // FORMATTING\n\n addFormatToken('S', 0, 0, function () {\n return ~~(this.millisecond() / 100);\n });\n\n addFormatToken(0, ['SS', 2], 0, function () {\n return ~~(this.millisecond() / 10);\n });\n\n addFormatToken(0, ['SSS', 3], 0, 'millisecond');\n addFormatToken(0, ['SSSS', 4], 0, function () {\n return this.millisecond() * 10;\n });\n addFormatToken(0, ['SSSSS', 5], 0, function () {\n return this.millisecond() * 100;\n });\n addFormatToken(0, ['SSSSSS', 6], 0, function () {\n return this.millisecond() * 1000;\n });\n addFormatToken(0, ['SSSSSSS', 7], 0, function () {\n return this.millisecond() * 10000;\n });\n addFormatToken(0, ['SSSSSSSS', 8], 0, function () {\n return this.millisecond() * 100000;\n });\n addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {\n return this.millisecond() * 1000000;\n });\n\n // ALIASES\n\n addUnitAlias('millisecond', 'ms');\n\n // PRIORITY\n\n addUnitPriority('millisecond', 16);\n\n // PARSING\n\n addRegexToken('S', match1to3, match1);\n addRegexToken('SS', match1to3, match2);\n addRegexToken('SSS', match1to3, match3);\n\n var token, getSetMillisecond;\n for (token = 'SSSS'; token.length <= 9; token += 'S') {\n addRegexToken(token, matchUnsigned);\n }\n\n function parseMs(input, array) {\n array[MILLISECOND] = toInt(('0.' + input) * 1000);\n }\n\n for (token = 'S'; token.length <= 9; token += 'S') {\n addParseToken(token, parseMs);\n }\n\n getSetMillisecond = makeGetSet('Milliseconds', false);\n\n // FORMATTING\n\n addFormatToken('z', 0, 0, 'zoneAbbr');\n addFormatToken('zz', 0, 0, 'zoneName');\n\n // MOMENTS\n\n function getZoneAbbr() {\n return this._isUTC ? 'UTC' : '';\n }\n\n function getZoneName() {\n return this._isUTC ? 'Coordinated Universal Time' : '';\n }\n\n var proto = Moment.prototype;\n\n proto.add = add;\n proto.calendar = calendar$1;\n proto.clone = clone;\n proto.diff = diff;\n proto.endOf = endOf;\n proto.format = format;\n proto.from = from;\n proto.fromNow = fromNow;\n proto.to = to;\n proto.toNow = toNow;\n proto.get = stringGet;\n proto.invalidAt = invalidAt;\n proto.isAfter = isAfter;\n proto.isBefore = isBefore;\n proto.isBetween = isBetween;\n proto.isSame = isSame;\n proto.isSameOrAfter = isSameOrAfter;\n proto.isSameOrBefore = isSameOrBefore;\n proto.isValid = isValid$2;\n proto.lang = lang;\n proto.locale = locale;\n proto.localeData = localeData;\n proto.max = prototypeMax;\n proto.min = prototypeMin;\n proto.parsingFlags = parsingFlags;\n proto.set = stringSet;\n proto.startOf = startOf;\n proto.subtract = subtract;\n proto.toArray = toArray;\n proto.toObject = toObject;\n proto.toDate = toDate;\n proto.toISOString = toISOString;\n proto.inspect = inspect;\n if (typeof Symbol !== 'undefined' && Symbol.for != null) {\n proto[Symbol.for('nodejs.util.inspect.custom')] = function () {\n return 'Moment<' + this.format() + '>';\n };\n }\n proto.toJSON = toJSON;\n proto.toString = toString;\n proto.unix = unix;\n proto.valueOf = valueOf;\n proto.creationData = creationData;\n proto.eraName = getEraName;\n proto.eraNarrow = getEraNarrow;\n proto.eraAbbr = getEraAbbr;\n proto.eraYear = getEraYear;\n proto.year = getSetYear;\n proto.isLeapYear = getIsLeapYear;\n proto.weekYear = getSetWeekYear;\n proto.isoWeekYear = getSetISOWeekYear;\n proto.quarter = proto.quarters = getSetQuarter;\n proto.month = getSetMonth;\n proto.daysInMonth = getDaysInMonth;\n proto.week = proto.weeks = getSetWeek;\n proto.isoWeek = proto.isoWeeks = getSetISOWeek;\n proto.weeksInYear = getWeeksInYear;\n proto.weeksInWeekYear = getWeeksInWeekYear;\n proto.isoWeeksInYear = getISOWeeksInYear;\n proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear;\n proto.date = getSetDayOfMonth;\n proto.day = proto.days = getSetDayOfWeek;\n proto.weekday = getSetLocaleDayOfWeek;\n proto.isoWeekday = getSetISODayOfWeek;\n proto.dayOfYear = getSetDayOfYear;\n proto.hour = proto.hours = getSetHour;\n proto.minute = proto.minutes = getSetMinute;\n proto.second = proto.seconds = getSetSecond;\n proto.millisecond = proto.milliseconds = getSetMillisecond;\n proto.utcOffset = getSetOffset;\n proto.utc = setOffsetToUTC;\n proto.local = setOffsetToLocal;\n proto.parseZone = setOffsetToParsedOffset;\n proto.hasAlignedHourOffset = hasAlignedHourOffset;\n proto.isDST = isDaylightSavingTime;\n proto.isLocal = isLocal;\n proto.isUtcOffset = isUtcOffset;\n proto.isUtc = isUtc;\n proto.isUTC = isUtc;\n proto.zoneAbbr = getZoneAbbr;\n proto.zoneName = getZoneName;\n proto.dates = deprecate(\n 'dates accessor is deprecated. Use date instead.',\n getSetDayOfMonth\n );\n proto.months = deprecate(\n 'months accessor is deprecated. Use month instead',\n getSetMonth\n );\n proto.years = deprecate(\n 'years accessor is deprecated. Use year instead',\n getSetYear\n );\n proto.zone = deprecate(\n 'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/',\n getSetZone\n );\n proto.isDSTShifted = deprecate(\n 'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information',\n isDaylightSavingTimeShifted\n );\n\n function createUnix(input) {\n return createLocal(input * 1000);\n }\n\n function createInZone() {\n return createLocal.apply(null, arguments).parseZone();\n }\n\n function preParsePostFormat(string) {\n return string;\n }\n\n var proto$1 = Locale.prototype;\n\n proto$1.calendar = calendar;\n proto$1.longDateFormat = longDateFormat;\n proto$1.invalidDate = invalidDate;\n proto$1.ordinal = ordinal;\n proto$1.preparse = preParsePostFormat;\n proto$1.postformat = preParsePostFormat;\n proto$1.relativeTime = relativeTime;\n proto$1.pastFuture = pastFuture;\n proto$1.set = set;\n proto$1.eras = localeEras;\n proto$1.erasParse = localeErasParse;\n proto$1.erasConvertYear = localeErasConvertYear;\n proto$1.erasAbbrRegex = erasAbbrRegex;\n proto$1.erasNameRegex = erasNameRegex;\n proto$1.erasNarrowRegex = erasNarrowRegex;\n\n proto$1.months = localeMonths;\n proto$1.monthsShort = localeMonthsShort;\n proto$1.monthsParse = localeMonthsParse;\n proto$1.monthsRegex = monthsRegex;\n proto$1.monthsShortRegex = monthsShortRegex;\n proto$1.week = localeWeek;\n proto$1.firstDayOfYear = localeFirstDayOfYear;\n proto$1.firstDayOfWeek = localeFirstDayOfWeek;\n\n proto$1.weekdays = localeWeekdays;\n proto$1.weekdaysMin = localeWeekdaysMin;\n proto$1.weekdaysShort = localeWeekdaysShort;\n proto$1.weekdaysParse = localeWeekdaysParse;\n\n proto$1.weekdaysRegex = weekdaysRegex;\n proto$1.weekdaysShortRegex = weekdaysShortRegex;\n proto$1.weekdaysMinRegex = weekdaysMinRegex;\n\n proto$1.isPM = localeIsPM;\n proto$1.meridiem = localeMeridiem;\n\n function get$1(format, index, field, setter) {\n var locale = getLocale(),\n utc = createUTC().set(setter, index);\n return locale[field](utc, format);\n }\n\n function listMonthsImpl(format, index, field) {\n if (isNumber(format)) {\n index = format;\n format = undefined;\n }\n\n format = format || '';\n\n if (index != null) {\n return get$1(format, index, field, 'month');\n }\n\n var i,\n out = [];\n for (i = 0; i < 12; i++) {\n out[i] = get$1(format, i, field, 'month');\n }\n return out;\n }\n\n // ()\n // (5)\n // (fmt, 5)\n // (fmt)\n // (true)\n // (true, 5)\n // (true, fmt, 5)\n // (true, fmt)\n function listWeekdaysImpl(localeSorted, format, index, field) {\n if (typeof localeSorted === 'boolean') {\n if (isNumber(format)) {\n index = format;\n format = undefined;\n }\n\n format = format || '';\n } else {\n format = localeSorted;\n index = format;\n localeSorted = false;\n\n if (isNumber(format)) {\n index = format;\n format = undefined;\n }\n\n format = format || '';\n }\n\n var locale = getLocale(),\n shift = localeSorted ? locale._week.dow : 0,\n i,\n out = [];\n\n if (index != null) {\n return get$1(format, (index + shift) % 7, field, 'day');\n }\n\n for (i = 0; i < 7; i++) {\n out[i] = get$1(format, (i + shift) % 7, field, 'day');\n }\n return out;\n }\n\n function listMonths(format, index) {\n return listMonthsImpl(format, index, 'months');\n }\n\n function listMonthsShort(format, index) {\n return listMonthsImpl(format, index, 'monthsShort');\n }\n\n function listWeekdays(localeSorted, format, index) {\n return listWeekdaysImpl(localeSorted, format, index, 'weekdays');\n }\n\n function listWeekdaysShort(localeSorted, format, index) {\n return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');\n }\n\n function listWeekdaysMin(localeSorted, format, index) {\n return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');\n }\n\n getSetGlobalLocale('en', {\n eras: [\n {\n since: '0001-01-01',\n until: +Infinity,\n offset: 1,\n name: 'Anno Domini',\n narrow: 'AD',\n abbr: 'AD',\n },\n {\n since: '0000-12-31',\n until: -Infinity,\n offset: 1,\n name: 'Before Christ',\n narrow: 'BC',\n abbr: 'BC',\n },\n ],\n dayOfMonthOrdinalParse: /\\d{1,2}(th|st|nd|rd)/,\n ordinal: function (number) {\n var b = number % 10,\n output =\n toInt((number % 100) / 10) === 1\n ? 'th'\n : b === 1\n ? 'st'\n : b === 2\n ? 'nd'\n : b === 3\n ? 'rd'\n : 'th';\n return number + output;\n },\n });\n\n // Side effect imports\n\n hooks.lang = deprecate(\n 'moment.lang is deprecated. Use moment.locale instead.',\n getSetGlobalLocale\n );\n hooks.langData = deprecate(\n 'moment.langData is deprecated. Use moment.localeData instead.',\n getLocale\n );\n\n var mathAbs = Math.abs;\n\n function abs() {\n var data = this._data;\n\n this._milliseconds = mathAbs(this._milliseconds);\n this._days = mathAbs(this._days);\n this._months = mathAbs(this._months);\n\n data.milliseconds = mathAbs(data.milliseconds);\n data.seconds = mathAbs(data.seconds);\n data.minutes = mathAbs(data.minutes);\n data.hours = mathAbs(data.hours);\n data.months = mathAbs(data.months);\n data.years = mathAbs(data.years);\n\n return this;\n }\n\n function addSubtract$1(duration, input, value, direction) {\n var other = createDuration(input, value);\n\n duration._milliseconds += direction * other._milliseconds;\n duration._days += direction * other._days;\n duration._months += direction * other._months;\n\n return duration._bubble();\n }\n\n // supports only 2.0-style add(1, 's') or add(duration)\n function add$1(input, value) {\n return addSubtract$1(this, input, value, 1);\n }\n\n // supports only 2.0-style subtract(1, 's') or subtract(duration)\n function subtract$1(input, value) {\n return addSubtract$1(this, input, value, -1);\n }\n\n function absCeil(number) {\n if (number < 0) {\n return Math.floor(number);\n } else {\n return Math.ceil(number);\n }\n }\n\n function bubble() {\n var milliseconds = this._milliseconds,\n days = this._days,\n months = this._months,\n data = this._data,\n seconds,\n minutes,\n hours,\n years,\n monthsFromDays;\n\n // if we have a mix of positive and negative values, bubble down first\n // check: https://github.com/moment/moment/issues/2166\n if (\n !(\n (milliseconds >= 0 && days >= 0 && months >= 0) ||\n (milliseconds <= 0 && days <= 0 && months <= 0)\n )\n ) {\n milliseconds += absCeil(monthsToDays(months) + days) * 864e5;\n days = 0;\n months = 0;\n }\n\n // The following code bubbles up values, see the tests for\n // examples of what that means.\n data.milliseconds = milliseconds % 1000;\n\n seconds = absFloor(milliseconds / 1000);\n data.seconds = seconds % 60;\n\n minutes = absFloor(seconds / 60);\n data.minutes = minutes % 60;\n\n hours = absFloor(minutes / 60);\n data.hours = hours % 24;\n\n days += absFloor(hours / 24);\n\n // convert days to months\n monthsFromDays = absFloor(daysToMonths(days));\n months += monthsFromDays;\n days -= absCeil(monthsToDays(monthsFromDays));\n\n // 12 months -> 1 year\n years = absFloor(months / 12);\n months %= 12;\n\n data.days = days;\n data.months = months;\n data.years = years;\n\n return this;\n }\n\n function daysToMonths(days) {\n // 400 years have 146097 days (taking into account leap year rules)\n // 400 years have 12 months === 4800\n return (days * 4800) / 146097;\n }\n\n function monthsToDays(months) {\n // the reverse of daysToMonths\n return (months * 146097) / 4800;\n }\n\n function as(units) {\n if (!this.isValid()) {\n return NaN;\n }\n var days,\n months,\n milliseconds = this._milliseconds;\n\n units = normalizeUnits(units);\n\n if (units === 'month' || units === 'quarter' || units === 'year') {\n days = this._days + milliseconds / 864e5;\n months = this._months + daysToMonths(days);\n switch (units) {\n case 'month':\n return months;\n case 'quarter':\n return months / 3;\n case 'year':\n return months / 12;\n }\n } else {\n // handle milliseconds separately because of floating point math errors (issue #1867)\n days = this._days + Math.round(monthsToDays(this._months));\n switch (units) {\n case 'week':\n return days / 7 + milliseconds / 6048e5;\n case 'day':\n return days + milliseconds / 864e5;\n case 'hour':\n return days * 24 + milliseconds / 36e5;\n case 'minute':\n return days * 1440 + milliseconds / 6e4;\n case 'second':\n return days * 86400 + milliseconds / 1000;\n // Math.floor prevents floating point math errors here\n case 'millisecond':\n return Math.floor(days * 864e5) + milliseconds;\n default:\n throw new Error('Unknown unit ' + units);\n }\n }\n }\n\n // TODO: Use this.as('ms')?\n function valueOf$1() {\n if (!this.isValid()) {\n return NaN;\n }\n return (\n this._milliseconds +\n this._days * 864e5 +\n (this._months % 12) * 2592e6 +\n toInt(this._months / 12) * 31536e6\n );\n }\n\n function makeAs(alias) {\n return function () {\n return this.as(alias);\n };\n }\n\n var asMilliseconds = makeAs('ms'),\n asSeconds = makeAs('s'),\n asMinutes = makeAs('m'),\n asHours = makeAs('h'),\n asDays = makeAs('d'),\n asWeeks = makeAs('w'),\n asMonths = makeAs('M'),\n asQuarters = makeAs('Q'),\n asYears = makeAs('y');\n\n function clone$1() {\n return createDuration(this);\n }\n\n function get$2(units) {\n units = normalizeUnits(units);\n return this.isValid() ? this[units + 's']() : NaN;\n }\n\n function makeGetter(name) {\n return function () {\n return this.isValid() ? this._data[name] : NaN;\n };\n }\n\n var milliseconds = makeGetter('milliseconds'),\n seconds = makeGetter('seconds'),\n minutes = makeGetter('minutes'),\n hours = makeGetter('hours'),\n days = makeGetter('days'),\n months = makeGetter('months'),\n years = makeGetter('years');\n\n function weeks() {\n return absFloor(this.days() / 7);\n }\n\n var round = Math.round,\n thresholds = {\n ss: 44, // a few seconds to seconds\n s: 45, // seconds to minute\n m: 45, // minutes to hour\n h: 22, // hours to day\n d: 26, // days to month/week\n w: null, // weeks to month\n M: 11, // months to year\n };\n\n // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize\n function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {\n return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);\n }\n\n function relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) {\n var duration = createDuration(posNegDuration).abs(),\n seconds = round(duration.as('s')),\n minutes = round(duration.as('m')),\n hours = round(duration.as('h')),\n days = round(duration.as('d')),\n months = round(duration.as('M')),\n weeks = round(duration.as('w')),\n years = round(duration.as('y')),\n a =\n (seconds <= thresholds.ss && ['s', seconds]) ||\n (seconds < thresholds.s && ['ss', seconds]) ||\n (minutes <= 1 && ['m']) ||\n (minutes < thresholds.m && ['mm', minutes]) ||\n (hours <= 1 && ['h']) ||\n (hours < thresholds.h && ['hh', hours]) ||\n (days <= 1 && ['d']) ||\n (days < thresholds.d && ['dd', days]);\n\n if (thresholds.w != null) {\n a =\n a ||\n (weeks <= 1 && ['w']) ||\n (weeks < thresholds.w && ['ww', weeks]);\n }\n a = a ||\n (months <= 1 && ['M']) ||\n (months < thresholds.M && ['MM', months]) ||\n (years <= 1 && ['y']) || ['yy', years];\n\n a[2] = withoutSuffix;\n a[3] = +posNegDuration > 0;\n a[4] = locale;\n return substituteTimeAgo.apply(null, a);\n }\n\n // This function allows you to set the rounding function for relative time strings\n function getSetRelativeTimeRounding(roundingFunction) {\n if (roundingFunction === undefined) {\n return round;\n }\n if (typeof roundingFunction === 'function') {\n round = roundingFunction;\n return true;\n }\n return false;\n }\n\n // This function allows you to set a threshold for relative time strings\n function getSetRelativeTimeThreshold(threshold, limit) {\n if (thresholds[threshold] === undefined) {\n return false;\n }\n if (limit === undefined) {\n return thresholds[threshold];\n }\n thresholds[threshold] = limit;\n if (threshold === 's') {\n thresholds.ss = limit - 1;\n }\n return true;\n }\n\n function humanize(argWithSuffix, argThresholds) {\n if (!this.isValid()) {\n return this.localeData().invalidDate();\n }\n\n var withSuffix = false,\n th = thresholds,\n locale,\n output;\n\n if (typeof argWithSuffix === 'object') {\n argThresholds = argWithSuffix;\n argWithSuffix = false;\n }\n if (typeof argWithSuffix === 'boolean') {\n withSuffix = argWithSuffix;\n }\n if (typeof argThresholds === 'object') {\n th = Object.assign({}, thresholds, argThresholds);\n if (argThresholds.s != null && argThresholds.ss == null) {\n th.ss = argThresholds.s - 1;\n }\n }\n\n locale = this.localeData();\n output = relativeTime$1(this, !withSuffix, th, locale);\n\n if (withSuffix) {\n output = locale.pastFuture(+this, output);\n }\n\n return locale.postformat(output);\n }\n\n var abs$1 = Math.abs;\n\n function sign(x) {\n return (x > 0) - (x < 0) || +x;\n }\n\n function toISOString$1() {\n // for ISO strings we do not use the normal bubbling rules:\n // * milliseconds bubble up until they become hours\n // * days do not bubble at all\n // * months bubble up until they become years\n // This is because there is no context-free conversion between hours and days\n // (think of clock changes)\n // and also not between days and months (28-31 days per month)\n if (!this.isValid()) {\n return this.localeData().invalidDate();\n }\n\n var seconds = abs$1(this._milliseconds) / 1000,\n days = abs$1(this._days),\n months = abs$1(this._months),\n minutes,\n hours,\n years,\n s,\n total = this.asSeconds(),\n totalSign,\n ymSign,\n daysSign,\n hmsSign;\n\n if (!total) {\n // this is the same as C#'s (Noda) and python (isodate)...\n // but not other JS (goog.date)\n return 'P0D';\n }\n\n // 3600 seconds -> 60 minutes -> 1 hour\n minutes = absFloor(seconds / 60);\n hours = absFloor(minutes / 60);\n seconds %= 60;\n minutes %= 60;\n\n // 12 months -> 1 year\n years = absFloor(months / 12);\n months %= 12;\n\n // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js\n s = seconds ? seconds.toFixed(3).replace(/\\.?0+$/, '') : '';\n\n totalSign = total < 0 ? '-' : '';\n ymSign = sign(this._months) !== sign(total) ? '-' : '';\n daysSign = sign(this._days) !== sign(total) ? '-' : '';\n hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';\n\n return (\n totalSign +\n 'P' +\n (years ? ymSign + years + 'Y' : '') +\n (months ? ymSign + months + 'M' : '') +\n (days ? daysSign + days + 'D' : '') +\n (hours || minutes || seconds ? 'T' : '') +\n (hours ? hmsSign + hours + 'H' : '') +\n (minutes ? hmsSign + minutes + 'M' : '') +\n (seconds ? hmsSign + s + 'S' : '')\n );\n }\n\n var proto$2 = Duration.prototype;\n\n proto$2.isValid = isValid$1;\n proto$2.abs = abs;\n proto$2.add = add$1;\n proto$2.subtract = subtract$1;\n proto$2.as = as;\n proto$2.asMilliseconds = asMilliseconds;\n proto$2.asSeconds = asSeconds;\n proto$2.asMinutes = asMinutes;\n proto$2.asHours = asHours;\n proto$2.asDays = asDays;\n proto$2.asWeeks = asWeeks;\n proto$2.asMonths = asMonths;\n proto$2.asQuarters = asQuarters;\n proto$2.asYears = asYears;\n proto$2.valueOf = valueOf$1;\n proto$2._bubble = bubble;\n proto$2.clone = clone$1;\n proto$2.get = get$2;\n proto$2.milliseconds = milliseconds;\n proto$2.seconds = seconds;\n proto$2.minutes = minutes;\n proto$2.hours = hours;\n proto$2.days = days;\n proto$2.weeks = weeks;\n proto$2.months = months;\n proto$2.years = years;\n proto$2.humanize = humanize;\n proto$2.toISOString = toISOString$1;\n proto$2.toString = toISOString$1;\n proto$2.toJSON = toISOString$1;\n proto$2.locale = locale;\n proto$2.localeData = localeData;\n\n proto$2.toIsoString = deprecate(\n 'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)',\n toISOString$1\n );\n proto$2.lang = lang;\n\n // FORMATTING\n\n addFormatToken('X', 0, 0, 'unix');\n addFormatToken('x', 0, 0, 'valueOf');\n\n // PARSING\n\n addRegexToken('x', matchSigned);\n addRegexToken('X', matchTimestamp);\n addParseToken('X', function (input, array, config) {\n config._d = new Date(parseFloat(input) * 1000);\n });\n addParseToken('x', function (input, array, config) {\n config._d = new Date(toInt(input));\n });\n\n //! moment.js\n\n hooks.version = '2.25.3';\n\n setHookCallback(createLocal);\n\n hooks.fn = proto;\n hooks.min = min;\n hooks.max = max;\n hooks.now = now;\n hooks.utc = createUTC;\n hooks.unix = createUnix;\n hooks.months = listMonths;\n hooks.isDate = isDate;\n hooks.locale = getSetGlobalLocale;\n hooks.invalid = createInvalid;\n hooks.duration = createDuration;\n hooks.isMoment = isMoment;\n hooks.weekdays = listWeekdays;\n hooks.parseZone = createInZone;\n hooks.localeData = getLocale;\n hooks.isDuration = isDuration;\n hooks.monthsShort = listMonthsShort;\n hooks.weekdaysMin = listWeekdaysMin;\n hooks.defineLocale = defineLocale;\n hooks.updateLocale = updateLocale;\n hooks.locales = listLocales;\n hooks.weekdaysShort = listWeekdaysShort;\n hooks.normalizeUnits = normalizeUnits;\n hooks.relativeTimeRounding = getSetRelativeTimeRounding;\n hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;\n hooks.calendarFormat = getCalendarFormat;\n hooks.prototype = proto;\n\n // currently HTML5 input type only supports 24-hour formats\n hooks.HTML5_FMT = {\n DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // \n DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // \n DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // \n DATE: 'YYYY-MM-DD', // \n TIME: 'HH:mm', // \n TIME_SECONDS: 'HH:mm:ss', // \n TIME_MS: 'HH:mm:ss.SSS', // \n WEEK: 'GGGG-[W]WW', // \n MONTH: 'YYYY-MM', // \n };\n\n return hooks;\n\n})));\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(245)(module)))\n\n/***/ }),\n/* 5 */\n/***/ (function(module, exports) {\n\n// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n\n\n/***/ }),\n/* 6 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright 2014-2015, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n\n\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar warning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n warning = function(condition, format, args) {\n var len = arguments.length;\n args = new Array(len > 2 ? len - 2 : 0);\n for (var key = 2; key < len; key++) {\n args[key - 2] = arguments[key];\n }\n if (format === undefined) {\n throw new Error(\n '`warning(condition, format, ...args)` requires a warning ' +\n 'message argument'\n );\n }\n\n if (format.length < 10 || (/^[s\\W]*$/).test(format)) {\n throw new Error(\n 'The warning format should be able to uniquely identify this ' +\n 'warning. Please, use a more descriptive format than: ' + format\n );\n }\n\n if (!condition) {\n var argIndex = 0;\n var message = 'Warning: ' +\n format.replace(/%s/g, function() {\n return args[argIndex++];\n });\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch(x) {}\n }\n };\n}\n\nmodule.exports = warning;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5)))\n\n/***/ }),\n/* 7 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nexports.default = function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};\n\n/***/ }),\n/* 8 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _assign = __webpack_require__(582);\n\nvar _assign2 = _interopRequireDefault(_assign);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = _assign2.default || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};\n\n/***/ }),\n/* 9 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _typeof2 = __webpack_require__(140);\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && ((typeof call === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(call)) === \"object\" || typeof call === \"function\") ? call : self;\n};\n\n/***/ }),\n/* 10 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _setPrototypeOf = __webpack_require__(787);\n\nvar _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);\n\nvar _create = __webpack_require__(791);\n\nvar _create2 = _interopRequireDefault(_create);\n\nvar _typeof2 = __webpack_require__(140);\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + (typeof superClass === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(superClass)));\n }\n\n subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass;\n};\n\n/***/ }),\n/* 11 */\n/***/ (function(module, exports, __webpack_require__) {\n\n/**\n * Module dependencies.\n */\n\ntry {\n var index = __webpack_require__(242);\n} catch (err) {\n var index = __webpack_require__(242);\n}\n\n/**\n * Whitespace regexp.\n */\n\nvar re = /\\s+/;\n\n/**\n * toString reference.\n */\n\nvar toString = Object.prototype.toString;\n\n/**\n * Wrap `el` in a `ClassList`.\n *\n * @param {Element} el\n * @return {ClassList}\n * @api public\n */\n\nmodule.exports = function(el){\n return new ClassList(el);\n};\n\n/**\n * Initialize a new ClassList for `el`.\n *\n * @param {Element} el\n * @api private\n */\n\nfunction ClassList(el) {\n if (!el || !el.nodeType) {\n throw new Error('A DOM element reference is required');\n }\n this.el = el;\n this.list = el.classList;\n}\n\n/**\n * Add class `name` if not already present.\n *\n * @param {String} name\n * @return {ClassList}\n * @api public\n */\n\nClassList.prototype.add = function(name){\n // classList\n if (this.list) {\n this.list.add(name);\n return this;\n }\n\n // fallback\n var arr = this.array();\n var i = index(arr, name);\n if (!~i) arr.push(name);\n this.el.className = arr.join(' ');\n return this;\n};\n\n/**\n * Remove class `name` when present, or\n * pass a regular expression to remove\n * any which match.\n *\n * @param {String|RegExp} name\n * @return {ClassList}\n * @api public\n */\n\nClassList.prototype.remove = function(name){\n if ('[object RegExp]' == toString.call(name)) {\n return this.removeMatching(name);\n }\n\n // classList\n if (this.list) {\n this.list.remove(name);\n return this;\n }\n\n // fallback\n var arr = this.array();\n var i = index(arr, name);\n if (~i) arr.splice(i, 1);\n this.el.className = arr.join(' ');\n return this;\n};\n\n/**\n * Remove all classes matching `re`.\n *\n * @param {RegExp} re\n * @return {ClassList}\n * @api private\n */\n\nClassList.prototype.removeMatching = function(re){\n var arr = this.array();\n for (var i = 0; i < arr.length; i++) {\n if (re.test(arr[i])) {\n this.remove(arr[i]);\n }\n }\n return this;\n};\n\n/**\n * Toggle class `name`, can force state via `force`.\n *\n * For browsers that support classList, but do not support `force` yet,\n * the mistake will be detected and corrected.\n *\n * @param {String} name\n * @param {Boolean} force\n * @return {ClassList}\n * @api public\n */\n\nClassList.prototype.toggle = function(name, force){\n // classList\n if (this.list) {\n if (\"undefined\" !== typeof force) {\n if (force !== this.list.toggle(name, force)) {\n this.list.toggle(name); // toggle again to correct\n }\n } else {\n this.list.toggle(name);\n }\n return this;\n }\n\n // fallback\n if (\"undefined\" !== typeof force) {\n if (!force) {\n this.remove(name);\n } else {\n this.add(name);\n }\n } else {\n if (this.has(name)) {\n this.remove(name);\n } else {\n this.add(name);\n }\n }\n\n return this;\n};\n\n/**\n * Return an array of classes.\n *\n * @return {Array}\n * @api public\n */\n\nClassList.prototype.array = function(){\n var className = this.el.getAttribute('class') || '';\n var str = className.replace(/^\\s+|\\s+$/g, '');\n var arr = str.split(re);\n if ('' === arr[0]) arr.shift();\n return arr;\n};\n\n/**\n * Check if class `name` is present.\n *\n * @param {String} name\n * @return {ClassList}\n * @api public\n */\n\nClassList.prototype.has =\nClassList.prototype.contains = function(name){\n return this.list\n ? this.list.contains(name)\n : !! ~index(this.array(), name);\n};\n\n\n/***/ }),\n/* 12 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\nexports['default'] = addEventListener;\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _EventObject = __webpack_require__(714);\n\nvar _EventObject2 = _interopRequireDefault(_EventObject);\n\nfunction addEventListener(target, eventType, callback, option) {\n function wrapCallback(e) {\n var ne = new _EventObject2['default'](e);\n callback.call(target, ne);\n }\n\n if (target.addEventListener) {\n var _ret = (function () {\n var useCapture = false;\n if (typeof option === 'object') {\n useCapture = option.capture || false;\n } else if (typeof option === 'boolean') {\n useCapture = option;\n }\n\n target.addEventListener(eventType, wrapCallback, option || false);\n\n return {\n v: {\n remove: function remove() {\n target.removeEventListener(eventType, wrapCallback, useCapture);\n }\n }\n };\n })();\n\n if (typeof _ret === 'object') return _ret.v;\n } else if (target.attachEvent) {\n target.attachEvent('on' + eventType, wrapCallback);\n return {\n remove: function remove() {\n target.detachEvent('on' + eventType, wrapCallback);\n }\n };\n }\n}\n\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 13 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"alignElement\", function() { return alignElement; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"alignPoint\", function() { return alignPoint; });\nfunction _typeof(obj) {\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function (obj) {\n return typeof obj;\n };\n } else {\n _typeof = function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(source, true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(source).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nvar vendorPrefix;\nvar jsCssMap = {\n Webkit: '-webkit-',\n Moz: '-moz-',\n // IE did it wrong again ...\n ms: '-ms-',\n O: '-o-'\n};\n\nfunction getVendorPrefix() {\n if (vendorPrefix !== undefined) {\n return vendorPrefix;\n }\n\n vendorPrefix = '';\n var style = document.createElement('p').style;\n var testProp = 'Transform';\n\n for (var key in jsCssMap) {\n if (key + testProp in style) {\n vendorPrefix = key;\n }\n }\n\n return vendorPrefix;\n}\n\nfunction getTransitionName() {\n return getVendorPrefix() ? \"\".concat(getVendorPrefix(), \"TransitionProperty\") : 'transitionProperty';\n}\n\nfunction getTransformName() {\n return getVendorPrefix() ? \"\".concat(getVendorPrefix(), \"Transform\") : 'transform';\n}\nfunction setTransitionProperty(node, value) {\n var name = getTransitionName();\n\n if (name) {\n node.style[name] = value;\n\n if (name !== 'transitionProperty') {\n node.style.transitionProperty = value;\n }\n }\n}\n\nfunction setTransform(node, value) {\n var name = getTransformName();\n\n if (name) {\n node.style[name] = value;\n\n if (name !== 'transform') {\n node.style.transform = value;\n }\n }\n}\n\nfunction getTransitionProperty(node) {\n return node.style.transitionProperty || node.style[getTransitionName()];\n}\nfunction getTransformXY(node) {\n var style = window.getComputedStyle(node, null);\n var transform = style.getPropertyValue('transform') || style.getPropertyValue(getTransformName());\n\n if (transform && transform !== 'none') {\n var matrix = transform.replace(/[^0-9\\-.,]/g, '').split(',');\n return {\n x: parseFloat(matrix[12] || matrix[4], 0),\n y: parseFloat(matrix[13] || matrix[5], 0)\n };\n }\n\n return {\n x: 0,\n y: 0\n };\n}\nvar matrix2d = /matrix\\((.*)\\)/;\nvar matrix3d = /matrix3d\\((.*)\\)/;\nfunction setTransformXY(node, xy) {\n var style = window.getComputedStyle(node, null);\n var transform = style.getPropertyValue('transform') || style.getPropertyValue(getTransformName());\n\n if (transform && transform !== 'none') {\n var arr;\n var match2d = transform.match(matrix2d);\n\n if (match2d) {\n match2d = match2d[1];\n arr = match2d.split(',').map(function (item) {\n return parseFloat(item, 10);\n });\n arr[4] = xy.x;\n arr[5] = xy.y;\n setTransform(node, \"matrix(\".concat(arr.join(','), \")\"));\n } else {\n var match3d = transform.match(matrix3d)[1];\n arr = match3d.split(',').map(function (item) {\n return parseFloat(item, 10);\n });\n arr[12] = xy.x;\n arr[13] = xy.y;\n setTransform(node, \"matrix3d(\".concat(arr.join(','), \")\"));\n }\n } else {\n setTransform(node, \"translateX(\".concat(xy.x, \"px) translateY(\").concat(xy.y, \"px) translateZ(0)\"));\n }\n}\n\nvar RE_NUM = /[\\-+]?(?:\\d*\\.|)\\d+(?:[eE][\\-+]?\\d+|)/.source;\nvar getComputedStyleX; // https://stackoverflow.com/a/3485654/3040605\n\nfunction forceRelayout(elem) {\n var originalStyle = elem.style.display;\n elem.style.display = 'none';\n elem.offsetHeight; // eslint-disable-line\n\n elem.style.display = originalStyle;\n}\n\nfunction css(el, name, v) {\n var value = v;\n\n if (_typeof(name) === 'object') {\n for (var i in name) {\n if (name.hasOwnProperty(i)) {\n css(el, i, name[i]);\n }\n }\n\n return undefined;\n }\n\n if (typeof value !== 'undefined') {\n if (typeof value === 'number') {\n value = \"\".concat(value, \"px\");\n }\n\n el.style[name] = value;\n return undefined;\n }\n\n return getComputedStyleX(el, name);\n}\n\nfunction getClientPosition(elem) {\n var box;\n var x;\n var y;\n var doc = elem.ownerDocument;\n var body = doc.body;\n var docElem = doc && doc.documentElement; // 根据 GBS 最新数据,A-Grade Browsers 都已支持 getBoundingClientRect 方法,不用再考虑传统的实现方式\n\n box = elem.getBoundingClientRect(); // 注:jQuery 还考虑减去 docElem.clientLeft/clientTop\n // 但测试发现,这样反而会导致当 html 和 body 有边距/边框样式时,获取的值不正确\n // 此外,ie6 会忽略 html 的 margin 值,幸运地是没有谁会去设置 html 的 margin\n\n x = box.left;\n y = box.top; // In IE, most of the time, 2 extra pixels are added to the top and left\n // due to the implicit 2-pixel inset border. In IE6/7 quirks mode and\n // IE6 standards mode, this border can be overridden by setting the\n // document element's border to zero -- thus, we cannot rely on the\n // offset always being 2 pixels.\n // In quirks mode, the offset can be determined by querying the body's\n // clientLeft/clientTop, but in standards mode, it is found by querying\n // the document element's clientLeft/clientTop. Since we already called\n // getClientBoundingRect we have already forced a reflow, so it is not\n // too expensive just to query them all.\n // ie 下应该减去窗口的边框吧,毕竟默认 absolute 都是相对窗口定位的\n // 窗口边框标准是设 documentElement ,quirks 时设置 body\n // 最好禁止在 body 和 html 上边框 ,但 ie < 9 html 默认有 2px ,减去\n // 但是非 ie 不可能设置窗口边框,body html 也不是窗口 ,ie 可以通过 html,body 设置\n // 标准 ie 下 docElem.clientTop 就是 border-top\n // ie7 html 即窗口边框改变不了。永远为 2\n // 但标准 firefox/chrome/ie9 下 docElem.clientTop 是窗口边框,即使设了 border-top 也为 0\n\n x -= docElem.clientLeft || body.clientLeft || 0;\n y -= docElem.clientTop || body.clientTop || 0;\n return {\n left: x,\n top: y\n };\n}\n\nfunction getScroll(w, top) {\n var ret = w[\"page\".concat(top ? 'Y' : 'X', \"Offset\")];\n var method = \"scroll\".concat(top ? 'Top' : 'Left');\n\n if (typeof ret !== 'number') {\n var d = w.document; // ie6,7,8 standard mode\n\n ret = d.documentElement[method];\n\n if (typeof ret !== 'number') {\n // quirks mode\n ret = d.body[method];\n }\n }\n\n return ret;\n}\n\nfunction getScrollLeft(w) {\n return getScroll(w);\n}\n\nfunction getScrollTop(w) {\n return getScroll(w, true);\n}\n\nfunction getOffset(el) {\n var pos = getClientPosition(el);\n var doc = el.ownerDocument;\n var w = doc.defaultView || doc.parentWindow;\n pos.left += getScrollLeft(w);\n pos.top += getScrollTop(w);\n return pos;\n}\n/**\n * A crude way of determining if an object is a window\n * @member util\n */\n\n\nfunction isWindow(obj) {\n // must use == for ie8\n\n /* eslint eqeqeq:0 */\n return obj !== null && obj !== undefined && obj == obj.window;\n}\n\nfunction getDocument(node) {\n if (isWindow(node)) {\n return node.document;\n }\n\n if (node.nodeType === 9) {\n return node;\n }\n\n return node.ownerDocument;\n}\n\nfunction _getComputedStyle(elem, name, cs) {\n var computedStyle = cs;\n var val = '';\n var d = getDocument(elem);\n computedStyle = computedStyle || d.defaultView.getComputedStyle(elem, null); // https://github.com/kissyteam/kissy/issues/61\n\n if (computedStyle) {\n val = computedStyle.getPropertyValue(name) || computedStyle[name];\n }\n\n return val;\n}\n\nvar _RE_NUM_NO_PX = new RegExp(\"^(\".concat(RE_NUM, \")(?!px)[a-z%]+$\"), 'i');\n\nvar RE_POS = /^(top|right|bottom|left)$/;\nvar CURRENT_STYLE = 'currentStyle';\nvar RUNTIME_STYLE = 'runtimeStyle';\nvar LEFT = 'left';\nvar PX = 'px';\n\nfunction _getComputedStyleIE(elem, name) {\n // currentStyle maybe null\n // http://msdn.microsoft.com/en-us/library/ms535231.aspx\n var ret = elem[CURRENT_STYLE] && elem[CURRENT_STYLE][name]; // 当 width/height 设置为百分比时,通过 pixelLeft 方式转换的 width/height 值\n // 一开始就处理了! CUSTOM_STYLE.height,CUSTOM_STYLE.width ,cssHook 解决@2011-08-19\n // 在 ie 下不对,需要直接用 offset 方式\n // borderWidth 等值也有问题,但考虑到 borderWidth 设为百分比的概率很小,这里就不考虑了\n // From the awesome hack by Dean Edwards\n // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291\n // If we're not dealing with a regular pixel number\n // but a number that has a weird ending, we need to convert it to pixels\n // exclude left right for relativity\n\n if (_RE_NUM_NO_PX.test(ret) && !RE_POS.test(name)) {\n // Remember the original values\n var style = elem.style;\n var left = style[LEFT];\n var rsLeft = elem[RUNTIME_STYLE][LEFT]; // prevent flashing of content\n\n elem[RUNTIME_STYLE][LEFT] = elem[CURRENT_STYLE][LEFT]; // Put in the new values to get a computed value out\n\n style[LEFT] = name === 'fontSize' ? '1em' : ret || 0;\n ret = style.pixelLeft + PX; // Revert the changed values\n\n style[LEFT] = left;\n elem[RUNTIME_STYLE][LEFT] = rsLeft;\n }\n\n return ret === '' ? 'auto' : ret;\n}\n\nif (typeof window !== 'undefined') {\n getComputedStyleX = window.getComputedStyle ? _getComputedStyle : _getComputedStyleIE;\n}\n\nfunction getOffsetDirection(dir, option) {\n if (dir === 'left') {\n return option.useCssRight ? 'right' : dir;\n }\n\n return option.useCssBottom ? 'bottom' : dir;\n}\n\nfunction oppositeOffsetDirection(dir) {\n if (dir === 'left') {\n return 'right';\n } else if (dir === 'right') {\n return 'left';\n } else if (dir === 'top') {\n return 'bottom';\n } else if (dir === 'bottom') {\n return 'top';\n }\n} // 设置 elem 相对 elem.ownerDocument 的坐标\n\n\nfunction setLeftTop(elem, offset, option) {\n // set position first, in-case top/left are set even on static elem\n if (css(elem, 'position') === 'static') {\n elem.style.position = 'relative';\n }\n\n var presetH = -999;\n var presetV = -999;\n var horizontalProperty = getOffsetDirection('left', option);\n var verticalProperty = getOffsetDirection('top', option);\n var oppositeHorizontalProperty = oppositeOffsetDirection(horizontalProperty);\n var oppositeVerticalProperty = oppositeOffsetDirection(verticalProperty);\n\n if (horizontalProperty !== 'left') {\n presetH = 999;\n }\n\n if (verticalProperty !== 'top') {\n presetV = 999;\n }\n\n var originalTransition = '';\n var originalOffset = getOffset(elem);\n\n if ('left' in offset || 'top' in offset) {\n originalTransition = getTransitionProperty(elem) || '';\n setTransitionProperty(elem, 'none');\n }\n\n if ('left' in offset) {\n elem.style[oppositeHorizontalProperty] = '';\n elem.style[horizontalProperty] = \"\".concat(presetH, \"px\");\n }\n\n if ('top' in offset) {\n elem.style[oppositeVerticalProperty] = '';\n elem.style[verticalProperty] = \"\".concat(presetV, \"px\");\n } // force relayout\n\n\n forceRelayout(elem);\n var old = getOffset(elem);\n var originalStyle = {};\n\n for (var key in offset) {\n if (offset.hasOwnProperty(key)) {\n var dir = getOffsetDirection(key, option);\n var preset = key === 'left' ? presetH : presetV;\n var off = originalOffset[key] - old[key];\n\n if (dir === key) {\n originalStyle[dir] = preset + off;\n } else {\n originalStyle[dir] = preset - off;\n }\n }\n }\n\n css(elem, originalStyle); // force relayout\n\n forceRelayout(elem);\n\n if ('left' in offset || 'top' in offset) {\n setTransitionProperty(elem, originalTransition);\n }\n\n var ret = {};\n\n for (var _key in offset) {\n if (offset.hasOwnProperty(_key)) {\n var _dir = getOffsetDirection(_key, option);\n\n var _off = offset[_key] - originalOffset[_key];\n\n if (_key === _dir) {\n ret[_dir] = originalStyle[_dir] + _off;\n } else {\n ret[_dir] = originalStyle[_dir] - _off;\n }\n }\n }\n\n css(elem, ret);\n}\n\nfunction setTransform$1(elem, offset) {\n var originalOffset = getOffset(elem);\n var originalXY = getTransformXY(elem);\n var resultXY = {\n x: originalXY.x,\n y: originalXY.y\n };\n\n if ('left' in offset) {\n resultXY.x = originalXY.x + offset.left - originalOffset.left;\n }\n\n if ('top' in offset) {\n resultXY.y = originalXY.y + offset.top - originalOffset.top;\n }\n\n setTransformXY(elem, resultXY);\n}\n\nfunction setOffset(elem, offset, option) {\n if (option.ignoreShake) {\n var oriOffset = getOffset(elem);\n var oLeft = oriOffset.left.toFixed(0);\n var oTop = oriOffset.top.toFixed(0);\n var tLeft = offset.left.toFixed(0);\n var tTop = offset.top.toFixed(0);\n\n if (oLeft === tLeft && oTop === tTop) {\n return;\n }\n }\n\n if (option.useCssRight || option.useCssBottom) {\n setLeftTop(elem, offset, option);\n } else if (option.useCssTransform && getTransformName() in document.body.style) {\n setTransform$1(elem, offset);\n } else {\n setLeftTop(elem, offset, option);\n }\n}\n\nfunction each(arr, fn) {\n for (var i = 0; i < arr.length; i++) {\n fn(arr[i]);\n }\n}\n\nfunction isBorderBoxFn(elem) {\n return getComputedStyleX(elem, 'boxSizing') === 'border-box';\n}\n\nvar BOX_MODELS = ['margin', 'border', 'padding'];\nvar CONTENT_INDEX = -1;\nvar PADDING_INDEX = 2;\nvar BORDER_INDEX = 1;\nvar MARGIN_INDEX = 0;\n\nfunction swap(elem, options, callback) {\n var old = {};\n var style = elem.style;\n var name; // Remember the old values, and insert the new ones\n\n for (name in options) {\n if (options.hasOwnProperty(name)) {\n old[name] = style[name];\n style[name] = options[name];\n }\n }\n\n callback.call(elem); // Revert the old values\n\n for (name in options) {\n if (options.hasOwnProperty(name)) {\n style[name] = old[name];\n }\n }\n}\n\nfunction getPBMWidth(elem, props, which) {\n var value = 0;\n var prop;\n var j;\n var i;\n\n for (j = 0; j < props.length; j++) {\n prop = props[j];\n\n if (prop) {\n for (i = 0; i < which.length; i++) {\n var cssProp = void 0;\n\n if (prop === 'border') {\n cssProp = \"\".concat(prop).concat(which[i], \"Width\");\n } else {\n cssProp = prop + which[i];\n }\n\n value += parseFloat(getComputedStyleX(elem, cssProp)) || 0;\n }\n }\n }\n\n return value;\n}\n\nvar domUtils = {\n getParent: function getParent(element) {\n var parent = element;\n\n do {\n if (parent.nodeType === 11 && parent.host) {\n parent = parent.host;\n } else {\n parent = parent.parentNode;\n }\n } while (parent && parent.nodeType !== 1 && parent.nodeType !== 9);\n\n return parent;\n }\n};\neach(['Width', 'Height'], function (name) {\n domUtils[\"doc\".concat(name)] = function (refWin) {\n var d = refWin.document;\n return Math.max( // firefox chrome documentElement.scrollHeight< body.scrollHeight\n // ie standard mode : documentElement.scrollHeight> body.scrollHeight\n d.documentElement[\"scroll\".concat(name)], // quirks : documentElement.scrollHeight 最大等于可视窗口多一点?\n d.body[\"scroll\".concat(name)], domUtils[\"viewport\".concat(name)](d));\n };\n\n domUtils[\"viewport\".concat(name)] = function (win) {\n // pc browser includes scrollbar in window.innerWidth\n var prop = \"client\".concat(name);\n var doc = win.document;\n var body = doc.body;\n var documentElement = doc.documentElement;\n var documentElementProp = documentElement[prop]; // 标准模式取 documentElement\n // backcompat 取 body\n\n return doc.compatMode === 'CSS1Compat' && documentElementProp || body && body[prop] || documentElementProp;\n };\n});\n/*\n 得到元素的大小信息\n @param elem\n @param name\n @param {String} [extra] 'padding' : (css width) + padding\n 'border' : (css width) + padding + border\n 'margin' : (css width) + padding + border + margin\n */\n\nfunction getWH(elem, name, ex) {\n var extra = ex;\n\n if (isWindow(elem)) {\n return name === 'width' ? domUtils.viewportWidth(elem) : domUtils.viewportHeight(elem);\n } else if (elem.nodeType === 9) {\n return name === 'width' ? domUtils.docWidth(elem) : domUtils.docHeight(elem);\n }\n\n var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom'];\n var borderBoxValue = name === 'width' ? elem.getBoundingClientRect().width : elem.getBoundingClientRect().height;\n var computedStyle = getComputedStyleX(elem);\n var isBorderBox = isBorderBoxFn(elem);\n var cssBoxValue = 0;\n\n if (borderBoxValue === null || borderBoxValue === undefined || borderBoxValue <= 0) {\n borderBoxValue = undefined; // Fall back to computed then un computed css if necessary\n\n cssBoxValue = getComputedStyleX(elem, name);\n\n if (cssBoxValue === null || cssBoxValue === undefined || Number(cssBoxValue) < 0) {\n cssBoxValue = elem.style[name] || 0;\n } // Normalize '', auto, and prepare for extra\n\n\n cssBoxValue = parseFloat(cssBoxValue) || 0;\n }\n\n if (extra === undefined) {\n extra = isBorderBox ? BORDER_INDEX : CONTENT_INDEX;\n }\n\n var borderBoxValueOrIsBorderBox = borderBoxValue !== undefined || isBorderBox;\n var val = borderBoxValue || cssBoxValue;\n\n if (extra === CONTENT_INDEX) {\n if (borderBoxValueOrIsBorderBox) {\n return val - getPBMWidth(elem, ['border', 'padding'], which);\n }\n\n return cssBoxValue;\n } else if (borderBoxValueOrIsBorderBox) {\n if (extra === BORDER_INDEX) {\n return val;\n }\n\n return val + (extra === PADDING_INDEX ? -getPBMWidth(elem, ['border'], which) : getPBMWidth(elem, ['margin'], which));\n }\n\n return cssBoxValue + getPBMWidth(elem, BOX_MODELS.slice(extra), which);\n}\n\nvar cssShow = {\n position: 'absolute',\n visibility: 'hidden',\n display: 'block'\n}; // fix #119 : https://github.com/kissyteam/kissy/issues/119\n\nfunction getWHIgnoreDisplay() {\n for (var _len = arguments.length, args = new Array(_len), _key2 = 0; _key2 < _len; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n var val;\n var elem = args[0]; // in case elem is window\n // elem.offsetWidth === undefined\n\n if (elem.offsetWidth !== 0) {\n val = getWH.apply(undefined, args);\n } else {\n swap(elem, cssShow, function () {\n val = getWH.apply(undefined, args);\n });\n }\n\n return val;\n}\n\neach(['width', 'height'], function (name) {\n var first = name.charAt(0).toUpperCase() + name.slice(1);\n\n domUtils[\"outer\".concat(first)] = function (el, includeMargin) {\n return el && getWHIgnoreDisplay(el, name, includeMargin ? MARGIN_INDEX : BORDER_INDEX);\n };\n\n var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom'];\n\n domUtils[name] = function (elem, v) {\n var val = v;\n\n if (val !== undefined) {\n if (elem) {\n var computedStyle = getComputedStyleX(elem);\n var isBorderBox = isBorderBoxFn(elem);\n\n if (isBorderBox) {\n val += getPBMWidth(elem, ['padding', 'border'], which);\n }\n\n return css(elem, name, val);\n }\n\n return undefined;\n }\n\n return elem && getWHIgnoreDisplay(elem, name, CONTENT_INDEX);\n };\n});\n\nfunction mix(to, from) {\n for (var i in from) {\n if (from.hasOwnProperty(i)) {\n to[i] = from[i];\n }\n }\n\n return to;\n}\n\nvar utils = {\n getWindow: function getWindow(node) {\n if (node && node.document && node.setTimeout) {\n return node;\n }\n\n var doc = node.ownerDocument || node;\n return doc.defaultView || doc.parentWindow;\n },\n getDocument: getDocument,\n offset: function offset(el, value, option) {\n if (typeof value !== 'undefined') {\n setOffset(el, value, option || {});\n } else {\n return getOffset(el);\n }\n },\n isWindow: isWindow,\n each: each,\n css: css,\n clone: function clone(obj) {\n var i;\n var ret = {};\n\n for (i in obj) {\n if (obj.hasOwnProperty(i)) {\n ret[i] = obj[i];\n }\n }\n\n var overflow = obj.overflow;\n\n if (overflow) {\n for (i in obj) {\n if (obj.hasOwnProperty(i)) {\n ret.overflow[i] = obj.overflow[i];\n }\n }\n }\n\n return ret;\n },\n mix: mix,\n getWindowScrollLeft: function getWindowScrollLeft(w) {\n return getScrollLeft(w);\n },\n getWindowScrollTop: function getWindowScrollTop(w) {\n return getScrollTop(w);\n },\n merge: function merge() {\n var ret = {};\n\n for (var i = 0; i < arguments.length; i++) {\n utils.mix(ret, i < 0 || arguments.length <= i ? undefined : arguments[i]);\n }\n\n return ret;\n },\n viewportWidth: 0,\n viewportHeight: 0\n};\nmix(utils, domUtils);\n\n/**\n * 得到会导致元素显示不全的祖先元素\n */\n\nvar getParent = utils.getParent;\n\nfunction getOffsetParent(element) {\n if (utils.isWindow(element) || element.nodeType === 9) {\n return null;\n } // ie 这个也不是完全可行\n\n /*\n
    \n
    \n 元素 6 高 100px 宽 50px
    \n
    \n
    \n */\n // element.offsetParent does the right thing in ie7 and below. Return parent with layout!\n // In other browsers it only includes elements with position absolute, relative or\n // fixed, not elements with overflow set to auto or scroll.\n // if (UA.ie && ieMode < 8) {\n // return element.offsetParent;\n // }\n // 统一的 offsetParent 方法\n\n\n var doc = utils.getDocument(element);\n var body = doc.body;\n var parent;\n var positionStyle = utils.css(element, 'position');\n var skipStatic = positionStyle === 'fixed' || positionStyle === 'absolute';\n\n if (!skipStatic) {\n return element.nodeName.toLowerCase() === 'html' ? null : getParent(element);\n }\n\n for (parent = getParent(element); parent && parent !== body && parent.nodeType !== 9; parent = getParent(parent)) {\n positionStyle = utils.css(parent, 'position');\n\n if (positionStyle !== 'static') {\n return parent;\n }\n }\n\n return null;\n}\n\nvar getParent$1 = utils.getParent;\nfunction isAncestorFixed(element) {\n if (utils.isWindow(element) || element.nodeType === 9) {\n return false;\n }\n\n var doc = utils.getDocument(element);\n var body = doc.body;\n var parent = null;\n\n for (parent = getParent$1(element); parent && parent !== body; parent = getParent$1(parent)) {\n var positionStyle = utils.css(parent, 'position');\n\n if (positionStyle === 'fixed') {\n return true;\n }\n }\n\n return false;\n}\n\n/**\n * 获得元素的显示部分的区域\n */\n\nfunction getVisibleRectForElement(element, alwaysByViewport) {\n var visibleRect = {\n left: 0,\n right: Infinity,\n top: 0,\n bottom: Infinity\n };\n var el = getOffsetParent(element);\n var doc = utils.getDocument(element);\n var win = doc.defaultView || doc.parentWindow;\n var body = doc.body;\n var documentElement = doc.documentElement; // Determine the size of the visible rect by climbing the dom accounting for\n // all scrollable containers.\n\n while (el) {\n // clientWidth is zero for inline block elements in ie.\n if ((navigator.userAgent.indexOf('MSIE') === -1 || el.clientWidth !== 0) && // body may have overflow set on it, yet we still get the entire\n // viewport. In some browsers, el.offsetParent may be\n // document.documentElement, so check for that too.\n el !== body && el !== documentElement && utils.css(el, 'overflow') !== 'visible') {\n var pos = utils.offset(el); // add border\n\n pos.left += el.clientLeft;\n pos.top += el.clientTop;\n visibleRect.top = Math.max(visibleRect.top, pos.top);\n visibleRect.right = Math.min(visibleRect.right, // consider area without scrollBar\n pos.left + el.clientWidth);\n visibleRect.bottom = Math.min(visibleRect.bottom, pos.top + el.clientHeight);\n visibleRect.left = Math.max(visibleRect.left, pos.left);\n } else if (el === body || el === documentElement) {\n break;\n }\n\n el = getOffsetParent(el);\n } // Set element position to fixed\n // make sure absolute element itself don't affect it's visible area\n // https://github.com/ant-design/ant-design/issues/7601\n\n\n var originalPosition = null;\n\n if (!utils.isWindow(element) && element.nodeType !== 9) {\n originalPosition = element.style.position;\n var position = utils.css(element, 'position');\n\n if (position === 'absolute') {\n element.style.position = 'fixed';\n }\n }\n\n var scrollX = utils.getWindowScrollLeft(win);\n var scrollY = utils.getWindowScrollTop(win);\n var viewportWidth = utils.viewportWidth(win);\n var viewportHeight = utils.viewportHeight(win);\n var documentWidth = documentElement.scrollWidth;\n var documentHeight = documentElement.scrollHeight; // scrollXXX on html is sync with body which means overflow: hidden on body gets wrong scrollXXX.\n // We should cut this ourself.\n\n var bodyStyle = window.getComputedStyle(body);\n\n if (bodyStyle.overflowX === 'hidden') {\n documentWidth = win.innerWidth;\n }\n\n if (bodyStyle.overflowY === 'hidden') {\n documentHeight = win.innerHeight;\n } // Reset element position after calculate the visible area\n\n\n if (element.style) {\n element.style.position = originalPosition;\n }\n\n if (alwaysByViewport || isAncestorFixed(element)) {\n // Clip by viewport's size.\n visibleRect.left = Math.max(visibleRect.left, scrollX);\n visibleRect.top = Math.max(visibleRect.top, scrollY);\n visibleRect.right = Math.min(visibleRect.right, scrollX + viewportWidth);\n visibleRect.bottom = Math.min(visibleRect.bottom, scrollY + viewportHeight);\n } else {\n // Clip by document's size.\n var maxVisibleWidth = Math.max(documentWidth, scrollX + viewportWidth);\n visibleRect.right = Math.min(visibleRect.right, maxVisibleWidth);\n var maxVisibleHeight = Math.max(documentHeight, scrollY + viewportHeight);\n visibleRect.bottom = Math.min(visibleRect.bottom, maxVisibleHeight);\n }\n\n return visibleRect.top >= 0 && visibleRect.left >= 0 && visibleRect.bottom > visibleRect.top && visibleRect.right > visibleRect.left ? visibleRect : null;\n}\n\nfunction adjustForViewport(elFuturePos, elRegion, visibleRect, overflow) {\n var pos = utils.clone(elFuturePos);\n var size = {\n width: elRegion.width,\n height: elRegion.height\n };\n\n if (overflow.adjustX && pos.left < visibleRect.left) {\n pos.left = visibleRect.left;\n } // Left edge inside and right edge outside viewport, try to resize it.\n\n\n if (overflow.resizeWidth && pos.left >= visibleRect.left && pos.left + size.width > visibleRect.right) {\n size.width -= pos.left + size.width - visibleRect.right;\n } // Right edge outside viewport, try to move it.\n\n\n if (overflow.adjustX && pos.left + size.width > visibleRect.right) {\n // 保证左边界和可视区域左边界对齐\n pos.left = Math.max(visibleRect.right - size.width, visibleRect.left);\n } // Top edge outside viewport, try to move it.\n\n\n if (overflow.adjustY && pos.top < visibleRect.top) {\n pos.top = visibleRect.top;\n } // Top edge inside and bottom edge outside viewport, try to resize it.\n\n\n if (overflow.resizeHeight && pos.top >= visibleRect.top && pos.top + size.height > visibleRect.bottom) {\n size.height -= pos.top + size.height - visibleRect.bottom;\n } // Bottom edge outside viewport, try to move it.\n\n\n if (overflow.adjustY && pos.top + size.height > visibleRect.bottom) {\n // 保证上边界和可视区域上边界对齐\n pos.top = Math.max(visibleRect.bottom - size.height, visibleRect.top);\n }\n\n return utils.mix(pos, size);\n}\n\nfunction getRegion(node) {\n var offset;\n var w;\n var h;\n\n if (!utils.isWindow(node) && node.nodeType !== 9) {\n offset = utils.offset(node);\n w = utils.outerWidth(node);\n h = utils.outerHeight(node);\n } else {\n var win = utils.getWindow(node);\n offset = {\n left: utils.getWindowScrollLeft(win),\n top: utils.getWindowScrollTop(win)\n };\n w = utils.viewportWidth(win);\n h = utils.viewportHeight(win);\n }\n\n offset.width = w;\n offset.height = h;\n return offset;\n}\n\n/**\n * 获取 node 上的 align 对齐点 相对于页面的坐标\n */\nfunction getAlignOffset(region, align) {\n var V = align.charAt(0);\n var H = align.charAt(1);\n var w = region.width;\n var h = region.height;\n var x = region.left;\n var y = region.top;\n\n if (V === 'c') {\n y += h / 2;\n } else if (V === 'b') {\n y += h;\n }\n\n if (H === 'c') {\n x += w / 2;\n } else if (H === 'r') {\n x += w;\n }\n\n return {\n left: x,\n top: y\n };\n}\n\nfunction getElFuturePos(elRegion, refNodeRegion, points, offset, targetOffset) {\n var p1 = getAlignOffset(refNodeRegion, points[1]);\n var p2 = getAlignOffset(elRegion, points[0]);\n var diff = [p2.left - p1.left, p2.top - p1.top];\n return {\n left: Math.round(elRegion.left - diff[0] + offset[0] - targetOffset[0]),\n top: Math.round(elRegion.top - diff[1] + offset[1] - targetOffset[1])\n };\n}\n\n/**\n * align dom node flexibly\n * @author yiminghe@gmail.com\n */\n\nfunction isFailX(elFuturePos, elRegion, visibleRect) {\n return elFuturePos.left < visibleRect.left || elFuturePos.left + elRegion.width > visibleRect.right;\n}\n\nfunction isFailY(elFuturePos, elRegion, visibleRect) {\n return elFuturePos.top < visibleRect.top || elFuturePos.top + elRegion.height > visibleRect.bottom;\n}\n\nfunction isCompleteFailX(elFuturePos, elRegion, visibleRect) {\n return elFuturePos.left > visibleRect.right || elFuturePos.left + elRegion.width < visibleRect.left;\n}\n\nfunction isCompleteFailY(elFuturePos, elRegion, visibleRect) {\n return elFuturePos.top > visibleRect.bottom || elFuturePos.top + elRegion.height < visibleRect.top;\n}\n\nfunction flip(points, reg, map) {\n var ret = [];\n utils.each(points, function (p) {\n ret.push(p.replace(reg, function (m) {\n return map[m];\n }));\n });\n return ret;\n}\n\nfunction flipOffset(offset, index) {\n offset[index] = -offset[index];\n return offset;\n}\n\nfunction convertOffset(str, offsetLen) {\n var n;\n\n if (/%$/.test(str)) {\n n = parseInt(str.substring(0, str.length - 1), 10) / 100 * offsetLen;\n } else {\n n = parseInt(str, 10);\n }\n\n return n || 0;\n}\n\nfunction normalizeOffset(offset, el) {\n offset[0] = convertOffset(offset[0], el.width);\n offset[1] = convertOffset(offset[1], el.height);\n}\n/**\n * @param el\n * @param tgtRegion 参照节点所占的区域: { left, top, width, height }\n * @param align\n */\n\n\nfunction doAlign(el, tgtRegion, align, isTgtRegionVisible) {\n var points = align.points;\n var offset = align.offset || [0, 0];\n var targetOffset = align.targetOffset || [0, 0];\n var overflow = align.overflow;\n var source = align.source || el;\n offset = [].concat(offset);\n targetOffset = [].concat(targetOffset);\n overflow = overflow || {};\n var newOverflowCfg = {};\n var fail = 0;\n var alwaysByViewport = !!(overflow && overflow.alwaysByViewport); // 当前节点可以被放置的显示区域\n\n var visibleRect = getVisibleRectForElement(source, alwaysByViewport); // 当前节点所占的区域, left/top/width/height\n\n var elRegion = getRegion(source); // 将 offset 转换成数值,支持百分比\n\n normalizeOffset(offset, elRegion);\n normalizeOffset(targetOffset, tgtRegion); // 当前节点将要被放置的位置\n\n var elFuturePos = getElFuturePos(elRegion, tgtRegion, points, offset, targetOffset); // 当前节点将要所处的区域\n\n var newElRegion = utils.merge(elRegion, elFuturePos); // 如果可视区域不能完全放置当前节点时允许调整\n\n if (visibleRect && (overflow.adjustX || overflow.adjustY) && isTgtRegionVisible) {\n if (overflow.adjustX) {\n // 如果横向不能放下\n if (isFailX(elFuturePos, elRegion, visibleRect)) {\n // 对齐位置反下\n var newPoints = flip(points, /[lr]/gi, {\n l: 'r',\n r: 'l'\n }); // 偏移量也反下\n\n var newOffset = flipOffset(offset, 0);\n var newTargetOffset = flipOffset(targetOffset, 0);\n var newElFuturePos = getElFuturePos(elRegion, tgtRegion, newPoints, newOffset, newTargetOffset);\n\n if (!isCompleteFailX(newElFuturePos, elRegion, visibleRect)) {\n fail = 1;\n points = newPoints;\n offset = newOffset;\n targetOffset = newTargetOffset;\n }\n }\n }\n\n if (overflow.adjustY) {\n // 如果纵向不能放下\n if (isFailY(elFuturePos, elRegion, visibleRect)) {\n // 对齐位置反下\n var _newPoints = flip(points, /[tb]/gi, {\n t: 'b',\n b: 't'\n }); // 偏移量也反下\n\n\n var _newOffset = flipOffset(offset, 1);\n\n var _newTargetOffset = flipOffset(targetOffset, 1);\n\n var _newElFuturePos = getElFuturePos(elRegion, tgtRegion, _newPoints, _newOffset, _newTargetOffset);\n\n if (!isCompleteFailY(_newElFuturePos, elRegion, visibleRect)) {\n fail = 1;\n points = _newPoints;\n offset = _newOffset;\n targetOffset = _newTargetOffset;\n }\n }\n } // 如果失败,重新计算当前节点将要被放置的位置\n\n\n if (fail) {\n elFuturePos = getElFuturePos(elRegion, tgtRegion, points, offset, targetOffset);\n utils.mix(newElRegion, elFuturePos);\n }\n\n var isStillFailX = isFailX(elFuturePos, elRegion, visibleRect);\n var isStillFailY = isFailY(elFuturePos, elRegion, visibleRect); // 检查反下后的位置是否可以放下了,如果仍然放不下:\n // 1. 复原修改过的定位参数\n\n if (isStillFailX || isStillFailY) {\n points = align.points;\n offset = align.offset || [0, 0];\n targetOffset = align.targetOffset || [0, 0];\n } // 2. 只有指定了可以调整当前方向才调整\n\n\n newOverflowCfg.adjustX = overflow.adjustX && isStillFailX;\n newOverflowCfg.adjustY = overflow.adjustY && isStillFailY; // 确实要调整,甚至可能会调整高度宽度\n\n if (newOverflowCfg.adjustX || newOverflowCfg.adjustY) {\n newElRegion = adjustForViewport(elFuturePos, elRegion, visibleRect, newOverflowCfg);\n }\n } // need judge to in case set fixed with in css on height auto element\n\n\n if (newElRegion.width !== elRegion.width) {\n utils.css(source, 'width', utils.width(source) + newElRegion.width - elRegion.width);\n }\n\n if (newElRegion.height !== elRegion.height) {\n utils.css(source, 'height', utils.height(source) + newElRegion.height - elRegion.height);\n } // https://github.com/kissyteam/kissy/issues/190\n // 相对于屏幕位置没变,而 left/top 变了\n // 例如
    \n\n\n utils.offset(source, {\n left: newElRegion.left,\n top: newElRegion.top\n }, {\n useCssRight: align.useCssRight,\n useCssBottom: align.useCssBottom,\n useCssTransform: align.useCssTransform,\n ignoreShake: align.ignoreShake\n });\n return {\n points: points,\n offset: offset,\n targetOffset: targetOffset,\n overflow: newOverflowCfg\n };\n}\n/**\n * 2012-04-26 yiminghe@gmail.com\n * - 优化智能对齐算法\n * - 慎用 resizeXX\n *\n * 2011-07-13 yiminghe@gmail.com note:\n * - 增加智能对齐,以及大小调整选项\n **/\n\nfunction isOutOfVisibleRect(target, alwaysByViewport) {\n var visibleRect = getVisibleRectForElement(target, alwaysByViewport);\n var targetRegion = getRegion(target);\n return !visibleRect || targetRegion.left + targetRegion.width <= visibleRect.left || targetRegion.top + targetRegion.height <= visibleRect.top || targetRegion.left >= visibleRect.right || targetRegion.top >= visibleRect.bottom;\n}\n\nfunction alignElement(el, refNode, align) {\n var target = align.target || refNode;\n var refNodeRegion = getRegion(target);\n var isTargetNotOutOfVisible = !isOutOfVisibleRect(target, align.overflow && align.overflow.alwaysByViewport);\n return doAlign(el, refNodeRegion, align, isTargetNotOutOfVisible);\n}\n\nalignElement.__getOffsetParent = getOffsetParent;\nalignElement.__getVisibleRectForElement = getVisibleRectForElement;\n\n/**\n * `tgtPoint`: { pageX, pageY } or { clientX, clientY }.\n * If client position provided, will internal convert to page position.\n */\n\nfunction alignPoint(el, tgtPoint, align) {\n var pageX;\n var pageY;\n var doc = utils.getDocument(el);\n var win = doc.defaultView || doc.parentWindow;\n var scrollX = utils.getWindowScrollLeft(win);\n var scrollY = utils.getWindowScrollTop(win);\n var viewportWidth = utils.viewportWidth(win);\n var viewportHeight = utils.viewportHeight(win);\n\n if ('pageX' in tgtPoint) {\n pageX = tgtPoint.pageX;\n } else {\n pageX = scrollX + tgtPoint.clientX;\n }\n\n if ('pageY' in tgtPoint) {\n pageY = tgtPoint.pageY;\n } else {\n pageY = scrollY + tgtPoint.clientY;\n }\n\n var tgtRegion = {\n left: pageX,\n top: pageY,\n width: 0,\n height: 0\n };\n var pointInView = pageX >= 0 && pageX <= scrollX + viewportWidth && pageY >= 0 && pageY <= scrollY + viewportHeight; // Provide default target point\n\n var points = [align.points[0], 'cc'];\n return doAlign(el, tgtRegion, _objectSpread2({}, align, {\n points: points\n }), pointInView);\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (alignElement);\n\n//# sourceMappingURL=index.js.map\n\n\n/***/ }),\n/* 14 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"polyfill\", function() { return polyfill; });\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nfunction componentWillMount() {\n // Call this.constructor.gDSFP to support sub-classes.\n var state = this.constructor.getDerivedStateFromProps(this.props, this.state);\n if (state !== null && state !== undefined) {\n this.setState(state);\n }\n}\n\nfunction componentWillReceiveProps(nextProps) {\n // Call this.constructor.gDSFP to support sub-classes.\n // Use the setState() updater to ensure state isn't stale in certain edge cases.\n function updater(prevState) {\n var state = this.constructor.getDerivedStateFromProps(nextProps, prevState);\n return state !== null && state !== undefined ? state : null;\n }\n // Binding \"this\" is important for shallow renderer support.\n this.setState(updater.bind(this));\n}\n\nfunction componentWillUpdate(nextProps, nextState) {\n try {\n var prevProps = this.props;\n var prevState = this.state;\n this.props = nextProps;\n this.state = nextState;\n this.__reactInternalSnapshotFlag = true;\n this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(\n prevProps,\n prevState\n );\n } finally {\n this.props = prevProps;\n this.state = prevState;\n }\n}\n\n// React may warn about cWM/cWRP/cWU methods being deprecated.\n// Add a flag to suppress these warnings for this special case.\ncomponentWillMount.__suppressDeprecationWarning = true;\ncomponentWillReceiveProps.__suppressDeprecationWarning = true;\ncomponentWillUpdate.__suppressDeprecationWarning = true;\n\nfunction polyfill(Component) {\n var prototype = Component.prototype;\n\n if (!prototype || !prototype.isReactComponent) {\n throw new Error('Can only polyfill class components');\n }\n\n if (\n typeof Component.getDerivedStateFromProps !== 'function' &&\n typeof prototype.getSnapshotBeforeUpdate !== 'function'\n ) {\n return Component;\n }\n\n // If new component APIs are defined, \"unsafe\" lifecycles won't be called.\n // Error if any of these lifecycles are present,\n // Because they would work differently between older and newer (16.3+) versions of React.\n var foundWillMountName = null;\n var foundWillReceivePropsName = null;\n var foundWillUpdateName = null;\n if (typeof prototype.componentWillMount === 'function') {\n foundWillMountName = 'componentWillMount';\n } else if (typeof prototype.UNSAFE_componentWillMount === 'function') {\n foundWillMountName = 'UNSAFE_componentWillMount';\n }\n if (typeof prototype.componentWillReceiveProps === 'function') {\n foundWillReceivePropsName = 'componentWillReceiveProps';\n } else if (typeof prototype.UNSAFE_componentWillReceiveProps === 'function') {\n foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';\n }\n if (typeof prototype.componentWillUpdate === 'function') {\n foundWillUpdateName = 'componentWillUpdate';\n } else if (typeof prototype.UNSAFE_componentWillUpdate === 'function') {\n foundWillUpdateName = 'UNSAFE_componentWillUpdate';\n }\n if (\n foundWillMountName !== null ||\n foundWillReceivePropsName !== null ||\n foundWillUpdateName !== null\n ) {\n var componentName = Component.displayName || Component.name;\n var newApiName =\n typeof Component.getDerivedStateFromProps === 'function'\n ? 'getDerivedStateFromProps()'\n : 'getSnapshotBeforeUpdate()';\n\n throw Error(\n 'Unsafe legacy lifecycles will not be called for components using new component APIs.\\n\\n' +\n componentName +\n ' uses ' +\n newApiName +\n ' but also contains the following legacy lifecycles:' +\n (foundWillMountName !== null ? '\\n ' + foundWillMountName : '') +\n (foundWillReceivePropsName !== null\n ? '\\n ' + foundWillReceivePropsName\n : '') +\n (foundWillUpdateName !== null ? '\\n ' + foundWillUpdateName : '') +\n '\\n\\nThe above lifecycles should be removed. Learn more about this warning here:\\n' +\n 'https://fb.me/react-async-component-lifecycle-hooks'\n );\n }\n\n // React <= 16.2 does not support static getDerivedStateFromProps.\n // As a workaround, use cWM and cWRP to invoke the new static lifecycle.\n // Newer versions of React will ignore these lifecycles if gDSFP exists.\n if (typeof Component.getDerivedStateFromProps === 'function') {\n prototype.componentWillMount = componentWillMount;\n prototype.componentWillReceiveProps = componentWillReceiveProps;\n }\n\n // React <= 16.2 does not support getSnapshotBeforeUpdate.\n // As a workaround, use cWU to invoke the new lifecycle.\n // Newer versions of React will ignore that lifecycle if gSBU exists.\n if (typeof prototype.getSnapshotBeforeUpdate === 'function') {\n if (typeof prototype.componentDidUpdate !== 'function') {\n throw new Error(\n 'Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype'\n );\n }\n\n prototype.componentWillUpdate = componentWillUpdate;\n\n var componentDidUpdate = prototype.componentDidUpdate;\n\n prototype.componentDidUpdate = function componentDidUpdatePolyfill(\n prevProps,\n prevState,\n maybeSnapshot\n ) {\n // 16.3+ will not execute our will-update method;\n // It will pass a snapshot value to did-update though.\n // Older versions will require our polyfilled will-update value.\n // We need to handle both cases, but can't just check for the presence of \"maybeSnapshot\",\n // Because for <= 15.x versions this might be a \"prevContext\" object.\n // We also can't just check \"__reactInternalSnapshot\",\n // Because get-snapshot might return a falsy value.\n // So check for the explicit __reactInternalSnapshotFlag flag to determine behavior.\n var snapshot = this.__reactInternalSnapshotFlag\n ? this.__reactInternalSnapshot\n : maybeSnapshot;\n\n componentDidUpdate.call(this, prevProps, prevState, snapshot);\n };\n }\n\n return Component;\n}\n\n\n\n\n/***/ }),\n/* 15 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _Icon = __webpack_require__(554);\n\nvar _Icon2 = _interopRequireDefault(_Icon);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nexports[\"default\"] = _Icon2[\"default\"];\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 16 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(process) {\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nexports.convertFieldsError = convertFieldsError;\nexports.format = format;\nexports.isEmptyValue = isEmptyValue;\nexports.isEmptyObject = isEmptyObject;\nexports.asyncMap = asyncMap;\nexports.complementError = complementError;\nexports.deepMerge = deepMerge;\n/* eslint no-console:0 */\n\nvar formatRegExp = /%[sdj%]/g;\n\nvar warning = exports.warning = function warning() {};\n\n// don't print warning message when in production env or node runtime\nif (process.env.NODE_ENV !== 'production' && typeof window !== 'undefined' && typeof document !== 'undefined') {\n exports.warning = warning = function warning(type, errors) {\n if (typeof console !== 'undefined' && console.warn) {\n if (errors.every(function (e) {\n return typeof e === 'string';\n })) {\n console.warn(type, errors);\n }\n }\n };\n}\n\nfunction convertFieldsError(errors) {\n if (!errors || !errors.length) return null;\n var fields = {};\n errors.forEach(function (error) {\n var field = error.field;\n fields[field] = fields[field] || [];\n fields[field].push(error);\n });\n return fields;\n}\n\nfunction format() {\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var i = 1;\n var f = args[0];\n var len = args.length;\n if (typeof f === 'function') {\n return f.apply(null, args.slice(1));\n }\n if (typeof f === 'string') {\n var str = String(f).replace(formatRegExp, function (x) {\n if (x === '%%') {\n return '%';\n }\n if (i >= len) {\n return x;\n }\n switch (x) {\n case '%s':\n return String(args[i++]);\n case '%d':\n return Number(args[i++]);\n case '%j':\n try {\n return JSON.stringify(args[i++]);\n } catch (_) {\n return '[Circular]';\n }\n break;\n default:\n return x;\n }\n });\n for (var arg = args[i]; i < len; arg = args[++i]) {\n str += ' ' + arg;\n }\n return str;\n }\n return f;\n}\n\nfunction isNativeStringType(type) {\n return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'pattern';\n}\n\nfunction isEmptyValue(value, type) {\n if (value === undefined || value === null) {\n return true;\n }\n if (type === 'array' && Array.isArray(value) && !value.length) {\n return true;\n }\n if (isNativeStringType(type) && typeof value === 'string' && !value) {\n return true;\n }\n return false;\n}\n\nfunction isEmptyObject(obj) {\n return Object.keys(obj).length === 0;\n}\n\nfunction asyncParallelArray(arr, func, callback) {\n var results = [];\n var total = 0;\n var arrLength = arr.length;\n\n function count(errors) {\n results.push.apply(results, errors);\n total++;\n if (total === arrLength) {\n callback(results);\n }\n }\n\n arr.forEach(function (a) {\n func(a, count);\n });\n}\n\nfunction asyncSerialArray(arr, func, callback) {\n var index = 0;\n var arrLength = arr.length;\n\n function next(errors) {\n if (errors && errors.length) {\n callback(errors);\n return;\n }\n var original = index;\n index = index + 1;\n if (original < arrLength) {\n func(arr[original], next);\n } else {\n callback([]);\n }\n }\n\n next([]);\n}\n\nfunction flattenObjArr(objArr) {\n var ret = [];\n Object.keys(objArr).forEach(function (k) {\n ret.push.apply(ret, objArr[k]);\n });\n return ret;\n}\n\nfunction asyncMap(objArr, option, func, callback) {\n if (option.first) {\n var flattenArr = flattenObjArr(objArr);\n return asyncSerialArray(flattenArr, func, callback);\n }\n var firstFields = option.firstFields || [];\n if (firstFields === true) {\n firstFields = Object.keys(objArr);\n }\n var objArrKeys = Object.keys(objArr);\n var objArrLength = objArrKeys.length;\n var total = 0;\n var results = [];\n var pending = new Promise(function (resolve, reject) {\n var next = function next(errors) {\n results.push.apply(results, errors);\n total++;\n if (total === objArrLength) {\n callback(results);\n return results.length ? reject({ errors: results, fields: convertFieldsError(results) }) : resolve();\n }\n };\n objArrKeys.forEach(function (key) {\n var arr = objArr[key];\n if (firstFields.indexOf(key) !== -1) {\n asyncSerialArray(arr, func, next);\n } else {\n asyncParallelArray(arr, func, next);\n }\n });\n });\n pending['catch'](function (e) {\n return e;\n });\n return pending;\n}\n\nfunction complementError(rule) {\n return function (oe) {\n if (oe && oe.message) {\n oe.field = oe.field || rule.fullField;\n return oe;\n }\n return {\n message: typeof oe === 'function' ? oe() : oe,\n field: oe.field || rule.fullField\n };\n };\n}\n\nfunction deepMerge(target, source) {\n if (source) {\n for (var s in source) {\n if (source.hasOwnProperty(s)) {\n var value = source[s];\n if ((typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object' && _typeof(target[s]) === 'object') {\n target[s] = _extends({}, target[s], value);\n } else {\n target[s] = value;\n }\n }\n }\n }\n return target;\n}\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5)))\n\n/***/ }),\n/* 17 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _inDOM = __webpack_require__(25);\n\nvar _inDOM2 = _interopRequireDefault(_inDOM);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar on = function on() {};\nif (_inDOM2.default) {\n on = function () {\n\n if (document.addEventListener) return function (node, eventName, handler, capture) {\n return node.addEventListener(eventName, handler, capture || false);\n };else if (document.attachEvent) return function (node, eventName, handler) {\n return node.attachEvent('on' + eventName, handler);\n };\n }();\n}\n\nexports.default = on;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 18 */\n/***/ (function(module, exports) {\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\n\nmodule.exports = _interopRequireDefault;\n\n/***/ }),\n/* 19 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _required = __webpack_require__(225);\n\nvar _required2 = _interopRequireDefault(_required);\n\nvar _whitespace = __webpack_require__(610);\n\nvar _whitespace2 = _interopRequireDefault(_whitespace);\n\nvar _type = __webpack_require__(611);\n\nvar _type2 = _interopRequireDefault(_type);\n\nvar _range = __webpack_require__(612);\n\nvar _range2 = _interopRequireDefault(_range);\n\nvar _enum = __webpack_require__(613);\n\nvar _enum2 = _interopRequireDefault(_enum);\n\nvar _pattern = __webpack_require__(614);\n\nvar _pattern2 = _interopRequireDefault(_pattern);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = {\n required: _required2['default'],\n whitespace: _whitespace2['default'],\n type: _type2['default'],\n range: _range2['default'],\n 'enum': _enum2['default'],\n pattern: _pattern2['default']\n};\n\n/***/ }),\n/* 20 */\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(global, module) {/**\n * Lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright JS Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n asyncTag = '[object AsyncFunction]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n nullTag = '[object Null]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n proxyTag = '[object Proxy]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n undefinedTag = '[object Undefined]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n try {\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}());\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n}\n\n/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\nfunction arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n}\n\n/**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\nfunction arraySome(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\n/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\n/**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction cacheHas(cache, key) {\n return cache.has(key);\n}\n\n/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\n/**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\nfunction mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n\n map.forEach(function(value, key) {\n result[++index] = [key, value];\n });\n return result;\n}\n\n/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\n/**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\nfunction setToArray(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = value;\n });\n return result;\n}\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype,\n funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined,\n Symbol = root.Symbol,\n Uint8Array = root.Uint8Array,\n propertyIsEnumerable = objectProto.propertyIsEnumerable,\n splice = arrayProto.splice,\n symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols,\n nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,\n nativeKeys = overArg(Object.keys, Object);\n\n/* Built-in method references that are verified to be native. */\nvar DataView = getNative(root, 'DataView'),\n Map = getNative(root, 'Map'),\n Promise = getNative(root, 'Promise'),\n Set = getNative(root, 'Set'),\n WeakMap = getNative(root, 'WeakMap'),\n nativeCreate = getNative(Object, 'create');\n\n/** Used to detect maps, sets, and weakmaps. */\nvar dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\n\n/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n}\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n}\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\n/**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\nfunction SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n}\n\n/**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\nfunction setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n}\n\n/**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\nfunction setCacheHas(value) {\n return this.__data__.has(value);\n}\n\n// Add methods to `SetCache`.\nSetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\nSetCache.prototype.has = setCacheHas;\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n}\n\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n}\n\n/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n}\n\n/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n return this.__data__.get(key);\n}\n\n/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n return this.__data__.has(key);\n}\n\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n}\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\n/**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n}\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\n/**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\nfunction baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n}\n\n/**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = objIsArr ? arrayTag : getTag(object),\n othTag = othIsArr ? arrayTag : getTag(other);\n\n objTag = objTag == argsTag ? objectTag : objTag;\n othTag = othTag == argsTag ? objectTag : othTag;\n\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n\n if (isSameTag && isBuffer(object)) {\n if (!isBuffer(other)) {\n return false;\n }\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack);\n return (objIsArr || isTypedArray(object))\n ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object,\n othUnwrapped = othIsWrapped ? other.value() : other;\n\n stack || (stack = new Stack);\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack);\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n}\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n}\n\n/**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\nfunction equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(array);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var index = -1,\n result = true,\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, arrValue, index, other, array, stack)\n : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!cacheHas(seen, othIndex) &&\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(\n arrValue === othValue ||\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\n )) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n}\n\n/**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if ((object.byteLength != other.byteLength) ||\n (object.byteOffset != other.byteOffset)) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n\n case arrayBufferTag:\n if ((object.byteLength != other.byteLength) ||\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == (other + '');\n\n case mapTag:\n var convert = mapToArray;\n\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n}\n\n/**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n objProps = getAllKeys(object),\n objLength = objProps.length,\n othProps = getAllKeys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n\n var skipCtor = isPartial;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, objValue, key, other, object, stack)\n : customizer(objValue, othValue, key, object, other, stack);\n }\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined\n ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n : compared\n )) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor &&\n ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack['delete'](object);\n stack['delete'](other);\n return result;\n}\n\n/**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n}\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\n/**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n};\n\n/**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nvar getTag = baseGetTag;\n\n// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\nif ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n}\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n length = length == null ? MAX_SAFE_INTEGER : length;\n return !!length &&\n (typeof value == 'number' || reIsUint.test(value)) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\n/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\n/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n};\n\n/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\n/**\n * Performs a deep comparison between two values to determine if they are\n * equivalent.\n *\n * **Note:** This method supports comparing arrays, array buffers, booleans,\n * date objects, error objects, maps, numbers, `Object` objects, regexes,\n * sets, strings, symbols, and typed arrays. `Object` objects are compared\n * by their own, not inherited, enumerable properties. Functions and DOM\n * nodes are compared by strict equality, i.e. `===`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.isEqual(object, other);\n * // => true\n *\n * object === other;\n * // => false\n */\nfunction isEqual(value, other) {\n return baseIsEqual(value, other);\n}\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\n/**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\nfunction stubArray() {\n return [];\n}\n\n/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nmodule.exports = isEqual;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35), __webpack_require__(245)(module)))\n\n/***/ }),\n/* 21 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.create = exports.connect = exports.Provider = undefined;\n\nvar _Provider2 = __webpack_require__(793);\n\nvar _Provider3 = _interopRequireDefault(_Provider2);\n\nvar _connect2 = __webpack_require__(794);\n\nvar _connect3 = _interopRequireDefault(_connect2);\n\nvar _create2 = __webpack_require__(796);\n\nvar _create3 = _interopRequireDefault(_create2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.Provider = _Provider3.default;\nexports.connect = _connect3.default;\nexports.create = _create3.default;\n\n/***/ }),\n/* 22 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = ownerDocument;\nfunction ownerDocument(node) {\n return node && node.ownerDocument || document;\n}\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 23 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nexports.default = function (obj, keys) {\n var target = {};\n\n for (var i in obj) {\n if (keys.indexOf(i) >= 0) continue;\n if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;\n target[i] = obj[i];\n }\n\n return target;\n};\n\n/***/ }),\n/* 24 */\n/***/ (function(module, exports) {\n\nvar core = module.exports = { version: '2.6.11' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n\n\n/***/ }),\n/* 25 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = !!(typeof window !== 'undefined' && window.document && window.document.createElement);\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 26 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _inDOM = __webpack_require__(25);\n\nvar _inDOM2 = _interopRequireDefault(_inDOM);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function () {\n var root = _inDOM2.default && document.documentElement;\n\n return root && root.contains ? function (context, node) {\n return context.contains(node);\n } : root && root.compareDocumentPosition ? function (context, node) {\n return context === node || !!(context.compareDocumentPosition(node) & 16);\n } : function (context, node) {\n if (node) do {\n if (node === context) return true;\n } while (node = node.parentNode);\n\n return false;\n };\n}();\n\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 27 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.transitionEnd = exports.transitionDuration = exports.transitionDelay = exports.transitionTiming = exports.transitionProperty = exports.transform = undefined;\n\nvar _inDOM = __webpack_require__(25);\n\nvar _inDOM2 = _interopRequireDefault(_inDOM);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar transform = 'transform';\nvar prefix = void 0,\n transitionEnd = void 0;\nvar transitionTiming = void 0,\n transitionDuration = void 0;\nvar transitionProperty = void 0,\n transitionDelay = void 0;\n\nif (_inDOM2.default) {\n var _getTransitionPropert = getTransitionProperties();\n\n prefix = _getTransitionPropert.prefix;\n exports.transitionEnd = transitionEnd = _getTransitionPropert.transitionEnd;\n\n\n exports.transform = transform = prefix + '-' + transform;\n exports.transitionProperty = transitionProperty = prefix + '-transition-property';\n exports.transitionDuration = transitionDuration = prefix + '-transition-duration';\n exports.transitionDelay = transitionDelay = prefix + '-transition-delay';\n exports.transitionTiming = transitionTiming = prefix + '-transition-timing-function';\n}\n\nexports.transform = transform;\nexports.transitionProperty = transitionProperty;\nexports.transitionTiming = transitionTiming;\nexports.transitionDelay = transitionDelay;\nexports.transitionDuration = transitionDuration;\nexports.transitionEnd = transitionEnd;\nexports.default = {\n transform: transform,\n end: transitionEnd,\n property: transitionProperty,\n timing: transitionTiming,\n delay: transitionDelay,\n duration: transitionDuration\n};\n\n\nfunction getTransitionProperties() {\n var transitionEnd = void 0;\n var prefix = '';\n var eventNames = {\n O: 'otransitionend',\n Moz: 'transitionend',\n Webkit: 'webkitTransitionEnd',\n ms: 'MSTransitionEnd'\n };\n\n var element = document.createElement('div');\n for (var vendor in eventNames) {\n if (eventNames.hasOwnProperty(vendor)) {\n if (element.style[vendor + 'TransitionProperty'] !== undefined) {\n prefix = '-' + vendor.toLowerCase();\n transitionEnd = eventNames[vendor];\n break;\n }\n }\n }if (!transitionEnd && element.style.transitionProperty !== undefined) transitionEnd = 'transitionend';\n\n element = null;\n\n return { transitionEnd: transitionEnd, prefix: prefix };\n}\n\n/***/ }),\n/* 28 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"DragDropContext\", function() { return DragDropContext; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Droppable\", function() { return connectedDroppable; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Draggable\", function() { return ConnectedDraggable; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"resetServerContext\", function() { return resetServerContext; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__ = __webpack_require__(1091);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_tiny_invariant__ = __webpack_require__(307);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_css_box_model__ = __webpack_require__(1092);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_corejs2_core_js_object_keys__ = __webpack_require__(1093);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_corejs2_core_js_object_keys___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_corejs2_core_js_object_keys__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_memoize_one__ = __webpack_require__(1097);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_redux__ = __webpack_require__(308);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__babel_runtime_corejs2_core_js_object_assign__ = __webpack_require__(306);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__babel_runtime_corejs2_core_js_object_assign___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_corejs2_core_js_object_assign__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_raf_schd__ = __webpack_require__(1101);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__babel_runtime_corejs2_helpers_esm_inheritsLoose__ = __webpack_require__(1102);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_prop_types__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_prop_types__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react_redux__ = __webpack_require__(1104);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_react_motion__ = __webpack_require__(1117);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_react_motion___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_12_react_motion__);\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar vertical = {\n direction: 'vertical',\n line: 'y',\n crossAxisLine: 'x',\n start: 'top',\n end: 'bottom',\n size: 'height',\n crossAxisStart: 'left',\n crossAxisEnd: 'right',\n crossAxisSize: 'width'\n};\nvar horizontal = {\n direction: 'horizontal',\n line: 'x',\n crossAxisLine: 'y',\n start: 'left',\n end: 'right',\n size: 'width',\n crossAxisStart: 'top',\n crossAxisEnd: 'bottom',\n crossAxisSize: 'height'\n};\n\nvar origin = {\n x: 0,\n y: 0\n};\nvar add = function add(point1, point2) {\n return {\n x: point1.x + point2.x,\n y: point1.y + point2.y\n };\n};\nvar subtract = function subtract(point1, point2) {\n return {\n x: point1.x - point2.x,\n y: point1.y - point2.y\n };\n};\nvar isEqual = function isEqual(point1, point2) {\n return point1.x === point2.x && point1.y === point2.y;\n};\nvar negate = function negate(point) {\n return {\n x: point.x !== 0 ? -point.x : 0,\n y: point.y !== 0 ? -point.y : 0\n };\n};\nvar absolute = function absolute(point) {\n return {\n x: Math.abs(point.x),\n y: Math.abs(point.y)\n };\n};\nvar patch = function patch(line, value, otherValue) {\n var _ref;\n\n if (otherValue === void 0) {\n otherValue = 0;\n }\n\n return _ref = {}, _ref[line] = value, _ref[line === 'x' ? 'y' : 'x'] = otherValue, _ref;\n};\nvar distance = function distance(point1, point2) {\n return Math.sqrt(Math.pow(point2.x - point1.x, 2) + Math.pow(point2.y - point1.y, 2));\n};\nvar closest = function closest(target, points) {\n return Math.min.apply(Math, points.map(function (point) {\n return distance(target, point);\n }));\n};\nvar apply = function apply(fn) {\n return function (point) {\n return {\n x: fn(point.x),\n y: fn(point.y)\n };\n };\n};\n\nvar offsetByPosition = function offsetByPosition(spacing, point) {\n return {\n top: spacing.top + point.y,\n left: spacing.left + point.x,\n bottom: spacing.bottom + point.y,\n right: spacing.right + point.x\n };\n};\nvar expandByPosition = function expandByPosition(spacing, position) {\n return {\n top: spacing.top - position.y,\n left: spacing.left - position.x,\n right: spacing.right + position.x,\n bottom: spacing.bottom + position.y\n };\n};\nvar getCorners = function getCorners(spacing) {\n return [{\n x: spacing.left,\n y: spacing.top\n }, {\n x: spacing.right,\n y: spacing.top\n }, {\n x: spacing.left,\n y: spacing.bottom\n }, {\n x: spacing.right,\n y: spacing.bottom\n }];\n};\n\nvar getMaxScroll = (function (_ref) {\n var scrollHeight = _ref.scrollHeight,\n scrollWidth = _ref.scrollWidth,\n height = _ref.height,\n width = _ref.width;\n var maxScroll = subtract({\n x: scrollWidth,\n y: scrollHeight\n }, {\n x: width,\n y: height\n });\n var adjustedMaxScroll = {\n x: Math.max(0, maxScroll.x),\n y: Math.max(0, maxScroll.y)\n };\n return adjustedMaxScroll;\n});\n\nvar clip = function clip(frame, subject) {\n var result = Object(__WEBPACK_IMPORTED_MODULE_2_css_box_model__[\"d\" /* getRect */])({\n top: Math.max(subject.top, frame.top),\n right: Math.min(subject.right, frame.right),\n bottom: Math.min(subject.bottom, frame.bottom),\n left: Math.max(subject.left, frame.left)\n });\n\n if (result.width <= 0 || result.height <= 0) {\n return null;\n }\n\n return result;\n};\nvar getDroppableDimension = function getDroppableDimension(_ref) {\n var descriptor = _ref.descriptor,\n isEnabled = _ref.isEnabled,\n direction = _ref.direction,\n client = _ref.client,\n page = _ref.page,\n closest$$1 = _ref.closest;\n\n var scrollable = function () {\n if (!closest$$1) {\n return null;\n }\n\n var maxScroll = getMaxScroll({\n scrollHeight: closest$$1.scrollHeight,\n scrollWidth: closest$$1.scrollWidth,\n height: closest$$1.client.paddingBox.height,\n width: closest$$1.client.paddingBox.width\n });\n return {\n framePageMarginBox: closest$$1.page.marginBox,\n shouldClipSubject: closest$$1.shouldClipSubject,\n scroll: {\n initial: closest$$1.scroll,\n current: closest$$1.scroll,\n max: maxScroll,\n diff: {\n value: origin,\n displacement: origin\n }\n }\n };\n }();\n\n var subjectPageMarginBox = page.marginBox;\n var clippedPageMarginBox = scrollable && scrollable.shouldClipSubject ? clip(scrollable.framePageMarginBox, subjectPageMarginBox) : subjectPageMarginBox;\n var viewport = {\n closestScrollable: scrollable,\n subjectPageMarginBox: subjectPageMarginBox,\n clippedPageMarginBox: clippedPageMarginBox\n };\n var dimension = {\n descriptor: descriptor,\n axis: direction === 'vertical' ? vertical : horizontal,\n isEnabled: isEnabled,\n client: client,\n page: page,\n viewport: viewport\n };\n return dimension;\n};\nvar scrollDroppable = function scrollDroppable(droppable, newScroll) {\n !droppable.viewport.closestScrollable ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n var scrollable = droppable.viewport.closestScrollable;\n var framePageMarginBox = scrollable.framePageMarginBox;\n var scrollDiff = subtract(newScroll, scrollable.scroll.initial);\n var scrollDisplacement = negate(scrollDiff);\n var closestScrollable = {\n framePageMarginBox: scrollable.framePageMarginBox,\n shouldClipSubject: scrollable.shouldClipSubject,\n scroll: {\n initial: scrollable.scroll.initial,\n current: newScroll,\n diff: {\n value: scrollDiff,\n displacement: scrollDisplacement\n },\n max: scrollable.scroll.max\n }\n };\n var displacedSubject = offsetByPosition(droppable.viewport.subjectPageMarginBox, scrollDisplacement);\n var clippedPageMarginBox = closestScrollable.shouldClipSubject ? clip(framePageMarginBox, displacedSubject) : Object(__WEBPACK_IMPORTED_MODULE_2_css_box_model__[\"d\" /* getRect */])(displacedSubject);\n var viewport = {\n closestScrollable: closestScrollable,\n subjectPageMarginBox: droppable.viewport.subjectPageMarginBox,\n clippedPageMarginBox: clippedPageMarginBox\n };\n\n var result = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__[\"a\" /* default */])({}, droppable, {\n viewport: viewport\n });\n\n return result;\n};\n\nvar toDroppableMap = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__[\"a\" /* default */])(function (droppables) {\n return droppables.reduce(function (previous, current) {\n previous[current.descriptor.id] = current;\n return previous;\n }, {});\n});\nvar toDraggableMap = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__[\"a\" /* default */])(function (draggables) {\n return draggables.reduce(function (previous, current) {\n previous[current.descriptor.id] = current;\n return previous;\n }, {});\n});\nvar toDroppableList = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__[\"a\" /* default */])(function (droppables) {\n return __WEBPACK_IMPORTED_MODULE_3__babel_runtime_corejs2_core_js_object_keys___default()(droppables).map(function (id) {\n return droppables[id];\n });\n});\nvar toDraggableList = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__[\"a\" /* default */])(function (draggables) {\n return __WEBPACK_IMPORTED_MODULE_3__babel_runtime_corejs2_core_js_object_keys___default()(draggables).map(function (id) {\n return draggables[id];\n });\n});\n\nvar getDraggablesInsideDroppable = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__[\"a\" /* default */])(function (droppable, draggables) {\n return toDraggableList(draggables).filter(function (draggable) {\n return droppable.descriptor.id === draggable.descriptor.droppableId;\n }).sort(function (a, b) {\n return a.descriptor.index - b.descriptor.index;\n });\n});\n\nvar isWithin = (function (lowerBound, upperBound) {\n return function (value) {\n return value <= upperBound && value >= lowerBound;\n };\n});\n\nvar isPositionInFrame = (function (frame) {\n var isWithinVertical = isWithin(frame.top, frame.bottom);\n var isWithinHorizontal = isWithin(frame.left, frame.right);\n return function (point) {\n return isWithinVertical(point.y) && isWithinVertical(point.y) && isWithinHorizontal(point.x) && isWithinHorizontal(point.x);\n };\n});\n\nvar getRequiredGrowth = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__[\"a\" /* default */])(function (draggable, draggables, droppable) {\n var getResult = function getResult(existingSpace) {\n var requiredSpace = draggable.page.marginBox[droppable.axis.size];\n\n if (requiredSpace <= existingSpace) {\n return null;\n }\n\n var requiredGrowth = patch(droppable.axis.line, requiredSpace - existingSpace);\n return requiredGrowth;\n };\n\n var dimensions = getDraggablesInsideDroppable(droppable, draggables);\n\n if (!dimensions.length) {\n var _existingSpace = droppable.page.marginBox[droppable.axis.size];\n return getResult(_existingSpace);\n }\n\n var endOfDraggables = dimensions[dimensions.length - 1].page.marginBox[droppable.axis.end];\n var endOfDroppable = droppable.page.marginBox[droppable.axis.end];\n var existingSpace = endOfDroppable - endOfDraggables;\n return getResult(existingSpace);\n});\nvar getWithGrowth = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__[\"a\" /* default */])(function (area, growth) {\n return Object(__WEBPACK_IMPORTED_MODULE_2_css_box_model__[\"d\" /* getRect */])(expandByPosition(area, growth));\n});\n\nvar getClippedRectWithPlaceholder = function getClippedRectWithPlaceholder(_ref) {\n var draggable = _ref.draggable,\n draggables = _ref.draggables,\n droppable = _ref.droppable,\n previousDroppableOverId = _ref.previousDroppableOverId;\n var isHome = draggable.descriptor.droppableId === droppable.descriptor.id;\n var wasOver = Boolean(previousDroppableOverId && previousDroppableOverId === droppable.descriptor.id);\n var clippedPageMarginBox = droppable.viewport.clippedPageMarginBox;\n\n if (!clippedPageMarginBox) {\n return clippedPageMarginBox;\n }\n\n if (isHome || !wasOver) {\n return clippedPageMarginBox;\n }\n\n var requiredGrowth = getRequiredGrowth(draggable, draggables, droppable);\n\n if (!requiredGrowth) {\n return clippedPageMarginBox;\n }\n\n var subjectWithGrowth = getWithGrowth(clippedPageMarginBox, requiredGrowth);\n var closestScrollable = droppable.viewport.closestScrollable;\n\n if (!closestScrollable) {\n return subjectWithGrowth;\n }\n\n if (!closestScrollable.shouldClipSubject) {\n return subjectWithGrowth;\n }\n\n return clip(closestScrollable.framePageMarginBox, subjectWithGrowth);\n};\n\nvar getDroppableOver = (function (_ref2) {\n var target = _ref2.target,\n draggable = _ref2.draggable,\n draggables = _ref2.draggables,\n droppables = _ref2.droppables,\n previousDroppableOverId = _ref2.previousDroppableOverId;\n var maybe = toDroppableList(droppables).filter(function (droppable) {\n return droppable.isEnabled;\n }).find(function (droppable) {\n var withPlaceholder = getClippedRectWithPlaceholder({\n draggable: draggable,\n draggables: draggables,\n droppable: droppable,\n previousDroppableOverId: previousDroppableOverId\n });\n\n if (!withPlaceholder) {\n return false;\n }\n\n return isPositionInFrame(withPlaceholder)(target);\n });\n return maybe ? maybe.descriptor.id : null;\n});\n\nvar noMovement = {\n displaced: [],\n amount: origin,\n isBeyondStartPosition: false\n};\nvar noImpact = {\n movement: noMovement,\n direction: null,\n destination: null\n};\n\nvar getDisplacementMap = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__[\"a\" /* default */])(function (displaced) {\n return displaced.reduce(function (map, displacement) {\n map[displacement.draggableId] = displacement;\n return map;\n }, {});\n});\n\nvar isPartiallyVisibleThroughFrame = (function (frame) {\n var isWithinVertical = isWithin(frame.top, frame.bottom);\n var isWithinHorizontal = isWithin(frame.left, frame.right);\n return function (subject) {\n var isContained = isWithinVertical(subject.top) && isWithinVertical(subject.bottom) && isWithinHorizontal(subject.left) && isWithinHorizontal(subject.right);\n\n if (isContained) {\n return true;\n }\n\n var isPartiallyVisibleVertically = isWithinVertical(subject.top) || isWithinVertical(subject.bottom);\n var isPartiallyVisibleHorizontally = isWithinHorizontal(subject.left) || isWithinHorizontal(subject.right);\n var isPartiallyContained = isPartiallyVisibleVertically && isPartiallyVisibleHorizontally;\n\n if (isPartiallyContained) {\n return true;\n }\n\n var isBiggerVertically = subject.top < frame.top && subject.bottom > frame.bottom;\n var isBiggerHorizontally = subject.left < frame.left && subject.right > frame.right;\n var isTargetBiggerThanFrame = isBiggerVertically && isBiggerHorizontally;\n\n if (isTargetBiggerThanFrame) {\n return true;\n }\n\n var isTargetBiggerOnOneAxis = isBiggerVertically && isPartiallyVisibleHorizontally || isBiggerHorizontally && isPartiallyVisibleVertically;\n return isTargetBiggerOnOneAxis;\n };\n});\n\nvar isTotallyVisibleThroughFrame = (function (frame) {\n var isWithinVertical = isWithin(frame.top, frame.bottom);\n var isWithinHorizontal = isWithin(frame.left, frame.right);\n return function (subject) {\n var isContained = isWithinVertical(subject.top) && isWithinVertical(subject.bottom) && isWithinHorizontal(subject.left) && isWithinHorizontal(subject.right);\n return isContained;\n };\n});\n\nvar isVisible = function isVisible(_ref) {\n var target = _ref.target,\n destination = _ref.destination,\n viewport = _ref.viewport,\n isVisibleThroughFrameFn = _ref.isVisibleThroughFrameFn;\n var displacement = destination.viewport.closestScrollable ? destination.viewport.closestScrollable.scroll.diff.displacement : origin;\n var withDisplacement = offsetByPosition(target, displacement);\n\n if (!destination.viewport.clippedPageMarginBox) {\n return false;\n }\n\n var isVisibleInDroppable = isVisibleThroughFrameFn(destination.viewport.clippedPageMarginBox)(withDisplacement);\n var isVisibleInViewport = isVisibleThroughFrameFn(viewport)(withDisplacement);\n return isVisibleInDroppable && isVisibleInViewport;\n};\n\nvar isPartiallyVisible = function isPartiallyVisible(_ref2) {\n var target = _ref2.target,\n destination = _ref2.destination,\n viewport = _ref2.viewport;\n return isVisible({\n target: target,\n destination: destination,\n viewport: viewport,\n isVisibleThroughFrameFn: isPartiallyVisibleThroughFrame\n });\n};\nvar isTotallyVisible = function isTotallyVisible(_ref3) {\n var target = _ref3.target,\n destination = _ref3.destination,\n viewport = _ref3.viewport;\n return isVisible({\n target: target,\n destination: destination,\n viewport: viewport,\n isVisibleThroughFrameFn: isTotallyVisibleThroughFrame\n });\n};\n\nvar getDisplacement = (function (_ref) {\n var draggable = _ref.draggable,\n destination = _ref.destination,\n previousImpact = _ref.previousImpact,\n viewport = _ref.viewport;\n var id = draggable.descriptor.id;\n var map = getDisplacementMap(previousImpact.movement.displaced);\n var isVisible = isPartiallyVisible({\n target: draggable.page.marginBox,\n destination: destination,\n viewport: viewport\n });\n\n var shouldAnimate = function () {\n if (!isVisible) {\n return false;\n }\n\n var previous = map[id];\n\n if (!previous) {\n return true;\n }\n\n return previous.shouldAnimate;\n }();\n\n var displacement = {\n draggableId: id,\n isVisible: isVisible,\n shouldAnimate: shouldAnimate\n };\n return displacement;\n});\n\nvar withDroppableScroll = (function (droppable, point) {\n var closestScrollable = droppable.viewport.closestScrollable;\n\n if (!closestScrollable) {\n return point;\n }\n\n return add(point, closestScrollable.scroll.diff.value);\n});\n\nvar inHomeList = (function (_ref) {\n var pageBorderBoxCenter = _ref.pageBorderBoxCenter,\n draggable = _ref.draggable,\n home = _ref.home,\n insideHome = _ref.insideHome,\n previousImpact = _ref.previousImpact,\n viewport = _ref.viewport;\n var axis = home.axis;\n var originalCenter = draggable.page.borderBox.center;\n var currentCenter = withDroppableScroll(home, pageBorderBoxCenter);\n var isBeyondStartPosition = currentCenter[axis.line] - originalCenter[axis.line] > 0;\n var amount = patch(axis.line, draggable.client.marginBox[axis.size]);\n var displaced = insideHome.filter(function (child) {\n if (child === draggable) {\n return false;\n }\n\n var borderBox = child.page.borderBox;\n\n if (isBeyondStartPosition) {\n if (borderBox.center[axis.line] < originalCenter[axis.line]) {\n return false;\n }\n\n return currentCenter[axis.line] > borderBox[axis.start];\n }\n\n if (originalCenter[axis.line] < borderBox.center[axis.line]) {\n return false;\n }\n\n return currentCenter[axis.line] < borderBox[axis.end];\n }).map(function (dimension) {\n return getDisplacement({\n draggable: dimension,\n destination: home,\n previousImpact: previousImpact,\n viewport: viewport.frame\n });\n });\n var ordered = isBeyondStartPosition ? displaced.reverse() : displaced;\n\n var index = function () {\n var startIndex = draggable.descriptor.index;\n var length = ordered.length;\n\n if (!length) {\n return startIndex;\n }\n\n if (isBeyondStartPosition) {\n return startIndex + length;\n }\n\n return startIndex - length;\n }();\n\n var movement = {\n amount: amount,\n displaced: ordered,\n isBeyondStartPosition: isBeyondStartPosition\n };\n var impact = {\n movement: movement,\n direction: axis.direction,\n destination: {\n droppableId: home.descriptor.id,\n index: index\n }\n };\n return impact;\n});\n\nvar inForeignList = (function (_ref) {\n var pageBorderBoxCenter = _ref.pageBorderBoxCenter,\n draggable = _ref.draggable,\n destination = _ref.destination,\n insideDestination = _ref.insideDestination,\n previousImpact = _ref.previousImpact,\n viewport = _ref.viewport;\n var axis = destination.axis;\n var currentCenter = withDroppableScroll(destination, pageBorderBoxCenter);\n var displaced = insideDestination.filter(function (child) {\n var threshold = child.page.borderBox[axis.end];\n return threshold > currentCenter[axis.line];\n }).map(function (dimension) {\n return getDisplacement({\n draggable: dimension,\n destination: destination,\n previousImpact: previousImpact,\n viewport: viewport.frame\n });\n });\n var newIndex = insideDestination.length - displaced.length;\n var movement = {\n amount: patch(axis.line, draggable.page.marginBox[axis.size]),\n displaced: displaced,\n isBeyondStartPosition: false\n };\n var impact = {\n movement: movement,\n direction: axis.direction,\n destination: {\n droppableId: destination.descriptor.id,\n index: newIndex\n }\n };\n return impact;\n});\n\nvar getDragImpact = (function (_ref) {\n var pageBorderBoxCenter = _ref.pageBorderBoxCenter,\n draggable = _ref.draggable,\n draggables = _ref.draggables,\n droppables = _ref.droppables,\n previousImpact = _ref.previousImpact,\n viewport = _ref.viewport;\n var previousDroppableOverId = previousImpact.destination && previousImpact.destination.droppableId;\n var destinationId = getDroppableOver({\n target: pageBorderBoxCenter,\n draggable: draggable,\n draggables: draggables,\n droppables: droppables,\n previousDroppableOverId: previousDroppableOverId\n });\n\n if (!destinationId) {\n return noImpact;\n }\n\n var destination = droppables[destinationId];\n\n if (!destination.isEnabled) {\n return noImpact;\n }\n\n var home = droppables[draggable.descriptor.droppableId];\n var isWithinHomeDroppable = home.descriptor.id === destinationId;\n var insideDestination = getDraggablesInsideDroppable(destination, draggables);\n\n if (isWithinHomeDroppable) {\n return inHomeList({\n pageBorderBoxCenter: pageBorderBoxCenter,\n draggable: draggable,\n home: home,\n insideHome: insideDestination,\n previousImpact: previousImpact || noImpact,\n viewport: viewport\n });\n }\n\n return inForeignList({\n pageBorderBoxCenter: pageBorderBoxCenter,\n draggable: draggable,\n destination: destination,\n insideDestination: insideDestination,\n previousImpact: previousImpact || noImpact,\n viewport: viewport\n });\n});\n\nvar getHomeLocation = (function (critical) {\n return {\n index: critical.draggable.index,\n droppableId: critical.droppable.id\n };\n});\n\nvar getSafeClipped = function getSafeClipped(droppable) {\n var rect = droppable.viewport.clippedPageMarginBox;\n !rect ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Cannot get clipped area from droppable') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n return rect;\n};\n\nvar getBestCrossAxisDroppable = (function (_ref) {\n var isMovingForward = _ref.isMovingForward,\n pageBorderBoxCenter = _ref.pageBorderBoxCenter,\n source = _ref.source,\n droppables = _ref.droppables,\n viewport = _ref.viewport;\n var sourceClipped = source.viewport.clippedPageMarginBox;\n\n if (!sourceClipped) {\n return null;\n }\n\n var axis = source.axis;\n var isBetweenSourceClipped = isWithin(sourceClipped[axis.start], sourceClipped[axis.end]);\n var candidates = toDroppableList(droppables).filter(function (droppable) {\n return droppable !== source;\n }).filter(function (droppable) {\n return droppable.isEnabled;\n }).filter(function (droppable) {\n var clippedPageMarginBox = droppable.viewport.clippedPageMarginBox;\n\n if (!clippedPageMarginBox) {\n return false;\n }\n\n return isPartiallyVisibleThroughFrame(viewport.frame)(clippedPageMarginBox);\n }).filter(function (droppable) {\n var targetClipped = getSafeClipped(droppable);\n\n if (isMovingForward) {\n return sourceClipped[axis.crossAxisEnd] < targetClipped[axis.crossAxisEnd];\n }\n\n return targetClipped[axis.crossAxisStart] < sourceClipped[axis.crossAxisStart];\n }).filter(function (droppable) {\n var targetClipped = getSafeClipped(droppable);\n var isBetweenDestinationClipped = isWithin(targetClipped[axis.start], targetClipped[axis.end]);\n return isBetweenSourceClipped(targetClipped[axis.start]) || isBetweenSourceClipped(targetClipped[axis.end]) || isBetweenDestinationClipped(sourceClipped[axis.start]) || isBetweenDestinationClipped(sourceClipped[axis.end]);\n }).sort(function (a, b) {\n var first = getSafeClipped(a)[axis.crossAxisStart];\n var second = getSafeClipped(b)[axis.crossAxisStart];\n\n if (isMovingForward) {\n return first - second;\n }\n\n return second - first;\n }).filter(function (droppable, index, array) {\n return getSafeClipped(droppable)[axis.crossAxisStart] === getSafeClipped(array[0])[axis.crossAxisStart];\n });\n\n if (!candidates.length) {\n return null;\n }\n\n if (candidates.length === 1) {\n return candidates[0];\n }\n\n var contains = candidates.filter(function (droppable) {\n var isWithinDroppable = isWithin(getSafeClipped(droppable)[axis.start], getSafeClipped(droppable)[axis.end]);\n return isWithinDroppable(pageBorderBoxCenter[axis.line]);\n });\n\n if (contains.length === 1) {\n return contains[0];\n }\n\n if (contains.length > 1) {\n return contains.sort(function (a, b) {\n return getSafeClipped(a)[axis.start] - getSafeClipped(b)[axis.start];\n })[0];\n }\n\n return candidates.sort(function (a, b) {\n var first = closest(pageBorderBoxCenter, getCorners(getSafeClipped(a)));\n var second = closest(pageBorderBoxCenter, getCorners(getSafeClipped(b)));\n\n if (first !== second) {\n return first - second;\n }\n\n return getSafeClipped(a)[axis.start] - getSafeClipped(b)[axis.start];\n })[0];\n});\n\nvar withDroppableDisplacement = (function (droppable, point) {\n var closestScrollable = droppable.viewport.closestScrollable;\n\n if (!closestScrollable) {\n return point;\n }\n\n return add(point, closestScrollable.scroll.diff.displacement);\n});\n\nvar getClosestDraggable = (function (_ref) {\n var axis = _ref.axis,\n viewport = _ref.viewport,\n pageBorderBoxCenter = _ref.pageBorderBoxCenter,\n destination = _ref.destination,\n insideDestination = _ref.insideDestination;\n\n if (!insideDestination.length) {\n return null;\n }\n\n var result = insideDestination.filter(function (draggable) {\n return isTotallyVisible({\n target: draggable.page.borderBox,\n destination: destination,\n viewport: viewport.frame\n });\n }).sort(function (a, b) {\n var distanceToA = distance(pageBorderBoxCenter, withDroppableDisplacement(destination, a.page.borderBox.center));\n var distanceToB = distance(pageBorderBoxCenter, withDroppableDisplacement(destination, b.page.borderBox.center));\n\n if (distanceToA < distanceToB) {\n return -1;\n }\n\n if (distanceToB < distanceToA) {\n return 1;\n }\n\n return a.page.borderBox[axis.start] - b.page.borderBox[axis.start];\n });\n return result.length ? result[0] : null;\n});\n\nvar moveToEdge = (function (_ref) {\n var source = _ref.source,\n sourceEdge = _ref.sourceEdge,\n destination = _ref.destination,\n destinationEdge = _ref.destinationEdge,\n destinationAxis = _ref.destinationAxis;\n\n var getCorner = function getCorner(area) {\n return patch(destinationAxis.line, area[destinationAxis[destinationEdge]], area[destinationAxis.crossAxisStart]);\n };\n\n var corner = getCorner(destination);\n var centerDiff = absolute(subtract(source.center, getCorner(source)));\n var signed = patch(destinationAxis.line, (sourceEdge === 'end' ? -1 : 1) * centerDiff[destinationAxis.line], centerDiff[destinationAxis.crossAxisLine]);\n return add(corner, signed);\n});\n\nvar toHomeList = (function (_ref) {\n var amount = _ref.amount,\n homeIndex = _ref.homeIndex,\n movingRelativeTo = _ref.movingRelativeTo,\n insideDestination = _ref.insideDestination,\n draggable = _ref.draggable,\n destination = _ref.destination,\n previousImpact = _ref.previousImpact,\n viewport = _ref.viewport;\n var axis = destination.axis;\n var targetIndex = insideDestination.indexOf(movingRelativeTo);\n !(targetIndex !== -1) ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Unable to find target in destination droppable') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n\n if (targetIndex === homeIndex) {\n var _newCenter = draggable.page.borderBox.center;\n var _newImpact = {\n movement: {\n displaced: [],\n amount: amount,\n isBeyondStartPosition: false\n },\n direction: destination.axis.direction,\n destination: {\n droppableId: destination.descriptor.id,\n index: homeIndex\n }\n };\n return {\n pageBorderBoxCenter: withDroppableDisplacement(destination, _newCenter),\n impact: _newImpact\n };\n }\n\n var isMovingPastOriginalIndex = targetIndex > homeIndex;\n var edge = isMovingPastOriginalIndex ? 'end' : 'start';\n var newCenter = moveToEdge({\n source: draggable.page.borderBox,\n sourceEdge: edge,\n destination: isMovingPastOriginalIndex ? movingRelativeTo.page.borderBox : movingRelativeTo.page.marginBox,\n destinationEdge: edge,\n destinationAxis: axis\n });\n\n var modified = function () {\n if (!isMovingPastOriginalIndex) {\n return insideDestination.slice(targetIndex, homeIndex);\n }\n\n var from = homeIndex + 1;\n var to = targetIndex + 1;\n return insideDestination.slice(from, to).reverse();\n }();\n\n var displaced = modified.map(function (dimension) {\n return getDisplacement({\n draggable: dimension,\n destination: destination,\n previousImpact: previousImpact,\n viewport: viewport.frame\n });\n });\n var newImpact = {\n movement: {\n displaced: displaced,\n amount: amount,\n isBeyondStartPosition: isMovingPastOriginalIndex\n },\n direction: axis.direction,\n destination: {\n droppableId: destination.descriptor.id,\n index: targetIndex\n }\n };\n return {\n pageBorderBoxCenter: withDroppableDisplacement(destination, newCenter),\n impact: newImpact\n };\n});\n\nvar toForeignList = (function (_ref) {\n var amount = _ref.amount,\n pageBorderBoxCenter = _ref.pageBorderBoxCenter,\n movingRelativeTo = _ref.movingRelativeTo,\n insideDestination = _ref.insideDestination,\n draggable = _ref.draggable,\n destination = _ref.destination,\n previousImpact = _ref.previousImpact,\n viewport = _ref.viewport;\n var axis = destination.axis;\n var isGoingBeforeTarget = Boolean(movingRelativeTo && pageBorderBoxCenter[destination.axis.line] < movingRelativeTo.page.borderBox.center[destination.axis.line]);\n\n if (!movingRelativeTo) {\n var _newCenter = moveToEdge({\n source: draggable.page.borderBox,\n sourceEdge: 'start',\n destination: destination.page.contentBox,\n destinationEdge: 'start',\n destinationAxis: axis\n });\n\n var _newImpact = {\n movement: {\n displaced: [],\n amount: amount,\n isBeyondStartPosition: false\n },\n direction: axis.direction,\n destination: {\n droppableId: destination.descriptor.id,\n index: 0\n }\n };\n return {\n pageBorderBoxCenter: withDroppableDisplacement(destination, _newCenter),\n impact: _newImpact\n };\n }\n\n var targetIndex = insideDestination.indexOf(movingRelativeTo);\n !(targetIndex !== -1) ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'The target was not found within its droppable') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n var proposedIndex = isGoingBeforeTarget ? targetIndex : targetIndex + 1;\n var newCenter = moveToEdge({\n source: draggable.page.borderBox,\n sourceEdge: 'start',\n destination: movingRelativeTo.page.marginBox,\n destinationEdge: isGoingBeforeTarget ? 'start' : 'end',\n destinationAxis: axis\n });\n var displaced = insideDestination.slice(proposedIndex, insideDestination.length).map(function (dimension) {\n return getDisplacement({\n draggable: dimension,\n destination: destination,\n viewport: viewport.frame,\n previousImpact: previousImpact\n });\n });\n var newImpact = {\n movement: {\n displaced: displaced,\n amount: amount,\n isBeyondStartPosition: false\n },\n direction: axis.direction,\n destination: {\n droppableId: destination.descriptor.id,\n index: proposedIndex\n }\n };\n return {\n pageBorderBoxCenter: withDroppableDisplacement(destination, newCenter),\n impact: newImpact\n };\n});\n\nvar moveToNewDroppable = (function (_ref) {\n var pageBorderBoxCenter = _ref.pageBorderBoxCenter,\n destination = _ref.destination,\n insideDestination = _ref.insideDestination,\n draggable = _ref.draggable,\n movingRelativeTo = _ref.movingRelativeTo,\n home = _ref.home,\n previousImpact = _ref.previousImpact,\n viewport = _ref.viewport;\n var amount = patch(destination.axis.line, draggable.client.marginBox[destination.axis.size]);\n\n if (destination.descriptor.id === draggable.descriptor.droppableId) {\n !movingRelativeTo ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'There will always be a target in the original list') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n return toHomeList({\n amount: amount,\n homeIndex: home.index,\n movingRelativeTo: movingRelativeTo,\n insideDestination: insideDestination,\n draggable: draggable,\n destination: destination,\n previousImpact: previousImpact,\n viewport: viewport\n });\n }\n\n return toForeignList({\n amount: amount,\n pageBorderBoxCenter: pageBorderBoxCenter,\n movingRelativeTo: movingRelativeTo,\n insideDestination: insideDestination,\n draggable: draggable,\n destination: destination,\n previousImpact: previousImpact,\n viewport: viewport\n });\n});\n\nvar moveCrossAxis = (function (_ref) {\n var isMovingForward = _ref.isMovingForward,\n pageBorderBoxCenter = _ref.pageBorderBoxCenter,\n draggableId = _ref.draggableId,\n droppableId = _ref.droppableId,\n home = _ref.home,\n draggables = _ref.draggables,\n droppables = _ref.droppables,\n previousImpact = _ref.previousImpact,\n viewport = _ref.viewport;\n var draggable = draggables[draggableId];\n var source = droppables[droppableId];\n var destination = getBestCrossAxisDroppable({\n isMovingForward: isMovingForward,\n pageBorderBoxCenter: pageBorderBoxCenter,\n source: source,\n droppables: droppables,\n viewport: viewport\n });\n\n if (!destination) {\n return null;\n }\n\n var insideDestination = getDraggablesInsideDroppable(destination, draggables);\n var movingRelativeTo = getClosestDraggable({\n axis: destination.axis,\n pageBorderBoxCenter: pageBorderBoxCenter,\n destination: destination,\n insideDestination: insideDestination,\n viewport: viewport\n });\n\n if (insideDestination.length && !movingRelativeTo) {\n return null;\n }\n\n return moveToNewDroppable({\n pageBorderBoxCenter: pageBorderBoxCenter,\n destination: destination,\n draggable: draggable,\n movingRelativeTo: movingRelativeTo,\n insideDestination: insideDestination,\n home: home,\n previousImpact: previousImpact || noImpact,\n viewport: viewport\n });\n});\n\nvar isTotallyVisibleInNewLocation = (function (_ref) {\n var draggable = _ref.draggable,\n destination = _ref.destination,\n newPageBorderBoxCenter = _ref.newPageBorderBoxCenter,\n viewport = _ref.viewport;\n var diff = subtract(newPageBorderBoxCenter, draggable.page.borderBox.center);\n var shifted = offsetByPosition(draggable.page.borderBox, diff);\n return isTotallyVisible({\n target: shifted,\n destination: destination,\n viewport: viewport\n });\n});\n\nvar withFirstAdded = function withFirstAdded(_ref) {\n var add = _ref.add,\n previousImpact = _ref.previousImpact,\n droppable = _ref.droppable,\n draggables = _ref.draggables,\n viewport = _ref.viewport;\n var newDisplacement = {\n draggableId: add,\n isVisible: true,\n shouldAnimate: true\n };\n var added = [newDisplacement].concat(previousImpact.movement.displaced);\n var withUpdatedVisibility = added.map(function (current) {\n if (current === newDisplacement) {\n return current;\n }\n\n var updated = getDisplacement({\n draggable: draggables[current.draggableId],\n destination: droppable,\n previousImpact: previousImpact,\n viewport: viewport.frame\n });\n return updated;\n });\n return withUpdatedVisibility;\n};\n\nvar forceVisibleDisplacement = function forceVisibleDisplacement(current) {\n if (current.isVisible) {\n return current;\n }\n\n return {\n draggableId: current.draggableId,\n isVisible: true,\n shouldAnimate: false\n };\n};\n\nvar withFirstRemoved = function withFirstRemoved(_ref2) {\n var dragging = _ref2.dragging,\n isVisibleInNewLocation = _ref2.isVisibleInNewLocation,\n previousImpact = _ref2.previousImpact,\n droppable = _ref2.droppable,\n draggables = _ref2.draggables;\n var last = previousImpact.movement.displaced;\n !last.length ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Cannot remove displacement from empty list') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n var withFirstRestored = last.slice(1, last.length);\n\n if (!withFirstRestored.length) {\n return withFirstRestored;\n }\n\n if (isVisibleInNewLocation) {\n return withFirstRestored;\n }\n\n var axis = droppable.axis;\n var sizeOfRestored = draggables[last[0].draggableId].page.marginBox[axis.size];\n var sizeOfDragging = draggables[dragging].page.marginBox[axis.size];\n var buffer = sizeOfRestored + sizeOfDragging;\n var withUpdatedVisibility = withFirstRestored.map(function (displacement, index) {\n if (index === 0) {\n return forceVisibleDisplacement(displacement);\n }\n\n if (buffer > 0) {\n var current = draggables[displacement.draggableId];\n var size = current.page.marginBox[axis.size];\n buffer -= size;\n return forceVisibleDisplacement(displacement);\n }\n\n return {\n draggableId: displacement.draggableId,\n isVisible: false,\n shouldAnimate: false\n };\n });\n return withUpdatedVisibility;\n};\n\nvar inHomeList$1 = (function (_ref) {\n var isMovingForward = _ref.isMovingForward,\n draggableId = _ref.draggableId,\n previousPageBorderBoxCenter = _ref.previousPageBorderBoxCenter,\n previousImpact = _ref.previousImpact,\n droppable = _ref.droppable,\n draggables = _ref.draggables,\n viewport = _ref.viewport;\n var location = previousImpact.destination;\n !location ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Cannot move to next index in home list when there is no previous destination') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n var draggable = draggables[draggableId];\n var axis = droppable.axis;\n var insideDroppable = getDraggablesInsideDroppable(droppable, draggables);\n var startIndex = draggable.descriptor.index;\n var currentIndex = location.index;\n var proposedIndex = isMovingForward ? currentIndex + 1 : currentIndex - 1;\n\n if (proposedIndex > insideDroppable.length - 1) {\n return null;\n }\n\n if (proposedIndex < 0) {\n return null;\n }\n\n var destination = insideDroppable[proposedIndex];\n var isMovingTowardStart = isMovingForward && proposedIndex <= startIndex || !isMovingForward && proposedIndex >= startIndex;\n\n var edge = function () {\n if (!isMovingTowardStart) {\n return isMovingForward ? 'end' : 'start';\n }\n\n return isMovingForward ? 'start' : 'end';\n }();\n\n var newPageBorderBoxCenter = moveToEdge({\n source: draggable.page.borderBox,\n sourceEdge: edge,\n destination: destination.page.borderBox,\n destinationEdge: edge,\n destinationAxis: droppable.axis\n });\n var isVisibleInNewLocation = isTotallyVisibleInNewLocation({\n draggable: draggable,\n destination: droppable,\n newPageBorderBoxCenter: newPageBorderBoxCenter,\n viewport: viewport.frame\n });\n var displaced = isMovingTowardStart ? withFirstRemoved({\n dragging: draggableId,\n isVisibleInNewLocation: isVisibleInNewLocation,\n previousImpact: previousImpact,\n droppable: droppable,\n draggables: draggables\n }) : withFirstAdded({\n add: destination.descriptor.id,\n previousImpact: previousImpact,\n droppable: droppable,\n draggables: draggables,\n viewport: viewport\n });\n var newImpact = {\n movement: {\n displaced: displaced,\n amount: patch(axis.line, draggable.page.marginBox[axis.size]),\n isBeyondStartPosition: proposedIndex > startIndex\n },\n destination: {\n droppableId: droppable.descriptor.id,\n index: proposedIndex\n },\n direction: droppable.axis.direction\n };\n\n if (isVisibleInNewLocation) {\n return {\n pageBorderBoxCenter: withDroppableDisplacement(droppable, newPageBorderBoxCenter),\n impact: newImpact,\n scrollJumpRequest: null\n };\n }\n\n var distance$$1 = subtract(newPageBorderBoxCenter, previousPageBorderBoxCenter);\n var distanceWithScroll = withDroppableDisplacement(droppable, distance$$1);\n return {\n pageBorderBoxCenter: previousPageBorderBoxCenter,\n impact: newImpact,\n scrollJumpRequest: distanceWithScroll\n };\n});\n\nvar inForeignList$1 = (function (_ref) {\n var isMovingForward = _ref.isMovingForward,\n draggableId = _ref.draggableId,\n previousImpact = _ref.previousImpact,\n previousPageBorderBoxCenter = _ref.previousPageBorderBoxCenter,\n droppable = _ref.droppable,\n draggables = _ref.draggables,\n viewport = _ref.viewport;\n !previousImpact.destination ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Cannot move to next index where there is no previous destination') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n var location = previousImpact.destination;\n var draggable = draggables[draggableId];\n var axis = droppable.axis;\n var insideForeignDroppable = getDraggablesInsideDroppable(droppable, draggables);\n var currentIndex = location.index;\n var proposedIndex = isMovingForward ? currentIndex + 1 : currentIndex - 1;\n var lastIndex = insideForeignDroppable.length - 1;\n\n if (proposedIndex > insideForeignDroppable.length) {\n return null;\n }\n\n if (proposedIndex < 0) {\n return null;\n }\n\n var movingRelativeTo = insideForeignDroppable[Math.min(proposedIndex, lastIndex)];\n var isMovingPastLastIndex = proposedIndex > lastIndex;\n var sourceEdge = 'start';\n\n var destinationEdge = function () {\n if (isMovingPastLastIndex) {\n return 'end';\n }\n\n return 'start';\n }();\n\n var newPageBorderBoxCenter = moveToEdge({\n source: draggable.page.borderBox,\n sourceEdge: sourceEdge,\n destination: movingRelativeTo.page.marginBox,\n destinationEdge: destinationEdge,\n destinationAxis: droppable.axis\n });\n var isVisibleInNewLocation = isTotallyVisibleInNewLocation({\n draggable: draggable,\n destination: droppable,\n newPageBorderBoxCenter: newPageBorderBoxCenter,\n viewport: viewport.frame\n });\n\n var displaced = function () {\n if (isMovingForward) {\n return withFirstRemoved({\n dragging: draggableId,\n isVisibleInNewLocation: isVisibleInNewLocation,\n previousImpact: previousImpact,\n droppable: droppable,\n draggables: draggables\n });\n }\n\n return withFirstAdded({\n add: movingRelativeTo.descriptor.id,\n previousImpact: previousImpact,\n droppable: droppable,\n draggables: draggables,\n viewport: viewport\n });\n }();\n\n var newImpact = {\n movement: {\n displaced: displaced,\n amount: patch(axis.line, draggable.page.marginBox[axis.size]),\n isBeyondStartPosition: false\n },\n destination: {\n droppableId: droppable.descriptor.id,\n index: proposedIndex\n },\n direction: droppable.axis.direction\n };\n\n if (isVisibleInNewLocation) {\n return {\n pageBorderBoxCenter: withDroppableDisplacement(droppable, newPageBorderBoxCenter),\n impact: newImpact,\n scrollJumpRequest: null\n };\n }\n\n var distanceMoving = subtract(newPageBorderBoxCenter, previousPageBorderBoxCenter);\n var distanceWithScroll = withDroppableDisplacement(droppable, distanceMoving);\n return {\n pageBorderBoxCenter: previousPageBorderBoxCenter,\n impact: newImpact,\n scrollJumpRequest: distanceWithScroll\n };\n});\n\nvar moveToNextIndex = (function (args) {\n var draggableId = args.draggableId,\n draggables = args.draggables,\n droppable = args.droppable;\n var draggable = draggables[draggableId];\n var isInHomeList = draggable.descriptor.droppableId === droppable.descriptor.id;\n\n if (!droppable.isEnabled) {\n return null;\n }\n\n if (isInHomeList) {\n return inHomeList$1(args);\n }\n\n return inForeignList$1(args);\n});\n\nvar getClientSelection = function getClientSelection(pageBorderBoxCenter, currentScroll) {\n return subtract(pageBorderBoxCenter, currentScroll);\n};\n\nvar moveInDirection = (function (_ref) {\n var state = _ref.state,\n type = _ref.type;\n\n var _ref2 = function () {\n if (state.impact.destination) {\n return {\n droppable: state.dimensions.droppables[state.impact.destination.droppableId],\n isMainAxisMovementAllowed: true\n };\n }\n\n return {\n droppable: state.dimensions.droppables[state.critical.droppable.id],\n isMainAxisMovementAllowed: false\n };\n }(),\n droppable = _ref2.droppable,\n isMainAxisMovementAllowed = _ref2.isMainAxisMovementAllowed;\n\n var direction = droppable.axis.direction;\n var isMovingOnMainAxis = direction === 'vertical' && (type === 'MOVE_UP' || type === 'MOVE_DOWN') || direction === 'horizontal' && (type === 'MOVE_LEFT' || type === 'MOVE_RIGHT');\n\n if (isMovingOnMainAxis && !isMainAxisMovementAllowed) {\n return null;\n }\n\n var isMovingForward = type === 'MOVE_DOWN' || type === 'MOVE_RIGHT';\n\n if (isMovingOnMainAxis) {\n var _result = moveToNextIndex({\n isMovingForward: isMovingForward,\n draggableId: state.critical.draggable.id,\n droppable: droppable,\n draggables: state.dimensions.draggables,\n previousPageBorderBoxCenter: state.current.page.borderBoxCenter,\n previousImpact: state.impact,\n viewport: state.viewport\n });\n\n if (!_result) {\n return null;\n }\n\n return {\n impact: _result.impact,\n clientSelection: getClientSelection(_result.pageBorderBoxCenter, state.viewport.scroll.current),\n scrollJumpRequest: _result.scrollJumpRequest\n };\n }\n\n var home = getHomeLocation(state.critical);\n var result = moveCrossAxis({\n isMovingForward: isMovingForward,\n pageBorderBoxCenter: state.current.page.borderBoxCenter,\n draggableId: state.critical.draggable.id,\n droppableId: droppable.descriptor.id,\n home: home,\n draggables: state.dimensions.draggables,\n droppables: state.dimensions.droppables,\n previousImpact: state.impact,\n viewport: state.viewport\n });\n\n if (!result) {\n return null;\n }\n\n return {\n clientSelection: getClientSelection(result.pageBorderBoxCenter, state.viewport.scroll.current),\n impact: result.impact,\n scrollJumpRequest: null\n };\n});\n\nvar scrollViewport = (function (viewport, newScroll) {\n var diff = subtract(newScroll, viewport.scroll.initial);\n var displacement = negate(diff);\n var frame = Object(__WEBPACK_IMPORTED_MODULE_2_css_box_model__[\"d\" /* getRect */])({\n top: newScroll.y,\n bottom: newScroll.y + viewport.frame.height,\n left: newScroll.x,\n right: newScroll.x + viewport.frame.width\n });\n var updated = {\n frame: frame,\n scroll: {\n initial: viewport.scroll.initial,\n max: viewport.scroll.max,\n current: newScroll,\n diff: {\n value: diff,\n displacement: displacement\n }\n }\n };\n return updated;\n});\n\nvar getHomeImpact = (function (critical, dimensions) {\n var home = dimensions.droppables[critical.droppable.id];\n var axis = home.axis;\n var draggable = dimensions.draggables[critical.draggable.id];\n return {\n movement: {\n displaced: [],\n isBeyondStartPosition: false,\n amount: patch(axis.line, draggable.client.marginBox[axis.size])\n },\n direction: axis.direction,\n destination: getHomeLocation(critical)\n };\n});\n\nvar getPageItemPositions = (function (client, windowScroll) {\n return {\n selection: add(client.selection, windowScroll),\n borderBoxCenter: add(client.borderBoxCenter, windowScroll),\n offset: add(client.offset, windowScroll)\n };\n});\n\nfunction isMovementAllowed(state) {\n return state.phase === 'DRAGGING' || state.phase === 'COLLECTING';\n}\n\nvar idle = {\n phase: 'IDLE'\n};\nvar preparing = {\n phase: 'PREPARING'\n};\n\nvar moveWithPositionUpdates = function moveWithPositionUpdates(_ref) {\n var state = _ref.state,\n clientSelection = _ref.clientSelection,\n shouldAnimate = _ref.shouldAnimate,\n viewport = _ref.viewport,\n impact = _ref.impact,\n scrollJumpRequest = _ref.scrollJumpRequest;\n var newViewport = viewport || state.viewport;\n var currentWindowScroll = newViewport.scroll.current;\n\n var client = function () {\n var offset = subtract(clientSelection, state.initial.client.selection);\n return {\n offset: offset,\n selection: clientSelection,\n borderBoxCenter: add(state.initial.client.borderBoxCenter, offset)\n };\n }();\n\n var page = getPageItemPositions(client, currentWindowScroll);\n var current = {\n client: client,\n page: page\n };\n\n if (state.phase === 'COLLECTING') {\n return Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__[\"a\" /* default */])({\n phase: 'COLLECTING'\n }, state, {\n current: current\n });\n }\n\n var newImpact = impact || getDragImpact({\n pageBorderBoxCenter: page.borderBoxCenter,\n draggable: state.dimensions.draggables[state.critical.draggable.id],\n draggables: state.dimensions.draggables,\n droppables: state.dimensions.droppables,\n previousImpact: state.impact,\n viewport: newViewport\n });\n\n var result = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__[\"a\" /* default */])({}, state, {\n current: current,\n shouldAnimate: shouldAnimate,\n impact: newImpact,\n scrollJumpRequest: scrollJumpRequest || null,\n viewport: newViewport\n });\n\n return result;\n};\n\nvar reducer = (function (state, action) {\n if (state === void 0) {\n state = idle;\n }\n\n if (action.type === 'CLEAN') {\n return idle;\n }\n\n if (action.type === 'PREPARE') {\n return preparing;\n }\n\n if (action.type === 'INITIAL_PUBLISH') {\n !(state.phase === 'PREPARING') ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'INITIAL_PUBLISH must come after a PREPARING phase') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n var _action$payload = action.payload,\n critical = _action$payload.critical,\n client = _action$payload.client,\n viewport = _action$payload.viewport,\n dimensions = _action$payload.dimensions,\n autoScrollMode = _action$payload.autoScrollMode;\n var initial = {\n client: client,\n page: {\n selection: add(client.selection, viewport.scroll.initial),\n borderBoxCenter: add(client.selection, viewport.scroll.initial),\n offset: origin\n }\n };\n var result = {\n phase: 'DRAGGING',\n isDragging: true,\n critical: critical,\n autoScrollMode: autoScrollMode,\n dimensions: dimensions,\n initial: initial,\n current: initial,\n impact: getHomeImpact(critical, dimensions),\n viewport: viewport,\n scrollJumpRequest: null,\n shouldAnimate: false\n };\n return result;\n }\n\n if (action.type === 'COLLECTION_STARTING') {\n var _extends2;\n\n if (state.phase === 'COLLECTING' || state.phase === 'DROP_PENDING') {\n return state;\n }\n\n !(state.phase === 'DRAGGING') ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, \"Collection cannot start from phase \" + state.phase) : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n\n var _result = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__[\"a\" /* default */])({\n phase: 'COLLECTING'\n }, state, (_extends2 = {}, _extends2[\"phase\"] = 'COLLECTING', _extends2));\n\n return _result;\n }\n\n if (action.type === 'PUBLISH') {\n !(state.phase === 'COLLECTING' || state.phase === 'DROP_PENDING') ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, \"Unexpected \" + action.type + \" received in phase \" + state.phase) : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, \"Dynamic additions and removals of Draggable and Droppable components\\n is currently not supported. But will be soon!\") : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false);\n }\n\n if (action.type === 'MOVE') {\n if (state.phase === 'PREPARING') {\n return state;\n }\n\n if (state.phase === 'DROP_PENDING') {\n return state;\n }\n\n !isMovementAllowed(state) ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, action.type + \" not permitted in phase \" + state.phase) : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n var _action$payload2 = action.payload,\n _client = _action$payload2.client,\n shouldAnimate = _action$payload2.shouldAnimate;\n\n if (state.shouldAnimate === shouldAnimate && isEqual(_client, state.current.client.selection)) {\n return state;\n }\n\n var impact = state.autoScrollMode === 'JUMP' ? state.impact : null;\n return moveWithPositionUpdates({\n state: state,\n clientSelection: _client,\n impact: impact,\n shouldAnimate: shouldAnimate\n });\n }\n\n if (action.type === 'UPDATE_DROPPABLE_SCROLL') {\n var _extends3, _extends4;\n\n if (state.phase === 'PREPARING') {\n return state;\n }\n\n if (state.phase === 'DROP_PENDING') {\n return state;\n }\n\n !isMovementAllowed(state) ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, action.type + \" not permitted in phase \" + state.phase) : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n var _action$payload3 = action.payload,\n id = _action$payload3.id,\n offset = _action$payload3.offset;\n var target = state.dimensions.droppables[id];\n\n if (!target) {\n return state;\n }\n\n var updated = scrollDroppable(target, offset);\n\n var _dimensions = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__[\"a\" /* default */])({}, state.dimensions, {\n droppables: Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__[\"a\" /* default */])({}, state.dimensions.droppables, (_extends3 = {}, _extends3[id] = updated, _extends3))\n });\n\n var _impact = function () {\n !isMovementAllowed(state) ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n\n if (state.autoScrollMode === 'JUMP') {\n return state.impact;\n }\n\n return getDragImpact({\n pageBorderBoxCenter: state.current.page.borderBoxCenter,\n draggable: _dimensions.draggables[state.critical.draggable.id],\n draggables: _dimensions.draggables,\n droppables: _dimensions.droppables,\n previousImpact: state.impact,\n viewport: state.viewport\n });\n }();\n\n return Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__[\"a\" /* default */])({\n phase: 'DRAGGING'\n }, state, (_extends4 = {}, _extends4[\"phase\"] = state.phase, _extends4.impact = _impact, _extends4.dimensions = _dimensions, _extends4.scrollJumpRequest = null, _extends4));\n }\n\n if (action.type === 'UPDATE_DROPPABLE_IS_ENABLED') {\n var _extends5, _extends6;\n\n if (state.phase === 'DROP_PENDING') {\n return state;\n }\n\n !isMovementAllowed(state) ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, \"Attempting to move in an unsupported phase \" + state.phase) : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n var _action$payload4 = action.payload,\n _id = _action$payload4.id,\n isEnabled = _action$payload4.isEnabled;\n var _target = state.dimensions.droppables[_id];\n !_target ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, \"Cannot find Droppable[id: \" + _id + \"] to toggle its enabled state\") : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n !(_target.isEnabled !== isEnabled) ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, \"Trying to set droppable isEnabled to \" + String(isEnabled) + \"\\n but it is already \" + String(_target.isEnabled)) : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n\n var _updated = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__[\"a\" /* default */])({}, _target, {\n isEnabled: isEnabled\n });\n\n var _dimensions2 = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__[\"a\" /* default */])({}, state.dimensions, {\n droppables: Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__[\"a\" /* default */])({}, state.dimensions.droppables, (_extends5 = {}, _extends5[_id] = _updated, _extends5))\n });\n\n var _impact2 = getDragImpact({\n pageBorderBoxCenter: state.current.page.borderBoxCenter,\n draggable: _dimensions2.draggables[state.critical.draggable.id],\n draggables: _dimensions2.draggables,\n droppables: _dimensions2.droppables,\n previousImpact: state.impact,\n viewport: state.viewport\n });\n\n return Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__[\"a\" /* default */])({\n phase: 'DRAGGING'\n }, state, (_extends6 = {}, _extends6[\"phase\"] = state.phase, _extends6.impact = _impact2, _extends6.dimensions = _dimensions2, _extends6));\n }\n\n if (action.type === 'MOVE_BY_WINDOW_SCROLL') {\n if (state.phase === 'PREPARING') {\n return state;\n }\n\n if (state.phase === 'DROP_PENDING' || state.phase === 'DROP_ANIMATING') {\n return state;\n }\n\n !isMovementAllowed(state) ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, \"Cannot move by window in phase \" + state.phase) : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n var newScroll = action.payload.scroll;\n\n if (isEqual(state.viewport.scroll.current, newScroll)) {\n return state;\n }\n\n var isJumpScrolling = state.autoScrollMode === 'JUMP';\n\n var _impact3 = isJumpScrolling ? state.impact : null;\n\n var _viewport = scrollViewport(state.viewport, newScroll);\n\n return moveWithPositionUpdates({\n state: state,\n clientSelection: state.current.client.selection,\n viewport: _viewport,\n shouldAnimate: false,\n impact: _impact3\n });\n }\n\n if (action.type === 'UPDATE_VIEWPORT_MAX_SCROLL') {\n var _extends7;\n\n !state.isDragging ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Cannot update the max viewport scroll if not dragging') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n var existing = state.viewport;\n\n var _viewport2 = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__[\"a\" /* default */])({}, existing, {\n scroll: Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__[\"a\" /* default */])({}, existing.scroll, {\n max: action.payload\n })\n });\n\n return Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__[\"a\" /* default */])({\n phase: 'DRAGGING'\n }, state, (_extends7 = {}, _extends7[\"phase\"] = state.phase, _extends7.viewport = _viewport2, _extends7));\n }\n\n if (action.type === 'MOVE_UP' || action.type === 'MOVE_DOWN' || action.type === 'MOVE_LEFT' || action.type === 'MOVE_RIGHT') {\n if (state.phase === 'PREPARING') {\n return state;\n }\n\n if (state.phase === 'COLLECTING' || state.phase === 'DROP_PENDING') {\n return state;\n }\n\n !(state.phase === 'DRAGGING') ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, action.type + \" received while not in DRAGGING phase\") : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n\n var _result2 = moveInDirection({\n state: state,\n type: action.type\n });\n\n if (!_result2) {\n return state;\n }\n\n return moveWithPositionUpdates({\n state: state,\n impact: _result2.impact,\n clientSelection: _result2.clientSelection,\n shouldAnimate: true,\n scrollJumpRequest: _result2.scrollJumpRequest\n });\n }\n\n if (action.type === 'DROP_PENDING') {\n var _extends8;\n\n var reason = action.payload.reason;\n !(state.phase === 'COLLECTING') ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Can only move into the DROP_PENDING phase from the COLLECTING phase') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n\n var newState = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__[\"a\" /* default */])({\n phase: 'DROP_PENDING'\n }, state, (_extends8 = {}, _extends8[\"phase\"] = 'DROP_PENDING', _extends8.isWaiting = true, _extends8.reason = reason, _extends8));\n\n return newState;\n }\n\n if (action.type === 'DROP_ANIMATE') {\n var pending = action.payload;\n !(state.phase === 'DRAGGING' || state.phase === 'DROP_PENDING') ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, \"Cannot animate drop from phase \" + state.phase) : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n var _result3 = {\n phase: 'DROP_ANIMATING',\n pending: pending,\n dimensions: state.dimensions\n };\n return _result3;\n }\n\n if (action.type === 'DROP_COMPLETE') {\n return idle;\n }\n\n return state;\n});\n\nvar lift = function lift(args) {\n return {\n type: 'LIFT',\n payload: args\n };\n};\nvar initialPublish = function initialPublish(args) {\n return {\n type: 'INITIAL_PUBLISH',\n payload: args\n };\n};\nvar publish = function publish(args) {\n return {\n type: 'PUBLISH',\n payload: args\n };\n};\nvar collectionStarting = function collectionStarting() {\n return {\n type: 'COLLECTION_STARTING',\n payload: null\n };\n};\nvar updateDroppableScroll = function updateDroppableScroll(args) {\n return {\n type: 'UPDATE_DROPPABLE_SCROLL',\n payload: args\n };\n};\nvar updateDroppableIsEnabled = function updateDroppableIsEnabled(args) {\n return {\n type: 'UPDATE_DROPPABLE_IS_ENABLED',\n payload: args\n };\n};\nvar move = function move(args) {\n return {\n type: 'MOVE',\n payload: args\n };\n};\nvar moveByWindowScroll = function moveByWindowScroll(args) {\n return {\n type: 'MOVE_BY_WINDOW_SCROLL',\n payload: args\n };\n};\nvar updateViewportMaxScroll = function updateViewportMaxScroll(max) {\n return {\n type: 'UPDATE_VIEWPORT_MAX_SCROLL',\n payload: max\n };\n};\nvar moveUp = function moveUp() {\n return {\n type: 'MOVE_UP',\n payload: null\n };\n};\nvar moveDown = function moveDown() {\n return {\n type: 'MOVE_DOWN',\n payload: null\n };\n};\nvar moveRight = function moveRight() {\n return {\n type: 'MOVE_RIGHT',\n payload: null\n };\n};\nvar moveLeft = function moveLeft() {\n return {\n type: 'MOVE_LEFT',\n payload: null\n };\n};\nvar clean = function clean() {\n return {\n type: 'CLEAN',\n payload: null\n };\n};\nvar prepare = function prepare() {\n return {\n type: 'PREPARE',\n payload: null\n };\n};\nvar animateDrop = function animateDrop(pending) {\n return {\n type: 'DROP_ANIMATE',\n payload: pending\n };\n};\nvar completeDrop = function completeDrop(result) {\n return {\n type: 'DROP_COMPLETE',\n payload: result\n };\n};\nvar drop = function drop(args) {\n return {\n type: 'DROP',\n payload: args\n };\n};\nvar dropPending = function dropPending(args) {\n return {\n type: 'DROP_PENDING',\n payload: args\n };\n};\nvar dropAnimationFinished = function dropAnimationFinished() {\n return {\n type: 'DROP_ANIMATION_FINISHED',\n payload: null\n };\n};\n\nvar lift$1 = (function (getMarshal) {\n var timeoutId = null;\n\n var tryAbortCriticalCollection = function tryAbortCriticalCollection() {\n if (timeoutId == null) {\n return;\n }\n\n clearTimeout(timeoutId);\n timeoutId = null;\n };\n\n return function (_ref) {\n var getState = _ref.getState,\n dispatch = _ref.dispatch;\n return function (next) {\n return function (action) {\n if (action.type === 'CLEAN') {\n tryAbortCriticalCollection();\n next(action);\n return;\n }\n\n if (action.type !== 'LIFT') {\n next(action);\n return;\n }\n\n !!timeoutId ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'There should not be a pending complete lift phase when a lift action is fired') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n var marshal = getMarshal();\n var _action$payload = action.payload,\n id = _action$payload.id,\n client = _action$payload.client,\n autoScrollMode = _action$payload.autoScrollMode,\n viewport = _action$payload.viewport;\n var initial = getState();\n\n if (initial.phase === 'DROP_ANIMATING') {\n dispatch(completeDrop(initial.pending.result));\n }\n\n var postFlushState = getState();\n !(postFlushState.phase === 'IDLE') ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Incorrect phase to start a drag') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n dispatch(prepare());\n timeoutId = setTimeout(function () {\n timeoutId = null;\n var state = getState();\n !(state.phase === 'PREPARING') ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Invalid phase for completing lift') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n var scrollOptions = {\n shouldPublishImmediately: autoScrollMode === 'JUMP'\n };\n var request = {\n draggableId: id,\n scrollOptions: scrollOptions\n };\n\n var _marshal$startPublish = marshal.startPublishing(request, viewport.scroll.current),\n critical = _marshal$startPublish.critical,\n dimensions = _marshal$startPublish.dimensions;\n\n dispatch(initialPublish({\n critical: critical,\n dimensions: dimensions,\n client: client,\n autoScrollMode: autoScrollMode,\n viewport: viewport\n }));\n });\n };\n };\n };\n});\n\nvar style = (function (marshal) {\n return function () {\n return function (next) {\n return function (action) {\n if (action.type === 'INITIAL_PUBLISH') {\n marshal.dragging();\n }\n\n if (action.type === 'COLLECTION_STARTING') {\n marshal.collecting();\n }\n\n if (action.type === 'PUBLISH') {\n marshal.dragging();\n }\n\n if (action.type === 'DROP_ANIMATE') {\n marshal.dropping(action.payload.result.reason);\n }\n\n if (action.type === 'CLEAN' || action.type === 'DROP_COMPLETE') {\n marshal.resting();\n }\n\n next(action);\n };\n };\n };\n});\n\nvar getNewHomeClientBorderBoxCenter = (function (_ref) {\n var movement = _ref.movement,\n draggable = _ref.draggable,\n draggables = _ref.draggables,\n destination = _ref.destination;\n var originalCenter = draggable.client.borderBox.center;\n\n if (destination == null) {\n return originalCenter;\n }\n\n var displaced = movement.displaced,\n isBeyondStartPosition = movement.isBeyondStartPosition;\n var axis = destination.axis;\n var isWithinHomeDroppable = destination.descriptor.id === draggable.descriptor.droppableId;\n\n if (isWithinHomeDroppable && !displaced.length) {\n return originalCenter;\n }\n\n var draggablesInDestination = getDraggablesInsideDroppable(destination, draggables);\n\n var movingRelativeTo = function () {\n if (isWithinHomeDroppable) {\n return draggables[displaced[0].draggableId].client.borderBox;\n }\n\n if (displaced.length) {\n return draggables[displaced[0].draggableId].client.borderBox;\n }\n\n if (draggablesInDestination.length) {\n return draggablesInDestination[draggablesInDestination.length - 1].client.marginBox;\n }\n\n return destination.client.contentBox;\n }();\n\n var _ref2 = function () {\n if (isWithinHomeDroppable) {\n if (isBeyondStartPosition) {\n return {\n sourceEdge: 'end',\n destinationEdge: 'end'\n };\n }\n\n return {\n sourceEdge: 'start',\n destinationEdge: 'start'\n };\n }\n\n if (!displaced.length && draggablesInDestination.length) {\n return {\n sourceEdge: 'start',\n destinationEdge: 'end'\n };\n }\n\n return {\n sourceEdge: 'start',\n destinationEdge: 'start'\n };\n }(),\n sourceEdge = _ref2.sourceEdge,\n destinationEdge = _ref2.destinationEdge;\n\n var source = draggable.client.borderBox;\n var targetCenter = moveToEdge({\n source: source,\n sourceEdge: sourceEdge,\n destination: movingRelativeTo,\n destinationEdge: destinationEdge,\n destinationAxis: axis\n });\n return targetCenter;\n});\n\nvar getScrollDisplacement = function getScrollDisplacement(droppable, viewport) {\n return withDroppableDisplacement(droppable, viewport.scroll.diff.displacement);\n};\n\nvar drop$1 = (function (_ref) {\n var getState = _ref.getState,\n dispatch = _ref.dispatch;\n return function (next) {\n return function (action) {\n if (action.type !== 'DROP') {\n next(action);\n return;\n }\n\n var state = getState();\n var reason = action.payload.reason;\n\n if (state.phase === 'COLLECTING') {\n dispatch(dropPending({\n reason: reason\n }));\n return;\n }\n\n if (state.phase === 'PREPARING') {\n dispatch(clean());\n return;\n }\n\n if (state.phase === 'IDLE') {\n return;\n }\n\n var isWaitingForDrop = state.phase === 'DROP_PENDING' && state.isWaiting;\n !!isWaitingForDrop ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'A DROP action occurred while DROP_PENDING and still waiting') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n !(state.phase === 'DRAGGING' || state.phase === 'DROP_PENDING') ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, \"Cannot drop in phase: \" + state.phase) : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n var critical = state.critical;\n var dimensions = state.dimensions;\n var impact = reason === 'DROP' ? state.impact : noImpact;\n var home = dimensions.droppables[state.critical.droppable.id];\n var draggable = dimensions.draggables[state.critical.draggable.id];\n var droppable = impact && impact.destination ? dimensions.droppables[impact.destination.droppableId] : null;\n var source = {\n index: critical.draggable.index,\n droppableId: critical.droppable.id\n };\n var destination = reason === 'DROP' ? impact.destination : null;\n var result = {\n draggableId: draggable.descriptor.id,\n type: home.descriptor.type,\n source: source,\n destination: destination,\n reason: reason\n };\n\n var clientOffset = function () {\n if (reason === 'CANCEL') {\n return origin;\n }\n\n var newBorderBoxClientCenter = getNewHomeClientBorderBoxCenter({\n movement: impact.movement,\n draggable: draggable,\n draggables: dimensions.draggables,\n destination: droppable\n });\n return subtract(newBorderBoxClientCenter, draggable.client.borderBox.center);\n }();\n\n var newHomeOffset = add(clientOffset, getScrollDisplacement(droppable || home, state.viewport));\n var isAnimationRequired = !isEqual(state.current.client.offset, newHomeOffset);\n var pending = {\n newHomeOffset: newHomeOffset,\n result: result,\n impact: impact\n };\n\n if (isAnimationRequired) {\n dispatch(animateDrop(pending));\n return;\n }\n\n dispatch(completeDrop(result));\n };\n };\n});\n\nvar onDragStart = function onDragStart(start) {\n return \"\\n You have lifted an item in position \" + (start.source.index + 1) + \".\\n Use the arrow keys to move, space bar to drop, and escape to cancel.\\n\";\n};\n\nvar onDragUpdate = function onDragUpdate(update) {\n if (!update.destination) {\n return 'You are currently not dragging over a droppable area';\n }\n\n if (update.source.droppableId === update.destination.droppableId) {\n return \"You have moved the item to position \" + (update.destination.index + 1);\n }\n\n return \"\\n You have moved the item from list \" + update.source.droppableId + \" in position \" + (update.source.index + 1) + \"\\n to list \" + update.destination.droppableId + \" in position \" + (update.destination.index + 1) + \"\\n \";\n};\n\nvar onDragEnd = function onDragEnd(result) {\n if (result.reason === 'CANCEL') {\n return \"\\n Movement cancelled.\\n The item has returned to its starting position of \" + (result.source.index + 1) + \"\\n \";\n }\n\n if (!result.destination) {\n return \"\\n The item has been dropped while not over a droppable location.\\n The item has returned to its starting position of \" + (result.source.index + 1) + \"\\n \";\n }\n\n if (result.source.droppableId === result.destination.droppableId) {\n if (result.source.index === result.destination.index) {\n return \"\\n You have dropped the item.\\n It has been dropped on its starting position of \" + (result.source.index + 1) + \"\\n \";\n }\n\n return \"\\n You have dropped the item.\\n It has moved from position \" + (result.source.index + 1) + \" to \" + (result.destination.index + 1) + \"\\n \";\n }\n\n return \"\\n You have dropped the item.\\n It has moved from position \" + (result.source.index + 1) + \" in list \" + result.source.droppableId + \"\\n to position \" + (result.destination.index + 1) + \" in list \" + result.destination.droppableId + \"\\n \";\n};\n\nvar preset = {\n onDragStart: onDragStart,\n onDragUpdate: onDragUpdate,\n onDragEnd: onDragEnd\n};\n\nvar records = {};\nvar flag = '__react-beautiful-dnd-debug-timings-hook__';\n\nvar isTimingsEnabled = function isTimingsEnabled() {\n return Boolean(window[flag]);\n};\n\nvar start = function start(key) {\n if (process.env.NODE_ENV !== 'production') {\n if (!isTimingsEnabled()) {\n return;\n }\n\n var now = performance.now();\n records[key] = now;\n }\n};\nvar finish = function finish(key) {\n if (process.env.NODE_ENV !== 'production') {\n if (!isTimingsEnabled()) {\n return;\n }\n\n var now = performance.now();\n var previous = records[key];\n !previous ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'cannot finish timing as no previous time found') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n var result = now - previous;\n var rounded = result.toFixed(2);\n\n var style = function () {\n if (result < 12) {\n return {\n textColor: 'green',\n symbol: '✅'\n };\n }\n\n if (result < 40) {\n return {\n textColor: 'orange',\n symbol: '⚠️'\n };\n }\n\n return {\n textColor: 'red',\n symbol: '❌'\n };\n }();\n\n console.log(style.symbol + \" %cTiming %c\" + rounded + \" %cms %c\" + key, 'color: blue; font-weight: bold; ', \"color: \" + style.textColor + \"; font-size: 1.1em;\", 'color: grey;', 'color: purple; font-weight: bold;');\n }\n};\n\nvar withTimings = function withTimings(key, fn) {\n start(key);\n fn();\n finish(key);\n};\n\nvar areLocationsEqual = function areLocationsEqual(first, second) {\n if (first == null && second == null) {\n return true;\n }\n\n if (first == null || second == null) {\n return false;\n }\n\n return first.droppableId === second.droppableId && first.index === second.index;\n};\n\nvar isCriticalEqual = function isCriticalEqual(first, second) {\n if (first === second) {\n return true;\n }\n\n var isDraggableEqual = first.draggable.id === second.draggable.id && first.draggable.droppableId === second.draggable.droppableId && first.draggable.type === second.draggable.type && first.draggable.index === second.draggable.index;\n var isDroppableEqual = first.droppable.id === second.droppable.id && first.droppable.type === second.droppable.type;\n return isDraggableEqual && isDroppableEqual;\n};\n\nvar getExpiringAnnounce = function getExpiringAnnounce(announce) {\n var wasCalled = false;\n var isExpired = false;\n setTimeout(function () {\n isExpired = true;\n });\n\n var result = function result(message) {\n if (wasCalled) {\n if (process.env.NODE_ENV !== 'production') {\n console.warn('Announcement already made. Not making a second announcement');\n }\n\n return;\n }\n\n if (isExpired) {\n if (process.env.NODE_ENV !== 'production') {\n console.warn(\"\\n Announcements cannot be made asynchronously.\\n Default message has already been announced.\\n \");\n }\n\n return;\n }\n\n wasCalled = true;\n announce(message);\n };\n\n result.wasCalled = function () {\n return wasCalled;\n };\n\n return result;\n};\n\nvar getDragStart = function getDragStart(critical) {\n return {\n draggableId: critical.draggable.id,\n type: critical.droppable.type,\n source: {\n droppableId: critical.droppable.id,\n index: critical.draggable.index\n }\n };\n};\n\nvar hooks = (function (getHooks, announce) {\n var execute = function execute(hook, data, getDefaultMessage) {\n if (!hook) {\n announce(getDefaultMessage(data));\n return;\n }\n\n var willExpire = getExpiringAnnounce(announce);\n var provided = {\n announce: willExpire\n };\n hook(data, provided);\n\n if (!willExpire.wasCalled()) {\n announce(getDefaultMessage(data));\n }\n };\n\n var publisher = function () {\n var lastLocation = null;\n var lastCritical = null;\n var _isDragStartPublished = false;\n\n var beforeStart = function beforeStart(critical) {\n !!_isDragStartPublished ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Cannot fire onBeforeDragStart as a drag start has already been published') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n withTimings('onBeforeDragStart', function () {\n var fn = getHooks().onBeforeDragStart;\n\n if (fn) {\n fn(getDragStart(critical));\n }\n });\n };\n\n var start$$1 = function start$$1(critical) {\n !!_isDragStartPublished ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Cannot fire onBeforeDragStart as a drag start has already been published') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n var data = getDragStart(critical);\n lastCritical = critical;\n lastLocation = data.source;\n _isDragStartPublished = true;\n withTimings('onDragStart', function () {\n return execute(getHooks().onDragStart, data, preset.onDragStart);\n });\n };\n\n var move = function move(critical, location) {\n !(_isDragStartPublished && lastCritical) ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Cannot fire onDragMove when onDragStart has not been called') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n var hasCriticalChanged = !isCriticalEqual(critical, lastCritical);\n\n if (hasCriticalChanged) {\n lastCritical = critical;\n }\n\n var hasLocationChanged = !areLocationsEqual(lastLocation, location);\n\n if (hasLocationChanged) {\n lastLocation = location;\n }\n\n if (!hasCriticalChanged && !hasLocationChanged) {\n return;\n }\n\n var data = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__[\"a\" /* default */])({}, getDragStart(critical), {\n destination: location\n });\n\n withTimings('onDragUpdate', function () {\n return execute(getHooks().onDragUpdate, data, preset.onDragUpdate);\n });\n };\n\n var drop = function drop(result) {\n !_isDragStartPublished ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Cannot fire onDragEnd when there is no matching onDragStart') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n _isDragStartPublished = false;\n lastLocation = null;\n lastCritical = null;\n withTimings('onDragEnd', function () {\n return execute(getHooks().onDragEnd, result, preset.onDragEnd);\n });\n };\n\n var abort = function abort() {\n !(_isDragStartPublished && lastCritical) ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Cannot cancel when onDragStart not fired') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n\n var result = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__[\"a\" /* default */])({}, getDragStart(lastCritical), {\n destination: null,\n reason: 'CANCEL'\n });\n\n drop(result);\n };\n\n return {\n beforeStart: beforeStart,\n start: start$$1,\n move: move,\n drop: drop,\n abort: abort,\n isDragStartPublished: function isDragStartPublished() {\n return _isDragStartPublished;\n }\n };\n }();\n\n return function (store) {\n return function (next) {\n return function (action) {\n if (action.type === 'INITIAL_PUBLISH') {\n var critical = action.payload.critical;\n publisher.beforeStart(critical);\n next(action);\n publisher.start(critical);\n return;\n }\n\n next(action);\n\n if (action.type === 'DROP_COMPLETE') {\n var result = action.payload;\n publisher.drop(result);\n return;\n }\n\n if (action.type === 'CLEAN') {\n if (publisher.isDragStartPublished()) {\n publisher.abort();\n }\n\n return;\n }\n\n if (!publisher.isDragStartPublished()) {\n return;\n }\n\n var state = store.getState();\n\n if (state.phase === 'DRAGGING') {\n publisher.move(state.critical, state.impact.destination);\n }\n };\n };\n };\n});\n\nvar dropAnimationFinish = (function (store) {\n return function (next) {\n return function (action) {\n if (action.type !== 'DROP_ANIMATION_FINISHED') {\n next(action);\n return;\n }\n\n var state = store.getState();\n !(state.phase === 'DROP_ANIMATING') ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Cannot finish a drop animating when no drop is occurring') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n store.dispatch(completeDrop(state.pending.result));\n };\n };\n});\n\nvar dimensionMarshalStopper = (function (getMarshal) {\n return function () {\n return function (next) {\n return function (action) {\n if (action.type === 'DROP_COMPLETE' || action.type === 'CLEAN' || action.type === 'DROP_ANIMATE') {\n var marshal = getMarshal();\n marshal.stopPublishing();\n }\n\n next(action);\n };\n };\n };\n});\n\nvar shouldCancel = function shouldCancel(action) {\n return action.type === 'CANCEL' || action.type === 'DROP_ANIMATE' || action.type === 'DROP' || action.type === 'DROP_COMPLETE' || action.type === 'COLLECTION_STARTING';\n};\n\nvar autoScroll = (function (getScroller) {\n return function (store) {\n return function (next) {\n return function (action) {\n if (shouldCancel(action)) {\n getScroller().cancel();\n next(action);\n return;\n }\n\n next(action);\n var state = store.getState();\n\n if (state.phase !== 'DRAGGING') {\n return;\n }\n\n if (state.autoScrollMode === 'FLUID') {\n getScroller().fluidScroll(state);\n return;\n }\n\n if (!state.scrollJumpRequest) {\n return;\n }\n\n getScroller().jumpScroll(state);\n };\n };\n };\n});\n\nvar shouldCheckOnAction = function shouldCheckOnAction(action) {\n return action.type === 'MOVE' || action.type === 'MOVE_UP' || action.type === 'MOVE_RIGHT' || action.type === 'MOVE_DOWN' || action.type === 'MOVE_LEFT' || action.type === 'MOVE_BY_WINDOW_SCROLL';\n};\n\nvar hasDroppableOverChanged = function hasDroppableOverChanged(previous, current) {\n if (!previous) {\n return Boolean(current);\n }\n\n if (!current) {\n return Boolean(previous);\n }\n\n return previous.droppableId !== current.droppableId;\n};\n\nvar getNewMaxScroll = function getNewMaxScroll(previous, current, action) {\n if (!shouldCheckOnAction(action)) {\n return null;\n }\n\n if (!isMovementAllowed(previous) || !isMovementAllowed(current)) {\n return null;\n }\n\n if (!hasDroppableOverChanged(previous.impact.destination, current.impact.destination)) {\n return null;\n }\n\n var viewport = current.viewport;\n var doc = document.documentElement;\n !doc ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Could not find document.documentElement') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n var maxScroll = getMaxScroll({\n scrollHeight: doc.scrollHeight,\n scrollWidth: doc.scrollWidth,\n width: viewport.frame.width,\n height: viewport.frame.height\n });\n\n if (isEqual(maxScroll, viewport.scroll.max)) {\n return null;\n }\n\n return maxScroll;\n};\n\nvar maxScrollUpdater = (function (store) {\n return function (next) {\n return function (action) {\n var previous = store.getState();\n next(action);\n var current = store.getState();\n var maxScroll = getNewMaxScroll(previous, current, action);\n\n if (maxScroll) {\n next(updateViewportMaxScroll(maxScroll));\n }\n };\n };\n});\n\nvar composeEnhancers = typeof window === 'object' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : __WEBPACK_IMPORTED_MODULE_5_redux__[\"c\" /* compose */];\nvar createStore$1 = (function (_ref) {\n var getDimensionMarshal = _ref.getDimensionMarshal,\n styleMarshal = _ref.styleMarshal,\n getHooks = _ref.getHooks,\n announce = _ref.announce,\n getScroller = _ref.getScroller;\n return Object(__WEBPACK_IMPORTED_MODULE_5_redux__[\"d\" /* createStore */])(reducer, composeEnhancers(Object(__WEBPACK_IMPORTED_MODULE_5_redux__[\"a\" /* applyMiddleware */])(style(styleMarshal), dimensionMarshalStopper(getDimensionMarshal), lift$1(getDimensionMarshal), drop$1, dropAnimationFinish, maxScrollUpdater, autoScroll(getScroller), hooks(getHooks, announce))));\n});\n\nvar getEmptyMap = function getEmptyMap() {\n return {\n draggables: {},\n droppables: {}\n };\n};\n\nvar timingKey = 'Publish collection from DOM';\nvar createPublisher = (function (_ref) {\n var getProvided = _ref.getProvided,\n callbacks = _ref.callbacks;\n\n var advancedUsageWarning = function () {\n if (process.env.NODE_ENV === 'production') {\n return function () {};\n }\n\n var hasAnnounced = false;\n return function () {\n if (hasAnnounced) {\n return;\n }\n\n hasAnnounced = true;\n\n if (process.env.NODE_ENV === 'production') {\n return;\n }\n\n console.warn(\"\\n Advanced usage warning: you are adding or removing a dimension during a drag\\n This an advanced feature used to support dynamic interactions such as lazy loading lists.\\n\\n Keep in mind the following restrictions:\\n\\n - Draggable's can only be added to Droppable's that are scroll containers\\n - Adding a Droppable cannot impact the placement of other Droppables\\n (it cannot push a Droppable on the page)\\n\\n (This warning will be stripped in production builds)\\n \".trim());\n };\n }();\n\n var additions = getEmptyMap();\n var removals = getEmptyMap();\n var frameId = null;\n\n var reset = function reset() {\n additions = getEmptyMap();\n removals = getEmptyMap();\n };\n\n var collect = function collect() {\n advancedUsageWarning();\n\n if (frameId) {\n return;\n }\n\n frameId = requestAnimationFrame(function () {\n frameId = null;\n callbacks.collectionStarting();\n start(timingKey);\n\n var _getProvided = getProvided(),\n entries = _getProvided.entries,\n collection = _getProvided.collection;\n\n var windowScroll = collection.initialWindowScroll;\n\n var draggables = __WEBPACK_IMPORTED_MODULE_3__babel_runtime_corejs2_core_js_object_keys___default()(additions.draggables).map(function (id) {\n return entries.draggables[id].getDimension(windowScroll);\n });\n\n var droppables = __WEBPACK_IMPORTED_MODULE_3__babel_runtime_corejs2_core_js_object_keys___default()(additions.droppables).map(function (id) {\n return entries.droppables[id].callbacks.getDimensionAndWatchScroll(windowScroll, collection.scrollOptions);\n });\n\n var result = {\n additions: {\n draggables: draggables,\n droppables: droppables\n },\n removals: {\n draggables: __WEBPACK_IMPORTED_MODULE_3__babel_runtime_corejs2_core_js_object_keys___default()(removals.draggables),\n droppables: __WEBPACK_IMPORTED_MODULE_3__babel_runtime_corejs2_core_js_object_keys___default()(removals.droppables)\n }\n };\n reset();\n finish(timingKey);\n callbacks.publish(result);\n });\n };\n\n var addDraggable = function addDraggable(id) {\n additions.draggables[id] = true;\n\n if (removals.draggables[id]) {\n delete removals.draggables[id];\n }\n\n collect();\n };\n\n var removeDraggable = function removeDraggable(id) {\n removals.draggables[id] = true;\n\n if (additions.draggables[id]) {\n delete additions.draggables[id];\n }\n\n collect();\n };\n\n var addDroppable = function addDroppable(id) {\n additions.droppables[id] = true;\n\n if (removals.droppables[id]) {\n delete removals.droppables[id];\n }\n\n collect();\n };\n\n var removeDroppable = function removeDroppable(id) {\n removals.droppables[id] = true;\n\n if (additions.droppables[id]) {\n delete additions.droppables[id];\n }\n\n collect();\n };\n\n var stop = function stop() {\n if (!frameId) {\n return;\n }\n\n cancelAnimationFrame(frameId);\n frameId = null;\n reset();\n };\n\n return {\n addDraggable: addDraggable,\n removeDraggable: removeDraggable,\n addDroppable: addDroppable,\n removeDroppable: removeDroppable,\n stop: stop\n };\n});\n\nvar createDimensionMarshal = (function (callbacks) {\n var entries = {\n droppables: {},\n draggables: {}\n };\n var collection = null;\n var publisher = createPublisher({\n callbacks: {\n publish: callbacks.publish,\n collectionStarting: callbacks.collectionStarting\n },\n getProvided: function getProvided() {\n !collection ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Cannot get scroll options when there is no collection') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n return {\n entries: entries,\n collection: collection\n };\n }\n });\n\n var registerDraggable = function registerDraggable(descriptor, getDimension) {\n var entry = {\n descriptor: descriptor,\n getDimension: getDimension\n };\n entries.draggables[descriptor.id] = entry;\n\n if (!collection) {\n return;\n }\n\n if (collection.critical.draggable.type !== descriptor.type) {\n return;\n }\n\n publisher.addDraggable(descriptor.id);\n };\n\n var updateDraggable = function updateDraggable(previous, descriptor, getDimension) {\n !entries.draggables[previous.id] ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Cannot update draggable registration as no previous registration was found') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n delete entries.draggables[previous.id];\n var entry = {\n descriptor: descriptor,\n getDimension: getDimension\n };\n entries.draggables[descriptor.id] = entry;\n };\n\n var unregisterDraggable = function unregisterDraggable(descriptor) {\n var entry = entries.draggables[descriptor.id];\n !entry ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, \"Cannot unregister Draggable with id \" + descriptor.id + \" as it is not registered\") : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n\n if (entry.descriptor !== descriptor) {\n return;\n }\n\n delete entries.draggables[descriptor.id];\n\n if (!collection) {\n return;\n }\n\n !(collection.critical.draggable.id !== descriptor.id) ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Cannot remove the dragging item during a drag') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n\n if (descriptor.type !== collection.critical.draggable.type) {\n return;\n }\n\n publisher.removeDraggable(descriptor.id);\n };\n\n var registerDroppable = function registerDroppable(descriptor, droppableCallbacks) {\n var id = descriptor.id;\n entries.droppables[id] = {\n descriptor: descriptor,\n callbacks: droppableCallbacks\n };\n\n if (!collection) {\n return;\n }\n\n if (descriptor.type !== collection.critical.droppable.type) {\n return;\n }\n\n publisher.addDroppable(id);\n };\n\n var updateDroppable = function updateDroppable(previous, descriptor, droppableCallbacks) {\n !entries.droppables[previous.id] ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Cannot update droppable registration as no previous registration was found') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n delete entries.droppables[previous.id];\n var entry = {\n descriptor: descriptor,\n callbacks: droppableCallbacks\n };\n entries.droppables[descriptor.id] = entry;\n\n if (collection) {\n process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'You are not able to update the id or type of a droppable during a drag') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false);\n }\n };\n\n var unregisterDroppable = function unregisterDroppable(descriptor) {\n var entry = entries.droppables[descriptor.id];\n !entry ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, \"Cannot unregister Droppable with id \" + descriptor.id + \" as as it is not registered\") : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n\n if (entry.descriptor !== descriptor) {\n return;\n }\n\n delete entries.droppables[descriptor.id];\n\n if (!collection) {\n return;\n }\n\n !(collection.critical.droppable.id !== descriptor.id) ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Cannot remove the home Droppable during a drag') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n\n if (collection.critical.droppable.type !== descriptor.type) {\n return;\n }\n\n publisher.removeDroppable(descriptor.id);\n };\n\n var updateDroppableIsEnabled = function updateDroppableIsEnabled(id, isEnabled) {\n !entries.droppables[id] ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, \"Cannot update the scroll on Droppable \" + id + \" as it is not registered\") : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n\n if (!collection) {\n return;\n }\n\n callbacks.updateDroppableIsEnabled({\n id: id,\n isEnabled: isEnabled\n });\n };\n\n var updateDroppableScroll = function updateDroppableScroll(id, newScroll) {\n !entries.droppables[id] ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, \"Cannot update the scroll on Droppable \" + id + \" as it is not registered\") : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n\n if (!collection) {\n return;\n }\n\n callbacks.updateDroppableScroll({\n id: id,\n offset: newScroll\n });\n };\n\n var scrollDroppable = function scrollDroppable(id, change) {\n var entry = entries.droppables[id];\n !entry ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, \"Cannot scroll Droppable \" + id + \" as it is not registered\") : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n\n if (!collection) {\n return;\n }\n\n entry.callbacks.scroll(change);\n };\n\n var getInitialPublish = function getInitialPublish(args) {\n var critical = args.critical,\n scrollOptions = args.scrollOptions,\n windowScroll = args.initialWindowScroll;\n var timingKey = 'Initial collection from DOM';\n start(timingKey);\n var home = critical.droppable;\n\n var droppables = __WEBPACK_IMPORTED_MODULE_3__babel_runtime_corejs2_core_js_object_keys___default()(entries.droppables).map(function (id) {\n return entries.droppables[id];\n }).filter(function (entry) {\n return entry.descriptor.type === home.type;\n }).map(function (entry) {\n return entry.callbacks.getDimensionAndWatchScroll(windowScroll, scrollOptions);\n }).reduce(function (previous, dimension) {\n previous[dimension.descriptor.id] = dimension;\n return previous;\n }, {});\n\n var draggables = __WEBPACK_IMPORTED_MODULE_3__babel_runtime_corejs2_core_js_object_keys___default()(entries.draggables).map(function (id) {\n return entries.draggables[id];\n }).filter(function (entry) {\n return entry.descriptor.type === critical.draggable.type;\n }).map(function (entry) {\n return entry.getDimension(windowScroll);\n }).reduce(function (previous, dimension) {\n previous[dimension.descriptor.id] = dimension;\n return previous;\n }, {});\n\n finish(timingKey);\n var dimensions = {\n draggables: draggables,\n droppables: droppables\n };\n var result = {\n dimensions: dimensions,\n critical: critical\n };\n return result;\n };\n\n var stopPublishing = function stopPublishing() {\n if (!collection) {\n return;\n }\n\n publisher.stop();\n var home = collection.critical.droppable;\n\n __WEBPACK_IMPORTED_MODULE_3__babel_runtime_corejs2_core_js_object_keys___default()(entries.droppables).filter(function (id) {\n return entries.droppables[id].descriptor.type === home.type;\n }).forEach(function (id) {\n return entries.droppables[id].callbacks.unwatchScroll();\n });\n\n collection = null;\n };\n\n var startPublishing = function startPublishing(request, windowScroll) {\n !!collection ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Cannot start capturing critical dimensions as there is already a collection') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n var entry = entries.draggables[request.draggableId];\n !entry ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Cannot find critical draggable entry') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n var home = entries.droppables[entry.descriptor.droppableId];\n !home ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Cannot find critical droppable entry') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n var critical = {\n draggable: entry.descriptor,\n droppable: home.descriptor\n };\n collection = {\n scrollOptions: request.scrollOptions,\n critical: critical,\n initialWindowScroll: windowScroll\n };\n return getInitialPublish(collection);\n };\n\n var marshal = {\n registerDraggable: registerDraggable,\n updateDraggable: updateDraggable,\n unregisterDraggable: unregisterDraggable,\n registerDroppable: registerDroppable,\n updateDroppable: updateDroppable,\n unregisterDroppable: unregisterDroppable,\n updateDroppableIsEnabled: updateDroppableIsEnabled,\n scrollDroppable: scrollDroppable,\n updateDroppableScroll: updateDroppableScroll,\n startPublishing: startPublishing,\n stopPublishing: stopPublishing\n };\n return marshal;\n});\n\nvar physics = function () {\n var base = {\n stiffness: 1000,\n damping: 60,\n precision: 0.99\n };\n\n var standard = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__[\"a\" /* default */])({}, base);\n\n var fast = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__[\"a\" /* default */])({}, base, {\n stiffness: base.stiffness * 2\n });\n\n return {\n standard: standard,\n fast: fast\n };\n}();\nvar css = {\n outOfTheWay: 'transform 0.2s cubic-bezier(0.2, 0, 0, 1)'\n};\n\nvar prefix = 'data-react-beautiful-dnd';\nvar dragHandle = prefix + \"-drag-handle\";\nvar draggable = prefix + \"-draggable\";\nvar droppable = prefix + \"-droppable\";\n\nvar getStyles = (function (styleContext) {\n var dragHandleSelector = \"[\" + dragHandle + \"=\\\"\" + styleContext + \"\\\"]\";\n var draggableSelector = \"[\" + draggable + \"=\\\"\" + styleContext + \"\\\"]\";\n var droppableSelector = \"[\" + droppable + \"=\\\"\" + styleContext + \"\\\"]\";\n var dragHandleStyles = {\n base: \"\\n \" + dragHandleSelector + \" {\\n -webkit-touch-callout: none;\\n -webkit-tap-highlight-color: rgba(0,0,0,0);\\n touch-action: manipulation;\\n }\\n \",\n grabCursor: \"\\n \" + dragHandleSelector + \" {\\n cursor: -webkit-grab;\\n cursor: grab;\\n }\\n \",\n blockPointerEvents: \"\\n \" + dragHandleSelector + \" {\\n pointer-events: none;\\n }\\n \"\n };\n var draggableStyles = {\n animateMovement: \"\\n \" + draggableSelector + \" {\\n transition: \" + css.outOfTheWay + \";\\n }\\n \"\n };\n var droppableStyles = {\n base: \"\\n \" + droppableSelector + \" {\\n overflow-anchor: none;\\n }\\n \"\n };\n var bodyStyles = {\n whileActiveDragging: \"\\n body {\\n cursor: grabbing;\\n cursor: -webkit-grabbing;\\n user-select: none;\\n -webkit-user-select: none;\\n -moz-user-select: none;\\n -ms-user-select: none;\\n }\\n \"\n };\n var base = [dragHandleStyles.base, droppableStyles.base];\n var resting = base.concat([dragHandleStyles.grabCursor]);\n var collecting = base.concat([dragHandleStyles.blockPointerEvents, bodyStyles.whileActiveDragging]);\n var dragging = collecting.concat([draggableStyles.animateMovement]);\n var dropAnimating = base.concat([dragHandleStyles.grabCursor, draggableStyles.animateMovement]);\n var userCancel = base.concat([draggableStyles.animateMovement]);\n return {\n resting: resting.join(''),\n dragging: dragging.join(''),\n dropAnimating: dropAnimating.join(''),\n collecting: collecting.join(''),\n userCancel: userCancel.join('')\n };\n});\n\nvar count = 0;\nvar resetStyleContext = function resetStyleContext() {\n count = 0;\n};\n\nvar getHead = function getHead() {\n var head = document.querySelector('head');\n !head ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Cannot find the head to append a style to') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n return head;\n};\n\nvar createStyleMarshal = (function () {\n var context = \"\" + count++;\n var styles = getStyles(context);\n var el = null;\n var setStyle = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__[\"a\" /* default */])(function (proposed) {\n !el ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Cannot set style of style tag if not mounted') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n el.innerHTML = proposed;\n });\n\n var mount = function mount() {\n !!el ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Style marshal already mounted') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n el = document.createElement('style');\n el.type = 'text/css';\n el.setAttribute(prefix, context);\n getHead().appendChild(el);\n setStyle(styles.resting);\n };\n\n var collecting = function collecting() {\n return setStyle(styles.collecting);\n };\n\n var dragging = function dragging() {\n return setStyle(styles.dragging);\n };\n\n var dropping = function dropping(reason) {\n if (reason === 'DROP') {\n setStyle(styles.dropAnimating);\n return;\n }\n\n setStyle(styles.userCancel);\n };\n\n var resting = function resting() {\n return setStyle(styles.resting);\n };\n\n var unmount = function unmount() {\n !el ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Cannot unmount style marshal as it is already unmounted') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n getHead().removeChild(el);\n el = null;\n };\n\n var marshal = {\n collecting: collecting,\n dragging: dragging,\n dropping: dropping,\n resting: resting,\n styleContext: context,\n mount: mount,\n unmount: unmount\n };\n return marshal;\n});\n\nvar canStartDrag = (function (state, id) {\n if (state.phase === 'IDLE') {\n return true;\n }\n\n if (state.phase !== 'DROP_ANIMATING') {\n return false;\n }\n\n if (state.pending.result.draggableId === id) {\n return false;\n }\n\n return state.pending.result.reason === 'DROP';\n});\n\nvar scrollWindow = (function (change) {\n window.scrollBy(change.x, change.y);\n});\n\nvar count$1 = 0;\nvar visuallyHidden = {\n position: 'absolute',\n width: '1px',\n height: '1px',\n margin: '-1px',\n border: '0',\n padding: '0',\n overflow: 'hidden',\n clip: 'rect(0 0 0 0)',\n 'clip-path': 'inset(100%)'\n};\n\nvar getBody = function getBody() {\n !document.body ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Announcer cannot find document.body') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n return document.body;\n};\n\nvar createAnnouncer = (function () {\n var id = \"react-beautiful-dnd-announcement-\" + count$1++;\n var el = null;\n\n var announce = function announce(message) {\n !el ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Cannot announce to unmounted node') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n el.textContent = message;\n };\n\n var mount = function mount() {\n !!el ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Announcer already mounted') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n el = document.createElement('div');\n el.id = id;\n el.setAttribute('aria-live', 'assertive');\n el.setAttribute('role', 'log');\n el.setAttribute('aria-atomic', 'true');\n\n __WEBPACK_IMPORTED_MODULE_6__babel_runtime_corejs2_core_js_object_assign___default()(el.style, visuallyHidden);\n\n getBody().appendChild(el);\n };\n\n var unmount = function unmount() {\n !el ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Will not unmount annoucer as it is already unmounted') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n getBody().removeChild(el);\n el = null;\n };\n\n var announcer = {\n announce: announce,\n id: id,\n mount: mount,\n unmount: unmount\n };\n return announcer;\n});\n\nvar getScrollableDroppables = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__[\"a\" /* default */])(function (droppables) {\n return toDroppableList(droppables).filter(function (droppable) {\n if (!droppable.isEnabled) {\n return false;\n }\n\n if (!droppable.viewport.closestScrollable) {\n return false;\n }\n\n return true;\n });\n});\n\nvar getScrollableDroppableOver = function getScrollableDroppableOver(target, droppables) {\n var maybe = getScrollableDroppables(droppables).find(function (droppable) {\n !droppable.viewport.closestScrollable ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Invalid result') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n return isPositionInFrame(droppable.viewport.closestScrollable.framePageMarginBox)(target);\n });\n return maybe;\n};\n\nvar getBestScrollableDroppable = (function (_ref) {\n var center = _ref.center,\n destination = _ref.destination,\n droppables = _ref.droppables;\n\n if (destination) {\n var _dimension = droppables[destination.droppableId];\n\n if (!_dimension.viewport.closestScrollable) {\n return null;\n }\n\n return _dimension;\n }\n\n var dimension = getScrollableDroppableOver(center, droppables);\n return dimension;\n});\n\nvar smallestSigned = apply(function (value) {\n if (value === 0) {\n return 0;\n }\n\n return value > 0 ? 1 : -1;\n});\nvar getOverlap = function () {\n var getRemainder = function getRemainder(target, max) {\n if (target < 0) {\n return target;\n }\n\n if (target > max) {\n return target - max;\n }\n\n return 0;\n };\n\n return function (_ref) {\n var current = _ref.current,\n max = _ref.max,\n change = _ref.change;\n var targetScroll = add(current, change);\n var overlap = {\n x: getRemainder(targetScroll.x, max.x),\n y: getRemainder(targetScroll.y, max.y)\n };\n\n if (isEqual(overlap, origin)) {\n return null;\n }\n\n return overlap;\n };\n}();\nvar canPartiallyScroll = function canPartiallyScroll(_ref2) {\n var rawMax = _ref2.max,\n current = _ref2.current,\n change = _ref2.change;\n var max = {\n x: Math.max(current.x, rawMax.x),\n y: Math.max(current.y, rawMax.y)\n };\n var smallestChange = smallestSigned(change);\n var overlap = getOverlap({\n max: max,\n current: current,\n change: smallestChange\n });\n\n if (!overlap) {\n return true;\n }\n\n if (smallestChange.x !== 0 && overlap.x === 0) {\n return true;\n }\n\n if (smallestChange.y !== 0 && overlap.y === 0) {\n return true;\n }\n\n return false;\n};\nvar canScrollWindow = function canScrollWindow(viewport, change) {\n return canPartiallyScroll({\n current: viewport.scroll.current,\n max: viewport.scroll.max,\n change: change\n });\n};\nvar getWindowOverlap = function getWindowOverlap(viewport, change) {\n if (!canScrollWindow(viewport, change)) {\n return null;\n }\n\n var max = viewport.scroll.max;\n var current = viewport.scroll.current;\n return getOverlap({\n current: current,\n max: max,\n change: change\n });\n};\nvar canScrollDroppable = function canScrollDroppable(droppable, change) {\n var closest$$1 = droppable.viewport.closestScrollable;\n\n if (!closest$$1) {\n return false;\n }\n\n return canPartiallyScroll({\n current: closest$$1.scroll.current,\n max: closest$$1.scroll.max,\n change: change\n });\n};\nvar getDroppableOverlap = function getDroppableOverlap(droppable, change) {\n var closest$$1 = droppable.viewport.closestScrollable;\n\n if (!closest$$1) {\n return null;\n }\n\n if (!canScrollDroppable(droppable, change)) {\n return null;\n }\n\n return getOverlap({\n current: closest$$1.scroll.current,\n max: closest$$1.scroll.max,\n change: change\n });\n};\n\nvar config = {\n startFrom: 0.25,\n maxSpeedAt: 0.05,\n maxScrollSpeed: 28,\n ease: function ease(percentage) {\n return Math.pow(percentage, 2);\n }\n};\nvar clean$1 = apply(function (value) {\n return value === 0 ? 0 : value;\n});\nvar getPixelThresholds = function getPixelThresholds(container, axis) {\n var startFrom = container[axis.size] * config.startFrom;\n var maxSpeedAt = container[axis.size] * config.maxSpeedAt;\n var accelerationPlane = startFrom - maxSpeedAt;\n var thresholds = {\n startFrom: startFrom,\n maxSpeedAt: maxSpeedAt,\n accelerationPlane: accelerationPlane\n };\n return thresholds;\n};\n\nvar getSpeed = function getSpeed(distance$$1, thresholds) {\n if (distance$$1 >= thresholds.startFrom) {\n return 0;\n }\n\n if (distance$$1 <= thresholds.maxSpeedAt) {\n return config.maxScrollSpeed;\n }\n\n var distancePastStart = thresholds.startFrom - distance$$1;\n var percentage = distancePastStart / thresholds.accelerationPlane;\n var transformed = config.ease(percentage);\n var speed = config.maxScrollSpeed * transformed;\n return speed;\n};\n\nvar adjustForSizeLimits = function adjustForSizeLimits(_ref) {\n var container = _ref.container,\n subject = _ref.subject,\n proposedScroll = _ref.proposedScroll;\n var isTooBigVertically = subject.height > container.height;\n var isTooBigHorizontally = subject.width > container.width;\n\n if (!isTooBigHorizontally && !isTooBigVertically) {\n return proposedScroll;\n }\n\n if (isTooBigHorizontally && isTooBigVertically) {\n return null;\n }\n\n return {\n x: isTooBigHorizontally ? 0 : proposedScroll.x,\n y: isTooBigVertically ? 0 : proposedScroll.y\n };\n};\n\nvar getRequiredScroll = function getRequiredScroll(_ref2) {\n var container = _ref2.container,\n subject = _ref2.subject,\n center = _ref2.center;\n var distance$$1 = {\n top: center.y - container.top,\n right: container.right - center.x,\n bottom: container.bottom - center.y,\n left: center.x - container.left\n };\n\n var y = function () {\n var thresholds = getPixelThresholds(container, vertical);\n var isCloserToBottom = distance$$1.bottom < distance$$1.top;\n\n if (isCloserToBottom) {\n return getSpeed(distance$$1.bottom, thresholds);\n }\n\n return -1 * getSpeed(distance$$1.top, thresholds);\n }();\n\n var x = function () {\n var thresholds = getPixelThresholds(container, horizontal);\n var isCloserToRight = distance$$1.right < distance$$1.left;\n\n if (isCloserToRight) {\n return getSpeed(distance$$1.right, thresholds);\n }\n\n return -1 * getSpeed(distance$$1.left, thresholds);\n }();\n\n var required = clean$1({\n x: x,\n y: y\n });\n\n if (isEqual(required, origin)) {\n return null;\n }\n\n var limited = adjustForSizeLimits({\n container: container,\n subject: subject,\n proposedScroll: required\n });\n\n if (!limited) {\n return null;\n }\n\n return isEqual(limited, origin) ? null : limited;\n};\n\nvar withPlaceholder = function withPlaceholder(droppable, draggable) {\n var closest$$1 = droppable.viewport.closestScrollable;\n\n if (!closest$$1) {\n return null;\n }\n\n var isOverHome = droppable.descriptor.id === draggable.descriptor.droppableId;\n var max = closest$$1.scroll.max;\n var current = closest$$1.scroll.current;\n\n if (isOverHome) {\n return {\n max: max,\n current: current\n };\n }\n\n var spaceForPlaceholder = patch(droppable.axis.line, draggable.placeholder.client.borderBox[droppable.axis.size]);\n var newMax = add(max, spaceForPlaceholder);\n var newCurrent = {\n x: Math.min(current.x, newMax.x),\n y: Math.min(current.y, newMax.y)\n };\n return {\n max: newMax,\n current: newCurrent\n };\n};\n\nvar createFluidScroller = (function (_ref3) {\n var scrollWindow = _ref3.scrollWindow,\n scrollDroppable = _ref3.scrollDroppable;\n var scheduleWindowScroll = Object(__WEBPACK_IMPORTED_MODULE_7_raf_schd__[\"a\" /* default */])(scrollWindow);\n var scheduleDroppableScroll = Object(__WEBPACK_IMPORTED_MODULE_7_raf_schd__[\"a\" /* default */])(scrollDroppable);\n\n var scroller = function scroller(state) {\n var center = state.current.page.borderBoxCenter;\n var draggable = state.dimensions.draggables[state.critical.draggable.id];\n var subject = draggable.page.marginBox;\n var viewport = state.viewport;\n var requiredWindowScroll = getRequiredScroll({\n container: viewport.frame,\n subject: subject,\n center: center\n });\n\n if (requiredWindowScroll && canScrollWindow(viewport, requiredWindowScroll)) {\n scheduleWindowScroll(requiredWindowScroll);\n return;\n }\n\n var droppable = getBestScrollableDroppable({\n center: center,\n destination: state.impact.destination,\n droppables: state.dimensions.droppables\n });\n\n if (!droppable) {\n return;\n }\n\n var closestScrollable = droppable.viewport.closestScrollable;\n\n if (!closestScrollable) {\n return;\n }\n\n var requiredFrameScroll = getRequiredScroll({\n container: closestScrollable.framePageMarginBox,\n subject: subject,\n center: center\n });\n\n if (!requiredFrameScroll) {\n return;\n }\n\n var result = withPlaceholder(droppable, draggable);\n\n if (!result) {\n return;\n }\n\n var closest$$1 = droppable.viewport.closestScrollable;\n\n if (!closest$$1) {\n return;\n }\n\n var canScrollDroppable$$1 = canPartiallyScroll({\n current: result.current,\n max: result.max,\n change: requiredFrameScroll\n });\n\n if (canScrollDroppable$$1) {\n scheduleDroppableScroll(droppable.descriptor.id, requiredFrameScroll);\n }\n };\n\n scroller.cancel = function () {\n scheduleWindowScroll.cancel();\n scheduleDroppableScroll.cancel();\n };\n\n return scroller;\n});\n\nvar createJumpScroller = (function (_ref) {\n var move = _ref.move,\n scrollDroppable = _ref.scrollDroppable,\n scrollWindow = _ref.scrollWindow;\n\n var moveByOffset = function moveByOffset(state, offset) {\n var client = add(state.current.client.selection, offset);\n move({\n client: client,\n shouldAnimate: true\n });\n };\n\n var scrollDroppableAsMuchAsItCan = function scrollDroppableAsMuchAsItCan(droppable, change) {\n if (!canScrollDroppable(droppable, change)) {\n return change;\n }\n\n var overlap = getDroppableOverlap(droppable, change);\n\n if (!overlap) {\n scrollDroppable(droppable.descriptor.id, change);\n return null;\n }\n\n var whatTheDroppableCanScroll = subtract(change, overlap);\n scrollDroppable(droppable.descriptor.id, whatTheDroppableCanScroll);\n var remainder = subtract(change, whatTheDroppableCanScroll);\n return remainder;\n };\n\n var scrollWindowAsMuchAsItCan = function scrollWindowAsMuchAsItCan(viewport, change) {\n if (!canScrollWindow(viewport, change)) {\n return change;\n }\n\n var overlap = getWindowOverlap(viewport, change);\n\n if (!overlap) {\n scrollWindow(change);\n return null;\n }\n\n var whatTheWindowCanScroll = subtract(change, overlap);\n scrollWindow(whatTheWindowCanScroll);\n var remainder = subtract(change, whatTheWindowCanScroll);\n return remainder;\n };\n\n var jumpScroller = function jumpScroller(state) {\n var request = state.scrollJumpRequest;\n\n if (!request) {\n return;\n }\n\n var destination = state.impact.destination;\n !destination ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Cannot perform a jump scroll when there is no destination') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n var droppableRemainder = scrollDroppableAsMuchAsItCan(state.dimensions.droppables[destination.droppableId], request);\n\n if (!droppableRemainder) {\n return;\n }\n\n var viewport = state.viewport;\n var windowRemainder = scrollWindowAsMuchAsItCan(viewport, droppableRemainder);\n\n if (!windowRemainder) {\n return;\n }\n\n moveByOffset(state, windowRemainder);\n };\n\n return jumpScroller;\n});\n\nvar createAutoScroller = (function (_ref) {\n var scrollDroppable = _ref.scrollDroppable,\n scrollWindow = _ref.scrollWindow,\n move = _ref.move;\n var fluidScroll = createFluidScroller({\n scrollWindow: scrollWindow,\n scrollDroppable: scrollDroppable\n });\n var jumpScroll = createJumpScroller({\n move: move,\n scrollWindow: scrollWindow,\n scrollDroppable: scrollDroppable\n });\n var marshal = {\n cancel: fluidScroll.cancel,\n fluidScroll: fluidScroll,\n jumpScroll: jumpScroll\n };\n return marshal;\n});\n\nvar prefix$1 = function prefix(key) {\n return \"private-react-beautiful-dnd-key-do-not-use-\" + key;\n};\n\nvar storeKey = prefix$1('store');\nvar droppableIdKey = prefix$1('droppable-id');\nvar droppableTypeKey = prefix$1('droppable-type');\nvar dimensionMarshalKey = prefix$1('dimension-marshal');\nvar styleContextKey = prefix$1('style-context');\nvar canLiftContextKey = prefix$1('can-lift');\n\nvar _DragDropContext$chil;\nvar resetServerContext = function resetServerContext() {\n resetStyleContext();\n};\n\nvar printFatalDevError = function printFatalDevError(error) {\n if (process.env.NODE_ENV === 'production') {\n return;\n }\n\n console.warn(\"\\n An error has occurred while a drag is occurring.\\n Any existing drag will be cancelled.\\n\\n Raw error:\\n \");\n console.error(error);\n};\n\nvar DragDropContext = function (_React$Component) {\n Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_corejs2_helpers_esm_inheritsLoose__[\"a\" /* default */])(DragDropContext, _React$Component);\n\n function DragDropContext(props, context) {\n var _this;\n\n _this = _React$Component.call(this, props, context) || this;\n _this.store = void 0;\n _this.dimensionMarshal = void 0;\n _this.styleMarshal = void 0;\n _this.autoScroller = void 0;\n _this.announcer = void 0;\n _this.unsubscribe = void 0;\n\n _this.canLift = function (id) {\n return canStartDrag(_this.store.getState(), id);\n };\n\n _this.onFatalError = function (error) {\n printFatalDevError(error);\n\n var state = _this.store.getState();\n\n if (state.phase !== 'IDLE') {\n _this.store.dispatch(clean());\n }\n };\n\n _this.onWindowError = function (error) {\n return _this.onFatalError(error);\n };\n\n _this.announcer = createAnnouncer();\n _this.styleMarshal = createStyleMarshal();\n _this.store = createStore$1({\n getDimensionMarshal: function getDimensionMarshal() {\n return _this.dimensionMarshal;\n },\n styleMarshal: _this.styleMarshal,\n getHooks: function getHooks() {\n return {\n onBeforeDragStart: _this.props.onBeforeDragStart,\n onDragStart: _this.props.onDragStart,\n onDragEnd: _this.props.onDragEnd,\n onDragUpdate: _this.props.onDragUpdate\n };\n },\n announce: _this.announcer.announce,\n getScroller: function getScroller() {\n return _this.autoScroller;\n }\n });\n var callbacks = Object(__WEBPACK_IMPORTED_MODULE_5_redux__[\"b\" /* bindActionCreators */])({\n collectionStarting: collectionStarting,\n publish: publish,\n updateDroppableScroll: updateDroppableScroll,\n updateDroppableIsEnabled: updateDroppableIsEnabled\n }, _this.store.dispatch);\n _this.dimensionMarshal = createDimensionMarshal(callbacks);\n _this.autoScroller = createAutoScroller(Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__[\"a\" /* default */])({\n scrollWindow: scrollWindow,\n scrollDroppable: _this.dimensionMarshal.scrollDroppable\n }, Object(__WEBPACK_IMPORTED_MODULE_5_redux__[\"b\" /* bindActionCreators */])({\n move: move\n }, _this.store.dispatch)));\n return _this;\n }\n\n var _proto = DragDropContext.prototype;\n\n _proto.getChildContext = function getChildContext() {\n var _ref;\n\n return _ref = {}, _ref[storeKey] = this.store, _ref[dimensionMarshalKey] = this.dimensionMarshal, _ref[styleContextKey] = this.styleMarshal.styleContext, _ref[canLiftContextKey] = this.canLift, _ref;\n };\n\n _proto.componentDidMount = function componentDidMount() {\n window.addEventListener('error', this.onWindowError);\n this.styleMarshal.mount();\n this.announcer.mount();\n };\n\n _proto.componentDidCatch = function componentDidCatch(error) {\n this.onFatalError(error);\n\n if (error.message.indexOf('Invariant failed') !== -1) {\n this.setState({});\n return;\n }\n\n throw error;\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n window.removeEventListener('error', this.onWindowError);\n var state = this.store.getState();\n\n if (state.phase !== 'IDLE') {\n this.store.dispatch(clean());\n }\n\n this.styleMarshal.unmount();\n this.announcer.unmount();\n };\n\n _proto.render = function render() {\n return this.props.children;\n };\n\n return DragDropContext;\n}(__WEBPACK_IMPORTED_MODULE_9_react___default.a.Component);\n\nDragDropContext.childContextTypes = (_DragDropContext$chil = {}, _DragDropContext$chil[storeKey] = __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.shape({\n dispatch: __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.func.isRequired,\n subscribe: __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.func.isRequired,\n getState: __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.func.isRequired\n}).isRequired, _DragDropContext$chil[dimensionMarshalKey] = __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.object.isRequired, _DragDropContext$chil[styleContextKey] = __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.string.isRequired, _DragDropContext$chil[canLiftContextKey] = __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.func.isRequired, _DragDropContext$chil);\n\nvar isScrollable = function isScrollable() {\n for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) {\n values[_key] = arguments[_key];\n }\n\n return values.some(function (value) {\n return value === 'auto' || value === 'scroll';\n });\n};\n\nvar isElementScrollable = function isElementScrollable(el) {\n var style = window.getComputedStyle(el);\n return isScrollable(style.overflow, style.overflowY, style.overflowX);\n};\n\nvar getClosestScrollable = function getClosestScrollable(el) {\n if (el == null) {\n return null;\n }\n\n if (!isElementScrollable(el)) {\n return getClosestScrollable(el.parentElement);\n }\n\n return el;\n};\n\nvar _DroppableDimensionPu;\n\nvar getScroll = function getScroll(el) {\n return {\n x: el.scrollLeft,\n y: el.scrollTop\n };\n};\n\nvar checkForNestedScrollContainers = function checkForNestedScrollContainers(scrollable) {\n if (process.env.NODE_ENV === 'production') {\n return;\n }\n\n if (!scrollable) {\n return;\n }\n\n var anotherScrollParent = getClosestScrollable(scrollable.parentElement);\n\n if (!anotherScrollParent) {\n return;\n }\n\n console.warn(\"\\n Droppable: unsupported nested scroll container detected.\\n A Droppable can only have one scroll parent (which can be itself)\\n Nested scroll containers are currently not supported.\\n\\n We hope to support nested scroll containers soon: https://github.com/atlassian/react-beautiful-dnd/issues/131\\n \");\n};\n\nvar listenerOptions = {\n passive: true\n};\n\nvar DroppableDimensionPublisher = function (_React$Component) {\n Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_corejs2_helpers_esm_inheritsLoose__[\"a\" /* default */])(DroppableDimensionPublisher, _React$Component);\n\n function DroppableDimensionPublisher(props, context) {\n var _this;\n\n _this = _React$Component.call(this, props, context) || this;\n _this.watchingScroll = null;\n _this.callbacks = void 0;\n _this.publishedDescriptor = null;\n\n _this.getClosestScroll = function () {\n if (!_this.watchingScroll) {\n return origin;\n }\n\n return getScroll(_this.watchingScroll.closestScrollable);\n };\n\n _this.memoizedUpdateScroll = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__[\"a\" /* default */])(function (x, y) {\n !_this.publishedDescriptor ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Cannot update scroll on unpublished droppable') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n var newScroll = {\n x: x,\n y: y\n };\n var marshal = _this.context[dimensionMarshalKey];\n marshal.updateDroppableScroll(_this.publishedDescriptor.id, newScroll);\n });\n\n _this.updateScroll = function () {\n var offset = _this.getClosestScroll();\n\n _this.memoizedUpdateScroll(offset.x, offset.y);\n };\n\n _this.scheduleScrollUpdate = Object(__WEBPACK_IMPORTED_MODULE_7_raf_schd__[\"a\" /* default */])(_this.updateScroll);\n\n _this.onClosestScroll = function () {\n !_this.watchingScroll ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Could not find scroll options while scrolling') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n var options = _this.watchingScroll.options;\n\n if (options.shouldPublishImmediately) {\n _this.updateScroll();\n\n return;\n }\n\n _this.scheduleScrollUpdate();\n };\n\n _this.scroll = function (change) {\n !_this.watchingScroll ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Cannot scroll a droppable with no closest scrollable') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n var closestScrollable = _this.watchingScroll.closestScrollable;\n closestScrollable.scrollTop += change.y;\n closestScrollable.scrollLeft += change.x;\n };\n\n _this.watchScroll = function (closestScrollable, options) {\n !!_this.watchingScroll ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Droppable cannot watch scroll as it is already watching scroll') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n\n if (!closestScrollable) {\n return;\n }\n\n _this.watchingScroll = {\n options: options,\n closestScrollable: closestScrollable\n };\n closestScrollable.addEventListener('scroll', _this.onClosestScroll, listenerOptions);\n };\n\n _this.unwatchScroll = function () {\n var watching = _this.watchingScroll;\n\n if (!watching) {\n return;\n }\n\n _this.scheduleScrollUpdate.cancel();\n\n watching.closestScrollable.removeEventListener('scroll', _this.onClosestScroll, listenerOptions);\n _this.watchingScroll = null;\n };\n\n _this.getMemoizedDescriptor = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__[\"a\" /* default */])(function (id, type) {\n return {\n id: id,\n type: type\n };\n });\n\n _this.publish = function () {\n var marshal = _this.context[dimensionMarshalKey];\n\n var descriptor = _this.getMemoizedDescriptor(_this.props.droppableId, _this.props.type);\n\n if (!_this.publishedDescriptor) {\n marshal.registerDroppable(descriptor, _this.callbacks);\n _this.publishedDescriptor = descriptor;\n return;\n }\n\n if (_this.publishedDescriptor === descriptor) {\n return;\n }\n\n marshal.updateDroppable(_this.publishedDescriptor, descriptor, _this.callbacks);\n _this.publishedDescriptor = descriptor;\n };\n\n _this.unpublish = function () {\n !_this.publishedDescriptor ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Cannot unpublish descriptor when none is published') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n var marshal = _this.context[dimensionMarshalKey];\n marshal.unregisterDroppable(_this.publishedDescriptor);\n _this.publishedDescriptor = null;\n };\n\n _this.getDimensionAndWatchScroll = function (windowScroll, options) {\n var _this$props = _this.props,\n direction = _this$props.direction,\n ignoreContainerClipping = _this$props.ignoreContainerClipping,\n isDropDisabled = _this$props.isDropDisabled,\n getDroppableRef = _this$props.getDroppableRef;\n var targetRef = getDroppableRef();\n var descriptor = _this.publishedDescriptor;\n !targetRef ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Cannot calculate a dimension when not attached to the DOM') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n !descriptor ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Cannot get dimension for unpublished droppable') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n var scrollableRef = getClosestScrollable(targetRef);\n checkForNestedScrollContainers(scrollableRef);\n\n _this.watchScroll(scrollableRef, options);\n\n var client = function () {\n var base = Object(__WEBPACK_IMPORTED_MODULE_2_css_box_model__[\"c\" /* getBox */])(targetRef);\n\n if (!scrollableRef) {\n return base;\n }\n\n if (targetRef !== scrollableRef) {\n return base;\n }\n\n var top = base.paddingBox.top - scrollableRef.scrollTop;\n var left = base.paddingBox.left - scrollableRef.scrollLeft;\n var bottom = top + scrollableRef.scrollHeight;\n var right = left + scrollableRef.scrollWidth;\n var paddingBox = {\n top: top,\n right: right,\n bottom: bottom,\n left: left\n };\n var borderBox = {\n top: paddingBox.top - base.border.top,\n right: paddingBox.right + base.border.right,\n bottom: paddingBox.bottom + base.border.bottom,\n left: paddingBox.left - base.border.left\n };\n return Object(__WEBPACK_IMPORTED_MODULE_2_css_box_model__[\"b\" /* createBox */])({\n borderBox: borderBox,\n margin: base.margin,\n border: base.border,\n padding: base.padding\n });\n }();\n\n var page = Object(__WEBPACK_IMPORTED_MODULE_2_css_box_model__[\"e\" /* withScroll */])(client, windowScroll);\n\n var closest$$1 = function () {\n if (!scrollableRef) {\n return null;\n }\n\n var frameClient = Object(__WEBPACK_IMPORTED_MODULE_2_css_box_model__[\"c\" /* getBox */])(scrollableRef);\n return {\n client: frameClient,\n page: Object(__WEBPACK_IMPORTED_MODULE_2_css_box_model__[\"e\" /* withScroll */])(frameClient),\n scrollHeight: scrollableRef.scrollHeight,\n scrollWidth: scrollableRef.scrollWidth,\n scroll: getScroll(scrollableRef),\n shouldClipSubject: !ignoreContainerClipping\n };\n }();\n\n return getDroppableDimension({\n descriptor: descriptor,\n isEnabled: !isDropDisabled,\n direction: direction,\n client: client,\n page: page,\n closest: closest$$1\n });\n };\n\n var callbacks = {\n getDimensionAndWatchScroll: _this.getDimensionAndWatchScroll,\n unwatchScroll: _this.unwatchScroll,\n scroll: _this.scroll\n };\n _this.callbacks = callbacks;\n return _this;\n }\n\n var _proto = DroppableDimensionPublisher.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n this.publish();\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n this.publish();\n\n if (this.props.isDropDisabled === prevProps.isDropDisabled) {\n return;\n }\n\n var marshal = this.context[dimensionMarshalKey];\n marshal.updateDroppableIsEnabled(this.props.droppableId, !this.props.isDropDisabled);\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n if (this.watchingScroll) {\n if (process.env.NODE_ENV !== 'production') {\n console.warn('Unmounting droppable while it was watching scroll');\n }\n\n this.unwatchScroll();\n }\n\n this.unpublish();\n };\n\n _proto.render = function render() {\n return this.props.children;\n };\n\n return DroppableDimensionPublisher;\n}(__WEBPACK_IMPORTED_MODULE_9_react___default.a.Component);\n\nDroppableDimensionPublisher.contextTypes = (_DroppableDimensionPu = {}, _DroppableDimensionPu[dimensionMarshalKey] = __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.object.isRequired, _DroppableDimensionPu);\n\nvar Placeholder = function (_PureComponent) {\n Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_corejs2_helpers_esm_inheritsLoose__[\"a\" /* default */])(Placeholder, _PureComponent);\n\n function Placeholder() {\n return _PureComponent.apply(this, arguments) || this;\n }\n\n var _proto = Placeholder.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n if (this.props.onMount) {\n this.props.onMount();\n }\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n if (this.props.onUnmount) {\n this.props.onUnmount();\n }\n };\n\n _proto.render = function render() {\n var placeholder = this.props.placeholder;\n var client = placeholder.client,\n display = placeholder.display,\n tagName = placeholder.tagName;\n var style = {\n display: display,\n boxSizing: 'border-box',\n width: client.borderBox.width,\n height: client.borderBox.height,\n marginTop: client.margin.top,\n marginRight: client.margin.right,\n marginBottom: client.margin.bottom,\n marginLeft: client.margin.left,\n flexShrink: '0',\n flexGrow: '0',\n pointerEvents: 'none'\n };\n return __WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement(tagName, {\n style: style\n });\n };\n\n return Placeholder;\n}(__WEBPACK_IMPORTED_MODULE_9_react__[\"PureComponent\"]);\n\nvar throwIfRefIsInvalid = (function (ref) {\n !(ref && ref instanceof HTMLElement) ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, \"\\n provided.innerRef has not been provided with a HTMLElement.\\n\\n You can find a guide on using the innerRef callback functions at:\\n https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/using-inner-ref.md\\n \") : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n});\n\nvar _Droppable$contextTyp, _Droppable$childConte;\n\nvar Droppable = function (_Component) {\n Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_corejs2_helpers_esm_inheritsLoose__[\"a\" /* default */])(Droppable, _Component);\n\n function Droppable(props, context) {\n var _this;\n\n _this = _Component.call(this, props, context) || this;\n _this.styleContext = void 0;\n _this.ref = null;\n _this.isPlaceholderMounted = false;\n\n _this.onPlaceholderMount = function () {\n _this.isPlaceholderMounted = true;\n };\n\n _this.onPlaceholderUnmount = function () {\n _this.isPlaceholderMounted = false;\n };\n\n _this.setRef = function (ref) {\n if (ref === null) {\n return;\n }\n\n if (ref === _this.ref) {\n return;\n }\n\n _this.ref = ref;\n throwIfRefIsInvalid(ref);\n };\n\n _this.getDroppableRef = function () {\n return _this.ref;\n };\n\n _this.styleContext = context[styleContextKey];\n return _this;\n }\n\n var _proto = Droppable.prototype;\n\n _proto.getChildContext = function getChildContext() {\n var _value;\n\n var value = (_value = {}, _value[droppableIdKey] = this.props.droppableId, _value[droppableTypeKey] = this.props.type, _value);\n return value;\n };\n\n _proto.componentDidMount = function componentDidMount() {\n throwIfRefIsInvalid(this.ref);\n this.warnIfPlaceholderNotMounted();\n };\n\n _proto.componentDidUpdate = function componentDidUpdate() {\n this.warnIfPlaceholderNotMounted();\n };\n\n _proto.warnIfPlaceholderNotMounted = function warnIfPlaceholderNotMounted() {\n if (process.env.NODE_ENV === 'production') {\n return;\n }\n\n if (!this.props.placeholder) {\n return;\n }\n\n if (this.isPlaceholderMounted) {\n return;\n }\n\n console.warn(\"\\n Droppable setup issue: DroppableProvided > placeholder could not be found.\\n Please be sure to add the {provided.placeholder} Node as a child of your Droppable\\n\\n More information: https://github.com/atlassian/react-beautiful-dnd#1-provided-droppableprovided\\n \");\n };\n\n _proto.getPlaceholder = function getPlaceholder() {\n if (!this.props.placeholder) {\n return null;\n }\n\n return __WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement(Placeholder, {\n placeholder: this.props.placeholder,\n onMount: this.onPlaceholderMount,\n onUnmount: this.onPlaceholderUnmount\n });\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n children = _this$props.children,\n direction = _this$props.direction,\n droppableId = _this$props.droppableId,\n ignoreContainerClipping = _this$props.ignoreContainerClipping,\n isDraggingOver = _this$props.isDraggingOver,\n isDropDisabled = _this$props.isDropDisabled,\n draggingOverWith = _this$props.draggingOverWith,\n type = _this$props.type;\n var provided = {\n innerRef: this.setRef,\n placeholder: this.getPlaceholder(),\n droppableProps: {\n 'data-react-beautiful-dnd-droppable': this.styleContext\n }\n };\n var snapshot = {\n isDraggingOver: isDraggingOver,\n draggingOverWith: draggingOverWith\n };\n return __WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement(DroppableDimensionPublisher, {\n droppableId: droppableId,\n type: type,\n direction: direction,\n ignoreContainerClipping: ignoreContainerClipping,\n isDropDisabled: isDropDisabled,\n getDroppableRef: this.getDroppableRef\n }, children(provided, snapshot));\n };\n\n return Droppable;\n}(__WEBPACK_IMPORTED_MODULE_9_react__[\"Component\"]);\n\nDroppable.contextTypes = (_Droppable$contextTyp = {}, _Droppable$contextTyp[styleContextKey] = __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.string.isRequired, _Droppable$contextTyp);\nDroppable.childContextTypes = (_Droppable$childConte = {}, _Droppable$childConte[droppableIdKey] = __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.string.isRequired, _Droppable$childConte[droppableTypeKey] = __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.string.isRequired, _Droppable$childConte);\n\nvar isStrictEqual = (function (a, b) {\n return a === b;\n});\n\nvar makeMapStateToProps = function makeMapStateToProps() {\n var getIsDraggingOver = function getIsDraggingOver(id, destination) {\n if (!destination) {\n return false;\n }\n\n return destination.droppableId === id;\n };\n\n var shouldUsePlaceholder = function shouldUsePlaceholder(id, descriptor, destination) {\n if (!destination) {\n return false;\n }\n\n if (id === descriptor.droppableId) {\n return false;\n }\n\n return id === destination.droppableId;\n };\n\n var getMapProps = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__[\"a\" /* default */])(function (isDraggingOver, draggingOverWith, placeholder) {\n return {\n isDraggingOver: isDraggingOver,\n draggingOverWith: draggingOverWith,\n placeholder: placeholder\n };\n });\n\n var getDefault = function getDefault() {\n return getMapProps(false, null, null);\n };\n\n var selector = function selector(state, ownProps) {\n if (ownProps.isDropDisabled) {\n return getDefault();\n }\n\n var id = ownProps.droppableId;\n\n if (state.isDragging) {\n var destination = state.impact.destination;\n var isDraggingOver = getIsDraggingOver(id, destination);\n var draggableId = state.critical.draggable.id;\n var draggingOverWith = isDraggingOver ? draggableId : null;\n var draggable = state.dimensions.draggables[draggableId];\n var placeholder = shouldUsePlaceholder(id, draggable.descriptor, destination) ? draggable.placeholder : null;\n return getMapProps(isDraggingOver, draggingOverWith, placeholder);\n }\n\n if (state.phase === 'DROP_ANIMATING') {\n var _destination = state.pending.impact.destination;\n\n var _isDraggingOver = getIsDraggingOver(id, _destination);\n\n var _draggableId = state.pending.result.draggableId;\n\n var _draggingOverWith = _isDraggingOver ? _draggableId : null;\n\n var _draggable = state.dimensions.draggables[_draggableId];\n\n var _placeholder = shouldUsePlaceholder(id, _draggable.descriptor, _destination) ? _draggable.placeholder : null;\n\n return getMapProps(_isDraggingOver, _draggingOverWith, _placeholder);\n }\n\n return getDefault();\n };\n\n return selector;\n};\nvar connectedDroppable = Object(__WEBPACK_IMPORTED_MODULE_11_react_redux__[\"a\" /* connect */])(makeMapStateToProps, null, null, {\n storeKey: storeKey,\n pure: true,\n areStatePropsEqual: isStrictEqual\n})(Droppable);\nconnectedDroppable.defaultProps = {\n type: 'DEFAULT',\n isDropDisabled: false,\n direction: 'vertical',\n ignoreContainerClipping: false\n};\n\nvar _DraggableDimensionPu;\n\nvar DraggableDimensionPublisher = function (_Component) {\n Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_corejs2_helpers_esm_inheritsLoose__[\"a\" /* default */])(DraggableDimensionPublisher, _Component);\n\n function DraggableDimensionPublisher() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _Component.call.apply(_Component, [this].concat(args)) || this;\n _this.publishedDescriptor = null;\n _this.getMemoizedDescriptor = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__[\"a\" /* default */])(function (id, index, droppableId, type) {\n return {\n id: id,\n index: index,\n droppableId: droppableId,\n type: type\n };\n });\n\n _this.publish = function () {\n var marshal = _this.context[dimensionMarshalKey];\n\n var descriptor = _this.getMemoizedDescriptor(_this.props.draggableId, _this.props.index, _this.props.droppableId, _this.props.type);\n\n if (!_this.publishedDescriptor) {\n marshal.registerDraggable(descriptor, _this.getDimension);\n _this.publishedDescriptor = descriptor;\n return;\n }\n\n if (descriptor === _this.publishedDescriptor) {\n return;\n }\n\n marshal.updateDraggable(_this.publishedDescriptor, descriptor, _this.getDimension);\n _this.publishedDescriptor = descriptor;\n };\n\n _this.unpublish = function () {\n !_this.publishedDescriptor ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Cannot unpublish descriptor when none is published') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n var marshal = _this.context[dimensionMarshalKey];\n marshal.unregisterDraggable(_this.publishedDescriptor);\n _this.publishedDescriptor = null;\n };\n\n _this.getDimension = function (windowScroll) {\n var targetRef = _this.props.getDraggableRef();\n\n var descriptor = _this.publishedDescriptor;\n !targetRef ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'DraggableDimensionPublisher cannot calculate a dimension when not attached to the DOM') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n !descriptor ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Cannot get dimension for unpublished draggable') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n var computedStyles = window.getComputedStyle(targetRef);\n var borderBox = targetRef.getBoundingClientRect();\n var client = Object(__WEBPACK_IMPORTED_MODULE_2_css_box_model__[\"a\" /* calculateBox */])(borderBox, computedStyles);\n var page = Object(__WEBPACK_IMPORTED_MODULE_2_css_box_model__[\"e\" /* withScroll */])(client, windowScroll);\n var placeholder = {\n client: client,\n tagName: targetRef.tagName.toLowerCase(),\n display: computedStyles.display\n };\n var dimension = {\n descriptor: descriptor,\n placeholder: placeholder,\n client: client,\n page: page\n };\n return dimension;\n };\n\n return _this;\n }\n\n var _proto = DraggableDimensionPublisher.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n this.publish();\n };\n\n _proto.componentDidUpdate = function componentDidUpdate() {\n this.publish();\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.unpublish();\n };\n\n _proto.render = function render() {\n return this.props.children;\n };\n\n return DraggableDimensionPublisher;\n}(__WEBPACK_IMPORTED_MODULE_9_react__[\"Component\"]);\n\nDraggableDimensionPublisher.contextTypes = (_DraggableDimensionPu = {}, _DraggableDimensionPu[dimensionMarshalKey] = __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.object.isRequired, _DraggableDimensionPu);\n\nvar DoubleRenderBlocker = function (_React$Component) {\n Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_corejs2_helpers_esm_inheritsLoose__[\"a\" /* default */])(DoubleRenderBlocker, _React$Component);\n\n function DoubleRenderBlocker() {\n return _React$Component.apply(this, arguments) || this;\n }\n\n var _proto = DoubleRenderBlocker.prototype;\n\n _proto.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {\n if (isEqual(origin, nextProps.change)) {\n return true;\n }\n\n if (isEqual(this.props.change, nextProps.change)) {\n return false;\n }\n\n return true;\n };\n\n _proto.render = function render() {\n return this.props.children(this.props.change);\n };\n\n return DoubleRenderBlocker;\n}(__WEBPACK_IMPORTED_MODULE_9_react___default.a.Component);\n\nvar Moveable = function (_Component) {\n Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_corejs2_helpers_esm_inheritsLoose__[\"a\" /* default */])(Moveable, _Component);\n\n function Moveable() {\n return _Component.apply(this, arguments) || this;\n }\n\n var _proto2 = Moveable.prototype;\n\n _proto2.getFinal = function getFinal() {\n var destination = this.props.destination;\n var speed = this.props.speed;\n\n if (speed === 'INSTANT') {\n return destination;\n }\n\n var config = speed === 'FAST' ? physics.fast : physics.standard;\n return {\n x: Object(__WEBPACK_IMPORTED_MODULE_12_react_motion__[\"spring\"])(destination.x, config),\n y: Object(__WEBPACK_IMPORTED_MODULE_12_react_motion__[\"spring\"])(destination.y, config)\n };\n };\n\n _proto2.render = function render() {\n var _this = this;\n\n var final = this.getFinal();\n return __WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_12_react_motion__[\"Motion\"], {\n defaultStyle: origin,\n style: final,\n onRest: this.props.onMoveEnd\n }, function (current) {\n var _this$props = _this.props,\n speed = _this$props.speed,\n destination = _this$props.destination,\n children = _this$props.children;\n var target = speed === 'INSTANT' ? destination : current;\n return __WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement(DoubleRenderBlocker, {\n change: target\n }, children);\n });\n };\n\n return Moveable;\n}(__WEBPACK_IMPORTED_MODULE_9_react__[\"Component\"]);\n\nMoveable.defaultProps = {\n destination: origin\n};\n\nvar getWindowFromRef = (function (ref) {\n return ref ? ref.ownerDocument.defaultView : window;\n});\n\nvar selector = \"[\" + dragHandle + \"]\";\n\nvar isSVG = function isSVG(el) {\n if (typeof SVGElement === 'undefined') {\n return false;\n }\n\n return el instanceof SVGElement;\n};\n\nvar throwIfSVG = function throwIfSVG(el) {\n !!isSVG(el) ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, \"A drag handle cannot be an SVGElement: it has inconsistent focus support.\\n\\n More information: https://github.com/atlassian/react-beautiful-dnd/tree/master/docs/guides/dragging-svgs.md\") : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n};\n\nvar getDragHandleRef = function getDragHandleRef(draggableRef) {\n if (draggableRef.hasAttribute(dragHandle)) {\n throwIfSVG(draggableRef);\n return draggableRef;\n }\n\n var el = draggableRef.querySelector(selector);\n throwIfSVG(draggableRef);\n !el ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, \"\\n Cannot find drag handle element inside of Draggable.\\n Please be sure to apply the {...provided.dragHandleProps} to your Draggable\\n\\n More information: https://github.com/atlassian/react-beautiful-dnd#draggable\\n \") : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n !(el instanceof HTMLElement) ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'A drag handle must be a HTMLElement') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n return el;\n};\n\nvar retainingFocusFor = null;\nvar listenerOptions$1 = {\n capture: true\n};\n\nvar clearRetentionOnFocusChange = function () {\n var isBound = false;\n\n var bind = function bind() {\n if (isBound) {\n return;\n }\n\n isBound = true;\n window.addEventListener('focus', onWindowFocusChange, listenerOptions$1);\n };\n\n var unbind = function unbind() {\n if (!isBound) {\n return;\n }\n\n isBound = false;\n window.removeEventListener('focus', onWindowFocusChange, listenerOptions$1);\n };\n\n var onWindowFocusChange = function onWindowFocusChange() {\n unbind();\n retainingFocusFor = null;\n };\n\n var result = function result() {\n return bind();\n };\n\n result.cancel = function () {\n return unbind();\n };\n\n return result;\n}();\n\nvar retain = function retain(id) {\n retainingFocusFor = id;\n clearRetentionOnFocusChange();\n};\n\nvar tryRestoreFocus = function tryRestoreFocus(id, draggableRef) {\n if (!retainingFocusFor) {\n return;\n }\n\n if (id !== retainingFocusFor) {\n return;\n }\n\n retainingFocusFor = null;\n clearRetentionOnFocusChange.cancel();\n var dragHandleRef = getDragHandleRef(draggableRef);\n\n if (!dragHandleRef) {\n console.warn('Could not find drag handle in the DOM to focus on it');\n return;\n }\n\n dragHandleRef.focus();\n};\n\nvar retainer = {\n retain: retain,\n tryRestoreFocus: tryRestoreFocus\n};\n\nvar interactiveTagNames = {\n input: true,\n button: true,\n textarea: true,\n select: true,\n option: true,\n optgroup: true,\n video: true,\n audio: true\n};\n\nvar isAnInteractiveElement = function isAnInteractiveElement(parent, current) {\n if (current == null) {\n return false;\n }\n\n var hasAnInteractiveTag = Boolean(interactiveTagNames[current.tagName.toLowerCase()]);\n\n if (hasAnInteractiveTag) {\n return true;\n }\n\n var attribute = current.getAttribute('contenteditable');\n\n if (attribute === 'true' || attribute === '') {\n return true;\n }\n\n if (current === parent) {\n return false;\n }\n\n return isAnInteractiveElement(parent, current.parentElement);\n};\n\nvar shouldAllowDraggingFromTarget = (function (event, props) {\n if (props.canDragInteractiveElements) {\n return true;\n }\n\n var target = event.target,\n currentTarget = event.currentTarget;\n\n if (!(target instanceof Element) || !(currentTarget instanceof Element)) {\n return true;\n }\n\n return !isAnInteractiveElement(currentTarget, target);\n});\n\nvar createScheduler = (function (callbacks) {\n var memoizedMove = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__[\"a\" /* default */])(function (x, y) {\n var point = {\n x: x,\n y: y\n };\n callbacks.onMove(point);\n });\n var move = Object(__WEBPACK_IMPORTED_MODULE_7_raf_schd__[\"a\" /* default */])(function (point) {\n return memoizedMove(point.x, point.y);\n });\n var moveUp = Object(__WEBPACK_IMPORTED_MODULE_7_raf_schd__[\"a\" /* default */])(callbacks.onMoveUp);\n var moveDown = Object(__WEBPACK_IMPORTED_MODULE_7_raf_schd__[\"a\" /* default */])(callbacks.onMoveDown);\n var moveRight = Object(__WEBPACK_IMPORTED_MODULE_7_raf_schd__[\"a\" /* default */])(callbacks.onMoveRight);\n var moveLeft = Object(__WEBPACK_IMPORTED_MODULE_7_raf_schd__[\"a\" /* default */])(callbacks.onMoveLeft);\n var windowScrollMove = Object(__WEBPACK_IMPORTED_MODULE_7_raf_schd__[\"a\" /* default */])(callbacks.onWindowScroll);\n\n var cancel = function cancel() {\n move.cancel();\n moveUp.cancel();\n moveDown.cancel();\n moveRight.cancel();\n moveLeft.cancel();\n windowScrollMove.cancel();\n };\n\n return {\n move: move,\n moveUp: moveUp,\n moveDown: moveDown,\n moveRight: moveRight,\n moveLeft: moveLeft,\n windowScrollMove: windowScrollMove,\n cancel: cancel\n };\n});\n\nvar sloppyClickThreshold = 5;\nvar isSloppyClickThresholdExceeded = (function (original, current) {\n return Math.abs(current.x - original.x) >= sloppyClickThreshold || Math.abs(current.y - original.y) >= sloppyClickThreshold;\n});\n\nvar tab = 9;\nvar enter = 13;\nvar escape = 27;\nvar space = 32;\nvar pageUp = 33;\nvar pageDown = 34;\nvar end = 35;\nvar home = 36;\nvar arrowLeft = 37;\nvar arrowUp = 38;\nvar arrowRight = 39;\nvar arrowDown = 40;\n\nvar _preventedKeys;\nvar preventedKeys = (_preventedKeys = {}, _preventedKeys[enter] = true, _preventedKeys[tab] = true, _preventedKeys);\nvar preventStandardKeyEvents = (function (event) {\n if (preventedKeys[event.keyCode]) {\n event.preventDefault();\n }\n});\n\nvar getOptions = function getOptions(shared, fromBinding) {\n return Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__[\"a\" /* default */])({}, shared, fromBinding);\n};\n\nvar bindEvents = function bindEvents(el, bindings, sharedOptions) {\n bindings.forEach(function (binding) {\n var options = getOptions(sharedOptions, binding.options);\n el.addEventListener(binding.eventName, binding.fn, options);\n });\n};\nvar unbindEvents = function unbindEvents(el, bindings, sharedOptions) {\n bindings.forEach(function (binding) {\n var options = getOptions(sharedOptions, binding.options);\n el.removeEventListener(binding.eventName, binding.fn, options);\n });\n};\n\nvar sharedOptions = {\n capture: true\n};\nvar createPostDragEventPreventer = (function (getWindow) {\n var isBound = false;\n\n var bind = function bind() {\n if (isBound) {\n return;\n }\n\n isBound = true;\n bindEvents(getWindow(), pointerEvents, sharedOptions);\n };\n\n var unbind = function unbind() {\n if (!isBound) {\n return;\n }\n\n isBound = false;\n unbindEvents(getWindow(), pointerEvents, sharedOptions);\n };\n\n var pointerEvents = [{\n eventName: 'click',\n fn: function fn(event) {\n event.preventDefault();\n unbind();\n }\n }, {\n eventName: 'mousedown',\n fn: unbind\n }, {\n eventName: 'touchstart',\n fn: unbind\n }];\n\n var preventNext = function preventNext() {\n if (isBound) {\n unbind();\n }\n\n bind();\n };\n\n var preventer = {\n preventNext: preventNext,\n abort: unbind\n };\n return preventer;\n});\n\nvar createEventMarshal = (function () {\n var isMouseDownHandled = false;\n\n var handle = function handle() {\n !!isMouseDownHandled ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Cannot handle mouse down as it is already handled') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n isMouseDownHandled = true;\n };\n\n var isHandled = function isHandled() {\n return isMouseDownHandled;\n };\n\n var reset = function reset() {\n isMouseDownHandled = false;\n };\n\n return {\n handle: handle,\n isHandled: isHandled,\n reset: reset\n };\n});\n\nvar supportedEventName = function () {\n var base = 'visibilitychange';\n\n if (typeof document === 'undefined') {\n return base;\n }\n\n var candidates = [base, \"ms\" + base, \"webkit\" + base, \"moz\" + base, \"o\" + base];\n var supported = \"\";\n for(var k = 0; k++; k < candidates.length) {\n\tif(candidates[k] === \"on\" + eventName in document){\n\t\tsupported = candidates[k];\n\t}\n }\n return supported || base;\n}();\n\nvar primaryButton = 0;\n\nvar noop = function noop() {};\n\nvar mouseDownMarshal = createEventMarshal();\nvar createMouseSensor = (function (_ref) {\n var callbacks = _ref.callbacks,\n getWindow = _ref.getWindow,\n canStartCapturing = _ref.canStartCapturing;\n var state = {\n isDragging: false,\n pending: null\n };\n\n var setState = function setState(newState) {\n state = newState;\n };\n\n var isDragging = function isDragging() {\n return state.isDragging;\n };\n\n var isCapturing = function isCapturing() {\n return Boolean(state.pending || state.isDragging);\n };\n\n var schedule = createScheduler(callbacks);\n var postDragEventPreventer = createPostDragEventPreventer(getWindow);\n\n var startDragging = function startDragging(fn) {\n if (fn === void 0) {\n fn = noop;\n }\n\n setState({\n pending: null,\n isDragging: true\n });\n fn();\n };\n\n var stopDragging = function stopDragging(fn, shouldBlockClick) {\n if (fn === void 0) {\n fn = noop;\n }\n\n if (shouldBlockClick === void 0) {\n shouldBlockClick = true;\n }\n\n schedule.cancel();\n unbindWindowEvents();\n mouseDownMarshal.reset();\n\n if (shouldBlockClick) {\n postDragEventPreventer.preventNext();\n }\n\n setState({\n isDragging: false,\n pending: null\n });\n fn();\n };\n\n var startPendingDrag = function startPendingDrag(point) {\n setState({\n pending: point,\n isDragging: false\n });\n bindWindowEvents();\n };\n\n var stopPendingDrag = function stopPendingDrag() {\n stopDragging(noop, false);\n };\n\n var kill = function kill(fn) {\n if (fn === void 0) {\n fn = noop;\n }\n\n if (state.pending) {\n stopPendingDrag();\n return;\n }\n\n stopDragging(fn);\n };\n\n var unmount = function unmount() {\n kill();\n postDragEventPreventer.abort();\n };\n\n var cancel = function cancel() {\n kill(callbacks.onCancel);\n };\n\n var windowBindings = [{\n eventName: 'mousemove',\n fn: function fn(event) {\n var button = event.button,\n clientX = event.clientX,\n clientY = event.clientY;\n\n if (button !== primaryButton) {\n return;\n }\n\n var point = {\n x: clientX,\n y: clientY\n };\n\n if (state.isDragging) {\n event.preventDefault();\n schedule.move(point);\n return;\n }\n\n if (!state.pending) {\n kill();\n process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Expected there to be a pending drag') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false);\n }\n\n if (!isSloppyClickThresholdExceeded(state.pending, point)) {\n return;\n }\n\n event.preventDefault();\n startDragging(function () {\n return callbacks.onLift({\n clientSelection: point,\n autoScrollMode: 'FLUID'\n });\n });\n }\n }, {\n eventName: 'mouseup',\n fn: function fn(event) {\n if (state.pending) {\n stopPendingDrag();\n return;\n }\n\n event.preventDefault();\n stopDragging(callbacks.onDrop);\n }\n }, {\n eventName: 'mousedown',\n fn: function fn(event) {\n if (state.isDragging) {\n event.preventDefault();\n }\n\n stopDragging(callbacks.onCancel);\n }\n }, {\n eventName: 'keydown',\n fn: function fn(event) {\n if (!state.isDragging) {\n cancel();\n return;\n }\n\n if (event.keyCode === escape) {\n event.preventDefault();\n cancel();\n return;\n }\n\n preventStandardKeyEvents(event);\n }\n }, {\n eventName: 'resize',\n fn: cancel\n }, {\n eventName: 'scroll',\n options: {\n passive: true,\n capture: false\n },\n fn: function fn() {\n if (state.pending) {\n stopPendingDrag();\n return;\n }\n\n schedule.windowScrollMove();\n }\n }, {\n eventName: 'webkitmouseforcechanged',\n fn: function fn(event) {\n if (event.webkitForce == null || MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN == null) {\n if (process.env.NODE_ENV !== 'production') {\n console.warn('handling a mouse force changed event when it is not supported');\n }\n\n return;\n }\n\n var forcePressThreshold = MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN;\n var isForcePressing = event.webkitForce >= forcePressThreshold;\n\n if (isForcePressing) {\n cancel();\n }\n }\n }, {\n eventName: supportedEventName,\n fn: cancel\n }];\n\n var bindWindowEvents = function bindWindowEvents() {\n var win = getWindow();\n bindEvents(win, windowBindings, {\n capture: true\n });\n };\n\n var unbindWindowEvents = function unbindWindowEvents() {\n var win = getWindow();\n unbindEvents(win, windowBindings, {\n capture: true\n });\n };\n\n var onMouseDown = function onMouseDown(event) {\n if (mouseDownMarshal.isHandled()) {\n return;\n }\n\n !!isCapturing() ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Should not be able to perform a mouse down while a drag or pending drag is occurring') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n\n if (!canStartCapturing(event)) {\n return;\n }\n\n if (event.button !== primaryButton) {\n return;\n }\n\n if (event.ctrlKey || event.metaKey || event.shiftKey || event.altKey) {\n return;\n }\n\n mouseDownMarshal.handle();\n event.preventDefault();\n var point = {\n x: event.clientX,\n y: event.clientY\n };\n startPendingDrag(point);\n };\n\n var sensor = {\n onMouseDown: onMouseDown,\n kill: kill,\n isCapturing: isCapturing,\n isDragging: isDragging,\n unmount: unmount\n };\n return sensor;\n});\n\nvar getBorderBoxCenterPosition = (function (el) {\n return Object(__WEBPACK_IMPORTED_MODULE_2_css_box_model__[\"d\" /* getRect */])(el.getBoundingClientRect()).center;\n});\n\nvar _scrollJumpKeys;\nvar scrollJumpKeys = (_scrollJumpKeys = {}, _scrollJumpKeys[pageDown] = true, _scrollJumpKeys[pageUp] = true, _scrollJumpKeys[home] = true, _scrollJumpKeys[end] = true, _scrollJumpKeys);\n\nvar noop$1 = function noop() {};\n\nvar createKeyboardSensor = (function (_ref) {\n var callbacks = _ref.callbacks,\n getWindow = _ref.getWindow,\n getDraggableRef = _ref.getDraggableRef,\n canStartCapturing = _ref.canStartCapturing;\n var state = {\n isDragging: false\n };\n\n var setState = function setState(newState) {\n state = newState;\n };\n\n var startDragging = function startDragging(fn) {\n if (fn === void 0) {\n fn = noop$1;\n }\n\n setState({\n isDragging: true\n });\n bindWindowEvents();\n fn();\n };\n\n var stopDragging = function stopDragging(fn) {\n if (fn === void 0) {\n fn = noop$1;\n }\n\n schedule.cancel();\n unbindWindowEvents();\n setState({\n isDragging: false\n });\n fn();\n };\n\n var kill = function kill() {\n return stopDragging();\n };\n\n var cancel = function cancel() {\n stopDragging(callbacks.onCancel);\n };\n\n var isDragging = function isDragging() {\n return state.isDragging;\n };\n\n var schedule = createScheduler(callbacks);\n\n var onKeyDown = function onKeyDown(event) {\n if (!isDragging()) {\n if (event.defaultPrevented) {\n return;\n }\n\n if (!canStartCapturing(event)) {\n return;\n }\n\n if (event.keyCode !== space) {\n return;\n }\n\n var ref = getDraggableRef();\n !ref ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Cannot start a keyboard drag without a draggable ref') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n var center = getBorderBoxCenterPosition(ref);\n event.preventDefault();\n startDragging(function () {\n return callbacks.onLift({\n clientSelection: center,\n autoScrollMode: 'JUMP'\n });\n });\n return;\n }\n\n if (event.keyCode === escape) {\n event.preventDefault();\n cancel();\n return;\n }\n\n if (event.keyCode === space) {\n event.preventDefault();\n stopDragging(callbacks.onDrop);\n return;\n }\n\n if (event.keyCode === arrowDown) {\n event.preventDefault();\n schedule.moveDown();\n return;\n }\n\n if (event.keyCode === arrowUp) {\n event.preventDefault();\n schedule.moveUp();\n return;\n }\n\n if (event.keyCode === arrowRight) {\n event.preventDefault();\n schedule.moveRight();\n return;\n }\n\n if (event.keyCode === arrowLeft) {\n event.preventDefault();\n schedule.moveLeft();\n return;\n }\n\n if (scrollJumpKeys[event.keyCode]) {\n event.preventDefault();\n return;\n }\n\n preventStandardKeyEvents(event);\n };\n\n var windowBindings = [{\n eventName: 'mousedown',\n fn: cancel\n }, {\n eventName: 'mouseup',\n fn: cancel\n }, {\n eventName: 'click',\n fn: cancel\n }, {\n eventName: 'touchstart',\n fn: cancel\n }, {\n eventName: 'resize',\n fn: cancel\n }, {\n eventName: 'wheel',\n fn: cancel\n }, {\n eventName: 'scroll',\n options: {\n capture: false\n },\n fn: callbacks.onWindowScroll\n }, {\n eventName: supportedEventName,\n fn: cancel\n }];\n\n var bindWindowEvents = function bindWindowEvents() {\n bindEvents(getWindow(), windowBindings, {\n capture: true\n });\n };\n\n var unbindWindowEvents = function unbindWindowEvents() {\n unbindEvents(getWindow(), windowBindings, {\n capture: true\n });\n };\n\n var sensor = {\n onKeyDown: onKeyDown,\n kill: kill,\n isDragging: isDragging,\n isCapturing: isDragging,\n unmount: kill\n };\n return sensor;\n});\n\nvar timeForLongPress = 150;\nvar forcePressThreshold = 0.15;\nvar touchStartMarshal = createEventMarshal();\n\nvar noop$2 = function noop() {};\n\nvar webkitHack = function () {\n var stub = {\n preventTouchMove: noop$2,\n releaseTouchMove: noop$2\n };\n\n if (typeof window === 'undefined') {\n return stub;\n }\n\n if (!('ontouchstart' in window)) {\n return stub;\n }\n\n var isBlocking = false;\n window.addEventListener('touchmove', function (event) {\n if (!isBlocking) {\n return;\n }\n\n if (event.defaultPrevented) {\n return;\n }\n\n event.preventDefault();\n }, {\n passive: false,\n capture: false\n });\n\n var preventTouchMove = function preventTouchMove() {\n isBlocking = true;\n };\n\n var releaseTouchMove = function releaseTouchMove() {\n isBlocking = false;\n };\n\n return {\n preventTouchMove: preventTouchMove,\n releaseTouchMove: releaseTouchMove\n };\n}();\n\nvar initial = {\n isDragging: false,\n pending: null,\n hasMoved: false,\n longPressTimerId: null\n};\nvar createTouchSensor = (function (_ref) {\n var callbacks = _ref.callbacks,\n getWindow = _ref.getWindow,\n canStartCapturing = _ref.canStartCapturing;\n var state = initial;\n\n var setState = function setState(partial) {\n state = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__[\"a\" /* default */])({}, state, partial);\n };\n\n var isDragging = function isDragging() {\n return state.isDragging;\n };\n\n var isCapturing = function isCapturing() {\n return Boolean(state.pending || state.isDragging || state.longPressTimerId);\n };\n\n var schedule = createScheduler(callbacks);\n var postDragEventPreventer = createPostDragEventPreventer(getWindow);\n\n var startDragging = function startDragging() {\n var pending = state.pending;\n\n if (!pending) {\n kill();\n process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'cannot start a touch drag without a pending position') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false);\n }\n\n setState({\n isDragging: true,\n hasMoved: false,\n pending: null,\n longPressTimerId: null\n });\n callbacks.onLift({\n clientSelection: pending,\n autoScrollMode: 'FLUID'\n });\n };\n\n var stopDragging = function stopDragging(fn) {\n if (fn === void 0) {\n fn = noop$2;\n }\n\n schedule.cancel();\n touchStartMarshal.reset();\n webkitHack.releaseTouchMove();\n unbindWindowEvents();\n postDragEventPreventer.preventNext();\n setState(initial);\n fn();\n };\n\n var startPendingDrag = function startPendingDrag(event) {\n var touch = event.touches[0];\n var clientX = touch.clientX,\n clientY = touch.clientY;\n var point = {\n x: clientX,\n y: clientY\n };\n var longPressTimerId = setTimeout(startDragging, timeForLongPress);\n setState({\n longPressTimerId: longPressTimerId,\n pending: point,\n isDragging: false,\n hasMoved: false\n });\n bindWindowEvents();\n };\n\n var stopPendingDrag = function stopPendingDrag() {\n if (state.longPressTimerId) {\n clearTimeout(state.longPressTimerId);\n }\n\n schedule.cancel();\n touchStartMarshal.reset();\n webkitHack.releaseTouchMove();\n unbindWindowEvents();\n setState(initial);\n };\n\n var kill = function kill(fn) {\n if (fn === void 0) {\n fn = noop$2;\n }\n\n if (state.pending) {\n stopPendingDrag();\n return;\n }\n\n stopDragging(fn);\n };\n\n var unmount = function unmount() {\n kill();\n postDragEventPreventer.abort();\n };\n\n var cancel = function cancel() {\n kill(callbacks.onCancel);\n };\n\n var windowBindings = [{\n eventName: 'touchmove',\n options: {\n passive: false\n },\n fn: function fn(event) {\n if (!state.isDragging) {\n stopPendingDrag();\n return;\n }\n\n if (!state.hasMoved) {\n setState({\n hasMoved: true\n });\n }\n\n var _event$touches$ = event.touches[0],\n clientX = _event$touches$.clientX,\n clientY = _event$touches$.clientY;\n var point = {\n x: clientX,\n y: clientY\n };\n event.preventDefault();\n schedule.move(point);\n }\n }, {\n eventName: 'touchend',\n fn: function fn(event) {\n if (!state.isDragging) {\n stopPendingDrag();\n return;\n }\n\n event.preventDefault();\n stopDragging(callbacks.onDrop);\n }\n }, {\n eventName: 'touchcancel',\n fn: function fn(event) {\n if (!state.isDragging) {\n stopPendingDrag();\n return;\n }\n\n event.preventDefault();\n stopDragging(callbacks.onCancel);\n }\n }, {\n eventName: 'touchstart',\n fn: cancel\n }, {\n eventName: 'orientationchange',\n fn: cancel\n }, {\n eventName: 'resize',\n fn: cancel\n }, {\n eventName: 'scroll',\n options: {\n passive: true,\n capture: false\n },\n fn: function fn() {\n if (state.pending) {\n stopPendingDrag();\n return;\n }\n\n schedule.windowScrollMove();\n }\n }, {\n eventName: 'contextmenu',\n fn: function fn(event) {\n event.preventDefault();\n }\n }, {\n eventName: 'keydown',\n fn: function fn(event) {\n if (!state.isDragging) {\n cancel();\n return;\n }\n\n if (event.keyCode === escape) {\n event.preventDefault();\n }\n\n cancel();\n }\n }, {\n eventName: 'touchforcechange',\n fn: function fn(event) {\n if (state.hasMoved) {\n event.preventDefault();\n return;\n }\n\n var touch = event.touches[0];\n\n if (touch.force >= forcePressThreshold) {\n cancel();\n }\n }\n }, {\n eventName: supportedEventName,\n fn: cancel\n }];\n\n var bindWindowEvents = function bindWindowEvents() {\n bindEvents(getWindow(), windowBindings, {\n capture: true\n });\n };\n\n var unbindWindowEvents = function unbindWindowEvents() {\n unbindEvents(getWindow(), windowBindings, {\n capture: true\n });\n };\n\n var onTouchStart = function onTouchStart(event) {\n if (touchStartMarshal.isHandled()) {\n return;\n }\n\n !!isCapturing() ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Should not be able to perform a touch start while a drag or pending drag is occurring') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n\n if (!canStartCapturing(event)) {\n return;\n }\n\n touchStartMarshal.handle();\n webkitHack.preventTouchMove();\n startPendingDrag(event);\n };\n\n var sensor = {\n onTouchStart: onTouchStart,\n kill: kill,\n isCapturing: isCapturing,\n isDragging: isDragging,\n unmount: unmount\n };\n return sensor;\n});\n\nvar _DragHandle$contextTy;\n\nvar preventHtml5Dnd = function preventHtml5Dnd(event) {\n event.preventDefault();\n};\n\nvar DragHandle = function (_Component) {\n Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_corejs2_helpers_esm_inheritsLoose__[\"a\" /* default */])(DragHandle, _Component);\n\n function DragHandle(props, context) {\n var _this;\n\n _this = _Component.call(this, props, context) || this;\n _this.mouseSensor = void 0;\n _this.keyboardSensor = void 0;\n _this.touchSensor = void 0;\n _this.sensors = void 0;\n _this.styleContext = void 0;\n _this.canLift = void 0;\n _this.isFocused = false;\n _this.lastDraggableRef = void 0;\n\n _this.onFocus = function () {\n _this.isFocused = true;\n };\n\n _this.onBlur = function () {\n _this.isFocused = false;\n };\n\n _this.onKeyDown = function (event) {\n if (_this.mouseSensor.isCapturing() || _this.touchSensor.isCapturing()) {\n return;\n }\n\n _this.keyboardSensor.onKeyDown(event);\n };\n\n _this.onMouseDown = function (event) {\n if (_this.keyboardSensor.isCapturing() || _this.mouseSensor.isCapturing()) {\n return;\n }\n\n _this.mouseSensor.onMouseDown(event);\n };\n\n _this.onTouchStart = function (event) {\n if (_this.mouseSensor.isCapturing() || _this.keyboardSensor.isCapturing()) {\n return;\n }\n\n _this.touchSensor.onTouchStart(event);\n };\n\n _this.canStartCapturing = function (event) {\n if (_this.isAnySensorCapturing()) {\n return false;\n }\n\n if (!_this.canLift(_this.props.draggableId)) {\n return false;\n }\n\n return shouldAllowDraggingFromTarget(event, _this.props);\n };\n\n _this.isAnySensorCapturing = function () {\n return _this.sensors.some(function (sensor) {\n return sensor.isCapturing();\n });\n };\n\n _this.getProvided = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__[\"a\" /* default */])(function (isEnabled) {\n if (!isEnabled) {\n return null;\n }\n\n var provided = {\n onMouseDown: _this.onMouseDown,\n onKeyDown: _this.onKeyDown,\n onTouchStart: _this.onTouchStart,\n onFocus: _this.onFocus,\n onBlur: _this.onBlur,\n tabIndex: 0,\n 'data-react-beautiful-dnd-drag-handle': _this.styleContext,\n 'aria-roledescription': 'Draggable item. Press space bar to lift',\n draggable: false,\n onDragStart: preventHtml5Dnd\n };\n return provided;\n });\n\n var getWindow = function getWindow() {\n return getWindowFromRef(_this.props.getDraggableRef());\n };\n\n var args = {\n callbacks: _this.props.callbacks,\n getDraggableRef: _this.props.getDraggableRef,\n getWindow: getWindow,\n canStartCapturing: _this.canStartCapturing\n };\n _this.mouseSensor = createMouseSensor(args);\n _this.keyboardSensor = createKeyboardSensor(args);\n _this.touchSensor = createTouchSensor(args);\n _this.sensors = [_this.mouseSensor, _this.keyboardSensor, _this.touchSensor];\n _this.styleContext = context[styleContextKey];\n _this.canLift = context[canLiftContextKey];\n return _this;\n }\n\n var _proto = DragHandle.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n var draggableRef = this.props.getDraggableRef();\n this.lastDraggableRef = draggableRef;\n !draggableRef ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Cannot get draggable ref from drag handle') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n\n if (!this.props.isEnabled) {\n return;\n }\n\n var dragHandleRef = getDragHandleRef(draggableRef);\n retainer.tryRestoreFocus(this.props.draggableId, dragHandleRef);\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n var _this2 = this;\n\n var ref = this.props.getDraggableRef();\n\n if (ref !== this.lastDraggableRef) {\n this.lastDraggableRef = ref;\n\n if (!ref || !this.isFocused) {\n return;\n }\n\n if (!this.props.isEnabled) {\n return;\n }\n\n getDragHandleRef(ref).focus();\n }\n\n var isCapturing = this.isAnySensorCapturing();\n\n if (!isCapturing) {\n return;\n }\n\n var isDragStopping = prevProps.isDragging && !this.props.isDragging;\n\n if (isDragStopping) {\n this.sensors.forEach(function (sensor) {\n if (sensor.isCapturing()) {\n sensor.kill();\n }\n });\n }\n\n if (this.props.isEnabled) {\n return;\n }\n\n this.sensors.forEach(function (sensor) {\n if (!sensor.isCapturing()) {\n return;\n }\n\n var wasDragging = sensor.isDragging();\n sensor.kill();\n\n if (wasDragging) {\n if (process.env.NODE_ENV !== 'production') {\n console.warn('You have disabled dragging on a Draggable while it was dragging. The drag has been cancelled');\n }\n\n _this2.props.callbacks.onCancel();\n }\n });\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n var _this3 = this;\n\n this.sensors.forEach(function (sensor) {\n var wasDragging = sensor.isDragging();\n sensor.unmount();\n\n if (wasDragging) {\n _this3.props.callbacks.onCancel();\n }\n });\n\n var shouldRetainFocus = function () {\n if (!_this3.props.isEnabled) {\n return false;\n }\n\n if (!_this3.isFocused) {\n return false;\n }\n\n return _this3.props.isDragging || _this3.props.isDropAnimating;\n }();\n\n if (shouldRetainFocus) {\n retainer.retain(this.props.draggableId);\n }\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n children = _this$props.children,\n isEnabled = _this$props.isEnabled;\n return children(this.getProvided(isEnabled));\n };\n\n return DragHandle;\n}(__WEBPACK_IMPORTED_MODULE_9_react__[\"Component\"]);\n\nDragHandle.contextTypes = (_DragHandle$contextTy = {}, _DragHandle$contextTy[styleContextKey] = __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.string.isRequired, _DragHandle$contextTy[canLiftContextKey] = __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.func.isRequired, _DragHandle$contextTy);\n\nvar getWindowScroll = (function () {\n return {\n x: window.pageXOffset,\n y: window.pageYOffset\n };\n});\n\nvar getViewport = (function () {\n var scroll = getWindowScroll();\n var top = scroll.y;\n var left = scroll.x;\n var doc = document.documentElement;\n !doc ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Could not find document.documentElement') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n var width = doc.clientWidth;\n var height = doc.clientHeight;\n var right = left + width;\n var bottom = top + height;\n var frame = Object(__WEBPACK_IMPORTED_MODULE_2_css_box_model__[\"d\" /* getRect */])({\n top: top,\n left: left,\n right: right,\n bottom: bottom\n });\n var maxScroll = getMaxScroll({\n scrollHeight: doc.scrollHeight,\n scrollWidth: doc.scrollWidth,\n width: frame.width,\n height: frame.height\n });\n var viewport = {\n frame: frame,\n scroll: {\n initial: scroll,\n current: scroll,\n max: maxScroll,\n diff: {\n value: origin,\n displacement: origin\n }\n }\n };\n return viewport;\n});\n\nvar _Draggable$contextTyp;\nvar zIndexOptions = {\n dragging: 5000,\n dropAnimating: 4500\n};\n\nvar getTranslate = function getTranslate(offset) {\n if (isEqual(offset, origin)) {\n return null;\n }\n\n return \"translate(\" + offset.x + \"px, \" + offset.y + \"px)\";\n};\n\nvar getSpeed$1 = function getSpeed(isDragging, shouldAnimateDragMovement, isDropAnimating) {\n if (isDropAnimating) {\n return 'STANDARD';\n }\n\n if (isDragging && shouldAnimateDragMovement) {\n return 'FAST';\n }\n\n return 'INSTANT';\n};\n\nvar Draggable = function (_Component) {\n Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_corejs2_helpers_esm_inheritsLoose__[\"a\" /* default */])(Draggable, _Component);\n\n function Draggable(props, context) {\n var _this;\n\n _this = _Component.call(this, props, context) || this;\n _this.callbacks = void 0;\n _this.styleContext = void 0;\n _this.ref = null;\n\n _this.onMoveEnd = function () {\n if (_this.props.isDropAnimating) {\n _this.props.dropAnimationFinished();\n }\n };\n\n _this.onLift = function (options) {\n start('LIFT');\n var ref = _this.ref;\n !ref ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n !!_this.props.isDragDisabled ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Cannot lift a Draggable when it is disabled') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n var clientSelection = options.clientSelection,\n autoScrollMode = options.autoScrollMode;\n var _this$props = _this.props,\n lift = _this$props.lift,\n draggableId = _this$props.draggableId;\n var client = {\n selection: clientSelection,\n borderBoxCenter: getBorderBoxCenterPosition(ref),\n offset: origin\n };\n lift({\n id: draggableId,\n client: client,\n autoScrollMode: autoScrollMode,\n viewport: getViewport()\n });\n finish('LIFT');\n };\n\n _this.setRef = function (ref) {\n if (ref === null) {\n return;\n }\n\n if (ref === _this.ref) {\n return;\n }\n\n _this.ref = ref;\n throwIfRefIsInvalid(ref);\n };\n\n _this.getDraggableRef = function () {\n return _this.ref;\n };\n\n _this.getDraggingStyle = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__[\"a\" /* default */])(function (change, dimension, isDropAnimating) {\n var box = dimension.client;\n var style = {\n position: 'fixed',\n top: box.marginBox.top,\n left: box.marginBox.left,\n boxSizing: 'border-box',\n width: box.borderBox.width,\n height: box.borderBox.height,\n transition: 'none',\n zIndex: isDropAnimating ? zIndexOptions.dropAnimating : zIndexOptions.dragging,\n transform: getTranslate(change),\n pointerEvents: 'none'\n };\n return style;\n });\n _this.getNotDraggingStyle = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__[\"a\" /* default */])(function (current, shouldAnimateDisplacement) {\n var style = {\n transform: getTranslate(current),\n transition: shouldAnimateDisplacement ? null : 'none'\n };\n return style;\n });\n _this.getProvided = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__[\"a\" /* default */])(function (change, isDragging, isDropAnimating, shouldAnimateDisplacement, dimension, dragHandleProps) {\n var useDraggingStyle = isDragging || isDropAnimating;\n\n var draggableStyle = function () {\n if (!useDraggingStyle) {\n return _this.getNotDraggingStyle(change, shouldAnimateDisplacement);\n }\n\n !dimension ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'draggable dimension required for dragging') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n return _this.getDraggingStyle(change, dimension, isDropAnimating);\n }();\n\n var provided = {\n innerRef: _this.setRef,\n draggableProps: {\n 'data-react-beautiful-dnd-draggable': _this.styleContext,\n style: draggableStyle\n },\n dragHandleProps: dragHandleProps\n };\n return provided;\n });\n _this.getSnapshot = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__[\"a\" /* default */])(function (isDragging, isDropAnimating, draggingOver) {\n return {\n isDragging: isDragging || isDropAnimating,\n isDropAnimating: isDropAnimating,\n draggingOver: draggingOver\n };\n });\n\n _this.renderChildren = function (change, dragHandleProps) {\n var _this$props2 = _this.props,\n isDragging = _this$props2.isDragging,\n isDropAnimating = _this$props2.isDropAnimating,\n dimension = _this$props2.dimension,\n draggingOver = _this$props2.draggingOver,\n shouldAnimateDisplacement = _this$props2.shouldAnimateDisplacement,\n children = _this$props2.children;\n var child = children(_this.getProvided(change, isDragging, isDropAnimating, shouldAnimateDisplacement, dimension, dragHandleProps), _this.getSnapshot(isDragging, isDropAnimating, draggingOver));\n var isDraggingOrDropping = isDragging || isDropAnimating;\n\n var placeholder = function () {\n if (!isDraggingOrDropping) {\n return null;\n }\n\n !dimension ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false, 'Draggable: Dimension is required for dragging') : Object(__WEBPACK_IMPORTED_MODULE_1_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n return __WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement(Placeholder, {\n placeholder: dimension.placeholder\n });\n }();\n\n return __WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9_react__[\"Fragment\"], null, child, placeholder);\n };\n\n var callbacks = {\n onLift: _this.onLift,\n onMove: function onMove(clientSelection) {\n return props.move({\n client: clientSelection,\n shouldAnimate: false\n });\n },\n onDrop: function onDrop() {\n return props.drop({\n reason: 'DROP'\n });\n },\n onCancel: function onCancel() {\n return props.drop({\n reason: 'CANCEL'\n });\n },\n onMoveUp: props.moveUp,\n onMoveDown: props.moveDown,\n onMoveRight: props.moveRight,\n onMoveLeft: props.moveLeft,\n onWindowScroll: function onWindowScroll() {\n return props.moveByWindowScroll({\n scroll: getWindowScroll()\n });\n }\n };\n _this.callbacks = callbacks;\n _this.styleContext = context[styleContextKey];\n return _this;\n }\n\n var _proto = Draggable.prototype;\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.ref = null;\n };\n\n _proto.render = function render() {\n var _this2 = this;\n\n var _this$props3 = this.props,\n draggableId = _this$props3.draggableId,\n index = _this$props3.index,\n offset = _this$props3.offset,\n isDragging = _this$props3.isDragging,\n isDropAnimating = _this$props3.isDropAnimating,\n isDragDisabled = _this$props3.isDragDisabled,\n shouldAnimateDragMovement = _this$props3.shouldAnimateDragMovement,\n disableInteractiveElementBlocking = _this$props3.disableInteractiveElementBlocking;\n var droppableId = this.context[droppableIdKey];\n var type = this.context[droppableTypeKey];\n var speed = getSpeed$1(isDragging, shouldAnimateDragMovement, isDropAnimating);\n return __WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement(DraggableDimensionPublisher, {\n key: draggableId,\n draggableId: draggableId,\n droppableId: droppableId,\n type: type,\n index: index,\n getDraggableRef: this.getDraggableRef\n }, __WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement(Moveable, {\n speed: speed,\n destination: offset,\n onMoveEnd: this.onMoveEnd\n }, function (change) {\n return __WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement(DragHandle, {\n draggableId: draggableId,\n isDragging: isDragging,\n isDropAnimating: isDropAnimating,\n isEnabled: !isDragDisabled,\n callbacks: _this2.callbacks,\n getDraggableRef: _this2.getDraggableRef,\n canDragInteractiveElements: disableInteractiveElementBlocking\n }, function (dragHandleProps) {\n return _this2.renderChildren(change, dragHandleProps);\n });\n }));\n };\n\n return Draggable;\n}(__WEBPACK_IMPORTED_MODULE_9_react__[\"Component\"]);\n\nDraggable.contextTypes = (_Draggable$contextTyp = {}, _Draggable$contextTyp[droppableIdKey] = __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.string.isRequired, _Draggable$contextTyp[droppableTypeKey] = __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.string.isRequired, _Draggable$contextTyp[styleContextKey] = __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.string.isRequired, _Draggable$contextTyp);\n\nvar defaultMapProps = {\n isDropAnimating: false,\n isDragging: false,\n offset: origin,\n shouldAnimateDragMovement: false,\n shouldAnimateDisplacement: true,\n dimension: null,\n draggingOver: null\n};\nvar makeMapStateToProps$1 = function makeMapStateToProps() {\n var memoizedOffset = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__[\"a\" /* default */])(function (x, y) {\n return {\n x: x,\n y: y\n };\n });\n var getNotDraggingProps = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__[\"a\" /* default */])(function (offset, shouldAnimateDisplacement) {\n return {\n isDropAnimating: false,\n isDragging: false,\n offset: offset,\n shouldAnimateDisplacement: shouldAnimateDisplacement,\n shouldAnimateDragMovement: false,\n dimension: null,\n draggingOver: null\n };\n });\n var getDraggingProps = Object(__WEBPACK_IMPORTED_MODULE_4_memoize_one__[\"a\" /* default */])(function (offset, shouldAnimateDragMovement, dimension, draggingOver) {\n return {\n isDragging: true,\n isDropAnimating: false,\n shouldAnimateDisplacement: false,\n offset: offset,\n shouldAnimateDragMovement: shouldAnimateDragMovement,\n dimension: dimension,\n draggingOver: draggingOver\n };\n });\n\n var getOutOfTheWayMovement = function getOutOfTheWayMovement(id, movement) {\n var map = getDisplacementMap(movement.displaced);\n var displacement = map[id];\n\n if (!displacement) {\n return null;\n }\n\n if (!displacement.isVisible) {\n return null;\n }\n\n var amount = movement.isBeyondStartPosition ? negate(movement.amount) : movement.amount;\n return getNotDraggingProps(memoizedOffset(amount.x, amount.y), displacement.shouldAnimate);\n };\n\n var draggingSelector = function draggingSelector(state, ownProps) {\n if (state.isDragging) {\n if (state.critical.draggable.id !== ownProps.draggableId) {\n return null;\n }\n\n var offset = state.current.client.offset;\n var dimension = state.dimensions.draggables[ownProps.draggableId];\n var shouldAnimateDragMovement = state.shouldAnimate;\n var draggingOver = state.impact.destination ? state.impact.destination.droppableId : null;\n return getDraggingProps(memoizedOffset(offset.x, offset.y), shouldAnimateDragMovement, dimension, draggingOver);\n }\n\n if (state.phase === 'DROP_ANIMATING') {\n var pending = state.pending;\n\n if (pending.result.draggableId !== ownProps.draggableId) {\n return null;\n }\n\n var _draggingOver = pending.result.destination ? pending.result.destination.droppableId : null;\n\n return {\n isDragging: false,\n isDropAnimating: true,\n offset: pending.newHomeOffset,\n dimension: state.dimensions.draggables[ownProps.draggableId],\n draggingOver: _draggingOver,\n shouldAnimateDragMovement: false,\n shouldAnimateDisplacement: false\n };\n }\n\n return null;\n };\n\n var movingOutOfTheWaySelector = function movingOutOfTheWaySelector(state, ownProps) {\n if (state.isDragging) {\n if (state.critical.draggable.id === ownProps.draggableId) {\n return null;\n }\n\n return getOutOfTheWayMovement(ownProps.draggableId, state.impact.movement);\n }\n\n if (state.phase === 'DROP_ANIMATING') {\n if (state.pending.result.draggableId === ownProps.draggableId) {\n return null;\n }\n\n return getOutOfTheWayMovement(ownProps.draggableId, state.pending.impact.movement);\n }\n\n return null;\n };\n\n var selector = function selector(state, ownProps) {\n var dragging = draggingSelector(state, ownProps);\n\n if (dragging) {\n return dragging;\n }\n\n var movingOutOfTheWay = movingOutOfTheWaySelector(state, ownProps);\n\n if (movingOutOfTheWay) {\n return movingOutOfTheWay;\n }\n\n return defaultMapProps;\n };\n\n return selector;\n};\nvar mapDispatchToProps = {\n lift: lift,\n move: move,\n moveUp: moveUp,\n moveDown: moveDown,\n moveLeft: moveLeft,\n moveRight: moveRight,\n moveByWindowScroll: moveByWindowScroll,\n drop: drop,\n dropAnimationFinished: dropAnimationFinished\n};\nvar ConnectedDraggable = Object(__WEBPACK_IMPORTED_MODULE_11_react_redux__[\"a\" /* connect */])(makeMapStateToProps$1, mapDispatchToProps, null, {\n storeKey: storeKey,\n pure: true,\n areStatePropsEqual: isStrictEqual\n})(Draggable);\nConnectedDraggable.defaultProps = {\n isDragDisabled: false,\n disableInteractiveElementBlocking: false\n};\n\n\n\n/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(5)))\n\n/***/ }),\n/* 29 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar store = __webpack_require__(126)('wks');\nvar uid = __webpack_require__(88);\nvar Symbol = __webpack_require__(39).Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n\n\n/***/ }),\n/* 30 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(8);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);\n\nfunction omit(obj, fields) {\n var shallowCopy = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, obj);\n for (var i = 0; i < fields.length; i++) {\n var key = fields[i];\n delete shallowCopy[key];\n }\n return shallowCopy;\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (omit);\n\n/***/ }),\n/* 31 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = style;\n\nvar _camelizeStyle = __webpack_require__(275);\n\nvar _camelizeStyle2 = _interopRequireDefault(_camelizeStyle);\n\nvar _hyphenateStyle = __webpack_require__(880);\n\nvar _hyphenateStyle2 = _interopRequireDefault(_hyphenateStyle);\n\nvar _getComputedStyle2 = __webpack_require__(882);\n\nvar _getComputedStyle3 = _interopRequireDefault(_getComputedStyle2);\n\nvar _removeStyle = __webpack_require__(883);\n\nvar _removeStyle2 = _interopRequireDefault(_removeStyle);\n\nvar _properties = __webpack_require__(27);\n\nvar _isTransform = __webpack_require__(884);\n\nvar _isTransform2 = _interopRequireDefault(_isTransform);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction style(node, property, value) {\n var css = '';\n var transforms = '';\n var props = property;\n\n if (typeof property === 'string') {\n if (value === undefined) {\n return node.style[(0, _camelizeStyle2.default)(property)] || (0, _getComputedStyle3.default)(node).getPropertyValue((0, _hyphenateStyle2.default)(property));\n } else {\n (props = {})[property] = value;\n }\n }\n\n Object.keys(props).forEach(function (key) {\n var value = props[key];\n if (!value && value !== 0) {\n (0, _removeStyle2.default)(node, (0, _hyphenateStyle2.default)(key));\n } else if ((0, _isTransform2.default)(key)) {\n transforms += key + '(' + value + ') ';\n } else {\n css += (0, _hyphenateStyle2.default)(key) + ': ' + value + ';';\n }\n });\n\n if (transforms) {\n css += _properties.transform + ': ' + transforms + ';';\n }\n\n node.style.cssText += ';' + css;\n}\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 32 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nexports.getTodayTime = getTodayTime;\nexports.getTitleString = getTitleString;\nexports.getTodayTimeStr = getTodayTimeStr;\nexports.getMonthName = getMonthName;\nexports.syncTime = syncTime;\nexports.getTimeConfig = getTimeConfig;\nexports.isTimeValidByConfig = isTimeValidByConfig;\nexports.isTimeValid = isTimeValid;\nexports.isAllowedDate = isAllowedDate;\nexports.formatDate = formatDate;\n\nvar _moment = __webpack_require__(4);\n\nvar _moment2 = _interopRequireDefault(_moment);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nvar defaultDisabledTime = {\n disabledHours: function disabledHours() {\n return [];\n },\n disabledMinutes: function disabledMinutes() {\n return [];\n },\n disabledSeconds: function disabledSeconds() {\n return [];\n }\n};\n\nfunction getTodayTime(value) {\n var today = (0, _moment2[\"default\"])();\n if (typeof value !== 'undefined') {\n today.locale(value.locale()).utcOffset(value.utcOffset());\n }\n return today;\n}\n\nfunction getTitleString(value) {\n return value.format('LL');\n}\n\nfunction getTodayTimeStr(value) {\n var today = getTodayTime(value);\n return getTitleString(today);\n}\n\nfunction getMonthName(month) {\n var locale = month.locale();\n var localeData = month.localeData();\n return localeData[locale === 'zh-cn' ? 'months' : 'monthsShort'](month);\n}\n\nfunction syncTime(from, to) {\n if (!_moment2[\"default\"].isMoment(from) || !_moment2[\"default\"].isMoment(to)) return;\n to.hour(from.hour());\n to.minute(from.minute());\n to.second(from.second());\n}\n\nfunction getTimeConfig(value, disabledTime) {\n var disabledTimeConfig = disabledTime ? disabledTime(value) : {};\n disabledTimeConfig = _extends({}, defaultDisabledTime, disabledTimeConfig);\n return disabledTimeConfig;\n}\n\nfunction isTimeValidByConfig(value, disabledTimeConfig) {\n var invalidTime = false;\n if (value) {\n var hour = value.hour();\n var minutes = value.minute();\n var seconds = value.second();\n var disabledHours = disabledTimeConfig.disabledHours();\n if (disabledHours.indexOf(hour) === -1) {\n var disabledMinutes = disabledTimeConfig.disabledMinutes(hour);\n if (disabledMinutes.indexOf(minutes) === -1) {\n var disabledSeconds = disabledTimeConfig.disabledSeconds(hour, minutes);\n invalidTime = disabledSeconds.indexOf(seconds) !== -1;\n } else {\n invalidTime = true;\n }\n } else {\n invalidTime = true;\n }\n }\n return !invalidTime;\n}\n\nfunction isTimeValid(value, disabledTime) {\n var disabledTimeConfig = getTimeConfig(value, disabledTime);\n return isTimeValidByConfig(value, disabledTimeConfig);\n}\n\nfunction isAllowedDate(value, disabledDate, disabledTime) {\n if (disabledDate) {\n if (disabledDate(value)) {\n return false;\n }\n }\n if (disabledTime) {\n if (!isTimeValid(value, disabledTime)) {\n return false;\n }\n }\n return true;\n}\n\nfunction formatDate(value, format) {\n if (!value) {\n return '';\n }\n\n if (Array.isArray(format)) {\n format = format[0];\n }\n\n return value.format(format);\n}\n\n/***/ }),\n/* 33 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined;\n\nvar _all2 = __webpack_require__(1354);\n\nvar _all3 = _interopRequireDefault(_all2);\n\nvar _componentOrElement2 = __webpack_require__(1355);\n\nvar _componentOrElement3 = _interopRequireDefault(_componentOrElement2);\n\nvar _deprecated2 = __webpack_require__(1356);\n\nvar _deprecated3 = _interopRequireDefault(_deprecated2);\n\nvar _elementType2 = __webpack_require__(1357);\n\nvar _elementType3 = _interopRequireDefault(_elementType2);\n\nvar _isRequiredForA11y2 = __webpack_require__(1358);\n\nvar _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2);\n\nvar _splitComponent2 = __webpack_require__(1359);\n\nvar _splitComponent3 = _interopRequireDefault(_splitComponent2);\n\nvar _createChainedFunction2 = __webpack_require__(1360);\n\nvar _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2);\n\nvar _keyCode = __webpack_require__(1361);\n\nvar _keyCode2 = _interopRequireDefault(_keyCode);\n\nvar _contains2 = __webpack_require__(1362);\n\nvar _contains3 = _interopRequireDefault(_contains2);\n\nvar _addEventListener2 = __webpack_require__(485);\n\nvar _addEventListener3 = _interopRequireDefault(_addEventListener2);\n\nvar _cssAnimation2 = __webpack_require__(1363);\n\nvar _cssAnimation3 = _interopRequireDefault(_cssAnimation2);\n\nvar _toArray2 = __webpack_require__(1365);\n\nvar _toArray3 = _interopRequireDefault(_toArray2);\n\nvar _Align2 = __webpack_require__(1366);\n\nvar _Align3 = _interopRequireDefault(_Align2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.all = _all3.default;\nexports.componentOrElement = _componentOrElement3.default;\nexports.deprecated = _deprecated3.default;\nexports.elementType = _elementType3.default;\nexports.isRequiredForA11y = _isRequiredForA11y3.default;\nexports.splitComponent = _splitComponent3.default;\nexports.createChainedFunction = _createChainedFunction3.default;\nexports.KeyCode = _keyCode2.default;\nexports.contains = _contains3.default;\nexports.addEventListener = _addEventListener3.default;\nexports.cssAnimation = _cssAnimation3.default;\nexports.toArray = _toArray3.default;\n//export getContainerRenderMixin from './getContainerRenderMixin';\n\nexports.Align = _Align3.default;\n\n/***/ }),\n/* 34 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (immutable) */ __webpack_exports__[\"h\"] = findPopupContainer;\n/* harmony export (immutable) */ __webpack_exports__[\"r\"] = toTitle;\n/* unused harmony export toArray */\n/* harmony export (immutable) */ __webpack_exports__[\"g\"] = createRef;\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"b\", function() { return UNSELECTABLE_STYLE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return UNSELECTABLE_ATTRIBUTE; });\n/* harmony export (immutable) */ __webpack_exports__[\"i\"] = flatToHierarchy;\n/* unused harmony export resetAriaId */\n/* harmony export (immutable) */ __webpack_exports__[\"l\"] = generateAriaId;\n/* harmony export (immutable) */ __webpack_exports__[\"o\"] = isLabelInValue;\n/* harmony export (immutable) */ __webpack_exports__[\"q\"] = parseSimpleTreeData;\n/* harmony export (immutable) */ __webpack_exports__[\"p\"] = isPosRelated;\n/* harmony export (immutable) */ __webpack_exports__[\"c\"] = cleanEntity;\n/* harmony export (immutable) */ __webpack_exports__[\"m\"] = getFilterTree;\n/* harmony export (immutable) */ __webpack_exports__[\"j\"] = formatInternalValue;\n/* unused harmony export getLabel */\n/* harmony export (immutable) */ __webpack_exports__[\"k\"] = formatSelectorValue;\n/* harmony export (immutable) */ __webpack_exports__[\"e\"] = convertDataToTree;\n/* harmony export (immutable) */ __webpack_exports__[\"f\"] = convertTreeToEntities;\n/* harmony export (immutable) */ __webpack_exports__[\"n\"] = getHalfCheckedKeys;\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"d\", function() { return conductCheck; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_warning__ = __webpack_require__(1667);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_warning___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_warning__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rc_tree_es_util__ = __webpack_require__(208);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rc_util_es_Children_toArray__ = __webpack_require__(119);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_util_es_Dom_class__ = __webpack_require__(1672);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__strategies__ = __webpack_require__(209);\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\n\n\n\n\n\nvar warnDeprecatedLabel = false; // =================== DOM =====================\n\nfunction findPopupContainer(node, prefixClass) {\n var current = node;\n\n while (current) {\n if (Object(__WEBPACK_IMPORTED_MODULE_4_rc_util_es_Dom_class__[\"a\" /* hasClass */])(current, prefixClass)) {\n return current;\n }\n\n current = current.parentNode;\n }\n\n return null;\n} // =================== MISC ====================\n\nfunction toTitle(title) {\n if (typeof title === 'string') {\n return title;\n }\n\n return null;\n}\nfunction toArray(data) {\n if (data === undefined || data === null) return [];\n return Array.isArray(data) ? data : [data];\n} // Shallow copy of React 16.3 createRef api\n\nfunction createRef() {\n var func = function setRef(node) {\n func.current = node;\n };\n\n return func;\n} // =============== Legacy ===============\n\nvar UNSELECTABLE_STYLE = {\n userSelect: 'none',\n WebkitUserSelect: 'none'\n};\nvar UNSELECTABLE_ATTRIBUTE = {\n unselectable: 'unselectable'\n};\n/**\n * Convert position list to hierarchy structure.\n * This is little hack since use '-' to split the position.\n */\n\nfunction flatToHierarchy(positionList) {\n if (!positionList.length) {\n return [];\n }\n\n var entrances = {}; // Prepare the position map\n\n var posMap = {};\n var parsedList = positionList.slice().map(function (entity) {\n var clone = _objectSpread({}, entity, {\n fields: entity.pos.split('-')\n });\n\n delete clone.children;\n return clone;\n });\n parsedList.forEach(function (entity) {\n posMap[entity.pos] = entity;\n });\n parsedList.sort(function (a, b) {\n return a.fields.length - b.fields.length;\n }); // Create the hierarchy\n\n parsedList.forEach(function (entity) {\n var parentPos = entity.fields.slice(0, -1).join('-');\n var parentEntity = posMap[parentPos];\n\n if (!parentEntity) {\n entrances[entity.pos] = entity;\n } else {\n parentEntity.children = parentEntity.children || [];\n parentEntity.children.push(entity);\n } // Some time position list provide `key`, we don't need it\n\n\n delete entity.key;\n delete entity.fields;\n });\n return Object.keys(entrances).map(function (key) {\n return entrances[key];\n });\n} // =============== Accessibility ===============\n\nvar ariaId = 0;\nfunction resetAriaId() {\n ariaId = 0;\n}\nfunction generateAriaId(prefix) {\n ariaId += 1;\n return \"\".concat(prefix, \"_\").concat(ariaId);\n}\nfunction isLabelInValue(props) {\n var treeCheckable = props.treeCheckable,\n treeCheckStrictly = props.treeCheckStrictly,\n labelInValue = props.labelInValue;\n\n if (treeCheckable && treeCheckStrictly) {\n return true;\n }\n\n return labelInValue || false;\n} // =================== Tree ====================\n\nfunction parseSimpleTreeData(treeData, _ref) {\n var id = _ref.id,\n pId = _ref.pId,\n rootPId = _ref.rootPId;\n var keyNodes = {};\n var rootNodeList = []; // Fill in the map\n\n var nodeList = treeData.map(function (node) {\n var clone = _objectSpread({}, node);\n\n var key = clone[id];\n keyNodes[key] = clone;\n clone.key = clone.key || key;\n return clone;\n }); // Connect tree\n\n nodeList.forEach(function (node) {\n var parentKey = node[pId];\n var parent = keyNodes[parentKey]; // Fill parent\n\n if (parent) {\n parent.children = parent.children || [];\n parent.children.push(node);\n } // Fill root tree node\n\n\n if (parentKey === rootPId || !parent && rootPId === null) {\n rootNodeList.push(node);\n }\n });\n return rootNodeList;\n}\n/**\n * Detect if position has relation.\n * e.g. 1-2 related with 1-2-3\n * e.g. 1-3-2 related with 1\n * e.g. 1-2 not related with 1-21\n */\n\nfunction isPosRelated(pos1, pos2) {\n var fields1 = pos1.split('-');\n var fields2 = pos2.split('-');\n var minLen = Math.min(fields1.length, fields2.length);\n\n for (var i = 0; i < minLen; i += 1) {\n if (fields1[i] !== fields2[i]) {\n return false;\n }\n }\n\n return true;\n}\n/**\n * This function is only used on treeNode check (none treeCheckStrictly but has searchInput).\n * We convert entity to { node, pos, children } format.\n * This is legacy bug but we still need to do with it.\n * @param entity\n */\n\nfunction cleanEntity(_ref2) {\n var node = _ref2.node,\n pos = _ref2.pos,\n children = _ref2.children;\n var instance = {\n node: node,\n pos: pos\n };\n\n if (children) {\n instance.children = children.map(cleanEntity);\n }\n\n return instance;\n}\n/**\n * Get a filtered TreeNode list by provided treeNodes.\n * [Legacy] Since `Tree` use `key` as map but `key` will changed by React,\n * we have to convert `treeNodes > data > treeNodes` to keep the key.\n * Such performance hungry!\n *\n * We pass `Component` as argument is to fix eslint issue.\n */\n\nfunction getFilterTree(treeNodes, searchValue, filterFunc, valueEntities, Component) {\n if (!searchValue) {\n return null;\n }\n\n function mapFilteredNodeToData(node) {\n if (!node) return null;\n var match = false;\n\n if (filterFunc(searchValue, node)) {\n match = true;\n }\n\n var children = Object(__WEBPACK_IMPORTED_MODULE_3_rc_util_es_Children_toArray__[\"a\" /* default */])(node.props.children).map(mapFilteredNodeToData).filter(function (n) {\n return n;\n });\n\n if (children.length || match) {\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Component, _extends({}, node.props, {\n key: valueEntities[node.props.value].key\n }), children);\n }\n\n return null;\n }\n\n return treeNodes.map(mapFilteredNodeToData).filter(function (node) {\n return node;\n });\n} // =================== Value ===================\n\n/**\n * Convert value to array format to make logic simplify.\n */\n\nfunction formatInternalValue(value, props) {\n var valueList = toArray(value); // Parse label in value\n\n if (isLabelInValue(props)) {\n return valueList.map(function (val) {\n if (typeof val !== 'object' || !val) {\n return {\n value: '',\n label: ''\n };\n }\n\n return val;\n });\n }\n\n return valueList.map(function (val) {\n return {\n value: val\n };\n });\n}\nfunction getLabel(wrappedValue, entity, treeNodeLabelProp) {\n if (wrappedValue.label) {\n return wrappedValue.label;\n }\n\n if (entity && entity.node.props) {\n return entity.node.props[treeNodeLabelProp];\n } // Since value without entity will be in missValueList.\n // This code will never reached, but we still need this in case.\n\n\n return wrappedValue.value;\n}\n/**\n * Convert internal state `valueList` to user needed value list.\n * This will return an array list. You need check if is not multiple when return.\n *\n * `allCheckedNodes` is used for `treeCheckStrictly`\n */\n\nfunction formatSelectorValue(valueList, props, valueEntities) {\n var treeNodeLabelProp = props.treeNodeLabelProp,\n treeCheckable = props.treeCheckable,\n treeCheckStrictly = props.treeCheckStrictly,\n showCheckedStrategy = props.showCheckedStrategy; // Will hide some value if `showCheckedStrategy` is set\n\n if (treeCheckable && !treeCheckStrictly) {\n var values = {};\n valueList.forEach(function (wrappedValue) {\n values[wrappedValue.value] = wrappedValue;\n });\n var hierarchyList = flatToHierarchy(valueList.map(function (_ref3) {\n var value = _ref3.value;\n return valueEntities[value];\n }));\n\n if (showCheckedStrategy === __WEBPACK_IMPORTED_MODULE_5__strategies__[\"c\" /* SHOW_PARENT */]) {\n // Only get the parent checked value\n return hierarchyList.map(function (_ref4) {\n var value = _ref4.node.props.value;\n return {\n label: getLabel(values[value], valueEntities[value], treeNodeLabelProp),\n value: value\n };\n });\n }\n\n if (showCheckedStrategy === __WEBPACK_IMPORTED_MODULE_5__strategies__[\"b\" /* SHOW_CHILD */]) {\n // Only get the children checked value\n var targetValueList = []; // Find the leaf children\n\n var traverse = function traverse(_ref5) {\n var value = _ref5.node.props.value,\n children = _ref5.children;\n\n if (!children || children.length === 0) {\n targetValueList.push({\n label: getLabel(values[value], valueEntities[value], treeNodeLabelProp),\n value: value\n });\n return;\n }\n\n children.forEach(function (entity) {\n traverse(entity);\n });\n };\n\n hierarchyList.forEach(function (entity) {\n traverse(entity);\n });\n return targetValueList;\n }\n }\n\n return valueList.map(function (wrappedValue) {\n return {\n label: getLabel(wrappedValue, valueEntities[wrappedValue.value], treeNodeLabelProp),\n value: wrappedValue.value\n };\n });\n}\n/**\n * Use `rc-tree` convertDataToTree to convert treeData to TreeNodes.\n * This will change the label to title value\n */\n\nfunction processProps(props) {\n var title = props.title,\n label = props.label,\n key = props.key,\n value = props.value;\n\n var cloneProps = _objectSpread({}, props); // Warning user not to use deprecated label prop.\n\n\n if (label && !title) {\n if (!warnDeprecatedLabel) {\n __WEBPACK_IMPORTED_MODULE_1_warning___default()(false, \"'label' in treeData is deprecated. Please use 'title' instead.\");\n warnDeprecatedLabel = true;\n }\n\n cloneProps.title = label;\n }\n\n if (!key) {\n cloneProps.key = value;\n }\n\n return cloneProps;\n}\n\nfunction convertDataToTree(treeData) {\n return Object(__WEBPACK_IMPORTED_MODULE_2_rc_tree_es_util__[\"g\" /* convertDataToTree */])(treeData, {\n processProps: processProps\n });\n}\n/**\n * Use `rc-tree` convertTreeToEntities for entities calculation.\n * We have additional entities of `valueEntities`\n */\n\nfunction initWrapper(wrapper) {\n return _objectSpread({}, wrapper, {\n valueEntities: {}\n });\n}\n\nfunction processEntity(entity, wrapper) {\n var value = entity.node.props.value;\n entity.value = value; // This should be empty, or will get error message.\n\n var currentEntity = wrapper.valueEntities[value];\n\n if (currentEntity) {\n __WEBPACK_IMPORTED_MODULE_1_warning___default()(false, \"Conflict! value of node '\".concat(entity.key, \"' (\").concat(value, \") has already used by node '\").concat(currentEntity.key, \"'.\"));\n }\n\n wrapper.valueEntities[value] = entity;\n}\n\nfunction convertTreeToEntities(treeNodes) {\n return Object(__WEBPACK_IMPORTED_MODULE_2_rc_tree_es_util__[\"h\" /* convertTreeToEntities */])(treeNodes, {\n initWrapper: initWrapper,\n processEntity: processEntity\n });\n}\n/**\n * https://github.com/ant-design/ant-design/issues/13328\n * We need calculate the half check key when searchValue is set.\n */\n// TODO: This logic may better move to rc-tree\n\nfunction getHalfCheckedKeys(valueList, valueEntities) {\n var values = {}; // Fill checked keys\n\n valueList.forEach(function (_ref6) {\n var value = _ref6.value;\n values[value] = false;\n }); // Fill half checked keys\n\n valueList.forEach(function (_ref7) {\n var value = _ref7.value;\n var current = valueEntities[value];\n\n while (current && current.parent) {\n var parentValue = current.parent.value;\n if (parentValue in values) break;\n values[parentValue] = true;\n current = current.parent;\n }\n }); // Get half keys\n\n return Object.keys(values).filter(function (value) {\n return values[value];\n }).map(function (value) {\n return valueEntities[value].key;\n });\n}\nvar conductCheck = __WEBPACK_IMPORTED_MODULE_2_rc_tree_es_util__[\"e\" /* conductCheck */];\n\n/***/ }),\n/* 35 */\n/***/ (function(module, exports) {\n\nvar g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || Function(\"return this\")() || (1,eval)(\"this\");\n} catch(e) {\n\t// This works if the window reference is available\n\tif(typeof window === \"object\")\n\t\tg = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n\n\n/***/ }),\n/* 36 */\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(global) {var now = __webpack_require__(836)\n , root = typeof window === 'undefined' ? global : window\n , vendors = ['moz', 'webkit']\n , suffix = 'AnimationFrame'\n , raf = root['request' + suffix]\n , caf = root['cancel' + suffix] || root['cancelRequest' + suffix]\n\nfor(var i = 0; !raf && i < vendors.length; i++) {\n raf = root[vendors[i] + 'Request' + suffix]\n caf = root[vendors[i] + 'Cancel' + suffix]\n || root[vendors[i] + 'CancelRequest' + suffix]\n}\n\n// Some versions of FF have rAF but not cAF\nif(!raf || !caf) {\n var last = 0\n , id = 0\n , queue = []\n , frameDuration = 1000 / 60\n\n raf = function(callback) {\n if(queue.length === 0) {\n var _now = now()\n , next = Math.max(0, frameDuration - (_now - last))\n last = next + _now\n setTimeout(function() {\n var cp = queue.slice(0)\n // Clear queue here to prevent\n // callbacks from appending listeners\n // to the current frame's queue\n queue.length = 0\n for(var i = 0; i < cp.length; i++) {\n if(!cp[i].cancelled) {\n try{\n cp[i].callback(last)\n } catch(e) {\n setTimeout(function() { throw e }, 0)\n }\n }\n }\n }, Math.round(next))\n }\n queue.push({\n handle: ++id,\n callback: callback,\n cancelled: false\n })\n return id\n }\n\n caf = function(handle) {\n for(var i = 0; i < queue.length; i++) {\n if(queue[i].handle === handle) {\n queue[i].cancelled = true\n }\n }\n }\n}\n\nmodule.exports = function(fn) {\n // Wrap in a new function to prevent\n // `cancel` potentially being assigned\n // to the native rAF function\n return raf.call(root, fn)\n}\nmodule.exports.cancel = function() {\n caf.apply(root, arguments)\n}\nmodule.exports.polyfill = function(object) {\n if (!object) {\n object = root;\n }\n object.requestAnimationFrame = raf\n object.cancelAnimationFrame = caf\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35)))\n\n/***/ }),\n/* 37 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!\n Copyright (c) 2017 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg) && arg.length) {\n\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\tif (inner) {\n\t\t\t\t\tclasses.push(inner);\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (true) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\t!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {\n\t\t\treturn classNames;\n\t\t}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n\n\n/***/ }),\n/* 38 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar global = __webpack_require__(39);\nvar core = __webpack_require__(24);\nvar ctx = __webpack_require__(120);\nvar hide = __webpack_require__(50);\nvar has = __webpack_require__(47);\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var IS_WRAP = type & $export.W;\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE];\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];\n var key, own, out;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n if (own && has(exports, key)) continue;\n // export native or passed\n out = own ? target[key] : source[key];\n // prevent global pollution for namespaces\n exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]\n // bind timers to global for call from export context\n : IS_BIND && own ? ctx(out, global)\n // wrap global constructors for prevent change them in library\n : IS_WRAP && target[key] == out ? (function (C) {\n var F = function (a, b, c) {\n if (this instanceof C) {\n switch (arguments.length) {\n case 0: return new C();\n case 1: return new C(a);\n case 2: return new C(a, b);\n } return new C(a, b, c);\n } return C.apply(this, arguments);\n };\n F[PROTOTYPE] = C[PROTOTYPE];\n return F;\n // make static versions for prototype methods\n })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%\n if (IS_PROTO) {\n (exports.virtual || (exports.virtual = {}))[key] = out;\n // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%\n if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);\n }\n }\n};\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n\n\n/***/ }),\n/* 39 */\n/***/ (function(module, exports) {\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n\n\n/***/ }),\n/* 40 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar anObject = __webpack_require__(51);\nvar IE8_DOM_DEFINE = __webpack_require__(216);\nvar toPrimitive = __webpack_require__(121);\nvar dP = Object.defineProperty;\n\nexports.f = __webpack_require__(41) ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n\n\n/***/ }),\n/* 41 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// Thank's IE8 for his funny defineProperty\nmodule.exports = !__webpack_require__(53)(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n\n\n/***/ }),\n/* 42 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports[\"default\"] = function (componentOrElement) {\n return (0, _ownerDocument2[\"default\"])(_reactDom2[\"default\"].findDOMNode(componentOrElement));\n};\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _ownerDocument = __webpack_require__(22);\n\nvar _ownerDocument2 = _interopRequireDefault(_ownerDocument);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 43 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/**\n * @ignore\n * some key-codes definition and utils from closure-library\n * @author yiminghe@gmail.com\n */\nvar KeyCode = {\n /**\n * MAC_ENTER\n */\n MAC_ENTER: 3,\n\n /**\n * BACKSPACE\n */\n BACKSPACE: 8,\n\n /**\n * TAB\n */\n TAB: 9,\n\n /**\n * NUMLOCK on FF/Safari Mac\n */\n NUM_CENTER: 12,\n\n /**\n * ENTER\n */\n ENTER: 13,\n\n /**\n * SHIFT\n */\n SHIFT: 16,\n\n /**\n * CTRL\n */\n CTRL: 17,\n\n /**\n * ALT\n */\n ALT: 18,\n\n /**\n * PAUSE\n */\n PAUSE: 19,\n\n /**\n * CAPS_LOCK\n */\n CAPS_LOCK: 20,\n\n /**\n * ESC\n */\n ESC: 27,\n\n /**\n * SPACE\n */\n SPACE: 32,\n\n /**\n * PAGE_UP\n */\n PAGE_UP: 33,\n\n /**\n * PAGE_DOWN\n */\n PAGE_DOWN: 34,\n\n /**\n * END\n */\n END: 35,\n\n /**\n * HOME\n */\n HOME: 36,\n\n /**\n * LEFT\n */\n LEFT: 37,\n\n /**\n * UP\n */\n UP: 38,\n\n /**\n * RIGHT\n */\n RIGHT: 39,\n\n /**\n * DOWN\n */\n DOWN: 40,\n\n /**\n * PRINT_SCREEN\n */\n PRINT_SCREEN: 44,\n\n /**\n * INSERT\n */\n INSERT: 45,\n\n /**\n * DELETE\n */\n DELETE: 46,\n\n /**\n * ZERO\n */\n ZERO: 48,\n\n /**\n * ONE\n */\n ONE: 49,\n\n /**\n * TWO\n */\n TWO: 50,\n\n /**\n * THREE\n */\n THREE: 51,\n\n /**\n * FOUR\n */\n FOUR: 52,\n\n /**\n * FIVE\n */\n FIVE: 53,\n\n /**\n * SIX\n */\n SIX: 54,\n\n /**\n * SEVEN\n */\n SEVEN: 55,\n\n /**\n * EIGHT\n */\n EIGHT: 56,\n\n /**\n * NINE\n */\n NINE: 57,\n\n /**\n * QUESTION_MARK\n */\n QUESTION_MARK: 63,\n\n /**\n * A\n */\n A: 65,\n\n /**\n * B\n */\n B: 66,\n\n /**\n * C\n */\n C: 67,\n\n /**\n * D\n */\n D: 68,\n\n /**\n * E\n */\n E: 69,\n\n /**\n * F\n */\n F: 70,\n\n /**\n * G\n */\n G: 71,\n\n /**\n * H\n */\n H: 72,\n\n /**\n * I\n */\n I: 73,\n\n /**\n * J\n */\n J: 74,\n\n /**\n * K\n */\n K: 75,\n\n /**\n * L\n */\n L: 76,\n\n /**\n * M\n */\n M: 77,\n\n /**\n * N\n */\n N: 78,\n\n /**\n * O\n */\n O: 79,\n\n /**\n * P\n */\n P: 80,\n\n /**\n * Q\n */\n Q: 81,\n\n /**\n * R\n */\n R: 82,\n\n /**\n * S\n */\n S: 83,\n\n /**\n * T\n */\n T: 84,\n\n /**\n * U\n */\n U: 85,\n\n /**\n * V\n */\n V: 86,\n\n /**\n * W\n */\n W: 87,\n\n /**\n * X\n */\n X: 88,\n\n /**\n * Y\n */\n Y: 89,\n\n /**\n * Z\n */\n Z: 90,\n\n /**\n * META\n */\n META: 91,\n\n /**\n * WIN_KEY_RIGHT\n */\n WIN_KEY_RIGHT: 92,\n\n /**\n * CONTEXT_MENU\n */\n CONTEXT_MENU: 93,\n\n /**\n * NUM_ZERO\n */\n NUM_ZERO: 96,\n\n /**\n * NUM_ONE\n */\n NUM_ONE: 97,\n\n /**\n * NUM_TWO\n */\n NUM_TWO: 98,\n\n /**\n * NUM_THREE\n */\n NUM_THREE: 99,\n\n /**\n * NUM_FOUR\n */\n NUM_FOUR: 100,\n\n /**\n * NUM_FIVE\n */\n NUM_FIVE: 101,\n\n /**\n * NUM_SIX\n */\n NUM_SIX: 102,\n\n /**\n * NUM_SEVEN\n */\n NUM_SEVEN: 103,\n\n /**\n * NUM_EIGHT\n */\n NUM_EIGHT: 104,\n\n /**\n * NUM_NINE\n */\n NUM_NINE: 105,\n\n /**\n * NUM_MULTIPLY\n */\n NUM_MULTIPLY: 106,\n\n /**\n * NUM_PLUS\n */\n NUM_PLUS: 107,\n\n /**\n * NUM_MINUS\n */\n NUM_MINUS: 109,\n\n /**\n * NUM_PERIOD\n */\n NUM_PERIOD: 110,\n\n /**\n * NUM_DIVISION\n */\n NUM_DIVISION: 111,\n\n /**\n * F1\n */\n F1: 112,\n\n /**\n * F2\n */\n F2: 113,\n\n /**\n * F3\n */\n F3: 114,\n\n /**\n * F4\n */\n F4: 115,\n\n /**\n * F5\n */\n F5: 116,\n\n /**\n * F6\n */\n F6: 117,\n\n /**\n * F7\n */\n F7: 118,\n\n /**\n * F8\n */\n F8: 119,\n\n /**\n * F9\n */\n F9: 120,\n\n /**\n * F10\n */\n F10: 121,\n\n /**\n * F11\n */\n F11: 122,\n\n /**\n * F12\n */\n F12: 123,\n\n /**\n * NUMLOCK\n */\n NUMLOCK: 144,\n\n /**\n * SEMICOLON\n */\n SEMICOLON: 186,\n\n /**\n * DASH\n */\n DASH: 189,\n\n /**\n * EQUALS\n */\n EQUALS: 187,\n\n /**\n * COMMA\n */\n COMMA: 188,\n\n /**\n * PERIOD\n */\n PERIOD: 190,\n\n /**\n * SLASH\n */\n SLASH: 191,\n\n /**\n * APOSTROPHE\n */\n APOSTROPHE: 192,\n\n /**\n * SINGLE_QUOTE\n */\n SINGLE_QUOTE: 222,\n\n /**\n * OPEN_SQUARE_BRACKET\n */\n OPEN_SQUARE_BRACKET: 219,\n\n /**\n * BACKSLASH\n */\n BACKSLASH: 220,\n\n /**\n * CLOSE_SQUARE_BRACKET\n */\n CLOSE_SQUARE_BRACKET: 221,\n\n /**\n * WIN_KEY\n */\n WIN_KEY: 224,\n\n /**\n * MAC_FF_META\n */\n MAC_FF_META: 224,\n\n /**\n * WIN_IME\n */\n WIN_IME: 229,\n // ======================== Function ========================\n\n /**\n * whether text and modified key is entered at the same time.\n */\n isTextModifyingKeyEvent: function isTextModifyingKeyEvent(e) {\n var keyCode = e.keyCode;\n\n if (e.altKey && !e.ctrlKey || e.metaKey || // Function keys don't generate text\n keyCode >= KeyCode.F1 && keyCode <= KeyCode.F12) {\n return false;\n } // The following keys are quite harmless, even in combination with\n // CTRL, ALT or SHIFT.\n\n\n switch (keyCode) {\n case KeyCode.ALT:\n case KeyCode.CAPS_LOCK:\n case KeyCode.CONTEXT_MENU:\n case KeyCode.CTRL:\n case KeyCode.DOWN:\n case KeyCode.END:\n case KeyCode.ESC:\n case KeyCode.HOME:\n case KeyCode.INSERT:\n case KeyCode.LEFT:\n case KeyCode.MAC_FF_META:\n case KeyCode.META:\n case KeyCode.NUMLOCK:\n case KeyCode.NUM_CENTER:\n case KeyCode.PAGE_DOWN:\n case KeyCode.PAGE_UP:\n case KeyCode.PAUSE:\n case KeyCode.PRINT_SCREEN:\n case KeyCode.RIGHT:\n case KeyCode.SHIFT:\n case KeyCode.UP:\n case KeyCode.WIN_KEY:\n case KeyCode.WIN_KEY_RIGHT:\n return false;\n\n default:\n return true;\n }\n },\n\n /**\n * whether character is entered.\n */\n isCharacterKey: function isCharacterKey(keyCode) {\n if (keyCode >= KeyCode.ZERO && keyCode <= KeyCode.NINE) {\n return true;\n }\n\n if (keyCode >= KeyCode.NUM_ZERO && keyCode <= KeyCode.NUM_MULTIPLY) {\n return true;\n }\n\n if (keyCode >= KeyCode.A && keyCode <= KeyCode.Z) {\n return true;\n } // Safari sends zero key code for non-latin characters.\n\n\n if (window.navigator.userAgent.indexOf('WebKit') !== -1 && keyCode === 0) {\n return true;\n }\n\n switch (keyCode) {\n case KeyCode.SPACE:\n case KeyCode.QUESTION_MARK:\n case KeyCode.NUM_PLUS:\n case KeyCode.NUM_MINUS:\n case KeyCode.NUM_PERIOD:\n case KeyCode.NUM_DIVISION:\n case KeyCode.SEMICOLON:\n case KeyCode.DASH:\n case KeyCode.EQUALS:\n case KeyCode.COMMA:\n case KeyCode.PERIOD:\n case KeyCode.SLASH:\n case KeyCode.APOSTROPHE:\n case KeyCode.SINGLE_QUOTE:\n case KeyCode.OPEN_SQUARE_BRACKET:\n case KeyCode.BACKSLASH:\n case KeyCode.CLOSE_SQUARE_BRACKET:\n return true;\n\n default:\n return false;\n }\n }\n};\n/* harmony default export */ __webpack_exports__[\"a\"] = (KeyCode);\n\n/***/ }),\n/* 44 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nmodule.exports = __webpack_require__(808);\n\n/***/ }),\n/* 45 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = scrollTop;\n\nvar _isWindow = __webpack_require__(100);\n\nvar _isWindow2 = _interopRequireDefault(_isWindow);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction scrollTop(node, val) {\n var win = (0, _isWindow2.default)(node);\n\n if (val === undefined) return win ? 'pageYOffset' in win ? win.pageYOffset : win.document.documentElement.scrollTop : node.scrollTop;\n\n if (win) win.scrollTo('pageXOffset' in win ? win.pageXOffset : win.document.documentElement.scrollLeft, val);else node.scrollTop = val;\n}\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 46 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined;\n\nvar _all2 = __webpack_require__(1583);\n\nvar _all3 = _interopRequireDefault(_all2);\n\nvar _componentOrElement2 = __webpack_require__(1584);\n\nvar _componentOrElement3 = _interopRequireDefault(_componentOrElement2);\n\nvar _deprecated2 = __webpack_require__(1585);\n\nvar _deprecated3 = _interopRequireDefault(_deprecated2);\n\nvar _elementType2 = __webpack_require__(1586);\n\nvar _elementType3 = _interopRequireDefault(_elementType2);\n\nvar _isRequiredForA11y2 = __webpack_require__(1587);\n\nvar _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2);\n\nvar _splitComponent2 = __webpack_require__(1588);\n\nvar _splitComponent3 = _interopRequireDefault(_splitComponent2);\n\nvar _createChainedFunction2 = __webpack_require__(1589);\n\nvar _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2);\n\nvar _keyCode = __webpack_require__(1590);\n\nvar _keyCode2 = _interopRequireDefault(_keyCode);\n\nvar _contains2 = __webpack_require__(1591);\n\nvar _contains3 = _interopRequireDefault(_contains2);\n\nvar _addEventListener2 = __webpack_require__(520);\n\nvar _addEventListener3 = _interopRequireDefault(_addEventListener2);\n\nvar _cssAnimation2 = __webpack_require__(1592);\n\nvar _cssAnimation3 = _interopRequireDefault(_cssAnimation2);\n\nvar _toArray2 = __webpack_require__(1594);\n\nvar _toArray3 = _interopRequireDefault(_toArray2);\n\nvar _Align2 = __webpack_require__(1595);\n\nvar _Align3 = _interopRequireDefault(_Align2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.all = _all3.default;\nexports.componentOrElement = _componentOrElement3.default;\nexports.deprecated = _deprecated3.default;\nexports.elementType = _elementType3.default;\nexports.isRequiredForA11y = _isRequiredForA11y3.default;\nexports.splitComponent = _splitComponent3.default;\nexports.createChainedFunction = _createChainedFunction3.default;\nexports.KeyCode = _keyCode2.default;\nexports.contains = _contains3.default;\nexports.addEventListener = _addEventListener3.default;\nexports.cssAnimation = _cssAnimation3.default;\nexports.toArray = _toArray3.default;\n//export getContainerRenderMixin from './getContainerRenderMixin';\n\nexports.Align = _Align3.default;\n\n/***/ }),\n/* 47 */\n/***/ (function(module, exports) {\n\nvar hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n\n\n/***/ }),\n/* 48 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n\n\n/***/ }),\n/* 49 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _inDOM = __webpack_require__(25);\n\nvar _inDOM2 = _interopRequireDefault(_inDOM);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar off = function off() {};\nif (_inDOM2.default) {\n off = function () {\n if (document.addEventListener) return function (node, eventName, handler, capture) {\n return node.removeEventListener(eventName, handler, capture || false);\n };else if (document.attachEvent) return function (node, eventName, handler) {\n return node.detachEvent('on' + eventName, handler);\n };\n }();\n}\n\nexports.default = off;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 50 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar dP = __webpack_require__(40);\nvar createDesc = __webpack_require__(65);\nmodule.exports = __webpack_require__(41) ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n\n\n/***/ }),\n/* 51 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isObject = __webpack_require__(52);\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n\n\n/***/ }),\n/* 52 */\n/***/ (function(module, exports) {\n\nmodule.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n\n\n/***/ }),\n/* 53 */\n/***/ (function(module, exports) {\n\nmodule.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n\n\n/***/ }),\n/* 54 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = __webpack_require__(220);\nvar defined = __webpack_require__(123);\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n\n\n/***/ }),\n/* 55 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _defineProperty = __webpack_require__(215);\n\nvar _defineProperty2 = _interopRequireDefault(_defineProperty);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n (0, _defineProperty2.default)(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\n/***/ }),\n/* 56 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports[\"default\"] = function (node, event, handler, capture) {\n (0, _on2[\"default\"])(node, event, handler, capture);\n\n return {\n remove: function remove() {\n (0, _off2[\"default\"])(node, event, handler, capture);\n }\n };\n};\n\nvar _on = __webpack_require__(17);\n\nvar _on2 = _interopRequireDefault(_on);\n\nvar _off = __webpack_require__(49);\n\nvar _off2 = _interopRequireDefault(_off);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 57 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _Animate = __webpack_require__(753);\n\nvar _Animate2 = _interopRequireDefault(_Animate);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nexports[\"default\"] = _Animate2[\"default\"];\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 58 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (immutable) */ __webpack_exports__[\"g\"] = noop;\n/* harmony export (immutable) */ __webpack_exports__[\"a\"] = getKeyFromChildrenIndex;\n/* harmony export (immutable) */ __webpack_exports__[\"b\"] = getMenuIdFromSubMenuEventKey;\n/* harmony export (immutable) */ __webpack_exports__[\"d\"] = loopMenuItem;\n/* harmony export (immutable) */ __webpack_exports__[\"e\"] = loopMenuItemRecursively;\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"f\", function() { return menuAllProps; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"c\", function() { return getWidth; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"h\", function() { return setStyle; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);\n\n\nfunction noop() {}\n\nfunction getKeyFromChildrenIndex(child, menuEventKey, index) {\n var prefix = menuEventKey || '';\n return child.key || prefix + 'item_' + index;\n}\n\nfunction getMenuIdFromSubMenuEventKey(eventKey) {\n return eventKey + '-menu-';\n}\n\nfunction loopMenuItem(children, cb) {\n var index = -1;\n __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (c) {\n index++;\n if (c && c.type && c.type.isMenuItemGroup) {\n __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(c.props.children, function (c2) {\n index++;\n cb(c2, index);\n });\n } else {\n cb(c, index);\n }\n });\n}\n\nfunction loopMenuItemRecursively(children, keys, ret) {\n /* istanbul ignore if */\n if (!children || ret.find) {\n return;\n }\n __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (c) {\n if (c) {\n var construct = c.type;\n if (!construct || !(construct.isSubMenu || construct.isMenuItem || construct.isMenuItemGroup)) {\n return;\n }\n if (keys.indexOf(c.key) !== -1) {\n ret.find = true;\n } else if (c.props.children) {\n loopMenuItemRecursively(c.props.children, keys, ret);\n }\n }\n });\n}\n\nvar menuAllProps = ['defaultSelectedKeys', 'selectedKeys', 'defaultOpenKeys', 'openKeys', 'mode', 'getPopupContainer', 'onSelect', 'onDeselect', 'onDestroy', 'openTransitionName', 'openAnimation', 'subMenuOpenDelay', 'subMenuCloseDelay', 'forceSubMenuRender', 'triggerSubMenuAction', 'level', 'selectable', 'multiple', 'onOpenChange', 'visible', 'focusable', 'defaultActiveFirst', 'prefixCls', 'inlineIndent', 'parentMenu', 'title', 'rootPrefixCls', 'eventKey', 'active', 'onItemHover', 'onTitleMouseEnter', 'onTitleMouseLeave', 'onTitleClick', 'popupAlign', 'popupOffset', 'isOpen', 'renderMenuItem', 'manualRef', 'subMenuKey', 'disabled', 'index', 'isSelected', 'store', 'activeKey', 'builtinPlacements', 'overflowedIndicator',\n\n// the following keys found need to be removed from test regression\n'attribute', 'value', 'popupClassName', 'inlineCollapsed', 'menu', 'theme', 'itemIcon', 'expandIcon'];\n\nvar getWidth = function getWidth(elem) {\n return elem && typeof elem.getBoundingClientRect === 'function' && elem.getBoundingClientRect().width || 0;\n};\n\nvar setStyle = function setStyle(elem, styleProperty, value) {\n if (elem && typeof elem.style === 'object') {\n elem.style[styleProperty] = value;\n }\n};\n\n/***/ }),\n/* 59 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\n/**\n * @ignore\n * some key-codes definition and utils from closure-library\n * @author yiminghe@gmail.com\n */\nvar KeyCode = {\n /**\n * MAC_ENTER\n */\n MAC_ENTER: 3,\n\n /**\n * BACKSPACE\n */\n BACKSPACE: 8,\n\n /**\n * TAB\n */\n TAB: 9,\n\n /**\n * NUMLOCK on FF/Safari Mac\n */\n NUM_CENTER: 12,\n\n /**\n * ENTER\n */\n ENTER: 13,\n\n /**\n * SHIFT\n */\n SHIFT: 16,\n\n /**\n * CTRL\n */\n CTRL: 17,\n\n /**\n * ALT\n */\n ALT: 18,\n\n /**\n * PAUSE\n */\n PAUSE: 19,\n\n /**\n * CAPS_LOCK\n */\n CAPS_LOCK: 20,\n\n /**\n * ESC\n */\n ESC: 27,\n\n /**\n * SPACE\n */\n SPACE: 32,\n\n /**\n * PAGE_UP\n */\n PAGE_UP: 33,\n\n /**\n * PAGE_DOWN\n */\n PAGE_DOWN: 34,\n\n /**\n * END\n */\n END: 35,\n\n /**\n * HOME\n */\n HOME: 36,\n\n /**\n * LEFT\n */\n LEFT: 37,\n\n /**\n * UP\n */\n UP: 38,\n\n /**\n * RIGHT\n */\n RIGHT: 39,\n\n /**\n * DOWN\n */\n DOWN: 40,\n\n /**\n * PRINT_SCREEN\n */\n PRINT_SCREEN: 44,\n\n /**\n * INSERT\n */\n INSERT: 45,\n\n /**\n * DELETE\n */\n DELETE: 46,\n\n /**\n * ZERO\n */\n ZERO: 48,\n\n /**\n * ONE\n */\n ONE: 49,\n\n /**\n * TWO\n */\n TWO: 50,\n\n /**\n * THREE\n */\n THREE: 51,\n\n /**\n * FOUR\n */\n FOUR: 52,\n\n /**\n * FIVE\n */\n FIVE: 53,\n\n /**\n * SIX\n */\n SIX: 54,\n\n /**\n * SEVEN\n */\n SEVEN: 55,\n\n /**\n * EIGHT\n */\n EIGHT: 56,\n\n /**\n * NINE\n */\n NINE: 57,\n\n /**\n * QUESTION_MARK\n */\n QUESTION_MARK: 63,\n\n /**\n * A\n */\n A: 65,\n\n /**\n * B\n */\n B: 66,\n\n /**\n * C\n */\n C: 67,\n\n /**\n * D\n */\n D: 68,\n\n /**\n * E\n */\n E: 69,\n\n /**\n * F\n */\n F: 70,\n\n /**\n * G\n */\n G: 71,\n\n /**\n * H\n */\n H: 72,\n\n /**\n * I\n */\n I: 73,\n\n /**\n * J\n */\n J: 74,\n\n /**\n * K\n */\n K: 75,\n\n /**\n * L\n */\n L: 76,\n\n /**\n * M\n */\n M: 77,\n\n /**\n * N\n */\n N: 78,\n\n /**\n * O\n */\n O: 79,\n\n /**\n * P\n */\n P: 80,\n\n /**\n * Q\n */\n Q: 81,\n\n /**\n * R\n */\n R: 82,\n\n /**\n * S\n */\n S: 83,\n\n /**\n * T\n */\n T: 84,\n\n /**\n * U\n */\n U: 85,\n\n /**\n * V\n */\n V: 86,\n\n /**\n * W\n */\n W: 87,\n\n /**\n * X\n */\n X: 88,\n\n /**\n * Y\n */\n Y: 89,\n\n /**\n * Z\n */\n Z: 90,\n\n /**\n * META\n */\n META: 91,\n\n /**\n * WIN_KEY_RIGHT\n */\n WIN_KEY_RIGHT: 92,\n\n /**\n * CONTEXT_MENU\n */\n CONTEXT_MENU: 93,\n\n /**\n * NUM_ZERO\n */\n NUM_ZERO: 96,\n\n /**\n * NUM_ONE\n */\n NUM_ONE: 97,\n\n /**\n * NUM_TWO\n */\n NUM_TWO: 98,\n\n /**\n * NUM_THREE\n */\n NUM_THREE: 99,\n\n /**\n * NUM_FOUR\n */\n NUM_FOUR: 100,\n\n /**\n * NUM_FIVE\n */\n NUM_FIVE: 101,\n\n /**\n * NUM_SIX\n */\n NUM_SIX: 102,\n\n /**\n * NUM_SEVEN\n */\n NUM_SEVEN: 103,\n\n /**\n * NUM_EIGHT\n */\n NUM_EIGHT: 104,\n\n /**\n * NUM_NINE\n */\n NUM_NINE: 105,\n\n /**\n * NUM_MULTIPLY\n */\n NUM_MULTIPLY: 106,\n\n /**\n * NUM_PLUS\n */\n NUM_PLUS: 107,\n\n /**\n * NUM_MINUS\n */\n NUM_MINUS: 109,\n\n /**\n * NUM_PERIOD\n */\n NUM_PERIOD: 110,\n\n /**\n * NUM_DIVISION\n */\n NUM_DIVISION: 111,\n\n /**\n * F1\n */\n F1: 112,\n\n /**\n * F2\n */\n F2: 113,\n\n /**\n * F3\n */\n F3: 114,\n\n /**\n * F4\n */\n F4: 115,\n\n /**\n * F5\n */\n F5: 116,\n\n /**\n * F6\n */\n F6: 117,\n\n /**\n * F7\n */\n F7: 118,\n\n /**\n * F8\n */\n F8: 119,\n\n /**\n * F9\n */\n F9: 120,\n\n /**\n * F10\n */\n F10: 121,\n\n /**\n * F11\n */\n F11: 122,\n\n /**\n * F12\n */\n F12: 123,\n\n /**\n * NUMLOCK\n */\n NUMLOCK: 144,\n\n /**\n * SEMICOLON\n */\n SEMICOLON: 186,\n\n /**\n * DASH\n */\n DASH: 189,\n\n /**\n * EQUALS\n */\n EQUALS: 187,\n\n /**\n * COMMA\n */\n COMMA: 188,\n\n /**\n * PERIOD\n */\n PERIOD: 190,\n\n /**\n * SLASH\n */\n SLASH: 191,\n\n /**\n * APOSTROPHE\n */\n APOSTROPHE: 192,\n\n /**\n * SINGLE_QUOTE\n */\n SINGLE_QUOTE: 222,\n\n /**\n * OPEN_SQUARE_BRACKET\n */\n OPEN_SQUARE_BRACKET: 219,\n\n /**\n * BACKSLASH\n */\n BACKSLASH: 220,\n\n /**\n * CLOSE_SQUARE_BRACKET\n */\n CLOSE_SQUARE_BRACKET: 221,\n\n /**\n * WIN_KEY\n */\n WIN_KEY: 224,\n\n /**\n * MAC_FF_META\n */\n MAC_FF_META: 224,\n\n /**\n * WIN_IME\n */\n WIN_IME: 229,\n // ======================== Function ========================\n\n /**\n * whether text and modified key is entered at the same time.\n */\n isTextModifyingKeyEvent: function isTextModifyingKeyEvent(e) {\n var keyCode = e.keyCode;\n\n if (e.altKey && !e.ctrlKey || e.metaKey || // Function keys don't generate text\n keyCode >= KeyCode.F1 && keyCode <= KeyCode.F12) {\n return false;\n } // The following keys are quite harmless, even in combination with\n // CTRL, ALT or SHIFT.\n\n\n switch (keyCode) {\n case KeyCode.ALT:\n case KeyCode.CAPS_LOCK:\n case KeyCode.CONTEXT_MENU:\n case KeyCode.CTRL:\n case KeyCode.DOWN:\n case KeyCode.END:\n case KeyCode.ESC:\n case KeyCode.HOME:\n case KeyCode.INSERT:\n case KeyCode.LEFT:\n case KeyCode.MAC_FF_META:\n case KeyCode.META:\n case KeyCode.NUMLOCK:\n case KeyCode.NUM_CENTER:\n case KeyCode.PAGE_DOWN:\n case KeyCode.PAGE_UP:\n case KeyCode.PAUSE:\n case KeyCode.PRINT_SCREEN:\n case KeyCode.RIGHT:\n case KeyCode.SHIFT:\n case KeyCode.UP:\n case KeyCode.WIN_KEY:\n case KeyCode.WIN_KEY_RIGHT:\n return false;\n\n default:\n return true;\n }\n },\n\n /**\n * whether character is entered.\n */\n isCharacterKey: function isCharacterKey(keyCode) {\n if (keyCode >= KeyCode.ZERO && keyCode <= KeyCode.NINE) {\n return true;\n }\n\n if (keyCode >= KeyCode.NUM_ZERO && keyCode <= KeyCode.NUM_MULTIPLY) {\n return true;\n }\n\n if (keyCode >= KeyCode.A && keyCode <= KeyCode.Z) {\n return true;\n } // Safari sends zero key code for non-latin characters.\n\n\n if (window.navigator.userAgent.indexOf('WebKit') !== -1 && keyCode === 0) {\n return true;\n }\n\n switch (keyCode) {\n case KeyCode.SPACE:\n case KeyCode.QUESTION_MARK:\n case KeyCode.NUM_PLUS:\n case KeyCode.NUM_MINUS:\n case KeyCode.NUM_PERIOD:\n case KeyCode.NUM_DIVISION:\n case KeyCode.SEMICOLON:\n case KeyCode.DASH:\n case KeyCode.EQUALS:\n case KeyCode.COMMA:\n case KeyCode.PERIOD:\n case KeyCode.SLASH:\n case KeyCode.APOSTROPHE:\n case KeyCode.SINGLE_QUOTE:\n case KeyCode.OPEN_SQUARE_BRACKET:\n case KeyCode.BACKSLASH:\n case KeyCode.CLOSE_SQUARE_BRACKET:\n return true;\n\n default:\n return false;\n }\n }\n};\nvar _default = KeyCode;\nexports.default = _default;\n\n/***/ }),\n/* 60 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined;\n\nvar _all2 = __webpack_require__(816);\n\nvar _all3 = _interopRequireDefault(_all2);\n\nvar _componentOrElement2 = __webpack_require__(817);\n\nvar _componentOrElement3 = _interopRequireDefault(_componentOrElement2);\n\nvar _deprecated2 = __webpack_require__(818);\n\nvar _deprecated3 = _interopRequireDefault(_deprecated2);\n\nvar _elementType2 = __webpack_require__(819);\n\nvar _elementType3 = _interopRequireDefault(_elementType2);\n\nvar _isRequiredForA11y2 = __webpack_require__(820);\n\nvar _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2);\n\nvar _splitComponent2 = __webpack_require__(821);\n\nvar _splitComponent3 = _interopRequireDefault(_splitComponent2);\n\nvar _createChainedFunction2 = __webpack_require__(822);\n\nvar _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2);\n\nvar _keyCode = __webpack_require__(823);\n\nvar _keyCode2 = _interopRequireDefault(_keyCode);\n\nvar _contains2 = __webpack_require__(824);\n\nvar _contains3 = _interopRequireDefault(_contains2);\n\nvar _addEventListener2 = __webpack_require__(264);\n\nvar _addEventListener3 = _interopRequireDefault(_addEventListener2);\n\nvar _cssAnimation2 = __webpack_require__(825);\n\nvar _cssAnimation3 = _interopRequireDefault(_cssAnimation2);\n\nvar _toArray2 = __webpack_require__(827);\n\nvar _toArray3 = _interopRequireDefault(_toArray2);\n\nvar _Align2 = __webpack_require__(265);\n\nvar _Align3 = _interopRequireDefault(_Align2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.all = _all3.default;\nexports.componentOrElement = _componentOrElement3.default;\nexports.deprecated = _deprecated3.default;\nexports.elementType = _elementType3.default;\nexports.isRequiredForA11y = _isRequiredForA11y3.default;\nexports.splitComponent = _splitComponent3.default;\nexports.createChainedFunction = _createChainedFunction3.default;\nexports.KeyCode = _keyCode2.default;\nexports.contains = _contains3.default;\nexports.addEventListener = _addEventListener3.default;\nexports.cssAnimation = _cssAnimation3.default;\nexports.toArray = _toArray3.default;\n//export getContainerRenderMixin from './getContainerRenderMixin';\n\nexports.Align = _Align3.default;\n\n/***/ }),\n/* 61 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.setStyle = exports.getWidth = exports.menuAllProps = undefined;\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; /**\n * This source code is quoted from rc-menu.\n * homepage: https://github.com/react-component/menu\n */\n\n\nexports.noop = noop;\nexports.getKeyFromChildrenIndex = getKeyFromChildrenIndex;\nexports.getMenuIdFromSubMenuEventKey = getMenuIdFromSubMenuEventKey;\nexports.loopMenuItem = loopMenuItem;\nexports.loopMenuItemRecursively = loopMenuItemRecursively;\nexports.fireKeyEvent = fireKeyEvent;\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction noop() {}\n\nfunction getKeyFromChildrenIndex(child, menuEventKey, index) {\n var prefix = menuEventKey || '';\n return child.key || prefix + 'item_' + index;\n}\n\nfunction getMenuIdFromSubMenuEventKey(eventKey) {\n return eventKey + '-menu-';\n}\n\nfunction loopMenuItem(children, cb) {\n var index = -1;\n _react2[\"default\"].Children.forEach(children, function (c) {\n index++;\n if (c && c.type && c.type.isMenuItemGroup) {\n _react2[\"default\"].Children.forEach(c.props.children, function (c2) {\n index++;\n cb(c2, index);\n });\n } else {\n cb(c, index);\n }\n });\n}\n\nfunction loopMenuItemRecursively(children, keys, ret) {\n /* istanbul ignore if */\n if (!children || ret.find) {\n return;\n }\n _react2[\"default\"].Children.forEach(children, function (c) {\n if (c) {\n var construct = c.type;\n if (!construct || !(construct.isSubMenu || construct.isMenuItem || construct.isMenuItemGroup)) {\n return;\n }\n if (keys.indexOf(c.key) !== -1) {\n ret.find = true;\n } else if (c.props.children) {\n loopMenuItemRecursively(c.props.children, keys, ret);\n }\n }\n });\n}\n\nvar menuAllProps = exports.menuAllProps = ['defaultSelectedKeys', 'selectedKeys', 'defaultOpenKeys', 'openKeys', 'mode', 'getPopupContainer', 'onSelect', 'onDeselect', 'onDestroy', 'openTransitionName', 'openAnimation', 'subMenuOpenDelay', 'subMenuCloseDelay', 'forceSubMenuRender', 'triggerSubMenuAction', 'level', 'selectable', 'multiple', 'onOpenChange', 'visible', 'focusable', 'defaultActiveFirst', 'prefixCls', 'inlineIndent', 'parentMenu', 'title', 'rootPrefixCls', 'eventKey', 'active', 'onItemHover', 'onTitleMouseEnter', 'onTitleMouseLeave', 'onTitleClick', 'popupAlign', 'popupOffset', 'isOpen', 'renderMenuItem', 'manualRef', 'subMenuKey', 'disabled', 'index', 'isSelected', 'store', 'activeKey', 'builtinPlacements', 'overflowedIndicator',\n\n// the following keys found need to be removed from test regression\n'attribute', 'value', 'popupClassName', 'inlineCollapsed', 'menu', 'theme', 'itemIcon', 'expandIcon'];\n\nvar getWidth = exports.getWidth = function getWidth(elem) {\n return elem && typeof elem.getBoundingClientRect === 'function' && elem.getBoundingClientRect().width || 0;\n};\n\nvar setStyle = exports.setStyle = function setStyle(elem, styleProperty, value) {\n if (elem && _typeof(elem.style) === 'object') {\n elem.style[styleProperty] = value;\n }\n};\n\nfunction fireKeyEvent(el, evtType, keyCode) {\n var evtObj;\n if (document.createEvent) {\n if (window.KeyEvent) {\n //firefox 浏览器下模拟事件\n evtObj = document.createEvent('KeyEvents');\n evtObj.initKeyEvent(evtType, true, true, window, true, false, false, false, keyCode, 0);\n } else {\n //chrome 浏览器下模拟事件\n evtObj = document.createEvent('UIEvents');\n evtObj.initUIEvent(evtType, true, true, window, 1);\n\n delete evtObj.keyCode;\n if (typeof evtObj.keyCode === \"undefined\") {\n //为了模拟keycode\n Object.defineProperty(evtObj, \"keyCode\", { value: keyCode });\n } else {\n evtObj.key = String.fromCharCode(keyCode);\n }\n\n if (typeof evtObj.ctrlKey === 'undefined') {\n //为了模拟ctrl键\n Object.defineProperty(evtObj, \"ctrlKey\", { value: true });\n } else {\n evtObj.ctrlKey = true;\n }\n }\n el.dispatchEvent(evtObj);\n } else if (document.createEventObject) {\n //IE 浏览器下模拟事件\n evtObj = document.createEventObject();\n evtObj.keyCode = keyCode;\n el.fireEvent('on' + evtType, evtObj);\n }\n}\n\n/***/ }),\n/* 62 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined;\n\nvar _all2 = __webpack_require__(1070);\n\nvar _all3 = _interopRequireDefault(_all2);\n\nvar _componentOrElement2 = __webpack_require__(1071);\n\nvar _componentOrElement3 = _interopRequireDefault(_componentOrElement2);\n\nvar _deprecated2 = __webpack_require__(1072);\n\nvar _deprecated3 = _interopRequireDefault(_deprecated2);\n\nvar _elementType2 = __webpack_require__(1073);\n\nvar _elementType3 = _interopRequireDefault(_elementType2);\n\nvar _isRequiredForA11y2 = __webpack_require__(1074);\n\nvar _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2);\n\nvar _splitComponent2 = __webpack_require__(1075);\n\nvar _splitComponent3 = _interopRequireDefault(_splitComponent2);\n\nvar _createChainedFunction2 = __webpack_require__(1076);\n\nvar _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2);\n\nvar _keyCode = __webpack_require__(1077);\n\nvar _keyCode2 = _interopRequireDefault(_keyCode);\n\nvar _contains2 = __webpack_require__(1078);\n\nvar _contains3 = _interopRequireDefault(_contains2);\n\nvar _addEventListener2 = __webpack_require__(305);\n\nvar _addEventListener3 = _interopRequireDefault(_addEventListener2);\n\nvar _cssAnimation2 = __webpack_require__(1079);\n\nvar _cssAnimation3 = _interopRequireDefault(_cssAnimation2);\n\nvar _toArray2 = __webpack_require__(1081);\n\nvar _toArray3 = _interopRequireDefault(_toArray2);\n\nvar _Align2 = __webpack_require__(1082);\n\nvar _Align3 = _interopRequireDefault(_Align2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.all = _all3.default;\nexports.componentOrElement = _componentOrElement3.default;\nexports.deprecated = _deprecated3.default;\nexports.elementType = _elementType3.default;\nexports.isRequiredForA11y = _isRequiredForA11y3.default;\nexports.splitComponent = _splitComponent3.default;\nexports.createChainedFunction = _createChainedFunction3.default;\nexports.KeyCode = _keyCode2.default;\nexports.contains = _contains3.default;\nexports.addEventListener = _addEventListener3.default;\nexports.cssAnimation = _cssAnimation3.default;\nexports.toArray = _toArray3.default;\n//export getContainerRenderMixin from './getContainerRenderMixin';\n\nexports.Align = _Align3.default;\n\n/***/ }),\n/* 63 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports['default'] = {\n today: '今天',\n now: '此刻',\n backToToday: '返回今天',\n ok: '确定',\n timeSelect: '选择时间',\n dateSelect: '选择日期',\n weekSelect: '选择周',\n clear: '清除',\n month: '月',\n year: '年',\n previousMonth: '上个月 (翻页上键)',\n nextMonth: '下个月 (翻页下键)',\n monthSelect: '选择月份',\n yearSelect: '选择年份',\n decadeSelect: '选择年代',\n yearFormat: 'YYYY年',\n dayFormat: 'D日',\n dateFormat: 'YYYY年M月D日',\n dateTimeFormat: 'YYYY年M月D日 HH时mm分ss秒',\n previousYear: '上一年 (Control键加左方向键)',\n nextYear: '下一年 (Control键加右方向键)',\n previousDecade: '上一年代',\n nextDecade: '下一年代',\n previousCentury: '上一世纪',\n nextCentury: '下一世纪'\n};\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 64 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (immutable) */ __webpack_exports__[\"g\"] = noop;\n/* harmony export (immutable) */ __webpack_exports__[\"a\"] = getKeyFromChildrenIndex;\n/* harmony export (immutable) */ __webpack_exports__[\"b\"] = getMenuIdFromSubMenuEventKey;\n/* harmony export (immutable) */ __webpack_exports__[\"d\"] = loopMenuItem;\n/* harmony export (immutable) */ __webpack_exports__[\"e\"] = loopMenuItemRecursively;\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"f\", function() { return menuAllProps; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"c\", function() { return getWidth; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"h\", function() { return setStyle; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);\n\n\nfunction noop() {}\n\nfunction getKeyFromChildrenIndex(child, menuEventKey, index) {\n var prefix = menuEventKey || '';\n return child.key || prefix + 'item_' + index;\n}\n\nfunction getMenuIdFromSubMenuEventKey(eventKey) {\n return eventKey + '-menu-';\n}\n\nfunction loopMenuItem(children, cb) {\n var index = -1;\n __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (c) {\n index++;\n if (c && c.type && c.type.isMenuItemGroup) {\n __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(c.props.children, function (c2) {\n index++;\n cb(c2, index);\n });\n } else {\n cb(c, index);\n }\n });\n}\n\nfunction loopMenuItemRecursively(children, keys, ret) {\n /* istanbul ignore if */\n if (!children || ret.find) {\n return;\n }\n __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (c) {\n if (c) {\n var construct = c.type;\n if (!construct || !(construct.isSubMenu || construct.isMenuItem || construct.isMenuItemGroup)) {\n return;\n }\n if (keys.indexOf(c.key) !== -1) {\n ret.find = true;\n } else if (c.props.children) {\n loopMenuItemRecursively(c.props.children, keys, ret);\n }\n }\n });\n}\n\nvar menuAllProps = ['defaultSelectedKeys', 'selectedKeys', 'defaultOpenKeys', 'openKeys', 'mode', 'getPopupContainer', 'onSelect', 'onDeselect', 'onDestroy', 'openTransitionName', 'openAnimation', 'subMenuOpenDelay', 'subMenuCloseDelay', 'forceSubMenuRender', 'triggerSubMenuAction', 'level', 'selectable', 'multiple', 'onOpenChange', 'visible', 'focusable', 'defaultActiveFirst', 'prefixCls', 'inlineIndent', 'parentMenu', 'title', 'rootPrefixCls', 'eventKey', 'active', 'onItemHover', 'onTitleMouseEnter', 'onTitleMouseLeave', 'onTitleClick', 'popupAlign', 'popupOffset', 'isOpen', 'renderMenuItem', 'manualRef', 'subMenuKey', 'disabled', 'index', 'isSelected', 'store', 'activeKey', 'builtinPlacements', 'overflowedIndicator',\n\n// the following keys found need to be removed from test regression\n'attribute', 'value', 'popupClassName', 'inlineCollapsed', 'menu', 'theme', 'itemIcon', 'expandIcon'];\n\nvar getWidth = function getWidth(elem) {\n return elem && typeof elem.getBoundingClientRect === 'function' && elem.getBoundingClientRect().width || 0;\n};\n\nvar setStyle = function setStyle(elem, styleProperty, value) {\n if (elem && typeof elem.style === 'object') {\n elem.style[styleProperty] = value;\n }\n};\n\n/***/ }),\n/* 65 */\n/***/ (function(module, exports) {\n\nmodule.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n\n\n/***/ }),\n/* 66 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = __webpack_require__(219);\nvar enumBugKeys = __webpack_require__(127);\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n\n\n/***/ }),\n/* 67 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 7.1.13 ToObject(argument)\nvar defined = __webpack_require__(123);\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n\n\n/***/ }),\n/* 68 */\n/***/ (function(module, exports) {\n\nmodule.exports = {};\n\n\n/***/ }),\n/* 69 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\n\n\nvar React = __webpack_require__(0);\nvar factory = __webpack_require__(602);\n\nif (typeof React === 'undefined') {\n throw Error(\n 'create-react-class could not find the React object. If you are using script tags, ' +\n 'make sure that React is being loaded before create-react-class.'\n );\n}\n\n// Hack to grab NoopUpdateQueue from isomorphic React\nvar ReactNoopUpdateQueue = new React.Component().updater;\n\nmodule.exports = factory(\n React.Component,\n React.isValidElement,\n ReactNoopUpdateQueue\n);\n\n\n/***/ }),\n/* 70 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar freeGlobal = __webpack_require__(632);\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n\n\n/***/ }),\n/* 71 */\n/***/ (function(module, exports) {\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n\n\n/***/ }),\n/* 72 */\n/***/ (function(module, exports) {\n\n//\n\nmodule.exports = function shallowEqual(objA, objB, compare, compareContext) {\n var ret = compare ? compare.call(compareContext, objA, objB) : void 0;\n\n if (ret !== void 0) {\n return !!ret;\n }\n\n if (objA === objB) {\n return true;\n }\n\n if (typeof objA !== \"object\" || !objA || typeof objB !== \"object\" || !objB) {\n return false;\n }\n\n var keysA = Object.keys(objA);\n var keysB = Object.keys(objB);\n\n if (keysA.length !== keysB.length) {\n return false;\n }\n\n var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB);\n\n // Test for A's keys different from B.\n for (var idx = 0; idx < keysA.length; idx++) {\n var key = keysA[idx];\n\n if (!bHasOwnProperty(key)) {\n return false;\n }\n\n var valueA = objA[key];\n var valueB = objB[key];\n\n ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0;\n\n if (ret === false || (ret === void 0 && valueA !== valueB)) {\n return false;\n }\n }\n\n return true;\n};\n\n\n/***/ }),\n/* 73 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(8);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(7);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_prop_types__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_dom__ = __webpack_require__(3);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react_dom__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react_lifecycles_compat__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_rc_util_es_Dom_contains__ = __webpack_require__(143);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_rc_util_es_Dom_addEventListener__ = __webpack_require__(144);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_rc_util_es_ContainerRender__ = __webpack_require__(258);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_rc_util_es_Portal__ = __webpack_require__(259);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_classnames__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_12_classnames__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__utils__ = __webpack_require__(260);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__Popup__ = __webpack_require__(798);\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nfunction noop() {}\n\nfunction returnEmptyString() {\n return '';\n}\n\nfunction returnDocument() {\n return window.document;\n}\n\nvar ALL_HANDLERS = ['onClick', 'onMouseDown', 'onTouchStart', 'onMouseEnter', 'onMouseLeave', 'onFocus', 'onBlur', 'onContextMenu'];\n\nvar IS_REACT_16 = !!__WEBPACK_IMPORTED_MODULE_6_react_dom__[\"createPortal\"];\n\nvar contextTypes = {\n rcTrigger: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.shape({\n onPopupMouseDown: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func\n })\n};\n\nvar Trigger = function (_React$Component) {\n __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default()(Trigger, _React$Component);\n\n function Trigger(props) {\n __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, Trigger);\n\n var _this = __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.call(this, props));\n\n _initialiseProps.call(_this);\n\n var popupVisible = void 0;\n if ('popupVisible' in props) {\n popupVisible = !!props.popupVisible;\n } else {\n popupVisible = !!props.defaultPopupVisible;\n }\n\n _this.state = {\n prevPopupVisible: popupVisible,\n popupVisible: popupVisible\n };\n\n ALL_HANDLERS.forEach(function (h) {\n _this['fire' + h] = function (e) {\n _this.fireEvents(h, e);\n };\n });\n return _this;\n }\n\n Trigger.prototype.getChildContext = function getChildContext() {\n return {\n rcTrigger: {\n onPopupMouseDown: this.onPopupMouseDown\n }\n };\n };\n\n Trigger.prototype.componentDidMount = function componentDidMount() {\n this.componentDidUpdate({}, {\n popupVisible: this.state.popupVisible\n });\n };\n\n Trigger.prototype.componentDidUpdate = function componentDidUpdate(_, prevState) {\n var props = this.props;\n var state = this.state;\n var triggerAfterPopupVisibleChange = function triggerAfterPopupVisibleChange() {\n if (prevState.popupVisible !== state.popupVisible) {\n props.afterPopupVisibleChange(state.popupVisible);\n }\n };\n if (!IS_REACT_16) {\n this.renderComponent(null, triggerAfterPopupVisibleChange);\n }\n\n // We must listen to `mousedown` or `touchstart`, edge case:\n // https://github.com/ant-design/ant-design/issues/5804\n // https://github.com/react-component/calendar/issues/250\n // https://github.com/react-component/trigger/issues/50\n if (state.popupVisible) {\n var currentDocument = void 0;\n if (!this.clickOutsideHandler && (this.isClickToHide() || this.isContextMenuToShow())) {\n currentDocument = props.getDocument();\n this.clickOutsideHandler = Object(__WEBPACK_IMPORTED_MODULE_9_rc_util_es_Dom_addEventListener__[\"a\" /* default */])(currentDocument, 'mousedown', this.onDocumentClick);\n }\n // always hide on mobile\n if (!this.touchOutsideHandler) {\n currentDocument = currentDocument || props.getDocument();\n this.touchOutsideHandler = Object(__WEBPACK_IMPORTED_MODULE_9_rc_util_es_Dom_addEventListener__[\"a\" /* default */])(currentDocument, 'touchstart', this.onDocumentClick);\n }\n // close popup when trigger type contains 'onContextMenu' and document is scrolling.\n if (!this.contextMenuOutsideHandler1 && this.isContextMenuToShow()) {\n currentDocument = currentDocument || props.getDocument();\n this.contextMenuOutsideHandler1 = Object(__WEBPACK_IMPORTED_MODULE_9_rc_util_es_Dom_addEventListener__[\"a\" /* default */])(currentDocument, 'scroll', this.onContextMenuClose);\n }\n // close popup when trigger type contains 'onContextMenu' and window is blur.\n if (!this.contextMenuOutsideHandler2 && this.isContextMenuToShow()) {\n this.contextMenuOutsideHandler2 = Object(__WEBPACK_IMPORTED_MODULE_9_rc_util_es_Dom_addEventListener__[\"a\" /* default */])(window, 'blur', this.onContextMenuClose);\n }\n return;\n }\n\n this.clearOutsideHandler();\n };\n\n Trigger.prototype.componentWillUnmount = function componentWillUnmount() {\n this.clearDelayTimer();\n this.clearOutsideHandler();\n clearTimeout(this.mouseDownTimeout);\n };\n\n Trigger.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {\n var popupVisible = _ref.popupVisible;\n\n var newState = {};\n\n if (popupVisible !== undefined && prevState.popupVisible !== popupVisible) {\n newState.popupVisible = popupVisible;\n newState.prevPopupVisible = prevState.popupVisible;\n }\n\n return newState;\n };\n\n Trigger.prototype.getPopupDomNode = function getPopupDomNode() {\n // for test\n if (this._component && this._component.getPopupDomNode) {\n return this._component.getPopupDomNode();\n }\n return null;\n };\n\n Trigger.prototype.getPopupAlign = function getPopupAlign() {\n var props = this.props;\n var popupPlacement = props.popupPlacement,\n popupAlign = props.popupAlign,\n builtinPlacements = props.builtinPlacements;\n\n if (popupPlacement && builtinPlacements) {\n return Object(__WEBPACK_IMPORTED_MODULE_13__utils__[\"a\" /* getAlignFromPlacement */])(builtinPlacements, popupPlacement, popupAlign);\n }\n return popupAlign;\n };\n\n /**\n * @param popupVisible Show or not the popup element\n * @param event SyntheticEvent, used for `pointAlign`\n */\n Trigger.prototype.setPopupVisible = function setPopupVisible(popupVisible, event) {\n var alignPoint = this.props.alignPoint;\n var prevPopupVisible = this.state.popupVisible;\n\n\n this.clearDelayTimer();\n\n if (prevPopupVisible !== popupVisible) {\n if (!('popupVisible' in this.props)) {\n this.setState({ popupVisible: popupVisible, prevPopupVisible: prevPopupVisible });\n }\n this.props.onPopupVisibleChange(popupVisible);\n }\n\n // Always record the point position since mouseEnterDelay will delay the show\n if (alignPoint && event) {\n this.setPoint(event);\n }\n };\n\n Trigger.prototype.delaySetPopupVisible = function delaySetPopupVisible(visible, delayS, event) {\n var _this2 = this;\n\n var delay = delayS * 1000;\n this.clearDelayTimer();\n if (delay) {\n var point = event ? { pageX: event.pageX, pageY: event.pageY } : null;\n this.delayTimer = setTimeout(function () {\n _this2.setPopupVisible(visible, point);\n _this2.clearDelayTimer();\n }, delay);\n } else {\n this.setPopupVisible(visible, event);\n }\n };\n\n Trigger.prototype.clearDelayTimer = function clearDelayTimer() {\n if (this.delayTimer) {\n clearTimeout(this.delayTimer);\n this.delayTimer = null;\n }\n };\n\n Trigger.prototype.clearOutsideHandler = function clearOutsideHandler() {\n if (this.clickOutsideHandler) {\n this.clickOutsideHandler.remove();\n this.clickOutsideHandler = null;\n }\n\n if (this.contextMenuOutsideHandler1) {\n this.contextMenuOutsideHandler1.remove();\n this.contextMenuOutsideHandler1 = null;\n }\n\n if (this.contextMenuOutsideHandler2) {\n this.contextMenuOutsideHandler2.remove();\n this.contextMenuOutsideHandler2 = null;\n }\n\n if (this.touchOutsideHandler) {\n this.touchOutsideHandler.remove();\n this.touchOutsideHandler = null;\n }\n };\n\n Trigger.prototype.createTwoChains = function createTwoChains(event) {\n var childPros = this.props.children.props;\n var props = this.props;\n if (childPros[event] && props[event]) {\n return this['fire' + event];\n }\n return childPros[event] || props[event];\n };\n\n Trigger.prototype.isClickToShow = function isClickToShow() {\n var _props = this.props,\n action = _props.action,\n showAction = _props.showAction;\n\n return action.indexOf('click') !== -1 || showAction.indexOf('click') !== -1;\n };\n\n Trigger.prototype.isContextMenuToShow = function isContextMenuToShow() {\n var _props2 = this.props,\n action = _props2.action,\n showAction = _props2.showAction;\n\n return action.indexOf('contextMenu') !== -1 || showAction.indexOf('contextMenu') !== -1;\n };\n\n Trigger.prototype.isClickToHide = function isClickToHide() {\n var _props3 = this.props,\n action = _props3.action,\n hideAction = _props3.hideAction;\n\n return action.indexOf('click') !== -1 || hideAction.indexOf('click') !== -1;\n };\n\n Trigger.prototype.isMouseEnterToShow = function isMouseEnterToShow() {\n var _props4 = this.props,\n action = _props4.action,\n showAction = _props4.showAction;\n\n return action.indexOf('hover') !== -1 || showAction.indexOf('mouseEnter') !== -1;\n };\n\n Trigger.prototype.isMouseLeaveToHide = function isMouseLeaveToHide() {\n var _props5 = this.props,\n action = _props5.action,\n hideAction = _props5.hideAction;\n\n return action.indexOf('hover') !== -1 || hideAction.indexOf('mouseLeave') !== -1;\n };\n\n Trigger.prototype.isFocusToShow = function isFocusToShow() {\n var _props6 = this.props,\n action = _props6.action,\n showAction = _props6.showAction;\n\n return action.indexOf('focus') !== -1 || showAction.indexOf('focus') !== -1;\n };\n\n Trigger.prototype.isBlurToHide = function isBlurToHide() {\n var _props7 = this.props,\n action = _props7.action,\n hideAction = _props7.hideAction;\n\n return action.indexOf('focus') !== -1 || hideAction.indexOf('blur') !== -1;\n };\n\n Trigger.prototype.forcePopupAlign = function forcePopupAlign() {\n if (this.state.popupVisible && this._component && this._component.alignInstance) {\n this._component.alignInstance.forceAlign();\n }\n };\n\n Trigger.prototype.fireEvents = function fireEvents(type, e) {\n var childCallback = this.props.children.props[type];\n if (childCallback) {\n childCallback(e);\n }\n var callback = this.props[type];\n if (callback) {\n callback(e);\n }\n };\n\n Trigger.prototype.close = function close() {\n this.setPopupVisible(false);\n };\n\n Trigger.prototype.render = function render() {\n var _this3 = this;\n\n var popupVisible = this.state.popupVisible;\n var _props8 = this.props,\n children = _props8.children,\n forceRender = _props8.forceRender,\n alignPoint = _props8.alignPoint,\n className = _props8.className;\n\n var child = __WEBPACK_IMPORTED_MODULE_4_react___default.a.Children.only(children);\n var newChildProps = { key: 'trigger' };\n\n if (this.isContextMenuToShow()) {\n newChildProps.onContextMenu = this.onContextMenu;\n } else {\n newChildProps.onContextMenu = this.createTwoChains('onContextMenu');\n }\n\n if (this.isClickToHide() || this.isClickToShow()) {\n newChildProps.onClick = this.onClick;\n newChildProps.onMouseDown = this.onMouseDown;\n newChildProps.onTouchStart = this.onTouchStart;\n } else {\n newChildProps.onClick = this.createTwoChains('onClick');\n newChildProps.onMouseDown = this.createTwoChains('onMouseDown');\n newChildProps.onTouchStart = this.createTwoChains('onTouchStart');\n }\n if (this.isMouseEnterToShow()) {\n newChildProps.onMouseEnter = this.onMouseEnter;\n if (alignPoint) {\n newChildProps.onMouseMove = this.onMouseMove;\n }\n } else {\n newChildProps.onMouseEnter = this.createTwoChains('onMouseEnter');\n }\n if (this.isMouseLeaveToHide()) {\n newChildProps.onMouseLeave = this.onMouseLeave;\n } else {\n newChildProps.onMouseLeave = this.createTwoChains('onMouseLeave');\n }\n if (this.isFocusToShow() || this.isBlurToHide()) {\n newChildProps.onFocus = this.onFocus;\n newChildProps.onBlur = this.onBlur;\n } else {\n newChildProps.onFocus = this.createTwoChains('onFocus');\n newChildProps.onBlur = this.createTwoChains('onBlur');\n }\n\n var childrenClassName = __WEBPACK_IMPORTED_MODULE_12_classnames___default()(child && child.props && child.props.className, className);\n if (childrenClassName) {\n newChildProps.className = childrenClassName;\n }\n var trigger = __WEBPACK_IMPORTED_MODULE_4_react___default.a.cloneElement(child, newChildProps);\n\n if (!IS_REACT_16) {\n return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(\n __WEBPACK_IMPORTED_MODULE_10_rc_util_es_ContainerRender__[\"a\" /* default */],\n {\n parent: this,\n visible: popupVisible,\n autoMount: false,\n forceRender: forceRender,\n getComponent: this.getComponent,\n getContainer: this.getContainer\n },\n function (_ref2) {\n var renderComponent = _ref2.renderComponent;\n\n _this3.renderComponent = renderComponent;\n return trigger;\n }\n );\n }\n\n var portal = void 0;\n // prevent unmounting after it's rendered\n if (popupVisible || this._component || forceRender) {\n portal = __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(\n __WEBPACK_IMPORTED_MODULE_11_rc_util_es_Portal__[\"a\" /* default */],\n { key: 'portal', getContainer: this.getContainer, didUpdate: this.handlePortalUpdate },\n this.getComponent()\n );\n }\n\n return [trigger, portal];\n };\n\n return Trigger;\n}(__WEBPACK_IMPORTED_MODULE_4_react___default.a.Component);\n\nTrigger.propTypes = {\n children: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.any,\n action: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string)]),\n showAction: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.any,\n hideAction: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.any,\n getPopupClassNameFromAlign: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.any,\n onPopupVisibleChange: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func,\n afterPopupVisibleChange: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func,\n popup: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.node, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func]).isRequired,\n popupStyle: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object,\n prefixCls: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string,\n popupClassName: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string,\n className: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string,\n popupPlacement: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string,\n builtinPlacements: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object,\n popupTransitionName: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object]),\n popupAnimation: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.any,\n mouseEnterDelay: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number,\n mouseLeaveDelay: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number,\n zIndex: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number,\n focusDelay: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number,\n blurDelay: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number,\n getPopupContainer: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func,\n getDocument: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func,\n forceRender: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool,\n destroyPopupOnHide: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool,\n mask: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool,\n maskClosable: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool,\n onPopupAlign: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func,\n popupAlign: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object,\n popupVisible: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool,\n defaultPopupVisible: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool,\n maskTransitionName: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object]),\n maskAnimation: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string,\n stretch: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string,\n alignPoint: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool // Maybe we can support user pass position in the future\n};\nTrigger.contextTypes = contextTypes;\nTrigger.childContextTypes = contextTypes;\nTrigger.defaultProps = {\n prefixCls: 'rc-trigger-popup',\n getPopupClassNameFromAlign: returnEmptyString,\n getDocument: returnDocument,\n onPopupVisibleChange: noop,\n afterPopupVisibleChange: noop,\n onPopupAlign: noop,\n popupClassName: '',\n mouseEnterDelay: 0,\n mouseLeaveDelay: 0.1,\n focusDelay: 0,\n blurDelay: 0.15,\n popupStyle: {},\n destroyPopupOnHide: false,\n popupAlign: {},\n defaultPopupVisible: false,\n mask: false,\n maskClosable: true,\n action: [],\n showAction: [],\n hideAction: []\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this4 = this;\n\n this.onMouseEnter = function (e) {\n var mouseEnterDelay = _this4.props.mouseEnterDelay;\n\n _this4.fireEvents('onMouseEnter', e);\n _this4.delaySetPopupVisible(true, mouseEnterDelay, mouseEnterDelay ? null : e);\n };\n\n this.onMouseMove = function (e) {\n _this4.fireEvents('onMouseMove', e);\n _this4.setPoint(e);\n };\n\n this.onMouseLeave = function (e) {\n _this4.fireEvents('onMouseLeave', e);\n _this4.delaySetPopupVisible(false, _this4.props.mouseLeaveDelay);\n };\n\n this.onPopupMouseEnter = function () {\n _this4.clearDelayTimer();\n };\n\n this.onPopupMouseLeave = function (e) {\n // https://github.com/react-component/trigger/pull/13\n // react bug?\n if (e.relatedTarget && !e.relatedTarget.setTimeout && _this4._component && _this4._component.getPopupDomNode && Object(__WEBPACK_IMPORTED_MODULE_8_rc_util_es_Dom_contains__[\"a\" /* default */])(_this4._component.getPopupDomNode(), e.relatedTarget)) {\n return;\n }\n _this4.delaySetPopupVisible(false, _this4.props.mouseLeaveDelay);\n };\n\n this.onFocus = function (e) {\n _this4.fireEvents('onFocus', e);\n // incase focusin and focusout\n _this4.clearDelayTimer();\n if (_this4.isFocusToShow()) {\n _this4.focusTime = Date.now();\n _this4.delaySetPopupVisible(true, _this4.props.focusDelay);\n }\n };\n\n this.onMouseDown = function (e) {\n _this4.fireEvents('onMouseDown', e);\n _this4.preClickTime = Date.now();\n };\n\n this.onTouchStart = function (e) {\n _this4.fireEvents('onTouchStart', e);\n _this4.preTouchTime = Date.now();\n };\n\n this.onBlur = function (e) {\n _this4.fireEvents('onBlur', e);\n _this4.clearDelayTimer();\n if (_this4.isBlurToHide()) {\n _this4.delaySetPopupVisible(false, _this4.props.blurDelay);\n }\n };\n\n this.onContextMenu = function (e) {\n e.preventDefault();\n _this4.fireEvents('onContextMenu', e);\n _this4.setPopupVisible(true, e);\n };\n\n this.onContextMenuClose = function () {\n if (_this4.isContextMenuToShow()) {\n _this4.close();\n }\n };\n\n this.onClick = function (event) {\n _this4.fireEvents('onClick', event);\n // focus will trigger click\n if (_this4.focusTime) {\n var preTime = void 0;\n if (_this4.preClickTime && _this4.preTouchTime) {\n preTime = Math.min(_this4.preClickTime, _this4.preTouchTime);\n } else if (_this4.preClickTime) {\n preTime = _this4.preClickTime;\n } else if (_this4.preTouchTime) {\n preTime = _this4.preTouchTime;\n }\n if (Math.abs(preTime - _this4.focusTime) < 20) {\n return;\n }\n _this4.focusTime = 0;\n }\n _this4.preClickTime = 0;\n _this4.preTouchTime = 0;\n\n // Only prevent default when all the action is click.\n // https://github.com/ant-design/ant-design/issues/17043\n // https://github.com/ant-design/ant-design/issues/17291\n if (_this4.isClickToShow() && (_this4.isClickToHide() || _this4.isBlurToHide()) && event && event.preventDefault) {\n event.preventDefault();\n }\n var nextVisible = !_this4.state.popupVisible;\n if (_this4.isClickToHide() && !nextVisible || nextVisible && _this4.isClickToShow()) {\n _this4.setPopupVisible(!_this4.state.popupVisible, event);\n }\n };\n\n this.onPopupMouseDown = function () {\n var _context$rcTrigger = _this4.context.rcTrigger,\n rcTrigger = _context$rcTrigger === undefined ? {} : _context$rcTrigger;\n\n _this4.hasPopupMouseDown = true;\n\n clearTimeout(_this4.mouseDownTimeout);\n _this4.mouseDownTimeout = setTimeout(function () {\n _this4.hasPopupMouseDown = false;\n }, 0);\n\n if (rcTrigger.onPopupMouseDown) {\n rcTrigger.onPopupMouseDown.apply(rcTrigger, arguments);\n }\n };\n\n this.onDocumentClick = function (event) {\n if (_this4.props.mask && !_this4.props.maskClosable) {\n return;\n }\n\n var target = event.target;\n var root = Object(__WEBPACK_IMPORTED_MODULE_6_react_dom__[\"findDOMNode\"])(_this4);\n if (!Object(__WEBPACK_IMPORTED_MODULE_8_rc_util_es_Dom_contains__[\"a\" /* default */])(root, target) && !_this4.hasPopupMouseDown) {\n _this4.close();\n }\n };\n\n this.getRootDomNode = function () {\n return Object(__WEBPACK_IMPORTED_MODULE_6_react_dom__[\"findDOMNode\"])(_this4);\n };\n\n this.getPopupClassNameFromAlign = function (align) {\n var className = [];\n var _props9 = _this4.props,\n popupPlacement = _props9.popupPlacement,\n builtinPlacements = _props9.builtinPlacements,\n prefixCls = _props9.prefixCls,\n alignPoint = _props9.alignPoint,\n getPopupClassNameFromAlign = _props9.getPopupClassNameFromAlign;\n\n if (popupPlacement && builtinPlacements) {\n className.push(Object(__WEBPACK_IMPORTED_MODULE_13__utils__[\"b\" /* getAlignPopupClassName */])(builtinPlacements, prefixCls, align, alignPoint));\n }\n if (getPopupClassNameFromAlign) {\n className.push(getPopupClassNameFromAlign(align));\n }\n return className.join(' ');\n };\n\n this.getComponent = function () {\n var _props10 = _this4.props,\n prefixCls = _props10.prefixCls,\n destroyPopupOnHide = _props10.destroyPopupOnHide,\n popupClassName = _props10.popupClassName,\n action = _props10.action,\n onPopupAlign = _props10.onPopupAlign,\n popupAnimation = _props10.popupAnimation,\n popupTransitionName = _props10.popupTransitionName,\n popupStyle = _props10.popupStyle,\n mask = _props10.mask,\n maskAnimation = _props10.maskAnimation,\n maskTransitionName = _props10.maskTransitionName,\n zIndex = _props10.zIndex,\n popup = _props10.popup,\n stretch = _props10.stretch,\n alignPoint = _props10.alignPoint;\n var _state = _this4.state,\n popupVisible = _state.popupVisible,\n point = _state.point;\n\n\n var align = _this4.getPopupAlign();\n\n var mouseProps = {};\n if (_this4.isMouseEnterToShow()) {\n mouseProps.onMouseEnter = _this4.onPopupMouseEnter;\n }\n if (_this4.isMouseLeaveToHide()) {\n mouseProps.onMouseLeave = _this4.onPopupMouseLeave;\n }\n\n mouseProps.onMouseDown = _this4.onPopupMouseDown;\n mouseProps.onTouchStart = _this4.onPopupMouseDown;\n\n return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(\n __WEBPACK_IMPORTED_MODULE_14__Popup__[\"a\" /* default */],\n __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({\n prefixCls: prefixCls,\n destroyPopupOnHide: destroyPopupOnHide,\n visible: popupVisible,\n point: alignPoint && point,\n className: popupClassName,\n action: action,\n align: align,\n onAlign: onPopupAlign,\n animation: popupAnimation,\n getClassNameFromAlign: _this4.getPopupClassNameFromAlign\n }, mouseProps, {\n stretch: stretch,\n getRootDomNode: _this4.getRootDomNode,\n style: popupStyle,\n mask: mask,\n zIndex: zIndex,\n transitionName: popupTransitionName,\n maskAnimation: maskAnimation,\n maskTransitionName: maskTransitionName,\n ref: _this4.savePopup\n }),\n typeof popup === 'function' ? popup() : popup\n );\n };\n\n this.getContainer = function () {\n var props = _this4.props;\n\n var popupContainer = document.createElement('div');\n // Make sure default popup container will never cause scrollbar appearing\n // https://github.com/react-component/trigger/issues/41\n popupContainer.style.position = 'absolute';\n popupContainer.style.top = '0';\n popupContainer.style.left = '0';\n popupContainer.style.width = '100%';\n var mountNode = props.getPopupContainer ? props.getPopupContainer(Object(__WEBPACK_IMPORTED_MODULE_6_react_dom__[\"findDOMNode\"])(_this4)) : props.getDocument().body;\n mountNode.appendChild(popupContainer);\n return popupContainer;\n };\n\n this.setPoint = function (point) {\n var alignPoint = _this4.props.alignPoint;\n\n if (!alignPoint || !point) return;\n\n _this4.setState({\n point: {\n pageX: point.pageX,\n pageY: point.pageY\n }\n });\n };\n\n this.handlePortalUpdate = function () {\n if (_this4.state.prevPopupVisible !== _this4.state.popupVisible) {\n _this4.props.afterPopupVisibleChange(_this4.state.popupVisible);\n }\n };\n\n this.savePopup = function (node) {\n _this4._component = node;\n };\n};\n\nObject(__WEBPACK_IMPORTED_MODULE_7_react_lifecycles_compat__[\"polyfill\"])(Trigger);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Trigger);\n\n/***/ }),\n/* 74 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = offset;\n\nvar _contains = __webpack_require__(26);\n\nvar _contains2 = _interopRequireDefault(_contains);\n\nvar _isWindow = __webpack_require__(100);\n\nvar _isWindow2 = _interopRequireDefault(_isWindow);\n\nvar _ownerDocument = __webpack_require__(22);\n\nvar _ownerDocument2 = _interopRequireDefault(_ownerDocument);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction offset(node) {\n var doc = (0, _ownerDocument2.default)(node),\n win = (0, _isWindow2.default)(doc),\n docElem = doc && doc.documentElement,\n box = { top: 0, left: 0, height: 0, width: 0 };\n\n if (!doc) return;\n\n // Make sure it's not a disconnected DOM node\n if (!(0, _contains2.default)(docElem, node)) return box;\n\n if (node.getBoundingClientRect !== undefined) box = node.getBoundingClientRect();\n\n if (box.width || box.height) {\n\n box = {\n top: box.top + (win.pageYOffset || docElem.scrollTop) - (docElem.clientTop || 0),\n left: box.left + (win.pageXOffset || docElem.scrollLeft) - (docElem.clientLeft || 0),\n width: (box.width == null ? node.offsetWidth : box.width) || 0,\n height: (box.height == null ? node.offsetHeight : box.height) || 0\n };\n }\n\n return box;\n}\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 75 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(process) {\n\nexports.__esModule = true;\nexports.noop = undefined;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nexports.bottom = bottom;\nexports.cloneLayout = cloneLayout;\nexports.cloneLayoutItem = cloneLayoutItem;\nexports.childrenEqual = childrenEqual;\nexports.collides = collides;\nexports.compact = compact;\nexports.compactItem = compactItem;\nexports.correctBounds = correctBounds;\nexports.getLayoutItem = getLayoutItem;\nexports.getFirstCollision = getFirstCollision;\nexports.getAllCollisions = getAllCollisions;\nexports.getStatics = getStatics;\nexports.moveElement = moveElement;\nexports.moveElementAwayFromCollision = moveElementAwayFromCollision;\nexports.perc = perc;\nexports.setTransform = setTransform;\nexports.setTopLeft = setTopLeft;\nexports.sortLayoutItems = sortLayoutItems;\nexports.sortLayoutItemsByRowCol = sortLayoutItemsByRowCol;\nexports.sortLayoutItemsByColRow = sortLayoutItemsByColRow;\nexports.synchronizeLayoutWithChildren = synchronizeLayoutWithChildren;\nexports.validateLayout = validateLayout;\nexports.autoBindHandlers = autoBindHandlers;\n\nvar _lodash = __webpack_require__(20);\n\nvar _lodash2 = _interopRequireDefault(_lodash);\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n// All callbacks are of the signature (layout, oldItem, newItem, placeholder, e).\nvar isProduction = process.env.NODE_ENV === \"production\";\nvar DEBUG = false;\n\n/**\n * Return the bottom coordinate of the layout.\n *\n * @param {Array} layout Layout array.\n * @return {Number} Bottom coordinate.\n */\nfunction bottom(layout) {\n var max = 0,\n bottomY = void 0;\n for (var _i = 0, len = layout.length; _i < len; _i++) {\n bottomY = layout[_i].y + layout[_i].h;\n if (bottomY > max) max = bottomY;\n }\n return max;\n}\n\nfunction cloneLayout(layout) {\n var newLayout = Array(layout.length);\n for (var _i2 = 0, len = layout.length; _i2 < len; _i2++) {\n newLayout[_i2] = cloneLayoutItem(layout[_i2]);\n }\n return newLayout;\n}\n\n// Fast path to cloning, since this is monomorphic\nfunction cloneLayoutItem(layoutItem) {\n return {\n w: layoutItem.w,\n h: layoutItem.h,\n x: layoutItem.x,\n y: layoutItem.y,\n i: layoutItem.i,\n minW: layoutItem.minW,\n maxW: layoutItem.maxW,\n minH: layoutItem.minH,\n maxH: layoutItem.maxH,\n moved: Boolean(layoutItem.moved),\n static: Boolean(layoutItem.static),\n // These can be null\n isDraggable: layoutItem.isDraggable,\n isResizable: layoutItem.isResizable\n };\n}\n\n/**\n * Comparing React `children` is a bit difficult. This is a good way to compare them.\n * This will catch differences in keys, order, and length.\n */\nfunction childrenEqual(a, b) {\n return (0, _lodash2.default)(_react2.default.Children.map(a, function (c) {\n return c.key;\n }), _react2.default.Children.map(b, function (c) {\n return c.key;\n }));\n}\n\n/**\n * Given two layoutitems, check if they collide.\n */\nfunction collides(l1, l2) {\n if (l1 === l2) return false; // same element\n if (l1.x + l1.w <= l2.x) return false; // l1 is left of l2\n if (l1.x >= l2.x + l2.w) return false; // l1 is right of l2\n if (l1.y + l1.h <= l2.y) return false; // l1 is above l2\n if (l1.y >= l2.y + l2.h) return false; // l1 is below l2\n return true; // boxes overlap\n}\n\n/**\n * Given a layout, compact it. This involves going down each y coordinate and removing gaps\n * between items.\n *\n * @param {Array} layout Layout.\n * @param {Boolean} verticalCompact Whether or not to compact the layout\n * vertically.\n * @return {Array} Compacted Layout.\n */\nfunction compact(layout, compactType, cols) {\n // Statics go in the compareWith array right away so items flow around them.\n var compareWith = getStatics(layout);\n // We go through the items by row and column.\n var sorted = sortLayoutItems(layout, compactType);\n // Holding for new items.\n var out = Array(layout.length);\n\n for (var _i3 = 0, len = sorted.length; _i3 < len; _i3++) {\n var l = cloneLayoutItem(sorted[_i3]);\n\n // Don't move static elements\n if (!l.static) {\n l = compactItem(compareWith, l, compactType, cols, sorted);\n\n // Add to comparison array. We only collide with items before this one.\n // Statics are already in this array.\n compareWith.push(l);\n }\n\n // Add to output array to make sure they still come out in the right order.\n out[layout.indexOf(sorted[_i3])] = l;\n\n // Clear moved flag, if it exists.\n l.moved = false;\n }\n\n return out;\n}\n\nvar heightWidth = { x: \"w\", y: \"h\" };\n/**\n * Before moving item down, it will check if the movement will cause collisions and move those items down before.\n */\nfunction resolveCompactionCollision(layout, item, moveToCoord, axis) {\n var sizeProp = heightWidth[axis];\n item[axis] += 1;\n var itemIndex = layout.indexOf(item);\n\n // Go through each item we collide with.\n for (var _i4 = itemIndex + 1; _i4 < layout.length; _i4++) {\n var otherItem = layout[_i4];\n // Ignore static items\n if (otherItem.static) continue;\n\n // Optimization: we can break early if we know we're past this el\n // We can do this b/c it's a sorted layout\n if (otherItem.y > item.y + item.h) break;\n\n if (collides(item, otherItem)) {\n resolveCompactionCollision(layout, otherItem, moveToCoord + item[sizeProp], axis);\n }\n }\n\n item[axis] = moveToCoord;\n}\n\n/**\n * Compact an item in the layout.\n */\nfunction compactItem(compareWith, l, compactType, cols, fullLayout) {\n var compactV = compactType === \"vertical\";\n var compactH = compactType === \"horizontal\";\n if (compactV) {\n // Bottom 'y' possible is the bottom of the layout.\n // This allows you to do nice stuff like specify {y: Infinity}\n // This is here because the layout must be sorted in order to get the correct bottom `y`.\n l.y = Math.min(bottom(compareWith), l.y);\n // Move the element up as far as it can go without colliding.\n while (l.y > 0 && !getFirstCollision(compareWith, l)) {\n l.y--;\n }\n } else if (compactH) {\n l.y = Math.min(bottom(compareWith), l.y);\n // Move the element left as far as it can go without colliding.\n while (l.x > 0 && !getFirstCollision(compareWith, l)) {\n l.x--;\n }\n }\n\n // Move it down, and keep moving it down if it's colliding.\n var collides = void 0;\n while (collides = getFirstCollision(compareWith, l)) {\n if (compactH) {\n resolveCompactionCollision(fullLayout, l, collides.x + collides.w, \"x\");\n } else {\n resolveCompactionCollision(fullLayout, l, collides.y + collides.h, \"y\");\n }\n // Since we can't grow without bounds horizontally, if we've overflown, let's move it down and try again.\n if (compactH && l.x + l.w > cols) {\n l.x = cols - l.w;\n l.y++;\n }\n }\n return l;\n}\n\n/**\n * Given a layout, make sure all elements fit within its bounds.\n *\n * @param {Array} layout Layout array.\n * @param {Number} bounds Number of columns.\n */\nfunction correctBounds(layout, bounds) {\n var collidesWith = getStatics(layout);\n for (var _i5 = 0, len = layout.length; _i5 < len; _i5++) {\n var l = layout[_i5];\n // Overflows right\n if (l.x + l.w > bounds.cols) l.x = bounds.cols - l.w;\n // Overflows left\n if (l.x < 0) {\n l.x = 0;\n l.w = bounds.cols;\n }\n if (!l.static) collidesWith.push(l);else {\n // If this is static and collides with other statics, we must move it down.\n // We have to do something nicer than just letting them overlap.\n while (getFirstCollision(collidesWith, l)) {\n l.y++;\n }\n }\n }\n return layout;\n}\n\n/**\n * Get a layout item by ID. Used so we can override later on if necessary.\n *\n * @param {Array} layout Layout array.\n * @param {String} id ID\n * @return {LayoutItem} Item at ID.\n */\nfunction getLayoutItem(layout, id) {\n for (var _i6 = 0, len = layout.length; _i6 < len; _i6++) {\n if (layout[_i6].i === id) return layout[_i6];\n }\n}\n\n/**\n * Returns the first item this layout collides with.\n * It doesn't appear to matter which order we approach this from, although\n * perhaps that is the wrong thing to do.\n *\n * @param {Object} layoutItem Layout item.\n * @return {Object|undefined} A colliding layout item, or undefined.\n */\nfunction getFirstCollision(layout, layoutItem) {\n for (var _i7 = 0, len = layout.length; _i7 < len; _i7++) {\n if (collides(layout[_i7], layoutItem)) return layout[_i7];\n }\n}\n\nfunction getAllCollisions(layout, layoutItem) {\n return layout.filter(function (l) {\n return collides(l, layoutItem);\n });\n}\n\n/**\n * Get all static elements.\n * @param {Array} layout Array of layout objects.\n * @return {Array} Array of static layout items..\n */\nfunction getStatics(layout) {\n return layout.filter(function (l) {\n return l.static;\n });\n}\n\n/**\n * Move an element. Responsible for doing cascading movements of other elements.\n *\n * @param {Array} layout Full layout to modify.\n * @param {LayoutItem} l element to move.\n * @param {Number} [x] X position in grid units.\n * @param {Number} [y] Y position in grid units.\n */\nfunction moveElement(layout, l, x, y, isUserAction, preventCollision, compactType, cols) {\n if (l.static) return layout;\n\n // Short-circuit if nothing to do.\n if (l.y === y && l.x === x) return layout;\n\n log(\"Moving element \" + l.i + \" to [\" + String(x) + \",\" + String(y) + \"] from [\" + l.x + \",\" + l.y + \"]\");\n var oldX = l.x;\n var oldY = l.y;\n\n // This is quite a bit faster than extending the object\n if (typeof x === 'number') l.x = x;\n if (typeof y === 'number') l.y = y;\n l.moved = true;\n\n // If this collides with anything, move it.\n // When doing this comparison, we have to sort the items we compare with\n // to ensure, in the case of multiple collisions, that we're getting the\n // nearest collision.\n var sorted = sortLayoutItems(layout, compactType);\n var movingUp = compactType === \"vertical\" && typeof y === 'number' ? oldY >= y : compactType === \"horizontal\" && typeof x === 'number' ? oldX >= x : false;\n if (movingUp) sorted = sorted.reverse();\n var collisions = getAllCollisions(sorted, l);\n\n // There was a collision; abort\n if (preventCollision && collisions.length) {\n log(\"Collision prevented on \" + l.i + \", reverting.\");\n l.x = oldX;\n l.y = oldY;\n l.moved = false;\n return layout;\n }\n\n // Move each item that collides away from this element.\n for (var _i8 = 0, len = collisions.length; _i8 < len; _i8++) {\n var collision = collisions[_i8];\n log(\"Resolving collision between \" + l.i + \" at [\" + l.x + \",\" + l.y + \"] and \" + collision.i + \" at [\" + collision.x + \",\" + collision.y + \"]\");\n\n // Short circuit so we can't infinite loop\n if (collision.moved) continue;\n\n // Don't move static items - we have to move *this* element away\n if (collision.static) {\n layout = moveElementAwayFromCollision(layout, collision, l, isUserAction, compactType, cols);\n } else {\n layout = moveElementAwayFromCollision(layout, l, collision, isUserAction, compactType, cols);\n }\n }\n\n return layout;\n}\n\n/**\n * This is where the magic needs to happen - given a collision, move an element away from the collision.\n * We attempt to move it up if there's room, otherwise it goes below.\n *\n * @param {Array} layout Full layout to modify.\n * @param {LayoutItem} collidesWith Layout item we're colliding with.\n * @param {LayoutItem} itemToMove Layout item we're moving.\n */\nfunction moveElementAwayFromCollision(layout, collidesWith, itemToMove, isUserAction, compactType, cols) {\n var compactH = compactType === \"horizontal\";\n var compactV = compactType === \"vertical\";\n var preventCollision = false; // we're already colliding\n\n // If there is enough space above the collision to put this element, move it there.\n // We only do this on the main collision as this can get funky in cascades and cause\n // unwanted swapping behavior.\n if (isUserAction) {\n // Reset isUserAction flag because we're not in the main collision anymore.\n isUserAction = false;\n\n // Make a mock item so we don't modify the item here, only modify in moveElement.\n var fakeItem = {\n x: compactH ? Math.max(collidesWith.x - itemToMove.w, 0) : itemToMove.x,\n y: compactV ? Math.max(collidesWith.y - itemToMove.h, 0) : itemToMove.y,\n w: itemToMove.w,\n h: itemToMove.h,\n i: \"-1\"\n };\n\n // No collision? If so, we can go up there; otherwise, we'll end up moving down as normal\n if (!getFirstCollision(layout, fakeItem)) {\n log(\"Doing reverse collision on \" + itemToMove.i + \" up to [\" + fakeItem.x + \",\" + fakeItem.y + \"].\");\n return moveElement(layout, itemToMove, compactH ? fakeItem.x : undefined, compactV ? fakeItem.y : undefined, isUserAction, preventCollision, compactType, cols);\n }\n }\n\n return moveElement(layout, itemToMove, compactH ? itemToMove.x + 1 : undefined, compactV ? itemToMove.y + 1 : undefined, isUserAction, preventCollision, compactType, cols);\n}\n\n/**\n * Helper to convert a number to a percentage string.\n *\n * @param {Number} num Any number\n * @return {String} That number as a percentage.\n */\nfunction perc(num) {\n return num * 100 + \"%\";\n}\n\nfunction setTransform(_ref) {\n var top = _ref.top,\n left = _ref.left,\n width = _ref.width,\n height = _ref.height;\n\n // Replace unitless items with px\n var translate = \"translate(\" + left + \"px,\" + top + \"px)\";\n return {\n transform: translate,\n WebkitTransform: translate,\n MozTransform: translate,\n msTransform: translate,\n OTransform: translate,\n width: width + \"px\",\n height: height + \"px\",\n position: \"absolute\"\n };\n}\n\nfunction setTopLeft(_ref2) {\n var top = _ref2.top,\n left = _ref2.left,\n width = _ref2.width,\n height = _ref2.height;\n\n return {\n top: top + \"px\",\n left: left + \"px\",\n width: width + \"px\",\n height: height + \"px\",\n position: \"absolute\"\n };\n}\n\n/**\n * Get layout items sorted from top left to right and down.\n *\n * @return {Array} Array of layout objects.\n * @return {Array} Layout, sorted static items first.\n */\nfunction sortLayoutItems(layout, compactType) {\n if (compactType === \"horizontal\") return sortLayoutItemsByColRow(layout);else return sortLayoutItemsByRowCol(layout);\n}\n\nfunction sortLayoutItemsByRowCol(layout) {\n return [].concat(layout).sort(function (a, b) {\n if (a.y > b.y || a.y === b.y && a.x > b.x) {\n return 1;\n } else if (a.y === b.y && a.x === b.x) {\n // Without this, we can get different sort results in IE vs. Chrome/FF\n return 0;\n }\n return -1;\n });\n}\n\nfunction sortLayoutItemsByColRow(layout) {\n return [].concat(layout).sort(function (a, b) {\n if (a.x > b.x || a.x === b.x && a.y > b.y) {\n return 1;\n }\n return -1;\n });\n}\n\n/**\n * Generate a layout using the initialLayout and children as a template.\n * Missing entries will be added, extraneous ones will be truncated.\n *\n * @param {Array} initialLayout Layout passed in through props.\n * @param {String} breakpoint Current responsive breakpoint.\n * @param {?String} compact Compaction option.\n * @return {Array} Working layout.\n */\nfunction synchronizeLayoutWithChildren(initialLayout, children, cols, compactType) {\n initialLayout = initialLayout || [];\n\n // Generate one layout item per child.\n var layout = [];\n _react2.default.Children.forEach(children, function (child, i) {\n // Don't overwrite if it already exists.\n var exists = getLayoutItem(initialLayout, String(child.key));\n if (exists) {\n layout[i] = cloneLayoutItem(exists);\n } else {\n if (!isProduction && child.props._grid) {\n console.warn(\"`_grid` properties on children have been deprecated as of React 15.2. \" + // eslint-disable-line\n \"Please use `data-grid` or add your properties directly to the `layout`.\");\n }\n var g = child.props[\"data-grid\"] || child.props._grid;\n\n // Hey, this item has a data-grid property, use it.\n if (g) {\n if (!isProduction) {\n validateLayout([g], \"ReactGridLayout.children\");\n }\n layout[i] = cloneLayoutItem(_extends({}, g, { i: child.key }));\n } else {\n // Nothing provided: ensure this is added to the bottom\n layout[i] = cloneLayoutItem({\n w: 1,\n h: 1,\n x: 0,\n y: bottom(layout),\n i: String(child.key)\n });\n }\n }\n });\n\n // Correct the layout.\n layout = correctBounds(layout, { cols: cols });\n layout = compact(layout, compactType, cols);\n\n return layout;\n}\n\n/**\n * Validate a layout. Throws errors.\n *\n * @param {Array} layout Array of layout items.\n * @param {String} [contextName] Context name for errors.\n * @throw {Error} Validation error.\n */\nfunction validateLayout(layout) {\n var contextName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \"Layout\";\n\n var subProps = [\"x\", \"y\", \"w\", \"h\"];\n if (!Array.isArray(layout)) throw new Error(contextName + \" must be an array!\");\n for (var _i9 = 0, len = layout.length; _i9 < len; _i9++) {\n var item = layout[_i9];\n for (var j = 0; j < subProps.length; j++) {\n if (typeof item[subProps[j]] !== \"number\") {\n throw new Error(\"ReactGridLayout: \" + contextName + \"[\" + _i9 + \"].\" + subProps[j] + \" must be a number!\");\n }\n }\n if (item.i && typeof item.i !== \"string\") {\n throw new Error(\"ReactGridLayout: \" + contextName + \"[\" + _i9 + \"].i must be a string!\");\n }\n if (item.static !== undefined && typeof item.static !== \"boolean\") {\n throw new Error(\"ReactGridLayout: \" + contextName + \"[\" + _i9 + \"].static must be a boolean!\");\n }\n }\n}\n\n// Flow can't really figure this out, so we just use Object\nfunction autoBindHandlers(el, fns) {\n fns.forEach(function (key) {\n return el[key] = el[key].bind(el);\n });\n}\n\nfunction log() {\n var _console;\n\n if (!DEBUG) return;\n // eslint-disable-next-line no-console\n (_console = console).log.apply(_console, arguments);\n}\n\nvar noop = exports.noop = function noop() {};\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5)))\n\n/***/ }),\n/* 76 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _ownerDocument = __webpack_require__(42);\n\nvar _ownerDocument2 = _interopRequireDefault(_ownerDocument);\n\nvar _getContainer = __webpack_require__(329);\n\nvar _getContainer2 = _interopRequireDefault(_getContainer);\n\nvar _tinperBeeCore = __webpack_require__(60);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar isReact16 = _reactDom2[\"default\"].createPortal !== undefined;\nvar createPortal = isReact16 ? _reactDom2[\"default\"].createPortal : _reactDom2[\"default\"].unstable_renderSubtreeIntoContainer;\n\nvar propTypes = {\n /**\n * 存放子组件的容器\n */\n container: _propTypes2[\"default\"].oneOfType([_tinperBeeCore.componentOrElement, _propTypes2[\"default\"].func])\n};\n\nvar defaultProps = {};\n\n/**\n * Portal组件是将子组件渲染\n */\n\nvar Portal = function (_Component) {\n _inherits(Portal, _Component);\n\n function Portal(props) {\n _classCallCheck(this, Portal);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props));\n\n _this.getMountNode = _this.getMountNode.bind(_this);\n _this.getOverlayDOMNode = _this.getOverlayDOMNode.bind(_this);\n _this.mountOverlayTarget = _this.mountOverlayTarget.bind(_this);\n _this.unmountOverlayTarget = _this.unmountOverlayTarget.bind(_this);\n _this.renderOverlay = _this.renderOverlay.bind(_this);\n _this.unrenderOverlay = _this.unrenderOverlay.bind(_this);\n\n _this.overlayTarget = isReact16 ? document.createElement('div') : null;\n return _this;\n }\n\n Portal.prototype.componentDidMount = function componentDidMount() {\n if (isReact16) {\n this.portalContainerNode = (0, _getContainer2[\"default\"])(this.props.container, (0, _ownerDocument2[\"default\"])(this).body);\n this.portalContainerNode.appendChild(this.overlayTarget);\n } else {\n this.renderOverlay();\n }\n\n this.mounted = true;\n };\n\n Portal.prototype.componentDidUpdate = function componentDidUpdate() {\n if (isReact16) {\n var overlay = !this.props.children ? null : _react2[\"default\"].Children.only(this.props.children);\n if (overlay === null) {\n this.unrenderOverlay();\n this.unmountOverlayTarget();\n } else {}\n } else {\n this.renderOverlay();\n }\n };\n //this._overlayTarget为当前的要添加的子组件, this._portalContainerNode要添加组件的容器元素\n\n\n Portal.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n if (this.overlayTarget && nextProps.container !== this.props.container) {\n this.portalContainerNode.removeChild(this.overlayTarget);\n this.portalContainerNode = (0, _getContainer2[\"default\"])(nextProps.container, (0, _ownerDocument2[\"default\"])(this).body);\n this.portalContainerNode.appendChild(this.overlayTarget);\n }\n };\n\n Portal.prototype.componentWillUnmount = function componentWillUnmount() {\n this.unrenderOverlay();\n this.unmountOverlayTarget();\n\n this.mounted = false;\n };\n\n Portal.prototype.getMountNode = function getMountNode() {\n return this.overlayTarget;\n };\n\n Portal.prototype.getOverlayDOMNode = function getOverlayDOMNode() {\n if (!this.mounted) {\n throw new Error('getOverlayDOMNode(): A component must be mounted to have a DOM node.');\n }\n\n if (this.overlayInstance) {\n return _reactDom2[\"default\"].findDOMNode(this.overlayInstance);\n }\n\n return null;\n };\n\n /**\n * 如果要添加的子组件不存在,就将div添加到要添加容器的DOM中;\n */\n\n Portal.prototype.mountOverlayTarget = function mountOverlayTarget() {\n if (!this.overlayTarget) {\n this.overlayTarget = document.createElement('div');\n this.portalContainerNode = (0, _getContainer2[\"default\"])(this.props.container, (0, _ownerDocument2[\"default\"])(this).body);\n this.portalContainerNode.appendChild(this.overlayTarget);\n }\n };\n /**\n * 将要添加的子元素从容器中移除,并把变量置为null\n */\n\n\n Portal.prototype.unmountOverlayTarget = function unmountOverlayTarget() {\n if (this.overlayTarget) {\n this.portalContainerNode.removeChild(this.overlayTarget);\n this.overlayTarget = null;\n }\n this.portalContainerNode = null;\n };\n /**\n * 手动渲染_overlayTarget\n */\n\n\n Portal.prototype.renderOverlay = function renderOverlay() {\n\n var overlay = !this.props.children ? null : _react2[\"default\"].Children.only(this.props.children);\n\n // Save reference for future access.\n if (overlay !== null) {\n this.mountOverlayTarget();\n this.overlayInstance = _reactDom2[\"default\"].unstable_renderSubtreeIntoContainer(this, overlay, this.overlayTarget);\n } else {\n // Unrender if the component is null for transitions to null\n this.unrenderOverlay();\n this.unmountOverlayTarget();\n }\n };\n /**\n * 销毁_overlayTarget组件。并把_overlayInstance置为null\n */\n\n\n Portal.prototype.unrenderOverlay = function unrenderOverlay() {\n if (this.overlayTarget) {\n !isReact16 && _reactDom2[\"default\"].unmountComponentAtNode(this.overlayTarget);\n this.overlayInstance = null;\n }\n };\n\n Portal.prototype.render = function render() {\n if (!isReact16) {\n return null;\n }\n\n var overlay = !this.props.children ? null : _react2[\"default\"].Children.only(this.props.children);\n\n return _reactDom2[\"default\"].createPortal(overlay, this.overlayTarget);\n };\n\n return Portal;\n}(_react.Component);\n\n;\n\nPortal.propTypes = propTypes;\nPortal.defaultProps = defaultProps;\n\nexports[\"default\"] = Portal;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 77 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.toArray = toArray;\nexports.getActiveIndex = getActiveIndex;\nexports.getActiveKey = getActiveKey;\nexports.setTransform = setTransform;\nexports.isTransformSupported = isTransformSupported;\nexports.setTransition = setTransition;\nexports.getTransformPropValue = getTransformPropValue;\nexports.isVertical = isVertical;\nexports.getTransformByIndex = getTransformByIndex;\nexports.getMarginStyle = getMarginStyle;\nexports.getStyle = getStyle;\nexports.setPxStyle = setPxStyle;\nexports.getLeft = getLeft;\nexports.getTop = getTop;\nexports.getDataAttr = getDataAttr;\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } /**\n * This source code is quoted from rc-tabs.\n * homepage: https://github.com/react-component/tabs\n */\n\n\nfunction toArray(children) {\n // allow [c,[a,b]]\n var c = [];\n _react2[\"default\"].Children.forEach(children, function (child) {\n if (child) {\n c.push(child);\n }\n });\n return c;\n}\n\nfunction getActiveIndex(children, activeKey) {\n var c = toArray(children);\n for (var i = 0; i < c.length; i++) {\n if (c[i].key === activeKey) {\n return i;\n }\n }\n return -1;\n}\n\nfunction getActiveKey(children, index) {\n var c = toArray(children);\n return c[index].key;\n}\n\nfunction setTransform(style, v) {\n style.transform = v;\n style.webkitTransform = v;\n style.mozTransform = v;\n}\n\nfunction isTransformSupported(style) {\n return 'transform' in style || 'webkitTransform' in style || 'MozTransform' in style;\n}\n\nfunction setTransition(style, v) {\n style.transition = v;\n style.webkitTransition = v;\n style.MozTransition = v;\n}\nfunction getTransformPropValue(v) {\n return {\n transform: v,\n WebkitTransform: v,\n MozTransform: v\n };\n}\n\nfunction isVertical(tabBarPosition) {\n return tabBarPosition === 'left' || tabBarPosition === 'right';\n}\n\nfunction getTransformByIndex(index, tabBarPosition) {\n var translate = isVertical(tabBarPosition) ? 'translateY' : 'translateX';\n return translate + '(' + -index * 100 + '%) translateZ(0)';\n}\n\nfunction getMarginStyle(index, tabBarPosition) {\n var marginDirection = isVertical(tabBarPosition) ? 'marginTop' : 'marginLeft';\n return _defineProperty({}, marginDirection, -index * 100 + '%');\n}\n\nfunction getStyle(el, property) {\n return +getComputedStyle(el).getPropertyValue(property).replace('px', '');\n}\n\nfunction setPxStyle(el, property, value) {\n el.style[property] = value + 'px';\n}\n\nfunction toNum(style, property) {\n return +style.getPropertyValue(property).replace('px', '');\n}\n\nfunction getTypeValue(start, current, end, tabNode, wrapperNode) {\n var total = getStyle(wrapperNode, 'padding-' + start);\n if (!tabNode || !tabNode.parentNode) {\n return total;\n }\n\n var childNodes = tabNode.parentNode.childNodes;\n\n Array.prototype.some.call(childNodes, function (node) {\n var style = window.getComputedStyle(node);\n\n if (node !== tabNode) {\n total += toNum(style, 'margin-' + start);\n total += node[current];\n total += toNum(style, 'margin-' + end);\n\n if (style.boxSizing === 'content-box') {\n total += toNum(style, 'border-' + start + '-width') + toNum(style, 'border-' + end + '-width');\n }\n return false;\n }\n\n // We need count current node margin\n // ref: https://github.com/react-component/tabs/pull/139#issuecomment-431005262\n total += toNum(style, 'margin-' + start);\n\n return true;\n });\n\n return total;\n}\n\nfunction getLeft(tabNode, wrapperNode) {\n return getTypeValue('left', 'offsetWidth', 'right', tabNode, wrapperNode);\n}\n\nfunction getTop(tabNode, wrapperNode) {\n return getTypeValue('top', 'offsetHeight', 'bottom', tabNode, wrapperNode);\n}\n\nfunction getDataAttr(props) {\n return Object.keys(props).reduce(function (prev, key) {\n if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {\n prev[key] = props[key];\n }\n return prev;\n }, {});\n}\n\n/***/ }),\n/* 78 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _tinperBeeCore = __webpack_require__(79);\n\nvar _reactLifecyclesCompat = __webpack_require__(14);\n\nvar _moment = __webpack_require__(4);\n\nvar _moment2 = _interopRequireDefault(_moment);\n\nvar _util = __webpack_require__(32);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar cachedSelectionStart = void 0;\nvar cachedSelectionEnd = void 0;\nvar dateInputInstance = void 0;\n\nvar DateInput = function (_React$Component) {\n _inherits(DateInput, _React$Component);\n\n function DateInput(props) {\n _classCallCheck(this, DateInput);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));\n\n _initialiseProps.call(_this);\n\n var selectedValue = props.selectedValue;\n\n _this.state = {\n str: (0, _util.formatDate)(selectedValue, _this.props.format),\n invalid: false,\n hasFocus: false\n };\n return _this;\n }\n\n DateInput.prototype.componentDidUpdate = function componentDidUpdate() {\n if (dateInputInstance && this.state.hasFocus && !this.state.invalid && !(cachedSelectionStart === 0 && cachedSelectionEnd === 0)) {\n dateInputInstance.setSelectionRange(cachedSelectionStart, cachedSelectionEnd);\n }\n };\n\n DateInput.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, state) {\n var newState = {};\n\n if (dateInputInstance) {\n cachedSelectionStart = dateInputInstance.selectionStart;\n cachedSelectionEnd = dateInputInstance.selectionEnd;\n }\n // when popup show, click body will call this, bug!\n var selectedValue = nextProps.selectedValue;\n if (!state.hasFocus) {\n newState = {\n str: (0, _util.formatDate)(selectedValue, nextProps.format),\n invalid: false\n };\n }\n\n return newState;\n };\n\n DateInput.getInstance = function getInstance() {\n return dateInputInstance;\n };\n\n DateInput.prototype.render = function render() {\n var props = this.props;\n var _state = this.state,\n invalid = _state.invalid,\n str = _state.str;\n var locale = props.locale,\n prefixCls = props.prefixCls,\n placeholder = props.placeholder,\n clearIcon = props.clearIcon,\n renderError = props.renderError,\n inputTabIndex = props.inputTabIndex;\n\n var invalidClass = invalid ? prefixCls + '-input-invalid' : '';\n return _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-input-wrap' },\n _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-date-input-wrap' },\n _react2[\"default\"].createElement('input', {\n ref: this.saveDateInput,\n className: prefixCls + '-input ' + invalidClass,\n value: str ? str : (0, _util.formatDate)(props.selectedValue, props.format),\n disabled: props.disabled,\n placeholder: placeholder,\n onChange: this.onInputChange,\n onKeyDown: this.onKeyDown,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n tabIndex: inputTabIndex\n }),\n invalid && renderError ? renderError() : ''\n ),\n props.showClear ? _react2[\"default\"].createElement(\n 'a',\n {\n role: 'button',\n title: locale.clear,\n onClick: this.onClear\n },\n clearIcon || _react2[\"default\"].createElement('span', { className: prefixCls + '-clear-btn uf uf-close-c' })\n ) : null\n );\n };\n\n return DateInput;\n}(_react2[\"default\"].Component);\n\nDateInput.propTypes = {\n prefixCls: _propTypes2[\"default\"].string,\n timePicker: _propTypes2[\"default\"].object,\n value: _propTypes2[\"default\"].object,\n disabledTime: _propTypes2[\"default\"].any,\n format: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].string, _propTypes2[\"default\"].arrayOf(_propTypes2[\"default\"].string)]),\n locale: _propTypes2[\"default\"].object,\n disabledDate: _propTypes2[\"default\"].func,\n onChange: _propTypes2[\"default\"].func,\n onClear: _propTypes2[\"default\"].func,\n placeholder: _propTypes2[\"default\"].string,\n onSelect: _propTypes2[\"default\"].func,\n selectedValue: _propTypes2[\"default\"].object,\n clearIcon: _propTypes2[\"default\"].node\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this2 = this;\n\n this.onClear = function () {\n _this2.setState({\n str: ''\n });\n _this2.props.onClear(null);\n };\n\n this.onInputChange = function (event) {\n var str = event.target.value;\n var _props = _this2.props,\n disabledDate = _props.disabledDate,\n format = _props.format,\n onChange = _props.onChange,\n selectedValue = _props.selectedValue,\n validatorFunc = _props.validatorFunc;\n\n // 没有内容,合法并直接退出\n\n if (!str) {\n onChange(null);\n _this2.setState({\n // invalid: false,\n str: str\n });\n return;\n }\n\n // 不合法直接退出\n var parsed = (0, _moment2[\"default\"])(str, format, true);\n if (!parsed.isValid()) {\n _this2.setState({\n // invalid: true,\n str: str\n });\n return;\n }\n if (!_this2.props.validatorFunc(str)) {\n _this2.setState({\n str: str\n });\n return;\n };\n\n var value = _this2.props.value.clone();\n value.year(parsed.year()).month(parsed.month()).date(parsed.date()).hour(parsed.hour()).minute(parsed.minute()).second(parsed.second());\n\n if (!value || disabledDate && disabledDate(value)) {\n _this2.setState({\n // invalid: true,\n str: str\n });\n return;\n }\n\n if (selectedValue !== value || selectedValue && value && !selectedValue.isSame(value)) {\n _this2.setState({\n // invalid: false,\n str: str\n });\n onChange(value);\n }\n };\n\n this.onFocus = function () {\n _this2.setState({ hasFocus: true });\n };\n\n this.onBlur = function (e) {\n var str = e.target.value;\n var _props2 = _this2.props,\n disabledDate = _props2.disabledDate,\n format = _props2.format,\n onChange = _props2.onChange,\n selectedValue = _props2.selectedValue;\n\n // 没有内容,合法并直接退出\n\n if (!str) {\n _this2.setState({\n invalid: false\n });\n return;\n }\n\n // 不合法直接退出\n var parsed = (0, _moment2[\"default\"])(str, format, true);\n if (!parsed.isValid()) {\n _this2.setState({\n invalid: true\n });\n return;\n }\n if (!_this2.props.validatorFunc(str)) {\n _this2.setState({\n invalid: true\n });\n return;\n };\n\n var value = _this2.props.value.clone();\n value.year(parsed.year()).month(parsed.month()).date(parsed.date()).hour(parsed.hour()).minute(parsed.minute()).second(parsed.second());\n\n if (!value || disabledDate && disabledDate(value)) {\n _this2.setState({\n invalid: true\n });\n return;\n }\n\n if (selectedValue !== value || selectedValue && value && !selectedValue.isSame(value)) {\n _this2.setState({\n invalid: false\n });\n }\n\n _this2.setState(function (prevState, prevProps) {\n return {\n hasFocus: false,\n str: (0, _util.formatDate)(prevProps.value, prevProps.format)\n };\n });\n _this2.props.onBlur && _this2.props.onBlur(e);\n };\n\n this.onKeyDown = function (e) {\n var _props3 = _this2.props,\n onSelect = _props3.onSelect,\n value = _props3.value,\n onKeyDown = _props3.onKeyDown,\n format = _props3.format,\n isRange = _props3.isRange,\n validatorFunc = _props3.validatorFunc,\n disabledDate = _props3.disabledDate;\n\n var str = e.target.value;\n var parsed = (0, _moment2[\"default\"])(str, format, true);\n if (e.keyCode === _tinperBeeCore.KeyCode.ENTER) {\n if (parsed.isValid() && onSelect) {\n isRange ? onSelect(parsed.clone()) : onSelect(value.clone()); //FIX https://github.com/iuap-design/tinper-bee/issues/183\n }\n // 没有内容,回填默认值,并关闭面板\n if (!str) {\n _this2.setState({\n invalid: false\n });\n onSelect && onSelect((0, _moment2[\"default\"])());\n return;\n }\n // 有内容,判断是否合法\n if (!parsed.isValid()) {\n _this2.setState({\n invalid: true\n });\n }\n if (!validatorFunc(str)) {\n _this2.setState({\n invalid: true\n });\n }\n value.year(parsed.year()).month(parsed.month()).date(parsed.date()).hour(parsed.hour()).minute(parsed.minute()).second(parsed.second());\n\n if (!value || disabledDate && disabledDate(value)) {\n _this2.setState({\n invalid: true\n });\n }\n }\n // if (e.keyCode === KeyCode.ENTER && onSelect) {\n // onSelect(value.clone());\n // }\n onKeyDown && onKeyDown(e);\n };\n\n this.getRootDOMNode = function () {\n return _reactDom2[\"default\"].findDOMNode(_this2);\n };\n\n this.focus = function () {\n if (dateInputInstance) {\n dateInputInstance.focus();\n }\n };\n\n this.saveDateInput = function (dateInput) {\n dateInputInstance = dateInput;\n };\n};\n\n(0, _reactLifecyclesCompat.polyfill)(DateInput);\n\nexports[\"default\"] = DateInput;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 79 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined;\n\nvar _all2 = __webpack_require__(1276);\n\nvar _all3 = _interopRequireDefault(_all2);\n\nvar _componentOrElement2 = __webpack_require__(1277);\n\nvar _componentOrElement3 = _interopRequireDefault(_componentOrElement2);\n\nvar _deprecated2 = __webpack_require__(1278);\n\nvar _deprecated3 = _interopRequireDefault(_deprecated2);\n\nvar _elementType2 = __webpack_require__(1279);\n\nvar _elementType3 = _interopRequireDefault(_elementType2);\n\nvar _isRequiredForA11y2 = __webpack_require__(1280);\n\nvar _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2);\n\nvar _splitComponent2 = __webpack_require__(1281);\n\nvar _splitComponent3 = _interopRequireDefault(_splitComponent2);\n\nvar _createChainedFunction2 = __webpack_require__(1282);\n\nvar _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2);\n\nvar _keyCode = __webpack_require__(1283);\n\nvar _keyCode2 = _interopRequireDefault(_keyCode);\n\nvar _contains2 = __webpack_require__(1284);\n\nvar _contains3 = _interopRequireDefault(_contains2);\n\nvar _addEventListener2 = __webpack_require__(467);\n\nvar _addEventListener3 = _interopRequireDefault(_addEventListener2);\n\nvar _cssAnimation2 = __webpack_require__(1285);\n\nvar _cssAnimation3 = _interopRequireDefault(_cssAnimation2);\n\nvar _toArray2 = __webpack_require__(1287);\n\nvar _toArray3 = _interopRequireDefault(_toArray2);\n\nvar _Align2 = __webpack_require__(1288);\n\nvar _Align3 = _interopRequireDefault(_Align2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.all = _all3.default;\nexports.componentOrElement = _componentOrElement3.default;\nexports.deprecated = _deprecated3.default;\nexports.elementType = _elementType3.default;\nexports.isRequiredForA11y = _isRequiredForA11y3.default;\nexports.splitComponent = _splitComponent3.default;\nexports.createChainedFunction = _createChainedFunction3.default;\nexports.KeyCode = _keyCode2.default;\nexports.contains = _contains3.default;\nexports.addEventListener = _addEventListener3.default;\nexports.cssAnimation = _cssAnimation3.default;\nexports.toArray = _toArray3.default;\n//export getContainerRenderMixin from './getContainerRenderMixin';\n\nexports.Align = _Align3.default;\n\n/***/ }),\n/* 80 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _reactLifecyclesCompat = __webpack_require__(14);\n\nvar _createChainedFunction = __webpack_require__(296);\n\nvar _createChainedFunction2 = _interopRequireDefault(_createChainedFunction);\n\nvar _KeyCode = __webpack_require__(59);\n\nvar _KeyCode2 = _interopRequireDefault(_KeyCode);\n\nvar _placements = __webpack_require__(1291);\n\nvar _placements2 = _interopRequireDefault(_placements);\n\nvar _rcTrigger = __webpack_require__(73);\n\nvar _rcTrigger2 = _interopRequireDefault(_rcTrigger);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nfunction noop() {}\n\nfunction refFn(field, component) {\n this[field] = component;\n}\n\nvar Picker = function (_React$Component) {\n _inherits(Picker, _React$Component);\n\n function Picker(props) {\n _classCallCheck(this, Picker);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));\n\n _initialiseProps.call(_this);\n\n var open = void 0;\n if ('open' in props) {\n open = props.open;\n } else {\n open = props.defaultOpen;\n }\n var value = props.value || props.defaultValue;\n _this.saveCalendarRef = refFn.bind(_this, 'calendarInstance');\n\n _this.state = {\n open: open,\n value: value\n };\n return _this;\n }\n\n Picker.prototype.componentDidUpdate = function componentDidUpdate(_, prevState) {\n if (!prevState.open && this.state.open) {\n // setTimeout is for making sure saveCalendarRef happen before focusCalendar\n this.focusTimeout = setTimeout(this.focusCalendar, 0, this);\n }\n };\n\n Picker.prototype.componentWillUnmount = function componentWillUnmount() {\n clearTimeout(this.focusTimeout);\n };\n\n Picker.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps) {\n var newState = {};\n var value = nextProps.value,\n open = nextProps.open;\n\n if ('value' in nextProps) {\n newState.value = value;\n }\n if (open !== undefined) {\n newState.open = open;\n }\n return newState;\n };\n\n Picker.prototype.render = function render() {\n var props = this.props;\n var prefixCls = props.prefixCls,\n placement = props.placement,\n style = props.style,\n getCalendarContainer = props.getCalendarContainer,\n align = props.align,\n animation = props.animation,\n disabled = props.disabled,\n dropdownClassName = props.dropdownClassName,\n transitionName = props.transitionName,\n children = props.children;\n\n var state = this.state;\n return _react2[\"default\"].createElement(\n _rcTrigger2[\"default\"],\n {\n popup: this.getCalendarElement(),\n popupAlign: align,\n builtinPlacements: _placements2[\"default\"],\n popupPlacement: placement,\n action: disabled && !state.open ? [] : ['click'],\n destroyPopupOnHide: true,\n getPopupContainer: getCalendarContainer,\n popupStyle: style,\n popupAnimation: animation,\n popupTransitionName: transitionName,\n popupVisible: state.open,\n onPopupVisibleChange: this.onVisibleChange,\n prefixCls: prefixCls,\n popupClassName: dropdownClassName\n },\n _react2[\"default\"].cloneElement(children(state, props), { onKeyDown: this.onKeyDown })\n );\n };\n\n return Picker;\n}(_react2[\"default\"].Component);\n\nPicker.propTypes = {\n animation: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].func, _propTypes2[\"default\"].string]),\n disabled: _propTypes2[\"default\"].bool,\n transitionName: _propTypes2[\"default\"].string,\n onChange: _propTypes2[\"default\"].func,\n onOpenChange: _propTypes2[\"default\"].func,\n children: _propTypes2[\"default\"].func,\n getCalendarContainer: _propTypes2[\"default\"].func,\n calendar: _propTypes2[\"default\"].element,\n style: _propTypes2[\"default\"].object,\n open: _propTypes2[\"default\"].bool,\n defaultOpen: _propTypes2[\"default\"].bool,\n prefixCls: _propTypes2[\"default\"].string,\n placement: _propTypes2[\"default\"].any,\n value: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].object, _propTypes2[\"default\"].array]),\n defaultValue: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].object, _propTypes2[\"default\"].array]),\n align: _propTypes2[\"default\"].object,\n enterKeyDown: _propTypes2[\"default\"].bool //enter 键是否打开日期面板\n};\nPicker.defaultProps = {\n prefixCls: 'rc-calendar-picker',\n style: {},\n align: {},\n placement: 'bottomLeft',\n defaultOpen: false,\n onChange: noop,\n onOpenChange: noop,\n enterKeyDown: true\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this2 = this;\n\n this.onCalendarKeyDown = function (event) {\n if (event.keyCode === _KeyCode2[\"default\"].ESC) {\n event.stopPropagation();\n _this2.close(_this2.focus);\n }\n _this2.props.onKeyDown && _this2.props.onKeyDown(event);\n };\n\n this.onCalendarSelect = function (value) {\n var cause = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n var props = _this2.props;\n var isDisabled = props.disabledDate && props.disabledDate(value);\n if (isDisabled) return;\n if (!('value' in props)) {\n _this2.setState({\n value: value\n });\n }\n if (cause.source === 'keyboard' || cause.source === 'dateInputSelect' || !props.calendar.props.timePicker && cause.source !== 'dateInput' || cause.source === 'todayButton') {\n _this2.close(_this2.focus);\n }\n props.onChange(value);\n };\n\n this.onKeyDown = function (event) {\n var enterKeyDown = _this2.props.enterKeyDown;\n\n if (event.keyCode === _KeyCode2[\"default\"].DOWN || enterKeyDown && event.keyCode === _KeyCode2[\"default\"].ENTER) {\n if (!_this2.state.open) _this2.open();\n event.preventDefault();\n }\n _this2.props.onKeyDown && _this2.props.onKeyDown(event);\n };\n\n this.onCalendarOk = function () {\n _this2.close(_this2.focus);\n };\n\n this.onCalendarClear = function () {\n _this2.close(_this2.focus);\n };\n\n this.onVisibleChange = function (open) {\n _this2.setOpen(open);\n };\n\n this.getCalendarElement = function () {\n var props = _this2.props;\n var state = _this2.state;\n var calendarProps = props.calendar.props;\n var value = state.value;\n\n var defaultValue = value;\n var extraProps = {\n ref: _this2.saveCalendarRef,\n defaultValue: defaultValue || calendarProps.defaultValue,\n selectedValue: value,\n onKeyDown: _this2.onCalendarKeyDown,\n onOk: (0, _createChainedFunction2[\"default\"])(calendarProps.onOk, _this2.onCalendarOk),\n onSelect: (0, _createChainedFunction2[\"default\"])(calendarProps.onSelect, _this2.onCalendarSelect),\n onClear: (0, _createChainedFunction2[\"default\"])(calendarProps.onClear, _this2.onCalendarClear)\n };\n\n return _react2[\"default\"].cloneElement(props.calendar, extraProps);\n };\n\n this.setOpen = function (open, callback) {\n var onOpenChange = _this2.props.onOpenChange;\n\n if (_this2.state.open !== open) {\n if (!('open' in _this2.props)) {\n _this2.setState({\n open: open\n }, callback);\n }\n onOpenChange(open);\n }\n };\n\n this.open = function (callback) {\n _this2.setOpen(true, callback);\n };\n\n this.close = function (callback) {\n _this2.setOpen(false, callback);\n };\n\n this.focus = function () {\n if (!_this2.state.open) {\n _reactDom2[\"default\"].findDOMNode(_this2).focus();\n }\n };\n\n this.focusCalendar = function () {\n if (_this2.state.open && !!_this2.calendarInstance) {\n _this2.calendarInstance.focus();\n }\n };\n};\n\n(0, _reactLifecyclesCompat.polyfill)(Picker);\n\nexports[\"default\"] = Picker;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 81 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _FormControl = __webpack_require__(1292);\n\nvar _FormControl2 = _interopRequireDefault(_FormControl);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nexports[\"default\"] = _FormControl2[\"default\"];\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 82 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nmodule.exports = __webpack_require__(1296);\n\n/***/ }),\n/* 83 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _Icon = __webpack_require__(1350);\n\nvar _Icon2 = _interopRequireDefault(_Icon);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nexports[\"default\"] = _Icon2[\"default\"];\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 84 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar _default = !!(typeof window !== 'undefined' && window.document && window.document.createElement);\n\nexports.default = _default;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 85 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _Icon = __webpack_require__(1579);\n\nvar _Icon2 = _interopRequireDefault(_Icon);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nexports[\"default\"] = _Icon2[\"default\"];\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 86 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _defineProperty = __webpack_require__(215);\n\nvar _defineProperty2 = _interopRequireDefault(_defineProperty);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (obj, key, value) {\n if (key in obj) {\n (0, _defineProperty2.default)(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n};\n\n/***/ }),\n/* 87 */\n/***/ (function(module, exports) {\n\nmodule.exports = true;\n\n\n/***/ }),\n/* 88 */\n/***/ (function(module, exports) {\n\nvar id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n\n\n/***/ }),\n/* 89 */\n/***/ (function(module, exports) {\n\nexports.f = {}.propertyIsEnumerable;\n\n\n/***/ }),\n/* 90 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);\n\n\nvar unsafeLifecyclesPolyfill = function unsafeLifecyclesPolyfill(Component) {\n var prototype = Component.prototype;\n\n if (!prototype || !prototype.isReactComponent) {\n throw new Error('Can only polyfill class components');\n } // only handle componentWillReceiveProps\n\n\n if (typeof prototype.componentWillReceiveProps !== 'function') {\n return Component;\n } // In React 16.9, React.Profiler was introduced together with UNSAFE_componentWillReceiveProps\n // https://reactjs.org/blog/2019/08/08/react-v16.9.0.html#performance-measurements-with-reactprofiler\n\n\n if (!__WEBPACK_IMPORTED_MODULE_0_react___default.a.Profiler) {\n return Component;\n } // Here polyfill get started\n\n\n prototype.UNSAFE_componentWillReceiveProps = prototype.componentWillReceiveProps;\n delete prototype.componentWillReceiveProps;\n return Component;\n};\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (unsafeLifecyclesPolyfill);\n\n/***/ }),\n/* 91 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar baseGetTag = __webpack_require__(228),\n isObjectLike = __webpack_require__(635);\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n\n\n/***/ }),\n/* 92 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar getNative = __webpack_require__(133);\n\n/* Built-in method references that are verified to be native. */\nvar nativeCreate = getNative(Object, 'create');\n\nmodule.exports = nativeCreate;\n\n\n/***/ }),\n/* 93 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar eq = __webpack_require__(134);\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\nmodule.exports = assocIndexOf;\n\n\n/***/ }),\n/* 94 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isKeyable = __webpack_require__(661);\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\nmodule.exports = getMapData;\n\n\n/***/ }),\n/* 95 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* WEBPACK VAR INJECTION */(function(global) {/**\n * A collection of shims that provide minimal functionality of the ES6 collections.\n *\n * These implementations are not meant to be used outside of the ResizeObserver\n * modules as they cover only a limited range of use cases.\n */\n/* eslint-disable require-jsdoc, valid-jsdoc */\nvar MapShim = (function () {\n if (typeof Map !== 'undefined') {\n return Map;\n }\n /**\n * Returns index in provided array that matches the specified key.\n *\n * @param {Array} arr\n * @param {*} key\n * @returns {number}\n */\n function getIndex(arr, key) {\n var result = -1;\n arr.some(function (entry, index) {\n if (entry[0] === key) {\n result = index;\n return true;\n }\n return false;\n });\n return result;\n }\n return /** @class */ (function () {\n function class_1() {\n this.__entries__ = [];\n }\n Object.defineProperty(class_1.prototype, \"size\", {\n /**\n * @returns {boolean}\n */\n get: function () {\n return this.__entries__.length;\n },\n enumerable: true,\n configurable: true\n });\n /**\n * @param {*} key\n * @returns {*}\n */\n class_1.prototype.get = function (key) {\n var index = getIndex(this.__entries__, key);\n var entry = this.__entries__[index];\n return entry && entry[1];\n };\n /**\n * @param {*} key\n * @param {*} value\n * @returns {void}\n */\n class_1.prototype.set = function (key, value) {\n var index = getIndex(this.__entries__, key);\n if (~index) {\n this.__entries__[index][1] = value;\n }\n else {\n this.__entries__.push([key, value]);\n }\n };\n /**\n * @param {*} key\n * @returns {void}\n */\n class_1.prototype.delete = function (key) {\n var entries = this.__entries__;\n var index = getIndex(entries, key);\n if (~index) {\n entries.splice(index, 1);\n }\n };\n /**\n * @param {*} key\n * @returns {void}\n */\n class_1.prototype.has = function (key) {\n return !!~getIndex(this.__entries__, key);\n };\n /**\n * @returns {void}\n */\n class_1.prototype.clear = function () {\n this.__entries__.splice(0);\n };\n /**\n * @param {Function} callback\n * @param {*} [ctx=null]\n * @returns {void}\n */\n class_1.prototype.forEach = function (callback, ctx) {\n if (ctx === void 0) { ctx = null; }\n for (var _i = 0, _a = this.__entries__; _i < _a.length; _i++) {\n var entry = _a[_i];\n callback.call(ctx, entry[1], entry[0]);\n }\n };\n return class_1;\n }());\n})();\n\n/**\n * Detects whether window and document objects are available in current environment.\n */\nvar isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && window.document === document;\n\n// Returns global object of a current environment.\nvar global$1 = (function () {\n if (typeof global !== 'undefined' && global.Math === Math) {\n return global;\n }\n if (typeof self !== 'undefined' && self.Math === Math) {\n return self;\n }\n if (typeof window !== 'undefined' && window.Math === Math) {\n return window;\n }\n // eslint-disable-next-line no-new-func\n return Function('return this')();\n})();\n\n/**\n * A shim for the requestAnimationFrame which falls back to the setTimeout if\n * first one is not supported.\n *\n * @returns {number} Requests' identifier.\n */\nvar requestAnimationFrame$1 = (function () {\n if (typeof requestAnimationFrame === 'function') {\n // It's required to use a bounded function because IE sometimes throws\n // an \"Invalid calling object\" error if rAF is invoked without the global\n // object on the left hand side.\n return requestAnimationFrame.bind(global$1);\n }\n return function (callback) { return setTimeout(function () { return callback(Date.now()); }, 1000 / 60); };\n})();\n\n// Defines minimum timeout before adding a trailing call.\nvar trailingTimeout = 2;\n/**\n * Creates a wrapper function which ensures that provided callback will be\n * invoked only once during the specified delay period.\n *\n * @param {Function} callback - Function to be invoked after the delay period.\n * @param {number} delay - Delay after which to invoke callback.\n * @returns {Function}\n */\nfunction throttle (callback, delay) {\n var leadingCall = false, trailingCall = false, lastCallTime = 0;\n /**\n * Invokes the original callback function and schedules new invocation if\n * the \"proxy\" was called during current request.\n *\n * @returns {void}\n */\n function resolvePending() {\n if (leadingCall) {\n leadingCall = false;\n callback();\n }\n if (trailingCall) {\n proxy();\n }\n }\n /**\n * Callback invoked after the specified delay. It will further postpone\n * invocation of the original function delegating it to the\n * requestAnimationFrame.\n *\n * @returns {void}\n */\n function timeoutCallback() {\n requestAnimationFrame$1(resolvePending);\n }\n /**\n * Schedules invocation of the original function.\n *\n * @returns {void}\n */\n function proxy() {\n var timeStamp = Date.now();\n if (leadingCall) {\n // Reject immediately following calls.\n if (timeStamp - lastCallTime < trailingTimeout) {\n return;\n }\n // Schedule new call to be in invoked when the pending one is resolved.\n // This is important for \"transitions\" which never actually start\n // immediately so there is a chance that we might miss one if change\n // happens amids the pending invocation.\n trailingCall = true;\n }\n else {\n leadingCall = true;\n trailingCall = false;\n setTimeout(timeoutCallback, delay);\n }\n lastCallTime = timeStamp;\n }\n return proxy;\n}\n\n// Minimum delay before invoking the update of observers.\nvar REFRESH_DELAY = 20;\n// A list of substrings of CSS properties used to find transition events that\n// might affect dimensions of observed elements.\nvar transitionKeys = ['top', 'right', 'bottom', 'left', 'width', 'height', 'size', 'weight'];\n// Check if MutationObserver is available.\nvar mutationObserverSupported = typeof MutationObserver !== 'undefined';\n/**\n * Singleton controller class which handles updates of ResizeObserver instances.\n */\nvar ResizeObserverController = /** @class */ (function () {\n /**\n * Creates a new instance of ResizeObserverController.\n *\n * @private\n */\n function ResizeObserverController() {\n /**\n * Indicates whether DOM listeners have been added.\n *\n * @private {boolean}\n */\n this.connected_ = false;\n /**\n * Tells that controller has subscribed for Mutation Events.\n *\n * @private {boolean}\n */\n this.mutationEventsAdded_ = false;\n /**\n * Keeps reference to the instance of MutationObserver.\n *\n * @private {MutationObserver}\n */\n this.mutationsObserver_ = null;\n /**\n * A list of connected observers.\n *\n * @private {Array}\n */\n this.observers_ = [];\n this.onTransitionEnd_ = this.onTransitionEnd_.bind(this);\n this.refresh = throttle(this.refresh.bind(this), REFRESH_DELAY);\n }\n /**\n * Adds observer to observers list.\n *\n * @param {ResizeObserverSPI} observer - Observer to be added.\n * @returns {void}\n */\n ResizeObserverController.prototype.addObserver = function (observer) {\n if (!~this.observers_.indexOf(observer)) {\n this.observers_.push(observer);\n }\n // Add listeners if they haven't been added yet.\n if (!this.connected_) {\n this.connect_();\n }\n };\n /**\n * Removes observer from observers list.\n *\n * @param {ResizeObserverSPI} observer - Observer to be removed.\n * @returns {void}\n */\n ResizeObserverController.prototype.removeObserver = function (observer) {\n var observers = this.observers_;\n var index = observers.indexOf(observer);\n // Remove observer if it's present in registry.\n if (~index) {\n observers.splice(index, 1);\n }\n // Remove listeners if controller has no connected observers.\n if (!observers.length && this.connected_) {\n this.disconnect_();\n }\n };\n /**\n * Invokes the update of observers. It will continue running updates insofar\n * it detects changes.\n *\n * @returns {void}\n */\n ResizeObserverController.prototype.refresh = function () {\n var changesDetected = this.updateObservers_();\n // Continue running updates if changes have been detected as there might\n // be future ones caused by CSS transitions.\n if (changesDetected) {\n this.refresh();\n }\n };\n /**\n * Updates every observer from observers list and notifies them of queued\n * entries.\n *\n * @private\n * @returns {boolean} Returns \"true\" if any observer has detected changes in\n * dimensions of it's elements.\n */\n ResizeObserverController.prototype.updateObservers_ = function () {\n // Collect observers that have active observations.\n var activeObservers = this.observers_.filter(function (observer) {\n return observer.gatherActive(), observer.hasActive();\n });\n // Deliver notifications in a separate cycle in order to avoid any\n // collisions between observers, e.g. when multiple instances of\n // ResizeObserver are tracking the same element and the callback of one\n // of them changes content dimensions of the observed target. Sometimes\n // this may result in notifications being blocked for the rest of observers.\n activeObservers.forEach(function (observer) { return observer.broadcastActive(); });\n return activeObservers.length > 0;\n };\n /**\n * Initializes DOM listeners.\n *\n * @private\n * @returns {void}\n */\n ResizeObserverController.prototype.connect_ = function () {\n // Do nothing if running in a non-browser environment or if listeners\n // have been already added.\n if (!isBrowser || this.connected_) {\n return;\n }\n // Subscription to the \"Transitionend\" event is used as a workaround for\n // delayed transitions. This way it's possible to capture at least the\n // final state of an element.\n document.addEventListener('transitionend', this.onTransitionEnd_);\n window.addEventListener('resize', this.refresh);\n if (mutationObserverSupported) {\n this.mutationsObserver_ = new MutationObserver(this.refresh);\n this.mutationsObserver_.observe(document, {\n attributes: true,\n childList: true,\n characterData: true,\n subtree: true\n });\n }\n else {\n document.addEventListener('DOMSubtreeModified', this.refresh);\n this.mutationEventsAdded_ = true;\n }\n this.connected_ = true;\n };\n /**\n * Removes DOM listeners.\n *\n * @private\n * @returns {void}\n */\n ResizeObserverController.prototype.disconnect_ = function () {\n // Do nothing if running in a non-browser environment or if listeners\n // have been already removed.\n if (!isBrowser || !this.connected_) {\n return;\n }\n document.removeEventListener('transitionend', this.onTransitionEnd_);\n window.removeEventListener('resize', this.refresh);\n if (this.mutationsObserver_) {\n this.mutationsObserver_.disconnect();\n }\n if (this.mutationEventsAdded_) {\n document.removeEventListener('DOMSubtreeModified', this.refresh);\n }\n this.mutationsObserver_ = null;\n this.mutationEventsAdded_ = false;\n this.connected_ = false;\n };\n /**\n * \"Transitionend\" event handler.\n *\n * @private\n * @param {TransitionEvent} event\n * @returns {void}\n */\n ResizeObserverController.prototype.onTransitionEnd_ = function (_a) {\n var _b = _a.propertyName, propertyName = _b === void 0 ? '' : _b;\n // Detect whether transition may affect dimensions of an element.\n var isReflowProperty = transitionKeys.some(function (key) {\n return !!~propertyName.indexOf(key);\n });\n if (isReflowProperty) {\n this.refresh();\n }\n };\n /**\n * Returns instance of the ResizeObserverController.\n *\n * @returns {ResizeObserverController}\n */\n ResizeObserverController.getInstance = function () {\n if (!this.instance_) {\n this.instance_ = new ResizeObserverController();\n }\n return this.instance_;\n };\n /**\n * Holds reference to the controller's instance.\n *\n * @private {ResizeObserverController}\n */\n ResizeObserverController.instance_ = null;\n return ResizeObserverController;\n}());\n\n/**\n * Defines non-writable/enumerable properties of the provided target object.\n *\n * @param {Object} target - Object for which to define properties.\n * @param {Object} props - Properties to be defined.\n * @returns {Object} Target object.\n */\nvar defineConfigurable = (function (target, props) {\n for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {\n var key = _a[_i];\n Object.defineProperty(target, key, {\n value: props[key],\n enumerable: false,\n writable: false,\n configurable: true\n });\n }\n return target;\n});\n\n/**\n * Returns the global object associated with provided element.\n *\n * @param {Object} target\n * @returns {Object}\n */\nvar getWindowOf = (function (target) {\n // Assume that the element is an instance of Node, which means that it\n // has the \"ownerDocument\" property from which we can retrieve a\n // corresponding global object.\n var ownerGlobal = target && target.ownerDocument && target.ownerDocument.defaultView;\n // Return the local global object if it's not possible extract one from\n // provided element.\n return ownerGlobal || global$1;\n});\n\n// Placeholder of an empty content rectangle.\nvar emptyRect = createRectInit(0, 0, 0, 0);\n/**\n * Converts provided string to a number.\n *\n * @param {number|string} value\n * @returns {number}\n */\nfunction toFloat(value) {\n return parseFloat(value) || 0;\n}\n/**\n * Extracts borders size from provided styles.\n *\n * @param {CSSStyleDeclaration} styles\n * @param {...string} positions - Borders positions (top, right, ...)\n * @returns {number}\n */\nfunction getBordersSize(styles) {\n var positions = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n positions[_i - 1] = arguments[_i];\n }\n return positions.reduce(function (size, position) {\n var value = styles['border-' + position + '-width'];\n return size + toFloat(value);\n }, 0);\n}\n/**\n * Extracts paddings sizes from provided styles.\n *\n * @param {CSSStyleDeclaration} styles\n * @returns {Object} Paddings box.\n */\nfunction getPaddings(styles) {\n var positions = ['top', 'right', 'bottom', 'left'];\n var paddings = {};\n for (var _i = 0, positions_1 = positions; _i < positions_1.length; _i++) {\n var position = positions_1[_i];\n var value = styles['padding-' + position];\n paddings[position] = toFloat(value);\n }\n return paddings;\n}\n/**\n * Calculates content rectangle of provided SVG element.\n *\n * @param {SVGGraphicsElement} target - Element content rectangle of which needs\n * to be calculated.\n * @returns {DOMRectInit}\n */\nfunction getSVGContentRect(target) {\n var bbox = target.getBBox();\n return createRectInit(0, 0, bbox.width, bbox.height);\n}\n/**\n * Calculates content rectangle of provided HTMLElement.\n *\n * @param {HTMLElement} target - Element for which to calculate the content rectangle.\n * @returns {DOMRectInit}\n */\nfunction getHTMLElementContentRect(target) {\n // Client width & height properties can't be\n // used exclusively as they provide rounded values.\n var clientWidth = target.clientWidth, clientHeight = target.clientHeight;\n // By this condition we can catch all non-replaced inline, hidden and\n // detached elements. Though elements with width & height properties less\n // than 0.5 will be discarded as well.\n //\n // Without it we would need to implement separate methods for each of\n // those cases and it's not possible to perform a precise and performance\n // effective test for hidden elements. E.g. even jQuery's ':visible' filter\n // gives wrong results for elements with width & height less than 0.5.\n if (!clientWidth && !clientHeight) {\n return emptyRect;\n }\n var styles = getWindowOf(target).getComputedStyle(target);\n var paddings = getPaddings(styles);\n var horizPad = paddings.left + paddings.right;\n var vertPad = paddings.top + paddings.bottom;\n // Computed styles of width & height are being used because they are the\n // only dimensions available to JS that contain non-rounded values. It could\n // be possible to utilize the getBoundingClientRect if only it's data wasn't\n // affected by CSS transformations let alone paddings, borders and scroll bars.\n var width = toFloat(styles.width), height = toFloat(styles.height);\n // Width & height include paddings and borders when the 'border-box' box\n // model is applied (except for IE).\n if (styles.boxSizing === 'border-box') {\n // Following conditions are required to handle Internet Explorer which\n // doesn't include paddings and borders to computed CSS dimensions.\n //\n // We can say that if CSS dimensions + paddings are equal to the \"client\"\n // properties then it's either IE, and thus we don't need to subtract\n // anything, or an element merely doesn't have paddings/borders styles.\n if (Math.round(width + horizPad) !== clientWidth) {\n width -= getBordersSize(styles, 'left', 'right') + horizPad;\n }\n if (Math.round(height + vertPad) !== clientHeight) {\n height -= getBordersSize(styles, 'top', 'bottom') + vertPad;\n }\n }\n // Following steps can't be applied to the document's root element as its\n // client[Width/Height] properties represent viewport area of the window.\n // Besides, it's as well not necessary as the itself neither has\n // rendered scroll bars nor it can be clipped.\n if (!isDocumentElement(target)) {\n // In some browsers (only in Firefox, actually) CSS width & height\n // include scroll bars size which can be removed at this step as scroll\n // bars are the only difference between rounded dimensions + paddings\n // and \"client\" properties, though that is not always true in Chrome.\n var vertScrollbar = Math.round(width + horizPad) - clientWidth;\n var horizScrollbar = Math.round(height + vertPad) - clientHeight;\n // Chrome has a rather weird rounding of \"client\" properties.\n // E.g. for an element with content width of 314.2px it sometimes gives\n // the client width of 315px and for the width of 314.7px it may give\n // 314px. And it doesn't happen all the time. So just ignore this delta\n // as a non-relevant.\n if (Math.abs(vertScrollbar) !== 1) {\n width -= vertScrollbar;\n }\n if (Math.abs(horizScrollbar) !== 1) {\n height -= horizScrollbar;\n }\n }\n return createRectInit(paddings.left, paddings.top, width, height);\n}\n/**\n * Checks whether provided element is an instance of the SVGGraphicsElement.\n *\n * @param {Element} target - Element to be checked.\n * @returns {boolean}\n */\nvar isSVGGraphicsElement = (function () {\n // Some browsers, namely IE and Edge, don't have the SVGGraphicsElement\n // interface.\n if (typeof SVGGraphicsElement !== 'undefined') {\n return function (target) { return target instanceof getWindowOf(target).SVGGraphicsElement; };\n }\n // If it's so, then check that element is at least an instance of the\n // SVGElement and that it has the \"getBBox\" method.\n // eslint-disable-next-line no-extra-parens\n return function (target) { return (target instanceof getWindowOf(target).SVGElement &&\n typeof target.getBBox === 'function'); };\n})();\n/**\n * Checks whether provided element is a document element ().\n *\n * @param {Element} target - Element to be checked.\n * @returns {boolean}\n */\nfunction isDocumentElement(target) {\n return target === getWindowOf(target).document.documentElement;\n}\n/**\n * Calculates an appropriate content rectangle for provided html or svg element.\n *\n * @param {Element} target - Element content rectangle of which needs to be calculated.\n * @returns {DOMRectInit}\n */\nfunction getContentRect(target) {\n if (!isBrowser) {\n return emptyRect;\n }\n if (isSVGGraphicsElement(target)) {\n return getSVGContentRect(target);\n }\n return getHTMLElementContentRect(target);\n}\n/**\n * Creates rectangle with an interface of the DOMRectReadOnly.\n * Spec: https://drafts.fxtf.org/geometry/#domrectreadonly\n *\n * @param {DOMRectInit} rectInit - Object with rectangle's x/y coordinates and dimensions.\n * @returns {DOMRectReadOnly}\n */\nfunction createReadOnlyRect(_a) {\n var x = _a.x, y = _a.y, width = _a.width, height = _a.height;\n // If DOMRectReadOnly is available use it as a prototype for the rectangle.\n var Constr = typeof DOMRectReadOnly !== 'undefined' ? DOMRectReadOnly : Object;\n var rect = Object.create(Constr.prototype);\n // Rectangle's properties are not writable and non-enumerable.\n defineConfigurable(rect, {\n x: x, y: y, width: width, height: height,\n top: y,\n right: x + width,\n bottom: height + y,\n left: x\n });\n return rect;\n}\n/**\n * Creates DOMRectInit object based on the provided dimensions and the x/y coordinates.\n * Spec: https://drafts.fxtf.org/geometry/#dictdef-domrectinit\n *\n * @param {number} x - X coordinate.\n * @param {number} y - Y coordinate.\n * @param {number} width - Rectangle's width.\n * @param {number} height - Rectangle's height.\n * @returns {DOMRectInit}\n */\nfunction createRectInit(x, y, width, height) {\n return { x: x, y: y, width: width, height: height };\n}\n\n/**\n * Class that is responsible for computations of the content rectangle of\n * provided DOM element and for keeping track of it's changes.\n */\nvar ResizeObservation = /** @class */ (function () {\n /**\n * Creates an instance of ResizeObservation.\n *\n * @param {Element} target - Element to be observed.\n */\n function ResizeObservation(target) {\n /**\n * Broadcasted width of content rectangle.\n *\n * @type {number}\n */\n this.broadcastWidth = 0;\n /**\n * Broadcasted height of content rectangle.\n *\n * @type {number}\n */\n this.broadcastHeight = 0;\n /**\n * Reference to the last observed content rectangle.\n *\n * @private {DOMRectInit}\n */\n this.contentRect_ = createRectInit(0, 0, 0, 0);\n this.target = target;\n }\n /**\n * Updates content rectangle and tells whether it's width or height properties\n * have changed since the last broadcast.\n *\n * @returns {boolean}\n */\n ResizeObservation.prototype.isActive = function () {\n var rect = getContentRect(this.target);\n this.contentRect_ = rect;\n return (rect.width !== this.broadcastWidth ||\n rect.height !== this.broadcastHeight);\n };\n /**\n * Updates 'broadcastWidth' and 'broadcastHeight' properties with a data\n * from the corresponding properties of the last observed content rectangle.\n *\n * @returns {DOMRectInit} Last observed content rectangle.\n */\n ResizeObservation.prototype.broadcastRect = function () {\n var rect = this.contentRect_;\n this.broadcastWidth = rect.width;\n this.broadcastHeight = rect.height;\n return rect;\n };\n return ResizeObservation;\n}());\n\nvar ResizeObserverEntry = /** @class */ (function () {\n /**\n * Creates an instance of ResizeObserverEntry.\n *\n * @param {Element} target - Element that is being observed.\n * @param {DOMRectInit} rectInit - Data of the element's content rectangle.\n */\n function ResizeObserverEntry(target, rectInit) {\n var contentRect = createReadOnlyRect(rectInit);\n // According to the specification following properties are not writable\n // and are also not enumerable in the native implementation.\n //\n // Property accessors are not being used as they'd require to define a\n // private WeakMap storage which may cause memory leaks in browsers that\n // don't support this type of collections.\n defineConfigurable(this, { target: target, contentRect: contentRect });\n }\n return ResizeObserverEntry;\n}());\n\nvar ResizeObserverSPI = /** @class */ (function () {\n /**\n * Creates a new instance of ResizeObserver.\n *\n * @param {ResizeObserverCallback} callback - Callback function that is invoked\n * when one of the observed elements changes it's content dimensions.\n * @param {ResizeObserverController} controller - Controller instance which\n * is responsible for the updates of observer.\n * @param {ResizeObserver} callbackCtx - Reference to the public\n * ResizeObserver instance which will be passed to callback function.\n */\n function ResizeObserverSPI(callback, controller, callbackCtx) {\n /**\n * Collection of resize observations that have detected changes in dimensions\n * of elements.\n *\n * @private {Array}\n */\n this.activeObservations_ = [];\n /**\n * Registry of the ResizeObservation instances.\n *\n * @private {Map}\n */\n this.observations_ = new MapShim();\n if (typeof callback !== 'function') {\n throw new TypeError('The callback provided as parameter 1 is not a function.');\n }\n this.callback_ = callback;\n this.controller_ = controller;\n this.callbackCtx_ = callbackCtx;\n }\n /**\n * Starts observing provided element.\n *\n * @param {Element} target - Element to be observed.\n * @returns {void}\n */\n ResizeObserverSPI.prototype.observe = function (target) {\n if (!arguments.length) {\n throw new TypeError('1 argument required, but only 0 present.');\n }\n // Do nothing if current environment doesn't have the Element interface.\n if (typeof Element === 'undefined' || !(Element instanceof Object)) {\n return;\n }\n if (!(target instanceof getWindowOf(target).Element)) {\n throw new TypeError('parameter 1 is not of type \"Element\".');\n }\n var observations = this.observations_;\n // Do nothing if element is already being observed.\n if (observations.has(target)) {\n return;\n }\n observations.set(target, new ResizeObservation(target));\n this.controller_.addObserver(this);\n // Force the update of observations.\n this.controller_.refresh();\n };\n /**\n * Stops observing provided element.\n *\n * @param {Element} target - Element to stop observing.\n * @returns {void}\n */\n ResizeObserverSPI.prototype.unobserve = function (target) {\n if (!arguments.length) {\n throw new TypeError('1 argument required, but only 0 present.');\n }\n // Do nothing if current environment doesn't have the Element interface.\n if (typeof Element === 'undefined' || !(Element instanceof Object)) {\n return;\n }\n if (!(target instanceof getWindowOf(target).Element)) {\n throw new TypeError('parameter 1 is not of type \"Element\".');\n }\n var observations = this.observations_;\n // Do nothing if element is not being observed.\n if (!observations.has(target)) {\n return;\n }\n observations.delete(target);\n if (!observations.size) {\n this.controller_.removeObserver(this);\n }\n };\n /**\n * Stops observing all elements.\n *\n * @returns {void}\n */\n ResizeObserverSPI.prototype.disconnect = function () {\n this.clearActive();\n this.observations_.clear();\n this.controller_.removeObserver(this);\n };\n /**\n * Collects observation instances the associated element of which has changed\n * it's content rectangle.\n *\n * @returns {void}\n */\n ResizeObserverSPI.prototype.gatherActive = function () {\n var _this = this;\n this.clearActive();\n this.observations_.forEach(function (observation) {\n if (observation.isActive()) {\n _this.activeObservations_.push(observation);\n }\n });\n };\n /**\n * Invokes initial callback function with a list of ResizeObserverEntry\n * instances collected from active resize observations.\n *\n * @returns {void}\n */\n ResizeObserverSPI.prototype.broadcastActive = function () {\n // Do nothing if observer doesn't have active observations.\n if (!this.hasActive()) {\n return;\n }\n var ctx = this.callbackCtx_;\n // Create ResizeObserverEntry instance for every active observation.\n var entries = this.activeObservations_.map(function (observation) {\n return new ResizeObserverEntry(observation.target, observation.broadcastRect());\n });\n this.callback_.call(ctx, entries, ctx);\n this.clearActive();\n };\n /**\n * Clears the collection of active observations.\n *\n * @returns {void}\n */\n ResizeObserverSPI.prototype.clearActive = function () {\n this.activeObservations_.splice(0);\n };\n /**\n * Tells whether observer has active observations.\n *\n * @returns {boolean}\n */\n ResizeObserverSPI.prototype.hasActive = function () {\n return this.activeObservations_.length > 0;\n };\n return ResizeObserverSPI;\n}());\n\n// Registry of internal observers. If WeakMap is not available use current shim\n// for the Map collection as it has all required methods and because WeakMap\n// can't be fully polyfilled anyway.\nvar observers = typeof WeakMap !== 'undefined' ? new WeakMap() : new MapShim();\n/**\n * ResizeObserver API. Encapsulates the ResizeObserver SPI implementation\n * exposing only those methods and properties that are defined in the spec.\n */\nvar ResizeObserver = /** @class */ (function () {\n /**\n * Creates a new instance of ResizeObserver.\n *\n * @param {ResizeObserverCallback} callback - Callback that is invoked when\n * dimensions of the observed elements change.\n */\n function ResizeObserver(callback) {\n if (!(this instanceof ResizeObserver)) {\n throw new TypeError('Cannot call a class as a function.');\n }\n if (!arguments.length) {\n throw new TypeError('1 argument required, but only 0 present.');\n }\n var controller = ResizeObserverController.getInstance();\n var observer = new ResizeObserverSPI(callback, controller, this);\n observers.set(this, observer);\n }\n return ResizeObserver;\n}());\n// Expose public methods of ResizeObserver.\n[\n 'observe',\n 'unobserve',\n 'disconnect'\n].forEach(function (method) {\n ResizeObserver.prototype[method] = function () {\n var _a;\n return (_a = observers.get(this))[method].apply(_a, arguments);\n };\n});\n\nvar index = (function () {\n // Export existing implementation if available.\n if (typeof global$1.ResizeObserver !== 'undefined') {\n return global$1.ResizeObserver;\n }\n return ResizeObserver;\n})();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (index);\n\n/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(35)))\n\n/***/ }),\n/* 96 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(8);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty__ = __webpack_require__(86);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(7);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass__ = __webpack_require__(55);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_rc_util_es_unsafeLifecyclesPolyfill__ = __webpack_require__(90);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__ = __webpack_require__(801);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__AnimateChild__ = __webpack_require__(802);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__util_animate__ = __webpack_require__(262);\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar defaultKey = 'rc_animate_' + Date.now();\n\nfunction getChildrenFromProps(props) {\n var children = props.children;\n if (__WEBPACK_IMPORTED_MODULE_6_react___default.a.isValidElement(children)) {\n if (!children.key) {\n return __WEBPACK_IMPORTED_MODULE_6_react___default.a.cloneElement(children, {\n key: defaultKey\n });\n }\n }\n return children;\n}\n\nfunction noop() {}\n\nvar Animate = function (_React$Component) {\n __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default()(Animate, _React$Component);\n\n // eslint-disable-line\n\n function Animate(props) {\n __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, Animate);\n\n var _this = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default()(this, (Animate.__proto__ || Object.getPrototypeOf(Animate)).call(this, props));\n\n _initialiseProps.call(_this);\n\n _this.currentlyAnimatingKeys = {};\n _this.keysToEnter = [];\n _this.keysToLeave = [];\n\n _this.state = {\n children: Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__[\"e\" /* toArrayChildren */])(getChildrenFromProps(props))\n };\n\n _this.childrenRefs = {};\n return _this;\n }\n\n __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass___default()(Animate, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n var _this2 = this;\n\n var showProp = this.props.showProp;\n var children = this.state.children;\n if (showProp) {\n children = children.filter(function (child) {\n return !!child.props[showProp];\n });\n }\n children.forEach(function (child) {\n if (child) {\n _this2.performAppear(child.key);\n }\n });\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n var _this3 = this;\n\n this.nextProps = nextProps;\n var nextChildren = Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__[\"e\" /* toArrayChildren */])(getChildrenFromProps(nextProps));\n var props = this.props;\n // exclusive needs immediate response\n if (props.exclusive) {\n Object.keys(this.currentlyAnimatingKeys).forEach(function (key) {\n _this3.stop(key);\n });\n }\n var showProp = props.showProp;\n var currentlyAnimatingKeys = this.currentlyAnimatingKeys;\n // last props children if exclusive\n var currentChildren = props.exclusive ? Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__[\"e\" /* toArrayChildren */])(getChildrenFromProps(props)) : this.state.children;\n // in case destroy in showProp mode\n var newChildren = [];\n if (showProp) {\n currentChildren.forEach(function (currentChild) {\n var nextChild = currentChild && Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__[\"a\" /* findChildInChildrenByKey */])(nextChildren, currentChild.key);\n var newChild = void 0;\n if ((!nextChild || !nextChild.props[showProp]) && currentChild.props[showProp]) {\n newChild = __WEBPACK_IMPORTED_MODULE_6_react___default.a.cloneElement(nextChild || currentChild, __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default()({}, showProp, true));\n } else {\n newChild = nextChild;\n }\n if (newChild) {\n newChildren.push(newChild);\n }\n });\n nextChildren.forEach(function (nextChild) {\n if (!nextChild || !Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__[\"a\" /* findChildInChildrenByKey */])(currentChildren, nextChild.key)) {\n newChildren.push(nextChild);\n }\n });\n } else {\n newChildren = Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__[\"d\" /* mergeChildren */])(currentChildren, nextChildren);\n }\n\n // need render to avoid update\n this.setState({\n children: newChildren\n });\n\n nextChildren.forEach(function (child) {\n var key = child && child.key;\n if (child && currentlyAnimatingKeys[key]) {\n return;\n }\n var hasPrev = child && Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__[\"a\" /* findChildInChildrenByKey */])(currentChildren, key);\n if (showProp) {\n var showInNext = child.props[showProp];\n if (hasPrev) {\n var showInNow = Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__[\"b\" /* findShownChildInChildrenByKey */])(currentChildren, key, showProp);\n if (!showInNow && showInNext) {\n _this3.keysToEnter.push(key);\n }\n } else if (showInNext) {\n _this3.keysToEnter.push(key);\n }\n } else if (!hasPrev) {\n _this3.keysToEnter.push(key);\n }\n });\n\n currentChildren.forEach(function (child) {\n var key = child && child.key;\n if (child && currentlyAnimatingKeys[key]) {\n return;\n }\n var hasNext = child && Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__[\"a\" /* findChildInChildrenByKey */])(nextChildren, key);\n if (showProp) {\n var showInNow = child.props[showProp];\n if (hasNext) {\n var showInNext = Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__[\"b\" /* findShownChildInChildrenByKey */])(nextChildren, key, showProp);\n if (!showInNext && showInNow) {\n _this3.keysToLeave.push(key);\n }\n } else if (showInNow) {\n _this3.keysToLeave.push(key);\n }\n } else if (!hasNext) {\n _this3.keysToLeave.push(key);\n }\n });\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n var keysToEnter = this.keysToEnter;\n this.keysToEnter = [];\n keysToEnter.forEach(this.performEnter);\n var keysToLeave = this.keysToLeave;\n this.keysToLeave = [];\n keysToLeave.forEach(this.performLeave);\n }\n }, {\n key: 'isValidChildByKey',\n value: function isValidChildByKey(currentChildren, key) {\n var showProp = this.props.showProp;\n if (showProp) {\n return Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__[\"b\" /* findShownChildInChildrenByKey */])(currentChildren, key, showProp);\n }\n return Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__[\"a\" /* findChildInChildrenByKey */])(currentChildren, key);\n }\n }, {\n key: 'stop',\n value: function stop(key) {\n delete this.currentlyAnimatingKeys[key];\n var component = this.childrenRefs[key];\n if (component) {\n component.stop();\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _this4 = this;\n\n var props = this.props;\n this.nextProps = props;\n var stateChildren = this.state.children;\n var children = null;\n if (stateChildren) {\n children = stateChildren.map(function (child) {\n if (child === null || child === undefined) {\n return child;\n }\n if (!child.key) {\n throw new Error('must set key for children');\n }\n return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(\n __WEBPACK_IMPORTED_MODULE_10__AnimateChild__[\"a\" /* default */],\n {\n key: child.key,\n ref: function ref(node) {\n _this4.childrenRefs[child.key] = node;\n },\n animation: props.animation,\n transitionName: props.transitionName,\n transitionEnter: props.transitionEnter,\n transitionAppear: props.transitionAppear,\n transitionLeave: props.transitionLeave\n },\n child\n );\n });\n }\n var Component = props.component;\n if (Component) {\n var passedProps = props;\n if (typeof Component === 'string') {\n passedProps = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({\n className: props.className,\n style: props.style\n }, props.componentProps);\n }\n return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(\n Component,\n passedProps,\n children\n );\n }\n return children[0] || null;\n }\n }]);\n\n return Animate;\n}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component);\n\nAnimate.isAnimate = true;\nAnimate.propTypes = {\n className: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string,\n style: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.object,\n component: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.any,\n componentProps: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.object,\n animation: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.object,\n transitionName: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.object]),\n transitionEnter: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool,\n transitionAppear: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool,\n exclusive: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool,\n transitionLeave: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool,\n onEnd: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func,\n onEnter: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func,\n onLeave: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func,\n onAppear: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func,\n showProp: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string,\n children: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.node\n};\nAnimate.defaultProps = {\n animation: {},\n component: 'span',\n componentProps: {},\n transitionEnter: true,\n transitionLeave: true,\n transitionAppear: false,\n onEnd: noop,\n onEnter: noop,\n onLeave: noop,\n onAppear: noop\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this5 = this;\n\n this.performEnter = function (key) {\n // may already remove by exclusive\n if (_this5.childrenRefs[key]) {\n _this5.currentlyAnimatingKeys[key] = true;\n _this5.childrenRefs[key].componentWillEnter(_this5.handleDoneAdding.bind(_this5, key, 'enter'));\n }\n };\n\n this.performAppear = function (key) {\n if (_this5.childrenRefs[key]) {\n _this5.currentlyAnimatingKeys[key] = true;\n _this5.childrenRefs[key].componentWillAppear(_this5.handleDoneAdding.bind(_this5, key, 'appear'));\n }\n };\n\n this.handleDoneAdding = function (key, type) {\n var props = _this5.props;\n delete _this5.currentlyAnimatingKeys[key];\n // if update on exclusive mode, skip check\n if (props.exclusive && props !== _this5.nextProps) {\n return;\n }\n var currentChildren = Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__[\"e\" /* toArrayChildren */])(getChildrenFromProps(props));\n if (!_this5.isValidChildByKey(currentChildren, key)) {\n // exclusive will not need this\n _this5.performLeave(key);\n } else if (type === 'appear') {\n if (__WEBPACK_IMPORTED_MODULE_11__util_animate__[\"a\" /* default */].allowAppearCallback(props)) {\n props.onAppear(key);\n props.onEnd(key, true);\n }\n } else if (__WEBPACK_IMPORTED_MODULE_11__util_animate__[\"a\" /* default */].allowEnterCallback(props)) {\n props.onEnter(key);\n props.onEnd(key, true);\n }\n };\n\n this.performLeave = function (key) {\n // may already remove by exclusive\n if (_this5.childrenRefs[key]) {\n _this5.currentlyAnimatingKeys[key] = true;\n _this5.childrenRefs[key].componentWillLeave(_this5.handleDoneLeaving.bind(_this5, key));\n }\n };\n\n this.handleDoneLeaving = function (key) {\n var props = _this5.props;\n delete _this5.currentlyAnimatingKeys[key];\n // if update on exclusive mode, skip check\n if (props.exclusive && props !== _this5.nextProps) {\n return;\n }\n var currentChildren = Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__[\"e\" /* toArrayChildren */])(getChildrenFromProps(props));\n // in case state change is too fast\n if (_this5.isValidChildByKey(currentChildren, key)) {\n _this5.performEnter(key);\n } else {\n var end = function end() {\n if (__WEBPACK_IMPORTED_MODULE_11__util_animate__[\"a\" /* default */].allowLeaveCallback(props)) {\n props.onLeave(key);\n props.onEnd(key, false);\n }\n };\n if (!Object(__WEBPACK_IMPORTED_MODULE_9__ChildrenUtils__[\"c\" /* isSameChildren */])(_this5.state.children, currentChildren, props.showProp)) {\n _this5.setState({\n children: currentChildren\n }, end);\n } else {\n end();\n }\n }\n };\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(__WEBPACK_IMPORTED_MODULE_8_rc_util_es_unsafeLifecyclesPolyfill__[\"a\" /* default */])(Animate));\n\n/***/ }),\n/* 97 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports[\"default\"] = function (componentOrElement) {\n return (0, _ownerDocument2[\"default\"])(_reactDom2[\"default\"].findDOMNode(componentOrElement));\n};\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _ownerDocument = __webpack_require__(22);\n\nvar _ownerDocument2 = _interopRequireDefault(_ownerDocument);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 98 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined;\n\nvar _all2 = __webpack_require__(861);\n\nvar _all3 = _interopRequireDefault(_all2);\n\nvar _componentOrElement2 = __webpack_require__(862);\n\nvar _componentOrElement3 = _interopRequireDefault(_componentOrElement2);\n\nvar _deprecated2 = __webpack_require__(863);\n\nvar _deprecated3 = _interopRequireDefault(_deprecated2);\n\nvar _elementType2 = __webpack_require__(864);\n\nvar _elementType3 = _interopRequireDefault(_elementType2);\n\nvar _isRequiredForA11y2 = __webpack_require__(865);\n\nvar _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2);\n\nvar _splitComponent2 = __webpack_require__(866);\n\nvar _splitComponent3 = _interopRequireDefault(_splitComponent2);\n\nvar _createChainedFunction2 = __webpack_require__(867);\n\nvar _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2);\n\nvar _keyCode = __webpack_require__(868);\n\nvar _keyCode2 = _interopRequireDefault(_keyCode);\n\nvar _contains2 = __webpack_require__(869);\n\nvar _contains3 = _interopRequireDefault(_contains2);\n\nvar _addEventListener2 = __webpack_require__(274);\n\nvar _addEventListener3 = _interopRequireDefault(_addEventListener2);\n\nvar _cssAnimation2 = __webpack_require__(870);\n\nvar _cssAnimation3 = _interopRequireDefault(_cssAnimation2);\n\nvar _toArray2 = __webpack_require__(872);\n\nvar _toArray3 = _interopRequireDefault(_toArray2);\n\nvar _Align2 = __webpack_require__(873);\n\nvar _Align3 = _interopRequireDefault(_Align2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.all = _all3.default;\nexports.componentOrElement = _componentOrElement3.default;\nexports.deprecated = _deprecated3.default;\nexports.elementType = _elementType3.default;\nexports.isRequiredForA11y = _isRequiredForA11y3.default;\nexports.splitComponent = _splitComponent3.default;\nexports.createChainedFunction = _createChainedFunction3.default;\nexports.KeyCode = _keyCode2.default;\nexports.contains = _contains3.default;\nexports.addEventListener = _addEventListener3.default;\nexports.cssAnimation = _cssAnimation3.default;\nexports.toArray = _toArray3.default;\n//export getContainerRenderMixin from './getContainerRenderMixin';\n\nexports.Align = _Align3.default;\n\n/***/ }),\n/* 99 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _inDOM = __webpack_require__(25);\n\nvar _inDOM2 = _interopRequireDefault(_inDOM);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar vendors = ['', 'webkit', 'moz', 'o', 'ms'];\nvar cancel = 'clearTimeout';\nvar raf = fallback;\nvar compatRaf = void 0;\n\nvar getKey = function getKey(vendor, k) {\n return vendor + (!vendor ? k : k[0].toUpperCase() + k.substr(1)) + 'AnimationFrame';\n};\n\nif (_inDOM2.default) {\n vendors.some(function (vendor) {\n var rafKey = getKey(vendor, 'request');\n\n if (rafKey in window) {\n cancel = getKey(vendor, 'cancel');\n return raf = function raf(cb) {\n return window[rafKey](cb);\n };\n }\n });\n}\n\n/* https://github.com/component/raf */\nvar prev = new Date().getTime();\n\nfunction fallback(fn) {\n var curr = new Date().getTime(),\n ms = Math.max(0, 16 - (curr - prev)),\n req = setTimeout(fn, ms);\n\n prev = curr;\n return req;\n}\n\ncompatRaf = function compatRaf(cb) {\n return raf(cb);\n};\ncompatRaf.cancel = function (id) {\n return window[cancel](id);\n};\n\nexports.default = compatRaf;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 100 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = getWindow;\nfunction getWindow(node) {\n return node === node.window ? node : node.nodeType === 9 ? node.defaultView || node.parentWindow : false;\n}\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 101 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nexports.default = position;\n\nvar _offset = __webpack_require__(74);\n\nvar _offset2 = _interopRequireDefault(_offset);\n\nvar _offsetParent = __webpack_require__(878);\n\nvar _offsetParent2 = _interopRequireDefault(_offsetParent);\n\nvar _scrollTop = __webpack_require__(45);\n\nvar _scrollTop2 = _interopRequireDefault(_scrollTop);\n\nvar _scrollLeft = __webpack_require__(885);\n\nvar _scrollLeft2 = _interopRequireDefault(_scrollLeft);\n\nvar _style = __webpack_require__(31);\n\nvar _style2 = _interopRequireDefault(_style);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction nodeName(node) {\n return node.nodeName && node.nodeName.toLowerCase();\n}\n\nfunction position(node, offsetParent) {\n var parentOffset = { top: 0, left: 0 },\n offset;\n\n // Fixed elements are offset from window (parentOffset = {top:0, left: 0},\n // because it is its only offset parent\n if ((0, _style2.default)(node, 'position') === 'fixed') {\n offset = node.getBoundingClientRect();\n } else {\n offsetParent = offsetParent || (0, _offsetParent2.default)(node);\n offset = (0, _offset2.default)(node);\n\n if (nodeName(offsetParent) !== 'html') parentOffset = (0, _offset2.default)(offsetParent);\n\n parentOffset.top += parseInt((0, _style2.default)(offsetParent, 'borderTopWidth'), 10) - (0, _scrollTop2.default)(offsetParent) || 0;\n parentOffset.left += parseInt((0, _style2.default)(offsetParent, 'borderLeftWidth'), 10) - (0, _scrollLeft2.default)(offsetParent) || 0;\n }\n\n // Subtract parent offsets and node margins\n return _extends({}, offset, {\n top: offset.top - parentOffset.top - (parseInt((0, _style2.default)(node, 'marginTop'), 10) || 0),\n left: offset.left - parentOffset.left - (parseInt((0, _style2.default)(node, 'marginLeft'), 10) || 0)\n });\n}\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 102 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = ownerWindow;\n\nvar _ownerDocument = __webpack_require__(22);\n\nvar _ownerDocument2 = _interopRequireDefault(_ownerDocument);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction ownerWindow(node) {\n var doc = (0, _ownerDocument2.default)(node);\n return doc && doc.defaultView || doc.parentWindow;\n}\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 103 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined;\n\nvar _all2 = __webpack_require__(1012);\n\nvar _all3 = _interopRequireDefault(_all2);\n\nvar _componentOrElement2 = __webpack_require__(1013);\n\nvar _componentOrElement3 = _interopRequireDefault(_componentOrElement2);\n\nvar _deprecated2 = __webpack_require__(1014);\n\nvar _deprecated3 = _interopRequireDefault(_deprecated2);\n\nvar _elementType2 = __webpack_require__(1015);\n\nvar _elementType3 = _interopRequireDefault(_elementType2);\n\nvar _isRequiredForA11y2 = __webpack_require__(1016);\n\nvar _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2);\n\nvar _splitComponent2 = __webpack_require__(1017);\n\nvar _splitComponent3 = _interopRequireDefault(_splitComponent2);\n\nvar _createChainedFunction2 = __webpack_require__(294);\n\nvar _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2);\n\nvar _keyCode = __webpack_require__(1018);\n\nvar _keyCode2 = _interopRequireDefault(_keyCode);\n\nvar _contains2 = __webpack_require__(1019);\n\nvar _contains3 = _interopRequireDefault(_contains2);\n\nvar _addEventListener2 = __webpack_require__(295);\n\nvar _addEventListener3 = _interopRequireDefault(_addEventListener2);\n\nvar _cssAnimation2 = __webpack_require__(1020);\n\nvar _cssAnimation3 = _interopRequireDefault(_cssAnimation2);\n\nvar _toArray2 = __webpack_require__(1022);\n\nvar _toArray3 = _interopRequireDefault(_toArray2);\n\nvar _Align2 = __webpack_require__(1023);\n\nvar _Align3 = _interopRequireDefault(_Align2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.all = _all3.default;\nexports.componentOrElement = _componentOrElement3.default;\nexports.deprecated = _deprecated3.default;\nexports.elementType = _elementType3.default;\nexports.isRequiredForA11y = _isRequiredForA11y3.default;\nexports.splitComponent = _splitComponent3.default;\nexports.createChainedFunction = _createChainedFunction3.default;\nexports.KeyCode = _keyCode2.default;\nexports.contains = _contains3.default;\nexports.addEventListener = _addEventListener3.default;\nexports.cssAnimation = _cssAnimation3.default;\nexports.toArray = _toArray3.default;\n//export getContainerRenderMixin from './getContainerRenderMixin';\n\nexports.Align = _Align3.default;\n\n/***/ }),\n/* 104 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports.default = function (recalc) {\n if (!size || recalc) {\n if (_inDOM2.default) {\n var scrollDiv = document.createElement('div');\n\n scrollDiv.style.position = 'absolute';\n scrollDiv.style.top = '-9999px';\n scrollDiv.style.width = '50px';\n scrollDiv.style.height = '50px';\n scrollDiv.style.overflow = 'scroll';\n\n document.body.appendChild(scrollDiv);\n size = scrollDiv.offsetWidth - scrollDiv.clientWidth;\n document.body.removeChild(scrollDiv);\n }\n }\n\n return size;\n};\n\nvar _inDOM = __webpack_require__(25);\n\nvar _inDOM2 = _interopRequireDefault(_inDOM);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar size = void 0;\n\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 105 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = isOverflowing;\n\nvar _isWindow = __webpack_require__(100);\n\nvar _isWindow2 = _interopRequireDefault(_isWindow);\n\nvar _ownerDocument = __webpack_require__(22);\n\nvar _ownerDocument2 = _interopRequireDefault(_ownerDocument);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction isBody(node) {\n return node && node.tagName.toLowerCase() === 'body';\n}\n\nfunction bodyIsOverflowing(node) {\n var doc = (0, _ownerDocument2[\"default\"])(node);\n var win = (0, _isWindow2[\"default\"])(doc);\n var fullWidth = win.innerWidth;\n\n // Support: ie8, no innerWidth\n if (!fullWidth) {\n var documentElementRect = doc.documentElement.getBoundingClientRect();\n fullWidth = documentElementRect.right - Math.abs(documentElementRect.left);\n }\n\n return doc.body.clientWidth < fullWidth;\n}\n\nfunction isOverflowing(container) {\n var win = (0, _isWindow2[\"default\"])(container);\n return win || isBody(container) ? false : container.scrollHeight > container.clientHeight;\n}\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 106 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n// turn {x: {val: 1, stiffness: 1, damping: 2}, y: 2} generated by\n// `{x: spring(1, {stiffness: 1, damping: 2}), y: 2}` into {x: 1, y: 2}\n\n\n\nexports.__esModule = true;\nexports['default'] = stripStyle;\n\nfunction stripStyle(style) {\n var ret = {};\n for (var key in style) {\n if (!Object.prototype.hasOwnProperty.call(style, key)) {\n continue;\n }\n ret[key] = typeof style[key] === 'number' ? style[key] : style[key].val;\n }\n return ret;\n}\n\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 107 */\n/***/ (function(module, exports, __webpack_require__) {\n\n(function (global, factory) {\n\t true ? module.exports = factory(__webpack_require__(3), __webpack_require__(0)) :\n\ttypeof define === 'function' && define.amd ? define(['react-dom', 'react'], factory) :\n\t(global.ReactDraggable = factory(global.ReactDOM,global.React));\n}(this, (function (ReactDOM,React) { 'use strict';\n\n\tReactDOM = ReactDOM && ReactDOM.hasOwnProperty('default') ? ReactDOM['default'] : ReactDOM;\n\tReact = React && React.hasOwnProperty('default') ? React['default'] : React;\n\n\tfunction createCommonjsModule(fn, module) {\n\t\treturn module = { exports: {} }, fn(module, module.exports), module.exports;\n\t}\n\n\t/**\n\t * Copyright (c) 2013-present, Facebook, Inc.\n\t *\n\t * This source code is licensed under the MIT license found in the\n\t * LICENSE file in the root directory of this source tree.\n\t *\n\t * \n\t */\n\n\tfunction makeEmptyFunction(arg) {\n\t return function () {\n\t return arg;\n\t };\n\t}\n\n\t/**\n\t * This function accepts and discards inputs; it has no side effects. This is\n\t * primarily useful idiomatically for overridable function endpoints which\n\t * always need to be callable, since JS lacks a null-call idiom ala Cocoa.\n\t */\n\tvar emptyFunction = function emptyFunction() {};\n\n\temptyFunction.thatReturns = makeEmptyFunction;\n\temptyFunction.thatReturnsFalse = makeEmptyFunction(false);\n\temptyFunction.thatReturnsTrue = makeEmptyFunction(true);\n\temptyFunction.thatReturnsNull = makeEmptyFunction(null);\n\temptyFunction.thatReturnsThis = function () {\n\t return this;\n\t};\n\temptyFunction.thatReturnsArgument = function (arg) {\n\t return arg;\n\t};\n\n\tvar emptyFunction_1 = emptyFunction;\n\n\t/**\n\t * Copyright (c) 2013-present, Facebook, Inc.\n\t *\n\t * This source code is licensed under the MIT license found in the\n\t * LICENSE file in the root directory of this source tree.\n\t *\n\t */\n\n\t/**\n\t * Use invariant() to assert state which your program assumes to be true.\n\t *\n\t * Provide sprintf-style format (only %s is supported) and arguments\n\t * to provide information about what broke and what you were\n\t * expecting.\n\t *\n\t * The invariant message will be stripped in production, but the invariant\n\t * will remain to ensure logic does not differ in production.\n\t */\n\n\tvar validateFormat = function validateFormat(format) {};\n\n\t{\n\t validateFormat = function validateFormat(format) {\n\t if (format === undefined) {\n\t throw new Error('invariant requires an error message argument');\n\t }\n\t };\n\t}\n\n\tfunction invariant(condition, format, a, b, c, d, e, f) {\n\t validateFormat(format);\n\n\t if (!condition) {\n\t var error;\n\t if (format === undefined) {\n\t error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');\n\t } else {\n\t var args = [a, b, c, d, e, f];\n\t var argIndex = 0;\n\t error = new Error(format.replace(/%s/g, function () {\n\t return args[argIndex++];\n\t }));\n\t error.name = 'Invariant Violation';\n\t }\n\n\t error.framesToPop = 1; // we don't care about invariant's own frame\n\t throw error;\n\t }\n\t}\n\n\tvar invariant_1 = invariant;\n\n\t/**\n\t * Similar to invariant but only logs a warning if the condition is not met.\n\t * This can be used to log issues in development environments in critical\n\t * paths. Removing the logging code for production environments will keep the\n\t * same logic and follow the same code paths.\n\t */\n\n\tvar warning = emptyFunction_1;\n\n\t{\n\t var printWarning = function printWarning(format) {\n\t for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n\t args[_key - 1] = arguments[_key];\n\t }\n\n\t var argIndex = 0;\n\t var message = 'Warning: ' + format.replace(/%s/g, function () {\n\t return args[argIndex++];\n\t });\n\t if (typeof console !== 'undefined') {\n\t console.error(message);\n\t }\n\t try {\n\t // --- Welcome to debugging React ---\n\t // This error was thrown as a convenience so that you can use this stack\n\t // to find the callsite that caused this warning to fire.\n\t throw new Error(message);\n\t } catch (x) {}\n\t };\n\n\t warning = function warning(condition, format) {\n\t if (format === undefined) {\n\t throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');\n\t }\n\n\t if (format.indexOf('Failed Composite propType: ') === 0) {\n\t return; // Ignore CompositeComponent proptype check.\n\t }\n\n\t if (!condition) {\n\t for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {\n\t args[_key2 - 2] = arguments[_key2];\n\t }\n\n\t printWarning.apply(undefined, [format].concat(args));\n\t }\n\t };\n\t}\n\n\tvar warning_1 = warning;\n\n\t/*\n\tobject-assign\n\t(c) Sindre Sorhus\n\t@license MIT\n\t*/\n\t/* eslint-disable no-unused-vars */\n\tvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\n\tvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\tvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\n\tfunction toObject(val) {\n\t\tif (val === null || val === undefined) {\n\t\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t\t}\n\n\t\treturn Object(val);\n\t}\n\n\tfunction shouldUseNative() {\n\t\ttry {\n\t\t\tif (!Object.assign) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\t\ttest1[5] = 'de';\n\t\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\t\tvar test2 = {};\n\t\t\tfor (var i = 0; i < 10; i++) {\n\t\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t\t}\n\t\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\t\treturn test2[n];\n\t\t\t});\n\t\t\tif (order2.join('') !== '0123456789') {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\t\tvar test3 = {};\n\t\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\t\ttest3[letter] = letter;\n\t\t\t});\n\t\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\treturn true;\n\t\t} catch (err) {\n\t\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tvar objectAssign = shouldUseNative() ? Object.assign : function (target, source) {\n\t\tvar from;\n\t\tvar to = toObject(target);\n\t\tvar symbols;\n\n\t\tfor (var s = 1; s < arguments.length; s++) {\n\t\t\tfrom = Object(arguments[s]);\n\n\t\t\tfor (var key in from) {\n\t\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\t\tto[key] = from[key];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (getOwnPropertySymbols) {\n\t\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn to;\n\t};\n\n\t/**\n\t * Copyright (c) 2013-present, Facebook, Inc.\n\t *\n\t * This source code is licensed under the MIT license found in the\n\t * LICENSE file in the root directory of this source tree.\n\t */\n\n\tvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\n\tvar ReactPropTypesSecret_1 = ReactPropTypesSecret;\n\n\t{\n\t var invariant$1 = invariant_1;\n\t var warning$1 = warning_1;\n\t var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;\n\t var loggedTypeFailures = {};\n\t}\n\n\t/**\n\t * Assert that the values match with the type specs.\n\t * Error messages are memorized and will only be shown once.\n\t *\n\t * @param {object} typeSpecs Map of name to a ReactPropType\n\t * @param {object} values Runtime values that need to be type-checked\n\t * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n\t * @param {string} componentName Name of the component for error messages.\n\t * @param {?Function} getStack Returns the component stack.\n\t * @private\n\t */\n\tfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n\t {\n\t for (var typeSpecName in typeSpecs) {\n\t if (typeSpecs.hasOwnProperty(typeSpecName)) {\n\t var error;\n\t // Prop type validation may throw. In case they do, we don't want to\n\t // fail the render phase where it didn't fail before. So we log it.\n\t // After these have been cleaned up, we'll let them throw.\n\t try {\n\t // This is intentionally an invariant that gets caught. It's the same\n\t // behavior as without this statement except with a better message.\n\t invariant$1(typeof typeSpecs[typeSpecName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'the `prop-types` package, but received `%s`.', componentName || 'React class', location, typeSpecName, typeof typeSpecs[typeSpecName]);\n\t error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$1);\n\t } catch (ex) {\n\t error = ex;\n\t }\n\t warning$1(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error);\n\t if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n\t // Only monitor this failure once because there tends to be a lot of the\n\t // same error.\n\t loggedTypeFailures[error.message] = true;\n\n\t var stack = getStack ? getStack() : '';\n\n\t warning$1(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : '');\n\t }\n\t }\n\t }\n\t }\n\t}\n\n\tvar checkPropTypes_1 = checkPropTypes;\n\n\tvar factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {\n\t /* global Symbol */\n\t var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n\t var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n\t /**\n\t * Returns the iterator method function contained on the iterable object.\n\t *\n\t * Be sure to invoke the function with the iterable as context:\n\t *\n\t * var iteratorFn = getIteratorFn(myIterable);\n\t * if (iteratorFn) {\n\t * var iterator = iteratorFn.call(myIterable);\n\t * ...\n\t * }\n\t *\n\t * @param {?object} maybeIterable\n\t * @return {?function}\n\t */\n\t function getIteratorFn(maybeIterable) {\n\t var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n\t if (typeof iteratorFn === 'function') {\n\t return iteratorFn;\n\t }\n\t }\n\n\t /**\n\t * Collection of methods that allow declaration and validation of props that are\n\t * supplied to React components. Example usage:\n\t *\n\t * var Props = require('ReactPropTypes');\n\t * var MyArticle = React.createClass({\n\t * propTypes: {\n\t * // An optional string prop named \"description\".\n\t * description: Props.string,\n\t *\n\t * // A required enum prop named \"category\".\n\t * category: Props.oneOf(['News','Photos']).isRequired,\n\t *\n\t * // A prop named \"dialog\" that requires an instance of Dialog.\n\t * dialog: Props.instanceOf(Dialog).isRequired\n\t * },\n\t * render: function() { ... }\n\t * });\n\t *\n\t * A more formal specification of how these methods are used:\n\t *\n\t * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n\t * decl := ReactPropTypes.{type}(.isRequired)?\n\t *\n\t * Each and every declaration produces a function with the same signature. This\n\t * allows the creation of custom validation functions. For example:\n\t *\n\t * var MyLink = React.createClass({\n\t * propTypes: {\n\t * // An optional string or URI prop named \"href\".\n\t * href: function(props, propName, componentName) {\n\t * var propValue = props[propName];\n\t * if (propValue != null && typeof propValue !== 'string' &&\n\t * !(propValue instanceof URI)) {\n\t * return new Error(\n\t * 'Expected a string or an URI for ' + propName + ' in ' +\n\t * componentName\n\t * );\n\t * }\n\t * }\n\t * },\n\t * render: function() {...}\n\t * });\n\t *\n\t * @internal\n\t */\n\n\t var ANONYMOUS = '<>';\n\n\t // Important!\n\t // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.\n\t var ReactPropTypes = {\n\t array: createPrimitiveTypeChecker('array'),\n\t bool: createPrimitiveTypeChecker('boolean'),\n\t func: createPrimitiveTypeChecker('function'),\n\t number: createPrimitiveTypeChecker('number'),\n\t object: createPrimitiveTypeChecker('object'),\n\t string: createPrimitiveTypeChecker('string'),\n\t symbol: createPrimitiveTypeChecker('symbol'),\n\n\t any: createAnyTypeChecker(),\n\t arrayOf: createArrayOfTypeChecker,\n\t element: createElementTypeChecker(),\n\t instanceOf: createInstanceTypeChecker,\n\t node: createNodeChecker(),\n\t objectOf: createObjectOfTypeChecker,\n\t oneOf: createEnumTypeChecker,\n\t oneOfType: createUnionTypeChecker,\n\t shape: createShapeTypeChecker,\n\t exact: createStrictShapeTypeChecker,\n\t };\n\n\t /**\n\t * inlined Object.is polyfill to avoid requiring consumers ship their own\n\t * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n\t */\n\t /*eslint-disable no-self-compare*/\n\t function is(x, y) {\n\t // SameValue algorithm\n\t if (x === y) {\n\t // Steps 1-5, 7-10\n\t // Steps 6.b-6.e: +0 != -0\n\t return x !== 0 || 1 / x === 1 / y;\n\t } else {\n\t // Step 6.a: NaN == NaN\n\t return x !== x && y !== y;\n\t }\n\t }\n\t /*eslint-enable no-self-compare*/\n\n\t /**\n\t * We use an Error-like object for backward compatibility as people may call\n\t * PropTypes directly and inspect their output. However, we don't use real\n\t * Errors anymore. We don't inspect their stack anyway, and creating them\n\t * is prohibitively expensive if they are created too often, such as what\n\t * happens in oneOfType() for any type before the one that matched.\n\t */\n\t function PropTypeError(message) {\n\t this.message = message;\n\t this.stack = '';\n\t }\n\t // Make `instanceof Error` still work for returned errors.\n\t PropTypeError.prototype = Error.prototype;\n\n\t function createChainableTypeChecker(validate) {\n\t {\n\t var manualPropTypeCallCache = {};\n\t var manualPropTypeWarningCount = 0;\n\t }\n\t function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n\t componentName = componentName || ANONYMOUS;\n\t propFullName = propFullName || propName;\n\n\t if (secret !== ReactPropTypesSecret_1) {\n\t if (throwOnDirectAccess) {\n\t // New behavior only for users of `prop-types` package\n\t invariant_1(\n\t false,\n\t 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n\t 'Use `PropTypes.checkPropTypes()` to call them. ' +\n\t 'Read more at http://fb.me/use-check-prop-types'\n\t );\n\t } else if (\"development\" !== 'production' && typeof console !== 'undefined') {\n\t // Old behavior for people using React.PropTypes\n\t var cacheKey = componentName + ':' + propName;\n\t if (\n\t !manualPropTypeCallCache[cacheKey] &&\n\t // Avoid spamming the console because they are often not actionable except for lib authors\n\t manualPropTypeWarningCount < 3\n\t ) {\n\t warning_1(\n\t false,\n\t 'You are manually calling a React.PropTypes validation ' +\n\t 'function for the `%s` prop on `%s`. This is deprecated ' +\n\t 'and will throw in the standalone `prop-types` package. ' +\n\t 'You may be seeing this warning due to a third-party PropTypes ' +\n\t 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.',\n\t propFullName,\n\t componentName\n\t );\n\t manualPropTypeCallCache[cacheKey] = true;\n\t manualPropTypeWarningCount++;\n\t }\n\t }\n\t }\n\t if (props[propName] == null) {\n\t if (isRequired) {\n\t if (props[propName] === null) {\n\t return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n\t }\n\t return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n\t }\n\t return null;\n\t } else {\n\t return validate(props, propName, componentName, location, propFullName);\n\t }\n\t }\n\n\t var chainedCheckType = checkType.bind(null, false);\n\t chainedCheckType.isRequired = checkType.bind(null, true);\n\n\t return chainedCheckType;\n\t }\n\n\t function createPrimitiveTypeChecker(expectedType) {\n\t function validate(props, propName, componentName, location, propFullName, secret) {\n\t var propValue = props[propName];\n\t var propType = getPropType(propValue);\n\t if (propType !== expectedType) {\n\t // `propValue` being instance of, say, date/regexp, pass the 'object'\n\t // check, but we can offer a more precise error message here rather than\n\t // 'of type `object`'.\n\t var preciseType = getPreciseType(propValue);\n\n\t return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));\n\t }\n\t return null;\n\t }\n\t return createChainableTypeChecker(validate);\n\t }\n\n\t function createAnyTypeChecker() {\n\t return createChainableTypeChecker(emptyFunction_1.thatReturnsNull);\n\t }\n\n\t function createArrayOfTypeChecker(typeChecker) {\n\t function validate(props, propName, componentName, location, propFullName) {\n\t if (typeof typeChecker !== 'function') {\n\t return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n\t }\n\t var propValue = props[propName];\n\t if (!Array.isArray(propValue)) {\n\t var propType = getPropType(propValue);\n\t return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n\t }\n\t for (var i = 0; i < propValue.length; i++) {\n\t var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret_1);\n\t if (error instanceof Error) {\n\t return error;\n\t }\n\t }\n\t return null;\n\t }\n\t return createChainableTypeChecker(validate);\n\t }\n\n\t function createElementTypeChecker() {\n\t function validate(props, propName, componentName, location, propFullName) {\n\t var propValue = props[propName];\n\t if (!isValidElement(propValue)) {\n\t var propType = getPropType(propValue);\n\t return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n\t }\n\t return null;\n\t }\n\t return createChainableTypeChecker(validate);\n\t }\n\n\t function createInstanceTypeChecker(expectedClass) {\n\t function validate(props, propName, componentName, location, propFullName) {\n\t if (!(props[propName] instanceof expectedClass)) {\n\t var expectedClassName = expectedClass.name || ANONYMOUS;\n\t var actualClassName = getClassName(props[propName]);\n\t return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n\t }\n\t return null;\n\t }\n\t return createChainableTypeChecker(validate);\n\t }\n\n\t function createEnumTypeChecker(expectedValues) {\n\t if (!Array.isArray(expectedValues)) {\n\t warning_1(false, 'Invalid argument supplied to oneOf, expected an instance of array.');\n\t return emptyFunction_1.thatReturnsNull;\n\t }\n\n\t function validate(props, propName, componentName, location, propFullName) {\n\t var propValue = props[propName];\n\t for (var i = 0; i < expectedValues.length; i++) {\n\t if (is(propValue, expectedValues[i])) {\n\t return null;\n\t }\n\t }\n\n\t var valuesString = JSON.stringify(expectedValues);\n\t return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n\t }\n\t return createChainableTypeChecker(validate);\n\t }\n\n\t function createObjectOfTypeChecker(typeChecker) {\n\t function validate(props, propName, componentName, location, propFullName) {\n\t if (typeof typeChecker !== 'function') {\n\t return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n\t }\n\t var propValue = props[propName];\n\t var propType = getPropType(propValue);\n\t if (propType !== 'object') {\n\t return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n\t }\n\t for (var key in propValue) {\n\t if (propValue.hasOwnProperty(key)) {\n\t var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);\n\t if (error instanceof Error) {\n\t return error;\n\t }\n\t }\n\t }\n\t return null;\n\t }\n\t return createChainableTypeChecker(validate);\n\t }\n\n\t function createUnionTypeChecker(arrayOfTypeCheckers) {\n\t if (!Array.isArray(arrayOfTypeCheckers)) {\n\t warning_1(false, 'Invalid argument supplied to oneOfType, expected an instance of array.');\n\t return emptyFunction_1.thatReturnsNull;\n\t }\n\n\t for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n\t var checker = arrayOfTypeCheckers[i];\n\t if (typeof checker !== 'function') {\n\t warning_1(\n\t false,\n\t 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +\n\t 'received %s at index %s.',\n\t getPostfixForTypeWarning(checker),\n\t i\n\t );\n\t return emptyFunction_1.thatReturnsNull;\n\t }\n\t }\n\n\t function validate(props, propName, componentName, location, propFullName) {\n\t for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n\t var checker = arrayOfTypeCheckers[i];\n\t if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret_1) == null) {\n\t return null;\n\t }\n\t }\n\n\t return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));\n\t }\n\t return createChainableTypeChecker(validate);\n\t }\n\n\t function createNodeChecker() {\n\t function validate(props, propName, componentName, location, propFullName) {\n\t if (!isNode(props[propName])) {\n\t return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n\t }\n\t return null;\n\t }\n\t return createChainableTypeChecker(validate);\n\t }\n\n\t function createShapeTypeChecker(shapeTypes) {\n\t function validate(props, propName, componentName, location, propFullName) {\n\t var propValue = props[propName];\n\t var propType = getPropType(propValue);\n\t if (propType !== 'object') {\n\t return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n\t }\n\t for (var key in shapeTypes) {\n\t var checker = shapeTypes[key];\n\t if (!checker) {\n\t continue;\n\t }\n\t var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);\n\t if (error) {\n\t return error;\n\t }\n\t }\n\t return null;\n\t }\n\t return createChainableTypeChecker(validate);\n\t }\n\n\t function createStrictShapeTypeChecker(shapeTypes) {\n\t function validate(props, propName, componentName, location, propFullName) {\n\t var propValue = props[propName];\n\t var propType = getPropType(propValue);\n\t if (propType !== 'object') {\n\t return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n\t }\n\t // We need to check all keys in case some are required but missing from\n\t // props.\n\t var allKeys = objectAssign({}, props[propName], shapeTypes);\n\t for (var key in allKeys) {\n\t var checker = shapeTypes[key];\n\t if (!checker) {\n\t return new PropTypeError(\n\t 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +\n\t '\\nBad object: ' + JSON.stringify(props[propName], null, ' ') +\n\t '\\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')\n\t );\n\t }\n\t var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);\n\t if (error) {\n\t return error;\n\t }\n\t }\n\t return null;\n\t }\n\n\t return createChainableTypeChecker(validate);\n\t }\n\n\t function isNode(propValue) {\n\t switch (typeof propValue) {\n\t case 'number':\n\t case 'string':\n\t case 'undefined':\n\t return true;\n\t case 'boolean':\n\t return !propValue;\n\t case 'object':\n\t if (Array.isArray(propValue)) {\n\t return propValue.every(isNode);\n\t }\n\t if (propValue === null || isValidElement(propValue)) {\n\t return true;\n\t }\n\n\t var iteratorFn = getIteratorFn(propValue);\n\t if (iteratorFn) {\n\t var iterator = iteratorFn.call(propValue);\n\t var step;\n\t if (iteratorFn !== propValue.entries) {\n\t while (!(step = iterator.next()).done) {\n\t if (!isNode(step.value)) {\n\t return false;\n\t }\n\t }\n\t } else {\n\t // Iterator will provide entry [k,v] tuples rather than values.\n\t while (!(step = iterator.next()).done) {\n\t var entry = step.value;\n\t if (entry) {\n\t if (!isNode(entry[1])) {\n\t return false;\n\t }\n\t }\n\t }\n\t }\n\t } else {\n\t return false;\n\t }\n\n\t return true;\n\t default:\n\t return false;\n\t }\n\t }\n\n\t function isSymbol(propType, propValue) {\n\t // Native Symbol.\n\t if (propType === 'symbol') {\n\t return true;\n\t }\n\n\t // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n\t if (propValue['@@toStringTag'] === 'Symbol') {\n\t return true;\n\t }\n\n\t // Fallback for non-spec compliant Symbols which are polyfilled.\n\t if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n\t return true;\n\t }\n\n\t return false;\n\t }\n\n\t // Equivalent of `typeof` but with special handling for array and regexp.\n\t function getPropType(propValue) {\n\t var propType = typeof propValue;\n\t if (Array.isArray(propValue)) {\n\t return 'array';\n\t }\n\t if (propValue instanceof RegExp) {\n\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n\t // passes PropTypes.object.\n\t return 'object';\n\t }\n\t if (isSymbol(propType, propValue)) {\n\t return 'symbol';\n\t }\n\t return propType;\n\t }\n\n\t // This handles more types than `getPropType`. Only used for error messages.\n\t // See `createPrimitiveTypeChecker`.\n\t function getPreciseType(propValue) {\n\t if (typeof propValue === 'undefined' || propValue === null) {\n\t return '' + propValue;\n\t }\n\t var propType = getPropType(propValue);\n\t if (propType === 'object') {\n\t if (propValue instanceof Date) {\n\t return 'date';\n\t } else if (propValue instanceof RegExp) {\n\t return 'regexp';\n\t }\n\t }\n\t return propType;\n\t }\n\n\t // Returns a string that is postfixed to a warning about an invalid type.\n\t // For example, \"undefined\" or \"of type array\"\n\t function getPostfixForTypeWarning(value) {\n\t var type = getPreciseType(value);\n\t switch (type) {\n\t case 'array':\n\t case 'object':\n\t return 'an ' + type;\n\t case 'boolean':\n\t case 'date':\n\t case 'regexp':\n\t return 'a ' + type;\n\t default:\n\t return type;\n\t }\n\t }\n\n\t // Returns class name of the object, if any.\n\t function getClassName(propValue) {\n\t if (!propValue.constructor || !propValue.constructor.name) {\n\t return ANONYMOUS;\n\t }\n\t return propValue.constructor.name;\n\t }\n\n\t ReactPropTypes.checkPropTypes = checkPropTypes_1;\n\t ReactPropTypes.PropTypes = ReactPropTypes;\n\n\t return ReactPropTypes;\n\t};\n\n\tvar propTypes = createCommonjsModule(function (module) {\n\t/**\n\t * Copyright (c) 2013-present, Facebook, Inc.\n\t *\n\t * This source code is licensed under the MIT license found in the\n\t * LICENSE file in the root directory of this source tree.\n\t */\n\n\t{\n\t var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' &&\n\t Symbol.for &&\n\t Symbol.for('react.element')) ||\n\t 0xeac7;\n\n\t var isValidElement = function(object) {\n\t return typeof object === 'object' &&\n\t object !== null &&\n\t object.$$typeof === REACT_ELEMENT_TYPE;\n\t };\n\n\t // By explicitly using `prop-types` you are opting into new development behavior.\n\t // http://fb.me/prop-types-in-prod\n\t var throwOnDirectAccess = true;\n\t module.exports = factoryWithTypeCheckers(isValidElement, throwOnDirectAccess);\n\t}\n\t});\n\n\tvar classnames = createCommonjsModule(function (module) {\n\t/*!\n\t Copyright (c) 2016 Jed Watson.\n\t Licensed under the MIT License (MIT), see\n\t http://jedwatson.github.io/classnames\n\t*/\n\t/* global define */\n\n\t(function () {\n\n\t\tvar hasOwn = {}.hasOwnProperty;\n\n\t\tfunction classNames () {\n\t\t\tvar classes = [];\n\n\t\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\t\tvar arg = arguments[i];\n\t\t\t\tif (!arg) continue;\n\n\t\t\t\tvar argType = typeof arg;\n\n\t\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\t\tclasses.push(arg);\n\t\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\t\tclasses.push(classNames.apply(null, arg));\n\t\t\t\t} else if (argType === 'object') {\n\t\t\t\t\tfor (var key in arg) {\n\t\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn classes.join(' ');\n\t\t}\n\n\t\tif ('object' !== 'undefined' && module.exports) {\n\t\t\tmodule.exports = classNames;\n\t\t} else if (false) {\n\t\t\t// register as 'classnames', consistent with npm package name\n\t\t\tundefined('classnames', [], function () {\n\t\t\t\treturn classNames;\n\t\t\t});\n\t\t} else {\n\t\t\twindow.classNames = classNames;\n\t\t}\n\t}());\n\t});\n\n\t// @credits https://gist.github.com/rogozhnikoff/a43cfed27c41e4e68cdc\n\tfunction findInArray(array /*: Array | TouchList*/, callback /*: Function*/) /*: any*/ {\n\t for (var i = 0, length = array.length; i < length; i++) {\n\t if (callback.apply(callback, [array[i], i, array])) return array[i];\n\t }\n\t}\n\n\tfunction isFunction(func /*: any*/) /*: boolean*/ {\n\t return typeof func === 'function' || Object.prototype.toString.call(func) === '[object Function]';\n\t}\n\n\tfunction isNum(num /*: any*/) /*: boolean*/ {\n\t return typeof num === 'number' && !isNaN(num);\n\t}\n\n\tfunction int(a /*: string*/) /*: number*/ {\n\t return parseInt(a, 10);\n\t}\n\n\tfunction dontSetMe(props /*: Object*/, propName /*: string*/, componentName /*: string*/) {\n\t if (props[propName]) {\n\t return new Error('Invalid prop ' + propName + ' passed to ' + componentName + ' - do not set this, set it on the child.');\n\t }\n\t}\n\n\tvar prefixes = ['Moz', 'Webkit', 'O', 'ms'];\n\tfunction getPrefix() /*: string*/ {\n\t var prop /*: string*/ = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'transform';\n\n\t // Checking specifically for 'window.document' is for pseudo-browser server-side\n\t // environments that define 'window' as the global context.\n\t // E.g. React-rails (see https://github.com/reactjs/react-rails/pull/84)\n\t if (typeof window === 'undefined' || typeof window.document === 'undefined') return '';\n\n\t var style = window.document.documentElement.style;\n\n\t if (prop in style) return '';\n\n\t for (var i = 0; i < prefixes.length; i++) {\n\t if (browserPrefixToKey(prop, prefixes[i]) in style) return prefixes[i];\n\t }\n\n\t return '';\n\t}\n\n\tfunction browserPrefixToKey(prop /*: string*/, prefix /*: string*/) /*: string*/ {\n\t return prefix ? '' + prefix + kebabToTitleCase(prop) : prop;\n\t}\n\n\tfunction kebabToTitleCase(str /*: string*/) /*: string*/ {\n\t var out = '';\n\t var shouldCapitalize = true;\n\t for (var i = 0; i < str.length; i++) {\n\t if (shouldCapitalize) {\n\t out += str[i].toUpperCase();\n\t shouldCapitalize = false;\n\t } else if (str[i] === '-') {\n\t shouldCapitalize = true;\n\t } else {\n\t out += str[i];\n\t }\n\t }\n\t return out;\n\t}\n\n\t// Default export is the prefix itself, like 'Moz', 'Webkit', etc\n\t// Note that you may have to re-test for certain things; for instance, Chrome 50\n\t// can handle unprefixed `transform`, but not unprefixed `user-select`\n\tvar browserPrefix = getPrefix();\n\n\tvar classCallCheck = function (instance, Constructor) {\n\t if (!(instance instanceof Constructor)) {\n\t throw new TypeError(\"Cannot call a class as a function\");\n\t }\n\t};\n\n\tvar createClass = function () {\n\t function defineProperties(target, props) {\n\t for (var i = 0; i < props.length; i++) {\n\t var descriptor = props[i];\n\t descriptor.enumerable = descriptor.enumerable || false;\n\t descriptor.configurable = true;\n\t if (\"value\" in descriptor) descriptor.writable = true;\n\t Object.defineProperty(target, descriptor.key, descriptor);\n\t }\n\t }\n\n\t return function (Constructor, protoProps, staticProps) {\n\t if (protoProps) defineProperties(Constructor.prototype, protoProps);\n\t if (staticProps) defineProperties(Constructor, staticProps);\n\t return Constructor;\n\t };\n\t}();\n\n\tvar defineProperty = function (obj, key, value) {\n\t if (key in obj) {\n\t Object.defineProperty(obj, key, {\n\t value: value,\n\t enumerable: true,\n\t configurable: true,\n\t writable: true\n\t });\n\t } else {\n\t obj[key] = value;\n\t }\n\n\t return obj;\n\t};\n\n\tvar _extends = Object.assign || function (target) {\n\t for (var i = 1; i < arguments.length; i++) {\n\t var source = arguments[i];\n\n\t for (var key in source) {\n\t if (Object.prototype.hasOwnProperty.call(source, key)) {\n\t target[key] = source[key];\n\t }\n\t }\n\t }\n\n\t return target;\n\t};\n\n\tvar inherits = function (subClass, superClass) {\n\t if (typeof superClass !== \"function\" && superClass !== null) {\n\t throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n\t }\n\n\t subClass.prototype = Object.create(superClass && superClass.prototype, {\n\t constructor: {\n\t value: subClass,\n\t enumerable: false,\n\t writable: true,\n\t configurable: true\n\t }\n\t });\n\t if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n\t};\n\n\tvar possibleConstructorReturn = function (self, call) {\n\t if (!self) {\n\t throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n\t }\n\n\t return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n\t};\n\n\tvar slicedToArray = function () {\n\t function sliceIterator(arr, i) {\n\t var _arr = [];\n\t var _n = true;\n\t var _d = false;\n\t var _e = undefined;\n\n\t try {\n\t for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n\t _arr.push(_s.value);\n\n\t if (i && _arr.length === i) break;\n\t }\n\t } catch (err) {\n\t _d = true;\n\t _e = err;\n\t } finally {\n\t try {\n\t if (!_n && _i[\"return\"]) _i[\"return\"]();\n\t } finally {\n\t if (_d) throw _e;\n\t }\n\t }\n\n\t return _arr;\n\t }\n\n\t return function (arr, i) {\n\t if (Array.isArray(arr)) {\n\t return arr;\n\t } else if (Symbol.iterator in Object(arr)) {\n\t return sliceIterator(arr, i);\n\t } else {\n\t throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n\t }\n\t };\n\t}();\n\n\t/*:: import type {ControlPosition, PositionOffsetControlPosition, MouseTouchEvent} from './types';*/\n\n\n\tvar matchesSelectorFunc = '';\n\tfunction matchesSelector(el /*: Node*/, selector /*: string*/) /*: boolean*/ {\n\t if (!matchesSelectorFunc) {\n\t matchesSelectorFunc = findInArray(['matches', 'webkitMatchesSelector', 'mozMatchesSelector', 'msMatchesSelector', 'oMatchesSelector'], function (method) {\n\t // $FlowIgnore: Doesn't think elements are indexable\n\t return isFunction(el[method]);\n\t });\n\t }\n\n\t // Might not be found entirely (not an Element?) - in that case, bail\n\t // $FlowIgnore: Doesn't think elements are indexable\n\t if (!isFunction(el[matchesSelectorFunc])) return false;\n\n\t // $FlowIgnore: Doesn't think elements are indexable\n\t return el[matchesSelectorFunc](selector);\n\t}\n\n\t// Works up the tree to the draggable itself attempting to match selector.\n\tfunction matchesSelectorAndParentsTo(el /*: Node*/, selector /*: string*/, baseNode /*: Node*/) /*: boolean*/ {\n\t var node = el;\n\t do {\n\t if (matchesSelector(node, selector)) return true;\n\t if (node === baseNode) return false;\n\t node = node.parentNode;\n\t } while (node);\n\n\t return false;\n\t}\n\n\tfunction addEvent(el /*: ?Node*/, event /*: string*/, handler /*: Function*/) /*: void*/ {\n\t if (!el) {\n\t return;\n\t }\n\t if (el.attachEvent) {\n\t el.attachEvent('on' + event, handler);\n\t } else if (el.addEventListener) {\n\t el.addEventListener(event, handler, true);\n\t } else {\n\t // $FlowIgnore: Doesn't think elements are indexable\n\t el['on' + event] = handler;\n\t }\n\t}\n\n\tfunction removeEvent(el /*: ?Node*/, event /*: string*/, handler /*: Function*/) /*: void*/ {\n\t if (!el) {\n\t return;\n\t }\n\t if (el.detachEvent) {\n\t el.detachEvent('on' + event, handler);\n\t } else if (el.removeEventListener) {\n\t el.removeEventListener(event, handler, true);\n\t } else {\n\t // $FlowIgnore: Doesn't think elements are indexable\n\t el['on' + event] = null;\n\t }\n\t}\n\n\tfunction outerHeight(node /*: HTMLElement*/) /*: number*/ {\n\t // This is deliberately excluding margin for our calculations, since we are using\n\t // offsetTop which is including margin. See getBoundPosition\n\t var height = node.clientHeight;\n\t var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);\n\t height += int(computedStyle.borderTopWidth);\n\t height += int(computedStyle.borderBottomWidth);\n\t return height;\n\t}\n\n\tfunction outerWidth(node /*: HTMLElement*/) /*: number*/ {\n\t // This is deliberately excluding margin for our calculations, since we are using\n\t // offsetLeft which is including margin. See getBoundPosition\n\t var width = node.clientWidth;\n\t var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);\n\t width += int(computedStyle.borderLeftWidth);\n\t width += int(computedStyle.borderRightWidth);\n\t return width;\n\t}\n\tfunction innerHeight(node /*: HTMLElement*/) /*: number*/ {\n\t var height = node.clientHeight;\n\t var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);\n\t height -= int(computedStyle.paddingTop);\n\t height -= int(computedStyle.paddingBottom);\n\t return height;\n\t}\n\n\tfunction innerWidth(node /*: HTMLElement*/) /*: number*/ {\n\t var width = node.clientWidth;\n\t var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);\n\t width -= int(computedStyle.paddingLeft);\n\t width -= int(computedStyle.paddingRight);\n\t return width;\n\t}\n\n\t// Get from offsetParent\n\tfunction offsetXYFromParent(evt /*: {clientX: number, clientY: number}*/, offsetParent /*: HTMLElement*/) /*: ControlPosition*/ {\n\t var isBody = offsetParent === offsetParent.ownerDocument.body;\n\t var offsetParentRect = isBody ? { left: 0, top: 0 } : offsetParent.getBoundingClientRect();\n\n\t var x = evt.clientX + offsetParent.scrollLeft - offsetParentRect.left;\n\t var y = evt.clientY + offsetParent.scrollTop - offsetParentRect.top;\n\n\t return { x: x, y: y };\n\t}\n\n\tfunction createCSSTransform(controlPos /*: ControlPosition*/, positionOffset /*: PositionOffsetControlPosition*/) /*: Object*/ {\n\t var translation = getTranslation(controlPos, positionOffset, 'px');\n\t return defineProperty({}, browserPrefixToKey('transform', browserPrefix), translation);\n\t}\n\n\tfunction createSVGTransform(controlPos /*: ControlPosition*/, positionOffset /*: PositionOffsetControlPosition*/) /*: string*/ {\n\t var translation = getTranslation(controlPos, positionOffset, '');\n\t return translation;\n\t}\n\tfunction getTranslation(_ref2, positionOffset /*: PositionOffsetControlPosition*/, unitSuffix /*: string*/) /*: string*/ {\n\t var x = _ref2.x,\n\t y = _ref2.y;\n\n\t var translation = 'translate(' + x + unitSuffix + ',' + y + unitSuffix + ')';\n\t if (positionOffset) {\n\t var defaultX = '' + (typeof positionOffset.x === 'string' ? positionOffset.x : positionOffset.x + unitSuffix);\n\t var defaultY = '' + (typeof positionOffset.y === 'string' ? positionOffset.y : positionOffset.y + unitSuffix);\n\t translation = 'translate(' + defaultX + ', ' + defaultY + ')' + translation;\n\t }\n\t return translation;\n\t}\n\n\tfunction getTouch(e /*: MouseTouchEvent*/, identifier /*: number*/) /*: ?{clientX: number, clientY: number}*/ {\n\t return e.targetTouches && findInArray(e.targetTouches, function (t) {\n\t return identifier === t.identifier;\n\t }) || e.changedTouches && findInArray(e.changedTouches, function (t) {\n\t return identifier === t.identifier;\n\t });\n\t}\n\n\tfunction getTouchIdentifier(e /*: MouseTouchEvent*/) /*: ?number*/ {\n\t if (e.targetTouches && e.targetTouches[0]) return e.targetTouches[0].identifier;\n\t if (e.changedTouches && e.changedTouches[0]) return e.changedTouches[0].identifier;\n\t}\n\n\t// User-select Hacks:\n\t//\n\t// Useful for preventing blue highlights all over everything when dragging.\n\n\t// Note we're passing `document` b/c we could be iframed\n\tfunction addUserSelectStyles(doc /*: ?Document*/) {\n\t if (!doc) return;\n\t var styleEl = doc.getElementById('react-draggable-style-el');\n\t if (!styleEl) {\n\t styleEl = doc.createElement('style');\n\t styleEl.type = 'text/css';\n\t styleEl.id = 'react-draggable-style-el';\n\t styleEl.innerHTML = '.react-draggable-transparent-selection *::-moz-selection {all: inherit;}\\n';\n\t styleEl.innerHTML += '.react-draggable-transparent-selection *::selection {all: inherit;}\\n';\n\t doc.getElementsByTagName('head')[0].appendChild(styleEl);\n\t }\n\t if (doc.body) addClassName(doc.body, 'react-draggable-transparent-selection');\n\t}\n\n\tfunction removeUserSelectStyles(doc /*: ?Document*/) {\n\t try {\n\t if (doc && doc.body) removeClassName(doc.body, 'react-draggable-transparent-selection');\n\t // $FlowIgnore: IE\n\t if (doc.selection) {\n\t // $FlowIgnore: IE\n\t doc.selection.empty();\n\t } else {\n\t window.getSelection().removeAllRanges(); // remove selection caused by scroll\n\t }\n\t } catch (e) {\n\t // probably IE\n\t }\n\t}\n\n\tfunction styleHacks() /*: Object*/ {\n\t var childStyle /*: Object*/ = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n\t // Workaround IE pointer events; see #51\n\t // https://github.com/mzabriskie/react-draggable/issues/51#issuecomment-103488278\n\t return _extends({\n\t touchAction: 'none'\n\t }, childStyle);\n\t}\n\n\tfunction addClassName(el /*: HTMLElement*/, className /*: string*/) {\n\t if (el.classList) {\n\t el.classList.add(className);\n\t } else {\n\t if (!el.className.match(new RegExp('(?:^|\\\\s)' + className + '(?!\\\\S)'))) {\n\t el.className += ' ' + className;\n\t }\n\t }\n\t}\n\n\tfunction removeClassName(el /*: HTMLElement*/, className /*: string*/) {\n\t if (el.classList) {\n\t el.classList.remove(className);\n\t } else {\n\t el.className = el.className.replace(new RegExp('(?:^|\\\\s)' + className + '(?!\\\\S)', 'g'), '');\n\t }\n\t}\n\n\t/*:: import type Draggable from '../Draggable';*/\n\t/*:: import type {Bounds, ControlPosition, DraggableData, MouseTouchEvent} from './types';*/\n\t/*:: import type DraggableCore from '../DraggableCore';*/\n\n\n\tfunction getBoundPosition(draggable /*: Draggable*/, x /*: number*/, y /*: number*/) /*: [number, number]*/ {\n\t // If no bounds, short-circuit and move on\n\t if (!draggable.props.bounds) return [x, y];\n\n\t // Clone new bounds\n\t var bounds = draggable.props.bounds;\n\n\t bounds = typeof bounds === 'string' ? bounds : cloneBounds(bounds);\n\t var node = findDOMNode(draggable);\n\n\t if (typeof bounds === 'string') {\n\t var ownerDocument = node.ownerDocument;\n\n\t var ownerWindow = ownerDocument.defaultView;\n\t var boundNode = void 0;\n\t if (bounds === 'parent') {\n\t boundNode = node.parentNode;\n\t } else {\n\t boundNode = ownerDocument.querySelector(bounds);\n\t }\n\t if (!(boundNode instanceof ownerWindow.HTMLElement)) {\n\t throw new Error('Bounds selector \"' + bounds + '\" could not find an element.');\n\t }\n\t var nodeStyle = ownerWindow.getComputedStyle(node);\n\t var boundNodeStyle = ownerWindow.getComputedStyle(boundNode);\n\t // Compute bounds. This is a pain with padding and offsets but this gets it exactly right.\n\t bounds = {\n\t left: -node.offsetLeft + int(boundNodeStyle.paddingLeft) + int(nodeStyle.marginLeft),\n\t top: -node.offsetTop + int(boundNodeStyle.paddingTop) + int(nodeStyle.marginTop),\n\t right: innerWidth(boundNode) - outerWidth(node) - node.offsetLeft + int(boundNodeStyle.paddingRight) - int(nodeStyle.marginRight),\n\t bottom: innerHeight(boundNode) - outerHeight(node) - node.offsetTop + int(boundNodeStyle.paddingBottom) - int(nodeStyle.marginBottom)\n\t };\n\t }\n\n\t // Keep x and y below right and bottom limits...\n\t if (isNum(bounds.right)) x = Math.min(x, bounds.right);\n\t if (isNum(bounds.bottom)) y = Math.min(y, bounds.bottom);\n\n\t // But above left and top limits.\n\t if (isNum(bounds.left)) x = Math.max(x, bounds.left);\n\t if (isNum(bounds.top)) y = Math.max(y, bounds.top);\n\n\t return [x, y];\n\t}\n\n\tfunction snapToGrid(grid /*: [number, number]*/, pendingX /*: number*/, pendingY /*: number*/) /*: [number, number]*/ {\n\t var x = Math.round(pendingX / grid[0]) * grid[0];\n\t var y = Math.round(pendingY / grid[1]) * grid[1];\n\t return [x, y];\n\t}\n\n\tfunction canDragX(draggable /*: Draggable*/) /*: boolean*/ {\n\t return draggable.props.axis === 'both' || draggable.props.axis === 'x';\n\t}\n\n\tfunction canDragY(draggable /*: Draggable*/) /*: boolean*/ {\n\t return draggable.props.axis === 'both' || draggable.props.axis === 'y';\n\t}\n\n\t// Get {x, y} positions from event.\n\tfunction getControlPosition(e /*: MouseTouchEvent*/, touchIdentifier /*: ?number*/, draggableCore /*: DraggableCore*/) /*: ?ControlPosition*/ {\n\t var touchObj = typeof touchIdentifier === 'number' ? getTouch(e, touchIdentifier) : null;\n\t if (typeof touchIdentifier === 'number' && !touchObj) return null; // not the right touch\n\t var node = findDOMNode(draggableCore);\n\t // User can provide an offsetParent if desired.\n\t var offsetParent = draggableCore.props.offsetParent || node.offsetParent || node.ownerDocument.body;\n\t return offsetXYFromParent(touchObj || e, offsetParent);\n\t}\n\n\t// Create an data object exposed by 's events\n\tfunction createCoreData(draggable /*: DraggableCore*/, x /*: number*/, y /*: number*/) /*: DraggableData*/ {\n\t var state = draggable.state;\n\t var isStart = !isNum(state.lastX);\n\t var node = findDOMNode(draggable);\n\n\t if (isStart) {\n\t // If this is our first move, use the x and y as last coords.\n\t return {\n\t node: node,\n\t deltaX: 0, deltaY: 0,\n\t lastX: x, lastY: y,\n\t x: x, y: y\n\t };\n\t } else {\n\t // Otherwise calculate proper values.\n\t return {\n\t node: node,\n\t deltaX: x - state.lastX, deltaY: y - state.lastY,\n\t lastX: state.lastX, lastY: state.lastY,\n\t x: x, y: y\n\t };\n\t }\n\t}\n\n\t// Create an data exposed by 's events\n\tfunction createDraggableData(draggable /*: Draggable*/, coreData /*: DraggableData*/) /*: DraggableData*/ {\n\t var scale = draggable.props.scale;\n\t return {\n\t node: coreData.node,\n\t x: draggable.state.x + coreData.deltaX / scale,\n\t y: draggable.state.y + coreData.deltaY / scale,\n\t deltaX: coreData.deltaX / scale,\n\t deltaY: coreData.deltaY / scale,\n\t lastX: draggable.state.x,\n\t lastY: draggable.state.y\n\t };\n\t}\n\n\t// A lot faster than stringify/parse\n\tfunction cloneBounds(bounds /*: Bounds*/) /*: Bounds*/ {\n\t return {\n\t left: bounds.left,\n\t top: bounds.top,\n\t right: bounds.right,\n\t bottom: bounds.bottom\n\t };\n\t}\n\n\tfunction findDOMNode(draggable /*: Draggable | DraggableCore*/) /*: HTMLElement*/ {\n\t var node = ReactDOM.findDOMNode(draggable);\n\t if (!node) {\n\t throw new Error(': Unmounted during event!');\n\t }\n\t // $FlowIgnore we can't assert on HTMLElement due to tests... FIXME\n\t return node;\n\t}\n\n\t/*eslint no-console:0*/\n\tfunction log() {\n\t}\n\n\t/*:: import type {EventHandler, MouseTouchEvent} from './utils/types';*/\n\n\n\t// Simple abstraction for dragging events names.\n\t/*:: import type {Element as ReactElement} from 'react';*/\n\tvar eventsFor = {\n\t touch: {\n\t start: 'touchstart',\n\t move: 'touchmove',\n\t stop: 'touchend'\n\t },\n\t mouse: {\n\t start: 'mousedown',\n\t move: 'mousemove',\n\t stop: 'mouseup'\n\t }\n\t};\n\n\t// Default to mouse events.\n\tvar dragEventFor = eventsFor.mouse;\n\n\t/*:: type DraggableCoreState = {\n\t dragging: boolean,\n\t lastX: number,\n\t lastY: number,\n\t touchIdentifier: ?number\n\t};*/\n\t/*:: export type DraggableBounds = {\n\t left: number,\n\t right: number,\n\t top: number,\n\t bottom: number,\n\t};*/\n\t/*:: export type DraggableData = {\n\t node: HTMLElement,\n\t x: number, y: number,\n\t deltaX: number, deltaY: number,\n\t lastX: number, lastY: number,\n\t};*/\n\t/*:: export type DraggableEventHandler = (e: MouseEvent, data: DraggableData) => void;*/\n\t/*:: export type ControlPosition = {x: number, y: number};*/\n\t/*:: export type PositionOffsetControlPosition = {x: number|string, y: number|string};*/\n\n\n\t//\n\t// Define .\n\t//\n\t// is for advanced usage of . It maintains minimal internal state so it can\n\t// work well with libraries that require more control over the element.\n\t//\n\n\t/*:: export type DraggableCoreProps = {\n\t allowAnyClick: boolean,\n\t cancel: string,\n\t children: ReactElement,\n\t disabled: boolean,\n\t enableUserSelectHack: boolean,\n\t offsetParent: HTMLElement,\n\t grid: [number, number],\n\t handle: string,\n\t onStart: DraggableEventHandler,\n\t onDrag: DraggableEventHandler,\n\t onStop: DraggableEventHandler,\n\t onMouseDown: (e: MouseEvent) => void,\n\t};*/\n\n\tvar DraggableCore = function (_React$Component) {\n\t inherits(DraggableCore, _React$Component);\n\n\t function DraggableCore() {\n\t var _ref;\n\n\t var _temp, _this, _ret;\n\n\t classCallCheck(this, DraggableCore);\n\n\t for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n\t args[_key] = arguments[_key];\n\t }\n\n\t return _ret = (_temp = (_this = possibleConstructorReturn(this, (_ref = DraggableCore.__proto__ || Object.getPrototypeOf(DraggableCore)).call.apply(_ref, [this].concat(args))), _this), _this.state = {\n\t dragging: false,\n\t // Used while dragging to determine deltas.\n\t lastX: NaN, lastY: NaN,\n\t touchIdentifier: null\n\t }, _this.handleDragStart = function (e) {\n\t // Make it possible to attach event handlers on top of this one.\n\t _this.props.onMouseDown(e);\n\n\t // Only accept left-clicks.\n\t if (!_this.props.allowAnyClick && typeof e.button === 'number' && e.button !== 0) return false;\n\n\t // Get nodes. Be sure to grab relative document (could be iframed)\n\t var thisNode = ReactDOM.findDOMNode(_this);\n\t if (!thisNode || !thisNode.ownerDocument || !thisNode.ownerDocument.body) {\n\t throw new Error(' not mounted on DragStart!');\n\t }\n\t var ownerDocument = thisNode.ownerDocument;\n\n\t // Short circuit if handle or cancel prop was provided and selector doesn't match.\n\n\t if (_this.props.disabled || !(e.target instanceof ownerDocument.defaultView.Node) || _this.props.handle && !matchesSelectorAndParentsTo(e.target, _this.props.handle, thisNode) || _this.props.cancel && matchesSelectorAndParentsTo(e.target, _this.props.cancel, thisNode)) {\n\t return;\n\t }\n\n\t // Set touch identifier in component state if this is a touch event. This allows us to\n\t // distinguish between individual touches on multitouch screens by identifying which\n\t // touchpoint was set to this element.\n\t var touchIdentifier = getTouchIdentifier(e);\n\t _this.setState({ touchIdentifier: touchIdentifier });\n\n\t // Get the current drag point from the event. This is used as the offset.\n\t var position = getControlPosition(e, touchIdentifier, _this);\n\t if (position == null) return; // not possible but satisfies flow\n\t var x = position.x,\n\t y = position.y;\n\n\t // Create an event object with all the data parents need to make a decision here.\n\n\t var coreEvent = createCoreData(_this, x, y);\n\n\t // Call event handler. If it returns explicit false, cancel.\n\t log('calling', _this.props.onStart);\n\t var shouldUpdate = _this.props.onStart(e, coreEvent);\n\t if (shouldUpdate === false) return;\n\n\t // Add a style to the body to disable user-select. This prevents text from\n\t // being selected all over the page.\n\t if (_this.props.enableUserSelectHack) addUserSelectStyles(ownerDocument);\n\n\t // Initiate dragging. Set the current x and y as offsets\n\t // so we know how much we've moved during the drag. This allows us\n\t // to drag elements around even if they have been moved, without issue.\n\t _this.setState({\n\t dragging: true,\n\n\t lastX: x,\n\t lastY: y\n\t });\n\n\t // Add events to the document directly so we catch when the user's mouse/touch moves outside of\n\t // this element. We use different events depending on whether or not we have detected that this\n\t // is a touch-capable device.\n\t addEvent(ownerDocument, dragEventFor.move, _this.handleDrag);\n\t addEvent(ownerDocument, dragEventFor.stop, _this.handleDragStop);\n\t }, _this.handleDrag = function (e) {\n\n\t // Prevent scrolling on mobile devices, like ipad/iphone.\n\t if (e.type === 'touchmove') e.preventDefault();\n\n\t // Get the current drag point from the event. This is used as the offset.\n\t var position = getControlPosition(e, _this.state.touchIdentifier, _this);\n\t if (position == null) return;\n\t var x = position.x,\n\t y = position.y;\n\n\t // Snap to grid if prop has been provided\n\n\t if (Array.isArray(_this.props.grid)) {\n\t var _deltaX = x - _this.state.lastX,\n\t _deltaY = y - _this.state.lastY;\n\n\t var _snapToGrid = snapToGrid(_this.props.grid, _deltaX, _deltaY);\n\n\t var _snapToGrid2 = slicedToArray(_snapToGrid, 2);\n\n\t _deltaX = _snapToGrid2[0];\n\t _deltaY = _snapToGrid2[1];\n\n\t if (!_deltaX && !_deltaY) return; // skip useless drag\n\t x = _this.state.lastX + _deltaX, y = _this.state.lastY + _deltaY;\n\t }\n\n\t var coreEvent = createCoreData(_this, x, y);\n\n\t // Call event handler. If it returns explicit false, trigger end.\n\t var shouldUpdate = _this.props.onDrag(e, coreEvent);\n\t if (shouldUpdate === false) {\n\t try {\n\t // $FlowIgnore\n\t _this.handleDragStop(new MouseEvent('mouseup'));\n\t } catch (err) {\n\t // Old browsers\n\t var event = ((document.createEvent('MouseEvents') /*: any*/) /*: MouseTouchEvent*/);\n\t // I see why this insanity was deprecated\n\t // $FlowIgnore\n\t event.initMouseEvent('mouseup', true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);\n\t _this.handleDragStop(event);\n\t }\n\t return;\n\t }\n\n\t _this.setState({\n\t lastX: x,\n\t lastY: y\n\t });\n\t }, _this.handleDragStop = function (e) {\n\t if (!_this.state.dragging) return;\n\n\t var position = getControlPosition(e, _this.state.touchIdentifier, _this);\n\t if (position == null) return;\n\t var x = position.x,\n\t y = position.y;\n\n\t var coreEvent = createCoreData(_this, x, y);\n\n\t var thisNode = ReactDOM.findDOMNode(_this);\n\t if (thisNode) {\n\t // Remove user-select hack\n\t if (_this.props.enableUserSelectHack) removeUserSelectStyles(thisNode.ownerDocument);\n\t }\n\n\t // Reset the el.\n\t _this.setState({\n\t dragging: false,\n\t lastX: NaN,\n\t lastY: NaN\n\t });\n\n\t // Call event handler\n\t _this.props.onStop(e, coreEvent);\n\n\t if (thisNode) {\n\t removeEvent(thisNode.ownerDocument, dragEventFor.move, _this.handleDrag);\n\t removeEvent(thisNode.ownerDocument, dragEventFor.stop, _this.handleDragStop);\n\t }\n\t }, _this.onMouseDown = function (e) {\n\t dragEventFor = eventsFor.mouse; // on touchscreen laptops we could switch back to mouse\n\n\t return _this.handleDragStart(e);\n\t }, _this.onMouseUp = function (e) {\n\t dragEventFor = eventsFor.mouse;\n\n\t return _this.handleDragStop(e);\n\t }, _this.onTouchStart = function (e) {\n\t // We're on a touch device now, so change the event handlers\n\t dragEventFor = eventsFor.touch;\n\n\t return _this.handleDragStart(e);\n\t }, _this.onTouchEnd = function (e) {\n\t // We're on a touch device now, so change the event handlers\n\t dragEventFor = eventsFor.touch;\n\n\t return _this.handleDragStop(e);\n\t }, _temp), possibleConstructorReturn(_this, _ret);\n\t }\n\n\t createClass(DraggableCore, [{\n\t key: 'componentWillUnmount',\n\t value: function componentWillUnmount() {\n\t // Remove any leftover event handlers. Remove both touch and mouse handlers in case\n\t // some browser quirk caused a touch event to fire during a mouse move, or vice versa.\n\t var thisNode = ReactDOM.findDOMNode(this);\n\t if (thisNode) {\n\t var ownerDocument = thisNode.ownerDocument;\n\n\t removeEvent(ownerDocument, eventsFor.mouse.move, this.handleDrag);\n\t removeEvent(ownerDocument, eventsFor.touch.move, this.handleDrag);\n\t removeEvent(ownerDocument, eventsFor.mouse.stop, this.handleDragStop);\n\t removeEvent(ownerDocument, eventsFor.touch.stop, this.handleDragStop);\n\t if (this.props.enableUserSelectHack) removeUserSelectStyles(ownerDocument);\n\t }\n\t }\n\n\t // Same as onMouseDown (start drag), but now consider this a touch device.\n\n\t }, {\n\t key: 'render',\n\t value: function render() {\n\t // Reuse the child provided\n\t // This makes it flexible to use whatever element is wanted (div, ul, etc)\n\t return React.cloneElement(React.Children.only(this.props.children), {\n\t style: styleHacks(this.props.children.props.style),\n\n\t // Note: mouseMove handler is attached to document so it will still function\n\t // when the user drags quickly and leaves the bounds of the element.\n\t onMouseDown: this.onMouseDown,\n\t onTouchStart: this.onTouchStart,\n\t onMouseUp: this.onMouseUp,\n\t onTouchEnd: this.onTouchEnd\n\t });\n\t }\n\t }]);\n\t return DraggableCore;\n\t}(React.Component);\n\n\tDraggableCore.displayName = 'DraggableCore';\n\tDraggableCore.propTypes = {\n\t /**\n\t * `allowAnyClick` allows dragging using any mouse button.\n\t * By default, we only accept the left button.\n\t *\n\t * Defaults to `false`.\n\t */\n\t allowAnyClick: propTypes.bool,\n\n\t /**\n\t * `disabled`, if true, stops the from dragging. All handlers,\n\t * with the exception of `onMouseDown`, will not fire.\n\t */\n\t disabled: propTypes.bool,\n\n\t /**\n\t * By default, we add 'user-select:none' attributes to the document body\n\t * to prevent ugly text selection during drag. If this is causing problems\n\t * for your app, set this to `false`.\n\t */\n\t enableUserSelectHack: propTypes.bool,\n\n\t /**\n\t * `offsetParent`, if set, uses the passed DOM node to compute drag offsets\n\t * instead of using the parent node.\n\t */\n\t offsetParent: function offsetParent(props /*: DraggableCoreProps*/, propName /*: $Keys*/) {\n\t if (props[propName] && props[propName].nodeType !== 1) {\n\t throw new Error('Draggable\\'s offsetParent must be a DOM Node.');\n\t }\n\t },\n\n\t /**\n\t * `grid` specifies the x and y that dragging should snap to.\n\t */\n\t grid: propTypes.arrayOf(propTypes.number),\n\n\t /**\n\t * `scale` specifies the scale of the area you are dragging inside of. It allows\n\t * the drag deltas to scale correctly with how far zoomed in/out you are.\n\t */\n\t scale: propTypes.number,\n\n\t /**\n\t * `handle` specifies a selector to be used as the handle that initiates drag.\n\t *\n\t * Example:\n\t *\n\t * ```jsx\n\t * let App = React.createClass({\n\t * render: function () {\n\t * return (\n\t * \n\t *
    \n\t *
    Click me to drag
    \n\t *
    This is some other content
    \n\t *
    \n\t *
    \n\t * );\n\t * }\n\t * });\n\t * ```\n\t */\n\t handle: propTypes.string,\n\n\t /**\n\t * `cancel` specifies a selector to be used to prevent drag initialization.\n\t *\n\t * Example:\n\t *\n\t * ```jsx\n\t * let App = React.createClass({\n\t * render: function () {\n\t * return(\n\t * \n\t *
    \n\t *
    You can't drag from here
    \n\t *
    Dragging here works fine
    \n\t *
    \n\t *
    \n\t * );\n\t * }\n\t * });\n\t * ```\n\t */\n\t cancel: propTypes.string,\n\n\t /**\n\t * Called when dragging starts.\n\t * If this function returns the boolean false, dragging will be canceled.\n\t */\n\t onStart: propTypes.func,\n\n\t /**\n\t * Called while dragging.\n\t * If this function returns the boolean false, dragging will be canceled.\n\t */\n\t onDrag: propTypes.func,\n\n\t /**\n\t * Called when dragging stops.\n\t * If this function returns the boolean false, the drag will remain active.\n\t */\n\t onStop: propTypes.func,\n\n\t /**\n\t * A workaround option which can be passed if onMouseDown needs to be accessed,\n\t * since it'll always be blocked (as there is internal use of onMouseDown)\n\t */\n\t onMouseDown: propTypes.func,\n\n\t /**\n\t * These properties should be defined on the child, not here.\n\t */\n\t className: dontSetMe,\n\t style: dontSetMe,\n\t transform: dontSetMe\n\t};\n\tDraggableCore.defaultProps = {\n\t allowAnyClick: false, // by default only accept left click\n\t cancel: null,\n\t disabled: false,\n\t enableUserSelectHack: true,\n\t offsetParent: null,\n\t handle: null,\n\t grid: null,\n\t transform: null,\n\t onStart: function onStart() {},\n\t onDrag: function onDrag() {},\n\t onStop: function onStop() {},\n\t onMouseDown: function onMouseDown() {}\n\t};\n\n\t/*:: import type {DraggableEventHandler} from './utils/types';*/\n\t/*:: import type {Element as ReactElement} from 'react';*/\n\t/*:: type DraggableState = {\n\t dragging: boolean,\n\t dragged: boolean,\n\t x: number, y: number,\n\t slackX: number, slackY: number,\n\t isElementSVG: boolean\n\t};*/\n\n\n\t//\n\t// Define \n\t//\n\n\t/*:: export type DraggableProps = {\n\t ...$Exact,\n\t axis: 'both' | 'x' | 'y' | 'none',\n\t bounds: DraggableBounds | string | false,\n\t defaultClassName: string,\n\t defaultClassNameDragging: string,\n\t defaultClassNameDragged: string,\n\t defaultPosition: ControlPosition,\n\t positionOffset: PositionOffsetControlPosition,\n\t position: ControlPosition,\n\t scale: number\n\t};*/\n\n\tvar Draggable = function (_React$Component) {\n\t inherits(Draggable, _React$Component);\n\n\t function Draggable(props /*: DraggableProps*/) {\n\t classCallCheck(this, Draggable);\n\n\t var _this = possibleConstructorReturn(this, (Draggable.__proto__ || Object.getPrototypeOf(Draggable)).call(this, props));\n\n\t _this.onDragStart = function (e, coreData) {\n\n\t // Short-circuit if user's callback killed it.\n\t var shouldStart = _this.props.onStart(e, createDraggableData(_this, coreData));\n\t // Kills start event on core as well, so move handlers are never bound.\n\t if (shouldStart === false) return false;\n\n\t _this.setState({ dragging: true, dragged: true });\n\t };\n\n\t _this.onDrag = function (e, coreData) {\n\t if (!_this.state.dragging) return false;\n\n\t var uiData = createDraggableData(_this, coreData);\n\n\t var newState /*: $Shape*/ = {\n\t x: uiData.x,\n\t y: uiData.y\n\t };\n\n\t // Keep within bounds.\n\t if (_this.props.bounds) {\n\t // Save original x and y.\n\t var _x = newState.x,\n\t _y = newState.y;\n\n\t // Add slack to the values used to calculate bound position. This will ensure that if\n\t // we start removing slack, the element won't react to it right away until it's been\n\t // completely removed.\n\n\t newState.x += _this.state.slackX;\n\t newState.y += _this.state.slackY;\n\n\t // Get bound position. This will ceil/floor the x and y within the boundaries.\n\n\t var _getBoundPosition = getBoundPosition(_this, newState.x, newState.y),\n\t _getBoundPosition2 = slicedToArray(_getBoundPosition, 2),\n\t newStateX = _getBoundPosition2[0],\n\t newStateY = _getBoundPosition2[1];\n\n\t newState.x = newStateX;\n\t newState.y = newStateY;\n\n\t // Recalculate slack by noting how much was shaved by the boundPosition handler.\n\t newState.slackX = _this.state.slackX + (_x - newState.x);\n\t newState.slackY = _this.state.slackY + (_y - newState.y);\n\n\t // Update the event we fire to reflect what really happened after bounds took effect.\n\t uiData.x = newState.x;\n\t uiData.y = newState.y;\n\t uiData.deltaX = newState.x - _this.state.x;\n\t uiData.deltaY = newState.y - _this.state.y;\n\t }\n\n\t // Short-circuit if user's callback killed it.\n\t var shouldUpdate = _this.props.onDrag(e, uiData);\n\t if (shouldUpdate === false) return false;\n\n\t _this.setState(newState);\n\t };\n\n\t _this.onDragStop = function (e, coreData) {\n\t if (!_this.state.dragging) return false;\n\n\t // Short-circuit if user's callback killed it.\n\t var shouldStop = _this.props.onStop(e, createDraggableData(_this, coreData));\n\t if (shouldStop === false) return false;\n\n\t var newState /*: $Shape*/ = {\n\t dragging: false,\n\t slackX: 0,\n\t slackY: 0\n\t };\n\n\t // If this is a controlled component, the result of this operation will be to\n\t // revert back to the old position. We expect a handler on `onDragStop`, at the least.\n\t var controlled = Boolean(_this.props.position);\n\t if (controlled) {\n\t var _this$props$position = _this.props.position,\n\t _x2 = _this$props$position.x,\n\t _y2 = _this$props$position.y;\n\n\t newState.x = _x2;\n\t newState.y = _y2;\n\t }\n\n\t _this.setState(newState);\n\t };\n\n\t _this.state = {\n\t // Whether or not we are currently dragging.\n\t dragging: false,\n\n\t // Whether or not we have been dragged before.\n\t dragged: false,\n\n\t // Current transform x and y.\n\t x: props.position ? props.position.x : props.defaultPosition.x,\n\t y: props.position ? props.position.y : props.defaultPosition.y,\n\n\t // Used for compensating for out-of-bounds drags\n\t slackX: 0, slackY: 0,\n\n\t // Can only determine if SVG after mounting\n\t isElementSVG: false\n\t };\n\n\t if (props.position && !(props.onDrag || props.onStop)) {\n\t // eslint-disable-next-line no-console\n\t console.warn('A `position` was applied to this , without drag handlers. This will make this ' + 'component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the ' + '`position` of this element.');\n\t }\n\t return _this;\n\t }\n\n\t createClass(Draggable, [{\n\t key: 'componentDidMount',\n\t value: function componentDidMount() {\n\t // Check to see if the element passed is an instanceof SVGElement\n\t if (typeof window.SVGElement !== 'undefined' && ReactDOM.findDOMNode(this) instanceof window.SVGElement) {\n\t this.setState({ isElementSVG: true });\n\t }\n\t }\n\t }, {\n\t key: 'componentWillReceiveProps',\n\t value: function componentWillReceiveProps(nextProps /*: Object*/) {\n\t // Set x/y if position has changed\n\t if (nextProps.position && (!this.props.position || nextProps.position.x !== this.props.position.x || nextProps.position.y !== this.props.position.y)) {\n\t this.setState({ x: nextProps.position.x, y: nextProps.position.y });\n\t }\n\t }\n\t }, {\n\t key: 'componentWillUnmount',\n\t value: function componentWillUnmount() {\n\t this.setState({ dragging: false }); // prevents invariant if unmounted while dragging\n\t }\n\t }, {\n\t key: 'render',\n\t value: function render() /*: ReactElement*/ {\n\t var _classNames;\n\n\t var style = {},\n\t svgTransform = null;\n\n\t // If this is controlled, we don't want to move it - unless it's dragging.\n\t var controlled = Boolean(this.props.position);\n\t var draggable = !controlled || this.state.dragging;\n\n\t var position = this.props.position || this.props.defaultPosition;\n\t var transformOpts = {\n\t // Set left if horizontal drag is enabled\n\t x: canDragX(this) && draggable ? this.state.x : position.x,\n\n\t // Set top if vertical drag is enabled\n\t y: canDragY(this) && draggable ? this.state.y : position.y\n\t };\n\n\t // If this element was SVG, we use the `transform` attribute.\n\t if (this.state.isElementSVG) {\n\t svgTransform = createSVGTransform(transformOpts, this.props.positionOffset);\n\t } else {\n\t // Add a CSS transform to move the element around. This allows us to move the element around\n\t // without worrying about whether or not it is relatively or absolutely positioned.\n\t // If the item you are dragging already has a transform set, wrap it in a so \n\t // has a clean slate.\n\t style = createCSSTransform(transformOpts, this.props.positionOffset);\n\t }\n\n\t var _props = this.props,\n\t defaultClassName = _props.defaultClassName,\n\t defaultClassNameDragging = _props.defaultClassNameDragging,\n\t defaultClassNameDragged = _props.defaultClassNameDragged;\n\n\n\t var children = React.Children.only(this.props.children);\n\n\t // Mark with class while dragging\n\t var className = classnames(children.props.className || '', defaultClassName, (_classNames = {}, defineProperty(_classNames, defaultClassNameDragging, this.state.dragging), defineProperty(_classNames, defaultClassNameDragged, this.state.dragged), _classNames));\n\n\t // Reuse the child provided\n\t // This makes it flexible to use whatever element is wanted (div, ul, etc)\n\t return React.createElement(\n\t DraggableCore,\n\t _extends({}, this.props, { onStart: this.onDragStart, onDrag: this.onDrag, onStop: this.onDragStop }),\n\t React.cloneElement(children, {\n\t className: className,\n\t style: _extends({}, children.props.style, style),\n\t transform: svgTransform\n\t })\n\t );\n\t }\n\t }]);\n\t return Draggable;\n\t}(React.Component);\n\n\tDraggable.displayName = 'Draggable';\n\tDraggable.propTypes = _extends({}, DraggableCore.propTypes, {\n\n\t /**\n\t * `axis` determines which axis the draggable can move.\n\t *\n\t * Note that all callbacks will still return data as normal. This only\n\t * controls flushing to the DOM.\n\t *\n\t * 'both' allows movement horizontally and vertically.\n\t * 'x' limits movement to horizontal axis.\n\t * 'y' limits movement to vertical axis.\n\t * 'none' limits all movement.\n\t *\n\t * Defaults to 'both'.\n\t */\n\t axis: propTypes.oneOf(['both', 'x', 'y', 'none']),\n\n\t /**\n\t * `bounds` determines the range of movement available to the element.\n\t * Available values are:\n\t *\n\t * 'parent' restricts movement within the Draggable's parent node.\n\t *\n\t * Alternatively, pass an object with the following properties, all of which are optional:\n\t *\n\t * {left: LEFT_BOUND, right: RIGHT_BOUND, bottom: BOTTOM_BOUND, top: TOP_BOUND}\n\t *\n\t * All values are in px.\n\t *\n\t * Example:\n\t *\n\t * ```jsx\n\t * let App = React.createClass({\n\t * render: function () {\n\t * return (\n\t * \n\t *
    Content
    \n\t *
    \n\t * );\n\t * }\n\t * });\n\t * ```\n\t */\n\t bounds: propTypes.oneOfType([propTypes.shape({\n\t left: propTypes.number,\n\t right: propTypes.number,\n\t top: propTypes.number,\n\t bottom: propTypes.number\n\t }), propTypes.string, propTypes.oneOf([false])]),\n\n\t defaultClassName: propTypes.string,\n\t defaultClassNameDragging: propTypes.string,\n\t defaultClassNameDragged: propTypes.string,\n\n\t /**\n\t * `defaultPosition` specifies the x and y that the dragged item should start at\n\t *\n\t * Example:\n\t *\n\t * ```jsx\n\t * let App = React.createClass({\n\t * render: function () {\n\t * return (\n\t * \n\t *
    I start with transformX: 25px and transformY: 25px;
    \n\t *
    \n\t * );\n\t * }\n\t * });\n\t * ```\n\t */\n\t defaultPosition: propTypes.shape({\n\t x: propTypes.number,\n\t y: propTypes.number\n\t }),\n\t positionOffset: propTypes.shape({\n\t x: propTypes.oneOfType([propTypes.number, propTypes.string]),\n\t y: propTypes.oneOfType([propTypes.number, propTypes.string])\n\t }),\n\n\t /**\n\t * `position`, if present, defines the current position of the element.\n\t *\n\t * This is similar to how form elements in React work - if no `position` is supplied, the component\n\t * is uncontrolled.\n\t *\n\t * Example:\n\t *\n\t * ```jsx\n\t * let App = React.createClass({\n\t * render: function () {\n\t * return (\n\t * \n\t *
    I start with transformX: 25px and transformY: 25px;
    \n\t *
    \n\t * );\n\t * }\n\t * });\n\t * ```\n\t */\n\t position: propTypes.shape({\n\t x: propTypes.number,\n\t y: propTypes.number\n\t }),\n\n\t /**\n\t * These properties should be defined on the child, not here.\n\t */\n\t className: dontSetMe,\n\t style: dontSetMe,\n\t transform: dontSetMe\n\t});\n\tDraggable.defaultProps = _extends({}, DraggableCore.defaultProps, {\n\t axis: 'both',\n\t bounds: false,\n\t defaultClassName: 'react-draggable',\n\t defaultClassNameDragging: 'react-draggable-dragging',\n\t defaultClassNameDragged: 'react-draggable-dragged',\n\t defaultPosition: { x: 0, y: 0 },\n\t position: null,\n\t scale: 1\n\t});\n\n\t// Previous versions of this lib exported as the root export. As to not break\n\t// them, or TypeScript, we export *both* as the root and as 'default'.\n\t// See https://github.com/mzabriskie/react-draggable/pull/254\n\t// and https://github.com/mzabriskie/react-draggable/issues/266\n\tDraggable.default = Draggable;\n\tDraggable.DraggableCore = DraggableCore;\n\n\treturn Draggable;\n\n})));\n//# sourceMappingURL=react-draggable.js.map\n\n\n/***/ }),\n/* 108 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.findInArray = findInArray;\nexports.isFunction = isFunction;\nexports.isNum = isNum;\nexports.int = int;\nexports.dontSetMe = dontSetMe;\n\n// @credits https://gist.github.com/rogozhnikoff/a43cfed27c41e4e68cdc\nfunction findInArray(array\n/*: Array | TouchList*/\n, callback\n/*: Function*/\n)\n/*: any*/\n{\n for (var i = 0, length = array.length; i < length; i++) {\n if (callback.apply(callback, [array[i], i, array])) return array[i];\n }\n}\n\nfunction isFunction(func\n/*: any*/\n)\n/*: boolean %checks*/\n{\n return typeof func === 'function' || Object.prototype.toString.call(func) === '[object Function]';\n}\n\nfunction isNum(num\n/*: any*/\n)\n/*: boolean %checks*/\n{\n return typeof num === 'number' && !isNaN(num);\n}\n\nfunction int(a\n/*: string*/\n)\n/*: number*/\n{\n return parseInt(a, 10);\n}\n\nfunction dontSetMe(props\n/*: Object*/\n, propName\n/*: string*/\n, componentName\n/*: string*/\n) {\n if (props[propName]) {\n return new Error(\"Invalid prop \".concat(propName, \" passed to \").concat(componentName, \" - do not set this, set it on the child.\"));\n }\n}\n\n/***/ }),\n/* 109 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Event = exports.EventUtil = exports.tryParseInt = undefined;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nexports.measureScrollbar = measureScrollbar;\nexports.debounce = debounce;\nexports.warningOnce = warningOnce;\nexports.getOffset = getOffset;\nexports.addClass = addClass;\nexports.removeClass = removeClass;\nexports.ObjectAssign = ObjectAssign;\nexports.closest = closest;\nexports.getMaxColChildrenLength = getMaxColChildrenLength;\nexports.getColChildrenLength = getColChildrenLength;\nexports.DicimalFormater = DicimalFormater;\nexports.checkDicimalInvalid = checkDicimalInvalid;\nexports.formatMoney = formatMoney;\nexports.convertListToTree = convertListToTree;\n\nvar _warning = __webpack_require__(6);\n\nvar _warning2 = _interopRequireDefault(_warning);\n\nvar _parseInt = __webpack_require__(1261);\n\nvar _parseInt2 = _interopRequireDefault(_parseInt);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nvar scrollbarSize = void 0;\n\n// Measure scrollbar width for padding body during modal show/hide\nvar scrollbarMeasure = {\n position: 'absolute',\n top: '-9999px',\n width: '50px',\n height: '50px',\n overflow: 'scroll'\n};\n\nfunction measureScrollbar() {\n var direction = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'vertical';\n\n\n if (typeof document === 'undefined' || typeof window === 'undefined') {\n return 0;\n }\n var tableDom = document.querySelector('.u-table');\n var currentDom = tableDom ? tableDom : document.body;\n\n if (scrollbarSize) {\n return scrollbarSize;\n }\n var scrollDiv = document.createElement('div');\n Object.keys(scrollbarMeasure).forEach(function (scrollProp) {\n scrollDiv.style[scrollProp] = scrollbarMeasure[scrollProp];\n });\n currentDom.appendChild(scrollDiv);\n var size = 0;\n if (direction === 'vertical') {\n size = scrollDiv.offsetWidth - scrollDiv.clientWidth;\n } else if (direction === 'horizontal') {\n size = scrollDiv.offsetHeight - scrollDiv.clientHeight;\n }\n\n currentDom.removeChild(scrollDiv);\n scrollbarSize = size;\n return scrollbarSize;\n}\n\nfunction debounce(func, wait, immediate) {\n var timeout = void 0;\n return function debounceFunc() {\n var context = this;\n var args = arguments;\n // https://fb.me/react-event-pooling\n if (args[0] && args[0].persist) {\n args[0].persist();\n }\n var later = function later() {\n timeout = null;\n if (!immediate) {\n func.apply(context, args);\n }\n };\n var callNow = immediate && !timeout;\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n if (callNow) {\n func.apply(context, args);\n }\n };\n}\n\nvar warned = {};\nfunction warningOnce(condition, format, args) {\n if (!warned[format]) {\n (0, _warning2[\"default\"])(condition, format, args);\n warned[format] = true;\n }\n}\nfunction getOffset(Node, offset) {\n if (!offset) {\n offset = {};\n offset.top = 0;\n offset.left = 0;\n }\n if (Node == document.body) {\n return offset;\n }\n offset.top += Node.offsetTop;\n offset.left += Node.offsetLeft;\n if (Node.offsetParent) return getOffset(Node.offsetParent, offset);else return offset;\n};\n\nvar tryParseInt = exports.tryParseInt = function tryParseInt(value) {\n var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n\n var resultValue = (0, _parseInt2[\"default\"])(value);\n\n if (isNaN(resultValue)) {\n return defaultValue;\n }\n return resultValue;\n};\n\nfunction addClass(elm, className) {\n if (!className) return;\n\n var els = Array.isArray(elm) ? elm : [elm];\n\n els.forEach(function (el) {\n if (el.classList) {\n el.classList.add(className.split(' '));\n } else {\n el.className += ' ' + className;\n }\n });\n}\n\nfunction removeClass(elm, className) {\n if (!className) return;\n\n var els = Array.isArray(elm) ? elm : [elm];\n\n els.forEach(function (el) {\n if (el.classList) {\n el.classList.remove(className.split(' '));\n } else {\n el.className = el.className.replace(new RegExp('(^|\\\\b)' + className.split(' ').join('|') + '(\\\\b|$)', 'gi'), ' ');\n }\n });\n}\n\n/**\n * 简单数组数据对象拷贝\n * @param {*} obj 要拷贝的对象 \n */\nfunction ObjectAssign(obj) {\n var b = obj instanceof Array;\n var tagObj = b ? [] : {};\n if (b) {\n //数组\n obj.forEach(function (da) {\n var _da = {};\n _extends(_da, da);\n tagObj.push(_da);\n });\n } else {\n _extends(tagObj, obj);\n }\n return tagObj;\n}\n/**\n * 获取某个父元素\n * */\n\nfunction closest(ele, selector) {\n var matches = ele.matches || ele.webkitMatchesSelector || ele.mozMatchesSelector || ele.msMatchesSelector;\n if (matches) {\n while (ele) {\n if (matches.call(ele, selector)) {\n return ele;\n } else {\n ele = ele.parentElement;\n }\n }\n }\n return null;\n}\n\nfunction getMaxColChildrenLength(columns) {\n var arr = [];\n arr = columns.map(function (item, index) {\n var chilrenLen = 0;\n if (item.children) {\n chilrenLen = getColChildrenLength(item.children, chilrenLen + 1);\n }\n return chilrenLen;\n });\n var max = Math.max.apply(null, arr);\n return max;\n}\n\nfunction getColChildrenLength(columns, chilrenLen) {\n columns.forEach(function (item, index) {\n if (item.children) {\n chilrenLen = getColChildrenLength(item.children, chilrenLen + 1);\n }\n });\n return chilrenLen;\n}\n\nfunction addHandler(element, type, handler) {\n var event = null;\n if (element.addEventListener) {\n //检测是否为DOM2级方法\n event = element.addEventListener(type, handler, false);\n } else if (element.attachEvent) {\n //检测是否为IE级方法\n event = element.attachEvent(\"on\" + type, handler);\n } else {\n //检测是否为DOM0级方法\n event = element[\"on\" + type] = handler;\n }\n return event;\n}\n\nfunction removeHandler(element, type, handler) {\n if (element && element.removeEventListener) {\n //element&& ie11报错兼容\n element.removeEventListener(type, handler, false);\n } else if (element && element.detachEvent) {\n element.detachEvent(\"on\" + type, handler);\n } else if (element) {\n element[\"on\" + type] = null;\n }\n}\n\n//获取事件对象的兼容性写法\nfunction getEvent(event) {\n return event ? event : window.event;\n}\n\n//获取事件对象目标的兼容性写法\nfunction getTarget(event) {\n return event.target || event.srcElement;\n}\n\nfunction preventDefault(event) {\n if (event.preventDefault) {\n event.preventDefault();\n } else {\n event.returnValue = false;\n }\n}\n\nfunction stopPropagation(event) {\n if (event.stopPropagation) {\n event.stopPropagation();\n } else {\n event.cancelBubble = true;\n }\n}\n\n//用事件冒泡方式,如果想兼容事件捕获只需要添加个bool参数\nvar EventUtil = exports.EventUtil = {\n addHandler: function addHandler(element, type, handler) {\n if (element.addEventListener) {\n element.addEventListener(type, handler, false);\n } else if (element.attachEvent) {\n element.attachEvent('on' + type, handler);\n } else {\n element['on' + type] = handler;\n }\n },\n\n removeHandler: function removeHandler(element, type, handler) {\n //element&& ie11报错兼容\n if (element && element.removeEventListener) {\n element.removeEventListener(type, handler, false);\n } else if (element && element.detachEvent) {\n element.detachEvent('on' + type, handler);\n } else if (element) {\n element['on' + type] = null;\n }\n }\n\n /*\n * 处理精度\n */\n};function DicimalFormater(value, precision) {\n var value = value + '',\n precision = precision ? precision : 0;\n for (var i = 0; i < value.length; i++) {\n if (\"-0123456789.\".indexOf(value.charAt(i)) == -1) return \"\";\n }\n return checkDicimalInvalid(value, precision);\n};\nfunction checkDicimalInvalid(value, precision) {\n if (value == null || isNaN(value)) return \"\";\n // 浮点数总位数不能超过10位\n var digit = parseFloat(value);\n var result = (digit * Math.pow(10, precision) / Math.pow(10, precision)).toFixed(precision);\n if (result == \"NaN\") return \"\";\n return result;\n};\n\n/**\n * 将数值转化为货币类型\n * @param {*} number 数值\n * @param {*} places 精度\n * @param {*} thousand 是否展示千分位\n */\nfunction formatMoney(number, places, thousand) {\n number = number || 0;\n places = !isNaN(places = Math.abs(places)) ? places : 2;\n var thousandSymbol = thousand ? \",\" : '';\n var negative = number < 0 ? \"-\" : \"\";\n var i = (0, _parseInt2[\"default\"])(number = Math.abs(+number || 0).toFixed(places), 10) + \"\";\n var j = (j = i.length) > 3 ? j % 3 : 0;\n return negative + (j ? i.substr(0, j) + thousandSymbol : \"\") + i.substr(j).replace(/(\\d{3})(?=\\d)/g, \"$1\" + thousandSymbol) + (places ? '.' + Math.abs(number - i).toFixed(places).slice(2) : \"\");\n}\n\nvar Event = exports.Event = {\n addHandler: addHandler,\n removeHandler: removeHandler,\n getEvent: getEvent,\n getTarget: getTarget,\n preventDefault: preventDefault,\n stopPropagation: stopPropagation\n\n /**\n * 将一维数组转换为树结构\n * @param {*} treeData 扁平结构的 List 数组\n * @param {*} attr 属性配置设置\n * @param {*} flatTreeKeysMap 存储所有 key-value 的映射,方便获取各节点信息\n */\n};function convertListToTree(treeData, attr, flatTreeKeysMap) {\n var tree = []; //存储所有一级节点\n var resData = treeData,\n //resData 存储截取的节点 + 父节点(除一级节点外)\n resKeysMap = {},\n //resData 的Map映射\n treeKeysMap = {}; //tree 的Map映射\n resData.map(function (element) {\n var key = attr.id;\n resKeysMap[element[key]] = element;\n });\n // 查找父节点,为了补充不完整的数据结构\n var findParentNode = function findParentNode(node) {\n var parentKey = node[attr.parendId];\n if (parentKey !== attr.rootId) {\n //如果不是根节点,则继续递归\n var item = flatTreeKeysMap[parentKey];\n // 用 resKeysMap 判断,避免重复计算某节点的父节点\n if (resKeysMap.hasOwnProperty(item[attr.id])) return;\n resData.unshift(item);\n resKeysMap[item[attr.id]] = item;\n findParentNode(item);\n } else {\n // 用 treeKeysMap 判断,避免重复累加\n if (!treeKeysMap.hasOwnProperty(node[attr.id])) {\n var key = node.key,\n title = node.title,\n children = node.children,\n _isLeaf = node._isLeaf,\n otherProps = _objectWithoutProperties(node, ['key', 'title', 'children', '_isLeaf']);\n\n var obj = {\n key: key,\n title: title,\n _isLeaf: _isLeaf,\n children: []\n };\n tree.push(_extends(obj, _extends({}, otherProps)));\n treeKeysMap[key] = node;\n }\n }\n };\n // 遍历 resData ,找到所有的一级节点\n for (var i = 0; i < resData.length; i++) {\n var item = resData[i];\n if (item[attr.parendId] === attr.rootId && !treeKeysMap.hasOwnProperty(item[attr.id])) {\n //如果是根节点,就存放进 tree 对象中\n var key = item.key,\n title = item.title,\n children = item.children,\n otherProps = _objectWithoutProperties(item, ['key', 'title', 'children']);\n\n var obj = {\n key: item[attr.id],\n _isLeaf: item[attr._isLeaf],\n children: []\n };\n tree.push(_extends(obj, _extends({}, otherProps)));\n treeKeysMap[key] = item;\n resData.splice(i, 1);\n i--;\n } else {\n //递归查找根节点信息\n findParentNode(item);\n }\n }\n // console.log('resData',resKeysMap);\n var run = function run(treeArrs) {\n if (resData.length > 0) {\n for (var _i = 0; _i < treeArrs.length; _i++) {\n for (var j = 0; j < resData.length; j++) {\n var _item = resData[j];\n if (treeArrs[_i].key === _item[attr.parendId]) {\n var _key = _item.key,\n _title = _item.title,\n _children = _item.children,\n _otherProps = _objectWithoutProperties(_item, ['key', 'title', 'children']);\n\n var _obj = {\n key: _item[attr.id],\n _isLeaf: _item[attr._isLeaf],\n children: []\n };\n treeArrs[_i].children.push(_extends(_obj, _extends({}, _otherProps)));\n resData.splice(j, 1);\n j--;\n }\n }\n run(treeArrs[_i].children);\n }\n }\n };\n run(tree);\n return tree;\n}\n\n/***/ }),\n/* 110 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Chinese (China) [zh-cn]\n//! author : suupic : https://github.com/suupic\n//! author : Zeno Zeng : https://github.com/zenozeng\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var zhCn = moment.defineLocale('zh-cn', {\n months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(\n '_'\n ),\n monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(\n '_'\n ),\n weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),\n weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'),\n weekdaysMin: '日_一_二_三_四_五_六'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY/MM/DD',\n LL: 'YYYY年M月D日',\n LLL: 'YYYY年M月D日Ah点mm分',\n LLLL: 'YYYY年M月D日ddddAh点mm分',\n l: 'YYYY/M/D',\n ll: 'YYYY年M月D日',\n lll: 'YYYY年M月D日 HH:mm',\n llll: 'YYYY年M月D日dddd HH:mm',\n },\n meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {\n return hour;\n } else if (meridiem === '下午' || meridiem === '晚上') {\n return hour + 12;\n } else {\n // '中午'\n return hour >= 11 ? hour : hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n var hm = hour * 100 + minute;\n if (hm < 600) {\n return '凌晨';\n } else if (hm < 900) {\n return '早上';\n } else if (hm < 1130) {\n return '上午';\n } else if (hm < 1230) {\n return '中午';\n } else if (hm < 1800) {\n return '下午';\n } else {\n return '晚上';\n }\n },\n calendar: {\n sameDay: '[今天]LT',\n nextDay: '[明天]LT',\n nextWeek: '[下]ddddLT',\n lastDay: '[昨天]LT',\n lastWeek: '[上]ddddLT',\n sameElse: 'L',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(日|月|周)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'DDD':\n return number + '日';\n case 'M':\n return number + '月';\n case 'w':\n case 'W':\n return number + '周';\n default:\n return number;\n }\n },\n relativeTime: {\n future: '%s后',\n past: '%s前',\n s: '几秒',\n ss: '%d 秒',\n m: '1 分钟',\n mm: '%d 分钟',\n h: '1 小时',\n hh: '%d 小时',\n d: '1 天',\n dd: '%d 天',\n M: '1 个月',\n MM: '%d 个月',\n y: '1 年',\n yy: '%d 年',\n },\n week: {\n // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return zhCn;\n\n})));\n\n\n/***/ }),\n/* 111 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _Icon = __webpack_require__(1309);\n\nvar _Icon2 = _interopRequireDefault(_Icon);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nexports[\"default\"] = _Icon2[\"default\"];\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 112 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports[\"default\"] = function (componentOrElement) {\n return (0, _ownerDocument2[\"default\"])(_reactDom2[\"default\"].findDOMNode(componentOrElement));\n};\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _ownerDocument = __webpack_require__(22);\n\nvar _ownerDocument2 = _interopRequireDefault(_ownerDocument);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 113 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _Icon = __webpack_require__(1422);\n\nvar _Icon2 = _interopRequireDefault(_Icon);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nexports[\"default\"] = _Icon2[\"default\"];\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 114 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports[\"default\"] = function (componentOrElement) {\n return (0, _ownerDocument2[\"default\"])(_reactDom2[\"default\"].findDOMNode(componentOrElement));\n};\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _ownerDocument = __webpack_require__(22);\n\nvar _ownerDocument2 = _interopRequireDefault(_ownerDocument);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 115 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined;\n\nvar _all2 = __webpack_require__(1487);\n\nvar _all3 = _interopRequireDefault(_all2);\n\nvar _componentOrElement2 = __webpack_require__(1488);\n\nvar _componentOrElement3 = _interopRequireDefault(_componentOrElement2);\n\nvar _deprecated2 = __webpack_require__(1489);\n\nvar _deprecated3 = _interopRequireDefault(_deprecated2);\n\nvar _elementType2 = __webpack_require__(1490);\n\nvar _elementType3 = _interopRequireDefault(_elementType2);\n\nvar _isRequiredForA11y2 = __webpack_require__(1491);\n\nvar _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2);\n\nvar _splitComponent2 = __webpack_require__(1492);\n\nvar _splitComponent3 = _interopRequireDefault(_splitComponent2);\n\nvar _createChainedFunction2 = __webpack_require__(1493);\n\nvar _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2);\n\nvar _keyCode = __webpack_require__(501);\n\nvar _keyCode2 = _interopRequireDefault(_keyCode);\n\nvar _contains2 = __webpack_require__(1494);\n\nvar _contains3 = _interopRequireDefault(_contains2);\n\nvar _addEventListener2 = __webpack_require__(504);\n\nvar _addEventListener3 = _interopRequireDefault(_addEventListener2);\n\nvar _cssAnimation2 = __webpack_require__(1495);\n\nvar _cssAnimation3 = _interopRequireDefault(_cssAnimation2);\n\nvar _toArray2 = __webpack_require__(1497);\n\nvar _toArray3 = _interopRequireDefault(_toArray2);\n\nvar _Align2 = __webpack_require__(1498);\n\nvar _Align3 = _interopRequireDefault(_Align2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.all = _all3.default;\nexports.componentOrElement = _componentOrElement3.default;\nexports.deprecated = _deprecated3.default;\nexports.elementType = _elementType3.default;\nexports.isRequiredForA11y = _isRequiredForA11y3.default;\nexports.splitComponent = _splitComponent3.default;\nexports.createChainedFunction = _createChainedFunction3.default;\nexports.KeyCode = _keyCode2.default;\nexports.contains = _contains3.default;\nexports.addEventListener = _addEventListener3.default;\nexports.cssAnimation = _cssAnimation3.default;\nexports.toArray = _toArray3.default;\n//export getContainerRenderMixin from './getContainerRenderMixin';\n\nexports.Align = _Align3.default;\n\n/***/ }),\n/* 116 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports[\"default\"] = function (componentOrElement) {\n return (0, _ownerDocument2[\"default\"])(_reactDom2[\"default\"].findDOMNode(componentOrElement));\n};\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _ownerDocument = __webpack_require__(117);\n\nvar _ownerDocument2 = _interopRequireDefault(_ownerDocument);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 117 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = ownerDocument;\n\nfunction ownerDocument(node) {\n return node && node.ownerDocument || document;\n}\n\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 118 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined;\n\nvar _all2 = __webpack_require__(1531);\n\nvar _all3 = _interopRequireDefault(_all2);\n\nvar _componentOrElement2 = __webpack_require__(1532);\n\nvar _componentOrElement3 = _interopRequireDefault(_componentOrElement2);\n\nvar _deprecated2 = __webpack_require__(1533);\n\nvar _deprecated3 = _interopRequireDefault(_deprecated2);\n\nvar _elementType2 = __webpack_require__(1534);\n\nvar _elementType3 = _interopRequireDefault(_elementType2);\n\nvar _isRequiredForA11y2 = __webpack_require__(511);\n\nvar _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2);\n\nvar _splitComponent2 = __webpack_require__(507);\n\nvar _splitComponent3 = _interopRequireDefault(_splitComponent2);\n\nvar _createChainedFunction2 = __webpack_require__(506);\n\nvar _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2);\n\nvar _keyCode = __webpack_require__(1535);\n\nvar _keyCode2 = _interopRequireDefault(_keyCode);\n\nvar _contains2 = __webpack_require__(1536);\n\nvar _contains3 = _interopRequireDefault(_contains2);\n\nvar _addEventListener2 = __webpack_require__(512);\n\nvar _addEventListener3 = _interopRequireDefault(_addEventListener2);\n\nvar _cssAnimation2 = __webpack_require__(1537);\n\nvar _cssAnimation3 = _interopRequireDefault(_cssAnimation2);\n\nvar _toArray2 = __webpack_require__(1539);\n\nvar _toArray3 = _interopRequireDefault(_toArray2);\n\nvar _Align2 = __webpack_require__(1540);\n\nvar _Align3 = _interopRequireDefault(_Align2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.all = _all3.default;\nexports.componentOrElement = _componentOrElement3.default;\nexports.deprecated = _deprecated3.default;\nexports.elementType = _elementType3.default;\nexports.isRequiredForA11y = _isRequiredForA11y3.default;\nexports.splitComponent = _splitComponent3.default;\nexports.createChainedFunction = _createChainedFunction3.default;\nexports.KeyCode = _keyCode2.default;\nexports.contains = _contains3.default;\nexports.addEventListener = _addEventListener3.default;\nexports.cssAnimation = _cssAnimation3.default;\nexports.toArray = _toArray3.default;\n//export getContainerRenderMixin from './getContainerRenderMixin';\n\nexports.Align = _Align3.default;\n\n/***/ }),\n/* 119 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (immutable) */ __webpack_exports__[\"a\"] = toArray;\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_is__ = __webpack_require__(135);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_is___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_is__);\n\n\nfunction toArray(children) {\n var ret = [];\n __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (child) {\n if (child === undefined || child === null) {\n return;\n }\n\n if (Array.isArray(child)) {\n ret = ret.concat(toArray(child));\n } else if (Object(__WEBPACK_IMPORTED_MODULE_1_react_is__[\"isFragment\"])(child) && child.props) {\n ret = ret.concat(toArray(child.props.children));\n } else {\n ret.push(child);\n }\n });\n return ret;\n}\n\n/***/ }),\n/* 120 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// optional / simple context binding\nvar aFunction = __webpack_require__(581);\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n\n\n/***/ }),\n/* 121 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = __webpack_require__(52);\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n\n\n/***/ }),\n/* 122 */\n/***/ (function(module, exports) {\n\nvar toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n\n\n/***/ }),\n/* 123 */\n/***/ (function(module, exports) {\n\n// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n\n\n/***/ }),\n/* 124 */\n/***/ (function(module, exports) {\n\n// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n\n\n/***/ }),\n/* 125 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar shared = __webpack_require__(126)('keys');\nvar uid = __webpack_require__(88);\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n\n\n/***/ }),\n/* 126 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar core = __webpack_require__(24);\nvar global = __webpack_require__(39);\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: __webpack_require__(87) ? 'pure' : 'global',\n copyright: '© 2019 Denis Pushkarev (zloirock.ru)'\n});\n\n\n/***/ }),\n/* 127 */\n/***/ (function(module, exports) {\n\n// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n\n\n/***/ }),\n/* 128 */\n/***/ (function(module, exports) {\n\nexports.f = Object.getOwnPropertySymbols;\n\n\n/***/ }),\n/* 129 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = __webpack_require__(51);\nvar dPs = __webpack_require__(592);\nvar enumBugKeys = __webpack_require__(127);\nvar IE_PROTO = __webpack_require__(125)('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = __webpack_require__(217)('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n __webpack_require__(593).appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n\n\n/***/ }),\n/* 130 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar def = __webpack_require__(40).f;\nvar has = __webpack_require__(47);\nvar TAG = __webpack_require__(29)('toStringTag');\n\nmodule.exports = function (it, tag, stat) {\n if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });\n};\n\n\n/***/ }),\n/* 131 */\n/***/ (function(module, exports) {\n\n/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nmodule.exports = isArray;\n\n\n/***/ }),\n/* 132 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar root = __webpack_require__(70);\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n\n\n/***/ }),\n/* 133 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar baseIsNative = __webpack_require__(643),\n getValue = __webpack_require__(648);\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\nmodule.exports = getNative;\n\n\n/***/ }),\n/* 134 */\n/***/ (function(module, exports) {\n\n/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\nmodule.exports = eq;\n\n\n/***/ }),\n/* 135 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(process) {\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = __webpack_require__(673);\n} else {\n module.exports = __webpack_require__(674);\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5)))\n\n/***/ }),\n/* 136 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = createChainableTypeChecker;\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n// Mostly taken from ReactPropTypes.\n\n/* This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\n\nfunction createChainableTypeChecker(validate) {\n function checkType(isRequired, props, propName, componentName, location, propFullName) {\n var componentNameSafe = componentName || '<>';\n var propFullNameSafe = propFullName || propName;\n\n if (props[propName] == null) {\n if (isRequired) {\n return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));\n }\n\n return null;\n }\n\n for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {\n args[_key - 6] = arguments[_key];\n }\n\n return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n}\n\n/***/ }),\n/* 137 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _Select = __webpack_require__(738);\n\nvar _Select2 = _interopRequireDefault(_Select);\n\nvar _Option = __webpack_require__(146);\n\nvar _Option2 = _interopRequireDefault(_Option);\n\nvar _PropTypes = __webpack_require__(268);\n\nvar _OptGroup = __webpack_require__(269);\n\nvar _OptGroup2 = _interopRequireDefault(_OptGroup);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\n_Select2[\"default\"].Option = _Option2[\"default\"];\n_Select2[\"default\"].OptGroup = _OptGroup2[\"default\"];\nexports[\"default\"] = _Select2[\"default\"];\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 138 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = createChainableTypeChecker;\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n// Mostly taken from ReactPropTypes.\n\n/* This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\n\nfunction createChainableTypeChecker(validate) {\n function checkType(isRequired, props, propName, componentName, location, propFullName) {\n var componentNameSafe = componentName || '<>';\n var propFullNameSafe = propFullName || propName;\n\n if (props[propName] == null) {\n if (isRequired) {\n return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));\n }\n\n return null;\n }\n\n for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {\n args[_key - 6] = arguments[_key];\n }\n\n return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n}\n\n/***/ }),\n/* 139 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = createChainableTypeChecker;\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n// Mostly taken from ReactPropTypes.\n\n/* This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\n\nfunction createChainableTypeChecker(validate) {\n function checkType(isRequired, props, propName, componentName, location, propFullName) {\n var componentNameSafe = componentName || '<>';\n var propFullNameSafe = propFullName || propName;\n\n if (props[propName] == null) {\n if (isRequired) {\n return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));\n }\n\n return null;\n }\n\n for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {\n args[_key - 6] = arguments[_key];\n }\n\n return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n}\n\n/***/ }),\n/* 140 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _iterator = __webpack_require__(771);\n\nvar _iterator2 = _interopRequireDefault(_iterator);\n\nvar _symbol = __webpack_require__(777);\n\nvar _symbol2 = _interopRequireDefault(_symbol);\n\nvar _typeof = typeof _symbol2.default === \"function\" && typeof _iterator2.default === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? \"symbol\" : typeof obj; };\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = typeof _symbol2.default === \"function\" && _typeof(_iterator2.default) === \"symbol\" ? function (obj) {\n return typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n} : function (obj) {\n return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? \"symbol\" : typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n};\n\n/***/ }),\n/* 141 */\n/***/ (function(module, exports, __webpack_require__) {\n\nexports.f = __webpack_require__(29);\n\n\n/***/ }),\n/* 142 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar global = __webpack_require__(39);\nvar core = __webpack_require__(24);\nvar LIBRARY = __webpack_require__(87);\nvar wksExt = __webpack_require__(141);\nvar defineProperty = __webpack_require__(40).f;\nmodule.exports = function (name) {\n var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});\n if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });\n};\n\n\n/***/ }),\n/* 143 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (immutable) */ __webpack_exports__[\"a\"] = contains;\nfunction contains(root, n) {\n var node = n;\n\n while (node) {\n if (node === root) {\n return true;\n }\n\n node = node.parentNode;\n }\n\n return false;\n}\n\n/***/ }),\n/* 144 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (immutable) */ __webpack_exports__[\"a\"] = addEventListenerWrap;\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_add_dom_event_listener__ = __webpack_require__(12);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_add_dom_event_listener___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_add_dom_event_listener__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom__ = __webpack_require__(3);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_dom__);\n\n\nfunction addEventListenerWrap(target, eventType, cb, option) {\n /* eslint camelcase: 2 */\n var callback = __WEBPACK_IMPORTED_MODULE_1_react_dom___default.a.unstable_batchedUpdates ? function run(e) {\n __WEBPACK_IMPORTED_MODULE_1_react_dom___default.a.unstable_batchedUpdates(cb, e);\n } : cb;\n return __WEBPACK_IMPORTED_MODULE_0_add_dom_event_listener___default()(target, eventType, callback, option);\n}\n\n/***/ }),\n/* 145 */\n/***/ (function(module, exports) {\n\n// mutationobserver-shim v0.3.3 (github.com/megawac/MutationObserver.js)\n// Authors: Graeme Yeates (github.com/megawac) \n/*\n Shim for MutationObserver interface\n Author: Graeme Yeates (github.com/megawac)\n Repository: https://github.com/megawac/MutationObserver.js\n License: WTFPL V2, 2004 (wtfpl.net).\n Though credit and staring the repo will make me feel pretty, you can modify and redistribute as you please.\n Attempts to follow spec (https://www.w3.org/TR/dom/#mutation-observers) as closely as possible for native javascript\n See https://github.com/WebKit/webkit/blob/master/Source/WebCore/dom/MutationObserver.cpp for current webkit source c++ implementation\n*/\nwindow.MutationObserver||(window.MutationObserver=function(y){function z(a){this.i=[];this.m=a}function K(a){(function c(){var d=a.takeRecords();d.length&&a.m(d,a);a.h=setTimeout(c,z._period)})()}function r(a){var b={type:null,target:null,addedNodes:[],removedNodes:[],previousSibling:null,nextSibling:null,attributeName:null,attributeNamespace:null,oldValue:null},c;for(c in a)b[c]!==y&&a[c]!==y&&(b[c]=a[c]);return b}function L(a,b){var c=E(a,b);return function(d){var f=d.length;b.a&&3===a.nodeType&&\na.nodeValue!==c.a&&d.push(new r({type:\"characterData\",target:a,oldValue:c.a}));b.b&&c.b&&C(d,a,c.b,b.f);if(b.c||b.g)var m=M(d,a,c,b);if(m||d.length!==f)c=E(a,b)}}function N(a,b){return b.value}function O(a,b){return\"style\"!==b.name?b.value:a.style.cssText}function C(a,b,c,d){for(var f={},m=b.attributes,k,g,p=m.length;p--;)k=m[p],g=k.name,d&&d[g]===y||(F(b,k)!==c[g]&&a.push(r({type:\"attributes\",target:b,attributeName:g,oldValue:c[g],attributeNamespace:k.namespaceURI})),f[g]=!0);for(g in c)f[g]||a.push(r({target:b,\ntype:\"attributes\",attributeName:g,oldValue:c[g]}))}function M(a,b,c,d){function f(g,p,t,q,x){var A=g.length-1;x=-~((A-x)/2);for(var h,l,e;e=g.pop();)h=t[e.j],l=q[e.l],d.c&&x&&Math.abs(e.j-e.l)>=A&&(a.push(r({type:\"childList\",target:p,addedNodes:[h],removedNodes:[h],nextSibling:h.nextSibling,previousSibling:h.previousSibling})),x--),d.b&&l.b&&C(a,h,l.b,d.f),d.a&&3===h.nodeType&&h.nodeValue!==l.a&&a.push(r({type:\"characterData\",target:h,oldValue:l.a})),d.g&&m(h,l)}function m(g,p){for(var t=g.childNodes,\nq=p.c,x=t.length,A=q?q.length:0,h,l,e,n,v,B=0,w=0,u=0;w 0) {\n return true;\n }\n }\n return false;\n}\n\nfunction splitBySeparators(string, separators) {\n var reg = new RegExp('[' + separators.join() + ']');\n return string.split(reg).filter(function (token) {\n return token;\n });\n}\n\nfunction defaultFilterFn(input, child) {\n if (child.props.disabled) {\n return false;\n }\n var value = toArray(getPropValue(child, this.props.optionFilterProp)).join('');\n return value.toLowerCase().indexOf(input.toLowerCase()) > -1;\n}\n\nfunction validateOptionValue(value, props) {\n if (isSingleMode(props) || isMultiple(props)) {\n return;\n }\n if (typeof value !== 'string') {\n throw new Error('Invalid `value` of type `' + (typeof value === 'undefined' ? 'undefined' : _typeof(value)) + '` supplied to Option, ' + 'expected `string` when `tags/combobox` is `true`.');\n }\n}\n\nfunction saveRef(instance, name) {\n return function (node) {\n instance[name] = node;\n };\n}\n\n/***/ }),\n/* 148 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nmodule.exports = __webpack_require__(815);\n\n/***/ }),\n/* 149 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = createChainableTypeChecker;\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n// Mostly taken from ReactPropTypes.\n\n/* This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\n\nfunction createChainableTypeChecker(validate) {\n function checkType(isRequired, props, propName, componentName, location, propFullName) {\n var componentNameSafe = componentName || '<>';\n var propFullNameSafe = propFullName || propName;\n\n if (props[propName] == null) {\n if (isRequired) {\n return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));\n }\n\n return null;\n }\n\n for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {\n args[_key - 6] = arguments[_key];\n }\n\n return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n}\n\n/***/ }),\n/* 150 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = createChainableTypeChecker;\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n// Mostly taken from ReactPropTypes.\n\n/* This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\n\nfunction createChainableTypeChecker(validate) {\n function checkType(isRequired, props, propName, componentName, location, propFullName) {\n var componentNameSafe = componentName || '<>';\n var propFullNameSafe = propFullName || propName;\n\n if (props[propName] == null) {\n if (isRequired) {\n return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));\n }\n\n return null;\n }\n\n for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {\n args[_key - 6] = arguments[_key];\n }\n\n return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n}\n\n/***/ }),\n/* 151 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _Dropdown = __webpack_require__(893);\n\nvar _Dropdown2 = _interopRequireDefault(_Dropdown);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nexports[\"default\"] = _Dropdown2[\"default\"];\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 152 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = undefined;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _properties = __webpack_require__(27);\n\nvar _properties2 = _interopRequireDefault(_properties);\n\nvar _on = __webpack_require__(17);\n\nvar _on2 = _interopRequireDefault(_on);\n\nvar _classnames = __webpack_require__(37);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar transitionEndEvent = _properties2[\"default\"].end;\n\n//设置状态码\nvar UNMOUNTED = exports.UNMOUNTED = 0;\nvar EXITED = exports.EXITED = 1;\nvar ENTERING = exports.ENTERING = 2;\nvar ENTERED = exports.ENTERED = 3;\nvar EXITING = exports.EXITING = 4;\n\nvar propTypes = {\n /**\n * 是否触发动画\n */\n \"in\": _propTypes2[\"default\"].bool,\n\n /**\n * 不显示的时候是否移除组件\n */\n unmountOnExit: _propTypes2[\"default\"].bool,\n\n /**\n * 如果设置为默认显示,挂载时显示动画\n */\n transitionAppear: _propTypes2[\"default\"].bool,\n\n /**\n * 设置超时时间,防止出现问题,可设置为>=动画时间\n */\n timeout: _propTypes2[\"default\"].number,\n\n /**\n * 退出组件时添加的class\n */\n exitedClassName: _propTypes2[\"default\"].string,\n /**\n * 退出组件中添加的class\n */\n exitingClassName: _propTypes2[\"default\"].string,\n /**\n * 进入动画后添加的class\n */\n enteredClassName: _propTypes2[\"default\"].string,\n /**\n * 进入动画时添加的class\n */\n enteringClassName: _propTypes2[\"default\"].string,\n\n /**\n * 进入动画开始时的钩子函数\n */\n onEnter: _propTypes2[\"default\"].func,\n /**\n * 进入动画中的钩子函数\n */\n onEntering: _propTypes2[\"default\"].func,\n /**\n * 进入动画后的钩子函数\n */\n onEntered: _propTypes2[\"default\"].func,\n /**\n * 退出动画开始时的钩子函数\n */\n onExit: _propTypes2[\"default\"].func,\n /**\n * 退出动画中的钩子函数\n */\n onExiting: _propTypes2[\"default\"].func,\n /**\n * 退出动画后的钩子函数\n */\n onExited: _propTypes2[\"default\"].func\n};\n\nfunction noop() {}\n\nvar defaultProps = {\n \"in\": false,\n unmountOnExit: false,\n transitionAppear: false,\n timeout: 5000,\n onEnter: noop,\n onEntering: noop,\n onEntered: noop,\n onExit: noop,\n onExiting: noop,\n onExited: noop\n};\n\n/**\n * 动画组件\n */\n\nvar Transition = function (_Component) {\n _inherits(Transition, _Component);\n\n function Transition(props, context) {\n _classCallCheck(this, Transition);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));\n\n var initialStatus = void 0;\n if (props[\"in\"]) {\n // 在componentdidmount时开始执行动画\n initialStatus = props.transitionAppear ? EXITED : ENTERED;\n } else {\n initialStatus = props.unmountOnExit ? UNMOUNTED : EXITED;\n }\n _this.state = { status: initialStatus };\n\n _this.nextCallback = null;\n return _this;\n }\n\n Transition.prototype.componentDidMount = function componentDidMount() {\n if (this.props.transitionAppear && this.props[\"in\"]) {\n this.performEnter(this.props);\n }\n };\n\n Transition.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n if (nextProps[\"in\"] && this.props.unmountOnExit) {\n if (this.state.status === UNMOUNTED) {\n // 在componentDidUpdate执行动画.\n this.setState({ status: EXITED });\n }\n } else {\n this._needsUpdate = true;\n }\n };\n\n Transition.prototype.componentDidUpdate = function componentDidUpdate() {\n var status = this.state.status;\n\n if (this.props.unmountOnExit && status === EXITED) {\n // 当使用unmountOnExit时,exited为exiting和unmont的过渡状态\n if (this.props[\"in\"]) {\n this.performEnter(this.props);\n } else {\n this.setState({ status: UNMOUNTED });\n }\n\n return;\n }\n\n // 确保只响应prop变化\n if (this._needsUpdate) {\n this._needsUpdate = false;\n\n if (this.props[\"in\"]) {\n if (status === EXITING) {\n this.performEnter(this.props);\n } else if (status === EXITED) {\n this.performEnter(this.props);\n }\n // 其他,当我们已经输入或输出\n } else {\n if (status === ENTERING || status === ENTERED) {\n this.performExit(this.props);\n }\n // 我们已经输入或输出完成\n }\n }\n };\n\n Transition.prototype.componentWillUnmount = function componentWillUnmount() {\n this.cancelNextCallback();\n };\n\n Transition.prototype.performEnter = function performEnter(props) {\n var _this2 = this;\n\n this.cancelNextCallback();\n var node = _reactDom2[\"default\"].findDOMNode(this);\n\n // 这里接收新props\n props.onEnter(node);\n\n this.safeSetState({ status: ENTERING }, function () {\n _this2.props.onEntering(node);\n\n _this2.onTransitionEnd(node, function () {\n _this2.safeSetState({ status: ENTERED }, function () {\n _this2.props.onEntered(node);\n });\n });\n });\n };\n\n Transition.prototype.performExit = function performExit(props) {\n var _this3 = this;\n\n this.cancelNextCallback();\n var node = _reactDom2[\"default\"].findDOMNode(this);\n\n props.onExit(node);\n\n this.safeSetState({ status: EXITING }, function () {\n _this3.props.onExiting(node);\n\n _this3.onTransitionEnd(node, function () {\n _this3.safeSetState({ status: EXITED }, function () {\n _this3.props.onExited(node);\n });\n });\n });\n };\n\n Transition.prototype.cancelNextCallback = function cancelNextCallback() {\n if (this.nextCallback !== null) {\n this.nextCallback.cancel();\n this.nextCallback = null;\n }\n };\n\n Transition.prototype.safeSetState = function safeSetState(nextState, callback) {\n // 确保在组件销毁后挂起的setState被消除\n this.setState(nextState, this.setNextCallback(callback));\n };\n\n Transition.prototype.setNextCallback = function setNextCallback(callback) {\n var _this4 = this;\n\n var active = true;\n\n this.nextCallback = function (event) {\n if (active) {\n active = false;\n _this4.nextCallback = null;\n\n callback(event);\n }\n };\n\n this.nextCallback.cancel = function () {\n active = false;\n };\n\n return this.nextCallback;\n };\n\n Transition.prototype.onTransitionEnd = function onTransitionEnd(node, handler) {\n this.setNextCallback(handler);\n\n if (node) {\n if (transitionEndEvent == undefined) {\n this.nextCallback();\n } else {\n (0, _on2[\"default\"])(node, transitionEndEvent, this.nextCallback);\n }\n setTimeout(this.nextCallback, this.props.timeout);\n } else {\n setTimeout(this.nextCallback, 0);\n }\n };\n\n Transition.prototype.render = function render() {\n var status = this.state.status;\n if (status === UNMOUNTED) {\n return null;\n }\n\n var _props = this.props,\n children = _props.children,\n className = _props.className,\n childProps = _objectWithoutProperties(_props, ['children', 'className']);\n\n Object.keys(Transition.propTypes).forEach(function (key) {\n return delete childProps[key];\n });\n\n var transitionClassName = void 0;\n if (status === EXITED) {\n transitionClassName = this.props.exitedClassName;\n } else if (status === ENTERING) {\n transitionClassName = this.props.enteringClassName;\n } else if (status === ENTERED) {\n transitionClassName = this.props.enteredClassName;\n } else if (status === EXITING) {\n transitionClassName = this.props.exitingClassName;\n }\n\n var child = _react2[\"default\"].Children.only(children);\n return _react2[\"default\"].cloneElement(child, _extends({}, childProps, {\n className: (0, _classnames2[\"default\"])(child.props.className, className, transitionClassName)\n }));\n };\n\n return Transition;\n}(_react.Component);\n\nTransition.propTypes = propTypes;\n\nTransition.defaultProps = defaultProps;\n\nexports[\"default\"] = Transition;\n\n/***/ }),\n/* 153 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined;\n\nvar _all2 = __webpack_require__(900);\n\nvar _all3 = _interopRequireDefault(_all2);\n\nvar _componentOrElement2 = __webpack_require__(901);\n\nvar _componentOrElement3 = _interopRequireDefault(_componentOrElement2);\n\nvar _deprecated2 = __webpack_require__(902);\n\nvar _deprecated3 = _interopRequireDefault(_deprecated2);\n\nvar _elementType2 = __webpack_require__(904);\n\nvar _elementType3 = _interopRequireDefault(_elementType2);\n\nvar _isRequiredForA11y2 = __webpack_require__(905);\n\nvar _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2);\n\nvar _splitComponent2 = __webpack_require__(906);\n\nvar _splitComponent3 = _interopRequireDefault(_splitComponent2);\n\nvar _createChainedFunction2 = __webpack_require__(279);\n\nvar _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2);\n\nvar _keyCode = __webpack_require__(907);\n\nvar _keyCode2 = _interopRequireDefault(_keyCode);\n\nvar _contains2 = __webpack_require__(908);\n\nvar _contains3 = _interopRequireDefault(_contains2);\n\nvar _addEventListener2 = __webpack_require__(280);\n\nvar _addEventListener3 = _interopRequireDefault(_addEventListener2);\n\nvar _cssAnimation2 = __webpack_require__(909);\n\nvar _cssAnimation3 = _interopRequireDefault(_cssAnimation2);\n\nvar _toArray2 = __webpack_require__(911);\n\nvar _toArray3 = _interopRequireDefault(_toArray2);\n\nvar _Align2 = __webpack_require__(912);\n\nvar _Align3 = _interopRequireDefault(_Align2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.all = _all3.default;\nexports.componentOrElement = _componentOrElement3.default;\nexports.deprecated = _deprecated3.default;\nexports.elementType = _elementType3.default;\nexports.isRequiredForA11y = _isRequiredForA11y3.default;\nexports.splitComponent = _splitComponent3.default;\nexports.createChainedFunction = _createChainedFunction3.default;\nexports.KeyCode = _keyCode2.default;\nexports.contains = _contains3.default;\nexports.addEventListener = _addEventListener3.default;\nexports.cssAnimation = _cssAnimation3.default;\nexports.toArray = _toArray3.default;\n//export getContainerRenderMixin from './getContainerRenderMixin';\n\nexports.Align = _Align3.default;\n\n/***/ }),\n/* 154 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = createChainableTypeChecker;\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n// Mostly taken from ReactPropTypes.\n\n/* This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\n\nfunction createChainableTypeChecker(validate) {\n function checkType(isRequired, props, propName, componentName, location, propFullName) {\n var componentNameSafe = componentName || '<>';\n var propFullNameSafe = propFullName || propName;\n\n if (props[propName] == null) {\n if (isRequired) {\n return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));\n }\n\n return null;\n }\n\n for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {\n args[_key - 6] = arguments[_key];\n }\n\n return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n}\n\n/***/ }),\n/* 155 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = undefined;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _properties = __webpack_require__(27);\n\nvar _properties2 = _interopRequireDefault(_properties);\n\nvar _on = __webpack_require__(17);\n\nvar _on2 = _interopRequireDefault(_on);\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar transitionEndEvent = _properties2[\"default\"].end;\n\n//设置状态码\nvar UNMOUNTED = exports.UNMOUNTED = 0;\nvar EXITED = exports.EXITED = 1;\nvar ENTERING = exports.ENTERING = 2;\nvar ENTERED = exports.ENTERED = 3;\nvar EXITING = exports.EXITING = 4;\n\nvar propTypes = {\n /**\n * 是否触发动画\n */\n \"in\": _propTypes2[\"default\"].bool,\n\n /**\n * 不显示的时候是否移除组件\n */\n unmountOnExit: _propTypes2[\"default\"].bool,\n\n /**\n * 如果设置为默认显示,挂载时显示动画\n */\n transitionAppear: _propTypes2[\"default\"].bool,\n\n /**\n * 设置超时时间,防止出现问题,可设置为>=动画时间\n */\n timeout: _propTypes2[\"default\"].number,\n\n /**\n * 退出组件时添加的class\n */\n exitedClassName: _propTypes2[\"default\"].string,\n /**\n * 退出组件中添加的class\n */\n exitingClassName: _propTypes2[\"default\"].string,\n /**\n * 进入动画后添加的class\n */\n enteredClassName: _propTypes2[\"default\"].string,\n /**\n * 进入动画时添加的class\n */\n enteringClassName: _propTypes2[\"default\"].string,\n\n /**\n * 进入动画开始时的钩子函数\n */\n onEnter: _propTypes2[\"default\"].func,\n /**\n * 进入动画中的钩子函数\n */\n onEntering: _propTypes2[\"default\"].func,\n /**\n * 进入动画后的钩子函数\n */\n onEntered: _propTypes2[\"default\"].func,\n /**\n * 退出动画开始时的钩子函数\n */\n onExit: _propTypes2[\"default\"].func,\n /**\n * 退出动画中的钩子函数\n */\n onExiting: _propTypes2[\"default\"].func,\n /**\n * 退出动画后的钩子函数\n */\n onExited: _propTypes2[\"default\"].func\n};\n\nfunction noop() {}\n\nvar defaultProps = {\n \"in\": false,\n unmountOnExit: false,\n transitionAppear: false,\n timeout: 5000,\n onEnter: noop,\n onEntering: noop,\n onEntered: noop,\n onExit: noop,\n onExiting: noop,\n onExited: noop\n};\n\n/**\n * 动画组件\n */\n\nvar Transition = function (_Component) {\n _inherits(Transition, _Component);\n\n function Transition(props, context) {\n _classCallCheck(this, Transition);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));\n\n var initialStatus = void 0;\n if (props[\"in\"]) {\n // 在componentdidmount时开始执行动画\n initialStatus = props.transitionAppear ? EXITED : ENTERED;\n } else {\n initialStatus = props.unmountOnExit ? UNMOUNTED : EXITED;\n }\n _this.state = { status: initialStatus };\n\n _this.nextCallback = null;\n return _this;\n }\n\n Transition.prototype.componentDidMount = function componentDidMount() {\n if (this.props.transitionAppear && this.props[\"in\"]) {\n this.performEnter(this.props);\n }\n };\n\n Transition.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n if (nextProps[\"in\"] && this.props.unmountOnExit) {\n if (this.state.status === UNMOUNTED) {\n // 在componentDidUpdate执行动画.\n this.setState({ status: EXITED });\n }\n } else {\n this._needsUpdate = true;\n }\n };\n\n Transition.prototype.componentDidUpdate = function componentDidUpdate() {\n var status = this.state.status;\n\n if (this.props.unmountOnExit && status === EXITED) {\n // 当使用unmountOnExit时,exited为exiting和unmont的过渡状态\n if (this.props[\"in\"]) {\n this.performEnter(this.props);\n } else {\n this.setState({ status: UNMOUNTED });\n }\n\n return;\n }\n\n // 确保只响应prop变化\n if (this._needsUpdate) {\n this._needsUpdate = false;\n\n if (this.props[\"in\"]) {\n if (status === EXITING) {\n this.performEnter(this.props);\n } else if (status === EXITED) {\n this.performEnter(this.props);\n }\n // 其他,当我们已经输入或输出\n } else {\n if (status === ENTERING || status === ENTERED) {\n this.performExit(this.props);\n }\n // 我们已经输入或输出完成\n }\n }\n };\n\n Transition.prototype.componentWillUnmount = function componentWillUnmount() {\n this.cancelNextCallback();\n };\n\n Transition.prototype.performEnter = function performEnter(props) {\n var _this2 = this;\n\n this.cancelNextCallback();\n var node = _reactDom2[\"default\"].findDOMNode(this);\n\n // 这里接收新props\n props.onEnter(node);\n\n this.safeSetState({ status: ENTERING }, function () {\n _this2.props.onEntering(node);\n\n _this2.onTransitionEnd(node, function () {\n _this2.safeSetState({ status: ENTERED }, function () {\n _this2.props.onEntered(node);\n });\n });\n });\n };\n\n Transition.prototype.performExit = function performExit(props) {\n var _this3 = this;\n\n this.cancelNextCallback();\n var node = _reactDom2[\"default\"].findDOMNode(this);\n\n props.onExit(node);\n\n this.safeSetState({ status: EXITING }, function () {\n _this3.props.onExiting(node);\n\n _this3.onTransitionEnd(node, function () {\n _this3.safeSetState({ status: EXITED }, function () {\n _this3.props.onExited(node);\n });\n });\n });\n };\n\n Transition.prototype.cancelNextCallback = function cancelNextCallback() {\n if (this.nextCallback !== null) {\n this.nextCallback.cancel();\n this.nextCallback = null;\n }\n };\n\n Transition.prototype.safeSetState = function safeSetState(nextState, callback) {\n // 确保在组件销毁后挂起的setState被消除\n this.setState(nextState, this.setNextCallback(callback));\n };\n\n Transition.prototype.setNextCallback = function setNextCallback(callback) {\n var _this4 = this;\n\n var active = true;\n\n this.nextCallback = function (event) {\n if (active) {\n active = false;\n _this4.nextCallback = null;\n\n callback(event);\n }\n };\n\n this.nextCallback.cancel = function () {\n active = false;\n };\n\n return this.nextCallback;\n };\n\n Transition.prototype.onTransitionEnd = function onTransitionEnd(node, handler) {\n this.setNextCallback(handler);\n\n if (node) {\n if (transitionEndEvent == undefined) {\n this.nextCallback();\n } else {\n (0, _on2[\"default\"])(node, transitionEndEvent, this.nextCallback);\n }\n setTimeout(this.nextCallback, this.props.timeout);\n } else {\n setTimeout(this.nextCallback, 0);\n }\n };\n\n Transition.prototype.render = function render() {\n var status = this.state.status;\n if (status === UNMOUNTED) {\n return null;\n }\n\n var _props = this.props,\n children = _props.children,\n className = _props.className,\n childProps = _objectWithoutProperties(_props, ['children', 'className']);\n\n Object.keys(Transition.propTypes).forEach(function (key) {\n return delete childProps[key];\n });\n\n var transitionClassName = void 0;\n if (status === EXITED) {\n transitionClassName = this.props.exitedClassName;\n } else if (status === ENTERING) {\n transitionClassName = this.props.enteringClassName;\n } else if (status === ENTERED) {\n transitionClassName = this.props.enteredClassName;\n } else if (status === EXITING) {\n transitionClassName = this.props.exitingClassName;\n }\n\n var child = _react2[\"default\"].Children.only(children);\n return _react2[\"default\"].cloneElement(child, _extends({}, childProps, {\n className: (0, _classnames2[\"default\"])(child.props.className, className, transitionClassName)\n }));\n };\n\n return Transition;\n}(_react.Component);\n\nTransition.propTypes = propTypes;\n\nTransition.defaultProps = defaultProps;\n\nexports[\"default\"] = Transition;\n\n/***/ }),\n/* 156 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined;\n\nvar _all2 = __webpack_require__(938);\n\nvar _all3 = _interopRequireDefault(_all2);\n\nvar _componentOrElement2 = __webpack_require__(939);\n\nvar _componentOrElement3 = _interopRequireDefault(_componentOrElement2);\n\nvar _deprecated2 = __webpack_require__(940);\n\nvar _deprecated3 = _interopRequireDefault(_deprecated2);\n\nvar _elementType2 = __webpack_require__(941);\n\nvar _elementType3 = _interopRequireDefault(_elementType2);\n\nvar _isRequiredForA11y2 = __webpack_require__(942);\n\nvar _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2);\n\nvar _splitComponent2 = __webpack_require__(943);\n\nvar _splitComponent3 = _interopRequireDefault(_splitComponent2);\n\nvar _createChainedFunction2 = __webpack_require__(284);\n\nvar _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2);\n\nvar _keyCode = __webpack_require__(944);\n\nvar _keyCode2 = _interopRequireDefault(_keyCode);\n\nvar _contains2 = __webpack_require__(945);\n\nvar _contains3 = _interopRequireDefault(_contains2);\n\nvar _addEventListener2 = __webpack_require__(285);\n\nvar _addEventListener3 = _interopRequireDefault(_addEventListener2);\n\nvar _cssAnimation2 = __webpack_require__(946);\n\nvar _cssAnimation3 = _interopRequireDefault(_cssAnimation2);\n\nvar _toArray2 = __webpack_require__(948);\n\nvar _toArray3 = _interopRequireDefault(_toArray2);\n\nvar _Align2 = __webpack_require__(949);\n\nvar _Align3 = _interopRequireDefault(_Align2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.all = _all3.default;\nexports.componentOrElement = _componentOrElement3.default;\nexports.deprecated = _deprecated3.default;\nexports.elementType = _elementType3.default;\nexports.isRequiredForA11y = _isRequiredForA11y3.default;\nexports.splitComponent = _splitComponent3.default;\nexports.createChainedFunction = _createChainedFunction3.default;\nexports.KeyCode = _keyCode2.default;\nexports.contains = _contains3.default;\nexports.addEventListener = _addEventListener3.default;\nexports.cssAnimation = _cssAnimation3.default;\nexports.toArray = _toArray3.default;\n//export getContainerRenderMixin from './getContainerRenderMixin';\n\nexports.Align = _Align3.default;\n\n/***/ }),\n/* 157 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = createChainableTypeChecker;\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n// Mostly taken from ReactPropTypes.\n\n/* This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\n\nfunction createChainableTypeChecker(validate) {\n function checkType(isRequired, props, propName, componentName, location, propFullName) {\n var componentNameSafe = componentName || '<>';\n var propFullNameSafe = propFullName || propName;\n\n if (props[propName] == null) {\n if (isRequired) {\n return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));\n }\n\n return null;\n }\n\n for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {\n args[_key - 6] = arguments[_key];\n }\n\n return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n}\n\n/***/ }),\n/* 158 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = undefined;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _properties = __webpack_require__(27);\n\nvar _properties2 = _interopRequireDefault(_properties);\n\nvar _on = __webpack_require__(17);\n\nvar _on2 = _interopRequireDefault(_on);\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar transitionEndEvent = _properties2[\"default\"].end;\n\n//设置状态码\nvar UNMOUNTED = exports.UNMOUNTED = 0;\nvar EXITED = exports.EXITED = 1;\nvar ENTERING = exports.ENTERING = 2;\nvar ENTERED = exports.ENTERED = 3;\nvar EXITING = exports.EXITING = 4;\n\nvar propTypes = {\n /**\n * 是否触发动画\n */\n \"in\": _propTypes2[\"default\"].bool,\n\n /**\n * 不显示的时候是否移除组件\n */\n unmountOnExit: _propTypes2[\"default\"].bool,\n\n /**\n * 如果设置为默认显示,挂载时显示动画\n */\n transitionAppear: _propTypes2[\"default\"].bool,\n\n /**\n * 设置超时时间,防止出现问题,可设置为>=动画时间\n */\n timeout: _propTypes2[\"default\"].number,\n\n /**\n * 退出组件时添加的class\n */\n exitedClassName: _propTypes2[\"default\"].string,\n /**\n * 退出组件中添加的class\n */\n exitingClassName: _propTypes2[\"default\"].string,\n /**\n * 进入动画后添加的class\n */\n enteredClassName: _propTypes2[\"default\"].string,\n /**\n * 进入动画时添加的class\n */\n enteringClassName: _propTypes2[\"default\"].string,\n\n /**\n * 进入动画开始时的钩子函数\n */\n onEnter: _propTypes2[\"default\"].func,\n /**\n * 进入动画中的钩子函数\n */\n onEntering: _propTypes2[\"default\"].func,\n /**\n * 进入动画后的钩子函数\n */\n onEntered: _propTypes2[\"default\"].func,\n /**\n * 退出动画开始时的钩子函数\n */\n onExit: _propTypes2[\"default\"].func,\n /**\n * 退出动画中的钩子函数\n */\n onExiting: _propTypes2[\"default\"].func,\n /**\n * 退出动画后的钩子函数\n */\n onExited: _propTypes2[\"default\"].func\n};\n\nfunction noop() {}\n\nvar defaultProps = {\n \"in\": false,\n unmountOnExit: false,\n transitionAppear: false,\n timeout: 5000,\n onEnter: noop,\n onEntering: noop,\n onEntered: noop,\n onExit: noop,\n onExiting: noop,\n onExited: noop\n};\n\n/**\n * 动画组件\n */\n\nvar Transition = function (_Component) {\n _inherits(Transition, _Component);\n\n function Transition(props, context) {\n _classCallCheck(this, Transition);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));\n\n var initialStatus = void 0;\n if (props[\"in\"]) {\n // 在componentdidmount时开始执行动画\n initialStatus = props.transitionAppear ? EXITED : ENTERED;\n } else {\n initialStatus = props.unmountOnExit ? UNMOUNTED : EXITED;\n }\n _this.state = { status: initialStatus };\n\n _this.nextCallback = null;\n return _this;\n }\n\n Transition.prototype.componentDidMount = function componentDidMount() {\n if (this.props.transitionAppear && this.props[\"in\"]) {\n this.performEnter(this.props);\n }\n };\n\n Transition.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n if (nextProps[\"in\"] && this.props.unmountOnExit) {\n if (this.state.status === UNMOUNTED) {\n // 在componentDidUpdate执行动画.\n this.setState({ status: EXITED });\n }\n } else {\n this._needsUpdate = true;\n }\n };\n\n Transition.prototype.componentDidUpdate = function componentDidUpdate() {\n var status = this.state.status;\n\n if (this.props.unmountOnExit && status === EXITED) {\n // 当使用unmountOnExit时,exited为exiting和unmont的过渡状态\n if (this.props[\"in\"]) {\n this.performEnter(this.props);\n } else {\n this.setState({ status: UNMOUNTED });\n }\n\n return;\n }\n\n // 确保只响应prop变化\n if (this._needsUpdate) {\n this._needsUpdate = false;\n\n if (this.props[\"in\"]) {\n if (status === EXITING) {\n this.performEnter(this.props);\n } else if (status === EXITED) {\n this.performEnter(this.props);\n }\n // 其他,当我们已经输入或输出\n } else {\n if (status === ENTERING || status === ENTERED) {\n this.performExit(this.props);\n }\n // 我们已经输入或输出完成\n }\n }\n };\n\n Transition.prototype.componentWillUnmount = function componentWillUnmount() {\n this.cancelNextCallback();\n };\n\n Transition.prototype.performEnter = function performEnter(props) {\n var _this2 = this;\n\n this.cancelNextCallback();\n var node = _reactDom2[\"default\"].findDOMNode(this);\n\n // 这里接收新props\n props.onEnter(node);\n\n this.safeSetState({ status: ENTERING }, function () {\n _this2.props.onEntering(node);\n\n _this2.onTransitionEnd(node, function () {\n _this2.safeSetState({ status: ENTERED }, function () {\n _this2.props.onEntered(node);\n });\n });\n });\n };\n\n Transition.prototype.performExit = function performExit(props) {\n var _this3 = this;\n\n this.cancelNextCallback();\n var node = _reactDom2[\"default\"].findDOMNode(this);\n\n props.onExit(node);\n\n this.safeSetState({ status: EXITING }, function () {\n _this3.props.onExiting(node);\n\n _this3.onTransitionEnd(node, function () {\n _this3.safeSetState({ status: EXITED }, function () {\n _this3.props.onExited(node);\n });\n });\n });\n };\n\n Transition.prototype.cancelNextCallback = function cancelNextCallback() {\n if (this.nextCallback !== null) {\n this.nextCallback.cancel();\n this.nextCallback = null;\n }\n };\n\n Transition.prototype.safeSetState = function safeSetState(nextState, callback) {\n // 确保在组件销毁后挂起的setState被消除\n this.setState(nextState, this.setNextCallback(callback));\n };\n\n Transition.prototype.setNextCallback = function setNextCallback(callback) {\n var _this4 = this;\n\n var active = true;\n\n this.nextCallback = function (event) {\n if (active) {\n active = false;\n _this4.nextCallback = null;\n\n callback(event);\n }\n };\n\n this.nextCallback.cancel = function () {\n active = false;\n };\n\n return this.nextCallback;\n };\n\n Transition.prototype.onTransitionEnd = function onTransitionEnd(node, handler) {\n this.setNextCallback(handler);\n\n if (node) {\n if (transitionEndEvent == undefined) {\n this.nextCallback();\n } else {\n (0, _on2[\"default\"])(node, transitionEndEvent, this.nextCallback);\n }\n setTimeout(this.nextCallback, this.props.timeout);\n } else {\n setTimeout(this.nextCallback, 0);\n }\n };\n\n Transition.prototype.render = function render() {\n var status = this.state.status;\n if (status === UNMOUNTED) {\n return null;\n }\n\n var _props = this.props,\n children = _props.children,\n className = _props.className,\n childProps = _objectWithoutProperties(_props, ['children', 'className']);\n\n Object.keys(Transition.propTypes).forEach(function (key) {\n return delete childProps[key];\n });\n\n var transitionClassName = void 0;\n if (status === EXITED) {\n transitionClassName = this.props.exitedClassName;\n } else if (status === ENTERING) {\n transitionClassName = this.props.enteringClassName;\n } else if (status === ENTERED) {\n transitionClassName = this.props.enteredClassName;\n } else if (status === EXITING) {\n transitionClassName = this.props.exitingClassName;\n }\n\n var child = _react2[\"default\"].Children.only(children);\n return _react2[\"default\"].cloneElement(child, _extends({}, childProps, {\n className: (0, _classnames2[\"default\"])(child.props.className, className, transitionClassName)\n }));\n };\n\n return Transition;\n}(_react.Component);\n\nTransition.propTypes = propTypes;\n\nTransition.defaultProps = defaultProps;\n\nexports[\"default\"] = Transition;\n\n/***/ }),\n/* 159 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = createChainableTypeChecker;\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n// Mostly taken from ReactPropTypes.\n\n/* This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\n\nfunction createChainableTypeChecker(validate) {\n function checkType(isRequired, props, propName, componentName, location, propFullName) {\n var componentNameSafe = componentName || '<>';\n var propFullNameSafe = propFullName || propName;\n\n if (props[propName] == null) {\n if (isRequired) {\n return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));\n }\n\n return null;\n }\n\n for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {\n args[_key - 6] = arguments[_key];\n }\n\n return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n}\n\n/***/ }),\n/* 160 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _VerticalMenu = __webpack_require__(1009);\n\nvar _VerticalMenu2 = _interopRequireDefault(_VerticalMenu);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nexports[\"default\"] = _VerticalMenu2[\"default\"];\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 161 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = createChainableTypeChecker;\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n// Mostly taken from ReactPropTypes.\n\n/* This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\n\nfunction createChainableTypeChecker(validate) {\n function checkType(isRequired, props, propName, componentName, location, propFullName) {\n var componentNameSafe = componentName || '<>';\n var propFullNameSafe = propFullName || propName;\n\n if (props[propName] == null) {\n if (isRequired) {\n return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));\n }\n\n return null;\n }\n\n for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {\n args[_key - 6] = arguments[_key];\n }\n\n return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n}\n\n/***/ }),\n/* 162 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.destroyFns = undefined;\n\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\nvar _extends2;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _events = __webpack_require__(163);\n\nvar _events2 = _interopRequireDefault(_events);\n\nvar _ownerDocument = __webpack_require__(22);\n\nvar _ownerDocument2 = _interopRequireDefault(_ownerDocument);\n\nvar _inDOM = __webpack_require__(25);\n\nvar _inDOM2 = _interopRequireDefault(_inDOM);\n\nvar _scrollbarSize = __webpack_require__(104);\n\nvar _scrollbarSize2 = _interopRequireDefault(_scrollbarSize);\n\nvar _scrollTop = __webpack_require__(45);\n\nvar _scrollTop2 = _interopRequireDefault(_scrollTop);\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _Modal = __webpack_require__(164);\n\nvar _Modal2 = _interopRequireDefault(_Modal);\n\nvar _isOverflowing = __webpack_require__(105);\n\nvar _isOverflowing2 = _interopRequireDefault(_isOverflowing);\n\nvar _tinperBeeCore = __webpack_require__(62);\n\nvar _beeTransition = __webpack_require__(1083);\n\nvar _ModalBody = __webpack_require__(1087);\n\nvar _ModalBody2 = _interopRequireDefault(_ModalBody);\n\nvar _ModalDialog = __webpack_require__(1088);\n\nvar _ModalDialog2 = _interopRequireDefault(_ModalDialog);\n\nvar _ModalFooter = __webpack_require__(1137);\n\nvar _ModalFooter2 = _interopRequireDefault(_ModalFooter);\n\nvar _ModalHeader = __webpack_require__(1138);\n\nvar _ModalHeader2 = _interopRequireDefault(_ModalHeader);\n\nvar _ModalTitle = __webpack_require__(1139);\n\nvar _ModalTitle2 = _interopRequireDefault(_ModalTitle);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar propTypes = _extends({}, _Modal2[\"default\"].propTypes, _ModalDialog2[\"default\"].propTypes, (_extends2 = {\n\n /**\n * 是否弹出遮罩层/遮罩层点击是否触发关闭\n */\n backdrop: _propTypes2[\"default\"].oneOf(['static', true, false]),\n\n /**\n * 点击遮罩层是否允许关闭\n */\n backdropClosable: _propTypes2[\"default\"].bool,\n /**\n * esc触发关闭\n */\n keyboard: _propTypes2[\"default\"].bool,\n\n /**\n * 显隐时是否使用动画\n */\n animation: _propTypes2[\"default\"].bool,\n\n /**\n * 传递给模态框的样式\n */\n dialogComponentClass: _tinperBeeCore.elementType,\n\n /**\n * 自动设置焦点\n */\n autoFocus: _propTypes2[\"default\"].bool,\n\n /**\n * 防止打开时焦点离开模态框\n */\n enforceFocus: _propTypes2[\"default\"].bool,\n\n /**\n * 是否打开模态框\n */\n show: _propTypes2[\"default\"].bool,\n\n /**\n * 关闭时的钩子函数\n */\n onHide: _propTypes2[\"default\"].func,\n\n onEnter: _propTypes2[\"default\"].func,\n\n onEntering: _propTypes2[\"default\"].func,\n\n onEntered: _propTypes2[\"default\"].func,\n\n onExit: _propTypes2[\"default\"].func,\n\n onExiting: _propTypes2[\"default\"].func,\n\n onExited: _propTypes2[\"default\"].func,\n\n containerClassName: _propTypes2[\"default\"].string\n}, _defineProperty(_extends2, 'containerClassName', _propTypes2[\"default\"].string), _defineProperty(_extends2, 'container', _Modal2[\"default\"].propTypes.container), _defineProperty(_extends2, 'size', _propTypes2[\"default\"].oneOf([\"sm\", \"lg\", \"xlg\", \"\"])), _defineProperty(_extends2, 'width', _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].number, _propTypes2[\"default\"].string])), _defineProperty(_extends2, 'draggable', _propTypes2[\"default\"].bool), _defineProperty(_extends2, 'resizable', _propTypes2[\"default\"].bool), _defineProperty(_extends2, 'resizeClassName', _propTypes2[\"default\"].string), _defineProperty(_extends2, 'onResizeStart', _propTypes2[\"default\"].func), _defineProperty(_extends2, 'onResize', _propTypes2[\"default\"].func), _defineProperty(_extends2, 'onResizeStop', _propTypes2[\"default\"].func), _defineProperty(_extends2, 'minWidth', _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].number, _propTypes2[\"default\"].string])), _defineProperty(_extends2, 'minHeight', _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].number, _propTypes2[\"default\"].string])), _defineProperty(_extends2, 'maxWidth', _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].number, _propTypes2[\"default\"].string])), _defineProperty(_extends2, 'maxHeight', _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].number, _propTypes2[\"default\"].string])), _defineProperty(_extends2, 'bounds', _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].string, _propTypes2[\"default\"].object])), _defineProperty(_extends2, 'className', _propTypes2[\"default\"].string), _defineProperty(_extends2, 'centered', _propTypes2[\"default\"].bool), _extends2));\n\nvar defaultProps = _extends({}, _Modal2[\"default\"].defaultProps, {\n backdropClosable: true,\n animation: true,\n dialogComponentClass: _ModalDialog2[\"default\"],\n draggable: false,\n resizable: false,\n clsPrefix: 'u-modal',\n className: ''\n});\n\nvar ModalFuncProps = {\n prefixCls: _propTypes2[\"default\"].string,\n className: _propTypes2[\"default\"].string,\n show: _propTypes2[\"default\"].bool,\n title: _react2[\"default\"].ReactNode,\n content: _react2[\"default\"].ReactNode,\n onOk: _propTypes2[\"default\"].func,\n onCancel: _propTypes2[\"default\"].func,\n width: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].number, _propTypes2[\"default\"].string]),\n okText: _propTypes2[\"default\"].string,\n okType: _propTypes2[\"default\"].string,\n cancelText: _propTypes2[\"default\"].string,\n icon: _react2[\"default\"].ReactNode,\n backdrop: _propTypes2[\"default\"].oneOf(['static', true, false])\n};\n\nvar ModalFunc = function ModalFunc(props) {\n destroy = function destroy() {};\n update = function update(newConfig) {};\n};\n\nvar destroyFns = exports.destroyFns = [];\n\nvar childContextTypes = {\n $u_modal: _propTypes2[\"default\"].shape({\n onHide: _propTypes2[\"default\"].func\n })\n};\n\nvar Modal = function (_React$Component) {\n _inherits(Modal, _React$Component);\n\n function Modal(props, context) {\n _classCallCheck(this, Modal);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context));\n\n _this.clearCenteredCls = function () {\n var centered = _this.state.centered;\n\n if (!centered) {\n return;\n }\n _this.offsetTop = _this.getOffsetTop();\n _this.setState({\n centered: false\n });\n };\n\n _this.state = {\n style: {},\n centered: props.centered,\n draging: false,\n draged: false\n };\n _this.offsetTop = 0;\n _this.handleEntering = _this.handleEntering.bind(_this);\n _this.handleExited = _this.handleExited.bind(_this);\n _this.handleWindowResize = _this.handleWindowResize.bind(_this);\n _this.handleDialogClick = _this.handleDialogClick.bind(_this);\n return _this;\n }\n\n Modal.prototype.getChildContext = function getChildContext() {\n return {\n $u_modal: {\n onHide: this.props.onHide\n }\n };\n };\n\n Modal.prototype.componentWillUnmount = function componentWillUnmount() {\n // Clean up the listener if we need to.\n this.handleExited();\n };\n\n Modal.prototype.handleEntering = function handleEntering() {\n // FIXME: This should work even when animation is disabled.\n _events2[\"default\"].on(window, 'resize', this.handleWindowResize);\n this.updateStyle();\n };\n\n Modal.prototype.handleExited = function handleExited() {\n this.setState({\n draging: false,\n draged: false\n });\n // FIXME: This should work even when animation is disabled.\n _events2[\"default\"].off(window, 'resize', this.handleWindowResize);\n };\n\n Modal.prototype.handleWindowResize = function handleWindowResize() {\n this.updateStyle();\n };\n\n Modal.prototype.handleDialogClick = function handleDialogClick(e) {\n if (e.target !== e.currentTarget) {\n return;\n }\n\n this.props.onHide();\n };\n\n Modal.prototype.updateStyle = function updateStyle() {\n if (!_inDOM2[\"default\"] || !this._modal) {\n return;\n }\n\n var dialogNode = this._modal.getDialogElement();\n var dialogHeight = dialogNode.scrollHeight;\n\n var document = (0, _ownerDocument2[\"default\"])(dialogNode);\n var bodyIsOverflowing = false;\n if (this.props.container) {\n bodyIsOverflowing = (0, _isOverflowing2[\"default\"])(_reactDom2[\"default\"].findDOMNode(this.props.container));\n }\n var modalIsOverflowing = dialogHeight > document.documentElement.clientHeight;\n\n this.setState({\n style: {\n paddingRight: bodyIsOverflowing && !modalIsOverflowing ? (0, _scrollbarSize2[\"default\"])() : undefined,\n paddingLeft: !bodyIsOverflowing && modalIsOverflowing ? (0, _scrollbarSize2[\"default\"])() : undefined\n }\n });\n };\n //ResizeStart 时,若模态框设置了 `centered` ,需要把居中属性移除,并通过 offsetTop 制造垂直居中的假象\n //fixbug: Resize 和 centered 一起使用时,拖拽交互不正确\n\n\n //计算 ModalDialog 的 offsetTop\n Modal.prototype.getOffsetTop = function getOffsetTop() {\n var modalDialog = document.getElementsByClassName(\"u-modal-dialog\") && document.getElementsByClassName(\"u-modal-dialog\")[0];\n var topPos = modalDialog && modalDialog.offsetTop;\n return topPos;\n };\n\n Modal.prototype.render = function render() {\n var _this2 = this;\n\n var _props = this.props,\n backdrop = _props.backdrop,\n backdropClosable = _props.backdropClosable,\n animation = _props.animation,\n show = _props.show,\n Dialog = _props.dialogComponentClass,\n className = _props.className,\n clsPrefix = _props.clsPrefix,\n _props$style = _props.style,\n style = _props$style === undefined ? {} : _props$style,\n size = _props.size,\n width = _props.width,\n children = _props.children,\n onEntering = _props.onEntering,\n onExited = _props.onExited,\n backdropClassName = _props.backdropClassName,\n containerClassName = _props.containerClassName,\n draggable = _props.draggable,\n resizeClassName = _props.resizeClassName,\n bounds = _props.bounds,\n container = _props.container,\n onStart = _props.onStart,\n onStop = _props.onStop,\n props = _objectWithoutProperties(_props, ['backdrop', 'backdropClosable', 'animation', 'show', 'dialogComponentClass', 'className', 'clsPrefix', 'style', 'size', 'width', 'children', 'onEntering', 'onExited', 'backdropClassName', 'containerClassName', 'draggable', 'resizeClassName', 'bounds', 'container', 'onStart', 'onStop']);\n\n var _state = this.state,\n centered = _state.centered,\n draging = _state.draging,\n draged = _state.draged;\n\n var dialogMarginTop = 30;\n //ResizeStart 时,计算 ModalDialog 的 offsetTop\n var topPosStyle = this.offsetTop > 0 ? { top: this.offsetTop - dialogMarginTop } : null;\n\n var _splitComponent = (0, _tinperBeeCore.splitComponent)(props, _Modal2[\"default\"]),\n _splitComponent2 = _slicedToArray(_splitComponent, 2),\n baseModalProps = _splitComponent2[0],\n dialogProps = _splitComponent2[1];\n\n var inClassName = show && !animation && 'in';\n\n var backdropClasses = _defineProperty({}, clsPrefix + '-backdrop', true);\n var containerClasses = _defineProperty({}, clsPrefix + '-open', true);\n if (!!centered) {\n className += ' ' + clsPrefix + '-centered';\n }\n if (draging) {\n className += ' draging';\n }\n if (draged) {\n className += ' draged';\n }\n if (Number(width)) width += 'px';\n\n var styleRes = _extends({}, this.state.style, style, topPosStyle);\n if (width) {\n _extends(styleRes, { width: width });\n }\n return _react2[\"default\"].createElement(\n _Modal2[\"default\"],\n _extends({}, baseModalProps, {\n ref: function ref(c) {\n _this2._modal = c;\n },\n show: show,\n onEntering: (0, _tinperBeeCore.createChainedFunction)(onEntering, this.handleEntering),\n onExited: (0, _tinperBeeCore.createChainedFunction)(onExited, this.handleExited),\n backdrop: backdrop,\n backdropClassName: (0, _classnames2[\"default\"])(backdropClasses, inClassName, backdropClassName),\n containerClassName: (0, _classnames2[\"default\"])(containerClasses, containerClassName),\n transition: animation ? _beeTransition.Fade : undefined,\n dialogTransitionTimeout: Modal.TRANSITION_DURATION,\n backdropTransitionTimeout: Modal.BACKDROP_TRANSITION_DURATION,\n container: container\n }),\n _react2[\"default\"].createElement(\n Dialog,\n _extends({}, dialogProps, {\n style: styleRes,\n className: (0, _classnames2[\"default\"])(className, inClassName, backdropClassName),\n onClick: backdrop === true && !!backdropClosable ? this.handleDialogClick : null,\n size: size,\n draggable: draggable,\n bounds: bounds,\n resizeClassName: resizeClassName,\n clearCenteredCls: this.clearCenteredCls,\n onStart: function onStart() {\n _this2.setState({\n draging: true,\n draged: false\n });\n },\n onStop: function onStop() {\n _this2.setState({\n draging: false,\n draged: true\n });\n }\n }),\n children\n )\n );\n };\n\n return Modal;\n}(_react2[\"default\"].Component);\n\nModal.info = ModalFunc;\nModal.success = ModalFunc;\nModal.error = ModalFunc;\nModal.warn = ModalFunc;\nModal.warning = ModalFunc;\nModal.confirm = ModalFunc;\n\nModal.destroyAll = function () {\n return;\n};\n\nModal.propTypes = propTypes;\nModal.defaultProps = defaultProps;\nModal.childContextTypes = childContextTypes;\n\nModal.Body = _ModalBody2[\"default\"];\nModal.Header = _ModalHeader2[\"default\"];\nModal.Title = _ModalTitle2[\"default\"];\nModal.Footer = _ModalFooter2[\"default\"];\n\nModal.Dialog = _ModalDialog2[\"default\"];\n\nModal.TRANSITION_DURATION = 200000;\nModal.BACKDROP_TRANSITION_DURATION = 10000;\n\nexports[\"default\"] = Modal;\n\n/***/ }),\n/* 163 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.listen = exports.filter = exports.off = exports.on = undefined;\n\nvar _on = __webpack_require__(17);\n\nvar _on2 = _interopRequireDefault(_on);\n\nvar _off = __webpack_require__(49);\n\nvar _off2 = _interopRequireDefault(_off);\n\nvar _filter = __webpack_require__(1045);\n\nvar _filter2 = _interopRequireDefault(_filter);\n\nvar _listen = __webpack_require__(1047);\n\nvar _listen2 = _interopRequireDefault(_listen);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.on = _on2.default;\nexports.off = _off2.default;\nexports.filter = _filter2.default;\nexports.listen = _listen2.default;\nexports.default = { on: _on2.default, off: _off2.default, filter: _filter2.default, listen: _listen2.default };\n\n/***/ }),\n/* 164 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; /*eslint-disable react/prop-types */\n\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _warning = __webpack_require__(6);\n\nvar _warning2 = _interopRequireDefault(_warning);\n\nvar _tinperBeeCore = __webpack_require__(300);\n\nvar _Portal = __webpack_require__(1061);\n\nvar _Portal2 = _interopRequireDefault(_Portal);\n\nvar _ModalManager = __webpack_require__(1062);\n\nvar _ModalManager2 = _interopRequireDefault(_ModalManager);\n\nvar _ownerDocument = __webpack_require__(302);\n\nvar _ownerDocument2 = _interopRequireDefault(_ownerDocument);\n\nvar _addEventListener = __webpack_require__(1067);\n\nvar _addEventListener2 = _interopRequireDefault(_addEventListener);\n\nvar _addFocusListener = __webpack_require__(1068);\n\nvar _addFocusListener2 = _interopRequireDefault(_addFocusListener);\n\nvar _inDOM = __webpack_require__(25);\n\nvar _inDOM2 = _interopRequireDefault(_inDOM);\n\nvar _activeElement = __webpack_require__(1069);\n\nvar _activeElement2 = _interopRequireDefault(_activeElement);\n\nvar _contains = __webpack_require__(26);\n\nvar _contains2 = _interopRequireDefault(_contains);\n\nvar _getContainer = __webpack_require__(303);\n\nvar _getContainer2 = _interopRequireDefault(_getContainer);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar modalManager = new _ModalManager2[\"default\"]();\n\n/**\n * 模态框\n */\n\nvar propTypes = _extends({}, _Portal2[\"default\"].propTypes, {\n\n /**\n * 是否显示\n */\n show: _propTypes2[\"default\"].bool,\n\n /**\n * 容器\n */\n container: _propTypes2[\"default\"].oneOfType([_tinperBeeCore.componentOrElement, _propTypes2[\"default\"].func]),\n\n /**\n * 当模态框打开时的钩子函数\n */\n onShow: _propTypes2[\"default\"].func,\n\n /**\n * 当show参数为false时触发的模态框关闭时的钩子函数\n */\n onHide: _propTypes2[\"default\"].func,\n\n /**\n * 是否包含背景\n */\n backdrop: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].bool, _propTypes2[\"default\"].oneOf(['static'])]),\n\n /**\n *返回背景组件的函数\n */\n renderBackdrop: _propTypes2[\"default\"].func,\n\n /**\n * 设置esc键特殊钩子函数\n */\n onEscapeKeyUp: _propTypes2[\"default\"].func,\n\n /**\n * 当点击背景时触发的函数\n */\n onBackdropClick: _propTypes2[\"default\"].func,\n\n /**\n * 背景的style\n */\n backdropStyle: _propTypes2[\"default\"].object,\n\n /**\n * 背景的class\n */\n backdropClassName: _propTypes2[\"default\"].string,\n\n /**\n *容器的class\n */\n containerClassName: _propTypes2[\"default\"].string,\n\n /**\n * 按esc键是否关闭模态框\n */\n keyboard: _propTypes2[\"default\"].bool,\n\n /**\n * 动画组件\n */\n transition: _tinperBeeCore.elementType,\n\n /**\n * 设置动画超时时间\n */\n dialogTransitionTimeout: _propTypes2[\"default\"].number,\n\n /**\n * 设置背景动画超时时间\n */\n backdropTransitionTimeout: _propTypes2[\"default\"].number,\n\n /**\n * 是否自动设置焦点\n */\n autoFocus: _propTypes2[\"default\"].bool,\n\n /**\n * 防止焦点离开模态框\n */\n enforceFocus: _propTypes2[\"default\"].bool,\n\n /**\n * 模态框进入时的钩子函数\n */\n onEnter: _propTypes2[\"default\"].func,\n\n /**\n * 模态框开始进入时的钩子函数\n */\n onEntering: _propTypes2[\"default\"].func,\n\n /**\n * 模态框进入后的钩子函数\n */\n onEntered: _propTypes2[\"default\"].func,\n\n /**\n * 模态框退出时的钩子函数\n */\n onExit: _propTypes2[\"default\"].func,\n\n /**\n * 模态框开始退出时的钩子函数\n */\n onExiting: _propTypes2[\"default\"].func,\n\n /**\n * 模态框推出后的钩子函数\n */\n onExited: _propTypes2[\"default\"].func,\n\n /**\n *管理model状态的实例\n */\n manager: _propTypes2[\"default\"].object.isRequired\n});\n\nvar defaultProps = {\n show: false,\n backdrop: true,\n keyboard: true,\n autoFocus: true,\n enforceFocus: true,\n onHide: function onHide() {},\n manager: modalManager,\n renderBackdrop: function renderBackdrop(props) {\n return _react2[\"default\"].createElement('div', props);\n }\n};\n\nvar BaseModal = function (_Component) {\n _inherits(BaseModal, _Component);\n\n function BaseModal(props, content) {\n _classCallCheck(this, BaseModal);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props));\n\n _this.state = {\n exited: !_this.props.show\n };\n\n _this.onShow = _this.onShow.bind(_this);\n _this.onHide = _this.onHide.bind(_this);\n _this.setMountNode = _this.setMountNode.bind(_this);\n _this.handleHidden = _this.handleHidden.bind(_this);\n _this.handleBackdropClick = _this.handleBackdropClick.bind(_this);\n _this.handleDocumentKeyUp = _this.handleDocumentKeyUp.bind(_this);\n _this.checkForFocus = _this.checkForFocus.bind(_this);\n _this.focus = _this.focus.bind(_this);\n _this.restoreLastFocus = _this.restoreLastFocus.bind(_this);\n _this.enforceFocus = _this.enforceFocus.bind(_this);\n _this.getDialogElement = _this.getDialogElement.bind(_this);\n _this.isTopModal = _this.isTopModal.bind(_this);\n _this.renderBackdrop = _this.renderBackdrop.bind(_this);\n return _this;\n }\n\n BaseModal.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n if (nextProps.show) {\n this.setState({ exited: false });\n } else if (!nextProps.transition) {\n // Otherwise let handleHidden take care of marking exited.\n this.setState({ exited: true });\n }\n };\n\n BaseModal.prototype.componentWillUpdate = function componentWillUpdate(nextProps) {\n if (!this.props.show && nextProps.show) {\n this.checkForFocus();\n }\n };\n\n BaseModal.prototype.componentDidMount = function componentDidMount() {\n if (this.props.show) {\n this.onShow();\n }\n this.mounted = true;\n };\n\n BaseModal.prototype.componentDidUpdate = function componentDidUpdate(prevProps) {\n var transition = this.props.transition;\n\n\n if (prevProps.show && !this.props.show && !transition) {\n // Otherwise handleHidden will call this.\n this.onHide();\n } else if (!prevProps.show && this.props.show) {\n this.onShow();\n }\n };\n\n BaseModal.prototype.componentWillUnmount = function componentWillUnmount() {\n var _props = this.props,\n show = _props.show,\n transition = _props.transition;\n\n\n if (show || transition && !this.state.exited) {\n this.onHide();\n }\n\n this.mounted = false;\n };\n\n BaseModal.prototype.onShow = function onShow() {\n var doc = (0, _ownerDocument2[\"default\"])(this);\n var container = (0, _getContainer2[\"default\"])(this.props.container, doc.body);\n\n this.props.manager.add(this, container, this.props.containerClassName);\n\n this._onDocumentKeyupListener = (0, _addEventListener2[\"default\"])(doc, 'keyup', this.handleDocumentKeyUp);\n\n this._onFocusinListener = (0, _addFocusListener2[\"default\"])(this.enforceFocus);\n\n this.focus();\n\n if (this.props.onShow) {\n this.props.onShow();\n }\n };\n\n BaseModal.prototype.onHide = function onHide() {\n this.props.manager.remove(this);\n\n this._onDocumentKeyupListener.remove();\n\n this._onFocusinListener.remove();\n\n this.restoreLastFocus();\n };\n\n BaseModal.prototype.setMountNode = function setMountNode(ref) {\n this.mountNode = ref ? ref.getMountNode() : ref;\n };\n\n BaseModal.prototype.handleHidden = function handleHidden() {\n this.setState({ exited: true });\n this.onHide();\n\n if (this.props.onExited) {\n var _props2;\n\n (_props2 = this.props).onExited.apply(_props2, arguments);\n }\n };\n\n BaseModal.prototype.handleBackdropClick = function handleBackdropClick(e) {\n if (e.target !== e.currentTarget) {\n return;\n }\n\n if (this.props.onBackdropClick) {\n this.props.onBackdropClick(e);\n }\n\n if (this.props.backdrop === true) {\n this.props.onHide();\n }\n };\n\n BaseModal.prototype.handleDocumentKeyUp = function handleDocumentKeyUp(e) {\n if (this.props.keyboard && e.keyCode === 27 && this.isTopModal()) {\n if (this.props.onEscapeKeyUp) {\n this.props.onEscapeKeyUp(e);\n }\n this.props.onHide();\n }\n };\n\n BaseModal.prototype.checkForFocus = function checkForFocus() {\n if (_inDOM2[\"default\"]) {\n this.lastFocus = (0, _activeElement2[\"default\"])();\n }\n };\n\n BaseModal.prototype.focus = function focus() {\n var autoFocus = this.props.autoFocus;\n var modalContent = this.getDialogElement();\n var current = (0, _activeElement2[\"default\"])((0, _ownerDocument2[\"default\"])(this));\n var focusInModal = current && (0, _contains2[\"default\"])(modalContent, current);\n\n if (modalContent && autoFocus && !focusInModal) {\n this.lastFocus = current;\n\n if (!modalContent.hasAttribute('tabIndex')) {\n modalContent.setAttribute('tabIndex', -1);\n (0, _warning2[\"default\"])(false, 'The modal content node does not accept focus. ' + 'For the benefit of assistive technologies, the tabIndex of the node is being set to \"-1\".');\n }\n\n modalContent.focus();\n }\n };\n\n BaseModal.prototype.restoreLastFocus = function restoreLastFocus() {\n // Support: <=IE11 doesn't support `focus()` on svg elements (RB: #917)\n if (this.lastFocus && this.lastFocus.focus) {\n this.lastFocus.focus();\n this.lastFocus = null;\n }\n };\n\n BaseModal.prototype.enforceFocus = function enforceFocus() {\n var enforceFocus = this.props.enforceFocus;\n\n\n if (!enforceFocus || !this.mounted || !this.isTopModal()) {\n return;\n }\n\n var active = (0, _activeElement2[\"default\"])((0, _ownerDocument2[\"default\"])(this));\n var modal = this.getDialogElement();\n\n if (modal && modal !== active && !(0, _contains2[\"default\"])(modal, active)) {\n modal.focus();\n }\n };\n\n //instead of a ref, which might conflict with one the parent applied.\n\n\n BaseModal.prototype.getDialogElement = function getDialogElement() {\n var node = this.refs.modal;\n return node && node.lastChild;\n };\n\n BaseModal.prototype.isTopModal = function isTopModal() {\n return this.props.manager.isTopModal(this);\n };\n\n BaseModal.prototype.renderBackdrop = function renderBackdrop() {\n var _this2 = this;\n\n var _props3 = this.props,\n backdropStyle = _props3.backdropStyle,\n backdropClassName = _props3.backdropClassName,\n renderBackdrop = _props3.renderBackdrop,\n Transition = _props3.transition,\n backdropTransitionTimeout = _props3.backdropTransitionTimeout;\n\n\n var backdropRef = function backdropRef(ref) {\n return _this2.backdrop = ref;\n };\n\n var backdrop = _react2[\"default\"].createElement('div', {\n ref: backdropRef,\n style: this.props.backdropStyle,\n className: this.props.backdropClassName,\n onClick: this.handleBackdropClick\n });\n\n if (Transition) {\n backdrop = _react2[\"default\"].createElement(\n Transition,\n { transitionAppear: true,\n 'in': this.props.show,\n timeout: backdropTransitionTimeout\n },\n renderBackdrop({\n ref: backdropRef,\n style: backdropStyle,\n className: backdropClassName,\n onClick: this.handleBackdropClick\n })\n );\n }\n\n return backdrop;\n };\n\n BaseModal.prototype.render = function render() {\n var _props4 = this.props,\n show = _props4.show,\n container = _props4.container,\n children = _props4.children,\n Transition = _props4.transition,\n backdrop = _props4.backdrop,\n dialogTransitionTimeout = _props4.dialogTransitionTimeout,\n className = _props4.className,\n style = _props4.style,\n onExit = _props4.onExit,\n onExiting = _props4.onExiting,\n onEnter = _props4.onEnter,\n onEntering = _props4.onEntering,\n onEntered = _props4.onEntered;\n\n\n var dialog = _react2[\"default\"].Children.only(children);\n\n var mountModal = show || Transition && !this.state.exited;\n if (!mountModal) {\n return null;\n }\n\n var _dialog$props = dialog.props,\n role = _dialog$props.role,\n tabIndex = _dialog$props.tabIndex;\n\n\n if (role === undefined || tabIndex === undefined) {\n dialog = (0, _react.cloneElement)(dialog, {\n role: role === undefined ? 'document' : role,\n tabIndex: tabIndex == null ? '-1' : tabIndex\n });\n }\n\n if (Transition) {\n dialog = _react2[\"default\"].createElement(\n Transition,\n {\n transitionAppear: true,\n unmountOnExit: true,\n 'in': show,\n timeout: dialogTransitionTimeout,\n onExit: onExit,\n onExiting: onExiting,\n onExited: this.handleHidden,\n onEnter: onEnter,\n onEntering: onEntering,\n onEntered: onEntered\n },\n dialog\n );\n }\n\n return _react2[\"default\"].createElement(\n _Portal2[\"default\"],\n {\n ref: this.setMountNode,\n container: container\n },\n _react2[\"default\"].createElement(\n 'div',\n {\n ref: 'modal',\n role: role || 'dialog',\n style: style,\n className: className\n },\n backdrop && this.renderBackdrop(),\n dialog\n )\n );\n };\n\n return BaseModal;\n}(_react.Component);\n\n;\n\nBaseModal.Manager = _ModalManager2[\"default\"];\n\nBaseModal.propTypes = propTypes;\nBaseModal.defaultProps = defaultProps;\n\nexports[\"default\"] = BaseModal;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 165 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = createChainableTypeChecker;\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n// Mostly taken from ReactPropTypes.\n\n/* This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\n\nfunction createChainableTypeChecker(validate) {\n function checkType(isRequired, props, propName, componentName, location, propFullName) {\n var componentNameSafe = componentName || '<>';\n var propFullNameSafe = propFullName || propName;\n\n if (props[propName] == null) {\n if (isRequired) {\n return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));\n }\n\n return null;\n }\n\n for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {\n args[_key - 6] = arguments[_key];\n }\n\n return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n}\n\n/***/ }),\n/* 166 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = createChainableTypeChecker;\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n// Mostly taken from ReactPropTypes.\n\n/* This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\n\nfunction createChainableTypeChecker(validate) {\n function checkType(isRequired, props, propName, componentName, location, propFullName) {\n var componentNameSafe = componentName || '<>';\n var propFullNameSafe = propFullName || propName;\n\n if (props[propName] == null) {\n if (isRequired) {\n return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));\n }\n\n return null;\n }\n\n for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {\n args[_key - 6] = arguments[_key];\n }\n\n return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n}\n\n/***/ }),\n/* 167 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = undefined;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _properties = __webpack_require__(27);\n\nvar _properties2 = _interopRequireDefault(_properties);\n\nvar _on = __webpack_require__(17);\n\nvar _on2 = _interopRequireDefault(_on);\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar transitionEndEvent = _properties2[\"default\"].end;\n\n//设置状态码\nvar UNMOUNTED = exports.UNMOUNTED = 0;\nvar EXITED = exports.EXITED = 1;\nvar ENTERING = exports.ENTERING = 2;\nvar ENTERED = exports.ENTERED = 3;\nvar EXITING = exports.EXITING = 4;\n\nvar propTypes = {\n /**\n * 是否触发动画\n */\n \"in\": _propTypes2[\"default\"].bool,\n\n /**\n * 不显示的时候是否移除组件\n */\n unmountOnExit: _propTypes2[\"default\"].bool,\n\n /**\n * 如果设置为默认显示,挂载时显示动画\n */\n transitionAppear: _propTypes2[\"default\"].bool,\n\n /**\n * 设置超时时间,防止出现问题,可设置为>=动画时间\n */\n timeout: _propTypes2[\"default\"].number,\n\n /**\n * 退出组件时添加的class\n */\n exitedClassName: _propTypes2[\"default\"].string,\n /**\n * 退出组件中添加的class\n */\n exitingClassName: _propTypes2[\"default\"].string,\n /**\n * 进入动画后添加的class\n */\n enteredClassName: _propTypes2[\"default\"].string,\n /**\n * 进入动画时添加的class\n */\n enteringClassName: _propTypes2[\"default\"].string,\n\n /**\n * 进入动画开始时的钩子函数\n */\n onEnter: _propTypes2[\"default\"].func,\n /**\n * 进入动画中的钩子函数\n */\n onEntering: _propTypes2[\"default\"].func,\n /**\n * 进入动画后的钩子函数\n */\n onEntered: _propTypes2[\"default\"].func,\n /**\n * 退出动画开始时的钩子函数\n */\n onExit: _propTypes2[\"default\"].func,\n /**\n * 退出动画中的钩子函数\n */\n onExiting: _propTypes2[\"default\"].func,\n /**\n * 退出动画后的钩子函数\n */\n onExited: _propTypes2[\"default\"].func\n};\n\nfunction noop() {}\n\nvar defaultProps = {\n \"in\": false,\n unmountOnExit: false,\n transitionAppear: false,\n timeout: 5000,\n onEnter: noop,\n onEntering: noop,\n onEntered: noop,\n onExit: noop,\n onExiting: noop,\n onExited: noop\n};\n\n/**\n * 动画组件\n */\n\nvar Transition = function (_Component) {\n _inherits(Transition, _Component);\n\n function Transition(props, context) {\n _classCallCheck(this, Transition);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));\n\n var initialStatus = void 0;\n if (props[\"in\"]) {\n // 在componentdidmount时开始执行动画\n initialStatus = props.transitionAppear ? EXITED : ENTERED;\n } else {\n initialStatus = props.unmountOnExit ? UNMOUNTED : EXITED;\n }\n _this.state = { status: initialStatus };\n\n _this.nextCallback = null;\n return _this;\n }\n\n Transition.prototype.componentDidMount = function componentDidMount() {\n if (this.props.transitionAppear && this.props[\"in\"]) {\n this.performEnter(this.props);\n }\n };\n\n Transition.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n if (nextProps[\"in\"] && this.props.unmountOnExit) {\n if (this.state.status === UNMOUNTED) {\n // 在componentDidUpdate执行动画.\n this.setState({ status: EXITED });\n }\n } else {\n this._needsUpdate = true;\n }\n };\n\n Transition.prototype.componentDidUpdate = function componentDidUpdate() {\n var status = this.state.status;\n\n if (this.props.unmountOnExit && status === EXITED) {\n // 当使用unmountOnExit时,exited为exiting和unmont的过渡状态\n if (this.props[\"in\"]) {\n this.performEnter(this.props);\n } else {\n this.setState({ status: UNMOUNTED });\n }\n\n return;\n }\n\n // 确保只响应prop变化\n if (this._needsUpdate) {\n this._needsUpdate = false;\n\n if (this.props[\"in\"]) {\n if (status === EXITING) {\n this.performEnter(this.props);\n } else if (status === EXITED) {\n this.performEnter(this.props);\n }\n // 其他,当我们已经输入或输出\n } else {\n if (status === ENTERING || status === ENTERED) {\n this.performExit(this.props);\n }\n // 我们已经输入或输出完成\n }\n }\n };\n\n Transition.prototype.componentWillUnmount = function componentWillUnmount() {\n this.cancelNextCallback();\n };\n\n Transition.prototype.performEnter = function performEnter(props) {\n var _this2 = this;\n\n this.cancelNextCallback();\n var node = _reactDom2[\"default\"].findDOMNode(this);\n\n // 这里接收新props\n props.onEnter(node);\n\n this.safeSetState({ status: ENTERING }, function () {\n _this2.props.onEntering(node);\n\n _this2.onTransitionEnd(node, function () {\n _this2.safeSetState({ status: ENTERED }, function () {\n _this2.props.onEntered(node);\n });\n });\n });\n };\n\n Transition.prototype.performExit = function performExit(props) {\n var _this3 = this;\n\n this.cancelNextCallback();\n var node = _reactDom2[\"default\"].findDOMNode(this);\n\n props.onExit(node);\n\n this.safeSetState({ status: EXITING }, function () {\n _this3.props.onExiting(node);\n\n _this3.onTransitionEnd(node, function () {\n _this3.safeSetState({ status: EXITED }, function () {\n _this3.props.onExited(node);\n });\n });\n });\n };\n\n Transition.prototype.cancelNextCallback = function cancelNextCallback() {\n if (this.nextCallback !== null) {\n this.nextCallback.cancel();\n this.nextCallback = null;\n }\n };\n\n Transition.prototype.safeSetState = function safeSetState(nextState, callback) {\n // 确保在组件销毁后挂起的setState被消除\n this.setState(nextState, this.setNextCallback(callback));\n };\n\n Transition.prototype.setNextCallback = function setNextCallback(callback) {\n var _this4 = this;\n\n var active = true;\n\n this.nextCallback = function (event) {\n if (active) {\n active = false;\n _this4.nextCallback = null;\n\n callback(event);\n }\n };\n\n this.nextCallback.cancel = function () {\n active = false;\n };\n\n return this.nextCallback;\n };\n\n Transition.prototype.onTransitionEnd = function onTransitionEnd(node, handler) {\n this.setNextCallback(handler);\n\n if (node) {\n if (transitionEndEvent == undefined) {\n this.nextCallback();\n } else {\n (0, _on2[\"default\"])(node, transitionEndEvent, this.nextCallback);\n }\n setTimeout(this.nextCallback, this.props.timeout);\n } else {\n setTimeout(this.nextCallback, 0);\n }\n };\n\n Transition.prototype.render = function render() {\n var status = this.state.status;\n if (status === UNMOUNTED) {\n return null;\n }\n\n var _props = this.props,\n children = _props.children,\n className = _props.className,\n childProps = _objectWithoutProperties(_props, ['children', 'className']);\n\n Object.keys(Transition.propTypes).forEach(function (key) {\n return delete childProps[key];\n });\n\n var transitionClassName = void 0;\n if (status === EXITED) {\n transitionClassName = this.props.exitedClassName;\n } else if (status === ENTERING) {\n transitionClassName = this.props.enteringClassName;\n } else if (status === ENTERED) {\n transitionClassName = this.props.enteredClassName;\n } else if (status === EXITING) {\n transitionClassName = this.props.exitingClassName;\n }\n\n var child = _react2[\"default\"].Children.only(children);\n return _react2[\"default\"].cloneElement(child, _extends({}, childProps, {\n className: (0, _classnames2[\"default\"])(child.props.className, className, transitionClassName)\n }));\n };\n\n return Transition;\n}(_react.Component);\n\nTransition.propTypes = propTypes;\n\nTransition.defaultProps = defaultProps;\n\nexports[\"default\"] = Transition;\n\n/***/ }),\n/* 168 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (immutable) */ __webpack_exports__[\"a\"] = warning;\n/**\n * Prints a warning in the console if it exists.\n *\n * @param {String} message The warning message.\n * @returns {void}\n */\nfunction warning(message) {\n /* eslint-disable no-console */\n if (typeof console !== 'undefined' && typeof console.error === 'function') {\n console.error(message);\n }\n /* eslint-enable no-console */\n\n\n try {\n // This error was thrown as a convenience so that if you enable\n // \"break on all exceptions\" in your console,\n // it would pause the execution at this line.\n throw new Error(message);\n /* eslint-disable no-empty */\n } catch (e) {}\n /* eslint-enable no-empty */\n\n}\n\n/***/ }),\n/* 169 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (immutable) */ __webpack_exports__[\"a\"] = _extends;\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\n/***/ }),\n/* 170 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (immutable) */ __webpack_exports__[\"a\"] = _objectWithoutPropertiesLoose;\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\n/***/ }),\n/* 171 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n// currently used to initiate the velocity style object to 0\n\n\nexports.__esModule = true;\nexports['default'] = mapToZero;\n\nfunction mapToZero(obj) {\n var ret = {};\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n ret[key] = 0;\n }\n }\n return ret;\n}\n\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 172 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n// stepper is used a lot. Saves allocation to return the same array wrapper.\n// This is fine and danger-free against mutations because the callsite\n// immediately destructures it and gets the numbers inside without passing the\n\n\nexports.__esModule = true;\nexports[\"default\"] = stepper;\n\nvar reusedTuple = [0, 0];\n\nfunction stepper(secondPerFrame, x, v, destX, k, b, precision) {\n // Spring stiffness, in kg / s^2\n\n // for animations, destX is really spring length (spring at rest). initial\n // position is considered as the stretched/compressed position of a spring\n var Fspring = -k * (x - destX);\n\n // Damping, in kg / s\n var Fdamper = -b * v;\n\n // usually we put mass here, but for animation purposes, specifying mass is a\n // bit redundant. you could simply adjust k and b accordingly\n // let a = (Fspring + Fdamper) / mass;\n var a = Fspring + Fdamper;\n\n var newV = v + a * secondPerFrame;\n var newX = x + newV * secondPerFrame;\n\n if (Math.abs(newV) < precision && Math.abs(newX - destX) < precision) {\n reusedTuple[0] = destX;\n reusedTuple[1] = 0;\n return reusedTuple;\n }\n\n reusedTuple[0] = newX;\n reusedTuple[1] = newV;\n return reusedTuple;\n}\n\nmodule.exports = exports[\"default\"];\n// array reference around.\n\n/***/ }),\n/* 173 */\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(process) {// Generated by CoffeeScript 1.7.1\n(function() {\n var getNanoSeconds, hrtime, loadTime;\n\n if ((typeof performance !== \"undefined\" && performance !== null) && performance.now) {\n module.exports = function() {\n return performance.now();\n };\n } else if ((typeof process !== \"undefined\" && process !== null) && process.hrtime) {\n module.exports = function() {\n return (getNanoSeconds() - loadTime) / 1e6;\n };\n hrtime = process.hrtime;\n getNanoSeconds = function() {\n var hr;\n hr = hrtime();\n return hr[0] * 1e9 + hr[1];\n };\n loadTime = getNanoSeconds();\n } else if (Date.now) {\n module.exports = function() {\n return Date.now() - loadTime;\n };\n loadTime = Date.now();\n } else {\n module.exports = function() {\n return new Date().getTime() - loadTime;\n };\n loadTime = new Date().getTime();\n }\n\n}).call(this);\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5)))\n\n/***/ }),\n/* 174 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n// usage assumption: currentStyle values have already been rendered but it says\n// nothing of whether currentStyle is stale (see unreadPropStyle)\n\n\nexports.__esModule = true;\nexports['default'] = shouldStopAnimation;\n\nfunction shouldStopAnimation(currentStyle, style, currentVelocity) {\n for (var key in style) {\n if (!Object.prototype.hasOwnProperty.call(style, key)) {\n continue;\n }\n\n if (currentVelocity[key] !== 0) {\n return false;\n }\n\n var styleValue = typeof style[key] === 'number' ? style[key] : style[key].val;\n // stepper will have already taken care of rounding precision errors, so\n // won't have such thing as 0.9999 !=== 1\n if (currentStyle[key] !== styleValue) {\n return false;\n }\n }\n\n return true;\n}\n\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 175 */\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = __webpack_require__(316).default;\nmodule.exports.utils = __webpack_require__(75);\nmodule.exports.Responsive = __webpack_require__(1135).default;\nmodule.exports.Responsive.utils = __webpack_require__(320);\nmodule.exports.WidthProvider = __webpack_require__(1136).default;\n\n\n/***/ }),\n/* 176 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.matchesSelector = matchesSelector;\nexports.matchesSelectorAndParentsTo = matchesSelectorAndParentsTo;\nexports.addEvent = addEvent;\nexports.removeEvent = removeEvent;\nexports.outerHeight = outerHeight;\nexports.outerWidth = outerWidth;\nexports.innerHeight = innerHeight;\nexports.innerWidth = innerWidth;\nexports.offsetXYFromParent = offsetXYFromParent;\nexports.createCSSTransform = createCSSTransform;\nexports.createSVGTransform = createSVGTransform;\nexports.getTranslation = getTranslation;\nexports.getTouch = getTouch;\nexports.getTouchIdentifier = getTouchIdentifier;\nexports.addUserSelectStyles = addUserSelectStyles;\nexports.removeUserSelectStyles = removeUserSelectStyles;\nexports.addClassName = addClassName;\nexports.removeClassName = removeClassName;\n\nvar _shims = __webpack_require__(108);\n\nvar _getPrefix = _interopRequireWildcard(__webpack_require__(1131));\n\nfunction _getRequireWildcardCache() { if (typeof WeakMap !== \"function\") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== \"object\" && typeof obj !== \"function\") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar matchesSelectorFunc = '';\n\nfunction matchesSelector(el\n/*: Node*/\n, selector\n/*: string*/\n)\n/*: boolean*/\n{\n if (!matchesSelectorFunc) {\n matchesSelectorFunc = (0, _shims.findInArray)(['matches', 'webkitMatchesSelector', 'mozMatchesSelector', 'msMatchesSelector', 'oMatchesSelector'], function (method) {\n // $FlowIgnore: Doesn't think elements are indexable\n return (0, _shims.isFunction)(el[method]);\n });\n } // Might not be found entirely (not an Element?) - in that case, bail\n // $FlowIgnore: Doesn't think elements are indexable\n\n\n if (!(0, _shims.isFunction)(el[matchesSelectorFunc])) return false; // $FlowIgnore: Doesn't think elements are indexable\n\n return el[matchesSelectorFunc](selector);\n} // Works up the tree to the draggable itself attempting to match selector.\n\n\nfunction matchesSelectorAndParentsTo(el\n/*: Node*/\n, selector\n/*: string*/\n, baseNode\n/*: Node*/\n)\n/*: boolean*/\n{\n var node = el;\n\n do {\n if (matchesSelector(node, selector)) return true;\n if (node === baseNode) return false;\n node = node.parentNode;\n } while (node);\n\n return false;\n}\n\nfunction addEvent(el\n/*: ?Node*/\n, event\n/*: string*/\n, handler\n/*: Function*/\n, inputOptions\n/*: Object*/\n)\n/*: void*/\n{\n if (!el) return;\n\n var options = _objectSpread({\n capture: true\n }, inputOptions);\n\n if (el.addEventListener) {\n el.addEventListener(event, handler, options);\n } else if (el.attachEvent) {\n el.attachEvent('on' + event, handler);\n } else {\n // $FlowIgnore: Doesn't think elements are indexable\n el['on' + event] = handler;\n }\n}\n\nfunction removeEvent(el\n/*: ?Node*/\n, event\n/*: string*/\n, handler\n/*: Function*/\n, inputOptions\n/*: Object*/\n)\n/*: void*/\n{\n if (!el) return;\n\n var options = _objectSpread({\n capture: true\n }, inputOptions);\n\n if (el.removeEventListener) {\n el.removeEventListener(event, handler, options);\n } else if (el.detachEvent) {\n el.detachEvent('on' + event, handler);\n } else {\n // $FlowIgnore: Doesn't think elements are indexable\n el['on' + event] = null;\n }\n}\n\nfunction outerHeight(node\n/*: HTMLElement*/\n)\n/*: number*/\n{\n // This is deliberately excluding margin for our calculations, since we are using\n // offsetTop which is including margin. See getBoundPosition\n var height = node.clientHeight;\n var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);\n height += (0, _shims.int)(computedStyle.borderTopWidth);\n height += (0, _shims.int)(computedStyle.borderBottomWidth);\n return height;\n}\n\nfunction outerWidth(node\n/*: HTMLElement*/\n)\n/*: number*/\n{\n // This is deliberately excluding margin for our calculations, since we are using\n // offsetLeft which is including margin. See getBoundPosition\n var width = node.clientWidth;\n var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);\n width += (0, _shims.int)(computedStyle.borderLeftWidth);\n width += (0, _shims.int)(computedStyle.borderRightWidth);\n return width;\n}\n\nfunction innerHeight(node\n/*: HTMLElement*/\n)\n/*: number*/\n{\n var height = node.clientHeight;\n var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);\n height -= (0, _shims.int)(computedStyle.paddingTop);\n height -= (0, _shims.int)(computedStyle.paddingBottom);\n return height;\n}\n\nfunction innerWidth(node\n/*: HTMLElement*/\n)\n/*: number*/\n{\n var width = node.clientWidth;\n var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);\n width -= (0, _shims.int)(computedStyle.paddingLeft);\n width -= (0, _shims.int)(computedStyle.paddingRight);\n return width;\n} // Get from offsetParent\n\n\nfunction offsetXYFromParent(evt\n/*: {clientX: number, clientY: number}*/\n, offsetParent\n/*: HTMLElement*/\n, scale\n/*: number*/\n)\n/*: ControlPosition*/\n{\n var isBody = offsetParent === offsetParent.ownerDocument.body;\n var offsetParentRect = isBody ? {\n left: 0,\n top: 0\n } : offsetParent.getBoundingClientRect();\n var x = (evt.clientX + offsetParent.scrollLeft - offsetParentRect.left) / scale;\n var y = (evt.clientY + offsetParent.scrollTop - offsetParentRect.top) / scale;\n return {\n x: x,\n y: y\n };\n}\n\nfunction createCSSTransform(controlPos\n/*: ControlPosition*/\n, positionOffset\n/*: PositionOffsetControlPosition*/\n)\n/*: Object*/\n{\n var translation = getTranslation(controlPos, positionOffset, 'px');\n return _defineProperty({}, (0, _getPrefix.browserPrefixToKey)('transform', _getPrefix.default), translation);\n}\n\nfunction createSVGTransform(controlPos\n/*: ControlPosition*/\n, positionOffset\n/*: PositionOffsetControlPosition*/\n)\n/*: string*/\n{\n var translation = getTranslation(controlPos, positionOffset, '');\n return translation;\n}\n\nfunction getTranslation(_ref2, positionOffset\n/*: PositionOffsetControlPosition*/\n, unitSuffix\n/*: string*/\n)\n/*: string*/\n{\n var x = _ref2.x,\n y = _ref2.y;\n var translation = \"translate(\".concat(x).concat(unitSuffix, \",\").concat(y).concat(unitSuffix, \")\");\n\n if (positionOffset) {\n var defaultX = \"\".concat(typeof positionOffset.x === 'string' ? positionOffset.x : positionOffset.x + unitSuffix);\n var defaultY = \"\".concat(typeof positionOffset.y === 'string' ? positionOffset.y : positionOffset.y + unitSuffix);\n translation = \"translate(\".concat(defaultX, \", \").concat(defaultY, \")\") + translation;\n }\n\n return translation;\n}\n\nfunction getTouch(e\n/*: MouseTouchEvent*/\n, identifier\n/*: number*/\n)\n/*: ?{clientX: number, clientY: number}*/\n{\n return e.targetTouches && (0, _shims.findInArray)(e.targetTouches, function (t) {\n return identifier === t.identifier;\n }) || e.changedTouches && (0, _shims.findInArray)(e.changedTouches, function (t) {\n return identifier === t.identifier;\n });\n}\n\nfunction getTouchIdentifier(e\n/*: MouseTouchEvent*/\n)\n/*: ?number*/\n{\n if (e.targetTouches && e.targetTouches[0]) return e.targetTouches[0].identifier;\n if (e.changedTouches && e.changedTouches[0]) return e.changedTouches[0].identifier;\n} // User-select Hacks:\n//\n// Useful for preventing blue highlights all over everything when dragging.\n// Note we're passing `document` b/c we could be iframed\n\n\nfunction addUserSelectStyles(doc\n/*: ?Document*/\n) {\n if (!doc) return;\n var styleEl = doc.getElementById('react-draggable-style-el');\n\n if (!styleEl) {\n styleEl = doc.createElement('style');\n styleEl.type = 'text/css';\n styleEl.id = 'react-draggable-style-el';\n styleEl.innerHTML = '.react-draggable-transparent-selection *::-moz-selection {all: inherit;}\\n';\n styleEl.innerHTML += '.react-draggable-transparent-selection *::selection {all: inherit;}\\n';\n doc.getElementsByTagName('head')[0].appendChild(styleEl);\n }\n\n if (doc.body) addClassName(doc.body, 'react-draggable-transparent-selection');\n}\n\nfunction removeUserSelectStyles(doc\n/*: ?Document*/\n) {\n if (!doc) return;\n\n try {\n if (doc.body) removeClassName(doc.body, 'react-draggable-transparent-selection'); // $FlowIgnore: IE\n\n if (doc.selection) {\n // $FlowIgnore: IE\n doc.selection.empty();\n } else {\n // Remove selection caused by scroll, unless it's a focused input\n // (we use doc.defaultView in case we're in an iframe)\n var selection = (doc.defaultView || window).getSelection();\n\n if (selection && selection.type !== 'Caret') {\n selection.removeAllRanges();\n }\n }\n } catch (e) {// probably IE\n }\n}\n\nfunction addClassName(el\n/*: HTMLElement*/\n, className\n/*: string*/\n) {\n if (el.classList) {\n el.classList.add(className);\n } else {\n if (!el.className.match(new RegExp(\"(?:^|\\\\s)\".concat(className, \"(?!\\\\S)\")))) {\n el.className += \" \".concat(className);\n }\n }\n}\n\nfunction removeClassName(el\n/*: HTMLElement*/\n, className\n/*: string*/\n) {\n if (el.classList) {\n el.classList.remove(className);\n } else {\n el.className = el.className.replace(new RegExp(\"(?:^|\\\\s)\".concat(className, \"(?!\\\\S)\"), 'g'), '');\n }\n}\n\n/***/ }),\n/* 177 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);\n\n\nvar classCallCheck = function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};\n\nvar createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};\n\nvar inherits = function (subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n};\n\nvar possibleConstructorReturn = function (self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n};\n\nvar styles = {\n base: {\n position: 'absolute',\n userSelect: 'none',\n MsUserSelect: 'none'\n },\n top: {\n width: '100%',\n height: '10px',\n top: '-5px',\n left: '0px',\n cursor: 'row-resize'\n },\n right: {\n width: '10px',\n height: '100%',\n top: '0px',\n right: '-5px',\n cursor: 'col-resize'\n },\n bottom: {\n width: '100%',\n height: '10px',\n bottom: '-5px',\n left: '0px',\n cursor: 'row-resize'\n },\n left: {\n width: '10px',\n height: '100%',\n top: '0px',\n left: '-5px',\n cursor: 'col-resize'\n },\n topRight: {\n width: '20px',\n height: '20px',\n position: 'absolute',\n right: '-10px',\n top: '-10px',\n cursor: 'ne-resize'\n },\n bottomRight: {\n width: '20px',\n height: '20px',\n position: 'absolute',\n right: '-10px',\n bottom: '-10px',\n cursor: 'se-resize'\n },\n bottomLeft: {\n width: '20px',\n height: '20px',\n position: 'absolute',\n left: '-10px',\n bottom: '-10px',\n cursor: 'sw-resize'\n },\n topLeft: {\n width: '20px',\n height: '20px',\n position: 'absolute',\n left: '-10px',\n top: '-10px',\n cursor: 'nw-resize'\n }\n};\n\nvar Resizer = (function (props) {\n return Object(__WEBPACK_IMPORTED_MODULE_0_react__[\"createElement\"])(\n 'div',\n {\n className: props.className,\n style: _extends({}, styles.base, styles[props.direction], props.replaceStyles || {}),\n onMouseDown: function onMouseDown(e) {\n props.onResizeStart(e, props.direction);\n },\n onTouchStart: function onTouchStart(e) {\n props.onResizeStart(e, props.direction);\n }\n },\n props.children\n );\n});\n\nvar userSelectNone = {\n userSelect: 'none',\n MozUserSelect: 'none',\n WebkitUserSelect: 'none',\n MsUserSelect: 'none'\n};\n\nvar userSelectAuto = {\n userSelect: 'auto',\n MozUserSelect: 'auto',\n WebkitUserSelect: 'auto',\n MsUserSelect: 'auto'\n};\n\nvar clamp = function clamp(n, min, max) {\n return Math.max(Math.min(n, max), min);\n};\nvar snap = function snap(n, size) {\n return Math.round(n / size) * size;\n};\n\nvar findClosestSnap = function findClosestSnap(n, snapArray) {\n return snapArray.reduce(function (prev, curr) {\n return Math.abs(curr - n) < Math.abs(prev - n) ? curr : prev;\n });\n};\n\nvar endsWith = function endsWith(str, searchStr) {\n return str.substr(str.length - searchStr.length, searchStr.length) === searchStr;\n};\n\nvar getStringSize = function getStringSize(n) {\n if (n.toString() === 'auto') return n.toString();\n if (endsWith(n.toString(), 'px')) return n.toString();\n if (endsWith(n.toString(), '%')) return n.toString();\n if (endsWith(n.toString(), 'vh')) return n.toString();\n if (endsWith(n.toString(), 'vw')) return n.toString();\n if (endsWith(n.toString(), 'vmax')) return n.toString();\n if (endsWith(n.toString(), 'vmin')) return n.toString();\n return n + 'px';\n};\n\nvar definedProps = ['style', 'className', 'grid', 'snap', 'bounds', 'size', 'defaultSize', 'minWidth', 'minHeight', 'maxWidth', 'maxHeight', 'lockAspectRatio', 'lockAspectRatioExtraWidth', 'lockAspectRatioExtraHeight', 'enable', 'handleStyles', 'handleClasses', 'handleWrapperStyle', 'handleWrapperClass', 'children', 'onResizeStart', 'onResize', 'onResizeStop', 'handleComponent', 'scale', 'resizeRatio'];\n\nvar baseClassName = '__resizable_base__';\n\nvar Resizable = function (_React$Component) {\n inherits(Resizable, _React$Component);\n\n function Resizable(props) {\n classCallCheck(this, Resizable);\n\n var _this = possibleConstructorReturn(this, (Resizable.__proto__ || Object.getPrototypeOf(Resizable)).call(this, props));\n\n _this.state = {\n isResizing: false,\n resizeCursor: 'auto',\n width: typeof (_this.propsSize && _this.propsSize.width) === 'undefined' ? 'auto' : _this.propsSize && _this.propsSize.width,\n height: typeof (_this.propsSize && _this.propsSize.height) === 'undefined' ? 'auto' : _this.propsSize && _this.propsSize.height,\n direction: 'right',\n original: {\n x: 0,\n y: 0,\n width: 0,\n height: 0\n }\n };\n\n _this.updateExtendsProps(props);\n _this.onResizeStart = _this.onResizeStart.bind(_this);\n _this.onMouseMove = _this.onMouseMove.bind(_this);\n _this.onMouseUp = _this.onMouseUp.bind(_this);\n\n if (typeof window !== 'undefined') {\n window.addEventListener('mouseup', _this.onMouseUp);\n window.addEventListener('mousemove', _this.onMouseMove);\n window.addEventListener('mouseleave', _this.onMouseUp);\n window.addEventListener('touchmove', _this.onMouseMove);\n window.addEventListener('touchend', _this.onMouseUp);\n }\n return _this;\n }\n\n createClass(Resizable, [{\n key: 'updateExtendsProps',\n value: function updateExtendsProps(props) {\n this.extendsProps = Object.keys(props).reduce(function (acc, key) {\n if (definedProps.indexOf(key) !== -1) return acc;\n acc[key] = props[key];\n return acc;\n }, {});\n }\n }, {\n key: 'getParentSize',\n value: function getParentSize() {\n var base = this.base;\n\n if (!base) return { width: window.innerWidth, height: window.innerHeight };\n // INFO: To calculate parent width with flex layout\n var wrapChanged = false;\n var wrap = this.parentNode.style.flexWrap;\n var minWidth = base.style.minWidth;\n if (wrap !== 'wrap') {\n wrapChanged = true;\n this.parentNode.style.flexWrap = 'wrap';\n // HACK: Use relative to get parent padding size\n }\n base.style.position = 'relative';\n base.style.minWidth = '100%';\n var size = {\n width: base.offsetWidth,\n height: base.offsetHeight\n };\n base.style.position = 'absolute';\n if (wrapChanged) this.parentNode.style.flexWrap = wrap;\n base.style.minWidth = minWidth;\n return size;\n }\n }, {\n key: 'componentDidMount',\n value: function componentDidMount() {\n var size = this.size;\n\n this.setState({\n width: this.state.width || size.width,\n height: this.state.height || size.height\n });\n var parent = this.parentNode;\n if (!(parent instanceof HTMLElement)) return;\n if (this.base) return;\n var element = document.createElement('div');\n element.style.width = '100%';\n element.style.height = '100%';\n element.style.position = 'absolute';\n element.style.transform = 'scale(0, 0)';\n element.style.left = '0';\n element.style.flex = '0';\n if (element.classList) {\n element.classList.add(baseClassName);\n } else {\n element.className += baseClassName;\n }\n parent.appendChild(element);\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(next) {\n this.updateExtendsProps(next);\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (typeof window !== 'undefined') {\n window.removeEventListener('mouseup', this.onMouseUp);\n window.removeEventListener('mousemove', this.onMouseMove);\n window.removeEventListener('mouseleave', this.onMouseUp);\n window.removeEventListener('touchmove', this.onMouseMove);\n window.removeEventListener('touchend', this.onMouseUp);\n var parent = this.parentNode;\n var base = this.base;\n\n if (!base || !parent) return;\n if (!(parent instanceof HTMLElement) || !(base instanceof Node)) return;\n parent.removeChild(base);\n }\n }\n }, {\n key: 'calculateNewSize',\n value: function calculateNewSize(newSize, kind) {\n var propsSize = this.propsSize && this.propsSize[kind];\n return this.state[kind] === 'auto' && this.state.original[kind] === newSize && (typeof propsSize === 'undefined' || propsSize === 'auto') ? 'auto' : newSize;\n }\n }, {\n key: 'onResizeStart',\n value: function onResizeStart(event, direction) {\n var clientX = 0;\n var clientY = 0;\n if (event.nativeEvent instanceof MouseEvent) {\n clientX = event.nativeEvent.clientX;\n clientY = event.nativeEvent.clientY;\n\n // When user click with right button the resize is stuck in resizing mode\n // until users clicks again, dont continue if right click is used.\n // HACK: MouseEvent does not have `which` from flow-bin v0.68.\n if (event.nativeEvent.which === 3) {\n return;\n }\n } else if (event.nativeEvent instanceof TouchEvent) {\n clientX = event.nativeEvent.touches[0].clientX;\n clientY = event.nativeEvent.touches[0].clientY;\n }\n if (this.props.onResizeStart) {\n this.props.onResizeStart(event, direction, this.resizable);\n }\n\n // Fix #168\n if (this.props.size) {\n if (typeof this.props.size.height !== 'undefined' && this.props.size.height !== this.state.height) {\n this.setState({ height: this.props.size.height });\n }\n if (typeof this.props.size.width !== 'undefined' && this.props.size.width !== this.state.width) {\n this.setState({ width: this.props.size.width });\n }\n }\n\n this.setState({\n original: {\n x: clientX,\n y: clientY,\n width: this.size.width,\n height: this.size.height\n },\n isResizing: true,\n resizeCursor: window.getComputedStyle(event.target).cursor,\n direction: direction\n });\n }\n }, {\n key: 'onMouseMove',\n value: function onMouseMove(event) {\n if (!this.state.isResizing) return;\n var clientX = event instanceof MouseEvent ? event.clientX : event.touches[0].clientX;\n var clientY = event instanceof MouseEvent ? event.clientY : event.touches[0].clientY;\n var _state = this.state,\n direction = _state.direction,\n original = _state.original,\n width = _state.width,\n height = _state.height;\n var _props = this.props,\n lockAspectRatio = _props.lockAspectRatio,\n lockAspectRatioExtraHeight = _props.lockAspectRatioExtraHeight,\n lockAspectRatioExtraWidth = _props.lockAspectRatioExtraWidth;\n\n var scale = this.props.scale || 1;\n var _props2 = this.props,\n maxWidth = _props2.maxWidth,\n maxHeight = _props2.maxHeight,\n minWidth = _props2.minWidth,\n minHeight = _props2.minHeight;\n\n var resizeRatio = this.props.resizeRatio || 1;\n\n // TODO: refactor\n var parentSize = this.getParentSize();\n if (maxWidth && typeof maxWidth === 'string' && endsWith(maxWidth, '%')) {\n var _ratio = Number(maxWidth.replace('%', '')) / 100;\n maxWidth = parentSize.width * _ratio;\n }\n if (maxHeight && typeof maxHeight === 'string' && endsWith(maxHeight, '%')) {\n var _ratio2 = Number(maxHeight.replace('%', '')) / 100;\n maxHeight = parentSize.height * _ratio2;\n }\n if (minWidth && typeof minWidth === 'string' && endsWith(minWidth, '%')) {\n var _ratio3 = Number(minWidth.replace('%', '')) / 100;\n minWidth = parentSize.width * _ratio3;\n }\n if (minHeight && typeof minHeight === 'string' && endsWith(minHeight, '%')) {\n var _ratio4 = Number(minHeight.replace('%', '')) / 100;\n minHeight = parentSize.height * _ratio4;\n }\n maxWidth = typeof maxWidth === 'undefined' ? undefined : Number(maxWidth);\n maxHeight = typeof maxHeight === 'undefined' ? undefined : Number(maxHeight);\n minWidth = typeof minWidth === 'undefined' ? undefined : Number(minWidth);\n minHeight = typeof minHeight === 'undefined' ? undefined : Number(minHeight);\n\n var ratio = typeof lockAspectRatio === 'number' ? lockAspectRatio : original.width / original.height;\n var newWidth = original.width;\n var newHeight = original.height;\n if (/right/i.test(direction)) {\n newWidth = original.width + (clientX - original.x) * resizeRatio / scale;\n if (lockAspectRatio) newHeight = (newWidth - lockAspectRatioExtraWidth) / ratio + lockAspectRatioExtraHeight;\n }\n if (/left/i.test(direction)) {\n newWidth = original.width - (clientX - original.x) * resizeRatio / scale;\n if (lockAspectRatio) newHeight = (newWidth - lockAspectRatioExtraWidth) / ratio + lockAspectRatioExtraHeight;\n }\n if (/bottom/i.test(direction)) {\n newHeight = original.height + (clientY - original.y) * resizeRatio / scale;\n if (lockAspectRatio) newWidth = (newHeight - lockAspectRatioExtraHeight) * ratio + lockAspectRatioExtraWidth;\n }\n if (/top/i.test(direction)) {\n newHeight = original.height - (clientY - original.y) * resizeRatio / scale;\n if (lockAspectRatio) newWidth = (newHeight - lockAspectRatioExtraHeight) * ratio + lockAspectRatioExtraWidth;\n }\n\n if (this.props.bounds === 'parent') {\n var parent = this.parentNode;\n if (parent instanceof HTMLElement) {\n var parentRect = parent.getBoundingClientRect();\n var parentLeft = parentRect.left;\n var parentTop = parentRect.top;\n\n var _resizable$getBoundin = this.resizable.getBoundingClientRect(),\n _left = _resizable$getBoundin.left,\n _top = _resizable$getBoundin.top;\n\n var boundWidth = parent.offsetWidth + (parentLeft - _left);\n var boundHeight = parent.offsetHeight + (parentTop - _top);\n maxWidth = maxWidth && maxWidth < boundWidth ? maxWidth : boundWidth;\n maxHeight = maxHeight && maxHeight < boundHeight ? maxHeight : boundHeight;\n }\n } else if (this.props.bounds === 'window') {\n if (typeof window !== 'undefined') {\n var _resizable$getBoundin2 = this.resizable.getBoundingClientRect(),\n _left2 = _resizable$getBoundin2.left,\n _top2 = _resizable$getBoundin2.top;\n\n var _boundWidth = window.innerWidth - _left2;\n var _boundHeight = window.innerHeight - _top2;\n maxWidth = maxWidth && maxWidth < _boundWidth ? maxWidth : _boundWidth;\n maxHeight = maxHeight && maxHeight < _boundHeight ? maxHeight : _boundHeight;\n }\n } else if (this.props.bounds instanceof HTMLElement) {\n var targetRect = this.props.bounds.getBoundingClientRect();\n var targetLeft = targetRect.left;\n var targetTop = targetRect.top;\n\n var _resizable$getBoundin3 = this.resizable.getBoundingClientRect(),\n _left3 = _resizable$getBoundin3.left,\n _top3 = _resizable$getBoundin3.top;\n\n if (!(this.props.bounds instanceof HTMLElement)) return;\n var _boundWidth2 = this.props.bounds.offsetWidth + (targetLeft - _left3);\n var _boundHeight2 = this.props.bounds.offsetHeight + (targetTop - _top3);\n maxWidth = maxWidth && maxWidth < _boundWidth2 ? maxWidth : _boundWidth2;\n maxHeight = maxHeight && maxHeight < _boundHeight2 ? maxHeight : _boundHeight2;\n }\n\n var computedMinWidth = typeof minWidth === 'undefined' ? 10 : minWidth;\n var computedMaxWidth = typeof maxWidth === 'undefined' || maxWidth < 0 ? newWidth : maxWidth;\n var computedMinHeight = typeof minHeight === 'undefined' ? 10 : minHeight;\n var computedMaxHeight = typeof maxHeight === 'undefined' || maxHeight < 0 ? newHeight : maxHeight;\n\n if (lockAspectRatio) {\n var extraMinWidth = (computedMinHeight - lockAspectRatioExtraHeight) * ratio + lockAspectRatioExtraWidth;\n var extraMaxWidth = (computedMaxHeight - lockAspectRatioExtraHeight) * ratio + lockAspectRatioExtraWidth;\n var extraMinHeight = (computedMinWidth - lockAspectRatioExtraWidth) / ratio + lockAspectRatioExtraHeight;\n var extraMaxHeight = (computedMaxWidth - lockAspectRatioExtraWidth) / ratio + lockAspectRatioExtraHeight;\n var lockedMinWidth = Math.max(computedMinWidth, extraMinWidth);\n var lockedMaxWidth = Math.min(computedMaxWidth, extraMaxWidth);\n var lockedMinHeight = Math.max(computedMinHeight, extraMinHeight);\n var lockedMaxHeight = Math.min(computedMaxHeight, extraMaxHeight);\n newWidth = clamp(newWidth, lockedMinWidth, lockedMaxWidth);\n newHeight = clamp(newHeight, lockedMinHeight, lockedMaxHeight);\n } else {\n newWidth = clamp(newWidth, computedMinWidth, computedMaxWidth);\n newHeight = clamp(newHeight, computedMinHeight, computedMaxHeight);\n }\n if (this.props.grid) {\n newWidth = snap(newWidth, this.props.grid[0]);\n }\n if (this.props.grid) {\n newHeight = snap(newHeight, this.props.grid[1]);\n }\n\n if (this.props.snap && this.props.snap.x) {\n newWidth = findClosestSnap(newWidth, this.props.snap.x);\n }\n if (this.props.snap && this.props.snap.y) {\n newHeight = findClosestSnap(newHeight, this.props.snap.y);\n }\n\n var delta = {\n width: newWidth - original.width,\n height: newHeight - original.height\n };\n\n if (width && typeof width === 'string' && endsWith(width, '%')) {\n var percent = newWidth / parentSize.width * 100;\n newWidth = percent + '%';\n }\n\n if (height && typeof height === 'string' && endsWith(height, '%')) {\n var _percent = newHeight / parentSize.height * 100;\n newHeight = _percent + '%';\n }\n\n this.setState({\n width: this.calculateNewSize(newWidth, 'width'),\n height: this.calculateNewSize(newHeight, 'height')\n });\n\n if (this.props.onResize) {\n this.props.onResize(event, direction, this.resizable, delta);\n }\n }\n }, {\n key: 'onMouseUp',\n value: function onMouseUp(event) {\n var _state2 = this.state,\n isResizing = _state2.isResizing,\n direction = _state2.direction,\n original = _state2.original;\n\n if (!isResizing) return;\n var delta = {\n width: this.size.width - original.width,\n height: this.size.height - original.height\n };\n if (this.props.onResizeStop) {\n this.props.onResizeStop(event, direction, this.resizable, delta);\n }\n if (this.props.size) {\n this.setState(this.props.size);\n }\n this.setState({ isResizing: false, resizeCursor: 'auto' });\n }\n }, {\n key: 'updateSize',\n value: function updateSize(size) {\n this.setState({ width: size.width, height: size.height });\n }\n }, {\n key: 'renderResizer',\n value: function renderResizer() {\n var _this2 = this;\n\n var _props3 = this.props,\n enable = _props3.enable,\n handleStyles = _props3.handleStyles,\n handleClasses = _props3.handleClasses,\n handleWrapperStyle = _props3.handleWrapperStyle,\n handleWrapperClass = _props3.handleWrapperClass,\n handleComponent = _props3.handleComponent;\n\n if (!enable) return null;\n var resizers = Object.keys(enable).map(function (dir) {\n if (enable[dir] !== false) {\n return Object(__WEBPACK_IMPORTED_MODULE_0_react__[\"createElement\"])(\n Resizer,\n {\n key: dir,\n direction: dir,\n onResizeStart: _this2.onResizeStart,\n replaceStyles: handleStyles && handleStyles[dir],\n className: handleClasses && handleClasses[dir]\n },\n handleComponent && handleComponent[dir] ? Object(__WEBPACK_IMPORTED_MODULE_0_react__[\"createElement\"])(handleComponent[dir]) : null\n );\n }\n return null;\n });\n // #93 Wrap the resize box in span (will not break 100% width/height)\n return Object(__WEBPACK_IMPORTED_MODULE_0_react__[\"createElement\"])(\n 'span',\n { className: handleWrapperClass, style: handleWrapperStyle },\n resizers\n );\n }\n }, {\n key: 'render',\n value: function render() {\n var _this3 = this;\n\n var userSelect = this.state.isResizing ? userSelectNone : userSelectAuto;\n return Object(__WEBPACK_IMPORTED_MODULE_0_react__[\"createElement\"])(\n 'div',\n _extends({\n ref: function ref(c) {\n if (c) {\n _this3.resizable = c;\n }\n },\n style: _extends({\n position: 'relative'\n }, userSelect, this.props.style, this.sizeStyle, {\n maxWidth: this.props.maxWidth,\n maxHeight: this.props.maxHeight,\n minWidth: this.props.minWidth,\n minHeight: this.props.minHeight,\n boxSizing: 'border-box'\n }),\n className: this.props.className\n }, this.extendsProps),\n this.state.isResizing && Object(__WEBPACK_IMPORTED_MODULE_0_react__[\"createElement\"])('div', {\n style: {\n height: '100%',\n width: '100%',\n backgroundColor: 'rgba(0,0,0,0)',\n cursor: '' + (this.state.resizeCursor || 'auto'),\n opacity: '0',\n position: 'fixed',\n zIndex: '9999',\n top: '0',\n left: '0',\n bottom: '0',\n right: '0'\n }\n }),\n this.props.children,\n this.renderResizer()\n );\n }\n }, {\n key: 'parentNode',\n get: function get$$1() {\n return this.resizable.parentNode;\n }\n }, {\n key: 'propsSize',\n get: function get$$1() {\n return this.props.size || this.props.defaultSize;\n }\n }, {\n key: 'base',\n get: function get$$1() {\n var parent = this.parentNode;\n if (!parent) return undefined;\n var children = [].slice.call(parent.children);\n for (var i = 0; i < children.length; i += 1) {\n var n = children[i];\n if (n instanceof HTMLElement) {\n if (n.classList.contains(baseClassName)) {\n return n;\n }\n }\n }\n return undefined;\n }\n }, {\n key: 'size',\n get: function get$$1() {\n var width = 0;\n var height = 0;\n if (typeof window !== 'undefined') {\n var orgWidth = this.resizable.offsetWidth;\n var orgHeight = this.resizable.offsetHeight;\n // HACK: Set position `relative` to get parent size.\n // This is because when re-resizable set `absolute`, I can not get base width correctly.\n var orgPosition = this.resizable.style.position;\n if (orgPosition !== 'relative') {\n this.resizable.style.position = 'relative';\n }\n // INFO: Use original width or height if set auto.\n width = this.resizable.style.width !== 'auto' ? this.resizable.offsetWidth : orgWidth;\n height = this.resizable.style.height !== 'auto' ? this.resizable.offsetHeight : orgHeight;\n // Restore original position\n this.resizable.style.position = orgPosition;\n }\n return { width: width, height: height };\n }\n }, {\n key: 'sizeStyle',\n get: function get$$1() {\n var _this4 = this;\n\n var size = this.props.size;\n\n var getSize = function getSize(key) {\n if (typeof _this4.state[key] === 'undefined' || _this4.state[key] === 'auto') return 'auto';\n if (_this4.propsSize && _this4.propsSize[key] && endsWith(_this4.propsSize[key].toString(), '%')) {\n if (endsWith(_this4.state[key].toString(), '%')) return _this4.state[key].toString();\n var parentSize = _this4.getParentSize();\n var value = Number(_this4.state[key].toString().replace('px', ''));\n var percent = value / parentSize[key] * 100;\n return percent + '%';\n }\n return getStringSize(_this4.state[key]);\n };\n var width = size && typeof size.width !== 'undefined' && !this.state.isResizing ? getStringSize(size.width) : getSize('width');\n var height = size && typeof size.height !== 'undefined' && !this.state.isResizing ? getStringSize(size.height) : getSize('height');\n return { width: width, height: height };\n }\n }]);\n return Resizable;\n}(__WEBPACK_IMPORTED_MODULE_0_react__[\"Component\"]);\n\nResizable.defaultProps = {\n onResizeStart: function onResizeStart() {},\n onResize: function onResize() {},\n onResizeStop: function onResizeStop() {},\n enable: {\n top: true,\n right: true,\n bottom: true,\n left: true,\n topRight: true,\n bottomRight: true,\n bottomLeft: true,\n topLeft: true\n },\n style: {},\n grid: [1, 1],\n lockAspectRatio: false,\n lockAspectRatioExtraWidth: 0,\n lockAspectRatioExtraHeight: 0,\n scale: 1,\n resizeRatio: 1\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Resizable);\n\n\n/***/ }),\n/* 178 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = createChainableTypeChecker;\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n// Mostly taken from ReactPropTypes.\n\n/* This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\n\nfunction createChainableTypeChecker(validate) {\n function checkType(isRequired, props, propName, componentName, location, propFullName) {\n var componentNameSafe = componentName || '<>';\n var propFullNameSafe = propFullName || propName;\n\n if (props[propName] == null) {\n if (isRequired) {\n return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));\n }\n\n return null;\n }\n\n for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {\n args[_key - 6] = arguments[_key];\n }\n\n return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n}\n\n/***/ }),\n/* 179 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = createChainableTypeChecker;\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n// Mostly taken from ReactPropTypes.\n\n/* This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\n\nfunction createChainableTypeChecker(validate) {\n function checkType(isRequired, props, propName, componentName, location, propFullName) {\n var componentNameSafe = componentName || '<>';\n var propFullNameSafe = propFullName || propName;\n\n if (props[propName] == null) {\n if (isRequired) {\n return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));\n }\n\n return null;\n }\n\n for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {\n args[_key - 6] = arguments[_key];\n }\n\n return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n}\n\n/***/ }),\n/* 180 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = createChainableTypeChecker;\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n// Mostly taken from ReactPropTypes.\n\n/* This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\n\nfunction createChainableTypeChecker(validate) {\n function checkType(isRequired, props, propName, componentName, location, propFullName) {\n var componentNameSafe = componentName || '<>';\n var propFullNameSafe = propFullName || propName;\n\n if (props[propName] == null) {\n if (isRequired) {\n return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));\n }\n\n return null;\n }\n\n for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {\n args[_key - 6] = arguments[_key];\n }\n\n return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n}\n\n/***/ }),\n/* 181 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nmodule.exports = {\n 'lang': 'zh-cn',\n 'resetSettings': '还原设置',\n 'include': '包含',\n 'exclusive': '不包含',\n 'equal': '等于',\n 'unequal': '不等于',\n 'begin': '以开始',\n 'end': '以结尾',\n 'greater_than': '大于',\n 'great_than_equal_to': '大于等于',\n 'less_than': '小于',\n 'less_than_equal_to': '小于等于',\n 'be_equal_to': '等于',\n 'not_equal_to': '不等于',\n \"no_data\": '暂无数据',\n \"bool_true\": \"是\",\n \"bool_false\": \"否\",\n 'en-us': {\n 'resetSettings': 'Reset',\n 'include': 'Include',\n 'exclusive': 'Not include',\n 'equal': 'Equal to',\n 'unequal': 'Not equal to',\n 'begin': 'Begin with',\n 'end': 'End with',\n 'greater_than': 'Greater than',\n 'great_than_equal_to': 'Greater than or equal to',\n 'less_than': 'Less than',\n 'less_than_equal_to': 'Less than or equal to',\n 'be_equal_to': 'Equal to',\n 'not_equal_to': 'Not equal to',\n \"no_data\": 'No data',\n \"bool_true\": \"true\",\n \"bool_false\": \"false\"\n },\n 'zh-tw': {\n 'resetSettings': '還原設置',\n 'include': '包含',\n 'exclusive': '不包含',\n 'equal': '等於',\n 'unequal': '不等於',\n 'begin': '以開始',\n 'end': '以結尾',\n 'greater_than': '大於',\n 'great_than_equal_to': '大於等於',\n 'less_than': '小於',\n 'less_than_equal to': '小於等於',\n 'be_equal_to': '等於',\n 'not_equal_to': '不等於',\n \"no_data\": '暫無數據',\n \"bool_true\": \"是\",\n \"bool_false\": \"否\"\n }\n};\n\n/***/ }),\n/* 182 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nexports.getComponentLocale = getComponentLocale;\nexports.getLocaleCode = getLocaleCode;\nfunction getComponentLocale(props, context, componentName, getDefaultLocale) {\n var locale = {};\n if (context && context.beeLocale && context.beeLocale[componentName]) {\n locale = context.beeLocale[componentName];\n } else {\n var defaultLocale = getDefaultLocale();\n\n locale = defaultLocale[\"default\"] || defaultLocale;\n }\n\n var result = _extends({}, locale, props.locale);\n if (props.locale) {\n result.lang = _extends({}, locale.lang, props.locale.lang);\n } else {\n result.lang = _extends({}, locale.lang);\n }\n\n return result;\n}\n\nfunction getLocaleCode(context) {\n var localeCode = context.beeLocale && context.beeLocale.lang;\n // Had use LocaleProvide but didn't set locale\n if (context.beeLocale && context.beeLocale.exist && !localeCode) {\n return 'zh-cn';\n }\n return localeCode;\n}\n\n/***/ }),\n/* 183 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : English (United Kingdom) [en-gb]\n//! author : Chris Gedrim : https://github.com/chrisgedrim\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var enGb = moment.defineLocale('en-gb', {\n months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n '_'\n ),\n monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n '_'\n ),\n weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function (number) {\n var b = number % 10,\n output =\n ~~((number % 100) / 10) === 1\n ? 'th'\n : b === 1\n ? 'st'\n : b === 2\n ? 'nd'\n : b === 3\n ? 'rd'\n : 'th';\n return number + output;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return enGb;\n\n})));\n\n\n/***/ }),\n/* 184 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _mapSelf = __webpack_require__(466);\n\nvar _mapSelf2 = _interopRequireDefault(_mapSelf);\n\nvar _MonthPanel = __webpack_require__(1274);\n\nvar _MonthPanel2 = _interopRequireDefault(_MonthPanel);\n\nvar _YearPanel = __webpack_require__(468);\n\nvar _YearPanel2 = _interopRequireDefault(_YearPanel);\n\nvar _DecadePanel = __webpack_require__(469);\n\nvar _DecadePanel2 = _interopRequireDefault(_DecadePanel);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nfunction goMonth(direction) {\n var next = this.props.value.clone();\n next.add(direction, 'months');\n this.props.onValueChange(next);\n}\n\nfunction goYear(direction) {\n var next = this.props.value.clone();\n next.add(direction, 'years');\n this.props.onValueChange(next);\n}\n\nfunction showIf(condition, el) {\n return condition ? el : null;\n}\n\nvar CalendarHeader = function (_React$Component) {\n _inherits(CalendarHeader, _React$Component);\n\n function CalendarHeader(props) {\n _classCallCheck(this, CalendarHeader);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));\n\n _initialiseProps.call(_this);\n\n _this.nextMonth = goMonth.bind(_this, 1);\n _this.previousMonth = goMonth.bind(_this, -1);\n _this.nextYear = goYear.bind(_this, 1);\n _this.previousYear = goYear.bind(_this, -1);\n\n _this.state = { yearPanelReferer: null };\n return _this;\n }\n\n CalendarHeader.prototype.render = function render() {\n var _this2 = this;\n\n var props = this.props;\n var prefixCls = props.prefixCls,\n locale = props.locale,\n mode = props.mode,\n value = props.value,\n showTimePicker = props.showTimePicker,\n enableNext = props.enableNext,\n enablePrev = props.enablePrev,\n disabledMonth = props.disabledMonth,\n renderFooter = props.renderFooter,\n onChange = props.onChange,\n onClear = props.onClear,\n showMonthInput = props.showMonthInput;\n\n\n var panel = null;\n if (mode === 'month') {\n panel = _react2[\"default\"].createElement(_MonthPanel2[\"default\"], {\n showDateInput: true,\n locale: locale,\n showMonthInput: showMonthInput,\n defaultValue: value,\n rootPrefixCls: prefixCls,\n onSelect: this.onMonthSelect,\n onYearPanelShow: function onYearPanelShow() {\n return _this2.showYearPanel('month');\n },\n disabledDate: disabledMonth,\n cellRender: props.monthCellRender,\n contentRender: props.monthCellContentRender,\n renderFooter: renderFooter,\n onChange: onChange,\n onClear: onClear,\n value: value\n });\n }\n if (mode === 'year') {\n panel = _react2[\"default\"].createElement(_YearPanel2[\"default\"], {\n locale: locale,\n defaultValue: value,\n rootPrefixCls: prefixCls,\n onSelect: this.onYearSelect,\n onDecadePanelShow: this.showDecadePanel,\n renderFooter: renderFooter\n });\n }\n if (mode === 'decade') {\n panel = _react2[\"default\"].createElement(_DecadePanel2[\"default\"], {\n locale: locale,\n defaultValue: value,\n rootPrefixCls: prefixCls,\n onSelect: this.onDecadeSelect,\n renderFooter: renderFooter\n });\n }\n\n return _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-header' },\n _react2[\"default\"].createElement(\n 'div',\n { style: { position: 'relative' }, className: prefixCls + '-header-btns' },\n showIf(enablePrev && !showTimePicker, _react2[\"default\"].createElement('a', {\n className: prefixCls + '-prev-year-btn',\n role: 'button',\n onClick: this.previousYear,\n title: locale.previousYear\n })),\n showIf(enablePrev && !showTimePicker, _react2[\"default\"].createElement('a', {\n className: prefixCls + '-prev-month-btn',\n role: 'button',\n onClick: this.previousMonth,\n title: locale.previousMonth\n })),\n this.monthYearElement(showTimePicker),\n showIf(enableNext && !showTimePicker, _react2[\"default\"].createElement('a', {\n className: prefixCls + '-next-month-btn',\n onClick: this.nextMonth,\n title: locale.nextMonth\n })),\n showIf(enableNext && !showTimePicker, _react2[\"default\"].createElement('a', {\n className: prefixCls + '-next-year-btn',\n onClick: this.nextYear,\n title: locale.nextYear\n }))\n ),\n panel\n );\n };\n\n return CalendarHeader;\n}(_react2[\"default\"].Component);\n\nCalendarHeader.propTypes = {\n prefixCls: _propTypes2[\"default\"].string,\n value: _propTypes2[\"default\"].object,\n onValueChange: _propTypes2[\"default\"].func,\n showTimePicker: _propTypes2[\"default\"].bool,\n onPanelChange: _propTypes2[\"default\"].func,\n locale: _propTypes2[\"default\"].object,\n enablePrev: _propTypes2[\"default\"].any,\n enableNext: _propTypes2[\"default\"].any,\n disabledMonth: _propTypes2[\"default\"].func,\n renderFooter: _propTypes2[\"default\"].func,\n onMonthSelect: _propTypes2[\"default\"].func\n};\nCalendarHeader.defaultProps = {\n enableNext: 1,\n enablePrev: 1,\n onPanelChange: function onPanelChange() {},\n onValueChange: function onValueChange() {}\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this3 = this;\n\n this.onMonthSelect = function (value) {\n _this3.props.onPanelChange(value, 'date');\n if (_this3.props.onMonthSelect) {\n _this3.props.onMonthSelect(value);\n } else {\n _this3.props.onValueChange(value);\n }\n };\n\n this.onYearSelect = function (value) {\n var referer = _this3.state.yearPanelReferer;\n _this3.setState({ yearPanelReferer: null });\n _this3.props.onPanelChange(value, referer);\n _this3.props.onValueChange(value);\n };\n\n this.onDecadeSelect = function (value) {\n _this3.props.onPanelChange(value, 'year');\n _this3.props.onValueChange(value);\n };\n\n this.monthYearElement = function (showTimePicker) {\n var props = _this3.props;\n var prefixCls = props.prefixCls;\n var locale = props.locale;\n var value = props.value;\n var localeData = value.localeData && value.localeData();\n var monthBeforeYear = locale.monthBeforeYear;\n var selectClassName = prefixCls + '-' + (monthBeforeYear ? 'my-select' : 'ym-select');\n var timeClassName = showTimePicker ? ' ' + prefixCls + '-time-status' : '';\n var year = _react2[\"default\"].createElement(\n 'a',\n {\n className: prefixCls + '-year-select' + timeClassName,\n role: 'button',\n onClick: showTimePicker ? null : function () {\n return _this3.showYearPanel('date');\n },\n title: showTimePicker ? null : locale.yearSelect\n },\n value.format(locale.yearFormat)\n );\n var month = _react2[\"default\"].createElement(\n 'a',\n {\n className: prefixCls + '-month-select' + timeClassName,\n role: 'button',\n onClick: showTimePicker ? null : _this3.showMonthPanel,\n title: showTimePicker ? null : locale.monthSelect\n },\n locale.monthFormat ? value.format(locale.monthFormat) : localeData.monthsShort(value)\n );\n var day = void 0;\n if (showTimePicker) {\n day = _react2[\"default\"].createElement(\n 'a',\n {\n className: prefixCls + '-day-select' + timeClassName,\n role: 'button'\n },\n value.format(locale.dayFormat)\n );\n }\n var my = [];\n if (monthBeforeYear) {\n my = [month, day, year];\n } else {\n my = [year, month, day];\n }\n return _react2[\"default\"].createElement(\n 'span',\n { className: selectClassName },\n (0, _mapSelf2[\"default\"])(my)\n );\n };\n\n this.showMonthPanel = function () {\n // null means that users' interaction doesn't change value\n _this3.props.onPanelChange(null, 'month');\n };\n\n this.showYearPanel = function (referer) {\n _this3.setState({ yearPanelReferer: referer });\n _this3.props.onPanelChange(null, 'year');\n };\n\n this.showDecadePanel = function () {\n _this3.props.onPanelChange(null, 'decade');\n };\n};\n\nexports[\"default\"] = CalendarHeader;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 185 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = createChainableTypeChecker;\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n// Mostly taken from ReactPropTypes.\n\n/* This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\n\nfunction createChainableTypeChecker(validate) {\n function checkType(isRequired, props, propName, componentName, location, propFullName) {\n var componentNameSafe = componentName || '<>';\n var propFullNameSafe = propFullName || propName;\n\n if (props[propName] == null) {\n if (isRequired) {\n return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));\n }\n\n return null;\n }\n\n for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {\n args[_key - 6] = arguments[_key];\n }\n\n return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n}\n\n/***/ }),\n/* 186 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.commonMixinWrapper = exports.defaultProp = exports.propType = undefined;\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _en_US = __webpack_require__(475);\n\nvar _en_US2 = _interopRequireDefault(_en_US);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nfunction noop() {}\n\nvar propType = exports.propType = {\n className: _propTypes2[\"default\"].string,\n locale: _propTypes2[\"default\"].object,\n style: _propTypes2[\"default\"].object,\n visible: _propTypes2[\"default\"].bool,\n onSelect: _propTypes2[\"default\"].func,\n prefixCls: _propTypes2[\"default\"].string,\n onChange: _propTypes2[\"default\"].func,\n onOk: _propTypes2[\"default\"].func\n};\n\nvar defaultProp = exports.defaultProp = {\n locale: _en_US2[\"default\"],\n style: {},\n visible: true,\n prefixCls: 'rc-calendar',\n className: '',\n onSelect: noop,\n onChange: noop,\n onClear: noop,\n renderFooter: function renderFooter() {\n return null;\n },\n renderSidebar: function renderSidebar() {\n return null;\n }\n};\n\nvar commonMixinWrapper = exports.commonMixinWrapper = function commonMixinWrapper(ComposeComponent) {\n var _class, _temp2;\n\n return _temp2 = _class = function (_ComposeComponent) {\n _inherits(_class, _ComposeComponent);\n\n function _class() {\n var _temp, _this, _ret;\n\n _classCallCheck(this, _class);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, _ComposeComponent.call.apply(_ComposeComponent, [this].concat(args))), _this), _this.getFormat = function () {\n var format = _this.props.format;\n var _this$props = _this.props,\n locale = _this$props.locale,\n timePicker = _this$props.timePicker;\n\n if (!format) {\n if (timePicker) {\n format = locale.dateTimeFormat;\n } else {\n format = locale.dateFormat;\n }\n }\n return format;\n }, _this.focus = function () {\n if (_this.focusElement) {\n _this.focusElement.focus();\n } else if (_this.rootInstance) {\n _this.rootInstance.focus();\n }\n }, _this.saveFocusElement = function (focusElement) {\n _this.focusElement = focusElement;\n }, _this.saveRoot = function (root) {\n _this.rootInstance = root;\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n _class.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {\n return this.props.visible || nextProps.visible;\n };\n\n return _class;\n }(ComposeComponent), _class.displayName = 'CommonMixinWrapper', _class.defaultProps = ComposeComponent.defaultProps, _class.getDerivedStateFromProps = ComposeComponent.getDerivedStateFromProps, _temp2;\n};\n\n/***/ }),\n/* 187 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nexports.browser = browser;\nexports.getOffset = getOffset;\nexports.loopAllChildren = loopAllChildren;\nexports.isInclude = isInclude;\nexports.filterParentPosition = filterParentPosition;\nexports.handleCheckState = handleCheckState;\nexports.getCheck = getCheck;\nexports.getStrictlyValue = getStrictlyValue;\nexports.arraysEqual = arraysEqual;\nexports.closest = closest;\nexports.isTreeNode = isTreeNode;\nexports.toArray = toArray;\nexports.getNodeChildren = getNodeChildren;\nexports.warnOnlyTreeNode = warnOnlyTreeNode;\nexports.convertListToTree = convertListToTree;\nexports.debounce = debounce;\nexports.throttle = throttle;\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } /* eslint no-loop-func: 0*/\n\nfunction browser(navigator) {\n var tem = void 0;\n var ua = navigator.userAgent;\n var M = ua.match(/(opera|chrome|safari|firefox|msie|trident(?=\\/))\\/?\\s*(\\d+)/i) || [];\n if (/trident/i.test(M[1])) {\n tem = /\\brv[ :]+(\\d+)/g.exec(ua) || [];\n return 'IE ' + (tem[1] || '');\n }\n if (M[1] === 'Chrome') {\n tem = ua.match(/\\b(OPR|Edge)\\/(\\d+)/);\n if (tem) return tem.slice(1).join(' ').replace('OPR', 'Opera');\n }\n M = M[2] ? [M[1], M[2]] : [navigator.appName, navigator.appVersion, '-?'];\n tem = ua.match(/version\\/(\\d+)/i);\n if (tem) {\n M.splice(1, 1, tem[1]);\n }\n return M.join(' ');\n}\n\n// export function getOffset(el) {\n// const obj = el.getBoundingClientRect();\n// return {\n// left: obj.left + document.body.scrollLeft,\n// top: obj.top + document.body.scrollTop,\n// width: obj.width,\n// height: obj.height\n// };\n// }\n\n// // iscroll offset\n// offset = function (el) {\n// var left = -el.offsetLeft,\n// top = -el.offsetTop;\n\n// // jshint -W084\n// while (el = el.offsetParent) {\n// left -= el.offsetLeft;\n// top -= el.offsetTop;\n// }\n// // jshint +W084\n\n// return {\n// left: left,\n// top: top\n// };\n// }\n\n/* eslint-disable */\nfunction getOffset(ele) {\n var doc = void 0,\n win = void 0,\n docElem = void 0,\n rect = void 0;\n\n if (!ele.getClientRects().length) {\n return { top: 0, left: 0 };\n }\n\n rect = ele.getBoundingClientRect();\n\n if (rect.width || rect.height) {\n doc = ele.ownerDocument;\n win = doc.defaultView;\n docElem = doc.documentElement;\n\n return {\n top: rect.top + win.pageYOffset - docElem.clientTop,\n left: rect.left + win.pageXOffset - docElem.clientLeft\n };\n }\n\n return rect;\n}\n/* eslint-enable */\n\nfunction getChildrenlength(children) {\n var len = 1;\n if (Array.isArray(children)) {\n len = children.length;\n }\n return len;\n}\n\nfunction getSiblingPosition(index, len, siblingPosition) {\n if (len === 1) {\n siblingPosition.first = true;\n siblingPosition.last = true;\n } else {\n siblingPosition.first = index === 0;\n siblingPosition.last = index === len - 1;\n }\n return siblingPosition;\n}\n\nfunction loopAllChildren(childs, callback, parent) {\n var loop = function loop(children, level, _parent) {\n var len = getChildrenlength(children);\n _react2[\"default\"].Children.forEach(children, function (item, index) {\n var pos = level + '-' + index;\n if (item.props.children && item.type && item.type.isTreeNode) {\n loop(item.props.children, pos, { node: item, pos: pos });\n }\n callback(item, index, pos, item.key || pos, getSiblingPosition(index, len, {}), _parent);\n });\n };\n loop(childs, 0, parent);\n}\n\nfunction isInclude(smallArray, bigArray) {\n return smallArray.every(function (ii, i) {\n return ii === bigArray[i];\n });\n}\n// console.log(isInclude(['0', '1'], ['0', '10', '1']));\n\n\n// arr.length === 628, use time: ~20ms\nfunction filterParentPosition(arr) {\n var levelObj = {};\n arr.forEach(function (item) {\n var posLen = item.split('-').length;\n if (!levelObj[posLen]) {\n levelObj[posLen] = [];\n }\n levelObj[posLen].push(item);\n });\n var levelArr = Object.keys(levelObj).sort();\n\n var _loop = function _loop(i) {\n if (levelArr[i + 1]) {\n levelObj[levelArr[i]].forEach(function (ii) {\n var _loop2 = function _loop2(j) {\n levelObj[levelArr[j]].forEach(function (_i, index) {\n if (isInclude(ii.split('-'), _i.split('-'))) {\n levelObj[levelArr[j]][index] = null;\n }\n });\n levelObj[levelArr[j]] = levelObj[levelArr[j]].filter(function (p) {\n return p;\n });\n };\n\n for (var j = i + 1; j < levelArr.length; j++) {\n _loop2(j);\n }\n });\n }\n };\n\n for (var i = 0; i < levelArr.length; i++) {\n _loop(i);\n }\n var nArr = [];\n levelArr.forEach(function (i) {\n nArr = nArr.concat(levelObj[i]);\n });\n return nArr;\n}\n// console.log(filterParentPosition(\n// ['0-2', '0-3-3', '0-10', '0-10-0', '0-0-1', '0-0', '0-1-1', '0-1']\n// ));\n\n\nfunction stripTail(str) {\n var arr = str.match(/(.+)(-[^-]+)$/);\n var st = '';\n if (arr && arr.length === 3) {\n st = arr[1];\n }\n return st;\n}\nfunction splitPosition(pos) {\n return pos.split('-');\n}\n\nfunction handleCheckState(obj, checkedPositionArr, checkIt) {\n // console.log(stripTail('0-101-000'));\n var objKeys = Object.keys(obj);\n // let s = Date.now();\n objKeys.forEach(function (i, index) {\n var iArr = splitPosition(i);\n var saved = false;\n checkedPositionArr.forEach(function (_pos) {\n // 设置子节点,全选或全不选\n var _posArr = splitPosition(_pos);\n if (iArr.length > _posArr.length && isInclude(_posArr, iArr)) {\n obj[i].halfChecked = false;\n obj[i].checked = checkIt;\n objKeys[index] = null;\n }\n if (iArr[0] === _posArr[0] && iArr[1] === _posArr[1]) {\n // 如果\n saved = true;\n }\n });\n if (!saved) {\n objKeys[index] = null;\n }\n });\n // TODO: 循环 2470000 次耗时约 1400 ms。 性能瓶颈!\n // console.log(Date.now()-s, checkedPositionArr.length * objKeys.length);\n objKeys = objKeys.filter(function (i) {\n return i;\n }); // filter non null;\n\n var _loop3 = function _loop3(_pIndex) {\n // 循环设置父节点的 选中 或 半选状态\n var loop = function loop(__pos) {\n var _posLen = splitPosition(__pos).length;\n if (_posLen <= 2) {\n // e.g. '0-0', '0-1'\n return;\n }\n var sibling = 0;\n var siblingChecked = 0;\n var parentPosition = stripTail(__pos);\n objKeys.forEach(function (i /* , index*/) {\n var iArr = splitPosition(i);\n if (iArr.length === _posLen && isInclude(splitPosition(parentPosition), iArr)) {\n sibling++;\n if (obj[i].checked) {\n siblingChecked++;\n var _i = checkedPositionArr.indexOf(i);\n if (_i > -1) {\n checkedPositionArr.splice(_i, 1);\n if (_i <= _pIndex) {\n _pIndex--;\n }\n }\n } else if (obj[i].halfChecked) {\n siblingChecked += 0.5;\n }\n // objKeys[index] = null;\n }\n });\n // objKeys = objKeys.filter(i => i); // filter non null;\n var parent = obj[parentPosition];\n // sibling 不会等于0\n // 全不选 - 全选 - 半选\n if (siblingChecked === 0) {\n parent.checked = false;\n parent.halfChecked = false;\n } else if (siblingChecked === sibling) {\n parent.checked = true;\n parent.halfChecked = false;\n } else {\n parent.halfChecked = true;\n parent.checked = false;\n }\n loop(parentPosition);\n };\n loop(checkedPositionArr[_pIndex], _pIndex);\n pIndex = _pIndex;\n };\n\n for (var pIndex = 0; pIndex < checkedPositionArr.length; pIndex++) {\n _loop3(pIndex);\n }\n // console.log(Date.now()-s, objKeys.length, checkIt);\n}\n\nfunction getCheck(treeNodesStates) {\n var halfCheckedKeys = [];\n var checkedKeys = [];\n var checkedNodes = [];\n var checkedNodesPositions = [];\n Object.keys(treeNodesStates).forEach(function (item) {\n var itemObj = treeNodesStates[item];\n if (itemObj.checked) {\n checkedKeys.push(itemObj.key);\n checkedNodes.push(itemObj.node);\n checkedNodesPositions.push({ node: itemObj.node, pos: item });\n } else if (itemObj.halfChecked) {\n halfCheckedKeys.push(itemObj.key);\n }\n });\n return {\n halfCheckedKeys: halfCheckedKeys, checkedKeys: checkedKeys, checkedNodes: checkedNodes, checkedNodesPositions: checkedNodesPositions, treeNodesStates: treeNodesStates\n };\n}\n\nfunction getStrictlyValue(checkedKeys, halfChecked) {\n if (halfChecked) {\n return { checked: checkedKeys, halfChecked: halfChecked };\n }\n return checkedKeys;\n}\n\nfunction arraysEqual(a, b) {\n if (a === b) return true;\n if (a === null || typeof a === 'undefined' || b === null || typeof b === 'undefined') {\n return false;\n }\n if (a.length !== b.length) return false;\n\n // If you don't care about the order of the elements inside\n // the array, you should sort both arrays here.\n\n for (var i = 0; i < a.length; ++i) {\n if (a[i] !== b[i]) return false;\n }\n return true;\n}\n\nfunction closest(el, selector) {\n var matchesSelector = el.matches || el.webkitMatchesSelector || el.mozMatchesSelector || el.msMatchesSelector;\n\n while (el) {\n if (matchesSelector.call(el, selector)) {\n return el;\n } else {\n el = el.parentElement;\n }\n }\n return null;\n}\n\nfunction isTreeNode(node) {\n return node && node.type && node.type.isTreeNode;\n}\n\nfunction toArray(children) {\n var ret = [];\n _react2[\"default\"].Children.forEach(children, function (c) {\n ret.push(c);\n });\n return ret;\n}\n\nfunction getNodeChildren(children) {\n return toArray(children).filter(isTreeNode);\n}\n\nvar onlyTreeNodeWarned = false;\n\nfunction warnOnlyTreeNode() {\n if (onlyTreeNodeWarned) return;\n onlyTreeNodeWarned = true;\n console.warn('Tree only accept TreeNode as children.');\n}\n\n/**\n * 将一维数组转换为树结构\n * @param {*} treeData 扁平结构的 List 数组\n * @param {*} attr 属性配置设置\n * @param {*} flatTreeKeysMap 存储所有 key-value 的映射,方便获取各节点信息\n */\nfunction convertListToTree(treeData, attr, flatTreeKeysMap) {\n var tree = []; //存储所有一级节点\n var resData = treeData,\n //resData 存储截取的节点 + 父节点(除一级节点外)\n resKeysMap = {},\n //resData 的Map映射\n treeKeysMap = {}; //tree 的Map映射\n resData.map(function (element) {\n var key = attr.id;\n resKeysMap[element[key]] = element;\n });\n // 查找父节点,为了补充不完整的数据结构\n var findParentNode = function findParentNode(node) {\n var parentKey = node[attr.parendId];\n if (parentKey !== attr.rootId) {\n //如果不是根节点,则继续递归\n var item = flatTreeKeysMap[parentKey];\n // 用 resKeysMap 判断,避免重复计算某节点的父节点\n if (resKeysMap.hasOwnProperty(item[attr.id])) return;\n resData.unshift(item);\n resKeysMap[item[attr.id]] = item;\n findParentNode(item);\n } else {\n // 用 treeKeysMap 判断,避免重复累加\n if (!treeKeysMap.hasOwnProperty(node[attr.id])) {\n var key = node.key,\n title = node.title,\n children = node.children,\n isLeaf = node.isLeaf,\n otherProps = _objectWithoutProperties(node, ['key', 'title', 'children', 'isLeaf']);\n\n var obj = {\n key: key,\n title: title,\n isLeaf: isLeaf,\n children: []\n };\n tree.push(_extends(obj, _extends({}, otherProps)));\n treeKeysMap[key] = node;\n }\n }\n };\n // 遍历 resData ,找到所有的一级节点\n for (var i = 0; i < resData.length; i++) {\n var item = resData[i];\n if (item[attr.parendId] === attr.rootId && !treeKeysMap.hasOwnProperty(item[attr.id])) {\n //如果是根节点,就存放进 tree 对象中\n var key = item.key,\n title = item.title,\n children = item.children,\n otherProps = _objectWithoutProperties(item, ['key', 'title', 'children']);\n\n var obj = {\n key: item[attr.id],\n title: item[attr.name],\n isLeaf: item[attr.isLeaf],\n children: []\n };\n tree.push(_extends(obj, _extends({}, otherProps)));\n treeKeysMap[key] = item;\n resData.splice(i, 1);\n i--;\n } else {\n //递归查找根节点信息\n findParentNode(item);\n }\n }\n // console.log('resData',resKeysMap);\n var run = function run(treeArrs) {\n if (resData.length > 0) {\n for (var _i2 = 0; _i2 < treeArrs.length; _i2++) {\n for (var j = 0; j < resData.length; j++) {\n var _item = resData[j];\n if (treeArrs[_i2].key === _item[attr.parendId]) {\n var _key = _item.key,\n _title = _item.title,\n _children = _item.children,\n _otherProps = _objectWithoutProperties(_item, ['key', 'title', 'children']);\n\n var _obj = {\n key: _item[attr.id],\n title: _item[attr.name],\n isLeaf: _item[attr.isLeaf],\n children: []\n };\n treeArrs[_i2].children.push(_extends(_obj, _extends({}, _otherProps)));\n resData.splice(j, 1);\n j--;\n }\n }\n run(treeArrs[_i2].children);\n }\n }\n };\n run(tree);\n return tree;\n}\n\nfunction isObject(value) {\n var type = typeof value === 'undefined' ? 'undefined' : _typeof(value);\n return value != null && (type == 'object' || type == 'function');\n}\n\n/**\n * 函数防抖\n * @param {*} func \n * @param {*} wait \n * @param {*} immediate \n */\nfunction debounce(func, wait, immediate) {\n var timeout = void 0;\n return function debounceFunc() {\n var context = this;\n var args = arguments;\n // https://fb.me/react-event-pooling\n if (args[0] && args[0].persist) {\n args[0].persist();\n }\n var later = function later() {\n timeout = null;\n if (!immediate) {\n func.apply(context, args);\n }\n };\n var callNow = immediate && !timeout;\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n if (callNow) {\n func.apply(context, args);\n }\n };\n}\n\n/**\n * 函数节流\n * @param {*} func 延时调用函数\n * @param {*} wait 延迟多长时间\n * @param {*} options 至少多长时间触发一次\n * @return Function 延迟执行的方法\n */\nfunction throttle(func, wait, options) {\n var leading = true;\n var trailing = true;\n\n if (typeof func !== 'function') {\n throw new TypeError('Expected a function');\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n leading: leading,\n trailing: trailing,\n 'maxWait': wait\n });\n}\n\n/***/ }),\n/* 188 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined;\n\nvar _all2 = __webpack_require__(1322);\n\nvar _all3 = _interopRequireDefault(_all2);\n\nvar _componentOrElement2 = __webpack_require__(1323);\n\nvar _componentOrElement3 = _interopRequireDefault(_componentOrElement2);\n\nvar _deprecated2 = __webpack_require__(1324);\n\nvar _deprecated3 = _interopRequireDefault(_deprecated2);\n\nvar _elementType2 = __webpack_require__(1325);\n\nvar _elementType3 = _interopRequireDefault(_elementType2);\n\nvar _isRequiredForA11y2 = __webpack_require__(1326);\n\nvar _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2);\n\nvar _splitComponent2 = __webpack_require__(1327);\n\nvar _splitComponent3 = _interopRequireDefault(_splitComponent2);\n\nvar _createChainedFunction2 = __webpack_require__(1328);\n\nvar _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2);\n\nvar _keyCode = __webpack_require__(1329);\n\nvar _keyCode2 = _interopRequireDefault(_keyCode);\n\nvar _contains2 = __webpack_require__(1330);\n\nvar _contains3 = _interopRequireDefault(_contains2);\n\nvar _addEventListener2 = __webpack_require__(481);\n\nvar _addEventListener3 = _interopRequireDefault(_addEventListener2);\n\nvar _cssAnimation2 = __webpack_require__(1331);\n\nvar _cssAnimation3 = _interopRequireDefault(_cssAnimation2);\n\nvar _toArray2 = __webpack_require__(1333);\n\nvar _toArray3 = _interopRequireDefault(_toArray2);\n\nvar _Align2 = __webpack_require__(1334);\n\nvar _Align3 = _interopRequireDefault(_Align2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.all = _all3.default;\nexports.componentOrElement = _componentOrElement3.default;\nexports.deprecated = _deprecated3.default;\nexports.elementType = _elementType3.default;\nexports.isRequiredForA11y = _isRequiredForA11y3.default;\nexports.splitComponent = _splitComponent3.default;\nexports.createChainedFunction = _createChainedFunction3.default;\nexports.KeyCode = _keyCode2.default;\nexports.contains = _contains3.default;\nexports.addEventListener = _addEventListener3.default;\nexports.cssAnimation = _cssAnimation3.default;\nexports.toArray = _toArray3.default;\n//export getContainerRenderMixin from './getContainerRenderMixin';\n\nexports.Align = _Align3.default;\n\n/***/ }),\n/* 189 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = createChainableTypeChecker;\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n// Mostly taken from ReactPropTypes.\n\n/* This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\n\nfunction createChainableTypeChecker(validate) {\n function checkType(isRequired, props, propName, componentName, location, propFullName) {\n var componentNameSafe = componentName || '<>';\n var propFullNameSafe = propFullName || propName;\n\n if (props[propName] == null) {\n if (isRequired) {\n return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));\n }\n\n return null;\n }\n\n for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {\n args[_key - 6] = arguments[_key];\n }\n\n return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n}\n\n/***/ }),\n/* 190 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = createChainableTypeChecker;\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n// Mostly taken from ReactPropTypes.\n\n/* This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\n\nfunction createChainableTypeChecker(validate) {\n function checkType(isRequired, props, propName, componentName, location, propFullName) {\n var componentNameSafe = componentName || '<>';\n var propFullNameSafe = propFullName || propName;\n\n if (props[propName] == null) {\n if (isRequired) {\n return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));\n }\n\n return null;\n }\n\n for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {\n args[_key - 6] = arguments[_key];\n }\n\n return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n}\n\n/***/ }),\n/* 191 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.destroyFns = undefined;\n\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\nvar _extends2;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _events = __webpack_require__(163);\n\nvar _events2 = _interopRequireDefault(_events);\n\nvar _ownerDocument = __webpack_require__(22);\n\nvar _ownerDocument2 = _interopRequireDefault(_ownerDocument);\n\nvar _inDOM = __webpack_require__(25);\n\nvar _inDOM2 = _interopRequireDefault(_inDOM);\n\nvar _scrollbarSize = __webpack_require__(104);\n\nvar _scrollbarSize2 = _interopRequireDefault(_scrollbarSize);\n\nvar _scrollTop = __webpack_require__(45);\n\nvar _scrollTop2 = _interopRequireDefault(_scrollTop);\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _Modal = __webpack_require__(164);\n\nvar _Modal2 = _interopRequireDefault(_Modal);\n\nvar _isOverflowing = __webpack_require__(105);\n\nvar _isOverflowing2 = _interopRequireDefault(_isOverflowing);\n\nvar _tinperBeeCore = __webpack_require__(33);\n\nvar _beeTransition = __webpack_require__(1379);\n\nvar _ModalBody = __webpack_require__(1383);\n\nvar _ModalBody2 = _interopRequireDefault(_ModalBody);\n\nvar _ModalDialog = __webpack_require__(1384);\n\nvar _ModalDialog2 = _interopRequireDefault(_ModalDialog);\n\nvar _ModalFooter = __webpack_require__(1390);\n\nvar _ModalFooter2 = _interopRequireDefault(_ModalFooter);\n\nvar _ModalHeader = __webpack_require__(1391);\n\nvar _ModalHeader2 = _interopRequireDefault(_ModalHeader);\n\nvar _ModalTitle = __webpack_require__(1392);\n\nvar _ModalTitle2 = _interopRequireDefault(_ModalTitle);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar propTypes = _extends({}, _Modal2[\"default\"].propTypes, _ModalDialog2[\"default\"].propTypes, (_extends2 = {\n\n /**\n * 是否弹出遮罩层/遮罩层点击是否触发关闭\n */\n backdrop: _propTypes2[\"default\"].oneOf(['static', true, false]),\n\n /**\n * 点击遮罩层是否允许关闭\n */\n backdropClosable: _propTypes2[\"default\"].bool,\n /**\n * esc触发关闭\n */\n keyboard: _propTypes2[\"default\"].bool,\n\n /**\n * 显隐时是否使用动画\n */\n animation: _propTypes2[\"default\"].bool,\n\n /**\n * 传递给模态框的样式\n */\n dialogComponentClass: _tinperBeeCore.elementType,\n\n /**\n * 自动设置焦点\n */\n autoFocus: _propTypes2[\"default\"].bool,\n\n /**\n * 防止打开时焦点离开模态框\n */\n enforceFocus: _propTypes2[\"default\"].bool,\n\n /**\n * 是否打开模态框\n */\n show: _propTypes2[\"default\"].bool,\n\n /**\n * 关闭时的钩子函数\n */\n onHide: _propTypes2[\"default\"].func,\n\n onEnter: _propTypes2[\"default\"].func,\n\n onEntering: _propTypes2[\"default\"].func,\n\n onEntered: _propTypes2[\"default\"].func,\n\n onExit: _propTypes2[\"default\"].func,\n\n onExiting: _propTypes2[\"default\"].func,\n\n onExited: _propTypes2[\"default\"].func,\n\n containerClassName: _propTypes2[\"default\"].string\n}, _defineProperty(_extends2, 'containerClassName', _propTypes2[\"default\"].string), _defineProperty(_extends2, 'container', _Modal2[\"default\"].propTypes.container), _defineProperty(_extends2, 'size', _propTypes2[\"default\"].oneOf([\"sm\", \"lg\", \"xlg\", \"\"])), _defineProperty(_extends2, 'width', _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].number, _propTypes2[\"default\"].string])), _defineProperty(_extends2, 'draggable', _propTypes2[\"default\"].bool), _defineProperty(_extends2, 'resizable', _propTypes2[\"default\"].bool), _defineProperty(_extends2, 'resizeClassName', _propTypes2[\"default\"].string), _defineProperty(_extends2, 'onResizeStart', _propTypes2[\"default\"].func), _defineProperty(_extends2, 'onResize', _propTypes2[\"default\"].func), _defineProperty(_extends2, 'onResizeStop', _propTypes2[\"default\"].func), _defineProperty(_extends2, 'minWidth', _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].number, _propTypes2[\"default\"].string])), _defineProperty(_extends2, 'minHeight', _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].number, _propTypes2[\"default\"].string])), _defineProperty(_extends2, 'maxWidth', _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].number, _propTypes2[\"default\"].string])), _defineProperty(_extends2, 'maxHeight', _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].number, _propTypes2[\"default\"].string])), _defineProperty(_extends2, 'bounds', _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].string, _propTypes2[\"default\"].object])), _defineProperty(_extends2, 'className', _propTypes2[\"default\"].string), _defineProperty(_extends2, 'centered', _propTypes2[\"default\"].bool), _extends2));\n\nvar defaultProps = _extends({}, _Modal2[\"default\"].defaultProps, {\n backdropClosable: true,\n animation: true,\n dialogComponentClass: _ModalDialog2[\"default\"],\n draggable: false,\n resizable: false,\n clsPrefix: 'u-modal',\n className: ''\n});\n\nvar ModalFuncProps = {\n prefixCls: _propTypes2[\"default\"].string,\n className: _propTypes2[\"default\"].string,\n show: _propTypes2[\"default\"].bool,\n title: _react2[\"default\"].ReactNode,\n content: _react2[\"default\"].ReactNode,\n onOk: _propTypes2[\"default\"].func,\n onCancel: _propTypes2[\"default\"].func,\n width: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].number, _propTypes2[\"default\"].string]),\n okText: _propTypes2[\"default\"].string,\n okType: _propTypes2[\"default\"].string,\n cancelText: _propTypes2[\"default\"].string,\n icon: _react2[\"default\"].ReactNode,\n backdrop: _propTypes2[\"default\"].oneOf(['static', true, false])\n};\n\nvar ModalFunc = function ModalFunc(props) {\n destroy = function destroy() {};\n update = function update(newConfig) {};\n};\n\nvar destroyFns = exports.destroyFns = [];\n\nvar childContextTypes = {\n $u_modal: _propTypes2[\"default\"].shape({\n onHide: _propTypes2[\"default\"].func\n })\n};\n\nvar Modal = function (_React$Component) {\n _inherits(Modal, _React$Component);\n\n function Modal(props, context) {\n _classCallCheck(this, Modal);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context));\n\n _this.clearCenteredCls = function () {\n var centered = _this.state.centered;\n\n if (!centered) {\n return;\n }\n _this.offsetTop = _this.getOffsetTop();\n _this.setState({\n centered: false\n });\n };\n\n _this.state = {\n style: {},\n centered: props.centered,\n draging: false,\n draged: false\n };\n _this.offsetTop = 0;\n _this.handleEntering = _this.handleEntering.bind(_this);\n _this.handleExited = _this.handleExited.bind(_this);\n _this.handleWindowResize = _this.handleWindowResize.bind(_this);\n _this.handleDialogClick = _this.handleDialogClick.bind(_this);\n return _this;\n }\n\n Modal.prototype.getChildContext = function getChildContext() {\n return {\n $u_modal: {\n onHide: this.props.onHide\n }\n };\n };\n\n Modal.prototype.componentWillUnmount = function componentWillUnmount() {\n // Clean up the listener if we need to.\n this.handleExited();\n };\n\n Modal.prototype.handleEntering = function handleEntering() {\n // FIXME: This should work even when animation is disabled.\n _events2[\"default\"].on(window, 'resize', this.handleWindowResize);\n this.updateStyle();\n };\n\n Modal.prototype.handleExited = function handleExited() {\n this.setState({\n draging: false,\n draged: false\n });\n // FIXME: This should work even when animation is disabled.\n _events2[\"default\"].off(window, 'resize', this.handleWindowResize);\n };\n\n Modal.prototype.handleWindowResize = function handleWindowResize() {\n this.updateStyle();\n };\n\n Modal.prototype.handleDialogClick = function handleDialogClick(e) {\n if (e.target !== e.currentTarget) {\n return;\n }\n\n this.props.onHide();\n };\n\n Modal.prototype.updateStyle = function updateStyle() {\n if (!_inDOM2[\"default\"] || !this._modal) {\n return;\n }\n\n var dialogNode = this._modal.getDialogElement();\n var dialogHeight = dialogNode.scrollHeight;\n\n var document = (0, _ownerDocument2[\"default\"])(dialogNode);\n var bodyIsOverflowing = false;\n if (this.props.container) {\n bodyIsOverflowing = (0, _isOverflowing2[\"default\"])(_reactDom2[\"default\"].findDOMNode(this.props.container));\n }\n var modalIsOverflowing = dialogHeight > document.documentElement.clientHeight;\n\n this.setState({\n style: {\n paddingRight: bodyIsOverflowing && !modalIsOverflowing ? (0, _scrollbarSize2[\"default\"])() : undefined,\n paddingLeft: !bodyIsOverflowing && modalIsOverflowing ? (0, _scrollbarSize2[\"default\"])() : undefined\n }\n });\n };\n //ResizeStart 时,若模态框设置了 `centered` ,需要把居中属性移除,并通过 offsetTop 制造垂直居中的假象\n //fixbug: Resize 和 centered 一起使用时,拖拽交互不正确\n\n\n //计算 ModalDialog 的 offsetTop\n Modal.prototype.getOffsetTop = function getOffsetTop() {\n var modalDialog = document.getElementsByClassName(\"u-modal-dialog\") && document.getElementsByClassName(\"u-modal-dialog\")[0];\n var topPos = modalDialog && modalDialog.offsetTop;\n return topPos;\n };\n\n Modal.prototype.render = function render() {\n var _this2 = this;\n\n var _props = this.props,\n backdrop = _props.backdrop,\n backdropClosable = _props.backdropClosable,\n animation = _props.animation,\n show = _props.show,\n Dialog = _props.dialogComponentClass,\n className = _props.className,\n clsPrefix = _props.clsPrefix,\n _props$style = _props.style,\n style = _props$style === undefined ? {} : _props$style,\n size = _props.size,\n width = _props.width,\n children = _props.children,\n onEntering = _props.onEntering,\n onExited = _props.onExited,\n backdropClassName = _props.backdropClassName,\n containerClassName = _props.containerClassName,\n draggable = _props.draggable,\n resizeClassName = _props.resizeClassName,\n bounds = _props.bounds,\n container = _props.container,\n onStart = _props.onStart,\n onStop = _props.onStop,\n props = _objectWithoutProperties(_props, ['backdrop', 'backdropClosable', 'animation', 'show', 'dialogComponentClass', 'className', 'clsPrefix', 'style', 'size', 'width', 'children', 'onEntering', 'onExited', 'backdropClassName', 'containerClassName', 'draggable', 'resizeClassName', 'bounds', 'container', 'onStart', 'onStop']);\n\n var _state = this.state,\n centered = _state.centered,\n draging = _state.draging,\n draged = _state.draged;\n\n var dialogMarginTop = 30;\n //ResizeStart 时,计算 ModalDialog 的 offsetTop\n var topPosStyle = this.offsetTop > 0 ? { top: this.offsetTop - dialogMarginTop } : null;\n\n var _splitComponent = (0, _tinperBeeCore.splitComponent)(props, _Modal2[\"default\"]),\n _splitComponent2 = _slicedToArray(_splitComponent, 2),\n baseModalProps = _splitComponent2[0],\n dialogProps = _splitComponent2[1];\n\n var inClassName = show && !animation && 'in';\n\n var backdropClasses = _defineProperty({}, clsPrefix + '-backdrop', true);\n var containerClasses = _defineProperty({}, clsPrefix + '-open', true);\n if (!!centered) {\n className += ' ' + clsPrefix + '-centered';\n }\n if (draging) {\n className += ' draging';\n }\n if (draged) {\n className += ' draged';\n }\n if (Number(width)) width += 'px';\n\n var styleRes = _extends({}, this.state.style, style, topPosStyle);\n if (width) {\n _extends(styleRes, { width: width });\n }\n return _react2[\"default\"].createElement(\n _Modal2[\"default\"],\n _extends({}, baseModalProps, {\n ref: function ref(c) {\n _this2._modal = c;\n },\n show: show,\n onEntering: (0, _tinperBeeCore.createChainedFunction)(onEntering, this.handleEntering),\n onExited: (0, _tinperBeeCore.createChainedFunction)(onExited, this.handleExited),\n backdrop: backdrop,\n backdropClassName: (0, _classnames2[\"default\"])(backdropClasses, inClassName, backdropClassName),\n containerClassName: (0, _classnames2[\"default\"])(containerClasses, containerClassName),\n transition: animation ? _beeTransition.Fade : undefined,\n dialogTransitionTimeout: Modal.TRANSITION_DURATION,\n backdropTransitionTimeout: Modal.BACKDROP_TRANSITION_DURATION,\n container: container\n }),\n _react2[\"default\"].createElement(\n Dialog,\n _extends({}, dialogProps, {\n style: styleRes,\n className: (0, _classnames2[\"default\"])(className, inClassName, backdropClassName),\n onClick: backdrop === true && !!backdropClosable ? this.handleDialogClick : null,\n size: size,\n draggable: draggable,\n bounds: bounds,\n resizeClassName: resizeClassName,\n clearCenteredCls: this.clearCenteredCls,\n onStart: function onStart() {\n _this2.setState({\n draging: true,\n draged: false\n });\n },\n onStop: function onStop() {\n _this2.setState({\n draging: false,\n draged: true\n });\n }\n }),\n children\n )\n );\n };\n\n return Modal;\n}(_react2[\"default\"].Component);\n\nModal.info = ModalFunc;\nModal.success = ModalFunc;\nModal.error = ModalFunc;\nModal.warn = ModalFunc;\nModal.warning = ModalFunc;\nModal.confirm = ModalFunc;\n\nModal.destroyAll = function () {\n return;\n};\n\nModal.propTypes = propTypes;\nModal.defaultProps = defaultProps;\nModal.childContextTypes = childContextTypes;\n\nModal.Body = _ModalBody2[\"default\"];\nModal.Header = _ModalHeader2[\"default\"];\nModal.Title = _ModalTitle2[\"default\"];\nModal.Footer = _ModalFooter2[\"default\"];\n\nModal.Dialog = _ModalDialog2[\"default\"];\n\nModal.TRANSITION_DURATION = 200000;\nModal.BACKDROP_TRANSITION_DURATION = 10000;\n\nexports[\"default\"] = Modal;\n\n/***/ }),\n/* 192 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = undefined;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _properties = __webpack_require__(27);\n\nvar _properties2 = _interopRequireDefault(_properties);\n\nvar _on = __webpack_require__(17);\n\nvar _on2 = _interopRequireDefault(_on);\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar transitionEndEvent = _properties2[\"default\"].end;\n\n//设置状态码\nvar UNMOUNTED = exports.UNMOUNTED = 0;\nvar EXITED = exports.EXITED = 1;\nvar ENTERING = exports.ENTERING = 2;\nvar ENTERED = exports.ENTERED = 3;\nvar EXITING = exports.EXITING = 4;\n\nvar propTypes = {\n /**\n * 是否触发动画\n */\n \"in\": _propTypes2[\"default\"].bool,\n\n /**\n * 不显示的时候是否移除组件\n */\n unmountOnExit: _propTypes2[\"default\"].bool,\n\n /**\n * 如果设置为默认显示,挂载时显示动画\n */\n transitionAppear: _propTypes2[\"default\"].bool,\n\n /**\n * 设置超时时间,防止出现问题,可设置为>=动画时间\n */\n timeout: _propTypes2[\"default\"].number,\n\n /**\n * 退出组件时添加的class\n */\n exitedClassName: _propTypes2[\"default\"].string,\n /**\n * 退出组件中添加的class\n */\n exitingClassName: _propTypes2[\"default\"].string,\n /**\n * 进入动画后添加的class\n */\n enteredClassName: _propTypes2[\"default\"].string,\n /**\n * 进入动画时添加的class\n */\n enteringClassName: _propTypes2[\"default\"].string,\n\n /**\n * 进入动画开始时的钩子函数\n */\n onEnter: _propTypes2[\"default\"].func,\n /**\n * 进入动画中的钩子函数\n */\n onEntering: _propTypes2[\"default\"].func,\n /**\n * 进入动画后的钩子函数\n */\n onEntered: _propTypes2[\"default\"].func,\n /**\n * 退出动画开始时的钩子函数\n */\n onExit: _propTypes2[\"default\"].func,\n /**\n * 退出动画中的钩子函数\n */\n onExiting: _propTypes2[\"default\"].func,\n /**\n * 退出动画后的钩子函数\n */\n onExited: _propTypes2[\"default\"].func\n};\n\nfunction noop() {}\n\nvar defaultProps = {\n \"in\": false,\n unmountOnExit: false,\n transitionAppear: false,\n timeout: 5000,\n onEnter: noop,\n onEntering: noop,\n onEntered: noop,\n onExit: noop,\n onExiting: noop,\n onExited: noop\n};\n\n/**\n * 动画组件\n */\n\nvar Transition = function (_Component) {\n _inherits(Transition, _Component);\n\n function Transition(props, context) {\n _classCallCheck(this, Transition);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));\n\n var initialStatus = void 0;\n if (props[\"in\"]) {\n // 在componentdidmount时开始执行动画\n initialStatus = props.transitionAppear ? EXITED : ENTERED;\n } else {\n initialStatus = props.unmountOnExit ? UNMOUNTED : EXITED;\n }\n _this.state = { status: initialStatus };\n\n _this.nextCallback = null;\n return _this;\n }\n\n Transition.prototype.componentDidMount = function componentDidMount() {\n if (this.props.transitionAppear && this.props[\"in\"]) {\n this.performEnter(this.props);\n }\n };\n\n Transition.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n if (nextProps[\"in\"] && this.props.unmountOnExit) {\n if (this.state.status === UNMOUNTED) {\n // 在componentDidUpdate执行动画.\n this.setState({ status: EXITED });\n }\n } else {\n this._needsUpdate = true;\n }\n };\n\n Transition.prototype.componentDidUpdate = function componentDidUpdate() {\n var status = this.state.status;\n\n if (this.props.unmountOnExit && status === EXITED) {\n // 当使用unmountOnExit时,exited为exiting和unmont的过渡状态\n if (this.props[\"in\"]) {\n this.performEnter(this.props);\n } else {\n this.setState({ status: UNMOUNTED });\n }\n\n return;\n }\n\n // 确保只响应prop变化\n if (this._needsUpdate) {\n this._needsUpdate = false;\n\n if (this.props[\"in\"]) {\n if (status === EXITING) {\n this.performEnter(this.props);\n } else if (status === EXITED) {\n this.performEnter(this.props);\n }\n // 其他,当我们已经输入或输出\n } else {\n if (status === ENTERING || status === ENTERED) {\n this.performExit(this.props);\n }\n // 我们已经输入或输出完成\n }\n }\n };\n\n Transition.prototype.componentWillUnmount = function componentWillUnmount() {\n this.cancelNextCallback();\n };\n\n Transition.prototype.performEnter = function performEnter(props) {\n var _this2 = this;\n\n this.cancelNextCallback();\n var node = _reactDom2[\"default\"].findDOMNode(this);\n\n // 这里接收新props\n props.onEnter(node);\n\n this.safeSetState({ status: ENTERING }, function () {\n _this2.props.onEntering(node);\n\n _this2.onTransitionEnd(node, function () {\n _this2.safeSetState({ status: ENTERED }, function () {\n _this2.props.onEntered(node);\n });\n });\n });\n };\n\n Transition.prototype.performExit = function performExit(props) {\n var _this3 = this;\n\n this.cancelNextCallback();\n var node = _reactDom2[\"default\"].findDOMNode(this);\n\n props.onExit(node);\n\n this.safeSetState({ status: EXITING }, function () {\n _this3.props.onExiting(node);\n\n _this3.onTransitionEnd(node, function () {\n _this3.safeSetState({ status: EXITED }, function () {\n _this3.props.onExited(node);\n });\n });\n });\n };\n\n Transition.prototype.cancelNextCallback = function cancelNextCallback() {\n if (this.nextCallback !== null) {\n this.nextCallback.cancel();\n this.nextCallback = null;\n }\n };\n\n Transition.prototype.safeSetState = function safeSetState(nextState, callback) {\n // 确保在组件销毁后挂起的setState被消除\n this.setState(nextState, this.setNextCallback(callback));\n };\n\n Transition.prototype.setNextCallback = function setNextCallback(callback) {\n var _this4 = this;\n\n var active = true;\n\n this.nextCallback = function (event) {\n if (active) {\n active = false;\n _this4.nextCallback = null;\n\n callback(event);\n }\n };\n\n this.nextCallback.cancel = function () {\n active = false;\n };\n\n return this.nextCallback;\n };\n\n Transition.prototype.onTransitionEnd = function onTransitionEnd(node, handler) {\n this.setNextCallback(handler);\n\n if (node) {\n if (transitionEndEvent == undefined) {\n this.nextCallback();\n } else {\n (0, _on2[\"default\"])(node, transitionEndEvent, this.nextCallback);\n }\n setTimeout(this.nextCallback, this.props.timeout);\n } else {\n setTimeout(this.nextCallback, 0);\n }\n };\n\n Transition.prototype.render = function render() {\n var status = this.state.status;\n if (status === UNMOUNTED) {\n return null;\n }\n\n var _props = this.props,\n children = _props.children,\n className = _props.className,\n childProps = _objectWithoutProperties(_props, ['children', 'className']);\n\n Object.keys(Transition.propTypes).forEach(function (key) {\n return delete childProps[key];\n });\n\n var transitionClassName = void 0;\n if (status === EXITED) {\n transitionClassName = this.props.exitedClassName;\n } else if (status === ENTERING) {\n transitionClassName = this.props.enteringClassName;\n } else if (status === ENTERED) {\n transitionClassName = this.props.enteredClassName;\n } else if (status === EXITING) {\n transitionClassName = this.props.exitingClassName;\n }\n\n var child = _react2[\"default\"].Children.only(children);\n return _react2[\"default\"].cloneElement(child, _extends({}, childProps, {\n className: (0, _classnames2[\"default\"])(child.props.className, className, transitionClassName)\n }));\n };\n\n return Transition;\n}(_react.Component);\n\nTransition.propTypes = propTypes;\n\nTransition.defaultProps = defaultProps;\n\nexports[\"default\"] = Transition;\n\n/***/ }),\n/* 193 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _Button = __webpack_require__(1394);\n\nvar _Button2 = _interopRequireDefault(_Button);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nexports[\"default\"] = _Button2[\"default\"];\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 194 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = createChainableTypeChecker;\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n// Mostly taken from ReactPropTypes.\n\n/* This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\n\nfunction createChainableTypeChecker(validate) {\n function checkType(isRequired, props, propName, componentName, location, propFullName) {\n var componentNameSafe = componentName || '<>';\n var propFullNameSafe = propFullName || propName;\n\n if (props[propName] == null) {\n if (isRequired) {\n return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));\n }\n\n return null;\n }\n\n for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {\n args[_key - 6] = arguments[_key];\n }\n\n return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n}\n\n/***/ }),\n/* 195 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = createChainableTypeChecker;\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n// Mostly taken from ReactPropTypes.\n\n/* This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\n\nfunction createChainableTypeChecker(validate) {\n function checkType(isRequired, props, propName, componentName, location, propFullName) {\n var componentNameSafe = componentName || '<>';\n var propFullNameSafe = propFullName || propName;\n\n if (props[propName] == null) {\n if (isRequired) {\n return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));\n }\n\n return null;\n }\n\n for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {\n args[_key - 6] = arguments[_key];\n }\n\n return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n}\n\n/***/ }),\n/* 196 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**\n * This source code is quoted from rc-slider.\n * homepage: https://github.com/react-component/slider\n */\n\n\nvar Handle = function (_React$Component) {\n _inherits(Handle, _React$Component);\n\n function Handle() {\n _classCallCheck(this, Handle);\n\n return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n Handle.prototype.render = function render() {\n var _props = this.props,\n className = _props.className,\n vertical = _props.vertical,\n offset = _props.offset,\n style = _props.style,\n disabled = _props.disabled,\n min = _props.min,\n max = _props.max,\n value = _props.value,\n restProps = _objectWithoutProperties(_props, ['className', 'vertical', 'offset', 'style', 'disabled', 'min', 'max', 'value']);\n\n var postionStyle = vertical ? { bottom: offset + '%' } : { left: offset + '%' };\n var elStyle = _extends({}, style, postionStyle);\n var ariaProps = {};\n if (value !== undefined) {\n ariaProps = _extends({}, ariaProps, {\n 'aria-valuemin': min,\n 'aria-valuemax': max,\n 'aria-valuenow': value,\n 'aria-disabled': !!disabled\n });\n }\n\n return _react2[\"default\"].createElement('div', _extends({\n role: 'slider',\n tabIndex: '0'\n }, ariaProps, restProps, {\n className: className,\n style: elStyle\n }));\n };\n\n return Handle;\n}(_react2[\"default\"].Component);\n\nexports[\"default\"] = Handle;\n\n\nHandle.propTypes = {\n className: _propTypes2[\"default\"].string,\n vertical: _propTypes2[\"default\"].bool,\n offset: _propTypes2[\"default\"].number,\n style: _propTypes2[\"default\"].object,\n disabled: _propTypes2[\"default\"].bool,\n min: _propTypes2[\"default\"].number,\n max: _propTypes2[\"default\"].number,\n value: _propTypes2[\"default\"].number\n};\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 197 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.isEventFromHandle = isEventFromHandle;\nexports.isValueOutOfRange = isValueOutOfRange;\nexports.isNotTouchEvent = isNotTouchEvent;\nexports.getClosestPoint = getClosestPoint;\nexports.getPrecision = getPrecision;\nexports.getMousePosition = getMousePosition;\nexports.getTouchPosition = getTouchPosition;\nexports.getHandleCenterPosition = getHandleCenterPosition;\nexports.ensureValueInRange = ensureValueInRange;\nexports.ensureValuePrecision = ensureValuePrecision;\nexports.pauseEvent = pauseEvent;\nexports.getKeyboardValueMutator = getKeyboardValueMutator;\n\nvar _reactDom = __webpack_require__(3);\n\nvar _keyCode = __webpack_require__(501);\n\nvar _keyCode2 = _interopRequireDefault(_keyCode);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } /**\n * This source code is quoted from rc-slider.\n * homepage: https://github.com/react-component/slider\n */\n\n\nfunction isEventFromHandle(e, handles) {\n return Object.keys(handles).some(function (key) {\n return e.target === (0, _reactDom.findDOMNode)(handles[key]);\n });\n}\n\nfunction isValueOutOfRange(value, _ref) {\n var min = _ref.min,\n max = _ref.max;\n\n return value < min || value > max;\n}\n\nfunction isNotTouchEvent(e) {\n //event.touches,多点触碰时的位置数组,比如缩放手势必须要用两指的触摸点,就是一个数组\n return e.touches.length > 1 || e.type.toLowerCase() === 'touchend' && e.touches.length > 0;\n}\n\nfunction getClosestPoint(val, _ref2) {\n var marks = _ref2.marks,\n step = _ref2.step,\n min = _ref2.min;\n\n var points = Object.keys(marks).map(parseFloat);\n if (step !== null) {\n var closestStep = Math.round((val - min) / step) * step + min; //Math.round(((val - min) / step) * step) + min;\n points.push(closestStep);\n }\n var diffs = points.map(function (point) {\n return Math.abs(val - point);\n });\n return points[diffs.indexOf(Math.min.apply(Math, _toConsumableArray(diffs)))];\n}\n\nfunction getPrecision(step) {\n var stepString = step.toString();\n var precision = 0;\n if (stepString.indexOf('.') >= 0) {\n precision = stepString.length - stepString.indexOf('.') - 1;\n }\n return precision;\n}\n\nfunction getMousePosition(vertical, e) {\n return vertical ? e.clientY : e.pageX;\n}\n\nfunction getTouchPosition(vertical, e) {\n return vertical ? e.touches[0].clientY : e.touches[0].pageX;\n}\n\nfunction getHandleCenterPosition(vertical, handle) {\n var coords = handle.getBoundingClientRect();\n return vertical ? coords.top + coords.height * 0.5 : coords.left + coords.width * 0.5;\n}\n\nfunction ensureValueInRange(val, _ref3) {\n var max = _ref3.max,\n min = _ref3.min;\n\n if (val <= min) {\n return min;\n }\n if (val >= max) {\n return max;\n }\n return val;\n}\n\nfunction ensureValuePrecision(val, props) {\n var step = props.step;\n\n var closestPoint = getClosestPoint(val, props);\n return step === null ? closestPoint : parseFloat(closestPoint.toFixed(getPrecision(step)));\n}\n\nfunction pauseEvent(e) {\n e.stopPropagation();\n e.preventDefault();\n}\n\nfunction getKeyboardValueMutator(e) {\n switch (e.keyCode) {\n case _keyCode2[\"default\"].UP:\n case _keyCode2[\"default\"].RIGHT:\n return function (value, props) {\n return value + props.step;\n };\n\n case _keyCode2[\"default\"].DOWN:\n case _keyCode2[\"default\"].LEFT:\n return function (value, props) {\n return value - props.step;\n };\n\n case _keyCode2[\"default\"].END:\n return function (value, props) {\n return props.max;\n };\n case _keyCode2[\"default\"].HOME:\n return function (value, props) {\n return props.min;\n };\n case _keyCode2[\"default\"].PAGE_UP:\n return function (value, props) {\n return value + props.step * 2;\n };\n case _keyCode2[\"default\"].PAGE_DOWN:\n return function (value, props) {\n return value - props.step * 2;\n };\n\n default:\n return undefined;\n }\n}\n\n/***/ }),\n/* 198 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = createChainableTypeChecker;\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n// Mostly taken from ReactPropTypes.\n\n/* This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\n\nfunction createChainableTypeChecker(validate) {\n function checkType(isRequired, props, propName, componentName, location, propFullName) {\n var componentNameSafe = componentName || '<>';\n var propFullNameSafe = propFullName || propName;\n\n if (props[propName] == null) {\n if (isRequired) {\n return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));\n }\n\n return null;\n }\n\n for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {\n args[_key - 6] = arguments[_key];\n }\n\n return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n}\n\n/***/ }),\n/* 199 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = createChainableTypeChecker;\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n// Mostly taken from ReactPropTypes.\n\n/* This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\n\nfunction createChainableTypeChecker(validate) {\n function checkType(isRequired, props, propName, componentName, location, propFullName) {\n var componentNameSafe = componentName || '<>';\n var propFullNameSafe = propFullName || propName;\n\n if (props[propName] == null) {\n if (isRequired) {\n return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));\n }\n\n return null;\n }\n\n for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {\n args[_key - 6] = arguments[_key];\n }\n\n return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n}\n\n/***/ }),\n/* 200 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _interopRequireDefault = __webpack_require__(18);\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar _inDOM = _interopRequireDefault(__webpack_require__(84));\n\nvar _default = function () {\n // HTML DOM and SVG DOM may have different support levels,\n // so we need to check on context instead of a document root element.\n return _inDOM.default ? function (context, node) {\n if (context.contains) {\n return context.contains(node);\n } else if (context.compareDocumentPosition) {\n return context === node || !!(context.compareDocumentPosition(node) & 16);\n } else {\n return fallback(context, node);\n }\n } : fallback;\n}();\n\nexports.default = _default;\n\nfunction fallback(context, node) {\n if (node) do {\n if (node === context) return true;\n } while (node = node.parentNode);\n return false;\n}\n\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 201 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = getWindow;\n\nfunction getWindow(node) {\n return node === node.window ? node : node.nodeType === 9 ? node.defaultView || node.parentWindow : false;\n}\n\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 202 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.destroyFns = undefined;\n\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\nvar _extends2;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _events = __webpack_require__(163);\n\nvar _events2 = _interopRequireDefault(_events);\n\nvar _ownerDocument = __webpack_require__(22);\n\nvar _ownerDocument2 = _interopRequireDefault(_ownerDocument);\n\nvar _inDOM = __webpack_require__(25);\n\nvar _inDOM2 = _interopRequireDefault(_inDOM);\n\nvar _scrollbarSize = __webpack_require__(104);\n\nvar _scrollbarSize2 = _interopRequireDefault(_scrollbarSize);\n\nvar _scrollTop = __webpack_require__(45);\n\nvar _scrollTop2 = _interopRequireDefault(_scrollTop);\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _Modal = __webpack_require__(164);\n\nvar _Modal2 = _interopRequireDefault(_Modal);\n\nvar _isOverflowing = __webpack_require__(105);\n\nvar _isOverflowing2 = _interopRequireDefault(_isOverflowing);\n\nvar _tinperBeeCore = __webpack_require__(46);\n\nvar _beeTransition = __webpack_require__(1596);\n\nvar _ModalBody = __webpack_require__(1600);\n\nvar _ModalBody2 = _interopRequireDefault(_ModalBody);\n\nvar _ModalDialog = __webpack_require__(1601);\n\nvar _ModalDialog2 = _interopRequireDefault(_ModalDialog);\n\nvar _ModalFooter = __webpack_require__(1607);\n\nvar _ModalFooter2 = _interopRequireDefault(_ModalFooter);\n\nvar _ModalHeader = __webpack_require__(1608);\n\nvar _ModalHeader2 = _interopRequireDefault(_ModalHeader);\n\nvar _ModalTitle = __webpack_require__(1609);\n\nvar _ModalTitle2 = _interopRequireDefault(_ModalTitle);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar propTypes = _extends({}, _Modal2[\"default\"].propTypes, _ModalDialog2[\"default\"].propTypes, (_extends2 = {\n\n /**\n * 是否弹出遮罩层/遮罩层点击是否触发关闭\n */\n backdrop: _propTypes2[\"default\"].oneOf(['static', true, false]),\n\n /**\n * 点击遮罩层是否允许关闭\n */\n backdropClosable: _propTypes2[\"default\"].bool,\n /**\n * esc触发关闭\n */\n keyboard: _propTypes2[\"default\"].bool,\n\n /**\n * 显隐时是否使用动画\n */\n animation: _propTypes2[\"default\"].bool,\n\n /**\n * 传递给模态框的样式\n */\n dialogComponentClass: _tinperBeeCore.elementType,\n\n /**\n * 自动设置焦点\n */\n autoFocus: _propTypes2[\"default\"].bool,\n\n /**\n * 防止打开时焦点离开模态框\n */\n enforceFocus: _propTypes2[\"default\"].bool,\n\n /**\n * 是否打开模态框\n */\n show: _propTypes2[\"default\"].bool,\n\n /**\n * 关闭时的钩子函数\n */\n onHide: _propTypes2[\"default\"].func,\n\n onEnter: _propTypes2[\"default\"].func,\n\n onEntering: _propTypes2[\"default\"].func,\n\n onEntered: _propTypes2[\"default\"].func,\n\n onExit: _propTypes2[\"default\"].func,\n\n onExiting: _propTypes2[\"default\"].func,\n\n onExited: _propTypes2[\"default\"].func,\n\n containerClassName: _propTypes2[\"default\"].string\n}, _defineProperty(_extends2, 'containerClassName', _propTypes2[\"default\"].string), _defineProperty(_extends2, 'container', _Modal2[\"default\"].propTypes.container), _defineProperty(_extends2, 'size', _propTypes2[\"default\"].oneOf([\"sm\", \"lg\", \"xlg\", \"\"])), _defineProperty(_extends2, 'width', _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].number, _propTypes2[\"default\"].string])), _defineProperty(_extends2, 'draggable', _propTypes2[\"default\"].bool), _defineProperty(_extends2, 'resizable', _propTypes2[\"default\"].bool), _defineProperty(_extends2, 'resizeClassName', _propTypes2[\"default\"].string), _defineProperty(_extends2, 'onResizeStart', _propTypes2[\"default\"].func), _defineProperty(_extends2, 'onResize', _propTypes2[\"default\"].func), _defineProperty(_extends2, 'onResizeStop', _propTypes2[\"default\"].func), _defineProperty(_extends2, 'minWidth', _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].number, _propTypes2[\"default\"].string])), _defineProperty(_extends2, 'minHeight', _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].number, _propTypes2[\"default\"].string])), _defineProperty(_extends2, 'maxWidth', _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].number, _propTypes2[\"default\"].string])), _defineProperty(_extends2, 'maxHeight', _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].number, _propTypes2[\"default\"].string])), _defineProperty(_extends2, 'bounds', _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].string, _propTypes2[\"default\"].object])), _defineProperty(_extends2, 'className', _propTypes2[\"default\"].string), _defineProperty(_extends2, 'centered', _propTypes2[\"default\"].bool), _extends2));\n\nvar defaultProps = _extends({}, _Modal2[\"default\"].defaultProps, {\n backdropClosable: true,\n animation: true,\n dialogComponentClass: _ModalDialog2[\"default\"],\n draggable: false,\n resizable: false,\n clsPrefix: 'u-modal',\n className: ''\n});\n\nvar ModalFuncProps = {\n prefixCls: _propTypes2[\"default\"].string,\n className: _propTypes2[\"default\"].string,\n show: _propTypes2[\"default\"].bool,\n title: _react2[\"default\"].ReactNode,\n content: _react2[\"default\"].ReactNode,\n onOk: _propTypes2[\"default\"].func,\n onCancel: _propTypes2[\"default\"].func,\n width: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].number, _propTypes2[\"default\"].string]),\n okText: _propTypes2[\"default\"].string,\n okType: _propTypes2[\"default\"].string,\n cancelText: _propTypes2[\"default\"].string,\n icon: _react2[\"default\"].ReactNode,\n backdrop: _propTypes2[\"default\"].oneOf(['static', true, false])\n};\n\nvar ModalFunc = function ModalFunc(props) {\n destroy = function destroy() {};\n update = function update(newConfig) {};\n};\n\nvar destroyFns = exports.destroyFns = [];\n\nvar childContextTypes = {\n $u_modal: _propTypes2[\"default\"].shape({\n onHide: _propTypes2[\"default\"].func\n })\n};\n\nvar Modal = function (_React$Component) {\n _inherits(Modal, _React$Component);\n\n function Modal(props, context) {\n _classCallCheck(this, Modal);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context));\n\n _this.clearCenteredCls = function () {\n var centered = _this.state.centered;\n\n if (!centered) {\n return;\n }\n _this.offsetTop = _this.getOffsetTop();\n _this.setState({\n centered: false\n });\n };\n\n _this.state = {\n style: {},\n centered: props.centered,\n draging: false,\n draged: false\n };\n _this.offsetTop = 0;\n _this.handleEntering = _this.handleEntering.bind(_this);\n _this.handleExited = _this.handleExited.bind(_this);\n _this.handleWindowResize = _this.handleWindowResize.bind(_this);\n _this.handleDialogClick = _this.handleDialogClick.bind(_this);\n return _this;\n }\n\n Modal.prototype.getChildContext = function getChildContext() {\n return {\n $u_modal: {\n onHide: this.props.onHide\n }\n };\n };\n\n Modal.prototype.componentWillUnmount = function componentWillUnmount() {\n // Clean up the listener if we need to.\n this.handleExited();\n };\n\n Modal.prototype.handleEntering = function handleEntering() {\n // FIXME: This should work even when animation is disabled.\n _events2[\"default\"].on(window, 'resize', this.handleWindowResize);\n this.updateStyle();\n };\n\n Modal.prototype.handleExited = function handleExited() {\n this.setState({\n draging: false,\n draged: false\n });\n // FIXME: This should work even when animation is disabled.\n _events2[\"default\"].off(window, 'resize', this.handleWindowResize);\n };\n\n Modal.prototype.handleWindowResize = function handleWindowResize() {\n this.updateStyle();\n };\n\n Modal.prototype.handleDialogClick = function handleDialogClick(e) {\n if (e.target !== e.currentTarget) {\n return;\n }\n\n this.props.onHide();\n };\n\n Modal.prototype.updateStyle = function updateStyle() {\n if (!_inDOM2[\"default\"] || !this._modal) {\n return;\n }\n\n var dialogNode = this._modal.getDialogElement();\n var dialogHeight = dialogNode.scrollHeight;\n\n var document = (0, _ownerDocument2[\"default\"])(dialogNode);\n var bodyIsOverflowing = false;\n if (this.props.container) {\n bodyIsOverflowing = (0, _isOverflowing2[\"default\"])(_reactDom2[\"default\"].findDOMNode(this.props.container));\n }\n var modalIsOverflowing = dialogHeight > document.documentElement.clientHeight;\n\n this.setState({\n style: {\n paddingRight: bodyIsOverflowing && !modalIsOverflowing ? (0, _scrollbarSize2[\"default\"])() : undefined,\n paddingLeft: !bodyIsOverflowing && modalIsOverflowing ? (0, _scrollbarSize2[\"default\"])() : undefined\n }\n });\n };\n //ResizeStart 时,若模态框设置了 `centered` ,需要把居中属性移除,并通过 offsetTop 制造垂直居中的假象\n //fixbug: Resize 和 centered 一起使用时,拖拽交互不正确\n\n\n //计算 ModalDialog 的 offsetTop\n Modal.prototype.getOffsetTop = function getOffsetTop() {\n var modalDialog = document.getElementsByClassName(\"u-modal-dialog\") && document.getElementsByClassName(\"u-modal-dialog\")[0];\n var topPos = modalDialog && modalDialog.offsetTop;\n return topPos;\n };\n\n Modal.prototype.render = function render() {\n var _this2 = this;\n\n var _props = this.props,\n backdrop = _props.backdrop,\n backdropClosable = _props.backdropClosable,\n animation = _props.animation,\n show = _props.show,\n Dialog = _props.dialogComponentClass,\n className = _props.className,\n clsPrefix = _props.clsPrefix,\n _props$style = _props.style,\n style = _props$style === undefined ? {} : _props$style,\n size = _props.size,\n width = _props.width,\n children = _props.children,\n onEntering = _props.onEntering,\n onExited = _props.onExited,\n backdropClassName = _props.backdropClassName,\n containerClassName = _props.containerClassName,\n draggable = _props.draggable,\n resizeClassName = _props.resizeClassName,\n bounds = _props.bounds,\n container = _props.container,\n onStart = _props.onStart,\n onStop = _props.onStop,\n props = _objectWithoutProperties(_props, ['backdrop', 'backdropClosable', 'animation', 'show', 'dialogComponentClass', 'className', 'clsPrefix', 'style', 'size', 'width', 'children', 'onEntering', 'onExited', 'backdropClassName', 'containerClassName', 'draggable', 'resizeClassName', 'bounds', 'container', 'onStart', 'onStop']);\n\n var _state = this.state,\n centered = _state.centered,\n draging = _state.draging,\n draged = _state.draged;\n\n var dialogMarginTop = 30;\n //ResizeStart 时,计算 ModalDialog 的 offsetTop\n var topPosStyle = this.offsetTop > 0 ? { top: this.offsetTop - dialogMarginTop } : null;\n\n var _splitComponent = (0, _tinperBeeCore.splitComponent)(props, _Modal2[\"default\"]),\n _splitComponent2 = _slicedToArray(_splitComponent, 2),\n baseModalProps = _splitComponent2[0],\n dialogProps = _splitComponent2[1];\n\n var inClassName = show && !animation && 'in';\n\n var backdropClasses = _defineProperty({}, clsPrefix + '-backdrop', true);\n var containerClasses = _defineProperty({}, clsPrefix + '-open', true);\n if (!!centered) {\n className += ' ' + clsPrefix + '-centered';\n }\n if (draging) {\n className += ' draging';\n }\n if (draged) {\n className += ' draged';\n }\n if (Number(width)) width += 'px';\n\n var styleRes = _extends({}, this.state.style, style, topPosStyle);\n if (width) {\n _extends(styleRes, { width: width });\n }\n return _react2[\"default\"].createElement(\n _Modal2[\"default\"],\n _extends({}, baseModalProps, {\n ref: function ref(c) {\n _this2._modal = c;\n },\n show: show,\n onEntering: (0, _tinperBeeCore.createChainedFunction)(onEntering, this.handleEntering),\n onExited: (0, _tinperBeeCore.createChainedFunction)(onExited, this.handleExited),\n backdrop: backdrop,\n backdropClassName: (0, _classnames2[\"default\"])(backdropClasses, inClassName, backdropClassName),\n containerClassName: (0, _classnames2[\"default\"])(containerClasses, containerClassName),\n transition: animation ? _beeTransition.Fade : undefined,\n dialogTransitionTimeout: Modal.TRANSITION_DURATION,\n backdropTransitionTimeout: Modal.BACKDROP_TRANSITION_DURATION,\n container: container\n }),\n _react2[\"default\"].createElement(\n Dialog,\n _extends({}, dialogProps, {\n style: styleRes,\n className: (0, _classnames2[\"default\"])(className, inClassName, backdropClassName),\n onClick: backdrop === true && !!backdropClosable ? this.handleDialogClick : null,\n size: size,\n draggable: draggable,\n bounds: bounds,\n resizeClassName: resizeClassName,\n clearCenteredCls: this.clearCenteredCls,\n onStart: function onStart() {\n _this2.setState({\n draging: true,\n draged: false\n });\n },\n onStop: function onStop() {\n _this2.setState({\n draging: false,\n draged: true\n });\n }\n }),\n children\n )\n );\n };\n\n return Modal;\n}(_react2[\"default\"].Component);\n\nModal.info = ModalFunc;\nModal.success = ModalFunc;\nModal.error = ModalFunc;\nModal.warn = ModalFunc;\nModal.warning = ModalFunc;\nModal.confirm = ModalFunc;\n\nModal.destroyAll = function () {\n return;\n};\n\nModal.propTypes = propTypes;\nModal.defaultProps = defaultProps;\nModal.childContextTypes = childContextTypes;\n\nModal.Body = _ModalBody2[\"default\"];\nModal.Header = _ModalHeader2[\"default\"];\nModal.Title = _ModalTitle2[\"default\"];\nModal.Footer = _ModalFooter2[\"default\"];\n\nModal.Dialog = _ModalDialog2[\"default\"];\n\nModal.TRANSITION_DURATION = 200000;\nModal.BACKDROP_TRANSITION_DURATION = 10000;\n\nexports[\"default\"] = Modal;\n\n/***/ }),\n/* 203 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = createChainableTypeChecker;\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n// Mostly taken from ReactPropTypes.\n\n/* This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\n\nfunction createChainableTypeChecker(validate) {\n function checkType(isRequired, props, propName, componentName, location, propFullName) {\n var componentNameSafe = componentName || '<>';\n var propFullNameSafe = propFullName || propName;\n\n if (props[propName] == null) {\n if (isRequired) {\n return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));\n }\n\n return null;\n }\n\n for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {\n args[_key - 6] = arguments[_key];\n }\n\n return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n}\n\n/***/ }),\n/* 204 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = undefined;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _properties = __webpack_require__(27);\n\nvar _properties2 = _interopRequireDefault(_properties);\n\nvar _on = __webpack_require__(17);\n\nvar _on2 = _interopRequireDefault(_on);\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar transitionEndEvent = _properties2[\"default\"].end;\n\n//设置状态码\nvar UNMOUNTED = exports.UNMOUNTED = 0;\nvar EXITED = exports.EXITED = 1;\nvar ENTERING = exports.ENTERING = 2;\nvar ENTERED = exports.ENTERED = 3;\nvar EXITING = exports.EXITING = 4;\n\nvar propTypes = {\n /**\n * 是否触发动画\n */\n \"in\": _propTypes2[\"default\"].bool,\n\n /**\n * 不显示的时候是否移除组件\n */\n unmountOnExit: _propTypes2[\"default\"].bool,\n\n /**\n * 如果设置为默认显示,挂载时显示动画\n */\n transitionAppear: _propTypes2[\"default\"].bool,\n\n /**\n * 设置超时时间,防止出现问题,可设置为>=动画时间\n */\n timeout: _propTypes2[\"default\"].number,\n\n /**\n * 退出组件时添加的class\n */\n exitedClassName: _propTypes2[\"default\"].string,\n /**\n * 退出组件中添加的class\n */\n exitingClassName: _propTypes2[\"default\"].string,\n /**\n * 进入动画后添加的class\n */\n enteredClassName: _propTypes2[\"default\"].string,\n /**\n * 进入动画时添加的class\n */\n enteringClassName: _propTypes2[\"default\"].string,\n\n /**\n * 进入动画开始时的钩子函数\n */\n onEnter: _propTypes2[\"default\"].func,\n /**\n * 进入动画中的钩子函数\n */\n onEntering: _propTypes2[\"default\"].func,\n /**\n * 进入动画后的钩子函数\n */\n onEntered: _propTypes2[\"default\"].func,\n /**\n * 退出动画开始时的钩子函数\n */\n onExit: _propTypes2[\"default\"].func,\n /**\n * 退出动画中的钩子函数\n */\n onExiting: _propTypes2[\"default\"].func,\n /**\n * 退出动画后的钩子函数\n */\n onExited: _propTypes2[\"default\"].func\n};\n\nfunction noop() {}\n\nvar defaultProps = {\n \"in\": false,\n unmountOnExit: false,\n transitionAppear: false,\n timeout: 5000,\n onEnter: noop,\n onEntering: noop,\n onEntered: noop,\n onExit: noop,\n onExiting: noop,\n onExited: noop\n};\n\n/**\n * 动画组件\n */\n\nvar Transition = function (_Component) {\n _inherits(Transition, _Component);\n\n function Transition(props, context) {\n _classCallCheck(this, Transition);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));\n\n var initialStatus = void 0;\n if (props[\"in\"]) {\n // 在componentdidmount时开始执行动画\n initialStatus = props.transitionAppear ? EXITED : ENTERED;\n } else {\n initialStatus = props.unmountOnExit ? UNMOUNTED : EXITED;\n }\n _this.state = { status: initialStatus };\n\n _this.nextCallback = null;\n return _this;\n }\n\n Transition.prototype.componentDidMount = function componentDidMount() {\n if (this.props.transitionAppear && this.props[\"in\"]) {\n this.performEnter(this.props);\n }\n };\n\n Transition.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n if (nextProps[\"in\"] && this.props.unmountOnExit) {\n if (this.state.status === UNMOUNTED) {\n // 在componentDidUpdate执行动画.\n this.setState({ status: EXITED });\n }\n } else {\n this._needsUpdate = true;\n }\n };\n\n Transition.prototype.componentDidUpdate = function componentDidUpdate() {\n var status = this.state.status;\n\n if (this.props.unmountOnExit && status === EXITED) {\n // 当使用unmountOnExit时,exited为exiting和unmont的过渡状态\n if (this.props[\"in\"]) {\n this.performEnter(this.props);\n } else {\n this.setState({ status: UNMOUNTED });\n }\n\n return;\n }\n\n // 确保只响应prop变化\n if (this._needsUpdate) {\n this._needsUpdate = false;\n\n if (this.props[\"in\"]) {\n if (status === EXITING) {\n this.performEnter(this.props);\n } else if (status === EXITED) {\n this.performEnter(this.props);\n }\n // 其他,当我们已经输入或输出\n } else {\n if (status === ENTERING || status === ENTERED) {\n this.performExit(this.props);\n }\n // 我们已经输入或输出完成\n }\n }\n };\n\n Transition.prototype.componentWillUnmount = function componentWillUnmount() {\n this.cancelNextCallback();\n };\n\n Transition.prototype.performEnter = function performEnter(props) {\n var _this2 = this;\n\n this.cancelNextCallback();\n var node = _reactDom2[\"default\"].findDOMNode(this);\n\n // 这里接收新props\n props.onEnter(node);\n\n this.safeSetState({ status: ENTERING }, function () {\n _this2.props.onEntering(node);\n\n _this2.onTransitionEnd(node, function () {\n _this2.safeSetState({ status: ENTERED }, function () {\n _this2.props.onEntered(node);\n });\n });\n });\n };\n\n Transition.prototype.performExit = function performExit(props) {\n var _this3 = this;\n\n this.cancelNextCallback();\n var node = _reactDom2[\"default\"].findDOMNode(this);\n\n props.onExit(node);\n\n this.safeSetState({ status: EXITING }, function () {\n _this3.props.onExiting(node);\n\n _this3.onTransitionEnd(node, function () {\n _this3.safeSetState({ status: EXITED }, function () {\n _this3.props.onExited(node);\n });\n });\n });\n };\n\n Transition.prototype.cancelNextCallback = function cancelNextCallback() {\n if (this.nextCallback !== null) {\n this.nextCallback.cancel();\n this.nextCallback = null;\n }\n };\n\n Transition.prototype.safeSetState = function safeSetState(nextState, callback) {\n // 确保在组件销毁后挂起的setState被消除\n this.setState(nextState, this.setNextCallback(callback));\n };\n\n Transition.prototype.setNextCallback = function setNextCallback(callback) {\n var _this4 = this;\n\n var active = true;\n\n this.nextCallback = function (event) {\n if (active) {\n active = false;\n _this4.nextCallback = null;\n\n callback(event);\n }\n };\n\n this.nextCallback.cancel = function () {\n active = false;\n };\n\n return this.nextCallback;\n };\n\n Transition.prototype.onTransitionEnd = function onTransitionEnd(node, handler) {\n this.setNextCallback(handler);\n\n if (node) {\n if (transitionEndEvent == undefined) {\n this.nextCallback();\n } else {\n (0, _on2[\"default\"])(node, transitionEndEvent, this.nextCallback);\n }\n setTimeout(this.nextCallback, this.props.timeout);\n } else {\n setTimeout(this.nextCallback, 0);\n }\n };\n\n Transition.prototype.render = function render() {\n var status = this.state.status;\n if (status === UNMOUNTED) {\n return null;\n }\n\n var _props = this.props,\n children = _props.children,\n className = _props.className,\n childProps = _objectWithoutProperties(_props, ['children', 'className']);\n\n Object.keys(Transition.propTypes).forEach(function (key) {\n return delete childProps[key];\n });\n\n var transitionClassName = void 0;\n if (status === EXITED) {\n transitionClassName = this.props.exitedClassName;\n } else if (status === ENTERING) {\n transitionClassName = this.props.enteringClassName;\n } else if (status === ENTERED) {\n transitionClassName = this.props.enteredClassName;\n } else if (status === EXITING) {\n transitionClassName = this.props.exitingClassName;\n }\n\n var child = _react2[\"default\"].Children.only(children);\n return _react2[\"default\"].cloneElement(child, _extends({}, childProps, {\n className: (0, _classnames2[\"default\"])(child.props.className, className, transitionClassName)\n }));\n };\n\n return Transition;\n}(_react.Component);\n\nTransition.propTypes = propTypes;\n\nTransition.defaultProps = defaultProps;\n\nexports[\"default\"] = Transition;\n\n/***/ }),\n/* 205 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _Button = __webpack_require__(1611);\n\nvar _Button2 = _interopRequireDefault(_Button);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nexports[\"default\"] = _Button2[\"default\"];\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 206 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**\n * This source code is quoted from rc-select.\n * homepage: https://github.com/react-component/select\n */\n\n\nvar Option = function (_React$Component) {\n _inherits(Option, _React$Component);\n\n function Option() {\n _classCallCheck(this, Option);\n\n return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n return Option;\n}(_react2[\"default\"].Component);\n\nOption.propTypes = {\n value: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].string, _propTypes2[\"default\"].number])\n};\nOption.isSelectOption = true;\nexports[\"default\"] = Option;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 207 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.UNSELECTABLE_ATTRIBUTE = exports.UNSELECTABLE_STYLE = undefined;\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nexports.toTitle = toTitle;\nexports.getValuePropValue = getValuePropValue;\nexports.getPropValue = getPropValue;\nexports.isMultiple = isMultiple;\nexports.isCombobox = isCombobox;\nexports.isMultipleOrTags = isMultipleOrTags;\nexports.isMultipleOrTagsOrCombobox = isMultipleOrTagsOrCombobox;\nexports.isSingleMode = isSingleMode;\nexports.toArray = toArray;\nexports.getMapKey = getMapKey;\nexports.preventDefaultEvent = preventDefaultEvent;\nexports.findIndexInValueBySingleValue = findIndexInValueBySingleValue;\nexports.getLabelFromPropsValue = getLabelFromPropsValue;\nexports.getSelectKeys = getSelectKeys;\nexports.findFirstMenuItem = findFirstMenuItem;\nexports.includesSeparators = includesSeparators;\nexports.splitBySeparators = splitBySeparators;\nexports.defaultFilterFn = defaultFilterFn;\nexports.validateOptionValue = validateOptionValue;\nexports.saveRef = saveRef;\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction toTitle(title) {\n if (typeof title === 'string') {\n return title;\n }\n return null;\n}\n\nfunction getValuePropValue(child) {\n if (!child) {\n return null;\n }\n\n var props = child.props;\n if ('value' in props) {\n return props.value;\n }\n if (child.key) {\n return child.key;\n }\n if (child.type && child.type.isSelectOptGroup && props.label) {\n return props.label;\n }\n throw new Error('Need at least a key or a value or a label (only for OptGroup) for ' + child);\n}\n\nfunction getPropValue(child, prop) {\n if (prop === 'value') {\n return getValuePropValue(child);\n }\n return child.props[prop];\n}\n\nfunction isMultiple(props) {\n return props.multiple;\n}\n\nfunction isCombobox(props) {\n return props.combobox;\n}\n\nfunction isMultipleOrTags(props) {\n return props.multiple || props.tags;\n}\n\nfunction isMultipleOrTagsOrCombobox(props) {\n return isMultipleOrTags(props) || isCombobox(props);\n}\n\nfunction isSingleMode(props) {\n return !isMultipleOrTagsOrCombobox(props);\n}\n\nfunction toArray(value) {\n var ret = value;\n if (value === undefined) {\n ret = [];\n } else if (!Array.isArray(value)) {\n ret = [value];\n }\n return ret;\n}\n\nfunction getMapKey(value) {\n return (typeof value === 'undefined' ? 'undefined' : _typeof(value)) + '-' + value;\n}\n\nfunction preventDefaultEvent(e) {\n e.preventDefault();\n}\n\nfunction findIndexInValueBySingleValue(value, singleValue) {\n var index = -1;\n for (var i = 0; i < value.length; i++) {\n if (value[i] === singleValue) {\n index = i;\n break;\n }\n }\n return index;\n}\n\nfunction getLabelFromPropsValue(value, key) {\n var label = void 0;\n value = toArray(value);\n for (var i = 0; i < value.length; i++) {\n if (value[i].key === key) {\n label = value[i].label;\n break;\n }\n }\n return label;\n}\n\nfunction getSelectKeys(menuItems, value) {\n if (value === null || value === undefined) {\n return [];\n }\n var selectedKeys = [];\n _react2[\"default\"].Children.forEach(menuItems, function (item) {\n if (item.type.isMenuItemGroup) {\n selectedKeys = selectedKeys.concat(getSelectKeys(item.props.children, value));\n } else {\n var itemValue = getValuePropValue(item);\n var itemKey = item.key;\n if (findIndexInValueBySingleValue(value, itemValue) !== -1 && itemKey) {\n selectedKeys.push(itemKey);\n }\n }\n });\n return selectedKeys;\n}\n\nvar UNSELECTABLE_STYLE = exports.UNSELECTABLE_STYLE = {\n userSelect: 'none',\n WebkitUserSelect: 'none'\n};\n\nvar UNSELECTABLE_ATTRIBUTE = exports.UNSELECTABLE_ATTRIBUTE = {\n unselectable: 'on'\n};\n\nfunction findFirstMenuItem(children) {\n for (var i = 0; i < children.length; i++) {\n var child = children[i];\n if (child.type.isMenuItemGroup) {\n var found = findFirstMenuItem(child.props.children);\n if (found) {\n return found;\n }\n } else if (!child.props.disabled) {\n return child;\n }\n }\n return null;\n}\n\nfunction includesSeparators(string, separators) {\n for (var i = 0; i < separators.length; ++i) {\n if (string.lastIndexOf(separators[i]) > 0) {\n return true;\n }\n }\n return false;\n}\n\nfunction splitBySeparators(string, separators) {\n var reg = new RegExp('[' + separators.join() + ']');\n return string.split(reg).filter(function (token) {\n return token;\n });\n}\n\nfunction defaultFilterFn(input, child) {\n if (child.props.disabled) {\n return false;\n }\n var value = toArray(getPropValue(child, this.props.optionFilterProp)).join('');\n return value.toLowerCase().indexOf(input.toLowerCase()) > -1;\n}\n\nfunction validateOptionValue(value, props) {\n if (isSingleMode(props) || isMultiple(props)) {\n return;\n }\n if (typeof value !== 'string') {\n throw new Error('Invalid `value` of type `' + (typeof value === 'undefined' ? 'undefined' : _typeof(value)) + '` supplied to Option, ' + 'expected `string` when `tags/combobox` is `true`.');\n }\n}\n\nfunction saveRef(instance, name) {\n return function (node) {\n instance[name] = node;\n };\n}\n\n/***/ }),\n/* 208 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (immutable) */ __webpack_exports__[\"p\"] = warnOnlyTreeNode;\n/* harmony export (immutable) */ __webpack_exports__[\"b\"] = arrDel;\n/* harmony export (immutable) */ __webpack_exports__[\"a\"] = arrAdd;\n/* harmony export (immutable) */ __webpack_exports__[\"o\"] = posToArr;\n/* harmony export (immutable) */ __webpack_exports__[\"l\"] = getPosition;\n/* unused harmony export isTreeNode */\n/* harmony export (immutable) */ __webpack_exports__[\"k\"] = getNodeChildren;\n/* unused harmony export isCheckDisabled */\n/* unused harmony export traverseTreeNodes */\n/* harmony export (immutable) */ __webpack_exports__[\"m\"] = mapChildren;\n/* harmony export (immutable) */ __webpack_exports__[\"j\"] = getDragNodesKeys;\n/* harmony export (immutable) */ __webpack_exports__[\"c\"] = calcDropPosition;\n/* harmony export (immutable) */ __webpack_exports__[\"d\"] = calcSelectedKeys;\n/* harmony export (immutable) */ __webpack_exports__[\"g\"] = convertDataToTree;\n/* harmony export (immutable) */ __webpack_exports__[\"h\"] = convertTreeToEntities;\n/* harmony export (immutable) */ __webpack_exports__[\"n\"] = parseCheckedKeys;\n/* harmony export (immutable) */ __webpack_exports__[\"e\"] = conductCheck;\n/* harmony export (immutable) */ __webpack_exports__[\"f\"] = conductExpandParent;\n/* harmony export (immutable) */ __webpack_exports__[\"i\"] = getDataAndAria;\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_rc_util_es_Children_toArray__ = __webpack_require__(119);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_warning__ = __webpack_require__(533);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_warning___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_warning__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__TreeNode__ = __webpack_require__(534);\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\n\n\n\n\nvar DRAG_SIDE_RANGE = 0.25;\nvar DRAG_MIN_GAP = 2;\nvar onlyTreeNodeWarned = false;\nfunction warnOnlyTreeNode() {\n if (onlyTreeNodeWarned) return;\n onlyTreeNodeWarned = true;\n __WEBPACK_IMPORTED_MODULE_2_warning___default()(false, 'Tree only accept TreeNode as children.');\n}\nfunction arrDel(list, value) {\n var clone = list.slice();\n var index = clone.indexOf(value);\n\n if (index >= 0) {\n clone.splice(index, 1);\n }\n\n return clone;\n}\nfunction arrAdd(list, value) {\n var clone = list.slice();\n\n if (clone.indexOf(value) === -1) {\n clone.push(value);\n }\n\n return clone;\n}\nfunction posToArr(pos) {\n return pos.split('-');\n}\nfunction getPosition(level, index) {\n return \"\".concat(level, \"-\").concat(index);\n}\nfunction isTreeNode(node) {\n return node && node.type && node.type.isTreeNode;\n}\nfunction getNodeChildren(children) {\n return Object(__WEBPACK_IMPORTED_MODULE_1_rc_util_es_Children_toArray__[\"a\" /* default */])(children).filter(isTreeNode);\n}\nfunction isCheckDisabled(node) {\n var _ref = node.props || {},\n disabled = _ref.disabled,\n disableCheckbox = _ref.disableCheckbox,\n checkable = _ref.checkable;\n\n return !!(disabled || disableCheckbox) || checkable === false;\n}\nfunction traverseTreeNodes(treeNodes, callback) {\n function processNode(node, index, parent) {\n var children = node ? node.props.children : treeNodes;\n var pos = node ? getPosition(parent.pos, index) : 0; // Filter children\n\n var childList = getNodeChildren(children); // Process node if is not root\n\n if (node) {\n var data = {\n node: node,\n index: index,\n pos: pos,\n key: node.key || pos,\n parentPos: parent.node ? parent.pos : null\n };\n callback(data);\n } // Process children node\n\n\n __WEBPACK_IMPORTED_MODULE_0_react__[\"Children\"].forEach(childList, function (subNode, subIndex) {\n processNode(subNode, subIndex, {\n node: node,\n pos: pos\n });\n });\n }\n\n processNode(null);\n}\n/**\n * Use `rc-util` `toArray` to get the children list which keeps the key.\n * And return single node if children is only one(This can avoid `key` missing check).\n */\n\nfunction mapChildren(children, func) {\n var list = Object(__WEBPACK_IMPORTED_MODULE_1_rc_util_es_Children_toArray__[\"a\" /* default */])(children).map(func);\n\n if (list.length === 1) {\n return list[0];\n }\n\n return list;\n}\nfunction getDragNodesKeys(treeNodes, node) {\n var _node$props = node.props,\n eventKey = _node$props.eventKey,\n pos = _node$props.pos;\n var dragNodesKeys = [];\n traverseTreeNodes(treeNodes, function (_ref2) {\n var key = _ref2.key;\n dragNodesKeys.push(key);\n });\n dragNodesKeys.push(eventKey || pos);\n return dragNodesKeys;\n} // Only used when drag, not affect SSR.\n\nfunction calcDropPosition(event, treeNode) {\n var clientY = event.clientY;\n\n var _treeNode$selectHandl = treeNode.selectHandle.getBoundingClientRect(),\n top = _treeNode$selectHandl.top,\n bottom = _treeNode$selectHandl.bottom,\n height = _treeNode$selectHandl.height;\n\n var des = Math.max(height * DRAG_SIDE_RANGE, DRAG_MIN_GAP);\n\n if (clientY <= top + des) {\n return -1;\n }\n\n if (clientY >= bottom - des) {\n return 1;\n }\n\n return 0;\n}\n/**\n * Return selectedKeys according with multiple prop\n * @param selectedKeys\n * @param props\n * @returns [string]\n */\n\nfunction calcSelectedKeys(selectedKeys, props) {\n if (!selectedKeys) return undefined;\n var multiple = props.multiple;\n\n if (multiple) {\n return selectedKeys.slice();\n }\n\n if (selectedKeys.length) {\n return [selectedKeys[0]];\n }\n\n return selectedKeys;\n}\n/**\n * Since React internal will convert key to string,\n * we need do this to avoid `checkStrictly` use number match\n */\n\nfunction keyListToString(keyList) {\n if (!keyList) return keyList;\n return keyList.map(function (key) {\n return String(key);\n });\n}\n\nvar internalProcessProps = function internalProcessProps(props) {\n return props;\n};\n\nfunction convertDataToTree(treeData, processor) {\n if (!treeData) return [];\n\n var _ref3 = processor || {},\n _ref3$processProps = _ref3.processProps,\n processProps = _ref3$processProps === void 0 ? internalProcessProps : _ref3$processProps;\n\n var list = Array.isArray(treeData) ? treeData : [treeData];\n return list.map(function (_ref4) {\n var children = _ref4.children,\n props = _objectWithoutProperties(_ref4, [\"children\"]);\n\n var childrenNodes = convertDataToTree(children, processor);\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__TreeNode__[\"a\" /* default */], Object.assign({}, processProps(props)), childrenNodes);\n });\n}\n/**\n * Calculate treeNodes entities. `processTreeEntity` is used for `rc-tree-select`\n * @param treeNodes\n * @param processTreeEntity User can customize the entity\n */\n\nfunction convertTreeToEntities(treeNodes) {\n var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n initWrapper = _ref5.initWrapper,\n processEntity = _ref5.processEntity,\n onProcessFinished = _ref5.onProcessFinished;\n\n var posEntities = {};\n var keyEntities = {};\n var wrapper = {\n posEntities: posEntities,\n keyEntities: keyEntities\n };\n\n if (initWrapper) {\n wrapper = initWrapper(wrapper) || wrapper;\n }\n\n traverseTreeNodes(treeNodes, function (item) {\n var node = item.node,\n index = item.index,\n pos = item.pos,\n key = item.key,\n parentPos = item.parentPos;\n var entity = {\n node: node,\n index: index,\n key: key,\n pos: pos\n };\n posEntities[pos] = entity;\n keyEntities[key] = entity; // Fill children\n\n entity.parent = posEntities[parentPos];\n\n if (entity.parent) {\n entity.parent.children = entity.parent.children || [];\n entity.parent.children.push(entity);\n }\n\n if (processEntity) {\n processEntity(entity, wrapper);\n }\n });\n\n if (onProcessFinished) {\n onProcessFinished(wrapper);\n }\n\n return wrapper;\n}\n/**\n * Parse `checkedKeys` to { checkedKeys, halfCheckedKeys } style\n */\n\nfunction parseCheckedKeys(keys) {\n if (!keys) {\n return null;\n } // Convert keys to object format\n\n\n var keyProps;\n\n if (Array.isArray(keys)) {\n // [Legacy] Follow the api doc\n keyProps = {\n checkedKeys: keys,\n halfCheckedKeys: undefined\n };\n } else if (_typeof(keys) === 'object') {\n keyProps = {\n checkedKeys: keys.checked || undefined,\n halfCheckedKeys: keys.halfChecked || undefined\n };\n } else {\n __WEBPACK_IMPORTED_MODULE_2_warning___default()(false, '`checkedKeys` is not an array or an object');\n return null;\n }\n\n keyProps.checkedKeys = keyListToString(keyProps.checkedKeys);\n keyProps.halfCheckedKeys = keyListToString(keyProps.halfCheckedKeys);\n return keyProps;\n}\n/**\n * Conduct check state by the keyList. It will conduct up & from the provided key.\n * If the conduct path reach the disabled or already checked / unchecked node will stop conduct.\n */\n\nfunction conductCheck(\n/** list of keys */\nkeyList,\n/** is check the node or not */\nisCheck,\n/** parsed by `convertTreeToEntities` function in Tree */\nkeyEntities) {\n var checkStatus = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n var checkedKeys = {};\n var halfCheckedKeys = {}; // Record the key has some child checked (include child half checked)\n\n (checkStatus.checkedKeys || []).forEach(function (key) {\n checkedKeys[key] = true;\n });\n (checkStatus.halfCheckedKeys || []).forEach(function (key) {\n halfCheckedKeys[key] = true;\n }); // Conduct up\n\n function conductUp(key) {\n if (checkedKeys[key] === isCheck) return;\n var entity = keyEntities[key];\n if (!entity) return;\n var children = entity.children,\n parent = entity.parent,\n node = entity.node;\n if (isCheckDisabled(node)) return; // Check child node checked status\n\n var everyChildChecked = true;\n var someChildChecked = false; // Child checked or half checked\n\n (children || []).filter(function (child) {\n return !isCheckDisabled(child.node);\n }).forEach(function (_ref6) {\n var childKey = _ref6.key;\n var childChecked = checkedKeys[childKey];\n var childHalfChecked = halfCheckedKeys[childKey];\n if (childChecked || childHalfChecked) someChildChecked = true;\n if (!childChecked) everyChildChecked = false;\n }); // Update checked status\n\n if (isCheck) {\n checkedKeys[key] = everyChildChecked;\n } else {\n checkedKeys[key] = false;\n }\n\n halfCheckedKeys[key] = someChildChecked;\n\n if (parent) {\n conductUp(parent.key);\n }\n } // Conduct down\n\n\n function conductDown(key) {\n if (checkedKeys[key] === isCheck) return;\n var entity = keyEntities[key];\n if (!entity) return;\n var children = entity.children,\n node = entity.node;\n if (isCheckDisabled(node)) return;\n checkedKeys[key] = isCheck;\n (children || []).forEach(function (child) {\n conductDown(child.key);\n });\n }\n\n function conduct(key) {\n var entity = keyEntities[key];\n\n if (!entity) {\n __WEBPACK_IMPORTED_MODULE_2_warning___default()(false, \"'\".concat(key, \"' does not exist in the tree.\"));\n return;\n }\n\n var children = entity.children,\n parent = entity.parent,\n node = entity.node;\n checkedKeys[key] = isCheck;\n if (isCheckDisabled(node)) return; // Conduct down\n\n (children || []).filter(function (child) {\n return !isCheckDisabled(child.node);\n }).forEach(function (child) {\n conductDown(child.key);\n }); // Conduct up\n\n if (parent) {\n conductUp(parent.key);\n }\n }\n\n (keyList || []).forEach(function (key) {\n conduct(key);\n });\n var checkedKeyList = [];\n var halfCheckedKeyList = []; // Fill checked list\n\n Object.keys(checkedKeys).forEach(function (key) {\n if (checkedKeys[key]) {\n checkedKeyList.push(key);\n }\n }); // Fill half checked list\n\n Object.keys(halfCheckedKeys).forEach(function (key) {\n if (!checkedKeys[key] && halfCheckedKeys[key]) {\n halfCheckedKeyList.push(key);\n }\n });\n return {\n checkedKeys: checkedKeyList,\n halfCheckedKeys: halfCheckedKeyList\n };\n}\n/**\n * If user use `autoExpandParent` we should get the list of parent node\n * @param keyList\n * @param keyEntities\n */\n\nfunction conductExpandParent(keyList, keyEntities) {\n var expandedKeys = {};\n\n function conductUp(key) {\n if (expandedKeys[key]) return;\n var entity = keyEntities[key];\n if (!entity) return;\n expandedKeys[key] = true;\n var parent = entity.parent,\n node = entity.node;\n if (node.props && node.props.disabled) return;\n\n if (parent) {\n conductUp(parent.key);\n }\n }\n\n (keyList || []).forEach(function (key) {\n conductUp(key);\n });\n return Object.keys(expandedKeys);\n}\n/**\n * Returns only the data- and aria- key/value pairs\n */\n\nfunction getDataAndAria(props) {\n return Object.keys(props).reduce(function (prev, key) {\n if (key.substr(0, 5) === 'data-' || key.substr(0, 5) === 'aria-') {\n prev[key] = props[key];\n }\n\n return prev;\n }, {});\n}\n\n/***/ }),\n/* 209 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return SHOW_ALL; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"c\", function() { return SHOW_PARENT; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"b\", function() { return SHOW_CHILD; });\nvar SHOW_ALL = 'SHOW_ALL';\nvar SHOW_PARENT = 'SHOW_PARENT';\nvar SHOW_CHILD = 'SHOW_CHILD';\n\n/***/ }),\n/* 210 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"c\", function() { return selectorPropTypes; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"b\", function() { return selectorContextTypes; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_classnames__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_lifecycles_compat__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util__ = __webpack_require__(34);\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (typeof call === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n/**\n * Input Box is in different position for different mode.\n * This not the same design as `Select` cause it's followed by antd 0.x `Select`.\n * We will not follow the new design immediately since antd 3.x is already released.\n *\n * So this file named as Selector to avoid confuse.\n */\n\n\n\n\n\nvar selectorPropTypes = {\n prefixCls: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,\n className: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,\n style: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object,\n open: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n selectorValueList: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.array,\n allowClear: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n showArrow: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n onClick: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n onBlur: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n onFocus: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n removeSelected: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n // Pass by component\n ariaId: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,\n inputIcon: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func]),\n clearIcon: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func])\n};\nvar selectorContextTypes = {\n onSelectorFocus: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired,\n onSelectorBlur: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired,\n onSelectorKeyDown: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired,\n onSelectorClear: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired\n};\n/* harmony default export */ __webpack_exports__[\"a\"] = (function (modeName) {\n var BaseSelector =\n /*#__PURE__*/\n function (_React$Component) {\n _inherits(BaseSelector, _React$Component);\n\n function BaseSelector() {\n var _this;\n\n _classCallCheck(this, BaseSelector);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(BaseSelector).call(this));\n\n _defineProperty(_assertThisInitialized(_this), \"onFocus\", function () {\n var _this$props = _this.props,\n onFocus = _this$props.onFocus,\n focused = _this$props.focused;\n var onSelectorFocus = _this.context.rcTreeSelect.onSelectorFocus;\n\n if (!focused) {\n onSelectorFocus();\n }\n\n if (onFocus) {\n onFocus.apply(void 0, arguments);\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onBlur\", function () {\n var onBlur = _this.props.onBlur;\n var onSelectorBlur = _this.context.rcTreeSelect.onSelectorBlur; // TODO: Not trigger when is inner component get focused\n\n onSelectorBlur();\n\n if (onBlur) {\n onBlur.apply(void 0, arguments);\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"focus\", function () {\n _this.domRef.current.focus();\n });\n\n _defineProperty(_assertThisInitialized(_this), \"blur\", function () {\n _this.domRef.current.focus();\n });\n\n _this.domRef = Object(__WEBPACK_IMPORTED_MODULE_4__util__[\"g\" /* createRef */])();\n return _this;\n }\n\n _createClass(BaseSelector, [{\n key: \"renderClear\",\n value: function renderClear() {\n var _this$props2 = this.props,\n prefixCls = _this$props2.prefixCls,\n allowClear = _this$props2.allowClear,\n selectorValueList = _this$props2.selectorValueList,\n clearIcon = _this$props2.clearIcon;\n var onSelectorClear = this.context.rcTreeSelect.onSelectorClear;\n\n if (!allowClear || !selectorValueList.length || !selectorValueList[0].value) {\n return null;\n }\n\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\"span\", {\n key: \"clear\",\n className: \"\".concat(prefixCls, \"-selection__clear\"),\n onClick: onSelectorClear\n }, typeof clearIcon === 'function' ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(clearIcon, _objectSpread({}, this.props)) : clearIcon);\n }\n }, {\n key: \"renderArrow\",\n value: function renderArrow() {\n var _this$props3 = this.props,\n prefixCls = _this$props3.prefixCls,\n showArrow = _this$props3.showArrow,\n inputIcon = _this$props3.inputIcon;\n\n if (!showArrow) {\n return null;\n }\n\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\"span\", {\n key: \"arrow\",\n className: \"\".concat(prefixCls, \"-arrow\"),\n style: {\n outline: 'none'\n }\n }, typeof inputIcon === 'function' ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(inputIcon, _objectSpread({}, this.props)) : inputIcon);\n }\n }, {\n key: \"render\",\n value: function render() {\n var _classNames;\n\n var _this$props4 = this.props,\n prefixCls = _this$props4.prefixCls,\n className = _this$props4.className,\n style = _this$props4.style,\n open = _this$props4.open,\n focused = _this$props4.focused,\n disabled = _this$props4.disabled,\n allowClear = _this$props4.allowClear,\n onClick = _this$props4.onClick,\n ariaId = _this$props4.ariaId,\n renderSelection = _this$props4.renderSelection,\n renderPlaceholder = _this$props4.renderPlaceholder,\n tabIndex = _this$props4.tabIndex;\n var onSelectorKeyDown = this.context.rcTreeSelect.onSelectorKeyDown;\n var myTabIndex = tabIndex;\n\n if (disabled) {\n myTabIndex = null;\n }\n\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\"span\", {\n style: style,\n onClick: onClick,\n className: __WEBPACK_IMPORTED_MODULE_2_classnames___default()(className, prefixCls, (_classNames = {}, _defineProperty(_classNames, \"\".concat(prefixCls, \"-open\"), open), _defineProperty(_classNames, \"\".concat(prefixCls, \"-focused\"), open || focused), _defineProperty(_classNames, \"\".concat(prefixCls, \"-disabled\"), disabled), _defineProperty(_classNames, \"\".concat(prefixCls, \"-enabled\"), !disabled), _defineProperty(_classNames, \"\".concat(prefixCls, \"-allow-clear\"), allowClear), _classNames)),\n ref: this.domRef,\n role: \"combobox\",\n \"aria-expanded\": open,\n \"aria-owns\": open ? ariaId : undefined,\n \"aria-controls\": open ? ariaId : undefined,\n \"aria-haspopup\": \"listbox\",\n \"aria-disabled\": disabled,\n tabIndex: myTabIndex,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n onKeyDown: onSelectorKeyDown\n }, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\"span\", {\n key: \"selection\",\n className: __WEBPACK_IMPORTED_MODULE_2_classnames___default()(\"\".concat(prefixCls, \"-selection\"), \"\".concat(prefixCls, \"-selection--\").concat(modeName))\n }, renderSelection(), this.renderClear(), this.renderArrow(), renderPlaceholder && renderPlaceholder()));\n }\n }]);\n\n return BaseSelector;\n }(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);\n\n _defineProperty(BaseSelector, \"propTypes\", _objectSpread({}, selectorPropTypes, {\n // Pass by HOC\n renderSelection: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired,\n renderPlaceholder: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n tabIndex: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number\n }));\n\n _defineProperty(BaseSelector, \"contextTypes\", {\n rcTreeSelect: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.shape(_objectSpread({}, selectorContextTypes))\n });\n\n _defineProperty(BaseSelector, \"defaultProps\", {\n tabIndex: 0\n });\n\n Object(__WEBPACK_IMPORTED_MODULE_3_react_lifecycles_compat__[\"polyfill\"])(BaseSelector);\n return BaseSelector;\n});\n\n/***/ }),\n/* 211 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"b\", function() { return popupContextTypes; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_lifecycles_compat__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rc_tree__ = __webpack_require__(538);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util__ = __webpack_require__(34);\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (typeof call === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\n\n\n\n\nvar popupContextTypes = {\n onPopupKeyDown: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired,\n onTreeNodeSelect: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired,\n onTreeNodeCheck: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired\n};\n\nvar BasePopup =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inherits(BasePopup, _React$Component);\n\n function BasePopup(props) {\n var _this;\n\n _classCallCheck(this, BasePopup);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(BasePopup).call(this));\n\n _defineProperty(_assertThisInitialized(_this), \"onTreeExpand\", function (expandedKeyList) {\n var _this$props = _this.props,\n treeExpandedKeys = _this$props.treeExpandedKeys,\n onTreeExpand = _this$props.onTreeExpand,\n onTreeExpanded = _this$props.onTreeExpanded; // Set uncontrolled state\n\n if (!treeExpandedKeys) {\n _this.setState({\n expandedKeyList: expandedKeyList\n }, onTreeExpanded);\n }\n\n if (onTreeExpand) {\n onTreeExpand(expandedKeyList);\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onLoad\", function (loadedKeys) {\n _this.setState({\n loadedKeys: loadedKeys\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"getTree\", function () {\n return _this.treeRef.current;\n });\n\n _defineProperty(_assertThisInitialized(_this), \"getLoadData\", function () {\n var _this$props2 = _this.props,\n loadData = _this$props2.loadData,\n upperSearchValue = _this$props2.upperSearchValue;\n if (upperSearchValue) return null;\n return loadData;\n });\n\n _defineProperty(_assertThisInitialized(_this), \"filterTreeNode\", function (treeNode) {\n var _this$props3 = _this.props,\n upperSearchValue = _this$props3.upperSearchValue,\n treeNodeFilterProp = _this$props3.treeNodeFilterProp;\n var filterVal = treeNode.props[treeNodeFilterProp];\n\n if (typeof filterVal === 'string') {\n return upperSearchValue && filterVal.toUpperCase().indexOf(upperSearchValue) !== -1;\n }\n\n return false;\n });\n\n _defineProperty(_assertThisInitialized(_this), \"renderNotFound\", function () {\n var _this$props4 = _this.props,\n prefixCls = _this$props4.prefixCls,\n notFoundContent = _this$props4.notFoundContent;\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\"span\", {\n className: \"\".concat(prefixCls, \"-not-found\")\n }, notFoundContent);\n });\n\n var treeDefaultExpandAll = props.treeDefaultExpandAll,\n treeDefaultExpandedKeys = props.treeDefaultExpandedKeys,\n keyEntities = props.keyEntities; // TODO: make `expandedKeyList` control\n\n var _expandedKeyList = treeDefaultExpandedKeys;\n\n if (treeDefaultExpandAll) {\n _expandedKeyList = Object.keys(keyEntities);\n }\n\n _this.state = {\n keyList: [],\n expandedKeyList: _expandedKeyList,\n // Cache `expandedKeyList` when tree is in filter. This is used in `getDerivedStateFromProps`\n cachedExpandedKeyList: [],\n // eslint-disable-line react/no-unused-state\n loadedKeys: []\n };\n _this.treeRef = Object(__WEBPACK_IMPORTED_MODULE_4__util__[\"g\" /* createRef */])();\n return _this;\n }\n\n _createClass(BasePopup, [{\n key: \"render\",\n value: function render() {\n var _this$state = this.state,\n keyList = _this$state.keyList,\n expandedKeyList = _this$state.expandedKeyList,\n loadedKeys = _this$state.loadedKeys;\n var _this$props5 = this.props,\n prefixCls = _this$props5.prefixCls,\n treeNodes = _this$props5.treeNodes,\n filteredTreeNodes = _this$props5.filteredTreeNodes,\n treeIcon = _this$props5.treeIcon,\n treeLine = _this$props5.treeLine,\n treeCheckable = _this$props5.treeCheckable,\n treeCheckStrictly = _this$props5.treeCheckStrictly,\n multiple = _this$props5.multiple,\n ariaId = _this$props5.ariaId,\n renderSearch = _this$props5.renderSearch,\n switcherIcon = _this$props5.switcherIcon,\n searchHalfCheckedKeys = _this$props5.searchHalfCheckedKeys;\n var _this$context$rcTreeS = this.context.rcTreeSelect,\n onPopupKeyDown = _this$context$rcTreeS.onPopupKeyDown,\n onTreeNodeSelect = _this$context$rcTreeS.onTreeNodeSelect,\n onTreeNodeCheck = _this$context$rcTreeS.onTreeNodeCheck;\n var loadData = this.getLoadData();\n var treeProps = {};\n\n if (treeCheckable) {\n treeProps.checkedKeys = keyList;\n } else {\n treeProps.selectedKeys = keyList;\n }\n\n var $notFound;\n var $treeNodes;\n\n if (filteredTreeNodes) {\n if (filteredTreeNodes.length) {\n treeProps.checkStrictly = true;\n $treeNodes = filteredTreeNodes; // Fill halfCheckedKeys\n\n if (treeCheckable && !treeCheckStrictly) {\n treeProps.checkedKeys = {\n checked: keyList,\n halfChecked: searchHalfCheckedKeys\n };\n }\n } else {\n $notFound = this.renderNotFound();\n }\n } else if (!treeNodes || !treeNodes.length) {\n $notFound = this.renderNotFound();\n } else {\n $treeNodes = treeNodes;\n }\n\n var $tree;\n\n if ($notFound) {\n $tree = $notFound;\n } else {\n $tree = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3_rc_tree__[\"b\" /* default */], _extends({\n ref: this.treeRef,\n prefixCls: \"\".concat(prefixCls, \"-tree\"),\n showIcon: treeIcon,\n showLine: treeLine,\n selectable: !treeCheckable,\n checkable: treeCheckable,\n checkStrictly: treeCheckStrictly,\n multiple: multiple,\n loadData: loadData,\n loadedKeys: loadedKeys,\n expandedKeys: expandedKeyList,\n filterTreeNode: this.filterTreeNode,\n onSelect: onTreeNodeSelect,\n onCheck: onTreeNodeCheck,\n onExpand: this.onTreeExpand,\n onLoad: this.onLoad,\n switcherIcon: switcherIcon\n }, treeProps), $treeNodes);\n }\n\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\"div\", {\n role: \"listbox\",\n id: ariaId,\n onKeyDown: onPopupKeyDown,\n tabIndex: -1\n }, renderSearch ? renderSearch() : null, $tree);\n }\n }], [{\n key: \"getDerivedStateFromProps\",\n value: function getDerivedStateFromProps(nextProps, prevState) {\n var _ref = prevState || {},\n _ref$prevProps = _ref.prevProps,\n prevProps = _ref$prevProps === void 0 ? {} : _ref$prevProps,\n loadedKeys = _ref.loadedKeys,\n expandedKeyList = _ref.expandedKeyList,\n cachedExpandedKeyList = _ref.cachedExpandedKeyList;\n\n var valueList = nextProps.valueList,\n valueEntities = nextProps.valueEntities,\n keyEntities = nextProps.keyEntities,\n treeExpandedKeys = nextProps.treeExpandedKeys,\n filteredTreeNodes = nextProps.filteredTreeNodes,\n upperSearchValue = nextProps.upperSearchValue;\n var newState = {\n prevProps: nextProps\n }; // Check value update\n\n if (valueList !== prevProps.valueList) {\n newState.keyList = valueList.map(function (_ref2) {\n var value = _ref2.value;\n return valueEntities[value];\n }).filter(function (entity) {\n return entity;\n }).map(function (_ref3) {\n var key = _ref3.key;\n return key;\n });\n } // Show all when tree is in filter mode\n\n\n if (!treeExpandedKeys && filteredTreeNodes && filteredTreeNodes.length && filteredTreeNodes !== prevProps.filteredTreeNodes) {\n newState.expandedKeyList = Object.keys(keyEntities);\n } // Cache `expandedKeyList` when filter set\n\n\n if (upperSearchValue && !prevProps.upperSearchValue) {\n newState.cachedExpandedKeyList = expandedKeyList;\n } else if (!upperSearchValue && prevProps.upperSearchValue && !treeExpandedKeys) {\n newState.expandedKeyList = cachedExpandedKeyList || [];\n newState.cachedExpandedKeyList = [];\n } // Use expandedKeys if provided\n\n\n if (prevProps.treeExpandedKeys !== treeExpandedKeys) {\n newState.expandedKeyList = treeExpandedKeys;\n } // Clean loadedKeys if key not exist in keyEntities anymore\n\n\n if (nextProps.loadData) {\n newState.loadedKeys = loadedKeys.filter(function (key) {\n return key in keyEntities;\n });\n }\n\n return newState;\n }\n }]);\n\n return BasePopup;\n}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);\n\n_defineProperty(BasePopup, \"propTypes\", {\n prefixCls: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,\n upperSearchValue: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,\n valueList: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.array,\n searchHalfCheckedKeys: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.array,\n valueEntities: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object,\n keyEntities: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object,\n treeIcon: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n treeLine: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n treeNodeFilterProp: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,\n treeCheckable: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node]),\n treeCheckStrictly: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n treeDefaultExpandAll: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n treeDefaultExpandedKeys: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.array,\n treeExpandedKeys: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.array,\n loadData: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n multiple: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n onTreeExpand: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n treeNodes: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node,\n filteredTreeNodes: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node,\n notFoundContent: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node,\n ariaId: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,\n switcherIcon: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func]),\n // HOC\n renderSearch: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n onTreeExpanded: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func\n});\n\n_defineProperty(BasePopup, \"contextTypes\", {\n rcTreeSelect: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.shape(_objectSpread({}, popupContextTypes))\n});\n\nObject(__WEBPACK_IMPORTED_MODULE_2_react_lifecycles_compat__[\"polyfill\"])(BasePopup);\n/* harmony default export */ __webpack_exports__[\"a\"] = (BasePopup);\n\n/***/ }),\n/* 212 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Con = exports.Row = exports.Col = undefined;\n\nvar _Col2 = __webpack_require__(1689);\n\nvar _Col3 = _interopRequireDefault(_Col2);\n\nvar _Row2 = __webpack_require__(1690);\n\nvar _Row3 = _interopRequireDefault(_Row2);\n\nvar _Layout = __webpack_require__(1691);\n\nvar _Layout2 = _interopRequireDefault(_Layout);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nexports.Col = _Col3[\"default\"];\nexports.Row = _Row3[\"default\"];\nexports.Con = _Layout2[\"default\"];\n\n/***/ }),\n/* 213 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _Button = __webpack_require__(545);\n\nvar _Button2 = _interopRequireDefault(_Button);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nexports[\"default\"] = _Button2[\"default\"];\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 214 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__createForm__ = __webpack_require__(577);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__createFormField__ = __webpack_require__(232);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__propTypes__ = __webpack_require__(675);\n/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, \"createFormField\", function() { return __WEBPACK_IMPORTED_MODULE_1__createFormField__[\"a\"]; });\n/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, \"formShape\", function() { return __WEBPACK_IMPORTED_MODULE_2__propTypes__[\"a\"]; });\n/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, \"createForm\", function() { return __WEBPACK_IMPORTED_MODULE_0__createForm__[\"a\"]; });\n// export this package's api\n\n\n\n\n\n\n/***/ }),\n/* 215 */\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = { \"default\": __webpack_require__(579), __esModule: true };\n\n/***/ }),\n/* 216 */\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = !__webpack_require__(41) && !__webpack_require__(53)(function () {\n return Object.defineProperty(__webpack_require__(217)('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n\n\n/***/ }),\n/* 217 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isObject = __webpack_require__(52);\nvar document = __webpack_require__(39).document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n\n\n/***/ }),\n/* 218 */\n/***/ (function(module, exports, __webpack_require__) {\n\n__webpack_require__(583);\nmodule.exports = __webpack_require__(24).Object.assign;\n\n\n/***/ }),\n/* 219 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar has = __webpack_require__(47);\nvar toIObject = __webpack_require__(54);\nvar arrayIndexOf = __webpack_require__(585)(false);\nvar IE_PROTO = __webpack_require__(125)('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n\n\n/***/ }),\n/* 220 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = __webpack_require__(122);\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n\n\n/***/ }),\n/* 221 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 7.1.15 ToLength\nvar toInteger = __webpack_require__(124);\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n\n\n/***/ }),\n/* 222 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar $at = __webpack_require__(590)(true);\n\n// 21.1.3.27 String.prototype[@@iterator]()\n__webpack_require__(223)(String, 'String', function (iterated) {\n this._t = String(iterated); // target\n this._i = 0; // next index\n// 21.1.5.2.1 %StringIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var index = this._i;\n var point;\n if (index >= O.length) return { value: undefined, done: true };\n point = $at(O, index);\n this._i += point.length;\n return { value: point, done: false };\n});\n\n\n/***/ }),\n/* 223 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar LIBRARY = __webpack_require__(87);\nvar $export = __webpack_require__(38);\nvar redefine = __webpack_require__(224);\nvar hide = __webpack_require__(50);\nvar Iterators = __webpack_require__(68);\nvar $iterCreate = __webpack_require__(591);\nvar setToStringTag = __webpack_require__(130);\nvar getPrototypeOf = __webpack_require__(594);\nvar ITERATOR = __webpack_require__(29)('iterator');\nvar BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`\nvar FF_ITERATOR = '@@iterator';\nvar KEYS = 'keys';\nvar VALUES = 'values';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {\n $iterCreate(Constructor, NAME, next);\n var getMethod = function (kind) {\n if (!BUGGY && kind in proto) return proto[kind];\n switch (kind) {\n case KEYS: return function keys() { return new Constructor(this, kind); };\n case VALUES: return function values() { return new Constructor(this, kind); };\n } return function entries() { return new Constructor(this, kind); };\n };\n var TAG = NAME + ' Iterator';\n var DEF_VALUES = DEFAULT == VALUES;\n var VALUES_BUG = false;\n var proto = Base.prototype;\n var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];\n var $default = $native || getMethod(DEFAULT);\n var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;\n var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;\n var methods, key, IteratorPrototype;\n // Fix native\n if ($anyNative) {\n IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));\n if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {\n // Set @@toStringTag to native iterators\n setToStringTag(IteratorPrototype, TAG, true);\n // fix for some old engines\n if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);\n }\n }\n // fix Array#{values, @@iterator}.name in V8 / FF\n if (DEF_VALUES && $native && $native.name !== VALUES) {\n VALUES_BUG = true;\n $default = function values() { return $native.call(this); };\n }\n // Define iterator\n if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {\n hide(proto, ITERATOR, $default);\n }\n // Plug for library\n Iterators[NAME] = $default;\n Iterators[TAG] = returnThis;\n if (DEFAULT) {\n methods = {\n values: DEF_VALUES ? $default : getMethod(VALUES),\n keys: IS_SET ? $default : getMethod(KEYS),\n entries: $entries\n };\n if (FORCED) for (key in methods) {\n if (!(key in proto)) redefine(proto, key, methods[key]);\n } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n }\n return methods;\n};\n\n\n/***/ }),\n/* 224 */\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = __webpack_require__(50);\n\n\n/***/ }),\n/* 225 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _util = __webpack_require__(16);\n\nvar util = _interopRequireWildcard(_util);\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } }\n\n/**\n * Rule for validating required fields.\n *\n * @param rule The validation rule.\n * @param value The value of the field on the source object.\n * @param source The source object being validated.\n * @param errors An array of errors that this rule may add\n * validation errors to.\n * @param options The validation options.\n * @param options.messages The validation messages.\n */\nfunction required(rule, value, source, errors, options, type) {\n if (rule.required && (!source.hasOwnProperty(rule.field) || util.isEmptyValue(value, type || rule.type))) {\n errors.push(util.format(options.messages.required, rule.fullField));\n }\n}\n\nexports['default'] = required;\n\n/***/ }),\n/* 226 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\n\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar __DEV__ = process.env.NODE_ENV !== 'production';\n\nvar warning = function() {};\n\nif (__DEV__) {\n var printWarning = function printWarning(format, args) {\n var len = arguments.length;\n args = new Array(len > 1 ? len - 1 : 0);\n for (var key = 1; key < len; key++) {\n args[key - 1] = arguments[key];\n }\n var argIndex = 0;\n var message = 'Warning: ' +\n format.replace(/%s/g, function() {\n return args[argIndex++];\n });\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n }\n\n warning = function(condition, format, args) {\n var len = arguments.length;\n args = new Array(len > 2 ? len - 2 : 0);\n for (var key = 2; key < len; key++) {\n args[key - 2] = arguments[key];\n }\n if (format === undefined) {\n throw new Error(\n '`warning(condition, format, ...args)` requires a warning ' +\n 'message argument'\n );\n }\n if (!condition) {\n printWarning.apply(null, [format].concat(args));\n }\n };\n}\n\nmodule.exports = warning;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5)))\n\n/***/ }),\n/* 227 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isArray = __webpack_require__(131),\n isKey = __webpack_require__(631),\n stringToPath = __webpack_require__(636),\n toString = __webpack_require__(229);\n\n/**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {Object} [object] The object to query keys on.\n * @returns {Array} Returns the cast property path array.\n */\nfunction castPath(value, object) {\n if (isArray(value)) {\n return value;\n }\n return isKey(value, object) ? [value] : stringToPath(toString(value));\n}\n\nmodule.exports = castPath;\n\n\n/***/ }),\n/* 228 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar Symbol = __webpack_require__(132),\n getRawTag = __webpack_require__(633),\n objectToString = __webpack_require__(634);\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n\n\n/***/ }),\n/* 229 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar baseToString = __webpack_require__(665);\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n return value == null ? '' : baseToString(value);\n}\n\nmodule.exports = toString;\n\n\n/***/ }),\n/* 230 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isSymbol = __webpack_require__(91);\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\nfunction toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = toKey;\n\n\n/***/ }),\n/* 231 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar baseSet = __webpack_require__(667);\n\n/**\n * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,\n * it's created. Arrays are created for missing index properties while objects\n * are created for all other missing properties. Use `_.setWith` to customize\n * `path` creation.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.set(object, 'a[0].b.c', 4);\n * console.log(object.a[0].b.c);\n * // => 4\n *\n * _.set(object, ['x', '0', 'y', 'z'], 5);\n * console.log(object.x[0].y.z);\n * // => 5\n */\nfunction set(object, path, value) {\n return object == null ? object : baseSet(object, path, value);\n}\n\nmodule.exports = set;\n\n\n/***/ }),\n/* 232 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (immutable) */ __webpack_exports__[\"b\"] = isFormField;\n/* harmony export (immutable) */ __webpack_exports__[\"a\"] = createFormField;\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(8);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(7);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__);\n\n\n\nvar Field = function Field(fields) {\n __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, Field);\n\n __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()(this, fields);\n};\n\nfunction isFormField(obj) {\n return obj instanceof Field;\n}\n\nfunction createFormField(field) {\n if (isFormField(field)) {\n return field;\n }\n return new Field(field);\n}\n\n/***/ }),\n/* 233 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (immutable) */ __webpack_exports__[\"a\"] = argumentContainer;\n/* harmony export (immutable) */ __webpack_exports__[\"i\"] = identity;\n/* harmony export (immutable) */ __webpack_exports__[\"b\"] = flattenArray;\n/* unused harmony export treeTraverse */\n/* harmony export (immutable) */ __webpack_exports__[\"c\"] = flattenFields;\n/* harmony export (immutable) */ __webpack_exports__[\"k\"] = normalizeValidateRules;\n/* harmony export (immutable) */ __webpack_exports__[\"f\"] = getValidateTriggers;\n/* harmony export (immutable) */ __webpack_exports__[\"g\"] = getValueFromEvent;\n/* harmony export (immutable) */ __webpack_exports__[\"d\"] = getErrorStrs;\n/* harmony export (immutable) */ __webpack_exports__[\"e\"] = getParams;\n/* harmony export (immutable) */ __webpack_exports__[\"j\"] = isEmptyObject;\n/* harmony export (immutable) */ __webpack_exports__[\"h\"] = hasRules;\n/* harmony export (immutable) */ __webpack_exports__[\"l\"] = startsWith;\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(8);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_hoist_non_react_statics__ = __webpack_require__(234);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_hoist_non_react_statics___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_hoist_non_react_statics__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_warning__ = __webpack_require__(226);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_warning___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_warning__);\n\n\n\n\nfunction getDisplayName(WrappedComponent) {\n return WrappedComponent.displayName || WrappedComponent.name || 'WrappedComponent';\n}\n\nfunction argumentContainer(Container, WrappedComponent) {\n /* eslint no-param-reassign:0 */\n Container.displayName = 'Form(' + getDisplayName(WrappedComponent) + ')';\n Container.WrappedComponent = WrappedComponent;\n return __WEBPACK_IMPORTED_MODULE_1_hoist_non_react_statics___default()(Container, WrappedComponent);\n}\n\nfunction identity(obj) {\n return obj;\n}\n\nfunction flattenArray(arr) {\n return Array.prototype.concat.apply([], arr);\n}\n\nfunction treeTraverse() {\n var path = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var tree = arguments[1];\n var isLeafNode = arguments[2];\n var errorMessage = arguments[3];\n var callback = arguments[4];\n\n if (isLeafNode(path, tree)) {\n callback(path, tree);\n } else if (tree === undefined || tree === null) {\n // Do nothing\n } else if (Array.isArray(tree)) {\n tree.forEach(function (subTree, index) {\n return treeTraverse(path + '[' + index + ']', subTree, isLeafNode, errorMessage, callback);\n });\n } else {\n // It's object and not a leaf node\n if (typeof tree !== 'object') {\n __WEBPACK_IMPORTED_MODULE_2_warning___default()(false, errorMessage);\n return;\n }\n Object.keys(tree).forEach(function (subTreeKey) {\n var subTree = tree[subTreeKey];\n treeTraverse('' + path + (path ? '.' : '') + subTreeKey, subTree, isLeafNode, errorMessage, callback);\n });\n }\n}\n\nfunction flattenFields(maybeNestedFields, isLeafNode, errorMessage) {\n var fields = {};\n treeTraverse(undefined, maybeNestedFields, isLeafNode, errorMessage, function (path, node) {\n fields[path] = node;\n });\n return fields;\n}\n\nfunction normalizeValidateRules(validate, rules, validateTrigger) {\n var validateRules = validate.map(function (item) {\n var newItem = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, item, {\n trigger: item.trigger || []\n });\n if (typeof newItem.trigger === 'string') {\n newItem.trigger = [newItem.trigger];\n }\n return newItem;\n });\n if (rules) {\n validateRules.push({\n trigger: validateTrigger ? [].concat(validateTrigger) : [],\n rules: rules\n });\n }\n return validateRules;\n}\n\nfunction getValidateTriggers(validateRules) {\n return validateRules.filter(function (item) {\n return !!item.rules && item.rules.length;\n }).map(function (item) {\n return item.trigger;\n }).reduce(function (pre, curr) {\n return pre.concat(curr);\n }, []);\n}\n\nfunction getValueFromEvent(e) {\n // To support custom element\n if (!e || !e.target) {\n return e;\n }\n var target = e.target;\n\n return target.type === 'checkbox' ? target.checked : target.value;\n}\n\nfunction getErrorStrs(errors) {\n if (errors) {\n return errors.map(function (e) {\n if (e && e.message) {\n return e.message;\n }\n return e;\n });\n }\n return errors;\n}\n\nfunction getParams(ns, opt, cb) {\n var names = ns;\n var options = opt;\n var callback = cb;\n if (cb === undefined) {\n if (typeof names === 'function') {\n callback = names;\n options = {};\n names = undefined;\n } else if (Array.isArray(names)) {\n if (typeof options === 'function') {\n callback = options;\n options = {};\n } else {\n options = options || {};\n }\n } else {\n callback = options;\n options = names || {};\n names = undefined;\n }\n }\n return {\n names: names,\n options: options,\n callback: callback\n };\n}\n\nfunction isEmptyObject(obj) {\n return Object.keys(obj).length === 0;\n}\n\nfunction hasRules(validate) {\n if (validate) {\n return validate.some(function (item) {\n return item.rules && item.rules.length;\n });\n }\n return false;\n}\n\nfunction startsWith(str, prefix) {\n return str.lastIndexOf(prefix, 0) === 0;\n}\n\n/***/ }),\n/* 234 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar reactIs = __webpack_require__(135);\n\n/**\n * Copyright 2015, Yahoo! Inc.\n * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n */\nvar REACT_STATICS = {\n childContextTypes: true,\n contextType: true,\n contextTypes: true,\n defaultProps: true,\n displayName: true,\n getDefaultProps: true,\n getDerivedStateFromError: true,\n getDerivedStateFromProps: true,\n mixins: true,\n propTypes: true,\n type: true\n};\nvar KNOWN_STATICS = {\n name: true,\n length: true,\n prototype: true,\n caller: true,\n callee: true,\n arguments: true,\n arity: true\n};\nvar FORWARD_REF_STATICS = {\n '$$typeof': true,\n render: true,\n defaultProps: true,\n displayName: true,\n propTypes: true\n};\nvar MEMO_STATICS = {\n '$$typeof': true,\n compare: true,\n defaultProps: true,\n displayName: true,\n propTypes: true,\n type: true\n};\nvar TYPE_STATICS = {};\nTYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;\nTYPE_STATICS[reactIs.Memo] = MEMO_STATICS;\n\nfunction getStatics(component) {\n // React v16.11 and below\n if (reactIs.isMemo(component)) {\n return MEMO_STATICS;\n } // React v16.12 and above\n\n\n return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;\n}\n\nvar defineProperty = Object.defineProperty;\nvar getOwnPropertyNames = Object.getOwnPropertyNames;\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar getPrototypeOf = Object.getPrototypeOf;\nvar objectPrototype = Object.prototype;\nfunction hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {\n if (typeof sourceComponent !== 'string') {\n // don't hoist over string (html) components\n if (objectPrototype) {\n var inheritedComponent = getPrototypeOf(sourceComponent);\n\n if (inheritedComponent && inheritedComponent !== objectPrototype) {\n hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);\n }\n }\n\n var keys = getOwnPropertyNames(sourceComponent);\n\n if (getOwnPropertySymbols) {\n keys = keys.concat(getOwnPropertySymbols(sourceComponent));\n }\n\n var targetStatics = getStatics(targetComponent);\n var sourceStatics = getStatics(sourceComponent);\n\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n\n if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {\n var descriptor = getOwnPropertyDescriptor(sourceComponent, key);\n\n try {\n // Avoid failures from read-only properties\n defineProperty(targetComponent, key, descriptor);\n } catch (e) {}\n }\n }\n }\n\n return targetComponent;\n}\n\nmodule.exports = hoistNonReactStatics;\n\n\n/***/ }),\n/* 235 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = {\n /**\n * Adds `container-fluid` class.\n */\n fluid: _propTypes2[\"default\"].bool,\n /**\n * You can use a custom element for this component\n */\n componentClass: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].element, _propTypes2[\"default\"].string])\n};\n\nvar defaultProps = {\n componentClass: 'div',\n fluid: false,\n clsPrefix: 'u-container'\n};\n\nvar Con = function (_React$Component) {\n _inherits(Con, _React$Component);\n\n function Con() {\n _classCallCheck(this, Con);\n\n return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n Con.prototype.render = function render() {\n var _tbclass;\n\n var _props = this.props,\n fluid = _props.fluid,\n Component = _props.componentClass,\n clsPrefix = _props.clsPrefix,\n className = _props.className,\n others = _objectWithoutProperties(_props, ['fluid', 'componentClass', 'clsPrefix', 'className']);\n\n var tbclass = (_tbclass = {}, _defineProperty(_tbclass, '' + clsPrefix, !fluid), _defineProperty(_tbclass, clsPrefix + '-fluid', fluid), _tbclass);\n\n return _react2[\"default\"].createElement(\n Component,\n _extends({}, others, {\n className: (0, _classnames2[\"default\"])(tbclass, className)\n }),\n this.props.children\n );\n };\n\n return Con;\n}(_react2[\"default\"].Component);\n\nCon.propTypes = propTypes;\nCon.defaultProps = defaultProps;\n\nexports[\"default\"] = Con;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 236 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nmodule.exports = __webpack_require__(684);\n\n/***/ }),\n/* 237 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _InputNumber = __webpack_require__(238);\n\nvar _InputNumber2 = _interopRequireDefault(_InputNumber);\n\nvar _InputNumberGroup = __webpack_require__(726);\n\nvar _InputNumberGroup2 = _interopRequireDefault(_InputNumberGroup);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\n_InputNumber2[\"default\"].InputNumberGroup = _InputNumberGroup2[\"default\"];\n\nexports[\"default\"] = _InputNumber2[\"default\"];\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 238 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _beeInputGroup = __webpack_require__(690);\n\nvar _beeInputGroup2 = _interopRequireDefault(_beeInputGroup);\n\nvar _beeFormControl = __webpack_require__(695);\n\nvar _beeFormControl2 = _interopRequireDefault(_beeFormControl);\n\nvar _beeMessage = __webpack_require__(239);\n\nvar _beeMessage2 = _interopRequireDefault(_beeMessage);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _i18n = __webpack_require__(724);\n\nvar _i18n2 = _interopRequireDefault(_i18n);\n\nvar _tool = __webpack_require__(725);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = {\n max: _propTypes2[\"default\"].number,\n min: _propTypes2[\"default\"].number,\n step: _propTypes2[\"default\"].number,\n autoWidth: _propTypes2[\"default\"].bool,\n precision: _propTypes2[\"default\"].number,\n format: _propTypes2[\"default\"].func,\n delay: _propTypes2[\"default\"].number,\n disabled: _propTypes2[\"default\"].bool,\n toThousands: _propTypes2[\"default\"].bool,\n locale: _propTypes2[\"default\"].object,\n toNumber: _propTypes2[\"default\"].bool, //回调函数内的值是否转换为数值类型\n displayCheckPrompt: _propTypes2[\"default\"].bool, //是否显示超出限制范围之后的检验提示\n minusRight: _propTypes2[\"default\"].bool, //负号是否在右边\n handleBtnClick: _propTypes2[\"default\"].func //加减按钮点击回调\n};\n\nvar defaultProps = {\n value: \"\",\n step: 1,\n clsPrefix: 'u-input-number',\n iconStyle: 'double',\n autoWidth: false,\n delay: 300,\n toNumber: false,\n displayCheckPrompt: false,\n locale: {},\n handleBtnClick: function handleBtnClick() {}\n};\n\n//校验提示\nfunction prompt(content) {\n _beeMessage2[\"default\"].destroy();\n _beeMessage2[\"default\"].create({ content: content, color: 'warninglight' });\n}\n\n/**\n * 千分符\n * @param {要转换的数据} num \n */\nfunction toThousands(number) {\n if (number === '') return '';\n if (number === '0') return '0';\n var num = (number || 0).toString();\n var integer = num.split('.')[0];\n var decimal = num.split('.')[1] || '';\n var result = '';\n while (integer.length > 3) {\n result = ',' + integer.slice(-3) + result;\n integer = integer.slice(0, integer.length - 3);\n }\n if (integer) {\n result = integer + result;\n if (num == '.' || num.indexOf('.') == num.length - 1) {\n result = result + '.' + decimal;\n } else if (decimal) {\n result = result + '.' + decimal;\n }\n }\n if (result[0] == '-') {\n result = result.replace('-,', '-');\n }\n return result;\n}\n\nfunction setCaretPosition(ctrl, pos, need) {\n\n if (ctrl && need) {\n if (ctrl.setSelectionRange) {\n ctrl.focus();\n ctrl.setSelectionRange(pos, pos);\n // IE8 and below\n } else if (ctrl.createTextRange) {\n var range = ctrl.createTextRange();\n range.collapse(true);\n range.moveEnd('character', pos);\n range.moveStart('character', pos);\n range.select();\n }\n }\n}\n\nvar InputNumber = function (_Component) {\n _inherits(InputNumber, _Component);\n\n function InputNumber(props) {\n _classCallCheck(this, InputNumber);\n\n // 初始化状态,加减按钮是否可用,根据当前值判断\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props));\n\n _initialiseProps.call(_this);\n\n var data = _this.judgeValue(props);\n _this.state = {\n value: data.value,\n minusDisabled: data.minusDisabled,\n plusDisabled: data.plusDisabled,\n showValue: toThousands(data.value)\n };\n\n _this.timer = null;\n _this.focus = false;\n _this.selectionStart = 0;\n return _this;\n }\n\n // unThousands = (number) =>{\n // if(!number || number === \"\")return number;\n // number = number.toString();\n // return number.replace(new RegExp(this.props.formatSymbol,'g'),'');\n // // return number.replace(/\\,/g,'');\n // }\n\n /**\n * 校验value\n * @param {*} props \n * @param {原来的值} oldValue \n */\n\n\n InputNumber.prototype.componentDidMount = function componentDidMount() {\n this.setState({\n value: this.props.value,\n showValue: toThousands(this.props.value)\n });\n };\n\n InputNumber.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n if (this.focus) {\n if (nextProps.value == Infinity || nextProps.value == -Infinity) {} else {\n this.setState({\n value: nextProps.value,\n showValue: toThousands(nextProps.value)\n });\n }\n } else {\n var data = this.judgeValue(nextProps, this.state.value);\n this.setState({\n value: data.value,\n showValue: toThousands(data.value),\n minusDisabled: data.minusDisabled,\n plusDisabled: data.plusDisabled\n });\n }\n };\n\n InputNumber.prototype.ComponentWillUnMount = function ComponentWillUnMount() {\n this.clear();\n };\n\n /**\n * @memberof InputNumber\n * type 是否要四舍五入(此参数无效,超长不让输入)\n */\n\n /**\n * 恢复科学技术法的问题\n */\n\n /**\n * 设置增加减少按钮是否可用\n */\n\n /**\n * 减法\n */\n\n /**\n * 加法\n */\n\n\n /**\n * 分离小数和整数\n * @param value\n * @returns {*}\n */\n\n\n InputNumber.prototype.render = function render() {\n var _classes,\n _this2 = this;\n\n var _props = this.props,\n toThousands = _props.toThousands,\n minusRight = _props.minusRight,\n max = _props.max,\n min = _props.min,\n step = _props.step,\n disabled = _props.disabled,\n clsPrefix = _props.clsPrefix,\n className = _props.className,\n delay = _props.delay,\n onBlur = _props.onBlur,\n onFocus = _props.onFocus,\n iconStyle = _props.iconStyle,\n autoWidth = _props.autoWidth,\n onChange = _props.onChange,\n format = _props.format,\n precision = _props.precision,\n toNumber = _props.toNumber,\n others = _objectWithoutProperties(_props, ['toThousands', 'minusRight', 'max', 'min', 'step', 'disabled', 'clsPrefix', 'className', 'delay', 'onBlur', 'onFocus', 'iconStyle', 'autoWidth', 'onChange', 'format', 'precision', 'toNumber']);\n\n var classes = (_classes = {}, _defineProperty(_classes, clsPrefix + '-auto', autoWidth), _defineProperty(_classes, '' + clsPrefix, true), _defineProperty(_classes, clsPrefix + '-lg', others.size === \"lg\"), _defineProperty(_classes, clsPrefix + '-sm', others.size === \"sm\"), _classes);\n\n var _state = this.state,\n value = _state.value,\n minusDisabled = _state.minusDisabled,\n plusDisabled = _state.plusDisabled,\n showValue = _state.showValue;\n\n value = precision != null && !this.focus ? this.getPrecision(value) : value;\n value = format && !this.focus ? format(value) : value;\n value = String(value).indexOf(\"e\") !== -1 ? this.getFullNum(value) : value;\n if (minusRight && String(value).indexOf('-') != -1) {\n value = String(value).replace(\"-\", \"\") + \"-\";\n }\n var disabledCursor = disabled ? ' disabled-cursor' : '';\n var disabledCon = disabled ? ' disabled-con' : '';\n return _react2[\"default\"].createElement(\n 'div',\n { className: clsPrefix + '-out' },\n iconStyle === 'double' ? _react2[\"default\"].createElement(\n _beeInputGroup2[\"default\"],\n { className: (0, _classnames2[\"default\"])(className, classes, disabledCon) },\n _react2[\"default\"].createElement(\n _beeInputGroup2[\"default\"].Addon,\n {\n // onClick={()=>{minusDisabled?'':this.handleBtnClick('down')}}\n className: (minusDisabled && 'disabled') + disabledCursor,\n onMouseDown: this.handleReduceMouseDown,\n onMouseLeave: this.clear,\n onMouseUp: this.clear },\n '-'\n ),\n _react2[\"default\"].createElement(_beeFormControl2[\"default\"], _extends({}, others, {\n value: toThousands ? showValue : value,\n disabled: disabled,\n onBlur: this.handleBlur,\n onFocus: this.handleFocus,\n onChange: this.handleChange,\n ref: function ref(_ref) {\n return _this2.input = _ref;\n }\n })),\n _react2[\"default\"].createElement(\n _beeInputGroup2[\"default\"].Addon,\n {\n // onClick={()=>{plusDisabled?'':this.handleBtnClick('up')}}\n className: (plusDisabled && 'disabled') + disabledCursor,\n onMouseDown: this.handlePlusMouseDown,\n onMouseLeave: this.clear,\n onMouseUp: this.clear },\n '+'\n )\n ) : _react2[\"default\"].createElement(\n _beeInputGroup2[\"default\"],\n {\n className: (0, _classnames2[\"default\"])(className, classes, disabledCon),\n simple: true\n },\n _react2[\"default\"].createElement(_beeFormControl2[\"default\"], _extends({}, others, {\n value: toThousands ? showValue : value,\n disabled: disabled,\n onBlur: this.handleBlur,\n onFocus: this.handleFocus,\n onChange: this.handleChange,\n ref: function ref(_ref2) {\n return _this2.input = _ref2;\n }\n })),\n _react2[\"default\"].createElement(\n _beeInputGroup2[\"default\"].Button,\n null,\n _react2[\"default\"].createElement(\n 'div',\n { className: (0, _classnames2[\"default\"])(\"icon-group\") },\n _react2[\"default\"].createElement(\n 'span',\n {\n // onClick={()=>{plusDisabled?'':this.handleBtnClick('up')}}\n onMouseDown: this.handlePlusMouseDown,\n onMouseLeave: this.clear,\n onMouseUp: this.clear,\n className: (0, _classnames2[\"default\"])('plus', { 'disabled': plusDisabled, 'disabled-cursor': disabledCursor }) },\n _react2[\"default\"].createElement('span', { className: 'uf uf-arrow-up' })\n ),\n _react2[\"default\"].createElement(\n 'span',\n {\n // onClick={()=> minusDisabled?'':this.handleBtnClick('down')}\n onMouseDown: this.handleReduceMouseDown,\n onMouseLeave: this.clear,\n onMouseUp: this.clear,\n className: (0, _classnames2[\"default\"])(\"reduce\", { 'disabled': minusDisabled, 'disabled-cursor': disabledCursor }) },\n _react2[\"default\"].createElement('span', { className: ' uf uf-arrow-down' })\n )\n )\n )\n )\n );\n };\n\n return InputNumber;\n}(_react.Component);\n\nvar _initialiseProps = function _initialiseProps() {\n var _this3 = this;\n\n this.judgeValue = function (props, oldValue) {\n var currentValue = void 0;\n var currentMinusDisabled = false;\n var currentPlusDisabled = false;\n var value = props.value,\n min = props.min,\n max = props.max,\n precision = props.precision,\n onChange = props.onChange,\n displayCheckPrompt = props.displayCheckPrompt;\n\n if (props.minusRight) {\n value = value.toString();\n if (value.indexOf('-') != -1) {\n //所有位置的负号转到前边\n value = value.replace('-', '');\n value = '-' + value;\n }\n value = Number(value);\n }\n if (value != undefined && value != null) {\n if (value === '') {\n currentValue = '';\n return {\n value: '',\n minusDisabled: false,\n plusDisabled: false\n };\n } else {\n currentValue = Number(value) || 0;\n }\n } //lse if (min&&(value!='')) {//mdd中提出bug\n //currentValue = min;\n //} \n else if (value === '0' || value === 0) {\n currentValue = 0;\n } else {\n //NaN\n if (oldValue || oldValue === 0 || oldValue === '0') {\n currentValue = oldValue;\n } else {\n //value为空\n return {\n value: '',\n minusDisabled: false,\n plusDisabled: false\n };\n }\n }\n if (currentValue == -Infinity) {\n return {\n value: min,\n minusDisabled: true,\n plusDisabled: false\n };\n }\n if (currentValue == Infinity) {\n return {\n value: max,\n minusDisabled: false,\n plusDisabled: true\n };\n }\n var local = (0, _tool.getComponentLocale)(props, _this3.context, 'InputNumber', function () {\n return _i18n2[\"default\"];\n });\n if (currentValue <= min) {\n if (displayCheckPrompt) prompt(local['msgMin']);\n currentMinusDisabled = true;\n currentValue = min;\n }\n if (currentValue >= max) {\n if (displayCheckPrompt) prompt(local['msgMax']);\n currentPlusDisabled = true;\n currentValue = max;\n }\n\n if (props.hasOwnProperty('precision')) {\n // currentValue = Number(currentValue).toFixed(precision);\n currentValue = _this3.getPrecision(currentValue);\n }\n if (props.minusRight) {\n currentValue = currentValue.toString();\n if (currentValue.indexOf('-') != -1) {\n //负号转到后边\n currentValue = currentValue.replace('-', '');\n currentValue = currentValue + '-';\n }\n }\n\n return {\n value: currentValue,\n minusDisabled: currentMinusDisabled,\n plusDisabled: currentPlusDisabled\n };\n };\n\n this.numToFixed = function (value, fixed, type) {\n value = String(value);\n if (!value && value !== \"0\") return value;\n if (!fixed && String(fixed) !== \"0\") return value;\n var preIndex = value.indexOf(\".\");\n if (value.indexOf(\".\") === -1) return value;\n preIndex++;\n var endIndex = preIndex + fixed;\n var precValue = value.substr(preIndex, endIndex) + \"0000000000\";\n if (type) {\n return Number(value).toFixed(fixed);\n }\n return value.split(\".\")[0] + \".\" + precValue.substr(0, fixed);\n };\n\n this.handleChange = function (value) {\n var selectionStart = _this3.input.selectionStart == undefined ? _this3.input.input.selectionStart : _this3.input.selectionStart;\n _this3.selectionStart = selectionStart;\n var _props2 = _this3.props,\n onChange = _props2.onChange,\n toNumber = _props2.toNumber,\n minusRight = _props2.minusRight;\n\n if (value === '') {\n onChange && onChange(value);\n _this3.setState({\n value: value,\n showValue: ''\n });\n return;\n }\n // value = this.unThousands(value);\n if (minusRight) {\n if (value.match(/-/g) && value.match(/-/g).length > 1) return;\n }\n if (isNaN(value) && value !== '.' && value !== '-') return;\n if (value.indexOf(\".\") !== -1) {\n //小数最大值处理\n var prec = String(value.split(\".\")[1]).replace(\"-\", \"\");\n if (_this3.props.precision === 0 && (prec === \"\" || prec != \"\")) return;\n if (_this3.props.precision && prec.length > _this3.props.precision) return;\n if (prec.length > 8) return;\n }\n _this3.setState({\n value: value,\n showValue: toThousands(value)\n });\n if (value === '-') {\n onChange && onChange(value);\n } else if (value == '.' || value.indexOf('.') == value.length - 1) {\n //当输入小数点的时候\n onChange && onChange(value);\n } else if (value[value.indexOf('.') + 1] == 0) {\n //当输入 d.0 的时候,不转换Number\n onChange && onChange(value);\n } else {\n toNumber ? onChange && onChange(Number(value)) : onChange && onChange(value);\n }\n if (_this3.props.toThousands) {\n var stateShowValue = toThousands(_this3.state.value);\n var showValue = toThousands(value);\n var addNumber = 0;\n var delNumber = 0;\n var reg = /[0-9]/;\n for (var i = 0; i < selectionStart; i++) {\n if (!reg.test(showValue[i])) addNumber += 1;\n }\n for (var j = 0; j < selectionStart; j++) {\n if (stateShowValue[j]) {\n if (!reg.test(stateShowValue[j])) delNumber += 1;\n }\n }\n var position = selectionStart + addNumber - delNumber;\n setCaretPosition(_this3.input && _this3.input.input, position, true);\n }\n };\n\n this.handleFocus = function (value, e) {\n _this3.focus = true;\n var _props3 = _this3.props,\n onFocus = _props3.onFocus,\n min = _props3.min,\n max = _props3.max;\n\n onFocus && onFocus(_this3.getPrecision(_this3.state.value), e);\n };\n\n this.getFullNum = function (num) {\n //处理非数字\n if (isNaN(num)) {\n return num;\n };\n\n //处理不需要转换的数字\n var str = '' + num;\n if (!/e/i.test(str)) {\n return num;\n };\n var _precision = _this3.props.precision ? _this3.props.precision : 18;\n return Number(num).toFixed(_precision).replace(/\\.?0+$/, \"\");\n };\n\n this.handleBlur = function (v, e) {\n _this3.focus = false;\n var _props4 = _this3.props,\n onBlur = _props4.onBlur,\n precision = _props4.precision,\n onChange = _props4.onChange,\n toNumber = _props4.toNumber,\n max = _props4.max,\n min = _props4.min,\n displayCheckPrompt = _props4.displayCheckPrompt,\n minusRight = _props4.minusRight,\n round = _props4.round;\n\n var local = (0, _tool.getComponentLocale)(_this3.props, _this3.context, 'InputNumber', function () {\n return _i18n2[\"default\"];\n });\n v = _this3.state.value; //在onBlur的时候不需要活输入框的只,而是要获取state中的值,因为有format的时候就会有问题。\n if (v === '' || !v) {\n _this3.setState({\n value: v\n });\n onChange && onChange(v);\n onBlur && onBlur(v, e);\n return;\n }\n // let value = this.unThousands(v); \n var value = _this3.numToFixed(v, precision, round);\n if (minusRight) {\n if (value.indexOf('-') != -1) {\n //所有位置的负号转到前边\n value = value.replace('-', '');\n value = '-' + value;\n }\n }\n value = isNaN(Number(value)) ? 0 : Number(value);\n if (value > max) {\n if (displayCheckPrompt) prompt(local['msgMax']);\n value = max;\n }\n if (value < min) {\n if (displayCheckPrompt) prompt(local['msgMin']);\n value = min;\n }\n if (_this3.props.hasOwnProperty('precision')) {\n // value = value.toFixed(precision);\n value = _this3.getPrecision(value);\n }\n value = value.toString();\n if (minusRight && value.indexOf('-') != -1) {\n //负号转到后边\n value = value.replace('-', '');\n value = value + '-';\n }\n _this3.setState({\n value: value,\n showValue: toThousands(value)\n });\n _this3.detailDisable(value);\n if (toNumber && !minusRight) {\n onChange && onChange(value);\n onBlur && onBlur(value, e);\n } else {\n onChange && onChange(value);\n onBlur && onBlur(value, e);\n }\n };\n\n this.detailDisable = function (value) {\n var _props5 = _this3.props,\n max = _props5.max,\n min = _props5.min,\n step = _props5.step;\n\n\n if (value >= max || Number(value) + Number(step) > max) {\n _this3.setState({\n plusDisabled: true\n });\n } else {\n _this3.setState({\n plusDisabled: false\n });\n }\n if (value <= min || value - step < min) {\n _this3.setState({\n minusDisabled: true\n });\n } else {\n _this3.setState({\n minusDisabled: false\n });\n }\n };\n\n this.minus = function (value) {\n var _props6 = _this3.props,\n min = _props6.min,\n max = _props6.max,\n step = _props6.step,\n onChange = _props6.onChange,\n toNumber = _props6.toNumber;\n\n value = value === '-' ? 0 : value;\n if (typeof min === \"undefined\") {\n value = _this3.detail(value, step, 'reduce');\n } else {\n if (value < min) {\n value = min;\n } else {\n var reducedValue = _this3.detail(value, step, 'reduce');\n if (reducedValue >= min) {\n value = reducedValue;\n }\n }\n }\n\n if (value > max) {\n value = max;\n }\n\n _this3.setState({\n value: value,\n showValue: toThousands(value)\n }, function () {\n _this3.input.input.focus && _this3.input.input.focus();\n });\n toNumber ? onChange && onChange(Number(value)) : onChange && onChange(value);\n _this3.handleBtnClick('down', value);\n _this3.detailDisable(value);\n };\n\n this.plus = function (value) {\n var _props7 = _this3.props,\n max = _props7.max,\n min = _props7.min,\n step = _props7.step,\n onChange = _props7.onChange,\n toNumber = _props7.toNumber;\n\n value = value === '-' ? 0 : value;\n if (typeof max === \"undefined\") {\n value = _this3.detail(value, step, 'add');\n } else {\n if (value > max) {\n value = max;\n } else {\n var addedValue = _this3.detail(value, step, 'add');\n if (addedValue <= max) {\n value = addedValue;\n }\n }\n }\n if (value < min) {\n value = min;\n }\n _this3.setState({\n value: value,\n showValue: toThousands(value)\n }, function () {\n _this3.input.input.focus && _this3.input.input.focus();\n });\n toNumber ? onChange && onChange(Number(value)) : onChange && onChange(value);\n _this3.handleBtnClick('up', value);\n _this3.detailDisable(value);\n };\n\n this.detail = function (value, step, type) {\n var precision = _this3.props.precision;\n\n\n var valueFloat = _this3.separate(value);\n var stepFloat = _this3.separate(step);\n\n var ans = void 0;\n var stepFloatLength = stepFloat.toString().length;\n var valueFloatLength = valueFloat.toString().length;\n\n if (typeof precision === 'undefined') {\n precision = Math.max(stepFloatLength, valueFloatLength);\n }\n var coefficient = Math.pow(10, Math.abs(stepFloatLength - valueFloatLength));\n if (type === 'add') {\n ans = (value * coefficient + step * coefficient) / coefficient;\n } else {\n ans = (value * coefficient - step * coefficient) / coefficient;\n }\n\n return ans.toFixed(precision);\n };\n\n this.separate = function (value) {\n if (value == null || value == undefined) {\n return \"\";\n } else {\n value = value.toString();\n if (value.indexOf('.') > -1) {\n return value.split('.')[1];\n } else {\n return \"\";\n }\n }\n };\n\n this.clear = function () {\n if (_this3.timer) {\n clearTimeout(_this3.timer);\n }\n };\n\n this.handlePlusMouseDown = function (e) {\n e.preventDefault && e.preventDefault();\n var _props8 = _this3.props,\n delay = _props8.delay,\n disabled = _props8.disabled;\n var value = _this3.state.value;\n\n if (disabled) return;\n _this3.plus(value);\n _this3.clear();\n _this3.timer = setTimeout(function () {\n _this3.handlePlusMouseDown(e);\n }, delay);\n };\n\n this.handleReduceMouseDown = function (e) {\n e.preventDefault && e.preventDefault();\n var _props9 = _this3.props,\n delay = _props9.delay,\n disabled = _props9.disabled;\n var value = _this3.state.value;\n\n if (disabled) return;\n _this3.minus(value);\n _this3.clear();\n _this3.timer = setTimeout(function () {\n _this3.handleReduceMouseDown(e);\n }, delay);\n };\n\n this.getPrecision = function (value) {\n if (value == null || value == undefined) return value;\n if (!value && value === \"\") return value;\n value = String(value);\n value = value.indexOf(\"e\") !== -1 ? _this3.getFullNum(value) : value;\n var precision = _this3.props.precision;\n\n if (precision === 0) return value;\n if (precision == undefined || value.indexOf(\".\") !== -1 && String(value.split(\".\")[1]).length === precision) {\n return value;\n }\n var before = value.substring(0, 1),\n len = value.length,\n after = value.substring(len - 1, len);\n before = before === \"-\" ? before : \"\";\n after = after === \"-\" ? after : \"\";\n //是科学计数法,不replace - \n if (before) value = value.substring(1, len - 1);\n if (after) value = value.substring(0, len - 1);\n // value = value.replace(\"-\",'');\n var precV = \"000000000000000000000000000000000000000000000000000000000000000000000000\";\n if (value.indexOf(\".\") === -1) {\n precV = precV.substr(0, precision);\n precV = precV ? \".\" + precV : precV;\n if (!isNaN(value) && (value.indexOf('-') != -1 || value.indexOf('+') != -1) && value.indexOf('e') != -1) {//是科学计数法,不拼接0000000\n\n } else {\n value = value + precV;\n }\n }\n return before + Number(value).toFixed(precision) + after;\n };\n\n this.handleBtnClick = function (type, value) {\n _this3.props.handleBtnClick(type, value);\n };\n};\n\n;\n\nInputNumber.defaultProps = defaultProps;\nInputNumber.propTypes = propTypes;\nInputNumber.contextTypes = {\n beeLocale: _propTypes2[\"default\"].object\n};\nexports[\"default\"] = InputNumber;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 239 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _Message = __webpack_require__(697);\n\nvar _Message2 = _interopRequireDefault(_Message);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nexports[\"default\"] = _Message2[\"default\"];\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 240 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nfunction createChainedFunction() {\n for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) {\n funcs[_key] = arguments[_key];\n }\n\n return funcs.filter(function (f) {\n return f != null;\n }).reduce(function (acc, f) {\n if (typeof f !== 'function') {\n throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.');\n }\n\n if (acc === null) {\n return f;\n }\n\n return function chainedFunction() {\n for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n acc.apply(this, args);\n f.apply(this, args);\n };\n }, null);\n}\nexports.default = createChainedFunction;\n\n/***/ }),\n/* 241 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = addEventListenerWrap;\n\nvar _addDomEventListener = __webpack_require__(12);\n\nvar _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nfunction addEventListenerWrap(target, eventType, cb) {\n /* eslint camelcase: 2 */\n var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {\n _reactDom2.default.unstable_batchedUpdates(cb, e);\n } : cb;\n return (0, _addDomEventListener2.default)(target, eventType, callback);\n}\n\n/***/ }),\n/* 242 */\n/***/ (function(module, exports) {\n\nmodule.exports = function(arr, obj){\n if (arr.indexOf) return arr.indexOf(obj);\n for (var i = 0; i < arr.length; ++i) {\n if (arr[i] === obj) return i;\n }\n return -1;\n};\n\n/***/ }),\n/* 243 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar util = {\n isAppearSupported: function isAppearSupported(props) {\n return props.transitionName && props.transitionAppear || props.animation.appear;\n },\n isEnterSupported: function isEnterSupported(props) {\n return props.transitionName && props.transitionEnter || props.animation.enter;\n },\n isLeaveSupported: function isLeaveSupported(props) {\n return props.transitionName && props.transitionLeave || props.animation.leave;\n },\n allowAppearCallback: function allowAppearCallback(props) {\n return props.transitionAppear || props.animation.appear;\n },\n allowEnterCallback: function allowEnterCallback(props) {\n return props.transitionEnter || props.animation.enter;\n },\n allowLeaveCallback: function allowLeaveCallback(props) {\n return props.transitionLeave || props.animation.leave;\n }\n};\nexports[\"default\"] = util;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 244 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = {\n\n colors: _propTypes2[\"default\"].oneOf(['', 'dark', 'success', 'info', 'warning', 'danger', 'primary']),\n\n disabled: _propTypes2[\"default\"].bool,\n\n inverse: _propTypes2[\"default\"].bool\n\n};\n\nvar defaultProps = {\n disabled: false,\n inverse: false,\n colors: 'primary',\n clsPrefix: 'u-checkbox',\n defaultChecked: false,\n onClick: function onClick() {}\n};\nvar clsPrefix = 'u-checkbox';\n\nvar Checkbox = function (_React$Component) {\n _inherits(Checkbox, _React$Component);\n\n function Checkbox(props) {\n _classCallCheck(this, Checkbox);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));\n\n _initialiseProps.call(_this);\n\n _this.state = {\n checked: 'checked' in props ? props.checked : props.defaultChecked,\n focused: false\n };\n _this.doubleClickFlag = null;\n return _this;\n }\n\n Checkbox.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n if ('checked' in nextProps) {\n this.setState({\n checked: nextProps.checked\n });\n }\n };\n\n Checkbox.prototype.render = function render() {\n var _classes;\n\n var _props = this.props,\n disabled = _props.disabled,\n inverse = _props.inverse,\n colors = _props.colors,\n size = _props.size,\n className = _props.className,\n indeterminate = _props.indeterminate,\n onClick = _props.onClick,\n children = _props.children,\n checked = _props.checked,\n clsPrefix = _props.clsPrefix,\n onDoubleClick = _props.onDoubleClick,\n onChange = _props.onChange,\n others = _objectWithoutProperties(_props, ['disabled', 'inverse', 'colors', 'size', 'className', 'indeterminate', 'onClick', 'children', 'checked', 'clsPrefix', 'onDoubleClick', 'onChange']);\n\n var input = _react2[\"default\"].createElement('input', _extends({}, others, {\n type: 'checkbox',\n disabled: this.props.disabled,\n onFocus: this.handleFocus,\n onBlur: this.handleBlur\n }));\n\n var classes = (_classes = {}, _defineProperty(_classes, clsPrefix + '-focused', this.state.focused), _defineProperty(_classes, 'is-checked', this.state.checked), _defineProperty(_classes, 'disabled', disabled), _classes);\n\n if (inverse) {\n classes[clsPrefix + '-inverse'] = true;\n }\n\n if (colors) {\n classes[clsPrefix + '-' + colors] = true;\n }\n\n if (size) {\n classes[clsPrefix + '-' + size] = true;\n }\n\n if (!checked && indeterminate) {\n classes[clsPrefix + '-indeterminate'] = true;\n }\n\n var classNames = (0, _classnames2[\"default\"])(clsPrefix, classes);\n\n return _react2[\"default\"].createElement(\n 'label',\n {\n className: (0, _classnames2[\"default\"])(classNames, className),\n onDoubleClick: this.handledbClick,\n onClick: this.changeState },\n input,\n _react2[\"default\"].createElement(\n 'label',\n { className: clsPrefix + '-label' },\n children\n )\n );\n };\n\n return Checkbox;\n}(_react2[\"default\"].Component);\n\nvar _initialiseProps = function _initialiseProps() {\n var _this2 = this;\n\n this.changeState = function (e) {\n var props = _this2.props;\n var checked = _this2.state.checked;\n\n clearTimeout(_this2.doubleClickFlag);\n if (props.onClick instanceof Function) {\n props.onClick(e);\n }\n if (props.onDoubleClick instanceof Function) {\n _this2.doubleClickFlag = setTimeout(function () {\n //do function在此处写单击事件要执行的代码\n _this2.change(props, checked);\n }, 300);\n } else {\n _this2.change(props, checked);\n }\n e.stopPropagation();\n e.preventDefault();\n //执行延时\n };\n\n this.change = function (props, checked) {\n if (props.disabled) {\n return;\n }\n if (!('checked' in props)) {\n _this2.setState({\n checked: !checked\n });\n }\n\n if (props.onChange instanceof Function) {\n props.onChange(!checked);\n }\n };\n\n this.handledbClick = function (e) {\n var onDoubleClick = _this2.props.onDoubleClick;\n\n clearTimeout(_this2.doubleClickFlag);\n onDoubleClick && onDoubleClick(_this2.state.checked, e);\n };\n\n this.handleFocus = function (e) {\n if (e.target && e.target.type == 'checkbox') {\n _this2.setState({\n focused: true\n });\n }\n };\n\n this.handleBlur = function (e) {\n if (e.target && e.target.type == 'checkbox') {\n _this2.setState({\n focused: false\n });\n }\n };\n};\n\nCheckbox.propTypes = propTypes;\nCheckbox.defaultProps = defaultProps;\n\nexports[\"default\"] = Checkbox;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 245 */\n/***/ (function(module, exports) {\n\nmodule.exports = function(module) {\n\tif(!module.webpackPolyfill) {\n\t\tmodule.deprecate = function() {};\n\t\tmodule.paths = [];\n\t\t// module.parent = undefined by default\n\t\tif(!module.children) module.children = [];\n\t\tObject.defineProperty(module, \"loaded\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.l;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"id\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.i;\n\t\t\t}\n\t\t});\n\t\tmodule.webpackPolyfill = 1;\n\t}\n\treturn module;\n};\n\n\n/***/ }),\n/* 246 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined;\n\nvar _all2 = __webpack_require__(740);\n\nvar _all3 = _interopRequireDefault(_all2);\n\nvar _componentOrElement2 = __webpack_require__(741);\n\nvar _componentOrElement3 = _interopRequireDefault(_componentOrElement2);\n\nvar _deprecated2 = __webpack_require__(742);\n\nvar _deprecated3 = _interopRequireDefault(_deprecated2);\n\nvar _elementType2 = __webpack_require__(743);\n\nvar _elementType3 = _interopRequireDefault(_elementType2);\n\nvar _isRequiredForA11y2 = __webpack_require__(744);\n\nvar _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2);\n\nvar _splitComponent2 = __webpack_require__(745);\n\nvar _splitComponent3 = _interopRequireDefault(_splitComponent2);\n\nvar _createChainedFunction2 = __webpack_require__(746);\n\nvar _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2);\n\nvar _keyCode = __webpack_require__(747);\n\nvar _keyCode2 = _interopRequireDefault(_keyCode);\n\nvar _contains2 = __webpack_require__(748);\n\nvar _contains3 = _interopRequireDefault(_contains2);\n\nvar _addEventListener2 = __webpack_require__(247);\n\nvar _addEventListener3 = _interopRequireDefault(_addEventListener2);\n\nvar _cssAnimation2 = __webpack_require__(749);\n\nvar _cssAnimation3 = _interopRequireDefault(_cssAnimation2);\n\nvar _toArray2 = __webpack_require__(751);\n\nvar _toArray3 = _interopRequireDefault(_toArray2);\n\nvar _Align2 = __webpack_require__(752);\n\nvar _Align3 = _interopRequireDefault(_Align2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.all = _all3.default;\nexports.componentOrElement = _componentOrElement3.default;\nexports.deprecated = _deprecated3.default;\nexports.elementType = _elementType3.default;\nexports.isRequiredForA11y = _isRequiredForA11y3.default;\nexports.splitComponent = _splitComponent3.default;\nexports.createChainedFunction = _createChainedFunction3.default;\nexports.KeyCode = _keyCode2.default;\nexports.contains = _contains3.default;\nexports.addEventListener = _addEventListener3.default;\nexports.cssAnimation = _cssAnimation3.default;\nexports.toArray = _toArray3.default;\n//export getContainerRenderMixin from './getContainerRenderMixin';\n\nexports.Align = _Align3.default;\n\n/***/ }),\n/* 247 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = addEventListenerWrap;\n\nvar _addDomEventListener = __webpack_require__(12);\n\nvar _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nfunction addEventListenerWrap(target, eventType, cb) {\n /* eslint camelcase: 2 */\n var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {\n _reactDom2.default.unstable_batchedUpdates(cb, e);\n } : cb;\n return (0, _addDomEventListener2.default)(target, eventType, callback);\n}\n\n/***/ }),\n/* 248 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = addEventListenerWrap;\n\nvar _addDomEventListener = __webpack_require__(12);\n\nvar _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nfunction addEventListenerWrap(target, eventType, cb) {\n /* eslint camelcase: 2 */\n var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {\n _reactDom2.default.unstable_batchedUpdates(cb, e);\n } : cb;\n return (0, _addDomEventListener2.default)(target, eventType, callback);\n}\n\n/***/ }),\n/* 249 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar util = {\n isAppearSupported: function isAppearSupported(props) {\n return props.transitionName && props.transitionAppear || props.animation.appear;\n },\n isEnterSupported: function isEnterSupported(props) {\n return props.transitionName && props.transitionEnter || props.animation.enter;\n },\n isLeaveSupported: function isLeaveSupported(props) {\n return props.transitionName && props.transitionLeave || props.animation.leave;\n },\n allowAppearCallback: function allowAppearCallback(props) {\n return props.transitionAppear || props.animation.appear;\n },\n allowEnterCallback: function allowEnterCallback(props) {\n return props.transitionEnter || props.animation.enter;\n },\n allowLeaveCallback: function allowLeaveCallback(props) {\n return props.transitionLeave || props.animation.leave;\n }\n};\nexports[\"default\"] = util;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 250 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Menu__ = __webpack_require__(770);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__SubMenu__ = __webpack_require__(257);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__MenuItem__ = __webpack_require__(807);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__MenuItemGroup__ = __webpack_require__(810);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Divider__ = __webpack_require__(811);\n/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, \"SubMenu\", function() { return __WEBPACK_IMPORTED_MODULE_1__SubMenu__[\"a\"]; });\n/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, \"Item\", function() { return __WEBPACK_IMPORTED_MODULE_2__MenuItem__[\"a\"]; });\n/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, \"MenuItem\", function() { return __WEBPACK_IMPORTED_MODULE_2__MenuItem__[\"a\"]; });\n/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, \"MenuItemGroup\", function() { return __WEBPACK_IMPORTED_MODULE_3__MenuItemGroup__[\"a\"]; });\n/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, \"ItemGroup\", function() { return __WEBPACK_IMPORTED_MODULE_3__MenuItemGroup__[\"a\"]; });\n/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, \"Divider\", function() { return __WEBPACK_IMPORTED_MODULE_4__Divider__[\"a\"]; });\n\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (__WEBPACK_IMPORTED_MODULE_0__Menu__[\"a\" /* default */]);\n\n/***/ }),\n/* 251 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\nvar $keys = __webpack_require__(219);\nvar hiddenKeys = __webpack_require__(127).concat('length', 'prototype');\n\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return $keys(O, hiddenKeys);\n};\n\n\n/***/ }),\n/* 252 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar pIE = __webpack_require__(89);\nvar createDesc = __webpack_require__(65);\nvar toIObject = __webpack_require__(54);\nvar toPrimitive = __webpack_require__(121);\nvar has = __webpack_require__(47);\nvar IE8_DOM_DEFINE = __webpack_require__(216);\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nexports.f = __webpack_require__(41) ? gOPD : function getOwnPropertyDescriptor(O, P) {\n O = toIObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return gOPD(O, P);\n } catch (e) { /* empty */ }\n if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);\n};\n\n\n/***/ }),\n/* 253 */\n/***/ (function(module, exports, __webpack_require__) {\n\n__webpack_require__(792);\nvar $Object = __webpack_require__(24).Object;\nmodule.exports = function create(P, D) {\n return $Object.create(P, D);\n};\n\n\n/***/ }),\n/* 254 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.storeShape = undefined;\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar storeShape = exports.storeShape = _propTypes2.default.shape({\n subscribe: _propTypes2.default.func.isRequired,\n setState: _propTypes2.default.func.isRequired,\n getState: _propTypes2.default.func.isRequired\n});\n\n/***/ }),\n/* 255 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (immutable) */ __webpack_exports__[\"b\"] = getActiveKey;\n/* unused harmony export saveRef */\n/* unused harmony export SubPopupMenu */\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(23);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(7);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends__ = __webpack_require__(8);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_prop_types__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_mini_store__ = __webpack_require__(21);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_mini_store___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_mini_store__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__ = __webpack_require__(43);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_rc_util_es_createChainedFunction__ = __webpack_require__(256);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_classnames__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_classnames__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__util__ = __webpack_require__(58);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__DOMWrap__ = __webpack_require__(797);\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nfunction allDisabled(arr) {\n if (!arr.length) {\n return true;\n }\n return arr.every(function (c) {\n return !!c.props.disabled;\n });\n}\n\nfunction updateActiveKey(store, menuId, activeKey) {\n var _extends2;\n\n var state = store.getState();\n store.setState({\n activeKey: __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({}, state.activeKey, (_extends2 = {}, _extends2[menuId] = activeKey, _extends2))\n });\n}\n\nfunction getEventKey(props) {\n // when eventKey not available ,it's menu and return menu id '0-menu-'\n return props.eventKey || '0-menu-';\n}\n\nfunction getActiveKey(props, originalActiveKey) {\n var activeKey = originalActiveKey;\n var children = props.children,\n eventKey = props.eventKey;\n\n if (activeKey) {\n var found = void 0;\n Object(__WEBPACK_IMPORTED_MODULE_11__util__[\"d\" /* loopMenuItem */])(children, function (c, i) {\n if (c && !c.props.disabled && activeKey === Object(__WEBPACK_IMPORTED_MODULE_11__util__[\"a\" /* getKeyFromChildrenIndex */])(c, eventKey, i)) {\n found = true;\n }\n });\n if (found) {\n return activeKey;\n }\n }\n activeKey = null;\n if (props.defaultActiveFirst) {\n Object(__WEBPACK_IMPORTED_MODULE_11__util__[\"d\" /* loopMenuItem */])(children, function (c, i) {\n if (!activeKey && c && !c.props.disabled) {\n activeKey = Object(__WEBPACK_IMPORTED_MODULE_11__util__[\"a\" /* getKeyFromChildrenIndex */])(c, eventKey, i);\n }\n });\n return activeKey;\n }\n return activeKey;\n}\n\nfunction saveRef(c) {\n if (c) {\n var index = this.instanceArray.indexOf(c);\n if (index !== -1) {\n // update component if it's already inside instanceArray\n this.instanceArray[index] = c;\n } else {\n // add component if it's not in instanceArray yet;\n this.instanceArray.push(c);\n }\n }\n}\n\nvar SubPopupMenu = function (_React$Component) {\n __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default()(SubPopupMenu, _React$Component);\n\n function SubPopupMenu(props) {\n var _extends3;\n\n __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, SubPopupMenu);\n\n var _this = __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.call(this, props));\n\n _initialiseProps.call(_this);\n\n props.store.setState({\n activeKey: __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({}, props.store.getState().activeKey, (_extends3 = {}, _extends3[props.eventKey] = getActiveKey(props, props.activeKey), _extends3))\n });\n\n _this.instanceArray = [];\n return _this;\n }\n\n SubPopupMenu.prototype.componentDidMount = function componentDidMount() {\n // invoke customized ref to expose component to mixin\n if (this.props.manualRef) {\n this.props.manualRef(this);\n }\n };\n\n SubPopupMenu.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {\n return this.props.visible || nextProps.visible;\n };\n\n SubPopupMenu.prototype.componentDidUpdate = function componentDidUpdate() {\n var props = this.props;\n var originalActiveKey = 'activeKey' in props ? props.activeKey : props.store.getState().activeKey[getEventKey(props)];\n var activeKey = getActiveKey(props, originalActiveKey);\n if (activeKey !== originalActiveKey) {\n updateActiveKey(props.store, getEventKey(props), activeKey);\n }\n };\n\n // all keyboard events callbacks run from here at first\n\n\n SubPopupMenu.prototype.render = function render() {\n var _this2 = this;\n\n var props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default()(this.props, []);\n\n this.instanceArray = [];\n var className = __WEBPACK_IMPORTED_MODULE_10_classnames___default()(props.prefixCls, props.className, props.prefixCls + '-' + props.mode);\n var domProps = {\n className: className,\n // role could be 'select' and by default set to menu\n role: props.role || 'menu'\n };\n if (props.id) {\n domProps.id = props.id;\n }\n if (props.focusable) {\n domProps.tabIndex = '0';\n domProps.onKeyDown = this.onKeyDown;\n }\n var prefixCls = props.prefixCls,\n eventKey = props.eventKey,\n visible = props.visible,\n level = props.level,\n mode = props.mode,\n overflowedIndicator = props.overflowedIndicator,\n theme = props.theme;\n\n __WEBPACK_IMPORTED_MODULE_11__util__[\"f\" /* menuAllProps */].forEach(function (key) {\n return delete props[key];\n });\n\n // Otherwise, the propagated click event will trigger another onClick\n delete props.onClick;\n\n return (\n // ESLint is not smart enough to know that the type of `children` was checked.\n /* eslint-disable */\n __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(\n __WEBPACK_IMPORTED_MODULE_12__DOMWrap__[\"a\" /* default */],\n __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({}, props, {\n prefixCls: prefixCls,\n mode: mode,\n tag: 'ul',\n level: level,\n theme: theme,\n hiddenClassName: prefixCls + '-hidden',\n visible: visible,\n overflowedIndicator: overflowedIndicator\n }, domProps),\n __WEBPACK_IMPORTED_MODULE_5_react___default.a.Children.map(props.children, function (c, i) {\n return _this2.renderMenuItem(c, i, eventKey || '0-menu-');\n })\n )\n /*eslint-enable */\n\n );\n };\n\n return SubPopupMenu;\n}(__WEBPACK_IMPORTED_MODULE_5_react___default.a.Component);\nSubPopupMenu.propTypes = {\n onSelect: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,\n onClick: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,\n onDeselect: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,\n onOpenChange: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,\n onDestroy: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,\n openTransitionName: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string,\n openAnimation: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object]),\n openKeys: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string),\n visible: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,\n children: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.any,\n parentMenu: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object,\n eventKey: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string,\n store: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.shape({\n getState: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,\n setState: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func\n }),\n\n // adding in refactor\n focusable: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,\n multiple: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,\n style: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object,\n defaultActiveFirst: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,\n activeKey: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string,\n selectedKeys: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string),\n defaultSelectedKeys: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string),\n defaultOpenKeys: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string),\n level: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number,\n mode: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']),\n triggerSubMenuAction: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf(['click', 'hover']),\n inlineIndent: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string]),\n manualRef: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,\n itemIcon: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.node]),\n expandIcon: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.node])\n};\nSubPopupMenu.defaultProps = {\n prefixCls: 'rc-menu',\n className: '',\n mode: 'vertical',\n level: 1,\n inlineIndent: 24,\n visible: true,\n focusable: true,\n style: {},\n manualRef: __WEBPACK_IMPORTED_MODULE_11__util__[\"g\" /* noop */]\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this3 = this;\n\n this.onKeyDown = function (e, callback) {\n var keyCode = e.keyCode;\n var handled = void 0;\n _this3.getFlatInstanceArray().forEach(function (obj) {\n if (obj && obj.props.active && obj.onKeyDown) {\n handled = obj.onKeyDown(e);\n }\n });\n if (handled) {\n return 1;\n }\n var activeItem = null;\n if (keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__[\"a\" /* default */].UP || keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__[\"a\" /* default */].DOWN) {\n activeItem = _this3.step(keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__[\"a\" /* default */].UP ? -1 : 1);\n }\n if (activeItem) {\n e.preventDefault();\n updateActiveKey(_this3.props.store, getEventKey(_this3.props), activeItem.props.eventKey);\n\n if (typeof callback === 'function') {\n callback(activeItem);\n }\n\n return 1;\n }\n };\n\n this.onItemHover = function (e) {\n var key = e.key,\n hover = e.hover;\n\n updateActiveKey(_this3.props.store, getEventKey(_this3.props), hover ? key : null);\n };\n\n this.onDeselect = function (selectInfo) {\n _this3.props.onDeselect(selectInfo);\n };\n\n this.onSelect = function (selectInfo) {\n _this3.props.onSelect(selectInfo);\n };\n\n this.onClick = function (e) {\n _this3.props.onClick(e);\n };\n\n this.onOpenChange = function (e) {\n _this3.props.onOpenChange(e);\n };\n\n this.onDestroy = function (key) {\n /* istanbul ignore next */\n _this3.props.onDestroy(key);\n };\n\n this.getFlatInstanceArray = function () {\n return _this3.instanceArray;\n };\n\n this.getOpenTransitionName = function () {\n return _this3.props.openTransitionName;\n };\n\n this.step = function (direction) {\n var children = _this3.getFlatInstanceArray();\n var activeKey = _this3.props.store.getState().activeKey[getEventKey(_this3.props)];\n var len = children.length;\n if (!len) {\n return null;\n }\n if (direction < 0) {\n children = children.concat().reverse();\n }\n // find current activeIndex\n var activeIndex = -1;\n children.every(function (c, ci) {\n if (c && c.props.eventKey === activeKey) {\n activeIndex = ci;\n return false;\n }\n return true;\n });\n if (!_this3.props.defaultActiveFirst && activeIndex !== -1 && allDisabled(children.slice(activeIndex, len - 1))) {\n return undefined;\n }\n var start = (activeIndex + 1) % len;\n var i = start;\n\n do {\n var child = children[i];\n if (!child || child.props.disabled) {\n i = (i + 1) % len;\n } else {\n return child;\n }\n } while (i !== start);\n\n return null;\n };\n\n this.renderCommonMenuItem = function (child, i, extraProps) {\n var state = _this3.props.store.getState();\n var props = _this3.props;\n var key = Object(__WEBPACK_IMPORTED_MODULE_11__util__[\"a\" /* getKeyFromChildrenIndex */])(child, props.eventKey, i);\n var childProps = child.props;\n var isActive = key === state.activeKey;\n var newChildProps = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({\n mode: childProps.mode || props.mode,\n level: props.level,\n inlineIndent: props.inlineIndent,\n renderMenuItem: _this3.renderMenuItem,\n rootPrefixCls: props.prefixCls,\n index: i,\n parentMenu: props.parentMenu,\n // customized ref function, need to be invoked manually in child's componentDidMount\n manualRef: childProps.disabled ? undefined : Object(__WEBPACK_IMPORTED_MODULE_9_rc_util_es_createChainedFunction__[\"a\" /* default */])(child.ref, saveRef.bind(_this3)),\n eventKey: key,\n active: !childProps.disabled && isActive,\n multiple: props.multiple,\n onClick: function onClick(e) {\n (childProps.onClick || __WEBPACK_IMPORTED_MODULE_11__util__[\"g\" /* noop */])(e);\n _this3.onClick(e);\n },\n onItemHover: _this3.onItemHover,\n openTransitionName: _this3.getOpenTransitionName(),\n openAnimation: props.openAnimation,\n subMenuOpenDelay: props.subMenuOpenDelay,\n subMenuCloseDelay: props.subMenuCloseDelay,\n forceSubMenuRender: props.forceSubMenuRender,\n onOpenChange: _this3.onOpenChange,\n onDeselect: _this3.onDeselect,\n onSelect: _this3.onSelect,\n builtinPlacements: props.builtinPlacements,\n itemIcon: childProps.itemIcon || _this3.props.itemIcon,\n expandIcon: childProps.expandIcon || _this3.props.expandIcon\n }, extraProps);\n if (props.mode === 'inline') {\n newChildProps.triggerSubMenuAction = 'click';\n }\n return __WEBPACK_IMPORTED_MODULE_5_react___default.a.cloneElement(child, newChildProps);\n };\n\n this.renderMenuItem = function (c, i, subMenuKey) {\n /* istanbul ignore if */\n if (!c) {\n return null;\n }\n var state = _this3.props.store.getState();\n var extraProps = {\n openKeys: state.openKeys,\n selectedKeys: state.selectedKeys,\n triggerSubMenuAction: _this3.props.triggerSubMenuAction,\n subMenuKey: subMenuKey\n };\n return _this3.renderCommonMenuItem(c, i, extraProps);\n };\n};\n\nvar connected = Object(__WEBPACK_IMPORTED_MODULE_7_mini_store__[\"connect\"])()(SubPopupMenu);\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (connected);\n\n/***/ }),\n/* 256 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (immutable) */ __webpack_exports__[\"a\"] = createChainedFunction;\n/**\n * Safe chained function\n *\n * Will only create a new function if needed,\n * otherwise will pass back existing functions or null.\n *\n * @returns {function|null}\n */\nfunction createChainedFunction() {\n var args = [].slice.call(arguments, 0);\n\n if (args.length === 1) {\n return args[0];\n }\n\n return function chainedFunction() {\n for (var i = 0; i < args.length; i++) {\n if (args[i] && args[i].apply) {\n args[i].apply(this, arguments);\n }\n }\n };\n}\n\n/***/ }),\n/* 257 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* unused harmony export SubMenu */\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__ = __webpack_require__(7);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_possibleConstructorReturn__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_inherits__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_inherits__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends__ = __webpack_require__(8);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react_dom__ = __webpack_require__(3);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react_dom__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_prop_types__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_rc_trigger__ = __webpack_require__(73);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__ = __webpack_require__(43);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_classnames__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_classnames__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_mini_store__ = __webpack_require__(21);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_mini_store___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_mini_store__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__SubPopupMenu__ = __webpack_require__(255);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__placements__ = __webpack_require__(806);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_rc_animate__ = __webpack_require__(96);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__util__ = __webpack_require__(58);\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar guid = 0;\n\nvar popupPlacementMap = {\n horizontal: 'bottomLeft',\n vertical: 'rightTop',\n 'vertical-left': 'rightTop',\n 'vertical-right': 'leftTop'\n};\n\nvar updateDefaultActiveFirst = function updateDefaultActiveFirst(store, eventKey, defaultActiveFirst) {\n var _extends2;\n\n var menuId = Object(__WEBPACK_IMPORTED_MODULE_14__util__[\"b\" /* getMenuIdFromSubMenuEventKey */])(eventKey);\n var state = store.getState();\n store.setState({\n defaultActiveFirst: __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, state.defaultActiveFirst, (_extends2 = {}, _extends2[menuId] = defaultActiveFirst, _extends2))\n });\n};\n\nvar SubMenu = function (_React$Component) {\n __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_inherits___default()(SubMenu, _React$Component);\n\n function SubMenu(props) {\n __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default()(this, SubMenu);\n\n var _this = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.call(this, props));\n\n _initialiseProps.call(_this);\n\n var store = props.store;\n var eventKey = props.eventKey;\n var defaultActiveFirst = store.getState().defaultActiveFirst;\n\n _this.isRootMenu = false;\n\n var value = false;\n\n if (defaultActiveFirst) {\n value = defaultActiveFirst[eventKey];\n }\n\n updateDefaultActiveFirst(store, eventKey, value);\n return _this;\n }\n\n SubMenu.prototype.componentDidMount = function componentDidMount() {\n this.componentDidUpdate();\n };\n\n SubMenu.prototype.componentDidUpdate = function componentDidUpdate() {\n var _this2 = this;\n\n var _props = this.props,\n mode = _props.mode,\n parentMenu = _props.parentMenu,\n manualRef = _props.manualRef;\n\n // invoke customized ref to expose component to mixin\n\n if (manualRef) {\n manualRef(this);\n }\n\n if (mode !== 'horizontal' || !parentMenu.isRootMenu || !this.props.isOpen) {\n return;\n }\n\n this.minWidthTimeout = setTimeout(function () {\n return _this2.adjustWidth();\n }, 0);\n };\n\n SubMenu.prototype.componentWillUnmount = function componentWillUnmount() {\n var _props2 = this.props,\n onDestroy = _props2.onDestroy,\n eventKey = _props2.eventKey;\n\n if (onDestroy) {\n onDestroy(eventKey);\n }\n\n /* istanbul ignore if */\n if (this.minWidthTimeout) {\n clearTimeout(this.minWidthTimeout);\n }\n\n /* istanbul ignore if */\n if (this.mouseenterTimeout) {\n clearTimeout(this.mouseenterTimeout);\n }\n };\n\n SubMenu.prototype.renderChildren = function renderChildren(children) {\n var props = this.props;\n var baseProps = {\n mode: props.mode === 'horizontal' ? 'vertical' : props.mode,\n visible: this.props.isOpen,\n level: props.level + 1,\n inlineIndent: props.inlineIndent,\n focusable: false,\n onClick: this.onSubMenuClick,\n onSelect: this.onSelect,\n onDeselect: this.onDeselect,\n onDestroy: this.onDestroy,\n selectedKeys: props.selectedKeys,\n eventKey: props.eventKey + '-menu-',\n openKeys: props.openKeys,\n openTransitionName: props.openTransitionName,\n openAnimation: props.openAnimation,\n onOpenChange: this.onOpenChange,\n subMenuOpenDelay: props.subMenuOpenDelay,\n parentMenu: this,\n subMenuCloseDelay: props.subMenuCloseDelay,\n forceSubMenuRender: props.forceSubMenuRender,\n triggerSubMenuAction: props.triggerSubMenuAction,\n builtinPlacements: props.builtinPlacements,\n defaultActiveFirst: props.store.getState().defaultActiveFirst[Object(__WEBPACK_IMPORTED_MODULE_14__util__[\"b\" /* getMenuIdFromSubMenuEventKey */])(props.eventKey)],\n multiple: props.multiple,\n prefixCls: props.rootPrefixCls,\n id: this._menuId,\n manualRef: this.saveMenuInstance,\n itemIcon: props.itemIcon,\n expandIcon: props.expandIcon\n };\n\n var haveRendered = this.haveRendered;\n this.haveRendered = true;\n\n this.haveOpened = this.haveOpened || baseProps.visible || baseProps.forceSubMenuRender;\n // never rendered not planning to, don't render\n if (!this.haveOpened) {\n return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement('div', null);\n }\n\n // don't show transition on first rendering (no animation for opened menu)\n // show appear transition if it's not visible (not sure why)\n // show appear transition if it's not inline mode\n var transitionAppear = haveRendered || !baseProps.visible || !baseProps.mode === 'inline';\n\n baseProps.className = ' ' + baseProps.prefixCls + '-sub';\n var animProps = {};\n\n if (baseProps.openTransitionName) {\n animProps.transitionName = baseProps.openTransitionName;\n } else if (typeof baseProps.openAnimation === 'object') {\n animProps.animation = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, baseProps.openAnimation);\n if (!transitionAppear) {\n delete animProps.animation.appear;\n }\n }\n\n return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(\n __WEBPACK_IMPORTED_MODULE_13_rc_animate__[\"default\"],\n __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, animProps, {\n showProp: 'visible',\n component: '',\n transitionAppear: transitionAppear\n }),\n __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(\n __WEBPACK_IMPORTED_MODULE_11__SubPopupMenu__[\"a\" /* default */],\n __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, baseProps, { id: this._menuId }),\n children\n )\n );\n };\n\n SubMenu.prototype.render = function render() {\n var _classNames;\n\n var props = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, this.props);\n var isOpen = props.isOpen;\n var prefixCls = this.getPrefixCls();\n var isInlineMode = props.mode === 'inline';\n var className = __WEBPACK_IMPORTED_MODULE_9_classnames___default()(prefixCls, prefixCls + '-' + props.mode, (_classNames = {}, _classNames[props.className] = !!props.className, _classNames[this.getOpenClassName()] = isOpen, _classNames[this.getActiveClassName()] = props.active || isOpen && !isInlineMode, _classNames[this.getDisabledClassName()] = props.disabled, _classNames[this.getSelectedClassName()] = this.isChildrenSelected(), _classNames));\n\n if (!this._menuId) {\n if (props.eventKey) {\n this._menuId = props.eventKey + '$Menu';\n } else {\n this._menuId = '$__$' + ++guid + '$Menu';\n }\n }\n\n var mouseEvents = {};\n var titleClickEvents = {};\n var titleMouseEvents = {};\n if (!props.disabled) {\n mouseEvents = {\n onMouseLeave: this.onMouseLeave,\n onMouseEnter: this.onMouseEnter\n };\n\n // only works in title, not outer li\n titleClickEvents = {\n onClick: this.onTitleClick\n };\n titleMouseEvents = {\n onMouseEnter: this.onTitleMouseEnter,\n onMouseLeave: this.onTitleMouseLeave\n };\n }\n\n var style = {};\n if (isInlineMode) {\n style.paddingLeft = props.inlineIndent * props.level;\n }\n\n var ariaOwns = {};\n // only set aria-owns when menu is open\n // otherwise it would be an invalid aria-owns value\n // since corresponding node cannot be found\n if (this.props.isOpen) {\n ariaOwns = {\n 'aria-owns': this._menuId\n };\n }\n\n // expand custom icon should NOT be displayed in menu with horizontal mode.\n var icon = null;\n if (props.mode !== 'horizontal') {\n icon = this.props.expandIcon; // ReactNode\n if (typeof this.props.expandIcon === 'function') {\n icon = __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(this.props.expandIcon, __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, this.props));\n }\n }\n\n var title = __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(\n 'div',\n __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({\n ref: this.saveSubMenuTitle,\n style: style,\n className: prefixCls + '-title'\n }, titleMouseEvents, titleClickEvents, {\n 'aria-expanded': isOpen\n }, ariaOwns, {\n 'aria-haspopup': 'true',\n title: typeof props.title === 'string' ? props.title : undefined\n }),\n props.title,\n icon || __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement('i', { className: prefixCls + '-arrow' })\n );\n var children = this.renderChildren(props.children);\n\n var getPopupContainer = props.parentMenu.isRootMenu ? props.parentMenu.props.getPopupContainer : function (triggerNode) {\n return triggerNode.parentNode;\n };\n var popupPlacement = popupPlacementMap[props.mode];\n var popupAlign = props.popupOffset ? { offset: props.popupOffset } : {};\n var popupClassName = props.mode === 'inline' ? '' : props.popupClassName;\n var disabled = props.disabled,\n triggerSubMenuAction = props.triggerSubMenuAction,\n subMenuOpenDelay = props.subMenuOpenDelay,\n forceSubMenuRender = props.forceSubMenuRender,\n subMenuCloseDelay = props.subMenuCloseDelay,\n builtinPlacements = props.builtinPlacements;\n\n __WEBPACK_IMPORTED_MODULE_14__util__[\"f\" /* menuAllProps */].forEach(function (key) {\n return delete props[key];\n });\n // Set onClick to null, to ignore propagated onClick event\n delete props.onClick;\n\n return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(\n 'li',\n __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, props, mouseEvents, {\n className: className,\n role: 'menuitem'\n }),\n isInlineMode && title,\n isInlineMode && children,\n !isInlineMode && __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(\n __WEBPACK_IMPORTED_MODULE_7_rc_trigger__[\"default\"],\n {\n prefixCls: prefixCls,\n popupClassName: prefixCls + '-popup ' + popupClassName,\n getPopupContainer: getPopupContainer,\n builtinPlacements: __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, __WEBPACK_IMPORTED_MODULE_12__placements__[\"a\" /* default */], builtinPlacements),\n popupPlacement: popupPlacement,\n popupVisible: isOpen,\n popupAlign: popupAlign,\n popup: children,\n action: disabled ? [] : [triggerSubMenuAction],\n mouseEnterDelay: subMenuOpenDelay,\n mouseLeaveDelay: subMenuCloseDelay,\n onPopupVisibleChange: this.onPopupVisibleChange,\n forceRender: forceSubMenuRender\n },\n title\n )\n );\n };\n\n return SubMenu;\n}(__WEBPACK_IMPORTED_MODULE_4_react___default.a.Component);\n\nSubMenu.propTypes = {\n parentMenu: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object,\n title: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.node,\n children: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.any,\n selectedKeys: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.array,\n openKeys: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.array,\n onClick: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,\n onOpenChange: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,\n rootPrefixCls: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string,\n eventKey: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string,\n multiple: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,\n active: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, // TODO: remove\n onItemHover: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,\n onSelect: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,\n triggerSubMenuAction: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string,\n onDeselect: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,\n onDestroy: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,\n onMouseEnter: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,\n onMouseLeave: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,\n onTitleMouseEnter: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,\n onTitleMouseLeave: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,\n onTitleClick: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,\n popupOffset: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.array,\n isOpen: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,\n store: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object,\n mode: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']),\n manualRef: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,\n itemIcon: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.node]),\n expandIcon: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.node])\n};\nSubMenu.defaultProps = {\n onMouseEnter: __WEBPACK_IMPORTED_MODULE_14__util__[\"g\" /* noop */],\n onMouseLeave: __WEBPACK_IMPORTED_MODULE_14__util__[\"g\" /* noop */],\n onTitleMouseEnter: __WEBPACK_IMPORTED_MODULE_14__util__[\"g\" /* noop */],\n onTitleMouseLeave: __WEBPACK_IMPORTED_MODULE_14__util__[\"g\" /* noop */],\n onTitleClick: __WEBPACK_IMPORTED_MODULE_14__util__[\"g\" /* noop */],\n manualRef: __WEBPACK_IMPORTED_MODULE_14__util__[\"g\" /* noop */],\n mode: 'vertical',\n title: ''\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this3 = this;\n\n this.onDestroy = function (key) {\n _this3.props.onDestroy(key);\n };\n\n this.onKeyDown = function (e) {\n var keyCode = e.keyCode;\n var menu = _this3.menuInstance;\n var _props3 = _this3.props,\n isOpen = _props3.isOpen,\n store = _props3.store;\n\n\n if (keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__[\"a\" /* default */].ENTER) {\n _this3.onTitleClick(e);\n updateDefaultActiveFirst(store, _this3.props.eventKey, true);\n return true;\n }\n\n if (keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__[\"a\" /* default */].RIGHT) {\n if (isOpen) {\n menu.onKeyDown(e);\n } else {\n _this3.triggerOpenChange(true);\n // need to update current menu's defaultActiveFirst value\n updateDefaultActiveFirst(store, _this3.props.eventKey, true);\n }\n return true;\n }\n if (keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__[\"a\" /* default */].LEFT) {\n var handled = void 0;\n if (isOpen) {\n handled = menu.onKeyDown(e);\n } else {\n return undefined;\n }\n if (!handled) {\n _this3.triggerOpenChange(false);\n handled = true;\n }\n return handled;\n }\n\n if (isOpen && (keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__[\"a\" /* default */].UP || keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__[\"a\" /* default */].DOWN)) {\n return menu.onKeyDown(e);\n }\n };\n\n this.onOpenChange = function (e) {\n _this3.props.onOpenChange(e);\n };\n\n this.onPopupVisibleChange = function (visible) {\n _this3.triggerOpenChange(visible, visible ? 'mouseenter' : 'mouseleave');\n };\n\n this.onMouseEnter = function (e) {\n var _props4 = _this3.props,\n key = _props4.eventKey,\n onMouseEnter = _props4.onMouseEnter,\n store = _props4.store;\n\n updateDefaultActiveFirst(store, _this3.props.eventKey, false);\n onMouseEnter({\n key: key,\n domEvent: e\n });\n };\n\n this.onMouseLeave = function (e) {\n var _props5 = _this3.props,\n parentMenu = _props5.parentMenu,\n eventKey = _props5.eventKey,\n onMouseLeave = _props5.onMouseLeave;\n\n parentMenu.subMenuInstance = _this3;\n onMouseLeave({\n key: eventKey,\n domEvent: e\n });\n };\n\n this.onTitleMouseEnter = function (domEvent) {\n var _props6 = _this3.props,\n key = _props6.eventKey,\n onItemHover = _props6.onItemHover,\n onTitleMouseEnter = _props6.onTitleMouseEnter;\n\n onItemHover({\n key: key,\n hover: true\n });\n onTitleMouseEnter({\n key: key,\n domEvent: domEvent\n });\n };\n\n this.onTitleMouseLeave = function (e) {\n var _props7 = _this3.props,\n parentMenu = _props7.parentMenu,\n eventKey = _props7.eventKey,\n onItemHover = _props7.onItemHover,\n onTitleMouseLeave = _props7.onTitleMouseLeave;\n\n parentMenu.subMenuInstance = _this3;\n onItemHover({\n key: eventKey,\n hover: false\n });\n onTitleMouseLeave({\n key: eventKey,\n domEvent: e\n });\n };\n\n this.onTitleClick = function (e) {\n var props = _this3.props;\n\n props.onTitleClick({\n key: props.eventKey,\n domEvent: e\n });\n if (props.triggerSubMenuAction === 'hover') {\n return;\n }\n _this3.triggerOpenChange(!props.isOpen, 'click');\n updateDefaultActiveFirst(props.store, _this3.props.eventKey, false);\n };\n\n this.onSubMenuClick = function (info) {\n // in the case of overflowed submenu\n // onClick is not copied over\n if (typeof _this3.props.onClick === 'function') {\n _this3.props.onClick(_this3.addKeyPath(info));\n }\n };\n\n this.onSelect = function (info) {\n _this3.props.onSelect(info);\n };\n\n this.onDeselect = function (info) {\n _this3.props.onDeselect(info);\n };\n\n this.getPrefixCls = function () {\n return _this3.props.rootPrefixCls + '-submenu';\n };\n\n this.getActiveClassName = function () {\n return _this3.getPrefixCls() + '-active';\n };\n\n this.getDisabledClassName = function () {\n return _this3.getPrefixCls() + '-disabled';\n };\n\n this.getSelectedClassName = function () {\n return _this3.getPrefixCls() + '-selected';\n };\n\n this.getOpenClassName = function () {\n return _this3.props.rootPrefixCls + '-submenu-open';\n };\n\n this.saveMenuInstance = function (c) {\n // children menu instance\n _this3.menuInstance = c;\n };\n\n this.addKeyPath = function (info) {\n return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, info, {\n keyPath: (info.keyPath || []).concat(_this3.props.eventKey)\n });\n };\n\n this.triggerOpenChange = function (open, type) {\n var key = _this3.props.eventKey;\n var openChange = function openChange() {\n _this3.onOpenChange({\n key: key,\n item: _this3,\n trigger: type,\n open: open\n });\n };\n if (type === 'mouseenter') {\n // make sure mouseenter happen after other menu item's mouseleave\n _this3.mouseenterTimeout = setTimeout(function () {\n openChange();\n }, 0);\n } else {\n openChange();\n }\n };\n\n this.isChildrenSelected = function () {\n var ret = { find: false };\n Object(__WEBPACK_IMPORTED_MODULE_14__util__[\"e\" /* loopMenuItemRecursively */])(_this3.props.children, _this3.props.selectedKeys, ret);\n return ret.find;\n };\n\n this.isOpen = function () {\n return _this3.props.openKeys.indexOf(_this3.props.eventKey) !== -1;\n };\n\n this.adjustWidth = function () {\n /* istanbul ignore if */\n if (!_this3.subMenuTitle || !_this3.menuInstance) {\n return;\n }\n var popupMenu = __WEBPACK_IMPORTED_MODULE_5_react_dom___default.a.findDOMNode(_this3.menuInstance);\n if (popupMenu.offsetWidth >= _this3.subMenuTitle.offsetWidth) {\n return;\n }\n\n /* istanbul ignore next */\n popupMenu.style.minWidth = _this3.subMenuTitle.offsetWidth + 'px';\n };\n\n this.saveSubMenuTitle = function (subMenuTitle) {\n _this3.subMenuTitle = subMenuTitle;\n };\n};\n\nvar connected = Object(__WEBPACK_IMPORTED_MODULE_10_mini_store__[\"connect\"])(function (_ref, _ref2) {\n var openKeys = _ref.openKeys,\n activeKey = _ref.activeKey,\n selectedKeys = _ref.selectedKeys;\n var eventKey = _ref2.eventKey,\n subMenuKey = _ref2.subMenuKey;\n return {\n isOpen: openKeys.indexOf(eventKey) > -1,\n active: activeKey[subMenuKey] === eventKey,\n selectedKeys: selectedKeys\n };\n})(SubMenu);\n\nconnected.isSubMenu = true;\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (connected);\n\n/***/ }),\n/* 258 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return ContainerRender; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom__ = __webpack_require__(3);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_dom__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_prop_types__);\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n\n\n\n\nvar ContainerRender = /*#__PURE__*/function (_React$Component) {\n _inherits(ContainerRender, _React$Component);\n\n var _super = _createSuper(ContainerRender);\n\n function ContainerRender() {\n var _this;\n\n _classCallCheck(this, ContainerRender);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _this.removeContainer = function () {\n if (_this.container) {\n __WEBPACK_IMPORTED_MODULE_1_react_dom___default.a.unmountComponentAtNode(_this.container);\n\n _this.container.parentNode.removeChild(_this.container);\n\n _this.container = null;\n }\n };\n\n _this.renderComponent = function (props, ready) {\n var _this$props = _this.props,\n visible = _this$props.visible,\n getComponent = _this$props.getComponent,\n forceRender = _this$props.forceRender,\n getContainer = _this$props.getContainer,\n parent = _this$props.parent;\n\n if (visible || parent._component || forceRender) {\n if (!_this.container) {\n _this.container = getContainer();\n }\n\n __WEBPACK_IMPORTED_MODULE_1_react_dom___default.a.unstable_renderSubtreeIntoContainer(parent, getComponent(props), _this.container, function callback() {\n if (ready) {\n ready.call(this);\n }\n });\n }\n };\n\n return _this;\n }\n\n _createClass(ContainerRender, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (this.props.autoMount) {\n this.renderComponent();\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate() {\n if (this.props.autoMount) {\n this.renderComponent();\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (this.props.autoDestroy) {\n this.removeContainer();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n return this.props.children({\n renderComponent: this.renderComponent,\n removeContainer: this.removeContainer\n });\n }\n }]);\n\n return ContainerRender;\n}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);\n\nContainerRender.propTypes = {\n autoMount: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,\n autoDestroy: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,\n visible: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,\n forceRender: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,\n parent: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.any,\n getComponent: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func.isRequired,\n getContainer: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func.isRequired,\n children: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func.isRequired\n};\nContainerRender.defaultProps = {\n autoMount: true,\n autoDestroy: true,\n forceRender: false\n};\n\n\n/***/ }),\n/* 259 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return Portal; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom__ = __webpack_require__(3);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_dom__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_prop_types__);\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n\n\n\n\nvar Portal = /*#__PURE__*/function (_React$Component) {\n _inherits(Portal, _React$Component);\n\n var _super = _createSuper(Portal);\n\n function Portal() {\n _classCallCheck(this, Portal);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(Portal, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.createContainer();\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n var didUpdate = this.props.didUpdate;\n\n if (didUpdate) {\n didUpdate(prevProps);\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.removeContainer();\n }\n }, {\n key: \"createContainer\",\n value: function createContainer() {\n this._container = this.props.getContainer();\n this.forceUpdate();\n }\n }, {\n key: \"removeContainer\",\n value: function removeContainer() {\n if (this._container) {\n this._container.parentNode.removeChild(this._container);\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n if (this._container) {\n return __WEBPACK_IMPORTED_MODULE_1_react_dom___default.a.createPortal(this.props.children, this._container);\n }\n\n return null;\n }\n }]);\n\n return Portal;\n}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);\n\nPortal.propTypes = {\n getContainer: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func.isRequired,\n children: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.node.isRequired,\n didUpdate: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func\n};\n\n\n/***/ }),\n/* 260 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (immutable) */ __webpack_exports__[\"a\"] = getAlignFromPlacement;\n/* harmony export (immutable) */ __webpack_exports__[\"b\"] = getAlignPopupClassName;\n/* harmony export (immutable) */ __webpack_exports__[\"c\"] = saveRef;\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(8);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);\n\nfunction isPointsEq(a1, a2, isAlignPoint) {\n if (isAlignPoint) {\n return a1[0] === a2[0];\n }\n return a1[0] === a2[0] && a1[1] === a2[1];\n}\n\nfunction getAlignFromPlacement(builtinPlacements, placementStr, align) {\n var baseAlign = builtinPlacements[placementStr] || {};\n return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, baseAlign, align);\n}\n\nfunction getAlignPopupClassName(builtinPlacements, prefixCls, align, isAlignPoint) {\n var points = align.points;\n for (var placement in builtinPlacements) {\n if (builtinPlacements.hasOwnProperty(placement)) {\n if (isPointsEq(builtinPlacements[placement].points, points, isAlignPoint)) {\n return prefixCls + '-placement-' + placement;\n }\n }\n }\n return '';\n}\n\nfunction saveRef(name, component) {\n this[name] = component;\n}\n\n/***/ }),\n/* 261 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Align__ = __webpack_require__(799);\n// export this package's api\n\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (__WEBPACK_IMPORTED_MODULE_0__Align__[\"a\" /* default */]);\n\n/***/ }),\n/* 262 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nvar util = {\n isAppearSupported: function isAppearSupported(props) {\n return props.transitionName && props.transitionAppear || props.animation.appear;\n },\n isEnterSupported: function isEnterSupported(props) {\n return props.transitionName && props.transitionEnter || props.animation.enter;\n },\n isLeaveSupported: function isLeaveSupported(props) {\n return props.transitionName && props.transitionLeave || props.animation.leave;\n },\n allowAppearCallback: function allowAppearCallback(props) {\n return props.transitionAppear || props.animation.appear;\n },\n allowEnterCallback: function allowEnterCallback(props) {\n return props.transitionEnter || props.animation.enter;\n },\n allowLeaveCallback: function allowLeaveCallback(props) {\n return props.transitionLeave || props.animation.leave;\n }\n};\n/* harmony default export */ __webpack_exports__[\"a\"] = (util);\n\n/***/ }),\n/* 263 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(23);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(7);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_prop_types__);\n\n\n\n\n\n\n\nvar LazyRenderBox = function (_Component) {\n __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default()(LazyRenderBox, _Component);\n\n function LazyRenderBox() {\n __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, LazyRenderBox);\n\n return __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(this, _Component.apply(this, arguments));\n }\n\n LazyRenderBox.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {\n return nextProps.hiddenClassName || nextProps.visible;\n };\n\n LazyRenderBox.prototype.render = function render() {\n var _props = this.props,\n hiddenClassName = _props.hiddenClassName,\n visible = _props.visible,\n props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['hiddenClassName', 'visible']);\n\n if (hiddenClassName || __WEBPACK_IMPORTED_MODULE_4_react___default.a.Children.count(props.children) > 1) {\n if (!visible && hiddenClassName) {\n props.className += ' ' + hiddenClassName;\n }\n return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement('div', props);\n }\n\n return __WEBPACK_IMPORTED_MODULE_4_react___default.a.Children.only(props.children);\n };\n\n return LazyRenderBox;\n}(__WEBPACK_IMPORTED_MODULE_4_react__[\"Component\"]);\n\nLazyRenderBox.propTypes = {\n children: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.any,\n className: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string,\n visible: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool,\n hiddenClassName: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string\n};\n\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (LazyRenderBox);\n\n/***/ }),\n/* 264 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = addEventListenerWrap;\n\nvar _addDomEventListener = __webpack_require__(12);\n\nvar _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nfunction addEventListenerWrap(target, eventType, cb) {\n /* eslint camelcase: 2 */\n var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {\n _reactDom2.default.unstable_batchedUpdates(cb, e);\n } : cb;\n return (0, _addDomEventListener2.default)(target, eventType, callback);\n}\n\n/***/ }),\n/* 265 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _domAlign = __webpack_require__(13);\n\nvar _domAlign2 = _interopRequireDefault(_domAlign);\n\nvar _addEventListener = __webpack_require__(264);\n\nvar _addEventListener2 = _interopRequireDefault(_addEventListener);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\n\n\n//import isWindow from './isWindow';\n\nfunction isWindow(obj) {\n /* eslint no-eq-null: 0 */\n /* eslint eqeqeq: 0 */\n return obj != null && obj == obj.window;\n}\n\nfunction buffer(fn, ms) {\n var timer = void 0;\n\n function clear() {\n if (timer) {\n clearTimeout(timer);\n timer = null;\n }\n }\n\n function bufferFn() {\n clear();\n timer = setTimeout(fn, ms);\n }\n\n bufferFn.clear = clear;\n\n return bufferFn;\n}\n\nvar propTypes = {\n childrenProps: _propTypes2.default.object,\n align: _propTypes2.default.object.isRequired,\n target: _propTypes2.default.func,\n onAlign: _propTypes2.default.func,\n monitorBufferTime: _propTypes2.default.number,\n monitorWindowResize: _propTypes2.default.bool,\n disabled: _propTypes2.default.bool,\n children: _propTypes2.default.any\n};\n\nvar defaultProps = {\n target: function target() {\n return window;\n },\n onAlign: function onAlign() {},\n\n monitorBufferTime: 50,\n monitorWindowResize: false,\n disabled: false\n};\n\nvar Align = function (_React$Component) {\n _inherits(Align, _React$Component);\n\n function Align(props) {\n _classCallCheck(this, Align);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));\n\n _initialiseProps.call(_this);\n\n return _this;\n }\n\n Align.prototype.componentDidMount = function componentDidMount() {\n var props = this.props;\n // if parent ref not attached .... use document.getElementById\n this.forceAlign();\n if (!props.disabled && props.monitorWindowResize) {\n this.startMonitorWindowResize();\n }\n };\n\n Align.prototype.componentDidUpdate = function componentDidUpdate(prevProps) {\n var reAlign = false;\n var props = this.props;\n\n if (!props.disabled) {\n if (prevProps.disabled || prevProps.align !== props.align) {\n reAlign = true;\n } else {\n var lastTarget = prevProps.target();\n var currentTarget = props.target();\n if (isWindow(lastTarget) && isWindow(currentTarget)) {\n reAlign = false;\n } else if (lastTarget !== currentTarget) {\n reAlign = true;\n }\n }\n }\n\n if (reAlign) {\n this.forceAlign();\n }\n\n if (props.monitorWindowResize && !props.disabled) {\n this.startMonitorWindowResize();\n } else {\n this.stopMonitorWindowResize();\n }\n };\n\n Align.prototype.componentWillUnmount = function componentWillUnmount() {\n this.stopMonitorWindowResize();\n };\n\n Align.prototype.render = function render() {\n var _props = this.props,\n childrenProps = _props.childrenProps,\n children = _props.children;\n\n var child = _react2.default.Children.only(children);\n if (childrenProps) {\n var newProps = {};\n for (var prop in childrenProps) {\n if (childrenProps.hasOwnProperty(prop)) {\n newProps[prop] = this.props[childrenProps[prop]];\n }\n }\n return _react2.default.cloneElement(child, newProps);\n }\n return child;\n };\n\n return Align;\n}(_react2.default.Component);\n\nvar _initialiseProps = function _initialiseProps() {\n var _this2 = this;\n\n this.startMonitorWindowResize = function () {\n if (!_this2.resizeHandler) {\n _this2.bufferMonitor = buffer(_this2.forceAlign, _this2.props.monitorBufferTime);\n _this2.resizeHandler = (0, _addEventListener2.default)(window, 'resize', _this2.bufferMonitor);\n }\n };\n\n this.stopMonitorWindowResize = function () {\n if (_this2.resizeHandler) {\n _this2.bufferMonitor.clear();\n _this2.resizeHandler.remove();\n _this2.resizeHandler = null;\n }\n };\n\n this.forceAlign = function () {\n var props = _this2.props;\n if (!props.disabled) {\n var source = _reactDom2.default.findDOMNode(_this2);\n props.onAlign(source, (0, _domAlign2.default)(source, props.target(), props.align));\n }\n };\n};\n\n;\n\nAlign.defaultProps = defaultProps;\nAlign.propTypes = propTypes;\n\nexports.default = Align;\n\n/***/ }),\n/* 266 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar util = {\n isAppearSupported: function isAppearSupported(props) {\n return props.transitionName && props.transitionAppear || props.animation.appear;\n },\n isEnterSupported: function isEnterSupported(props) {\n return props.transitionName && props.transitionEnter || props.animation.enter;\n },\n isLeaveSupported: function isLeaveSupported(props) {\n return props.transitionName && props.transitionLeave || props.animation.leave;\n },\n allowAppearCallback: function allowAppearCallback(props) {\n return props.transitionAppear || props.animation.appear;\n },\n allowEnterCallback: function allowEnterCallback(props) {\n return props.transitionEnter || props.animation.enter;\n },\n allowLeaveCallback: function allowLeaveCallback(props) {\n return props.transitionLeave || props.animation.leave;\n }\n};\nexports[\"default\"] = util;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 267 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**\n * This source code is quoted from rc-trigger.\n * homepage: https://github.com/react-component/trigger\n */\n\n\nvar propTypes = {\n children: _propTypes2[\"default\"].any,\n className: _propTypes2[\"default\"].string,\n visible: _propTypes2[\"default\"].bool,\n hiddenClassName: _propTypes2[\"default\"].string\n};\n\nvar LazyRenderBox = function (_Component) {\n _inherits(LazyRenderBox, _Component);\n\n function LazyRenderBox() {\n _classCallCheck(this, LazyRenderBox);\n\n return _possibleConstructorReturn(this, _Component.apply(this, arguments));\n }\n\n LazyRenderBox.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {\n return nextProps.hiddenClassName || nextProps.visible;\n };\n\n LazyRenderBox.prototype.render = function render() {\n var _props = this.props,\n hiddenClassName = _props.hiddenClassName,\n visible = _props.visible,\n props = _objectWithoutProperties(_props, ['hiddenClassName', 'visible']);\n\n if (hiddenClassName || _react2[\"default\"].Children.count(props.children) > 1) {\n if (!visible && hiddenClassName) {\n props.className += ' ' + hiddenClassName;\n }\n return _react2[\"default\"].createElement('div', props);\n }\n\n return _react2[\"default\"].Children.only(props.children);\n };\n\n return LazyRenderBox;\n}(_react.Component);\n\n;\nLazyRenderBox.propTypes = propTypes;\n\nexports[\"default\"] = LazyRenderBox;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 268 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.SelectPropTypes = undefined;\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction valueType(props, propName, componentName) {\n var basicType = _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].string, _propTypes2[\"default\"].number]);\n\n var labelInValueShape = _propTypes2[\"default\"].shape({\n key: basicType.isRequired,\n label: _propTypes2[\"default\"].node\n });\n if (props.labelInValue) {\n var validate = _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].arrayOf(labelInValueShape), labelInValueShape]);\n var error = validate.apply(undefined, arguments);\n if (error) {\n return new Error('Invalid prop `' + propName + '` supplied to `' + componentName + '`, ' + ('when you set `labelInValue` to `true`, `' + propName + '` should in ') + 'shape of `{ key: string | number, label?: ReactNode }`.');\n }\n } else if ((props.mode === 'multiple' || props.mode === 'tags' || props.multiple || props.tags) && props[propName] === '') {\n return new Error('Invalid prop `' + propName + '` of type `string` supplied to `' + componentName + '`, ' + 'expected `array` when `multiple` or `tags` is `true`.');\n } else {\n var _validate = _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].arrayOf(basicType), basicType]);\n return _validate.apply(undefined, arguments);\n }\n} /**\n * This source code is quoted from rc-select.\n * homepage: https://github.com/react-component/select\n */\nvar SelectPropTypes = exports.SelectPropTypes = {\n id: _propTypes2[\"default\"].string,\n defaultActiveFirstOption: _propTypes2[\"default\"].bool,\n multiple: _propTypes2[\"default\"].bool,\n filterOption: _propTypes2[\"default\"].any,\n children: _propTypes2[\"default\"].any,\n showSearch: _propTypes2[\"default\"].bool,\n disabled: _propTypes2[\"default\"].bool,\n allowClear: _propTypes2[\"default\"].bool,\n showArrow: _propTypes2[\"default\"].bool,\n tags: _propTypes2[\"default\"].bool,\n prefixCls: _propTypes2[\"default\"].string,\n className: _propTypes2[\"default\"].string,\n transitionName: _propTypes2[\"default\"].string,\n optionLabelProp: _propTypes2[\"default\"].string,\n optionFilterProp: _propTypes2[\"default\"].string,\n animation: _propTypes2[\"default\"].string,\n choiceTransitionName: _propTypes2[\"default\"].string,\n open: _propTypes2[\"default\"].bool,\n defaultOpen: _propTypes2[\"default\"].bool,\n onChange: _propTypes2[\"default\"].func,\n onBlur: _propTypes2[\"default\"].func,\n onFocus: _propTypes2[\"default\"].func,\n onSelect: _propTypes2[\"default\"].func,\n onSearch: _propTypes2[\"default\"].func,\n onPopupScroll: _propTypes2[\"default\"].func,\n onMouseEnter: _propTypes2[\"default\"].func,\n onMouseLeave: _propTypes2[\"default\"].func,\n onInputKeyDown: _propTypes2[\"default\"].func,\n placeholder: _propTypes2[\"default\"].any,\n onDeselect: _propTypes2[\"default\"].func,\n labelInValue: _propTypes2[\"default\"].bool,\n value: valueType,\n defaultValue: valueType,\n dropdownStyle: _propTypes2[\"default\"].object,\n maxTagTextLength: _propTypes2[\"default\"].number,\n maxTagCount: _propTypes2[\"default\"].number,\n maxTagPlaceholder: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].node, _propTypes2[\"default\"].func]),\n tokenSeparators: _propTypes2[\"default\"].arrayOf(_propTypes2[\"default\"].string),\n getInputElement: _propTypes2[\"default\"].func,\n showAction: _propTypes2[\"default\"].arrayOf(_propTypes2[\"default\"].string),\n clearIcon: _propTypes2[\"default\"].node,\n inputIcon: _propTypes2[\"default\"].node,\n removeIcon: _propTypes2[\"default\"].node,\n menuItemSelectedIcon: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].func, _propTypes2[\"default\"].node])\n};\n\n/***/ }),\n/* 269 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar OptGroup = function (_React$Component) {\n _inherits(OptGroup, _React$Component);\n\n function OptGroup() {\n _classCallCheck(this, OptGroup);\n\n return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n return OptGroup;\n}(_react2[\"default\"].Component);\n\nOptGroup.isSelectOptGroup = true;\nexports[\"default\"] = OptGroup;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 270 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress\n * @license MIT */\n\n;(function(root, factory) {\n\n if (true) {\n !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?\n\t\t\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :\n\t\t\t\t__WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n } else if (typeof exports === 'object') {\n module.exports = factory();\n } else {\n root.NProgress = factory();\n }\n\n})(this, function() {\n var NProgress = {};\n\n NProgress.version = '0.2.0';\n\n var Settings = NProgress.settings = {\n minimum: 0.08,\n easing: 'ease',\n positionUsing: '',\n speed: 200,\n trickle: true,\n trickleRate: 0.02,\n trickleSpeed: 800,\n showSpinner: true,\n barSelector: '[role=\"bar\"]',\n spinnerSelector: '[role=\"spinner\"]',\n parent: 'body',\n template: '
    '\n };\n\n /**\n * Updates configuration.\n *\n * NProgress.configure({\n * minimum: 0.1\n * });\n */\n NProgress.configure = function(options) {\n var key, value;\n for (key in options) {\n value = options[key];\n if (value !== undefined && options.hasOwnProperty(key)) Settings[key] = value;\n }\n\n return this;\n };\n\n /**\n * Last number.\n */\n\n NProgress.status = null;\n\n /**\n * Sets the progress bar status, where `n` is a number from `0.0` to `1.0`.\n *\n * NProgress.set(0.4);\n * NProgress.set(1.0);\n */\n\n NProgress.set = function(n) {\n var started = NProgress.isStarted();\n\n n = clamp(n, Settings.minimum, 1);\n NProgress.status = (n === 1 ? null : n);\n\n var progress = NProgress.render(!started),\n bar = progress.querySelector(Settings.barSelector),\n speed = Settings.speed,\n ease = Settings.easing;\n\n progress.offsetWidth; /* Repaint */\n\n queue(function(next) {\n // Set positionUsing if it hasn't already been set\n if (Settings.positionUsing === '') Settings.positionUsing = NProgress.getPositioningCSS();\n\n // Add transition\n css(bar, barPositionCSS(n, speed, ease));\n\n if (n === 1) {\n // Fade out\n css(progress, { \n transition: 'none', \n opacity: 1 \n });\n progress.offsetWidth; /* Repaint */\n\n setTimeout(function() {\n css(progress, { \n transition: 'all ' + speed + 'ms linear', \n opacity: 0 \n });\n setTimeout(function() {\n NProgress.remove();\n next();\n }, speed);\n }, speed);\n } else {\n setTimeout(next, speed);\n }\n });\n\n return this;\n };\n\n NProgress.isStarted = function() {\n return typeof NProgress.status === 'number';\n };\n\n /**\n * Shows the progress bar.\n * This is the same as setting the status to 0%, except that it doesn't go backwards.\n *\n * NProgress.start();\n *\n */\n NProgress.start = function() {\n if (!NProgress.status) NProgress.set(0);\n\n var work = function() {\n setTimeout(function() {\n if (!NProgress.status) return;\n NProgress.trickle();\n work();\n }, Settings.trickleSpeed);\n };\n\n if (Settings.trickle) work();\n\n return this;\n };\n\n /**\n * Hides the progress bar.\n * This is the *sort of* the same as setting the status to 100%, with the\n * difference being `done()` makes some placebo effect of some realistic motion.\n *\n * NProgress.done();\n *\n * If `true` is passed, it will show the progress bar even if its hidden.\n *\n * NProgress.done(true);\n */\n\n NProgress.done = function(force) {\n if (!force && !NProgress.status) return this;\n\n return NProgress.inc(0.3 + 0.5 * Math.random()).set(1);\n };\n\n /**\n * Increments by a random amount.\n */\n\n NProgress.inc = function(amount) {\n var n = NProgress.status;\n\n if (!n) {\n return NProgress.start();\n } else {\n if (typeof amount !== 'number') {\n amount = (1 - n) * clamp(Math.random() * n, 0.1, 0.95);\n }\n\n n = clamp(n + amount, 0, 0.994);\n return NProgress.set(n);\n }\n };\n\n NProgress.trickle = function() {\n return NProgress.inc(Math.random() * Settings.trickleRate);\n };\n\n /**\n * Waits for all supplied jQuery promises and\n * increases the progress as the promises resolve.\n *\n * @param $promise jQUery Promise\n */\n (function() {\n var initial = 0, current = 0;\n\n NProgress.promise = function($promise) {\n if (!$promise || $promise.state() === \"resolved\") {\n return this;\n }\n\n if (current === 0) {\n NProgress.start();\n }\n\n initial++;\n current++;\n\n $promise.always(function() {\n current--;\n if (current === 0) {\n initial = 0;\n NProgress.done();\n } else {\n NProgress.set((initial - current) / initial);\n }\n });\n\n return this;\n };\n\n })();\n\n /**\n * (Internal) renders the progress bar markup based on the `template`\n * setting.\n */\n\n NProgress.render = function(fromStart) {\n if (NProgress.isRendered()) return document.getElementById('nprogress');\n\n addClass(document.documentElement, 'nprogress-busy');\n \n var progress = document.createElement('div');\n progress.id = 'nprogress';\n progress.innerHTML = Settings.template;\n\n var bar = progress.querySelector(Settings.barSelector),\n perc = fromStart ? '-100' : toBarPerc(NProgress.status || 0),\n parent = document.querySelector(Settings.parent),\n spinner;\n \n css(bar, {\n transition: 'all 0 linear',\n transform: 'translate3d(' + perc + '%,0,0)'\n });\n\n if (!Settings.showSpinner) {\n spinner = progress.querySelector(Settings.spinnerSelector);\n spinner && removeElement(spinner);\n }\n\n if (parent != document.body) {\n addClass(parent, 'nprogress-custom-parent');\n }\n\n parent.appendChild(progress);\n return progress;\n };\n\n /**\n * Removes the element. Opposite of render().\n */\n\n NProgress.remove = function() {\n removeClass(document.documentElement, 'nprogress-busy');\n removeClass(document.querySelector(Settings.parent), 'nprogress-custom-parent');\n var progress = document.getElementById('nprogress');\n progress && removeElement(progress);\n };\n\n /**\n * Checks if the progress bar is rendered.\n */\n\n NProgress.isRendered = function() {\n return !!document.getElementById('nprogress');\n };\n\n /**\n * Determine which positioning CSS rule to use.\n */\n\n NProgress.getPositioningCSS = function() {\n // Sniff on document.body.style\n var bodyStyle = document.body.style;\n\n // Sniff prefixes\n var vendorPrefix = ('WebkitTransform' in bodyStyle) ? 'Webkit' :\n ('MozTransform' in bodyStyle) ? 'Moz' :\n ('msTransform' in bodyStyle) ? 'ms' :\n ('OTransform' in bodyStyle) ? 'O' : '';\n\n if (vendorPrefix + 'Perspective' in bodyStyle) {\n // Modern browsers with 3D support, e.g. Webkit, IE10\n return 'translate3d';\n } else if (vendorPrefix + 'Transform' in bodyStyle) {\n // Browsers without 3D support, e.g. IE9\n return 'translate';\n } else {\n // Browsers without translate() support, e.g. IE7-8\n return 'margin';\n }\n };\n\n /**\n * Helpers\n */\n\n function clamp(n, min, max) {\n if (n < min) return min;\n if (n > max) return max;\n return n;\n }\n\n /**\n * (Internal) converts a percentage (`0..1`) to a bar translateX\n * percentage (`-100%..0%`).\n */\n\n function toBarPerc(n) {\n return (-1 + n) * 100;\n }\n\n\n /**\n * (Internal) returns the correct CSS for changing the bar's\n * position given an n percentage, and speed and ease from Settings\n */\n\n function barPositionCSS(n, speed, ease) {\n var barCSS;\n\n if (Settings.positionUsing === 'translate3d') {\n barCSS = { transform: 'translate3d('+toBarPerc(n)+'%,0,0)' };\n } else if (Settings.positionUsing === 'translate') {\n barCSS = { transform: 'translate('+toBarPerc(n)+'%,0)' };\n } else {\n barCSS = { 'margin-left': toBarPerc(n)+'%' };\n }\n\n barCSS.transition = 'all '+speed+'ms '+ease;\n\n return barCSS;\n }\n\n /**\n * (Internal) Queues a function to be executed.\n */\n\n var queue = (function() {\n var pending = [];\n \n function next() {\n var fn = pending.shift();\n if (fn) {\n fn(next);\n }\n }\n\n return function(fn) {\n pending.push(fn);\n if (pending.length == 1) next();\n };\n })();\n\n /**\n * (Internal) Applies css properties to an element, similar to the jQuery \n * css method.\n *\n * While this helper does assist with vendor prefixed property names, it \n * does not perform any manipulation of values prior to setting styles.\n */\n\n var css = (function() {\n var cssPrefixes = [ 'Webkit', 'O', 'Moz', 'ms' ],\n cssProps = {};\n\n function camelCase(string) {\n return string.replace(/^-ms-/, 'ms-').replace(/-([\\da-z])/gi, function(match, letter) {\n return letter.toUpperCase();\n });\n }\n\n function getVendorProp(name) {\n var style = document.body.style;\n if (name in style) return name;\n\n var i = cssPrefixes.length,\n capName = name.charAt(0).toUpperCase() + name.slice(1),\n vendorName;\n while (i--) {\n vendorName = cssPrefixes[i] + capName;\n if (vendorName in style) return vendorName;\n }\n\n return name;\n }\n\n function getStyleProp(name) {\n name = camelCase(name);\n return cssProps[name] || (cssProps[name] = getVendorProp(name));\n }\n\n function applyCss(element, prop, value) {\n prop = getStyleProp(prop);\n element.style[prop] = value;\n }\n\n return function(element, properties) {\n var args = arguments,\n prop, \n value;\n\n if (args.length == 2) {\n for (prop in properties) {\n value = properties[prop];\n if (value !== undefined && properties.hasOwnProperty(prop)) applyCss(element, prop, value);\n }\n } else {\n applyCss(element, args[1], args[2]);\n }\n }\n })();\n\n /**\n * (Internal) Determines if an element or space separated list of class names contains a class name.\n */\n\n function hasClass(element, name) {\n var list = typeof element == 'string' ? element : classList(element);\n return list.indexOf(' ' + name + ' ') >= 0;\n }\n\n /**\n * (Internal) Adds a class to an element.\n */\n\n function addClass(element, name) {\n var oldList = classList(element),\n newList = oldList + name;\n\n if (hasClass(oldList, name)) return; \n\n // Trim the opening space.\n element.className = newList.substring(1);\n }\n\n /**\n * (Internal) Removes a class from an element.\n */\n\n function removeClass(element, name) {\n var oldList = classList(element),\n newList;\n\n if (!hasClass(element, name)) return;\n\n // Replace the class name.\n newList = oldList.replace(' ' + name + ' ', ' ');\n\n // Trim the opening and closing spaces.\n element.className = newList.substring(1, newList.length - 1);\n }\n\n /**\n * (Internal) Gets a space separated list of the class names on the element. \n * The list is wrapped with a single space on each end to facilitate finding \n * matches within the list.\n */\n\n function classList(element) {\n return (' ' + (element.className || '') + ' ').replace(/\\s+/gi, ' ');\n }\n\n /**\n * (Internal) Removes an element from the DOM.\n */\n\n function removeElement(element) {\n element && element.parentNode && element.parentNode.removeChild(element);\n }\n\n return NProgress;\n});\n\n\n\n/***/ }),\n/* 271 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = {\n /**\n * radio 颜色 样式\n */\n colors: _propTypes2[\"default\"].oneOf(['', 'dark', 'success', 'info', 'warning', 'danger', 'primary']),\n /**\n * radio 大小\n */\n size: _propTypes2[\"default\"].oneOf(['lg', 'sm']),\n /**\n * radio 是否可用\n */\n disabled: _propTypes2[\"default\"].bool,\n /**\n * radio 样式 是否使用红色填充\n */\n inverse: _propTypes2[\"default\"].bool,\n checked: _propTypes2[\"default\"].bool,\n onChange: _propTypes2[\"default\"].func\n};\n\nvar defaultProps = {\n inverse: false,\n disabled: false,\n clsPrefix: 'u-radio'\n};\n\n/**\n * 建立与RadioGroup通信\n */\nvar contextTypes = {\n radioGroup: _propTypes2[\"default\"].object\n};\n\nvar Radio = function (_React$Component) {\n _inherits(Radio, _React$Component);\n\n function Radio(props, context) {\n _classCallCheck(this, Radio);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context));\n\n _this.handleClick = function (event) {\n if (_this.props.disabled) {\n return;\n }\n if (_this.context.radioGroup && _this.context.radioGroup.onChange) {\n _this.context.radioGroup.onChange(_this.props.value);\n } else {\n if (!('checked' in _this.props)) {\n _this.setState({\n checked: !_this.state.checked\n });\n }\n event.target.checked = !_this.state.checked;\n _this.props.onChange && _this.props.onChange(event, !_this.state.checked);\n }\n };\n\n _this.handleFocus = function (e) {\n if (e.target && e.target.type == 'radio') {\n _this.setState({\n focused: true\n });\n }\n };\n\n _this.handleBlur = function (e) {\n if (e.target && e.target.type == 'radio') {\n _this.setState({\n focused: false\n });\n }\n };\n\n var initChecked = typeof props.checked !== 'undefined' ? props.checked : props.defaultChecked;\n _this.state = {\n checked: initChecked,\n focused: false\n };\n return _this;\n }\n\n Radio.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n if ('checked' in nextProps) {\n this.setState({\n checked: nextProps.checked\n });\n }\n };\n\n Radio.prototype.render = function render() {\n var _classes;\n\n var state = this.state,\n props = this.props,\n context = this.context;\n var checked = state.checked;\n /**\n * 自身的属性\n */\n\n var inverse = props.inverse,\n disabled = props.disabled,\n colors = props.colors,\n className = props.className,\n children = props.children,\n clsPrefix = props.clsPrefix,\n style = props.style,\n onChange = props.onChange,\n others = _objectWithoutProperties(props, ['inverse', 'disabled', 'colors', 'className', 'children', 'clsPrefix', 'style', 'onChange']);\n\n var radioGroup = context.radioGroup;\n\n var radioProps = _extends({}, others);\n // 包裹 radioGroup\n if (radioGroup) {\n radioProps.name = radioGroup.name;\n radioProps.selectedValue = radioGroup.selectedValue;\n radioProps.size = radioGroup.size;\n radioProps.focusvalue = radioGroup.focusvalue;\n }\n var name = radioProps.name,\n selectedValue = radioProps.selectedValue,\n size = radioProps.size,\n focusvalue = radioProps.focusvalue;\n\n\n var optional = {};\n /**\n * 若父级selectedValue与本身的value值相同,则改radio被选中\n */\n if (selectedValue !== undefined) {\n optional.checked = this.props.value === selectedValue;\n }\n\n var classes = (_classes = {}, _defineProperty(_classes, clsPrefix + '-focused', this.state.focused), _defineProperty(_classes, 'is-checked', typeof optional.checked !== 'undefined' ? optional.checked : checked), _defineProperty(_classes, 'disabled', disabled), _classes);\n\n if (colors) {\n classes[clsPrefix + '-' + colors] = true;\n }\n if (size) {\n classes[clsPrefix + '-' + size] = true;\n }\n if (inverse) {\n classes[clsPrefix + '-inverse'] = true;\n }\n if (children == null) {\n classes[clsPrefix + '-noContent'] = true;\n }\n var classNames = (0, _classnames2[\"default\"])(clsPrefix, classes);\n var tabIndex = optional.checked ? 0 : -1;\n if (focusvalue && focusvalue == this.props.value) {\n tabIndex = 0;\n }\n var input = _react2[\"default\"].createElement('input', _extends({}, radioProps, {\n type: 'radio',\n name: name,\n disabled: this.props.disabled,\n tabIndex: tabIndex,\n onFocus: this.handleFocus,\n onBlur: this.handleBlur\n }));\n return _react2[\"default\"].createElement(\n 'label',\n { style: style, onClick: this.handleClick, className: (0, _classnames2[\"default\"])(className, classNames) },\n input,\n _react2[\"default\"].createElement(\n 'label',\n { className: clsPrefix + '-label' },\n children\n )\n );\n };\n\n return Radio;\n}(_react2[\"default\"].Component);\n\nRadio.contextTypes = contextTypes;\nRadio.propTypes = propTypes;\nRadio.defaultProps = defaultProps;\n\nexports[\"default\"] = Radio;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 272 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _ownerDocument = __webpack_require__(97);\n\nvar _ownerDocument2 = _interopRequireDefault(_ownerDocument);\n\nvar _getContainer = __webpack_require__(273);\n\nvar _getContainer2 = _interopRequireDefault(_getContainer);\n\nvar _tinperBeeCore = __webpack_require__(98);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar isReact16 = _reactDom2[\"default\"].createPortal !== undefined;\nvar createPortal = isReact16 ? _reactDom2[\"default\"].createPortal : _reactDom2[\"default\"].unstable_renderSubtreeIntoContainer;\n\nvar propTypes = {\n /**\n * 存放子组件的容器\n */\n container: _propTypes2[\"default\"].oneOfType([_tinperBeeCore.componentOrElement, _propTypes2[\"default\"].func])\n};\n\nvar defaultProps = {};\n\n/**\n * Portal组件是将子组件渲染\n */\n\nvar Portal = function (_Component) {\n _inherits(Portal, _Component);\n\n function Portal(props) {\n _classCallCheck(this, Portal);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props));\n\n _this.getMountNode = _this.getMountNode.bind(_this);\n _this.getOverlayDOMNode = _this.getOverlayDOMNode.bind(_this);\n _this.mountOverlayTarget = _this.mountOverlayTarget.bind(_this);\n _this.unmountOverlayTarget = _this.unmountOverlayTarget.bind(_this);\n _this.renderOverlay = _this.renderOverlay.bind(_this);\n _this.unrenderOverlay = _this.unrenderOverlay.bind(_this);\n\n _this.overlayTarget = isReact16 ? document.createElement('div') : null;\n return _this;\n }\n\n Portal.prototype.componentDidMount = function componentDidMount() {\n if (isReact16) {\n this.portalContainerNode = (0, _getContainer2[\"default\"])(this.props.container, (0, _ownerDocument2[\"default\"])(this).body);\n this.portalContainerNode.appendChild(this.overlayTarget);\n } else {\n this.renderOverlay();\n }\n\n this.mounted = true;\n };\n\n Portal.prototype.componentDidUpdate = function componentDidUpdate() {\n if (isReact16) {\n var overlay = !this.props.children ? null : _react2[\"default\"].Children.only(this.props.children);\n if (overlay === null) {\n this.unrenderOverlay();\n this.unmountOverlayTarget();\n } else {}\n } else {\n this.renderOverlay();\n }\n };\n //this._overlayTarget为当前的要添加的子组件, this._portalContainerNode要添加组件的容器元素\n\n\n Portal.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n if (this.overlayTarget && nextProps.container !== this.props.container) {\n this.portalContainerNode.removeChild(this.overlayTarget);\n this.portalContainerNode = (0, _getContainer2[\"default\"])(nextProps.container, (0, _ownerDocument2[\"default\"])(this).body);\n this.portalContainerNode.appendChild(this.overlayTarget);\n }\n };\n\n Portal.prototype.componentWillUnmount = function componentWillUnmount() {\n this.unrenderOverlay();\n this.unmountOverlayTarget();\n\n this.mounted = false;\n };\n\n Portal.prototype.getMountNode = function getMountNode() {\n return this.overlayTarget;\n };\n\n Portal.prototype.getOverlayDOMNode = function getOverlayDOMNode() {\n if (!this.mounted) {\n throw new Error('getOverlayDOMNode(): A component must be mounted to have a DOM node.');\n }\n\n if (this.overlayInstance) {\n return _reactDom2[\"default\"].findDOMNode(this.overlayInstance);\n }\n\n return null;\n };\n\n /**\n * 如果要添加的子组件不存在,就将div添加到要添加容器的DOM中;\n */\n\n Portal.prototype.mountOverlayTarget = function mountOverlayTarget() {\n if (!this.overlayTarget) {\n this.overlayTarget = document.createElement('div');\n this.portalContainerNode = (0, _getContainer2[\"default\"])(this.props.container, (0, _ownerDocument2[\"default\"])(this).body);\n this.portalContainerNode.appendChild(this.overlayTarget);\n }\n };\n /**\n * 将要添加的子元素从容器中移除,并把变量置为null\n */\n\n\n Portal.prototype.unmountOverlayTarget = function unmountOverlayTarget() {\n if (this.overlayTarget) {\n this.portalContainerNode.removeChild(this.overlayTarget);\n this.overlayTarget = null;\n }\n this.portalContainerNode = null;\n };\n /**\n * 手动渲染_overlayTarget\n */\n\n\n Portal.prototype.renderOverlay = function renderOverlay() {\n\n var overlay = !this.props.children ? null : _react2[\"default\"].Children.only(this.props.children);\n\n // Save reference for future access.\n if (overlay !== null) {\n this.mountOverlayTarget();\n this.overlayInstance = _reactDom2[\"default\"].unstable_renderSubtreeIntoContainer(this, overlay, this.overlayTarget);\n } else {\n // Unrender if the component is null for transitions to null\n this.unrenderOverlay();\n this.unmountOverlayTarget();\n }\n };\n /**\n * 销毁_overlayTarget组件。并把_overlayInstance置为null\n */\n\n\n Portal.prototype.unrenderOverlay = function unrenderOverlay() {\n if (this.overlayTarget) {\n !isReact16 && _reactDom2[\"default\"].unmountComponentAtNode(this.overlayTarget);\n this.overlayInstance = null;\n }\n };\n\n Portal.prototype.render = function render() {\n if (!isReact16) {\n return null;\n }\n\n var overlay = !this.props.children ? null : _react2[\"default\"].Children.only(this.props.children);\n\n return _reactDom2[\"default\"].createPortal(overlay, this.overlayTarget);\n };\n\n return Portal;\n}(_react.Component);\n\n;\n\nPortal.propTypes = propTypes;\nPortal.defaultProps = defaultProps;\n\nexports[\"default\"] = Portal;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 273 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = getContainer;\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\n/**\n * 获取容器组件\n * @param {[type]} container [description]\n * @param {[type]} defaultContainer [description]\n * @return {[type]} [description]\n */\nfunction getContainer(container, defaultContainer) {\n container = typeof container === 'function' ? container() : container;\n return _reactDom2[\"default\"].findDOMNode(container) || defaultContainer;\n}\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 274 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = addEventListenerWrap;\n\nvar _addDomEventListener = __webpack_require__(12);\n\nvar _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nfunction addEventListenerWrap(target, eventType, cb) {\n /* eslint camelcase: 2 */\n var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {\n _reactDom2.default.unstable_batchedUpdates(cb, e);\n } : cb;\n return (0, _addDomEventListener2.default)(target, eventType, callback);\n}\n\n/***/ }),\n/* 275 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = camelizeStyleName;\n\nvar _camelize = __webpack_require__(879);\n\nvar _camelize2 = _interopRequireDefault(_camelize);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar msPattern = /^-ms-/; /**\n * Copyright 2014-2015, Facebook, Inc.\n * All rights reserved.\n * https://github.com/facebook/react/blob/2aeb8a2a6beb00617a4217f7f8284924fa2ad819/src/vendor/core/camelizeStyleName.js\n */\nfunction camelizeStyleName(string) {\n return (0, _camelize2.default)(string.replace(msPattern, 'ms-'));\n}\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 276 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports[\"default\"] = function (node, event, handler, capture) {\n (0, _on2[\"default\"])(node, event, handler, capture);\n\n return {\n remove: function remove() {\n (0, _off2[\"default\"])(node, event, handler, capture);\n }\n };\n};\n\nvar _on = __webpack_require__(17);\n\nvar _on2 = _interopRequireDefault(_on);\n\nvar _off = __webpack_require__(49);\n\nvar _off2 = _interopRequireDefault(_off);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 277 */\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n/* 278 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.PanelGroup = exports.Panel = undefined;\n\nvar _Panel2 = __webpack_require__(896);\n\nvar _Panel3 = _interopRequireDefault(_Panel2);\n\nvar _PanelGroup2 = __webpack_require__(927);\n\nvar _PanelGroup3 = _interopRequireDefault(_PanelGroup2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nexports.Panel = _Panel3[\"default\"];\nexports.PanelGroup = _PanelGroup3[\"default\"];\n\n/***/ }),\n/* 279 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nfunction createChainedFunction() {\n for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) {\n funcs[_key] = arguments[_key];\n }\n\n return funcs.filter(function (f) {\n return f != null;\n }).reduce(function (acc, f) {\n if (typeof f !== 'function') {\n throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.');\n }\n\n if (acc === null) {\n return f;\n }\n\n return function chainedFunction() {\n for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n acc.apply(this, args);\n f.apply(this, args);\n };\n }, null);\n}\nexports.default = createChainedFunction;\n\n/***/ }),\n/* 280 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = addEventListenerWrap;\n\nvar _addDomEventListener = __webpack_require__(12);\n\nvar _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nfunction addEventListenerWrap(target, eventType, cb) {\n /* eslint camelcase: 2 */\n var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {\n _reactDom2.default.unstable_batchedUpdates(cb, e);\n } : cb;\n return (0, _addDomEventListener2.default)(target, eventType, callback);\n}\n\n/***/ }),\n/* 281 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar util = {\n isAppearSupported: function isAppearSupported(props) {\n return props.transitionName && props.transitionAppear || props.animation.appear;\n },\n isEnterSupported: function isEnterSupported(props) {\n return props.transitionName && props.transitionEnter || props.animation.enter;\n },\n isLeaveSupported: function isLeaveSupported(props) {\n return props.transitionName && props.transitionLeave || props.animation.leave;\n },\n allowAppearCallback: function allowAppearCallback(props) {\n return props.transitionAppear || props.animation.appear;\n },\n allowEnterCallback: function allowEnterCallback(props) {\n return props.transitionEnter || props.animation.enter;\n },\n allowLeaveCallback: function allowLeaveCallback(props) {\n return props.transitionLeave || props.animation.leave;\n }\n};\nexports[\"default\"] = util;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 282 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar deselectCurrent = __webpack_require__(926);\n\nvar clipboardToIE11Formatting = {\n \"text/plain\": \"Text\",\n \"text/html\": \"Url\",\n \"default\": \"Text\"\n}\n\nvar defaultMessage = \"Copy to clipboard: #{key}, Enter\";\n\nfunction format(message) {\n var copyKey = (/mac os x/i.test(navigator.userAgent) ? \"⌘\" : \"Ctrl\") + \"+C\";\n return message.replace(/#{\\s*key\\s*}/g, copyKey);\n}\n\nfunction copy(text, options) {\n var debug,\n message,\n reselectPrevious,\n range,\n selection,\n mark,\n success = false;\n if (!options) {\n options = {};\n }\n debug = options.debug || false;\n try {\n reselectPrevious = deselectCurrent();\n\n range = document.createRange();\n selection = document.getSelection();\n\n mark = document.createElement(\"span\");\n mark.textContent = text;\n // reset user styles for span element\n mark.style.all = \"unset\";\n // prevents scrolling to the end of the page\n mark.style.position = \"fixed\";\n mark.style.top = 0;\n mark.style.clip = \"rect(0, 0, 0, 0)\";\n // used to preserve spaces and line breaks\n mark.style.whiteSpace = \"pre\";\n // do not inherit user-select (it may be `none`)\n mark.style.webkitUserSelect = \"text\";\n mark.style.MozUserSelect = \"text\";\n mark.style.msUserSelect = \"text\";\n mark.style.userSelect = \"text\";\n mark.addEventListener(\"copy\", function(e) {\n e.stopPropagation();\n if (options.format) {\n e.preventDefault();\n if (typeof e.clipboardData === \"undefined\") { // IE 11\n debug && console.warn(\"unable to use e.clipboardData\");\n debug && console.warn(\"trying IE specific stuff\");\n window.clipboardData.clearData();\n var format = clipboardToIE11Formatting[options.format] || clipboardToIE11Formatting[\"default\"]\n window.clipboardData.setData(format, text);\n } else { // all other browsers\n e.clipboardData.clearData();\n e.clipboardData.setData(options.format, text);\n }\n }\n if (options.onCopy) {\n e.preventDefault();\n options.onCopy(e.clipboardData);\n }\n });\n\n document.body.appendChild(mark);\n\n range.selectNodeContents(mark);\n selection.addRange(range);\n\n var successful = document.execCommand(\"copy\");\n if (!successful) {\n throw new Error(\"copy command was unsuccessful\");\n }\n success = true;\n } catch (err) {\n debug && console.error(\"unable to copy using execCommand: \", err);\n debug && console.warn(\"trying IE specific stuff\");\n try {\n window.clipboardData.setData(options.format || \"text\", text);\n options.onCopy && options.onCopy(window.clipboardData);\n success = true;\n } catch (err) {\n debug && console.error(\"unable to copy using clipboardData: \", err);\n debug && console.error(\"falling back to prompt\");\n message = format(\"message\" in options ? options.message : defaultMessage);\n window.prompt(message, text);\n }\n } finally {\n if (selection) {\n if (typeof selection.removeRange == \"function\") {\n selection.removeRange(range);\n } else {\n selection.removeAllRanges();\n }\n }\n\n if (mark) {\n document.body.removeChild(mark);\n }\n reselectPrevious();\n }\n\n return success;\n}\n\nmodule.exports = copy;\n\n\n/***/ }),\n/* 283 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!\n Copyright (c) 2017 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg) && arg.length) {\n\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\tif (inner) {\n\t\t\t\t\tclasses.push(inner);\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (true) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\t!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {\n\t\t\treturn classNames;\n\t\t}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n\n\n/***/ }),\n/* 284 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nfunction createChainedFunction() {\n for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) {\n funcs[_key] = arguments[_key];\n }\n\n return funcs.filter(function (f) {\n return f != null;\n }).reduce(function (acc, f) {\n if (typeof f !== 'function') {\n throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.');\n }\n\n if (acc === null) {\n return f;\n }\n\n return function chainedFunction() {\n for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n acc.apply(this, args);\n f.apply(this, args);\n };\n }, null);\n}\nexports.default = createChainedFunction;\n\n/***/ }),\n/* 285 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = addEventListenerWrap;\n\nvar _addDomEventListener = __webpack_require__(12);\n\nvar _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nfunction addEventListenerWrap(target, eventType, cb) {\n /* eslint camelcase: 2 */\n var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {\n _reactDom2.default.unstable_batchedUpdates(cb, e);\n } : cb;\n return (0, _addDomEventListener2.default)(target, eventType, callback);\n}\n\n/***/ }),\n/* 286 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar util = {\n isAppearSupported: function isAppearSupported(props) {\n return props.transitionName && props.transitionAppear || props.animation.appear;\n },\n isEnterSupported: function isEnterSupported(props) {\n return props.transitionName && props.transitionEnter || props.animation.enter;\n },\n isLeaveSupported: function isLeaveSupported(props) {\n return props.transitionName && props.transitionLeave || props.animation.leave;\n },\n allowAppearCallback: function allowAppearCallback(props) {\n return props.transitionAppear || props.animation.appear;\n },\n allowEnterCallback: function allowEnterCallback(props) {\n return props.transitionEnter || props.animation.enter;\n },\n allowLeaveCallback: function allowLeaveCallback(props) {\n return props.transitionLeave || props.animation.leave;\n }\n};\nexports[\"default\"] = util;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 287 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar AdvancedContainer = function (_React$Component) {\n _inherits(AdvancedContainer, _React$Component);\n\n function AdvancedContainer() {\n _classCallCheck(this, AdvancedContainer);\n\n return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n AdvancedContainer.prototype.render = function render() {\n return this.props.children;\n };\n\n return AdvancedContainer;\n}(_react2[\"default\"].Component);\n\nAdvancedContainer.show = true;\nexports[\"default\"] = AdvancedContainer;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 288 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar HeadContainer = function (_React$Component) {\n _inherits(HeadContainer, _React$Component);\n\n function HeadContainer() {\n _classCallCheck(this, HeadContainer);\n\n return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n HeadContainer.prototype.render = function render() {\n var _props = this.props,\n children = _props.children,\n clsPrefix = _props.clsPrefix,\n _className = _props.className;\n\n var ht = children ? _react2[\"default\"].createElement(\n 'div',\n null,\n children\n ) : null;\n return ht;\n };\n\n return HeadContainer;\n}(_react2[\"default\"].Component);\n\nexports[\"default\"] = HeadContainer;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 289 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Fade = exports.Collapse = exports.Transition = undefined;\n\nvar _Transition2 = __webpack_require__(158);\n\nvar _Transition3 = _interopRequireDefault(_Transition2);\n\nvar _Collapse2 = __webpack_require__(290);\n\nvar _Collapse3 = _interopRequireDefault(_Collapse2);\n\nvar _Fade2 = __webpack_require__(983);\n\nvar _Fade3 = _interopRequireDefault(_Fade2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nexports.Transition = _Transition3[\"default\"];\nexports.Collapse = _Collapse3[\"default\"];\nexports.Fade = _Fade3[\"default\"];\n\n/***/ }),\n/* 290 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _style = __webpack_require__(31);\n\nvar _style2 = _interopRequireDefault(_style);\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _Transition = __webpack_require__(158);\n\nvar _Transition2 = _interopRequireDefault(_Transition);\n\nvar _capitalize = __webpack_require__(968);\n\nvar _capitalize2 = _interopRequireDefault(_capitalize);\n\nvar _tinperBeeCore = __webpack_require__(969);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar MARGINS = {\n height: ['marginTop', 'marginBottom'],\n width: ['marginLeft', 'marginRight']\n};\n\n// reading a dimension prop will cause the browser to recalculate,\n// which will let our animations work\nfunction triggerBrowserReflow(node) {\n node.offsetHeight; // eslint-disable-line no-unused-expressions\n}\n\nfunction getDimensionValue(dimension, elem) {\n var value = elem['offset' + (0, _capitalize2[\"default\"])(dimension)];\n var margins = MARGINS[dimension];\n\n return value + parseInt((0, _style2[\"default\"])(elem, margins[0]), 10) + parseInt((0, _style2[\"default\"])(elem, margins[1]), 10);\n}\n\nvar propTypes = {\n /**\n * Show the component; triggers the expand or collapse animation\n */\n \"in\": _propTypes2[\"default\"].bool,\n\n /**\n * Unmount the component (remove it from the DOM) when it is collapsed\n */\n unmountOnExit: _propTypes2[\"default\"].bool,\n\n /**\n * Run the expand animation when the component mounts, if it is initially\n * shown\n */\n transitionAppear: _propTypes2[\"default\"].bool,\n\n /**\n * Duration of the collapse animation in milliseconds, to ensure that\n * finishing callbacks are fired even if the original browser transition end\n * events are canceled\n */\n timeout: _propTypes2[\"default\"].number,\n\n /**\n * Callback fired before the component expands\n */\n onEnter: _propTypes2[\"default\"].func,\n /**\n * Callback fired after the component starts to expand\n */\n onEntering: _propTypes2[\"default\"].func,\n /**\n * Callback fired after the component has expanded\n */\n onEntered: _propTypes2[\"default\"].func,\n /**\n * Callback fired before the component collapses\n */\n onExit: _propTypes2[\"default\"].func,\n /**\n * Callback fired after the component starts to collapse\n */\n onExiting: _propTypes2[\"default\"].func,\n /**\n * Callback fired after the component has collapsed\n */\n onExited: _propTypes2[\"default\"].func,\n\n /**\n * The dimension used when collapsing, or a function that returns the\n * dimension\n *\n * _Note: Bootstrap only partially supports 'width'!\n * You will need to supply your own CSS animation for the `.width` CSS class._\n */\n dimension: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].oneOf(['height', 'width']), _propTypes2[\"default\"].func]),\n\n /**\n * Function that returns the height or width of the animating DOM node\n *\n * Allows for providing some custom logic for how much the Collapse component\n * should animate in its specified dimension. Called with the current\n * dimension prop value and the DOM node.\n */\n getDimensionValue: _propTypes2[\"default\"].func,\n\n /**\n * ARIA role of collapsible element\n */\n role: _propTypes2[\"default\"].string\n};\n\nvar defaultProps = {\n \"in\": false,\n timeout: 300,\n unmountOnExit: false,\n transitionAppear: false,\n\n dimension: 'height',\n getDimensionValue: getDimensionValue\n};\n\nvar Collapse = function (_React$Component) {\n _inherits(Collapse, _React$Component);\n\n function Collapse(props, context) {\n _classCallCheck(this, Collapse);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context));\n\n _this.handleEnter = _this.handleEnter.bind(_this);\n _this.handleEntering = _this.handleEntering.bind(_this);\n _this.handleEntered = _this.handleEntered.bind(_this);\n _this.handleExit = _this.handleExit.bind(_this);\n _this.handleExiting = _this.handleExiting.bind(_this);\n return _this;\n }\n\n /* -- Expanding -- */\n\n\n Collapse.prototype.handleEnter = function handleEnter(elem) {\n var dimension = this._dimension();\n elem.style[dimension] = '0';\n };\n\n Collapse.prototype.handleEntering = function handleEntering(elem) {\n var dimension = this._dimension();\n elem.style[dimension] = this._getScrollDimensionValue(elem, dimension);\n };\n\n Collapse.prototype.handleEntered = function handleEntered(elem) {\n var dimension = this._dimension();\n elem.style[dimension] = null;\n };\n\n /* -- Collapsing -- */\n\n\n Collapse.prototype.handleExit = function handleExit(elem) {\n var dimension = this._dimension();\n elem.style[dimension] = this.props.getDimensionValue(dimension, elem) + 'px';\n triggerBrowserReflow(elem);\n };\n\n Collapse.prototype.handleExiting = function handleExiting(elem) {\n var dimension = this._dimension();\n elem.style[dimension] = '0';\n };\n\n Collapse.prototype._dimension = function _dimension() {\n return typeof this.props.dimension === 'function' ? this.props.dimension() : this.props.dimension;\n };\n\n // for testing\n\n\n Collapse.prototype._getScrollDimensionValue = function _getScrollDimensionValue(elem, dimension) {\n return elem['scroll' + (0, _capitalize2[\"default\"])(dimension)] + 'px';\n };\n\n Collapse.prototype.render = function render() {\n var _props = this.props,\n onEnter = _props.onEnter,\n onEntering = _props.onEntering,\n onEntered = _props.onEntered,\n onExit = _props.onExit,\n onExiting = _props.onExiting,\n className = _props.className,\n props = _objectWithoutProperties(_props, ['onEnter', 'onEntering', 'onEntered', 'onExit', 'onExiting', 'className']);\n\n delete props.dimension;\n delete props.getDimensionValue;\n\n var handleEnter = (0, _tinperBeeCore.createChainedFunction)(this.handleEnter, onEnter);\n var handleEntering = (0, _tinperBeeCore.createChainedFunction)(this.handleEntering, onEntering);\n var handleEntered = (0, _tinperBeeCore.createChainedFunction)(this.handleEntered, onEntered);\n var handleExit = (0, _tinperBeeCore.createChainedFunction)(this.handleExit, onExit);\n var handleExiting = (0, _tinperBeeCore.createChainedFunction)(this.handleExiting, onExiting);\n\n var classes = {\n width: this._dimension() === 'width'\n };\n\n return _react2[\"default\"].createElement(_Transition2[\"default\"], _extends({}, props, {\n 'aria-expanded': props.role ? props[\"in\"] : null,\n className: (0, _classnames2[\"default\"])(className, classes),\n exitedClassName: 'collapse',\n exitingClassName: 'collapsing',\n enteredClassName: 'collapse in',\n enteringClassName: 'collapsing',\n onEnter: handleEnter,\n onEntering: handleEntering,\n onEntered: handleEntered,\n onExit: handleExit,\n onExiting: handleExiting\n }));\n };\n\n return Collapse;\n}(_react2[\"default\"].Component);\n\nCollapse.propTypes = propTypes;\nCollapse.defaultProps = defaultProps;\n\nexports[\"default\"] = Collapse;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 291 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = addEventListenerWrap;\n\nvar _addDomEventListener = __webpack_require__(12);\n\nvar _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nfunction addEventListenerWrap(target, eventType, cb) {\n /* eslint camelcase: 2 */\n var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {\n _reactDom2.default.unstable_batchedUpdates(cb, e);\n } : cb;\n return (0, _addDomEventListener2.default)(target, eventType, callback);\n}\n\n/***/ }),\n/* 292 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = createChainableTypeChecker;\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n// Mostly taken from ReactPropTypes.\n\n/* This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\n\nfunction createChainableTypeChecker(validate) {\n function checkType(isRequired, props, propName, componentName, location, propFullName) {\n var componentNameSafe = componentName || '<>';\n var propFullNameSafe = propFullName || propName;\n\n if (props[propName] == null) {\n if (isRequired) {\n return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));\n }\n\n return null;\n }\n\n for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {\n args[_key - 6] = arguments[_key];\n }\n\n return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n}\n\n/***/ }),\n/* 293 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.SubPopupMenu = undefined;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; /**\n * This source code is quoted from rc-menu.\n * homepage: https://github.com/react-component/menu\n */\n\n\nexports.getActiveKey = getActiveKey;\nexports.saveRef = saveRef;\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _miniStore = __webpack_require__(21);\n\nvar _tinperBeeCore = __webpack_require__(103);\n\nvar _createChainedFunction = __webpack_require__(296);\n\nvar _createChainedFunction2 = _interopRequireDefault(_createChainedFunction);\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _util = __webpack_require__(61);\n\nvar _DOMWrap = __webpack_require__(1024);\n\nvar _DOMWrap2 = _interopRequireDefault(_DOMWrap);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction allDisabled(arr) {\n if (!arr.length) {\n return true;\n }\n return arr.every(function (c) {\n return !!c.props.disabled;\n });\n}\n\nfunction updateActiveKey(store, menuId, activeKey) {\n var state = store.getState();\n store.setState({\n activeKey: _extends({}, state.activeKey, _defineProperty({}, menuId, activeKey))\n });\n}\n\nfunction getEventKey(props) {\n // when eventKey not available ,it's menu and return menu id '0-menu-'\n return props.eventKey || '0-menu-';\n}\n\nfunction getActiveKey(props, originalActiveKey) {\n var activeKey = originalActiveKey;\n var children = props.children,\n eventKey = props.eventKey;\n\n if (activeKey) {\n var found = void 0;\n (0, _util.loopMenuItem)(children, function (c, i) {\n if (c && !c.props.disabled && activeKey === (0, _util.getKeyFromChildrenIndex)(c, eventKey, i)) {\n found = true;\n }\n });\n if (found) {\n return activeKey;\n }\n }\n activeKey = null;\n if (props.defaultActiveFirst) {\n (0, _util.loopMenuItem)(children, function (c, i) {\n if (!activeKey && c && !c.props.disabled) {\n activeKey = (0, _util.getKeyFromChildrenIndex)(c, eventKey, i);\n }\n });\n return activeKey;\n }\n return activeKey;\n}\n\nfunction saveRef(c) {\n if (c) {\n var index = this.instanceArray.indexOf(c);\n if (index !== -1) {\n // update component if it's already inside instanceArray\n this.instanceArray[index] = c;\n } else {\n // add component if it's not in instanceArray yet;\n this.instanceArray.push(c);\n }\n }\n}\n\nvar SubPopupMenu = exports.SubPopupMenu = function (_React$Component) {\n _inherits(SubPopupMenu, _React$Component);\n\n function SubPopupMenu(props) {\n _classCallCheck(this, SubPopupMenu);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));\n\n _initialiseProps.call(_this);\n\n props.store.setState({\n activeKey: _extends({}, props.store.getState().activeKey, _defineProperty({}, props.eventKey, getActiveKey(props, props.activeKey)))\n });\n\n _this.instanceArray = [];\n return _this;\n }\n\n SubPopupMenu.prototype.componentDidMount = function componentDidMount() {\n // invoke customized ref to expose component to mixin\n if (this.props.manualRef) {\n this.props.manualRef(this);\n }\n };\n\n SubPopupMenu.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {\n return this.props.visible || nextProps.visible;\n };\n\n SubPopupMenu.prototype.componentDidUpdate = function componentDidUpdate(prevProps) {\n var props = this.props;\n var originalActiveKey = 'activeKey' in props ? props.activeKey : props.store.getState().activeKey[getEventKey(props)];\n var activeKey = getActiveKey(props, originalActiveKey);\n if (activeKey !== originalActiveKey) {\n updateActiveKey(props.store, getEventKey(props), activeKey);\n } else if ('activeKey' in prevProps) {\n // If prev activeKey is not same as current activeKey,\n // we should set it.\n var prevActiveKey = getActiveKey(prevProps, prevProps.activeKey);\n if (activeKey !== prevActiveKey) {\n updateActiveKey(props.store, getEventKey(props), activeKey);\n }\n }\n };\n\n // all keyboard events callbacks run from here at first\n\n\n SubPopupMenu.prototype.render = function render() {\n var _this2 = this;\n\n var props = _objectWithoutProperties(this.props, []);\n\n this.instanceArray = [];\n var className = (0, _classnames2[\"default\"])(props.prefixCls, props.className, props.prefixCls + '-' + props.mode);\n var domProps = {\n className: className,\n // role could be 'select' and by default set to menu\n role: props.role || 'menu'\n };\n if (props.id) {\n domProps.id = props.id;\n }\n if (props.focusable) {\n domProps.tabIndex = this.props.tabIndex;\n domProps.onKeyDown = props.keyboard && this.onKeyDown;\n }\n var prefixCls = props.prefixCls,\n eventKey = props.eventKey,\n visible = props.visible,\n level = props.level,\n mode = props.mode,\n overflowedIndicator = props.overflowedIndicator,\n theme = props.theme;\n\n _util.menuAllProps.forEach(function (key) {\n return delete props[key];\n });\n\n // Otherwise, the propagated click event will trigger another onClick\n delete props.onClick;\n delete props.keyboard;\n\n return (\n // ESLint is not smart enough to know that the type of `children` was checked.\n /* eslint-disable */\n _react2[\"default\"].createElement(\n _DOMWrap2[\"default\"],\n _extends({}, props, {\n prefixCls: prefixCls,\n mode: mode,\n tag: 'ul',\n level: level,\n theme: theme,\n hiddenClassName: prefixCls + '-hidden',\n visible: visible,\n overflowedIndicator: overflowedIndicator\n }, domProps),\n _react2[\"default\"].Children.map(props.children, function (c, i) {\n return _this2.renderMenuItem(c, i, eventKey || '0-menu-');\n })\n )\n /*eslint-enable */\n\n );\n };\n\n return SubPopupMenu;\n}(_react2[\"default\"].Component);\n\nSubPopupMenu.propTypes = {\n onSelect: _propTypes2[\"default\"].func,\n onClick: _propTypes2[\"default\"].func,\n onDeselect: _propTypes2[\"default\"].func,\n onOpenChange: _propTypes2[\"default\"].func,\n onDestroy: _propTypes2[\"default\"].func,\n openTransitionName: _propTypes2[\"default\"].string,\n openAnimation: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].string, _propTypes2[\"default\"].object]),\n openKeys: _propTypes2[\"default\"].arrayOf(_propTypes2[\"default\"].string),\n visible: _propTypes2[\"default\"].bool,\n children: _propTypes2[\"default\"].any,\n parentMenu: _propTypes2[\"default\"].object,\n eventKey: _propTypes2[\"default\"].string,\n store: _propTypes2[\"default\"].shape({\n getState: _propTypes2[\"default\"].func,\n setState: _propTypes2[\"default\"].func\n }),\n\n // adding in refactor\n focusable: _propTypes2[\"default\"].bool,\n multiple: _propTypes2[\"default\"].bool,\n style: _propTypes2[\"default\"].object,\n defaultActiveFirst: _propTypes2[\"default\"].bool,\n activeKey: _propTypes2[\"default\"].string,\n selectedKeys: _propTypes2[\"default\"].arrayOf(_propTypes2[\"default\"].string),\n defaultSelectedKeys: _propTypes2[\"default\"].arrayOf(_propTypes2[\"default\"].string),\n defaultOpenKeys: _propTypes2[\"default\"].arrayOf(_propTypes2[\"default\"].string),\n level: _propTypes2[\"default\"].number,\n mode: _propTypes2[\"default\"].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']),\n triggerSubMenuAction: _propTypes2[\"default\"].oneOf(['click', 'hover']),\n inlineIndent: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].number, _propTypes2[\"default\"].string]),\n manualRef: _propTypes2[\"default\"].func,\n itemIcon: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].func, _propTypes2[\"default\"].node]),\n expandIcon: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].func, _propTypes2[\"default\"].node])\n};\nSubPopupMenu.defaultProps = {\n prefixCls: 'rc-menu',\n className: '',\n mode: 'vertical',\n level: 1,\n inlineIndent: 24,\n visible: true,\n focusable: true,\n style: {},\n manualRef: _util.noop\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this3 = this;\n\n this.onKeyDown = function (e, callback) {\n var keyCode = e.keyCode;\n var handled = void 0;\n _this3.getFlatInstanceArray().forEach(function (obj) {\n if (obj && obj.props.active && obj.onKeyDown) {\n handled = obj.onKeyDown(e);\n }\n });\n if (handled) {\n return 1;\n }\n var activeItem = null;\n if (keyCode === _tinperBeeCore.KeyCode.UP || keyCode === _tinperBeeCore.KeyCode.DOWN) {\n if (_this3.props.store.getState().keyboard) {\n //是否启用键盘操作\n activeItem = _this3.step(keyCode === _tinperBeeCore.KeyCode.UP ? -2 : 2);\n }\n }\n\n if (activeItem) {\n e.preventDefault();\n updateActiveKey(_this3.props.store, getEventKey(_this3.props), activeItem.props.eventKey);\n\n if (typeof callback === 'function') {\n callback(activeItem);\n }\n\n return 1;\n }\n };\n\n this.onItemHover = function (e) {\n var key = e.key,\n hover = e.hover;\n\n updateActiveKey(_this3.props.store, getEventKey(_this3.props), hover ? key : null);\n };\n\n this.onDeselect = function (selectInfo) {\n _this3.props.onDeselect(selectInfo);\n };\n\n this.onSelect = function (selectInfo) {\n _this3.props.onSelect(selectInfo);\n };\n\n this.onClick = function (e) {\n _this3.props.onClick(e);\n };\n\n this.onOpenChange = function (e) {\n _this3.props.onOpenChange(e);\n };\n\n this.onDestroy = function (key) {\n /* istanbul ignore next */\n _this3.props.onDestroy(key);\n };\n\n this.getFlatInstanceArray = function () {\n return _this3.instanceArray;\n };\n\n this.getOpenTransitionName = function () {\n return _this3.props.openTransitionName;\n };\n\n this.step = function (direction) {\n var children = _this3.getFlatInstanceArray();\n var activeKey = _this3.props.store.getState().activeKey[getEventKey(_this3.props)];\n var len = children.length;\n if (!len) {\n return null;\n }\n if (direction < 0) {\n children = children.concat().reverse();\n }\n // find current activeIndex\n var activeIndex = -1;\n children.every(function (c, ci) {\n if (c && c.props.eventKey === activeKey) {\n activeIndex = ci;\n return false;\n }\n return true;\n });\n if (!_this3.props.defaultActiveFirst && activeIndex !== -1 && allDisabled(children.slice(activeIndex, len - 1))) {\n return undefined;\n }\n var start = (activeIndex + 1) % len;\n var i = start;\n\n do {\n var child = children[i];\n if (!child || child.props.disabled) {\n i = (i + 1) % len;\n } else {\n return child;\n }\n } while (i !== start);\n\n return null;\n };\n\n this.renderCommonMenuItem = function (child, i, extraProps) {\n var state = _this3.props.store.getState();\n var props = _this3.props;\n var key = (0, _util.getKeyFromChildrenIndex)(child, props.eventKey, i);\n var childProps = child.props;\n var isActive = key === state.activeKey;\n var newChildProps = _extends({\n mode: childProps.mode || props.mode,\n level: props.level,\n inlineIndent: props.inlineIndent,\n renderMenuItem: _this3.renderMenuItem,\n rootPrefixCls: props.prefixCls,\n index: i,\n parentMenu: props.parentMenu,\n // customized ref function, need to be invoked manually in child's componentDidMount\n manualRef: childProps.disabled ? undefined : (0, _createChainedFunction2[\"default\"])(child.ref, saveRef.bind(_this3)),\n eventKey: key,\n active: !childProps.disabled && isActive,\n multiple: props.multiple,\n onClick: function onClick(e) {\n (childProps.onClick || _util.noop)(e);\n _this3.onClick(e);\n },\n onItemHover: _this3.onItemHover,\n openTransitionName: _this3.getOpenTransitionName(),\n openAnimation: props.openAnimation,\n subMenuOpenDelay: props.subMenuOpenDelay,\n subMenuCloseDelay: props.subMenuCloseDelay,\n forceSubMenuRender: props.forceSubMenuRender,\n onOpenChange: _this3.onOpenChange,\n onDeselect: _this3.onDeselect,\n onSelect: _this3.onSelect,\n builtinPlacements: props.builtinPlacements,\n itemIcon: childProps.itemIcon || _this3.props.itemIcon,\n expandIcon: childProps.expandIcon || _this3.props.expandIcon\n }, extraProps);\n if (props.mode === 'inline') {\n newChildProps.triggerSubMenuAction = 'click';\n }\n return _react2[\"default\"].cloneElement(child, newChildProps);\n };\n\n this.renderMenuItem = function (c, i, subMenuKey) {\n /* istanbul ignore if */\n\n if (!c) {\n return null;\n }\n var state = _this3.props.store.getState();\n var extraProps = {\n openKeys: state.openKeys,\n selectedKeys: state.selectedKeys,\n triggerSubMenuAction: _this3.props.triggerSubMenuAction,\n subMenuKey: subMenuKey\n };\n return _this3.renderCommonMenuItem(c, i, extraProps);\n };\n};\n\nvar connected = (0, _miniStore.connect)()(SubPopupMenu);\n\nexports[\"default\"] = connected;\n\n/***/ }),\n/* 294 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nfunction createChainedFunction() {\n for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) {\n funcs[_key] = arguments[_key];\n }\n\n return funcs.filter(function (f) {\n return f != null;\n }).reduce(function (acc, f) {\n if (typeof f !== 'function') {\n throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.');\n }\n\n if (acc === null) {\n return f;\n }\n\n return function chainedFunction() {\n for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n acc.apply(this, args);\n f.apply(this, args);\n };\n }, null);\n}\nexports.default = createChainedFunction;\n\n/***/ }),\n/* 295 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = addEventListenerWrap;\n\nvar _addDomEventListener = __webpack_require__(12);\n\nvar _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nfunction addEventListenerWrap(target, eventType, cb) {\n /* eslint camelcase: 2 */\n var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {\n _reactDom2.default.unstable_batchedUpdates(cb, e);\n } : cb;\n return (0, _addDomEventListener2.default)(target, eventType, callback);\n}\n\n/***/ }),\n/* 296 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = createChainedFunction;\n\n/**\n * Safe chained function\n *\n * Will only create a new function if needed,\n * otherwise will pass back existing functions or null.\n *\n * @returns {function|null}\n */\nfunction createChainedFunction() {\n var args = [].slice.call(arguments, 0);\n\n if (args.length === 1) {\n return args[0];\n }\n\n return function chainedFunction() {\n for (var i = 0; i < args.length; i++) {\n if (args[i] && args[i].apply) {\n args[i].apply(this, arguments);\n }\n }\n };\n}\n\n/***/ }),\n/* 297 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.SubMenu = undefined;\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; /**\n * This source code is quoted from rc-menu.\n * homepage: https://github.com/react-component/menu\n */\n\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _rcTrigger = __webpack_require__(73);\n\nvar _rcTrigger2 = _interopRequireDefault(_rcTrigger);\n\nvar _tinperBeeCore = __webpack_require__(103);\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _miniStore = __webpack_require__(21);\n\nvar _SubPopupMenu = __webpack_require__(293);\n\nvar _SubPopupMenu2 = _interopRequireDefault(_SubPopupMenu);\n\nvar _placements = __webpack_require__(1025);\n\nvar _placements2 = _interopRequireDefault(_placements);\n\nvar _rcAnimate = __webpack_require__(96);\n\nvar _rcAnimate2 = _interopRequireDefault(_rcAnimate);\n\nvar _util = __webpack_require__(61);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar guid = 0;\n\nvar popupPlacementMap = {\n horizontal: 'bottomLeft',\n vertical: 'rightTop',\n 'vertical-left': 'rightTop',\n 'vertical-right': 'leftTop'\n};\n\nvar updateDefaultActiveFirst = function updateDefaultActiveFirst(store, eventKey, defaultActiveFirst) {\n var menuId = (0, _util.getMenuIdFromSubMenuEventKey)(eventKey);\n var state = store.getState();\n store.setState({\n defaultActiveFirst: _extends({}, state.defaultActiveFirst, _defineProperty({}, menuId, defaultActiveFirst))\n });\n};\n\nvar SubMenu = exports.SubMenu = function (_React$Component) {\n _inherits(SubMenu, _React$Component);\n\n function SubMenu(props) {\n _classCallCheck(this, SubMenu);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));\n\n _initialiseProps.call(_this);\n\n var store = props.store;\n var eventKey = props.eventKey;\n var defaultActiveFirst = store.getState().defaultActiveFirst;\n\n _this.isRootMenu = false;\n\n var value = false;\n\n if (defaultActiveFirst) {\n value = defaultActiveFirst[eventKey];\n }\n\n updateDefaultActiveFirst(store, eventKey, value);\n return _this;\n }\n\n SubMenu.prototype.componentDidMount = function componentDidMount() {\n this.componentDidUpdate();\n };\n\n SubMenu.prototype.componentDidUpdate = function componentDidUpdate() {\n var _props = this.props,\n mode = _props.mode,\n parentMenu = _props.parentMenu,\n manualRef = _props.manualRef;\n\n // invoke customized ref to expose component to mixin\n\n if (manualRef) {\n manualRef(this);\n }\n\n if (mode !== 'horizontal' || !parentMenu.isRootMenu || !this.props.isOpen) {\n return;\n }\n\n // this.minWidthTimeout = setTimeout(() => this.adjustWidth(), 0);\n this.adjustWidth();\n };\n\n SubMenu.prototype.componentWillUnmount = function componentWillUnmount() {\n var _props2 = this.props,\n onDestroy = _props2.onDestroy,\n eventKey = _props2.eventKey;\n\n if (onDestroy) {\n onDestroy(eventKey);\n }\n\n /* istanbul ignore if */\n /* if (this.minWidthTimeout) {\n clearTimeout(this.minWidthTimeout);\n }*/\n\n /* istanbul ignore if */\n if (this.mouseenterTimeout) {\n clearTimeout(this.mouseenterTimeout);\n }\n };\n\n SubMenu.prototype.renderChildren = function renderChildren(children) {\n var props = this.props;\n var baseProps = {\n mode: props.mode === 'horizontal' ? 'vertical' : props.mode,\n visible: this.props.isOpen,\n level: props.level + 1,\n inlineIndent: props.inlineIndent,\n focusable: false,\n onClick: this.onSubMenuClick,\n onSelect: this.onSelect,\n onDeselect: this.onDeselect,\n onDestroy: this.onDestroy,\n selectedKeys: props.selectedKeys,\n eventKey: props.eventKey + '-menu-',\n openKeys: props.openKeys,\n openTransitionName: props.openTransitionName,\n openAnimation: props.openAnimation,\n onOpenChange: this.onOpenChange,\n subMenuOpenDelay: props.subMenuOpenDelay,\n parentMenu: this,\n subMenuCloseDelay: props.subMenuCloseDelay,\n forceSubMenuRender: props.forceSubMenuRender,\n triggerSubMenuAction: props.triggerSubMenuAction,\n builtinPlacements: props.builtinPlacements,\n defaultActiveFirst: props.store.getState().defaultActiveFirst[(0, _util.getMenuIdFromSubMenuEventKey)(props.eventKey)],\n multiple: props.multiple,\n prefixCls: props.rootPrefixCls,\n id: this._menuId,\n manualRef: this.saveMenuInstance,\n itemIcon: props.itemIcon,\n expandIcon: props.expandIcon\n };\n\n var haveRendered = this.haveRendered;\n this.haveRendered = true;\n\n this.haveOpened = this.haveOpened || baseProps.visible || baseProps.forceSubMenuRender;\n // never rendered not planning to, don't render\n if (!this.haveOpened) {\n return _react2[\"default\"].createElement('div', null);\n }\n\n // don't show transition on first rendering (no animation for opened menu)\n // show appear transition if it's not visible (not sure why)\n // show appear transition if it's not inline mode\n var transitionAppear = haveRendered || !baseProps.visible || !baseProps.mode === 'inline';\n\n baseProps.className = ' ' + baseProps.prefixCls + '-sub';\n var animProps = {};\n\n if (baseProps.openTransitionName) {\n animProps.transitionName = baseProps.openTransitionName;\n } else if (_typeof(baseProps.openAnimation) === 'object') {\n animProps.animation = _extends({}, baseProps.openAnimation);\n if (!transitionAppear) {\n delete animProps.animation.appear;\n }\n }\n\n return _react2[\"default\"].createElement(\n _rcAnimate2[\"default\"],\n _extends({}, animProps, {\n showProp: 'visible',\n component: '',\n transitionAppear: transitionAppear\n }),\n _react2[\"default\"].createElement(\n _SubPopupMenu2[\"default\"],\n _extends({}, baseProps, { id: this._menuId }),\n children\n )\n );\n };\n\n SubMenu.prototype.render = function render() {\n var _classNames;\n\n var props = _extends({}, this.props);\n var isOpen = props.isOpen;\n var prefixCls = this.getPrefixCls();\n var isInlineMode = props.mode === 'inline';\n var className = (0, _classnames2[\"default\"])(prefixCls, prefixCls + '-' + props.mode, (_classNames = {}, _defineProperty(_classNames, props.className, !!props.className), _defineProperty(_classNames, this.getOpenClassName(), isOpen), _defineProperty(_classNames, this.getActiveClassName(), props.active || isOpen && !isInlineMode), _defineProperty(_classNames, this.getDisabledClassName(), props.disabled), _defineProperty(_classNames, this.getSelectedClassName(), this.isChildrenSelected()), _classNames));\n\n if (!this._menuId) {\n if (props.eventKey) {\n this._menuId = props.eventKey + '$Menu';\n } else {\n this._menuId = '$__$' + ++guid + '$Menu';\n }\n }\n\n var mouseEvents = {};\n var titleClickEvents = {};\n var titleMouseEvents = {};\n if (!props.disabled) {\n mouseEvents = {\n onMouseLeave: this.onMouseLeave,\n onMouseEnter: this.onMouseEnter\n };\n\n // only works in title, not outer li\n titleClickEvents = {\n onClick: this.onTitleClick\n };\n titleMouseEvents = {\n onMouseEnter: this.onTitleMouseEnter,\n onMouseLeave: this.onTitleMouseLeave\n };\n }\n\n var style = {};\n if (isInlineMode) {\n style.paddingLeft = props.inlineIndent * props.level;\n }\n\n var ariaOwns = {};\n // only set aria-owns when menu is open\n // otherwise it would be an invalid aria-owns value\n // since corresponding node cannot be found\n if (this.props.isOpen) {\n ariaOwns = {\n 'aria-owns': this._menuId\n };\n }\n\n // expand custom icon should NOT be displayed in menu with horizontal mode.\n var icon = null;\n if (props.mode !== 'horizontal') {\n icon = this.props.expandIcon; // ReactNode\n if (typeof this.props.expandIcon === 'function') {\n icon = _react2[\"default\"].createElement(this.props.expandIcon, _extends({}, this.props));\n }\n }\n\n var title = _react2[\"default\"].createElement(\n 'div',\n _extends({\n ref: this.saveSubMenuTitle,\n style: style,\n className: prefixCls + '-title'\n }, titleMouseEvents, titleClickEvents, {\n 'aria-expanded': isOpen\n }, ariaOwns, {\n 'aria-haspopup': 'true',\n title: typeof props.title === 'string' ? props.title : undefined\n }),\n props.title,\n icon || _react2[\"default\"].createElement('i', { className: prefixCls + '-arrow' })\n );\n var children = this.renderChildren(props.children);\n\n var getPopupContainer = function getPopupContainer(triggerNode) {\n return triggerNode.parentNode;\n };\n var popupPlacement = popupPlacementMap[props.mode];\n var popupAlign = props.popupOffset ? { offset: props.popupOffset } : {};\n var popupClassName = props.mode === 'inline' ? '' : props.popupClassName;\n var disabled = props.disabled,\n triggerSubMenuAction = props.triggerSubMenuAction,\n subMenuOpenDelay = props.subMenuOpenDelay,\n forceSubMenuRender = props.forceSubMenuRender,\n subMenuCloseDelay = props.subMenuCloseDelay,\n builtinPlacements = props.builtinPlacements;\n\n _util.menuAllProps.forEach(function (key) {\n return delete props[key];\n });\n // Set onClick to null, to ignore propagated onClick event\n delete props.onClick;\n return _react2[\"default\"].createElement(\n 'li',\n _extends({}, props, mouseEvents, {\n className: className,\n role: 'menuitem'\n }),\n isInlineMode && title,\n isInlineMode && children,\n !isInlineMode && _react2[\"default\"].createElement(\n _rcTrigger2[\"default\"],\n {\n prefixCls: prefixCls,\n popupClassName: prefixCls + '-popup ' + popupClassName,\n getPopupContainer: getPopupContainer,\n builtinPlacements: _extends({}, _placements2[\"default\"], builtinPlacements),\n popupPlacement: this.props.mode == 'vertical' ? this.props.position || popupPlacement : popupPlacement,\n popupVisible: isOpen,\n popupAlign: popupAlign,\n popup: children,\n action: disabled ? [] : [triggerSubMenuAction],\n mouseEnterDelay: subMenuOpenDelay,\n mouseLeaveDelay: subMenuCloseDelay,\n onPopupVisibleChange: this.onPopupVisibleChange,\n forceRender: forceSubMenuRender\n },\n title\n )\n );\n };\n\n return SubMenu;\n}(_react2[\"default\"].Component);\n\nSubMenu.propTypes = {\n parentMenu: _propTypes2[\"default\"].object,\n title: _propTypes2[\"default\"].node,\n children: _propTypes2[\"default\"].any,\n selectedKeys: _propTypes2[\"default\"].array,\n openKeys: _propTypes2[\"default\"].array,\n onClick: _propTypes2[\"default\"].func,\n onOpenChange: _propTypes2[\"default\"].func,\n rootPrefixCls: _propTypes2[\"default\"].string,\n eventKey: _propTypes2[\"default\"].string,\n multiple: _propTypes2[\"default\"].bool,\n active: _propTypes2[\"default\"].bool, // TODO: remove\n onItemHover: _propTypes2[\"default\"].func,\n onSelect: _propTypes2[\"default\"].func,\n triggerSubMenuAction: _propTypes2[\"default\"].string,\n onDeselect: _propTypes2[\"default\"].func,\n onDestroy: _propTypes2[\"default\"].func,\n onMouseEnter: _propTypes2[\"default\"].func,\n onMouseLeave: _propTypes2[\"default\"].func,\n onTitleMouseEnter: _propTypes2[\"default\"].func,\n onTitleMouseLeave: _propTypes2[\"default\"].func,\n onTitleClick: _propTypes2[\"default\"].func,\n popupOffset: _propTypes2[\"default\"].array,\n isOpen: _propTypes2[\"default\"].bool,\n store: _propTypes2[\"default\"].object,\n mode: _propTypes2[\"default\"].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']),\n manualRef: _propTypes2[\"default\"].func,\n itemIcon: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].func, _propTypes2[\"default\"].node]),\n expandIcon: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].func, _propTypes2[\"default\"].node]),\n position: _propTypes2[\"default\"].oneOf(['bottomLeft', 'topLeft', 'leftTop', 'rightTop'])\n};\nSubMenu.defaultProps = {\n onMouseEnter: _util.noop,\n onMouseLeave: _util.noop,\n onTitleMouseEnter: _util.noop,\n onTitleMouseLeave: _util.noop,\n onTitleClick: _util.noop,\n manualRef: _util.noop,\n mode: 'vertical',\n title: ''\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this2 = this;\n\n this.onDestroy = function (key) {\n _this2.props.onDestroy(key);\n };\n\n this.onKeyDown = function (e) {\n var keyCode = e.keyCode;\n var menu = _this2.menuInstance;\n var _props3 = _this2.props,\n isOpen = _props3.isOpen,\n store = _props3.store;\n\n if (_this2.props.store.getState().keyboard) {\n //是否启用键盘操作\n if (keyCode === _tinperBeeCore.KeyCode.ENTER) {\n // this.onTitleClick(e);\n menu && menu.onKeyDown && menu.onKeyDown(e);\n updateDefaultActiveFirst(store, _this2.props.eventKey, true);\n return true;\n }\n\n if (keyCode === _tinperBeeCore.KeyCode.RIGHT) {\n if (isOpen) {\n menu.onKeyDown(e);\n } else {\n _this2.triggerOpenChange(true);\n // need to update current menu's defaultActiveFirst value\n updateDefaultActiveFirst(store, _this2.props.eventKey, true);\n }\n return true;\n }\n if (keyCode === _tinperBeeCore.KeyCode.LEFT) {\n var handled = void 0;\n if (isOpen) {\n handled = menu.onKeyDown(e);\n } else {\n return undefined;\n }\n if (!handled) {\n _this2.triggerOpenChange(false);\n handled = true;\n }\n return handled;\n }\n if (isOpen && (keyCode === _tinperBeeCore.KeyCode.UP || keyCode === _tinperBeeCore.KeyCode.DOWN)) {\n return menu.onKeyDown(e);\n }\n }\n };\n\n this.onOpenChange = function (e) {\n _this2.props.onOpenChange(e);\n };\n\n this.onPopupVisibleChange = function (visible) {\n _this2.triggerOpenChange(visible, visible ? 'mouseenter' : 'mouseleave');\n };\n\n this.onMouseEnter = function (e) {\n var _props4 = _this2.props,\n key = _props4.eventKey,\n onMouseEnter = _props4.onMouseEnter,\n store = _props4.store;\n\n updateDefaultActiveFirst(store, _this2.props.eventKey, false);\n onMouseEnter({\n key: key,\n domEvent: e\n });\n };\n\n this.onMouseLeave = function (e) {\n var _props5 = _this2.props,\n parentMenu = _props5.parentMenu,\n eventKey = _props5.eventKey,\n onMouseLeave = _props5.onMouseLeave;\n\n parentMenu.subMenuInstance = _this2;\n onMouseLeave({\n key: eventKey,\n domEvent: e\n });\n };\n\n this.onTitleMouseEnter = function (domEvent) {\n var _props6 = _this2.props,\n key = _props6.eventKey,\n onItemHover = _props6.onItemHover,\n onTitleMouseEnter = _props6.onTitleMouseEnter;\n\n onItemHover({\n key: key,\n hover: true\n });\n onTitleMouseEnter({\n key: key,\n domEvent: domEvent\n });\n };\n\n this.onTitleMouseLeave = function (e) {\n var _props7 = _this2.props,\n parentMenu = _props7.parentMenu,\n eventKey = _props7.eventKey,\n onItemHover = _props7.onItemHover,\n onTitleMouseLeave = _props7.onTitleMouseLeave;\n\n parentMenu.subMenuInstance = _this2;\n onItemHover({\n key: eventKey,\n hover: false\n });\n onTitleMouseLeave({\n key: eventKey,\n domEvent: e\n });\n };\n\n this.onTitleClick = function (e) {\n var props = _this2.props;\n\n props.onTitleClick({\n key: props.eventKey,\n domEvent: e\n });\n if (props.triggerSubMenuAction === 'hover') {\n return;\n }\n _this2.triggerOpenChange(!props.isOpen, 'click');\n updateDefaultActiveFirst(props.store, _this2.props.eventKey, false);\n };\n\n this.onSubMenuClick = function (info) {\n // in the case of overflowed submenu\n // onClick is not copied over\n if (typeof _this2.props.onClick === 'function') {\n _this2.props.onClick(_this2.addKeyPath(info));\n }\n };\n\n this.onSelect = function (info) {\n _this2.props.onSelect(info);\n };\n\n this.onDeselect = function (info) {\n _this2.props.onDeselect(info);\n };\n\n this.getPrefixCls = function () {\n return _this2.props.rootPrefixCls + '-submenu';\n };\n\n this.getActiveClassName = function () {\n return _this2.getPrefixCls() + '-active';\n };\n\n this.getDisabledClassName = function () {\n return _this2.getPrefixCls() + '-disabled';\n };\n\n this.getSelectedClassName = function () {\n return _this2.getPrefixCls() + '-selected';\n };\n\n this.getOpenClassName = function () {\n return _this2.props.rootPrefixCls + '-submenu-open';\n };\n\n this.saveMenuInstance = function (c) {\n // children menu instance\n _this2.menuInstance = c;\n };\n\n this.addKeyPath = function (info) {\n return _extends({}, info, {\n keyPath: (info.keyPath || []).concat(_this2.props.eventKey)\n });\n };\n\n this.triggerOpenChange = function (open, type) {\n var key = _this2.props.eventKey;\n var openChange = function openChange() {\n _this2.onOpenChange({\n key: key,\n item: _this2,\n trigger: type,\n open: open\n });\n };\n if (type === 'mouseenter') {\n // make sure mouseenter happen after other menu item's mouseleave\n _this2.mouseenterTimeout = setTimeout(function () {\n openChange();\n }, 0);\n } else {\n openChange();\n }\n };\n\n this.isChildrenSelected = function () {\n var ret = { find: false };\n (0, _util.loopMenuItemRecursively)(_this2.props.children, _this2.props.selectedKeys, ret);\n return ret.find;\n };\n\n this.isOpen = function () {\n return _this2.props.openKeys.indexOf(_this2.props.eventKey) !== -1;\n };\n\n this.adjustWidth = function () {\n /* istanbul ignore if */\n if (!_this2.subMenuTitle || !_this2.menuInstance) {\n return;\n }\n var popupMenu = _reactDom2[\"default\"].findDOMNode(_this2.menuInstance);\n if (popupMenu.offsetWidth >= _this2.subMenuTitle.offsetWidth) {\n return;\n }\n\n /* istanbul ignore next */\n popupMenu.style.minWidth = _this2.subMenuTitle.offsetWidth + 'px'; //bug是因为在这里加了一个minWidth\n };\n\n this.saveSubMenuTitle = function (subMenuTitle) {\n _this2.subMenuTitle = subMenuTitle;\n };\n};\n\nvar connected = (0, _miniStore.connect)(function (_ref, _ref2) {\n var openKeys = _ref.openKeys,\n activeKey = _ref.activeKey,\n selectedKeys = _ref.selectedKeys;\n var eventKey = _ref2.eventKey,\n subMenuKey = _ref2.subMenuKey;\n return {\n isOpen: openKeys.indexOf(eventKey) > -1,\n active: activeKey[subMenuKey] === eventKey,\n selectedKeys: selectedKeys\n };\n})(SubMenu);\n\nconnected.isSubMenu = true;\n\nexports[\"default\"] = connected;\n\n/***/ }),\n/* 298 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = uid;\nvar now = +new Date();\nvar index = 0;\n\nfunction uid() {\n return \"u-upload-\" + now + \"-\" + ++index;\n}\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 299 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _Modal = __webpack_require__(162);\n\nvar _Modal2 = _interopRequireDefault(_Modal);\n\nvar _confirm = __webpack_require__(1140);\n\nvar _confirm2 = _interopRequireDefault(_confirm);\n\nvar _beeIcon = __webpack_require__(15);\n\nvar _beeIcon2 = _interopRequireDefault(_beeIcon);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\n_Modal2[\"default\"].info = function (props) {\n var config = _extends({\n type: 'info',\n icon: _react2[\"default\"].createElement(_beeIcon2[\"default\"], { type: 'uf-i-c-2' }),\n okCancel: false\n }, props);\n return (0, _confirm2[\"default\"])(config);\n};\n\n_Modal2[\"default\"].success = function (props) {\n var config = _extends({\n type: 'success',\n icon: _react2[\"default\"].createElement(_beeIcon2[\"default\"], { type: 'uf-correct' }),\n okCancel: false\n }, props);\n return (0, _confirm2[\"default\"])(config);\n};\n\n_Modal2[\"default\"].error = function (props) {\n var config = _extends({\n type: 'error',\n icon: _react2[\"default\"].createElement(_beeIcon2[\"default\"], { type: 'uf-exc-c' }),\n okCancel: false\n }, props);\n return (0, _confirm2[\"default\"])(config);\n};\n\n_Modal2[\"default\"].warning = function (props) {\n var config = _extends({\n type: 'warning',\n icon: _react2[\"default\"].createElement(_beeIcon2[\"default\"], { type: 'uf-exc-t' }),\n okCancel: false\n }, props);\n return (0, _confirm2[\"default\"])(config);\n};\n\n_Modal2[\"default\"].confirm = function (props) {\n var config = _extends({\n type: 'confirm',\n okCancel: true,\n confirmType: 'one'\n }, props);\n return (0, _confirm2[\"default\"])(config);\n};\n\n// onOk: ()=>{\n// console.log('onOk')\n// },\n// onCancel:()=>{\n// console.log('onCancel')\n// },\n// title:'提示信息',\n// keyword:'删除',\n// content:\"确定要删除吗?\",\n\n_Modal2[\"default\"].destroyAll = function () {\n while (_Modal.destroyFns.length) {\n var close = _Modal.destroyFns.pop();\n if (close) {\n close();\n }\n }\n};\n\nexports[\"default\"] = _Modal2[\"default\"];\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 300 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined;\n\nvar _all2 = __webpack_require__(1048);\n\nvar _all3 = _interopRequireDefault(_all2);\n\nvar _componentOrElement2 = __webpack_require__(1049);\n\nvar _componentOrElement3 = _interopRequireDefault(_componentOrElement2);\n\nvar _deprecated2 = __webpack_require__(1050);\n\nvar _deprecated3 = _interopRequireDefault(_deprecated2);\n\nvar _elementType2 = __webpack_require__(1051);\n\nvar _elementType3 = _interopRequireDefault(_elementType2);\n\nvar _isRequiredForA11y2 = __webpack_require__(1052);\n\nvar _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2);\n\nvar _splitComponent2 = __webpack_require__(1053);\n\nvar _splitComponent3 = _interopRequireDefault(_splitComponent2);\n\nvar _createChainedFunction2 = __webpack_require__(1054);\n\nvar _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2);\n\nvar _keyCode = __webpack_require__(1055);\n\nvar _keyCode2 = _interopRequireDefault(_keyCode);\n\nvar _contains2 = __webpack_require__(1056);\n\nvar _contains3 = _interopRequireDefault(_contains2);\n\nvar _addEventListener2 = __webpack_require__(301);\n\nvar _addEventListener3 = _interopRequireDefault(_addEventListener2);\n\nvar _cssAnimation2 = __webpack_require__(1057);\n\nvar _cssAnimation3 = _interopRequireDefault(_cssAnimation2);\n\nvar _toArray2 = __webpack_require__(1059);\n\nvar _toArray3 = _interopRequireDefault(_toArray2);\n\nvar _Align2 = __webpack_require__(1060);\n\nvar _Align3 = _interopRequireDefault(_Align2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.all = _all3.default;\nexports.componentOrElement = _componentOrElement3.default;\nexports.deprecated = _deprecated3.default;\nexports.elementType = _elementType3.default;\nexports.isRequiredForA11y = _isRequiredForA11y3.default;\nexports.splitComponent = _splitComponent3.default;\nexports.createChainedFunction = _createChainedFunction3.default;\nexports.KeyCode = _keyCode2.default;\nexports.contains = _contains3.default;\nexports.addEventListener = _addEventListener3.default;\nexports.cssAnimation = _cssAnimation3.default;\nexports.toArray = _toArray3.default;\n//export getContainerRenderMixin from './getContainerRenderMixin';\n\nexports.Align = _Align3.default;\n\n/***/ }),\n/* 301 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = addEventListenerWrap;\n\nvar _addDomEventListener = __webpack_require__(12);\n\nvar _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nfunction addEventListenerWrap(target, eventType, cb) {\n /* eslint camelcase: 2 */\n var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {\n _reactDom2.default.unstable_batchedUpdates(cb, e);\n } : cb;\n return (0, _addDomEventListener2.default)(target, eventType, callback);\n}\n\n/***/ }),\n/* 302 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports[\"default\"] = function (componentOrElement) {\n return (0, _ownerDocument2[\"default\"])(_reactDom2[\"default\"].findDOMNode(componentOrElement));\n};\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _ownerDocument = __webpack_require__(22);\n\nvar _ownerDocument2 = _interopRequireDefault(_ownerDocument);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 303 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = getContainer;\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\n/**\n * 获取容器组件\n * @param {[type]} container [description]\n * @param {[type]} defaultContainer [description]\n * @return {[type]} [description]\n */\nfunction getContainer(container, defaultContainer) {\n container = typeof container === 'function' ? container() : container;\n return _reactDom2[\"default\"].findDOMNode(container) || defaultContainer;\n}\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 304 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = hasClass;\nfunction hasClass(element, className) {\n if (element.classList) return !!className && element.classList.contains(className);else return (\" \" + element.className + \" \").indexOf(\" \" + className + \" \") !== -1;\n}\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 305 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = addEventListenerWrap;\n\nvar _addDomEventListener = __webpack_require__(12);\n\nvar _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nfunction addEventListenerWrap(target, eventType, cb) {\n /* eslint camelcase: 2 */\n var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {\n _reactDom2.default.unstable_batchedUpdates(cb, e);\n } : cb;\n return (0, _addDomEventListener2.default)(target, eventType, callback);\n}\n\n/***/ }),\n/* 306 */\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = __webpack_require__(218);\n\n/***/ }),\n/* 307 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(process) {var isProduction = process.env.NODE_ENV === 'production';\nvar prefix = 'Invariant failed';\nfunction invariant(condition, message) {\n if (condition) {\n return;\n }\n if (isProduction) {\n throw new Error(prefix);\n }\n throw new Error(prefix + \": \" + (message || ''));\n}\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (invariant);\n\n/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(5)))\n\n/***/ }),\n/* 308 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export __DO_NOT_USE__ActionTypes */\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return applyMiddleware; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"b\", function() { return bindActionCreators; });\n/* unused harmony export combineReducers */\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"c\", function() { return compose; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"d\", function() { return createStore; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_symbol_observable__ = __webpack_require__(1098);\n\n\n/**\n * These are private action types reserved by Redux.\n * For any unknown actions, you must return the current state.\n * If the current state is undefined, you must return the initial state.\n * Do not reference these action types directly in your code.\n */\nvar randomString = function randomString() {\n return Math.random().toString(36).substring(7).split('').join('.');\n};\n\nvar ActionTypes = {\n INIT: \"@@redux/INIT\" + randomString(),\n REPLACE: \"@@redux/REPLACE\" + randomString(),\n PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() {\n return \"@@redux/PROBE_UNKNOWN_ACTION\" + randomString();\n }\n};\n\n/**\n * @param {any} obj The object to inspect.\n * @returns {boolean} True if the argument appears to be a plain object.\n */\nfunction isPlainObject(obj) {\n if (typeof obj !== 'object' || obj === null) return false;\n var proto = obj;\n\n while (Object.getPrototypeOf(proto) !== null) {\n proto = Object.getPrototypeOf(proto);\n }\n\n return Object.getPrototypeOf(obj) === proto;\n}\n\n/**\n * Creates a Redux store that holds the state tree.\n * The only way to change the data in the store is to call `dispatch()` on it.\n *\n * There should only be a single store in your app. To specify how different\n * parts of the state tree respond to actions, you may combine several reducers\n * into a single reducer function by using `combineReducers`.\n *\n * @param {Function} reducer A function that returns the next state tree, given\n * the current state tree and the action to handle.\n *\n * @param {any} [preloadedState] The initial state. You may optionally specify it\n * to hydrate the state from the server in universal apps, or to restore a\n * previously serialized user session.\n * If you use `combineReducers` to produce the root reducer function, this must be\n * an object with the same shape as `combineReducers` keys.\n *\n * @param {Function} [enhancer] The store enhancer. You may optionally specify it\n * to enhance the store with third-party capabilities such as middleware,\n * time travel, persistence, etc. The only store enhancer that ships with Redux\n * is `applyMiddleware()`.\n *\n * @returns {Store} A Redux store that lets you read the state, dispatch actions\n * and subscribe to changes.\n */\n\nfunction createStore(reducer, preloadedState, enhancer) {\n var _ref2;\n\n if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') {\n throw new Error('It looks like you are passing several store enhancers to ' + 'createStore(). This is not supported. Instead, compose them ' + 'together to a single function.');\n }\n\n if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') {\n enhancer = preloadedState;\n preloadedState = undefined;\n }\n\n if (typeof enhancer !== 'undefined') {\n if (typeof enhancer !== 'function') {\n throw new Error('Expected the enhancer to be a function.');\n }\n\n return enhancer(createStore)(reducer, preloadedState);\n }\n\n if (typeof reducer !== 'function') {\n throw new Error('Expected the reducer to be a function.');\n }\n\n var currentReducer = reducer;\n var currentState = preloadedState;\n var currentListeners = [];\n var nextListeners = currentListeners;\n var isDispatching = false;\n /**\n * This makes a shallow copy of currentListeners so we can use\n * nextListeners as a temporary list while dispatching.\n *\n * This prevents any bugs around consumers calling\n * subscribe/unsubscribe in the middle of a dispatch.\n */\n\n function ensureCanMutateNextListeners() {\n if (nextListeners === currentListeners) {\n nextListeners = currentListeners.slice();\n }\n }\n /**\n * Reads the state tree managed by the store.\n *\n * @returns {any} The current state tree of your application.\n */\n\n\n function getState() {\n if (isDispatching) {\n throw new Error('You may not call store.getState() while the reducer is executing. ' + 'The reducer has already received the state as an argument. ' + 'Pass it down from the top reducer instead of reading it from the store.');\n }\n\n return currentState;\n }\n /**\n * Adds a change listener. It will be called any time an action is dispatched,\n * and some part of the state tree may potentially have changed. You may then\n * call `getState()` to read the current state tree inside the callback.\n *\n * You may call `dispatch()` from a change listener, with the following\n * caveats:\n *\n * 1. The subscriptions are snapshotted just before every `dispatch()` call.\n * If you subscribe or unsubscribe while the listeners are being invoked, this\n * will not have any effect on the `dispatch()` that is currently in progress.\n * However, the next `dispatch()` call, whether nested or not, will use a more\n * recent snapshot of the subscription list.\n *\n * 2. The listener should not expect to see all state changes, as the state\n * might have been updated multiple times during a nested `dispatch()` before\n * the listener is called. It is, however, guaranteed that all subscribers\n * registered before the `dispatch()` started will be called with the latest\n * state by the time it exits.\n *\n * @param {Function} listener A callback to be invoked on every dispatch.\n * @returns {Function} A function to remove this change listener.\n */\n\n\n function subscribe(listener) {\n if (typeof listener !== 'function') {\n throw new Error('Expected the listener to be a function.');\n }\n\n if (isDispatching) {\n throw new Error('You may not call store.subscribe() while the reducer is executing. ' + 'If you would like to be notified after the store has been updated, subscribe from a ' + 'component and invoke store.getState() in the callback to access the latest state. ' + 'See https://redux.js.org/api-reference/store#subscribelistener for more details.');\n }\n\n var isSubscribed = true;\n ensureCanMutateNextListeners();\n nextListeners.push(listener);\n return function unsubscribe() {\n if (!isSubscribed) {\n return;\n }\n\n if (isDispatching) {\n throw new Error('You may not unsubscribe from a store listener while the reducer is executing. ' + 'See https://redux.js.org/api-reference/store#subscribelistener for more details.');\n }\n\n isSubscribed = false;\n ensureCanMutateNextListeners();\n var index = nextListeners.indexOf(listener);\n nextListeners.splice(index, 1);\n currentListeners = null;\n };\n }\n /**\n * Dispatches an action. It is the only way to trigger a state change.\n *\n * The `reducer` function, used to create the store, will be called with the\n * current state tree and the given `action`. Its return value will\n * be considered the **next** state of the tree, and the change listeners\n * will be notified.\n *\n * The base implementation only supports plain object actions. If you want to\n * dispatch a Promise, an Observable, a thunk, or something else, you need to\n * wrap your store creating function into the corresponding middleware. For\n * example, see the documentation for the `redux-thunk` package. Even the\n * middleware will eventually dispatch plain object actions using this method.\n *\n * @param {Object} action A plain object representing “what changed”. It is\n * a good idea to keep actions serializable so you can record and replay user\n * sessions, or use the time travelling `redux-devtools`. An action must have\n * a `type` property which may not be `undefined`. It is a good idea to use\n * string constants for action types.\n *\n * @returns {Object} For convenience, the same action object you dispatched.\n *\n * Note that, if you use a custom middleware, it may wrap `dispatch()` to\n * return something else (for example, a Promise you can await).\n */\n\n\n function dispatch(action) {\n if (!isPlainObject(action)) {\n throw new Error('Actions must be plain objects. ' + 'Use custom middleware for async actions.');\n }\n\n if (typeof action.type === 'undefined') {\n throw new Error('Actions may not have an undefined \"type\" property. ' + 'Have you misspelled a constant?');\n }\n\n if (isDispatching) {\n throw new Error('Reducers may not dispatch actions.');\n }\n\n try {\n isDispatching = true;\n currentState = currentReducer(currentState, action);\n } finally {\n isDispatching = false;\n }\n\n var listeners = currentListeners = nextListeners;\n\n for (var i = 0; i < listeners.length; i++) {\n var listener = listeners[i];\n listener();\n }\n\n return action;\n }\n /**\n * Replaces the reducer currently used by the store to calculate the state.\n *\n * You might need this if your app implements code splitting and you want to\n * load some of the reducers dynamically. You might also need this if you\n * implement a hot reloading mechanism for Redux.\n *\n * @param {Function} nextReducer The reducer for the store to use instead.\n * @returns {void}\n */\n\n\n function replaceReducer(nextReducer) {\n if (typeof nextReducer !== 'function') {\n throw new Error('Expected the nextReducer to be a function.');\n }\n\n currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT.\n // Any reducers that existed in both the new and old rootReducer\n // will receive the previous state. This effectively populates\n // the new state tree with any relevant data from the old one.\n\n dispatch({\n type: ActionTypes.REPLACE\n });\n }\n /**\n * Interoperability point for observable/reactive libraries.\n * @returns {observable} A minimal observable of state changes.\n * For more information, see the observable proposal:\n * https://github.com/tc39/proposal-observable\n */\n\n\n function observable() {\n var _ref;\n\n var outerSubscribe = subscribe;\n return _ref = {\n /**\n * The minimal observable subscription method.\n * @param {Object} observer Any object that can be used as an observer.\n * The observer object should have a `next` method.\n * @returns {subscription} An object with an `unsubscribe` method that can\n * be used to unsubscribe the observable from the store, and prevent further\n * emission of values from the observable.\n */\n subscribe: function subscribe(observer) {\n if (typeof observer !== 'object' || observer === null) {\n throw new TypeError('Expected the observer to be an object.');\n }\n\n function observeState() {\n if (observer.next) {\n observer.next(getState());\n }\n }\n\n observeState();\n var unsubscribe = outerSubscribe(observeState);\n return {\n unsubscribe: unsubscribe\n };\n }\n }, _ref[__WEBPACK_IMPORTED_MODULE_0_symbol_observable__[\"a\" /* default */]] = function () {\n return this;\n }, _ref;\n } // When a store is created, an \"INIT\" action is dispatched so that every\n // reducer returns their initial state. This effectively populates\n // the initial state tree.\n\n\n dispatch({\n type: ActionTypes.INIT\n });\n return _ref2 = {\n dispatch: dispatch,\n subscribe: subscribe,\n getState: getState,\n replaceReducer: replaceReducer\n }, _ref2[__WEBPACK_IMPORTED_MODULE_0_symbol_observable__[\"a\" /* default */]] = observable, _ref2;\n}\n\n/**\n * Prints a warning in the console if it exists.\n *\n * @param {String} message The warning message.\n * @returns {void}\n */\nfunction warning(message) {\n /* eslint-disable no-console */\n if (typeof console !== 'undefined' && typeof console.error === 'function') {\n console.error(message);\n }\n /* eslint-enable no-console */\n\n\n try {\n // This error was thrown as a convenience so that if you enable\n // \"break on all exceptions\" in your console,\n // it would pause the execution at this line.\n throw new Error(message);\n } catch (e) {} // eslint-disable-line no-empty\n\n}\n\nfunction getUndefinedStateErrorMessage(key, action) {\n var actionType = action && action.type;\n var actionDescription = actionType && \"action \\\"\" + String(actionType) + \"\\\"\" || 'an action';\n return \"Given \" + actionDescription + \", reducer \\\"\" + key + \"\\\" returned undefined. \" + \"To ignore an action, you must explicitly return the previous state. \" + \"If you want this reducer to hold no value, you can return null instead of undefined.\";\n}\n\nfunction getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {\n var reducerKeys = Object.keys(reducers);\n var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer';\n\n if (reducerKeys.length === 0) {\n return 'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.';\n }\n\n if (!isPlainObject(inputState)) {\n return \"The \" + argumentName + \" has unexpected type of \\\"\" + {}.toString.call(inputState).match(/\\s([a-z|A-Z]+)/)[1] + \"\\\". Expected argument to be an object with the following \" + (\"keys: \\\"\" + reducerKeys.join('\", \"') + \"\\\"\");\n }\n\n var unexpectedKeys = Object.keys(inputState).filter(function (key) {\n return !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key];\n });\n unexpectedKeys.forEach(function (key) {\n unexpectedKeyCache[key] = true;\n });\n if (action && action.type === ActionTypes.REPLACE) return;\n\n if (unexpectedKeys.length > 0) {\n return \"Unexpected \" + (unexpectedKeys.length > 1 ? 'keys' : 'key') + \" \" + (\"\\\"\" + unexpectedKeys.join('\", \"') + \"\\\" found in \" + argumentName + \". \") + \"Expected to find one of the known reducer keys instead: \" + (\"\\\"\" + reducerKeys.join('\", \"') + \"\\\". Unexpected keys will be ignored.\");\n }\n}\n\nfunction assertReducerShape(reducers) {\n Object.keys(reducers).forEach(function (key) {\n var reducer = reducers[key];\n var initialState = reducer(undefined, {\n type: ActionTypes.INIT\n });\n\n if (typeof initialState === 'undefined') {\n throw new Error(\"Reducer \\\"\" + key + \"\\\" returned undefined during initialization. \" + \"If the state passed to the reducer is undefined, you must \" + \"explicitly return the initial state. The initial state may \" + \"not be undefined. If you don't want to set a value for this reducer, \" + \"you can use null instead of undefined.\");\n }\n\n if (typeof reducer(undefined, {\n type: ActionTypes.PROBE_UNKNOWN_ACTION()\n }) === 'undefined') {\n throw new Error(\"Reducer \\\"\" + key + \"\\\" returned undefined when probed with a random type. \" + (\"Don't try to handle \" + ActionTypes.INIT + \" or other actions in \\\"redux/*\\\" \") + \"namespace. They are considered private. Instead, you must return the \" + \"current state for any unknown actions, unless it is undefined, \" + \"in which case you must return the initial state, regardless of the \" + \"action type. The initial state may not be undefined, but can be null.\");\n }\n });\n}\n/**\n * Turns an object whose values are different reducer functions, into a single\n * reducer function. It will call every child reducer, and gather their results\n * into a single state object, whose keys correspond to the keys of the passed\n * reducer functions.\n *\n * @param {Object} reducers An object whose values correspond to different\n * reducer functions that need to be combined into one. One handy way to obtain\n * it is to use ES6 `import * as reducers` syntax. The reducers may never return\n * undefined for any action. Instead, they should return their initial state\n * if the state passed to them was undefined, and the current state for any\n * unrecognized action.\n *\n * @returns {Function} A reducer function that invokes every reducer inside the\n * passed object, and builds a state object with the same shape.\n */\n\n\nfunction combineReducers(reducers) {\n var reducerKeys = Object.keys(reducers);\n var finalReducers = {};\n\n for (var i = 0; i < reducerKeys.length; i++) {\n var key = reducerKeys[i];\n\n if (process.env.NODE_ENV !== 'production') {\n if (typeof reducers[key] === 'undefined') {\n warning(\"No reducer provided for key \\\"\" + key + \"\\\"\");\n }\n }\n\n if (typeof reducers[key] === 'function') {\n finalReducers[key] = reducers[key];\n }\n }\n\n var finalReducerKeys = Object.keys(finalReducers); // This is used to make sure we don't warn about the same\n // keys multiple times.\n\n var unexpectedKeyCache;\n\n if (process.env.NODE_ENV !== 'production') {\n unexpectedKeyCache = {};\n }\n\n var shapeAssertionError;\n\n try {\n assertReducerShape(finalReducers);\n } catch (e) {\n shapeAssertionError = e;\n }\n\n return function combination(state, action) {\n if (state === void 0) {\n state = {};\n }\n\n if (shapeAssertionError) {\n throw shapeAssertionError;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n var warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache);\n\n if (warningMessage) {\n warning(warningMessage);\n }\n }\n\n var hasChanged = false;\n var nextState = {};\n\n for (var _i = 0; _i < finalReducerKeys.length; _i++) {\n var _key = finalReducerKeys[_i];\n var reducer = finalReducers[_key];\n var previousStateForKey = state[_key];\n var nextStateForKey = reducer(previousStateForKey, action);\n\n if (typeof nextStateForKey === 'undefined') {\n var errorMessage = getUndefinedStateErrorMessage(_key, action);\n throw new Error(errorMessage);\n }\n\n nextState[_key] = nextStateForKey;\n hasChanged = hasChanged || nextStateForKey !== previousStateForKey;\n }\n\n hasChanged = hasChanged || finalReducerKeys.length !== Object.keys(state).length;\n return hasChanged ? nextState : state;\n };\n}\n\nfunction bindActionCreator(actionCreator, dispatch) {\n return function () {\n return dispatch(actionCreator.apply(this, arguments));\n };\n}\n/**\n * Turns an object whose values are action creators, into an object with the\n * same keys, but with every function wrapped into a `dispatch` call so they\n * may be invoked directly. This is just a convenience method, as you can call\n * `store.dispatch(MyActionCreators.doSomething())` yourself just fine.\n *\n * For convenience, you can also pass an action creator as the first argument,\n * and get a dispatch wrapped function in return.\n *\n * @param {Function|Object} actionCreators An object whose values are action\n * creator functions. One handy way to obtain it is to use ES6 `import * as`\n * syntax. You may also pass a single function.\n *\n * @param {Function} dispatch The `dispatch` function available on your Redux\n * store.\n *\n * @returns {Function|Object} The object mimicking the original object, but with\n * every action creator wrapped into the `dispatch` call. If you passed a\n * function as `actionCreators`, the return value will also be a single\n * function.\n */\n\n\nfunction bindActionCreators(actionCreators, dispatch) {\n if (typeof actionCreators === 'function') {\n return bindActionCreator(actionCreators, dispatch);\n }\n\n if (typeof actionCreators !== 'object' || actionCreators === null) {\n throw new Error(\"bindActionCreators expected an object or a function, instead received \" + (actionCreators === null ? 'null' : typeof actionCreators) + \". \" + \"Did you write \\\"import ActionCreators from\\\" instead of \\\"import * as ActionCreators from\\\"?\");\n }\n\n var boundActionCreators = {};\n\n for (var key in actionCreators) {\n var actionCreator = actionCreators[key];\n\n if (typeof actionCreator === 'function') {\n boundActionCreators[key] = bindActionCreator(actionCreator, dispatch);\n }\n }\n\n return boundActionCreators;\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n keys.push.apply(keys, Object.getOwnPropertySymbols(object));\n }\n\n if (enumerableOnly) keys = keys.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(source, true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(source).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\n/**\n * Composes single-argument functions from right to left. The rightmost\n * function can take multiple arguments as it provides the signature for\n * the resulting composite function.\n *\n * @param {...Function} funcs The functions to compose.\n * @returns {Function} A function obtained by composing the argument functions\n * from right to left. For example, compose(f, g, h) is identical to doing\n * (...args) => f(g(h(...args))).\n */\nfunction compose() {\n for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {\n funcs[_key] = arguments[_key];\n }\n\n if (funcs.length === 0) {\n return function (arg) {\n return arg;\n };\n }\n\n if (funcs.length === 1) {\n return funcs[0];\n }\n\n return funcs.reduce(function (a, b) {\n return function () {\n return a(b.apply(void 0, arguments));\n };\n });\n}\n\n/**\n * Creates a store enhancer that applies middleware to the dispatch method\n * of the Redux store. This is handy for a variety of tasks, such as expressing\n * asynchronous actions in a concise manner, or logging every action payload.\n *\n * See `redux-thunk` package as an example of the Redux middleware.\n *\n * Because middleware is potentially asynchronous, this should be the first\n * store enhancer in the composition chain.\n *\n * Note that each middleware will be given the `dispatch` and `getState` functions\n * as named arguments.\n *\n * @param {...Function} middlewares The middleware chain to be applied.\n * @returns {Function} A store enhancer applying the middleware.\n */\n\nfunction applyMiddleware() {\n for (var _len = arguments.length, middlewares = new Array(_len), _key = 0; _key < _len; _key++) {\n middlewares[_key] = arguments[_key];\n }\n\n return function (createStore) {\n return function () {\n var store = createStore.apply(void 0, arguments);\n\n var _dispatch = function dispatch() {\n throw new Error('Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.');\n };\n\n var middlewareAPI = {\n getState: store.getState,\n dispatch: function dispatch() {\n return _dispatch.apply(void 0, arguments);\n }\n };\n var chain = middlewares.map(function (middleware) {\n return middleware(middlewareAPI);\n });\n _dispatch = compose.apply(void 0, chain)(store.dispatch);\n return _objectSpread2({}, store, {\n dispatch: _dispatch\n });\n };\n };\n}\n\n/*\n * This is a dummy function to check if the function name has been altered by minification.\n * If the function has been minified and NODE_ENV !== 'production', warn the user.\n */\n\nfunction isCrushed() {}\n\nif (process.env.NODE_ENV !== 'production' && typeof isCrushed.name === 'string' && isCrushed.name !== 'isCrushed') {\n warning('You are currently using minified code outside of NODE_ENV === \"production\". ' + 'This means that you are running a slower development build of Redux. ' + 'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify ' + 'or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) ' + 'to ensure you have the correct code for your production build.');\n}\n\n\n\n/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(5)))\n\n/***/ }),\n/* 309 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (immutable) */ __webpack_exports__[\"a\"] = _inheritsLoose;\nfunction _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n subClass.__proto__ = superClass;\n}\n\n/***/ }),\n/* 310 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"b\", function() { return subscriptionShape; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return storeShape; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_prop_types__);\n\nvar subscriptionShape = __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.shape({\n trySubscribe: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.func.isRequired,\n tryUnsubscribe: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.func.isRequired,\n notifyNestedSubs: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.func.isRequired,\n isSubscribed: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.func.isRequired\n});\nvar storeShape = __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.shape({\n subscribe: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.func.isRequired,\n dispatch: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.func.isRequired,\n getState: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.func.isRequired\n});\n\n/***/ }),\n/* 311 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__[\"a\"] = connectAdvanced;\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__ = __webpack_require__(309);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_assertThisInitialized__ = __webpack_require__(1106);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_extends__ = __webpack_require__(169);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__ = __webpack_require__(170);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_hoist_non_react_statics__ = __webpack_require__(234);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_hoist_non_react_statics___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_hoist_non_react_statics__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_invariant__ = __webpack_require__(1107);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_invariant___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_invariant__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react_is__ = __webpack_require__(135);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react_is___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_react_is__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utils_Subscription__ = __webpack_require__(1108);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_PropTypes__ = __webpack_require__(310);\n\n\n\n\n\n\n\n\n\n\nvar prefixUnsafeLifecycleMethods = typeof __WEBPACK_IMPORTED_MODULE_6_react___default.a.forwardRef !== \"undefined\";\nvar hotReloadingVersion = 0;\nvar dummyState = {};\n\nfunction noop() {}\n\nfunction makeSelectorStateful(sourceSelector, store) {\n // wrap the selector in an object that tracks its results between runs.\n var selector = {\n run: function runComponentSelector(props) {\n try {\n var nextProps = sourceSelector(store.getState(), props);\n\n if (nextProps !== selector.props || selector.error) {\n selector.shouldComponentUpdate = true;\n selector.props = nextProps;\n selector.error = null;\n }\n } catch (error) {\n selector.shouldComponentUpdate = true;\n selector.error = error;\n }\n }\n };\n return selector;\n}\n\nfunction connectAdvanced(\n/*\n selectorFactory is a func that is responsible for returning the selector function used to\n compute new props from state, props, and dispatch. For example:\n export default connectAdvanced((dispatch, options) => (state, props) => ({\n thing: state.things[props.thingId],\n saveThing: fields => dispatch(actionCreators.saveThing(props.thingId, fields)),\n }))(YourComponent)\n Access to dispatch is provided to the factory so selectorFactories can bind actionCreators\n outside of their selector as an optimization. Options passed to connectAdvanced are passed to\n the selectorFactory, along with displayName and WrappedComponent, as the second argument.\n Note that selectorFactory is responsible for all caching/memoization of inbound and outbound\n props. Do not use connectAdvanced directly without memoizing results between calls to your\n selector, otherwise the Connect component will re-render on every state or props change.\n*/\nselectorFactory, // options object:\n_ref) {\n var _contextTypes, _childContextTypes;\n\n if (_ref === void 0) {\n _ref = {};\n }\n\n var _ref2 = _ref,\n _ref2$getDisplayName = _ref2.getDisplayName,\n getDisplayName = _ref2$getDisplayName === void 0 ? function (name) {\n return \"ConnectAdvanced(\" + name + \")\";\n } : _ref2$getDisplayName,\n _ref2$methodName = _ref2.methodName,\n methodName = _ref2$methodName === void 0 ? 'connectAdvanced' : _ref2$methodName,\n _ref2$renderCountProp = _ref2.renderCountProp,\n renderCountProp = _ref2$renderCountProp === void 0 ? undefined : _ref2$renderCountProp,\n _ref2$shouldHandleSta = _ref2.shouldHandleStateChanges,\n shouldHandleStateChanges = _ref2$shouldHandleSta === void 0 ? true : _ref2$shouldHandleSta,\n _ref2$storeKey = _ref2.storeKey,\n storeKey = _ref2$storeKey === void 0 ? 'store' : _ref2$storeKey,\n _ref2$withRef = _ref2.withRef,\n withRef = _ref2$withRef === void 0 ? false : _ref2$withRef,\n connectOptions = Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__[\"a\" /* default */])(_ref2, [\"getDisplayName\", \"methodName\", \"renderCountProp\", \"shouldHandleStateChanges\", \"storeKey\", \"withRef\"]);\n\n var subscriptionKey = storeKey + 'Subscription';\n var version = hotReloadingVersion++;\n var contextTypes = (_contextTypes = {}, _contextTypes[storeKey] = __WEBPACK_IMPORTED_MODULE_9__utils_PropTypes__[\"a\" /* storeShape */], _contextTypes[subscriptionKey] = __WEBPACK_IMPORTED_MODULE_9__utils_PropTypes__[\"b\" /* subscriptionShape */], _contextTypes);\n var childContextTypes = (_childContextTypes = {}, _childContextTypes[subscriptionKey] = __WEBPACK_IMPORTED_MODULE_9__utils_PropTypes__[\"b\" /* subscriptionShape */], _childContextTypes);\n return function wrapWithConnect(WrappedComponent) {\n __WEBPACK_IMPORTED_MODULE_5_invariant___default()(Object(__WEBPACK_IMPORTED_MODULE_7_react_is__[\"isValidElementType\"])(WrappedComponent), \"You must pass a component to the function returned by \" + (methodName + \". Instead received \" + JSON.stringify(WrappedComponent)));\n var wrappedComponentName = WrappedComponent.displayName || WrappedComponent.name || 'Component';\n var displayName = getDisplayName(wrappedComponentName);\n\n var selectorFactoryOptions = Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_extends__[\"a\" /* default */])({}, connectOptions, {\n getDisplayName: getDisplayName,\n methodName: methodName,\n renderCountProp: renderCountProp,\n shouldHandleStateChanges: shouldHandleStateChanges,\n storeKey: storeKey,\n withRef: withRef,\n displayName: displayName,\n wrappedComponentName: wrappedComponentName,\n WrappedComponent: WrappedComponent // TODO Actually fix our use of componentWillReceiveProps\n\n /* eslint-disable react/no-deprecated */\n\n });\n\n var Connect =\n /*#__PURE__*/\n function (_Component) {\n Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__[\"a\" /* default */])(Connect, _Component);\n\n function Connect(props, context) {\n var _this;\n\n _this = _Component.call(this, props, context) || this;\n _this.version = version;\n _this.state = {};\n _this.renderCount = 0;\n _this.store = props[storeKey] || context[storeKey];\n _this.propsMode = Boolean(props[storeKey]);\n _this.setWrappedInstance = _this.setWrappedInstance.bind(Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_assertThisInitialized__[\"a\" /* default */])(Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_assertThisInitialized__[\"a\" /* default */])(_this)));\n __WEBPACK_IMPORTED_MODULE_5_invariant___default()(_this.store, \"Could not find \\\"\" + storeKey + \"\\\" in either the context or props of \" + (\"\\\"\" + displayName + \"\\\". Either wrap the root component in a , \") + (\"or explicitly pass \\\"\" + storeKey + \"\\\" as a prop to \\\"\" + displayName + \"\\\".\"));\n\n _this.initSelector();\n\n _this.initSubscription();\n\n return _this;\n }\n\n var _proto = Connect.prototype;\n\n _proto.getChildContext = function getChildContext() {\n var _ref3;\n\n // If this component received store from props, its subscription should be transparent\n // to any descendants receiving store+subscription from context; it passes along\n // subscription passed to it. Otherwise, it shadows the parent subscription, which allows\n // Connect to control ordering of notifications to flow top-down.\n var subscription = this.propsMode ? null : this.subscription;\n return _ref3 = {}, _ref3[subscriptionKey] = subscription || this.context[subscriptionKey], _ref3;\n };\n\n _proto.componentDidMount = function componentDidMount() {\n if (!shouldHandleStateChanges) return; // componentWillMount fires during server side rendering, but componentDidMount and\n // componentWillUnmount do not. Because of this, trySubscribe happens during ...didMount.\n // Otherwise, unsubscription would never take place during SSR, causing a memory leak.\n // To handle the case where a child component may have triggered a state change by\n // dispatching an action in its componentWillMount, we have to re-run the select and maybe\n // re-render.\n\n this.subscription.trySubscribe();\n this.selector.run(this.props);\n if (this.selector.shouldComponentUpdate) this.forceUpdate();\n }; // Note: this is renamed below to the UNSAFE_ version in React >=16.3.0\n\n\n _proto.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n this.selector.run(nextProps);\n };\n\n _proto.shouldComponentUpdate = function shouldComponentUpdate() {\n return this.selector.shouldComponentUpdate;\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n if (this.subscription) this.subscription.tryUnsubscribe();\n this.subscription = null;\n this.notifyNestedSubs = noop;\n this.store = null;\n this.selector.run = noop;\n this.selector.shouldComponentUpdate = false;\n };\n\n _proto.getWrappedInstance = function getWrappedInstance() {\n __WEBPACK_IMPORTED_MODULE_5_invariant___default()(withRef, \"To access the wrapped instance, you need to specify \" + (\"{ withRef: true } in the options argument of the \" + methodName + \"() call.\"));\n return this.wrappedInstance;\n };\n\n _proto.setWrappedInstance = function setWrappedInstance(ref) {\n this.wrappedInstance = ref;\n };\n\n _proto.initSelector = function initSelector() {\n var sourceSelector = selectorFactory(this.store.dispatch, selectorFactoryOptions);\n this.selector = makeSelectorStateful(sourceSelector, this.store);\n this.selector.run(this.props);\n };\n\n _proto.initSubscription = function initSubscription() {\n if (!shouldHandleStateChanges) return; // parentSub's source should match where store came from: props vs. context. A component\n // connected to the store via props shouldn't use subscription from context, or vice versa.\n\n var parentSub = (this.propsMode ? this.props : this.context)[subscriptionKey];\n this.subscription = new __WEBPACK_IMPORTED_MODULE_8__utils_Subscription__[\"a\" /* default */](this.store, parentSub, this.onStateChange.bind(this)); // `notifyNestedSubs` is duplicated to handle the case where the component is unmounted in\n // the middle of the notification loop, where `this.subscription` will then be null. An\n // extra null check every change can be avoided by copying the method onto `this` and then\n // replacing it with a no-op on unmount. This can probably be avoided if Subscription's\n // listeners logic is changed to not call listeners that have been unsubscribed in the\n // middle of the notification loop.\n\n this.notifyNestedSubs = this.subscription.notifyNestedSubs.bind(this.subscription);\n };\n\n _proto.onStateChange = function onStateChange() {\n this.selector.run(this.props);\n\n if (!this.selector.shouldComponentUpdate) {\n this.notifyNestedSubs();\n } else {\n this.componentDidUpdate = this.notifyNestedSubsOnComponentDidUpdate;\n this.setState(dummyState);\n }\n };\n\n _proto.notifyNestedSubsOnComponentDidUpdate = function notifyNestedSubsOnComponentDidUpdate() {\n // `componentDidUpdate` is conditionally implemented when `onStateChange` determines it\n // needs to notify nested subs. Once called, it unimplements itself until further state\n // changes occur. Doing it this way vs having a permanent `componentDidUpdate` that does\n // a boolean check every time avoids an extra method call most of the time, resulting\n // in some perf boost.\n this.componentDidUpdate = undefined;\n this.notifyNestedSubs();\n };\n\n _proto.isSubscribed = function isSubscribed() {\n return Boolean(this.subscription) && this.subscription.isSubscribed();\n };\n\n _proto.addExtraProps = function addExtraProps(props) {\n if (!withRef && !renderCountProp && !(this.propsMode && this.subscription)) return props; // make a shallow copy so that fields added don't leak to the original selector.\n // this is especially important for 'ref' since that's a reference back to the component\n // instance. a singleton memoized selector would then be holding a reference to the\n // instance, preventing the instance from being garbage collected, and that would be bad\n\n var withExtras = Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_extends__[\"a\" /* default */])({}, props);\n\n if (withRef) withExtras.ref = this.setWrappedInstance;\n if (renderCountProp) withExtras[renderCountProp] = this.renderCount++;\n if (this.propsMode && this.subscription) withExtras[subscriptionKey] = this.subscription;\n return withExtras;\n };\n\n _proto.render = function render() {\n var selector = this.selector;\n selector.shouldComponentUpdate = false;\n\n if (selector.error) {\n throw selector.error;\n } else {\n return Object(__WEBPACK_IMPORTED_MODULE_6_react__[\"createElement\"])(WrappedComponent, this.addExtraProps(selector.props));\n }\n };\n\n return Connect;\n }(__WEBPACK_IMPORTED_MODULE_6_react__[\"Component\"]);\n\n if (prefixUnsafeLifecycleMethods) {\n // Use UNSAFE_ event name where supported\n Connect.prototype.UNSAFE_componentWillReceiveProps = Connect.prototype.componentWillReceiveProps;\n delete Connect.prototype.componentWillReceiveProps;\n }\n /* eslint-enable react/no-deprecated */\n\n\n Connect.WrappedComponent = WrappedComponent;\n Connect.displayName = displayName;\n Connect.childContextTypes = childContextTypes;\n Connect.contextTypes = contextTypes;\n Connect.propTypes = contextTypes;\n\n if (process.env.NODE_ENV !== 'production') {\n // Use UNSAFE_ event name where supported\n var eventName = prefixUnsafeLifecycleMethods ? 'UNSAFE_componentWillUpdate' : 'componentWillUpdate';\n\n Connect.prototype[eventName] = function componentWillUpdate() {\n var _this2 = this;\n\n // We are hot reloading!\n if (this.version !== version) {\n this.version = version;\n this.initSelector(); // If any connected descendants don't hot reload (and resubscribe in the process), their\n // listeners will be lost when we unsubscribe. Unfortunately, by copying over all\n // listeners, this does mean that the old versions of connected descendants will still be\n // notified of state changes; however, their onStateChange function is a no-op so this\n // isn't a huge deal.\n\n var oldListeners = [];\n\n if (this.subscription) {\n oldListeners = this.subscription.listeners.get();\n this.subscription.tryUnsubscribe();\n }\n\n this.initSubscription();\n\n if (shouldHandleStateChanges) {\n this.subscription.trySubscribe();\n oldListeners.forEach(function (listener) {\n return _this2.subscription.listeners.subscribe(listener);\n });\n }\n }\n };\n }\n\n return __WEBPACK_IMPORTED_MODULE_4_hoist_non_react_statics___default()(Connect, WrappedComponent);\n };\n}\n/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(5)))\n\n/***/ }),\n/* 312 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__[\"a\"] = wrapMapToPropsConstant;\n/* unused harmony export getDependsOnOwnProps */\n/* harmony export (immutable) */ __webpack_exports__[\"b\"] = wrapMapToPropsFunc;\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_verifyPlainObject__ = __webpack_require__(313);\n\nfunction wrapMapToPropsConstant(getConstant) {\n return function initConstantSelector(dispatch, options) {\n var constant = getConstant(dispatch, options);\n\n function constantSelector() {\n return constant;\n }\n\n constantSelector.dependsOnOwnProps = false;\n return constantSelector;\n };\n} // dependsOnOwnProps is used by createMapToPropsProxy to determine whether to pass props as args\n// to the mapToProps function being wrapped. It is also used by makePurePropsSelector to determine\n// whether mapToProps needs to be invoked when props have changed.\n// \n// A length of one signals that mapToProps does not depend on props from the parent component.\n// A length of zero is assumed to mean mapToProps is getting args via arguments or ...args and\n// therefore not reporting its length accurately..\n\nfunction getDependsOnOwnProps(mapToProps) {\n return mapToProps.dependsOnOwnProps !== null && mapToProps.dependsOnOwnProps !== undefined ? Boolean(mapToProps.dependsOnOwnProps) : mapToProps.length !== 1;\n} // Used by whenMapStateToPropsIsFunction and whenMapDispatchToPropsIsFunction,\n// this function wraps mapToProps in a proxy function which does several things:\n// \n// * Detects whether the mapToProps function being called depends on props, which\n// is used by selectorFactory to decide if it should reinvoke on props changes.\n// \n// * On first call, handles mapToProps if returns another function, and treats that\n// new function as the true mapToProps for subsequent calls.\n// \n// * On first call, verifies the first result is a plain object, in order to warn\n// the developer that their mapToProps function is not returning a valid result.\n// \n\nfunction wrapMapToPropsFunc(mapToProps, methodName) {\n return function initProxySelector(dispatch, _ref) {\n var displayName = _ref.displayName;\n\n var proxy = function mapToPropsProxy(stateOrDispatch, ownProps) {\n return proxy.dependsOnOwnProps ? proxy.mapToProps(stateOrDispatch, ownProps) : proxy.mapToProps(stateOrDispatch);\n }; // allow detectFactoryAndVerify to get ownProps\n\n\n proxy.dependsOnOwnProps = true;\n\n proxy.mapToProps = function detectFactoryAndVerify(stateOrDispatch, ownProps) {\n proxy.mapToProps = mapToProps;\n proxy.dependsOnOwnProps = getDependsOnOwnProps(mapToProps);\n var props = proxy(stateOrDispatch, ownProps);\n\n if (typeof props === 'function') {\n proxy.mapToProps = props;\n proxy.dependsOnOwnProps = getDependsOnOwnProps(props);\n props = proxy(stateOrDispatch, ownProps);\n }\n\n if (process.env.NODE_ENV !== 'production') Object(__WEBPACK_IMPORTED_MODULE_0__utils_verifyPlainObject__[\"a\" /* default */])(props, displayName, methodName);\n return props;\n };\n\n return proxy;\n };\n}\n/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(5)))\n\n/***/ }),\n/* 313 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (immutable) */ __webpack_exports__[\"a\"] = verifyPlainObject;\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isPlainObject__ = __webpack_require__(1112);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__warning__ = __webpack_require__(168);\n\n\nfunction verifyPlainObject(value, displayName, methodName) {\n if (!Object(__WEBPACK_IMPORTED_MODULE_0__isPlainObject__[\"a\" /* default */])(value)) {\n Object(__WEBPACK_IMPORTED_MODULE_1__warning__[\"a\" /* default */])(methodName + \"() in \" + displayName + \" must return a plain object. Instead received \" + value + \".\");\n }\n}\n\n/***/ }),\n/* 314 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports[\"default\"] = {\n noWobble: { stiffness: 170, damping: 26 }, // the default, if nothing provided\n gentle: { stiffness: 120, damping: 14 },\n wobbly: { stiffness: 180, damping: 12 },\n stiff: { stiffness: 210, damping: 20 }\n};\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 315 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar getClass = exports.getClass = function getClass(props, doing) {\n var dropClass = props.dropClass,\n dropOverClass = props.dropOverClass,\n dragClass = props.dragClass,\n dragingClass = props.dragingClass,\n type = props.type;\n\n\n var verticalObj = {\n drop: {}, drag: {}\n };\n verticalObj.drop['u-drop ' + dropClass] = true;\n verticalObj.drop['u-droping ' + dropOverClass] = doing;\n verticalObj.drag['u-drag ' + dragClass] = true;\n verticalObj.drag['u-draging ' + dragingClass] = doing;\n\n var horizontalObj = {\n drop: {}, drag: {}\n };\n horizontalObj.drop['u-drop u-drop-horizontal ' + dropClass] = true;\n horizontalObj.drop['u-droping u-droping-horizontal ' + dropOverClass] = doing;\n horizontalObj.drag['u-drag u-drag-horizontal ' + dragClass] = true;\n horizontalObj.drag['u-draging u-draging-horizontal ' + dragingClass] = doing;\n\n switch (type) {\n case 'vertical':\n return verticalObj;\n break;\n case 'horizontal':\n return horizontalObj;\n break;\n case 'betweenVertical':\n return verticalObj;\n break;\n case 'betweenHorizontal':\n return horizontalObj;\n break;\n }\n};\n\n/***/ }),\n/* 316 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(process) {\n\nexports.__esModule = true;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _lodash = __webpack_require__(20);\n\nvar _lodash2 = _interopRequireDefault(_lodash);\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _utils = __webpack_require__(75);\n\nvar _GridItem = __webpack_require__(1127);\n\nvar _GridItem2 = _interopRequireDefault(_GridItem);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n// End Types\n\n/**\n * A reactive, fluid grid layout with draggable, resizable components.\n */\n\n// Types\nvar ReactGridLayout = function (_React$Component) {\n _inherits(ReactGridLayout, _React$Component);\n\n // TODO publish internal ReactClass displayName transform\n function ReactGridLayout(props, context) {\n _classCallCheck(this, ReactGridLayout);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context));\n\n _initialiseProps.call(_this);\n\n (0, _utils.autoBindHandlers)(_this, [\"onDragStart\", \"onDrag\", \"onDragStop\", \"onResizeStart\", \"onResize\", \"onResizeStop\"]);\n return _this;\n }\n\n ReactGridLayout.prototype.componentDidMount = function componentDidMount() {\n this.setState({ mounted: true });\n // Possibly call back with layout on mount. This should be done after correcting the layout width\n // to ensure we don't rerender with the wrong width.\n this.onLayoutMaybeChanged(this.state.layout, this.props.layout);\n };\n\n ReactGridLayout.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n var newLayoutBase = void 0;\n // Legacy support for compactType\n // Allow parent to set layout directly.\n if (!(0, _lodash2.default)(nextProps.layout, this.props.layout) || nextProps.compactType !== this.props.compactType) {\n newLayoutBase = nextProps.layout;\n } else if (!(0, _utils.childrenEqual)(this.props.children, nextProps.children)) {\n // If children change, also regenerate the layout. Use our state\n // as the base in case because it may be more up to date than\n // what is in props.\n newLayoutBase = this.state.layout;\n }\n\n // We need to regenerate the layout.\n if (newLayoutBase) {\n var newLayout = (0, _utils.synchronizeLayoutWithChildren)(newLayoutBase, nextProps.children, nextProps.cols, this.compactType(nextProps));\n var _oldLayout = this.state.layout;\n this.setState({ layout: newLayout });\n this.onLayoutMaybeChanged(newLayout, _oldLayout);\n }\n };\n\n /**\n * Calculates a pixel value for the container.\n * @return {String} Container height in pixels.\n */\n\n\n ReactGridLayout.prototype.containerHeight = function containerHeight() {\n if (!this.props.autoSize) return;\n var nbRow = (0, _utils.bottom)(this.state.layout);\n var containerPaddingY = this.props.containerPadding ? this.props.containerPadding[1] : this.props.margin[1];\n return nbRow * this.props.rowHeight + (nbRow - 1) * this.props.margin[1] + containerPaddingY * 2 + \"px\";\n };\n\n ReactGridLayout.prototype.compactType = function compactType(props) {\n if (!props) props = this.props;\n return props.verticalCompact === false ? null : props.compactType;\n };\n\n /**\n * When dragging starts\n * @param {String} i Id of the child\n * @param {Number} x X position of the move\n * @param {Number} y Y position of the move\n * @param {Event} e The mousedown event\n * @param {Element} node The current dragging DOM element\n */\n\n\n ReactGridLayout.prototype.onDragStart = function onDragStart(i, x, y, _ref) {\n var e = _ref.e,\n node = _ref.node;\n var layout = this.state.layout;\n\n var l = (0, _utils.getLayoutItem)(layout, i);\n if (!l) return;\n\n this.setState({\n oldDragItem: (0, _utils.cloneLayoutItem)(l),\n oldLayout: this.state.layout\n });\n\n return this.props.onDragStart(layout, l, l, null, e, node);\n };\n\n /**\n * Each drag movement create a new dragelement and move the element to the dragged location\n * @param {String} i Id of the child\n * @param {Number} x X position of the move\n * @param {Number} y Y position of the move\n * @param {Event} e The mousedown event\n * @param {Element} node The current dragging DOM element\n */\n\n\n ReactGridLayout.prototype.onDrag = function onDrag(i, x, y, _ref2) {\n var e = _ref2.e,\n node = _ref2.node;\n var oldDragItem = this.state.oldDragItem;\n var layout = this.state.layout;\n var cols = this.props.cols;\n\n var l = (0, _utils.getLayoutItem)(layout, i);\n if (!l) return;\n\n // Create placeholder (display only)\n var placeholder = {\n w: l.w,\n h: l.h,\n x: l.x,\n y: l.y,\n placeholder: true,\n i: i\n };\n\n // Move the element to the dragged location.\n var isUserAction = true;\n layout = (0, _utils.moveElement)(layout, l, x, y, isUserAction, this.props.preventCollision, this.compactType(), cols);\n\n this.props.onDrag(layout, oldDragItem, l, placeholder, e, node);\n\n this.setState({\n layout: (0, _utils.compact)(layout, this.compactType(), cols),\n activeDrag: placeholder\n });\n };\n\n /**\n * When dragging stops, figure out which position the element is closest to and update its x and y.\n * @param {String} i Index of the child.\n * @param {Number} x X position of the move\n * @param {Number} y Y position of the move\n * @param {Event} e The mousedown event\n * @param {Element} node The current dragging DOM element\n */\n\n\n ReactGridLayout.prototype.onDragStop = function onDragStop(i, x, y, _ref3) {\n var e = _ref3.e,\n node = _ref3.node;\n var oldDragItem = this.state.oldDragItem;\n var layout = this.state.layout;\n var _props = this.props,\n cols = _props.cols,\n preventCollision = _props.preventCollision;\n\n var l = (0, _utils.getLayoutItem)(layout, i);\n if (!l) return;\n\n // Move the element here\n var isUserAction = true;\n layout = (0, _utils.moveElement)(layout, l, x, y, isUserAction, preventCollision, this.compactType(), cols);\n\n this.props.onDragStop(layout, oldDragItem, l, null, e, node);\n\n // Set state\n var newLayout = (0, _utils.compact)(layout, this.compactType(), cols);\n var oldLayout = this.state.oldLayout;\n\n this.setState({\n activeDrag: null,\n layout: newLayout,\n oldDragItem: null,\n oldLayout: null\n });\n\n this.onLayoutMaybeChanged(newLayout, oldLayout);\n };\n\n ReactGridLayout.prototype.onLayoutMaybeChanged = function onLayoutMaybeChanged(newLayout, oldLayout) {\n if (!oldLayout) oldLayout = this.state.layout;\n if (!(0, _lodash2.default)(oldLayout, newLayout)) {\n this.props.onLayoutChange(newLayout);\n }\n };\n\n ReactGridLayout.prototype.onResizeStart = function onResizeStart(i, w, h, _ref4) {\n var e = _ref4.e,\n node = _ref4.node;\n var layout = this.state.layout;\n\n var l = (0, _utils.getLayoutItem)(layout, i);\n if (!l) return;\n\n this.setState({\n oldResizeItem: (0, _utils.cloneLayoutItem)(l),\n oldLayout: this.state.layout\n });\n\n this.props.onResizeStart(layout, l, l, null, e, node);\n };\n\n ReactGridLayout.prototype.onResize = function onResize(i, w, h, _ref5) {\n var e = _ref5.e,\n node = _ref5.node;\n var _state = this.state,\n layout = _state.layout,\n oldResizeItem = _state.oldResizeItem;\n var _props2 = this.props,\n cols = _props2.cols,\n preventCollision = _props2.preventCollision;\n\n var l = (0, _utils.getLayoutItem)(layout, i);\n if (!l) return;\n\n // Something like quad tree should be used\n // to find collisions faster\n var hasCollisions = void 0;\n if (preventCollision) {\n var collisions = (0, _utils.getAllCollisions)(layout, _extends({}, l, { w: w, h: h })).filter(function (layoutItem) {\n return layoutItem.i !== l.i;\n });\n hasCollisions = collisions.length > 0;\n\n // If we're colliding, we need adjust the placeholder.\n if (hasCollisions) {\n // adjust w && h to maximum allowed space\n var leastX = Infinity,\n leastY = Infinity;\n collisions.forEach(function (layoutItem) {\n if (layoutItem.x > l.x) leastX = Math.min(leastX, layoutItem.x);\n if (layoutItem.y > l.y) leastY = Math.min(leastY, layoutItem.y);\n });\n\n if (Number.isFinite(leastX)) l.w = leastX - l.x;\n if (Number.isFinite(leastY)) l.h = leastY - l.y;\n }\n }\n\n if (!hasCollisions) {\n // Set new width and height.\n l.w = w;\n l.h = h;\n }\n\n // Create placeholder element (display only)\n var placeholder = {\n w: l.w,\n h: l.h,\n x: l.x,\n y: l.y,\n static: true,\n i: i\n };\n\n this.props.onResize(layout, oldResizeItem, l, placeholder, e, node);\n\n // Re-compact the layout and set the drag placeholder.\n this.setState({\n layout: (0, _utils.compact)(layout, this.compactType(), cols),\n activeDrag: placeholder\n });\n };\n\n ReactGridLayout.prototype.onResizeStop = function onResizeStop(i, w, h, _ref6) {\n var e = _ref6.e,\n node = _ref6.node;\n var _state2 = this.state,\n layout = _state2.layout,\n oldResizeItem = _state2.oldResizeItem;\n var cols = this.props.cols;\n\n var l = (0, _utils.getLayoutItem)(layout, i);\n\n this.props.onResizeStop(layout, oldResizeItem, l, null, e, node);\n\n // Set state\n var newLayout = (0, _utils.compact)(layout, this.compactType(), cols);\n var oldLayout = this.state.oldLayout;\n\n this.setState({\n activeDrag: null,\n layout: newLayout,\n oldResizeItem: null,\n oldLayout: null\n });\n\n this.onLayoutMaybeChanged(newLayout, oldLayout);\n };\n\n /**\n * Create a placeholder object.\n * @return {Element} Placeholder div.\n */\n\n\n ReactGridLayout.prototype.placeholder = function placeholder() {\n var activeDrag = this.state.activeDrag;\n\n if (!activeDrag) return null;\n var _props3 = this.props,\n width = _props3.width,\n cols = _props3.cols,\n margin = _props3.margin,\n containerPadding = _props3.containerPadding,\n rowHeight = _props3.rowHeight,\n maxRows = _props3.maxRows,\n useCSSTransforms = _props3.useCSSTransforms;\n\n // {...this.state.activeDrag} is pretty slow, actually\n\n return _react2.default.createElement(\n _GridItem2.default,\n {\n w: activeDrag.w,\n h: activeDrag.h,\n x: activeDrag.x,\n y: activeDrag.y,\n i: activeDrag.i,\n className: \"react-grid-placeholder\",\n containerWidth: width,\n cols: cols,\n margin: margin,\n containerPadding: containerPadding || margin,\n maxRows: maxRows,\n rowHeight: rowHeight,\n isDraggable: false,\n isResizable: false,\n useCSSTransforms: useCSSTransforms\n },\n _react2.default.createElement(\"div\", null)\n );\n };\n\n /**\n * Given a grid item, set its style attributes & surround in a .\n * @param {Element} child React element.\n * @return {Element} Element wrapped in draggable and properly placed.\n */\n\n\n ReactGridLayout.prototype.processGridItem = function processGridItem(child) {\n if (!child || !child.key) return;\n var l = (0, _utils.getLayoutItem)(this.state.layout, String(child.key));\n if (!l) return null;\n var _props4 = this.props,\n width = _props4.width,\n cols = _props4.cols,\n margin = _props4.margin,\n containerPadding = _props4.containerPadding,\n rowHeight = _props4.rowHeight,\n maxRows = _props4.maxRows,\n isDraggable = _props4.isDraggable,\n isResizable = _props4.isResizable,\n useCSSTransforms = _props4.useCSSTransforms,\n draggableCancel = _props4.draggableCancel,\n draggableHandle = _props4.draggableHandle;\n var mounted = this.state.mounted;\n\n // Parse 'static'. Any properties defined directly on the grid item will take precedence.\n\n var draggable = Boolean(!l.static && isDraggable && (l.isDraggable || l.isDraggable == null));\n var resizable = Boolean(!l.static && isResizable && (l.isResizable || l.isResizable == null));\n\n return _react2.default.createElement(\n _GridItem2.default,\n {\n containerWidth: width,\n cols: cols,\n margin: margin,\n containerPadding: containerPadding || margin,\n maxRows: maxRows,\n rowHeight: rowHeight,\n cancel: draggableCancel,\n handle: draggableHandle,\n onDragStop: this.onDragStop,\n onDragStart: this.onDragStart,\n onDrag: this.onDrag,\n onResizeStart: this.onResizeStart,\n onResize: this.onResize,\n onResizeStop: this.onResizeStop,\n isDraggable: draggable,\n isResizable: resizable,\n useCSSTransforms: useCSSTransforms && mounted,\n usePercentages: !mounted,\n w: l.w,\n h: l.h,\n x: l.x,\n y: l.y,\n i: l.i,\n minH: l.minH,\n minW: l.minW,\n maxH: l.maxH,\n maxW: l.maxW,\n \"static\": l.static\n },\n child\n );\n };\n\n ReactGridLayout.prototype.render = function render() {\n var _this2 = this;\n\n var _props5 = this.props,\n className = _props5.className,\n style = _props5.style;\n\n\n var mergedClassName = (0, _classnames2.default)(\"react-grid-layout\", className);\n var mergedStyle = _extends({\n height: this.containerHeight()\n }, style);\n\n return _react2.default.createElement(\n \"div\",\n { className: mergedClassName, style: mergedStyle },\n _react2.default.Children.map(this.props.children, function (child) {\n return _this2.processGridItem(child);\n }),\n this.placeholder()\n );\n };\n\n return ReactGridLayout;\n}(_react2.default.Component);\n\nReactGridLayout.displayName = \"ReactGridLayout\";\nReactGridLayout.propTypes = {\n //\n // Basic props\n //\n className: _propTypes2.default.string,\n style: _propTypes2.default.object,\n\n // This can be set explicitly. If it is not set, it will automatically\n // be set to the container width. Note that resizes will *not* cause this to adjust.\n // If you need that behavior, use WidthProvider.\n width: _propTypes2.default.number,\n\n // If true, the container height swells and contracts to fit contents\n autoSize: _propTypes2.default.bool,\n // # of cols.\n cols: _propTypes2.default.number,\n\n // A selector that will not be draggable.\n draggableCancel: _propTypes2.default.string,\n // A selector for the draggable handler\n draggableHandle: _propTypes2.default.string,\n\n // Deprecated\n verticalCompact: function verticalCompact(props) {\n if (props.verticalCompact === false && process.env.NODE_ENV !== \"production\") {\n console.warn(\n // eslint-disable-line no-console\n \"`verticalCompact` on is deprecated and will be removed soon. \" + 'Use `compactType`: \"horizontal\" | \"vertical\" | null.');\n }\n },\n // Choose vertical or hotizontal compaction\n compactType: _propTypes2.default.oneOf([\"vertical\", \"horizontal\"]),\n\n // layout is an array of object with the format:\n // {x: Number, y: Number, w: Number, h: Number, i: String}\n layout: function layout(props) {\n var layout = props.layout;\n // I hope you're setting the data-grid property on the grid items\n if (layout === undefined) return;\n (0, _utils.validateLayout)(layout, \"layout\");\n },\n\n //\n // Grid Dimensions\n //\n\n // Margin between items [x, y] in px\n margin: _propTypes2.default.arrayOf(_propTypes2.default.number),\n // Padding inside the container [x, y] in px\n containerPadding: _propTypes2.default.arrayOf(_propTypes2.default.number),\n // Rows have a static height, but you can change this based on breakpoints if you like\n rowHeight: _propTypes2.default.number,\n // Default Infinity, but you can specify a max here if you like.\n // Note that this isn't fully fleshed out and won't error if you specify a layout that\n // extends beyond the row capacity. It will, however, not allow users to drag/resize\n // an item past the barrier. They can push items beyond the barrier, though.\n // Intentionally not documented for this reason.\n maxRows: _propTypes2.default.number,\n\n //\n // Flags\n //\n isDraggable: _propTypes2.default.bool,\n isResizable: _propTypes2.default.bool,\n // If true, grid items won't change position when being dragged over.\n preventCollision: _propTypes2.default.bool,\n // Use CSS transforms instead of top/left\n useCSSTransforms: _propTypes2.default.bool,\n\n //\n // Callbacks\n //\n\n // Callback so you can save the layout. Calls after each drag & resize stops.\n onLayoutChange: _propTypes2.default.func,\n\n // Calls when drag starts. Callback is of the signature (layout, oldItem, newItem, placeholder, e, ?node).\n // All callbacks below have the same signature. 'start' and 'stop' callbacks omit the 'placeholder'.\n onDragStart: _propTypes2.default.func,\n // Calls on each drag movement.\n onDrag: _propTypes2.default.func,\n // Calls when drag is complete.\n onDragStop: _propTypes2.default.func,\n //Calls when resize starts.\n onResizeStart: _propTypes2.default.func,\n // Calls when resize movement happens.\n onResize: _propTypes2.default.func,\n // Calls when resize is complete.\n onResizeStop: _propTypes2.default.func,\n\n //\n // Other validations\n //\n\n // Children must not have duplicate keys.\n children: function children(props, propName) {\n var children = props[propName];\n\n // Check children keys for duplicates. Throw if found.\n var keys = {};\n _react2.default.Children.forEach(children, function (child) {\n if (keys[child.key]) {\n throw new Error('Duplicate child key \"' + child.key + '\" found! This will cause problems in ReactGridLayout.');\n }\n keys[child.key] = true;\n });\n }\n};\nReactGridLayout.defaultProps = {\n autoSize: true,\n cols: 12,\n className: \"\",\n style: {},\n draggableHandle: \"\",\n draggableCancel: \"\",\n containerPadding: null,\n rowHeight: 150,\n maxRows: Infinity, // infinite vertical growth\n layout: [],\n margin: [10, 10],\n isDraggable: true,\n isResizable: true,\n useCSSTransforms: true,\n verticalCompact: true,\n compactType: \"vertical\",\n preventCollision: false,\n onLayoutChange: _utils.noop,\n onDragStart: _utils.noop,\n onDrag: _utils.noop,\n onDragStop: _utils.noop,\n onResizeStart: _utils.noop,\n onResize: _utils.noop,\n onResizeStop: _utils.noop\n};\n\nvar _initialiseProps = function _initialiseProps() {\n this.state = {\n activeDrag: null,\n layout: (0, _utils.synchronizeLayoutWithChildren)(this.props.layout, this.props.children, this.props.cols,\n // Legacy support for verticalCompact: false\n this.compactType()),\n mounted: false,\n oldDragItem: null,\n oldLayout: null,\n oldResizeItem: null\n };\n};\n\nexports.default = ReactGridLayout;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5)))\n\n/***/ }),\n/* 317 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar _react = _interopRequireDefault(__webpack_require__(0));\n\nvar _propTypes = _interopRequireDefault(__webpack_require__(1));\n\nvar _reactDraggable = __webpack_require__(1129);\n\nvar _utils = __webpack_require__(1133);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar Resizable =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inheritsLoose(Resizable, _React$Component);\n\n function Resizable() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n\n _defineProperty(_assertThisInitialized(_this), \"state\", {\n slackW: 0,\n slackH: 0\n });\n\n return _this;\n }\n\n var _proto = Resizable.prototype;\n\n _proto.lockAspectRatio = function lockAspectRatio(width, height, aspectRatio) {\n height = width / aspectRatio;\n width = height * aspectRatio;\n return [width, height];\n } // If you do this, be careful of constraints\n ;\n\n _proto.runConstraints = function runConstraints(width, height) {\n var _ref = [this.props.minConstraints, this.props.maxConstraints],\n min = _ref[0],\n max = _ref[1];\n if (!min && !max) return [width, height]; // Fit width & height to aspect ratio\n\n if (this.props.lockAspectRatio) {\n if (height === this.props.height) {\n var ratio = this.props.width / this.props.height;\n height = width / ratio;\n width = height * ratio;\n } else {\n // Take into account vertical resize with N/S handles on locked aspect\n // ratio. Calculate the change height-first, instead of width-first\n var _ratio = this.props.height / this.props.width;\n\n width = height / _ratio;\n height = width * _ratio;\n }\n }\n\n var oldW = width,\n oldH = height; // Add slack to the values used to calculate bound position. This will ensure that if\n // we start removing slack, the element won't react to it right away until it's been\n // completely removed.\n\n var _this$state = this.state,\n slackW = _this$state.slackW,\n slackH = _this$state.slackH;\n width += slackW;\n height += slackH;\n\n if (min) {\n width = Math.max(min[0], width);\n height = Math.max(min[1], height);\n }\n\n if (max) {\n width = Math.min(max[0], width);\n height = Math.min(max[1], height);\n } // If the numbers changed, we must have introduced some slack. Record it for the next iteration.\n\n\n slackW += oldW - width;\n slackH += oldH - height;\n\n if (slackW !== this.state.slackW || slackH !== this.state.slackH) {\n this.setState({\n slackW: slackW,\n slackH: slackH\n });\n }\n\n return [width, height];\n }\n /**\n * Wrapper around drag events to provide more useful data.\n *\n * @param {String} handlerName Handler name to wrap.\n * @return {Function} Handler function.\n */\n ;\n\n _proto.resizeHandler = function resizeHandler(handlerName, axis) {\n var _this2 = this;\n\n return function (e, _ref2) {\n var node = _ref2.node,\n deltaX = _ref2.deltaX,\n deltaY = _ref2.deltaY;\n deltaX /= _this2.props.transformScale;\n deltaY /= _this2.props.transformScale; // Axis restrictions\n\n var canDragX = (_this2.props.axis === 'both' || _this2.props.axis === 'x') && ['n', 's'].indexOf(axis) === -1;\n var canDragY = (_this2.props.axis === 'both' || _this2.props.axis === 'y') && ['e', 'w'].indexOf(axis) === -1; // reverse delta if using top or left drag handles\n\n if (canDragX && axis[axis.length - 1] === 'w') {\n deltaX = -deltaX;\n }\n\n if (canDragY && axis[0] === 'n') {\n deltaY = -deltaY;\n } // Update w/h\n\n\n var width = _this2.props.width + (canDragX ? deltaX : 0);\n var height = _this2.props.height + (canDragY ? deltaY : 0); // Early return if no change\n\n var widthChanged = width !== _this2.props.width,\n heightChanged = height !== _this2.props.height;\n if (handlerName === 'onResize' && !widthChanged && !heightChanged) return;\n\n var _this2$runConstraints = _this2.runConstraints(width, height);\n\n width = _this2$runConstraints[0];\n height = _this2$runConstraints[1];\n // Set the appropriate state for this handler.\n var newState = {};\n\n if (handlerName === 'onResizeStart') {// nothing\n } else if (handlerName === 'onResizeStop') {\n newState.slackW = newState.slackH = 0;\n } else {\n // Early return if no change after constraints\n if (width === _this2.props.width && height === _this2.props.height) return;\n }\n\n var hasCb = typeof _this2.props[handlerName] === 'function';\n\n if (hasCb) {\n // $FlowIgnore isn't refining this correctly to SyntheticEvent\n if (typeof e.persist === 'function') e.persist();\n\n _this2.setState(newState, function () {\n return _this2.props[handlerName](e, {\n node: node,\n size: {\n width: width,\n height: height\n },\n handle: axis\n });\n });\n } else {\n _this2.setState(newState);\n }\n };\n };\n\n _proto.renderResizeHandle = function renderResizeHandle(resizeHandle) {\n var handle = this.props.handle;\n\n if (handle) {\n if (typeof handle === 'function') {\n return handle(resizeHandle);\n }\n\n return handle;\n }\n\n return _react.default.createElement(\"span\", {\n className: \"react-resizable-handle react-resizable-handle-\" + resizeHandle\n });\n };\n\n _proto.render = function render() {\n var _this3 = this;\n\n // eslint-disable-next-line no-unused-vars\n var _this$props = this.props,\n children = _this$props.children,\n draggableOpts = _this$props.draggableOpts,\n width = _this$props.width,\n height = _this$props.height,\n handleSize = _this$props.handleSize,\n lockAspectRatio = _this$props.lockAspectRatio,\n axis = _this$props.axis,\n minConstraints = _this$props.minConstraints,\n maxConstraints = _this$props.maxConstraints,\n onResize = _this$props.onResize,\n onResizeStop = _this$props.onResizeStop,\n onResizeStart = _this$props.onResizeStart,\n resizeHandles = _this$props.resizeHandles,\n transformScale = _this$props.transformScale,\n p = _objectWithoutPropertiesLoose(_this$props, [\"children\", \"draggableOpts\", \"width\", \"height\", \"handleSize\", \"lockAspectRatio\", \"axis\", \"minConstraints\", \"maxConstraints\", \"onResize\", \"onResizeStop\", \"onResizeStart\", \"resizeHandles\", \"transformScale\"]);\n\n var className = p.className ? p.className + \" react-resizable\" : 'react-resizable'; // What we're doing here is getting the child of this element, and cloning it with this element's props.\n // We are then defining its children as:\n // Its original children (resizable's child's children), and\n // One or more draggable handles.\n\n return (0, _utils.cloneElement)(children, _objectSpread({}, p, {\n className: className,\n children: [children.props.children, resizeHandles.map(function (h) {\n return _react.default.createElement(_reactDraggable.DraggableCore, _extends({}, draggableOpts, {\n key: \"resizableHandle-\" + h,\n onStop: _this3.resizeHandler('onResizeStop', h),\n onStart: _this3.resizeHandler('onResizeStart', h),\n onDrag: _this3.resizeHandler('onResize', h)\n }), _this3.renderResizeHandle(h));\n })]\n }));\n };\n\n return Resizable;\n}(_react.default.Component);\n\nexports.default = Resizable;\n\n_defineProperty(Resizable, \"propTypes\", {\n //\n // Required Props\n //\n // Require that one and only one child be present.\n children: _propTypes.default.element.isRequired,\n // Initial w/h\n width: _propTypes.default.number.isRequired,\n height: _propTypes.default.number.isRequired,\n //\n // Optional props\n //\n // Custom resize handle\n handle: _propTypes.default.element,\n // If you change this, be sure to update your css\n handleSize: _propTypes.default.array,\n // Defines which resize handles should be rendered (default: 'se')\n // Allows for any combination of:\n // 's' - South handle (bottom-center)\n // 'w' - West handle (left-center)\n // 'e' - East handle (right-center)\n // 'n' - North handle (top-center)\n // 'sw' - Southwest handle (bottom-left)\n // 'nw' - Northwest handle (top-left)\n // 'se' - Southeast handle (bottom-right)\n // 'ne' - Northeast handle (top-center)\n resizeHandles: _propTypes.default.arrayOf(_propTypes.default.oneOf(['s', 'w', 'e', 'n', 'sw', 'nw', 'se', 'ne'])),\n transformScale: _propTypes.default.number,\n // If true, will only allow width/height to move in lockstep\n lockAspectRatio: _propTypes.default.bool,\n // Restricts resizing to a particular axis (default: 'both')\n // 'both' - allows resizing by width or height\n // 'x' - only allows the width to be changed\n // 'y' - only allows the height to be changed\n // 'none' - disables resizing altogether\n axis: _propTypes.default.oneOf(['both', 'x', 'y', 'none']),\n // Min/max size\n minConstraints: _propTypes.default.arrayOf(_propTypes.default.number),\n maxConstraints: _propTypes.default.arrayOf(_propTypes.default.number),\n // Callbacks\n onResizeStop: _propTypes.default.func,\n onResizeStart: _propTypes.default.func,\n onResize: _propTypes.default.func,\n // These will be passed wholesale to react-draggable's DraggableCore\n draggableOpts: _propTypes.default.object\n});\n\n_defineProperty(Resizable, \"defaultProps\", {\n handleSize: [20, 20],\n lockAspectRatio: false,\n axis: 'both',\n minConstraints: [20, 20],\n maxConstraints: [Infinity, Infinity],\n resizeHandles: ['se'],\n transformScale: 1\n});\n\n/***/ }),\n/* 318 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.getBoundPosition = getBoundPosition;\nexports.snapToGrid = snapToGrid;\nexports.canDragX = canDragX;\nexports.canDragY = canDragY;\nexports.getControlPosition = getControlPosition;\nexports.createCoreData = createCoreData;\nexports.createDraggableData = createDraggableData;\n\nvar _shims = __webpack_require__(108);\n\nvar _domFns = __webpack_require__(176);\n\nfunction getBoundPosition(draggable\n/*: Draggable*/\n, x\n/*: number*/\n, y\n/*: number*/\n)\n/*: [number, number]*/\n{\n // If no bounds, short-circuit and move on\n if (!draggable.props.bounds) return [x, y]; // Clone new bounds\n\n var bounds = draggable.props.bounds;\n bounds = typeof bounds === 'string' ? bounds : cloneBounds(bounds);\n var node = findDOMNode(draggable);\n\n if (typeof bounds === 'string') {\n var ownerDocument = node.ownerDocument;\n var ownerWindow = ownerDocument.defaultView;\n var boundNode;\n\n if (bounds === 'parent') {\n boundNode = node.parentNode;\n } else {\n boundNode = ownerDocument.querySelector(bounds);\n }\n\n if (!(boundNode instanceof ownerWindow.HTMLElement)) {\n throw new Error('Bounds selector \"' + bounds + '\" could not find an element.');\n }\n\n var nodeStyle = ownerWindow.getComputedStyle(node);\n var boundNodeStyle = ownerWindow.getComputedStyle(boundNode); // Compute bounds. This is a pain with padding and offsets but this gets it exactly right.\n\n bounds = {\n left: -node.offsetLeft + (0, _shims.int)(boundNodeStyle.paddingLeft) + (0, _shims.int)(nodeStyle.marginLeft),\n top: -node.offsetTop + (0, _shims.int)(boundNodeStyle.paddingTop) + (0, _shims.int)(nodeStyle.marginTop),\n right: (0, _domFns.innerWidth)(boundNode) - (0, _domFns.outerWidth)(node) - node.offsetLeft + (0, _shims.int)(boundNodeStyle.paddingRight) - (0, _shims.int)(nodeStyle.marginRight),\n bottom: (0, _domFns.innerHeight)(boundNode) - (0, _domFns.outerHeight)(node) - node.offsetTop + (0, _shims.int)(boundNodeStyle.paddingBottom) - (0, _shims.int)(nodeStyle.marginBottom)\n };\n } // Keep x and y below right and bottom limits...\n\n\n if ((0, _shims.isNum)(bounds.right)) x = Math.min(x, bounds.right);\n if ((0, _shims.isNum)(bounds.bottom)) y = Math.min(y, bounds.bottom); // But above left and top limits.\n\n if ((0, _shims.isNum)(bounds.left)) x = Math.max(x, bounds.left);\n if ((0, _shims.isNum)(bounds.top)) y = Math.max(y, bounds.top);\n return [x, y];\n}\n\nfunction snapToGrid(grid\n/*: [number, number]*/\n, pendingX\n/*: number*/\n, pendingY\n/*: number*/\n)\n/*: [number, number]*/\n{\n var x = Math.round(pendingX / grid[0]) * grid[0];\n var y = Math.round(pendingY / grid[1]) * grid[1];\n return [x, y];\n}\n\nfunction canDragX(draggable\n/*: Draggable*/\n)\n/*: boolean*/\n{\n return draggable.props.axis === 'both' || draggable.props.axis === 'x';\n}\n\nfunction canDragY(draggable\n/*: Draggable*/\n)\n/*: boolean*/\n{\n return draggable.props.axis === 'both' || draggable.props.axis === 'y';\n} // Get {x, y} positions from event.\n\n\nfunction getControlPosition(e\n/*: MouseTouchEvent*/\n, touchIdentifier\n/*: ?number*/\n, draggableCore\n/*: DraggableCore*/\n)\n/*: ?ControlPosition*/\n{\n var touchObj = typeof touchIdentifier === 'number' ? (0, _domFns.getTouch)(e, touchIdentifier) : null;\n if (typeof touchIdentifier === 'number' && !touchObj) return null; // not the right touch\n\n var node = findDOMNode(draggableCore); // User can provide an offsetParent if desired.\n\n var offsetParent = draggableCore.props.offsetParent || node.offsetParent || node.ownerDocument.body;\n return (0, _domFns.offsetXYFromParent)(touchObj || e, offsetParent, draggableCore.props.scale);\n} // Create an data object exposed by 's events\n\n\nfunction createCoreData(draggable\n/*: DraggableCore*/\n, x\n/*: number*/\n, y\n/*: number*/\n)\n/*: DraggableData*/\n{\n var state = draggable.state;\n var isStart = !(0, _shims.isNum)(state.lastX);\n var node = findDOMNode(draggable);\n\n if (isStart) {\n // If this is our first move, use the x and y as last coords.\n return {\n node: node,\n deltaX: 0,\n deltaY: 0,\n lastX: x,\n lastY: y,\n x: x,\n y: y\n };\n } else {\n // Otherwise calculate proper values.\n return {\n node: node,\n deltaX: x - state.lastX,\n deltaY: y - state.lastY,\n lastX: state.lastX,\n lastY: state.lastY,\n x: x,\n y: y\n };\n }\n} // Create an data exposed by 's events\n\n\nfunction createDraggableData(draggable\n/*: Draggable*/\n, coreData\n/*: DraggableData*/\n)\n/*: DraggableData*/\n{\n var scale = draggable.props.scale;\n return {\n node: coreData.node,\n x: draggable.state.x + coreData.deltaX / scale,\n y: draggable.state.y + coreData.deltaY / scale,\n deltaX: coreData.deltaX / scale,\n deltaY: coreData.deltaY / scale,\n lastX: draggable.state.x,\n lastY: draggable.state.y\n };\n} // A lot faster than stringify/parse\n\n\nfunction cloneBounds(bounds\n/*: Bounds*/\n)\n/*: Bounds*/\n{\n return {\n left: bounds.left,\n top: bounds.top,\n right: bounds.right,\n bottom: bounds.bottom\n };\n}\n\nfunction findDOMNode(draggable\n/*: Draggable | DraggableCore*/\n)\n/*: HTMLElement*/\n{\n var node = draggable.findDOMNode();\n\n if (!node) {\n throw new Error(': Unmounted during event!');\n } // $FlowIgnore we can't assert on HTMLElement due to tests... FIXME\n\n\n return node;\n}\n\n/***/ }),\n/* 319 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = log;\n\n/*eslint no-console:0*/\nfunction log() {\n var _console;\n\n if (undefined) (_console = console).log.apply(_console, arguments);\n}\n\n/***/ }),\n/* 320 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.getBreakpointFromWidth = getBreakpointFromWidth;\nexports.getColsFromBreakpoint = getColsFromBreakpoint;\nexports.findOrGenerateResponsiveLayout = findOrGenerateResponsiveLayout;\nexports.sortBreakpoints = sortBreakpoints;\n\nvar _utils = __webpack_require__(75);\n\n/**\n * Given a width, find the highest breakpoint that matches is valid for it (width > breakpoint).\n *\n * @param {Object} breakpoints Breakpoints object (e.g. {lg: 1200, md: 960, ...})\n * @param {Number} width Screen width.\n * @return {String} Highest breakpoint that is less than width.\n */\nfunction getBreakpointFromWidth(breakpoints, width) {\n var sorted = sortBreakpoints(breakpoints);\n var matching = sorted[0];\n for (var i = 1, len = sorted.length; i < len; i++) {\n var breakpointName = sorted[i];\n if (width > breakpoints[breakpointName]) matching = breakpointName;\n }\n return matching;\n}\n\n/**\n * Given a breakpoint, get the # of cols set for it.\n * @param {String} breakpoint Breakpoint name.\n * @param {Object} cols Map of breakpoints to cols.\n * @return {Number} Number of cols.\n */\n\n\nfunction getColsFromBreakpoint(breakpoint, cols) {\n if (!cols[breakpoint]) {\n throw new Error(\"ResponsiveReactGridLayout: `cols` entry for breakpoint \" + breakpoint + \" is missing!\");\n }\n return cols[breakpoint];\n}\n\n/**\n * Given existing layouts and a new breakpoint, find or generate a new layout.\n *\n * This finds the layout above the new one and generates from it, if it exists.\n *\n * @param {Object} layouts Existing layouts.\n * @param {Array} breakpoints All breakpoints.\n * @param {String} breakpoint New breakpoint.\n * @param {String} breakpoint Last breakpoint (for fallback).\n * @param {Number} cols Column count at new breakpoint.\n * @param {Boolean} verticalCompact Whether or not to compact the layout\n * vertically.\n * @return {Array} New layout.\n */\nfunction findOrGenerateResponsiveLayout(layouts, breakpoints, breakpoint, lastBreakpoint, cols, compactType) {\n // If it already exists, just return it.\n if (layouts[breakpoint]) return (0, _utils.cloneLayout)(layouts[breakpoint]);\n // Find or generate the next layout\n var layout = layouts[lastBreakpoint];\n var breakpointsSorted = sortBreakpoints(breakpoints);\n var breakpointsAbove = breakpointsSorted.slice(breakpointsSorted.indexOf(breakpoint));\n for (var i = 0, len = breakpointsAbove.length; i < len; i++) {\n var b = breakpointsAbove[i];\n if (layouts[b]) {\n layout = layouts[b];\n break;\n }\n }\n layout = (0, _utils.cloneLayout)(layout || []); // clone layout so we don't modify existing items\n return (0, _utils.compact)((0, _utils.correctBounds)(layout, { cols: cols }), compactType, cols);\n}\n\n/**\n * Given breakpoints, return an array of breakpoints sorted by width. This is usually\n * e.g. ['xxs', 'xs', 'sm', ...]\n *\n * @param {Object} breakpoints Key/value pair of breakpoint names to widths.\n * @return {Array} Sorted breakpoints.\n */\nfunction sortBreakpoints(breakpoints) {\n var keys = Object.keys(breakpoints);\n return keys.sort(function (a, b) {\n return breakpoints[a] - breakpoints[b];\n });\n}\n\n/***/ }),\n/* 321 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _Button = __webpack_require__(1141);\n\nvar _Button2 = _interopRequireDefault(_Button);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nexports[\"default\"] = _Button2[\"default\"];\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 322 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nfunction createChainedFunction() {\n for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) {\n funcs[_key] = arguments[_key];\n }\n\n return funcs.filter(function (f) {\n return f != null;\n }).reduce(function (acc, f) {\n if (typeof f !== 'function') {\n throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.');\n }\n\n if (acc === null) {\n return f;\n }\n\n return function chainedFunction() {\n for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n acc.apply(this, args);\n f.apply(this, args);\n };\n }, null);\n}\nexports.default = createChainedFunction;\n\n/***/ }),\n/* 323 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = addEventListenerWrap;\n\nvar _addDomEventListener = __webpack_require__(12);\n\nvar _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nfunction addEventListenerWrap(target, eventType, cb) {\n /* eslint camelcase: 2 */\n var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {\n _reactDom2.default.unstable_batchedUpdates(cb, e);\n } : cb;\n return (0, _addDomEventListener2.default)(target, eventType, callback);\n}\n\n/***/ }),\n/* 324 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar util = {\n isAppearSupported: function isAppearSupported(props) {\n return props.transitionName && props.transitionAppear || props.animation.appear;\n },\n isEnterSupported: function isEnterSupported(props) {\n return props.transitionName && props.transitionEnter || props.animation.enter;\n },\n isLeaveSupported: function isLeaveSupported(props) {\n return props.transitionName && props.transitionLeave || props.animation.leave;\n },\n allowAppearCallback: function allowAppearCallback(props) {\n return props.transitionAppear || props.animation.appear;\n },\n allowEnterCallback: function allowEnterCallback(props) {\n return props.transitionEnter || props.animation.enter;\n },\n allowLeaveCallback: function allowLeaveCallback(props) {\n return props.transitionLeave || props.animation.leave;\n }\n};\nexports[\"default\"] = util;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 325 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined;\n\nvar _all2 = __webpack_require__(1176);\n\nvar _all3 = _interopRequireDefault(_all2);\n\nvar _componentOrElement2 = __webpack_require__(1177);\n\nvar _componentOrElement3 = _interopRequireDefault(_componentOrElement2);\n\nvar _deprecated2 = __webpack_require__(1178);\n\nvar _deprecated3 = _interopRequireDefault(_deprecated2);\n\nvar _elementType2 = __webpack_require__(1179);\n\nvar _elementType3 = _interopRequireDefault(_elementType2);\n\nvar _isRequiredForA11y2 = __webpack_require__(1180);\n\nvar _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2);\n\nvar _splitComponent2 = __webpack_require__(326);\n\nvar _splitComponent3 = _interopRequireDefault(_splitComponent2);\n\nvar _createChainedFunction2 = __webpack_require__(327);\n\nvar _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2);\n\nvar _keyCode = __webpack_require__(1181);\n\nvar _keyCode2 = _interopRequireDefault(_keyCode);\n\nvar _contains2 = __webpack_require__(1182);\n\nvar _contains3 = _interopRequireDefault(_contains2);\n\nvar _addEventListener2 = __webpack_require__(328);\n\nvar _addEventListener3 = _interopRequireDefault(_addEventListener2);\n\nvar _cssAnimation2 = __webpack_require__(1183);\n\nvar _cssAnimation3 = _interopRequireDefault(_cssAnimation2);\n\nvar _toArray2 = __webpack_require__(1185);\n\nvar _toArray3 = _interopRequireDefault(_toArray2);\n\nvar _Align2 = __webpack_require__(1186);\n\nvar _Align3 = _interopRequireDefault(_Align2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.all = _all3.default;\nexports.componentOrElement = _componentOrElement3.default;\nexports.deprecated = _deprecated3.default;\nexports.elementType = _elementType3.default;\nexports.isRequiredForA11y = _isRequiredForA11y3.default;\nexports.splitComponent = _splitComponent3.default;\nexports.createChainedFunction = _createChainedFunction3.default;\nexports.KeyCode = _keyCode2.default;\nexports.contains = _contains3.default;\nexports.addEventListener = _addEventListener3.default;\nexports.cssAnimation = _cssAnimation3.default;\nexports.toArray = _toArray3.default;\n//export getContainerRenderMixin from './getContainerRenderMixin';\n\nexports.Align = _Align3.default;\n\n/***/ }),\n/* 326 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = splitComponentProps;\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nfunction _objectEntries(obj) {\n var entries = [];\n var keys = Object.keys(obj);\n\n for (var k = 0; k < keys.length; ++k) {\n entries.push([keys[k], obj[keys[k]]]);\n }return entries;\n}\n\n/**\n * 分割要传入父元素和子元素的props\n * @param {[object]} props 传入的属性\n * @param {[reactElement]} Component 组件\n * @return {[array]} 返回数组,第一个元素为父元素props对象,第二个子元素props对象\n */\nfunction splitComponentProps(props, Component) {\n var componentPropTypes = Component.propTypes;\n\n var parentProps = {};\n var childProps = {};\n\n _objectEntries(props).forEach(function (_ref) {\n var propName = _ref[0],\n propValue = _ref[1];\n\n if (componentPropTypes[propName]) {\n parentProps[propName] = propValue;\n } else {\n childProps[propName] = propValue;\n }\n });\n\n return [parentProps, childProps];\n}\n\n/***/ }),\n/* 327 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nfunction createChainedFunction() {\n for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) {\n funcs[_key] = arguments[_key];\n }\n\n return funcs.filter(function (f) {\n return f != null;\n }).reduce(function (acc, f) {\n if (typeof f !== 'function') {\n throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.');\n }\n\n if (acc === null) {\n return f;\n }\n\n return function chainedFunction() {\n for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n acc.apply(this, args);\n f.apply(this, args);\n };\n }, null);\n}\nexports.default = createChainedFunction;\n\n/***/ }),\n/* 328 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = addEventListenerWrap;\n\nvar _addDomEventListener = __webpack_require__(12);\n\nvar _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nfunction addEventListenerWrap(target, eventType, cb) {\n /* eslint camelcase: 2 */\n var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {\n _reactDom2.default.unstable_batchedUpdates(cb, e);\n } : cb;\n return (0, _addDomEventListener2.default)(target, eventType, callback);\n}\n\n/***/ }),\n/* 329 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = getContainer;\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\n/**\n * 获取容器组件\n * @param {[type]} container [description]\n * @param {[type]} defaultContainer [description]\n * @return {[type]} [description]\n */\nfunction getContainer(container, defaultContainer) {\n container = typeof container === 'function' ? container() : container;\n return _reactDom2[\"default\"].findDOMNode(container) || defaultContainer;\n}\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 330 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = addEventListenerWrap;\n\nvar _addDomEventListener = __webpack_require__(12);\n\nvar _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nfunction addEventListenerWrap(target, eventType, cb) {\n /* eslint camelcase: 2 */\n var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {\n _reactDom2.default.unstable_batchedUpdates(cb, e);\n } : cb;\n return (0, _addDomEventListener2.default)(target, eventType, callback);\n}\n\n/***/ }),\n/* 331 */\n/***/ (function(module, exports, __webpack_require__) {\n\n(function (global, factory) {\n\t true ? module.exports = factory() :\n\ttypeof define === 'function' && define.amd ? define(factory) :\n\t(global.arrayTreeFilter = factory());\n}(this, (function () { 'use strict';\n\nfunction arrayTreeFilter(data, filterFn, options) {\n options = options || {};\n options.childrenKeyName = options.childrenKeyName || \"children\";\n var children = data || [];\n var result = [];\n var level = 0;\n do {\n var foundItem = children.filter(function (item) {\n return filterFn(item, level);\n })[0];\n if (!foundItem) {\n break;\n }\n result.push(foundItem);\n children = foundItem[options.childrenKeyName] || [];\n level += 1;\n } while (children.length > 0);\n return result;\n}\n\nreturn arrayTreeFilter;\n\n})));\n\n\n/***/ }),\n/* 332 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _Icon = __webpack_require__(1244);\n\nvar _Icon2 = _interopRequireDefault(_Icon);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nexports[\"default\"] = _Icon2[\"default\"];\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 333 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _Calendar = __webpack_require__(1270);\n\nvar _Calendar2 = _interopRequireDefault(_Calendar);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nexports[\"default\"] = _Calendar2[\"default\"];\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 334 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _DateTHead = __webpack_require__(1271);\n\nvar _DateTHead2 = _interopRequireDefault(_DateTHead);\n\nvar _DateTBody = __webpack_require__(1273);\n\nvar _DateTBody2 = _interopRequireDefault(_DateTBody);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar DateTable = function (_React$Component) {\n _inherits(DateTable, _React$Component);\n\n function DateTable() {\n _classCallCheck(this, DateTable);\n\n return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n DateTable.prototype.render = function render() {\n var props = this.props;\n var prefixCls = props.prefixCls;\n return _react2[\"default\"].createElement(\n 'table',\n { className: prefixCls + '-table', cellSpacing: '0', role: 'grid' },\n _react2[\"default\"].createElement(_DateTHead2[\"default\"], props),\n _react2[\"default\"].createElement(_DateTBody2[\"default\"], props)\n );\n };\n\n return DateTable;\n}(_react2[\"default\"].Component);\n\nexports[\"default\"] = DateTable;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 335 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = {\n DATE_ROW_COUNT: 6,\n DATE_COL_COUNT: 7\n};\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 336 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Afrikaans [af]\n//! author : Werner Mollentze : https://github.com/wernerm\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var af = moment.defineLocale('af', {\n months: 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split(\n '_'\n ),\n monthsShort: 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),\n weekdays: 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split(\n '_'\n ),\n weekdaysShort: 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),\n weekdaysMin: 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),\n meridiemParse: /vm|nm/i,\n isPM: function (input) {\n return /^nm$/i.test(input);\n },\n meridiem: function (hours, minutes, isLower) {\n if (hours < 12) {\n return isLower ? 'vm' : 'VM';\n } else {\n return isLower ? 'nm' : 'NM';\n }\n },\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Vandag om] LT',\n nextDay: '[Môre om] LT',\n nextWeek: 'dddd [om] LT',\n lastDay: '[Gister om] LT',\n lastWeek: '[Laas] dddd [om] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'oor %s',\n past: '%s gelede',\n s: \"'n paar sekondes\",\n ss: '%d sekondes',\n m: \"'n minuut\",\n mm: '%d minute',\n h: \"'n uur\",\n hh: '%d ure',\n d: \"'n dag\",\n dd: '%d dae',\n M: \"'n maand\",\n MM: '%d maande',\n y: \"'n jaar\",\n yy: '%d jaar',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(ste|de)/,\n ordinal: function (number) {\n return (\n number +\n (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')\n ); // Thanks to Joris Röling : https://github.com/jjupiter\n },\n week: {\n dow: 1, // Maandag is die eerste dag van die week.\n doy: 4, // Die week wat die 4de Januarie bevat is die eerste week van die jaar.\n },\n });\n\n return af;\n\n})));\n\n\n/***/ }),\n/* 337 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Arabic [ar]\n//! author : Abdel Said: https://github.com/abdelsaid\n//! author : Ahmed Elkhatib\n//! author : forabi https://github.com/forabi\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '١',\n '2': '٢',\n '3': '٣',\n '4': '٤',\n '5': '٥',\n '6': '٦',\n '7': '٧',\n '8': '٨',\n '9': '٩',\n '0': '٠',\n },\n numberMap = {\n '١': '1',\n '٢': '2',\n '٣': '3',\n '٤': '4',\n '٥': '5',\n '٦': '6',\n '٧': '7',\n '٨': '8',\n '٩': '9',\n '٠': '0',\n },\n pluralForm = function (n) {\n return n === 0\n ? 0\n : n === 1\n ? 1\n : n === 2\n ? 2\n : n % 100 >= 3 && n % 100 <= 10\n ? 3\n : n % 100 >= 11\n ? 4\n : 5;\n },\n plurals = {\n s: [\n 'أقل من ثانية',\n 'ثانية واحدة',\n ['ثانيتان', 'ثانيتين'],\n '%d ثوان',\n '%d ثانية',\n '%d ثانية',\n ],\n m: [\n 'أقل من دقيقة',\n 'دقيقة واحدة',\n ['دقيقتان', 'دقيقتين'],\n '%d دقائق',\n '%d دقيقة',\n '%d دقيقة',\n ],\n h: [\n 'أقل من ساعة',\n 'ساعة واحدة',\n ['ساعتان', 'ساعتين'],\n '%d ساعات',\n '%d ساعة',\n '%d ساعة',\n ],\n d: [\n 'أقل من يوم',\n 'يوم واحد',\n ['يومان', 'يومين'],\n '%d أيام',\n '%d يومًا',\n '%d يوم',\n ],\n M: [\n 'أقل من شهر',\n 'شهر واحد',\n ['شهران', 'شهرين'],\n '%d أشهر',\n '%d شهرا',\n '%d شهر',\n ],\n y: [\n 'أقل من عام',\n 'عام واحد',\n ['عامان', 'عامين'],\n '%d أعوام',\n '%d عامًا',\n '%d عام',\n ],\n },\n pluralize = function (u) {\n return function (number, withoutSuffix, string, isFuture) {\n var f = pluralForm(number),\n str = plurals[u][pluralForm(number)];\n if (f === 2) {\n str = str[withoutSuffix ? 0 : 1];\n }\n return str.replace(/%d/i, number);\n };\n },\n months = [\n 'يناير',\n 'فبراير',\n 'مارس',\n 'أبريل',\n 'مايو',\n 'يونيو',\n 'يوليو',\n 'أغسطس',\n 'سبتمبر',\n 'أكتوبر',\n 'نوفمبر',\n 'ديسمبر',\n ];\n\n var ar = moment.defineLocale('ar', {\n months: months,\n monthsShort: months,\n weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),\n weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'D/\\u200FM/\\u200FYYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n meridiemParse: /ص|م/,\n isPM: function (input) {\n return 'م' === input;\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'ص';\n } else {\n return 'م';\n }\n },\n calendar: {\n sameDay: '[اليوم عند الساعة] LT',\n nextDay: '[غدًا عند الساعة] LT',\n nextWeek: 'dddd [عند الساعة] LT',\n lastDay: '[أمس عند الساعة] LT',\n lastWeek: 'dddd [عند الساعة] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'بعد %s',\n past: 'منذ %s',\n s: pluralize('s'),\n ss: pluralize('s'),\n m: pluralize('m'),\n mm: pluralize('m'),\n h: pluralize('h'),\n hh: pluralize('h'),\n d: pluralize('d'),\n dd: pluralize('d'),\n M: pluralize('M'),\n MM: pluralize('M'),\n y: pluralize('y'),\n yy: pluralize('y'),\n },\n preparse: function (string) {\n return string\n .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {\n return numberMap[match];\n })\n .replace(/،/g, ',');\n },\n postformat: function (string) {\n return string\n .replace(/\\d/g, function (match) {\n return symbolMap[match];\n })\n .replace(/,/g, '،');\n },\n week: {\n dow: 6, // Saturday is the first day of the week.\n doy: 12, // The week that contains Jan 12th is the first week of the year.\n },\n });\n\n return ar;\n\n})));\n\n\n/***/ }),\n/* 338 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Arabic (Algeria) [ar-dz]\n//! author : Noureddine LOUAHEDJ : https://github.com/noureddineme\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var arDz = moment.defineLocale('ar-dz', {\n months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(\n '_'\n ),\n monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(\n '_'\n ),\n weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),\n weekdaysMin: 'أح_إث_ثلا_أر_خم_جم_سب'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[اليوم على الساعة] LT',\n nextDay: '[غدا على الساعة] LT',\n nextWeek: 'dddd [على الساعة] LT',\n lastDay: '[أمس على الساعة] LT',\n lastWeek: 'dddd [على الساعة] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'في %s',\n past: 'منذ %s',\n s: 'ثوان',\n ss: '%d ثانية',\n m: 'دقيقة',\n mm: '%d دقائق',\n h: 'ساعة',\n hh: '%d ساعات',\n d: 'يوم',\n dd: '%d أيام',\n M: 'شهر',\n MM: '%d أشهر',\n y: 'سنة',\n yy: '%d سنوات',\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return arDz;\n\n})));\n\n\n/***/ }),\n/* 339 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Arabic (Kuwait) [ar-kw]\n//! author : Nusret Parlak: https://github.com/nusretparlak\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var arKw = moment.defineLocale('ar-kw', {\n months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(\n '_'\n ),\n monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(\n '_'\n ),\n weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),\n weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[اليوم على الساعة] LT',\n nextDay: '[غدا على الساعة] LT',\n nextWeek: 'dddd [على الساعة] LT',\n lastDay: '[أمس على الساعة] LT',\n lastWeek: 'dddd [على الساعة] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'في %s',\n past: 'منذ %s',\n s: 'ثوان',\n ss: '%d ثانية',\n m: 'دقيقة',\n mm: '%d دقائق',\n h: 'ساعة',\n hh: '%d ساعات',\n d: 'يوم',\n dd: '%d أيام',\n M: 'شهر',\n MM: '%d أشهر',\n y: 'سنة',\n yy: '%d سنوات',\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 12, // The week that contains Jan 12th is the first week of the year.\n },\n });\n\n return arKw;\n\n})));\n\n\n/***/ }),\n/* 340 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Arabic (Lybia) [ar-ly]\n//! author : Ali Hmer: https://github.com/kikoanis\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '1',\n '2': '2',\n '3': '3',\n '4': '4',\n '5': '5',\n '6': '6',\n '7': '7',\n '8': '8',\n '9': '9',\n '0': '0',\n },\n pluralForm = function (n) {\n return n === 0\n ? 0\n : n === 1\n ? 1\n : n === 2\n ? 2\n : n % 100 >= 3 && n % 100 <= 10\n ? 3\n : n % 100 >= 11\n ? 4\n : 5;\n },\n plurals = {\n s: [\n 'أقل من ثانية',\n 'ثانية واحدة',\n ['ثانيتان', 'ثانيتين'],\n '%d ثوان',\n '%d ثانية',\n '%d ثانية',\n ],\n m: [\n 'أقل من دقيقة',\n 'دقيقة واحدة',\n ['دقيقتان', 'دقيقتين'],\n '%d دقائق',\n '%d دقيقة',\n '%d دقيقة',\n ],\n h: [\n 'أقل من ساعة',\n 'ساعة واحدة',\n ['ساعتان', 'ساعتين'],\n '%d ساعات',\n '%d ساعة',\n '%d ساعة',\n ],\n d: [\n 'أقل من يوم',\n 'يوم واحد',\n ['يومان', 'يومين'],\n '%d أيام',\n '%d يومًا',\n '%d يوم',\n ],\n M: [\n 'أقل من شهر',\n 'شهر واحد',\n ['شهران', 'شهرين'],\n '%d أشهر',\n '%d شهرا',\n '%d شهر',\n ],\n y: [\n 'أقل من عام',\n 'عام واحد',\n ['عامان', 'عامين'],\n '%d أعوام',\n '%d عامًا',\n '%d عام',\n ],\n },\n pluralize = function (u) {\n return function (number, withoutSuffix, string, isFuture) {\n var f = pluralForm(number),\n str = plurals[u][pluralForm(number)];\n if (f === 2) {\n str = str[withoutSuffix ? 0 : 1];\n }\n return str.replace(/%d/i, number);\n };\n },\n months = [\n 'يناير',\n 'فبراير',\n 'مارس',\n 'أبريل',\n 'مايو',\n 'يونيو',\n 'يوليو',\n 'أغسطس',\n 'سبتمبر',\n 'أكتوبر',\n 'نوفمبر',\n 'ديسمبر',\n ];\n\n var arLy = moment.defineLocale('ar-ly', {\n months: months,\n monthsShort: months,\n weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),\n weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'D/\\u200FM/\\u200FYYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n meridiemParse: /ص|م/,\n isPM: function (input) {\n return 'م' === input;\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'ص';\n } else {\n return 'م';\n }\n },\n calendar: {\n sameDay: '[اليوم عند الساعة] LT',\n nextDay: '[غدًا عند الساعة] LT',\n nextWeek: 'dddd [عند الساعة] LT',\n lastDay: '[أمس عند الساعة] LT',\n lastWeek: 'dddd [عند الساعة] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'بعد %s',\n past: 'منذ %s',\n s: pluralize('s'),\n ss: pluralize('s'),\n m: pluralize('m'),\n mm: pluralize('m'),\n h: pluralize('h'),\n hh: pluralize('h'),\n d: pluralize('d'),\n dd: pluralize('d'),\n M: pluralize('M'),\n MM: pluralize('M'),\n y: pluralize('y'),\n yy: pluralize('y'),\n },\n preparse: function (string) {\n return string.replace(/،/g, ',');\n },\n postformat: function (string) {\n return string\n .replace(/\\d/g, function (match) {\n return symbolMap[match];\n })\n .replace(/,/g, '،');\n },\n week: {\n dow: 6, // Saturday is the first day of the week.\n doy: 12, // The week that contains Jan 12th is the first week of the year.\n },\n });\n\n return arLy;\n\n})));\n\n\n/***/ }),\n/* 341 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Arabic (Morocco) [ar-ma]\n//! author : ElFadili Yassine : https://github.com/ElFadiliY\n//! author : Abdel Said : https://github.com/abdelsaid\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var arMa = moment.defineLocale('ar-ma', {\n months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(\n '_'\n ),\n monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(\n '_'\n ),\n weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),\n weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[اليوم على الساعة] LT',\n nextDay: '[غدا على الساعة] LT',\n nextWeek: 'dddd [على الساعة] LT',\n lastDay: '[أمس على الساعة] LT',\n lastWeek: 'dddd [على الساعة] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'في %s',\n past: 'منذ %s',\n s: 'ثوان',\n ss: '%d ثانية',\n m: 'دقيقة',\n mm: '%d دقائق',\n h: 'ساعة',\n hh: '%d ساعات',\n d: 'يوم',\n dd: '%d أيام',\n M: 'شهر',\n MM: '%d أشهر',\n y: 'سنة',\n yy: '%d سنوات',\n },\n week: {\n dow: 6, // Saturday is the first day of the week.\n doy: 12, // The week that contains Jan 12th is the first week of the year.\n },\n });\n\n return arMa;\n\n})));\n\n\n/***/ }),\n/* 342 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Arabic (Saudi Arabia) [ar-sa]\n//! author : Suhail Alkowaileet : https://github.com/xsoh\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '١',\n '2': '٢',\n '3': '٣',\n '4': '٤',\n '5': '٥',\n '6': '٦',\n '7': '٧',\n '8': '٨',\n '9': '٩',\n '0': '٠',\n },\n numberMap = {\n '١': '1',\n '٢': '2',\n '٣': '3',\n '٤': '4',\n '٥': '5',\n '٦': '6',\n '٧': '7',\n '٨': '8',\n '٩': '9',\n '٠': '0',\n };\n\n var arSa = moment.defineLocale('ar-sa', {\n months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(\n '_'\n ),\n monthsShort: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(\n '_'\n ),\n weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),\n weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n meridiemParse: /ص|م/,\n isPM: function (input) {\n return 'م' === input;\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'ص';\n } else {\n return 'م';\n }\n },\n calendar: {\n sameDay: '[اليوم على الساعة] LT',\n nextDay: '[غدا على الساعة] LT',\n nextWeek: 'dddd [على الساعة] LT',\n lastDay: '[أمس على الساعة] LT',\n lastWeek: 'dddd [على الساعة] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'في %s',\n past: 'منذ %s',\n s: 'ثوان',\n ss: '%d ثانية',\n m: 'دقيقة',\n mm: '%d دقائق',\n h: 'ساعة',\n hh: '%d ساعات',\n d: 'يوم',\n dd: '%d أيام',\n M: 'شهر',\n MM: '%d أشهر',\n y: 'سنة',\n yy: '%d سنوات',\n },\n preparse: function (string) {\n return string\n .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {\n return numberMap[match];\n })\n .replace(/،/g, ',');\n },\n postformat: function (string) {\n return string\n .replace(/\\d/g, function (match) {\n return symbolMap[match];\n })\n .replace(/,/g, '،');\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n },\n });\n\n return arSa;\n\n})));\n\n\n/***/ }),\n/* 343 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Arabic (Tunisia) [ar-tn]\n//! author : Nader Toukabri : https://github.com/naderio\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var arTn = moment.defineLocale('ar-tn', {\n months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(\n '_'\n ),\n monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(\n '_'\n ),\n weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),\n weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[اليوم على الساعة] LT',\n nextDay: '[غدا على الساعة] LT',\n nextWeek: 'dddd [على الساعة] LT',\n lastDay: '[أمس على الساعة] LT',\n lastWeek: 'dddd [على الساعة] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'في %s',\n past: 'منذ %s',\n s: 'ثوان',\n ss: '%d ثانية',\n m: 'دقيقة',\n mm: '%d دقائق',\n h: 'ساعة',\n hh: '%d ساعات',\n d: 'يوم',\n dd: '%d أيام',\n M: 'شهر',\n MM: '%d أشهر',\n y: 'سنة',\n yy: '%d سنوات',\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return arTn;\n\n})));\n\n\n/***/ }),\n/* 344 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Azerbaijani [az]\n//! author : topchiyev : https://github.com/topchiyev\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var suffixes = {\n 1: '-inci',\n 5: '-inci',\n 8: '-inci',\n 70: '-inci',\n 80: '-inci',\n 2: '-nci',\n 7: '-nci',\n 20: '-nci',\n 50: '-nci',\n 3: '-üncü',\n 4: '-üncü',\n 100: '-üncü',\n 6: '-ncı',\n 9: '-uncu',\n 10: '-uncu',\n 30: '-uncu',\n 60: '-ıncı',\n 90: '-ıncı',\n };\n\n var az = moment.defineLocale('az', {\n months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split(\n '_'\n ),\n monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),\n weekdays: 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split(\n '_'\n ),\n weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),\n weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[bugün saat] LT',\n nextDay: '[sabah saat] LT',\n nextWeek: '[gələn həftə] dddd [saat] LT',\n lastDay: '[dünən] LT',\n lastWeek: '[keçən həftə] dddd [saat] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s sonra',\n past: '%s əvvəl',\n s: 'birneçə saniyə',\n ss: '%d saniyə',\n m: 'bir dəqiqə',\n mm: '%d dəqiqə',\n h: 'bir saat',\n hh: '%d saat',\n d: 'bir gün',\n dd: '%d gün',\n M: 'bir ay',\n MM: '%d ay',\n y: 'bir il',\n yy: '%d il',\n },\n meridiemParse: /gecə|səhər|gündüz|axşam/,\n isPM: function (input) {\n return /^(gündüz|axşam)$/.test(input);\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'gecə';\n } else if (hour < 12) {\n return 'səhər';\n } else if (hour < 17) {\n return 'gündüz';\n } else {\n return 'axşam';\n }\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,\n ordinal: function (number) {\n if (number === 0) {\n // special case for zero\n return number + '-ıncı';\n }\n var a = number % 10,\n b = (number % 100) - a,\n c = number >= 100 ? 100 : null;\n return number + (suffixes[a] || suffixes[b] || suffixes[c]);\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return az;\n\n})));\n\n\n/***/ }),\n/* 345 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Belarusian [be]\n//! author : Dmitry Demidov : https://github.com/demidov91\n//! author: Praleska: http://praleska.pro/\n//! Author : Menelion Elensúle : https://github.com/Oire\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function plural(word, num) {\n var forms = word.split('_');\n return num % 10 === 1 && num % 100 !== 11\n ? forms[0]\n : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)\n ? forms[1]\n : forms[2];\n }\n function relativeTimeWithPlural(number, withoutSuffix, key) {\n var format = {\n ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',\n mm: withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',\n hh: withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',\n dd: 'дзень_дні_дзён',\n MM: 'месяц_месяцы_месяцаў',\n yy: 'год_гады_гадоў',\n };\n if (key === 'm') {\n return withoutSuffix ? 'хвіліна' : 'хвіліну';\n } else if (key === 'h') {\n return withoutSuffix ? 'гадзіна' : 'гадзіну';\n } else {\n return number + ' ' + plural(format[key], +number);\n }\n }\n\n var be = moment.defineLocale('be', {\n months: {\n format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split(\n '_'\n ),\n standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split(\n '_'\n ),\n },\n monthsShort: 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split(\n '_'\n ),\n weekdays: {\n format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split(\n '_'\n ),\n standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split(\n '_'\n ),\n isFormat: /\\[ ?[Ууў] ?(?:мінулую|наступную)? ?\\] ?dddd/,\n },\n weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),\n weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY г.',\n LLL: 'D MMMM YYYY г., HH:mm',\n LLLL: 'dddd, D MMMM YYYY г., HH:mm',\n },\n calendar: {\n sameDay: '[Сёння ў] LT',\n nextDay: '[Заўтра ў] LT',\n lastDay: '[Учора ў] LT',\n nextWeek: function () {\n return '[У] dddd [ў] LT';\n },\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n case 3:\n case 5:\n case 6:\n return '[У мінулую] dddd [ў] LT';\n case 1:\n case 2:\n case 4:\n return '[У мінулы] dddd [ў] LT';\n }\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'праз %s',\n past: '%s таму',\n s: 'некалькі секунд',\n m: relativeTimeWithPlural,\n mm: relativeTimeWithPlural,\n h: relativeTimeWithPlural,\n hh: relativeTimeWithPlural,\n d: 'дзень',\n dd: relativeTimeWithPlural,\n M: 'месяц',\n MM: relativeTimeWithPlural,\n y: 'год',\n yy: relativeTimeWithPlural,\n },\n meridiemParse: /ночы|раніцы|дня|вечара/,\n isPM: function (input) {\n return /^(дня|вечара)$/.test(input);\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'ночы';\n } else if (hour < 12) {\n return 'раніцы';\n } else if (hour < 17) {\n return 'дня';\n } else {\n return 'вечара';\n }\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(і|ы|га)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'M':\n case 'd':\n case 'DDD':\n case 'w':\n case 'W':\n return (number % 10 === 2 || number % 10 === 3) &&\n number % 100 !== 12 &&\n number % 100 !== 13\n ? number + '-і'\n : number + '-ы';\n case 'D':\n return number + '-га';\n default:\n return number;\n }\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return be;\n\n})));\n\n\n/***/ }),\n/* 346 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Bulgarian [bg]\n//! author : Krasen Borisov : https://github.com/kraz\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var bg = moment.defineLocale('bg', {\n months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split(\n '_'\n ),\n monthsShort: 'яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),\n weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split(\n '_'\n ),\n weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'),\n weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'D.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY H:mm',\n LLLL: 'dddd, D MMMM YYYY H:mm',\n },\n calendar: {\n sameDay: '[Днес в] LT',\n nextDay: '[Утре в] LT',\n nextWeek: 'dddd [в] LT',\n lastDay: '[Вчера в] LT',\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n case 3:\n case 6:\n return '[Миналата] dddd [в] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[Миналия] dddd [в] LT';\n }\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'след %s',\n past: 'преди %s',\n s: 'няколко секунди',\n ss: '%d секунди',\n m: 'минута',\n mm: '%d минути',\n h: 'час',\n hh: '%d часа',\n d: 'ден',\n dd: '%d дена',\n M: 'месец',\n MM: '%d месеца',\n y: 'година',\n yy: '%d години',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(ев|ен|ти|ви|ри|ми)/,\n ordinal: function (number) {\n var lastDigit = number % 10,\n last2Digits = number % 100;\n if (number === 0) {\n return number + '-ев';\n } else if (last2Digits === 0) {\n return number + '-ен';\n } else if (last2Digits > 10 && last2Digits < 20) {\n return number + '-ти';\n } else if (lastDigit === 1) {\n return number + '-ви';\n } else if (lastDigit === 2) {\n return number + '-ри';\n } else if (lastDigit === 7 || lastDigit === 8) {\n return number + '-ми';\n } else {\n return number + '-ти';\n }\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return bg;\n\n})));\n\n\n/***/ }),\n/* 347 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Bambara [bm]\n//! author : Estelle Comment : https://github.com/estellecomment\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var bm = moment.defineLocale('bm', {\n months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split(\n '_'\n ),\n monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),\n weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),\n weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),\n weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'MMMM [tile] D [san] YYYY',\n LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',\n LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',\n },\n calendar: {\n sameDay: '[Bi lɛrɛ] LT',\n nextDay: '[Sini lɛrɛ] LT',\n nextWeek: 'dddd [don lɛrɛ] LT',\n lastDay: '[Kunu lɛrɛ] LT',\n lastWeek: 'dddd [tɛmɛnen lɛrɛ] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s kɔnɔ',\n past: 'a bɛ %s bɔ',\n s: 'sanga dama dama',\n ss: 'sekondi %d',\n m: 'miniti kelen',\n mm: 'miniti %d',\n h: 'lɛrɛ kelen',\n hh: 'lɛrɛ %d',\n d: 'tile kelen',\n dd: 'tile %d',\n M: 'kalo kelen',\n MM: 'kalo %d',\n y: 'san kelen',\n yy: 'san %d',\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return bm;\n\n})));\n\n\n/***/ }),\n/* 348 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Bengali [bn]\n//! author : Kaushik Gandhi : https://github.com/kaushikgandhi\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '১',\n '2': '২',\n '3': '৩',\n '4': '৪',\n '5': '৫',\n '6': '৬',\n '7': '৭',\n '8': '৮',\n '9': '৯',\n '0': '০',\n },\n numberMap = {\n '১': '1',\n '২': '2',\n '৩': '3',\n '৪': '4',\n '৫': '5',\n '৬': '6',\n '৭': '7',\n '৮': '8',\n '৯': '9',\n '০': '0',\n };\n\n var bn = moment.defineLocale('bn', {\n months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split(\n '_'\n ),\n monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split(\n '_'\n ),\n weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split(\n '_'\n ),\n weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),\n weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),\n longDateFormat: {\n LT: 'A h:mm সময়',\n LTS: 'A h:mm:ss সময়',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm সময়',\n LLLL: 'dddd, D MMMM YYYY, A h:mm সময়',\n },\n calendar: {\n sameDay: '[আজ] LT',\n nextDay: '[আগামীকাল] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[গতকাল] LT',\n lastWeek: '[গত] dddd, LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s পরে',\n past: '%s আগে',\n s: 'কয়েক সেকেন্ড',\n ss: '%d সেকেন্ড',\n m: 'এক মিনিট',\n mm: '%d মিনিট',\n h: 'এক ঘন্টা',\n hh: '%d ঘন্টা',\n d: 'এক দিন',\n dd: '%d দিন',\n M: 'এক মাস',\n MM: '%d মাস',\n y: 'এক বছর',\n yy: '%d বছর',\n },\n preparse: function (string) {\n return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (\n (meridiem === 'রাত' && hour >= 4) ||\n (meridiem === 'দুপুর' && hour < 5) ||\n meridiem === 'বিকাল'\n ) {\n return hour + 12;\n } else {\n return hour;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'রাত';\n } else if (hour < 10) {\n return 'সকাল';\n } else if (hour < 17) {\n return 'দুপুর';\n } else if (hour < 20) {\n return 'বিকাল';\n } else {\n return 'রাত';\n }\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n },\n });\n\n return bn;\n\n})));\n\n\n/***/ }),\n/* 349 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Tibetan [bo]\n//! author : Thupten N. Chakrishar : https://github.com/vajradog\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '༡',\n '2': '༢',\n '3': '༣',\n '4': '༤',\n '5': '༥',\n '6': '༦',\n '7': '༧',\n '8': '༨',\n '9': '༩',\n '0': '༠',\n },\n numberMap = {\n '༡': '1',\n '༢': '2',\n '༣': '3',\n '༤': '4',\n '༥': '5',\n '༦': '6',\n '༧': '7',\n '༨': '8',\n '༩': '9',\n '༠': '0',\n };\n\n var bo = moment.defineLocale('bo', {\n months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split(\n '_'\n ),\n monthsShort: 'ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12'.split(\n '_'\n ),\n monthsShortRegex: /^(ཟླ་\\d{1,2})/,\n monthsParseExact: true,\n weekdays: 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split(\n '_'\n ),\n weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split(\n '_'\n ),\n weekdaysMin: 'ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན'.split('_'),\n longDateFormat: {\n LT: 'A h:mm',\n LTS: 'A h:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm',\n LLLL: 'dddd, D MMMM YYYY, A h:mm',\n },\n calendar: {\n sameDay: '[དི་རིང] LT',\n nextDay: '[སང་ཉིན] LT',\n nextWeek: '[བདུན་ཕྲག་རྗེས་མ], LT',\n lastDay: '[ཁ་སང] LT',\n lastWeek: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s ལ་',\n past: '%s སྔན་ལ',\n s: 'ལམ་སང',\n ss: '%d སྐར་ཆ།',\n m: 'སྐར་མ་གཅིག',\n mm: '%d སྐར་མ',\n h: 'ཆུ་ཚོད་གཅིག',\n hh: '%d ཆུ་ཚོད',\n d: 'ཉིན་གཅིག',\n dd: '%d ཉིན་',\n M: 'ཟླ་བ་གཅིག',\n MM: '%d ཟླ་བ',\n y: 'ལོ་གཅིག',\n yy: '%d ལོ',\n },\n preparse: function (string) {\n return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (\n (meridiem === 'མཚན་མོ' && hour >= 4) ||\n (meridiem === 'ཉིན་གུང' && hour < 5) ||\n meridiem === 'དགོང་དག'\n ) {\n return hour + 12;\n } else {\n return hour;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'མཚན་མོ';\n } else if (hour < 10) {\n return 'ཞོགས་ཀས';\n } else if (hour < 17) {\n return 'ཉིན་གུང';\n } else if (hour < 20) {\n return 'དགོང་དག';\n } else {\n return 'མཚན་མོ';\n }\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n },\n });\n\n return bo;\n\n})));\n\n\n/***/ }),\n/* 350 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Breton [br]\n//! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function relativeTimeWithMutation(number, withoutSuffix, key) {\n var format = {\n mm: 'munutenn',\n MM: 'miz',\n dd: 'devezh',\n };\n return number + ' ' + mutation(format[key], number);\n }\n function specialMutationForYears(number) {\n switch (lastNumber(number)) {\n case 1:\n case 3:\n case 4:\n case 5:\n case 9:\n return number + ' bloaz';\n default:\n return number + ' vloaz';\n }\n }\n function lastNumber(number) {\n if (number > 9) {\n return lastNumber(number % 10);\n }\n return number;\n }\n function mutation(text, number) {\n if (number === 2) {\n return softMutation(text);\n }\n return text;\n }\n function softMutation(text) {\n var mutationTable = {\n m: 'v',\n b: 'v',\n d: 'z',\n };\n if (mutationTable[text.charAt(0)] === undefined) {\n return text;\n }\n return mutationTable[text.charAt(0)] + text.substring(1);\n }\n\n var br = moment.defineLocale('br', {\n months: \"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu\".split(\n '_'\n ),\n monthsShort: \"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker\".split('_'),\n weekdays: \"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn\".split('_'),\n weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),\n weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D [a viz] MMMM YYYY',\n LLL: 'D [a viz] MMMM YYYY HH:mm',\n LLLL: 'dddd, D [a viz] MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Hiziv da] LT',\n nextDay: \"[Warc'hoazh da] LT\",\n nextWeek: 'dddd [da] LT',\n lastDay: \"[Dec'h da] LT\",\n lastWeek: 'dddd [paset da] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'a-benn %s',\n past: \"%s 'zo\",\n s: 'un nebeud segondennoù',\n ss: '%d eilenn',\n m: 'ur vunutenn',\n mm: relativeTimeWithMutation,\n h: 'un eur',\n hh: '%d eur',\n d: 'un devezh',\n dd: relativeTimeWithMutation,\n M: 'ur miz',\n MM: relativeTimeWithMutation,\n y: 'ur bloaz',\n yy: specialMutationForYears,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(añ|vet)/,\n ordinal: function (number) {\n var output = number === 1 ? 'añ' : 'vet';\n return number + output;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return br;\n\n})));\n\n\n/***/ }),\n/* 351 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Bosnian [bs]\n//! author : Nedim Cholich : https://github.com/frontyard\n//! based on (hr) translation by Bojan Marković\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function translate(number, withoutSuffix, key) {\n var result = number + ' ';\n switch (key) {\n case 'ss':\n if (number === 1) {\n result += 'sekunda';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'sekunde';\n } else {\n result += 'sekundi';\n }\n return result;\n case 'm':\n return withoutSuffix ? 'jedna minuta' : 'jedne minute';\n case 'mm':\n if (number === 1) {\n result += 'minuta';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'minute';\n } else {\n result += 'minuta';\n }\n return result;\n case 'h':\n return withoutSuffix ? 'jedan sat' : 'jednog sata';\n case 'hh':\n if (number === 1) {\n result += 'sat';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'sata';\n } else {\n result += 'sati';\n }\n return result;\n case 'dd':\n if (number === 1) {\n result += 'dan';\n } else {\n result += 'dana';\n }\n return result;\n case 'MM':\n if (number === 1) {\n result += 'mjesec';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'mjeseca';\n } else {\n result += 'mjeseci';\n }\n return result;\n case 'yy':\n if (number === 1) {\n result += 'godina';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'godine';\n } else {\n result += 'godina';\n }\n return result;\n }\n }\n\n var bs = moment.defineLocale('bs', {\n months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split(\n '_'\n ),\n monthsShort: 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(\n '_'\n ),\n weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),\n weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY H:mm',\n LLLL: 'dddd, D. MMMM YYYY H:mm',\n },\n calendar: {\n sameDay: '[danas u] LT',\n nextDay: '[sutra u] LT',\n nextWeek: function () {\n switch (this.day()) {\n case 0:\n return '[u] [nedjelju] [u] LT';\n case 3:\n return '[u] [srijedu] [u] LT';\n case 6:\n return '[u] [subotu] [u] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[u] dddd [u] LT';\n }\n },\n lastDay: '[jučer u] LT',\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n case 3:\n return '[prošlu] dddd [u] LT';\n case 6:\n return '[prošle] [subote] [u] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[prošli] dddd [u] LT';\n }\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'za %s',\n past: 'prije %s',\n s: 'par sekundi',\n ss: translate,\n m: translate,\n mm: translate,\n h: translate,\n hh: translate,\n d: 'dan',\n dd: translate,\n M: 'mjesec',\n MM: translate,\n y: 'godinu',\n yy: translate,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return bs;\n\n})));\n\n\n/***/ }),\n/* 352 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Catalan [ca]\n//! author : Juan G. Hurtado : https://github.com/juanghurtado\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var ca = moment.defineLocale('ca', {\n months: {\n standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split(\n '_'\n ),\n format: \"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre\".split(\n '_'\n ),\n isFormat: /D[oD]?(\\s)+MMMM/,\n },\n monthsShort: 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split(\n '_'\n ),\n weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),\n weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM [de] YYYY',\n ll: 'D MMM YYYY',\n LLL: 'D MMMM [de] YYYY [a les] H:mm',\n lll: 'D MMM YYYY, H:mm',\n LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm',\n llll: 'ddd D MMM YYYY, H:mm',\n },\n calendar: {\n sameDay: function () {\n return '[avui a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';\n },\n nextDay: function () {\n return '[demà a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';\n },\n nextWeek: function () {\n return 'dddd [a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';\n },\n lastDay: function () {\n return '[ahir a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';\n },\n lastWeek: function () {\n return (\n '[el] dddd [passat a ' +\n (this.hours() !== 1 ? 'les' : 'la') +\n '] LT'\n );\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: \"d'aquí %s\",\n past: 'fa %s',\n s: 'uns segons',\n ss: '%d segons',\n m: 'un minut',\n mm: '%d minuts',\n h: 'una hora',\n hh: '%d hores',\n d: 'un dia',\n dd: '%d dies',\n M: 'un mes',\n MM: '%d mesos',\n y: 'un any',\n yy: '%d anys',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(r|n|t|è|a)/,\n ordinal: function (number, period) {\n var output =\n number === 1\n ? 'r'\n : number === 2\n ? 'n'\n : number === 3\n ? 'r'\n : number === 4\n ? 't'\n : 'è';\n if (period === 'w' || period === 'W') {\n output = 'a';\n }\n return number + output;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return ca;\n\n})));\n\n\n/***/ }),\n/* 353 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Czech [cs]\n//! author : petrbela : https://github.com/petrbela\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var months = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split(\n '_'\n ),\n monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'),\n monthsParse = [\n /^led/i,\n /^úno/i,\n /^bře/i,\n /^dub/i,\n /^kvě/i,\n /^(čvn|červen$|června)/i,\n /^(čvc|červenec|července)/i,\n /^srp/i,\n /^zář/i,\n /^říj/i,\n /^lis/i,\n /^pro/i,\n ],\n // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.\n // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.\n monthsRegex = /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;\n\n function plural(n) {\n return n > 1 && n < 5 && ~~(n / 10) !== 1;\n }\n function translate(number, withoutSuffix, key, isFuture) {\n var result = number + ' ';\n switch (key) {\n case 's': // a few seconds / in a few seconds / a few seconds ago\n return withoutSuffix || isFuture ? 'pár sekund' : 'pár sekundami';\n case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'sekundy' : 'sekund');\n } else {\n return result + 'sekundami';\n }\n case 'm': // a minute / in a minute / a minute ago\n return withoutSuffix ? 'minuta' : isFuture ? 'minutu' : 'minutou';\n case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'minuty' : 'minut');\n } else {\n return result + 'minutami';\n }\n case 'h': // an hour / in an hour / an hour ago\n return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';\n case 'hh': // 9 hours / in 9 hours / 9 hours ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'hodiny' : 'hodin');\n } else {\n return result + 'hodinami';\n }\n case 'd': // a day / in a day / a day ago\n return withoutSuffix || isFuture ? 'den' : 'dnem';\n case 'dd': // 9 days / in 9 days / 9 days ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'dny' : 'dní');\n } else {\n return result + 'dny';\n }\n case 'M': // a month / in a month / a month ago\n return withoutSuffix || isFuture ? 'měsíc' : 'měsícem';\n case 'MM': // 9 months / in 9 months / 9 months ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'měsíce' : 'měsíců');\n } else {\n return result + 'měsíci';\n }\n case 'y': // a year / in a year / a year ago\n return withoutSuffix || isFuture ? 'rok' : 'rokem';\n case 'yy': // 9 years / in 9 years / 9 years ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'roky' : 'let');\n } else {\n return result + 'lety';\n }\n }\n }\n\n var cs = moment.defineLocale('cs', {\n months: months,\n monthsShort: monthsShort,\n monthsRegex: monthsRegex,\n monthsShortRegex: monthsRegex,\n // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.\n // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.\n monthsStrictRegex: /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,\n monthsShortStrictRegex: /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),\n weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'),\n weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'),\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY H:mm',\n LLLL: 'dddd D. MMMM YYYY H:mm',\n l: 'D. M. YYYY',\n },\n calendar: {\n sameDay: '[dnes v] LT',\n nextDay: '[zítra v] LT',\n nextWeek: function () {\n switch (this.day()) {\n case 0:\n return '[v neděli v] LT';\n case 1:\n case 2:\n return '[v] dddd [v] LT';\n case 3:\n return '[ve středu v] LT';\n case 4:\n return '[ve čtvrtek v] LT';\n case 5:\n return '[v pátek v] LT';\n case 6:\n return '[v sobotu v] LT';\n }\n },\n lastDay: '[včera v] LT',\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n return '[minulou neděli v] LT';\n case 1:\n case 2:\n return '[minulé] dddd [v] LT';\n case 3:\n return '[minulou středu v] LT';\n case 4:\n case 5:\n return '[minulý] dddd [v] LT';\n case 6:\n return '[minulou sobotu v] LT';\n }\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'za %s',\n past: 'před %s',\n s: translate,\n ss: translate,\n m: translate,\n mm: translate,\n h: translate,\n hh: translate,\n d: translate,\n dd: translate,\n M: translate,\n MM: translate,\n y: translate,\n yy: translate,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return cs;\n\n})));\n\n\n/***/ }),\n/* 354 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Chuvash [cv]\n//! author : Anatoly Mironov : https://github.com/mirontoli\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var cv = moment.defineLocale('cv', {\n months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split(\n '_'\n ),\n monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),\n weekdays: 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split(\n '_'\n ),\n weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),\n weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD-MM-YYYY',\n LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',\n LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',\n LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',\n },\n calendar: {\n sameDay: '[Паян] LT [сехетре]',\n nextDay: '[Ыран] LT [сехетре]',\n lastDay: '[Ӗнер] LT [сехетре]',\n nextWeek: '[Ҫитес] dddd LT [сехетре]',\n lastWeek: '[Иртнӗ] dddd LT [сехетре]',\n sameElse: 'L',\n },\n relativeTime: {\n future: function (output) {\n var affix = /сехет$/i.exec(output)\n ? 'рен'\n : /ҫул$/i.exec(output)\n ? 'тан'\n : 'ран';\n return output + affix;\n },\n past: '%s каялла',\n s: 'пӗр-ик ҫеккунт',\n ss: '%d ҫеккунт',\n m: 'пӗр минут',\n mm: '%d минут',\n h: 'пӗр сехет',\n hh: '%d сехет',\n d: 'пӗр кун',\n dd: '%d кун',\n M: 'пӗр уйӑх',\n MM: '%d уйӑх',\n y: 'пӗр ҫул',\n yy: '%d ҫул',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-мӗш/,\n ordinal: '%d-мӗш',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return cv;\n\n})));\n\n\n/***/ }),\n/* 355 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Welsh [cy]\n//! author : Robert Allen : https://github.com/robgallen\n//! author : https://github.com/ryangreaves\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var cy = moment.defineLocale('cy', {\n months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split(\n '_'\n ),\n monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split(\n '_'\n ),\n weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split(\n '_'\n ),\n weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),\n weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),\n weekdaysParseExact: true,\n // time formats are the same as en-gb\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Heddiw am] LT',\n nextDay: '[Yfory am] LT',\n nextWeek: 'dddd [am] LT',\n lastDay: '[Ddoe am] LT',\n lastWeek: 'dddd [diwethaf am] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'mewn %s',\n past: '%s yn ôl',\n s: 'ychydig eiliadau',\n ss: '%d eiliad',\n m: 'munud',\n mm: '%d munud',\n h: 'awr',\n hh: '%d awr',\n d: 'diwrnod',\n dd: '%d diwrnod',\n M: 'mis',\n MM: '%d mis',\n y: 'blwyddyn',\n yy: '%d flynedd',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,\n // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh\n ordinal: function (number) {\n var b = number,\n output = '',\n lookup = [\n '',\n 'af',\n 'il',\n 'ydd',\n 'ydd',\n 'ed',\n 'ed',\n 'ed',\n 'fed',\n 'fed',\n 'fed', // 1af to 10fed\n 'eg',\n 'fed',\n 'eg',\n 'eg',\n 'fed',\n 'eg',\n 'eg',\n 'fed',\n 'eg',\n 'fed', // 11eg to 20fed\n ];\n if (b > 20) {\n if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {\n output = 'fed'; // not 30ain, 70ain or 90ain\n } else {\n output = 'ain';\n }\n } else if (b > 0) {\n output = lookup[b];\n }\n return number + output;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return cy;\n\n})));\n\n\n/***/ }),\n/* 356 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Danish [da]\n//! author : Ulrik Nielsen : https://github.com/mrbase\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var da = moment.defineLocale('da', {\n months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split(\n '_'\n ),\n monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),\n weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),\n weekdaysShort: 'søn_man_tir_ons_tor_fre_lør'.split('_'),\n weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY HH:mm',\n LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm',\n },\n calendar: {\n sameDay: '[i dag kl.] LT',\n nextDay: '[i morgen kl.] LT',\n nextWeek: 'på dddd [kl.] LT',\n lastDay: '[i går kl.] LT',\n lastWeek: '[i] dddd[s kl.] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'om %s',\n past: '%s siden',\n s: 'få sekunder',\n ss: '%d sekunder',\n m: 'et minut',\n mm: '%d minutter',\n h: 'en time',\n hh: '%d timer',\n d: 'en dag',\n dd: '%d dage',\n M: 'en måned',\n MM: '%d måneder',\n y: 'et år',\n yy: '%d år',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return da;\n\n})));\n\n\n/***/ }),\n/* 357 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : German [de]\n//! author : lluchs : https://github.com/lluchs\n//! author: Menelion Elensúle: https://github.com/Oire\n//! author : Mikolaj Dadela : https://github.com/mik01aj\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var format = {\n m: ['eine Minute', 'einer Minute'],\n h: ['eine Stunde', 'einer Stunde'],\n d: ['ein Tag', 'einem Tag'],\n dd: [number + ' Tage', number + ' Tagen'],\n M: ['ein Monat', 'einem Monat'],\n MM: [number + ' Monate', number + ' Monaten'],\n y: ['ein Jahr', 'einem Jahr'],\n yy: [number + ' Jahre', number + ' Jahren'],\n };\n return withoutSuffix ? format[key][0] : format[key][1];\n }\n\n var de = moment.defineLocale('de', {\n months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(\n '_'\n ),\n monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(\n '_'\n ),\n weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),\n weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY HH:mm',\n LLLL: 'dddd, D. MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[heute um] LT [Uhr]',\n sameElse: 'L',\n nextDay: '[morgen um] LT [Uhr]',\n nextWeek: 'dddd [um] LT [Uhr]',\n lastDay: '[gestern um] LT [Uhr]',\n lastWeek: '[letzten] dddd [um] LT [Uhr]',\n },\n relativeTime: {\n future: 'in %s',\n past: 'vor %s',\n s: 'ein paar Sekunden',\n ss: '%d Sekunden',\n m: processRelativeTime,\n mm: '%d Minuten',\n h: processRelativeTime,\n hh: '%d Stunden',\n d: processRelativeTime,\n dd: processRelativeTime,\n M: processRelativeTime,\n MM: processRelativeTime,\n y: processRelativeTime,\n yy: processRelativeTime,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return de;\n\n})));\n\n\n/***/ }),\n/* 358 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : German (Austria) [de-at]\n//! author : lluchs : https://github.com/lluchs\n//! author: Menelion Elensúle: https://github.com/Oire\n//! author : Martin Groller : https://github.com/MadMG\n//! author : Mikolaj Dadela : https://github.com/mik01aj\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var format = {\n m: ['eine Minute', 'einer Minute'],\n h: ['eine Stunde', 'einer Stunde'],\n d: ['ein Tag', 'einem Tag'],\n dd: [number + ' Tage', number + ' Tagen'],\n M: ['ein Monat', 'einem Monat'],\n MM: [number + ' Monate', number + ' Monaten'],\n y: ['ein Jahr', 'einem Jahr'],\n yy: [number + ' Jahre', number + ' Jahren'],\n };\n return withoutSuffix ? format[key][0] : format[key][1];\n }\n\n var deAt = moment.defineLocale('de-at', {\n months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(\n '_'\n ),\n monthsShort: 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(\n '_'\n ),\n weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),\n weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY HH:mm',\n LLLL: 'dddd, D. MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[heute um] LT [Uhr]',\n sameElse: 'L',\n nextDay: '[morgen um] LT [Uhr]',\n nextWeek: 'dddd [um] LT [Uhr]',\n lastDay: '[gestern um] LT [Uhr]',\n lastWeek: '[letzten] dddd [um] LT [Uhr]',\n },\n relativeTime: {\n future: 'in %s',\n past: 'vor %s',\n s: 'ein paar Sekunden',\n ss: '%d Sekunden',\n m: processRelativeTime,\n mm: '%d Minuten',\n h: processRelativeTime,\n hh: '%d Stunden',\n d: processRelativeTime,\n dd: processRelativeTime,\n M: processRelativeTime,\n MM: processRelativeTime,\n y: processRelativeTime,\n yy: processRelativeTime,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return deAt;\n\n})));\n\n\n/***/ }),\n/* 359 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : German (Switzerland) [de-ch]\n//! author : sschueller : https://github.com/sschueller\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var format = {\n m: ['eine Minute', 'einer Minute'],\n h: ['eine Stunde', 'einer Stunde'],\n d: ['ein Tag', 'einem Tag'],\n dd: [number + ' Tage', number + ' Tagen'],\n M: ['ein Monat', 'einem Monat'],\n MM: [number + ' Monate', number + ' Monaten'],\n y: ['ein Jahr', 'einem Jahr'],\n yy: [number + ' Jahre', number + ' Jahren'],\n };\n return withoutSuffix ? format[key][0] : format[key][1];\n }\n\n var deCh = moment.defineLocale('de-ch', {\n months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(\n '_'\n ),\n monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(\n '_'\n ),\n weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),\n weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY HH:mm',\n LLLL: 'dddd, D. MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[heute um] LT [Uhr]',\n sameElse: 'L',\n nextDay: '[morgen um] LT [Uhr]',\n nextWeek: 'dddd [um] LT [Uhr]',\n lastDay: '[gestern um] LT [Uhr]',\n lastWeek: '[letzten] dddd [um] LT [Uhr]',\n },\n relativeTime: {\n future: 'in %s',\n past: 'vor %s',\n s: 'ein paar Sekunden',\n ss: '%d Sekunden',\n m: processRelativeTime,\n mm: '%d Minuten',\n h: processRelativeTime,\n hh: '%d Stunden',\n d: processRelativeTime,\n dd: processRelativeTime,\n M: processRelativeTime,\n MM: processRelativeTime,\n y: processRelativeTime,\n yy: processRelativeTime,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return deCh;\n\n})));\n\n\n/***/ }),\n/* 360 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Maldivian [dv]\n//! author : Jawish Hameed : https://github.com/jawish\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var months = [\n 'ޖެނުއަރީ',\n 'ފެބްރުއަރީ',\n 'މާރިޗު',\n 'އޭޕްރީލު',\n 'މޭ',\n 'ޖޫން',\n 'ޖުލައި',\n 'އޯގަސްޓު',\n 'ސެޕްޓެމްބަރު',\n 'އޮކްޓޯބަރު',\n 'ނޮވެމްބަރު',\n 'ޑިސެމްބަރު',\n ],\n weekdays = [\n 'އާދިއްތަ',\n 'ހޯމަ',\n 'އަންގާރަ',\n 'ބުދަ',\n 'ބުރާސްފަތި',\n 'ހުކުރު',\n 'ހޮނިހިރު',\n ];\n\n var dv = moment.defineLocale('dv', {\n months: months,\n monthsShort: months,\n weekdays: weekdays,\n weekdaysShort: weekdays,\n weekdaysMin: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'D/M/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n meridiemParse: /މކ|މފ/,\n isPM: function (input) {\n return 'މފ' === input;\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'މކ';\n } else {\n return 'މފ';\n }\n },\n calendar: {\n sameDay: '[މިއަދު] LT',\n nextDay: '[މާދަމާ] LT',\n nextWeek: 'dddd LT',\n lastDay: '[އިއްޔެ] LT',\n lastWeek: '[ފާއިތުވި] dddd LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'ތެރޭގައި %s',\n past: 'ކުރިން %s',\n s: 'ސިކުންތުކޮޅެއް',\n ss: 'd% ސިކުންތު',\n m: 'މިނިޓެއް',\n mm: 'މިނިޓު %d',\n h: 'ގަޑިއިރެއް',\n hh: 'ގަޑިއިރު %d',\n d: 'ދުވަހެއް',\n dd: 'ދުވަސް %d',\n M: 'މަހެއް',\n MM: 'މަސް %d',\n y: 'އަހަރެއް',\n yy: 'އަހަރު %d',\n },\n preparse: function (string) {\n return string.replace(/،/g, ',');\n },\n postformat: function (string) {\n return string.replace(/,/g, '،');\n },\n week: {\n dow: 7, // Sunday is the first day of the week.\n doy: 12, // The week that contains Jan 12th is the first week of the year.\n },\n });\n\n return dv;\n\n})));\n\n\n/***/ }),\n/* 361 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Greek [el]\n//! author : Aggelos Karalias : https://github.com/mehiel\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function isFunction(input) {\n return (\n (typeof Function !== 'undefined' && input instanceof Function) ||\n Object.prototype.toString.call(input) === '[object Function]'\n );\n }\n\n var el = moment.defineLocale('el', {\n monthsNominativeEl: 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split(\n '_'\n ),\n monthsGenitiveEl: 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split(\n '_'\n ),\n months: function (momentToFormat, format) {\n if (!momentToFormat) {\n return this._monthsNominativeEl;\n } else if (\n typeof format === 'string' &&\n /D/.test(format.substring(0, format.indexOf('MMMM')))\n ) {\n // if there is a day number before 'MMMM'\n return this._monthsGenitiveEl[momentToFormat.month()];\n } else {\n return this._monthsNominativeEl[momentToFormat.month()];\n }\n },\n monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),\n weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split(\n '_'\n ),\n weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),\n weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),\n meridiem: function (hours, minutes, isLower) {\n if (hours > 11) {\n return isLower ? 'μμ' : 'ΜΜ';\n } else {\n return isLower ? 'πμ' : 'ΠΜ';\n }\n },\n isPM: function (input) {\n return (input + '').toLowerCase()[0] === 'μ';\n },\n meridiemParse: /[ΠΜ]\\.?Μ?\\.?/i,\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY h:mm A',\n LLLL: 'dddd, D MMMM YYYY h:mm A',\n },\n calendarEl: {\n sameDay: '[Σήμερα {}] LT',\n nextDay: '[Αύριο {}] LT',\n nextWeek: 'dddd [{}] LT',\n lastDay: '[Χθες {}] LT',\n lastWeek: function () {\n switch (this.day()) {\n case 6:\n return '[το προηγούμενο] dddd [{}] LT';\n default:\n return '[την προηγούμενη] dddd [{}] LT';\n }\n },\n sameElse: 'L',\n },\n calendar: function (key, mom) {\n var output = this._calendarEl[key],\n hours = mom && mom.hours();\n if (isFunction(output)) {\n output = output.apply(mom);\n }\n return output.replace('{}', hours % 12 === 1 ? 'στη' : 'στις');\n },\n relativeTime: {\n future: 'σε %s',\n past: '%s πριν',\n s: 'λίγα δευτερόλεπτα',\n ss: '%d δευτερόλεπτα',\n m: 'ένα λεπτό',\n mm: '%d λεπτά',\n h: 'μία ώρα',\n hh: '%d ώρες',\n d: 'μία μέρα',\n dd: '%d μέρες',\n M: 'ένας μήνας',\n MM: '%d μήνες',\n y: 'ένας χρόνος',\n yy: '%d χρόνια',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}η/,\n ordinal: '%dη',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4st is the first week of the year.\n },\n });\n\n return el;\n\n})));\n\n\n/***/ }),\n/* 362 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : English (Australia) [en-au]\n//! author : Jared Morse : https://github.com/jarcoal\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var enAu = moment.defineLocale('en-au', {\n months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n '_'\n ),\n monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n '_'\n ),\n weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY h:mm A',\n LLLL: 'dddd, D MMMM YYYY h:mm A',\n },\n calendar: {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function (number) {\n var b = number % 10,\n output =\n ~~((number % 100) / 10) === 1\n ? 'th'\n : b === 1\n ? 'st'\n : b === 2\n ? 'nd'\n : b === 3\n ? 'rd'\n : 'th';\n return number + output;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return enAu;\n\n})));\n\n\n/***/ }),\n/* 363 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : English (Canada) [en-ca]\n//! author : Jonathan Abourbih : https://github.com/jonbca\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var enCa = moment.defineLocale('en-ca', {\n months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n '_'\n ),\n monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n '_'\n ),\n weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'YYYY-MM-DD',\n LL: 'MMMM D, YYYY',\n LLL: 'MMMM D, YYYY h:mm A',\n LLLL: 'dddd, MMMM D, YYYY h:mm A',\n },\n calendar: {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function (number) {\n var b = number % 10,\n output =\n ~~((number % 100) / 10) === 1\n ? 'th'\n : b === 1\n ? 'st'\n : b === 2\n ? 'nd'\n : b === 3\n ? 'rd'\n : 'th';\n return number + output;\n },\n });\n\n return enCa;\n\n})));\n\n\n/***/ }),\n/* 364 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : English (Ireland) [en-ie]\n//! author : Chris Cartlidge : https://github.com/chriscartlidge\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var enIe = moment.defineLocale('en-ie', {\n months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n '_'\n ),\n monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n '_'\n ),\n weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function (number) {\n var b = number % 10,\n output =\n ~~((number % 100) / 10) === 1\n ? 'th'\n : b === 1\n ? 'st'\n : b === 2\n ? 'nd'\n : b === 3\n ? 'rd'\n : 'th';\n return number + output;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return enIe;\n\n})));\n\n\n/***/ }),\n/* 365 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : English (Israel) [en-il]\n//! author : Chris Gedrim : https://github.com/chrisgedrim\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var enIl = moment.defineLocale('en-il', {\n months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n '_'\n ),\n monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n '_'\n ),\n weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function (number) {\n var b = number % 10,\n output =\n ~~((number % 100) / 10) === 1\n ? 'th'\n : b === 1\n ? 'st'\n : b === 2\n ? 'nd'\n : b === 3\n ? 'rd'\n : 'th';\n return number + output;\n },\n });\n\n return enIl;\n\n})));\n\n\n/***/ }),\n/* 366 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : English (India) [en-in]\n//! author : Jatin Agrawal : https://github.com/jatinag22\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var enIn = moment.defineLocale('en-in', {\n months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n '_'\n ),\n monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n '_'\n ),\n weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY h:mm A',\n LLLL: 'dddd, D MMMM YYYY h:mm A',\n },\n calendar: {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function (number) {\n var b = number % 10,\n output =\n ~~((number % 100) / 10) === 1\n ? 'th'\n : b === 1\n ? 'st'\n : b === 2\n ? 'nd'\n : b === 3\n ? 'rd'\n : 'th';\n return number + output;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return enIn;\n\n})));\n\n\n/***/ }),\n/* 367 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : English (New Zealand) [en-nz]\n//! author : Luke McGregor : https://github.com/lukemcgregor\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var enNz = moment.defineLocale('en-nz', {\n months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n '_'\n ),\n monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n '_'\n ),\n weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY h:mm A',\n LLLL: 'dddd, D MMMM YYYY h:mm A',\n },\n calendar: {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function (number) {\n var b = number % 10,\n output =\n ~~((number % 100) / 10) === 1\n ? 'th'\n : b === 1\n ? 'st'\n : b === 2\n ? 'nd'\n : b === 3\n ? 'rd'\n : 'th';\n return number + output;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return enNz;\n\n})));\n\n\n/***/ }),\n/* 368 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : English (Singapore) [en-sg]\n//! author : Matthew Castrillon-Madrigal : https://github.com/techdimension\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var enSg = moment.defineLocale('en-sg', {\n months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n '_'\n ),\n monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n '_'\n ),\n weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function (number) {\n var b = number % 10,\n output =\n ~~((number % 100) / 10) === 1\n ? 'th'\n : b === 1\n ? 'st'\n : b === 2\n ? 'nd'\n : b === 3\n ? 'rd'\n : 'th';\n return number + output;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return enSg;\n\n})));\n\n\n/***/ }),\n/* 369 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Esperanto [eo]\n//! author : Colin Dean : https://github.com/colindean\n//! author : Mia Nordentoft Imperatori : https://github.com/miestasmia\n//! comment : miestasmia corrected the translation by colindean\n//! comment : Vivakvo corrected the translation by colindean and miestasmia\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var eo = moment.defineLocale('eo', {\n months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split(\n '_'\n ),\n monthsShort: 'jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec'.split('_'),\n weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'),\n weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'),\n weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY-MM-DD',\n LL: '[la] D[-an de] MMMM, YYYY',\n LLL: '[la] D[-an de] MMMM, YYYY HH:mm',\n LLLL: 'dddd[n], [la] D[-an de] MMMM, YYYY HH:mm',\n llll: 'ddd, [la] D[-an de] MMM, YYYY HH:mm',\n },\n meridiemParse: /[ap]\\.t\\.m/i,\n isPM: function (input) {\n return input.charAt(0).toLowerCase() === 'p';\n },\n meridiem: function (hours, minutes, isLower) {\n if (hours > 11) {\n return isLower ? 'p.t.m.' : 'P.T.M.';\n } else {\n return isLower ? 'a.t.m.' : 'A.T.M.';\n }\n },\n calendar: {\n sameDay: '[Hodiaŭ je] LT',\n nextDay: '[Morgaŭ je] LT',\n nextWeek: 'dddd[n je] LT',\n lastDay: '[Hieraŭ je] LT',\n lastWeek: '[pasintan] dddd[n je] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'post %s',\n past: 'antaŭ %s',\n s: 'kelkaj sekundoj',\n ss: '%d sekundoj',\n m: 'unu minuto',\n mm: '%d minutoj',\n h: 'unu horo',\n hh: '%d horoj',\n d: 'unu tago', //ne 'diurno', ĉar estas uzita por proksimumo\n dd: '%d tagoj',\n M: 'unu monato',\n MM: '%d monatoj',\n y: 'unu jaro',\n yy: '%d jaroj',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}a/,\n ordinal: '%da',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return eo;\n\n})));\n\n\n/***/ }),\n/* 370 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Spanish [es]\n//! author : Julio Napurí : https://github.com/julionc\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(\n '_'\n ),\n monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),\n monthsParse = [\n /^ene/i,\n /^feb/i,\n /^mar/i,\n /^abr/i,\n /^may/i,\n /^jun/i,\n /^jul/i,\n /^ago/i,\n /^sep/i,\n /^oct/i,\n /^nov/i,\n /^dic/i,\n ],\n monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i;\n\n var es = moment.defineLocale('es', {\n months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(\n '_'\n ),\n monthsShort: function (m, format) {\n if (!m) {\n return monthsShortDot;\n } else if (/-MMM-/.test(format)) {\n return monthsShort[m.month()];\n } else {\n return monthsShortDot[m.month()];\n }\n },\n monthsRegex: monthsRegex,\n monthsShortRegex: monthsRegex,\n monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,\n monthsShortStrictRegex: /^(ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i,\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),\n weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),\n weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D [de] MMMM [de] YYYY',\n LLL: 'D [de] MMMM [de] YYYY H:mm',\n LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',\n },\n calendar: {\n sameDay: function () {\n return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n nextDay: function () {\n return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n nextWeek: function () {\n return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n lastDay: function () {\n return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n lastWeek: function () {\n return (\n '[el] dddd [pasado a la' +\n (this.hours() !== 1 ? 's' : '') +\n '] LT'\n );\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'en %s',\n past: 'hace %s',\n s: 'unos segundos',\n ss: '%d segundos',\n m: 'un minuto',\n mm: '%d minutos',\n h: 'una hora',\n hh: '%d horas',\n d: 'un día',\n dd: '%d días',\n M: 'un mes',\n MM: '%d meses',\n y: 'un año',\n yy: '%d años',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n invalidDate: 'Fecha invalida',\n });\n\n return es;\n\n})));\n\n\n/***/ }),\n/* 371 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Spanish (Dominican Republic) [es-do]\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(\n '_'\n ),\n monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),\n monthsParse = [\n /^ene/i,\n /^feb/i,\n /^mar/i,\n /^abr/i,\n /^may/i,\n /^jun/i,\n /^jul/i,\n /^ago/i,\n /^sep/i,\n /^oct/i,\n /^nov/i,\n /^dic/i,\n ],\n monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i;\n\n var esDo = moment.defineLocale('es-do', {\n months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(\n '_'\n ),\n monthsShort: function (m, format) {\n if (!m) {\n return monthsShortDot;\n } else if (/-MMM-/.test(format)) {\n return monthsShort[m.month()];\n } else {\n return monthsShortDot[m.month()];\n }\n },\n monthsRegex: monthsRegex,\n monthsShortRegex: monthsRegex,\n monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,\n monthsShortStrictRegex: /^(ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i,\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),\n weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),\n weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'DD/MM/YYYY',\n LL: 'D [de] MMMM [de] YYYY',\n LLL: 'D [de] MMMM [de] YYYY h:mm A',\n LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A',\n },\n calendar: {\n sameDay: function () {\n return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n nextDay: function () {\n return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n nextWeek: function () {\n return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n lastDay: function () {\n return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n lastWeek: function () {\n return (\n '[el] dddd [pasado a la' +\n (this.hours() !== 1 ? 's' : '') +\n '] LT'\n );\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'en %s',\n past: 'hace %s',\n s: 'unos segundos',\n ss: '%d segundos',\n m: 'un minuto',\n mm: '%d minutos',\n h: 'una hora',\n hh: '%d horas',\n d: 'un día',\n dd: '%d días',\n M: 'un mes',\n MM: '%d meses',\n y: 'un año',\n yy: '%d años',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return esDo;\n\n})));\n\n\n/***/ }),\n/* 372 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Spanish (United States) [es-us]\n//! author : bustta : https://github.com/bustta\n//! author : chrisrodz : https://github.com/chrisrodz\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(\n '_'\n ),\n monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),\n monthsParse = [\n /^ene/i,\n /^feb/i,\n /^mar/i,\n /^abr/i,\n /^may/i,\n /^jun/i,\n /^jul/i,\n /^ago/i,\n /^sep/i,\n /^oct/i,\n /^nov/i,\n /^dic/i,\n ],\n monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i;\n\n var esUs = moment.defineLocale('es-us', {\n months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(\n '_'\n ),\n monthsShort: function (m, format) {\n if (!m) {\n return monthsShortDot;\n } else if (/-MMM-/.test(format)) {\n return monthsShort[m.month()];\n } else {\n return monthsShortDot[m.month()];\n }\n },\n monthsRegex: monthsRegex,\n monthsShortRegex: monthsRegex,\n monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,\n monthsShortStrictRegex: /^(ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i,\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),\n weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),\n weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'MM/DD/YYYY',\n LL: 'D [de] MMMM [de] YYYY',\n LLL: 'D [de] MMMM [de] YYYY h:mm A',\n LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A',\n },\n calendar: {\n sameDay: function () {\n return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n nextDay: function () {\n return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n nextWeek: function () {\n return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n lastDay: function () {\n return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n lastWeek: function () {\n return (\n '[el] dddd [pasado a la' +\n (this.hours() !== 1 ? 's' : '') +\n '] LT'\n );\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'en %s',\n past: 'hace %s',\n s: 'unos segundos',\n ss: '%d segundos',\n m: 'un minuto',\n mm: '%d minutos',\n h: 'una hora',\n hh: '%d horas',\n d: 'un día',\n dd: '%d días',\n M: 'un mes',\n MM: '%d meses',\n y: 'un año',\n yy: '%d años',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n },\n });\n\n return esUs;\n\n})));\n\n\n/***/ }),\n/* 373 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Estonian [et]\n//! author : Henry Kehlmann : https://github.com/madhenry\n//! improvements : Illimar Tambek : https://github.com/ragulka\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var format = {\n s: ['mõne sekundi', 'mõni sekund', 'paar sekundit'],\n ss: [number + 'sekundi', number + 'sekundit'],\n m: ['ühe minuti', 'üks minut'],\n mm: [number + ' minuti', number + ' minutit'],\n h: ['ühe tunni', 'tund aega', 'üks tund'],\n hh: [number + ' tunni', number + ' tundi'],\n d: ['ühe päeva', 'üks päev'],\n M: ['kuu aja', 'kuu aega', 'üks kuu'],\n MM: [number + ' kuu', number + ' kuud'],\n y: ['ühe aasta', 'aasta', 'üks aasta'],\n yy: [number + ' aasta', number + ' aastat'],\n };\n if (withoutSuffix) {\n return format[key][2] ? format[key][2] : format[key][1];\n }\n return isFuture ? format[key][0] : format[key][1];\n }\n\n var et = moment.defineLocale('et', {\n months: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split(\n '_'\n ),\n monthsShort: 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split(\n '_'\n ),\n weekdays: 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split(\n '_'\n ),\n weekdaysShort: 'P_E_T_K_N_R_L'.split('_'),\n weekdaysMin: 'P_E_T_K_N_R_L'.split('_'),\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY H:mm',\n LLLL: 'dddd, D. MMMM YYYY H:mm',\n },\n calendar: {\n sameDay: '[Täna,] LT',\n nextDay: '[Homme,] LT',\n nextWeek: '[Järgmine] dddd LT',\n lastDay: '[Eile,] LT',\n lastWeek: '[Eelmine] dddd LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s pärast',\n past: '%s tagasi',\n s: processRelativeTime,\n ss: processRelativeTime,\n m: processRelativeTime,\n mm: processRelativeTime,\n h: processRelativeTime,\n hh: processRelativeTime,\n d: processRelativeTime,\n dd: '%d päeva',\n M: processRelativeTime,\n MM: processRelativeTime,\n y: processRelativeTime,\n yy: processRelativeTime,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return et;\n\n})));\n\n\n/***/ }),\n/* 374 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Basque [eu]\n//! author : Eneko Illarramendi : https://github.com/eillarra\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var eu = moment.defineLocale('eu', {\n months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split(\n '_'\n ),\n monthsShort: 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split(\n '_'\n ),\n weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'),\n weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY-MM-DD',\n LL: 'YYYY[ko] MMMM[ren] D[a]',\n LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm',\n LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',\n l: 'YYYY-M-D',\n ll: 'YYYY[ko] MMM D[a]',\n lll: 'YYYY[ko] MMM D[a] HH:mm',\n llll: 'ddd, YYYY[ko] MMM D[a] HH:mm',\n },\n calendar: {\n sameDay: '[gaur] LT[etan]',\n nextDay: '[bihar] LT[etan]',\n nextWeek: 'dddd LT[etan]',\n lastDay: '[atzo] LT[etan]',\n lastWeek: '[aurreko] dddd LT[etan]',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s barru',\n past: 'duela %s',\n s: 'segundo batzuk',\n ss: '%d segundo',\n m: 'minutu bat',\n mm: '%d minutu',\n h: 'ordu bat',\n hh: '%d ordu',\n d: 'egun bat',\n dd: '%d egun',\n M: 'hilabete bat',\n MM: '%d hilabete',\n y: 'urte bat',\n yy: '%d urte',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return eu;\n\n})));\n\n\n/***/ }),\n/* 375 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Persian [fa]\n//! author : Ebrahim Byagowi : https://github.com/ebraminio\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '۱',\n '2': '۲',\n '3': '۳',\n '4': '۴',\n '5': '۵',\n '6': '۶',\n '7': '۷',\n '8': '۸',\n '9': '۹',\n '0': '۰',\n },\n numberMap = {\n '۱': '1',\n '۲': '2',\n '۳': '3',\n '۴': '4',\n '۵': '5',\n '۶': '6',\n '۷': '7',\n '۸': '8',\n '۹': '9',\n '۰': '0',\n };\n\n var fa = moment.defineLocale('fa', {\n months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split(\n '_'\n ),\n monthsShort: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split(\n '_'\n ),\n weekdays: 'یک\\u200cشنبه_دوشنبه_سه\\u200cشنبه_چهارشنبه_پنج\\u200cشنبه_جمعه_شنبه'.split(\n '_'\n ),\n weekdaysShort: 'یک\\u200cشنبه_دوشنبه_سه\\u200cشنبه_چهارشنبه_پنج\\u200cشنبه_جمعه_شنبه'.split(\n '_'\n ),\n weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n meridiemParse: /قبل از ظهر|بعد از ظهر/,\n isPM: function (input) {\n return /بعد از ظهر/.test(input);\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'قبل از ظهر';\n } else {\n return 'بعد از ظهر';\n }\n },\n calendar: {\n sameDay: '[امروز ساعت] LT',\n nextDay: '[فردا ساعت] LT',\n nextWeek: 'dddd [ساعت] LT',\n lastDay: '[دیروز ساعت] LT',\n lastWeek: 'dddd [پیش] [ساعت] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'در %s',\n past: '%s پیش',\n s: 'چند ثانیه',\n ss: '%d ثانیه',\n m: 'یک دقیقه',\n mm: '%d دقیقه',\n h: 'یک ساعت',\n hh: '%d ساعت',\n d: 'یک روز',\n dd: '%d روز',\n M: 'یک ماه',\n MM: '%d ماه',\n y: 'یک سال',\n yy: '%d سال',\n },\n preparse: function (string) {\n return string\n .replace(/[۰-۹]/g, function (match) {\n return numberMap[match];\n })\n .replace(/،/g, ',');\n },\n postformat: function (string) {\n return string\n .replace(/\\d/g, function (match) {\n return symbolMap[match];\n })\n .replace(/,/g, '،');\n },\n dayOfMonthOrdinalParse: /\\d{1,2}م/,\n ordinal: '%dم',\n week: {\n dow: 6, // Saturday is the first day of the week.\n doy: 12, // The week that contains Jan 12th is the first week of the year.\n },\n });\n\n return fa;\n\n})));\n\n\n/***/ }),\n/* 376 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Finnish [fi]\n//! author : Tarmo Aidantausta : https://github.com/bleadof\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(\n ' '\n ),\n numbersFuture = [\n 'nolla',\n 'yhden',\n 'kahden',\n 'kolmen',\n 'neljän',\n 'viiden',\n 'kuuden',\n numbersPast[7],\n numbersPast[8],\n numbersPast[9],\n ];\n function translate(number, withoutSuffix, key, isFuture) {\n var result = '';\n switch (key) {\n case 's':\n return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';\n case 'ss':\n return isFuture ? 'sekunnin' : 'sekuntia';\n case 'm':\n return isFuture ? 'minuutin' : 'minuutti';\n case 'mm':\n result = isFuture ? 'minuutin' : 'minuuttia';\n break;\n case 'h':\n return isFuture ? 'tunnin' : 'tunti';\n case 'hh':\n result = isFuture ? 'tunnin' : 'tuntia';\n break;\n case 'd':\n return isFuture ? 'päivän' : 'päivä';\n case 'dd':\n result = isFuture ? 'päivän' : 'päivää';\n break;\n case 'M':\n return isFuture ? 'kuukauden' : 'kuukausi';\n case 'MM':\n result = isFuture ? 'kuukauden' : 'kuukautta';\n break;\n case 'y':\n return isFuture ? 'vuoden' : 'vuosi';\n case 'yy':\n result = isFuture ? 'vuoden' : 'vuotta';\n break;\n }\n result = verbalNumber(number, isFuture) + ' ' + result;\n return result;\n }\n function verbalNumber(number, isFuture) {\n return number < 10\n ? isFuture\n ? numbersFuture[number]\n : numbersPast[number]\n : number;\n }\n\n var fi = moment.defineLocale('fi', {\n months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split(\n '_'\n ),\n monthsShort: 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split(\n '_'\n ),\n weekdays: 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split(\n '_'\n ),\n weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'),\n weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'),\n longDateFormat: {\n LT: 'HH.mm',\n LTS: 'HH.mm.ss',\n L: 'DD.MM.YYYY',\n LL: 'Do MMMM[ta] YYYY',\n LLL: 'Do MMMM[ta] YYYY, [klo] HH.mm',\n LLLL: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',\n l: 'D.M.YYYY',\n ll: 'Do MMM YYYY',\n lll: 'Do MMM YYYY, [klo] HH.mm',\n llll: 'ddd, Do MMM YYYY, [klo] HH.mm',\n },\n calendar: {\n sameDay: '[tänään] [klo] LT',\n nextDay: '[huomenna] [klo] LT',\n nextWeek: 'dddd [klo] LT',\n lastDay: '[eilen] [klo] LT',\n lastWeek: '[viime] dddd[na] [klo] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s päästä',\n past: '%s sitten',\n s: translate,\n ss: translate,\n m: translate,\n mm: translate,\n h: translate,\n hh: translate,\n d: translate,\n dd: translate,\n M: translate,\n MM: translate,\n y: translate,\n yy: translate,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return fi;\n\n})));\n\n\n/***/ }),\n/* 377 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Filipino [fil]\n//! author : Dan Hagman : https://github.com/hagmandan\n//! author : Matthew Co : https://github.com/matthewdeeco\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var fil = moment.defineLocale('fil', {\n months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split(\n '_'\n ),\n monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),\n weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split(\n '_'\n ),\n weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),\n weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'MM/D/YYYY',\n LL: 'MMMM D, YYYY',\n LLL: 'MMMM D, YYYY HH:mm',\n LLLL: 'dddd, MMMM DD, YYYY HH:mm',\n },\n calendar: {\n sameDay: 'LT [ngayong araw]',\n nextDay: '[Bukas ng] LT',\n nextWeek: 'LT [sa susunod na] dddd',\n lastDay: 'LT [kahapon]',\n lastWeek: 'LT [noong nakaraang] dddd',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'sa loob ng %s',\n past: '%s ang nakalipas',\n s: 'ilang segundo',\n ss: '%d segundo',\n m: 'isang minuto',\n mm: '%d minuto',\n h: 'isang oras',\n hh: '%d oras',\n d: 'isang araw',\n dd: '%d araw',\n M: 'isang buwan',\n MM: '%d buwan',\n y: 'isang taon',\n yy: '%d taon',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}/,\n ordinal: function (number) {\n return number;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return fil;\n\n})));\n\n\n/***/ }),\n/* 378 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Faroese [fo]\n//! author : Ragnar Johannesen : https://github.com/ragnar123\n//! author : Kristian Sakarisson : https://github.com/sakarisson\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var fo = moment.defineLocale('fo', {\n months: 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split(\n '_'\n ),\n monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),\n weekdays: 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split(\n '_'\n ),\n weekdaysShort: 'sun_mán_týs_mik_hós_frí_ley'.split('_'),\n weekdaysMin: 'su_má_tý_mi_hó_fr_le'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D. MMMM, YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Í dag kl.] LT',\n nextDay: '[Í morgin kl.] LT',\n nextWeek: 'dddd [kl.] LT',\n lastDay: '[Í gjár kl.] LT',\n lastWeek: '[síðstu] dddd [kl] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'um %s',\n past: '%s síðani',\n s: 'fá sekund',\n ss: '%d sekundir',\n m: 'ein minuttur',\n mm: '%d minuttir',\n h: 'ein tími',\n hh: '%d tímar',\n d: 'ein dagur',\n dd: '%d dagar',\n M: 'ein mánaður',\n MM: '%d mánaðir',\n y: 'eitt ár',\n yy: '%d ár',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return fo;\n\n})));\n\n\n/***/ }),\n/* 379 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : French [fr]\n//! author : John Fischer : https://github.com/jfroffice\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var fr = moment.defineLocale('fr', {\n months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(\n '_'\n ),\n monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),\n weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),\n weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Aujourd’hui à] LT',\n nextDay: '[Demain à] LT',\n nextWeek: 'dddd [à] LT',\n lastDay: '[Hier à] LT',\n lastWeek: 'dddd [dernier à] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'dans %s',\n past: 'il y a %s',\n s: 'quelques secondes',\n ss: '%d secondes',\n m: 'une minute',\n mm: '%d minutes',\n h: 'une heure',\n hh: '%d heures',\n d: 'un jour',\n dd: '%d jours',\n M: 'un mois',\n MM: '%d mois',\n y: 'un an',\n yy: '%d ans',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(er|)/,\n ordinal: function (number, period) {\n switch (period) {\n // TODO: Return 'e' when day of month > 1. Move this case inside\n // block for masculine words below.\n // See https://github.com/moment/moment/issues/3375\n case 'D':\n return number + (number === 1 ? 'er' : '');\n\n // Words with masculine grammatical gender: mois, trimestre, jour\n default:\n case 'M':\n case 'Q':\n case 'DDD':\n case 'd':\n return number + (number === 1 ? 'er' : 'e');\n\n // Words with feminine grammatical gender: semaine\n case 'w':\n case 'W':\n return number + (number === 1 ? 're' : 'e');\n }\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return fr;\n\n})));\n\n\n/***/ }),\n/* 380 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : French (Canada) [fr-ca]\n//! author : Jonathan Abourbih : https://github.com/jonbca\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var frCa = moment.defineLocale('fr-ca', {\n months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(\n '_'\n ),\n monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),\n weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),\n weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY-MM-DD',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Aujourd’hui à] LT',\n nextDay: '[Demain à] LT',\n nextWeek: 'dddd [à] LT',\n lastDay: '[Hier à] LT',\n lastWeek: 'dddd [dernier à] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'dans %s',\n past: 'il y a %s',\n s: 'quelques secondes',\n ss: '%d secondes',\n m: 'une minute',\n mm: '%d minutes',\n h: 'une heure',\n hh: '%d heures',\n d: 'un jour',\n dd: '%d jours',\n M: 'un mois',\n MM: '%d mois',\n y: 'un an',\n yy: '%d ans',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(er|e)/,\n ordinal: function (number, period) {\n switch (period) {\n // Words with masculine grammatical gender: mois, trimestre, jour\n default:\n case 'M':\n case 'Q':\n case 'D':\n case 'DDD':\n case 'd':\n return number + (number === 1 ? 'er' : 'e');\n\n // Words with feminine grammatical gender: semaine\n case 'w':\n case 'W':\n return number + (number === 1 ? 're' : 'e');\n }\n },\n });\n\n return frCa;\n\n})));\n\n\n/***/ }),\n/* 381 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : French (Switzerland) [fr-ch]\n//! author : Gaspard Bucher : https://github.com/gaspard\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var frCh = moment.defineLocale('fr-ch', {\n months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(\n '_'\n ),\n monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),\n weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),\n weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Aujourd’hui à] LT',\n nextDay: '[Demain à] LT',\n nextWeek: 'dddd [à] LT',\n lastDay: '[Hier à] LT',\n lastWeek: 'dddd [dernier à] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'dans %s',\n past: 'il y a %s',\n s: 'quelques secondes',\n ss: '%d secondes',\n m: 'une minute',\n mm: '%d minutes',\n h: 'une heure',\n hh: '%d heures',\n d: 'un jour',\n dd: '%d jours',\n M: 'un mois',\n MM: '%d mois',\n y: 'un an',\n yy: '%d ans',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(er|e)/,\n ordinal: function (number, period) {\n switch (period) {\n // Words with masculine grammatical gender: mois, trimestre, jour\n default:\n case 'M':\n case 'Q':\n case 'D':\n case 'DDD':\n case 'd':\n return number + (number === 1 ? 'er' : 'e');\n\n // Words with feminine grammatical gender: semaine\n case 'w':\n case 'W':\n return number + (number === 1 ? 're' : 'e');\n }\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return frCh;\n\n})));\n\n\n/***/ }),\n/* 382 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Frisian [fy]\n//! author : Robin van der Vliet : https://github.com/robin0van0der0v\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split(\n '_'\n ),\n monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split(\n '_'\n );\n\n var fy = moment.defineLocale('fy', {\n months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split(\n '_'\n ),\n monthsShort: function (m, format) {\n if (!m) {\n return monthsShortWithDots;\n } else if (/-MMM-/.test(format)) {\n return monthsShortWithoutDots[m.month()];\n } else {\n return monthsShortWithDots[m.month()];\n }\n },\n monthsParseExact: true,\n weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split(\n '_'\n ),\n weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'),\n weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD-MM-YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[hjoed om] LT',\n nextDay: '[moarn om] LT',\n nextWeek: 'dddd [om] LT',\n lastDay: '[juster om] LT',\n lastWeek: '[ôfrûne] dddd [om] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'oer %s',\n past: '%s lyn',\n s: 'in pear sekonden',\n ss: '%d sekonden',\n m: 'ien minút',\n mm: '%d minuten',\n h: 'ien oere',\n hh: '%d oeren',\n d: 'ien dei',\n dd: '%d dagen',\n M: 'ien moanne',\n MM: '%d moannen',\n y: 'ien jier',\n yy: '%d jierren',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(ste|de)/,\n ordinal: function (number) {\n return (\n number +\n (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')\n );\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return fy;\n\n})));\n\n\n/***/ }),\n/* 383 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Irish or Irish Gaelic [ga]\n//! author : André Silva : https://github.com/askpt\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var months = [\n 'Eanáir',\n 'Feabhra',\n 'Márta',\n 'Aibreán',\n 'Bealtaine',\n 'Meitheamh',\n 'Iúil',\n 'Lúnasa',\n 'Meán Fómhair',\n 'Deireadh Fómhair',\n 'Samhain',\n 'Nollaig',\n ],\n monthsShort = [\n 'Ean',\n 'Feabh',\n 'Márt',\n 'Aib',\n 'Beal',\n 'Meith',\n 'Iúil',\n 'Lún',\n 'M.F.',\n 'D.F.',\n 'Samh',\n 'Noll',\n ],\n weekdays = [\n 'Dé Domhnaigh',\n 'Dé Luain',\n 'Dé Máirt',\n 'Dé Céadaoin',\n 'Déardaoin',\n 'Dé hAoine',\n 'Dé Sathairn',\n ],\n weekdaysShort = ['Domh', 'Luan', 'Máirt', 'Céad', 'Déar', 'Aoine', 'Sath'],\n weekdaysMin = ['Do', 'Lu', 'Má', 'Cé', 'Dé', 'A', 'Sa'];\n\n var ga = moment.defineLocale('ga', {\n months: months,\n monthsShort: monthsShort,\n monthsParseExact: true,\n weekdays: weekdays,\n weekdaysShort: weekdaysShort,\n weekdaysMin: weekdaysMin,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Inniu ag] LT',\n nextDay: '[Amárach ag] LT',\n nextWeek: 'dddd [ag] LT',\n lastDay: '[Inné ag] LT',\n lastWeek: 'dddd [seo caite] [ag] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'i %s',\n past: '%s ó shin',\n s: 'cúpla soicind',\n ss: '%d soicind',\n m: 'nóiméad',\n mm: '%d nóiméad',\n h: 'uair an chloig',\n hh: '%d uair an chloig',\n d: 'lá',\n dd: '%d lá',\n M: 'mí',\n MM: '%d míonna',\n y: 'bliain',\n yy: '%d bliain',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(d|na|mh)/,\n ordinal: function (number) {\n var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';\n return number + output;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return ga;\n\n})));\n\n\n/***/ }),\n/* 384 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Scottish Gaelic [gd]\n//! author : Jon Ashdown : https://github.com/jonashdown\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var months = [\n 'Am Faoilleach',\n 'An Gearran',\n 'Am Màrt',\n 'An Giblean',\n 'An Cèitean',\n 'An t-Ògmhios',\n 'An t-Iuchar',\n 'An Lùnastal',\n 'An t-Sultain',\n 'An Dàmhair',\n 'An t-Samhain',\n 'An Dùbhlachd',\n ],\n monthsShort = [\n 'Faoi',\n 'Gear',\n 'Màrt',\n 'Gibl',\n 'Cèit',\n 'Ògmh',\n 'Iuch',\n 'Lùn',\n 'Sult',\n 'Dàmh',\n 'Samh',\n 'Dùbh',\n ],\n weekdays = [\n 'Didòmhnaich',\n 'Diluain',\n 'Dimàirt',\n 'Diciadain',\n 'Diardaoin',\n 'Dihaoine',\n 'Disathairne',\n ],\n weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'],\n weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];\n\n var gd = moment.defineLocale('gd', {\n months: months,\n monthsShort: monthsShort,\n monthsParseExact: true,\n weekdays: weekdays,\n weekdaysShort: weekdaysShort,\n weekdaysMin: weekdaysMin,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[An-diugh aig] LT',\n nextDay: '[A-màireach aig] LT',\n nextWeek: 'dddd [aig] LT',\n lastDay: '[An-dè aig] LT',\n lastWeek: 'dddd [seo chaidh] [aig] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'ann an %s',\n past: 'bho chionn %s',\n s: 'beagan diogan',\n ss: '%d diogan',\n m: 'mionaid',\n mm: '%d mionaidean',\n h: 'uair',\n hh: '%d uairean',\n d: 'latha',\n dd: '%d latha',\n M: 'mìos',\n MM: '%d mìosan',\n y: 'bliadhna',\n yy: '%d bliadhna',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(d|na|mh)/,\n ordinal: function (number) {\n var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';\n return number + output;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return gd;\n\n})));\n\n\n/***/ }),\n/* 385 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Galician [gl]\n//! author : Juan G. Hurtado : https://github.com/juanghurtado\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var gl = moment.defineLocale('gl', {\n months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split(\n '_'\n ),\n monthsShort: 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),\n weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),\n weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D [de] MMMM [de] YYYY',\n LLL: 'D [de] MMMM [de] YYYY H:mm',\n LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',\n },\n calendar: {\n sameDay: function () {\n return '[hoxe ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';\n },\n nextDay: function () {\n return '[mañá ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';\n },\n nextWeek: function () {\n return 'dddd [' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT';\n },\n lastDay: function () {\n return '[onte ' + (this.hours() !== 1 ? 'á' : 'a') + '] LT';\n },\n lastWeek: function () {\n return (\n '[o] dddd [pasado ' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT'\n );\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: function (str) {\n if (str.indexOf('un') === 0) {\n return 'n' + str;\n }\n return 'en ' + str;\n },\n past: 'hai %s',\n s: 'uns segundos',\n ss: '%d segundos',\n m: 'un minuto',\n mm: '%d minutos',\n h: 'unha hora',\n hh: '%d horas',\n d: 'un día',\n dd: '%d días',\n M: 'un mes',\n MM: '%d meses',\n y: 'un ano',\n yy: '%d anos',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return gl;\n\n})));\n\n\n/***/ }),\n/* 386 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Konkani Devanagari script [gom-deva]\n//! author : The Discoverer : https://github.com/WikiDiscoverer\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var format = {\n s: ['थोडया सॅकंडांनी', 'थोडे सॅकंड'],\n ss: [number + ' सॅकंडांनी', number + ' सॅकंड'],\n m: ['एका मिणटान', 'एक मिनूट'],\n mm: [number + ' मिणटांनी', number + ' मिणटां'],\n h: ['एका वरान', 'एक वर'],\n hh: [number + ' वरांनी', number + ' वरां'],\n d: ['एका दिसान', 'एक दीस'],\n dd: [number + ' दिसांनी', number + ' दीस'],\n M: ['एका म्हयन्यान', 'एक म्हयनो'],\n MM: [number + ' म्हयन्यानी', number + ' म्हयने'],\n y: ['एका वर्सान', 'एक वर्स'],\n yy: [number + ' वर्सांनी', number + ' वर्सां'],\n };\n return isFuture ? format[key][0] : format[key][1];\n }\n\n var gomDeva = moment.defineLocale('gom-deva', {\n months: {\n standalone: 'जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(\n '_'\n ),\n format: 'जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या'.split(\n '_'\n ),\n isFormat: /MMMM(\\s)+D[oD]?/,\n },\n monthsShort: 'जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार'.split('_'),\n weekdaysShort: 'आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.'.split('_'),\n weekdaysMin: 'आ_सो_मं_बु_ब्रे_सु_शे'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'A h:mm [वाजतां]',\n LTS: 'A h:mm:ss [वाजतां]',\n L: 'DD-MM-YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY A h:mm [वाजतां]',\n LLLL: 'dddd, MMMM Do, YYYY, A h:mm [वाजतां]',\n llll: 'ddd, D MMM YYYY, A h:mm [वाजतां]',\n },\n calendar: {\n sameDay: '[आयज] LT',\n nextDay: '[फाल्यां] LT',\n nextWeek: '[फुडलो] dddd[,] LT',\n lastDay: '[काल] LT',\n lastWeek: '[फाटलो] dddd[,] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s',\n past: '%s आदीं',\n s: processRelativeTime,\n ss: processRelativeTime,\n m: processRelativeTime,\n mm: processRelativeTime,\n h: processRelativeTime,\n hh: processRelativeTime,\n d: processRelativeTime,\n dd: processRelativeTime,\n M: processRelativeTime,\n MM: processRelativeTime,\n y: processRelativeTime,\n yy: processRelativeTime,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(वेर)/,\n ordinal: function (number, period) {\n switch (period) {\n // the ordinal 'वेर' only applies to day of the month\n case 'D':\n return number + 'वेर';\n default:\n case 'M':\n case 'Q':\n case 'DDD':\n case 'd':\n case 'w':\n case 'W':\n return number;\n }\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n meridiemParse: /राती|सकाळीं|दनपारां|सांजे/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'राती') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'सकाळीं') {\n return hour;\n } else if (meridiem === 'दनपारां') {\n return hour > 12 ? hour : hour + 12;\n } else if (meridiem === 'सांजे') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'राती';\n } else if (hour < 12) {\n return 'सकाळीं';\n } else if (hour < 16) {\n return 'दनपारां';\n } else if (hour < 20) {\n return 'सांजे';\n } else {\n return 'राती';\n }\n },\n });\n\n return gomDeva;\n\n})));\n\n\n/***/ }),\n/* 387 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Konkani Latin script [gom-latn]\n//! author : The Discoverer : https://github.com/WikiDiscoverer\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var format = {\n s: ['thoddea sekondamni', 'thodde sekond'],\n ss: [number + ' sekondamni', number + ' sekond'],\n m: ['eka mintan', 'ek minut'],\n mm: [number + ' mintamni', number + ' mintam'],\n h: ['eka voran', 'ek vor'],\n hh: [number + ' voramni', number + ' voram'],\n d: ['eka disan', 'ek dis'],\n dd: [number + ' disamni', number + ' dis'],\n M: ['eka mhoinean', 'ek mhoino'],\n MM: [number + ' mhoineamni', number + ' mhoine'],\n y: ['eka vorsan', 'ek voros'],\n yy: [number + ' vorsamni', number + ' vorsam'],\n };\n return isFuture ? format[key][0] : format[key][1];\n }\n\n var gomLatn = moment.defineLocale('gom-latn', {\n months: {\n standalone: 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split(\n '_'\n ),\n format: 'Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea'.split(\n '_'\n ),\n isFormat: /MMMM(\\s)+D[oD]?/,\n },\n monthsShort: 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: \"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var\".split('_'),\n weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),\n weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'A h:mm [vazta]',\n LTS: 'A h:mm:ss [vazta]',\n L: 'DD-MM-YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY A h:mm [vazta]',\n LLLL: 'dddd, MMMM Do, YYYY, A h:mm [vazta]',\n llll: 'ddd, D MMM YYYY, A h:mm [vazta]',\n },\n calendar: {\n sameDay: '[Aiz] LT',\n nextDay: '[Faleam] LT',\n nextWeek: '[Fuddlo] dddd[,] LT',\n lastDay: '[Kal] LT',\n lastWeek: '[Fattlo] dddd[,] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s',\n past: '%s adim',\n s: processRelativeTime,\n ss: processRelativeTime,\n m: processRelativeTime,\n mm: processRelativeTime,\n h: processRelativeTime,\n hh: processRelativeTime,\n d: processRelativeTime,\n dd: processRelativeTime,\n M: processRelativeTime,\n MM: processRelativeTime,\n y: processRelativeTime,\n yy: processRelativeTime,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(er)/,\n ordinal: function (number, period) {\n switch (period) {\n // the ordinal 'er' only applies to day of the month\n case 'D':\n return number + 'er';\n default:\n case 'M':\n case 'Q':\n case 'DDD':\n case 'd':\n case 'w':\n case 'W':\n return number;\n }\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n meridiemParse: /rati|sokallim|donparam|sanje/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'rati') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'sokallim') {\n return hour;\n } else if (meridiem === 'donparam') {\n return hour > 12 ? hour : hour + 12;\n } else if (meridiem === 'sanje') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'rati';\n } else if (hour < 12) {\n return 'sokallim';\n } else if (hour < 16) {\n return 'donparam';\n } else if (hour < 20) {\n return 'sanje';\n } else {\n return 'rati';\n }\n },\n });\n\n return gomLatn;\n\n})));\n\n\n/***/ }),\n/* 388 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Gujarati [gu]\n//! author : Kaushik Thanki : https://github.com/Kaushik1987\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '૧',\n '2': '૨',\n '3': '૩',\n '4': '૪',\n '5': '૫',\n '6': '૬',\n '7': '૭',\n '8': '૮',\n '9': '૯',\n '0': '૦',\n },\n numberMap = {\n '૧': '1',\n '૨': '2',\n '૩': '3',\n '૪': '4',\n '૫': '5',\n '૬': '6',\n '૭': '7',\n '૮': '8',\n '૯': '9',\n '૦': '0',\n };\n\n var gu = moment.defineLocale('gu', {\n months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split(\n '_'\n ),\n monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split(\n '_'\n ),\n weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'),\n weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'),\n longDateFormat: {\n LT: 'A h:mm વાગ્યે',\n LTS: 'A h:mm:ss વાગ્યે',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm વાગ્યે',\n LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે',\n },\n calendar: {\n sameDay: '[આજ] LT',\n nextDay: '[કાલે] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[ગઇકાલે] LT',\n lastWeek: '[પાછલા] dddd, LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s મા',\n past: '%s પેહલા',\n s: 'અમુક પળો',\n ss: '%d સેકંડ',\n m: 'એક મિનિટ',\n mm: '%d મિનિટ',\n h: 'એક કલાક',\n hh: '%d કલાક',\n d: 'એક દિવસ',\n dd: '%d દિવસ',\n M: 'એક મહિનો',\n MM: '%d મહિનો',\n y: 'એક વર્ષ',\n yy: '%d વર્ષ',\n },\n preparse: function (string) {\n return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n // Gujarati notation for meridiems are quite fuzzy in practice. While there exists\n // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati.\n meridiemParse: /રાત|બપોર|સવાર|સાંજ/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'રાત') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'સવાર') {\n return hour;\n } else if (meridiem === 'બપોર') {\n return hour >= 10 ? hour : hour + 12;\n } else if (meridiem === 'સાંજ') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'રાત';\n } else if (hour < 10) {\n return 'સવાર';\n } else if (hour < 17) {\n return 'બપોર';\n } else if (hour < 20) {\n return 'સાંજ';\n } else {\n return 'રાત';\n }\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n },\n });\n\n return gu;\n\n})));\n\n\n/***/ }),\n/* 389 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Hebrew [he]\n//! author : Tomer Cohen : https://github.com/tomer\n//! author : Moshe Simantov : https://github.com/DevelopmentIL\n//! author : Tal Ater : https://github.com/TalAter\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var he = moment.defineLocale('he', {\n months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split(\n '_'\n ),\n monthsShort: 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split(\n '_'\n ),\n weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),\n weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),\n weekdaysMin: 'א_ב_ג_ד_ה_ו_ש'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D [ב]MMMM YYYY',\n LLL: 'D [ב]MMMM YYYY HH:mm',\n LLLL: 'dddd, D [ב]MMMM YYYY HH:mm',\n l: 'D/M/YYYY',\n ll: 'D MMM YYYY',\n lll: 'D MMM YYYY HH:mm',\n llll: 'ddd, D MMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[היום ב־]LT',\n nextDay: '[מחר ב־]LT',\n nextWeek: 'dddd [בשעה] LT',\n lastDay: '[אתמול ב־]LT',\n lastWeek: '[ביום] dddd [האחרון בשעה] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'בעוד %s',\n past: 'לפני %s',\n s: 'מספר שניות',\n ss: '%d שניות',\n m: 'דקה',\n mm: '%d דקות',\n h: 'שעה',\n hh: function (number) {\n if (number === 2) {\n return 'שעתיים';\n }\n return number + ' שעות';\n },\n d: 'יום',\n dd: function (number) {\n if (number === 2) {\n return 'יומיים';\n }\n return number + ' ימים';\n },\n M: 'חודש',\n MM: function (number) {\n if (number === 2) {\n return 'חודשיים';\n }\n return number + ' חודשים';\n },\n y: 'שנה',\n yy: function (number) {\n if (number === 2) {\n return 'שנתיים';\n } else if (number % 10 === 0 && number !== 10) {\n return number + ' שנה';\n }\n return number + ' שנים';\n },\n },\n meridiemParse: /אחה\"צ|לפנה\"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,\n isPM: function (input) {\n return /^(אחה\"צ|אחרי הצהריים|בערב)$/.test(input);\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 5) {\n return 'לפנות בוקר';\n } else if (hour < 10) {\n return 'בבוקר';\n } else if (hour < 12) {\n return isLower ? 'לפנה\"צ' : 'לפני הצהריים';\n } else if (hour < 18) {\n return isLower ? 'אחה\"צ' : 'אחרי הצהריים';\n } else {\n return 'בערב';\n }\n },\n });\n\n return he;\n\n})));\n\n\n/***/ }),\n/* 390 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Hindi [hi]\n//! author : Mayank Singhal : https://github.com/mayanksinghal\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '१',\n '2': '२',\n '3': '३',\n '4': '४',\n '5': '५',\n '6': '६',\n '7': '७',\n '8': '८',\n '9': '९',\n '0': '०',\n },\n numberMap = {\n '१': '1',\n '२': '2',\n '३': '3',\n '४': '4',\n '५': '5',\n '६': '6',\n '७': '7',\n '८': '8',\n '९': '9',\n '०': '0',\n };\n\n var hi = moment.defineLocale('hi', {\n months: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split(\n '_'\n ),\n monthsShort: 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),\n weekdaysShort: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),\n weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),\n longDateFormat: {\n LT: 'A h:mm बजे',\n LTS: 'A h:mm:ss बजे',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm बजे',\n LLLL: 'dddd, D MMMM YYYY, A h:mm बजे',\n },\n calendar: {\n sameDay: '[आज] LT',\n nextDay: '[कल] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[कल] LT',\n lastWeek: '[पिछले] dddd, LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s में',\n past: '%s पहले',\n s: 'कुछ ही क्षण',\n ss: '%d सेकंड',\n m: 'एक मिनट',\n mm: '%d मिनट',\n h: 'एक घंटा',\n hh: '%d घंटे',\n d: 'एक दिन',\n dd: '%d दिन',\n M: 'एक महीने',\n MM: '%d महीने',\n y: 'एक वर्ष',\n yy: '%d वर्ष',\n },\n preparse: function (string) {\n return string.replace(/[१२३४५६७८९०]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n // Hindi notation for meridiems are quite fuzzy in practice. While there exists\n // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.\n meridiemParse: /रात|सुबह|दोपहर|शाम/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'रात') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'सुबह') {\n return hour;\n } else if (meridiem === 'दोपहर') {\n return hour >= 10 ? hour : hour + 12;\n } else if (meridiem === 'शाम') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'रात';\n } else if (hour < 10) {\n return 'सुबह';\n } else if (hour < 17) {\n return 'दोपहर';\n } else if (hour < 20) {\n return 'शाम';\n } else {\n return 'रात';\n }\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n },\n });\n\n return hi;\n\n})));\n\n\n/***/ }),\n/* 391 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Croatian [hr]\n//! author : Bojan Marković : https://github.com/bmarkovic\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function translate(number, withoutSuffix, key) {\n var result = number + ' ';\n switch (key) {\n case 'ss':\n if (number === 1) {\n result += 'sekunda';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'sekunde';\n } else {\n result += 'sekundi';\n }\n return result;\n case 'm':\n return withoutSuffix ? 'jedna minuta' : 'jedne minute';\n case 'mm':\n if (number === 1) {\n result += 'minuta';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'minute';\n } else {\n result += 'minuta';\n }\n return result;\n case 'h':\n return withoutSuffix ? 'jedan sat' : 'jednog sata';\n case 'hh':\n if (number === 1) {\n result += 'sat';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'sata';\n } else {\n result += 'sati';\n }\n return result;\n case 'dd':\n if (number === 1) {\n result += 'dan';\n } else {\n result += 'dana';\n }\n return result;\n case 'MM':\n if (number === 1) {\n result += 'mjesec';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'mjeseca';\n } else {\n result += 'mjeseci';\n }\n return result;\n case 'yy':\n if (number === 1) {\n result += 'godina';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'godine';\n } else {\n result += 'godina';\n }\n return result;\n }\n }\n\n var hr = moment.defineLocale('hr', {\n months: {\n format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split(\n '_'\n ),\n standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split(\n '_'\n ),\n },\n monthsShort: 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(\n '_'\n ),\n weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),\n weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'Do MMMM YYYY',\n LLL: 'Do MMMM YYYY H:mm',\n LLLL: 'dddd, Do MMMM YYYY H:mm',\n },\n calendar: {\n sameDay: '[danas u] LT',\n nextDay: '[sutra u] LT',\n nextWeek: function () {\n switch (this.day()) {\n case 0:\n return '[u] [nedjelju] [u] LT';\n case 3:\n return '[u] [srijedu] [u] LT';\n case 6:\n return '[u] [subotu] [u] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[u] dddd [u] LT';\n }\n },\n lastDay: '[jučer u] LT',\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n return '[prošlu] [nedjelju] [u] LT';\n case 3:\n return '[prošlu] [srijedu] [u] LT';\n case 6:\n return '[prošle] [subote] [u] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[prošli] dddd [u] LT';\n }\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'za %s',\n past: 'prije %s',\n s: 'par sekundi',\n ss: translate,\n m: translate,\n mm: translate,\n h: translate,\n hh: translate,\n d: 'dan',\n dd: translate,\n M: 'mjesec',\n MM: translate,\n y: 'godinu',\n yy: translate,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return hr;\n\n})));\n\n\n/***/ }),\n/* 392 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Hungarian [hu]\n//! author : Adam Brunner : https://github.com/adambrunner\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(\n ' '\n );\n function translate(number, withoutSuffix, key, isFuture) {\n var num = number;\n switch (key) {\n case 's':\n return isFuture || withoutSuffix\n ? 'néhány másodperc'\n : 'néhány másodperce';\n case 'ss':\n return num + (isFuture || withoutSuffix)\n ? ' másodperc'\n : ' másodperce';\n case 'm':\n return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');\n case 'mm':\n return num + (isFuture || withoutSuffix ? ' perc' : ' perce');\n case 'h':\n return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');\n case 'hh':\n return num + (isFuture || withoutSuffix ? ' óra' : ' órája');\n case 'd':\n return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');\n case 'dd':\n return num + (isFuture || withoutSuffix ? ' nap' : ' napja');\n case 'M':\n return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');\n case 'MM':\n return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');\n case 'y':\n return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');\n case 'yy':\n return num + (isFuture || withoutSuffix ? ' év' : ' éve');\n }\n return '';\n }\n function week(isFuture) {\n return (\n (isFuture ? '' : '[múlt] ') +\n '[' +\n weekEndings[this.day()] +\n '] LT[-kor]'\n );\n }\n\n var hu = moment.defineLocale('hu', {\n months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split(\n '_'\n ),\n monthsShort: 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split(\n '_'\n ),\n weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),\n weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),\n weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'),\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'YYYY.MM.DD.',\n LL: 'YYYY. MMMM D.',\n LLL: 'YYYY. MMMM D. H:mm',\n LLLL: 'YYYY. MMMM D., dddd H:mm',\n },\n meridiemParse: /de|du/i,\n isPM: function (input) {\n return input.charAt(1).toLowerCase() === 'u';\n },\n meridiem: function (hours, minutes, isLower) {\n if (hours < 12) {\n return isLower === true ? 'de' : 'DE';\n } else {\n return isLower === true ? 'du' : 'DU';\n }\n },\n calendar: {\n sameDay: '[ma] LT[-kor]',\n nextDay: '[holnap] LT[-kor]',\n nextWeek: function () {\n return week.call(this, true);\n },\n lastDay: '[tegnap] LT[-kor]',\n lastWeek: function () {\n return week.call(this, false);\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s múlva',\n past: '%s',\n s: translate,\n ss: translate,\n m: translate,\n mm: translate,\n h: translate,\n hh: translate,\n d: translate,\n dd: translate,\n M: translate,\n MM: translate,\n y: translate,\n yy: translate,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return hu;\n\n})));\n\n\n/***/ }),\n/* 393 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Armenian [hy-am]\n//! author : Armendarabyan : https://github.com/armendarabyan\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var hyAm = moment.defineLocale('hy-am', {\n months: {\n format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split(\n '_'\n ),\n standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split(\n '_'\n ),\n },\n monthsShort: 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),\n weekdays: 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split(\n '_'\n ),\n weekdaysShort: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),\n weekdaysMin: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY թ.',\n LLL: 'D MMMM YYYY թ., HH:mm',\n LLLL: 'dddd, D MMMM YYYY թ., HH:mm',\n },\n calendar: {\n sameDay: '[այսօր] LT',\n nextDay: '[վաղը] LT',\n lastDay: '[երեկ] LT',\n nextWeek: function () {\n return 'dddd [օրը ժամը] LT';\n },\n lastWeek: function () {\n return '[անցած] dddd [օրը ժամը] LT';\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s հետո',\n past: '%s առաջ',\n s: 'մի քանի վայրկյան',\n ss: '%d վայրկյան',\n m: 'րոպե',\n mm: '%d րոպե',\n h: 'ժամ',\n hh: '%d ժամ',\n d: 'օր',\n dd: '%d օր',\n M: 'ամիս',\n MM: '%d ամիս',\n y: 'տարի',\n yy: '%d տարի',\n },\n meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,\n isPM: function (input) {\n return /^(ցերեկվա|երեկոյան)$/.test(input);\n },\n meridiem: function (hour) {\n if (hour < 4) {\n return 'գիշերվա';\n } else if (hour < 12) {\n return 'առավոտվա';\n } else if (hour < 17) {\n return 'ցերեկվա';\n } else {\n return 'երեկոյան';\n }\n },\n dayOfMonthOrdinalParse: /\\d{1,2}|\\d{1,2}-(ին|րդ)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'DDD':\n case 'w':\n case 'W':\n case 'DDDo':\n if (number === 1) {\n return number + '-ին';\n }\n return number + '-րդ';\n default:\n return number;\n }\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return hyAm;\n\n})));\n\n\n/***/ }),\n/* 394 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Indonesian [id]\n//! author : Mohammad Satrio Utomo : https://github.com/tyok\n//! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var id = moment.defineLocale('id', {\n months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split(\n '_'\n ),\n monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'),\n weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),\n weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),\n weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),\n longDateFormat: {\n LT: 'HH.mm',\n LTS: 'HH.mm.ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY [pukul] HH.mm',\n LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',\n },\n meridiemParse: /pagi|siang|sore|malam/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'pagi') {\n return hour;\n } else if (meridiem === 'siang') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === 'sore' || meridiem === 'malam') {\n return hour + 12;\n }\n },\n meridiem: function (hours, minutes, isLower) {\n if (hours < 11) {\n return 'pagi';\n } else if (hours < 15) {\n return 'siang';\n } else if (hours < 19) {\n return 'sore';\n } else {\n return 'malam';\n }\n },\n calendar: {\n sameDay: '[Hari ini pukul] LT',\n nextDay: '[Besok pukul] LT',\n nextWeek: 'dddd [pukul] LT',\n lastDay: '[Kemarin pukul] LT',\n lastWeek: 'dddd [lalu pukul] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'dalam %s',\n past: '%s yang lalu',\n s: 'beberapa detik',\n ss: '%d detik',\n m: 'semenit',\n mm: '%d menit',\n h: 'sejam',\n hh: '%d jam',\n d: 'sehari',\n dd: '%d hari',\n M: 'sebulan',\n MM: '%d bulan',\n y: 'setahun',\n yy: '%d tahun',\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return id;\n\n})));\n\n\n/***/ }),\n/* 395 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Icelandic [is]\n//! author : Hinrik Örn Sigurðsson : https://github.com/hinrik\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function plural(n) {\n if (n % 100 === 11) {\n return true;\n } else if (n % 10 === 1) {\n return false;\n }\n return true;\n }\n function translate(number, withoutSuffix, key, isFuture) {\n var result = number + ' ';\n switch (key) {\n case 's':\n return withoutSuffix || isFuture\n ? 'nokkrar sekúndur'\n : 'nokkrum sekúndum';\n case 'ss':\n if (plural(number)) {\n return (\n result +\n (withoutSuffix || isFuture ? 'sekúndur' : 'sekúndum')\n );\n }\n return result + 'sekúnda';\n case 'm':\n return withoutSuffix ? 'mínúta' : 'mínútu';\n case 'mm':\n if (plural(number)) {\n return (\n result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum')\n );\n } else if (withoutSuffix) {\n return result + 'mínúta';\n }\n return result + 'mínútu';\n case 'hh':\n if (plural(number)) {\n return (\n result +\n (withoutSuffix || isFuture\n ? 'klukkustundir'\n : 'klukkustundum')\n );\n }\n return result + 'klukkustund';\n case 'd':\n if (withoutSuffix) {\n return 'dagur';\n }\n return isFuture ? 'dag' : 'degi';\n case 'dd':\n if (plural(number)) {\n if (withoutSuffix) {\n return result + 'dagar';\n }\n return result + (isFuture ? 'daga' : 'dögum');\n } else if (withoutSuffix) {\n return result + 'dagur';\n }\n return result + (isFuture ? 'dag' : 'degi');\n case 'M':\n if (withoutSuffix) {\n return 'mánuður';\n }\n return isFuture ? 'mánuð' : 'mánuði';\n case 'MM':\n if (plural(number)) {\n if (withoutSuffix) {\n return result + 'mánuðir';\n }\n return result + (isFuture ? 'mánuði' : 'mánuðum');\n } else if (withoutSuffix) {\n return result + 'mánuður';\n }\n return result + (isFuture ? 'mánuð' : 'mánuði');\n case 'y':\n return withoutSuffix || isFuture ? 'ár' : 'ári';\n case 'yy':\n if (plural(number)) {\n return result + (withoutSuffix || isFuture ? 'ár' : 'árum');\n }\n return result + (withoutSuffix || isFuture ? 'ár' : 'ári');\n }\n }\n\n var is = moment.defineLocale('is', {\n months: 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split(\n '_'\n ),\n monthsShort: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),\n weekdays: 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split(\n '_'\n ),\n weekdaysShort: 'sun_mán_þri_mið_fim_fös_lau'.split('_'),\n weekdaysMin: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY [kl.] H:mm',\n LLLL: 'dddd, D. MMMM YYYY [kl.] H:mm',\n },\n calendar: {\n sameDay: '[í dag kl.] LT',\n nextDay: '[á morgun kl.] LT',\n nextWeek: 'dddd [kl.] LT',\n lastDay: '[í gær kl.] LT',\n lastWeek: '[síðasta] dddd [kl.] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'eftir %s',\n past: 'fyrir %s síðan',\n s: translate,\n ss: translate,\n m: translate,\n mm: translate,\n h: 'klukkustund',\n hh: translate,\n d: translate,\n dd: translate,\n M: translate,\n MM: translate,\n y: translate,\n yy: translate,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return is;\n\n})));\n\n\n/***/ }),\n/* 396 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Italian [it]\n//! author : Lorenzo : https://github.com/aliem\n//! author: Mattia Larentis: https://github.com/nostalgiaz\n//! author: Marco : https://github.com/Manfre98\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var it = moment.defineLocale('it', {\n months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split(\n '_'\n ),\n monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),\n weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split(\n '_'\n ),\n weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),\n weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: function () {\n return (\n '[Oggi a' +\n (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : \"ll'\") +\n ']LT'\n );\n },\n nextDay: function () {\n return (\n '[Domani a' +\n (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : \"ll'\") +\n ']LT'\n );\n },\n nextWeek: function () {\n return (\n 'dddd [a' +\n (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : \"ll'\") +\n ']LT'\n );\n },\n lastDay: function () {\n return (\n '[Ieri a' +\n (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : \"ll'\") +\n ']LT'\n );\n },\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n return (\n '[La scorsa] dddd [a' +\n (this.hours() > 1\n ? 'lle '\n : this.hours() === 0\n ? ' '\n : \"ll'\") +\n ']LT'\n );\n default:\n return (\n '[Lo scorso] dddd [a' +\n (this.hours() > 1\n ? 'lle '\n : this.hours() === 0\n ? ' '\n : \"ll'\") +\n ']LT'\n );\n }\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: function (s) {\n return (/^[0-9].+$/.test(s) ? 'tra' : 'in') + ' ' + s;\n },\n past: '%s fa',\n s: 'alcuni secondi',\n ss: '%d secondi',\n m: 'un minuto',\n mm: '%d minuti',\n h: \"un'ora\",\n hh: '%d ore',\n d: 'un giorno',\n dd: '%d giorni',\n M: 'un mese',\n MM: '%d mesi',\n y: 'un anno',\n yy: '%d anni',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return it;\n\n})));\n\n\n/***/ }),\n/* 397 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Italian (Switzerland) [it-ch]\n//! author : xfh : https://github.com/xfh\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var itCh = moment.defineLocale('it-ch', {\n months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split(\n '_'\n ),\n monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),\n weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split(\n '_'\n ),\n weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),\n weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Oggi alle] LT',\n nextDay: '[Domani alle] LT',\n nextWeek: 'dddd [alle] LT',\n lastDay: '[Ieri alle] LT',\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n return '[la scorsa] dddd [alle] LT';\n default:\n return '[lo scorso] dddd [alle] LT';\n }\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: function (s) {\n return (/^[0-9].+$/.test(s) ? 'tra' : 'in') + ' ' + s;\n },\n past: '%s fa',\n s: 'alcuni secondi',\n ss: '%d secondi',\n m: 'un minuto',\n mm: '%d minuti',\n h: \"un'ora\",\n hh: '%d ore',\n d: 'un giorno',\n dd: '%d giorni',\n M: 'un mese',\n MM: '%d mesi',\n y: 'un anno',\n yy: '%d anni',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return itCh;\n\n})));\n\n\n/***/ }),\n/* 398 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Japanese [ja]\n//! author : LI Long : https://github.com/baryon\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var ja = moment.defineLocale('ja', {\n eras: [\n {\n since: '2019-05-01',\n offset: 1,\n name: '令和',\n narrow: '㋿',\n abbr: 'R',\n },\n {\n since: '1989-01-08',\n until: '2019-04-30',\n offset: 1,\n name: '平成',\n narrow: '㍻',\n abbr: 'H',\n },\n {\n since: '1926-12-25',\n until: '1989-01-07',\n offset: 1,\n name: '昭和',\n narrow: '㍼',\n abbr: 'S',\n },\n {\n since: '1912-07-30',\n until: '1926-12-24',\n offset: 1,\n name: '大正',\n narrow: '㍽',\n abbr: 'T',\n },\n {\n since: '1873-01-01',\n until: '1912-07-29',\n offset: 6,\n name: '明治',\n narrow: '㍾',\n abbr: 'M',\n },\n {\n since: '0001-01-01',\n until: '1873-12-31',\n offset: 1,\n name: '西暦',\n narrow: 'AD',\n abbr: 'AD',\n },\n {\n since: '0000-12-31',\n until: -Infinity,\n offset: 1,\n name: '紀元前',\n narrow: 'BC',\n abbr: 'BC',\n },\n ],\n eraYearOrdinalRegex: /(元|\\d+)年/,\n eraYearOrdinalParse: function (input, match) {\n return match[1] === '元' ? 1 : parseInt(match[1] || input, 10);\n },\n months: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),\n monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(\n '_'\n ),\n weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),\n weekdaysShort: '日_月_火_水_木_金_土'.split('_'),\n weekdaysMin: '日_月_火_水_木_金_土'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY/MM/DD',\n LL: 'YYYY年M月D日',\n LLL: 'YYYY年M月D日 HH:mm',\n LLLL: 'YYYY年M月D日 dddd HH:mm',\n l: 'YYYY/MM/DD',\n ll: 'YYYY年M月D日',\n lll: 'YYYY年M月D日 HH:mm',\n llll: 'YYYY年M月D日(ddd) HH:mm',\n },\n meridiemParse: /午前|午後/i,\n isPM: function (input) {\n return input === '午後';\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return '午前';\n } else {\n return '午後';\n }\n },\n calendar: {\n sameDay: '[今日] LT',\n nextDay: '[明日] LT',\n nextWeek: function (now) {\n if (now.week() !== this.week()) {\n return '[来週]dddd LT';\n } else {\n return 'dddd LT';\n }\n },\n lastDay: '[昨日] LT',\n lastWeek: function (now) {\n if (this.week() !== now.week()) {\n return '[先週]dddd LT';\n } else {\n return 'dddd LT';\n }\n },\n sameElse: 'L',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}日/,\n ordinal: function (number, period) {\n switch (period) {\n case 'y':\n return number === 1 ? '元年' : number + '年';\n case 'd':\n case 'D':\n case 'DDD':\n return number + '日';\n default:\n return number;\n }\n },\n relativeTime: {\n future: '%s後',\n past: '%s前',\n s: '数秒',\n ss: '%d秒',\n m: '1分',\n mm: '%d分',\n h: '1時間',\n hh: '%d時間',\n d: '1日',\n dd: '%d日',\n M: '1ヶ月',\n MM: '%dヶ月',\n y: '1年',\n yy: '%d年',\n },\n });\n\n return ja;\n\n})));\n\n\n/***/ }),\n/* 399 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Javanese [jv]\n//! author : Rony Lantip : https://github.com/lantip\n//! reference: http://jv.wikipedia.org/wiki/Basa_Jawa\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var jv = moment.defineLocale('jv', {\n months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split(\n '_'\n ),\n monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),\n weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),\n weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),\n weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),\n longDateFormat: {\n LT: 'HH.mm',\n LTS: 'HH.mm.ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY [pukul] HH.mm',\n LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',\n },\n meridiemParse: /enjing|siyang|sonten|ndalu/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'enjing') {\n return hour;\n } else if (meridiem === 'siyang') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === 'sonten' || meridiem === 'ndalu') {\n return hour + 12;\n }\n },\n meridiem: function (hours, minutes, isLower) {\n if (hours < 11) {\n return 'enjing';\n } else if (hours < 15) {\n return 'siyang';\n } else if (hours < 19) {\n return 'sonten';\n } else {\n return 'ndalu';\n }\n },\n calendar: {\n sameDay: '[Dinten puniko pukul] LT',\n nextDay: '[Mbenjang pukul] LT',\n nextWeek: 'dddd [pukul] LT',\n lastDay: '[Kala wingi pukul] LT',\n lastWeek: 'dddd [kepengker pukul] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'wonten ing %s',\n past: '%s ingkang kepengker',\n s: 'sawetawis detik',\n ss: '%d detik',\n m: 'setunggal menit',\n mm: '%d menit',\n h: 'setunggal jam',\n hh: '%d jam',\n d: 'sedinten',\n dd: '%d dinten',\n M: 'sewulan',\n MM: '%d wulan',\n y: 'setaun',\n yy: '%d taun',\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return jv;\n\n})));\n\n\n/***/ }),\n/* 400 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Georgian [ka]\n//! author : Irakli Janiashvili : https://github.com/IrakliJani\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var ka = moment.defineLocale('ka', {\n months: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split(\n '_'\n ),\n monthsShort: 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),\n weekdays: {\n standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split(\n '_'\n ),\n format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split(\n '_'\n ),\n isFormat: /(წინა|შემდეგ)/,\n },\n weekdaysShort: 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),\n weekdaysMin: 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[დღეს] LT[-ზე]',\n nextDay: '[ხვალ] LT[-ზე]',\n lastDay: '[გუშინ] LT[-ზე]',\n nextWeek: '[შემდეგ] dddd LT[-ზე]',\n lastWeek: '[წინა] dddd LT-ზე',\n sameElse: 'L',\n },\n relativeTime: {\n future: function (s) {\n return s.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/, function (\n $0,\n $1,\n $2\n ) {\n return $2 === 'ი' ? $1 + 'ში' : $1 + $2 + 'ში';\n });\n },\n past: function (s) {\n if (/(წამი|წუთი|საათი|დღე|თვე)/.test(s)) {\n return s.replace(/(ი|ე)$/, 'ის წინ');\n }\n if (/წელი/.test(s)) {\n return s.replace(/წელი$/, 'წლის წინ');\n }\n return s;\n },\n s: 'რამდენიმე წამი',\n ss: '%d წამი',\n m: 'წუთი',\n mm: '%d წუთი',\n h: 'საათი',\n hh: '%d საათი',\n d: 'დღე',\n dd: '%d დღე',\n M: 'თვე',\n MM: '%d თვე',\n y: 'წელი',\n yy: '%d წელი',\n },\n dayOfMonthOrdinalParse: /0|1-ლი|მე-\\d{1,2}|\\d{1,2}-ე/,\n ordinal: function (number) {\n if (number === 0) {\n return number;\n }\n if (number === 1) {\n return number + '-ლი';\n }\n if (\n number < 20 ||\n (number <= 100 && number % 20 === 0) ||\n number % 100 === 0\n ) {\n return 'მე-' + number;\n }\n return number + '-ე';\n },\n week: {\n dow: 1,\n doy: 7,\n },\n });\n\n return ka;\n\n})));\n\n\n/***/ }),\n/* 401 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Kazakh [kk]\n//! authors : Nurlan Rakhimzhanov : https://github.com/nurlan\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var suffixes = {\n 0: '-ші',\n 1: '-ші',\n 2: '-ші',\n 3: '-ші',\n 4: '-ші',\n 5: '-ші',\n 6: '-шы',\n 7: '-ші',\n 8: '-ші',\n 9: '-шы',\n 10: '-шы',\n 20: '-шы',\n 30: '-шы',\n 40: '-шы',\n 50: '-ші',\n 60: '-шы',\n 70: '-ші',\n 80: '-ші',\n 90: '-шы',\n 100: '-ші',\n };\n\n var kk = moment.defineLocale('kk', {\n months: 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split(\n '_'\n ),\n monthsShort: 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),\n weekdays: 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split(\n '_'\n ),\n weekdaysShort: 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),\n weekdaysMin: 'жк_дй_сй_ср_бй_жм_сн'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Бүгін сағат] LT',\n nextDay: '[Ертең сағат] LT',\n nextWeek: 'dddd [сағат] LT',\n lastDay: '[Кеше сағат] LT',\n lastWeek: '[Өткен аптаның] dddd [сағат] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s ішінде',\n past: '%s бұрын',\n s: 'бірнеше секунд',\n ss: '%d секунд',\n m: 'бір минут',\n mm: '%d минут',\n h: 'бір сағат',\n hh: '%d сағат',\n d: 'бір күн',\n dd: '%d күн',\n M: 'бір ай',\n MM: '%d ай',\n y: 'бір жыл',\n yy: '%d жыл',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(ші|шы)/,\n ordinal: function (number) {\n var a = number % 10,\n b = number >= 100 ? 100 : null;\n return number + (suffixes[number] || suffixes[a] || suffixes[b]);\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return kk;\n\n})));\n\n\n/***/ }),\n/* 402 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Cambodian [km]\n//! author : Kruy Vanna : https://github.com/kruyvanna\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '១',\n '2': '២',\n '3': '៣',\n '4': '៤',\n '5': '៥',\n '6': '៦',\n '7': '៧',\n '8': '៨',\n '9': '៩',\n '0': '០',\n },\n numberMap = {\n '១': '1',\n '២': '2',\n '៣': '3',\n '៤': '4',\n '៥': '5',\n '៦': '6',\n '៧': '7',\n '៨': '8',\n '៩': '9',\n '០': '0',\n };\n\n var km = moment.defineLocale('km', {\n months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(\n '_'\n ),\n monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(\n '_'\n ),\n weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),\n weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),\n weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n meridiemParse: /ព្រឹក|ល្ងាច/,\n isPM: function (input) {\n return input === 'ល្ងាច';\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'ព្រឹក';\n } else {\n return 'ល្ងាច';\n }\n },\n calendar: {\n sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',\n nextDay: '[ស្អែក ម៉ោង] LT',\n nextWeek: 'dddd [ម៉ោង] LT',\n lastDay: '[ម្សិលមិញ ម៉ោង] LT',\n lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%sទៀត',\n past: '%sមុន',\n s: 'ប៉ុន្មានវិនាទី',\n ss: '%d វិនាទី',\n m: 'មួយនាទី',\n mm: '%d នាទី',\n h: 'មួយម៉ោង',\n hh: '%d ម៉ោង',\n d: 'មួយថ្ងៃ',\n dd: '%d ថ្ងៃ',\n M: 'មួយខែ',\n MM: '%d ខែ',\n y: 'មួយឆ្នាំ',\n yy: '%d ឆ្នាំ',\n },\n dayOfMonthOrdinalParse: /ទី\\d{1,2}/,\n ordinal: 'ទី%d',\n preparse: function (string) {\n return string.replace(/[១២៣៤៥៦៧៨៩០]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return km;\n\n})));\n\n\n/***/ }),\n/* 403 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Kannada [kn]\n//! author : Rajeev Naik : https://github.com/rajeevnaikte\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '೧',\n '2': '೨',\n '3': '೩',\n '4': '೪',\n '5': '೫',\n '6': '೬',\n '7': '೭',\n '8': '೮',\n '9': '೯',\n '0': '೦',\n },\n numberMap = {\n '೧': '1',\n '೨': '2',\n '೩': '3',\n '೪': '4',\n '೫': '5',\n '೬': '6',\n '೭': '7',\n '೮': '8',\n '೯': '9',\n '೦': '0',\n };\n\n var kn = moment.defineLocale('kn', {\n months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split(\n '_'\n ),\n monthsShort: 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split(\n '_'\n ),\n weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),\n weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'),\n longDateFormat: {\n LT: 'A h:mm',\n LTS: 'A h:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm',\n LLLL: 'dddd, D MMMM YYYY, A h:mm',\n },\n calendar: {\n sameDay: '[ಇಂದು] LT',\n nextDay: '[ನಾಳೆ] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[ನಿನ್ನೆ] LT',\n lastWeek: '[ಕೊನೆಯ] dddd, LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s ನಂತರ',\n past: '%s ಹಿಂದೆ',\n s: 'ಕೆಲವು ಕ್ಷಣಗಳು',\n ss: '%d ಸೆಕೆಂಡುಗಳು',\n m: 'ಒಂದು ನಿಮಿಷ',\n mm: '%d ನಿಮಿಷ',\n h: 'ಒಂದು ಗಂಟೆ',\n hh: '%d ಗಂಟೆ',\n d: 'ಒಂದು ದಿನ',\n dd: '%d ದಿನ',\n M: 'ಒಂದು ತಿಂಗಳು',\n MM: '%d ತಿಂಗಳು',\n y: 'ಒಂದು ವರ್ಷ',\n yy: '%d ವರ್ಷ',\n },\n preparse: function (string) {\n return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'ರಾತ್ರಿ') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') {\n return hour;\n } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') {\n return hour >= 10 ? hour : hour + 12;\n } else if (meridiem === 'ಸಂಜೆ') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'ರಾತ್ರಿ';\n } else if (hour < 10) {\n return 'ಬೆಳಿಗ್ಗೆ';\n } else if (hour < 17) {\n return 'ಮಧ್ಯಾಹ್ನ';\n } else if (hour < 20) {\n return 'ಸಂಜೆ';\n } else {\n return 'ರಾತ್ರಿ';\n }\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(ನೇ)/,\n ordinal: function (number) {\n return number + 'ನೇ';\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n },\n });\n\n return kn;\n\n})));\n\n\n/***/ }),\n/* 404 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Korean [ko]\n//! author : Kyungwook, Park : https://github.com/kyungw00k\n//! author : Jeeeyul Lee \n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var ko = moment.defineLocale('ko', {\n months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),\n monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split(\n '_'\n ),\n weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),\n weekdaysShort: '일_월_화_수_목_금_토'.split('_'),\n weekdaysMin: '일_월_화_수_목_금_토'.split('_'),\n longDateFormat: {\n LT: 'A h:mm',\n LTS: 'A h:mm:ss',\n L: 'YYYY.MM.DD.',\n LL: 'YYYY년 MMMM D일',\n LLL: 'YYYY년 MMMM D일 A h:mm',\n LLLL: 'YYYY년 MMMM D일 dddd A h:mm',\n l: 'YYYY.MM.DD.',\n ll: 'YYYY년 MMMM D일',\n lll: 'YYYY년 MMMM D일 A h:mm',\n llll: 'YYYY년 MMMM D일 dddd A h:mm',\n },\n calendar: {\n sameDay: '오늘 LT',\n nextDay: '내일 LT',\n nextWeek: 'dddd LT',\n lastDay: '어제 LT',\n lastWeek: '지난주 dddd LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s 후',\n past: '%s 전',\n s: '몇 초',\n ss: '%d초',\n m: '1분',\n mm: '%d분',\n h: '한 시간',\n hh: '%d시간',\n d: '하루',\n dd: '%d일',\n M: '한 달',\n MM: '%d달',\n y: '일 년',\n yy: '%d년',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(일|월|주)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'DDD':\n return number + '일';\n case 'M':\n return number + '월';\n case 'w':\n case 'W':\n return number + '주';\n default:\n return number;\n }\n },\n meridiemParse: /오전|오후/,\n isPM: function (token) {\n return token === '오후';\n },\n meridiem: function (hour, minute, isUpper) {\n return hour < 12 ? '오전' : '오후';\n },\n });\n\n return ko;\n\n})));\n\n\n/***/ }),\n/* 405 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Kurdish [ku]\n//! author : Shahram Mebashar : https://github.com/ShahramMebashar\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '١',\n '2': '٢',\n '3': '٣',\n '4': '٤',\n '5': '٥',\n '6': '٦',\n '7': '٧',\n '8': '٨',\n '9': '٩',\n '0': '٠',\n },\n numberMap = {\n '١': '1',\n '٢': '2',\n '٣': '3',\n '٤': '4',\n '٥': '5',\n '٦': '6',\n '٧': '7',\n '٨': '8',\n '٩': '9',\n '٠': '0',\n },\n months = [\n 'کانونی دووەم',\n 'شوبات',\n 'ئازار',\n 'نیسان',\n 'ئایار',\n 'حوزەیران',\n 'تەمموز',\n 'ئاب',\n 'ئەیلوول',\n 'تشرینی یەكەم',\n 'تشرینی دووەم',\n 'كانونی یەکەم',\n ];\n\n var ku = moment.defineLocale('ku', {\n months: months,\n monthsShort: months,\n weekdays: 'یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌'.split(\n '_'\n ),\n weekdaysShort: 'یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌'.split(\n '_'\n ),\n weekdaysMin: 'ی_د_س_چ_پ_ه_ش'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n meridiemParse: /ئێواره‌|به‌یانی/,\n isPM: function (input) {\n return /ئێواره‌/.test(input);\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'به‌یانی';\n } else {\n return 'ئێواره‌';\n }\n },\n calendar: {\n sameDay: '[ئه‌مرۆ كاتژمێر] LT',\n nextDay: '[به‌یانی كاتژمێر] LT',\n nextWeek: 'dddd [كاتژمێر] LT',\n lastDay: '[دوێنێ كاتژمێر] LT',\n lastWeek: 'dddd [كاتژمێر] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'له‌ %s',\n past: '%s',\n s: 'چه‌ند چركه‌یه‌ك',\n ss: 'چركه‌ %d',\n m: 'یه‌ك خوله‌ك',\n mm: '%d خوله‌ك',\n h: 'یه‌ك كاتژمێر',\n hh: '%d كاتژمێر',\n d: 'یه‌ك ڕۆژ',\n dd: '%d ڕۆژ',\n M: 'یه‌ك مانگ',\n MM: '%d مانگ',\n y: 'یه‌ك ساڵ',\n yy: '%d ساڵ',\n },\n preparse: function (string) {\n return string\n .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {\n return numberMap[match];\n })\n .replace(/،/g, ',');\n },\n postformat: function (string) {\n return string\n .replace(/\\d/g, function (match) {\n return symbolMap[match];\n })\n .replace(/,/g, '،');\n },\n week: {\n dow: 6, // Saturday is the first day of the week.\n doy: 12, // The week that contains Jan 12th is the first week of the year.\n },\n });\n\n return ku;\n\n})));\n\n\n/***/ }),\n/* 406 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Kyrgyz [ky]\n//! author : Chyngyz Arystan uulu : https://github.com/chyngyz\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var suffixes = {\n 0: '-чү',\n 1: '-чи',\n 2: '-чи',\n 3: '-чү',\n 4: '-чү',\n 5: '-чи',\n 6: '-чы',\n 7: '-чи',\n 8: '-чи',\n 9: '-чу',\n 10: '-чу',\n 20: '-чы',\n 30: '-чу',\n 40: '-чы',\n 50: '-чү',\n 60: '-чы',\n 70: '-чи',\n 80: '-чи',\n 90: '-чу',\n 100: '-чү',\n };\n\n var ky = moment.defineLocale('ky', {\n months: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split(\n '_'\n ),\n monthsShort: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split(\n '_'\n ),\n weekdays: 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split(\n '_'\n ),\n weekdaysShort: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),\n weekdaysMin: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Бүгүн саат] LT',\n nextDay: '[Эртең саат] LT',\n nextWeek: 'dddd [саат] LT',\n lastDay: '[Кечээ саат] LT',\n lastWeek: '[Өткөн аптанын] dddd [күнү] [саат] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s ичинде',\n past: '%s мурун',\n s: 'бирнече секунд',\n ss: '%d секунд',\n m: 'бир мүнөт',\n mm: '%d мүнөт',\n h: 'бир саат',\n hh: '%d саат',\n d: 'бир күн',\n dd: '%d күн',\n M: 'бир ай',\n MM: '%d ай',\n y: 'бир жыл',\n yy: '%d жыл',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(чи|чы|чү|чу)/,\n ordinal: function (number) {\n var a = number % 10,\n b = number >= 100 ? 100 : null;\n return number + (suffixes[number] || suffixes[a] || suffixes[b]);\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return ky;\n\n})));\n\n\n/***/ }),\n/* 407 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Luxembourgish [lb]\n//! author : mweimerskirch : https://github.com/mweimerskirch\n//! author : David Raison : https://github.com/kwisatz\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var format = {\n m: ['eng Minutt', 'enger Minutt'],\n h: ['eng Stonn', 'enger Stonn'],\n d: ['een Dag', 'engem Dag'],\n M: ['ee Mount', 'engem Mount'],\n y: ['ee Joer', 'engem Joer'],\n };\n return withoutSuffix ? format[key][0] : format[key][1];\n }\n function processFutureTime(string) {\n var number = string.substr(0, string.indexOf(' '));\n if (eifelerRegelAppliesToNumber(number)) {\n return 'a ' + string;\n }\n return 'an ' + string;\n }\n function processPastTime(string) {\n var number = string.substr(0, string.indexOf(' '));\n if (eifelerRegelAppliesToNumber(number)) {\n return 'viru ' + string;\n }\n return 'virun ' + string;\n }\n /**\n * Returns true if the word before the given number loses the '-n' ending.\n * e.g. 'an 10 Deeg' but 'a 5 Deeg'\n *\n * @param number {integer}\n * @returns {boolean}\n */\n function eifelerRegelAppliesToNumber(number) {\n number = parseInt(number, 10);\n if (isNaN(number)) {\n return false;\n }\n if (number < 0) {\n // Negative Number --> always true\n return true;\n } else if (number < 10) {\n // Only 1 digit\n if (4 <= number && number <= 7) {\n return true;\n }\n return false;\n } else if (number < 100) {\n // 2 digits\n var lastDigit = number % 10,\n firstDigit = number / 10;\n if (lastDigit === 0) {\n return eifelerRegelAppliesToNumber(firstDigit);\n }\n return eifelerRegelAppliesToNumber(lastDigit);\n } else if (number < 10000) {\n // 3 or 4 digits --> recursively check first digit\n while (number >= 10) {\n number = number / 10;\n }\n return eifelerRegelAppliesToNumber(number);\n } else {\n // Anything larger than 4 digits: recursively check first n-3 digits\n number = number / 1000;\n return eifelerRegelAppliesToNumber(number);\n }\n }\n\n var lb = moment.defineLocale('lb', {\n months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split(\n '_'\n ),\n monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split(\n '_'\n ),\n weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),\n weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm [Auer]',\n LTS: 'H:mm:ss [Auer]',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY H:mm [Auer]',\n LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]',\n },\n calendar: {\n sameDay: '[Haut um] LT',\n sameElse: 'L',\n nextDay: '[Muer um] LT',\n nextWeek: 'dddd [um] LT',\n lastDay: '[Gëschter um] LT',\n lastWeek: function () {\n // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule\n switch (this.day()) {\n case 2:\n case 4:\n return '[Leschten] dddd [um] LT';\n default:\n return '[Leschte] dddd [um] LT';\n }\n },\n },\n relativeTime: {\n future: processFutureTime,\n past: processPastTime,\n s: 'e puer Sekonnen',\n ss: '%d Sekonnen',\n m: processRelativeTime,\n mm: '%d Minutten',\n h: processRelativeTime,\n hh: '%d Stonnen',\n d: processRelativeTime,\n dd: '%d Deeg',\n M: processRelativeTime,\n MM: '%d Méint',\n y: processRelativeTime,\n yy: '%d Joer',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return lb;\n\n})));\n\n\n/***/ }),\n/* 408 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Lao [lo]\n//! author : Ryan Hart : https://github.com/ryanhart2\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var lo = moment.defineLocale('lo', {\n months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(\n '_'\n ),\n monthsShort: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(\n '_'\n ),\n weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),\n weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),\n weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'ວັນdddd D MMMM YYYY HH:mm',\n },\n meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,\n isPM: function (input) {\n return input === 'ຕອນແລງ';\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'ຕອນເຊົ້າ';\n } else {\n return 'ຕອນແລງ';\n }\n },\n calendar: {\n sameDay: '[ມື້ນີ້ເວລາ] LT',\n nextDay: '[ມື້ອື່ນເວລາ] LT',\n nextWeek: '[ວັນ]dddd[ໜ້າເວລາ] LT',\n lastDay: '[ມື້ວານນີ້ເວລາ] LT',\n lastWeek: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'ອີກ %s',\n past: '%sຜ່ານມາ',\n s: 'ບໍ່ເທົ່າໃດວິນາທີ',\n ss: '%d ວິນາທີ',\n m: '1 ນາທີ',\n mm: '%d ນາທີ',\n h: '1 ຊົ່ວໂມງ',\n hh: '%d ຊົ່ວໂມງ',\n d: '1 ມື້',\n dd: '%d ມື້',\n M: '1 ເດືອນ',\n MM: '%d ເດືອນ',\n y: '1 ປີ',\n yy: '%d ປີ',\n },\n dayOfMonthOrdinalParse: /(ທີ່)\\d{1,2}/,\n ordinal: function (number) {\n return 'ທີ່' + number;\n },\n });\n\n return lo;\n\n})));\n\n\n/***/ }),\n/* 409 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Lithuanian [lt]\n//! author : Mindaugas Mozūras : https://github.com/mmozuras\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var units = {\n ss: 'sekundė_sekundžių_sekundes',\n m: 'minutė_minutės_minutę',\n mm: 'minutės_minučių_minutes',\n h: 'valanda_valandos_valandą',\n hh: 'valandos_valandų_valandas',\n d: 'diena_dienos_dieną',\n dd: 'dienos_dienų_dienas',\n M: 'mėnuo_mėnesio_mėnesį',\n MM: 'mėnesiai_mėnesių_mėnesius',\n y: 'metai_metų_metus',\n yy: 'metai_metų_metus',\n };\n function translateSeconds(number, withoutSuffix, key, isFuture) {\n if (withoutSuffix) {\n return 'kelios sekundės';\n } else {\n return isFuture ? 'kelių sekundžių' : 'kelias sekundes';\n }\n }\n function translateSingular(number, withoutSuffix, key, isFuture) {\n return withoutSuffix\n ? forms(key)[0]\n : isFuture\n ? forms(key)[1]\n : forms(key)[2];\n }\n function special(number) {\n return number % 10 === 0 || (number > 10 && number < 20);\n }\n function forms(key) {\n return units[key].split('_');\n }\n function translate(number, withoutSuffix, key, isFuture) {\n var result = number + ' ';\n if (number === 1) {\n return (\n result + translateSingular(number, withoutSuffix, key[0], isFuture)\n );\n } else if (withoutSuffix) {\n return result + (special(number) ? forms(key)[1] : forms(key)[0]);\n } else {\n if (isFuture) {\n return result + forms(key)[1];\n } else {\n return result + (special(number) ? forms(key)[1] : forms(key)[2]);\n }\n }\n }\n var lt = moment.defineLocale('lt', {\n months: {\n format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split(\n '_'\n ),\n standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split(\n '_'\n ),\n isFormat: /D[oD]?(\\[[^\\[\\]]*\\]|\\s)+MMMM?|MMMM?(\\[[^\\[\\]]*\\]|\\s)+D[oD]?/,\n },\n monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),\n weekdays: {\n format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split(\n '_'\n ),\n standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split(\n '_'\n ),\n isFormat: /dddd HH:mm/,\n },\n weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),\n weekdaysMin: 'S_P_A_T_K_Pn_Š'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY-MM-DD',\n LL: 'YYYY [m.] MMMM D [d.]',\n LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',\n LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',\n l: 'YYYY-MM-DD',\n ll: 'YYYY [m.] MMMM D [d.]',\n lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',\n llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]',\n },\n calendar: {\n sameDay: '[Šiandien] LT',\n nextDay: '[Rytoj] LT',\n nextWeek: 'dddd LT',\n lastDay: '[Vakar] LT',\n lastWeek: '[Praėjusį] dddd LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'po %s',\n past: 'prieš %s',\n s: translateSeconds,\n ss: translate,\n m: translateSingular,\n mm: translate,\n h: translateSingular,\n hh: translate,\n d: translateSingular,\n dd: translate,\n M: translateSingular,\n MM: translate,\n y: translateSingular,\n yy: translate,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-oji/,\n ordinal: function (number) {\n return number + '-oji';\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return lt;\n\n})));\n\n\n/***/ }),\n/* 410 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Latvian [lv]\n//! author : Kristaps Karlsons : https://github.com/skakri\n//! author : Jānis Elmeris : https://github.com/JanisE\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var units = {\n ss: 'sekundes_sekundēm_sekunde_sekundes'.split('_'),\n m: 'minūtes_minūtēm_minūte_minūtes'.split('_'),\n mm: 'minūtes_minūtēm_minūte_minūtes'.split('_'),\n h: 'stundas_stundām_stunda_stundas'.split('_'),\n hh: 'stundas_stundām_stunda_stundas'.split('_'),\n d: 'dienas_dienām_diena_dienas'.split('_'),\n dd: 'dienas_dienām_diena_dienas'.split('_'),\n M: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),\n MM: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),\n y: 'gada_gadiem_gads_gadi'.split('_'),\n yy: 'gada_gadiem_gads_gadi'.split('_'),\n };\n /**\n * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.\n */\n function format(forms, number, withoutSuffix) {\n if (withoutSuffix) {\n // E.g. \"21 minūte\", \"3 minūtes\".\n return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3];\n } else {\n // E.g. \"21 minūtes\" as in \"pēc 21 minūtes\".\n // E.g. \"3 minūtēm\" as in \"pēc 3 minūtēm\".\n return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1];\n }\n }\n function relativeTimeWithPlural(number, withoutSuffix, key) {\n return number + ' ' + format(units[key], number, withoutSuffix);\n }\n function relativeTimeWithSingular(number, withoutSuffix, key) {\n return format(units[key], number, withoutSuffix);\n }\n function relativeSeconds(number, withoutSuffix) {\n return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';\n }\n\n var lv = moment.defineLocale('lv', {\n months: 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split(\n '_'\n ),\n monthsShort: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),\n weekdays: 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split(\n '_'\n ),\n weekdaysShort: 'Sv_P_O_T_C_Pk_S'.split('_'),\n weekdaysMin: 'Sv_P_O_T_C_Pk_S'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY.',\n LL: 'YYYY. [gada] D. MMMM',\n LLL: 'YYYY. [gada] D. MMMM, HH:mm',\n LLLL: 'YYYY. [gada] D. MMMM, dddd, HH:mm',\n },\n calendar: {\n sameDay: '[Šodien pulksten] LT',\n nextDay: '[Rīt pulksten] LT',\n nextWeek: 'dddd [pulksten] LT',\n lastDay: '[Vakar pulksten] LT',\n lastWeek: '[Pagājušā] dddd [pulksten] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'pēc %s',\n past: 'pirms %s',\n s: relativeSeconds,\n ss: relativeTimeWithPlural,\n m: relativeTimeWithSingular,\n mm: relativeTimeWithPlural,\n h: relativeTimeWithSingular,\n hh: relativeTimeWithPlural,\n d: relativeTimeWithSingular,\n dd: relativeTimeWithPlural,\n M: relativeTimeWithSingular,\n MM: relativeTimeWithPlural,\n y: relativeTimeWithSingular,\n yy: relativeTimeWithPlural,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return lv;\n\n})));\n\n\n/***/ }),\n/* 411 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Montenegrin [me]\n//! author : Miodrag Nikač : https://github.com/miodragnikac\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var translator = {\n words: {\n //Different grammatical cases\n ss: ['sekund', 'sekunda', 'sekundi'],\n m: ['jedan minut', 'jednog minuta'],\n mm: ['minut', 'minuta', 'minuta'],\n h: ['jedan sat', 'jednog sata'],\n hh: ['sat', 'sata', 'sati'],\n dd: ['dan', 'dana', 'dana'],\n MM: ['mjesec', 'mjeseca', 'mjeseci'],\n yy: ['godina', 'godine', 'godina'],\n },\n correctGrammaticalCase: function (number, wordKey) {\n return number === 1\n ? wordKey[0]\n : number >= 2 && number <= 4\n ? wordKey[1]\n : wordKey[2];\n },\n translate: function (number, withoutSuffix, key) {\n var wordKey = translator.words[key];\n if (key.length === 1) {\n return withoutSuffix ? wordKey[0] : wordKey[1];\n } else {\n return (\n number +\n ' ' +\n translator.correctGrammaticalCase(number, wordKey)\n );\n }\n },\n };\n\n var me = moment.defineLocale('me', {\n months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(\n '_'\n ),\n monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(\n '_'\n ),\n weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),\n weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY H:mm',\n LLLL: 'dddd, D. MMMM YYYY H:mm',\n },\n calendar: {\n sameDay: '[danas u] LT',\n nextDay: '[sjutra u] LT',\n\n nextWeek: function () {\n switch (this.day()) {\n case 0:\n return '[u] [nedjelju] [u] LT';\n case 3:\n return '[u] [srijedu] [u] LT';\n case 6:\n return '[u] [subotu] [u] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[u] dddd [u] LT';\n }\n },\n lastDay: '[juče u] LT',\n lastWeek: function () {\n var lastWeekDays = [\n '[prošle] [nedjelje] [u] LT',\n '[prošlog] [ponedjeljka] [u] LT',\n '[prošlog] [utorka] [u] LT',\n '[prošle] [srijede] [u] LT',\n '[prošlog] [četvrtka] [u] LT',\n '[prošlog] [petka] [u] LT',\n '[prošle] [subote] [u] LT',\n ];\n return lastWeekDays[this.day()];\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'za %s',\n past: 'prije %s',\n s: 'nekoliko sekundi',\n ss: translator.translate,\n m: translator.translate,\n mm: translator.translate,\n h: translator.translate,\n hh: translator.translate,\n d: 'dan',\n dd: translator.translate,\n M: 'mjesec',\n MM: translator.translate,\n y: 'godinu',\n yy: translator.translate,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return me;\n\n})));\n\n\n/***/ }),\n/* 412 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Maori [mi]\n//! author : John Corrigan : https://github.com/johnideal\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var mi = moment.defineLocale('mi', {\n months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split(\n '_'\n ),\n monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split(\n '_'\n ),\n monthsRegex: /(?:['a-z\\u0101\\u014D\\u016B]+\\-?){1,3}/i,\n monthsStrictRegex: /(?:['a-z\\u0101\\u014D\\u016B]+\\-?){1,3}/i,\n monthsShortRegex: /(?:['a-z\\u0101\\u014D\\u016B]+\\-?){1,3}/i,\n monthsShortStrictRegex: /(?:['a-z\\u0101\\u014D\\u016B]+\\-?){1,2}/i,\n weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),\n weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),\n weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY [i] HH:mm',\n LLLL: 'dddd, D MMMM YYYY [i] HH:mm',\n },\n calendar: {\n sameDay: '[i teie mahana, i] LT',\n nextDay: '[apopo i] LT',\n nextWeek: 'dddd [i] LT',\n lastDay: '[inanahi i] LT',\n lastWeek: 'dddd [whakamutunga i] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'i roto i %s',\n past: '%s i mua',\n s: 'te hēkona ruarua',\n ss: '%d hēkona',\n m: 'he meneti',\n mm: '%d meneti',\n h: 'te haora',\n hh: '%d haora',\n d: 'he ra',\n dd: '%d ra',\n M: 'he marama',\n MM: '%d marama',\n y: 'he tau',\n yy: '%d tau',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return mi;\n\n})));\n\n\n/***/ }),\n/* 413 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Macedonian [mk]\n//! author : Borislav Mickov : https://github.com/B0k0\n//! author : Sashko Todorov : https://github.com/bkyceh\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var mk = moment.defineLocale('mk', {\n months: 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split(\n '_'\n ),\n monthsShort: 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),\n weekdays: 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split(\n '_'\n ),\n weekdaysShort: 'нед_пон_вто_сре_чет_пет_саб'.split('_'),\n weekdaysMin: 'нe_пo_вт_ср_че_пе_сa'.split('_'),\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'D.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY H:mm',\n LLLL: 'dddd, D MMMM YYYY H:mm',\n },\n calendar: {\n sameDay: '[Денес во] LT',\n nextDay: '[Утре во] LT',\n nextWeek: '[Во] dddd [во] LT',\n lastDay: '[Вчера во] LT',\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n case 3:\n case 6:\n return '[Изминатата] dddd [во] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[Изминатиот] dddd [во] LT';\n }\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'за %s',\n past: 'пред %s',\n s: 'неколку секунди',\n ss: '%d секунди',\n m: 'една минута',\n mm: '%d минути',\n h: 'еден час',\n hh: '%d часа',\n d: 'еден ден',\n dd: '%d дена',\n M: 'еден месец',\n MM: '%d месеци',\n y: 'една година',\n yy: '%d години',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(ев|ен|ти|ви|ри|ми)/,\n ordinal: function (number) {\n var lastDigit = number % 10,\n last2Digits = number % 100;\n if (number === 0) {\n return number + '-ев';\n } else if (last2Digits === 0) {\n return number + '-ен';\n } else if (last2Digits > 10 && last2Digits < 20) {\n return number + '-ти';\n } else if (lastDigit === 1) {\n return number + '-ви';\n } else if (lastDigit === 2) {\n return number + '-ри';\n } else if (lastDigit === 7 || lastDigit === 8) {\n return number + '-ми';\n } else {\n return number + '-ти';\n }\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return mk;\n\n})));\n\n\n/***/ }),\n/* 414 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Malayalam [ml]\n//! author : Floyd Pink : https://github.com/floydpink\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var ml = moment.defineLocale('ml', {\n months: 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split(\n '_'\n ),\n monthsShort: 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split(\n '_'\n ),\n weekdaysShort: 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),\n weekdaysMin: 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),\n longDateFormat: {\n LT: 'A h:mm -നു',\n LTS: 'A h:mm:ss -നു',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm -നു',\n LLLL: 'dddd, D MMMM YYYY, A h:mm -നു',\n },\n calendar: {\n sameDay: '[ഇന്ന്] LT',\n nextDay: '[നാളെ] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[ഇന്നലെ] LT',\n lastWeek: '[കഴിഞ്ഞ] dddd, LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s കഴിഞ്ഞ്',\n past: '%s മുൻപ്',\n s: 'അൽപ നിമിഷങ്ങൾ',\n ss: '%d സെക്കൻഡ്',\n m: 'ഒരു മിനിറ്റ്',\n mm: '%d മിനിറ്റ്',\n h: 'ഒരു മണിക്കൂർ',\n hh: '%d മണിക്കൂർ',\n d: 'ഒരു ദിവസം',\n dd: '%d ദിവസം',\n M: 'ഒരു മാസം',\n MM: '%d മാസം',\n y: 'ഒരു വർഷം',\n yy: '%d വർഷം',\n },\n meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (\n (meridiem === 'രാത്രി' && hour >= 4) ||\n meridiem === 'ഉച്ച കഴിഞ്ഞ്' ||\n meridiem === 'വൈകുന്നേരം'\n ) {\n return hour + 12;\n } else {\n return hour;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'രാത്രി';\n } else if (hour < 12) {\n return 'രാവിലെ';\n } else if (hour < 17) {\n return 'ഉച്ച കഴിഞ്ഞ്';\n } else if (hour < 20) {\n return 'വൈകുന്നേരം';\n } else {\n return 'രാത്രി';\n }\n },\n });\n\n return ml;\n\n})));\n\n\n/***/ }),\n/* 415 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Mongolian [mn]\n//! author : Javkhlantugs Nyamdorj : https://github.com/javkhaanj7\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function translate(number, withoutSuffix, key, isFuture) {\n switch (key) {\n case 's':\n return withoutSuffix ? 'хэдхэн секунд' : 'хэдхэн секундын';\n case 'ss':\n return number + (withoutSuffix ? ' секунд' : ' секундын');\n case 'm':\n case 'mm':\n return number + (withoutSuffix ? ' минут' : ' минутын');\n case 'h':\n case 'hh':\n return number + (withoutSuffix ? ' цаг' : ' цагийн');\n case 'd':\n case 'dd':\n return number + (withoutSuffix ? ' өдөр' : ' өдрийн');\n case 'M':\n case 'MM':\n return number + (withoutSuffix ? ' сар' : ' сарын');\n case 'y':\n case 'yy':\n return number + (withoutSuffix ? ' жил' : ' жилийн');\n default:\n return number;\n }\n }\n\n var mn = moment.defineLocale('mn', {\n months: 'Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар'.split(\n '_'\n ),\n monthsShort: '1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба'.split('_'),\n weekdaysShort: 'Ням_Дав_Мяг_Лха_Пүр_Баа_Бям'.split('_'),\n weekdaysMin: 'Ня_Да_Мя_Лх_Пү_Ба_Бя'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY-MM-DD',\n LL: 'YYYY оны MMMMын D',\n LLL: 'YYYY оны MMMMын D HH:mm',\n LLLL: 'dddd, YYYY оны MMMMын D HH:mm',\n },\n meridiemParse: /ҮӨ|ҮХ/i,\n isPM: function (input) {\n return input === 'ҮХ';\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'ҮӨ';\n } else {\n return 'ҮХ';\n }\n },\n calendar: {\n sameDay: '[Өнөөдөр] LT',\n nextDay: '[Маргааш] LT',\n nextWeek: '[Ирэх] dddd LT',\n lastDay: '[Өчигдөр] LT',\n lastWeek: '[Өнгөрсөн] dddd LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s дараа',\n past: '%s өмнө',\n s: translate,\n ss: translate,\n m: translate,\n mm: translate,\n h: translate,\n hh: translate,\n d: translate,\n dd: translate,\n M: translate,\n MM: translate,\n y: translate,\n yy: translate,\n },\n dayOfMonthOrdinalParse: /\\d{1,2} өдөр/,\n ordinal: function (number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'DDD':\n return number + ' өдөр';\n default:\n return number;\n }\n },\n });\n\n return mn;\n\n})));\n\n\n/***/ }),\n/* 416 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Marathi [mr]\n//! author : Harshad Kale : https://github.com/kalehv\n//! author : Vivek Athalye : https://github.com/vnathalye\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '१',\n '2': '२',\n '3': '३',\n '4': '४',\n '5': '५',\n '6': '६',\n '7': '७',\n '8': '८',\n '9': '९',\n '0': '०',\n },\n numberMap = {\n '१': '1',\n '२': '2',\n '३': '3',\n '४': '4',\n '५': '5',\n '६': '6',\n '७': '7',\n '८': '8',\n '९': '9',\n '०': '0',\n };\n\n function relativeTimeMr(number, withoutSuffix, string, isFuture) {\n var output = '';\n if (withoutSuffix) {\n switch (string) {\n case 's':\n output = 'काही सेकंद';\n break;\n case 'ss':\n output = '%d सेकंद';\n break;\n case 'm':\n output = 'एक मिनिट';\n break;\n case 'mm':\n output = '%d मिनिटे';\n break;\n case 'h':\n output = 'एक तास';\n break;\n case 'hh':\n output = '%d तास';\n break;\n case 'd':\n output = 'एक दिवस';\n break;\n case 'dd':\n output = '%d दिवस';\n break;\n case 'M':\n output = 'एक महिना';\n break;\n case 'MM':\n output = '%d महिने';\n break;\n case 'y':\n output = 'एक वर्ष';\n break;\n case 'yy':\n output = '%d वर्षे';\n break;\n }\n } else {\n switch (string) {\n case 's':\n output = 'काही सेकंदां';\n break;\n case 'ss':\n output = '%d सेकंदां';\n break;\n case 'm':\n output = 'एका मिनिटा';\n break;\n case 'mm':\n output = '%d मिनिटां';\n break;\n case 'h':\n output = 'एका तासा';\n break;\n case 'hh':\n output = '%d तासां';\n break;\n case 'd':\n output = 'एका दिवसा';\n break;\n case 'dd':\n output = '%d दिवसां';\n break;\n case 'M':\n output = 'एका महिन्या';\n break;\n case 'MM':\n output = '%d महिन्यां';\n break;\n case 'y':\n output = 'एका वर्षा';\n break;\n case 'yy':\n output = '%d वर्षां';\n break;\n }\n }\n return output.replace(/%d/i, number);\n }\n\n var mr = moment.defineLocale('mr', {\n months: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(\n '_'\n ),\n monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),\n weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),\n weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),\n longDateFormat: {\n LT: 'A h:mm वाजता',\n LTS: 'A h:mm:ss वाजता',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm वाजता',\n LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता',\n },\n calendar: {\n sameDay: '[आज] LT',\n nextDay: '[उद्या] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[काल] LT',\n lastWeek: '[मागील] dddd, LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%sमध्ये',\n past: '%sपूर्वी',\n s: relativeTimeMr,\n ss: relativeTimeMr,\n m: relativeTimeMr,\n mm: relativeTimeMr,\n h: relativeTimeMr,\n hh: relativeTimeMr,\n d: relativeTimeMr,\n dd: relativeTimeMr,\n M: relativeTimeMr,\n MM: relativeTimeMr,\n y: relativeTimeMr,\n yy: relativeTimeMr,\n },\n preparse: function (string) {\n return string.replace(/[१२३४५६७८९०]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n meridiemParse: /पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'पहाटे' || meridiem === 'सकाळी') {\n return hour;\n } else if (\n meridiem === 'दुपारी' ||\n meridiem === 'सायंकाळी' ||\n meridiem === 'रात्री'\n ) {\n return hour >= 12 ? hour : hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour >= 0 && hour < 6) {\n return 'पहाटे';\n } else if (hour < 12) {\n return 'सकाळी';\n } else if (hour < 17) {\n return 'दुपारी';\n } else if (hour < 20) {\n return 'सायंकाळी';\n } else {\n return 'रात्री';\n }\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n },\n });\n\n return mr;\n\n})));\n\n\n/***/ }),\n/* 417 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Malay [ms]\n//! author : Weldan Jamili : https://github.com/weldan\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var ms = moment.defineLocale('ms', {\n months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(\n '_'\n ),\n monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),\n weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),\n weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),\n weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),\n longDateFormat: {\n LT: 'HH.mm',\n LTS: 'HH.mm.ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY [pukul] HH.mm',\n LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',\n },\n meridiemParse: /pagi|tengahari|petang|malam/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'pagi') {\n return hour;\n } else if (meridiem === 'tengahari') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === 'petang' || meridiem === 'malam') {\n return hour + 12;\n }\n },\n meridiem: function (hours, minutes, isLower) {\n if (hours < 11) {\n return 'pagi';\n } else if (hours < 15) {\n return 'tengahari';\n } else if (hours < 19) {\n return 'petang';\n } else {\n return 'malam';\n }\n },\n calendar: {\n sameDay: '[Hari ini pukul] LT',\n nextDay: '[Esok pukul] LT',\n nextWeek: 'dddd [pukul] LT',\n lastDay: '[Kelmarin pukul] LT',\n lastWeek: 'dddd [lepas pukul] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'dalam %s',\n past: '%s yang lepas',\n s: 'beberapa saat',\n ss: '%d saat',\n m: 'seminit',\n mm: '%d minit',\n h: 'sejam',\n hh: '%d jam',\n d: 'sehari',\n dd: '%d hari',\n M: 'sebulan',\n MM: '%d bulan',\n y: 'setahun',\n yy: '%d tahun',\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return ms;\n\n})));\n\n\n/***/ }),\n/* 418 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Malay [ms-my]\n//! note : DEPRECATED, the correct one is [ms]\n//! author : Weldan Jamili : https://github.com/weldan\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var msMy = moment.defineLocale('ms-my', {\n months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(\n '_'\n ),\n monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),\n weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),\n weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),\n weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),\n longDateFormat: {\n LT: 'HH.mm',\n LTS: 'HH.mm.ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY [pukul] HH.mm',\n LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',\n },\n meridiemParse: /pagi|tengahari|petang|malam/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'pagi') {\n return hour;\n } else if (meridiem === 'tengahari') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === 'petang' || meridiem === 'malam') {\n return hour + 12;\n }\n },\n meridiem: function (hours, minutes, isLower) {\n if (hours < 11) {\n return 'pagi';\n } else if (hours < 15) {\n return 'tengahari';\n } else if (hours < 19) {\n return 'petang';\n } else {\n return 'malam';\n }\n },\n calendar: {\n sameDay: '[Hari ini pukul] LT',\n nextDay: '[Esok pukul] LT',\n nextWeek: 'dddd [pukul] LT',\n lastDay: '[Kelmarin pukul] LT',\n lastWeek: 'dddd [lepas pukul] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'dalam %s',\n past: '%s yang lepas',\n s: 'beberapa saat',\n ss: '%d saat',\n m: 'seminit',\n mm: '%d minit',\n h: 'sejam',\n hh: '%d jam',\n d: 'sehari',\n dd: '%d hari',\n M: 'sebulan',\n MM: '%d bulan',\n y: 'setahun',\n yy: '%d tahun',\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return msMy;\n\n})));\n\n\n/***/ }),\n/* 419 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Maltese (Malta) [mt]\n//! author : Alessandro Maruccia : https://github.com/alesma\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var mt = moment.defineLocale('mt', {\n months: 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split(\n '_'\n ),\n monthsShort: 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'),\n weekdays: 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split(\n '_'\n ),\n weekdaysShort: 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'),\n weekdaysMin: 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Illum fil-]LT',\n nextDay: '[Għada fil-]LT',\n nextWeek: 'dddd [fil-]LT',\n lastDay: '[Il-bieraħ fil-]LT',\n lastWeek: 'dddd [li għadda] [fil-]LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'f’ %s',\n past: '%s ilu',\n s: 'ftit sekondi',\n ss: '%d sekondi',\n m: 'minuta',\n mm: '%d minuti',\n h: 'siegħa',\n hh: '%d siegħat',\n d: 'ġurnata',\n dd: '%d ġranet',\n M: 'xahar',\n MM: '%d xhur',\n y: 'sena',\n yy: '%d sni',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return mt;\n\n})));\n\n\n/***/ }),\n/* 420 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Burmese [my]\n//! author : Squar team, mysquar.com\n//! author : David Rossellat : https://github.com/gholadr\n//! author : Tin Aung Lin : https://github.com/thanyawzinmin\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '၁',\n '2': '၂',\n '3': '၃',\n '4': '၄',\n '5': '၅',\n '6': '၆',\n '7': '၇',\n '8': '၈',\n '9': '၉',\n '0': '၀',\n },\n numberMap = {\n '၁': '1',\n '၂': '2',\n '၃': '3',\n '၄': '4',\n '၅': '5',\n '၆': '6',\n '၇': '7',\n '၈': '8',\n '၉': '9',\n '၀': '0',\n };\n\n var my = moment.defineLocale('my', {\n months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split(\n '_'\n ),\n monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),\n weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split(\n '_'\n ),\n weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),\n weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),\n\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[ယနေ.] LT [မှာ]',\n nextDay: '[မနက်ဖြန်] LT [မှာ]',\n nextWeek: 'dddd LT [မှာ]',\n lastDay: '[မနေ.က] LT [မှာ]',\n lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'လာမည့် %s မှာ',\n past: 'လွန်ခဲ့သော %s က',\n s: 'စက္ကန်.အနည်းငယ်',\n ss: '%d စက္ကန့်',\n m: 'တစ်မိနစ်',\n mm: '%d မိနစ်',\n h: 'တစ်နာရီ',\n hh: '%d နာရီ',\n d: 'တစ်ရက်',\n dd: '%d ရက်',\n M: 'တစ်လ',\n MM: '%d လ',\n y: 'တစ်နှစ်',\n yy: '%d နှစ်',\n },\n preparse: function (string) {\n return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return my;\n\n})));\n\n\n/***/ }),\n/* 421 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Norwegian Bokmål [nb]\n//! authors : Espen Hovlandsdal : https://github.com/rexxars\n//! Sigurd Gartmann : https://github.com/sigurdga\n//! Stephen Ramthun : https://github.com/stephenramthun\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var nb = moment.defineLocale('nb', {\n months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(\n '_'\n ),\n monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),\n weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'),\n weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY [kl.] HH:mm',\n LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',\n },\n calendar: {\n sameDay: '[i dag kl.] LT',\n nextDay: '[i morgen kl.] LT',\n nextWeek: 'dddd [kl.] LT',\n lastDay: '[i går kl.] LT',\n lastWeek: '[forrige] dddd [kl.] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'om %s',\n past: '%s siden',\n s: 'noen sekunder',\n ss: '%d sekunder',\n m: 'ett minutt',\n mm: '%d minutter',\n h: 'en time',\n hh: '%d timer',\n d: 'en dag',\n dd: '%d dager',\n M: 'en måned',\n MM: '%d måneder',\n y: 'ett år',\n yy: '%d år',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return nb;\n\n})));\n\n\n/***/ }),\n/* 422 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Nepalese [ne]\n//! author : suvash : https://github.com/suvash\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '१',\n '2': '२',\n '3': '३',\n '4': '४',\n '5': '५',\n '6': '६',\n '7': '७',\n '8': '८',\n '9': '९',\n '0': '०',\n },\n numberMap = {\n '१': '1',\n '२': '2',\n '३': '3',\n '४': '4',\n '५': '5',\n '६': '6',\n '७': '7',\n '८': '8',\n '९': '9',\n '०': '0',\n };\n\n var ne = moment.defineLocale('ne', {\n months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split(\n '_'\n ),\n monthsShort: 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split(\n '_'\n ),\n weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),\n weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'Aको h:mm बजे',\n LTS: 'Aको h:mm:ss बजे',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, Aको h:mm बजे',\n LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे',\n },\n preparse: function (string) {\n return string.replace(/[१२३४५६७८९०]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n meridiemParse: /राति|बिहान|दिउँसो|साँझ/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'राति') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'बिहान') {\n return hour;\n } else if (meridiem === 'दिउँसो') {\n return hour >= 10 ? hour : hour + 12;\n } else if (meridiem === 'साँझ') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 3) {\n return 'राति';\n } else if (hour < 12) {\n return 'बिहान';\n } else if (hour < 16) {\n return 'दिउँसो';\n } else if (hour < 20) {\n return 'साँझ';\n } else {\n return 'राति';\n }\n },\n calendar: {\n sameDay: '[आज] LT',\n nextDay: '[भोलि] LT',\n nextWeek: '[आउँदो] dddd[,] LT',\n lastDay: '[हिजो] LT',\n lastWeek: '[गएको] dddd[,] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%sमा',\n past: '%s अगाडि',\n s: 'केही क्षण',\n ss: '%d सेकेण्ड',\n m: 'एक मिनेट',\n mm: '%d मिनेट',\n h: 'एक घण्टा',\n hh: '%d घण्टा',\n d: 'एक दिन',\n dd: '%d दिन',\n M: 'एक महिना',\n MM: '%d महिना',\n y: 'एक बर्ष',\n yy: '%d बर्ष',\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n },\n });\n\n return ne;\n\n})));\n\n\n/***/ }),\n/* 423 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Dutch [nl]\n//! author : Joris Röling : https://github.com/jorisroling\n//! author : Jacob Middag : https://github.com/middagj\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split(\n '_'\n ),\n monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split(\n '_'\n ),\n monthsParse = [\n /^jan/i,\n /^feb/i,\n /^maart|mrt.?$/i,\n /^apr/i,\n /^mei$/i,\n /^jun[i.]?$/i,\n /^jul[i.]?$/i,\n /^aug/i,\n /^sep/i,\n /^okt/i,\n /^nov/i,\n /^dec/i,\n ],\n monthsRegex = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\\.?|feb\\.?|mrt\\.?|apr\\.?|ju[nl]\\.?|aug\\.?|sep\\.?|okt\\.?|nov\\.?|dec\\.?)/i;\n\n var nl = moment.defineLocale('nl', {\n months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split(\n '_'\n ),\n monthsShort: function (m, format) {\n if (!m) {\n return monthsShortWithDots;\n } else if (/-MMM-/.test(format)) {\n return monthsShortWithoutDots[m.month()];\n } else {\n return monthsShortWithDots[m.month()];\n }\n },\n\n monthsRegex: monthsRegex,\n monthsShortRegex: monthsRegex,\n monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,\n monthsShortStrictRegex: /^(jan\\.?|feb\\.?|mrt\\.?|apr\\.?|mei|ju[nl]\\.?|aug\\.?|sep\\.?|okt\\.?|nov\\.?|dec\\.?)/i,\n\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n\n weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split(\n '_'\n ),\n weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),\n weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD-MM-YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[vandaag om] LT',\n nextDay: '[morgen om] LT',\n nextWeek: 'dddd [om] LT',\n lastDay: '[gisteren om] LT',\n lastWeek: '[afgelopen] dddd [om] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'over %s',\n past: '%s geleden',\n s: 'een paar seconden',\n ss: '%d seconden',\n m: 'één minuut',\n mm: '%d minuten',\n h: 'één uur',\n hh: '%d uur',\n d: 'één dag',\n dd: '%d dagen',\n M: 'één maand',\n MM: '%d maanden',\n y: 'één jaar',\n yy: '%d jaar',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(ste|de)/,\n ordinal: function (number) {\n return (\n number +\n (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')\n );\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return nl;\n\n})));\n\n\n/***/ }),\n/* 424 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Dutch (Belgium) [nl-be]\n//! author : Joris Röling : https://github.com/jorisroling\n//! author : Jacob Middag : https://github.com/middagj\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split(\n '_'\n ),\n monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split(\n '_'\n ),\n monthsParse = [\n /^jan/i,\n /^feb/i,\n /^maart|mrt.?$/i,\n /^apr/i,\n /^mei$/i,\n /^jun[i.]?$/i,\n /^jul[i.]?$/i,\n /^aug/i,\n /^sep/i,\n /^okt/i,\n /^nov/i,\n /^dec/i,\n ],\n monthsRegex = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\\.?|feb\\.?|mrt\\.?|apr\\.?|ju[nl]\\.?|aug\\.?|sep\\.?|okt\\.?|nov\\.?|dec\\.?)/i;\n\n var nlBe = moment.defineLocale('nl-be', {\n months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split(\n '_'\n ),\n monthsShort: function (m, format) {\n if (!m) {\n return monthsShortWithDots;\n } else if (/-MMM-/.test(format)) {\n return monthsShortWithoutDots[m.month()];\n } else {\n return monthsShortWithDots[m.month()];\n }\n },\n\n monthsRegex: monthsRegex,\n monthsShortRegex: monthsRegex,\n monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,\n monthsShortStrictRegex: /^(jan\\.?|feb\\.?|mrt\\.?|apr\\.?|mei|ju[nl]\\.?|aug\\.?|sep\\.?|okt\\.?|nov\\.?|dec\\.?)/i,\n\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n\n weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split(\n '_'\n ),\n weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),\n weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[vandaag om] LT',\n nextDay: '[morgen om] LT',\n nextWeek: 'dddd [om] LT',\n lastDay: '[gisteren om] LT',\n lastWeek: '[afgelopen] dddd [om] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'over %s',\n past: '%s geleden',\n s: 'een paar seconden',\n ss: '%d seconden',\n m: 'één minuut',\n mm: '%d minuten',\n h: 'één uur',\n hh: '%d uur',\n d: 'één dag',\n dd: '%d dagen',\n M: 'één maand',\n MM: '%d maanden',\n y: 'één jaar',\n yy: '%d jaar',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(ste|de)/,\n ordinal: function (number) {\n return (\n number +\n (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')\n );\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return nlBe;\n\n})));\n\n\n/***/ }),\n/* 425 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Nynorsk [nn]\n//! authors : https://github.com/mechuwind\n//! Stephen Ramthun : https://github.com/stephenramthun\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var nn = moment.defineLocale('nn', {\n months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(\n '_'\n ),\n monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),\n weekdaysShort: 'su._må._ty._on._to._fr._lau.'.split('_'),\n weekdaysMin: 'su_må_ty_on_to_fr_la'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY [kl.] H:mm',\n LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',\n },\n calendar: {\n sameDay: '[I dag klokka] LT',\n nextDay: '[I morgon klokka] LT',\n nextWeek: 'dddd [klokka] LT',\n lastDay: '[I går klokka] LT',\n lastWeek: '[Føregåande] dddd [klokka] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'om %s',\n past: '%s sidan',\n s: 'nokre sekund',\n ss: '%d sekund',\n m: 'eit minutt',\n mm: '%d minutt',\n h: 'ein time',\n hh: '%d timar',\n d: 'ein dag',\n dd: '%d dagar',\n M: 'ein månad',\n MM: '%d månader',\n y: 'eit år',\n yy: '%d år',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return nn;\n\n})));\n\n\n/***/ }),\n/* 426 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Occitan, lengadocian dialecte [oc-lnc]\n//! author : Quentin PAGÈS : https://github.com/Quenty31\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var ocLnc = moment.defineLocale('oc-lnc', {\n months: {\n standalone: 'genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre'.split(\n '_'\n ),\n format: \"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre\".split(\n '_'\n ),\n isFormat: /D[oD]?(\\s)+MMMM/,\n },\n monthsShort: 'gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte'.split(\n '_'\n ),\n weekdaysShort: 'dg._dl._dm._dc._dj._dv._ds.'.split('_'),\n weekdaysMin: 'dg_dl_dm_dc_dj_dv_ds'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM [de] YYYY',\n ll: 'D MMM YYYY',\n LLL: 'D MMMM [de] YYYY [a] H:mm',\n lll: 'D MMM YYYY, H:mm',\n LLLL: 'dddd D MMMM [de] YYYY [a] H:mm',\n llll: 'ddd D MMM YYYY, H:mm',\n },\n calendar: {\n sameDay: '[uèi a] LT',\n nextDay: '[deman a] LT',\n nextWeek: 'dddd [a] LT',\n lastDay: '[ièr a] LT',\n lastWeek: 'dddd [passat a] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: \"d'aquí %s\",\n past: 'fa %s',\n s: 'unas segondas',\n ss: '%d segondas',\n m: 'una minuta',\n mm: '%d minutas',\n h: 'una ora',\n hh: '%d oras',\n d: 'un jorn',\n dd: '%d jorns',\n M: 'un mes',\n MM: '%d meses',\n y: 'un an',\n yy: '%d ans',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(r|n|t|è|a)/,\n ordinal: function (number, period) {\n var output =\n number === 1\n ? 'r'\n : number === 2\n ? 'n'\n : number === 3\n ? 'r'\n : number === 4\n ? 't'\n : 'è';\n if (period === 'w' || period === 'W') {\n output = 'a';\n }\n return number + output;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4,\n },\n });\n\n return ocLnc;\n\n})));\n\n\n/***/ }),\n/* 427 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Punjabi (India) [pa-in]\n//! author : Harpreet Singh : https://github.com/harpreetkhalsagtbit\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '੧',\n '2': '੨',\n '3': '੩',\n '4': '੪',\n '5': '੫',\n '6': '੬',\n '7': '੭',\n '8': '੮',\n '9': '੯',\n '0': '੦',\n },\n numberMap = {\n '੧': '1',\n '੨': '2',\n '੩': '3',\n '੪': '4',\n '੫': '5',\n '੬': '6',\n '੭': '7',\n '੮': '8',\n '੯': '9',\n '੦': '0',\n };\n\n var paIn = moment.defineLocale('pa-in', {\n // There are months name as per Nanakshahi Calendar but they are not used as rigidly in modern Punjabi.\n months: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split(\n '_'\n ),\n monthsShort: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split(\n '_'\n ),\n weekdays: 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split(\n '_'\n ),\n weekdaysShort: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),\n weekdaysMin: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),\n longDateFormat: {\n LT: 'A h:mm ਵਜੇ',\n LTS: 'A h:mm:ss ਵਜੇ',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm ਵਜੇ',\n LLLL: 'dddd, D MMMM YYYY, A h:mm ਵਜੇ',\n },\n calendar: {\n sameDay: '[ਅਜ] LT',\n nextDay: '[ਕਲ] LT',\n nextWeek: '[ਅਗਲਾ] dddd, LT',\n lastDay: '[ਕਲ] LT',\n lastWeek: '[ਪਿਛਲੇ] dddd, LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s ਵਿੱਚ',\n past: '%s ਪਿਛਲੇ',\n s: 'ਕੁਝ ਸਕਿੰਟ',\n ss: '%d ਸਕਿੰਟ',\n m: 'ਇਕ ਮਿੰਟ',\n mm: '%d ਮਿੰਟ',\n h: 'ਇੱਕ ਘੰਟਾ',\n hh: '%d ਘੰਟੇ',\n d: 'ਇੱਕ ਦਿਨ',\n dd: '%d ਦਿਨ',\n M: 'ਇੱਕ ਮਹੀਨਾ',\n MM: '%d ਮਹੀਨੇ',\n y: 'ਇੱਕ ਸਾਲ',\n yy: '%d ਸਾਲ',\n },\n preparse: function (string) {\n return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n // Punjabi notation for meridiems are quite fuzzy in practice. While there exists\n // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.\n meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'ਰਾਤ') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'ਸਵੇਰ') {\n return hour;\n } else if (meridiem === 'ਦੁਪਹਿਰ') {\n return hour >= 10 ? hour : hour + 12;\n } else if (meridiem === 'ਸ਼ਾਮ') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'ਰਾਤ';\n } else if (hour < 10) {\n return 'ਸਵੇਰ';\n } else if (hour < 17) {\n return 'ਦੁਪਹਿਰ';\n } else if (hour < 20) {\n return 'ਸ਼ਾਮ';\n } else {\n return 'ਰਾਤ';\n }\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n },\n });\n\n return paIn;\n\n})));\n\n\n/***/ }),\n/* 428 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Polish [pl]\n//! author : Rafal Hirsz : https://github.com/evoL\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split(\n '_'\n ),\n monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split(\n '_'\n );\n function plural(n) {\n return n % 10 < 5 && n % 10 > 1 && ~~(n / 10) % 10 !== 1;\n }\n function translate(number, withoutSuffix, key) {\n var result = number + ' ';\n switch (key) {\n case 'ss':\n return result + (plural(number) ? 'sekundy' : 'sekund');\n case 'm':\n return withoutSuffix ? 'minuta' : 'minutę';\n case 'mm':\n return result + (plural(number) ? 'minuty' : 'minut');\n case 'h':\n return withoutSuffix ? 'godzina' : 'godzinę';\n case 'hh':\n return result + (plural(number) ? 'godziny' : 'godzin');\n case 'MM':\n return result + (plural(number) ? 'miesiące' : 'miesięcy');\n case 'yy':\n return result + (plural(number) ? 'lata' : 'lat');\n }\n }\n\n var pl = moment.defineLocale('pl', {\n months: function (momentToFormat, format) {\n if (!momentToFormat) {\n return monthsNominative;\n } else if (format === '') {\n // Hack: if format empty we know this is used to generate\n // RegExp by moment. Give then back both valid forms of months\n // in RegExp ready format.\n return (\n '(' +\n monthsSubjective[momentToFormat.month()] +\n '|' +\n monthsNominative[momentToFormat.month()] +\n ')'\n );\n } else if (/D MMMM/.test(format)) {\n return monthsSubjective[momentToFormat.month()];\n } else {\n return monthsNominative[momentToFormat.month()];\n }\n },\n monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),\n weekdays: 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split(\n '_'\n ),\n weekdaysShort: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'),\n weekdaysMin: 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Dziś o] LT',\n nextDay: '[Jutro o] LT',\n nextWeek: function () {\n switch (this.day()) {\n case 0:\n return '[W niedzielę o] LT';\n\n case 2:\n return '[We wtorek o] LT';\n\n case 3:\n return '[W środę o] LT';\n\n case 6:\n return '[W sobotę o] LT';\n\n default:\n return '[W] dddd [o] LT';\n }\n },\n lastDay: '[Wczoraj o] LT',\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n return '[W zeszłą niedzielę o] LT';\n case 3:\n return '[W zeszłą środę o] LT';\n case 6:\n return '[W zeszłą sobotę o] LT';\n default:\n return '[W zeszły] dddd [o] LT';\n }\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'za %s',\n past: '%s temu',\n s: 'kilka sekund',\n ss: translate,\n m: translate,\n mm: translate,\n h: translate,\n hh: translate,\n d: '1 dzień',\n dd: '%d dni',\n M: 'miesiąc',\n MM: translate,\n y: 'rok',\n yy: translate,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return pl;\n\n})));\n\n\n/***/ }),\n/* 429 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Portuguese [pt]\n//! author : Jefferson : https://github.com/jalex79\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var pt = moment.defineLocale('pt', {\n months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split(\n '_'\n ),\n monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),\n weekdays: 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split(\n '_'\n ),\n weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),\n weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D [de] MMMM [de] YYYY',\n LLL: 'D [de] MMMM [de] YYYY HH:mm',\n LLLL: 'dddd, D [de] MMMM [de] YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Hoje às] LT',\n nextDay: '[Amanhã às] LT',\n nextWeek: 'dddd [às] LT',\n lastDay: '[Ontem às] LT',\n lastWeek: function () {\n return this.day() === 0 || this.day() === 6\n ? '[Último] dddd [às] LT' // Saturday + Sunday\n : '[Última] dddd [às] LT'; // Monday - Friday\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'em %s',\n past: 'há %s',\n s: 'segundos',\n ss: '%d segundos',\n m: 'um minuto',\n mm: '%d minutos',\n h: 'uma hora',\n hh: '%d horas',\n d: 'um dia',\n dd: '%d dias',\n M: 'um mês',\n MM: '%d meses',\n y: 'um ano',\n yy: '%d anos',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return pt;\n\n})));\n\n\n/***/ }),\n/* 430 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Portuguese (Brazil) [pt-br]\n//! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var ptBr = moment.defineLocale('pt-br', {\n months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split(\n '_'\n ),\n monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),\n weekdays: 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split(\n '_'\n ),\n weekdaysShort: 'dom_seg_ter_qua_qui_sex_sáb'.split('_'),\n weekdaysMin: 'do_2ª_3ª_4ª_5ª_6ª_sá'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D [de] MMMM [de] YYYY',\n LLL: 'D [de] MMMM [de] YYYY [às] HH:mm',\n LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm',\n },\n calendar: {\n sameDay: '[Hoje às] LT',\n nextDay: '[Amanhã às] LT',\n nextWeek: 'dddd [às] LT',\n lastDay: '[Ontem às] LT',\n lastWeek: function () {\n return this.day() === 0 || this.day() === 6\n ? '[Último] dddd [às] LT' // Saturday + Sunday\n : '[Última] dddd [às] LT'; // Monday - Friday\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'em %s',\n past: 'há %s',\n s: 'poucos segundos',\n ss: '%d segundos',\n m: 'um minuto',\n mm: '%d minutos',\n h: 'uma hora',\n hh: '%d horas',\n d: 'um dia',\n dd: '%d dias',\n M: 'um mês',\n MM: '%d meses',\n y: 'um ano',\n yy: '%d anos',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n });\n\n return ptBr;\n\n})));\n\n\n/***/ }),\n/* 431 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Romanian [ro]\n//! author : Vlad Gurdiga : https://github.com/gurdiga\n//! author : Valentin Agachi : https://github.com/avaly\n//! author : Emanuel Cepoi : https://github.com/cepem\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function relativeTimeWithPlural(number, withoutSuffix, key) {\n var format = {\n ss: 'secunde',\n mm: 'minute',\n hh: 'ore',\n dd: 'zile',\n MM: 'luni',\n yy: 'ani',\n },\n separator = ' ';\n if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {\n separator = ' de ';\n }\n return number + separator + format[key];\n }\n\n var ro = moment.defineLocale('ro', {\n months: 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split(\n '_'\n ),\n monthsShort: 'ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),\n weekdaysShort: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),\n weekdaysMin: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY H:mm',\n LLLL: 'dddd, D MMMM YYYY H:mm',\n },\n calendar: {\n sameDay: '[azi la] LT',\n nextDay: '[mâine la] LT',\n nextWeek: 'dddd [la] LT',\n lastDay: '[ieri la] LT',\n lastWeek: '[fosta] dddd [la] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'peste %s',\n past: '%s în urmă',\n s: 'câteva secunde',\n ss: relativeTimeWithPlural,\n m: 'un minut',\n mm: relativeTimeWithPlural,\n h: 'o oră',\n hh: relativeTimeWithPlural,\n d: 'o zi',\n dd: relativeTimeWithPlural,\n M: 'o lună',\n MM: relativeTimeWithPlural,\n y: 'un an',\n yy: relativeTimeWithPlural,\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return ro;\n\n})));\n\n\n/***/ }),\n/* 432 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Russian [ru]\n//! author : Viktorminator : https://github.com/Viktorminator\n//! Author : Menelion Elensúle : https://github.com/Oire\n//! author : Коренберг Марк : https://github.com/socketpair\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function plural(word, num) {\n var forms = word.split('_');\n return num % 10 === 1 && num % 100 !== 11\n ? forms[0]\n : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)\n ? forms[1]\n : forms[2];\n }\n function relativeTimeWithPlural(number, withoutSuffix, key) {\n var format = {\n ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',\n mm: withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',\n hh: 'час_часа_часов',\n dd: 'день_дня_дней',\n MM: 'месяц_месяца_месяцев',\n yy: 'год_года_лет',\n };\n if (key === 'm') {\n return withoutSuffix ? 'минута' : 'минуту';\n } else {\n return number + ' ' + plural(format[key], +number);\n }\n }\n var monthsParse = [\n /^янв/i,\n /^фев/i,\n /^мар/i,\n /^апр/i,\n /^ма[йя]/i,\n /^июн/i,\n /^июл/i,\n /^авг/i,\n /^сен/i,\n /^окт/i,\n /^ноя/i,\n /^дек/i,\n ];\n\n // http://new.gramota.ru/spravka/rules/139-prop : § 103\n // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637\n // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753\n var ru = moment.defineLocale('ru', {\n months: {\n format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split(\n '_'\n ),\n standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split(\n '_'\n ),\n },\n monthsShort: {\n // по CLDR именно \"июл.\" и \"июн.\", но какой смысл менять букву на точку ?\n format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split(\n '_'\n ),\n standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split(\n '_'\n ),\n },\n weekdays: {\n standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split(\n '_'\n ),\n format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split(\n '_'\n ),\n isFormat: /\\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\\] ?dddd/,\n },\n weekdaysShort: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),\n weekdaysMin: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n\n // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки\n monthsRegex: /^(январ[ья]|янв\\.?|феврал[ья]|февр?\\.?|марта?|мар\\.?|апрел[ья]|апр\\.?|ма[йя]|июн[ья]|июн\\.?|июл[ья]|июл\\.?|августа?|авг\\.?|сентябр[ья]|сент?\\.?|октябр[ья]|окт\\.?|ноябр[ья]|нояб?\\.?|декабр[ья]|дек\\.?)/i,\n\n // копия предыдущего\n monthsShortRegex: /^(январ[ья]|янв\\.?|феврал[ья]|февр?\\.?|марта?|мар\\.?|апрел[ья]|апр\\.?|ма[йя]|июн[ья]|июн\\.?|июл[ья]|июл\\.?|августа?|авг\\.?|сентябр[ья]|сент?\\.?|октябр[ья]|окт\\.?|ноябр[ья]|нояб?\\.?|декабр[ья]|дек\\.?)/i,\n\n // полные названия с падежами\n monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,\n\n // Выражение, которое соотвествует только сокращённым формам\n monthsShortStrictRegex: /^(янв\\.|февр?\\.|мар[т.]|апр\\.|ма[яй]|июн[ья.]|июл[ья.]|авг\\.|сент?\\.|окт\\.|нояб?\\.|дек\\.)/i,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY г.',\n LLL: 'D MMMM YYYY г., H:mm',\n LLLL: 'dddd, D MMMM YYYY г., H:mm',\n },\n calendar: {\n sameDay: '[Сегодня, в] LT',\n nextDay: '[Завтра, в] LT',\n lastDay: '[Вчера, в] LT',\n nextWeek: function (now) {\n if (now.week() !== this.week()) {\n switch (this.day()) {\n case 0:\n return '[В следующее] dddd, [в] LT';\n case 1:\n case 2:\n case 4:\n return '[В следующий] dddd, [в] LT';\n case 3:\n case 5:\n case 6:\n return '[В следующую] dddd, [в] LT';\n }\n } else {\n if (this.day() === 2) {\n return '[Во] dddd, [в] LT';\n } else {\n return '[В] dddd, [в] LT';\n }\n }\n },\n lastWeek: function (now) {\n if (now.week() !== this.week()) {\n switch (this.day()) {\n case 0:\n return '[В прошлое] dddd, [в] LT';\n case 1:\n case 2:\n case 4:\n return '[В прошлый] dddd, [в] LT';\n case 3:\n case 5:\n case 6:\n return '[В прошлую] dddd, [в] LT';\n }\n } else {\n if (this.day() === 2) {\n return '[Во] dddd, [в] LT';\n } else {\n return '[В] dddd, [в] LT';\n }\n }\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'через %s',\n past: '%s назад',\n s: 'несколько секунд',\n ss: relativeTimeWithPlural,\n m: relativeTimeWithPlural,\n mm: relativeTimeWithPlural,\n h: 'час',\n hh: relativeTimeWithPlural,\n d: 'день',\n dd: relativeTimeWithPlural,\n M: 'месяц',\n MM: relativeTimeWithPlural,\n y: 'год',\n yy: relativeTimeWithPlural,\n },\n meridiemParse: /ночи|утра|дня|вечера/i,\n isPM: function (input) {\n return /^(дня|вечера)$/.test(input);\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'ночи';\n } else if (hour < 12) {\n return 'утра';\n } else if (hour < 17) {\n return 'дня';\n } else {\n return 'вечера';\n }\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(й|го|я)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'M':\n case 'd':\n case 'DDD':\n return number + '-й';\n case 'D':\n return number + '-го';\n case 'w':\n case 'W':\n return number + '-я';\n default:\n return number;\n }\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return ru;\n\n})));\n\n\n/***/ }),\n/* 433 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Sindhi [sd]\n//! author : Narain Sagar : https://github.com/narainsagar\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var months = [\n 'جنوري',\n 'فيبروري',\n 'مارچ',\n 'اپريل',\n 'مئي',\n 'جون',\n 'جولاءِ',\n 'آگسٽ',\n 'سيپٽمبر',\n 'آڪٽوبر',\n 'نومبر',\n 'ڊسمبر',\n ],\n days = ['آچر', 'سومر', 'اڱارو', 'اربع', 'خميس', 'جمع', 'ڇنڇر'];\n\n var sd = moment.defineLocale('sd', {\n months: months,\n monthsShort: months,\n weekdays: days,\n weekdaysShort: days,\n weekdaysMin: days,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd، D MMMM YYYY HH:mm',\n },\n meridiemParse: /صبح|شام/,\n isPM: function (input) {\n return 'شام' === input;\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'صبح';\n }\n return 'شام';\n },\n calendar: {\n sameDay: '[اڄ] LT',\n nextDay: '[سڀاڻي] LT',\n nextWeek: 'dddd [اڳين هفتي تي] LT',\n lastDay: '[ڪالهه] LT',\n lastWeek: '[گزريل هفتي] dddd [تي] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s پوء',\n past: '%s اڳ',\n s: 'چند سيڪنڊ',\n ss: '%d سيڪنڊ',\n m: 'هڪ منٽ',\n mm: '%d منٽ',\n h: 'هڪ ڪلاڪ',\n hh: '%d ڪلاڪ',\n d: 'هڪ ڏينهن',\n dd: '%d ڏينهن',\n M: 'هڪ مهينو',\n MM: '%d مهينا',\n y: 'هڪ سال',\n yy: '%d سال',\n },\n preparse: function (string) {\n return string.replace(/،/g, ',');\n },\n postformat: function (string) {\n return string.replace(/,/g, '،');\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return sd;\n\n})));\n\n\n/***/ }),\n/* 434 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Northern Sami [se]\n//! authors : Bård Rolstad Henriksen : https://github.com/karamell\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var se = moment.defineLocale('se', {\n months: 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split(\n '_'\n ),\n monthsShort: 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split(\n '_'\n ),\n weekdays: 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split(\n '_'\n ),\n weekdaysShort: 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),\n weekdaysMin: 's_v_m_g_d_b_L'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'MMMM D. [b.] YYYY',\n LLL: 'MMMM D. [b.] YYYY [ti.] HH:mm',\n LLLL: 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm',\n },\n calendar: {\n sameDay: '[otne ti] LT',\n nextDay: '[ihttin ti] LT',\n nextWeek: 'dddd [ti] LT',\n lastDay: '[ikte ti] LT',\n lastWeek: '[ovddit] dddd [ti] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s geažes',\n past: 'maŋit %s',\n s: 'moadde sekunddat',\n ss: '%d sekunddat',\n m: 'okta minuhta',\n mm: '%d minuhtat',\n h: 'okta diimmu',\n hh: '%d diimmut',\n d: 'okta beaivi',\n dd: '%d beaivvit',\n M: 'okta mánnu',\n MM: '%d mánut',\n y: 'okta jahki',\n yy: '%d jagit',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return se;\n\n})));\n\n\n/***/ }),\n/* 435 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Sinhalese [si]\n//! author : Sampath Sitinamaluwa : https://github.com/sampathsris\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n /*jshint -W100*/\n var si = moment.defineLocale('si', {\n months: 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split(\n '_'\n ),\n monthsShort: 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split(\n '_'\n ),\n weekdays: 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split(\n '_'\n ),\n weekdaysShort: 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),\n weekdaysMin: 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'a h:mm',\n LTS: 'a h:mm:ss',\n L: 'YYYY/MM/DD',\n LL: 'YYYY MMMM D',\n LLL: 'YYYY MMMM D, a h:mm',\n LLLL: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss',\n },\n calendar: {\n sameDay: '[අද] LT[ට]',\n nextDay: '[හෙට] LT[ට]',\n nextWeek: 'dddd LT[ට]',\n lastDay: '[ඊයේ] LT[ට]',\n lastWeek: '[පසුගිය] dddd LT[ට]',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%sකින්',\n past: '%sකට පෙර',\n s: 'තත්පර කිහිපය',\n ss: 'තත්පර %d',\n m: 'මිනිත්තුව',\n mm: 'මිනිත්තු %d',\n h: 'පැය',\n hh: 'පැය %d',\n d: 'දිනය',\n dd: 'දින %d',\n M: 'මාසය',\n MM: 'මාස %d',\n y: 'වසර',\n yy: 'වසර %d',\n },\n dayOfMonthOrdinalParse: /\\d{1,2} වැනි/,\n ordinal: function (number) {\n return number + ' වැනි';\n },\n meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,\n isPM: function (input) {\n return input === 'ප.ව.' || input === 'පස් වරු';\n },\n meridiem: function (hours, minutes, isLower) {\n if (hours > 11) {\n return isLower ? 'ප.ව.' : 'පස් වරු';\n } else {\n return isLower ? 'පෙ.ව.' : 'පෙර වරු';\n }\n },\n });\n\n return si;\n\n})));\n\n\n/***/ }),\n/* 436 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Slovak [sk]\n//! author : Martin Minka : https://github.com/k2s\n//! based on work of petrbela : https://github.com/petrbela\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split(\n '_'\n ),\n monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');\n function plural(n) {\n return n > 1 && n < 5;\n }\n function translate(number, withoutSuffix, key, isFuture) {\n var result = number + ' ';\n switch (key) {\n case 's': // a few seconds / in a few seconds / a few seconds ago\n return withoutSuffix || isFuture ? 'pár sekúnd' : 'pár sekundami';\n case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'sekundy' : 'sekúnd');\n } else {\n return result + 'sekundami';\n }\n case 'm': // a minute / in a minute / a minute ago\n return withoutSuffix ? 'minúta' : isFuture ? 'minútu' : 'minútou';\n case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'minúty' : 'minút');\n } else {\n return result + 'minútami';\n }\n case 'h': // an hour / in an hour / an hour ago\n return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';\n case 'hh': // 9 hours / in 9 hours / 9 hours ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'hodiny' : 'hodín');\n } else {\n return result + 'hodinami';\n }\n case 'd': // a day / in a day / a day ago\n return withoutSuffix || isFuture ? 'deň' : 'dňom';\n case 'dd': // 9 days / in 9 days / 9 days ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'dni' : 'dní');\n } else {\n return result + 'dňami';\n }\n case 'M': // a month / in a month / a month ago\n return withoutSuffix || isFuture ? 'mesiac' : 'mesiacom';\n case 'MM': // 9 months / in 9 months / 9 months ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'mesiace' : 'mesiacov');\n } else {\n return result + 'mesiacmi';\n }\n case 'y': // a year / in a year / a year ago\n return withoutSuffix || isFuture ? 'rok' : 'rokom';\n case 'yy': // 9 years / in 9 years / 9 years ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'roky' : 'rokov');\n } else {\n return result + 'rokmi';\n }\n }\n }\n\n var sk = moment.defineLocale('sk', {\n months: months,\n monthsShort: monthsShort,\n weekdays: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),\n weekdaysShort: 'ne_po_ut_st_št_pi_so'.split('_'),\n weekdaysMin: 'ne_po_ut_st_št_pi_so'.split('_'),\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY H:mm',\n LLLL: 'dddd D. MMMM YYYY H:mm',\n },\n calendar: {\n sameDay: '[dnes o] LT',\n nextDay: '[zajtra o] LT',\n nextWeek: function () {\n switch (this.day()) {\n case 0:\n return '[v nedeľu o] LT';\n case 1:\n case 2:\n return '[v] dddd [o] LT';\n case 3:\n return '[v stredu o] LT';\n case 4:\n return '[vo štvrtok o] LT';\n case 5:\n return '[v piatok o] LT';\n case 6:\n return '[v sobotu o] LT';\n }\n },\n lastDay: '[včera o] LT',\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n return '[minulú nedeľu o] LT';\n case 1:\n case 2:\n return '[minulý] dddd [o] LT';\n case 3:\n return '[minulú stredu o] LT';\n case 4:\n case 5:\n return '[minulý] dddd [o] LT';\n case 6:\n return '[minulú sobotu o] LT';\n }\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'za %s',\n past: 'pred %s',\n s: translate,\n ss: translate,\n m: translate,\n mm: translate,\n h: translate,\n hh: translate,\n d: translate,\n dd: translate,\n M: translate,\n MM: translate,\n y: translate,\n yy: translate,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return sk;\n\n})));\n\n\n/***/ }),\n/* 437 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Slovenian [sl]\n//! author : Robert Sedovšek : https://github.com/sedovsek\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var result = number + ' ';\n switch (key) {\n case 's':\n return withoutSuffix || isFuture\n ? 'nekaj sekund'\n : 'nekaj sekundami';\n case 'ss':\n if (number === 1) {\n result += withoutSuffix ? 'sekundo' : 'sekundi';\n } else if (number === 2) {\n result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah';\n } else if (number < 5) {\n result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah';\n } else {\n result += 'sekund';\n }\n return result;\n case 'm':\n return withoutSuffix ? 'ena minuta' : 'eno minuto';\n case 'mm':\n if (number === 1) {\n result += withoutSuffix ? 'minuta' : 'minuto';\n } else if (number === 2) {\n result += withoutSuffix || isFuture ? 'minuti' : 'minutama';\n } else if (number < 5) {\n result += withoutSuffix || isFuture ? 'minute' : 'minutami';\n } else {\n result += withoutSuffix || isFuture ? 'minut' : 'minutami';\n }\n return result;\n case 'h':\n return withoutSuffix ? 'ena ura' : 'eno uro';\n case 'hh':\n if (number === 1) {\n result += withoutSuffix ? 'ura' : 'uro';\n } else if (number === 2) {\n result += withoutSuffix || isFuture ? 'uri' : 'urama';\n } else if (number < 5) {\n result += withoutSuffix || isFuture ? 'ure' : 'urami';\n } else {\n result += withoutSuffix || isFuture ? 'ur' : 'urami';\n }\n return result;\n case 'd':\n return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';\n case 'dd':\n if (number === 1) {\n result += withoutSuffix || isFuture ? 'dan' : 'dnem';\n } else if (number === 2) {\n result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';\n } else {\n result += withoutSuffix || isFuture ? 'dni' : 'dnevi';\n }\n return result;\n case 'M':\n return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';\n case 'MM':\n if (number === 1) {\n result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';\n } else if (number === 2) {\n result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';\n } else if (number < 5) {\n result += withoutSuffix || isFuture ? 'mesece' : 'meseci';\n } else {\n result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';\n }\n return result;\n case 'y':\n return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';\n case 'yy':\n if (number === 1) {\n result += withoutSuffix || isFuture ? 'leto' : 'letom';\n } else if (number === 2) {\n result += withoutSuffix || isFuture ? 'leti' : 'letoma';\n } else if (number < 5) {\n result += withoutSuffix || isFuture ? 'leta' : 'leti';\n } else {\n result += withoutSuffix || isFuture ? 'let' : 'leti';\n }\n return result;\n }\n }\n\n var sl = moment.defineLocale('sl', {\n months: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split(\n '_'\n ),\n monthsShort: 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),\n weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),\n weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD. MM. YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY H:mm',\n LLLL: 'dddd, D. MMMM YYYY H:mm',\n },\n calendar: {\n sameDay: '[danes ob] LT',\n nextDay: '[jutri ob] LT',\n\n nextWeek: function () {\n switch (this.day()) {\n case 0:\n return '[v] [nedeljo] [ob] LT';\n case 3:\n return '[v] [sredo] [ob] LT';\n case 6:\n return '[v] [soboto] [ob] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[v] dddd [ob] LT';\n }\n },\n lastDay: '[včeraj ob] LT',\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n return '[prejšnjo] [nedeljo] [ob] LT';\n case 3:\n return '[prejšnjo] [sredo] [ob] LT';\n case 6:\n return '[prejšnjo] [soboto] [ob] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[prejšnji] dddd [ob] LT';\n }\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'čez %s',\n past: 'pred %s',\n s: processRelativeTime,\n ss: processRelativeTime,\n m: processRelativeTime,\n mm: processRelativeTime,\n h: processRelativeTime,\n hh: processRelativeTime,\n d: processRelativeTime,\n dd: processRelativeTime,\n M: processRelativeTime,\n MM: processRelativeTime,\n y: processRelativeTime,\n yy: processRelativeTime,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return sl;\n\n})));\n\n\n/***/ }),\n/* 438 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Albanian [sq]\n//! author : Flakërim Ismani : https://github.com/flakerimi\n//! author : Menelion Elensúle : https://github.com/Oire\n//! author : Oerd Cukalla : https://github.com/oerd\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var sq = moment.defineLocale('sq', {\n months: 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split(\n '_'\n ),\n monthsShort: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),\n weekdays: 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split(\n '_'\n ),\n weekdaysShort: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),\n weekdaysMin: 'D_H_Ma_Më_E_P_Sh'.split('_'),\n weekdaysParseExact: true,\n meridiemParse: /PD|MD/,\n isPM: function (input) {\n return input.charAt(0) === 'M';\n },\n meridiem: function (hours, minutes, isLower) {\n return hours < 12 ? 'PD' : 'MD';\n },\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Sot në] LT',\n nextDay: '[Nesër në] LT',\n nextWeek: 'dddd [në] LT',\n lastDay: '[Dje në] LT',\n lastWeek: 'dddd [e kaluar në] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'në %s',\n past: '%s më parë',\n s: 'disa sekonda',\n ss: '%d sekonda',\n m: 'një minutë',\n mm: '%d minuta',\n h: 'një orë',\n hh: '%d orë',\n d: 'një ditë',\n dd: '%d ditë',\n M: 'një muaj',\n MM: '%d muaj',\n y: 'një vit',\n yy: '%d vite',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return sq;\n\n})));\n\n\n/***/ }),\n/* 439 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Serbian [sr]\n//! author : Milan Janačković : https://github.com/milan-j\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var translator = {\n words: {\n //Different grammatical cases\n ss: ['sekunda', 'sekunde', 'sekundi'],\n m: ['jedan minut', 'jedne minute'],\n mm: ['minut', 'minute', 'minuta'],\n h: ['jedan sat', 'jednog sata'],\n hh: ['sat', 'sata', 'sati'],\n dd: ['dan', 'dana', 'dana'],\n MM: ['mesec', 'meseca', 'meseci'],\n yy: ['godina', 'godine', 'godina'],\n },\n correctGrammaticalCase: function (number, wordKey) {\n return number === 1\n ? wordKey[0]\n : number >= 2 && number <= 4\n ? wordKey[1]\n : wordKey[2];\n },\n translate: function (number, withoutSuffix, key) {\n var wordKey = translator.words[key];\n if (key.length === 1) {\n return withoutSuffix ? wordKey[0] : wordKey[1];\n } else {\n return (\n number +\n ' ' +\n translator.correctGrammaticalCase(number, wordKey)\n );\n }\n },\n };\n\n var sr = moment.defineLocale('sr', {\n months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(\n '_'\n ),\n monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split(\n '_'\n ),\n weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),\n weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY H:mm',\n LLLL: 'dddd, D. MMMM YYYY H:mm',\n },\n calendar: {\n sameDay: '[danas u] LT',\n nextDay: '[sutra u] LT',\n nextWeek: function () {\n switch (this.day()) {\n case 0:\n return '[u] [nedelju] [u] LT';\n case 3:\n return '[u] [sredu] [u] LT';\n case 6:\n return '[u] [subotu] [u] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[u] dddd [u] LT';\n }\n },\n lastDay: '[juče u] LT',\n lastWeek: function () {\n var lastWeekDays = [\n '[prošle] [nedelje] [u] LT',\n '[prošlog] [ponedeljka] [u] LT',\n '[prošlog] [utorka] [u] LT',\n '[prošle] [srede] [u] LT',\n '[prošlog] [četvrtka] [u] LT',\n '[prošlog] [petka] [u] LT',\n '[prošle] [subote] [u] LT',\n ];\n return lastWeekDays[this.day()];\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'za %s',\n past: 'pre %s',\n s: 'nekoliko sekundi',\n ss: translator.translate,\n m: translator.translate,\n mm: translator.translate,\n h: translator.translate,\n hh: translator.translate,\n d: 'dan',\n dd: translator.translate,\n M: 'mesec',\n MM: translator.translate,\n y: 'godinu',\n yy: translator.translate,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return sr;\n\n})));\n\n\n/***/ }),\n/* 440 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Serbian Cyrillic [sr-cyrl]\n//! author : Milan Janačković : https://github.com/milan-j\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var translator = {\n words: {\n //Different grammatical cases\n ss: ['секунда', 'секунде', 'секунди'],\n m: ['један минут', 'једне минуте'],\n mm: ['минут', 'минуте', 'минута'],\n h: ['један сат', 'једног сата'],\n hh: ['сат', 'сата', 'сати'],\n dd: ['дан', 'дана', 'дана'],\n MM: ['месец', 'месеца', 'месеци'],\n yy: ['година', 'године', 'година'],\n },\n correctGrammaticalCase: function (number, wordKey) {\n return number === 1\n ? wordKey[0]\n : number >= 2 && number <= 4\n ? wordKey[1]\n : wordKey[2];\n },\n translate: function (number, withoutSuffix, key) {\n var wordKey = translator.words[key];\n if (key.length === 1) {\n return withoutSuffix ? wordKey[0] : wordKey[1];\n } else {\n return (\n number +\n ' ' +\n translator.correctGrammaticalCase(number, wordKey)\n );\n }\n },\n };\n\n var srCyrl = moment.defineLocale('sr-cyrl', {\n months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split(\n '_'\n ),\n monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),\n weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),\n weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY H:mm',\n LLLL: 'dddd, D. MMMM YYYY H:mm',\n },\n calendar: {\n sameDay: '[данас у] LT',\n nextDay: '[сутра у] LT',\n nextWeek: function () {\n switch (this.day()) {\n case 0:\n return '[у] [недељу] [у] LT';\n case 3:\n return '[у] [среду] [у] LT';\n case 6:\n return '[у] [суботу] [у] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[у] dddd [у] LT';\n }\n },\n lastDay: '[јуче у] LT',\n lastWeek: function () {\n var lastWeekDays = [\n '[прошле] [недеље] [у] LT',\n '[прошлог] [понедељка] [у] LT',\n '[прошлог] [уторка] [у] LT',\n '[прошле] [среде] [у] LT',\n '[прошлог] [четвртка] [у] LT',\n '[прошлог] [петка] [у] LT',\n '[прошле] [суботе] [у] LT',\n ];\n return lastWeekDays[this.day()];\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'за %s',\n past: 'пре %s',\n s: 'неколико секунди',\n ss: translator.translate,\n m: translator.translate,\n mm: translator.translate,\n h: translator.translate,\n hh: translator.translate,\n d: 'дан',\n dd: translator.translate,\n M: 'месец',\n MM: translator.translate,\n y: 'годину',\n yy: translator.translate,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return srCyrl;\n\n})));\n\n\n/***/ }),\n/* 441 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : siSwati [ss]\n//! author : Nicolai Davies : https://github.com/nicolaidavies\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var ss = moment.defineLocale('ss', {\n months: \"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni\".split(\n '_'\n ),\n monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),\n weekdays: 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split(\n '_'\n ),\n weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),\n weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY h:mm A',\n LLLL: 'dddd, D MMMM YYYY h:mm A',\n },\n calendar: {\n sameDay: '[Namuhla nga] LT',\n nextDay: '[Kusasa nga] LT',\n nextWeek: 'dddd [nga] LT',\n lastDay: '[Itolo nga] LT',\n lastWeek: 'dddd [leliphelile] [nga] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'nga %s',\n past: 'wenteka nga %s',\n s: 'emizuzwana lomcane',\n ss: '%d mzuzwana',\n m: 'umzuzu',\n mm: '%d emizuzu',\n h: 'lihora',\n hh: '%d emahora',\n d: 'lilanga',\n dd: '%d emalanga',\n M: 'inyanga',\n MM: '%d tinyanga',\n y: 'umnyaka',\n yy: '%d iminyaka',\n },\n meridiemParse: /ekuseni|emini|entsambama|ebusuku/,\n meridiem: function (hours, minutes, isLower) {\n if (hours < 11) {\n return 'ekuseni';\n } else if (hours < 15) {\n return 'emini';\n } else if (hours < 19) {\n return 'entsambama';\n } else {\n return 'ebusuku';\n }\n },\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'ekuseni') {\n return hour;\n } else if (meridiem === 'emini') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') {\n if (hour === 0) {\n return 0;\n }\n return hour + 12;\n }\n },\n dayOfMonthOrdinalParse: /\\d{1,2}/,\n ordinal: '%d',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return ss;\n\n})));\n\n\n/***/ }),\n/* 442 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Swedish [sv]\n//! author : Jens Alm : https://github.com/ulmus\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var sv = moment.defineLocale('sv', {\n months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split(\n '_'\n ),\n monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),\n weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),\n weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'),\n weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY-MM-DD',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY [kl.] HH:mm',\n LLLL: 'dddd D MMMM YYYY [kl.] HH:mm',\n lll: 'D MMM YYYY HH:mm',\n llll: 'ddd D MMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Idag] LT',\n nextDay: '[Imorgon] LT',\n lastDay: '[Igår] LT',\n nextWeek: '[På] dddd LT',\n lastWeek: '[I] dddd[s] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'om %s',\n past: 'för %s sedan',\n s: 'några sekunder',\n ss: '%d sekunder',\n m: 'en minut',\n mm: '%d minuter',\n h: 'en timme',\n hh: '%d timmar',\n d: 'en dag',\n dd: '%d dagar',\n M: 'en månad',\n MM: '%d månader',\n y: 'ett år',\n yy: '%d år',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(\\:e|\\:a)/,\n ordinal: function (number) {\n var b = number % 10,\n output =\n ~~((number % 100) / 10) === 1\n ? ':e'\n : b === 1\n ? ':a'\n : b === 2\n ? ':a'\n : b === 3\n ? ':e'\n : ':e';\n return number + output;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return sv;\n\n})));\n\n\n/***/ }),\n/* 443 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Swahili [sw]\n//! author : Fahad Kassim : https://github.com/fadsel\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var sw = moment.defineLocale('sw', {\n months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split(\n '_'\n ),\n monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),\n weekdays: 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split(\n '_'\n ),\n weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),\n weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[leo saa] LT',\n nextDay: '[kesho saa] LT',\n nextWeek: '[wiki ijayo] dddd [saat] LT',\n lastDay: '[jana] LT',\n lastWeek: '[wiki iliyopita] dddd [saat] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s baadaye',\n past: 'tokea %s',\n s: 'hivi punde',\n ss: 'sekunde %d',\n m: 'dakika moja',\n mm: 'dakika %d',\n h: 'saa limoja',\n hh: 'masaa %d',\n d: 'siku moja',\n dd: 'masiku %d',\n M: 'mwezi mmoja',\n MM: 'miezi %d',\n y: 'mwaka mmoja',\n yy: 'miaka %d',\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return sw;\n\n})));\n\n\n/***/ }),\n/* 444 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Tamil [ta]\n//! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '௧',\n '2': '௨',\n '3': '௩',\n '4': '௪',\n '5': '௫',\n '6': '௬',\n '7': '௭',\n '8': '௮',\n '9': '௯',\n '0': '௦',\n },\n numberMap = {\n '௧': '1',\n '௨': '2',\n '௩': '3',\n '௪': '4',\n '௫': '5',\n '௬': '6',\n '௭': '7',\n '௮': '8',\n '௯': '9',\n '௦': '0',\n };\n\n var ta = moment.defineLocale('ta', {\n months: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split(\n '_'\n ),\n monthsShort: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split(\n '_'\n ),\n weekdays: 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split(\n '_'\n ),\n weekdaysShort: 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split(\n '_'\n ),\n weekdaysMin: 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, HH:mm',\n LLLL: 'dddd, D MMMM YYYY, HH:mm',\n },\n calendar: {\n sameDay: '[இன்று] LT',\n nextDay: '[நாளை] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[நேற்று] LT',\n lastWeek: '[கடந்த வாரம்] dddd, LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s இல்',\n past: '%s முன்',\n s: 'ஒரு சில விநாடிகள்',\n ss: '%d விநாடிகள்',\n m: 'ஒரு நிமிடம்',\n mm: '%d நிமிடங்கள்',\n h: 'ஒரு மணி நேரம்',\n hh: '%d மணி நேரம்',\n d: 'ஒரு நாள்',\n dd: '%d நாட்கள்',\n M: 'ஒரு மாதம்',\n MM: '%d மாதங்கள்',\n y: 'ஒரு வருடம்',\n yy: '%d ஆண்டுகள்',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}வது/,\n ordinal: function (number) {\n return number + 'வது';\n },\n preparse: function (string) {\n return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n // refer http://ta.wikipedia.org/s/1er1\n meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,\n meridiem: function (hour, minute, isLower) {\n if (hour < 2) {\n return ' யாமம்';\n } else if (hour < 6) {\n return ' வைகறை'; // வைகறை\n } else if (hour < 10) {\n return ' காலை'; // காலை\n } else if (hour < 14) {\n return ' நண்பகல்'; // நண்பகல்\n } else if (hour < 18) {\n return ' எற்பாடு'; // எற்பாடு\n } else if (hour < 22) {\n return ' மாலை'; // மாலை\n } else {\n return ' யாமம்';\n }\n },\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'யாமம்') {\n return hour < 2 ? hour : hour + 12;\n } else if (meridiem === 'வைகறை' || meridiem === 'காலை') {\n return hour;\n } else if (meridiem === 'நண்பகல்') {\n return hour >= 10 ? hour : hour + 12;\n } else {\n return hour + 12;\n }\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n },\n });\n\n return ta;\n\n})));\n\n\n/***/ }),\n/* 445 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Telugu [te]\n//! author : Krishna Chaitanya Thota : https://github.com/kcthota\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var te = moment.defineLocale('te', {\n months: 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split(\n '_'\n ),\n monthsShort: 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split(\n '_'\n ),\n weekdaysShort: 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),\n weekdaysMin: 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),\n longDateFormat: {\n LT: 'A h:mm',\n LTS: 'A h:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm',\n LLLL: 'dddd, D MMMM YYYY, A h:mm',\n },\n calendar: {\n sameDay: '[నేడు] LT',\n nextDay: '[రేపు] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[నిన్న] LT',\n lastWeek: '[గత] dddd, LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s లో',\n past: '%s క్రితం',\n s: 'కొన్ని క్షణాలు',\n ss: '%d సెకన్లు',\n m: 'ఒక నిమిషం',\n mm: '%d నిమిషాలు',\n h: 'ఒక గంట',\n hh: '%d గంటలు',\n d: 'ఒక రోజు',\n dd: '%d రోజులు',\n M: 'ఒక నెల',\n MM: '%d నెలలు',\n y: 'ఒక సంవత్సరం',\n yy: '%d సంవత్సరాలు',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}వ/,\n ordinal: '%dవ',\n meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'రాత్రి') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'ఉదయం') {\n return hour;\n } else if (meridiem === 'మధ్యాహ్నం') {\n return hour >= 10 ? hour : hour + 12;\n } else if (meridiem === 'సాయంత్రం') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'రాత్రి';\n } else if (hour < 10) {\n return 'ఉదయం';\n } else if (hour < 17) {\n return 'మధ్యాహ్నం';\n } else if (hour < 20) {\n return 'సాయంత్రం';\n } else {\n return 'రాత్రి';\n }\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n },\n });\n\n return te;\n\n})));\n\n\n/***/ }),\n/* 446 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Tetun Dili (East Timor) [tet]\n//! author : Joshua Brooks : https://github.com/joshbrooks\n//! author : Onorio De J. Afonso : https://github.com/marobo\n//! author : Sonia Simoes : https://github.com/soniasimoes\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var tet = moment.defineLocale('tet', {\n months: 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split(\n '_'\n ),\n monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),\n weekdays: 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split('_'),\n weekdaysShort: 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'),\n weekdaysMin: 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Ohin iha] LT',\n nextDay: '[Aban iha] LT',\n nextWeek: 'dddd [iha] LT',\n lastDay: '[Horiseik iha] LT',\n lastWeek: 'dddd [semana kotuk] [iha] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'iha %s',\n past: '%s liuba',\n s: 'segundu balun',\n ss: 'segundu %d',\n m: 'minutu ida',\n mm: 'minutu %d',\n h: 'oras ida',\n hh: 'oras %d',\n d: 'loron ida',\n dd: 'loron %d',\n M: 'fulan ida',\n MM: 'fulan %d',\n y: 'tinan ida',\n yy: 'tinan %d',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function (number) {\n var b = number % 10,\n output =\n ~~((number % 100) / 10) === 1\n ? 'th'\n : b === 1\n ? 'st'\n : b === 2\n ? 'nd'\n : b === 3\n ? 'rd'\n : 'th';\n return number + output;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return tet;\n\n})));\n\n\n/***/ }),\n/* 447 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Tajik [tg]\n//! author : Orif N. Jr. : https://github.com/orif-jr\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var suffixes = {\n 0: '-ум',\n 1: '-ум',\n 2: '-юм',\n 3: '-юм',\n 4: '-ум',\n 5: '-ум',\n 6: '-ум',\n 7: '-ум',\n 8: '-ум',\n 9: '-ум',\n 10: '-ум',\n 12: '-ум',\n 13: '-ум',\n 20: '-ум',\n 30: '-юм',\n 40: '-ум',\n 50: '-ум',\n 60: '-ум',\n 70: '-ум',\n 80: '-ум',\n 90: '-ум',\n 100: '-ум',\n };\n\n var tg = moment.defineLocale('tg', {\n months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(\n '_'\n ),\n monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),\n weekdays: 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split(\n '_'\n ),\n weekdaysShort: 'яшб_дшб_сшб_чшб_пшб_ҷум_шнб'.split('_'),\n weekdaysMin: 'яш_дш_сш_чш_пш_ҷм_шб'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Имрӯз соати] LT',\n nextDay: '[Пагоҳ соати] LT',\n lastDay: '[Дирӯз соати] LT',\n nextWeek: 'dddd[и] [ҳафтаи оянда соати] LT',\n lastWeek: 'dddd[и] [ҳафтаи гузашта соати] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'баъди %s',\n past: '%s пеш',\n s: 'якчанд сония',\n m: 'як дақиқа',\n mm: '%d дақиқа',\n h: 'як соат',\n hh: '%d соат',\n d: 'як рӯз',\n dd: '%d рӯз',\n M: 'як моҳ',\n MM: '%d моҳ',\n y: 'як сол',\n yy: '%d сол',\n },\n meridiemParse: /шаб|субҳ|рӯз|бегоҳ/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'шаб') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'субҳ') {\n return hour;\n } else if (meridiem === 'рӯз') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === 'бегоҳ') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'шаб';\n } else if (hour < 11) {\n return 'субҳ';\n } else if (hour < 16) {\n return 'рӯз';\n } else if (hour < 19) {\n return 'бегоҳ';\n } else {\n return 'шаб';\n }\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(ум|юм)/,\n ordinal: function (number) {\n var a = number % 10,\n b = number >= 100 ? 100 : null;\n return number + (suffixes[number] || suffixes[a] || suffixes[b]);\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 1th is the first week of the year.\n },\n });\n\n return tg;\n\n})));\n\n\n/***/ }),\n/* 448 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Thai [th]\n//! author : Kridsada Thanabulpong : https://github.com/sirn\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var th = moment.defineLocale('th', {\n months: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split(\n '_'\n ),\n monthsShort: 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),\n weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference\n weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY เวลา H:mm',\n LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm',\n },\n meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,\n isPM: function (input) {\n return input === 'หลังเที่ยง';\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'ก่อนเที่ยง';\n } else {\n return 'หลังเที่ยง';\n }\n },\n calendar: {\n sameDay: '[วันนี้ เวลา] LT',\n nextDay: '[พรุ่งนี้ เวลา] LT',\n nextWeek: 'dddd[หน้า เวลา] LT',\n lastDay: '[เมื่อวานนี้ เวลา] LT',\n lastWeek: '[วัน]dddd[ที่แล้ว เวลา] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'อีก %s',\n past: '%sที่แล้ว',\n s: 'ไม่กี่วินาที',\n ss: '%d วินาที',\n m: '1 นาที',\n mm: '%d นาที',\n h: '1 ชั่วโมง',\n hh: '%d ชั่วโมง',\n d: '1 วัน',\n dd: '%d วัน',\n M: '1 เดือน',\n MM: '%d เดือน',\n y: '1 ปี',\n yy: '%d ปี',\n },\n });\n\n return th;\n\n})));\n\n\n/***/ }),\n/* 449 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Tagalog (Philippines) [tl-ph]\n//! author : Dan Hagman : https://github.com/hagmandan\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var tlPh = moment.defineLocale('tl-ph', {\n months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split(\n '_'\n ),\n monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),\n weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split(\n '_'\n ),\n weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),\n weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'MM/D/YYYY',\n LL: 'MMMM D, YYYY',\n LLL: 'MMMM D, YYYY HH:mm',\n LLLL: 'dddd, MMMM DD, YYYY HH:mm',\n },\n calendar: {\n sameDay: 'LT [ngayong araw]',\n nextDay: '[Bukas ng] LT',\n nextWeek: 'LT [sa susunod na] dddd',\n lastDay: 'LT [kahapon]',\n lastWeek: 'LT [noong nakaraang] dddd',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'sa loob ng %s',\n past: '%s ang nakalipas',\n s: 'ilang segundo',\n ss: '%d segundo',\n m: 'isang minuto',\n mm: '%d minuto',\n h: 'isang oras',\n hh: '%d oras',\n d: 'isang araw',\n dd: '%d araw',\n M: 'isang buwan',\n MM: '%d buwan',\n y: 'isang taon',\n yy: '%d taon',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}/,\n ordinal: function (number) {\n return number;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return tlPh;\n\n})));\n\n\n/***/ }),\n/* 450 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Klingon [tlh]\n//! author : Dominika Kruk : https://github.com/amaranthrose\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');\n\n function translateFuture(output) {\n var time = output;\n time =\n output.indexOf('jaj') !== -1\n ? time.slice(0, -3) + 'leS'\n : output.indexOf('jar') !== -1\n ? time.slice(0, -3) + 'waQ'\n : output.indexOf('DIS') !== -1\n ? time.slice(0, -3) + 'nem'\n : time + ' pIq';\n return time;\n }\n\n function translatePast(output) {\n var time = output;\n time =\n output.indexOf('jaj') !== -1\n ? time.slice(0, -3) + 'Hu’'\n : output.indexOf('jar') !== -1\n ? time.slice(0, -3) + 'wen'\n : output.indexOf('DIS') !== -1\n ? time.slice(0, -3) + 'ben'\n : time + ' ret';\n return time;\n }\n\n function translate(number, withoutSuffix, string, isFuture) {\n var numberNoun = numberAsNoun(number);\n switch (string) {\n case 'ss':\n return numberNoun + ' lup';\n case 'mm':\n return numberNoun + ' tup';\n case 'hh':\n return numberNoun + ' rep';\n case 'dd':\n return numberNoun + ' jaj';\n case 'MM':\n return numberNoun + ' jar';\n case 'yy':\n return numberNoun + ' DIS';\n }\n }\n\n function numberAsNoun(number) {\n var hundred = Math.floor((number % 1000) / 100),\n ten = Math.floor((number % 100) / 10),\n one = number % 10,\n word = '';\n if (hundred > 0) {\n word += numbersNouns[hundred] + 'vatlh';\n }\n if (ten > 0) {\n word += (word !== '' ? ' ' : '') + numbersNouns[ten] + 'maH';\n }\n if (one > 0) {\n word += (word !== '' ? ' ' : '') + numbersNouns[one];\n }\n return word === '' ? 'pagh' : word;\n }\n\n var tlh = moment.defineLocale('tlh', {\n months: 'tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’'.split(\n '_'\n ),\n monthsShort: 'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(\n '_'\n ),\n weekdaysShort: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(\n '_'\n ),\n weekdaysMin: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(\n '_'\n ),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[DaHjaj] LT',\n nextDay: '[wa’leS] LT',\n nextWeek: 'LLL',\n lastDay: '[wa’Hu’] LT',\n lastWeek: 'LLL',\n sameElse: 'L',\n },\n relativeTime: {\n future: translateFuture,\n past: translatePast,\n s: 'puS lup',\n ss: translate,\n m: 'wa’ tup',\n mm: translate,\n h: 'wa’ rep',\n hh: translate,\n d: 'wa’ jaj',\n dd: translate,\n M: 'wa’ jar',\n MM: translate,\n y: 'wa’ DIS',\n yy: translate,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return tlh;\n\n})));\n\n\n/***/ }),\n/* 451 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Turkish [tr]\n//! authors : Erhan Gundogan : https://github.com/erhangundogan,\n//! Burak Yiğit Kaya: https://github.com/BYK\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var suffixes = {\n 1: \"'inci\",\n 5: \"'inci\",\n 8: \"'inci\",\n 70: \"'inci\",\n 80: \"'inci\",\n 2: \"'nci\",\n 7: \"'nci\",\n 20: \"'nci\",\n 50: \"'nci\",\n 3: \"'üncü\",\n 4: \"'üncü\",\n 100: \"'üncü\",\n 6: \"'ncı\",\n 9: \"'uncu\",\n 10: \"'uncu\",\n 30: \"'uncu\",\n 60: \"'ıncı\",\n 90: \"'ıncı\",\n };\n\n var tr = moment.defineLocale('tr', {\n months: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split(\n '_'\n ),\n monthsShort: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),\n weekdays: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split(\n '_'\n ),\n weekdaysShort: 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'),\n weekdaysMin: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[bugün saat] LT',\n nextDay: '[yarın saat] LT',\n nextWeek: '[gelecek] dddd [saat] LT',\n lastDay: '[dün] LT',\n lastWeek: '[geçen] dddd [saat] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s sonra',\n past: '%s önce',\n s: 'birkaç saniye',\n ss: '%d saniye',\n m: 'bir dakika',\n mm: '%d dakika',\n h: 'bir saat',\n hh: '%d saat',\n d: 'bir gün',\n dd: '%d gün',\n M: 'bir ay',\n MM: '%d ay',\n y: 'bir yıl',\n yy: '%d yıl',\n },\n ordinal: function (number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'Do':\n case 'DD':\n return number;\n default:\n if (number === 0) {\n // special case for zero\n return number + \"'ıncı\";\n }\n var a = number % 10,\n b = (number % 100) - a,\n c = number >= 100 ? 100 : null;\n return number + (suffixes[a] || suffixes[b] || suffixes[c]);\n }\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return tr;\n\n})));\n\n\n/***/ }),\n/* 452 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Talossan [tzl]\n//! author : Robin van der Vliet : https://github.com/robin0van0der0v\n//! author : Iustì Canun\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.\n // This is currently too difficult (maybe even impossible) to add.\n var tzl = moment.defineLocale('tzl', {\n months: 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split(\n '_'\n ),\n monthsShort: 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),\n weekdays: 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),\n weekdaysShort: 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),\n weekdaysMin: 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),\n longDateFormat: {\n LT: 'HH.mm',\n LTS: 'HH.mm.ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM [dallas] YYYY',\n LLL: 'D. MMMM [dallas] YYYY HH.mm',\n LLLL: 'dddd, [li] D. MMMM [dallas] YYYY HH.mm',\n },\n meridiemParse: /d\\'o|d\\'a/i,\n isPM: function (input) {\n return \"d'o\" === input.toLowerCase();\n },\n meridiem: function (hours, minutes, isLower) {\n if (hours > 11) {\n return isLower ? \"d'o\" : \"D'O\";\n } else {\n return isLower ? \"d'a\" : \"D'A\";\n }\n },\n calendar: {\n sameDay: '[oxhi à] LT',\n nextDay: '[demà à] LT',\n nextWeek: 'dddd [à] LT',\n lastDay: '[ieiri à] LT',\n lastWeek: '[sür el] dddd [lasteu à] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'osprei %s',\n past: 'ja%s',\n s: processRelativeTime,\n ss: processRelativeTime,\n m: processRelativeTime,\n mm: processRelativeTime,\n h: processRelativeTime,\n hh: processRelativeTime,\n d: processRelativeTime,\n dd: processRelativeTime,\n M: processRelativeTime,\n MM: processRelativeTime,\n y: processRelativeTime,\n yy: processRelativeTime,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var format = {\n s: ['viensas secunds', \"'iensas secunds\"],\n ss: [number + ' secunds', '' + number + ' secunds'],\n m: [\"'n míut\", \"'iens míut\"],\n mm: [number + ' míuts', '' + number + ' míuts'],\n h: [\"'n þora\", \"'iensa þora\"],\n hh: [number + ' þoras', '' + number + ' þoras'],\n d: [\"'n ziua\", \"'iensa ziua\"],\n dd: [number + ' ziuas', '' + number + ' ziuas'],\n M: [\"'n mes\", \"'iens mes\"],\n MM: [number + ' mesen', '' + number + ' mesen'],\n y: [\"'n ar\", \"'iens ar\"],\n yy: [number + ' ars', '' + number + ' ars'],\n };\n return isFuture\n ? format[key][0]\n : withoutSuffix\n ? format[key][0]\n : format[key][1];\n }\n\n return tzl;\n\n})));\n\n\n/***/ }),\n/* 453 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Central Atlas Tamazight [tzm]\n//! author : Abdel Said : https://github.com/abdelsaid\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var tzm = moment.defineLocale('tzm', {\n months: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split(\n '_'\n ),\n monthsShort: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split(\n '_'\n ),\n weekdays: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),\n weekdaysShort: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),\n weekdaysMin: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',\n nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',\n nextWeek: 'dddd [ⴴ] LT',\n lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',\n lastWeek: 'dddd [ⴴ] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',\n past: 'ⵢⴰⵏ %s',\n s: 'ⵉⵎⵉⴽ',\n ss: '%d ⵉⵎⵉⴽ',\n m: 'ⵎⵉⵏⵓⴺ',\n mm: '%d ⵎⵉⵏⵓⴺ',\n h: 'ⵙⴰⵄⴰ',\n hh: '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',\n d: 'ⴰⵙⵙ',\n dd: '%d oⵙⵙⴰⵏ',\n M: 'ⴰⵢoⵓⵔ',\n MM: '%d ⵉⵢⵢⵉⵔⵏ',\n y: 'ⴰⵙⴳⴰⵙ',\n yy: '%d ⵉⵙⴳⴰⵙⵏ',\n },\n week: {\n dow: 6, // Saturday is the first day of the week.\n doy: 12, // The week that contains Jan 12th is the first week of the year.\n },\n });\n\n return tzm;\n\n})));\n\n\n/***/ }),\n/* 454 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Central Atlas Tamazight Latin [tzm-latn]\n//! author : Abdel Said : https://github.com/abdelsaid\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var tzmLatn = moment.defineLocale('tzm-latn', {\n months: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split(\n '_'\n ),\n monthsShort: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split(\n '_'\n ),\n weekdays: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),\n weekdaysShort: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),\n weekdaysMin: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[asdkh g] LT',\n nextDay: '[aska g] LT',\n nextWeek: 'dddd [g] LT',\n lastDay: '[assant g] LT',\n lastWeek: 'dddd [g] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'dadkh s yan %s',\n past: 'yan %s',\n s: 'imik',\n ss: '%d imik',\n m: 'minuḍ',\n mm: '%d minuḍ',\n h: 'saɛa',\n hh: '%d tassaɛin',\n d: 'ass',\n dd: '%d ossan',\n M: 'ayowr',\n MM: '%d iyyirn',\n y: 'asgas',\n yy: '%d isgasn',\n },\n week: {\n dow: 6, // Saturday is the first day of the week.\n doy: 12, // The week that contains Jan 12th is the first week of the year.\n },\n });\n\n return tzmLatn;\n\n})));\n\n\n/***/ }),\n/* 455 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js language configuration\n//! locale : Uyghur (China) [ug-cn]\n//! author: boyaq : https://github.com/boyaq\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js language configuration\n\n var ugCn = moment.defineLocale('ug-cn', {\n months: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(\n '_'\n ),\n monthsShort: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(\n '_'\n ),\n weekdays: 'يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە'.split(\n '_'\n ),\n weekdaysShort: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),\n weekdaysMin: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY-MM-DD',\n LL: 'YYYY-يىلىM-ئاينىڭD-كۈنى',\n LLL: 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',\n LLLL: 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',\n },\n meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (\n meridiem === 'يېرىم كېچە' ||\n meridiem === 'سەھەر' ||\n meridiem === 'چۈشتىن بۇرۇن'\n ) {\n return hour;\n } else if (meridiem === 'چۈشتىن كېيىن' || meridiem === 'كەچ') {\n return hour + 12;\n } else {\n return hour >= 11 ? hour : hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n var hm = hour * 100 + minute;\n if (hm < 600) {\n return 'يېرىم كېچە';\n } else if (hm < 900) {\n return 'سەھەر';\n } else if (hm < 1130) {\n return 'چۈشتىن بۇرۇن';\n } else if (hm < 1230) {\n return 'چۈش';\n } else if (hm < 1800) {\n return 'چۈشتىن كېيىن';\n } else {\n return 'كەچ';\n }\n },\n calendar: {\n sameDay: '[بۈگۈن سائەت] LT',\n nextDay: '[ئەتە سائەت] LT',\n nextWeek: '[كېلەركى] dddd [سائەت] LT',\n lastDay: '[تۆنۈگۈن] LT',\n lastWeek: '[ئالدىنقى] dddd [سائەت] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s كېيىن',\n past: '%s بۇرۇن',\n s: 'نەچچە سېكونت',\n ss: '%d سېكونت',\n m: 'بىر مىنۇت',\n mm: '%d مىنۇت',\n h: 'بىر سائەت',\n hh: '%d سائەت',\n d: 'بىر كۈن',\n dd: '%d كۈن',\n M: 'بىر ئاي',\n MM: '%d ئاي',\n y: 'بىر يىل',\n yy: '%d يىل',\n },\n\n dayOfMonthOrdinalParse: /\\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'DDD':\n return number + '-كۈنى';\n case 'w':\n case 'W':\n return number + '-ھەپتە';\n default:\n return number;\n }\n },\n preparse: function (string) {\n return string.replace(/،/g, ',');\n },\n postformat: function (string) {\n return string.replace(/,/g, '،');\n },\n week: {\n // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 1st is the first week of the year.\n },\n });\n\n return ugCn;\n\n})));\n\n\n/***/ }),\n/* 456 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Ukrainian [uk]\n//! author : zemlanin : https://github.com/zemlanin\n//! Author : Menelion Elensúle : https://github.com/Oire\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function plural(word, num) {\n var forms = word.split('_');\n return num % 10 === 1 && num % 100 !== 11\n ? forms[0]\n : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)\n ? forms[1]\n : forms[2];\n }\n function relativeTimeWithPlural(number, withoutSuffix, key) {\n var format = {\n ss: withoutSuffix ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд',\n mm: withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',\n hh: withoutSuffix ? 'година_години_годин' : 'годину_години_годин',\n dd: 'день_дні_днів',\n MM: 'місяць_місяці_місяців',\n yy: 'рік_роки_років',\n };\n if (key === 'm') {\n return withoutSuffix ? 'хвилина' : 'хвилину';\n } else if (key === 'h') {\n return withoutSuffix ? 'година' : 'годину';\n } else {\n return number + ' ' + plural(format[key], +number);\n }\n }\n function weekdaysCaseReplace(m, format) {\n var weekdays = {\n nominative: 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split(\n '_'\n ),\n accusative: 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split(\n '_'\n ),\n genitive: 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split(\n '_'\n ),\n },\n nounCase;\n\n if (m === true) {\n return weekdays['nominative']\n .slice(1, 7)\n .concat(weekdays['nominative'].slice(0, 1));\n }\n if (!m) {\n return weekdays['nominative'];\n }\n\n nounCase = /(\\[[ВвУу]\\]) ?dddd/.test(format)\n ? 'accusative'\n : /\\[?(?:минулої|наступної)? ?\\] ?dddd/.test(format)\n ? 'genitive'\n : 'nominative';\n return weekdays[nounCase][m.day()];\n }\n function processHoursFunction(str) {\n return function () {\n return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';\n };\n }\n\n var uk = moment.defineLocale('uk', {\n months: {\n format: 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split(\n '_'\n ),\n standalone: 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split(\n '_'\n ),\n },\n monthsShort: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split(\n '_'\n ),\n weekdays: weekdaysCaseReplace,\n weekdaysShort: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),\n weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY р.',\n LLL: 'D MMMM YYYY р., HH:mm',\n LLLL: 'dddd, D MMMM YYYY р., HH:mm',\n },\n calendar: {\n sameDay: processHoursFunction('[Сьогодні '),\n nextDay: processHoursFunction('[Завтра '),\n lastDay: processHoursFunction('[Вчора '),\n nextWeek: processHoursFunction('[У] dddd ['),\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n case 3:\n case 5:\n case 6:\n return processHoursFunction('[Минулої] dddd [').call(this);\n case 1:\n case 2:\n case 4:\n return processHoursFunction('[Минулого] dddd [').call(this);\n }\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'за %s',\n past: '%s тому',\n s: 'декілька секунд',\n ss: relativeTimeWithPlural,\n m: relativeTimeWithPlural,\n mm: relativeTimeWithPlural,\n h: 'годину',\n hh: relativeTimeWithPlural,\n d: 'день',\n dd: relativeTimeWithPlural,\n M: 'місяць',\n MM: relativeTimeWithPlural,\n y: 'рік',\n yy: relativeTimeWithPlural,\n },\n // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason\n meridiemParse: /ночі|ранку|дня|вечора/,\n isPM: function (input) {\n return /^(дня|вечора)$/.test(input);\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'ночі';\n } else if (hour < 12) {\n return 'ранку';\n } else if (hour < 17) {\n return 'дня';\n } else {\n return 'вечора';\n }\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(й|го)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'M':\n case 'd':\n case 'DDD':\n case 'w':\n case 'W':\n return number + '-й';\n case 'D':\n return number + '-го';\n default:\n return number;\n }\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return uk;\n\n})));\n\n\n/***/ }),\n/* 457 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Urdu [ur]\n//! author : Sawood Alam : https://github.com/ibnesayeed\n//! author : Zack : https://github.com/ZackVision\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var months = [\n 'جنوری',\n 'فروری',\n 'مارچ',\n 'اپریل',\n 'مئی',\n 'جون',\n 'جولائی',\n 'اگست',\n 'ستمبر',\n 'اکتوبر',\n 'نومبر',\n 'دسمبر',\n ],\n days = ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ'];\n\n var ur = moment.defineLocale('ur', {\n months: months,\n monthsShort: months,\n weekdays: days,\n weekdaysShort: days,\n weekdaysMin: days,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd، D MMMM YYYY HH:mm',\n },\n meridiemParse: /صبح|شام/,\n isPM: function (input) {\n return 'شام' === input;\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'صبح';\n }\n return 'شام';\n },\n calendar: {\n sameDay: '[آج بوقت] LT',\n nextDay: '[کل بوقت] LT',\n nextWeek: 'dddd [بوقت] LT',\n lastDay: '[گذشتہ روز بوقت] LT',\n lastWeek: '[گذشتہ] dddd [بوقت] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s بعد',\n past: '%s قبل',\n s: 'چند سیکنڈ',\n ss: '%d سیکنڈ',\n m: 'ایک منٹ',\n mm: '%d منٹ',\n h: 'ایک گھنٹہ',\n hh: '%d گھنٹے',\n d: 'ایک دن',\n dd: '%d دن',\n M: 'ایک ماہ',\n MM: '%d ماہ',\n y: 'ایک سال',\n yy: '%d سال',\n },\n preparse: function (string) {\n return string.replace(/،/g, ',');\n },\n postformat: function (string) {\n return string.replace(/,/g, '،');\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return ur;\n\n})));\n\n\n/***/ }),\n/* 458 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Uzbek [uz]\n//! author : Sardor Muminov : https://github.com/muminoff\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var uz = moment.defineLocale('uz', {\n months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(\n '_'\n ),\n monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),\n weekdays: 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),\n weekdaysShort: 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),\n weekdaysMin: 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'D MMMM YYYY, dddd HH:mm',\n },\n calendar: {\n sameDay: '[Бугун соат] LT [да]',\n nextDay: '[Эртага] LT [да]',\n nextWeek: 'dddd [куни соат] LT [да]',\n lastDay: '[Кеча соат] LT [да]',\n lastWeek: '[Утган] dddd [куни соат] LT [да]',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'Якин %s ичида',\n past: 'Бир неча %s олдин',\n s: 'фурсат',\n ss: '%d фурсат',\n m: 'бир дакика',\n mm: '%d дакика',\n h: 'бир соат',\n hh: '%d соат',\n d: 'бир кун',\n dd: '%d кун',\n M: 'бир ой',\n MM: '%d ой',\n y: 'бир йил',\n yy: '%d йил',\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return uz;\n\n})));\n\n\n/***/ }),\n/* 459 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Uzbek Latin [uz-latn]\n//! author : Rasulbek Mirzayev : github.com/Rasulbeeek\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var uzLatn = moment.defineLocale('uz-latn', {\n months: 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split(\n '_'\n ),\n monthsShort: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),\n weekdays: 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split(\n '_'\n ),\n weekdaysShort: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),\n weekdaysMin: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'D MMMM YYYY, dddd HH:mm',\n },\n calendar: {\n sameDay: '[Bugun soat] LT [da]',\n nextDay: '[Ertaga] LT [da]',\n nextWeek: 'dddd [kuni soat] LT [da]',\n lastDay: '[Kecha soat] LT [da]',\n lastWeek: \"[O'tgan] dddd [kuni soat] LT [da]\",\n sameElse: 'L',\n },\n relativeTime: {\n future: 'Yaqin %s ichida',\n past: 'Bir necha %s oldin',\n s: 'soniya',\n ss: '%d soniya',\n m: 'bir daqiqa',\n mm: '%d daqiqa',\n h: 'bir soat',\n hh: '%d soat',\n d: 'bir kun',\n dd: '%d kun',\n M: 'bir oy',\n MM: '%d oy',\n y: 'bir yil',\n yy: '%d yil',\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return uzLatn;\n\n})));\n\n\n/***/ }),\n/* 460 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Vietnamese [vi]\n//! author : Bang Nguyen : https://github.com/bangnk\n//! author : Chien Kira : https://github.com/chienkira\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var vi = moment.defineLocale('vi', {\n months: 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split(\n '_'\n ),\n monthsShort: 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split(\n '_'\n ),\n weekdaysShort: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),\n weekdaysMin: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),\n weekdaysParseExact: true,\n meridiemParse: /sa|ch/i,\n isPM: function (input) {\n return /^ch$/i.test(input);\n },\n meridiem: function (hours, minutes, isLower) {\n if (hours < 12) {\n return isLower ? 'sa' : 'SA';\n } else {\n return isLower ? 'ch' : 'CH';\n }\n },\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM [năm] YYYY',\n LLL: 'D MMMM [năm] YYYY HH:mm',\n LLLL: 'dddd, D MMMM [năm] YYYY HH:mm',\n l: 'DD/M/YYYY',\n ll: 'D MMM YYYY',\n lll: 'D MMM YYYY HH:mm',\n llll: 'ddd, D MMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Hôm nay lúc] LT',\n nextDay: '[Ngày mai lúc] LT',\n nextWeek: 'dddd [tuần tới lúc] LT',\n lastDay: '[Hôm qua lúc] LT',\n lastWeek: 'dddd [tuần trước lúc] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s tới',\n past: '%s trước',\n s: 'vài giây',\n ss: '%d giây',\n m: 'một phút',\n mm: '%d phút',\n h: 'một giờ',\n hh: '%d giờ',\n d: 'một ngày',\n dd: '%d ngày',\n M: 'một tháng',\n MM: '%d tháng',\n y: 'một năm',\n yy: '%d năm',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}/,\n ordinal: function (number) {\n return number;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return vi;\n\n})));\n\n\n/***/ }),\n/* 461 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Pseudo [x-pseudo]\n//! author : Andrew Hood : https://github.com/andrewhood125\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var xPseudo = moment.defineLocale('x-pseudo', {\n months: 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split(\n '_'\n ),\n monthsShort: 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split(\n '_'\n ),\n weekdaysShort: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),\n weekdaysMin: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[T~ódá~ý át] LT',\n nextDay: '[T~ómó~rró~w át] LT',\n nextWeek: 'dddd [át] LT',\n lastDay: '[Ý~ést~érdá~ý át] LT',\n lastWeek: '[L~ást] dddd [át] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'í~ñ %s',\n past: '%s á~gó',\n s: 'á ~féw ~sécó~ñds',\n ss: '%d s~écóñ~ds',\n m: 'á ~míñ~úté',\n mm: '%d m~íñú~tés',\n h: 'á~ñ hó~úr',\n hh: '%d h~óúrs',\n d: 'á ~dáý',\n dd: '%d d~áýs',\n M: 'á ~móñ~th',\n MM: '%d m~óñt~hs',\n y: 'á ~ýéár',\n yy: '%d ý~éárs',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(th|st|nd|rd)/,\n ordinal: function (number) {\n var b = number % 10,\n output =\n ~~((number % 100) / 10) === 1\n ? 'th'\n : b === 1\n ? 'st'\n : b === 2\n ? 'nd'\n : b === 3\n ? 'rd'\n : 'th';\n return number + output;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return xPseudo;\n\n})));\n\n\n/***/ }),\n/* 462 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Yoruba Nigeria [yo]\n//! author : Atolagbe Abisoye : https://github.com/andela-batolagbe\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var yo = moment.defineLocale('yo', {\n months: 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split(\n '_'\n ),\n monthsShort: 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'),\n weekdays: 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'),\n weekdaysShort: 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'),\n weekdaysMin: 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'),\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY h:mm A',\n LLLL: 'dddd, D MMMM YYYY h:mm A',\n },\n calendar: {\n sameDay: '[Ònì ni] LT',\n nextDay: '[Ọ̀la ni] LT',\n nextWeek: \"dddd [Ọsẹ̀ tón'bọ] [ni] LT\",\n lastDay: '[Àna ni] LT',\n lastWeek: 'dddd [Ọsẹ̀ tólọ́] [ni] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'ní %s',\n past: '%s kọjá',\n s: 'ìsẹjú aayá die',\n ss: 'aayá %d',\n m: 'ìsẹjú kan',\n mm: 'ìsẹjú %d',\n h: 'wákati kan',\n hh: 'wákati %d',\n d: 'ọjọ́ kan',\n dd: 'ọjọ́ %d',\n M: 'osù kan',\n MM: 'osù %d',\n y: 'ọdún kan',\n yy: 'ọdún %d',\n },\n dayOfMonthOrdinalParse: /ọjọ́\\s\\d{1,2}/,\n ordinal: 'ọjọ́ %d',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return yo;\n\n})));\n\n\n/***/ }),\n/* 463 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Chinese (Hong Kong) [zh-hk]\n//! author : Ben : https://github.com/ben-lin\n//! author : Chris Lam : https://github.com/hehachris\n//! author : Konstantin : https://github.com/skfd\n//! author : Anthony : https://github.com/anthonylau\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var zhHk = moment.defineLocale('zh-hk', {\n months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(\n '_'\n ),\n monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(\n '_'\n ),\n weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),\n weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),\n weekdaysMin: '日_一_二_三_四_五_六'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY/MM/DD',\n LL: 'YYYY年M月D日',\n LLL: 'YYYY年M月D日 HH:mm',\n LLLL: 'YYYY年M月D日dddd HH:mm',\n l: 'YYYY/M/D',\n ll: 'YYYY年M月D日',\n lll: 'YYYY年M月D日 HH:mm',\n llll: 'YYYY年M月D日dddd HH:mm',\n },\n meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {\n return hour;\n } else if (meridiem === '中午') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === '下午' || meridiem === '晚上') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n var hm = hour * 100 + minute;\n if (hm < 600) {\n return '凌晨';\n } else if (hm < 900) {\n return '早上';\n } else if (hm < 1200) {\n return '上午';\n } else if (hm === 1200) {\n return '中午';\n } else if (hm < 1800) {\n return '下午';\n } else {\n return '晚上';\n }\n },\n calendar: {\n sameDay: '[今天]LT',\n nextDay: '[明天]LT',\n nextWeek: '[下]ddddLT',\n lastDay: '[昨天]LT',\n lastWeek: '[上]ddddLT',\n sameElse: 'L',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(日|月|週)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'DDD':\n return number + '日';\n case 'M':\n return number + '月';\n case 'w':\n case 'W':\n return number + '週';\n default:\n return number;\n }\n },\n relativeTime: {\n future: '%s後',\n past: '%s前',\n s: '幾秒',\n ss: '%d 秒',\n m: '1 分鐘',\n mm: '%d 分鐘',\n h: '1 小時',\n hh: '%d 小時',\n d: '1 天',\n dd: '%d 天',\n M: '1 個月',\n MM: '%d 個月',\n y: '1 年',\n yy: '%d 年',\n },\n });\n\n return zhHk;\n\n})));\n\n\n/***/ }),\n/* 464 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Chinese (Macau) [zh-mo]\n//! author : Ben : https://github.com/ben-lin\n//! author : Chris Lam : https://github.com/hehachris\n//! author : Tan Yuanhong : https://github.com/le0tan\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var zhMo = moment.defineLocale('zh-mo', {\n months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(\n '_'\n ),\n monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(\n '_'\n ),\n weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),\n weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),\n weekdaysMin: '日_一_二_三_四_五_六'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'YYYY年M月D日',\n LLL: 'YYYY年M月D日 HH:mm',\n LLLL: 'YYYY年M月D日dddd HH:mm',\n l: 'D/M/YYYY',\n ll: 'YYYY年M月D日',\n lll: 'YYYY年M月D日 HH:mm',\n llll: 'YYYY年M月D日dddd HH:mm',\n },\n meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {\n return hour;\n } else if (meridiem === '中午') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === '下午' || meridiem === '晚上') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n var hm = hour * 100 + minute;\n if (hm < 600) {\n return '凌晨';\n } else if (hm < 900) {\n return '早上';\n } else if (hm < 1130) {\n return '上午';\n } else if (hm < 1230) {\n return '中午';\n } else if (hm < 1800) {\n return '下午';\n } else {\n return '晚上';\n }\n },\n calendar: {\n sameDay: '[今天] LT',\n nextDay: '[明天] LT',\n nextWeek: '[下]dddd LT',\n lastDay: '[昨天] LT',\n lastWeek: '[上]dddd LT',\n sameElse: 'L',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(日|月|週)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'DDD':\n return number + '日';\n case 'M':\n return number + '月';\n case 'w':\n case 'W':\n return number + '週';\n default:\n return number;\n }\n },\n relativeTime: {\n future: '%s內',\n past: '%s前',\n s: '幾秒',\n ss: '%d 秒',\n m: '1 分鐘',\n mm: '%d 分鐘',\n h: '1 小時',\n hh: '%d 小時',\n d: '1 天',\n dd: '%d 天',\n M: '1 個月',\n MM: '%d 個月',\n y: '1 年',\n yy: '%d 年',\n },\n });\n\n return zhMo;\n\n})));\n\n\n/***/ }),\n/* 465 */\n/***/ (function(module, exports, __webpack_require__) {\n\n//! moment.js locale configuration\n//! locale : Chinese (Taiwan) [zh-tw]\n//! author : Ben : https://github.com/ben-lin\n//! author : Chris Lam : https://github.com/hehachris\n\n;(function (global, factory) {\n true ? factory(__webpack_require__(4)) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var zhTw = moment.defineLocale('zh-tw', {\n months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(\n '_'\n ),\n monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(\n '_'\n ),\n weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),\n weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),\n weekdaysMin: '日_一_二_三_四_五_六'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY/MM/DD',\n LL: 'YYYY年M月D日',\n LLL: 'YYYY年M月D日 HH:mm',\n LLLL: 'YYYY年M月D日dddd HH:mm',\n l: 'YYYY/M/D',\n ll: 'YYYY年M月D日',\n lll: 'YYYY年M月D日 HH:mm',\n llll: 'YYYY年M月D日dddd HH:mm',\n },\n meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {\n return hour;\n } else if (meridiem === '中午') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === '下午' || meridiem === '晚上') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n var hm = hour * 100 + minute;\n if (hm < 600) {\n return '凌晨';\n } else if (hm < 900) {\n return '早上';\n } else if (hm < 1130) {\n return '上午';\n } else if (hm < 1230) {\n return '中午';\n } else if (hm < 1800) {\n return '下午';\n } else {\n return '晚上';\n }\n },\n calendar: {\n sameDay: '[今天] LT',\n nextDay: '[明天] LT',\n nextWeek: '[下]dddd LT',\n lastDay: '[昨天] LT',\n lastWeek: '[上]dddd LT',\n sameElse: 'L',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(日|月|週)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'DDD':\n return number + '日';\n case 'M':\n return number + '月';\n case 'w':\n case 'W':\n return number + '週';\n default:\n return number;\n }\n },\n relativeTime: {\n future: '%s後',\n past: '%s前',\n s: '幾秒',\n ss: '%d 秒',\n m: '1 分鐘',\n mm: '%d 分鐘',\n h: '1 小時',\n hh: '%d 小時',\n d: '1 天',\n dd: '%d 天',\n M: '1 個月',\n MM: '%d 個月',\n y: '1 年',\n yy: '%d 年',\n },\n });\n\n return zhTw;\n\n})));\n\n\n/***/ }),\n/* 466 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = mapSelf;\n\nvar _react = _interopRequireDefault(__webpack_require__(0));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction mirror(o) {\n return o;\n}\n\nfunction mapSelf(children) {\n // return ReactFragment\n return _react.default.Children.map(children, mirror);\n}\n\n/***/ }),\n/* 467 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = addEventListenerWrap;\n\nvar _addDomEventListener = __webpack_require__(12);\n\nvar _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nfunction addEventListenerWrap(target, eventType, cb) {\n /* eslint camelcase: 2 */\n var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {\n _reactDom2.default.unstable_batchedUpdates(cb, e);\n } : cb;\n return (0, _addDomEventListener2.default)(target, eventType, callback);\n}\n\n/***/ }),\n/* 468 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _DecadePanel = __webpack_require__(469);\n\nvar _DecadePanel2 = _interopRequireDefault(_DecadePanel);\n\nvar _DateInput = __webpack_require__(78);\n\nvar _DateInput2 = _interopRequireDefault(_DateInput);\n\nvar _moment = __webpack_require__(4);\n\nvar _moment2 = _interopRequireDefault(_moment);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar ROW = 4;\nvar COL = 3;\n\nfunction goYear(direction) {\n var value = this.state.value.clone();\n value.add(direction, 'year');\n this.setState({\n value: value\n });\n}\n\nfunction chooseYear(year) {\n var value = this.state.value.clone();\n value.year(year);\n value.month(this.state.value.month());\n this.props.onSelect(value);\n}\n\nvar YearPanel = function (_React$Component) {\n _inherits(YearPanel, _React$Component);\n\n function YearPanel(props) {\n _classCallCheck(this, YearPanel);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));\n\n _this.yearSelect = function (value) {\n var _this$props = _this.props,\n onSelect = _this$props.onSelect,\n format = _this$props.format;\n\n onSelect && onSelect(value, value ? value.format(format) : '');\n };\n\n _this.onInputChange = function (value) {\n var _this$props2 = _this.props,\n onChange = _this$props2.onChange,\n format = _this$props2.format;\n\n _this.setState({\n value: value ? value : (0, _moment2[\"default\"])()\n });\n onChange && onChange(value, value ? value.format(format) : '');\n };\n\n _this.onClear = function () {\n var _this$props3 = _this.props,\n onChange = _this$props3.onChange,\n format = _this$props3.format,\n onClear = _this$props3.onClear;\n\n _this.setState({\n value: (0, _moment2[\"default\"])()\n });\n onChange && onChange('', '');\n onClear && onClear('', '');\n };\n\n _this.prefixCls = props.rootPrefixCls + '-year-panel';\n _this.state = {\n value: props.value || props.defaultValue || (0, _moment2[\"default\"])()\n };\n _this.nextDecade = goYear.bind(_this, 10);\n _this.previousDecade = goYear.bind(_this, -10);\n ['showDecadePanel', 'onDecadePanelSelect'].forEach(function (method) {\n _this[method] = _this[method].bind(_this);\n });\n return _this;\n }\n\n YearPanel.prototype.onDecadePanelSelect = function onDecadePanelSelect(current) {\n this.setState({\n value: current,\n showDecadePanel: 0\n });\n };\n\n YearPanel.prototype.years = function years() {\n var value = this.state.value;\n var currentYear = value.year();\n var startYear = parseInt(currentYear / 10, 10) * 10;\n var previousYear = startYear - 1;\n var years = [];\n var index = 0;\n for (var rowIndex = 0; rowIndex < ROW; rowIndex++) {\n years[rowIndex] = [];\n for (var colIndex = 0; colIndex < COL; colIndex++) {\n var year = previousYear + index;\n var content = String(year);\n years[rowIndex][colIndex] = {\n content: content,\n year: year,\n title: content\n };\n index++;\n }\n }\n return years;\n };\n\n YearPanel.prototype.showDecadePanel = function showDecadePanel() {\n this.setState({\n showDecadePanel: 1\n });\n };\n\n YearPanel.prototype.render = function render() {\n var _this2 = this;\n\n var props = this.props;\n var value = this.state.value;\n var locale = props.locale;\n var years = this.years();\n var currentYear = value.year();\n var startYear = parseInt(currentYear / 10, 10) * 10;\n var endYear = startYear + 9;\n var prefixCls = this.prefixCls;\n\n var yeasEls = years.map(function (row, index) {\n var tds = row.map(function (yearData) {\n var _classNameMap;\n\n var classNameMap = (_classNameMap = {}, _defineProperty(_classNameMap, prefixCls + '-cell', 1), _defineProperty(_classNameMap, prefixCls + '-selected-cell', yearData.year === currentYear), _defineProperty(_classNameMap, prefixCls + '-last-decade-cell', yearData.year < startYear), _defineProperty(_classNameMap, prefixCls + '-next-decade-cell', yearData.year > endYear), _classNameMap);\n var clickHandler = void 0;\n if (yearData.year < startYear) {\n clickHandler = _this2.previousDecade;\n } else if (yearData.year > endYear) {\n clickHandler = _this2.nextDecade;\n } else {\n clickHandler = chooseYear.bind(_this2, yearData.year);\n }\n return _react2[\"default\"].createElement(\n 'td',\n {\n role: 'gridcell',\n title: yearData.title,\n key: yearData.content,\n onClick: clickHandler,\n className: (0, _classnames2[\"default\"])(classNameMap)\n },\n _react2[\"default\"].createElement(\n 'a',\n {\n className: prefixCls + '-year'\n },\n yearData.content\n )\n );\n });\n return _react2[\"default\"].createElement(\n 'tr',\n { key: index, role: 'row' },\n tds\n );\n });\n\n var decadePanel = void 0;\n if (this.state.showDecadePanel) {\n decadePanel = _react2[\"default\"].createElement(_DecadePanel2[\"default\"], {\n locale: locale,\n value: value,\n rootPrefixCls: props.rootPrefixCls,\n onSelect: this.onDecadePanelSelect\n });\n }\n var showDateInput = props.showDateInput,\n rootPrefixCls = props.rootPrefixCls,\n format = props.format,\n validatorFunc = props.validatorFunc;\n\n return _react2[\"default\"].createElement(\n 'div',\n { className: this.prefixCls },\n _react2[\"default\"].createElement(\n 'div',\n null,\n showDateInput ? _react2[\"default\"].createElement(_DateInput2[\"default\"], {\n value: value,\n prefixCls: this.props.rootPrefixCls,\n showClear: true,\n locale: locale,\n format: format,\n onChange: this.onInputChange,\n selectedValue: value,\n onClear: this.onClear,\n onSelect: this.yearSelect,\n validatorFunc: validatorFunc\n }) : '',\n _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-header' },\n _react2[\"default\"].createElement('a', {\n className: prefixCls + '-prev-decade-btn',\n role: 'button',\n onClick: this.previousDecade,\n title: locale.previousDecade\n }),\n _react2[\"default\"].createElement(\n 'a',\n {\n className: prefixCls + '-decade-select',\n role: 'button',\n onClick: this.showDecadePanel,\n title: locale.decadeSelect\n },\n _react2[\"default\"].createElement(\n 'span',\n { className: prefixCls + '-decade-select-content' },\n startYear,\n '-',\n endYear\n ),\n _react2[\"default\"].createElement(\n 'span',\n { className: prefixCls + '-decade-select-arrow' },\n 'x'\n )\n ),\n _react2[\"default\"].createElement('a', {\n className: prefixCls + '-next-decade-btn',\n role: 'button',\n onClick: this.nextDecade,\n title: locale.nextDecade\n })\n ),\n _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-body' },\n _react2[\"default\"].createElement(\n 'table',\n { className: prefixCls + '-table', cellSpacing: '0', role: 'grid' },\n _react2[\"default\"].createElement(\n 'tbody',\n { className: prefixCls + '-tbody' },\n yeasEls\n )\n )\n )\n ),\n decadePanel\n );\n };\n\n return YearPanel;\n}(_react2[\"default\"].Component);\n\nexports[\"default\"] = YearPanel;\n\n\nYearPanel.propTypes = {\n rootPrefixCls: _propTypes2[\"default\"].string,\n value: _propTypes2[\"default\"].object,\n defaultValue: _propTypes2[\"default\"].object\n};\n\nYearPanel.defaultProps = {\n onSelect: function onSelect() {},\n\n format: 'YYYY',\n showDateInput: false\n};\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 469 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar ROW = 4;\nvar COL = 3;\n\n\nfunction goYear(direction) {\n var next = this.state.value.clone();\n next.add(direction, 'years');\n this.setState({\n value: next\n });\n}\n\nfunction chooseDecade(year, event) {\n var next = this.state.value.clone();\n next.year(year);\n next.month(this.state.value.month());\n this.props.onSelect(next);\n event.preventDefault();\n}\n\nvar DecadePanel = function (_React$Component) {\n _inherits(DecadePanel, _React$Component);\n\n function DecadePanel(props) {\n _classCallCheck(this, DecadePanel);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));\n\n _this.state = {\n value: props.value || props.defaultValue\n };\n\n // bind methods\n _this.prefixCls = props.rootPrefixCls + '-decade-panel';\n _this.nextCentury = goYear.bind(_this, 100);\n _this.previousCentury = goYear.bind(_this, -100);\n return _this;\n }\n\n DecadePanel.prototype.render = function render() {\n var _this2 = this;\n\n var value = this.state.value;\n var _props = this.props,\n locale = _props.locale,\n renderFooter = _props.renderFooter;\n\n var currentYear = value.year();\n var startYear = parseInt(currentYear / 100, 10) * 100;\n var preYear = startYear - 10;\n var endYear = startYear + 99;\n var decades = [];\n var index = 0;\n var prefixCls = this.prefixCls;\n\n for (var rowIndex = 0; rowIndex < ROW; rowIndex++) {\n decades[rowIndex] = [];\n for (var colIndex = 0; colIndex < COL; colIndex++) {\n var startDecade = preYear + index * 10;\n var endDecade = preYear + index * 10 + 9;\n decades[rowIndex][colIndex] = {\n startDecade: startDecade,\n endDecade: endDecade\n };\n index++;\n }\n }\n\n var footer = renderFooter && renderFooter('decade');\n\n var decadesEls = decades.map(function (row, decadeIndex) {\n var tds = row.map(function (decadeData) {\n var _classNameMap;\n\n var dStartDecade = decadeData.startDecade;\n var dEndDecade = decadeData.endDecade;\n var isLast = dStartDecade < startYear;\n var isNext = dEndDecade > endYear;\n var classNameMap = (_classNameMap = {}, _defineProperty(_classNameMap, prefixCls + '-cell', 1), _defineProperty(_classNameMap, prefixCls + '-selected-cell', dStartDecade <= currentYear && currentYear <= dEndDecade), _defineProperty(_classNameMap, prefixCls + '-last-century-cell', isLast), _defineProperty(_classNameMap, prefixCls + '-next-century-cell', isNext), _classNameMap);\n var content = dStartDecade + '-' + dEndDecade;\n var clickHandler = void 0;\n if (isLast) {\n clickHandler = _this2.previousCentury;\n } else if (isNext) {\n clickHandler = _this2.nextCentury;\n } else {\n clickHandler = chooseDecade.bind(_this2, dStartDecade);\n }\n return _react2[\"default\"].createElement(\n 'td',\n {\n key: dStartDecade,\n onClick: clickHandler,\n role: 'gridcell',\n className: (0, _classnames2[\"default\"])(classNameMap)\n },\n _react2[\"default\"].createElement(\n 'a',\n {\n className: prefixCls + '-decade'\n },\n content\n )\n );\n });\n return _react2[\"default\"].createElement(\n 'tr',\n { key: decadeIndex, role: 'row' },\n tds\n );\n });\n\n return _react2[\"default\"].createElement(\n 'div',\n { className: this.prefixCls },\n _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-header' },\n _react2[\"default\"].createElement('a', {\n className: prefixCls + '-prev-century-btn',\n role: 'button',\n onClick: this.previousCentury,\n title: locale.previousCentury\n }),\n _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-century' },\n startYear,\n '-',\n endYear\n ),\n _react2[\"default\"].createElement('a', {\n className: prefixCls + '-next-century-btn',\n role: 'button',\n onClick: this.nextCentury,\n title: locale.nextCentury\n })\n ),\n _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-body' },\n _react2[\"default\"].createElement(\n 'table',\n { className: prefixCls + '-table', cellSpacing: '0', role: 'grid' },\n _react2[\"default\"].createElement(\n 'tbody',\n { className: prefixCls + '-tbody' },\n decadesEls\n )\n )\n ),\n footer && _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-footer' },\n footer\n )\n );\n };\n\n return DecadePanel;\n}(_react2[\"default\"].Component);\n\nexports[\"default\"] = DecadePanel;\n\n\nDecadePanel.propTypes = {\n locale: _propTypes2[\"default\"].object,\n value: _propTypes2[\"default\"].object,\n defaultValue: _propTypes2[\"default\"].object,\n rootPrefixCls: _propTypes2[\"default\"].string,\n renderFooter: _propTypes2[\"default\"].func\n};\n\nDecadePanel.defaultProps = {\n onSelect: function onSelect() {}\n};\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 470 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _mapSelf = __webpack_require__(466);\n\nvar _mapSelf2 = _interopRequireDefault(_mapSelf);\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _TodayButton = __webpack_require__(471);\n\nvar _TodayButton2 = _interopRequireDefault(_TodayButton);\n\nvar _OkButton = __webpack_require__(472);\n\nvar _OkButton2 = _interopRequireDefault(_OkButton);\n\nvar _TimePickerButton = __webpack_require__(473);\n\nvar _TimePickerButton2 = _interopRequireDefault(_TimePickerButton);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar CalendarFooter = function (_React$Component) {\n _inherits(CalendarFooter, _React$Component);\n\n function CalendarFooter() {\n _classCallCheck(this, CalendarFooter);\n\n return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n CalendarFooter.prototype.onSelect = function onSelect(value) {\n this.props.onSelect(value);\n };\n\n CalendarFooter.prototype.getRootDOMNode = function getRootDOMNode() {\n return _reactDom2[\"default\"].findDOMNode(this);\n };\n\n CalendarFooter.prototype.render = function render() {\n var props = this.props;\n var value = props.value,\n prefixCls = props.prefixCls,\n showOk = props.showOk,\n timePicker = props.timePicker,\n renderFooter = props.renderFooter,\n mode = props.mode;\n\n var footerEl = null;\n var extraFooter = renderFooter && renderFooter(mode);\n if (props.showToday || timePicker || extraFooter) {\n var nowEl = void 0;\n if (props.showToday) {\n nowEl = _react2[\"default\"].createElement(_TodayButton2[\"default\"], _extends({}, props, { value: value }));\n }\n var okBtn = void 0;\n if (showOk === true || showOk !== false && !!props.timePicker) {\n okBtn = _react2[\"default\"].createElement(_OkButton2[\"default\"], props);\n }\n var timePickerBtn = void 0;\n if (!!props.timePicker) {\n timePickerBtn = _react2[\"default\"].createElement(_TimePickerButton2[\"default\"], props);\n }\n\n var footerBtn = void 0;\n if (nowEl || timePickerBtn || okBtn || extraFooter) {\n footerBtn = _react2[\"default\"].createElement(\n 'span',\n { className: prefixCls + '-footer-btn' },\n extraFooter ? _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-footer-extra' },\n extraFooter\n ) : null,\n (0, _mapSelf2[\"default\"])([nowEl, timePickerBtn, okBtn])\n );\n }\n var cls = (0, _classnames2[\"default\"])(prefixCls + '-footer', _defineProperty({}, prefixCls + '-footer-show-ok', okBtn));\n footerEl = _react2[\"default\"].createElement(\n 'div',\n { className: cls },\n footerBtn\n );\n }\n return footerEl;\n };\n\n return CalendarFooter;\n}(_react2[\"default\"].Component);\n\nCalendarFooter.propTypes = {\n prefixCls: _propTypes2[\"default\"].string,\n showDateInput: _propTypes2[\"default\"].bool,\n disabledTime: _propTypes2[\"default\"].any,\n timePicker: _propTypes2[\"default\"].element,\n selectedValue: _propTypes2[\"default\"].any,\n showOk: _propTypes2[\"default\"].bool,\n onSelect: _propTypes2[\"default\"].func,\n value: _propTypes2[\"default\"].object,\n renderFooter: _propTypes2[\"default\"].func,\n defaultValue: _propTypes2[\"default\"].object,\n mode: _propTypes2[\"default\"].string\n};\nexports[\"default\"] = CalendarFooter;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 471 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = TodayButton;\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _util = __webpack_require__(32);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction TodayButton(_ref) {\n var prefixCls = _ref.prefixCls,\n locale = _ref.locale,\n value = _ref.value,\n timePicker = _ref.timePicker,\n disabled = _ref.disabled,\n disabledDate = _ref.disabledDate,\n onToday = _ref.onToday,\n text = _ref.text;\n\n var localeNow = (!text && timePicker ? locale.now : text) || locale.today;\n var disabledToday = disabledDate && !(0, _util.isAllowedDate)((0, _util.getTodayTime)(value), disabledDate);\n var isDisabled = disabledToday || disabled;\n var disabledTodayClass = isDisabled ? prefixCls + '-today-btn-disabled' : '';\n return _react2[\"default\"].createElement(\n 'a',\n {\n className: prefixCls + '-today-btn ' + disabledTodayClass,\n role: 'button',\n onClick: isDisabled ? null : onToday,\n title: (0, _util.getTodayTimeStr)(value)\n },\n localeNow\n );\n}\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 472 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = OkButton;\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _beeButton = __webpack_require__(1289);\n\nvar _beeButton2 = _interopRequireDefault(_beeButton);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction OkButton(_ref) {\n var prefixCls = _ref.prefixCls,\n locale = _ref.locale,\n okDisabled = _ref.okDisabled,\n onOk = _ref.onOk;\n\n var className = prefixCls + '-btn-ok';\n // if (okDisabled) {\n // className += ` ${prefixCls}-ok-btn-disabled`;\n // }\n return _react2[\"default\"].createElement(\n _beeButton2[\"default\"],\n {\n className: className,\n size: 'sm', colors: 'primary',\n disabled: !!okDisabled,\n onClick: okDisabled ? null : onOk\n },\n locale.ok\n );\n}\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 473 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = TimePickerButton;\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _classnames2 = __webpack_require__(2);\n\nvar _classnames3 = _interopRequireDefault(_classnames2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction TimePickerButton(_ref) {\n var _classnames;\n\n var prefixCls = _ref.prefixCls,\n locale = _ref.locale,\n showTimePicker = _ref.showTimePicker,\n onOpenTimePicker = _ref.onOpenTimePicker,\n onCloseTimePicker = _ref.onCloseTimePicker,\n timePickerDisabled = _ref.timePickerDisabled;\n\n var className = (0, _classnames3[\"default\"])((_classnames = {}, _defineProperty(_classnames, prefixCls + '-time-picker-btn', true), _defineProperty(_classnames, prefixCls + '-time-picker-btn-disabled', timePickerDisabled), _classnames));\n var onClick = null;\n if (!timePickerDisabled) {\n onClick = showTimePicker ? onCloseTimePicker : onOpenTimePicker;\n }\n return _react2[\"default\"].createElement(\n 'a',\n {\n className: className,\n role: 'button',\n onClick: onClick\n },\n showTimePicker ? locale.dateSelect : locale.timeSelect\n );\n}\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 474 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.calendarMixinWrapper = exports.calendarMixinDefaultProps = exports.calendarMixinPropTypes = undefined;\nexports.getNowByCurrentStateValue = getNowByCurrentStateValue;\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _moment = __webpack_require__(4);\n\nvar _moment2 = _interopRequireDefault(_moment);\n\nvar _index = __webpack_require__(32);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nfunction noop() {}\n\nfunction getNowByCurrentStateValue(value) {\n var ret = void 0;\n if (value) {\n ret = (0, _index.getTodayTime)(value);\n } else {\n ret = (0, _moment2[\"default\"])();\n }\n return ret;\n}\n\nvar calendarMixinPropTypes = exports.calendarMixinPropTypes = {\n value: _propTypes2[\"default\"].object,\n defaultValue: _propTypes2[\"default\"].object,\n onKeyDown: _propTypes2[\"default\"].func\n};\n\nvar calendarMixinDefaultProps = exports.calendarMixinDefaultProps = {\n onKeyDown: noop\n};\n\nvar calendarMixinWrapper = exports.calendarMixinWrapper = function calendarMixinWrapper(ComposeComponent) {\n var _class, _temp2;\n\n return _temp2 = _class = function (_ComposeComponent) {\n _inherits(_class, _ComposeComponent);\n\n function _class() {\n var _temp, _this, _ret;\n\n _classCallCheck(this, _class);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, _ComposeComponent.call.apply(_ComposeComponent, [this].concat(args))), _this), _this.onSelect = function (value, cause) {\n if (value) {\n _this.setValue(value);\n }\n _this.setSelectedValue(value, cause);\n }, _this.renderRoot = function (newProps) {\n var _className;\n\n var props = _this.props;\n var prefixCls = props.prefixCls;\n\n var className = (_className = {}, _defineProperty(_className, prefixCls, 1), _defineProperty(_className, prefixCls + '-hidden', !props.visible), _defineProperty(_className, props.className, !!props.className), _defineProperty(_className, newProps.className, !!newProps.className), _className);\n\n return _react2[\"default\"].createElement(\n 'div',\n {\n ref: _this.saveRoot,\n className: '' + (0, _classnames2[\"default\"])(className),\n style: _this.props.style,\n tabIndex: '0',\n onKeyDown: _this.onKeyDown\n },\n newProps.children\n );\n }, _this.setSelectedValue = function (selectedValue, cause) {\n // if (this.isAllowedDate(selectedValue)) {\n if (!('selectedValue' in _this.props)) {\n _this.setState({\n selectedValue: selectedValue\n });\n }\n if (_this.props.onSelect) {\n _this.props.onSelect(selectedValue, cause);\n }\n // }\n }, _this.setValue = function (value) {\n var originalValue = _this.state.value;\n if (!('value' in _this.props)) {\n _this.setState({\n value: value\n });\n }\n if (originalValue && value && !originalValue.isSame(value) || !originalValue && value || originalValue && !value) {\n _this.props.onChange(value);\n }\n }, _this.isAllowedDate = function (value) {\n var disabledDate = _this.props.disabledDate;\n var disabledTime = _this.props.disabledTime;\n return (0, _index.isAllowedDate)(value, disabledDate, disabledTime);\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n _class.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, prevState) {\n // Use origin function if provided\n if (ComposeComponent.getDerivedStateFromProps) {\n return ComposeComponent.getDerivedStateFromProps(nextProps, prevState);\n }\n\n var value = nextProps.value,\n selectedValue = nextProps.selectedValue;\n\n var newState = {};\n\n if ('value' in nextProps) {\n newState.value = value || nextProps.defaultValue || getNowByCurrentStateValue(prevState.value);\n }\n if ('selectedValue' in nextProps) {\n newState.selectedValue = selectedValue;\n }\n\n return newState;\n };\n\n return _class;\n }(ComposeComponent), _class.displayName = 'CalendarMixinWrapper', _class.defaultProps = ComposeComponent.defaultProps, _temp2;\n};\n\n/***/ }),\n/* 475 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports['default'] = {\n today: 'Today',\n now: 'Now',\n backToToday: 'Back to today',\n ok: 'Ok',\n clear: 'Clear',\n month: 'Month',\n year: 'Year',\n timeSelect: 'select time',\n dateSelect: 'select date',\n weekSelect: 'Choose a week',\n monthSelect: 'Choose a month',\n yearSelect: 'Choose a year',\n decadeSelect: 'Choose a decade',\n yearFormat: 'YYYY',\n dateFormat: 'M/D/YYYY',\n dayFormat: 'D',\n dateTimeFormat: 'M/D/YYYY HH:mm:ss',\n monthBeforeYear: true,\n previousMonth: 'Previous month (PageUp)',\n nextMonth: 'Next month (PageDown)',\n previousYear: 'Last year (Control + left)',\n nextYear: 'Next year (Control + right)',\n previousDecade: 'Last decade',\n nextDecade: 'Next decade',\n previousCentury: 'Last century',\n nextCentury: 'Next century'\n};\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 476 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.goStartMonth = goStartMonth;\nexports.goEndMonth = goEndMonth;\nexports.goTime = goTime;\nexports.includesTime = includesTime;\nfunction goStartMonth(time) {\n return time.clone().startOf('month');\n}\n\nfunction goEndMonth(time) {\n return time.clone().endOf('month');\n}\n\nfunction goTime(time, direction, unit) {\n return time.clone().add(direction, unit);\n}\n\nfunction includesTime() {\n var timeList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var time = arguments[1];\n var unit = arguments[2];\n\n return timeList.some(function (t) {\n return t.isSame(time, unit);\n });\n}\n\n/***/ }),\n/* 477 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _react = _interopRequireWildcard(__webpack_require__(0));\n\nvar _propTypes = _interopRequireDefault(__webpack_require__(1));\n\nvar _moment = _interopRequireDefault(__webpack_require__(4));\n\nvar _classnames = _interopRequireDefault(__webpack_require__(2));\n\nvar _reactLifecyclesCompat = __webpack_require__(14);\n\nvar _Header = _interopRequireDefault(__webpack_require__(1293));\n\nvar _Combobox = _interopRequireDefault(__webpack_require__(1294));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _getRequireWildcardCache() { if (typeof WeakMap !== \"function\") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj[\"default\"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (typeof call === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction noop() {}\n\nfunction generateOptions(length, disabledOptions, hideDisabledOptions) {\n var step = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;\n var arr = [];\n\n for (var value = 0; value < length; value += step) {\n if (!disabledOptions || disabledOptions.indexOf(value) < 0 || !hideDisabledOptions) {\n arr.push(value);\n }\n }\n\n return arr;\n}\n\nfunction toNearestValidTime(time, hourOptions, minuteOptions, secondOptions) {\n var hour = hourOptions.slice().sort(function (a, b) {\n return Math.abs(time.hour() - a) - Math.abs(time.hour() - b);\n })[0];\n var minute = minuteOptions.slice().sort(function (a, b) {\n return Math.abs(time.minute() - a) - Math.abs(time.minute() - b);\n })[0];\n var second = secondOptions.slice().sort(function (a, b) {\n return Math.abs(time.second() - a) - Math.abs(time.second() - b);\n })[0];\n return (0, _moment[\"default\"])(\"\".concat(hour, \":\").concat(minute, \":\").concat(second), 'HH:mm:ss');\n}\n\nvar Panel =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(Panel, _Component);\n\n function Panel() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Panel);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Panel)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_this), \"state\", {});\n\n _defineProperty(_assertThisInitialized(_this), \"onChange\", function (newValue) {\n var onChange = _this.props.onChange;\n\n _this.setState({\n value: newValue\n });\n\n onChange(newValue);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onAmPmChange\", function (ampm) {\n var onAmPmChange = _this.props.onAmPmChange;\n onAmPmChange(ampm);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onCurrentSelectPanelChange\", function (currentSelectPanel) {\n _this.setState({\n currentSelectPanel: currentSelectPanel\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"disabledHours\", function () {\n var _this$props = _this.props,\n use12Hours = _this$props.use12Hours,\n disabledHours = _this$props.disabledHours;\n var disabledOptions = disabledHours();\n\n if (use12Hours && Array.isArray(disabledOptions)) {\n if (_this.isAM()) {\n disabledOptions = disabledOptions.filter(function (h) {\n return h < 12;\n }).map(function (h) {\n return h === 0 ? 12 : h;\n });\n } else {\n disabledOptions = disabledOptions.map(function (h) {\n return h === 12 ? 12 : h - 12;\n });\n }\n }\n\n return disabledOptions;\n });\n\n return _this;\n }\n\n _createClass(Panel, [{\n key: \"close\",\n // https://github.com/ant-design/ant-design/issues/5829\n value: function close() {\n var onEsc = this.props.onEsc;\n onEsc();\n }\n }, {\n key: \"isAM\",\n value: function isAM() {\n var defaultOpenValue = this.props.defaultOpenValue;\n var value = this.state.value;\n var realValue = value || defaultOpenValue;\n return realValue.hour() >= 0 && realValue.hour() < 12;\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this$props2 = this.props,\n prefixCls = _this$props2.prefixCls,\n className = _this$props2.className,\n placeholder = _this$props2.placeholder,\n disabledMinutes = _this$props2.disabledMinutes,\n disabledSeconds = _this$props2.disabledSeconds,\n hideDisabledOptions = _this$props2.hideDisabledOptions,\n showHour = _this$props2.showHour,\n showMinute = _this$props2.showMinute,\n showSecond = _this$props2.showSecond,\n format = _this$props2.format,\n defaultOpenValue = _this$props2.defaultOpenValue,\n clearText = _this$props2.clearText,\n onEsc = _this$props2.onEsc,\n addon = _this$props2.addon,\n use12Hours = _this$props2.use12Hours,\n focusOnOpen = _this$props2.focusOnOpen,\n onKeyDown = _this$props2.onKeyDown,\n hourStep = _this$props2.hourStep,\n minuteStep = _this$props2.minuteStep,\n secondStep = _this$props2.secondStep,\n inputReadOnly = _this$props2.inputReadOnly,\n clearIcon = _this$props2.clearIcon;\n var _this$state = this.state,\n value = _this$state.value,\n currentSelectPanel = _this$state.currentSelectPanel;\n var disabledHourOptions = this.disabledHours();\n var disabledMinuteOptions = disabledMinutes(value ? value.hour() : null);\n var disabledSecondOptions = disabledSeconds(value ? value.hour() : null, value ? value.minute() : null);\n var hourOptions = generateOptions(24, disabledHourOptions, hideDisabledOptions, hourStep);\n var minuteOptions = generateOptions(60, disabledMinuteOptions, hideDisabledOptions, minuteStep);\n var secondOptions = generateOptions(60, disabledSecondOptions, hideDisabledOptions, secondStep);\n var validDefaultOpenValue = toNearestValidTime(defaultOpenValue, hourOptions, minuteOptions, secondOptions);\n return _react[\"default\"].createElement(\"div\", {\n className: (0, _classnames[\"default\"])(className, \"\".concat(prefixCls, \"-inner\"))\n }, _react[\"default\"].createElement(_Header[\"default\"], {\n clearText: clearText,\n prefixCls: prefixCls,\n defaultOpenValue: validDefaultOpenValue,\n value: value,\n currentSelectPanel: currentSelectPanel,\n onEsc: onEsc,\n format: format,\n placeholder: placeholder,\n hourOptions: hourOptions,\n minuteOptions: minuteOptions,\n secondOptions: secondOptions,\n disabledHours: this.disabledHours,\n disabledMinutes: disabledMinutes,\n disabledSeconds: disabledSeconds,\n onChange: this.onChange,\n focusOnOpen: focusOnOpen,\n onKeyDown: onKeyDown,\n inputReadOnly: inputReadOnly,\n clearIcon: clearIcon\n }), _react[\"default\"].createElement(_Combobox[\"default\"], {\n prefixCls: prefixCls,\n value: value,\n defaultOpenValue: validDefaultOpenValue,\n format: format,\n onChange: this.onChange,\n onAmPmChange: this.onAmPmChange,\n showHour: showHour,\n showMinute: showMinute,\n showSecond: showSecond,\n hourOptions: hourOptions,\n minuteOptions: minuteOptions,\n secondOptions: secondOptions,\n disabledHours: this.disabledHours,\n disabledMinutes: disabledMinutes,\n disabledSeconds: disabledSeconds,\n onCurrentSelectPanelChange: this.onCurrentSelectPanelChange,\n use12Hours: use12Hours,\n onEsc: onEsc,\n isAM: this.isAM()\n }), addon(this));\n }\n }], [{\n key: \"getDerivedStateFromProps\",\n value: function getDerivedStateFromProps(props, state) {\n if ('value' in props) {\n return _objectSpread({}, state, {\n value: props.value\n });\n }\n\n return null;\n }\n }]);\n\n return Panel;\n}(_react.Component);\n\n_defineProperty(Panel, \"propTypes\", {\n clearText: _propTypes[\"default\"].string,\n prefixCls: _propTypes[\"default\"].string,\n className: _propTypes[\"default\"].string,\n defaultOpenValue: _propTypes[\"default\"].object,\n value: _propTypes[\"default\"].object,\n placeholder: _propTypes[\"default\"].string,\n format: _propTypes[\"default\"].string,\n inputReadOnly: _propTypes[\"default\"].bool,\n disabledHours: _propTypes[\"default\"].func,\n disabledMinutes: _propTypes[\"default\"].func,\n disabledSeconds: _propTypes[\"default\"].func,\n hideDisabledOptions: _propTypes[\"default\"].bool,\n onChange: _propTypes[\"default\"].func,\n onAmPmChange: _propTypes[\"default\"].func,\n onEsc: _propTypes[\"default\"].func,\n showHour: _propTypes[\"default\"].bool,\n showMinute: _propTypes[\"default\"].bool,\n showSecond: _propTypes[\"default\"].bool,\n use12Hours: _propTypes[\"default\"].bool,\n hourStep: _propTypes[\"default\"].number,\n minuteStep: _propTypes[\"default\"].number,\n secondStep: _propTypes[\"default\"].number,\n addon: _propTypes[\"default\"].func,\n focusOnOpen: _propTypes[\"default\"].bool,\n onKeyDown: _propTypes[\"default\"].func,\n clearIcon: _propTypes[\"default\"].node\n});\n\n_defineProperty(Panel, \"defaultProps\", {\n prefixCls: 'rc-time-picker-panel',\n onChange: noop,\n disabledHours: noop,\n disabledMinutes: noop,\n disabledSeconds: noop,\n defaultOpenValue: (0, _moment[\"default\"])(),\n use12Hours: false,\n addon: noop,\n onKeyDown: noop,\n onAmPmChange: noop,\n inputReadOnly: false\n});\n\n(0, _reactLifecyclesCompat.polyfill)(Panel);\nvar _default = Panel;\nexports[\"default\"] = _default;\n\n/***/ }),\n/* 478 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = __webpack_require__(0);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = {\n className: _propTypes2[\"default\"].string,\n colSpan: _propTypes2[\"default\"].number,\n title: _propTypes2[\"default\"].node,\n dataIndex: _propTypes2[\"default\"].string,\n width: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].number, _propTypes2[\"default\"].string]),\n fixed: _propTypes2[\"default\"].oneOf([true, 'left', 'right']),\n render: _propTypes2[\"default\"].func,\n onCellClick: _propTypes2[\"default\"].func,\n ifshow: _propTypes2[\"default\"].bool,\n fieldType: _propTypes2[\"default\"].string // 类型\n};\n\nvar Column = function (_Component) {\n _inherits(Column, _Component);\n\n function Column() {\n _classCallCheck(this, Column);\n\n return _possibleConstructorReturn(this, _Component.apply(this, arguments));\n }\n\n return Column;\n}(_react.Component);\n\nColumn.defaultProps = {\n ifshow: true\n};\n\n\nColumn.propTypes = propTypes;\n\nexports[\"default\"] = Column;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 479 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = __webpack_require__(0);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar ColumnGroup = function (_Component) {\n _inherits(ColumnGroup, _Component);\n\n function ColumnGroup() {\n _classCallCheck(this, ColumnGroup);\n\n return _possibleConstructorReturn(this, _Component.apply(this, arguments));\n }\n\n return ColumnGroup;\n}(_react.Component);\n\nColumnGroup.propTypes = {\n title: _propTypes2[\"default\"].node\n};\nexports[\"default\"] = ColumnGroup;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 480 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _beeAnimate = __webpack_require__(57);\n\nvar _beeAnimate2 = _interopRequireDefault(_beeAnimate);\n\nvar _util = __webpack_require__(187);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _tinperBeeCore = __webpack_require__(188);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar browserUa = typeof window !== 'undefined' ? (0, _util.browser)(window.navigator) : '';\nvar ieOrEdge = /.*(IE|Edge).+/.test(browserUa);\n// const uaArray = browserUa.split(' ');\n// const gtIE8 = uaArray.length !== 2 || uaArray[0].indexOf('IE') === -1 || Number(uaArray[1]) > 8;\n\nvar defaultTitle = '---';\n\nvar TreeNode = function (_React$Component) {\n _inherits(TreeNode, _React$Component);\n\n function TreeNode(props) {\n _classCallCheck(this, TreeNode);\n\n var _this2 = _possibleConstructorReturn(this, _React$Component.call(this, props));\n\n _this2.getNodeChildren = function () {\n var children = _this2.props.children;\n\n var originList = (0, _util.toArray)(children).filter(function (node) {\n return node;\n });\n var targetList = (0, _util.getNodeChildren)(originList);\n\n if (originList.length !== targetList.length) {\n (0, _util.warnOnlyTreeNode)();\n }\n\n return targetList;\n };\n\n ['onExpand', 'onCheck', 'onContextMenu', 'onMouseEnter', 'onMouseLeave', 'onDragStart', 'onDragEnter', 'onDragOver', 'onDragLeave', 'onDrop', 'onDragEnd', 'onDoubleClick', 'onKeyDown'].forEach(function (m) {\n _this2[m] = _this2[m].bind(_this2);\n });\n _this2.state = {\n dataLoading: false,\n dragNodeHighlight: false\n };\n return _this2;\n }\n\n TreeNode.prototype.componentDidMount = function componentDidMount() {\n if (!this.props.root._treeNodeInstances) {\n this.props.root._treeNodeInstances = [];\n }\n this.props.root._treeNodeInstances.push(this);\n };\n // shouldComponentUpdate(nextProps) {\n // if (!nextProps.expanded) {\n // return false;\n // }\n // return true;\n // }\n\n TreeNode.prototype.onCheck = function onCheck() {\n\n this.props.root.onCheck(this);\n };\n\n TreeNode.prototype.onSelect = function onSelect() {\n clearTimeout(this.doubleClickFlag);\n var _this = this;\n if (this.props.onDoubleClick) {\n //执行延时\n this.doubleClickFlag = setTimeout(function () {\n //do function在此处写单击事件要执行的代码\n _this.props.root.onSelect(_this);\n }, 300);\n } else {\n _this.props.root.onSelect(_this);\n }\n };\n\n TreeNode.prototype.onDoubleClick = function onDoubleClick() {\n clearTimeout(this.doubleClickFlag);\n this.props.root.onDoubleClick(this);\n };\n\n TreeNode.prototype.onMouseEnter = function onMouseEnter(e) {\n e.preventDefault();\n this.props.root.onMouseEnter(e, this);\n };\n\n TreeNode.prototype.onMouseLeave = function onMouseLeave(e) {\n e.preventDefault();\n this.props.root.onMouseLeave(e, this);\n };\n\n TreeNode.prototype.onContextMenu = function onContextMenu(e) {\n e.preventDefault();\n this.props.root.onContextMenu(e, this);\n };\n\n TreeNode.prototype.onDragStart = function onDragStart(e) {\n // console.log('dragstart', this.props.eventKey, e);\n // e.preventDefault();\n e.stopPropagation();\n this.setState({\n dragNodeHighlight: true\n });\n this.props.root.onDragStart(e, this);\n try {\n // ie throw error\n // firefox-need-it\n e.dataTransfer.setData('text/plain', '');\n } finally {\n // empty\n }\n };\n\n TreeNode.prototype.onDragEnter = function onDragEnter(e) {\n e.preventDefault();\n e.stopPropagation();\n this.props.root.onDragEnter(e, this);\n };\n\n TreeNode.prototype.onDragOver = function onDragOver(e) {\n // todo disabled\n e.preventDefault();\n e.stopPropagation();\n this.props.root.onDragOver(e, this);\n return false;\n };\n\n TreeNode.prototype.onDragLeave = function onDragLeave(e) {\n e.stopPropagation();\n this.props.root.onDragLeave(e, this);\n };\n\n TreeNode.prototype.onDrop = function onDrop(e) {\n e.preventDefault();\n e.stopPropagation();\n this.setState({\n dragNodeHighlight: false\n });\n this.props.root.onDrop(e, this);\n };\n\n TreeNode.prototype.onDragEnd = function onDragEnd(e) {\n e.stopPropagation();\n this.setState({\n dragNodeHighlight: false\n });\n this.props.root.onDragEnd(e, this);\n };\n\n TreeNode.prototype.onExpand = function onExpand() {\n var _this3 = this;\n\n var callbackPromise = this.props.root.onExpand(this);\n if (callbackPromise && (typeof callbackPromise === 'undefined' ? 'undefined' : _typeof(callbackPromise)) === 'object') {\n var setLoading = function setLoading(dataLoading) {\n _this3.setState({\n dataLoading: dataLoading\n });\n };\n setLoading(true);\n callbackPromise.then(function () {\n setLoading(false);\n }, function () {\n setLoading(false);\n });\n }\n };\n\n // keyboard event support\n\n\n TreeNode.prototype.onKeyDown = function onKeyDown(e) {\n this.props.root.onKeyDown(e, this);\n if (e.keyCode == _tinperBeeCore.KeyCode.SPACE || e.keyCode == _tinperBeeCore.KeyCode.DOWN || e.keyCode == _tinperBeeCore.KeyCode.LEFT || e.keyCode == _tinperBeeCore.KeyCode.RIGHT || e.keyCode == _tinperBeeCore.KeyCode.UP) {\n e.preventDefault();\n }\n };\n\n TreeNode.prototype.renderSwitcher = function renderSwitcher(props, expandedState) {\n var stateIcon = void 0;\n var prefixCls = props.prefixCls;\n var switcherCls = _defineProperty({}, prefixCls + '-switcher', true);\n if (!props.showLine) {\n switcherCls[prefixCls + '-noline_' + expandedState] = true;\n } else if (props.pos === '0-0') {\n switcherCls[prefixCls + '-roots_' + expandedState] = true;\n } else {\n switcherCls[prefixCls + '-center_' + expandedState] = !props.last;\n switcherCls[prefixCls + '-bottom_' + expandedState] = props.last;\n }\n\n if (expandedState === 'open' && props.openIcon) {\n stateIcon = props.openIcon;\n switcherCls['icon-none'] = true;\n }\n if (expandedState === 'close' && props.closeIcon) {\n stateIcon = props.closeIcon;\n switcherCls['icon-none'] = true;\n }\n //switcherCls[stateIcon] = stateIcon;\n props.switcherClass ? switcherCls['' + props.switcherClass] = true : '';\n if (props.disabled && !props.mustExpandable) {\n switcherCls[prefixCls + '-switcher-disabled'] = true;\n return _react2[\"default\"].createElement(\n 'span',\n { className: (0, _classnames2[\"default\"])(switcherCls), style: props.switcherStyle },\n stateIcon\n );\n }\n return _react2[\"default\"].createElement(\n 'span',\n { className: (0, _classnames2[\"default\"])(switcherCls), style: props.switcherStyle, onClick: this.onExpand },\n stateIcon\n );\n };\n\n TreeNode.prototype.renderCheckbox = function renderCheckbox(props) {\n var prefixCls = props.prefixCls;\n var checkboxCls = _defineProperty({}, prefixCls + '-checkbox', true);\n if (props.checked) {\n checkboxCls[prefixCls + '-checkbox-checked'] = true;\n } else if (props.halfChecked) {\n checkboxCls[prefixCls + '-checkbox-indeterminate'] = true;\n }\n var customEle = null;\n if (typeof props.checkable !== 'boolean') {\n customEle = props.checkable;\n }\n if (props.disabled || props.disableCheckbox) {\n checkboxCls[prefixCls + '-checkbox-disabled'] = true;\n return _react2[\"default\"].createElement(\n 'span',\n { className: (0, _classnames2[\"default\"])(checkboxCls) },\n customEle\n );\n }\n return _react2[\"default\"].createElement(\n 'span',\n {\n className: (0, _classnames2[\"default\"])(checkboxCls),\n onClick: this.onCheck\n },\n customEle\n );\n };\n\n TreeNode.prototype.renderChildren = function renderChildren(props) {\n var renderFirst = this.renderFirst;\n this.renderFirst = 1;\n var transitionAppear = true;\n if (!renderFirst && props.expanded) {\n transitionAppear = false;\n }\n var children = props.children;\n var newChildren = children;\n // 确定所有子节点是否是TreeNode\n var allTreeNode = false;\n if (Array.isArray(children)) {\n for (var index = 0; index < children.length; index++) {\n var item = children[index];\n allTreeNode = item.type.isTreeNode == 1;\n if (!allTreeNode) {\n //当检查到子节点中有不是 TreeNode 的,则直接结束检查。同时不会渲染所有子节点\n break;\n }\n }\n } else if (children && children.type && children.type.isTreeNode == 1) {\n allTreeNode = true;\n }\n // 如果props.children的长度大于0才可以生成子对象\n if (allTreeNode && _react2[\"default\"].Children.count(children)) {\n var _cls;\n\n var cls = (_cls = {}, _defineProperty(_cls, props.prefixCls + '-child-tree', true), _defineProperty(_cls, props.prefixCls + '-child-tree-open', props.expanded), _cls);\n if (props.showLine) {\n cls[props.prefixCls + '-line'] = !props.last;\n }\n var animProps = {};\n if (props.openTransitionName) {\n animProps.transitionName = props.openTransitionName;\n } else if (_typeof(props.openAnimation) === 'object') {\n animProps.animation = _extends({}, props.openAnimation);\n if (!transitionAppear) {\n delete animProps.animation.appear;\n }\n }\n newChildren = _react2[\"default\"].createElement(\n _beeAnimate2[\"default\"],\n _extends({}, animProps, {\n showProp: 'data-expanded',\n transitionAppear: transitionAppear,\n component: ''\n }),\n !props.expanded ? null : _react2[\"default\"].createElement(\n 'ul',\n { className: (0, _classnames2[\"default\"])(cls), 'data-expanded': props.expanded },\n _react2[\"default\"].Children.map(children, function (item, index) {\n return props.root.renderTreeNode(item, index, props.pos);\n }, props.root)\n )\n );\n }\n return newChildren;\n };\n\n /**\n *判断是否为叶子节点,isLeaf的优先级>props.children。如果是异步加载是根据isLeaf的值进行判断的\n *\n * @returns\n * @memberof TreeNode\n */\n TreeNode.prototype.checkIsLeaf = function checkIsLeaf() {\n var _props = this.props,\n isLeaf = _props.isLeaf,\n loadData = _props.loadData;\n\n var rs = isLeaf;\n if (rs === false || rs === true) {\n return rs;\n } else {\n var hasChildren = this.getNodeChildren().length !== 0;\n return !loadData && !hasChildren;\n }\n };\n\n TreeNode.prototype.render = function render() {\n var _iconEleCls,\n _this4 = this;\n\n var props = this.props;\n var prefixCls = props.prefixCls;\n var expandedState = props.expanded ? 'open' : 'close';\n var iconState = expandedState;\n\n var canRenderSwitcher = true;\n var content = props.title;\n var newChildren = this.renderChildren(props);\n var openIconCls = false,\n closeIconCls = false;\n\n //以下变量控制是否鼠标单机双击方法中的变量\n var timer = 0;\n var delay = 500;\n var prevent = false;\n\n // if (!newChildren || newChildren === props.children) {\n // // content = newChildren;\n // newChildren = null;\n // if (!props.loadData || props.isLeaf) {\n // canRenderSwitcher = false;\n // iconState = 'docu';\n // }\n // }\n if (this.checkIsLeaf()) {\n canRenderSwitcher = false;\n iconState = 'docu';\n }\n // For performance, does't render children into dom when `!props.expanded` (move to Animate)\n // if (!props.expanded) {\n // newChildren = null;\n // }\n\n var iconEleCls = (_iconEleCls = {}, _defineProperty(_iconEleCls, prefixCls + '-iconEle', true), _defineProperty(_iconEleCls, prefixCls + '-icon_loading', this.state.dataLoading), _defineProperty(_iconEleCls, prefixCls + '-icon__' + iconState, true), _iconEleCls);\n var selectHandle = function selectHandle() {\n var titleClass = props.titleClass ? prefixCls + '-title' + ' ' + props.className : prefixCls + '-title';\n // const icon = (props.showIcon || props.loadData && this.state.dataLoading) ?\n // : null;\n var icon = void 0;\n if (props.showIcon && props.icon) {\n icon = _react2[\"default\"].createElement(\n 'span',\n {\n className: (0, _classnames2[\"default\"])(prefixCls + '-iconEle', prefixCls + '-icon__customize')\n },\n typeof currentIcon === 'function' ? _react2[\"default\"].createElement(props.icon, _extends({}, _this4.props)) : props.icon\n );\n } else if (props.showIcon || props.loadData && _this4.state.dataLoading) {\n icon = _react2[\"default\"].createElement('span', { className: (0, _classnames2[\"default\"])(iconEleCls) });\n }\n var title = _react2[\"default\"].createElement(\n 'span',\n { className: titleClass, style: props.titleStyle },\n content\n );\n var wrap = prefixCls + '-node-content-wrapper';\n var domProps = {\n className: wrap + ' ' + wrap + '-' + (iconState === expandedState ? iconState : 'normal')\n };\n if (!props.disabled) {\n if (props.selected || !props._dropTrigger && _this4.state.dragNodeHighlight) {\n domProps.className += ' ' + prefixCls + '-node-selected';\n }\n domProps.onClick = function (e) {\n var _this = _this4;\n e.preventDefault();\n if (props.selectable) {\n _this.onSelect();\n }\n\n // not fire check event\n // if (props.checkable) {\n // this.onCheck();\n // }\n };\n\n if (props.onDoubleClick) {\n domProps.onDoubleClick = _this4.onDoubleClick;\n }\n\n if (props.onRightClick) {\n domProps.onContextMenu = _this4.onContextMenu;\n }\n if (props.onMouseEnter) {\n domProps.onMouseEnter = _this4.onMouseEnter;\n }\n if (props.onMouseLeave) {\n domProps.onMouseLeave = _this4.onMouseLeave;\n }\n\n if (props.draggable) {\n domProps.className += ' draggable';\n if (ieOrEdge) {\n // ie bug!\n domProps.href = '#';\n }\n domProps.draggable = true;\n domProps['aria-grabbed'] = true;\n domProps.onDragStart = _this4.onDragStart;\n }\n }\n //设置tabIndex\n if (props.focusable) {\n domProps.onKeyDown = _this4.onKeyDown;\n domProps.tabIndex = -1;\n if (props.tabIndexKey) {\n if (props.eventKey == props.tabIndexKey) {\n domProps.tabIndex = props.tabIndexValue;\n }\n } else if (props.pos == '0-0') {\n domProps.tabIndex = props.tabIndexValue;\n }\n }\n\n return _react2[\"default\"].createElement(\n 'a',\n _extends({ ref: function ref(el) {\n _this4.selectHandle = el;\n }, pos: props.pos, title: typeof content === 'string' ? content : '' }, domProps),\n icon,\n title\n );\n };\n\n var liProps = {};\n if (props.liAttr) {\n liProps = _extends({}, props.liAttr);\n }\n if (props.draggable) {\n liProps.onDragEnter = this.onDragEnter;\n liProps.onDragOver = this.onDragOver;\n liProps.onDragLeave = this.onDragLeave;\n liProps.onDrop = this.onDrop;\n liProps.onDragEnd = this.onDragEnd;\n }\n var disabledCls = '';\n var dragOverCls = '';\n if (props.disabled) {\n disabledCls = prefixCls + '-treenode-disabled';\n } else if (props.dragOver) {\n dragOverCls = 'drag-over';\n } else if (props.dragOverGapTop) {\n dragOverCls = 'drag-over-gap-top';\n } else if (props.dragOverGapBottom) {\n dragOverCls = 'drag-over-gap-bottom';\n }\n\n var filterCls = props.filterTreeNode ? props.filterTreeNode(this) ? 'filter-node' : '' : '';\n\n var noopSwitcher = function noopSwitcher() {\n var _cls2;\n\n var cls = (_cls2 = {}, _defineProperty(_cls2, prefixCls + '-switcher', true), _defineProperty(_cls2, prefixCls + '-switcher-noop', true), _cls2);\n if (props.showLine) {\n // console.log('line---------');\n cls[prefixCls + '-center_docu'] = !props.last;\n cls[prefixCls + '-bottom_docu'] = props.last;\n } else {\n cls[prefixCls + '-noline_docu'] = true;\n }\n return _react2[\"default\"].createElement('span', { className: (0, _classnames2[\"default\"])(cls) });\n };\n var selectedCls = props.selected ? prefixCls + '-treenode-selected' : '';\n var focusedCls = props.focused ? prefixCls + '-treenode-focused' : '';\n var expandedCls = prefixCls + '-treenode-' + expandedState;\n return _react2[\"default\"].createElement(\n 'li',\n _extends({}, liProps, { style: props.style,\n className: (0, _classnames2[\"default\"])(props.className, disabledCls, dragOverCls, filterCls, selectedCls, focusedCls, expandedCls)\n }),\n canRenderSwitcher ? this.renderSwitcher(props, expandedState) : noopSwitcher(),\n props.checkable ? this.renderCheckbox(props) : null,\n selectHandle(),\n newChildren\n );\n };\n\n return TreeNode;\n}(_react2[\"default\"].Component);\n\nTreeNode.isTreeNode = 1;\n\nTreeNode.propTypes = {\n prefixCls: _propTypes2[\"default\"].string,\n disabled: _propTypes2[\"default\"].bool,\n disableCheckbox: _propTypes2[\"default\"].bool,\n expanded: _propTypes2[\"default\"].bool,\n isLeaf: _propTypes2[\"default\"].bool,\n root: _propTypes2[\"default\"].object,\n onSelect: _propTypes2[\"default\"].func,\n openIcon: _propTypes2[\"default\"].element,\n closeIcon: _propTypes2[\"default\"].element,\n style: _propTypes2[\"default\"].object,\n className: _propTypes2[\"default\"].string,\n titleClass: _propTypes2[\"default\"].string,\n titleStyle: _propTypes2[\"default\"].object,\n switcherClass: _propTypes2[\"default\"].string,\n switcherStyle: _propTypes2[\"default\"].object\n};\n\nTreeNode.defaultProps = {\n title: defaultTitle,\n tabIndexValue: 0,\n mustExpandable: false\n};\n\nexports[\"default\"] = TreeNode;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 481 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = addEventListenerWrap;\n\nvar _addDomEventListener = __webpack_require__(12);\n\nvar _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nfunction addEventListenerWrap(target, eventType, cb) {\n /* eslint camelcase: 2 */\n var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {\n _reactDom2.default.unstable_batchedUpdates(cb, e);\n } : cb;\n return (0, _addDomEventListener2.default)(target, eventType, callback);\n}\n\n/***/ }),\n/* 482 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n/**\n * 在此存储全局配置项\n */\n\n// 树懒加载功能,需要用到的变量\nexports[\"default\"] = {\n loadBuffer: 5, //懒加载时缓冲区数据量\n defaultRowsInView: 20, //可视区数据量\n rowDiff: 3 //行差值,需要重新截取数据的阈值\n};\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 483 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _ownerDocument = __webpack_require__(112);\n\nvar _ownerDocument2 = _interopRequireDefault(_ownerDocument);\n\nvar _getContainer = __webpack_require__(484);\n\nvar _getContainer2 = _interopRequireDefault(_getContainer);\n\nvar _tinperBeeCore = __webpack_require__(33);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar isReact16 = _reactDom2[\"default\"].createPortal !== undefined;\nvar createPortal = isReact16 ? _reactDom2[\"default\"].createPortal : _reactDom2[\"default\"].unstable_renderSubtreeIntoContainer;\n\nvar propTypes = {\n /**\n * 存放子组件的容器\n */\n container: _propTypes2[\"default\"].oneOfType([_tinperBeeCore.componentOrElement, _propTypes2[\"default\"].func])\n};\n\nvar defaultProps = {};\n\n/**\n * Portal组件是将子组件渲染\n */\n\nvar Portal = function (_Component) {\n _inherits(Portal, _Component);\n\n function Portal(props) {\n _classCallCheck(this, Portal);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props));\n\n _this.getMountNode = _this.getMountNode.bind(_this);\n _this.getOverlayDOMNode = _this.getOverlayDOMNode.bind(_this);\n _this.mountOverlayTarget = _this.mountOverlayTarget.bind(_this);\n _this.unmountOverlayTarget = _this.unmountOverlayTarget.bind(_this);\n _this.renderOverlay = _this.renderOverlay.bind(_this);\n _this.unrenderOverlay = _this.unrenderOverlay.bind(_this);\n\n _this.overlayTarget = isReact16 ? document.createElement('div') : null;\n return _this;\n }\n\n Portal.prototype.componentDidMount = function componentDidMount() {\n if (isReact16) {\n this.portalContainerNode = (0, _getContainer2[\"default\"])(this.props.container, (0, _ownerDocument2[\"default\"])(this).body);\n this.portalContainerNode.appendChild(this.overlayTarget);\n } else {\n this.renderOverlay();\n }\n\n this.mounted = true;\n };\n\n Portal.prototype.componentDidUpdate = function componentDidUpdate() {\n if (isReact16) {\n var overlay = !this.props.children ? null : _react2[\"default\"].Children.only(this.props.children);\n if (overlay === null) {\n this.unrenderOverlay();\n this.unmountOverlayTarget();\n } else {}\n } else {\n this.renderOverlay();\n }\n };\n //this._overlayTarget为当前的要添加的子组件, this._portalContainerNode要添加组件的容器元素\n\n\n Portal.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n if (this.overlayTarget && nextProps.container !== this.props.container) {\n this.portalContainerNode.removeChild(this.overlayTarget);\n this.portalContainerNode = (0, _getContainer2[\"default\"])(nextProps.container, (0, _ownerDocument2[\"default\"])(this).body);\n this.portalContainerNode.appendChild(this.overlayTarget);\n }\n };\n\n Portal.prototype.componentWillUnmount = function componentWillUnmount() {\n this.unrenderOverlay();\n this.unmountOverlayTarget();\n\n this.mounted = false;\n };\n\n Portal.prototype.getMountNode = function getMountNode() {\n return this.overlayTarget;\n };\n\n Portal.prototype.getOverlayDOMNode = function getOverlayDOMNode() {\n if (!this.mounted) {\n throw new Error('getOverlayDOMNode(): A component must be mounted to have a DOM node.');\n }\n\n if (this.overlayInstance) {\n return _reactDom2[\"default\"].findDOMNode(this.overlayInstance);\n }\n\n return null;\n };\n\n /**\n * 如果要添加的子组件不存在,就将div添加到要添加容器的DOM中;\n */\n\n Portal.prototype.mountOverlayTarget = function mountOverlayTarget() {\n if (!this.overlayTarget) {\n this.overlayTarget = document.createElement('div');\n this.portalContainerNode = (0, _getContainer2[\"default\"])(this.props.container, (0, _ownerDocument2[\"default\"])(this).body);\n this.portalContainerNode.appendChild(this.overlayTarget);\n }\n };\n /**\n * 将要添加的子元素从容器中移除,并把变量置为null\n */\n\n\n Portal.prototype.unmountOverlayTarget = function unmountOverlayTarget() {\n if (this.overlayTarget) {\n this.portalContainerNode.removeChild(this.overlayTarget);\n this.overlayTarget = null;\n }\n this.portalContainerNode = null;\n };\n /**\n * 手动渲染_overlayTarget\n */\n\n\n Portal.prototype.renderOverlay = function renderOverlay() {\n\n var overlay = !this.props.children ? null : _react2[\"default\"].Children.only(this.props.children);\n\n // Save reference for future access.\n if (overlay !== null) {\n this.mountOverlayTarget();\n this.overlayInstance = _reactDom2[\"default\"].unstable_renderSubtreeIntoContainer(this, overlay, this.overlayTarget);\n } else {\n // Unrender if the component is null for transitions to null\n this.unrenderOverlay();\n this.unmountOverlayTarget();\n }\n };\n /**\n * 销毁_overlayTarget组件。并把_overlayInstance置为null\n */\n\n\n Portal.prototype.unrenderOverlay = function unrenderOverlay() {\n if (this.overlayTarget) {\n !isReact16 && _reactDom2[\"default\"].unmountComponentAtNode(this.overlayTarget);\n this.overlayInstance = null;\n }\n };\n\n Portal.prototype.render = function render() {\n if (!isReact16) {\n return null;\n }\n\n var overlay = !this.props.children ? null : _react2[\"default\"].Children.only(this.props.children);\n\n return _reactDom2[\"default\"].createPortal(overlay, this.overlayTarget);\n };\n\n return Portal;\n}(_react.Component);\n\n;\n\nPortal.propTypes = propTypes;\nPortal.defaultProps = defaultProps;\n\nexports[\"default\"] = Portal;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 484 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = getContainer;\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\n/**\n * 获取容器组件\n * @param {[type]} container [description]\n * @param {[type]} defaultContainer [description]\n * @return {[type]} [description]\n */\nfunction getContainer(container, defaultContainer) {\n container = typeof container === 'function' ? container() : container;\n return _reactDom2[\"default\"].findDOMNode(container) || defaultContainer;\n}\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 485 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = addEventListenerWrap;\n\nvar _addDomEventListener = __webpack_require__(12);\n\nvar _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nfunction addEventListenerWrap(target, eventType, cb) {\n /* eslint camelcase: 2 */\n var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {\n _reactDom2.default.unstable_batchedUpdates(cb, e);\n } : cb;\n return (0, _addDomEventListener2.default)(target, eventType, callback);\n}\n\n/***/ }),\n/* 486 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports[\"default\"] = function (node, event, handler, capture) {\n (0, _on2[\"default\"])(node, event, handler, capture);\n\n return {\n remove: function remove() {\n (0, _off2[\"default\"])(node, event, handler, capture);\n }\n };\n};\n\nvar _on = __webpack_require__(17);\n\nvar _on2 = _interopRequireDefault(_on);\n\nvar _off = __webpack_require__(49);\n\nvar _off2 = _interopRequireDefault(_off);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 487 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar getClass = exports.getClass = function getClass(props, doing) {\n var dropClass = props.dropClass,\n dropOverClass = props.dropOverClass,\n dragClass = props.dragClass,\n dragingClass = props.dragingClass,\n type = props.type;\n\n\n var verticalObj = {\n drop: {}, drag: {}\n };\n verticalObj.drop['u-drop ' + dropClass] = true;\n verticalObj.drop['u-droping ' + dropOverClass] = doing;\n verticalObj.drag['u-drag ' + dragClass] = true;\n verticalObj.drag['u-draging ' + dragingClass] = doing;\n\n var horizontalObj = {\n drop: {}, drag: {}\n };\n horizontalObj.drop['u-drop u-drop-horizontal ' + dropClass] = true;\n horizontalObj.drop['u-droping u-droping-horizontal ' + dropOverClass] = doing;\n horizontalObj.drag['u-drag u-drag-horizontal ' + dragClass] = true;\n horizontalObj.drag['u-draging u-draging-horizontal ' + dragingClass] = doing;\n\n switch (type) {\n case 'vertical':\n return verticalObj;\n break;\n case 'horizontal':\n return horizontalObj;\n break;\n case 'betweenVertical':\n return verticalObj;\n break;\n case 'betweenHorizontal':\n return horizontalObj;\n break;\n }\n};\n\n/***/ }),\n/* 488 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (immutable) */ __webpack_exports__[\"a\"] = findDOMNode;\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react_dom__ = __webpack_require__(3);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react_dom__);\n\n/**\n * Return if a node is a DOM node. Else will return by `findDOMNode`\n */\n\nfunction findDOMNode(node) {\n if (node instanceof HTMLElement) {\n return node;\n }\n\n return __WEBPACK_IMPORTED_MODULE_0_react_dom___default.a.findDOMNode(node);\n}\n\n/***/ }),\n/* 489 */\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(global) {/**\n * lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the `TypeError` message for \"Functions\" methods. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/** Used to match leading and trailing whitespace. */\nvar reTrim = /^\\s+|\\s+$/g;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n result = wait - timeSinceLastCall;\n\n return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && objectToString.call(value) == symbolTag);\n}\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = value.replace(reTrim, '');\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = debounce;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35)))\n\n/***/ }),\n/* 490 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _splitObject3 = __webpack_require__(491);\n\nvar _splitObject4 = _interopRequireDefault(_splitObject3);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\n// Timeline\nvar propTypes = {\n /** 指定圆圈颜色 */\n color: _propTypes2[\"default\"].string,\n dot: _propTypes2[\"default\"].node,\n pending: _propTypes2[\"default\"].bool\n};\nvar defaultProps = {\n prefixCls: 'u-timeline',\n color: 'primary',\n last: false,\n pending: false\n};\n\nvar TimelineItem = function (_React$Component) {\n _inherits(TimelineItem, _React$Component);\n\n function TimelineItem() {\n _classCallCheck(this, TimelineItem);\n\n return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n TimelineItem.prototype.render = function render() {\n var _classNames, _classNames2;\n\n var _splitObject = (0, _splitObject4[\"default\"])(this.props, ['prefixCls', 'color', 'last', 'children', 'pending', 'className', 'dot']),\n _splitObject2 = _slicedToArray(_splitObject, 2),\n _splitObject2$ = _splitObject2[0],\n prefixCls = _splitObject2$.prefixCls,\n color = _splitObject2$.color,\n last = _splitObject2$.last,\n children = _splitObject2$.children,\n pending = _splitObject2$.pending,\n className = _splitObject2$.className,\n dot = _splitObject2$.dot,\n restProps = _splitObject2[1];\n\n var itemClassName = (0, _classnames2[\"default\"])((_classNames = {}, _defineProperty(_classNames, prefixCls + '-item', true), _defineProperty(_classNames, prefixCls + '-item-last', last), _defineProperty(_classNames, prefixCls + '-item-pending', pending), _classNames), className);\n\n var dotClassName = (0, _classnames2[\"default\"])((_classNames2 = {}, _defineProperty(_classNames2, prefixCls + '-item-head', true), _defineProperty(_classNames2, prefixCls + '-item-head-custom', dot), _defineProperty(_classNames2, prefixCls + '-item-head-' + color, true), _classNames2));\n\n return _react2[\"default\"].createElement(\n 'li',\n _extends({}, restProps, { className: itemClassName }),\n _react2[\"default\"].createElement('div', { className: prefixCls + '-item-tail' }),\n _react2[\"default\"].createElement(\n 'div',\n {\n className: dotClassName,\n style: { borderColor: /blue|red|green/.test(color) ? null : color }\n },\n dot\n ),\n _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-item-content' },\n children\n )\n );\n };\n\n return TimelineItem;\n}(_react2[\"default\"].Component);\n\nTimelineItem.propTypes = propTypes;\nTimelineItem.defaultProps = defaultProps;\nexports[\"default\"] = TimelineItem;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 491 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = splitObject;\nfunction splitObject(obj, parts) {\n var left = {};\n var right = {};\n Object.keys(obj).forEach(function (k) {\n if (parts.indexOf(k) !== -1) {\n left[k] = obj[k];\n } else {\n right[k] = obj[k];\n }\n });\n return [left, right];\n}\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 492 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _Transfer = __webpack_require__(1420);\n\nvar _Transfer2 = _interopRequireDefault(_Transfer);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nexports[\"default\"] = _Transfer2[\"default\"];\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 493 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _beeIcon = __webpack_require__(113);\n\nvar _beeIcon2 = _interopRequireDefault(_beeIcon);\n\nvar _beeFormControl = __webpack_require__(1423);\n\nvar _beeFormControl2 = _interopRequireDefault(_beeFormControl);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = {\n prefixCls: _propTypes2[\"default\"].string,\n placeholder: _propTypes2[\"default\"].string,\n onChange: _propTypes2[\"default\"].func,\n handleClear: _propTypes2[\"default\"].func\n};\n\nvar defaultProps = {\n placeholder: ''\n};\n\nvar Search = function (_React$Component) {\n _inherits(Search, _React$Component);\n\n function Search() {\n var _temp, _this, _ret;\n\n _classCallCheck(this, Search);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.handleChange = function (e) {\n var onChange = _this.props.onChange;\n if (onChange) {\n onChange(e);\n }\n }, _this.handleClear = function (e) {\n e.preventDefault();\n\n var handleClear = _this.props.handleClear;\n if (handleClear) {\n handleClear(e);\n }\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n Search.prototype.render = function render() {\n var _props = this.props,\n placeholder = _props.placeholder,\n value = _props.value,\n prefixCls = _props.prefixCls;\n\n var icon = value && value.length > 0 ? _react2[\"default\"].createElement(\n 'a',\n { href: '#', className: prefixCls + '-action', onClick: this.handleClear },\n _react2[\"default\"].createElement(_beeIcon2[\"default\"], { type: 'uf-close-c' })\n ) : _react2[\"default\"].createElement(\n 'span',\n { className: prefixCls + '-action' },\n _react2[\"default\"].createElement(_beeIcon2[\"default\"], { type: 'uf-search' })\n );\n\n return _react2[\"default\"].createElement(\n 'div',\n null,\n _react2[\"default\"].createElement(_beeFormControl2[\"default\"], {\n size: 'sm',\n placeholder: placeholder,\n className: prefixCls,\n value: value,\n ref: 'input',\n onChange: this.handleChange\n }),\n icon\n );\n };\n\n return Search;\n}(_react2[\"default\"].Component);\n\nSearch.propTypes = propTypes;\nSearch.defaultProps = defaultProps;\n\nexports[\"default\"] = Search;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 494 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @providesModule ReactComponentWithPureRenderMixin\n */\n\nvar shallowEqual = __webpack_require__(72);\n\nfunction shallowCompare(instance, nextProps, nextState) {\n return !shallowEqual(instance.props, nextProps) || !shallowEqual(instance.state, nextState);\n}\n\n/**\n * If your React component's render function is \"pure\", e.g. it will render the\n * same result given the same props and state, provide this mixin for a\n * considerable performance boost.\n *\n * Most React components have pure render functions.\n *\n * Example:\n *\n * var ReactComponentWithPureRenderMixin =\n * require('ReactComponentWithPureRenderMixin');\n * React.createClass({\n * mixins: [ReactComponentWithPureRenderMixin],\n *\n * render: function() {\n * return
    foo
    ;\n * }\n * });\n *\n * Note: This only checks shallow equality for props and state. If these contain\n * complex data structures this mixin may have false-negatives for deeper\n * differences. Only mixin to components which have simple props and state, or\n * use `forceUpdate()` when you know deep data structures have changed.\n *\n * See https://facebook.github.io/react/docs/pure-render-mixin.html\n */\nvar ReactComponentWithPureRenderMixin = {\n shouldComponentUpdate: function shouldComponentUpdate(nextProps, nextState) {\n return shallowCompare(this, nextProps, nextState);\n }\n};\n\nmodule.exports = ReactComponentWithPureRenderMixin;\n\n/***/ }),\n/* 495 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _Checkbox = __webpack_require__(496);\n\nvar _Checkbox2 = _interopRequireDefault(_Checkbox);\n\nvar _CheckboxGroup = __webpack_require__(1432);\n\nvar _CheckboxGroup2 = _interopRequireDefault(_CheckboxGroup);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\n_Checkbox2[\"default\"].CheckboxGroup = _CheckboxGroup2[\"default\"];\nexports[\"default\"] = _Checkbox2[\"default\"];\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 496 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = {\n\n colors: _propTypes2[\"default\"].oneOf(['', 'dark', 'success', 'info', 'warning', 'danger', 'primary']),\n\n disabled: _propTypes2[\"default\"].bool,\n\n inverse: _propTypes2[\"default\"].bool\n\n};\n\nvar defaultProps = {\n disabled: false,\n inverse: false,\n colors: 'primary',\n clsPrefix: 'u-checkbox',\n defaultChecked: false,\n onClick: function onClick() {}\n};\nvar clsPrefix = 'u-checkbox';\n\nvar Checkbox = function (_React$Component) {\n _inherits(Checkbox, _React$Component);\n\n function Checkbox(props) {\n _classCallCheck(this, Checkbox);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));\n\n _initialiseProps.call(_this);\n\n _this.state = {\n checked: 'checked' in props ? props.checked : props.defaultChecked,\n focused: false\n };\n _this.doubleClickFlag = null;\n return _this;\n }\n\n Checkbox.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n if ('checked' in nextProps) {\n this.setState({\n checked: nextProps.checked\n });\n }\n };\n\n Checkbox.prototype.render = function render() {\n var _classes;\n\n var _props = this.props,\n disabled = _props.disabled,\n inverse = _props.inverse,\n colors = _props.colors,\n size = _props.size,\n className = _props.className,\n indeterminate = _props.indeterminate,\n onClick = _props.onClick,\n children = _props.children,\n checked = _props.checked,\n clsPrefix = _props.clsPrefix,\n onDoubleClick = _props.onDoubleClick,\n onChange = _props.onChange,\n others = _objectWithoutProperties(_props, ['disabled', 'inverse', 'colors', 'size', 'className', 'indeterminate', 'onClick', 'children', 'checked', 'clsPrefix', 'onDoubleClick', 'onChange']);\n\n var input = _react2[\"default\"].createElement('input', _extends({}, others, {\n type: 'checkbox',\n disabled: this.props.disabled,\n onFocus: this.handleFocus,\n onBlur: this.handleBlur\n }));\n\n var classes = (_classes = {}, _defineProperty(_classes, clsPrefix + '-focused', this.state.focused), _defineProperty(_classes, 'is-checked', this.state.checked), _defineProperty(_classes, 'disabled', disabled), _classes);\n\n if (inverse) {\n classes[clsPrefix + '-inverse'] = true;\n }\n\n if (colors) {\n classes[clsPrefix + '-' + colors] = true;\n }\n\n if (size) {\n classes[clsPrefix + '-' + size] = true;\n }\n\n if (!checked && indeterminate) {\n classes[clsPrefix + '-indeterminate'] = true;\n }\n\n var classNames = (0, _classnames2[\"default\"])(clsPrefix, classes);\n\n return _react2[\"default\"].createElement(\n 'label',\n {\n className: (0, _classnames2[\"default\"])(classNames, className),\n onDoubleClick: this.handledbClick,\n onClick: this.changeState },\n input,\n _react2[\"default\"].createElement(\n 'label',\n { className: clsPrefix + '-label' },\n children\n )\n );\n };\n\n return Checkbox;\n}(_react2[\"default\"].Component);\n\nvar _initialiseProps = function _initialiseProps() {\n var _this2 = this;\n\n this.changeState = function (e) {\n var props = _this2.props;\n var checked = _this2.state.checked;\n\n clearTimeout(_this2.doubleClickFlag);\n if (props.onClick instanceof Function) {\n props.onClick(e);\n }\n if (props.onDoubleClick instanceof Function) {\n _this2.doubleClickFlag = setTimeout(function () {\n //do function在此处写单击事件要执行的代码\n _this2.change(props, checked);\n }, 300);\n } else {\n _this2.change(props, checked);\n }\n e.stopPropagation();\n e.preventDefault();\n //执行延时\n };\n\n this.change = function (props, checked) {\n if (props.disabled) {\n return;\n }\n if (!('checked' in props)) {\n _this2.setState({\n checked: !checked\n });\n }\n\n if (props.onChange instanceof Function) {\n props.onChange(!checked);\n }\n };\n\n this.handledbClick = function (e) {\n var onDoubleClick = _this2.props.onDoubleClick;\n\n clearTimeout(_this2.doubleClickFlag);\n onDoubleClick && onDoubleClick(_this2.state.checked, e);\n };\n\n this.handleFocus = function (e) {\n if (e.target && e.target.type == 'checkbox') {\n _this2.setState({\n focused: true\n });\n }\n };\n\n this.handleBlur = function (e) {\n if (e.target && e.target.type == 'checkbox') {\n _this2.setState({\n focused: false\n });\n }\n };\n};\n\nCheckbox.propTypes = propTypes;\nCheckbox.defaultProps = defaultProps;\n\nexports[\"default\"] = Checkbox;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 497 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = addEventListenerWrap;\n\nvar _addDomEventListener = __webpack_require__(12);\n\nvar _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nfunction addEventListenerWrap(target, eventType, cb) {\n /* eslint camelcase: 2 */\n var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {\n _reactDom2.default.unstable_batchedUpdates(cb, e);\n } : cb;\n return (0, _addDomEventListener2.default)(target, eventType, callback);\n}\n\n/***/ }),\n/* 498 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = addEventListenerWrap;\n\nvar _addDomEventListener = __webpack_require__(12);\n\nvar _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nfunction addEventListenerWrap(target, eventType, cb) {\n /* eslint camelcase: 2 */\n var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {\n _reactDom2.default.unstable_batchedUpdates(cb, e);\n } : cb;\n return (0, _addDomEventListener2.default)(target, eventType, callback);\n}\n\n/***/ }),\n/* 499 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n/**\n* This source code is quoted from rc-slider.\n* homepage: https://github.com/react-component/slider\n*/\n\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nvar Track = function Track(props) {\n //处于激活状态的track\n var className = props.className,\n included = props.included,\n vertical = props.vertical,\n offset = props.offset,\n length = props.length,\n style = props.style;\n\n\n var positonStyle = vertical ? {\n bottom: offset + '%',\n height: length + '%'\n } : {\n left: offset + '%',\n width: length + '%'\n };\n\n var elStyle = _extends({\n visibility: included ? 'visible' : 'hidden'\n }, style, positonStyle);\n return _react2[\"default\"].createElement('div', { className: className, style: elStyle });\n};\n\nexports[\"default\"] = Track;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 500 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(process) {\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nexports[\"default\"] = createSlider;\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _addEventListener = __webpack_require__(1478);\n\nvar _addEventListener2 = _interopRequireDefault(_addEventListener);\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _warning = __webpack_require__(6);\n\nvar _warning2 = _interopRequireDefault(_warning);\n\nvar _Steps = __webpack_require__(1479);\n\nvar _Steps2 = _interopRequireDefault(_Steps);\n\nvar _Marks = __webpack_require__(1480);\n\nvar _Marks2 = _interopRequireDefault(_Marks);\n\nvar _Handle = __webpack_require__(196);\n\nvar _Handle2 = _interopRequireDefault(_Handle);\n\nvar _utils = __webpack_require__(197);\n\nvar utils = _interopRequireWildcard(_utils);\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj[\"default\"] = obj; return newObj; } }\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**\n * This source code is quoted from rc-slider.\n * homepage: https://github.com/react-component/slider\n */\n\n\nfunction noop() {}\n\nfunction createSlider(Component) {\n var _class, _temp;\n\n return _temp = _class = function (_Component) {\n _inherits(ComponentEnhancer, _Component);\n\n function ComponentEnhancer(props) {\n _classCallCheck(this, ComponentEnhancer);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props));\n\n _this.onMouseDown = function (e) {\n //鼠标落下的操作\n //指示当事件被触发时哪个鼠标按键被点击 \n //参数 描述\n //0 规定鼠标左键。\n //1 规定鼠标中键。\n //2 规定鼠标右键。\n if (e.button !== 0) {\n return;\n }\n //1.getMousePosition:获得鼠标的位置 clientY或者pageX\n //2.isEventFromHandle:是直接落下还是拖动handle\n //3.getHandleCenterPosition:获得handle的中点位置\n //4.onStart:在slider.jsx中\n var isVertical = _this.props.vertical;\n var position = utils.getMousePosition(isVertical, e);\n if (!utils.isEventFromHandle(e, _this.handlesRefs)) {\n _this.dragOffset = 0;\n } else {\n var handlePosition = utils.getHandleCenterPosition(isVertical, e.target); //handle的位置\n _this.dragOffset = position - handlePosition; //鼠标落下的位置-handle的中间位置,这是偏差\n position = handlePosition; //position是\n }\n _this.onStart(position);\n _this.addDocumentMouseEvents();\n utils.pauseEvent(e);\n };\n\n _this.onTouchStart = function (e) {\n //touch事件\n //event.touches,多点触碰时的位置数组,比如缩放手势必须要用两指的触摸点,就是一个数组\n //多点触碰不算\n if (utils.isNotTouchEvent(e)) return;\n //1.getMousePosition:获得鼠标的位置 clientY或者pageX\n //2.isEventFromHandle:是直接落下还是拖动handle\n //3.getHandleCenterPosition:获得handle的中点位置\n //4.onStart:在slider.jsx中\n var isVertical = _this.props.vertical;\n var position = utils.getTouchPosition(isVertical, e);\n if (!utils.isEventFromHandle(e, _this.handlesRefs)) {\n _this.dragOffset = 0;\n } else {\n var handlePosition = utils.getHandleCenterPosition(isVertical, e.target);\n _this.dragOffset = position - handlePosition;\n position = handlePosition;\n }\n _this.onStart(position);\n _this.addDocumentTouchEvents();\n utils.pauseEvent(e);\n };\n\n _this.onMouseMove = function (e) {\n if (!_this.sliderRef) {\n _this.onEnd();\n return;\n }\n var position = utils.getMousePosition(_this.props.vertical, e);\n _this.onMove(e, position - _this.dragOffset);\n };\n\n _this.onTouchMove = function (e) {\n //1.isNotTouchEvent:是不是touch事件\n //2.getTouchPosition:return vertical ? e.touches[0].clientY : e.touches[0].pageX;\n if (utils.isNotTouchEvent(e) || !_this.sliderRef) {\n _this.onEnd();\n return;\n }\n var position = utils.getTouchPosition(_this.props.vertical, e);\n _this.onMove(e, position - _this.dragOffset);\n };\n\n _this.onKeyDown = function (e) {\n //对应不同的keycode\n if (_this.sliderRef && utils.isEventFromHandle(e, _this.handlesRefs)) {\n _this.onKeyboard(e);\n }\n };\n\n _this.onFocus = function (e) {\n //Focus事件\n //1.isEventFromHandle:是直接落下还是拖动handle\n //2.getHandleCenterPosition:获得handle的中点位置\n //3.onStart:在slider.jsx中\n var isVertical = _this.props.vertical;\n\n if (utils.isEventFromHandle(e, _this.handlesRefs)) {\n var handlePosition = utils.getHandleCenterPosition(isVertical, e.target);\n\n _this.dragOffset = 0;\n _this.onStart(handlePosition);\n utils.pauseEvent(e);\n }\n };\n\n _this.onBlur = function (e) {\n _this.onEnd(e);\n };\n\n _this.saveSlider = function (slider) {\n _this.sliderRef = slider;\n };\n\n if (process.env.NODE_ENV !== 'production') {\n var step = props.step,\n max = props.max,\n min = props.min;\n\n (0, _warning2[\"default\"])(step && Math.floor(step) === step ? (max - min) % step === 0 : true, 'Slider[max] - Slider[min] (%s) should be a multiple of Slider[step] (%s)', max - min, step);\n }\n _this.handlesRefs = {};\n return _this;\n }\n //这里是超级关键的:采用高阶组件的写法\n\n\n ComponentEnhancer.prototype.componentWillUnmount = function componentWillUnmount() {\n if (_Component.prototype.componentWillUnmount) _Component.prototype.componentWillUnmount.call(this);\n this.removeDocumentEvents();\n };\n\n ComponentEnhancer.prototype.addDocumentTouchEvents = function addDocumentTouchEvents() {\n // just work for Chrome iOS Safari and Android Browser\n this.onTouchMoveListener = (0, _addEventListener2[\"default\"])(document, 'touchmove', this.onTouchMove);\n this.onTouchUpListener = (0, _addEventListener2[\"default\"])(document, 'touchend', this.onEnd);\n };\n\n ComponentEnhancer.prototype.addDocumentMouseEvents = function addDocumentMouseEvents() {\n this.onMouseMoveListener = (0, _addEventListener2[\"default\"])(document, 'mousemove', this.onMouseMove);\n this.onMouseUpListener = (0, _addEventListener2[\"default\"])(document, 'mouseup', this.onEnd);\n };\n\n ComponentEnhancer.prototype.removeDocumentEvents = function removeDocumentEvents() {\n /* eslint-disable no-unused-expressions */\n this.onTouchMoveListener && this.onTouchMoveListener.remove();\n this.onTouchUpListener && this.onTouchUpListener.remove();\n\n this.onMouseMoveListener && this.onMouseMoveListener.remove();\n this.onMouseUpListener && this.onMouseUpListener.remove();\n /* eslint-enable no-unused-expressions */\n };\n\n //slider的开始位置\n\n\n ComponentEnhancer.prototype.getSliderStart = function getSliderStart() {\n var slider = this.sliderRef;\n var rect = slider.getBoundingClientRect();\n\n return this.props.vertical ? rect.top : rect.left;\n };\n\n //slider的高度\n\n\n ComponentEnhancer.prototype.getSliderLength = function getSliderLength() {\n var slider = this.sliderRef;\n if (!slider) {\n return 0;\n }\n\n var coords = slider.getBoundingClientRect();\n return this.props.vertical ? coords.height : coords.width;\n };\n\n //计算实际的value值\n\n\n ComponentEnhancer.prototype.calcValue = function calcValue(offset) {\n var _props = this.props,\n vertical = _props.vertical,\n min = _props.min,\n max = _props.max;\n\n var ratio = Math.abs(Math.max(offset, 0) / this.getSliderLength());\n var value = vertical ? (1 - ratio) * (max - min) + min : ratio * (max - min) + min;\n return value;\n };\n //这里才是最终的value\n\n\n ComponentEnhancer.prototype.calcValueByPos = function calcValueByPos(position) {\n //mouseposition 或者 handlePosition - slider的top(或者left);\n var pixelOffset = position - this.getSliderStart();\n //calValue():radio来算出真正的value\n //trimAlignValue():在slider.jsx中1.ensureValueInRange 先算出是否可取 v 或者 min 或者 max 2.ensureValuePrecision:来获取真的前进数值closest数值\n var nextValue = this.trimAlignValue(this.calcValue(pixelOffset));\n return nextValue;\n };\n\n ComponentEnhancer.prototype.calcOffset = function calcOffset(value) {\n var _props2 = this.props,\n min = _props2.min,\n max = _props2.max;\n\n var ratio = (value - min) / (max - min);\n return ratio * 100;\n };\n\n ComponentEnhancer.prototype.saveHandle = function saveHandle(index, handle) {\n this.handlesRefs[index] = handle;\n };\n\n ComponentEnhancer.prototype.render = function render() {\n var _classNames;\n\n var _props3 = this.props,\n prefixCls = _props3.prefixCls,\n className = _props3.className,\n marks = _props3.marks,\n dots = _props3.dots,\n step = _props3.step,\n included = _props3.included,\n disabled = _props3.disabled,\n vertical = _props3.vertical,\n min = _props3.min,\n max = _props3.max,\n children = _props3.children,\n style = _props3.style,\n railStyle = _props3.railStyle,\n dotStyle = _props3.dotStyle,\n activeDotStyle = _props3.activeDotStyle;\n\n var _Component$prototype$ = _Component.prototype.render.call(this),\n tracks = _Component$prototype$.tracks,\n handles = _Component$prototype$.handles;\n\n var sliderClassName = (0, _classnames2[\"default\"])(prefixCls, (_classNames = {}, _defineProperty(_classNames, prefixCls + '-with-marks', Object.keys(marks).length), _defineProperty(_classNames, prefixCls + '-disabled', disabled), _defineProperty(_classNames, prefixCls + '-vertical', vertical), _defineProperty(_classNames, className, className), _classNames));\n return _react2[\"default\"].createElement(\n 'div',\n {\n ref: this.saveSlider,\n className: sliderClassName,\n onTouchStart: disabled ? noop : this.onTouchStart,\n onMouseDown: disabled ? noop : this.onMouseDown,\n onKeyDown: disabled ? noop : this.onKeyDown,\n onFocus: disabled ? noop : this.onFocus,\n onBlur: disabled ? noop : this.onBlur,\n style: style\n },\n _react2[\"default\"].createElement('div', {\n className: prefixCls + '-rail',\n style: _extends({}, railStyle)\n }),\n tracks,\n _react2[\"default\"].createElement(_Steps2[\"default\"], {\n prefixCls: prefixCls,\n vertical: vertical,\n marks: marks,\n dots: dots,\n step: step,\n included: included,\n lowerBound: this.getLowerBound(),\n upperBound: this.getUpperBound(),\n max: max,\n min: min,\n dotStyle: dotStyle,\n activeDotStyle: activeDotStyle\n }),\n handles,\n _react2[\"default\"].createElement(_Marks2[\"default\"], {\n className: prefixCls + '-mark',\n vertical: vertical,\n marks: marks,\n included: included,\n lowerBound: this.getLowerBound(),\n upperBound: this.getUpperBound(),\n max: max,\n min: min\n }),\n children\n );\n };\n\n return ComponentEnhancer;\n }(Component), _class.displayName = 'ComponentEnhancer(' + Component.displayName + ')', _class.propTypes = _extends({}, Component.propTypes, {\n min: _propTypes2[\"default\"].number,\n max: _propTypes2[\"default\"].number,\n step: _propTypes2[\"default\"].number,\n marks: _propTypes2[\"default\"].object,\n included: _propTypes2[\"default\"].bool,\n className: _propTypes2[\"default\"].string,\n prefixCls: _propTypes2[\"default\"].string,\n disabled: _propTypes2[\"default\"].bool,\n children: _propTypes2[\"default\"].any,\n onBeforeChange: _propTypes2[\"default\"].func,\n onChange: _propTypes2[\"default\"].func,\n onAfterChange: _propTypes2[\"default\"].func,\n handle: _propTypes2[\"default\"].func,\n dots: _propTypes2[\"default\"].bool,\n vertical: _propTypes2[\"default\"].bool,\n style: _propTypes2[\"default\"].object,\n //minimumTrackStyle: PropTypes.object, // just for compatibility, will be deperecate\n //maximumTrackStyle: PropTypes.object, // just for compatibility, will be deperecate\n handleStyle: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].object, _propTypes2[\"default\"].arrayOf(_propTypes2[\"default\"].object)]),\n trackStyle: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].object, _propTypes2[\"default\"].arrayOf(_propTypes2[\"default\"].object)]),\n railStyle: _propTypes2[\"default\"].object,\n dotStyle: _propTypes2[\"default\"].object,\n activeDotStyle: _propTypes2[\"default\"].object\n }), _class.defaultProps = _extends({}, Component.defaultProps, {\n prefixCls: 'u-slider',\n className: '',\n min: 0,\n max: 100,\n step: 1,\n marks: {},\n handle: function handle(_ref) {\n var index = _ref.index,\n restProps = _objectWithoutProperties(_ref, ['index']);\n\n delete restProps.dragging;\n return _react2[\"default\"].createElement(_Handle2[\"default\"], _extends({}, restProps, { key: index }));\n },\n\n onBeforeChange: noop,\n onChange: noop,\n onAfterChange: noop,\n included: true,\n disabled: false,\n dots: false,\n vertical: false,\n trackStyle: [{}],\n handleStyle: [{}],\n railStyle: {},\n dotStyle: {},\n activeDotStyle: {}\n }), _temp;\n}\nmodule.exports = exports['default'];\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5)))\n\n/***/ }),\n/* 501 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\n\n\n/**\n * @ignore\n * some key-codes definition and utils from closure-library\n * @author yiminghe@gmail.com\n */\n\nvar KeyCode = {\n /**\n * MAC_ENTER\n */\n MAC_ENTER: 3,\n /**\n * BACKSPACE\n */\n BACKSPACE: 8,\n /**\n * TAB\n */\n TAB: 9,\n /**\n * NUMLOCK on FF/Safari Mac\n */\n NUM_CENTER: 12, // NUMLOCK on FF/Safari Mac\n /**\n * ENTER\n */\n ENTER: 13,\n /**\n * SHIFT\n */\n SHIFT: 16,\n /**\n * CTRL\n */\n CTRL: 17,\n /**\n * ALT\n */\n ALT: 18,\n /**\n * PAUSE\n */\n PAUSE: 19,\n /**\n * CAPS_LOCK\n */\n CAPS_LOCK: 20,\n /**\n * ESC\n */\n ESC: 27,\n /**\n * SPACE\n */\n SPACE: 32,\n /**\n * PAGE_UP\n */\n PAGE_UP: 33, // also NUM_NORTH_EAST\n /**\n * PAGE_DOWN\n */\n PAGE_DOWN: 34, // also NUM_SOUTH_EAST\n /**\n * END\n */\n END: 35, // also NUM_SOUTH_WEST\n /**\n * HOME\n */\n HOME: 36, // also NUM_NORTH_WEST\n /**\n * LEFT\n */\n LEFT: 37, // also NUM_WEST\n /**\n * UP\n */\n UP: 38, // also NUM_NORTH\n /**\n * RIGHT\n */\n RIGHT: 39, // also NUM_EAST\n /**\n * DOWN\n */\n DOWN: 40, // also NUM_SOUTH\n /**\n * PRINT_SCREEN\n */\n PRINT_SCREEN: 44,\n /**\n * INSERT\n */\n INSERT: 45, // also NUM_INSERT\n /**\n * DELETE\n */\n DELETE: 46, // also NUM_DELETE\n /**\n * ZERO\n */\n ZERO: 48,\n /**\n * ONE\n */\n ONE: 49,\n /**\n * TWO\n */\n TWO: 50,\n /**\n * THREE\n */\n THREE: 51,\n /**\n * FOUR\n */\n FOUR: 52,\n /**\n * FIVE\n */\n FIVE: 53,\n /**\n * SIX\n */\n SIX: 54,\n /**\n * SEVEN\n */\n SEVEN: 55,\n /**\n * EIGHT\n */\n EIGHT: 56,\n /**\n * NINE\n */\n NINE: 57,\n /**\n * QUESTION_MARK\n */\n QUESTION_MARK: 63, // needs localization\n /**\n * A\n */\n A: 65,\n /**\n * B\n */\n B: 66,\n /**\n * C\n */\n C: 67,\n /**\n * D\n */\n D: 68,\n /**\n * E\n */\n E: 69,\n /**\n * F\n */\n F: 70,\n /**\n * G\n */\n G: 71,\n /**\n * H\n */\n H: 72,\n /**\n * I\n */\n I: 73,\n /**\n * J\n */\n J: 74,\n /**\n * K\n */\n K: 75,\n /**\n * L\n */\n L: 76,\n /**\n * M\n */\n M: 77,\n /**\n * N\n */\n N: 78,\n /**\n * O\n */\n O: 79,\n /**\n * P\n */\n P: 80,\n /**\n * Q\n */\n Q: 81,\n /**\n * R\n */\n R: 82,\n /**\n * S\n */\n S: 83,\n /**\n * T\n */\n T: 84,\n /**\n * U\n */\n U: 85,\n /**\n * V\n */\n V: 86,\n /**\n * W\n */\n W: 87,\n /**\n * X\n */\n X: 88,\n /**\n * Y\n */\n Y: 89,\n /**\n * Z\n */\n Z: 90,\n /**\n * META\n */\n META: 91, // WIN_KEY_LEFT\n /**\n * WIN_KEY_RIGHT\n */\n WIN_KEY_RIGHT: 92,\n /**\n * CONTEXT_MENU\n */\n CONTEXT_MENU: 93,\n /**\n * NUM_ZERO\n */\n NUM_ZERO: 96,\n /**\n * NUM_ONE\n */\n NUM_ONE: 97,\n /**\n * NUM_TWO\n */\n NUM_TWO: 98,\n /**\n * NUM_THREE\n */\n NUM_THREE: 99,\n /**\n * NUM_FOUR\n */\n NUM_FOUR: 100,\n /**\n * NUM_FIVE\n */\n NUM_FIVE: 101,\n /**\n * NUM_SIX\n */\n NUM_SIX: 102,\n /**\n * NUM_SEVEN\n */\n NUM_SEVEN: 103,\n /**\n * NUM_EIGHT\n */\n NUM_EIGHT: 104,\n /**\n * NUM_NINE\n */\n NUM_NINE: 105,\n /**\n * NUM_MULTIPLY\n */\n NUM_MULTIPLY: 106,\n /**\n * NUM_PLUS\n */\n NUM_PLUS: 107,\n /**\n * NUM_MINUS\n */\n NUM_MINUS: 109,\n /**\n * NUM_PERIOD\n */\n NUM_PERIOD: 110,\n /**\n * NUM_DIVISION\n */\n NUM_DIVISION: 111,\n /**\n * F1\n */\n F1: 112,\n /**\n * F2\n */\n F2: 113,\n /**\n * F3\n */\n F3: 114,\n /**\n * F4\n */\n F4: 115,\n /**\n * F5\n */\n F5: 116,\n /**\n * F6\n */\n F6: 117,\n /**\n * F7\n */\n F7: 118,\n /**\n * F8\n */\n F8: 119,\n /**\n * F9\n */\n F9: 120,\n /**\n * F10\n */\n F10: 121,\n /**\n * F11\n */\n F11: 122,\n /**\n * F12\n */\n F12: 123,\n /**\n * NUMLOCK\n */\n NUMLOCK: 144,\n /**\n * SEMICOLON\n */\n SEMICOLON: 186, // needs localization\n /**\n * DASH\n */\n DASH: 189, // needs localization\n /**\n * EQUALS\n */\n EQUALS: 187, // needs localization\n /**\n * COMMA\n */\n COMMA: 188, // needs localization\n /**\n * PERIOD\n */\n PERIOD: 190, // needs localization\n /**\n * SLASH\n */\n SLASH: 191, // needs localization\n /**\n * APOSTROPHE\n */\n APOSTROPHE: 192, // needs localization\n /**\n * SINGLE_QUOTE\n */\n SINGLE_QUOTE: 222, // needs localization\n /**\n * OPEN_SQUARE_BRACKET\n */\n OPEN_SQUARE_BRACKET: 219, // needs localization\n /**\n * BACKSLASH\n */\n BACKSLASH: 220, // needs localization\n /**\n * CLOSE_SQUARE_BRACKET\n */\n CLOSE_SQUARE_BRACKET: 221, // needs localization\n /**\n * WIN_KEY\n */\n WIN_KEY: 224,\n /**\n * MAC_FF_META\n */\n MAC_FF_META: 224, // Firefox (Gecko) fires this for the meta key instead of 91\n /**\n * WIN_IME\n */\n WIN_IME: 229\n};\n\n/*\n whether text and modified key is entered at the same time.\n */\nKeyCode.isTextModifyingKeyEvent = function isTextModifyingKeyEvent(e) {\n var keyCode = e.keyCode;\n if (e.altKey && !e.ctrlKey || e.metaKey ||\n // Function keys don't generate text\n keyCode >= KeyCode.F1 && keyCode <= KeyCode.F12) {\n return false;\n }\n\n // The following keys are quite harmless, even in combination with\n // CTRL, ALT or SHIFT.\n switch (keyCode) {\n case KeyCode.ALT:\n case KeyCode.CAPS_LOCK:\n case KeyCode.CONTEXT_MENU:\n case KeyCode.CTRL:\n case KeyCode.DOWN:\n case KeyCode.END:\n case KeyCode.ESC:\n case KeyCode.HOME:\n case KeyCode.INSERT:\n case KeyCode.LEFT:\n case KeyCode.MAC_FF_META:\n case KeyCode.META:\n case KeyCode.NUMLOCK:\n case KeyCode.NUM_CENTER:\n case KeyCode.PAGE_DOWN:\n case KeyCode.PAGE_UP:\n case KeyCode.PAUSE:\n case KeyCode.PRINT_SCREEN:\n case KeyCode.RIGHT:\n case KeyCode.SHIFT:\n case KeyCode.UP:\n case KeyCode.WIN_KEY:\n case KeyCode.WIN_KEY_RIGHT:\n return false;\n default:\n return true;\n }\n};\n\n/*\n whether character is entered.\n */\nKeyCode.isCharacterKey = function isCharacterKey(keyCode) {\n if (keyCode >= KeyCode.ZERO && keyCode <= KeyCode.NINE) {\n return true;\n }\n\n if (keyCode >= KeyCode.NUM_ZERO && keyCode <= KeyCode.NUM_MULTIPLY) {\n return true;\n }\n\n if (keyCode >= KeyCode.A && keyCode <= KeyCode.Z) {\n return true;\n }\n\n // Safari sends zero key code for non-latin characters.\n if (window.navigation.userAgent.indexOf('WebKit') !== -1 && keyCode === 0) {\n return true;\n }\n\n switch (keyCode) {\n case KeyCode.SPACE:\n case KeyCode.QUESTION_MARK:\n case KeyCode.NUM_PLUS:\n case KeyCode.NUM_MINUS:\n case KeyCode.NUM_PERIOD:\n case KeyCode.NUM_DIVISION:\n case KeyCode.SEMICOLON:\n case KeyCode.DASH:\n case KeyCode.EQUALS:\n case KeyCode.COMMA:\n case KeyCode.PERIOD:\n case KeyCode.SLASH:\n case KeyCode.APOSTROPHE:\n case KeyCode.SINGLE_QUOTE:\n case KeyCode.OPEN_SQUARE_BRACKET:\n case KeyCode.BACKSLASH:\n case KeyCode.CLOSE_SQUARE_BRACKET:\n return true;\n default:\n return false;\n }\n};\n\nmodule.exports = KeyCode;\n\n/***/ }),\n/* 502 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _ownerDocument = __webpack_require__(114);\n\nvar _ownerDocument2 = _interopRequireDefault(_ownerDocument);\n\nvar _getContainer = __webpack_require__(503);\n\nvar _getContainer2 = _interopRequireDefault(_getContainer);\n\nvar _tinperBeeCore = __webpack_require__(115);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar isReact16 = _reactDom2[\"default\"].createPortal !== undefined;\nvar createPortal = isReact16 ? _reactDom2[\"default\"].createPortal : _reactDom2[\"default\"].unstable_renderSubtreeIntoContainer;\n\nvar propTypes = {\n /**\n * 存放子组件的容器\n */\n container: _propTypes2[\"default\"].oneOfType([_tinperBeeCore.componentOrElement, _propTypes2[\"default\"].func])\n};\n\nvar defaultProps = {};\n\n/**\n * Portal组件是将子组件渲染\n */\n\nvar Portal = function (_Component) {\n _inherits(Portal, _Component);\n\n function Portal(props) {\n _classCallCheck(this, Portal);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props));\n\n _this.getMountNode = _this.getMountNode.bind(_this);\n _this.getOverlayDOMNode = _this.getOverlayDOMNode.bind(_this);\n _this.mountOverlayTarget = _this.mountOverlayTarget.bind(_this);\n _this.unmountOverlayTarget = _this.unmountOverlayTarget.bind(_this);\n _this.renderOverlay = _this.renderOverlay.bind(_this);\n _this.unrenderOverlay = _this.unrenderOverlay.bind(_this);\n\n _this.overlayTarget = isReact16 ? document.createElement('div') : null;\n return _this;\n }\n\n Portal.prototype.componentDidMount = function componentDidMount() {\n if (isReact16) {\n this.portalContainerNode = (0, _getContainer2[\"default\"])(this.props.container, (0, _ownerDocument2[\"default\"])(this).body);\n this.portalContainerNode.appendChild(this.overlayTarget);\n } else {\n this.renderOverlay();\n }\n\n this.mounted = true;\n };\n\n Portal.prototype.componentDidUpdate = function componentDidUpdate() {\n if (isReact16) {\n var overlay = !this.props.children ? null : _react2[\"default\"].Children.only(this.props.children);\n if (overlay === null) {\n this.unrenderOverlay();\n this.unmountOverlayTarget();\n } else {}\n } else {\n this.renderOverlay();\n }\n };\n //this._overlayTarget为当前的要添加的子组件, this._portalContainerNode要添加组件的容器元素\n\n\n Portal.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n if (this.overlayTarget && nextProps.container !== this.props.container) {\n this.portalContainerNode.removeChild(this.overlayTarget);\n this.portalContainerNode = (0, _getContainer2[\"default\"])(nextProps.container, (0, _ownerDocument2[\"default\"])(this).body);\n this.portalContainerNode.appendChild(this.overlayTarget);\n }\n };\n\n Portal.prototype.componentWillUnmount = function componentWillUnmount() {\n this.unrenderOverlay();\n this.unmountOverlayTarget();\n\n this.mounted = false;\n };\n\n Portal.prototype.getMountNode = function getMountNode() {\n return this.overlayTarget;\n };\n\n Portal.prototype.getOverlayDOMNode = function getOverlayDOMNode() {\n if (!this.mounted) {\n throw new Error('getOverlayDOMNode(): A component must be mounted to have a DOM node.');\n }\n\n if (this.overlayInstance) {\n return _reactDom2[\"default\"].findDOMNode(this.overlayInstance);\n }\n\n return null;\n };\n\n /**\n * 如果要添加的子组件不存在,就将div添加到要添加容器的DOM中;\n */\n\n Portal.prototype.mountOverlayTarget = function mountOverlayTarget() {\n if (!this.overlayTarget) {\n this.overlayTarget = document.createElement('div');\n this.portalContainerNode = (0, _getContainer2[\"default\"])(this.props.container, (0, _ownerDocument2[\"default\"])(this).body);\n this.portalContainerNode.appendChild(this.overlayTarget);\n }\n };\n /**\n * 将要添加的子元素从容器中移除,并把变量置为null\n */\n\n\n Portal.prototype.unmountOverlayTarget = function unmountOverlayTarget() {\n if (this.overlayTarget) {\n this.portalContainerNode.removeChild(this.overlayTarget);\n this.overlayTarget = null;\n }\n this.portalContainerNode = null;\n };\n /**\n * 手动渲染_overlayTarget\n */\n\n\n Portal.prototype.renderOverlay = function renderOverlay() {\n\n var overlay = !this.props.children ? null : _react2[\"default\"].Children.only(this.props.children);\n\n // Save reference for future access.\n if (overlay !== null) {\n this.mountOverlayTarget();\n this.overlayInstance = _reactDom2[\"default\"].unstable_renderSubtreeIntoContainer(this, overlay, this.overlayTarget);\n } else {\n // Unrender if the component is null for transitions to null\n this.unrenderOverlay();\n this.unmountOverlayTarget();\n }\n };\n /**\n * 销毁_overlayTarget组件。并把_overlayInstance置为null\n */\n\n\n Portal.prototype.unrenderOverlay = function unrenderOverlay() {\n if (this.overlayTarget) {\n !isReact16 && _reactDom2[\"default\"].unmountComponentAtNode(this.overlayTarget);\n this.overlayInstance = null;\n }\n };\n\n Portal.prototype.render = function render() {\n if (!isReact16) {\n return null;\n }\n\n var overlay = !this.props.children ? null : _react2[\"default\"].Children.only(this.props.children);\n\n return _reactDom2[\"default\"].createPortal(overlay, this.overlayTarget);\n };\n\n return Portal;\n}(_react.Component);\n\n;\n\nPortal.propTypes = propTypes;\nPortal.defaultProps = defaultProps;\n\nexports[\"default\"] = Portal;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 503 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = getContainer;\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\n/**\n * 获取容器组件\n * @param {[type]} container [description]\n * @param {[type]} defaultContainer [description]\n * @return {[type]} [description]\n */\nfunction getContainer(container, defaultContainer) {\n container = typeof container === 'function' ? container() : container;\n return _reactDom2[\"default\"].findDOMNode(container) || defaultContainer;\n}\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 504 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = addEventListenerWrap;\n\nvar _addDomEventListener = __webpack_require__(12);\n\nvar _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nfunction addEventListenerWrap(target, eventType, cb) {\n /* eslint camelcase: 2 */\n var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {\n _reactDom2.default.unstable_batchedUpdates(cb, e);\n } : cb;\n return (0, _addDomEventListener2.default)(target, eventType, callback);\n}\n\n/***/ }),\n/* 505 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports[\"default\"] = function (node, event, handler, capture) {\n (0, _on2[\"default\"])(node, event, handler, capture);\n\n return {\n remove: function remove() {\n (0, _off2[\"default\"])(node, event, handler, capture);\n }\n };\n};\n\nvar _on = __webpack_require__(17);\n\nvar _on2 = _interopRequireDefault(_on);\n\nvar _off = __webpack_require__(49);\n\nvar _off2 = _interopRequireDefault(_off);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 506 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nfunction createChainedFunction() {\n for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) {\n funcs[_key] = arguments[_key];\n }\n\n return funcs.filter(function (f) {\n return f != null;\n }).reduce(function (acc, f) {\n if (typeof f !== 'function') {\n throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.');\n }\n\n if (acc === null) {\n return f;\n }\n\n return function chainedFunction() {\n for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n acc.apply(this, args);\n f.apply(this, args);\n };\n }, null);\n}\nexports.default = createChainedFunction;\n\n/***/ }),\n/* 507 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = splitComponentProps;\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nfunction _objectEntries(obj) {\n var entries = [];\n var keys = Object.keys(obj);\n\n for (var k = 0; k < keys.length; ++k) {\n entries.push([keys[k], obj[keys[k]]]);\n }return entries;\n}\n\n/**\n * 分割要传入父元素和子元素的props\n * @param {[object]} props 传入的属性\n * @param {[reactElement]} Component 组件\n * @return {[array]} 返回数组,第一个元素为父元素props对象,第二个子元素props对象\n */\nfunction splitComponentProps(props, Component) {\n var componentPropTypes = Component.propTypes;\n\n var parentProps = {};\n var childProps = {};\n\n _objectEntries(props).forEach(function (_ref) {\n var propName = _ref[0],\n propValue = _ref[1];\n\n if (componentPropTypes[propName]) {\n parentProps[propName] = propValue;\n } else {\n childProps[propName] = propValue;\n }\n });\n\n return [parentProps, childProps];\n}\n\n/***/ }),\n/* 508 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _BaseOverlay = __webpack_require__(1530);\n\nvar _BaseOverlay2 = _interopRequireDefault(_BaseOverlay);\n\nvar _tinperBeeCore = __webpack_require__(118);\n\nvar _Fade = __webpack_require__(1558);\n\nvar _Fade2 = _interopRequireDefault(_Fade);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = _extends({}, _BaseOverlay2[\"default\"].propTypes, {\n\n /**\n * 是否显示\n */\n show: _propTypes2[\"default\"].bool,\n /**\n * 是\n */\n rootClose: _propTypes2[\"default\"].bool,\n /**\n * 当点击rootClose触发close时的回调函数\n */\n onHide: _propTypes2[\"default\"].func,\n\n /**\n * 使用动画\n */\n animation: _propTypes2[\"default\"].oneOfType([_tinperBeeCore.elementType, _propTypes2[\"default\"].func]),\n\n /**\n * Callback fired before the Overlay transitions in\n */\n onEnter: _propTypes2[\"default\"].func,\n\n /**\n * Callback fired as the Overlay begins to transition in\n */\n onEntering: _propTypes2[\"default\"].func,\n\n /**\n * Callback fired after the Overlay finishes transitioning in\n */\n onEntered: _propTypes2[\"default\"].func,\n\n /**\n * Callback fired right before the Overlay transitions out\n */\n onExit: _propTypes2[\"default\"].func,\n\n /**\n * Callback fired as the Overlay begins to transition out\n */\n onExiting: _propTypes2[\"default\"].func,\n\n /**\n * Callback fired after the Overlay finishes transitioning out\n */\n onExited: _propTypes2[\"default\"].func,\n\n /**\n * Sets the direction of the Overlay.\n */\n placement: _propTypes2[\"default\"].oneOf([\"top\", \"right\", \"bottom\", \"left\", \"topLeft\", \"rightTop\", \"bottomLeft\", \"leftTop\", \"topRight\", \"rightBottom\", \"bottomRight\", \"leftBottom\"]),\n\n /**\n * 当Overlay在placement方向放不下时的第二优先级方向\n */\n secondPlacement: _propTypes2[\"default\"].oneOf(['top', 'right', 'bottom', 'left'])\n});\n\nvar defaultProps = {\n animation: _Fade2[\"default\"],\n rootClose: false,\n show: false,\n placement: 'right'\n};\n\nvar Overlay = function (_Component) {\n _inherits(Overlay, _Component);\n\n function Overlay() {\n _classCallCheck(this, Overlay);\n\n return _possibleConstructorReturn(this, _Component.apply(this, arguments));\n }\n\n Overlay.prototype.render = function render() {\n var _props = this.props,\n animation = _props.animation,\n children = _props.children,\n props = _objectWithoutProperties(_props, ['animation', 'children']);\n\n var transition = animation === true ? _Fade2[\"default\"] : animation || null;\n\n var child = void 0;\n\n if (!transition) {\n child = (0, _react.cloneElement)(children, {\n className: (0, _classnames2[\"default\"])(children.props.className, 'in')\n });\n } else {\n child = children;\n }\n\n return _react2[\"default\"].createElement(\n _BaseOverlay2[\"default\"],\n _extends({}, props, {\n transition: transition,\n onHide: props.onHide\n }),\n child\n );\n };\n\n return Overlay;\n}(_react.Component);\n\nOverlay.propTypes = propTypes;\nOverlay.defaultProps = defaultProps;\n\nexports[\"default\"] = Overlay;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 509 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _ownerDocument = __webpack_require__(116);\n\nvar _ownerDocument2 = _interopRequireDefault(_ownerDocument);\n\nvar _getContainer = __webpack_require__(510);\n\nvar _getContainer2 = _interopRequireDefault(_getContainer);\n\nvar _tinperBeeCore = __webpack_require__(118);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar isReact16 = _reactDom2[\"default\"].createPortal !== undefined;\nvar createPortal = isReact16 ? _reactDom2[\"default\"].createPortal : _reactDom2[\"default\"].unstable_renderSubtreeIntoContainer;\n\nvar propTypes = {\n /**\n * 存放子组件的容器\n */\n container: _propTypes2[\"default\"].oneOfType([_tinperBeeCore.componentOrElement, _propTypes2[\"default\"].func])\n};\n\nvar defaultProps = {};\n\n/**\n * Portal组件是将子组件渲染\n */\n\nvar Portal = function (_Component) {\n _inherits(Portal, _Component);\n\n function Portal(props) {\n _classCallCheck(this, Portal);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props));\n\n _this.getMountNode = _this.getMountNode.bind(_this);\n _this.getOverlayDOMNode = _this.getOverlayDOMNode.bind(_this);\n _this.mountOverlayTarget = _this.mountOverlayTarget.bind(_this);\n _this.unmountOverlayTarget = _this.unmountOverlayTarget.bind(_this);\n _this.renderOverlay = _this.renderOverlay.bind(_this);\n _this.unrenderOverlay = _this.unrenderOverlay.bind(_this);\n\n _this.overlayTarget = isReact16 ? document.createElement('div') : null;\n return _this;\n }\n\n Portal.prototype.componentDidMount = function componentDidMount() {\n if (isReact16) {\n this.portalContainerNode = (0, _getContainer2[\"default\"])(this.props.container, (0, _ownerDocument2[\"default\"])(this).body);\n this.portalContainerNode.appendChild(this.overlayTarget);\n } else {\n this.renderOverlay();\n }\n\n this.mounted = true;\n };\n\n Portal.prototype.componentDidUpdate = function componentDidUpdate() {\n if (isReact16) {\n var overlay = !this.props.children ? null : _react2[\"default\"].Children.only(this.props.children);\n if (overlay === null) {\n this.unrenderOverlay();\n this.unmountOverlayTarget();\n } else {}\n } else {\n this.renderOverlay();\n }\n };\n //this._overlayTarget为当前的要添加的子组件, this._portalContainerNode要添加组件的容器元素\n\n\n Portal.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n if (this.overlayTarget && nextProps.container !== this.props.container) {\n this.portalContainerNode.removeChild(this.overlayTarget);\n this.portalContainerNode = (0, _getContainer2[\"default\"])(nextProps.container, (0, _ownerDocument2[\"default\"])(this).body);\n this.portalContainerNode.appendChild(this.overlayTarget);\n }\n };\n\n Portal.prototype.componentWillUnmount = function componentWillUnmount() {\n this.unrenderOverlay();\n this.unmountOverlayTarget();\n\n this.mounted = false;\n };\n\n Portal.prototype.getMountNode = function getMountNode() {\n return this.overlayTarget;\n };\n\n Portal.prototype.getOverlayDOMNode = function getOverlayDOMNode() {\n if (!this.mounted) {\n throw new Error('getOverlayDOMNode(): A component must be mounted to have a DOM node.');\n }\n\n if (this.overlayInstance) {\n return _reactDom2[\"default\"].findDOMNode(this.overlayInstance);\n }\n\n return null;\n };\n\n /**\n * 如果要添加的子组件不存在,就将div添加到要添加容器的DOM中;\n */\n\n Portal.prototype.mountOverlayTarget = function mountOverlayTarget() {\n if (!this.overlayTarget) {\n this.overlayTarget = document.createElement('div');\n this.portalContainerNode = (0, _getContainer2[\"default\"])(this.props.container, (0, _ownerDocument2[\"default\"])(this).body);\n this.portalContainerNode.appendChild(this.overlayTarget);\n }\n };\n /**\n * 将要添加的子元素从容器中移除,并把变量置为null\n */\n\n\n Portal.prototype.unmountOverlayTarget = function unmountOverlayTarget() {\n if (this.overlayTarget) {\n this.portalContainerNode.removeChild(this.overlayTarget);\n this.overlayTarget = null;\n }\n this.portalContainerNode = null;\n };\n /**\n * 手动渲染_overlayTarget\n */\n\n\n Portal.prototype.renderOverlay = function renderOverlay() {\n\n var overlay = !this.props.children ? null : _react2[\"default\"].Children.only(this.props.children);\n\n // Save reference for future access.\n if (overlay !== null) {\n this.mountOverlayTarget();\n this.overlayInstance = _reactDom2[\"default\"].unstable_renderSubtreeIntoContainer(this, overlay, this.overlayTarget);\n } else {\n // Unrender if the component is null for transitions to null\n this.unrenderOverlay();\n this.unmountOverlayTarget();\n }\n };\n /**\n * 销毁_overlayTarget组件。并把_overlayInstance置为null\n */\n\n\n Portal.prototype.unrenderOverlay = function unrenderOverlay() {\n if (this.overlayTarget) {\n !isReact16 && _reactDom2[\"default\"].unmountComponentAtNode(this.overlayTarget);\n this.overlayInstance = null;\n }\n };\n\n Portal.prototype.render = function render() {\n if (!isReact16) {\n return null;\n }\n\n var overlay = !this.props.children ? null : _react2[\"default\"].Children.only(this.props.children);\n\n return _reactDom2[\"default\"].createPortal(overlay, this.overlayTarget);\n };\n\n return Portal;\n}(_react.Component);\n\n;\n\nPortal.propTypes = propTypes;\nPortal.defaultProps = defaultProps;\n\nexports[\"default\"] = Portal;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 510 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = getContainer;\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\n/**\n * 获取容器组件\n * @param {[type]} container [description]\n * @param {[type]} defaultContainer [description]\n * @return {[type]} [description]\n */\nfunction getContainer(container, defaultContainer) {\n container = typeof container === 'function' ? container() : container;\n return _reactDom2[\"default\"].findDOMNode(container) || defaultContainer;\n}\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 511 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = isRequiredForA11y;\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nfunction isRequiredForA11y(validator) {\n return function validate(props, propName, componentName, location, propFullName) {\n var componentNameSafe = componentName || '<>';\n var propFullNameSafe = propFullName || propName;\n\n if (props[propName] == null) {\n return new Error('The ' + location + ' `' + propFullNameSafe + '` is required to make ' + ('`' + componentNameSafe + '` accessible for users of assistive ') + 'technologies such as screen readers.');\n }\n\n for (var _len = arguments.length, args = Array(_len > 5 ? _len - 5 : 0), _key = 5; _key < _len; _key++) {\n args[_key - 5] = arguments[_key];\n }\n\n return validator.apply(undefined, [props, propName, componentName, location, propFullName].concat(args));\n };\n}\n\n/***/ }),\n/* 512 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = addEventListenerWrap;\n\nvar _addDomEventListener = __webpack_require__(12);\n\nvar _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nfunction addEventListenerWrap(target, eventType, cb) {\n /* eslint camelcase: 2 */\n var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {\n _reactDom2.default.unstable_batchedUpdates(cb, e);\n } : cb;\n return (0, _addDomEventListener2.default)(target, eventType, callback);\n}\n\n/***/ }),\n/* 513 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _interopRequireDefault = __webpack_require__(18);\n\nexports.__esModule = true;\nexports.default = offset;\n\nvar _contains = _interopRequireDefault(__webpack_require__(200));\n\nvar _isWindow = _interopRequireDefault(__webpack_require__(201));\n\nvar _ownerDocument = _interopRequireDefault(__webpack_require__(117));\n\nfunction offset(node) {\n var doc = (0, _ownerDocument.default)(node),\n win = (0, _isWindow.default)(doc),\n docElem = doc && doc.documentElement,\n box = {\n top: 0,\n left: 0,\n height: 0,\n width: 0\n };\n if (!doc) return; // Make sure it's not a disconnected DOM node\n\n if (!(0, _contains.default)(docElem, node)) return box;\n if (node.getBoundingClientRect !== undefined) box = node.getBoundingClientRect(); // IE8 getBoundingClientRect doesn't support width & height\n\n box = {\n top: box.top + (win.pageYOffset || docElem.scrollTop) - (docElem.clientTop || 0),\n left: box.left + (win.pageXOffset || docElem.scrollLeft) - (docElem.clientLeft || 0),\n width: (box.width == null ? node.offsetWidth : box.width) || 0,\n height: (box.height == null ? node.offsetHeight : box.height) || 0\n };\n return box;\n}\n\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 514 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _interopRequireDefault = __webpack_require__(18);\n\nexports.__esModule = true;\nexports.default = style;\n\nvar _camelizeStyle = _interopRequireDefault(__webpack_require__(515));\n\nvar _hyphenateStyle = _interopRequireDefault(__webpack_require__(1548));\n\nvar _getComputedStyle2 = _interopRequireDefault(__webpack_require__(1550));\n\nvar _removeStyle = _interopRequireDefault(__webpack_require__(1551));\n\nvar _properties = __webpack_require__(516);\n\nvar _isTransform = _interopRequireDefault(__webpack_require__(1552));\n\nfunction style(node, property, value) {\n var css = '';\n var transforms = '';\n var props = property;\n\n if (typeof property === 'string') {\n if (value === undefined) {\n return node.style[(0, _camelizeStyle.default)(property)] || (0, _getComputedStyle2.default)(node).getPropertyValue((0, _hyphenateStyle.default)(property));\n } else {\n (props = {})[property] = value;\n }\n }\n\n Object.keys(props).forEach(function (key) {\n var value = props[key];\n\n if (!value && value !== 0) {\n (0, _removeStyle.default)(node, (0, _hyphenateStyle.default)(key));\n } else if ((0, _isTransform.default)(key)) {\n transforms += key + \"(\" + value + \") \";\n } else {\n css += (0, _hyphenateStyle.default)(key) + \": \" + value + \";\";\n }\n });\n\n if (transforms) {\n css += _properties.transform + \": \" + transforms + \";\";\n }\n\n node.style.cssText += ';' + css;\n}\n\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 515 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _interopRequireDefault = __webpack_require__(18);\n\nexports.__esModule = true;\nexports.default = camelizeStyleName;\n\nvar _camelize = _interopRequireDefault(__webpack_require__(1547));\n\n/**\n * Copyright 2014-2015, Facebook, Inc.\n * All rights reserved.\n * https://github.com/facebook/react/blob/2aeb8a2a6beb00617a4217f7f8284924fa2ad819/src/vendor/core/camelizeStyleName.js\n */\nvar msPattern = /^-ms-/;\n\nfunction camelizeStyleName(string) {\n return (0, _camelize.default)(string.replace(msPattern, 'ms-'));\n}\n\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 516 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _interopRequireDefault = __webpack_require__(18);\n\nexports.__esModule = true;\nexports.default = exports.animationEnd = exports.animationDelay = exports.animationTiming = exports.animationDuration = exports.animationName = exports.transitionEnd = exports.transitionDuration = exports.transitionDelay = exports.transitionTiming = exports.transitionProperty = exports.transform = void 0;\n\nvar _inDOM = _interopRequireDefault(__webpack_require__(84));\n\nvar transform = 'transform';\nexports.transform = transform;\nvar prefix, transitionEnd, animationEnd;\nexports.animationEnd = animationEnd;\nexports.transitionEnd = transitionEnd;\nvar transitionProperty, transitionDuration, transitionTiming, transitionDelay;\nexports.transitionDelay = transitionDelay;\nexports.transitionTiming = transitionTiming;\nexports.transitionDuration = transitionDuration;\nexports.transitionProperty = transitionProperty;\nvar animationName, animationDuration, animationTiming, animationDelay;\nexports.animationDelay = animationDelay;\nexports.animationTiming = animationTiming;\nexports.animationDuration = animationDuration;\nexports.animationName = animationName;\n\nif (_inDOM.default) {\n var _getTransitionPropert = getTransitionProperties();\n\n prefix = _getTransitionPropert.prefix;\n exports.transitionEnd = transitionEnd = _getTransitionPropert.transitionEnd;\n exports.animationEnd = animationEnd = _getTransitionPropert.animationEnd;\n exports.transform = transform = prefix + \"-\" + transform;\n exports.transitionProperty = transitionProperty = prefix + \"-transition-property\";\n exports.transitionDuration = transitionDuration = prefix + \"-transition-duration\";\n exports.transitionDelay = transitionDelay = prefix + \"-transition-delay\";\n exports.transitionTiming = transitionTiming = prefix + \"-transition-timing-function\";\n exports.animationName = animationName = prefix + \"-animation-name\";\n exports.animationDuration = animationDuration = prefix + \"-animation-duration\";\n exports.animationTiming = animationTiming = prefix + \"-animation-delay\";\n exports.animationDelay = animationDelay = prefix + \"-animation-timing-function\";\n}\n\nvar _default = {\n transform: transform,\n end: transitionEnd,\n property: transitionProperty,\n timing: transitionTiming,\n delay: transitionDelay,\n duration: transitionDuration\n};\nexports.default = _default;\n\nfunction getTransitionProperties() {\n var style = document.createElement('div').style;\n var vendorMap = {\n O: function O(e) {\n return \"o\" + e.toLowerCase();\n },\n Moz: function Moz(e) {\n return e.toLowerCase();\n },\n Webkit: function Webkit(e) {\n return \"webkit\" + e;\n },\n ms: function ms(e) {\n return \"MS\" + e;\n }\n };\n var vendors = Object.keys(vendorMap);\n var transitionEnd, animationEnd;\n var prefix = '';\n\n for (var i = 0; i < vendors.length; i++) {\n var vendor = vendors[i];\n\n if (vendor + \"TransitionProperty\" in style) {\n prefix = \"-\" + vendor.toLowerCase();\n transitionEnd = vendorMap[vendor]('TransitionEnd');\n animationEnd = vendorMap[vendor]('AnimationEnd');\n break;\n }\n }\n\n if (!transitionEnd && 'transitionProperty' in style) transitionEnd = 'transitionend';\n if (!animationEnd && 'animationName' in style) animationEnd = 'animationend';\n style = null;\n return {\n animationEnd: animationEnd,\n transitionEnd: transitionEnd,\n prefix: prefix\n };\n}\n\n/***/ }),\n/* 517 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _interopRequireDefault = __webpack_require__(18);\n\nexports.__esModule = true;\nexports.default = scrollTop;\n\nvar _isWindow = _interopRequireDefault(__webpack_require__(201));\n\nfunction scrollTop(node, val) {\n var win = (0, _isWindow.default)(node);\n if (val === undefined) return win ? 'pageYOffset' in win ? win.pageYOffset : win.document.documentElement.scrollTop : node.scrollTop;\n if (win) win.scrollTo('pageXOffset' in win ? win.pageXOffset : win.document.documentElement.scrollLeft, val);else node.scrollTop = val;\n}\n\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 518 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports[\"default\"] = function (node, event, handler, capture) {\n (0, _on2[\"default\"])(node, event, handler, capture);\n\n return {\n remove: function remove() {\n (0, _off2[\"default\"])(node, event, handler, capture);\n }\n };\n};\n\nvar _on = __webpack_require__(519);\n\nvar _on2 = _interopRequireDefault(_on);\n\nvar _off = __webpack_require__(1556);\n\nvar _off2 = _interopRequireDefault(_off);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 519 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _interopRequireDefault = __webpack_require__(18);\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar _inDOM = _interopRequireDefault(__webpack_require__(84));\n\nvar on = function on() {};\n\nif (_inDOM.default) {\n on = function () {\n if (document.addEventListener) return function (node, eventName, handler, capture) {\n return node.addEventListener(eventName, handler, capture || false);\n };else if (document.attachEvent) return function (node, eventName, handler) {\n return node.attachEvent('on' + eventName, function (e) {\n e = e || window.event;\n e.target = e.target || e.srcElement;\n e.currentTarget = node;\n handler.call(node, e);\n });\n };\n }();\n}\n\nvar _default = on;\nexports.default = _default;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 520 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = addEventListenerWrap;\n\nvar _addDomEventListener = __webpack_require__(12);\n\nvar _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nfunction addEventListenerWrap(target, eventType, cb) {\n /* eslint camelcase: 2 */\n var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {\n _reactDom2.default.unstable_batchedUpdates(cb, e);\n } : cb;\n return (0, _addDomEventListener2.default)(target, eventType, callback);\n}\n\n/***/ }),\n/* 521 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar getClass = exports.getClass = function getClass(props, doing) {\n var dropClass = props.dropClass,\n dropOverClass = props.dropOverClass,\n dragClass = props.dragClass,\n dragingClass = props.dragingClass,\n type = props.type;\n\n\n var verticalObj = {\n drop: {}, drag: {}\n };\n verticalObj.drop['u-drop ' + dropClass] = true;\n verticalObj.drop['u-droping ' + dropOverClass] = doing;\n verticalObj.drag['u-drag ' + dragClass] = true;\n verticalObj.drag['u-draging ' + dragingClass] = doing;\n\n var horizontalObj = {\n drop: {}, drag: {}\n };\n horizontalObj.drop['u-drop u-drop-horizontal ' + dropClass] = true;\n horizontalObj.drop['u-droping u-droping-horizontal ' + dropOverClass] = doing;\n horizontalObj.drag['u-drag u-drag-horizontal ' + dragClass] = true;\n horizontalObj.drag['u-draging u-draging-horizontal ' + dragingClass] = doing;\n\n switch (type) {\n case 'vertical':\n return verticalObj;\n break;\n case 'horizontal':\n return horizontalObj;\n break;\n case 'betweenVertical':\n return verticalObj;\n break;\n case 'betweenHorizontal':\n return horizontalObj;\n break;\n }\n};\n\n/***/ }),\n/* 522 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Menu__ = __webpack_require__(1616);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__SubMenu__ = __webpack_require__(524);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__MenuItem__ = __webpack_require__(1619);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__MenuItemGroup__ = __webpack_require__(1620);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Divider__ = __webpack_require__(1621);\n/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, \"SubMenu\", function() { return __WEBPACK_IMPORTED_MODULE_1__SubMenu__[\"a\"]; });\n/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, \"Item\", function() { return __WEBPACK_IMPORTED_MODULE_2__MenuItem__[\"a\"]; });\n/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, \"MenuItem\", function() { return __WEBPACK_IMPORTED_MODULE_2__MenuItem__[\"a\"]; });\n/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, \"MenuItemGroup\", function() { return __WEBPACK_IMPORTED_MODULE_3__MenuItemGroup__[\"a\"]; });\n/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, \"ItemGroup\", function() { return __WEBPACK_IMPORTED_MODULE_3__MenuItemGroup__[\"a\"]; });\n/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, \"Divider\", function() { return __WEBPACK_IMPORTED_MODULE_4__Divider__[\"a\"]; });\n\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (__WEBPACK_IMPORTED_MODULE_0__Menu__[\"a\" /* default */]);\n\n/***/ }),\n/* 523 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (immutable) */ __webpack_exports__[\"b\"] = getActiveKey;\n/* unused harmony export saveRef */\n/* unused harmony export SubPopupMenu */\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(23);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(7);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends__ = __webpack_require__(8);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_prop_types__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_mini_store__ = __webpack_require__(21);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_mini_store___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_mini_store__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__ = __webpack_require__(43);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_rc_util_es_createChainedFunction__ = __webpack_require__(256);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_classnames__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_classnames__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__util__ = __webpack_require__(64);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__DOMWrap__ = __webpack_require__(1617);\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nfunction allDisabled(arr) {\n if (!arr.length) {\n return true;\n }\n return arr.every(function (c) {\n return !!c.props.disabled;\n });\n}\n\nfunction updateActiveKey(store, menuId, activeKey) {\n var _extends2;\n\n var state = store.getState();\n store.setState({\n activeKey: __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({}, state.activeKey, (_extends2 = {}, _extends2[menuId] = activeKey, _extends2))\n });\n}\n\nfunction getEventKey(props) {\n // when eventKey not available ,it's menu and return menu id '0-menu-'\n return props.eventKey || '0-menu-';\n}\n\nfunction getActiveKey(props, originalActiveKey) {\n var activeKey = originalActiveKey;\n var children = props.children,\n eventKey = props.eventKey;\n\n if (activeKey) {\n var found = void 0;\n Object(__WEBPACK_IMPORTED_MODULE_11__util__[\"d\" /* loopMenuItem */])(children, function (c, i) {\n if (c && !c.props.disabled && activeKey === Object(__WEBPACK_IMPORTED_MODULE_11__util__[\"a\" /* getKeyFromChildrenIndex */])(c, eventKey, i)) {\n found = true;\n }\n });\n if (found) {\n return activeKey;\n }\n }\n activeKey = null;\n if (props.defaultActiveFirst) {\n Object(__WEBPACK_IMPORTED_MODULE_11__util__[\"d\" /* loopMenuItem */])(children, function (c, i) {\n if (!activeKey && c && !c.props.disabled) {\n activeKey = Object(__WEBPACK_IMPORTED_MODULE_11__util__[\"a\" /* getKeyFromChildrenIndex */])(c, eventKey, i);\n }\n });\n return activeKey;\n }\n return activeKey;\n}\n\nfunction saveRef(c) {\n if (c) {\n var index = this.instanceArray.indexOf(c);\n if (index !== -1) {\n // update component if it's already inside instanceArray\n this.instanceArray[index] = c;\n } else {\n // add component if it's not in instanceArray yet;\n this.instanceArray.push(c);\n }\n }\n}\n\nvar SubPopupMenu = function (_React$Component) {\n __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default()(SubPopupMenu, _React$Component);\n\n function SubPopupMenu(props) {\n var _extends3;\n\n __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, SubPopupMenu);\n\n var _this = __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.call(this, props));\n\n _initialiseProps.call(_this);\n\n props.store.setState({\n activeKey: __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({}, props.store.getState().activeKey, (_extends3 = {}, _extends3[props.eventKey] = getActiveKey(props, props.activeKey), _extends3))\n });\n\n _this.instanceArray = [];\n return _this;\n }\n\n SubPopupMenu.prototype.componentDidMount = function componentDidMount() {\n // invoke customized ref to expose component to mixin\n if (this.props.manualRef) {\n this.props.manualRef(this);\n }\n };\n\n SubPopupMenu.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {\n return this.props.visible || nextProps.visible;\n };\n\n SubPopupMenu.prototype.componentDidUpdate = function componentDidUpdate() {\n var props = this.props;\n var originalActiveKey = 'activeKey' in props ? props.activeKey : props.store.getState().activeKey[getEventKey(props)];\n var activeKey = getActiveKey(props, originalActiveKey);\n if (activeKey !== originalActiveKey) {\n updateActiveKey(props.store, getEventKey(props), activeKey);\n }\n };\n\n // all keyboard events callbacks run from here at first\n\n\n SubPopupMenu.prototype.render = function render() {\n var _this2 = this;\n\n var props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default()(this.props, []);\n\n this.instanceArray = [];\n var className = __WEBPACK_IMPORTED_MODULE_10_classnames___default()(props.prefixCls, props.className, props.prefixCls + '-' + props.mode);\n var domProps = {\n className: className,\n // role could be 'select' and by default set to menu\n role: props.role || 'menu'\n };\n if (props.id) {\n domProps.id = props.id;\n }\n if (props.focusable) {\n domProps.tabIndex = '0';\n domProps.onKeyDown = this.onKeyDown;\n }\n var prefixCls = props.prefixCls,\n eventKey = props.eventKey,\n visible = props.visible,\n level = props.level,\n mode = props.mode,\n overflowedIndicator = props.overflowedIndicator,\n theme = props.theme;\n\n __WEBPACK_IMPORTED_MODULE_11__util__[\"f\" /* menuAllProps */].forEach(function (key) {\n return delete props[key];\n });\n\n // Otherwise, the propagated click event will trigger another onClick\n delete props.onClick;\n\n return (\n // ESLint is not smart enough to know that the type of `children` was checked.\n /* eslint-disable */\n __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(\n __WEBPACK_IMPORTED_MODULE_12__DOMWrap__[\"a\" /* default */],\n __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({}, props, {\n prefixCls: prefixCls,\n mode: mode,\n tag: 'ul',\n level: level,\n theme: theme,\n hiddenClassName: prefixCls + '-hidden',\n visible: visible,\n overflowedIndicator: overflowedIndicator\n }, domProps),\n __WEBPACK_IMPORTED_MODULE_5_react___default.a.Children.map(props.children, function (c, i) {\n return _this2.renderMenuItem(c, i, eventKey || '0-menu-');\n })\n )\n /*eslint-enable */\n\n );\n };\n\n return SubPopupMenu;\n}(__WEBPACK_IMPORTED_MODULE_5_react___default.a.Component);\nSubPopupMenu.propTypes = {\n onSelect: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,\n onClick: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,\n onDeselect: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,\n onOpenChange: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,\n onDestroy: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,\n openTransitionName: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string,\n openAnimation: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object]),\n openKeys: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string),\n visible: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,\n children: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.any,\n parentMenu: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object,\n eventKey: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string,\n store: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.shape({\n getState: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,\n setState: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func\n }),\n\n // adding in refactor\n focusable: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,\n multiple: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,\n style: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object,\n defaultActiveFirst: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,\n activeKey: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string,\n selectedKeys: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string),\n defaultSelectedKeys: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string),\n defaultOpenKeys: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string),\n level: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number,\n mode: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']),\n triggerSubMenuAction: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf(['click', 'hover']),\n inlineIndent: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string]),\n manualRef: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,\n itemIcon: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.node]),\n expandIcon: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.node])\n};\nSubPopupMenu.defaultProps = {\n prefixCls: 'rc-menu',\n className: '',\n mode: 'vertical',\n level: 1,\n inlineIndent: 24,\n visible: true,\n focusable: true,\n style: {},\n manualRef: __WEBPACK_IMPORTED_MODULE_11__util__[\"g\" /* noop */]\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this3 = this;\n\n this.onKeyDown = function (e, callback) {\n var keyCode = e.keyCode;\n var handled = void 0;\n _this3.getFlatInstanceArray().forEach(function (obj) {\n if (obj && obj.props.active && obj.onKeyDown) {\n handled = obj.onKeyDown(e);\n }\n });\n if (handled) {\n return 1;\n }\n var activeItem = null;\n if (keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__[\"a\" /* default */].UP || keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__[\"a\" /* default */].DOWN) {\n activeItem = _this3.step(keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__[\"a\" /* default */].UP ? -1 : 1);\n }\n if (activeItem) {\n e.preventDefault();\n updateActiveKey(_this3.props.store, getEventKey(_this3.props), activeItem.props.eventKey);\n\n if (typeof callback === 'function') {\n callback(activeItem);\n }\n\n return 1;\n }\n };\n\n this.onItemHover = function (e) {\n var key = e.key,\n hover = e.hover;\n\n updateActiveKey(_this3.props.store, getEventKey(_this3.props), hover ? key : null);\n };\n\n this.onDeselect = function (selectInfo) {\n _this3.props.onDeselect(selectInfo);\n };\n\n this.onSelect = function (selectInfo) {\n _this3.props.onSelect(selectInfo);\n };\n\n this.onClick = function (e) {\n _this3.props.onClick(e);\n };\n\n this.onOpenChange = function (e) {\n _this3.props.onOpenChange(e);\n };\n\n this.onDestroy = function (key) {\n /* istanbul ignore next */\n _this3.props.onDestroy(key);\n };\n\n this.getFlatInstanceArray = function () {\n return _this3.instanceArray;\n };\n\n this.getOpenTransitionName = function () {\n return _this3.props.openTransitionName;\n };\n\n this.step = function (direction) {\n var children = _this3.getFlatInstanceArray();\n var activeKey = _this3.props.store.getState().activeKey[getEventKey(_this3.props)];\n var len = children.length;\n if (!len) {\n return null;\n }\n if (direction < 0) {\n children = children.concat().reverse();\n }\n // find current activeIndex\n var activeIndex = -1;\n children.every(function (c, ci) {\n if (c && c.props.eventKey === activeKey) {\n activeIndex = ci;\n return false;\n }\n return true;\n });\n if (!_this3.props.defaultActiveFirst && activeIndex !== -1 && allDisabled(children.slice(activeIndex, len - 1))) {\n return undefined;\n }\n var start = (activeIndex + 1) % len;\n var i = start;\n\n do {\n var child = children[i];\n if (!child || child.props.disabled) {\n i = (i + 1) % len;\n } else {\n return child;\n }\n } while (i !== start);\n\n return null;\n };\n\n this.renderCommonMenuItem = function (child, i, extraProps) {\n var state = _this3.props.store.getState();\n var props = _this3.props;\n var key = Object(__WEBPACK_IMPORTED_MODULE_11__util__[\"a\" /* getKeyFromChildrenIndex */])(child, props.eventKey, i);\n var childProps = child.props;\n var isActive = key === state.activeKey;\n var newChildProps = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({\n mode: childProps.mode || props.mode,\n level: props.level,\n inlineIndent: props.inlineIndent,\n renderMenuItem: _this3.renderMenuItem,\n rootPrefixCls: props.prefixCls,\n index: i,\n parentMenu: props.parentMenu,\n // customized ref function, need to be invoked manually in child's componentDidMount\n manualRef: childProps.disabled ? undefined : Object(__WEBPACK_IMPORTED_MODULE_9_rc_util_es_createChainedFunction__[\"a\" /* default */])(child.ref, saveRef.bind(_this3)),\n eventKey: key,\n active: !childProps.disabled && isActive,\n multiple: props.multiple,\n onClick: function onClick(e) {\n (childProps.onClick || __WEBPACK_IMPORTED_MODULE_11__util__[\"g\" /* noop */])(e);\n _this3.onClick(e);\n },\n onItemHover: _this3.onItemHover,\n openTransitionName: _this3.getOpenTransitionName(),\n openAnimation: props.openAnimation,\n subMenuOpenDelay: props.subMenuOpenDelay,\n subMenuCloseDelay: props.subMenuCloseDelay,\n forceSubMenuRender: props.forceSubMenuRender,\n onOpenChange: _this3.onOpenChange,\n onDeselect: _this3.onDeselect,\n onSelect: _this3.onSelect,\n builtinPlacements: props.builtinPlacements,\n itemIcon: childProps.itemIcon || _this3.props.itemIcon,\n expandIcon: childProps.expandIcon || _this3.props.expandIcon\n }, extraProps);\n if (props.mode === 'inline') {\n newChildProps.triggerSubMenuAction = 'click';\n }\n return __WEBPACK_IMPORTED_MODULE_5_react___default.a.cloneElement(child, newChildProps);\n };\n\n this.renderMenuItem = function (c, i, subMenuKey) {\n /* istanbul ignore if */\n if (!c) {\n return null;\n }\n var state = _this3.props.store.getState();\n var extraProps = {\n openKeys: state.openKeys,\n selectedKeys: state.selectedKeys,\n triggerSubMenuAction: _this3.props.triggerSubMenuAction,\n subMenuKey: subMenuKey\n };\n return _this3.renderCommonMenuItem(c, i, extraProps);\n };\n};\n\nvar connected = Object(__WEBPACK_IMPORTED_MODULE_7_mini_store__[\"connect\"])()(SubPopupMenu);\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (connected);\n\n/***/ }),\n/* 524 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* unused harmony export SubMenu */\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__ = __webpack_require__(7);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_possibleConstructorReturn__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_inherits__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_inherits__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends__ = __webpack_require__(8);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react_dom__ = __webpack_require__(3);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react_dom__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_prop_types__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_rc_trigger__ = __webpack_require__(73);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__ = __webpack_require__(43);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_classnames__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_classnames__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_mini_store__ = __webpack_require__(21);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_mini_store___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_mini_store__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__SubPopupMenu__ = __webpack_require__(523);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__placements__ = __webpack_require__(1618);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_rc_animate__ = __webpack_require__(96);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__util__ = __webpack_require__(64);\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar guid = 0;\n\nvar popupPlacementMap = {\n horizontal: 'bottomLeft',\n vertical: 'rightTop',\n 'vertical-left': 'rightTop',\n 'vertical-right': 'leftTop'\n};\n\nvar updateDefaultActiveFirst = function updateDefaultActiveFirst(store, eventKey, defaultActiveFirst) {\n var _extends2;\n\n var menuId = Object(__WEBPACK_IMPORTED_MODULE_14__util__[\"b\" /* getMenuIdFromSubMenuEventKey */])(eventKey);\n var state = store.getState();\n store.setState({\n defaultActiveFirst: __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, state.defaultActiveFirst, (_extends2 = {}, _extends2[menuId] = defaultActiveFirst, _extends2))\n });\n};\n\nvar SubMenu = function (_React$Component) {\n __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_inherits___default()(SubMenu, _React$Component);\n\n function SubMenu(props) {\n __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default()(this, SubMenu);\n\n var _this = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.call(this, props));\n\n _initialiseProps.call(_this);\n\n var store = props.store;\n var eventKey = props.eventKey;\n var defaultActiveFirst = store.getState().defaultActiveFirst;\n\n _this.isRootMenu = false;\n\n var value = false;\n\n if (defaultActiveFirst) {\n value = defaultActiveFirst[eventKey];\n }\n\n updateDefaultActiveFirst(store, eventKey, value);\n return _this;\n }\n\n SubMenu.prototype.componentDidMount = function componentDidMount() {\n this.componentDidUpdate();\n };\n\n SubMenu.prototype.componentDidUpdate = function componentDidUpdate() {\n var _this2 = this;\n\n var _props = this.props,\n mode = _props.mode,\n parentMenu = _props.parentMenu,\n manualRef = _props.manualRef;\n\n // invoke customized ref to expose component to mixin\n\n if (manualRef) {\n manualRef(this);\n }\n\n if (mode !== 'horizontal' || !parentMenu.isRootMenu || !this.props.isOpen) {\n return;\n }\n\n this.minWidthTimeout = setTimeout(function () {\n return _this2.adjustWidth();\n }, 0);\n };\n\n SubMenu.prototype.componentWillUnmount = function componentWillUnmount() {\n var _props2 = this.props,\n onDestroy = _props2.onDestroy,\n eventKey = _props2.eventKey;\n\n if (onDestroy) {\n onDestroy(eventKey);\n }\n\n /* istanbul ignore if */\n if (this.minWidthTimeout) {\n clearTimeout(this.minWidthTimeout);\n }\n\n /* istanbul ignore if */\n if (this.mouseenterTimeout) {\n clearTimeout(this.mouseenterTimeout);\n }\n };\n\n SubMenu.prototype.renderChildren = function renderChildren(children) {\n var props = this.props;\n var baseProps = {\n mode: props.mode === 'horizontal' ? 'vertical' : props.mode,\n visible: this.props.isOpen,\n level: props.level + 1,\n inlineIndent: props.inlineIndent,\n focusable: false,\n onClick: this.onSubMenuClick,\n onSelect: this.onSelect,\n onDeselect: this.onDeselect,\n onDestroy: this.onDestroy,\n selectedKeys: props.selectedKeys,\n eventKey: props.eventKey + '-menu-',\n openKeys: props.openKeys,\n openTransitionName: props.openTransitionName,\n openAnimation: props.openAnimation,\n onOpenChange: this.onOpenChange,\n subMenuOpenDelay: props.subMenuOpenDelay,\n parentMenu: this,\n subMenuCloseDelay: props.subMenuCloseDelay,\n forceSubMenuRender: props.forceSubMenuRender,\n triggerSubMenuAction: props.triggerSubMenuAction,\n builtinPlacements: props.builtinPlacements,\n defaultActiveFirst: props.store.getState().defaultActiveFirst[Object(__WEBPACK_IMPORTED_MODULE_14__util__[\"b\" /* getMenuIdFromSubMenuEventKey */])(props.eventKey)],\n multiple: props.multiple,\n prefixCls: props.rootPrefixCls,\n id: this._menuId,\n manualRef: this.saveMenuInstance,\n itemIcon: props.itemIcon,\n expandIcon: props.expandIcon\n };\n\n var haveRendered = this.haveRendered;\n this.haveRendered = true;\n\n this.haveOpened = this.haveOpened || baseProps.visible || baseProps.forceSubMenuRender;\n // never rendered not planning to, don't render\n if (!this.haveOpened) {\n return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement('div', null);\n }\n\n // don't show transition on first rendering (no animation for opened menu)\n // show appear transition if it's not visible (not sure why)\n // show appear transition if it's not inline mode\n var transitionAppear = haveRendered || !baseProps.visible || !baseProps.mode === 'inline';\n\n baseProps.className = ' ' + baseProps.prefixCls + '-sub';\n var animProps = {};\n\n if (baseProps.openTransitionName) {\n animProps.transitionName = baseProps.openTransitionName;\n } else if (typeof baseProps.openAnimation === 'object') {\n animProps.animation = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, baseProps.openAnimation);\n if (!transitionAppear) {\n delete animProps.animation.appear;\n }\n }\n\n return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(\n __WEBPACK_IMPORTED_MODULE_13_rc_animate__[\"default\"],\n __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, animProps, {\n showProp: 'visible',\n component: '',\n transitionAppear: transitionAppear\n }),\n __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(\n __WEBPACK_IMPORTED_MODULE_11__SubPopupMenu__[\"a\" /* default */],\n __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, baseProps, { id: this._menuId }),\n children\n )\n );\n };\n\n SubMenu.prototype.render = function render() {\n var _classNames;\n\n var props = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, this.props);\n var isOpen = props.isOpen;\n var prefixCls = this.getPrefixCls();\n var isInlineMode = props.mode === 'inline';\n var className = __WEBPACK_IMPORTED_MODULE_9_classnames___default()(prefixCls, prefixCls + '-' + props.mode, (_classNames = {}, _classNames[props.className] = !!props.className, _classNames[this.getOpenClassName()] = isOpen, _classNames[this.getActiveClassName()] = props.active || isOpen && !isInlineMode, _classNames[this.getDisabledClassName()] = props.disabled, _classNames[this.getSelectedClassName()] = this.isChildrenSelected(), _classNames));\n\n if (!this._menuId) {\n if (props.eventKey) {\n this._menuId = props.eventKey + '$Menu';\n } else {\n this._menuId = '$__$' + ++guid + '$Menu';\n }\n }\n\n var mouseEvents = {};\n var titleClickEvents = {};\n var titleMouseEvents = {};\n if (!props.disabled) {\n mouseEvents = {\n onMouseLeave: this.onMouseLeave,\n onMouseEnter: this.onMouseEnter\n };\n\n // only works in title, not outer li\n titleClickEvents = {\n onClick: this.onTitleClick\n };\n titleMouseEvents = {\n onMouseEnter: this.onTitleMouseEnter,\n onMouseLeave: this.onTitleMouseLeave\n };\n }\n\n var style = {};\n if (isInlineMode) {\n style.paddingLeft = props.inlineIndent * props.level;\n }\n\n var ariaOwns = {};\n // only set aria-owns when menu is open\n // otherwise it would be an invalid aria-owns value\n // since corresponding node cannot be found\n if (this.props.isOpen) {\n ariaOwns = {\n 'aria-owns': this._menuId\n };\n }\n\n // expand custom icon should NOT be displayed in menu with horizontal mode.\n var icon = null;\n if (props.mode !== 'horizontal') {\n icon = this.props.expandIcon; // ReactNode\n if (typeof this.props.expandIcon === 'function') {\n icon = __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(this.props.expandIcon, __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, this.props));\n }\n }\n\n var title = __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(\n 'div',\n __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({\n ref: this.saveSubMenuTitle,\n style: style,\n className: prefixCls + '-title'\n }, titleMouseEvents, titleClickEvents, {\n 'aria-expanded': isOpen\n }, ariaOwns, {\n 'aria-haspopup': 'true',\n title: typeof props.title === 'string' ? props.title : undefined\n }),\n props.title,\n icon || __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement('i', { className: prefixCls + '-arrow' })\n );\n var children = this.renderChildren(props.children);\n\n var getPopupContainer = props.parentMenu.isRootMenu ? props.parentMenu.props.getPopupContainer : function (triggerNode) {\n return triggerNode.parentNode;\n };\n var popupPlacement = popupPlacementMap[props.mode];\n var popupAlign = props.popupOffset ? { offset: props.popupOffset } : {};\n var popupClassName = props.mode === 'inline' ? '' : props.popupClassName;\n var disabled = props.disabled,\n triggerSubMenuAction = props.triggerSubMenuAction,\n subMenuOpenDelay = props.subMenuOpenDelay,\n forceSubMenuRender = props.forceSubMenuRender,\n subMenuCloseDelay = props.subMenuCloseDelay,\n builtinPlacements = props.builtinPlacements;\n\n __WEBPACK_IMPORTED_MODULE_14__util__[\"f\" /* menuAllProps */].forEach(function (key) {\n return delete props[key];\n });\n // Set onClick to null, to ignore propagated onClick event\n delete props.onClick;\n\n return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(\n 'li',\n __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, props, mouseEvents, {\n className: className,\n role: 'menuitem'\n }),\n isInlineMode && title,\n isInlineMode && children,\n !isInlineMode && __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(\n __WEBPACK_IMPORTED_MODULE_7_rc_trigger__[\"default\"],\n {\n prefixCls: prefixCls,\n popupClassName: prefixCls + '-popup ' + popupClassName,\n getPopupContainer: getPopupContainer,\n builtinPlacements: __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, __WEBPACK_IMPORTED_MODULE_12__placements__[\"a\" /* default */], builtinPlacements),\n popupPlacement: popupPlacement,\n popupVisible: isOpen,\n popupAlign: popupAlign,\n popup: children,\n action: disabled ? [] : [triggerSubMenuAction],\n mouseEnterDelay: subMenuOpenDelay,\n mouseLeaveDelay: subMenuCloseDelay,\n onPopupVisibleChange: this.onPopupVisibleChange,\n forceRender: forceSubMenuRender\n },\n title\n )\n );\n };\n\n return SubMenu;\n}(__WEBPACK_IMPORTED_MODULE_4_react___default.a.Component);\n\nSubMenu.propTypes = {\n parentMenu: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object,\n title: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.node,\n children: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.any,\n selectedKeys: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.array,\n openKeys: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.array,\n onClick: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,\n onOpenChange: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,\n rootPrefixCls: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string,\n eventKey: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string,\n multiple: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,\n active: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, // TODO: remove\n onItemHover: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,\n onSelect: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,\n triggerSubMenuAction: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string,\n onDeselect: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,\n onDestroy: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,\n onMouseEnter: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,\n onMouseLeave: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,\n onTitleMouseEnter: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,\n onTitleMouseLeave: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,\n onTitleClick: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,\n popupOffset: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.array,\n isOpen: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,\n store: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object,\n mode: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']),\n manualRef: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,\n itemIcon: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.node]),\n expandIcon: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.node])\n};\nSubMenu.defaultProps = {\n onMouseEnter: __WEBPACK_IMPORTED_MODULE_14__util__[\"g\" /* noop */],\n onMouseLeave: __WEBPACK_IMPORTED_MODULE_14__util__[\"g\" /* noop */],\n onTitleMouseEnter: __WEBPACK_IMPORTED_MODULE_14__util__[\"g\" /* noop */],\n onTitleMouseLeave: __WEBPACK_IMPORTED_MODULE_14__util__[\"g\" /* noop */],\n onTitleClick: __WEBPACK_IMPORTED_MODULE_14__util__[\"g\" /* noop */],\n manualRef: __WEBPACK_IMPORTED_MODULE_14__util__[\"g\" /* noop */],\n mode: 'vertical',\n title: ''\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this3 = this;\n\n this.onDestroy = function (key) {\n _this3.props.onDestroy(key);\n };\n\n this.onKeyDown = function (e) {\n var keyCode = e.keyCode;\n var menu = _this3.menuInstance;\n var _props3 = _this3.props,\n isOpen = _props3.isOpen,\n store = _props3.store;\n\n\n if (keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__[\"a\" /* default */].ENTER) {\n _this3.onTitleClick(e);\n updateDefaultActiveFirst(store, _this3.props.eventKey, true);\n return true;\n }\n\n if (keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__[\"a\" /* default */].RIGHT) {\n if (isOpen) {\n menu.onKeyDown(e);\n } else {\n _this3.triggerOpenChange(true);\n // need to update current menu's defaultActiveFirst value\n updateDefaultActiveFirst(store, _this3.props.eventKey, true);\n }\n return true;\n }\n if (keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__[\"a\" /* default */].LEFT) {\n var handled = void 0;\n if (isOpen) {\n handled = menu.onKeyDown(e);\n } else {\n return undefined;\n }\n if (!handled) {\n _this3.triggerOpenChange(false);\n handled = true;\n }\n return handled;\n }\n\n if (isOpen && (keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__[\"a\" /* default */].UP || keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__[\"a\" /* default */].DOWN)) {\n return menu.onKeyDown(e);\n }\n };\n\n this.onOpenChange = function (e) {\n _this3.props.onOpenChange(e);\n };\n\n this.onPopupVisibleChange = function (visible) {\n _this3.triggerOpenChange(visible, visible ? 'mouseenter' : 'mouseleave');\n };\n\n this.onMouseEnter = function (e) {\n var _props4 = _this3.props,\n key = _props4.eventKey,\n onMouseEnter = _props4.onMouseEnter,\n store = _props4.store;\n\n updateDefaultActiveFirst(store, _this3.props.eventKey, false);\n onMouseEnter({\n key: key,\n domEvent: e\n });\n };\n\n this.onMouseLeave = function (e) {\n var _props5 = _this3.props,\n parentMenu = _props5.parentMenu,\n eventKey = _props5.eventKey,\n onMouseLeave = _props5.onMouseLeave;\n\n parentMenu.subMenuInstance = _this3;\n onMouseLeave({\n key: eventKey,\n domEvent: e\n });\n };\n\n this.onTitleMouseEnter = function (domEvent) {\n var _props6 = _this3.props,\n key = _props6.eventKey,\n onItemHover = _props6.onItemHover,\n onTitleMouseEnter = _props6.onTitleMouseEnter;\n\n onItemHover({\n key: key,\n hover: true\n });\n onTitleMouseEnter({\n key: key,\n domEvent: domEvent\n });\n };\n\n this.onTitleMouseLeave = function (e) {\n var _props7 = _this3.props,\n parentMenu = _props7.parentMenu,\n eventKey = _props7.eventKey,\n onItemHover = _props7.onItemHover,\n onTitleMouseLeave = _props7.onTitleMouseLeave;\n\n parentMenu.subMenuInstance = _this3;\n onItemHover({\n key: eventKey,\n hover: false\n });\n onTitleMouseLeave({\n key: eventKey,\n domEvent: e\n });\n };\n\n this.onTitleClick = function (e) {\n var props = _this3.props;\n\n props.onTitleClick({\n key: props.eventKey,\n domEvent: e\n });\n if (props.triggerSubMenuAction === 'hover') {\n return;\n }\n _this3.triggerOpenChange(!props.isOpen, 'click');\n updateDefaultActiveFirst(props.store, _this3.props.eventKey, false);\n };\n\n this.onSubMenuClick = function (info) {\n // in the case of overflowed submenu\n // onClick is not copied over\n if (typeof _this3.props.onClick === 'function') {\n _this3.props.onClick(_this3.addKeyPath(info));\n }\n };\n\n this.onSelect = function (info) {\n _this3.props.onSelect(info);\n };\n\n this.onDeselect = function (info) {\n _this3.props.onDeselect(info);\n };\n\n this.getPrefixCls = function () {\n return _this3.props.rootPrefixCls + '-submenu';\n };\n\n this.getActiveClassName = function () {\n return _this3.getPrefixCls() + '-active';\n };\n\n this.getDisabledClassName = function () {\n return _this3.getPrefixCls() + '-disabled';\n };\n\n this.getSelectedClassName = function () {\n return _this3.getPrefixCls() + '-selected';\n };\n\n this.getOpenClassName = function () {\n return _this3.props.rootPrefixCls + '-submenu-open';\n };\n\n this.saveMenuInstance = function (c) {\n // children menu instance\n _this3.menuInstance = c;\n };\n\n this.addKeyPath = function (info) {\n return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, info, {\n keyPath: (info.keyPath || []).concat(_this3.props.eventKey)\n });\n };\n\n this.triggerOpenChange = function (open, type) {\n var key = _this3.props.eventKey;\n var openChange = function openChange() {\n _this3.onOpenChange({\n key: key,\n item: _this3,\n trigger: type,\n open: open\n });\n };\n if (type === 'mouseenter') {\n // make sure mouseenter happen after other menu item's mouseleave\n _this3.mouseenterTimeout = setTimeout(function () {\n openChange();\n }, 0);\n } else {\n openChange();\n }\n };\n\n this.isChildrenSelected = function () {\n var ret = { find: false };\n Object(__WEBPACK_IMPORTED_MODULE_14__util__[\"e\" /* loopMenuItemRecursively */])(_this3.props.children, _this3.props.selectedKeys, ret);\n return ret.find;\n };\n\n this.isOpen = function () {\n return _this3.props.openKeys.indexOf(_this3.props.eventKey) !== -1;\n };\n\n this.adjustWidth = function () {\n /* istanbul ignore if */\n if (!_this3.subMenuTitle || !_this3.menuInstance) {\n return;\n }\n var popupMenu = __WEBPACK_IMPORTED_MODULE_5_react_dom___default.a.findDOMNode(_this3.menuInstance);\n if (popupMenu.offsetWidth >= _this3.subMenuTitle.offsetWidth) {\n return;\n }\n\n /* istanbul ignore next */\n popupMenu.style.minWidth = _this3.subMenuTitle.offsetWidth + 'px';\n };\n\n this.saveSubMenuTitle = function (subMenuTitle) {\n _this3.subMenuTitle = subMenuTitle;\n };\n};\n\nvar connected = Object(__WEBPACK_IMPORTED_MODULE_10_mini_store__[\"connect\"])(function (_ref, _ref2) {\n var openKeys = _ref.openKeys,\n activeKey = _ref.activeKey,\n selectedKeys = _ref.selectedKeys;\n var eventKey = _ref2.eventKey,\n subMenuKey = _ref2.subMenuKey;\n return {\n isOpen: openKeys.indexOf(eventKey) > -1,\n active: activeKey[subMenuKey] === eventKey,\n selectedKeys: selectedKeys\n };\n})(SubMenu);\n\nconnected.isSubMenu = true;\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (connected);\n\n/***/ }),\n/* 525 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.SelectPropTypes = undefined;\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction valueType(props, propName, componentName) {\n var basicType = _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].string, _propTypes2[\"default\"].number]);\n\n var labelInValueShape = _propTypes2[\"default\"].shape({\n key: basicType.isRequired,\n label: _propTypes2[\"default\"].node\n });\n if (props.labelInValue) {\n var validate = _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].arrayOf(labelInValueShape), labelInValueShape]);\n var error = validate.apply(undefined, arguments);\n if (error) {\n return new Error('Invalid prop `' + propName + '` supplied to `' + componentName + '`, ' + ('when you set `labelInValue` to `true`, `' + propName + '` should in ') + 'shape of `{ key: string | number, label?: ReactNode }`.');\n }\n } else if ((props.mode === 'multiple' || props.mode === 'tags' || props.multiple || props.tags) && props[propName] === '') {\n return new Error('Invalid prop `' + propName + '` of type `string` supplied to `' + componentName + '`, ' + 'expected `array` when `multiple` or `tags` is `true`.');\n } else {\n var _validate = _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].arrayOf(basicType), basicType]);\n return _validate.apply(undefined, arguments);\n }\n} /**\n * This source code is quoted from rc-select.\n * homepage: https://github.com/react-component/select\n */\nvar SelectPropTypes = exports.SelectPropTypes = {\n id: _propTypes2[\"default\"].string,\n defaultActiveFirstOption: _propTypes2[\"default\"].bool,\n multiple: _propTypes2[\"default\"].bool,\n filterOption: _propTypes2[\"default\"].any,\n children: _propTypes2[\"default\"].any,\n showSearch: _propTypes2[\"default\"].bool,\n disabled: _propTypes2[\"default\"].bool,\n allowClear: _propTypes2[\"default\"].bool,\n showArrow: _propTypes2[\"default\"].bool,\n tags: _propTypes2[\"default\"].bool,\n prefixCls: _propTypes2[\"default\"].string,\n className: _propTypes2[\"default\"].string,\n transitionName: _propTypes2[\"default\"].string,\n optionLabelProp: _propTypes2[\"default\"].string,\n optionFilterProp: _propTypes2[\"default\"].string,\n animation: _propTypes2[\"default\"].string,\n choiceTransitionName: _propTypes2[\"default\"].string,\n open: _propTypes2[\"default\"].bool,\n defaultOpen: _propTypes2[\"default\"].bool,\n onChange: _propTypes2[\"default\"].func,\n onBlur: _propTypes2[\"default\"].func,\n onFocus: _propTypes2[\"default\"].func,\n onSelect: _propTypes2[\"default\"].func,\n onSearch: _propTypes2[\"default\"].func,\n onPopupScroll: _propTypes2[\"default\"].func,\n onMouseEnter: _propTypes2[\"default\"].func,\n onMouseLeave: _propTypes2[\"default\"].func,\n onInputKeyDown: _propTypes2[\"default\"].func,\n placeholder: _propTypes2[\"default\"].any,\n onDeselect: _propTypes2[\"default\"].func,\n labelInValue: _propTypes2[\"default\"].bool,\n value: valueType,\n defaultValue: valueType,\n dropdownStyle: _propTypes2[\"default\"].object,\n maxTagTextLength: _propTypes2[\"default\"].number,\n maxTagCount: _propTypes2[\"default\"].number,\n maxTagPlaceholder: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].node, _propTypes2[\"default\"].func]),\n tokenSeparators: _propTypes2[\"default\"].arrayOf(_propTypes2[\"default\"].string),\n getInputElement: _propTypes2[\"default\"].func,\n showAction: _propTypes2[\"default\"].arrayOf(_propTypes2[\"default\"].string),\n clearIcon: _propTypes2[\"default\"].node,\n inputIcon: _propTypes2[\"default\"].node,\n removeIcon: _propTypes2[\"default\"].node,\n menuItemSelectedIcon: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].func, _propTypes2[\"default\"].node])\n};\n\n/***/ }),\n/* 526 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar OptGroup = function (_React$Component) {\n _inherits(OptGroup, _React$Component);\n\n function OptGroup() {\n _classCallCheck(this, OptGroup);\n\n return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n return OptGroup;\n}(_react2[\"default\"].Component);\n\nOptGroup.isSelectOptGroup = true;\nexports[\"default\"] = OptGroup;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 527 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(process) {\n\nexports.__esModule = true;\nexports.default = exports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = void 0;\n\nvar PropTypes = _interopRequireWildcard(__webpack_require__(1));\n\nvar _react = _interopRequireDefault(__webpack_require__(0));\n\nvar _reactDom = _interopRequireDefault(__webpack_require__(3));\n\nvar _reactLifecyclesCompat = __webpack_require__(14);\n\nvar _PropTypes = __webpack_require__(528);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }\n\nvar UNMOUNTED = 'unmounted';\nexports.UNMOUNTED = UNMOUNTED;\nvar EXITED = 'exited';\nexports.EXITED = EXITED;\nvar ENTERING = 'entering';\nexports.ENTERING = ENTERING;\nvar ENTERED = 'entered';\nexports.ENTERED = ENTERED;\nvar EXITING = 'exiting';\n/**\n * The Transition component lets you describe a transition from one component\n * state to another _over time_ with a simple declarative API. Most commonly\n * it's used to animate the mounting and unmounting of a component, but can also\n * be used to describe in-place transition states as well.\n *\n * ---\n *\n * **Note**: `Transition` is a platform-agnostic base component. If you're using\n * transitions in CSS, you'll probably want to use\n * [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition)\n * instead. It inherits all the features of `Transition`, but contains\n * additional features necessary to play nice with CSS transitions (hence the\n * name of the component).\n *\n * ---\n *\n * By default the `Transition` component does not alter the behavior of the\n * component it renders, it only tracks \"enter\" and \"exit\" states for the\n * components. It's up to you to give meaning and effect to those states. For\n * example we can add styles to a component when it enters or exits:\n *\n * ```jsx\n * import { Transition } from 'react-transition-group';\n *\n * const duration = 300;\n *\n * const defaultStyle = {\n * transition: `opacity ${duration}ms ease-in-out`,\n * opacity: 0,\n * }\n *\n * const transitionStyles = {\n * entering: { opacity: 0 },\n * entered: { opacity: 1 },\n * };\n *\n * const Fade = ({ in: inProp }) => (\n * \n * {state => (\n *
    \n * I'm a fade Transition!\n *
    \n * )}\n *
    \n * );\n * ```\n *\n * There are 4 main states a Transition can be in:\n * - `'entering'`\n * - `'entered'`\n * - `'exiting'`\n * - `'exited'`\n *\n * Transition state is toggled via the `in` prop. When `true` the component\n * begins the \"Enter\" stage. During this stage, the component will shift from\n * its current transition state, to `'entering'` for the duration of the\n * transition and then to the `'entered'` stage once it's complete. Let's take\n * the following example (we'll use the\n * [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook):\n *\n * ```jsx\n * function App() {\n * const [inProp, setInProp] = useState(false);\n * return (\n *
    \n * \n * {state => (\n * // ...\n * )}\n * \n * \n *
    \n * );\n * }\n * ```\n *\n * When the button is clicked the component will shift to the `'entering'` state\n * and stay there for 500ms (the value of `timeout`) before it finally switches\n * to `'entered'`.\n *\n * When `in` is `false` the same thing happens except the state moves from\n * `'exiting'` to `'exited'`.\n */\n\nexports.EXITING = EXITING;\n\nvar Transition =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inheritsLoose(Transition, _React$Component);\n\n function Transition(props, context) {\n var _this;\n\n _this = _React$Component.call(this, props, context) || this;\n var parentGroup = context.transitionGroup; // In the context of a TransitionGroup all enters are really appears\n\n var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;\n var initialStatus;\n _this.appearStatus = null;\n\n if (props.in) {\n if (appear) {\n initialStatus = EXITED;\n _this.appearStatus = ENTERING;\n } else {\n initialStatus = ENTERED;\n }\n } else {\n if (props.unmountOnExit || props.mountOnEnter) {\n initialStatus = UNMOUNTED;\n } else {\n initialStatus = EXITED;\n }\n }\n\n _this.state = {\n status: initialStatus\n };\n _this.nextCallback = null;\n return _this;\n }\n\n var _proto = Transition.prototype;\n\n _proto.getChildContext = function getChildContext() {\n return {\n transitionGroup: null // allows for nested Transitions\n\n };\n };\n\n Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {\n var nextIn = _ref.in;\n\n if (nextIn && prevState.status === UNMOUNTED) {\n return {\n status: EXITED\n };\n }\n\n return null;\n }; // getSnapshotBeforeUpdate(prevProps) {\n // let nextStatus = null\n // if (prevProps !== this.props) {\n // const { status } = this.state\n // if (this.props.in) {\n // if (status !== ENTERING && status !== ENTERED) {\n // nextStatus = ENTERING\n // }\n // } else {\n // if (status === ENTERING || status === ENTERED) {\n // nextStatus = EXITING\n // }\n // }\n // }\n // return { nextStatus }\n // }\n\n\n _proto.componentDidMount = function componentDidMount() {\n this.updateStatus(true, this.appearStatus);\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n var nextStatus = null;\n\n if (prevProps !== this.props) {\n var status = this.state.status;\n\n if (this.props.in) {\n if (status !== ENTERING && status !== ENTERED) {\n nextStatus = ENTERING;\n }\n } else {\n if (status === ENTERING || status === ENTERED) {\n nextStatus = EXITING;\n }\n }\n }\n\n this.updateStatus(false, nextStatus);\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.cancelNextCallback();\n };\n\n _proto.getTimeouts = function getTimeouts() {\n var timeout = this.props.timeout;\n var exit, enter, appear;\n exit = enter = appear = timeout;\n\n if (timeout != null && typeof timeout !== 'number') {\n exit = timeout.exit;\n enter = timeout.enter; // TODO: remove fallback for next major\n\n appear = timeout.appear !== undefined ? timeout.appear : enter;\n }\n\n return {\n exit: exit,\n enter: enter,\n appear: appear\n };\n };\n\n _proto.updateStatus = function updateStatus(mounting, nextStatus) {\n if (mounting === void 0) {\n mounting = false;\n }\n\n if (nextStatus !== null) {\n // nextStatus will always be ENTERING or EXITING.\n this.cancelNextCallback();\n\n var node = _reactDom.default.findDOMNode(this);\n\n if (nextStatus === ENTERING) {\n this.performEnter(node, mounting);\n } else {\n this.performExit(node);\n }\n } else if (this.props.unmountOnExit && this.state.status === EXITED) {\n this.setState({\n status: UNMOUNTED\n });\n }\n };\n\n _proto.performEnter = function performEnter(node, mounting) {\n var _this2 = this;\n\n var enter = this.props.enter;\n var appearing = this.context.transitionGroup ? this.context.transitionGroup.isMounting : mounting;\n var timeouts = this.getTimeouts();\n var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED\n // if we are mounting and running this it means appear _must_ be set\n\n if (!mounting && !enter) {\n this.safeSetState({\n status: ENTERED\n }, function () {\n _this2.props.onEntered(node);\n });\n return;\n }\n\n this.props.onEnter(node, appearing);\n this.safeSetState({\n status: ENTERING\n }, function () {\n _this2.props.onEntering(node, appearing);\n\n _this2.onTransitionEnd(node, enterTimeout, function () {\n _this2.safeSetState({\n status: ENTERED\n }, function () {\n _this2.props.onEntered(node, appearing);\n });\n });\n });\n };\n\n _proto.performExit = function performExit(node) {\n var _this3 = this;\n\n var exit = this.props.exit;\n var timeouts = this.getTimeouts(); // no exit animation skip right to EXITED\n\n if (!exit) {\n this.safeSetState({\n status: EXITED\n }, function () {\n _this3.props.onExited(node);\n });\n return;\n }\n\n this.props.onExit(node);\n this.safeSetState({\n status: EXITING\n }, function () {\n _this3.props.onExiting(node);\n\n _this3.onTransitionEnd(node, timeouts.exit, function () {\n _this3.safeSetState({\n status: EXITED\n }, function () {\n _this3.props.onExited(node);\n });\n });\n });\n };\n\n _proto.cancelNextCallback = function cancelNextCallback() {\n if (this.nextCallback !== null) {\n this.nextCallback.cancel();\n this.nextCallback = null;\n }\n };\n\n _proto.safeSetState = function safeSetState(nextState, callback) {\n // This shouldn't be necessary, but there are weird race conditions with\n // setState callbacks and unmounting in testing, so always make sure that\n // we can cancel any pending setState callbacks after we unmount.\n callback = this.setNextCallback(callback);\n this.setState(nextState, callback);\n };\n\n _proto.setNextCallback = function setNextCallback(callback) {\n var _this4 = this;\n\n var active = true;\n\n this.nextCallback = function (event) {\n if (active) {\n active = false;\n _this4.nextCallback = null;\n callback(event);\n }\n };\n\n this.nextCallback.cancel = function () {\n active = false;\n };\n\n return this.nextCallback;\n };\n\n _proto.onTransitionEnd = function onTransitionEnd(node, timeout, handler) {\n this.setNextCallback(handler);\n var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;\n\n if (!node || doesNotHaveTimeoutOrListener) {\n setTimeout(this.nextCallback, 0);\n return;\n }\n\n if (this.props.addEndListener) {\n this.props.addEndListener(node, this.nextCallback);\n }\n\n if (timeout != null) {\n setTimeout(this.nextCallback, timeout);\n }\n };\n\n _proto.render = function render() {\n var status = this.state.status;\n\n if (status === UNMOUNTED) {\n return null;\n }\n\n var _this$props = this.props,\n children = _this$props.children,\n childProps = _objectWithoutPropertiesLoose(_this$props, [\"children\"]); // filter props for Transtition\n\n\n delete childProps.in;\n delete childProps.mountOnEnter;\n delete childProps.unmountOnExit;\n delete childProps.appear;\n delete childProps.enter;\n delete childProps.exit;\n delete childProps.timeout;\n delete childProps.addEndListener;\n delete childProps.onEnter;\n delete childProps.onEntering;\n delete childProps.onEntered;\n delete childProps.onExit;\n delete childProps.onExiting;\n delete childProps.onExited;\n\n if (typeof children === 'function') {\n return children(status, childProps);\n }\n\n var child = _react.default.Children.only(children);\n\n return _react.default.cloneElement(child, childProps);\n };\n\n return Transition;\n}(_react.default.Component);\n\nTransition.contextTypes = {\n transitionGroup: PropTypes.object\n};\nTransition.childContextTypes = {\n transitionGroup: function transitionGroup() {}\n};\nTransition.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /**\n * A `function` child can be used instead of a React element. This function is\n * called with the current transition status (`'entering'`, `'entered'`,\n * `'exiting'`, `'exited'`, `'unmounted'`), which can be used to apply context\n * specific props to a component.\n *\n * ```jsx\n * \n * {state => (\n * \n * )}\n * \n * ```\n */\n children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired,\n\n /**\n * Show the component; triggers the enter or exit states\n */\n in: PropTypes.bool,\n\n /**\n * By default the child component is mounted immediately along with\n * the parent `Transition` component. If you want to \"lazy mount\" the component on the\n * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay\n * mounted, even on \"exited\", unless you also specify `unmountOnExit`.\n */\n mountOnEnter: PropTypes.bool,\n\n /**\n * By default the child component stays mounted after it reaches the `'exited'` state.\n * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.\n */\n unmountOnExit: PropTypes.bool,\n\n /**\n * Normally a component is not transitioned if it is shown when the `` component mounts.\n * If you want to transition on the first mount set `appear` to `true`, and the\n * component will transition in as soon as the `` mounts.\n *\n * > Note: there are no specific \"appear\" states. `appear` only adds an additional `enter` transition.\n */\n appear: PropTypes.bool,\n\n /**\n * Enable or disable enter transitions.\n */\n enter: PropTypes.bool,\n\n /**\n * Enable or disable exit transitions.\n */\n exit: PropTypes.bool,\n\n /**\n * The duration of the transition, in milliseconds.\n * Required unless `addEndListener` is provided.\n *\n * You may specify a single timeout for all transitions:\n *\n * ```jsx\n * timeout={500}\n * ```\n *\n * or individually:\n *\n * ```jsx\n * timeout={{\n * appear: 500,\n * enter: 300,\n * exit: 500,\n * }}\n * ```\n *\n * - `appear` defaults to the value of `enter`\n * - `enter` defaults to `0`\n * - `exit` defaults to `0`\n *\n * @type {number | { enter?: number, exit?: number, appear?: number }}\n */\n timeout: function timeout(props) {\n var pt = _PropTypes.timeoutsShape;\n if (!props.addEndListener) pt = pt.isRequired;\n\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n return pt.apply(void 0, [props].concat(args));\n },\n\n /**\n * Add a custom transition end trigger. Called with the transitioning\n * DOM node and a `done` callback. Allows for more fine grained transition end\n * logic. **Note:** Timeouts are still used as a fallback if provided.\n *\n * ```jsx\n * addEndListener={(node, done) => {\n * // use the css transitionend event to mark the finish of a transition\n * node.addEventListener('transitionend', done, false);\n * }}\n * ```\n */\n addEndListener: PropTypes.func,\n\n /**\n * Callback fired before the \"entering\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * @type Function(node: HtmlElement, isAppearing: bool) -> void\n */\n onEnter: PropTypes.func,\n\n /**\n * Callback fired after the \"entering\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntering: PropTypes.func,\n\n /**\n * Callback fired after the \"entered\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * @type Function(node: HtmlElement, isAppearing: bool) -> void\n */\n onEntered: PropTypes.func,\n\n /**\n * Callback fired before the \"exiting\" status is applied.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExit: PropTypes.func,\n\n /**\n * Callback fired after the \"exiting\" status is applied.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExiting: PropTypes.func,\n\n /**\n * Callback fired after the \"exited\" status is applied.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExited: PropTypes.func // Name the function so it is clearer in the documentation\n\n} : {};\n\nfunction noop() {}\n\nTransition.defaultProps = {\n in: false,\n mountOnEnter: false,\n unmountOnExit: false,\n appear: false,\n enter: true,\n exit: true,\n onEnter: noop,\n onEntering: noop,\n onEntered: noop,\n onExit: noop,\n onExiting: noop,\n onExited: noop\n};\nTransition.UNMOUNTED = 0;\nTransition.EXITED = 1;\nTransition.ENTERING = 2;\nTransition.ENTERED = 3;\nTransition.EXITING = 4;\n\nvar _default = (0, _reactLifecyclesCompat.polyfill)(Transition);\n\nexports.default = _default;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5)))\n\n/***/ }),\n/* 528 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(process) {\n\nexports.__esModule = true;\nexports.classNamesShape = exports.timeoutsShape = void 0;\n\nvar _propTypes = _interopRequireDefault(__webpack_require__(1));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar timeoutsShape = process.env.NODE_ENV !== 'production' ? _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.shape({\n enter: _propTypes.default.number,\n exit: _propTypes.default.number,\n appear: _propTypes.default.number\n}).isRequired]) : null;\nexports.timeoutsShape = timeoutsShape;\nvar classNamesShape = process.env.NODE_ENV !== 'production' ? _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.shape({\n enter: _propTypes.default.string,\n exit: _propTypes.default.string,\n active: _propTypes.default.string\n}), _propTypes.default.shape({\n enter: _propTypes.default.string,\n enterDone: _propTypes.default.string,\n enterActive: _propTypes.default.string,\n exit: _propTypes.default.string,\n exitDone: _propTypes.default.string,\n exitActive: _propTypes.default.string\n})]) : null;\nexports.classNamesShape = classNamesShape;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5)))\n\n/***/ }),\n/* 529 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(process) {\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar _propTypes = _interopRequireDefault(__webpack_require__(1));\n\nvar _react = _interopRequireDefault(__webpack_require__(0));\n\nvar _reactLifecyclesCompat = __webpack_require__(14);\n\nvar _ChildMapping = __webpack_require__(1651);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nvar values = Object.values || function (obj) {\n return Object.keys(obj).map(function (k) {\n return obj[k];\n });\n};\n\nvar defaultProps = {\n component: 'div',\n childFactory: function childFactory(child) {\n return child;\n }\n /**\n * The `` component manages a set of transition components\n * (`` and ``) in a list. Like with the transition\n * components, `` is a state machine for managing the mounting\n * and unmounting of components over time.\n *\n * Consider the example below. As items are removed or added to the TodoList the\n * `in` prop is toggled automatically by the ``.\n *\n * Note that `` does not define any animation behavior!\n * Exactly _how_ a list item animates is up to the individual transition\n * component. This means you can mix and match animations across different list\n * items.\n */\n\n};\n\nvar TransitionGroup =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inheritsLoose(TransitionGroup, _React$Component);\n\n function TransitionGroup(props, context) {\n var _this;\n\n _this = _React$Component.call(this, props, context) || this;\n\n var handleExited = _this.handleExited.bind(_assertThisInitialized(_assertThisInitialized(_this))); // Initial children should all be entering, dependent on appear\n\n\n _this.state = {\n handleExited: handleExited,\n firstRender: true\n };\n return _this;\n }\n\n var _proto = TransitionGroup.prototype;\n\n _proto.getChildContext = function getChildContext() {\n return {\n transitionGroup: {\n isMounting: !this.appeared\n }\n };\n };\n\n _proto.componentDidMount = function componentDidMount() {\n this.appeared = true;\n this.mounted = true;\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.mounted = false;\n };\n\n TransitionGroup.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, _ref) {\n var prevChildMapping = _ref.children,\n handleExited = _ref.handleExited,\n firstRender = _ref.firstRender;\n return {\n children: firstRender ? (0, _ChildMapping.getInitialChildMapping)(nextProps, handleExited) : (0, _ChildMapping.getNextChildMapping)(nextProps, prevChildMapping, handleExited),\n firstRender: false\n };\n };\n\n _proto.handleExited = function handleExited(child, node) {\n var currentChildMapping = (0, _ChildMapping.getChildMapping)(this.props.children);\n if (child.key in currentChildMapping) return;\n\n if (child.props.onExited) {\n child.props.onExited(node);\n }\n\n if (this.mounted) {\n this.setState(function (state) {\n var children = _extends({}, state.children);\n\n delete children[child.key];\n return {\n children: children\n };\n });\n }\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n Component = _this$props.component,\n childFactory = _this$props.childFactory,\n props = _objectWithoutPropertiesLoose(_this$props, [\"component\", \"childFactory\"]);\n\n var children = values(this.state.children).map(childFactory);\n delete props.appear;\n delete props.enter;\n delete props.exit;\n\n if (Component === null) {\n return children;\n }\n\n return _react.default.createElement(Component, props, children);\n };\n\n return TransitionGroup;\n}(_react.default.Component);\n\nTransitionGroup.childContextTypes = {\n transitionGroup: _propTypes.default.object.isRequired\n};\nTransitionGroup.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /**\n * `` renders a `
    ` by default. You can change this\n * behavior by providing a `component` prop.\n * If you use React v16+ and would like to avoid a wrapping `
    ` element\n * you can pass in `component={null}`. This is useful if the wrapping div\n * borks your css styles.\n */\n component: _propTypes.default.any,\n\n /**\n * A set of `` components, that are toggled `in` and out as they\n * leave. the `` will inject specific transition props, so\n * remember to spread them through if you are wrapping the `` as\n * with our `` example.\n *\n * While this component is meant for multiple `Transition` or `CSSTransition`\n * children, sometimes you may want to have a single transition child with\n * content that you want to be transitioned out and in when you change it\n * (e.g. routes, images etc.) In that case you can change the `key` prop of\n * the transition child as you change its content, this will cause\n * `TransitionGroup` to transition the child out and back in.\n */\n children: _propTypes.default.node,\n\n /**\n * A convenience prop that enables or disables appear animations\n * for all children. Note that specifying this will override any defaults set\n * on individual children Transitions.\n */\n appear: _propTypes.default.bool,\n\n /**\n * A convenience prop that enables or disables enter animations\n * for all children. Note that specifying this will override any defaults set\n * on individual children Transitions.\n */\n enter: _propTypes.default.bool,\n\n /**\n * A convenience prop that enables or disables exit animations\n * for all children. Note that specifying this will override any defaults set\n * on individual children Transitions.\n */\n exit: _propTypes.default.bool,\n\n /**\n * You may need to apply reactive updates to a child as it is exiting.\n * This is generally done by using `cloneElement` however in the case of an exiting\n * child the element has already been removed and not accessible to the consumer.\n *\n * If you do need to update a child as it leaves you can provide a `childFactory`\n * to wrap every child, even the ones that are leaving.\n *\n * @type Function(child: ReactElement) -> ReactElement\n */\n childFactory: _propTypes.default.func\n} : {};\nTransitionGroup.defaultProps = defaultProps;\n\nvar _default = (0, _reactLifecyclesCompat.polyfill)(TransitionGroup);\n\nexports.default = _default;\nmodule.exports = exports[\"default\"];\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5)))\n\n/***/ }),\n/* 530 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nvar util = {\n isAppearSupported: function isAppearSupported(props) {\n return props.transitionName && props.transitionAppear || props.animation.appear;\n },\n isEnterSupported: function isEnterSupported(props) {\n return props.transitionName && props.transitionEnter || props.animation.enter;\n },\n isLeaveSupported: function isLeaveSupported(props) {\n return props.transitionName && props.transitionLeave || props.animation.leave;\n },\n allowAppearCallback: function allowAppearCallback(props) {\n return props.transitionAppear || props.animation.appear;\n },\n allowEnterCallback: function allowEnterCallback(props) {\n return props.transitionEnter || props.animation.enter;\n },\n allowLeaveCallback: function allowLeaveCallback(props) {\n return props.transitionLeave || props.animation.leave;\n }\n};\n/* harmony default export */ __webpack_exports__[\"a\"] = (util);\n\n/***/ }),\n/* 531 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(23);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(7);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_prop_types__);\n\n\n\n\n\n\n\nvar LazyRenderBox = function (_Component) {\n __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default()(LazyRenderBox, _Component);\n\n function LazyRenderBox() {\n __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, LazyRenderBox);\n\n return __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(this, _Component.apply(this, arguments));\n }\n\n LazyRenderBox.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {\n return nextProps.hiddenClassName || nextProps.visible;\n };\n\n LazyRenderBox.prototype.render = function render() {\n var _props = this.props,\n hiddenClassName = _props.hiddenClassName,\n visible = _props.visible,\n props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['hiddenClassName', 'visible']);\n\n if (hiddenClassName || __WEBPACK_IMPORTED_MODULE_4_react___default.a.Children.count(props.children) > 1) {\n if (!visible && hiddenClassName) {\n props.className += ' ' + hiddenClassName;\n }\n return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement('div', props);\n }\n\n return __WEBPACK_IMPORTED_MODULE_4_react___default.a.Children.only(props.children);\n };\n\n return LazyRenderBox;\n}(__WEBPACK_IMPORTED_MODULE_4_react__[\"Component\"]);\n\nLazyRenderBox.propTypes = {\n children: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.any,\n className: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string,\n visible: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool,\n hiddenClassName: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string\n};\n\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (LazyRenderBox);\n\n/***/ }),\n/* 532 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (immutable) */ __webpack_exports__[\"a\"] = getAlignFromPlacement;\n/* harmony export (immutable) */ __webpack_exports__[\"b\"] = getAlignPopupClassName;\n/* harmony export (immutable) */ __webpack_exports__[\"c\"] = saveRef;\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(8);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);\n\nfunction isPointsEq(a1, a2, isAlignPoint) {\n if (isAlignPoint) {\n return a1[0] === a2[0];\n }\n return a1[0] === a2[0] && a1[1] === a2[1];\n}\n\nfunction getAlignFromPlacement(builtinPlacements, placementStr, align) {\n var baseAlign = builtinPlacements[placementStr] || {};\n return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, baseAlign, align);\n}\n\nfunction getAlignPopupClassName(builtinPlacements, prefixCls, align, isAlignPoint) {\n var points = align.points;\n for (var placement in builtinPlacements) {\n if (builtinPlacements.hasOwnProperty(placement)) {\n if (isPointsEq(builtinPlacements[placement].points, points, isAlignPoint)) {\n return prefixCls + '-placement-' + placement;\n }\n }\n }\n return '';\n}\n\nfunction saveRef(name, component) {\n this[name] = component;\n}\n\n/***/ }),\n/* 533 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\n\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar __DEV__ = process.env.NODE_ENV !== 'production';\n\nvar warning = function() {};\n\nif (__DEV__) {\n var printWarning = function printWarning(format, args) {\n var len = arguments.length;\n args = new Array(len > 1 ? len - 1 : 0);\n for (var key = 1; key < len; key++) {\n args[key - 1] = arguments[key];\n }\n var argIndex = 0;\n var message = 'Warning: ' +\n format.replace(/%s/g, function() {\n return args[argIndex++];\n });\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n }\n\n warning = function(condition, format, args) {\n var len = arguments.length;\n args = new Array(len > 2 ? len - 2 : 0);\n for (var key = 2; key < len; key++) {\n args[key - 2] = arguments[key];\n }\n if (format === undefined) {\n throw new Error(\n '`warning(condition, format, ...args)` requires a warning ' +\n 'message argument'\n );\n }\n if (!condition) {\n printWarning.apply(null, [format].concat(args));\n }\n };\n}\n\nmodule.exports = warning;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5)))\n\n/***/ }),\n/* 534 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* unused harmony export InternalTreeNode */\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_classnames__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rc_animate_es_CSSMotion__ = __webpack_require__(535);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_util_es_Children_toArray__ = __webpack_require__(119);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react_lifecycles_compat__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__contextTypes__ = __webpack_require__(537);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__util__ = __webpack_require__(208);\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n\n\n // @ts-ignore\n\n\n\n\n\n\nvar ICON_OPEN = 'open';\nvar ICON_CLOSE = 'close';\nvar defaultTitle = '---';\n\nvar TreeNode = /*#__PURE__*/function (_React$Component) {\n _inherits(TreeNode, _React$Component);\n\n var _super = _createSuper(TreeNode);\n\n function TreeNode() {\n var _this;\n\n _classCallCheck(this, TreeNode);\n\n _this = _super.apply(this, arguments);\n _this.state = {\n dragNodeHighlight: false\n };\n\n _this.onSelectorClick = function (e) {\n // Click trigger before select/check operation\n var onNodeClick = _this.props.context.onNodeClick;\n onNodeClick(e, _assertThisInitialized(_this));\n\n if (_this.isSelectable()) {\n _this.onSelect(e);\n } else {\n _this.onCheck(e);\n }\n };\n\n _this.onSelectorDoubleClick = function (e) {\n var onNodeDoubleClick = _this.props.context.onNodeDoubleClick;\n onNodeDoubleClick(e, _assertThisInitialized(_this));\n };\n\n _this.onSelect = function (e) {\n if (_this.isDisabled()) return;\n var onNodeSelect = _this.props.context.onNodeSelect;\n e.preventDefault();\n onNodeSelect(e, _assertThisInitialized(_this));\n };\n\n _this.onCheck = function (e) {\n if (_this.isDisabled()) return;\n var _this$props = _this.props,\n disableCheckbox = _this$props.disableCheckbox,\n checked = _this$props.checked;\n var onNodeCheck = _this.props.context.onNodeCheck;\n if (!_this.isCheckable() || disableCheckbox) return;\n e.preventDefault();\n var targetChecked = !checked;\n onNodeCheck(e, _assertThisInitialized(_this), targetChecked);\n };\n\n _this.onMouseEnter = function (e) {\n var onNodeMouseEnter = _this.props.context.onNodeMouseEnter;\n onNodeMouseEnter(e, _assertThisInitialized(_this));\n };\n\n _this.onMouseLeave = function (e) {\n var onNodeMouseLeave = _this.props.context.onNodeMouseLeave;\n onNodeMouseLeave(e, _assertThisInitialized(_this));\n };\n\n _this.onContextMenu = function (e) {\n var onNodeContextMenu = _this.props.context.onNodeContextMenu;\n onNodeContextMenu(e, _assertThisInitialized(_this));\n };\n\n _this.onDragStart = function (e) {\n var onNodeDragStart = _this.props.context.onNodeDragStart;\n e.stopPropagation();\n\n _this.setState({\n dragNodeHighlight: true\n });\n\n onNodeDragStart(e, _assertThisInitialized(_this));\n\n try {\n // ie throw error\n // firefox-need-it\n e.dataTransfer.setData('text/plain', '');\n } catch (error) {// empty\n }\n };\n\n _this.onDragEnter = function (e) {\n var onNodeDragEnter = _this.props.context.onNodeDragEnter;\n e.preventDefault();\n e.stopPropagation();\n onNodeDragEnter(e, _assertThisInitialized(_this));\n };\n\n _this.onDragOver = function (e) {\n var onNodeDragOver = _this.props.context.onNodeDragOver;\n e.preventDefault();\n e.stopPropagation();\n onNodeDragOver(e, _assertThisInitialized(_this));\n };\n\n _this.onDragLeave = function (e) {\n var onNodeDragLeave = _this.props.context.onNodeDragLeave;\n e.stopPropagation();\n onNodeDragLeave(e, _assertThisInitialized(_this));\n };\n\n _this.onDragEnd = function (e) {\n var onNodeDragEnd = _this.props.context.onNodeDragEnd;\n e.stopPropagation();\n\n _this.setState({\n dragNodeHighlight: false\n });\n\n onNodeDragEnd(e, _assertThisInitialized(_this));\n };\n\n _this.onDrop = function (e) {\n var onNodeDrop = _this.props.context.onNodeDrop;\n e.preventDefault();\n e.stopPropagation();\n\n _this.setState({\n dragNodeHighlight: false\n });\n\n onNodeDrop(e, _assertThisInitialized(_this));\n }; // Disabled item still can be switch\n\n\n _this.onExpand = function (e) {\n var onNodeExpand = _this.props.context.onNodeExpand;\n onNodeExpand(e, _assertThisInitialized(_this));\n }; // Drag usage\n\n\n _this.setSelectHandle = function (node) {\n _this.selectHandle = node;\n };\n\n _this.getNodeChildren = function () {\n var children = _this.props.children;\n var originList = Object(__WEBPACK_IMPORTED_MODULE_4_rc_util_es_Children_toArray__[\"a\" /* default */])(children).filter(function (node) {\n return node;\n });\n var targetList = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"k\" /* getNodeChildren */])(originList);\n\n if (originList.length !== targetList.length) {\n Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"p\" /* warnOnlyTreeNode */])();\n }\n\n return targetList;\n };\n\n _this.getNodeState = function () {\n var expanded = _this.props.expanded;\n\n if (_this.isLeaf()) {\n return null;\n }\n\n return expanded ? ICON_OPEN : ICON_CLOSE;\n };\n\n _this.isLeaf = function () {\n var _this$props2 = _this.props,\n isLeaf = _this$props2.isLeaf,\n loaded = _this$props2.loaded;\n var loadData = _this.props.context.loadData;\n var hasChildren = _this.getNodeChildren().length !== 0;\n\n if (isLeaf === false) {\n return false;\n }\n\n return isLeaf || !loadData && !hasChildren || loadData && loaded && !hasChildren;\n };\n\n _this.isDisabled = function () {\n var disabled = _this.props.disabled;\n var treeDisabled = _this.props.context.disabled; // Follow the logic of Selectable\n\n if (disabled === false) {\n return false;\n }\n\n return !!(treeDisabled || disabled);\n };\n\n _this.isCheckable = function () {\n var checkable = _this.props.checkable;\n var treeCheckable = _this.props.context.checkable; // Return false if tree or treeNode is not checkable\n\n if (!treeCheckable || checkable === false) return false;\n return treeCheckable;\n }; // Load data to avoid default expanded tree without data\n\n\n _this.syncLoadData = function (props) {\n var expanded = props.expanded,\n loading = props.loading,\n loaded = props.loaded;\n var _this$props$context = _this.props.context,\n loadData = _this$props$context.loadData,\n onNodeLoad = _this$props$context.onNodeLoad;\n if (loading) return; // read from state to avoid loadData at same time\n\n if (loadData && expanded && !_this.isLeaf()) {\n // We needn't reload data when has children in sync logic\n // It's only needed in node expanded\n var hasChildren = _this.getNodeChildren().length !== 0;\n\n if (!hasChildren && !loaded) {\n onNodeLoad(_assertThisInitialized(_this));\n }\n }\n }; // Switcher\n\n\n _this.renderSwitcher = function () {\n var _this$props3 = _this.props,\n expanded = _this$props3.expanded,\n switcherIconFromProps = _this$props3.switcherIcon;\n var _this$props$context2 = _this.props.context,\n prefixCls = _this$props$context2.prefixCls,\n switcherIconFromCtx = _this$props$context2.switcherIcon;\n var switcherIcon = switcherIconFromProps || switcherIconFromCtx;\n\n if (_this.isLeaf()) {\n return __WEBPACK_IMPORTED_MODULE_0_react__[\"createElement\"](\"span\", {\n className: __WEBPACK_IMPORTED_MODULE_2_classnames___default()(\"\".concat(prefixCls, \"-switcher\"), \"\".concat(prefixCls, \"-switcher-noop\"))\n }, typeof switcherIcon === 'function' ? switcherIcon(_objectSpread({}, _this.props, {\n isLeaf: true\n })) : switcherIcon);\n }\n\n var switcherCls = __WEBPACK_IMPORTED_MODULE_2_classnames___default()(\"\".concat(prefixCls, \"-switcher\"), \"\".concat(prefixCls, \"-switcher_\").concat(expanded ? ICON_OPEN : ICON_CLOSE));\n return __WEBPACK_IMPORTED_MODULE_0_react__[\"createElement\"](\"span\", {\n onClick: _this.onExpand,\n className: switcherCls\n }, typeof switcherIcon === 'function' ? switcherIcon(_objectSpread({}, _this.props, {\n isLeaf: false\n })) : switcherIcon);\n }; // Checkbox\n\n\n _this.renderCheckbox = function () {\n var _this$props4 = _this.props,\n checked = _this$props4.checked,\n halfChecked = _this$props4.halfChecked,\n disableCheckbox = _this$props4.disableCheckbox;\n var prefixCls = _this.props.context.prefixCls;\n\n var disabled = _this.isDisabled();\n\n var checkable = _this.isCheckable();\n\n if (!checkable) return null; // [Legacy] Custom element should be separate with `checkable` in future\n\n var $custom = typeof checkable !== 'boolean' ? checkable : null;\n return __WEBPACK_IMPORTED_MODULE_0_react__[\"createElement\"](\"span\", {\n className: __WEBPACK_IMPORTED_MODULE_2_classnames___default()(\"\".concat(prefixCls, \"-checkbox\"), checked && \"\".concat(prefixCls, \"-checkbox-checked\"), !checked && halfChecked && \"\".concat(prefixCls, \"-checkbox-indeterminate\"), (disabled || disableCheckbox) && \"\".concat(prefixCls, \"-checkbox-disabled\")),\n onClick: _this.onCheck\n }, $custom);\n };\n\n _this.renderIcon = function () {\n var loading = _this.props.loading;\n var prefixCls = _this.props.context.prefixCls;\n return __WEBPACK_IMPORTED_MODULE_0_react__[\"createElement\"](\"span\", {\n className: __WEBPACK_IMPORTED_MODULE_2_classnames___default()(\"\".concat(prefixCls, \"-iconEle\"), \"\".concat(prefixCls, \"-icon__\").concat(_this.getNodeState() || 'docu'), loading && \"\".concat(prefixCls, \"-icon_loading\"))\n });\n }; // Icon + Title\n\n\n _this.renderSelector = function () {\n var dragNodeHighlight = _this.state.dragNodeHighlight;\n var _this$props5 = _this.props,\n title = _this$props5.title,\n selected = _this$props5.selected,\n icon = _this$props5.icon,\n loading = _this$props5.loading;\n var _this$props$context3 = _this.props.context,\n prefixCls = _this$props$context3.prefixCls,\n showIcon = _this$props$context3.showIcon,\n treeIcon = _this$props$context3.icon,\n draggable = _this$props$context3.draggable,\n loadData = _this$props$context3.loadData;\n\n var disabled = _this.isDisabled();\n\n var wrapClass = \"\".concat(prefixCls, \"-node-content-wrapper\"); // Icon - Still show loading icon when loading without showIcon\n\n var $icon;\n\n if (showIcon) {\n var currentIcon = icon || treeIcon;\n $icon = currentIcon ? __WEBPACK_IMPORTED_MODULE_0_react__[\"createElement\"](\"span\", {\n className: __WEBPACK_IMPORTED_MODULE_2_classnames___default()(\"\".concat(prefixCls, \"-iconEle\"), \"\".concat(prefixCls, \"-icon__customize\"))\n }, typeof currentIcon === 'function' ? currentIcon(_this.props) : currentIcon) : _this.renderIcon();\n } else if (loadData && loading) {\n $icon = _this.renderIcon();\n } // Title\n\n\n var $title = __WEBPACK_IMPORTED_MODULE_0_react__[\"createElement\"](\"span\", {\n className: \"\".concat(prefixCls, \"-title\")\n }, title);\n return __WEBPACK_IMPORTED_MODULE_0_react__[\"createElement\"](\"span\", {\n ref: _this.setSelectHandle,\n title: typeof title === 'string' ? title : '',\n className: __WEBPACK_IMPORTED_MODULE_2_classnames___default()(\"\".concat(wrapClass), \"\".concat(wrapClass, \"-\").concat(_this.getNodeState() || 'normal'), !disabled && (selected || dragNodeHighlight) && \"\".concat(prefixCls, \"-node-selected\"), !disabled && draggable && 'draggable'),\n draggable: !disabled && draggable || undefined,\n \"aria-grabbed\": !disabled && draggable || undefined,\n onMouseEnter: _this.onMouseEnter,\n onMouseLeave: _this.onMouseLeave,\n onContextMenu: _this.onContextMenu,\n onClick: _this.onSelectorClick,\n onDoubleClick: _this.onSelectorDoubleClick,\n onDragStart: draggable ? _this.onDragStart : undefined\n }, $icon, $title);\n }; // Children list wrapped with `Animation`\n\n\n _this.renderChildren = function () {\n var _this$props6 = _this.props,\n expanded = _this$props6.expanded,\n pos = _this$props6.pos;\n var _this$props$context4 = _this.props.context,\n prefixCls = _this$props$context4.prefixCls,\n motion = _this$props$context4.motion,\n renderTreeNode = _this$props$context4.renderTreeNode; // Children TreeNode\n\n var nodeList = _this.getNodeChildren();\n\n if (nodeList.length === 0) {\n return null;\n }\n\n return __WEBPACK_IMPORTED_MODULE_0_react__[\"createElement\"](__WEBPACK_IMPORTED_MODULE_3_rc_animate_es_CSSMotion__[\"b\" /* default */], Object.assign({\n visible: expanded\n }, motion), function (_ref) {\n var style = _ref.style,\n className = _ref.className;\n return __WEBPACK_IMPORTED_MODULE_0_react__[\"createElement\"](\"ul\", {\n className: __WEBPACK_IMPORTED_MODULE_2_classnames___default()(className, \"\".concat(prefixCls, \"-child-tree\"), expanded && \"\".concat(prefixCls, \"-child-tree-open\")),\n style: style,\n \"data-expanded\": expanded,\n role: \"group\"\n }, Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"m\" /* mapChildren */])(nodeList, function (node, index) {\n return renderTreeNode(node, index, pos);\n }));\n });\n };\n\n return _this;\n } // Isomorphic needn't load data in server side\n\n\n _createClass(TreeNode, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n var _this$props7 = this.props,\n eventKey = _this$props7.eventKey,\n registerTreeNode = _this$props7.context.registerTreeNode;\n this.syncLoadData(this.props);\n registerTreeNode(eventKey, this);\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate() {\n this.syncLoadData(this.props);\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n var _this$props8 = this.props,\n eventKey = _this$props8.eventKey,\n registerTreeNode = _this$props8.context.registerTreeNode;\n registerTreeNode(eventKey, null);\n }\n }, {\n key: \"isSelectable\",\n value: function isSelectable() {\n var selectable = this.props.selectable;\n var treeSelectable = this.props.context.selectable; // Ignore when selectable is undefined or null\n\n if (typeof selectable === 'boolean') {\n return selectable;\n }\n\n return treeSelectable;\n }\n }, {\n key: \"render\",\n value: function render() {\n var _classNames;\n\n var loading = this.props.loading;\n\n var _this$props9 = this.props,\n className = _this$props9.className,\n style = _this$props9.style,\n dragOver = _this$props9.dragOver,\n dragOverGapTop = _this$props9.dragOverGapTop,\n dragOverGapBottom = _this$props9.dragOverGapBottom,\n isLeaf = _this$props9.isLeaf,\n expanded = _this$props9.expanded,\n selected = _this$props9.selected,\n checked = _this$props9.checked,\n halfChecked = _this$props9.halfChecked,\n otherProps = _objectWithoutProperties(_this$props9, [\"className\", \"style\", \"dragOver\", \"dragOverGapTop\", \"dragOverGapBottom\", \"isLeaf\", \"expanded\", \"selected\", \"checked\", \"halfChecked\"]);\n\n var _this$props$context5 = this.props.context,\n prefixCls = _this$props$context5.prefixCls,\n filterTreeNode = _this$props$context5.filterTreeNode,\n draggable = _this$props$context5.draggable;\n var disabled = this.isDisabled();\n var dataOrAriaAttributeProps = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"i\" /* getDataAndAria */])(otherProps);\n return __WEBPACK_IMPORTED_MODULE_0_react__[\"createElement\"](\"li\", Object.assign({\n className: __WEBPACK_IMPORTED_MODULE_2_classnames___default()(className, (_classNames = {}, _defineProperty(_classNames, \"\".concat(prefixCls, \"-treenode-disabled\"), disabled), _defineProperty(_classNames, \"\".concat(prefixCls, \"-treenode-switcher-\").concat(expanded ? 'open' : 'close'), !isLeaf), _defineProperty(_classNames, \"\".concat(prefixCls, \"-treenode-checkbox-checked\"), checked), _defineProperty(_classNames, \"\".concat(prefixCls, \"-treenode-checkbox-indeterminate\"), halfChecked), _defineProperty(_classNames, \"\".concat(prefixCls, \"-treenode-selected\"), selected), _defineProperty(_classNames, \"\".concat(prefixCls, \"-treenode-loading\"), loading), _defineProperty(_classNames, 'drag-over', !disabled && dragOver), _defineProperty(_classNames, 'drag-over-gap-top', !disabled && dragOverGapTop), _defineProperty(_classNames, 'drag-over-gap-bottom', !disabled && dragOverGapBottom), _defineProperty(_classNames, 'filter-node', filterTreeNode && filterTreeNode(this)), _classNames)),\n style: style,\n role: \"treeitem\",\n onDragEnter: draggable ? this.onDragEnter : undefined,\n onDragOver: draggable ? this.onDragOver : undefined,\n onDragLeave: draggable ? this.onDragLeave : undefined,\n onDrop: draggable ? this.onDrop : undefined,\n onDragEnd: draggable ? this.onDragEnd : undefined\n }, dataOrAriaAttributeProps), this.renderSwitcher(), this.renderCheckbox(), this.renderSelector(), this.renderChildren());\n }\n }]);\n\n return TreeNode;\n}(__WEBPACK_IMPORTED_MODULE_0_react__[\"Component\"]);\n\nTreeNode.propTypes = {\n eventKey: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,\n prefixCls: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,\n className: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,\n style: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object,\n onSelect: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n // By parent\n expanded: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n selected: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n checked: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n loaded: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n loading: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n halfChecked: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n children: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node,\n title: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node,\n pos: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,\n dragOver: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n dragOverGapTop: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n dragOverGapBottom: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n // By user\n isLeaf: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n checkable: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n selectable: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n disabled: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n disableCheckbox: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n icon: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func]),\n switcherIcon: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func])\n};\nObject(__WEBPACK_IMPORTED_MODULE_5_react_lifecycles_compat__[\"polyfill\"])(TreeNode);\n\nvar ContextTreeNode = function ContextTreeNode(props) {\n return __WEBPACK_IMPORTED_MODULE_0_react__[\"createElement\"](__WEBPACK_IMPORTED_MODULE_6__contextTypes__[\"a\" /* TreeContext */].Consumer, null, function (context) {\n return __WEBPACK_IMPORTED_MODULE_0_react__[\"createElement\"](TreeNode, Object.assign({}, props, {\n context: context\n }));\n });\n};\n\nContextTreeNode.defaultProps = {\n title: defaultTitle\n};\nContextTreeNode.isTreeNode = 1;\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (ContextTreeNode);\n\n/***/ }),\n/* 535 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return MotionPropTypes; });\n/* unused harmony export genCSSMotion */\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(86);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__ = __webpack_require__(8);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(7);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass__ = __webpack_require__(55);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react_lifecycles_compat__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_rc_util_es_Dom_findDOMNode__ = __webpack_require__(488);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_classnames__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_classnames__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_raf__ = __webpack_require__(36);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_raf___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_raf__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__util_motion__ = __webpack_require__(536);\n\n\n\n\n\n\n/* eslint-disable react/default-props-match-prop-types, react/no-multi-comp */\n\n\n\n\n\n\n\n\nvar STATUS_NONE = 'none';\nvar STATUS_APPEAR = 'appear';\nvar STATUS_ENTER = 'enter';\nvar STATUS_LEAVE = 'leave';\n\nvar MotionPropTypes = {\n eventProps: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.object, // Internal usage. Only pass by CSSMotionList\n visible: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool,\n children: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func,\n motionName: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.object]),\n motionAppear: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool,\n motionEnter: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool,\n motionLeave: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool,\n motionLeaveImmediately: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, // Trigger leave motion immediately\n motionDeadline: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number,\n removeOnLeave: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool,\n leavedClassName: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string,\n onAppearStart: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func,\n onAppearActive: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func,\n onAppearEnd: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func,\n onEnterStart: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func,\n onEnterActive: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func,\n onEnterEnd: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func,\n onLeaveStart: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func,\n onLeaveActive: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func,\n onLeaveEnd: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func\n};\n\n/**\n * `transitionSupport` is used for none transition test case.\n * Default we use browser transition event support check.\n */\nfunction genCSSMotion(config) {\n var transitionSupport = config;\n var forwardRef = !!__WEBPACK_IMPORTED_MODULE_6_react___default.a.forwardRef;\n\n if (typeof config === 'object') {\n transitionSupport = config.transitionSupport;\n forwardRef = 'forwardRef' in config ? config.forwardRef : forwardRef;\n }\n\n function isSupportTransition(props) {\n return !!(props.motionName && transitionSupport);\n }\n\n var CSSMotion = function (_React$Component) {\n __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default()(CSSMotion, _React$Component);\n\n function CSSMotion() {\n __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, CSSMotion);\n\n var _this = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default()(this, (CSSMotion.__proto__ || Object.getPrototypeOf(CSSMotion)).call(this));\n\n _this.onDomUpdate = function () {\n var _this$state = _this.state,\n status = _this$state.status,\n newStatus = _this$state.newStatus;\n var _this$props = _this.props,\n onAppearStart = _this$props.onAppearStart,\n onEnterStart = _this$props.onEnterStart,\n onLeaveStart = _this$props.onLeaveStart,\n onAppearActive = _this$props.onAppearActive,\n onEnterActive = _this$props.onEnterActive,\n onLeaveActive = _this$props.onLeaveActive,\n motionAppear = _this$props.motionAppear,\n motionEnter = _this$props.motionEnter,\n motionLeave = _this$props.motionLeave;\n\n\n if (!isSupportTransition(_this.props)) {\n return;\n }\n\n // Event injection\n var $ele = _this.getElement();\n if (_this.$cacheEle !== $ele) {\n _this.removeEventListener(_this.$cacheEle);\n _this.addEventListener($ele);\n _this.$cacheEle = $ele;\n }\n\n // Init status\n if (newStatus && status === STATUS_APPEAR && motionAppear) {\n _this.updateStatus(onAppearStart, null, null, function () {\n _this.updateActiveStatus(onAppearActive, STATUS_APPEAR);\n });\n } else if (newStatus && status === STATUS_ENTER && motionEnter) {\n _this.updateStatus(onEnterStart, null, null, function () {\n _this.updateActiveStatus(onEnterActive, STATUS_ENTER);\n });\n } else if (newStatus && status === STATUS_LEAVE && motionLeave) {\n _this.updateStatus(onLeaveStart, null, null, function () {\n _this.updateActiveStatus(onLeaveActive, STATUS_LEAVE);\n });\n }\n };\n\n _this.onMotionEnd = function (event) {\n var _this$state2 = _this.state,\n status = _this$state2.status,\n statusActive = _this$state2.statusActive;\n var _this$props2 = _this.props,\n onAppearEnd = _this$props2.onAppearEnd,\n onEnterEnd = _this$props2.onEnterEnd,\n onLeaveEnd = _this$props2.onLeaveEnd;\n\n if (status === STATUS_APPEAR && statusActive) {\n _this.updateStatus(onAppearEnd, { status: STATUS_NONE }, event);\n } else if (status === STATUS_ENTER && statusActive) {\n _this.updateStatus(onEnterEnd, { status: STATUS_NONE }, event);\n } else if (status === STATUS_LEAVE && statusActive) {\n _this.updateStatus(onLeaveEnd, { status: STATUS_NONE }, event);\n }\n };\n\n _this.setNodeRef = function (node) {\n var internalRef = _this.props.internalRef;\n\n _this.node = node;\n\n if (typeof internalRef === 'function') {\n internalRef(node);\n } else if (internalRef && 'current' in internalRef) {\n internalRef.current = node;\n }\n };\n\n _this.getElement = function () {\n try {\n return Object(__WEBPACK_IMPORTED_MODULE_9_rc_util_es_Dom_findDOMNode__[\"a\" /* default */])(_this.node || _this);\n } catch (e) {\n /**\n * Fallback to cache element.\n * This is only happen when `motionDeadline` trigger but element removed.\n */\n return _this.$cacheEle;\n }\n };\n\n _this.addEventListener = function ($ele) {\n if (!$ele) return;\n\n $ele.addEventListener(__WEBPACK_IMPORTED_MODULE_12__util_motion__[\"d\" /* transitionEndName */], _this.onMotionEnd);\n $ele.addEventListener(__WEBPACK_IMPORTED_MODULE_12__util_motion__[\"a\" /* animationEndName */], _this.onMotionEnd);\n };\n\n _this.removeEventListener = function ($ele) {\n if (!$ele) return;\n\n $ele.removeEventListener(__WEBPACK_IMPORTED_MODULE_12__util_motion__[\"d\" /* transitionEndName */], _this.onMotionEnd);\n $ele.removeEventListener(__WEBPACK_IMPORTED_MODULE_12__util_motion__[\"a\" /* animationEndName */], _this.onMotionEnd);\n };\n\n _this.updateStatus = function (styleFunc, additionalState, event, callback) {\n var statusStyle = styleFunc ? styleFunc(_this.getElement(), event) : null;\n\n if (statusStyle === false || _this._destroyed) return;\n\n var nextStep = void 0;\n if (callback) {\n nextStep = function nextStep() {\n _this.nextFrame(callback);\n };\n }\n\n _this.setState(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({\n statusStyle: typeof statusStyle === 'object' ? statusStyle : null,\n newStatus: false\n }, additionalState), nextStep); // Trigger before next frame & after `componentDidMount`\n };\n\n _this.updateActiveStatus = function (styleFunc, currentStatus) {\n // `setState` use `postMessage` to trigger at the end of frame.\n // Let's use requestAnimationFrame to update new state in next frame.\n _this.nextFrame(function () {\n var status = _this.state.status;\n\n if (status !== currentStatus) return;\n\n var motionDeadline = _this.props.motionDeadline;\n\n\n _this.updateStatus(styleFunc, { statusActive: true });\n\n if (motionDeadline > 0) {\n setTimeout(function () {\n _this.onMotionEnd({\n deadline: true\n });\n }, motionDeadline);\n }\n });\n };\n\n _this.nextFrame = function (func) {\n _this.cancelNextFrame();\n _this.raf = __WEBPACK_IMPORTED_MODULE_11_raf___default()(func);\n };\n\n _this.cancelNextFrame = function () {\n if (_this.raf) {\n __WEBPACK_IMPORTED_MODULE_11_raf___default.a.cancel(_this.raf);\n _this.raf = null;\n }\n };\n\n _this.state = {\n status: STATUS_NONE,\n statusActive: false,\n newStatus: false,\n statusStyle: null\n };\n _this.$cacheEle = null;\n _this.node = null;\n _this.raf = null;\n return _this;\n }\n\n __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass___default()(CSSMotion, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n this.onDomUpdate();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n this.onDomUpdate();\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n this._destroyed = true;\n this.removeEventListener(this.$cacheEle);\n this.cancelNextFrame();\n }\n }, {\n key: 'render',\n value: function render() {\n var _classNames;\n\n var _state = this.state,\n status = _state.status,\n statusActive = _state.statusActive,\n statusStyle = _state.statusStyle;\n var _props = this.props,\n children = _props.children,\n motionName = _props.motionName,\n visible = _props.visible,\n removeOnLeave = _props.removeOnLeave,\n leavedClassName = _props.leavedClassName,\n eventProps = _props.eventProps;\n\n\n if (!children) return null;\n\n if (status === STATUS_NONE || !isSupportTransition(this.props)) {\n if (visible) {\n return children(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, eventProps), this.setNodeRef);\n } else if (!removeOnLeave) {\n return children(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, eventProps, { className: leavedClassName }), this.setNodeRef);\n }\n\n return null;\n }\n\n return children(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, eventProps, {\n className: __WEBPACK_IMPORTED_MODULE_10_classnames___default()((_classNames = {}, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_classNames, Object(__WEBPACK_IMPORTED_MODULE_12__util_motion__[\"b\" /* getTransitionName */])(motionName, status), status !== STATUS_NONE), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_classNames, Object(__WEBPACK_IMPORTED_MODULE_12__util_motion__[\"b\" /* getTransitionName */])(motionName, status + '-active'), status !== STATUS_NONE && statusActive), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_classNames, motionName, typeof motionName === 'string'), _classNames)),\n style: statusStyle\n }), this.setNodeRef);\n }\n }], [{\n key: 'getDerivedStateFromProps',\n value: function getDerivedStateFromProps(props, _ref) {\n var prevProps = _ref.prevProps,\n prevStatus = _ref.status;\n\n if (!isSupportTransition(props)) return {};\n\n var visible = props.visible,\n motionAppear = props.motionAppear,\n motionEnter = props.motionEnter,\n motionLeave = props.motionLeave,\n motionLeaveImmediately = props.motionLeaveImmediately;\n\n var newState = {\n prevProps: props\n };\n\n // Clean up status if prop set to false\n if (prevStatus === STATUS_APPEAR && !motionAppear || prevStatus === STATUS_ENTER && !motionEnter || prevStatus === STATUS_LEAVE && !motionLeave) {\n newState.status = STATUS_NONE;\n newState.statusActive = false;\n newState.newStatus = false;\n }\n\n // Appear\n if (!prevProps && visible && motionAppear) {\n newState.status = STATUS_APPEAR;\n newState.statusActive = false;\n newState.newStatus = true;\n }\n\n // Enter\n if (prevProps && !prevProps.visible && visible && motionEnter) {\n newState.status = STATUS_ENTER;\n newState.statusActive = false;\n newState.newStatus = true;\n }\n\n // Leave\n if (prevProps && prevProps.visible && !visible && motionLeave || !prevProps && motionLeaveImmediately && !visible && motionLeave) {\n newState.status = STATUS_LEAVE;\n newState.statusActive = false;\n newState.newStatus = true;\n }\n\n return newState;\n }\n }]);\n\n return CSSMotion;\n }(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component);\n\n CSSMotion.propTypes = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, MotionPropTypes, {\n\n internalRef: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.object, __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func])\n });\n CSSMotion.defaultProps = {\n visible: true,\n motionEnter: true,\n motionAppear: true,\n motionLeave: true,\n removeOnLeave: true\n };\n\n\n Object(__WEBPACK_IMPORTED_MODULE_8_react_lifecycles_compat__[\"polyfill\"])(CSSMotion);\n\n if (!forwardRef) {\n return CSSMotion;\n }\n\n return __WEBPACK_IMPORTED_MODULE_6_react___default.a.forwardRef(function (props, ref) {\n return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(CSSMotion, __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({ internalRef: ref }, props));\n });\n}\n\n/* harmony default export */ __webpack_exports__[\"b\"] = (genCSSMotion(__WEBPACK_IMPORTED_MODULE_12__util_motion__[\"c\" /* supportTransition */]));\n\n/***/ }),\n/* 536 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* unused harmony export getVendorPrefixes */\n/* unused harmony export getVendorPrefixedEventName */\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return animationEndName; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"d\", function() { return transitionEndName; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"c\", function() { return supportTransition; });\n/* harmony export (immutable) */ __webpack_exports__[\"b\"] = getTransitionName;\nvar canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);\n\n// ================= Transition =================\n// Event wrapper. Copy from react source code\nfunction makePrefixMap(styleProp, eventName) {\n var prefixes = {};\n\n prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();\n prefixes['Webkit' + styleProp] = 'webkit' + eventName;\n prefixes['Moz' + styleProp] = 'moz' + eventName;\n prefixes['ms' + styleProp] = 'MS' + eventName;\n prefixes['O' + styleProp] = 'o' + eventName.toLowerCase();\n\n return prefixes;\n}\n\nfunction getVendorPrefixes(domSupport, win) {\n var prefixes = {\n animationend: makePrefixMap('Animation', 'AnimationEnd'),\n transitionend: makePrefixMap('Transition', 'TransitionEnd')\n };\n\n if (domSupport) {\n if (!('AnimationEvent' in win)) {\n delete prefixes.animationend.animation;\n }\n\n if (!('TransitionEvent' in win)) {\n delete prefixes.transitionend.transition;\n }\n }\n\n return prefixes;\n}\n\nvar vendorPrefixes = getVendorPrefixes(canUseDOM, typeof window !== 'undefined' ? window : {});\n\nvar style = {};\n\nif (canUseDOM) {\n style = document.createElement('div').style;\n}\n\nvar prefixedEventNames = {};\n\nfunction getVendorPrefixedEventName(eventName) {\n if (prefixedEventNames[eventName]) {\n return prefixedEventNames[eventName];\n }\n\n var prefixMap = vendorPrefixes[eventName];\n\n if (prefixMap) {\n var stylePropList = Object.keys(prefixMap);\n var len = stylePropList.length;\n for (var i = 0; i < len; i += 1) {\n var styleProp = stylePropList[i];\n if (Object.prototype.hasOwnProperty.call(prefixMap, styleProp) && styleProp in style) {\n prefixedEventNames[eventName] = prefixMap[styleProp];\n return prefixedEventNames[eventName];\n }\n }\n }\n\n return '';\n}\n\nvar animationEndName = getVendorPrefixedEventName('animationend');\nvar transitionEndName = getVendorPrefixedEventName('transitionend');\nvar supportTransition = !!(animationEndName && transitionEndName);\n\nfunction getTransitionName(transitionName, transitionType) {\n if (!transitionName) return null;\n\n if (typeof transitionName === 'object') {\n var type = transitionType.replace(/-\\w/g, function (match) {\n return match[1].toUpperCase();\n });\n return transitionName[type];\n }\n\n return transitionName + '-' + transitionType;\n}\n\n/***/ }),\n/* 537 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return TreeContext; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ant_design_create_react_context__ = __webpack_require__(1668);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ant_design_create_react_context___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__ant_design_create_react_context__);\n\nvar TreeContext = __WEBPACK_IMPORTED_MODULE_0__ant_design_create_react_context___default()(null);\n\n/***/ }),\n/* 538 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Tree__ = __webpack_require__(1673);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__TreeNode__ = __webpack_require__(534);\n/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return __WEBPACK_IMPORTED_MODULE_1__TreeNode__[\"a\"]; });\n\n\nvar Tree = __WEBPACK_IMPORTED_MODULE_0__Tree__[\"a\" /* default */];\nTree.TreeNode = __WEBPACK_IMPORTED_MODULE_1__TreeNode__[\"a\" /* default */];\n\n/* harmony default export */ __webpack_exports__[\"b\"] = (Tree);\n\n/***/ }),\n/* 539 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* unused harmony export searchContextTypes */\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_lifecycles_compat__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util__ = __webpack_require__(34);\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (typeof call === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n/**\n * Since search box is in different position with different mode.\n * - Single: in the popup box\n * - multiple: in the selector\n * Move the code as a SearchInput for easy management.\n */\n\n\n\n\nvar searchContextTypes = {\n onSearchInputChange: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired\n};\n\nvar SearchInput =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inherits(SearchInput, _React$Component);\n\n function SearchInput() {\n var _this;\n\n _classCallCheck(this, SearchInput);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(SearchInput).call(this));\n\n _defineProperty(_assertThisInitialized(_this), \"alignInputWidth\", function () {\n _this.inputRef.current.style.width = \"\".concat(_this.mirrorInputRef.current.clientWidth, \"px\");\n });\n\n _defineProperty(_assertThisInitialized(_this), \"focus\", function (isDidMount) {\n if (_this.inputRef.current) {\n _this.inputRef.current.focus();\n\n if (isDidMount) {\n setTimeout(function () {\n _this.inputRef.current.focus();\n }, 0);\n }\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"blur\", function () {\n if (_this.inputRef.current) {\n _this.inputRef.current.blur();\n }\n });\n\n _this.inputRef = Object(__WEBPACK_IMPORTED_MODULE_3__util__[\"g\" /* createRef */])();\n _this.mirrorInputRef = Object(__WEBPACK_IMPORTED_MODULE_3__util__[\"g\" /* createRef */])();\n return _this;\n }\n\n _createClass(SearchInput, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n var _this$props = this.props,\n open = _this$props.open,\n needAlign = _this$props.needAlign;\n\n if (needAlign) {\n this.alignInputWidth();\n }\n\n if (open) {\n this.focus(true);\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n var _this$props2 = this.props,\n open = _this$props2.open,\n searchValue = _this$props2.searchValue,\n needAlign = _this$props2.needAlign;\n\n if (open && prevProps.open !== open) {\n this.focus();\n }\n\n if (needAlign && searchValue !== prevProps.searchValue) {\n this.alignInputWidth();\n }\n }\n /**\n * `scrollWidth` is not correct in IE, do the workaround.\n * ref: https://github.com/react-component/tree-select/issues/65\n */\n\n }, {\n key: \"render\",\n value: function render() {\n var _this$props3 = this.props,\n searchValue = _this$props3.searchValue,\n prefixCls = _this$props3.prefixCls,\n disabled = _this$props3.disabled,\n renderPlaceholder = _this$props3.renderPlaceholder,\n open = _this$props3.open,\n ariaId = _this$props3.ariaId;\n var _this$context$rcTreeS = this.context.rcTreeSelect,\n onSearchInputChange = _this$context$rcTreeS.onSearchInputChange,\n onSearchInputKeyDown = _this$context$rcTreeS.onSearchInputKeyDown;\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\"span\", {\n className: \"\".concat(prefixCls, \"-search__field__wrap\")\n }, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\"input\", {\n type: \"text\",\n ref: this.inputRef,\n onChange: onSearchInputChange,\n onKeyDown: onSearchInputKeyDown,\n value: searchValue,\n disabled: disabled,\n className: \"\".concat(prefixCls, \"-search__field\"),\n \"aria-label\": \"filter select\",\n \"aria-autocomplete\": \"list\",\n \"aria-controls\": open ? ariaId : undefined,\n \"aria-multiline\": \"false\"\n }), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\"span\", {\n ref: this.mirrorInputRef,\n className: \"\".concat(prefixCls, \"-search__field__mirror\")\n }, searchValue, \"\\xA0\"), renderPlaceholder ? renderPlaceholder() : null);\n }\n }]);\n\n return SearchInput;\n}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);\n\n_defineProperty(SearchInput, \"propTypes\", {\n open: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n searchValue: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,\n prefixCls: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,\n disabled: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n renderPlaceholder: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n needAlign: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n ariaId: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string\n});\n\n_defineProperty(SearchInput, \"contextTypes\", {\n rcTreeSelect: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.shape(_objectSpread({}, searchContextTypes))\n});\n\nObject(__WEBPACK_IMPORTED_MODULE_2_react_lifecycles_compat__[\"polyfill\"])(SearchInput);\n/* harmony default export */ __webpack_exports__[\"a\"] = (SearchInput);\n\n/***/ }),\n/* 540 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* unused harmony export genArrProps */\n/* harmony export (immutable) */ __webpack_exports__[\"a\"] = valueProp;\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_prop_types__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util__ = __webpack_require__(34);\n\n\nvar internalValProp = __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number]);\nfunction genArrProps(propType) {\n return __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.oneOfType([propType, __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.arrayOf(propType)]);\n}\n/**\n * Origin code check `multiple` is true when `treeCheckStrictly` & `labelInValue`.\n * But in process logic is already cover to array.\n * Check array is not necessary. Let's simplify this check logic.\n */\n\nfunction valueProp() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var props = args[0],\n propName = args[1],\n Component = args[2];\n\n if (Object(__WEBPACK_IMPORTED_MODULE_1__util__[\"o\" /* isLabelInValue */])(props)) {\n var _err = genArrProps(__WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.shape({\n label: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.node,\n value: internalValProp\n })).apply(void 0, args);\n\n if (_err) {\n return new Error(\"Invalid prop `\".concat(propName, \"` supplied to `\").concat(Component, \"`. \") + \"You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead.\");\n }\n\n return null;\n }\n\n var err = genArrProps(internalValProp).apply(void 0, args);\n\n if (err) {\n return new Error(\"Invalid prop `\".concat(propName, \"` supplied to `\").concat(Component, \"`. \") + \"You should use string or [string] instead.\");\n }\n\n return null;\n}\n\n/***/ }),\n/* 541 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_rc_tree__ = __webpack_require__(538);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__propTypes__ = __webpack_require__(540);\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\n\n\n/**\n * SelectNode wrapped the tree node.\n * Let's use SelectNode instead of TreeNode\n * since TreeNode is so confuse here.\n */\n\nvar SelectNode = function SelectNode(props) {\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1_rc_tree__[\"a\" /* TreeNode */], props);\n};\n\nSelectNode.propTypes = _objectSpread({}, __WEBPACK_IMPORTED_MODULE_1_rc_tree__[\"a\" /* TreeNode */].propTypes, {\n value: __WEBPACK_IMPORTED_MODULE_2__propTypes__[\"a\" /* valueProp */]\n}); // Let Tree trade as TreeNode to reuse this for performance saving.\n\nSelectNode.isTreeNode = 1;\n/* harmony default export */ __webpack_exports__[\"a\"] = (SelectNode);\n\n/***/ }),\n/* 542 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar Button = __webpack_require__(543);\nvar Badge = __webpack_require__(546);\nvar Alert = __webpack_require__(550);\nvar ButtonGroup = __webpack_require__(555);\nvar Label = __webpack_require__(561);\nvar FormControl = __webpack_require__(565);\nvar FormGroup = __webpack_require__(569);\nvar Form = __webpack_require__(573);\nvar Layout = __webpack_require__(677);\nvar InputGroup = __webpack_require__(682);\nvar InputNumber = __webpack_require__(688);\nvar Checkbox = __webpack_require__(727);\nvar Pagination = __webpack_require__(731);\nvar ProgressBar = __webpack_require__(843);\nvar Radio = __webpack_require__(847);\nvar Switch = __webpack_require__(852);\nvar Tooltip = __webpack_require__(856);\nvar Dropdown = __webpack_require__(891);\nvar Panel = __webpack_require__(895);\nvar PanelGroup = __webpack_require__(928);\nvar SearchPanel = __webpack_require__(929);\nvar Transition = __webpack_require__(966);\nvar Navbar = __webpack_require__(984);\nvar Animate = __webpack_require__(997);\nvar Select = __webpack_require__(999);\nvar Tile = __webpack_require__(1001);\nvar Icon = __webpack_require__(1005);\nvar Menu = __webpack_require__(1007);\nvar Upload = __webpack_require__(1033);\nvar Breadcrumb = __webpack_require__(1143);\n\nvar Message = __webpack_require__(1148);\nvar Notification = __webpack_require__(1150);\nvar Popconfirm = __webpack_require__(1172);\nvar Modal = __webpack_require__(1198);\nvar Tabs = __webpack_require__(1200);\nvar Cascader = __webpack_require__(1221);\nvar Loading = __webpack_require__(1252);\nvar Table = __webpack_require__(1256);\nvar Tree = __webpack_require__(1318);\nvar Clipboard = __webpack_require__(1338);\n\nvar Rate = __webpack_require__(1398);\nvar Step = __webpack_require__(1408);\nvar Timeline = __webpack_require__(1414);\nvar Transfer = __webpack_require__(1418);\nvar BackTop = __webpack_require__(1451);\nvar Collapse = __webpack_require__(1455);\n\nvar Slider = __webpack_require__(1474);\nvar AutoComplete = __webpack_require__(1508);\n\nvar LoadingState = __webpack_require__(1514);\nvar Locale = __webpack_require__(1522);\nvar Popover = __webpack_require__(1526);\nvar Anchor = __webpack_require__(1565);\nvar ColorPicker = __webpack_require__(1570);\nvar Tag = __webpack_require__(1631);\nvar Affix = __webpack_require__(1635);\nvar Drawer = __webpack_require__(1640);\nvar TreeSelect = __webpack_require__(1652);\nvar PageLayout = __webpack_require__(1683);\nvar SvgIcon = __webpack_require__(1696);\n// var Carousel = require('./lib/Carousel');\n\nvar TinperBee = {\n version: '2.3.7',\n Slider: Slider,\n AutoComplete: AutoComplete,\n // Carousel:Carousel,\n Button: Button,\n Badge: Badge,\n Alert: Alert,\n ButtonGroup: ButtonGroup,\n Label: Label,\n FormControl: FormControl,\n FormGroup: FormGroup,\n Form: Form,\n InputGroup: InputGroup,\n InputNumber: InputNumber,\n Checkbox: Checkbox,\n Pagination: Pagination,\n ProgressBar: ProgressBar,\n Radio: Radio,\n Switch: Switch,\n Tooltip: Tooltip,\n Con: Layout.Con,\n Row: Layout.Row,\n Col: Layout.Col,\n Dropdown: Dropdown,\n Panel: Panel,\n PanelGroup: PanelGroup,\n Transition: Transition,\n Select: Select,\n Animate: Animate,\n Icon: Icon,\n Menu: Menu,\n Breadcrumb: Breadcrumb,\n Upload: Upload,\n Tile: Tile,\n Navbar: Navbar,\n Message: Message,\n Notification: Notification,\n Popconfirm: Popconfirm,\n Modal: Modal,\n Tabs: Tabs,\n Cascader: Cascader,\n Loading: Loading,\n Table: Table,\n Tree: Tree,\n Clipboard: Clipboard,\n Rate: Rate,\n Step: Step,\n Timeline: Timeline,\n Transfer: Transfer,\n BackTop: BackTop,\n Collapse: Collapse,\n LoadingState: LoadingState,\n Locale: Locale,\n Popover: Popover,\n Anchor: Anchor,\n Tag: Tag,\n ColorPicker: ColorPicker,\n SearchPanel: SearchPanel,\n Affix: Affix,\n Drawer: Drawer,\n TreeSelect: TreeSelect,\n PageLayout: PageLayout,\n SvgIcon: SvgIcon,\n};\n\nmodule.exports = TinperBee;\n\n\n/***/ }),\n/* 543 */\n/***/ (function(module, exports, __webpack_require__) {\n\n__webpack_require__(544);\nmodule.exports = __webpack_require__(213);\n\n\n/***/ }),\n/* 544 */\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n/* 545 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = {\n /**\n * @title 尺寸\n */\n size: _propTypes2[\"default\"].oneOf(['sm', 'md', 'xg', 'lg']),\n /**\n * @title 样式\n */\n style: _propTypes2[\"default\"].object,\n /**\n * @title 形状\n */\n shape: _propTypes2[\"default\"].oneOf(['block', 'round', 'border', 'squared', 'floating', 'pillRight', 'pillLeft', 'icon']),\n\n bordered: _propTypes2[\"default\"].bool,\n /**\n * @title 类型\n */\n colors: _propTypes2[\"default\"].oneOf(['primary', 'secondary', 'accent', 'success', 'info', 'warning', 'danger', 'dark', 'light', 'default']),\n /**\n * @title 是否禁用\n * @veIgnore\n */\n disabled: _propTypes2[\"default\"].bool,\n /**\n * @title 类名\n * @veIgnore\n */\n className: _propTypes2[\"default\"].string,\n\n /**\n * @title
    对象\n * @memberof TableHeader\n */\n\n\n TableHeader.prototype.getThDome = function getThDome(element) {\n var _tagName = element.tagName.toLowerCase();\n if (element.getAttribute('data-filter-type') === 'filterContext') return null;\n if (_tagName === 'i') return null;\n if (_tagName != 'th') {\n return this.getThDome(element.parentElement);\n } else {\n return element;\n }\n };\n\n //---拖拽列交换----end-----\n\n /**\n * 过滤输入后或下拉条件的回调函数\n */\n\n\n /**\n * 过滤行清除回调\n */\n\n\n /**\n * 过滤渲染的组件类型\n */\n\n\n TableHeader.prototype.render = function render() {\n var _this7 = this;\n\n var _props2 = this.props,\n clsPrefix = _props2.clsPrefix,\n rowStyle = _props2.rowStyle,\n draggable = _props2.draggable,\n dragborder = _props2.dragborder,\n rows = _props2.rows,\n filterable = _props2.filterable,\n fixed = _props2.fixed,\n lastShowIndex = _props2.lastShowIndex,\n columnsChildrenList = _props2.columnsChildrenList;\n\n var attr = dragborder ? { id: \"u-table-drag-thead-\" + this.theadKey } : {};\n var lastObj = columnsChildrenList[columnsChildrenList.length - 1];\n return _react2[\"default\"].createElement(\n \"thead\",\n _extends({ className: clsPrefix + \"-thead\" }, attr, { \"data-theader-fixed\": \"scroll\", ref: function ref(_thead) {\n return _this7._thead = _thead;\n } }),\n rows.map(function (row, index) {\n var _rowLeng = row.length - 1;\n return _react2[\"default\"].createElement(\n \"tr\",\n { key: index, style: rowStyle, className: filterable && index == rows.length - 1 ? 'filterable' : '' },\n row.map(function (da, columIndex, arr) {\n da.children = da.required ? _react2[\"default\"].createElement(\n \"span\",\n null,\n _react2[\"default\"].createElement(\n \"span\",\n { className: \"required\" },\n \"*\"\n ),\n da.children\n ) : da.children;\n var thHover = da.drgHover ? \" \" + clsPrefix + \"-thead th-drag-hover\" : \"\";\n delete da.drgHover;\n var fixedStyle = \"\";\n var canDotDrag = \"\";\n //主表格下、固定列或者是过滤行中含有固定列时添加该属性\n if (!fixed && (da.fixed || filterable && index == rows.length - 1 && rows[0][columIndex].fixed)) {\n fixedStyle = \" \" + clsPrefix + \"-row-fixed-columns-in-body\";\n }\n\n if (lastShowIndex == columIndex) {\n canDotDrag = \"th-can-not-drag\";\n }\n var thClassName = \"\" + da.className ? \"\" + da.className : '';\n if (da.titleAlign) {\n thClassName += \" text-\" + da.titleAlign + \" \";\n } else if (da.textAlign) {\n thClassName += \" text-\" + da.textAlign + \" \";\n }\n\n delete da.textAlign;\n delete da.titleAlign;\n var keyTemp = {};\n //避免key为undefined\n // if(da.dataindex && da.key ===undefined ){\n keyTemp.key = da.key || da.dataindex || index + '-' + columIndex;\n\n // }\n if (filterable && index == rows.length - 1) {\n da.children = _this7.filterRenderType(da[\"filtertype\"], da.dataindex, columIndex);\n if (da.key === undefined) {\n keyTemp.key = keyTemp.key + '-filterable';\n }\n delete da.filterdropdownfocus;\n }\n\n var thDefaultObj = {};\n\n if (draggable) {\n thClassName += \" \" + clsPrefix + \"-thead th-drag \" + thHover + \" \";\n }\n if (dragborder) {\n thClassName += \" \" + clsPrefix + \"-thead-th \" + canDotDrag;\n }\n thClassName += \" \" + fixedStyle;\n if (!da.fixed) {\n return _react2[\"default\"].createElement(\n \"th\",\n _extends({}, da, keyTemp, { className: thClassName, \"data-th-fixed\": da.fixed, \"data-line-key\": da.key,\n \"data-line-index\": columIndex, \"data-th-width\": da.width, \"data-type\": \"draggable\" }),\n da.children,\n\n // && columIndex != _rowLeng\n dragborder && lastObj && da.key != lastObj.key ? _react2[\"default\"].createElement(\n \"div\",\n { ref: function ref(el) {\n return _this7.gap = el;\n }, \"data-line-key\": da.key,\n \"data-line-index\": columIndex, \"data-th-width\": da.width,\n \"data-type\": \"online\", className: clsPrefix + \"-thead-th-drag-gap\" },\n _react2[\"default\"].createElement(\"div\", { className: \"online\" })\n ) : \"\"\n );\n } else {\n thDefaultObj = _extends({}, da, {\n className: thClassName + \" \" + fixedStyle\n });\n da.onClick ? thDefaultObj.onClick = function (e) {\n da.onClick(da, e);\n } : \"\";\n return _react2[\"default\"].createElement(\"th\", _extends({}, thDefaultObj, keyTemp, { \"data-th-fixed\": da.fixed, style: { maxWidth: da.width } }));\n }\n })\n );\n })\n );\n };\n\n return TableHeader;\n}(_react.Component);\n\nTableHeader.defaultProps = {\n contentWidthDiff: 0\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this8 = this;\n\n this.getOnLineObject = function (_element) {\n var type = _element.getAttribute('data-type'),\n elementObj = null;\n if (!type) {\n var element = _element.parentElement || parentNode; //兼容写法。\n if (element.getAttribute('data-type')) {\n elementObj = element;\n }\n } else {\n elementObj = _element;\n }\n return elementObj;\n };\n\n this.onTrMouseDown = function (e) {\n _utils.Event.stopPropagation(e);\n var event = _utils.Event.getEvent(e),\n targetEvent = _utils.Event.getTarget(event);\n var _props3 = _this8.props,\n clsPrefix = _props3.clsPrefix,\n contentTable = _props3.contentTable,\n lastShowIndex = _props3.lastShowIndex,\n columnsChildrenList = _props3.columnsChildrenList;\n // let currentElement = this.getOnLineObject(targetEvent);\n\n var currentElement = _this8.getTargetToType(targetEvent);\n if (!currentElement) return;\n var type = currentElement.getAttribute('data-type');\n if (!_this8.props.dragborder && !_this8.props.draggable) return;\n if (type == 'online' && _this8.props.dragborder) {\n // if(!this.props.dragborder)return;\n targetEvent.setAttribute('draggable', false); //添加交换列效果\n var currentIndex = -1;\n var defaultWidth = currentElement.getAttribute(\"data-th-width\");\n _this8.drag.option = \"border\"; //拖拽操作\n if (columnsChildrenList) {\n var columnKey = currentElement.getAttribute(\"data-line-key\");\n if (columnKey) {\n currentIndex = columnsChildrenList.findIndex(function (da) {\n return (da.key && da.key.toLowerCase()) === columnKey.toLowerCase();\n });\n }\n }\n if (currentIndex < 0) {\n console.log('Key must be set for column!');\n return;\n }\n var currentObj = _this8.table.cols[currentIndex];\n _this8.drag.currIndex = currentIndex;\n _this8.drag.oldLeft = event.x;\n _this8.drag.oldWidth = parseInt(currentObj.style.width);\n _this8.drag.minWidth = currentObj.style.minWidth != \"\" ? parseInt(currentObj.style.minWidth) : defaultWidth;\n _this8.drag.tableWidth = parseInt(_this8.table.table.style.width ? _this8.table.table.style.width : _this8.table.table.scrollWidth);\n if (!_this8.tableOldWidth) {\n _this8.tableOldWidth = _this8.drag.tableWidth; //this.getTableWidth();\n }\n if (!_this8.lastColumWidth) {\n _this8.lastColumWidth = parseInt(_this8.table.cols[lastShowIndex].style.width);\n }\n } else if (type != 'online' && _this8.props.draggable) {\n // if (!this.props.draggable || targetEvent.nodeName.toUpperCase() != \"TH\") return;\n if (!_this8.props.draggable) return;\n var th = _this8.getTargetToType(targetEvent);\n th.setAttribute('draggable', true); //添加交换列效果\n _this8.drag.option = 'dragAble';\n _this8.currentDome = th;\n var _currentIndex = parseInt(th.getAttribute(\"data-line-index\"));\n _this8.drag.currIndex = _currentIndex;\n } else {\n // console.log(\"onTrMouseDown dragborder or draggable is all false !\");\n return;\n }\n };\n\n this.getTableWidth = function () {\n var tableWidth = 0,\n offWidth = 0; //this.table.cols.length;\n for (var index = 0; index < _this8.table.cols.length; index++) {\n var da = _this8.table.cols[index];\n tableWidth += parseInt(da.style.width);\n }\n return tableWidth - offWidth;\n };\n\n this.getTargetToType = function (targetEvent) {\n var tag = targetEvent;\n if (targetEvent && !targetEvent.getAttribute(\"data-type\")) {\n tag = _this8.getTargetToType(targetEvent.parentElement);\n }\n return tag;\n };\n\n this.getTargetToTh = function (targetEvent) {\n var th = targetEvent;\n if (targetEvent.nodeName.toUpperCase() != \"TH\") {\n th = _this8.getThDome(targetEvent);\n }\n // console.log(\" getTargetToTh: \", th);\n return th;\n };\n\n this.onTrMouseMove = function (e) {\n if (!_this8.props.dragborder && !_this8.props.draggable) return;\n var _props4 = _this8.props,\n clsPrefix = _props4.clsPrefix,\n dragborder = _props4.dragborder,\n contentDomWidth = _props4.contentDomWidth,\n scrollbarWidth = _props4.scrollbarWidth,\n contentTable = _props4.contentTable,\n headerScroll = _props4.headerScroll,\n lastShowIndex = _props4.lastShowIndex,\n onDraggingBorder = _props4.onDraggingBorder,\n leftFixedWidth = _props4.leftFixedWidth,\n rightFixedWidth = _props4.rightFixedWidth;\n\n _utils.Event.stopPropagation(e);\n var event = _utils.Event.getEvent(e);\n if (_this8.props.dragborder && _this8.drag.option == \"border\") {\n //移动改变宽度\n var currentCols = _this8.table.cols[_this8.drag.currIndex];\n var diff = event.x - _this8.drag.oldLeft;\n var newWidth = _this8.drag.oldWidth + diff;\n _this8.drag.newWidth = newWidth > 0 ? newWidth : _this8.minWidth;\n if (newWidth > _this8.minWidth) {\n currentCols.style.width = newWidth + 'px';\n //hao 支持固定表头拖拽 修改表体的width\n if (_this8.fixedTable.cols) {\n _this8.fixedTable.cols[_this8.drag.currIndex].style.width = newWidth + \"px\";\n }\n\n var newDiff = parseInt(currentCols.style.minWidth) - parseInt(currentCols.style.width);\n if (newDiff > 0) {\n //缩小\n var lastWidth = _this8.lastColumWidth + newDiff;\n _this8.table.cols[lastShowIndex].style.width = lastWidth + \"px\"; //同步表头\n _this8.table.tableBodyCols[lastShowIndex].style.width = lastWidth + \"px\"; //同步表体\n }\n var showScroll = contentDomWidth - (leftFixedWidth + rightFixedWidth) - (_this8.drag.tableWidth + diff) - scrollbarWidth;\n //表头滚动条处理\n if (headerScroll) {\n if (showScroll < 0) {\n //小于 0 出现滚动条\n //找到固定列表格,设置表头的marginBottom值为scrollbarWidth;\n _this8.table.contentTableHeader.style.overflowX = 'scroll';\n _this8.optTableMargin(_this8.table.fixedLeftHeaderTable, scrollbarWidth);\n _this8.optTableMargin(_this8.table.fixedRighHeadertTable, scrollbarWidth);\n } else {\n //大于 0 不显示滚动条\n _this8.table.contentTableHeader.style.overflowX = 'hidden';\n _this8.optTableMargin(_this8.table.fixedLeftHeaderTable, 0);\n _this8.optTableMargin(_this8.table.fixedRighHeadertTable, 0);\n }\n } else {\n if (showScroll < 0) {\n _this8.table.tableBody.style.overflowX = 'auto';\n _this8.optTableMargin(_this8.table.fixedLeftBodyTable, '-' + scrollbarWidth);\n _this8.optTableMargin(_this8.table.fixedRightBodyTable, '-' + scrollbarWidth);\n _this8.optTableScroll(_this8.table.fixedLeftBodyTable, { x: 'scroll' });\n _this8.optTableScroll(_this8.table.fixedRightBodyTable, { x: 'scroll' });\n } else {\n _this8.table.tableBody.style.overflowX = 'hidden';\n _this8.optTableMargin(_this8.table.fixedLeftBodyTable, 0);\n _this8.optTableMargin(_this8.table.fixedRightBodyTable, 0);\n _this8.optTableScroll(_this8.table.fixedLeftBodyTable, { x: 'auto' });\n _this8.optTableScroll(_this8.table.fixedRightBodyTable, { x: 'auto' });\n }\n }\n } else {\n _this8.drag.newWidth = _this8.minWidth;\n }\n }\n // 增加拖拽列宽动作的回调函数\n _this8.drag.newWidth && onDraggingBorder && onDraggingBorder(event, _this8.drag.newWidth);\n };\n\n this.onTrMouseUp = function (e) {\n var event = _utils.Event.getEvent(e);\n var width = _this8.drag.newWidth;\n var opt = _this8.drag.option;\n _this8.mouseClear();\n if (opt !== \"border\") return; // fix:点击表头会触发onDropBorder事件的问题\n _this8.props.onDropBorder && _this8.props.onDropBorder(event, width);\n };\n\n this.clearThsDr = function () {\n var ths = _this8.table.ths;\n for (var index = 0; index < ths.length; index++) {\n ths[index].setAttribute('draggable', false); //去掉交换列效果\n }\n };\n\n this.bodyonLineMouseUp = function (events, type) {\n if (!_this8.drag || !_this8.drag.option) return;\n _this8.mouseClear();\n };\n\n this.optTableMargin = function (table, scrollbarWidth) {\n if (table) {\n table.style.marginBottom = scrollbarWidth + \"px\";\n }\n };\n\n this.optTableScroll = function (table) {\n var overflow = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n if (table) {\n var innerTable = table.querySelector('.u-table-body-inner');\n if (innerTable) {\n //fixbug: 拖拽列宽后,滚动条滚到表格底部,会导致固定列和非固定列错行\n overflow.x && (innerTable.style.overflowX = overflow.x);\n overflow.y && (innerTable.style.overflowY = overflow.y);\n }\n }\n };\n\n this.onDragStart = function (e) {\n if (!_this8.props.draggable) return;\n if (_this8.drag && _this8.drag.option != 'dragAble') {\n return;\n }\n var event = _utils.Event.getEvent(e),\n\n // target = Event.getTarget(event);\n target = _this8.getTargetToTh(_utils.Event.getTarget(event));\n var currentIndex = parseInt(target.getAttribute(\"data-line-index\"));\n var currentKey = target.getAttribute('data-line-key');\n\n if (event.dataTransfer.setDragImage) {\n var crt = target.cloneNode(true);\n crt.style.backgroundColor = \"#ebecf0\";\n crt.style.width = _this8.table.cols[currentIndex].style.width; //拖动后再交换列的时候,阴影效果可同步\n crt.style.height = \"40px\";\n // crt.style['line-height'] = \"40px\";\n // document.body.appendChild(crt);\n document.getElementById(_this8._table_none_cont_id).appendChild(crt);\n event.dataTransfer.setDragImage(crt, 0, 0);\n }\n\n event.dataTransfer.effectAllowed = \"move\";\n event.dataTransfer.setData(\"Text\", currentKey);\n _this8.currentObj = _this8.props.rows[0][currentIndex];\n };\n\n this.onDragOver = function (e) {\n var event = _utils.Event.getEvent(e);\n event.preventDefault();\n };\n\n this.onDrop = function (e) {\n if (!_this8.props.draggable) return;\n var props = _this8.getCurrentEventData(_this8._dragCurrent);\n e.column = { props: props };\n if (_this8.drag && _this8.drag.option != 'dragAble') {\n _this8.props.onDrop(e);\n return;\n }\n var event = _utils.Event.getEvent(e),\n target = _utils.Event.getTarget(event);\n _this8.currentDome.setAttribute('draggable', false); //添加交换列效果\n // let data = this.getCurrentEventData(this._dragCurrent);\n // if(!data){\n // this.props.onDrop(e);\n // return;\n // }\n if (!_this8.props.onDrop) return;\n // this.props.onDrop(event,target);\n _this8.props.onDrop(event, { dragSource: _this8.currentObj, dragTarg: e.column });\n };\n\n this.onDragEnter = function (e) {\n var event = _utils.Event.getEvent(e),\n target = _utils.Event.getTarget(event);\n _this8._dragCurrent = target;\n var currentIndex = target.getAttribute(\"data-line-index\");\n if (!currentIndex || parseInt(currentIndex) === _this8.drag.currIndex) return;\n if (target.nodeName.toUpperCase() === \"TH\") {\n // target.style.border = \"2px dashed rgba(5,0,0,0.25)\";\n target.setAttribute(\"style\", \"border-right:2px dashed rgb(30, 136, 229)\");\n // target.style.backgroundColor = 'rgb(235, 236, 240)';\n }\n };\n\n this.onDragEnd = function (e) {\n var event = _utils.Event.getEvent(e),\n target = _utils.Event.getTarget(event);\n _this8._dragCurrent.setAttribute(\"style\", \"\");\n // this._dragCurrent.style = \"\";\n document.getElementById(_this8._table_none_cont_id).innerHTML = \"\";\n\n var data = _this8.getCurrentEventData(_this8._dragCurrent);\n if (!data) return;\n if (!_this8.currentObj || _this8.currentObj.key == data.key) return;\n if (!_this8.props.onDragEnd) return;\n _this8.props.onDragEnd(event, { dragSource: _this8.currentObj, dragTarg: data });\n };\n\n this.onDragLeave = function (e) {\n var event = _utils.Event.getEvent(e),\n target = _utils.Event.getTarget(event);\n var currentIndex = target.getAttribute(\"data-line-index\");\n if (!currentIndex || parseInt(currentIndex) === _this8.drag.currIndex) return;\n if (target.nodeName.toUpperCase() === \"TH\") {\n target.setAttribute(\"style\", \"\");\n // this._dragCurrent.style = \"\";\n }\n };\n\n this.handlerFilterChange = function (key, value, condition) {\n var onFilterChange = _this8.props.onFilterChange;\n\n if (onFilterChange) {\n onFilterChange(key, value, condition);\n }\n };\n\n this.handlerFilterClear = function (field) {\n var onFilterClear = _this8.props.onFilterClear;\n\n if (onFilterClear) {\n onFilterClear(field);\n }\n };\n\n this.filterRenderType = function (type, dataIndex, index) {\n var _props5 = _this8.props,\n clsPrefix = _props5.clsPrefix,\n rows = _props5.rows,\n filterDelay = _props5.filterDelay,\n locale = _props5.locale;\n\n switch (type) {\n //文本输入\n case \"text\":\n return _react2[\"default\"].createElement(_FilterType2[\"default\"], {\n locale: locale //多语\n , rendertype: type //渲染类型\n , clsPrefix: clsPrefix //css前缀\n , className: clsPrefix + \" filter-text\",\n dataIndex: dataIndex //字段\n , onFilterChange: _this8.handlerFilterChange //输入框回调\n , onFilterClear: _this8.handlerFilterClear //清除回调\n , filterDropdown: rows[1][index][\"filterdropdown\"] //是否显示下拉条件\n , filterDropdownType: rows[1][index][\"filterdropdowntype\"] //下拉的条件类型为string,number\n , filterDropdownIncludeKeys: rows[1][index][\"filterdropdownincludekeys\"] //下拉条件按照指定的keys去显示\n });\n //数值输入\n case \"number\":\n return _react2[\"default\"].createElement(_FilterType2[\"default\"], {\n locale: locale,\n rendertype: type,\n clsPrefix: clsPrefix,\n className: clsPrefix + \" filter-text\",\n dataIndex: dataIndex //字段\n , onFilterChange: (0, _throttleDebounce.debounce)(filterDelay || 300, _this8.handlerFilterChange) //输入框回调并且函数防抖动\n , onFilterClear: _this8.handlerFilterClear //清除回调\n , filterDropdown: rows[1][index][\"filterdropdown\"],\n filterDropdownType: rows[1][index][\"filterdropdowntype\"] //下拉的条件类型为string,number\n , filterDropdownIncludeKeys: rows[1][index][\"filterdropdownincludekeys\"] //下拉条件按照指定的keys去显示\n , filterInputNumberOptions: rows[1][index][\"filterinputnumberoptions\"] //设置数值框内的详细属性\n });\n //下拉框选择\n case \"dropdown\":\n var selectDataSource = [];\n //处理没有输入数据源的时候,系统自动查找自带的数据筛选后注入\n if (rows.length > 0 && (rows[1][index][\"filterdropdownauto\"] || \"auto\") == \"auto\") {\n var hash = {};\n //处理下拉重复对象组装dropdown\n selectDataSource = Array.from(rows[1][0].datasource, function (x) {\n return {\n key: x[dataIndex],\n value: x[dataIndex]\n };\n });\n selectDataSource = selectDataSource.reduceRight(function (item, next) {\n hash[next.key] ? \"\" : hash[next.key] = true && item.push(next);\n return item;\n }, []);\n } else {\n //从外部数据源加载系统数据\n selectDataSource = rows[1][index][\"filterdropdowndata\"];\n }\n return _react2[\"default\"].createElement(_FilterType2[\"default\"], {\n locale: locale,\n rendertype: type,\n className: clsPrefix + \" filter-dropdown\",\n data: selectDataSource,\n notFoundContent: \"Loading\" //没有数据显示的默认字\n , dataIndex: dataIndex //字段\n , onFilterChange: _this8.handlerFilterChange //输入框回调\n , onFilterClear: _this8.handlerFilterClear //清除回调\n , filterDropdown: rows[1][index][\"filterdropdown\"],\n onFocus: rows[1][index][\"filterdropdownfocus\"],\n filterDropdownType: rows[1][index][\"filterdropdowntype\"] //下拉的条件类型为string,number\n , filterDropdownIncludeKeys: rows[1][index][\"filterdropdownincludekeys\"] //下拉条件按照指定的keys去显示\n });\n //日期\n case \"date\":\n return _react2[\"default\"].createElement(_FilterType2[\"default\"], {\n locale: locale,\n rendertype: type,\n className: \"filter-date\",\n onClick: function onClick() {},\n format: rows[1][index][\"format\"] || \"YYYY-MM-DD\",\n dataIndex: dataIndex //字段\n , onFilterChange: _this8.handlerFilterChange //输入框回调\n , onFilterClear: _this8.handlerFilterClear //清除回调\n , filterDropdown: rows[1][index][\"filterdropdown\"],\n filterDropdownType: rows[1][index][\"filterdropdowntype\"] //下拉的条件类型为string,number\n , filterDropdownIncludeKeys: rows[1][index][\"filterdropdownincludekeys\"] //下拉条件按照指定的keys去显示\n });\n //日期 年\n case \"dateyear\":\n return _react2[\"default\"].createElement(_FilterType2[\"default\"], {\n locale: locale,\n rendertype: type,\n className: \"filter-date\",\n onClick: function onClick() {},\n format: rows[1][index][\"format\"] || \"YYYY\",\n dataIndex: dataIndex //字段\n , onFilterChange: _this8.handlerFilterChange //输入框回调\n , onFilterClear: _this8.handlerFilterClear //清除回调\n , filterDropdown: rows[1][index][\"filterdropdown\"],\n filterDropdownType: rows[1][index][\"filterdropdowntype\"] //下拉的条件类型为string,number\n , filterDropdownIncludeKeys: rows[1][index][\"filterdropdownincludekeys\"] //下拉条件按照指定的keys去显示\n });\n //日期 月\n case \"datemonth\":\n return _react2[\"default\"].createElement(_FilterType2[\"default\"], {\n locale: locale,\n rendertype: type,\n className: \"filter-date\",\n onClick: function onClick() {},\n format: rows[1][index][\"format\"] || \"YYYY-MM\",\n dataIndex: dataIndex //字段\n , onFilterChange: _this8.handlerFilterChange //输入框回调\n , onFilterClear: _this8.handlerFilterClear //清除回调\n , filterDropdown: rows[1][index][\"filterdropdown\"],\n filterDropdownType: rows[1][index][\"filterdropdowntype\"] //下拉的条件类型为string,number\n , filterDropdownIncludeKeys: rows[1][index][\"filterdropdownincludekeys\"] //下拉条件按照指定的keys去显示\n });\n //日期 周\n case \"dateweek\":\n return _react2[\"default\"].createElement(_FilterType2[\"default\"], {\n locale: locale,\n rendertype: type,\n className: \"filter-date\",\n onClick: function onClick() {},\n format: rows[1][index][\"format\"] || \"YYYY-Wo\",\n dataIndex: dataIndex //字段\n , onFilterChange: _this8.handlerFilterChange //输入框回调\n , onFilterClear: _this8.handlerFilterClear //清除回调\n , filterDropdown: rows[1][index][\"filterdropdown\"],\n filterDropdownType: rows[1][index][\"filterdropdowntype\"] //下拉的条件类型为string,number\n , filterDropdownIncludeKeys: rows[1][index][\"filterdropdownincludekeys\"] //下拉条件按照指定的keys去显示\n });\n //日期范围\n case \"daterange\":\n return _react2[\"default\"].createElement(_FilterType2[\"default\"], {\n locale: locale,\n rendertype: type,\n className: \"filter-date\",\n onClick: function onClick() {},\n format: rows[1][index][\"format\"] || \"YYYY-MM-DD\",\n dataIndex: dataIndex //字段\n , onFilterChange: _this8.handlerFilterChange //输入框回调\n , onFilterClear: _this8.handlerFilterClear //清除回调\n , filterDropdown: rows[1][index][\"filterdropdown\"],\n filterDropdownType: rows[1][index][\"filterdropdowntype\"] //下拉的条件类型为string,number\n , filterDropdownIncludeKeys: rows[1][index][\"filterdropdownincludekeys\"] //下拉条件按照指定的keys去显示\n });\n default:\n //不匹配类型默认文本输入\n return _react2[\"default\"].createElement(\"div\", null);\n }\n };\n};\n\nTableHeader.propTypes = propTypes;\nexports[\"default\"] = TableHeader;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 1266 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"throttle\", function() { return throttle; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"debounce\", function() { return debounce; });\n/* eslint-disable no-undefined,no-param-reassign,no-shadow */\n\n/**\n * Throttle execution of a function. Especially useful for rate limiting\n * execution of handlers on events like resize and scroll.\n *\n * @param {Number} delay A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.\n * @param {Boolean} [noTrailing] Optional, defaults to false. If noTrailing is true, callback will only execute every `delay` milliseconds while the\n * throttled-function is being called. If noTrailing is false or unspecified, callback will be executed one final time\n * after the last throttled-function call. (After the throttled-function has not been called for `delay` milliseconds,\n * the internal counter is reset)\n * @param {Function} callback A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,\n * to `callback` when the throttled-function is executed.\n * @param {Boolean} [debounceMode] If `debounceMode` is true (at begin), schedule `clear` to execute after `delay` ms. If `debounceMode` is false (at end),\n * schedule `callback` to execute after `delay` ms.\n *\n * @return {Function} A new, throttled, function.\n */\nfunction throttle (delay, noTrailing, callback, debounceMode) {\n /*\n * After wrapper has stopped being called, this timeout ensures that\n * `callback` is executed at the proper times in `throttle` and `end`\n * debounce modes.\n */\n var timeoutID;\n var cancelled = false; // Keep track of the last time `callback` was executed.\n\n var lastExec = 0; // Function to clear existing timeout\n\n function clearExistingTimeout() {\n if (timeoutID) {\n clearTimeout(timeoutID);\n }\n } // Function to cancel next exec\n\n\n function cancel() {\n clearExistingTimeout();\n cancelled = true;\n } // `noTrailing` defaults to falsy.\n\n\n if (typeof noTrailing !== 'boolean') {\n debounceMode = callback;\n callback = noTrailing;\n noTrailing = undefined;\n }\n /*\n * The `wrapper` function encapsulates all of the throttling / debouncing\n * functionality and when executed will limit the rate at which `callback`\n * is executed.\n */\n\n\n function wrapper() {\n var self = this;\n var elapsed = Date.now() - lastExec;\n var args = arguments;\n\n if (cancelled) {\n return;\n } // Execute `callback` and update the `lastExec` timestamp.\n\n\n function exec() {\n lastExec = Date.now();\n callback.apply(self, args);\n }\n /*\n * If `debounceMode` is true (at begin) this is used to clear the flag\n * to allow future `callback` executions.\n */\n\n\n function clear() {\n timeoutID = undefined;\n }\n\n if (debounceMode && !timeoutID) {\n /*\n * Since `wrapper` is being called for the first time and\n * `debounceMode` is true (at begin), execute `callback`.\n */\n exec();\n }\n\n clearExistingTimeout();\n\n if (debounceMode === undefined && elapsed > delay) {\n /*\n * In throttle mode, if `delay` time has been exceeded, execute\n * `callback`.\n */\n exec();\n } else if (noTrailing !== true) {\n /*\n * In trailing throttle mode, since `delay` time has not been\n * exceeded, schedule `callback` to execute `delay` ms after most\n * recent execution.\n *\n * If `debounceMode` is true (at begin), schedule `clear` to execute\n * after `delay` ms.\n *\n * If `debounceMode` is false (at end), schedule `callback` to\n * execute after `delay` ms.\n */\n timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n }\n }\n\n wrapper.cancel = cancel; // Return the wrapper function.\n\n return wrapper;\n}\n\n/* eslint-disable no-undefined */\n/**\n * Debounce execution of a function. Debouncing, unlike throttling,\n * guarantees that a function is only executed a single time, either at the\n * very beginning of a series of calls, or at the very end.\n *\n * @param {Number} delay A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.\n * @param {Boolean} [atBegin] Optional, defaults to false. If atBegin is false or unspecified, callback will only be executed `delay` milliseconds\n * after the last debounced-function call. If atBegin is true, callback will be executed only at the first debounced-function call.\n * (After the throttled-function has not been called for `delay` milliseconds, the internal counter is reset).\n * @param {Function} callback A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,\n * to `callback` when the debounced-function is executed.\n *\n * @return {Function} A new, debounced function.\n */\n\nfunction debounce (delay, atBegin, callback) {\n return callback === undefined ? throttle(delay, atBegin, false) : throttle(delay, callback, atBegin !== false);\n}\n\n\n\n\n/***/ }),\n/* 1267 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _beeDatepicker = __webpack_require__(1268);\n\nvar _beeDatepicker2 = _interopRequireDefault(_beeDatepicker);\n\nvar _zh_CN = __webpack_require__(63);\n\nvar _zh_CN2 = _interopRequireDefault(_zh_CN);\n\nvar _beeFormControl = __webpack_require__(1307);\n\nvar _beeFormControl2 = _interopRequireDefault(_beeFormControl);\n\nvar _beeSelect = __webpack_require__(137);\n\nvar _beeSelect2 = _interopRequireDefault(_beeSelect);\n\nvar _beeInputNumber = __webpack_require__(237);\n\nvar _beeInputNumber2 = _interopRequireDefault(_beeInputNumber);\n\nvar _FilterDropDown = __webpack_require__(1310);\n\nvar _FilterDropDown2 = _interopRequireDefault(_FilterDropDown);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar RangePicker = _beeDatepicker2[\"default\"].RangePicker,\n YearPicker = _beeDatepicker2[\"default\"].YearPicker,\n MonthPicker = _beeDatepicker2[\"default\"].MonthPicker,\n WeekPicker = _beeDatepicker2[\"default\"].WeekPicker;\n\n\nvar propTypes = {\n filterDropdown: _propTypes2[\"default\"].string\n};\n\nvar FilterType = function (_Component) {\n _inherits(FilterType, _Component);\n\n function FilterType(props) {\n _classCallCheck(this, FilterType);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props));\n\n _this.clearFilter = function () {\n var _this$props = _this.props,\n onFilterClear = _this$props.onFilterClear,\n dataIndex = _this$props.dataIndex;\n\n if (_this.state.value !== \"\") {\n _this.setState({\n value: \"\", //清空值\n condition: _this.props.filterDropdownType == 'string' ? 'LIKE' : 'EQ' //切回默认查询条件\n }, function () {\n //调用清除方法参数为当前字段的field\n onFilterClear && onFilterClear(dataIndex);\n });\n }\n };\n\n _this.changeText = function (val) {\n _this.setState({\n value: val\n });\n };\n\n _this.changeTextCall = function (e) {\n var _this$props2 = _this.props,\n onFilterChange = _this$props2.onFilterChange,\n dataIndex = _this$props2.dataIndex;\n\n if (e.keyCode == 13) {\n e.target.value !== \"\" && onFilterChange(dataIndex, e.target.value, _this.state.condition);\n }\n };\n\n _this.changeValue = function () {\n _this.setState({\n value: \"\"\n });\n };\n\n _this.onSelectDropdown = function (item) {\n var _this$props3 = _this.props,\n onFilterChange = _this$props3.onFilterChange,\n dataIndex = _this$props3.dataIndex;\n\n _this.setState({\n condition: item.key\n }, function () {\n _this.state.value !== \"\" && onFilterChange && onFilterChange(dataIndex, _this.state.value, _this.state.condition);\n });\n };\n\n _this.changeNumber = function (value) {\n var _this$props4 = _this.props,\n onFilterChange = _this$props4.onFilterChange,\n dataIndex = _this$props4.dataIndex;\n\n _this.setState({\n value: value\n }, function () {\n onFilterChange(dataIndex, value, _this.state.condition);\n });\n };\n\n _this.clearNumber = function () {\n var onChange = _this.props.onChange;\n\n onChange && onChange(\"\");\n _this.setState({\n value: \"\"\n });\n };\n\n _this.changeTextCallBlur = function (val) {\n var onChange = _this.props.onChange;\n\n onChange && onChange(val);\n };\n\n _this.changeSelect = function (value) {\n var _this$props5 = _this.props,\n onFilterChange = _this$props5.onFilterChange,\n dataIndex = _this$props5.dataIndex;\n\n if (onFilterChange) {\n onFilterChange(dataIndex, value, _this.state.condition);\n _this.setState({\n value: value\n });\n }\n };\n\n _this.clearSelectValue = function () {\n _this.setState({\n selectValue: \"\"\n }, function () {\n _this.changeSelect(\"\");\n });\n };\n\n _this.clearDateValue = function () {\n _this.setState({\n dateValue: \"\"\n }, function () {\n _this.changeDate(\"\");\n });\n };\n\n _this.changeDate = function (value) {\n var _this$props6 = _this.props,\n onFilterChange = _this$props6.onFilterChange,\n dataIndex = _this$props6.dataIndex;\n\n if (onFilterChange) {\n onFilterChange(dataIndex, value, _this.state.condition);\n _this.setState({\n value: value,\n open: false\n });\n }\n };\n\n _this.renderControl = function (rendertype) {\n var _this$props7 = _this.props,\n filterInputNumberOptions = _this$props7.filterInputNumberOptions,\n filterDropdownIncludeKeys = _this$props7.filterDropdownIncludeKeys,\n dataIndex = _this$props7.dataIndex,\n filterDropdown = _this$props7.filterDropdown,\n filterDropdownType = _this$props7.filterDropdownType,\n format = _this$props7.format,\n className = _this$props7.className,\n onChange = _this$props7.onChange,\n onSelectDropdown = _this$props7.onSelectDropdown,\n clsPrefix = _this$props7.clsPrefix,\n locale = _this$props7.locale;\n\n switch (rendertype) {\n case 'text':\n return _react2[\"default\"].createElement(\n 'div',\n { className: clsPrefix + ' filter-wrap' },\n _react2[\"default\"].createElement(_beeFormControl2[\"default\"], {\n value: _this.state.value,\n className: className,\n onChange: _this.changeText,\n onKeyDown: _this.changeTextCall\n //onBlur={this.changeTextCallBlur}\n }),\n _react2[\"default\"].createElement(_FilterDropDown2[\"default\"], {\n locale: locale,\n dataIndex: dataIndex,\n dataText: _this.state.value,\n onSelectDropdown: _this.onSelectDropdown,\n onClickClear: _this.clearFilter,\n isShowClear: _this.state.value,\n isShowCondition: filterDropdown,\n filterDropdownType: filterDropdownType,\n filterDropdownIncludeKeys: filterDropdownIncludeKeys\n })\n );\n case 'number':\n return _react2[\"default\"].createElement(\n 'div',\n { className: clsPrefix + ' filter-wrap' },\n _react2[\"default\"].createElement(_beeInputNumber2[\"default\"], _extends({}, filterInputNumberOptions, {\n className: className,\n value: _this.state.value,\n onChange: _this.changeNumber,\n iconStyle: 'one'\n })),\n _react2[\"default\"].createElement(_FilterDropDown2[\"default\"], {\n locale: locale,\n dataIndex: dataIndex,\n dataText: _this.state.value,\n onSelectDropdown: _this.onSelectDropdown,\n onClickClear: _this.clearFilter,\n isShowClear: _this.state.value != 0,\n isShowCondition: filterDropdown,\n filterDropdownType: filterDropdownType,\n filterDropdownIncludeKeys: filterDropdownIncludeKeys\n })\n );\n case 'dropdown':\n return _react2[\"default\"].createElement(\n 'div',\n { className: clsPrefix + ' filter-wrap' },\n _react2[\"default\"].createElement(_beeSelect2[\"default\"], _extends({}, _this.props, {\n size: 'sm',\n value: _this.state.value,\n onChange: _this.changeSelect\n })),\n _react2[\"default\"].createElement(_FilterDropDown2[\"default\"], {\n locale: locale,\n dataIndex: dataIndex,\n dataText: _this.state.value,\n onSelectDropdown: _this.onSelectDropdown,\n onClickClear: _this.clearFilter,\n isShowCondition: filterDropdown,\n isShowClear: _this.state.value,\n filterDropdownType: filterDropdownType,\n filterDropdownIncludeKeys: filterDropdownIncludeKeys\n })\n );\n case 'date':\n return _react2[\"default\"].createElement(\n 'div',\n { className: clsPrefix + ' filter-wrap' },\n _react2[\"default\"].createElement(_beeDatepicker2[\"default\"], _extends({}, _this.props, {\n value: _this.state.value,\n onChange: _this.changeDate,\n open: _this.state.open,\n format: format,\n locale: _zh_CN2[\"default\"]\n })),\n _react2[\"default\"].createElement(_FilterDropDown2[\"default\"], {\n locale: locale,\n dataIndex: dataIndex,\n dataText: _this.state.value,\n onSelectDropdown: _this.onSelectDropdown,\n onClickClear: _this.clearFilter,\n isShowCondition: filterDropdown,\n isShowClear: _this.state.value,\n filterDropdownType: filterDropdownType,\n filterDropdownIncludeKeys: filterDropdownIncludeKeys\n })\n );\n case 'dateyear':\n return _react2[\"default\"].createElement(\n 'div',\n { className: clsPrefix + ' filter-wrap' },\n _react2[\"default\"].createElement(YearPicker, _extends({}, _this.props, {\n value: _this.state.value,\n onChange: _this.changeDate,\n open: _this.state.open,\n format: format,\n locale: _zh_CN2[\"default\"]\n })),\n _react2[\"default\"].createElement(_FilterDropDown2[\"default\"], {\n locale: locale,\n dataIndex: dataIndex,\n dataText: _this.state.value,\n onSelectDropdown: _this.onSelectDropdown,\n onClickClear: _this.clearFilter,\n isShowCondition: filterDropdown,\n isShowClear: _this.state.value,\n filterDropdownType: filterDropdownType,\n filterDropdownIncludeKeys: filterDropdownIncludeKeys\n })\n );\n case 'datemonth':\n return _react2[\"default\"].createElement(\n 'div',\n { className: clsPrefix + ' filter-wrap' },\n _react2[\"default\"].createElement(MonthPicker, _extends({}, _this.props, {\n value: _this.state.value,\n onChange: _this.changeDate,\n open: _this.state.open,\n format: format,\n locale: _zh_CN2[\"default\"]\n })),\n _react2[\"default\"].createElement(_FilterDropDown2[\"default\"], {\n locale: locale,\n dataIndex: dataIndex,\n dataText: _this.state.value,\n onSelectDropdown: _this.onSelectDropdown,\n onClickClear: _this.clearFilter,\n isShowCondition: filterDropdown,\n isShowClear: _this.state.value,\n filterDropdownType: filterDropdownType,\n filterDropdownIncludeKeys: filterDropdownIncludeKeys\n })\n );\n case 'dateweek':\n return _react2[\"default\"].createElement(\n 'div',\n { className: clsPrefix + ' filter-wrap' },\n _react2[\"default\"].createElement(WeekPicker, _extends({}, _this.props, {\n value: _this.state.value,\n onChange: _this.changeDate,\n open: _this.state.open,\n format: format,\n locale: _zh_CN2[\"default\"]\n })),\n _react2[\"default\"].createElement(_FilterDropDown2[\"default\"], {\n locale: locale,\n dataIndex: dataIndex,\n dataText: _this.state.value,\n onSelectDropdown: _this.onSelectDropdown,\n onClickClear: _this.clearFilter,\n isShowCondition: filterDropdown,\n isShowClear: _this.state.value,\n filterDropdownType: filterDropdownType,\n filterDropdownIncludeKeys: filterDropdownIncludeKeys\n })\n );\n case 'daterange':\n return _react2[\"default\"].createElement(\n 'div',\n { className: clsPrefix + ' filter-wrap' },\n _react2[\"default\"].createElement(RangePicker, _extends({}, _this.props, {\n value: _this.state.value,\n onChange: _this.changeDate,\n open: _this.state.open,\n format: format,\n showTime: true,\n locale: _zh_CN2[\"default\"],\n placeholder: '开始 ~ 结束',\n dateInputPlaceholder: ['开始', '结束'],\n showClear: true\n })),\n _react2[\"default\"].createElement(_FilterDropDown2[\"default\"], {\n locale: locale,\n dataIndex: dataIndex,\n dataText: _this.state.value,\n onSelectDropdown: _this.onSelectDropdown,\n onClickClear: _this.clearFilter,\n isShowCondition: filterDropdown,\n isShowClear: _this.state.value,\n filterDropdownIncludeKeys: filterDropdownIncludeKeys\n })\n );\n case 'bool':\n return _react2[\"default\"].createElement(\n 'div',\n { className: clsPrefix + ' filter-wrap' },\n _react2[\"default\"].createElement(Switch, {\n className: className,\n onChange: onChange\n }),\n _react2[\"default\"].createElement(_FilterDropDown2[\"default\"], { locale: locale,\n onSelectDropdown: onSelectDropdown,\n filterDropdownIncludeKeys: filterDropdownIncludeKeys\n })\n );\n default:\n return _react2[\"default\"].createElement('div', null);\n }\n };\n\n _this.state = {\n value: \"\",\n text: \"\",\n selectValue: \"\",\n dateValue: \"\",\n open: false,\n condition: props.filterDropdownType == 'string' ? 'LIKE' : 'EQ',\n number: 0\n };\n return _this;\n }\n\n /**\n * 清除过滤条件\n *\n */\n\n\n /**\n * 设置输入文本的值\n *\n */\n\n\n /**\n * 输入框回车执行回调\n *\n */\n\n /**\n * 更改修改值\n *\n */\n\n /**\n * 下拉条件的回调\n *\n * @param {*} key 字段\n * @param {*} value 值1,2,3...6\n */\n\n\n /**\n * 修改数值型的值\n *\n */\n\n //清除数值\n\n\n //失去焦点后执行函数\n\n //设置下拉值\n\n //清除下拉值\n\n //清除日期值\n\n //设置日期值\n\n //组件渲染\n /**\n * 根据不同的类型生成对应的组件类型包含一些参数的适应\n *\n * @param {*} rendertype 参数类型,包括['text','dropdown','date','dateyear','datemonth','dateweek',daterange','number']\n * @returns\n */\n\n\n FilterType.prototype.render = function render() {\n var rendertype = this.props.rendertype;\n\n return _react2[\"default\"].createElement(\n 'div',\n { 'data-filter-type': 'filterContext' },\n this.renderControl(rendertype)\n );\n };\n\n return FilterType;\n}(_react.Component);\n\nFilterType.propTypes = propTypes;\nFilterType.defaultProps = {\n filterDropdown: 'show'\n};\nexports[\"default\"] = FilterType;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1268 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _DatePicker = __webpack_require__(1269);\n\nvar _DatePicker2 = _interopRequireDefault(_DatePicker);\n\nvar _MonthPicker = __webpack_require__(1300);\n\nvar _MonthPicker2 = _interopRequireDefault(_MonthPicker);\n\nvar _RangePicker = __webpack_require__(1302);\n\nvar _RangePicker2 = _interopRequireDefault(_RangePicker);\n\nvar _WeekPicker = __webpack_require__(1305);\n\nvar _WeekPicker2 = _interopRequireDefault(_WeekPicker);\n\nvar _YearPicker = __webpack_require__(1306);\n\nvar _YearPicker2 = _interopRequireDefault(_YearPicker);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\n_DatePicker2[\"default\"].MonthPicker = _MonthPicker2[\"default\"];\n_DatePicker2[\"default\"].RangePicker = _RangePicker2[\"default\"];\n_DatePicker2[\"default\"].WeekPicker = _WeekPicker2[\"default\"];\n_DatePicker2[\"default\"].YearPicker = _YearPicker2[\"default\"];\n\nexports[\"default\"] = _DatePicker2[\"default\"];\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1269 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _rcCalendar = __webpack_require__(333);\n\nvar _rcCalendar2 = _interopRequireDefault(_rcCalendar);\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _tinperBeeCore = __webpack_require__(79);\n\nvar _Picker = __webpack_require__(80);\n\nvar _Picker2 = _interopRequireDefault(_Picker);\n\nvar _beeFormControl = __webpack_require__(81);\n\nvar _beeFormControl2 = _interopRequireDefault(_beeFormControl);\n\nvar _Panel = __webpack_require__(477);\n\nvar _Panel2 = _interopRequireDefault(_Panel);\n\nvar _moment = __webpack_require__(4);\n\nvar _moment2 = _interopRequireDefault(_moment);\n\nvar _beeIcon = __webpack_require__(15);\n\nvar _beeIcon2 = _interopRequireDefault(_beeIcon);\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _beeInputGroup = __webpack_require__(82);\n\nvar _beeInputGroup2 = _interopRequireDefault(_beeInputGroup);\n\nvar _zh_CN = __webpack_require__(63);\n\nvar _zh_CN2 = _interopRequireDefault(_zh_CN);\n\nvar _omit = __webpack_require__(30);\n\nvar _omit2 = _interopRequireDefault(_omit);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**\n * Created by chief on 17/4/6.\n */\n\nvar timerDatePicker = true;\n\nvar DatePicker = function (_Component) {\n _inherits(DatePicker, _Component);\n\n function DatePicker(props, context) {\n _classCallCheck(this, DatePicker);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));\n\n _initialiseProps.call(_this);\n\n _this.state = {\n type: \"month\",\n value: _this.initValue(props),\n open: props.open || false,\n inputValue: _this.initValue(props),\n showClose: false\n };\n _this.fileChange = true;\n\n return _this;\n }\n\n DatePicker.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n if (\"value\" in nextProps) {\n this.setState({\n value: this.initValue(nextProps)\n });\n }\n if (\"open\" in nextProps) {\n this.setState({\n open: nextProps.open\n });\n }\n if (\"renderIcon\" in nextProps) {\n this.setState({\n renderIcon: nextProps.renderIcon\n });\n }\n };\n //日期面板中输入框的失焦事件\n\n //fix:更改系统时区后,日期框需要触发 onChange 事件\n\n //阻止组件内部事件冒泡到组件外部容器\n\n\n DatePicker.prototype.render = function render() {\n var _this2 = this;\n\n var state = this.state;\n var props = this.props;\n\n var showClose = props.showClose,\n defaultPanelShown = props.defaultPanelShown,\n onBlur = props.onBlur,\n showHour = props.showHour,\n showMinute = props.showMinute,\n showSecond = props.showSecond,\n others = _objectWithoutProperties(props, [\"showClose\", \"defaultPanelShown\", \"onBlur\", \"showHour\", \"showMinute\", \"showSecond\"]);\n\n var value = state.value;\n var pickerChangeHandler = {};\n var calendarHandler = {};\n var autofocus = this.props.autofocus ? { autofocus: 'autofocus' } : null;\n\n if (props.showTime) {\n calendarHandler = {\n // fix https://github.com/ant-design/ant-design/issues/1902\n onSelect: this.handleChange\n };\n } else {\n pickerChangeHandler = {\n onChange: this.handleChange\n };\n }\n\n var splitNumber = '3';\n if (!showHour) splitNumber -= 1;\n if (!showMinute) splitNumber -= 1;\n if (!showSecond) splitNumber -= 1;\n\n var calendar = _react2[\"default\"].createElement(_rcCalendar2[\"default\"], _extends({\n timePicker: props.showTime ? _react2[\"default\"].createElement(_Panel2[\"default\"], {\n className: 'time-split-' + splitNumber,\n showHour: showHour, showMinute: showMinute, showSecond: showSecond,\n defaultValue: (0, _moment2[\"default\"])((0, _moment2[\"default\"])().format(\"HH:mm:ss\"), \"HH:mm:ss\") }) : null\n }, props, {\n onSelect: this.handleSelect,\n onChange: this.handleCalendarChange,\n value: value,\n onInputBlur: this.onDateInputBlur\n }));\n\n var keyboardInputProps = {};\n if (props.keyboardInput) {\n keyboardInputProps.readOnly = false;\n keyboardInputProps.onChange = this.inputChange;\n keyboardInputProps.value = state.inputValue.format && state.inputValue.isValid() && this.props.validatorFunc(state.inputValue) ? state.inputValue.format(props.format) : state.inputValue;\n } else {\n keyboardInputProps.readOnly = true;\n keyboardInputProps.value = value && this.getValue(value) || \"\";\n }\n var classes = (0, _classnames2[\"default\"])(props.className, \"datepicker-container\");\n return _react2[\"default\"].createElement(\n \"div\",\n _extends({ className: classes, onMouseEnter: this.onDateHover, onClick: this.stopPropagation\n }, (0, _omit2[\"default\"])(others, ['onDateInputBlur', 'getCalendarContainer', 'showToday', 'renderFooter', 'keyboardInput', 'showDateInput', 'showTime', 'closeIcon', 'renderIcon', 'focusOnOpen', 'defultSelect', 'onOpenChange', 'locale', 'showMonthInput', 'onKeyDown', 'renderError', 'format', 'placeholder', 'disabledTime', 'onChange', 'disabledDate', 'iconClick', 'outInputKeydown'])),\n _react2[\"default\"].createElement(\n _Picker2[\"default\"],\n _extends({\n animation: \"slide-up\"\n }, props, pickerChangeHandler, {\n onOpenChange: this.onOpenChange,\n calendar: calendar,\n mode: 'year',\n open: 'defaultPanelShown' in props ? defaultPanelShown : this.state.open,\n value: state.value\n }),\n function () {\n return _react2[\"default\"].createElement(\n _beeInputGroup2[\"default\"],\n { simple: true, className: \"datepicker-input-group\",\n onMouseEnter: _this2.onMouseEnter,\n onMouseLeave: _this2.onMouseLeave\n },\n _react2[\"default\"].createElement(_beeFormControl2[\"default\"], _extends({\n ref: function ref(_ref) {\n return _this2.outInput = _ref;\n },\n disabled: props.disabled,\n placeholder: _this2.props.placeholder,\n onClick: function onClick(event) {\n _this2.onClick(event);\n },\n focusSelect: props.defaultSelected,\n onFocus: function onFocus(v, e) {\n _this2.outInputFocus(e);\n },\n onKeyDown: _this2.outInputKeydown\n // value={(value && value.format(props.format)) || \"\"}\n }, keyboardInputProps, autofocus)),\n showClose && _this2.state.value && _this2.state.showClose && !props.disabled ? _react2[\"default\"].createElement(\n _beeInputGroup2[\"default\"].Button,\n { shape: \"border\",\n onClick: _this2.clear },\n props.closeIcon()\n ) : _react2[\"default\"].createElement(\n _beeInputGroup2[\"default\"].Button,\n { shape: \"border\",\n onClick: function onClick(e) {\n props.keyboardInput ? _this2.iconClick(e) : '';\n } },\n props.renderIcon()\n )\n );\n }\n )\n );\n };\n\n return DatePicker;\n}(_react.Component);\n\nvar _initialiseProps = function _initialiseProps() {\n var _this3 = this;\n\n this.initValue = function (props) {\n var value = props.value || props.defaultValue;\n if (value) {\n if (typeof value == 'string') {\n if ((0, _moment2[\"default\"])(value).isValid()) {\n value = (0, _moment2[\"default\"])(value);\n } else {\n console.error('value is not in the correct format');\n value = '';\n }\n } else if (value.format && value.isValid()) {\n value = value;\n } else {\n console.error('value is not in the correct format');\n value = '';\n }\n }\n return value;\n };\n\n this.getValue = function (value) {\n var format = _this3.props.format;\n\n if (typeof format == 'string') {\n return value.format(format);\n } else {\n return value.format(format[0]);\n }\n };\n\n this.onChange = function (value) {\n _this3.setState({ value: value });\n };\n\n this.inputFocus = function () {\n var _props = _this3.props,\n format = _props.format,\n validatorFunc = _props.validatorFunc,\n disabledDate = _props.disabledDate;\n\n var input = document.querySelector('.rc-calendar-input');\n if (input) {\n if (input.value) {\n input.select();\n } else {\n input.focus();\n }\n input.onkeydown = function (e) {\n if (e.keyCode == _tinperBeeCore.KeyCode.DELETE) {\n input.value = '';\n _this3.fireChange('', '');\n } else if (e.keyCode == _tinperBeeCore.KeyCode.ESC) {\n _this3.setState({\n open: false\n });\n var v = _this3.state.value;\n _this3.props.onOpenChange(false, v, v && _this3.getValue(v) || '');\n _reactDom2[\"default\"].findDOMNode(_this3.outInput).focus(); // 按esc时候焦点回到input输入框\n } else if (e.keyCode == _tinperBeeCore.KeyCode.ENTER) {\n var parsed = (0, _moment2[\"default\"])(input.value, format, true);\n var isDisabled = disabledDate && disabledDate(parsed);\n if (parsed.isValid() && validatorFunc(input.value) && !isDisabled) {\n _this3.setState({\n open: false\n });\n var _v = _this3.state.value;\n _this3.props.onOpenChange(false, _v, _v && _this3.getValue(_v) || '');\n _reactDom2[\"default\"].findDOMNode(_this3.outInput).focus();\n }\n if (!input.value) {\n _this3.setState({\n open: false\n });\n }\n }\n _this3.props.onKeyDown && _this3.props.onKeyDown(e);\n };\n }\n };\n\n this.onOpenChange = function (open) {\n var props = _this3.props;\n var self = _this3;\n _this3.setState({\n open: open\n }, function () {\n if (open) {\n setTimeout(function () {\n self.inputFocus();\n }, 0);\n }\n });\n var value = self.state.value;\n props.onOpenChange(open, value, value && _this3.getValue(value) || '');\n if (open) {\n setTimeout(function () {\n self.inputFocus();\n }, 200);\n }\n };\n\n this.handleCalendarChange = function (value) {\n var props = _this3.props;\n _this3.setState({ value: value, inputValue: value && _this3.getValue(value) || '' });\n _this3.fireChange(value, value && _this3.getValue(value) || '');\n };\n\n this.handleChange = function (value) {\n var props = _this3.props;\n _this3.setState({\n value: value && _extends(value, { _type: 'date' }) || value,\n inputValue: value && _this3.getValue(value) || ''\n });\n if (timerDatePicker) {\n clearTimeout(_this3.timerout);\n _this3.fireChange(value, value && _this3.getValue(value) || '');\n timerDatePicker = false;\n _this3.timerout = window.setTimeout(function () {\n timerDatePicker = true;\n }, 300);\n }\n };\n\n this.onClick = function (e) {\n var props = _this3.props;\n if (props.keyboardInput) e.stopPropagation();\n var value = _this3.state.value;\n if (props.keyboardInput) {\n props.onClick && props.onClick(e.nativeEvent, value || null, _this3.state.inputValue);\n } else {\n props.onClick && props.onClick(e.nativeEvent, value || null, value && _this3.getValue(value) || '');\n }\n };\n\n this.inputChange = function (value, e) {\n if (_this3.props.keyboardInput) e.stopPropagation();\n _this3.setState({\n inputValue: value\n });\n if ((0, _moment2[\"default\"])(value, _this3.props.format).isValid() && _this3.props.validatorFunc(value)) {\n _this3.setState({\n value: (0, _moment2[\"default\"])(value, _this3.props.format)\n });\n value = (0, _moment2[\"default\"])(value, _this3.props.format);\n _this3.fireChange(value, value && _this3.getValue(value) || '');\n } else {\n _this3.fireChange(null, value);\n }\n };\n\n this.outInputFocus = function (e) {\n if (_this3.props.hasOwnProperty('open')) e.stopPropagation();\n _this3.props.outInputFocus && _this3.props.outInputFocus(e);\n };\n\n this.iconClick = function (e) {\n _this3.props.iconClick && _this3.props.iconClick(e);\n };\n\n this.outInputKeydown = function (e) {\n if (e.keyCode == _tinperBeeCore.KeyCode.DELETE) {\n _this3.setState({\n inputValue: ''\n });\n _this3.fireChange('', '');\n } else if (e.keyCode == _tinperBeeCore.KeyCode.ESC) {\n _this3.setState({\n open: false\n });\n var value = _this3.state.inputValue;\n if ((0, _moment2[\"default\"])(value, _this3.props.format).isValid() && _this3.props.validatorFunc(value)) {\n _this3.setState({\n value: (0, _moment2[\"default\"])(value, _this3.props.format)\n });\n value = (0, _moment2[\"default\"])(value, _this3.props.format);\n _this3.fireChange(value, value && _this3.getValue(value) || '');\n } else {\n _this3.fireChange(null, value);\n }\n }\n _this3.props.outInputKeydown && _this3.props.outInputKeydown(e);\n };\n\n this.onMouseLeave = function (e) {\n _this3.setState({\n showClose: false\n });\n };\n\n this.onMouseEnter = function (e) {\n _this3.setState({\n showClose: true\n });\n };\n\n this.clear = function (e) {\n e.stopPropagation();\n _this3.setState({\n inputValue: '',\n value: ''\n });\n _this3.fireChange('', '');\n };\n\n this.handleSelect = function (value) {\n _this3.setState({\n value: value\n });\n _this3.props.onSelect && _this3.props.onSelect(value, value && _this3.getValue(value) || '');\n // ReactDOM.findDOMNode(this.outInput).focus()\n };\n\n this.onDateInputBlur = function (e) {\n var input = document.querySelector('.rc-calendar-input');\n var value = void 0;\n if (input) {\n value = input.value ? input.value : '';\n }\n _this3.props.onDateInputBlur && _this3.props.onDateInputBlur(e, value);\n };\n\n this.onDateHover = function () {\n var format = _this3.props.format;\n var value = _this3.state.value,\n newValue = value && _this3.getValue(value);\n\n\n var inputValue = _this3.outInput.state.value;\n inputValue = format ? inputValue : inputValue && _this3.getValue((0, _moment2[\"default\"])(inputValue));\n\n if (newValue && inputValue !== newValue) {\n _this3.fireChange(value, newValue || '');\n }\n };\n\n this.stopPropagation = function (e) {\n e.stopPropagation();\n };\n\n this.fireChange = function (value, stringValue) {\n _this3.fileChange && _this3.props.onChange(value, stringValue);\n _this3.fileChange = false;\n _this3.fileChangeTimer = window.setTimeout(function () {\n _this3.fileChange = true;\n }, 10);\n };\n};\n\nDatePicker.defaultProps = {\n closeIcon: function closeIcon() {\n return _react2[\"default\"].createElement(_beeIcon2[\"default\"], { type: \"uf-close-c\" });\n },\n renderIcon: function renderIcon() {\n return _react2[\"default\"].createElement(_beeIcon2[\"default\"], { type: \"uf-calendar\" });\n },\n focusOnOpen: true,\n defultSelect: false,\n onOpenChange: function onOpenChange() {},\n onChange: function onChange() {},\n locale: _zh_CN2[\"default\"],\n showMonthInput: false,\n onKeyDown: function onKeyDown() {},\n renderError: function renderError() {},\n showClose: true,\n format: \"YYYY-MM-DD\",\n showSecond: true,\n showHour: true,\n showMinute: true,\n validatorFunc: function validatorFunc() {\n return true;\n }\n};\n\nexports[\"default\"] = DatePicker;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 1270 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _KeyCode = __webpack_require__(59);\n\nvar _KeyCode2 = _interopRequireDefault(_KeyCode);\n\nvar _reactLifecyclesCompat = __webpack_require__(14);\n\nvar _DateTable = __webpack_require__(334);\n\nvar _DateTable2 = _interopRequireDefault(_DateTable);\n\nvar _CalendarHeader = __webpack_require__(184);\n\nvar _CalendarHeader2 = _interopRequireDefault(_CalendarHeader);\n\nvar _CalendarFooter = __webpack_require__(470);\n\nvar _CalendarFooter2 = _interopRequireDefault(_CalendarFooter);\n\nvar _CalendarMixin = __webpack_require__(474);\n\nvar _CommonMixin = __webpack_require__(186);\n\nvar _DateInput = __webpack_require__(78);\n\nvar _DateInput2 = _interopRequireDefault(_DateInput);\n\nvar _util = __webpack_require__(32);\n\nvar _toTime = __webpack_require__(476);\n\nvar _moment = __webpack_require__(4);\n\nvar _moment2 = _interopRequireDefault(_moment);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nfunction noop() {}\n\nvar Calendar = function (_React$Component) {\n _inherits(Calendar, _React$Component);\n\n function Calendar(props) {\n _classCallCheck(this, Calendar);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));\n\n _initialiseProps.call(_this);\n\n _this.state = {\n mode: _this.props.mode || 'date',\n value: props.value || props.defaultValue || (0, _moment2[\"default\"])(),\n selectedValue: props.selectedValue || props.defaultSelectedValue\n };\n return _this;\n }\n\n Calendar.prototype.componentDidMount = function componentDidMount() {\n if (this.props.showDateInput) {\n this.saveFocusElement(_DateInput2[\"default\"].getInstance());\n }\n };\n\n Calendar.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, state) {\n var value = nextProps.value,\n selectedValue = nextProps.selectedValue;\n\n var newState = {};\n\n if ('mode' in nextProps && state.mode !== nextProps.mode) {\n newState = { mode: nextProps.mode };\n }\n if ('value' in nextProps) {\n newState.value = value || nextProps.defaultValue || (0, _CalendarMixin.getNowByCurrentStateValue)(state.value);\n }\n if ('selectedValue' in nextProps) {\n newState.selectedValue = selectedValue;\n }\n\n return newState;\n };\n\n Calendar.prototype.render = function render() {\n var _this2 = this;\n\n var props = this.props,\n state = this.state;\n var locale = props.locale,\n prefixCls = props.prefixCls,\n disabledDate = props.disabledDate,\n validatorFunc = props.validatorFunc,\n format = props.format,\n dateInputPlaceholder = props.dateInputPlaceholder,\n timePicker = props.timePicker,\n disabledTime = props.disabledTime,\n clearIcon = props.clearIcon,\n renderFooter = props.renderFooter,\n showMonthInput = props.showMonthInput,\n renderError = props.renderError,\n onInputBlur = props.onInputBlur;\n var value = state.value,\n selectedValue = state.selectedValue,\n mode = state.mode;\n\n var showTimePicker = mode === 'time';\n var disabledTimeConfig = showTimePicker && disabledTime && timePicker ? (0, _util.getTimeConfig)(selectedValue, disabledTime) : null;\n\n var timePickerEle = null;\n\n if (timePicker && showTimePicker) {\n var timePickerProps = _extends({\n showHour: true,\n showSecond: true,\n showMinute: true\n }, timePicker.props, disabledTimeConfig, {\n onChange: this.onDateInputChange,\n value: selectedValue,\n disabledTime: disabledTime\n });\n\n if (timePicker.props.defaultValue !== undefined) {\n timePickerProps.defaultOpenValue = timePicker.props.defaultValue;\n }\n\n timePickerEle = _react2[\"default\"].cloneElement(timePicker, timePickerProps);\n }\n var dateInputElement = props.showDateInput ? _react2[\"default\"].createElement(_DateInput2[\"default\"], {\n format: this.getFormat(),\n key: 'date-input',\n value: value,\n locale: locale,\n placeholder: dateInputPlaceholder,\n showClear: true,\n disabledTime: disabledTime,\n disabledDate: disabledDate,\n onClear: this.onClear,\n prefixCls: prefixCls,\n selectedValue: selectedValue,\n onChange: this.onDateInputChange,\n onSelect: function onSelect(value) {\n if ((0, _moment2[\"default\"])(value, format, true) && validatorFunc(value)) {\n _this2.onDateInputSelect(value);\n }\n },\n clearIcon: clearIcon,\n renderError: renderError,\n onBlur: onInputBlur,\n validatorFunc: validatorFunc\n }) : null;\n\n var children = [];\n if (props.renderSidebar) {\n children.push(props.renderSidebar());\n }\n children.push(_react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-panel', key: 'panel' },\n dateInputElement,\n _react2[\"default\"].createElement(\n 'div',\n {\n tabIndex: this.props.focusablePanel ? 0 : undefined,\n className: prefixCls + '-date-panel',\n onMouseOver: this.onMouseOver\n },\n _react2[\"default\"].createElement(_CalendarHeader2[\"default\"], {\n locale: locale,\n mode: mode,\n value: value,\n onValueChange: this.setValue,\n onPanelChange: this.onPanelChange,\n renderFooter: renderFooter,\n showTimePicker: showTimePicker,\n prefixCls: prefixCls,\n showMonthInput: showMonthInput\n }),\n timePicker && showTimePicker ? _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-time-picker' },\n _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-time-picker-panel' },\n timePickerEle\n )\n ) : null,\n _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-body' },\n _react2[\"default\"].createElement(_DateTable2[\"default\"], {\n locale: locale,\n value: value,\n selectedValue: selectedValue,\n prefixCls: prefixCls,\n dateRender: props.dateRender,\n onSelect: this.onDateTableSelect,\n disabledDate: disabledDate,\n showWeekNumber: props.showWeekNumber\n })\n ),\n _react2[\"default\"].createElement(_CalendarFooter2[\"default\"], {\n showOk: props.showOk,\n mode: mode,\n renderFooter: props.renderFooter,\n locale: locale,\n prefixCls: prefixCls,\n showToday: props.showToday,\n disabledTime: disabledTime,\n showTimePicker: showTimePicker,\n showDateInput: props.showDateInput,\n timePicker: timePicker,\n selectedValue: selectedValue,\n value: value,\n disabledDate: disabledDate,\n okDisabled: props.showOk !== false && (!selectedValue || !this.isAllowedDate(selectedValue)),\n onOk: this.onOk,\n onSelect: this.onSelect,\n onToday: this.onToday,\n onOpenTimePicker: this.openTimePicker,\n onCloseTimePicker: this.closeTimePicker\n })\n )\n ));\n\n return this.renderRoot({\n children: children,\n className: props.showWeekNumber ? prefixCls + '-week-number' : ''\n });\n };\n\n return Calendar;\n}(_react2[\"default\"].Component);\n\nCalendar.propTypes = _extends({}, _CalendarMixin.calendarMixinPropTypes, _CommonMixin.propType, {\n prefixCls: _propTypes2[\"default\"].string,\n className: _propTypes2[\"default\"].string,\n style: _propTypes2[\"default\"].object,\n defaultValue: _propTypes2[\"default\"].object,\n value: _propTypes2[\"default\"].object,\n selectedValue: _propTypes2[\"default\"].object,\n defaultSelectedValue: _propTypes2[\"default\"].object,\n mode: _propTypes2[\"default\"].oneOf(['time', 'date', 'month', 'year', 'decade']),\n locale: _propTypes2[\"default\"].object,\n showDateInput: _propTypes2[\"default\"].bool,\n showWeekNumber: _propTypes2[\"default\"].bool,\n showToday: _propTypes2[\"default\"].bool,\n showOk: _propTypes2[\"default\"].bool,\n onSelect: _propTypes2[\"default\"].func,\n onOk: _propTypes2[\"default\"].func,\n onKeyDown: _propTypes2[\"default\"].func,\n timePicker: _propTypes2[\"default\"].element,\n dateInputPlaceholder: _propTypes2[\"default\"].any,\n onClear: _propTypes2[\"default\"].func,\n onChange: _propTypes2[\"default\"].func,\n onPanelChange: _propTypes2[\"default\"].func,\n disabledDate: _propTypes2[\"default\"].func,\n disabledTime: _propTypes2[\"default\"].any,\n dateRender: _propTypes2[\"default\"].func,\n renderFooter: _propTypes2[\"default\"].func,\n renderSidebar: _propTypes2[\"default\"].func,\n clearIcon: _propTypes2[\"default\"].node,\n focusablePanel: _propTypes2[\"default\"].bool\n});\nCalendar.defaultProps = _extends({}, _CalendarMixin.calendarMixinDefaultProps, _CommonMixin.defaultProp, {\n showToday: true,\n showDateInput: true,\n timePicker: null,\n onOk: noop,\n onPanelChange: noop,\n focusablePanel: true\n});\n\nvar _initialiseProps = function _initialiseProps() {\n var _this3 = this;\n\n this.onPanelChange = function (value, mode) {\n var props = _this3.props,\n state = _this3.state;\n\n if (!('mode' in props)) {\n _this3.setState({ mode: mode });\n }\n props.onPanelChange(value || state.value, mode);\n };\n\n this.onKeyDown = function (event) {\n if (event.target.nodeName.toLowerCase() === 'input') {\n return undefined;\n } else {\n _this3.props.onKeyDown && _this3.props.onKeyDown(event);\n }\n var keyCode = event.keyCode;\n // mac\n var ctrlKey = event.ctrlKey || event.metaKey;\n var disabledDate = _this3.props.disabledDate;\n var value = _this3.state.value;\n\n switch (keyCode) {\n case _KeyCode2[\"default\"].DOWN:\n _this3.goTime(1, 'weeks');\n event.preventDefault();\n return 1;\n case _KeyCode2[\"default\"].UP:\n _this3.goTime(-1, 'weeks');\n event.preventDefault();\n return 1;\n case _KeyCode2[\"default\"].LEFT:\n if (ctrlKey) {\n _this3.goTime(-1, 'years');\n } else {\n _this3.goTime(-1, 'days');\n }\n event.preventDefault();\n return 1;\n case _KeyCode2[\"default\"].RIGHT:\n if (ctrlKey) {\n _this3.goTime(1, 'years');\n } else {\n _this3.goTime(1, 'days');\n }\n event.preventDefault();\n return 1;\n case _KeyCode2[\"default\"].HOME:\n _this3.setValue((0, _toTime.goStartMonth)(_this3.state.value));\n event.preventDefault();\n return 1;\n case _KeyCode2[\"default\"].END:\n _this3.setValue((0, _toTime.goEndMonth)(_this3.state.value));\n event.preventDefault();\n return 1;\n case _KeyCode2[\"default\"].PAGE_DOWN:\n _this3.goTime(1, 'month');\n event.preventDefault();\n return 1;\n case _KeyCode2[\"default\"].PAGE_UP:\n _this3.goTime(-1, 'month');\n event.preventDefault();\n return 1;\n case _KeyCode2[\"default\"].ENTER:\n if (!disabledDate || !disabledDate(value)) {\n _this3.onSelect(value, {\n source: 'keyboard'\n });\n }\n event.preventDefault();\n return 1;\n }\n };\n\n this.onClear = function () {\n _this3.onSelect(null);\n _this3.props.onClear();\n };\n\n this.onOk = function () {\n var selectedValue = _this3.state.selectedValue;\n\n if (_this3.isAllowedDate(selectedValue)) {\n _this3.props.onOk(selectedValue);\n }\n };\n\n this.onDateInputChange = function (value) {\n _this3.onSelect(value, {\n source: 'dateInput'\n });\n };\n\n this.onDateInputSelect = function (value) {\n _this3.onSelect(value, {\n source: 'dateInputSelect'\n });\n };\n\n this.onDateTableSelect = function (value) {\n var timePicker = _this3.props.timePicker;\n var selectedValue = _this3.state.selectedValue;\n\n if (!selectedValue && timePicker) {\n var timePickerDefaultValue = timePicker.props.defaultValue;\n if (timePickerDefaultValue) {\n (0, _util.syncTime)(timePickerDefaultValue, value);\n }\n }\n _this3.onSelect(value);\n };\n\n this.onToday = function () {\n var value = _this3.state.value;\n\n var now = (0, _util.getTodayTime)(value);\n _this3.onSelect(now, {\n source: 'todayButton'\n });\n };\n\n this.getRootDOMNode = function () {\n return _reactDom2[\"default\"].findDOMNode(_this3);\n };\n\n this.openTimePicker = function () {\n _this3.onPanelChange(null, 'time');\n };\n\n this.closeTimePicker = function () {\n _this3.onPanelChange(null, 'date');\n };\n\n this.goTime = function (direction, unit) {\n _this3.setValue((0, _toTime.goTime)(_this3.state.value, direction, unit));\n };\n\n this.onMouseOver = function (e) {\n e.stopPropagation();\n };\n};\n\n(0, _reactLifecyclesCompat.polyfill)(Calendar);\n\nexports[\"default\"] = (0, _CalendarMixin.calendarMixinWrapper)((0, _CommonMixin.commonMixinWrapper)(Calendar));\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1271 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _DateConstants = __webpack_require__(335);\n\nvar _DateConstants2 = _interopRequireDefault(_DateConstants);\n\nvar _moment = __webpack_require__(4);\n\nvar _moment2 = _interopRequireDefault(_moment);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar DateTHead = function (_React$Component) {\n _inherits(DateTHead, _React$Component);\n\n function DateTHead() {\n _classCallCheck(this, DateTHead);\n\n return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n DateTHead.prototype.render = function render() {\n var props = this.props;\n var value = props.value;\n var localeData = value.localeData();\n var prefixCls = props.prefixCls;\n var veryShortWeekdays = [];\n var weekDays = [];\n var firstDayOfWeek = localeData.firstDayOfWeek();\n var showWeekNumberEl = void 0;\n var now = (0, _moment2[\"default\"])();\n for (var dateColIndex = 0; dateColIndex < _DateConstants2[\"default\"].DATE_COL_COUNT; dateColIndex++) {\n var index = (firstDayOfWeek + dateColIndex) % _DateConstants2[\"default\"].DATE_COL_COUNT;\n now.day(index);\n veryShortWeekdays[dateColIndex] = localeData.weekdaysMin(now);\n weekDays[dateColIndex] = localeData.weekdaysShort(now);\n }\n\n if (props.showWeekNumber) {\n showWeekNumberEl = _react2[\"default\"].createElement(\n 'th',\n {\n role: 'columnheader',\n className: prefixCls + '-column-header ' + prefixCls + '-week-number-header'\n },\n _react2[\"default\"].createElement(\n 'span',\n { className: prefixCls + '-column-header-inner' },\n 'x'\n )\n );\n }\n var weekDaysEls = weekDays.map(function (day, xindex) {\n return _react2[\"default\"].createElement(\n 'th',\n {\n key: xindex,\n role: 'columnheader',\n title: day,\n className: prefixCls + '-column-header'\n },\n _react2[\"default\"].createElement(\n 'span',\n { className: prefixCls + '-column-header-inner' },\n veryShortWeekdays[xindex]\n )\n );\n });\n return _react2[\"default\"].createElement(\n 'thead',\n null,\n _react2[\"default\"].createElement(\n 'tr',\n { role: 'row' },\n showWeekNumberEl,\n weekDaysEls\n )\n );\n };\n\n return DateTHead;\n}(_react2[\"default\"].Component);\n\nexports[\"default\"] = DateTHead;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1272 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar map = {\n\t\"./af\": 336,\n\t\"./af.js\": 336,\n\t\"./ar\": 337,\n\t\"./ar-dz\": 338,\n\t\"./ar-dz.js\": 338,\n\t\"./ar-kw\": 339,\n\t\"./ar-kw.js\": 339,\n\t\"./ar-ly\": 340,\n\t\"./ar-ly.js\": 340,\n\t\"./ar-ma\": 341,\n\t\"./ar-ma.js\": 341,\n\t\"./ar-sa\": 342,\n\t\"./ar-sa.js\": 342,\n\t\"./ar-tn\": 343,\n\t\"./ar-tn.js\": 343,\n\t\"./ar.js\": 337,\n\t\"./az\": 344,\n\t\"./az.js\": 344,\n\t\"./be\": 345,\n\t\"./be.js\": 345,\n\t\"./bg\": 346,\n\t\"./bg.js\": 346,\n\t\"./bm\": 347,\n\t\"./bm.js\": 347,\n\t\"./bn\": 348,\n\t\"./bn.js\": 348,\n\t\"./bo\": 349,\n\t\"./bo.js\": 349,\n\t\"./br\": 350,\n\t\"./br.js\": 350,\n\t\"./bs\": 351,\n\t\"./bs.js\": 351,\n\t\"./ca\": 352,\n\t\"./ca.js\": 352,\n\t\"./cs\": 353,\n\t\"./cs.js\": 353,\n\t\"./cv\": 354,\n\t\"./cv.js\": 354,\n\t\"./cy\": 355,\n\t\"./cy.js\": 355,\n\t\"./da\": 356,\n\t\"./da.js\": 356,\n\t\"./de\": 357,\n\t\"./de-at\": 358,\n\t\"./de-at.js\": 358,\n\t\"./de-ch\": 359,\n\t\"./de-ch.js\": 359,\n\t\"./de.js\": 357,\n\t\"./dv\": 360,\n\t\"./dv.js\": 360,\n\t\"./el\": 361,\n\t\"./el.js\": 361,\n\t\"./en-au\": 362,\n\t\"./en-au.js\": 362,\n\t\"./en-ca\": 363,\n\t\"./en-ca.js\": 363,\n\t\"./en-gb\": 183,\n\t\"./en-gb.js\": 183,\n\t\"./en-ie\": 364,\n\t\"./en-ie.js\": 364,\n\t\"./en-il\": 365,\n\t\"./en-il.js\": 365,\n\t\"./en-in\": 366,\n\t\"./en-in.js\": 366,\n\t\"./en-nz\": 367,\n\t\"./en-nz.js\": 367,\n\t\"./en-sg\": 368,\n\t\"./en-sg.js\": 368,\n\t\"./eo\": 369,\n\t\"./eo.js\": 369,\n\t\"./es\": 370,\n\t\"./es-do\": 371,\n\t\"./es-do.js\": 371,\n\t\"./es-us\": 372,\n\t\"./es-us.js\": 372,\n\t\"./es.js\": 370,\n\t\"./et\": 373,\n\t\"./et.js\": 373,\n\t\"./eu\": 374,\n\t\"./eu.js\": 374,\n\t\"./fa\": 375,\n\t\"./fa.js\": 375,\n\t\"./fi\": 376,\n\t\"./fi.js\": 376,\n\t\"./fil\": 377,\n\t\"./fil.js\": 377,\n\t\"./fo\": 378,\n\t\"./fo.js\": 378,\n\t\"./fr\": 379,\n\t\"./fr-ca\": 380,\n\t\"./fr-ca.js\": 380,\n\t\"./fr-ch\": 381,\n\t\"./fr-ch.js\": 381,\n\t\"./fr.js\": 379,\n\t\"./fy\": 382,\n\t\"./fy.js\": 382,\n\t\"./ga\": 383,\n\t\"./ga.js\": 383,\n\t\"./gd\": 384,\n\t\"./gd.js\": 384,\n\t\"./gl\": 385,\n\t\"./gl.js\": 385,\n\t\"./gom-deva\": 386,\n\t\"./gom-deva.js\": 386,\n\t\"./gom-latn\": 387,\n\t\"./gom-latn.js\": 387,\n\t\"./gu\": 388,\n\t\"./gu.js\": 388,\n\t\"./he\": 389,\n\t\"./he.js\": 389,\n\t\"./hi\": 390,\n\t\"./hi.js\": 390,\n\t\"./hr\": 391,\n\t\"./hr.js\": 391,\n\t\"./hu\": 392,\n\t\"./hu.js\": 392,\n\t\"./hy-am\": 393,\n\t\"./hy-am.js\": 393,\n\t\"./id\": 394,\n\t\"./id.js\": 394,\n\t\"./is\": 395,\n\t\"./is.js\": 395,\n\t\"./it\": 396,\n\t\"./it-ch\": 397,\n\t\"./it-ch.js\": 397,\n\t\"./it.js\": 396,\n\t\"./ja\": 398,\n\t\"./ja.js\": 398,\n\t\"./jv\": 399,\n\t\"./jv.js\": 399,\n\t\"./ka\": 400,\n\t\"./ka.js\": 400,\n\t\"./kk\": 401,\n\t\"./kk.js\": 401,\n\t\"./km\": 402,\n\t\"./km.js\": 402,\n\t\"./kn\": 403,\n\t\"./kn.js\": 403,\n\t\"./ko\": 404,\n\t\"./ko.js\": 404,\n\t\"./ku\": 405,\n\t\"./ku.js\": 405,\n\t\"./ky\": 406,\n\t\"./ky.js\": 406,\n\t\"./lb\": 407,\n\t\"./lb.js\": 407,\n\t\"./lo\": 408,\n\t\"./lo.js\": 408,\n\t\"./lt\": 409,\n\t\"./lt.js\": 409,\n\t\"./lv\": 410,\n\t\"./lv.js\": 410,\n\t\"./me\": 411,\n\t\"./me.js\": 411,\n\t\"./mi\": 412,\n\t\"./mi.js\": 412,\n\t\"./mk\": 413,\n\t\"./mk.js\": 413,\n\t\"./ml\": 414,\n\t\"./ml.js\": 414,\n\t\"./mn\": 415,\n\t\"./mn.js\": 415,\n\t\"./mr\": 416,\n\t\"./mr.js\": 416,\n\t\"./ms\": 417,\n\t\"./ms-my\": 418,\n\t\"./ms-my.js\": 418,\n\t\"./ms.js\": 417,\n\t\"./mt\": 419,\n\t\"./mt.js\": 419,\n\t\"./my\": 420,\n\t\"./my.js\": 420,\n\t\"./nb\": 421,\n\t\"./nb.js\": 421,\n\t\"./ne\": 422,\n\t\"./ne.js\": 422,\n\t\"./nl\": 423,\n\t\"./nl-be\": 424,\n\t\"./nl-be.js\": 424,\n\t\"./nl.js\": 423,\n\t\"./nn\": 425,\n\t\"./nn.js\": 425,\n\t\"./oc-lnc\": 426,\n\t\"./oc-lnc.js\": 426,\n\t\"./pa-in\": 427,\n\t\"./pa-in.js\": 427,\n\t\"./pl\": 428,\n\t\"./pl.js\": 428,\n\t\"./pt\": 429,\n\t\"./pt-br\": 430,\n\t\"./pt-br.js\": 430,\n\t\"./pt.js\": 429,\n\t\"./ro\": 431,\n\t\"./ro.js\": 431,\n\t\"./ru\": 432,\n\t\"./ru.js\": 432,\n\t\"./sd\": 433,\n\t\"./sd.js\": 433,\n\t\"./se\": 434,\n\t\"./se.js\": 434,\n\t\"./si\": 435,\n\t\"./si.js\": 435,\n\t\"./sk\": 436,\n\t\"./sk.js\": 436,\n\t\"./sl\": 437,\n\t\"./sl.js\": 437,\n\t\"./sq\": 438,\n\t\"./sq.js\": 438,\n\t\"./sr\": 439,\n\t\"./sr-cyrl\": 440,\n\t\"./sr-cyrl.js\": 440,\n\t\"./sr.js\": 439,\n\t\"./ss\": 441,\n\t\"./ss.js\": 441,\n\t\"./sv\": 442,\n\t\"./sv.js\": 442,\n\t\"./sw\": 443,\n\t\"./sw.js\": 443,\n\t\"./ta\": 444,\n\t\"./ta.js\": 444,\n\t\"./te\": 445,\n\t\"./te.js\": 445,\n\t\"./tet\": 446,\n\t\"./tet.js\": 446,\n\t\"./tg\": 447,\n\t\"./tg.js\": 447,\n\t\"./th\": 448,\n\t\"./th.js\": 448,\n\t\"./tl-ph\": 449,\n\t\"./tl-ph.js\": 449,\n\t\"./tlh\": 450,\n\t\"./tlh.js\": 450,\n\t\"./tr\": 451,\n\t\"./tr.js\": 451,\n\t\"./tzl\": 452,\n\t\"./tzl.js\": 452,\n\t\"./tzm\": 453,\n\t\"./tzm-latn\": 454,\n\t\"./tzm-latn.js\": 454,\n\t\"./tzm.js\": 453,\n\t\"./ug-cn\": 455,\n\t\"./ug-cn.js\": 455,\n\t\"./uk\": 456,\n\t\"./uk.js\": 456,\n\t\"./ur\": 457,\n\t\"./ur.js\": 457,\n\t\"./uz\": 458,\n\t\"./uz-latn\": 459,\n\t\"./uz-latn.js\": 459,\n\t\"./uz.js\": 458,\n\t\"./vi\": 460,\n\t\"./vi.js\": 460,\n\t\"./x-pseudo\": 461,\n\t\"./x-pseudo.js\": 461,\n\t\"./yo\": 462,\n\t\"./yo.js\": 462,\n\t\"./zh-cn\": 110,\n\t\"./zh-cn.js\": 110,\n\t\"./zh-hk\": 463,\n\t\"./zh-hk.js\": 463,\n\t\"./zh-mo\": 464,\n\t\"./zh-mo.js\": 464,\n\t\"./zh-tw\": 465,\n\t\"./zh-tw.js\": 465\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 1272;\n\n/***/ }),\n/* 1273 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _DateConstants = __webpack_require__(335);\n\nvar _DateConstants2 = _interopRequireDefault(_DateConstants);\n\nvar _util = __webpack_require__(32);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nfunction isSameDay(one, two) {\n return one && two && one.isSame(two, 'day');\n}\n\nfunction beforeCurrentMonthYear(current, today) {\n if (current.year() < today.year()) {\n return 1;\n }\n return current.year() === today.year() && current.month() < today.month();\n}\n\nfunction afterCurrentMonthYear(current, today) {\n if (current.year() > today.year()) {\n return 1;\n }\n return current.year() === today.year() && current.month() > today.month();\n}\n\nfunction getIdFromDate(date) {\n return 'rc-calendar-' + date.year() + '-' + date.month() + '-' + date.date();\n}\n\nvar DateTBody = function (_React$Component) {\n _inherits(DateTBody, _React$Component);\n\n function DateTBody() {\n _classCallCheck(this, DateTBody);\n\n return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n DateTBody.prototype.render = function render() {\n var props = this.props;\n var contentRender = props.contentRender,\n prefixCls = props.prefixCls,\n selectedValue = props.selectedValue,\n value = props.value,\n showWeekNumber = props.showWeekNumber,\n dateRender = props.dateRender,\n disabledDate = props.disabledDate,\n hoverValue = props.hoverValue;\n\n var iIndex = void 0;\n var jIndex = void 0;\n var current = void 0;\n var dateTable = [];\n var today = (0, _util.getTodayTime)(value);\n var cellClass = prefixCls + '-cell';\n var weekNumberCellClass = prefixCls + '-week-number-cell';\n var dateClass = prefixCls + '-date';\n var todayClass = prefixCls + '-today';\n var selectedClass = prefixCls + '-selected-day';\n var selectedDateClass = prefixCls + '-selected-date'; // do not move with mouse operation\n var selectedStartDateClass = prefixCls + '-selected-start-date';\n var selectedEndDateClass = prefixCls + '-selected-end-date';\n var inRangeClass = prefixCls + '-in-range-cell';\n var lastMonthDayClass = prefixCls + '-last-month-cell';\n var nextMonthDayClass = prefixCls + '-next-month-btn-day';\n var disabledClass = prefixCls + '-disabled-cell';\n var firstDisableClass = prefixCls + '-disabled-cell-first-of-row';\n var lastDisableClass = prefixCls + '-disabled-cell-last-of-row';\n var lastDayOfMonthClass = prefixCls + '-last-day-of-month';\n var month1 = value.clone();\n month1.date(1);\n var day = month1.day();\n var lastMonthDiffDay = (day + 7 - value.localeData().firstDayOfWeek()) % 7;\n // calculate last month\n var lastMonth1 = month1.clone();\n lastMonth1.add(0 - lastMonthDiffDay, 'days');\n var passed = 0;\n\n for (iIndex = 0; iIndex < _DateConstants2[\"default\"].DATE_ROW_COUNT; iIndex++) {\n for (jIndex = 0; jIndex < _DateConstants2[\"default\"].DATE_COL_COUNT; jIndex++) {\n current = lastMonth1;\n if (passed) {\n current = current.clone();\n current.add(passed, 'days');\n }\n dateTable.push(current);\n passed++;\n }\n }\n var tableHtml = [];\n passed = 0;\n\n for (iIndex = 0; iIndex < _DateConstants2[\"default\"].DATE_ROW_COUNT; iIndex++) {\n var _cx;\n\n var isCurrentWeek = void 0;\n var weekNumberCell = void 0;\n var isActiveWeek = false;\n var dateCells = [];\n if (showWeekNumber) {\n weekNumberCell = _react2[\"default\"].createElement(\n 'td',\n {\n key: dateTable[passed].week(),\n role: 'gridcell',\n className: weekNumberCellClass\n },\n dateTable[passed].week()\n );\n }\n for (jIndex = 0; jIndex < _DateConstants2[\"default\"].DATE_COL_COUNT; jIndex++) {\n var next = null;\n var last = null;\n current = dateTable[passed];\n if (jIndex < _DateConstants2[\"default\"].DATE_COL_COUNT - 1) {\n next = dateTable[passed + 1];\n }\n if (jIndex > 0) {\n last = dateTable[passed - 1];\n }\n var cls = cellClass;\n var disabled = false;\n var selected = false;\n\n if (isSameDay(current, today)) {\n cls += ' ' + todayClass;\n isCurrentWeek = true;\n }\n\n var isBeforeCurrentMonthYear = beforeCurrentMonthYear(current, value);\n var isAfterCurrentMonthYear = afterCurrentMonthYear(current, value);\n\n if (selectedValue && Array.isArray(selectedValue)) {\n var rangeValue = hoverValue.length ? hoverValue : selectedValue;\n if (!isBeforeCurrentMonthYear && !isAfterCurrentMonthYear) {\n var startValue = rangeValue[0];\n var endValue = rangeValue[1];\n if (startValue) {\n if (isSameDay(current, startValue)) {\n selected = true;\n isActiveWeek = true;\n cls += ' ' + selectedStartDateClass;\n }\n }\n if (startValue && endValue) {\n if (isSameDay(current, endValue)) {\n selected = true;\n isActiveWeek = true;\n cls += ' ' + selectedEndDateClass;\n } else if (current.isAfter(startValue, 'day') && current.isBefore(endValue, 'day')) {\n cls += ' ' + inRangeClass;\n }\n }\n }\n } else if (isSameDay(current, value)) {\n // keyboard change value, highlight works\n selected = true;\n isActiveWeek = true;\n }\n\n if (isSameDay(current, selectedValue)) {\n cls += ' ' + selectedDateClass;\n }\n\n if (isBeforeCurrentMonthYear) {\n cls += ' ' + lastMonthDayClass;\n }\n\n if (isAfterCurrentMonthYear) {\n cls += ' ' + nextMonthDayClass;\n }\n\n if (current.clone().endOf('month').date() === current.date()) {\n cls += ' ' + lastDayOfMonthClass;\n }\n\n if (disabledDate) {\n if (disabledDate(current, value)) {\n disabled = true;\n\n if (!last || !disabledDate(last, value)) {\n cls += ' ' + firstDisableClass;\n }\n\n if (!next || !disabledDate(next, value)) {\n cls += ' ' + lastDisableClass;\n }\n }\n }\n\n if (selected) {\n cls += ' ' + selectedClass;\n }\n\n if (disabled) {\n cls += ' ' + disabledClass;\n }\n\n var dateHtml = void 0;\n if (dateRender) {\n dateHtml = dateRender(current, value);\n } else {\n var content = contentRender ? contentRender(current, value) : current.date();\n dateHtml = _react2[\"default\"].createElement(\n 'div',\n {\n key: getIdFromDate(current),\n className: dateClass,\n 'aria-selected': selected,\n 'aria-disabled': disabled\n },\n content\n );\n }\n\n dateCells.push(_react2[\"default\"].createElement(\n 'td',\n {\n key: passed,\n onClick: disabled ? undefined : props.onSelect.bind(null, current),\n onMouseEnter: disabled ? undefined : props.onDayHover && props.onDayHover.bind(null, current) || undefined,\n role: 'gridcell',\n title: (0, _util.getTitleString)(current),\n className: cls\n },\n dateHtml\n ));\n\n passed++;\n }\n\n tableHtml.push(_react2[\"default\"].createElement(\n 'tr',\n {\n key: iIndex,\n role: 'row',\n className: (0, _classnames2[\"default\"])((_cx = {}, _defineProperty(_cx, prefixCls + '-current-week', isCurrentWeek), _defineProperty(_cx, prefixCls + '-active-week', isActiveWeek), _cx))\n },\n weekNumberCell,\n dateCells\n ));\n }\n return _react2[\"default\"].createElement(\n 'tbody',\n { className: prefixCls + '-tbody' },\n tableHtml\n );\n };\n\n return DateTBody;\n}(_react2[\"default\"].Component);\n\nDateTBody.propTypes = {\n contentRender: _propTypes2[\"default\"].func,\n dateRender: _propTypes2[\"default\"].func,\n disabledDate: _propTypes2[\"default\"].func,\n prefixCls: _propTypes2[\"default\"].string,\n selectedValue: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].object, _propTypes2[\"default\"].arrayOf(_propTypes2[\"default\"].object)]),\n value: _propTypes2[\"default\"].object,\n hoverValue: _propTypes2[\"default\"].any,\n showWeekNumber: _propTypes2[\"default\"].bool\n};\nDateTBody.defaultProps = {\n hoverValue: []\n};\nexports[\"default\"] = DateTBody;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1274 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _reactLifecyclesCompat = __webpack_require__(14);\n\nvar _MonthTable = __webpack_require__(1275);\n\nvar _MonthTable2 = _interopRequireDefault(_MonthTable);\n\nvar _DateInput = __webpack_require__(78);\n\nvar _DateInput2 = _interopRequireDefault(_DateInput);\n\nvar _moment = __webpack_require__(4);\n\nvar _moment2 = _interopRequireDefault(_moment);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nfunction goYear(direction) {\n var next = this.state.value.clone();\n next.add(direction, 'year');\n this.setAndChangeValue(next);\n}\n\nfunction noop() {}\n\nvar MonthPanel = function (_React$Component) {\n _inherits(MonthPanel, _React$Component);\n\n function MonthPanel(props) {\n _classCallCheck(this, MonthPanel);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));\n\n _this.setAndChangeValue = function (value) {\n _this.setValue(value);\n _this.props.onChange(value);\n };\n\n _this.setAndSelectValue = function (value) {\n _this.setValue(value);\n _this.props.onSelect(value);\n };\n\n _this.setValue = function (value) {\n if (!('value' in _this.props)) {\n _this.setState({\n value: value\n });\n }\n };\n\n _this.nextYear = goYear.bind(_this, 1);\n _this.previousYear = goYear.bind(_this, -1);\n _this.prefixCls = props.rootPrefixCls + '-month-panel';\n\n _this.state = {\n value: props.value || props.defaultValue\n };\n return _this;\n }\n\n MonthPanel.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps) {\n var newState = {};\n\n if ('value' in nextProps) {\n newState = {\n value: nextProps.value\n };\n }\n\n return newState;\n };\n\n MonthPanel.prototype.render = function render() {\n var props = this.props;\n var value = this.state.value;\n var locale = props.locale,\n cellRender = props.cellRender,\n contentRender = props.contentRender,\n renderFooter = props.renderFooter,\n rootPrefixCls = props.rootPrefixCls;\n\n var year = value.year();\n var prefixCls = this.prefixCls;\n\n var footer = renderFooter && renderFooter('month');\n\n return _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls, style: props.style, tabIndex: '0' },\n _react2[\"default\"].createElement(\n 'div',\n null,\n _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-header' },\n _react2[\"default\"].createElement('a', {\n className: prefixCls + '-prev-year-btn',\n role: 'button',\n onClick: this.previousYear,\n title: locale.previousYear\n }),\n _react2[\"default\"].createElement(\n 'a',\n {\n className: prefixCls + '-year-select',\n role: 'button',\n onClick: props.onYearPanelShow,\n title: locale.yearSelect\n },\n _react2[\"default\"].createElement(\n 'span',\n { className: prefixCls + '-year-select-content' },\n year\n ),\n _react2[\"default\"].createElement(\n 'span',\n { className: prefixCls + '-year-select-arrow' },\n 'x'\n )\n ),\n _react2[\"default\"].createElement('a', {\n className: prefixCls + '-next-year-btn',\n role: 'button',\n onClick: this.nextYear,\n title: locale.nextYear\n })\n ),\n _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-body' },\n _react2[\"default\"].createElement(_MonthTable2[\"default\"], {\n disabledDate: props.disabledDate,\n onSelect: this.setAndSelectValue,\n locale: locale,\n value: value,\n cellRender: cellRender,\n contentRender: contentRender,\n prefixCls: prefixCls\n })\n ),\n footer && _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-footer' },\n footer\n )\n )\n );\n };\n\n return MonthPanel;\n}(_react2[\"default\"].Component);\n\nMonthPanel.propTypes = {\n onChange: _propTypes2[\"default\"].func,\n disabledDate: _propTypes2[\"default\"].func,\n onSelect: _propTypes2[\"default\"].func,\n renderFooter: _propTypes2[\"default\"].func,\n rootPrefixCls: _propTypes2[\"default\"].string,\n value: _propTypes2[\"default\"].object,\n defaultValue: _propTypes2[\"default\"].object\n};\nMonthPanel.defaultProps = {\n onChange: noop,\n onSelect: noop\n};\n\n\n(0, _reactLifecyclesCompat.polyfill)(MonthPanel);\n\nexports[\"default\"] = MonthPanel;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1275 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _index = __webpack_require__(32);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar ROW = 4;\nvar COL = 3;\n\nfunction chooseMonth(month) {\n var next = this.state.value.clone();\n next.month(month);\n this.setAndSelectValue(next);\n}\n\nfunction noop() {}\n\nvar MonthTable = function (_Component) {\n _inherits(MonthTable, _Component);\n\n function MonthTable(props) {\n _classCallCheck(this, MonthTable);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props));\n\n _this.state = {\n value: props.value\n };\n return _this;\n }\n\n MonthTable.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n if ('value' in nextProps) {\n this.setState({\n value: nextProps.value\n });\n }\n };\n\n MonthTable.prototype.setAndSelectValue = function setAndSelectValue(value) {\n this.setState({\n value: value\n });\n this.props.onSelect(value);\n };\n\n MonthTable.prototype.months = function months() {\n var value = this.state.value;\n var current = value.clone();\n var months = [];\n var index = 0;\n for (var rowIndex = 0; rowIndex < ROW; rowIndex++) {\n months[rowIndex] = [];\n for (var colIndex = 0; colIndex < COL; colIndex++) {\n current.month(index);\n var content = (0, _index.getMonthName)(current);\n months[rowIndex][colIndex] = {\n value: index,\n content: content,\n title: content\n };\n index++;\n }\n }\n return months;\n };\n\n MonthTable.prototype.render = function render() {\n var _this2 = this;\n\n var props = this.props;\n var value = this.state.value;\n var today = (0, _index.getTodayTime)(value);\n var months = this.months();\n var currentMonth = value.month();\n var prefixCls = props.prefixCls,\n locale = props.locale,\n contentRender = props.contentRender,\n cellRender = props.cellRender;\n\n var monthsEls = months.map(function (month, index) {\n var tds = month.map(function (monthData) {\n var _classNameMap;\n\n var disabled = false;\n if (props.disabledDate) {\n var testValue = value.clone();\n testValue.month(monthData.value);\n disabled = props.disabledDate(testValue);\n }\n var classNameMap = (_classNameMap = {}, _defineProperty(_classNameMap, prefixCls + '-cell', 1), _defineProperty(_classNameMap, prefixCls + '-cell-disabled', disabled), _defineProperty(_classNameMap, prefixCls + '-selected-cell', monthData.value === currentMonth), _defineProperty(_classNameMap, prefixCls + '-current-cell', today.year() === value.year() && monthData.value === today.month()), _classNameMap);\n var cellEl = void 0;\n if (cellRender) {\n var currentValue = value.clone();\n currentValue.month(monthData.value);\n cellEl = cellRender(currentValue, locale);\n } else {\n var content = void 0;\n if (contentRender) {\n var _currentValue = value.clone();\n _currentValue.month(monthData.value);\n content = contentRender(_currentValue, locale);\n } else {\n content = monthData.content;\n }\n cellEl = _react2[\"default\"].createElement(\n 'a',\n { className: prefixCls + '-month' },\n content\n );\n }\n return _react2[\"default\"].createElement(\n 'td',\n {\n role: 'gridcell',\n key: monthData.value,\n onClick: disabled ? null : chooseMonth.bind(_this2, monthData.value),\n title: monthData.title,\n className: (0, _classnames2[\"default\"])(classNameMap)\n },\n cellEl\n );\n });\n return _react2[\"default\"].createElement(\n 'tr',\n { key: index, role: 'row' },\n tds\n );\n });\n\n return _react2[\"default\"].createElement(\n 'table',\n { className: prefixCls + '-table', cellSpacing: '0', role: 'grid' },\n _react2[\"default\"].createElement(\n 'tbody',\n { className: prefixCls + '-tbody' },\n monthsEls\n )\n );\n };\n\n return MonthTable;\n}(_react.Component);\n\nMonthTable.defaultProps = {\n onSelect: noop\n};\nMonthTable.propTypes = {\n onSelect: _propTypes2[\"default\"].func,\n cellRender: _propTypes2[\"default\"].func,\n prefixCls: _propTypes2[\"default\"].string,\n value: _propTypes2[\"default\"].object\n};\nexports[\"default\"] = MonthTable;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1276 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = all;\n\nvar _createChainableTypeChecker = __webpack_require__(185);\n\nvar _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction all() {\n for (var _len = arguments.length, validators = Array(_len), _key = 0; _key < _len; _key++) {\n validators[_key] = arguments[_key];\n }\n\n function allPropTypes() {\n for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n var error = null;\n\n validators.forEach(function (validator) {\n if (error != null) {\n return;\n }\n\n var result = validator.apply(undefined, args);\n if (result != null) {\n error = result;\n }\n });\n\n return error;\n }\n\n return (0, _createChainableTypeChecker2.default)(allPropTypes);\n} /**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\n\n/***/ }),\n/* 1277 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; /**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\n\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _createChainableTypeChecker = __webpack_require__(185);\n\nvar _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = typeof propValue === 'undefined' ? 'undefined' : _typeof(propValue);\n\n if (_react2.default.isValidElement(propValue)) {\n return new Error('Invalid ' + location + ' `' + propFullName + '` of type ReactElement ' + ('supplied to `' + componentName + '`, expected a ReactComponent or a ') + 'DOMElement. You can usually obtain a ReactComponent or DOMElement ' + 'from a ReactElement by attaching a ref to it.');\n }\n\n if ((propType !== 'object' || typeof propValue.render !== 'function') && propValue.nodeType !== 1) {\n return new Error('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected a ReactComponent or a ') + 'DOMElement.');\n }\n\n return null;\n}\n\nexports.default = (0, _createChainableTypeChecker2.default)(validate);\n\n/***/ }),\n/* 1278 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = deprecated;\n\nvar _warning = __webpack_require__(6);\n\nvar _warning2 = _interopRequireDefault(_warning);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar warned = {}; /**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nfunction deprecated(validator, reason) {\n return function validate(props, propName, componentName, location, propFullName) {\n var componentNameSafe = componentName || '<>';\n var propFullNameSafe = propFullName || propName;\n\n if (props[propName] != null) {\n var messageKey = componentName + '.' + propName;\n\n (0, _warning2.default)(warned[messageKey], 'The ' + location + ' `' + propFullNameSafe + '` of ' + ('`' + componentNameSafe + '` is deprecated. ' + reason + '.'));\n\n warned[messageKey] = true;\n }\n\n for (var _len = arguments.length, args = Array(_len > 5 ? _len - 5 : 0), _key = 5; _key < _len; _key++) {\n args[_key - 5] = arguments[_key];\n }\n\n return validator.apply(undefined, [props, propName, componentName, location, propFullName].concat(args));\n };\n}\n\n/* eslint-disable no-underscore-dangle */\nfunction _resetWarned() {\n warned = {};\n}\n\ndeprecated._resetWarned = _resetWarned;\n/* eslint-enable no-underscore-dangle */\n\n/***/ }),\n/* 1279 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; /**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\n\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _createChainableTypeChecker = __webpack_require__(185);\n\nvar _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction elementType(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = typeof propValue === 'undefined' ? 'undefined' : _typeof(propValue);\n\n if (_react2.default.isValidElement(propValue)) {\n return new Error('Invalid ' + location + ' `' + propFullName + '` of type ReactElement ' + ('supplied to `' + componentName + '`, expected an element type (a string ') + 'or a ReactClass).');\n }\n\n if (propType !== 'function' && propType !== 'string') {\n return new Error('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected an element type (a string ') + 'or a ReactClass).');\n }\n\n return null;\n}\n\nexports.default = (0, _createChainableTypeChecker2.default)(elementType);\n\n/***/ }),\n/* 1280 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = isRequiredForA11y;\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nfunction isRequiredForA11y(validator) {\n return function validate(props, propName, componentName, location, propFullName) {\n var componentNameSafe = componentName || '<>';\n var propFullNameSafe = propFullName || propName;\n\n if (props[propName] == null) {\n return new Error('The ' + location + ' `' + propFullNameSafe + '` is required to make ' + ('`' + componentNameSafe + '` accessible for users of assistive ') + 'technologies such as screen readers.');\n }\n\n for (var _len = arguments.length, args = Array(_len > 5 ? _len - 5 : 0), _key = 5; _key < _len; _key++) {\n args[_key - 5] = arguments[_key];\n }\n\n return validator.apply(undefined, [props, propName, componentName, location, propFullName].concat(args));\n };\n}\n\n/***/ }),\n/* 1281 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = splitComponentProps;\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nfunction _objectEntries(obj) {\n var entries = [];\n var keys = Object.keys(obj);\n\n for (var k = 0; k < keys.length; ++k) {\n entries.push([keys[k], obj[keys[k]]]);\n }return entries;\n}\n\n/**\n * 分割要传入父元素和子元素的props\n * @param {[object]} props 传入的属性\n * @param {[reactElement]} Component 组件\n * @return {[array]} 返回数组,第一个元素为父元素props对象,第二个子元素props对象\n */\nfunction splitComponentProps(props, Component) {\n var componentPropTypes = Component.propTypes;\n\n var parentProps = {};\n var childProps = {};\n\n _objectEntries(props).forEach(function (_ref) {\n var propName = _ref[0],\n propValue = _ref[1];\n\n if (componentPropTypes[propName]) {\n parentProps[propName] = propValue;\n } else {\n childProps[propName] = propValue;\n }\n });\n\n return [parentProps, childProps];\n}\n\n/***/ }),\n/* 1282 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nfunction createChainedFunction() {\n for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) {\n funcs[_key] = arguments[_key];\n }\n\n return funcs.filter(function (f) {\n return f != null;\n }).reduce(function (acc, f) {\n if (typeof f !== 'function') {\n throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.');\n }\n\n if (acc === null) {\n return f;\n }\n\n return function chainedFunction() {\n for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n acc.apply(this, args);\n f.apply(this, args);\n };\n }, null);\n}\nexports.default = createChainedFunction;\n\n/***/ }),\n/* 1283 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\n\n\n/**\n * @ignore\n * some key-codes definition and utils from closure-library\n * @author yiminghe@gmail.com\n */\n\nvar KeyCode = {\n /**\n * MAC_ENTER\n */\n MAC_ENTER: 3,\n /**\n * BACKSPACE\n */\n BACKSPACE: 8,\n /**\n * TAB\n */\n TAB: 9,\n /**\n * NUMLOCK on FF/Safari Mac\n */\n NUM_CENTER: 12, // NUMLOCK on FF/Safari Mac\n /**\n * ENTER\n */\n ENTER: 13,\n /**\n * SHIFT\n */\n SHIFT: 16,\n /**\n * CTRL\n */\n CTRL: 17,\n /**\n * ALT\n */\n ALT: 18,\n /**\n * PAUSE\n */\n PAUSE: 19,\n /**\n * CAPS_LOCK\n */\n CAPS_LOCK: 20,\n /**\n * ESC\n */\n ESC: 27,\n /**\n * SPACE\n */\n SPACE: 32,\n /**\n * PAGE_UP\n */\n PAGE_UP: 33, // also NUM_NORTH_EAST\n /**\n * PAGE_DOWN\n */\n PAGE_DOWN: 34, // also NUM_SOUTH_EAST\n /**\n * END\n */\n END: 35, // also NUM_SOUTH_WEST\n /**\n * HOME\n */\n HOME: 36, // also NUM_NORTH_WEST\n /**\n * LEFT\n */\n LEFT: 37, // also NUM_WEST\n /**\n * UP\n */\n UP: 38, // also NUM_NORTH\n /**\n * RIGHT\n */\n RIGHT: 39, // also NUM_EAST\n /**\n * DOWN\n */\n DOWN: 40, // also NUM_SOUTH\n /**\n * PRINT_SCREEN\n */\n PRINT_SCREEN: 44,\n /**\n * INSERT\n */\n INSERT: 45, // also NUM_INSERT\n /**\n * DELETE\n */\n DELETE: 46, // also NUM_DELETE\n /**\n * ZERO\n */\n ZERO: 48,\n /**\n * ONE\n */\n ONE: 49,\n /**\n * TWO\n */\n TWO: 50,\n /**\n * THREE\n */\n THREE: 51,\n /**\n * FOUR\n */\n FOUR: 52,\n /**\n * FIVE\n */\n FIVE: 53,\n /**\n * SIX\n */\n SIX: 54,\n /**\n * SEVEN\n */\n SEVEN: 55,\n /**\n * EIGHT\n */\n EIGHT: 56,\n /**\n * NINE\n */\n NINE: 57,\n /**\n * QUESTION_MARK\n */\n QUESTION_MARK: 63, // needs localization\n /**\n * A\n */\n A: 65,\n /**\n * B\n */\n B: 66,\n /**\n * C\n */\n C: 67,\n /**\n * D\n */\n D: 68,\n /**\n * E\n */\n E: 69,\n /**\n * F\n */\n F: 70,\n /**\n * G\n */\n G: 71,\n /**\n * H\n */\n H: 72,\n /**\n * I\n */\n I: 73,\n /**\n * J\n */\n J: 74,\n /**\n * K\n */\n K: 75,\n /**\n * L\n */\n L: 76,\n /**\n * M\n */\n M: 77,\n /**\n * N\n */\n N: 78,\n /**\n * O\n */\n O: 79,\n /**\n * P\n */\n P: 80,\n /**\n * Q\n */\n Q: 81,\n /**\n * R\n */\n R: 82,\n /**\n * S\n */\n S: 83,\n /**\n * T\n */\n T: 84,\n /**\n * U\n */\n U: 85,\n /**\n * V\n */\n V: 86,\n /**\n * W\n */\n W: 87,\n /**\n * X\n */\n X: 88,\n /**\n * Y\n */\n Y: 89,\n /**\n * Z\n */\n Z: 90,\n /**\n * META\n */\n META: 91, // WIN_KEY_LEFT\n /**\n * WIN_KEY_RIGHT\n */\n WIN_KEY_RIGHT: 92,\n /**\n * CONTEXT_MENU\n */\n CONTEXT_MENU: 93,\n /**\n * NUM_ZERO\n */\n NUM_ZERO: 96,\n /**\n * NUM_ONE\n */\n NUM_ONE: 97,\n /**\n * NUM_TWO\n */\n NUM_TWO: 98,\n /**\n * NUM_THREE\n */\n NUM_THREE: 99,\n /**\n * NUM_FOUR\n */\n NUM_FOUR: 100,\n /**\n * NUM_FIVE\n */\n NUM_FIVE: 101,\n /**\n * NUM_SIX\n */\n NUM_SIX: 102,\n /**\n * NUM_SEVEN\n */\n NUM_SEVEN: 103,\n /**\n * NUM_EIGHT\n */\n NUM_EIGHT: 104,\n /**\n * NUM_NINE\n */\n NUM_NINE: 105,\n /**\n * NUM_MULTIPLY\n */\n NUM_MULTIPLY: 106,\n /**\n * NUM_PLUS\n */\n NUM_PLUS: 107,\n /**\n * NUM_MINUS\n */\n NUM_MINUS: 109,\n /**\n * NUM_PERIOD\n */\n NUM_PERIOD: 110,\n /**\n * NUM_DIVISION\n */\n NUM_DIVISION: 111,\n /**\n * F1\n */\n F1: 112,\n /**\n * F2\n */\n F2: 113,\n /**\n * F3\n */\n F3: 114,\n /**\n * F4\n */\n F4: 115,\n /**\n * F5\n */\n F5: 116,\n /**\n * F6\n */\n F6: 117,\n /**\n * F7\n */\n F7: 118,\n /**\n * F8\n */\n F8: 119,\n /**\n * F9\n */\n F9: 120,\n /**\n * F10\n */\n F10: 121,\n /**\n * F11\n */\n F11: 122,\n /**\n * F12\n */\n F12: 123,\n /**\n * NUMLOCK\n */\n NUMLOCK: 144,\n /**\n * SEMICOLON\n */\n SEMICOLON: 186, // needs localization\n /**\n * DASH\n */\n DASH: 189, // needs localization\n /**\n * EQUALS\n */\n EQUALS: 187, // needs localization\n /**\n * COMMA\n */\n COMMA: 188, // needs localization\n /**\n * PERIOD\n */\n PERIOD: 190, // needs localization\n /**\n * SLASH\n */\n SLASH: 191, // needs localization\n /**\n * APOSTROPHE\n */\n APOSTROPHE: 192, // needs localization\n /**\n * SINGLE_QUOTE\n */\n SINGLE_QUOTE: 222, // needs localization\n /**\n * OPEN_SQUARE_BRACKET\n */\n OPEN_SQUARE_BRACKET: 219, // needs localization\n /**\n * BACKSLASH\n */\n BACKSLASH: 220, // needs localization\n /**\n * CLOSE_SQUARE_BRACKET\n */\n CLOSE_SQUARE_BRACKET: 221, // needs localization\n /**\n * WIN_KEY\n */\n WIN_KEY: 224,\n /**\n * MAC_FF_META\n */\n MAC_FF_META: 224, // Firefox (Gecko) fires this for the meta key instead of 91\n /**\n * WIN_IME\n */\n WIN_IME: 229\n};\n\n/*\n whether text and modified key is entered at the same time.\n */\nKeyCode.isTextModifyingKeyEvent = function isTextModifyingKeyEvent(e) {\n var keyCode = e.keyCode;\n if (e.altKey && !e.ctrlKey || e.metaKey ||\n // Function keys don't generate text\n keyCode >= KeyCode.F1 && keyCode <= KeyCode.F12) {\n return false;\n }\n\n // The following keys are quite harmless, even in combination with\n // CTRL, ALT or SHIFT.\n switch (keyCode) {\n case KeyCode.ALT:\n case KeyCode.CAPS_LOCK:\n case KeyCode.CONTEXT_MENU:\n case KeyCode.CTRL:\n case KeyCode.DOWN:\n case KeyCode.END:\n case KeyCode.ESC:\n case KeyCode.HOME:\n case KeyCode.INSERT:\n case KeyCode.LEFT:\n case KeyCode.MAC_FF_META:\n case KeyCode.META:\n case KeyCode.NUMLOCK:\n case KeyCode.NUM_CENTER:\n case KeyCode.PAGE_DOWN:\n case KeyCode.PAGE_UP:\n case KeyCode.PAUSE:\n case KeyCode.PRINT_SCREEN:\n case KeyCode.RIGHT:\n case KeyCode.SHIFT:\n case KeyCode.UP:\n case KeyCode.WIN_KEY:\n case KeyCode.WIN_KEY_RIGHT:\n return false;\n default:\n return true;\n }\n};\n\n/*\n whether character is entered.\n */\nKeyCode.isCharacterKey = function isCharacterKey(keyCode) {\n if (keyCode >= KeyCode.ZERO && keyCode <= KeyCode.NINE) {\n return true;\n }\n\n if (keyCode >= KeyCode.NUM_ZERO && keyCode <= KeyCode.NUM_MULTIPLY) {\n return true;\n }\n\n if (keyCode >= KeyCode.A && keyCode <= KeyCode.Z) {\n return true;\n }\n\n // Safari sends zero key code for non-latin characters.\n if (window.navigation.userAgent.indexOf('WebKit') !== -1 && keyCode === 0) {\n return true;\n }\n\n switch (keyCode) {\n case KeyCode.SPACE:\n case KeyCode.QUESTION_MARK:\n case KeyCode.NUM_PLUS:\n case KeyCode.NUM_MINUS:\n case KeyCode.NUM_PERIOD:\n case KeyCode.NUM_DIVISION:\n case KeyCode.SEMICOLON:\n case KeyCode.DASH:\n case KeyCode.EQUALS:\n case KeyCode.COMMA:\n case KeyCode.PERIOD:\n case KeyCode.SLASH:\n case KeyCode.APOSTROPHE:\n case KeyCode.SINGLE_QUOTE:\n case KeyCode.OPEN_SQUARE_BRACKET:\n case KeyCode.BACKSLASH:\n case KeyCode.CLOSE_SQUARE_BRACKET:\n return true;\n default:\n return false;\n }\n};\n\nmodule.exports = KeyCode;\n\n/***/ }),\n/* 1284 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = contains;\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nfunction contains(root, n) {\n var node = n;\n while (node) {\n if (node === root) {\n return true;\n }\n node = node.parentNode;\n }\n\n return false;\n}\n\n/***/ }),\n/* 1285 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; /**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\n\n\nvar _Event = __webpack_require__(1286);\n\nvar _Event2 = _interopRequireDefault(_Event);\n\nvar _componentClasses = __webpack_require__(11);\n\nvar _componentClasses2 = _interopRequireDefault(_componentClasses);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar isCssAnimationSupported = _Event2.default.endEvents.length !== 0;\n\n\nvar capitalPrefixes = ['Webkit', 'Moz', 'O',\n// ms is special .... !\n'ms'];\nvar prefixes = ['-webkit-', '-moz-', '-o-', 'ms-', ''];\n\nfunction getStyleProperty(node, name) {\n var style = window.getComputedStyle(node);\n\n var ret = '';\n for (var i = 0; i < prefixes.length; i++) {\n ret = style.getPropertyValue(prefixes[i] + name);\n if (ret) {\n break;\n }\n }\n return ret;\n}\n\nfunction fixBrowserByTimeout(node) {\n if (isCssAnimationSupported) {\n var transitionDelay = parseFloat(getStyleProperty(node, 'transition-delay')) || 0;\n var transitionDuration = parseFloat(getStyleProperty(node, 'transition-duration')) || 0;\n var animationDelay = parseFloat(getStyleProperty(node, 'animation-delay')) || 0;\n var animationDuration = parseFloat(getStyleProperty(node, 'animation-duration')) || 0;\n var time = Math.max(transitionDuration + transitionDelay, animationDuration + animationDelay);\n // sometimes, browser bug\n node.rcEndAnimTimeout = setTimeout(function () {\n node.rcEndAnimTimeout = null;\n if (node.rcEndListener) {\n node.rcEndListener();\n }\n }, time * 1000 + 200);\n }\n}\n\nfunction clearBrowserBugTimeout(node) {\n if (node.rcEndAnimTimeout) {\n clearTimeout(node.rcEndAnimTimeout);\n node.rcEndAnimTimeout = null;\n }\n}\n\nvar cssAnimation = function cssAnimation(node, transitionName, endCallback) {\n var nameIsObj = (typeof transitionName === 'undefined' ? 'undefined' : _typeof(transitionName)) === 'object';\n var className = nameIsObj ? transitionName.name : transitionName;\n var activeClassName = nameIsObj ? transitionName.active : transitionName + '-active';\n var end = endCallback;\n var start = void 0;\n var active = void 0;\n var nodeClasses = (0, _componentClasses2.default)(node);\n\n if (endCallback && Object.prototype.toString.call(endCallback) === '[object Object]') {\n end = endCallback.end;\n start = endCallback.start;\n active = endCallback.active;\n }\n\n if (node.rcEndListener) {\n node.rcEndListener();\n }\n\n node.rcEndListener = function (e) {\n if (e && e.target !== node) {\n return;\n }\n\n if (node.rcAnimTimeout) {\n clearTimeout(node.rcAnimTimeout);\n node.rcAnimTimeout = null;\n }\n\n clearBrowserBugTimeout(node);\n\n nodeClasses.remove(className);\n nodeClasses.remove(activeClassName);\n\n _Event2.default.removeEndEventListener(node, node.rcEndListener);\n node.rcEndListener = null;\n\n // Usually this optional end is used for informing an owner of\n // a leave animation and telling it to remove the child.\n if (end) {\n end();\n }\n };\n\n _Event2.default.addEndEventListener(node, node.rcEndListener);\n\n if (start) {\n start();\n }\n nodeClasses.add(className);\n\n node.rcAnimTimeout = setTimeout(function () {\n node.rcAnimTimeout = null;\n nodeClasses.add(activeClassName);\n if (active) {\n setTimeout(active, 0);\n }\n fixBrowserByTimeout(node);\n // 30ms for firefox\n }, 30);\n\n return {\n stop: function stop() {\n if (node.rcEndListener) {\n node.rcEndListener();\n }\n }\n };\n};\n\ncssAnimation.style = function (node, style, callback) {\n if (node.rcEndListener) {\n node.rcEndListener();\n }\n\n node.rcEndListener = function (e) {\n if (e && e.target !== node) {\n return;\n }\n\n if (node.rcAnimTimeout) {\n clearTimeout(node.rcAnimTimeout);\n node.rcAnimTimeout = null;\n }\n\n clearBrowserBugTimeout(node);\n\n _Event2.default.removeEndEventListener(node, node.rcEndListener);\n node.rcEndListener = null;\n\n // Usually this optional callback is used for informing an owner of\n // a leave animation and telling it to remove the child.\n if (callback) {\n callback();\n }\n };\n\n _Event2.default.addEndEventListener(node, node.rcEndListener);\n\n node.rcAnimTimeout = setTimeout(function () {\n for (var s in style) {\n if (style.hasOwnProperty(s)) {\n node.style[s] = style[s];\n }\n }\n node.rcAnimTimeout = null;\n fixBrowserByTimeout(node);\n }, 0);\n};\n\ncssAnimation.setTransition = function (node, p, value) {\n var property = p;\n var v = value;\n if (value === undefined) {\n v = property;\n property = '';\n }\n property = property || '';\n capitalPrefixes.forEach(function (prefix) {\n node.style[prefix + 'Transition' + property] = v;\n });\n};\n\ncssAnimation.isCssAnimationSupported = isCssAnimationSupported;\n\nexports.default = cssAnimation;\n\n/***/ }),\n/* 1286 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nvar EVENT_NAME_MAP = {\n transitionend: {\n transition: 'transitionend',\n WebkitTransition: 'webkitTransitionEnd',\n MozTransition: 'mozTransitionEnd',\n OTransition: 'oTransitionEnd',\n msTransition: 'MSTransitionEnd'\n },\n\n animationend: {\n animation: 'animationend',\n WebkitAnimation: 'webkitAnimationEnd',\n MozAnimation: 'mozAnimationEnd',\n OAnimation: 'oAnimationEnd',\n msAnimation: 'MSAnimationEnd'\n }\n};\n\nvar endEvents = [];\n\nfunction detectEvents() {\n var testEl = document.createElement('div');\n var style = testEl.style;\n\n if (!('AnimationEvent' in window)) {\n delete EVENT_NAME_MAP.animationend.animation;\n }\n\n if (!('TransitionEvent' in window)) {\n delete EVENT_NAME_MAP.transitionend.transition;\n }\n\n for (var baseEventName in EVENT_NAME_MAP) {\n if (EVENT_NAME_MAP.hasOwnProperty(baseEventName)) {\n var baseEvents = EVENT_NAME_MAP[baseEventName];\n for (var styleName in baseEvents) {\n if (styleName in style) {\n endEvents.push(baseEvents[styleName]);\n break;\n }\n }\n }\n }\n}\n\nif (typeof window !== 'undefined' && typeof document !== 'undefined') {\n detectEvents();\n}\n\nfunction addEventListener(node, eventName, eventListener) {\n node.addEventListener(eventName, eventListener, false);\n}\n\nfunction removeEventListener(node, eventName, eventListener) {\n node.removeEventListener(eventName, eventListener, false);\n}\n\nvar TransitionEvents = {\n addEndEventListener: function addEndEventListener(node, eventListener) {\n if (endEvents.length === 0) {\n window.setTimeout(eventListener, 0);\n return;\n }\n endEvents.forEach(function (endEvent) {\n addEventListener(node, endEvent, eventListener);\n });\n },\n\n\n endEvents: endEvents,\n\n removeEndEventListener: function removeEndEventListener(node, eventListener) {\n if (endEvents.length === 0) {\n return;\n }\n endEvents.forEach(function (endEvent) {\n removeEventListener(node, endEvent, eventListener);\n });\n }\n};\n\nexports.default = TransitionEvents;\n\n/***/ }),\n/* 1287 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = toArray;\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction toArray(children) {\n var ret = [];\n _react2.default.Children.forEach(children, function (c) {\n ret.push(c);\n });\n return ret;\n} /**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\n\n/***/ }),\n/* 1288 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _domAlign = __webpack_require__(13);\n\nvar _domAlign2 = _interopRequireDefault(_domAlign);\n\nvar _addEventListener = __webpack_require__(467);\n\nvar _addEventListener2 = _interopRequireDefault(_addEventListener);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\n\n\n//import isWindow from './isWindow';\n\nfunction isWindow(obj) {\n /* eslint no-eq-null: 0 */\n /* eslint eqeqeq: 0 */\n return obj != null && obj == obj.window;\n}\n\nfunction buffer(fn, ms) {\n var timer = void 0;\n\n function clear() {\n if (timer) {\n clearTimeout(timer);\n timer = null;\n }\n }\n\n function bufferFn() {\n clear();\n timer = setTimeout(fn, ms);\n }\n\n bufferFn.clear = clear;\n\n return bufferFn;\n}\n\nvar propTypes = {\n childrenProps: _propTypes2.default.object,\n align: _propTypes2.default.object.isRequired,\n target: _propTypes2.default.func,\n onAlign: _propTypes2.default.func,\n monitorBufferTime: _propTypes2.default.number,\n monitorWindowResize: _propTypes2.default.bool,\n disabled: _propTypes2.default.bool,\n children: _propTypes2.default.any\n};\n\nvar defaultProps = {\n target: function target() {\n return window;\n },\n onAlign: function onAlign() {},\n\n monitorBufferTime: 50,\n monitorWindowResize: false,\n disabled: false\n};\n\nvar Align = function (_React$Component) {\n _inherits(Align, _React$Component);\n\n function Align(props) {\n _classCallCheck(this, Align);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));\n\n _initialiseProps.call(_this);\n\n return _this;\n }\n\n Align.prototype.componentDidMount = function componentDidMount() {\n var props = this.props;\n // if parent ref not attached .... use document.getElementById\n this.forceAlign();\n if (!props.disabled && props.monitorWindowResize) {\n this.startMonitorWindowResize();\n }\n };\n\n Align.prototype.componentDidUpdate = function componentDidUpdate(prevProps) {\n var reAlign = false;\n var props = this.props;\n\n if (!props.disabled) {\n if (prevProps.disabled || prevProps.align !== props.align) {\n reAlign = true;\n } else {\n var lastTarget = prevProps.target();\n var currentTarget = props.target();\n if (isWindow(lastTarget) && isWindow(currentTarget)) {\n reAlign = false;\n } else if (lastTarget !== currentTarget) {\n reAlign = true;\n }\n }\n }\n\n if (reAlign) {\n this.forceAlign();\n }\n\n if (props.monitorWindowResize && !props.disabled) {\n this.startMonitorWindowResize();\n } else {\n this.stopMonitorWindowResize();\n }\n };\n\n Align.prototype.componentWillUnmount = function componentWillUnmount() {\n this.stopMonitorWindowResize();\n };\n\n Align.prototype.render = function render() {\n var _props = this.props,\n childrenProps = _props.childrenProps,\n children = _props.children;\n\n var child = _react2.default.Children.only(children);\n if (childrenProps) {\n var newProps = {};\n for (var prop in childrenProps) {\n if (childrenProps.hasOwnProperty(prop)) {\n newProps[prop] = this.props[childrenProps[prop]];\n }\n }\n return _react2.default.cloneElement(child, newProps);\n }\n return child;\n };\n\n return Align;\n}(_react2.default.Component);\n\nvar _initialiseProps = function _initialiseProps() {\n var _this2 = this;\n\n this.startMonitorWindowResize = function () {\n if (!_this2.resizeHandler) {\n _this2.bufferMonitor = buffer(_this2.forceAlign, _this2.props.monitorBufferTime);\n _this2.resizeHandler = (0, _addEventListener2.default)(window, 'resize', _this2.bufferMonitor);\n }\n };\n\n this.stopMonitorWindowResize = function () {\n if (_this2.resizeHandler) {\n _this2.bufferMonitor.clear();\n _this2.resizeHandler.remove();\n _this2.resizeHandler = null;\n }\n };\n\n this.forceAlign = function () {\n var props = _this2.props;\n if (!props.disabled) {\n var source = _reactDom2.default.findDOMNode(_this2);\n props.onAlign(source, (0, _domAlign2.default)(source, props.target(), props.align));\n }\n };\n};\n\n;\n\nAlign.defaultProps = defaultProps;\nAlign.propTypes = propTypes;\n\nexports.default = Align;\n\n/***/ }),\n/* 1289 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _Button = __webpack_require__(1290);\n\nvar _Button2 = _interopRequireDefault(_Button);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nexports[\"default\"] = _Button2[\"default\"];\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1290 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = {\n /**\n * @title 尺寸\n */\n size: _propTypes2[\"default\"].oneOf(['sm', 'md', 'xg', 'lg']),\n /**\n * @title 样式\n */\n style: _propTypes2[\"default\"].object,\n /**\n * @title 形状\n */\n shape: _propTypes2[\"default\"].oneOf(['block', 'round', 'border', 'squared', 'floating', 'pillRight', 'pillLeft', 'icon']),\n\n bordered: _propTypes2[\"default\"].bool,\n /**\n * @title 类型\n */\n colors: _propTypes2[\"default\"].oneOf(['primary', 'secondary', 'accent', 'success', 'info', 'warning', 'danger', 'dark', 'light', 'default']),\n /**\n * @title 是否禁用\n * @veIgnore\n */\n disabled: _propTypes2[\"default\"].bool,\n /**\n * @title 类名\n * @veIgnore\n */\n className: _propTypes2[\"default\"].string,\n\n /**\n * @title \n * \n * );\n * }\n * ```\n *\n * When the `in` prop is set to `true`, the child component will first receive\n * the class `example-enter`, then the `example-enter-active` will be added in\n * the next tick. `CSSTransition` [forces a\n * reflow](https://github.com/reactjs/react-transition-group/blob/5007303e729a74be66a21c3e2205e4916821524b/src/CSSTransition.js#L208-L215)\n * between before adding the `example-enter-active`. This is an important trick\n * because it allows us to transition between `example-enter` and\n * `example-enter-active` even though they were added immediately one after\n * another. Most notably, this is what makes it possible for us to animate\n * _appearance_.\n *\n * ```css\n * .my-node-enter {\n * opacity: 0;\n * }\n * .my-node-enter-active {\n * opacity: 1;\n * transition: opacity 200ms;\n * }\n * .my-node-exit {\n * opacity: 1;\n * }\n * .my-node-exit-active {\n * opacity: 0;\n * transition: opacity: 200ms;\n * }\n * ```\n *\n * `*-active` classes represent which styles you want to animate **to**.\n */\n\n\nvar CSSTransition =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inheritsLoose(CSSTransition, _React$Component);\n\n function CSSTransition() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n\n _this.onEnter = function (node, appearing) {\n var _this$getClassNames = _this.getClassNames(appearing ? 'appear' : 'enter'),\n className = _this$getClassNames.className;\n\n _this.removeClasses(node, 'exit');\n\n addClass(node, className);\n\n if (_this.props.onEnter) {\n _this.props.onEnter(node, appearing);\n }\n };\n\n _this.onEntering = function (node, appearing) {\n var _this$getClassNames2 = _this.getClassNames(appearing ? 'appear' : 'enter'),\n activeClassName = _this$getClassNames2.activeClassName;\n\n _this.reflowAndAddClass(node, activeClassName);\n\n if (_this.props.onEntering) {\n _this.props.onEntering(node, appearing);\n }\n };\n\n _this.onEntered = function (node, appearing) {\n var appearClassName = _this.getClassNames('appear').doneClassName;\n\n var enterClassName = _this.getClassNames('enter').doneClassName;\n\n var doneClassName = appearing ? appearClassName + \" \" + enterClassName : enterClassName;\n\n _this.removeClasses(node, appearing ? 'appear' : 'enter');\n\n addClass(node, doneClassName);\n\n if (_this.props.onEntered) {\n _this.props.onEntered(node, appearing);\n }\n };\n\n _this.onExit = function (node) {\n var _this$getClassNames3 = _this.getClassNames('exit'),\n className = _this$getClassNames3.className;\n\n _this.removeClasses(node, 'appear');\n\n _this.removeClasses(node, 'enter');\n\n addClass(node, className);\n\n if (_this.props.onExit) {\n _this.props.onExit(node);\n }\n };\n\n _this.onExiting = function (node) {\n var _this$getClassNames4 = _this.getClassNames('exit'),\n activeClassName = _this$getClassNames4.activeClassName;\n\n _this.reflowAndAddClass(node, activeClassName);\n\n if (_this.props.onExiting) {\n _this.props.onExiting(node);\n }\n };\n\n _this.onExited = function (node) {\n var _this$getClassNames5 = _this.getClassNames('exit'),\n doneClassName = _this$getClassNames5.doneClassName;\n\n _this.removeClasses(node, 'exit');\n\n addClass(node, doneClassName);\n\n if (_this.props.onExited) {\n _this.props.onExited(node);\n }\n };\n\n _this.getClassNames = function (type) {\n var classNames = _this.props.classNames;\n var isStringClassNames = typeof classNames === 'string';\n var prefix = isStringClassNames && classNames ? classNames + '-' : '';\n var className = isStringClassNames ? prefix + type : classNames[type];\n var activeClassName = isStringClassNames ? className + '-active' : classNames[type + 'Active'];\n var doneClassName = isStringClassNames ? className + '-done' : classNames[type + 'Done'];\n return {\n className: className,\n activeClassName: activeClassName,\n doneClassName: doneClassName\n };\n };\n\n return _this;\n }\n\n var _proto = CSSTransition.prototype;\n\n _proto.removeClasses = function removeClasses(node, type) {\n var _this$getClassNames6 = this.getClassNames(type),\n className = _this$getClassNames6.className,\n activeClassName = _this$getClassNames6.activeClassName,\n doneClassName = _this$getClassNames6.doneClassName;\n\n className && removeClass(node, className);\n activeClassName && removeClass(node, activeClassName);\n doneClassName && removeClass(node, doneClassName);\n };\n\n _proto.reflowAndAddClass = function reflowAndAddClass(node, className) {\n // This is for to force a repaint,\n // which is necessary in order to transition styles when adding a class name.\n if (className) {\n /* eslint-disable no-unused-expressions */\n node && node.scrollTop;\n /* eslint-enable no-unused-expressions */\n\n addClass(node, className);\n }\n };\n\n _proto.render = function render() {\n var props = _extends({}, this.props);\n\n delete props.classNames;\n return _react.default.createElement(_Transition.default, _extends({}, props, {\n onEnter: this.onEnter,\n onEntered: this.onEntered,\n onEntering: this.onEntering,\n onExit: this.onExit,\n onExiting: this.onExiting,\n onExited: this.onExited\n }));\n };\n\n return CSSTransition;\n}(_react.default.Component);\n\nCSSTransition.defaultProps = {\n classNames: ''\n};\nCSSTransition.propTypes = process.env.NODE_ENV !== \"production\" ? _extends({}, _Transition.default.propTypes, {\n /**\n * The animation classNames applied to the component as it enters, exits or\n * has finished the transition. A single name can be provided and it will be\n * suffixed for each stage: e.g.\n *\n * `classNames=\"fade\"` applies `fade-enter`, `fade-enter-active`,\n * `fade-enter-done`, `fade-exit`, `fade-exit-active`, `fade-exit-done`,\n * `fade-appear`, `fade-appear-active`, and `fade-appear-done`.\n *\n * **Note**: `fade-appear-done` and `fade-enter-done` will _both_ be applied.\n * This allows you to define different behavior for when appearing is done and\n * when regular entering is done, using selectors like\n * `.fade-enter-done:not(.fade-appear-done)`. For example, you could apply an\n * epic entrance animation when element first appears in the DOM using\n * [Animate.css](https://daneden.github.io/animate.css/). Otherwise you can\n * simply use `fade-enter-done` for defining both cases.\n *\n * Each individual classNames can also be specified independently like:\n *\n * ```js\n * classNames={{\n * appear: 'my-appear',\n * appearActive: 'my-active-appear',\n * appearDone: 'my-done-appear',\n * enter: 'my-enter',\n * enterActive: 'my-active-enter',\n * enterDone: 'my-done-enter',\n * exit: 'my-exit',\n * exitActive: 'my-active-exit',\n * exitDone: 'my-done-exit',\n * }}\n * ```\n *\n * If you want to set these classes using CSS Modules:\n *\n * ```js\n * import styles from './styles.css';\n * ```\n *\n * you might want to use camelCase in your CSS file, that way could simply\n * spread them instead of listing them one by one:\n *\n * ```js\n * classNames={{ ...styles }}\n * ```\n *\n * @type {string | {\n * appear?: string,\n * appearActive?: string,\n * appearDone?: string,\n * enter?: string,\n * enterActive?: string,\n * enterDone?: string,\n * exit?: string,\n * exitActive?: string,\n * exitDone?: string,\n * }}\n */\n classNames: _PropTypes.classNamesShape,\n\n /**\n * A `` callback fired immediately after the 'enter' or 'appear' class is\n * applied.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEnter: PropTypes.func,\n\n /**\n * A `` callback fired immediately after the 'enter-active' or\n * 'appear-active' class is applied.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntering: PropTypes.func,\n\n /**\n * A `` callback fired immediately after the 'enter' or\n * 'appear' classes are **removed** and the `done` class is added to the DOM node.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntered: PropTypes.func,\n\n /**\n * A `` callback fired immediately after the 'exit' class is\n * applied.\n *\n * @type Function(node: HtmlElement)\n */\n onExit: PropTypes.func,\n\n /**\n * A `` callback fired immediately after the 'exit-active' is applied.\n *\n * @type Function(node: HtmlElement)\n */\n onExiting: PropTypes.func,\n\n /**\n * A `` callback fired immediately after the 'exit' classes\n * are **removed** and the `exit-done` class is added to the DOM node.\n *\n * @type Function(node: HtmlElement)\n */\n onExited: PropTypes.func\n}) : {};\nvar _default = CSSTransition;\nexports.default = _default;\nmodule.exports = exports[\"default\"];\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5)))\n\n/***/ }),\n/* 1647 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _interopRequireDefault = __webpack_require__(18);\n\nexports.__esModule = true;\nexports.default = addClass;\n\nvar _hasClass = _interopRequireDefault(__webpack_require__(1648));\n\nfunction addClass(element, className) {\n if (element.classList) element.classList.add(className);else if (!(0, _hasClass.default)(element, className)) if (typeof element.className === 'string') element.className = element.className + ' ' + className;else element.setAttribute('class', (element.className && element.className.baseVal || '') + ' ' + className);\n}\n\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 1648 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = hasClass;\n\nfunction hasClass(element, className) {\n if (element.classList) return !!className && element.classList.contains(className);else return (\" \" + (element.className.baseVal || element.className) + \" \").indexOf(\" \" + className + \" \") !== -1;\n}\n\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 1649 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nfunction replaceClassName(origClass, classToRemove) {\n return origClass.replace(new RegExp('(^|\\\\s)' + classToRemove + '(?:\\\\s|$)', 'g'), '$1').replace(/\\s+/g, ' ').replace(/^\\s*|\\s*$/g, '');\n}\n\nmodule.exports = function removeClass(element, className) {\n if (element.classList) element.classList.remove(className);else if (typeof element.className === 'string') element.className = replaceClassName(element.className, className);else element.setAttribute('class', replaceClassName(element.className && element.className.baseVal || '', className));\n};\n\n/***/ }),\n/* 1650 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(process) {\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar _propTypes = _interopRequireDefault(__webpack_require__(1));\n\nvar _react = _interopRequireDefault(__webpack_require__(0));\n\nvar _reactDom = __webpack_require__(3);\n\nvar _TransitionGroup = _interopRequireDefault(__webpack_require__(529));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }\n\n/**\n * The `` component is a specialized `Transition` component\n * that animates between two children.\n *\n * ```jsx\n * \n *
    I appear first
    \n *
    I replace the above
    \n *
    \n * ```\n */\nvar ReplaceTransition =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inheritsLoose(ReplaceTransition, _React$Component);\n\n function ReplaceTransition() {\n var _this;\n\n for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {\n _args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(_args)) || this;\n\n _this.handleEnter = function () {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n return _this.handleLifecycle('onEnter', 0, args);\n };\n\n _this.handleEntering = function () {\n for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n args[_key3] = arguments[_key3];\n }\n\n return _this.handleLifecycle('onEntering', 0, args);\n };\n\n _this.handleEntered = function () {\n for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {\n args[_key4] = arguments[_key4];\n }\n\n return _this.handleLifecycle('onEntered', 0, args);\n };\n\n _this.handleExit = function () {\n for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {\n args[_key5] = arguments[_key5];\n }\n\n return _this.handleLifecycle('onExit', 1, args);\n };\n\n _this.handleExiting = function () {\n for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {\n args[_key6] = arguments[_key6];\n }\n\n return _this.handleLifecycle('onExiting', 1, args);\n };\n\n _this.handleExited = function () {\n for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {\n args[_key7] = arguments[_key7];\n }\n\n return _this.handleLifecycle('onExited', 1, args);\n };\n\n return _this;\n }\n\n var _proto = ReplaceTransition.prototype;\n\n _proto.handleLifecycle = function handleLifecycle(handler, idx, originalArgs) {\n var _child$props;\n\n var children = this.props.children;\n\n var child = _react.default.Children.toArray(children)[idx];\n\n if (child.props[handler]) (_child$props = child.props)[handler].apply(_child$props, originalArgs);\n if (this.props[handler]) this.props[handler]((0, _reactDom.findDOMNode)(this));\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n children = _this$props.children,\n inProp = _this$props.in,\n props = _objectWithoutPropertiesLoose(_this$props, [\"children\", \"in\"]);\n\n var _React$Children$toArr = _react.default.Children.toArray(children),\n first = _React$Children$toArr[0],\n second = _React$Children$toArr[1];\n\n delete props.onEnter;\n delete props.onEntering;\n delete props.onEntered;\n delete props.onExit;\n delete props.onExiting;\n delete props.onExited;\n return _react.default.createElement(_TransitionGroup.default, props, inProp ? _react.default.cloneElement(first, {\n key: 'first',\n onEnter: this.handleEnter,\n onEntering: this.handleEntering,\n onEntered: this.handleEntered\n }) : _react.default.cloneElement(second, {\n key: 'second',\n onEnter: this.handleExit,\n onEntering: this.handleExiting,\n onEntered: this.handleExited\n }));\n };\n\n return ReplaceTransition;\n}(_react.default.Component);\n\nReplaceTransition.propTypes = process.env.NODE_ENV !== \"production\" ? {\n in: _propTypes.default.bool.isRequired,\n children: function children(props, propName) {\n if (_react.default.Children.count(props[propName]) !== 2) return new Error(\"\\\"\" + propName + \"\\\" must be exactly two transition components.\");\n return null;\n }\n} : {};\nvar _default = ReplaceTransition;\nexports.default = _default;\nmodule.exports = exports[\"default\"];\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5)))\n\n/***/ }),\n/* 1651 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.getChildMapping = getChildMapping;\nexports.mergeChildMappings = mergeChildMappings;\nexports.getInitialChildMapping = getInitialChildMapping;\nexports.getNextChildMapping = getNextChildMapping;\n\nvar _react = __webpack_require__(0);\n\n/**\n * Given `this.props.children`, return an object mapping key to child.\n *\n * @param {*} children `this.props.children`\n * @return {object} Mapping of key to child\n */\nfunction getChildMapping(children, mapFn) {\n var mapper = function mapper(child) {\n return mapFn && (0, _react.isValidElement)(child) ? mapFn(child) : child;\n };\n\n var result = Object.create(null);\n if (children) _react.Children.map(children, function (c) {\n return c;\n }).forEach(function (child) {\n // run the map function here instead so that the key is the computed one\n result[child.key] = mapper(child);\n });\n return result;\n}\n/**\n * When you're adding or removing children some may be added or removed in the\n * same render pass. We want to show *both* since we want to simultaneously\n * animate elements in and out. This function takes a previous set of keys\n * and a new set of keys and merges them with its best guess of the correct\n * ordering. In the future we may expose some of the utilities in\n * ReactMultiChild to make this easy, but for now React itself does not\n * directly have this concept of the union of prevChildren and nextChildren\n * so we implement it here.\n *\n * @param {object} prev prev children as returned from\n * `ReactTransitionChildMapping.getChildMapping()`.\n * @param {object} next next children as returned from\n * `ReactTransitionChildMapping.getChildMapping()`.\n * @return {object} a key set that contains all keys in `prev` and all keys\n * in `next` in a reasonable order.\n */\n\n\nfunction mergeChildMappings(prev, next) {\n prev = prev || {};\n next = next || {};\n\n function getValueForKey(key) {\n return key in next ? next[key] : prev[key];\n } // For each key of `next`, the list of keys to insert before that key in\n // the combined list\n\n\n var nextKeysPending = Object.create(null);\n var pendingKeys = [];\n\n for (var prevKey in prev) {\n if (prevKey in next) {\n if (pendingKeys.length) {\n nextKeysPending[prevKey] = pendingKeys;\n pendingKeys = [];\n }\n } else {\n pendingKeys.push(prevKey);\n }\n }\n\n var i;\n var childMapping = {};\n\n for (var nextKey in next) {\n if (nextKeysPending[nextKey]) {\n for (i = 0; i < nextKeysPending[nextKey].length; i++) {\n var pendingNextKey = nextKeysPending[nextKey][i];\n childMapping[nextKeysPending[nextKey][i]] = getValueForKey(pendingNextKey);\n }\n }\n\n childMapping[nextKey] = getValueForKey(nextKey);\n } // Finally, add the keys which didn't appear before any key in `next`\n\n\n for (i = 0; i < pendingKeys.length; i++) {\n childMapping[pendingKeys[i]] = getValueForKey(pendingKeys[i]);\n }\n\n return childMapping;\n}\n\nfunction getProp(child, prop, props) {\n return props[prop] != null ? props[prop] : child.props[prop];\n}\n\nfunction getInitialChildMapping(props, onExited) {\n return getChildMapping(props.children, function (child) {\n return (0, _react.cloneElement)(child, {\n onExited: onExited.bind(null, child),\n in: true,\n appear: getProp(child, 'appear', props),\n enter: getProp(child, 'enter', props),\n exit: getProp(child, 'exit', props)\n });\n });\n}\n\nfunction getNextChildMapping(nextProps, prevChildMapping, onExited) {\n var nextChildMapping = getChildMapping(nextProps.children);\n var children = mergeChildMappings(prevChildMapping, nextChildMapping);\n Object.keys(children).forEach(function (key) {\n var child = children[key];\n if (!(0, _react.isValidElement)(child)) return;\n var hasPrev = key in prevChildMapping;\n var hasNext = key in nextChildMapping;\n var prevChild = prevChildMapping[key];\n var isLeaving = (0, _react.isValidElement)(prevChild) && !prevChild.props.in; // item is new (entering)\n\n if (hasNext && (!hasPrev || isLeaving)) {\n // console.log('entering', key)\n children[key] = (0, _react.cloneElement)(child, {\n onExited: onExited.bind(null, child),\n in: true,\n exit: getProp(child, 'exit', nextProps),\n enter: getProp(child, 'enter', nextProps)\n });\n } else if (!hasNext && hasPrev && !isLeaving) {\n // item is old (exiting)\n // console.log('leaving', key)\n children[key] = (0, _react.cloneElement)(child, {\n in: false\n });\n } else if (hasNext && hasPrev && (0, _react.isValidElement)(prevChild)) {\n // item hasn't changed transition states\n // copy over the last transition props;\n // console.log('unchanged', key)\n children[key] = (0, _react.cloneElement)(child, {\n onExited: onExited.bind(null, child),\n in: prevChild.props.in,\n exit: getProp(child, 'exit', nextProps),\n enter: getProp(child, 'enter', nextProps)\n });\n }\n });\n return children;\n}\n\n/***/ }),\n/* 1652 */\n/***/ (function(module, exports, __webpack_require__) {\n\n__webpack_require__(1653);\nmodule.exports = __webpack_require__(1654);\n\n\n/***/ }),\n/* 1653 */\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n/* 1654 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _TreeSelect = __webpack_require__(1655);\n\nvar _TreeSelect2 = _interopRequireDefault(_TreeSelect);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nexports[\"default\"] = _TreeSelect2[\"default\"];\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1655 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _rcTreeSelect = __webpack_require__(1656);\n\nvar _rcTreeSelect2 = _interopRequireDefault(_rcTreeSelect);\n\nvar _beeIcon = __webpack_require__(15);\n\nvar _beeIcon2 = _interopRequireDefault(_beeIcon);\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _warning = __webpack_require__(1682);\n\nvar _warning2 = _interopRequireDefault(_warning);\n\nvar _omit = __webpack_require__(30);\n\nvar _omit2 = _interopRequireDefault(_omit);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**\n * This source code is quoted from rc-tree-select.\n * homepage: https://github.com/react-component/tree-select\n */\n\n\nvar defaultProps = {\n prefixCls: 'u-select',\n transitionName: 'slide-up',\n choiceTransitionName: 'zoom',\n showSearch: false,\n notFoundContent: \"无匹配结果\"\n};\nvar propTypes = {\n getPopupContainer: _propTypes2[\"default\"].func\n};\n\nvar TreeSelect = function (_Component) {\n _inherits(TreeSelect, _Component);\n\n function TreeSelect(props) {\n _classCallCheck(this, TreeSelect);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props));\n\n _this.saveTreeSelect = function (node) {\n _this.rcTreeSelect = node;\n };\n\n _this.renderSwitcherIcon = function (prefixCls, _ref) {\n var isLeaf = _ref.isLeaf,\n loading = _ref.loading;\n\n if (loading) {\n return _react2[\"default\"].createElement(_beeIcon2[\"default\"], { type: 'loading', className: prefixCls + '-switcher-loading-icon' });\n }\n if (isLeaf) {\n return null;\n }\n return _react2[\"default\"].createElement(_beeIcon2[\"default\"], { type: 'uf-triangle-down', className: prefixCls + '-switcher-icon' });\n };\n\n (0, _warning2[\"default\"])(props.multiple !== false || !props.treeCheckable, 'TreeSelect', '`multiple` will alway be `true` when `treeCheckable` is true');\n return _this;\n }\n\n TreeSelect.prototype.focus = function focus() {\n this.rcTreeSelect.focus();\n };\n\n TreeSelect.prototype.blur = function blur() {\n this.rcTreeSelect.blur();\n };\n\n TreeSelect.prototype.render = function render() {\n var _classNames;\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n className = _props.className,\n size = _props.size,\n notFoundContent = _props.notFoundContent,\n dropdownStyle = _props.dropdownStyle,\n dropdownClassName = _props.dropdownClassName,\n suffixIcon = _props.suffixIcon,\n getPopupContainer = _props.getPopupContainer,\n restProps = _objectWithoutProperties(_props, ['prefixCls', 'className', 'size', 'notFoundContent', 'dropdownStyle', 'dropdownClassName', 'suffixIcon', 'getPopupContainer']);\n\n var rest = (0, _omit2[\"default\"])(restProps, ['inputIcon', 'removeIcon', 'clearIcon', 'switcherIcon']);\n\n var cls = (0, _classnames2[\"default\"])((_classNames = {}, _defineProperty(_classNames, prefixCls + '-lg', size === 'large'), _defineProperty(_classNames, prefixCls + '-sm', size === 'small'), _classNames), className);\n\n // showSearch: single - false, multiple - true\n var showSearch = restProps.showSearch;\n\n if (!('showSearch' in restProps)) {\n showSearch = !!(restProps.multiple || restProps.treeCheckable);\n }\n\n var checkable = rest.treeCheckable;\n if (checkable) {\n checkable = _react2[\"default\"].createElement('span', { className: prefixCls + '-tree-checkbox-inner' });\n }\n\n var inputIcon = suffixIcon && (_react2[\"default\"].isValidElement(suffixIcon) ? _react2[\"default\"].cloneElement(suffixIcon) : suffixIcon) || _react2[\"default\"].createElement(_beeIcon2[\"default\"], { type: 'uf-treearrow-down', className: prefixCls + '-arrow-icon' });\n\n var removeIcon = _react2[\"default\"].createElement(_beeIcon2[\"default\"], { type: 'uf-close', className: prefixCls + '-remove-icon' });\n\n var clearIcon = _react2[\"default\"].createElement(_beeIcon2[\"default\"], { type: 'uf-close-c', className: prefixCls + '-clear-icon' });\n\n return _react2[\"default\"].createElement(_rcTreeSelect2[\"default\"]\n // switcherIcon={(nodeProps) =>\n // this.renderSwitcherIcon(prefixCls, nodeProps)\n // }\n , _extends({ inputIcon: inputIcon,\n removeIcon: removeIcon,\n clearIcon: clearIcon\n }, restProps, {\n showSearch: showSearch,\n getPopupContainer: getPopupContainer,\n dropdownClassName: (0, _classnames2[\"default\"])(dropdownClassName, prefixCls + '-dropdown'),\n prefixCls: prefixCls,\n className: cls,\n dropdownStyle: _extends({ maxHeight: '100vh', overflow: 'auto' }, dropdownStyle),\n notFoundContent: notFoundContent,\n treeCheckable: checkable,\n ref: this.saveTreeSelect,\n searchPlaceholder: '\\u8BF7\\u641C\\u7D22'\n }));\n };\n\n return TreeSelect;\n}(_react.Component);\n\nTreeSelect.TreeNode = _rcTreeSelect.TreeNode;\nTreeSelect.SHOW_ALL = _rcTreeSelect.SHOW_ALL;\nTreeSelect.SHOW_PARENT = _rcTreeSelect.SHOW_PARENT;\nTreeSelect.SHOW_CHILD = _rcTreeSelect.SHOW_CHILD;\n;\nTreeSelect.propTypes = propTypes;\nTreeSelect.defaultProps = defaultProps;\nexports[\"default\"] = TreeSelect;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1656 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"TreeNode\", function() { return TreeNode; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Select__ = __webpack_require__(1657);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__SelectNode__ = __webpack_require__(541);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__strategies__ = __webpack_require__(209);\n/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, \"SHOW_ALL\", function() { return __WEBPACK_IMPORTED_MODULE_2__strategies__[\"a\"]; });\n/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, \"SHOW_CHILD\", function() { return __WEBPACK_IMPORTED_MODULE_2__strategies__[\"b\"]; });\n/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, \"SHOW_PARENT\", function() { return __WEBPACK_IMPORTED_MODULE_2__strategies__[\"c\"]; });\n\n\n\nvar TreeNode = __WEBPACK_IMPORTED_MODULE_1__SelectNode__[\"a\" /* default */];\n/* harmony default export */ __webpack_exports__[\"default\"] = (__WEBPACK_IMPORTED_MODULE_0__Select__[\"a\" /* default */]);\n\n/***/ }),\n/* 1657 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom__ = __webpack_require__(3);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_dom__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_prop_types__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_lifecycles_compat__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_util_es_KeyCode__ = __webpack_require__(43);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_shallowequal__ = __webpack_require__(72);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_shallowequal___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_shallowequal__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_raf__ = __webpack_require__(36);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_raf___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_raf__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_dom_scroll_into_view__ = __webpack_require__(44);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_dom_scroll_into_view___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_dom_scroll_into_view__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__SelectTrigger__ = __webpack_require__(1658);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__Base_BaseSelector__ = __webpack_require__(210);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__Base_BasePopup__ = __webpack_require__(211);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__Selector_SingleSelector__ = __webpack_require__(1674);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__Selector_MultipleSelector__ = __webpack_require__(1675);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__Popup_SinglePopup__ = __webpack_require__(1680);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__Popup_MultiplePopup__ = __webpack_require__(1681);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__strategies__ = __webpack_require__(209);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__util__ = __webpack_require__(34);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__propTypes__ = __webpack_require__(540);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__SelectNode__ = __webpack_require__(541);\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance\"); }\n\nfunction _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (typeof call === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n/**\n * ARIA: https://www.w3.org/TR/wai-aria/#combobox\n * Sample 1: https://www.w3.org/TR/2017/NOTE-wai-aria-practices-1.1-20171214/examples/combobox/aria1.1pattern/listbox-combo.html\n * Sample 2: https://www.w3.org/blog/wai-components-gallery/widget/combobox-with-aria-autocompleteinline/\n *\n * Tab logic:\n * Popup is close\n * 1. Focus input (mark component as focused)\n * 2. Press enter to show the popup\n * 3. If popup has input, focus it\n *\n * Popup is open\n * 1. press tab to close the popup\n * 2. Focus back to the selection input box\n * 3. Let the native tab going on\n *\n * TreeSelect use 2 design type.\n * In single mode, we should focus on the `span`\n * In multiple mode, we should focus on the `input`\n */\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar Select =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inherits(Select, _React$Component);\n\n function Select(_props) {\n var _this;\n\n _classCallCheck(this, Select);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(Select).call(this, _props));\n\n _defineProperty(_assertThisInitialized(_this), \"onSelectorFocus\", function () {\n _this.setState({\n focused: true\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onSelectorBlur\", function () {\n _this.setState({\n focused: false\n }); // TODO: Close when Popup is also not focused\n // this.setState({ open: false });\n\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onComponentKeyDown\", function (event) {\n var open = _this.state.open;\n var keyCode = event.keyCode;\n\n if (!open) {\n if ([__WEBPACK_IMPORTED_MODULE_4_rc_util_es_KeyCode__[\"a\" /* default */].ENTER, __WEBPACK_IMPORTED_MODULE_4_rc_util_es_KeyCode__[\"a\" /* default */].DOWN].indexOf(keyCode) !== -1) {\n _this.setOpenState(true);\n }\n } else if (__WEBPACK_IMPORTED_MODULE_4_rc_util_es_KeyCode__[\"a\" /* default */].ESC === keyCode) {\n _this.setOpenState(false);\n } else if ([__WEBPACK_IMPORTED_MODULE_4_rc_util_es_KeyCode__[\"a\" /* default */].UP, __WEBPACK_IMPORTED_MODULE_4_rc_util_es_KeyCode__[\"a\" /* default */].DOWN, __WEBPACK_IMPORTED_MODULE_4_rc_util_es_KeyCode__[\"a\" /* default */].LEFT, __WEBPACK_IMPORTED_MODULE_4_rc_util_es_KeyCode__[\"a\" /* default */].RIGHT].indexOf(keyCode) !== -1) {\n // TODO: Handle `open` state\n event.stopPropagation();\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onDeselect\", function (wrappedValue, node, nodeEventInfo) {\n var onDeselect = _this.props.onDeselect;\n if (!onDeselect) return;\n onDeselect(wrappedValue, node, nodeEventInfo);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onSelectorClear\", function (event) {\n var disabled = _this.props.disabled;\n if (disabled) return;\n\n _this.triggerChange([], []);\n\n if (!_this.isSearchValueControlled()) {\n _this.setUncontrolledState({\n searchValue: '',\n filteredTreeNodes: null\n });\n }\n\n event.stopPropagation();\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onMultipleSelectorRemove\", function (event, removeValue) {\n event.stopPropagation();\n var _this$state = _this.state,\n valueList = _this$state.valueList,\n missValueList = _this$state.missValueList,\n valueEntities = _this$state.valueEntities;\n var _this$props = _this.props,\n treeCheckable = _this$props.treeCheckable,\n treeCheckStrictly = _this$props.treeCheckStrictly,\n treeNodeLabelProp = _this$props.treeNodeLabelProp,\n disabled = _this$props.disabled;\n if (disabled) return; // Find trigger entity\n\n var triggerEntity = valueEntities[removeValue]; // Clean up value\n\n var newValueList = valueList;\n\n if (triggerEntity) {\n // If value is in tree\n if (treeCheckable && !treeCheckStrictly) {\n newValueList = valueList.filter(function (_ref) {\n var value = _ref.value;\n var entity = valueEntities[value];\n return !Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"p\" /* isPosRelated */])(entity.pos, triggerEntity.pos);\n });\n } else {\n newValueList = valueList.filter(function (_ref2) {\n var value = _ref2.value;\n return value !== removeValue;\n });\n }\n }\n\n var triggerNode = triggerEntity ? triggerEntity.node : null;\n var extraInfo = {\n triggerValue: removeValue,\n triggerNode: triggerNode\n };\n var deselectInfo = {\n node: triggerNode\n }; // [Legacy] Little hack on this to make same action as `onCheck` event.\n\n if (treeCheckable) {\n var filteredEntityList = newValueList.map(function (_ref3) {\n var value = _ref3.value;\n return valueEntities[value];\n });\n deselectInfo.event = 'check';\n deselectInfo.checked = false;\n deselectInfo.checkedNodes = filteredEntityList.map(function (_ref4) {\n var node = _ref4.node;\n return node;\n });\n deselectInfo.checkedNodesPositions = filteredEntityList.map(function (_ref5) {\n var node = _ref5.node,\n pos = _ref5.pos;\n return {\n node: node,\n pos: pos\n };\n });\n\n if (treeCheckStrictly) {\n extraInfo.allCheckedNodes = deselectInfo.checkedNodes;\n } else {\n // TODO: It's too expansive to get `halfCheckedKeys` in onDeselect. Not pass this.\n extraInfo.allCheckedNodes = Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"i\" /* flatToHierarchy */])(filteredEntityList).map(function (_ref6) {\n var node = _ref6.node;\n return node;\n });\n }\n } else {\n deselectInfo.event = 'select';\n deselectInfo.selected = false;\n deselectInfo.selectedNodes = newValueList.map(function (_ref7) {\n var value = _ref7.value;\n return (valueEntities[value] || {}).node;\n });\n } // Some value user pass prop is not in the tree, we also need clean it\n\n\n var newMissValueList = missValueList.filter(function (_ref8) {\n var value = _ref8.value;\n return value !== removeValue;\n });\n var wrappedValue;\n\n if (_this.isLabelInValue()) {\n wrappedValue = {\n label: triggerNode ? triggerNode.props[treeNodeLabelProp] : null,\n value: removeValue\n };\n } else {\n wrappedValue = removeValue;\n }\n\n _this.onDeselect(wrappedValue, triggerNode, deselectInfo);\n\n _this.triggerChange(newMissValueList, newValueList, extraInfo);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onValueTrigger\", function (isAdd, nodeList, nodeEventInfo, nodeExtraInfo) {\n var node = nodeEventInfo.node;\n var value = node.props.value;\n var _this$state2 = _this.state,\n missValueList = _this$state2.missValueList,\n valueEntities = _this$state2.valueEntities,\n keyEntities = _this$state2.keyEntities,\n searchValue = _this$state2.searchValue;\n var _this$props2 = _this.props,\n disabled = _this$props2.disabled,\n inputValue = _this$props2.inputValue,\n treeNodeLabelProp = _this$props2.treeNodeLabelProp,\n onSelect = _this$props2.onSelect,\n onSearch = _this$props2.onSearch,\n multiple = _this$props2.multiple,\n treeCheckable = _this$props2.treeCheckable,\n treeCheckStrictly = _this$props2.treeCheckStrictly,\n autoClearSearchValue = _this$props2.autoClearSearchValue;\n var label = node.props[treeNodeLabelProp];\n if (disabled) return; // Wrap the return value for user\n\n var wrappedValue;\n\n if (_this.isLabelInValue()) {\n wrappedValue = {\n value: value,\n label: label\n };\n } else {\n wrappedValue = value;\n } // [Legacy] Origin code not trigger `onDeselect` every time. Let's align the behaviour.\n\n\n if (isAdd) {\n if (onSelect) {\n onSelect(wrappedValue, node, nodeEventInfo);\n }\n } else {\n _this.onDeselect(wrappedValue, node, nodeEventInfo);\n } // Get wrapped value list.\n // This is a bit hack cause we use key to match the value.\n\n\n var newValueList = nodeList.map(function (_ref9) {\n var props = _ref9.props;\n return {\n value: props.value,\n label: props[treeNodeLabelProp]\n };\n }); // When is `treeCheckable` and with `searchValue`, `valueList` is not full filled.\n // We need calculate the missing nodes.\n\n if (treeCheckable && !treeCheckStrictly) {\n var keyList = newValueList.map(function (_ref10) {\n var val = _ref10.value;\n return valueEntities[val].key;\n });\n\n if (isAdd) {\n keyList = Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"d\" /* conductCheck */])(keyList, true, keyEntities).checkedKeys;\n } else {\n keyList = Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"d\" /* conductCheck */])([valueEntities[value].key], false, keyEntities, {\n checkedKeys: keyList\n }).checkedKeys;\n }\n\n newValueList = keyList.map(function (key) {\n var props = keyEntities[key].node.props;\n return {\n value: props.value,\n label: props[treeNodeLabelProp]\n };\n });\n } // Clean up `searchValue` when this prop is set\n\n\n if (autoClearSearchValue || inputValue === null) {\n // Clean state `searchValue` if uncontrolled\n if (!_this.isSearchValueControlled() && (multiple || treeCheckable)) {\n _this.setUncontrolledState({\n searchValue: '',\n filteredTreeNodes: null\n });\n } // Trigger onSearch if `searchValue` to be empty.\n // We should also trigger onSearch with empty string here\n // since if user use `treeExpandedKeys`, it need user have the ability to reset it.\n\n\n if (onSearch && searchValue && searchValue.length) {\n onSearch('');\n }\n } // [Legacy] Provide extra info\n\n\n var extraInfo = _objectSpread({}, nodeExtraInfo, {\n triggerValue: value,\n triggerNode: node\n });\n\n _this.triggerChange(missValueList, newValueList, extraInfo);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onTreeNodeSelect\", function (_, nodeEventInfo) {\n var _this$state3 = _this.state,\n valueList = _this$state3.valueList,\n valueEntities = _this$state3.valueEntities;\n var _this$props3 = _this.props,\n treeCheckable = _this$props3.treeCheckable,\n multiple = _this$props3.multiple;\n if (treeCheckable) return;\n\n if (!multiple) {\n _this.setOpenState(false);\n }\n\n var isAdd = nodeEventInfo.selected;\n var selectedValue = nodeEventInfo.node.props.value;\n var newValueList;\n\n if (!multiple) {\n newValueList = [{\n value: selectedValue\n }];\n } else {\n newValueList = valueList.filter(function (_ref11) {\n var value = _ref11.value;\n return value !== selectedValue;\n });\n\n if (isAdd) {\n newValueList.push({\n value: selectedValue\n });\n }\n }\n\n var selectedNodes = newValueList.map(function (_ref12) {\n var value = _ref12.value;\n return valueEntities[value];\n }).filter(function (entity) {\n return entity;\n }).map(function (_ref13) {\n var node = _ref13.node;\n return node;\n });\n\n _this.onValueTrigger(isAdd, selectedNodes, nodeEventInfo, {\n selected: isAdd\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onTreeNodeCheck\", function (_, nodeEventInfo) {\n var _this$state4 = _this.state,\n searchValue = _this$state4.searchValue,\n keyEntities = _this$state4.keyEntities,\n valueEntities = _this$state4.valueEntities,\n valueList = _this$state4.valueList;\n var treeCheckStrictly = _this.props.treeCheckStrictly;\n var checkedNodes = nodeEventInfo.checkedNodes,\n checkedNodesPositions = nodeEventInfo.checkedNodesPositions;\n var isAdd = nodeEventInfo.checked;\n var extraInfo = {\n checked: isAdd\n };\n var checkedNodeList = checkedNodes; // [Legacy] Check event provide `allCheckedNodes`.\n // When `treeCheckStrictly` or internal `searchValue` is set, TreeNode will be unrelated:\n // - Related: Show the top checked nodes and has children prop.\n // - Unrelated: Show all the checked nodes.\n\n if (searchValue) {\n var oriKeyList = valueList.map(function (_ref14) {\n var value = _ref14.value;\n return valueEntities[value];\n }).filter(function (entity) {\n return entity;\n }).map(function (_ref15) {\n var key = _ref15.key;\n return key;\n });\n var keyList;\n\n if (isAdd) {\n keyList = Array.from(new Set([].concat(_toConsumableArray(oriKeyList), _toConsumableArray(checkedNodeList.map(function (_ref16) {\n var value = _ref16.props.value;\n return valueEntities[value].key;\n })))));\n } else {\n keyList = Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"d\" /* conductCheck */])([nodeEventInfo.node.props.eventKey], false, keyEntities, {\n checkedKeys: oriKeyList\n }).checkedKeys;\n }\n\n checkedNodeList = keyList.map(function (key) {\n return keyEntities[key].node;\n }); // Let's follow as not `treeCheckStrictly` format\n\n extraInfo.allCheckedNodes = keyList.map(function (key) {\n return Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"c\" /* cleanEntity */])(keyEntities[key]);\n });\n } else if (treeCheckStrictly) {\n extraInfo.allCheckedNodes = nodeEventInfo.checkedNodes;\n } else {\n extraInfo.allCheckedNodes = Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"i\" /* flatToHierarchy */])(checkedNodesPositions);\n }\n\n _this.onValueTrigger(isAdd, checkedNodeList, nodeEventInfo, extraInfo);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onDropdownVisibleChange\", function (open) {\n var _this$props4 = _this.props,\n multiple = _this$props4.multiple,\n treeCheckable = _this$props4.treeCheckable;\n var searchValue = _this.state.searchValue; // When set open success and single mode,\n // we will reset the input content.\n\n if (open && !multiple && !treeCheckable && searchValue) {\n _this.setUncontrolledState({\n searchValue: '',\n filteredTreeNodes: null\n });\n }\n\n _this.setOpenState(open, true);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onSearchInputChange\", function (_ref17) {\n var value = _ref17.target.value;\n var _this$state5 = _this.state,\n treeNodes = _this$state5.treeNodes,\n valueEntities = _this$state5.valueEntities;\n var _this$props5 = _this.props,\n onSearch = _this$props5.onSearch,\n filterTreeNode = _this$props5.filterTreeNode,\n treeNodeFilterProp = _this$props5.treeNodeFilterProp;\n\n if (onSearch) {\n onSearch(value);\n }\n\n var isSet = false;\n\n if (!_this.isSearchValueControlled()) {\n isSet = _this.setUncontrolledState({\n searchValue: value\n });\n\n _this.setOpenState(true);\n }\n\n if (isSet) {\n // Do the search logic\n var upperSearchValue = String(value).toUpperCase();\n var filterTreeNodeFn = filterTreeNode;\n\n if (filterTreeNode === false) {\n // Don't filter if is false\n filterTreeNodeFn = function filterTreeNodeFn() {\n return true;\n };\n } else if (typeof filterTreeNodeFn !== 'function') {\n // When is not function (true or undefined), use inner filter\n filterTreeNodeFn = function filterTreeNodeFn(_, node) {\n var nodeValue = String(node.props[treeNodeFilterProp]).toUpperCase();\n return nodeValue.indexOf(upperSearchValue) !== -1;\n };\n }\n\n _this.setState({\n filteredTreeNodes: Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"m\" /* getFilterTree */])(treeNodes, value, filterTreeNodeFn, valueEntities, __WEBPACK_IMPORTED_MODULE_18__SelectNode__[\"a\" /* default */])\n });\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onSearchInputKeyDown\", function (event) {\n var _this$state6 = _this.state,\n searchValue = _this$state6.searchValue,\n valueList = _this$state6.valueList;\n var keyCode = event.keyCode;\n\n if (__WEBPACK_IMPORTED_MODULE_4_rc_util_es_KeyCode__[\"a\" /* default */].BACKSPACE === keyCode && _this.isMultiple() && !searchValue && valueList.length) {\n var lastValue = valueList[valueList.length - 1].value;\n\n _this.onMultipleSelectorRemove(event, lastValue);\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onChoiceAnimationLeave\", function () {\n __WEBPACK_IMPORTED_MODULE_6_raf___default()(function () {\n _this.forcePopupAlign();\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"setPopupRef\", function (popup) {\n _this.popup = popup;\n });\n\n _defineProperty(_assertThisInitialized(_this), \"setUncontrolledState\", function (state) {\n var needSync = false;\n var newState = {};\n Object.keys(state).forEach(function (name) {\n if (name in _this.props) return;\n needSync = true;\n newState[name] = state[name];\n });\n\n if (needSync) {\n _this.setState(newState);\n }\n\n return needSync;\n });\n\n _defineProperty(_assertThisInitialized(_this), \"setOpenState\", function (open) {\n var byTrigger = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var onDropdownVisibleChange = _this.props.onDropdownVisibleChange;\n\n if (onDropdownVisibleChange && onDropdownVisibleChange(open, {\n documentClickClose: !open && byTrigger\n }) === false) {\n return;\n }\n\n _this.setUncontrolledState({\n open: open\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"isMultiple\", function () {\n var _this$props6 = _this.props,\n multiple = _this$props6.multiple,\n treeCheckable = _this$props6.treeCheckable;\n return !!(multiple || treeCheckable);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"isLabelInValue\", function () {\n return Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"o\" /* isLabelInValue */])(_this.props);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"isSearchValueControlled\", function () {\n var inputValue = _this.props.inputValue;\n if ('searchValue' in _this.props) return true;\n return 'inputValue' in _this.props && inputValue !== null;\n });\n\n _defineProperty(_assertThisInitialized(_this), \"forcePopupAlign\", function () {\n var $trigger = _this.selectTriggerRef.current;\n\n if ($trigger) {\n $trigger.forcePopupAlign();\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"delayForcePopupAlign\", function () {\n // Wait 2 frame to avoid dom update & dom algin in the same time\n // https://github.com/ant-design/ant-design/issues/12031\n __WEBPACK_IMPORTED_MODULE_6_raf___default()(function () {\n __WEBPACK_IMPORTED_MODULE_6_raf___default()(_this.forcePopupAlign);\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"triggerChange\", function (missValueList, valueList) {\n var extraInfo = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var _this$state7 = _this.state,\n valueEntities = _this$state7.valueEntities,\n searchValue = _this$state7.searchValue,\n prevSelectorValueList = _this$state7.selectorValueList;\n var _this$props7 = _this.props,\n onChange = _this$props7.onChange,\n disabled = _this$props7.disabled,\n treeCheckable = _this$props7.treeCheckable,\n treeCheckStrictly = _this$props7.treeCheckStrictly;\n if (disabled) return; // Trigger\n\n var extra = _objectSpread({\n // [Legacy] Always return as array contains label & value\n preValue: prevSelectorValueList.map(function (_ref18) {\n var label = _ref18.label,\n value = _ref18.value;\n return {\n label: label,\n value: value\n };\n })\n }, extraInfo); // Format value by `treeCheckStrictly`\n\n\n var selectorValueList = Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"k\" /* formatSelectorValue */])(valueList, _this.props, valueEntities);\n\n if (!('value' in _this.props)) {\n var newState = {\n missValueList: missValueList,\n valueList: valueList,\n selectorValueList: selectorValueList\n };\n\n if (searchValue && treeCheckable && !treeCheckStrictly) {\n newState.searchHalfCheckedKeys = Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"n\" /* getHalfCheckedKeys */])(valueList, valueEntities);\n }\n\n _this.setState(newState);\n } // Only do the logic when `onChange` function provided\n\n\n if (onChange) {\n var connectValueList; // Get value by mode\n\n if (_this.isMultiple()) {\n connectValueList = [].concat(_toConsumableArray(missValueList), _toConsumableArray(selectorValueList));\n } else {\n connectValueList = selectorValueList.slice(0, 1);\n }\n\n var labelList = null;\n var returnValue;\n\n if (_this.isLabelInValue()) {\n returnValue = connectValueList.map(function (_ref19) {\n var label = _ref19.label,\n value = _ref19.value;\n return {\n label: label,\n value: value\n };\n });\n } else {\n labelList = [];\n returnValue = connectValueList.map(function (_ref20) {\n var label = _ref20.label,\n value = _ref20.value;\n labelList.push(label);\n return value;\n });\n }\n\n if (!_this.isMultiple()) {\n returnValue = returnValue[0];\n }\n\n onChange(returnValue, labelList, extra);\n }\n });\n\n var prefixAria = _props.prefixAria,\n defaultOpen = _props.defaultOpen,\n _open = _props.open;\n _this.state = {\n open: _open || defaultOpen,\n valueList: [],\n searchHalfCheckedKeys: [],\n missValueList: [],\n // Contains the value not in the tree\n selectorValueList: [],\n // Used for multiple selector\n valueEntities: {},\n keyEntities: {},\n searchValue: '',\n init: true\n };\n _this.selectorRef = Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"g\" /* createRef */])();\n _this.selectTriggerRef = Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"g\" /* createRef */])(); // ARIA need `aria-controls` props mapping\n // Since this need user input. Let's generate ourselves\n\n _this.ariaId = Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"l\" /* generateAriaId */])(\"\".concat(prefixAria, \"-list\"));\n return _this;\n }\n\n _createClass(Select, [{\n key: \"getChildContext\",\n value: function getChildContext() {\n return {\n rcTreeSelect: {\n onSelectorFocus: this.onSelectorFocus,\n onSelectorBlur: this.onSelectorBlur,\n onSelectorKeyDown: this.onComponentKeyDown,\n onSelectorClear: this.onSelectorClear,\n onMultipleSelectorRemove: this.onMultipleSelectorRemove,\n onTreeNodeSelect: this.onTreeNodeSelect,\n onTreeNodeCheck: this.onTreeNodeCheck,\n onPopupKeyDown: this.onComponentKeyDown,\n onSearchInputChange: this.onSearchInputChange,\n onSearchInputKeyDown: this.onSearchInputKeyDown\n }\n };\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n var _this$props8 = this.props,\n autoFocus = _this$props8.autoFocus,\n disabled = _this$props8.disabled;\n\n if (autoFocus && !disabled) {\n this.focus();\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(_, prevState) {\n var _this2 = this;\n\n var prefixCls = this.props.prefixCls;\n var _this$state8 = this.state,\n valueList = _this$state8.valueList,\n open = _this$state8.open,\n selectorValueList = _this$state8.selectorValueList,\n valueEntities = _this$state8.valueEntities;\n var isMultiple = this.isMultiple();\n\n if (prevState.valueList !== valueList) {\n this.forcePopupAlign();\n } // Scroll to value position, only need sync on single mode\n\n\n if (!isMultiple && selectorValueList.length && !prevState.open && open && this.popup) {\n var value = selectorValueList[0].value;\n\n var _this$popup$getTree = this.popup.getTree(),\n domTreeNodes = _this$popup$getTree.domTreeNodes;\n\n var _ref21 = valueEntities[value] || {},\n key = _ref21.key;\n\n var treeNode = domTreeNodes[key];\n\n if (treeNode) {\n var domNode = Object(__WEBPACK_IMPORTED_MODULE_1_react_dom__[\"findDOMNode\"])(treeNode);\n __WEBPACK_IMPORTED_MODULE_6_raf___default()(function () {\n var popupNode = Object(__WEBPACK_IMPORTED_MODULE_1_react_dom__[\"findDOMNode\"])(_this2.popup);\n var triggerContainer = Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"h\" /* findPopupContainer */])(popupNode, \"\".concat(prefixCls, \"-dropdown\"));\n var searchNode = _this2.popup.searchRef.current;\n\n if (domNode && triggerContainer && searchNode) {\n __WEBPACK_IMPORTED_MODULE_7_dom_scroll_into_view___default()(domNode, triggerContainer, {\n onlyScrollIfNeeded: true,\n offsetTop: searchNode.offsetHeight\n });\n }\n });\n }\n }\n } // ==================== Selector ====================\n\n }, {\n key: \"focus\",\n value: function focus() {\n this.selectorRef.current.focus();\n }\n }, {\n key: \"blur\",\n value: function blur() {\n this.selectorRef.current.blur();\n } // ===================== Render =====================\n\n }, {\n key: \"render\",\n value: function render() {\n var _this$state9 = this.state,\n valueList = _this$state9.valueList,\n missValueList = _this$state9.missValueList,\n selectorValueList = _this$state9.selectorValueList,\n searchHalfCheckedKeys = _this$state9.searchHalfCheckedKeys,\n valueEntities = _this$state9.valueEntities,\n keyEntities = _this$state9.keyEntities,\n searchValue = _this$state9.searchValue,\n open = _this$state9.open,\n focused = _this$state9.focused,\n treeNodes = _this$state9.treeNodes,\n filteredTreeNodes = _this$state9.filteredTreeNodes;\n var _this$props9 = this.props,\n prefixCls = _this$props9.prefixCls,\n treeExpandedKeys = _this$props9.treeExpandedKeys,\n onTreeExpand = _this$props9.onTreeExpand;\n var isMultiple = this.isMultiple();\n\n var passProps = _objectSpread({}, this.props, {\n isMultiple: isMultiple,\n valueList: valueList,\n searchHalfCheckedKeys: searchHalfCheckedKeys,\n selectorValueList: [].concat(_toConsumableArray(missValueList), _toConsumableArray(selectorValueList)),\n valueEntities: valueEntities,\n keyEntities: keyEntities,\n searchValue: searchValue,\n upperSearchValue: (searchValue || '').toUpperCase(),\n // Perf save\n open: open,\n focused: focused,\n onChoiceAnimationLeave: this.onChoiceAnimationLeave,\n dropdownPrefixCls: \"\".concat(prefixCls, \"-dropdown\"),\n ariaId: this.ariaId\n });\n\n var Popup = isMultiple ? __WEBPACK_IMPORTED_MODULE_14__Popup_MultiplePopup__[\"a\" /* default */] : __WEBPACK_IMPORTED_MODULE_13__Popup_SinglePopup__[\"a\" /* default */];\n var $popup = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Popup, _extends({\n ref: this.setPopupRef\n }, passProps, {\n onTreeExpanded: this.delayForcePopupAlign,\n treeNodes: treeNodes,\n filteredTreeNodes: filteredTreeNodes // Tree expanded control\n ,\n treeExpandedKeys: treeExpandedKeys,\n onTreeExpand: onTreeExpand\n }));\n var Selector = isMultiple ? __WEBPACK_IMPORTED_MODULE_12__Selector_MultipleSelector__[\"a\" /* default */] : __WEBPACK_IMPORTED_MODULE_11__Selector_SingleSelector__[\"a\" /* default */];\n var $selector = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Selector, _extends({}, passProps, {\n ref: this.selectorRef\n }));\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__SelectTrigger__[\"a\" /* default */], _extends({}, passProps, {\n ref: this.selectTriggerRef,\n popupElement: $popup,\n onKeyDown: this.onKeyDown,\n onDropdownVisibleChange: this.onDropdownVisibleChange\n }), $selector);\n }\n }], [{\n key: \"getDerivedStateFromProps\",\n value: function getDerivedStateFromProps(nextProps, prevState) {\n var _prevState$prevProps = prevState.prevProps,\n prevProps = _prevState$prevProps === void 0 ? {} : _prevState$prevProps;\n var treeCheckable = nextProps.treeCheckable,\n treeCheckStrictly = nextProps.treeCheckStrictly,\n filterTreeNode = nextProps.filterTreeNode,\n treeNodeFilterProp = nextProps.treeNodeFilterProp,\n treeDataSimpleMode = nextProps.treeDataSimpleMode;\n var newState = {\n prevProps: nextProps,\n init: false\n }; // Process the state when props updated\n\n function processState(propName, updater) {\n if (prevProps[propName] !== nextProps[propName]) {\n updater(nextProps[propName], prevProps[propName]);\n return true;\n }\n\n return false;\n }\n\n var valueRefresh = false; // Open\n\n processState('open', function (propValue) {\n newState.open = propValue;\n }); // Tree Nodes\n\n var treeNodes;\n var treeDataChanged = false;\n var treeDataModeChanged = false;\n processState('treeData', function (propValue) {\n treeNodes = Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"e\" /* convertDataToTree */])(propValue);\n treeDataChanged = true;\n });\n processState('treeDataSimpleMode', function (propValue, prevValue) {\n if (!propValue) return;\n var prev = !prevValue || prevValue === true ? {} : prevValue; // Shallow equal to avoid dynamic prop object\n\n if (!__WEBPACK_IMPORTED_MODULE_5_shallowequal___default()(propValue, prev)) {\n treeDataModeChanged = true;\n }\n }); // Parse by `treeDataSimpleMode`\n\n if (treeDataSimpleMode && (treeDataChanged || treeDataModeChanged)) {\n var simpleMapper = _objectSpread({\n id: 'id',\n pId: 'pId',\n rootPId: null\n }, treeDataSimpleMode !== true ? treeDataSimpleMode : {});\n\n treeNodes = Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"e\" /* convertDataToTree */])(Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"q\" /* parseSimpleTreeData */])(nextProps.treeData, simpleMapper));\n } // If `treeData` not provide, use children TreeNodes\n\n\n if (!nextProps.treeData) {\n processState('children', function (propValue) {\n treeNodes = Array.isArray(propValue) ? propValue : [propValue];\n });\n } // Convert `treeData` to entities\n\n\n if (treeNodes) {\n var entitiesMap = Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"f\" /* convertTreeToEntities */])(treeNodes);\n newState.treeNodes = treeNodes;\n newState.posEntities = entitiesMap.posEntities;\n newState.valueEntities = entitiesMap.valueEntities;\n newState.keyEntities = entitiesMap.keyEntities;\n valueRefresh = true;\n } // Value List\n\n\n if (prevState.init) {\n processState('defaultValue', function (propValue) {\n newState.valueList = Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"j\" /* formatInternalValue */])(propValue, nextProps);\n valueRefresh = true;\n });\n }\n\n processState('value', function (propValue) {\n newState.valueList = Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"j\" /* formatInternalValue */])(propValue, nextProps);\n valueRefresh = true;\n }); // Selector Value List\n\n if (valueRefresh) {\n // Find out that value not exist in the tree\n var missValueList = [];\n var filteredValueList = [];\n var keyList = []; // Get latest value list\n\n var latestValueList = newState.valueList;\n\n if (!latestValueList) {\n // Also need add prev missValueList to avoid new treeNodes contains the value\n latestValueList = [].concat(_toConsumableArray(prevState.valueList), _toConsumableArray(prevState.missValueList));\n } // Get key by value\n\n\n var valueLabels = {};\n latestValueList.forEach(function (wrapperValue) {\n var value = wrapperValue.value,\n label = wrapperValue.label;\n var entity = (newState.valueEntities || prevState.valueEntities)[value];\n valueLabels[value] = label;\n\n if (entity) {\n keyList.push(entity.key);\n filteredValueList.push(wrapperValue);\n return;\n } // If not match, it may caused by ajax load. We need keep this\n\n\n missValueList.push(wrapperValue);\n }); // We need calculate the value when tree is checked tree\n\n if (treeCheckable && !treeCheckStrictly) {\n // Calculate the keys need to be checked\n var _conductCheck = Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"d\" /* conductCheck */])(keyList, true, newState.keyEntities || prevState.keyEntities),\n checkedKeys = _conductCheck.checkedKeys; // Format value list again for internal usage\n\n\n newState.valueList = checkedKeys.map(function (key) {\n var val = (newState.keyEntities || prevState.keyEntities)[key].value;\n var wrappedValue = {\n value: val\n };\n\n if (valueLabels[val] !== undefined) {\n wrappedValue.label = valueLabels[val];\n }\n\n return wrappedValue;\n });\n } else {\n newState.valueList = filteredValueList;\n } // Fill the missValueList, we still need display in the selector\n\n\n newState.missValueList = missValueList; // Calculate the value list for `Selector` usage\n\n newState.selectorValueList = Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"k\" /* formatSelectorValue */])(newState.valueList, nextProps, newState.valueEntities || prevState.valueEntities);\n } // [Legacy] To align with `Select` component,\n // We use `searchValue` instead of `inputValue` but still keep the api\n // `inputValue` support `null` to work as `autoClearSearchValue`\n\n\n processState('inputValue', function (propValue) {\n if (propValue !== null) {\n newState.searchValue = propValue;\n }\n }); // Search value\n\n processState('searchValue', function (propValue) {\n newState.searchValue = propValue;\n }); // Do the search logic\n\n if (newState.searchValue !== undefined || prevState.searchValue && treeNodes) {\n var searchValue = newState.searchValue !== undefined ? newState.searchValue : prevState.searchValue;\n var upperSearchValue = String(searchValue).toUpperCase();\n var filterTreeNodeFn = filterTreeNode;\n\n if (filterTreeNode === false) {\n // Don't filter if is false\n filterTreeNodeFn = function filterTreeNodeFn() {\n return true;\n };\n } else if (typeof filterTreeNodeFn !== 'function') {\n // When is not function (true or undefined), use inner filter\n filterTreeNodeFn = function filterTreeNodeFn(_, node) {\n var nodeValue = String(node.props[treeNodeFilterProp]).toUpperCase();\n return nodeValue.indexOf(upperSearchValue) !== -1;\n };\n }\n\n newState.filteredTreeNodes = Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"m\" /* getFilterTree */])(newState.treeNodes || prevState.treeNodes, searchValue, filterTreeNodeFn, newState.valueEntities || prevState.valueEntities, __WEBPACK_IMPORTED_MODULE_18__SelectNode__[\"a\" /* default */]);\n } // We should re-calculate the halfCheckedKeys when in search mode\n\n\n if (valueRefresh && treeCheckable && !treeCheckStrictly && (newState.searchValue || prevState.searchValue)) {\n newState.searchHalfCheckedKeys = Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"n\" /* getHalfCheckedKeys */])(newState.valueList, newState.valueEntities || prevState.valueEntities);\n } // Checked Strategy\n\n\n processState('showCheckedStrategy', function () {\n newState.selectorValueList = newState.selectorValueList || Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"k\" /* formatSelectorValue */])(newState.valueList || prevState.valueList, nextProps, newState.valueEntities || prevState.valueEntities);\n });\n return newState;\n }\n }]);\n\n return Select;\n}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);\n\n_defineProperty(Select, \"propTypes\", {\n prefixCls: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string,\n prefixAria: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string,\n multiple: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,\n showArrow: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,\n open: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,\n value: __WEBPACK_IMPORTED_MODULE_17__propTypes__[\"a\" /* valueProp */],\n autoFocus: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,\n defaultOpen: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,\n defaultValue: __WEBPACK_IMPORTED_MODULE_17__propTypes__[\"a\" /* valueProp */],\n showSearch: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,\n placeholder: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.node,\n inputValue: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string,\n // [Legacy] Deprecated. Use `searchValue` instead.\n searchValue: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string,\n autoClearSearchValue: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,\n searchPlaceholder: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.node,\n // [Legacy] Confuse with placeholder\n disabled: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,\n children: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.node,\n labelInValue: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,\n maxTagCount: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number,\n maxTagPlaceholder: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.node, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func]),\n maxTagTextLength: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number,\n showCheckedStrategy: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOf([__WEBPACK_IMPORTED_MODULE_15__strategies__[\"a\" /* SHOW_ALL */], __WEBPACK_IMPORTED_MODULE_15__strategies__[\"c\" /* SHOW_PARENT */], __WEBPACK_IMPORTED_MODULE_15__strategies__[\"b\" /* SHOW_CHILD */]]),\n dropdownMatchSelectWidth: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,\n treeData: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.array,\n treeDataSimpleMode: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object]),\n treeNodeFilterProp: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string,\n treeNodeLabelProp: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string,\n treeCheckable: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.node]),\n treeCheckStrictly: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,\n treeIcon: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,\n treeLine: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,\n treeDefaultExpandAll: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,\n treeDefaultExpandedKeys: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.array,\n treeExpandedKeys: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.array,\n loadData: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,\n filterTreeNode: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool]),\n notFoundContent: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.node,\n onSearch: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,\n onSelect: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,\n onDeselect: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,\n onChange: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,\n onDropdownVisibleChange: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,\n onTreeExpand: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,\n inputIcon: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.node, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func]),\n clearIcon: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.node, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func]),\n removeIcon: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.node, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func]),\n switcherIcon: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.node, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func])\n});\n\n_defineProperty(Select, \"childContextTypes\", {\n rcTreeSelect: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.shape(_objectSpread({}, __WEBPACK_IMPORTED_MODULE_9__Base_BaseSelector__[\"b\" /* selectorContextTypes */], {}, __WEBPACK_IMPORTED_MODULE_12__Selector_MultipleSelector__[\"b\" /* multipleSelectorContextTypes */], {}, __WEBPACK_IMPORTED_MODULE_10__Base_BasePopup__[\"b\" /* popupContextTypes */], {\n onSearchInputChange: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,\n onSearchInputKeyDown: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func\n }))\n});\n\n_defineProperty(Select, \"defaultProps\", {\n prefixCls: 'rc-tree-select',\n prefixAria: 'rc-tree-select',\n showArrow: true,\n showSearch: true,\n autoClearSearchValue: true,\n showCheckedStrategy: __WEBPACK_IMPORTED_MODULE_15__strategies__[\"b\" /* SHOW_CHILD */],\n // dropdownMatchSelectWidth change the origin design, set to false now\n // ref: https://github.com/react-component/select/blob/4cad95e098a341a09de239ad6981067188842020/src/Select.jsx#L344\n // ref: https://github.com/react-component/select/pull/71\n treeNodeFilterProp: 'value',\n treeNodeLabelProp: 'title',\n treeIcon: false,\n notFoundContent: 'Not Found'\n});\n\nSelect.TreeNode = __WEBPACK_IMPORTED_MODULE_18__SelectNode__[\"a\" /* default */];\nSelect.SHOW_ALL = __WEBPACK_IMPORTED_MODULE_15__strategies__[\"a\" /* SHOW_ALL */];\nSelect.SHOW_PARENT = __WEBPACK_IMPORTED_MODULE_15__strategies__[\"c\" /* SHOW_PARENT */];\nSelect.SHOW_CHILD = __WEBPACK_IMPORTED_MODULE_15__strategies__[\"b\" /* SHOW_CHILD */]; // Let warning show correct component name\n\nSelect.displayName = 'TreeSelect';\nObject(__WEBPACK_IMPORTED_MODULE_3_react_lifecycles_compat__[\"polyfill\"])(Select);\n/* harmony default export */ __webpack_exports__[\"a\"] = (Select);\n\n/***/ }),\n/* 1658 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_lifecycles_compat__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rc_trigger__ = __webpack_require__(1659);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_classnames__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_classnames__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__util__ = __webpack_require__(34);\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (typeof call === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\n\n\n\n\n\nvar BUILT_IN_PLACEMENTS = {\n bottomLeft: {\n points: ['tl', 'bl'],\n offset: [0, 4],\n overflow: {\n adjustX: 0,\n adjustY: 1\n },\n ignoreShake: true\n },\n topLeft: {\n points: ['bl', 'tl'],\n offset: [0, -4],\n overflow: {\n adjustX: 0,\n adjustY: 1\n },\n ignoreShake: true\n }\n};\n\nvar SelectTrigger =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inherits(SelectTrigger, _React$Component);\n\n function SelectTrigger() {\n var _this;\n\n _classCallCheck(this, SelectTrigger);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(SelectTrigger).call(this));\n\n _defineProperty(_assertThisInitialized(_this), \"getDropdownTransitionName\", function () {\n var _this$props = _this.props,\n transitionName = _this$props.transitionName,\n animation = _this$props.animation,\n dropdownPrefixCls = _this$props.dropdownPrefixCls;\n\n if (!transitionName && animation) {\n return \"\".concat(dropdownPrefixCls, \"-\").concat(animation);\n }\n\n return transitionName;\n });\n\n _defineProperty(_assertThisInitialized(_this), \"forcePopupAlign\", function () {\n var $trigger = _this.triggerRef.current;\n\n if ($trigger) {\n $trigger.forcePopupAlign();\n }\n });\n\n _this.triggerRef = Object(__WEBPACK_IMPORTED_MODULE_5__util__[\"g\" /* createRef */])();\n return _this;\n }\n\n _createClass(SelectTrigger, [{\n key: \"render\",\n value: function render() {\n var _classNames;\n\n var _this$props2 = this.props,\n disabled = _this$props2.disabled,\n isMultiple = _this$props2.isMultiple,\n dropdownPopupAlign = _this$props2.dropdownPopupAlign,\n dropdownMatchSelectWidth = _this$props2.dropdownMatchSelectWidth,\n dropdownClassName = _this$props2.dropdownClassName,\n dropdownStyle = _this$props2.dropdownStyle,\n onDropdownVisibleChange = _this$props2.onDropdownVisibleChange,\n getPopupContainer = _this$props2.getPopupContainer,\n dropdownPrefixCls = _this$props2.dropdownPrefixCls,\n popupElement = _this$props2.popupElement,\n open = _this$props2.open,\n children = _this$props2.children; // TODO: [Legacy] Use new action when trigger fixed: https://github.com/react-component/trigger/pull/86\n // When false do nothing with the width\n // ref: https://github.com/ant-design/ant-design/issues/10927\n\n var stretch;\n\n if (dropdownMatchSelectWidth !== false) {\n stretch = dropdownMatchSelectWidth ? 'width' : 'minWidth';\n }\n\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3_rc_trigger__[\"a\" /* default */], {\n ref: this.triggerRef,\n action: disabled ? [] : ['click'],\n popupPlacement: \"bottomLeft\",\n builtinPlacements: BUILT_IN_PLACEMENTS,\n popupAlign: dropdownPopupAlign,\n prefixCls: dropdownPrefixCls,\n popupTransitionName: this.getDropdownTransitionName(),\n onPopupVisibleChange: onDropdownVisibleChange,\n popup: popupElement,\n popupVisible: open,\n getPopupContainer: getPopupContainer,\n stretch: stretch,\n popupClassName: __WEBPACK_IMPORTED_MODULE_4_classnames___default()(dropdownClassName, (_classNames = {}, _defineProperty(_classNames, \"\".concat(dropdownPrefixCls, \"--multiple\"), isMultiple), _defineProperty(_classNames, \"\".concat(dropdownPrefixCls, \"--single\"), !isMultiple), _classNames)),\n popupStyle: dropdownStyle\n }, children);\n }\n }]);\n\n return SelectTrigger;\n}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);\n\n_defineProperty(SelectTrigger, \"propTypes\", {\n // Pass by outside user props\n disabled: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n showSearch: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n prefixCls: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,\n dropdownPopupAlign: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object,\n dropdownClassName: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,\n dropdownStyle: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object,\n transitionName: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,\n animation: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,\n getPopupContainer: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n children: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node,\n dropdownMatchSelectWidth: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n // Pass by Select\n isMultiple: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n dropdownPrefixCls: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,\n onDropdownVisibleChange: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n popupElement: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node,\n open: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool\n});\n\nObject(__WEBPACK_IMPORTED_MODULE_2_react_lifecycles_compat__[\"polyfill\"])(SelectTrigger);\n/* harmony default export */ __webpack_exports__[\"a\"] = (SelectTrigger);\n\n/***/ }),\n/* 1659 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(8);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(7);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_prop_types__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_dom__ = __webpack_require__(3);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react_dom__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_rc_util_es_Dom_contains__ = __webpack_require__(143);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_rc_util_es_Dom_addEventListener__ = __webpack_require__(144);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__Popup__ = __webpack_require__(1660);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__utils__ = __webpack_require__(532);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_rc_util_es_ContainerRender__ = __webpack_require__(258);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_rc_util_es_Portal__ = __webpack_require__(259);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_classnames__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_13_classnames__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_rc_util_es_unsafeLifecyclesPolyfill__ = __webpack_require__(90);\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nfunction noop() {}\n\nfunction returnEmptyString() {\n return '';\n}\n\nfunction returnDocument() {\n return window.document;\n}\n\nvar ALL_HANDLERS = ['onClick', 'onMouseDown', 'onTouchStart', 'onMouseEnter', 'onMouseLeave', 'onFocus', 'onBlur', 'onContextMenu'];\n\nvar IS_REACT_16 = !!__WEBPACK_IMPORTED_MODULE_6_react_dom__[\"createPortal\"];\n\nvar Trigger = function (_React$Component) {\n __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default()(Trigger, _React$Component);\n\n function Trigger(props) {\n __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, Trigger);\n\n var _this = __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.call(this, props));\n\n _initialiseProps.call(_this);\n\n var popupVisible = void 0;\n if ('popupVisible' in props) {\n popupVisible = !!props.popupVisible;\n } else {\n popupVisible = !!props.defaultPopupVisible;\n }\n\n _this.prevPopupVisible = popupVisible;\n\n _this.state = {\n popupVisible: popupVisible\n };\n\n ALL_HANDLERS.forEach(function (h) {\n _this['fire' + h] = function (e) {\n _this.fireEvents(h, e);\n };\n });\n return _this;\n }\n\n Trigger.prototype.componentDidMount = function componentDidMount() {\n this.componentDidUpdate({}, {\n popupVisible: this.state.popupVisible\n });\n };\n\n Trigger.prototype.componentWillReceiveProps = function componentWillReceiveProps(_ref) {\n var popupVisible = _ref.popupVisible;\n\n if (popupVisible !== undefined) {\n this.setState({\n popupVisible: popupVisible\n });\n }\n };\n\n Trigger.prototype.componentDidUpdate = function componentDidUpdate(_, prevState) {\n var props = this.props;\n var state = this.state;\n var triggerAfterPopupVisibleChange = function triggerAfterPopupVisibleChange() {\n if (prevState.popupVisible !== state.popupVisible) {\n props.afterPopupVisibleChange(state.popupVisible);\n }\n };\n if (!IS_REACT_16) {\n this.renderComponent(null, triggerAfterPopupVisibleChange);\n }\n\n this.prevPopupVisible = prevState.popupVisible;\n\n // We must listen to `mousedown` or `touchstart`, edge case:\n // https://github.com/ant-design/ant-design/issues/5804\n // https://github.com/react-component/calendar/issues/250\n // https://github.com/react-component/trigger/issues/50\n if (state.popupVisible) {\n var currentDocument = void 0;\n if (!this.clickOutsideHandler && (this.isClickToHide() || this.isContextMenuToShow())) {\n currentDocument = props.getDocument();\n this.clickOutsideHandler = Object(__WEBPACK_IMPORTED_MODULE_8_rc_util_es_Dom_addEventListener__[\"a\" /* default */])(currentDocument, 'mousedown', this.onDocumentClick);\n }\n // always hide on mobile\n if (!this.touchOutsideHandler) {\n currentDocument = currentDocument || props.getDocument();\n this.touchOutsideHandler = Object(__WEBPACK_IMPORTED_MODULE_8_rc_util_es_Dom_addEventListener__[\"a\" /* default */])(currentDocument, 'touchstart', this.onDocumentClick);\n }\n // close popup when trigger type contains 'onContextMenu' and document is scrolling.\n if (!this.contextMenuOutsideHandler1 && this.isContextMenuToShow()) {\n currentDocument = currentDocument || props.getDocument();\n this.contextMenuOutsideHandler1 = Object(__WEBPACK_IMPORTED_MODULE_8_rc_util_es_Dom_addEventListener__[\"a\" /* default */])(currentDocument, 'scroll', this.onContextMenuClose);\n }\n // close popup when trigger type contains 'onContextMenu' and window is blur.\n if (!this.contextMenuOutsideHandler2 && this.isContextMenuToShow()) {\n this.contextMenuOutsideHandler2 = Object(__WEBPACK_IMPORTED_MODULE_8_rc_util_es_Dom_addEventListener__[\"a\" /* default */])(window, 'blur', this.onContextMenuClose);\n }\n return;\n }\n\n this.clearOutsideHandler();\n };\n\n Trigger.prototype.componentWillUnmount = function componentWillUnmount() {\n this.clearDelayTimer();\n this.clearOutsideHandler();\n };\n\n Trigger.prototype.getPopupDomNode = function getPopupDomNode() {\n // for test\n if (this._component && this._component.getPopupDomNode) {\n return this._component.getPopupDomNode();\n }\n return null;\n };\n\n Trigger.prototype.getPopupAlign = function getPopupAlign() {\n var props = this.props;\n var popupPlacement = props.popupPlacement,\n popupAlign = props.popupAlign,\n builtinPlacements = props.builtinPlacements;\n\n if (popupPlacement && builtinPlacements) {\n return Object(__WEBPACK_IMPORTED_MODULE_10__utils__[\"a\" /* getAlignFromPlacement */])(builtinPlacements, popupPlacement, popupAlign);\n }\n return popupAlign;\n };\n\n /**\n * @param popupVisible Show or not the popup element\n * @param event SyntheticEvent, used for `pointAlign`\n */\n Trigger.prototype.setPopupVisible = function setPopupVisible(popupVisible, event) {\n var alignPoint = this.props.alignPoint;\n\n\n this.clearDelayTimer();\n\n if (this.state.popupVisible !== popupVisible) {\n if (!('popupVisible' in this.props)) {\n this.setState({ popupVisible: popupVisible });\n }\n this.props.onPopupVisibleChange(popupVisible);\n }\n\n // Always record the point position since mouseEnterDelay will delay the show\n if (alignPoint && event) {\n this.setPoint(event);\n }\n };\n\n Trigger.prototype.delaySetPopupVisible = function delaySetPopupVisible(visible, delayS, event) {\n var _this2 = this;\n\n var delay = delayS * 1000;\n this.clearDelayTimer();\n if (delay) {\n var point = event ? { pageX: event.pageX, pageY: event.pageY } : null;\n this.delayTimer = setTimeout(function () {\n _this2.setPopupVisible(visible, point);\n _this2.clearDelayTimer();\n }, delay);\n } else {\n this.setPopupVisible(visible, event);\n }\n };\n\n Trigger.prototype.clearDelayTimer = function clearDelayTimer() {\n if (this.delayTimer) {\n clearTimeout(this.delayTimer);\n this.delayTimer = null;\n }\n };\n\n Trigger.prototype.clearOutsideHandler = function clearOutsideHandler() {\n if (this.clickOutsideHandler) {\n this.clickOutsideHandler.remove();\n this.clickOutsideHandler = null;\n }\n\n if (this.contextMenuOutsideHandler1) {\n this.contextMenuOutsideHandler1.remove();\n this.contextMenuOutsideHandler1 = null;\n }\n\n if (this.contextMenuOutsideHandler2) {\n this.contextMenuOutsideHandler2.remove();\n this.contextMenuOutsideHandler2 = null;\n }\n\n if (this.touchOutsideHandler) {\n this.touchOutsideHandler.remove();\n this.touchOutsideHandler = null;\n }\n };\n\n Trigger.prototype.createTwoChains = function createTwoChains(event) {\n var childPros = this.props.children.props;\n var props = this.props;\n if (childPros[event] && props[event]) {\n return this['fire' + event];\n }\n return childPros[event] || props[event];\n };\n\n Trigger.prototype.isClickToShow = function isClickToShow() {\n var _props = this.props,\n action = _props.action,\n showAction = _props.showAction;\n\n return action.indexOf('click') !== -1 || showAction.indexOf('click') !== -1;\n };\n\n Trigger.prototype.isContextMenuToShow = function isContextMenuToShow() {\n var _props2 = this.props,\n action = _props2.action,\n showAction = _props2.showAction;\n\n return action.indexOf('contextMenu') !== -1 || showAction.indexOf('contextMenu') !== -1;\n };\n\n Trigger.prototype.isClickToHide = function isClickToHide() {\n var _props3 = this.props,\n action = _props3.action,\n hideAction = _props3.hideAction;\n\n return action.indexOf('click') !== -1 || hideAction.indexOf('click') !== -1;\n };\n\n Trigger.prototype.isMouseEnterToShow = function isMouseEnterToShow() {\n var _props4 = this.props,\n action = _props4.action,\n showAction = _props4.showAction;\n\n return action.indexOf('hover') !== -1 || showAction.indexOf('mouseEnter') !== -1;\n };\n\n Trigger.prototype.isMouseLeaveToHide = function isMouseLeaveToHide() {\n var _props5 = this.props,\n action = _props5.action,\n hideAction = _props5.hideAction;\n\n return action.indexOf('hover') !== -1 || hideAction.indexOf('mouseLeave') !== -1;\n };\n\n Trigger.prototype.isFocusToShow = function isFocusToShow() {\n var _props6 = this.props,\n action = _props6.action,\n showAction = _props6.showAction;\n\n return action.indexOf('focus') !== -1 || showAction.indexOf('focus') !== -1;\n };\n\n Trigger.prototype.isBlurToHide = function isBlurToHide() {\n var _props7 = this.props,\n action = _props7.action,\n hideAction = _props7.hideAction;\n\n return action.indexOf('focus') !== -1 || hideAction.indexOf('blur') !== -1;\n };\n\n Trigger.prototype.forcePopupAlign = function forcePopupAlign() {\n if (this.state.popupVisible && this._component && this._component.alignInstance) {\n this._component.alignInstance.forceAlign();\n }\n };\n\n Trigger.prototype.fireEvents = function fireEvents(type, e) {\n var childCallback = this.props.children.props[type];\n if (childCallback) {\n childCallback(e);\n }\n var callback = this.props[type];\n if (callback) {\n callback(e);\n }\n };\n\n Trigger.prototype.close = function close() {\n this.setPopupVisible(false);\n };\n\n Trigger.prototype.render = function render() {\n var _this3 = this;\n\n var popupVisible = this.state.popupVisible;\n var _props8 = this.props,\n children = _props8.children,\n forceRender = _props8.forceRender,\n alignPoint = _props8.alignPoint,\n className = _props8.className;\n\n var child = __WEBPACK_IMPORTED_MODULE_4_react___default.a.Children.only(children);\n var newChildProps = { key: 'trigger' };\n\n if (this.isContextMenuToShow()) {\n newChildProps.onContextMenu = this.onContextMenu;\n } else {\n newChildProps.onContextMenu = this.createTwoChains('onContextMenu');\n }\n\n if (this.isClickToHide() || this.isClickToShow()) {\n newChildProps.onClick = this.onClick;\n newChildProps.onMouseDown = this.onMouseDown;\n newChildProps.onTouchStart = this.onTouchStart;\n } else {\n newChildProps.onClick = this.createTwoChains('onClick');\n newChildProps.onMouseDown = this.createTwoChains('onMouseDown');\n newChildProps.onTouchStart = this.createTwoChains('onTouchStart');\n }\n if (this.isMouseEnterToShow()) {\n newChildProps.onMouseEnter = this.onMouseEnter;\n if (alignPoint) {\n newChildProps.onMouseMove = this.onMouseMove;\n }\n } else {\n newChildProps.onMouseEnter = this.createTwoChains('onMouseEnter');\n }\n if (this.isMouseLeaveToHide()) {\n newChildProps.onMouseLeave = this.onMouseLeave;\n } else {\n newChildProps.onMouseLeave = this.createTwoChains('onMouseLeave');\n }\n if (this.isFocusToShow() || this.isBlurToHide()) {\n newChildProps.onFocus = this.onFocus;\n newChildProps.onBlur = this.onBlur;\n } else {\n newChildProps.onFocus = this.createTwoChains('onFocus');\n newChildProps.onBlur = this.createTwoChains('onBlur');\n }\n\n var childrenClassName = __WEBPACK_IMPORTED_MODULE_13_classnames___default()(child && child.props && child.props.className, className);\n if (childrenClassName) {\n newChildProps.className = childrenClassName;\n }\n var trigger = __WEBPACK_IMPORTED_MODULE_4_react___default.a.cloneElement(child, newChildProps);\n\n if (!IS_REACT_16) {\n return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(\n __WEBPACK_IMPORTED_MODULE_11_rc_util_es_ContainerRender__[\"a\" /* default */],\n {\n parent: this,\n visible: popupVisible,\n autoMount: false,\n forceRender: forceRender,\n getComponent: this.getComponent,\n getContainer: this.getContainer\n },\n function (_ref2) {\n var renderComponent = _ref2.renderComponent;\n\n _this3.renderComponent = renderComponent;\n return trigger;\n }\n );\n }\n\n var portal = void 0;\n // prevent unmounting after it's rendered\n if (popupVisible || this._component || forceRender) {\n portal = __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(\n __WEBPACK_IMPORTED_MODULE_12_rc_util_es_Portal__[\"a\" /* default */],\n {\n key: 'portal',\n getContainer: this.getContainer,\n didUpdate: this.handlePortalUpdate\n },\n this.getComponent()\n );\n }\n\n return [trigger, portal];\n };\n\n return Trigger;\n}(__WEBPACK_IMPORTED_MODULE_4_react___default.a.Component);\n\nTrigger.propTypes = {\n children: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.any,\n action: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string)]),\n showAction: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.any,\n hideAction: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.any,\n getPopupClassNameFromAlign: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.any,\n onPopupVisibleChange: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func,\n afterPopupVisibleChange: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func,\n popup: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.node, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func]).isRequired,\n popupStyle: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object,\n prefixCls: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string,\n popupClassName: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string,\n className: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string,\n popupPlacement: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string,\n builtinPlacements: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object,\n popupTransitionName: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object]),\n popupAnimation: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.any,\n mouseEnterDelay: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number,\n mouseLeaveDelay: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number,\n zIndex: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number,\n focusDelay: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number,\n blurDelay: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number,\n getPopupContainer: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func,\n getDocument: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func,\n forceRender: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool,\n destroyPopupOnHide: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool,\n mask: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool,\n maskClosable: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool,\n onPopupAlign: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func,\n popupAlign: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object,\n popupVisible: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool,\n defaultPopupVisible: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool,\n maskTransitionName: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object]),\n maskAnimation: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string,\n stretch: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string,\n alignPoint: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool // Maybe we can support user pass position in the future\n};\nTrigger.defaultProps = {\n prefixCls: 'rc-trigger-popup',\n getPopupClassNameFromAlign: returnEmptyString,\n getDocument: returnDocument,\n onPopupVisibleChange: noop,\n afterPopupVisibleChange: noop,\n onPopupAlign: noop,\n popupClassName: '',\n mouseEnterDelay: 0,\n mouseLeaveDelay: 0.1,\n focusDelay: 0,\n blurDelay: 0.15,\n popupStyle: {},\n destroyPopupOnHide: false,\n popupAlign: {},\n defaultPopupVisible: false,\n mask: false,\n maskClosable: true,\n action: [],\n showAction: [],\n hideAction: []\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this4 = this;\n\n this.onMouseEnter = function (e) {\n var mouseEnterDelay = _this4.props.mouseEnterDelay;\n\n _this4.fireEvents('onMouseEnter', e);\n _this4.delaySetPopupVisible(true, mouseEnterDelay, mouseEnterDelay ? null : e);\n };\n\n this.onMouseMove = function (e) {\n _this4.fireEvents('onMouseMove', e);\n _this4.setPoint(e);\n };\n\n this.onMouseLeave = function (e) {\n _this4.fireEvents('onMouseLeave', e);\n _this4.delaySetPopupVisible(false, _this4.props.mouseLeaveDelay);\n };\n\n this.onPopupMouseEnter = function () {\n _this4.clearDelayTimer();\n };\n\n this.onPopupMouseLeave = function (e) {\n // https://github.com/react-component/trigger/pull/13\n // react bug?\n if (e.relatedTarget && !e.relatedTarget.setTimeout && _this4._component && _this4._component.getPopupDomNode && Object(__WEBPACK_IMPORTED_MODULE_7_rc_util_es_Dom_contains__[\"a\" /* default */])(_this4._component.getPopupDomNode(), e.relatedTarget)) {\n return;\n }\n _this4.delaySetPopupVisible(false, _this4.props.mouseLeaveDelay);\n };\n\n this.onFocus = function (e) {\n _this4.fireEvents('onFocus', e);\n // incase focusin and focusout\n _this4.clearDelayTimer();\n if (_this4.isFocusToShow()) {\n _this4.focusTime = Date.now();\n _this4.delaySetPopupVisible(true, _this4.props.focusDelay);\n }\n };\n\n this.onMouseDown = function (e) {\n _this4.fireEvents('onMouseDown', e);\n _this4.preClickTime = Date.now();\n };\n\n this.onTouchStart = function (e) {\n _this4.fireEvents('onTouchStart', e);\n _this4.preTouchTime = Date.now();\n };\n\n this.onBlur = function (e) {\n _this4.fireEvents('onBlur', e);\n _this4.clearDelayTimer();\n if (_this4.isBlurToHide()) {\n _this4.delaySetPopupVisible(false, _this4.props.blurDelay);\n }\n };\n\n this.onContextMenu = function (e) {\n e.preventDefault();\n _this4.fireEvents('onContextMenu', e);\n _this4.setPopupVisible(true, e);\n };\n\n this.onContextMenuClose = function () {\n if (_this4.isContextMenuToShow()) {\n _this4.close();\n }\n };\n\n this.onClick = function (event) {\n _this4.fireEvents('onClick', event);\n // focus will trigger click\n if (_this4.focusTime) {\n var preTime = void 0;\n if (_this4.preClickTime && _this4.preTouchTime) {\n preTime = Math.min(_this4.preClickTime, _this4.preTouchTime);\n } else if (_this4.preClickTime) {\n preTime = _this4.preClickTime;\n } else if (_this4.preTouchTime) {\n preTime = _this4.preTouchTime;\n }\n if (Math.abs(preTime - _this4.focusTime) < 20) {\n return;\n }\n _this4.focusTime = 0;\n }\n _this4.preClickTime = 0;\n _this4.preTouchTime = 0;\n if (event && event.preventDefault) {\n event.preventDefault();\n }\n var nextVisible = !_this4.state.popupVisible;\n if (_this4.isClickToHide() && !nextVisible || nextVisible && _this4.isClickToShow()) {\n _this4.setPopupVisible(!_this4.state.popupVisible, event);\n }\n };\n\n this.onDocumentClick = function (event) {\n if (_this4.props.mask && !_this4.props.maskClosable) {\n return;\n }\n var target = event.target;\n var root = Object(__WEBPACK_IMPORTED_MODULE_6_react_dom__[\"findDOMNode\"])(_this4);\n var popupNode = _this4.getPopupDomNode();\n if (!Object(__WEBPACK_IMPORTED_MODULE_7_rc_util_es_Dom_contains__[\"a\" /* default */])(root, target) && !Object(__WEBPACK_IMPORTED_MODULE_7_rc_util_es_Dom_contains__[\"a\" /* default */])(popupNode, target)) {\n _this4.close();\n }\n };\n\n this.getRootDomNode = function () {\n return Object(__WEBPACK_IMPORTED_MODULE_6_react_dom__[\"findDOMNode\"])(_this4);\n };\n\n this.getPopupClassNameFromAlign = function (align) {\n var className = [];\n var _props9 = _this4.props,\n popupPlacement = _props9.popupPlacement,\n builtinPlacements = _props9.builtinPlacements,\n prefixCls = _props9.prefixCls,\n alignPoint = _props9.alignPoint,\n getPopupClassNameFromAlign = _props9.getPopupClassNameFromAlign;\n\n if (popupPlacement && builtinPlacements) {\n className.push(Object(__WEBPACK_IMPORTED_MODULE_10__utils__[\"b\" /* getAlignPopupClassName */])(builtinPlacements, prefixCls, align, alignPoint));\n }\n if (getPopupClassNameFromAlign) {\n className.push(getPopupClassNameFromAlign(align));\n }\n return className.join(' ');\n };\n\n this.getComponent = function () {\n var _props10 = _this4.props,\n prefixCls = _props10.prefixCls,\n destroyPopupOnHide = _props10.destroyPopupOnHide,\n popupClassName = _props10.popupClassName,\n action = _props10.action,\n onPopupAlign = _props10.onPopupAlign,\n popupAnimation = _props10.popupAnimation,\n popupTransitionName = _props10.popupTransitionName,\n popupStyle = _props10.popupStyle,\n mask = _props10.mask,\n maskAnimation = _props10.maskAnimation,\n maskTransitionName = _props10.maskTransitionName,\n zIndex = _props10.zIndex,\n popup = _props10.popup,\n stretch = _props10.stretch,\n alignPoint = _props10.alignPoint;\n var _state = _this4.state,\n popupVisible = _state.popupVisible,\n point = _state.point;\n\n\n var align = _this4.getPopupAlign();\n\n var mouseProps = {};\n if (_this4.isMouseEnterToShow()) {\n mouseProps.onMouseEnter = _this4.onPopupMouseEnter;\n }\n if (_this4.isMouseLeaveToHide()) {\n mouseProps.onMouseLeave = _this4.onPopupMouseLeave;\n }\n\n return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(\n __WEBPACK_IMPORTED_MODULE_9__Popup__[\"a\" /* default */],\n __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({\n prefixCls: prefixCls,\n destroyPopupOnHide: destroyPopupOnHide,\n visible: popupVisible,\n point: alignPoint && point,\n className: popupClassName,\n action: action,\n align: align,\n onAlign: onPopupAlign,\n animation: popupAnimation,\n getClassNameFromAlign: _this4.getPopupClassNameFromAlign\n }, mouseProps, {\n stretch: stretch,\n getRootDomNode: _this4.getRootDomNode,\n style: popupStyle,\n mask: mask,\n zIndex: zIndex,\n transitionName: popupTransitionName,\n maskAnimation: maskAnimation,\n maskTransitionName: maskTransitionName,\n ref: _this4.savePopup\n }),\n typeof popup === 'function' ? popup() : popup\n );\n };\n\n this.getContainer = function () {\n var props = _this4.props;\n\n var popupContainer = document.createElement('div');\n // Make sure default popup container will never cause scrollbar appearing\n // https://github.com/react-component/trigger/issues/41\n popupContainer.style.position = 'absolute';\n popupContainer.style.top = '0';\n popupContainer.style.left = '0';\n popupContainer.style.width = '100%';\n var mountNode = props.getPopupContainer ? props.getPopupContainer(Object(__WEBPACK_IMPORTED_MODULE_6_react_dom__[\"findDOMNode\"])(_this4)) : props.getDocument().body;\n mountNode.appendChild(popupContainer);\n return popupContainer;\n };\n\n this.setPoint = function (point) {\n var alignPoint = _this4.props.alignPoint;\n\n if (!alignPoint || !point) return;\n\n _this4.setState({\n point: {\n pageX: point.pageX,\n pageY: point.pageY\n }\n });\n };\n\n this.handlePortalUpdate = function () {\n if (_this4.prevPopupVisible !== _this4.state.popupVisible) {\n _this4.props.afterPopupVisibleChange(_this4.state.popupVisible);\n }\n };\n\n this.savePopup = function (node) {\n _this4._component = node;\n };\n};\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (Object(__WEBPACK_IMPORTED_MODULE_14_rc_util_es_unsafeLifecyclesPolyfill__[\"a\" /* default */])(Trigger));\n\n/***/ }),\n/* 1660 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(8);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(7);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_prop_types__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_dom__ = __webpack_require__(3);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react_dom__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_rc_align__ = __webpack_require__(261);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_rc_animate__ = __webpack_require__(1661);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_raf__ = __webpack_require__(36);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_raf___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_raf__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__PopupInner__ = __webpack_require__(1666);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__LazyRenderBox__ = __webpack_require__(531);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__utils__ = __webpack_require__(532);\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar Popup = function (_Component) {\n __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default()(Popup, _Component);\n\n function Popup(props) {\n __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, Popup);\n\n var _this = __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(this, _Component.call(this, props));\n\n _initialiseProps.call(_this);\n\n _this.state = {\n // Used for stretch\n stretchChecked: false,\n targetWidth: undefined,\n targetHeight: undefined\n };\n\n _this.savePopupRef = __WEBPACK_IMPORTED_MODULE_12__utils__[\"c\" /* saveRef */].bind(_this, 'popupInstance');\n _this.saveAlignRef = __WEBPACK_IMPORTED_MODULE_12__utils__[\"c\" /* saveRef */].bind(_this, 'alignInstance');\n return _this;\n }\n\n Popup.prototype.componentDidMount = function componentDidMount() {\n this.rootNode = this.getPopupDomNode();\n this.setStretchSize();\n };\n\n Popup.prototype.componentDidUpdate = function componentDidUpdate() {\n this.setStretchSize();\n };\n\n // Record size if stretch needed\n\n\n Popup.prototype.getPopupDomNode = function getPopupDomNode() {\n return __WEBPACK_IMPORTED_MODULE_6_react_dom___default.a.findDOMNode(this.popupInstance);\n };\n\n // `target` on `rc-align` can accept as a function to get the bind element or a point.\n // ref: https://www.npmjs.com/package/rc-align\n\n\n Popup.prototype.getMaskTransitionName = function getMaskTransitionName() {\n var props = this.props;\n var transitionName = props.maskTransitionName;\n var animation = props.maskAnimation;\n if (!transitionName && animation) {\n transitionName = props.prefixCls + '-' + animation;\n }\n return transitionName;\n };\n\n Popup.prototype.getTransitionName = function getTransitionName() {\n var props = this.props;\n var transitionName = props.transitionName;\n if (!transitionName && props.animation) {\n transitionName = props.prefixCls + '-' + props.animation;\n }\n return transitionName;\n };\n\n Popup.prototype.getClassName = function getClassName(currentAlignClassName) {\n return this.props.prefixCls + ' ' + this.props.className + ' ' + currentAlignClassName;\n };\n\n Popup.prototype.getPopupElement = function getPopupElement() {\n var _this2 = this;\n\n var savePopupRef = this.savePopupRef;\n var _state = this.state,\n stretchChecked = _state.stretchChecked,\n targetHeight = _state.targetHeight,\n targetWidth = _state.targetWidth;\n var _props = this.props,\n align = _props.align,\n visible = _props.visible,\n prefixCls = _props.prefixCls,\n style = _props.style,\n getClassNameFromAlign = _props.getClassNameFromAlign,\n destroyPopupOnHide = _props.destroyPopupOnHide,\n stretch = _props.stretch,\n children = _props.children,\n onMouseEnter = _props.onMouseEnter,\n onMouseLeave = _props.onMouseLeave;\n\n var className = this.getClassName(this.currentAlignClassName || getClassNameFromAlign(align));\n var hiddenClassName = prefixCls + '-hidden';\n\n if (!visible) {\n this.currentAlignClassName = null;\n }\n\n var sizeStyle = {};\n if (stretch) {\n // Stretch with target\n if (stretch.indexOf('height') !== -1) {\n sizeStyle.height = targetHeight;\n } else if (stretch.indexOf('minHeight') !== -1) {\n sizeStyle.minHeight = targetHeight;\n }\n if (stretch.indexOf('width') !== -1) {\n sizeStyle.width = targetWidth;\n } else if (stretch.indexOf('minWidth') !== -1) {\n sizeStyle.minWidth = targetWidth;\n }\n\n // Delay force align to makes ui smooth\n if (!stretchChecked) {\n sizeStyle.visibility = 'hidden';\n __WEBPACK_IMPORTED_MODULE_9_raf___default()(function () {\n if (_this2.alignInstance) {\n _this2.alignInstance.forceAlign();\n }\n });\n }\n }\n\n var newStyle = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, sizeStyle, style, this.getZIndexStyle());\n\n var popupInnerProps = {\n className: className,\n prefixCls: prefixCls,\n ref: savePopupRef,\n onMouseEnter: onMouseEnter,\n onMouseLeave: onMouseLeave,\n style: newStyle\n };\n\n if (destroyPopupOnHide) {\n return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(\n __WEBPACK_IMPORTED_MODULE_8_rc_animate__[\"a\" /* default */],\n {\n component: '',\n exclusive: true,\n transitionAppear: true,\n transitionName: this.getTransitionName(),\n onLeave: this.onAnimateLeaved\n },\n visible ? __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(\n __WEBPACK_IMPORTED_MODULE_7_rc_align__[\"a\" /* default */],\n {\n target: this.getAlignTarget(),\n key: 'popup',\n ref: this.saveAlignRef,\n monitorWindowResize: true,\n align: align,\n onAlign: this.onAlign\n },\n __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(\n __WEBPACK_IMPORTED_MODULE_10__PopupInner__[\"a\" /* default */],\n __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({\n visible: true\n }, popupInnerProps),\n children\n )\n ) : null\n );\n }\n\n return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(\n __WEBPACK_IMPORTED_MODULE_8_rc_animate__[\"a\" /* default */],\n {\n component: '',\n exclusive: true,\n transitionAppear: true,\n transitionName: this.getTransitionName(),\n showProp: 'xVisible',\n onLeave: this.onAnimateLeaved\n },\n __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(\n __WEBPACK_IMPORTED_MODULE_7_rc_align__[\"a\" /* default */],\n {\n target: this.getAlignTarget(),\n key: 'popup',\n ref: this.saveAlignRef,\n monitorWindowResize: true,\n xVisible: visible,\n childrenProps: { visible: 'xVisible' },\n disabled: !visible,\n align: align,\n onAlign: this.onAlign\n },\n __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(\n __WEBPACK_IMPORTED_MODULE_10__PopupInner__[\"a\" /* default */],\n __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({\n hiddenClassName: hiddenClassName\n }, popupInnerProps),\n children\n )\n )\n );\n };\n\n Popup.prototype.getZIndexStyle = function getZIndexStyle() {\n var style = {};\n var props = this.props;\n if (props.zIndex !== undefined) {\n style.zIndex = props.zIndex;\n }\n return style;\n };\n\n Popup.prototype.getMaskElement = function getMaskElement() {\n var props = this.props;\n var maskElement = void 0;\n if (props.mask) {\n var maskTransition = this.getMaskTransitionName();\n maskElement = __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_11__LazyRenderBox__[\"a\" /* default */], {\n style: this.getZIndexStyle(),\n key: 'mask',\n className: props.prefixCls + '-mask',\n hiddenClassName: props.prefixCls + '-mask-hidden',\n visible: props.visible\n });\n if (maskTransition) {\n maskElement = __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(\n __WEBPACK_IMPORTED_MODULE_8_rc_animate__[\"a\" /* default */],\n {\n key: 'mask',\n showProp: 'visible',\n transitionAppear: true,\n component: '',\n transitionName: maskTransition\n },\n maskElement\n );\n }\n }\n return maskElement;\n };\n\n Popup.prototype.render = function render() {\n return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(\n 'div',\n null,\n this.getMaskElement(),\n this.getPopupElement()\n );\n };\n\n return Popup;\n}(__WEBPACK_IMPORTED_MODULE_4_react__[\"Component\"]);\n\nPopup.propTypes = {\n visible: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool,\n style: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object,\n getClassNameFromAlign: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func,\n onAlign: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func,\n getRootDomNode: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func,\n onMouseEnter: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func,\n align: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.any,\n destroyPopupOnHide: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool,\n className: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string,\n prefixCls: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string,\n onMouseLeave: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func,\n stretch: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string,\n children: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.node,\n point: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.shape({\n pageX: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number,\n pageY: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number\n })\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this3 = this;\n\n this.onAlign = function (popupDomNode, align) {\n var props = _this3.props;\n var currentAlignClassName = props.getClassNameFromAlign(align);\n // FIX: https://github.com/react-component/trigger/issues/56\n // FIX: https://github.com/react-component/tooltip/issues/79\n if (_this3.currentAlignClassName !== currentAlignClassName) {\n _this3.currentAlignClassName = currentAlignClassName;\n popupDomNode.className = _this3.getClassName(currentAlignClassName);\n }\n props.onAlign(popupDomNode, align);\n };\n\n this.onAnimateLeaved = function () {\n var stretch = _this3.props.stretch;\n var stretchChecked = _this3.state.stretchChecked;\n\n if (stretch && stretchChecked) {\n _this3.setState({ stretchChecked: false });\n }\n };\n\n this.setStretchSize = function () {\n var getRootDomNode = _this3.props.getRootDomNode;\n var _state2 = _this3.state,\n stretchChecked = _state2.stretchChecked,\n targetHeight = _state2.targetHeight,\n targetWidth = _state2.targetWidth;\n\n\n var $ele = getRootDomNode();\n if (!$ele) return;\n\n var height = $ele.offsetHeight;\n var width = $ele.offsetWidth;\n\n if (targetHeight !== height || targetWidth !== width || !stretchChecked) {\n _this3.setState({\n stretchChecked: true,\n targetHeight: height,\n targetWidth: width\n });\n }\n };\n\n this.getTargetElement = function () {\n return _this3.props.getRootDomNode();\n };\n\n this.getAlignTarget = function () {\n var point = _this3.props.point;\n\n if (point) {\n return point;\n }\n return _this3.getTargetElement;\n };\n};\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (Popup);\n\n/***/ }),\n/* 1661 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_rc_util_es_unsafeLifecyclesPolyfill__ = __webpack_require__(90);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ChildrenUtils__ = __webpack_require__(1662);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__AnimateChild__ = __webpack_require__(1663);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util_animate__ = __webpack_require__(530);\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n/* eslint react/prop-types: 0 */\n\n\n\n\n\n\nvar defaultKey = 'rc_animate_' + Date.now();\n\nfunction getChildrenFromProps(props) {\n var children = props.children;\n if (__WEBPACK_IMPORTED_MODULE_0_react___default.a.isValidElement(children)) {\n if (!children.key) {\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.cloneElement(children, {\n key: defaultKey\n });\n }\n }\n return children;\n}\n\nfunction noop() {}\n\nvar Animate = function (_React$Component) {\n _inherits(Animate, _React$Component);\n\n function Animate(props) {\n _classCallCheck(this, Animate);\n\n var _this = _possibleConstructorReturn(this, (Animate.__proto__ || Object.getPrototypeOf(Animate)).call(this, props));\n\n _initialiseProps.call(_this);\n\n _this.currentlyAnimatingKeys = {};\n _this.keysToEnter = [];\n _this.keysToLeave = [];\n\n _this.state = {\n children: Object(__WEBPACK_IMPORTED_MODULE_2__ChildrenUtils__[\"e\" /* toArrayChildren */])(getChildrenFromProps(props))\n };\n\n _this.childrenRefs = {};\n return _this;\n } // eslint-disable-line\n\n _createClass(Animate, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n var _this2 = this;\n\n var showProp = this.props.showProp;\n var children = this.state.children;\n if (showProp) {\n children = children.filter(function (child) {\n return !!child.props[showProp];\n });\n }\n children.forEach(function (child) {\n if (child) {\n _this2.performAppear(child.key);\n }\n });\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n var _this3 = this;\n\n this.nextProps = nextProps;\n var nextChildren = Object(__WEBPACK_IMPORTED_MODULE_2__ChildrenUtils__[\"e\" /* toArrayChildren */])(getChildrenFromProps(nextProps));\n var props = this.props;\n // exclusive needs immediate response\n if (props.exclusive) {\n Object.keys(this.currentlyAnimatingKeys).forEach(function (key) {\n _this3.stop(key);\n });\n }\n var showProp = props.showProp;\n var currentlyAnimatingKeys = this.currentlyAnimatingKeys;\n // last props children if exclusive\n var currentChildren = props.exclusive ? Object(__WEBPACK_IMPORTED_MODULE_2__ChildrenUtils__[\"e\" /* toArrayChildren */])(getChildrenFromProps(props)) : this.state.children;\n // in case destroy in showProp mode\n var newChildren = [];\n if (showProp) {\n currentChildren.forEach(function (currentChild) {\n var nextChild = currentChild && Object(__WEBPACK_IMPORTED_MODULE_2__ChildrenUtils__[\"a\" /* findChildInChildrenByKey */])(nextChildren, currentChild.key);\n var newChild = void 0;\n if ((!nextChild || !nextChild.props[showProp]) && currentChild.props[showProp]) {\n newChild = __WEBPACK_IMPORTED_MODULE_0_react___default.a.cloneElement(nextChild || currentChild, _defineProperty({}, showProp, true));\n } else {\n newChild = nextChild;\n }\n if (newChild) {\n newChildren.push(newChild);\n }\n });\n nextChildren.forEach(function (nextChild) {\n if (!nextChild || !Object(__WEBPACK_IMPORTED_MODULE_2__ChildrenUtils__[\"a\" /* findChildInChildrenByKey */])(currentChildren, nextChild.key)) {\n newChildren.push(nextChild);\n }\n });\n } else {\n newChildren = Object(__WEBPACK_IMPORTED_MODULE_2__ChildrenUtils__[\"d\" /* mergeChildren */])(currentChildren, nextChildren);\n }\n\n // need render to avoid update\n this.setState({\n children: newChildren\n });\n\n nextChildren.forEach(function (child) {\n var key = child && child.key;\n if (child && currentlyAnimatingKeys[key]) {\n return;\n }\n var hasPrev = child && Object(__WEBPACK_IMPORTED_MODULE_2__ChildrenUtils__[\"a\" /* findChildInChildrenByKey */])(currentChildren, key);\n if (showProp) {\n var showInNext = child.props[showProp];\n if (hasPrev) {\n var showInNow = Object(__WEBPACK_IMPORTED_MODULE_2__ChildrenUtils__[\"b\" /* findShownChildInChildrenByKey */])(currentChildren, key, showProp);\n if (!showInNow && showInNext) {\n _this3.keysToEnter.push(key);\n }\n } else if (showInNext) {\n _this3.keysToEnter.push(key);\n }\n } else if (!hasPrev) {\n _this3.keysToEnter.push(key);\n }\n });\n\n currentChildren.forEach(function (child) {\n var key = child && child.key;\n if (child && currentlyAnimatingKeys[key]) {\n return;\n }\n var hasNext = child && Object(__WEBPACK_IMPORTED_MODULE_2__ChildrenUtils__[\"a\" /* findChildInChildrenByKey */])(nextChildren, key);\n if (showProp) {\n var showInNow = child.props[showProp];\n if (hasNext) {\n var showInNext = Object(__WEBPACK_IMPORTED_MODULE_2__ChildrenUtils__[\"b\" /* findShownChildInChildrenByKey */])(nextChildren, key, showProp);\n if (!showInNext && showInNow) {\n _this3.keysToLeave.push(key);\n }\n } else if (showInNow) {\n _this3.keysToLeave.push(key);\n }\n } else if (!hasNext) {\n _this3.keysToLeave.push(key);\n }\n });\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n var keysToEnter = this.keysToEnter;\n this.keysToEnter = [];\n keysToEnter.forEach(this.performEnter);\n var keysToLeave = this.keysToLeave;\n this.keysToLeave = [];\n keysToLeave.forEach(this.performLeave);\n }\n }, {\n key: 'isValidChildByKey',\n value: function isValidChildByKey(currentChildren, key) {\n var showProp = this.props.showProp;\n if (showProp) {\n return Object(__WEBPACK_IMPORTED_MODULE_2__ChildrenUtils__[\"b\" /* findShownChildInChildrenByKey */])(currentChildren, key, showProp);\n }\n return Object(__WEBPACK_IMPORTED_MODULE_2__ChildrenUtils__[\"a\" /* findChildInChildrenByKey */])(currentChildren, key);\n }\n }, {\n key: 'stop',\n value: function stop(key) {\n delete this.currentlyAnimatingKeys[key];\n var component = this.childrenRefs[key];\n if (component) {\n component.stop();\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _this4 = this;\n\n var props = this.props;\n this.nextProps = props;\n var stateChildren = this.state.children;\n var children = null;\n if (stateChildren) {\n children = stateChildren.map(function (child) {\n if (child === null || child === undefined) {\n return child;\n }\n if (!child.key) {\n throw new Error('must set key for children');\n }\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\n __WEBPACK_IMPORTED_MODULE_3__AnimateChild__[\"a\" /* default */],\n {\n key: child.key,\n ref: function ref(node) {\n _this4.childrenRefs[child.key] = node;\n },\n animation: props.animation,\n transitionName: props.transitionName,\n transitionEnter: props.transitionEnter,\n transitionAppear: props.transitionAppear,\n transitionLeave: props.transitionLeave\n },\n child\n );\n });\n }\n var Component = props.component;\n if (Component) {\n var passedProps = props;\n if (typeof Component === 'string') {\n passedProps = _extends({\n className: props.className,\n style: props.style\n }, props.componentProps);\n }\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\n Component,\n passedProps,\n children\n );\n }\n return children[0] || null;\n }\n }]);\n\n return Animate;\n}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);\n\nAnimate.isAnimate = true;\nAnimate.defaultProps = {\n animation: {},\n component: 'span',\n componentProps: {},\n transitionEnter: true,\n transitionLeave: true,\n transitionAppear: false,\n onEnd: noop,\n onEnter: noop,\n onLeave: noop,\n onAppear: noop\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this5 = this;\n\n this.performEnter = function (key) {\n // may already remove by exclusive\n if (_this5.childrenRefs[key]) {\n _this5.currentlyAnimatingKeys[key] = true;\n _this5.childrenRefs[key].componentWillEnter(_this5.handleDoneAdding.bind(_this5, key, 'enter'));\n }\n };\n\n this.performAppear = function (key) {\n if (_this5.childrenRefs[key]) {\n _this5.currentlyAnimatingKeys[key] = true;\n _this5.childrenRefs[key].componentWillAppear(_this5.handleDoneAdding.bind(_this5, key, 'appear'));\n }\n };\n\n this.handleDoneAdding = function (key, type) {\n var props = _this5.props;\n delete _this5.currentlyAnimatingKeys[key];\n // if update on exclusive mode, skip check\n if (props.exclusive && props !== _this5.nextProps) {\n return;\n }\n var currentChildren = Object(__WEBPACK_IMPORTED_MODULE_2__ChildrenUtils__[\"e\" /* toArrayChildren */])(getChildrenFromProps(props));\n if (!_this5.isValidChildByKey(currentChildren, key)) {\n // exclusive will not need this\n _this5.performLeave(key);\n } else if (type === 'appear') {\n if (__WEBPACK_IMPORTED_MODULE_4__util_animate__[\"a\" /* default */].allowAppearCallback(props)) {\n props.onAppear(key);\n props.onEnd(key, true);\n }\n } else if (__WEBPACK_IMPORTED_MODULE_4__util_animate__[\"a\" /* default */].allowEnterCallback(props)) {\n props.onEnter(key);\n props.onEnd(key, true);\n }\n };\n\n this.performLeave = function (key) {\n // may already remove by exclusive\n if (_this5.childrenRefs[key]) {\n _this5.currentlyAnimatingKeys[key] = true;\n _this5.childrenRefs[key].componentWillLeave(_this5.handleDoneLeaving.bind(_this5, key));\n }\n };\n\n this.handleDoneLeaving = function (key) {\n var props = _this5.props;\n delete _this5.currentlyAnimatingKeys[key];\n // if update on exclusive mode, skip check\n if (props.exclusive && props !== _this5.nextProps) {\n return;\n }\n var currentChildren = Object(__WEBPACK_IMPORTED_MODULE_2__ChildrenUtils__[\"e\" /* toArrayChildren */])(getChildrenFromProps(props));\n // in case state change is too fast\n if (_this5.isValidChildByKey(currentChildren, key)) {\n _this5.performEnter(key);\n } else {\n var end = function end() {\n if (__WEBPACK_IMPORTED_MODULE_4__util_animate__[\"a\" /* default */].allowLeaveCallback(props)) {\n props.onLeave(key);\n props.onEnd(key, false);\n }\n };\n if (!Object(__WEBPACK_IMPORTED_MODULE_2__ChildrenUtils__[\"c\" /* isSameChildren */])(_this5.state.children, currentChildren, props.showProp)) {\n _this5.setState({\n children: currentChildren\n }, end);\n } else {\n end();\n }\n }\n };\n};\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (Object(__WEBPACK_IMPORTED_MODULE_1_rc_util_es_unsafeLifecyclesPolyfill__[\"a\" /* default */])(Animate));\n\n/***/ }),\n/* 1662 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (immutable) */ __webpack_exports__[\"e\"] = toArrayChildren;\n/* harmony export (immutable) */ __webpack_exports__[\"a\"] = findChildInChildrenByKey;\n/* harmony export (immutable) */ __webpack_exports__[\"b\"] = findShownChildInChildrenByKey;\n/* unused harmony export findHiddenChildInChildrenByKey */\n/* harmony export (immutable) */ __webpack_exports__[\"c\"] = isSameChildren;\n/* harmony export (immutable) */ __webpack_exports__[\"d\"] = mergeChildren;\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);\n\n\nfunction toArrayChildren(children) {\n var ret = [];\n __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (child) {\n ret.push(child);\n });\n return ret;\n}\n\nfunction findChildInChildrenByKey(children, key) {\n var ret = null;\n if (children) {\n children.forEach(function (child) {\n if (ret) {\n return;\n }\n if (child && child.key === key) {\n ret = child;\n }\n });\n }\n return ret;\n}\n\nfunction findShownChildInChildrenByKey(children, key, showProp) {\n var ret = null;\n if (children) {\n children.forEach(function (child) {\n if (child && child.key === key && child.props[showProp]) {\n if (ret) {\n throw new Error('two child with same key for children');\n }\n ret = child;\n }\n });\n }\n return ret;\n}\n\nfunction findHiddenChildInChildrenByKey(children, key, showProp) {\n var found = 0;\n if (children) {\n children.forEach(function (child) {\n if (found) {\n return;\n }\n found = child && child.key === key && !child.props[showProp];\n });\n }\n return found;\n}\n\nfunction isSameChildren(c1, c2, showProp) {\n var same = c1.length === c2.length;\n if (same) {\n c1.forEach(function (child, index) {\n var child2 = c2[index];\n if (child && child2) {\n if (child && !child2 || !child && child2) {\n same = false;\n } else if (child.key !== child2.key) {\n same = false;\n } else if (showProp && child.props[showProp] !== child2.props[showProp]) {\n same = false;\n }\n }\n });\n }\n return same;\n}\n\nfunction mergeChildren(prev, next) {\n var ret = [];\n\n // For each key of `next`, the list of keys to insert before that key in\n // the combined list\n var nextChildrenPending = {};\n var pendingChildren = [];\n prev.forEach(function (child) {\n if (child && findChildInChildrenByKey(next, child.key)) {\n if (pendingChildren.length) {\n nextChildrenPending[child.key] = pendingChildren;\n pendingChildren = [];\n }\n } else {\n pendingChildren.push(child);\n }\n });\n\n next.forEach(function (child) {\n if (child && Object.prototype.hasOwnProperty.call(nextChildrenPending, child.key)) {\n ret = ret.concat(nextChildrenPending[child.key]);\n }\n ret.push(child);\n });\n\n ret = ret.concat(pendingChildren);\n\n return ret;\n}\n\n/***/ }),\n/* 1663 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom__ = __webpack_require__(3);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_dom__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ant_design_css_animation__ = __webpack_require__(1664);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_animate__ = __webpack_require__(530);\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n/* eslint react/prop-types: 0 */\n\n\n\n\n\nvar transitionMap = {\n enter: 'transitionEnter',\n appear: 'transitionAppear',\n leave: 'transitionLeave'\n};\n\nvar AnimateChild = function (_React$Component) {\n _inherits(AnimateChild, _React$Component);\n\n function AnimateChild() {\n _classCallCheck(this, AnimateChild);\n\n return _possibleConstructorReturn(this, (AnimateChild.__proto__ || Object.getPrototypeOf(AnimateChild)).apply(this, arguments));\n }\n\n _createClass(AnimateChild, [{\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n this.stop();\n }\n }, {\n key: 'componentWillEnter',\n value: function componentWillEnter(done) {\n if (__WEBPACK_IMPORTED_MODULE_3__util_animate__[\"a\" /* default */].isEnterSupported(this.props)) {\n this.transition('enter', done);\n } else {\n done();\n }\n }\n }, {\n key: 'componentWillAppear',\n value: function componentWillAppear(done) {\n if (__WEBPACK_IMPORTED_MODULE_3__util_animate__[\"a\" /* default */].isAppearSupported(this.props)) {\n this.transition('appear', done);\n } else {\n done();\n }\n }\n }, {\n key: 'componentWillLeave',\n value: function componentWillLeave(done) {\n if (__WEBPACK_IMPORTED_MODULE_3__util_animate__[\"a\" /* default */].isLeaveSupported(this.props)) {\n this.transition('leave', done);\n } else {\n // always sync, do not interupt with react component life cycle\n // update hidden -> animate hidden ->\n // didUpdate -> animate leave -> unmount (if animate is none)\n done();\n }\n }\n }, {\n key: 'transition',\n value: function transition(animationType, finishCallback) {\n var _this2 = this;\n\n var node = __WEBPACK_IMPORTED_MODULE_1_react_dom___default.a.findDOMNode(this);\n var props = this.props;\n var transitionName = props.transitionName;\n var nameIsObj = typeof transitionName === 'object';\n this.stop();\n var end = function end() {\n _this2.stopper = null;\n finishCallback();\n };\n if ((__WEBPACK_IMPORTED_MODULE_2__ant_design_css_animation__[\"b\" /* isCssAnimationSupported */] || !props.animation[animationType]) && transitionName && props[transitionMap[animationType]]) {\n var name = nameIsObj ? transitionName[animationType] : transitionName + '-' + animationType;\n var activeName = name + '-active';\n if (nameIsObj && transitionName[animationType + 'Active']) {\n activeName = transitionName[animationType + 'Active'];\n }\n this.stopper = Object(__WEBPACK_IMPORTED_MODULE_2__ant_design_css_animation__[\"a\" /* default */])(node, {\n name: name,\n active: activeName\n }, end);\n } else {\n this.stopper = props.animation[animationType](node, end);\n }\n }\n }, {\n key: 'stop',\n value: function stop() {\n var stopper = this.stopper;\n if (stopper) {\n this.stopper = null;\n stopper.stop();\n }\n }\n }, {\n key: 'render',\n value: function render() {\n return this.props.children;\n }\n }]);\n\n return AnimateChild;\n}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (AnimateChild);\n\n/***/ }),\n/* 1664 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"b\", function() { return isCssAnimationSupported; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Event__ = __webpack_require__(1665);\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\n\n\nvar isCssAnimationSupported = __WEBPACK_IMPORTED_MODULE_0__Event__[\"a\" /* default */].endEvents.length !== 0;\nvar capitalPrefixes = ['Webkit', 'Moz', 'O',\n// ms is special .... !\n'ms'];\nvar prefixes = ['-webkit-', '-moz-', '-o-', 'ms-', ''];\n\nfunction getStyleProperty(node, name) {\n // old ff need null, https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle\n var style = window.getComputedStyle(node, null);\n var ret = '';\n for (var i = 0; i < prefixes.length; i++) {\n ret = style.getPropertyValue(prefixes[i] + name);\n if (ret) {\n break;\n }\n }\n return ret;\n}\n\nfunction fixBrowserByTimeout(node) {\n if (isCssAnimationSupported) {\n var transitionDelay = parseFloat(getStyleProperty(node, 'transition-delay')) || 0;\n var transitionDuration = parseFloat(getStyleProperty(node, 'transition-duration')) || 0;\n var animationDelay = parseFloat(getStyleProperty(node, 'animation-delay')) || 0;\n var animationDuration = parseFloat(getStyleProperty(node, 'animation-duration')) || 0;\n var time = Math.max(transitionDuration + transitionDelay, animationDuration + animationDelay);\n // sometimes, browser bug\n node.rcEndAnimTimeout = setTimeout(function () {\n node.rcEndAnimTimeout = null;\n if (node.rcEndListener) {\n node.rcEndListener();\n }\n }, time * 1000 + 200);\n }\n}\n\nfunction clearBrowserBugTimeout(node) {\n if (node.rcEndAnimTimeout) {\n clearTimeout(node.rcEndAnimTimeout);\n node.rcEndAnimTimeout = null;\n }\n}\n\nvar cssAnimation = function cssAnimation(node, transitionName, endCallback) {\n var nameIsObj = (typeof transitionName === 'undefined' ? 'undefined' : _typeof(transitionName)) === 'object';\n var className = nameIsObj ? transitionName.name : transitionName;\n var activeClassName = nameIsObj ? transitionName.active : transitionName + '-active';\n var end = endCallback;\n var start = void 0;\n var active = void 0;\n\n if (endCallback && Object.prototype.toString.call(endCallback) === '[object Object]') {\n end = endCallback.end;\n start = endCallback.start;\n active = endCallback.active;\n }\n\n if (node.rcEndListener) {\n node.rcEndListener();\n }\n\n node.rcEndListener = function (e) {\n if (e && e.target !== node) {\n return;\n }\n\n if (node.rcAnimTimeout) {\n clearTimeout(node.rcAnimTimeout);\n node.rcAnimTimeout = null;\n }\n\n clearBrowserBugTimeout(node);\n\n node.classList.remove(className);\n node.classList.remove(activeClassName);\n\n __WEBPACK_IMPORTED_MODULE_0__Event__[\"a\" /* default */].removeEndEventListener(node, node.rcEndListener);\n node.rcEndListener = null;\n\n // Usually this optional end is used for informing an owner of\n // a leave animation and telling it to remove the child.\n if (end) {\n end();\n }\n };\n\n __WEBPACK_IMPORTED_MODULE_0__Event__[\"a\" /* default */].addEndEventListener(node, node.rcEndListener);\n\n if (start) {\n start();\n }\n node.classList.add(className);\n\n node.rcAnimTimeout = setTimeout(function () {\n node.rcAnimTimeout = null;\n node.classList.add(activeClassName);\n if (active) {\n setTimeout(active, 0);\n }\n fixBrowserByTimeout(node);\n // 30ms for firefox\n }, 30);\n\n return {\n stop: function stop() {\n if (node.rcEndListener) {\n node.rcEndListener();\n }\n }\n };\n};\n\ncssAnimation.style = function (node, style, callback) {\n if (node.rcEndListener) {\n node.rcEndListener();\n }\n\n node.rcEndListener = function (e) {\n if (e && e.target !== node) {\n return;\n }\n\n if (node.rcAnimTimeout) {\n clearTimeout(node.rcAnimTimeout);\n node.rcAnimTimeout = null;\n }\n\n clearBrowserBugTimeout(node);\n\n __WEBPACK_IMPORTED_MODULE_0__Event__[\"a\" /* default */].removeEndEventListener(node, node.rcEndListener);\n node.rcEndListener = null;\n\n // Usually this optional callback is used for informing an owner of\n // a leave animation and telling it to remove the child.\n if (callback) {\n callback();\n }\n };\n\n __WEBPACK_IMPORTED_MODULE_0__Event__[\"a\" /* default */].addEndEventListener(node, node.rcEndListener);\n\n node.rcAnimTimeout = setTimeout(function () {\n for (var s in style) {\n if (style.hasOwnProperty(s)) {\n node.style[s] = style[s];\n }\n }\n node.rcAnimTimeout = null;\n fixBrowserByTimeout(node);\n }, 0);\n};\n\ncssAnimation.setTransition = function (node, p, value) {\n var property = p;\n var v = value;\n if (value === undefined) {\n v = property;\n property = '';\n }\n property = property || '';\n capitalPrefixes.forEach(function (prefix) {\n node.style[prefix + 'Transition' + property] = v;\n });\n};\n\ncssAnimation.isCssAnimationSupported = isCssAnimationSupported;\n\n\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (cssAnimation);\n\n/***/ }),\n/* 1665 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nvar START_EVENT_NAME_MAP = {\n transitionstart: {\n transition: 'transitionstart',\n WebkitTransition: 'webkitTransitionStart',\n MozTransition: 'mozTransitionStart',\n OTransition: 'oTransitionStart',\n msTransition: 'MSTransitionStart'\n },\n\n animationstart: {\n animation: 'animationstart',\n WebkitAnimation: 'webkitAnimationStart',\n MozAnimation: 'mozAnimationStart',\n OAnimation: 'oAnimationStart',\n msAnimation: 'MSAnimationStart'\n }\n};\n\nvar END_EVENT_NAME_MAP = {\n transitionend: {\n transition: 'transitionend',\n WebkitTransition: 'webkitTransitionEnd',\n MozTransition: 'mozTransitionEnd',\n OTransition: 'oTransitionEnd',\n msTransition: 'MSTransitionEnd'\n },\n\n animationend: {\n animation: 'animationend',\n WebkitAnimation: 'webkitAnimationEnd',\n MozAnimation: 'mozAnimationEnd',\n OAnimation: 'oAnimationEnd',\n msAnimation: 'MSAnimationEnd'\n }\n};\n\nvar startEvents = [];\nvar endEvents = [];\n\nfunction detectEvents() {\n var testEl = document.createElement('div');\n var style = testEl.style;\n\n if (!('AnimationEvent' in window)) {\n delete START_EVENT_NAME_MAP.animationstart.animation;\n delete END_EVENT_NAME_MAP.animationend.animation;\n }\n\n if (!('TransitionEvent' in window)) {\n delete START_EVENT_NAME_MAP.transitionstart.transition;\n delete END_EVENT_NAME_MAP.transitionend.transition;\n }\n\n function process(EVENT_NAME_MAP, events) {\n for (var baseEventName in EVENT_NAME_MAP) {\n if (EVENT_NAME_MAP.hasOwnProperty(baseEventName)) {\n var baseEvents = EVENT_NAME_MAP[baseEventName];\n for (var styleName in baseEvents) {\n if (styleName in style) {\n events.push(baseEvents[styleName]);\n break;\n }\n }\n }\n }\n }\n\n process(START_EVENT_NAME_MAP, startEvents);\n process(END_EVENT_NAME_MAP, endEvents);\n}\n\nif (typeof window !== 'undefined' && typeof document !== 'undefined') {\n detectEvents();\n}\n\nfunction addEventListener(node, eventName, eventListener) {\n node.addEventListener(eventName, eventListener, false);\n}\n\nfunction removeEventListener(node, eventName, eventListener) {\n node.removeEventListener(eventName, eventListener, false);\n}\n\nvar TransitionEvents = {\n // Start events\n startEvents: startEvents,\n\n addStartEventListener: function addStartEventListener(node, eventListener) {\n if (startEvents.length === 0) {\n window.setTimeout(eventListener, 0);\n return;\n }\n startEvents.forEach(function (startEvent) {\n addEventListener(node, startEvent, eventListener);\n });\n },\n removeStartEventListener: function removeStartEventListener(node, eventListener) {\n if (startEvents.length === 0) {\n return;\n }\n startEvents.forEach(function (startEvent) {\n removeEventListener(node, startEvent, eventListener);\n });\n },\n\n\n // End events\n endEvents: endEvents,\n\n addEndEventListener: function addEndEventListener(node, eventListener) {\n if (endEvents.length === 0) {\n window.setTimeout(eventListener, 0);\n return;\n }\n endEvents.forEach(function (endEvent) {\n addEventListener(node, endEvent, eventListener);\n });\n },\n removeEndEventListener: function removeEndEventListener(node, eventListener) {\n if (endEvents.length === 0) {\n return;\n }\n endEvents.forEach(function (endEvent) {\n removeEventListener(node, endEvent, eventListener);\n });\n }\n};\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (TransitionEvents);\n\n/***/ }),\n/* 1666 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__ = __webpack_require__(7);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_possibleConstructorReturn__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_inherits__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_inherits__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_prop_types__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__LazyRenderBox__ = __webpack_require__(531);\n\n\n\n\n\n\n\nvar PopupInner = function (_Component) {\n __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_inherits___default()(PopupInner, _Component);\n\n function PopupInner() {\n __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default()(this, PopupInner);\n\n return __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_possibleConstructorReturn___default()(this, _Component.apply(this, arguments));\n }\n\n PopupInner.prototype.render = function render() {\n var props = this.props;\n var className = props.className;\n if (!props.visible) {\n className += ' ' + props.hiddenClassName;\n }\n return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(\n 'div',\n {\n className: className,\n onMouseEnter: props.onMouseEnter,\n onMouseLeave: props.onMouseLeave,\n style: props.style\n },\n __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(\n __WEBPACK_IMPORTED_MODULE_5__LazyRenderBox__[\"a\" /* default */],\n { className: props.prefixCls + '-content', visible: props.visible },\n props.children\n )\n );\n };\n\n return PopupInner;\n}(__WEBPACK_IMPORTED_MODULE_3_react__[\"Component\"]);\n\nPopupInner.propTypes = {\n hiddenClassName: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,\n className: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,\n prefixCls: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,\n onMouseEnter: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,\n onMouseLeave: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,\n children: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.any\n};\n\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (PopupInner);\n\n/***/ }),\n/* 1667 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\n\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar __DEV__ = process.env.NODE_ENV !== 'production';\n\nvar warning = function() {};\n\nif (__DEV__) {\n var printWarning = function printWarning(format, args) {\n var len = arguments.length;\n args = new Array(len > 1 ? len - 1 : 0);\n for (var key = 1; key < len; key++) {\n args[key - 1] = arguments[key];\n }\n var argIndex = 0;\n var message = 'Warning: ' +\n format.replace(/%s/g, function() {\n return args[argIndex++];\n });\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n }\n\n warning = function(condition, format, args) {\n var len = arguments.length;\n args = new Array(len > 2 ? len - 2 : 0);\n for (var key = 2; key < len; key++) {\n args[key - 2] = arguments[key];\n }\n if (format === undefined) {\n throw new Error(\n '`warning(condition, format, ...args)` requires a warning ' +\n 'message argument'\n );\n }\n if (!condition) {\n printWarning.apply(null, [format].concat(args));\n }\n };\n}\n\nmodule.exports = warning;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5)))\n\n/***/ }),\n/* 1668 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _implementation = __webpack_require__(1669);\n\nvar _implementation2 = _interopRequireDefault(_implementation);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = _react2.default.createContext || _implementation2.default;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1669 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(process) {\n\nexports.__esModule = true;\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _gud = __webpack_require__(1670);\n\nvar _gud2 = _interopRequireDefault(_gud);\n\nvar _warning = __webpack_require__(1671);\n\nvar _warning2 = _interopRequireDefault(_warning);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar MAX_SIGNED_31_BIT_INT = 1073741823;\n\n// Inlined Object.is polyfill.\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\nfunction objectIs(x, y) {\n if (x === y) {\n return x !== 0 || 1 / x === 1 / y;\n } else {\n return x !== x && y !== y;\n }\n}\n\nfunction createEventEmitter(value) {\n var handlers = [];\n return {\n on: function on(handler) {\n handlers.push(handler);\n },\n off: function off(handler) {\n handlers = handlers.filter(function (h) {\n return h !== handler;\n });\n },\n get: function get() {\n return value;\n },\n set: function set(newValue, changedBits) {\n value = newValue;\n handlers.forEach(function (handler) {\n return handler(value, changedBits);\n });\n }\n };\n}\n\nfunction onlyChild(children) {\n return Array.isArray(children) ? children[0] : children;\n}\n\nfunction createReactContext(defaultValue, calculateChangedBits) {\n var _Provider$childContex, _Consumer$contextType;\n\n var contextProp = '__create-react-context-' + (0, _gud2.default)() + '__';\n\n var Provider = function (_Component) {\n _inherits(Provider, _Component);\n\n function Provider() {\n var _temp, _this, _ret;\n\n _classCallCheck(this, Provider);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.emitter = createEventEmitter(_this.props.value), _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n Provider.prototype.getChildContext = function getChildContext() {\n var _ref;\n\n return _ref = {}, _ref[contextProp] = this.emitter, _ref;\n };\n\n Provider.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n if (this.props.value !== nextProps.value) {\n var oldValue = this.props.value;\n var newValue = nextProps.value;\n var changedBits = void 0;\n\n if (objectIs(oldValue, newValue)) {\n changedBits = 0; // No change\n } else {\n changedBits = typeof calculateChangedBits === 'function' ? calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT;\n if (process.env.NODE_ENV !== 'production') {\n (0, _warning2.default)((changedBits & MAX_SIGNED_31_BIT_INT) === changedBits, 'calculateChangedBits: Expected the return value to be a ' + '31-bit integer. Instead received: %s', changedBits);\n }\n\n changedBits |= 0;\n\n if (changedBits !== 0) {\n this.emitter.set(nextProps.value, changedBits);\n }\n }\n }\n };\n\n Provider.prototype.render = function render() {\n return this.props.children;\n };\n\n return Provider;\n }(_react.Component);\n\n Provider.childContextTypes = (_Provider$childContex = {}, _Provider$childContex[contextProp] = _propTypes2.default.object.isRequired, _Provider$childContex);\n\n var Consumer = function (_Component2) {\n _inherits(Consumer, _Component2);\n\n function Consumer() {\n var _temp2, _this2, _ret2;\n\n _classCallCheck(this, Consumer);\n\n for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n return _ret2 = (_temp2 = (_this2 = _possibleConstructorReturn(this, _Component2.call.apply(_Component2, [this].concat(args))), _this2), _this2.state = {\n value: _this2.getValue()\n }, _this2.onUpdate = function (newValue, changedBits) {\n var observedBits = _this2.observedBits | 0;\n if ((observedBits & changedBits) !== 0) {\n _this2.setState({ value: _this2.getValue() });\n }\n }, _temp2), _possibleConstructorReturn(_this2, _ret2);\n }\n\n Consumer.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n var observedBits = nextProps.observedBits;\n\n this.observedBits = observedBits === undefined || observedBits === null ? MAX_SIGNED_31_BIT_INT // Subscribe to all changes by default\n : observedBits;\n };\n\n Consumer.prototype.componentDidMount = function componentDidMount() {\n if (this.context[contextProp]) {\n this.context[contextProp].on(this.onUpdate);\n }\n var observedBits = this.props.observedBits;\n\n this.observedBits = observedBits === undefined || observedBits === null ? MAX_SIGNED_31_BIT_INT // Subscribe to all changes by default\n : observedBits;\n };\n\n Consumer.prototype.componentWillUnmount = function componentWillUnmount() {\n if (this.context[contextProp]) {\n this.context[contextProp].off(this.onUpdate);\n }\n };\n\n Consumer.prototype.getValue = function getValue() {\n if (this.context[contextProp]) {\n return this.context[contextProp].get();\n } else {\n return defaultValue;\n }\n };\n\n Consumer.prototype.render = function render() {\n return onlyChild(this.props.children)(this.state.value);\n };\n\n return Consumer;\n }(_react.Component);\n\n Consumer.contextTypes = (_Consumer$contextType = {}, _Consumer$contextType[contextProp] = _propTypes2.default.object, _Consumer$contextType);\n\n\n return {\n Provider: Provider,\n Consumer: Consumer\n };\n}\n\nexports.default = createReactContext;\nmodule.exports = exports['default'];\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5)))\n\n/***/ }),\n/* 1670 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(global) {// @flow\n\n\nvar key = '__global_unique_id__';\n\nmodule.exports = function() {\n return global[key] = (global[key] || 0) + 1;\n};\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35)))\n\n/***/ }),\n/* 1671 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\n\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar __DEV__ = process.env.NODE_ENV !== 'production';\n\nvar warning = function() {};\n\nif (__DEV__) {\n var printWarning = function printWarning(format, args) {\n var len = arguments.length;\n args = new Array(len > 1 ? len - 1 : 0);\n for (var key = 1; key < len; key++) {\n args[key - 1] = arguments[key];\n }\n var argIndex = 0;\n var message = 'Warning: ' +\n format.replace(/%s/g, function() {\n return args[argIndex++];\n });\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n }\n\n warning = function(condition, format, args) {\n var len = arguments.length;\n args = new Array(len > 2 ? len - 2 : 0);\n for (var key = 2; key < len; key++) {\n args[key - 2] = arguments[key];\n }\n if (format === undefined) {\n throw new Error(\n '`warning(condition, format, ...args)` requires a warning ' +\n 'message argument'\n );\n }\n if (!condition) {\n printWarning.apply(null, [format].concat(args));\n }\n };\n}\n\nmodule.exports = warning;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5)))\n\n/***/ }),\n/* 1672 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (immutable) */ __webpack_exports__[\"a\"] = hasClass;\n/* unused harmony export addClass */\n/* unused harmony export removeClass */\nfunction hasClass(node, className) {\n if (node.classList) {\n return node.classList.contains(className);\n }\n\n var originClass = node.className;\n return \" \".concat(originClass, \" \").indexOf(\" \".concat(className, \" \")) > -1;\n}\nfunction addClass(node, className) {\n if (node.classList) {\n node.classList.add(className);\n } else {\n if (!hasClass(node, className)) {\n node.className = \"\".concat(node.className, \" \").concat(className);\n }\n }\n}\nfunction removeClass(node, className) {\n if (node.classList) {\n node.classList.remove(className);\n } else {\n if (hasClass(node, className)) {\n var originClass = node.className;\n node.className = \" \".concat(originClass, \" \").replace(\" \".concat(className, \" \"), ' ');\n }\n }\n}\n\n/***/ }),\n/* 1673 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_classnames__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_warning__ = __webpack_require__(533);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_warning___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_warning__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_util_es_Children_toArray__ = __webpack_require__(119);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react_lifecycles_compat__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__contextTypes__ = __webpack_require__(537);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__util__ = __webpack_require__(208);\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n\n\n\n\n\n\n\n\n\nvar Tree = /*#__PURE__*/function (_React$Component) {\n _inherits(Tree, _React$Component);\n\n var _super = _createSuper(Tree);\n\n function Tree() {\n var _this;\n\n _classCallCheck(this, Tree);\n\n _this = _super.apply(this, arguments);\n /** Internal usage for `rc-tree-select`, we don't promise it will not change. */\n\n _this.domTreeNodes = {};\n _this.state = {\n keyEntities: {},\n selectedKeys: [],\n checkedKeys: [],\n halfCheckedKeys: [],\n loadedKeys: [],\n loadingKeys: [],\n expandedKeys: [],\n dragNodesKeys: [],\n dragOverNodeKey: null,\n dropPosition: null,\n treeNode: [],\n prevProps: null\n };\n\n _this.onNodeDragStart = function (event, node) {\n var expandedKeys = _this.state.expandedKeys;\n var onDragStart = _this.props.onDragStart;\n var _node$props = node.props,\n eventKey = _node$props.eventKey,\n children = _node$props.children;\n _this.dragNode = node;\n\n _this.setState({\n dragNodesKeys: Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"j\" /* getDragNodesKeys */])(children, node),\n expandedKeys: Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"b\" /* arrDel */])(expandedKeys, eventKey)\n });\n\n if (onDragStart) {\n onDragStart({\n event: event,\n node: node\n });\n }\n };\n /**\n * [Legacy] Select handler is less small than node,\n * so that this will trigger when drag enter node or select handler.\n * This is a little tricky if customize css without padding.\n * Better for use mouse move event to refresh drag state.\n * But let's just keep it to avoid event trigger logic change.\n */\n\n\n _this.onNodeDragEnter = function (event, node) {\n var _this$state = _this.state,\n expandedKeys = _this$state.expandedKeys,\n dragNodesKeys = _this$state.dragNodesKeys;\n var onDragEnter = _this.props.onDragEnter;\n var _node$props2 = node.props,\n pos = _node$props2.pos,\n eventKey = _node$props2.eventKey;\n if (!_this.dragNode || dragNodesKeys.indexOf(eventKey) !== -1) return;\n var dropPosition = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"c\" /* calcDropPosition */])(event, node); // Skip if drag node is self\n\n if (_this.dragNode.props.eventKey === eventKey && dropPosition === 0) {\n _this.setState({\n dragOverNodeKey: '',\n dropPosition: null\n });\n\n return;\n } // Ref: https://github.com/react-component/tree/issues/132\n // Add timeout to let onDragLevel fire before onDragEnter,\n // so that we can clean drag props for onDragLeave node.\n // Macro task for this:\n // https://html.spec.whatwg.org/multipage/webappapis.html#clean-up-after-running-script\n\n\n setTimeout(function () {\n // Update drag over node\n _this.setState({\n dragOverNodeKey: eventKey,\n dropPosition: dropPosition\n }); // Side effect for delay drag\n\n\n if (!_this.delayedDragEnterLogic) {\n _this.delayedDragEnterLogic = {};\n }\n\n Object.keys(_this.delayedDragEnterLogic).forEach(function (key) {\n clearTimeout(_this.delayedDragEnterLogic[key]);\n });\n _this.delayedDragEnterLogic[pos] = window.setTimeout(function () {\n var newExpandedKeys = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"a\" /* arrAdd */])(expandedKeys, eventKey);\n\n if (!('expandedKeys' in _this.props)) {\n _this.setState({\n expandedKeys: newExpandedKeys\n });\n }\n\n if (onDragEnter) {\n onDragEnter({\n event: event,\n node: node,\n expandedKeys: newExpandedKeys\n });\n }\n }, 400);\n }, 0);\n };\n\n _this.onNodeDragOver = function (event, node) {\n var dragNodesKeys = _this.state.dragNodesKeys;\n var onDragOver = _this.props.onDragOver;\n var eventKey = node.props.eventKey;\n\n if (dragNodesKeys.indexOf(eventKey) !== -1) {\n return;\n } // Update drag position\n\n\n if (_this.dragNode && eventKey === _this.state.dragOverNodeKey) {\n var dropPosition = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"c\" /* calcDropPosition */])(event, node);\n if (dropPosition === _this.state.dropPosition) return;\n\n _this.setState({\n dropPosition: dropPosition\n });\n }\n\n if (onDragOver) {\n onDragOver({\n event: event,\n node: node\n });\n }\n };\n\n _this.onNodeDragLeave = function (event, node) {\n var onDragLeave = _this.props.onDragLeave;\n\n _this.setState({\n dragOverNodeKey: ''\n });\n\n if (onDragLeave) {\n onDragLeave({\n event: event,\n node: node\n });\n }\n };\n\n _this.onNodeDragEnd = function (event, node) {\n var onDragEnd = _this.props.onDragEnd;\n\n _this.setState({\n dragOverNodeKey: ''\n });\n\n if (onDragEnd) {\n onDragEnd({\n event: event,\n node: node\n });\n }\n\n _this.dragNode = null;\n };\n\n _this.onNodeDrop = function (event, node) {\n var _this$state2 = _this.state,\n _this$state2$dragNode = _this$state2.dragNodesKeys,\n dragNodesKeys = _this$state2$dragNode === void 0 ? [] : _this$state2$dragNode,\n dropPosition = _this$state2.dropPosition;\n var onDrop = _this.props.onDrop;\n var _node$props3 = node.props,\n eventKey = _node$props3.eventKey,\n pos = _node$props3.pos;\n\n _this.setState({\n dragOverNodeKey: ''\n });\n\n if (dragNodesKeys.indexOf(eventKey) !== -1) {\n __WEBPACK_IMPORTED_MODULE_3_warning___default()(false, \"Can not drop to dragNode(include it's children node)\");\n return;\n }\n\n var posArr = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"o\" /* posToArr */])(pos);\n var dropResult = {\n event: event,\n node: node,\n dragNode: _this.dragNode,\n dragNodesKeys: dragNodesKeys.slice(),\n dropPosition: dropPosition + Number(posArr[posArr.length - 1]),\n dropToGap: false\n };\n\n if (dropPosition !== 0) {\n dropResult.dropToGap = true;\n }\n\n if (onDrop) {\n onDrop(dropResult);\n }\n\n _this.dragNode = null;\n };\n\n _this.onNodeClick = function (e, treeNode) {\n var onClick = _this.props.onClick;\n\n if (onClick) {\n onClick(e, treeNode);\n }\n };\n\n _this.onNodeDoubleClick = function (e, treeNode) {\n var onDoubleClick = _this.props.onDoubleClick;\n\n if (onDoubleClick) {\n onDoubleClick(e, treeNode);\n }\n };\n\n _this.onNodeSelect = function (e, treeNode) {\n var selectedKeys = _this.state.selectedKeys;\n var keyEntities = _this.state.keyEntities;\n var _this$props = _this.props,\n onSelect = _this$props.onSelect,\n multiple = _this$props.multiple;\n var _treeNode$props = treeNode.props,\n selected = _treeNode$props.selected,\n eventKey = _treeNode$props.eventKey;\n var targetSelected = !selected; // Update selected keys\n\n if (!targetSelected) {\n selectedKeys = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"b\" /* arrDel */])(selectedKeys, eventKey);\n } else if (!multiple) {\n selectedKeys = [eventKey];\n } else {\n selectedKeys = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"a\" /* arrAdd */])(selectedKeys, eventKey);\n } // [Legacy] Not found related usage in doc or upper libs\n\n\n var selectedNodes = selectedKeys.map(function (key) {\n var entity = keyEntities[key];\n if (!entity) return null;\n return entity.node;\n }).filter(function (node) {\n return node;\n });\n\n _this.setUncontrolledState({\n selectedKeys: selectedKeys\n });\n\n if (onSelect) {\n onSelect(selectedKeys, {\n event: 'select',\n selected: targetSelected,\n node: treeNode,\n selectedNodes: selectedNodes,\n nativeEvent: e.nativeEvent\n });\n }\n };\n\n _this.onNodeCheck = function (e, treeNode, checked) {\n var _this$state3 = _this.state,\n keyEntities = _this$state3.keyEntities,\n oriCheckedKeys = _this$state3.checkedKeys,\n oriHalfCheckedKeys = _this$state3.halfCheckedKeys;\n var _this$props2 = _this.props,\n checkStrictly = _this$props2.checkStrictly,\n onCheck = _this$props2.onCheck;\n var eventKey = treeNode.props.eventKey; // Prepare trigger arguments\n\n var checkedObj;\n var eventObj = {\n event: 'check',\n node: treeNode,\n checked: checked,\n nativeEvent: e.nativeEvent\n };\n\n if (checkStrictly) {\n var checkedKeys = checked ? Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"a\" /* arrAdd */])(oriCheckedKeys, eventKey) : Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"b\" /* arrDel */])(oriCheckedKeys, eventKey);\n var halfCheckedKeys = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"b\" /* arrDel */])(oriHalfCheckedKeys, eventKey);\n checkedObj = {\n checked: checkedKeys,\n halfChecked: halfCheckedKeys\n };\n eventObj.checkedNodes = checkedKeys.map(function (key) {\n return keyEntities[key];\n }).filter(function (entity) {\n return entity;\n }).map(function (entity) {\n return entity.node;\n });\n\n _this.setUncontrolledState({\n checkedKeys: checkedKeys\n });\n } else {\n var _conductCheck = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"e\" /* conductCheck */])([eventKey], checked, keyEntities, {\n checkedKeys: oriCheckedKeys,\n halfCheckedKeys: oriHalfCheckedKeys\n }),\n _checkedKeys = _conductCheck.checkedKeys,\n _halfCheckedKeys = _conductCheck.halfCheckedKeys;\n\n checkedObj = _checkedKeys; // [Legacy] This is used for `rc-tree-select`\n\n eventObj.checkedNodes = [];\n eventObj.checkedNodesPositions = [];\n eventObj.halfCheckedKeys = _halfCheckedKeys;\n\n _checkedKeys.forEach(function (key) {\n var entity = keyEntities[key];\n if (!entity) return;\n var node = entity.node,\n pos = entity.pos;\n eventObj.checkedNodes.push(node);\n eventObj.checkedNodesPositions.push({\n node: node,\n pos: pos\n });\n });\n\n _this.setUncontrolledState({\n checkedKeys: _checkedKeys,\n halfCheckedKeys: _halfCheckedKeys\n });\n }\n\n if (onCheck) {\n onCheck(checkedObj, eventObj);\n }\n };\n\n _this.onNodeLoad = function (treeNode) {\n return new Promise(function (resolve) {\n // We need to get the latest state of loading/loaded keys\n _this.setState(function (_ref) {\n var _ref$loadedKeys = _ref.loadedKeys,\n loadedKeys = _ref$loadedKeys === void 0 ? [] : _ref$loadedKeys,\n _ref$loadingKeys = _ref.loadingKeys,\n loadingKeys = _ref$loadingKeys === void 0 ? [] : _ref$loadingKeys;\n var _this$props3 = _this.props,\n loadData = _this$props3.loadData,\n onLoad = _this$props3.onLoad;\n var eventKey = treeNode.props.eventKey;\n\n if (!loadData || loadedKeys.indexOf(eventKey) !== -1 || loadingKeys.indexOf(eventKey) !== -1) {\n // react 15 will warn if return null\n return {};\n } // Process load data\n\n\n var promise = loadData(treeNode);\n promise.then(function () {\n var _this$state4 = _this.state,\n currentLoadedKeys = _this$state4.loadedKeys,\n currentLoadingKeys = _this$state4.loadingKeys;\n var newLoadedKeys = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"a\" /* arrAdd */])(currentLoadedKeys, eventKey);\n var newLoadingKeys = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"b\" /* arrDel */])(currentLoadingKeys, eventKey); // onLoad should trigger before internal setState to avoid `loadData` trigger twice.\n // https://github.com/ant-design/ant-design/issues/12464\n\n if (onLoad) {\n onLoad(newLoadedKeys, {\n event: 'load',\n node: treeNode\n });\n }\n\n _this.setUncontrolledState({\n loadedKeys: newLoadedKeys\n });\n\n _this.setState({\n loadingKeys: newLoadingKeys\n });\n\n resolve();\n });\n return {\n loadingKeys: Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"a\" /* arrAdd */])(loadingKeys, eventKey)\n };\n });\n });\n };\n\n _this.onNodeExpand = function (e, treeNode) {\n var expandedKeys = _this.state.expandedKeys;\n var _this$props4 = _this.props,\n onExpand = _this$props4.onExpand,\n loadData = _this$props4.loadData;\n var _treeNode$props2 = treeNode.props,\n eventKey = _treeNode$props2.eventKey,\n expanded = _treeNode$props2.expanded; // Update selected keys\n\n var index = expandedKeys.indexOf(eventKey);\n var targetExpanded = !expanded;\n __WEBPACK_IMPORTED_MODULE_3_warning___default()(expanded && index !== -1 || !expanded && index === -1, 'Expand state not sync with index check');\n\n if (targetExpanded) {\n expandedKeys = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"a\" /* arrAdd */])(expandedKeys, eventKey);\n } else {\n expandedKeys = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"b\" /* arrDel */])(expandedKeys, eventKey);\n }\n\n _this.setUncontrolledState({\n expandedKeys: expandedKeys\n });\n\n if (onExpand) {\n onExpand(expandedKeys, {\n node: treeNode,\n expanded: targetExpanded,\n nativeEvent: e.nativeEvent\n });\n } // Async Load data\n\n\n if (targetExpanded && loadData) {\n var loadPromise = _this.onNodeLoad(treeNode);\n\n return loadPromise ? loadPromise.then(function () {\n // [Legacy] Refresh logic\n _this.setUncontrolledState({\n expandedKeys: expandedKeys\n });\n }) : null;\n }\n\n return null;\n };\n\n _this.onNodeMouseEnter = function (event, node) {\n var onMouseEnter = _this.props.onMouseEnter;\n\n if (onMouseEnter) {\n onMouseEnter({\n event: event,\n node: node\n });\n }\n };\n\n _this.onNodeMouseLeave = function (event, node) {\n var onMouseLeave = _this.props.onMouseLeave;\n\n if (onMouseLeave) {\n onMouseLeave({\n event: event,\n node: node\n });\n }\n };\n\n _this.onNodeContextMenu = function (event, node) {\n var onRightClick = _this.props.onRightClick;\n\n if (onRightClick) {\n event.preventDefault();\n onRightClick({\n event: event,\n node: node\n });\n }\n };\n /**\n * Only update the value which is not in props\n */\n\n\n _this.setUncontrolledState = function (state) {\n var needSync = false;\n var newState = {};\n Object.keys(state).forEach(function (name) {\n if (name in _this.props) return;\n needSync = true;\n newState[name] = state[name];\n });\n\n if (needSync) {\n _this.setState(newState);\n }\n };\n\n _this.registerTreeNode = function (key, node) {\n if (node) {\n _this.domTreeNodes[key] = node;\n } else {\n delete _this.domTreeNodes[key];\n }\n };\n\n _this.isKeyChecked = function (key) {\n var _this$state$checkedKe = _this.state.checkedKeys,\n checkedKeys = _this$state$checkedKe === void 0 ? [] : _this$state$checkedKe;\n return checkedKeys.indexOf(key) !== -1;\n };\n /**\n * [Legacy] Original logic use `key` as tracking clue.\n * We have to use `cloneElement` to pass `key`.\n */\n\n\n _this.renderTreeNode = function (child, index) {\n var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;\n var _this$state5 = _this.state,\n keyEntities = _this$state5.keyEntities,\n _this$state5$expanded = _this$state5.expandedKeys,\n expandedKeys = _this$state5$expanded === void 0 ? [] : _this$state5$expanded,\n _this$state5$selected = _this$state5.selectedKeys,\n selectedKeys = _this$state5$selected === void 0 ? [] : _this$state5$selected,\n _this$state5$halfChec = _this$state5.halfCheckedKeys,\n halfCheckedKeys = _this$state5$halfChec === void 0 ? [] : _this$state5$halfChec,\n _this$state5$loadedKe = _this$state5.loadedKeys,\n loadedKeys = _this$state5$loadedKe === void 0 ? [] : _this$state5$loadedKe,\n _this$state5$loadingK = _this$state5.loadingKeys,\n loadingKeys = _this$state5$loadingK === void 0 ? [] : _this$state5$loadingK,\n dragOverNodeKey = _this$state5.dragOverNodeKey,\n dropPosition = _this$state5.dropPosition;\n var pos = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"l\" /* getPosition */])(level, index);\n var key = child.key || pos;\n\n if (!keyEntities[key]) {\n Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"p\" /* warnOnlyTreeNode */])();\n return null;\n }\n\n return __WEBPACK_IMPORTED_MODULE_0_react__[\"cloneElement\"](child, {\n key: key,\n eventKey: key,\n expanded: expandedKeys.indexOf(key) !== -1,\n selected: selectedKeys.indexOf(key) !== -1,\n loaded: loadedKeys.indexOf(key) !== -1,\n loading: loadingKeys.indexOf(key) !== -1,\n checked: _this.isKeyChecked(key),\n halfChecked: halfCheckedKeys.indexOf(key) !== -1,\n pos: pos,\n // [Legacy] Drag props\n dragOver: dragOverNodeKey === key && dropPosition === 0,\n dragOverGapTop: dragOverNodeKey === key && dropPosition === -1,\n dragOverGapBottom: dragOverNodeKey === key && dropPosition === 1\n });\n };\n\n return _this;\n }\n\n _createClass(Tree, [{\n key: \"render\",\n value: function render() {\n var _this2 = this;\n\n var treeNode = this.state.treeNode;\n var _this$props5 = this.props,\n prefixCls = _this$props5.prefixCls,\n className = _this$props5.className,\n focusable = _this$props5.focusable,\n style = _this$props5.style,\n showLine = _this$props5.showLine,\n _this$props5$tabIndex = _this$props5.tabIndex,\n tabIndex = _this$props5$tabIndex === void 0 ? 0 : _this$props5$tabIndex,\n selectable = _this$props5.selectable,\n showIcon = _this$props5.showIcon,\n icon = _this$props5.icon,\n switcherIcon = _this$props5.switcherIcon,\n draggable = _this$props5.draggable,\n checkable = _this$props5.checkable,\n checkStrictly = _this$props5.checkStrictly,\n disabled = _this$props5.disabled,\n motion = _this$props5.motion,\n loadData = _this$props5.loadData,\n filterTreeNode = _this$props5.filterTreeNode;\n var domProps = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"i\" /* getDataAndAria */])(this.props);\n\n if (focusable) {\n domProps.tabIndex = tabIndex;\n }\n\n return __WEBPACK_IMPORTED_MODULE_0_react__[\"createElement\"](__WEBPACK_IMPORTED_MODULE_6__contextTypes__[\"a\" /* TreeContext */].Provider, {\n value: {\n prefixCls: prefixCls,\n selectable: selectable,\n showIcon: showIcon,\n icon: icon,\n switcherIcon: switcherIcon,\n draggable: draggable,\n checkable: checkable,\n checkStrictly: checkStrictly,\n disabled: disabled,\n motion: motion,\n loadData: loadData,\n filterTreeNode: filterTreeNode,\n renderTreeNode: this.renderTreeNode,\n isKeyChecked: this.isKeyChecked,\n onNodeClick: this.onNodeClick,\n onNodeDoubleClick: this.onNodeDoubleClick,\n onNodeExpand: this.onNodeExpand,\n onNodeSelect: this.onNodeSelect,\n onNodeCheck: this.onNodeCheck,\n onNodeLoad: this.onNodeLoad,\n onNodeMouseEnter: this.onNodeMouseEnter,\n onNodeMouseLeave: this.onNodeMouseLeave,\n onNodeContextMenu: this.onNodeContextMenu,\n onNodeDragStart: this.onNodeDragStart,\n onNodeDragEnter: this.onNodeDragEnter,\n onNodeDragOver: this.onNodeDragOver,\n onNodeDragLeave: this.onNodeDragLeave,\n onNodeDragEnd: this.onNodeDragEnd,\n onNodeDrop: this.onNodeDrop,\n registerTreeNode: this.registerTreeNode\n }\n }, __WEBPACK_IMPORTED_MODULE_0_react__[\"createElement\"](\"ul\", Object.assign({}, domProps, {\n className: __WEBPACK_IMPORTED_MODULE_2_classnames___default()(prefixCls, className, _defineProperty({}, \"\".concat(prefixCls, \"-show-line\"), showLine)),\n style: style,\n role: \"tree\",\n unselectable: \"on\"\n }), Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"m\" /* mapChildren */])(treeNode, function (node, index) {\n return _this2.renderTreeNode(node, index);\n })));\n }\n }], [{\n key: \"getDerivedStateFromProps\",\n value: function getDerivedStateFromProps(props, prevState) {\n var prevProps = prevState.prevProps;\n var newState = {\n prevProps: props\n };\n\n function needSync(name) {\n return !prevProps && name in props || prevProps && prevProps[name] !== props[name];\n } // ================== Tree Node ==================\n\n\n var treeNode = null; // Check if `treeData` or `children` changed and save into the state.\n\n if (needSync('treeData')) {\n treeNode = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"g\" /* convertDataToTree */])(props.treeData);\n } else if (needSync('children')) {\n treeNode = Object(__WEBPACK_IMPORTED_MODULE_4_rc_util_es_Children_toArray__[\"a\" /* default */])(props.children);\n } // Tree support filter function which will break the tree structure in the vdm.\n // We cache the treeNodes in state so that we can return the treeNode in event trigger.\n\n\n if (treeNode) {\n newState.treeNode = treeNode; // Calculate the entities data for quick match\n\n var entitiesMap = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"h\" /* convertTreeToEntities */])(treeNode);\n newState.keyEntities = entitiesMap.keyEntities;\n }\n\n var keyEntities = newState.keyEntities || prevState.keyEntities; // ================ expandedKeys =================\n\n if (needSync('expandedKeys') || prevProps && needSync('autoExpandParent')) {\n newState.expandedKeys = props.autoExpandParent || !prevProps && props.defaultExpandParent ? Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"f\" /* conductExpandParent */])(props.expandedKeys, keyEntities) : props.expandedKeys;\n } else if (!prevProps && props.defaultExpandAll) {\n newState.expandedKeys = Object.keys(keyEntities);\n } else if (!prevProps && props.defaultExpandedKeys) {\n newState.expandedKeys = props.autoExpandParent || props.defaultExpandParent ? Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"f\" /* conductExpandParent */])(props.defaultExpandedKeys, keyEntities) : props.defaultExpandedKeys;\n } // ================ selectedKeys =================\n\n\n if (props.selectable) {\n if (needSync('selectedKeys')) {\n newState.selectedKeys = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"d\" /* calcSelectedKeys */])(props.selectedKeys, props);\n } else if (!prevProps && props.defaultSelectedKeys) {\n newState.selectedKeys = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"d\" /* calcSelectedKeys */])(props.defaultSelectedKeys, props);\n }\n } // ================= checkedKeys =================\n\n\n if (props.checkable) {\n var checkedKeyEntity;\n\n if (needSync('checkedKeys')) {\n checkedKeyEntity = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"n\" /* parseCheckedKeys */])(props.checkedKeys) || {};\n } else if (!prevProps && props.defaultCheckedKeys) {\n checkedKeyEntity = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"n\" /* parseCheckedKeys */])(props.defaultCheckedKeys) || {};\n } else if (treeNode) {\n // If treeNode changed, we also need check it\n checkedKeyEntity = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"n\" /* parseCheckedKeys */])(props.checkedKeys) || {\n checkedKeys: prevState.checkedKeys,\n halfCheckedKeys: prevState.halfCheckedKeys\n };\n }\n\n if (checkedKeyEntity) {\n var _checkedKeyEntity = checkedKeyEntity,\n _checkedKeyEntity$che = _checkedKeyEntity.checkedKeys,\n checkedKeys = _checkedKeyEntity$che === void 0 ? [] : _checkedKeyEntity$che,\n _checkedKeyEntity$hal = _checkedKeyEntity.halfCheckedKeys,\n halfCheckedKeys = _checkedKeyEntity$hal === void 0 ? [] : _checkedKeyEntity$hal;\n\n if (!props.checkStrictly) {\n var conductKeys = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"e\" /* conductCheck */])(checkedKeys, true, keyEntities);\n checkedKeys = conductKeys.checkedKeys;\n halfCheckedKeys = conductKeys.halfCheckedKeys;\n }\n\n newState.checkedKeys = checkedKeys;\n newState.halfCheckedKeys = halfCheckedKeys;\n }\n } // ================= loadedKeys ==================\n\n\n if (needSync('loadedKeys')) {\n newState.loadedKeys = props.loadedKeys;\n }\n\n return newState;\n }\n }]);\n\n return Tree;\n}(__WEBPACK_IMPORTED_MODULE_0_react__[\"Component\"]);\n\nTree.propTypes = {\n prefixCls: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,\n className: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,\n style: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object,\n tabIndex: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number]),\n children: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.any,\n treeData: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.array,\n showLine: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n showIcon: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n icon: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func]),\n focusable: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n selectable: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n disabled: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n multiple: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n checkable: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node]),\n checkStrictly: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n draggable: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n defaultExpandParent: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n autoExpandParent: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n defaultExpandAll: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n defaultExpandedKeys: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string),\n expandedKeys: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string),\n defaultCheckedKeys: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string),\n checkedKeys: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number])), __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object]),\n defaultSelectedKeys: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string),\n selectedKeys: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string),\n onClick: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n onDoubleClick: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n onExpand: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n onCheck: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n onSelect: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n onLoad: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n loadData: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n loadedKeys: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string),\n onMouseEnter: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n onMouseLeave: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n onRightClick: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n onDragStart: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n onDragEnter: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n onDragOver: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n onDragLeave: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n onDragEnd: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n onDrop: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n filterTreeNode: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n motion: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object,\n switcherIcon: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func])\n};\nTree.defaultProps = {\n prefixCls: 'rc-tree',\n showLine: false,\n showIcon: true,\n selectable: true,\n multiple: false,\n checkable: false,\n disabled: false,\n checkStrictly: false,\n draggable: false,\n defaultExpandParent: true,\n autoExpandParent: false,\n defaultExpandAll: false,\n defaultExpandedKeys: [],\n defaultCheckedKeys: [],\n defaultSelectedKeys: []\n};\nObject(__WEBPACK_IMPORTED_MODULE_5_react_lifecycles_compat__[\"polyfill\"])(Tree);\n/* harmony default export */ __webpack_exports__[\"a\"] = (Tree);\n\n/***/ }),\n/* 1674 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Base_BaseSelector__ = __webpack_require__(210);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util__ = __webpack_require__(34);\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (typeof call === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\n\n\nvar Selector = Object(__WEBPACK_IMPORTED_MODULE_1__Base_BaseSelector__[\"a\" /* default */])('single');\n\nvar SingleSelector =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inherits(SingleSelector, _React$Component);\n\n function SingleSelector() {\n var _this;\n\n _classCallCheck(this, SingleSelector);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(SingleSelector).call(this));\n\n _defineProperty(_assertThisInitialized(_this), \"focus\", function () {\n _this.selectorRef.current.focus();\n });\n\n _defineProperty(_assertThisInitialized(_this), \"blur\", function () {\n _this.selectorRef.current.blur();\n });\n\n _defineProperty(_assertThisInitialized(_this), \"renderSelection\", function () {\n var _this$props = _this.props,\n selectorValueList = _this$props.selectorValueList,\n placeholder = _this$props.placeholder,\n prefixCls = _this$props.prefixCls;\n var innerNode;\n\n if (selectorValueList.length) {\n var _selectorValueList$ = selectorValueList[0],\n label = _selectorValueList$.label,\n value = _selectorValueList$.value;\n innerNode = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\"span\", {\n key: \"value\",\n title: Object(__WEBPACK_IMPORTED_MODULE_2__util__[\"r\" /* toTitle */])(label),\n className: \"\".concat(prefixCls, \"-selection-selected-value\")\n }, label || value);\n } else {\n innerNode = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\"span\", {\n key: \"placeholder\",\n className: \"\".concat(prefixCls, \"-selection__placeholder\")\n }, placeholder);\n }\n\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\"span\", {\n className: \"\".concat(prefixCls, \"-selection__rendered\")\n }, innerNode);\n });\n\n _this.selectorRef = Object(__WEBPACK_IMPORTED_MODULE_2__util__[\"g\" /* createRef */])();\n return _this;\n }\n\n _createClass(SingleSelector, [{\n key: \"render\",\n value: function render() {\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Selector, _extends({}, this.props, {\n ref: this.selectorRef,\n renderSelection: this.renderSelection\n }));\n }\n }]);\n\n return SingleSelector;\n}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);\n\n_defineProperty(SingleSelector, \"propTypes\", _objectSpread({}, __WEBPACK_IMPORTED_MODULE_1__Base_BaseSelector__[\"c\" /* selectorPropTypes */]));\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (SingleSelector);\n\n/***/ }),\n/* 1675 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"b\", function() { return multipleSelectorContextTypes; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Base_BaseSelector__ = __webpack_require__(210);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util__ = __webpack_require__(34);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__SelectorList__ = __webpack_require__(1676);\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (typeof call === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\n\n\n\n\nvar Selector = Object(__WEBPACK_IMPORTED_MODULE_2__Base_BaseSelector__[\"a\" /* default */])('multiple');\nvar multipleSelectorContextTypes = {\n onMultipleSelectorRemove: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired\n};\n\nvar MultipleSelector =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inherits(MultipleSelector, _React$Component);\n\n function MultipleSelector() {\n var _this;\n\n _classCallCheck(this, MultipleSelector);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(MultipleSelector).call(this));\n\n _defineProperty(_assertThisInitialized(_this), \"onPlaceholderClick\", function () {\n _this.inputRef.current.focus();\n });\n\n _defineProperty(_assertThisInitialized(_this), \"focus\", function () {\n _this.inputRef.current.focus();\n });\n\n _defineProperty(_assertThisInitialized(_this), \"blur\", function () {\n _this.inputRef.current.blur();\n });\n\n _defineProperty(_assertThisInitialized(_this), \"renderPlaceholder\", function () {\n var _this$props = _this.props,\n prefixCls = _this$props.prefixCls,\n placeholder = _this$props.placeholder,\n searchPlaceholder = _this$props.searchPlaceholder,\n searchValue = _this$props.searchValue,\n selectorValueList = _this$props.selectorValueList;\n var currentPlaceholder = placeholder || searchPlaceholder;\n if (!currentPlaceholder) return null;\n var hidden = searchValue || selectorValueList.length; // [Legacy] Not remove the placeholder\n\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\"span\", {\n style: {\n display: hidden ? 'none' : 'block'\n },\n onClick: _this.onPlaceholderClick,\n className: \"\".concat(prefixCls, \"-search__field__placeholder\")\n }, currentPlaceholder);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"renderSelection\", function () {\n var onMultipleSelectorRemove = _this.context.rcTreeSelect.onMultipleSelectorRemove;\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__SelectorList__[\"a\" /* default */], _extends({}, _this.props, {\n onMultipleSelectorRemove: onMultipleSelectorRemove,\n inputRef: _this.inputRef\n }));\n });\n\n _this.inputRef = Object(__WEBPACK_IMPORTED_MODULE_3__util__[\"g\" /* createRef */])();\n return _this;\n }\n\n _createClass(MultipleSelector, [{\n key: \"render\",\n value: function render() {\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Selector, _extends({}, this.props, {\n tabIndex: -1,\n showArrow: false,\n renderSelection: this.renderSelection,\n renderPlaceholder: this.renderPlaceholder\n }));\n }\n }]);\n\n return MultipleSelector;\n}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);\n\n_defineProperty(MultipleSelector, \"propTypes\", _objectSpread({}, __WEBPACK_IMPORTED_MODULE_2__Base_BaseSelector__[\"c\" /* selectorPropTypes */], {\n selectorValueList: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.array,\n disabled: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n searchValue: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,\n labelInValue: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n maxTagCount: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number,\n maxTagPlaceholder: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func]),\n onChoiceAnimationLeave: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func\n}));\n\n_defineProperty(MultipleSelector, \"contextTypes\", {\n rcTreeSelect: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.shape(_objectSpread({}, multipleSelectorContextTypes, {\n onSearchInputChange: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func\n }))\n});\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (MultipleSelector);\n\n/***/ }),\n/* 1676 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rc_animate_es_CSSMotionList__ = __webpack_require__(1677);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Selection__ = __webpack_require__(1679);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__SearchInput__ = __webpack_require__(539);\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\n\n\n\n\n\nvar NODE_SELECTOR = 'selector';\nvar NODE_SEARCH = 'search';\nvar TREE_SELECT_EMPTY_VALUE_KEY = 'RC_TREE_SELECT_EMPTY_VALUE_KEY';\n\nvar SelectorList = function SelectorList(props) {\n var selectorValueList = props.selectorValueList,\n choiceTransitionName = props.choiceTransitionName,\n prefixCls = props.prefixCls,\n onChoiceAnimationLeave = props.onChoiceAnimationLeave,\n labelInValue = props.labelInValue,\n maxTagCount = props.maxTagCount,\n maxTagPlaceholder = props.maxTagPlaceholder,\n showSearch = props.showSearch,\n valueEntities = props.valueEntities,\n inputRef = props.inputRef,\n onMultipleSelectorRemove = props.onMultipleSelectorRemove;\n var nodeKeys = []; // Check if `maxTagCount` is set\n\n var myValueList = selectorValueList;\n\n if (maxTagCount >= 0) {\n myValueList = selectorValueList.slice(0, maxTagCount);\n } // Basic selectors\n\n\n myValueList.forEach(function (_ref) {\n var label = _ref.label,\n value = _ref.value;\n\n var _ref2 = (valueEntities[value] || {}).node || {},\n _ref2$props = _ref2.props;\n\n _ref2$props = _ref2$props === void 0 ? {} : _ref2$props;\n var disabled = _ref2$props.disabled;\n nodeKeys.push({\n key: value,\n type: NODE_SELECTOR,\n label: label,\n value: value,\n disabled: disabled\n });\n }); // Rest node count\n\n if (maxTagCount >= 0 && maxTagCount < selectorValueList.length) {\n var content = \"+ \".concat(selectorValueList.length - maxTagCount, \" ...\");\n\n if (typeof maxTagPlaceholder === 'string') {\n content = maxTagPlaceholder;\n } else if (typeof maxTagPlaceholder === 'function') {\n var restValueList = selectorValueList.slice(maxTagCount);\n content = maxTagPlaceholder(labelInValue ? restValueList : restValueList.map(function (_ref3) {\n var value = _ref3.value;\n return value;\n }));\n }\n\n nodeKeys.push({\n key: 'rc-tree-select-internal-max-tag-counter',\n type: NODE_SELECTOR,\n label: content,\n value: null,\n disabled: true\n });\n } // Search node\n\n\n if (showSearch !== false) {\n nodeKeys.push({\n key: '__input',\n type: NODE_SEARCH\n });\n }\n\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_rc_animate_es_CSSMotionList__[\"a\" /* default */], {\n keys: nodeKeys,\n className: \"\".concat(prefixCls, \"-selection__rendered\"),\n component: \"ul\",\n role: \"menubar\",\n motionName: choiceTransitionName,\n onLeaveEnd: onChoiceAnimationLeave\n }, function (_ref4) {\n var type = _ref4.type,\n label = _ref4.label,\n value = _ref4.value,\n disabled = _ref4.disabled,\n className = _ref4.className,\n style = _ref4.style;\n\n if (type === NODE_SELECTOR) {\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__Selection__[\"a\" /* default */], _extends({}, props, {\n className: className,\n style: style,\n key: value || TREE_SELECT_EMPTY_VALUE_KEY,\n label: label,\n value: value,\n onRemove: disabled ? null : onMultipleSelectorRemove\n }));\n }\n\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\"li\", {\n className: \"\".concat(prefixCls, \"-search \").concat(prefixCls, \"-search--inline\")\n }, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__SearchInput__[\"a\" /* default */], _extends({}, props, {\n ref: inputRef,\n needAlign: true\n })));\n });\n};\n\nSelectorList.propTypes = {\n selectorValueList: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.array,\n choiceTransitionName: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,\n prefixCls: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,\n onChoiceAnimationLeave: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n labelInValue: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n showSearch: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n maxTagCount: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number,\n maxTagPlaceholder: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func]),\n valueEntities: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object,\n inputRef: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n onMultipleSelectorRemove: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func\n};\n/* harmony default export */ __webpack_exports__[\"a\"] = (SelectorList);\n\n/***/ }),\n/* 1677 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* unused harmony export genCSSMotionList */\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(23);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__ = __webpack_require__(8);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(7);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass__ = __webpack_require__(55);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react_lifecycles_compat__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_prop_types__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__CSSMotion__ = __webpack_require__(535);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__util_motion__ = __webpack_require__(536);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__util_diff__ = __webpack_require__(1678);\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar MOTION_PROP_NAMES = Object.keys(__WEBPACK_IMPORTED_MODULE_9__CSSMotion__[\"a\" /* MotionPropTypes */]);\n\nfunction genCSSMotionList(transitionSupport) {\n var CSSMotion = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : __WEBPACK_IMPORTED_MODULE_9__CSSMotion__[\"b\" /* default */];\n\n var CSSMotionList = function (_React$Component) {\n __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default()(CSSMotionList, _React$Component);\n\n function CSSMotionList() {\n var _ref;\n\n var _temp, _this, _ret;\n\n __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, CSSMotionList);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default()(this, (_ref = CSSMotionList.__proto__ || Object.getPrototypeOf(CSSMotionList)).call.apply(_ref, [this].concat(args))), _this), _this.state = {\n keyEntities: []\n }, _this.removeKey = function (removeKey) {\n _this.setState(function (_ref2) {\n var keyEntities = _ref2.keyEntities;\n return {\n keyEntities: keyEntities.map(function (entity) {\n if (entity.key !== removeKey) return entity;\n return __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, entity, {\n status: __WEBPACK_IMPORTED_MODULE_11__util_diff__[\"d\" /* STATUS_REMOVED */]\n });\n })\n };\n });\n }, _temp), __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default()(_this, _ret);\n }\n\n __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass___default()(CSSMotionList, [{\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var keyEntities = this.state.keyEntities;\n\n var _props = this.props,\n component = _props.component,\n children = _props.children,\n restProps = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['component', 'children']);\n\n var Component = component || __WEBPACK_IMPORTED_MODULE_6_react___default.a.Fragment;\n\n var motionProps = {};\n MOTION_PROP_NAMES.forEach(function (prop) {\n motionProps[prop] = restProps[prop];\n delete restProps[prop];\n });\n delete restProps.keys;\n\n return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(\n Component,\n restProps,\n keyEntities.map(function (_ref3) {\n var status = _ref3.status,\n eventProps = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default()(_ref3, ['status']);\n\n var visible = status === __WEBPACK_IMPORTED_MODULE_11__util_diff__[\"a\" /* STATUS_ADD */] || status === __WEBPACK_IMPORTED_MODULE_11__util_diff__[\"b\" /* STATUS_KEEP */];\n return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(\n CSSMotion,\n __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, motionProps, {\n key: eventProps.key,\n visible: visible,\n eventProps: eventProps,\n onLeaveEnd: function onLeaveEnd() {\n if (motionProps.onLeaveEnd) {\n motionProps.onLeaveEnd.apply(motionProps, arguments);\n }\n _this2.removeKey(eventProps.key);\n }\n }),\n children\n );\n })\n );\n }\n }], [{\n key: 'getDerivedStateFromProps',\n value: function getDerivedStateFromProps(_ref4, _ref5) {\n var keys = _ref4.keys;\n var keyEntities = _ref5.keyEntities;\n\n var parsedKeyObjects = Object(__WEBPACK_IMPORTED_MODULE_11__util_diff__[\"f\" /* parseKeys */])(keys);\n\n // Always as keep when motion not support\n if (!transitionSupport) {\n return {\n keyEntities: parsedKeyObjects.map(function (obj) {\n return __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, obj, { status: __WEBPACK_IMPORTED_MODULE_11__util_diff__[\"b\" /* STATUS_KEEP */] });\n })\n };\n }\n\n var mixedKeyEntities = Object(__WEBPACK_IMPORTED_MODULE_11__util_diff__[\"e\" /* diffKeys */])(keyEntities, parsedKeyObjects);\n\n var keyEntitiesLen = keyEntities.length;\n return {\n keyEntities: mixedKeyEntities.filter(function (entity) {\n // IE 9 not support Array.prototype.find\n var prevEntity = null;\n for (var i = 0; i < keyEntitiesLen; i += 1) {\n var currentEntity = keyEntities[i];\n if (currentEntity.key === entity.key) {\n prevEntity = currentEntity;\n break;\n }\n }\n\n // Remove if already mark as removed\n if (prevEntity && prevEntity.status === __WEBPACK_IMPORTED_MODULE_11__util_diff__[\"d\" /* STATUS_REMOVED */] && entity.status === __WEBPACK_IMPORTED_MODULE_11__util_diff__[\"c\" /* STATUS_REMOVE */]) {\n return false;\n }\n return true;\n })\n };\n }\n }]);\n\n return CSSMotionList;\n }(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component);\n\n CSSMotionList.propTypes = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, CSSMotion.propTypes, {\n component: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool]),\n keys: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.array\n });\n CSSMotionList.defaultProps = {\n component: 'div'\n };\n\n\n Object(__WEBPACK_IMPORTED_MODULE_7_react_lifecycles_compat__[\"polyfill\"])(CSSMotionList);\n\n return CSSMotionList;\n}\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (genCSSMotionList(__WEBPACK_IMPORTED_MODULE_10__util_motion__[\"c\" /* supportTransition */]));\n\n/***/ }),\n/* 1678 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return STATUS_ADD; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"b\", function() { return STATUS_KEEP; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"c\", function() { return STATUS_REMOVE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"d\", function() { return STATUS_REMOVED; });\n/* unused harmony export wrapKeyToObject */\n/* harmony export (immutable) */ __webpack_exports__[\"f\"] = parseKeys;\n/* harmony export (immutable) */ __webpack_exports__[\"e\"] = diffKeys;\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(8);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);\n\nvar STATUS_ADD = 'add';\nvar STATUS_KEEP = 'keep';\nvar STATUS_REMOVE = 'remove';\nvar STATUS_REMOVED = 'removed';\n\nfunction wrapKeyToObject(key) {\n var keyObj = void 0;\n if (key && typeof key === 'object' && 'key' in key) {\n keyObj = key;\n } else {\n keyObj = { key: key };\n }\n return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, keyObj, {\n key: String(keyObj.key)\n });\n}\n\nfunction parseKeys() {\n var keys = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n\n return keys.map(wrapKeyToObject);\n}\n\nfunction diffKeys() {\n var prevKeys = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var currentKeys = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n\n var list = [];\n var currentIndex = 0;\n var currentLen = currentKeys.length;\n\n var prevKeyObjects = parseKeys(prevKeys);\n var currentKeyObjects = parseKeys(currentKeys);\n\n // Check prev keys to insert or keep\n prevKeyObjects.forEach(function (keyObj) {\n var hit = false;\n\n for (var i = currentIndex; i < currentLen; i += 1) {\n var currentKeyObj = currentKeyObjects[i];\n if (currentKeyObj.key === keyObj.key) {\n // New added keys should add before current key\n if (currentIndex < i) {\n list = list.concat(currentKeyObjects.slice(currentIndex, i).map(function (obj) {\n return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, obj, { status: STATUS_ADD });\n }));\n currentIndex = i;\n }\n list.push(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, currentKeyObj, {\n status: STATUS_KEEP\n }));\n currentIndex += 1;\n\n hit = true;\n break;\n }\n }\n\n // If not hit, it means key is removed\n if (!hit) {\n list.push(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, keyObj, {\n status: STATUS_REMOVE\n }));\n }\n });\n\n // Add rest to the list\n if (currentIndex < currentLen) {\n list = list.concat(currentKeyObjects.slice(currentIndex).map(function (obj) {\n return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, obj, { status: STATUS_ADD });\n }));\n }\n\n /**\n * Merge same key when it remove and add again:\n * [1 - add, 2 - keep, 1 - remove] -> [1 - keep, 2 - keep]\n */\n var keys = {};\n list.forEach(function (_ref) {\n var key = _ref.key;\n\n keys[key] = (keys[key] || 0) + 1;\n });\n var duplicatedKeys = Object.keys(keys).filter(function (key) {\n return keys[key] > 1;\n });\n duplicatedKeys.forEach(function (matchKey) {\n // Remove `STATUS_REMOVE` node.\n list = list.filter(function (_ref2) {\n var key = _ref2.key,\n status = _ref2.status;\n return key !== matchKey || status !== STATUS_REMOVE;\n });\n\n // Update `STATUS_ADD` to `STATUS_KEEP`\n list.forEach(function (node) {\n if (node.key === matchKey) {\n node.status = STATUS_KEEP;\n }\n });\n });\n\n return list;\n}\n\n/***/ }),\n/* 1679 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_classnames__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util__ = __webpack_require__(34);\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (typeof call === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\n\n\n\n\nvar Selection =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inherits(Selection, _React$Component);\n\n function Selection() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Selection);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Selection)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_this), \"onRemove\", function (event) {\n var _this$props = _this.props,\n onRemove = _this$props.onRemove,\n value = _this$props.value;\n onRemove(event, value);\n event.stopPropagation();\n });\n\n return _this;\n }\n\n _createClass(Selection, [{\n key: \"render\",\n value: function render() {\n var _this$props2 = this.props,\n prefixCls = _this$props2.prefixCls,\n maxTagTextLength = _this$props2.maxTagTextLength,\n className = _this$props2.className,\n style = _this$props2.style,\n label = _this$props2.label,\n value = _this$props2.value,\n onRemove = _this$props2.onRemove,\n removeIcon = _this$props2.removeIcon;\n var content = label || value;\n\n if (maxTagTextLength && typeof content === 'string' && content.length > maxTagTextLength) {\n content = \"\".concat(content.slice(0, maxTagTextLength), \"...\");\n }\n\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\"li\", _extends({\n style: _objectSpread({}, __WEBPACK_IMPORTED_MODULE_3__util__[\"b\" /* UNSELECTABLE_STYLE */], {}, style)\n }, __WEBPACK_IMPORTED_MODULE_3__util__[\"a\" /* UNSELECTABLE_ATTRIBUTE */], {\n role: \"menuitem\",\n className: __WEBPACK_IMPORTED_MODULE_2_classnames___default()(\"\".concat(prefixCls, \"-selection__choice\"), className),\n title: Object(__WEBPACK_IMPORTED_MODULE_3__util__[\"r\" /* toTitle */])(label)\n }), onRemove && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\"span\", {\n className: \"\".concat(prefixCls, \"-selection__choice__remove\"),\n onClick: this.onRemove\n }, typeof removeIcon === 'function' ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(removeIcon, _objectSpread({}, this.props)) : removeIcon), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\"span\", {\n className: \"\".concat(prefixCls, \"-selection__choice__content\")\n }, content));\n }\n }]);\n\n return Selection;\n}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);\n\n_defineProperty(Selection, \"propTypes\", {\n prefixCls: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,\n maxTagTextLength: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number,\n onRemove: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n className: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,\n style: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object,\n label: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node,\n value: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number]),\n removeIcon: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func])\n});\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (Selection);\n\n/***/ }),\n/* 1680 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Base_BasePopup__ = __webpack_require__(211);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__SearchInput__ = __webpack_require__(539);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util__ = __webpack_require__(34);\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (typeof call === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\n\n\n\n\n\nvar SinglePopup =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inherits(SinglePopup, _React$Component);\n\n function SinglePopup() {\n var _this;\n\n _classCallCheck(this, SinglePopup);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(SinglePopup).call(this));\n\n _defineProperty(_assertThisInitialized(_this), \"onPlaceholderClick\", function () {\n _this.inputRef.current.focus();\n });\n\n _defineProperty(_assertThisInitialized(_this), \"getTree\", function () {\n return _this.popupRef.current && _this.popupRef.current.getTree();\n });\n\n _defineProperty(_assertThisInitialized(_this), \"renderPlaceholder\", function () {\n var _this$props = _this.props,\n searchPlaceholder = _this$props.searchPlaceholder,\n searchValue = _this$props.searchValue,\n prefixCls = _this$props.prefixCls;\n\n if (!searchPlaceholder) {\n return null;\n }\n\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\"span\", {\n style: {\n display: searchValue ? 'none' : 'block'\n },\n onClick: _this.onPlaceholderClick,\n className: \"\".concat(prefixCls, \"-search__field__placeholder\")\n }, searchPlaceholder);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"renderSearch\", function () {\n var _this$props2 = _this.props,\n showSearch = _this$props2.showSearch,\n dropdownPrefixCls = _this$props2.dropdownPrefixCls;\n\n if (!showSearch) {\n return null;\n }\n\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\"span\", {\n ref: _this.searchRef,\n className: \"\".concat(dropdownPrefixCls, \"-search\")\n }, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__SearchInput__[\"a\" /* default */], _extends({}, _this.props, {\n ref: _this.inputRef,\n renderPlaceholder: _this.renderPlaceholder\n })));\n });\n\n _this.inputRef = Object(__WEBPACK_IMPORTED_MODULE_4__util__[\"g\" /* createRef */])();\n _this.searchRef = Object(__WEBPACK_IMPORTED_MODULE_4__util__[\"g\" /* createRef */])();\n _this.popupRef = Object(__WEBPACK_IMPORTED_MODULE_4__util__[\"g\" /* createRef */])();\n return _this;\n }\n\n _createClass(SinglePopup, [{\n key: \"render\",\n value: function render() {\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__Base_BasePopup__[\"a\" /* default */], _extends({\n ref: this.popupRef\n }, this.props, {\n renderSearch: this.renderSearch\n }));\n }\n }]);\n\n return SinglePopup;\n}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);\n\n_defineProperty(SinglePopup, \"propTypes\", _objectSpread({}, __WEBPACK_IMPORTED_MODULE_2__Base_BasePopup__[\"a\" /* default */].propTypes, {\n searchValue: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,\n showSearch: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n dropdownPrefixCls: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,\n disabled: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n searchPlaceholder: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string\n}));\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (SinglePopup);\n\n/***/ }),\n/* 1681 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Base_BasePopup__ = __webpack_require__(211);\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (__WEBPACK_IMPORTED_MODULE_0__Base_BasePopup__[\"a\" /* default */]);\n\n/***/ }),\n/* 1682 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\n\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar __DEV__ = process.env.NODE_ENV !== 'production';\n\nvar warning = function() {};\n\nif (__DEV__) {\n var printWarning = function printWarning(format, args) {\n var len = arguments.length;\n args = new Array(len > 1 ? len - 1 : 0);\n for (var key = 1; key < len; key++) {\n args[key - 1] = arguments[key];\n }\n var argIndex = 0;\n var message = 'Warning: ' +\n format.replace(/%s/g, function() {\n return args[argIndex++];\n });\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n }\n\n warning = function(condition, format, args) {\n var len = arguments.length;\n args = new Array(len > 2 ? len - 2 : 0);\n for (var key = 2; key < len; key++) {\n args[key - 2] = arguments[key];\n }\n if (format === undefined) {\n throw new Error(\n '`warning(condition, format, ...args)` requires a warning ' +\n 'message argument'\n );\n }\n if (!condition) {\n printWarning.apply(null, [format].concat(args));\n }\n };\n}\n\nmodule.exports = warning;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5)))\n\n/***/ }),\n/* 1683 */\n/***/ (function(module, exports, __webpack_require__) {\n\n__webpack_require__(1684);\nmodule.exports = __webpack_require__(1685);\n\n\n/***/ }),\n/* 1684 */\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n/* 1685 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _PageLayout = __webpack_require__(1686);\n\nvar _PageLayout2 = _interopRequireDefault(_PageLayout);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nexports[\"default\"] = _PageLayout2[\"default\"];\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1686 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _Header = __webpack_require__(1687);\n\nvar _Header2 = _interopRequireDefault(_Header);\n\nvar _Content = __webpack_require__(1688);\n\nvar _Content2 = _interopRequireDefault(_Content);\n\nvar _LeftContent = __webpack_require__(1692);\n\nvar _LeftContent2 = _interopRequireDefault(_LeftContent);\n\nvar _RightContent = __webpack_require__(1693);\n\nvar _RightContent2 = _interopRequireDefault(_RightContent);\n\nvar _SearchArea = __webpack_require__(1694);\n\nvar _SearchArea2 = _interopRequireDefault(_SearchArea);\n\nvar _TableContent = __webpack_require__(1695);\n\nvar _TableContent2 = _interopRequireDefault(_TableContent);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = {};\nvar defaultProps = {};\n\nvar PageLayout = function (_Component) {\n _inherits(PageLayout, _Component);\n\n function PageLayout() {\n _classCallCheck(this, PageLayout);\n\n return _possibleConstructorReturn(this, _Component.apply(this, arguments));\n }\n\n PageLayout.prototype.render = function render() {\n var _props = this.props,\n className = _props.className,\n children = _props.children,\n other = _objectWithoutProperties(_props, ['className', 'children']);\n\n var classes = 'bee-page-layout';\n if (className) classes += ' ' + className;\n return _react2[\"default\"].createElement(\n 'div',\n _extends({ className: classes }, other),\n this.props.children\n );\n };\n\n return PageLayout;\n}(_react.Component);\n\nPageLayout.propTypes = propTypes;\nPageLayout.defaultProps = defaultProps;\nPageLayout.Header = _Header2[\"default\"];\nPageLayout.Content = _Content2[\"default\"];\nPageLayout.LeftContent = _LeftContent2[\"default\"];\nPageLayout.RightContent = _RightContent2[\"default\"];\nPageLayout.SearchArea = _SearchArea2[\"default\"];\nPageLayout.TableContent = _TableContent2[\"default\"];\n\nexports[\"default\"] = PageLayout;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1687 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = {};\nvar defaultProps = {};\n\nvar Header = function (_Component) {\n _inherits(Header, _Component);\n\n function Header(props) {\n _classCallCheck(this, Header);\n\n return _possibleConstructorReturn(this, _Component.call(this, props));\n }\n\n Header.prototype.render = function render() {\n var _props = this.props,\n className = _props.className,\n children = _props.children,\n other = _objectWithoutProperties(_props, ['className', 'children']);\n\n var classes = 'header';\n if (className) classes += ' ' + className;\n return _react2[\"default\"].createElement(\n 'div',\n _extends({ className: classes }, other),\n children\n );\n };\n\n return Header;\n}(_react.Component);\n\nHeader.propTypes = propTypes;\nHeader.defaultProps = defaultProps;\nexports[\"default\"] = Header;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1688 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _beeLayout = __webpack_require__(212);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = {};\nvar defaultProps = {};\n\nvar Content = function (_Component) {\n _inherits(Content, _Component);\n\n function Content(props) {\n _classCallCheck(this, Content);\n\n return _possibleConstructorReturn(this, _Component.call(this, props));\n }\n\n Content.prototype.render = function render() {\n var _props = this.props,\n className = _props.className,\n children = _props.children,\n other = _objectWithoutProperties(_props, ['className', 'children']);\n\n var classes = 'content';\n if (className) classes += ' ' + className;\n return _react2[\"default\"].createElement(\n _beeLayout.Row,\n _extends({ className: classes }, other),\n this.props.children\n );\n };\n\n return Content;\n}(_react.Component);\n\nContent.propTypes = propTypes;\nContent.defaultProps = defaultProps;\nexports[\"default\"] = Content;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1689 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = {\n componentClass: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].element, _propTypes2[\"default\"].string]),\n\n /**\n * xs显示列数\n */\n xs: _propTypes2[\"default\"].number,\n /**\n * sm显示列数\n */\n sm: _propTypes2[\"default\"].number,\n /**\n * md显示列数\n */\n md: _propTypes2[\"default\"].number,\n /**\n * lg显示列数\n */\n lg: _propTypes2[\"default\"].number,\n /**\n * xs偏移列数\n */\n xsOffset: _propTypes2[\"default\"].number,\n /**\n * sm偏移列数\n */\n smOffset: _propTypes2[\"default\"].number,\n /**\n * md偏移列数\n */\n mdOffset: _propTypes2[\"default\"].number,\n /**\n * lg偏移列数\n */\n lgOffset: _propTypes2[\"default\"].number,\n /**\n * xs右偏移列数\n */\n xsPush: _propTypes2[\"default\"].number,\n /**\n * sm右偏移列数\n */\n smPush: _propTypes2[\"default\"].number,\n /**\n * md右偏移列数\n */\n mdPush: _propTypes2[\"default\"].number,\n /**\n * lg右偏移列数\n */\n lgPush: _propTypes2[\"default\"].number,\n /**\n * xs左偏移列数\n */\n xsPull: _propTypes2[\"default\"].number,\n /**\n * sm左偏移列数\n */\n smPull: _propTypes2[\"default\"].number,\n /**\n * md左偏移列数\n */\n mdPull: _propTypes2[\"default\"].number,\n /**\n * lg左偏移列数\n */\n lgPull: _propTypes2[\"default\"].number\n};\n\nvar defaultProps = {\n componentClass: 'div',\n clsPrefix: 'u-col'\n};\n\nvar DEVICE_SIZES = ['lg', 'md', 'sm', 'xs'];\n\nvar Col = function (_Component) {\n _inherits(Col, _Component);\n\n function Col() {\n _classCallCheck(this, Col);\n\n return _possibleConstructorReturn(this, _Component.apply(this, arguments));\n }\n\n Col.prototype.render = function render() {\n var _props = this.props,\n Component = _props.componentClass,\n className = _props.className,\n clsPrefix = _props.clsPrefix,\n others = _objectWithoutProperties(_props, ['componentClass', 'className', 'clsPrefix']);\n\n var tbClass = [];\n /**\n * 对传入props做样式转化\n * @type {[type]}\n */\n DEVICE_SIZES.forEach(function (size) {\n function popProp(propSuffix, modifier) {\n var propName = '' + size + propSuffix;\n var propValue = others[propName];\n\n if (propValue != undefined && propValue != null) {\n tbClass.push(clsPrefix + '-' + size + modifier + '-' + propValue);\n }\n\n delete others[propName];\n }\n\n popProp('', '');\n popProp('Offset', '-offset');\n popProp('Push', '-push');\n popProp('Pull', '-pull');\n });\n\n return _react2[\"default\"].createElement(\n Component,\n _extends({\n className: (0, _classnames2[\"default\"])(tbClass, className)\n }, others),\n this.props.children\n );\n };\n\n return Col;\n}(_react.Component);\n\nCol.defaultProps = defaultProps;\nCol.propTypes = propTypes;\n\nexports[\"default\"] = Col;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1690 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = {\n componentClass: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].element, _propTypes2[\"default\"].string])\n};\n\nvar defaultProps = {\n componentClass: 'div',\n clsPrefix: 'u-row'\n};\n\nvar Row = function (_Component) {\n _inherits(Row, _Component);\n\n function Row() {\n _classCallCheck(this, Row);\n\n return _possibleConstructorReturn(this, _Component.apply(this, arguments));\n }\n\n Row.prototype.render = function render() {\n var _props = this.props,\n Component = _props.componentClass,\n clsPrefix = _props.clsPrefix,\n className = _props.className,\n others = _objectWithoutProperties(_props, ['componentClass', 'clsPrefix', 'className']);\n\n var bsclass = '' + clsPrefix;\n\n return _react2[\"default\"].createElement(\n Component,\n _extends({}, others, {\n className: (0, _classnames2[\"default\"])(bsclass, className)\n }),\n this.props.children\n );\n };\n\n return Row;\n}(_react.Component);\n\nRow.propTypes = propTypes;\nRow.defaultProps = defaultProps;\n\nexports[\"default\"] = Row;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1691 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = {\n /**\n * Adds `container-fluid` class.\n */\n fluid: _propTypes2[\"default\"].bool,\n /**\n * You can use a custom element for this component\n */\n componentClass: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].element, _propTypes2[\"default\"].string])\n};\n\nvar defaultProps = {\n componentClass: 'div',\n fluid: false,\n clsPrefix: 'u-container'\n};\n\nvar Con = function (_React$Component) {\n _inherits(Con, _React$Component);\n\n function Con() {\n _classCallCheck(this, Con);\n\n return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n Con.prototype.render = function render() {\n var _tbclass;\n\n var _props = this.props,\n fluid = _props.fluid,\n Component = _props.componentClass,\n clsPrefix = _props.clsPrefix,\n className = _props.className,\n others = _objectWithoutProperties(_props, ['fluid', 'componentClass', 'clsPrefix', 'className']);\n\n var tbclass = (_tbclass = {}, _defineProperty(_tbclass, '' + clsPrefix, !fluid), _defineProperty(_tbclass, clsPrefix + '-fluid', fluid), _tbclass);\n\n return _react2[\"default\"].createElement(\n Component,\n _extends({}, others, {\n className: (0, _classnames2[\"default\"])(tbclass, className)\n }),\n this.props.children\n );\n };\n\n return Con;\n}(_react2[\"default\"].Component);\n\nCon.propTypes = propTypes;\nCon.defaultProps = defaultProps;\n\nexports[\"default\"] = Con;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1692 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _beeLayout = __webpack_require__(212);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = {};\nvar defaultProps = {};\n\nvar LeftContent = function (_Component) {\n _inherits(LeftContent, _Component);\n\n function LeftContent(props) {\n _classCallCheck(this, LeftContent);\n\n return _possibleConstructorReturn(this, _Component.call(this, props));\n }\n\n LeftContent.prototype.render = function render() {\n var _props = this.props,\n className = _props.className,\n children = _props.children,\n other = _objectWithoutProperties(_props, ['className', 'children']);\n\n var classes = 'left-content';\n if (className) classes += ' ' + className;\n return _react2[\"default\"].createElement(\n _beeLayout.Col,\n _extends({ className: classes, md: 4, sm: 6, xs: 12 }, other),\n this.props.children\n );\n };\n\n return LeftContent;\n}(_react.Component);\n\nLeftContent.propTypes = propTypes;\nLeftContent.defaultProps = defaultProps;\nexports[\"default\"] = LeftContent;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1693 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _beeLayout = __webpack_require__(212);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = {};\nvar defaultProps = {};\n\nvar RightContent = function (_Component) {\n _inherits(RightContent, _Component);\n\n function RightContent(props) {\n _classCallCheck(this, RightContent);\n\n return _possibleConstructorReturn(this, _Component.call(this, props));\n }\n\n RightContent.prototype.render = function render() {\n var _props = this.props,\n className = _props.className,\n children = _props.children,\n other = _objectWithoutProperties(_props, ['className', 'children']);\n\n var classes = 'right-content';\n if (className) classes += ' ' + className;\n return _react2[\"default\"].createElement(\n _beeLayout.Col,\n _extends({ className: classes, md: 8, sm: 6, xs: 12 }, other),\n this.props.children\n );\n };\n\n return RightContent;\n}(_react.Component);\n\nRightContent.propTypes = propTypes;\nRightContent.defaultProps = defaultProps;\nexports[\"default\"] = RightContent;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1694 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = {};\nvar defaultProps = {};\n\nvar SearchArea = function (_Component) {\n _inherits(SearchArea, _Component);\n\n function SearchArea(props) {\n _classCallCheck(this, SearchArea);\n\n return _possibleConstructorReturn(this, _Component.call(this, props));\n }\n\n SearchArea.prototype.render = function render() {\n var _props = this.props,\n className = _props.className,\n children = _props.children,\n other = _objectWithoutProperties(_props, ['className', 'children']);\n\n var classes = 'search-area';\n if (className) classes += ' ' + className;\n return _react2[\"default\"].createElement(\n 'div',\n _extends({ className: classes }, other),\n this.props.children\n );\n };\n\n return SearchArea;\n}(_react.Component);\n\nSearchArea.propTypes = propTypes;\nSearchArea.defaultProps = defaultProps;\nexports[\"default\"] = SearchArea;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1695 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = {};\nvar defaultProps = {};\n\nvar TableContent = function (_Component) {\n _inherits(TableContent, _Component);\n\n function TableContent(props) {\n _classCallCheck(this, TableContent);\n\n return _possibleConstructorReturn(this, _Component.call(this, props));\n }\n\n TableContent.prototype.render = function render() {\n var _props = this.props,\n className = _props.className,\n children = _props.children,\n other = _objectWithoutProperties(_props, ['className', 'children']);\n\n var classes = 'table-container';\n if (className) classes += ' ' + className;\n return _react2[\"default\"].createElement(\n 'div',\n _extends({ className: classes }, other),\n this.props.children\n );\n };\n\n return TableContent;\n}(_react.Component);\n\nTableContent.propTypes = propTypes;\nTableContent.defaultProps = defaultProps;\nexports[\"default\"] = TableContent;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1696 */\n/***/ (function(module, exports, __webpack_require__) {\n\n__webpack_require__(1697);\nmodule.exports = __webpack_require__(1698);\n\n\n/***/ }),\n/* 1697 */\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n/* 1698 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _SvgIcon = __webpack_require__(1699);\n\nvar _SvgIcon2 = _interopRequireDefault(_SvgIcon);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nexports[\"default\"] = _SvgIcon2[\"default\"];\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1699 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\n__webpack_require__(1700);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = {\n className: _propTypes2[\"default\"].string,\n type: _propTypes2[\"default\"].string\n};\nvar defaultProps = {\n viewBox: \"0 0 1024 1024\",\n clsPrefix: 'u-svgicon'\n};\n\nvar SvgIcon = function (_Component) {\n _inherits(SvgIcon, _Component);\n\n function SvgIcon() {\n _classCallCheck(this, SvgIcon);\n\n return _possibleConstructorReturn(this, _Component.apply(this, arguments));\n }\n\n SvgIcon.prototype.render = function render() {\n var _this2 = this;\n\n var _props = this.props,\n className = _props.className,\n type = _props.type,\n Component = _props.component,\n viewBox = _props.viewBox,\n clsPrefix = _props.clsPrefix,\n children = _props.children;\n\n\n var classString = (0, _classnames2[\"default\"])(_defineProperty({}, '' + clsPrefix, true));\n var renderInnerNode = function renderInnerNode() {\n // component > type\n if (Component) {\n return _react2[\"default\"].createElement(\n 'i',\n _this2.props,\n _react2[\"default\"].createElement(\n Component,\n null,\n children\n )\n );\n }\n\n return _react2[\"default\"].createElement(\n 'svg',\n { className: (0, _classnames2[\"default\"])(className, classString), 'aria-hidden': 'true', viewBox: viewBox },\n _react2[\"default\"].createElement('use', { xlinkHref: '#uftype-' + type })\n );\n };\n return renderInnerNode();\n };\n\n return SvgIcon;\n}(_react.Component);\n\n;\n\nSvgIcon.propTypes = propTypes;\nSvgIcon.defaultProps = defaultProps;\nexports[\"default\"] = SvgIcon;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1700 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n!function (i) {\n var h,\n l = '',\n a = (h = document.getElementsByTagName(\"script\"))[h.length - 1].getAttribute(\"data-injectcss\");if (a && !i.__iconfont__svg__cssinject__) {\n i.__iconfont__svg__cssinject__ = !0;try {\n document.write(\"\");\n } catch (h) {\n console && console.log(h);\n }\n }!function (h) {\n if (document.addEventListener) {\n if (~[\"complete\", \"loaded\", \"interactive\"].indexOf(document.readyState)) setTimeout(h, 0);else {\n var a = function a() {\n document.removeEventListener(\"DOMContentLoaded\", a, !1), h();\n };document.addEventListener(\"DOMContentLoaded\", a, !1);\n }\n } else document.attachEvent && (t = h, F = i.document, p = !1, (_c = function c() {\n try {\n F.documentElement.doScroll(\"left\");\n } catch (h) {\n return void setTimeout(_c, 50);\n }l();\n })(), F.onreadystatechange = function () {\n \"complete\" == F.readyState && (F.onreadystatechange = null, l());\n });function l() {\n p || (p = !0, t());\n }var t, F, p, _c;\n }(function () {\n var h, a;(h = document.createElement(\"div\")).innerHTML = l, l = null, (a = h.getElementsByTagName(\"svg\")[0]) && (a.setAttribute(\"aria-hidden\", \"true\"), a.style.position = \"absolute\", a.style.width = 0, a.style.height = 0, a.style.overflow = \"hidden\", function (h, a) {\n a.firstChild ? function (h, a) {\n a.parentNode.insertBefore(h, a);\n }(h, a.firstChild) : a.appendChild(h);\n }(a, document.body));\n });\n}(window);\n\n/***/ })\n/******/ ]);\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/tinper-bee/build/tinper-bee.js\n// module id = 612\n// module chunks = 0","/**\n*\n* @title 单元格内容居中\n* @parent 基础 Basic\n* @description 在columns数据中设置`textAlign:'center'`,可实现单元格内容居中展示的效果。默认是居左显示。\n* demo0106\n*/\n\nimport React, { Component } from \"react\";\nimport {Button,Tooltip} from \"tinper-bee\";\nimport Table from \"../../src\";\n\nconst columns = [\n {\n title: \"员工编号\", dataIndex: \"a\", key: \"a\", width: 120, className: \"rowClassName\",\n fixed:'left',\n textAlign:'center',\n render: (text, record, index) => {\n return (\n \n {text}\n \n );\n }\n },\n { title: \"员工姓名\", dataIndex: \"b\", key: \"b\", width:100,textAlign:'center'},\n { title: \"性别\", dataIndex: \"c\", key: \"c\", width: 100,textAlign:'center'},\n { title: \"部门\", dataIndex: \"d\", key: \"d\", width: 100,textAlign:'center' },\n { title: \"职级\", dataIndex: \"e\", key: \"e\", width: 100,textAlign:'center' }\n];\n\nconst data = [\n { a: \"ASVAL_201903280005\", b: \"小张\", c: \"男\", d: \"财务二科\", e: \"M1\", key: \"1\" },\n { a: \"ASVAL_201903200004\", b: \"小明\", c: \"男\", d: \"财务一科\", e: \"T1\", key: \"2\" },\n { a: \"ASVAL_201903120002\", b: \"小红\", c: \"女\", d: \"财务一科\", e: \"T2\", key: \"3\" }\n];\n\nclass Demo06 extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n data: data\n }\n }\n handleClick = () => {\n console.log('这是第' , this.currentIndex , '行');\n console.log('内容:' , this.currentRecord);\n }\n\n render() {\n return (\n \n );\n }\n}\n\nexport default Demo06;\n\n\n\n// WEBPACK FOOTER //\n// ./demo/demolist/Demo0106.js","/**\n*\n* @title 带边框\n* @parent 基础 Basic\n* @description 设置 `bordered` 属性可添加表格边框线。\n* demo0107\n*/\n\nimport React, { Component } from \"react\";\nimport {Button,Tooltip} from \"tinper-bee\";\nimport Table from \"../../src\";\n\nconst columns = [\n { title: \"员工编号\", dataIndex: \"a\", key: \"a\", width: 150 },\n { title: \"员工姓名\", dataIndex: \"b\", key: \"b\", width:100},\n { title: \"性别\", dataIndex: \"c\", key: \"c\", width: 100},\n { title: \"部门\", dataIndex: \"d\", key: \"d\", width: 100 },\n { title: \"职级\", dataIndex: \"e\", key: \"e\", width: 100 }\n];\n\nconst data = [\n { a: \"ASVAL_20190328\", b: \"小张\", c: \"男\", d: \"财务二科\", e: \"M1\", key: \"1\" },\n { a: \"ASVAL_20190320\", b: \"小明\", c: \"男\", d: \"财务一科\", e: \"T1\", key: \"2\" },\n { a: \"ASVAL_20190312\", b: \"小红\", c: \"女\", d: \"财务一科\", e: \"T2\", key: \"3\" }\n];\n\nclass Demo06 extends Component {\n render() {\n return (\n \n );\n }\n}\n\nexport default Demo06;\n\n\n\n// WEBPACK FOOTER //\n// ./demo/demolist/Demo0107.js","/**\n*\n* @title 横向滚动条\n* @parent 滚动 Scroll View\n* @description `scroll.x`的值代表表体内容的实际宽度,默认情况下是根据各列宽度合计出来的。其值超过父元素的宽度时会自动出现滚动条。如设置 `scroll={{ x:1000 }}`,可以手动添加横向滚动条,也可以设置`scroll={{ x:\"110%\" }}`。\n* demo0201\n*/\n\nimport React, { Component } from \"react\";\nimport Table from \"../../src\";\n\nconst columns = [\n {\n title: \"序号\",\n dataIndex: \"index\",\n key: \"index\",\n width: 100, \n render(text, record, index) {\n return index + 1;\n }\n },\n {\n title: \"订单编号\",\n dataIndex: \"orderCode\",\n key: \"orderCode\",\n width: 300, \n },\n {\n title: \"供应商名称\",\n dataIndex: \"supplierName\",\n key: \"supplierName\",\n width: 200\n },\n {\n title: \"类型\",\n dataIndex: \"type_name\",\n key: \"type_name\",\n width: 200\n },\n {\n title: \"采购组织\",\n dataIndex: \"purchasing\",\n key: \"purchasing\",\n width: 200\n },\n {\n title: \"采购组\",\n dataIndex: \"purchasingGroup\",\n key: \"purchasingGroup\",\n width: 200\n },\n {\n title: \"凭证日期\",\n dataIndex: \"voucherDate\",\n key: \"voucherDate\",\n width: 300,\n },\n {\n title: \"审批状态\",\n dataIndex: \"approvalState_name\",\n key: \"approvalState_name\",\n width: 200\n },\n {\n title: \"确认状态\",\n dataIndex: \"confirmState_name\",\n key: \"confirmState_name\",\n width: 200\n }, \n {\n title: \"关闭状态\",\n dataIndex: \"closeState_name\",\n key: \"closeState_name\",\n width: 100\n }\n];\n \nconst data = [\n { \n orderCode:\"NU0391025\", \n supplierName: \"xx供应商\",\n type_name: \"1\",\n purchasing:'组织c', \n purchasingGroup:\"aa\",\n voucherDate:\"2018年03月18日\",\n approvalState_name:\"已审批\",\n confirmState_name:\"执行中\",\n closeState_name:\"未关闭\",\n key: \"1\"\n }, \n { \n orderCode:\"NU0391026\", \n supplierName: \"xx供应商\",\n type_name: \"2\",\n purchasing:'组织a', \n purchasingGroup:\"bb\",\n voucherDate:\"2018年02月05日\",\n approvalState_name:\"已审批\",\n confirmState_name:\"待确认\",\n closeState_name:\"未关闭\",\n key: \"2\"\n },\n { \n orderCode:\"NU0391027\", \n supplierName: \"xx供应商\",\n type_name: \"3\",\n purchasing:'组织b', \n purchasingGroup:\"aa\",\n voucherDate:\"2018年07月01日\",\n approvalState_name:\"已审批\",\n confirmState_name:\"终止\",\n closeState_name:\"已关闭\",\n key: \"3\"\n },\n { \n orderCode:\"NU0391028\", \n supplierName: \"xx供应商\",\n type_name: \"4\",\n purchasing:'组织c', \n purchasingGroup:\"cc\",\n voucherDate:\"2019年03月01日\",\n approvalState_name:\"未审批\",\n confirmState_name:\"待确认\",\n closeState_name:\"未关闭\",\n key: \"4\"\n },\n { \n orderCode:\"NU0391029\", \n supplierName: \"xx供应商\",\n type_name: \"5\",\n purchasing:'组织d', \n purchasingGroup:\"ss\",\n voucherDate:\"2019年02月14日\",\n approvalState_name:\"未审批\",\n confirmState_name:\"待确认\",\n closeState_name:\"未关闭\",\n key: \"5\"\n }\n];\n\nclass Demo11 extends Component {\n render() {\n return (\n \n );\n }\n}\n\nexport default Demo11;\n\n\n\n// WEBPACK FOOTER //\n// ./demo/demolist/Demo0201.js","/**\n*\n* @title 纵向滚动条\n* @parent 滚动 Scroll View\n* @description 通过设置 `scroll.y` 可达到固定表头的效果。如设置 `scroll={{ y:200 }}` 表示表体高度超出 200px 后会显示滚动条。\n* demo0202\n*/\n\nimport React, { Component } from \"react\";\nimport Table from \"../../src\";\n\nconst columns = [\n {title: \"序号\",dataIndex: \"index\",key: \"index\",width: 80, \n render(text, record, index) {\n return index + 1;\n }\n },\n {title: \"订单编号\",dataIndex: \"orderCode\",key: \"orderCode\",width: 200},\n {title: \"供应商名称\",dataIndex: \"supplierName\",key: \"supplierName\",width: 200},\n {title: \"类型\",dataIndex: \"type_name\",key: \"type_name\",width: 200},\n {title: \"采购组织\",dataIndex: \"purchasing\",key: \"purchasing\",width: 200},\n {title: \"采购组\",dataIndex: \"purchasingGroup\",key: \"purchasingGroup\",width: 200},\n {title: \"凭证日期\",dataIndex: \"voucherDate\",key: \"voucherDate\",width: 200}\n];\n \nconst data = [\n { \n orderCode:\"NU0391025\", \n supplierName: \"xx供应商\",\n type_name: \"1\",\n purchasing:'组织c', \n purchasingGroup:\"aa\",\n voucherDate:\"2018年03月18日\",\n key: \"1\"\n }, \n { \n orderCode:\"NU0391026\", \n supplierName: \"xx供应商\",\n type_name: \"2\",\n purchasing:'组织a', \n purchasingGroup:\"bb\",\n voucherDate:\"2018年02月05日\",\n key: \"2\"\n },\n { \n orderCode:\"NU0391027\", \n supplierName: \"xx供应商\",\n type_name: \"3\",\n purchasing:'组织b', \n purchasingGroup:\"aa\",\n voucherDate:\"2018年07月01日\",\n key: \"3\"\n },\n { \n orderCode:\"NU0391028\", \n supplierName: \"xx供应商\",\n type_name: \"4\",\n purchasing:'组织c', \n purchasingGroup:\"cc\",\n voucherDate:\"2019年03月01日\",\n key: \"4\"\n },\n { \n orderCode:\"NU0391029\", \n supplierName: \"xx供应商\",\n type_name: \"5\",\n purchasing:'组织d', \n purchasingGroup:\"ss\",\n voucherDate:\"2019年02月14日\",\n key: \"5\"\n },\n { \n orderCode:\"NU0391030\", \n supplierName: \"xx供应商\",\n type_name: \"1\",\n purchasing:'组织e', \n purchasingGroup:\"zz\",\n voucherDate:\"2019年02月18日\",\n key: \"6\"\n },\n { \n orderCode:\"NU0391031\", \n supplierName: \"xx供应商\",\n type_name: \"2\",\n purchasing:'组织f', \n purchasingGroup:\"qq\",\n voucherDate:\"2019年01月01日\",\n key: \"7\"\n },\n { \n orderCode:\"NU0391032\", \n supplierName: \"xx供应商\",\n type_name: \"3\",\n purchasing:'组织g', \n purchasingGroup:\"pp\",\n voucherDate:\"2019年01月31日\",\n key: \"8\"\n },\n];\nclass Demo12 extends Component {\n render() {\n return (\n
    \n );\n }\n}\n\nexport default Demo12;\n\n\n\n// WEBPACK FOOTER //\n// ./demo/demolist/Demo0202.js","/**\n*\n* @title 渲染本地数据\n* @parent 数据操作 Data Opetation\n* @description 可自定义页头和页脚。\n* demo0301\n*/\n\nimport React, { Component } from \"react\";\nimport {Button,Tooltip} from \"tinper-bee\";\nimport Table from \"../../src\";\n\nconst columns = [\n {\n title: \"员工编号\", dataIndex: \"a\", key: \"a\", width: 300, className: \"rowClassName\",\n fixed:'left',\n render: (text, record, index) => {\n return (\n \n {text}\n \n );\n }\n },\n { title: \"员工姓名\", dataIndex: \"b\", key: \"b\", width: 500 },\n { title: \"性别\", dataIndex: \"c\", key: \"c\", width: 500 },\n { title: \"部门\", dataIndex: \"d\", key: \"d\", width: 200 }\n];\n\nconst data = [\n { a: \"ASVAL_201903280005\", b: \"小张\", c: \"男\", d: \"财务二科\", key: \"1\" },\n { a: \"ASVAL_201903200004\", b: \"小明\", c: \"男\", d: \"财务一科\", key: \"2\" },\n { a: \"ASVAL_201903120002\", b: \"小红\", c: \"女\", d: \"财务一科\", key: \"3\" }\n];\nclass Demo21 extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n data: data\n }\n }\n\n render() {\n return (\n
    员工信息统计表
    }\n footer={currentData =>
    合计: 共{data.length}条数据
    }\n />\n );\n }\n}\n\nexport default Demo21;\n\n\n\n// WEBPACK FOOTER //\n// ./demo/demolist/Demo0301.js","/**\n*\n* @title 渲染远程数据\n* @parent 数据操作 Data Opetation\n* @description 可通过 ajax 请求方式,从服务端读取并展现数据。也可自行接入其他数据处理方式。\n* demo0302\n*/\n\nimport React, { Component } from \"react\";\nimport {Button} from \"tinper-bee\";\nimport reqwest from 'reqwest';\nimport Table from \"../../src\";\n\nconst columns = [{\n title: 'Name',\n dataIndex: 'name',\n sorter: true,\n render: name => `${name.first} ${name.last}`,\n width: '20%',\n}, {\n title: 'Gender',\n dataIndex: 'gender',\n filters: [\n { text: 'Male', value: 'male' },\n { text: 'Female', value: 'female' },\n ],\n width: '20%',\n}, {\n title: 'Email',\n dataIndex: 'email',\n}];\n\nclass Demo22 extends Component {\n constructor(props) {\n super(props);\n this.state = {\n data: [],\n loading: false,\n }\n }\n\n fetch = (params = {}) => {\n console.log('params:', params);\n this.setState({ loading: true });\n reqwest({\n url: 'https://randomuser.me/api',\n method: 'get',\n data: {\n results: 10,\n ...params,\n },\n type: 'json',\n }).then((data) => {\n this.setState({\n loading: false,\n data: data.results,\n });\n });\n }\n\n render() {\n return (\n
    \n \n \n
    \n );\n }\n}\n\nexport default Demo22;\n\n\n\n// WEBPACK FOOTER //\n// ./demo/demolist/Demo0302.js","/*!\n * Reqwest! A general purpose XHR connection manager\n * license MIT (c) Dustin Diaz 2015\n * https://github.com/ded/reqwest\n */\n\n!function (name, context, definition) {\n if (typeof module != 'undefined' && module.exports) module.exports = definition()\n else if (typeof define == 'function' && define.amd) define(definition)\n else context[name] = definition()\n}('reqwest', this, function () {\n\n var context = this\n\n if ('window' in context) {\n var doc = document\n , byTag = 'getElementsByTagName'\n , head = doc[byTag]('head')[0]\n } else {\n var XHR2\n try {\n XHR2 = require('xhr2')\n } catch (ex) {\n throw new Error('Peer dependency `xhr2` required! Please npm install xhr2')\n }\n }\n\n\n var httpsRe = /^http/\n , protocolRe = /(^\\w+):\\/\\//\n , twoHundo = /^(20\\d|1223)$/ //http://stackoverflow.com/questions/10046972/msie-returns-status-code-of-1223-for-ajax-request\n , readyState = 'readyState'\n , contentType = 'Content-Type'\n , requestedWith = 'X-Requested-With'\n , uniqid = 0\n , callbackPrefix = 'reqwest_' + (+new Date())\n , lastValue // data stored by the most recent JSONP callback\n , xmlHttpRequest = 'XMLHttpRequest'\n , xDomainRequest = 'XDomainRequest'\n , noop = function () {}\n\n , isArray = typeof Array.isArray == 'function'\n ? Array.isArray\n : function (a) {\n return a instanceof Array\n }\n\n , defaultHeaders = {\n 'contentType': 'application/x-www-form-urlencoded'\n , 'requestedWith': xmlHttpRequest\n , 'accept': {\n '*': 'text/javascript, text/html, application/xml, text/xml, */*'\n , 'xml': 'application/xml, text/xml'\n , 'html': 'text/html'\n , 'text': 'text/plain'\n , 'json': 'application/json, text/javascript'\n , 'js': 'application/javascript, text/javascript'\n }\n }\n\n , xhr = function(o) {\n // is it x-domain\n if (o['crossOrigin'] === true) {\n var xhr = context[xmlHttpRequest] ? new XMLHttpRequest() : null\n if (xhr && 'withCredentials' in xhr) {\n return xhr\n } else if (context[xDomainRequest]) {\n return new XDomainRequest()\n } else {\n throw new Error('Browser does not support cross-origin requests')\n }\n } else if (context[xmlHttpRequest]) {\n return new XMLHttpRequest()\n } else if (XHR2) {\n return new XHR2()\n } else {\n return new ActiveXObject('Microsoft.XMLHTTP')\n }\n }\n , globalSetupOptions = {\n dataFilter: function (data) {\n return data\n }\n }\n\n function succeed(r) {\n var protocol = protocolRe.exec(r.url)\n protocol = (protocol && protocol[1]) || context.location.protocol\n return httpsRe.test(protocol) ? twoHundo.test(r.request.status) : !!r.request.response\n }\n\n function handleReadyState(r, success, error) {\n return function () {\n // use _aborted to mitigate against IE err c00c023f\n // (can't read props on aborted request objects)\n if (r._aborted) return error(r.request)\n if (r._timedOut) return error(r.request, 'Request is aborted: timeout')\n if (r.request && r.request[readyState] == 4) {\n r.request.onreadystatechange = noop\n if (succeed(r)) success(r.request)\n else\n error(r.request)\n }\n }\n }\n\n function setHeaders(http, o) {\n var headers = o['headers'] || {}\n , h\n\n headers['Accept'] = headers['Accept']\n || defaultHeaders['accept'][o['type']]\n || defaultHeaders['accept']['*']\n\n var isAFormData = typeof FormData !== 'undefined' && (o['data'] instanceof FormData);\n // breaks cross-origin requests with legacy browsers\n if (!o['crossOrigin'] && !headers[requestedWith]) headers[requestedWith] = defaultHeaders['requestedWith']\n if (!headers[contentType] && !isAFormData) headers[contentType] = o['contentType'] || defaultHeaders['contentType']\n for (h in headers)\n headers.hasOwnProperty(h) && 'setRequestHeader' in http && http.setRequestHeader(h, headers[h])\n }\n\n function setCredentials(http, o) {\n if (typeof o['withCredentials'] !== 'undefined' && typeof http.withCredentials !== 'undefined') {\n http.withCredentials = !!o['withCredentials']\n }\n }\n\n function generalCallback(data) {\n lastValue = data\n }\n\n function urlappend (url, s) {\n return url + (/\\?/.test(url) ? '&' : '?') + s\n }\n\n function handleJsonp(o, fn, err, url) {\n var reqId = uniqid++\n , cbkey = o['jsonpCallback'] || 'callback' // the 'callback' key\n , cbval = o['jsonpCallbackName'] || reqwest.getcallbackPrefix(reqId)\n , cbreg = new RegExp('((^|\\\\?|&)' + cbkey + ')=([^&]+)')\n , match = url.match(cbreg)\n , script = doc.createElement('script')\n , loaded = 0\n , isIE10 = navigator.userAgent.indexOf('MSIE 10.0') !== -1\n\n if (match) {\n if (match[3] === '?') {\n url = url.replace(cbreg, '$1=' + cbval) // wildcard callback func name\n } else {\n cbval = match[3] // provided callback func name\n }\n } else {\n url = urlappend(url, cbkey + '=' + cbval) // no callback details, add 'em\n }\n\n context[cbval] = generalCallback\n\n script.type = 'text/javascript'\n script.src = url\n script.async = true\n if (typeof script.onreadystatechange !== 'undefined' && !isIE10) {\n // need this for IE due to out-of-order onreadystatechange(), binding script\n // execution to an event listener gives us control over when the script\n // is executed. See http://jaubourg.net/2010/07/loading-script-as-onclick-handler-of.html\n script.htmlFor = script.id = '_reqwest_' + reqId\n }\n\n script.onload = script.onreadystatechange = function () {\n if ((script[readyState] && script[readyState] !== 'complete' && script[readyState] !== 'loaded') || loaded) {\n return false\n }\n script.onload = script.onreadystatechange = null\n script.onclick && script.onclick()\n // Call the user callback with the last value stored and clean up values and scripts.\n fn(lastValue)\n lastValue = undefined\n head.removeChild(script)\n loaded = 1\n }\n\n // Add the script to the DOM head\n head.appendChild(script)\n\n // Enable JSONP timeout\n return {\n abort: function () {\n script.onload = script.onreadystatechange = null\n err({}, 'Request is aborted: timeout', {})\n lastValue = undefined\n head.removeChild(script)\n loaded = 1\n }\n }\n }\n\n function getRequest(fn, err) {\n var o = this.o\n , method = (o['method'] || 'GET').toUpperCase()\n , url = typeof o === 'string' ? o : o['url']\n // convert non-string objects to query-string form unless o['processData'] is false\n , data = (o['processData'] !== false && o['data'] && typeof o['data'] !== 'string')\n ? reqwest.toQueryString(o['data'])\n : (o['data'] || null)\n , http\n , sendWait = false\n\n // if we're working on a GET request and we have data then we should append\n // query string to end of URL and not post data\n if ((o['type'] == 'jsonp' || method == 'GET') && data) {\n url = urlappend(url, data)\n data = null\n }\n\n if (o['type'] == 'jsonp') return handleJsonp(o, fn, err, url)\n\n // get the xhr from the factory if passed\n // if the factory returns null, fall-back to ours\n http = (o.xhr && o.xhr(o)) || xhr(o)\n\n http.open(method, url, o['async'] === false ? false : true)\n setHeaders(http, o)\n setCredentials(http, o)\n if (context[xDomainRequest] && http instanceof context[xDomainRequest]) {\n http.onload = fn\n http.onerror = err\n // NOTE: see\n // http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/30ef3add-767c-4436-b8a9-f1ca19b4812e\n http.onprogress = function() {}\n sendWait = true\n } else {\n http.onreadystatechange = handleReadyState(this, fn, err)\n }\n o['before'] && o['before'](http)\n if (sendWait) {\n setTimeout(function () {\n http.send(data)\n }, 200)\n } else {\n http.send(data)\n }\n return http\n }\n\n function Reqwest(o, fn) {\n this.o = o\n this.fn = fn\n\n init.apply(this, arguments)\n }\n\n function setType(header) {\n // json, javascript, text/plain, text/html, xml\n if (header === null) return undefined; //In case of no content-type.\n if (header.match('json')) return 'json'\n if (header.match('javascript')) return 'js'\n if (header.match('text')) return 'html'\n if (header.match('xml')) return 'xml'\n }\n\n function init(o, fn) {\n\n this.url = typeof o == 'string' ? o : o['url']\n this.timeout = null\n\n // whether request has been fulfilled for purpose\n // of tracking the Promises\n this._fulfilled = false\n // success handlers\n this._successHandler = function(){}\n this._fulfillmentHandlers = []\n // error handlers\n this._errorHandlers = []\n // complete (both success and fail) handlers\n this._completeHandlers = []\n this._erred = false\n this._responseArgs = {}\n\n var self = this\n\n fn = fn || function () {}\n\n if (o['timeout']) {\n this.timeout = setTimeout(function () {\n timedOut()\n }, o['timeout'])\n }\n\n if (o['success']) {\n this._successHandler = function () {\n o['success'].apply(o, arguments)\n }\n }\n\n if (o['error']) {\n this._errorHandlers.push(function () {\n o['error'].apply(o, arguments)\n })\n }\n\n if (o['complete']) {\n this._completeHandlers.push(function () {\n o['complete'].apply(o, arguments)\n })\n }\n\n function complete (resp) {\n o['timeout'] && clearTimeout(self.timeout)\n self.timeout = null\n while (self._completeHandlers.length > 0) {\n self._completeHandlers.shift()(resp)\n }\n }\n\n function success (resp) {\n var type = o['type'] || resp && setType(resp.getResponseHeader('Content-Type')) // resp can be undefined in IE\n resp = (type !== 'jsonp') ? self.request : resp\n // use global data filter on response text\n var filteredResponse = globalSetupOptions.dataFilter(resp.responseText, type)\n , r = filteredResponse\n try {\n resp.responseText = r\n } catch (e) {\n // can't assign this in IE<=8, just ignore\n }\n if (r) {\n switch (type) {\n case 'json':\n try {\n resp = context.JSON ? context.JSON.parse(r) : eval('(' + r + ')')\n } catch (err) {\n return error(resp, 'Could not parse JSON in response', err)\n }\n break\n case 'js':\n resp = eval(r)\n break\n case 'html':\n resp = r\n break\n case 'xml':\n resp = resp.responseXML\n && resp.responseXML.parseError // IE trololo\n && resp.responseXML.parseError.errorCode\n && resp.responseXML.parseError.reason\n ? null\n : resp.responseXML\n break\n }\n }\n\n self._responseArgs.resp = resp\n self._fulfilled = true\n fn(resp)\n self._successHandler(resp)\n while (self._fulfillmentHandlers.length > 0) {\n resp = self._fulfillmentHandlers.shift()(resp)\n }\n\n complete(resp)\n }\n\n function timedOut() {\n self._timedOut = true\n self.request.abort()\n }\n\n function error(resp, msg, t) {\n resp = self.request\n self._responseArgs.resp = resp\n self._responseArgs.msg = msg\n self._responseArgs.t = t\n self._erred = true\n while (self._errorHandlers.length > 0) {\n self._errorHandlers.shift()(resp, msg, t)\n }\n complete(resp)\n }\n\n this.request = getRequest.call(this, success, error)\n }\n\n Reqwest.prototype = {\n abort: function () {\n this._aborted = true\n this.request.abort()\n }\n\n , retry: function () {\n init.call(this, this.o, this.fn)\n }\n\n /**\n * Small deviation from the Promises A CommonJs specification\n * http://wiki.commonjs.org/wiki/Promises/A\n */\n\n /**\n * `then` will execute upon successful requests\n */\n , then: function (success, fail) {\n success = success || function () {}\n fail = fail || function () {}\n if (this._fulfilled) {\n this._responseArgs.resp = success(this._responseArgs.resp)\n } else if (this._erred) {\n fail(this._responseArgs.resp, this._responseArgs.msg, this._responseArgs.t)\n } else {\n this._fulfillmentHandlers.push(success)\n this._errorHandlers.push(fail)\n }\n return this\n }\n\n /**\n * `always` will execute whether the request succeeds or fails\n */\n , always: function (fn) {\n if (this._fulfilled || this._erred) {\n fn(this._responseArgs.resp)\n } else {\n this._completeHandlers.push(fn)\n }\n return this\n }\n\n /**\n * `fail` will execute when the request fails\n */\n , fail: function (fn) {\n if (this._erred) {\n fn(this._responseArgs.resp, this._responseArgs.msg, this._responseArgs.t)\n } else {\n this._errorHandlers.push(fn)\n }\n return this\n }\n , 'catch': function (fn) {\n return this.fail(fn)\n }\n }\n\n function reqwest(o, fn) {\n return new Reqwest(o, fn)\n }\n\n // normalize newline variants according to spec -> CRLF\n function normalize(s) {\n return s ? s.replace(/\\r?\\n/g, '\\r\\n') : ''\n }\n\n function serial(el, cb) {\n var n = el.name\n , t = el.tagName.toLowerCase()\n , optCb = function (o) {\n // IE gives value=\"\" even where there is no value attribute\n // 'specified' ref: http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-862529273\n if (o && !o['disabled'])\n cb(n, normalize(o['attributes']['value'] && o['attributes']['value']['specified'] ? o['value'] : o['text']))\n }\n , ch, ra, val, i\n\n // don't serialize elements that are disabled or without a name\n if (el.disabled || !n) return\n\n switch (t) {\n case 'input':\n if (!/reset|button|image|file/i.test(el.type)) {\n ch = /checkbox/i.test(el.type)\n ra = /radio/i.test(el.type)\n val = el.value\n // WebKit gives us \"\" instead of \"on\" if a checkbox has no value, so correct it here\n ;(!(ch || ra) || el.checked) && cb(n, normalize(ch && val === '' ? 'on' : val))\n }\n break\n case 'textarea':\n cb(n, normalize(el.value))\n break\n case 'select':\n if (el.type.toLowerCase() === 'select-one') {\n optCb(el.selectedIndex >= 0 ? el.options[el.selectedIndex] : null)\n } else {\n for (i = 0; el.length && i < el.length; i++) {\n el.options[i].selected && optCb(el.options[i])\n }\n }\n break\n }\n }\n\n // collect up all form elements found from the passed argument elements all\n // the way down to child elements; pass a '
    ' or form fields.\n // called with 'this'=callback to use for serial() on each element\n function eachFormElement() {\n var cb = this\n , e, i\n , serializeSubtags = function (e, tags) {\n var i, j, fa\n for (i = 0; i < tags.length; i++) {\n fa = e[byTag](tags[i])\n for (j = 0; j < fa.length; j++) serial(fa[j], cb)\n }\n }\n\n for (i = 0; i < arguments.length; i++) {\n e = arguments[i]\n if (/input|select|textarea/i.test(e.tagName)) serial(e, cb)\n serializeSubtags(e, [ 'input', 'select', 'textarea' ])\n }\n }\n\n // standard query string style serialization\n function serializeQueryString() {\n return reqwest.toQueryString(reqwest.serializeArray.apply(null, arguments))\n }\n\n // { 'name': 'value', ... } style serialization\n function serializeHash() {\n var hash = {}\n eachFormElement.apply(function (name, value) {\n if (name in hash) {\n hash[name] && !isArray(hash[name]) && (hash[name] = [hash[name]])\n hash[name].push(value)\n } else hash[name] = value\n }, arguments)\n return hash\n }\n\n // [ { name: 'name', value: 'value' }, ... ] style serialization\n reqwest.serializeArray = function () {\n var arr = []\n eachFormElement.apply(function (name, value) {\n arr.push({name: name, value: value})\n }, arguments)\n return arr\n }\n\n reqwest.serialize = function () {\n if (arguments.length === 0) return ''\n var opt, fn\n , args = Array.prototype.slice.call(arguments, 0)\n\n opt = args.pop()\n opt && opt.nodeType && args.push(opt) && (opt = null)\n opt && (opt = opt.type)\n\n if (opt == 'map') fn = serializeHash\n else if (opt == 'array') fn = reqwest.serializeArray\n else fn = serializeQueryString\n\n return fn.apply(null, args)\n }\n\n reqwest.toQueryString = function (o, trad) {\n var prefix, i\n , traditional = trad || false\n , s = []\n , enc = encodeURIComponent\n , add = function (key, value) {\n // If value is a function, invoke it and return its value\n value = ('function' === typeof value) ? value() : (value == null ? '' : value)\n s[s.length] = enc(key) + '=' + enc(value)\n }\n // If an array was passed in, assume that it is an array of form elements.\n if (isArray(o)) {\n for (i = 0; o && i < o.length; i++) add(o[i]['name'], o[i]['value'])\n } else {\n // If traditional, encode the \"old\" way (the way 1.3.2 or older\n // did it), otherwise encode params recursively.\n for (prefix in o) {\n if (o.hasOwnProperty(prefix)) buildParams(prefix, o[prefix], traditional, add)\n }\n }\n\n // spaces should be + according to spec\n return s.join('&').replace(/%20/g, '+')\n }\n\n function buildParams(prefix, obj, traditional, add) {\n var name, i, v\n , rbracket = /\\[\\]$/\n\n if (isArray(obj)) {\n // Serialize array item.\n for (i = 0; obj && i < obj.length; i++) {\n v = obj[i]\n if (traditional || rbracket.test(prefix)) {\n // Treat each array item as a scalar.\n add(prefix, v)\n } else {\n buildParams(prefix + '[' + (typeof v === 'object' ? i : '') + ']', v, traditional, add)\n }\n }\n } else if (obj && obj.toString() === '[object Object]') {\n // Serialize object item.\n for (name in obj) {\n buildParams(prefix + '[' + name + ']', obj[name], traditional, add)\n }\n\n } else {\n // Serialize scalar item.\n add(prefix, obj)\n }\n }\n\n reqwest.getcallbackPrefix = function () {\n return callbackPrefix\n }\n\n // jQuery and Zepto compatibility, differences can be remapped here so you can call\n // .ajax.compat(options, callback)\n reqwest.compat = function (o, fn) {\n if (o) {\n o['type'] && (o['method'] = o['type']) && delete o['type']\n o['dataType'] && (o['type'] = o['dataType'])\n o['jsonpCallback'] && (o['jsonpCallbackName'] = o['jsonpCallback']) && delete o['jsonpCallback']\n o['jsonp'] && (o['jsonpCallback'] = o['jsonp'])\n }\n return new Reqwest(o, fn)\n }\n\n reqwest.ajaxSetup = function (options) {\n options = options || {}\n for (var k in options) {\n globalSetupOptions[k] = options[k]\n }\n }\n\n return reqwest\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/reqwest/reqwest.js\n// module id = 619\n// module chunks = 0","/* (ignored) */\n\n\n//////////////////\n// WEBPACK FOOTER\n// xhr2 (ignored)\n// module id = 620\n// module chunks = 0","/**\n*\n* @title 悬浮列\n* @parent 列渲染 Custom Render\n* @description 鼠标hover行时呼出操作按钮。\n* demo0401\n*/\n\nimport React, { Component } from \"react\";\nimport {Button,Popconfirm} from \"tinper-bee\";\nimport Table from \"../../src\";\n\nconst columns = [\n { title: \"员工编号\", dataIndex: \"a\", key: \"a\", width: 150 },\n { title: \"员工姓名\", dataIndex: \"b\", key: \"b\", width: 100 },\n { title: \"性别\", dataIndex: \"c\", key: \"c\", width: 100 },\n { title: \"部门\", dataIndex: \"d\", key: \"d\", width: 100 }\n];\n\nconst data = [\n { a: \"ASVAL_201903280005\", b: \"小张\", c: \"男\", d: \"财务二科\", key: \"1\" },\n { a: \"ASVAL_201903200004\", b: \"小明\", c: \"男\", d: \"财务一科\", key: \"2\" },\n { a: \"ASVAL_201903120002\", b: \"小红\", c: \"女\", d: \"财务一科\", key: \"3\" }\n];\n\nclass Demo11 extends Component {\n constructor(props) {\n super(props);\n }\n\n deleteRow=()=>{\n console.log('删除第' , this.currentIndex , '行');\n }\n\n onRowHover=(index,record)=>{\n this.currentIndex = index;\n this.currentRecord = record;\n }\n\n getHoverContent=(record, index)=>{\n return (\n
    \n \n \n \n
    \n )\n }\n\n render() {\n return (\n \n );\n }\n}\n\nexport default Demo11;\n\n\n\n// WEBPACK FOOTER //\n// ./demo/demolist/Demo0401.js","/**\r\n *\r\n * @title 多列表头\r\n * @parent 列渲染 Custom Render\r\n * @description columns[n] 可以内嵌 children,以渲染分组表头。\r\n * 自定义表头高度需要传headerHeight,注:修改th的padding top和bottom置为0,否则会有影响\r\n * 多列表头拖拽的时候,原则只拖拽叶子节点的表头。\r\n * demo0402\r\n */\r\n\r\nimport React, { Component } from \"react\";\r\nimport Table from \"../../src\";\r\n\r\nimport dragColumn from '../../src/lib/dragColumn';\r\n\r\nconst columns = [\r\n {\r\n title: \"姓名\",\r\n dataIndex: \"name\",\r\n key: \"name\",\r\n width: 100,\r\n fixed: \"left\"\r\n },\r\n {\r\n title: \"个人信息\",\r\n width:600,\r\n children: [\r\n {\r\n title: \"年龄\",\r\n dataIndex: \"age\",\r\n key: \"age\",\r\n width: 200\r\n },\r\n {\r\n title: \"地址\",\r\n children: [\r\n {\r\n title: \"街道\",\r\n dataIndex: \"street\",\r\n key: \"street\",\r\n width: 200\r\n },\r\n {\r\n title: \"单元\",\r\n children: [\r\n {\r\n title: \"楼号\",\r\n dataIndex: \"building\",\r\n key: \"building\",\r\n width: 100\r\n },\r\n {\r\n title: \"门户\",\r\n dataIndex: \"number\",\r\n key: \"number\",\r\n width: 100\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n title: \"公司信息\",\r\n width:400,\r\n children: [\r\n {\r\n title: \"公司地址\",\r\n dataIndex: \"companyAddress\",\r\n key: \"companyAddress\",\r\n width:200,\r\n },\r\n {\r\n title: \"公司名称\",\r\n dataIndex: \"companyName\",\r\n key: \"companyName\",\r\n width:200,\r\n }\r\n ]\r\n },\r\n {\r\n title: \"性别\",\r\n dataIndex: \"gender\",\r\n key: \"gender\",\r\n width: 60,\r\n fixed: \"right\"\r\n }\r\n];\r\n\r\nconst data = [];\r\nfor (let i = 0; i < 20; i++) {\r\n data.push({\r\n key: i,\r\n name: \"John Brown\",\r\n age: i + 1,\r\n street: \"Lake Park\",\r\n building: \"C\",\r\n number: 2035,\r\n companyAddress: \"北清路 68 号\",\r\n companyName: \"用友\",\r\n gender: \"男\"\r\n });\r\n}\r\n\r\nconst DragColumnTable = dragColumn(Table);\r\n\r\nclass Demo12 extends Component {\r\n render() {\r\n return (\r\n {\r\n console.log(width+\"--调整列宽后触发事件\",e.target);\r\n }}\r\n scroll={{ y: 240 }}\r\n />\r\n );\r\n }\r\n}\r\n\r\nexport default Demo12;\r\n\n\n\n// WEBPACK FOOTER //\n// ./demo/demolist/Demo0402.js","import React, { Component } from \"react\";\nimport {compare,ObjectAssign} from './util'; \n/**\n * 参数: 列拖拽\n * @param {*} Table\n */\n \nexport default function dragColumn(Table) {\n\n return class DragColumn extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n columns:this.setColumOrderByIndex(props.columns)\n };\n }\n\n componentWillReceiveProps(nextProps){\n if(nextProps.columns != this.props.columns){\n this.setState({\n columns:this.setColumOrderByIndex(nextProps.columns)\n })\n }\n }\n \n setColumOrderByIndex = (_column)=>{\n _column.forEach((da,i) => {\n da.dragIndex = i;\n da.drgHover = false;\n });\n return _column; \n }\n\n recursion(obj, data={}){\n for(key in obj){\n if( typeof obj[key] == 'object' && Object.keys(obj[key].length>0 )){\n data[key] = recursion(obj[key])\n }else{\n data[key] = obj[key]\n }\n }\n return data\n }\n\n onDragEnd=(event,data)=>{\n let {dragSource,dragTarg} = data;\n let {columns} = this.state; \n let sourceIndex = -1,targetIndex = -1;\n \n sourceIndex = columns.findIndex((da,i)=>da.key == dragSource.key);\n targetIndex = columns.findIndex((da,i)=>da.key == dragTarg.key);\n // 向前移动\n if(targetIndex < sourceIndex){\n targetIndex = targetIndex + 1;\n }\n columns.splice(\n targetIndex,\n 0,\n columns.splice(sourceIndex, 1)[0]\n );\n let _newColumns = [];\n columns.forEach((da,i)=>{\n let newDate = Object.assign(da,{});\n newDate.title = da.title;\n _newColumns.push(newDate);\n });\n this.setState({\n columns:_newColumns//cloneDeep(columns)\n });\n if(this.props.onDragEnd){\n this.props.onDragEnd(event,data,columns);\n }\n }\n \n getTarget=(evt)=>{\n return evt.target || evt.srcElement;\n }\n\n render() {\n const {\n data,\n dragborder,\n draggable,\n className,\n ...others\n } = this.props;\n return (\n )\n }\n };\n}\n\n\n// WEBPACK FOOTER //\n// ./src/lib/dragColumn.js","/*\n* 快速排序,按某个属性,或按“获取排序依据的函数”,来排序.\n* @method soryBy\n* @static\n* @param {array} arr 待处理数组\n* @param {string|function} prop 排序依据属性,获取\n* @param {boolean} desc 降序\n* @return {array} 返回排序后的新数组\n*/\n\nexport function sortBy(arr, prop, desc) { \n let props=[],\n ret=[],\n i=0,\n len=arr.length;\n if(typeof prop=='string') {\n for(; i {\n let _da = {};\n Object.assign(_da,da);\n tagObj.push(_da);\n });\n }else{\n Object.assign(tagObj,obj);\n }\n return tagObj;\n }\n\n\n \n\n\n// WEBPACK FOOTER //\n// ./src/lib/util.js","/**\n*\n* @title 数据关联\n* @parent 列渲染 Custom Render\n* @description 数据行关联自定义菜单显示\n* demo0404\n*/\n\nimport React, { Component } from 'react';\nimport {Icon,Checkbox,Dropdown,Menu} from 'tinper-bee';\nimport Table from '../../src';\nimport multiSelect from \"../../src/lib/newMultiSelect\";\nimport sort from \"../../src/lib/sort\";\n\nconst { Item } = Menu;\n\nconst data = [\n { \n num:\"NU0391025\", \n name: \"aa\",\n sex: \"男\",\n dept:'财务二科', \n rank:\"T1\",\n year:\"1\",\n seniority:\"1\",\n key: \"1\"\n }, \n { \n num:\"NU0391026\", \n name: \"bb\",\n sex: \"女\",\n dept:'财务一科', \n rank:\"M1\",\n year:\"1\",\n seniority:\"1\",\n key: \"2\"\n },\n { \n num:\"NU0391027\", \n name: \"dd\",\n sex: \"女\",\n dept:'财务一科', \n rank:\"T2\",\n year:\"2\",\n seniority:\"2\",\n key: \"3\"\n }\n];\n\nconst MultiSelectTable = multiSelect(Table, Checkbox);\nconst ComplexTable = sort(MultiSelectTable, Icon);\n\nclass Demo13 extends Component {\n constructor(props) {\n super(props);\n }\n getSelectedDataFunc = data => {\n console.log(data);\n }\n onSelect = (item) => {\n console.log(item);\n }\n render() {\n const menu1 = (\n \n 模态弹出\n 链接跳转\n 打开新页\n );\n let columns = [\n { title: \"关联\",dataIndex: \"link\",key: \"link\",width: 80, \n render: (text, record, index) => {\n return (\n \n \n \n )\n }\n },\n { title: \"员工编号\",dataIndex: \"num\",key: \"num\",width: 200 },\n { title: \"员工姓名\",dataIndex: \"name\",key: \"name\", width: 200},\n { title: \"员工性别\",dataIndex: \"sex\",key: \"sex\",width: 200 },\n { title: \"部门\",dataIndex: \"dept\",key: \"dept\",width: 200},\n { title: \"职级\",dataIndex: \"rank\",key: \"rank\",width: 200},\n { title: \"工龄\",dataIndex: \"year\",key: \"year\",width: 200},\n { title: \"司龄\",dataIndex: \"seniority\",key: \"seniority\",width: 200}\n ];\n return \n }\n}\n\nexport default Demo13; \n\n\n// WEBPACK FOOTER //\n// ./demo/demolist/Demo0404.js","import multiSelect from './multiSelect';\n\nexport default function newMultiSelect(Table, Checkbox) {\n return multiSelect(Table, Checkbox);\n}\n\n\n// WEBPACK FOOTER //\n// ./src/lib/newMultiSelect.js","import React, { Component } from \"react\";\nimport PropTypes from 'prop-types';\nimport {ObjectAssign} from './util';\n/**\n * 参数: 过滤表头\n * @param {*} Table\n * @param {*} Checkbox\n * @param {*} Popover\n * @param {*} Icon\n */\n\nexport default function multiSelect(Table, Checkbox) {\n\n return class MultiSelect extends Component {\n static propTypes = {\n autoCheckedByClickRows: PropTypes.bool, //行点击时,是否自动勾选复选框\n };\n static defaultProps = {\n prefixCls: \"u-table-mult-select\",\n getSelectedDataFunc:()=>{},\n autoSelect: false,\n autoCheckedByClickRows: true,\n multiSelectConfig: {}\n }\n\n constructor(props) {\n super(props);\n let obj = this.getCheckedOrIndeter(props.data);\n this.state = {\n ...obj,\n data:ObjectAssign(props.data),\n }\n }\n\n componentWillReceiveProps(nextProps){\n if('data' in nextProps){\n let obj = this.getCheckedOrIndeter(nextProps.data);\n this.setState({\n ...obj,\n data:ObjectAssign(nextProps.data),\n })\n }\n }\n\n /**\n * @param {*} data \n */\n getCheckedOrIndeter(data){\n let obj = {};\n let checkStatus = this.checkAllSelected(data);\n if(!checkStatus){\n obj.checkedAll = false;\n obj.indeterminate = false;\n return obj;\n }\n if(checkStatus == 'indeter'){\n obj.indeterminate = true;\n obj.checkedAll = false;\n }else if(checkStatus == 'all'){\n obj.checkedAll = true;\n obj.indeterminate = false;\n }\n return obj;\n }\n\n /**\n * 判断数据是否全部选中\n * @param {*} data \n * return string all(全选)、indeter(半选)\n */\n setChecked(data){\n if(!this.isArray(data))return false;\n if(data.length == 0)return false;\n let count = 0;\n let disabledCount = 0;\n data.forEach(da=>{\n if(da._checked && !da._disabled){\n count ++;\n }\n if(da._disabled){\n disabledCount ++;\n }\n })\n\n if(data.length == count + disabledCount && count>0){\n return \"all\";\n }\n return count == 0?false:\"indeter\";\n }\n\n /**\n * 重写:判断数据是否全部选中\n */\n checkAllSelected = ( data ) => {\n if(!this.isArray(data))return false;\n if(data.length == 0)return false;\n let count = 0;\n let disabledCount = 0;\n let length = 0;\n let getTree = ( arr ) => {\n arr.forEach( item => {\n length++;\n if(item._checked && !item._disabled){\n count ++;\n }\n else if(item._disabled){\n disabledCount ++;\n }\n if(item.children){\n getTree(item.children);\n }\n })\n }\n getTree(data);\n if(length == count + disabledCount && count>0){\n return \"all\";\n }\n return count == 0?false:\"indeter\";\n }\n\n /**\n * 判断是否是数组\n * @param {*} o \n */\n isArray(o){\n return Object.prototype.toString.call(o)=='[object Array]';\n }\n\n\n onAllCheckChange=()=>{\n let {data,checkedAll,indeterminate} = this.state;\n let check = false;\n if(checkedAll){\n check = false;\n }else{\n check = true;\n }\n let selectList = [];\n \n data.forEach(item => {\n if( item.children ){\n let res = this.setTree(item,check, true);\n selectList = selectList.concat(res);\n }\n else {\n if(!item._disabled){\n item._checked = check;\n }\n \n if(item._checked){\n selectList.push(item);\n }\n }\n });\n if(selectList.length > 0){\n indeterminate = true;\n }else{\n indeterminate = false;\n }\n this.setState({\n indeterminate:indeterminate,\n checkedAll:check\n });\n this.props.getSelectedDataFunc(selectList,undefined,undefined,data);\n }\n\n /**\n * 遍历树节点和它的子孙节点,设置_checked\n */\n setTree = ( node, flag, autoSelect) => {\n let res = [];\n let setTreeNodeFlag = ( node, flag) => {\n if(!node._disabled){\n node._checked = flag;\n }\n if(flag){\n res.push(node);\n }\n if(node.children && autoSelect){\n node.children.forEach( item => {\n setTreeNodeFlag(item, flag);\n })\n }\n }\n setTreeNodeFlag(node, flag);\n return res;\n }\n\n /**\n * 遍历树节点和它的子孙节点,获取对应状态的节点数组\n */\n getTree = ( node, key, value ) => {\n let res = [];\n let getTreeNodeByFlag = ( node) => {\n if(node[key] === value){\n res.push(node);\n }\n if(node.children){\n node.children.forEach( item => {\n getTreeNodeByFlag(item);\n })\n }\n }\n getTreeNodeByFlag(node);\n return res;\n }\n \n onCheckboxChange = (text, record, index) => () => {\n let {data} = this.state;\n let selectList = [];\n // record._checked = record._checked?false:true;\n let flag = record._checked ? false : true;\n if (record.children) {\n this.setTree(record, flag, this.props.autoSelect);\n }\n else {\n record._checked = flag;\n }\n let obj = this.getCheckedOrIndeter(data);\n this.setState({\n data:data,\n ...obj\n })\n data.forEach((da)=>{\n if(da.children){\n selectList = selectList.concat(this.getTree(da,'_checked',true))\n }\n else if(da._checked){\n selectList.push(da);\n }\n })\n this.props.getSelectedDataFunc(selectList,record,index,data);\n };\n\n \n\n getDefaultColumns=(columns)=>{\n let {multiSelectConfig} = this.props;\n let {checkedAll,indeterminate} = this.state;\n let checkAttr = {checked:checkedAll?true:false};\n const data = this.props.data;\n const dataLength = data.length;\n let disabledCount = 0;\n indeterminate?checkAttr.indeterminate = true:\"\";\n //设置\b表头Checkbox是否可以点击\n data.forEach((item,index,arr)=>{\n if(item._disabled){\n disabledCount++;\n }\n })\n\n let _defaultColumns =[{\n className: 'u-table-multiSelect-column',\n title: (\n \n ),\n key: \"checkbox\",\n dataIndex: \"checkbox\",\n fixed:\"left\",\n width: 49, \n render: (text, record, index) => {\n let attr = {};\n record._disabled?attr.disabled = record._disabled:\"\";\n return \n }\n }]\n return _defaultColumns.concat(columns);\n }\n\n // 实现行点击时触发多选框勾选的需求\n onRowClick = (record,index,event) =>{\n if(record._disabled) return;\n let { autoCheckedByClickRows, onRowClick } = this.props;\n if(autoCheckedByClickRows) {\n this.onCheckboxChange('',record, index)();\n }\n onRowClick && onRowClick(record,index,event);\n }\n\n render() {\n const {columns, expandIconColumnIndex} = this.props;\n const {data} = this.state;\n return
    \n }\n };\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/lib/multiSelect.js","import React, { Component } from \"react\";\n\n/**\n * 参数:prefixCls,默认bee-table,用于设置图标的样式\n * @param {*} Table\n * @param {*} Icon\n */\nexport default function sort(Table, Icon) {\n const IconType = [{\n 'type':'flat',\n 'icon':'uf-symlist',\n 'order':'flatscend',\n },{\n 'type':'up',\n 'icon':'uf-sortup',\n 'order':'ascend',\n },{\n 'type':'down',\n 'icon':'uf-sortdown',\n 'order':'descend',\n }\n ]\n \n return class SortTable extends Component {\n constructor(props) {\n super(props);\n let flatColumns = [];\n this._toFlatColumn(props.columns,-1,flatColumns);\n this.state = { data: this.props.data, columns: props.columns,flatColumns:flatColumns };\n \n }\n static defaultProps = { sort: { mode: \"single\", backSource: false } }; //默认是前端排序,值为true为后端排序\n componentWillReceiveProps(nextProps) {\n \n if (nextProps.data !== this.props.data) {\n this.setState({\n data: nextProps.data,\n oldData: nextProps.data.concat()\n });\n }\n if (nextProps.columns !== this.props.columns) {\n let flatColumns = [];\n this._toFlatColumn(nextProps.columns,-1,flatColumns);\n this.setState({ columns: nextProps.columns ,flatColumns});\n \n }\n }\n /**\n *column扁平化处理,适应多表头避免递归操作\n *\n */\n _toFlatColumn(columns,parentIndex = -1,flatColumns=[]) {\n const _this = this;\n let children = [];\n // const flatColumns = _this.state;\n columns.forEach((item,index)=>{\n item.parentIndex = parentIndex;\n children = item.children;\n flatColumns.push(item);\n if(children){\n // item.children = [];\n _this._toFlatColumn(children,flatColumns.length - 1,flatColumns);\n }\n });\n }\n getOrderNum = () => {\n let orderNum = 0;\n //todo 1\n this.state.flatColumns.forEach((item, index) => {\n if (item.order == \"ascend\" || item.order == \"descend\") {\n orderNum++;\n }\n });\n return orderNum ? orderNum : 1;\n };\n\n /**\n * column 当前的排序的列\n * 当有的列不排序时,将该列的orderNum置为‘’,并动态的修改其他列的orderNum。\n */\n changeOrderNum = column => {\n let { flatColumns } = this.state;\n //todo 2\n flatColumns.forEach(col => {\n if (col.orderNum > column.orderNum) {\n col.orderNum--;\n }\n if (column.key == col.key) {\n col.orderNum = \"\";\n }\n });\n this.setState({ flatColumns });\n };\n /**\n * 获取排序字段\n */\n getOrderCols = columns => {\n let orderCols = [];\n //todo 3\n columns.forEach(item => {\n if (item.order == \"ascend\" || item.order == \"descend\") {\n orderCols.push({\n order: item.order,\n field: item.dataIndex,\n orderNum: item.orderNum\n });\n }\n });\n return orderCols;\n };\n\n /**\n * pre:前一条数据\n * after:后一条数据\n * orderType:升序、降序\n */\n _sortBy = (pre, after, orderCols, orderColslen, currentIndex) => {\n const currentCol = orderCols[currentIndex];\n const preKey = pre[currentCol.key];\n const afterKey = after[currentCol.key];\n let colSortFun = currentCol.sorter;\n if(typeof colSortFun !== 'function'){\n colSortFun = () => preKey - afterKey;\n }\n if (preKey == afterKey && currentIndex + 1 <= orderColslen) {\n return this._sortBy(pre, after, orderCols, orderColslen, currentIndex + 1);\n }\n if (currentCol.order == \"ascend\") {\n return colSortFun(pre,after);\n } else { \n return -colSortFun(pre,after);\n }\n };\n /**\n * 多列排序 先排order为1的,其他的基于已排序的数据排\n */\n multiSort = columns => {\n let { data, oldData } = this.state;\n const self = this;\n let orderCols = {},\n orderColslen = 0;\n //todo 4\n columns.forEach(item => {\n if (item.orderNum) {\n orderColslen++;\n orderCols[item.orderNum] = item;\n }\n });\n if (orderColslen > 0) {\n data = data.sort(function(a, b) {\n return self._sortBy(a, b, orderCols, orderColslen, 1);\n });\n } else {\n data = oldData.concat();\n }\n return data;\n };\n\n toggleSortOrder = (order, column) => {\n let { data, oldData, flatColumns } = this.state;\n let { sort } = this.props;\n let seleObj;\n if (!oldData) {\n oldData = data.concat();\n }\n let sortCol ;\n //单列排序,清空其他列的排序\n if (sort.mode == \"single\") {\n //todo 5\n flatColumns.forEach(da => {\n if (da.key == column.key) {\n seleObj = da;\n } else {\n if (da.order) {\n da.order = \"flatscend\";\n }\n }\n });\n seleObj.order = order;\n sortCol = [{ order: order, field: seleObj.dataIndex }]\n //通过后端请求\n if (sort.backSource && typeof sort.sortFun === \"function\") {\n //获取排序的字段和方式\n sort.sortFun(sortCol);\n \n } else {\n if (order === \"ascend\") {\n data = data.sort(function(a, b) {\n return column.sorter(a, b);\n });\n } else if (order === \"descend\") {\n data = data.sort(function(a, b) {\n return column.sorter(b, a);\n });\n } else {\n data = oldData.concat();\n }\n typeof sort.sortFun === \"function\" && sort.sortFun(sortCol,data,oldData);\n }\n } else {\n seleObj = flatColumns.find(da => da.key == column.key);\n seleObj.order = order;\n if (order === \"flatscend\") {\n this.changeOrderNum(column);\n }\n if (!seleObj.orderNum && (order == \"ascend\" || order == \"descend\")) {\n seleObj.orderNum = this.getOrderNum();\n }\n sortCol = this.getOrderCols(flatColumns);\n if (sort.backSource && typeof sort.sortFun === \"function\") {\n sort.sortFun(sortCol);\n } else {\n data = this.multiSort(flatColumns);\n typeof sort.sortFun === \"function\" && sort.sortFun(sortCol,data,oldData);\n }\n }\n this.setState({ data, oldData, flatColumns });\n };\n //每个column上添加orderNum属性,不排序时为“”。\n //点击时orderNum有值则不重新赋值,如果没有值,则取当前column下的有oderNum的length值。并排序\n //点击置为“”时,动态的设置相关column的orderNum值。并排序\n renderColumnsDropdown = columns => {\n let tempColumns = [],rsColumns = [];\n tempColumns = columns.map(originColumn => {\n let column = Object.assign({}, originColumn);\n return this.sortColumn(column);\n });\n rsColumns = this._flatToColumn(tempColumns);\n return rsColumns;\n };\n\n sortColumn = column => {\n const { mode } = this.props.sort;\n const prefixCls = \"bee-table\";\n let iconTypeIndex = 0;\n let sorterClass = \"flat\";\n\n if (column.order === \"ascend\") {\n iconTypeIndex = 1;\n sorterClass = \"up\";\n } else if (column.order === \"descend\") {\n iconTypeIndex = 2;\n sorterClass = \"down\";\n }\n\n let sortButton;\n\n // sorter和sortEnable均可触发排序,且sorter优先级更高\n if (column.sorter || column.sortEnable ) {\n //大于0说明不是升序就是降序,判断orderNum有没有值,没有值赋值\n if ( column.sortEnable && !column.sorter) {\n switch(column.fieldType){\n case 'number':{\n column.sorter = this.numberSortFn(column.dataIndex);\n break;\n }\n case 'stringChinese':{\n column.sorter = this.chineseSortFn(column.dataIndex);\n break;\n }\n default:{\n column.sorter = this.defaultSortFn(column.dataIndex);\n break;\n }\n }\n }\n if (iconTypeIndex > 0 && !column.orderNum && mode == \"multiple\") {\n column.orderNum = this.getOrderNum();\n }\n sortButton =
    \n {\n this.toggleSortOrder(IconType[iconTypeIndex == 2 ? 0 : iconTypeIndex + 1].order, column);\n\n if (column.sorterClick) {\n column.sorterClick(column, IconType[iconTypeIndex].type);\n }\n }}>\n {/* */}\n \n {column.orderNum}\n \n
    ;\n }\n column.title = \n {column.title}\n {sortButton}\n ;\n return column;\n };\n\n // 默认的比较函数,即字符串比较函数\n defaultSortFn = (key) => (a, b)=> {\n return a[key] >= b[key] ? 1 : -1;\n }\n // 数值比较函数\n numberSortFn = (key) => (a, b)=> {\n let numberA = parseFloat(a[key]);\n let numberB = parseFloat(b[key]);\n return numberA >= numberB ? 1 : -1;\n }\n\n // 中文比较函数,按拼音排序\n chineseSortFn = (key) => (a, b)=>{\n return a[key].localeCompare(b[key], 'zh-Hans-CN',{sensitivity: 'accent'});\n } \n\n _flatToColumn(flatColumns){\n const colLen = flatColumns.length;\n let parentIndex,rsColumns = [];\n //每次渲染需要将父类的children置空,避免重复\n flatColumns.forEach(item=>{\n if(item.children){\n item.children = [];\n }\n })\n for(let i = colLen-1;i>=0;i--){\n parentIndex = flatColumns[i].parentIndex;\n if(parentIndex >= 0){\n flatColumns[parentIndex].children.unshift(flatColumns[i]);\n }\n }\n rsColumns = flatColumns.filter(item=>{\n return item.parentIndex == -1\n })\n return rsColumns;\n }\n render() {\n let columns = this.renderColumnsDropdown(this.state.flatColumns.concat());\n return
    ;\n }\n };\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/lib/sort.js","/**\n *\n * @title 列合计(总计)\n * @parent 列渲染 Custom Render\n * @description 给需要计算合计的列(columns),设置sumCol值为true即可,支持动态设置数据源。\n * demo0405\n */\n\nimport React, { Component } from \"react\";\nimport {Checkbox} from \"tinper-bee\";\nimport Table from \"../../src\"; \nimport sum from \"../../src/lib/sum.js\";\nimport multiSelect from \"../../src/lib/multiSelect.js\";\n \nlet ComplexTable = multiSelect(sum(Table), Checkbox);\n//sum第二个参数可以设置精度,例如 sum(Table,4); 设计精度为4\nlet _sum = 0;\nconst columns = [\n {\n title: \"单据编号\",\n dataIndex: \"num\",\n key: \"num\",\n width: 120,\n fixed: \"left\"\n },\n {\n title: \"单据日期\",\n dataIndex: \"date\",\n key: \"date\",\n width: 200,\n },\n {\n title: \"业务类型\",\n dataIndex: \"type\",\n key: \"type\",\n width: 200\n },\n {\n title: \"供应商\",\n dataIndex: \"supplier\",\n key: \"supplier\",\n width: 100\n },\n {\n title: \"联系人\",\n dataIndex: \"contact\",\n key: \"contact\",\n },\n {\n title: \"仓库\",\n dataIndex: \"warehouse\",\n key: \"warehouse\",\n width: 80,\n },\n {\n title: \"整单数量\",\n dataIndex: \"total\",\n key: \"total\",\n width: 100,\n sumCol: true\n },\n {\n title: \"金额\",\n dataIndex: \"money\",\n key: \"money\",\n width: 100,\n sumCol: true\n }\n];\n\nfunction getData(){\n const data = [];\n for (let i = 0; i < 5; i++) {\n data.push({\n key: i,\n num: \"NU039100\"+i,\n date: \"2019-03-01\",\n type: \"普通采购\",\n supplier: \"gys\"+i,\n contact: \"Tom\",\n warehouse: \"普通仓\",\n total: i + Math.floor(Math.random()*10),\n money: 20 * Math.floor(Math.random()*10)\n });\n _sum += data[i].total;\n _sum += data[i].money;\n }\n return data;\n}\n\nclass Demo35 extends Component {\n \n constructor(props) {\n super(props);\n this.state = {\n data: getData(),\n sum:_sum\n };\n }\n\n render() {\n const {data} = this.state;\n return (\n
    \n
    总计: {_sum}
    }\n />\n
    \n );\n }\n}\nexport default Demo35;\n\n\n\n// WEBPACK FOOTER //\n// ./demo/demolist/Demo0405.js","import React from \"react\";\n\nimport {DicimalFormater} from \"./utils\";\nexport default function sum(Table,precision=2) {\n return class SumTable extends React.Component {\n //无状态\n constructor(props) {\n super(props);\n //array , tree\n this.tableType = \"array\";\n }\n\n\n getNodeItem =(array,newArray)=>{\n array.forEach((da,i)=>{\n if(da.children){\n this.getNodeItem(da.children,newArray);\n }else{\n newArray.push(da);\n }\n });\n }\n\n /**\n * 获取当前的表格类型。\n * \n */\n getTableType=()=>{\n const {columns} = this.props;\n let type = \"array\";\n columns.find((da,i)=>{\n if(da.children){\n type = \"tree\";\n return type;\n }\n })\n return type;\n }\n\n\n\n addSumData=()=>{\n let {data=[],columns=[]} = this.props;\n let sumdata = {},newColumns = [],newData = [];\n if (!Array.isArray(columns)) {console.log(\"columns type is error !\");return;}\n let type = this.getTableType();\n if(type == 'tree'){\n this.getNodeItem(columns,newColumns);\n }else{\n newColumns = columns;\n }\n //返回一个新的数据\n newData = data.slice();\n newColumns.forEach((column,index)=>{\n sumdata[column.dataIndex] = \"\";\n if(column.sumCol){\n let count = 0;\n data.forEach((da,i)=>{\n \n let _num = parseFloat(da[column.key]);\n //排查字段值为NAN情况\n if(_num == _num){\n count += _num;\n }\n \n })\n let sum = DicimalFormater(count,precision);\n sumdata[column.dataIndex] = sum;\n if(column.sumRender&&typeof column.sumRender =='function'){\n sumdata[column.dataIndex] = column.sumRender(sum)\n }\n \n }\n if(index == 0){\n sumdata[column.dataIndex] = \"合计 \"+sumdata[column.dataIndex];\n }\n })\n \n newData.push(sumdata);\n return newData;\n }\n\n render() {\n return (\n \n );\n }\n };\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/lib/sum.js","/**\n *\n * @title 自定义整行和整列样式表格\n * @parent 列渲染 Custom Render\n * @description 某行或某列的样式,严格按照react的样式书写规则,即对象内每一个属性的键为小写驼峰式,值为字符串。此demo展示自定义整行或整列的背景色和字体内容颜色。\n * demo0406\n */\n\nimport React, { Component } from \"react\";\nimport Table from \"../../src\";\n\nconst columns = [\n { title: \"员工编号\", dataIndex: \"a\", key: \"a\", width: 150 },\n { title: \"员工姓名\", dataIndex: \"b\", key: \"b\", width:100},\n { title: \"性别\", dataIndex: \"c\", key: \"c\", width: 100,style: {backgroundColor:'#e3f2fd',color:'#505F79'}},\n { title: \"部门\", dataIndex: \"d\", key: \"d\", width: 100 },\n { title: \"职级\", dataIndex: \"e\", key: \"e\", width: 100 }\n];\n\nconst data = [\n { a: \"ASVAL_20190328\", b: \"小张\", c: \"男\", d: \"财务二科\", e: \"M1\", key: \"1\" ,style:{backgroundColor:'#ffebee',color:'#000'}},\n { a: \"ASVAL_20190320\", b: \"小明\", c: \"男\", d: \"财务一科\", e: \"T1\", key: \"2\" },\n { a: \"ASVAL_20190312\", b: \"小红\", c: \"女\", d: \"财务一科\", e: \"T2\", key: \"3\" }\n];\n\nclass Demo0406 extends Component {\n render() {\n return (\n \n );\n }\n}\nexport default Demo0406\n\n\n\n// WEBPACK FOOTER //\n// ./demo/demolist/Demo0406.js","/**\n *\n * @title 行内编辑\n * @parent 编辑 Editor\n * @description 可以对行进行编辑的表格\n * demo0501\n */\nimport React, { Component } from \"react\";\nimport Table from \"../../src\";\nimport { Select, Form, FormControl, Button, Icon, Tooltip } from \"tinper-bee\";\nconst Option = Select.Option;\nimport { RefTreeWithInput } from \"ref-tree\";\n\nclass StringEditCell extends Component {\n constructor(props, context) {\n super(props);\n this.state = {\n value: props.value\n };\n }\n\n componentWillReceiveProps(nextProps) {\n if (!nextProps.editable) {\n this.setState({ value: nextProps.value });\n }\n }\n\n handleChange = value => {\n const { onChange, throwError } = this.props;\n if (value === \"\") {\n throwError && throwError(true);\n } else {\n throwError && throwError(false);\n }\n this.setState({ value });\n onChange && onChange(value);\n };\n\n render() {\n const { editable, required, colName } = this.props;\n const { value } = this.state;\n let cls = \"editable-cell-input-wrapper\";\n if (required) cls += \" required\";\n if (value === \"\") cls += \" verify-cell\";\n return editable ? (\n
    \n
    \n \n \n {value === \"\" ? (\n {\"请输入\" + colName}
    }\n >\n \n \n ) : null}\n \n
    \n \n ) : (\n value || \" \"\n );\n }\n}\n\nconst SELECT_SOURCE = [\"男\", \"女\"];\n\nclass SelectEditCell extends Component {\n constructor(props, context) {\n super(props);\n this.state = {\n value: props.value\n };\n }\n\n componentWillReceiveProps(nextProps) {\n if (!nextProps.editable) {\n this.setState({ value: nextProps.value });\n }\n }\n\n handleSelect = value => {\n this.setState({ value });\n this.props.onChange && this.props.onChange(value);\n };\n\n render() {\n const { editable } = this.props;\n const { value } = this.state;\n let cls = \"editable-cell-input-wrapper\";\n return editable ? (\n
    \n
    \n \n
    \n
    \n ) : (\n value || \" \"\n );\n }\n}\n\nconst option = {\n title: \"树\",\n searchable: true,\n multiple: false,\n param: {\n refCode: \"neworganizition_tree\"\n },\n checkStrictly: true,\n disabled: false,\n nodeDisplay: record => {\n return record.refname;\n },\n displayField: record => {\n return record.refname;\n }, //显示内容的键\n valueField: \"refpk\", //真实 value 的键\n refModelUrl: {\n treeUrl: \"https://mock.yonyoucloud.com/mock/358/blobRefTree\",\n treeUrl: \"/pap_basedoc/common-ref/blobRefTree\"\n },\n matchUrl: \"/pap_basedoc/common-ref/matchPKRefJSON\",\n filterUrl: \"/pap_basedoc/common-ref/filterRefJSON\",\n lazyModal: false,\n strictMode: true,\n lang: \"zh_CN\",\n treeData: [\n {\n code: \"org1\",\n children: [\n {\n code: \"bj\",\n entityType: \"mainEntity\",\n name: \"北京总部-简\",\n pid: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refcode: \"bj\",\n refpk: \"5305416e-e7b4-4051-90bd-12d12942295b\",\n id: \"5305416e-e7b4-4051-90bd-12d12942295b\",\n isLeaf: \"true\",\n refname: \"北京总部-简\"\n },\n {\n code: \"xd\",\n entityType: \"mainEntity\",\n name: \"新道-简\",\n pid: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refcode: \"xd\",\n refpk: \"b691afff-ea83-4a3f-affa-beb2be9cba52\",\n id: \"b691afff-ea83-4a3f-affa-beb2be9cba52\",\n isLeaf: \"true\",\n refname: \"新道-简\"\n },\n {\n code: \"yy3\",\n entityType: \"mainEntity\",\n name: \"test3\",\n pid: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refcode: \"yy3\",\n refpk: \"e75694d9-7c00-4e9e-9573-d29465ae79a9\",\n id: \"e75694d9-7c00-4e9e-9573-d29465ae79a9\",\n isLeaf: \"true\",\n refname: \"test3\"\n },\n {\n code: \"yy1\",\n entityType: \"mainEntity\",\n name: \"test1\",\n pid: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refcode: \"yy1\",\n refpk: \"fd32ceeb-57a8-4f44-816e-fa660f5715ab\",\n id: \"fd32ceeb-57a8-4f44-816e-fa660f5715ab\",\n isLeaf: \"true\",\n refname: \"test1\"\n },\n {\n code: \"dept2\",\n children: [\n {\n code: \"cs\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"测试部-简\",\n pid: \"0ebbb6d8-250a-4d1d-a019-7ae951629a2c\",\n refcode: \"cs\",\n refpk: \"cc43a66a-438d-4106-937f-bec44406f771\",\n id: \"cc43a66a-438d-4106-937f-bec44406f771\",\n isLeaf: \"true\",\n refname: \"测试部-简\"\n },\n {\n code: \"qd\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"前端部-简\",\n pid: \"0ebbb6d8-250a-4d1d-a019-7ae951629a2c\",\n refcode: \"qd\",\n refpk: \"73a10edd-aae8-4f31-af25-1f48f0a3b344\",\n id: \"73a10edd-aae8-4f31-af25-1f48f0a3b344\",\n isLeaf: \"true\",\n refname: \"前端部-简\"\n }\n ],\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"生产处\",\n refcode: \"dept2\",\n refpk: \"0ebbb6d8-250a-4d1d-a019-7ae951629a2c\",\n id: \"0ebbb6d8-250a-4d1d-a019-7ae951629a2c\",\n refname: \"生产处\"\n },\n {\n code: \"dept1\",\n children: [\n {\n code: \"dept1_2\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务二科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_2\",\n refpk: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n id: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n isLeaf: \"true\",\n refname: \"财务二科\"\n },\n {\n code: \"dept1_1\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务一科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_1\",\n refpk: \"9711d912-3184-4063-90c5-1facc727813c\",\n id: \"9711d912-3184-4063-90c5-1facc727813c\",\n isLeaf: \"true\",\n refname: \"财务一科\"\n }\n ],\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务处\",\n refcode: \"dept1\",\n refpk: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n id: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refname: \"财务处\"\n }\n ],\n entityType: \"mainEntity\",\n name: \"用友集团\",\n refcode: \"org1\",\n refpk: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refname: \"用友集团\"\n }\n ]\n};\n\nconst RefEditCell = Form.createForm()(\n class RefComponentWarpper extends Component {\n constructor(props, context) {\n super(props);\n this.state = {\n value: props.value\n };\n }\n\n componentWillReceiveProps(nextProps) {\n if (!nextProps.editable) {\n this.setState({ value: nextProps.value });\n }\n }\n\n handleSelect = values => {\n this.setState({ value: values[0] });\n this.props.onChange && this.props.onChange(values[0]);\n };\n\n render() {\n const { getFieldProps, getFieldError } = this.props.form;\n const { editable, required } = this.props;\n const { value } = this.state;\n let cls = \"editable-cell-input-wrapper\";\n if (required) cls += \" required\";\n if (getFieldError(\"refValue\")) cls += \" verify-cell\";\n return editable ? (\n
    \n \n {\"请输入\" + this.props.colName}\n
    \n }\n >\n \n \n ),\n pattern: /[^{\"refname\":\"\",\"refpk\":\"\"}|{\"refpk\":\"\",\"refname\":\"\"}]/\n }\n ]\n })}\n />\n {getFieldError(\"refValue\")}\n \n ) : (\n value.name || \" \"\n );\n }\n }\n);\n\nlet dataSource = [\n {\n a: \"ASVAL_201903280005\",\n b: \"小张\",\n c: \"男\",\n d: {\n code: \"dept1_2\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务二科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_2\",\n refpk: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n id: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n isLeaf: \"true\",\n refname: \"财务二科\"\n },\n key: \"1\"\n },\n {\n a: \"ASVAL_201903200004\",\n b: \"小明\",\n c: \"男\",\n d: {\n code: \"dept1_2\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务二科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_2\",\n refpk: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n id: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n isLeaf: \"true\",\n refname: \"财务二科\"\n },\n key: \"2\"\n },\n {\n a: \"ASVAL_201903120002\",\n b: \"小红\",\n c: \"女\",\n d: {\n code: \"dept1_1\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务一科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_1\",\n refpk: \"9711d912-3184-4063-90c5-1facc727813c\",\n id: \"9711d912-3184-4063-90c5-1facc727813c\",\n isLeaf: \"true\",\n refname: \"财务一科\"\n },\n key: \"3\"\n }\n];\n\nclass Demo0501 extends Component {\n constructor(props, context) {\n super(props);\n this.state = {\n dataSource: dataSource,\n editingRowsMap: {},\n currentIndex: null,\n errorEditFlag: false\n };\n\n this.columns = [\n {\n title: \"员工编号\",\n dataIndex: \"a\",\n key: \"a\"\n },\n {\n title: \"名字\",\n dataIndex: \"b\",\n key: \"b\",\n render: (text, record, index) => (\n \n )\n },\n {\n title: \"性别\",\n dataIndex: \"c\",\n key: \"c\",\n width: 100,\n render: (text, record, index) => (\n \n )\n },\n {\n title: \"部门\",\n dataIndex: \"d\",\n key: \"d\",\n width: 215,\n render: (text, record, index) => (\n \n )\n },\n // 只是用来占位占宽度的\n {\n key: \"placeholder\"\n }\n ];\n\n this.state = {\n dataSource: dataSource,\n editingRowsMap: {},\n currentIndex: null,\n errorEditFlag: false\n };\n\n this.dataBuffer = {};\n }\n\n edit = index => () => {\n if (index === null) return;\n let editingRowsMap = { ...this.state.editingRowsMap };\n editingRowsMap[index] = index.toString();\n // 最好使用深复制\n this.dataBuffer[index] = { ...this.state.dataSource[index] };\n this.setState({ editingRowsMap });\n };\n\n abortEdit = index => () => {\n let editingRowsMap = { ...this.state.editingRowsMap };\n delete editingRowsMap[index];\n delete this.dataBuffer[index];\n this.setState({ editingRowsMap });\n };\n\n delete = index => () => {\n if (index === null) return;\n let { dataSource } = this.state;\n dataSource.splice(index,1);\n this.setState({\n dataSource:dataSource\n });\n }\n\n commitChange = index => () => {\n if (this.state.errorEditFlag) return;\n let editingRowsMap = { ...this.state.editingRowsMap };\n delete editingRowsMap[index];\n let dataSource = [...this.state.dataSource];\n dataSource[index] = { ...this.dataBuffer[index] };\n this.setState({ editingRowsMap, dataSource });\n };\n\n onCellChange = (index, key) => value => {\n this.dataBuffer[index][key] = value;\n };\n\n throwError = isError => {\n if (isError !== this.state.errorEditFlag)\n this.setState({ errorEditFlag: isError });\n };\n\n handleRowHover = (index, record) => {\n this.currentRecord = record;\n this.setState({ currentIndex: index });\n };\n\n renderRowHover = () => {\n const { currentIndex } = this.state;\n return this.state.editingRowsMap[currentIndex] ? (\n
    \n \n 取消\n \n \n
    \n ) : (\n
    \n \n \n
    \n );\n };\n\n render() {\n const { dataSource } = this.state;\n const columns = this.columns;\n return (\n
    \n \n
    \n );\n }\n}\n\nexport default Demo0501;\n\n\n\n// WEBPACK FOOTER //\n// ./demo/demolist/Demo0501.js","module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,\"a\",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=\"/\",n(n.s=147)}([function(e,t){e.exports=require(\"react\")},function(e,t){e.exports=require(\"prop-types\")},function(e,t){e.exports=require(\"react-dom\")},function(e,t,n){var r;\n/*!\n Copyright (c) 2017 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/*!\n Copyright (c) 2017 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n!function(){\"use strict\";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t=0&&t.left>=0&&t.bottom>t.top&&t.right>t.left?t:null};var Y=function(e,t,n,r){var o=q.clone(e),i={width:t.width,height:t.height};return r.adjustX&&o.left=n.left&&o.left+i.width>n.right&&(i.width-=o.left+i.width-n.right),r.adjustX&&o.left+i.width>n.right&&(o.left=Math.max(n.right-i.width,n.left)),r.adjustY&&o.top=n.top&&o.top+i.height>n.bottom&&(i.height-=o.top+i.height-n.bottom),r.adjustY&&o.top+i.height>n.bottom&&(o.top=Math.max(n.bottom-i.height,n.top)),q.mix(o,i)};var X=function(e){var t=void 0,n=void 0,r=void 0;if(q.isWindow(e)||9===e.nodeType){var o=q.getWindow(e);t={left:q.getWindowScrollLeft(o),top:q.getWindowScrollTop(o)},n=q.viewportWidth(o),r=q.viewportHeight(o)}else t=q.offset(e),n=q.outerWidth(e),r=q.outerHeight(e);return t.width=n,t.height=r,t};var $=function(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,i=e.height,a=e.left,u=e.top;return\"c\"===n?u+=i/2:\"b\"===n&&(u+=i),\"c\"===r?a+=o/2:\"r\"===r&&(a+=o),{left:a,top:u}};var J=function(e,t,n,r,o){var i=$(t,n[1]),a=$(e,n[0]),u=[a.left-i.left,a.top-i.top];return{left:e.left-u[0]+r[0]-o[0],top:e.top-u[1]+r[1]-o[1]}};function Q(e,t,n){return e.leftn.right}function Z(e,t,n){return e.topn.bottom}function ee(e,t,n){var r=[];return q.each(e,function(e){r.push(e.replace(t,function(e){return n[e]}))}),r}function te(e,t){return e[t]=-e[t],e}function ne(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function re(e,t){e[0]=ne(e[0],t.width),e[1]=ne(e[1],t.height)}var oe=function(e,t,n,r){var o=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],u=n.overflow,s=n.source||e;i=[].concat(i),a=[].concat(a),u=u||{};var l={},c=0,f=G(s),d=X(s);re(i,d),re(a,t);var p=J(d,t,o,i,a),h=q.merge(d,p);if(f&&(u.adjustX||u.adjustY)&&r){if(u.adjustX&&Q(p,d,f)){var v=ee(o,/[lr]/gi,{l:\"r\",r:\"l\"}),y=te(i,0),m=te(a,0);(function(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=t.right||n.top>=t.bottom}(r);return oe(e,o,n,i)}ie.__getOffsetParent=V,ie.__getVisibleRectForElement=G;var ae=ie,ue=Object.assign||function(e){for(var t=1;t=0&&r<=u+l&&o>=0&&o<=s+c,p=[n.points[0],\"cc\"];return oe(e,f,ue({},n,{points:p}),d)};n.d(t,\"alignElement\",function(){return ae}),n.d(t,\"alignPoint\",function(){return se});t.default=ae},function(e,t){e.exports=function(e){if(\"function\"!=typeof e)throw TypeError(e+\" is not a function!\");return e}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return\"Symbol(\".concat(void 0===e?\"\":e,\")_\",(++n+r).toString(36))}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(52);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(13).f,o=n(17),i=n(6)(\"toStringTag\");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t){var n,r,o=e.exports={};function i(){throw new Error(\"setTimeout has not been defined\")}function a(){throw new Error(\"clearTimeout has not been defined\")}function u(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n=\"function\"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r=\"function\"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var s,l=[],c=!1,f=-1;function d(){c&&s&&(c=!1,s.length?l=s.concat(l):f=-1,l.length&&p())}function p(){if(!c){var e=u(d);c=!0;for(var t=l.length;t;){for(s=l,l=[];++f1)for(var n=1;n0?o(r(e),9007199254740991):0}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(56)(\"keys\"),o=n(40);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(4),o=n(5),i=o[\"__core-js_shared__\"]||(o[\"__core-js_shared__\"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})(\"versions\",[]).push({version:r.version,mode:n(28)?\"pure\":\"global\",copyright:\"© 2019 Denis Pushkarev (zloirock.ru)\"})},function(e,t){e.exports=\"constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf\".split(\",\")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(41),o=n(39),i=n(18),a=n(51),u=n(17),s=n(86),l=Object.getOwnPropertyDescriptor;t.f=n(15)?l:function(e,t){if(e=i(e),t=a(t,!0),s)try{return l(e,t)}catch(e){}if(u(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(11),o=n(156),i=n(57),a=n(55)(\"IE_PROTO\"),u=function(){},s=function(){var e,t=n(50)(\"iframe\"),r=i.length;for(t.style.display=\"none\",n(91).appendChild(t),t.src=\"javascript:\",(e=t.contentWindow.document).open(),e.write(\"';\n domainInput = '';\n }\n return '\\n \\n \\n \\n \\n \\n ' + domainScript + '\\n \\n \\n \\n \\n ' + domainInput + '\\n \\n \\n \\n \\n ';\n };\n\n IframeUploader.prototype.initIframeSrc = function initIframeSrc() {\n if (this.domain) {\n this.getIframeNode().src = 'javascript:void((function(){\\n var d = document;\\n d.open();\\n d.domain=\\'' + this.domain + '\\';\\n d.write(\\'\\');\\n d.close();\\n })())';\n }\n };\n\n IframeUploader.prototype.initIframe = function initIframe() {\n var iframeNode = this.getIframeNode();\n var win = iframeNode.contentWindow;\n var doc = void 0;\n this.domain = this.domain || '';\n this.initIframeSrc();\n try {\n doc = win.document;\n } catch (e) {\n this.domain = document.domain;\n this.initIframeSrc();\n win = iframeNode.contentWindow;\n doc = win.document;\n }\n doc.open('text/html', 'replace');\n doc.write(this.getIframeHTML(this.domain));\n doc.close();\n this.getFormInputNode().onchange = this.onChange;\n };\n\n IframeUploader.prototype.endUpload = function endUpload() {\n if (this.state.uploading) {\n this.file = {};\n // hack avoid batch\n this.state.uploading = false;\n this.setState({\n uploading: false\n });\n this.initIframe();\n }\n };\n\n IframeUploader.prototype.startUpload = function startUpload() {\n if (!this.state.uploading) {\n this.state.uploading = true;\n this.setState({\n uploading: true\n });\n }\n };\n\n IframeUploader.prototype.updateIframeWH = function updateIframeWH() {\n var rootNode = _reactDom2[\"default\"].findDOMNode(this);\n var iframeNode = this.getIframeNode();\n iframeNode.style.height = rootNode.offsetHeight + 'px';\n iframeNode.style.width = rootNode.offsetWidth + 'px';\n };\n\n IframeUploader.prototype.abort = function abort(file) {\n if (file) {\n var uid = file;\n if (file && file.uid) {\n uid = file.uid;\n }\n if (uid === this.file.uid) {\n this.endUpload();\n }\n } else {\n this.endUpload();\n }\n };\n\n IframeUploader.prototype.post = function post(file) {\n var formNode = this.getFormNode();\n var dataSpan = this.getFormDataNode();\n var data = this.props.data;\n var onStart = this.props.onStart;\n\n if (typeof data === 'function') {\n data = data(file);\n }\n var inputs = [];\n for (var key in data) {\n if (data.hasOwnProperty(key)) {\n inputs.push('');\n }\n }\n dataSpan.innerHTML = inputs.join('');\n formNode.submit();\n dataSpan.innerHTML = '';\n onStart(file);\n };\n\n IframeUploader.prototype.render = function render() {\n var _classNames;\n\n var _props = this.props,\n Tag = _props.component,\n disabled = _props.disabled,\n className = _props.className,\n clsPrefix = _props.clsPrefix,\n children = _props.children,\n style = _props.style,\n name = _props.name,\n action = _props.action,\n headers = _props.headers,\n data = _props.data,\n type = _props.type,\n listType = _props.listType,\n fileList = _props.fileList,\n defaultFileList = _props.defaultFileList,\n size = _props.size,\n beforeUpload = _props.beforeUpload,\n showUploadList = _props.showUploadList,\n supportServerRender = _props.supportServerRender,\n onStart = _props.onStart,\n onSuccess = _props.onSuccess,\n multipart = _props.multipart,\n onReady = _props.onReady,\n customRequest = _props.customRequest,\n withCredentials = _props.withCredentials,\n onChange = _props.onChange,\n others = _objectWithoutProperties(_props, ['component', 'disabled', 'className', 'clsPrefix', 'children', 'style', 'name', 'action', 'headers', 'data', 'type', 'listType', 'fileList', 'defaultFileList', 'size', 'beforeUpload', 'showUploadList', 'supportServerRender', 'onStart', 'onSuccess', 'multipart', 'onReady', 'customRequest', 'withCredentials', 'onChange']);\n\n var iframeStyle = _extends({}, IFRAME_STYLE, {\n display: this.state.uploading || disabled ? 'none' : ''\n });\n var cls = (0, _classnames2[\"default\"])((_classNames = {}, _defineProperty(_classNames, clsPrefix, true), _defineProperty(_classNames, clsPrefix + '-disabled', disabled), _defineProperty(_classNames, className, className), _classNames));\n return _react2[\"default\"].createElement(\n Tag,\n _extends({\n className: cls,\n style: _extends({ position: 'relative', zIndex: 0 }, style)\n }, others),\n _react2[\"default\"].createElement('iframe', {\n ref: 'iframe',\n onLoad: this.onLoad,\n style: iframeStyle\n }),\n children\n );\n };\n\n return IframeUploader;\n}(_react.Component);\n\n;\nIframeUploader.propTypes = propTypes;\nexports[\"default\"] = IframeUploader;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1031 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright 2014-2015, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n\n\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar warning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n warning = function(condition, format, args) {\n var len = arguments.length;\n args = new Array(len > 2 ? len - 2 : 0);\n for (var key = 2; key < len; key++) {\n args[key - 2] = arguments[key];\n }\n if (format === undefined) {\n throw new Error(\n '`warning(condition, format, ...args)` requires a warning ' +\n 'message argument'\n );\n }\n\n if (format.length < 10 || (/^[s\\W]*$/).test(format)) {\n throw new Error(\n 'The warning format should be able to uniquely identify this ' +\n 'warning. Please, use a more descriptive format than: ' + format\n );\n }\n\n if (!condition) {\n var argIndex = 0;\n var message = 'Warning: ' +\n format.replace(/%s/g, function() {\n return args[argIndex++];\n });\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch(x) {}\n }\n };\n}\n\nmodule.exports = warning;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5)))\n\n/***/ }),\n/* 1032 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _beeAnimate = __webpack_require__(57);\n\nvar _beeAnimate2 = _interopRequireDefault(_beeAnimate);\n\nvar _beeIcon = __webpack_require__(13);\n\nvar _beeIcon2 = _interopRequireDefault(_beeIcon);\n\nvar _beeProgressBar = __webpack_require__(1033);\n\nvar _beeProgressBar2 = _interopRequireDefault(_beeProgressBar);\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\n//import { UploadListProps } from './interface';\n\n// https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsDataURL\nvar previewFile = function previewFile(file, callback) {\n var reader = new FileReader();\n reader.onloadend = function () {\n return callback(reader.result);\n };\n reader.readAsDataURL(file);\n};\n\nvar propTypes = {\n listType: _propTypes2[\"default\"].oneOf(['text', 'picture', 'picture-card']),\n onPreview: _propTypes2[\"default\"].func,\n onRemove: _propTypes2[\"default\"].func,\n items: _propTypes2[\"default\"].array,\n progressAttr: _propTypes2[\"default\"].object,\n clsPrefix: _propTypes2[\"default\"].string\n};\n\nvar defaultProps = {\n listType: 'text', // or picture\n progressAttr: {\n strokeWidth: 3,\n showInfo: false\n },\n clsPrefix: 'u-upload',\n showRemoveIcon: true,\n showPreviewIcon: true\n};\n\nvar UploadList = function (_Component) {\n _inherits(UploadList, _Component);\n\n function UploadList() {\n var _temp, _this, _ret;\n\n _classCallCheck(this, UploadList);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.handleClose = function (file) {\n var onRemove = _this.props.onRemove;\n if (onRemove) {\n onRemove(file);\n }\n }, _this.handlePreview = function (file, e) {\n var onPreview = _this.props.onPreview;\n\n if (!onPreview) {\n return;\n }\n e.preventDefault();\n return onPreview(file);\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n UploadList.prototype.componentDidUpdate = function componentDidUpdate() {\n var _this2 = this;\n\n if (this.props.listType !== 'picture' && this.props.listType !== 'picture-card') {\n return;\n }\n (this.props.items || []).forEach(function (file) {\n if (typeof document === 'undefined' || typeof window === 'undefined' ||\n //!(window as any).FileReader || !(window as any).File ||\n !window.FileReader || !window.File || !(file.originFileObj instanceof File) || file.thumbUrl !== undefined) {\n return;\n }\n /*eslint-disable */\n file.thumbUrl = '';\n /*eslint-enable */\n previewFile(file.originFileObj, function (previewDataUrl) {\n /*eslint-disable */\n file.thumbUrl = previewDataUrl;\n /*eslint-enable */\n _this2.forceUpdate();\n });\n });\n };\n\n UploadList.prototype.render = function render() {\n var _this3 = this,\n _classNames2;\n\n var _props = this.props,\n clsPrefix = _props.clsPrefix,\n _props$items = _props.items,\n items = _props$items === undefined ? [] : _props$items,\n listType = _props.listType,\n showRemoveIcon = _props.showRemoveIcon,\n showPreviewIcon = _props.showPreviewIcon;\n\n var list = items.map(function (file) {\n var _classNames;\n\n var progress = void 0;\n var icon = _react2[\"default\"].createElement(_beeIcon2[\"default\"], { type: 'uf-link' });\n\n if (listType === 'picture' || listType === 'picture-card') {\n if (file.status === 'uploading' || !file.thumbUrl && !file.url) {\n if (listType === 'picture-card') {\n icon = _react2[\"default\"].createElement(\n 'div',\n { className: clsPrefix + '-list-item-uploading-text' },\n '\\u6587\\u4EF6\\u4E0A\\u4F20\\u4E2D'\n );\n } else {\n icon = _react2[\"default\"].createElement(_beeIcon2[\"default\"], { className: clsPrefix + '-list-item-thumbnail', type: 'picture' });\n }\n } else {\n icon = _react2[\"default\"].createElement(\n 'a',\n {\n className: clsPrefix + '-list-item-thumbnail',\n onClick: function onClick(e) {\n return _this3.handlePreview(file, e);\n },\n href: file.url || file.thumbUrl,\n target: '_blank',\n rel: 'noopener noreferrer'\n },\n _react2[\"default\"].createElement('img', { src: file.url || file.thumbUrl, alt: file.name })\n );\n }\n }\n\n if (file.status === 'uploading') {\n progress = _react2[\"default\"].createElement(_beeProgressBar2[\"default\"], { colors: 'success', size: 'sm', now: file.percent });\n }\n var infoUploadingClass = (0, _classnames2[\"default\"])((_classNames = {}, _defineProperty(_classNames, clsPrefix + '-list-item', true), _defineProperty(_classNames, clsPrefix + '-list-item-' + file.status, true), _classNames));\n var preview = file.url ? _react2[\"default\"].createElement(\n 'a',\n {\n href: file.url,\n target: '_blank',\n rel: 'noopener noreferrer',\n className: clsPrefix + '-list-item-name',\n onClick: function onClick(e) {\n return _this3.handlePreview(file, e);\n }\n },\n file.name\n ) : _react2[\"default\"].createElement(\n 'span',\n {\n className: clsPrefix + '-list-item-name',\n onClick: function onClick(e) {\n return _this3.handlePreview(file, e);\n }\n },\n file.name\n );\n var style = file.url || file.thumbUrl ? undefined : {\n pointerEvents: 'none',\n opacity: 0.5\n };\n var previewIcon = showPreviewIcon ? _react2[\"default\"].createElement(\n 'a',\n {\n href: file.url || file.thumbUrl,\n target: '_blank',\n rel: 'noopener noreferrer',\n style: style,\n onClick: function onClick(e) {\n return _this3.handlePreview(file, e);\n }\n },\n _react2[\"default\"].createElement(_beeIcon2[\"default\"], { type: 'uf-eye-o' })\n ) : null;\n var removeIcon = showRemoveIcon ? _react2[\"default\"].createElement(_beeIcon2[\"default\"], { type: 'uf-del', title: '\\u79FB\\u9664\\u6587\\u4EF6', onClick: function onClick() {\n return _this3.handleClose(file);\n } }) : null;\n var removeIconClose = showRemoveIcon ? _react2[\"default\"].createElement(_beeIcon2[\"default\"], { type: 'uf-close', title: '\\u79FB\\u9664\\u6587\\u4EF6', onClick: function onClick() {\n return _this3.handleClose(file);\n } }) : null;\n var actions = listType === 'picture-card' && file.status !== 'uploading' ? _react2[\"default\"].createElement(\n 'span',\n { className: clsPrefix + '-list-item-actions' },\n previewIcon,\n removeIcon\n ) : removeIconClose;\n\n return _react2[\"default\"].createElement(\n 'div',\n { className: infoUploadingClass, key: file.uid },\n _react2[\"default\"].createElement(\n 'div',\n { className: clsPrefix + '-list-item-info' },\n icon,\n preview,\n actions\n ),\n progress\n );\n });\n var listClassNames = (0, _classnames2[\"default\"])((_classNames2 = {}, _defineProperty(_classNames2, clsPrefix + '-list', true), _defineProperty(_classNames2, clsPrefix + '-list-' + listType, true), _classNames2));\n return _react2[\"default\"].createElement(\n _beeAnimate2[\"default\"],\n {\n transitionName: clsPrefix + '-margin-top',\n component: 'div',\n className: listClassNames\n },\n list\n );\n };\n\n return UploadList;\n}(_react.Component);\n\nUploadList.propTypes = propTypes;\nUploadList.defaultProps = defaultProps;\nexports[\"default\"] = UploadList;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1033 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _ProgressBar = __webpack_require__(1034);\n\nvar _ProgressBar2 = _interopRequireDefault(_ProgressBar);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nexports[\"default\"] = _ProgressBar2[\"default\"];\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1034 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _nprogress = __webpack_require__(266);\n\nvar _nprogress2 = _interopRequireDefault(_nprogress);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar ROUND_PRECISION = 1000;\n\n/**\n * 自定义验证children是的实例.\n * @props 实例后的propTypes\n * @propName 本身propTypes的属性名 即 children\n * @componentName 实例后的children名 期望是ProgressBar\n */\nfunction onlyProgressBar(props, propName, componentName) {\n var children = props[propName];\n if (!children) {\n return null;\n }\n\n var error = null;\n\n _react2[\"default\"].Children.forEach(children, function (child) {\n if (error) {\n return;\n }\n\n if (child.type === ProgressBar) {\n // eslint-disable-line no-use-before-define\n return;\n }\n\n var childIdentifier = _react2[\"default\"].isValidElement(child) ? child.type.displayName || child.type.name || child.type : child;\n error = new Error('Children of ' + componentName + ' can contain only ProgressBar ' + ('components. Found ' + childIdentifier + '.'));\n });\n\n return error;\n}\n\nvar propTypes = {\n /**\n * 最小数值\n */\n min: _propTypes2[\"default\"].number,\n /**\n * 有效数值\n */\n now: _propTypes2[\"default\"].number,\n /**\n * 最大数值\n */\n max: _propTypes2[\"default\"].number,\n /**\n * 文字描述标签\n */\n label: _propTypes2[\"default\"].node,\n /**\n * 文字描述标签显示\n */\n srOnly: _propTypes2[\"default\"].bool,\n /**\n * 条纹样式\n */\n striped: _propTypes2[\"default\"].bool,\n /**\n * 激活状态\n */\n active: _propTypes2[\"default\"].bool,\n /**\n * 大小\n */\n size: _propTypes2[\"default\"].oneOf(['xs', 'sm']),\n /**\n * labelPosition\n */\n labelPosition: _propTypes2[\"default\"].oneOf(['right', 'left', 'center']),\n /**\n * 子组件 必须是ProgressBar\n */\n children: onlyProgressBar,\n /**\n * 子组件 必须是ProgressBar\n */\n style: _propTypes2[\"default\"].object,\n\n /**\n * @private\n */\n isChild: _propTypes2[\"default\"].bool\n};\n\nvar defaultProps = {\n min: 0,\n max: 100,\n active: false,\n isChild: false,\n srOnly: false,\n striped: false,\n labelPosition: 'center',\n clsPrefix: 'u-progress'\n};\n\n/**\n * 计算实际显示比例 \n * @now 显示的总数值\n * @min 最小数值\n * @max 最大数值\n */\nfunction getPercentage(now, min, max) {\n var percentage = (now - min) / (max - min) * 100;\n return Math.round(percentage * ROUND_PRECISION) / ROUND_PRECISION;\n}\n\nvar ProgressBar = function (_React$Component) {\n _inherits(ProgressBar, _React$Component);\n\n function ProgressBar(props) {\n _classCallCheck(this, ProgressBar);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));\n\n _this.state = {\n now: _this.props.now,\n max: _this.props.max,\n min: _this.props.min,\n active: _this.props.active\n };\n\n return _this;\n }\n\n ProgressBar.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n this.setState({\n now: nextProps.now,\n max: nextProps.max,\n min: nextProps.min,\n active: nextProps.active\n });\n };\n\n ProgressBar.prototype.renderProgressBar = function renderProgressBar(_ref) {\n var min = _ref.min,\n now = _ref.now,\n max = _ref.max,\n label = _ref.label,\n srOnly = _ref.srOnly,\n striped = _ref.striped,\n active = _ref.active,\n colors = _ref.colors,\n labelPosition = _ref.labelPosition,\n className = _ref.className,\n style = _ref.style,\n clsPrefix = _ref.clsPrefix,\n others = _objectWithoutProperties(_ref, ['min', 'now', 'max', 'label', 'srOnly', 'striped', 'active', 'colors', 'labelPosition', 'className', 'style', 'clsPrefix']);\n\n var childClsPrefix = clsPrefix + '-bar';\n var classes = {\n active: active\n };\n if (active || striped) {\n classes[childClsPrefix + '-striped'] = true;\n }\n if (colors) {\n classes[childClsPrefix + '-' + colors] = true;\n }\n\n var classNames = (0, _classnames2[\"default\"])(childClsPrefix, classes);\n\n //返回不敢wrapper的progressbar\n return _react2[\"default\"].createElement(\n 'div',\n _extends({}, others, {\n role: 'progressbar',\n className: (0, _classnames2[\"default\"])(className, classNames),\n style: _extends({ width: getPercentage(now, min, max) + '%' }, style)\n }),\n _react2[\"default\"].createElement(\n 'span',\n { className: 'u-progress-label' },\n srOnly ? _react2[\"default\"].createElement(\n 'span',\n { className: 'sr-only' },\n label\n ) : label\n )\n );\n };\n\n ProgressBar.prototype.render = function render() {\n //先处理以组ProgressBar形式使用情况\n var _props = this.props,\n isChild = _props.isChild,\n props = _objectWithoutProperties(_props, ['isChild']);\n\n // 判断isChild是否为true,如果是true,直接渲染成bar\n\n\n if (isChild) {\n return this.renderProgressBar(props);\n }\n\n var label = props.label,\n srOnly = props.srOnly,\n striped = props.striped,\n colors = props.colors,\n className = props.className,\n style = props.style,\n min = props.min,\n max = props.max,\n now = props.now,\n active = props.active,\n size = props.size,\n labelPosition = props.labelPosition,\n children = props.children,\n clsPrefix = props.clsPrefix,\n wrapperProps = _objectWithoutProperties(props, ['label', 'srOnly', 'striped', 'colors', 'className', 'style', 'min', 'max', 'now', 'active', 'size', 'labelPosition', 'children', 'clsPrefix']);\n\n /**\n * 如果是单独直接用 走children判断为false语句。\n * 如果以组的形式使用 走判断语句为true,\n * 将children分别加上isChild=true的属性\n */\n\n\n return _react2[\"default\"].createElement(\n 'div',\n _extends({}, wrapperProps, {\n className: (0, _classnames2[\"default\"])(className, clsPrefix, size)\n }),\n children ? _react2[\"default\"].Children.map(children, function (child) {\n return (0, _react.cloneElement)(child, { isChild: true });\n }) : this.renderProgressBar(_extends({\n min: min, now: now, max: max, label: label, srOnly: srOnly, striped: striped, active: active, colors: colors, labelPosition: labelPosition, className: className, style: style, clsPrefix: clsPrefix }, wrapperProps))\n );\n };\n\n return ProgressBar;\n}(_react2[\"default\"].Component);\n\nProgressBar.propTypes = propTypes;\nProgressBar.defaultProps = defaultProps;\n_extends(ProgressBar, _nprogress2[\"default\"]);\n\nexports[\"default\"] = ProgressBar;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1035 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = getFileItem;\n/**\n* This source code is quoted from rc-upload.\n* homepage: https://github.com/react-component/upload\n*/\nfunction getFileItem(file, fileList) {\n var matchWay = !file.uid ? 'byName' : 'byUid';\n var target = fileList.filter(function (item) {\n if (matchWay === 'byName') {\n return item.name === file.name;\n }\n return item.uid === file.uid;\n })[0];\n return target;\n}\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1036 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = filterEvents;\n\nvar _contains = __webpack_require__(27);\n\nvar _contains2 = _interopRequireDefault(_contains);\n\nvar _querySelectorAll = __webpack_require__(1037);\n\nvar _querySelectorAll2 = _interopRequireDefault(_querySelectorAll);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction filterEvents(selector, handler) {\n return function filterHandler(e) {\n var top = e.currentTarget,\n target = e.target,\n matches = (0, _querySelectorAll2.default)(top, selector);\n\n if (matches.some(function (match) {\n return (0, _contains2.default)(match, target);\n })) handler.call(this, e);\n };\n}\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1037 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = qsa;\n// Zepto.js\n// (c) 2010-2015 Thomas Fuchs\n// Zepto.js may be freely distributed under the MIT license.\nvar simpleSelectorRE = /^[\\w-]*$/;\nvar toArray = Function.prototype.bind.call(Function.prototype.call, [].slice);\n\nfunction qsa(element, selector) {\n var maybeID = selector[0] === '#',\n maybeClass = selector[0] === '.',\n nameOnly = maybeID || maybeClass ? selector.slice(1) : selector,\n isSimple = simpleSelectorRE.test(nameOnly),\n found;\n\n if (isSimple) {\n if (maybeID) {\n element = element.getElementById ? element : document;\n return (found = element.getElementById(nameOnly)) ? [found] : [];\n }\n\n if (element.getElementsByClassName && maybeClass) return toArray(element.getElementsByClassName(nameOnly));\n\n return toArray(element.getElementsByTagName(selector));\n }\n\n return toArray(element.querySelectorAll(selector));\n}\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1038 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _inDOM = __webpack_require__(26);\n\nvar _inDOM2 = _interopRequireDefault(_inDOM);\n\nvar _on = __webpack_require__(17);\n\nvar _on2 = _interopRequireDefault(_on);\n\nvar _off = __webpack_require__(49);\n\nvar _off2 = _interopRequireDefault(_off);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar listen = function listen() {};\n\nif (_inDOM2.default) {\n listen = function listen(node, eventName, handler, capture) {\n (0, _on2.default)(node, eventName, handler, capture);\n return function () {\n (0, _off2.default)(node, eventName, handler, capture);\n };\n };\n}\n\nexports.default = listen;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1039 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = all;\n\nvar _createChainableTypeChecker = __webpack_require__(164);\n\nvar _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction all() {\n for (var _len = arguments.length, validators = Array(_len), _key = 0; _key < _len; _key++) {\n validators[_key] = arguments[_key];\n }\n\n function allPropTypes() {\n for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n var error = null;\n\n validators.forEach(function (validator) {\n if (error != null) {\n return;\n }\n\n var result = validator.apply(undefined, args);\n if (result != null) {\n error = result;\n }\n });\n\n return error;\n }\n\n return (0, _createChainableTypeChecker2.default)(allPropTypes);\n} /**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\n\n/***/ }),\n/* 1040 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; /**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\n\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _createChainableTypeChecker = __webpack_require__(164);\n\nvar _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = typeof propValue === 'undefined' ? 'undefined' : _typeof(propValue);\n\n if (_react2.default.isValidElement(propValue)) {\n return new Error('Invalid ' + location + ' `' + propFullName + '` of type ReactElement ' + ('supplied to `' + componentName + '`, expected a ReactComponent or a ') + 'DOMElement. You can usually obtain a ReactComponent or DOMElement ' + 'from a ReactElement by attaching a ref to it.');\n }\n\n if ((propType !== 'object' || typeof propValue.render !== 'function') && propValue.nodeType !== 1) {\n return new Error('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected a ReactComponent or a ') + 'DOMElement.');\n }\n\n return null;\n}\n\nexports.default = (0, _createChainableTypeChecker2.default)(validate);\n\n/***/ }),\n/* 1041 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = deprecated;\n\nvar _warning = __webpack_require__(11);\n\nvar _warning2 = _interopRequireDefault(_warning);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar warned = {}; /**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nfunction deprecated(validator, reason) {\n return function validate(props, propName, componentName, location, propFullName) {\n var componentNameSafe = componentName || '<>';\n var propFullNameSafe = propFullName || propName;\n\n if (props[propName] != null) {\n var messageKey = componentName + '.' + propName;\n\n (0, _warning2.default)(warned[messageKey], 'The ' + location + ' `' + propFullNameSafe + '` of ' + ('`' + componentNameSafe + '` is deprecated. ' + reason + '.'));\n\n warned[messageKey] = true;\n }\n\n for (var _len = arguments.length, args = Array(_len > 5 ? _len - 5 : 0), _key = 5; _key < _len; _key++) {\n args[_key - 5] = arguments[_key];\n }\n\n return validator.apply(undefined, [props, propName, componentName, location, propFullName].concat(args));\n };\n}\n\n/* eslint-disable no-underscore-dangle */\nfunction _resetWarned() {\n warned = {};\n}\n\ndeprecated._resetWarned = _resetWarned;\n/* eslint-enable no-underscore-dangle */\n\n/***/ }),\n/* 1042 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; /**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\n\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _createChainableTypeChecker = __webpack_require__(164);\n\nvar _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction elementType(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = typeof propValue === 'undefined' ? 'undefined' : _typeof(propValue);\n\n if (_react2.default.isValidElement(propValue)) {\n return new Error('Invalid ' + location + ' `' + propFullName + '` of type ReactElement ' + ('supplied to `' + componentName + '`, expected an element type (a string ') + 'or a ReactClass).');\n }\n\n if (propType !== 'function' && propType !== 'string') {\n return new Error('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected an element type (a string ') + 'or a ReactClass).');\n }\n\n return null;\n}\n\nexports.default = (0, _createChainableTypeChecker2.default)(elementType);\n\n/***/ }),\n/* 1043 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = isRequiredForA11y;\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nfunction isRequiredForA11y(validator) {\n return function validate(props, propName, componentName, location, propFullName) {\n var componentNameSafe = componentName || '<>';\n var propFullNameSafe = propFullName || propName;\n\n if (props[propName] == null) {\n return new Error('The ' + location + ' `' + propFullNameSafe + '` is required to make ' + ('`' + componentNameSafe + '` accessible for users of assistive ') + 'technologies such as screen readers.');\n }\n\n for (var _len = arguments.length, args = Array(_len > 5 ? _len - 5 : 0), _key = 5; _key < _len; _key++) {\n args[_key - 5] = arguments[_key];\n }\n\n return validator.apply(undefined, [props, propName, componentName, location, propFullName].concat(args));\n };\n}\n\n/***/ }),\n/* 1044 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = splitComponentProps;\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nfunction _objectEntries(obj) {\n var entries = [];\n var keys = Object.keys(obj);\n\n for (var k = 0; k < keys.length; ++k) {\n entries.push([keys[k], obj[keys[k]]]);\n }return entries;\n}\n\n/**\n * 分割要传入父元素和子元素的props\n * @param {[object]} props 传入的属性\n * @param {[reactElement]} Component 组件\n * @return {[array]} 返回数组,第一个元素为父元素props对象,第二个子元素props对象\n */\nfunction splitComponentProps(props, Component) {\n var componentPropTypes = Component.propTypes;\n\n var parentProps = {};\n var childProps = {};\n\n _objectEntries(props).forEach(function (_ref) {\n var propName = _ref[0],\n propValue = _ref[1];\n\n if (componentPropTypes[propName]) {\n parentProps[propName] = propValue;\n } else {\n childProps[propName] = propValue;\n }\n });\n\n return [parentProps, childProps];\n}\n\n/***/ }),\n/* 1045 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nfunction createChainedFunction() {\n for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) {\n funcs[_key] = arguments[_key];\n }\n\n return funcs.filter(function (f) {\n return f != null;\n }).reduce(function (acc, f) {\n if (typeof f !== 'function') {\n throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.');\n }\n\n if (acc === null) {\n return f;\n }\n\n return function chainedFunction() {\n for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n acc.apply(this, args);\n f.apply(this, args);\n };\n }, null);\n}\nexports.default = createChainedFunction;\n\n/***/ }),\n/* 1046 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\n\n\n/**\n * @ignore\n * some key-codes definition and utils from closure-library\n * @author yiminghe@gmail.com\n */\n\nvar KeyCode = {\n /**\n * MAC_ENTER\n */\n MAC_ENTER: 3,\n /**\n * BACKSPACE\n */\n BACKSPACE: 8,\n /**\n * TAB\n */\n TAB: 9,\n /**\n * NUMLOCK on FF/Safari Mac\n */\n NUM_CENTER: 12, // NUMLOCK on FF/Safari Mac\n /**\n * ENTER\n */\n ENTER: 13,\n /**\n * SHIFT\n */\n SHIFT: 16,\n /**\n * CTRL\n */\n CTRL: 17,\n /**\n * ALT\n */\n ALT: 18,\n /**\n * PAUSE\n */\n PAUSE: 19,\n /**\n * CAPS_LOCK\n */\n CAPS_LOCK: 20,\n /**\n * ESC\n */\n ESC: 27,\n /**\n * SPACE\n */\n SPACE: 32,\n /**\n * PAGE_UP\n */\n PAGE_UP: 33, // also NUM_NORTH_EAST\n /**\n * PAGE_DOWN\n */\n PAGE_DOWN: 34, // also NUM_SOUTH_EAST\n /**\n * END\n */\n END: 35, // also NUM_SOUTH_WEST\n /**\n * HOME\n */\n HOME: 36, // also NUM_NORTH_WEST\n /**\n * LEFT\n */\n LEFT: 37, // also NUM_WEST\n /**\n * UP\n */\n UP: 38, // also NUM_NORTH\n /**\n * RIGHT\n */\n RIGHT: 39, // also NUM_EAST\n /**\n * DOWN\n */\n DOWN: 40, // also NUM_SOUTH\n /**\n * PRINT_SCREEN\n */\n PRINT_SCREEN: 44,\n /**\n * INSERT\n */\n INSERT: 45, // also NUM_INSERT\n /**\n * DELETE\n */\n DELETE: 46, // also NUM_DELETE\n /**\n * ZERO\n */\n ZERO: 48,\n /**\n * ONE\n */\n ONE: 49,\n /**\n * TWO\n */\n TWO: 50,\n /**\n * THREE\n */\n THREE: 51,\n /**\n * FOUR\n */\n FOUR: 52,\n /**\n * FIVE\n */\n FIVE: 53,\n /**\n * SIX\n */\n SIX: 54,\n /**\n * SEVEN\n */\n SEVEN: 55,\n /**\n * EIGHT\n */\n EIGHT: 56,\n /**\n * NINE\n */\n NINE: 57,\n /**\n * QUESTION_MARK\n */\n QUESTION_MARK: 63, // needs localization\n /**\n * A\n */\n A: 65,\n /**\n * B\n */\n B: 66,\n /**\n * C\n */\n C: 67,\n /**\n * D\n */\n D: 68,\n /**\n * E\n */\n E: 69,\n /**\n * F\n */\n F: 70,\n /**\n * G\n */\n G: 71,\n /**\n * H\n */\n H: 72,\n /**\n * I\n */\n I: 73,\n /**\n * J\n */\n J: 74,\n /**\n * K\n */\n K: 75,\n /**\n * L\n */\n L: 76,\n /**\n * M\n */\n M: 77,\n /**\n * N\n */\n N: 78,\n /**\n * O\n */\n O: 79,\n /**\n * P\n */\n P: 80,\n /**\n * Q\n */\n Q: 81,\n /**\n * R\n */\n R: 82,\n /**\n * S\n */\n S: 83,\n /**\n * T\n */\n T: 84,\n /**\n * U\n */\n U: 85,\n /**\n * V\n */\n V: 86,\n /**\n * W\n */\n W: 87,\n /**\n * X\n */\n X: 88,\n /**\n * Y\n */\n Y: 89,\n /**\n * Z\n */\n Z: 90,\n /**\n * META\n */\n META: 91, // WIN_KEY_LEFT\n /**\n * WIN_KEY_RIGHT\n */\n WIN_KEY_RIGHT: 92,\n /**\n * CONTEXT_MENU\n */\n CONTEXT_MENU: 93,\n /**\n * NUM_ZERO\n */\n NUM_ZERO: 96,\n /**\n * NUM_ONE\n */\n NUM_ONE: 97,\n /**\n * NUM_TWO\n */\n NUM_TWO: 98,\n /**\n * NUM_THREE\n */\n NUM_THREE: 99,\n /**\n * NUM_FOUR\n */\n NUM_FOUR: 100,\n /**\n * NUM_FIVE\n */\n NUM_FIVE: 101,\n /**\n * NUM_SIX\n */\n NUM_SIX: 102,\n /**\n * NUM_SEVEN\n */\n NUM_SEVEN: 103,\n /**\n * NUM_EIGHT\n */\n NUM_EIGHT: 104,\n /**\n * NUM_NINE\n */\n NUM_NINE: 105,\n /**\n * NUM_MULTIPLY\n */\n NUM_MULTIPLY: 106,\n /**\n * NUM_PLUS\n */\n NUM_PLUS: 107,\n /**\n * NUM_MINUS\n */\n NUM_MINUS: 109,\n /**\n * NUM_PERIOD\n */\n NUM_PERIOD: 110,\n /**\n * NUM_DIVISION\n */\n NUM_DIVISION: 111,\n /**\n * F1\n */\n F1: 112,\n /**\n * F2\n */\n F2: 113,\n /**\n * F3\n */\n F3: 114,\n /**\n * F4\n */\n F4: 115,\n /**\n * F5\n */\n F5: 116,\n /**\n * F6\n */\n F6: 117,\n /**\n * F7\n */\n F7: 118,\n /**\n * F8\n */\n F8: 119,\n /**\n * F9\n */\n F9: 120,\n /**\n * F10\n */\n F10: 121,\n /**\n * F11\n */\n F11: 122,\n /**\n * F12\n */\n F12: 123,\n /**\n * NUMLOCK\n */\n NUMLOCK: 144,\n /**\n * SEMICOLON\n */\n SEMICOLON: 186, // needs localization\n /**\n * DASH\n */\n DASH: 189, // needs localization\n /**\n * EQUALS\n */\n EQUALS: 187, // needs localization\n /**\n * COMMA\n */\n COMMA: 188, // needs localization\n /**\n * PERIOD\n */\n PERIOD: 190, // needs localization\n /**\n * SLASH\n */\n SLASH: 191, // needs localization\n /**\n * APOSTROPHE\n */\n APOSTROPHE: 192, // needs localization\n /**\n * SINGLE_QUOTE\n */\n SINGLE_QUOTE: 222, // needs localization\n /**\n * OPEN_SQUARE_BRACKET\n */\n OPEN_SQUARE_BRACKET: 219, // needs localization\n /**\n * BACKSLASH\n */\n BACKSLASH: 220, // needs localization\n /**\n * CLOSE_SQUARE_BRACKET\n */\n CLOSE_SQUARE_BRACKET: 221, // needs localization\n /**\n * WIN_KEY\n */\n WIN_KEY: 224,\n /**\n * MAC_FF_META\n */\n MAC_FF_META: 224, // Firefox (Gecko) fires this for the meta key instead of 91\n /**\n * WIN_IME\n */\n WIN_IME: 229\n};\n\n/*\n whether text and modified key is entered at the same time.\n */\nKeyCode.isTextModifyingKeyEvent = function isTextModifyingKeyEvent(e) {\n var keyCode = e.keyCode;\n if (e.altKey && !e.ctrlKey || e.metaKey ||\n // Function keys don't generate text\n keyCode >= KeyCode.F1 && keyCode <= KeyCode.F12) {\n return false;\n }\n\n // The following keys are quite harmless, even in combination with\n // CTRL, ALT or SHIFT.\n switch (keyCode) {\n case KeyCode.ALT:\n case KeyCode.CAPS_LOCK:\n case KeyCode.CONTEXT_MENU:\n case KeyCode.CTRL:\n case KeyCode.DOWN:\n case KeyCode.END:\n case KeyCode.ESC:\n case KeyCode.HOME:\n case KeyCode.INSERT:\n case KeyCode.LEFT:\n case KeyCode.MAC_FF_META:\n case KeyCode.META:\n case KeyCode.NUMLOCK:\n case KeyCode.NUM_CENTER:\n case KeyCode.PAGE_DOWN:\n case KeyCode.PAGE_UP:\n case KeyCode.PAUSE:\n case KeyCode.PRINT_SCREEN:\n case KeyCode.RIGHT:\n case KeyCode.SHIFT:\n case KeyCode.UP:\n case KeyCode.WIN_KEY:\n case KeyCode.WIN_KEY_RIGHT:\n return false;\n default:\n return true;\n }\n};\n\n/*\n whether character is entered.\n */\nKeyCode.isCharacterKey = function isCharacterKey(keyCode) {\n if (keyCode >= KeyCode.ZERO && keyCode <= KeyCode.NINE) {\n return true;\n }\n\n if (keyCode >= KeyCode.NUM_ZERO && keyCode <= KeyCode.NUM_MULTIPLY) {\n return true;\n }\n\n if (keyCode >= KeyCode.A && keyCode <= KeyCode.Z) {\n return true;\n }\n\n // Safari sends zero key code for non-latin characters.\n if (window.navigation.userAgent.indexOf('WebKit') !== -1 && keyCode === 0) {\n return true;\n }\n\n switch (keyCode) {\n case KeyCode.SPACE:\n case KeyCode.QUESTION_MARK:\n case KeyCode.NUM_PLUS:\n case KeyCode.NUM_MINUS:\n case KeyCode.NUM_PERIOD:\n case KeyCode.NUM_DIVISION:\n case KeyCode.SEMICOLON:\n case KeyCode.DASH:\n case KeyCode.EQUALS:\n case KeyCode.COMMA:\n case KeyCode.PERIOD:\n case KeyCode.SLASH:\n case KeyCode.APOSTROPHE:\n case KeyCode.SINGLE_QUOTE:\n case KeyCode.OPEN_SQUARE_BRACKET:\n case KeyCode.BACKSLASH:\n case KeyCode.CLOSE_SQUARE_BRACKET:\n return true;\n default:\n return false;\n }\n};\n\nmodule.exports = KeyCode;\n\n/***/ }),\n/* 1047 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = contains;\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nfunction contains(root, n) {\n var node = n;\n while (node) {\n if (node === root) {\n return true;\n }\n node = node.parentNode;\n }\n\n return false;\n}\n\n/***/ }),\n/* 1048 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; /**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\n\n\nvar _Event = __webpack_require__(1049);\n\nvar _Event2 = _interopRequireDefault(_Event);\n\nvar _componentClasses = __webpack_require__(15);\n\nvar _componentClasses2 = _interopRequireDefault(_componentClasses);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar isCssAnimationSupported = _Event2.default.endEvents.length !== 0;\n\n\nvar capitalPrefixes = ['Webkit', 'Moz', 'O',\n// ms is special .... !\n'ms'];\nvar prefixes = ['-webkit-', '-moz-', '-o-', 'ms-', ''];\n\nfunction getStyleProperty(node, name) {\n var style = window.getComputedStyle(node);\n\n var ret = '';\n for (var i = 0; i < prefixes.length; i++) {\n ret = style.getPropertyValue(prefixes[i] + name);\n if (ret) {\n break;\n }\n }\n return ret;\n}\n\nfunction fixBrowserByTimeout(node) {\n if (isCssAnimationSupported) {\n var transitionDelay = parseFloat(getStyleProperty(node, 'transition-delay')) || 0;\n var transitionDuration = parseFloat(getStyleProperty(node, 'transition-duration')) || 0;\n var animationDelay = parseFloat(getStyleProperty(node, 'animation-delay')) || 0;\n var animationDuration = parseFloat(getStyleProperty(node, 'animation-duration')) || 0;\n var time = Math.max(transitionDuration + transitionDelay, animationDuration + animationDelay);\n // sometimes, browser bug\n node.rcEndAnimTimeout = setTimeout(function () {\n node.rcEndAnimTimeout = null;\n if (node.rcEndListener) {\n node.rcEndListener();\n }\n }, time * 1000 + 200);\n }\n}\n\nfunction clearBrowserBugTimeout(node) {\n if (node.rcEndAnimTimeout) {\n clearTimeout(node.rcEndAnimTimeout);\n node.rcEndAnimTimeout = null;\n }\n}\n\nvar cssAnimation = function cssAnimation(node, transitionName, endCallback) {\n var nameIsObj = (typeof transitionName === 'undefined' ? 'undefined' : _typeof(transitionName)) === 'object';\n var className = nameIsObj ? transitionName.name : transitionName;\n var activeClassName = nameIsObj ? transitionName.active : transitionName + '-active';\n var end = endCallback;\n var start = void 0;\n var active = void 0;\n var nodeClasses = (0, _componentClasses2.default)(node);\n\n if (endCallback && Object.prototype.toString.call(endCallback) === '[object Object]') {\n end = endCallback.end;\n start = endCallback.start;\n active = endCallback.active;\n }\n\n if (node.rcEndListener) {\n node.rcEndListener();\n }\n\n node.rcEndListener = function (e) {\n if (e && e.target !== node) {\n return;\n }\n\n if (node.rcAnimTimeout) {\n clearTimeout(node.rcAnimTimeout);\n node.rcAnimTimeout = null;\n }\n\n clearBrowserBugTimeout(node);\n\n nodeClasses.remove(className);\n nodeClasses.remove(activeClassName);\n\n _Event2.default.removeEndEventListener(node, node.rcEndListener);\n node.rcEndListener = null;\n\n // Usually this optional end is used for informing an owner of\n // a leave animation and telling it to remove the child.\n if (end) {\n end();\n }\n };\n\n _Event2.default.addEndEventListener(node, node.rcEndListener);\n\n if (start) {\n start();\n }\n nodeClasses.add(className);\n\n node.rcAnimTimeout = setTimeout(function () {\n node.rcAnimTimeout = null;\n nodeClasses.add(activeClassName);\n if (active) {\n setTimeout(active, 0);\n }\n fixBrowserByTimeout(node);\n // 30ms for firefox\n }, 30);\n\n return {\n stop: function stop() {\n if (node.rcEndListener) {\n node.rcEndListener();\n }\n }\n };\n};\n\ncssAnimation.style = function (node, style, callback) {\n if (node.rcEndListener) {\n node.rcEndListener();\n }\n\n node.rcEndListener = function (e) {\n if (e && e.target !== node) {\n return;\n }\n\n if (node.rcAnimTimeout) {\n clearTimeout(node.rcAnimTimeout);\n node.rcAnimTimeout = null;\n }\n\n clearBrowserBugTimeout(node);\n\n _Event2.default.removeEndEventListener(node, node.rcEndListener);\n node.rcEndListener = null;\n\n // Usually this optional callback is used for informing an owner of\n // a leave animation and telling it to remove the child.\n if (callback) {\n callback();\n }\n };\n\n _Event2.default.addEndEventListener(node, node.rcEndListener);\n\n node.rcAnimTimeout = setTimeout(function () {\n for (var s in style) {\n if (style.hasOwnProperty(s)) {\n node.style[s] = style[s];\n }\n }\n node.rcAnimTimeout = null;\n fixBrowserByTimeout(node);\n }, 0);\n};\n\ncssAnimation.setTransition = function (node, p, value) {\n var property = p;\n var v = value;\n if (value === undefined) {\n v = property;\n property = '';\n }\n property = property || '';\n capitalPrefixes.forEach(function (prefix) {\n node.style[prefix + 'Transition' + property] = v;\n });\n};\n\ncssAnimation.isCssAnimationSupported = isCssAnimationSupported;\n\nexports.default = cssAnimation;\n\n/***/ }),\n/* 1049 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n/**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\nvar EVENT_NAME_MAP = {\n transitionend: {\n transition: 'transitionend',\n WebkitTransition: 'webkitTransitionEnd',\n MozTransition: 'mozTransitionEnd',\n OTransition: 'oTransitionEnd',\n msTransition: 'MSTransitionEnd'\n },\n\n animationend: {\n animation: 'animationend',\n WebkitAnimation: 'webkitAnimationEnd',\n MozAnimation: 'mozAnimationEnd',\n OAnimation: 'oAnimationEnd',\n msAnimation: 'MSAnimationEnd'\n }\n};\n\nvar endEvents = [];\n\nfunction detectEvents() {\n var testEl = document.createElement('div');\n var style = testEl.style;\n\n if (!('AnimationEvent' in window)) {\n delete EVENT_NAME_MAP.animationend.animation;\n }\n\n if (!('TransitionEvent' in window)) {\n delete EVENT_NAME_MAP.transitionend.transition;\n }\n\n for (var baseEventName in EVENT_NAME_MAP) {\n if (EVENT_NAME_MAP.hasOwnProperty(baseEventName)) {\n var baseEvents = EVENT_NAME_MAP[baseEventName];\n for (var styleName in baseEvents) {\n if (styleName in style) {\n endEvents.push(baseEvents[styleName]);\n break;\n }\n }\n }\n }\n}\n\nif (typeof window !== 'undefined' && typeof document !== 'undefined') {\n detectEvents();\n}\n\nfunction addEventListener(node, eventName, eventListener) {\n node.addEventListener(eventName, eventListener, false);\n}\n\nfunction removeEventListener(node, eventName, eventListener) {\n node.removeEventListener(eventName, eventListener, false);\n}\n\nvar TransitionEvents = {\n addEndEventListener: function addEndEventListener(node, eventListener) {\n if (endEvents.length === 0) {\n window.setTimeout(eventListener, 0);\n return;\n }\n endEvents.forEach(function (endEvent) {\n addEventListener(node, endEvent, eventListener);\n });\n },\n\n\n endEvents: endEvents,\n\n removeEndEventListener: function removeEndEventListener(node, eventListener) {\n if (endEvents.length === 0) {\n return;\n }\n endEvents.forEach(function (endEvent) {\n removeEventListener(node, endEvent, eventListener);\n });\n }\n};\n\nexports.default = TransitionEvents;\n\n/***/ }),\n/* 1050 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = toArray;\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction toArray(children) {\n var ret = [];\n _react2.default.Children.forEach(children, function (c) {\n ret.push(c);\n });\n return ret;\n} /**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\n\n/***/ }),\n/* 1051 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _domAlign = __webpack_require__(18);\n\nvar _domAlign2 = _interopRequireDefault(_domAlign);\n\nvar _addEventListener = __webpack_require__(295);\n\nvar _addEventListener2 = _interopRequireDefault(_addEventListener);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /**\n * This source code is quoted from rc-util.\n * homepage: https://github.com/react-component/util\n */\n\n\n//import isWindow from './isWindow';\n\nfunction isWindow(obj) {\n /* eslint no-eq-null: 0 */\n /* eslint eqeqeq: 0 */\n return obj != null && obj == obj.window;\n}\n\nfunction buffer(fn, ms) {\n var timer = void 0;\n\n function clear() {\n if (timer) {\n clearTimeout(timer);\n timer = null;\n }\n }\n\n function bufferFn() {\n clear();\n timer = setTimeout(fn, ms);\n }\n\n bufferFn.clear = clear;\n\n return bufferFn;\n}\n\nvar propTypes = {\n childrenProps: _propTypes2.default.object,\n align: _propTypes2.default.object.isRequired,\n target: _propTypes2.default.func,\n onAlign: _propTypes2.default.func,\n monitorBufferTime: _propTypes2.default.number,\n monitorWindowResize: _propTypes2.default.bool,\n disabled: _propTypes2.default.bool,\n children: _propTypes2.default.any\n};\n\nvar defaultProps = {\n target: function target() {\n return window;\n },\n onAlign: function onAlign() {},\n\n monitorBufferTime: 50,\n monitorWindowResize: false,\n disabled: false\n};\n\nvar Align = function (_React$Component) {\n _inherits(Align, _React$Component);\n\n function Align(props) {\n _classCallCheck(this, Align);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));\n\n _initialiseProps.call(_this);\n\n return _this;\n }\n\n Align.prototype.componentDidMount = function componentDidMount() {\n var props = this.props;\n // if parent ref not attached .... use document.getElementById\n this.forceAlign();\n if (!props.disabled && props.monitorWindowResize) {\n this.startMonitorWindowResize();\n }\n };\n\n Align.prototype.componentDidUpdate = function componentDidUpdate(prevProps) {\n var reAlign = false;\n var props = this.props;\n\n if (!props.disabled) {\n if (prevProps.disabled || prevProps.align !== props.align) {\n reAlign = true;\n } else {\n var lastTarget = prevProps.target();\n var currentTarget = props.target();\n if (isWindow(lastTarget) && isWindow(currentTarget)) {\n reAlign = false;\n } else if (lastTarget !== currentTarget) {\n reAlign = true;\n }\n }\n }\n\n if (reAlign) {\n this.forceAlign();\n }\n\n if (props.monitorWindowResize && !props.disabled) {\n this.startMonitorWindowResize();\n } else {\n this.stopMonitorWindowResize();\n }\n };\n\n Align.prototype.componentWillUnmount = function componentWillUnmount() {\n this.stopMonitorWindowResize();\n };\n\n Align.prototype.render = function render() {\n var _props = this.props,\n childrenProps = _props.childrenProps,\n children = _props.children;\n\n var child = _react2.default.Children.only(children);\n if (childrenProps) {\n var newProps = {};\n for (var prop in childrenProps) {\n if (childrenProps.hasOwnProperty(prop)) {\n newProps[prop] = this.props[childrenProps[prop]];\n }\n }\n return _react2.default.cloneElement(child, newProps);\n }\n return child;\n };\n\n return Align;\n}(_react2.default.Component);\n\nvar _initialiseProps = function _initialiseProps() {\n var _this2 = this;\n\n this.startMonitorWindowResize = function () {\n if (!_this2.resizeHandler) {\n _this2.bufferMonitor = buffer(_this2.forceAlign, _this2.props.monitorBufferTime);\n _this2.resizeHandler = (0, _addEventListener2.default)(window, 'resize', _this2.bufferMonitor);\n }\n };\n\n this.stopMonitorWindowResize = function () {\n if (_this2.resizeHandler) {\n _this2.bufferMonitor.clear();\n _this2.resizeHandler.remove();\n _this2.resizeHandler = null;\n }\n };\n\n this.forceAlign = function () {\n var props = _this2.props;\n if (!props.disabled) {\n var source = _reactDom2.default.findDOMNode(_this2);\n props.onAlign(source, (0, _domAlign2.default)(source, props.target(), props.align));\n }\n };\n};\n\n;\n\nAlign.defaultProps = defaultProps;\nAlign.propTypes = propTypes;\n\nexports.default = Align;\n\n/***/ }),\n/* 1052 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _ownerDocument = __webpack_require__(296);\n\nvar _ownerDocument2 = _interopRequireDefault(_ownerDocument);\n\nvar _getContainer = __webpack_require__(297);\n\nvar _getContainer2 = _interopRequireDefault(_getContainer);\n\nvar _tinperBeeCore = __webpack_require__(294);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar isReact16 = _reactDom2[\"default\"].createPortal !== undefined;\nvar createPortal = isReact16 ? _reactDom2[\"default\"].createPortal : _reactDom2[\"default\"].unstable_renderSubtreeIntoContainer;\n\nvar propTypes = {\n /**\n * 存放子组件的容器\n */\n container: _propTypes2[\"default\"].oneOfType([_tinperBeeCore.componentOrElement, _propTypes2[\"default\"].func])\n};\n\nvar defaultProps = {};\n\n/**\n * Portal组件是将子组件渲染\n */\n\nvar Portal = function (_Component) {\n _inherits(Portal, _Component);\n\n function Portal(props) {\n _classCallCheck(this, Portal);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props));\n\n _this.getMountNode = _this.getMountNode.bind(_this);\n _this.getOverlayDOMNode = _this.getOverlayDOMNode.bind(_this);\n _this.mountOverlayTarget = _this.mountOverlayTarget.bind(_this);\n _this.unmountOverlayTarget = _this.unmountOverlayTarget.bind(_this);\n _this.renderOverlay = _this.renderOverlay.bind(_this);\n _this.unrenderOverlay = _this.unrenderOverlay.bind(_this);\n\n _this.overlayTarget = isReact16 ? document.createElement('div') : null;\n return _this;\n }\n\n Portal.prototype.componentDidMount = function componentDidMount() {\n if (isReact16) {\n this.portalContainerNode = (0, _getContainer2[\"default\"])(this.props.container, (0, _ownerDocument2[\"default\"])(this).body);\n this.portalContainerNode.appendChild(this.overlayTarget);\n } else {\n this.renderOverlay();\n }\n\n this.mounted = true;\n };\n\n Portal.prototype.componentDidUpdate = function componentDidUpdate() {\n if (isReact16) {\n var overlay = !this.props.children ? null : _react2[\"default\"].Children.only(this.props.children);\n if (overlay === null) {\n this.unrenderOverlay();\n this.unmountOverlayTarget();\n } else {}\n } else {\n this.renderOverlay();\n }\n };\n //this._overlayTarget为当前的要添加的子组件, this._portalContainerNode要添加组件的容器元素\n\n\n Portal.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n if (this.overlayTarget && nextProps.container !== this.props.container) {\n this.portalContainerNode.removeChild(this.overlayTarget);\n this.portalContainerNode = (0, _getContainer2[\"default\"])(nextProps.container, (0, _ownerDocument2[\"default\"])(this).body);\n this.portalContainerNode.appendChild(this.overlayTarget);\n }\n };\n\n Portal.prototype.componentWillUnmount = function componentWillUnmount() {\n this.unrenderOverlay();\n this.unmountOverlayTarget();\n\n this.mounted = false;\n };\n\n Portal.prototype.getMountNode = function getMountNode() {\n return this.overlayTarget;\n };\n\n Portal.prototype.getOverlayDOMNode = function getOverlayDOMNode() {\n if (!this.mounted) {\n throw new Error('getOverlayDOMNode(): A component must be mounted to have a DOM node.');\n }\n\n if (this.overlayInstance) {\n return _reactDom2[\"default\"].findDOMNode(this.overlayInstance);\n }\n\n return null;\n };\n\n /**\n * 如果要添加的子组件不存在,就将div添加到要添加容器的DOM中;\n */\n\n Portal.prototype.mountOverlayTarget = function mountOverlayTarget() {\n if (!this.overlayTarget) {\n this.overlayTarget = document.createElement('div');\n this.portalContainerNode = (0, _getContainer2[\"default\"])(this.props.container, (0, _ownerDocument2[\"default\"])(this).body);\n this.portalContainerNode.appendChild(this.overlayTarget);\n }\n };\n /**\n * 将要添加的子元素从容器中移除,并把变量置为null\n */\n\n\n Portal.prototype.unmountOverlayTarget = function unmountOverlayTarget() {\n if (this.overlayTarget) {\n this.portalContainerNode.removeChild(this.overlayTarget);\n this.overlayTarget = null;\n }\n this.portalContainerNode = null;\n };\n /**\n * 手动渲染_overlayTarget\n */\n\n\n Portal.prototype.renderOverlay = function renderOverlay() {\n\n var overlay = !this.props.children ? null : _react2[\"default\"].Children.only(this.props.children);\n\n // Save reference for future access.\n if (overlay !== null) {\n this.mountOverlayTarget();\n this.overlayInstance = _reactDom2[\"default\"].unstable_renderSubtreeIntoContainer(this, overlay, this.overlayTarget);\n } else {\n // Unrender if the component is null for transitions to null\n this.unrenderOverlay();\n this.unmountOverlayTarget();\n }\n };\n /**\n * 销毁_overlayTarget组件。并把_overlayInstance置为null\n */\n\n\n Portal.prototype.unrenderOverlay = function unrenderOverlay() {\n if (this.overlayTarget) {\n !isReact16 && _reactDom2[\"default\"].unmountComponentAtNode(this.overlayTarget);\n this.overlayInstance = null;\n }\n };\n\n Portal.prototype.render = function render() {\n if (!isReact16) {\n return null;\n }\n\n var overlay = !this.props.children ? null : _react2[\"default\"].Children.only(this.props.children);\n\n return _reactDom2[\"default\"].createPortal(overlay, this.overlayTarget);\n };\n\n return Portal;\n}(_react.Component);\n\n;\n\nPortal.propTypes = propTypes;\nPortal.defaultProps = defaultProps;\n\nexports[\"default\"] = Portal;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1053 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _style = __webpack_require__(32);\n\nvar _style2 = _interopRequireDefault(_style);\n\nvar _class = __webpack_require__(1054);\n\nvar _class2 = _interopRequireDefault(_class);\n\nvar _scrollbarSize = __webpack_require__(104);\n\nvar _scrollbarSize2 = _interopRequireDefault(_scrollbarSize);\n\nvar _isOverflowing = __webpack_require__(105);\n\nvar _isOverflowing2 = _interopRequireDefault(_isOverflowing);\n\nvar _manageAriaHidden = __webpack_require__(1057);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction findIndexOf(arr, cb) {\n var idx = -1;\n arr.some(function (d, i) {\n if (cb(d, i)) {\n idx = i;\n return true;\n }\n });\n return idx;\n}\n\n//查找容器\nfunction findContainer(data, modal) {\n return findIndexOf(data, function (d) {\n return d.modals.indexOf(modal) !== -1;\n });\n}\n\n//设置容器style\nfunction setContainerStyle(state, container) {\n var style = { overflow: 'hidden' };\n\n state.style = {\n overflow: container.style.overflow,\n paddingRight: container.style.paddingRight\n };\n\n if (state.overflowing) {\n //设置内边距,和添加滚动条宽度\n style.paddingRight = parseInt((0, _style2[\"default\"])(container, 'paddingRight') || 0, 10) + (0, _scrollbarSize2[\"default\"])() + 'px';\n }\n\n (0, _style2[\"default\"])(container, style);\n}\n//移除容器style\nfunction removeContainerStyle(_ref, container) {\n var style = _ref.style;\n\n\n Object.keys(style).forEach(function (key) {\n return container.style[key] = style[key];\n });\n}\n/**\n * 容器的正确状态管理和那些容器中的模态。\n */\n\nvar ModalManager = function () {\n function ModalManager() {\n var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n _ref2$hideSiblingNode = _ref2.hideSiblingNodes,\n hideSiblingNodes = _ref2$hideSiblingNode === undefined ? true : _ref2$hideSiblingNode,\n _ref2$handleContainer = _ref2.handleContainerOverflow,\n handleContainerOverflow = _ref2$handleContainer === undefined ? true : _ref2$handleContainer;\n\n _classCallCheck(this, ModalManager);\n\n this.hideSiblingNodes = hideSiblingNodes;\n this.handleContainerOverflow = handleContainerOverflow;\n this.modals = [];\n this.containers = [];\n this.data = [];\n }\n\n ModalManager.prototype.add = function add(modal, container, className) {\n var modalIdx = this.modals.indexOf(modal);\n var containerIdx = this.containers.indexOf(container);\n\n if (modalIdx !== -1) {\n return modalIdx;\n }\n\n modalIdx = this.modals.length;\n this.modals.push(modal);\n\n if (this.hideSiblingNodes) {\n (0, _manageAriaHidden.hideSiblings)(container, modal.mountNode);\n }\n\n if (containerIdx !== -1) {\n this.data[containerIdx].modals.push(modal);\n return modalIdx;\n }\n\n var data = {\n modals: [modal],\n //right now only the first modal of a container will have its classes applied\n classes: className ? className.split(/\\s+/) : [],\n\n overflowing: (0, _isOverflowing2[\"default\"])(container)\n };\n\n if (this.handleContainerOverflow) {\n setContainerStyle(data, container);\n }\n\n data.classes.forEach(_class2[\"default\"].addClass.bind(null, container));\n\n this.containers.push(container);\n this.data.push(data);\n\n return modalIdx;\n };\n\n ModalManager.prototype.remove = function remove(modal) {\n var modalIdx = this.modals.indexOf(modal);\n\n if (modalIdx === -1) {\n return;\n }\n\n var containerIdx = findContainer(this.data, modal);\n var data = this.data[containerIdx];\n var container = this.containers[containerIdx];\n\n data.modals.splice(data.modals.indexOf(modal), 1);\n\n this.modals.splice(modalIdx, 1);\n\n // if that was the last modal in a container,\n // clean up the container\n if (data.modals.length === 0) {\n data.classes.forEach(_class2[\"default\"].removeClass.bind(null, container));\n\n if (this.handleContainerOverflow) {\n removeContainerStyle(data, container);\n }\n\n if (this.hideSiblingNodes) {\n (0, _manageAriaHidden.showSiblings)(container, modal.mountNode);\n }\n this.containers.splice(containerIdx, 1);\n this.data.splice(containerIdx, 1);\n } else if (this.hideSiblingNodes) {\n //otherwise make sure the next top modal is visible to a SR\n (0, _manageAriaHidden.ariaHidden)(false, data.modals[data.modals.length - 1].mountNode);\n }\n };\n\n ModalManager.prototype.isTopModal = function isTopModal(modal) {\n return !!this.modals.length && this.modals[this.modals.length - 1] === modal;\n };\n\n return ModalManager;\n}();\n\nexports[\"default\"] = ModalManager;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1054 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.hasClass = exports.removeClass = exports.addClass = undefined;\n\nvar _addClass = __webpack_require__(1055);\n\nvar _addClass2 = _interopRequireDefault(_addClass);\n\nvar _removeClass = __webpack_require__(1056);\n\nvar _removeClass2 = _interopRequireDefault(_removeClass);\n\nvar _hasClass = __webpack_require__(298);\n\nvar _hasClass2 = _interopRequireDefault(_hasClass);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.addClass = _addClass2.default;\nexports.removeClass = _removeClass2.default;\nexports.hasClass = _hasClass2.default;\nexports.default = { addClass: _addClass2.default, removeClass: _removeClass2.default, hasClass: _hasClass2.default };\n\n/***/ }),\n/* 1055 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = addClass;\n\nvar _hasClass = __webpack_require__(298);\n\nvar _hasClass2 = _interopRequireDefault(_hasClass);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction addClass(element, className) {\n if (element.classList) element.classList.add(className);else if (!(0, _hasClass2.default)(element)) element.className = element.className + ' ' + className;\n}\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1056 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nmodule.exports = function removeClass(element, className) {\n if (element.classList) element.classList.remove(className);else element.className = element.className.replace(new RegExp('(^|\\\\s)' + className + '(?:\\\\s|$)', 'g'), '$1').replace(/\\s+/g, ' ').replace(/^\\s*|\\s*$/g, '');\n};\n\n/***/ }),\n/* 1057 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.ariaHidden = ariaHidden;\nexports.hideSiblings = hideSiblings;\nexports.showSiblings = showSiblings;\n\nvar BLACKLIST = ['template', 'script', 'style'];\n\nvar isHidable = function isHidable(_ref) {\n var nodeType = _ref.nodeType,\n tagName = _ref.tagName;\n return nodeType === 1 && BLACKLIST.indexOf(tagName.toLowerCase()) === -1;\n};\n\nvar siblings = function siblings(container, mount, cb) {\n mount = [].concat(mount);\n\n [].forEach.call(container.children, function (node) {\n if (mount.indexOf(node) === -1 && isHidable(node)) {\n cb(node);\n }\n });\n};\n\nfunction ariaHidden(show, node) {\n if (!node) {\n return;\n }\n if (show) {\n node.setAttribute('aria-hidden', 'true');\n } else {\n node.removeAttribute('aria-hidden');\n }\n}\n\nfunction hideSiblings(container, mountNode) {\n siblings(container, mountNode, function (node) {\n return ariaHidden(true, node);\n });\n}\n\nfunction showSiblings(container, mountNode) {\n siblings(container, mountNode, function (node) {\n return ariaHidden(false, node);\n });\n}\n\n/***/ }),\n/* 1058 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports[\"default\"] = function (node, event, handler, capture) {\n (0, _on2[\"default\"])(node, event, handler, capture);\n\n return {\n remove: function remove() {\n (0, _off2[\"default\"])(node, event, handler, capture);\n }\n };\n};\n\nvar _on = __webpack_require__(17);\n\nvar _on2 = _interopRequireDefault(_on);\n\nvar _off = __webpack_require__(49);\n\nvar _off2 = _interopRequireDefault(_off);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1059 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = addFocusListener;\n/**\n * Firefox doesn't have a focusin event so using capture is easiest way to get bubbling\n * IE8 can't do addEventListener, but does have onfocusin, so we use that in ie8\n *\n * We only allow one Listener at a time to avoid stack overflows\n */\nfunction addFocusListener(handler) {\n var useFocusin = !document.addEventListener;\n var remove = void 0;\n\n if (useFocusin) {\n document.attachEvent('onfocusin', handler);\n remove = function remove() {\n return document.detachEvent('onfocusin', handler);\n };\n } else {\n document.addEventListener('focus', handler, true);\n remove = function remove() {\n return document.removeEventListener('focus', handler, true);\n };\n }\n\n return { remove: remove };\n}\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1060 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = activeElement;\n\nvar _ownerDocument = __webpack_require__(23);\n\nvar _ownerDocument2 = _interopRequireDefault(_ownerDocument);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction activeElement() {\n var doc = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (0, _ownerDocument2.default)();\n\n try {\n return doc.activeElement;\n } catch (e) {/* ie throws if no active element */}\n}\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1061 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Fade = exports.Collapse = exports.Transition = undefined;\n\nvar _Transition2 = __webpack_require__(165);\n\nvar _Transition3 = _interopRequireDefault(_Transition2);\n\nvar _Collapse2 = __webpack_require__(1062);\n\nvar _Collapse3 = _interopRequireDefault(_Collapse2);\n\nvar _Fade2 = __webpack_require__(1064);\n\nvar _Fade3 = _interopRequireDefault(_Fade2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nexports.Transition = _Transition3[\"default\"];\nexports.Collapse = _Collapse3[\"default\"];\nexports.Fade = _Fade3[\"default\"];\n\n/***/ }),\n/* 1062 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _style = __webpack_require__(32);\n\nvar _style2 = _interopRequireDefault(_style);\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _Transition = __webpack_require__(165);\n\nvar _Transition2 = _interopRequireDefault(_Transition);\n\nvar _capitalize = __webpack_require__(1063);\n\nvar _capitalize2 = _interopRequireDefault(_capitalize);\n\nvar _tinperBeeCore = __webpack_require__(6);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar MARGINS = {\n height: ['marginTop', 'marginBottom'],\n width: ['marginLeft', 'marginRight']\n};\n\n// reading a dimension prop will cause the browser to recalculate,\n// which will let our animations work\nfunction triggerBrowserReflow(node) {\n node.offsetHeight; // eslint-disable-line no-unused-expressions\n}\n\nfunction getDimensionValue(dimension, elem) {\n var value = elem['offset' + (0, _capitalize2[\"default\"])(dimension)];\n var margins = MARGINS[dimension];\n\n return value + parseInt((0, _style2[\"default\"])(elem, margins[0]), 10) + parseInt((0, _style2[\"default\"])(elem, margins[1]), 10);\n}\n\nvar propTypes = {\n /**\n * Show the component; triggers the expand or collapse animation\n */\n \"in\": _propTypes2[\"default\"].bool,\n\n /**\n * Unmount the component (remove it from the DOM) when it is collapsed\n */\n unmountOnExit: _propTypes2[\"default\"].bool,\n\n /**\n * Run the expand animation when the component mounts, if it is initially\n * shown\n */\n transitionAppear: _propTypes2[\"default\"].bool,\n\n /**\n * Duration of the collapse animation in milliseconds, to ensure that\n * finishing callbacks are fired even if the original browser transition end\n * events are canceled\n */\n timeout: _propTypes2[\"default\"].number,\n\n /**\n * Callback fired before the component expands\n */\n onEnter: _propTypes2[\"default\"].func,\n /**\n * Callback fired after the component starts to expand\n */\n onEntering: _propTypes2[\"default\"].func,\n /**\n * Callback fired after the component has expanded\n */\n onEntered: _propTypes2[\"default\"].func,\n /**\n * Callback fired before the component collapses\n */\n onExit: _propTypes2[\"default\"].func,\n /**\n * Callback fired after the component starts to collapse\n */\n onExiting: _propTypes2[\"default\"].func,\n /**\n * Callback fired after the component has collapsed\n */\n onExited: _propTypes2[\"default\"].func,\n\n /**\n * The dimension used when collapsing, or a function that returns the\n * dimension\n *\n * _Note: Bootstrap only partially supports 'width'!\n * You will need to supply your own CSS animation for the `.width` CSS class._\n */\n dimension: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].oneOf(['height', 'width']), _propTypes2[\"default\"].func]),\n\n /**\n * Function that returns the height or width of the animating DOM node\n *\n * Allows for providing some custom logic for how much the Collapse component\n * should animate in its specified dimension. Called with the current\n * dimension prop value and the DOM node.\n */\n getDimensionValue: _propTypes2[\"default\"].func,\n\n /**\n * ARIA role of collapsible element\n */\n role: _propTypes2[\"default\"].string\n};\n\nvar defaultProps = {\n \"in\": false,\n timeout: 300,\n unmountOnExit: false,\n transitionAppear: false,\n\n dimension: 'height',\n getDimensionValue: getDimensionValue\n};\n\nvar Collapse = function (_React$Component) {\n _inherits(Collapse, _React$Component);\n\n function Collapse(props, context) {\n _classCallCheck(this, Collapse);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context));\n\n _this.handleEnter = _this.handleEnter.bind(_this);\n _this.handleEntering = _this.handleEntering.bind(_this);\n _this.handleEntered = _this.handleEntered.bind(_this);\n _this.handleExit = _this.handleExit.bind(_this);\n _this.handleExiting = _this.handleExiting.bind(_this);\n return _this;\n }\n\n /* -- Expanding -- */\n\n\n Collapse.prototype.handleEnter = function handleEnter(elem) {\n var dimension = this._dimension();\n elem.style[dimension] = '0';\n };\n\n Collapse.prototype.handleEntering = function handleEntering(elem) {\n var dimension = this._dimension();\n elem.style[dimension] = this._getScrollDimensionValue(elem, dimension);\n };\n\n Collapse.prototype.handleEntered = function handleEntered(elem) {\n var dimension = this._dimension();\n elem.style[dimension] = null;\n };\n\n /* -- Collapsing -- */\n\n\n Collapse.prototype.handleExit = function handleExit(elem) {\n var dimension = this._dimension();\n elem.style[dimension] = this.props.getDimensionValue(dimension, elem) + 'px';\n triggerBrowserReflow(elem);\n };\n\n Collapse.prototype.handleExiting = function handleExiting(elem) {\n var dimension = this._dimension();\n elem.style[dimension] = '0';\n };\n\n Collapse.prototype._dimension = function _dimension() {\n return typeof this.props.dimension === 'function' ? this.props.dimension() : this.props.dimension;\n };\n\n // for testing\n\n\n Collapse.prototype._getScrollDimensionValue = function _getScrollDimensionValue(elem, dimension) {\n return elem['scroll' + (0, _capitalize2[\"default\"])(dimension)] + 'px';\n };\n\n Collapse.prototype.render = function render() {\n var _props = this.props,\n onEnter = _props.onEnter,\n onEntering = _props.onEntering,\n onEntered = _props.onEntered,\n onExit = _props.onExit,\n onExiting = _props.onExiting,\n className = _props.className,\n props = _objectWithoutProperties(_props, ['onEnter', 'onEntering', 'onEntered', 'onExit', 'onExiting', 'className']);\n\n delete props.dimension;\n delete props.getDimensionValue;\n\n var handleEnter = (0, _tinperBeeCore.createChainedFunction)(this.handleEnter, onEnter);\n var handleEntering = (0, _tinperBeeCore.createChainedFunction)(this.handleEntering, onEntering);\n var handleEntered = (0, _tinperBeeCore.createChainedFunction)(this.handleEntered, onEntered);\n var handleExit = (0, _tinperBeeCore.createChainedFunction)(this.handleExit, onExit);\n var handleExiting = (0, _tinperBeeCore.createChainedFunction)(this.handleExiting, onExiting);\n\n var classes = {\n width: this._dimension() === 'width'\n };\n\n return _react2[\"default\"].createElement(_Transition2[\"default\"], _extends({}, props, {\n 'aria-expanded': props.role ? props[\"in\"] : null,\n className: (0, _classnames2[\"default\"])(className, classes),\n exitedClassName: 'collapse',\n exitingClassName: 'collapsing',\n enteredClassName: 'collapse in',\n enteringClassName: 'collapsing',\n onEnter: handleEnter,\n onEntering: handleEntering,\n onEntered: handleEntered,\n onExit: handleExit,\n onExiting: handleExiting\n }));\n };\n\n return Collapse;\n}(_react2[\"default\"].Component);\n\nCollapse.propTypes = propTypes;\nCollapse.defaultProps = defaultProps;\n\nexports[\"default\"] = Collapse;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1063 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = capitalize;\nfunction capitalize(string) {\n return \"\" + string.charAt(0).toUpperCase() + string.slice(1);\n}\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 1064 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _Transition = __webpack_require__(165);\n\nvar _Transition2 = _interopRequireDefault(_Transition);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = {\n /**\n * Show the component; triggers the fade in or fade out animation\n */\n \"in\": _propTypes2[\"default\"].bool,\n\n /**\n * Unmount the component (remove it from the DOM) when it is faded out\n */\n unmountOnExit: _propTypes2[\"default\"].bool,\n\n /**\n * Run the fade in animation when the component mounts, if it is initially\n * shown\n */\n transitionAppear: _propTypes2[\"default\"].bool,\n\n /**\n * Duration of the fade animation in milliseconds, to ensure that finishing\n * callbacks are fired even if the original browser transition end events are\n * canceled\n */\n timeout: _propTypes2[\"default\"].number,\n\n /**\n * Callback fired before the component fades in\n */\n onEnter: _propTypes2[\"default\"].func,\n /**\n * Callback fired after the component starts to fade in\n */\n onEntering: _propTypes2[\"default\"].func,\n /**\n * Callback fired after the has component faded in\n */\n onEntered: _propTypes2[\"default\"].func,\n /**\n * Callback fired before the component fades out\n */\n onExit: _propTypes2[\"default\"].func,\n /**\n * Callback fired after the component starts to fade out\n */\n onExiting: _propTypes2[\"default\"].func,\n /**\n * Callback fired after the component has faded out\n */\n onExited: _propTypes2[\"default\"].func\n};\n\nvar defaultProps = {\n \"in\": false,\n timeout: 300,\n unmountOnExit: false,\n transitionAppear: false\n};\n\nvar Fade = function (_React$Component) {\n _inherits(Fade, _React$Component);\n\n function Fade() {\n _classCallCheck(this, Fade);\n\n return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n Fade.prototype.render = function render() {\n return _react2[\"default\"].createElement(_Transition2[\"default\"], _extends({}, this.props, {\n className: (0, _classnames2[\"default\"])(this.props.className, 'fade'),\n enteredClassName: 'in',\n enteringClassName: 'in'\n }));\n };\n\n return Fade;\n}(_react2[\"default\"].Component);\n\nFade.propTypes = propTypes;\nFade.defaultProps = defaultProps;\n\nexports[\"default\"] = Fade;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1065 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _tinperBeeCore = __webpack_require__(6);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = {\n componentClass: _tinperBeeCore.elementType\n};\n\nvar defaultProps = {\n componentClass: 'div',\n clsPrefix: 'u-modal-body'\n};\n\nvar ModalBody = function (_React$Component) {\n _inherits(ModalBody, _React$Component);\n\n function ModalBody() {\n _classCallCheck(this, ModalBody);\n\n return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n ModalBody.prototype.render = function render() {\n var _props = this.props,\n Component = _props.componentClass,\n clsPrefix = _props.clsPrefix,\n className = _props.className,\n props = _objectWithoutProperties(_props, ['componentClass', 'clsPrefix', 'className']);\n\n var classes = {};\n classes['' + clsPrefix] = true;\n\n return _react2[\"default\"].createElement(Component, _extends({}, props, {\n className: (0, _classnames2[\"default\"])(className, classes)\n }));\n };\n\n return ModalBody;\n}(_react2[\"default\"].Component);\n\nModalBody.propTypes = propTypes;\nModalBody.defaultProps = defaultProps;\n\nexports[\"default\"] = ModalBody;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1066 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _beeDnd = __webpack_require__(1067);\n\nvar _beeDnd2 = _interopRequireDefault(_beeDnd);\n\nvar _reResizable = __webpack_require__(175);\n\nvar _reResizable2 = _interopRequireDefault(_reResizable);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = {\n /**\n * 传给dialog的classname\n */\n dialogClassName: _propTypes2[\"default\"].string,\n contentStyle: _propTypes2[\"default\"].object,\n onStart: _propTypes2[\"default\"].func,\n onStop: _propTypes2[\"default\"].func\n};\n\nvar defaultProps = {\n minHeight: 150,\n minWidth: 200,\n clsPrefix: 'u-modal',\n bounds: null,\n onStart: function onStart() {},\n onStop: function onStop() {}\n};\n\nvar ModalDialog = function (_React$Component) {\n _inherits(ModalDialog, _React$Component);\n\n function ModalDialog() {\n var _temp, _this, _ret;\n\n _classCallCheck(this, ModalDialog);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.state = {\n draging: false,\n draged: false,\n original: {\n x: 0,\n y: 0\n },\n maxWidth: Number.MAX_SAFE_INTEGER,\n maxHeight: Number.MAX_SAFE_INTEGER\n }, _this.onStart = function () {\n var draggable = _this.props.draggable;\n\n _this.setState({\n draging: true\n });\n _this.props.onStart();\n return draggable;\n }, _this.onStop = function (e, delta) {\n var dialogWidth = _this.modalDialog && _this.modalDialog.offsetWidth;\n var clientWidth = e && e.target && e.target.clientWidth;\n if (delta.x > 0 && clientWidth - delta.x < 50) {\n return;\n }\n if (delta.x < 0 && dialogWidth + delta.x < 50) {\n return;\n }\n if (delta.y < 0) {\n return;\n }\n _this.setState({\n draged: true,\n draging: false,\n original: {\n x: delta.x,\n y: delta.y\n }\n });\n _this.props.onStop();\n }, _this.onResizeStart = function (e, dir, elementRef) {\n var onResizeStart = _this.props.onResizeStart;\n\n typeof onResizeStart === \"function\" && onResizeStart(e, dir, elementRef);\n _this.props.clearCenteredCls && _this.props.clearCenteredCls();\n }, _this.onResize = function (e, direction, elementRef, delta) {\n var onResize = _this.props.onResize;\n var original = _this.state.original;\n /* resize 之前的值 */\n\n var originX = original.x;\n var originY = original.y;\n\n /* 移动的位移 */\n var moveW = delta.width;\n var moveH = delta.height;\n\n /* 移动的位移 */\n var x = null,\n y = null;\n\n /* 处理上边缘 */\n if (/left/i.test(direction)) {\n x = originX - moveW;\n y = originY;\n _this.position = { x: x, y: y\n\n /* 处理左边缘 */\n };\n } else if (/top/i.test(direction)) {\n x = originX;\n y = originY - moveH;\n _this.position = { x: x, y: y };\n } else {\n _this.position = null;\n }\n\n if (x || y) {\n elementRef.style.transform = 'translate(' + x + 'px, ' + y + 'px)';\n }\n if (delta.height) {\n _this.updateBodyH();\n }\n\n typeof onResize === \"function\" && onResize(e, direction, elementRef, delta);\n }, _this.onResizeStop = function (e, direction, elementRef, delta) {\n var onResizeStop = _this.props.onResizeStop;\n\n\n if (_this.position) {\n _this.setState({\n original: _this.position\n });\n }\n\n typeof onResizeStop === \"function\" && onResizeStop(e, direction, elementRef, delta);\n }, _this.updateBodyH = function () {\n var $resizable = _reactDom2[\"default\"].findDOMNode(_this.resizable);\n var $header = $resizable.querySelector(\".u-modal-header\");\n var $body = $resizable.querySelector(\".u-modal-body\");\n var $footer = $resizable.querySelector(\".u-modal-footer\");\n\n var totalH = $resizable.style.height;\n totalH = Number(totalH.replace(\"px\", \"\"));\n if ($header) {\n totalH -= $header.offsetHeight;\n }\n if ($footer) {\n totalH -= $footer.offsetHeight;\n }\n\n $body.style.height = totalH + 'px';\n }, _this.getMaxSizesFromProps = function () {\n var backDropW = _this.backdrop && _this.backdrop.offsetWidth ? _this.backdrop.offsetWidth : Number.MAX_SAFE_INTEGER;\n var backDropH = _this.backdrop && _this.backdrop.offsetHeight ? _this.backdrop.offsetHeight : Number.MAX_SAFE_INTEGER;\n\n var maxWidth = typeof _this.props.maxWidth === \"undefined\" ? backDropW : _this.props.maxWidth;\n var maxHeight = typeof _this.props.maxHeight === \"undefined\" ? backDropH : _this.props.maxHeight;\n return { maxWidth: maxWidth, maxHeight: maxHeight };\n }, _this.handleWH = function (value) {\n var size = value;\n if (typeof value === \"string\" && value.endsWith(\"px\")) {\n size = Number(value.replace(\"px\", \"\"));\n } else if (typeof Number(value) === \"number\" && !Number.isNaN(Number(value))) {\n size = Number(value);\n }\n return size;\n }, _this.renderModalContent = function () {\n var _this$props = _this.props,\n clsPrefix = _this$props.clsPrefix,\n children = _this$props.children,\n resizable = _this$props.resizable,\n contentStyle = _this$props.contentStyle,\n minHeight = _this$props.minHeight,\n minWidth = _this$props.minWidth,\n resizeClassName = _this$props.resizeClassName;\n var _this$state = _this.state,\n maxWidth = _this$state.maxWidth,\n maxHeight = _this$state.maxHeight;\n\n if (!resizable) {\n return _react2[\"default\"].createElement(\n 'div',\n { style: contentStyle, className: (0, _classnames2[\"default\"])([clsPrefix + '-content']), role: 'document', ref: function ref(_ref) {\n return _this.resize = _ref;\n } },\n children\n );\n }\n var _minWidth = _this.handleWH(minWidth);\n var _minHeight = _this.handleWH(minHeight);\n return _react2[\"default\"].createElement(\n _reResizable2[\"default\"],\n {\n className: resizeClassName,\n ref: function ref(c) {\n if (c) {\n _this.resizable = c;\n }\n },\n onResizeStart: _this.onResizeStart,\n onResize: _this.onResize,\n onResizeStop: _this.onResizeStop,\n minWidth: _minWidth,\n minHeight: _minHeight,\n maxWidth: _this.handleWH(maxWidth),\n maxHeight: _this.handleWH(maxHeight)\n },\n _react2[\"default\"].createElement(\n 'div',\n { style: _extends({}, contentStyle, { minHeight: _minHeight, height: \"100%\" }), className: (0, _classnames2[\"default\"])([clsPrefix + '-content']), role: 'document', ref: function ref(_ref2) {\n return _this.resize = _ref2;\n } },\n children\n )\n );\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n ModalDialog.prototype.componentDidUpdate = function componentDidUpdate() {\n if (this.props.resizable) {\n var _getMaxSizesFromProps = this.getMaxSizesFromProps(),\n maxWidth = _getMaxSizesFromProps.maxWidth,\n maxHeight = _getMaxSizesFromProps.maxHeight;\n\n if (maxWidth != this.state.maxWidth) {\n this.setState({\n maxWidth: maxWidth,\n maxHeight: maxHeight\n });\n }\n }\n };\n // 当ModalDialog留在可视区的宽度 < 50px 时,拖拽不生效\n\n\n /* 开始resize */\n\n\n /* resizing */\n\n\n /* resize 结束 */\n\n\n /**\n * 更新Modal.Body的高度\n */\n\n\n /**\n * 获取最大宽度和高度\n */\n\n\n ModalDialog.prototype.render = function render() {\n var _dialogClasses,\n _this2 = this;\n\n var _props = this.props,\n dialogClassName = _props.dialogClassName,\n className = _props.className,\n clsPrefix = _props.clsPrefix,\n size = _props.size,\n style = _props.style,\n contentStyle = _props.contentStyle,\n children = _props.children,\n draggable = _props.draggable,\n resizable = _props.resizable,\n resizeClassName = _props.resizeClassName,\n minHeight = _props.minHeight,\n minWidth = _props.minWidth,\n bounds = _props.bounds,\n clearCenteredCls = _props.clearCenteredCls,\n props = _objectWithoutProperties(_props, ['dialogClassName', 'className', 'clsPrefix', 'size', 'style', 'contentStyle', 'children', 'draggable', 'resizable', 'resizeClassName', 'minHeight', 'minWidth', 'bounds', 'clearCenteredCls']);\n\n var _state = this.state,\n original = _state.original,\n maxWidth = _state.maxWidth,\n maxHeight = _state.maxHeight,\n draging = _state.draging,\n draged = _state.draged;\n\n\n var uClassName = _defineProperty({}, '' + clsPrefix, true);\n\n var modalStyle = { display: 'block' };\n\n var dialogClasses = (_dialogClasses = {}, _defineProperty(_dialogClasses, uClassName, false), _defineProperty(_dialogClasses, clsPrefix + '-dialog', true), _dialogClasses);\n if (size) {\n dialogClasses[clsPrefix + '-' + size] = true;\n }\n if (draggable) {\n dialogClasses[clsPrefix + '-draggable'] = true;\n }\n if (draging) dialogClasses[clsPrefix + '-draging'] = true;\n\n if (draged) dialogClasses[clsPrefix + '-draged'] = true;\n\n return _react2[\"default\"].createElement(\n 'div',\n _extends({}, props, {\n tabIndex: '-1',\n role: 'dialog',\n style: modalStyle,\n ref: function ref(_ref4) {\n return _this2.backdrop = _ref4;\n },\n className: (0, _classnames2[\"default\"])(className, uClassName)\n }),\n _react2[\"default\"].createElement(\n 'div',\n { className: (0, _classnames2[\"default\"])(dialogClassName, dialogClasses), style: style, ref: function ref(_ref3) {\n return _this2.modalDialog = _ref3;\n } },\n draggable ? _react2[\"default\"].createElement(\n _beeDnd2[\"default\"],\n {\n handle: '.dnd-handle',\n cancel: '.dnd-cancel',\n bounds: bounds //防止拖拽时,Header 被导航栏覆盖\n , onStart: this.onStart,\n onStop: this.onStop,\n position: original,\n list: []\n },\n this.renderModalContent()\n ) : this.renderModalContent()\n )\n );\n };\n\n return ModalDialog;\n}(_react2[\"default\"].Component);\n\nModalDialog.propTypes = propTypes;\nModalDialog.defaultProps = defaultProps;\n\nexports[\"default\"] = ModalDialog;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1067 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _Dnd = __webpack_require__(1068);\n\nvar _Dnd2 = _interopRequireDefault(_Dnd);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nexports[\"default\"] = _Dnd2[\"default\"];\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1068 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactBeautifulDnd = __webpack_require__(29);\n\nvar _reactDraggable = __webpack_require__(107);\n\nvar _reactDraggable2 = _interopRequireDefault(_reactDraggable);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _lodash = __webpack_require__(21);\n\nvar _lodash2 = _interopRequireDefault(_lodash);\n\nvar _SortList = __webpack_require__(1102);\n\nvar _SortList2 = _interopRequireDefault(_SortList);\n\nvar _Between = __webpack_require__(1103);\n\nvar _Between2 = _interopRequireDefault(_Between);\n\nvar _GridLayout = __webpack_require__(1104);\n\nvar _GridLayout2 = _interopRequireDefault(_GridLayout);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = {\n onStart: _propTypes2[\"default\"].func,\n onDrag: _propTypes2[\"default\"].func,\n onStop: _propTypes2[\"default\"].func,\n onDragUpdate: _propTypes2[\"default\"].func,\n dropClass: _propTypes2[\"default\"].string,\n dropOverClass: _propTypes2[\"default\"].string,\n dragClass: _propTypes2[\"default\"].string,\n dragingClass: _propTypes2[\"default\"].string,\n draggedClass: _propTypes2[\"default\"].string,\n className: _propTypes2[\"default\"].string,\n style: _propTypes2[\"default\"].object,\n list: _propTypes2[\"default\"].array,\n otherList: _propTypes2[\"default\"].array,\n type: _propTypes2[\"default\"].oneOf(['vertical', 'horizontal', 'betweenVertical', 'betweenHorizontal']),\n showKey: _propTypes2[\"default\"].string\n\n};\nvar defaultProps = {\n onStart: function onStart() {},\n onDrag: function onDrag() {},\n onStop: function onStop() {},\n onDragUpdate: function onDragUpdate() {},\n list: false,\n otherList: [],\n dropClass: '',\n dropOverClass: '',\n dragClass: '',\n dragingClass: '',\n draggedClass: '',\n type: 'vertical'\n};\n\nvar Dnd = function (_Component) {\n _inherits(Dnd, _Component);\n\n function Dnd(props) {\n _classCallCheck(this, Dnd);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props));\n\n _this.state = {\n items: _this.props.list || []\n };\n return _this;\n }\n\n Dnd.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n if (!(0, _lodash2[\"default\"])(this.state.items, nextProps.list)) {\n this.setState({\n items: nextProps.list\n });\n }\n };\n\n Dnd.prototype.render = function render() {\n var _this2 = this;\n\n var self = this;\n var DndType = function DndType() {\n switch (_this2.props.type) {\n case 'vertical':\n return _react2[\"default\"].createElement(_SortList2[\"default\"], _this2.props);\n break;\n case 'horizontal':\n return _react2[\"default\"].createElement(_SortList2[\"default\"], _this2.props);\n break;\n case 'betweenVertical':\n return _react2[\"default\"].createElement(_Between2[\"default\"], _this2.props);\n break;\n case 'betweenHorizontal':\n return _react2[\"default\"].createElement(_Between2[\"default\"], _this2.props);\n break;\n default:\n return _react2[\"default\"].createElement(_SortList2[\"default\"], _this2.props);\n break;\n }\n };\n return _react2[\"default\"].createElement(\n 'div',\n null,\n self.state.items.length ? DndType() : _react2[\"default\"].createElement(\n _reactDraggable2[\"default\"],\n _extends({ defaultClassName: this.props.dragClass,\n defaultClassNameDragging: this.props.dragingClass,\n defaultClassNameDragged: this.props.draggedClass\n }, this.props),\n self.props.children\n )\n );\n };\n\n return Dnd;\n}(_react.Component);\n\nDnd.propTypes = propTypes;\nDnd.defaultProps = defaultProps;\nDnd.Drag = _reactDraggable2[\"default\"];\nDnd.DragDropContext = _reactBeautifulDnd.DragDropContext;\nDnd.Droppable = _reactBeautifulDnd.Droppable;\nDnd.Draggable = _reactBeautifulDnd.Draggable;\nDnd.GridLayout = _GridLayout2[\"default\"];\nexports[\"default\"] = Dnd;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1069 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (immutable) */ __webpack_exports__[\"a\"] = _extends;\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__core_js_object_assign__ = __webpack_require__(299);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__core_js_object_assign___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__core_js_object_assign__);\n\nfunction _extends() {\n _extends = __WEBPACK_IMPORTED_MODULE_0__core_js_object_assign___default.a || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\n/***/ }),\n/* 1070 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return calculateBox; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"b\", function() { return createBox; });\n/* unused harmony export expand */\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"c\", function() { return getBox; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"d\", function() { return getRect; });\n/* unused harmony export offset */\n/* unused harmony export shrink */\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"e\", function() { return withScroll; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tiny_invariant__ = __webpack_require__(300);\n\n\nvar getRect = function getRect(_ref) {\n var top = _ref.top,\n right = _ref.right,\n bottom = _ref.bottom,\n left = _ref.left;\n var width = right - left;\n var height = bottom - top;\n var rect = {\n top: top,\n right: right,\n bottom: bottom,\n left: left,\n width: width,\n height: height,\n x: left,\n y: top,\n center: {\n x: (right + left) / 2,\n y: (bottom + top) / 2\n }\n };\n return rect;\n};\nvar expand = function expand(target, expandBy) {\n return {\n top: target.top - expandBy.top,\n left: target.left - expandBy.left,\n bottom: target.bottom + expandBy.bottom,\n right: target.right + expandBy.right\n };\n};\nvar shrink = function shrink(target, shrinkBy) {\n return {\n top: target.top + shrinkBy.top,\n left: target.left + shrinkBy.left,\n bottom: target.bottom - shrinkBy.bottom,\n right: target.right - shrinkBy.right\n };\n};\n\nvar shift = function shift(target, shiftBy) {\n return {\n top: target.top + shiftBy.y,\n left: target.left + shiftBy.x,\n bottom: target.bottom + shiftBy.y,\n right: target.right + shiftBy.x\n };\n};\n\nvar noSpacing = {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n};\nvar createBox = function createBox(_ref2) {\n var borderBox = _ref2.borderBox,\n _ref2$margin = _ref2.margin,\n margin = _ref2$margin === void 0 ? noSpacing : _ref2$margin,\n _ref2$border = _ref2.border,\n border = _ref2$border === void 0 ? noSpacing : _ref2$border,\n _ref2$padding = _ref2.padding,\n padding = _ref2$padding === void 0 ? noSpacing : _ref2$padding;\n var marginBox = getRect(expand(borderBox, margin));\n var paddingBox = getRect(shrink(borderBox, border));\n var contentBox = getRect(shrink(paddingBox, padding));\n return {\n marginBox: marginBox,\n borderBox: getRect(borderBox),\n paddingBox: paddingBox,\n contentBox: contentBox,\n margin: margin,\n border: border,\n padding: padding\n };\n};\n\nvar parse = function parse(raw) {\n var value = raw.slice(0, -2);\n var suffix = raw.slice(-2);\n\n if (suffix !== 'px') {\n return 0;\n }\n\n var result = Number(value);\n !!isNaN(result) ? process.env.NODE_ENV !== \"production\" ? Object(__WEBPACK_IMPORTED_MODULE_0_tiny_invariant__[\"a\" /* default */])(false, \"Could not parse value [raw: \" + raw + \", without suffix: \" + value + \"]\") : Object(__WEBPACK_IMPORTED_MODULE_0_tiny_invariant__[\"a\" /* default */])(false) : void 0;\n return result;\n};\n\nvar getWindowScroll = function getWindowScroll() {\n return {\n x: window.pageXOffset,\n y: window.pageYOffset\n };\n};\n\nvar offset = function offset(original, change) {\n var borderBox = original.borderBox,\n border = original.border,\n margin = original.margin,\n padding = original.padding;\n var shifted = shift(borderBox, change);\n return createBox({\n borderBox: shifted,\n border: border,\n margin: margin,\n padding: padding\n });\n};\nvar withScroll = function withScroll(original, scroll) {\n if (scroll === void 0) {\n scroll = getWindowScroll();\n }\n\n return offset(original, scroll);\n};\nvar calculateBox = function calculateBox(borderBox, styles) {\n var margin = {\n top: parse(styles.marginTop),\n right: parse(styles.marginRight),\n bottom: parse(styles.marginBottom),\n left: parse(styles.marginLeft)\n };\n var padding = {\n top: parse(styles.paddingTop),\n right: parse(styles.paddingRight),\n bottom: parse(styles.paddingBottom),\n left: parse(styles.paddingLeft)\n };\n var border = {\n top: parse(styles.borderTopWidth),\n right: parse(styles.borderRightWidth),\n bottom: parse(styles.borderBottomWidth),\n left: parse(styles.borderLeftWidth)\n };\n return createBox({\n borderBox: borderBox,\n margin: margin,\n padding: padding,\n border: border\n });\n};\nvar getBox = function getBox(el) {\n var borderBox = el.getBoundingClientRect();\n var styles = window.getComputedStyle(el);\n return calculateBox(borderBox, styles);\n};\n\n\n\n/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(5)))\n\n/***/ }),\n/* 1071 */\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = __webpack_require__(1072);\n\n/***/ }),\n/* 1072 */\n/***/ (function(module, exports, __webpack_require__) {\n\n__webpack_require__(1073);\nmodule.exports = __webpack_require__(25).Object.keys;\n\n\n/***/ }),\n/* 1073 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 19.1.2.14 Object.keys(O)\nvar toObject = __webpack_require__(68);\nvar $keys = __webpack_require__(67);\n\n__webpack_require__(1074)('keys', function () {\n return function keys(it) {\n return $keys(toObject(it));\n };\n});\n\n\n/***/ }),\n/* 1074 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// most Object methods by ES6 should accept primitives\nvar $export = __webpack_require__(38);\nvar core = __webpack_require__(25);\nvar fails = __webpack_require__(53);\nmodule.exports = function (KEY, exec) {\n var fn = (core.Object || {})[KEY] || Object[KEY];\n var exp = {};\n exp[KEY] = exec(fn);\n $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);\n};\n\n\n/***/ }),\n/* 1075 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nvar simpleIsEqual = function simpleIsEqual(a, b) {\n return a === b;\n};\n\nfunction index (resultFn, isEqual) {\n if (isEqual === void 0) {\n isEqual = simpleIsEqual;\n }\n\n var lastThis;\n var lastArgs = [];\n var lastResult;\n var calledOnce = false;\n\n var isNewArgEqualToLast = function isNewArgEqualToLast(newArg, index) {\n return isEqual(newArg, lastArgs[index]);\n };\n\n var result = function result() {\n for (var _len = arguments.length, newArgs = new Array(_len), _key = 0; _key < _len; _key++) {\n newArgs[_key] = arguments[_key];\n }\n\n if (calledOnce && lastThis === this && newArgs.length === lastArgs.length && newArgs.every(isNewArgEqualToLast)) {\n return lastResult;\n }\n\n lastResult = resultFn.apply(this, newArgs);\n calledOnce = true;\n lastThis = this;\n lastArgs = newArgs;\n return lastResult;\n };\n\n return result;\n}\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (index);\n\n\n/***/ }),\n/* 1076 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(global, module) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ponyfill_js__ = __webpack_require__(1078);\n/* global window */\n\n\nvar root;\n\nif (typeof self !== 'undefined') {\n root = self;\n} else if (typeof window !== 'undefined') {\n root = window;\n} else if (typeof global !== 'undefined') {\n root = global;\n} else if (true) {\n root = module;\n} else {\n root = Function('return this')();\n}\n\nvar result = Object(__WEBPACK_IMPORTED_MODULE_0__ponyfill_js__[\"a\" /* default */])(root);\n/* harmony default export */ __webpack_exports__[\"a\"] = (result);\n\n/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(35), __webpack_require__(1077)(module)))\n\n/***/ }),\n/* 1077 */\n/***/ (function(module, exports) {\n\nmodule.exports = function(originalModule) {\n\tif(!originalModule.webpackPolyfill) {\n\t\tvar module = Object.create(originalModule);\n\t\t// module.parent = undefined by default\n\t\tif(!module.children) module.children = [];\n\t\tObject.defineProperty(module, \"loaded\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.l;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"id\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.i;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"exports\", {\n\t\t\tenumerable: true,\n\t\t});\n\t\tmodule.webpackPolyfill = 1;\n\t}\n\treturn module;\n};\n\n\n/***/ }),\n/* 1078 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (immutable) */ __webpack_exports__[\"a\"] = symbolObservablePonyfill;\nfunction symbolObservablePonyfill(root) {\n\tvar result;\n\tvar Symbol = root.Symbol;\n\n\tif (typeof Symbol === 'function') {\n\t\tif (Symbol.observable) {\n\t\t\tresult = Symbol.observable;\n\t\t} else {\n\t\t\tresult = Symbol('observable');\n\t\t\tSymbol.observable = result;\n\t\t}\n\t} else {\n\t\tresult = '@@observable';\n\t}\n\n\treturn result;\n};\n\n\n/***/ }),\n/* 1079 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nvar rafSchd = function rafSchd(fn) {\n var lastArgs = [];\n var frameId = null;\n\n var wrapperFn = function wrapperFn() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n lastArgs = args;\n\n if (frameId) {\n return;\n }\n\n frameId = requestAnimationFrame(function () {\n frameId = null;\n fn.apply(void 0, lastArgs);\n });\n };\n\n wrapperFn.cancel = function () {\n if (!frameId) {\n return;\n }\n\n cancelAnimationFrame(frameId);\n frameId = null;\n };\n\n return wrapperFn;\n};\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (rafSchd);\n\n\n/***/ }),\n/* 1080 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (immutable) */ __webpack_exports__[\"a\"] = _inheritsLoose;\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__core_js_object_create__ = __webpack_require__(1081);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__core_js_object_create___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__core_js_object_create__);\n\nfunction _inheritsLoose(subClass, superClass) {\n subClass.prototype = __WEBPACK_IMPORTED_MODULE_0__core_js_object_create___default()(superClass.prototype);\n subClass.prototype.constructor = subClass;\n subClass.__proto__ = superClass;\n}\n\n/***/ }),\n/* 1081 */\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = __webpack_require__(249);\n\n/***/ }),\n/* 1082 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__components_Provider__ = __webpack_require__(1083);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_connectAdvanced__ = __webpack_require__(304);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__connect_connect__ = __webpack_require__(1087);\n/* unused harmony reexport Provider */\n/* unused harmony reexport createProvider */\n/* unused harmony reexport connectAdvanced */\n/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return __WEBPACK_IMPORTED_MODULE_2__connect_connect__[\"a\"]; });\n\n\n\n\n\n/***/ }),\n/* 1083 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export createProvider */\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__ = __webpack_require__(302);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_prop_types__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__utils_PropTypes__ = __webpack_require__(303);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__utils_warning__ = __webpack_require__(166);\n\n\n\n\n\nvar prefixUnsafeLifecycleMethods = typeof __WEBPACK_IMPORTED_MODULE_1_react___default.a.forwardRef !== \"undefined\";\nvar didWarnAboutReceivingStore = false;\n\nfunction warnAboutReceivingStore() {\n if (didWarnAboutReceivingStore) {\n return;\n }\n\n didWarnAboutReceivingStore = true;\n Object(__WEBPACK_IMPORTED_MODULE_4__utils_warning__[\"a\" /* default */])(' does not support changing `store` on the fly. ' + 'It is most likely that you see this error because you updated to ' + 'Redux 2.x and React Redux 2.x which no longer hot reload reducers ' + 'automatically. See https://github.com/reduxjs/react-redux/releases/' + 'tag/v2.0.0 for the migration instructions.');\n}\n\nfunction createProvider(storeKey) {\n var _Provider$childContex;\n\n if (storeKey === void 0) {\n storeKey = 'store';\n }\n\n var subscriptionKey = storeKey + \"Subscription\";\n\n var Provider =\n /*#__PURE__*/\n function (_Component) {\n Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__[\"a\" /* default */])(Provider, _Component);\n\n var _proto = Provider.prototype;\n\n _proto.getChildContext = function getChildContext() {\n var _ref;\n\n return _ref = {}, _ref[storeKey] = this[storeKey], _ref[subscriptionKey] = null, _ref;\n };\n\n function Provider(props, context) {\n var _this;\n\n _this = _Component.call(this, props, context) || this;\n _this[storeKey] = props.store;\n return _this;\n }\n\n _proto.render = function render() {\n return __WEBPACK_IMPORTED_MODULE_1_react__[\"Children\"].only(this.props.children);\n };\n\n return Provider;\n }(__WEBPACK_IMPORTED_MODULE_1_react__[\"Component\"]);\n\n if (process.env.NODE_ENV !== 'production') {\n // Use UNSAFE_ event name where supported\n var eventName = prefixUnsafeLifecycleMethods ? 'UNSAFE_componentWillReceiveProps' : 'componentWillReceiveProps';\n\n Provider.prototype[eventName] = function (nextProps) {\n if (this[storeKey] !== nextProps.store) {\n warnAboutReceivingStore();\n }\n };\n }\n\n Provider.propTypes = {\n store: __WEBPACK_IMPORTED_MODULE_3__utils_PropTypes__[\"a\" /* storeShape */].isRequired,\n children: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.element.isRequired\n };\n Provider.childContextTypes = (_Provider$childContex = {}, _Provider$childContex[storeKey] = __WEBPACK_IMPORTED_MODULE_3__utils_PropTypes__[\"a\" /* storeShape */].isRequired, _Provider$childContex[subscriptionKey] = __WEBPACK_IMPORTED_MODULE_3__utils_PropTypes__[\"b\" /* subscriptionShape */], _Provider$childContex);\n return Provider;\n}\n/* unused harmony default export */ var _unused_webpack_default_export = (createProvider());\n/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(5)))\n\n/***/ }),\n/* 1084 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (immutable) */ __webpack_exports__[\"a\"] = _assertThisInitialized;\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\n/***/ }),\n/* 1085 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\n\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nvar invariant = function(condition, format, a, b, c, d, e, f) {\n if (process.env.NODE_ENV !== 'production') {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n }\n\n if (!condition) {\n var error;\n if (format === undefined) {\n error = new Error(\n 'Minified exception occurred; use the non-minified dev environment ' +\n 'for the full error message and additional helpful warnings.'\n );\n } else {\n var args = [a, b, c, d, e, f];\n var argIndex = 0;\n error = new Error(\n format.replace(/%s/g, function() { return args[argIndex++]; })\n );\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // we don't care about invariant's own frame\n throw error;\n }\n};\n\nmodule.exports = invariant;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5)))\n\n/***/ }),\n/* 1086 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return Subscription; });\n// encapsulates the subscription logic for connecting a component to the redux store, as\n// well as nesting subscriptions of descendant components, so that we can ensure the\n// ancestor components re-render before descendants\nvar CLEARED = null;\nvar nullListeners = {\n notify: function notify() {}\n};\n\nfunction createListenerCollection() {\n // the current/next pattern is copied from redux's createStore code.\n // TODO: refactor+expose that code to be reusable here?\n var current = [];\n var next = [];\n return {\n clear: function clear() {\n next = CLEARED;\n current = CLEARED;\n },\n notify: function notify() {\n var listeners = current = next;\n\n for (var i = 0; i < listeners.length; i++) {\n listeners[i]();\n }\n },\n get: function get() {\n return next;\n },\n subscribe: function subscribe(listener) {\n var isSubscribed = true;\n if (next === current) next = current.slice();\n next.push(listener);\n return function unsubscribe() {\n if (!isSubscribed || current === CLEARED) return;\n isSubscribed = false;\n if (next === current) next = current.slice();\n next.splice(next.indexOf(listener), 1);\n };\n }\n };\n}\n\nvar Subscription =\n/*#__PURE__*/\nfunction () {\n function Subscription(store, parentSub, onStateChange) {\n this.store = store;\n this.parentSub = parentSub;\n this.onStateChange = onStateChange;\n this.unsubscribe = null;\n this.listeners = nullListeners;\n }\n\n var _proto = Subscription.prototype;\n\n _proto.addNestedSub = function addNestedSub(listener) {\n this.trySubscribe();\n return this.listeners.subscribe(listener);\n };\n\n _proto.notifyNestedSubs = function notifyNestedSubs() {\n this.listeners.notify();\n };\n\n _proto.isSubscribed = function isSubscribed() {\n return Boolean(this.unsubscribe);\n };\n\n _proto.trySubscribe = function trySubscribe() {\n if (!this.unsubscribe) {\n this.unsubscribe = this.parentSub ? this.parentSub.addNestedSub(this.onStateChange) : this.store.subscribe(this.onStateChange);\n this.listeners = createListenerCollection();\n }\n };\n\n _proto.tryUnsubscribe = function tryUnsubscribe() {\n if (this.unsubscribe) {\n this.unsubscribe();\n this.unsubscribe = null;\n this.listeners.clear();\n this.listeners = nullListeners;\n }\n };\n\n return Subscription;\n}();\n\n\n\n/***/ }),\n/* 1087 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* unused harmony export createConnect */\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(167);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__ = __webpack_require__(168);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_connectAdvanced__ = __webpack_require__(304);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__utils_shallowEqual__ = __webpack_require__(1088);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__mapDispatchToProps__ = __webpack_require__(1089);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__mapStateToProps__ = __webpack_require__(1091);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__mergeProps__ = __webpack_require__(1092);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__selectorFactory__ = __webpack_require__(1093);\n\n\n\n\n\n\n\n\n/*\n connect is a facade over connectAdvanced. It turns its args into a compatible\n selectorFactory, which has the signature:\n\n (dispatch, options) => (nextState, nextOwnProps) => nextFinalProps\n \n connect passes its args to connectAdvanced as options, which will in turn pass them to\n selectorFactory each time a Connect component instance is instantiated or hot reloaded.\n\n selectorFactory returns a final props selector from its mapStateToProps,\n mapStateToPropsFactories, mapDispatchToProps, mapDispatchToPropsFactories, mergeProps,\n mergePropsFactories, and pure args.\n\n The resulting final props selector is called by the Connect component instance whenever\n it receives new props or store state.\n */\n\nfunction match(arg, factories, name) {\n for (var i = factories.length - 1; i >= 0; i--) {\n var result = factories[i](arg);\n if (result) return result;\n }\n\n return function (dispatch, options) {\n throw new Error(\"Invalid value of type \" + typeof arg + \" for \" + name + \" argument when connecting component \" + options.wrappedComponentName + \".\");\n };\n}\n\nfunction strictEqual(a, b) {\n return a === b;\n} // createConnect with default args builds the 'official' connect behavior. Calling it with\n// different options opens up some testing and extensibility scenarios\n\n\nfunction createConnect(_temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n _ref$connectHOC = _ref.connectHOC,\n connectHOC = _ref$connectHOC === void 0 ? __WEBPACK_IMPORTED_MODULE_2__components_connectAdvanced__[\"a\" /* default */] : _ref$connectHOC,\n _ref$mapStateToPropsF = _ref.mapStateToPropsFactories,\n mapStateToPropsFactories = _ref$mapStateToPropsF === void 0 ? __WEBPACK_IMPORTED_MODULE_5__mapStateToProps__[\"a\" /* default */] : _ref$mapStateToPropsF,\n _ref$mapDispatchToPro = _ref.mapDispatchToPropsFactories,\n mapDispatchToPropsFactories = _ref$mapDispatchToPro === void 0 ? __WEBPACK_IMPORTED_MODULE_4__mapDispatchToProps__[\"a\" /* default */] : _ref$mapDispatchToPro,\n _ref$mergePropsFactor = _ref.mergePropsFactories,\n mergePropsFactories = _ref$mergePropsFactor === void 0 ? __WEBPACK_IMPORTED_MODULE_6__mergeProps__[\"a\" /* default */] : _ref$mergePropsFactor,\n _ref$selectorFactory = _ref.selectorFactory,\n selectorFactory = _ref$selectorFactory === void 0 ? __WEBPACK_IMPORTED_MODULE_7__selectorFactory__[\"a\" /* default */] : _ref$selectorFactory;\n\n return function connect(mapStateToProps, mapDispatchToProps, mergeProps, _ref2) {\n if (_ref2 === void 0) {\n _ref2 = {};\n }\n\n var _ref3 = _ref2,\n _ref3$pure = _ref3.pure,\n pure = _ref3$pure === void 0 ? true : _ref3$pure,\n _ref3$areStatesEqual = _ref3.areStatesEqual,\n areStatesEqual = _ref3$areStatesEqual === void 0 ? strictEqual : _ref3$areStatesEqual,\n _ref3$areOwnPropsEqua = _ref3.areOwnPropsEqual,\n areOwnPropsEqual = _ref3$areOwnPropsEqua === void 0 ? __WEBPACK_IMPORTED_MODULE_3__utils_shallowEqual__[\"a\" /* default */] : _ref3$areOwnPropsEqua,\n _ref3$areStatePropsEq = _ref3.areStatePropsEqual,\n areStatePropsEqual = _ref3$areStatePropsEq === void 0 ? __WEBPACK_IMPORTED_MODULE_3__utils_shallowEqual__[\"a\" /* default */] : _ref3$areStatePropsEq,\n _ref3$areMergedPropsE = _ref3.areMergedPropsEqual,\n areMergedPropsEqual = _ref3$areMergedPropsE === void 0 ? __WEBPACK_IMPORTED_MODULE_3__utils_shallowEqual__[\"a\" /* default */] : _ref3$areMergedPropsE,\n extraOptions = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__[\"a\" /* default */])(_ref3, [\"pure\", \"areStatesEqual\", \"areOwnPropsEqual\", \"areStatePropsEqual\", \"areMergedPropsEqual\"]);\n\n var initMapStateToProps = match(mapStateToProps, mapStateToPropsFactories, 'mapStateToProps');\n var initMapDispatchToProps = match(mapDispatchToProps, mapDispatchToPropsFactories, 'mapDispatchToProps');\n var initMergeProps = match(mergeProps, mergePropsFactories, 'mergeProps');\n return connectHOC(selectorFactory, Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__[\"a\" /* default */])({\n // used in error messages\n methodName: 'connect',\n // used to compute Connect's displayName from the wrapped component's displayName.\n getDisplayName: function getDisplayName(name) {\n return \"Connect(\" + name + \")\";\n },\n // if mapStateToProps is falsy, the Connect component doesn't subscribe to store state changes\n shouldHandleStateChanges: Boolean(mapStateToProps),\n // passed through to selectorFactory\n initMapStateToProps: initMapStateToProps,\n initMapDispatchToProps: initMapDispatchToProps,\n initMergeProps: initMergeProps,\n pure: pure,\n areStatesEqual: areStatesEqual,\n areOwnPropsEqual: areOwnPropsEqual,\n areStatePropsEqual: areStatePropsEqual,\n areMergedPropsEqual: areMergedPropsEqual\n }, extraOptions));\n };\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (createConnect());\n\n/***/ }),\n/* 1088 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (immutable) */ __webpack_exports__[\"a\"] = shallowEqual;\nvar hasOwn = Object.prototype.hasOwnProperty;\n\nfunction is(x, y) {\n if (x === y) {\n return x !== 0 || y !== 0 || 1 / x === 1 / y;\n } else {\n return x !== x && y !== y;\n }\n}\n\nfunction shallowEqual(objA, objB) {\n if (is(objA, objB)) return true;\n\n if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {\n return false;\n }\n\n var keysA = Object.keys(objA);\n var keysB = Object.keys(objB);\n if (keysA.length !== keysB.length) return false;\n\n for (var i = 0; i < keysA.length; i++) {\n if (!hasOwn.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {\n return false;\n }\n }\n\n return true;\n}\n\n/***/ }),\n/* 1089 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* unused harmony export whenMapDispatchToPropsIsFunction */\n/* unused harmony export whenMapDispatchToPropsIsMissing */\n/* unused harmony export whenMapDispatchToPropsIsObject */\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_redux__ = __webpack_require__(301);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__wrapMapToProps__ = __webpack_require__(305);\n\n\nfunction whenMapDispatchToPropsIsFunction(mapDispatchToProps) {\n return typeof mapDispatchToProps === 'function' ? Object(__WEBPACK_IMPORTED_MODULE_1__wrapMapToProps__[\"b\" /* wrapMapToPropsFunc */])(mapDispatchToProps, 'mapDispatchToProps') : undefined;\n}\nfunction whenMapDispatchToPropsIsMissing(mapDispatchToProps) {\n return !mapDispatchToProps ? Object(__WEBPACK_IMPORTED_MODULE_1__wrapMapToProps__[\"a\" /* wrapMapToPropsConstant */])(function (dispatch) {\n return {\n dispatch: dispatch\n };\n }) : undefined;\n}\nfunction whenMapDispatchToPropsIsObject(mapDispatchToProps) {\n return mapDispatchToProps && typeof mapDispatchToProps === 'object' ? Object(__WEBPACK_IMPORTED_MODULE_1__wrapMapToProps__[\"a\" /* wrapMapToPropsConstant */])(function (dispatch) {\n return Object(__WEBPACK_IMPORTED_MODULE_0_redux__[\"b\" /* bindActionCreators */])(mapDispatchToProps, dispatch);\n }) : undefined;\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = ([whenMapDispatchToPropsIsFunction, whenMapDispatchToPropsIsMissing, whenMapDispatchToPropsIsObject]);\n\n/***/ }),\n/* 1090 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (immutable) */ __webpack_exports__[\"a\"] = isPlainObject;\n/**\n * @param {any} obj The object to inspect.\n * @returns {boolean} True if the argument appears to be a plain object.\n */\nfunction isPlainObject(obj) {\n if (typeof obj !== 'object' || obj === null) return false;\n var proto = Object.getPrototypeOf(obj);\n if (proto === null) return true;\n var baseProto = proto;\n\n while (Object.getPrototypeOf(baseProto) !== null) {\n baseProto = Object.getPrototypeOf(baseProto);\n }\n\n return proto === baseProto;\n}\n\n/***/ }),\n/* 1091 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* unused harmony export whenMapStateToPropsIsFunction */\n/* unused harmony export whenMapStateToPropsIsMissing */\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__wrapMapToProps__ = __webpack_require__(305);\n\nfunction whenMapStateToPropsIsFunction(mapStateToProps) {\n return typeof mapStateToProps === 'function' ? Object(__WEBPACK_IMPORTED_MODULE_0__wrapMapToProps__[\"b\" /* wrapMapToPropsFunc */])(mapStateToProps, 'mapStateToProps') : undefined;\n}\nfunction whenMapStateToPropsIsMissing(mapStateToProps) {\n return !mapStateToProps ? Object(__WEBPACK_IMPORTED_MODULE_0__wrapMapToProps__[\"a\" /* wrapMapToPropsConstant */])(function () {\n return {};\n }) : undefined;\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = ([whenMapStateToPropsIsFunction, whenMapStateToPropsIsMissing]);\n\n/***/ }),\n/* 1092 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export defaultMergeProps */\n/* unused harmony export wrapMergePropsFunc */\n/* unused harmony export whenMergePropsIsFunction */\n/* unused harmony export whenMergePropsIsOmitted */\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(167);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_verifyPlainObject__ = __webpack_require__(306);\n\n\nfunction defaultMergeProps(stateProps, dispatchProps, ownProps) {\n return Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__[\"a\" /* default */])({}, ownProps, stateProps, dispatchProps);\n}\nfunction wrapMergePropsFunc(mergeProps) {\n return function initMergePropsProxy(dispatch, _ref) {\n var displayName = _ref.displayName,\n pure = _ref.pure,\n areMergedPropsEqual = _ref.areMergedPropsEqual;\n var hasRunOnce = false;\n var mergedProps;\n return function mergePropsProxy(stateProps, dispatchProps, ownProps) {\n var nextMergedProps = mergeProps(stateProps, dispatchProps, ownProps);\n\n if (hasRunOnce) {\n if (!pure || !areMergedPropsEqual(nextMergedProps, mergedProps)) mergedProps = nextMergedProps;\n } else {\n hasRunOnce = true;\n mergedProps = nextMergedProps;\n if (process.env.NODE_ENV !== 'production') Object(__WEBPACK_IMPORTED_MODULE_1__utils_verifyPlainObject__[\"a\" /* default */])(mergedProps, displayName, 'mergeProps');\n }\n\n return mergedProps;\n };\n };\n}\nfunction whenMergePropsIsFunction(mergeProps) {\n return typeof mergeProps === 'function' ? wrapMergePropsFunc(mergeProps) : undefined;\n}\nfunction whenMergePropsIsOmitted(mergeProps) {\n return !mergeProps ? function () {\n return defaultMergeProps;\n } : undefined;\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = ([whenMergePropsIsFunction, whenMergePropsIsOmitted]);\n/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(5)))\n\n/***/ }),\n/* 1093 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export impureFinalPropsSelectorFactory */\n/* unused harmony export pureFinalPropsSelectorFactory */\n/* harmony export (immutable) */ __webpack_exports__[\"a\"] = finalPropsSelectorFactory;\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__ = __webpack_require__(168);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__verifySubselectors__ = __webpack_require__(1094);\n\n\nfunction impureFinalPropsSelectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch) {\n return function impureFinalPropsSelector(state, ownProps) {\n return mergeProps(mapStateToProps(state, ownProps), mapDispatchToProps(dispatch, ownProps), ownProps);\n };\n}\nfunction pureFinalPropsSelectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch, _ref) {\n var areStatesEqual = _ref.areStatesEqual,\n areOwnPropsEqual = _ref.areOwnPropsEqual,\n areStatePropsEqual = _ref.areStatePropsEqual;\n var hasRunAtLeastOnce = false;\n var state;\n var ownProps;\n var stateProps;\n var dispatchProps;\n var mergedProps;\n\n function handleFirstCall(firstState, firstOwnProps) {\n state = firstState;\n ownProps = firstOwnProps;\n stateProps = mapStateToProps(state, ownProps);\n dispatchProps = mapDispatchToProps(dispatch, ownProps);\n mergedProps = mergeProps(stateProps, dispatchProps, ownProps);\n hasRunAtLeastOnce = true;\n return mergedProps;\n }\n\n function handleNewPropsAndNewState() {\n stateProps = mapStateToProps(state, ownProps);\n if (mapDispatchToProps.dependsOnOwnProps) dispatchProps = mapDispatchToProps(dispatch, ownProps);\n mergedProps = mergeProps(stateProps, dispatchProps, ownProps);\n return mergedProps;\n }\n\n function handleNewProps() {\n if (mapStateToProps.dependsOnOwnProps) stateProps = mapStateToProps(state, ownProps);\n if (mapDispatchToProps.dependsOnOwnProps) dispatchProps = mapDispatchToProps(dispatch, ownProps);\n mergedProps = mergeProps(stateProps, dispatchProps, ownProps);\n return mergedProps;\n }\n\n function handleNewState() {\n var nextStateProps = mapStateToProps(state, ownProps);\n var statePropsChanged = !areStatePropsEqual(nextStateProps, stateProps);\n stateProps = nextStateProps;\n if (statePropsChanged) mergedProps = mergeProps(stateProps, dispatchProps, ownProps);\n return mergedProps;\n }\n\n function handleSubsequentCalls(nextState, nextOwnProps) {\n var propsChanged = !areOwnPropsEqual(nextOwnProps, ownProps);\n var stateChanged = !areStatesEqual(nextState, state);\n state = nextState;\n ownProps = nextOwnProps;\n if (propsChanged && stateChanged) return handleNewPropsAndNewState();\n if (propsChanged) return handleNewProps();\n if (stateChanged) return handleNewState();\n return mergedProps;\n }\n\n return function pureFinalPropsSelector(nextState, nextOwnProps) {\n return hasRunAtLeastOnce ? handleSubsequentCalls(nextState, nextOwnProps) : handleFirstCall(nextState, nextOwnProps);\n };\n} // TODO: Add more comments\n// If pure is true, the selector returned by selectorFactory will memoize its results,\n// allowing connectAdvanced's shouldComponentUpdate to return false if final\n// props have not changed. If false, the selector will always return a new\n// object and shouldComponentUpdate will always return true.\n\nfunction finalPropsSelectorFactory(dispatch, _ref2) {\n var initMapStateToProps = _ref2.initMapStateToProps,\n initMapDispatchToProps = _ref2.initMapDispatchToProps,\n initMergeProps = _ref2.initMergeProps,\n options = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__[\"a\" /* default */])(_ref2, [\"initMapStateToProps\", \"initMapDispatchToProps\", \"initMergeProps\"]);\n\n var mapStateToProps = initMapStateToProps(dispatch, options);\n var mapDispatchToProps = initMapDispatchToProps(dispatch, options);\n var mergeProps = initMergeProps(dispatch, options);\n\n if (process.env.NODE_ENV !== 'production') {\n Object(__WEBPACK_IMPORTED_MODULE_1__verifySubselectors__[\"a\" /* default */])(mapStateToProps, mapDispatchToProps, mergeProps, options.displayName);\n }\n\n var selectorFactory = options.pure ? pureFinalPropsSelectorFactory : impureFinalPropsSelectorFactory;\n return selectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch, options);\n}\n/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(5)))\n\n/***/ }),\n/* 1094 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (immutable) */ __webpack_exports__[\"a\"] = verifySubselectors;\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_warning__ = __webpack_require__(166);\n\n\nfunction verify(selector, methodName, displayName) {\n if (!selector) {\n throw new Error(\"Unexpected value for \" + methodName + \" in \" + displayName + \".\");\n } else if (methodName === 'mapStateToProps' || methodName === 'mapDispatchToProps') {\n if (!selector.hasOwnProperty('dependsOnOwnProps')) {\n Object(__WEBPACK_IMPORTED_MODULE_0__utils_warning__[\"a\" /* default */])(\"The selector for \" + methodName + \" of \" + displayName + \" did not specify a value for dependsOnOwnProps.\");\n }\n }\n}\n\nfunction verifySubselectors(mapStateToProps, mapDispatchToProps, mergeProps, displayName) {\n verify(mapStateToProps, 'mapStateToProps', displayName);\n verify(mapDispatchToProps, 'mapDispatchToProps', displayName);\n verify(mergeProps, 'mergeProps', displayName);\n}\n\n/***/ }),\n/* 1095 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nfunction _interopRequire(obj) { return obj && obj.__esModule ? obj['default'] : obj; }\n\nvar _Motion = __webpack_require__(1096);\n\nexports.Motion = _interopRequire(_Motion);\n\nvar _StaggeredMotion = __webpack_require__(1097);\n\nexports.StaggeredMotion = _interopRequire(_StaggeredMotion);\n\nvar _TransitionMotion = __webpack_require__(1098);\n\nexports.TransitionMotion = _interopRequire(_TransitionMotion);\n\nvar _spring = __webpack_require__(1100);\n\nexports.spring = _interopRequire(_spring);\n\nvar _presets = __webpack_require__(307);\n\nexports.presets = _interopRequire(_presets);\n\nvar _stripStyle = __webpack_require__(106);\n\nexports.stripStyle = _interopRequire(_stripStyle);\n\n// deprecated, dummy warning function\n\nvar _reorderKeys = __webpack_require__(1101);\n\nexports.reorderKeys = _interopRequire(_reorderKeys);\n\n/***/ }),\n/* 1096 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar _mapToZero = __webpack_require__(169);\n\nvar _mapToZero2 = _interopRequireDefault(_mapToZero);\n\nvar _stripStyle = __webpack_require__(106);\n\nvar _stripStyle2 = _interopRequireDefault(_stripStyle);\n\nvar _stepper3 = __webpack_require__(170);\n\nvar _stepper4 = _interopRequireDefault(_stepper3);\n\nvar _performanceNow = __webpack_require__(171);\n\nvar _performanceNow2 = _interopRequireDefault(_performanceNow);\n\nvar _raf = __webpack_require__(36);\n\nvar _raf2 = _interopRequireDefault(_raf);\n\nvar _shouldStopAnimation = __webpack_require__(172);\n\nvar _shouldStopAnimation2 = _interopRequireDefault(_shouldStopAnimation);\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar msPerFrame = 1000 / 60;\n\nvar Motion = (function (_React$Component) {\n _inherits(Motion, _React$Component);\n\n _createClass(Motion, null, [{\n key: 'propTypes',\n value: {\n // TOOD: warn against putting a config in here\n defaultStyle: _propTypes2['default'].objectOf(_propTypes2['default'].number),\n style: _propTypes2['default'].objectOf(_propTypes2['default'].oneOfType([_propTypes2['default'].number, _propTypes2['default'].object])).isRequired,\n children: _propTypes2['default'].func.isRequired,\n onRest: _propTypes2['default'].func\n },\n enumerable: true\n }]);\n\n function Motion(props) {\n var _this = this;\n\n _classCallCheck(this, Motion);\n\n _React$Component.call(this, props);\n this.wasAnimating = false;\n this.animationID = null;\n this.prevTime = 0;\n this.accumulatedTime = 0;\n this.unreadPropStyle = null;\n\n this.clearUnreadPropStyle = function (destStyle) {\n var dirty = false;\n var _state = _this.state;\n var currentStyle = _state.currentStyle;\n var currentVelocity = _state.currentVelocity;\n var lastIdealStyle = _state.lastIdealStyle;\n var lastIdealVelocity = _state.lastIdealVelocity;\n\n for (var key in destStyle) {\n if (!Object.prototype.hasOwnProperty.call(destStyle, key)) {\n continue;\n }\n\n var styleValue = destStyle[key];\n if (typeof styleValue === 'number') {\n if (!dirty) {\n dirty = true;\n currentStyle = _extends({}, currentStyle);\n currentVelocity = _extends({}, currentVelocity);\n lastIdealStyle = _extends({}, lastIdealStyle);\n lastIdealVelocity = _extends({}, lastIdealVelocity);\n }\n\n currentStyle[key] = styleValue;\n currentVelocity[key] = 0;\n lastIdealStyle[key] = styleValue;\n lastIdealVelocity[key] = 0;\n }\n }\n\n if (dirty) {\n _this.setState({ currentStyle: currentStyle, currentVelocity: currentVelocity, lastIdealStyle: lastIdealStyle, lastIdealVelocity: lastIdealVelocity });\n }\n };\n\n this.startAnimationIfNecessary = function () {\n // TODO: when config is {a: 10} and dest is {a: 10} do we raf once and\n // call cb? No, otherwise accidental parent rerender causes cb trigger\n _this.animationID = _raf2['default'](function (timestamp) {\n // check if we need to animate in the first place\n var propsStyle = _this.props.style;\n if (_shouldStopAnimation2['default'](_this.state.currentStyle, propsStyle, _this.state.currentVelocity)) {\n if (_this.wasAnimating && _this.props.onRest) {\n _this.props.onRest();\n }\n\n // no need to cancel animationID here; shouldn't have any in flight\n _this.animationID = null;\n _this.wasAnimating = false;\n _this.accumulatedTime = 0;\n return;\n }\n\n _this.wasAnimating = true;\n\n var currentTime = timestamp || _performanceNow2['default']();\n var timeDelta = currentTime - _this.prevTime;\n _this.prevTime = currentTime;\n _this.accumulatedTime = _this.accumulatedTime + timeDelta;\n // more than 10 frames? prolly switched browser tab. Restart\n if (_this.accumulatedTime > msPerFrame * 10) {\n _this.accumulatedTime = 0;\n }\n\n if (_this.accumulatedTime === 0) {\n // no need to cancel animationID here; shouldn't have any in flight\n _this.animationID = null;\n _this.startAnimationIfNecessary();\n return;\n }\n\n var currentFrameCompletion = (_this.accumulatedTime - Math.floor(_this.accumulatedTime / msPerFrame) * msPerFrame) / msPerFrame;\n var framesToCatchUp = Math.floor(_this.accumulatedTime / msPerFrame);\n\n var newLastIdealStyle = {};\n var newLastIdealVelocity = {};\n var newCurrentStyle = {};\n var newCurrentVelocity = {};\n\n for (var key in propsStyle) {\n if (!Object.prototype.hasOwnProperty.call(propsStyle, key)) {\n continue;\n }\n\n var styleValue = propsStyle[key];\n if (typeof styleValue === 'number') {\n newCurrentStyle[key] = styleValue;\n newCurrentVelocity[key] = 0;\n newLastIdealStyle[key] = styleValue;\n newLastIdealVelocity[key] = 0;\n } else {\n var newLastIdealStyleValue = _this.state.lastIdealStyle[key];\n var newLastIdealVelocityValue = _this.state.lastIdealVelocity[key];\n for (var i = 0; i < framesToCatchUp; i++) {\n var _stepper = _stepper4['default'](msPerFrame / 1000, newLastIdealStyleValue, newLastIdealVelocityValue, styleValue.val, styleValue.stiffness, styleValue.damping, styleValue.precision);\n\n newLastIdealStyleValue = _stepper[0];\n newLastIdealVelocityValue = _stepper[1];\n }\n\n var _stepper2 = _stepper4['default'](msPerFrame / 1000, newLastIdealStyleValue, newLastIdealVelocityValue, styleValue.val, styleValue.stiffness, styleValue.damping, styleValue.precision);\n\n var nextIdealX = _stepper2[0];\n var nextIdealV = _stepper2[1];\n\n newCurrentStyle[key] = newLastIdealStyleValue + (nextIdealX - newLastIdealStyleValue) * currentFrameCompletion;\n newCurrentVelocity[key] = newLastIdealVelocityValue + (nextIdealV - newLastIdealVelocityValue) * currentFrameCompletion;\n newLastIdealStyle[key] = newLastIdealStyleValue;\n newLastIdealVelocity[key] = newLastIdealVelocityValue;\n }\n }\n\n _this.animationID = null;\n // the amount we're looped over above\n _this.accumulatedTime -= framesToCatchUp * msPerFrame;\n\n _this.setState({\n currentStyle: newCurrentStyle,\n currentVelocity: newCurrentVelocity,\n lastIdealStyle: newLastIdealStyle,\n lastIdealVelocity: newLastIdealVelocity\n });\n\n _this.unreadPropStyle = null;\n\n _this.startAnimationIfNecessary();\n });\n };\n\n this.state = this.defaultState();\n }\n\n Motion.prototype.defaultState = function defaultState() {\n var _props = this.props;\n var defaultStyle = _props.defaultStyle;\n var style = _props.style;\n\n var currentStyle = defaultStyle || _stripStyle2['default'](style);\n var currentVelocity = _mapToZero2['default'](currentStyle);\n return {\n currentStyle: currentStyle,\n currentVelocity: currentVelocity,\n lastIdealStyle: currentStyle,\n lastIdealVelocity: currentVelocity\n };\n };\n\n // it's possible that currentStyle's value is stale: if props is immediately\n // changed from 0 to 400 to spring(0) again, the async currentStyle is still\n // at 0 (didn't have time to tick and interpolate even once). If we naively\n // compare currentStyle with destVal it'll be 0 === 0 (no animation, stop).\n // In reality currentStyle should be 400\n\n Motion.prototype.componentDidMount = function componentDidMount() {\n this.prevTime = _performanceNow2['default']();\n this.startAnimationIfNecessary();\n };\n\n Motion.prototype.componentWillReceiveProps = function componentWillReceiveProps(props) {\n if (this.unreadPropStyle != null) {\n // previous props haven't had the chance to be set yet; set them here\n this.clearUnreadPropStyle(this.unreadPropStyle);\n }\n\n this.unreadPropStyle = props.style;\n if (this.animationID == null) {\n this.prevTime = _performanceNow2['default']();\n this.startAnimationIfNecessary();\n }\n };\n\n Motion.prototype.componentWillUnmount = function componentWillUnmount() {\n if (this.animationID != null) {\n _raf2['default'].cancel(this.animationID);\n this.animationID = null;\n }\n };\n\n Motion.prototype.render = function render() {\n var renderedChildren = this.props.children(this.state.currentStyle);\n return renderedChildren && _react2['default'].Children.only(renderedChildren);\n };\n\n return Motion;\n})(_react2['default'].Component);\n\nexports['default'] = Motion;\nmodule.exports = exports['default'];\n\n// after checking for unreadPropStyle != null, we manually go set the\n// non-interpolating values (those that are a number, without a spring\n// config)\n\n/***/ }),\n/* 1097 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar _mapToZero = __webpack_require__(169);\n\nvar _mapToZero2 = _interopRequireDefault(_mapToZero);\n\nvar _stripStyle = __webpack_require__(106);\n\nvar _stripStyle2 = _interopRequireDefault(_stripStyle);\n\nvar _stepper3 = __webpack_require__(170);\n\nvar _stepper4 = _interopRequireDefault(_stepper3);\n\nvar _performanceNow = __webpack_require__(171);\n\nvar _performanceNow2 = _interopRequireDefault(_performanceNow);\n\nvar _raf = __webpack_require__(36);\n\nvar _raf2 = _interopRequireDefault(_raf);\n\nvar _shouldStopAnimation = __webpack_require__(172);\n\nvar _shouldStopAnimation2 = _interopRequireDefault(_shouldStopAnimation);\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar msPerFrame = 1000 / 60;\n\nfunction shouldStopAnimationAll(currentStyles, styles, currentVelocities) {\n for (var i = 0; i < currentStyles.length; i++) {\n if (!_shouldStopAnimation2['default'](currentStyles[i], styles[i], currentVelocities[i])) {\n return false;\n }\n }\n return true;\n}\n\nvar StaggeredMotion = (function (_React$Component) {\n _inherits(StaggeredMotion, _React$Component);\n\n _createClass(StaggeredMotion, null, [{\n key: 'propTypes',\n value: {\n // TOOD: warn against putting a config in here\n defaultStyles: _propTypes2['default'].arrayOf(_propTypes2['default'].objectOf(_propTypes2['default'].number)),\n styles: _propTypes2['default'].func.isRequired,\n children: _propTypes2['default'].func.isRequired\n },\n enumerable: true\n }]);\n\n function StaggeredMotion(props) {\n var _this = this;\n\n _classCallCheck(this, StaggeredMotion);\n\n _React$Component.call(this, props);\n this.animationID = null;\n this.prevTime = 0;\n this.accumulatedTime = 0;\n this.unreadPropStyles = null;\n\n this.clearUnreadPropStyle = function (unreadPropStyles) {\n var _state = _this.state;\n var currentStyles = _state.currentStyles;\n var currentVelocities = _state.currentVelocities;\n var lastIdealStyles = _state.lastIdealStyles;\n var lastIdealVelocities = _state.lastIdealVelocities;\n\n var someDirty = false;\n for (var i = 0; i < unreadPropStyles.length; i++) {\n var unreadPropStyle = unreadPropStyles[i];\n var dirty = false;\n\n for (var key in unreadPropStyle) {\n if (!Object.prototype.hasOwnProperty.call(unreadPropStyle, key)) {\n continue;\n }\n\n var styleValue = unreadPropStyle[key];\n if (typeof styleValue === 'number') {\n if (!dirty) {\n dirty = true;\n someDirty = true;\n currentStyles[i] = _extends({}, currentStyles[i]);\n currentVelocities[i] = _extends({}, currentVelocities[i]);\n lastIdealStyles[i] = _extends({}, lastIdealStyles[i]);\n lastIdealVelocities[i] = _extends({}, lastIdealVelocities[i]);\n }\n currentStyles[i][key] = styleValue;\n currentVelocities[i][key] = 0;\n lastIdealStyles[i][key] = styleValue;\n lastIdealVelocities[i][key] = 0;\n }\n }\n }\n\n if (someDirty) {\n _this.setState({ currentStyles: currentStyles, currentVelocities: currentVelocities, lastIdealStyles: lastIdealStyles, lastIdealVelocities: lastIdealVelocities });\n }\n };\n\n this.startAnimationIfNecessary = function () {\n // TODO: when config is {a: 10} and dest is {a: 10} do we raf once and\n // call cb? No, otherwise accidental parent rerender causes cb trigger\n _this.animationID = _raf2['default'](function (timestamp) {\n var destStyles = _this.props.styles(_this.state.lastIdealStyles);\n\n // check if we need to animate in the first place\n if (shouldStopAnimationAll(_this.state.currentStyles, destStyles, _this.state.currentVelocities)) {\n // no need to cancel animationID here; shouldn't have any in flight\n _this.animationID = null;\n _this.accumulatedTime = 0;\n return;\n }\n\n var currentTime = timestamp || _performanceNow2['default']();\n var timeDelta = currentTime - _this.prevTime;\n _this.prevTime = currentTime;\n _this.accumulatedTime = _this.accumulatedTime + timeDelta;\n // more than 10 frames? prolly switched browser tab. Restart\n if (_this.accumulatedTime > msPerFrame * 10) {\n _this.accumulatedTime = 0;\n }\n\n if (_this.accumulatedTime === 0) {\n // no need to cancel animationID here; shouldn't have any in flight\n _this.animationID = null;\n _this.startAnimationIfNecessary();\n return;\n }\n\n var currentFrameCompletion = (_this.accumulatedTime - Math.floor(_this.accumulatedTime / msPerFrame) * msPerFrame) / msPerFrame;\n var framesToCatchUp = Math.floor(_this.accumulatedTime / msPerFrame);\n\n var newLastIdealStyles = [];\n var newLastIdealVelocities = [];\n var newCurrentStyles = [];\n var newCurrentVelocities = [];\n\n for (var i = 0; i < destStyles.length; i++) {\n var destStyle = destStyles[i];\n var newCurrentStyle = {};\n var newCurrentVelocity = {};\n var newLastIdealStyle = {};\n var newLastIdealVelocity = {};\n\n for (var key in destStyle) {\n if (!Object.prototype.hasOwnProperty.call(destStyle, key)) {\n continue;\n }\n\n var styleValue = destStyle[key];\n if (typeof styleValue === 'number') {\n newCurrentStyle[key] = styleValue;\n newCurrentVelocity[key] = 0;\n newLastIdealStyle[key] = styleValue;\n newLastIdealVelocity[key] = 0;\n } else {\n var newLastIdealStyleValue = _this.state.lastIdealStyles[i][key];\n var newLastIdealVelocityValue = _this.state.lastIdealVelocities[i][key];\n for (var j = 0; j < framesToCatchUp; j++) {\n var _stepper = _stepper4['default'](msPerFrame / 1000, newLastIdealStyleValue, newLastIdealVelocityValue, styleValue.val, styleValue.stiffness, styleValue.damping, styleValue.precision);\n\n newLastIdealStyleValue = _stepper[0];\n newLastIdealVelocityValue = _stepper[1];\n }\n\n var _stepper2 = _stepper4['default'](msPerFrame / 1000, newLastIdealStyleValue, newLastIdealVelocityValue, styleValue.val, styleValue.stiffness, styleValue.damping, styleValue.precision);\n\n var nextIdealX = _stepper2[0];\n var nextIdealV = _stepper2[1];\n\n newCurrentStyle[key] = newLastIdealStyleValue + (nextIdealX - newLastIdealStyleValue) * currentFrameCompletion;\n newCurrentVelocity[key] = newLastIdealVelocityValue + (nextIdealV - newLastIdealVelocityValue) * currentFrameCompletion;\n newLastIdealStyle[key] = newLastIdealStyleValue;\n newLastIdealVelocity[key] = newLastIdealVelocityValue;\n }\n }\n\n newCurrentStyles[i] = newCurrentStyle;\n newCurrentVelocities[i] = newCurrentVelocity;\n newLastIdealStyles[i] = newLastIdealStyle;\n newLastIdealVelocities[i] = newLastIdealVelocity;\n }\n\n _this.animationID = null;\n // the amount we're looped over above\n _this.accumulatedTime -= framesToCatchUp * msPerFrame;\n\n _this.setState({\n currentStyles: newCurrentStyles,\n currentVelocities: newCurrentVelocities,\n lastIdealStyles: newLastIdealStyles,\n lastIdealVelocities: newLastIdealVelocities\n });\n\n _this.unreadPropStyles = null;\n\n _this.startAnimationIfNecessary();\n });\n };\n\n this.state = this.defaultState();\n }\n\n StaggeredMotion.prototype.defaultState = function defaultState() {\n var _props = this.props;\n var defaultStyles = _props.defaultStyles;\n var styles = _props.styles;\n\n var currentStyles = defaultStyles || styles().map(_stripStyle2['default']);\n var currentVelocities = currentStyles.map(function (currentStyle) {\n return _mapToZero2['default'](currentStyle);\n });\n return {\n currentStyles: currentStyles,\n currentVelocities: currentVelocities,\n lastIdealStyles: currentStyles,\n lastIdealVelocities: currentVelocities\n };\n };\n\n StaggeredMotion.prototype.componentDidMount = function componentDidMount() {\n this.prevTime = _performanceNow2['default']();\n this.startAnimationIfNecessary();\n };\n\n StaggeredMotion.prototype.componentWillReceiveProps = function componentWillReceiveProps(props) {\n if (this.unreadPropStyles != null) {\n // previous props haven't had the chance to be set yet; set them here\n this.clearUnreadPropStyle(this.unreadPropStyles);\n }\n\n this.unreadPropStyles = props.styles(this.state.lastIdealStyles);\n if (this.animationID == null) {\n this.prevTime = _performanceNow2['default']();\n this.startAnimationIfNecessary();\n }\n };\n\n StaggeredMotion.prototype.componentWillUnmount = function componentWillUnmount() {\n if (this.animationID != null) {\n _raf2['default'].cancel(this.animationID);\n this.animationID = null;\n }\n };\n\n StaggeredMotion.prototype.render = function render() {\n var renderedChildren = this.props.children(this.state.currentStyles);\n return renderedChildren && _react2['default'].Children.only(renderedChildren);\n };\n\n return StaggeredMotion;\n})(_react2['default'].Component);\n\nexports['default'] = StaggeredMotion;\nmodule.exports = exports['default'];\n\n// it's possible that currentStyle's value is stale: if props is immediately\n// changed from 0 to 400 to spring(0) again, the async currentStyle is still\n// at 0 (didn't have time to tick and interpolate even once). If we naively\n// compare currentStyle with destVal it'll be 0 === 0 (no animation, stop).\n// In reality currentStyle should be 400\n\n// after checking for unreadPropStyles != null, we manually go set the\n// non-interpolating values (those that are a number, without a spring\n// config)\n\n/***/ }),\n/* 1098 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar _mapToZero = __webpack_require__(169);\n\nvar _mapToZero2 = _interopRequireDefault(_mapToZero);\n\nvar _stripStyle = __webpack_require__(106);\n\nvar _stripStyle2 = _interopRequireDefault(_stripStyle);\n\nvar _stepper3 = __webpack_require__(170);\n\nvar _stepper4 = _interopRequireDefault(_stepper3);\n\nvar _mergeDiff = __webpack_require__(1099);\n\nvar _mergeDiff2 = _interopRequireDefault(_mergeDiff);\n\nvar _performanceNow = __webpack_require__(171);\n\nvar _performanceNow2 = _interopRequireDefault(_performanceNow);\n\nvar _raf = __webpack_require__(36);\n\nvar _raf2 = _interopRequireDefault(_raf);\n\nvar _shouldStopAnimation = __webpack_require__(172);\n\nvar _shouldStopAnimation2 = _interopRequireDefault(_shouldStopAnimation);\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar msPerFrame = 1000 / 60;\n\n// the children function & (potential) styles function asks as param an\n// Array, where each TransitionPlainStyle is of the format\n// {key: string, data?: any, style: PlainStyle}. However, the way we keep\n// internal states doesn't contain such a data structure (check the state and\n// TransitionMotionState). So when children function and others ask for such\n// data we need to generate them on the fly by combining mergedPropsStyles and\n// currentStyles/lastIdealStyles\nfunction rehydrateStyles(mergedPropsStyles, unreadPropStyles, plainStyles) {\n // Copy the value to a `const` so that Flow understands that the const won't\n // change and will be non-nullable in the callback below.\n var cUnreadPropStyles = unreadPropStyles;\n if (cUnreadPropStyles == null) {\n return mergedPropsStyles.map(function (mergedPropsStyle, i) {\n return {\n key: mergedPropsStyle.key,\n data: mergedPropsStyle.data,\n style: plainStyles[i]\n };\n });\n }\n return mergedPropsStyles.map(function (mergedPropsStyle, i) {\n for (var j = 0; j < cUnreadPropStyles.length; j++) {\n if (cUnreadPropStyles[j].key === mergedPropsStyle.key) {\n return {\n key: cUnreadPropStyles[j].key,\n data: cUnreadPropStyles[j].data,\n style: plainStyles[i]\n };\n }\n }\n return { key: mergedPropsStyle.key, data: mergedPropsStyle.data, style: plainStyles[i] };\n });\n}\n\nfunction shouldStopAnimationAll(currentStyles, destStyles, currentVelocities, mergedPropsStyles) {\n if (mergedPropsStyles.length !== destStyles.length) {\n return false;\n }\n\n for (var i = 0; i < mergedPropsStyles.length; i++) {\n if (mergedPropsStyles[i].key !== destStyles[i].key) {\n return false;\n }\n }\n\n // we have the invariant that mergedPropsStyles and\n // currentStyles/currentVelocities/last* are synced in terms of cells, see\n // mergeAndSync comment for more info\n for (var i = 0; i < mergedPropsStyles.length; i++) {\n if (!_shouldStopAnimation2['default'](currentStyles[i], destStyles[i].style, currentVelocities[i])) {\n return false;\n }\n }\n\n return true;\n}\n\n// core key merging logic\n\n// things to do: say previously merged style is {a, b}, dest style (prop) is {b,\n// c}, previous current (interpolating) style is {a, b}\n// **invariant**: current[i] corresponds to merged[i] in terms of key\n\n// steps:\n// turn merged style into {a?, b, c}\n// add c, value of c is destStyles.c\n// maybe remove a, aka call willLeave(a), then merged is either {b, c} or {a, b, c}\n// turn current (interpolating) style from {a, b} into {a?, b, c}\n// maybe remove a\n// certainly add c, value of c is willEnter(c)\n// loop over merged and construct new current\n// dest doesn't change, that's owner's\nfunction mergeAndSync(willEnter, willLeave, didLeave, oldMergedPropsStyles, destStyles, oldCurrentStyles, oldCurrentVelocities, oldLastIdealStyles, oldLastIdealVelocities) {\n var newMergedPropsStyles = _mergeDiff2['default'](oldMergedPropsStyles, destStyles, function (oldIndex, oldMergedPropsStyle) {\n var leavingStyle = willLeave(oldMergedPropsStyle);\n if (leavingStyle == null) {\n didLeave({ key: oldMergedPropsStyle.key, data: oldMergedPropsStyle.data });\n return null;\n }\n if (_shouldStopAnimation2['default'](oldCurrentStyles[oldIndex], leavingStyle, oldCurrentVelocities[oldIndex])) {\n didLeave({ key: oldMergedPropsStyle.key, data: oldMergedPropsStyle.data });\n return null;\n }\n return { key: oldMergedPropsStyle.key, data: oldMergedPropsStyle.data, style: leavingStyle };\n });\n\n var newCurrentStyles = [];\n var newCurrentVelocities = [];\n var newLastIdealStyles = [];\n var newLastIdealVelocities = [];\n for (var i = 0; i < newMergedPropsStyles.length; i++) {\n var newMergedPropsStyleCell = newMergedPropsStyles[i];\n var foundOldIndex = null;\n for (var j = 0; j < oldMergedPropsStyles.length; j++) {\n if (oldMergedPropsStyles[j].key === newMergedPropsStyleCell.key) {\n foundOldIndex = j;\n break;\n }\n }\n // TODO: key search code\n if (foundOldIndex == null) {\n var plainStyle = willEnter(newMergedPropsStyleCell);\n newCurrentStyles[i] = plainStyle;\n newLastIdealStyles[i] = plainStyle;\n\n var velocity = _mapToZero2['default'](newMergedPropsStyleCell.style);\n newCurrentVelocities[i] = velocity;\n newLastIdealVelocities[i] = velocity;\n } else {\n newCurrentStyles[i] = oldCurrentStyles[foundOldIndex];\n newLastIdealStyles[i] = oldLastIdealStyles[foundOldIndex];\n newCurrentVelocities[i] = oldCurrentVelocities[foundOldIndex];\n newLastIdealVelocities[i] = oldLastIdealVelocities[foundOldIndex];\n }\n }\n\n return [newMergedPropsStyles, newCurrentStyles, newCurrentVelocities, newLastIdealStyles, newLastIdealVelocities];\n}\n\nvar TransitionMotion = (function (_React$Component) {\n _inherits(TransitionMotion, _React$Component);\n\n _createClass(TransitionMotion, null, [{\n key: 'propTypes',\n value: {\n defaultStyles: _propTypes2['default'].arrayOf(_propTypes2['default'].shape({\n key: _propTypes2['default'].string.isRequired,\n data: _propTypes2['default'].any,\n style: _propTypes2['default'].objectOf(_propTypes2['default'].number).isRequired\n })),\n styles: _propTypes2['default'].oneOfType([_propTypes2['default'].func, _propTypes2['default'].arrayOf(_propTypes2['default'].shape({\n key: _propTypes2['default'].string.isRequired,\n data: _propTypes2['default'].any,\n style: _propTypes2['default'].objectOf(_propTypes2['default'].oneOfType([_propTypes2['default'].number, _propTypes2['default'].object])).isRequired\n }))]).isRequired,\n children: _propTypes2['default'].func.isRequired,\n willEnter: _propTypes2['default'].func,\n willLeave: _propTypes2['default'].func,\n didLeave: _propTypes2['default'].func\n },\n enumerable: true\n }, {\n key: 'defaultProps',\n value: {\n willEnter: function willEnter(styleThatEntered) {\n return _stripStyle2['default'](styleThatEntered.style);\n },\n // recall: returning null makes the current unmounting TransitionStyle\n // disappear immediately\n willLeave: function willLeave() {\n return null;\n },\n didLeave: function didLeave() {}\n },\n enumerable: true\n }]);\n\n function TransitionMotion(props) {\n var _this = this;\n\n _classCallCheck(this, TransitionMotion);\n\n _React$Component.call(this, props);\n this.unmounting = false;\n this.animationID = null;\n this.prevTime = 0;\n this.accumulatedTime = 0;\n this.unreadPropStyles = null;\n\n this.clearUnreadPropStyle = function (unreadPropStyles) {\n var _mergeAndSync = mergeAndSync(_this.props.willEnter, _this.props.willLeave, _this.props.didLeave, _this.state.mergedPropsStyles, unreadPropStyles, _this.state.currentStyles, _this.state.currentVelocities, _this.state.lastIdealStyles, _this.state.lastIdealVelocities);\n\n var mergedPropsStyles = _mergeAndSync[0];\n var currentStyles = _mergeAndSync[1];\n var currentVelocities = _mergeAndSync[2];\n var lastIdealStyles = _mergeAndSync[3];\n var lastIdealVelocities = _mergeAndSync[4];\n\n for (var i = 0; i < unreadPropStyles.length; i++) {\n var unreadPropStyle = unreadPropStyles[i].style;\n var dirty = false;\n\n for (var key in unreadPropStyle) {\n if (!Object.prototype.hasOwnProperty.call(unreadPropStyle, key)) {\n continue;\n }\n\n var styleValue = unreadPropStyle[key];\n if (typeof styleValue === 'number') {\n if (!dirty) {\n dirty = true;\n currentStyles[i] = _extends({}, currentStyles[i]);\n currentVelocities[i] = _extends({}, currentVelocities[i]);\n lastIdealStyles[i] = _extends({}, lastIdealStyles[i]);\n lastIdealVelocities[i] = _extends({}, lastIdealVelocities[i]);\n mergedPropsStyles[i] = {\n key: mergedPropsStyles[i].key,\n data: mergedPropsStyles[i].data,\n style: _extends({}, mergedPropsStyles[i].style)\n };\n }\n currentStyles[i][key] = styleValue;\n currentVelocities[i][key] = 0;\n lastIdealStyles[i][key] = styleValue;\n lastIdealVelocities[i][key] = 0;\n mergedPropsStyles[i].style[key] = styleValue;\n }\n }\n }\n\n // unlike the other 2 components, we can't detect staleness and optionally\n // opt out of setState here. each style object's data might contain new\n // stuff we're not/cannot compare\n _this.setState({\n currentStyles: currentStyles,\n currentVelocities: currentVelocities,\n mergedPropsStyles: mergedPropsStyles,\n lastIdealStyles: lastIdealStyles,\n lastIdealVelocities: lastIdealVelocities\n });\n };\n\n this.startAnimationIfNecessary = function () {\n if (_this.unmounting) {\n return;\n }\n\n // TODO: when config is {a: 10} and dest is {a: 10} do we raf once and\n // call cb? No, otherwise accidental parent rerender causes cb trigger\n _this.animationID = _raf2['default'](function (timestamp) {\n // https://github.com/chenglou/react-motion/pull/420\n // > if execution passes the conditional if (this.unmounting), then\n // executes async defaultRaf and after that component unmounts and after\n // that the callback of defaultRaf is called, then setState will be called\n // on unmounted component.\n if (_this.unmounting) {\n return;\n }\n\n var propStyles = _this.props.styles;\n var destStyles = typeof propStyles === 'function' ? propStyles(rehydrateStyles(_this.state.mergedPropsStyles, _this.unreadPropStyles, _this.state.lastIdealStyles)) : propStyles;\n\n // check if we need to animate in the first place\n if (shouldStopAnimationAll(_this.state.currentStyles, destStyles, _this.state.currentVelocities, _this.state.mergedPropsStyles)) {\n // no need to cancel animationID here; shouldn't have any in flight\n _this.animationID = null;\n _this.accumulatedTime = 0;\n return;\n }\n\n var currentTime = timestamp || _performanceNow2['default']();\n var timeDelta = currentTime - _this.prevTime;\n _this.prevTime = currentTime;\n _this.accumulatedTime = _this.accumulatedTime + timeDelta;\n // more than 10 frames? prolly switched browser tab. Restart\n if (_this.accumulatedTime > msPerFrame * 10) {\n _this.accumulatedTime = 0;\n }\n\n if (_this.accumulatedTime === 0) {\n // no need to cancel animationID here; shouldn't have any in flight\n _this.animationID = null;\n _this.startAnimationIfNecessary();\n return;\n }\n\n var currentFrameCompletion = (_this.accumulatedTime - Math.floor(_this.accumulatedTime / msPerFrame) * msPerFrame) / msPerFrame;\n var framesToCatchUp = Math.floor(_this.accumulatedTime / msPerFrame);\n\n var _mergeAndSync2 = mergeAndSync(_this.props.willEnter, _this.props.willLeave, _this.props.didLeave, _this.state.mergedPropsStyles, destStyles, _this.state.currentStyles, _this.state.currentVelocities, _this.state.lastIdealStyles, _this.state.lastIdealVelocities);\n\n var newMergedPropsStyles = _mergeAndSync2[0];\n var newCurrentStyles = _mergeAndSync2[1];\n var newCurrentVelocities = _mergeAndSync2[2];\n var newLastIdealStyles = _mergeAndSync2[3];\n var newLastIdealVelocities = _mergeAndSync2[4];\n\n for (var i = 0; i < newMergedPropsStyles.length; i++) {\n var newMergedPropsStyle = newMergedPropsStyles[i].style;\n var newCurrentStyle = {};\n var newCurrentVelocity = {};\n var newLastIdealStyle = {};\n var newLastIdealVelocity = {};\n\n for (var key in newMergedPropsStyle) {\n if (!Object.prototype.hasOwnProperty.call(newMergedPropsStyle, key)) {\n continue;\n }\n\n var styleValue = newMergedPropsStyle[key];\n if (typeof styleValue === 'number') {\n newCurrentStyle[key] = styleValue;\n newCurrentVelocity[key] = 0;\n newLastIdealStyle[key] = styleValue;\n newLastIdealVelocity[key] = 0;\n } else {\n var newLastIdealStyleValue = newLastIdealStyles[i][key];\n var newLastIdealVelocityValue = newLastIdealVelocities[i][key];\n for (var j = 0; j < framesToCatchUp; j++) {\n var _stepper = _stepper4['default'](msPerFrame / 1000, newLastIdealStyleValue, newLastIdealVelocityValue, styleValue.val, styleValue.stiffness, styleValue.damping, styleValue.precision);\n\n newLastIdealStyleValue = _stepper[0];\n newLastIdealVelocityValue = _stepper[1];\n }\n\n var _stepper2 = _stepper4['default'](msPerFrame / 1000, newLastIdealStyleValue, newLastIdealVelocityValue, styleValue.val, styleValue.stiffness, styleValue.damping, styleValue.precision);\n\n var nextIdealX = _stepper2[0];\n var nextIdealV = _stepper2[1];\n\n newCurrentStyle[key] = newLastIdealStyleValue + (nextIdealX - newLastIdealStyleValue) * currentFrameCompletion;\n newCurrentVelocity[key] = newLastIdealVelocityValue + (nextIdealV - newLastIdealVelocityValue) * currentFrameCompletion;\n newLastIdealStyle[key] = newLastIdealStyleValue;\n newLastIdealVelocity[key] = newLastIdealVelocityValue;\n }\n }\n\n newLastIdealStyles[i] = newLastIdealStyle;\n newLastIdealVelocities[i] = newLastIdealVelocity;\n newCurrentStyles[i] = newCurrentStyle;\n newCurrentVelocities[i] = newCurrentVelocity;\n }\n\n _this.animationID = null;\n // the amount we're looped over above\n _this.accumulatedTime -= framesToCatchUp * msPerFrame;\n\n _this.setState({\n currentStyles: newCurrentStyles,\n currentVelocities: newCurrentVelocities,\n lastIdealStyles: newLastIdealStyles,\n lastIdealVelocities: newLastIdealVelocities,\n mergedPropsStyles: newMergedPropsStyles\n });\n\n _this.unreadPropStyles = null;\n\n _this.startAnimationIfNecessary();\n });\n };\n\n this.state = this.defaultState();\n }\n\n TransitionMotion.prototype.defaultState = function defaultState() {\n var _props = this.props;\n var defaultStyles = _props.defaultStyles;\n var styles = _props.styles;\n var willEnter = _props.willEnter;\n var willLeave = _props.willLeave;\n var didLeave = _props.didLeave;\n\n var destStyles = typeof styles === 'function' ? styles(defaultStyles) : styles;\n\n // this is special. for the first time around, we don't have a comparison\n // between last (no last) and current merged props. we'll compute last so:\n // say default is {a, b} and styles (dest style) is {b, c}, we'll\n // fabricate last as {a, b}\n var oldMergedPropsStyles = undefined;\n if (defaultStyles == null) {\n oldMergedPropsStyles = destStyles;\n } else {\n oldMergedPropsStyles = defaultStyles.map(function (defaultStyleCell) {\n // TODO: key search code\n for (var i = 0; i < destStyles.length; i++) {\n if (destStyles[i].key === defaultStyleCell.key) {\n return destStyles[i];\n }\n }\n return defaultStyleCell;\n });\n }\n var oldCurrentStyles = defaultStyles == null ? destStyles.map(function (s) {\n return _stripStyle2['default'](s.style);\n }) : defaultStyles.map(function (s) {\n return _stripStyle2['default'](s.style);\n });\n var oldCurrentVelocities = defaultStyles == null ? destStyles.map(function (s) {\n return _mapToZero2['default'](s.style);\n }) : defaultStyles.map(function (s) {\n return _mapToZero2['default'](s.style);\n });\n\n var _mergeAndSync3 = mergeAndSync(\n // Because this is an old-style createReactClass component, Flow doesn't\n // understand that the willEnter and willLeave props have default values\n // and will always be present.\n willEnter, willLeave, didLeave, oldMergedPropsStyles, destStyles, oldCurrentStyles, oldCurrentVelocities, oldCurrentStyles, // oldLastIdealStyles really\n oldCurrentVelocities);\n\n var mergedPropsStyles = _mergeAndSync3[0];\n var currentStyles = _mergeAndSync3[1];\n var currentVelocities = _mergeAndSync3[2];\n var lastIdealStyles = _mergeAndSync3[3];\n var lastIdealVelocities = _mergeAndSync3[4];\n // oldLastIdealVelocities really\n\n return {\n currentStyles: currentStyles,\n currentVelocities: currentVelocities,\n lastIdealStyles: lastIdealStyles,\n lastIdealVelocities: lastIdealVelocities,\n mergedPropsStyles: mergedPropsStyles\n };\n };\n\n // after checking for unreadPropStyles != null, we manually go set the\n // non-interpolating values (those that are a number, without a spring\n // config)\n\n TransitionMotion.prototype.componentDidMount = function componentDidMount() {\n this.prevTime = _performanceNow2['default']();\n this.startAnimationIfNecessary();\n };\n\n TransitionMotion.prototype.componentWillReceiveProps = function componentWillReceiveProps(props) {\n if (this.unreadPropStyles) {\n // previous props haven't had the chance to be set yet; set them here\n this.clearUnreadPropStyle(this.unreadPropStyles);\n }\n\n var styles = props.styles;\n if (typeof styles === 'function') {\n this.unreadPropStyles = styles(rehydrateStyles(this.state.mergedPropsStyles, this.unreadPropStyles, this.state.lastIdealStyles));\n } else {\n this.unreadPropStyles = styles;\n }\n\n if (this.animationID == null) {\n this.prevTime = _performanceNow2['default']();\n this.startAnimationIfNecessary();\n }\n };\n\n TransitionMotion.prototype.componentWillUnmount = function componentWillUnmount() {\n this.unmounting = true;\n if (this.animationID != null) {\n _raf2['default'].cancel(this.animationID);\n this.animationID = null;\n }\n };\n\n TransitionMotion.prototype.render = function render() {\n var hydratedStyles = rehydrateStyles(this.state.mergedPropsStyles, this.unreadPropStyles, this.state.currentStyles);\n var renderedChildren = this.props.children(hydratedStyles);\n return renderedChildren && _react2['default'].Children.only(renderedChildren);\n };\n\n return TransitionMotion;\n})(_react2['default'].Component);\n\nexports['default'] = TransitionMotion;\nmodule.exports = exports['default'];\n\n// list of styles, each containing interpolating values. Part of what's passed\n// to children function. Notice that this is\n// Array, without the wrapper that is {key: ...,\n// data: ... style: ActualInterpolatingStyleObject}. Only mergedPropsStyles\n// contains the key & data info (so that we only have a single source of truth\n// for these, and to save space). Check the comment for `rehydrateStyles` to\n// see how we regenerate the entirety of what's passed to children function\n\n// the array that keeps track of currently rendered stuff! Including stuff\n// that you've unmounted but that's still animating. This is where it lives\n\n// it's possible that currentStyle's value is stale: if props is immediately\n// changed from 0 to 400 to spring(0) again, the async currentStyle is still\n// at 0 (didn't have time to tick and interpolate even once). If we naively\n// compare currentStyle with destVal it'll be 0 === 0 (no animation, stop).\n// In reality currentStyle should be 400\n\n/***/ }),\n/* 1099 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n// core keys merging algorithm. If previous render's keys are [a, b], and the\n// next render's [c, b, d], what's the final merged keys and ordering?\n\n// - c and a must both be before b\n// - b before d\n// - ordering between a and c ambiguous\n\n// this reduces to merging two partially ordered lists (e.g. lists where not\n// every item has a definite ordering, like comparing a and c above). For the\n// ambiguous ordering we deterministically choose to place the next render's\n// item after the previous'; so c after a\n\n// this is called a topological sorting. Except the existing algorithms don't\n// work well with js bc of the amount of allocation, and isn't optimized for our\n// current use-case bc the runtime is linear in terms of edges (see wiki for\n// meaning), which is huge when two lists have many common elements\n\n\nexports.__esModule = true;\nexports['default'] = mergeDiff;\n\nfunction mergeDiff(prev, next, onRemove) {\n // bookkeeping for easier access of a key's index below. This is 2 allocations +\n // potentially triggering chrome hash map mode for objs (so it might be faster\n\n var prevKeyIndex = {};\n for (var i = 0; i < prev.length; i++) {\n prevKeyIndex[prev[i].key] = i;\n }\n var nextKeyIndex = {};\n for (var i = 0; i < next.length; i++) {\n nextKeyIndex[next[i].key] = i;\n }\n\n // first, an overly elaborate way of merging prev and next, eliminating\n // duplicates (in terms of keys). If there's dupe, keep the item in next).\n // This way of writing it saves allocations\n var ret = [];\n for (var i = 0; i < next.length; i++) {\n ret[i] = next[i];\n }\n for (var i = 0; i < prev.length; i++) {\n if (!Object.prototype.hasOwnProperty.call(nextKeyIndex, prev[i].key)) {\n // this is called my TM's `mergeAndSync`, which calls willLeave. We don't\n // merge in keys that the user desires to kill\n var fill = onRemove(i, prev[i]);\n if (fill != null) {\n ret.push(fill);\n }\n }\n }\n\n // now all the items all present. Core sorting logic to have the right order\n return ret.sort(function (a, b) {\n var nextOrderA = nextKeyIndex[a.key];\n var nextOrderB = nextKeyIndex[b.key];\n var prevOrderA = prevKeyIndex[a.key];\n var prevOrderB = prevKeyIndex[b.key];\n\n if (nextOrderA != null && nextOrderB != null) {\n // both keys in next\n return nextKeyIndex[a.key] - nextKeyIndex[b.key];\n } else if (prevOrderA != null && prevOrderB != null) {\n // both keys in prev\n return prevKeyIndex[a.key] - prevKeyIndex[b.key];\n } else if (nextOrderA != null) {\n // key a in next, key b in prev\n\n // how to determine the order between a and b? We find a \"pivot\" (term\n // abuse), a key present in both prev and next, that is sandwiched between\n // a and b. In the context of our above example, if we're comparing a and\n // d, b's (the only) pivot\n for (var i = 0; i < next.length; i++) {\n var pivot = next[i].key;\n if (!Object.prototype.hasOwnProperty.call(prevKeyIndex, pivot)) {\n continue;\n }\n\n if (nextOrderA < nextKeyIndex[pivot] && prevOrderB > prevKeyIndex[pivot]) {\n return -1;\n } else if (nextOrderA > nextKeyIndex[pivot] && prevOrderB < prevKeyIndex[pivot]) {\n return 1;\n }\n }\n // pluggable. default to: next bigger than prev\n return 1;\n }\n // prevOrderA, nextOrderB\n for (var i = 0; i < next.length; i++) {\n var pivot = next[i].key;\n if (!Object.prototype.hasOwnProperty.call(prevKeyIndex, pivot)) {\n continue;\n }\n if (nextOrderB < nextKeyIndex[pivot] && prevOrderA > prevKeyIndex[pivot]) {\n return 1;\n } else if (nextOrderB > nextKeyIndex[pivot] && prevOrderA < prevKeyIndex[pivot]) {\n return -1;\n }\n }\n // pluggable. default to: next bigger than prev\n return -1;\n });\n}\n\nmodule.exports = exports['default'];\n// to loop through and find a key's index each time), but I no longer care\n\n/***/ }),\n/* 1100 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nexports['default'] = spring;\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _presets = __webpack_require__(307);\n\nvar _presets2 = _interopRequireDefault(_presets);\n\nvar defaultConfig = _extends({}, _presets2['default'].noWobble, {\n precision: 0.01\n});\n\nfunction spring(val, config) {\n return _extends({}, defaultConfig, config, { val: val });\n}\n\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1101 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(process) {\n\nexports.__esModule = true;\nexports['default'] = reorderKeys;\n\nvar hasWarned = false;\n\nfunction reorderKeys() {\n if (process.env.NODE_ENV === 'development') {\n if (!hasWarned) {\n hasWarned = true;\n console.error('`reorderKeys` has been removed, since it is no longer needed for TransitionMotion\\'s new styles array API.');\n }\n }\n}\n\nmodule.exports = exports['default'];\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5)))\n\n/***/ }),\n/* 1102 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactBeautifulDnd = __webpack_require__(29);\n\nvar _util = __webpack_require__(308);\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _lodash = __webpack_require__(21);\n\nvar _lodash2 = _interopRequireDefault(_lodash);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar reorder = function reorder(list, startIndex, endIndex) {\n var result = Array.from(list);\n\n var _result$splice = result.splice(startIndex, 1),\n _result$splice2 = _slicedToArray(_result$splice, 1),\n removed = _result$splice2[0];\n\n result.splice(endIndex, 0, removed);\n\n return result;\n};\n\nvar Vertical = function (_Component) {\n _inherits(Vertical, _Component);\n\n function Vertical(props) {\n _classCallCheck(this, Vertical);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props));\n\n _this.onDragEnd = function (result) {\n if (!result.destination) {\n return;\n }\n var items = reorder(_this.state.items, result.source.index, result.destination.index);\n\n _this.setState({\n items: items\n });\n _this.props.onStop(result, items);\n };\n\n _this.onDragStart = function (result) {\n _this.props.onStart(result, _this.state.items);\n };\n\n _this.state = {\n items: _this.props.list || []\n };\n return _this;\n }\n\n Vertical.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n if (!(0, _lodash2[\"default\"])(this.state.items, nextProps.list)) {\n this.setState({\n items: nextProps.list\n });\n }\n };\n\n Vertical.prototype.render = function render() {\n var _this2 = this;\n\n var _props = this.props,\n onStart = _props.onStart,\n onDrag = _props.onDrag,\n onStop = _props.onStop,\n onDragUpdate = _props.onDragUpdate,\n dropClass = _props.dropClass,\n dropOverClass = _props.dropOverClass,\n dragClass = _props.dragClass,\n dragingClass = _props.dragingClass,\n showKey = _props.showKey,\n type = _props.type;\n\n\n return _react2[\"default\"].createElement(\n _reactBeautifulDnd.DragDropContext,\n { onDragEnd: this.onDragEnd, onDragStart: this.onDragStart, onDragUpdate: onDragUpdate },\n _react2[\"default\"].createElement(\n _reactBeautifulDnd.Droppable,\n { droppableId: 'droppable', direction: type },\n function (provided, snapshot) {\n return _react2[\"default\"].createElement(\n 'div',\n {\n ref: provided.innerRef,\n className: (0, _classnames2[\"default\"])(_extends({}, (0, _util.getClass)(_this2.props, snapshot.isDraggingOver).drop))\n },\n _this2.state.items.map(function (item, index) {\n return _react2[\"default\"].createElement(\n _reactBeautifulDnd.Draggable,\n { key: index, draggableId: '' + index, index: index },\n function (provided, snapshot) {\n return _react2[\"default\"].createElement(\n 'div',\n _extends({\n ref: provided.innerRef\n }, provided.draggableProps, provided.dragHandleProps, {\n className: (0, _classnames2[\"default\"])(_extends({}, (0, _util.getClass)(_this2.props, snapshot.isDragging).drag)),\n style: _extends({}, provided.draggableProps.style)\n }),\n showKey ? item[showKey] : item\n );\n }\n );\n }),\n provided.placeholder\n );\n }\n )\n );\n };\n\n return Vertical;\n}(_react.Component);\n\nexports[\"default\"] = Vertical;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1103 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _reactBeautifulDnd = __webpack_require__(29);\n\nvar _util = __webpack_require__(308);\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _lodash = __webpack_require__(21);\n\nvar _lodash2 = _interopRequireDefault(_lodash);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar reorder = function reorder(list, startIndex, endIndex) {\n var result = Array.from(list);\n\n var _result$splice = result.splice(startIndex, 1),\n _result$splice2 = _slicedToArray(_result$splice, 1),\n removed = _result$splice2[0];\n\n result.splice(endIndex, 0, removed);\n\n return result;\n};\n\n/**\n * Moves an item from one list to another list.\n */\nvar move = function move(source, destination, droppableSource, droppableDestination) {\n var sourceClone = Array.from(source);\n var destClone = Array.from(destination);\n\n var _sourceClone$splice = sourceClone.splice(droppableSource.index, 1),\n _sourceClone$splice2 = _slicedToArray(_sourceClone$splice, 1),\n removed = _sourceClone$splice2[0];\n\n destClone.splice(droppableDestination.index, 0, removed);\n\n var result = {};\n result[droppableSource.droppableId] = sourceClone;\n result[droppableDestination.droppableId] = destClone;\n\n return result;\n};\n\nvar Between = function (_Component) {\n _inherits(Between, _Component);\n\n function Between(props) {\n _classCallCheck(this, Between);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props));\n\n _this.id2List = {\n droppable: 'items',\n droppable2: 'selected'\n };\n\n _this.getList = function (id) {\n return _this.state[_this.id2List[id]];\n };\n\n _this.onDragEnd = function (result) {\n console.log(result);\n var source = result.source,\n destination = result.destination;\n\n // dropped outside the list\n\n if (!destination) {\n return;\n }\n var list = _this.state.items;\n var otherList = _this.state.selected;\n\n if (source.droppableId === destination.droppableId) {\n var items = reorder(_this.getList(source.droppableId), source.index, destination.index);\n\n var state = { items: items };\n list = items;\n\n if (source.droppableId === 'droppable2') {\n state = { selected: items };\n otherList = items;\n list = _this.state.items;\n }\n _this.setState(state);\n } else {\n var _result = move(_this.getList(source.droppableId), _this.getList(destination.droppableId), source, destination);\n\n _this.setState({\n items: _result.droppable,\n selected: _result.droppable2\n });\n list = _result.droppable;\n otherList = _result.droppable2;\n }\n _this.props.onStop(result, {\n list: list,\n otherList: otherList\n });\n };\n\n _this.onDragStart = function (result) {\n _this.props.onStart(result, {\n list: _this.state.list,\n otherList: _this.state.selected\n });\n };\n\n _this.state = {\n items: _this.props.list,\n selected: _this.props.otherList\n };\n return _this;\n }\n\n Between.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n if (!(0, _lodash2[\"default\"])(this.state.items, nextProps.list)) {\n this.setState({\n items: nextProps.list\n });\n }\n if (!(0, _lodash2[\"default\"])(this.state.selected, nextProps.otherList)) {\n this.setState({\n selected: nextProps.otherList\n });\n }\n };\n\n Between.prototype.render = function render() {\n var _this2 = this;\n\n var _props = this.props,\n onStart = _props.onStart,\n onDrag = _props.onDrag,\n onStop = _props.onStop,\n onDragUpdate = _props.onDragUpdate,\n dropClass = _props.dropClass,\n dropOverClass = _props.dropOverClass,\n dragClass = _props.dragClass,\n dragingClass = _props.dragingClass,\n showKey = _props.showKey,\n type = _props.type;\n\n\n return _react2[\"default\"].createElement(\n 'div',\n { className: (0, _classnames2[\"default\"])({\n 'u-drag-between': type == 'betweenVertical',\n 'u-drag-between u-drag-between-horizontal': type == 'betweenHorizontal'\n\n }) },\n _react2[\"default\"].createElement(\n _reactBeautifulDnd.DragDropContext,\n { onDragEnd: this.onDragEnd, onDragStart: this.onDragStart, onDragUpdate: onDragUpdate },\n _react2[\"default\"].createElement(\n _reactBeautifulDnd.Droppable,\n { droppableId: 'droppable', direction: type == 'betweenVertical' ? 'vertical' : 'horizontal' },\n function (provided, snapshot) {\n return _react2[\"default\"].createElement(\n 'div',\n {\n ref: provided.innerRef,\n className: (0, _classnames2[\"default\"])(_extends({}, (0, _util.getClass)(_this2.props, snapshot.isDraggingOver).drop)) },\n _this2.state.items.map(function (item, index) {\n return _react2[\"default\"].createElement(\n _reactBeautifulDnd.Draggable,\n {\n key: '1' + index,\n draggableId: '1' + index,\n index: index },\n function (provided, snapshot) {\n return _react2[\"default\"].createElement(\n 'div',\n _extends({\n ref: provided.innerRef\n }, provided.draggableProps, provided.dragHandleProps, {\n className: (0, _classnames2[\"default\"])(_extends({}, (0, _util.getClass)(_this2.props, snapshot.isDragging).drag)),\n style: _extends({}, provided.draggableProps.style) }),\n showKey ? item[showKey] : item\n );\n }\n );\n }),\n provided.placeholder\n );\n }\n ),\n _react2[\"default\"].createElement(\n _reactBeautifulDnd.Droppable,\n { droppableId: 'droppable2', direction: type == 'betweenVertical' ? 'vertical' : 'horizontal' },\n function (provided, snapshot) {\n return _react2[\"default\"].createElement(\n 'div',\n {\n ref: provided.innerRef,\n className: (0, _classnames2[\"default\"])(_extends({}, (0, _util.getClass)(_this2.props, snapshot.isDraggingOver).drop)) },\n _this2.state.selected.map(function (item, index) {\n return _react2[\"default\"].createElement(\n _reactBeautifulDnd.Draggable,\n {\n key: '2' + index,\n draggableId: '2' + index,\n index: index },\n function (provided, snapshot) {\n return _react2[\"default\"].createElement(\n 'div',\n _extends({\n ref: provided.innerRef\n }, provided.draggableProps, provided.dragHandleProps, {\n className: (0, _classnames2[\"default\"])(_extends({}, (0, _util.getClass)(_this2.props, snapshot.isDragging).drag)),\n style: _extends({}, provided.draggableProps.style) }),\n showKey ? item[showKey] : item\n );\n }\n );\n }),\n provided.placeholder\n );\n }\n )\n )\n );\n };\n\n return Between;\n}(_react.Component);\n\nexports[\"default\"] = Between;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1104 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _reactGridLayout = __webpack_require__(173);\n\nvar _reactGridLayout2 = _interopRequireDefault(_reactGridLayout);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nexports[\"default\"] = _reactGridLayout2[\"default\"];\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1105 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _reactDraggable = __webpack_require__(107);\n\nvar _reactResizable = __webpack_require__(1106);\n\nvar _utils = __webpack_require__(76);\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n/**\n * An individual item within a ReactGridLayout.\n */\nvar GridItem = function (_React$Component) {\n _inherits(GridItem, _React$Component);\n\n function GridItem() {\n var _temp, _this, _ret;\n\n _classCallCheck(this, GridItem);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.state = {\n resizing: null,\n dragging: null,\n className: \"\"\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n // Helper for generating column width\n GridItem.prototype.calcColWidth = function calcColWidth() {\n var _props = this.props,\n margin = _props.margin,\n containerPadding = _props.containerPadding,\n containerWidth = _props.containerWidth,\n cols = _props.cols;\n\n return (containerWidth - margin[0] * (cols - 1) - containerPadding[0] * 2) / cols;\n };\n\n /**\n * Return position on the page given an x, y, w, h.\n * left, top, width, height are all in pixels.\n * @param {Number} x X coordinate in grid units.\n * @param {Number} y Y coordinate in grid units.\n * @param {Number} w W coordinate in grid units.\n * @param {Number} h H coordinate in grid units.\n * @return {Object} Object containing coords.\n */\n\n\n GridItem.prototype.calcPosition = function calcPosition(x, y, w, h, state) {\n var _props2 = this.props,\n margin = _props2.margin,\n containerPadding = _props2.containerPadding,\n rowHeight = _props2.rowHeight;\n\n var colWidth = this.calcColWidth();\n\n var out = {\n left: Math.round((colWidth + margin[0]) * x + containerPadding[0]),\n top: Math.round((rowHeight + margin[1]) * y + containerPadding[1]),\n // 0 * Infinity === NaN, which causes problems with resize constraints;\n // Fix this if it occurs.\n // Note we do it here rather than later because Math.round(Infinity) causes deopt\n width: w === Infinity ? w : Math.round(colWidth * w + Math.max(0, w - 1) * margin[0]),\n height: h === Infinity ? h : Math.round(rowHeight * h + Math.max(0, h - 1) * margin[1])\n };\n\n if (state && state.resizing) {\n out.width = Math.round(state.resizing.width);\n out.height = Math.round(state.resizing.height);\n }\n\n if (state && state.dragging) {\n out.top = Math.round(state.dragging.top);\n out.left = Math.round(state.dragging.left);\n }\n\n return out;\n };\n\n /**\n * Translate x and y coordinates from pixels to grid units.\n * @param {Number} top Top position (relative to parent) in pixels.\n * @param {Number} left Left position (relative to parent) in pixels.\n * @return {Object} x and y in grid units.\n */\n\n\n GridItem.prototype.calcXY = function calcXY(top, left) {\n var _props3 = this.props,\n margin = _props3.margin,\n cols = _props3.cols,\n rowHeight = _props3.rowHeight,\n w = _props3.w,\n h = _props3.h,\n maxRows = _props3.maxRows;\n\n var colWidth = this.calcColWidth();\n\n // left = colWidth * x + margin * (x + 1)\n // l = cx + m(x+1)\n // l = cx + mx + m\n // l - m = cx + mx\n // l - m = x(c + m)\n // (l - m) / (c + m) = x\n // x = (left - margin) / (coldWidth + margin)\n var x = Math.round((left - margin[0]) / (colWidth + margin[0]));\n var y = Math.round((top - margin[1]) / (rowHeight + margin[1]));\n\n // Capping\n x = Math.max(Math.min(x, cols - w), 0);\n y = Math.max(Math.min(y, maxRows - h), 0);\n\n return { x: x, y: y };\n };\n\n /**\n * Given a height and width in pixel values, calculate grid units.\n * @param {Number} height Height in pixels.\n * @param {Number} width Width in pixels.\n * @return {Object} w, h as grid units.\n */\n\n\n GridItem.prototype.calcWH = function calcWH(_ref) {\n var height = _ref.height,\n width = _ref.width;\n var _props4 = this.props,\n margin = _props4.margin,\n maxRows = _props4.maxRows,\n cols = _props4.cols,\n rowHeight = _props4.rowHeight,\n x = _props4.x,\n y = _props4.y;\n\n var colWidth = this.calcColWidth();\n\n // width = colWidth * w - (margin * (w - 1))\n // ...\n // w = (width + margin) / (colWidth + margin)\n var w = Math.round((width + margin[0]) / (colWidth + margin[0]));\n var h = Math.round((height + margin[1]) / (rowHeight + margin[1]));\n\n // Capping\n w = Math.max(Math.min(w, cols - x), 0);\n h = Math.max(Math.min(h, maxRows - y), 0);\n return { w: w, h: h };\n };\n\n /**\n * This is where we set the grid item's absolute placement. It gets a little tricky because we want to do it\n * well when server rendering, and the only way to do that properly is to use percentage width/left because\n * we don't know exactly what the browser viewport is.\n * Unfortunately, CSS Transforms, which are great for performance, break in this instance because a percentage\n * left is relative to the item itself, not its container! So we cannot use them on the server rendering pass.\n *\n * @param {Object} pos Position object with width, height, left, top.\n * @return {Object} Style object.\n */\n\n\n GridItem.prototype.createStyle = function createStyle(pos) {\n var _props5 = this.props,\n usePercentages = _props5.usePercentages,\n containerWidth = _props5.containerWidth,\n useCSSTransforms = _props5.useCSSTransforms;\n\n\n var style = void 0;\n // CSS Transforms support (default)\n if (useCSSTransforms) {\n style = (0, _utils.setTransform)(pos);\n } else {\n // top,left (slow)\n style = (0, _utils.setTopLeft)(pos);\n\n // This is used for server rendering.\n if (usePercentages) {\n style.left = (0, _utils.perc)(pos.left / containerWidth);\n style.width = (0, _utils.perc)(pos.width / containerWidth);\n }\n }\n\n return style;\n };\n\n /**\n * Mix a Draggable instance into a child.\n * @param {Element} child Child element.\n * @return {Element} Child wrapped in Draggable.\n */\n\n\n GridItem.prototype.mixinDraggable = function mixinDraggable(child) {\n return _react2.default.createElement(\n _reactDraggable.DraggableCore,\n {\n onStart: this.onDragHandler(\"onDragStart\"),\n onDrag: this.onDragHandler(\"onDrag\"),\n onStop: this.onDragHandler(\"onDragStop\"),\n handle: this.props.handle,\n cancel: \".react-resizable-handle\" + (this.props.cancel ? \",\" + this.props.cancel : \"\")\n },\n child\n );\n };\n\n /**\n * Mix a Resizable instance into a child.\n * @param {Element} child Child element.\n * @param {Object} position Position object (pixel values)\n * @return {Element} Child wrapped in Resizable.\n */\n\n\n GridItem.prototype.mixinResizable = function mixinResizable(child, position) {\n var _props6 = this.props,\n cols = _props6.cols,\n x = _props6.x,\n minW = _props6.minW,\n minH = _props6.minH,\n maxW = _props6.maxW,\n maxH = _props6.maxH;\n\n // This is the max possible width - doesn't go to infinity because of the width of the window\n\n var maxWidth = this.calcPosition(0, 0, cols - x, 0).width;\n\n // Calculate min/max constraints using our min & maxes\n var mins = this.calcPosition(0, 0, minW, minH);\n var maxes = this.calcPosition(0, 0, maxW, maxH);\n var minConstraints = [mins.width, mins.height];\n var maxConstraints = [Math.min(maxes.width, maxWidth), Math.min(maxes.height, Infinity)];\n return _react2.default.createElement(\n _reactResizable.Resizable,\n {\n width: position.width,\n height: position.height,\n minConstraints: minConstraints,\n maxConstraints: maxConstraints,\n onResizeStop: this.onResizeHandler(\"onResizeStop\"),\n onResizeStart: this.onResizeHandler(\"onResizeStart\"),\n onResize: this.onResizeHandler(\"onResize\")\n },\n child\n );\n };\n\n /**\n * Wrapper around drag events to provide more useful data.\n * All drag events call the function with the given handler name,\n * with the signature (index, x, y).\n *\n * @param {String} handlerName Handler name to wrap.\n * @return {Function} Handler function.\n */\n\n\n GridItem.prototype.onDragHandler = function onDragHandler(handlerName) {\n var _this2 = this;\n\n return function (e, _ref2) {\n var node = _ref2.node,\n deltaX = _ref2.deltaX,\n deltaY = _ref2.deltaY;\n\n var handler = _this2.props[handlerName];\n if (!handler) return;\n\n var newPosition = { top: 0, left: 0 };\n\n // Get new XY\n switch (handlerName) {\n case \"onDragStart\":\n {\n // TODO: this wont work on nested parents\n var offsetParent = node.offsetParent;\n\n if (!offsetParent) return;\n var parentRect = offsetParent.getBoundingClientRect();\n var clientRect = node.getBoundingClientRect();\n newPosition.left = clientRect.left - parentRect.left + offsetParent.scrollLeft;\n newPosition.top = clientRect.top - parentRect.top + offsetParent.scrollTop;\n _this2.setState({ dragging: newPosition });\n break;\n }\n case \"onDrag\":\n if (!_this2.state.dragging) throw new Error(\"onDrag called before onDragStart.\");\n newPosition.left = _this2.state.dragging.left + deltaX;\n newPosition.top = _this2.state.dragging.top + deltaY;\n _this2.setState({ dragging: newPosition });\n break;\n case \"onDragStop\":\n if (!_this2.state.dragging) throw new Error(\"onDragEnd called before onDragStart.\");\n newPosition.left = _this2.state.dragging.left;\n newPosition.top = _this2.state.dragging.top;\n _this2.setState({ dragging: null });\n break;\n default:\n throw new Error(\"onDragHandler called with unrecognized handlerName: \" + handlerName);\n }\n\n var _calcXY = _this2.calcXY(newPosition.top, newPosition.left),\n x = _calcXY.x,\n y = _calcXY.y;\n\n return handler.call(_this2, _this2.props.i, x, y, { e: e, node: node, newPosition: newPosition });\n };\n };\n\n /**\n * Wrapper around drag events to provide more useful data.\n * All drag events call the function with the given handler name,\n * with the signature (index, x, y).\n *\n * @param {String} handlerName Handler name to wrap.\n * @return {Function} Handler function.\n */\n\n\n GridItem.prototype.onResizeHandler = function onResizeHandler(handlerName) {\n var _this3 = this;\n\n return function (e, _ref3) {\n var node = _ref3.node,\n size = _ref3.size;\n\n var handler = _this3.props[handlerName];\n if (!handler) return;\n var _props7 = _this3.props,\n cols = _props7.cols,\n x = _props7.x,\n i = _props7.i,\n maxW = _props7.maxW,\n minW = _props7.minW,\n maxH = _props7.maxH,\n minH = _props7.minH;\n\n // Get new XY\n\n var _calcWH = _this3.calcWH(size),\n w = _calcWH.w,\n h = _calcWH.h;\n\n // Cap w at numCols\n\n\n w = Math.min(w, cols - x);\n // Ensure w is at least 1\n w = Math.max(w, 1);\n\n // Min/max capping\n w = Math.max(Math.min(w, maxW), minW);\n h = Math.max(Math.min(h, maxH), minH);\n\n _this3.setState({ resizing: handlerName === \"onResizeStop\" ? null : size });\n\n handler.call(_this3, i, w, h, { e: e, node: node, size: size });\n };\n };\n\n GridItem.prototype.render = function render() {\n var _props8 = this.props,\n x = _props8.x,\n y = _props8.y,\n w = _props8.w,\n h = _props8.h,\n isDraggable = _props8.isDraggable,\n isResizable = _props8.isResizable,\n useCSSTransforms = _props8.useCSSTransforms;\n\n\n var pos = this.calcPosition(x, y, w, h, this.state);\n var child = _react2.default.Children.only(this.props.children);\n\n // Create the child element. We clone the existing element but modify its className and style.\n var newChild = _react2.default.cloneElement(child, {\n className: (0, _classnames2.default)(\"react-grid-item\", child.props.className, this.props.className, {\n static: this.props.static,\n resizing: Boolean(this.state.resizing),\n \"react-draggable\": isDraggable,\n \"react-draggable-dragging\": Boolean(this.state.dragging),\n cssTransforms: useCSSTransforms\n }),\n // We can set the width and height on the child, but unfortunately we can't set the position.\n style: _extends({}, this.props.style, child.props.style, this.createStyle(pos))\n });\n\n // Resizable support. This is usually on but the user can toggle it off.\n if (isResizable) newChild = this.mixinResizable(newChild, pos);\n\n // Draggable support. This is always on, except for with placeholders.\n if (isDraggable) newChild = this.mixinDraggable(newChild);\n\n return newChild;\n };\n\n return GridItem;\n}(_react2.default.Component);\n\nGridItem.propTypes = {\n // Children must be only a single element\n children: _propTypes2.default.element,\n\n // General grid attributes\n cols: _propTypes2.default.number.isRequired,\n containerWidth: _propTypes2.default.number.isRequired,\n rowHeight: _propTypes2.default.number.isRequired,\n margin: _propTypes2.default.array.isRequired,\n maxRows: _propTypes2.default.number.isRequired,\n containerPadding: _propTypes2.default.array.isRequired,\n\n // These are all in grid units\n x: _propTypes2.default.number.isRequired,\n y: _propTypes2.default.number.isRequired,\n w: _propTypes2.default.number.isRequired,\n h: _propTypes2.default.number.isRequired,\n\n // All optional\n minW: function minW(props, propName) {\n var value = props[propName];\n if (typeof value !== \"number\") return new Error(\"minWidth not Number\");\n if (value > props.w || value > props.maxW) return new Error(\"minWidth larger than item width/maxWidth\");\n },\n\n maxW: function maxW(props, propName) {\n var value = props[propName];\n if (typeof value !== \"number\") return new Error(\"maxWidth not Number\");\n if (value < props.w || value < props.minW) return new Error(\"maxWidth smaller than item width/minWidth\");\n },\n\n minH: function minH(props, propName) {\n var value = props[propName];\n if (typeof value !== \"number\") return new Error(\"minHeight not Number\");\n if (value > props.h || value > props.maxH) return new Error(\"minHeight larger than item height/maxHeight\");\n },\n\n maxH: function maxH(props, propName) {\n var value = props[propName];\n if (typeof value !== \"number\") return new Error(\"maxHeight not Number\");\n if (value < props.h || value < props.minH) return new Error(\"maxHeight smaller than item height/minHeight\");\n },\n\n // ID is nice to have for callbacks\n i: _propTypes2.default.string.isRequired,\n\n // Functions\n onDragStop: _propTypes2.default.func,\n onDragStart: _propTypes2.default.func,\n onDrag: _propTypes2.default.func,\n onResizeStop: _propTypes2.default.func,\n onResizeStart: _propTypes2.default.func,\n onResize: _propTypes2.default.func,\n\n // Flags\n isDraggable: _propTypes2.default.bool.isRequired,\n isResizable: _propTypes2.default.bool.isRequired,\n static: _propTypes2.default.bool,\n\n // Use CSS transforms instead of top/left\n useCSSTransforms: _propTypes2.default.bool.isRequired,\n\n // Others\n className: _propTypes2.default.string,\n // Selector for draggable handle\n handle: _propTypes2.default.string,\n // Selector for draggable cancel (see react-draggable)\n cancel: _propTypes2.default.string\n};\nGridItem.defaultProps = {\n className: \"\",\n cancel: \"\",\n handle: \"\",\n minH: 1,\n minW: 1,\n maxH: Infinity,\n maxW: Infinity\n};\nexports.default = GridItem;\n\n/***/ }),\n/* 1106 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nmodule.exports = function() {\n throw new Error(\"Don't instantiate Resizable directly! Use require('react-resizable').Resizable\");\n};\n\nmodule.exports.Resizable = __webpack_require__(310).default;\nmodule.exports.ResizableBox = __webpack_require__(1112).default;\n\n\n/***/ }),\n/* 1107 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _require = __webpack_require__(1108),\n Draggable = _require.default,\n DraggableCore = _require.DraggableCore; // Previous versions of this lib exported as the root export. As to no-// them, or TypeScript, we export *both* as the root and as 'default'.\n// See https://github.com/mzabriskie/react-draggable/pull/254\n// and https://github.com/mzabriskie/react-draggable/issues/266\n\n\nmodule.exports = Draggable;\nmodule.exports.default = Draggable;\nmodule.exports.DraggableCore = DraggableCore;\n\n/***/ }),\n/* 1108 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"DraggableCore\", {\n enumerable: true,\n get: function get() {\n return _DraggableCore.default;\n }\n});\nexports.default = void 0;\n\nvar React = _interopRequireWildcard(__webpack_require__(0));\n\nvar _propTypes = _interopRequireDefault(__webpack_require__(1));\n\nvar _reactDom = _interopRequireDefault(__webpack_require__(3));\n\nvar _classnames = _interopRequireDefault(__webpack_require__(2));\n\nvar _domFns = __webpack_require__(174);\n\nvar _positionFns = __webpack_require__(311);\n\nvar _shims = __webpack_require__(108);\n\nvar _DraggableCore = _interopRequireDefault(__webpack_require__(1110));\n\nvar _log = _interopRequireDefault(__webpack_require__(312));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _getRequireWildcardCache() { if (typeof WeakMap !== \"function\") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== \"object\" && typeof obj !== \"function\") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(n); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { if (typeof Symbol === \"undefined\" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n//\n// Define \n//\nvar Draggable = /*#__PURE__*/function (_React$Component) {\n _inherits(Draggable, _React$Component);\n\n var _super = _createSuper(Draggable);\n\n _createClass(Draggable, null, [{\n key: \"getDerivedStateFromProps\",\n // React 16.3+\n // Arity (props, state)\n value: function getDerivedStateFromProps(_ref, _ref2) {\n var position = _ref.position;\n var prevPropsPosition = _ref2.prevPropsPosition;\n\n // Set x/y if a new position is provided in props that is different than the previous.\n if (position && (!prevPropsPosition || position.x !== prevPropsPosition.x || position.y !== prevPropsPosition.y)) {\n (0, _log.default)('Draggable: getDerivedStateFromProps %j', {\n position: position,\n prevPropsPosition: prevPropsPosition\n });\n return {\n x: position.x,\n y: position.y,\n prevPropsPosition: _objectSpread({}, position)\n };\n }\n\n return null;\n }\n }]);\n\n function Draggable(props\n /*: DraggableProps*/\n ) {\n var _this;\n\n _classCallCheck(this, Draggable);\n\n _this = _super.call(this, props);\n\n _defineProperty(_assertThisInitialized(_this), \"onDragStart\", function (e, coreData) {\n (0, _log.default)('Draggable: onDragStart: %j', coreData); // Short-circuit if user's callback killed it.\n\n var shouldStart = _this.props.onStart(e, (0, _positionFns.createDraggableData)(_assertThisInitialized(_this), coreData)); // Kills start event on core as well, so move handlers are never bound.\n\n\n if (shouldStart === false) return false;\n\n _this.setState({\n dragging: true,\n dragged: true\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onDrag\", function (e, coreData) {\n if (!_this.state.dragging) return false;\n (0, _log.default)('Draggable: onDrag: %j', coreData);\n var uiData = (0, _positionFns.createDraggableData)(_assertThisInitialized(_this), coreData);\n var newState\n /*: $Shape*/\n = {\n x: uiData.x,\n y: uiData.y\n }; // Keep within bounds.\n\n if (_this.props.bounds) {\n // Save original x and y.\n var x = newState.x,\n y = newState.y; // Add slack to the values used to calculate bound position. This will ensure that if\n // we start removing slack, the element won't react to it right away until it's been\n // completely removed.\n\n newState.x += _this.state.slackX;\n newState.y += _this.state.slackY; // Get bound position. This will ceil/floor the x and y within the boundaries.\n\n var _getBoundPosition = (0, _positionFns.getBoundPosition)(_assertThisInitialized(_this), newState.x, newState.y),\n _getBoundPosition2 = _slicedToArray(_getBoundPosition, 2),\n newStateX = _getBoundPosition2[0],\n newStateY = _getBoundPosition2[1];\n\n newState.x = newStateX;\n newState.y = newStateY; // Recalculate slack by noting how much was shaved by the boundPosition handler.\n\n newState.slackX = _this.state.slackX + (x - newState.x);\n newState.slackY = _this.state.slackY + (y - newState.y); // Update the event we fire to reflect what really happened after bounds took effect.\n\n uiData.x = newState.x;\n uiData.y = newState.y;\n uiData.deltaX = newState.x - _this.state.x;\n uiData.deltaY = newState.y - _this.state.y;\n } // Short-circuit if user's callback killed it.\n\n\n var shouldUpdate = _this.props.onDrag(e, uiData);\n\n if (shouldUpdate === false) return false;\n\n _this.setState(newState);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onDragStop\", function (e, coreData) {\n if (!_this.state.dragging) return false; // Short-circuit if user's callback killed it.\n\n var shouldContinue = _this.props.onStop(e, (0, _positionFns.createDraggableData)(_assertThisInitialized(_this), coreData));\n\n if (shouldContinue === false) return false;\n (0, _log.default)('Draggable: onDragStop: %j', coreData);\n var newState\n /*: $Shape*/\n = {\n dragging: false,\n slackX: 0,\n slackY: 0\n }; // If this is a controlled component, the result of this operation will be to\n // revert back to the old position. We expect a handler on `onDragStop`, at the least.\n\n var controlled = Boolean(_this.props.position);\n\n if (controlled) {\n var _this$props$position = _this.props.position,\n x = _this$props$position.x,\n y = _this$props$position.y;\n newState.x = x;\n newState.y = y;\n }\n\n _this.setState(newState);\n });\n\n _this.state = {\n // Whether or not we are currently dragging.\n dragging: false,\n // Whether or not we have been dragged before.\n dragged: false,\n // Current transform x and y.\n x: props.position ? props.position.x : props.defaultPosition.x,\n y: props.position ? props.position.y : props.defaultPosition.y,\n prevPropsPosition: _objectSpread({}, props.position),\n // Used for compensating for out-of-bounds drags\n slackX: 0,\n slackY: 0,\n // Can only determine if SVG after mounting\n isElementSVG: false\n };\n\n if (props.position && !(props.onDrag || props.onStop)) {\n // eslint-disable-next-line no-console\n console.warn('A `position` was applied to this , without drag handlers. This will make this ' + 'component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the ' + '`position` of this element.');\n }\n\n return _this;\n }\n\n _createClass(Draggable, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n // Check to see if the element passed is an instanceof SVGElement\n if (typeof window.SVGElement !== 'undefined' && this.findDOMNode() instanceof window.SVGElement) {\n this.setState({\n isElementSVG: true\n });\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.setState({\n dragging: false\n }); // prevents invariant if unmounted while dragging\n } // React Strict Mode compatibility: if `nodeRef` is passed, we will use it instead of trying to find\n // the underlying DOM node ourselves. See the README for more information.\n\n }, {\n key: \"findDOMNode\",\n value: function findDOMNode()\n /*: ?HTMLElement*/\n {\n return this.props.nodeRef ? this.props.nodeRef.current : _reactDom.default.findDOMNode(this);\n }\n }, {\n key: \"render\",\n value: function render()\n /*: ReactElement*/\n {\n var _classNames;\n\n var _this$props = this.props,\n axis = _this$props.axis,\n bounds = _this$props.bounds,\n children = _this$props.children,\n defaultPosition = _this$props.defaultPosition,\n defaultClassName = _this$props.defaultClassName,\n defaultClassNameDragging = _this$props.defaultClassNameDragging,\n defaultClassNameDragged = _this$props.defaultClassNameDragged,\n position = _this$props.position,\n positionOffset = _this$props.positionOffset,\n scale = _this$props.scale,\n draggableCoreProps = _objectWithoutProperties(_this$props, [\"axis\", \"bounds\", \"children\", \"defaultPosition\", \"defaultClassName\", \"defaultClassNameDragging\", \"defaultClassNameDragged\", \"position\", \"positionOffset\", \"scale\"]);\n\n var style = {};\n var svgTransform = null; // If this is controlled, we don't want to move it - unless it's dragging.\n\n var controlled = Boolean(position);\n var draggable = !controlled || this.state.dragging;\n var validPosition = position || defaultPosition;\n var transformOpts = {\n // Set left if horizontal drag is enabled\n x: (0, _positionFns.canDragX)(this) && draggable ? this.state.x : validPosition.x,\n // Set top if vertical drag is enabled\n y: (0, _positionFns.canDragY)(this) && draggable ? this.state.y : validPosition.y\n }; // If this element was SVG, we use the `transform` attribute.\n\n if (this.state.isElementSVG) {\n svgTransform = (0, _domFns.createSVGTransform)(transformOpts, positionOffset);\n } else {\n // Add a CSS transform to move the element around. This allows us to move the element around\n // without worrying about whether or not it is relatively or absolutely positioned.\n // If the item you are dragging already has a transform set, wrap it in a so \n // has a clean slate.\n style = (0, _domFns.createCSSTransform)(transformOpts, positionOffset);\n } // Mark with class while dragging\n\n\n var className = (0, _classnames.default)(children.props.className || '', defaultClassName, (_classNames = {}, _defineProperty(_classNames, defaultClassNameDragging, this.state.dragging), _defineProperty(_classNames, defaultClassNameDragged, this.state.dragged), _classNames)); // Reuse the child provided\n // This makes it flexible to use whatever element is wanted (div, ul, etc)\n\n return /*#__PURE__*/React.createElement(_DraggableCore.default, _extends({}, draggableCoreProps, {\n onStart: this.onDragStart,\n onDrag: this.onDrag,\n onStop: this.onDragStop\n }), React.cloneElement(React.Children.only(children), {\n className: className,\n style: _objectSpread({}, children.props.style, {}, style),\n transform: svgTransform\n }));\n }\n }]);\n\n return Draggable;\n}(React.Component);\n\nexports.default = Draggable;\n\n_defineProperty(Draggable, \"displayName\", 'Draggable');\n\n_defineProperty(Draggable, \"propTypes\", _objectSpread({}, _DraggableCore.default.propTypes, {\n /**\n * `axis` determines which axis the draggable can move.\n *\n * Note that all callbacks will still return data as normal. This only\n * controls flushing to the DOM.\n *\n * 'both' allows movement horizontally and vertically.\n * 'x' limits movement to horizontal axis.\n * 'y' limits movement to vertical axis.\n * 'none' limits all movement.\n *\n * Defaults to 'both'.\n */\n axis: _propTypes.default.oneOf(['both', 'x', 'y', 'none']),\n\n /**\n * `bounds` determines the range of movement available to the element.\n * Available values are:\n *\n * 'parent' restricts movement within the Draggable's parent node.\n *\n * Alternatively, pass an object with the following properties, all of which are optional:\n *\n * {left: LEFT_BOUND, right: RIGHT_BOUND, bottom: BOTTOM_BOUND, top: TOP_BOUND}\n *\n * All values are in px.\n *\n * Example:\n *\n * ```jsx\n * let App = React.createClass({\n * render: function () {\n * return (\n * \n *
    Content
    \n *
    \n * );\n * }\n * });\n * ```\n */\n bounds: _propTypes.default.oneOfType([_propTypes.default.shape({\n left: _propTypes.default.number,\n right: _propTypes.default.number,\n top: _propTypes.default.number,\n bottom: _propTypes.default.number\n }), _propTypes.default.string, _propTypes.default.oneOf([false])]),\n defaultClassName: _propTypes.default.string,\n defaultClassNameDragging: _propTypes.default.string,\n defaultClassNameDragged: _propTypes.default.string,\n\n /**\n * `defaultPosition` specifies the x and y that the dragged item should start at\n *\n * Example:\n *\n * ```jsx\n * let App = React.createClass({\n * render: function () {\n * return (\n * \n *
    I start with transformX: 25px and transformY: 25px;
    \n *
    \n * );\n * }\n * });\n * ```\n */\n defaultPosition: _propTypes.default.shape({\n x: _propTypes.default.number,\n y: _propTypes.default.number\n }),\n positionOffset: _propTypes.default.shape({\n x: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),\n y: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string])\n }),\n\n /**\n * `position`, if present, defines the current position of the element.\n *\n * This is similar to how form elements in React work - if no `position` is supplied, the component\n * is uncontrolled.\n *\n * Example:\n *\n * ```jsx\n * let App = React.createClass({\n * render: function () {\n * return (\n * \n *
    I start with transformX: 25px and transformY: 25px;
    \n *
    \n * );\n * }\n * });\n * ```\n */\n position: _propTypes.default.shape({\n x: _propTypes.default.number,\n y: _propTypes.default.number\n }),\n\n /**\n * These properties should be defined on the child, not here.\n */\n className: _shims.dontSetMe,\n style: _shims.dontSetMe,\n transform: _shims.dontSetMe\n}));\n\n_defineProperty(Draggable, \"defaultProps\", _objectSpread({}, _DraggableCore.default.defaultProps, {\n axis: 'both',\n bounds: false,\n defaultClassName: 'react-draggable',\n defaultClassNameDragging: 'react-draggable-dragging',\n defaultClassNameDragged: 'react-draggable-dragged',\n defaultPosition: {\n x: 0,\n y: 0\n },\n position: null,\n scale: 1\n}));\n\n/***/ }),\n/* 1109 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.getPrefix = getPrefix;\nexports.browserPrefixToKey = browserPrefixToKey;\nexports.browserPrefixToStyle = browserPrefixToStyle;\nexports.default = void 0;\nvar prefixes = ['Moz', 'Webkit', 'O', 'ms'];\n\nfunction getPrefix()\n/*: string*/\n{\n var prop\n /*: string*/\n = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'transform';\n // Checking specifically for 'window.document' is for pseudo-browser server-side\n // environments that define 'window' as the global context.\n // E.g. React-rails (see https://github.com/reactjs/react-rails/pull/84)\n if (typeof window === 'undefined' || typeof window.document === 'undefined') return '';\n var style = window.document.documentElement.style;\n if (prop in style) return '';\n\n for (var i = 0; i < prefixes.length; i++) {\n if (browserPrefixToKey(prop, prefixes[i]) in style) return prefixes[i];\n }\n\n return '';\n}\n\nfunction browserPrefixToKey(prop\n/*: string*/\n, prefix\n/*: string*/\n)\n/*: string*/\n{\n return prefix ? \"\".concat(prefix).concat(kebabToTitleCase(prop)) : prop;\n}\n\nfunction browserPrefixToStyle(prop\n/*: string*/\n, prefix\n/*: string*/\n)\n/*: string*/\n{\n return prefix ? \"-\".concat(prefix.toLowerCase(), \"-\").concat(prop) : prop;\n}\n\nfunction kebabToTitleCase(str\n/*: string*/\n)\n/*: string*/\n{\n var out = '';\n var shouldCapitalize = true;\n\n for (var i = 0; i < str.length; i++) {\n if (shouldCapitalize) {\n out += str[i].toUpperCase();\n shouldCapitalize = false;\n } else if (str[i] === '-') {\n shouldCapitalize = true;\n } else {\n out += str[i];\n }\n }\n\n return out;\n} // Default export is the prefix itself, like 'Moz', 'Webkit', etc\n// Note that you may have to re-test for certain things; for instance, Chrome 50\n// can handle unprefixed `transform`, but not unprefixed `user-select`\n\n\nvar _default = getPrefix();\n\nexports.default = _default;\n\n/***/ }),\n/* 1110 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar React = _interopRequireWildcard(__webpack_require__(0));\n\nvar _propTypes = _interopRequireDefault(__webpack_require__(1));\n\nvar _reactDom = _interopRequireDefault(__webpack_require__(3));\n\nvar _domFns = __webpack_require__(174);\n\nvar _positionFns = __webpack_require__(311);\n\nvar _shims = __webpack_require__(108);\n\nvar _log = _interopRequireDefault(__webpack_require__(312));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _getRequireWildcardCache() { if (typeof WeakMap !== \"function\") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== \"object\" && typeof obj !== \"function\") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(n); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { if (typeof Symbol === \"undefined\" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n// Simple abstraction for dragging events names.\nvar eventsFor = {\n touch: {\n start: 'touchstart',\n move: 'touchmove',\n stop: 'touchend'\n },\n mouse: {\n start: 'mousedown',\n move: 'mousemove',\n stop: 'mouseup'\n }\n}; // Default to mouse events.\n\nvar dragEventFor = eventsFor.mouse;\n/*:: type DraggableCoreState = {\n dragging: boolean,\n lastX: number,\n lastY: number,\n touchIdentifier: ?number\n};*/\n\n/*:: export type DraggableData = {\n node: HTMLElement,\n x: number, y: number,\n deltaX: number, deltaY: number,\n lastX: number, lastY: number,\n};*/\n\n/*:: export type DraggableEventHandler = (e: MouseEvent, data: DraggableData) => void;*/\n\n/*:: export type ControlPosition = {x: number, y: number};*/\n\n/*:: export type PositionOffsetControlPosition = {x: number|string, y: number|string};*/\n\n/*:: export type DraggableCoreProps = {\n allowAnyClick: boolean,\n cancel: string,\n children: ReactElement,\n disabled: boolean,\n enableUserSelectHack: boolean,\n offsetParent: HTMLElement,\n grid: [number, number],\n handle: string,\n nodeRef?: ?React.ElementRef,\n onStart: DraggableEventHandler,\n onDrag: DraggableEventHandler,\n onStop: DraggableEventHandler,\n onMouseDown: (e: MouseEvent) => void,\n scale: number,\n};*/\n\n//\n// Define .\n//\n// is for advanced usage of . It maintains minimal internal state so it can\n// work well with libraries that require more control over the element.\n//\nvar DraggableCore = /*#__PURE__*/function (_React$Component) {\n _inherits(DraggableCore, _React$Component);\n\n var _super = _createSuper(DraggableCore);\n\n function DraggableCore() {\n var _this;\n\n _classCallCheck(this, DraggableCore);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _defineProperty(_assertThisInitialized(_this), \"state\", {\n dragging: false,\n // Used while dragging to determine deltas.\n lastX: NaN,\n lastY: NaN,\n touchIdentifier: null\n });\n\n _defineProperty(_assertThisInitialized(_this), \"mounted\", false);\n\n _defineProperty(_assertThisInitialized(_this), \"handleDragStart\", function (e) {\n // Make it possible to attach event handlers on top of this one.\n _this.props.onMouseDown(e); // Only accept left-clicks.\n\n\n if (!_this.props.allowAnyClick && typeof e.button === 'number' && e.button !== 0) return false; // Get nodes. Be sure to grab relative document (could be iframed)\n\n var thisNode = _this.findDOMNode();\n\n if (!thisNode || !thisNode.ownerDocument || !thisNode.ownerDocument.body) {\n throw new Error(' not mounted on DragStart!');\n }\n\n var ownerDocument = thisNode.ownerDocument; // Short circuit if handle or cancel prop was provided and selector doesn't match.\n\n if (_this.props.disabled || !(e.target instanceof ownerDocument.defaultView.Node) || _this.props.handle && !(0, _domFns.matchesSelectorAndParentsTo)(e.target, _this.props.handle, thisNode) || _this.props.cancel && (0, _domFns.matchesSelectorAndParentsTo)(e.target, _this.props.cancel, thisNode)) {\n return;\n } // Prevent scrolling on mobile devices, like ipad/iphone.\n // Important that this is after handle/cancel.\n\n\n if (e.type === 'touchstart') e.preventDefault(); // Set touch identifier in component state if this is a touch event. This allows us to\n // distinguish between individual touches on multitouch screens by identifying which\n // touchpoint was set to this element.\n\n var touchIdentifier = (0, _domFns.getTouchIdentifier)(e);\n\n _this.setState({\n touchIdentifier: touchIdentifier\n }); // Get the current drag point from the event. This is used as the offset.\n\n\n var position = (0, _positionFns.getControlPosition)(e, touchIdentifier, _assertThisInitialized(_this));\n if (position == null) return; // not possible but satisfies flow\n\n var x = position.x,\n y = position.y; // Create an event object with all the data parents need to make a decision here.\n\n var coreEvent = (0, _positionFns.createCoreData)(_assertThisInitialized(_this), x, y);\n (0, _log.default)('DraggableCore: handleDragStart: %j', coreEvent); // Call event handler. If it returns explicit false, cancel.\n\n (0, _log.default)('calling', _this.props.onStart);\n\n var shouldUpdate = _this.props.onStart(e, coreEvent);\n\n if (shouldUpdate === false || _this.mounted === false) return; // Add a style to the body to disable user-select. This prevents text from\n // being selected all over the page.\n\n if (_this.props.enableUserSelectHack) (0, _domFns.addUserSelectStyles)(ownerDocument); // Initiate dragging. Set the current x and y as offsets\n // so we know how much we've moved during the drag. This allows us\n // to drag elements around even if they have been moved, without issue.\n\n _this.setState({\n dragging: true,\n lastX: x,\n lastY: y\n }); // Add events to the document directly so we catch when the user's mouse/touch moves outside of\n // this element. We use different events depending on whether or not we have detected that this\n // is a touch-capable device.\n\n\n (0, _domFns.addEvent)(ownerDocument, dragEventFor.move, _this.handleDrag);\n (0, _domFns.addEvent)(ownerDocument, dragEventFor.stop, _this.handleDragStop);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleDrag\", function (e) {\n // Get the current drag point from the event. This is used as the offset.\n var position = (0, _positionFns.getControlPosition)(e, _this.state.touchIdentifier, _assertThisInitialized(_this));\n if (position == null) return;\n var x = position.x,\n y = position.y; // Snap to grid if prop has been provided\n\n if (Array.isArray(_this.props.grid)) {\n var deltaX = x - _this.state.lastX,\n deltaY = y - _this.state.lastY;\n\n var _snapToGrid = (0, _positionFns.snapToGrid)(_this.props.grid, deltaX, deltaY);\n\n var _snapToGrid2 = _slicedToArray(_snapToGrid, 2);\n\n deltaX = _snapToGrid2[0];\n deltaY = _snapToGrid2[1];\n if (!deltaX && !deltaY) return; // skip useless drag\n\n x = _this.state.lastX + deltaX, y = _this.state.lastY + deltaY;\n }\n\n var coreEvent = (0, _positionFns.createCoreData)(_assertThisInitialized(_this), x, y);\n (0, _log.default)('DraggableCore: handleDrag: %j', coreEvent); // Call event handler. If it returns explicit false, trigger end.\n\n var shouldUpdate = _this.props.onDrag(e, coreEvent);\n\n if (shouldUpdate === false || _this.mounted === false) {\n try {\n // $FlowIgnore\n _this.handleDragStop(new MouseEvent('mouseup'));\n } catch (err) {\n // Old browsers\n var event = ((document.createEvent('MouseEvents')\n /*: any*/\n )\n /*: MouseTouchEvent*/\n ); // I see why this insanity was deprecated\n // $FlowIgnore\n\n event.initMouseEvent('mouseup', true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);\n\n _this.handleDragStop(event);\n }\n\n return;\n }\n\n _this.setState({\n lastX: x,\n lastY: y\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleDragStop\", function (e) {\n if (!_this.state.dragging) return;\n var position = (0, _positionFns.getControlPosition)(e, _this.state.touchIdentifier, _assertThisInitialized(_this));\n if (position == null) return;\n var x = position.x,\n y = position.y;\n var coreEvent = (0, _positionFns.createCoreData)(_assertThisInitialized(_this), x, y); // Call event handler\n\n var shouldContinue = _this.props.onStop(e, coreEvent);\n\n if (shouldContinue === false || _this.mounted === false) return false;\n\n var thisNode = _this.findDOMNode();\n\n if (thisNode) {\n // Remove user-select hack\n if (_this.props.enableUserSelectHack) (0, _domFns.removeUserSelectStyles)(thisNode.ownerDocument);\n }\n\n (0, _log.default)('DraggableCore: handleDragStop: %j', coreEvent); // Reset the el.\n\n _this.setState({\n dragging: false,\n lastX: NaN,\n lastY: NaN\n });\n\n if (thisNode) {\n // Remove event handlers\n (0, _log.default)('DraggableCore: Removing handlers');\n (0, _domFns.removeEvent)(thisNode.ownerDocument, dragEventFor.move, _this.handleDrag);\n (0, _domFns.removeEvent)(thisNode.ownerDocument, dragEventFor.stop, _this.handleDragStop);\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onMouseDown\", function (e) {\n dragEventFor = eventsFor.mouse; // on touchscreen laptops we could switch back to mouse\n\n return _this.handleDragStart(e);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onMouseUp\", function (e) {\n dragEventFor = eventsFor.mouse;\n return _this.handleDragStop(e);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onTouchStart\", function (e) {\n // We're on a touch device now, so change the event handlers\n dragEventFor = eventsFor.touch;\n return _this.handleDragStart(e);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onTouchEnd\", function (e) {\n // We're on a touch device now, so change the event handlers\n dragEventFor = eventsFor.touch;\n return _this.handleDragStop(e);\n });\n\n return _this;\n }\n\n _createClass(DraggableCore, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.mounted = true; // Touch handlers must be added with {passive: false} to be cancelable.\n // https://developers.google.com/web/updates/2017/01/scrolling-intervention\n\n var thisNode = this.findDOMNode();\n\n if (thisNode) {\n (0, _domFns.addEvent)(thisNode, eventsFor.touch.start, this.onTouchStart, {\n passive: false\n });\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.mounted = false; // Remove any leftover event handlers. Remove both touch and mouse handlers in case\n // some browser quirk caused a touch event to fire during a mouse move, or vice versa.\n\n var thisNode = this.findDOMNode();\n\n if (thisNode) {\n var ownerDocument = thisNode.ownerDocument;\n (0, _domFns.removeEvent)(ownerDocument, eventsFor.mouse.move, this.handleDrag);\n (0, _domFns.removeEvent)(ownerDocument, eventsFor.touch.move, this.handleDrag);\n (0, _domFns.removeEvent)(ownerDocument, eventsFor.mouse.stop, this.handleDragStop);\n (0, _domFns.removeEvent)(ownerDocument, eventsFor.touch.stop, this.handleDragStop);\n (0, _domFns.removeEvent)(thisNode, eventsFor.touch.start, this.onTouchStart, {\n passive: false\n });\n if (this.props.enableUserSelectHack) (0, _domFns.removeUserSelectStyles)(ownerDocument);\n }\n } // React Strict Mode compatibility: if `nodeRef` is passed, we will use it instead of trying to find\n // the underlying DOM node ourselves. See the README for more information.\n\n }, {\n key: \"findDOMNode\",\n value: function findDOMNode()\n /*: ?HTMLElement*/\n {\n return this.props.nodeRef ? this.props.nodeRef.current : _reactDom.default.findDOMNode(this);\n }\n }, {\n key: \"render\",\n value: function render() {\n // Reuse the child provided\n // This makes it flexible to use whatever element is wanted (div, ul, etc)\n return React.cloneElement(React.Children.only(this.props.children), {\n // Note: mouseMove handler is attached to document so it will still function\n // when the user drags quickly and leaves the bounds of the element.\n onMouseDown: this.onMouseDown,\n onMouseUp: this.onMouseUp,\n // onTouchStart is added on `componentDidMount` so they can be added with\n // {passive: false}, which allows it to cancel. See \n // https://developers.google.com/web/updates/2017/01/scrolling-intervention\n onTouchEnd: this.onTouchEnd\n });\n }\n }]);\n\n return DraggableCore;\n}(React.Component);\n\nexports.default = DraggableCore;\n\n_defineProperty(DraggableCore, \"displayName\", 'DraggableCore');\n\n_defineProperty(DraggableCore, \"propTypes\", {\n /**\n * `allowAnyClick` allows dragging using any mouse button.\n * By default, we only accept the left button.\n *\n * Defaults to `false`.\n */\n allowAnyClick: _propTypes.default.bool,\n\n /**\n * `disabled`, if true, stops the from dragging. All handlers,\n * with the exception of `onMouseDown`, will not fire.\n */\n disabled: _propTypes.default.bool,\n\n /**\n * By default, we add 'user-select:none' attributes to the document body\n * to prevent ugly text selection during drag. If this is causing problems\n * for your app, set this to `false`.\n */\n enableUserSelectHack: _propTypes.default.bool,\n\n /**\n * `offsetParent`, if set, uses the passed DOM node to compute drag offsets\n * instead of using the parent node.\n */\n offsetParent: function offsetParent(props\n /*: DraggableCoreProps*/\n , propName\n /*: $Keys*/\n ) {\n if (props[propName] && props[propName].nodeType !== 1) {\n throw new Error('Draggable\\'s offsetParent must be a DOM Node.');\n }\n },\n\n /**\n * `grid` specifies the x and y that dragging should snap to.\n */\n grid: _propTypes.default.arrayOf(_propTypes.default.number),\n\n /**\n * `handle` specifies a selector to be used as the handle that initiates drag.\n *\n * Example:\n *\n * ```jsx\n * let App = React.createClass({\n * render: function () {\n * return (\n * \n *
    \n *
    Click me to drag
    \n *
    This is some other content
    \n *
    \n *
    \n * );\n * }\n * });\n * ```\n */\n handle: _propTypes.default.string,\n\n /**\n * `cancel` specifies a selector to be used to prevent drag initialization.\n *\n * Example:\n *\n * ```jsx\n * let App = React.createClass({\n * render: function () {\n * return(\n * \n *
    \n *
    You can't drag from here
    \n *
    Dragging here works fine
    \n *
    \n *
    \n * );\n * }\n * });\n * ```\n */\n cancel: _propTypes.default.string,\n\n /* If running in React Strict mode, ReactDOM.findDOMNode() is deprecated.\n * Unfortunately, in order for to work properly, we need raw access\n * to the underlying DOM node. If you want to avoid the warning, pass a `nodeRef`\n * as in this example:\n *\n * function MyComponent() {\n * const nodeRef = React.useRef(null);\n * return (\n * \n *
    Example Target
    \n *
    \n * );\n * }\n *\n * This can be used for arbitrarily nested components, so long as the ref ends up\n * pointing to the actual child DOM node and not a custom component.\n */\n nodeRef: _propTypes.default.object,\n\n /**\n * Called when dragging starts.\n * If this function returns the boolean false, dragging will be canceled.\n */\n onStart: _propTypes.default.func,\n\n /**\n * Called while dragging.\n * If this function returns the boolean false, dragging will be canceled.\n */\n onDrag: _propTypes.default.func,\n\n /**\n * Called when dragging stops.\n * If this function returns the boolean false, the drag will remain active.\n */\n onStop: _propTypes.default.func,\n\n /**\n * A workaround option which can be passed if onMouseDown needs to be accessed,\n * since it'll always be blocked (as there is internal use of onMouseDown)\n */\n onMouseDown: _propTypes.default.func,\n\n /**\n * `scale`, if set, applies scaling while dragging an element\n */\n scale: _propTypes.default.number,\n\n /**\n * These properties should be defined on the child, not here.\n */\n className: _shims.dontSetMe,\n style: _shims.dontSetMe,\n transform: _shims.dontSetMe\n});\n\n_defineProperty(DraggableCore, \"defaultProps\", {\n allowAnyClick: false,\n // by default only accept left click\n cancel: null,\n disabled: false,\n enableUserSelectHack: true,\n offsetParent: null,\n handle: null,\n grid: null,\n transform: null,\n onStart: function onStart() {},\n onDrag: function onDrag() {},\n onStop: function onStop() {},\n onMouseDown: function onMouseDown() {},\n scale: 1\n});\n\n/***/ }),\n/* 1111 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.cloneElement = cloneElement;\n\nvar _react = _interopRequireDefault(__webpack_require__(0));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n// React.addons.cloneWithProps look-alike that merges style & className.\nfunction cloneElement(element, props) {\n if (props.style && element.props.style) {\n props.style = _objectSpread({}, element.props.style, {}, props.style);\n }\n\n if (props.className && element.props.className) {\n props.className = element.props.className + \" \" + props.className;\n }\n\n return _react.default.cloneElement(element, props);\n}\n\n/***/ }),\n/* 1112 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar _react = _interopRequireDefault(__webpack_require__(0));\n\nvar _propTypes = _interopRequireDefault(__webpack_require__(1));\n\nvar _Resizable = _interopRequireDefault(__webpack_require__(310));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n// An example use of Resizable.\nvar ResizableBox =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inheritsLoose(ResizableBox, _React$Component);\n\n function ResizableBox() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n\n _defineProperty(_assertThisInitialized(_this), \"state\", {\n width: _this.props.width,\n height: _this.props.height,\n propsWidth: _this.props.width,\n propsHeight: _this.props.height\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onResize\", function (e, data) {\n var size = data.size;\n var width = size.width,\n height = size.height;\n\n if (_this.props.onResize) {\n e.persist && e.persist();\n\n _this.setState(size, function () {\n return _this.props.onResize && _this.props.onResize(e, data);\n });\n } else {\n _this.setState(size);\n }\n });\n\n return _this;\n }\n\n ResizableBox.getDerivedStateFromProps = function getDerivedStateFromProps(props, state) {\n // If parent changes height/width, set that in our state.\n if (state.propsWidth !== props.width || state.propsHeight !== props.height) {\n return {\n width: props.width,\n height: props.height,\n propsWidth: props.width,\n propsHeight: props.height\n };\n }\n\n return null;\n };\n\n var _proto = ResizableBox.prototype;\n\n _proto.render = function render() {\n // Basic wrapper around a Resizable instance.\n // If you use Resizable directly, you are responsible for updating the child component\n // with a new width and height.\n var _this$props = this.props,\n handle = _this$props.handle,\n handleSize = _this$props.handleSize,\n onResize = _this$props.onResize,\n onResizeStart = _this$props.onResizeStart,\n onResizeStop = _this$props.onResizeStop,\n draggableOpts = _this$props.draggableOpts,\n minConstraints = _this$props.minConstraints,\n maxConstraints = _this$props.maxConstraints,\n lockAspectRatio = _this$props.lockAspectRatio,\n axis = _this$props.axis,\n width = _this$props.width,\n height = _this$props.height,\n resizeHandles = _this$props.resizeHandles,\n props = _objectWithoutPropertiesLoose(_this$props, [\"handle\", \"handleSize\", \"onResize\", \"onResizeStart\", \"onResizeStop\", \"draggableOpts\", \"minConstraints\", \"maxConstraints\", \"lockAspectRatio\", \"axis\", \"width\", \"height\", \"resizeHandles\"]);\n\n return _react.default.createElement(_Resizable.default, {\n handle: handle,\n handleSize: handleSize,\n width: this.state.width,\n height: this.state.height,\n onResizeStart: onResizeStart,\n onResize: this.onResize,\n onResizeStop: onResizeStop,\n draggableOpts: draggableOpts,\n minConstraints: minConstraints,\n maxConstraints: maxConstraints,\n lockAspectRatio: lockAspectRatio,\n axis: axis,\n resizeHandles: resizeHandles\n }, _react.default.createElement(\"div\", _extends({\n style: {\n width: this.state.width + 'px',\n height: this.state.height + 'px'\n }\n }, props)));\n };\n\n return ResizableBox;\n}(_react.default.Component);\n\nexports.default = ResizableBox;\n\n_defineProperty(ResizableBox, \"propTypes\", {\n height: _propTypes.default.number,\n width: _propTypes.default.number\n});\n\n_defineProperty(ResizableBox, \"defaultProps\", {\n handleSize: [20, 20]\n});\n\n/***/ }),\n/* 1113 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _lodash = __webpack_require__(21);\n\nvar _lodash2 = _interopRequireDefault(_lodash);\n\nvar _utils = __webpack_require__(76);\n\nvar _responsiveUtils = __webpack_require__(313);\n\nvar _ReactGridLayout = __webpack_require__(309);\n\nvar _ReactGridLayout2 = _interopRequireDefault(_ReactGridLayout);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar type = function type(obj) {\n return Object.prototype.toString.call(obj);\n};\n\nvar ResponsiveReactGridLayout = function (_React$Component) {\n _inherits(ResponsiveReactGridLayout, _React$Component);\n\n function ResponsiveReactGridLayout() {\n var _temp, _this, _ret;\n\n _classCallCheck(this, ResponsiveReactGridLayout);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.state = _this.generateInitialState(), _this.onLayoutChange = function (layout) {\n var _extends2;\n\n _this.props.onLayoutChange(layout, _extends({}, _this.props.layouts, (_extends2 = {}, _extends2[_this.state.breakpoint] = layout, _extends2)));\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n // This should only include propTypes needed in this code; RGL itself\n // will do validation of the rest props passed to it.\n\n\n ResponsiveReactGridLayout.prototype.generateInitialState = function generateInitialState() {\n var _props = this.props,\n width = _props.width,\n breakpoints = _props.breakpoints,\n layouts = _props.layouts,\n cols = _props.cols;\n\n var breakpoint = (0, _responsiveUtils.getBreakpointFromWidth)(breakpoints, width);\n var colNo = (0, _responsiveUtils.getColsFromBreakpoint)(breakpoint, cols);\n // verticalCompact compatibility, now deprecated\n var compactType = this.props.verticalCompact === false ? null : this.props.compactType;\n // Get the initial layout. This can tricky; we try to generate one however possible if one doesn't exist\n // for this layout.\n var initialLayout = (0, _responsiveUtils.findOrGenerateResponsiveLayout)(layouts, breakpoints, breakpoint, breakpoint, colNo, compactType);\n\n return {\n layout: initialLayout,\n breakpoint: breakpoint,\n cols: colNo\n };\n };\n\n ResponsiveReactGridLayout.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n // Allow parent to set width or breakpoint directly.\n if (nextProps.width != this.props.width || nextProps.breakpoint !== this.props.breakpoint || !(0, _lodash2.default)(nextProps.breakpoints, this.props.breakpoints) || !(0, _lodash2.default)(nextProps.cols, this.props.cols)) {\n this.onWidthChange(nextProps);\n } else if (!(0, _lodash2.default)(nextProps.layouts, this.props.layouts)) {\n // Allow parent to set layouts directly.\n var _state = this.state,\n _breakpoint = _state.breakpoint,\n _cols = _state.cols;\n\n // Since we're setting an entirely new layout object, we must generate a new responsive layout\n // if one does not exist.\n\n var newLayout = (0, _responsiveUtils.findOrGenerateResponsiveLayout)(nextProps.layouts, nextProps.breakpoints, _breakpoint, _breakpoint, _cols, nextProps.compactType);\n this.setState({ layout: newLayout });\n }\n };\n\n // wrap layouts so we do not need to pass layouts to child\n\n\n /**\n * When the width changes work through breakpoints and reset state with the new width & breakpoint.\n * Width changes are necessary to figure out the widget widths.\n */\n ResponsiveReactGridLayout.prototype.onWidthChange = function onWidthChange(nextProps) {\n var breakpoints = nextProps.breakpoints,\n cols = nextProps.cols,\n layouts = nextProps.layouts,\n compactType = nextProps.compactType;\n\n var newBreakpoint = nextProps.breakpoint || (0, _responsiveUtils.getBreakpointFromWidth)(nextProps.breakpoints, nextProps.width);\n\n var lastBreakpoint = this.state.breakpoint;\n\n // Breakpoint change\n if (lastBreakpoint !== newBreakpoint || this.props.breakpoints !== breakpoints || this.props.cols !== cols) {\n // Preserve the current layout if the current breakpoint is not present in the next layouts.\n if (!(lastBreakpoint in layouts)) layouts[lastBreakpoint] = (0, _utils.cloneLayout)(this.state.layout);\n\n // Find or generate a new layout.\n var newCols = (0, _responsiveUtils.getColsFromBreakpoint)(newBreakpoint, cols);\n var _layout = (0, _responsiveUtils.findOrGenerateResponsiveLayout)(layouts, breakpoints, newBreakpoint, lastBreakpoint, newCols, compactType);\n\n // This adds missing items.\n _layout = (0, _utils.synchronizeLayoutWithChildren)(_layout, nextProps.children, newCols, compactType);\n\n // Store the new layout.\n layouts[newBreakpoint] = _layout;\n\n // callbacks\n this.props.onLayoutChange(_layout, layouts);\n this.props.onBreakpointChange(newBreakpoint, newCols);\n this.props.onWidthChange(nextProps.width, nextProps.margin, newCols, nextProps.containerPadding);\n\n this.setState({\n breakpoint: newBreakpoint,\n layout: _layout,\n cols: newCols\n });\n }\n };\n\n ResponsiveReactGridLayout.prototype.render = function render() {\n /* eslint-disable no-unused-vars */\n var _props2 = this.props,\n breakpoint = _props2.breakpoint,\n breakpoints = _props2.breakpoints,\n cols = _props2.cols,\n layouts = _props2.layouts,\n onBreakpointChange = _props2.onBreakpointChange,\n onLayoutChange = _props2.onLayoutChange,\n onWidthChange = _props2.onWidthChange,\n other = _objectWithoutProperties(_props2, [\"breakpoint\", \"breakpoints\", \"cols\", \"layouts\", \"onBreakpointChange\", \"onLayoutChange\", \"onWidthChange\"]);\n /* eslint-enable no-unused-vars */\n\n return _react2.default.createElement(_ReactGridLayout2.default, _extends({}, other, {\n onLayoutChange: this.onLayoutChange,\n layout: this.state.layout,\n cols: this.state.cols\n }));\n };\n\n return ResponsiveReactGridLayout;\n}(_react2.default.Component);\n\nResponsiveReactGridLayout.propTypes = {\n //\n // Basic props\n //\n\n // Optional, but if you are managing width yourself you may want to set the breakpoint\n // yourself as well.\n breakpoint: _propTypes2.default.string,\n\n // {name: pxVal}, e.g. {lg: 1200, md: 996, sm: 768, xs: 480}\n breakpoints: _propTypes2.default.object,\n\n // # of cols. This is a breakpoint -> cols map\n cols: _propTypes2.default.object,\n\n // layouts is an object mapping breakpoints to layouts.\n // e.g. {lg: Layout, md: Layout, ...}\n layouts: function layouts(props, propName) {\n if (type(props[propName]) !== \"[object Object]\") {\n throw new Error(\"Layout property must be an object. Received: \" + type(props[propName]));\n }\n Object.keys(props[propName]).forEach(function (key) {\n if (!(key in props.breakpoints)) {\n throw new Error(\"Each key in layouts must align with a key in breakpoints.\");\n }\n (0, _utils.validateLayout)(props.layouts[key], \"layouts.\" + key);\n });\n },\n\n\n // The width of this component.\n // Required in this propTypes stanza because generateInitialState() will fail without it.\n width: _propTypes2.default.number.isRequired,\n\n //\n // Callbacks\n //\n\n // Calls back with breakpoint and new # cols\n onBreakpointChange: _propTypes2.default.func,\n\n // Callback so you can save the layout.\n // Calls back with (currentLayout, allLayouts). allLayouts are keyed by breakpoint.\n onLayoutChange: _propTypes2.default.func,\n\n // Calls back with (containerWidth, margin, cols, containerPadding)\n onWidthChange: _propTypes2.default.func\n};\nResponsiveReactGridLayout.defaultProps = {\n breakpoints: { lg: 1200, md: 996, sm: 768, xs: 480, xxs: 0 },\n cols: { lg: 12, md: 10, sm: 6, xs: 4, xxs: 2 },\n layouts: {},\n onBreakpointChange: _utils.noop,\n onLayoutChange: _utils.noop,\n onWidthChange: _utils.noop\n};\nexports.default = ResponsiveReactGridLayout;\n\n/***/ }),\n/* 1114 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nexports.default = WidthProvider;\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n/*\n * A simple HOC that provides facility for listening to container resizes.\n */\nfunction WidthProvider(ComposedComponent) {\n var _class, _temp2;\n\n return _temp2 = _class = function (_React$Component) {\n _inherits(WidthProvider, _React$Component);\n\n function WidthProvider() {\n var _temp, _this, _ret;\n\n _classCallCheck(this, WidthProvider);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.state = {\n width: 1280\n }, _this.mounted = false, _this.onWindowResize = function () {\n if (!_this.mounted) return;\n // eslint-disable-next-line\n var node = _reactDom2.default.findDOMNode(_this); // Flow casts this to Text | Element\n if (node instanceof HTMLElement) _this.setState({ width: node.offsetWidth });\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n WidthProvider.prototype.componentDidMount = function componentDidMount() {\n this.mounted = true;\n\n window.addEventListener(\"resize\", this.onWindowResize);\n // Call to properly set the breakpoint and resize the elements.\n // Note that if you're doing a full-width element, this can get a little wonky if a scrollbar\n // appears because of the grid. In that case, fire your own resize event, or set `overflow: scroll` on your body.\n this.onWindowResize();\n };\n\n WidthProvider.prototype.componentWillUnmount = function componentWillUnmount() {\n this.mounted = false;\n window.removeEventListener(\"resize\", this.onWindowResize);\n };\n\n WidthProvider.prototype.render = function render() {\n var _props = this.props,\n measureBeforeMount = _props.measureBeforeMount,\n rest = _objectWithoutProperties(_props, [\"measureBeforeMount\"]);\n\n if (measureBeforeMount && !this.mounted) {\n return _react2.default.createElement(\"div\", { className: this.props.className, style: this.props.style });\n }\n\n return _react2.default.createElement(ComposedComponent, _extends({}, rest, this.state));\n };\n\n return WidthProvider;\n }(_react2.default.Component), _class.defaultProps = {\n measureBeforeMount: false\n }, _class.propTypes = {\n // If true, will not render children until mounted. Useful for getting the exact width before\n // rendering, to prevent any unsightly resizing.\n measureBeforeMount: _propTypes2.default.bool\n }, _temp2;\n}\n\n/***/ }),\n/* 1115 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _tinperBeeCore = __webpack_require__(6);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = {\n componentClass: _tinperBeeCore.elementType\n};\n\nvar defaultProps = {\n componentClass: 'div',\n clsPrefix: 'u-modal-footer'\n};\n\nvar ModalFooter = function (_React$Component) {\n _inherits(ModalFooter, _React$Component);\n\n function ModalFooter() {\n _classCallCheck(this, ModalFooter);\n\n return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n ModalFooter.prototype.render = function render() {\n var _props = this.props,\n Component = _props.componentClass,\n clsPrefix = _props.clsPrefix,\n className = _props.className,\n props = _objectWithoutProperties(_props, ['componentClass', 'clsPrefix', 'className']);\n\n var classes = {};\n classes['' + clsPrefix] = true;\n\n return _react2[\"default\"].createElement(Component, _extends({}, props, {\n className: (0, _classnames2[\"default\"])(className, classes)\n }));\n };\n\n return ModalFooter;\n}(_react2[\"default\"].Component);\n\nModalFooter.propTypes = propTypes;\nModalFooter.defaultProps = defaultProps;\n\nexports[\"default\"] = ModalFooter;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1116 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _tinperBeeCore = __webpack_require__(6);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = {\n\n /**\n * 是否显示关闭按钮\n */\n closeButton: _propTypes2[\"default\"].bool,\n\n /**\n * 关闭时的钩子函数\n */\n onHide: _propTypes2[\"default\"].func,\n /**\n * 自定义关闭按钮的钩子函数\n */\n renderCloseButton: _propTypes2[\"default\"].func,\n /**\n * 自定义关闭按钮的 props\n */\n closeButtonProps: _propTypes2[\"default\"].object\n};\n\nvar defaultProps = {\n 'aria-label': 'Close',\n closeButton: false,\n clsPrefix: 'u-modal-header'\n};\n\nvar contextTypes = {\n $u_modal: _propTypes2[\"default\"].shape({\n onHide: _propTypes2[\"default\"].func\n })\n};\n\nvar ModalHeader = function (_React$Component) {\n _inherits(ModalHeader, _React$Component);\n\n function ModalHeader() {\n _classCallCheck(this, ModalHeader);\n\n return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n ModalHeader.prototype.render = function render() {\n var _props = this.props,\n label = _props['aria-label'],\n closeButton = _props.closeButton,\n onHide = _props.onHide,\n className = _props.className,\n clsPrefix = _props.clsPrefix,\n children = _props.children,\n renderCloseButton = _props.renderCloseButton,\n closeButtonProps = _props.closeButtonProps,\n props = _objectWithoutProperties(_props, ['aria-label', 'closeButton', 'onHide', 'className', 'clsPrefix', 'children', 'renderCloseButton', 'closeButtonProps']);\n\n var modal = this.context.$u_modal;\n var classes = {};\n classes['' + clsPrefix] = true;\n classes['dnd-handle'] = true;\n\n var closeBtnDom = _react2[\"default\"].createElement(\n 'button',\n _extends({}, closeButtonProps, {\n type: 'button',\n className: 'u-close dnd-cancel',\n 'aria-label': label,\n onClick: (0, _tinperBeeCore.createChainedFunction)(modal.onHide, onHide)\n }),\n renderCloseButton ? renderCloseButton() : _react2[\"default\"].createElement(\n 'span',\n { 'aria-hidden': 'true' },\n _react2[\"default\"].createElement('i', { className: 'uf uf-close' })\n )\n );\n return _react2[\"default\"].createElement(\n 'div',\n _extends({}, props, {\n className: (0, _classnames2[\"default\"])(className, classes)\n }),\n closeButton && closeBtnDom,\n children\n );\n };\n\n return ModalHeader;\n}(_react2[\"default\"].Component);\n\nModalHeader.propTypes = propTypes;\nModalHeader.defaultProps = defaultProps;\nModalHeader.contextTypes = contextTypes;\n\nexports[\"default\"] = ModalHeader;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1117 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _tinperBeeCore = __webpack_require__(6);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = {\n componentClass: _tinperBeeCore.elementType\n};\n\nvar defaultProps = {\n componentClass: 'h4',\n clsPrefix: 'u-modal-title'\n};\n\nvar ModalTitle = function (_React$Component) {\n _inherits(ModalTitle, _React$Component);\n\n function ModalTitle() {\n _classCallCheck(this, ModalTitle);\n\n return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n ModalTitle.prototype.render = function render() {\n var _props = this.props,\n Component = _props.componentClass,\n className = _props.className,\n clsPrefix = _props.clsPrefix,\n props = _objectWithoutProperties(_props, ['componentClass', 'className', 'clsPrefix']);\n\n var classes = {};\n classes['' + clsPrefix] = true;\n classes['clearfix'] = true;\n\n return _react2[\"default\"].createElement(Component, _extends({}, props, {\n className: (0, _classnames2[\"default\"])(className, classes)\n }));\n };\n\n return ModalTitle;\n}(_react2[\"default\"].Component);\n\nModalTitle.propTypes = propTypes;\nModalTitle.defaultProps = defaultProps;\n\nexports[\"default\"] = ModalTitle;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1118 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nexports[\"default\"] = confirm;\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _Modal = __webpack_require__(161);\n\nvar _Modal2 = _interopRequireDefault(_Modal);\n\nvar _beeButton = __webpack_require__(314);\n\nvar _beeButton2 = _interopRequireDefault(_beeButton);\n\nvar _ConfirmModal = __webpack_require__(1120);\n\nvar _ConfirmModal2 = _interopRequireDefault(_ConfirmModal);\n\nvar _beeIcon = __webpack_require__(13);\n\nvar _beeIcon2 = _interopRequireDefault(_beeIcon);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar IS_REACT_16 = !!_reactDom2[\"default\"].createPortal;\n\nvar ConfirmDialog = function (_React$Component) {\n _inherits(ConfirmDialog, _React$Component);\n\n function ConfirmDialog(props) {\n _classCallCheck(this, ConfirmDialog);\n\n return _possibleConstructorReturn(this, _React$Component.call(this, props));\n }\n\n ConfirmDialog.prototype.render = function render() {\n var props = this.props;\n var onCancel = props.onCancel,\n onOk = props.onOk,\n close = props.close,\n onHide = props.onHide,\n show = props.show,\n keyboard = props.keyboard,\n centered = props.centered,\n getContainer = props.getContainer,\n backdropStyle = props.backdropStyle,\n okButtonProps = props.okButtonProps,\n cancelButtonProps = props.cancelButtonProps,\n _props$iconType = props.iconType,\n iconType = _props$iconType === undefined ? 'uf-qm-c' : _props$iconType,\n _props$locale = props.locale,\n locale = _props$locale === undefined ? {\n 'ok': '确定',\n 'gotit': '知道了',\n 'cancel': '取消'\n } : _props$locale;\n\n // 支持传入{ icon: null }来隐藏`Modal.confirm`默认的Icon\n\n var icon = props.icon === undefined ? iconType : props.icon;\n var okType = props.okType || 'primary';\n var prefixCls = props.prefixCls || 'u-modal';\n var contentPrefixCls = prefixCls + '-confirm';\n // 默认为 true,保持向下兼容\n var okCancel = 'okCancel' in props ? props.okCancel : true;\n var width = props.width || 400;\n var style = props.style || {};\n var backdrop = props.backdrop === undefined ? true : props.backdrop;\n // 默认为 false,保持旧版默认行为\n var backdropClosable = props.backdropClosable === undefined ? true : props.backdropClosable;\n // const runtimeLocale = getConfirmLocale();\n var okText = props.okText || (okCancel ? locale.ok : locale.gotit);\n var cancelText = props.cancelText || locale.cancel;\n var autoFocusButton = props.autoFocusButton === null ? false : props.autoFocusButton || 'ok';\n var transitionName = props.transitionName || 'zoom';\n var maskTransitionName = props.maskTransitionName || 'fade';\n\n var classString = (0, _classnames2[\"default\"])(contentPrefixCls, contentPrefixCls + '-' + props.type, props.className);\n\n var cancelButton = okCancel && _react2[\"default\"].createElement(\n _beeButton2[\"default\"],\n {\n onClick: function onClick() {\n close();onCancel ? onCancel() : function () {\n return;\n };\n },\n colors: 'secondary',\n style: { marginRight: 8 }\n },\n cancelText\n );\n var iconNode = typeof icon === 'string' ? _react2[\"default\"].createElement(_beeIcon2[\"default\"], { type: icon }) : icon;\n\n return _react2[\"default\"].createElement(\n _Modal2[\"default\"],\n {\n width: width,\n className: classString,\n show: show,\n onHide: function onHide() {\n close();onCancel ? onCancel() : function () {\n return;\n };\n },\n backdrop: backdrop,\n backdropClosable: backdropClosable,\n centered: centered,\n keyboard: keyboard,\n backdropStyle: backdropStyle },\n _react2[\"default\"].createElement(\n _Modal2[\"default\"].Header,\n null,\n _react2[\"default\"].createElement(\n _Modal2[\"default\"].Title,\n null,\n iconNode,\n _react2[\"default\"].createElement(\n 'span',\n { className: contentPrefixCls + '-title' },\n props.title\n )\n )\n ),\n _react2[\"default\"].createElement(\n _Modal2[\"default\"].Body,\n null,\n _react2[\"default\"].createElement(\n 'div',\n { className: contentPrefixCls + '-content' },\n props.content\n )\n ),\n _react2[\"default\"].createElement(\n _Modal2[\"default\"].Footer,\n null,\n cancelButton,\n _react2[\"default\"].createElement(\n _beeButton2[\"default\"],\n {\n onClick: function onClick() {\n close();onOk ? onOk() : function () {\n return;\n };\n },\n colors: okType\n },\n okText\n )\n )\n );\n };\n\n return ConfirmDialog;\n}(_react2[\"default\"].Component);\n\nfunction confirm(config) {\n var div = document.createElement('div');\n document.body.appendChild(div);\n var currentConfig = _extends({}, config, { close: close, show: true });\n\n function close() {\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n currentConfig = _extends({}, currentConfig, {\n show: false,\n onHide: destroy.bind.apply(destroy, [this].concat(args))\n });\n if (IS_REACT_16) {\n render(currentConfig);\n } else {\n destroy.apply(undefined, args);\n }\n }\n\n function update(newConfig) {\n currentConfig = _extends({}, currentConfig, newConfig);\n render(currentConfig);\n }\n\n function destroy() {\n var unmountResult = _reactDom2[\"default\"].unmountComponentAtNode(div);\n if (unmountResult && div.parentNode) {\n div.parentNode.removeChild(div);\n }\n\n for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n var triggerCancel = args.some(function (param) {\n return param && param.triggerCancel;\n });\n if (config.onCancel && triggerCancel) {\n config.onCancel.apply(config, args);\n }\n for (var i = 0; i < _Modal.destroyFns.length; i++) {\n var fn = _Modal.destroyFns[i];\n if (fn === close) {\n _Modal.destroyFns.splice(i, 1);\n break;\n }\n }\n }\n\n function render(props) {\n _reactDom2[\"default\"].render(props.confirmType == 'one' ? _react2[\"default\"].createElement(ConfirmDialog, props) : _react2[\"default\"].createElement(_ConfirmModal2[\"default\"], props), div);\n }\n\n render(currentConfig);\n\n _Modal.destroyFns.push(close);\n\n return {\n destroy: close,\n update: update\n };\n}\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1119 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = {\n /**\n * @title 尺寸\n */\n size: _propTypes2[\"default\"].oneOf(['sm', 'md', 'xg', 'lg']),\n /**\n * @title 样式\n */\n style: _propTypes2[\"default\"].object,\n /**\n * @title 形状\n */\n shape: _propTypes2[\"default\"].oneOf(['block', 'round', 'border', 'squared', 'floating', 'pillRight', 'pillLeft', 'icon']),\n\n bordered: _propTypes2[\"default\"].bool,\n /**\n * @title 类型\n */\n colors: _propTypes2[\"default\"].oneOf(['primary', 'secondary', 'accent', 'success', 'info', 'warning', 'danger', 'dark', 'light', 'default']),\n /**\n * @title 是否禁用\n * @veIgnore\n */\n disabled: _propTypes2[\"default\"].bool,\n /**\n * @title 类名\n * @veIgnore\n */\n className: _propTypes2[\"default\"].string,\n\n /**\n * @title
    对象\n * @memberof TableHeader\n */\n\n\n TableHeader.prototype.getThDome = function getThDome(element) {\n var _tagName = element.tagName.toLowerCase();\n if (element.getAttribute('data-filter-type') === 'filterContext') return null;\n if (_tagName === 'i') return null;\n if (_tagName != 'th') {\n return this.getThDome(element.parentElement);\n } else {\n return element;\n }\n };\n\n //---拖拽列交换----end-----\n\n /**\n * 过滤输入后或下拉条件的回调函数\n */\n\n\n /**\n * 过滤行清除回调\n */\n\n\n /**\n * 过滤渲染的组件类型\n */\n\n\n TableHeader.prototype.render = function render() {\n var _this7 = this;\n\n var _props2 = this.props,\n clsPrefix = _props2.clsPrefix,\n rowStyle = _props2.rowStyle,\n draggable = _props2.draggable,\n dragborder = _props2.dragborder,\n rows = _props2.rows,\n filterable = _props2.filterable,\n fixed = _props2.fixed,\n lastShowIndex = _props2.lastShowIndex,\n columnsChildrenList = _props2.columnsChildrenList;\n\n var attr = dragborder ? { id: \"u-table-drag-thead-\" + this.theadKey } : {};\n var lastObj = columnsChildrenList[columnsChildrenList.length - 1];\n return _react2[\"default\"].createElement(\n \"thead\",\n _extends({ className: clsPrefix + \"-thead\" }, attr, { \"data-theader-fixed\": \"scroll\", ref: function ref(_thead) {\n return _this7._thead = _thead;\n } }),\n rows.map(function (row, index) {\n var _rowLeng = row.length - 1;\n return _react2[\"default\"].createElement(\n \"tr\",\n { key: index, style: rowStyle, className: filterable && index == rows.length - 1 ? 'filterable' : '' },\n row.map(function (da, columIndex, arr) {\n da.children = da.required ? _react2[\"default\"].createElement(\n \"span\",\n null,\n _react2[\"default\"].createElement(\n \"span\",\n { className: \"required\" },\n \"*\"\n ),\n da.children\n ) : da.children;\n var thHover = da.drgHover ? \" \" + clsPrefix + \"-thead th-drag-hover\" : \"\";\n delete da.drgHover;\n var fixedStyle = \"\";\n var canDotDrag = \"\";\n //主表格下、固定列或者是过滤行中含有固定列时添加该属性\n if (!fixed && (da.fixed || filterable && index == rows.length - 1 && rows[0][columIndex].fixed)) {\n fixedStyle = \" \" + clsPrefix + \"-row-fixed-columns-in-body\";\n }\n\n if (lastShowIndex == columIndex) {\n canDotDrag = \"th-can-not-drag\";\n }\n var thClassName = \"\" + da.className ? \"\" + da.className : '';\n if (da.titleAlign) {\n thClassName += \" text-\" + da.titleAlign + \" \";\n } else if (da.textAlign) {\n thClassName += \" text-\" + da.textAlign + \" \";\n }\n\n delete da.textAlign;\n delete da.titleAlign;\n var keyTemp = {};\n //避免key为undefined\n // if(da.dataindex && da.key ===undefined ){\n keyTemp.key = da.key || da.dataindex || index + '-' + columIndex;\n\n // }\n if (filterable && index == rows.length - 1) {\n da.children = _this7.filterRenderType(da[\"filtertype\"], da.dataindex, columIndex);\n if (da.key === undefined) {\n keyTemp.key = keyTemp.key + '-filterable';\n }\n delete da.filterdropdownfocus;\n }\n\n var thDefaultObj = {};\n\n if (draggable) {\n thClassName += \" \" + clsPrefix + \"-thead th-drag \" + thHover + \" \";\n }\n if (dragborder) {\n thClassName += \" \" + clsPrefix + \"-thead-th \" + canDotDrag;\n }\n thClassName += \" \" + fixedStyle;\n if (!da.fixed) {\n return _react2[\"default\"].createElement(\n \"th\",\n _extends({}, da, keyTemp, { className: thClassName, \"data-th-fixed\": da.fixed, \"data-line-key\": da.key,\n \"data-line-index\": columIndex, \"data-th-width\": da.width, \"data-type\": \"draggable\" }),\n da.children,\n\n // && columIndex != _rowLeng\n dragborder && lastObj && da.key != lastObj.key ? _react2[\"default\"].createElement(\n \"div\",\n { ref: function ref(el) {\n return _this7.gap = el;\n }, \"data-line-key\": da.key,\n \"data-line-index\": columIndex, \"data-th-width\": da.width,\n \"data-type\": \"online\", className: clsPrefix + \"-thead-th-drag-gap\" },\n _react2[\"default\"].createElement(\"div\", { className: \"online\" })\n ) : \"\"\n );\n } else {\n thDefaultObj = _extends({}, da, {\n className: thClassName + \" \" + fixedStyle\n });\n da.onClick ? thDefaultObj.onClick = function (e) {\n da.onClick(da, e);\n } : \"\";\n return _react2[\"default\"].createElement(\"th\", _extends({}, thDefaultObj, keyTemp, { \"data-th-fixed\": da.fixed, style: { maxWidth: da.width } }));\n }\n })\n );\n })\n );\n };\n\n return TableHeader;\n}(_react.Component);\n\nTableHeader.defaultProps = {\n contentWidthDiff: 0\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this8 = this;\n\n this.getOnLineObject = function (_element) {\n var type = _element.getAttribute('data-type'),\n elementObj = null;\n if (!type) {\n var element = _element.parentElement || parentNode; //兼容写法。\n if (element.getAttribute('data-type')) {\n elementObj = element;\n }\n } else {\n elementObj = _element;\n }\n return elementObj;\n };\n\n this.onTrMouseDown = function (e) {\n _utils.Event.stopPropagation(e);\n var event = _utils.Event.getEvent(e),\n targetEvent = _utils.Event.getTarget(event);\n var _props3 = _this8.props,\n clsPrefix = _props3.clsPrefix,\n contentTable = _props3.contentTable,\n lastShowIndex = _props3.lastShowIndex,\n columnsChildrenList = _props3.columnsChildrenList;\n // let currentElement = this.getOnLineObject(targetEvent);\n\n var currentElement = _this8.getTargetToType(targetEvent);\n if (!currentElement) return;\n var type = currentElement.getAttribute('data-type');\n if (!_this8.props.dragborder && !_this8.props.draggable) return;\n if (type == 'online' && _this8.props.dragborder) {\n // if(!this.props.dragborder)return;\n targetEvent.setAttribute('draggable', false); //添加交换列效果\n var currentIndex = -1;\n var defaultWidth = currentElement.getAttribute(\"data-th-width\");\n _this8.drag.option = \"border\"; //拖拽操作\n if (columnsChildrenList) {\n var columnKey = currentElement.getAttribute(\"data-line-key\");\n if (columnKey) {\n currentIndex = columnsChildrenList.findIndex(function (da) {\n return (da.key && da.key.toLowerCase()) === columnKey.toLowerCase();\n });\n }\n }\n if (currentIndex < 0) {\n console.log('Key must be set for column!');\n return;\n }\n var currentObj = _this8.table.cols[currentIndex];\n _this8.drag.currIndex = currentIndex;\n _this8.drag.oldLeft = event.x;\n _this8.drag.oldWidth = parseInt(currentObj.style.width);\n _this8.drag.minWidth = currentObj.style.minWidth != \"\" ? parseInt(currentObj.style.minWidth) : defaultWidth;\n _this8.drag.tableWidth = parseInt(_this8.table.table.style.width ? _this8.table.table.style.width : _this8.table.table.scrollWidth);\n if (!_this8.tableOldWidth) {\n _this8.tableOldWidth = _this8.drag.tableWidth; //this.getTableWidth();\n }\n if (!_this8.lastColumWidth) {\n _this8.lastColumWidth = parseInt(_this8.table.cols[lastShowIndex].style.width);\n }\n } else if (type != 'online' && _this8.props.draggable) {\n // if (!this.props.draggable || targetEvent.nodeName.toUpperCase() != \"TH\") return;\n if (!_this8.props.draggable) return;\n var th = _this8.getTargetToType(targetEvent);\n th.setAttribute('draggable', true); //添加交换列效果\n _this8.drag.option = 'dragAble';\n _this8.currentDome = th;\n var _currentIndex = parseInt(th.getAttribute(\"data-line-index\"));\n _this8.drag.currIndex = _currentIndex;\n } else {\n // console.log(\"onTrMouseDown dragborder or draggable is all false !\");\n return;\n }\n };\n\n this.getTableWidth = function () {\n var tableWidth = 0,\n offWidth = 0; //this.table.cols.length;\n for (var index = 0; index < _this8.table.cols.length; index++) {\n var da = _this8.table.cols[index];\n tableWidth += parseInt(da.style.width);\n }\n return tableWidth - offWidth;\n };\n\n this.getTargetToType = function (targetEvent) {\n var tag = targetEvent;\n if (targetEvent && !targetEvent.getAttribute(\"data-type\")) {\n tag = _this8.getTargetToType(targetEvent.parentElement);\n }\n return tag;\n };\n\n this.getTargetToTh = function (targetEvent) {\n var th = targetEvent;\n if (targetEvent.nodeName.toUpperCase() != \"TH\") {\n th = _this8.getThDome(targetEvent);\n }\n // console.log(\" getTargetToTh: \", th);\n return th;\n };\n\n this.onTrMouseMove = function (e) {\n if (!_this8.props.dragborder && !_this8.props.draggable) return;\n var _props4 = _this8.props,\n clsPrefix = _props4.clsPrefix,\n dragborder = _props4.dragborder,\n contentDomWidth = _props4.contentDomWidth,\n scrollbarWidth = _props4.scrollbarWidth,\n contentTable = _props4.contentTable,\n headerScroll = _props4.headerScroll,\n lastShowIndex = _props4.lastShowIndex,\n onDraggingBorder = _props4.onDraggingBorder,\n leftFixedWidth = _props4.leftFixedWidth,\n rightFixedWidth = _props4.rightFixedWidth;\n\n _utils.Event.stopPropagation(e);\n var event = _utils.Event.getEvent(e);\n if (_this8.props.dragborder && _this8.drag.option == \"border\") {\n //移动改变宽度\n var currentCols = _this8.table.cols[_this8.drag.currIndex];\n var diff = event.x - _this8.drag.oldLeft;\n var newWidth = _this8.drag.oldWidth + diff;\n _this8.drag.newWidth = newWidth > 0 ? newWidth : _this8.minWidth;\n if (newWidth > _this8.minWidth) {\n currentCols.style.width = newWidth + 'px';\n //hao 支持固定表头拖拽 修改表体的width\n if (_this8.fixedTable.cols) {\n _this8.fixedTable.cols[_this8.drag.currIndex].style.width = newWidth + \"px\";\n }\n\n var newDiff = parseInt(currentCols.style.minWidth) - parseInt(currentCols.style.width);\n if (newDiff > 0) {\n //缩小\n var lastWidth = _this8.lastColumWidth + newDiff;\n _this8.table.cols[lastShowIndex].style.width = lastWidth + \"px\"; //同步表头\n _this8.table.tableBodyCols[lastShowIndex].style.width = lastWidth + \"px\"; //同步表体\n }\n var showScroll = contentDomWidth - (leftFixedWidth + rightFixedWidth) - (_this8.drag.tableWidth + diff) - scrollbarWidth;\n //表头滚动条处理\n if (headerScroll) {\n if (showScroll < 0) {\n //小于 0 出现滚动条\n //找到固定列表格,设置表头的marginBottom值为scrollbarWidth;\n _this8.table.contentTableHeader.style.overflowX = 'scroll';\n _this8.optTableMargin(_this8.table.fixedLeftHeaderTable, scrollbarWidth);\n _this8.optTableMargin(_this8.table.fixedRighHeadertTable, scrollbarWidth);\n } else {\n //大于 0 不显示滚动条\n _this8.table.contentTableHeader.style.overflowX = 'hidden';\n _this8.optTableMargin(_this8.table.fixedLeftHeaderTable, 0);\n _this8.optTableMargin(_this8.table.fixedRighHeadertTable, 0);\n }\n } else {\n if (showScroll < 0) {\n _this8.table.tableBody.style.overflowX = 'auto';\n _this8.optTableMargin(_this8.table.fixedLeftBodyTable, '-' + scrollbarWidth);\n _this8.optTableMargin(_this8.table.fixedRightBodyTable, '-' + scrollbarWidth);\n _this8.optTableScroll(_this8.table.fixedLeftBodyTable, { x: 'scroll' });\n _this8.optTableScroll(_this8.table.fixedRightBodyTable, { x: 'scroll' });\n } else {\n _this8.table.tableBody.style.overflowX = 'hidden';\n _this8.optTableMargin(_this8.table.fixedLeftBodyTable, 0);\n _this8.optTableMargin(_this8.table.fixedRightBodyTable, 0);\n _this8.optTableScroll(_this8.table.fixedLeftBodyTable, { x: 'auto' });\n _this8.optTableScroll(_this8.table.fixedRightBodyTable, { x: 'auto' });\n }\n }\n } else {\n _this8.drag.newWidth = _this8.minWidth;\n }\n }\n // 增加拖拽列宽动作的回调函数\n _this8.drag.newWidth && onDraggingBorder && onDraggingBorder(event, _this8.drag.newWidth);\n };\n\n this.onTrMouseUp = function (e) {\n var event = _utils.Event.getEvent(e);\n var width = _this8.drag.newWidth;\n var opt = _this8.drag.option;\n _this8.mouseClear();\n if (opt !== \"border\") return; // fix:点击表头会触发onDropBorder事件的问题\n _this8.props.onDropBorder && _this8.props.onDropBorder(event, width);\n };\n\n this.clearThsDr = function () {\n var ths = _this8.table.ths;\n for (var index = 0; index < ths.length; index++) {\n ths[index].setAttribute('draggable', false); //去掉交换列效果\n }\n };\n\n this.bodyonLineMouseUp = function (events, type) {\n if (!_this8.drag || !_this8.drag.option) return;\n _this8.mouseClear();\n };\n\n this.optTableMargin = function (table, scrollbarWidth) {\n if (table) {\n table.style.marginBottom = scrollbarWidth + \"px\";\n }\n };\n\n this.optTableScroll = function (table) {\n var overflow = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n if (table) {\n var innerTable = table.querySelector('.u-table-body-inner');\n if (innerTable) {\n //fixbug: 拖拽列宽后,滚动条滚到表格底部,会导致固定列和非固定列错行\n overflow.x && (innerTable.style.overflowX = overflow.x);\n overflow.y && (innerTable.style.overflowY = overflow.y);\n }\n }\n };\n\n this.onDragStart = function (e) {\n if (!_this8.props.draggable) return;\n if (_this8.drag && _this8.drag.option != 'dragAble') {\n return;\n }\n var event = _utils.Event.getEvent(e),\n\n // target = Event.getTarget(event);\n target = _this8.getTargetToTh(_utils.Event.getTarget(event));\n var currentIndex = parseInt(target.getAttribute(\"data-line-index\"));\n var currentKey = target.getAttribute('data-line-key');\n\n if (event.dataTransfer.setDragImage) {\n var crt = target.cloneNode(true);\n crt.style.backgroundColor = \"#ebecf0\";\n crt.style.width = _this8.table.cols[currentIndex].style.width; //拖动后再交换列的时候,阴影效果可同步\n crt.style.height = \"40px\";\n // crt.style['line-height'] = \"40px\";\n // document.body.appendChild(crt);\n document.getElementById(_this8._table_none_cont_id).appendChild(crt);\n event.dataTransfer.setDragImage(crt, 0, 0);\n }\n\n event.dataTransfer.effectAllowed = \"move\";\n event.dataTransfer.setData(\"Text\", currentKey);\n _this8.currentObj = _this8.props.rows[0][currentIndex];\n };\n\n this.onDragOver = function (e) {\n var event = _utils.Event.getEvent(e);\n event.preventDefault();\n };\n\n this.onDrop = function (e) {\n if (!_this8.props.draggable) return;\n var props = _this8.getCurrentEventData(_this8._dragCurrent);\n e.column = { props: props };\n if (_this8.drag && _this8.drag.option != 'dragAble') {\n _this8.props.onDrop(e);\n return;\n }\n var event = _utils.Event.getEvent(e),\n target = _utils.Event.getTarget(event);\n _this8.currentDome.setAttribute('draggable', false); //添加交换列效果\n // let data = this.getCurrentEventData(this._dragCurrent);\n // if(!data){\n // this.props.onDrop(e);\n // return;\n // }\n if (!_this8.props.onDrop) return;\n // this.props.onDrop(event,target);\n _this8.props.onDrop(event, { dragSource: _this8.currentObj, dragTarg: e.column });\n };\n\n this.onDragEnter = function (e) {\n var event = _utils.Event.getEvent(e),\n target = _utils.Event.getTarget(event);\n _this8._dragCurrent = target;\n var currentIndex = target.getAttribute(\"data-line-index\");\n if (!currentIndex || parseInt(currentIndex) === _this8.drag.currIndex) return;\n if (target.nodeName.toUpperCase() === \"TH\") {\n // target.style.border = \"2px dashed rgba(5,0,0,0.25)\";\n target.setAttribute(\"style\", \"border-right:2px dashed rgb(30, 136, 229)\");\n // target.style.backgroundColor = 'rgb(235, 236, 240)';\n }\n };\n\n this.onDragEnd = function (e) {\n var event = _utils.Event.getEvent(e),\n target = _utils.Event.getTarget(event);\n _this8._dragCurrent.setAttribute(\"style\", \"\");\n // this._dragCurrent.style = \"\";\n document.getElementById(_this8._table_none_cont_id).innerHTML = \"\";\n\n var data = _this8.getCurrentEventData(_this8._dragCurrent);\n if (!data) return;\n if (!_this8.currentObj || _this8.currentObj.key == data.key) return;\n if (!_this8.props.onDragEnd) return;\n _this8.props.onDragEnd(event, { dragSource: _this8.currentObj, dragTarg: data });\n };\n\n this.onDragLeave = function (e) {\n var event = _utils.Event.getEvent(e),\n target = _utils.Event.getTarget(event);\n var currentIndex = target.getAttribute(\"data-line-index\");\n if (!currentIndex || parseInt(currentIndex) === _this8.drag.currIndex) return;\n if (target.nodeName.toUpperCase() === \"TH\") {\n target.setAttribute(\"style\", \"\");\n // this._dragCurrent.style = \"\";\n }\n };\n\n this.handlerFilterChange = function (key, value, condition) {\n var onFilterChange = _this8.props.onFilterChange;\n\n if (onFilterChange) {\n onFilterChange(key, value, condition);\n }\n };\n\n this.handlerFilterClear = function (field) {\n var onFilterClear = _this8.props.onFilterClear;\n\n if (onFilterClear) {\n onFilterClear(field);\n }\n };\n\n this.filterRenderType = function (type, dataIndex, index) {\n var _props5 = _this8.props,\n clsPrefix = _props5.clsPrefix,\n rows = _props5.rows,\n filterDelay = _props5.filterDelay,\n locale = _props5.locale;\n\n switch (type) {\n //文本输入\n case \"text\":\n return _react2[\"default\"].createElement(_FilterType2[\"default\"], {\n locale: locale //多语\n , rendertype: type //渲染类型\n , clsPrefix: clsPrefix //css前缀\n , className: clsPrefix + \" filter-text\",\n dataIndex: dataIndex //字段\n , onFilterChange: (0, _throttleDebounce.debounce)(filterDelay || 300, _this8.handlerFilterChange) //输入框回调\n , onFilterClear: _this8.handlerFilterClear //清除回调\n , filterDropdown: rows[1][index][\"filterdropdown\"] //是否显示下拉条件\n , filterDropdownType: rows[1][index][\"filterdropdowntype\"] //下拉的条件类型为string,number\n , filterDropdownIncludeKeys: rows[1][index][\"filterdropdownincludekeys\"] //下拉条件按照指定的keys去显示\n });\n //数值输入\n case \"number\":\n return _react2[\"default\"].createElement(_FilterType2[\"default\"], {\n locale: locale,\n rendertype: type,\n clsPrefix: clsPrefix,\n className: clsPrefix + \" filter-text\",\n dataIndex: dataIndex //字段\n , onFilterChange: (0, _throttleDebounce.debounce)(filterDelay || 300, _this8.handlerFilterChange) //输入框回调并且函数防抖动\n , onFilterClear: _this8.handlerFilterClear //清除回调\n , filterDropdown: rows[1][index][\"filterdropdown\"],\n filterDropdownType: rows[1][index][\"filterdropdowntype\"] //下拉的条件类型为string,number\n , filterDropdownIncludeKeys: rows[1][index][\"filterdropdownincludekeys\"] //下拉条件按照指定的keys去显示\n , filterInputNumberOptions: rows[1][index][\"filterinputnumberoptions\"] //设置数值框内的详细属性\n });\n //下拉框选择\n case \"dropdown\":\n var selectDataSource = [];\n //处理没有输入数据源的时候,系统自动查找自带的数据筛选后注入\n if (rows.length > 0 && (rows[1][index][\"filterdropdownauto\"] || \"auto\") == \"auto\") {\n var hash = {};\n //处理下拉重复对象组装dropdown\n selectDataSource = Array.from(rows[1][0].datasource, function (x) {\n return {\n key: x[dataIndex],\n value: x[dataIndex]\n };\n });\n selectDataSource = selectDataSource.reduceRight(function (item, next) {\n hash[next.key] ? \"\" : hash[next.key] = true && item.push(next);\n return item;\n }, []);\n } else {\n //从外部数据源加载系统数据\n selectDataSource = rows[1][index][\"filterdropdowndata\"];\n }\n return _react2[\"default\"].createElement(_FilterType2[\"default\"], {\n locale: locale,\n rendertype: type,\n className: clsPrefix + \" filter-dropdown\",\n data: selectDataSource,\n notFoundContent: \"Loading\" //没有数据显示的默认字\n , dataIndex: dataIndex //字段\n , onFilterChange: _this8.handlerFilterChange //输入框回调\n , onFilterClear: _this8.handlerFilterClear //清除回调\n , filterDropdown: rows[1][index][\"filterdropdown\"],\n onFocus: rows[1][index][\"filterdropdownfocus\"],\n filterDropdownType: rows[1][index][\"filterdropdowntype\"] //下拉的条件类型为string,number\n , filterDropdownIncludeKeys: rows[1][index][\"filterdropdownincludekeys\"] //下拉条件按照指定的keys去显示\n });\n //日期\n case \"date\":\n return _react2[\"default\"].createElement(_FilterType2[\"default\"], {\n locale: locale,\n rendertype: type,\n className: \"filter-date\",\n onClick: function onClick() {},\n format: rows[1][index][\"format\"] || \"YYYY-MM-DD\",\n dataIndex: dataIndex //字段\n , onFilterChange: _this8.handlerFilterChange //输入框回调\n , onFilterClear: _this8.handlerFilterClear //清除回调\n , filterDropdown: rows[1][index][\"filterdropdown\"],\n filterDropdownType: rows[1][index][\"filterdropdowntype\"] //下拉的条件类型为string,number\n , filterDropdownIncludeKeys: rows[1][index][\"filterdropdownincludekeys\"] //下拉条件按照指定的keys去显示\n });\n //日期 年\n case \"dateyear\":\n return _react2[\"default\"].createElement(_FilterType2[\"default\"], {\n locale: locale,\n rendertype: type,\n className: \"filter-date\",\n onClick: function onClick() {},\n format: rows[1][index][\"format\"] || \"YYYY\",\n dataIndex: dataIndex //字段\n , onFilterChange: _this8.handlerFilterChange //输入框回调\n , onFilterClear: _this8.handlerFilterClear //清除回调\n , filterDropdown: rows[1][index][\"filterdropdown\"],\n filterDropdownType: rows[1][index][\"filterdropdowntype\"] //下拉的条件类型为string,number\n , filterDropdownIncludeKeys: rows[1][index][\"filterdropdownincludekeys\"] //下拉条件按照指定的keys去显示\n });\n //日期 月\n case \"datemonth\":\n return _react2[\"default\"].createElement(_FilterType2[\"default\"], {\n locale: locale,\n rendertype: type,\n className: \"filter-date\",\n onClick: function onClick() {},\n format: rows[1][index][\"format\"] || \"YYYY-MM\",\n dataIndex: dataIndex //字段\n , onFilterChange: _this8.handlerFilterChange //输入框回调\n , onFilterClear: _this8.handlerFilterClear //清除回调\n , filterDropdown: rows[1][index][\"filterdropdown\"],\n filterDropdownType: rows[1][index][\"filterdropdowntype\"] //下拉的条件类型为string,number\n , filterDropdownIncludeKeys: rows[1][index][\"filterdropdownincludekeys\"] //下拉条件按照指定的keys去显示\n });\n //日期 周\n case \"dateweek\":\n return _react2[\"default\"].createElement(_FilterType2[\"default\"], {\n locale: locale,\n rendertype: type,\n className: \"filter-date\",\n onClick: function onClick() {},\n format: rows[1][index][\"format\"] || \"YYYY-Wo\",\n dataIndex: dataIndex //字段\n , onFilterChange: _this8.handlerFilterChange //输入框回调\n , onFilterClear: _this8.handlerFilterClear //清除回调\n , filterDropdown: rows[1][index][\"filterdropdown\"],\n filterDropdownType: rows[1][index][\"filterdropdowntype\"] //下拉的条件类型为string,number\n , filterDropdownIncludeKeys: rows[1][index][\"filterdropdownincludekeys\"] //下拉条件按照指定的keys去显示\n });\n //日期范围\n case \"daterange\":\n return _react2[\"default\"].createElement(_FilterType2[\"default\"], {\n locale: locale,\n rendertype: type,\n className: \"filter-date\",\n onClick: function onClick() {},\n format: rows[1][index][\"format\"] || \"YYYY-MM-DD\",\n dataIndex: dataIndex //字段\n , onFilterChange: _this8.handlerFilterChange //输入框回调\n , onFilterClear: _this8.handlerFilterClear //清除回调\n , filterDropdown: rows[1][index][\"filterdropdown\"],\n filterDropdownType: rows[1][index][\"filterdropdowntype\"] //下拉的条件类型为string,number\n , filterDropdownIncludeKeys: rows[1][index][\"filterdropdownincludekeys\"] //下拉条件按照指定的keys去显示\n });\n default:\n //不匹配类型默认文本输入\n return _react2[\"default\"].createElement(\"div\", null);\n }\n };\n};\n\nTableHeader.propTypes = propTypes;\nexports[\"default\"] = TableHeader;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 1222 */\n/***/ (function(module, exports, __webpack_require__) {\n\n(function (global, factory) {\n\t true ? factory(exports) :\n\ttypeof define === 'function' && define.amd ? define(['exports'], factory) :\n\t(global = global || self, factory(global.throttleDebounce = {}));\n}(this, (function (exports) { 'use strict';\n\n\t/* eslint-disable no-undefined,no-param-reassign,no-shadow */\n\n\t/**\n\t * Throttle execution of a function. Especially useful for rate limiting\n\t * execution of handlers on events like resize and scroll.\n\t *\n\t * @param {number} delay - A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.\n\t * @param {boolean} [noTrailing] - Optional, defaults to false. If noTrailing is true, callback will only execute every `delay` milliseconds while the\n\t * throttled-function is being called. If noTrailing is false or unspecified, callback will be executed one final time\n\t * after the last throttled-function call. (After the throttled-function has not been called for `delay` milliseconds,\n\t * the internal counter is reset).\n\t * @param {Function} callback - A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,\n\t * to `callback` when the throttled-function is executed.\n\t * @param {boolean} [debounceMode] - If `debounceMode` is true (at begin), schedule `clear` to execute after `delay` ms. If `debounceMode` is false (at end),\n\t * schedule `callback` to execute after `delay` ms.\n\t *\n\t * @returns {Function} A new, throttled, function.\n\t */\n\tfunction throttle (delay, noTrailing, callback, debounceMode) {\n\t /*\n\t * After wrapper has stopped being called, this timeout ensures that\n\t * `callback` is executed at the proper times in `throttle` and `end`\n\t * debounce modes.\n\t */\n\t var timeoutID;\n\t var cancelled = false; // Keep track of the last time `callback` was executed.\n\n\t var lastExec = 0; // Function to clear existing timeout\n\n\t function clearExistingTimeout() {\n\t if (timeoutID) {\n\t clearTimeout(timeoutID);\n\t }\n\t } // Function to cancel next exec\n\n\n\t function cancel() {\n\t clearExistingTimeout();\n\t cancelled = true;\n\t } // `noTrailing` defaults to falsy.\n\n\n\t if (typeof noTrailing !== 'boolean') {\n\t debounceMode = callback;\n\t callback = noTrailing;\n\t noTrailing = undefined;\n\t }\n\t /*\n\t * The `wrapper` function encapsulates all of the throttling / debouncing\n\t * functionality and when executed will limit the rate at which `callback`\n\t * is executed.\n\t */\n\n\n\t function wrapper() {\n\t for (var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++) {\n\t arguments_[_key] = arguments[_key];\n\t }\n\n\t var self = this;\n\t var elapsed = Date.now() - lastExec;\n\n\t if (cancelled) {\n\t return;\n\t } // Execute `callback` and update the `lastExec` timestamp.\n\n\n\t function exec() {\n\t lastExec = Date.now();\n\t callback.apply(self, arguments_);\n\t }\n\t /*\n\t * If `debounceMode` is true (at begin) this is used to clear the flag\n\t * to allow future `callback` executions.\n\t */\n\n\n\t function clear() {\n\t timeoutID = undefined;\n\t }\n\n\t if (debounceMode && !timeoutID) {\n\t /*\n\t * Since `wrapper` is being called for the first time and\n\t * `debounceMode` is true (at begin), execute `callback`.\n\t */\n\t exec();\n\t }\n\n\t clearExistingTimeout();\n\n\t if (debounceMode === undefined && elapsed > delay) {\n\t /*\n\t * In throttle mode, if `delay` time has been exceeded, execute\n\t * `callback`.\n\t */\n\t exec();\n\t } else if (noTrailing !== true) {\n\t /*\n\t * In trailing throttle mode, since `delay` time has not been\n\t * exceeded, schedule `callback` to execute `delay` ms after most\n\t * recent execution.\n\t *\n\t * If `debounceMode` is true (at begin), schedule `clear` to execute\n\t * after `delay` ms.\n\t *\n\t * If `debounceMode` is false (at end), schedule `callback` to\n\t * execute after `delay` ms.\n\t */\n\t timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t }\n\t }\n\n\t wrapper.cancel = cancel; // Return the wrapper function.\n\n\t return wrapper;\n\t}\n\n\t/* eslint-disable no-undefined */\n\t/**\n\t * Debounce execution of a function. Debouncing, unlike throttling,\n\t * guarantees that a function is only executed a single time, either at the\n\t * very beginning of a series of calls, or at the very end.\n\t *\n\t * @param {number} delay - A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.\n\t * @param {boolean} [atBegin] - Optional, defaults to false. If atBegin is false or unspecified, callback will only be executed `delay` milliseconds\n\t * after the last debounced-function call. If atBegin is true, callback will be executed only at the first debounced-function call.\n\t * (After the throttled-function has not been called for `delay` milliseconds, the internal counter is reset).\n\t * @param {Function} callback - A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,\n\t * to `callback` when the debounced-function is executed.\n\t *\n\t * @returns {Function} A new, debounced function.\n\t */\n\n\tfunction debounce (delay, atBegin, callback) {\n\t return callback === undefined ? throttle(delay, atBegin, false) : throttle(delay, callback, atBegin !== false);\n\t}\n\n\texports.debounce = debounce;\n\texports.throttle = throttle;\n\n\tObject.defineProperty(exports, '__esModule', { value: true });\n\n})));\n//# sourceMappingURL=index.umd.js.map\n\n\n/***/ }),\n/* 1223 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _beeDatepicker = __webpack_require__(1224);\n\nvar _beeDatepicker2 = _interopRequireDefault(_beeDatepicker);\n\nvar _zh_CN = __webpack_require__(62);\n\nvar _zh_CN2 = _interopRequireDefault(_zh_CN);\n\nvar _beeFormControl = __webpack_require__(1250);\n\nvar _beeFormControl2 = _interopRequireDefault(_beeFormControl);\n\nvar _beeSelect = __webpack_require__(136);\n\nvar _beeSelect2 = _interopRequireDefault(_beeSelect);\n\nvar _beeInputNumber = __webpack_require__(234);\n\nvar _beeInputNumber2 = _interopRequireDefault(_beeInputNumber);\n\nvar _FilterDropDown = __webpack_require__(1253);\n\nvar _FilterDropDown2 = _interopRequireDefault(_FilterDropDown);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar RangePicker = _beeDatepicker2[\"default\"].RangePicker,\n YearPicker = _beeDatepicker2[\"default\"].YearPicker,\n MonthPicker = _beeDatepicker2[\"default\"].MonthPicker,\n WeekPicker = _beeDatepicker2[\"default\"].WeekPicker;\n\n\nvar propTypes = {\n filterDropdown: _propTypes2[\"default\"].string\n};\n\nvar FilterType = function (_Component) {\n _inherits(FilterType, _Component);\n\n function FilterType(props) {\n _classCallCheck(this, FilterType);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props));\n\n _this.clearFilter = function () {\n var _this$props = _this.props,\n onFilterClear = _this$props.onFilterClear,\n dataIndex = _this$props.dataIndex;\n\n if (_this.state.value !== \"\") {\n _this.setState({\n value: \"\", //清空值\n condition: _this.props.filterDropdownType == 'string' ? 'LIKE' : 'EQ' //切回默认查询条件\n }, function () {\n //调用清除方法参数为当前字段的field\n onFilterClear && onFilterClear(dataIndex);\n });\n }\n };\n\n _this.changeText = function (val) {\n var _this$props2 = _this.props,\n onFilterChange = _this$props2.onFilterChange,\n dataIndex = _this$props2.dataIndex;\n\n _this.setState({\n value: val\n }, function () {\n onFilterChange(dataIndex, val, _this.state.condition);\n });\n };\n\n _this.changeTextCall = function (e) {\n var _this$props3 = _this.props,\n onFilterChange = _this$props3.onFilterChange,\n dataIndex = _this$props3.dataIndex;\n\n if (e.keyCode == 13) {\n e.target.value !== \"\" && onFilterChange(dataIndex, e.target.value, _this.state.condition);\n }\n };\n\n _this.changeValue = function () {\n _this.setState({\n value: \"\"\n });\n };\n\n _this.onSelectDropdown = function (item) {\n var _this$props4 = _this.props,\n onFilterChange = _this$props4.onFilterChange,\n dataIndex = _this$props4.dataIndex;\n\n _this.setState({\n condition: item.key\n }, function () {\n _this.state.value !== \"\" && onFilterChange && onFilterChange(dataIndex, _this.state.value, _this.state.condition);\n });\n };\n\n _this.changeNumber = function (value) {\n var _this$props5 = _this.props,\n onFilterChange = _this$props5.onFilterChange,\n dataIndex = _this$props5.dataIndex;\n\n _this.setState({\n value: value\n }, function () {\n onFilterChange(dataIndex, value, _this.state.condition);\n });\n };\n\n _this.clearNumber = function () {\n var onChange = _this.props.onChange;\n\n onChange && onChange(\"\");\n _this.setState({\n value: \"\"\n });\n };\n\n _this.changeTextCallBlur = function (val) {\n var onChange = _this.props.onChange;\n\n onChange && onChange(val);\n };\n\n _this.changeSelect = function (value) {\n var _this$props6 = _this.props,\n onFilterChange = _this$props6.onFilterChange,\n dataIndex = _this$props6.dataIndex;\n\n if (onFilterChange) {\n onFilterChange(dataIndex, value, _this.state.condition);\n _this.setState({\n value: value\n });\n }\n };\n\n _this.clearSelectValue = function () {\n _this.setState({\n selectValue: \"\"\n }, function () {\n _this.changeSelect(\"\");\n });\n };\n\n _this.clearDateValue = function () {\n _this.setState({\n dateValue: \"\"\n }, function () {\n _this.changeDate(\"\");\n });\n };\n\n _this.changeDate = function (value) {\n var _this$props7 = _this.props,\n onFilterChange = _this$props7.onFilterChange,\n dataIndex = _this$props7.dataIndex;\n\n if (onFilterChange) {\n onFilterChange(dataIndex, value, _this.state.condition);\n _this.setState({\n value: value,\n open: false\n });\n }\n };\n\n _this.renderControl = function (rendertype) {\n var _this$props8 = _this.props,\n filterInputNumberOptions = _this$props8.filterInputNumberOptions,\n filterDropdownIncludeKeys = _this$props8.filterDropdownIncludeKeys,\n dataIndex = _this$props8.dataIndex,\n filterDropdown = _this$props8.filterDropdown,\n filterDropdownType = _this$props8.filterDropdownType,\n format = _this$props8.format,\n className = _this$props8.className,\n onChange = _this$props8.onChange,\n onSelectDropdown = _this$props8.onSelectDropdown,\n clsPrefix = _this$props8.clsPrefix,\n locale = _this$props8.locale;\n\n switch (rendertype) {\n case 'text':\n return _react2[\"default\"].createElement(\n 'div',\n { className: clsPrefix + ' filter-wrap' },\n _react2[\"default\"].createElement(_beeFormControl2[\"default\"], {\n value: _this.state.value,\n className: className,\n onChange: _this.changeText,\n onKeyDown: _this.changeTextCall\n //onBlur={this.changeTextCallBlur}\n }),\n _react2[\"default\"].createElement(_FilterDropDown2[\"default\"], {\n locale: locale,\n dataIndex: dataIndex,\n dataText: _this.state.value,\n onSelectDropdown: _this.onSelectDropdown,\n onClickClear: _this.clearFilter,\n isShowClear: _this.state.value,\n isShowCondition: filterDropdown,\n filterDropdownType: filterDropdownType,\n filterDropdownIncludeKeys: filterDropdownIncludeKeys\n })\n );\n case 'number':\n return _react2[\"default\"].createElement(\n 'div',\n { className: clsPrefix + ' filter-wrap' },\n _react2[\"default\"].createElement(_beeInputNumber2[\"default\"], _extends({}, filterInputNumberOptions, {\n className: className,\n value: _this.state.value,\n onChange: _this.changeNumber,\n iconStyle: 'one'\n })),\n _react2[\"default\"].createElement(_FilterDropDown2[\"default\"], {\n locale: locale,\n dataIndex: dataIndex,\n dataText: _this.state.value,\n onSelectDropdown: _this.onSelectDropdown,\n onClickClear: _this.clearFilter,\n isShowClear: _this.state.value != 0,\n isShowCondition: filterDropdown,\n filterDropdownType: filterDropdownType,\n filterDropdownIncludeKeys: filterDropdownIncludeKeys\n })\n );\n case 'dropdown':\n return _react2[\"default\"].createElement(\n 'div',\n { className: clsPrefix + ' filter-wrap' },\n _react2[\"default\"].createElement(_beeSelect2[\"default\"], _extends({}, _this.props, {\n size: 'sm',\n value: _this.state.value,\n onChange: _this.changeSelect\n })),\n _react2[\"default\"].createElement(_FilterDropDown2[\"default\"], {\n locale: locale,\n dataIndex: dataIndex,\n dataText: _this.state.value,\n onSelectDropdown: _this.onSelectDropdown,\n onClickClear: _this.clearFilter,\n isShowCondition: filterDropdown,\n isShowClear: _this.state.value,\n filterDropdownType: filterDropdownType,\n filterDropdownIncludeKeys: filterDropdownIncludeKeys\n })\n );\n case 'date':\n return _react2[\"default\"].createElement(\n 'div',\n { className: clsPrefix + ' filter-wrap' },\n _react2[\"default\"].createElement(_beeDatepicker2[\"default\"], _extends({}, _this.props, {\n value: _this.state.value,\n onChange: _this.changeDate,\n open: _this.state.open,\n format: format,\n locale: _zh_CN2[\"default\"]\n })),\n _react2[\"default\"].createElement(_FilterDropDown2[\"default\"], {\n locale: locale,\n dataIndex: dataIndex,\n dataText: _this.state.value,\n onSelectDropdown: _this.onSelectDropdown,\n onClickClear: _this.clearFilter,\n isShowCondition: filterDropdown,\n isShowClear: _this.state.value,\n filterDropdownType: filterDropdownType,\n filterDropdownIncludeKeys: filterDropdownIncludeKeys\n })\n );\n case 'dateyear':\n return _react2[\"default\"].createElement(\n 'div',\n { className: clsPrefix + ' filter-wrap' },\n _react2[\"default\"].createElement(YearPicker, _extends({}, _this.props, {\n value: _this.state.value,\n onChange: _this.changeDate,\n open: _this.state.open,\n format: format,\n locale: _zh_CN2[\"default\"]\n })),\n _react2[\"default\"].createElement(_FilterDropDown2[\"default\"], {\n locale: locale,\n dataIndex: dataIndex,\n dataText: _this.state.value,\n onSelectDropdown: _this.onSelectDropdown,\n onClickClear: _this.clearFilter,\n isShowCondition: filterDropdown,\n isShowClear: _this.state.value,\n filterDropdownType: filterDropdownType,\n filterDropdownIncludeKeys: filterDropdownIncludeKeys\n })\n );\n case 'datemonth':\n return _react2[\"default\"].createElement(\n 'div',\n { className: clsPrefix + ' filter-wrap' },\n _react2[\"default\"].createElement(MonthPicker, _extends({}, _this.props, {\n value: _this.state.value,\n onChange: _this.changeDate,\n open: _this.state.open,\n format: format,\n locale: _zh_CN2[\"default\"]\n })),\n _react2[\"default\"].createElement(_FilterDropDown2[\"default\"], {\n locale: locale,\n dataIndex: dataIndex,\n dataText: _this.state.value,\n onSelectDropdown: _this.onSelectDropdown,\n onClickClear: _this.clearFilter,\n isShowCondition: filterDropdown,\n isShowClear: _this.state.value,\n filterDropdownType: filterDropdownType,\n filterDropdownIncludeKeys: filterDropdownIncludeKeys\n })\n );\n case 'dateweek':\n return _react2[\"default\"].createElement(\n 'div',\n { className: clsPrefix + ' filter-wrap' },\n _react2[\"default\"].createElement(WeekPicker, _extends({}, _this.props, {\n value: _this.state.value,\n onChange: _this.changeDate,\n open: _this.state.open,\n format: format,\n locale: _zh_CN2[\"default\"]\n })),\n _react2[\"default\"].createElement(_FilterDropDown2[\"default\"], {\n locale: locale,\n dataIndex: dataIndex,\n dataText: _this.state.value,\n onSelectDropdown: _this.onSelectDropdown,\n onClickClear: _this.clearFilter,\n isShowCondition: filterDropdown,\n isShowClear: _this.state.value,\n filterDropdownType: filterDropdownType,\n filterDropdownIncludeKeys: filterDropdownIncludeKeys\n })\n );\n case 'daterange':\n return _react2[\"default\"].createElement(\n 'div',\n { className: clsPrefix + ' filter-wrap' },\n _react2[\"default\"].createElement(RangePicker, _extends({}, _this.props, {\n value: _this.state.value,\n onChange: _this.changeDate,\n open: _this.state.open,\n format: format,\n showTime: true,\n locale: _zh_CN2[\"default\"],\n placeholder: '开始 ~ 结束',\n dateInputPlaceholder: ['开始', '结束'],\n showClear: true\n })),\n _react2[\"default\"].createElement(_FilterDropDown2[\"default\"], {\n locale: locale,\n dataIndex: dataIndex,\n dataText: _this.state.value,\n onSelectDropdown: _this.onSelectDropdown,\n onClickClear: _this.clearFilter,\n isShowCondition: filterDropdown,\n isShowClear: _this.state.value,\n filterDropdownIncludeKeys: filterDropdownIncludeKeys\n })\n );\n case 'bool':\n return _react2[\"default\"].createElement(\n 'div',\n { className: clsPrefix + ' filter-wrap' },\n _react2[\"default\"].createElement(Switch, {\n className: className,\n onChange: onChange\n }),\n _react2[\"default\"].createElement(_FilterDropDown2[\"default\"], { locale: locale,\n onSelectDropdown: onSelectDropdown,\n filterDropdownIncludeKeys: filterDropdownIncludeKeys\n })\n );\n default:\n return _react2[\"default\"].createElement('div', null);\n }\n };\n\n _this.state = {\n value: \"\",\n text: \"\",\n selectValue: \"\",\n dateValue: \"\",\n open: false,\n condition: props.filterDropdownType == 'string' ? 'LIKE' : 'EQ',\n number: 0\n };\n return _this;\n }\n\n /**\n * 清除过滤条件\n *\n */\n\n\n /**\n * 设置输入文本的值\n *\n */\n\n\n /**\n * 输入框回车执行回调\n *\n */\n\n /**\n * 更改修改值\n *\n */\n\n /**\n * 下拉条件的回调\n *\n * @param {*} key 字段\n * @param {*} value 值1,2,3...6\n */\n\n\n /**\n * 修改数值型的值\n *\n */\n\n //清除数值\n\n\n //失去焦点后执行函数\n\n //设置下拉值\n\n //清除下拉值\n\n //清除日期值\n\n //设置日期值\n\n //组件渲染\n /**\n * 根据不同的类型生成对应的组件类型包含一些参数的适应\n *\n * @param {*} rendertype 参数类型,包括['text','dropdown','date','dateyear','datemonth','dateweek',daterange','number']\n * @returns\n */\n\n\n FilterType.prototype.render = function render() {\n var rendertype = this.props.rendertype;\n\n return _react2[\"default\"].createElement(\n 'div',\n { 'data-filter-type': 'filterContext' },\n this.renderControl(rendertype)\n );\n };\n\n return FilterType;\n}(_react.Component);\n\nFilterType.propTypes = propTypes;\nFilterType.defaultProps = {\n filterDropdown: 'show'\n};\nexports[\"default\"] = FilterType;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1224 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _DatePicker = __webpack_require__(1225);\n\nvar _DatePicker2 = _interopRequireDefault(_DatePicker);\n\nvar _MonthPicker = __webpack_require__(1243);\n\nvar _MonthPicker2 = _interopRequireDefault(_MonthPicker);\n\nvar _RangePicker = __webpack_require__(1245);\n\nvar _RangePicker2 = _interopRequireDefault(_RangePicker);\n\nvar _WeekPicker = __webpack_require__(1248);\n\nvar _WeekPicker2 = _interopRequireDefault(_WeekPicker);\n\nvar _YearPicker = __webpack_require__(1249);\n\nvar _YearPicker2 = _interopRequireDefault(_YearPicker);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\n_DatePicker2[\"default\"].MonthPicker = _MonthPicker2[\"default\"];\n_DatePicker2[\"default\"].RangePicker = _RangePicker2[\"default\"];\n_DatePicker2[\"default\"].WeekPicker = _WeekPicker2[\"default\"];\n_DatePicker2[\"default\"].YearPicker = _YearPicker2[\"default\"];\n\nexports[\"default\"] = _DatePicker2[\"default\"];\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1225 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _rcCalendar = __webpack_require__(320);\n\nvar _rcCalendar2 = _interopRequireDefault(_rcCalendar);\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _tinperBeeCore = __webpack_require__(6);\n\nvar _Picker = __webpack_require__(80);\n\nvar _Picker2 = _interopRequireDefault(_Picker);\n\nvar _beeFormControl = __webpack_require__(81);\n\nvar _beeFormControl2 = _interopRequireDefault(_beeFormControl);\n\nvar _Panel = __webpack_require__(463);\n\nvar _Panel2 = _interopRequireDefault(_Panel);\n\nvar _moment = __webpack_require__(4);\n\nvar _moment2 = _interopRequireDefault(_moment);\n\nvar _beeIcon = __webpack_require__(13);\n\nvar _beeIcon2 = _interopRequireDefault(_beeIcon);\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _beeInputGroup = __webpack_require__(82);\n\nvar _beeInputGroup2 = _interopRequireDefault(_beeInputGroup);\n\nvar _zh_CN = __webpack_require__(62);\n\nvar _zh_CN2 = _interopRequireDefault(_zh_CN);\n\nvar _omit = __webpack_require__(31);\n\nvar _omit2 = _interopRequireDefault(_omit);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**\n * Created by chief on 17/4/6.\n */\n\nfunction noop() {}\nvar timerDatePicker = true;\n\nvar DatePicker = function (_Component) {\n _inherits(DatePicker, _Component);\n\n function DatePicker(props, context) {\n _classCallCheck(this, DatePicker);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));\n\n _initialiseProps.call(_this);\n\n _this.state = {\n type: \"month\",\n value: _this.initValue(props),\n open: props.open || false,\n inputValue: _this.initValue(props),\n showClose: false\n };\n _this.fileChange = true;\n\n return _this;\n }\n\n DatePicker.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n if (\"value\" in nextProps) {\n this.setState({\n value: this.initValue(nextProps),\n inputValue: nextProps.value && this.getValue(nextProps.value) || ''\n });\n }\n if (\"open\" in nextProps) {\n this.setState({\n open: nextProps.open\n });\n }\n if (\"renderIcon\" in nextProps) {\n this.setState({\n renderIcon: nextProps.renderIcon\n });\n }\n };\n //日期面板中输入框的失焦事件\n\n //fix:更改系统时区后,日期框需要触发 onChange 事件\n\n\n DatePicker.prototype.render = function render() {\n var _this2 = this;\n\n var state = this.state;\n var props = this.props;\n\n var showClose = props.showClose,\n defaultPanelShown = props.defaultPanelShown,\n onBlur = props.onBlur,\n showHour = props.showHour,\n showMinute = props.showMinute,\n showSecond = props.showSecond,\n autoTriggerChange = props.autoTriggerChange,\n others = _objectWithoutProperties(props, [\"showClose\", \"defaultPanelShown\", \"onBlur\", \"showHour\", \"showMinute\", \"showSecond\", \"autoTriggerChange\"]);\n\n var value = state.value;\n var pickerChangeHandler = {};\n var calendarHandler = {};\n var autofocus = this.props.autofocus ? { autofocus: 'autofocus' } : null;\n\n if (props.showTime) {\n calendarHandler = {\n // fix https://github.com/ant-design/ant-design/issues/1902\n onSelect: this.handleChange\n };\n } else {\n pickerChangeHandler = {\n onChange: this.handleChange\n };\n }\n\n var splitNumber = '3';\n if (!showHour) splitNumber -= 1;\n if (!showMinute) splitNumber -= 1;\n if (!showSecond) splitNumber -= 1;\n\n var calendarProps = {};\n if (autoTriggerChange) {\n calendarProps.value = value;\n calendarProps.onChange = this.handleCalendarChange;\n } else {\n calendarProps.onChange = noop;\n }\n\n var calendar = _react2[\"default\"].createElement(_rcCalendar2[\"default\"], _extends({\n timePicker: props.showTime ? _react2[\"default\"].createElement(_Panel2[\"default\"], {\n className: 'time-split-' + splitNumber,\n showHour: showHour, showMinute: showMinute, showSecond: showSecond,\n defaultValue: (0, _moment2[\"default\"])((0, _moment2[\"default\"])().format(\"HH:mm:ss\"), \"HH:mm:ss\") }) : null\n }, props, calendarProps, {\n onSelect: this.handleSelect,\n onInputBlur: this.onDateInputBlur\n }));\n\n var keyboardInputProps = {};\n if (props.keyboardInput) {\n keyboardInputProps.readOnly = false;\n keyboardInputProps.onChange = this.inputChange;\n keyboardInputProps.value = state.inputValue && state.inputValue.format && state.inputValue.isValid() && this.props.validatorFunc(state.inputValue) ? state.inputValue.format(props.format) : state.inputValue;\n } else {\n keyboardInputProps.readOnly = true;\n keyboardInputProps.value = value && this.getValue(value) || \"\";\n }\n var classes = (0, _classnames2[\"default\"])(props.className, \"datepicker-container\");\n return _react2[\"default\"].createElement(\n \"div\",\n _extends({ className: classes, onMouseEnter: this.onDateHover\n }, (0, _omit2[\"default\"])(others, ['onDateInputBlur', 'getCalendarContainer', 'showToday', 'renderFooter', 'keyboardInput', 'showDateInput', 'showTime', 'closeIcon', 'renderIcon', 'focusOnOpen', 'defultSelect', 'onOpenChange', 'locale', 'showMonthInput', 'onKeyDown', 'renderError', 'format', 'placeholder', 'disabledTime', 'onChange', 'disabledDate', 'iconClick', 'outInputKeydown'])),\n _react2[\"default\"].createElement(\n _Picker2[\"default\"],\n _extends({\n animation: \"slide-up\"\n }, props, pickerChangeHandler, {\n onOpenChange: this.onOpenChange,\n calendar: calendar,\n mode: 'year',\n open: 'defaultPanelShown' in props ? defaultPanelShown : this.state.open,\n value: state.value\n }),\n function () {\n return _react2[\"default\"].createElement(\n _beeInputGroup2[\"default\"],\n { simple: true, className: \"datepicker-input-group\",\n onMouseEnter: _this2.onMouseEnter,\n onMouseLeave: _this2.onMouseLeave\n },\n _react2[\"default\"].createElement(_beeFormControl2[\"default\"], _extends({\n ref: function ref(_ref) {\n return _this2.outInput = _ref;\n },\n disabled: props.disabled,\n placeholder: _this2.props.placeholder,\n onClick: function onClick(event) {\n _this2.onClick(event);\n },\n focusSelect: props.defaultSelected,\n onFocus: function onFocus(v, e) {\n _this2.outInputFocus(e);\n },\n onKeyDown: _this2.outInputKeydown\n // value={(value && value.format(props.format)) || \"\"}\n }, keyboardInputProps, autofocus)),\n showClose && _this2.state.value && _this2.state.showClose && !props.disabled ? _react2[\"default\"].createElement(\n _beeInputGroup2[\"default\"].Button,\n { shape: \"border\",\n onClick: _this2.clear },\n props.closeIcon()\n ) : _react2[\"default\"].createElement(\n _beeInputGroup2[\"default\"].Button,\n { shape: \"border\",\n onClick: function onClick(e) {\n props.keyboardInput ? _this2.iconClick(e) : '';\n } },\n props.renderIcon()\n )\n );\n }\n )\n );\n };\n\n return DatePicker;\n}(_react.Component);\n\nvar _initialiseProps = function _initialiseProps() {\n var _this3 = this;\n\n this.initValue = function (props) {\n var value = props.value || props.defaultValue;\n if (value) {\n if (typeof value == 'string') {\n if ((0, _moment2[\"default\"])(value).isValid()) {\n value = (0, _moment2[\"default\"])(value);\n } else {\n console.error('value is not in the correct format');\n value = '';\n }\n } else if (value.format && value.isValid()) {\n value = value;\n } else {\n console.error('value is not in the correct format');\n value = '';\n }\n }\n return value;\n };\n\n this.getValue = function (value) {\n var format = _this3.props.format;\n\n if (typeof format == 'string') {\n return value.format(format);\n } else {\n return value.format(format[0]);\n }\n };\n\n this.onChange = function (value) {\n _this3.setState({ value: value });\n };\n\n this.inputFocus = function () {\n var _props = _this3.props,\n format = _props.format,\n validatorFunc = _props.validatorFunc,\n disabledDate = _props.disabledDate;\n\n var input = document.querySelector('.rc-calendar-input');\n if (input) {\n if (input.value) {\n input.select();\n } else {\n input.focus();\n }\n input.onkeydown = function (e) {\n if (e.keyCode == _tinperBeeCore.KeyCode.DELETE) {\n input.value = '';\n _this3.fireChange('', '');\n } else if (e.keyCode == _tinperBeeCore.KeyCode.ESC) {\n _this3.setState({\n open: false\n });\n var v = _this3.state.value;\n _this3.props.onOpenChange(false, v, v && _this3.getValue(v) || '');\n _reactDom2[\"default\"].findDOMNode(_this3.outInput).focus(); // 按esc时候焦点回到input输入框\n } else if (e.keyCode == _tinperBeeCore.KeyCode.ENTER) {\n var parsed = (0, _moment2[\"default\"])(input.value, format, true);\n var isDisabled = disabledDate && disabledDate(parsed);\n if (parsed.isValid() && validatorFunc(input.value) && !isDisabled) {\n _this3.setState({\n open: false\n });\n var _v = _this3.state.value;\n _this3.props.onOpenChange(false, _v, _v && _this3.getValue(_v) || '');\n _reactDom2[\"default\"].findDOMNode(_this3.outInput).focus();\n }\n if (!input.value) {\n _this3.setState({\n open: false\n });\n }\n }\n _this3.props.onKeyDown && _this3.props.onKeyDown(e);\n };\n }\n };\n\n this.onOpenChange = function (open) {\n var props = _this3.props;\n var self = _this3;\n _this3.setState({\n open: open\n }, function () {\n if (open) {\n setTimeout(function () {\n self.inputFocus();\n }, 0);\n }\n });\n var value = self.state.value;\n props.onOpenChange(open, value, value && _this3.getValue(value) || '');\n if (open) {\n setTimeout(function () {\n self.inputFocus();\n }, 200);\n }\n };\n\n this.handleCalendarChange = function (value) {\n var props = _this3.props;\n _this3.setState({ value: value, inputValue: value && _this3.getValue(value) || '' });\n _this3.fireChange(value, value && _this3.getValue(value) || '');\n };\n\n this.handleChange = function (value) {\n var props = _this3.props;\n _this3.setState({\n value: value && _extends(value, { _type: 'date' }) || value,\n inputValue: value && _this3.getValue(value) || ''\n });\n if (timerDatePicker) {\n clearTimeout(_this3.timerout);\n _this3.fireChange(value, value && _this3.getValue(value) || '');\n timerDatePicker = false;\n _this3.timerout = window.setTimeout(function () {\n timerDatePicker = true;\n }, 300);\n }\n };\n\n this.onClick = function (e) {\n var props = _this3.props;\n if (props.keyboardInput) e.stopPropagation();\n var value = _this3.state.value;\n if (props.keyboardInput) {\n props.onClick && props.onClick(e.nativeEvent, value || null, _this3.state.inputValue);\n } else {\n props.onClick && props.onClick(e.nativeEvent, value || null, value && _this3.getValue(value) || '');\n }\n };\n\n this.inputChange = function (value, e) {\n if (_this3.props.keyboardInput) e.stopPropagation();\n _this3.setState({\n inputValue: value\n });\n if ((0, _moment2[\"default\"])(value, _this3.props.format).isValid() && _this3.props.validatorFunc(value)) {\n _this3.setState({\n value: (0, _moment2[\"default\"])(value, _this3.props.format)\n });\n value = (0, _moment2[\"default\"])(value, _this3.props.format);\n _this3.fireChange(value, value && _this3.getValue(value) || '');\n } else {\n _this3.fireChange(null, value);\n }\n };\n\n this.outInputFocus = function (e) {\n if (_this3.props.hasOwnProperty('open')) e.stopPropagation();\n _this3.props.outInputFocus && _this3.props.outInputFocus(e);\n };\n\n this.iconClick = function (e) {\n _this3.props.iconClick && _this3.props.iconClick(e);\n };\n\n this.outInputKeydown = function (e) {\n if (e.keyCode == _tinperBeeCore.KeyCode.DELETE) {\n _this3.setState({\n inputValue: ''\n });\n _this3.fireChange('', '');\n } else if (e.keyCode == _tinperBeeCore.KeyCode.ESC) {\n _this3.setState({\n open: false\n });\n var value = _this3.state.inputValue;\n if ((0, _moment2[\"default\"])(value, _this3.props.format).isValid() && _this3.props.validatorFunc(value)) {\n _this3.setState({\n value: (0, _moment2[\"default\"])(value, _this3.props.format)\n });\n value = (0, _moment2[\"default\"])(value, _this3.props.format);\n _this3.fireChange(value, value && _this3.getValue(value) || '');\n } else {\n _this3.fireChange(null, value);\n }\n }\n _this3.props.outInputKeydown && _this3.props.outInputKeydown(e);\n };\n\n this.onMouseLeave = function (e) {\n _this3.setState({\n showClose: false\n });\n };\n\n this.onMouseEnter = function (e) {\n _this3.setState({\n showClose: true\n });\n };\n\n this.clear = function (e) {\n e.stopPropagation();\n _this3.setState({\n inputValue: '',\n value: ''\n });\n _this3.fireChange('', '');\n };\n\n this.handleSelect = function (value) {\n _this3.setState({\n value: value\n });\n _this3.props.onSelect && _this3.props.onSelect(value, value && _this3.getValue(value) || '');\n // ReactDOM.findDOMNode(this.outInput).focus()\n };\n\n this.onDateInputBlur = function (e) {\n var input = document.querySelector('.rc-calendar-input');\n var value = void 0;\n if (input) {\n value = input.value ? input.value : '';\n }\n _this3.props.onDateInputBlur && _this3.props.onDateInputBlur(e, value);\n };\n\n this.onDateHover = function () {\n var format = _this3.props.format;\n var value = _this3.state.value,\n newValue = value && _this3.getValue(value);\n\n\n var inputValue = _this3.outInput.state.value;\n inputValue = format ? inputValue : inputValue && _this3.getValue((0, _moment2[\"default\"])(inputValue));\n\n if (newValue && inputValue !== newValue) {\n _this3.fireChange(value, newValue || '');\n }\n };\n\n this.fireChange = function (value, stringValue) {\n _this3.fileChange && _this3.props.onChange(value, stringValue);\n _this3.fileChange = false;\n _this3.fileChangeTimer = window.setTimeout(function () {\n _this3.fileChange = true;\n }, 10);\n };\n};\n\nDatePicker.defaultProps = {\n closeIcon: function closeIcon() {\n return _react2[\"default\"].createElement(_beeIcon2[\"default\"], { type: \"uf-close-c\" });\n },\n renderIcon: function renderIcon() {\n return _react2[\"default\"].createElement(_beeIcon2[\"default\"], { type: \"uf-calendar\" });\n },\n focusOnOpen: true,\n defultSelect: false,\n onOpenChange: function onOpenChange() {},\n onChange: function onChange() {},\n locale: _zh_CN2[\"default\"],\n showMonthInput: false,\n onKeyDown: function onKeyDown() {},\n renderError: function renderError() {},\n showClose: true,\n format: \"YYYY-MM-DD\",\n showSecond: true,\n showHour: true,\n showMinute: true,\n autoTriggerChange: true,\n validatorFunc: function validatorFunc() {\n return true;\n }\n};\n\nexports[\"default\"] = DatePicker;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 1226 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _KeyCode = __webpack_require__(59);\n\nvar _KeyCode2 = _interopRequireDefault(_KeyCode);\n\nvar _reactLifecyclesCompat = __webpack_require__(12);\n\nvar _DateTable = __webpack_require__(321);\n\nvar _DateTable2 = _interopRequireDefault(_DateTable);\n\nvar _CalendarHeader = __webpack_require__(180);\n\nvar _CalendarHeader2 = _interopRequireDefault(_CalendarHeader);\n\nvar _CalendarFooter = __webpack_require__(456);\n\nvar _CalendarFooter2 = _interopRequireDefault(_CalendarFooter);\n\nvar _CalendarMixin = __webpack_require__(460);\n\nvar _CommonMixin = __webpack_require__(181);\n\nvar _DateInput = __webpack_require__(79);\n\nvar _DateInput2 = _interopRequireDefault(_DateInput);\n\nvar _util = __webpack_require__(33);\n\nvar _toTime = __webpack_require__(462);\n\nvar _moment = __webpack_require__(4);\n\nvar _moment2 = _interopRequireDefault(_moment);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nfunction noop() {}\n\nvar Calendar = function (_React$Component) {\n _inherits(Calendar, _React$Component);\n\n function Calendar(props) {\n _classCallCheck(this, Calendar);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));\n\n _initialiseProps.call(_this);\n\n _this.state = {\n mode: _this.props.mode || 'date',\n value: props.value || props.defaultValue || (0, _moment2[\"default\"])(),\n selectedValue: props.selectedValue || props.defaultSelectedValue\n };\n return _this;\n }\n\n Calendar.prototype.componentDidMount = function componentDidMount() {\n if (this.props.showDateInput) {\n this.saveFocusElement(_DateInput2[\"default\"].getInstance());\n }\n };\n\n Calendar.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, state) {\n var value = nextProps.value,\n selectedValue = nextProps.selectedValue;\n\n var newState = {};\n\n if ('mode' in nextProps && state.mode !== nextProps.mode) {\n newState = { mode: nextProps.mode };\n }\n if ('value' in nextProps) {\n newState.value = value || nextProps.defaultValue || (0, _CalendarMixin.getNowByCurrentStateValue)(state.value);\n }\n if ('selectedValue' in nextProps) {\n newState.selectedValue = selectedValue;\n }\n\n return newState;\n };\n\n Calendar.prototype.render = function render() {\n var _this2 = this;\n\n var props = this.props,\n state = this.state;\n var locale = props.locale,\n prefixCls = props.prefixCls,\n disabledDate = props.disabledDate,\n validatorFunc = props.validatorFunc,\n format = props.format,\n dateInputPlaceholder = props.dateInputPlaceholder,\n timePicker = props.timePicker,\n disabledTime = props.disabledTime,\n clearIcon = props.clearIcon,\n renderFooter = props.renderFooter,\n showMonthInput = props.showMonthInput,\n renderError = props.renderError,\n onInputBlur = props.onInputBlur;\n var value = state.value,\n selectedValue = state.selectedValue,\n mode = state.mode;\n\n var showTimePicker = mode === 'time';\n var disabledTimeConfig = showTimePicker && disabledTime && timePicker ? (0, _util.getTimeConfig)(selectedValue, disabledTime) : null;\n\n var timePickerEle = null;\n\n if (timePicker && showTimePicker) {\n var timePickerProps = _extends({\n showHour: true,\n showSecond: true,\n showMinute: true\n }, timePicker.props, disabledTimeConfig, {\n onChange: this.onDateInputChange,\n value: selectedValue,\n disabledTime: disabledTime\n });\n\n if (timePicker.props.defaultValue !== undefined) {\n timePickerProps.defaultOpenValue = timePicker.props.defaultValue;\n }\n\n timePickerEle = _react2[\"default\"].cloneElement(timePicker, timePickerProps);\n }\n var dateInputElement = props.showDateInput ? _react2[\"default\"].createElement(_DateInput2[\"default\"], {\n format: this.getFormat(),\n key: 'date-input',\n value: value,\n locale: locale,\n placeholder: dateInputPlaceholder,\n showClear: true,\n disabledTime: disabledTime,\n disabledDate: disabledDate,\n onClear: this.onClear,\n prefixCls: prefixCls,\n selectedValue: selectedValue,\n onChange: this.onDateInputChange,\n onSelect: function onSelect(value) {\n if ((0, _moment2[\"default\"])(value, format, true) && validatorFunc(value)) {\n _this2.onDateInputSelect(value);\n }\n },\n clearIcon: clearIcon,\n renderError: renderError,\n onBlur: onInputBlur,\n validatorFunc: validatorFunc\n }) : null;\n\n var children = [];\n if (props.renderSidebar) {\n children.push(props.renderSidebar());\n }\n children.push(_react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-panel', key: 'panel' },\n dateInputElement,\n _react2[\"default\"].createElement(\n 'div',\n {\n tabIndex: this.props.focusablePanel ? 0 : undefined,\n className: prefixCls + '-date-panel',\n onMouseOver: this.onMouseOver\n },\n _react2[\"default\"].createElement(_CalendarHeader2[\"default\"], {\n locale: locale,\n mode: mode,\n value: value,\n onValueChange: this.setValue,\n onPanelChange: this.onPanelChange,\n renderFooter: renderFooter,\n showTimePicker: showTimePicker,\n prefixCls: prefixCls,\n showMonthInput: showMonthInput\n }),\n timePicker && showTimePicker ? _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-time-picker' },\n _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-time-picker-panel' },\n timePickerEle\n )\n ) : null,\n _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-body' },\n _react2[\"default\"].createElement(_DateTable2[\"default\"], {\n locale: locale,\n value: value,\n selectedValue: selectedValue,\n prefixCls: prefixCls,\n dateRender: props.dateRender,\n onSelect: this.onDateTableSelect,\n disabledDate: disabledDate,\n showWeekNumber: props.showWeekNumber\n })\n ),\n _react2[\"default\"].createElement(_CalendarFooter2[\"default\"], {\n showOk: props.showOk,\n mode: mode,\n renderFooter: props.renderFooter,\n locale: locale,\n prefixCls: prefixCls,\n showToday: props.showToday,\n disabledTime: disabledTime,\n showTimePicker: showTimePicker,\n showDateInput: props.showDateInput,\n timePicker: timePicker,\n selectedValue: selectedValue,\n value: value,\n disabledDate: disabledDate,\n okDisabled: props.showOk !== false && (!selectedValue || !this.isAllowedDate(selectedValue)),\n onOk: this.onOk,\n onSelect: this.onSelect,\n onToday: this.onToday,\n onOpenTimePicker: this.openTimePicker,\n onCloseTimePicker: this.closeTimePicker\n })\n )\n ));\n\n return this.renderRoot({\n children: children,\n className: props.showWeekNumber ? prefixCls + '-week-number' : ''\n });\n };\n\n return Calendar;\n}(_react2[\"default\"].Component);\n\nCalendar.propTypes = _extends({}, _CalendarMixin.calendarMixinPropTypes, _CommonMixin.propType, {\n prefixCls: _propTypes2[\"default\"].string,\n className: _propTypes2[\"default\"].string,\n style: _propTypes2[\"default\"].object,\n defaultValue: _propTypes2[\"default\"].object,\n value: _propTypes2[\"default\"].object,\n selectedValue: _propTypes2[\"default\"].object,\n defaultSelectedValue: _propTypes2[\"default\"].object,\n mode: _propTypes2[\"default\"].oneOf(['time', 'date', 'month', 'year', 'decade']),\n locale: _propTypes2[\"default\"].object,\n showDateInput: _propTypes2[\"default\"].bool,\n showWeekNumber: _propTypes2[\"default\"].bool,\n showToday: _propTypes2[\"default\"].bool,\n showOk: _propTypes2[\"default\"].bool,\n onSelect: _propTypes2[\"default\"].func,\n onOk: _propTypes2[\"default\"].func,\n onKeyDown: _propTypes2[\"default\"].func,\n timePicker: _propTypes2[\"default\"].element,\n dateInputPlaceholder: _propTypes2[\"default\"].any,\n onClear: _propTypes2[\"default\"].func,\n onChange: _propTypes2[\"default\"].func,\n onPanelChange: _propTypes2[\"default\"].func,\n disabledDate: _propTypes2[\"default\"].func,\n disabledTime: _propTypes2[\"default\"].any,\n dateRender: _propTypes2[\"default\"].func,\n renderFooter: _propTypes2[\"default\"].func,\n renderSidebar: _propTypes2[\"default\"].func,\n clearIcon: _propTypes2[\"default\"].node,\n focusablePanel: _propTypes2[\"default\"].bool\n});\nCalendar.defaultProps = _extends({}, _CalendarMixin.calendarMixinDefaultProps, _CommonMixin.defaultProp, {\n showToday: true,\n showDateInput: true,\n timePicker: null,\n onOk: noop,\n onPanelChange: noop,\n focusablePanel: true\n});\n\nvar _initialiseProps = function _initialiseProps() {\n var _this3 = this;\n\n this.onPanelChange = function (value, mode) {\n var props = _this3.props,\n state = _this3.state;\n\n if (!('mode' in props)) {\n _this3.setState({ mode: mode });\n }\n props.onPanelChange(value || state.value, mode);\n };\n\n this.onKeyDown = function (event) {\n if (event.target.nodeName.toLowerCase() === 'input') {\n return undefined;\n } else {\n _this3.props.onKeyDown && _this3.props.onKeyDown(event);\n }\n var keyCode = event.keyCode;\n // mac\n var ctrlKey = event.ctrlKey || event.metaKey;\n var disabledDate = _this3.props.disabledDate;\n var value = _this3.state.value;\n\n switch (keyCode) {\n case _KeyCode2[\"default\"].DOWN:\n _this3.goTime(1, 'weeks');\n event.preventDefault();\n return 1;\n case _KeyCode2[\"default\"].UP:\n _this3.goTime(-1, 'weeks');\n event.preventDefault();\n return 1;\n case _KeyCode2[\"default\"].LEFT:\n if (ctrlKey) {\n _this3.goTime(-1, 'years');\n } else {\n _this3.goTime(-1, 'days');\n }\n event.preventDefault();\n return 1;\n case _KeyCode2[\"default\"].RIGHT:\n if (ctrlKey) {\n _this3.goTime(1, 'years');\n } else {\n _this3.goTime(1, 'days');\n }\n event.preventDefault();\n return 1;\n case _KeyCode2[\"default\"].HOME:\n _this3.setValue((0, _toTime.goStartMonth)(_this3.state.value));\n event.preventDefault();\n return 1;\n case _KeyCode2[\"default\"].END:\n _this3.setValue((0, _toTime.goEndMonth)(_this3.state.value));\n event.preventDefault();\n return 1;\n case _KeyCode2[\"default\"].PAGE_DOWN:\n _this3.goTime(1, 'month');\n event.preventDefault();\n return 1;\n case _KeyCode2[\"default\"].PAGE_UP:\n _this3.goTime(-1, 'month');\n event.preventDefault();\n return 1;\n case _KeyCode2[\"default\"].ENTER:\n if (!disabledDate || !disabledDate(value)) {\n _this3.onSelect(value, {\n source: 'keyboard'\n });\n }\n event.preventDefault();\n return 1;\n }\n };\n\n this.onClear = function () {\n _this3.onSelect(null);\n _this3.props.onClear();\n };\n\n this.onOk = function () {\n var selectedValue = _this3.state.selectedValue;\n\n if (_this3.isAllowedDate(selectedValue)) {\n _this3.props.onOk(selectedValue);\n }\n };\n\n this.onDateInputChange = function (value) {\n _this3.onSelect(value, {\n source: 'dateInput'\n });\n };\n\n this.onDateInputSelect = function (value) {\n _this3.onSelect(value, {\n source: 'dateInputSelect'\n });\n };\n\n this.onDateTableSelect = function (value) {\n var timePicker = _this3.props.timePicker;\n var selectedValue = _this3.state.selectedValue;\n\n if (!selectedValue && timePicker) {\n var timePickerDefaultValue = timePicker.props.defaultValue;\n if (timePickerDefaultValue) {\n (0, _util.syncTime)(timePickerDefaultValue, value);\n }\n }\n _this3.onSelect(value);\n };\n\n this.onToday = function () {\n var value = _this3.state.value;\n\n var now = (0, _util.getTodayTime)(value);\n _this3.onSelect(now, {\n source: 'todayButton'\n });\n };\n\n this.getRootDOMNode = function () {\n return _reactDom2[\"default\"].findDOMNode(_this3);\n };\n\n this.openTimePicker = function () {\n _this3.onPanelChange(null, 'time');\n };\n\n this.closeTimePicker = function () {\n _this3.onPanelChange(null, 'date');\n };\n\n this.goTime = function (direction, unit) {\n _this3.setValue((0, _toTime.goTime)(_this3.state.value, direction, unit));\n };\n\n this.onMouseOver = function (e) {\n e.stopPropagation();\n };\n};\n\n(0, _reactLifecyclesCompat.polyfill)(Calendar);\n\nexports[\"default\"] = (0, _CalendarMixin.calendarMixinWrapper)((0, _CommonMixin.commonMixinWrapper)(Calendar));\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1227 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _DateConstants = __webpack_require__(322);\n\nvar _DateConstants2 = _interopRequireDefault(_DateConstants);\n\nvar _moment = __webpack_require__(4);\n\nvar _moment2 = _interopRequireDefault(_moment);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar DateTHead = function (_React$Component) {\n _inherits(DateTHead, _React$Component);\n\n function DateTHead() {\n _classCallCheck(this, DateTHead);\n\n return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n DateTHead.prototype.render = function render() {\n var props = this.props;\n var value = props.value;\n var localeData = value.localeData();\n var prefixCls = props.prefixCls;\n var veryShortWeekdays = [];\n var weekDays = [];\n var firstDayOfWeek = localeData.firstDayOfWeek();\n var showWeekNumberEl = void 0;\n var now = (0, _moment2[\"default\"])();\n for (var dateColIndex = 0; dateColIndex < _DateConstants2[\"default\"].DATE_COL_COUNT; dateColIndex++) {\n var index = (firstDayOfWeek + dateColIndex) % _DateConstants2[\"default\"].DATE_COL_COUNT;\n now.day(index);\n veryShortWeekdays[dateColIndex] = localeData.weekdaysMin(now);\n weekDays[dateColIndex] = localeData.weekdaysShort(now);\n }\n\n if (props.showWeekNumber) {\n showWeekNumberEl = _react2[\"default\"].createElement(\n 'th',\n {\n role: 'columnheader',\n className: prefixCls + '-column-header ' + prefixCls + '-week-number-header'\n },\n _react2[\"default\"].createElement(\n 'span',\n { className: prefixCls + '-column-header-inner' },\n 'x'\n )\n );\n }\n var weekDaysEls = weekDays.map(function (day, xindex) {\n return _react2[\"default\"].createElement(\n 'th',\n {\n key: xindex,\n role: 'columnheader',\n title: day,\n className: prefixCls + '-column-header'\n },\n _react2[\"default\"].createElement(\n 'span',\n { className: prefixCls + '-column-header-inner' },\n veryShortWeekdays[xindex]\n )\n );\n });\n return _react2[\"default\"].createElement(\n 'thead',\n null,\n _react2[\"default\"].createElement(\n 'tr',\n { role: 'row' },\n showWeekNumberEl,\n weekDaysEls\n )\n );\n };\n\n return DateTHead;\n}(_react2[\"default\"].Component);\n\nexports[\"default\"] = DateTHead;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1228 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar map = {\n\t\"./af\": 323,\n\t\"./af.js\": 323,\n\t\"./ar\": 324,\n\t\"./ar-dz\": 325,\n\t\"./ar-dz.js\": 325,\n\t\"./ar-kw\": 326,\n\t\"./ar-kw.js\": 326,\n\t\"./ar-ly\": 327,\n\t\"./ar-ly.js\": 327,\n\t\"./ar-ma\": 328,\n\t\"./ar-ma.js\": 328,\n\t\"./ar-sa\": 329,\n\t\"./ar-sa.js\": 329,\n\t\"./ar-tn\": 330,\n\t\"./ar-tn.js\": 330,\n\t\"./ar.js\": 324,\n\t\"./az\": 331,\n\t\"./az.js\": 331,\n\t\"./be\": 332,\n\t\"./be.js\": 332,\n\t\"./bg\": 333,\n\t\"./bg.js\": 333,\n\t\"./bm\": 334,\n\t\"./bm.js\": 334,\n\t\"./bn\": 335,\n\t\"./bn.js\": 335,\n\t\"./bo\": 336,\n\t\"./bo.js\": 336,\n\t\"./br\": 337,\n\t\"./br.js\": 337,\n\t\"./bs\": 338,\n\t\"./bs.js\": 338,\n\t\"./ca\": 339,\n\t\"./ca.js\": 339,\n\t\"./cs\": 340,\n\t\"./cs.js\": 340,\n\t\"./cv\": 341,\n\t\"./cv.js\": 341,\n\t\"./cy\": 342,\n\t\"./cy.js\": 342,\n\t\"./da\": 343,\n\t\"./da.js\": 343,\n\t\"./de\": 344,\n\t\"./de-at\": 345,\n\t\"./de-at.js\": 345,\n\t\"./de-ch\": 346,\n\t\"./de-ch.js\": 346,\n\t\"./de.js\": 344,\n\t\"./dv\": 347,\n\t\"./dv.js\": 347,\n\t\"./el\": 348,\n\t\"./el.js\": 348,\n\t\"./en-au\": 349,\n\t\"./en-au.js\": 349,\n\t\"./en-ca\": 350,\n\t\"./en-ca.js\": 350,\n\t\"./en-gb\": 179,\n\t\"./en-gb.js\": 179,\n\t\"./en-ie\": 351,\n\t\"./en-ie.js\": 351,\n\t\"./en-il\": 352,\n\t\"./en-il.js\": 352,\n\t\"./en-in\": 353,\n\t\"./en-in.js\": 353,\n\t\"./en-nz\": 354,\n\t\"./en-nz.js\": 354,\n\t\"./en-sg\": 355,\n\t\"./en-sg.js\": 355,\n\t\"./eo\": 356,\n\t\"./eo.js\": 356,\n\t\"./es\": 357,\n\t\"./es-do\": 358,\n\t\"./es-do.js\": 358,\n\t\"./es-us\": 359,\n\t\"./es-us.js\": 359,\n\t\"./es.js\": 357,\n\t\"./et\": 360,\n\t\"./et.js\": 360,\n\t\"./eu\": 361,\n\t\"./eu.js\": 361,\n\t\"./fa\": 362,\n\t\"./fa.js\": 362,\n\t\"./fi\": 363,\n\t\"./fi.js\": 363,\n\t\"./fil\": 364,\n\t\"./fil.js\": 364,\n\t\"./fo\": 365,\n\t\"./fo.js\": 365,\n\t\"./fr\": 366,\n\t\"./fr-ca\": 367,\n\t\"./fr-ca.js\": 367,\n\t\"./fr-ch\": 368,\n\t\"./fr-ch.js\": 368,\n\t\"./fr.js\": 366,\n\t\"./fy\": 369,\n\t\"./fy.js\": 369,\n\t\"./ga\": 370,\n\t\"./ga.js\": 370,\n\t\"./gd\": 371,\n\t\"./gd.js\": 371,\n\t\"./gl\": 372,\n\t\"./gl.js\": 372,\n\t\"./gom-deva\": 373,\n\t\"./gom-deva.js\": 373,\n\t\"./gom-latn\": 374,\n\t\"./gom-latn.js\": 374,\n\t\"./gu\": 375,\n\t\"./gu.js\": 375,\n\t\"./he\": 376,\n\t\"./he.js\": 376,\n\t\"./hi\": 377,\n\t\"./hi.js\": 377,\n\t\"./hr\": 378,\n\t\"./hr.js\": 378,\n\t\"./hu\": 379,\n\t\"./hu.js\": 379,\n\t\"./hy-am\": 380,\n\t\"./hy-am.js\": 380,\n\t\"./id\": 381,\n\t\"./id.js\": 381,\n\t\"./is\": 382,\n\t\"./is.js\": 382,\n\t\"./it\": 383,\n\t\"./it-ch\": 384,\n\t\"./it-ch.js\": 384,\n\t\"./it.js\": 383,\n\t\"./ja\": 385,\n\t\"./ja.js\": 385,\n\t\"./jv\": 386,\n\t\"./jv.js\": 386,\n\t\"./ka\": 387,\n\t\"./ka.js\": 387,\n\t\"./kk\": 388,\n\t\"./kk.js\": 388,\n\t\"./km\": 389,\n\t\"./km.js\": 389,\n\t\"./kn\": 390,\n\t\"./kn.js\": 390,\n\t\"./ko\": 391,\n\t\"./ko.js\": 391,\n\t\"./ku\": 392,\n\t\"./ku.js\": 392,\n\t\"./ky\": 393,\n\t\"./ky.js\": 393,\n\t\"./lb\": 394,\n\t\"./lb.js\": 394,\n\t\"./lo\": 395,\n\t\"./lo.js\": 395,\n\t\"./lt\": 396,\n\t\"./lt.js\": 396,\n\t\"./lv\": 397,\n\t\"./lv.js\": 397,\n\t\"./me\": 398,\n\t\"./me.js\": 398,\n\t\"./mi\": 399,\n\t\"./mi.js\": 399,\n\t\"./mk\": 400,\n\t\"./mk.js\": 400,\n\t\"./ml\": 401,\n\t\"./ml.js\": 401,\n\t\"./mn\": 402,\n\t\"./mn.js\": 402,\n\t\"./mr\": 403,\n\t\"./mr.js\": 403,\n\t\"./ms\": 404,\n\t\"./ms-my\": 405,\n\t\"./ms-my.js\": 405,\n\t\"./ms.js\": 404,\n\t\"./mt\": 406,\n\t\"./mt.js\": 406,\n\t\"./my\": 407,\n\t\"./my.js\": 407,\n\t\"./nb\": 408,\n\t\"./nb.js\": 408,\n\t\"./ne\": 409,\n\t\"./ne.js\": 409,\n\t\"./nl\": 410,\n\t\"./nl-be\": 411,\n\t\"./nl-be.js\": 411,\n\t\"./nl.js\": 410,\n\t\"./nn\": 412,\n\t\"./nn.js\": 412,\n\t\"./oc-lnc\": 413,\n\t\"./oc-lnc.js\": 413,\n\t\"./pa-in\": 414,\n\t\"./pa-in.js\": 414,\n\t\"./pl\": 415,\n\t\"./pl.js\": 415,\n\t\"./pt\": 416,\n\t\"./pt-br\": 417,\n\t\"./pt-br.js\": 417,\n\t\"./pt.js\": 416,\n\t\"./ro\": 418,\n\t\"./ro.js\": 418,\n\t\"./ru\": 419,\n\t\"./ru.js\": 419,\n\t\"./sd\": 420,\n\t\"./sd.js\": 420,\n\t\"./se\": 421,\n\t\"./se.js\": 421,\n\t\"./si\": 422,\n\t\"./si.js\": 422,\n\t\"./sk\": 423,\n\t\"./sk.js\": 423,\n\t\"./sl\": 424,\n\t\"./sl.js\": 424,\n\t\"./sq\": 425,\n\t\"./sq.js\": 425,\n\t\"./sr\": 426,\n\t\"./sr-cyrl\": 427,\n\t\"./sr-cyrl.js\": 427,\n\t\"./sr.js\": 426,\n\t\"./ss\": 428,\n\t\"./ss.js\": 428,\n\t\"./sv\": 429,\n\t\"./sv.js\": 429,\n\t\"./sw\": 430,\n\t\"./sw.js\": 430,\n\t\"./ta\": 431,\n\t\"./ta.js\": 431,\n\t\"./te\": 432,\n\t\"./te.js\": 432,\n\t\"./tet\": 433,\n\t\"./tet.js\": 433,\n\t\"./tg\": 434,\n\t\"./tg.js\": 434,\n\t\"./th\": 435,\n\t\"./th.js\": 435,\n\t\"./tl-ph\": 436,\n\t\"./tl-ph.js\": 436,\n\t\"./tlh\": 437,\n\t\"./tlh.js\": 437,\n\t\"./tr\": 438,\n\t\"./tr.js\": 438,\n\t\"./tzl\": 439,\n\t\"./tzl.js\": 439,\n\t\"./tzm\": 440,\n\t\"./tzm-latn\": 441,\n\t\"./tzm-latn.js\": 441,\n\t\"./tzm.js\": 440,\n\t\"./ug-cn\": 442,\n\t\"./ug-cn.js\": 442,\n\t\"./uk\": 443,\n\t\"./uk.js\": 443,\n\t\"./ur\": 444,\n\t\"./ur.js\": 444,\n\t\"./uz\": 445,\n\t\"./uz-latn\": 446,\n\t\"./uz-latn.js\": 446,\n\t\"./uz.js\": 445,\n\t\"./vi\": 447,\n\t\"./vi.js\": 447,\n\t\"./x-pseudo\": 448,\n\t\"./x-pseudo.js\": 448,\n\t\"./yo\": 449,\n\t\"./yo.js\": 449,\n\t\"./zh-cn\": 110,\n\t\"./zh-cn.js\": 110,\n\t\"./zh-hk\": 450,\n\t\"./zh-hk.js\": 450,\n\t\"./zh-mo\": 451,\n\t\"./zh-mo.js\": 451,\n\t\"./zh-tw\": 452,\n\t\"./zh-tw.js\": 452\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 1228;\n\n/***/ }),\n/* 1229 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _DateConstants = __webpack_require__(322);\n\nvar _DateConstants2 = _interopRequireDefault(_DateConstants);\n\nvar _util = __webpack_require__(33);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nfunction isSameDay(one, two) {\n return one && two && one.isSame(two, 'day');\n}\n\nfunction beforeCurrentMonthYear(current, today) {\n if (current.year() < today.year()) {\n return 1;\n }\n return current.year() === today.year() && current.month() < today.month();\n}\n\nfunction afterCurrentMonthYear(current, today) {\n if (current.year() > today.year()) {\n return 1;\n }\n return current.year() === today.year() && current.month() > today.month();\n}\n\nfunction getIdFromDate(date) {\n return 'rc-calendar-' + date.year() + '-' + date.month() + '-' + date.date();\n}\n\nvar DateTBody = function (_React$Component) {\n _inherits(DateTBody, _React$Component);\n\n function DateTBody() {\n _classCallCheck(this, DateTBody);\n\n return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n DateTBody.prototype.render = function render() {\n var props = this.props;\n var contentRender = props.contentRender,\n prefixCls = props.prefixCls,\n selectedValue = props.selectedValue,\n value = props.value,\n showWeekNumber = props.showWeekNumber,\n dateRender = props.dateRender,\n disabledDate = props.disabledDate,\n hoverValue = props.hoverValue;\n\n var iIndex = void 0;\n var jIndex = void 0;\n var current = void 0;\n var dateTable = [];\n var today = (0, _util.getTodayTime)(value);\n var cellClass = prefixCls + '-cell';\n var weekNumberCellClass = prefixCls + '-week-number-cell';\n var dateClass = prefixCls + '-date';\n var todayClass = prefixCls + '-today';\n var selectedClass = prefixCls + '-selected-day';\n var selectedDateClass = prefixCls + '-selected-date'; // do not move with mouse operation\n var selectedStartDateClass = prefixCls + '-selected-start-date';\n var selectedEndDateClass = prefixCls + '-selected-end-date';\n var inRangeClass = prefixCls + '-in-range-cell';\n var lastMonthDayClass = prefixCls + '-last-month-cell';\n var nextMonthDayClass = prefixCls + '-next-month-btn-day';\n var disabledClass = prefixCls + '-disabled-cell';\n var firstDisableClass = prefixCls + '-disabled-cell-first-of-row';\n var lastDisableClass = prefixCls + '-disabled-cell-last-of-row';\n var lastDayOfMonthClass = prefixCls + '-last-day-of-month';\n var month1 = value.clone();\n month1.date(1);\n var day = month1.day();\n var lastMonthDiffDay = (day + 7 - value.localeData().firstDayOfWeek()) % 7;\n // calculate last month\n var lastMonth1 = month1.clone();\n lastMonth1.add(0 - lastMonthDiffDay, 'days');\n var passed = 0;\n\n for (iIndex = 0; iIndex < _DateConstants2[\"default\"].DATE_ROW_COUNT; iIndex++) {\n for (jIndex = 0; jIndex < _DateConstants2[\"default\"].DATE_COL_COUNT; jIndex++) {\n current = lastMonth1;\n if (passed) {\n current = current.clone();\n current.add(passed, 'days');\n }\n dateTable.push(current);\n passed++;\n }\n }\n var tableHtml = [];\n passed = 0;\n\n for (iIndex = 0; iIndex < _DateConstants2[\"default\"].DATE_ROW_COUNT; iIndex++) {\n var _cx;\n\n var isCurrentWeek = void 0;\n var weekNumberCell = void 0;\n var isActiveWeek = false;\n var dateCells = [];\n if (showWeekNumber) {\n weekNumberCell = _react2[\"default\"].createElement(\n 'td',\n {\n key: dateTable[passed].week(),\n role: 'gridcell',\n className: weekNumberCellClass\n },\n dateTable[passed].week()\n );\n }\n for (jIndex = 0; jIndex < _DateConstants2[\"default\"].DATE_COL_COUNT; jIndex++) {\n var next = null;\n var last = null;\n current = dateTable[passed];\n if (jIndex < _DateConstants2[\"default\"].DATE_COL_COUNT - 1) {\n next = dateTable[passed + 1];\n }\n if (jIndex > 0) {\n last = dateTable[passed - 1];\n }\n var cls = cellClass;\n var disabled = false;\n var selected = false;\n\n if (isSameDay(current, today)) {\n cls += ' ' + todayClass;\n isCurrentWeek = true;\n }\n\n var isBeforeCurrentMonthYear = beforeCurrentMonthYear(current, value);\n var isAfterCurrentMonthYear = afterCurrentMonthYear(current, value);\n\n if (selectedValue && Array.isArray(selectedValue)) {\n var rangeValue = hoverValue.length ? hoverValue : selectedValue;\n if (!isBeforeCurrentMonthYear && !isAfterCurrentMonthYear) {\n var startValue = rangeValue[0];\n var endValue = rangeValue[1];\n if (startValue) {\n if (isSameDay(current, startValue)) {\n selected = true;\n isActiveWeek = true;\n cls += ' ' + selectedStartDateClass;\n }\n }\n if (startValue && endValue) {\n if (isSameDay(current, endValue)) {\n selected = true;\n isActiveWeek = true;\n cls += ' ' + selectedEndDateClass;\n } else if (current.isAfter(startValue, 'day') && current.isBefore(endValue, 'day')) {\n cls += ' ' + inRangeClass;\n }\n }\n }\n } else if (isSameDay(current, value)) {\n // keyboard change value, highlight works\n selected = true;\n isActiveWeek = true;\n }\n\n if (isSameDay(current, selectedValue)) {\n cls += ' ' + selectedDateClass;\n }\n\n if (isBeforeCurrentMonthYear) {\n cls += ' ' + lastMonthDayClass;\n }\n\n if (isAfterCurrentMonthYear) {\n cls += ' ' + nextMonthDayClass;\n }\n\n if (current.clone().endOf('month').date() === current.date()) {\n cls += ' ' + lastDayOfMonthClass;\n }\n\n if (disabledDate) {\n if (disabledDate(current, value)) {\n disabled = true;\n\n if (!last || !disabledDate(last, value)) {\n cls += ' ' + firstDisableClass;\n }\n\n if (!next || !disabledDate(next, value)) {\n cls += ' ' + lastDisableClass;\n }\n }\n }\n\n if (selected) {\n cls += ' ' + selectedClass;\n }\n\n if (disabled) {\n cls += ' ' + disabledClass;\n }\n\n var dateHtml = void 0;\n if (dateRender) {\n dateHtml = dateRender(current, value);\n } else {\n var content = contentRender ? contentRender(current, value) : current.date();\n dateHtml = _react2[\"default\"].createElement(\n 'div',\n {\n key: getIdFromDate(current),\n className: dateClass,\n 'aria-selected': selected,\n 'aria-disabled': disabled\n },\n content\n );\n }\n\n dateCells.push(_react2[\"default\"].createElement(\n 'td',\n {\n key: passed,\n onClick: disabled ? undefined : props.onSelect.bind(null, current),\n onMouseEnter: disabled ? undefined : props.onDayHover && props.onDayHover.bind(null, current) || undefined,\n role: 'gridcell',\n title: (0, _util.getTitleString)(current),\n className: cls\n },\n dateHtml\n ));\n\n passed++;\n }\n\n tableHtml.push(_react2[\"default\"].createElement(\n 'tr',\n {\n key: iIndex,\n role: 'row',\n className: (0, _classnames2[\"default\"])((_cx = {}, _defineProperty(_cx, prefixCls + '-current-week', isCurrentWeek), _defineProperty(_cx, prefixCls + '-active-week', isActiveWeek), _cx))\n },\n weekNumberCell,\n dateCells\n ));\n }\n return _react2[\"default\"].createElement(\n 'tbody',\n { className: prefixCls + '-tbody' },\n tableHtml\n );\n };\n\n return DateTBody;\n}(_react2[\"default\"].Component);\n\nDateTBody.propTypes = {\n contentRender: _propTypes2[\"default\"].func,\n dateRender: _propTypes2[\"default\"].func,\n disabledDate: _propTypes2[\"default\"].func,\n prefixCls: _propTypes2[\"default\"].string,\n selectedValue: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].object, _propTypes2[\"default\"].arrayOf(_propTypes2[\"default\"].object)]),\n value: _propTypes2[\"default\"].object,\n hoverValue: _propTypes2[\"default\"].any,\n showWeekNumber: _propTypes2[\"default\"].bool\n};\nDateTBody.defaultProps = {\n hoverValue: []\n};\nexports[\"default\"] = DateTBody;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1230 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _reactLifecyclesCompat = __webpack_require__(12);\n\nvar _MonthTable = __webpack_require__(1231);\n\nvar _MonthTable2 = _interopRequireDefault(_MonthTable);\n\nvar _DateInput = __webpack_require__(79);\n\nvar _DateInput2 = _interopRequireDefault(_DateInput);\n\nvar _moment = __webpack_require__(4);\n\nvar _moment2 = _interopRequireDefault(_moment);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nfunction goYear(direction) {\n var next = this.state.value.clone();\n next.add(direction, 'year');\n this.setAndChangeValue(next);\n}\n\nfunction noop() {}\n\nvar MonthPanel = function (_React$Component) {\n _inherits(MonthPanel, _React$Component);\n\n function MonthPanel(props) {\n _classCallCheck(this, MonthPanel);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));\n\n _this.setAndChangeValue = function (value) {\n _this.setValue(value);\n _this.props.onChange(value);\n };\n\n _this.setAndSelectValue = function (value) {\n _this.setValue(value);\n _this.props.onSelect(value);\n };\n\n _this.setValue = function (value) {\n if (!('value' in _this.props)) {\n _this.setState({\n value: value\n });\n }\n };\n\n _this.nextYear = goYear.bind(_this, 1);\n _this.previousYear = goYear.bind(_this, -1);\n _this.prefixCls = props.rootPrefixCls + '-month-panel';\n\n _this.state = {\n value: props.value || props.defaultValue\n };\n return _this;\n }\n\n MonthPanel.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps) {\n var newState = {};\n\n if ('value' in nextProps) {\n newState = {\n value: nextProps.value\n };\n }\n\n return newState;\n };\n\n MonthPanel.prototype.render = function render() {\n var props = this.props;\n var value = this.state.value;\n var locale = props.locale,\n cellRender = props.cellRender,\n contentRender = props.contentRender,\n renderFooter = props.renderFooter,\n rootPrefixCls = props.rootPrefixCls;\n\n var year = value.year();\n var prefixCls = this.prefixCls;\n\n var footer = renderFooter && renderFooter('month');\n\n return _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls, style: props.style, tabIndex: '0' },\n _react2[\"default\"].createElement(\n 'div',\n null,\n _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-header' },\n _react2[\"default\"].createElement('a', {\n className: prefixCls + '-prev-year-btn',\n role: 'button',\n onClick: this.previousYear,\n title: locale.previousYear\n }),\n _react2[\"default\"].createElement(\n 'a',\n {\n className: prefixCls + '-year-select',\n role: 'button',\n onClick: props.onYearPanelShow,\n title: locale.yearSelect\n },\n _react2[\"default\"].createElement(\n 'span',\n { className: prefixCls + '-year-select-content' },\n year\n ),\n _react2[\"default\"].createElement(\n 'span',\n { className: prefixCls + '-year-select-arrow' },\n 'x'\n )\n ),\n _react2[\"default\"].createElement('a', {\n className: prefixCls + '-next-year-btn',\n role: 'button',\n onClick: this.nextYear,\n title: locale.nextYear\n })\n ),\n _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-body' },\n _react2[\"default\"].createElement(_MonthTable2[\"default\"], {\n disabledDate: props.disabledDate,\n onSelect: this.setAndSelectValue,\n locale: locale,\n value: value,\n cellRender: cellRender,\n contentRender: contentRender,\n prefixCls: prefixCls\n })\n ),\n footer && _react2[\"default\"].createElement(\n 'div',\n { className: prefixCls + '-footer' },\n footer\n )\n )\n );\n };\n\n return MonthPanel;\n}(_react2[\"default\"].Component);\n\nMonthPanel.propTypes = {\n onChange: _propTypes2[\"default\"].func,\n disabledDate: _propTypes2[\"default\"].func,\n onSelect: _propTypes2[\"default\"].func,\n renderFooter: _propTypes2[\"default\"].func,\n rootPrefixCls: _propTypes2[\"default\"].string,\n value: _propTypes2[\"default\"].object,\n defaultValue: _propTypes2[\"default\"].object\n};\nMonthPanel.defaultProps = {\n onChange: noop,\n onSelect: noop\n};\n\n\n(0, _reactLifecyclesCompat.polyfill)(MonthPanel);\n\nexports[\"default\"] = MonthPanel;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1231 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _index = __webpack_require__(33);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar ROW = 4;\nvar COL = 3;\n\nfunction chooseMonth(month) {\n var next = this.state.value.clone();\n next.month(month);\n this.setAndSelectValue(next);\n}\n\nfunction noop() {}\n\nvar MonthTable = function (_Component) {\n _inherits(MonthTable, _Component);\n\n function MonthTable(props) {\n _classCallCheck(this, MonthTable);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props));\n\n _this.state = {\n value: props.value\n };\n return _this;\n }\n\n MonthTable.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n if ('value' in nextProps) {\n this.setState({\n value: nextProps.value\n });\n }\n };\n\n MonthTable.prototype.setAndSelectValue = function setAndSelectValue(value) {\n this.setState({\n value: value\n });\n this.props.onSelect(value);\n };\n\n MonthTable.prototype.months = function months() {\n var value = this.state.value;\n var current = value.clone();\n var months = [];\n var index = 0;\n for (var rowIndex = 0; rowIndex < ROW; rowIndex++) {\n months[rowIndex] = [];\n for (var colIndex = 0; colIndex < COL; colIndex++) {\n current.month(index);\n var content = (0, _index.getMonthName)(current);\n months[rowIndex][colIndex] = {\n value: index,\n content: content,\n title: content\n };\n index++;\n }\n }\n return months;\n };\n\n MonthTable.prototype.render = function render() {\n var _this2 = this;\n\n var props = this.props;\n var value = this.state.value;\n var today = (0, _index.getTodayTime)(value);\n var months = this.months();\n var currentMonth = value.month();\n var prefixCls = props.prefixCls,\n locale = props.locale,\n contentRender = props.contentRender,\n cellRender = props.cellRender;\n\n var monthsEls = months.map(function (month, index) {\n var tds = month.map(function (monthData) {\n var _classNameMap;\n\n var disabled = false;\n if (props.disabledDate) {\n var testValue = value.clone();\n testValue.month(monthData.value);\n disabled = props.disabledDate(testValue);\n }\n var classNameMap = (_classNameMap = {}, _defineProperty(_classNameMap, prefixCls + '-cell', 1), _defineProperty(_classNameMap, prefixCls + '-cell-disabled', disabled), _defineProperty(_classNameMap, prefixCls + '-selected-cell', monthData.value === currentMonth), _defineProperty(_classNameMap, prefixCls + '-current-cell', today.year() === value.year() && monthData.value === today.month()), _classNameMap);\n var cellEl = void 0;\n if (cellRender) {\n var currentValue = value.clone();\n currentValue.month(monthData.value);\n cellEl = cellRender(currentValue, locale);\n } else {\n var content = void 0;\n if (contentRender) {\n var _currentValue = value.clone();\n _currentValue.month(monthData.value);\n content = contentRender(_currentValue, locale);\n } else {\n content = monthData.content;\n }\n cellEl = _react2[\"default\"].createElement(\n 'a',\n { className: prefixCls + '-month' },\n content\n );\n }\n return _react2[\"default\"].createElement(\n 'td',\n {\n role: 'gridcell',\n key: monthData.value,\n onClick: disabled ? null : chooseMonth.bind(_this2, monthData.value),\n title: monthData.title,\n className: (0, _classnames2[\"default\"])(classNameMap)\n },\n cellEl\n );\n });\n return _react2[\"default\"].createElement(\n 'tr',\n { key: index, role: 'row' },\n tds\n );\n });\n\n return _react2[\"default\"].createElement(\n 'table',\n { className: prefixCls + '-table', cellSpacing: '0', role: 'grid' },\n _react2[\"default\"].createElement(\n 'tbody',\n { className: prefixCls + '-tbody' },\n monthsEls\n )\n );\n };\n\n return MonthTable;\n}(_react.Component);\n\nMonthTable.defaultProps = {\n onSelect: noop\n};\nMonthTable.propTypes = {\n onSelect: _propTypes2[\"default\"].func,\n cellRender: _propTypes2[\"default\"].func,\n prefixCls: _propTypes2[\"default\"].string,\n value: _propTypes2[\"default\"].object\n};\nexports[\"default\"] = MonthTable;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1232 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _Button = __webpack_require__(1233);\n\nvar _Button2 = _interopRequireDefault(_Button);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nexports[\"default\"] = _Button2[\"default\"];\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1233 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = __webpack_require__(3);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = {\n /**\n * @title 尺寸\n */\n size: _propTypes2[\"default\"].oneOf(['sm', 'md', 'xg', 'lg']),\n /**\n * @title 样式\n */\n style: _propTypes2[\"default\"].object,\n /**\n * @title 形状\n */\n shape: _propTypes2[\"default\"].oneOf(['block', 'round', 'border', 'squared', 'floating', 'pillRight', 'pillLeft', 'icon']),\n\n bordered: _propTypes2[\"default\"].bool,\n /**\n * @title 类型\n */\n colors: _propTypes2[\"default\"].oneOf(['primary', 'secondary', 'accent', 'success', 'info', 'warning', 'danger', 'dark', 'light', 'default']),\n /**\n * @title 是否禁用\n * @veIgnore\n */\n disabled: _propTypes2[\"default\"].bool,\n /**\n * @title 类名\n * @veIgnore\n */\n className: _propTypes2[\"default\"].string,\n\n /**\n * @title \n * \n * );\n * }\n * ```\n *\n * When the `in` prop is set to `true`, the child component will first receive\n * the class `example-enter`, then the `example-enter-active` will be added in\n * the next tick. `CSSTransition` [forces a\n * reflow](https://github.com/reactjs/react-transition-group/blob/5007303e729a74be66a21c3e2205e4916821524b/src/CSSTransition.js#L208-L215)\n * between before adding the `example-enter-active`. This is an important trick\n * because it allows us to transition between `example-enter` and\n * `example-enter-active` even though they were added immediately one after\n * another. Most notably, this is what makes it possible for us to animate\n * _appearance_.\n *\n * ```css\n * .my-node-enter {\n * opacity: 0;\n * }\n * .my-node-enter-active {\n * opacity: 1;\n * transition: opacity 200ms;\n * }\n * .my-node-exit {\n * opacity: 1;\n * }\n * .my-node-exit-active {\n * opacity: 0;\n * transition: opacity: 200ms;\n * }\n * ```\n *\n * `*-active` classes represent which styles you want to animate **to**.\n */\n\n\nvar CSSTransition =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inheritsLoose(CSSTransition, _React$Component);\n\n function CSSTransition() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n\n _this.onEnter = function (node, appearing) {\n var _this$getClassNames = _this.getClassNames(appearing ? 'appear' : 'enter'),\n className = _this$getClassNames.className;\n\n _this.removeClasses(node, 'exit');\n\n addClass(node, className);\n\n if (_this.props.onEnter) {\n _this.props.onEnter(node, appearing);\n }\n };\n\n _this.onEntering = function (node, appearing) {\n var _this$getClassNames2 = _this.getClassNames(appearing ? 'appear' : 'enter'),\n activeClassName = _this$getClassNames2.activeClassName;\n\n _this.reflowAndAddClass(node, activeClassName);\n\n if (_this.props.onEntering) {\n _this.props.onEntering(node, appearing);\n }\n };\n\n _this.onEntered = function (node, appearing) {\n var appearClassName = _this.getClassNames('appear').doneClassName;\n\n var enterClassName = _this.getClassNames('enter').doneClassName;\n\n var doneClassName = appearing ? appearClassName + \" \" + enterClassName : enterClassName;\n\n _this.removeClasses(node, appearing ? 'appear' : 'enter');\n\n addClass(node, doneClassName);\n\n if (_this.props.onEntered) {\n _this.props.onEntered(node, appearing);\n }\n };\n\n _this.onExit = function (node) {\n var _this$getClassNames3 = _this.getClassNames('exit'),\n className = _this$getClassNames3.className;\n\n _this.removeClasses(node, 'appear');\n\n _this.removeClasses(node, 'enter');\n\n addClass(node, className);\n\n if (_this.props.onExit) {\n _this.props.onExit(node);\n }\n };\n\n _this.onExiting = function (node) {\n var _this$getClassNames4 = _this.getClassNames('exit'),\n activeClassName = _this$getClassNames4.activeClassName;\n\n _this.reflowAndAddClass(node, activeClassName);\n\n if (_this.props.onExiting) {\n _this.props.onExiting(node);\n }\n };\n\n _this.onExited = function (node) {\n var _this$getClassNames5 = _this.getClassNames('exit'),\n doneClassName = _this$getClassNames5.doneClassName;\n\n _this.removeClasses(node, 'exit');\n\n addClass(node, doneClassName);\n\n if (_this.props.onExited) {\n _this.props.onExited(node);\n }\n };\n\n _this.getClassNames = function (type) {\n var classNames = _this.props.classNames;\n var isStringClassNames = typeof classNames === 'string';\n var prefix = isStringClassNames && classNames ? classNames + '-' : '';\n var className = isStringClassNames ? prefix + type : classNames[type];\n var activeClassName = isStringClassNames ? className + '-active' : classNames[type + 'Active'];\n var doneClassName = isStringClassNames ? className + '-done' : classNames[type + 'Done'];\n return {\n className: className,\n activeClassName: activeClassName,\n doneClassName: doneClassName\n };\n };\n\n return _this;\n }\n\n var _proto = CSSTransition.prototype;\n\n _proto.removeClasses = function removeClasses(node, type) {\n var _this$getClassNames6 = this.getClassNames(type),\n className = _this$getClassNames6.className,\n activeClassName = _this$getClassNames6.activeClassName,\n doneClassName = _this$getClassNames6.doneClassName;\n\n className && removeClass(node, className);\n activeClassName && removeClass(node, activeClassName);\n doneClassName && removeClass(node, doneClassName);\n };\n\n _proto.reflowAndAddClass = function reflowAndAddClass(node, className) {\n // This is for to force a repaint,\n // which is necessary in order to transition styles when adding a class name.\n if (className) {\n /* eslint-disable no-unused-expressions */\n node && node.scrollTop;\n /* eslint-enable no-unused-expressions */\n\n addClass(node, className);\n }\n };\n\n _proto.render = function render() {\n var props = _extends({}, this.props);\n\n delete props.classNames;\n return _react.default.createElement(_Transition.default, _extends({}, props, {\n onEnter: this.onEnter,\n onEntered: this.onEntered,\n onEntering: this.onEntering,\n onExit: this.onExit,\n onExiting: this.onExiting,\n onExited: this.onExited\n }));\n };\n\n return CSSTransition;\n}(_react.default.Component);\n\nCSSTransition.defaultProps = {\n classNames: ''\n};\nCSSTransition.propTypes = process.env.NODE_ENV !== \"production\" ? _extends({}, _Transition.default.propTypes, {\n /**\n * The animation classNames applied to the component as it enters, exits or\n * has finished the transition. A single name can be provided and it will be\n * suffixed for each stage: e.g.\n *\n * `classNames=\"fade\"` applies `fade-enter`, `fade-enter-active`,\n * `fade-enter-done`, `fade-exit`, `fade-exit-active`, `fade-exit-done`,\n * `fade-appear`, `fade-appear-active`, and `fade-appear-done`.\n *\n * **Note**: `fade-appear-done` and `fade-enter-done` will _both_ be applied.\n * This allows you to define different behavior for when appearing is done and\n * when regular entering is done, using selectors like\n * `.fade-enter-done:not(.fade-appear-done)`. For example, you could apply an\n * epic entrance animation when element first appears in the DOM using\n * [Animate.css](https://daneden.github.io/animate.css/). Otherwise you can\n * simply use `fade-enter-done` for defining both cases.\n *\n * Each individual classNames can also be specified independently like:\n *\n * ```js\n * classNames={{\n * appear: 'my-appear',\n * appearActive: 'my-active-appear',\n * appearDone: 'my-done-appear',\n * enter: 'my-enter',\n * enterActive: 'my-active-enter',\n * enterDone: 'my-done-enter',\n * exit: 'my-exit',\n * exitActive: 'my-active-exit',\n * exitDone: 'my-done-exit',\n * }}\n * ```\n *\n * If you want to set these classes using CSS Modules:\n *\n * ```js\n * import styles from './styles.css';\n * ```\n *\n * you might want to use camelCase in your CSS file, that way could simply\n * spread them instead of listing them one by one:\n *\n * ```js\n * classNames={{ ...styles }}\n * ```\n *\n * @type {string | {\n * appear?: string,\n * appearActive?: string,\n * appearDone?: string,\n * enter?: string,\n * enterActive?: string,\n * enterDone?: string,\n * exit?: string,\n * exitActive?: string,\n * exitDone?: string,\n * }}\n */\n classNames: _PropTypes.classNamesShape,\n\n /**\n * A `` callback fired immediately after the 'enter' or 'appear' class is\n * applied.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEnter: PropTypes.func,\n\n /**\n * A `` callback fired immediately after the 'enter-active' or\n * 'appear-active' class is applied.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntering: PropTypes.func,\n\n /**\n * A `` callback fired immediately after the 'enter' or\n * 'appear' classes are **removed** and the `done` class is added to the DOM node.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntered: PropTypes.func,\n\n /**\n * A `` callback fired immediately after the 'exit' class is\n * applied.\n *\n * @type Function(node: HtmlElement)\n */\n onExit: PropTypes.func,\n\n /**\n * A `` callback fired immediately after the 'exit-active' is applied.\n *\n * @type Function(node: HtmlElement)\n */\n onExiting: PropTypes.func,\n\n /**\n * A `` callback fired immediately after the 'exit' classes\n * are **removed** and the `exit-done` class is added to the DOM node.\n *\n * @type Function(node: HtmlElement)\n */\n onExited: PropTypes.func\n}) : {};\nvar _default = CSSTransition;\nexports.default = _default;\nmodule.exports = exports[\"default\"];\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5)))\n\n/***/ }),\n/* 1565 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _interopRequireDefault = __webpack_require__(19);\n\nexports.__esModule = true;\nexports.default = addClass;\n\nvar _hasClass = _interopRequireDefault(__webpack_require__(1566));\n\nfunction addClass(element, className) {\n if (element.classList) element.classList.add(className);else if (!(0, _hasClass.default)(element, className)) if (typeof element.className === 'string') element.className = element.className + ' ' + className;else element.setAttribute('class', (element.className && element.className.baseVal || '') + ' ' + className);\n}\n\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 1566 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = hasClass;\n\nfunction hasClass(element, className) {\n if (element.classList) return !!className && element.classList.contains(className);else return (\" \" + (element.className.baseVal || element.className) + \" \").indexOf(\" \" + className + \" \") !== -1;\n}\n\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 1567 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nfunction replaceClassName(origClass, classToRemove) {\n return origClass.replace(new RegExp('(^|\\\\s)' + classToRemove + '(?:\\\\s|$)', 'g'), '$1').replace(/\\s+/g, ' ').replace(/^\\s*|\\s*$/g, '');\n}\n\nmodule.exports = function removeClass(element, className) {\n if (element.classList) element.classList.remove(className);else if (typeof element.className === 'string') element.className = replaceClassName(element.className, className);else element.setAttribute('class', replaceClassName(element.className && element.className.baseVal || '', className));\n};\n\n/***/ }),\n/* 1568 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(process) {\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar _propTypes = _interopRequireDefault(__webpack_require__(1));\n\nvar _react = _interopRequireDefault(__webpack_require__(0));\n\nvar _reactDom = __webpack_require__(3);\n\nvar _TransitionGroup = _interopRequireDefault(__webpack_require__(513));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }\n\n/**\n * The `` component is a specialized `Transition` component\n * that animates between two children.\n *\n * ```jsx\n * \n *
    I appear first
    \n *
    I replace the above
    \n *
    \n * ```\n */\nvar ReplaceTransition =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inheritsLoose(ReplaceTransition, _React$Component);\n\n function ReplaceTransition() {\n var _this;\n\n for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {\n _args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(_args)) || this;\n\n _this.handleEnter = function () {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n return _this.handleLifecycle('onEnter', 0, args);\n };\n\n _this.handleEntering = function () {\n for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n args[_key3] = arguments[_key3];\n }\n\n return _this.handleLifecycle('onEntering', 0, args);\n };\n\n _this.handleEntered = function () {\n for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {\n args[_key4] = arguments[_key4];\n }\n\n return _this.handleLifecycle('onEntered', 0, args);\n };\n\n _this.handleExit = function () {\n for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {\n args[_key5] = arguments[_key5];\n }\n\n return _this.handleLifecycle('onExit', 1, args);\n };\n\n _this.handleExiting = function () {\n for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {\n args[_key6] = arguments[_key6];\n }\n\n return _this.handleLifecycle('onExiting', 1, args);\n };\n\n _this.handleExited = function () {\n for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {\n args[_key7] = arguments[_key7];\n }\n\n return _this.handleLifecycle('onExited', 1, args);\n };\n\n return _this;\n }\n\n var _proto = ReplaceTransition.prototype;\n\n _proto.handleLifecycle = function handleLifecycle(handler, idx, originalArgs) {\n var _child$props;\n\n var children = this.props.children;\n\n var child = _react.default.Children.toArray(children)[idx];\n\n if (child.props[handler]) (_child$props = child.props)[handler].apply(_child$props, originalArgs);\n if (this.props[handler]) this.props[handler]((0, _reactDom.findDOMNode)(this));\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n children = _this$props.children,\n inProp = _this$props.in,\n props = _objectWithoutPropertiesLoose(_this$props, [\"children\", \"in\"]);\n\n var _React$Children$toArr = _react.default.Children.toArray(children),\n first = _React$Children$toArr[0],\n second = _React$Children$toArr[1];\n\n delete props.onEnter;\n delete props.onEntering;\n delete props.onEntered;\n delete props.onExit;\n delete props.onExiting;\n delete props.onExited;\n return _react.default.createElement(_TransitionGroup.default, props, inProp ? _react.default.cloneElement(first, {\n key: 'first',\n onEnter: this.handleEnter,\n onEntering: this.handleEntering,\n onEntered: this.handleEntered\n }) : _react.default.cloneElement(second, {\n key: 'second',\n onEnter: this.handleExit,\n onEntering: this.handleExiting,\n onEntered: this.handleExited\n }));\n };\n\n return ReplaceTransition;\n}(_react.default.Component);\n\nReplaceTransition.propTypes = process.env.NODE_ENV !== \"production\" ? {\n in: _propTypes.default.bool.isRequired,\n children: function children(props, propName) {\n if (_react.default.Children.count(props[propName]) !== 2) return new Error(\"\\\"\" + propName + \"\\\" must be exactly two transition components.\");\n return null;\n }\n} : {};\nvar _default = ReplaceTransition;\nexports.default = _default;\nmodule.exports = exports[\"default\"];\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5)))\n\n/***/ }),\n/* 1569 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.getChildMapping = getChildMapping;\nexports.mergeChildMappings = mergeChildMappings;\nexports.getInitialChildMapping = getInitialChildMapping;\nexports.getNextChildMapping = getNextChildMapping;\n\nvar _react = __webpack_require__(0);\n\n/**\n * Given `this.props.children`, return an object mapping key to child.\n *\n * @param {*} children `this.props.children`\n * @return {object} Mapping of key to child\n */\nfunction getChildMapping(children, mapFn) {\n var mapper = function mapper(child) {\n return mapFn && (0, _react.isValidElement)(child) ? mapFn(child) : child;\n };\n\n var result = Object.create(null);\n if (children) _react.Children.map(children, function (c) {\n return c;\n }).forEach(function (child) {\n // run the map function here instead so that the key is the computed one\n result[child.key] = mapper(child);\n });\n return result;\n}\n/**\n * When you're adding or removing children some may be added or removed in the\n * same render pass. We want to show *both* since we want to simultaneously\n * animate elements in and out. This function takes a previous set of keys\n * and a new set of keys and merges them with its best guess of the correct\n * ordering. In the future we may expose some of the utilities in\n * ReactMultiChild to make this easy, but for now React itself does not\n * directly have this concept of the union of prevChildren and nextChildren\n * so we implement it here.\n *\n * @param {object} prev prev children as returned from\n * `ReactTransitionChildMapping.getChildMapping()`.\n * @param {object} next next children as returned from\n * `ReactTransitionChildMapping.getChildMapping()`.\n * @return {object} a key set that contains all keys in `prev` and all keys\n * in `next` in a reasonable order.\n */\n\n\nfunction mergeChildMappings(prev, next) {\n prev = prev || {};\n next = next || {};\n\n function getValueForKey(key) {\n return key in next ? next[key] : prev[key];\n } // For each key of `next`, the list of keys to insert before that key in\n // the combined list\n\n\n var nextKeysPending = Object.create(null);\n var pendingKeys = [];\n\n for (var prevKey in prev) {\n if (prevKey in next) {\n if (pendingKeys.length) {\n nextKeysPending[prevKey] = pendingKeys;\n pendingKeys = [];\n }\n } else {\n pendingKeys.push(prevKey);\n }\n }\n\n var i;\n var childMapping = {};\n\n for (var nextKey in next) {\n if (nextKeysPending[nextKey]) {\n for (i = 0; i < nextKeysPending[nextKey].length; i++) {\n var pendingNextKey = nextKeysPending[nextKey][i];\n childMapping[nextKeysPending[nextKey][i]] = getValueForKey(pendingNextKey);\n }\n }\n\n childMapping[nextKey] = getValueForKey(nextKey);\n } // Finally, add the keys which didn't appear before any key in `next`\n\n\n for (i = 0; i < pendingKeys.length; i++) {\n childMapping[pendingKeys[i]] = getValueForKey(pendingKeys[i]);\n }\n\n return childMapping;\n}\n\nfunction getProp(child, prop, props) {\n return props[prop] != null ? props[prop] : child.props[prop];\n}\n\nfunction getInitialChildMapping(props, onExited) {\n return getChildMapping(props.children, function (child) {\n return (0, _react.cloneElement)(child, {\n onExited: onExited.bind(null, child),\n in: true,\n appear: getProp(child, 'appear', props),\n enter: getProp(child, 'enter', props),\n exit: getProp(child, 'exit', props)\n });\n });\n}\n\nfunction getNextChildMapping(nextProps, prevChildMapping, onExited) {\n var nextChildMapping = getChildMapping(nextProps.children);\n var children = mergeChildMappings(prevChildMapping, nextChildMapping);\n Object.keys(children).forEach(function (key) {\n var child = children[key];\n if (!(0, _react.isValidElement)(child)) return;\n var hasPrev = key in prevChildMapping;\n var hasNext = key in nextChildMapping;\n var prevChild = prevChildMapping[key];\n var isLeaving = (0, _react.isValidElement)(prevChild) && !prevChild.props.in; // item is new (entering)\n\n if (hasNext && (!hasPrev || isLeaving)) {\n // console.log('entering', key)\n children[key] = (0, _react.cloneElement)(child, {\n onExited: onExited.bind(null, child),\n in: true,\n exit: getProp(child, 'exit', nextProps),\n enter: getProp(child, 'enter', nextProps)\n });\n } else if (!hasNext && hasPrev && !isLeaving) {\n // item is old (exiting)\n // console.log('leaving', key)\n children[key] = (0, _react.cloneElement)(child, {\n in: false\n });\n } else if (hasNext && hasPrev && (0, _react.isValidElement)(prevChild)) {\n // item hasn't changed transition states\n // copy over the last transition props;\n // console.log('unchanged', key)\n children[key] = (0, _react.cloneElement)(child, {\n onExited: onExited.bind(null, child),\n in: prevChild.props.in,\n exit: getProp(child, 'exit', nextProps),\n enter: getProp(child, 'enter', nextProps)\n });\n }\n });\n return children;\n}\n\n/***/ }),\n/* 1570 */\n/***/ (function(module, exports, __webpack_require__) {\n\n__webpack_require__(1571);\nmodule.exports = __webpack_require__(1572);\n\n\n/***/ }),\n/* 1571 */\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n/* 1572 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _TreeSelect = __webpack_require__(1573);\n\nvar _TreeSelect2 = _interopRequireDefault(_TreeSelect);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nexports[\"default\"] = _TreeSelect2[\"default\"];\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1573 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _rcTreeSelect = __webpack_require__(1574);\n\nvar _rcTreeSelect2 = _interopRequireDefault(_rcTreeSelect);\n\nvar _beeIcon = __webpack_require__(13);\n\nvar _beeIcon2 = _interopRequireDefault(_beeIcon);\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _warning = __webpack_require__(1600);\n\nvar _warning2 = _interopRequireDefault(_warning);\n\nvar _omit = __webpack_require__(31);\n\nvar _omit2 = _interopRequireDefault(_omit);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**\n * This source code is quoted from rc-tree-select.\n * homepage: https://github.com/react-component/tree-select\n */\n\n\nvar defaultProps = {\n prefixCls: 'u-select',\n transitionName: 'slide-up',\n choiceTransitionName: 'zoom',\n showSearch: false,\n notFoundContent: \"无匹配结果\"\n};\nvar propTypes = {\n getPopupContainer: _propTypes2[\"default\"].func\n};\n\nvar TreeSelect = function (_Component) {\n _inherits(TreeSelect, _Component);\n\n function TreeSelect(props) {\n _classCallCheck(this, TreeSelect);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props));\n\n _this.saveTreeSelect = function (node) {\n _this.rcTreeSelect = node;\n };\n\n _this.renderSwitcherIcon = function (prefixCls, _ref) {\n var isLeaf = _ref.isLeaf,\n loading = _ref.loading;\n\n if (loading) {\n return _react2[\"default\"].createElement(_beeIcon2[\"default\"], { type: 'loading', className: prefixCls + '-switcher-loading-icon' });\n }\n if (isLeaf) {\n return null;\n }\n return _react2[\"default\"].createElement(_beeIcon2[\"default\"], { type: 'uf-triangle-down', className: prefixCls + '-switcher-icon' });\n };\n\n (0, _warning2[\"default\"])(props.multiple !== false || !props.treeCheckable, 'TreeSelect', '`multiple` will alway be `true` when `treeCheckable` is true');\n return _this;\n }\n\n TreeSelect.prototype.focus = function focus() {\n this.rcTreeSelect.focus();\n };\n\n TreeSelect.prototype.blur = function blur() {\n this.rcTreeSelect.blur();\n };\n\n TreeSelect.prototype.render = function render() {\n var _classNames;\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n className = _props.className,\n size = _props.size,\n notFoundContent = _props.notFoundContent,\n dropdownStyle = _props.dropdownStyle,\n dropdownClassName = _props.dropdownClassName,\n suffixIcon = _props.suffixIcon,\n getPopupContainer = _props.getPopupContainer,\n restProps = _objectWithoutProperties(_props, ['prefixCls', 'className', 'size', 'notFoundContent', 'dropdownStyle', 'dropdownClassName', 'suffixIcon', 'getPopupContainer']);\n\n var rest = (0, _omit2[\"default\"])(restProps, ['inputIcon', 'removeIcon', 'clearIcon', 'switcherIcon']);\n\n var cls = (0, _classnames2[\"default\"])((_classNames = {}, _defineProperty(_classNames, prefixCls + '-lg', size === 'large'), _defineProperty(_classNames, prefixCls + '-sm', size === 'small'), _classNames), className);\n\n // showSearch: single - false, multiple - true\n var showSearch = restProps.showSearch;\n\n if (!('showSearch' in restProps)) {\n showSearch = !!(restProps.multiple || restProps.treeCheckable);\n }\n\n var checkable = rest.treeCheckable;\n if (checkable) {\n checkable = _react2[\"default\"].createElement('span', { className: prefixCls + '-tree-checkbox-inner' });\n }\n\n var inputIcon = suffixIcon && (_react2[\"default\"].isValidElement(suffixIcon) ? _react2[\"default\"].cloneElement(suffixIcon) : suffixIcon) || _react2[\"default\"].createElement(_beeIcon2[\"default\"], { type: 'uf-treearrow-down', className: prefixCls + '-arrow-icon' });\n\n var removeIcon = _react2[\"default\"].createElement(_beeIcon2[\"default\"], { type: 'uf-close', className: prefixCls + '-remove-icon' });\n\n var clearIcon = _react2[\"default\"].createElement(_beeIcon2[\"default\"], { type: 'uf-close-c', className: prefixCls + '-clear-icon' });\n\n return _react2[\"default\"].createElement(_rcTreeSelect2[\"default\"]\n // switcherIcon={(nodeProps) =>\n // this.renderSwitcherIcon(prefixCls, nodeProps)\n // }\n , _extends({ inputIcon: inputIcon,\n removeIcon: removeIcon,\n clearIcon: clearIcon\n }, restProps, {\n showSearch: showSearch,\n getPopupContainer: getPopupContainer,\n dropdownClassName: (0, _classnames2[\"default\"])(dropdownClassName, prefixCls + '-dropdown'),\n prefixCls: prefixCls,\n className: cls,\n dropdownStyle: _extends({ maxHeight: '100vh', overflow: 'auto' }, dropdownStyle),\n notFoundContent: notFoundContent,\n treeCheckable: checkable,\n ref: this.saveTreeSelect,\n searchPlaceholder: '\\u8BF7\\u641C\\u7D22'\n }));\n };\n\n return TreeSelect;\n}(_react.Component);\n\nTreeSelect.TreeNode = _rcTreeSelect.TreeNode;\nTreeSelect.SHOW_ALL = _rcTreeSelect.SHOW_ALL;\nTreeSelect.SHOW_PARENT = _rcTreeSelect.SHOW_PARENT;\nTreeSelect.SHOW_CHILD = _rcTreeSelect.SHOW_CHILD;\n;\nTreeSelect.propTypes = propTypes;\nTreeSelect.defaultProps = defaultProps;\nexports[\"default\"] = TreeSelect;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1574 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"TreeNode\", function() { return TreeNode; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Select__ = __webpack_require__(1575);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__SelectNode__ = __webpack_require__(525);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__strategies__ = __webpack_require__(201);\n/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, \"SHOW_ALL\", function() { return __WEBPACK_IMPORTED_MODULE_2__strategies__[\"a\"]; });\n/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, \"SHOW_CHILD\", function() { return __WEBPACK_IMPORTED_MODULE_2__strategies__[\"b\"]; });\n/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, \"SHOW_PARENT\", function() { return __WEBPACK_IMPORTED_MODULE_2__strategies__[\"c\"]; });\n\n\n\nvar TreeNode = __WEBPACK_IMPORTED_MODULE_1__SelectNode__[\"a\" /* default */];\n/* harmony default export */ __webpack_exports__[\"default\"] = (__WEBPACK_IMPORTED_MODULE_0__Select__[\"a\" /* default */]);\n\n/***/ }),\n/* 1575 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom__ = __webpack_require__(3);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_dom__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_prop_types__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_lifecycles_compat__ = __webpack_require__(12);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_util_es_KeyCode__ = __webpack_require__(43);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_shallowequal__ = __webpack_require__(73);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_shallowequal___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_shallowequal__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_raf__ = __webpack_require__(36);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_raf___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_raf__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_dom_scroll_into_view__ = __webpack_require__(44);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_dom_scroll_into_view___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_dom_scroll_into_view__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__SelectTrigger__ = __webpack_require__(1576);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__Base_BaseSelector__ = __webpack_require__(202);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__Base_BasePopup__ = __webpack_require__(203);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__Selector_SingleSelector__ = __webpack_require__(1592);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__Selector_MultipleSelector__ = __webpack_require__(1593);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__Popup_SinglePopup__ = __webpack_require__(1598);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__Popup_MultiplePopup__ = __webpack_require__(1599);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__strategies__ = __webpack_require__(201);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__util__ = __webpack_require__(34);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__propTypes__ = __webpack_require__(524);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__SelectNode__ = __webpack_require__(525);\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance\"); }\n\nfunction _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (typeof call === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n/**\n * ARIA: https://www.w3.org/TR/wai-aria/#combobox\n * Sample 1: https://www.w3.org/TR/2017/NOTE-wai-aria-practices-1.1-20171214/examples/combobox/aria1.1pattern/listbox-combo.html\n * Sample 2: https://www.w3.org/blog/wai-components-gallery/widget/combobox-with-aria-autocompleteinline/\n *\n * Tab logic:\n * Popup is close\n * 1. Focus input (mark component as focused)\n * 2. Press enter to show the popup\n * 3. If popup has input, focus it\n *\n * Popup is open\n * 1. press tab to close the popup\n * 2. Focus back to the selection input box\n * 3. Let the native tab going on\n *\n * TreeSelect use 2 design type.\n * In single mode, we should focus on the `span`\n * In multiple mode, we should focus on the `input`\n */\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar Select =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inherits(Select, _React$Component);\n\n function Select(_props) {\n var _this;\n\n _classCallCheck(this, Select);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(Select).call(this, _props));\n\n _defineProperty(_assertThisInitialized(_this), \"onSelectorFocus\", function () {\n _this.setState({\n focused: true\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onSelectorBlur\", function () {\n _this.setState({\n focused: false\n }); // TODO: Close when Popup is also not focused\n // this.setState({ open: false });\n\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onComponentKeyDown\", function (event) {\n var open = _this.state.open;\n var keyCode = event.keyCode;\n\n if (!open) {\n if ([__WEBPACK_IMPORTED_MODULE_4_rc_util_es_KeyCode__[\"a\" /* default */].ENTER, __WEBPACK_IMPORTED_MODULE_4_rc_util_es_KeyCode__[\"a\" /* default */].DOWN].indexOf(keyCode) !== -1) {\n _this.setOpenState(true);\n }\n } else if (__WEBPACK_IMPORTED_MODULE_4_rc_util_es_KeyCode__[\"a\" /* default */].ESC === keyCode) {\n _this.setOpenState(false);\n } else if ([__WEBPACK_IMPORTED_MODULE_4_rc_util_es_KeyCode__[\"a\" /* default */].UP, __WEBPACK_IMPORTED_MODULE_4_rc_util_es_KeyCode__[\"a\" /* default */].DOWN, __WEBPACK_IMPORTED_MODULE_4_rc_util_es_KeyCode__[\"a\" /* default */].LEFT, __WEBPACK_IMPORTED_MODULE_4_rc_util_es_KeyCode__[\"a\" /* default */].RIGHT].indexOf(keyCode) !== -1) {\n // TODO: Handle `open` state\n event.stopPropagation();\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onDeselect\", function (wrappedValue, node, nodeEventInfo) {\n var onDeselect = _this.props.onDeselect;\n if (!onDeselect) return;\n onDeselect(wrappedValue, node, nodeEventInfo);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onSelectorClear\", function (event) {\n var disabled = _this.props.disabled;\n if (disabled) return;\n\n _this.triggerChange([], []);\n\n if (!_this.isSearchValueControlled()) {\n _this.setUncontrolledState({\n searchValue: '',\n filteredTreeNodes: null\n });\n }\n\n event.stopPropagation();\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onMultipleSelectorRemove\", function (event, removeValue) {\n event.stopPropagation();\n var _this$state = _this.state,\n valueList = _this$state.valueList,\n missValueList = _this$state.missValueList,\n valueEntities = _this$state.valueEntities;\n var _this$props = _this.props,\n treeCheckable = _this$props.treeCheckable,\n treeCheckStrictly = _this$props.treeCheckStrictly,\n treeNodeLabelProp = _this$props.treeNodeLabelProp,\n disabled = _this$props.disabled;\n if (disabled) return; // Find trigger entity\n\n var triggerEntity = valueEntities[removeValue]; // Clean up value\n\n var newValueList = valueList;\n\n if (triggerEntity) {\n // If value is in tree\n if (treeCheckable && !treeCheckStrictly) {\n newValueList = valueList.filter(function (_ref) {\n var value = _ref.value;\n var entity = valueEntities[value];\n return !Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"p\" /* isPosRelated */])(entity.pos, triggerEntity.pos);\n });\n } else {\n newValueList = valueList.filter(function (_ref2) {\n var value = _ref2.value;\n return value !== removeValue;\n });\n }\n }\n\n var triggerNode = triggerEntity ? triggerEntity.node : null;\n var extraInfo = {\n triggerValue: removeValue,\n triggerNode: triggerNode\n };\n var deselectInfo = {\n node: triggerNode\n }; // [Legacy] Little hack on this to make same action as `onCheck` event.\n\n if (treeCheckable) {\n var filteredEntityList = newValueList.map(function (_ref3) {\n var value = _ref3.value;\n return valueEntities[value];\n });\n deselectInfo.event = 'check';\n deselectInfo.checked = false;\n deselectInfo.checkedNodes = filteredEntityList.map(function (_ref4) {\n var node = _ref4.node;\n return node;\n });\n deselectInfo.checkedNodesPositions = filteredEntityList.map(function (_ref5) {\n var node = _ref5.node,\n pos = _ref5.pos;\n return {\n node: node,\n pos: pos\n };\n });\n\n if (treeCheckStrictly) {\n extraInfo.allCheckedNodes = deselectInfo.checkedNodes;\n } else {\n // TODO: It's too expansive to get `halfCheckedKeys` in onDeselect. Not pass this.\n extraInfo.allCheckedNodes = Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"i\" /* flatToHierarchy */])(filteredEntityList).map(function (_ref6) {\n var node = _ref6.node;\n return node;\n });\n }\n } else {\n deselectInfo.event = 'select';\n deselectInfo.selected = false;\n deselectInfo.selectedNodes = newValueList.map(function (_ref7) {\n var value = _ref7.value;\n return (valueEntities[value] || {}).node;\n });\n } // Some value user pass prop is not in the tree, we also need clean it\n\n\n var newMissValueList = missValueList.filter(function (_ref8) {\n var value = _ref8.value;\n return value !== removeValue;\n });\n var wrappedValue;\n\n if (_this.isLabelInValue()) {\n wrappedValue = {\n label: triggerNode ? triggerNode.props[treeNodeLabelProp] : null,\n value: removeValue\n };\n } else {\n wrappedValue = removeValue;\n }\n\n _this.onDeselect(wrappedValue, triggerNode, deselectInfo);\n\n _this.triggerChange(newMissValueList, newValueList, extraInfo);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onValueTrigger\", function (isAdd, nodeList, nodeEventInfo, nodeExtraInfo) {\n var node = nodeEventInfo.node;\n var value = node.props.value;\n var _this$state2 = _this.state,\n missValueList = _this$state2.missValueList,\n valueEntities = _this$state2.valueEntities,\n keyEntities = _this$state2.keyEntities,\n searchValue = _this$state2.searchValue;\n var _this$props2 = _this.props,\n disabled = _this$props2.disabled,\n inputValue = _this$props2.inputValue,\n treeNodeLabelProp = _this$props2.treeNodeLabelProp,\n onSelect = _this$props2.onSelect,\n onSearch = _this$props2.onSearch,\n multiple = _this$props2.multiple,\n treeCheckable = _this$props2.treeCheckable,\n treeCheckStrictly = _this$props2.treeCheckStrictly,\n autoClearSearchValue = _this$props2.autoClearSearchValue;\n var label = node.props[treeNodeLabelProp];\n if (disabled) return; // Wrap the return value for user\n\n var wrappedValue;\n\n if (_this.isLabelInValue()) {\n wrappedValue = {\n value: value,\n label: label\n };\n } else {\n wrappedValue = value;\n } // [Legacy] Origin code not trigger `onDeselect` every time. Let's align the behaviour.\n\n\n if (isAdd) {\n if (onSelect) {\n onSelect(wrappedValue, node, nodeEventInfo);\n }\n } else {\n _this.onDeselect(wrappedValue, node, nodeEventInfo);\n } // Get wrapped value list.\n // This is a bit hack cause we use key to match the value.\n\n\n var newValueList = nodeList.map(function (_ref9) {\n var props = _ref9.props;\n return {\n value: props.value,\n label: props[treeNodeLabelProp]\n };\n }); // When is `treeCheckable` and with `searchValue`, `valueList` is not full filled.\n // We need calculate the missing nodes.\n\n if (treeCheckable && !treeCheckStrictly) {\n var keyList = newValueList.map(function (_ref10) {\n var val = _ref10.value;\n return valueEntities[val].key;\n });\n\n if (isAdd) {\n keyList = Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"d\" /* conductCheck */])(keyList, true, keyEntities).checkedKeys;\n } else {\n keyList = Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"d\" /* conductCheck */])([valueEntities[value].key], false, keyEntities, {\n checkedKeys: keyList\n }).checkedKeys;\n }\n\n newValueList = keyList.map(function (key) {\n var props = keyEntities[key].node.props;\n return {\n value: props.value,\n label: props[treeNodeLabelProp]\n };\n });\n } // Clean up `searchValue` when this prop is set\n\n\n if (autoClearSearchValue || inputValue === null) {\n // Clean state `searchValue` if uncontrolled\n if (!_this.isSearchValueControlled() && (multiple || treeCheckable)) {\n _this.setUncontrolledState({\n searchValue: '',\n filteredTreeNodes: null\n });\n } // Trigger onSearch if `searchValue` to be empty.\n // We should also trigger onSearch with empty string here\n // since if user use `treeExpandedKeys`, it need user have the ability to reset it.\n\n\n if (onSearch && searchValue && searchValue.length) {\n onSearch('');\n }\n } // [Legacy] Provide extra info\n\n\n var extraInfo = _objectSpread({}, nodeExtraInfo, {\n triggerValue: value,\n triggerNode: node\n });\n\n _this.triggerChange(missValueList, newValueList, extraInfo);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onTreeNodeSelect\", function (_, nodeEventInfo) {\n var _this$state3 = _this.state,\n valueList = _this$state3.valueList,\n valueEntities = _this$state3.valueEntities;\n var _this$props3 = _this.props,\n treeCheckable = _this$props3.treeCheckable,\n multiple = _this$props3.multiple;\n if (treeCheckable) return;\n\n if (!multiple) {\n _this.setOpenState(false);\n }\n\n var isAdd = nodeEventInfo.selected;\n var selectedValue = nodeEventInfo.node.props.value;\n var newValueList;\n\n if (!multiple) {\n newValueList = [{\n value: selectedValue\n }];\n } else {\n newValueList = valueList.filter(function (_ref11) {\n var value = _ref11.value;\n return value !== selectedValue;\n });\n\n if (isAdd) {\n newValueList.push({\n value: selectedValue\n });\n }\n }\n\n var selectedNodes = newValueList.map(function (_ref12) {\n var value = _ref12.value;\n return valueEntities[value];\n }).filter(function (entity) {\n return entity;\n }).map(function (_ref13) {\n var node = _ref13.node;\n return node;\n });\n\n _this.onValueTrigger(isAdd, selectedNodes, nodeEventInfo, {\n selected: isAdd\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onTreeNodeCheck\", function (_, nodeEventInfo) {\n var _this$state4 = _this.state,\n searchValue = _this$state4.searchValue,\n keyEntities = _this$state4.keyEntities,\n valueEntities = _this$state4.valueEntities,\n valueList = _this$state4.valueList;\n var treeCheckStrictly = _this.props.treeCheckStrictly;\n var checkedNodes = nodeEventInfo.checkedNodes,\n checkedNodesPositions = nodeEventInfo.checkedNodesPositions;\n var isAdd = nodeEventInfo.checked;\n var extraInfo = {\n checked: isAdd\n };\n var checkedNodeList = checkedNodes; // [Legacy] Check event provide `allCheckedNodes`.\n // When `treeCheckStrictly` or internal `searchValue` is set, TreeNode will be unrelated:\n // - Related: Show the top checked nodes and has children prop.\n // - Unrelated: Show all the checked nodes.\n\n if (searchValue) {\n var oriKeyList = valueList.map(function (_ref14) {\n var value = _ref14.value;\n return valueEntities[value];\n }).filter(function (entity) {\n return entity;\n }).map(function (_ref15) {\n var key = _ref15.key;\n return key;\n });\n var keyList;\n\n if (isAdd) {\n keyList = Array.from(new Set([].concat(_toConsumableArray(oriKeyList), _toConsumableArray(checkedNodeList.map(function (_ref16) {\n var value = _ref16.props.value;\n return valueEntities[value].key;\n })))));\n } else {\n keyList = Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"d\" /* conductCheck */])([nodeEventInfo.node.props.eventKey], false, keyEntities, {\n checkedKeys: oriKeyList\n }).checkedKeys;\n }\n\n checkedNodeList = keyList.map(function (key) {\n return keyEntities[key].node;\n }); // Let's follow as not `treeCheckStrictly` format\n\n extraInfo.allCheckedNodes = keyList.map(function (key) {\n return Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"c\" /* cleanEntity */])(keyEntities[key]);\n });\n } else if (treeCheckStrictly) {\n extraInfo.allCheckedNodes = nodeEventInfo.checkedNodes;\n } else {\n extraInfo.allCheckedNodes = Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"i\" /* flatToHierarchy */])(checkedNodesPositions);\n }\n\n _this.onValueTrigger(isAdd, checkedNodeList, nodeEventInfo, extraInfo);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onDropdownVisibleChange\", function (open) {\n var _this$props4 = _this.props,\n multiple = _this$props4.multiple,\n treeCheckable = _this$props4.treeCheckable;\n var searchValue = _this.state.searchValue; // When set open success and single mode,\n // we will reset the input content.\n\n if (open && !multiple && !treeCheckable && searchValue) {\n _this.setUncontrolledState({\n searchValue: '',\n filteredTreeNodes: null\n });\n }\n\n _this.setOpenState(open, true);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onSearchInputChange\", function (_ref17) {\n var value = _ref17.target.value;\n var _this$state5 = _this.state,\n treeNodes = _this$state5.treeNodes,\n valueEntities = _this$state5.valueEntities;\n var _this$props5 = _this.props,\n onSearch = _this$props5.onSearch,\n filterTreeNode = _this$props5.filterTreeNode,\n treeNodeFilterProp = _this$props5.treeNodeFilterProp;\n\n if (onSearch) {\n onSearch(value);\n }\n\n var isSet = false;\n\n if (!_this.isSearchValueControlled()) {\n isSet = _this.setUncontrolledState({\n searchValue: value\n });\n\n _this.setOpenState(true);\n }\n\n if (isSet) {\n // Do the search logic\n var upperSearchValue = String(value).toUpperCase();\n var filterTreeNodeFn = filterTreeNode;\n\n if (filterTreeNode === false) {\n // Don't filter if is false\n filterTreeNodeFn = function filterTreeNodeFn() {\n return true;\n };\n } else if (typeof filterTreeNodeFn !== 'function') {\n // When is not function (true or undefined), use inner filter\n filterTreeNodeFn = function filterTreeNodeFn(_, node) {\n var nodeValue = String(node.props[treeNodeFilterProp]).toUpperCase();\n return nodeValue.indexOf(upperSearchValue) !== -1;\n };\n }\n\n _this.setState({\n filteredTreeNodes: Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"m\" /* getFilterTree */])(treeNodes, value, filterTreeNodeFn, valueEntities, __WEBPACK_IMPORTED_MODULE_18__SelectNode__[\"a\" /* default */])\n });\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onSearchInputKeyDown\", function (event) {\n var _this$state6 = _this.state,\n searchValue = _this$state6.searchValue,\n valueList = _this$state6.valueList;\n var keyCode = event.keyCode;\n\n if (__WEBPACK_IMPORTED_MODULE_4_rc_util_es_KeyCode__[\"a\" /* default */].BACKSPACE === keyCode && _this.isMultiple() && !searchValue && valueList.length) {\n var lastValue = valueList[valueList.length - 1].value;\n\n _this.onMultipleSelectorRemove(event, lastValue);\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onChoiceAnimationLeave\", function () {\n __WEBPACK_IMPORTED_MODULE_6_raf___default()(function () {\n _this.forcePopupAlign();\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"setPopupRef\", function (popup) {\n _this.popup = popup;\n });\n\n _defineProperty(_assertThisInitialized(_this), \"setUncontrolledState\", function (state) {\n var needSync = false;\n var newState = {};\n Object.keys(state).forEach(function (name) {\n if (name in _this.props) return;\n needSync = true;\n newState[name] = state[name];\n });\n\n if (needSync) {\n _this.setState(newState);\n }\n\n return needSync;\n });\n\n _defineProperty(_assertThisInitialized(_this), \"setOpenState\", function (open) {\n var byTrigger = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var onDropdownVisibleChange = _this.props.onDropdownVisibleChange;\n\n if (onDropdownVisibleChange && onDropdownVisibleChange(open, {\n documentClickClose: !open && byTrigger\n }) === false) {\n return;\n }\n\n _this.setUncontrolledState({\n open: open\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"isMultiple\", function () {\n var _this$props6 = _this.props,\n multiple = _this$props6.multiple,\n treeCheckable = _this$props6.treeCheckable;\n return !!(multiple || treeCheckable);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"isLabelInValue\", function () {\n return Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"o\" /* isLabelInValue */])(_this.props);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"isSearchValueControlled\", function () {\n var inputValue = _this.props.inputValue;\n if ('searchValue' in _this.props) return true;\n return 'inputValue' in _this.props && inputValue !== null;\n });\n\n _defineProperty(_assertThisInitialized(_this), \"forcePopupAlign\", function () {\n var $trigger = _this.selectTriggerRef.current;\n\n if ($trigger) {\n $trigger.forcePopupAlign();\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"delayForcePopupAlign\", function () {\n // Wait 2 frame to avoid dom update & dom algin in the same time\n // https://github.com/ant-design/ant-design/issues/12031\n __WEBPACK_IMPORTED_MODULE_6_raf___default()(function () {\n __WEBPACK_IMPORTED_MODULE_6_raf___default()(_this.forcePopupAlign);\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"triggerChange\", function (missValueList, valueList) {\n var extraInfo = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var _this$state7 = _this.state,\n valueEntities = _this$state7.valueEntities,\n searchValue = _this$state7.searchValue,\n prevSelectorValueList = _this$state7.selectorValueList;\n var _this$props7 = _this.props,\n onChange = _this$props7.onChange,\n disabled = _this$props7.disabled,\n treeCheckable = _this$props7.treeCheckable,\n treeCheckStrictly = _this$props7.treeCheckStrictly;\n if (disabled) return; // Trigger\n\n var extra = _objectSpread({\n // [Legacy] Always return as array contains label & value\n preValue: prevSelectorValueList.map(function (_ref18) {\n var label = _ref18.label,\n value = _ref18.value;\n return {\n label: label,\n value: value\n };\n })\n }, extraInfo); // Format value by `treeCheckStrictly`\n\n\n var selectorValueList = Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"k\" /* formatSelectorValue */])(valueList, _this.props, valueEntities);\n\n if (!('value' in _this.props)) {\n var newState = {\n missValueList: missValueList,\n valueList: valueList,\n selectorValueList: selectorValueList\n };\n\n if (searchValue && treeCheckable && !treeCheckStrictly) {\n newState.searchHalfCheckedKeys = Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"n\" /* getHalfCheckedKeys */])(valueList, valueEntities);\n }\n\n _this.setState(newState);\n } // Only do the logic when `onChange` function provided\n\n\n if (onChange) {\n var connectValueList; // Get value by mode\n\n if (_this.isMultiple()) {\n connectValueList = [].concat(_toConsumableArray(missValueList), _toConsumableArray(selectorValueList));\n } else {\n connectValueList = selectorValueList.slice(0, 1);\n }\n\n var labelList = null;\n var returnValue;\n\n if (_this.isLabelInValue()) {\n returnValue = connectValueList.map(function (_ref19) {\n var label = _ref19.label,\n value = _ref19.value;\n return {\n label: label,\n value: value\n };\n });\n } else {\n labelList = [];\n returnValue = connectValueList.map(function (_ref20) {\n var label = _ref20.label,\n value = _ref20.value;\n labelList.push(label);\n return value;\n });\n }\n\n if (!_this.isMultiple()) {\n returnValue = returnValue[0];\n }\n\n onChange(returnValue, labelList, extra);\n }\n });\n\n var prefixAria = _props.prefixAria,\n defaultOpen = _props.defaultOpen,\n _open = _props.open;\n _this.state = {\n open: _open || defaultOpen,\n valueList: [],\n searchHalfCheckedKeys: [],\n missValueList: [],\n // Contains the value not in the tree\n selectorValueList: [],\n // Used for multiple selector\n valueEntities: {},\n keyEntities: {},\n searchValue: '',\n init: true\n };\n _this.selectorRef = Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"g\" /* createRef */])();\n _this.selectTriggerRef = Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"g\" /* createRef */])(); // ARIA need `aria-controls` props mapping\n // Since this need user input. Let's generate ourselves\n\n _this.ariaId = Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"l\" /* generateAriaId */])(\"\".concat(prefixAria, \"-list\"));\n return _this;\n }\n\n _createClass(Select, [{\n key: \"getChildContext\",\n value: function getChildContext() {\n return {\n rcTreeSelect: {\n onSelectorFocus: this.onSelectorFocus,\n onSelectorBlur: this.onSelectorBlur,\n onSelectorKeyDown: this.onComponentKeyDown,\n onSelectorClear: this.onSelectorClear,\n onMultipleSelectorRemove: this.onMultipleSelectorRemove,\n onTreeNodeSelect: this.onTreeNodeSelect,\n onTreeNodeCheck: this.onTreeNodeCheck,\n onPopupKeyDown: this.onComponentKeyDown,\n onSearchInputChange: this.onSearchInputChange,\n onSearchInputKeyDown: this.onSearchInputKeyDown\n }\n };\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n var _this$props8 = this.props,\n autoFocus = _this$props8.autoFocus,\n disabled = _this$props8.disabled;\n\n if (autoFocus && !disabled) {\n this.focus();\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(_, prevState) {\n var _this2 = this;\n\n var prefixCls = this.props.prefixCls;\n var _this$state8 = this.state,\n valueList = _this$state8.valueList,\n open = _this$state8.open,\n selectorValueList = _this$state8.selectorValueList,\n valueEntities = _this$state8.valueEntities;\n var isMultiple = this.isMultiple();\n\n if (prevState.valueList !== valueList) {\n this.forcePopupAlign();\n } // Scroll to value position, only need sync on single mode\n\n\n if (!isMultiple && selectorValueList.length && !prevState.open && open && this.popup) {\n var value = selectorValueList[0].value;\n\n var _this$popup$getTree = this.popup.getTree(),\n domTreeNodes = _this$popup$getTree.domTreeNodes;\n\n var _ref21 = valueEntities[value] || {},\n key = _ref21.key;\n\n var treeNode = domTreeNodes[key];\n\n if (treeNode) {\n var domNode = Object(__WEBPACK_IMPORTED_MODULE_1_react_dom__[\"findDOMNode\"])(treeNode);\n __WEBPACK_IMPORTED_MODULE_6_raf___default()(function () {\n var popupNode = Object(__WEBPACK_IMPORTED_MODULE_1_react_dom__[\"findDOMNode\"])(_this2.popup);\n var triggerContainer = Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"h\" /* findPopupContainer */])(popupNode, \"\".concat(prefixCls, \"-dropdown\"));\n var searchNode = _this2.popup.searchRef.current;\n\n if (domNode && triggerContainer && searchNode) {\n __WEBPACK_IMPORTED_MODULE_7_dom_scroll_into_view___default()(domNode, triggerContainer, {\n onlyScrollIfNeeded: true,\n offsetTop: searchNode.offsetHeight\n });\n }\n });\n }\n }\n } // ==================== Selector ====================\n\n }, {\n key: \"focus\",\n value: function focus() {\n this.selectorRef.current.focus();\n }\n }, {\n key: \"blur\",\n value: function blur() {\n this.selectorRef.current.blur();\n } // ===================== Render =====================\n\n }, {\n key: \"render\",\n value: function render() {\n var _this$state9 = this.state,\n valueList = _this$state9.valueList,\n missValueList = _this$state9.missValueList,\n selectorValueList = _this$state9.selectorValueList,\n searchHalfCheckedKeys = _this$state9.searchHalfCheckedKeys,\n valueEntities = _this$state9.valueEntities,\n keyEntities = _this$state9.keyEntities,\n searchValue = _this$state9.searchValue,\n open = _this$state9.open,\n focused = _this$state9.focused,\n treeNodes = _this$state9.treeNodes,\n filteredTreeNodes = _this$state9.filteredTreeNodes;\n var _this$props9 = this.props,\n prefixCls = _this$props9.prefixCls,\n treeExpandedKeys = _this$props9.treeExpandedKeys,\n onTreeExpand = _this$props9.onTreeExpand;\n var isMultiple = this.isMultiple();\n\n var passProps = _objectSpread({}, this.props, {\n isMultiple: isMultiple,\n valueList: valueList,\n searchHalfCheckedKeys: searchHalfCheckedKeys,\n selectorValueList: [].concat(_toConsumableArray(missValueList), _toConsumableArray(selectorValueList)),\n valueEntities: valueEntities,\n keyEntities: keyEntities,\n searchValue: searchValue,\n upperSearchValue: (searchValue || '').toUpperCase(),\n // Perf save\n open: open,\n focused: focused,\n onChoiceAnimationLeave: this.onChoiceAnimationLeave,\n dropdownPrefixCls: \"\".concat(prefixCls, \"-dropdown\"),\n ariaId: this.ariaId\n });\n\n var Popup = isMultiple ? __WEBPACK_IMPORTED_MODULE_14__Popup_MultiplePopup__[\"a\" /* default */] : __WEBPACK_IMPORTED_MODULE_13__Popup_SinglePopup__[\"a\" /* default */];\n var $popup = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Popup, _extends({\n ref: this.setPopupRef\n }, passProps, {\n onTreeExpanded: this.delayForcePopupAlign,\n treeNodes: treeNodes,\n filteredTreeNodes: filteredTreeNodes // Tree expanded control\n ,\n treeExpandedKeys: treeExpandedKeys,\n onTreeExpand: onTreeExpand\n }));\n var Selector = isMultiple ? __WEBPACK_IMPORTED_MODULE_12__Selector_MultipleSelector__[\"a\" /* default */] : __WEBPACK_IMPORTED_MODULE_11__Selector_SingleSelector__[\"a\" /* default */];\n var $selector = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Selector, _extends({}, passProps, {\n ref: this.selectorRef\n }));\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__SelectTrigger__[\"a\" /* default */], _extends({}, passProps, {\n ref: this.selectTriggerRef,\n popupElement: $popup,\n onKeyDown: this.onKeyDown,\n onDropdownVisibleChange: this.onDropdownVisibleChange\n }), $selector);\n }\n }], [{\n key: \"getDerivedStateFromProps\",\n value: function getDerivedStateFromProps(nextProps, prevState) {\n var _prevState$prevProps = prevState.prevProps,\n prevProps = _prevState$prevProps === void 0 ? {} : _prevState$prevProps;\n var treeCheckable = nextProps.treeCheckable,\n treeCheckStrictly = nextProps.treeCheckStrictly,\n filterTreeNode = nextProps.filterTreeNode,\n treeNodeFilterProp = nextProps.treeNodeFilterProp,\n treeDataSimpleMode = nextProps.treeDataSimpleMode;\n var newState = {\n prevProps: nextProps,\n init: false\n }; // Process the state when props updated\n\n function processState(propName, updater) {\n if (prevProps[propName] !== nextProps[propName]) {\n updater(nextProps[propName], prevProps[propName]);\n return true;\n }\n\n return false;\n }\n\n var valueRefresh = false; // Open\n\n processState('open', function (propValue) {\n newState.open = propValue;\n }); // Tree Nodes\n\n var treeNodes;\n var treeDataChanged = false;\n var treeDataModeChanged = false;\n processState('treeData', function (propValue) {\n treeNodes = Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"e\" /* convertDataToTree */])(propValue);\n treeDataChanged = true;\n });\n processState('treeDataSimpleMode', function (propValue, prevValue) {\n if (!propValue) return;\n var prev = !prevValue || prevValue === true ? {} : prevValue; // Shallow equal to avoid dynamic prop object\n\n if (!__WEBPACK_IMPORTED_MODULE_5_shallowequal___default()(propValue, prev)) {\n treeDataModeChanged = true;\n }\n }); // Parse by `treeDataSimpleMode`\n\n if (treeDataSimpleMode && (treeDataChanged || treeDataModeChanged)) {\n var simpleMapper = _objectSpread({\n id: 'id',\n pId: 'pId',\n rootPId: null\n }, treeDataSimpleMode !== true ? treeDataSimpleMode : {});\n\n treeNodes = Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"e\" /* convertDataToTree */])(Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"q\" /* parseSimpleTreeData */])(nextProps.treeData, simpleMapper));\n } // If `treeData` not provide, use children TreeNodes\n\n\n if (!nextProps.treeData) {\n processState('children', function (propValue) {\n treeNodes = Array.isArray(propValue) ? propValue : [propValue];\n });\n } // Convert `treeData` to entities\n\n\n if (treeNodes) {\n var entitiesMap = Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"f\" /* convertTreeToEntities */])(treeNodes);\n newState.treeNodes = treeNodes;\n newState.posEntities = entitiesMap.posEntities;\n newState.valueEntities = entitiesMap.valueEntities;\n newState.keyEntities = entitiesMap.keyEntities;\n valueRefresh = true;\n } // Value List\n\n\n if (prevState.init) {\n processState('defaultValue', function (propValue) {\n newState.valueList = Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"j\" /* formatInternalValue */])(propValue, nextProps);\n valueRefresh = true;\n });\n }\n\n processState('value', function (propValue) {\n newState.valueList = Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"j\" /* formatInternalValue */])(propValue, nextProps);\n valueRefresh = true;\n }); // Selector Value List\n\n if (valueRefresh) {\n // Find out that value not exist in the tree\n var missValueList = [];\n var filteredValueList = [];\n var keyList = []; // Get latest value list\n\n var latestValueList = newState.valueList;\n\n if (!latestValueList) {\n // Also need add prev missValueList to avoid new treeNodes contains the value\n latestValueList = [].concat(_toConsumableArray(prevState.valueList), _toConsumableArray(prevState.missValueList));\n } // Get key by value\n\n\n var valueLabels = {};\n latestValueList.forEach(function (wrapperValue) {\n var value = wrapperValue.value,\n label = wrapperValue.label;\n var entity = (newState.valueEntities || prevState.valueEntities)[value];\n valueLabels[value] = label;\n\n if (entity) {\n keyList.push(entity.key);\n filteredValueList.push(wrapperValue);\n return;\n } // If not match, it may caused by ajax load. We need keep this\n\n\n missValueList.push(wrapperValue);\n }); // We need calculate the value when tree is checked tree\n\n if (treeCheckable && !treeCheckStrictly) {\n // Calculate the keys need to be checked\n var _conductCheck = Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"d\" /* conductCheck */])(keyList, true, newState.keyEntities || prevState.keyEntities),\n checkedKeys = _conductCheck.checkedKeys; // Format value list again for internal usage\n\n\n newState.valueList = checkedKeys.map(function (key) {\n var val = (newState.keyEntities || prevState.keyEntities)[key].value;\n var wrappedValue = {\n value: val\n };\n\n if (valueLabels[val] !== undefined) {\n wrappedValue.label = valueLabels[val];\n }\n\n return wrappedValue;\n });\n } else {\n newState.valueList = filteredValueList;\n } // Fill the missValueList, we still need display in the selector\n\n\n newState.missValueList = missValueList; // Calculate the value list for `Selector` usage\n\n newState.selectorValueList = Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"k\" /* formatSelectorValue */])(newState.valueList, nextProps, newState.valueEntities || prevState.valueEntities);\n } // [Legacy] To align with `Select` component,\n // We use `searchValue` instead of `inputValue` but still keep the api\n // `inputValue` support `null` to work as `autoClearSearchValue`\n\n\n processState('inputValue', function (propValue) {\n if (propValue !== null) {\n newState.searchValue = propValue;\n }\n }); // Search value\n\n processState('searchValue', function (propValue) {\n newState.searchValue = propValue;\n }); // Do the search logic\n\n if (newState.searchValue !== undefined || prevState.searchValue && treeNodes) {\n var searchValue = newState.searchValue !== undefined ? newState.searchValue : prevState.searchValue;\n var upperSearchValue = String(searchValue).toUpperCase();\n var filterTreeNodeFn = filterTreeNode;\n\n if (filterTreeNode === false) {\n // Don't filter if is false\n filterTreeNodeFn = function filterTreeNodeFn() {\n return true;\n };\n } else if (typeof filterTreeNodeFn !== 'function') {\n // When is not function (true or undefined), use inner filter\n filterTreeNodeFn = function filterTreeNodeFn(_, node) {\n var nodeValue = String(node.props[treeNodeFilterProp]).toUpperCase();\n return nodeValue.indexOf(upperSearchValue) !== -1;\n };\n }\n\n newState.filteredTreeNodes = Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"m\" /* getFilterTree */])(newState.treeNodes || prevState.treeNodes, searchValue, filterTreeNodeFn, newState.valueEntities || prevState.valueEntities, __WEBPACK_IMPORTED_MODULE_18__SelectNode__[\"a\" /* default */]);\n } // We should re-calculate the halfCheckedKeys when in search mode\n\n\n if (valueRefresh && treeCheckable && !treeCheckStrictly && (newState.searchValue || prevState.searchValue)) {\n newState.searchHalfCheckedKeys = Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"n\" /* getHalfCheckedKeys */])(newState.valueList, newState.valueEntities || prevState.valueEntities);\n } // Checked Strategy\n\n\n processState('showCheckedStrategy', function () {\n newState.selectorValueList = newState.selectorValueList || Object(__WEBPACK_IMPORTED_MODULE_16__util__[\"k\" /* formatSelectorValue */])(newState.valueList || prevState.valueList, nextProps, newState.valueEntities || prevState.valueEntities);\n });\n return newState;\n }\n }]);\n\n return Select;\n}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);\n\n_defineProperty(Select, \"propTypes\", {\n prefixCls: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string,\n prefixAria: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string,\n multiple: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,\n showArrow: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,\n open: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,\n value: __WEBPACK_IMPORTED_MODULE_17__propTypes__[\"a\" /* valueProp */],\n autoFocus: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,\n defaultOpen: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,\n defaultValue: __WEBPACK_IMPORTED_MODULE_17__propTypes__[\"a\" /* valueProp */],\n showSearch: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,\n placeholder: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.node,\n inputValue: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string,\n // [Legacy] Deprecated. Use `searchValue` instead.\n searchValue: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string,\n autoClearSearchValue: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,\n searchPlaceholder: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.node,\n // [Legacy] Confuse with placeholder\n disabled: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,\n children: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.node,\n labelInValue: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,\n maxTagCount: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number,\n maxTagPlaceholder: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.node, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func]),\n maxTagTextLength: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number,\n showCheckedStrategy: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOf([__WEBPACK_IMPORTED_MODULE_15__strategies__[\"a\" /* SHOW_ALL */], __WEBPACK_IMPORTED_MODULE_15__strategies__[\"c\" /* SHOW_PARENT */], __WEBPACK_IMPORTED_MODULE_15__strategies__[\"b\" /* SHOW_CHILD */]]),\n dropdownMatchSelectWidth: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,\n treeData: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.array,\n treeDataSimpleMode: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object]),\n treeNodeFilterProp: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string,\n treeNodeLabelProp: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string,\n treeCheckable: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.node]),\n treeCheckStrictly: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,\n treeIcon: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,\n treeLine: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,\n treeDefaultExpandAll: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,\n treeDefaultExpandedKeys: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.array,\n treeExpandedKeys: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.array,\n loadData: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,\n filterTreeNode: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool]),\n notFoundContent: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.node,\n onSearch: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,\n onSelect: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,\n onDeselect: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,\n onChange: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,\n onDropdownVisibleChange: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,\n onTreeExpand: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,\n inputIcon: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.node, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func]),\n clearIcon: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.node, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func]),\n removeIcon: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.node, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func]),\n switcherIcon: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.node, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func])\n});\n\n_defineProperty(Select, \"childContextTypes\", {\n rcTreeSelect: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.shape(_objectSpread({}, __WEBPACK_IMPORTED_MODULE_9__Base_BaseSelector__[\"b\" /* selectorContextTypes */], {}, __WEBPACK_IMPORTED_MODULE_12__Selector_MultipleSelector__[\"b\" /* multipleSelectorContextTypes */], {}, __WEBPACK_IMPORTED_MODULE_10__Base_BasePopup__[\"b\" /* popupContextTypes */], {\n onSearchInputChange: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,\n onSearchInputKeyDown: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func\n }))\n});\n\n_defineProperty(Select, \"defaultProps\", {\n prefixCls: 'rc-tree-select',\n prefixAria: 'rc-tree-select',\n showArrow: true,\n showSearch: true,\n autoClearSearchValue: true,\n showCheckedStrategy: __WEBPACK_IMPORTED_MODULE_15__strategies__[\"b\" /* SHOW_CHILD */],\n // dropdownMatchSelectWidth change the origin design, set to false now\n // ref: https://github.com/react-component/select/blob/4cad95e098a341a09de239ad6981067188842020/src/Select.jsx#L344\n // ref: https://github.com/react-component/select/pull/71\n treeNodeFilterProp: 'value',\n treeNodeLabelProp: 'title',\n treeIcon: false,\n notFoundContent: 'Not Found'\n});\n\nSelect.TreeNode = __WEBPACK_IMPORTED_MODULE_18__SelectNode__[\"a\" /* default */];\nSelect.SHOW_ALL = __WEBPACK_IMPORTED_MODULE_15__strategies__[\"a\" /* SHOW_ALL */];\nSelect.SHOW_PARENT = __WEBPACK_IMPORTED_MODULE_15__strategies__[\"c\" /* SHOW_PARENT */];\nSelect.SHOW_CHILD = __WEBPACK_IMPORTED_MODULE_15__strategies__[\"b\" /* SHOW_CHILD */]; // Let warning show correct component name\n\nSelect.displayName = 'TreeSelect';\nObject(__WEBPACK_IMPORTED_MODULE_3_react_lifecycles_compat__[\"polyfill\"])(Select);\n/* harmony default export */ __webpack_exports__[\"a\"] = (Select);\n\n/***/ }),\n/* 1576 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_lifecycles_compat__ = __webpack_require__(12);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rc_trigger__ = __webpack_require__(1577);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_classnames__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_classnames__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__util__ = __webpack_require__(34);\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (typeof call === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\n\n\n\n\n\nvar BUILT_IN_PLACEMENTS = {\n bottomLeft: {\n points: ['tl', 'bl'],\n offset: [0, 4],\n overflow: {\n adjustX: 0,\n adjustY: 1\n },\n ignoreShake: true\n },\n topLeft: {\n points: ['bl', 'tl'],\n offset: [0, -4],\n overflow: {\n adjustX: 0,\n adjustY: 1\n },\n ignoreShake: true\n }\n};\n\nvar SelectTrigger =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inherits(SelectTrigger, _React$Component);\n\n function SelectTrigger() {\n var _this;\n\n _classCallCheck(this, SelectTrigger);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(SelectTrigger).call(this));\n\n _defineProperty(_assertThisInitialized(_this), \"getDropdownTransitionName\", function () {\n var _this$props = _this.props,\n transitionName = _this$props.transitionName,\n animation = _this$props.animation,\n dropdownPrefixCls = _this$props.dropdownPrefixCls;\n\n if (!transitionName && animation) {\n return \"\".concat(dropdownPrefixCls, \"-\").concat(animation);\n }\n\n return transitionName;\n });\n\n _defineProperty(_assertThisInitialized(_this), \"forcePopupAlign\", function () {\n var $trigger = _this.triggerRef.current;\n\n if ($trigger) {\n $trigger.forcePopupAlign();\n }\n });\n\n _this.triggerRef = Object(__WEBPACK_IMPORTED_MODULE_5__util__[\"g\" /* createRef */])();\n return _this;\n }\n\n _createClass(SelectTrigger, [{\n key: \"render\",\n value: function render() {\n var _classNames;\n\n var _this$props2 = this.props,\n disabled = _this$props2.disabled,\n isMultiple = _this$props2.isMultiple,\n dropdownPopupAlign = _this$props2.dropdownPopupAlign,\n dropdownMatchSelectWidth = _this$props2.dropdownMatchSelectWidth,\n dropdownClassName = _this$props2.dropdownClassName,\n dropdownStyle = _this$props2.dropdownStyle,\n onDropdownVisibleChange = _this$props2.onDropdownVisibleChange,\n getPopupContainer = _this$props2.getPopupContainer,\n dropdownPrefixCls = _this$props2.dropdownPrefixCls,\n popupElement = _this$props2.popupElement,\n open = _this$props2.open,\n children = _this$props2.children; // TODO: [Legacy] Use new action when trigger fixed: https://github.com/react-component/trigger/pull/86\n // When false do nothing with the width\n // ref: https://github.com/ant-design/ant-design/issues/10927\n\n var stretch;\n\n if (dropdownMatchSelectWidth !== false) {\n stretch = dropdownMatchSelectWidth ? 'width' : 'minWidth';\n }\n\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3_rc_trigger__[\"a\" /* default */], {\n ref: this.triggerRef,\n action: disabled ? [] : ['click'],\n popupPlacement: \"bottomLeft\",\n builtinPlacements: BUILT_IN_PLACEMENTS,\n popupAlign: dropdownPopupAlign,\n prefixCls: dropdownPrefixCls,\n popupTransitionName: this.getDropdownTransitionName(),\n onPopupVisibleChange: onDropdownVisibleChange,\n popup: popupElement,\n popupVisible: open,\n getPopupContainer: getPopupContainer,\n stretch: stretch,\n popupClassName: __WEBPACK_IMPORTED_MODULE_4_classnames___default()(dropdownClassName, (_classNames = {}, _defineProperty(_classNames, \"\".concat(dropdownPrefixCls, \"--multiple\"), isMultiple), _defineProperty(_classNames, \"\".concat(dropdownPrefixCls, \"--single\"), !isMultiple), _classNames)),\n popupStyle: dropdownStyle\n }, children);\n }\n }]);\n\n return SelectTrigger;\n}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);\n\n_defineProperty(SelectTrigger, \"propTypes\", {\n // Pass by outside user props\n disabled: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n showSearch: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n prefixCls: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,\n dropdownPopupAlign: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object,\n dropdownClassName: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,\n dropdownStyle: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object,\n transitionName: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,\n animation: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,\n getPopupContainer: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n children: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node,\n dropdownMatchSelectWidth: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n // Pass by Select\n isMultiple: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n dropdownPrefixCls: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,\n onDropdownVisibleChange: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n popupElement: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node,\n open: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool\n});\n\nObject(__WEBPACK_IMPORTED_MODULE_2_react_lifecycles_compat__[\"polyfill\"])(SelectTrigger);\n/* harmony default export */ __webpack_exports__[\"a\"] = (SelectTrigger);\n\n/***/ }),\n/* 1577 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(8);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(7);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_prop_types__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_dom__ = __webpack_require__(3);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react_dom__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_rc_util_es_Dom_contains__ = __webpack_require__(143);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_rc_util_es_Dom_addEventListener__ = __webpack_require__(144);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__Popup__ = __webpack_require__(1578);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__utils__ = __webpack_require__(516);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_rc_util_es_ContainerRender__ = __webpack_require__(254);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_rc_util_es_Portal__ = __webpack_require__(255);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_classnames__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_13_classnames__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_rc_util_es_unsafeLifecyclesPolyfill__ = __webpack_require__(91);\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nfunction noop() {}\n\nfunction returnEmptyString() {\n return '';\n}\n\nfunction returnDocument() {\n return window.document;\n}\n\nvar ALL_HANDLERS = ['onClick', 'onMouseDown', 'onTouchStart', 'onMouseEnter', 'onMouseLeave', 'onFocus', 'onBlur', 'onContextMenu'];\n\nvar IS_REACT_16 = !!__WEBPACK_IMPORTED_MODULE_6_react_dom__[\"createPortal\"];\n\nvar Trigger = function (_React$Component) {\n __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default()(Trigger, _React$Component);\n\n function Trigger(props) {\n __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, Trigger);\n\n var _this = __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.call(this, props));\n\n _initialiseProps.call(_this);\n\n var popupVisible = void 0;\n if ('popupVisible' in props) {\n popupVisible = !!props.popupVisible;\n } else {\n popupVisible = !!props.defaultPopupVisible;\n }\n\n _this.prevPopupVisible = popupVisible;\n\n _this.state = {\n popupVisible: popupVisible\n };\n\n ALL_HANDLERS.forEach(function (h) {\n _this['fire' + h] = function (e) {\n _this.fireEvents(h, e);\n };\n });\n return _this;\n }\n\n Trigger.prototype.componentDidMount = function componentDidMount() {\n this.componentDidUpdate({}, {\n popupVisible: this.state.popupVisible\n });\n };\n\n Trigger.prototype.componentWillReceiveProps = function componentWillReceiveProps(_ref) {\n var popupVisible = _ref.popupVisible;\n\n if (popupVisible !== undefined) {\n this.setState({\n popupVisible: popupVisible\n });\n }\n };\n\n Trigger.prototype.componentDidUpdate = function componentDidUpdate(_, prevState) {\n var props = this.props;\n var state = this.state;\n var triggerAfterPopupVisibleChange = function triggerAfterPopupVisibleChange() {\n if (prevState.popupVisible !== state.popupVisible) {\n props.afterPopupVisibleChange(state.popupVisible);\n }\n };\n if (!IS_REACT_16) {\n this.renderComponent(null, triggerAfterPopupVisibleChange);\n }\n\n this.prevPopupVisible = prevState.popupVisible;\n\n // We must listen to `mousedown` or `touchstart`, edge case:\n // https://github.com/ant-design/ant-design/issues/5804\n // https://github.com/react-component/calendar/issues/250\n // https://github.com/react-component/trigger/issues/50\n if (state.popupVisible) {\n var currentDocument = void 0;\n if (!this.clickOutsideHandler && (this.isClickToHide() || this.isContextMenuToShow())) {\n currentDocument = props.getDocument();\n this.clickOutsideHandler = Object(__WEBPACK_IMPORTED_MODULE_8_rc_util_es_Dom_addEventListener__[\"a\" /* default */])(currentDocument, 'mousedown', this.onDocumentClick);\n }\n // always hide on mobile\n if (!this.touchOutsideHandler) {\n currentDocument = currentDocument || props.getDocument();\n this.touchOutsideHandler = Object(__WEBPACK_IMPORTED_MODULE_8_rc_util_es_Dom_addEventListener__[\"a\" /* default */])(currentDocument, 'touchstart', this.onDocumentClick);\n }\n // close popup when trigger type contains 'onContextMenu' and document is scrolling.\n if (!this.contextMenuOutsideHandler1 && this.isContextMenuToShow()) {\n currentDocument = currentDocument || props.getDocument();\n this.contextMenuOutsideHandler1 = Object(__WEBPACK_IMPORTED_MODULE_8_rc_util_es_Dom_addEventListener__[\"a\" /* default */])(currentDocument, 'scroll', this.onContextMenuClose);\n }\n // close popup when trigger type contains 'onContextMenu' and window is blur.\n if (!this.contextMenuOutsideHandler2 && this.isContextMenuToShow()) {\n this.contextMenuOutsideHandler2 = Object(__WEBPACK_IMPORTED_MODULE_8_rc_util_es_Dom_addEventListener__[\"a\" /* default */])(window, 'blur', this.onContextMenuClose);\n }\n return;\n }\n\n this.clearOutsideHandler();\n };\n\n Trigger.prototype.componentWillUnmount = function componentWillUnmount() {\n this.clearDelayTimer();\n this.clearOutsideHandler();\n };\n\n Trigger.prototype.getPopupDomNode = function getPopupDomNode() {\n // for test\n if (this._component && this._component.getPopupDomNode) {\n return this._component.getPopupDomNode();\n }\n return null;\n };\n\n Trigger.prototype.getPopupAlign = function getPopupAlign() {\n var props = this.props;\n var popupPlacement = props.popupPlacement,\n popupAlign = props.popupAlign,\n builtinPlacements = props.builtinPlacements;\n\n if (popupPlacement && builtinPlacements) {\n return Object(__WEBPACK_IMPORTED_MODULE_10__utils__[\"a\" /* getAlignFromPlacement */])(builtinPlacements, popupPlacement, popupAlign);\n }\n return popupAlign;\n };\n\n /**\n * @param popupVisible Show or not the popup element\n * @param event SyntheticEvent, used for `pointAlign`\n */\n Trigger.prototype.setPopupVisible = function setPopupVisible(popupVisible, event) {\n var alignPoint = this.props.alignPoint;\n\n\n this.clearDelayTimer();\n\n if (this.state.popupVisible !== popupVisible) {\n if (!('popupVisible' in this.props)) {\n this.setState({ popupVisible: popupVisible });\n }\n this.props.onPopupVisibleChange(popupVisible);\n }\n\n // Always record the point position since mouseEnterDelay will delay the show\n if (alignPoint && event) {\n this.setPoint(event);\n }\n };\n\n Trigger.prototype.delaySetPopupVisible = function delaySetPopupVisible(visible, delayS, event) {\n var _this2 = this;\n\n var delay = delayS * 1000;\n this.clearDelayTimer();\n if (delay) {\n var point = event ? { pageX: event.pageX, pageY: event.pageY } : null;\n this.delayTimer = setTimeout(function () {\n _this2.setPopupVisible(visible, point);\n _this2.clearDelayTimer();\n }, delay);\n } else {\n this.setPopupVisible(visible, event);\n }\n };\n\n Trigger.prototype.clearDelayTimer = function clearDelayTimer() {\n if (this.delayTimer) {\n clearTimeout(this.delayTimer);\n this.delayTimer = null;\n }\n };\n\n Trigger.prototype.clearOutsideHandler = function clearOutsideHandler() {\n if (this.clickOutsideHandler) {\n this.clickOutsideHandler.remove();\n this.clickOutsideHandler = null;\n }\n\n if (this.contextMenuOutsideHandler1) {\n this.contextMenuOutsideHandler1.remove();\n this.contextMenuOutsideHandler1 = null;\n }\n\n if (this.contextMenuOutsideHandler2) {\n this.contextMenuOutsideHandler2.remove();\n this.contextMenuOutsideHandler2 = null;\n }\n\n if (this.touchOutsideHandler) {\n this.touchOutsideHandler.remove();\n this.touchOutsideHandler = null;\n }\n };\n\n Trigger.prototype.createTwoChains = function createTwoChains(event) {\n var childPros = this.props.children.props;\n var props = this.props;\n if (childPros[event] && props[event]) {\n return this['fire' + event];\n }\n return childPros[event] || props[event];\n };\n\n Trigger.prototype.isClickToShow = function isClickToShow() {\n var _props = this.props,\n action = _props.action,\n showAction = _props.showAction;\n\n return action.indexOf('click') !== -1 || showAction.indexOf('click') !== -1;\n };\n\n Trigger.prototype.isContextMenuToShow = function isContextMenuToShow() {\n var _props2 = this.props,\n action = _props2.action,\n showAction = _props2.showAction;\n\n return action.indexOf('contextMenu') !== -1 || showAction.indexOf('contextMenu') !== -1;\n };\n\n Trigger.prototype.isClickToHide = function isClickToHide() {\n var _props3 = this.props,\n action = _props3.action,\n hideAction = _props3.hideAction;\n\n return action.indexOf('click') !== -1 || hideAction.indexOf('click') !== -1;\n };\n\n Trigger.prototype.isMouseEnterToShow = function isMouseEnterToShow() {\n var _props4 = this.props,\n action = _props4.action,\n showAction = _props4.showAction;\n\n return action.indexOf('hover') !== -1 || showAction.indexOf('mouseEnter') !== -1;\n };\n\n Trigger.prototype.isMouseLeaveToHide = function isMouseLeaveToHide() {\n var _props5 = this.props,\n action = _props5.action,\n hideAction = _props5.hideAction;\n\n return action.indexOf('hover') !== -1 || hideAction.indexOf('mouseLeave') !== -1;\n };\n\n Trigger.prototype.isFocusToShow = function isFocusToShow() {\n var _props6 = this.props,\n action = _props6.action,\n showAction = _props6.showAction;\n\n return action.indexOf('focus') !== -1 || showAction.indexOf('focus') !== -1;\n };\n\n Trigger.prototype.isBlurToHide = function isBlurToHide() {\n var _props7 = this.props,\n action = _props7.action,\n hideAction = _props7.hideAction;\n\n return action.indexOf('focus') !== -1 || hideAction.indexOf('blur') !== -1;\n };\n\n Trigger.prototype.forcePopupAlign = function forcePopupAlign() {\n if (this.state.popupVisible && this._component && this._component.alignInstance) {\n this._component.alignInstance.forceAlign();\n }\n };\n\n Trigger.prototype.fireEvents = function fireEvents(type, e) {\n var childCallback = this.props.children.props[type];\n if (childCallback) {\n childCallback(e);\n }\n var callback = this.props[type];\n if (callback) {\n callback(e);\n }\n };\n\n Trigger.prototype.close = function close() {\n this.setPopupVisible(false);\n };\n\n Trigger.prototype.render = function render() {\n var _this3 = this;\n\n var popupVisible = this.state.popupVisible;\n var _props8 = this.props,\n children = _props8.children,\n forceRender = _props8.forceRender,\n alignPoint = _props8.alignPoint,\n className = _props8.className;\n\n var child = __WEBPACK_IMPORTED_MODULE_4_react___default.a.Children.only(children);\n var newChildProps = { key: 'trigger' };\n\n if (this.isContextMenuToShow()) {\n newChildProps.onContextMenu = this.onContextMenu;\n } else {\n newChildProps.onContextMenu = this.createTwoChains('onContextMenu');\n }\n\n if (this.isClickToHide() || this.isClickToShow()) {\n newChildProps.onClick = this.onClick;\n newChildProps.onMouseDown = this.onMouseDown;\n newChildProps.onTouchStart = this.onTouchStart;\n } else {\n newChildProps.onClick = this.createTwoChains('onClick');\n newChildProps.onMouseDown = this.createTwoChains('onMouseDown');\n newChildProps.onTouchStart = this.createTwoChains('onTouchStart');\n }\n if (this.isMouseEnterToShow()) {\n newChildProps.onMouseEnter = this.onMouseEnter;\n if (alignPoint) {\n newChildProps.onMouseMove = this.onMouseMove;\n }\n } else {\n newChildProps.onMouseEnter = this.createTwoChains('onMouseEnter');\n }\n if (this.isMouseLeaveToHide()) {\n newChildProps.onMouseLeave = this.onMouseLeave;\n } else {\n newChildProps.onMouseLeave = this.createTwoChains('onMouseLeave');\n }\n if (this.isFocusToShow() || this.isBlurToHide()) {\n newChildProps.onFocus = this.onFocus;\n newChildProps.onBlur = this.onBlur;\n } else {\n newChildProps.onFocus = this.createTwoChains('onFocus');\n newChildProps.onBlur = this.createTwoChains('onBlur');\n }\n\n var childrenClassName = __WEBPACK_IMPORTED_MODULE_13_classnames___default()(child && child.props && child.props.className, className);\n if (childrenClassName) {\n newChildProps.className = childrenClassName;\n }\n var trigger = __WEBPACK_IMPORTED_MODULE_4_react___default.a.cloneElement(child, newChildProps);\n\n if (!IS_REACT_16) {\n return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(\n __WEBPACK_IMPORTED_MODULE_11_rc_util_es_ContainerRender__[\"a\" /* default */],\n {\n parent: this,\n visible: popupVisible,\n autoMount: false,\n forceRender: forceRender,\n getComponent: this.getComponent,\n getContainer: this.getContainer\n },\n function (_ref2) {\n var renderComponent = _ref2.renderComponent;\n\n _this3.renderComponent = renderComponent;\n return trigger;\n }\n );\n }\n\n var portal = void 0;\n // prevent unmounting after it's rendered\n if (popupVisible || this._component || forceRender) {\n portal = __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(\n __WEBPACK_IMPORTED_MODULE_12_rc_util_es_Portal__[\"a\" /* default */],\n {\n key: 'portal',\n getContainer: this.getContainer,\n didUpdate: this.handlePortalUpdate\n },\n this.getComponent()\n );\n }\n\n return [trigger, portal];\n };\n\n return Trigger;\n}(__WEBPACK_IMPORTED_MODULE_4_react___default.a.Component);\n\nTrigger.propTypes = {\n children: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.any,\n action: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string)]),\n showAction: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.any,\n hideAction: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.any,\n getPopupClassNameFromAlign: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.any,\n onPopupVisibleChange: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func,\n afterPopupVisibleChange: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func,\n popup: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.node, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func]).isRequired,\n popupStyle: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object,\n prefixCls: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string,\n popupClassName: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string,\n className: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string,\n popupPlacement: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string,\n builtinPlacements: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object,\n popupTransitionName: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object]),\n popupAnimation: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.any,\n mouseEnterDelay: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number,\n mouseLeaveDelay: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number,\n zIndex: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number,\n focusDelay: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number,\n blurDelay: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number,\n getPopupContainer: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func,\n getDocument: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func,\n forceRender: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool,\n destroyPopupOnHide: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool,\n mask: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool,\n maskClosable: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool,\n onPopupAlign: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func,\n popupAlign: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object,\n popupVisible: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool,\n defaultPopupVisible: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool,\n maskTransitionName: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object]),\n maskAnimation: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string,\n stretch: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string,\n alignPoint: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool // Maybe we can support user pass position in the future\n};\nTrigger.defaultProps = {\n prefixCls: 'rc-trigger-popup',\n getPopupClassNameFromAlign: returnEmptyString,\n getDocument: returnDocument,\n onPopupVisibleChange: noop,\n afterPopupVisibleChange: noop,\n onPopupAlign: noop,\n popupClassName: '',\n mouseEnterDelay: 0,\n mouseLeaveDelay: 0.1,\n focusDelay: 0,\n blurDelay: 0.15,\n popupStyle: {},\n destroyPopupOnHide: false,\n popupAlign: {},\n defaultPopupVisible: false,\n mask: false,\n maskClosable: true,\n action: [],\n showAction: [],\n hideAction: []\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this4 = this;\n\n this.onMouseEnter = function (e) {\n var mouseEnterDelay = _this4.props.mouseEnterDelay;\n\n _this4.fireEvents('onMouseEnter', e);\n _this4.delaySetPopupVisible(true, mouseEnterDelay, mouseEnterDelay ? null : e);\n };\n\n this.onMouseMove = function (e) {\n _this4.fireEvents('onMouseMove', e);\n _this4.setPoint(e);\n };\n\n this.onMouseLeave = function (e) {\n _this4.fireEvents('onMouseLeave', e);\n _this4.delaySetPopupVisible(false, _this4.props.mouseLeaveDelay);\n };\n\n this.onPopupMouseEnter = function () {\n _this4.clearDelayTimer();\n };\n\n this.onPopupMouseLeave = function (e) {\n // https://github.com/react-component/trigger/pull/13\n // react bug?\n if (e.relatedTarget && !e.relatedTarget.setTimeout && _this4._component && _this4._component.getPopupDomNode && Object(__WEBPACK_IMPORTED_MODULE_7_rc_util_es_Dom_contains__[\"a\" /* default */])(_this4._component.getPopupDomNode(), e.relatedTarget)) {\n return;\n }\n _this4.delaySetPopupVisible(false, _this4.props.mouseLeaveDelay);\n };\n\n this.onFocus = function (e) {\n _this4.fireEvents('onFocus', e);\n // incase focusin and focusout\n _this4.clearDelayTimer();\n if (_this4.isFocusToShow()) {\n _this4.focusTime = Date.now();\n _this4.delaySetPopupVisible(true, _this4.props.focusDelay);\n }\n };\n\n this.onMouseDown = function (e) {\n _this4.fireEvents('onMouseDown', e);\n _this4.preClickTime = Date.now();\n };\n\n this.onTouchStart = function (e) {\n _this4.fireEvents('onTouchStart', e);\n _this4.preTouchTime = Date.now();\n };\n\n this.onBlur = function (e) {\n _this4.fireEvents('onBlur', e);\n _this4.clearDelayTimer();\n if (_this4.isBlurToHide()) {\n _this4.delaySetPopupVisible(false, _this4.props.blurDelay);\n }\n };\n\n this.onContextMenu = function (e) {\n e.preventDefault();\n _this4.fireEvents('onContextMenu', e);\n _this4.setPopupVisible(true, e);\n };\n\n this.onContextMenuClose = function () {\n if (_this4.isContextMenuToShow()) {\n _this4.close();\n }\n };\n\n this.onClick = function (event) {\n _this4.fireEvents('onClick', event);\n // focus will trigger click\n if (_this4.focusTime) {\n var preTime = void 0;\n if (_this4.preClickTime && _this4.preTouchTime) {\n preTime = Math.min(_this4.preClickTime, _this4.preTouchTime);\n } else if (_this4.preClickTime) {\n preTime = _this4.preClickTime;\n } else if (_this4.preTouchTime) {\n preTime = _this4.preTouchTime;\n }\n if (Math.abs(preTime - _this4.focusTime) < 20) {\n return;\n }\n _this4.focusTime = 0;\n }\n _this4.preClickTime = 0;\n _this4.preTouchTime = 0;\n if (event && event.preventDefault) {\n event.preventDefault();\n }\n var nextVisible = !_this4.state.popupVisible;\n if (_this4.isClickToHide() && !nextVisible || nextVisible && _this4.isClickToShow()) {\n _this4.setPopupVisible(!_this4.state.popupVisible, event);\n }\n };\n\n this.onDocumentClick = function (event) {\n if (_this4.props.mask && !_this4.props.maskClosable) {\n return;\n }\n var target = event.target;\n var root = Object(__WEBPACK_IMPORTED_MODULE_6_react_dom__[\"findDOMNode\"])(_this4);\n var popupNode = _this4.getPopupDomNode();\n if (!Object(__WEBPACK_IMPORTED_MODULE_7_rc_util_es_Dom_contains__[\"a\" /* default */])(root, target) && !Object(__WEBPACK_IMPORTED_MODULE_7_rc_util_es_Dom_contains__[\"a\" /* default */])(popupNode, target)) {\n _this4.close();\n }\n };\n\n this.getRootDomNode = function () {\n return Object(__WEBPACK_IMPORTED_MODULE_6_react_dom__[\"findDOMNode\"])(_this4);\n };\n\n this.getPopupClassNameFromAlign = function (align) {\n var className = [];\n var _props9 = _this4.props,\n popupPlacement = _props9.popupPlacement,\n builtinPlacements = _props9.builtinPlacements,\n prefixCls = _props9.prefixCls,\n alignPoint = _props9.alignPoint,\n getPopupClassNameFromAlign = _props9.getPopupClassNameFromAlign;\n\n if (popupPlacement && builtinPlacements) {\n className.push(Object(__WEBPACK_IMPORTED_MODULE_10__utils__[\"b\" /* getAlignPopupClassName */])(builtinPlacements, prefixCls, align, alignPoint));\n }\n if (getPopupClassNameFromAlign) {\n className.push(getPopupClassNameFromAlign(align));\n }\n return className.join(' ');\n };\n\n this.getComponent = function () {\n var _props10 = _this4.props,\n prefixCls = _props10.prefixCls,\n destroyPopupOnHide = _props10.destroyPopupOnHide,\n popupClassName = _props10.popupClassName,\n action = _props10.action,\n onPopupAlign = _props10.onPopupAlign,\n popupAnimation = _props10.popupAnimation,\n popupTransitionName = _props10.popupTransitionName,\n popupStyle = _props10.popupStyle,\n mask = _props10.mask,\n maskAnimation = _props10.maskAnimation,\n maskTransitionName = _props10.maskTransitionName,\n zIndex = _props10.zIndex,\n popup = _props10.popup,\n stretch = _props10.stretch,\n alignPoint = _props10.alignPoint;\n var _state = _this4.state,\n popupVisible = _state.popupVisible,\n point = _state.point;\n\n\n var align = _this4.getPopupAlign();\n\n var mouseProps = {};\n if (_this4.isMouseEnterToShow()) {\n mouseProps.onMouseEnter = _this4.onPopupMouseEnter;\n }\n if (_this4.isMouseLeaveToHide()) {\n mouseProps.onMouseLeave = _this4.onPopupMouseLeave;\n }\n\n return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(\n __WEBPACK_IMPORTED_MODULE_9__Popup__[\"a\" /* default */],\n __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({\n prefixCls: prefixCls,\n destroyPopupOnHide: destroyPopupOnHide,\n visible: popupVisible,\n point: alignPoint && point,\n className: popupClassName,\n action: action,\n align: align,\n onAlign: onPopupAlign,\n animation: popupAnimation,\n getClassNameFromAlign: _this4.getPopupClassNameFromAlign\n }, mouseProps, {\n stretch: stretch,\n getRootDomNode: _this4.getRootDomNode,\n style: popupStyle,\n mask: mask,\n zIndex: zIndex,\n transitionName: popupTransitionName,\n maskAnimation: maskAnimation,\n maskTransitionName: maskTransitionName,\n ref: _this4.savePopup\n }),\n typeof popup === 'function' ? popup() : popup\n );\n };\n\n this.getContainer = function () {\n var props = _this4.props;\n\n var popupContainer = document.createElement('div');\n // Make sure default popup container will never cause scrollbar appearing\n // https://github.com/react-component/trigger/issues/41\n popupContainer.style.position = 'absolute';\n popupContainer.style.top = '0';\n popupContainer.style.left = '0';\n popupContainer.style.width = '100%';\n var mountNode = props.getPopupContainer ? props.getPopupContainer(Object(__WEBPACK_IMPORTED_MODULE_6_react_dom__[\"findDOMNode\"])(_this4)) : props.getDocument().body;\n mountNode.appendChild(popupContainer);\n return popupContainer;\n };\n\n this.setPoint = function (point) {\n var alignPoint = _this4.props.alignPoint;\n\n if (!alignPoint || !point) return;\n\n _this4.setState({\n point: {\n pageX: point.pageX,\n pageY: point.pageY\n }\n });\n };\n\n this.handlePortalUpdate = function () {\n if (_this4.prevPopupVisible !== _this4.state.popupVisible) {\n _this4.props.afterPopupVisibleChange(_this4.state.popupVisible);\n }\n };\n\n this.savePopup = function (node) {\n _this4._component = node;\n };\n};\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (Object(__WEBPACK_IMPORTED_MODULE_14_rc_util_es_unsafeLifecyclesPolyfill__[\"a\" /* default */])(Trigger));\n\n/***/ }),\n/* 1578 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(8);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(7);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_prop_types__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_dom__ = __webpack_require__(3);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react_dom__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_rc_align__ = __webpack_require__(257);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_rc_animate__ = __webpack_require__(1579);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_raf__ = __webpack_require__(36);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_raf___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_raf__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__PopupInner__ = __webpack_require__(1584);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__LazyRenderBox__ = __webpack_require__(515);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__utils__ = __webpack_require__(516);\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar Popup = function (_Component) {\n __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default()(Popup, _Component);\n\n function Popup(props) {\n __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, Popup);\n\n var _this = __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(this, _Component.call(this, props));\n\n _initialiseProps.call(_this);\n\n _this.state = {\n // Used for stretch\n stretchChecked: false,\n targetWidth: undefined,\n targetHeight: undefined\n };\n\n _this.savePopupRef = __WEBPACK_IMPORTED_MODULE_12__utils__[\"c\" /* saveRef */].bind(_this, 'popupInstance');\n _this.saveAlignRef = __WEBPACK_IMPORTED_MODULE_12__utils__[\"c\" /* saveRef */].bind(_this, 'alignInstance');\n return _this;\n }\n\n Popup.prototype.componentDidMount = function componentDidMount() {\n this.rootNode = this.getPopupDomNode();\n this.setStretchSize();\n };\n\n Popup.prototype.componentDidUpdate = function componentDidUpdate() {\n this.setStretchSize();\n };\n\n // Record size if stretch needed\n\n\n Popup.prototype.getPopupDomNode = function getPopupDomNode() {\n return __WEBPACK_IMPORTED_MODULE_6_react_dom___default.a.findDOMNode(this.popupInstance);\n };\n\n // `target` on `rc-align` can accept as a function to get the bind element or a point.\n // ref: https://www.npmjs.com/package/rc-align\n\n\n Popup.prototype.getMaskTransitionName = function getMaskTransitionName() {\n var props = this.props;\n var transitionName = props.maskTransitionName;\n var animation = props.maskAnimation;\n if (!transitionName && animation) {\n transitionName = props.prefixCls + '-' + animation;\n }\n return transitionName;\n };\n\n Popup.prototype.getTransitionName = function getTransitionName() {\n var props = this.props;\n var transitionName = props.transitionName;\n if (!transitionName && props.animation) {\n transitionName = props.prefixCls + '-' + props.animation;\n }\n return transitionName;\n };\n\n Popup.prototype.getClassName = function getClassName(currentAlignClassName) {\n return this.props.prefixCls + ' ' + this.props.className + ' ' + currentAlignClassName;\n };\n\n Popup.prototype.getPopupElement = function getPopupElement() {\n var _this2 = this;\n\n var savePopupRef = this.savePopupRef;\n var _state = this.state,\n stretchChecked = _state.stretchChecked,\n targetHeight = _state.targetHeight,\n targetWidth = _state.targetWidth;\n var _props = this.props,\n align = _props.align,\n visible = _props.visible,\n prefixCls = _props.prefixCls,\n style = _props.style,\n getClassNameFromAlign = _props.getClassNameFromAlign,\n destroyPopupOnHide = _props.destroyPopupOnHide,\n stretch = _props.stretch,\n children = _props.children,\n onMouseEnter = _props.onMouseEnter,\n onMouseLeave = _props.onMouseLeave;\n\n var className = this.getClassName(this.currentAlignClassName || getClassNameFromAlign(align));\n var hiddenClassName = prefixCls + '-hidden';\n\n if (!visible) {\n this.currentAlignClassName = null;\n }\n\n var sizeStyle = {};\n if (stretch) {\n // Stretch with target\n if (stretch.indexOf('height') !== -1) {\n sizeStyle.height = targetHeight;\n } else if (stretch.indexOf('minHeight') !== -1) {\n sizeStyle.minHeight = targetHeight;\n }\n if (stretch.indexOf('width') !== -1) {\n sizeStyle.width = targetWidth;\n } else if (stretch.indexOf('minWidth') !== -1) {\n sizeStyle.minWidth = targetWidth;\n }\n\n // Delay force align to makes ui smooth\n if (!stretchChecked) {\n sizeStyle.visibility = 'hidden';\n __WEBPACK_IMPORTED_MODULE_9_raf___default()(function () {\n if (_this2.alignInstance) {\n _this2.alignInstance.forceAlign();\n }\n });\n }\n }\n\n var newStyle = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, sizeStyle, style, this.getZIndexStyle());\n\n var popupInnerProps = {\n className: className,\n prefixCls: prefixCls,\n ref: savePopupRef,\n onMouseEnter: onMouseEnter,\n onMouseLeave: onMouseLeave,\n style: newStyle\n };\n\n if (destroyPopupOnHide) {\n return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(\n __WEBPACK_IMPORTED_MODULE_8_rc_animate__[\"a\" /* default */],\n {\n component: '',\n exclusive: true,\n transitionAppear: true,\n transitionName: this.getTransitionName(),\n onLeave: this.onAnimateLeaved\n },\n visible ? __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(\n __WEBPACK_IMPORTED_MODULE_7_rc_align__[\"a\" /* default */],\n {\n target: this.getAlignTarget(),\n key: 'popup',\n ref: this.saveAlignRef,\n monitorWindowResize: true,\n align: align,\n onAlign: this.onAlign\n },\n __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(\n __WEBPACK_IMPORTED_MODULE_10__PopupInner__[\"a\" /* default */],\n __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({\n visible: true\n }, popupInnerProps),\n children\n )\n ) : null\n );\n }\n\n return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(\n __WEBPACK_IMPORTED_MODULE_8_rc_animate__[\"a\" /* default */],\n {\n component: '',\n exclusive: true,\n transitionAppear: true,\n transitionName: this.getTransitionName(),\n showProp: 'xVisible',\n onLeave: this.onAnimateLeaved\n },\n __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(\n __WEBPACK_IMPORTED_MODULE_7_rc_align__[\"a\" /* default */],\n {\n target: this.getAlignTarget(),\n key: 'popup',\n ref: this.saveAlignRef,\n monitorWindowResize: true,\n xVisible: visible,\n childrenProps: { visible: 'xVisible' },\n disabled: !visible,\n align: align,\n onAlign: this.onAlign\n },\n __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(\n __WEBPACK_IMPORTED_MODULE_10__PopupInner__[\"a\" /* default */],\n __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({\n hiddenClassName: hiddenClassName\n }, popupInnerProps),\n children\n )\n )\n );\n };\n\n Popup.prototype.getZIndexStyle = function getZIndexStyle() {\n var style = {};\n var props = this.props;\n if (props.zIndex !== undefined) {\n style.zIndex = props.zIndex;\n }\n return style;\n };\n\n Popup.prototype.getMaskElement = function getMaskElement() {\n var props = this.props;\n var maskElement = void 0;\n if (props.mask) {\n var maskTransition = this.getMaskTransitionName();\n maskElement = __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_11__LazyRenderBox__[\"a\" /* default */], {\n style: this.getZIndexStyle(),\n key: 'mask',\n className: props.prefixCls + '-mask',\n hiddenClassName: props.prefixCls + '-mask-hidden',\n visible: props.visible\n });\n if (maskTransition) {\n maskElement = __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(\n __WEBPACK_IMPORTED_MODULE_8_rc_animate__[\"a\" /* default */],\n {\n key: 'mask',\n showProp: 'visible',\n transitionAppear: true,\n component: '',\n transitionName: maskTransition\n },\n maskElement\n );\n }\n }\n return maskElement;\n };\n\n Popup.prototype.render = function render() {\n return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(\n 'div',\n null,\n this.getMaskElement(),\n this.getPopupElement()\n );\n };\n\n return Popup;\n}(__WEBPACK_IMPORTED_MODULE_4_react__[\"Component\"]);\n\nPopup.propTypes = {\n visible: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool,\n style: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object,\n getClassNameFromAlign: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func,\n onAlign: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func,\n getRootDomNode: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func,\n onMouseEnter: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func,\n align: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.any,\n destroyPopupOnHide: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool,\n className: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string,\n prefixCls: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string,\n onMouseLeave: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func,\n stretch: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string,\n children: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.node,\n point: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.shape({\n pageX: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number,\n pageY: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number\n })\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this3 = this;\n\n this.onAlign = function (popupDomNode, align) {\n var props = _this3.props;\n var currentAlignClassName = props.getClassNameFromAlign(align);\n // FIX: https://github.com/react-component/trigger/issues/56\n // FIX: https://github.com/react-component/tooltip/issues/79\n if (_this3.currentAlignClassName !== currentAlignClassName) {\n _this3.currentAlignClassName = currentAlignClassName;\n popupDomNode.className = _this3.getClassName(currentAlignClassName);\n }\n props.onAlign(popupDomNode, align);\n };\n\n this.onAnimateLeaved = function () {\n var stretch = _this3.props.stretch;\n var stretchChecked = _this3.state.stretchChecked;\n\n if (stretch && stretchChecked) {\n _this3.setState({ stretchChecked: false });\n }\n };\n\n this.setStretchSize = function () {\n var getRootDomNode = _this3.props.getRootDomNode;\n var _state2 = _this3.state,\n stretchChecked = _state2.stretchChecked,\n targetHeight = _state2.targetHeight,\n targetWidth = _state2.targetWidth;\n\n\n var $ele = getRootDomNode();\n if (!$ele) return;\n\n var height = $ele.offsetHeight;\n var width = $ele.offsetWidth;\n\n if (targetHeight !== height || targetWidth !== width || !stretchChecked) {\n _this3.setState({\n stretchChecked: true,\n targetHeight: height,\n targetWidth: width\n });\n }\n };\n\n this.getTargetElement = function () {\n return _this3.props.getRootDomNode();\n };\n\n this.getAlignTarget = function () {\n var point = _this3.props.point;\n\n if (point) {\n return point;\n }\n return _this3.getTargetElement;\n };\n};\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (Popup);\n\n/***/ }),\n/* 1579 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_rc_util_es_unsafeLifecyclesPolyfill__ = __webpack_require__(91);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ChildrenUtils__ = __webpack_require__(1580);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__AnimateChild__ = __webpack_require__(1581);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util_animate__ = __webpack_require__(514);\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n/* eslint react/prop-types: 0 */\n\n\n\n\n\n\nvar defaultKey = 'rc_animate_' + Date.now();\n\nfunction getChildrenFromProps(props) {\n var children = props.children;\n if (__WEBPACK_IMPORTED_MODULE_0_react___default.a.isValidElement(children)) {\n if (!children.key) {\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.cloneElement(children, {\n key: defaultKey\n });\n }\n }\n return children;\n}\n\nfunction noop() {}\n\nvar Animate = function (_React$Component) {\n _inherits(Animate, _React$Component);\n\n function Animate(props) {\n _classCallCheck(this, Animate);\n\n var _this = _possibleConstructorReturn(this, (Animate.__proto__ || Object.getPrototypeOf(Animate)).call(this, props));\n\n _initialiseProps.call(_this);\n\n _this.currentlyAnimatingKeys = {};\n _this.keysToEnter = [];\n _this.keysToLeave = [];\n\n _this.state = {\n children: Object(__WEBPACK_IMPORTED_MODULE_2__ChildrenUtils__[\"e\" /* toArrayChildren */])(getChildrenFromProps(props))\n };\n\n _this.childrenRefs = {};\n return _this;\n } // eslint-disable-line\n\n _createClass(Animate, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n var _this2 = this;\n\n var showProp = this.props.showProp;\n var children = this.state.children;\n if (showProp) {\n children = children.filter(function (child) {\n return !!child.props[showProp];\n });\n }\n children.forEach(function (child) {\n if (child) {\n _this2.performAppear(child.key);\n }\n });\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n var _this3 = this;\n\n this.nextProps = nextProps;\n var nextChildren = Object(__WEBPACK_IMPORTED_MODULE_2__ChildrenUtils__[\"e\" /* toArrayChildren */])(getChildrenFromProps(nextProps));\n var props = this.props;\n // exclusive needs immediate response\n if (props.exclusive) {\n Object.keys(this.currentlyAnimatingKeys).forEach(function (key) {\n _this3.stop(key);\n });\n }\n var showProp = props.showProp;\n var currentlyAnimatingKeys = this.currentlyAnimatingKeys;\n // last props children if exclusive\n var currentChildren = props.exclusive ? Object(__WEBPACK_IMPORTED_MODULE_2__ChildrenUtils__[\"e\" /* toArrayChildren */])(getChildrenFromProps(props)) : this.state.children;\n // in case destroy in showProp mode\n var newChildren = [];\n if (showProp) {\n currentChildren.forEach(function (currentChild) {\n var nextChild = currentChild && Object(__WEBPACK_IMPORTED_MODULE_2__ChildrenUtils__[\"a\" /* findChildInChildrenByKey */])(nextChildren, currentChild.key);\n var newChild = void 0;\n if ((!nextChild || !nextChild.props[showProp]) && currentChild.props[showProp]) {\n newChild = __WEBPACK_IMPORTED_MODULE_0_react___default.a.cloneElement(nextChild || currentChild, _defineProperty({}, showProp, true));\n } else {\n newChild = nextChild;\n }\n if (newChild) {\n newChildren.push(newChild);\n }\n });\n nextChildren.forEach(function (nextChild) {\n if (!nextChild || !Object(__WEBPACK_IMPORTED_MODULE_2__ChildrenUtils__[\"a\" /* findChildInChildrenByKey */])(currentChildren, nextChild.key)) {\n newChildren.push(nextChild);\n }\n });\n } else {\n newChildren = Object(__WEBPACK_IMPORTED_MODULE_2__ChildrenUtils__[\"d\" /* mergeChildren */])(currentChildren, nextChildren);\n }\n\n // need render to avoid update\n this.setState({\n children: newChildren\n });\n\n nextChildren.forEach(function (child) {\n var key = child && child.key;\n if (child && currentlyAnimatingKeys[key]) {\n return;\n }\n var hasPrev = child && Object(__WEBPACK_IMPORTED_MODULE_2__ChildrenUtils__[\"a\" /* findChildInChildrenByKey */])(currentChildren, key);\n if (showProp) {\n var showInNext = child.props[showProp];\n if (hasPrev) {\n var showInNow = Object(__WEBPACK_IMPORTED_MODULE_2__ChildrenUtils__[\"b\" /* findShownChildInChildrenByKey */])(currentChildren, key, showProp);\n if (!showInNow && showInNext) {\n _this3.keysToEnter.push(key);\n }\n } else if (showInNext) {\n _this3.keysToEnter.push(key);\n }\n } else if (!hasPrev) {\n _this3.keysToEnter.push(key);\n }\n });\n\n currentChildren.forEach(function (child) {\n var key = child && child.key;\n if (child && currentlyAnimatingKeys[key]) {\n return;\n }\n var hasNext = child && Object(__WEBPACK_IMPORTED_MODULE_2__ChildrenUtils__[\"a\" /* findChildInChildrenByKey */])(nextChildren, key);\n if (showProp) {\n var showInNow = child.props[showProp];\n if (hasNext) {\n var showInNext = Object(__WEBPACK_IMPORTED_MODULE_2__ChildrenUtils__[\"b\" /* findShownChildInChildrenByKey */])(nextChildren, key, showProp);\n if (!showInNext && showInNow) {\n _this3.keysToLeave.push(key);\n }\n } else if (showInNow) {\n _this3.keysToLeave.push(key);\n }\n } else if (!hasNext) {\n _this3.keysToLeave.push(key);\n }\n });\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n var keysToEnter = this.keysToEnter;\n this.keysToEnter = [];\n keysToEnter.forEach(this.performEnter);\n var keysToLeave = this.keysToLeave;\n this.keysToLeave = [];\n keysToLeave.forEach(this.performLeave);\n }\n }, {\n key: 'isValidChildByKey',\n value: function isValidChildByKey(currentChildren, key) {\n var showProp = this.props.showProp;\n if (showProp) {\n return Object(__WEBPACK_IMPORTED_MODULE_2__ChildrenUtils__[\"b\" /* findShownChildInChildrenByKey */])(currentChildren, key, showProp);\n }\n return Object(__WEBPACK_IMPORTED_MODULE_2__ChildrenUtils__[\"a\" /* findChildInChildrenByKey */])(currentChildren, key);\n }\n }, {\n key: 'stop',\n value: function stop(key) {\n delete this.currentlyAnimatingKeys[key];\n var component = this.childrenRefs[key];\n if (component) {\n component.stop();\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _this4 = this;\n\n var props = this.props;\n this.nextProps = props;\n var stateChildren = this.state.children;\n var children = null;\n if (stateChildren) {\n children = stateChildren.map(function (child) {\n if (child === null || child === undefined) {\n return child;\n }\n if (!child.key) {\n throw new Error('must set key for children');\n }\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\n __WEBPACK_IMPORTED_MODULE_3__AnimateChild__[\"a\" /* default */],\n {\n key: child.key,\n ref: function ref(node) {\n _this4.childrenRefs[child.key] = node;\n },\n animation: props.animation,\n transitionName: props.transitionName,\n transitionEnter: props.transitionEnter,\n transitionAppear: props.transitionAppear,\n transitionLeave: props.transitionLeave\n },\n child\n );\n });\n }\n var Component = props.component;\n if (Component) {\n var passedProps = props;\n if (typeof Component === 'string') {\n passedProps = _extends({\n className: props.className,\n style: props.style\n }, props.componentProps);\n }\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\n Component,\n passedProps,\n children\n );\n }\n return children[0] || null;\n }\n }]);\n\n return Animate;\n}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);\n\nAnimate.isAnimate = true;\nAnimate.defaultProps = {\n animation: {},\n component: 'span',\n componentProps: {},\n transitionEnter: true,\n transitionLeave: true,\n transitionAppear: false,\n onEnd: noop,\n onEnter: noop,\n onLeave: noop,\n onAppear: noop\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this5 = this;\n\n this.performEnter = function (key) {\n // may already remove by exclusive\n if (_this5.childrenRefs[key]) {\n _this5.currentlyAnimatingKeys[key] = true;\n _this5.childrenRefs[key].componentWillEnter(_this5.handleDoneAdding.bind(_this5, key, 'enter'));\n }\n };\n\n this.performAppear = function (key) {\n if (_this5.childrenRefs[key]) {\n _this5.currentlyAnimatingKeys[key] = true;\n _this5.childrenRefs[key].componentWillAppear(_this5.handleDoneAdding.bind(_this5, key, 'appear'));\n }\n };\n\n this.handleDoneAdding = function (key, type) {\n var props = _this5.props;\n delete _this5.currentlyAnimatingKeys[key];\n // if update on exclusive mode, skip check\n if (props.exclusive && props !== _this5.nextProps) {\n return;\n }\n var currentChildren = Object(__WEBPACK_IMPORTED_MODULE_2__ChildrenUtils__[\"e\" /* toArrayChildren */])(getChildrenFromProps(props));\n if (!_this5.isValidChildByKey(currentChildren, key)) {\n // exclusive will not need this\n _this5.performLeave(key);\n } else if (type === 'appear') {\n if (__WEBPACK_IMPORTED_MODULE_4__util_animate__[\"a\" /* default */].allowAppearCallback(props)) {\n props.onAppear(key);\n props.onEnd(key, true);\n }\n } else if (__WEBPACK_IMPORTED_MODULE_4__util_animate__[\"a\" /* default */].allowEnterCallback(props)) {\n props.onEnter(key);\n props.onEnd(key, true);\n }\n };\n\n this.performLeave = function (key) {\n // may already remove by exclusive\n if (_this5.childrenRefs[key]) {\n _this5.currentlyAnimatingKeys[key] = true;\n _this5.childrenRefs[key].componentWillLeave(_this5.handleDoneLeaving.bind(_this5, key));\n }\n };\n\n this.handleDoneLeaving = function (key) {\n var props = _this5.props;\n delete _this5.currentlyAnimatingKeys[key];\n // if update on exclusive mode, skip check\n if (props.exclusive && props !== _this5.nextProps) {\n return;\n }\n var currentChildren = Object(__WEBPACK_IMPORTED_MODULE_2__ChildrenUtils__[\"e\" /* toArrayChildren */])(getChildrenFromProps(props));\n // in case state change is too fast\n if (_this5.isValidChildByKey(currentChildren, key)) {\n _this5.performEnter(key);\n } else {\n var end = function end() {\n if (__WEBPACK_IMPORTED_MODULE_4__util_animate__[\"a\" /* default */].allowLeaveCallback(props)) {\n props.onLeave(key);\n props.onEnd(key, false);\n }\n };\n if (!Object(__WEBPACK_IMPORTED_MODULE_2__ChildrenUtils__[\"c\" /* isSameChildren */])(_this5.state.children, currentChildren, props.showProp)) {\n _this5.setState({\n children: currentChildren\n }, end);\n } else {\n end();\n }\n }\n };\n};\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (Object(__WEBPACK_IMPORTED_MODULE_1_rc_util_es_unsafeLifecyclesPolyfill__[\"a\" /* default */])(Animate));\n\n/***/ }),\n/* 1580 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (immutable) */ __webpack_exports__[\"e\"] = toArrayChildren;\n/* harmony export (immutable) */ __webpack_exports__[\"a\"] = findChildInChildrenByKey;\n/* harmony export (immutable) */ __webpack_exports__[\"b\"] = findShownChildInChildrenByKey;\n/* unused harmony export findHiddenChildInChildrenByKey */\n/* harmony export (immutable) */ __webpack_exports__[\"c\"] = isSameChildren;\n/* harmony export (immutable) */ __webpack_exports__[\"d\"] = mergeChildren;\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);\n\n\nfunction toArrayChildren(children) {\n var ret = [];\n __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (child) {\n ret.push(child);\n });\n return ret;\n}\n\nfunction findChildInChildrenByKey(children, key) {\n var ret = null;\n if (children) {\n children.forEach(function (child) {\n if (ret) {\n return;\n }\n if (child && child.key === key) {\n ret = child;\n }\n });\n }\n return ret;\n}\n\nfunction findShownChildInChildrenByKey(children, key, showProp) {\n var ret = null;\n if (children) {\n children.forEach(function (child) {\n if (child && child.key === key && child.props[showProp]) {\n if (ret) {\n throw new Error('two child with same key for children');\n }\n ret = child;\n }\n });\n }\n return ret;\n}\n\nfunction findHiddenChildInChildrenByKey(children, key, showProp) {\n var found = 0;\n if (children) {\n children.forEach(function (child) {\n if (found) {\n return;\n }\n found = child && child.key === key && !child.props[showProp];\n });\n }\n return found;\n}\n\nfunction isSameChildren(c1, c2, showProp) {\n var same = c1.length === c2.length;\n if (same) {\n c1.forEach(function (child, index) {\n var child2 = c2[index];\n if (child && child2) {\n if (child && !child2 || !child && child2) {\n same = false;\n } else if (child.key !== child2.key) {\n same = false;\n } else if (showProp && child.props[showProp] !== child2.props[showProp]) {\n same = false;\n }\n }\n });\n }\n return same;\n}\n\nfunction mergeChildren(prev, next) {\n var ret = [];\n\n // For each key of `next`, the list of keys to insert before that key in\n // the combined list\n var nextChildrenPending = {};\n var pendingChildren = [];\n prev.forEach(function (child) {\n if (child && findChildInChildrenByKey(next, child.key)) {\n if (pendingChildren.length) {\n nextChildrenPending[child.key] = pendingChildren;\n pendingChildren = [];\n }\n } else {\n pendingChildren.push(child);\n }\n });\n\n next.forEach(function (child) {\n if (child && Object.prototype.hasOwnProperty.call(nextChildrenPending, child.key)) {\n ret = ret.concat(nextChildrenPending[child.key]);\n }\n ret.push(child);\n });\n\n ret = ret.concat(pendingChildren);\n\n return ret;\n}\n\n/***/ }),\n/* 1581 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom__ = __webpack_require__(3);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_dom__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ant_design_css_animation__ = __webpack_require__(1582);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_animate__ = __webpack_require__(514);\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n/* eslint react/prop-types: 0 */\n\n\n\n\n\nvar transitionMap = {\n enter: 'transitionEnter',\n appear: 'transitionAppear',\n leave: 'transitionLeave'\n};\n\nvar AnimateChild = function (_React$Component) {\n _inherits(AnimateChild, _React$Component);\n\n function AnimateChild() {\n _classCallCheck(this, AnimateChild);\n\n return _possibleConstructorReturn(this, (AnimateChild.__proto__ || Object.getPrototypeOf(AnimateChild)).apply(this, arguments));\n }\n\n _createClass(AnimateChild, [{\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n this.stop();\n }\n }, {\n key: 'componentWillEnter',\n value: function componentWillEnter(done) {\n if (__WEBPACK_IMPORTED_MODULE_3__util_animate__[\"a\" /* default */].isEnterSupported(this.props)) {\n this.transition('enter', done);\n } else {\n done();\n }\n }\n }, {\n key: 'componentWillAppear',\n value: function componentWillAppear(done) {\n if (__WEBPACK_IMPORTED_MODULE_3__util_animate__[\"a\" /* default */].isAppearSupported(this.props)) {\n this.transition('appear', done);\n } else {\n done();\n }\n }\n }, {\n key: 'componentWillLeave',\n value: function componentWillLeave(done) {\n if (__WEBPACK_IMPORTED_MODULE_3__util_animate__[\"a\" /* default */].isLeaveSupported(this.props)) {\n this.transition('leave', done);\n } else {\n // always sync, do not interupt with react component life cycle\n // update hidden -> animate hidden ->\n // didUpdate -> animate leave -> unmount (if animate is none)\n done();\n }\n }\n }, {\n key: 'transition',\n value: function transition(animationType, finishCallback) {\n var _this2 = this;\n\n var node = __WEBPACK_IMPORTED_MODULE_1_react_dom___default.a.findDOMNode(this);\n var props = this.props;\n var transitionName = props.transitionName;\n var nameIsObj = typeof transitionName === 'object';\n this.stop();\n var end = function end() {\n _this2.stopper = null;\n finishCallback();\n };\n if ((__WEBPACK_IMPORTED_MODULE_2__ant_design_css_animation__[\"b\" /* isCssAnimationSupported */] || !props.animation[animationType]) && transitionName && props[transitionMap[animationType]]) {\n var name = nameIsObj ? transitionName[animationType] : transitionName + '-' + animationType;\n var activeName = name + '-active';\n if (nameIsObj && transitionName[animationType + 'Active']) {\n activeName = transitionName[animationType + 'Active'];\n }\n this.stopper = Object(__WEBPACK_IMPORTED_MODULE_2__ant_design_css_animation__[\"a\" /* default */])(node, {\n name: name,\n active: activeName\n }, end);\n } else {\n this.stopper = props.animation[animationType](node, end);\n }\n }\n }, {\n key: 'stop',\n value: function stop() {\n var stopper = this.stopper;\n if (stopper) {\n this.stopper = null;\n stopper.stop();\n }\n }\n }, {\n key: 'render',\n value: function render() {\n return this.props.children;\n }\n }]);\n\n return AnimateChild;\n}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (AnimateChild);\n\n/***/ }),\n/* 1582 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"b\", function() { return isCssAnimationSupported; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Event__ = __webpack_require__(1583);\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\n\n\nvar isCssAnimationSupported = __WEBPACK_IMPORTED_MODULE_0__Event__[\"a\" /* default */].endEvents.length !== 0;\nvar capitalPrefixes = ['Webkit', 'Moz', 'O',\n// ms is special .... !\n'ms'];\nvar prefixes = ['-webkit-', '-moz-', '-o-', 'ms-', ''];\n\nfunction getStyleProperty(node, name) {\n // old ff need null, https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle\n var style = window.getComputedStyle(node, null);\n var ret = '';\n for (var i = 0; i < prefixes.length; i++) {\n ret = style.getPropertyValue(prefixes[i] + name);\n if (ret) {\n break;\n }\n }\n return ret;\n}\n\nfunction fixBrowserByTimeout(node) {\n if (isCssAnimationSupported) {\n var transitionDelay = parseFloat(getStyleProperty(node, 'transition-delay')) || 0;\n var transitionDuration = parseFloat(getStyleProperty(node, 'transition-duration')) || 0;\n var animationDelay = parseFloat(getStyleProperty(node, 'animation-delay')) || 0;\n var animationDuration = parseFloat(getStyleProperty(node, 'animation-duration')) || 0;\n var time = Math.max(transitionDuration + transitionDelay, animationDuration + animationDelay);\n // sometimes, browser bug\n node.rcEndAnimTimeout = setTimeout(function () {\n node.rcEndAnimTimeout = null;\n if (node.rcEndListener) {\n node.rcEndListener();\n }\n }, time * 1000 + 200);\n }\n}\n\nfunction clearBrowserBugTimeout(node) {\n if (node.rcEndAnimTimeout) {\n clearTimeout(node.rcEndAnimTimeout);\n node.rcEndAnimTimeout = null;\n }\n}\n\nvar cssAnimation = function cssAnimation(node, transitionName, endCallback) {\n var nameIsObj = (typeof transitionName === 'undefined' ? 'undefined' : _typeof(transitionName)) === 'object';\n var className = nameIsObj ? transitionName.name : transitionName;\n var activeClassName = nameIsObj ? transitionName.active : transitionName + '-active';\n var end = endCallback;\n var start = void 0;\n var active = void 0;\n\n if (endCallback && Object.prototype.toString.call(endCallback) === '[object Object]') {\n end = endCallback.end;\n start = endCallback.start;\n active = endCallback.active;\n }\n\n if (node.rcEndListener) {\n node.rcEndListener();\n }\n\n node.rcEndListener = function (e) {\n if (e && e.target !== node) {\n return;\n }\n\n if (node.rcAnimTimeout) {\n clearTimeout(node.rcAnimTimeout);\n node.rcAnimTimeout = null;\n }\n\n clearBrowserBugTimeout(node);\n\n node.classList.remove(className);\n node.classList.remove(activeClassName);\n\n __WEBPACK_IMPORTED_MODULE_0__Event__[\"a\" /* default */].removeEndEventListener(node, node.rcEndListener);\n node.rcEndListener = null;\n\n // Usually this optional end is used for informing an owner of\n // a leave animation and telling it to remove the child.\n if (end) {\n end();\n }\n };\n\n __WEBPACK_IMPORTED_MODULE_0__Event__[\"a\" /* default */].addEndEventListener(node, node.rcEndListener);\n\n if (start) {\n start();\n }\n node.classList.add(className);\n\n node.rcAnimTimeout = setTimeout(function () {\n node.rcAnimTimeout = null;\n node.classList.add(activeClassName);\n if (active) {\n setTimeout(active, 0);\n }\n fixBrowserByTimeout(node);\n // 30ms for firefox\n }, 30);\n\n return {\n stop: function stop() {\n if (node.rcEndListener) {\n node.rcEndListener();\n }\n }\n };\n};\n\ncssAnimation.style = function (node, style, callback) {\n if (node.rcEndListener) {\n node.rcEndListener();\n }\n\n node.rcEndListener = function (e) {\n if (e && e.target !== node) {\n return;\n }\n\n if (node.rcAnimTimeout) {\n clearTimeout(node.rcAnimTimeout);\n node.rcAnimTimeout = null;\n }\n\n clearBrowserBugTimeout(node);\n\n __WEBPACK_IMPORTED_MODULE_0__Event__[\"a\" /* default */].removeEndEventListener(node, node.rcEndListener);\n node.rcEndListener = null;\n\n // Usually this optional callback is used for informing an owner of\n // a leave animation and telling it to remove the child.\n if (callback) {\n callback();\n }\n };\n\n __WEBPACK_IMPORTED_MODULE_0__Event__[\"a\" /* default */].addEndEventListener(node, node.rcEndListener);\n\n node.rcAnimTimeout = setTimeout(function () {\n for (var s in style) {\n if (style.hasOwnProperty(s)) {\n node.style[s] = style[s];\n }\n }\n node.rcAnimTimeout = null;\n fixBrowserByTimeout(node);\n }, 0);\n};\n\ncssAnimation.setTransition = function (node, p, value) {\n var property = p;\n var v = value;\n if (value === undefined) {\n v = property;\n property = '';\n }\n property = property || '';\n capitalPrefixes.forEach(function (prefix) {\n node.style[prefix + 'Transition' + property] = v;\n });\n};\n\ncssAnimation.isCssAnimationSupported = isCssAnimationSupported;\n\n\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (cssAnimation);\n\n/***/ }),\n/* 1583 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nvar START_EVENT_NAME_MAP = {\n transitionstart: {\n transition: 'transitionstart',\n WebkitTransition: 'webkitTransitionStart',\n MozTransition: 'mozTransitionStart',\n OTransition: 'oTransitionStart',\n msTransition: 'MSTransitionStart'\n },\n\n animationstart: {\n animation: 'animationstart',\n WebkitAnimation: 'webkitAnimationStart',\n MozAnimation: 'mozAnimationStart',\n OAnimation: 'oAnimationStart',\n msAnimation: 'MSAnimationStart'\n }\n};\n\nvar END_EVENT_NAME_MAP = {\n transitionend: {\n transition: 'transitionend',\n WebkitTransition: 'webkitTransitionEnd',\n MozTransition: 'mozTransitionEnd',\n OTransition: 'oTransitionEnd',\n msTransition: 'MSTransitionEnd'\n },\n\n animationend: {\n animation: 'animationend',\n WebkitAnimation: 'webkitAnimationEnd',\n MozAnimation: 'mozAnimationEnd',\n OAnimation: 'oAnimationEnd',\n msAnimation: 'MSAnimationEnd'\n }\n};\n\nvar startEvents = [];\nvar endEvents = [];\n\nfunction detectEvents() {\n var testEl = document.createElement('div');\n var style = testEl.style;\n\n if (!('AnimationEvent' in window)) {\n delete START_EVENT_NAME_MAP.animationstart.animation;\n delete END_EVENT_NAME_MAP.animationend.animation;\n }\n\n if (!('TransitionEvent' in window)) {\n delete START_EVENT_NAME_MAP.transitionstart.transition;\n delete END_EVENT_NAME_MAP.transitionend.transition;\n }\n\n function process(EVENT_NAME_MAP, events) {\n for (var baseEventName in EVENT_NAME_MAP) {\n if (EVENT_NAME_MAP.hasOwnProperty(baseEventName)) {\n var baseEvents = EVENT_NAME_MAP[baseEventName];\n for (var styleName in baseEvents) {\n if (styleName in style) {\n events.push(baseEvents[styleName]);\n break;\n }\n }\n }\n }\n }\n\n process(START_EVENT_NAME_MAP, startEvents);\n process(END_EVENT_NAME_MAP, endEvents);\n}\n\nif (typeof window !== 'undefined' && typeof document !== 'undefined') {\n detectEvents();\n}\n\nfunction addEventListener(node, eventName, eventListener) {\n node.addEventListener(eventName, eventListener, false);\n}\n\nfunction removeEventListener(node, eventName, eventListener) {\n node.removeEventListener(eventName, eventListener, false);\n}\n\nvar TransitionEvents = {\n // Start events\n startEvents: startEvents,\n\n addStartEventListener: function addStartEventListener(node, eventListener) {\n if (startEvents.length === 0) {\n window.setTimeout(eventListener, 0);\n return;\n }\n startEvents.forEach(function (startEvent) {\n addEventListener(node, startEvent, eventListener);\n });\n },\n removeStartEventListener: function removeStartEventListener(node, eventListener) {\n if (startEvents.length === 0) {\n return;\n }\n startEvents.forEach(function (startEvent) {\n removeEventListener(node, startEvent, eventListener);\n });\n },\n\n\n // End events\n endEvents: endEvents,\n\n addEndEventListener: function addEndEventListener(node, eventListener) {\n if (endEvents.length === 0) {\n window.setTimeout(eventListener, 0);\n return;\n }\n endEvents.forEach(function (endEvent) {\n addEventListener(node, endEvent, eventListener);\n });\n },\n removeEndEventListener: function removeEndEventListener(node, eventListener) {\n if (endEvents.length === 0) {\n return;\n }\n endEvents.forEach(function (endEvent) {\n removeEventListener(node, endEvent, eventListener);\n });\n }\n};\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (TransitionEvents);\n\n/***/ }),\n/* 1584 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__ = __webpack_require__(7);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_possibleConstructorReturn__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_inherits__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_inherits__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_prop_types__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__LazyRenderBox__ = __webpack_require__(515);\n\n\n\n\n\n\n\nvar PopupInner = function (_Component) {\n __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_inherits___default()(PopupInner, _Component);\n\n function PopupInner() {\n __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default()(this, PopupInner);\n\n return __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_possibleConstructorReturn___default()(this, _Component.apply(this, arguments));\n }\n\n PopupInner.prototype.render = function render() {\n var props = this.props;\n var className = props.className;\n if (!props.visible) {\n className += ' ' + props.hiddenClassName;\n }\n return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(\n 'div',\n {\n className: className,\n onMouseEnter: props.onMouseEnter,\n onMouseLeave: props.onMouseLeave,\n style: props.style\n },\n __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(\n __WEBPACK_IMPORTED_MODULE_5__LazyRenderBox__[\"a\" /* default */],\n { className: props.prefixCls + '-content', visible: props.visible },\n props.children\n )\n );\n };\n\n return PopupInner;\n}(__WEBPACK_IMPORTED_MODULE_3_react__[\"Component\"]);\n\nPopupInner.propTypes = {\n hiddenClassName: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,\n className: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,\n prefixCls: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,\n onMouseEnter: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,\n onMouseLeave: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,\n children: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.any\n};\n\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (PopupInner);\n\n/***/ }),\n/* 1585 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\n\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar __DEV__ = process.env.NODE_ENV !== 'production';\n\nvar warning = function() {};\n\nif (__DEV__) {\n var printWarning = function printWarning(format, args) {\n var len = arguments.length;\n args = new Array(len > 1 ? len - 1 : 0);\n for (var key = 1; key < len; key++) {\n args[key - 1] = arguments[key];\n }\n var argIndex = 0;\n var message = 'Warning: ' +\n format.replace(/%s/g, function() {\n return args[argIndex++];\n });\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n }\n\n warning = function(condition, format, args) {\n var len = arguments.length;\n args = new Array(len > 2 ? len - 2 : 0);\n for (var key = 2; key < len; key++) {\n args[key - 2] = arguments[key];\n }\n if (format === undefined) {\n throw new Error(\n '`warning(condition, format, ...args)` requires a warning ' +\n 'message argument'\n );\n }\n if (!condition) {\n printWarning.apply(null, [format].concat(args));\n }\n };\n}\n\nmodule.exports = warning;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5)))\n\n/***/ }),\n/* 1586 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _implementation = __webpack_require__(1587);\n\nvar _implementation2 = _interopRequireDefault(_implementation);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = _react2.default.createContext || _implementation2.default;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1587 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(process) {\n\nexports.__esModule = true;\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _gud = __webpack_require__(1588);\n\nvar _gud2 = _interopRequireDefault(_gud);\n\nvar _warning = __webpack_require__(1589);\n\nvar _warning2 = _interopRequireDefault(_warning);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar MAX_SIGNED_31_BIT_INT = 1073741823;\n\n// Inlined Object.is polyfill.\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\nfunction objectIs(x, y) {\n if (x === y) {\n return x !== 0 || 1 / x === 1 / y;\n } else {\n return x !== x && y !== y;\n }\n}\n\nfunction createEventEmitter(value) {\n var handlers = [];\n return {\n on: function on(handler) {\n handlers.push(handler);\n },\n off: function off(handler) {\n handlers = handlers.filter(function (h) {\n return h !== handler;\n });\n },\n get: function get() {\n return value;\n },\n set: function set(newValue, changedBits) {\n value = newValue;\n handlers.forEach(function (handler) {\n return handler(value, changedBits);\n });\n }\n };\n}\n\nfunction onlyChild(children) {\n return Array.isArray(children) ? children[0] : children;\n}\n\nfunction createReactContext(defaultValue, calculateChangedBits) {\n var _Provider$childContex, _Consumer$contextType;\n\n var contextProp = '__create-react-context-' + (0, _gud2.default)() + '__';\n\n var Provider = function (_Component) {\n _inherits(Provider, _Component);\n\n function Provider() {\n var _temp, _this, _ret;\n\n _classCallCheck(this, Provider);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.emitter = createEventEmitter(_this.props.value), _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n Provider.prototype.getChildContext = function getChildContext() {\n var _ref;\n\n return _ref = {}, _ref[contextProp] = this.emitter, _ref;\n };\n\n Provider.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n if (this.props.value !== nextProps.value) {\n var oldValue = this.props.value;\n var newValue = nextProps.value;\n var changedBits = void 0;\n\n if (objectIs(oldValue, newValue)) {\n changedBits = 0; // No change\n } else {\n changedBits = typeof calculateChangedBits === 'function' ? calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT;\n if (process.env.NODE_ENV !== 'production') {\n (0, _warning2.default)((changedBits & MAX_SIGNED_31_BIT_INT) === changedBits, 'calculateChangedBits: Expected the return value to be a ' + '31-bit integer. Instead received: %s', changedBits);\n }\n\n changedBits |= 0;\n\n if (changedBits !== 0) {\n this.emitter.set(nextProps.value, changedBits);\n }\n }\n }\n };\n\n Provider.prototype.render = function render() {\n return this.props.children;\n };\n\n return Provider;\n }(_react.Component);\n\n Provider.childContextTypes = (_Provider$childContex = {}, _Provider$childContex[contextProp] = _propTypes2.default.object.isRequired, _Provider$childContex);\n\n var Consumer = function (_Component2) {\n _inherits(Consumer, _Component2);\n\n function Consumer() {\n var _temp2, _this2, _ret2;\n\n _classCallCheck(this, Consumer);\n\n for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n return _ret2 = (_temp2 = (_this2 = _possibleConstructorReturn(this, _Component2.call.apply(_Component2, [this].concat(args))), _this2), _this2.state = {\n value: _this2.getValue()\n }, _this2.onUpdate = function (newValue, changedBits) {\n var observedBits = _this2.observedBits | 0;\n if ((observedBits & changedBits) !== 0) {\n _this2.setState({ value: _this2.getValue() });\n }\n }, _temp2), _possibleConstructorReturn(_this2, _ret2);\n }\n\n Consumer.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n var observedBits = nextProps.observedBits;\n\n this.observedBits = observedBits === undefined || observedBits === null ? MAX_SIGNED_31_BIT_INT // Subscribe to all changes by default\n : observedBits;\n };\n\n Consumer.prototype.componentDidMount = function componentDidMount() {\n if (this.context[contextProp]) {\n this.context[contextProp].on(this.onUpdate);\n }\n var observedBits = this.props.observedBits;\n\n this.observedBits = observedBits === undefined || observedBits === null ? MAX_SIGNED_31_BIT_INT // Subscribe to all changes by default\n : observedBits;\n };\n\n Consumer.prototype.componentWillUnmount = function componentWillUnmount() {\n if (this.context[contextProp]) {\n this.context[contextProp].off(this.onUpdate);\n }\n };\n\n Consumer.prototype.getValue = function getValue() {\n if (this.context[contextProp]) {\n return this.context[contextProp].get();\n } else {\n return defaultValue;\n }\n };\n\n Consumer.prototype.render = function render() {\n return onlyChild(this.props.children)(this.state.value);\n };\n\n return Consumer;\n }(_react.Component);\n\n Consumer.contextTypes = (_Consumer$contextType = {}, _Consumer$contextType[contextProp] = _propTypes2.default.object, _Consumer$contextType);\n\n\n return {\n Provider: Provider,\n Consumer: Consumer\n };\n}\n\nexports.default = createReactContext;\nmodule.exports = exports['default'];\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5)))\n\n/***/ }),\n/* 1588 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(global) {// @flow\n\n\nvar key = '__global_unique_id__';\n\nmodule.exports = function() {\n return global[key] = (global[key] || 0) + 1;\n};\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35)))\n\n/***/ }),\n/* 1589 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\n\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar __DEV__ = process.env.NODE_ENV !== 'production';\n\nvar warning = function() {};\n\nif (__DEV__) {\n var printWarning = function printWarning(format, args) {\n var len = arguments.length;\n args = new Array(len > 1 ? len - 1 : 0);\n for (var key = 1; key < len; key++) {\n args[key - 1] = arguments[key];\n }\n var argIndex = 0;\n var message = 'Warning: ' +\n format.replace(/%s/g, function() {\n return args[argIndex++];\n });\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n }\n\n warning = function(condition, format, args) {\n var len = arguments.length;\n args = new Array(len > 2 ? len - 2 : 0);\n for (var key = 2; key < len; key++) {\n args[key - 2] = arguments[key];\n }\n if (format === undefined) {\n throw new Error(\n '`warning(condition, format, ...args)` requires a warning ' +\n 'message argument'\n );\n }\n if (!condition) {\n printWarning.apply(null, [format].concat(args));\n }\n };\n}\n\nmodule.exports = warning;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5)))\n\n/***/ }),\n/* 1590 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (immutable) */ __webpack_exports__[\"a\"] = hasClass;\n/* unused harmony export addClass */\n/* unused harmony export removeClass */\nfunction hasClass(node, className) {\n if (node.classList) {\n return node.classList.contains(className);\n }\n\n var originClass = node.className;\n return \" \".concat(originClass, \" \").indexOf(\" \".concat(className, \" \")) > -1;\n}\nfunction addClass(node, className) {\n if (node.classList) {\n node.classList.add(className);\n } else {\n if (!hasClass(node, className)) {\n node.className = \"\".concat(node.className, \" \").concat(className);\n }\n }\n}\nfunction removeClass(node, className) {\n if (node.classList) {\n node.classList.remove(className);\n } else {\n if (hasClass(node, className)) {\n var originClass = node.className;\n node.className = \" \".concat(originClass, \" \").replace(\" \".concat(className, \" \"), ' ');\n }\n }\n}\n\n/***/ }),\n/* 1591 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_classnames__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_warning__ = __webpack_require__(517);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_warning___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_warning__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_util_es_Children_toArray__ = __webpack_require__(119);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react_lifecycles_compat__ = __webpack_require__(12);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__contextTypes__ = __webpack_require__(521);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__util__ = __webpack_require__(200);\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n\n\n\n\n\n\n\n\n\nvar Tree = /*#__PURE__*/function (_React$Component) {\n _inherits(Tree, _React$Component);\n\n var _super = _createSuper(Tree);\n\n function Tree() {\n var _this;\n\n _classCallCheck(this, Tree);\n\n _this = _super.apply(this, arguments);\n /** Internal usage for `rc-tree-select`, we don't promise it will not change. */\n\n _this.domTreeNodes = {};\n _this.state = {\n keyEntities: {},\n selectedKeys: [],\n checkedKeys: [],\n halfCheckedKeys: [],\n loadedKeys: [],\n loadingKeys: [],\n expandedKeys: [],\n dragNodesKeys: [],\n dragOverNodeKey: null,\n dropPosition: null,\n treeNode: [],\n prevProps: null\n };\n\n _this.onNodeDragStart = function (event, node) {\n var expandedKeys = _this.state.expandedKeys;\n var onDragStart = _this.props.onDragStart;\n var _node$props = node.props,\n eventKey = _node$props.eventKey,\n children = _node$props.children;\n _this.dragNode = node;\n\n _this.setState({\n dragNodesKeys: Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"j\" /* getDragNodesKeys */])(children, node),\n expandedKeys: Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"b\" /* arrDel */])(expandedKeys, eventKey)\n });\n\n if (onDragStart) {\n onDragStart({\n event: event,\n node: node\n });\n }\n };\n /**\n * [Legacy] Select handler is less small than node,\n * so that this will trigger when drag enter node or select handler.\n * This is a little tricky if customize css without padding.\n * Better for use mouse move event to refresh drag state.\n * But let's just keep it to avoid event trigger logic change.\n */\n\n\n _this.onNodeDragEnter = function (event, node) {\n var _this$state = _this.state,\n expandedKeys = _this$state.expandedKeys,\n dragNodesKeys = _this$state.dragNodesKeys;\n var onDragEnter = _this.props.onDragEnter;\n var _node$props2 = node.props,\n pos = _node$props2.pos,\n eventKey = _node$props2.eventKey;\n if (!_this.dragNode || dragNodesKeys.indexOf(eventKey) !== -1) return;\n var dropPosition = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"c\" /* calcDropPosition */])(event, node); // Skip if drag node is self\n\n if (_this.dragNode.props.eventKey === eventKey && dropPosition === 0) {\n _this.setState({\n dragOverNodeKey: '',\n dropPosition: null\n });\n\n return;\n } // Ref: https://github.com/react-component/tree/issues/132\n // Add timeout to let onDragLevel fire before onDragEnter,\n // so that we can clean drag props for onDragLeave node.\n // Macro task for this:\n // https://html.spec.whatwg.org/multipage/webappapis.html#clean-up-after-running-script\n\n\n setTimeout(function () {\n // Update drag over node\n _this.setState({\n dragOverNodeKey: eventKey,\n dropPosition: dropPosition\n }); // Side effect for delay drag\n\n\n if (!_this.delayedDragEnterLogic) {\n _this.delayedDragEnterLogic = {};\n }\n\n Object.keys(_this.delayedDragEnterLogic).forEach(function (key) {\n clearTimeout(_this.delayedDragEnterLogic[key]);\n });\n _this.delayedDragEnterLogic[pos] = window.setTimeout(function () {\n var newExpandedKeys = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"a\" /* arrAdd */])(expandedKeys, eventKey);\n\n if (!('expandedKeys' in _this.props)) {\n _this.setState({\n expandedKeys: newExpandedKeys\n });\n }\n\n if (onDragEnter) {\n onDragEnter({\n event: event,\n node: node,\n expandedKeys: newExpandedKeys\n });\n }\n }, 400);\n }, 0);\n };\n\n _this.onNodeDragOver = function (event, node) {\n var dragNodesKeys = _this.state.dragNodesKeys;\n var onDragOver = _this.props.onDragOver;\n var eventKey = node.props.eventKey;\n\n if (dragNodesKeys.indexOf(eventKey) !== -1) {\n return;\n } // Update drag position\n\n\n if (_this.dragNode && eventKey === _this.state.dragOverNodeKey) {\n var dropPosition = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"c\" /* calcDropPosition */])(event, node);\n if (dropPosition === _this.state.dropPosition) return;\n\n _this.setState({\n dropPosition: dropPosition\n });\n }\n\n if (onDragOver) {\n onDragOver({\n event: event,\n node: node\n });\n }\n };\n\n _this.onNodeDragLeave = function (event, node) {\n var onDragLeave = _this.props.onDragLeave;\n\n _this.setState({\n dragOverNodeKey: ''\n });\n\n if (onDragLeave) {\n onDragLeave({\n event: event,\n node: node\n });\n }\n };\n\n _this.onNodeDragEnd = function (event, node) {\n var onDragEnd = _this.props.onDragEnd;\n\n _this.setState({\n dragOverNodeKey: ''\n });\n\n if (onDragEnd) {\n onDragEnd({\n event: event,\n node: node\n });\n }\n\n _this.dragNode = null;\n };\n\n _this.onNodeDrop = function (event, node) {\n var _this$state2 = _this.state,\n _this$state2$dragNode = _this$state2.dragNodesKeys,\n dragNodesKeys = _this$state2$dragNode === void 0 ? [] : _this$state2$dragNode,\n dropPosition = _this$state2.dropPosition;\n var onDrop = _this.props.onDrop;\n var _node$props3 = node.props,\n eventKey = _node$props3.eventKey,\n pos = _node$props3.pos;\n\n _this.setState({\n dragOverNodeKey: ''\n });\n\n if (dragNodesKeys.indexOf(eventKey) !== -1) {\n __WEBPACK_IMPORTED_MODULE_3_warning___default()(false, \"Can not drop to dragNode(include it's children node)\");\n return;\n }\n\n var posArr = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"o\" /* posToArr */])(pos);\n var dropResult = {\n event: event,\n node: node,\n dragNode: _this.dragNode,\n dragNodesKeys: dragNodesKeys.slice(),\n dropPosition: dropPosition + Number(posArr[posArr.length - 1]),\n dropToGap: false\n };\n\n if (dropPosition !== 0) {\n dropResult.dropToGap = true;\n }\n\n if (onDrop) {\n onDrop(dropResult);\n }\n\n _this.dragNode = null;\n };\n\n _this.onNodeClick = function (e, treeNode) {\n var onClick = _this.props.onClick;\n\n if (onClick) {\n onClick(e, treeNode);\n }\n };\n\n _this.onNodeDoubleClick = function (e, treeNode) {\n var onDoubleClick = _this.props.onDoubleClick;\n\n if (onDoubleClick) {\n onDoubleClick(e, treeNode);\n }\n };\n\n _this.onNodeSelect = function (e, treeNode) {\n var selectedKeys = _this.state.selectedKeys;\n var keyEntities = _this.state.keyEntities;\n var _this$props = _this.props,\n onSelect = _this$props.onSelect,\n multiple = _this$props.multiple;\n var _treeNode$props = treeNode.props,\n selected = _treeNode$props.selected,\n eventKey = _treeNode$props.eventKey;\n var targetSelected = !selected; // Update selected keys\n\n if (!targetSelected) {\n selectedKeys = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"b\" /* arrDel */])(selectedKeys, eventKey);\n } else if (!multiple) {\n selectedKeys = [eventKey];\n } else {\n selectedKeys = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"a\" /* arrAdd */])(selectedKeys, eventKey);\n } // [Legacy] Not found related usage in doc or upper libs\n\n\n var selectedNodes = selectedKeys.map(function (key) {\n var entity = keyEntities[key];\n if (!entity) return null;\n return entity.node;\n }).filter(function (node) {\n return node;\n });\n\n _this.setUncontrolledState({\n selectedKeys: selectedKeys\n });\n\n if (onSelect) {\n onSelect(selectedKeys, {\n event: 'select',\n selected: targetSelected,\n node: treeNode,\n selectedNodes: selectedNodes,\n nativeEvent: e.nativeEvent\n });\n }\n };\n\n _this.onNodeCheck = function (e, treeNode, checked) {\n var _this$state3 = _this.state,\n keyEntities = _this$state3.keyEntities,\n oriCheckedKeys = _this$state3.checkedKeys,\n oriHalfCheckedKeys = _this$state3.halfCheckedKeys;\n var _this$props2 = _this.props,\n checkStrictly = _this$props2.checkStrictly,\n onCheck = _this$props2.onCheck;\n var eventKey = treeNode.props.eventKey; // Prepare trigger arguments\n\n var checkedObj;\n var eventObj = {\n event: 'check',\n node: treeNode,\n checked: checked,\n nativeEvent: e.nativeEvent\n };\n\n if (checkStrictly) {\n var checkedKeys = checked ? Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"a\" /* arrAdd */])(oriCheckedKeys, eventKey) : Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"b\" /* arrDel */])(oriCheckedKeys, eventKey);\n var halfCheckedKeys = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"b\" /* arrDel */])(oriHalfCheckedKeys, eventKey);\n checkedObj = {\n checked: checkedKeys,\n halfChecked: halfCheckedKeys\n };\n eventObj.checkedNodes = checkedKeys.map(function (key) {\n return keyEntities[key];\n }).filter(function (entity) {\n return entity;\n }).map(function (entity) {\n return entity.node;\n });\n\n _this.setUncontrolledState({\n checkedKeys: checkedKeys\n });\n } else {\n var _conductCheck = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"e\" /* conductCheck */])([eventKey], checked, keyEntities, {\n checkedKeys: oriCheckedKeys,\n halfCheckedKeys: oriHalfCheckedKeys\n }),\n _checkedKeys = _conductCheck.checkedKeys,\n _halfCheckedKeys = _conductCheck.halfCheckedKeys;\n\n checkedObj = _checkedKeys; // [Legacy] This is used for `rc-tree-select`\n\n eventObj.checkedNodes = [];\n eventObj.checkedNodesPositions = [];\n eventObj.halfCheckedKeys = _halfCheckedKeys;\n\n _checkedKeys.forEach(function (key) {\n var entity = keyEntities[key];\n if (!entity) return;\n var node = entity.node,\n pos = entity.pos;\n eventObj.checkedNodes.push(node);\n eventObj.checkedNodesPositions.push({\n node: node,\n pos: pos\n });\n });\n\n _this.setUncontrolledState({\n checkedKeys: _checkedKeys,\n halfCheckedKeys: _halfCheckedKeys\n });\n }\n\n if (onCheck) {\n onCheck(checkedObj, eventObj);\n }\n };\n\n _this.onNodeLoad = function (treeNode) {\n return new Promise(function (resolve) {\n // We need to get the latest state of loading/loaded keys\n _this.setState(function (_ref) {\n var _ref$loadedKeys = _ref.loadedKeys,\n loadedKeys = _ref$loadedKeys === void 0 ? [] : _ref$loadedKeys,\n _ref$loadingKeys = _ref.loadingKeys,\n loadingKeys = _ref$loadingKeys === void 0 ? [] : _ref$loadingKeys;\n var _this$props3 = _this.props,\n loadData = _this$props3.loadData,\n onLoad = _this$props3.onLoad;\n var eventKey = treeNode.props.eventKey;\n\n if (!loadData || loadedKeys.indexOf(eventKey) !== -1 || loadingKeys.indexOf(eventKey) !== -1) {\n // react 15 will warn if return null\n return {};\n } // Process load data\n\n\n var promise = loadData(treeNode);\n promise.then(function () {\n var _this$state4 = _this.state,\n currentLoadedKeys = _this$state4.loadedKeys,\n currentLoadingKeys = _this$state4.loadingKeys;\n var newLoadedKeys = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"a\" /* arrAdd */])(currentLoadedKeys, eventKey);\n var newLoadingKeys = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"b\" /* arrDel */])(currentLoadingKeys, eventKey); // onLoad should trigger before internal setState to avoid `loadData` trigger twice.\n // https://github.com/ant-design/ant-design/issues/12464\n\n if (onLoad) {\n onLoad(newLoadedKeys, {\n event: 'load',\n node: treeNode\n });\n }\n\n _this.setUncontrolledState({\n loadedKeys: newLoadedKeys\n });\n\n _this.setState({\n loadingKeys: newLoadingKeys\n });\n\n resolve();\n });\n return {\n loadingKeys: Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"a\" /* arrAdd */])(loadingKeys, eventKey)\n };\n });\n });\n };\n\n _this.onNodeExpand = function (e, treeNode) {\n var expandedKeys = _this.state.expandedKeys;\n var _this$props4 = _this.props,\n onExpand = _this$props4.onExpand,\n loadData = _this$props4.loadData;\n var _treeNode$props2 = treeNode.props,\n eventKey = _treeNode$props2.eventKey,\n expanded = _treeNode$props2.expanded; // Update selected keys\n\n var index = expandedKeys.indexOf(eventKey);\n var targetExpanded = !expanded;\n __WEBPACK_IMPORTED_MODULE_3_warning___default()(expanded && index !== -1 || !expanded && index === -1, 'Expand state not sync with index check');\n\n if (targetExpanded) {\n expandedKeys = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"a\" /* arrAdd */])(expandedKeys, eventKey);\n } else {\n expandedKeys = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"b\" /* arrDel */])(expandedKeys, eventKey);\n }\n\n _this.setUncontrolledState({\n expandedKeys: expandedKeys\n });\n\n if (onExpand) {\n onExpand(expandedKeys, {\n node: treeNode,\n expanded: targetExpanded,\n nativeEvent: e.nativeEvent\n });\n } // Async Load data\n\n\n if (targetExpanded && loadData) {\n var loadPromise = _this.onNodeLoad(treeNode);\n\n return loadPromise ? loadPromise.then(function () {\n // [Legacy] Refresh logic\n _this.setUncontrolledState({\n expandedKeys: expandedKeys\n });\n }) : null;\n }\n\n return null;\n };\n\n _this.onNodeMouseEnter = function (event, node) {\n var onMouseEnter = _this.props.onMouseEnter;\n\n if (onMouseEnter) {\n onMouseEnter({\n event: event,\n node: node\n });\n }\n };\n\n _this.onNodeMouseLeave = function (event, node) {\n var onMouseLeave = _this.props.onMouseLeave;\n\n if (onMouseLeave) {\n onMouseLeave({\n event: event,\n node: node\n });\n }\n };\n\n _this.onNodeContextMenu = function (event, node) {\n var onRightClick = _this.props.onRightClick;\n\n if (onRightClick) {\n event.preventDefault();\n onRightClick({\n event: event,\n node: node\n });\n }\n };\n /**\n * Only update the value which is not in props\n */\n\n\n _this.setUncontrolledState = function (state) {\n var needSync = false;\n var newState = {};\n Object.keys(state).forEach(function (name) {\n if (name in _this.props) return;\n needSync = true;\n newState[name] = state[name];\n });\n\n if (needSync) {\n _this.setState(newState);\n }\n };\n\n _this.registerTreeNode = function (key, node) {\n if (node) {\n _this.domTreeNodes[key] = node;\n } else {\n delete _this.domTreeNodes[key];\n }\n };\n\n _this.isKeyChecked = function (key) {\n var _this$state$checkedKe = _this.state.checkedKeys,\n checkedKeys = _this$state$checkedKe === void 0 ? [] : _this$state$checkedKe;\n return checkedKeys.indexOf(key) !== -1;\n };\n /**\n * [Legacy] Original logic use `key` as tracking clue.\n * We have to use `cloneElement` to pass `key`.\n */\n\n\n _this.renderTreeNode = function (child, index) {\n var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;\n var _this$state5 = _this.state,\n keyEntities = _this$state5.keyEntities,\n _this$state5$expanded = _this$state5.expandedKeys,\n expandedKeys = _this$state5$expanded === void 0 ? [] : _this$state5$expanded,\n _this$state5$selected = _this$state5.selectedKeys,\n selectedKeys = _this$state5$selected === void 0 ? [] : _this$state5$selected,\n _this$state5$halfChec = _this$state5.halfCheckedKeys,\n halfCheckedKeys = _this$state5$halfChec === void 0 ? [] : _this$state5$halfChec,\n _this$state5$loadedKe = _this$state5.loadedKeys,\n loadedKeys = _this$state5$loadedKe === void 0 ? [] : _this$state5$loadedKe,\n _this$state5$loadingK = _this$state5.loadingKeys,\n loadingKeys = _this$state5$loadingK === void 0 ? [] : _this$state5$loadingK,\n dragOverNodeKey = _this$state5.dragOverNodeKey,\n dropPosition = _this$state5.dropPosition;\n var pos = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"l\" /* getPosition */])(level, index);\n var key = child.key || pos;\n\n if (!keyEntities[key]) {\n Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"p\" /* warnOnlyTreeNode */])();\n return null;\n }\n\n return __WEBPACK_IMPORTED_MODULE_0_react__[\"cloneElement\"](child, {\n key: key,\n eventKey: key,\n expanded: expandedKeys.indexOf(key) !== -1,\n selected: selectedKeys.indexOf(key) !== -1,\n loaded: loadedKeys.indexOf(key) !== -1,\n loading: loadingKeys.indexOf(key) !== -1,\n checked: _this.isKeyChecked(key),\n halfChecked: halfCheckedKeys.indexOf(key) !== -1,\n pos: pos,\n // [Legacy] Drag props\n dragOver: dragOverNodeKey === key && dropPosition === 0,\n dragOverGapTop: dragOverNodeKey === key && dropPosition === -1,\n dragOverGapBottom: dragOverNodeKey === key && dropPosition === 1\n });\n };\n\n return _this;\n }\n\n _createClass(Tree, [{\n key: \"render\",\n value: function render() {\n var _this2 = this;\n\n var treeNode = this.state.treeNode;\n var _this$props5 = this.props,\n prefixCls = _this$props5.prefixCls,\n className = _this$props5.className,\n focusable = _this$props5.focusable,\n style = _this$props5.style,\n showLine = _this$props5.showLine,\n _this$props5$tabIndex = _this$props5.tabIndex,\n tabIndex = _this$props5$tabIndex === void 0 ? 0 : _this$props5$tabIndex,\n selectable = _this$props5.selectable,\n showIcon = _this$props5.showIcon,\n icon = _this$props5.icon,\n switcherIcon = _this$props5.switcherIcon,\n draggable = _this$props5.draggable,\n checkable = _this$props5.checkable,\n checkStrictly = _this$props5.checkStrictly,\n disabled = _this$props5.disabled,\n motion = _this$props5.motion,\n loadData = _this$props5.loadData,\n filterTreeNode = _this$props5.filterTreeNode;\n var domProps = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"i\" /* getDataAndAria */])(this.props);\n\n if (focusable) {\n domProps.tabIndex = tabIndex;\n }\n\n return __WEBPACK_IMPORTED_MODULE_0_react__[\"createElement\"](__WEBPACK_IMPORTED_MODULE_6__contextTypes__[\"a\" /* TreeContext */].Provider, {\n value: {\n prefixCls: prefixCls,\n selectable: selectable,\n showIcon: showIcon,\n icon: icon,\n switcherIcon: switcherIcon,\n draggable: draggable,\n checkable: checkable,\n checkStrictly: checkStrictly,\n disabled: disabled,\n motion: motion,\n loadData: loadData,\n filterTreeNode: filterTreeNode,\n renderTreeNode: this.renderTreeNode,\n isKeyChecked: this.isKeyChecked,\n onNodeClick: this.onNodeClick,\n onNodeDoubleClick: this.onNodeDoubleClick,\n onNodeExpand: this.onNodeExpand,\n onNodeSelect: this.onNodeSelect,\n onNodeCheck: this.onNodeCheck,\n onNodeLoad: this.onNodeLoad,\n onNodeMouseEnter: this.onNodeMouseEnter,\n onNodeMouseLeave: this.onNodeMouseLeave,\n onNodeContextMenu: this.onNodeContextMenu,\n onNodeDragStart: this.onNodeDragStart,\n onNodeDragEnter: this.onNodeDragEnter,\n onNodeDragOver: this.onNodeDragOver,\n onNodeDragLeave: this.onNodeDragLeave,\n onNodeDragEnd: this.onNodeDragEnd,\n onNodeDrop: this.onNodeDrop,\n registerTreeNode: this.registerTreeNode\n }\n }, __WEBPACK_IMPORTED_MODULE_0_react__[\"createElement\"](\"ul\", Object.assign({}, domProps, {\n className: __WEBPACK_IMPORTED_MODULE_2_classnames___default()(prefixCls, className, _defineProperty({}, \"\".concat(prefixCls, \"-show-line\"), showLine)),\n style: style,\n role: \"tree\",\n unselectable: \"on\"\n }), Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"m\" /* mapChildren */])(treeNode, function (node, index) {\n return _this2.renderTreeNode(node, index);\n })));\n }\n }], [{\n key: \"getDerivedStateFromProps\",\n value: function getDerivedStateFromProps(props, prevState) {\n var prevProps = prevState.prevProps;\n var newState = {\n prevProps: props\n };\n\n function needSync(name) {\n return !prevProps && name in props || prevProps && prevProps[name] !== props[name];\n } // ================== Tree Node ==================\n\n\n var treeNode = null; // Check if `treeData` or `children` changed and save into the state.\n\n if (needSync('treeData')) {\n treeNode = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"g\" /* convertDataToTree */])(props.treeData);\n } else if (needSync('children')) {\n treeNode = Object(__WEBPACK_IMPORTED_MODULE_4_rc_util_es_Children_toArray__[\"a\" /* default */])(props.children);\n } // Tree support filter function which will break the tree structure in the vdm.\n // We cache the treeNodes in state so that we can return the treeNode in event trigger.\n\n\n if (treeNode) {\n newState.treeNode = treeNode; // Calculate the entities data for quick match\n\n var entitiesMap = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"h\" /* convertTreeToEntities */])(treeNode);\n newState.keyEntities = entitiesMap.keyEntities;\n }\n\n var keyEntities = newState.keyEntities || prevState.keyEntities; // ================ expandedKeys =================\n\n if (needSync('expandedKeys') || prevProps && needSync('autoExpandParent')) {\n newState.expandedKeys = props.autoExpandParent || !prevProps && props.defaultExpandParent ? Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"f\" /* conductExpandParent */])(props.expandedKeys, keyEntities) : props.expandedKeys;\n } else if (!prevProps && props.defaultExpandAll) {\n newState.expandedKeys = Object.keys(keyEntities);\n } else if (!prevProps && props.defaultExpandedKeys) {\n newState.expandedKeys = props.autoExpandParent || props.defaultExpandParent ? Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"f\" /* conductExpandParent */])(props.defaultExpandedKeys, keyEntities) : props.defaultExpandedKeys;\n } // ================ selectedKeys =================\n\n\n if (props.selectable) {\n if (needSync('selectedKeys')) {\n newState.selectedKeys = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"d\" /* calcSelectedKeys */])(props.selectedKeys, props);\n } else if (!prevProps && props.defaultSelectedKeys) {\n newState.selectedKeys = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"d\" /* calcSelectedKeys */])(props.defaultSelectedKeys, props);\n }\n } // ================= checkedKeys =================\n\n\n if (props.checkable) {\n var checkedKeyEntity;\n\n if (needSync('checkedKeys')) {\n checkedKeyEntity = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"n\" /* parseCheckedKeys */])(props.checkedKeys) || {};\n } else if (!prevProps && props.defaultCheckedKeys) {\n checkedKeyEntity = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"n\" /* parseCheckedKeys */])(props.defaultCheckedKeys) || {};\n } else if (treeNode) {\n // If treeNode changed, we also need check it\n checkedKeyEntity = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"n\" /* parseCheckedKeys */])(props.checkedKeys) || {\n checkedKeys: prevState.checkedKeys,\n halfCheckedKeys: prevState.halfCheckedKeys\n };\n }\n\n if (checkedKeyEntity) {\n var _checkedKeyEntity = checkedKeyEntity,\n _checkedKeyEntity$che = _checkedKeyEntity.checkedKeys,\n checkedKeys = _checkedKeyEntity$che === void 0 ? [] : _checkedKeyEntity$che,\n _checkedKeyEntity$hal = _checkedKeyEntity.halfCheckedKeys,\n halfCheckedKeys = _checkedKeyEntity$hal === void 0 ? [] : _checkedKeyEntity$hal;\n\n if (!props.checkStrictly) {\n var conductKeys = Object(__WEBPACK_IMPORTED_MODULE_7__util__[\"e\" /* conductCheck */])(checkedKeys, true, keyEntities);\n checkedKeys = conductKeys.checkedKeys;\n halfCheckedKeys = conductKeys.halfCheckedKeys;\n }\n\n newState.checkedKeys = checkedKeys;\n newState.halfCheckedKeys = halfCheckedKeys;\n }\n } // ================= loadedKeys ==================\n\n\n if (needSync('loadedKeys')) {\n newState.loadedKeys = props.loadedKeys;\n }\n\n return newState;\n }\n }]);\n\n return Tree;\n}(__WEBPACK_IMPORTED_MODULE_0_react__[\"Component\"]);\n\nTree.propTypes = {\n prefixCls: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,\n className: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,\n style: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object,\n tabIndex: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number]),\n children: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.any,\n treeData: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.array,\n showLine: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n showIcon: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n icon: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func]),\n focusable: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n selectable: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n disabled: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n multiple: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n checkable: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node]),\n checkStrictly: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n draggable: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n defaultExpandParent: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n autoExpandParent: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n defaultExpandAll: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n defaultExpandedKeys: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string),\n expandedKeys: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string),\n defaultCheckedKeys: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string),\n checkedKeys: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number])), __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object]),\n defaultSelectedKeys: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string),\n selectedKeys: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string),\n onClick: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n onDoubleClick: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n onExpand: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n onCheck: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n onSelect: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n onLoad: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n loadData: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n loadedKeys: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string),\n onMouseEnter: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n onMouseLeave: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n onRightClick: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n onDragStart: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n onDragEnter: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n onDragOver: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n onDragLeave: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n onDragEnd: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n onDrop: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n filterTreeNode: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n motion: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object,\n switcherIcon: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func])\n};\nTree.defaultProps = {\n prefixCls: 'rc-tree',\n showLine: false,\n showIcon: true,\n selectable: true,\n multiple: false,\n checkable: false,\n disabled: false,\n checkStrictly: false,\n draggable: false,\n defaultExpandParent: true,\n autoExpandParent: false,\n defaultExpandAll: false,\n defaultExpandedKeys: [],\n defaultCheckedKeys: [],\n defaultSelectedKeys: []\n};\nObject(__WEBPACK_IMPORTED_MODULE_5_react_lifecycles_compat__[\"polyfill\"])(Tree);\n/* harmony default export */ __webpack_exports__[\"a\"] = (Tree);\n\n/***/ }),\n/* 1592 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Base_BaseSelector__ = __webpack_require__(202);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util__ = __webpack_require__(34);\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (typeof call === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\n\n\nvar Selector = Object(__WEBPACK_IMPORTED_MODULE_1__Base_BaseSelector__[\"a\" /* default */])('single');\n\nvar SingleSelector =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inherits(SingleSelector, _React$Component);\n\n function SingleSelector() {\n var _this;\n\n _classCallCheck(this, SingleSelector);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(SingleSelector).call(this));\n\n _defineProperty(_assertThisInitialized(_this), \"focus\", function () {\n _this.selectorRef.current.focus();\n });\n\n _defineProperty(_assertThisInitialized(_this), \"blur\", function () {\n _this.selectorRef.current.blur();\n });\n\n _defineProperty(_assertThisInitialized(_this), \"renderSelection\", function () {\n var _this$props = _this.props,\n selectorValueList = _this$props.selectorValueList,\n placeholder = _this$props.placeholder,\n prefixCls = _this$props.prefixCls;\n var innerNode;\n\n if (selectorValueList.length) {\n var _selectorValueList$ = selectorValueList[0],\n label = _selectorValueList$.label,\n value = _selectorValueList$.value;\n innerNode = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\"span\", {\n key: \"value\",\n title: Object(__WEBPACK_IMPORTED_MODULE_2__util__[\"r\" /* toTitle */])(label),\n className: \"\".concat(prefixCls, \"-selection-selected-value\")\n }, label || value);\n } else {\n innerNode = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\"span\", {\n key: \"placeholder\",\n className: \"\".concat(prefixCls, \"-selection__placeholder\")\n }, placeholder);\n }\n\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\"span\", {\n className: \"\".concat(prefixCls, \"-selection__rendered\")\n }, innerNode);\n });\n\n _this.selectorRef = Object(__WEBPACK_IMPORTED_MODULE_2__util__[\"g\" /* createRef */])();\n return _this;\n }\n\n _createClass(SingleSelector, [{\n key: \"render\",\n value: function render() {\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Selector, _extends({}, this.props, {\n ref: this.selectorRef,\n renderSelection: this.renderSelection\n }));\n }\n }]);\n\n return SingleSelector;\n}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);\n\n_defineProperty(SingleSelector, \"propTypes\", _objectSpread({}, __WEBPACK_IMPORTED_MODULE_1__Base_BaseSelector__[\"c\" /* selectorPropTypes */]));\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (SingleSelector);\n\n/***/ }),\n/* 1593 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"b\", function() { return multipleSelectorContextTypes; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Base_BaseSelector__ = __webpack_require__(202);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util__ = __webpack_require__(34);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__SelectorList__ = __webpack_require__(1594);\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (typeof call === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\n\n\n\n\nvar Selector = Object(__WEBPACK_IMPORTED_MODULE_2__Base_BaseSelector__[\"a\" /* default */])('multiple');\nvar multipleSelectorContextTypes = {\n onMultipleSelectorRemove: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired\n};\n\nvar MultipleSelector =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inherits(MultipleSelector, _React$Component);\n\n function MultipleSelector() {\n var _this;\n\n _classCallCheck(this, MultipleSelector);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(MultipleSelector).call(this));\n\n _defineProperty(_assertThisInitialized(_this), \"onPlaceholderClick\", function () {\n _this.inputRef.current.focus();\n });\n\n _defineProperty(_assertThisInitialized(_this), \"focus\", function () {\n _this.inputRef.current.focus();\n });\n\n _defineProperty(_assertThisInitialized(_this), \"blur\", function () {\n _this.inputRef.current.blur();\n });\n\n _defineProperty(_assertThisInitialized(_this), \"renderPlaceholder\", function () {\n var _this$props = _this.props,\n prefixCls = _this$props.prefixCls,\n placeholder = _this$props.placeholder,\n searchPlaceholder = _this$props.searchPlaceholder,\n searchValue = _this$props.searchValue,\n selectorValueList = _this$props.selectorValueList;\n var currentPlaceholder = placeholder || searchPlaceholder;\n if (!currentPlaceholder) return null;\n var hidden = searchValue || selectorValueList.length; // [Legacy] Not remove the placeholder\n\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\"span\", {\n style: {\n display: hidden ? 'none' : 'block'\n },\n onClick: _this.onPlaceholderClick,\n className: \"\".concat(prefixCls, \"-search__field__placeholder\")\n }, currentPlaceholder);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"renderSelection\", function () {\n var onMultipleSelectorRemove = _this.context.rcTreeSelect.onMultipleSelectorRemove;\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__SelectorList__[\"a\" /* default */], _extends({}, _this.props, {\n onMultipleSelectorRemove: onMultipleSelectorRemove,\n inputRef: _this.inputRef\n }));\n });\n\n _this.inputRef = Object(__WEBPACK_IMPORTED_MODULE_3__util__[\"g\" /* createRef */])();\n return _this;\n }\n\n _createClass(MultipleSelector, [{\n key: \"render\",\n value: function render() {\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Selector, _extends({}, this.props, {\n tabIndex: -1,\n showArrow: false,\n renderSelection: this.renderSelection,\n renderPlaceholder: this.renderPlaceholder\n }));\n }\n }]);\n\n return MultipleSelector;\n}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);\n\n_defineProperty(MultipleSelector, \"propTypes\", _objectSpread({}, __WEBPACK_IMPORTED_MODULE_2__Base_BaseSelector__[\"c\" /* selectorPropTypes */], {\n selectorValueList: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.array,\n disabled: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n searchValue: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,\n labelInValue: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n maxTagCount: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number,\n maxTagPlaceholder: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func]),\n onChoiceAnimationLeave: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func\n}));\n\n_defineProperty(MultipleSelector, \"contextTypes\", {\n rcTreeSelect: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.shape(_objectSpread({}, multipleSelectorContextTypes, {\n onSearchInputChange: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func\n }))\n});\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (MultipleSelector);\n\n/***/ }),\n/* 1594 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rc_animate_es_CSSMotionList__ = __webpack_require__(1595);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Selection__ = __webpack_require__(1597);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__SearchInput__ = __webpack_require__(523);\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\n\n\n\n\n\nvar NODE_SELECTOR = 'selector';\nvar NODE_SEARCH = 'search';\nvar TREE_SELECT_EMPTY_VALUE_KEY = 'RC_TREE_SELECT_EMPTY_VALUE_KEY';\n\nvar SelectorList = function SelectorList(props) {\n var selectorValueList = props.selectorValueList,\n choiceTransitionName = props.choiceTransitionName,\n prefixCls = props.prefixCls,\n onChoiceAnimationLeave = props.onChoiceAnimationLeave,\n labelInValue = props.labelInValue,\n maxTagCount = props.maxTagCount,\n maxTagPlaceholder = props.maxTagPlaceholder,\n showSearch = props.showSearch,\n valueEntities = props.valueEntities,\n inputRef = props.inputRef,\n onMultipleSelectorRemove = props.onMultipleSelectorRemove;\n var nodeKeys = []; // Check if `maxTagCount` is set\n\n var myValueList = selectorValueList;\n\n if (maxTagCount >= 0) {\n myValueList = selectorValueList.slice(0, maxTagCount);\n } // Basic selectors\n\n\n myValueList.forEach(function (_ref) {\n var label = _ref.label,\n value = _ref.value;\n\n var _ref2 = (valueEntities[value] || {}).node || {},\n _ref2$props = _ref2.props;\n\n _ref2$props = _ref2$props === void 0 ? {} : _ref2$props;\n var disabled = _ref2$props.disabled;\n nodeKeys.push({\n key: value,\n type: NODE_SELECTOR,\n label: label,\n value: value,\n disabled: disabled\n });\n }); // Rest node count\n\n if (maxTagCount >= 0 && maxTagCount < selectorValueList.length) {\n var content = \"+ \".concat(selectorValueList.length - maxTagCount, \" ...\");\n\n if (typeof maxTagPlaceholder === 'string') {\n content = maxTagPlaceholder;\n } else if (typeof maxTagPlaceholder === 'function') {\n var restValueList = selectorValueList.slice(maxTagCount);\n content = maxTagPlaceholder(labelInValue ? restValueList : restValueList.map(function (_ref3) {\n var value = _ref3.value;\n return value;\n }));\n }\n\n nodeKeys.push({\n key: 'rc-tree-select-internal-max-tag-counter',\n type: NODE_SELECTOR,\n label: content,\n value: null,\n disabled: true\n });\n } // Search node\n\n\n if (showSearch !== false) {\n nodeKeys.push({\n key: '__input',\n type: NODE_SEARCH\n });\n }\n\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_rc_animate_es_CSSMotionList__[\"a\" /* default */], {\n keys: nodeKeys,\n className: \"\".concat(prefixCls, \"-selection__rendered\"),\n component: \"ul\",\n role: \"menubar\",\n motionName: choiceTransitionName,\n onLeaveEnd: onChoiceAnimationLeave\n }, function (_ref4) {\n var type = _ref4.type,\n label = _ref4.label,\n value = _ref4.value,\n disabled = _ref4.disabled,\n className = _ref4.className,\n style = _ref4.style;\n\n if (type === NODE_SELECTOR) {\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__Selection__[\"a\" /* default */], _extends({}, props, {\n className: className,\n style: style,\n key: value || TREE_SELECT_EMPTY_VALUE_KEY,\n label: label,\n value: value,\n onRemove: disabled ? null : onMultipleSelectorRemove\n }));\n }\n\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\"li\", {\n className: \"\".concat(prefixCls, \"-search \").concat(prefixCls, \"-search--inline\")\n }, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__SearchInput__[\"a\" /* default */], _extends({}, props, {\n ref: inputRef,\n needAlign: true\n })));\n });\n};\n\nSelectorList.propTypes = {\n selectorValueList: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.array,\n choiceTransitionName: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,\n prefixCls: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,\n onChoiceAnimationLeave: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n labelInValue: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n showSearch: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n maxTagCount: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number,\n maxTagPlaceholder: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func]),\n valueEntities: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object,\n inputRef: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n onMultipleSelectorRemove: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func\n};\n/* harmony default export */ __webpack_exports__[\"a\"] = (SelectorList);\n\n/***/ }),\n/* 1595 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* unused harmony export genCSSMotionList */\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(24);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__ = __webpack_require__(8);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(7);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass__ = __webpack_require__(55);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react_lifecycles_compat__ = __webpack_require__(12);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_prop_types__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__CSSMotion__ = __webpack_require__(519);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__util_motion__ = __webpack_require__(520);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__util_diff__ = __webpack_require__(1596);\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar MOTION_PROP_NAMES = Object.keys(__WEBPACK_IMPORTED_MODULE_9__CSSMotion__[\"a\" /* MotionPropTypes */]);\n\nfunction genCSSMotionList(transitionSupport) {\n var CSSMotion = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : __WEBPACK_IMPORTED_MODULE_9__CSSMotion__[\"b\" /* default */];\n\n var CSSMotionList = function (_React$Component) {\n __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default()(CSSMotionList, _React$Component);\n\n function CSSMotionList() {\n var _ref;\n\n var _temp, _this, _ret;\n\n __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, CSSMotionList);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default()(this, (_ref = CSSMotionList.__proto__ || Object.getPrototypeOf(CSSMotionList)).call.apply(_ref, [this].concat(args))), _this), _this.state = {\n keyEntities: []\n }, _this.removeKey = function (removeKey) {\n _this.setState(function (_ref2) {\n var keyEntities = _ref2.keyEntities;\n return {\n keyEntities: keyEntities.map(function (entity) {\n if (entity.key !== removeKey) return entity;\n return __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, entity, {\n status: __WEBPACK_IMPORTED_MODULE_11__util_diff__[\"d\" /* STATUS_REMOVED */]\n });\n })\n };\n });\n }, _temp), __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default()(_this, _ret);\n }\n\n __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass___default()(CSSMotionList, [{\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var keyEntities = this.state.keyEntities;\n\n var _props = this.props,\n component = _props.component,\n children = _props.children,\n restProps = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['component', 'children']);\n\n var Component = component || __WEBPACK_IMPORTED_MODULE_6_react___default.a.Fragment;\n\n var motionProps = {};\n MOTION_PROP_NAMES.forEach(function (prop) {\n motionProps[prop] = restProps[prop];\n delete restProps[prop];\n });\n delete restProps.keys;\n\n return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(\n Component,\n restProps,\n keyEntities.map(function (_ref3) {\n var status = _ref3.status,\n eventProps = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default()(_ref3, ['status']);\n\n var visible = status === __WEBPACK_IMPORTED_MODULE_11__util_diff__[\"a\" /* STATUS_ADD */] || status === __WEBPACK_IMPORTED_MODULE_11__util_diff__[\"b\" /* STATUS_KEEP */];\n return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(\n CSSMotion,\n __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, motionProps, {\n key: eventProps.key,\n visible: visible,\n eventProps: eventProps,\n onLeaveEnd: function onLeaveEnd() {\n if (motionProps.onLeaveEnd) {\n motionProps.onLeaveEnd.apply(motionProps, arguments);\n }\n _this2.removeKey(eventProps.key);\n }\n }),\n children\n );\n })\n );\n }\n }], [{\n key: 'getDerivedStateFromProps',\n value: function getDerivedStateFromProps(_ref4, _ref5) {\n var keys = _ref4.keys;\n var keyEntities = _ref5.keyEntities;\n\n var parsedKeyObjects = Object(__WEBPACK_IMPORTED_MODULE_11__util_diff__[\"f\" /* parseKeys */])(keys);\n\n // Always as keep when motion not support\n if (!transitionSupport) {\n return {\n keyEntities: parsedKeyObjects.map(function (obj) {\n return __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, obj, { status: __WEBPACK_IMPORTED_MODULE_11__util_diff__[\"b\" /* STATUS_KEEP */] });\n })\n };\n }\n\n var mixedKeyEntities = Object(__WEBPACK_IMPORTED_MODULE_11__util_diff__[\"e\" /* diffKeys */])(keyEntities, parsedKeyObjects);\n\n var keyEntitiesLen = keyEntities.length;\n return {\n keyEntities: mixedKeyEntities.filter(function (entity) {\n // IE 9 not support Array.prototype.find\n var prevEntity = null;\n for (var i = 0; i < keyEntitiesLen; i += 1) {\n var currentEntity = keyEntities[i];\n if (currentEntity.key === entity.key) {\n prevEntity = currentEntity;\n break;\n }\n }\n\n // Remove if already mark as removed\n if (prevEntity && prevEntity.status === __WEBPACK_IMPORTED_MODULE_11__util_diff__[\"d\" /* STATUS_REMOVED */] && entity.status === __WEBPACK_IMPORTED_MODULE_11__util_diff__[\"c\" /* STATUS_REMOVE */]) {\n return false;\n }\n return true;\n })\n };\n }\n }]);\n\n return CSSMotionList;\n }(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component);\n\n CSSMotionList.propTypes = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, CSSMotion.propTypes, {\n component: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool]),\n keys: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.array\n });\n CSSMotionList.defaultProps = {\n component: 'div'\n };\n\n\n Object(__WEBPACK_IMPORTED_MODULE_7_react_lifecycles_compat__[\"polyfill\"])(CSSMotionList);\n\n return CSSMotionList;\n}\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (genCSSMotionList(__WEBPACK_IMPORTED_MODULE_10__util_motion__[\"c\" /* supportTransition */]));\n\n/***/ }),\n/* 1596 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return STATUS_ADD; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"b\", function() { return STATUS_KEEP; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"c\", function() { return STATUS_REMOVE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"d\", function() { return STATUS_REMOVED; });\n/* unused harmony export wrapKeyToObject */\n/* harmony export (immutable) */ __webpack_exports__[\"f\"] = parseKeys;\n/* harmony export (immutable) */ __webpack_exports__[\"e\"] = diffKeys;\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(8);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);\n\nvar STATUS_ADD = 'add';\nvar STATUS_KEEP = 'keep';\nvar STATUS_REMOVE = 'remove';\nvar STATUS_REMOVED = 'removed';\n\nfunction wrapKeyToObject(key) {\n var keyObj = void 0;\n if (key && typeof key === 'object' && 'key' in key) {\n keyObj = key;\n } else {\n keyObj = { key: key };\n }\n return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, keyObj, {\n key: String(keyObj.key)\n });\n}\n\nfunction parseKeys() {\n var keys = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n\n return keys.map(wrapKeyToObject);\n}\n\nfunction diffKeys() {\n var prevKeys = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var currentKeys = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n\n var list = [];\n var currentIndex = 0;\n var currentLen = currentKeys.length;\n\n var prevKeyObjects = parseKeys(prevKeys);\n var currentKeyObjects = parseKeys(currentKeys);\n\n // Check prev keys to insert or keep\n prevKeyObjects.forEach(function (keyObj) {\n var hit = false;\n\n for (var i = currentIndex; i < currentLen; i += 1) {\n var currentKeyObj = currentKeyObjects[i];\n if (currentKeyObj.key === keyObj.key) {\n // New added keys should add before current key\n if (currentIndex < i) {\n list = list.concat(currentKeyObjects.slice(currentIndex, i).map(function (obj) {\n return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, obj, { status: STATUS_ADD });\n }));\n currentIndex = i;\n }\n list.push(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, currentKeyObj, {\n status: STATUS_KEEP\n }));\n currentIndex += 1;\n\n hit = true;\n break;\n }\n }\n\n // If not hit, it means key is removed\n if (!hit) {\n list.push(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, keyObj, {\n status: STATUS_REMOVE\n }));\n }\n });\n\n // Add rest to the list\n if (currentIndex < currentLen) {\n list = list.concat(currentKeyObjects.slice(currentIndex).map(function (obj) {\n return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, obj, { status: STATUS_ADD });\n }));\n }\n\n /**\n * Merge same key when it remove and add again:\n * [1 - add, 2 - keep, 1 - remove] -> [1 - keep, 2 - keep]\n */\n var keys = {};\n list.forEach(function (_ref) {\n var key = _ref.key;\n\n keys[key] = (keys[key] || 0) + 1;\n });\n var duplicatedKeys = Object.keys(keys).filter(function (key) {\n return keys[key] > 1;\n });\n duplicatedKeys.forEach(function (matchKey) {\n // Remove `STATUS_REMOVE` node.\n list = list.filter(function (_ref2) {\n var key = _ref2.key,\n status = _ref2.status;\n return key !== matchKey || status !== STATUS_REMOVE;\n });\n\n // Update `STATUS_ADD` to `STATUS_KEEP`\n list.forEach(function (node) {\n if (node.key === matchKey) {\n node.status = STATUS_KEEP;\n }\n });\n });\n\n return list;\n}\n\n/***/ }),\n/* 1597 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_classnames__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util__ = __webpack_require__(34);\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (typeof call === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\n\n\n\n\nvar Selection =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inherits(Selection, _React$Component);\n\n function Selection() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Selection);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Selection)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_this), \"onRemove\", function (event) {\n var _this$props = _this.props,\n onRemove = _this$props.onRemove,\n value = _this$props.value;\n onRemove(event, value);\n event.stopPropagation();\n });\n\n return _this;\n }\n\n _createClass(Selection, [{\n key: \"render\",\n value: function render() {\n var _this$props2 = this.props,\n prefixCls = _this$props2.prefixCls,\n maxTagTextLength = _this$props2.maxTagTextLength,\n className = _this$props2.className,\n style = _this$props2.style,\n label = _this$props2.label,\n value = _this$props2.value,\n onRemove = _this$props2.onRemove,\n removeIcon = _this$props2.removeIcon;\n var content = label || value;\n\n if (maxTagTextLength && typeof content === 'string' && content.length > maxTagTextLength) {\n content = \"\".concat(content.slice(0, maxTagTextLength), \"...\");\n }\n\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\"li\", _extends({\n style: _objectSpread({}, __WEBPACK_IMPORTED_MODULE_3__util__[\"b\" /* UNSELECTABLE_STYLE */], {}, style)\n }, __WEBPACK_IMPORTED_MODULE_3__util__[\"a\" /* UNSELECTABLE_ATTRIBUTE */], {\n role: \"menuitem\",\n className: __WEBPACK_IMPORTED_MODULE_2_classnames___default()(\"\".concat(prefixCls, \"-selection__choice\"), className),\n title: Object(__WEBPACK_IMPORTED_MODULE_3__util__[\"r\" /* toTitle */])(label)\n }), onRemove && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\"span\", {\n className: \"\".concat(prefixCls, \"-selection__choice__remove\"),\n onClick: this.onRemove\n }, typeof removeIcon === 'function' ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(removeIcon, _objectSpread({}, this.props)) : removeIcon), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\"span\", {\n className: \"\".concat(prefixCls, \"-selection__choice__content\")\n }, content));\n }\n }]);\n\n return Selection;\n}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);\n\n_defineProperty(Selection, \"propTypes\", {\n prefixCls: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,\n maxTagTextLength: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number,\n onRemove: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,\n className: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,\n style: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object,\n label: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node,\n value: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number]),\n removeIcon: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func])\n});\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (Selection);\n\n/***/ }),\n/* 1598 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Base_BasePopup__ = __webpack_require__(203);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__SearchInput__ = __webpack_require__(523);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util__ = __webpack_require__(34);\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (typeof call === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\n\n\n\n\n\nvar SinglePopup =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inherits(SinglePopup, _React$Component);\n\n function SinglePopup() {\n var _this;\n\n _classCallCheck(this, SinglePopup);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(SinglePopup).call(this));\n\n _defineProperty(_assertThisInitialized(_this), \"onPlaceholderClick\", function () {\n _this.inputRef.current.focus();\n });\n\n _defineProperty(_assertThisInitialized(_this), \"getTree\", function () {\n return _this.popupRef.current && _this.popupRef.current.getTree();\n });\n\n _defineProperty(_assertThisInitialized(_this), \"renderPlaceholder\", function () {\n var _this$props = _this.props,\n searchPlaceholder = _this$props.searchPlaceholder,\n searchValue = _this$props.searchValue,\n prefixCls = _this$props.prefixCls;\n\n if (!searchPlaceholder) {\n return null;\n }\n\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\"span\", {\n style: {\n display: searchValue ? 'none' : 'block'\n },\n onClick: _this.onPlaceholderClick,\n className: \"\".concat(prefixCls, \"-search__field__placeholder\")\n }, searchPlaceholder);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"renderSearch\", function () {\n var _this$props2 = _this.props,\n showSearch = _this$props2.showSearch,\n dropdownPrefixCls = _this$props2.dropdownPrefixCls;\n\n if (!showSearch) {\n return null;\n }\n\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\"span\", {\n ref: _this.searchRef,\n className: \"\".concat(dropdownPrefixCls, \"-search\")\n }, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__SearchInput__[\"a\" /* default */], _extends({}, _this.props, {\n ref: _this.inputRef,\n renderPlaceholder: _this.renderPlaceholder\n })));\n });\n\n _this.inputRef = Object(__WEBPACK_IMPORTED_MODULE_4__util__[\"g\" /* createRef */])();\n _this.searchRef = Object(__WEBPACK_IMPORTED_MODULE_4__util__[\"g\" /* createRef */])();\n _this.popupRef = Object(__WEBPACK_IMPORTED_MODULE_4__util__[\"g\" /* createRef */])();\n return _this;\n }\n\n _createClass(SinglePopup, [{\n key: \"render\",\n value: function render() {\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__Base_BasePopup__[\"a\" /* default */], _extends({\n ref: this.popupRef\n }, this.props, {\n renderSearch: this.renderSearch\n }));\n }\n }]);\n\n return SinglePopup;\n}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);\n\n_defineProperty(SinglePopup, \"propTypes\", _objectSpread({}, __WEBPACK_IMPORTED_MODULE_2__Base_BasePopup__[\"a\" /* default */].propTypes, {\n searchValue: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,\n showSearch: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n dropdownPrefixCls: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,\n disabled: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,\n searchPlaceholder: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string\n}));\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (SinglePopup);\n\n/***/ }),\n/* 1599 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Base_BasePopup__ = __webpack_require__(203);\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (__WEBPACK_IMPORTED_MODULE_0__Base_BasePopup__[\"a\" /* default */]);\n\n/***/ }),\n/* 1600 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\n\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar __DEV__ = process.env.NODE_ENV !== 'production';\n\nvar warning = function() {};\n\nif (__DEV__) {\n var printWarning = function printWarning(format, args) {\n var len = arguments.length;\n args = new Array(len > 1 ? len - 1 : 0);\n for (var key = 1; key < len; key++) {\n args[key - 1] = arguments[key];\n }\n var argIndex = 0;\n var message = 'Warning: ' +\n format.replace(/%s/g, function() {\n return args[argIndex++];\n });\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n }\n\n warning = function(condition, format, args) {\n var len = arguments.length;\n args = new Array(len > 2 ? len - 2 : 0);\n for (var key = 2; key < len; key++) {\n args[key - 2] = arguments[key];\n }\n if (format === undefined) {\n throw new Error(\n '`warning(condition, format, ...args)` requires a warning ' +\n 'message argument'\n );\n }\n if (!condition) {\n printWarning.apply(null, [format].concat(args));\n }\n };\n}\n\nmodule.exports = warning;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5)))\n\n/***/ }),\n/* 1601 */\n/***/ (function(module, exports, __webpack_require__) {\n\n__webpack_require__(1602);\nmodule.exports = __webpack_require__(1603);\n\n\n/***/ }),\n/* 1602 */\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n/* 1603 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _PageLayout = __webpack_require__(1604);\n\nvar _PageLayout2 = _interopRequireDefault(_PageLayout);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nexports[\"default\"] = _PageLayout2[\"default\"];\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1604 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _Header = __webpack_require__(1605);\n\nvar _Header2 = _interopRequireDefault(_Header);\n\nvar _Content = __webpack_require__(1606);\n\nvar _Content2 = _interopRequireDefault(_Content);\n\nvar _LeftContent = __webpack_require__(1610);\n\nvar _LeftContent2 = _interopRequireDefault(_LeftContent);\n\nvar _RightContent = __webpack_require__(1611);\n\nvar _RightContent2 = _interopRequireDefault(_RightContent);\n\nvar _SearchArea = __webpack_require__(1612);\n\nvar _SearchArea2 = _interopRequireDefault(_SearchArea);\n\nvar _TableContent = __webpack_require__(1613);\n\nvar _TableContent2 = _interopRequireDefault(_TableContent);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = {};\nvar defaultProps = {};\n\nvar PageLayout = function (_Component) {\n _inherits(PageLayout, _Component);\n\n function PageLayout() {\n _classCallCheck(this, PageLayout);\n\n return _possibleConstructorReturn(this, _Component.apply(this, arguments));\n }\n\n PageLayout.prototype.render = function render() {\n var _props = this.props,\n className = _props.className,\n children = _props.children,\n other = _objectWithoutProperties(_props, ['className', 'children']);\n\n var classes = 'bee-page-layout';\n if (className) classes += ' ' + className;\n return _react2[\"default\"].createElement(\n 'div',\n _extends({ className: classes }, other),\n this.props.children\n );\n };\n\n return PageLayout;\n}(_react.Component);\n\nPageLayout.propTypes = propTypes;\nPageLayout.defaultProps = defaultProps;\nPageLayout.Header = _Header2[\"default\"];\nPageLayout.Content = _Content2[\"default\"];\nPageLayout.LeftContent = _LeftContent2[\"default\"];\nPageLayout.RightContent = _RightContent2[\"default\"];\nPageLayout.SearchArea = _SearchArea2[\"default\"];\nPageLayout.TableContent = _TableContent2[\"default\"];\n\nexports[\"default\"] = PageLayout;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1605 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = {};\nvar defaultProps = {};\n\nvar Header = function (_Component) {\n _inherits(Header, _Component);\n\n function Header(props) {\n _classCallCheck(this, Header);\n\n return _possibleConstructorReturn(this, _Component.call(this, props));\n }\n\n Header.prototype.render = function render() {\n var _props = this.props,\n className = _props.className,\n children = _props.children,\n other = _objectWithoutProperties(_props, ['className', 'children']);\n\n var classes = 'header';\n if (className) classes += ' ' + className;\n return _react2[\"default\"].createElement(\n 'div',\n _extends({ className: classes }, other),\n children\n );\n };\n\n return Header;\n}(_react.Component);\n\nHeader.propTypes = propTypes;\nHeader.defaultProps = defaultProps;\nexports[\"default\"] = Header;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1606 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _beeLayout = __webpack_require__(204);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = {};\nvar defaultProps = {};\n\nvar Content = function (_Component) {\n _inherits(Content, _Component);\n\n function Content(props) {\n _classCallCheck(this, Content);\n\n return _possibleConstructorReturn(this, _Component.call(this, props));\n }\n\n Content.prototype.render = function render() {\n var _props = this.props,\n className = _props.className,\n children = _props.children,\n other = _objectWithoutProperties(_props, ['className', 'children']);\n\n var classes = 'content';\n if (className) classes += ' ' + className;\n return _react2[\"default\"].createElement(\n _beeLayout.Row,\n _extends({ className: classes }, other),\n this.props.children\n );\n };\n\n return Content;\n}(_react.Component);\n\nContent.propTypes = propTypes;\nContent.defaultProps = defaultProps;\nexports[\"default\"] = Content;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1607 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = {\n componentClass: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].element, _propTypes2[\"default\"].string]),\n\n /**\n * xs显示列数\n */\n xs: _propTypes2[\"default\"].number,\n /**\n * sm显示列数\n */\n sm: _propTypes2[\"default\"].number,\n /**\n * md显示列数\n */\n md: _propTypes2[\"default\"].number,\n /**\n * lg显示列数\n */\n lg: _propTypes2[\"default\"].number,\n /**\n * xs偏移列数\n */\n xsOffset: _propTypes2[\"default\"].number,\n /**\n * sm偏移列数\n */\n smOffset: _propTypes2[\"default\"].number,\n /**\n * md偏移列数\n */\n mdOffset: _propTypes2[\"default\"].number,\n /**\n * lg偏移列数\n */\n lgOffset: _propTypes2[\"default\"].number,\n /**\n * xs右偏移列数\n */\n xsPush: _propTypes2[\"default\"].number,\n /**\n * sm右偏移列数\n */\n smPush: _propTypes2[\"default\"].number,\n /**\n * md右偏移列数\n */\n mdPush: _propTypes2[\"default\"].number,\n /**\n * lg右偏移列数\n */\n lgPush: _propTypes2[\"default\"].number,\n /**\n * xs左偏移列数\n */\n xsPull: _propTypes2[\"default\"].number,\n /**\n * sm左偏移列数\n */\n smPull: _propTypes2[\"default\"].number,\n /**\n * md左偏移列数\n */\n mdPull: _propTypes2[\"default\"].number,\n /**\n * lg左偏移列数\n */\n lgPull: _propTypes2[\"default\"].number\n};\n\nvar defaultProps = {\n componentClass: 'div',\n clsPrefix: 'u-col'\n};\n\nvar DEVICE_SIZES = ['lg', 'md', 'sm', 'xs'];\n\nvar Col = function (_Component) {\n _inherits(Col, _Component);\n\n function Col() {\n _classCallCheck(this, Col);\n\n return _possibleConstructorReturn(this, _Component.apply(this, arguments));\n }\n\n Col.prototype.render = function render() {\n var _props = this.props,\n Component = _props.componentClass,\n className = _props.className,\n clsPrefix = _props.clsPrefix,\n others = _objectWithoutProperties(_props, ['componentClass', 'className', 'clsPrefix']);\n\n var tbClass = [];\n /**\n * 对传入props做样式转化\n * @type {[type]}\n */\n DEVICE_SIZES.forEach(function (size) {\n function popProp(propSuffix, modifier) {\n var propName = '' + size + propSuffix;\n var propValue = others[propName];\n\n if (propValue != undefined && propValue != null) {\n tbClass.push(clsPrefix + '-' + size + modifier + '-' + propValue);\n }\n\n delete others[propName];\n }\n\n popProp('', '');\n popProp('Offset', '-offset');\n popProp('Push', '-push');\n popProp('Pull', '-pull');\n });\n\n return _react2[\"default\"].createElement(\n Component,\n _extends({\n className: (0, _classnames2[\"default\"])(tbClass, className)\n }, others),\n this.props.children\n );\n };\n\n return Col;\n}(_react.Component);\n\nCol.defaultProps = defaultProps;\nCol.propTypes = propTypes;\n\nexports[\"default\"] = Col;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1608 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = {\n componentClass: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].element, _propTypes2[\"default\"].string])\n};\n\nvar defaultProps = {\n componentClass: 'div',\n clsPrefix: 'u-row'\n};\n\nvar Row = function (_Component) {\n _inherits(Row, _Component);\n\n function Row() {\n _classCallCheck(this, Row);\n\n return _possibleConstructorReturn(this, _Component.apply(this, arguments));\n }\n\n Row.prototype.render = function render() {\n var _props = this.props,\n Component = _props.componentClass,\n clsPrefix = _props.clsPrefix,\n className = _props.className,\n others = _objectWithoutProperties(_props, ['componentClass', 'clsPrefix', 'className']);\n\n var bsclass = '' + clsPrefix;\n\n return _react2[\"default\"].createElement(\n Component,\n _extends({}, others, {\n className: (0, _classnames2[\"default\"])(bsclass, className)\n }),\n this.props.children\n );\n };\n\n return Row;\n}(_react.Component);\n\nRow.propTypes = propTypes;\nRow.defaultProps = defaultProps;\n\nexports[\"default\"] = Row;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1609 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = {\n /**\n * Adds `container-fluid` class.\n */\n fluid: _propTypes2[\"default\"].bool,\n /**\n * You can use a custom element for this component\n */\n componentClass: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].element, _propTypes2[\"default\"].string])\n};\n\nvar defaultProps = {\n componentClass: 'div',\n fluid: false,\n clsPrefix: 'u-container'\n};\n\nvar Con = function (_React$Component) {\n _inherits(Con, _React$Component);\n\n function Con() {\n _classCallCheck(this, Con);\n\n return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n Con.prototype.render = function render() {\n var _tbclass;\n\n var _props = this.props,\n fluid = _props.fluid,\n Component = _props.componentClass,\n clsPrefix = _props.clsPrefix,\n className = _props.className,\n others = _objectWithoutProperties(_props, ['fluid', 'componentClass', 'clsPrefix', 'className']);\n\n var tbclass = (_tbclass = {}, _defineProperty(_tbclass, '' + clsPrefix, !fluid), _defineProperty(_tbclass, clsPrefix + '-fluid', fluid), _tbclass);\n\n return _react2[\"default\"].createElement(\n Component,\n _extends({}, others, {\n className: (0, _classnames2[\"default\"])(tbclass, className)\n }),\n this.props.children\n );\n };\n\n return Con;\n}(_react2[\"default\"].Component);\n\nCon.propTypes = propTypes;\nCon.defaultProps = defaultProps;\n\nexports[\"default\"] = Con;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1610 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _beeLayout = __webpack_require__(204);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = {};\nvar defaultProps = {};\n\nvar LeftContent = function (_Component) {\n _inherits(LeftContent, _Component);\n\n function LeftContent(props) {\n _classCallCheck(this, LeftContent);\n\n return _possibleConstructorReturn(this, _Component.call(this, props));\n }\n\n LeftContent.prototype.render = function render() {\n var _props = this.props,\n className = _props.className,\n children = _props.children,\n other = _objectWithoutProperties(_props, ['className', 'children']);\n\n var classes = 'left-content';\n if (className) classes += ' ' + className;\n return _react2[\"default\"].createElement(\n _beeLayout.Col,\n _extends({ className: classes, md: 4, sm: 6, xs: 12 }, other),\n this.props.children\n );\n };\n\n return LeftContent;\n}(_react.Component);\n\nLeftContent.propTypes = propTypes;\nLeftContent.defaultProps = defaultProps;\nexports[\"default\"] = LeftContent;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1611 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _beeLayout = __webpack_require__(204);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = {};\nvar defaultProps = {};\n\nvar RightContent = function (_Component) {\n _inherits(RightContent, _Component);\n\n function RightContent(props) {\n _classCallCheck(this, RightContent);\n\n return _possibleConstructorReturn(this, _Component.call(this, props));\n }\n\n RightContent.prototype.render = function render() {\n var _props = this.props,\n className = _props.className,\n children = _props.children,\n other = _objectWithoutProperties(_props, ['className', 'children']);\n\n var classes = 'right-content';\n if (className) classes += ' ' + className;\n return _react2[\"default\"].createElement(\n _beeLayout.Col,\n _extends({ className: classes, md: 8, sm: 6, xs: 12 }, other),\n this.props.children\n );\n };\n\n return RightContent;\n}(_react.Component);\n\nRightContent.propTypes = propTypes;\nRightContent.defaultProps = defaultProps;\nexports[\"default\"] = RightContent;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1612 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = {};\nvar defaultProps = {};\n\nvar SearchArea = function (_Component) {\n _inherits(SearchArea, _Component);\n\n function SearchArea(props) {\n _classCallCheck(this, SearchArea);\n\n return _possibleConstructorReturn(this, _Component.call(this, props));\n }\n\n SearchArea.prototype.render = function render() {\n var _props = this.props,\n className = _props.className,\n children = _props.children,\n other = _objectWithoutProperties(_props, ['className', 'children']);\n\n var classes = 'search-area';\n if (className) classes += ' ' + className;\n return _react2[\"default\"].createElement(\n 'div',\n _extends({ className: classes }, other),\n this.props.children\n );\n };\n\n return SearchArea;\n}(_react.Component);\n\nSearchArea.propTypes = propTypes;\nSearchArea.defaultProps = defaultProps;\nexports[\"default\"] = SearchArea;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1613 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = {};\nvar defaultProps = {};\n\nvar TableContent = function (_Component) {\n _inherits(TableContent, _Component);\n\n function TableContent(props) {\n _classCallCheck(this, TableContent);\n\n return _possibleConstructorReturn(this, _Component.call(this, props));\n }\n\n TableContent.prototype.render = function render() {\n var _props = this.props,\n className = _props.className,\n children = _props.children,\n other = _objectWithoutProperties(_props, ['className', 'children']);\n\n var classes = 'table-container';\n if (className) classes += ' ' + className;\n return _react2[\"default\"].createElement(\n 'div',\n _extends({ className: classes }, other),\n this.props.children\n );\n };\n\n return TableContent;\n}(_react.Component);\n\nTableContent.propTypes = propTypes;\nTableContent.defaultProps = defaultProps;\nexports[\"default\"] = TableContent;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1614 */\n/***/ (function(module, exports, __webpack_require__) {\n\n__webpack_require__(1615);\nmodule.exports = __webpack_require__(1616);\n\n\n/***/ }),\n/* 1615 */\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n/* 1616 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _SvgIcon = __webpack_require__(1617);\n\nvar _SvgIcon2 = _interopRequireDefault(_SvgIcon);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nexports[\"default\"] = _SvgIcon2[\"default\"];\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1617 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(1);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _classnames = __webpack_require__(2);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\n__webpack_require__(1618);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }\n\nvar propTypes = {\n className: _propTypes2[\"default\"].string,\n type: _propTypes2[\"default\"].string\n};\nvar defaultProps = {\n viewBox: \"0 0 1024 1024\",\n clsPrefix: 'u-svgicon'\n};\n\nvar SvgIcon = function (_Component) {\n _inherits(SvgIcon, _Component);\n\n function SvgIcon() {\n _classCallCheck(this, SvgIcon);\n\n return _possibleConstructorReturn(this, _Component.apply(this, arguments));\n }\n\n SvgIcon.prototype.render = function render() {\n var _this2 = this;\n\n var _props = this.props,\n className = _props.className,\n type = _props.type,\n Component = _props.component,\n viewBox = _props.viewBox,\n clsPrefix = _props.clsPrefix,\n children = _props.children;\n\n\n var classString = (0, _classnames2[\"default\"])(_defineProperty({}, '' + clsPrefix, true));\n var renderInnerNode = function renderInnerNode() {\n // component > type\n if (Component) {\n return _react2[\"default\"].createElement(\n 'i',\n _this2.props,\n _react2[\"default\"].createElement(\n Component,\n null,\n children\n )\n );\n }\n\n return _react2[\"default\"].createElement(\n 'svg',\n { className: (0, _classnames2[\"default\"])(className, classString), 'aria-hidden': 'true', viewBox: viewBox },\n _react2[\"default\"].createElement('use', { xlinkHref: '#uftype-' + type })\n );\n };\n return renderInnerNode();\n };\n\n return SvgIcon;\n}(_react.Component);\n\n;\n\nSvgIcon.propTypes = propTypes;\nSvgIcon.defaultProps = defaultProps;\nexports[\"default\"] = SvgIcon;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 1618 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n!function (i) {\n var h,\n l = '',\n a = (h = document.getElementsByTagName(\"script\"))[h.length - 1].getAttribute(\"data-injectcss\");if (a && !i.__iconfont__svg__cssinject__) {\n i.__iconfont__svg__cssinject__ = !0;try {\n document.write(\"\");\n } catch (h) {\n console && console.log(h);\n }\n }!function (h) {\n if (document.addEventListener) {\n if (~[\"complete\", \"loaded\", \"interactive\"].indexOf(document.readyState)) setTimeout(h, 0);else {\n var a = function a() {\n document.removeEventListener(\"DOMContentLoaded\", a, !1), h();\n };document.addEventListener(\"DOMContentLoaded\", a, !1);\n }\n } else document.attachEvent && (t = h, F = i.document, p = !1, (_c = function c() {\n try {\n F.documentElement.doScroll(\"left\");\n } catch (h) {\n return void setTimeout(_c, 50);\n }l();\n })(), F.onreadystatechange = function () {\n \"complete\" == F.readyState && (F.onreadystatechange = null, l());\n });function l() {\n p || (p = !0, t());\n }var t, F, p, _c;\n }(function () {\n var h, a;(h = document.createElement(\"div\")).innerHTML = l, l = null, (a = h.getElementsByTagName(\"svg\")[0]) && (a.setAttribute(\"aria-hidden\", \"true\"), a.style.position = \"absolute\", a.style.width = 0, a.style.height = 0, a.style.overflow = \"hidden\", function (h, a) {\n a.firstChild ? function (h, a) {\n a.parentNode.insertBefore(h, a);\n }(h, a.firstChild) : a.appendChild(h);\n }(a, document.body));\n });\n}(window);\n\n/***/ })\n/******/ ]);\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/tinper-bee/build/tinper-bee.js\n// module id = 630\n// module chunks = 0","/**\n*\n* @title 单元格内容居中\n* @parent 基础 Basic\n* @description 在columns数据中设置`textAlign:'center'`,可实现单元格内容居中展示的效果。默认是居左显示。\n* demo0106\n*/\n\nimport React, { Component } from \"react\";\nimport {Button,Tooltip} from \"tinper-bee\";\nimport Table from \"../../src\";\n\nconst columns = [\n {\n title: \"员工编号\", dataIndex: \"a\", key: \"a\", width: 120, className: \"rowClassName\",\n fixed:'left',\n textAlign:'center',\n render: (text, record, index) => {\n return (\n \n {text}\n \n );\n }\n },\n { title: \"员工姓名\", dataIndex: \"b\", key: \"b\", width:100,textAlign:'center'},\n { title: \"性别\", dataIndex: \"c\", key: \"c\", width: 100,textAlign:'center'},\n { title: \"部门\", dataIndex: \"d\", key: \"d\", width: 100,textAlign:'center' },\n { title: \"职级\", dataIndex: \"e\", key: \"e\", width: 100,textAlign:'center' }\n];\n\nconst data = [\n { a: \"ASVAL_201903280005\", b: \"小张\", c: \"男\", d: \"财务二科\", e: \"M1\", key: \"1\" },\n { a: \"ASVAL_201903200004\", b: \"小明\", c: \"男\", d: \"财务一科\", e: \"T1\", key: \"2\" },\n { a: \"ASVAL_201903120002\", b: \"小红\", c: \"女\", d: \"财务一科\", e: \"T2\", key: \"3\" }\n];\n\nclass Demo06 extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n data: data\n }\n }\n handleClick = () => {\n console.log('这是第' , this.currentIndex , '行');\n console.log('内容:' , this.currentRecord);\n }\n\n render() {\n return (\n \n );\n }\n}\n\nexport default Demo06;\n\n\n\n// WEBPACK FOOTER //\n// ./demo/demolist/Demo0106.js","/**\n*\n* @title 带边框\n* @parent 基础 Basic\n* @description 设置 `bordered` 属性可添加表格边框线。\n* demo0107\n*/\n\nimport React, { Component } from \"react\";\nimport {Button,Tooltip} from \"tinper-bee\";\nimport Table from \"../../src\";\n\nconst columns = [\n { title: \"员工编号\", dataIndex: \"a\", key: \"a\", width: 150 },\n { title: \"员工姓名\", dataIndex: \"b\", key: \"b\", width:100},\n { title: \"性别\", dataIndex: \"c\", key: \"c\", width: 100},\n { title: \"部门\", dataIndex: \"d\", key: \"d\", width: 100 },\n { title: \"职级\", dataIndex: \"e\", key: \"e\", width: 100 }\n];\n\nconst data = [\n { a: \"ASVAL_20190328\", b: \"小张\", c: \"男\", d: \"财务二科\", e: \"M1\", key: \"1\" },\n { a: \"ASVAL_20190320\", b: \"小明\", c: \"男\", d: \"财务一科\", e: \"T1\", key: \"2\" },\n { a: \"ASVAL_20190312\", b: \"小红\", c: \"女\", d: \"财务一科\", e: \"T2\", key: \"3\" }\n];\n\nclass Demo06 extends Component {\n render() {\n return (\n \n );\n }\n}\n\nexport default Demo06;\n\n\n\n// WEBPACK FOOTER //\n// ./demo/demolist/Demo0107.js","/**\n*\n* @title 横向滚动条\n* @parent 滚动 Scroll View\n* @description `scroll.x`的值代表表体内容的实际宽度,默认情况下是根据各列宽度合计出来的。其值超过父元素的宽度时会自动出现滚动条。如设置 `scroll={{ x:1000 }}`,可以手动添加横向滚动条,也可以设置`scroll={{ x:\"110%\" }}`。\n* demo0201\n*/\n\nimport React, { Component } from \"react\";\nimport Table from \"../../src\";\n\nconst columns = [\n {\n title: \"序号\",\n dataIndex: \"index\",\n key: \"index\",\n width: 100, \n render(text, record, index) {\n return index + 1;\n }\n },\n {\n title: \"订单编号\",\n dataIndex: \"orderCode\",\n key: \"orderCode\",\n width: 300, \n },\n {\n title: \"供应商名称\",\n dataIndex: \"supplierName\",\n key: \"supplierName\",\n width: 200\n },\n {\n title: \"类型\",\n dataIndex: \"type_name\",\n key: \"type_name\",\n width: 200\n },\n {\n title: \"采购组织\",\n dataIndex: \"purchasing\",\n key: \"purchasing\",\n width: 200\n },\n {\n title: \"采购组\",\n dataIndex: \"purchasingGroup\",\n key: \"purchasingGroup\",\n width: 200\n },\n {\n title: \"凭证日期\",\n dataIndex: \"voucherDate\",\n key: \"voucherDate\",\n width: 300,\n },\n {\n title: \"审批状态\",\n dataIndex: \"approvalState_name\",\n key: \"approvalState_name\",\n width: 200\n },\n {\n title: \"确认状态\",\n dataIndex: \"confirmState_name\",\n key: \"confirmState_name\",\n width: 200\n }, \n {\n title: \"关闭状态\",\n dataIndex: \"closeState_name\",\n key: \"closeState_name\",\n width: 100\n }\n];\n \nconst data = [\n { \n orderCode:\"NU0391025\", \n supplierName: \"xx供应商\",\n type_name: \"1\",\n purchasing:'组织c', \n purchasingGroup:\"aa\",\n voucherDate:\"2018年03月18日\",\n approvalState_name:\"已审批\",\n confirmState_name:\"执行中\",\n closeState_name:\"未关闭\",\n key: \"1\"\n }, \n { \n orderCode:\"NU0391026\", \n supplierName: \"xx供应商\",\n type_name: \"2\",\n purchasing:'组织a', \n purchasingGroup:\"bb\",\n voucherDate:\"2018年02月05日\",\n approvalState_name:\"已审批\",\n confirmState_name:\"待确认\",\n closeState_name:\"未关闭\",\n key: \"2\"\n },\n { \n orderCode:\"NU0391027\", \n supplierName: \"xx供应商\",\n type_name: \"3\",\n purchasing:'组织b', \n purchasingGroup:\"aa\",\n voucherDate:\"2018年07月01日\",\n approvalState_name:\"已审批\",\n confirmState_name:\"终止\",\n closeState_name:\"已关闭\",\n key: \"3\"\n },\n { \n orderCode:\"NU0391028\", \n supplierName: \"xx供应商\",\n type_name: \"4\",\n purchasing:'组织c', \n purchasingGroup:\"cc\",\n voucherDate:\"2019年03月01日\",\n approvalState_name:\"未审批\",\n confirmState_name:\"待确认\",\n closeState_name:\"未关闭\",\n key: \"4\"\n },\n { \n orderCode:\"NU0391029\", \n supplierName: \"xx供应商\",\n type_name: \"5\",\n purchasing:'组织d', \n purchasingGroup:\"ss\",\n voucherDate:\"2019年02月14日\",\n approvalState_name:\"未审批\",\n confirmState_name:\"待确认\",\n closeState_name:\"未关闭\",\n key: \"5\"\n }\n];\n\nclass Demo11 extends Component {\n render() {\n return (\n \n );\n }\n}\n\nexport default Demo11;\n\n\n\n// WEBPACK FOOTER //\n// ./demo/demolist/Demo0201.js","/**\n*\n* @title 纵向滚动条\n* @parent 滚动 Scroll View\n* @description 通过设置 `scroll.y` 可达到固定表头的效果。如设置 `scroll={{ y:200 }}` 表示表体高度超出 200px 后会显示滚动条。\n* demo0202\n*/\n\nimport React, { Component } from \"react\";\nimport Table from \"../../src\";\n\nconst columns = [\n {title: \"序号\",dataIndex: \"index\",key: \"index\",width: 80, \n render(text, record, index) {\n return index + 1;\n }\n },\n {title: \"订单编号\",dataIndex: \"orderCode\",key: \"orderCode\",width: 200},\n {title: \"供应商名称\",dataIndex: \"supplierName\",key: \"supplierName\",width: 200},\n {title: \"类型\",dataIndex: \"type_name\",key: \"type_name\",width: 200},\n {title: \"采购组织\",dataIndex: \"purchasing\",key: \"purchasing\",width: 200},\n {title: \"采购组\",dataIndex: \"purchasingGroup\",key: \"purchasingGroup\",width: 200},\n {title: \"凭证日期\",dataIndex: \"voucherDate\",key: \"voucherDate\",width: 200}\n];\n \nconst data = [\n { \n orderCode:\"NU0391025\", \n supplierName: \"xx供应商\",\n type_name: \"1\",\n purchasing:'组织c', \n purchasingGroup:\"aa\",\n voucherDate:\"2018年03月18日\",\n key: \"1\"\n }, \n { \n orderCode:\"NU0391026\", \n supplierName: \"xx供应商\",\n type_name: \"2\",\n purchasing:'组织a', \n purchasingGroup:\"bb\",\n voucherDate:\"2018年02月05日\",\n key: \"2\"\n },\n { \n orderCode:\"NU0391027\", \n supplierName: \"xx供应商\",\n type_name: \"3\",\n purchasing:'组织b', \n purchasingGroup:\"aa\",\n voucherDate:\"2018年07月01日\",\n key: \"3\"\n },\n { \n orderCode:\"NU0391028\", \n supplierName: \"xx供应商\",\n type_name: \"4\",\n purchasing:'组织c', \n purchasingGroup:\"cc\",\n voucherDate:\"2019年03月01日\",\n key: \"4\"\n },\n { \n orderCode:\"NU0391029\", \n supplierName: \"xx供应商\",\n type_name: \"5\",\n purchasing:'组织d', \n purchasingGroup:\"ss\",\n voucherDate:\"2019年02月14日\",\n key: \"5\"\n },\n { \n orderCode:\"NU0391030\", \n supplierName: \"xx供应商\",\n type_name: \"1\",\n purchasing:'组织e', \n purchasingGroup:\"zz\",\n voucherDate:\"2019年02月18日\",\n key: \"6\"\n },\n { \n orderCode:\"NU0391031\", \n supplierName: \"xx供应商\",\n type_name: \"2\",\n purchasing:'组织f', \n purchasingGroup:\"qq\",\n voucherDate:\"2019年01月01日\",\n key: \"7\"\n },\n { \n orderCode:\"NU0391032\", \n supplierName: \"xx供应商\",\n type_name: \"3\",\n purchasing:'组织g', \n purchasingGroup:\"pp\",\n voucherDate:\"2019年01月31日\",\n key: \"8\"\n },\n];\nclass Demo12 extends Component {\n render() {\n return (\n
    \n );\n }\n}\n\nexport default Demo12;\n\n\n\n// WEBPACK FOOTER //\n// ./demo/demolist/Demo0202.js","/**\n*\n* @title 渲染本地数据\n* @parent 数据操作 Data Opetation\n* @description 可自定义页头和页脚。\n* demo0301\n*/\n\nimport React, { Component } from \"react\";\nimport {Button,Tooltip} from \"tinper-bee\";\nimport Table from \"../../src\";\n\nconst columns = [\n {\n title: \"员工编号\", dataIndex: \"a\", key: \"a\", width: 300, className: \"rowClassName\",\n fixed:'left',\n render: (text, record, index) => {\n return (\n \n {text}\n \n );\n }\n },\n { title: \"员工姓名\", dataIndex: \"b\", key: \"b\", width: 500 },\n { title: \"性别\", dataIndex: \"c\", key: \"c\", width: 500 },\n { title: \"部门\", dataIndex: \"d\", key: \"d\", width: 200 }\n];\n\nconst data = [\n { a: \"ASVAL_201903280005\", b: \"小张\", c: \"男\", d: \"财务二科\", key: \"1\" },\n { a: \"ASVAL_201903200004\", b: \"小明\", c: \"男\", d: \"财务一科\", key: \"2\" },\n { a: \"ASVAL_201903120002\", b: \"小红\", c: \"女\", d: \"财务一科\", key: \"3\" }\n];\nclass Demo21 extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n data: data\n }\n }\n\n render() {\n return (\n
    员工信息统计表
    }\n footer={currentData =>
    合计: 共{data.length}条数据
    }\n />\n );\n }\n}\n\nexport default Demo21;\n\n\n\n// WEBPACK FOOTER //\n// ./demo/demolist/Demo0301.js","/**\n*\n* @title 渲染远程数据\n* @parent 数据操作 Data Opetation\n* @description 可通过 ajax 请求方式,从服务端读取并展现数据。也可自行接入其他数据处理方式。\n* demo0302\n*/\n\nimport React, { Component } from \"react\";\nimport {Button} from \"tinper-bee\";\nimport reqwest from 'reqwest';\nimport Table from \"../../src\";\n\nconst columns = [{\n title: 'Name',\n dataIndex: 'name',\n sorter: true,\n render: name => `${name.first} ${name.last}`,\n width: '20%',\n}, {\n title: 'Gender',\n dataIndex: 'gender',\n filters: [\n { text: 'Male', value: 'male' },\n { text: 'Female', value: 'female' },\n ],\n width: '20%',\n}, {\n title: 'Email',\n dataIndex: 'email',\n}];\n\nclass Demo22 extends Component {\n constructor(props) {\n super(props);\n this.state = {\n data: [],\n loading: false,\n }\n }\n\n fetch = (params = {}) => {\n console.log('params:', params);\n this.setState({ loading: true });\n reqwest({\n url: 'https://randomuser.me/api',\n method: 'get',\n data: {\n results: 10,\n ...params,\n },\n type: 'json',\n }).then((data) => {\n this.setState({\n loading: false,\n data: data.results,\n });\n });\n }\n\n render() {\n return (\n
    \n \n \n
    \n );\n }\n}\n\nexport default Demo22;\n\n\n\n// WEBPACK FOOTER //\n// ./demo/demolist/Demo0302.js","/*!\n * Reqwest! A general purpose XHR connection manager\n * license MIT (c) Dustin Diaz 2015\n * https://github.com/ded/reqwest\n */\n\n!function (name, context, definition) {\n if (typeof module != 'undefined' && module.exports) module.exports = definition()\n else if (typeof define == 'function' && define.amd) define(definition)\n else context[name] = definition()\n}('reqwest', this, function () {\n\n var context = this\n\n if ('window' in context) {\n var doc = document\n , byTag = 'getElementsByTagName'\n , head = doc[byTag]('head')[0]\n } else {\n var XHR2\n try {\n XHR2 = require('xhr2')\n } catch (ex) {\n throw new Error('Peer dependency `xhr2` required! Please npm install xhr2')\n }\n }\n\n\n var httpsRe = /^http/\n , protocolRe = /(^\\w+):\\/\\//\n , twoHundo = /^(20\\d|1223)$/ //http://stackoverflow.com/questions/10046972/msie-returns-status-code-of-1223-for-ajax-request\n , readyState = 'readyState'\n , contentType = 'Content-Type'\n , requestedWith = 'X-Requested-With'\n , uniqid = 0\n , callbackPrefix = 'reqwest_' + (+new Date())\n , lastValue // data stored by the most recent JSONP callback\n , xmlHttpRequest = 'XMLHttpRequest'\n , xDomainRequest = 'XDomainRequest'\n , noop = function () {}\n\n , isArray = typeof Array.isArray == 'function'\n ? Array.isArray\n : function (a) {\n return a instanceof Array\n }\n\n , defaultHeaders = {\n 'contentType': 'application/x-www-form-urlencoded'\n , 'requestedWith': xmlHttpRequest\n , 'accept': {\n '*': 'text/javascript, text/html, application/xml, text/xml, */*'\n , 'xml': 'application/xml, text/xml'\n , 'html': 'text/html'\n , 'text': 'text/plain'\n , 'json': 'application/json, text/javascript'\n , 'js': 'application/javascript, text/javascript'\n }\n }\n\n , xhr = function(o) {\n // is it x-domain\n if (o['crossOrigin'] === true) {\n var xhr = context[xmlHttpRequest] ? new XMLHttpRequest() : null\n if (xhr && 'withCredentials' in xhr) {\n return xhr\n } else if (context[xDomainRequest]) {\n return new XDomainRequest()\n } else {\n throw new Error('Browser does not support cross-origin requests')\n }\n } else if (context[xmlHttpRequest]) {\n return new XMLHttpRequest()\n } else if (XHR2) {\n return new XHR2()\n } else {\n return new ActiveXObject('Microsoft.XMLHTTP')\n }\n }\n , globalSetupOptions = {\n dataFilter: function (data) {\n return data\n }\n }\n\n function succeed(r) {\n var protocol = protocolRe.exec(r.url)\n protocol = (protocol && protocol[1]) || context.location.protocol\n return httpsRe.test(protocol) ? twoHundo.test(r.request.status) : !!r.request.response\n }\n\n function handleReadyState(r, success, error) {\n return function () {\n // use _aborted to mitigate against IE err c00c023f\n // (can't read props on aborted request objects)\n if (r._aborted) return error(r.request)\n if (r._timedOut) return error(r.request, 'Request is aborted: timeout')\n if (r.request && r.request[readyState] == 4) {\n r.request.onreadystatechange = noop\n if (succeed(r)) success(r.request)\n else\n error(r.request)\n }\n }\n }\n\n function setHeaders(http, o) {\n var headers = o['headers'] || {}\n , h\n\n headers['Accept'] = headers['Accept']\n || defaultHeaders['accept'][o['type']]\n || defaultHeaders['accept']['*']\n\n var isAFormData = typeof FormData !== 'undefined' && (o['data'] instanceof FormData);\n // breaks cross-origin requests with legacy browsers\n if (!o['crossOrigin'] && !headers[requestedWith]) headers[requestedWith] = defaultHeaders['requestedWith']\n if (!headers[contentType] && !isAFormData) headers[contentType] = o['contentType'] || defaultHeaders['contentType']\n for (h in headers)\n headers.hasOwnProperty(h) && 'setRequestHeader' in http && http.setRequestHeader(h, headers[h])\n }\n\n function setCredentials(http, o) {\n if (typeof o['withCredentials'] !== 'undefined' && typeof http.withCredentials !== 'undefined') {\n http.withCredentials = !!o['withCredentials']\n }\n }\n\n function generalCallback(data) {\n lastValue = data\n }\n\n function urlappend (url, s) {\n return url + (/\\?/.test(url) ? '&' : '?') + s\n }\n\n function handleJsonp(o, fn, err, url) {\n var reqId = uniqid++\n , cbkey = o['jsonpCallback'] || 'callback' // the 'callback' key\n , cbval = o['jsonpCallbackName'] || reqwest.getcallbackPrefix(reqId)\n , cbreg = new RegExp('((^|\\\\?|&)' + cbkey + ')=([^&]+)')\n , match = url.match(cbreg)\n , script = doc.createElement('script')\n , loaded = 0\n , isIE10 = navigator.userAgent.indexOf('MSIE 10.0') !== -1\n\n if (match) {\n if (match[3] === '?') {\n url = url.replace(cbreg, '$1=' + cbval) // wildcard callback func name\n } else {\n cbval = match[3] // provided callback func name\n }\n } else {\n url = urlappend(url, cbkey + '=' + cbval) // no callback details, add 'em\n }\n\n context[cbval] = generalCallback\n\n script.type = 'text/javascript'\n script.src = url\n script.async = true\n if (typeof script.onreadystatechange !== 'undefined' && !isIE10) {\n // need this for IE due to out-of-order onreadystatechange(), binding script\n // execution to an event listener gives us control over when the script\n // is executed. See http://jaubourg.net/2010/07/loading-script-as-onclick-handler-of.html\n script.htmlFor = script.id = '_reqwest_' + reqId\n }\n\n script.onload = script.onreadystatechange = function () {\n if ((script[readyState] && script[readyState] !== 'complete' && script[readyState] !== 'loaded') || loaded) {\n return false\n }\n script.onload = script.onreadystatechange = null\n script.onclick && script.onclick()\n // Call the user callback with the last value stored and clean up values and scripts.\n fn(lastValue)\n lastValue = undefined\n head.removeChild(script)\n loaded = 1\n }\n\n // Add the script to the DOM head\n head.appendChild(script)\n\n // Enable JSONP timeout\n return {\n abort: function () {\n script.onload = script.onreadystatechange = null\n err({}, 'Request is aborted: timeout', {})\n lastValue = undefined\n head.removeChild(script)\n loaded = 1\n }\n }\n }\n\n function getRequest(fn, err) {\n var o = this.o\n , method = (o['method'] || 'GET').toUpperCase()\n , url = typeof o === 'string' ? o : o['url']\n // convert non-string objects to query-string form unless o['processData'] is false\n , data = (o['processData'] !== false && o['data'] && typeof o['data'] !== 'string')\n ? reqwest.toQueryString(o['data'])\n : (o['data'] || null)\n , http\n , sendWait = false\n\n // if we're working on a GET request and we have data then we should append\n // query string to end of URL and not post data\n if ((o['type'] == 'jsonp' || method == 'GET') && data) {\n url = urlappend(url, data)\n data = null\n }\n\n if (o['type'] == 'jsonp') return handleJsonp(o, fn, err, url)\n\n // get the xhr from the factory if passed\n // if the factory returns null, fall-back to ours\n http = (o.xhr && o.xhr(o)) || xhr(o)\n\n http.open(method, url, o['async'] === false ? false : true)\n setHeaders(http, o)\n setCredentials(http, o)\n if (context[xDomainRequest] && http instanceof context[xDomainRequest]) {\n http.onload = fn\n http.onerror = err\n // NOTE: see\n // http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/30ef3add-767c-4436-b8a9-f1ca19b4812e\n http.onprogress = function() {}\n sendWait = true\n } else {\n http.onreadystatechange = handleReadyState(this, fn, err)\n }\n o['before'] && o['before'](http)\n if (sendWait) {\n setTimeout(function () {\n http.send(data)\n }, 200)\n } else {\n http.send(data)\n }\n return http\n }\n\n function Reqwest(o, fn) {\n this.o = o\n this.fn = fn\n\n init.apply(this, arguments)\n }\n\n function setType(header) {\n // json, javascript, text/plain, text/html, xml\n if (header === null) return undefined; //In case of no content-type.\n if (header.match('json')) return 'json'\n if (header.match('javascript')) return 'js'\n if (header.match('text')) return 'html'\n if (header.match('xml')) return 'xml'\n }\n\n function init(o, fn) {\n\n this.url = typeof o == 'string' ? o : o['url']\n this.timeout = null\n\n // whether request has been fulfilled for purpose\n // of tracking the Promises\n this._fulfilled = false\n // success handlers\n this._successHandler = function(){}\n this._fulfillmentHandlers = []\n // error handlers\n this._errorHandlers = []\n // complete (both success and fail) handlers\n this._completeHandlers = []\n this._erred = false\n this._responseArgs = {}\n\n var self = this\n\n fn = fn || function () {}\n\n if (o['timeout']) {\n this.timeout = setTimeout(function () {\n timedOut()\n }, o['timeout'])\n }\n\n if (o['success']) {\n this._successHandler = function () {\n o['success'].apply(o, arguments)\n }\n }\n\n if (o['error']) {\n this._errorHandlers.push(function () {\n o['error'].apply(o, arguments)\n })\n }\n\n if (o['complete']) {\n this._completeHandlers.push(function () {\n o['complete'].apply(o, arguments)\n })\n }\n\n function complete (resp) {\n o['timeout'] && clearTimeout(self.timeout)\n self.timeout = null\n while (self._completeHandlers.length > 0) {\n self._completeHandlers.shift()(resp)\n }\n }\n\n function success (resp) {\n var type = o['type'] || resp && setType(resp.getResponseHeader('Content-Type')) // resp can be undefined in IE\n resp = (type !== 'jsonp') ? self.request : resp\n // use global data filter on response text\n var filteredResponse = globalSetupOptions.dataFilter(resp.responseText, type)\n , r = filteredResponse\n try {\n resp.responseText = r\n } catch (e) {\n // can't assign this in IE<=8, just ignore\n }\n if (r) {\n switch (type) {\n case 'json':\n try {\n resp = context.JSON ? context.JSON.parse(r) : eval('(' + r + ')')\n } catch (err) {\n return error(resp, 'Could not parse JSON in response', err)\n }\n break\n case 'js':\n resp = eval(r)\n break\n case 'html':\n resp = r\n break\n case 'xml':\n resp = resp.responseXML\n && resp.responseXML.parseError // IE trololo\n && resp.responseXML.parseError.errorCode\n && resp.responseXML.parseError.reason\n ? null\n : resp.responseXML\n break\n }\n }\n\n self._responseArgs.resp = resp\n self._fulfilled = true\n fn(resp)\n self._successHandler(resp)\n while (self._fulfillmentHandlers.length > 0) {\n resp = self._fulfillmentHandlers.shift()(resp)\n }\n\n complete(resp)\n }\n\n function timedOut() {\n self._timedOut = true\n self.request.abort()\n }\n\n function error(resp, msg, t) {\n resp = self.request\n self._responseArgs.resp = resp\n self._responseArgs.msg = msg\n self._responseArgs.t = t\n self._erred = true\n while (self._errorHandlers.length > 0) {\n self._errorHandlers.shift()(resp, msg, t)\n }\n complete(resp)\n }\n\n this.request = getRequest.call(this, success, error)\n }\n\n Reqwest.prototype = {\n abort: function () {\n this._aborted = true\n this.request.abort()\n }\n\n , retry: function () {\n init.call(this, this.o, this.fn)\n }\n\n /**\n * Small deviation from the Promises A CommonJs specification\n * http://wiki.commonjs.org/wiki/Promises/A\n */\n\n /**\n * `then` will execute upon successful requests\n */\n , then: function (success, fail) {\n success = success || function () {}\n fail = fail || function () {}\n if (this._fulfilled) {\n this._responseArgs.resp = success(this._responseArgs.resp)\n } else if (this._erred) {\n fail(this._responseArgs.resp, this._responseArgs.msg, this._responseArgs.t)\n } else {\n this._fulfillmentHandlers.push(success)\n this._errorHandlers.push(fail)\n }\n return this\n }\n\n /**\n * `always` will execute whether the request succeeds or fails\n */\n , always: function (fn) {\n if (this._fulfilled || this._erred) {\n fn(this._responseArgs.resp)\n } else {\n this._completeHandlers.push(fn)\n }\n return this\n }\n\n /**\n * `fail` will execute when the request fails\n */\n , fail: function (fn) {\n if (this._erred) {\n fn(this._responseArgs.resp, this._responseArgs.msg, this._responseArgs.t)\n } else {\n this._errorHandlers.push(fn)\n }\n return this\n }\n , 'catch': function (fn) {\n return this.fail(fn)\n }\n }\n\n function reqwest(o, fn) {\n return new Reqwest(o, fn)\n }\n\n // normalize newline variants according to spec -> CRLF\n function normalize(s) {\n return s ? s.replace(/\\r?\\n/g, '\\r\\n') : ''\n }\n\n function serial(el, cb) {\n var n = el.name\n , t = el.tagName.toLowerCase()\n , optCb = function (o) {\n // IE gives value=\"\" even where there is no value attribute\n // 'specified' ref: http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-862529273\n if (o && !o['disabled'])\n cb(n, normalize(o['attributes']['value'] && o['attributes']['value']['specified'] ? o['value'] : o['text']))\n }\n , ch, ra, val, i\n\n // don't serialize elements that are disabled or without a name\n if (el.disabled || !n) return\n\n switch (t) {\n case 'input':\n if (!/reset|button|image|file/i.test(el.type)) {\n ch = /checkbox/i.test(el.type)\n ra = /radio/i.test(el.type)\n val = el.value\n // WebKit gives us \"\" instead of \"on\" if a checkbox has no value, so correct it here\n ;(!(ch || ra) || el.checked) && cb(n, normalize(ch && val === '' ? 'on' : val))\n }\n break\n case 'textarea':\n cb(n, normalize(el.value))\n break\n case 'select':\n if (el.type.toLowerCase() === 'select-one') {\n optCb(el.selectedIndex >= 0 ? el.options[el.selectedIndex] : null)\n } else {\n for (i = 0; el.length && i < el.length; i++) {\n el.options[i].selected && optCb(el.options[i])\n }\n }\n break\n }\n }\n\n // collect up all form elements found from the passed argument elements all\n // the way down to child elements; pass a '
    ' or form fields.\n // called with 'this'=callback to use for serial() on each element\n function eachFormElement() {\n var cb = this\n , e, i\n , serializeSubtags = function (e, tags) {\n var i, j, fa\n for (i = 0; i < tags.length; i++) {\n fa = e[byTag](tags[i])\n for (j = 0; j < fa.length; j++) serial(fa[j], cb)\n }\n }\n\n for (i = 0; i < arguments.length; i++) {\n e = arguments[i]\n if (/input|select|textarea/i.test(e.tagName)) serial(e, cb)\n serializeSubtags(e, [ 'input', 'select', 'textarea' ])\n }\n }\n\n // standard query string style serialization\n function serializeQueryString() {\n return reqwest.toQueryString(reqwest.serializeArray.apply(null, arguments))\n }\n\n // { 'name': 'value', ... } style serialization\n function serializeHash() {\n var hash = {}\n eachFormElement.apply(function (name, value) {\n if (name in hash) {\n hash[name] && !isArray(hash[name]) && (hash[name] = [hash[name]])\n hash[name].push(value)\n } else hash[name] = value\n }, arguments)\n return hash\n }\n\n // [ { name: 'name', value: 'value' }, ... ] style serialization\n reqwest.serializeArray = function () {\n var arr = []\n eachFormElement.apply(function (name, value) {\n arr.push({name: name, value: value})\n }, arguments)\n return arr\n }\n\n reqwest.serialize = function () {\n if (arguments.length === 0) return ''\n var opt, fn\n , args = Array.prototype.slice.call(arguments, 0)\n\n opt = args.pop()\n opt && opt.nodeType && args.push(opt) && (opt = null)\n opt && (opt = opt.type)\n\n if (opt == 'map') fn = serializeHash\n else if (opt == 'array') fn = reqwest.serializeArray\n else fn = serializeQueryString\n\n return fn.apply(null, args)\n }\n\n reqwest.toQueryString = function (o, trad) {\n var prefix, i\n , traditional = trad || false\n , s = []\n , enc = encodeURIComponent\n , add = function (key, value) {\n // If value is a function, invoke it and return its value\n value = ('function' === typeof value) ? value() : (value == null ? '' : value)\n s[s.length] = enc(key) + '=' + enc(value)\n }\n // If an array was passed in, assume that it is an array of form elements.\n if (isArray(o)) {\n for (i = 0; o && i < o.length; i++) add(o[i]['name'], o[i]['value'])\n } else {\n // If traditional, encode the \"old\" way (the way 1.3.2 or older\n // did it), otherwise encode params recursively.\n for (prefix in o) {\n if (o.hasOwnProperty(prefix)) buildParams(prefix, o[prefix], traditional, add)\n }\n }\n\n // spaces should be + according to spec\n return s.join('&').replace(/%20/g, '+')\n }\n\n function buildParams(prefix, obj, traditional, add) {\n var name, i, v\n , rbracket = /\\[\\]$/\n\n if (isArray(obj)) {\n // Serialize array item.\n for (i = 0; obj && i < obj.length; i++) {\n v = obj[i]\n if (traditional || rbracket.test(prefix)) {\n // Treat each array item as a scalar.\n add(prefix, v)\n } else {\n buildParams(prefix + '[' + (typeof v === 'object' ? i : '') + ']', v, traditional, add)\n }\n }\n } else if (obj && obj.toString() === '[object Object]') {\n // Serialize object item.\n for (name in obj) {\n buildParams(prefix + '[' + name + ']', obj[name], traditional, add)\n }\n\n } else {\n // Serialize scalar item.\n add(prefix, obj)\n }\n }\n\n reqwest.getcallbackPrefix = function () {\n return callbackPrefix\n }\n\n // jQuery and Zepto compatibility, differences can be remapped here so you can call\n // .ajax.compat(options, callback)\n reqwest.compat = function (o, fn) {\n if (o) {\n o['type'] && (o['method'] = o['type']) && delete o['type']\n o['dataType'] && (o['type'] = o['dataType'])\n o['jsonpCallback'] && (o['jsonpCallbackName'] = o['jsonpCallback']) && delete o['jsonpCallback']\n o['jsonp'] && (o['jsonpCallback'] = o['jsonp'])\n }\n return new Reqwest(o, fn)\n }\n\n reqwest.ajaxSetup = function (options) {\n options = options || {}\n for (var k in options) {\n globalSetupOptions[k] = options[k]\n }\n }\n\n return reqwest\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/reqwest/reqwest.js\n// module id = 637\n// module chunks = 0","/* (ignored) */\n\n\n//////////////////\n// WEBPACK FOOTER\n// xhr2 (ignored)\n// module id = 638\n// module chunks = 0","/**\n*\n* @title 悬浮列\n* @parent 列渲染 Custom Render\n* @description 鼠标hover行时呼出操作按钮。\n* demo0401\n*/\n\nimport React, { Component } from \"react\";\nimport {Button,Popconfirm} from \"tinper-bee\";\nimport Table from \"../../src\";\n\nconst columns = [\n { title: \"员工编号\", dataIndex: \"a\", key: \"a\", width: 150 },\n { title: \"员工姓名\", dataIndex: \"b\", key: \"b\", width: 100 },\n { title: \"性别\", dataIndex: \"c\", key: \"c\", width: 100 },\n { title: \"部门\", dataIndex: \"d\", key: \"d\", width: 100 }\n];\n\nconst data = [\n { a: \"ASVAL_201903280005\", b: \"小张\", c: \"男\", d: \"财务二科\", key: \"1\" },\n { a: \"ASVAL_201903200004\", b: \"小明\", c: \"男\", d: \"财务一科\", key: \"2\" },\n { a: \"ASVAL_201903120002\", b: \"小红\", c: \"女\", d: \"财务一科\", key: \"3\" }\n];\n\nclass Demo11 extends Component {\n constructor(props) {\n super(props);\n }\n\n deleteRow=()=>{\n console.log('删除第' , this.currentIndex , '行');\n }\n\n onRowHover=(index,record)=>{\n this.currentIndex = index;\n this.currentRecord = record;\n }\n\n getHoverContent=(record, index)=>{\n return (\n
    \n \n \n \n
    \n )\n }\n\n render() {\n return (\n \n );\n }\n}\n\nexport default Demo11;\n\n\n\n// WEBPACK FOOTER //\n// ./demo/demolist/Demo0401.js","/**\r\n *\r\n * @title 多列表头\r\n * @parent 列渲染 Custom Render\r\n * @description columns[n] 可以内嵌 children,以渲染分组表头。\r\n * 自定义表头高度需要传headerHeight,注:修改th的padding top和bottom置为0,否则会有影响\r\n * 多列表头拖拽的时候,原则只拖拽叶子节点的表头。\r\n * demo0402\r\n */\r\n\r\nimport React, { Component } from \"react\";\r\nimport Table from \"../../src\";\r\n\r\nimport dragColumn from '../../src/lib/dragColumn';\r\n\r\nconst columns = [\r\n {\r\n title: \"姓名\",\r\n dataIndex: \"name\",\r\n key: \"name\",\r\n width: 100,\r\n fixed: \"left\"\r\n },\r\n {\r\n title: \"个人信息\",\r\n width:600,\r\n children: [\r\n {\r\n title: \"年龄\",\r\n dataIndex: \"age\",\r\n key: \"age\",\r\n width: 200\r\n },\r\n {\r\n title: \"地址\",\r\n children: [\r\n {\r\n title: \"街道\",\r\n dataIndex: \"street\",\r\n key: \"street\",\r\n width: 200\r\n },\r\n {\r\n title: \"单元\",\r\n children: [\r\n {\r\n title: \"楼号\",\r\n dataIndex: \"building\",\r\n key: \"building\",\r\n width: 100\r\n },\r\n {\r\n title: \"门户\",\r\n dataIndex: \"number\",\r\n key: \"number\",\r\n width: 100\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n title: \"公司信息\",\r\n width:400,\r\n children: [\r\n {\r\n title: \"公司地址\",\r\n dataIndex: \"companyAddress\",\r\n key: \"companyAddress\",\r\n width:200,\r\n },\r\n {\r\n title: \"公司名称\",\r\n dataIndex: \"companyName\",\r\n key: \"companyName\",\r\n width:200,\r\n }\r\n ]\r\n },\r\n {\r\n title: \"性别\",\r\n dataIndex: \"gender\",\r\n key: \"gender\",\r\n width: 60,\r\n fixed: \"right\"\r\n }\r\n];\r\n\r\nconst data = [];\r\nfor (let i = 0; i < 20; i++) {\r\n data.push({\r\n key: i,\r\n name: \"John Brown\",\r\n age: i + 1,\r\n street: \"Lake Park\",\r\n building: \"C\",\r\n number: 2035,\r\n companyAddress: \"北清路 68 号\",\r\n companyName: \"用友\",\r\n gender: \"男\"\r\n });\r\n}\r\n\r\nconst DragColumnTable = dragColumn(Table);\r\n\r\nclass Demo12 extends Component {\r\n render() {\r\n return (\r\n {\r\n console.log(width+\"--调整列宽后触发事件\",e.target);\r\n }}\r\n scroll={{ y: 240 }}\r\n />\r\n );\r\n }\r\n}\r\n\r\nexport default Demo12;\r\n\n\n\n// WEBPACK FOOTER //\n// ./demo/demolist/Demo0402.js","import React, { Component } from \"react\";\nimport {compare,ObjectAssign} from './util'; \n/**\n * 参数: 列拖拽\n * @param {*} Table\n */\n \nexport default function dragColumn(Table) {\n\n return class DragColumn extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n columns:this.setColumOrderByIndex(props.columns)\n };\n }\n\n componentWillReceiveProps(nextProps){\n if(nextProps.columns != this.props.columns){\n this.setState({\n columns:this.setColumOrderByIndex(nextProps.columns)\n })\n }\n }\n \n setColumOrderByIndex = (_column)=>{\n _column.forEach((da,i) => {\n da.dragIndex = i;\n da.drgHover = false;\n });\n return _column; \n }\n\n recursion(obj, data={}){\n for(key in obj){\n if( typeof obj[key] == 'object' && Object.keys(obj[key].length>0 )){\n data[key] = recursion(obj[key])\n }else{\n data[key] = obj[key]\n }\n }\n return data\n }\n\n onDragEnd=(event,data)=>{\n let {dragSource,dragTarg} = data;\n let {columns} = this.state; \n let sourceIndex = -1,targetIndex = -1;\n \n sourceIndex = columns.findIndex((da,i)=>da.key == dragSource.key);\n targetIndex = columns.findIndex((da,i)=>da.key == dragTarg.key);\n // 向前移动\n if(targetIndex < sourceIndex){\n targetIndex = targetIndex + 1;\n }\n columns.splice(\n targetIndex,\n 0,\n columns.splice(sourceIndex, 1)[0]\n );\n let _newColumns = [];\n columns.forEach((da,i)=>{\n let newDate = Object.assign(da,{});\n newDate.title = da.title;\n _newColumns.push(newDate);\n });\n this.setState({\n columns:_newColumns//cloneDeep(columns)\n });\n if(this.props.onDragEnd){\n this.props.onDragEnd(event,data,columns);\n }\n }\n \n getTarget=(evt)=>{\n return evt.target || evt.srcElement;\n }\n\n render() {\n const {\n data,\n dragborder,\n draggable,\n className,\n ...others\n } = this.props;\n return (\n )\n }\n };\n}\n\n\n// WEBPACK FOOTER //\n// ./src/lib/dragColumn.js","/*\n* 快速排序,按某个属性,或按“获取排序依据的函数”,来排序.\n* @method soryBy\n* @static\n* @param {array} arr 待处理数组\n* @param {string|function} prop 排序依据属性,获取\n* @param {boolean} desc 降序\n* @return {array} 返回排序后的新数组\n*/\n\nexport function sortBy(arr, prop, desc) { \n let props=[],\n ret=[],\n i=0,\n len=arr.length;\n if(typeof prop=='string') {\n for(; i {\n let _da = {};\n Object.assign(_da,da);\n tagObj.push(_da);\n });\n }else{\n Object.assign(tagObj,obj);\n }\n return tagObj;\n }\n\n\n \n\n\n// WEBPACK FOOTER //\n// ./src/lib/util.js","/**\n*\n* @title 数据关联\n* @parent 列渲染 Custom Render\n* @description 数据行关联自定义菜单显示\n* demo0404\n*/\n\nimport React, { Component } from 'react';\nimport {Icon,Checkbox,Dropdown,Menu} from 'tinper-bee';\nimport Table from '../../src';\nimport multiSelect from \"../../src/lib/newMultiSelect\";\nimport sort from \"../../src/lib/sort\";\n\nconst { Item } = Menu;\n\nconst data = [\n { \n num:\"NU0391025\", \n name: \"aa\",\n sex: \"男\",\n dept:'财务二科', \n rank:\"T1\",\n year:\"1\",\n seniority:\"1\",\n key: \"1\"\n }, \n { \n num:\"NU0391026\", \n name: \"bb\",\n sex: \"女\",\n dept:'财务一科', \n rank:\"M1\",\n year:\"1\",\n seniority:\"1\",\n key: \"2\"\n },\n { \n num:\"NU0391027\", \n name: \"dd\",\n sex: \"女\",\n dept:'财务一科', \n rank:\"T2\",\n year:\"2\",\n seniority:\"2\",\n key: \"3\"\n }\n];\n\nconst MultiSelectTable = multiSelect(Table, Checkbox);\nconst ComplexTable = sort(MultiSelectTable, Icon);\n\nclass Demo13 extends Component {\n constructor(props) {\n super(props);\n }\n getSelectedDataFunc = data => {\n console.log(data);\n }\n onSelect = (item) => {\n console.log(item);\n }\n render() {\n const menu1 = (\n \n 模态弹出\n 链接跳转\n 打开新页\n );\n let columns = [\n { title: \"关联\",dataIndex: \"link\",key: \"link\",width: 80, \n render: (text, record, index) => {\n return (\n \n \n \n )\n }\n },\n { title: \"员工编号\",dataIndex: \"num\",key: \"num\",width: 200 },\n { title: \"员工姓名\",dataIndex: \"name\",key: \"name\", width: 200},\n { title: \"员工性别\",dataIndex: \"sex\",key: \"sex\",width: 200 },\n { title: \"部门\",dataIndex: \"dept\",key: \"dept\",width: 200},\n { title: \"职级\",dataIndex: \"rank\",key: \"rank\",width: 200},\n { title: \"工龄\",dataIndex: \"year\",key: \"year\",width: 200},\n { title: \"司龄\",dataIndex: \"seniority\",key: \"seniority\",width: 200}\n ];\n return \n }\n}\n\nexport default Demo13; \n\n\n// WEBPACK FOOTER //\n// ./demo/demolist/Demo0404.js","import multiSelect from './multiSelect';\n\nexport default function newMultiSelect(Table, Checkbox) {\n return multiSelect(Table, Checkbox);\n}\n\n\n// WEBPACK FOOTER //\n// ./src/lib/newMultiSelect.js","import React, { Component } from \"react\";\nimport PropTypes from 'prop-types';\nimport {ObjectAssign} from './util';\n/**\n * 参数: 过滤表头\n * @param {*} Table\n * @param {*} Checkbox\n * @param {*} Popover\n * @param {*} Icon\n */\n\nexport default function multiSelect(Table, Checkbox) {\n\n return class MultiSelect extends Component {\n static propTypes = {\n autoCheckedByClickRows: PropTypes.bool, //行点击时,是否自动勾选复选框\n };\n static defaultProps = {\n prefixCls: \"u-table-mult-select\",\n getSelectedDataFunc:()=>{},\n autoSelect: false,\n autoCheckedByClickRows: true,\n multiSelectConfig: {}\n }\n\n constructor(props) {\n super(props);\n let obj = this.getCheckedOrIndeter(props.data);\n this.state = {\n ...obj,\n data:ObjectAssign(props.data),\n }\n }\n\n componentWillReceiveProps(nextProps){\n if('data' in nextProps){\n let obj = this.getCheckedOrIndeter(nextProps.data);\n this.setState({\n ...obj,\n data:ObjectAssign(nextProps.data),\n })\n }\n }\n\n /**\n * @param {*} data \n */\n getCheckedOrIndeter(data){\n let obj = {};\n let checkStatus = this.checkAllSelected(data);\n if(!checkStatus){\n obj.checkedAll = false;\n obj.indeterminate = false;\n return obj;\n }\n if(checkStatus == 'indeter'){\n obj.indeterminate = true;\n obj.checkedAll = false;\n }else if(checkStatus == 'all'){\n obj.checkedAll = true;\n obj.indeterminate = false;\n }\n return obj;\n }\n\n /**\n * 判断数据是否全部选中\n * @param {*} data \n * return string all(全选)、indeter(半选)\n */\n setChecked(data){\n if(!this.isArray(data))return false;\n if(data.length == 0)return false;\n let count = 0;\n let disabledCount = 0;\n data.forEach(da=>{\n if(da._checked && !da._disabled){\n count ++;\n }\n if(da._disabled){\n disabledCount ++;\n }\n })\n\n if(data.length == count + disabledCount && count>0){\n return \"all\";\n }\n return count == 0?false:\"indeter\";\n }\n\n /**\n * 重写:判断数据是否全部选中\n */\n checkAllSelected = ( data ) => {\n if(!this.isArray(data))return false;\n if(data.length == 0)return false;\n let count = 0;\n let disabledCount = 0;\n let length = 0;\n let getTree = ( arr ) => {\n arr.forEach( item => {\n length++;\n if(item._checked && !item._disabled){\n count ++;\n }\n else if(item._disabled){\n disabledCount ++;\n }\n if(item.children){\n getTree(item.children);\n }\n })\n }\n getTree(data);\n if(length == count + disabledCount && count>0){\n return \"all\";\n }\n return count == 0?false:\"indeter\";\n }\n\n /**\n * 判断是否是数组\n * @param {*} o \n */\n isArray(o){\n return Object.prototype.toString.call(o)=='[object Array]';\n }\n\n\n onAllCheckChange=()=>{\n let {data,checkedAll,indeterminate} = this.state;\n let check = false;\n if(checkedAll){\n check = false;\n }else{\n check = true;\n }\n let selectList = [];\n \n data.forEach(item => {\n if( item.children ){\n let res = this.setTree(item,check, true);\n selectList = selectList.concat(res);\n }\n else {\n if(!item._disabled){\n item._checked = check;\n }\n \n if(item._checked){\n selectList.push(item);\n }\n }\n });\n if(selectList.length > 0){\n indeterminate = true;\n }else{\n indeterminate = false;\n }\n this.setState({\n indeterminate:indeterminate,\n checkedAll:check\n });\n this.props.getSelectedDataFunc(selectList,undefined,undefined,data);\n }\n\n /**\n * 遍历树节点和它的子孙节点,设置_checked\n */\n setTree = ( node, flag, autoSelect) => {\n let res = [];\n let setTreeNodeFlag = ( node, flag) => {\n if(!node._disabled){\n node._checked = flag;\n }\n if(flag){\n res.push(node);\n }\n if(node.children && autoSelect){\n node.children.forEach( item => {\n setTreeNodeFlag(item, flag);\n })\n }\n }\n setTreeNodeFlag(node, flag);\n return res;\n }\n\n /**\n * 遍历树节点和它的子孙节点,获取对应状态的节点数组\n */\n getTree = ( node, key, value ) => {\n let res = [];\n let getTreeNodeByFlag = ( node) => {\n if(node[key] === value){\n res.push(node);\n }\n if(node.children){\n node.children.forEach( item => {\n getTreeNodeByFlag(item);\n })\n }\n }\n getTreeNodeByFlag(node);\n return res;\n }\n \n onCheckboxChange = (text, record, index) => () => {\n let {data} = this.state;\n let selectList = [];\n // record._checked = record._checked?false:true;\n let flag = record._checked ? false : true;\n if (record.children) {\n this.setTree(record, flag, this.props.autoSelect);\n }\n else {\n record._checked = flag;\n }\n let obj = this.getCheckedOrIndeter(data);\n this.setState({\n data:data,\n ...obj\n })\n data.forEach((da)=>{\n if(da.children){\n selectList = selectList.concat(this.getTree(da,'_checked',true))\n }\n else if(da._checked){\n selectList.push(da);\n }\n })\n this.props.getSelectedDataFunc(selectList,record,index,data);\n };\n\n \n\n getDefaultColumns=(columns)=>{\n let {multiSelectConfig} = this.props;\n let {checkedAll,indeterminate} = this.state;\n let checkAttr = {checked:checkedAll?true:false};\n const data = this.props.data;\n const dataLength = data.length;\n let disabledCount = 0;\n indeterminate?checkAttr.indeterminate = true:\"\";\n //设置\b表头Checkbox是否可以点击\n data.forEach((item,index,arr)=>{\n if(item._disabled){\n disabledCount++;\n }\n })\n\n let _defaultColumns =[{\n className: 'u-table-multiSelect-column',\n title: (\n \n ),\n key: \"checkbox\",\n dataIndex: \"checkbox\",\n fixed:\"left\",\n width: 49, \n render: (text, record, index) => {\n let attr = {};\n record._disabled?attr.disabled = record._disabled:\"\";\n return \n }\n }]\n return _defaultColumns.concat(columns);\n }\n\n // 实现行点击时触发多选框勾选的需求\n onRowClick = (record,index,event) =>{\n if(record._disabled) return;\n let { autoCheckedByClickRows, onRowClick } = this.props;\n if(autoCheckedByClickRows) {\n this.onCheckboxChange('',record, index)();\n }\n onRowClick && onRowClick(record,index,event);\n }\n\n render() {\n const {columns, expandIconColumnIndex} = this.props;\n const {data} = this.state;\n return
    \n }\n };\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/lib/multiSelect.js","import React, { Component } from \"react\";\n\n/**\n * 参数:prefixCls,默认bee-table,用于设置图标的样式\n * @param {*} Table\n * @param {*} Icon\n */\nexport default function sort(Table, Icon) {\n const IconType = [{\n 'type':'flat',\n 'icon':'uf-symlist',\n 'order':'flatscend',\n },{\n 'type':'up',\n 'icon':'uf-sortup',\n 'order':'ascend',\n },{\n 'type':'down',\n 'icon':'uf-sortdown',\n 'order':'descend',\n }\n ]\n \n return class SortTable extends Component {\n constructor(props) {\n super(props);\n let flatColumns = [];\n this._toFlatColumn(props.columns,-1,flatColumns);\n this.state = { data: this.props.data, columns: props.columns,flatColumns:flatColumns };\n \n }\n static defaultProps = { sort: { mode: \"single\", backSource: false } }; //默认是前端排序,值为true为后端排序\n componentWillReceiveProps(nextProps) {\n \n if (nextProps.data !== this.props.data) {\n this.setState({\n data: nextProps.data,\n oldData: nextProps.data.concat()\n });\n }\n if (nextProps.columns !== this.props.columns) {\n let flatColumns = [];\n this._toFlatColumn(nextProps.columns,-1,flatColumns);\n this.setState({ columns: nextProps.columns ,flatColumns});\n \n }\n }\n /**\n *column扁平化处理,适应多表头避免递归操作\n *\n */\n _toFlatColumn(columns,parentIndex = -1,flatColumns=[]) {\n const _this = this;\n let children = [];\n // const flatColumns = _this.state;\n columns.forEach((item,index)=>{\n item.parentIndex = parentIndex;\n children = item.children;\n flatColumns.push(item);\n if(children){\n // item.children = [];\n _this._toFlatColumn(children,flatColumns.length - 1,flatColumns);\n }\n });\n }\n getOrderNum = () => {\n let orderNum = 0;\n //todo 1\n this.state.flatColumns.forEach((item, index) => {\n if (item.order == \"ascend\" || item.order == \"descend\") {\n orderNum++;\n }\n });\n return orderNum ? orderNum : 1;\n };\n\n /**\n * column 当前的排序的列\n * 当有的列不排序时,将该列的orderNum置为‘’,并动态的修改其他列的orderNum。\n */\n changeOrderNum = column => {\n let { flatColumns } = this.state;\n //todo 2\n flatColumns.forEach(col => {\n if (col.orderNum > column.orderNum) {\n col.orderNum--;\n }\n if (column.key == col.key) {\n col.orderNum = \"\";\n }\n });\n this.setState({ flatColumns });\n };\n /**\n * 获取排序字段\n */\n getOrderCols = columns => {\n let orderCols = [];\n //todo 3\n columns.forEach(item => {\n if (item.order == \"ascend\" || item.order == \"descend\") {\n orderCols.push({\n order: item.order,\n field: item.dataIndex,\n orderNum: item.orderNum\n });\n }\n });\n return orderCols;\n };\n\n /**\n * pre:前一条数据\n * after:后一条数据\n * orderType:升序、降序\n */\n _sortBy = (pre, after, orderCols, orderColslen, currentIndex) => {\n const currentCol = orderCols[currentIndex];\n const preKey = pre[currentCol.key];\n const afterKey = after[currentCol.key];\n let colSortFun = currentCol.sorter;\n if(typeof colSortFun !== 'function'){\n colSortFun = () => preKey - afterKey;\n }\n if (preKey == afterKey && currentIndex + 1 <= orderColslen) {\n return this._sortBy(pre, after, orderCols, orderColslen, currentIndex + 1);\n }\n if (currentCol.order == \"ascend\") {\n return colSortFun(pre,after);\n } else { \n return -colSortFun(pre,after);\n }\n };\n /**\n * 多列排序 先排order为1的,其他的基于已排序的数据排\n */\n multiSort = columns => {\n let { data, oldData } = this.state;\n const self = this;\n let orderCols = {},\n orderColslen = 0;\n //todo 4\n columns.forEach(item => {\n if (item.orderNum) {\n orderColslen++;\n orderCols[item.orderNum] = item;\n }\n });\n if (orderColslen > 0) {\n data = data.sort(function(a, b) {\n return self._sortBy(a, b, orderCols, orderColslen, 1);\n });\n } else {\n data = oldData.concat();\n }\n return data;\n };\n\n toggleSortOrder = (order, column) => {\n let { data, oldData, flatColumns } = this.state;\n let { sort } = this.props;\n let seleObj;\n if (!oldData) {\n oldData = data.concat();\n }\n let sortCol ;\n //单列排序,清空其他列的排序\n if (sort.mode == \"single\") {\n //todo 5\n flatColumns.forEach(da => {\n if (da.key == column.key) {\n seleObj = da;\n } else {\n if (da.order) {\n da.order = \"flatscend\";\n }\n }\n });\n seleObj.order = order;\n sortCol = [{ order: order, field: seleObj.dataIndex }]\n //通过后端请求\n if (sort.backSource && typeof sort.sortFun === \"function\") {\n //获取排序的字段和方式\n sort.sortFun(sortCol);\n \n } else {\n if (order === \"ascend\") {\n data = data.sort(function(a, b) {\n return column.sorter(a, b);\n });\n } else if (order === \"descend\") {\n data = data.sort(function(a, b) {\n return column.sorter(b, a);\n });\n } else {\n data = oldData.concat();\n }\n typeof sort.sortFun === \"function\" && sort.sortFun(sortCol,data,oldData);\n }\n } else {\n seleObj = flatColumns.find(da => da.key == column.key);\n seleObj.order = order;\n if (order === \"flatscend\") {\n this.changeOrderNum(column);\n }\n if (!seleObj.orderNum && (order == \"ascend\" || order == \"descend\")) {\n seleObj.orderNum = this.getOrderNum();\n }\n sortCol = this.getOrderCols(flatColumns);\n if (sort.backSource && typeof sort.sortFun === \"function\") {\n sort.sortFun(sortCol);\n } else {\n data = this.multiSort(flatColumns);\n typeof sort.sortFun === \"function\" && sort.sortFun(sortCol,data,oldData);\n }\n }\n this.setState({ data, oldData, flatColumns });\n };\n //每个column上添加orderNum属性,不排序时为“”。\n //点击时orderNum有值则不重新赋值,如果没有值,则取当前column下的有oderNum的length值。并排序\n //点击置为“”时,动态的设置相关column的orderNum值。并排序\n renderColumnsDropdown = columns => {\n let tempColumns = [],rsColumns = [];\n tempColumns = columns.map(originColumn => {\n let column = Object.assign({}, originColumn);\n return this.sortColumn(column);\n });\n rsColumns = this._flatToColumn(tempColumns);\n return rsColumns;\n };\n\n sortColumn = column => {\n const { mode } = this.props.sort;\n const prefixCls = \"bee-table\";\n let iconTypeIndex = 0;\n let sorterClass = \"flat\";\n\n if (column.order === \"ascend\") {\n iconTypeIndex = 1;\n sorterClass = \"up\";\n } else if (column.order === \"descend\") {\n iconTypeIndex = 2;\n sorterClass = \"down\";\n }\n\n let sortButton;\n\n // sorter和sortEnable均可触发排序,且sorter优先级更高\n if (column.sorter || column.sortEnable ) {\n //大于0说明不是升序就是降序,判断orderNum有没有值,没有值赋值\n if ( column.sortEnable && !column.sorter) {\n switch(column.fieldType){\n case 'number':{\n column.sorter = this.numberSortFn(column.dataIndex);\n break;\n }\n case 'stringChinese':{\n column.sorter = this.chineseSortFn(column.dataIndex);\n break;\n }\n default:{\n column.sorter = this.defaultSortFn(column.dataIndex);\n break;\n }\n }\n }\n if (iconTypeIndex > 0 && !column.orderNum && mode == \"multiple\") {\n column.orderNum = this.getOrderNum();\n }\n sortButton =
    \n {\n this.toggleSortOrder(IconType[iconTypeIndex == 2 ? 0 : iconTypeIndex + 1].order, column);\n\n if (column.sorterClick) {\n column.sorterClick(column, IconType[iconTypeIndex].type);\n }\n }}>\n {/* */}\n \n {column.orderNum}\n \n
    ;\n }\n column.title = \n {column.title}\n {sortButton}\n ;\n return column;\n };\n\n // 默认的比较函数,即字符串比较函数\n defaultSortFn = (key) => (a, b)=> {\n return a[key] >= b[key] ? 1 : -1;\n }\n // 数值比较函数\n numberSortFn = (key) => (a, b)=> {\n let numberA = parseFloat(a[key]);\n let numberB = parseFloat(b[key]);\n return numberA >= numberB ? 1 : -1;\n }\n\n // 中文比较函数,按拼音排序\n chineseSortFn = (key) => (a, b)=>{\n return a[key].localeCompare(b[key], 'zh-Hans-CN',{sensitivity: 'accent'});\n } \n\n _flatToColumn(flatColumns){\n const colLen = flatColumns.length;\n let parentIndex,rsColumns = [];\n //每次渲染需要将父类的children置空,避免重复\n flatColumns.forEach(item=>{\n if(item.children){\n item.children = [];\n }\n })\n for(let i = colLen-1;i>=0;i--){\n parentIndex = flatColumns[i].parentIndex;\n if(parentIndex >= 0){\n flatColumns[parentIndex].children.unshift(flatColumns[i]);\n }\n }\n rsColumns = flatColumns.filter(item=>{\n return item.parentIndex == -1\n })\n return rsColumns;\n }\n render() {\n let columns = this.renderColumnsDropdown(this.state.flatColumns.concat());\n return
    ;\n }\n };\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/lib/sort.js","/**\n *\n * @title 列合计(总计)\n * @parent 列渲染 Custom Render\n * @description 给需要计算合计的列(columns),设置sumCol值为true即可,支持动态设置数据源。\n * demo0405\n */\n\nimport React, { Component } from \"react\";\nimport {Checkbox} from \"tinper-bee\";\nimport Table from \"../../src\"; \nimport sum from \"../../src/lib/sum.js\";\nimport multiSelect from \"../../src/lib/multiSelect.js\";\n \nlet ComplexTable = multiSelect(sum(Table), Checkbox);\n//sum第二个参数可以设置精度,例如 sum(Table,4); 设计精度为4\nlet _sum = 0;\nconst columns = [\n {\n title: \"单据编号\",\n dataIndex: \"num\",\n key: \"num\",\n width: 120,\n fixed: \"left\"\n },\n {\n title: \"单据日期\",\n dataIndex: \"date\",\n key: \"date\",\n width: 200,\n },\n {\n title: \"业务类型\",\n dataIndex: \"type\",\n key: \"type\",\n width: 200\n },\n {\n title: \"供应商\",\n dataIndex: \"supplier\",\n key: \"supplier\",\n width: 100\n },\n {\n title: \"联系人\",\n dataIndex: \"contact\",\n key: \"contact\",\n },\n {\n title: \"仓库\",\n dataIndex: \"warehouse\",\n key: \"warehouse\",\n width: 80,\n },\n {\n title: \"整单数量\",\n dataIndex: \"total\",\n key: \"total\",\n width: 100,\n sumCol: true\n },\n {\n title: \"金额\",\n dataIndex: \"money\",\n key: \"money\",\n width: 100,\n sumCol: true\n }\n];\n\nfunction getData(){\n const data = [];\n for (let i = 0; i < 5; i++) {\n data.push({\n key: i,\n num: \"NU039100\"+i,\n date: \"2019-03-01\",\n type: \"普通采购\",\n supplier: \"gys\"+i,\n contact: \"Tom\",\n warehouse: \"普通仓\",\n total: i + Math.floor(Math.random()*10),\n money: 20 * Math.floor(Math.random()*10)\n });\n _sum += data[i].total;\n _sum += data[i].money;\n }\n return data;\n}\n\nclass Demo35 extends Component {\n \n constructor(props) {\n super(props);\n this.state = {\n data: getData(),\n sum:_sum\n };\n }\n\n render() {\n const {data} = this.state;\n return (\n
    \n
    总计: {_sum}
    }\n />\n
    \n );\n }\n}\nexport default Demo35;\n\n\n\n// WEBPACK FOOTER //\n// ./demo/demolist/Demo0405.js","import React from \"react\";\n\nimport {DicimalFormater} from \"./utils\";\nexport default function sum(Table,precision=2) {\n return class SumTable extends React.Component {\n //无状态\n constructor(props) {\n super(props);\n //array , tree\n this.tableType = \"array\";\n }\n\n\n getNodeItem =(array,newArray)=>{\n array.forEach((da,i)=>{\n if(da.children){\n this.getNodeItem(da.children,newArray);\n }else{\n newArray.push(da);\n }\n });\n }\n\n /**\n * 获取当前的表格类型。\n * \n */\n getTableType=()=>{\n const {columns} = this.props;\n let type = \"array\";\n columns.find((da,i)=>{\n if(da.children){\n type = \"tree\";\n return type;\n }\n })\n return type;\n }\n\n\n\n addSumData=()=>{\n let {data=[],columns=[]} = this.props;\n let sumdata = {},newColumns = [],newData = [];\n if (!Array.isArray(columns)) {console.log(\"columns type is error !\");return;}\n let type = this.getTableType();\n if(type == 'tree'){\n this.getNodeItem(columns,newColumns);\n }else{\n newColumns = columns;\n }\n //返回一个新的数据\n newData = data.slice();\n newColumns.forEach((column,index)=>{\n sumdata[column.dataIndex] = \"\";\n if(column.sumCol){\n let count = 0;\n data.forEach((da,i)=>{\n \n let _num = parseFloat(da[column.key]);\n //排查字段值为NAN情况\n if(_num == _num){\n count += _num;\n }\n \n })\n let sum = DicimalFormater(count,precision);\n sumdata[column.dataIndex] = sum;\n if(column.sumRender&&typeof column.sumRender =='function'){\n sumdata[column.dataIndex] = column.sumRender(sum)\n }\n \n }\n if(index == 0){\n sumdata[column.dataIndex] = \"合计 \"+sumdata[column.dataIndex];\n }\n })\n \n newData.push(sumdata);\n return newData;\n }\n\n render() {\n return (\n \n );\n }\n };\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/lib/sum.js","/**\n *\n * @title 自定义整行和整列样式表格\n * @parent 列渲染 Custom Render\n * @description 某行或某列的样式,严格按照react的样式书写规则,即对象内每一个属性的键为小写驼峰式,值为字符串。此demo展示自定义整行或整列的背景色和字体内容颜色。\n * demo0406\n */\n\nimport React, { Component } from \"react\";\nimport Table from \"../../src\";\n\nconst columns = [\n { title: \"员工编号\", dataIndex: \"a\", key: \"a\", width: 150 },\n { title: \"员工姓名\", dataIndex: \"b\", key: \"b\", width:100},\n { title: \"性别\", dataIndex: \"c\", key: \"c\", width: 100,style: {backgroundColor:'#e3f2fd',color:'#505F79'}},\n { title: \"部门\", dataIndex: \"d\", key: \"d\", width: 100 },\n { title: \"职级\", dataIndex: \"e\", key: \"e\", width: 100 }\n];\n\nconst data = [\n { a: \"ASVAL_20190328\", b: \"小张\", c: \"男\", d: \"财务二科\", e: \"M1\", key: \"1\" ,style:{backgroundColor:'#ffebee',color:'#000'}},\n { a: \"ASVAL_20190320\", b: \"小明\", c: \"男\", d: \"财务一科\", e: \"T1\", key: \"2\" },\n { a: \"ASVAL_20190312\", b: \"小红\", c: \"女\", d: \"财务一科\", e: \"T2\", key: \"3\" }\n];\n\nclass Demo0406 extends Component {\n render() {\n return (\n \n );\n }\n}\nexport default Demo0406\n\n\n\n// WEBPACK FOOTER //\n// ./demo/demolist/Demo0406.js","/**\n *\n * @title 行内编辑\n * @parent 编辑 Editor\n * @description 可以对行进行编辑的表格\n * demo0501\n */\nimport React, { Component } from \"react\";\nimport Table from \"../../src\";\nimport { Select, Form, FormControl, Button, Icon, Tooltip } from \"tinper-bee\";\nconst Option = Select.Option;\nimport { RefTreeWithInput } from \"ref-tree\";\n\nclass StringEditCell extends Component {\n constructor(props, context) {\n super(props);\n this.state = {\n value: props.value\n };\n }\n\n componentWillReceiveProps(nextProps) {\n if (!nextProps.editable) {\n this.setState({ value: nextProps.value });\n }\n }\n\n handleChange = value => {\n const { onChange, throwError } = this.props;\n if (value === \"\") {\n throwError && throwError(true);\n } else {\n throwError && throwError(false);\n }\n this.setState({ value });\n onChange && onChange(value);\n };\n\n render() {\n const { editable, required, colName } = this.props;\n const { value } = this.state;\n let cls = \"editable-cell-input-wrapper\";\n if (required) cls += \" required\";\n if (value === \"\") cls += \" verify-cell\";\n return editable ? (\n
    \n
    \n \n \n {value === \"\" ? (\n {\"请输入\" + colName}
    }\n >\n \n \n ) : null}\n \n
    \n \n ) : (\n value || \" \"\n );\n }\n}\n\nconst SELECT_SOURCE = [\"男\", \"女\"];\n\nclass SelectEditCell extends Component {\n constructor(props, context) {\n super(props);\n this.state = {\n value: props.value\n };\n }\n\n componentWillReceiveProps(nextProps) {\n if (!nextProps.editable) {\n this.setState({ value: nextProps.value });\n }\n }\n\n handleSelect = value => {\n this.setState({ value });\n this.props.onChange && this.props.onChange(value);\n };\n\n render() {\n const { editable } = this.props;\n const { value } = this.state;\n let cls = \"editable-cell-input-wrapper\";\n return editable ? (\n
    \n
    \n \n
    \n
    \n ) : (\n value || \" \"\n );\n }\n}\n\nconst option = {\n title: \"树\",\n searchable: true,\n multiple: false,\n param: {\n refCode: \"neworganizition_tree\"\n },\n checkStrictly: true,\n disabled: false,\n nodeDisplay: record => {\n return record.refname;\n },\n displayField: record => {\n return record.refname;\n }, //显示内容的键\n valueField: \"refpk\", //真实 value 的键\n refModelUrl: {\n treeUrl: \"https://mock.yonyoucloud.com/mock/358/blobRefTree\",\n treeUrl: \"/pap_basedoc/common-ref/blobRefTree\"\n },\n matchUrl: \"/pap_basedoc/common-ref/matchPKRefJSON\",\n filterUrl: \"/pap_basedoc/common-ref/filterRefJSON\",\n lazyModal: false,\n strictMode: true,\n lang: \"zh_CN\",\n treeData: [\n {\n code: \"org1\",\n children: [\n {\n code: \"bj\",\n entityType: \"mainEntity\",\n name: \"北京总部-简\",\n pid: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refcode: \"bj\",\n refpk: \"5305416e-e7b4-4051-90bd-12d12942295b\",\n id: \"5305416e-e7b4-4051-90bd-12d12942295b\",\n isLeaf: \"true\",\n refname: \"北京总部-简\"\n },\n {\n code: \"xd\",\n entityType: \"mainEntity\",\n name: \"新道-简\",\n pid: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refcode: \"xd\",\n refpk: \"b691afff-ea83-4a3f-affa-beb2be9cba52\",\n id: \"b691afff-ea83-4a3f-affa-beb2be9cba52\",\n isLeaf: \"true\",\n refname: \"新道-简\"\n },\n {\n code: \"yy3\",\n entityType: \"mainEntity\",\n name: \"test3\",\n pid: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refcode: \"yy3\",\n refpk: \"e75694d9-7c00-4e9e-9573-d29465ae79a9\",\n id: \"e75694d9-7c00-4e9e-9573-d29465ae79a9\",\n isLeaf: \"true\",\n refname: \"test3\"\n },\n {\n code: \"yy1\",\n entityType: \"mainEntity\",\n name: \"test1\",\n pid: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refcode: \"yy1\",\n refpk: \"fd32ceeb-57a8-4f44-816e-fa660f5715ab\",\n id: \"fd32ceeb-57a8-4f44-816e-fa660f5715ab\",\n isLeaf: \"true\",\n refname: \"test1\"\n },\n {\n code: \"dept2\",\n children: [\n {\n code: \"cs\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"测试部-简\",\n pid: \"0ebbb6d8-250a-4d1d-a019-7ae951629a2c\",\n refcode: \"cs\",\n refpk: \"cc43a66a-438d-4106-937f-bec44406f771\",\n id: \"cc43a66a-438d-4106-937f-bec44406f771\",\n isLeaf: \"true\",\n refname: \"测试部-简\"\n },\n {\n code: \"qd\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"前端部-简\",\n pid: \"0ebbb6d8-250a-4d1d-a019-7ae951629a2c\",\n refcode: \"qd\",\n refpk: \"73a10edd-aae8-4f31-af25-1f48f0a3b344\",\n id: \"73a10edd-aae8-4f31-af25-1f48f0a3b344\",\n isLeaf: \"true\",\n refname: \"前端部-简\"\n }\n ],\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"生产处\",\n refcode: \"dept2\",\n refpk: \"0ebbb6d8-250a-4d1d-a019-7ae951629a2c\",\n id: \"0ebbb6d8-250a-4d1d-a019-7ae951629a2c\",\n refname: \"生产处\"\n },\n {\n code: \"dept1\",\n children: [\n {\n code: \"dept1_2\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务二科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_2\",\n refpk: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n id: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n isLeaf: \"true\",\n refname: \"财务二科\"\n },\n {\n code: \"dept1_1\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务一科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_1\",\n refpk: \"9711d912-3184-4063-90c5-1facc727813c\",\n id: \"9711d912-3184-4063-90c5-1facc727813c\",\n isLeaf: \"true\",\n refname: \"财务一科\"\n }\n ],\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务处\",\n refcode: \"dept1\",\n refpk: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n id: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refname: \"财务处\"\n }\n ],\n entityType: \"mainEntity\",\n name: \"用友集团\",\n refcode: \"org1\",\n refpk: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n refname: \"用友集团\"\n }\n ]\n};\n\nconst RefEditCell = Form.createForm()(\n class RefComponentWarpper extends Component {\n constructor(props, context) {\n super(props);\n this.state = {\n value: props.value\n };\n }\n\n componentWillReceiveProps(nextProps) {\n if (!nextProps.editable) {\n this.setState({ value: nextProps.value });\n }\n }\n\n handleSelect = values => {\n this.setState({ value: values[0] });\n this.props.onChange && this.props.onChange(values[0]);\n };\n\n render() {\n const { getFieldProps, getFieldError } = this.props.form;\n const { editable, required } = this.props;\n const { value } = this.state;\n let cls = \"editable-cell-input-wrapper\";\n if (required) cls += \" required\";\n if (getFieldError(\"refValue\")) cls += \" verify-cell\";\n return editable ? (\n
    \n \n {\"请输入\" + this.props.colName}\n
    \n }\n >\n \n \n ),\n pattern: /[^{\"refname\":\"\",\"refpk\":\"\"}|{\"refpk\":\"\",\"refname\":\"\"}]/\n }\n ]\n })}\n />\n {getFieldError(\"refValue\")}\n \n ) : (\n value.name || \" \"\n );\n }\n }\n);\n\nlet dataSource = [\n {\n a: \"ASVAL_201903280005\",\n b: \"小张\",\n c: \"男\",\n d: {\n code: \"dept1_2\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务二科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_2\",\n refpk: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n id: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n isLeaf: \"true\",\n refname: \"财务二科\"\n },\n key: \"1\"\n },\n {\n a: \"ASVAL_201903200004\",\n b: \"小明\",\n c: \"男\",\n d: {\n code: \"dept1_2\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务二科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_2\",\n refpk: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n id: \"55b7fff1-6579-4ca9-92b7-3271d288b9f3\",\n isLeaf: \"true\",\n refname: \"财务二科\"\n },\n key: \"2\"\n },\n {\n a: \"ASVAL_201903120002\",\n b: \"小红\",\n c: \"女\",\n d: {\n code: \"dept1_1\",\n entityType: \"subEntity\",\n organization_id: \"a4cf0601-51e6-4012-9967-b7a64a4b2d47\",\n name: \"财务一科\",\n pid: \"95b60f35-ed0b-454e-b948-fb45ae30b911\",\n refcode: \"dept1_1\",\n refpk: \"9711d912-3184-4063-90c5-1facc727813c\",\n id: \"9711d912-3184-4063-90c5-1facc727813c\",\n isLeaf: \"true\",\n refname: \"财务一科\"\n },\n key: \"3\"\n }\n];\n\nclass Demo0501 extends Component {\n constructor(props, context) {\n super(props);\n this.state = {\n dataSource: dataSource,\n editingRowsMap: {},\n currentIndex: null,\n errorEditFlag: false\n };\n\n this.columns = [\n {\n title: \"员工编号\",\n dataIndex: \"a\",\n key: \"a\"\n },\n {\n title: \"名字\",\n dataIndex: \"b\",\n key: \"b\",\n render: (text, record, index) => (\n \n )\n },\n {\n title: \"性别\",\n dataIndex: \"c\",\n key: \"c\",\n width: 100,\n render: (text, record, index) => (\n \n )\n },\n {\n title: \"部门\",\n dataIndex: \"d\",\n key: \"d\",\n width: 215,\n render: (text, record, index) => (\n \n )\n },\n // 只是用来占位占宽度的\n {\n key: \"placeholder\"\n }\n ];\n\n this.state = {\n dataSource: dataSource,\n editingRowsMap: {},\n currentIndex: null,\n errorEditFlag: false\n };\n\n this.dataBuffer = {};\n }\n\n edit = index => () => {\n if (index === null) return;\n let editingRowsMap = { ...this.state.editingRowsMap };\n editingRowsMap[index] = index.toString();\n // 最好使用深复制\n this.dataBuffer[index] = { ...this.state.dataSource[index] };\n this.setState({ editingRowsMap });\n };\n\n abortEdit = index => () => {\n let editingRowsMap = { ...this.state.editingRowsMap };\n delete editingRowsMap[index];\n delete this.dataBuffer[index];\n this.setState({ editingRowsMap });\n };\n\n delete = index => () => {\n if (index === null) return;\n let { dataSource } = this.state;\n dataSource.splice(index,1);\n this.setState({\n dataSource:dataSource\n });\n }\n\n commitChange = index => () => {\n if (this.state.errorEditFlag) return;\n let editingRowsMap = { ...this.state.editingRowsMap };\n delete editingRowsMap[index];\n let dataSource = [...this.state.dataSource];\n dataSource[index] = { ...this.dataBuffer[index] };\n this.setState({ editingRowsMap, dataSource });\n };\n\n onCellChange = (index, key) => value => {\n this.dataBuffer[index][key] = value;\n };\n\n throwError = isError => {\n if (isError !== this.state.errorEditFlag)\n this.setState({ errorEditFlag: isError });\n };\n\n handleRowHover = (index, record) => {\n this.currentRecord = record;\n this.setState({ currentIndex: index });\n };\n\n renderRowHover = () => {\n const { currentIndex } = this.state;\n return this.state.editingRowsMap[currentIndex] ? (\n
    \n \n 取消\n \n \n
    \n ) : (\n
    \n \n \n
    \n );\n };\n\n render() {\n const { dataSource } = this.state;\n const columns = this.columns;\n return (\n
    \n \n
    \n );\n }\n}\n\nexport default Demo0501;\n\n\n\n// WEBPACK FOOTER //\n// ./demo/demolist/Demo0501.js","module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,\"a\",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=\"/\",n(n.s=147)}([function(e,t){e.exports=require(\"react\")},function(e,t){e.exports=require(\"prop-types\")},function(e,t){e.exports=require(\"react-dom\")},function(e,t,n){var r;\n/*!\n Copyright (c) 2017 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/*!\n Copyright (c) 2017 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n!function(){\"use strict\";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t=0&&t.left>=0&&t.bottom>t.top&&t.right>t.left?t:null};var Y=function(e,t,n,r){var o=q.clone(e),i={width:t.width,height:t.height};return r.adjustX&&o.left=n.left&&o.left+i.width>n.right&&(i.width-=o.left+i.width-n.right),r.adjustX&&o.left+i.width>n.right&&(o.left=Math.max(n.right-i.width,n.left)),r.adjustY&&o.top=n.top&&o.top+i.height>n.bottom&&(i.height-=o.top+i.height-n.bottom),r.adjustY&&o.top+i.height>n.bottom&&(o.top=Math.max(n.bottom-i.height,n.top)),q.mix(o,i)};var X=function(e){var t=void 0,n=void 0,r=void 0;if(q.isWindow(e)||9===e.nodeType){var o=q.getWindow(e);t={left:q.getWindowScrollLeft(o),top:q.getWindowScrollTop(o)},n=q.viewportWidth(o),r=q.viewportHeight(o)}else t=q.offset(e),n=q.outerWidth(e),r=q.outerHeight(e);return t.width=n,t.height=r,t};var $=function(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,i=e.height,a=e.left,u=e.top;return\"c\"===n?u+=i/2:\"b\"===n&&(u+=i),\"c\"===r?a+=o/2:\"r\"===r&&(a+=o),{left:a,top:u}};var J=function(e,t,n,r,o){var i=$(t,n[1]),a=$(e,n[0]),u=[a.left-i.left,a.top-i.top];return{left:e.left-u[0]+r[0]-o[0],top:e.top-u[1]+r[1]-o[1]}};function Q(e,t,n){return e.leftn.right}function Z(e,t,n){return e.topn.bottom}function ee(e,t,n){var r=[];return q.each(e,function(e){r.push(e.replace(t,function(e){return n[e]}))}),r}function te(e,t){return e[t]=-e[t],e}function ne(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function re(e,t){e[0]=ne(e[0],t.width),e[1]=ne(e[1],t.height)}var oe=function(e,t,n,r){var o=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],u=n.overflow,s=n.source||e;i=[].concat(i),a=[].concat(a),u=u||{};var l={},c=0,f=G(s),d=X(s);re(i,d),re(a,t);var p=J(d,t,o,i,a),h=q.merge(d,p);if(f&&(u.adjustX||u.adjustY)&&r){if(u.adjustX&&Q(p,d,f)){var v=ee(o,/[lr]/gi,{l:\"r\",r:\"l\"}),y=te(i,0),m=te(a,0);(function(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=t.right||n.top>=t.bottom}(r);return oe(e,o,n,i)}ie.__getOffsetParent=V,ie.__getVisibleRectForElement=G;var ae=ie,ue=Object.assign||function(e){for(var t=1;t=0&&r<=u+l&&o>=0&&o<=s+c,p=[n.points[0],\"cc\"];return oe(e,f,ue({},n,{points:p}),d)};n.d(t,\"alignElement\",function(){return ae}),n.d(t,\"alignPoint\",function(){return se});t.default=ae},function(e,t){e.exports=function(e){if(\"function\"!=typeof e)throw TypeError(e+\" is not a function!\");return e}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return\"Symbol(\".concat(void 0===e?\"\":e,\")_\",(++n+r).toString(36))}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(52);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(13).f,o=n(17),i=n(6)(\"toStringTag\");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t){var n,r,o=e.exports={};function i(){throw new Error(\"setTimeout has not been defined\")}function a(){throw new Error(\"clearTimeout has not been defined\")}function u(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n=\"function\"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r=\"function\"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var s,l=[],c=!1,f=-1;function d(){c&&s&&(c=!1,s.length?l=s.concat(l):f=-1,l.length&&p())}function p(){if(!c){var e=u(d);c=!0;for(var t=l.length;t;){for(s=l,l=[];++f1)for(var n=1;n0?o(r(e),9007199254740991):0}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(56)(\"keys\"),o=n(40);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(4),o=n(5),i=o[\"__core-js_shared__\"]||(o[\"__core-js_shared__\"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})(\"versions\",[]).push({version:r.version,mode:n(28)?\"pure\":\"global\",copyright:\"© 2019 Denis Pushkarev (zloirock.ru)\"})},function(e,t){e.exports=\"constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf\".split(\",\")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(41),o=n(39),i=n(18),a=n(51),u=n(17),s=n(86),l=Object.getOwnPropertyDescriptor;t.f=n(15)?l:function(e,t){if(e=i(e),t=a(t,!0),s)try{return l(e,t)}catch(e){}if(u(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(11),o=n(156),i=n(57),a=n(55)(\"IE_PROTO\"),u=function(){},s=function(){var e,t=n(50)(\"iframe\"),r=i.length;for(t.style.display=\"none\",n(91).appendChild(t),t.src=\"javascript:\",(e=t.contentWindow.document).open(),e.write(\"